diff --git a/.github/workflows/common_check.yml b/.github/workflows/common_check.yml index 0daadba85c..0a90c2ba45 100644 --- a/.github/workflows/common_check.yml +++ b/.github/workflows/common_check.yml @@ -12,80 +12,121 @@ jobs: steps: - name: check out repository uses: actions/checkout@v3 + - name: setup python uses: actions/setup-python@v4 with: python-version: '3.9' + - name: execute check styles run: python tests/code-style/check.py unit-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js 14 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libatk1.0-0 libcups2 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libnss3 libgbm1 libasound2 + + - name: check out repository + uses: actions/checkout@v3 + + - name: Use Node.js 18 uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 18 + - name: Run unit tests run: | - npm install -g grunt-cli node-qunit-puppeteer + npm install grunt-cli node-qunit-puppeteer npm install --prefix build - grunt --gruntfile build/Gruntfile.js develop - node-qunit-puppeteer tests/common/api/api.html - node-qunit-puppeteer tests/common/color-mods/color-mods.html - node-qunit-puppeteer tests/cell/shortcuts/shortcuts.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/FormulaTests.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/PivotTests.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/CopyPasteTests.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/SheetStructureTests.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/autoFilterTests.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/UserProtectedRangesTest.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/FormulaTrace.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/GoalSeekTests.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/NumFormatParse.html - node-qunit-puppeteer tests/cell/spreadsheet-calculation/DataValidationTests.html - node-qunit-puppeteer tests/word/unit-tests/paragraphContentPos.html - node-qunit-puppeteer tests/word/content-control/block-level/cursorAndSelection.html - node-qunit-puppeteer tests/word/content-control/inline-level/cursorAndSelection.html - node-qunit-puppeteer tests/word/content-control/inline-level/checkbox.html - node-qunit-puppeteer tests/word/document-calculation/floating-position/drawing.html - node-qunit-puppeteer tests/word/document-calculation/paragraph.html - node-qunit-puppeteer tests/word/document-calculation/table/correctBadTable.html - node-qunit-puppeteer tests/word/document-calculation/table/flowTablePosition.html - node-qunit-puppeteer tests/word/document-calculation/table/pageBreak.html - node-qunit-puppeteer tests/word/document-calculation/table/table-header.html - node-qunit-puppeteer tests/word/document-calculation/textShaper/textShaper.html - node-qunit-puppeteer tests/word/document-calculation/text-hyphenator/text-hyphenator.html - node-qunit-puppeteer tests/word/forms/forms.html - node-qunit-puppeteer tests/word/forms/complexForm.html - node-qunit-puppeteer tests/word/numbering/numberingApplicator.html - node-qunit-puppeteer tests/word/numbering/numberingCalculation.html - node-qunit-puppeteer tests/word/numbering/numberingAutocorrect.html - node-qunit-puppeteer tests/word/api/api.html - node-qunit-puppeteer tests/word/api/textInput.html - node-qunit-puppeteer tests/word/styles/displayStyle.html - node-qunit-puppeteer tests/word/styles/paraPr.html - node-qunit-puppeteer tests/word/styles/styleApplicator.html - node-qunit-puppeteer tests/word/plugins/pluginsApi.html - node-qunit-puppeteer tests/word/revisions/paragraph.html - node-qunit-puppeteer tests/word/merge-documents/mergeDocuments.html - node-qunit-puppeteer tests/word/shortcuts/shortcuts.html - node-qunit-puppeteer tests/slide/shortcuts/shortcuts.html + node node_modules/grunt-cli/bin/grunt --gruntfile build/Gruntfile.js develop + node node_modules/node-qunit-puppeteer/cli.js tests/common/api/api.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/common/color-mods/color-mods.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/shortcuts/shortcuts.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/FormulaTests.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/PivotTests.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/CopyPasteTests.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/SheetStructureTests.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/autoFilterTests.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/UserProtectedRangesTest.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/FormulaTrace.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/GoalSeekTests.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/NumFormatParse.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/DataValidationTests.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/conditionalFormattingTests.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/ExternalReference.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/cell/spreadsheet-calculation/SheetMemoryTest.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/unit-tests/paragraphContentPos.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/unit-tests/deleted-text-recovery.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/content-control/block-level/cursorAndSelection.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/content-control/inline-level/checkbox.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/content-control/inline-level/cursorAndSelection.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/content-control/inline-level/date-time.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/document-calculation/floating-position/drawing.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/document-calculation/paragraph.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/document-calculation/table/correctBadTable.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/document-calculation/table/flowTablePosition.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/document-calculation/table/pageBreak.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/document-calculation/table/table-header.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/document-calculation/textShaper/textShaper.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/document-calculation/text-hyphenator/text-hyphenator.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/forms/forms.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/forms/complexForm.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/numbering/numberingApplicator.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/numbering/numberingCalculation.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/numbering/numberingAutocorrect.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/api/api.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/api/cross-ref.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/api/textInput.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/styles/displayStyle.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/styles/paraPr.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/styles/styleApplicator.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/text-autocorrection/as-you-type.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/plugins/pluginsApi.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/revisions/paragraph.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/merge-documents/mergeDocuments.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/word/shortcuts/shortcuts.html 30000 "--no-sandbox" + node node_modules/node-qunit-puppeteer/cli.js tests/slide/shortcuts/shortcuts.html 30000 "--no-sandbox" builder-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js 12 + - name: check out repository + uses: actions/checkout@v4 + with: + path: sdkjs + + - name: check out repository sdkjs-forms current branch + id: sdkjs-forms + uses: actions/checkout@v4 + continue-on-error: true + with: + repository: ONLYOFFICE/sdkjs-forms + token: ${{ secrets.READ_PAT }} + path: sdkjs-forms + ref: ${{ github.ref }} + - name: check out repository sdkjs-forms master branch + if: steps.sdkjs-forms.outcome != 'success' + uses: actions/checkout@v4 + with: + repository: ONLYOFFICE/sdkjs-forms + token: ${{ secrets.READ_PAT }} + path: sdkjs-forms + ref: master + + - name: Use Node.js 18 uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 18 + - name: Run builder tests run: | - npm install -g grunt-cli - npm install --prefix build - grunt --level=WHITESPACE_ONLY --base build --gruntfile build/Gruntfile.js - docker run -v $PWD/deploy/sdkjs/common:/opt/onlyoffice/documentbuilder/sdkjs/common \ - -v $PWD/deploy/sdkjs/word:/opt/onlyoffice/documentbuilder/sdkjs/word \ - -v $PWD/deploy/sdkjs/cell:/opt/onlyoffice/documentbuilder/sdkjs/cell \ - -v $PWD/deploy/sdkjs/slide:/opt/onlyoffice/documentbuilder/sdkjs/slide \ - onlyoffice/doc-builder-testing:next-release rake rspec_critical + cd sdkjs + npm install grunt-cli + npm install --prefix build + node node_modules/grunt-cli/bin/grunt --level=WHITESPACE_ONLY --addon=sdkjs-forms --base build --gruntfile build/Gruntfile.js + docker run -v $PWD/deploy/sdkjs/common:/opt/onlyoffice/documentbuilder/sdkjs/common \ + -v $PWD/deploy/sdkjs/word:/opt/onlyoffice/documentbuilder/sdkjs/word \ + -v $PWD/deploy/sdkjs/cell:/opt/onlyoffice/documentbuilder/sdkjs/cell \ + -v $PWD/deploy/sdkjs/slide:/opt/onlyoffice/documentbuilder/sdkjs/slide \ + onlyoffice/doc-builder-testing:next-release rake rspec_critical diff --git a/.github/workflows/dev_check.yml b/.github/workflows/dev_check.yml index c1e11db6dc..1b132e5b4c 100644 --- a/.github/workflows/dev_check.yml +++ b/.github/workflows/dev_check.yml @@ -22,10 +22,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js 14 + - name: Use Node.js 20 uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 20 - name: Run unit tests run: | npm install -g grunt-cli node-qunit-puppeteer @@ -44,9 +44,14 @@ jobs: node-qunit-puppeteer tests/cell/spreadsheet-calculation/GoalSeekTests.html node-qunit-puppeteer tests/cell/spreadsheet-calculation/NumFormatParse.html node-qunit-puppeteer tests/cell/spreadsheet-calculation/DataValidationTests.html + node-qunit-puppeteer tests/cell/spreadsheet-calculation/conditionalFormattingTests.html + node-qunit-puppeteer tests/cell/spreadsheet-calculation/ExternalReference.html node-qunit-puppeteer tests/word/unit-tests/paragraphContentPos.html + node-qunit-puppeteer tests/word/unit-tests/deleted-text-recovery.html node-qunit-puppeteer tests/word/content-control/block-level/cursorAndSelection.html + node-qunit-puppeteer tests/word/content-control/inline-level/checkbox.html node-qunit-puppeteer tests/word/content-control/inline-level/cursorAndSelection.html + node-qunit-puppeteer tests/word/content-control/inline-level/date-time.html node-qunit-puppeteer tests/word/document-calculation/floating-position/drawing.html node-qunit-puppeteer tests/word/document-calculation/paragraph.html node-qunit-puppeteer tests/word/document-calculation/table/correctBadTable.html @@ -60,11 +65,14 @@ jobs: node-qunit-puppeteer tests/word/numbering/numberingCalculation.html node-qunit-puppeteer tests/word/numbering/numberingAutocorrect.html node-qunit-puppeteer tests/word/api/api.html + node-qunit-puppeteer tests/word/api/cross-ref.html node-qunit-puppeteer tests/word/api/textInput.html node-qunit-puppeteer tests/word/styles/displayStyle.html node-qunit-puppeteer tests/word/styles/paraPr.html node-qunit-puppeteer tests/word/styles/styleApplicator.html + node-qunit-puppeteer tests/word/text-autocorrection/as-you-type.html node-qunit-puppeteer tests/word/plugins/pluginsApi.html + node-qunit-puppeteer tests/word/revisions/document-content.html node-qunit-puppeteer tests/word/revisions/paragraph.html node-qunit-puppeteer tests/word/merge-documents/mergeDocuments.html node-qunit-puppeteer tests/word/shortcuts/shortcuts.html @@ -72,18 +80,25 @@ jobs: builder-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + path: sdkjs + - uses: actions/checkout@v4 + with: + repository: ONLYOFFICE/sdkjs-forms + path: sdkjs-forms - name: Use Node.js 12 uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 12 - name: Run builder tests run: | - npm install -g grunt-cli - npm install --prefix build - grunt --level=WHITESPACE_ONLY --base build --gruntfile build/Gruntfile.js - docker run -v $PWD/deploy/sdkjs/common:/opt/onlyoffice/documentbuilder/sdkjs/common \ - -v $PWD/deploy/sdkjs/word:/opt/onlyoffice/documentbuilder/sdkjs/word \ - -v $PWD/deploy/sdkjs/cell:/opt/onlyoffice/documentbuilder/sdkjs/cell \ - -v $PWD/deploy/sdkjs/slide:/opt/onlyoffice/documentbuilder/sdkjs/slide \ - onlyoffice/doc-builder-testing:develop-latest rake rspec_critical + cd sdkjs + npm install -g grunt-cli + npm install --prefix build + grunt --level=WHITESPACE_ONLY --addon=sdkjs-forms --base build --gruntfile build/Gruntfile.js + docker run -v $PWD/deploy/sdkjs/common:/opt/onlyoffice/documentbuilder/sdkjs/common \ + -v $PWD/deploy/sdkjs/word:/opt/onlyoffice/documentbuilder/sdkjs/word \ + -v $PWD/deploy/sdkjs/cell:/opt/onlyoffice/documentbuilder/sdkjs/cell \ + -v $PWD/deploy/sdkjs/slide:/opt/onlyoffice/documentbuilder/sdkjs/slide \ + onlyoffice/doc-builder-testing:next-release rake rspec_critical diff --git a/.gitignore b/.gitignore index 087fc940fe..91eb3abfe4 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ package-lock.json */node_modules */package-lock.json connector +tests/package* diff --git a/build/Gruntfile.js b/build/Gruntfile.js index 35a9f9f8c3..6aad99ce14 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -76,7 +76,13 @@ module.exports = function(grunt) { function writeScripts(config, name) { const develop = '../develop/sdkjs/'; const fileName = 'scripts.js'; - const files = ['../vendor/polyfill.js', '../common/applyDocumentChanges.js', '../common/AllFonts.js'].concat(getFilesMin(config), getFilesAll(config)); + let files = ['../vendor/polyfill.js', '../common/AllFonts.js']; + if (grunt.option('compiled')) { + //todo set window['AscNotLoadAllScript'] = false; (in applyDocumentChanges.js) + files.push(deploy + name + '/sdk-all-min.js'); + } else { + files = files.concat(['../common/applyDocumentChanges.js'], getFilesMin(config), getFilesAll(config)); + } fixUrl(files, '../../../../sdkjs/build/'); grunt.file.write(path.join(develop, name, fileName), 'var sdk_scripts = [\n\t"' + files.join('",\n\t"') + '"\n];'); diff --git a/build/build-develop-addons-sdk-advanced.py b/build/build-develop-addons-sdk-advanced.py new file mode 100644 index 0000000000..c6e9569b75 --- /dev/null +++ b/build/build-develop-addons-sdk-advanced.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +import sys +sys.path.append('../../build_tools/scripts') +import base +import traceback + +try: + base.cmd_in_dir('.', "npm", ["install", "-g", "grunt-cli"]) + base.cmd_in_dir('.', "npm", ["ci"]) + + base.cmd_in_dir('.', "grunt", ["--level=ADVANCED", "--addon=sdkjs-forms", "--addon=sdkjs-ooxml"]) + base.cmd_in_dir('.', "grunt", ["develop", "--compiled", "--addon=sdkjs-forms", "--addon=sdkjs-ooxml"]) + + input("Press Enter to continue...") + exit(0) +except SystemExit: + input("Ignoring SystemExit. Press Enter to continue...") + exit(0) +except KeyboardInterrupt: + pass +except: + input("Unexpected error. " + traceback.format_exc() + "Press Enter to continue...") + exit(0) diff --git a/build/build-develop-addons-sdk-whitespace.py b/build/build-develop-addons-sdk-whitespace.py new file mode 100644 index 0000000000..b47e31dc7d --- /dev/null +++ b/build/build-develop-addons-sdk-whitespace.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +import sys +sys.path.append('../../build_tools/scripts') +import base +import traceback + +try: + base.cmd_in_dir('.', "npm", ["install", "-g", "grunt-cli"]) + base.cmd_in_dir('.', "npm", ["ci"]) + + base.cmd_in_dir('.', "grunt", ["--level=WHITESPACE_ONLY", "--addon=sdkjs-forms", "--addon=sdkjs-ooxml"]) + base.cmd_in_dir('.', "grunt", ["develop", "--compiled", "--addon=sdkjs-forms", "--addon=sdkjs-ooxml"]) + + input("Press Enter to continue...") + exit(0) +except SystemExit: + input("Ignoring SystemExit. Press Enter to continue...") + exit(0) +except KeyboardInterrupt: + pass +except: + input("Unexpected error. " + traceback.format_exc() + "Press Enter to continue...") + exit(0) diff --git a/build/build-develop-addons.bat b/build/build-develop-addons.bat deleted file mode 100644 index 2900ef2868..0000000000 --- a/build/build-develop-addons.bat +++ /dev/null @@ -1,8 +0,0 @@ -CD /D %~dp0 -call npm install -g grunt-cli -call npm ci - -call grunt --level=WHITESPACE_ONLY --addon=sdkjs-forms --addon=sdkjs-ooxml -call grunt develop --addon=sdkjs-forms --addon=sdkjs-ooxml - -pause \ No newline at end of file diff --git a/build/build-develop-addons.py b/build/build-develop-addons.py new file mode 100644 index 0000000000..d029eb7402 --- /dev/null +++ b/build/build-develop-addons.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +import sys +sys.path.append('../../build_tools/scripts') +import base +import traceback + +try: + base.cmd_in_dir('.', "npm", ["install", "-g", "grunt-cli"]) + base.cmd_in_dir('.', "npm", ["ci"]) + + base.cmd_in_dir('.', "grunt", ["--level=WHITESPACE_ONLY", "--addon=sdkjs-forms", "--addon=sdkjs-ooxml"]) + base.cmd_in_dir('.', "grunt", ["develop", "--addon=sdkjs-forms", "--addon=sdkjs-ooxml"]) + + input("Press Enter to continue...") + exit(0) +except SystemExit: + input("Ignoring SystemExit. Press Enter to continue...") + exit(0) +except KeyboardInterrupt: + pass +except: + input("Unexpected error. " + traceback.format_exc() + "Press Enter to continue...") + exit(0) diff --git a/build/deserializer/deserialize.js b/build/deserializer/deserialize.js index a88fd5ed47..ca49f25aa8 100644 --- a/build/deserializer/deserialize.js +++ b/build/deserializer/deserialize.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/build/deserializer/download-maps.js b/build/deserializer/download-maps.js index 2dedefa5d6..302b1a2178 100644 --- a/build/deserializer/download-maps.js +++ b/build/deserializer/download-maps.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -36,7 +36,7 @@ const {S3Client, GetObjectCommand} = require("@aws-sdk/client-s3"); async function run(accessKeyId, secretAccessKey, inputFile = "unique.txt", mapsDir = "maps", region = "eu-west-1", endpoint = "https://s3.eu-west-1.amazonaws.com", bucketName = "repo-doc-onlyoffice-com", - keyPrefix = "closure-maps/commercial/{version}") { + keyPrefix = "closure-maps/sdkjs/commercial/{version}") { if (!accessKeyId || !secretAccessKey) { console.error(`missing arguments.USAGE: download-maps.js [accessKeyId] [secretAccessKey] [inputFile=${inputFile}] [mapsDir=${mapsDir}] [region=${region}] [endpoint=${endpoint}] [bucketName=${bucketName}] [keyPrefix=${keyPrefix}]`); console.error(`inputFile must contain at least one line like: "/7.5.1-23/sdkjs/"`); diff --git a/build/deserializer/parse-json-log-dir.js b/build/deserializer/parse-json-log-dir.js index ff546cbb18..943bf98567 100644 --- a/build/deserializer/parse-json-log-dir.js +++ b/build/deserializer/parse-json-log-dir.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/cell/Local/api.js b/cell/Local/api.js index 85c2c17305..d35c6985f6 100644 --- a/cell/Local/api.js +++ b/cell/Local/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -49,20 +49,6 @@ var c_oAscError = Asc.c_oAscError; var asc = window["Asc"]; var spreadsheet_api = asc['spreadsheet_api']; - spreadsheet_api.prototype._onNeedParams = function(data, opt_isPassword) - { - var type; - var options; - if (opt_isPassword) { - type = Asc.c_oAscAdvancedOptionsID.DRM; - } else { - type = Asc.c_oAscAdvancedOptionsID.CSV; - var cp = JSON.parse("{\"codepage\":46,\"delimiter\":1}"); - cp['encodings'] = AscCommon.getEncodingParams(); - options = new AscCommon.asc_CAdvancedOptions(cp); - } - this.handlers.trigger("asc_onAdvancedOptions", type, options); - }; spreadsheet_api.prototype.asc_addImageDrawingObject = function(urls, imgProp, token) { var ws = this.wb.getWorksheet(); @@ -290,6 +276,13 @@ var c_oAscError = Asc.c_oAscError; let nativeOptions = options.advancedOptions.asc_getNativeOptions(); if (nativeOptions) printOptionsObj["nativeOptions"] = nativeOptions; + + // adjustPrint + printOptionsObj["adjustOptions"] = {}; + if (null != options.advancedOptions.asc_getStartPageIndex()) + printOptionsObj["adjustOptions"]["startPageIndex"] = options.advancedOptions.asc_getStartPageIndex(); + if (null != options.advancedOptions.asc_getEndPageIndex()) + printOptionsObj["adjustOptions"]["endPageIndex"] = options.advancedOptions.asc_getEndPageIndex(); } printOptions = JSON.stringify(printOptionsObj); diff --git a/cell/api.js b/cell/api.js index 9ae657e29a..9d292ce3be 100644 --- a/cell/api.js +++ b/cell/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -484,20 +484,10 @@ var editor; }; spreadsheet_api.prototype.asc_Copy = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Copy"); - return true; - } return AscCommon.g_clipboardBase.Button_Copy(); }; spreadsheet_api.prototype.asc_Paste = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Paste"); - return true; - } if (!AscCommon.g_clipboardBase.IsWorking()) { return AscCommon.g_clipboardBase.Button_Paste(); } @@ -562,7 +552,7 @@ var editor; if (typeof Blob !== 'undefined' && typeof FileReader !== 'undefined') { AscCommon.loadFileContent(url['output.txt'], function (httpRequest) { var cp = { - 'codepage': AscCommon.c_oAscCodePageUtf8, "delimiter": AscCommon.c_oAscCsvDelimiter.Comma, + 'codepage': AscCommon.c_oAscCodePageNone, "delimiter": AscCommon.c_oAscCsvDelimiter.Comma, 'encodings': AscCommon.getEncodingParams() }; @@ -602,7 +592,7 @@ var editor; function wrapper_callback(data) { let bom = AscCommon.getEncodingByBOM(data); let cp = { - 'codepage': AscCommon.c_oAscCodePageNone !== bom.encoding ? bom.encoding : AscCommon.c_oAscCodePageUtf8, + 'codepage': bom.encoding, "delimiter": AscCommon.c_oAscCsvDelimiter.Comma, 'encodings': AscCommon.getEncodingParams(), 'data': AscCommon.c_oAscCodePageNone !== bom.encoding ? data.subarray(bom.size) : data @@ -930,11 +920,6 @@ var editor; }; spreadsheet_api.prototype.asc_Cut = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Cut"); - return true; - } return AscCommon.g_clipboardBase.Button_Cut(); }; @@ -1329,25 +1314,33 @@ var editor; if (t.handlers.hasTrigger("asc_onAdvancedOptions")) { // ToDo разделитель пока только "," http://bugzilla.onlyoffice.com/show_bug.cgi?id=31009 var cp = { - 'codepage': AscCommon.c_oAscCodePageUtf8, "delimiter": AscCommon.c_oAscCsvDelimiter.Comma, + 'codepage': AscCommon.c_oAscCodePageNone, "delimiter": AscCommon.c_oAscCsvDelimiter.Comma, 'encodings': AscCommon.getEncodingParams() }; if (data && typeof Blob !== 'undefined' && typeof FileReader !== 'undefined') { - AscCommon.loadFileContent(data, function(httpRequest) { - if (httpRequest && httpRequest.response) { - let data = httpRequest.response; - var dataUint = new Uint8Array(data); - var bom = AscCommon.getEncodingByBOM(dataUint); - if (AscCommon.c_oAscCodePageNone !== bom.encoding) { - cp['codepage'] = bom.encoding; - data = dataUint.subarray(bom.size); - } - cp['data'] = data; - t.handlers.trigger("asc_onAdvancedOptions", c_oAscAdvancedOptionsID.CSV, new AscCommon.asc_CAdvancedOptions(cp)); + function applyBuffer(dataUint) { + var bom = AscCommon.getEncodingByBOM(dataUint); + if (AscCommon.c_oAscCodePageNone !== bom.encoding) { + cp['codepage'] = bom.encoding; + cp['data'] = dataUint.subarray(bom.size); } else { - t.handlers.trigger("asc_onError", c_oAscError.ID.Unknown, c_oAscError.Level.Critical); + cp['data'] = dataUint; } - }, "arraybuffer"); + } + if (data.buffer) { + applyBuffer(data); + t.handlers.trigger("asc_onAdvancedOptions", c_oAscAdvancedOptionsID.CSV, new AscCommon.asc_CAdvancedOptions(cp)); + } else { + AscCommon.loadFileContent(data, function(httpRequest) { + if (httpRequest && httpRequest.response) { + let data = httpRequest.response; + applyBuffer(new Uint8Array(data)); + t.handlers.trigger("asc_onAdvancedOptions", c_oAscAdvancedOptionsID.CSV, new AscCommon.asc_CAdvancedOptions(cp)); + } else { + t.handlers.trigger("asc_onError", c_oAscError.ID.Unknown, c_oAscError.Level.Critical); + } + }, "arraybuffer"); + } } else { t.handlers.trigger("asc_onAdvancedOptions", c_oAscAdvancedOptionsID.CSV, new AscCommon.asc_CAdvancedOptions(cp)); } @@ -1765,6 +1758,7 @@ var editor; if(this.wb.MobileTouchManager) { this.wb.MobileTouchManager.Destroy(); } + this.sendEvent("asc_onCloseFile"); }; spreadsheet_api.prototype.openDocumentFromZip = function (wb, data) { @@ -1794,39 +1788,51 @@ var editor; var doc = new openXml.OpenXmlPackage(jsZlib, null); var reader, i, j; - //core - var coreXmlPart = doc.getPartByRelationshipType(openXml.Types.coreFileProperties.relationType); - if (coreXmlPart) { - var contentCore = coreXmlPart.getDocumentContent(); - if (contentCore) { - wb.Core = new AscCommon.CCore(); - reader = new StaxParser(contentCore, coreXmlPart, xmlParserContext); - wb.Core.fromXml(reader, true); - } - } - - //app - var appXmlPart = doc.getPartByRelationshipType(openXml.Types.extendedFileProperties.relationType); - if (appXmlPart) { - var contentApp = appXmlPart.getDocumentContent(); - if (contentApp) { - wb.App = new AscCommon.CApp(); - reader = new StaxParser(contentApp, appXmlPart, xmlParserContext); - wb.App.fromXml(reader, true); - } - } - //workbook wbPart = doc.getPartByRelationshipType(openXml.Types.workbook.relationType); if (wbPart) { var contentWorkbook = wbPart.getDocumentContent(); wbXml = new AscCommonExcel.CT_Workbook(wb); reader = new StaxParser(contentWorkbook, wbPart, xmlParserContext); - wbXml.fromXml(reader); + if (t.isOpenOOXInBrowser) { + wbXml.fromXml(reader); + } else { + wbXml.fromXmlSimple(reader); + } } - if (t.isOpenOOXInBrowser) { + //core + var coreXmlPart = doc.getPartByRelationshipType(openXml.Types.coreFileProperties.relationType); + if (coreXmlPart) { + var contentCore = coreXmlPart.getDocumentContent(); + if (contentCore) { + wb.Core = new AscCommon.CCore(); + reader = new StaxParser(contentCore, coreXmlPart, xmlParserContext); + wb.Core.fromXml(reader, true); + } + } + + //app + var appXmlPart = doc.getPartByRelationshipType(openXml.Types.extendedFileProperties.relationType); + if (appXmlPart) { + var contentApp = appXmlPart.getDocumentContent(); + if (contentApp) { + wb.App = new AscCommon.CApp(); + reader = new StaxParser(contentApp, appXmlPart, xmlParserContext); + wb.App.fromXml(reader, true); + } + } + //metadata + if (AscCommonExcel.bIsSupportDynamicArrays) { + let metaData = wbPart.getPartByRelationshipType(openXml.Types.metadata.relationType); + if (metaData) { + let contentMetaData = metaData.getDocumentContent(); + wb.metadata = new AscCommonExcel.CMetadata(); + reader = new StaxParser(contentMetaData, metaData, xmlParserContext); + wb.metadata.fromXml(reader); + } + } //theme var workbookThemePart = wbPart.getPartByRelationshipType(openXml.Types.theme.relationType); @@ -3233,22 +3239,30 @@ var editor; } } - if (this.isMobileVersion) { + if (this.isUseOldMobileVersion()) { this.wb.defaults.worksheetView.halfSelection = true; this.wb.defaults.worksheetView.activeCellBorderColor = new CColor(79, 158, 79); var _container = document.getElementById(this.HtmlElementName); if (_container) { _container.style.overflow = "hidden"; } - this.wb.MobileTouchManager = new AscCommonExcel.CMobileTouchManager({eventsElement: "cell_mobile_element"}); - this.wb.MobileTouchManager.Init(this); // input context must be created!!! var _areaId = AscCommon.g_inputContext.HtmlArea.id; var _element = document.getElementById(_areaId); _element.parentNode.parentNode.style.zIndex = 10; + } + + if ((typeof AscCommonExcel.CMobileTouchManager) !== "undefined") + { + this.wb.MobileTouchManager = new AscCommonExcel.CMobileTouchManager({eventsElement: "cell_mobile_element", desktopMode : !this.isUseOldMobileVersion()}); + this.wb.MobileTouchManager.Init(this); + + if (this.isUseOldMobileVersion()) + this.wb.MobileTouchManager.initEvents(AscCommon.g_inputContext.HtmlArea.id); - this.wb.MobileTouchManager.initEvents(AscCommon.g_inputContext.HtmlArea.id); + if (this.controller) + this.wb.MobileTouchManager.addClickElement([this.controller.element]); } this.asc_CheckGuiControlColors(); @@ -3369,10 +3383,6 @@ var editor; if (undefined !== window["AscDesktopEditor"]) { window["AscDesktopEditor"]["OnSave"](); } - if (t.disconnectOnSave) { - t.CoAuthoringApi.disconnect(t.disconnectOnSave.code, t.disconnectOnSave.reason); - t.disconnectOnSave = null; - } if (t.canUnlockDocument) { t._unlockDocument(); @@ -3417,7 +3427,12 @@ var editor; this.wbModel.setActive(where); this.wb.updateWorksheetByModel(); this.wb.showWorksheet(); + this.wbModel.dependencyFormulas.lockRecal(); History.EndTransaction(); + if (this.wbModel.dependencyFormulas.changedCell) { + this.wbModel.dependencyFormulas.changedCell = null; + } + this.wbModel.dependencyFormulas.unlockRecal(); // Посылаем callback об изменении списка листов this.sheetsChanged(); this.inkDrawer.endSilentMode(); @@ -3812,8 +3827,8 @@ var editor; } t.wbModel.handleChartsOnWorksheetsRemove(arrSheets); t.wb.updateWorksheetByModel(); + History.EndTransaction(); t.wb.showWorksheet(); - History.EndTransaction(); // Посылаем callback об изменении списка листов t.sheetsChanged(); } @@ -3828,7 +3843,7 @@ var editor; if (arrBooks.length) { this.sendSheetsToOtherBooks(where, arrNames, arrSheets, arrBooks); this.asc_deleteWorksheet(arrSheets.slice()); - } else if (window["AscDesktopEditor"]) { + } else if (window["AscDesktopEditor"] && window["AscDesktopEditor"]["IsLocalFile"]()) { this.copyToNewWorkbook(arrSheets); } this.removeDocumentInfoEvent(); @@ -3897,7 +3912,7 @@ var editor; if (arrBooks) { if (arrBooks.length) { this.sendSheetsToOtherBooks(where, arrNames, arrSheets, arrBooks); - } else if (window["AscDesktopEditor"]) { + } else if (window["AscDesktopEditor"] && window["AscDesktopEditor"]["IsLocalFile"]()) { this.copyToNewWorkbook(arrSheets); } this.removeDocumentInfoEvent(); @@ -4465,6 +4480,10 @@ var editor; this.wb.getWorksheet().changeSheetViewSettings(AscCH.historyitem_Worksheet_SetShowFormulas, value); }; + spreadsheet_api.prototype.asc_setRightToLeft = function (value) { + this.wb.getWorksheet().changeSheetViewSettings(AscCH.historyitem_Worksheet_SetRightToLeft, value); + }; + spreadsheet_api.prototype.asc_getShowFormulas = function () { let ws = this.wb.getWorksheet(); return ws.model && ws.model.getShowFormulas(); @@ -4503,7 +4522,7 @@ var editor; oSmartArt.setWorksheet(oWSModel); oSmartArt.addToDrawingObjects(undefined, AscCommon.c_oAscCellAnchorType.cellanchorTwoCell); oSmartArt.checkDrawingBaseCoords(); - oSmartArt.fitFontSize(); + oSmartArt.generateDrawingPart(); oController.checkChartTextSelection(); oController.resetSelection(); oSmartArt.select(oController, 0); @@ -6490,7 +6509,7 @@ var editor; }; spreadsheet_api.prototype.getGraphicController = function () { - var ws = this.wb.getWorksheet(); + var ws = this.wb && this.wb.getWorksheet(); return ws && ws.objectRender && ws.objectRender.controller; }; @@ -6863,6 +6882,14 @@ var editor; _adjustPrint.asc_setIgnorePrintArea(true); } + if (_options["adjustOptions"]) + { + if (_options["adjustOptions"]["startPageIndex"]) + _adjustPrint.asc_setStartPageIndex(_options["adjustOptions"]["startPageIndex"]); + if (_options["adjustOptions"]["endPageIndex"]) + _adjustPrint.asc_setEndPageIndex(_options["adjustOptions"]["endPageIndex"]); + } + _adjustPrint.asc_setPrintType(Asc.c_oAscPrintType.EntireWorkbook); var ws, newPrintOptions; @@ -7054,7 +7081,7 @@ var editor; spreadsheet_api.prototype.canRunBuilderScript = function() { return this.asc_canPaste(); }; - spreadsheet_api.prototype.onEndBuilderScript = function() { + spreadsheet_api.prototype._onEndBuilderScript = function(callback) { let needDraw = null; if (this.wb && this.wb.customFunctionEngine && this.wb.customFunctionEngine.needRecalculate) { if (this.wbModel.addCustomFunctionToChanged()) { @@ -7067,7 +7094,10 @@ var editor; const ws = this.wb && this.wb.getWorksheet(); ws && ws.draw(); } - + + if (callback) + callback(true); + return true; }; @@ -7274,16 +7304,17 @@ var editor; return name; }; /** - * @param {CT_pivotTableDefinition} opt_pivotTable + * @param {CT_pivotTableDefinition} opt_pivotTable + * @param {row: number, col: number} opt_activeCell * @return {boolean} Success */ - spreadsheet_api.prototype.asc_pivotShowDetails = function(opt_pivotTable) { + spreadsheet_api.prototype.asc_pivotShowDetails = function(opt_pivotTable, opt_activeCell) { if (this.collaborativeEditing.getGlobalLock() || !this.canEdit()) { return false; } let t = this; let ws = this.wbModel.getActiveWs(); - let activeCell = ws.selectionRange.activeCell; + let activeCell = opt_activeCell || ws.selectionRange.activeCell; let pivotTable = opt_pivotTable || ws.getPivotTable(activeCell.col, activeCell.row); if (!pivotTable) { return false; @@ -7347,6 +7378,7 @@ var editor; var t = this; if (Asc.CT_pivotTableDefinition.prototype.isValidDataRef(dataRef)) { var wb = this.wbModel; + var pivot; this._isLockedAddWorksheets(function(res) { if (res) { History.Create_NewPoint(); @@ -7354,7 +7386,7 @@ var editor; var worksheets = t._addWorksheetsWithoutLock([newSheetName], wb.getActive()); var ws = worksheets[0]; var range = new Asc.Range(AscCommonExcel.NEW_PIVOT_COL, AscCommonExcel.NEW_PIVOT_ROW, AscCommonExcel.NEW_PIVOT_COL, AscCommonExcel.NEW_PIVOT_ROW); - t._asc_insertPivot(wb, dataRef, ws, range, false); + pivot = t._asc_insertPivot(wb, dataRef, ws, range, false); History.EndTransaction(); } else { //todo @@ -7364,8 +7396,10 @@ var editor; } else { this.sendEvent('asc_onError', c_oAscError.ID.PivotLabledColumns, c_oAscError.Level.NoCritical); } + // добавил возвращение таблицы, для методов билдера + return pivot; }; - spreadsheet_api.prototype.asc_insertPivotExistingWorksheet = function(dataRef, pivotRef) { + spreadsheet_api.prototype.asc_insertPivotExistingWorksheet = function(dataRef, pivotRef, confirmation) { if (!Asc.CT_pivotTableDefinition.prototype.isValidDataRef(dataRef)) { this.sendEvent('asc_onError', c_oAscError.ID.PivotLabledColumns, c_oAscError.Level.NoCritical); return; @@ -7383,8 +7417,9 @@ var editor; } this.wb.updateWorksheetByModel(); this.wb.showWorksheet(); - this._asc_insertPivot(wb, dataRef, ws, location.bbox, false); + return this._asc_insertPivot(wb, dataRef, ws, location.bbox, confirmation); } + return null; }; spreadsheet_api.prototype._asc_insertPivot = function(wb, dataRef, ws, bbox, confirmation) { var t = this; @@ -9261,6 +9296,29 @@ var editor; return ws && ws.cleanFillHandleProps(); }; + /** + * Returns values of calculation options + * @returns {asc_CCalcSettings} + */ + spreadsheet_api.prototype.asc_GetCalcSettings = function () { + let wbModel = this.wbModel + if (!wbModel) { + return; + } + let res = new Asc.asc_CCalcSettings(); + + res.asc_initSettings(wbModel); + + return res; + }; + /** + * Updates the calculation options. + * @param {asc_CCalcSettings} oCalcSettings - The calculation options changed from UI. + */ + spreadsheet_api.prototype.asc_UpdateCalcSettings = function (oCalcSettings) { + this.wb.updateCalcSettings(oCalcSettings); + }; + spreadsheet_api.prototype.addCustomFunction = function(func, options) { let wb = this.wb; if (!wb) { @@ -9418,11 +9476,64 @@ var editor; } }; + spreadsheet_api.prototype.asc_SetSmoothScrolling = function(val) { + let wb = this.wb; + if (!wb) { + return; + } + return wb.setSmoothScrolling(val); + }; + spreadsheet_api.prototype.asc_GetSmoothScrolling = function() { + let wb = this.wb; + if (!wb) { + return; + } + return wb.getSmoothScrolling(); + }; + spreadsheet_api.prototype.getCustomProperties = function() { + let oWBModel = this.wbModel; + if(!oWBModel) + return null; + return oWBModel.CustomProperties; + }; + + spreadsheet_api.prototype.addCustomProperty = function(name, type, value) { + let oCustomProperties = this.getCustomProperties(); + if(!oCustomProperties) return; + + this.checkObjectsLock([oCustomProperties.Id], function(bNoLock) { + if(bNoLock) { + AscCommon.History.Create_NewPoint(); + oCustomProperties.AddProperty(name, type, value); + } + }); + }; + spreadsheet_api.prototype.modifyCustomProperty = function(idx, name, type, value) { + let oCustomProperties = this.getCustomProperties(); + if(!oCustomProperties) return; + + this.checkObjectsLock([oCustomProperties.Id], function(bNoLock) { + if(bNoLock) { + AscCommon.History.Create_NewPoint(); + oCustomProperties.ModifyProperty(idx, name, type, value); + } + }); + }; + spreadsheet_api.prototype.removeCustomProperty = function(idx) { + let oCustomProperties = this.getCustomProperties(); + if(!oCustomProperties) return; + this.checkObjectsLock([oCustomProperties.Id], function(bNoLock) { + if(bNoLock) { + AscCommon.History.Create_NewPoint(); + oCustomProperties.RemoveProperty(idx); + } + }); + }; /* * Export * ----------------------------------------------------------------------------- @@ -9588,6 +9699,8 @@ var editor; prot["asc_setShowZeros"] = prot.asc_setShowZeros; prot["asc_setShowFormulas"] = prot.asc_setShowFormulas; prot["asc_getShowFormulas"] = prot.asc_getShowFormulas; + prot["asc_setRightToLeft"] = prot.asc_setRightToLeft; + // Defined Names @@ -10001,15 +10114,18 @@ var editor; prot["asc_GetEditableFunctions"]= prot.asc_GetEditableFunctions; - prot["asc_StartGoalSeek"]= prot.asc_StartGoalSeek; - prot["asc_CloseGoalClose"]= prot.asc_CloseGoalClose; - prot["asc_PauseGoalSeek"]= prot.asc_PauseGoalSeek; - prot["asc_ContinueGoalSeek"]= prot.asc_ContinueGoalSeek; - prot["asc_StepGoalSeek"]= prot.asc_StepGoalSeek; + prot["asc_StartGoalSeek"] = prot.asc_StartGoalSeek; + prot["asc_CloseGoalClose"] = prot.asc_CloseGoalClose; + prot["asc_PauseGoalSeek"] = prot.asc_PauseGoalSeek; + prot["asc_ContinueGoalSeek"] = prot.asc_ContinueGoalSeek; + prot["asc_StepGoalSeek"] = prot.asc_StepGoalSeek; + + prot["asc_GetSeriesSettings"] = prot.asc_GetSeriesSettings; + prot["asc_FillCells"] = prot.asc_FillCells; + prot["asc_CancelFillCells"] = prot.asc_CancelFillCells; - prot["asc_GetSeriesSettings"]= prot.asc_GetSeriesSettings; - prot["asc_FillCells"]= prot.asc_FillCells; - prot["asc_CancelFillCells"]= prot.asc_CancelFillCells; + prot["asc_GetCalcSettings"] = prot.asc_GetCalcSettings; + prot["asc_UpdateCalcSettings"] = prot.asc_UpdateCalcSettings; prot["asc_getCustomFunctionInfo"]= prot.asc_getCustomFunctionInfo; @@ -10017,6 +10133,8 @@ var editor; prot["asc_getOpeningDocumentsList"]= prot.asc_getOpeningDocumentsList; prot["asc_isSupportCopySheetsBetweenBooks"]= prot.asc_isSupportCopySheetsBetweenBooks; + prot["asc_SetSmoothScrolling"]= prot.asc_SetSmoothScrolling; + prot["asc_GetSmoothScrolling"]= prot.asc_GetSmoothScrolling; diff --git a/cell/apiBuilder.js b/cell/apiBuilder.js index 646a53cf8f..ee3358bcfe 100644 --- a/cell/apiBuilder.js +++ b/cell/apiBuilder.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -54,6 +54,7 @@ * @property {ApiComment[]} AllComments - Returns all comments from the current workbook including comments from all worksheets. * @property {ReferenceStyle} ReferenceStyle - Returns or sets the reference style. * @property {ApiWorksheetFunction} WorksheetFunction - Returns an object that represents the function list. + * @property {ApiPivotTable[]} PivotTables - Returns all pivot tables. */ var Api = window["Asc"]["spreadsheet_api"]; @@ -88,6 +89,7 @@ * @property {Array} Comments - Returns all comments from the current worksheet. * @property {ApiFreezePanes} FreezePanes - Returns the freeze panes for the current worksheet. * @property {ApiProtectedRange[]} AllProtectedRanges - Returns all protected ranges from the current worksheet. + * @property {ApiPivotTable[]} PivotTables - Returns all pivot tables from the current worksheet. */ function ApiWorksheet(worksheet) { this.worksheet = worksheet; @@ -131,6 +133,7 @@ * @property {'xlDownward' | 'xlHorizontal' | 'xlUpward' | 'xlVertical'} Orientation - Sets an angle to the current cell range. * @property {ApiAreas} Areas - Returns a collection of the areas. * @property {ApiCharacters} Characters - Returns the ApiCharacters object that represents a range of characters within the object text. Use the ApiCharacters object to format characters within a text string. + * @property {ApiPivotTable | null} PivotTable - Returns the ApiPivotTable object that represents the pivot table report containing the upper-left corner of the specified range. */ function ApiRange(range, areas) { this.range = range; @@ -169,17 +172,7 @@ ApiImage.prototype = Object.create(ApiDrawing.prototype); ApiImage.prototype.constructor = ApiImage; - /** - * Class representing a chart. - * @constructor - */ - function ApiChart(oChart) { - ApiDrawing.call(this, oChart); - this.Chart = oChart; - } - ApiChart.prototype = Object.create(ApiDrawing.prototype); - ApiChart.prototype.constructor = ApiChart; /** * Class representing an OLE object. @@ -221,26 +214,30 @@ * "slateBlue" | "slateGray" | "slateGrey" | "snow" | "springGreen" | "steelBlue" | "tan" | "teal" | * "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whiteSmoke" | "yellow" | * "yellowGreen")} PresetColor - * */ + * @see office-js-api/Examples/Enumerations/PresetColor.js + */ /** * Possible values for the position of chart tick labels (either horizontal or vertical). - * * "none" - does not display the selected tick labels. - * * "nextTo" - sets the position of the selected tick labels next to the main label. - * * "low" - sets the position of the selected tick labels in the part of the chart with lower values. - * * "high" - sets the position of the selected tick labels in the part of the chart with higher values. + * "none" - does not display the selected tick labels. + * "nextTo" - sets the position of the selected tick labels next to the main label. + * "low" - sets the position of the selected tick labels in the part of the chart with lower values. + * "high" - sets the position of the selected tick labels in the part of the chart with higher values. * @typedef {("none" | "nextTo" | "low" | "high")} TickLabelPosition - * **/ + * @see office-js-api/Examples/Enumerations/TickLabelPosition.js + */ /** * The page orientation type. * @typedef {("xlLandscape" | "xlPortrait")} PageOrientation - * */ + * @see office-js-api/Examples/Enumerations/PageOrientation.js + */ /** * The type of tick mark appearance. * @typedef {("cross" | "in" | "none" | "out")} TickMark - * */ + * @see office-js-api/Examples/Enumerations/TickMark.js + */ /** * Text transform type. @@ -250,11 +247,13 @@ * | "textDoubleWave1" | "textFadeDown" | "textFadeLeft" | "textFadeRight" | "textFadeUp" | "textInflate" | "textInflateBottom" | "textInflateTop" * | "textPlain" | "textRingInside" | "textRingOutside" | "textSlantDown" | "textSlantUp" | "textStop" | "textTriangle" | "textTriangleInverted" * | "textWave1" | "textWave2" | "textWave4" | "textNoShape")} TextTransform - * */ + * @see office-js-api/Examples/Enumerations/TextTransform.js + */ /** * Axis position in the chart. * @typedef {("top" | "bottom" | "right" | "left")} AxisPos + * @see office-js-api/Examples/Enumerations/AxisPos.js */ /** @@ -263,12 +262,14 @@ * "0.00E+00" | "# ?/?" | "# ??/??" | "m/d/yyyy" | "d-mmm-yy" | "d-mmm" | "mmm-yy" | "h:mm AM/PM" | * "h:mm:ss AM/PM" | "h:mm" | "h:mm:ss" | "m/d/yyyy h:mm" | "#,##0_);(#,##0)" | "#,##0_);[Red](#,##0)" | * "#,##0.00_);(#,##0.00)" | "#,##0.00_);[Red](#,##0.00)" | "mm:ss" | "[h]:mm:ss" | "mm:ss.0" | "##0.0E+0" | "@")} NumFormat + * @see office-js-api/Examples/Enumerations/NumFormat.js */ /** - * The cell references type. + * The cell reference type. * @typedef {('xlA1' | 'xlR1C1')} ReferenceStyle - * */ + * @see office-js-api/Examples/Enumerations/ReferenceStyle.js + */ //TODO not support "xlPasteAllMergingConditionalFormats" / "xlPasteAllUsingSourceTheme" / "xlPasteValidation" /** @@ -277,13 +278,21 @@ * | "xlPasteColumnWidths" | "xlPasteComments" * | "xlPasteFormats" | "xlPasteFormulas" | "xlPasteFormulasAndNumberFormats" * | "xlPasteValues" | "xlPasteValuesAndNumberFormats" )} PasteType - * */ + * @see office-js-api/Examples/Enumerations/PasteType.js + */ /** - * Specifies how numeric data will be calculated with the destinations cells on the worksheet. + * The mathematical operation which will be applied to the copied data. * @typedef {("xlPasteSpecialOperationAdd" | "xlPasteSpecialOperationDivide" | "xlPasteSpecialOperationMultiply"| * "xlPasteSpecialOperationNone" | "xlPasteSpecialOperationSubtract" )} PasteSpecialOperation - * */ + * @see office-js-api/Examples/Enumerations/PasteSpecialOperation.js + */ + + /** + * Specifies how to shift cells to replace deleted cells. + * @typedef {("up" | "left")} DeleteShiftDirection + * @see office-js-api/Examples/Enumerations/DeleteShiftDirection.js + */ /** * Class representing a base class for the color types. @@ -293,9 +302,11 @@ this.color = color; } /** - * Returns the color number. + * Returns a color value in RGB format. * @memberof ApiColor + * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiColor/Methods/GetRGB.js */ ApiColor.prototype.GetRGB = function () { if (!this.color) { @@ -361,6 +372,134 @@ } } + /** + * Class representing a pivot table. + * @constructor + * @property {string} Name - Returns or sets a name of the pivot table. + * @property {boolean} ColumnGrand - Returns or sets the Grand Totals setting for the pivot table columns. + * @property {boolean} RowGrand - Returns or sets the Grand Totals setting for the pivot table rows. + * @property {boolean} DisplayFieldCaptions - Returns or sets the setting which specifies whether to display field headers for rows and columns. + * @property {string} Title - Returns or sets the pivot table title. + * @property {string} Description - Returns or sets the pivot table description. + * @property {string} StyleName - Returns or sets the pivot table style name. + * @property {ApiWorksheet} Parent - Returns the parent object for the current pivot table. + * @property {boolean} ShowTableStyleRowHeaders - Returns or sets the setting which specifies whether the row headers of the pivot table will be highlighted with the special formatting. + * @property {boolean} ShowTableStyleColumnHeaders - Returns or sets the setting which specifies whether the column headers of the pivot table will be highlighted with the special formatting. + * @property {boolean} ShowTableStyleRowStripes - Returns or sets the setting which specifies whether the background color alternation for odd and even rows will be enabled for the pivot table. + * @property {boolean} ShowTableStyleColumnStripes - Returns or sets the setting which specifies whether the background color alternation for odd and even columns will be enabled for the pivot table. + * @property {ApiRange} Source - Returns or sets the source range for the pivot table. + * @property {ApiRange | null} ColumnRange - Returns a Range object that represents the column area in the pivot table report. + * @property {ApiRange | null} RowRange - Returns a Range object that represents the row area in the pivot table report. + * @property {ApiRange} DataBodyRange - Returns a Range object that represents the range of values in the pivot table. + * @property {ApiRange | null} TableRange1 - Returns a Range object that represents the entire pivot table report, but doesn't include page fields. + * @property {ApiRange | null} TableRange2 - Returns a Range object that represents the entire pivot table report, including page fields. + * @property {string} GrandTotalName - Returns or sets the text string label that is displayed in the grand total column or row heading in the specified pivot table report. + * @property {boolean} RepeatAllLabels - Specifies whether to repeat item labels for all pivot fields in the specified pivot table. + * @property {object} RowAxisLayout - Sets the way the specified pivot table items appear — in table format or in outline format. + * @property {boolean} LayoutBlankLine - Sets the setting which specifies whether to insert blank rows after each item in the pivot table. + * @property {boolean} LayoutSubtotals - Sets the setting which specifies whether to show subtotals in the pivot table. + * @property {number} SubtotalLocation - Sets the layout subtotal location. + * @property {ApiPivotField[]} PivotFields - Returns all pivot fields in the pivot table. + * @property {ApiPivotField[]} ColumnFields - Returns an array that is currently displayed as column fields in the pivot table. + * @property {ApiPivotField[]} DataFields - Returns an array that is currently displayed as data fields in the pivot table. + * @property {ApiPivotField[]} HiddenFields - Returns an array that represents all hidden fields in the pivot table. + * @property {ApiPivotField[]} VisibleFields - Returns an array that represents all visible fields in the pivot table. + * @property {ApiPivotField[]} PageFields - Returns an array that is currently displayed as page fields in the pivot table. + * @property {ApiPivotField[]} RowFields - Returns an array that is currently displayed as row fields in the pivot table. + */ + function ApiPivotTable(pivot, api) { + /** @type {CT_pivotTableDefinition} */ + this.pivot = pivot; + this.api = api; + } + + /** + * Class representing a pivot table field. + * @constructor + * @property {number} Position - Returns or sets a value that represents the position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages, Data). + * @property {number} Orientation - Returns or sets a pivot field orientation value that represents the location of the field in the specified pivot table report. + * @property {string} Caption - Returns or sets a value that represents the label text for the pivot field. + * @property {string} Name - Returns or sets a value representing the object name. + * @property {string} Value - Returns or sets a value representing the name of the specified field in the pivot table report. + * @property {string} SourceName - Returns a source name for the pivot table field. + * @property {number} Index - Returns an index for the pivot table field. + * @property {ApiPivotTable} Table - Returns the ApiPivotTable object which represents the pivot table for the current field. + * @property {ApiPivotTable} Parent - Returns the parent object for the current field. + * @property {boolean} LayoutCompactRow - Returns or sets the setting which specifies whether a pivot table field is compacted. + * @property {number} LayoutForm - Returns or sets the way the specified pivot table items appear — in table format or in outline format. + * @property {boolean} LayoutPageBreak - Returns or sets the setting which specifies whether to insert a page break after each field. + * @property {boolean} ShowingInAxis - Returns the setting which specifies whether the pivot table field is currently visible in the pivot table. + * @property {boolean} RepeatLabels - Returns or sets the setting which specifies whether to repeat items labels at each row. + * @property {boolean} LayoutBlankLine - Returns and sets the setting which specifies whether to insert blank rows after each item. + * @property {boolean} ShowAllItems - Returns or sets the setting which specifies whether to show items with no data. + * @property {boolean} LayoutSubtotals - Returns or sets the setting which specifies whether to show subtotals. + * @property {number} LayoutSubtotalLocation - Returns or sets the layout subtotal location. + * @property {string} SubtotalName - Returns or sets the text label displayed in the subtotal column or row heading in the specified pivot table report. + * @property {object} Subtotals - Returns or sets the subtotals. + * @property {number} Formula - Returns or sets a value that represents the object's formula. + * @property {boolean} DragToColumn - Returns or sets the setting which specifies whether the specified field can be dragged to the column position. + * @property {boolean} DragToRow - Returns or sets the setting which specifies whether the specified field can be dragged to the row position. + * @property {boolean} DragToData - Returns or sets the setting which specifies whether the specified field can be dragged to the data position. + * @property {boolean} DragToPage - Returns or sets the setting which specifies whether the specified field can be dragged to the page position. + * @property {string | null} NumberFormat - Returns or sets a value that represents the format code for the object. + * @property {string | number} CurrentPage - Returns the current page which is displayed for the page field (valid only for page fields). + * @property {ApiPivotItem | ApiPivotItem[]} PivotItems - Returns an object that represents either a single pivot table item (the ApiPivotItem object) + * or a collection of all the visible and hidden items (an array of the ApiPivotItem objects) in the specified field. + */ + function ApiPivotField(table, index, pivotField) { + /** @type {ApiPivotTable} */ + this.table = table; + /** @type {number} */ + this.index = index; + /** @type {CT_PivotField} */ + this.pivotField = pivotField; + } + + /** + * Class representing a pivot table data field. + * @constructor + * @extends ApiPivotField + * @property {DataConsolidateFunctionType} Function - Returns or sets a function for the data field. + * @property {number} Position - Returns or sets a value that represents the data field position within a category. + * @property {PivotFieldOrientationType} Orientation - Returns a data field orientation value + * that represents the data field location in the specified pivot table report. + * @property {string} Name - Returns or sets a value representing the object name. + * @property {string} Value - Returns or sets a value representing the name of the specified data field in the pivot table report. + * @property {string} Caption - Returns or sets a value that represents the label text for the data field. + * @property {string | null} NumberFormat - Returns or sets a value that represents the format code for the object. + * @property {number} Index - Returns an index of the data field. + * @property {ApiPivotField} PivotField - Returns the pivot field from which the data field was created. + */ + function ApiPivotDataField(table, dataIndex, dataField) { + const pivotIndex = dataField.asc_getIndex(); + const pivotField = table.pivot.asc_getPivotFields()[pivotIndex]; + ApiPivotField.call(this, table, pivotIndex, pivotField); + /** @type {number} */ + this.dataIndex = dataIndex; + /** @type {CT_DataField} */ + this.dataField = dataField; + + } + ApiPivotDataField.prototype = Object.create(ApiPivotField.prototype); + ApiPivotDataField.prototype.constructor = ApiPivotDataField; + + /** + * Class representing a pivot table field item. + * @constructor + * @property {string} Name - Returns a name of the pivot item. + * @property {string} Caption - Returns a caption of the pivot item. + * @property {string} Value - Returns a name of the specified item in the pivot table field. + * @property {string} Parent - Returns a parent of the pivot item. + * @property {string} Field - Returns a field of the pivot item. + */ + function ApiPivotItem(field, item) { + /** @type{ApiPivotField} */ + this.field = field; + /** @type{CT_Item} */ + this.pivotItem = item; + } + + /** * Class representing characters in an object that contains text. * @constructor @@ -404,9 +543,11 @@ /** * Returns a class formatted according to the instructions contained in the format expression. * @memberof Api + * @typeofeditors ["CSE"] * @param {string} expression - Any valid expression. * @param {string} [format] - A valid named or user-defined format expression. * @returns {string} + * @see office-js-api/Examples/{Editor}/Api/Methods/Format.js */ Api.prototype.Format = function (expression, format) { format = null == format ? '' : format; @@ -439,7 +580,7 @@ Api.prototype.AddCustomFunction = function (fCustom) { // get parsedJSDoc from a macros (we receive it from the Api class) // take the first element and validate it - const parsedJSDoc = this.parsedJSDoc.shift(); + const parsedJSDoc = this.parsedJSDoc && this.parsedJSDoc.shift(); const isValidJsDoc = parsedJSDoc ? private_ValidateParamsForCustomFunction(parsedJSDoc) : false; //const isValidOptions = options ? private_ValidateParamsForCustomFunction(options) : false; if (!isValidJsDoc/* && !isValidOptions*/) { @@ -518,20 +659,38 @@ }; /** - * Remove a custom function. + * Registers a new custom functions library (see the SetCustomFunctions plugin method). + * The description of the function parameters and result is specified using JSDoc. The @customfunction tag is required in JSDoc. + * Parameters and results can be specified as the number / string / bool / any / number[][] / string[][] / bool[][] / any[][] types. + * Parameters can be required or optional. A user can also set a default value. + * @memberof Api + * @typeofeditors ["CSE"] + * @param {string} sName - The library name. + * @param {Function} Func - The custom functions library code. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/Api/Methods/AddCustomFunction.js + */ + Api.prototype.AddCustomFunctionLibrary = function(sName, Func) { + this.addCustomFunctionsLibrary(sName, Func); + }; + + /** + * Removes a custom function. * @memberof Api * @typeofeditors ["CSE"] * @param {string} sName - The name of a custom function. * @returns {boolean} - returns false if such a function does not exist. + * @see office-js-api/Examples/{Editor}/Api/Methods/RemoveCustomFunction.js */ Api.prototype.RemoveCustomFunction = function (sName) { return this.removeCustomFunction(sName); }; /** - * Clear all custom functions. + * Clears all custom functions. * @memberof Api * @typeofeditors ["CSE"] - * @returns {boolean} - returns false if such a functions does not exist. + * @returns {boolean} - returns false if such functions do not exist. + * @see office-js-api/Examples/{Editor}/Api/Methods/ClearCustomFunctions.js */ Api.prototype.ClearCustomFunctions = function () { return this.clearCustomFunctions(); @@ -542,6 +701,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @param {string} sName - The name of a new worksheet. + * @see office-js-api/Examples/{Editor}/Api/Methods/AddSheet.js */ Api.prototype.AddSheet = function (sName) { if (this.GetSheet(sName)) @@ -555,6 +715,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @returns {ApiWorksheet[]} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetSheets.js */ Api.prototype.GetSheets = function () { var result = []; @@ -574,6 +735,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @param {number} LCID - The locale specified. + * @see office-js-api/Examples/{Editor}/Api/Methods/SetLocale.js */ Api.prototype.SetLocale = function (LCID) { this.asc_setLocale(LCID, null, null); @@ -584,6 +746,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetLocale.js */ Api.prototype.GetLocale = function () { return this.asc_getLocale(); @@ -594,6 +757,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @returns {ApiWorksheet} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetActiveSheet.js */ Api.prototype.GetActiveSheet = function () { var index = this.wbModel.getActive(); @@ -611,6 +775,7 @@ * @typeofeditors ["CSE"] * @param {string | number} nameOrIndex - Sheet name or sheet index. * @returns {ApiWorksheet | null} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetSheet.js */ Api.prototype.GetSheet = function (nameOrIndex) { var ws = ('string' === typeof nameOrIndex) ? this.wbModel.getWorksheetByName(nameOrIndex) : @@ -623,6 +788,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @returns {string[]} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetThemesColors.js */ Api.prototype.GetThemesColors = function () { var result = []; @@ -639,6 +805,7 @@ * @typeofeditors ["CSE"] * @param {string} sTheme - The color scheme that will be set to the current spreadsheet. * @returns {boolean} - returns false if sTheme isn't a string. + * @see office-js-api/Examples/{Editor}/Api/Methods/SetThemeColors.js */ Api.prototype.SetThemeColors = function (sTheme) { if ('string' === typeof sTheme) { @@ -652,6 +819,7 @@ * Creates a new history point. * @memberof Api * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateNewHistoryPoint.js */ Api.prototype.CreateNewHistoryPoint = function () { History.Create_NewPoint(); @@ -665,6 +833,7 @@ * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. * @returns {ApiColor} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateColorFromRGB.js */ Api.prototype.CreateColorFromRGB = function (r, g, b) { return new ApiColor(AscCommonExcel.createRgbColor(r, g, b)); @@ -676,6 +845,7 @@ * @typeofeditors ["CSE"] * @param {PresetColor} sPresetColor - A preset selected from the list of the available color preset names. * @returns {ApiColor} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateColorByName.js */ Api.prototype.CreateColorByName = function (sPresetColor) { var rgb = AscFormat.mapPrstColor[sPresetColor]; @@ -689,6 +859,7 @@ * @param {ApiRange} Range1 - One of the intersecting ranges. At least two Range objects must be specified. * @param {ApiRange} Range2 - One of the intersecting ranges. At least two Range objects must be specified. * @returns {ApiRange | null} + * @see office-js-api/Examples/{Editor}/Api/Methods/Intersect.js */ Api.prototype.Intersect = function (Range1, Range2) { let result = null; @@ -710,6 +881,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetSelection.js */ Api.prototype.GetSelection = function () { return this.GetActiveSheet().GetSelection(); @@ -729,6 +901,7 @@ * Example: "Sheet1!$A$1:$B$2". * @param {boolean} isHidden - Defines if the range name is hidden or not. * @returns {boolean} - returns false if sName or sRef are invalid. + * @see office-js-api/Examples/{Editor}/Api/Methods/AddDefName.js */ Api.prototype.AddDefName = function (sName, sRef, isHidden) { return private_AddDefName(this.wbModel, sName, sRef, null, isHidden); @@ -740,6 +913,7 @@ * @typeofeditors ["CSE"] * @param {string} defName - The range name. * @returns {ApiName} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetDefName.js */ Api.prototype.GetDefName = function (defName) { if (defName && typeof defName === "string") { @@ -752,6 +926,7 @@ * Saves changes to the specified document. * @memberof Api * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/Api/Methods/Save.js */ Api.prototype.Save = function () { this.SaveAfterMacros = true; @@ -763,6 +938,7 @@ * @typeofeditors ["CSE"] * @param {string} sRange - The range of cells from the current sheet. * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetRange.js */ Api.prototype.GetRange = function (sRange) { var ws; @@ -781,6 +957,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @returns {ApiWorksheetFunction} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetWorksheetFunction.js */ Api.prototype.GetWorksheetFunction = function () { if (!this.oWorksheetFunction) { @@ -1254,6 +1431,10 @@ "YIELD": "yield" }; + /** + * Class representing a worksheet function. + * @constructor + */ function ApiWorksheetFunction(api) { this.api = api; } @@ -1333,9 +1514,12 @@ if (!func) { return; } + let sendException = function () { + throwException(new Error('Arguments count error.')); + }; let argsCount = arg.length; if (!func.checkArguments(argsCount)) { - throwException(new Error('Arguments count error.')); + sendException(); return null; } @@ -1348,16 +1532,57 @@ newArguments.push(new AscCommonExcel.cString(arg[i])); } else if ('boolean' === typeof arg[i]) { newArguments.push(new AscCommonExcel.cBool(arg[i])); - } else if (arg[i] instanceof ApiRange ) { + } else if (arg[i] instanceof ApiRange) { //cArea/cRef/cArea3D/cRef3d if (arg[i].range && arg[i].range.bbox && arg[i].range.worksheet) { newArguments.push(new AscCommonExcel.cArea3D(arg[i].range.bbox.getName(), arg[i].range.worksheet, arg[i].range.worksheet)); } else { - throwException(new Error('Arguments type error.')); + sendException(); + return null; + } + } else if (Array.isArray(arg[i])) { + //cArea/cRef/cArea3D/cRef3d + if (arg[i] && arg[i].length) { + + let elem = arg[i]; + let checkedArray = AscCommonExcel.cArray.prototype.checkValidArray.call(null, elem, true); + if (checkedArray) { + let newArray = new AscCommonExcel.cArray(); + let bFillRes = newArray.fillFromArray(checkedArray, function (_elem) { + if ('number' === typeof _elem) { + return new AscCommonExcel.cNumber(_elem); + } else if ('string' === typeof _elem) { + return new AscCommonExcel.cString(_elem); + } else if ('boolean' === typeof _elem) { + return new AscCommonExcel.cBool(_elem); + } + return null; + }); + if (bFillRes && newArray.isValidArray()) { + newArguments.push(newArray); + } else { + sendException(); + return null; + } + } else { + sendException(); + return null; + } + } else { + sendException(); return null; } + } else if (arg[i] instanceof ApiName) { + let _name = arg[i].GetName && arg[i].GetName(); + let _ws = arg[i].DefName && arg[i].DefName.parsedRef && arg[i].DefName.parsedRef.ws; + if (_name && _ws) { + let oName = new AscCommonExcel.cName(_name, _ws); + let nameRes = oName.getValue && oName.getValue(); + newArguments.push(nameRes); + } + } else { - throwException(new Error('Arguments type error.')); + sendException(); return null; } } @@ -1374,14 +1599,15 @@ return null; } - + let isArray = null; if (AscCommonExcel.cElementType.cell === result.type || AscCommonExcel.cElementType.cell3D === result.type) { result = result.getValue(); if (AscCommonExcel.cElementType.empty === result.type) { result = new AscCommonExcel.cNumber(0); } } else if (AscCommonExcel.cElementType.array === result.type) { - result = result.getElement(0); + result = result.toArray(true, null, null, true); + isArray = true; } else if (AscCommonExcel.cElementType.cellsRange === result.type || AscCommonExcel.cElementType.cellsRange3D === result.type) { if (AscCommonExcel.cElementType.cellsRange === result.type) { result = result.getValue2(0, 0); @@ -1390,9 +1616,15 @@ } } - if (result && result.getValue) { - result = result.getValue(); - } else { + if (!isArray && result) { + if (result.type === AscCommonExcel.cElementType.bool) { + result = result.toBool(); + } else if (result.getValue) { + result = result.getValue(); + } + } + + if (result == null) { throwException(new Error('Result type error.')); return null; } @@ -1466,96 +1698,111 @@ }; /** - * For Double-byte character set (DBCS) languages, the function changes full-width (double-byte) characters to half-width (single-byte) characters. + * For double-byte character set (DBCS) languages, the function changes full-width (double-byte) characters to half-width (single-byte) characters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text or a reference to a cell containing the text to change. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ASC.js */ ApiWorksheetFunction.prototype.ASC = function (arg1) { return this.private_calculateFunction("ASC", arguments); }; /** - * Returns the character specified by the code number from the character set for your computer. + * Returns the character specified by the code number from your computer's character set. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number between 1 and 255 specifying which character you want. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A number between 1 and 255 specifying a character from the computer character set. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHAR.js */ ApiWorksheetFunction.prototype.CHAR = function (arg1) { return this.private_calculateFunction("CHAR", arguments); }; /** - * Removes all nonprintable characters from text. + * Removes all the nonprintable characters from the text. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is any worksheet information from which you want to remove nonprintable characters. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - A string from which nonprintable characters will be removed. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CLEAN.js */ ApiWorksheetFunction.prototype.CLEAN = function (arg1) { return this.private_calculateFunction("CLEAN", arguments); }; /** - * Returns a numeric code for the first character in a text string, in the character set used by your computer. + * Returns the code number from your computer's character set for the first character in the specified text string. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text for which you want the code of the first character. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text for which to get the code of the first character. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CODE.js */ ApiWorksheetFunction.prototype.CODE = function (arg1) { return this.private_calculateFunction("CODE", arguments); }; /** - * Joins several text strings into one text string. + * Combines multiple text strings into one text string. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg_n - Up to 255 data values that will be combined. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CONCATENATE.js */ ApiWorksheetFunction.prototype.CONCATENATE = function () { return this.private_calculateFunction("CONCATENATE", arguments); }; /** - * Converts a number to text, using currency format. + * Converts a number to text, using a currency format $#.##. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number, a reference to a cell containing a number, or a formula that evaluates to a number. - * @param {?number} arg2 Is the number of digits to the right of the decimal point. The number is rounded as necessary; if omitted, Decimals = 2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string} arg1 - A number, a reference to a cell containing a number, or a formula that returns a number. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A number of digits to the right of the decimal point. The number is rounded as necessary. + * If it is omitted, the function will assume it to be 2. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DOLLAR.js */ ApiWorksheetFunction.prototype.DOLLAR = function (arg1, arg2) { return this.private_calculateFunction("DOLLAR", arguments); }; /** - * Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive. + * Checks whether two text strings are exactly the same, and returns true or false. This function is case-sensitive. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the first text string. - * @param {string} arg2 Is the second text string. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The first text string. + * @param {ApiRange | ApiName | string} arg2 - The second text string. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/EXACT.js */ ApiWorksheetFunction.prototype.EXACT = function (arg1, arg2) { return this.private_calculateFunction("EXACT", arguments); }; /** - * Returns the starting position of one text string within another text string. FIND is case-sensitive. + * Returns the starting position of one text string within another text string. This function is case-sensitive. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text you want to find. Use double quotes (empty text) to match the first character in Within_text; wildcard characters not allowed. - * @param {string} arg2 Is the text containing the text you want to find. - * @param {?number} arg3 Specifies the character at which to start the search. The first character in Within_text is character number 1. If omitted, Start_num = 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text to find. Use double quotes (empty text) to match the first character in the search string. + * Wildcard characters are not allowed. + * @param {ApiRange | ApiName | string} arg2 - The text containing the text to find. + * @param {?ApiRange | ?ApiName | ?number} arg3 - Specifies the character at which to start the search. The first character in the search string is character number 1. + * If omitted, this parameter is equal to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FIND.js */ ApiWorksheetFunction.prototype.FIND = function (arg1, arg2, arg3) { return this.private_calculateFunction("FIND", arguments); }; /** - * Finds the specified substring (string-1) within a string (string-2) and is intended for languages the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.. + * Finds the specified substring within another string and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1. - * @param {string} arg2. - * @param {?number} arg3. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text to find. Use double quotes (empty text) to match the first character in the search string. + * Wildcard characters are not allowed. + * @param {ApiRange | ApiName | string} arg2 - The text containing the text to find. + * @param {?ApiRange | ?ApiName | ?number} arg3 - Specifies the character at which to start the search. The first character in the search string is character number 1. + * If omitted, this parameter is equal to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FINDB.js */ ApiWorksheetFunction.prototype.FINDB = function (arg1, arg2, arg3) { return this.private_calculateFunction("FINDB", arguments); @@ -1564,10 +1811,11 @@ * Rounds a number to the specified number of decimals and returns the result as text with or without commas. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number you want to round and convert to text. - * @param {?number} arg2 Is the number of digits to the right of the decimal point. If omitted, Decimals = 2. - * @param {?boolean} arg3 Is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number to round and convert to text. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of digits to the right of the decimal point. If omitted, the function will assume it to be 2. + * @param {?ApiRange | ?ApiName | ?boolean} arg3 - Specifies whether do display commas in the returned text (false or omitted) or not (true). + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FIXED.js */ ApiWorksheetFunction.prototype.FIXED = function (arg1, arg2, arg3) { return this.private_calculateFunction("FIXED", arguments); @@ -1576,20 +1824,22 @@ * Returns the specified number of characters from the start of a text string. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text string containing the characters you want to extract. - * @param {?number} arg2 Specifies how many characters you want LEFT to extract; 1 if omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text string containing the characters to extract. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A number of the substring characters. It must be greater than or equal to 0. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LEFT.js */ ApiWorksheetFunction.prototype.LEFT = function (arg1, arg2) { return this.private_calculateFunction("LEFT", arguments); }; /** - * Extracts the substring from the specified string starting from the left character and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.. + * Extracts the substring from the specified string starting from the left character and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1. - * @param {?number} arg2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text string containing the characters to extract. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A number of the substring characters, based on bytes. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LEFTB.js */ ApiWorksheetFunction.prototype.LEFTB = function (arg1, arg2) { return this.private_calculateFunction("LEFTB", arguments); @@ -1598,18 +1848,20 @@ * Returns the number of characters in a text string. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text whose length you want to find. Spaces count as characters. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text whose length will be returned. Spaces are considered as characters. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LEN.js */ ApiWorksheetFunction.prototype.LEN = function (arg1) { return this.private_calculateFunction("LEN", arguments); }; /** - * Analyses the specified string and returns the number of characters it contains and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.. + * Analyses the specified string and returns the number of characters it contains and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text whose length will be returned. Spaces are considered as characters. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LENB.js */ ApiWorksheetFunction.prototype.LENB = function (arg1) { return this.private_calculateFunction("LENB", arguments); @@ -1618,8 +1870,9 @@ * Converts all letters in a text string to lowercase. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text you want to convert to lowercase. Characters in Text that are not letters are not changed. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text to convert to lowercase. The text characters that are not letters are not changed. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOWER.js */ ApiWorksheetFunction.prototype.LOWER = function (arg1) { return this.private_calculateFunction("LOWER", arguments); @@ -1628,44 +1881,48 @@ * Returns the characters from the middle of a text string, given a starting position and length. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text string from which you want to extract the characters. - * @param {number} arg2 Is the position of the first character you want to extract. The first character in Text is 1. - * @param {number} arg3 Specifies how many characters to return from Text. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text string from which to extract the characters. + * @param {ApiRange | ApiName | number} arg2 - The position of the first character to extract. The first text character is 1. + * @param {ApiRange | ApiName | number} arg3 - A number of the characters to extract. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MID.js */ ApiWorksheetFunction.prototype.MID = function (arg1, arg2, arg3) { return this.private_calculateFunction("MID", arguments); }; /** - * Extracts the characters from the specified string starting from any position and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.. + * Extracts the characters from the specified string starting from any position and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1. - * @param {number} arg2. - * @param {number} arg3. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text string from which to extract the characters. + * @param {ApiRange | ApiName | number} arg2 - The position of the first character to extract. The first text character is 1. + * @param {ApiRange | ApiName | number} arg3 - A number of the characters to extract, based on bytes. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MIDB.js */ ApiWorksheetFunction.prototype.MIDB = function (arg1, arg2, arg3) { return this.private_calculateFunction("MIDB", arguments); }; /** - * Converts text to number in a locale-independent manner. + * Converts text to a number, in a locale-independent way. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the string representing the number you want to convert. - * @param {?string} arg2 Is the character used as the decimal separator in the string. - * @param {?string} arg3 Is the character used as the group separator in the string. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The string representing a number to convert. + * @param {?ApiRange | ?ApiName | ?string} arg2 - The character used as the decimal separator in the string. + * @param {?ApiRange | ?ApiName | ?string} arg3 - The character used as the group separator in the string. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NUMBERVALUE.js */ ApiWorksheetFunction.prototype.NUMBERVALUE = function (arg1, arg2, arg3) { return this.private_calculateFunction("NUMBERVALUE", arguments); }; /** - * Converts a text string to proper case; the first letter in each word to uppercase, and all other letters to lowercase. + * Converts a text string to proper case: the first letter in each word to uppercase, and all other letters to lowercase. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is text enclosed in quotation marks, a formula that returns text, or a reference to a cell containing text to partially capitalize. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text enclosed in quotation marks, a formula that returns text, or a reference to a cell containing text to partially capitalize. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PROPER.js */ ApiWorksheetFunction.prototype.PROPER = function (arg1) { return this.private_calculateFunction("PROPER", arguments); @@ -1674,35 +1931,38 @@ * Replaces part of a text string with a different text string. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is text in which you want to replace some characters. - * @param {number} arg2 Is the position of the character in Old_text that you want to replace with New_text. - * @param {number} arg3 Is the number of characters in Old_text that you want to replace. - * @param {string} arg4 Is the text that will replace characters in Old_text. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text where some characters will be replaced. + * @param {ApiRange | ApiName | number} arg2 - The position of the character in the original text that will be replaced with the new text. + * @param {ApiRange | ApiName | number} arg3 - The number of characters in the original text that will be replaced. + * @param {ApiRange | ApiName | string} arg4 - The text that will replace characters in the original text. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/REPLACE.js */ ApiWorksheetFunction.prototype.REPLACE = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("REPLACE", arguments); }; /** - * Replaces a set of characters, based on the number of characters and the start position you specify, with a new set of characters and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.. + * Replaces a set of characters, based on the number of characters and the start position specified, with a new set of characters and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1. - * @param {number} arg2. - * @param {number} arg3. - * @param {string} arg4. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text where some characters will be replaced. + * @param {ApiRange | ApiName | number} arg2 - The position of the character in the original text that will be replaced with the new text. + * @param {ApiRange | ApiName | number} arg3 - The number of characters in the original text that will be replaced, based on bytes. + * @param {ApiRange | ApiName | string} arg4 - The text that will replace characters in the original text. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/REPLACEB.js */ ApiWorksheetFunction.prototype.REPLACEB = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("REPLACEB", arguments); }; /** - * Repeats text a given number of times. Use REPT to fill a cell with a number of instances of a text string. + * Repeats text a given number of times. Use this function to fill a cell with a number of instances of a text string. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text you want to repeat. - * @param {number} arg2 Is a positive number specifying the number of times to repeat text. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text that will be repeated. + * @param {ApiRange | ApiName | number} arg2 - A positive number specifying the number of times to repeat text. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/REPT.js */ ApiWorksheetFunction.prototype.REPT = function (arg1, arg2) { return this.private_calculateFunction("REPT", arguments); @@ -1711,20 +1971,22 @@ * Returns the specified number of characters from the end of a text string. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text string that contains the characters you want to extract. - * @param {?number} arg2 Specifies how many characters you want to extract, 1 if omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text string that contains the characters to extract. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A number of the substring characters. If it is omitted, the function will assume it to be 1. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RIGHT.js */ ApiWorksheetFunction.prototype.RIGHT = function (arg1, arg2) { return this.private_calculateFunction("RIGHT", arguments); }; /** - * Extracts a substring from a string starting from the right-most character, based on the specified number of characters and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.. + * Extracts a substring from a string starting from the right-most character, based on the specified number of characters and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1. - * @param {?number} arg2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text string that contains the characters to extract. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A number of the substring characters, based on bytes. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RIGHTB.js */ ApiWorksheetFunction.prototype.RIGHTB = function (arg1, arg2) { return this.private_calculateFunction("RIGHTB", arguments); @@ -1733,22 +1995,24 @@ * Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text you want to find. You can use the ? and * wildcard characters; use ~? and ~* to find the ? and * characters. - * @param {string} arg2 Is the text in which you want to search for Find_text. - * @param {?number} arg3 Is the character number in Within_text, counting from the left, at which you want to start searching. If omitted, 1 is used. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text to find. The ? and * wildcard characters can be used. Use ~? and ~* to find the ? and * characters. + * @param {ApiRange | ApiName | string} arg2 - The text where to search for the specified text. + * @param {?ApiRange | ?ApiName | ?number} arg3 - The character number in the search text, counting from the left, at which to start searching. If omitted, 1 is used. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SEARCH.js */ ApiWorksheetFunction.prototype.SEARCH = function (arg1, arg2, arg3) { return this.private_calculateFunction("SEARCH", arguments); }; /** - * Returns the location of the specified substring in a string and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.. + * Returns the location of the specified substring in a string and is intended for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1. - * @param {string} arg2. - * @param {?number} arg3. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text to find. The ? and * wildcard characters can be used. Use ~? and ~* to find the ? and * characters. + * @param {ApiRange | ApiName | string} arg2 - The text where to search for the specified text. + * @param {?ApiRange | ApiName | ?number} arg3 - The character number in the search text, counting from the left, at which to start searching. If omitted, 1 is used. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SEARCHB.js */ ApiWorksheetFunction.prototype.SEARCHB = function (arg1, arg2, arg3) { return this.private_calculateFunction("SEARCHB", arguments); @@ -1757,11 +2021,12 @@ * Replaces existing text with new text in a text string. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text or the reference to a cell containing text in which you want to substitute characters. - * @param {string} arg2 Is the existing text you want to replace. If the case of Old_text does not match the case of text, SUBSTITUTE will not replace the text. - * @param {string} arg3 Is the text you want to replace Old_text with. - * @param {?string} arg4 Specifies which occurrence of Old_text you want to replace. If omitted, every instance of Old_text is replaced. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text or the reference to a cell containing text in which the characters will be substituted. + * @param {ApiRange | ApiName | string} arg2 - The existing text to replace. If the case of the original text does not match the case of text, the function will not replace the text. + * @param {ApiRange | ApiName | string} arg3 - The text to replace the original text with. + * @param {?ApiRange | ?ApiName | ?string} arg4 - Specifies which occurrence of the original text to replace. If omitted, every instance of the original text will be replaced. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SUBSTITUTE.js */ ApiWorksheetFunction.prototype.SUBSTITUTE = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("SUBSTITUTE", arguments); @@ -1770,8 +2035,9 @@ * Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value to test. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string | boolean} arg1 - The value to test. + * @returns {ApiRange | ApiName | string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/T.js */ ApiWorksheetFunction.prototype.T = function (arg1) { return this.private_calculateFunction("T", arguments); @@ -1780,9 +2046,10 @@ * Converts a value to text in a specific number format. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value. - * @param {string} arg2 Is a number format in text form from the Category box on the Number tab in the Format Cells dialog box. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string} arg1 - A number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value. + * @param {ApiRange | ApiName | string} arg2 - A number format in the text form from the Number format combo box on the Home tab. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TEXT.js */ ApiWorksheetFunction.prototype.TEXT = function (arg1, arg2) { return this.private_calculateFunction("TEXT", arguments); @@ -1791,8 +2058,9 @@ * Removes all spaces from a text string except for single spaces between words. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text from which you want spaces removed. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text from which the spaces will be removed. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TRIM.js */ ApiWorksheetFunction.prototype.TRIM = function (arg1) { return this.private_calculateFunction("TRIM", arguments); @@ -1801,8 +2069,9 @@ * Returns the Unicode character referenced by the given numeric value. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the Unicode number representing a character. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The Unicode number representing a character. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/UNICHAR.js */ ApiWorksheetFunction.prototype.UNICHAR = function (arg1) { return this.private_calculateFunction("UNICHAR", arguments); @@ -1811,8 +2080,9 @@ * Returns the number (code point) corresponding to the first character of the text. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the character that you want the Unicode value of. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The character for which the Unicode value will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/UNICODE.js */ ApiWorksheetFunction.prototype.UNICODE = function (arg1) { return this.private_calculateFunction("UNICODE", arguments); @@ -1821,8 +2091,9 @@ * Converts a text string to all uppercase letters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text you want converted to uppercase, a reference or a text string. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text which will be converted to uppercase, a reference or a text string. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/UPPER.js */ ApiWorksheetFunction.prototype.UPPER = function (arg1) { return this.private_calculateFunction("UPPER", arguments); @@ -1831,56 +2102,74 @@ * Converts a text string that represents a number to a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text enclosed in quotation marks or a reference to a cell containing the text which will be converted to a number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VALUE.js */ ApiWorksheetFunction.prototype.VALUE = function (arg1) { return this.private_calculateFunction("VALUE", arguments); }; /** - * Returns the average of the absolute deviations of data points from their mean. Arguments can be numbers or names, arrays or references that contain numbers. + * Returns the average of the absolute deviations of data points from their mean. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | number[]} args - Up to 255 numeric values for which the average of the absolute deviations will be returned. The first argument is required, + * subsequent arguments are optional. Arguments can be numbers, names, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AVEDEV.js */ ApiWorksheetFunction.prototype.AVEDEV = function () { return this.private_calculateFunction("AVEDEV", arguments); }; /** - * Returns the average (arithmetic mean) of its arguments, which can be numbers or names, arrays or references that contain numbers. + * Returns the average (arithmetic mean) of the specified arguments. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | number[]} args - Up to 255 numeric values for which the average value will be returned. The first argument is required, + * subsequent arguments are optional. Arguments can be numbers, names, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AVERAGE.js */ ApiWorksheetFunction.prototype.AVERAGE = function () { return this.private_calculateFunction("AVERAGE", arguments); }; /** - * Returns the average (arithmetic mean) of its arguments, evaluating text and FALSE in arguments as 0; TRUE evaluates as 1. Arguments can be numbers, names, arrays or references. + * Returns the average (arithmetic mean) of the specified arguments, evaluating text and false in arguments as 0; true evaluates as 1. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string | number[]} args - Up to 255 numeric values for which the average value will be returned. The first argument is required, + * subsequent arguments are optional. Arguments can be numbers, text, or logical values, such as true and false, names, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AVERAGEA.js */ ApiWorksheetFunction.prototype.AVERAGEA = function () { return this.private_calculateFunction("AVERAGEA", arguments); }; /** - * Finds average (arithmetic mean) for the cells specified by a given condition or criteria. + * Finds the average (arithmetic mean) for the cells specified by a given condition or criteria. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells you want evaluated. - * @param {any} arg2 Is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average. - * @param {?ApiRange} arg3 Are the actual cells to be used to find the average. If omitted, the cells in range are used. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells which will be evaluated. + * @param {ApiRange | ApiName | number | string} arg2 - The condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average. + * @param {?ApiRange | ?ApiName} arg3 - The actual cells to be used to find the average. If omitted, the cells in the range are used. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AVERAGEIF.js */ ApiWorksheetFunction.prototype.AVERAGEIF = function (arg1, arg2, arg3) { return this.private_calculateFunction("AVERAGEIF", arguments); }; /** - * Finds average (arithmetic mean) for the cells specified by a given set of conditions or criteria. + * Finds the average (arithmetic mean) for the cells specified by a given set of conditions or criteria. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells which will be evaluated. + * @param {ApiRange | ApiName | number | string} arg2 - The first condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average. + * @param {?ApiRange | ?ApiName} arg3 - The actual cells to be used to find the average. If omitted, the cells in the range are used. + * @param {?ApiRange | ?ApiName | ?number | ?string} arg4 - Up to 127 additional conditions or criteria in the form of a number, expression, or text that defines which cells will be used to find the average. + * These arguments are optional. + * @param {?ApiRange | ?ApiName} arg5 - Up to 127 actual ranges to be used to find the average. If omitted, the cells in the range are used. These arguments are optional. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AVERAGEIFS.js */ ApiWorksheetFunction.prototype.AVERAGEIFS = function () { return this.private_calculateFunction("AVERAGEIFS", arguments); @@ -1889,12 +2178,13 @@ * Returns the cumulative beta probability density function. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value between A and B at which to evaluate the function. - * @param {number} arg2 Is a parameter to the distribution and must be greater than 0. - * @param {number} arg3 Is a parameter to the distribution and must be greater than 0. - * @param {?number} arg4 Is an optional lower bound to the interval of x. If omitted, A = 0. - * @param {?number} arg5 Is an optional upper bound to the interval of x. If omitted, B = 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value between A and B at which to evaluate the function. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution which must be greater than 0. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution which must be greater than 0. + * @param {?ApiRange | ?ApiName | ?number} arg4 - An optional lower bound to the interval of x (A). If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg5 - An optional upper bound to the interval of x (B). If omitted, it is equal to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BETADIST.js */ ApiWorksheetFunction.prototype.BETADIST = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("BETADIST", arguments); @@ -1903,41 +2193,44 @@ * Returns the beta probability distribution function. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value between A and B at which to evaluate the function. - * @param {number} arg2 Is a parameter to the distribution and must be greater than 0. - * @param {number} arg3 Is a parameter to the distribution and must be greater than 0. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE. - * @param {?number} arg5 Is an optional lower bound to the interval of x. If omitted, A = 0. - * @param {?number} arg6 Is an optional upper bound to the interval of x. If omitted, B = 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value between A and B at which to evaluate the function. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution which must be greater than 0. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution which must be greater than 0. + * @param {ApiRange | ApiName | boolean} arg4 - Specifies if this is the cumulative distribution function (true) or the probability density function (false). + * @param {?ApiRange | ?ApiName | ?number} arg5 - An optional lower bound to the interval of x (A). If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg6 - An optional upper bound to the interval of x (B). If omitted, it is equal to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BETA_DIST.js */ ApiWorksheetFunction.prototype.BETA_DIST = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("BETA.DIST", arguments); }; /** - * Returns the inverse of the cumulative beta probability density function (BETA.DIST). + * Returns the inverse of the cumulative beta probability density function (BETA_DIST). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the beta distribution. - * @param {number} arg2 Is a parameter to the distribution and must be greater than 0. - * @param {number} arg3 Is a parameter to the distribution and must be greater than 0. - * @param {?number} arg4 Is an optional lower bound to the interval of x. If omitted, A = 0. - * @param {?number} arg5 Is an optional upper bound to the interval of x. If omitted, B = 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the beta distribution. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution which must be greater than 0. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution which must be greater than 0. + * @param {?ApiRange | ?ApiName | ?number} arg4 - An optional lower bound to the interval of x (A). If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg5 - An optional upper bound to the interval of x (B). If omitted, it is equal to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BETA_INV.js */ ApiWorksheetFunction.prototype.BETA_INV = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("BETA.INV", arguments); }; /** - * Returns the inverse of the cumulative beta probability density function (BETADIST). + * Returns the inverse of the cumulative beta probability density function for a specified beta distribution (BETADIST). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the beta distribution. - * @param {number} arg2 Is a parameter to the distribution and must be greater than 0. - * @param {number} arg3 Is a parameter to the distribution and must be greater than 0. - * @param {?number} arg4 Is an optional lower bound to the interval of x. If omitted, A = 0. - * @param {?number} arg5 Is an optional upper bound to the interval of x. If omitted, B = 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the beta distribution. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution which must be greater than 0. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution which must be greater than 0. + * @param {?ApiRange | ?ApiName | ?number} arg4 - An optional lower bound to the interval of x (A). If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg5 - An optional upper bound to the interval of x (B). If omitted, it is equal to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BETAINV.js */ ApiWorksheetFunction.prototype.BETAINV = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("BETAINV", arguments); @@ -1946,11 +2239,12 @@ * Returns the individual term binomial distribution probability. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of successes in trials. - * @param {number} arg2 Is the number of independent trials. - * @param {number} arg3 Is the probability of success on each trial. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of successes in trials. + * @param {ApiRange | ApiName | number} arg2 - The number of independent trials. + * @param {ApiRange | ApiName | number} arg3 - The probability of success on each trial. + * @param {ApiRange | ApiName | boolean} arg4 - Specifies if this is the cumulative distribution function (true) or the probability mass function (false). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BINOMDIST.js */ ApiWorksheetFunction.prototype.BINOMDIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("BINOMDIST", arguments); @@ -1959,11 +2253,12 @@ * Returns the individual term binomial distribution probability. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of successes in trials. - * @param {number} arg2 Is the number of independent trials. - * @param {number} arg3 Is the probability of success on each trial. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of successes in trials. + * @param {ApiRange | ApiName | number} arg2 - The number of independent trials. + * @param {ApiRange | ApiName | number} arg3 - The probability of success on each trial. + * @param {ApiRange | ApiName | boolean} arg4 - Specifies if this is the cumulative distribution function (true) or the probability mass function (false). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BINOM_DIST.js */ ApiWorksheetFunction.prototype.BINOM_DIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("BINOM.DIST", arguments); @@ -1972,11 +2267,13 @@ * Returns the probability of a trial result using a binomial distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of independent trials. - * @param {number} arg2 Is the probability of success on each trial. - * @param {number} arg3 Is the number of successes in trials. - * @param {?number} arg4 If provided this function returns the probability that the number of successful trials shall lie between number_s and number_s2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of independent trials. + * @param {ApiRange | ApiName | number} arg2 - The probability of success on each trial. + * @param {ApiRange | ApiName | number} arg3 - The minimum number of successes in the trials to calculate probability for, a numeric value greater than or equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The maximum number of successes in the trials to calculate probability for, + * a numeric value greater than the minimum number of successes and less than or equal to trials. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BINOM_DIST_RANGE.js */ ApiWorksheetFunction.prototype.BINOM_DIST_RANGE = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("BINOM.DIST.RANGE", arguments); @@ -1985,10 +2282,11 @@ * Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of Bernoulli trials. - * @param {number} arg2 Is the probability of success on each trial, a number between 0 and 1 inclusive. - * @param {number} arg3 Is the criterion value, a number between 0 and 1 inclusive. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of Bernoulli trials. + * @param {ApiRange | ApiName | number} arg2 - The probability of success on each trial, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg3 - The criterion value, a number between 0 and 1 inclusive. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BINOM_INV.js */ ApiWorksheetFunction.prototype.BINOM_INV = function (arg1, arg2, arg3) { return this.private_calculateFunction("BINOM.INV", arguments); @@ -1997,9 +2295,10 @@ * Returns the right-tailed probability of the chi-squared distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which you want to evaluate the distribution, a nonnegative number. - * @param {number} arg2 Is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which the distribution will be evaluated, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHIDIST.js */ ApiWorksheetFunction.prototype.CHIDIST = function (arg1, arg2) { return this.private_calculateFunction("CHIDIST", arguments); @@ -2008,9 +2307,10 @@ * Returns the inverse of the right-tailed probability of the chi-squared distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive. - * @param {number} arg2 Is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the chi-squared distribution, a value between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - The number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHIINV.js */ ApiWorksheetFunction.prototype.CHIINV = function (arg1, arg2) { return this.private_calculateFunction("CHIINV", arguments); @@ -2019,10 +2319,12 @@ * Returns the left-tailed probability of the chi-squared distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which you want to evaluate the distribution, a nonnegative number. - * @param {number} arg2 Is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @param {boolean} arg3 Is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which the distribution will be evaluated, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @param {ApiRange | ApiName | boolean} arg3 - A logical value that determines the form of the function. If this argument is equal to true, + * the cumulative distribution function is returned; if it is equal to false, the probability density function is returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHISQ_DIST.js */ ApiWorksheetFunction.prototype.CHISQ_DIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("CHISQ.DIST", arguments); @@ -2031,9 +2333,10 @@ * Returns the right-tailed probability of the chi-squared distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which you want to evaluate the distribution, a nonnegative number. - * @param {number} arg2 Is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which the distribution will be evaluated, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHISQ_DIST_RT.js */ ApiWorksheetFunction.prototype.CHISQ_DIST_RT = function (arg1, arg2) { return this.private_calculateFunction("CHISQ.DIST.RT", arguments); @@ -2042,9 +2345,10 @@ * Returns the inverse of the left-tailed probability of the chi-squared distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive. - * @param {number} arg2 Is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the chi-squared distribution, a value between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2- The number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHISQ_INV.js */ ApiWorksheetFunction.prototype.CHISQ_INV = function (arg1, arg2) { return this.private_calculateFunction("CHISQ.INV", arguments); @@ -2053,9 +2357,10 @@ * Returns the inverse of the right-tailed probability of the chi-squared distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive. - * @param {number} arg2 Is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the chi-squared distribution, a value between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - The number of degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHISQ_INV_RT.js */ ApiWorksheetFunction.prototype.CHISQ_INV_RT = function (arg1, arg2) { return this.private_calculateFunction("CHISQ.INV.RT", arguments); @@ -2079,9 +2384,10 @@ * Returns the test for independence: the value from the chi-squared distribution for the statistic and the appropriate degrees of freedom. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the range of data that contains observations to test against expected values. - * @param {any} arg2 Is the range of data that contains the ratio of the product of row totals and column totals to the grand total. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string | boolean} arg1 - The range of data that contains observations to test against expected values. + * @param {ApiRange | ApiName | number | string | boolean} arg2 - The range of data that contains the ratio of the product of row totals and column totals to the grand total. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHITEST.js */ ApiWorksheetFunction.prototype.CHITEST = function (arg1, arg2) { return this.private_calculateFunction("CHITEST", arguments); @@ -2102,10 +2408,11 @@ * Returns the confidence interval for a population mean, using a normal distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the significance level used to compute the confidence level, a number greater than 0 and less than 1. - * @param {number} arg2 Is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0. - * @param {number} arg3 Is the sample size. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The significance level used to compute the confidence level, a number greater than 0 and less than 1. + * @param {ApiRange | ApiName | number} arg2 - The population standard deviation for the data range and is assumed to be known. This value must be greater than 0. + * @param {ApiRange | ApiName | number} arg3 - The sample size. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CONFIDENCE.js */ ApiWorksheetFunction.prototype.CONFIDENCE = function (arg1, arg2, arg3) { return this.private_calculateFunction("CONFIDENCE", arguments); @@ -2114,22 +2421,24 @@ * Returns the confidence interval for a population mean, using a normal distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the significance level used to compute the confidence level, a number greater than 0 and less than 1. - * @param {number} arg2 Is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0. - * @param {number} arg3 Is the sample size. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The significance level used to compute the confidence level, a number greater than 0 and less than 1. + * @param {ApiRange | ApiName | number} arg2 - The population standard deviation for the data range and is assumed to be known. This value must be greater than 0. + * @param {ApiRange | ApiName | number} arg3 - The sample size. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CONFIDENCE_NORM.js */ ApiWorksheetFunction.prototype.CONFIDENCE_NORM = function (arg1, arg2, arg3) { return this.private_calculateFunction("CONFIDENCE.NORM", arguments); }; /** - * Returns the confidence interval for a population mean, using a Student's T distribution. + * Returns the confidence interval for a population mean, using a Student's t distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the significance level used to compute the confidence level, a number greater than 0 and less than 1. - * @param {number} arg2 Is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0. - * @param {number} arg3 Is the sample size. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The significance level used to compute the confidence level, a number greater than 0 and less than 1. + * @param {ApiRange | ApiName | number} arg2 - The population standard deviation for the data range and is assumed to be known. This value must be greater than 0. + * @param {ApiRange | ApiName | number} arg3 - The sample size. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CONFIDENCE_T.js */ ApiWorksheetFunction.prototype.CONFIDENCE_T = function (arg1, arg2, arg3) { return this.private_calculateFunction("CONFIDENCE.T", arguments); @@ -2147,49 +2456,62 @@ // return this.private_calculateFunction("CORREL", arguments); // }; /** - * Counts the number of cells in a range that contain numbers. + * Counts a number of cells in a range that contains numbers ignoring empty cells or those contaning text. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {string | number | boolean | ApiRange | array | ApiName} args - Up to 255 items, or ranges to count numbers. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, logical values and text representations of numbers, ranges, names, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUNT.js */ ApiWorksheetFunction.prototype.COUNT = function () { return this.private_calculateFunction("COUNT", arguments); }; /** - * Counts the number of cells in a range that are not empty. + * Counts a number of cells in a range that are not empty. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {string | number | boolean | ApiRange | array | ApiName} args - Up to 255 items, or ranges to count values. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, logical values, text strings, ranges, names, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUNTA.js */ ApiWorksheetFunction.prototype.COUNTA = function () { return this.private_calculateFunction("COUNTA", arguments); }; /** - * Counts the number of empty cells in a specified range of cells. + * Counts a number of empty cells in a specified range of cells. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range from which you want to count the empty cells. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range to count the empty cells. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUNTBLANK.js */ ApiWorksheetFunction.prototype.COUNTBLANK = function (arg1) { return this.private_calculateFunction("COUNTBLANK", arguments); }; /** - * Counts the number of cells within a range that meet the given condition. + * Counts a number of cells within a range that meet the given condition. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells from which you want to count nonblank cells. - * @param {any} arg2 Is the condition in the form of a number, expression, or text that defines which cells will be counted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells to count nonblank cells. + * @param {ApiRange | ApiName | number | string} arg2 - The condition in the form of a number, expression, or text that defines which cells will be counted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUNTIF.js */ ApiWorksheetFunction.prototype.COUNTIF = function (arg1, arg2) { return this.private_calculateFunction("COUNTIF", arguments); }; /** - * Counts the number of cells specified by a given set of conditions or criteria. + * Counts a number of cells specified by a given set of conditions or criteria. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The first range of cells to count nonblank cells. + * @param {ApiRange | ApiName | number | string} arg2 - The first condition in the form of a number, expression, or text that defines which cells will be counted. + * @param {ApiRange | ApiName} arg3 - Up to 127 additional ranges of cells to count nonblank cells. This argument is optional. + * @param {ApiRange | ApiName | number | string} arg4 - Up to 127 additional conditions in the form of a number, expression, or text that define which cells will be counted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUNTIFS.js */ ApiWorksheetFunction.prototype.COUNTIFS = function () { return this.private_calculateFunction("COUNTIFS", arguments); @@ -2237,10 +2559,11 @@ * Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of Bernoulli trials. - * @param {number} arg2 Is the probability of success on each trial, a number between 0 and 1 inclusive. - * @param {number} arg3 Is the criterion value, a number between 0 and 1 inclusive. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of Bernoulli trials. + * @param {ApiRange | ApiName | number} arg2 - The probability of success on each trial, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg3 - The criterion value, a number between 0 and 1 inclusive. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CRITBINOM.js */ ApiWorksheetFunction.prototype.CRITBINOM = function (arg1, arg2, arg3) { return this.private_calculateFunction("CRITBINOM", arguments); @@ -2249,7 +2572,10 @@ * Returns the sum of squares of deviations of data points from their sample mean. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | number[]} args - Up to 255 numerical values for which to find the sum of squares of deviations. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DEVSQ.js */ ApiWorksheetFunction.prototype.DEVSQ = function () { return this.private_calculateFunction("DEVSQ", arguments); @@ -2258,10 +2584,12 @@ * Returns the exponential distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value of the function, a nonnegative number. - * @param {number} arg2 Is the parameter value, a positive number. - * @param {boolean} arg3 Is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value of the x function, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The lambda parameter value, a positive number. + * @param {ApiRange | ApiName | boolean} arg3 - A logical value that determines the function form. If this parameter is true, + * the function will return the cumulative distribution function, if it is false, it will return the probability density function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/EXPON_DIST.js */ ApiWorksheetFunction.prototype.EXPON_DIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("EXPON.DIST", arguments); @@ -2270,10 +2598,12 @@ * Returns the exponential distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value of the function, a nonnegative number. - * @param {number} arg2 Is the parameter value, a positive number. - * @param {boolean} arg3 Is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value of the x function, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The lambda parameter value, a positive number. + * @param {ApiRange | ApiName | boolean} arg3 - A logical value that determines the function form. If this parameter is true, + * the function will return the cumulative distribution function, if it is false, it will return the probability density function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/EXPONDIST.js */ ApiWorksheetFunction.prototype.EXPONDIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("EXPONDIST", arguments); @@ -2282,11 +2612,13 @@ * Returns the (left-tailed) F probability distribution (degree of diversity) for two data sets. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which to evaluate the function, a nonnegative number. - * @param {number} arg2 Is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @param {number} arg3 Is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @param {boolean} arg4 Is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @param {ApiRange | ApiName | number} arg3 - The denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value that determines the function form. If this parameter is true, + * the function will return the cumulative distribution function, if it is false, it will return the probability density function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/F_DIST.js */ ApiWorksheetFunction.prototype.F_DIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("F.DIST", arguments); @@ -2295,10 +2627,11 @@ * Returns the (right-tailed) F probability distribution (degree of diversity) for two data sets. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which to evaluate the function, a nonnegative number. - * @param {number} arg2 Is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @param {number} arg3 Is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @param {ApiRange | ApiName | number} arg3 - The denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FDIST.js */ ApiWorksheetFunction.prototype.FDIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("FDIST", arguments); @@ -2307,10 +2640,11 @@ * Returns the (right-tailed) F probability distribution (degree of diversity) for two data sets. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which to evaluate the function, a nonnegative number. - * @param {number} arg2 Is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @param {number} arg3 Is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @param {ApiRange | ApiName | number} arg3 - The denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/F_DIST_RT.js */ ApiWorksheetFunction.prototype.F_DIST_RT = function (arg1, arg2, arg3) { return this.private_calculateFunction("F.DIST.RT", arguments); @@ -2319,10 +2653,11 @@ * Returns the inverse of the (left-tailed) F probability distribution: if p = F.DIST(x,...), then F.INV(p,...) = x. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive. - * @param {number} arg2 Is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @param {number} arg3 Is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the F cumulative distribution, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - The numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @param {ApiRange | ApiName | number} arg3 - The denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/F_INV.js */ ApiWorksheetFunction.prototype.F_INV = function (arg1, arg2, arg3) { return this.private_calculateFunction("F.INV", arguments); @@ -2331,10 +2666,11 @@ * Returns the inverse of the (right-tailed) F probability distribution: if p = FDIST(x,...), then FINV(p,...) = x. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive. - * @param {number} arg2 Is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @param {number} arg3 Is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the F cumulative distribution, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - The numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @param {ApiRange | ApiName | number} arg3 - The denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FINV.js */ ApiWorksheetFunction.prototype.FINV = function (arg1, arg2, arg3) { return this.private_calculateFunction("FINV", arguments); @@ -2343,10 +2679,11 @@ * Returns the inverse of the (right-tailed) F probability distribution: if p = F.DIST.RT(x,...), then F.INV.RT(p,...) = x. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive. - * @param {number} arg2 Is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @param {number} arg3 Is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the F cumulative distribution, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - The numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @param {ApiRange | ApiName | number} arg3 - The denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/F_INV_RT.js */ ApiWorksheetFunction.prototype.F_INV_RT = function (arg1, arg2, arg3) { return this.private_calculateFunction("F.INV.RT", arguments); @@ -2355,8 +2692,9 @@ * Returns the Fisher transformation. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want the transformation, a number between -1 and 1, excluding -1 and 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for the transformation, a number between -1 and 1, excluding -1 and 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FISHER.js */ ApiWorksheetFunction.prototype.FISHER = function (arg1) { return this.private_calculateFunction("FISHER", arguments); @@ -2365,8 +2703,9 @@ * Returns the inverse of the Fisher transformation: if y = FISHER(x), then FISHERINV(y) = x. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want to perform the inverse of the transformation. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to perform the inverse of the transformation. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FISHERINV.js */ ApiWorksheetFunction.prototype.FISHERINV = function (arg1) { return this.private_calculateFunction("FISHERINV", arguments); @@ -2376,7 +2715,7 @@ // * Calculates, or predicts, a future value along a linear trend by using existing values. // * @memberof ApiWorksheetFunction // * @typeofeditors ["CSE"] - // * @param {number} arg1 Is the data point for which you want to predict a value and must be a numeric value. + // * @param {ApiRange | ApiName | number} arg1 Is the data point for which you want to predict a value and must be a numeric value. // * @param {any} arg2 Is the dependent array or range of numeric data. // * @param {any} arg3 Is the independent array or range of numeric data. The variance of Known_x's must not be zero. // * @returns {number | string | boolean} @@ -2385,60 +2724,99 @@ // return this.private_calculateFunction("FORECAST", arguments); // }; /** - * Returns the forecasted value for a specific future target date using exponential smoothing method.. + * A numeric value that specifies which function should be used to aggregate identical time values in the timeline data range. + * 1 (or omitted) - AVERAGE. + * 2 - COUNT. + * 3 - COUNTA. + * 4 - MAX. + * 5 - MEDIAN. + * 6 - MIN. + * 7 - SUM. + * @typedef {(1 | 2 | 3 | 4 | 5 | 6 | 7)} Aggregation + * @see office-js-api/Examples/Enumerations/Aggregation.js + */ + + /** + * Сalculates or predicts a future value based on existing (historical) values by using the AAA version of the Exponential Smoothing (ETS) algorithm. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1. - * @param {ApiRange} arg2. - * @param {ApiRange} arg3. - * @param {?number} arg4. - * @param {?number} arg5. - * @param {?number} arg6. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A date for which a new value will be predicted. Must be after the last date in the timeline. + * @param {ApiRange | ApiName | number[]} arg2 - A range or an array of numeric data that determines the historical values for which a new point will be predicted. + * @param {ApiRange | ApiName} arg3 - A range of date/time values that correspond to the historical values. + * The timeline range must be of the same size as the second argument. Date/time values must have a constant step between them and can't be zero. + * @param {?ApiRange | ?ApiName | ?number} arg4 - An optional numeric value that specifies the length of the seasonal pattern. The default value of 1 indicates seasonality is detected automatically. + * The 0 value means no seasonality. + * @param {?ApiRange | ?ApiName | ?number} arg5 - An optional numeric value to handle missing values. The default value of 1 replaces missing values by interpolation, and 0 replaces them with zeros. + * @param {?ApiRange | ?ApiName | ?number} arg6 - An optional numeric value to aggregate multiple values with the same time stamp. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FORECAST_ETS.js */ ApiWorksheetFunction.prototype.FORECAST_ETS = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("FORECAST.ETS", arguments); }; /** - * Returns a confidence interval for the forecast value at the specified target date.. + * Returns a confidence interval for the forecast value at the specified target date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the data point for which Microsoft Excel predicts a value. It should carry on the pattern of values in the timeline.. - * @param {ApiRange} arg2 Is the array or range of numeric data you're predicting.. - * @param {ApiRange} arg3 Is the independent array or range of numeric data. The dates in the timeline must have a consistent step between them and can't be zero.. - * @param {?number} arg4 Is a number between 0 and 1 that shows the confidence level for the calculated confidence interval. The default value is .95.. - * @param {?number} arg5 Is an optional numeric value that indicates the length of the seasonal pattern. The default value of 1 indicates seasonality is detected automatically.. - * @param {?number} arg6 Is an optional value for handling missing values. The default value of 1 replaces missing values by interpolation, and 0 replaces them with zeros.. - * @param {?number} arg7 Is an optional numeric value for aggregating multiple values with the same time stamp. If blank, Microsoft Excel . - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A date for which a new value will be predicted. Must be after the last date in the timeline. + * @param {ApiRange | ApiName | number[]} arg2 - A range or an array of numeric data that determines the historical values for which a new point will be predicted. + * @param {ApiRange | ApiName} arg3 - A range of date/time values that correspond to the historical values. + * The timeline range must be of the same size as the second argument. Date/time values must have a constant step between them and can't be zero. + * @param {?ApiRange | ?ApiName | ?number} arg4 - A number between 0 and 1 that shows the confidence level for the calculated confidence interval. The default value is .95. + * @param {?ApiRange | ?ApiName | ?number} arg5 - An optional numeric value that specifies the length of the seasonal pattern. The default value of 1 indicates seasonality is detected automatically. + * The 0 value means no seasonality. + * @param {?ApiRange | ?ApiName | ?number} arg6 - An optional numeric value to handle missing values. The default value of 1 replaces missing values by interpolation, and 0 replaces them with zeros. + * @param {?ApiRange | ?ApiName | ?number} arg7 - An optional numeric value to aggregate multiple values with the same time stamp. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FORECAST_ETS_CONFINT.js */ ApiWorksheetFunction.prototype.FORECAST_ETS_CONFINT = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this.private_calculateFunction("FORECAST.ETS.CONFINT", arguments); }; /** - * Returns the length of the repetitive pattern an application detects for the specified time series.. + * Returns the length of the repetitive pattern an application detects for the specified time series. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the array or range of numeric data you're predicting.. - * @param {ApiRange} arg2 Is the independent array or range of numeric data. The dates in the timeline must have a consistent step between them and can't be zero.. - * @param {?number} arg3 Is an optional value for handling missing values. The default value of 1 replaces missing values by interpolation, and 0 replaces them with zeros.. - * @param {?number} arg4 Is an optional numeric value for aggregating multiple values with the same time stamp. If blank, Microsoft Excel averages the values.. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - A range or an array of numeric data that determines the historical values for which a new point will be predicted. + * @param {ApiRange | ApiName} arg2 - A range of date/time values that correspond to the historical values. + * The timeline range must be of the same size as the second argument. Date/time values must have a constant step between them and can't be zero. + * @param {?ApiRange | ?ApiName | ?number} arg3 - An optional numeric value to handle missing values. The default value of 1 replaces missing values by interpolation, and 0 replaces them with zeros. + * @param {?ApiRange | ?ApiName | ?number} arg4 - An optional numeric value to aggregate multiple values with the same time stamp. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FORECAST_ETS_SEASONALITY.js */ ApiWorksheetFunction.prototype.FORECAST_ETS_SEASONALITY = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("FORECAST.ETS.SEASONALITY", arguments); }; + /** - * Returns the requested statistic for the forecast.. + * A numeric value between 1 and 8 that specifies which statistic will be returned. + * 1 - Alpha parameter of ETS algorithm - the base value parameter. + * 2 - Beta parameter of ETS algorithm - the trend value parameter. + * 3 - Gamma parameter of ETS algorithm - the seasonality value parameter. + * 4 - MASE (mean absolute scaled error) metric - a measure of the accuracy of forecasts. + * 5 - SMAPE (symmetric mean absolute percentage error) metric - a measure of the accuracy based on percentage errors. + * 6 - MAE (mean absolute error) metric - a measure of the accuracy of forecasts. + * 7 - RMSE (root mean squared error) metric - a measure of the differences between predicted and observed values. + * 8 - Step size detected in the timeline. + * @typedef {(1 | 2 | 3 | 4 | 5 | 6 | 7 | 8)} StatisticType + * @see office-js-api/Examples/Enumerations/StatisticType.js + */ + + /** + * Returns the requested statistic for the forecast. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the array or range of numeric data you're predicting.. - * @param {ApiRange} arg2 Is the independent array or range of numeric data. The dates in the timeline must have a consistent step between them and can't be zero.. - * @param {number} arg3 Is a number between 1 and 8, indicating which statistic Microsoft Excel will return for the calculated forecast.. - * @param {?number} arg4 Is an optional numeric value that indicates the length of the seasonal pattern. The default value of 1 indicates seasonality is detected automatically.. - * @param {?number} arg5 Is an optional value for handling missing values. The default value of 1 replaces missing values by interpolation, and 0 replaces them with zeros.. - * @param {?number} arg6 Is an optional numeric value for aggregating multiple values with the same time stamp. If blank, Microsoft Excel averages the values.. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - A range or an array of numeric data that determines the historical values for which a new point will be predicted. + * @param {ApiRange | ApiName} arg2 - A range of date/time values that correspond to the historical values. + * The timeline range must be of the same size as the second argument. Date/time values must have a constant step between them and can't be zero. + * @param {ApiRange | ApiName | number} arg3 - A number between 1 and 8, indicating which statistic will be returned for the calculated forecast. + * @param {?ApiRange | ?ApiName | ?number} arg4 - An optional numeric value that specifies the length of the seasonal pattern. The default value of 1 indicates seasonality is detected automatically. + * The 0 value means no seasonality. + * @param {?ApiRange | ?ApiName | ?number} arg5 - An optional numeric value to handle missing values. The default value of 1 replaces missing values by interpolation, and 0 replaces them with zeros. + * @param {?ApiRange | ?ApiName | ?number} arg6 - An optional numeric value to aggregate multiple values with the same time stamp. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FORECAST_ETS_STAT.js */ ApiWorksheetFunction.prototype.FORECAST_ETS_STAT = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("FORECAST.ETS.STAT", arguments); @@ -2448,7 +2826,7 @@ // * Calculates, or predicts, a future value along a linear trend by using existing values. // * @memberof ApiWorksheetFunction // * @typeofeditors ["CSE"] - // * @param {number} arg1 Is the data point for which you want to predict a value and must be a numeric value. + // * @param {ApiRange | ApiName | number} arg1 Is the data point for which you want to predict a value and must be a numeric value. // * @param {any} arg2 Is the dependent array or range of numeric data. // * @param {any} arg3 Is the independent array or range of numeric data. The variance of Known_x's must not be zero. // * @returns {number | string | boolean} @@ -2457,12 +2835,13 @@ // return this.private_calculateFunction("FORECAST.LINEAR", arguments); // }; /** - * Calculates how often values occur within a range of values and then returns a vertical array of numbers that have one more element than Bins_array. + * Calculates how often values occur within a range of values and then returns the first value of the returned vertical array of numbers. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is an array of or reference to a set of values for which you want to count frequencies (blanks and text are ignored). - * @param {ApiRange} arg2 Is an array of or reference to intervals into which you want to group the values in data_array. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - An array of values or the selected range for which the frequencies will be counted (blanks and text are ignored). + * @param {ApiRange | ApiName | number[]} arg2 - An array of intervals or the selected range into which the values in the first range will be grouped. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FREQUENCY.js */ ApiWorksheetFunction.prototype.FREQUENCY = function (arg1, arg2) { return this.private_calculateFunction("FREQUENCY", arguments); @@ -2492,11 +2871,12 @@ // return this.private_calculateFunction("F.TEST", arguments); // }; /** - * Returns the Gamma function value. + * Returns the gamma function value. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want to calculate Gamma. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which the gamma function will be calculated. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GAMMA.js */ ApiWorksheetFunction.prototype.GAMMA = function (arg1) { return this.private_calculateFunction("GAMMA", arguments); @@ -2505,11 +2885,13 @@ * Returns the gamma distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which you want to evaluate the distribution, a nonnegative number. - * @param {number} arg2 Is a parameter to the distribution, a positive number. - * @param {number} arg3 Is a parameter to the distribution, a positive number. If beta = 1, GAMMA.DIST returns the standard gamma distribution. - * @param {boolean} arg4 Is a logical value: return the cumulative distribution function = TRUE; return the probability mass function = FALSE or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which the distribution will be calculated, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution, a positive number. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution, a positive number. If this parameter is equal to 1, the function returns the standard gamma distribution. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value (true> or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. If it is false, the function returns the probability density function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GAMMA_DIST.js */ ApiWorksheetFunction.prototype.GAMMA_DIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("GAMMA.DIST", arguments); @@ -2518,11 +2900,13 @@ * Returns the gamma distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which you want to evaluate the distribution, a nonnegative number. - * @param {number} arg2 Is a parameter to the distribution, a positive number. - * @param {number} arg3 Is a parameter to the distribution, a positive number. If beta = 1, GAMMADIST returns the standard gamma distribution. - * @param {boolean} arg4 Is a logical value: return the cumulative distribution function = TRUE; return the probability mass function = FALSE or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which the distribution will be calculated, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution, a positive number. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution, a positive number. If this parameter is equal to 1, the function returns the standard gamma distribution. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value (true> or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. If it is false, the function returns the probability density function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GAMMADIST.js */ ApiWorksheetFunction.prototype.GAMMADIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("GAMMADIST", arguments); @@ -2531,10 +2915,11 @@ * Returns the inverse of the gamma cumulative distribution: if p = GAMMA.DIST(x,...), then GAMMA.INV(p,...) = x. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the probability associated with the gamma distribution, a number between 0 and 1, inclusive. - * @param {number} arg2 Is a parameter to the distribution, a positive number. - * @param {number} arg3 Is a parameter to the distribution, a positive number. If beta = 1, GAMMA.INV returns the inverse of the standard gamma distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The probability associated with the gamma distribution, a number between 0 and 1, inclusive. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution, a positive number. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution, a positive number. If this parameter is equal to 1, the function returns the standard gamma distribution. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GAMMA_INV.js */ ApiWorksheetFunction.prototype.GAMMA_INV = function (arg1, arg2, arg3) { return this.private_calculateFunction("GAMMA.INV", arguments); @@ -2543,10 +2928,11 @@ * Returns the inverse of the gamma cumulative distribution: if p = GAMMADIST(x,...), then GAMMAINV(p,...) = x. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the probability associated with the gamma distribution, a number between 0 and 1, inclusive. - * @param {number} arg2 Is a parameter to the distribution, a positive number. - * @param {number} arg3 Is a parameter to the distribution, a positive number. If beta = 1, GAMMAINV returns the inverse of the standard gamma distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The probability associated with the gamma distribution, a number between 0 and 1, inclusive. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution, a positive number. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution, a positive number. If this parameter is equal to 1, the function returns the standard gamma distribution. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GAMMAINV.js */ ApiWorksheetFunction.prototype.GAMMAINV = function (arg1, arg2, arg3) { return this.private_calculateFunction("GAMMAINV", arguments); @@ -2555,8 +2941,9 @@ * Returns the natural logarithm of the gamma function. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want to calculate GAMMALN, a positive number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which the natural logarithm of the gamma function will be calculated, a positive number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GAMMALN.js */ ApiWorksheetFunction.prototype.GAMMALN = function (arg1) { return this.private_calculateFunction("GAMMALN", arguments); @@ -2565,40 +2952,47 @@ * Returns the natural logarithm of the gamma function. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want to calculate GAMMALN.PRECISE, a positive number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which the natural logarithm of the gamma function will be calculated, a positive number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GAMMALN_PRECISE.js */ ApiWorksheetFunction.prototype.GAMMALN_PRECISE = function (arg1) { return this.private_calculateFunction("GAMMALN.PRECISE", arguments); }; /** - * Returns 0.5 less than the standard normal cumulative distribution. + * Calculates the probability that a member of a standard normal population will fall between the mean and arg1 standard deviations from the mean. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want the distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which the distribution will be calculated. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GAUSS.js */ ApiWorksheetFunction.prototype.GAUSS = function (arg1) { return this.private_calculateFunction("GAUSS", arguments); }; /** - * Returns the geometric mean of an array or range of positive numeric data. + * Returns the geometric mean of positive numeric data. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | number[] | ApiName} args - Up to 255 numeric values for which the geometric mean will be calculated. + * Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GEOMEAN.js */ ApiWorksheetFunction.prototype.GEOMEAN = function () { return this.private_calculateFunction("GEOMEAN", arguments); }; /** - * Returns numbers in an exponential growth trend matching known data points. + * Calculates predicted exponential growth by using existing data. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the set of y-values you already know in the relationship y = b*m^x, an array or range of positive numbers. - * @param {?ApiRange} arg2 Is an optional set of x-values that you may already know in the relationship y = b*m^x, an array or range the same size as Known_y's. - * @param {?ApiRange} arg3 Are new x-values for which you want GROWTH to return corresponding y-values. - * @param {?boolean} arg4 Is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 1 if Const = FALSE or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The set of y-values from the y = b*m^x equation, an array or range of positive numbers. + * @param {?ApiRange | ?ApiName | ?number[]} arg2 - An optional set of x-values from the y = b*m^x equation, an array or range of positive numbers that has the same size as the set of y-values. + * @param {?ApiRange | ?ApiName | ?number[]} arg3 - New x-values for which the function will return the corresponding y-values. + * @param {?ApiRange | ?ApiName | ?boolean} arg4 - A logical value: the constant b is calculated normally if this parameter is set to true, + * and b is set equal to 1 if the parameter is false or omitted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GROWTH.js */ ApiWorksheetFunction.prototype.GROWTH = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("GROWTH", arguments); @@ -2607,7 +3001,10 @@ * Returns the harmonic mean of a data set of positive numbers: the reciprocal of the arithmetic mean of reciprocals. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | number[] | ApiName} args - Up to 255 numeric values for which the harmonic mean will be calculated. + * Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HARMEAN.js */ ApiWorksheetFunction.prototype.HARMEAN = function () { return this.private_calculateFunction("HARMEAN", arguments); @@ -2616,11 +3013,12 @@ * Returns the hypergeometric distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of successes in the sample. - * @param {number} arg2 Is the size of the sample. - * @param {number} arg3 Is the number of successes in the population. - * @param {number} arg4 Is the population size. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of successes in the sample. + * @param {ApiRange | ApiName | number} arg2 - The size of the sample. + * @param {ApiRange | ApiName | number} arg3 - The number of successes in the population. + * @param {ApiRange | ApiName | number} arg4 - The population size. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HYPGEOMDIST.js */ ApiWorksheetFunction.prototype.HYPGEOMDIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("HYPGEOMDIST", arguments); @@ -2629,12 +3027,14 @@ * Returns the hypergeometric distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of successes in the sample. - * @param {number} arg2 Is the size of the sample. - * @param {number} arg3 Is the number of successes in the population. - * @param {number} arg4 Is the population size. - * @param {boolean} arg5 Is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of successes in the sample. + * @param {ApiRange | ApiName | number} arg2 - The size of the sample. + * @param {ApiRange | ApiName | number} arg3 - The number of successes in the population. + * @param {ApiRange | ApiName | number} arg4 - The population size. + * @param {ApiRange | ApiName | boolean} arg5 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. If it is false, the function returns the probability mass function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HYPGEOM_DIST.js */ ApiWorksheetFunction.prototype.HYPGEOM_DIST = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("HYPGEOM.DIST", arguments); @@ -2655,7 +3055,10 @@ * Returns the kurtosis of a data set. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | number[] | ApiName} args - Up to 255 numeric values for which the kurtosis will be calculated. + * Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/KURT.js */ ApiWorksheetFunction.prototype.KURT = function () { return this.private_calculateFunction("KURT", arguments); @@ -2664,9 +3067,10 @@ * Returns the k-th largest value in a data set. For example, the fifth largest number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data for which you want to determine the k-th largest value. - * @param {number} arg2 Is the position (from the largest) in the array or cell range of the value to return. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or range of data for which the k-th largest value will be determined. + * @param {ApiRange | ApiName | number} arg2 - The position (from the largest) in the array or cell range of data to return. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LARGE.js */ ApiWorksheetFunction.prototype.LARGE = function (arg1, arg2) { return this.private_calculateFunction("LARGE", arguments); @@ -2675,11 +3079,14 @@ * Returns statistics that describe a linear trend matching known data points, by fitting a straight line using the least squares method. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the set of y-values you already know in the relationship y = mx + b. - * @param {?ApiRange} arg2 Is an optional set of x-values that you may already know in the relationship y = mx + b. - * @param {?boolean} arg3 Is a logical value: the constant b is calculated normally if Const = TRUE or omitted; b is set equal to 0 if Const = FALSE. - * @param {?boolean} arg4 Is a logical value: return additional regression statistics = TRUE; return m-coefficients and the constant b = FALSE or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The set of y-values from the y = mx + b equation. + * @param {?ApiRange | ?ApiName} arg2 - An optional set of x-values from the y = mx + b equation. + * @param {?ApiRange | ?ApiName | ?boolean} arg3 - A logical value: the constant b is calculated normally if this parameter is set to true or omitted, + * and b is set equal to 0 if the parameter is false. + * @param {?ApiRange | ?ApiName | ?boolean} arg4 - A logical value: return additional regression statistics if this parameter is set to true, + * and return m-coefficients and the constant b if the parameter is false or omitted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LINEST.js */ ApiWorksheetFunction.prototype.LINEST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("LINEST", arguments); @@ -2688,60 +3095,69 @@ * Returns statistics that describe an exponential curve matching known data points. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the set of y-values you already know in the relationship y = b*m^x. - * @param {?ApiRange} arg2 Is an optional set of x-values that you may already know in the relationship y = b*m^x. - * @param {?boolean} arg3 Is a logical value: the constant b is calculated normally if Const = TRUE or omitted; b is set equal to 1 if Const = FALSE. - * @param {?boolean} arg4 Is a logical value: return additional regression statistics = TRUE; return m-coefficients and the constant b = FALSE or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | ApiRange} arg1 - The set of y-values from the y = b*m^x equation. + * @param {?ApiRange | ?ApiName | ?ApiRange} arg2 - An optional set of x-values from the y = b*m^x equation. + * @param {?ApiRange | ?ApiName | ?boolean} arg3 - A logical value: the constant b is calculated normally if this parameter is set to true or omitted, + * and b is set equal to 1 if the parameter is false. + * @param {?ApiRange | ?ApiName | ?boolean} arg4 - A logical value: return additional regression statistics if this parameter is set to true, + * and return m-coefficients and the constant b if the parameter is false or omitted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOGEST.js */ ApiWorksheetFunction.prototype.LOGEST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("LOGEST", arguments); }; /** - * Returns the inverse of the lognormal cumulative distribution function of x, where ln(x) is normally distributed with parameters Mean and Standard_dev. + * Returns the inverse of the lognormal cumulative distribution function of x, where ln(x) is normally distributed with the specified parameters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the lognormal distribution, a number between 0 and 1, inclusive. - * @param {number} arg2 Is the mean of ln(x). - * @param {number} arg3 Is the standard deviation of ln(x), a positive number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the lognormal distribution, a number between 0 and 1, inclusive. + * @param {ApiRange | ApiName | number} arg2 - The mean of ln(x). + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of ln(x), a positive number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOGINV.js */ ApiWorksheetFunction.prototype.LOGINV = function (arg1, arg2, arg3) { return this.private_calculateFunction("LOGINV", arguments); }; /** - * Returns the lognormal distribution of x, where ln(x) is normally distributed with parameters Mean and Standard_dev. + * Returns the lognormal distribution of x, where ln(x) is normally distributed with the specified parameters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which to evaluate the function, a positive number. - * @param {number} arg2 Is the mean of ln(x). - * @param {number} arg3 Is the standard deviation of ln(x), a positive number. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function, a positive number. + * @param {ApiRange | ApiName | number} arg2 - The mean of ln(x). + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of ln(x), a positive number. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. + * If it is false, the function returns the probability density function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOGNORM_DIST.js */ ApiWorksheetFunction.prototype.LOGNORM_DIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("LOGNORM.DIST", arguments); }; /** - * Returns the inverse of the lognormal cumulative distribution function of x, where ln(x) is normally distributed with parameters Mean and Standard_dev. + * Returns the inverse of the lognormal cumulative distribution function of x, where ln(x) is normally distributed with the specified parameters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability associated with the lognormal distribution, a number between 0 and 1, inclusive. - * @param {number} arg2 Is the mean of ln(x). - * @param {number} arg3 Is the standard deviation of ln(x), a positive number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability associated with the lognormal distribution, a number between 0 and 1, inclusive. + * @param {ApiRange | ApiName | number} arg2 - The mean of ln(x). + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of ln(x), a positive number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOGNORM_INV.js */ ApiWorksheetFunction.prototype.LOGNORM_INV = function (arg1, arg2, arg3) { return this.private_calculateFunction("LOGNORM.INV", arguments); }; /** - * Returns the cumulative lognormal distribution of x, where ln(x) is normally distributed with parameters Mean and Standard_dev. + * Returns the cumulative lognormal distribution of x, where ln(x) is normally distributed with the specified parameters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which to evaluate the function, a positive number. - * @param {number} arg2 Is the mean of ln(x). - * @param {number} arg3 Is the standard deviation of ln(x), a positive number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function, a positive number. + * @param {ApiRange | ApiName | number} arg2 - The mean of ln(x). + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of ln(x), a positive number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOGNORMDIST.js */ ApiWorksheetFunction.prototype.LOGNORMDIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("LOGNORMDIST", arguments); @@ -2750,7 +3166,10 @@ * Returns the largest value in a set of values. Ignores logical values and text. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | array | ApiRange | ApiName} args - Up to 255 numeric values for which the largest number will be returned. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MAX.js */ ApiWorksheetFunction.prototype.MAX = function () { return this.private_calculateFunction("MAX", arguments); @@ -2759,7 +3178,10 @@ * Returns the largest value in a set of values. Does not ignore logical values and text. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | string | boolean | ApiRange | array | ApiName} args - Up to 255 values (number, text, logical value) for which the largest value will be returned. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, logical values and text representations of numbers, names, ranges, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MAXA.js */ ApiWorksheetFunction.prototype.MAXA = function () { return this.private_calculateFunction("MAXA", arguments); @@ -2768,7 +3190,10 @@ * Returns the median, or the number in the middle of the set of given numbers. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiRange | array | ApiName} args - Up to 255 numeric values for which the median will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MEDIAN.js */ ApiWorksheetFunction.prototype.MEDIAN = function () { return this.private_calculateFunction("MEDIAN", arguments); @@ -2777,7 +3202,10 @@ * Returns the smallest number in a set of values. Ignores logical values and text. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiRange | array | ApiName} args - Up to 255 numeric values for which the smallest number will be returned. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MIN.js */ ApiWorksheetFunction.prototype.MIN = function () { return this.private_calculateFunction("MIN", arguments); @@ -2786,7 +3214,10 @@ * Returns the smallest value in a set of values. Does not ignore logical values and text. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | string | boolean | ApiRange | array | ApiName} args - Up to 255 values (number, text, logical value) for which the smallest value will be returned. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, logical values and text representations of numbers, names, ranges, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MINA.js */ ApiWorksheetFunction.prototype.MINA = function () { return this.private_calculateFunction("MINA", arguments); @@ -2822,26 +3253,30 @@ // return this.private_calculateFunction("MODE.SNGL", arguments); // }; /** - * Returns the negative binomial distribution, the probability that there will be Number_f failures before the Number_s-th success, with Probability_s probability of a success. + * Returns the negative binomial distribution, the probability that there will be the specified number of failures before the last success, with the specified probability of a success. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of failures. - * @param {number} arg2 Is the threshold number of successes. - * @param {number} arg3 Is the probability of a success; a number between 0 and 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of failures. + * @param {ApiRange | ApiName | number} arg2 - The threshold number of successes. + * @param {ApiRange | ApiName | number} arg3 - The probability of a success; a number between 0 and 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NEGBINOMDIST.js */ ApiWorksheetFunction.prototype.NEGBINOMDIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("NEGBINOMDIST", arguments); }; /** - * Returns the negative binomial distribution, the probability that there will be Number_f failures before the Number_s-th success, with Probability_s probability of a success. + * Returns the negative binomial distribution, the probability that there will be the specified number of failures before the last success, with the specified probability of a success. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of failures. - * @param {number} arg2 Is the threshold number of successes. - * @param {number} arg3 Is the probability of a success; a number between 0 and 1. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of failures. + * @param {ApiRange | ApiName | number} arg2 - The threshold number of successes. + * @param {ApiRange | ApiName | number} arg3 - The probability of a success; a number between 0 and 1. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. + * If it is false, the function returns the probability density function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NEGBINOM_DIST.js */ ApiWorksheetFunction.prototype.NEGBINOM_DIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("NEGBINOM.DIST", arguments); @@ -2850,11 +3285,14 @@ * Returns the normal cumulative distribution for the specified mean and standard deviation. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want the distribution. - * @param {number} arg2 Is the arithmetic mean of the distribution. - * @param {number} arg3 Is the standard deviation of the distribution, a positive number. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which the distribution will be returned. + * @param {ApiRange | ApiName | number} arg2 - The arithmetic mean of the distribution. + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of the distribution, a positive number. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. + * If it is false, the function returns the probability mass function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NORMDIST.js */ ApiWorksheetFunction.prototype.NORMDIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("NORMDIST", arguments); @@ -2863,11 +3301,14 @@ * Returns the normal distribution for the specified mean and standard deviation. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want the distribution. - * @param {number} arg2 Is the arithmetic mean of the distribution. - * @param {number} arg3 Is the standard deviation of the distribution, a positive number. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which the distribution will be returned. + * @param {ApiRange | ApiName | number} arg2 - The arithmetic mean of the distribution. + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of the distribution, a positive number. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. + * If it is false, the function returns the probability mass function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NORM_DIST.js */ ApiWorksheetFunction.prototype.NORM_DIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("NORM.DIST", arguments); @@ -2876,10 +3317,11 @@ * Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability corresponding to the normal distribution, a number between 0 and 1 inclusive. - * @param {number} arg2 Is the arithmetic mean of the distribution. - * @param {number} arg3 Is the standard deviation of the distribution, a positive number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability corresponding to the normal distribution, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - The arithmetic mean of the distribution. + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of the distribution, a positive number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NORMINV.js */ ApiWorksheetFunction.prototype.NORMINV = function (arg1, arg2, arg3) { return this.private_calculateFunction("NORMINV", arguments); @@ -2888,10 +3330,11 @@ * Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability corresponding to the normal distribution, a number between 0 and 1 inclusive. - * @param {number} arg2 Is the arithmetic mean of the distribution. - * @param {number} arg3 Is the standard deviation of the distribution, a positive number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability corresponding to the normal distribution, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - The arithmetic mean of the distribution. + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of the distribution, a positive number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NORM_INV.js */ ApiWorksheetFunction.prototype.NORM_INV = function (arg1, arg2, arg3) { return this.private_calculateFunction("NORM.INV", arguments); @@ -2900,8 +3343,9 @@ * Returns the standard normal cumulative distribution (has a mean of zero and a standard deviation of one). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want the distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which the distribution will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NORMSDIST.js */ ApiWorksheetFunction.prototype.NORMSDIST = function (arg1) { return this.private_calculateFunction("NORMSDIST", arguments); @@ -2910,9 +3354,12 @@ * Returns the standard normal distribution (has a mean of zero and a standard deviation of one). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value for which you want the distribution. - * @param {boolean} arg2 Is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which the distribution will be returned. + * @param {ApiRange | ApiName | boolean} arg2 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. + * If it is false, the function returns the probability mass function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NORM_S_DIST.js */ ApiWorksheetFunction.prototype.NORM_S_DIST = function (arg1, arg2) { return this.private_calculateFunction("NORM.S.DIST", arguments); @@ -2921,8 +3368,9 @@ * Returns the inverse of the standard normal cumulative distribution (has a mean of zero and a standard deviation of one). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability corresponding to the normal distribution, a number between 0 and 1 inclusive. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability corresponding to the normal distribution, a number between 0 and 1 inclusive. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NORMSINV.js */ ApiWorksheetFunction.prototype.NORMSINV = function (arg1) { return this.private_calculateFunction("NORMSINV", arguments); @@ -2931,8 +3379,9 @@ * Returns the inverse of the standard normal cumulative distribution (has a mean of zero and a standard deviation of one). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a probability corresponding to the normal distribution, a number between 0 and 1 inclusive. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A probability corresponding to the normal distribution, a number between 0 and 1 inclusive. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NORM_S_INV.js */ ApiWorksheetFunction.prototype.NORM_S_INV = function (arg1) { return this.private_calculateFunction("NORM.S.INV", arguments); @@ -2954,9 +3403,10 @@ * Returns the k-th percentile of values in a range. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data that defines relative standing. - * @param {number} arg2 Is the percentile value that is between 0 through 1, inclusive. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or range of data that defines relative standing. + * @param {ApiRange | ApiName | number} arg2 - The percentile value that is equal to 0 but less than or equal to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PERCENTILE.js */ ApiWorksheetFunction.prototype.PERCENTILE = function (arg1, arg2) { return this.private_calculateFunction("PERCENTILE", arguments); @@ -2965,9 +3415,10 @@ * Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data that defines relative standing. - * @param {number} arg2 Is the percentile value that is between 0 through 1, inclusive. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or range of data that defines relative standing. + * @param {ApiRange | ApiName | number} arg2 - The percentile value that is greater than 0 but less than 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PERCENTILE_EXC.js */ ApiWorksheetFunction.prototype.PERCENTILE_EXC = function (arg1, arg2) { return this.private_calculateFunction("PERCENTILE.EXC", arguments); @@ -2976,9 +3427,10 @@ * Returns the k-th percentile of values in a range, where k is in the range 0..1, inclusive. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data that defines relative standing. - * @param {number} arg2 Is the percentile value that is between 0 through 1, inclusive. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or range of data that defines relative standing. + * @param {ApiRange | ApiName | number} arg2 - The percentile value that is equal to 0 but less than or equal to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PERCENTILE_INC.js */ ApiWorksheetFunction.prototype.PERCENTILE_INC = function (arg1, arg2) { return this.private_calculateFunction("PERCENTILE.INC", arguments); @@ -2987,34 +3439,37 @@ * Returns the rank of a value in a data set as a percentage of the data set. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data with numeric values that defines relative standing. - * @param {number} arg2 Is the value for which you want to know the rank. - * @param {?number} arg3 Is an optional value that identifies the number of significant digits for the returned percentage, three digits if omitted (0.xxx%). - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or range of data with numeric values that defines relative standing. + * @param {ApiRange | ApiName | number} arg2 - The value for which the rank will be returned. + * @param {?ApiRange | ?ApiName | ?number} arg3 - An optional value that identifies the number of significant digits for the returned percentage, three digits if omitted (0.xxx%). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PERCENTRANK.js */ ApiWorksheetFunction.prototype.PERCENTRANK = function (arg1, arg2, arg3) { return this.private_calculateFunction("PERCENTRANK", arguments); }; /** - * Returns the rank of a value in a data set as a percentage of the data set as a percentage (0..1, exclusive) of the data set. + * Returns the rank of a value in a data set as a percentage (0..1, exclusive) of the data set. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data with numeric values that defines relative standing. - * @param {number} arg2 Is the value for which you want to know the rank. - * @param {?number} arg3 Is an optional value that identifies the number of significant digits for the returned percentage, three digits if omitted (0.xxx%). - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or range of data with numeric values that defines relative standing. + * @param {ApiRange | ApiName | number} arg2 - The value for which the rank will be returned. + * @param {?ApiRange | ?ApiName | ?number} arg3 - An optional value that identifies the number of significant digits for the returned percentage, three digits if omitted (0.xxx%). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PERCENTRANK_EXC.js */ ApiWorksheetFunction.prototype.PERCENTRANK_EXC = function (arg1, arg2, arg3) { return this.private_calculateFunction("PERCENTRANK.EXC", arguments); }; /** - * Returns the rank of a value in a data set as a percentage of the data set as a percentage (0..1, inclusive) of the data set. + * Returns the rank of a value in a data set as a percentage (0..1, inclusive) of the data set. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data with numeric values that defines relative standing. - * @param {number} arg2 Is the value for which you want to know the rank. - * @param {?number} arg3 Is an optional value that identifies the number of significant digits for the returned percentage, three digits if omitted (0.xxx%). - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or range of data with numeric values that defines relative standing. + * @param {ApiRange | ApiName | number} arg2 - The value for which the rank will be returned. + * @param {?ApiRange | ?ApiName | ?number} arg3 - An optional value that identifies the number of significant digits for the returned percentage, three digits if omitted (0.xxx%). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PERCENTRANK_INC.js */ ApiWorksheetFunction.prototype.PERCENTRANK_INC = function (arg1, arg2, arg3) { return this.private_calculateFunction("PERCENTRANK.INC", arguments); @@ -3023,9 +3478,10 @@ * Returns the number of permutations for a given number of objects that can be selected from the total objects. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the total number of objects. - * @param {number} arg2 Is the number of objects in each permutation. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The total number of objects. + * @param {ApiRange | ApiName | number} arg2 - The number of objects in each permutation. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PERMUT.js */ ApiWorksheetFunction.prototype.PERMUT = function (arg1, arg2) { return this.private_calculateFunction("PERMUT", arguments); @@ -3034,9 +3490,10 @@ * Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the total number of objects. - * @param {number} arg2 Is the number of objects in each permutation. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The total number of objects. + * @param {ApiRange | ApiName | number} arg2 - The number of objects in each permutation. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PERMUTATIONA.js */ ApiWorksheetFunction.prototype.PERMUTATIONA = function (arg1, arg2) { return this.private_calculateFunction("PERMUTATIONA", arguments); @@ -3045,8 +3502,9 @@ * Returns the value of the density function for a standard normal distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number for which you want the density of the standard normal distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number for which the density of the standard normal distribution will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PHI.js */ ApiWorksheetFunction.prototype.PHI = function (arg1) { return this.private_calculateFunction("PHI", arguments); @@ -3055,10 +3513,13 @@ * Returns the Poisson distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of events. - * @param {number} arg2 Is the expected numeric value, a positive number. - * @param {boolean} arg3 Is a logical value: for the cumulative Poisson probability, use TRUE; for the Poisson probability mass function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of events. + * @param {ApiRange | ApiName | number} arg2 - The expected numeric value, a positive number. + * @param {ApiRange | ApiName | boolean} arg3 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative Poisson probability. + * If it is false, the function returns the Poisson probability mass function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/POISSON.js */ ApiWorksheetFunction.prototype.POISSON = function (arg1, arg2, arg3) { return this.private_calculateFunction("POISSON", arguments); @@ -3067,10 +3528,13 @@ * Returns the Poisson distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of events. - * @param {number} arg2 Is the expected numeric value, a positive number. - * @param {boolean} arg3 Is a logical value: for the cumulative Poisson probability, use TRUE; for the Poisson probability mass function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of events. + * @param {ApiRange | ApiName | number} arg2 - The expected numeric value, a positive number. + * @param {ApiRange | ApiName | boolean} arg3 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative Poisson probability. + * If it is false, the function returns the Poisson probability mass function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/POISSON_DIST.js */ ApiWorksheetFunction.prototype.POISSON_DIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("POISSON.DIST", arguments); @@ -3082,8 +3546,8 @@ // * @typeofeditors ["CSE"] // * @param {any} arg1 Is the range of numeric values of x with which there are associated probabilities. // * @param {any} arg2 Is the set of probabilities associated with values in X_range, values between 0 and 1 and excluding 0. - // * @param {number} arg3 Is the lower bound on the value for which you want a probability. - // * @param {?number} arg4 Is the optional upper bound on the value. If omitted, PROB returns the probability that X_range values are equal to Lower_limit. + // * @param {ApiRange | ApiName | number} arg3 Is the lower bound on the value for which you want a probability. + // * @param {?ApiRange | ?ApiName | ?number} arg4 Is the optional upper bound on the value. If omitted, PROB returns the probability that X_range values are equal to Lower_limit. // * @returns {number | string | boolean} // */ // ApiWorksheetFunction.prototype.PROB = function (arg1, arg2, arg3, arg4) { @@ -3093,9 +3557,10 @@ * Returns the quartile of a data set. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or cell range of numeric values for which you want the quartile value. - * @param {number} arg2 Is a number: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or cell range of numeric values for which the quartile value will be returned. + * @param {ApiRange | ApiName | number} arg2 - The quartile value to return: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/QUARTILE.js */ ApiWorksheetFunction.prototype.QUARTILE = function (arg1, arg2) { return this.private_calculateFunction("QUARTILE", arguments); @@ -3104,9 +3569,10 @@ * Returns the quartile of a data set, based on percentile values from 0..1, exclusive. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or cell range of numeric values for which you want the quartile value. - * @param {number} arg2 Is a number: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or cell range of numeric values for which the quartile value will be returned. + * @param {ApiRange | ApiName | number} arg2 - The quartile value to return: 1st quartile = 1; median value = 2; 3rd quartile = 3. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/QUARTILE_EXC.js */ ApiWorksheetFunction.prototype.QUARTILE_EXC = function (arg1, arg2) { return this.private_calculateFunction("QUARTILE.EXC", arguments); @@ -3115,9 +3581,10 @@ * Returns the quartile of a data set, based on percentile values from 0..1, inclusive. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or cell range of numeric values for which you want the quartile value. - * @param {number} arg2 Is a number: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or cell range of numeric values for which the quartile value will be returned. + * @param {ApiRange | ApiName | number} arg2 - The quartile value to return: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/QUARTILE_INC.js */ ApiWorksheetFunction.prototype.QUARTILE_INC = function (arg1, arg2) { return this.private_calculateFunction("QUARTILE.INC", arguments); @@ -3126,34 +3593,40 @@ * Returns the rank of a number in a list of numbers: its size relative to other values in the list. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number for which you want to find the rank. - * @param {ApiRange} arg2 Is an array of, or a reference to, a list of numbers. Nonnumeric values are ignored. - * @param {?boolean} arg3 Is a number: rank in the list sorted descending = 0 or omitted; rank in the list sorted ascending = any nonzero value. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number for which the rank will be returned. + * @param {ApiRange | ApiName | number[]} arg2 - An array or range of numbers. Nonnumeric values are ignored. + * @param {?ApiRange | ?ApiName | ?boolean} arg3 - The numeric value that specifyes how to order the numbers. If it is 0 or omitted, the rank in the list will be sorted in descending order. + * Any other numeric value means that the rank in the list will be sorted in ascending order. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RANK.js */ ApiWorksheetFunction.prototype.RANK = function (arg1, arg2, arg3) { return this.private_calculateFunction("RANK", arguments); }; /** - * Returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the average rank is returned. + * Returns the rank of a number in a list of numbers: its size relative to other values in the list. If more than one value has the same rank, the average rank is returned. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number for which you want to find the rank. - * @param {ApiRange} arg2 Is an array of, or a reference to, a list of numbers. Nonnumeric values are ignored. - * @param {?boolean} arg3 Is a number: rank in the list sorted descending = 0 or omitted; rank in the list sorted ascending = any nonzero value. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number for which the rank will be returned. + * @param {ApiRange | ApiName | number[]} arg2 - An array or range of numbers. Nonnumeric values are ignored. + * @param {?ApiRange | ?ApiName | ?boolean} arg3 - The numeric value that specifyes how to order the numbers. If it is 0 or omitted, the rank in the list will be sorted in descending order. + * Any other numeric value means that the rank in the list will be sorted in ascending order. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RANK_AVG.js */ ApiWorksheetFunction.prototype.RANK_AVG = function (arg1, arg2, arg3) { return this.private_calculateFunction("RANK.AVG", arguments); }; /** - * Returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the top rank of that set of values is returned. + * Returns the rank of a number in a list of numbers: its size relative to other values in the list. If more than one value has the same rank, the top rank of that set of values is returned. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number for which you want to find the rank. - * @param {ApiRange} arg2 Is an array of, or a reference to, a list of numbers. Nonnumeric values are ignored. - * @param {?boolean} arg3 Is a number: rank in the list sorted descending = 0 or omitted; rank in the list sorted ascending = any nonzero value. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number for which the rank will be returned. + * @param {ApiRange | ApiName | number[]} arg2 - An array or range of numbers. Nonnumeric values are ignored. + * @param {?ApiRange | ?ApiName | ?boolean} arg3 - The numeric value that specifyes how to order the numbers. If it is 0 or omitted, the rank in the list will be sorted in descending order. + * Any other numeric value means that the rank in the list will be sorted in ascending order. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RANK_EQ.js */ ApiWorksheetFunction.prototype.RANK_EQ = function (arg1, arg2, arg3) { return this.private_calculateFunction("RANK.EQ", arguments); @@ -3172,19 +3645,25 @@ // }; /** - * Returns the skewness of a distribution: a characterisation of the degree of asymmetry of a distribution around its mean. + * Returns the skewness of a distribution: a characterization of the degree of asymmetry of a distribution around its mean. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiName | number[] | ApiRange} args - Up to 255 numeric values for which the skewness of a distribution will be returned. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SKEW.js */ ApiWorksheetFunction.prototype.SKEW = function () { return this.private_calculateFunction("SKEW", arguments); }; /** - * Returns the skewness of a distribution based on a population: a characterisation of the degree of asymmetry of a distribution around its mean. + * Returns the skewness of a distribution based on a population: a characterization of the degree of asymmetry of a distribution around its mean. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiName | number[] | ApiRange} args - Up to 255 numeric values for which the skewness of a distribution will be returned. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SKEW_P.js */ ApiWorksheetFunction.prototype.SKEW_P = function () { return this.private_calculateFunction("SKEW.P", arguments); @@ -3205,9 +3684,10 @@ * Returns the k-th smallest value in a data set. For example, the fifth smallest number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is an array or range of numerical data for which you want to determine the k-th smallest value. - * @param {number} arg2 Is the position (from the smallest) in the array or range of the value to return. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - An array or range of numerical data for which the k-th smallest value will be determined. + * @param {ApiRange | ApiName | number} arg2 - The position (from the smallest) in the range of the value to return. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SMALL.js */ ApiWorksheetFunction.prototype.SMALL = function (arg1, arg2) { return this.private_calculateFunction("SMALL", arguments); @@ -3216,10 +3696,11 @@ * Returns a normalised value from a distribution characterised by a mean and standard deviation. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value you want to normalize. - * @param {number} arg2 Is the arithmetic mean of the distribution. - * @param {number} arg3 Is the standard deviation of the distribution, a positive number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to normalize. + * @param {ApiRange | ApiName | number} arg2 - The arithmetic mean of the distribution. + * @param {ApiRange | ApiName | number} arg3 - The standard deviation of the distribution, a positive number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/STANDARDIZE.js */ ApiWorksheetFunction.prototype.STANDARDIZE = function (arg1, arg2, arg3) { return this.private_calculateFunction("STANDARDIZE", arguments); @@ -3228,7 +3709,10 @@ * Estimates standard deviation based on a sample (ignores logical values and text in the sample). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number[] | number | ApiName | ApiRange} args - Up to 255 numeric values for which the standard deviation will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/STDEV.js */ ApiWorksheetFunction.prototype.STDEV = function () { return this.private_calculateFunction("STDEV", arguments); @@ -3237,16 +3721,22 @@ * Estimates standard deviation based on a sample (ignores logical values and text in the sample). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number[] | number | ApiName | ApiRange} args - Up to 255 numeric values for which the standard deviation will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/STDEV_S.js */ ApiWorksheetFunction.prototype.STDEV_S = function () { return this.private_calculateFunction("STDEV.S", arguments); }; /** - * Estimates standard deviation based on a sample, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1. + * Estimates standard deviation based on a sample, including logical values and text. Text and the false logical value have the value 0; the true logical value has the value 1. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number[] | number | string | boolean | ApiRange | ApiName} args - Up to 255 values for which the standard deviation will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, logical values, text strings, names, ranges, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/STDEVA.js */ ApiWorksheetFunction.prototype.STDEVA = function () { return this.private_calculateFunction("STDEVA", arguments); @@ -3255,7 +3745,10 @@ * Calculates standard deviation based on the entire population given as arguments (ignores logical values and text). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number[] | number | ApiName | ApiRange} args - Up to 255 numeric values for which the standard deviation will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/STDEVP.js */ ApiWorksheetFunction.prototype.STDEVP = function () { return this.private_calculateFunction("STDEVP", arguments); @@ -3264,16 +3757,23 @@ * Calculates standard deviation based on the entire population given as arguments (ignores logical values and text). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number[] | number | ApiName | ApiRange} args - Up to 255 numeric values for which the standard deviation will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/STDEV_P.js */ ApiWorksheetFunction.prototype.STDEV_P = function () { return this.private_calculateFunction("STDEV.P", arguments); }; /** - * Calculates standard deviation based on an entire population, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1. + * Calculates standard deviation based on the entire population, including logical values and text. + * Text and the false logical value have the value 0; the true logical value has the value 1. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number[] | number | string | boolean | ApiRange | ApiName} args - Up to 255 values for which the standard deviation will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, logical values, text strings, names, ranges, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/STDEVPA.js */ ApiWorksheetFunction.prototype.STDEVPA = function () { return this.private_calculateFunction("STDEVPA", arguments); @@ -3294,10 +3794,11 @@ * Returns the Student's t-distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the numeric value at which to evaluate the distribution. - * @param {number} arg2 Is an integer indicating the number of degrees of freedom that characterize the distribution. - * @param {number} arg3 Specifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The numeric value at which to evaluate the distribution. + * @param {ApiRange | ApiName | number} arg2 - An integer indicating the number of degrees of freedom that characterize the distribution. + * @param {ApiRange | ApiName | number} arg3 - Specifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TDIST.js */ ApiWorksheetFunction.prototype.TDIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("TDIST", arguments); @@ -3306,10 +3807,13 @@ * Returns the left-tailed Student's t-distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the numeric value at which to evaluate the distribution. - * @param {number} arg2 Is an integer indicating the number of degrees of freedom that characterize the distribution. - * @param {boolean} arg3 Is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The numeric value at which to evaluate the distribution. + * @param {ApiRange | ApiName | number} arg2 - An integer indicating the number of degrees of freedom that characterize the distribution. + * @param {ApiRange | ApiName | boolean} arg3 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. + * If it is false, the function returns the probability density function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/T_DIST.js */ ApiWorksheetFunction.prototype.T_DIST = function (arg1, arg2, arg3) { return this.private_calculateFunction("T.DIST", arguments); @@ -3318,9 +3822,10 @@ * Returns the two-tailed Student's t-distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the numeric value at which to evaluate the distribution. - * @param {number} arg2 Is an integer indicating the number of degrees of freedom that characterize the distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The numeric value at which to evaluate the distribution. + * @param {ApiRange | ApiName | number} arg2 - An integer indicating the number of degrees of freedom that characterize the distribution. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/T_DIST_2T.js */ ApiWorksheetFunction.prototype.T_DIST_2T = function (arg1, arg2) { return this.private_calculateFunction("T.DIST.2T", arguments); @@ -3329,9 +3834,10 @@ * Returns the right-tailed Student's t-distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the numeric value at which to evaluate the distribution. - * @param {number} arg2 Is an integer indicating the number of degrees of freedom that characterize the distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The numeric value at which to evaluate the distribution. + * @param {ApiRange | ApiName | number} arg2 - An integer indicating the number of degrees of freedom that characterize the distribution. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/T_DIST_RT.js */ ApiWorksheetFunction.prototype.T_DIST_RT = function (arg1, arg2) { return this.private_calculateFunction("T.DIST.RT", arguments); @@ -3340,9 +3846,10 @@ * Returns the left-tailed inverse of the Student's t-distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive. - * @param {number} arg2 Is a positive integer indicating the number of degrees of freedom to characterize the distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - A positive integer indicating the number of degrees of freedom to characterize the distribution. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/T_INV.js */ ApiWorksheetFunction.prototype.T_INV = function (arg1, arg2) { return this.private_calculateFunction("T.INV", arguments); @@ -3351,9 +3858,10 @@ * Returns the two-tailed inverse of the Student's t-distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive. - * @param {number} arg2 Is a positive integer indicating the number of degrees of freedom to characterize the distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - A positive integer indicating the number of degrees of freedom to characterize the distribution. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/T_INV_2T.js */ ApiWorksheetFunction.prototype.T_INV_2T = function (arg1, arg2) { return this.private_calculateFunction("T.INV.2T", arguments); @@ -3362,9 +3870,10 @@ * Returns the two-tailed inverse of the Student's t-distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive. - * @param {number} arg2 Is a positive integer indicating the number of degrees of freedom to characterize the distribution. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive. + * @param {ApiRange | ApiName | number} arg2 - A positive integer indicating the number of degrees of freedom to characterize the distribution. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TINV.js */ ApiWorksheetFunction.prototype.TINV = function (arg1, arg2) { return this.private_calculateFunction("TINV", arguments); @@ -3373,11 +3882,13 @@ * Returns numbers in a linear trend matching known data points, using the least squares method. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is a range or array of y-values you already know in the relationship y = mx + b. - * @param {?ApiRange} arg2 Is an optional range or array of x-values that you know in the relationship y = mx + b, an array the same size as Known_y's. - * @param {?ApiRange} arg3 Is a range or array of new x-values for which you want TREND to return corresponding y-values. - * @param {?boolean} arg4 Is a logical value: the constant b is calculated normally if Const = TRUE or omitted; b is set equal to 0 if Const = FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - A range or array of y-values from the y = mx + b equation. + * @param {?ApiRange | ?ApiName | number[]} arg2 - An optional range or array of x-values from the y = mx + b equation, an array of the same size as an array of y-values. + * @param {?ApiRange | ?ApiName | number[]} arg3 - A range or array of new x-values for which this function will return corresponding y-values. + * @param {?ApiRange | ?ApiName | ?boolean} arg4 - A logical value: the constant b is calculated normally if this parameter is set to true or omitted, + * and b is set equal to 0 if the parameter is false. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TREND.js */ ApiWorksheetFunction.prototype.TREND = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("TREND", arguments); @@ -3386,9 +3897,10 @@ * Returns the mean of the interior portion of a set of data values. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the range or array of values to trim and average. - * @param {number} arg2 Is the fractional number of data points to exclude from the top and bottom of the data set. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - The array or range of values to trim and average. + * @param {ApiRange | ApiName | number} arg2 - The fractional number of data points to exclude from the top and bottom of the data set. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TRIMMEAN.js */ ApiWorksheetFunction.prototype.TRIMMEAN = function (arg1, arg2) { return this.private_calculateFunction("TRIMMEAN", arguments); @@ -3400,8 +3912,8 @@ // * @typeofeditors ["CSE"] // * @param {any} arg1 Is the first data set. // * @param {any} arg2 Is the second data set. - // * @param {number} arg3 Specifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2. - // * @param {number} arg4 Is the kind of t-test: paired = 1, two-sample equal variance (homoscedastic) = 2, two-sample unequal variance = 3. + // * @param {ApiRange | ApiName | number} arg3 Specifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2. + // * @param {ApiRange | ApiName | number} arg4 Is the kind of t-test: paired = 1, two-sample equal variance (homoscedastic) = 2, two-sample unequal variance = 3. // * @returns {number | string | boolean} // */ // ApiWorksheetFunction.prototype.TTEST = function (arg1, arg2, arg3, arg4) { @@ -3414,8 +3926,8 @@ // * @typeofeditors ["CSE"] // * @param {any} arg1 Is the first data set. // * @param {any} arg2 Is the second data set. - // * @param {number} arg3 Specifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2. - // * @param {number} arg4 Is the kind of t-test: paired = 1, two-sample equal variance (homoscedastic) = 2, two-sample unequal variance = 3. + // * @param {ApiRange | ApiName | number} arg3 Specifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2. + // * @param {ApiRange | ApiName | number} arg4 Is the kind of t-test: paired = 1, two-sample equal variance (homoscedastic) = 2, two-sample unequal variance = 3. // * @returns {number | string | boolean} // */ // ApiWorksheetFunction.prototype.T_TEST = function (arg1, arg2, arg3, arg4) { @@ -3425,16 +3937,22 @@ * Estimates variance based on a sample (ignores logical values and text in the sample). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiName | ApiRange | number[]} args - Up to 255 numeric values for which the variance will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VAR.js */ ApiWorksheetFunction.prototype.VAR = function () { return this.private_calculateFunction("VAR", arguments); }; /** - * Estimates variance based on a sample, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1. + * Estimates variance based on a sample, including logical values and text. Text and the false logical value have the value 0; the true logical value has the value 1. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | string | boolean | ApiRange | array | ApiName} args - Up to 255 values for which the variance will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, logical values or text representations of numbers, names, ranges, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VARA.js */ ApiWorksheetFunction.prototype.VARA = function () { return this.private_calculateFunction("VARA", arguments); @@ -3443,7 +3961,10 @@ * Calculates variance based on the entire population (ignores logical values and text in the population). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiName | ApiRange | number[]} args - Up to 255 numeric values for which the variance will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VARP.js */ ApiWorksheetFunction.prototype.VARP = function () { return this.private_calculateFunction("VARP", arguments); @@ -3452,7 +3973,10 @@ * Calculates variance based on the entire population (ignores logical values and text in the population). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiName | ApiRange | number[]} args - Up to 255 numeric values for which the variance will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VAR_P.js */ ApiWorksheetFunction.prototype.VAR_P = function () { return this.private_calculateFunction("VAR.P", arguments); @@ -3461,16 +3985,22 @@ * Estimates variance based on a sample (ignores logical values and text in the sample). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiName | ApiRange | number[]} args - Up to 255 numeric values for which the variance will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, names, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VAR_S.js */ ApiWorksheetFunction.prototype.VAR_S = function () { return this.private_calculateFunction("VAR.S", arguments); }; /** - * Calculates variance based on the entire population, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1. + * Calculates variance based on the entire population, including logical values and text. Text and the false logical value have the value 0; the true logical value has the value 1. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | string | boolean | ApiRange | array | ApiName} args - Up to 255 values for which the variance will be calculated. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, logical values or text representations of numbers, names, ranges, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VARPA.js */ ApiWorksheetFunction.prototype.VARPA = function () { return this.private_calculateFunction("VARPA", arguments); @@ -3479,11 +4009,14 @@ * Returns the Weibull distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which to evaluate the function, a nonnegative number. - * @param {number} arg2 Is a parameter to the distribution, a positive number. - * @param {number} arg3 Is a parameter to the distribution, a positive number. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution, a positive number. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution, a positive number. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. + * If it is false, the function returns the probability mass function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/WEIBULL.js */ ApiWorksheetFunction.prototype.WEIBULL = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("WEIBULL", arguments); @@ -3492,11 +4025,14 @@ * Returns the Weibull distribution. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value at which to evaluate the function, a nonnegative number. - * @param {number} arg2 Is a parameter to the distribution, a positive number. - * @param {number} arg3 Is a parameter to the distribution, a positive number. - * @param {boolean} arg4 Is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function, a nonnegative number. + * @param {ApiRange | ApiName | number} arg2 - The alpha parameter of the distribution, a positive number. + * @param {ApiRange | ApiName | number} arg3 - The beta parameter of the distribution, a positive number. + * @param {ApiRange | ApiName | boolean} arg4 - A logical value (true or false) that determines the function form. + * If it is true, the function returns the cumulative distribution function. + * If it is false, the function returns the probability mass function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/WEIBULL_DIST.js */ ApiWorksheetFunction.prototype.WEIBULL_DIST = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("WEIBULL.DIST", arguments); @@ -3505,10 +4041,11 @@ * Returns the one-tailed P-value of a z-test. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data against which to test X. - * @param {number} arg2 Is the value to test. - * @param {?number} arg3 Is the population (known) standard deviation. If omitted, the sample standard deviation is used. - * @returns {number | string | boolean} + * @param {number[] | ApiRange | ApiName} arg1 - The array or range of data against which to test X. + * @param {ApiRange | ApiName | number} arg2 - The value to test. + * @param {?ApiRange | ?ApiName | ?number} arg3 - The population (known) standard deviation. If omitted, the sample standard deviation is used. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ZTEST.js */ ApiWorksheetFunction.prototype.ZTEST = function (arg1, arg2, arg3) { return this.private_calculateFunction("ZTEST", arguments); @@ -3517,22 +4054,24 @@ * Returns the one-tailed P-value of a z-test. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the array or range of data against which to test X. - * @param {number} arg2 Is the value to test. - * @param {?number} arg3 Is the population (known) standard deviation. If omitted, the sample standard deviation is used. - * @returns {number | string | boolean} + * @param {number[] | ApiRange} arg1 - The array or range of data against which to test X. + * @param {ApiRange | ApiName | number} arg2 - The value to test. + * @param {?ApiRange | ?ApiName | ?number} arg3 - The population (known) standard deviation. If omitted, the sample standard deviation is used. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/Z_TEST.js */ ApiWorksheetFunction.prototype.Z_TEST = function (arg1, arg2, arg3) { return this.private_calculateFunction("Z.TEST", arguments); }; /** - * Returns the number that represents the date in the date-time code. + * Returns a number that represents the date in the date-time code. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number from 1900 or 1904 (depending on the workbook's date system) to 9999. - * @param {number} arg2 Is a number from 1 to 12 representing the month of the year. - * @param {number} arg3 Is a number from 1 to 31 representing the day of the month. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A number from 1900 or 1904 (depending on the workbook's date system) to 9999. + * @param {ApiRange | ApiName | number} arg2 - A number from 1 to 12 representing the month of the year. + * @param {ApiRange | ApiName | number} arg3 - A number from 1 to 31 representing the day of the month. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DATE.js */ ApiWorksheetFunction.prototype.DATE = function (arg1, arg2, arg3) { return this.private_calculateFunction("DATE", arguments); @@ -3541,29 +4080,32 @@ * Converts a date in the form of text to a number that represents the date in the date-time code. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The text that represents a date, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DATEVALUE.js */ ApiWorksheetFunction.prototype.DATEVALUE = function (arg1) { return this.private_calculateFunction("DATEVALUE", arguments); }; /** - * Returns the day of the month, a number from 1 to 31.. + * Returns the day of the date given in the numerical format, a number from 1 to 31. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number in the date-time code used by Microsoft Excel. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A number in the date-time code. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DAY.js */ ApiWorksheetFunction.prototype.DAY = function (arg1) { return this.private_calculateFunction("DAY", arguments); }; /** - * Returns the number of days between the two dates.. + * Returns the number of days between the two dates. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Start_date and end_date are the two dates between which you want to know the number of days. - * @param {number} arg2 Start_date and end_date are the two dates between which you want to know the number of days. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Start date from which days will be counted. + * @param {ApiRange | ApiName | number} arg2 - End date until which days will be counted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DAYS.js */ ApiWorksheetFunction.prototype.DAYS = function (arg1, arg2) { return this.private_calculateFunction("DAYS", arguments); @@ -3572,42 +4114,50 @@ * Returns the number of days between two dates based on a 360-day year (twelve 30-day months). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Start_date and end_date are the two dates between which you want to know the number of days. - * @param {number} arg2 Start_date and end_date are the two dates between which you want to know the number of days. - * @param {?boolean} arg3 Is a logical value specifying the calculation method: U.S. (NASD) = FALSE or omitted; European = TRUE.. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Start date from which days will be counted. + * @param {ApiRange | ApiName | number} arg2 - End date until which days will be counted. + * @param {?ApiRange | ?ApiName | ?boolean} arg3 - A logical value that specifies whether to use the U.S. (NASD) (false or omitted) or European (true) method in the calculation. + * According to the European method, the start and end dates that occur on the 31st of a month become equal to the 30th of the same month. + * According to the U.S. method, the start date is the last day of a month, it becomes equal to the 30th of the same month. + * If the end date is the last day of a month and the start date is earlier than the 30th of a month, the end date becomes equal to the 1st of the next month. + * Otherwise the end date becomes equal to the 30th of the same month. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DAYS360.js */ ApiWorksheetFunction.prototype.DAYS360 = function (arg1, arg2, arg3) { return this.private_calculateFunction("DAYS360", arguments); }; /** - * Returns the serial number of the date that is the indicated number of months before or after the start date. + * Returns the serial number of the date which comes the indicated number of months before or after the start date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a serial date number that represents the start date. - * @param {any} arg2 Is the number of months before or after start_date. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A serial date number that represents the start date. + * @param {ApiRange | ApiName | number} arg2 - The number of months before or after the start date. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/EDATE.js */ ApiWorksheetFunction.prototype.EDATE = function (arg1, arg2) { return this.private_calculateFunction("EDATE", arguments); }; /** - * Returns the serial number of the last day of the month before or after a specified number of months. + * Returns the serial number of the last day of the month before or after the specified number of months. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a serial date number that represents the start date. - * @param {any} arg2 Is the number of months before or after the start_date. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A serial date number that represents the start date. + * @param {ApiRange | ApiName | number} arg2 - The number of months before or after the start date. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/EOMONTH.js */ ApiWorksheetFunction.prototype.EOMONTH = function (arg1, arg2) { return this.private_calculateFunction("EOMONTH", arguments); }; /** - * Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).. + * Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number in the date-time code used by Microsoft Excel, or text in time format, such as 16:48:00 or 4:48:00 PM. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string} arg1 - A number in the date-time code, or text in the time format, such as "16:48:00" or "4:48:00 PM", or a result of other formulas or functions. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HOUR.js */ ApiWorksheetFunction.prototype.HOUR = function (arg1) { return this.private_calculateFunction("HOUR", arguments); @@ -3616,28 +4166,31 @@ * Returns the ISO week number in the year for a given date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the date-time code used by Microsoft Excel for date and time calculation. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The date-time code used for date and time calculation. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISOWEEKNUM.js */ ApiWorksheetFunction.prototype.ISOWEEKNUM = function (arg1) { return this.private_calculateFunction("ISOWEEKNUM", arguments); }; /** - * Returns the minute, a number from 0 to 59.. + * Returns the minute, a number from 0 to 59. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number in the date-time code used by Microsoft Excel or text in time format, such as 16:48:00 or 4:48:00 PM. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string} arg1 - A number in the date-time code, or text in the time format, such as "16:48:00" or "4:48:00 PM", or a result of other formulas or functions. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MINUTE.js */ ApiWorksheetFunction.prototype.MINUTE = function (arg1) { return this.private_calculateFunction("MINUTE", arguments); }; /** - * Returns the month, a number from 1 (January) to 12 (December).. + * Returns the month, a number from 1 (January) to 12 (December). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number in the date-time code used by Microsoft Excel. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1- A number in the date-time code. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MONTH.js */ ApiWorksheetFunction.prototype.MONTH = function (arg1) { return this.private_calculateFunction("MONTH", arguments); @@ -3646,10 +4199,11 @@ * Returns the number of whole workdays between two dates. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a serial date number that represents the start date. - * @param {any} arg2 Is a serial date number that represents the end date. - * @param {?any} arg3 Is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A serial date number that represents the start date. + * @param {ApiRange | ApiName | number} arg2 - A serial date number that represents the end date. + * @param {?ApiRange | number[]} arg3 - An optional range or array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NETWORKDAYS.js */ ApiWorksheetFunction.prototype.NETWORKDAYS = function (arg1, arg2, arg3) { return this.private_calculateFunction("NETWORKDAYS", arguments); @@ -3658,42 +4212,46 @@ * Returns the number of whole workdays between two dates with custom weekend parameters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a serial date number that represents the start date. - * @param {any} arg2 Is a serial date number that represents the end date. - * @param {?number} arg3 Is a number or string specifying when weekends occur. - * @param {?any} arg4 Is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A serial date number that represents the start date. + * @param {ApiRange | ApiName | number} arg2 - A serial date number that represents the end date. + * @param {?ApiRange | ?ApiName | ?number | ?string} arg3 - A number or string specifying when weekends occur. + * @param {?ApiRange | number[]} arg4 - An optional range or array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NETWORKDAYS_INTL.js */ ApiWorksheetFunction.prototype.NETWORKDAYS_INTL = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("NETWORKDAYS.INTL", arguments); }; /** - * Returns the current date and time formatted as a date and time.. + * Returns the current date and time in the MM/dd/yy hh:mm format. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NOW.js */ ApiWorksheetFunction.prototype.NOW = function () { return this.private_calculateFunction("NOW", arguments); }; /** - * Returns the second, a number from 0 to 59.. + * Returns the second, a number from 0 to 59. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number in the date-time code used by Microsoft Excel or text in time format, such as 16:48:23 or 4:48:47 PM. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string} arg1 - A number in the date-time code, or text in the time format, such as "16:48:00" or "4:48:00 PM", or a result of other formulas or functions. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SECOND.js */ ApiWorksheetFunction.prototype.SECOND = function (arg1) { return this.private_calculateFunction("SECOND", arguments); }; /** - * Converts hours, minutes and seconds given as numbers to a serial number, formatted with a time format. + * Converts hours, minutes and seconds given as numbers to a serial number, formatted with the time format. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number from 0 to 23 representing the hour. - * @param {number} arg2 Is a number from 0 to 59 representing the minute. - * @param {number} arg3 Is a number from 0 to 59 representing the second. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A number from 0 to 23 representing the hour. + * @param {ApiRange | ApiName | number} arg2 - A number from 0 to 59 representing the minute. + * @param {ApiRange | ApiName | number} arg3 - A number from 0 to 59 representing the second. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TIME.js */ ApiWorksheetFunction.prototype.TIME = function (arg1, arg2, arg3) { return this.private_calculateFunction("TIME", arguments); @@ -3702,28 +4260,32 @@ * Converts a text time to a serial number for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a text string that gives a time in any one of the Microsoft Excel time formats (date information in the string is ignored). - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - A text string that represents a time in one of the time formats (date information in the string is ignored). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TIMEVALUE.js */ ApiWorksheetFunction.prototype.TIMEVALUE = function (arg1) { return this.private_calculateFunction("TIMEVALUE", arguments); }; /** - * Returns the current date formatted as a date.. + * Returns the current date in the MM/dd/yy format. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TODAY.js */ ApiWorksheetFunction.prototype.TODAY = function () { return this.private_calculateFunction("TODAY", arguments); }; /** - * Returns a number from 1 to 7 identifying the day of the week of a date.. + * Returns a number from 1 to 7 identifying the day of the week of the specified date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number that represents a date. - * @param {?number} arg2 Is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A number that represents a date, or a result of other formulas or functions. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A number that determines the type of return value: 1 - returns a number from 1 (Sunday) to 7 (Saturday); + * 2 - returns a number from 1 (Monday) to 7 (Sunday); 3 - returns a number from 0 (Monday) to 6 (Sunday). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/WEEKDAY.js */ ApiWorksheetFunction.prototype.WEEKDAY = function (arg1, arg2) { return this.private_calculateFunction("WEEKDAY", arguments); @@ -3732,9 +4294,10 @@ * Returns the week number in the year. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the date-time code used by Microsoft Excel for date and time calculation. - * @param {?any} arg2 Is a number (1 or 2) that determines the type of the return value. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The date-time code used for date and time calculation. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A number (1 or 2) that determines the type of the return value: Sunday (1) or Monday (2). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/WEEKNUM.js */ ApiWorksheetFunction.prototype.WEEKNUM = function (arg1, arg2) { return this.private_calculateFunction("WEEKNUM", arguments); @@ -3743,10 +4306,11 @@ * Returns the serial number of the date before or after a specified number of workdays. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a serial date number that represents the start date. - * @param {any} arg2 Is the number of nonweekend and non-holiday days before or after start_date. - * @param {?any} arg3 Is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A serial date number that represents the start date. + * @param {ApiRange | ApiName | number} arg2 - The number of nonweekend and non-holiday days before or after the start date. A positive value for days yields a future date; a negative value yields a past date. + * @param {?ApiRange | ApiName | number[]} arg3 - An optional range or array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/WORKDAY.js */ ApiWorksheetFunction.prototype.WORKDAY = function (arg1, arg2, arg3) { return this.private_calculateFunction("WORKDAY", arguments); @@ -3755,33 +4319,36 @@ * Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a serial date number that represents the start date. - * @param {any} arg2 Is the number of nonweekend and non-holiday days before or after start_date. - * @param {?number} arg3 Is a number or string specifying when weekends occur. - * @param {?any} arg4 Is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A serial date number that represents the start date. + * @param {ApiRange | ApiName | number} arg2 - The number of nonweekend and non-holiday days before or after the start date. A positive value for days yields a future date; a negative value yields a past date. + * @param {?ApiRange | ?ApiName | ?number | ?string} arg3 - A number or string specifying when weekends occur. + * @param {?ApiRange | ?ApiName | &number[]} arg4 - An optional range or array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/WORKDAY_INTL.js */ ApiWorksheetFunction.prototype.WORKDAY_INTL = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("WORKDAY.INTL", arguments); }; /** - * Returns the year of a date, an integer in the range 1900-9999.. + * Returns the year of a date, an integer in the range 1900-9999. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is a number in the date-time code used by Microsoft Excel. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A number in the date-time code, or a result of other formulas or functions. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/YEAR.js */ ApiWorksheetFunction.prototype.YEAR = function (arg1) { return this.private_calculateFunction("YEAR", arguments); }; /** - * Returns the year fraction representing the number of whole days between start_date and end_date. + * Returns the year fraction representing the number of whole days between the start date and end date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a serial date number that represents the start date. - * @param {any} arg2 Is a serial date number that represents the end date. - * @param {?any} arg3 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A serial date number that represents the start date. + * @param {ApiRange | ApiName | number} arg2 - A serial date number that represents the end date. + * @param {?ApiRange | ?ApiName | ?number} arg3 - The type of day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/YEARFRAC.js */ ApiWorksheetFunction.prototype.YEARFRAC = function (arg1, arg2, arg3) { return this.private_calculateFunction("YEARFRAC", arguments); @@ -3790,9 +4357,10 @@ * Returns the modified Bessel function In(x). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value at which to evaluate the function. - * @param {any} arg2 Is the order of the Bessel function. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function. + * @param {ApiRange | ApiName | number} arg2 - The order of the Bessel function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BESSELI.js */ ApiWorksheetFunction.prototype.BESSELI = function (arg1, arg2) { return this.private_calculateFunction("BESSELI", arguments); @@ -3801,9 +4369,10 @@ * Returns the Bessel function Jn(x). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value at which to evaluate the function. - * @param {any} arg2 Is the order of the Bessel function. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function. + * @param {ApiRange | ApiName | number} arg2 - The order of the Bessel function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BESSELJ.js */ ApiWorksheetFunction.prototype.BESSELJ = function (arg1, arg2) { return this.private_calculateFunction("BESSELJ", arguments); @@ -3812,9 +4381,10 @@ * Returns the modified Bessel function Kn(x). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value at which to evaluate the function. - * @param {any} arg2 Is the order of the function. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function. + * @param {ApiRange | ApiName | number} arg2 - The order of the function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BESSELK.js */ ApiWorksheetFunction.prototype.BESSELK = function (arg1, arg2) { return this.private_calculateFunction("BESSELK", arguments); @@ -3823,9 +4393,10 @@ * Returns the Bessel function Yn(x). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value at which to evaluate the function. - * @param {any} arg2 Is the order of the function. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value at which to evaluate the function. + * @param {ApiRange | ApiName | number} arg2 - The order of the function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BESSELY.js */ ApiWorksheetFunction.prototype.BESSELY = function (arg1, arg2) { return this.private_calculateFunction("BESSELY", arguments); @@ -3834,8 +4405,9 @@ * Converts a binary number to decimal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the binary number you want to convert. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The binary number which will be convertrd. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BIN2DEC.js */ ApiWorksheetFunction.prototype.BIN2DEC = function (arg1) { return this.private_calculateFunction("BIN2DEC", arguments); @@ -3844,9 +4416,10 @@ * Converts a binary number to hexadecimal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the binary number you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The binary number which will be convertrd. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BIN2HEX.js */ ApiWorksheetFunction.prototype.BIN2HEX = function (arg1, arg2) { return this.private_calculateFunction("BIN2HEX", arguments); @@ -3855,64 +4428,70 @@ * Converts a binary number to octal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the binary number you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The binary number which will be convertrd. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BIN2OCT.js */ ApiWorksheetFunction.prototype.BIN2OCT = function (arg1, arg2) { return this.private_calculateFunction("BIN2OCT", arguments); }; /** - * Returns a bitwise 'And' of two numbers. + * Returns a bitwise "AND" of two numbers. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the decimal representation of the binary number you want to evaluate. - * @param {number} arg2 Is the decimal representation of the binary number you want to evaluate. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The first decimal representation of the binary number to evaluate. + * @param {ApiRange | ApiName | number} arg2 - The second decimal representation of the binary number to evaluate. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BITAND.js */ ApiWorksheetFunction.prototype.BITAND = function (arg1, arg2) { return this.private_calculateFunction("BITAND", arguments); }; /** - * Returns a number shifted left by shift_amount bits. + * Returns a number shifted left by the specified number of bits. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the decimal representation of the binary number you want to evaluate. - * @param {number} arg2 Is the number of bits that you want to shift Number left by. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The decimal representation of the binary number to evaluate. + * @param {ApiRange | ApiName | number} arg2 - The number of bits by which the number will be shifted left. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BITLSHIFT.js */ ApiWorksheetFunction.prototype.BITLSHIFT = function (arg1, arg2) { return this.private_calculateFunction("BITLSHIFT", arguments); }; /** - * Returns a bitwise 'Or' of two numbers. + * Returns a bitwise "OR" of two numbers. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the decimal representation of the binary number you want to evaluate. - * @param {number} arg2 Is the decimal representation of the binary number you want to evaluate. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The first decimal representation of the binary number to evaluate. + * @param {ApiRange | ApiName | number} arg2 - The second decimal representation of the binary number to evaluate. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BITOR.js */ ApiWorksheetFunction.prototype.BITOR = function (arg1, arg2) { return this.private_calculateFunction("BITOR", arguments); }; /** - * Returns a number shifted right by shift_amount bits. + * Returns a number shifted right by the specified number of bits. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the decimal representation of the binary number you want to evaluate. - * @param {number} arg2 Is the number of bits that you want to shift Number right by. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The decimal representation of the binary number to evaluate. + * @param {ApiRange | ApiName | number} arg2 - The number of bits by which the number will be shifted right. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BITRSHIFT.js */ ApiWorksheetFunction.prototype.BITRSHIFT = function (arg1, arg2) { return this.private_calculateFunction("BITRSHIFT", arguments); }; /** - * Returns a bitwise 'Exclusive Or' of two numbers. + * Returns a bitwise "XOR" (Exclusive Or) of two numbers. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the decimal representation of the binary number you want to evaluate. - * @param {number} arg2 Is the decimal representation of the binary number you want to evaluate. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The first decimal representation of the binary number to evaluate. + * @param {ApiRange | ApiName | number} arg2 - The second decimal representation of the binary number to evaluate. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BITXOR.js */ ApiWorksheetFunction.prototype.BITXOR = function (arg1, arg2) { return this.private_calculateFunction("BITXOR", arguments); @@ -3921,10 +4500,12 @@ * Converts real and imaginary coefficients into a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the real coefficient of the complex number. - * @param {any} arg2 Is the imaginary coefficient of the complex number. - * @param {?any} arg3 Is the suffix for the imaginary component of the complex number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The real coefficient of the complex number. + * @param {ApiRange | ApiName | number} arg2 - The imaginary coefficient of the complex number. + * @param {?ApiRange | ?ApiName | ?string} arg3 - The suffix for the imaginary component of the complex number. It can be either "i" or "j" in lowercase. + * If it is omitted, the function will assume suffix to be "i". + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COMPLEX.js */ ApiWorksheetFunction.prototype.COMPLEX = function (arg1, arg2, arg3) { return this.private_calculateFunction("COMPLEX", arguments); @@ -3933,10 +4514,11 @@ * Converts a number from one measurement system to another. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value in from_units to convert. - * @param {any} arg2 Is the units for number. - * @param {any} arg3 Is the units for the result. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value in the specified units to be converted. + * @param {ApiRange | ApiName | string} arg2 - The original measurement unit. + * @param {ApiRange | ApiName | string} arg3 - The units for the result. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CONVERT.js */ ApiWorksheetFunction.prototype.CONVERT = function (arg1, arg2, arg3) { return this.private_calculateFunction("CONVERT", arguments); @@ -3945,9 +4527,10 @@ * Converts a decimal number to binary. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the decimal integer you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The decimal integer to convert. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DEC2BIN.js */ ApiWorksheetFunction.prototype.DEC2BIN = function (arg1, arg2) { return this.private_calculateFunction("DEC2BIN", arguments); @@ -3956,9 +4539,10 @@ * Converts a decimal number to hexadecimal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the decimal integer you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The decimal integer to convert. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DEC2HEX.js */ ApiWorksheetFunction.prototype.DEC2HEX = function (arg1, arg2) { return this.private_calculateFunction("DEC2HEX", arguments); @@ -3967,83 +4551,91 @@ * Converts a decimal number to octal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the decimal integer you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Te decimal integer to convert. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DEC2OCT.js */ ApiWorksheetFunction.prototype.DEC2OCT = function (arg1, arg2) { return this.private_calculateFunction("DEC2OCT", arguments); }; /** - * Tests whether two numbers are equal. + * Tests whether two numbers are equal. The function returns 1 if the numbers are equal and 0 otherwise. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the first number. - * @param {?any} arg2 Is the second number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The first number. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The second number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DELTA.js */ ApiWorksheetFunction.prototype.DELTA = function (arg1, arg2) { return this.private_calculateFunction("DELTA", arguments); }; /** - * Returns the error function. + * Returns the error function integrated between the specified lower and upper limits. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the lower bound for integrating ERF. - * @param {?any} arg2 Is the upper bound for integrating ERF. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The lower bound for integrating the error function. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The upper bound for integrating the error function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ERF.js */ ApiWorksheetFunction.prototype.ERF = function (arg1, arg2) { return this.private_calculateFunction("ERF", arguments); }; /** - * Returns the error function. + * Returns the error function integrated between 0 and the specified lower limit. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the lower bound for integrating ERF.PRECISE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The lower bound for integrating the error function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ERF_PRECISE.js */ ApiWorksheetFunction.prototype.ERF_PRECISE = function (arg1) { return this.private_calculateFunction("ERF.PRECISE", arguments); }; /** - * Returns the complementary error function. + * Returns the complementary error function integrated between the specified lower limit and infinity. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the lower bound for integrating ERF. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The lower bound for integrating the complementary error function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ERFC.js */ ApiWorksheetFunction.prototype.ERFC = function (arg1) { return this.private_calculateFunction("ERFC", arguments); }; /** - * Returns the complementary error function. + * Returns the complementary error function integrated between the specified lower limit and infinity. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the lower bound for integrating ERFC.PRECISE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The lower bound for integrating the complementary error function. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ERFC_PRECISE.js */ ApiWorksheetFunction.prototype.ERFC_PRECISE = function (arg1) { return this.private_calculateFunction("ERFC.PRECISE", arguments); }; /** - * Tests whether a number is greater than a threshold value. + * Tests whether a number is greater than a threshold value. The function returns 1 if the number is greater than or equal to the threshold value and 0 otherwise. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value to test against step. - * @param {?any} arg2 Is the threshold value. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to test against step. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The threshold value. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GESTEP.js */ ApiWorksheetFunction.prototype.GESTEP = function (arg1, arg2) { return this.private_calculateFunction("GESTEP", arguments); }; /** - * Converts a Hexadecimal number to binary. + * Converts a hexadecimal number to binary. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the hexadecimal number you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The hexadecimal number to convert. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HEX2BIN.js */ ApiWorksheetFunction.prototype.HEX2BIN = function (arg1, arg2) { return this.private_calculateFunction("HEX2BIN", arguments); @@ -4052,8 +4644,9 @@ * Converts a hexadecimal number to decimal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the hexadecimal number you want to convert. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The hexadecimal number to convert. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HEX2DEC.js */ ApiWorksheetFunction.prototype.HEX2DEC = function (arg1) { return this.private_calculateFunction("HEX2DEC", arguments); @@ -4062,9 +4655,10 @@ * Converts a hexadecimal number to octal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the hexadecimal number you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The hexadecimal number to convert. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HEX2OCT.js */ ApiWorksheetFunction.prototype.HEX2OCT = function (arg1, arg2) { return this.private_calculateFunction("HEX2OCT", arguments); @@ -4073,8 +4667,9 @@ * Returns the absolute value (modulus) of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the absolute value. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMABS.js */ ApiWorksheetFunction.prototype.IMABS = function (arg1) { return this.private_calculateFunction("IMABS", arguments); @@ -4083,18 +4678,20 @@ * Returns the imaginary coefficient of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the imaginary coefficient. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMAGINARY.js */ ApiWorksheetFunction.prototype.IMAGINARY = function (arg1) { return this.private_calculateFunction("IMAGINARY", arguments); }; /** - * Returns the argument q, an angle expressed in radians. + * Returns the argument Theta, an angle expressed in radians. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the argument. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMARGUMENT.js */ ApiWorksheetFunction.prototype.IMARGUMENT = function (arg1) { return this.private_calculateFunction("IMARGUMENT", arguments); @@ -4103,8 +4700,9 @@ * Returns the complex conjugate of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the conjugate. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMCONJUGATE.js */ ApiWorksheetFunction.prototype.IMCONJUGATE = function (arg1) { return this.private_calculateFunction("IMCONJUGATE", arguments); @@ -4113,8 +4711,9 @@ * Returns the cosine of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the cosine. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMCOS.js */ ApiWorksheetFunction.prototype.IMCOS = function (arg1) { return this.private_calculateFunction("IMCOS", arguments); @@ -4123,8 +4722,9 @@ * Returns the hyperbolic cosine of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the hyperbolic cosine. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMCOSH.js */ ApiWorksheetFunction.prototype.IMCOSH = function (arg1) { return this.private_calculateFunction("IMCOSH", arguments); @@ -4133,8 +4733,9 @@ * Returns the cotangent of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the cotangent. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMCOT.js */ ApiWorksheetFunction.prototype.IMCOT = function (arg1) { return this.private_calculateFunction("IMCOT", arguments); @@ -4143,8 +4744,9 @@ * Returns the cosecant of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the cosecant. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMCSC.js */ ApiWorksheetFunction.prototype.IMCSC = function (arg1) { return this.private_calculateFunction("IMCSC", arguments); @@ -4153,8 +4755,9 @@ * Returns the hyperbolic cosecant of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the hyperbolic cosecant. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMCSCH.js */ ApiWorksheetFunction.prototype.IMCSCH = function (arg1) { return this.private_calculateFunction("IMCSCH", arguments); @@ -4163,9 +4766,10 @@ * Returns the quotient of two complex numbers. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the complex numerator or dividend. - * @param {any} arg2 Is the complex denominator or divisor. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The complex numerator or dividend in the x + yi or x + yj form. + * @param {ApiRange | ApiName | number} arg2 - The complex denominator or divisor in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMDIV.js */ ApiWorksheetFunction.prototype.IMDIV = function (arg1, arg2) { return this.private_calculateFunction("IMDIV", arguments); @@ -4174,8 +4778,9 @@ * Returns the exponential of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the exponential. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMEXP.js */ ApiWorksheetFunction.prototype.IMEXP = function (arg1) { return this.private_calculateFunction("IMEXP", arguments); @@ -4184,8 +4789,9 @@ * Returns the natural logarithm of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the natural logarithm. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMLN.js */ ApiWorksheetFunction.prototype.IMLN = function (arg1) { return this.private_calculateFunction("IMLN", arguments); @@ -4194,8 +4800,9 @@ * Returns the base-10 logarithm of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the common logarithm. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMLOG10.js */ ApiWorksheetFunction.prototype.IMLOG10 = function (arg1) { return this.private_calculateFunction("IMLOG10", arguments); @@ -4204,8 +4811,9 @@ * Returns the base-2 logarithm of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the base-2 logarithm. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMLOG2.js */ ApiWorksheetFunction.prototype.IMLOG2 = function (arg1) { return this.private_calculateFunction("IMLOG2", arguments); @@ -4214,18 +4822,21 @@ * Returns a complex number raised to an integer power. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number you want to raise to a power. - * @param {any} arg2 Is the power to which you want to raise the complex number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @param {ApiRange | ApiName | number} arg2 - The power to which the complex number will be raised. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMPOWER.js */ ApiWorksheetFunction.prototype.IMPOWER = function (arg1, arg2) { return this.private_calculateFunction("IMPOWER", arguments); }; /** - * Returns the product of 1 to 255 complex numbers. + * Returns the product of the specified complex numbers. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} args - Up to 255 complex numbers expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMPRODUCT.js */ ApiWorksheetFunction.prototype.IMPRODUCT = function () { return this.private_calculateFunction("IMPRODUCT", arguments); @@ -4234,8 +4845,9 @@ * Returns the real coefficient of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the real coefficient. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMREAL.js */ ApiWorksheetFunction.prototype.IMREAL = function (arg1) { return this.private_calculateFunction("IMREAL", arguments); @@ -4244,8 +4856,9 @@ * Returns the secant of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the secant. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMSEC.js */ ApiWorksheetFunction.prototype.IMSEC = function (arg1) { return this.private_calculateFunction("IMSEC", arguments); @@ -4254,8 +4867,9 @@ * Returns the hyperbolic secant of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the hyperbolic secant. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMSECH.js */ ApiWorksheetFunction.prototype.IMSECH = function (arg1) { return this.private_calculateFunction("IMSECH", arguments); @@ -4264,8 +4878,9 @@ * Returns the sine of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the sine. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMSIN.js */ ApiWorksheetFunction.prototype.IMSIN = function (arg1) { return this.private_calculateFunction("IMSIN", arguments); @@ -4274,8 +4889,9 @@ * Returns the hyperbolic sine of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the hyperbolic sine. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMSINH.js */ ApiWorksheetFunction.prototype.IMSINH = function (arg1) { return this.private_calculateFunction("IMSINH", arguments); @@ -4284,28 +4900,32 @@ * Returns the square root of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the square root. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMSQRT.js */ ApiWorksheetFunction.prototype.IMSQRT = function (arg1) { return this.private_calculateFunction("IMSQRT", arguments); }; /** - * Returns the difference of two complex numbers. + * Returns the difference of two complex numbers expressed in the x + yi or x + yj form. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the complex number from which to subtract inumber2. - * @param {any} arg2 Is the complex number to subtract from inumber1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The complex number from which to subtract the second number. + * @param {ApiRange | ApiName | number} arg2 - The complex number to subtract from the first number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMSUB.js */ ApiWorksheetFunction.prototype.IMSUB = function (arg1, arg2) { return this.private_calculateFunction("IMSUB", arguments); }; /** - * Returns the sum of complex numbers. + * Returns the sum of the specified complex numbers. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} args - Up to 255 complex numbers expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMSUM.js */ ApiWorksheetFunction.prototype.IMSUM = function () { return this.private_calculateFunction("IMSUM", arguments); @@ -4314,8 +4934,9 @@ * Returns the tangent of a complex number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a complex number for which you want the tangent. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A complex number expressed in the x + yi or x + yj form. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IMTAN.js */ ApiWorksheetFunction.prototype.IMTAN = function (arg1) { return this.private_calculateFunction("IMTAN", arguments); @@ -4324,9 +4945,10 @@ * Converts an octal number to binary. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the octal number you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The octal number to convert. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/OCT2BIN.js */ ApiWorksheetFunction.prototype.OCT2BIN = function (arg1, arg2) { return this.private_calculateFunction("OCT2BIN", arguments); @@ -4335,8 +4957,9 @@ * Converts an octal number to decimal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the octal number you want to convert. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The octal number to convert. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/OCT2DEC.js */ ApiWorksheetFunction.prototype.OCT2DEC = function (arg1) { return this.private_calculateFunction("OCT2DEC", arguments); @@ -4345,21 +4968,23 @@ * Converts an octal number to hexadecimal. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the octal number you want to convert. - * @param {?any} arg2 Is the number of characters to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The octal number to convert. + * @param {?ApiRange | ?ApiName | ?number} arg2 -The number of characters to use. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/OCT2HEX.js */ ApiWorksheetFunction.prototype.OCT2HEX = function (arg1, arg2) { return this.private_calculateFunction("OCT2HEX", arguments); }; /** - * Averages the values in a column in a list or database that match conditions you specify. + * Averages the values in a field (column) of records in a list or database that match conditions you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DAVERAGE.js */ ApiWorksheetFunction.prototype.DAVERAGE = function (arg1, arg2, arg3) { return this.private_calculateFunction("DAVERAGE", arguments); @@ -4368,10 +4993,11 @@ * Counts the cells containing numbers in the field (column) of records in the database that match the conditions you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DCOUNT.js */ ApiWorksheetFunction.prototype.DCOUNT = function (arg1, arg2, arg3) { return this.private_calculateFunction("DCOUNT", arguments); @@ -4380,10 +5006,11 @@ * Counts nonblank cells in the field (column) of records in the database that match the conditions you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1- The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DCOUNTA.js */ ApiWorksheetFunction.prototype.DCOUNTA = function (arg1, arg2, arg3) { return this.private_calculateFunction("DCOUNTA", arguments); @@ -4392,10 +5019,11 @@ * Extracts from a database a single record that matches the conditions you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DGET.js */ ApiWorksheetFunction.prototype.DGET = function (arg1, arg2, arg3) { return this.private_calculateFunction("DGET", arguments); @@ -4404,10 +5032,11 @@ * Returns the largest number in the field (column) of records in the database that match the conditions you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DMAX.js */ ApiWorksheetFunction.prototype.DMAX = function (arg1, arg2, arg3) { return this.private_calculateFunction("DMAX", arguments); @@ -4416,10 +5045,11 @@ * Returns the smallest number in the field (column) of records in the database that match the conditions you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DMIN.js */ ApiWorksheetFunction.prototype.DMIN = function (arg1, arg2, arg3) { return this.private_calculateFunction("DMIN", arguments); @@ -4428,34 +5058,37 @@ * Multiplies the values in the field (column) of records in the database that match the conditions you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DPRODUCT.js */ ApiWorksheetFunction.prototype.DPRODUCT = function (arg1, arg2, arg3) { return this.private_calculateFunction("DPRODUCT", arguments); }; /** - * Estimates the standard deviation based on a sample from selected database entries. + * Estimates the standard deviation based on a sample from the selected database entries. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DSTDEV.js */ ApiWorksheetFunction.prototype.DSTDEV = function (arg1, arg2, arg3) { return this.private_calculateFunction("DSTDEV", arguments); }; /** - * Calculates the standard deviation based on the entire population of selected database entries. + * Calculates the standard deviation based on the entire population of the selected database entries. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DSTDEVP.js */ ApiWorksheetFunction.prototype.DSTDEVP = function (arg1, arg2, arg3) { return this.private_calculateFunction("DSTDEVP", arguments); @@ -4464,51 +5097,56 @@ * Adds the numbers in the field (column) of records in the database that match the conditions you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DSUM.js */ ApiWorksheetFunction.prototype.DSUM = function (arg1, arg2, arg3) { return this.private_calculateFunction("DSUM", arguments); }; /** - * Estimates variance based on a sample from selected database entries. + * Estimates variance based on a sample from the selected database entries. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DVAR.js */ ApiWorksheetFunction.prototype.DVAR = function (arg1, arg2, arg3) { return this.private_calculateFunction("DVAR", arguments); }; /** - * Calculates variance based on the entire population of selected database entries. + * Calculates variance based on the entire population of the selected database entries. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells that makes up the list or database. A database is a list of related data. - * @param {number} arg2 Is either the label of the column in double quotation marks or a number that represents the column's position in the list. - * @param {string} arg3 Is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells that makes up the list or database. A database is a list of related data. + * @param {ApiRange | ApiName | number | string} arg2 - The column which is used in the function. Either the label of the column in double quotation marks or a number that represents the column's position in the list. + * @param {ApiRange | ApiName} arg3 - The range of cells that contains the conditions you specify. The range includes at least one column label and at least one cell below the column label for a condition. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DVARP.js */ ApiWorksheetFunction.prototype.DVARP = function (arg1, arg2, arg3) { return this.private_calculateFunction("DVARP", arguments); }; /** - * Returns the accrued interest for a security that pays periodic interest.. + * Returns the accrued interest for a security that pays periodic interest. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's issue date, expressed as a serial date number. - * @param {any} arg2 Is the security's first interest date, expressed as a serial date number. - * @param {any} arg3 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg4 Is the security's annual coupon rate. - * @param {any} arg5 Is the security's par value. - * @param {any} arg6 Is the number of coupon payments per year. - * @param {?any} arg7 Is the type of day count basis to use. - * @param {?any} arg8 Is a logical value: to accrued interest from issue date = TRUE or omitted; to calculate from last coupon payment date = FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The issue date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The date when the first interest is paid, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg4 - The annual coupon rate of the security. + * @param {ApiRange | ApiName | number} arg5 - The par value of the security. + * @param {ApiRange | ApiName | number} arg6 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg7 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @param {?ApiRange | ?ApiName | ?number} arg8 - A logical value: true (1) or omitted returns the accrued interest from the issue date to the settlement date. + * false (0) returns the accrued interest from the first interest date to the settlement date. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ACCRINT.js */ ApiWorksheetFunction.prototype.ACCRINT = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) { return this.private_calculateFunction("ACCRINT", arguments); @@ -4517,44 +5155,47 @@ * Returns the accrued interest for a security that pays interest at maturity. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's issue date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's annual coupon rate. - * @param {any} arg4 Is the security's par value. - * @param {?any} arg5 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The issue date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The annual coupon rate of the security. + * @param {ApiRange | ApiName | number} arg4 - The par value of the security. + * @param {?ApiRange | ?ApiName | ?number} arg5 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ACCRINTM.js */ ApiWorksheetFunction.prototype.ACCRINTM = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("ACCRINTM", arguments); }; /** - * Returns the prorated linear depreciation of an asset for each accounting period.. + * Returns the prorated linear depreciation of an asset for each accounting period. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1. - * @param {any} arg2. - * @param {any} arg3. - * @param {any} arg4. - * @param {any} arg5. - * @param {any} arg6. - * @param {?any} arg7. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The cost of the asset. + * @param {ApiRange | ApiName | number} arg2 - The date when asset is purchased. + * @param {ApiRange | ApiName | number} arg3 - The date when the first period ends. + * @param {ApiRange | ApiName | number} arg4 - The salvage value of the asset at the end of its lifetime. + * @param {ApiRange | ApiName | number} arg5 - The period for which the depreciation will be calculated. + * @param {ApiRange | ApiName | number} arg6 - The rate of depreciation. + * @param {?ApiRange | ?ApiName | ?number} arg7 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AMORDEGRC.js */ ApiWorksheetFunction.prototype.AMORDEGRC = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this.private_calculateFunction("AMORDEGRC", arguments); }; /** - * Returns the prorated linear depreciation of an asset for each accounting period.. + * Returns the prorated linear depreciation of an asset for each accounting period. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the cost of the asset. - * @param {any} arg2 Is the date the asset is purchased. - * @param {any} arg3 Is the date of the end of the first period. - * @param {any} arg4 Is the salvage value at the end of life of the asset.. - * @param {any} arg5 Is the period. - * @param {any} arg6 Is the rate of depreciation. - * @param {?any} arg7 Year_basis : 0 for year of 360 days, 1 for actual, 3 for year of 365 days.. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The cost of the asset. + * @param {ApiRange | ApiName | number} arg2 - The date when asset is purchased. + * @param {ApiRange | ApiName | number} arg3 - The date when the first period ends. + * @param {ApiRange | ApiName | number} arg4 - The salvage value of the asset at the end of its lifetime. + * @param {ApiRange | ApiName | number} arg5 - The period for which the depreciation will be calculated. + * @param {ApiRange | ApiName | number} arg6 - The rate of depreciation. + * @param {?ApiRange | ?ApiName | ?number} arg7 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AMORLINC.js */ ApiWorksheetFunction.prototype.AMORLINC = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this.private_calculateFunction("AMORLINC", arguments); @@ -4563,11 +5204,12 @@ * Returns the number of days from the beginning of the coupon period to the settlement date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the number of coupon payments per year. - * @param {?any} arg4 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUPDAYBS.js */ ApiWorksheetFunction.prototype.COUPDAYBS = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("COUPDAYBS", arguments); @@ -4576,11 +5218,12 @@ * Returns the number of days in the coupon period that contains the settlement date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the number of coupon payments per year. - * @param {?any} arg4 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUPDAYS.js */ ApiWorksheetFunction.prototype.COUPDAYS = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("COUPDAYS", arguments); @@ -4589,11 +5232,12 @@ * Returns the number of days from the settlement date to the next coupon date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the number of coupon payments per year. - * @param {?any} arg4 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUPDAYSNC.js */ ApiWorksheetFunction.prototype.COUPDAYSNC = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("COUPDAYSNC", arguments); @@ -4602,11 +5246,12 @@ * Returns the next coupon date after the settlement date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the number of coupon payments per year. - * @param {?any} arg4 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUPNCD.js */ ApiWorksheetFunction.prototype.COUPNCD = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("COUPNCD", arguments); @@ -4615,11 +5260,12 @@ * Returns the number of coupons payable between the settlement date and maturity date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the number of coupon payments per year. - * @param {?any} arg4 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUPNUM.js */ ApiWorksheetFunction.prototype.COUPNUM = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("COUPNUM", arguments); @@ -4628,11 +5274,12 @@ * Returns the previous coupon date before the settlement date. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the number of coupon payments per year. - * @param {?any} arg4 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COUPPCD.js */ ApiWorksheetFunction.prototype.COUPPCD = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("COUPPCD", arguments); @@ -4641,13 +5288,14 @@ * Returns the cumulative interest paid between two periods. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the interest rate. - * @param {any} arg2 Is the total number of payment periods. - * @param {any} arg3 Is the present value. - * @param {any} arg4 Is the first period in the calculation. - * @param {any} arg5 Is the last period in the calculation. - * @param {any} arg6 Is the timing of the payment. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate for the investment. + * @param {ApiRange | ApiName | number} arg2 - The total number of payment periods. + * @param {ApiRange | ApiName | number} arg3 - A present value of the payments. + * @param {ApiRange | ApiName | number} arg4 - The first period included into the calculation. + * @param {ApiRange | ApiName | number} arg5 - The last period included into the calculation. + * @param {ApiRange | ApiName | number} arg6 - The timing of the payment. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CUMIPMT.js */ ApiWorksheetFunction.prototype.CUMIPMT = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("CUMIPMT", arguments); @@ -4656,13 +5304,14 @@ * Returns the cumulative principal paid on a loan between two periods. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the interest rate. - * @param {any} arg2 Is the total number of payment periods. - * @param {any} arg3 Is the present value. - * @param {any} arg4 Is the first period in the calculation. - * @param {any} arg5 Is the last period in the calculation. - * @param {any} arg6 Is the timing of the payment. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate for the investment. + * @param {ApiRange | ApiName | number} arg2 - The total number of payment periods. + * @param {ApiRange | ApiName | number} arg3 - A present value of the payments. + * @param {ApiRange | ApiName | number} arg4 - The first period included into the calculation. + * @param {ApiRange | ApiName | number} arg5 - The last period included into the calculation. + * @param {ApiRange | ApiName | number} arg6 - The timing of the payment. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CUMPRINC.js */ ApiWorksheetFunction.prototype.CUMPRINC = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("CUMPRINC", arguments); @@ -4671,12 +5320,13 @@ * Returns the depreciation of an asset for a specified period using the fixed-declining balance method. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the initial cost of the asset. - * @param {number} arg2 Is the salvage value at the end of the life of the asset. - * @param {number} arg3 Is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). - * @param {number} arg4 Is the period for which you want to calculate the depreciation. Period must use the same units as Life. - * @param {?number} arg5 Is the number of months in the first year. If month is omitted, it is assumed to be 12. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The initial cost of the asset. + * @param {ApiRange | ApiName | number} arg2 - The salvage value of the asset at the end of its lifetime. + * @param {ApiRange | ApiName | number} arg3 - The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). + * @param {ApiRange | ApiName | number} arg4 - The period for which the depreciation will be calculated. Period must use the same units as the useful life of the asset. + * @param {?ApiRange | ?ApiName | ?number} arg5 - The number of months in the first year. If this parameter is omitted, it is assumed to be 12. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DB.js */ ApiWorksheetFunction.prototype.DB = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("DB", arguments); @@ -4685,12 +5335,13 @@ * Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the initial cost of the asset. - * @param {number} arg2 Is the salvage value at the end of the life of the asset. - * @param {number} arg3 Is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). - * @param {number} arg4 Is the period for which you want to calculate the depreciation. Period must use the same units as Life. - * @param {?number} arg5 Is the rate at which the balance declines. If Factor is omitted, it is assumed to be 2 (the double-declining balance method). - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The initial cost of the asset. + * @param {ApiRange | ApiName | number} arg2 - The salvage value of the asset at the end of its lifetime. + * @param {ApiRange | ApiName | number} arg3 - The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). + * @param {ApiRange | ApiName | number} arg4 - The period for which the depreciation will be calculated. Period must use the same units as the useful life of the asset. + * @param {?ApiRange | ?ApiName | ?number} arg5 - The rate at which the balance declines. If this parameter is omitted, it is assumed to be 2 (the double-declining balance method). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DDB.js */ ApiWorksheetFunction.prototype.DDB = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("DDB", arguments); @@ -4699,12 +5350,13 @@ * Returns the discount rate for a security. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's price per $100 face value. - * @param {any} arg4 Is the security's redemption value per $100 face value. - * @param {?any} arg5 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The purchase price of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg4 - The redemption value of the security, per $100 par value. + * @param {?ApiRange | ?ApiName | ?number} arg5 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DISC.js */ ApiWorksheetFunction.prototype.DISC = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("DISC", arguments); @@ -4713,9 +5365,10 @@ * Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a number expressed as a fraction. - * @param {any} arg2 Is the integer to use in the denominator of the fraction. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A number expressed as a fraction. + * @param {ApiRange | ApiName | number} arg2 - The integer to use in the denominator of the fraction. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DOLLARDE.js */ ApiWorksheetFunction.prototype.DOLLARDE = function (arg1, arg2) { return this.private_calculateFunction("DOLLARDE", arguments); @@ -4724,9 +5377,10 @@ * Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a decimal number. - * @param {any} arg2 Is the integer to use in the denominator of a fraction. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A decimal number. + * @param {ApiRange | ApiName | number} arg2 - The integer to use in the denominator of a fraction. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DOLLARFR.js */ ApiWorksheetFunction.prototype.DOLLARFR = function (arg1, arg2) { return this.private_calculateFunction("DOLLARFR", arguments); @@ -4735,13 +5389,14 @@ * Returns the annual duration of a security with periodic interest payments. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's annual coupon rate. - * @param {any} arg4 Is the security's annual yield. - * @param {any} arg5 Is the number of coupon payments per year. - * @param {?any} arg6 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The annual coupon rate of the security. + * @param {ApiRange | ApiName | number} arg4 - The annual yield of the security. + * @param {ApiRange | ApiName | number} arg5 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg6 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DURATION.js */ ApiWorksheetFunction.prototype.DURATION = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("DURATION", arguments); @@ -4750,9 +5405,10 @@ * Returns the effective annual interest rate. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the nominal interest rate. - * @param {any} arg2 Is the number of compounding periods per year. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The nominal interest rate. + * @param {ApiRange | ApiName | number} arg2 - The number of compounding periods per year. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/EFFECT.js */ ApiWorksheetFunction.prototype.EFFECT = function (arg1, arg2) { return this.private_calculateFunction("EFFECT", arguments); @@ -4761,12 +5417,13 @@ * Returns the future value of an investment based on periodic, constant payments and a constant interest rate. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. - * @param {number} arg2 Is the total number of payment periods in the investment. - * @param {number} arg3 Is the payment made each period; it cannot change over the life of the investment. - * @param {?number} arg4 Is the present value, or the lump-sum amount that a series of future payments is worth now. If omitted, Pv = 0. - * @param {?number} arg5 Is a value representing the timing of payment: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. + * @param {ApiRange | ApiName | number} arg2 - The total number of payment periods in the investment. + * @param {ApiRange | ApiName | number} arg3 - The payment made each period; it cannot change over the life of the investment. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The present value, or the lump-sum amount that a series of future payments is worth now. If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg5 - A value representing the timing of payment: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FV.js */ ApiWorksheetFunction.prototype.FV = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("FV", arguments); @@ -4775,9 +5432,10 @@ * Returns the future value of an initial principal after applying a series of compound interest rates. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the present value. - * @param {any} arg2 Is an array of interest rates to apply. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The present value of an investment. + * @param {number[] | ApiRange | ApiName} arg2 - An array of interest rates to apply. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FVSCHEDULE.js */ ApiWorksheetFunction.prototype.FVSCHEDULE = function (arg1, arg2) { return this.private_calculateFunction("FVSCHEDULE", arguments); @@ -4786,12 +5444,13 @@ * Returns the interest rate for a fully invested security. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the amount invested in the security. - * @param {any} arg4 Is the amount to be received at maturity. - * @param {?any} arg5 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The amount invested in the security. + * @param {ApiRange | ApiName | number} arg4 - The amount to be received at maturity. + * @param {?ApiRange | ?ApiName | ?number} arg6 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/INTRATE.js */ ApiWorksheetFunction.prototype.INTRATE = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("INTRATE", arguments); @@ -4800,13 +5459,14 @@ * Returns the interest payment for a given period for an investment, based on periodic, constant payments and a constant interest rate. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. - * @param {number} arg2 Is the period for which you want to find the interest and must be in the range 1 to Nper. - * @param {number} arg3 Is the total number of payment periods in an investment. - * @param {number} arg4 Is the present value, or the lump-sum amount that a series of future payments is worth now. - * @param {?number} arg5 Is the future value, or a cash balance you want to attain after the last payment is made. If omitted, Fv = 0. - * @param {?number} arg6 Is a logical value representing the timing of payment: at the end of the period = 0 or omitted, at the beginning of the period = 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. + * @param {ApiRange | ApiName | number} arg2 - The period for which the interest will be returned. It must be in the range from 1 to the total number of payments. + * @param {ApiRange | ApiName | number} arg3 - The total number of payment periods in an investment. + * @param {ApiRange | ApiName | number} arg4 - The present value, or the lump-sum amount that a series of future payments is worth now. + * @param {?ApiRange | ?ApiName | ?number} arg5 - The future value, or a cash balance which will be attained after the last payment is made. If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg6 - A logical value representing the timing of payment: at the end of the period = 0 or omitted, at the beginning of the period = 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IPMT.js */ ApiWorksheetFunction.prototype.IPMT = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("IPMT", arguments); @@ -4815,9 +5475,10 @@ * Returns the internal rate of return for a series of cash flows. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is an array or a reference to cells that contain numbers for which you want to calculate the internal rate of return. - * @param {?number} arg2 Is a number that you guess is close to the result of IRR; 0.1 (10 percent) if omitted. - * @returns {number | string | boolean} + * @param {number[] | ApiRange} arg1 - A range or array of cells that contain numbers for which the internal rate of return will be calculated. + * @param {?ApiRange | ?ApiName | ?number} arg2 - An estimate at what the internal rate of return will be. If it is omitted, the function will assume guess to be 0.1 (10 percent). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IRR.js */ ApiWorksheetFunction.prototype.IRR = function (arg1, arg2) { return this.private_calculateFunction("IRR", arguments); @@ -4826,26 +5487,28 @@ * Returns the interest paid during a specific period of an investment. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. - * @param {number} arg2 Period for which you want to find the interest. - * @param {number} arg3 Number of payment periods in an investment. - * @param {number} arg4 Lump sum amount that a series of future payments is right now. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. + * @param {ApiRange | ApiName | number} arg2 - The period for which the interest will be retuned. It must be in the range from 1 to the total number of payments. + * @param {ApiRange | ApiName | number} arg3 - The total number of payment periods in an investment. + * @param {ApiRange | ApiName | number} arg4 - The present value, or the lump-sum amount that a series of future payments is worth now. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISPMT.js */ ApiWorksheetFunction.prototype.ISPMT = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("ISPMT", arguments); }; /** - * Returns the Macauley modified duration for a security with an assumed par value of $100. + * Returns the modified Macauley duration of a security with an assumed par value of $100. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's annual coupon rate. - * @param {any} arg4 Is the security's annual yield. - * @param {any} arg5 Is the number of coupon payments per year. - * @param {?any} arg6 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The annual coupon rate of the security. + * @param {ApiRange | ApiName | number} arg4 - The annual yield of the security. + * @param {ApiRange | ApiName | number} arg5 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg6 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MDURATION.js */ ApiWorksheetFunction.prototype.MDURATION = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("MDURATION", arguments); @@ -4854,10 +5517,11 @@ * Returns the internal rate of return for a series of periodic cash flows, considering both cost of investment and interest on reinvestment of cash. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is an array or a reference to cells that contain numbers that represent a series of payments (negative) and income (positive) at regular periods. - * @param {number} arg2 Is the interest rate you pay on the money used in the cash flows. - * @param {number} arg3 Is the interest rate you receive on the cash flows as you reinvest them. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - A range or array of cells that contain numbers that represent a series of payments (negative) and income (positive) at regular periods. + * @param {ApiRange | ApiName | number} arg2 - The interest rate paid on the money used in the cash flows. + * @param {ApiRange | ApiName | number} arg3 - The interest rate received on the cash reinvestment. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MIRR.js */ ApiWorksheetFunction.prototype.MIRR = function (arg1, arg2, arg3) { return this.private_calculateFunction("MIRR", arguments); @@ -4866,9 +5530,10 @@ * Returns the annual nominal interest rate. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the effective interest rate. - * @param {any} arg2 Is the number of compounding periods per year. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The effective interest rate of the security. + * @param {ApiRange | ApiName | number} arg2 - The number of compounding periods per year. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NOMINAL.js */ ApiWorksheetFunction.prototype.NOMINAL = function (arg1, arg2) { return this.private_calculateFunction("NOMINAL", arguments); @@ -4877,12 +5542,13 @@ * Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. - * @param {number} arg2 Is the payment made each period; it cannot change over the life of the investment. - * @param {number} arg3 Is the present value, or the lump-sum amount that a series of future payments is worth now. - * @param {?number} arg4 Is the future value, or a cash balance you want to attain after the last payment is made. If omitted, zero is used. - * @param {?number} arg5 Is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. + * @param {ApiRange | ApiName | number} arg2 - The payment made each period; it cannot change over the life of the investment. + * @param {ApiRange | ApiName | number} arg3 - Te present value, or the lump-sum amount that a series of future payments is worth now. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The future value, or a cash balance which will be attained after the last payment is made. If omitted, zero is used. + * @param {?ApiRange | ?ApiName | ?number} arg5 - A logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NPER.js */ ApiWorksheetFunction.prototype.NPER = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("NPER", arguments); @@ -4891,7 +5557,11 @@ * Returns the net present value of an investment based on a discount rate and a series of future payments (negative values) and income (positive values). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The discount rate. + * @param {number | ApiRange | number[]} args - Up to 255 arguments representing future payments (negative values) and income (positive values). + * The first argument is required, the subsequent values are optional. Arguments can be numbers, ranges, arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NPV.js */ ApiWorksheetFunction.prototype.NPV = function () { return this.private_calculateFunction("NPV", arguments); @@ -4900,16 +5570,17 @@ * Returns the price per $100 face value of a security with an odd first period. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's issue date, expressed as a serial date number. - * @param {any} arg4 Is the security's first coupon date, expressed as a serial date number. - * @param {any} arg5 Is the security's interest rate. - * @param {any} arg6 Is the security's annual yield. - * @param {any} arg7 Is the security's redemption value per $100 face value. - * @param {any} arg8 Is the number of coupon payments per year. - * @param {?any} arg9 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The issue date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg4 - The first coupon date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg5 - The interest rate of the security. + * @param {ApiRange | ApiName | number} arg6 - The annual yield of the security. + * @param {ApiRange | ApiName | number} arg7 - The redemption value of the security, per $100 face value. + * @param {ApiRange | ApiName | number} arg8 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg9 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ODDFPRICE.js */ ApiWorksheetFunction.prototype.ODDFPRICE = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { return this.private_calculateFunction("ODDFPRICE", arguments); @@ -4918,16 +5589,17 @@ * Returns the yield of a security with an odd first period. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's issue date, expressed as a serial date number. - * @param {any} arg4 Is the security's first coupon date, expressed as a serial date number. - * @param {any} arg5 Is the security's interest rate. - * @param {any} arg6 Is the security's price. - * @param {any} arg7 Is the security's redemption value per $100 face value. - * @param {any} arg8 Is the number of coupon payments per year. - * @param {?any} arg9 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The issue date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg4 - The first coupon date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg5 - The interest rate of the security. + * @param {ApiRange | ApiName | number} arg6 - The purchase price of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg7 - The redemption value of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg8 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg9 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ODDFYIELD.js */ ApiWorksheetFunction.prototype.ODDFYIELD = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { return this.private_calculateFunction("ODDFYIELD", arguments); @@ -4936,15 +5608,16 @@ * Returns the price per $100 face value of a security with an odd last period. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's last coupon date, expressed as a serial date number. - * @param {any} arg4 Is the security's interest rate. - * @param {any} arg5 Is the security's annual yield. - * @param {any} arg6 Is the security's redemption value per $100 face value. - * @param {any} arg7 Is the number of coupon payments per year. - * @param {?any} arg8 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The last coupon date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg5 - The interest rate of the security. + * @param {ApiRange | ApiName | number} arg5 - The annual yield of the security. + * @param {ApiRange | ApiName | number} arg6 - The redemption value of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg8 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg9 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ODDLPRICE.js */ ApiWorksheetFunction.prototype.ODDLPRICE = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) { return this.private_calculateFunction("ODDLPRICE", arguments); @@ -4953,15 +5626,16 @@ * Returns the yield of a security with an odd last period. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's last coupon date, expressed as a serial date number. - * @param {any} arg4 Is the security's interest rate. - * @param {any} arg5 Is the security's price. - * @param {any} arg6 Is the security's redemption value per $100 face value. - * @param {any} arg7 Is the number of coupon payments per year. - * @param {?any} arg8 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The last coupon date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg5 - The interest rate of the security. + * @param {ApiRange | ApiName | number} arg6 - The purchase price of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg6 - The redemption value of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg8 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg9 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ODDLYIELD.js */ ApiWorksheetFunction.prototype.ODDLYIELD = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) { return this.private_calculateFunction("ODDLYIELD", arguments); @@ -4970,10 +5644,11 @@ * Returns the number of periods required by an investment to reach a specified value. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the interest rate per period.. - * @param {number} arg2 Is the present value of the investment. - * @param {number} arg3 Is the desired future value of the investment. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate per period. + * @param {ApiRange | ApiName | number} arg2 - The present value of the investment. + * @param {ApiRange | ApiName | number} arg3 - The desired future value of the investment. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PDURATION.js */ ApiWorksheetFunction.prototype.PDURATION = function (arg1, arg2, arg3) { return this.private_calculateFunction("PDURATION", arguments); @@ -4982,12 +5657,13 @@ * Calculates the payment for a loan based on constant payments and a constant interest rate. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the interest rate per period for the loan. For example, use 6%/4 for quarterly payments at 6% APR. - * @param {number} arg2 Is the total number of payments for the loan. - * @param {number} arg3 Is the present value: the total amount that a series of future payments is worth now. - * @param {?number} arg4 Is the future value, or a cash balance you want to attain after the last payment is made, 0 (zero) if omitted. - * @param {?number} arg5 Is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate per period for the loan. For example, use 6%/4 for quarterly payments at 6% APR. + * @param {ApiRange | ApiName | number} arg2 - The total number of payments for the loan. + * @param {ApiRange | ApiName | number} arg3 - The present value: the total amount that a series of future payments is worth now. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The future value, or a cash balance which will be attained after the last payment is made. If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg5 - A logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PMT.js */ ApiWorksheetFunction.prototype.PMT = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("PMT", arguments); @@ -4996,58 +5672,62 @@ * Returns the payment on the principal for a given investment based on periodic, constant payments and a constant interest rate. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. - * @param {number} arg2 Specifies the period and must be in the range 1 to nper. - * @param {number} arg3 Is the total number of payment periods in an investment. - * @param {number} arg4 Is the present value: the total amount that a series of future payments is worth now. - * @param {?number} arg5 Is the future value, or cash balance you want to attain after the last payment is made. - * @param {?number} arg6 Is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. + * @param {ApiRange | ApiName | number} arg2 - The period for which the principal payment will be returned. It must be in the range from 1 to to the total number of payment periods. + * @param {ApiRange | ApiName | number} arg3 - The total number of payment periods in an investment. + * @param {ApiRange | ApiName | number} arg4 - The present value: the total amount that a series of future payments is worth now. + * @param {?ApiRange | ?ApiName | ?number} arg5 - The future value, or cash balance which will be attained after the last payment is made. + * @param {?ApiRange | ?ApiName | ?number} arg6 - A logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PPMT.js */ ApiWorksheetFunction.prototype.PPMT = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("PPMT", arguments); }; /** - * Returns the price per $100 face value of a security that pays periodic interest. + * Returns the price per $100 face value for a security that pays periodic interest. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's annual coupon rate. - * @param {any} arg4 Is the security's annual yield. - * @param {any} arg5 Is the security's redemption value per $100 face value. - * @param {any} arg6 Is the number of coupon payments per year. - * @param {?any} arg7 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The annual coupon rate of the security. + * @param {ApiRange | ApiName | number} arg4 - The annual yield of the security. + * @param {ApiRange | ApiName | number} arg5 - The redemption value of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg6 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg7 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PRICE.js */ ApiWorksheetFunction.prototype.PRICE = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this.private_calculateFunction("PRICE", arguments); }; /** - * Returns the price per $100 face value of a discounted security. + * Returns the price per $100 face value for a discounted security. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's discount rate. - * @param {any} arg4 Is the security's redemption value per $100 face value. - * @param {?any} arg5 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The discount rate of the security. + * @param {ApiRange | ApiName | number} arg4 - The redemption value of the security, per $100 par value. + * @param {?ApiRange | ?ApiName | ?number} arg5 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PRICEDISC.js */ ApiWorksheetFunction.prototype.PRICEDISC = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("PRICEDISC", arguments); }; /** - * Returns the price per $100 face value of a security that pays interest at maturity. + * Returns the price per $100 face value for a security that pays interest at maturity. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's issue date, expressed as a serial date number. - * @param {any} arg4 Is the security's interest rate at date of issue. - * @param {any} arg5 Is the security's annual yield. - * @param {?any} arg6 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The issue date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg4 - The security interest rate at the issue date. + * @param {ApiRange | ApiName | number} arg5 - The annual yield of the security. + * @param {?ApiRange | ?ApiName | ?number} arg6 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PRICEMAT.js */ ApiWorksheetFunction.prototype.PRICEMAT = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("PRICEMAT", arguments); @@ -5056,27 +5736,29 @@ * Returns the present value of an investment: the total amount that a series of future payments is worth now. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. - * @param {number} arg2 Is the total number of payment periods in an investment. - * @param {number} arg3 Is the payment made each period and cannot change over the life of the investment. - * @param {?number} arg4 Is the future value, or a cash balance you want to attain after the last payment is made. - * @param {?number} arg5 Is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. + * @param {ApiRange | ApiName | number} arg2 - The total number of payment periods in an investment. + * @param {ApiRange | ApiName | number} arg3 - The payment made each period and cannot change over the life of the investment. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The future value, or a cash balance which will be attained after the last payment is made. If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg5 - A logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PV.js */ ApiWorksheetFunction.prototype.PV = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("PV", arguments); }; /** - * Returns the interest rate per period of a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR. + * Returns the interest rate per period for a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the total number of payment periods for the loan or investment. - * @param {number} arg2 Is the payment made each period and cannot change over the life of the loan or investment. - * @param {number} arg3 Is the present value: the total amount that a series of future payments is worth now. - * @param {?number} arg4 Is the future value, or a cash balance you want to attain after the last payment is made. If omitted, uses Fv = 0. - * @param {?number} arg5 Is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. - * @param {?number} arg6 Is your guess for what the rate will be; if omitted, Guess = 0.1 (10 percent). - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The total number of payment periods for the loan or investment. + * @param {ApiRange | ApiName | number} arg2 - The payment made each period and cannot change over the life of the loan or investment. + * @param {ApiRange | ApiName | number} arg3 - The present value: the total amount that a series of future payments is worth now. + * @param {?ApiRange | ?ApiName | ?number} arg4 - The future value, or a cash balance which will be attained after the last payment is made. If omitted, it is equal to 0. + * @param {?ApiRange | ?ApiName | ?number} arg5 - A logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted. + * @param {?ApiRange | ?ApiName | ?number} arg6 - An estimate at what the rate will be. If it is omitted, the function will assume guess to be 0.1 (10 percent). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RATE.js */ ApiWorksheetFunction.prototype.RATE = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("RATE", arguments); @@ -5085,12 +5767,13 @@ * Returns the amount received at maturity for a fully invested security. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the amount invested in the security. - * @param {any} arg4 Is the security's discount rate. - * @param {?any} arg5 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The security settlement date, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The amount invested in the security. + * @param {ApiRange | ApiName | number} arg4 - The security discount rate. + * @param {?ApiRange | ?ApiName | ?number} arg6 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RECEIVED.js */ ApiWorksheetFunction.prototype.RECEIVED = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("RECEIVED", arguments); @@ -5099,10 +5782,11 @@ * Returns an equivalent interest rate for the growth of an investment. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number of periods for the investment. - * @param {number} arg2 Is the present value of the investment. - * @param {number} arg3 Is the future value of the investment. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number of periods for the investment. + * @param {ApiRange | ApiName | number} arg2 - The present value of the investment. + * @param {ApiRange | ApiName | number} arg3 - The future value of the investment. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RRI.js */ ApiWorksheetFunction.prototype.RRI = function (arg1, arg2, arg3) { return this.private_calculateFunction("RRI", arguments); @@ -5111,10 +5795,11 @@ * Returns the straight-line depreciation of an asset for one period. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the initial cost of the asset. - * @param {number} arg2 Is the salvage value at the end of the life of the asset. - * @param {number} arg3 Is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The initial cost of the asset. + * @param {ApiRange | ApiName | number} arg2 - The salvage value of the asset at the end of its lifetime. + * @param {ApiRange | ApiName | number} arg3 - The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SLN.js */ ApiWorksheetFunction.prototype.SLN = function (arg1, arg2, arg3) { return this.private_calculateFunction("SLN", arguments); @@ -5123,11 +5808,12 @@ * Returns the sum-of-years' digits depreciation of an asset for a specified period. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the initial cost of the asset. - * @param {number} arg2 Is the salvage value at the end of the life of the asset. - * @param {number} arg3 Is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). - * @param {number} arg4 Is the period and must use the same units as Life. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The initial cost of the asset. + * @param {ApiRange | ApiName | number} arg2 - The salvage value of the asset at the end of its lifetime. + * @param {ApiRange | ApiName | number} arg3 - The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). + * @param {ApiRange | ApiName | number} arg4 - The period for which the depreciation will be calculated. It must use the same units as the useful life of the asset. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SYD.js */ ApiWorksheetFunction.prototype.SYD = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("SYD", arguments); @@ -5136,50 +5822,55 @@ * Returns the bond-equivalent yield for a treasury bill. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the Treasury bill's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the Treasury bill's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the Treasury bill's discount rate. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The settlement date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The discount rate of the Treasury bill. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TBILLEQ.js */ ApiWorksheetFunction.prototype.TBILLEQ = function (arg1, arg2, arg3) { return this.private_calculateFunction("TBILLEQ", arguments); }; /** - * Returns the price per $100 face value for a treasury bill. + * Returns the price per $100 face value for a Treasury bill. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the Treasury bill's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the Treasury bill's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the Treasury bill's discount rate. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The settlement date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The discount rate of the Treasury bill. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TBILLPRICE.js */ ApiWorksheetFunction.prototype.TBILLPRICE = function (arg1, arg2, arg3) { return this.private_calculateFunction("TBILLPRICE", arguments); }; /** - * Returns the yield for a treasury bill. + * Returns the yield for a Treasury bill. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the Treasury bill's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the Treasury bill's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the Treasury Bill's price per $100 face value. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The settlement date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The purchase price of the Treasury bill, per $100 par value. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TBILLYIELD.js */ ApiWorksheetFunction.prototype.TBILLYIELD = function (arg1, arg2, arg3) { return this.private_calculateFunction("TBILLYIELD", arguments); }; /** - * Returns the depreciation of an asset for any period you specify, including partial periods, using the double-declining balance method or some other method you specify. + * Returns the depreciation of an asset for any specified period, including partial periods, using the double-declining balance method or some other method specified. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the initial cost of the asset. - * @param {number} arg2 Is the salvage value at the end of the life of the asset. - * @param {number} arg3 Is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). - * @param {number} arg4 Is the starting period for which you want to calculate the depreciation, in the same units as Life. - * @param {number} arg5 Is the ending period for which you want to calculate the depreciation, in the same units as Life. - * @param {?number} arg6 Is the rate at which the balance declines, 2 (double-declining balance) if omitted. - * @param {?boolean} arg7 Switch to straight-line depreciation when depreciation is greater than the declining balance = FALSE or omitted; do not switch = TRUE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The initial cost of the asset. + * @param {ApiRange | ApiName | number} arg2 - The salvage value of the asset at the end of its lifetime. + * @param {ApiRange | ApiName | number} arg3 - The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). + * @param {ApiRange | ApiName | number} arg4 - The starting period for which the depreciation will be calculated, in the same units as the useful life of the asset. + * @param {ApiRange | ApiName | number} arg5 - The ending period for which the depreciation will be calculated, in the same units as the useful life of the asset. + * @param {?ApiRange | ?ApiName | ?number} arg6 - The rate at which the balance declines. If it is omitted, the function will assume it to be 2 + * @param {?ApiRange | ?ApiName | ?boolean} arg7 - Specifies whether to use straight-line depreciation when depreciation is greater than the declining balance calculation (false or omitted). + * If it is set to true, the function uses the declining balance method. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VDB.js */ ApiWorksheetFunction.prototype.VDB = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this.private_calculateFunction("VDB", arguments); @@ -5188,10 +5879,11 @@ * Returns the internal rate of return for a schedule of cash flows. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a series of cash flows that correspond to a schedule of payments in dates. - * @param {any} arg2 Is a schedule of payment dates that corresponds to the cash flow payments. - * @param {?any} arg3 Is a number that you guess is close to the result of XIRR. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - A range that contains the series of cash flows that corresponds to a schedule of payments in dates. + * @param {ApiRange | ApiName} arg2 - A range that contains the schedule of payment dates that corresponds to the cash flow payments. + * @param {?ApiRange | ?ApiName | ?number} arg3 - An estimate at what the internal rate of return will be. If it is omitted, the function will assume guess to be 0.1 (10 percent). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/XIRR.js */ ApiWorksheetFunction.prototype.XIRR = function (arg1, arg2, arg3) { return this.private_calculateFunction("XIRR", arguments); @@ -5200,10 +5892,11 @@ * Returns the net present value for a schedule of cash flows. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the discount rate to apply to the cash flows. - * @param {any} arg2 Is a series of cash flows that correspond to a schedule of payments in dates. - * @param {any} arg3 Is a schedule of payment dates that corresponds to the cash flow payments. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The discount rate to apply to the cash flows. + * @param {ApiRange | ApiName} arg2 - A range that contains the series of cash flows that corresponds to a schedule of payments in dates. + * @param {ApiRange | ApiName} arg3 - A range that contains the schedule of payment dates that corresponds to the cash flow payments. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/XNPV.js */ ApiWorksheetFunction.prototype.XNPV = function (arg1, arg2, arg3) { return this.private_calculateFunction("XNPV", arguments); @@ -5212,28 +5905,30 @@ * Returns the yield on a security that pays periodic interest. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's annual coupon rate. - * @param {any} arg4 Is the security's price per $100 face value. - * @param {any} arg5 Is the security's redemption value per $100 face value. - * @param {any} arg6 Is the number of coupon payments per year. - * @param {?any} arg7 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The settlement date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The annual coupon rate of the security. + * @param {ApiRange | ApiName | number} arg4 - The purchase price of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg5 - The redemption value of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg6 - The number of interest payments per year. The possible values are: 1 for annual payments, 2 for semiannual payments, 4 for quarterly payments. + * @param {?ApiRange | ?ApiName | ?number} arg7 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/YIELD.js */ ApiWorksheetFunction.prototype.YIELD = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7) { return this.private_calculateFunction("YIELD", arguments); }; /** - * Returns the annual yield for a discounted security. For example, a treasury bill. + * Returns the annual yield for a discounted security. For example, a Treasury bill. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's price per $100 face value. - * @param {any} arg4 Is the security's redemption value per $100 face value. - * @param {?any} arg5 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The settlement date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The purchase price of the security, per $100 par value. + * @param {ApiRange | ApiName | number} arg4 - The redemption value of the security, per $100 par value. + * @param {?ApiRange | ?ApiName | ?number} arg5 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/YIELDDISC.js */ ApiWorksheetFunction.prototype.YIELDDISC = function (arg1, arg2, arg3, arg4, arg5) { return this.private_calculateFunction("YIELDDISC", arguments); @@ -5242,13 +5937,14 @@ * Returns the annual yield of a security that pays interest at maturity. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the security's settlement date, expressed as a serial date number. - * @param {any} arg2 Is the security's maturity date, expressed as a serial date number. - * @param {any} arg3 Is the security's issue date, expressed as a serial date number. - * @param {any} arg4 Is the security's interest rate at date of issue. - * @param {any} arg5 Is the security's price per $100 face value. - * @param {?any} arg6 Is the type of day count basis to use. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The settlement date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg2 - The maturity date of the Treasury bill, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg3 - The issue date of the security, expressed as a serial date number. + * @param {ApiRange | ApiName | number} arg4 - The interest rate of the security at the issue date. + * @param {ApiRange | ApiName | number} arg5 - The purchase price of the security, per $100 par value. + * @param {?ApiRange | ?ApiName | ?number} arg6 - The day count basis to use: 0 or omitted - US (NASD) 30/360; 1 - Actual/actual; 2 - Actual/360; 3 - Actual/365; 4 - European 30/360. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/YIELDMAT.js */ ApiWorksheetFunction.prototype.YIELDMAT = function (arg1, arg2, arg3, arg4, arg5, arg6) { return this.private_calculateFunction("YIELDMAT", arguments); @@ -5257,18 +5953,20 @@ * Returns the absolute value of a number, a number without its sign. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the real number for which you want the absolute value. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The real number for which the absolute value will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ABS.js */ ApiWorksheetFunction.prototype.ABS = function (arg1) { return this.private_calculateFunction("ABS", arguments); }; /** - * Returns the arccosine of a number, in radians in the range 0 to Pi. The arccosine is the angle whose cosine is Number. + * Returns the arccosine of a number, in radians in the range from 0 to Pi. The arccosine is the angle whose cosine is a number specified in the parameters. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the cosine of the angle you want and must be from -1 to 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle cosine. It must be from -1 to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ACOS.js */ ApiWorksheetFunction.prototype.ACOS = function (arg1) { return this.private_calculateFunction("ACOS", arguments); @@ -5277,18 +5975,20 @@ * Returns the inverse hyperbolic cosine of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number equal to or greater than 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number equal to or greater than 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ACOSH.js */ ApiWorksheetFunction.prototype.ACOSH = function (arg1) { return this.private_calculateFunction("ACOSH", arguments); }; /** - * Returns the arccotangent of a number, in radians in the range 0 to Pi.. + * Returns the arccotangent of a number, in radians in the range from 0 to Pi. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the cotangent of the angle you want. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle cotangent. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ACOT.js */ ApiWorksheetFunction.prototype.ACOT = function (arg1) { return this.private_calculateFunction("ACOT", arguments); @@ -5297,8 +5997,9 @@ * Returns the inverse hyperbolic cotangent of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the hyperbolic cotangent of the angle that you want. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle hyperbolic cotangent. It must be less than -1 or greater than 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ACOTH.js */ ApiWorksheetFunction.prototype.ACOTH = function (arg1) { return this.private_calculateFunction("ACOTH", arguments); @@ -5307,7 +6008,17 @@ * Returns an aggregate in a list or database. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A numeric value that specifies which function to use: 1 - AVERAGE, 2 - COUNT, 3 - COUNTA, 4 - MAX, 5 - MIN, + * 6 - PRODUCT, 7 - STDEV.S, 8 - STDEV.P, 9 - SUM, 10 - VAR.S, 11 - VAR.P, 12 - MEDIAN, 13 - MODE.SNGL, 14 - LARGE, + * 15 - SMALL, 16 - PERCENTILE.INC, 17 - QUARTILE.INC, 18 - PERCENTILE.EXC, 19 - QUARTILE.EXC. + * @param {ApiRange | ApiName | number} arg2 - A numeric value that specifies which values should be ignored: 0 or omitted - nested SUBTOTAL and AGGREGATE functions, + * 1 - hidden rows, nested SUBTOTAL and AGGREGATE functions, 2 - error values, nested SUBTOTAL and AGGREGATE functions, + * 3 - hidden rows, error values, nested SUBTOTAL and AGGREGATE functions, 4 - nothing, 5 - hidden rows, 6 - error values, 7 - hidden rows and error values. + * @param {number | ApiRange | number[]} arg3 - The first numeric value for which the aggregate value will be returned. + * @param {number | ApiRange | number[]} args - Up to 253 numeric values or a range of cells containing the values for which the aggregate value will be returned. + * Arguments can be numbers, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AGGREGATE.js */ ApiWorksheetFunction.prototype.AGGREGATE = function () { return this.private_calculateFunction("AGGREGATE", arguments); @@ -5316,18 +6027,20 @@ * Converts a Roman numeral to Arabic. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the Roman numeral you want to convert. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The Roman numeral to convert. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ARABIC.js */ ApiWorksheetFunction.prototype.ARABIC = function (arg1) { return this.private_calculateFunction("ARABIC", arguments); }; /** - * Returns the arcsine of a number in radians, in the range -Pi/2 to Pi/2. + * Returns the arcsine of a number in radians, in the range from -Pi/2 to Pi/2. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the sine of the angle you want and must be from -1 to 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle sine. It must be from -1 to 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ASIN.js */ ApiWorksheetFunction.prototype.ASIN = function (arg1) { return this.private_calculateFunction("ASIN", arguments); @@ -5336,18 +6049,20 @@ * Returns the inverse hyperbolic sine of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number equal to or greater than 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number equal to or greater than 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ASINH.js */ ApiWorksheetFunction.prototype.ASINH = function (arg1) { return this.private_calculateFunction("ASINH", arguments); }; /** - * Returns the arctangent of a number in radians, in the range -Pi/2 to Pi/2. + * Returns the arctangent of a number in radians, in the range from -Pi/2 to Pi/2. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the tangent of the angle you want. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle tangent. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ATAN.js */ ApiWorksheetFunction.prototype.ATAN = function (arg1) { return this.private_calculateFunction("ATAN", arguments); @@ -5356,9 +6071,10 @@ * Returns the arctangent of the specified x and y coordinates, in radians between -Pi and Pi, excluding -Pi. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the x-coordinate of the point. - * @param {number} arg2 Is the y-coordinate of the point. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The x coordinate of the point. + * @param {ApiRange | ApiName | number} arg2 - The y coordinate of the point. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ATAN2.js */ ApiWorksheetFunction.prototype.ATAN2 = function (arg1, arg2) { return this.private_calculateFunction("ATAN2", arguments); @@ -5367,8 +6083,9 @@ * Returns the inverse hyperbolic tangent of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number between -1 and 1 excluding -1 and 1. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number between -1 and 1 excluding -1 and 1. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ATANH.js */ ApiWorksheetFunction.prototype.ATANH = function (arg1) { return this.private_calculateFunction("ATANH", arguments); @@ -5377,10 +6094,11 @@ * Converts a number into a text representation with the given radix (base). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number that you want to convert. - * @param {number} arg2 Is the base Radix that you want to convert the number into. - * @param {?number} arg3 Is the minimum length of the returned string. If omitted leading zeros are not added. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number to convert. + * @param {ApiRange | ApiName | number} arg2 - The base radix into which the number will be converted. An integer greater than or equal to 2 and less than or equal to 36. + * @param {?ApiRange | ?ApiName | ?number} arg3 - The minimum length of the returned string. An integer greater than or equal to 0 and less than 256. If omitted, leading zeros are not added to the result. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/BASE.js */ ApiWorksheetFunction.prototype.BASE = function (arg1, arg2, arg3) { return this.private_calculateFunction("BASE", arguments); @@ -5389,9 +6107,10 @@ * Rounds a number up, to the nearest multiple of significance. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value you want to round. - * @param {number} arg2 Is the multiple to which you want to round. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to round up. + * @param {ApiRange | ApiName | number} arg2 - The multiple of significance to round up to. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CEILING.js */ ApiWorksheetFunction.prototype.CEILING = function (arg1, arg2) { return this.private_calculateFunction("CEILING", arguments); @@ -5400,21 +6119,24 @@ * Rounds a number up, to the nearest integer or to the nearest multiple of significance. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value you want to round. - * @param {?number} arg2 Is the multiple to which you want to round. - * @param {?number} arg3 When given and nonzero this function will round away from zero. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to round up. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The multiple of significance to round up to. If it is omitted, the default value of 1 is used. + * @param {?ApiRange | ?ApiName | ?number} arg3 - Specifies if negative numbers are rounded towards or away from zero. If it is omitted or set to 0, negative numbers are rounded towards zero. + * If any other numeric value is specified, negative numbers are rounded away from zero. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CEILING_MATH.js */ ApiWorksheetFunction.prototype.CEILING_MATH = function (arg1, arg2, arg3) { return this.private_calculateFunction("CEILING.MATH", arguments); }; /** - * Returns a number that is rounded up to the nearest integer or to the nearest multiple of significance. + * Returns a number that is rounded up to the nearest integer or to the nearest multiple of significance. The number is always rounded up regardless of its sing. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1. - * @param {?number} arg2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to round up. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The multiple of significance to round up to. If it is omitted, the default value of 1 is used. If it is set to zero, the function returns 0. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CEILING_PRECISE.js */ ApiWorksheetFunction.prototype.CEILING_PRECISE = function (arg1, arg2) { return this.private_calculateFunction("CEILING.PRECISE", arguments); @@ -5423,9 +6145,10 @@ * Returns the number of combinations for a given number of items. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the total number of items. - * @param {number} arg2 Is the number of items in each combination. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The total number of items, a numeric value greater than or equal to 0. + * @param {ApiRange | ApiName | number} arg2 - The number of items in each combination, a numeric value greater than or equal to 0 but less than the total number of items. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COMBIN.js */ ApiWorksheetFunction.prototype.COMBIN = function (arg1, arg2) { return this.private_calculateFunction("COMBIN", arguments); @@ -5434,9 +6157,10 @@ * Returns the number of combinations with repetitions for a given number of items. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the total number of items. - * @param {number} arg2 Is the number of items in each combination. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The total number of items, a numeric value greater than or equal to 0. + * @param {ApiRange | ApiName | number} arg2 - The number of items in each combination, a numeric value greater than or equal to 0 but less than the total number of items. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COMBINA.js */ ApiWorksheetFunction.prototype.COMBINA = function (arg1, arg2) { return this.private_calculateFunction("COMBINA", arguments); @@ -5445,8 +6169,9 @@ * Returns the cosine of an angle. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the cosine. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the cosine will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COS.js */ ApiWorksheetFunction.prototype.COS = function (arg1) { return this.private_calculateFunction("COS", arguments); @@ -5455,8 +6180,9 @@ * Returns the hyperbolic cosine of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number for which the hyperbolic cosine will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COSH.js */ ApiWorksheetFunction.prototype.COSH = function (arg1) { return this.private_calculateFunction("COSH", arguments); @@ -5465,8 +6191,9 @@ * Returns the cotangent of an angle. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the cotangent. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the cotangent will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COT.js */ ApiWorksheetFunction.prototype.COT = function (arg1) { return this.private_calculateFunction("COT", arguments); @@ -5475,8 +6202,9 @@ * Returns the hyperbolic cotangent of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the hyperbolic cotangent. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the hyperbolic cotangent will be calculated. Its absolute value must be less than 2^27. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COTH.js */ ApiWorksheetFunction.prototype.COTH = function (arg1) { return this.private_calculateFunction("COTH", arguments); @@ -5485,8 +6213,9 @@ * Returns the cosecant of an angle. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the cosecant. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the cosecant will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CSC.js */ ApiWorksheetFunction.prototype.CSC = function (arg1) { return this.private_calculateFunction("CSC", arguments); @@ -5495,8 +6224,9 @@ * Returns the hyperbolic cosecant of an angle. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the hyperbolic cosecant. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the hyperbolic cosecant will be calculated. Its absolute value must be less than 2^27. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CSCH.js */ ApiWorksheetFunction.prototype.CSCH = function (arg1) { return this.private_calculateFunction("CSCH", arguments); @@ -5505,9 +6235,10 @@ * Converts a text representation of a number in a given base into a decimal number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the number that you want to convert. - * @param {number} arg2 Is the base Radix of the number you are converting. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string} arg1 - The number to convert. The string lenght must be less than or equal to 255 characters. + * @param {ApiRange | ApiName | number} arg2 - The base Radix of the number that is converting. An integer greater than or equal to 2 and less than or equal to 36. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DECIMAL.js */ ApiWorksheetFunction.prototype.DECIMAL = function (arg1, arg2) { return this.private_calculateFunction("DECIMAL", arguments); @@ -5516,19 +6247,21 @@ * Converts radians to degrees. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians that you want to convert. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians to convert. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/DEGREES.js */ ApiWorksheetFunction.prototype.DEGREES = function (arg1) { return this.private_calculateFunction("DEGREES", arguments); }; /** - * Rounds the number up to the nearest multiple of significance. + * Rounds the number up to the nearest multiple of significance. Negative numbers are rounded towards zero. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1. - * @param {number} arg2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to round up. + * @param {ApiRange | ApiName | number} arg2 - The multiple of significance to round up to. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ECMA_CEILING.js */ ApiWorksheetFunction.prototype.ECMA_CEILING = function (arg1, arg2) { return this.private_calculateFunction("ECMA.CEILING", arguments); @@ -5537,28 +6270,31 @@ * Rounds a positive number up and negative number down to the nearest even integer. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value to round. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to round up. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/EVEN.js */ ApiWorksheetFunction.prototype.EVEN = function (arg1) { return this.private_calculateFunction("EVEN", arguments); }; /** - * Returns e raised to the power of a given number. + * Returns the e constant raised to the power of a given number. The e constant is equal to 2.71828182845904, the base of the natural logarithm. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the exponent applied to the base e. The constant e equals 2.71828182845904, the base of the natural logarithm. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The exponent applied to the base e. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/EXP.js */ ApiWorksheetFunction.prototype.EXP = function (arg1) { return this.private_calculateFunction("EXP", arguments); }; /** - * Returns the factorial of a number, equal to 1*2*3*...* Number. + * Returns the factorial of a number, which is equal to 1*2*3*...* number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the nonnegative number you want the factorial of. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The nonnegative number for which the factorial will be calculated. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FACT.js */ ApiWorksheetFunction.prototype.FACT = function (arg1) { return this.private_calculateFunction("FACT", arguments); @@ -5567,8 +6303,9 @@ * Returns the double factorial of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value for which to return the double factorial. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value for which to return the double factorial. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FACTDOUBLE.js */ ApiWorksheetFunction.prototype.FACTDOUBLE = function (arg1) { return this.private_calculateFunction("FACTDOUBLE", arguments); @@ -5577,20 +6314,22 @@ * Rounds a number down to the nearest multiple of significance. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the numeric value you want to round. - * @param {number} arg2 Is the multiple to which you want to round. Number and Significance must either both be positive or both be negative. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The numeric value to round down. + * @param {ApiRange | ApiName | number} arg2 - The multiple of significance to round down to. The number to round down and the multiple of significance must have the same sign. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FLOOR.js */ ApiWorksheetFunction.prototype.FLOOR = function (arg1, arg2) { return this.private_calculateFunction("FLOOR", arguments); }; /** - * Returns a number that is rounded down to the nearest integer or to the nearest multiple of significance. + * Returns a number that is rounded down to the nearest integer or to the nearest multiple of significance. The number is always rounded down regardless of its sign. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1. - * @param {?number} arg2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The numeric value to round down. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The multiple of significance to round down to. If it is omitted, the default value of 1 is used. If it is set to zero, the function returns 0. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FLOOR_PRECISE.js */ ApiWorksheetFunction.prototype.FLOOR_PRECISE = function (arg1, arg2) { return this.private_calculateFunction("FLOOR.PRECISE", arguments); @@ -5599,10 +6338,12 @@ * Rounds a number down, to the nearest integer or to the nearest multiple of significance. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value you want to round. - * @param {?number} arg2 Is the multiple to which you want to round. - * @param {?number} arg3 When given and nonzero this function will round towards zero. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The numeric value to round down. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The multiple of significance to round down to. If it is omitted, the default value of 1 is used. + * @param {?ApiRange | ?ApiName | ?number} arg3 - Specifies if negative numbers are rounded towards or away from zero. If it is omitted or set to 0, negative numbers are rounded away from zero. + * If any other numeric value is specified, negative numbers are rounded towards zero. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FLOOR_MATH.js */ ApiWorksheetFunction.prototype.FLOOR_MATH = function (arg1, arg2, arg3) { return this.private_calculateFunction("FLOOR.MATH", arguments); @@ -5611,7 +6352,9 @@ * Returns the greatest common divisor. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} args - Up to 255 numeric values for which the greatest common divisor will be returned. The first argument is required, subsequent arguments are optional. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/GCD.js */ ApiWorksheetFunction.prototype.GCD = function () { return this.private_calculateFunction("GCD", arguments); @@ -5620,19 +6363,22 @@ * Rounds a number down to the nearest integer. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the real number you want to round down to an integer. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The real number to round down to an integer. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/INT.js */ ApiWorksheetFunction.prototype.INT = function (arg1) { return this.private_calculateFunction("INT", arguments); }; /** - * Returns a number that is rounded up to the nearest integer or to the nearest multiple of significance regardless of the sign of the number. However, if the number or the significance is zero, zero is returned.. + * Returns a number that is rounded up to the nearest integer or to the nearest multiple of significance regardless of the sign of the number. + * The number is always rounded up regardless of its sing. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1. - * @param {?number} arg2. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The numeric value to round up. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The multiple of significance to round up to. If it is omitted, the default value of 1 is used. If it is set to zero, the function returns 0. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISO_CEILING.js */ ApiWorksheetFunction.prototype.ISO_CEILING = function (arg1, arg2) { return this.private_calculateFunction("ISO.CEILING", arguments); @@ -5641,7 +6387,9 @@ * Returns the least common multiple. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} args - Up to 255 numeric values for which the least common multiple will be returned. The first argument is required, subsequent arguments are optional. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LCM.js */ ApiWorksheetFunction.prototype.LCM = function () { return this.private_calculateFunction("LCM", arguments); @@ -5650,19 +6398,21 @@ * Returns the natural logarithm of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the positive real number for which you want the natural logarithm. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The positive real number for which the natural logarithm will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LN.js */ ApiWorksheetFunction.prototype.LN = function (arg1) { return this.private_calculateFunction("LN", arguments); }; /** - * Returns the logarithm of a number to the base you specify. + * Returns the logarithm of a number to the specified base. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the positive real number for which you want the logarithm. - * @param {?number} arg2 Is the base of the logarithm; 10 if omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The positive real number for which the logarithm will be returned. + * @param {?ApiRange | ?ApiName | ?number} arg2 - The logarithm base. If omitted, it is equal to 10. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOG.js */ ApiWorksheetFunction.prototype.LOG = function (arg1, arg2) { return this.private_calculateFunction("LOG", arguments); @@ -5671,8 +6421,9 @@ * Returns the base-10 logarithm of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the positive real number for which you want the base-10 logarithm. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The positive real number for which the base-10 logarithm will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOG10.js */ ApiWorksheetFunction.prototype.LOG10 = function (arg1) { return this.private_calculateFunction("LOG10", arguments); @@ -5715,9 +6466,10 @@ * Returns the remainder after a number is divided by a divisor. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number for which you want to find the remainder after the division is performed. - * @param {number} arg2 Is the number by which you want to divide Number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number to divide and find the remainder. + * @param {ApiRange | ApiName | number} arg2 - The number to divide by. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MOD.js */ ApiWorksheetFunction.prototype.MOD = function (arg1, arg2) { return this.private_calculateFunction("MOD", arguments); @@ -5726,18 +6478,21 @@ * Returns a number rounded to the desired multiple. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value to round. - * @param {any} arg2 Is the multiple to which you want to round number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to round. + * @param {ApiRange | ApiName | number} arg2 - The multiple to round the number to. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MROUND.js */ ApiWorksheetFunction.prototype.MROUND = function (arg1, arg2) { return this.private_calculateFunction("MROUND", arguments); }; /** - * Returns the multinomial of a set of numbers. + * Returns the ratio of the factorial of a sum of numbers to the product of factorials. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} args - Up to 255 numeric values for which the multinomial will be returned. The first argument is required, subsequent arguments are optional. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MULTINOMIAL.js */ ApiWorksheetFunction.prototype.MULTINOMIAL = function () { return this.private_calculateFunction("MULTINOMIAL", arguments); @@ -5746,8 +6501,9 @@ * Returns the unit matrix for the specified dimension. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is an integer specifying the dimension of the unit matrix that you want to return. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - An integer specifying the dimension of the unit matrix to be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MUNIT.js */ ApiWorksheetFunction.prototype.MUNIT = function (arg1) { return this.private_calculateFunction("MUNIT", arguments); @@ -5756,17 +6512,19 @@ * Rounds a positive number up and negative number down to the nearest odd integer. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the value to round. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to round. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ODD.js */ ApiWorksheetFunction.prototype.ODD = function (arg1) { return this.private_calculateFunction("ODD", arguments); }; /** - * Returns the value of Pi, 3.14159265358979, accurate to 15 digits. + * Returns the mathematical constant pi, equal to 3.14159265358979, accurate to 15 digits. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PI.js */ ApiWorksheetFunction.prototype.PI = function () { return this.private_calculateFunction("PI", arguments); @@ -5775,9 +6533,10 @@ * Returns the result of a number raised to a power. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the base number, any real number. - * @param {number} arg2 Is the exponent, to which the base number is raised. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The base number. It can be any real number. + * @param {ApiRange | ApiName | number} arg2 - The exponent to which the base number is raised. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/POWER.js */ ApiWorksheetFunction.prototype.POWER = function (arg1, arg2) { return this.private_calculateFunction("POWER", arguments); @@ -5786,7 +6545,10 @@ * Multiplies all the numbers given as arguments. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | ApiRange | number[]} args - Up to 255 numeric values that will be multiplied. The first argument is required, subsequent arguments are optional. + * Arguments can be numbers, ranges, or arrays of numbers. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/PRODUCT.js */ ApiWorksheetFunction.prototype.PRODUCT = function () { return this.private_calculateFunction("PRODUCT", arguments); @@ -5795,9 +6557,10 @@ * Returns the integer portion of a division. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the dividend. - * @param {any} arg2 Is the divisor. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The dividend, a numeric value. + * @param {ApiRange | ApiName | number} arg2 - The divisor, a numeric value. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/QUOTIENT.js */ ApiWorksheetFunction.prototype.QUOTIENT = function (arg1, arg2) { return this.private_calculateFunction("QUOTIENT", arguments); @@ -5806,8 +6569,9 @@ * Converts degrees to radians. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is an angle in degrees that you want to convert. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - An angle in degrees to convert. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RADIANS.js */ ApiWorksheetFunction.prototype.RADIANS = function (arg1) { return this.private_calculateFunction("RADIANS", arguments); @@ -5816,29 +6580,32 @@ * Returns a random number greater than or equal to 0 and less than 1, evenly distributed (changes on recalculation). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RAND.js */ ApiWorksheetFunction.prototype.RAND = function () { return this.private_calculateFunction("RAND", arguments); }; /** - * Returns a random number between the numbers you specify. + * Returns a random number between the numbers specified. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the smallest integer RANDBETWEEN will return. - * @param {any} arg2 Is the largest integer RANDBETWEEN will return. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The smallest integer value. + * @param {ApiRange | ApiName | number} arg2 - The largest integer value. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/RANDBETWEEN.js */ ApiWorksheetFunction.prototype.RANDBETWEEN = function (arg1, arg2) { return this.private_calculateFunction("RANDBETWEEN", arguments); }; /** - * Converts an Arabic numeral to Roman, as text. + * Converts an arabic numeral to a roman numeral in the string format. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the Arabic numeral you want to convert. - * @param {?number} arg2 Is the number specifying the type of Roman numeral you want.. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A numeric value greater than or equal to 1 and less than 3999. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A roman numeral type: 0 - classic, 1 - more concise, 2 - more concise, 3 - more concise, 4 - simplified. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ROMAN.js */ ApiWorksheetFunction.prototype.ROMAN = function (arg1, arg2) { return this.private_calculateFunction("ROMAN", arguments); @@ -5847,20 +6614,24 @@ * Rounds a number to a specified number of digits. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number you want to round. - * @param {number} arg2 Is the number of digits to which you want to round. Negative rounds to the left of the decimal point; zero to the nearest integer. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number to round. + * @param {ApiRange | ApiName | number} arg2 - The number of digits to round to. If this argument is negative, the number will be rounded to the left of the decimal point. + * If it is equal to zero, the number will be rounded to the nearest integer. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ROUND.js */ ApiWorksheetFunction.prototype.ROUND = function (arg1, arg2) { return this.private_calculateFunction("ROUND", arguments); }; /** - * Rounds a number down, towards zero. + * Rounds a number down, toward zero. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number that you want rounded down. - * @param {number} arg2 Is the number of digits to which you want to round. Negative rounds to the left of the decimal point; zero or omitted, to the nearest integer. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number that will be rounded down. + * @param {ApiRange | ApiName | number} arg2 - The number of digits to round to. If this argument is negative, the number will be rounded to the left of the decimal point. + * If it is equal to zero, the number will be rounded to the nearest integer. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ROUNDDOWN.js */ ApiWorksheetFunction.prototype.ROUNDDOWN = function (arg1, arg2) { return this.private_calculateFunction("ROUNDDOWN", arguments); @@ -5869,9 +6640,11 @@ * Rounds a number up, away from zero. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number that you want rounded up. - * @param {number} arg2 Is the number of digits to which you want to round. Negative rounds to the left of the decimal point; zero or omitted, to the nearest integer. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number that will be rounded up. + * @param {ApiRange | ApiName | number} arg2 - The number of digits to round to. If this argument is negative, the number will be rounded to the left of the decimal point. + * If it is equal to zero, the number will be rounded to the nearest integer. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ROUNDUP.js */ ApiWorksheetFunction.prototype.ROUNDUP = function (arg1, arg2) { return this.private_calculateFunction("ROUNDUP", arguments); @@ -5880,8 +6653,9 @@ * Returns the secant of an angle. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the secant. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the secant will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SEC.js */ ApiWorksheetFunction.prototype.SEC = function (arg1) { return this.private_calculateFunction("SEC", arguments); @@ -5890,8 +6664,9 @@ * Returns the hyperbolic secant of an angle. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the hyperbolic secant. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the hyperbolic secant will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SECH.js */ ApiWorksheetFunction.prototype.SECH = function (arg1) { return this.private_calculateFunction("SECH", arguments); @@ -5900,21 +6675,23 @@ * Returns the sum of a power series based on the formula. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the input value to the power series. - * @param {any} arg2 Is the initial power to which you want to raise x. - * @param {any} arg3 Is the step by which to increase n for each term in the series. - * @param {any} arg4 Is a set of coefficients by which each successive power of x is multiplied. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The input value to the power series. + * @param {ApiRange | ApiName | number} arg2 - The initial power to which x will be raised. + * @param {ApiRange | ApiName | number} arg3 - The step by which to increase n for each term in the series. + * @param {ApiRange | ApiName | number} arg4 - A set of coefficients by which each successive power of x is multiplied. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SERIESSUM.js */ ApiWorksheetFunction.prototype.SERIESSUM = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("SERIESSUM", arguments); }; /** - * Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative. + * Returns the sign of a number: 1 if the number is positive, 0 if the number is zero, or -1 if the number is negative. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SIGN.js */ ApiWorksheetFunction.prototype.SIGN = function (arg1) { return this.private_calculateFunction("SIGN", arguments); @@ -5923,8 +6700,9 @@ * Returns the sine of an angle. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the sine. Degrees * PI()/180 = radians. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the sine will be returned. If your argument is in degrees, multiply it by PI()/180. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SIN.js */ ApiWorksheetFunction.prototype.SIN = function (arg1) { return this.private_calculateFunction("SIN", arguments); @@ -5933,8 +6711,9 @@ * Returns the hyperbolic sine of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number for which the hyperbolic sine will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SINH.js */ ApiWorksheetFunction.prototype.SINH = function (arg1) { return this.private_calculateFunction("SINH", arguments); @@ -5943,27 +6722,37 @@ * Returns the square root of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number for which you want the square root. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number for which the square root will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SQRT.js */ ApiWorksheetFunction.prototype.SQRT = function (arg1) { return this.private_calculateFunction("SQRT", arguments); }; /** - * Returns the square root of (number * Pi). + * Returns the square root of (number * pi). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the number by which p is multiplied. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number by which pi is multiplied. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SQRTPI.js */ ApiWorksheetFunction.prototype.SQRTPI = function (arg1) { return this.private_calculateFunction("SQRTPI", arguments); }; + /** * Returns a subtotal in a list or database. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - A numeric value that specifies which function to use for the subtotal: 1 (101) - AVERAGE, 2 (102) - COUNT, + * 3 (103) - COUNTA, 4 (104) - MAX, 5 (105) - MIN, + * 6 (106) - PRODUCT, 7 (107) - STDEV, 8 (108) - STDEVP, 9 (109) - SUM, 10 (110) - VAR, 11 (111) - VARP. + * 1-11 includes manually-hidden rows, while 101-111 excludes them; + * filtered-out cells are always excluded. + * @param {ApiRange | ApiName} args - Up to 255 ranges containing the values for which the subtotal will be returned. The first argument is required, subsequent arguments are optional. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SUBTOTAL.js */ ApiWorksheetFunction.prototype.SUBTOTAL = function () { return this.private_calculateFunction("SUBTOTAL", arguments); @@ -5972,7 +6761,10 @@ * Adds all the numbers in a range of cells. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | string | number | boolean | array} args - Up to 255 numeric values to add. The first argument is required, subsequent arguments are optional. + * Arguments can be numbers, logical values, text representations of numbers, ranges, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SUM.js */ ApiWorksheetFunction.prototype.SUM = function () { return this.private_calculateFunction("SUM", arguments); @@ -5981,10 +6773,11 @@ * Adds the cells specified by a given condition or criteria. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is the range of cells you want evaluated. - * @param {any} arg2 Is the condition or criteria in the form of a number, expression, or text that defines which cells will be added. - * @param {?ApiRange} arg3 Are the actual cells to sum. If omitted, the cells in range are used. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells to be evaluated. + * @param {ApiRange | ApiName | number | string} arg2 - The condition or criteria in the form of a number, expression, or text that defines which cells will be added. + * @param {?ApiRange | ?ApiName} arg3 - The range to sum. If omitted, the cells in range are used. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SUMIF.js */ ApiWorksheetFunction.prototype.SUMIF = function (arg1, arg2, arg3) { return this.private_calculateFunction("SUMIF", arguments); @@ -5993,7 +6786,14 @@ * Adds the cells specified by a given set of conditions or criteria. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - The range of cells to be evaluated. + * @param {ApiRange | ApiName | number | string} arg2 - The first condition or criteria in the form of a number, expression, or text that defines which cells will be added. + * @param {?ApiRange | ?ApiName} arg3 - The first range to sum. If omitted, the cells in range are used. + * @param {ApiRange | ApiName | number | string} arg4 - Up to 127 additional conditions or criteria in the form of a number, expression, or text that defines which cells will be added. + * These arguments are optional. + * @param {?ApiRange | ?ApiName} arg5 - Up to 127 actual ranges to be used to be added. If omitted, the cells in the range are used. These arguments are optional. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SUMIFS.js */ ApiWorksheetFunction.prototype.SUMIFS = function () { return this.private_calculateFunction("SUMIFS", arguments); @@ -6009,10 +6809,14 @@ // return this.private_calculateFunction("SUMPRODUCT", arguments); // }; /** - * Returns the sum of the squares of the arguments. The arguments can be numbers, arrays, names or references to cells that contain numbers. + * Returns the sum of the squares of the arguments. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | number | string | boolean | ApiName | array} args - Up to 255 numeric values for which the sum of the squares will be calculated. + * The first argument is required, subsequent arguments are optional. + * The arguments can be numbers, names, logical values or text representations of numbers, ranges of cells that contain numbers, or arrays. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SUMSQ.js */ ApiWorksheetFunction.prototype.SUMSQ = function () { return this.private_calculateFunction("SUMSQ", arguments); @@ -6057,8 +6861,9 @@ * Returns the tangent of an angle. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the angle in radians for which you want the tangent. Degrees * PI()/180 = radians. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The angle in radians for which the tangent will be returned. If the argument is in degrees, multiply it by PI()/180. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TAN.js */ ApiWorksheetFunction.prototype.TAN = function (arg1) { return this.private_calculateFunction("TAN", arguments); @@ -6067,8 +6872,9 @@ * Returns the hyperbolic tangent of a number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is any real number. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - Any real number for which the hyperbolic tangent will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TANH.js */ ApiWorksheetFunction.prototype.TANH = function (arg1) { return this.private_calculateFunction("TANH", arguments); @@ -6077,9 +6883,10 @@ * Truncates a number to an integer by removing the decimal, or fractional, part of the number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {number} arg1 Is the number you want to truncate. - * @param {?number} arg2 Is a number specifying the precision of the truncation, 0 (zero) if omitted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The number which will be truncated. + * @param {?ApiRange | ?ApiName | ?number} arg2 - A number specifying the precision of the truncation. If this argument is omitted, it is equal to 0 (zero). + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TRUNC.js */ ApiWorksheetFunction.prototype.TRUNC = function (arg1, arg2) { return this.private_calculateFunction("TRUNC", arguments); @@ -6088,41 +6895,50 @@ * Chooses a value or action to perform from a list of values, based on an index number. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The position of the value in the list of values, a numeric value greater than or equal to 1 but less than the number of values in the list of values. + * @param {number | string | ApiRange | ApiName} args - Up to 254 values or the selected range of cells to analyze. + * The first argument is required, subsequent arguments are optional. Arguments can be numbers, ranges, names, or text strings. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/CHOOSE.js */ ApiWorksheetFunction.prototype.CHOOSE = function () { return this.private_calculateFunction("CHOOSE", arguments); }; /** - * Returns the number of columns in an array or reference. + * Returns the number of columns in the cell range. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is an array or array formula, or a reference to a range of cells for which you want the number of columns. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number[]} arg1 - A range or array of cells for which the number of columns will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/COLUMNS.js */ ApiWorksheetFunction.prototype.COLUMNS = function (arg1) { return this.private_calculateFunction("COLUMNS", arguments); }; /** - * Looks for a value in the top row of a table or array of values and returns the value in the same column from a row you specify. + * Looks for a value in the top row of a table or array of values and returns the value in the same column from the specified row. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value to be found in the first row of the table and can be a value, a reference, or a text string. - * @param {number} arg2 Is a table of text, numbers, or logical values in which data is looked up. Table_array can be a reference to a range or a range name. - * @param {number} arg3 Is the row number in table_array from which the matching value should be returned. The first row of values in the table is row 1. - * @param {?boolean} arg4 Is a logical value: to find the closest match in the top row (sorted in ascending order) = TRUE or omitted; find an exact match = FALSE. - * @returns {number | string | boolean} + * @param {number | string | ApiRange | ApiName} arg1 - The value to be found in the first row of the table and can be a value, a reference, or a text string. + * @param {ApiRange | ApiName} arg2 - A table of text, numbers, or logical values in which data is looked up. The data is sorted in ascending order. + * This argument can be a range of cells or a range name. + * @param {ApiRange | ApiName | number} arg3 - The row number in data table from which the matching value should be returned. The first row of values in the table is row 1. + * @param {?ApiRange | ?ApiName | ?boolean} arg4 - A logical value which specifies whether to find the closest match in the top row (sorted in ascending order) (true or omitted) + * or find an exact match (false). + * @returns {number | string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HLOOKUP.js */ ApiWorksheetFunction.prototype.HLOOKUP = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("HLOOKUP", arguments); }; /** - * Creates a shortcut or jump that opens a document stored on your hard drive, a network server, or on the Internet. + * Creates a shortcut that jumps to another location in the current workbook, or opens a document stored on your hard drive, a network server, or on the Internet. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {string} arg1 Is the text giving the path and file name to the document to be opened, a hard drive location, UNC address, or URL path. - * @param {?any} arg2 Is text or a number that is displayed in the cell. If omitted, the cell displays the Link_location text. - * @returns {number | string | boolean} + * @param {string | ApiRange | ApiName} arg1 - The text giving the path and file name to the document to be opened, a hard drive location, UNC address, or URL path. + * @param {?string | ?ApiRange | ?number | ?ApiName} arg2 - Text or a number that is displayed in the cell. If omitted, the cell displays the link location text. + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/HYPERLINK.js */ ApiWorksheetFunction.prototype.HYPERLINK = function (arg1, arg2) { return this.private_calculateFunction("HYPERLINK", arguments); @@ -6131,45 +6947,58 @@ * Returns a value or reference of the cell at the intersection of a particular row and column, in a given range. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is a range of cells or an array constant.. - * @param {number} arg2 Selects the row in Array or Reference from which to return a value. If omitted, Column_num is required. - * @param {?number} arg3 Selects the column in Array or Reference from which to return a value. If omitted, Row_num is required. - * @param {?any} arg4 Is a reference to one or more cell ranges. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | array} arg1 - A range of cells or an array constant. + * @param {ApiRange | ApiName | number} arg2 - The row in the range from which to return a value. If omitted, the column number is required. + * @param {?ApiRange | ?ApiName | ?number} arg3 - The column in the range from which to return a value. If omitted, the row number is required. + * @param {?ApiRange | ?ApiName | ?number} arg4 - An area to use in case the range contains several ranges. If it is omitted, the function will assume argument to be 1. + * @returns {number | string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/INDEX.js */ ApiWorksheetFunction.prototype.INDEX = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("INDEX", arguments); }; /** - * Looks up a value either from a one-row or one-column range or from an array. Provided for backwards compatibility. + * Looks up a value either from a one-row or one-column range. Provided for backwards compatibility. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a value that LOOKUP searches for in Lookup_vector and can be a number, text, a logical value, or a name or reference to a value. - * @param {ApiRange} arg2 Is a range that contains only one row or one column of text, numbers, or logical values, placed in ascending order. - * @param {?ApiRange} arg3 Is a range that contains only one row or column, the same size as Lookup_vector. + * @param {number | string | boolean | ApiRange | ApiName} arg1 - A value that is searched for in the first vector. It can be a number, text, a logical value, or a name or reference to a value. + * @param {ApiRange | ApiName} arg2 - A range that contains only one row or one column of text, numbers, or logical values, placed in ascending order. + * @param {?ApiRange | ?ApiName} arg3 - A range that contains only one row or column. It must be the same size as the first vector. * @returns {number | string | boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/LOOKUP.js */ ApiWorksheetFunction.prototype.LOOKUP = function (arg1, arg2, arg3) { return this.private_calculateFunction("LOOKUP", arguments); }; + + /** + * The match type. + * * -1 - The values must be sorted in descending order. If the exact match is not found, the function will return the smallest value that is greater than the searched value. + * * 0 - The values can be sorted in any order. If the exact match is not found, the function will return the #N/A error. + * * 1 (or omitted) - The values must be sorted in ascending order. If the exact match is not found, the function will return the largest value that is less than the searched value. + * @typedef {(-1 | 0 | 1)} MatchType + * */ + /** - * Returns the relative position of an item in an array that matches a specified value in a specified order. + * Returns the relative position of an item in a range that matches the specified value in the specified order. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you use to find the value you want in the array, a number, text, or logical value, or a reference to one of these. - * @param {number} arg2 Is a contiguous range of cells containing possible lookup values, an array of values, or a reference to an array. - * @param {?number} arg3 Is a number 1, 0, or -1 indicating which value to return.. - * @returns {number | string | boolean} + * @param {number | string | boolean | ApiRange | ApiName} arg1 - The value to be matched in the range. It can be a number, text, or logical value, or a reference to one of these. + * @param {ApiRange | ApiName | array} arg2 - A contiguous range of cells or an array containing possible lookup values. + * @param {?ApiRange | ?ApiName | ?number} arg3 - A number 1, 0, or -1 indicating which value to return. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/MATCH.js */ ApiWorksheetFunction.prototype.MATCH = function (arg1, arg2, arg3) { return this.private_calculateFunction("MATCH", arguments); }; /** - * Returns the number of rows in a reference or array. + * Returns the number of rows in a range. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is an array, an array formula, or a reference to a range of cells for which you want the number of rows. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | array} arg1 - A range of cells or an array for which the number of rows will be returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ROWS.js */ ApiWorksheetFunction.prototype.ROWS = function (arg1) { return this.private_calculateFunction("ROWS", arguments); @@ -6178,170 +7007,211 @@ * Converts a vertical range of cells to a horizontal range, or vice versa. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is a range of cells on a worksheet or an array of values that you want to transpose. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | array} arg1 - A range of cells on a worksheet or an array that will be transposed. + * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TRANSPOSE.js */ ApiWorksheetFunction.prototype.TRANSPOSE = function (arg1) { return this.private_calculateFunction("TRANSPOSE", arguments); }; /** - * Looks for a value in the leftmost column of a table and then returns a value in the same row from a column that you specify. By default, the table must be sorted in an ascending order. + * Looks for a value in the leftmost column of a table and then returns a value in the same row from the specified column. By default, the table must be sorted in an ascending order. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value to be found in the first column of the table, and can be a value, a reference, or a text string. - * @param {number} arg2 Is a table of text, numbers, or logical values, in which data is retrieved. Table_array can be a reference to a range or a range name. - * @param {number} arg3 Is the column number in table_array from which the matching value should be returned. The first column of values in the table is column 1. - * @param {?boolean} arg4 Is a logical value: to find the closest match in the first column (sorted in ascending order) = TRUE or omitted; find an exact match = FALSE. - * @returns {number | string | boolean} + * @param {number | string | ApiRange | ApiName} arg1 - The value to be found in the first column of the table. It can be a value, a reference, or a text string. + * @param {ApiRange | ApiName} arg2 - A table of text, numbers, or logical values, in which data is retrieved. It can be a range of cells. + * @param {ApiRange | ApiName | number} arg3 - The column number in the data table from which the matching value should be returned. The first column of values in the table is column 1. + * @param {?ApiRange | ?ApiName | ?boolean} arg4 - A logical value that specifies whether to find the closest match in the first column (sorted in ascending order) (true or omitted) + * or find an exact match (false). + * @returns {number | string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/VLOOKUP.js */ ApiWorksheetFunction.prototype.VLOOKUP = function (arg1, arg2, arg3, arg4) { return this.private_calculateFunction("VLOOKUP", arguments); }; + /** - * Returns a number matching an error value.. + * The error value. + * * "#NULL!" - 1 + * * "#DIV/0!" - 2 + * * "#VALUE!" - 3 + * * "#REF!" - 4 + * * "#NAME?" - 5 + * * "#NUM!" - 6 + * * "#N/A" - 7 + * * "#GETTING_DATA" - 8 + * * "Other" - "#N/A" + * @typedef {("#NULL!" | "#DIV/0!" | "#VALUE!" | "#REF!" | "#NAME?" | "#NUM!" | "#N/A" | "#GETTING_DATA")} ErrorValue + * */ + + /** + * Returns a number matching an error value. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the error value for which you want the identifying number, and can be an actual error value or a reference to a cell containing an error value. - * @returns {number | string | boolean} + * @param {ErrorValue | ApiRange | ApiName} arg1 - The error value for which the identifying number will be returned. It can be an actual error value or a reference to a cell containing an error value. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ERROR_TYPE.js */ ApiWorksheetFunction.prototype.ERROR_TYPE = function (arg1) { return this.private_calculateFunction("ERROR.TYPE", arguments); }; /** - * Checks whether a value is an error other than #N/A, and returns TRUE or FALSE. + * Checks whether a value is an error other than #N/A, and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value. - * @returns {number | string | boolean} + * @param {number | string | boolean | ApiRange | ApiName} arg1 - The value to test. + * The value can be an empty cell, error, logical value, text, number, range, or range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISERR.js */ ApiWorksheetFunction.prototype.ISERR = function (arg1) { return this.private_calculateFunction("ISERR", arguments); }; /** - * Checks whether a value is an error, and returns TRUE or FALSE. + * Checks whether a value is an error, and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value. - * @returns {number | string | boolean} + * @param {number | string | boolean | ApiRange | ApiName} arg1 - The value to test. + * The value can be an empty cell, error, logical value, text, number, range, or range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISERROR.js */ ApiWorksheetFunction.prototype.ISERROR = function (arg1) { return this.private_calculateFunction("ISERROR", arguments); }; /** - * Returns TRUE if the number is even. + * Returns true if a number is even. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value to test. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to test. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISEVEN.js */ ApiWorksheetFunction.prototype.ISEVEN = function (arg1) { return this.private_calculateFunction("ISEVEN", arguments); }; /** - * Checks whether a reference is to a cell containing a formula, and returns TRUE or FALSE. + * Checks whether a reference to a cell contains a formula, and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {ApiRange} arg1 Is a reference to the cell you want to test. Reference can be a cell reference, a formula, or name that refers to a cell. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName} arg1 - A cell range to test. This argument can be a range or a range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISFORMULA.js */ ApiWorksheetFunction.prototype.ISFORMULA = function (arg1) { return this.private_calculateFunction("ISFORMULA", arguments); }; /** - * Checks whether a value is a logical value (TRUE or FALSE), and returns TRUE or FALSE. + * Checks whether a value is a logical value (true or false), and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value. - * @returns {number | string | boolean} + * @param {ApiRange | string | number | boolean | ApiName} arg1 - The value to test. + * The value can be an empty cell, error, logical value, text, number, range, or range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISLOGICAL.js */ ApiWorksheetFunction.prototype.ISLOGICAL = function (arg1) { return this.private_calculateFunction("ISLOGICAL", arguments); }; /** - * Checks whether a value is #N/A, and returns TRUE or FALSE. + * Checks whether a value is #N/A, and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value. - * @returns {number | string | boolean} + * @param {ApiRange | string | number | boolean | ApiName} arg1 - The value to test. + * The value can be an empty cell, error, logical value, text, number, range, or range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISNA.js */ ApiWorksheetFunction.prototype.ISNA = function (arg1) { return this.private_calculateFunction("ISNA", arguments); }; /** - * Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE. + * Checks whether a value is not text (blank cells are not text), and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value. - * @returns {number | string | boolean} + * @param {ApiRange | string | number | boolean | ApiName} arg1 - The value to test. + * The value can be an empty cell, error, logical value, text, number, range, or range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISNONTEXT.js */ ApiWorksheetFunction.prototype.ISNONTEXT = function (arg1) { return this.private_calculateFunction("ISNONTEXT", arguments); }; /** - * Checks whether a value is a number, and returns TRUE or FALSE. + * Checks whether a value is a number, and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value. - * @returns {number | string | boolean} + * @param {ApiRange | string | number | boolean | ApiName} arg1 - The value to test. + * The value can be an empty cell, error, logical value, text, number, range, or range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISNUMBER.js */ ApiWorksheetFunction.prototype.ISNUMBER = function (arg1) { return this.private_calculateFunction("ISNUMBER", arguments); }; /** - * Returns TRUE if the number is odd. + * Returns true if a number is odd. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value to test. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number} arg1 - The value to test. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISODD.js */ ApiWorksheetFunction.prototype.ISODD = function (arg1) { return this.private_calculateFunction("ISODD", arguments); }; /** - * Checks whether a value is a reference, and returns TRUE or FALSE. + * Checks whether a value is a reference, and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value. - * @returns {number | string | boolean} + * @param {ApiRange | string | number | boolean | ApiName} arg1 - The value to test. + * The value can be an empty cell, error, logical value, text, number, range, or range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISREF.js */ ApiWorksheetFunction.prototype.ISREF = function (arg1) { return this.private_calculateFunction("ISREF", arguments); }; /** - * Checks whether a value is text, and returns TRUE or FALSE. + * Checks whether a value is text, and returns true or false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value. - * @returns {number | string | boolean} + * @param {ApiRange | string | number | boolean | ApiName} arg1 - The value to test. + * The value can be an empty cell, error, logical value, text, number, range, or range name. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/ISTEXT.js */ ApiWorksheetFunction.prototype.ISTEXT = function (arg1) { return this.private_calculateFunction("ISTEXT", arguments); }; /** - * Converts non-number value to a number, dates to serial numbers, TRUE to 1, anything else to 0 (zero). + * Converts a value to a number, dates to serial numbers, true to 1, error to {@link global#ErrorValue ErrorValue}, anything else to 0 (zero). * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is the value you want converted. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string | boolean} arg1 - The value to be converted. The value can be a logical value, text, or number. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/N.js */ ApiWorksheetFunction.prototype.N = function (arg1) { return this.private_calculateFunction("N", arguments); }; /** - * Returns the error value #N/A (value not available). + * Returns the #N/A error value which means "no value is available". * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NA.js */ ApiWorksheetFunction.prototype.NA = function () { return this.private_calculateFunction("NA", arguments); }; /** - * Returns the sheet number of the referenced sheet. + * Returns the sheet number of the reference sheet. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {?string} arg1 Is the name of a sheet or a reference that you want the sheet number of. If omitted the number of the sheet containing the function is returned. - * @returns {number | string | boolean} + * @param {?string | ?ApiRange | ?ApiName} arg1 - The name of a sheet or a reference for which the sheet number will be returned. If omitted the number of the sheet containing the function is returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SHEET.js */ ApiWorksheetFunction.prototype.SHEET = function (arg1) { return this.private_calculateFunction("SHEET", arguments); @@ -6350,8 +7220,9 @@ * Returns the number of sheets in a reference. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {?ApiRange} arg1 Is a reference for which you want to know the number of sheets it contains. If omitted the number of sheets in the workbook containing the function is returned. - * @returns {number | string | boolean} + * @param {?ApiRange | ?ApiName} arg1 - A reference for which the number of sheets will be returned. If omitted the number of sheets in the workbook containing the function is returned. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/SHEETS.js */ ApiWorksheetFunction.prototype.SHEETS = function (arg1) { return this.private_calculateFunction("SHEETS", arguments); @@ -6360,97 +7231,110 @@ * Returns an integer representing the data type of a value: number = 1; text = 2; logical value = 4; error value = 16; array = 64; compound data = 128. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Can be any value. - * @returns {number | string | boolean} + * @param {number | string | boolean | array | ApiRange | ApiName} arg1 - A value to test. + * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TYPE.js */ ApiWorksheetFunction.prototype.TYPE = function (arg1) { return this.private_calculateFunction("TYPE", arguments); }; /** - * Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE. + * Checks whether all conditions in a test are true. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | string | ApiRange | boolean | ApiName} args - A condition to check. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/AND.js */ ApiWorksheetFunction.prototype.AND = function () { return this.private_calculateFunction("AND", arguments); }; /** - * Returns the logical value FALSE. + * Returns the false logical value. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/FALSE.js */ ApiWorksheetFunction.prototype.FALSE = function () { return this.private_calculateFunction("FALSE", arguments); }; /** - * Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE. + * Checks whether a condition is met, and returns one value if true, and another value if false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {boolean} arg1 Is any value or expression that can be evaluated to TRUE or FALSE. - * @param {any} arg2 Is the value that is returned if Logical_test is TRUE. If omitted, TRUE is returned. You can nest up to seven IF functions. - * @param {?any} arg3 Is the value that is returned if Logical_test is FALSE. If omitted, FALSE is returned. + * @param {number | string | ApiRange | ApiName | boolean} arg1 - Any value or expression that can be evaluated to true or false. + * @param {number | string | ApiRange | ApiName | boolean} arg2 - The value that is returned if the condition is true. If omitted, true is returned. You can nest up to seven IF functions. + * @param {?ApiRange | ?ApiName | ?number | ?string | ?boolean} arg3 - The value that is returned if the condition is false. If omitted, false is returned. * @returns {number | string | boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IF.js */ ApiWorksheetFunction.prototype.IF = function (arg1, arg2, arg3) { return this.private_calculateFunction("IF", arguments); }; /** - * Returns value_if_error if expression is an error and the value of the expression itself otherwise. + * Checks if there is an error in the formula in the first argument. The function returns the result of the formula if there is no error, or the value specified in the second argument if there is one. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is any value or expression or reference. - * @param {any} arg2 Is any value or expression or reference. + * @param {ApiRange | ApiName | number | string | boolean} arg1 - The value, expression, or reference that is checked for an error. + * @param {ApiRange | ApiName | number | string | boolean} arg2 - The value to be returned if the formula evaluates to an error. The following errors are evaluated: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, #NULL!. * @returns {number | string | boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IFERROR.js */ ApiWorksheetFunction.prototype.IFERROR = function (arg1, arg2) { return this.private_calculateFunction("IFERROR", arguments); }; /** - * Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression. + * Checks if there is an error in the formula in the first argument. The function returns the specified value if the formula returns the #N/A error value, otherwise returns the result of the formula. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {any} arg1 Is any value or expression or reference. - * @param {any} arg2 Is any value or expression or reference. + * @param {ApiRange | ApiName | number | string | boolean} arg1 - The value, expression, or reference that is checked for an error. + * @param {ApiRange | ApiName | number | string | boolean} arg2 - The value to return if the formula evaluates to the #N/A error value. * @returns {number | string | boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/IFNA.js */ ApiWorksheetFunction.prototype.IFNA = function (arg1, arg2) { return this.private_calculateFunction("IFNA", arguments); }; /** - * Changes FALSE to TRUE, or TRUE to FALSE. + * Checks if the specified logical value is true or false. The function returns true if the argument is false and false if the argument is true. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @param {boolean} arg1 Is a value or expression that can be evaluated to TRUE or FALSE. - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | number | string | boolean} arg1 - A value or expression that can be evaluated to true or false. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/NOT.js */ ApiWorksheetFunction.prototype.NOT = function (arg1) { return this.private_calculateFunction("NOT", arguments); }; /** - * Checks whether any of the arguments are TRUE, and returns TRUE or FALSE. Returns FALSE only if all arguments are FALSE. + * Checks whether any of the arguments are true. Returns false only if all arguments are false. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {number | string | ApiRange | ApiName | boolean} args - A condition to check. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/OR.js */ ApiWorksheetFunction.prototype.OR = function () { return this.private_calculateFunction("OR", arguments); }; /** - * Returns the logical value TRUE. + * Returns the true logical value. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/TRUE.js */ ApiWorksheetFunction.prototype.TRUE = function () { return this.private_calculateFunction("TRUE", arguments); }; /** - * Returns a logical 'Exclusive Or' of all arguments. + * Returns the logical Exclusive Or value of all arguments. The function returns true when the number of true inputs is odd and false when the number of true inputs is even. * @memberof ApiWorksheetFunction * @typeofeditors ["CSE"] - * @returns {number | string | boolean} + * @param {ApiRange | ApiName | boolean | array} args - The conditions to check. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheetFunction/Methods/XOR.js */ ApiWorksheetFunction.prototype.XOR = function () { return this.private_calculateFunction("XOR", arguments); @@ -6565,6 +7449,7 @@ * @param {number} nSheet - The sheet index. * @param {boolean} [bWithFormat=false] - Specifies that the data will be received with the format. * @returns {string[][]} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetMailMergeData.js */ Api.prototype.GetMailMergeData = function (nSheet, bWithFormat) { if (bWithFormat !== true) @@ -6587,6 +7472,7 @@ * @typeofeditors ["CSE"] * @param {Function} fLogger - A function which specifies the logger object for checking recalculation of formulas. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/Api/Methods/RecalculateAllFormulas.js */ Api.prototype.RecalculateAllFormulas = function (fLogger) { var formulas = this.wbModel.getAllFormulas(true); @@ -6647,8 +7533,10 @@ if (formula.parent && nRow !== undefined && nCol !== undefined) { var cell = formula.ws.getCell3(nRow, nCol); var oldValue = cell.getValue(); + let caTemp = formula.ca; formula.setFormula(formula.getFormula()); formula.parse(); + formula.ca = caTemp; var formulaRes = formula.calculate(); var newValue = formula.simplifyRefType(formulaRes, formula.ws, nRow, nCol); if (fLogger) { @@ -6668,6 +7556,127 @@ } }; + /** + * Inserts the specified pivot table into an existing worksheet. + * @memberof Api + * @typeofeditors ["CSE"] + * @param {ApiRange} dataRef - The source data range. + * @param {ApiRange} pivotRef - A range in which the pivot table will be located. + * @param {bool} confirmation - Specifies whether to replace the data in the specified pivot table range (if it exists) or create a dialog box for this (if it exists). + * @returns {ApiPivotTable} + * @since 8.2.0 + * @see office-js-api/Examples/Cell/Api/Methods/InsertPivotExistingWorksheet.js + */ + Api.prototype.InsertPivotExistingWorksheet = function (dataRef, pivotRef, confirmation) { + if (dataRef) { + dataRef = dataRef.GetWorksheet().GetName() + "!" + dataRef.GetAddress(true, true); + } else { + var options = this.asc_getAddPivotTableOptions(); + dataRef = options.range; + } + if (pivotRef) { + pivotRef = pivotRef.GetWorksheet().GetName() + "!" + pivotRef.GetAddress(true, true); + } else { + private_MakeError('"pivotRef" is undefined.'); + } + var pivot = this.asc_insertPivotExistingWorksheet(dataRef, pivotRef, confirmation); + if (pivot) { + return new ApiPivotTable(pivot, this); + } + private_MakeError('Error! Bad pivotRef!'); + }; + + /** + * Inserts the specified pivot table into a new worksheet. + * @memberof Api + * @typeofeditors ["CSE"] + * @param {ApiRange} dataRef - The source data range. + * @param {ApiRange} [newSheetName] - A new worksheet name. + * @returns {ApiPivotTable} + * @since 8.2.0 + * @see office-js-api/Examples/Cell/Api/Methods/InsertPivotNewWorksheet.js + */ + Api.prototype.InsertPivotNewWorksheet = function (dataRef, newSheetName) { + if (dataRef) { + dataRef = dataRef.GetWorksheet().GetName() + "!" + dataRef.GetAddress(true, true); + } else { + var options = this.asc_getAddPivotTableOptions(); + dataRef = options.range; + } + if (!newSheetName) { + var items = [], wc = this.asc_getWorksheetsCount(); + while (wc--) { + items.push(this.asc_getWorksheetName(wc).toLowerCase()); + } + + var index = 0, name; + while(++index < 1000) { + name = 'Sheet' + index; + if (items.indexOf(name.toLowerCase()) < 0) break; + } + + newSheetName = name; + } + var pivot = this.asc_insertPivotNewWorksheet(dataRef, newSheetName); + if (pivot) { + return new ApiPivotTable(pivot, this); + } + private_MakeError('An error occurred while creating the pivot table!'); + }; + + /** + * Returns a pivot table by its name, or null if it does not exist. + * @memberof Api + * @typeofeditors ["CSE"] + * @param {string} name - The pivot table name. + * @returns {ApiPivotTable|null} + * @since 8.2.0 + * @see office-js-api/Examples/Cell/Api/Methods/GetPivotByName.js + */ + Api.prototype.GetPivotByName = function (name) { + var res = null; + if (typeof name == "string" && name.trim().length) { + var pivot = this.wbModel.getPivotTableByName( name.trim() ); + if (pivot) + res = new ApiPivotTable(pivot, this); + } + return res; + }; + + /** + * Refreshes all pivot tables. + * @memberof Api + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/Cell/Api/Methods/RefreshAllPivots.js + */ + Api.prototype.RefreshAllPivots = function () { + this.asc_refreshAllPivots(); + }; + + /** + * Returns all pivot tables. + * @memberof Api + * @typeofeditors ["CSE"] + * @returns {ApiPivotTable[]} + * @since 8.2.0 + * @see office-js-api/Examples/Cell/Api/Methods/GetAllPivotTables.js + */ + Api.prototype.GetAllPivotTables = function () { + var res = []; + var sheets = this.GetSheets(); + sheets.forEach(function(ws) { + res = res.concat( ws.GetAllPivotTables() ) + }); + return res; + }; + + Object.defineProperty(Api.prototype, "PivotTables", { + get: function () { + return this.GetAllPivotTables(); + } + }); + /** * Subscribes to the specified event and calls the callback function when the event fires. * @function @@ -6676,6 +7685,7 @@ * @param {string} eventName - The event name. * @param {function} callback - Function to be called when the event fires. * @fires Api#onWorksheetChange + * @see office-js-api/Examples/{Editor}/Api/Methods/attachEvent.js */ Api.prototype["attachEvent"] = Api.prototype.attachEvent; @@ -6686,6 +7696,7 @@ * @typeofeditors ["CSE"] * @param {string} eventName - The event name. * @fires Api#onWorksheetChange + * @see office-js-api/Examples/{Editor}/Api/Methods/detachEvent.js */ Api.prototype["detachEvent"] = Api.prototype.detachEvent; @@ -6697,6 +7708,7 @@ * @param {string} sAuthor - The author's name (optional). * @returns {ApiComment | null} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/Api/Methods/AddComment.js */ Api.prototype.AddComment = function (sText, sAuthor) { let result = null; @@ -6722,6 +7734,7 @@ * @typeofeditors ["CSE"] * @param {string} sId - The comment ID. * @returns {?ApiComment} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetCommentById.js */ Api.prototype.GetCommentById = function (sId) { let comment = this.asc_findComment(sId); @@ -6736,6 +7749,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @returns {ApiComment[]} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetComments.js */ Api.prototype.GetComments = function () { var comments = []; @@ -6756,6 +7770,7 @@ * @memberof Api * @typeofeditors ["CSE"] * @returns {ApiComment[]} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetAllComments.js */ Api.prototype.GetAllComments = function () { let aApiComments = this.GetComments(); @@ -6775,6 +7790,7 @@ /** * Specifies a type of freeze panes. * @typedef {("row" | "column" | "cell" | null )} FreezePaneType + * @see office-js-api/Examples/Enumerations/FreezePaneType.js */ /** @@ -6783,6 +7799,7 @@ * @typeofeditors ["CSE"] * @param {FreezePaneType} FreezePaneType - The freeze panes type ("null" to unfreeze). * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/Api/Methods/SetFreezePanesType.js */ Api.prototype.SetFreezePanesType = function (FreezePaneType) { if (typeof FreezePaneType === 'string' || FreezePaneType === null) { @@ -6818,6 +7835,7 @@ * @typeofeditors ["CSE"] * @returns {FreezePaneType} FreezePaneType - The freeze panes type ("null" if there are no freeze panes). * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/Api/Methods/GetFreezePanesType.js */ Api.prototype.GetFreezePanesType = function () { let cell = this.wb.getWorksheet().topLeftFrozenCell; @@ -6850,21 +7868,25 @@ }); /** - * Returns the cell references style. + * Returns the cell reference style. * @memberof Api * @typeofeditors ["CSE"] - * @returns {ReferenceStyle} - * */ + * @returns {ReferenceStyle} - The cell reference style. + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/Api/Methods/GetReferenceStyle.js + */ Api.prototype.GetReferenceStyle = function () { let bReferenceStyle = this.asc_getR1C1Mode(); return bReferenceStyle ? "xlR1C1" : "xlA1"; }; /** - * Sets the cell references style. + * Sets the cell reference style. * @memberof Api * @typeofeditors ["CSE"] - * @param {ReferenceStyle} sReferenceStyle - Type of reference style + * @param {ReferenceStyle} sReferenceStyle - The cell reference style. + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/Api/Methods/SetReferenceStyle.js */ Api.prototype.SetReferenceStyle = function (sReferenceStyle) { let bReferenceMode = null; @@ -6894,11 +7916,92 @@ }); + /** + * Returns the document information: + * Application - the application the document has been created with. + * CreatedRaw - the date and time when the file was created. + * Created - the parsed date and time when the file was created. + * LastModifiedRaw - the date and time when the file was last modified. + * LastModified - the parsed date and time when the file was last modified. + * LastModifiedBy - the name of the user who has made the latest change to the document. + * Autrors - the persons who has created the file. + * Title - this property allows you to simplify your documents classification. + * Tags - this property allows you to simplify your documents classification. + * Subject - this property allows you to simplify your documents classification. + * Comment - this property allows you to simplify your documents classification. + * @memberof Api + * @typeofeditors ["CSE"] + * @returns {object} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetDocumentInfo.js + */ + Api.prototype.GetDocumentInfo = function() + { + const oDocInfo = { + Application: '', + CreatedRaw: null, + Created: '', + LastModifiedRaw: null, + LastModified: '', + LastModifiedBy: '', + Autrors: [], + Title: '', + Tags: '', + Subject: '', + Comment: '' + }; + + let props = (this) ? this.asc_getAppProps() : null; + oDocInfo.Application = (props.asc_getApplication() || '') + (props.asc_getAppVersion() ? ' ' : '') + (props.asc_getAppVersion() || ''); + + let langCode = 1033; // en-US + let langName = 'en-us'; + if (AscCommon.g_oDefaultCultureInfo.Name) { + langName = AscCommon.g_oDefaultCultureInfo.Name.replace('_', '-').toLowerCase(); + } else if (this.defaultLanguage && window['Common']) { + langCode = this.defaultLanguage; + langName = window['Common']['util']['LanguageInfo']['getLocalLanguageName'](langCode)[0].toLowerCase(); + + } + + props = this.asc_getCoreProps(); + oDocInfo.CreatedRaw = props.asc_getCreated(); + oDocInfo.LastModifiedRaw = props.asc_getModified(); + + try { + if (oDocInfo.CreatedRaw) + oDocInfo.Created = (oDocInfo.CreatedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' +oDocInfo. CreatedRaw.toLocaleString(langName, {timeStyle: 'short'})); + + if (oDocInfo.LastModifiedRaw) + oDocInfo.LastModified = (oDocInfo.LastModifiedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.LastModifiedRaw.toLocaleString(langName, {timeStyle: 'short'})); + } catch (e) { + langName = 'en'; + if (oDocInfo.CreatedRaw) + oDocInfo.Created = (oDocInfo.CreatedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.CreatedRaw.toLocaleString(langName, {timeStyle: 'short'})); + + if (oDocInfo.LastModifiedRaw) + oDocInfo.LastModified = (oDocInfo.LastModifiedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.LastModifiedRaw.toLocaleString(langName, {timeStyle: 'short'})); + } + + const LastModifiedBy = props.asc_getLastModifiedBy(); + oDocInfo.LastModifiedBy = AscCommon.UserInfoParser.getParsedName(LastModifiedBy); + + oDocInfo.Title = (props.asc_getTitle() || ''); + oDocInfo.Tags = (props.asc_getKeywords() || ''); + oDocInfo.Subject = (props.asc_getSubject() || ''); + oDocInfo.Comment = (props.asc_getDescription() || ''); + + const authors = props.asc_getCreator(); + if (authors) + oDocInfo.Autrors = authors.split(/\s*[,;]\s*/); + + return oDocInfo; + }; /** * Returns the state of sheet visibility. * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetVisible.js */ ApiWorksheet.prototype.GetVisible = function () { return !this.worksheet.getHidden(); @@ -6909,6 +8012,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {boolean} isVisible - Specifies if the sheet is visible or not. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetVisible.js */ ApiWorksheet.prototype.SetVisible = function (isVisible) { this.worksheet.setHidden(!isVisible); @@ -6926,6 +8030,7 @@ * Makes the current sheet active. * @memberof ApiWorksheet * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetActive.js */ ApiWorksheet.prototype.SetActive = function () { this.worksheet.workbook.setActive(this.worksheet.index); @@ -6941,6 +8046,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetActiveCell.js */ ApiWorksheet.prototype.GetActiveCell = function () { let cell = this.worksheet.getCell3(this.worksheet.selectionRange.activeCell.row, this.worksheet.selectionRange.activeCell.col); @@ -6961,6 +8067,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetSelection.js */ ApiWorksheet.prototype.GetSelection = function () { var r = this.worksheet.selectionRange.getLast(); @@ -6984,6 +8091,7 @@ * @param {number} row - The row number or the cell number (if only row is defined). * @param {number} col - The column number. * @returns {ApiRange | null} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetCells.js */ ApiWorksheet.prototype.GetCells = function (row, col) { let result; @@ -7039,6 +8147,7 @@ * @typeofeditors ["CSE"] * @param {string | number} value - Specifies the rows range in the string or number format. * @returns {ApiRange | null} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetRows.js */ ApiWorksheet.prototype.GetRows = function (value) { if (typeof value === "undefined") { @@ -7078,6 +8187,7 @@ * @typeofeditors ["CSE"] * @param {string} sRange - Specifies the columns range in the string format. * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetCols.js */ ApiWorksheet.prototype.GetCols = function (sRange) { if (sRange.indexOf(':') == -1) { @@ -7096,10 +8206,14 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetUsedRange.js */ ApiWorksheet.prototype.GetUsedRange = function () { - var rEnd = this.worksheet.getRowsCount() - 1; - var cEnd = this.worksheet.getColsCount() - 1; + const ws = this.worksheet; + const eot = ws.findEOT(true); + const rEnd = eot.row; + const cEnd = eot.col; + return new ApiRange(this.worksheet.getRange3(0, 0, (rEnd < 0) ? 0 : rEnd, (cEnd < 0) ? 0 : cEnd)); }; @@ -7114,6 +8228,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetName.js */ ApiWorksheet.prototype.GetName = function () { return this.worksheet.getName(); @@ -7124,6 +8239,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {string} sName - The name which will be displayed for the current sheet at the sheet tab. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetName.js */ ApiWorksheet.prototype.SetName = function (sName) { let sOldName = this.worksheet.getName(); @@ -7149,6 +8265,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetIndex.js */ ApiWorksheet.prototype.GetIndex = function () { return this.worksheet.getIndex(); @@ -7167,6 +8284,7 @@ * @param {string | ApiRange} Range1 - The range of cells from the current sheet. * @param {string | ApiRange} Range2 - The range of cells from the current sheet. * @returns {ApiRange | null} - returns null if such a range does not exist. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetRange.js */ ApiWorksheet.prototype.GetRange = function (Range1, Range2) { var Range, r1, c1, r2, c2; @@ -7206,6 +8324,7 @@ * @param {number} nRow - The row number. * @param {number} nCol - The column number. * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetRangeByNumber.js */ ApiWorksheet.prototype.GetRangeByNumber = function (nRow, nCol) { return new ApiRange(this.worksheet.getCell3(nRow, nCol)); @@ -7217,6 +8336,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {string} sRange - The range of cells from the current sheet which will be formatted as a table. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/FormatAsTable.js */ ApiWorksheet.prototype.FormatAsTable = function (sRange) { this.worksheet.autoFilters.addAutoFilter('TableStyleLight9', AscCommonExcel.g_oRangeCache.getAscRange(sRange)); @@ -7231,6 +8351,7 @@ * @param {number} nColumn - The number of the column to set the width to. * @param {number} nWidth - The width of the column divided by 7 pixels. * @param {boolean} [bWithotPaddings=false] - Specifies whether nWidth will be set without standard paddings. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetColumnWidth.js */ ApiWorksheet.prototype.SetColumnWidth = function (nColumn, nWidth, bWithotPaddings) { if (bWithotPaddings) { @@ -7247,6 +8368,7 @@ * @typeofeditors ["CSE"] * @param {number} nRow - The number of the row to set the height to. * @param {number} nHeight - The height of the row measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetRowHeight.js */ ApiWorksheet.prototype.SetRowHeight = function (nRow, nHeight) { this.worksheet.setRowHeight(nHeight, nRow, nRow, true); @@ -7257,6 +8379,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {boolean} isDisplayed - Specifies whether the current sheet gridlines must be displayed or not. The default value is true. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetDisplayGridlines.js */ ApiWorksheet.prototype.SetDisplayGridlines = function (isDisplayed) { this.worksheet.setDisplayGridlines(!!isDisplayed); @@ -7267,6 +8390,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {boolean} isDisplayed - Specifies whether the current sheet row/column headers must be displayed or not. The default value is true. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetDisplayHeadings.js */ ApiWorksheet.prototype.SetDisplayHeadings = function (isDisplayed) { this.worksheet.setDisplayHeadings(!!isDisplayed); @@ -7277,6 +8401,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {number} nPoints - The left margin size measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetLeftMargin.js */ ApiWorksheet.prototype.SetLeftMargin = function (nPoints) { nPoints = (typeof nPoints !== 'number') ? 0 : nPoints; @@ -7287,6 +8412,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {number} - The left margin size measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetLeftMargin.js */ ApiWorksheet.prototype.GetLeftMargin = function () { return this.worksheet.PagePrintOptions.pageMargins.asc_getLeft(); @@ -7305,6 +8431,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {number} nPoints - The right margin size measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetRightMargin.js */ ApiWorksheet.prototype.SetRightMargin = function (nPoints) { nPoints = (typeof nPoints !== 'number') ? 0 : nPoints; @@ -7315,6 +8442,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {number} - The right margin size measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetRightMargin.js */ ApiWorksheet.prototype.GetRightMargin = function () { return this.worksheet.PagePrintOptions.pageMargins.asc_getRight(); @@ -7333,6 +8461,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {number} nPoints - The top margin size measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetTopMargin.js */ ApiWorksheet.prototype.SetTopMargin = function (nPoints) { nPoints = (typeof nPoints !== 'number') ? 0 : nPoints; @@ -7343,6 +8472,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {number} - The top margin size measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetTopMargin.js */ ApiWorksheet.prototype.GetTopMargin = function () { return this.worksheet.PagePrintOptions.pageMargins.asc_getTop(); @@ -7361,6 +8491,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {number} nPoints - The bottom margin size measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetBottomMargin.js */ ApiWorksheet.prototype.SetBottomMargin = function (nPoints) { nPoints = (typeof nPoints !== 'number') ? 0 : nPoints; @@ -7371,6 +8502,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {number} - The bottom margin size measured in points. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetBottomMargin.js */ ApiWorksheet.prototype.GetBottomMargin = function () { return this.worksheet.PagePrintOptions.pageMargins.asc_getBottom(); @@ -7389,7 +8521,8 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {PageOrientation} sPageOrientation - The page orientation type. - * */ + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetPageOrientation.js + */ ApiWorksheet.prototype.SetPageOrientation = function (sPageOrientation) { this.worksheet.PagePrintOptions.pageSetup.asc_setOrientation('xlLandscape' === sPageOrientation ? 1 : 0); }; @@ -7399,7 +8532,8 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {PageOrientation} - * */ + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetPageOrientation.js + */ ApiWorksheet.prototype.GetPageOrientation = function () { var PageOrientation = this.worksheet.PagePrintOptions.pageSetup.asc_getOrientation(); return (PageOrientation) ? 'xlLandscape' : 'xlPortrait'; @@ -7420,7 +8554,8 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {boolean} - Specifies whether the current sheet row/column headings must be printed or not. - * */ + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetPrintHeadings.js + */ ApiWorksheet.prototype.GetPrintHeadings = function () { return this.worksheet.PagePrintOptions.asc_getHeadings(); }; @@ -7430,7 +8565,8 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {boolean} bPrint - Specifies whether the current sheet row/column headers must be printed or not. - * */ + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetPrintHeadings.js + */ ApiWorksheet.prototype.SetPrintHeadings = function (bPrint) { this.worksheet.PagePrintOptions.asc_setHeadings(!!bPrint); }; @@ -7449,7 +8585,8 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {boolean} - True if cell gridlines are printed on this page. - * */ + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetPrintGridlines.js + */ ApiWorksheet.prototype.GetPrintGridlines = function () { return this.worksheet.PagePrintOptions.asc_getGridLines(); }; @@ -7459,7 +8596,8 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @param {boolean} bPrint - Defines if cell gridlines are printed on this page or not. - * */ + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetPrintGridlines.js + */ ApiWorksheet.prototype.SetPrintGridlines = function (bPrint) { this.worksheet.PagePrintOptions.asc_setGridLines(!!bPrint); }; @@ -7478,6 +8616,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiName[]} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetDefNames.js */ ApiWorksheet.prototype.GetDefNames = function () { var res = this.worksheet.workbook.getDefinedNamesWS(this.worksheet.getId()); @@ -7497,6 +8636,7 @@ * @typeofeditors ["CSE"] * @param {string} defName - The worksheet name. * @returns {ApiName | null} - returns null if definition name doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetDefName.js */ ApiWorksheet.prototype.GetDefName = function (defName) { if (defName && typeof defName === "string") { @@ -7516,6 +8656,7 @@ * Example: "Sheet1!$A$1:$B$2". * @param {boolean} isHidden - Defines if the range name is hidden or not. * @returns {boolean} - returns false if sName or sRef are invalid. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/AddDefName.js */ ApiWorksheet.prototype.AddDefName = function (sName, sRef, isHidden) { return private_AddDefName(this.worksheet.workbook, sName, sRef, this.worksheet.getIndex(), isHidden); @@ -7532,6 +8673,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiComment[]} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetComments.js */ ApiWorksheet.prototype.GetComments = function () { var comments = []; @@ -7550,6 +8692,7 @@ * Deletes the current worksheet. * @memberof ApiWorksheet * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/Delete.js */ ApiWorksheet.prototype.Delete = function () { this.worksheet.workbook.oApi.asc_deleteWorksheet([this.worksheet.getIndex()]); @@ -7564,7 +8707,8 @@ * @param {string} subAddress - The link subaddress to insert internal sheet hyperlinks. * @param {string} sScreenTip - The screen tip text. * @param {string} sTextToDisplay - The link text that will be displayed on the sheet. - * */ + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/SetHyperlink.js + */ ApiWorksheet.prototype.SetHyperlink = function (sRange, sAddress, subAddress, sScreenTip, sTextToDisplay) { var range = new ApiRange(this.worksheet.getRange2(sRange)); var address; @@ -7622,6 +8766,7 @@ * @param {number} nFromRow - The number of the row where the beginning of the chart will be placed. * @param {EMU} nRowOffset - The offset from the nFromRow row to the upper part of the chart measured in English measure units. * @returns {ApiChart} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/AddChart.js */ ApiWorksheet.prototype.AddChart = function (sDataRange, bInRows, sType, nStyleIndex, nExtX, nExtY, nFromCol, nColOffset, nFromRow, nRowOffset) { @@ -7643,7 +8788,7 @@ oChart.setStyle(nStyleIndex); } oChart.recalculateReferences(); - return new ApiChart(oChart); + return Asc.editor.private_CreateApiChart(oChart); }; @@ -7664,7 +8809,8 @@ * @param {number} nFromRow - The number of the row where the beginning of the shape will be placed. * @param {EMU} nRowOffset - The offset from the nFromRow row to the upper part of the shape measured in English measure units. * @returns {ApiShape} - * */ + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/AddShape.js + */ ApiWorksheet.prototype.AddShape = function (sType, nWidth, nHeight, oFill, oStroke, nFromCol, nColOffset, nFromRow, nRowOffset) { var oShape = AscFormat.builder_CreateShape(sType, nWidth / 36000, nHeight / 36000, oFill.UniFill, oStroke.Ln, null, this.worksheet.workbook.theme, this.worksheet.getDrawingDocument(), false, this.worksheet); private_SetCoords(oShape, this.worksheet, nWidth, nHeight, nFromCol, nColOffset, nFromRow, nRowOffset); @@ -7684,6 +8830,7 @@ * @param {number} nFromRow - The number of the row where the beginning of the image will be placed. * @param {EMU} nRowOffset - The offset from the nFromRow row to the upper part of the image measured in English measure units. * @returns {ApiImage} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/AddImage.js */ ApiWorksheet.prototype.AddImage = function (sImageSrc, nWidth, nHeight, nFromCol, nColOffset, nFromRow, nRowOffset) { var oImage = AscFormat.DrawingObjectsController.prototype.createImage(sImageSrc, 0, 0, nWidth / 36000, nHeight / 36000); @@ -7708,6 +8855,7 @@ * @param {EMU} [nColOffset=0] - The offset from the nFromCol column to the left part of the Text Art object measured in English measure units. * @param {EMU} [nRowOffset=0] - The offset from the nFromRow row to the upper part of the Text Art object measured in English measure units. * @returns {ApiDrawing} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/AddWordArt.js */ ApiWorksheet.prototype.AddWordArt = function (oTextPr, sText, sTransform, oFill, oStroke, nRotAngle, nWidth, nHeight, nFromCol, nFromRow, nColOffset, nRowOffset) { oTextPr = oTextPr && oTextPr.TextPr ? oTextPr.TextPr : null; @@ -7743,6 +8891,7 @@ * @param {number} nFromRow - The number of the row where the beginning of the OLE object will be placed. * @param {EMU} nRowOffset - The offset from the nFromRow row to the upper part of the OLE object measured in English measure units. * @returns {ApiOleObject} + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/AddOleObject.js */ ApiWorksheet.prototype.AddOleObject = function (sImageSrc, nWidth, nHeight, sData, sAppId, nFromCol, nColOffset, nFromRow, nRowOffset) { if (typeof sImageSrc === "string" && sImageSrc.length > 0 && typeof sData === "string" @@ -7765,6 +8914,7 @@ * @param {string} sImageUrl - The image source where the image to be inserted should be taken from (currently only internet URL or Base64 encoded images are supported). * @param {EMU} nWidth - The image width in English measure units. * @param {EMU} nHeight - The image height in English measure units. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/ReplaceCurrentImage.js */ ApiWorksheet.prototype.ReplaceCurrentImage = function (sImageUrl, nWidth, nHeight) { let oWorksheet = Asc['editor'].wb.getWorksheet(); @@ -7780,6 +8930,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiDrawing[]}. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetAllDrawings.js */ ApiWorksheet.prototype.GetAllDrawings = function () { var allDrawings = this.worksheet.Drawings; @@ -7798,6 +8949,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiImage[]}. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetAllImages.js */ ApiWorksheet.prototype.GetAllImages = function () { var allDrawings = this.worksheet.Drawings; @@ -7816,6 +8968,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiShape[]}. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetAllShapes.js */ ApiWorksheet.prototype.GetAllShapes = function () { var allDrawings = this.worksheet.Drawings; @@ -7834,6 +8987,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiChart[]}. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetAllCharts.js */ ApiWorksheet.prototype.GetAllCharts = function () { var allDrawings = this.worksheet.Drawings; @@ -7841,7 +8995,7 @@ for (var nDrawing = 0; nDrawing < allDrawings.length; nDrawing++) { if (allDrawings[nDrawing].graphicObject && allDrawings[nDrawing].isChart()) { - allApiDrawings.push(new ApiChart(allDrawings[nDrawing].graphicObject)); + allApiDrawings.push(Asc.editor.private_CreateApiChart(allDrawings[nDrawing].graphicObject)); } } return allApiDrawings; @@ -7852,6 +9006,7 @@ * @memberof ApiWorksheet * @typeofeditors ["CSE"] * @returns {ApiOleObject[]}. + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetAllOleObjects.js */ ApiWorksheet.prototype.GetAllOleObjects = function () { var allDrawings = this.worksheet.Drawings; @@ -7871,6 +9026,7 @@ * @typeofeditors ["CSE"] * @param {ApiWorksheet} before - The sheet before which the current sheet will be placed. You cannot specify "before" if you specify "after". * @param {ApiWorksheet} after - The sheet after which the current sheet will be placed. You cannot specify "after" if you specify "before". + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/Move.js */ ApiWorksheet.prototype.Move = function (before, after) { let bb = before instanceof ApiWorksheet; @@ -7885,35 +9041,93 @@ }; /** - * Returns the freeze panes from the current worksheet. + * Returns a pivot table by its name from the current worksheet, or null if it does not exist. * @memberof ApiWorksheet * @typeofeditors ["CSE"] - * @returns {ApiFreezePanes} - * @since 8.0.0 + * @param {string} name - The pivot table name. + * @returns {ApiPivotTable|null} + * @since 8.2.0 + * @see office-js-api/Examples/Cell/ApiWorksheet/Methods/GetPivotByName.js */ - ApiWorksheet.prototype.GetFreezePanes = function () { - return new ApiFreezePanes(this.worksheet); + ApiWorksheet.prototype.GetPivotByName = function (name) { + var res = null; + if (name) { + var pivot = this.worksheet.getPivotTableByName(name); + if (pivot) + res = new ApiPivotTable(pivot, this.worksheet.workbook.oApi); + } + return res; }; - Object.defineProperty(ApiWorksheet.prototype, "FreezePanes", { + /** + * Returns all pivot tables from the current worksheet. + * @memberof ApiWorksheet + * @typeofeditors ["CSE"] + * @returns {ApiPivotTable[]} + * @since 8.2.0 + * @see office-js-api/Examples/Cell/ApiWorksheet/Methods/GetAllPivotTables.js + */ + ApiWorksheet.prototype.GetAllPivotTables = function () { + var res = []; + var ws = this.worksheet; + ws.pivotTables.forEach(function(piv) { + res.push( new ApiPivotTable(piv, ws.workbook.oApi) ); + }); + return res; + }; + + Object.defineProperty(ApiWorksheet.prototype, "PivotTables", { get: function () { - return this.GetFreezePanes(); + return this.GetAllPivotTables(); } }); /** - * Creates a protected range of the specified type from the selected data range of the current sheet. + * Refreshes all pivot tables on the current worksheet. * @memberof ApiWorksheet * @typeofeditors ["CSE"] - * @param {string} sTitle - The title which will be displayed for the current protected range. - * @param {string} sDataRange - The selected cell range which will be used to get the data for the protected range. - * @returns {ApiProtectedRange | null} - * @since 8.1.0 + * @since 8.2.0 + * @see office-js-api/Examples/Cell/ApiWorksheet/Methods/RefreshAllPivots.js */ - ApiWorksheet.prototype.AddProtectedRange = function (sTitle, sDataRange) { - let isValidTitle = typeof (sTitle) === 'string' && sTitle.trim() !== ''; - let isValidRef = typeof (sDataRange) === 'string' && sDataRange.trim() !== ''; - let result = null; + ApiWorksheet.prototype.RefreshAllPivots = function () { + const t = this; + this.worksheet.pivotTables.forEach(function(pivot) { + pivot.asc_refresh(t.worksheet.workbook.oApi); + }); + }; + + /** + * Returns the freeze panes from the current worksheet. + * @memberof ApiWorksheet + * @typeofeditors ["CSE"] + * @returns {ApiFreezePanes} + * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetFreezePanes.js + */ + ApiWorksheet.prototype.GetFreezePanes = function () { + return new ApiFreezePanes(this.worksheet); + }; + + Object.defineProperty(ApiWorksheet.prototype, "FreezePanes", { + get: function () { + return this.GetFreezePanes(); + } + }); + + /** + * Creates a protected range of the specified type from the selected data range of the current sheet. + * @memberof ApiWorksheet + * @typeofeditors ["CSE"] + * @param {string} sTitle - The title which will be displayed for the current protected range. + * @param {string} sDataRange - The selected cell range which will be used to get the data for the protected range. + * @returns {ApiProtectedRange | null} + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/AddProtectedRange.js + */ + ApiWorksheet.prototype.AddProtectedRange = function (sTitle, sDataRange) { + let isValidTitle = typeof (sTitle) === 'string' && sTitle.trim() !== ''; + let isValidRef = typeof (sDataRange) === 'string' && sDataRange.trim() !== ''; + let result = null; if (isValidTitle && isValidRef) { let settings = new Asc.CUserProtectedRange(this.worksheet); settings.asc_setName(sTitle); @@ -7933,8 +9147,9 @@ settings.asc_setUsers(users); } } - if (this.worksheet.editUserProtectedRanges(null, settings, true)) { - result = new ApiProtectedRange(settings); + let editRes = this.worksheet.editUserProtectedRanges(null, settings, true); + if (typeof editRes === "object") { + result = new ApiProtectedRange(editRes); } else { logError(new Error('Protected range cannot be added.')); } @@ -7953,6 +9168,7 @@ * @param {string} sTitle - The title of the protected range that will be returned. * @returns {ApiProtectedRange | null} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetProtectedRange.js */ ApiWorksheet.prototype.GetProtectedRange = function (sTitle) { let isValidTitle = typeof (sTitle) === 'string' && sTitle.trim() !== ''; @@ -7976,6 +9192,7 @@ * @typeofeditors ["CSE"] * @returns {ApiProtectedRange[] | null} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/GetAllProtectedRanges.js */ ApiWorksheet.prototype.GetAllProtectedRanges = function () { let protectedRanges = this.worksheet && this.worksheet.workbook && this.worksheet.workbook.oApi.asc_getUserProtectedRanges(this.worksheet.sName); @@ -7998,11 +9215,12 @@ }); /** - * Pastes the contents of the Clipboard onto the sheet. - * @memberof ApiRange + * Pastes the contents of the clipboard to the current sheet. + * @memberof ApiWorksheet * @typeofeditors ["CSE"] - * @param {ApiRange?} [destination] - Object that specifies where the Clipboard contents should be pasted. If this argument is omitted, the current selection is used. + * @param {ApiRange?} [destination] - The cell range where the clipboard contents should be pasted. If this argument is omitted, the current selection is used. * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiWorksheet/Methods/Paste.js */ ApiWorksheet.prototype.Paste = function (destination) { var oApi = Asc["editor"]; @@ -8030,38 +9248,45 @@ /** * Specifies the cell border position. * @typedef {("DiagonalDown" | "DiagonalUp" | "Bottom" | "Left" | "Right" | "Top" | "InsideHorizontal" | "InsideVertical")} BordersIndex + * @see office-js-api/Examples/Enumerations/BordersIndex.js */ /** * Specifies the line style used to form the cell border. * @typedef {("None" | "Double" | "Hair" | "DashDotDot" | "DashDot" | "Dotted" | "Dashed" | "Thin" | "MediumDashDotDot" | "SlantDashDot" | "MediumDashDot" | "MediumDashed" | "Medium" | "Thick")} LineStyle + * @see office-js-api/Examples/Enumerations/LineStyle.js */ //TODO xlManual param /** * Specifies the sort order. * @typedef {("xlAscending" | "xlDescending")} SortOrder - * */ + * @see office-js-api/Examples/Enumerations/SortOrder.js + */ //TODO xlGuess param /** * Specifies whether the first row of the sort range contains the header information. * @typedef {("xlNo" | "xlYes")} SortHeader - * */ + * @see office-js-api/Examples/Enumerations/SortHeader.js + */ /** * Specifies if the sort should be by row or column. * @typedef {("xlSortColumns" | "xlSortRows")} SortOrientation - * */ + * @see office-js-api/Examples/Enumerations/SortOrientation.js + */ /** * Specifies the range angle. * @typedef {("xlDownward" | "xlHorizontal" | "xlUpward" | "xlVertical")} Angle + * @see office-js-api/Examples/Enumerations/Angle.js */ /** * Specifies the direction of end in the specified range. * @typedef {("xlUp" | "xlDown" | "xlToRight" | "xlToLeft")} Direction + * @see office-js-api/Examples/Enumerations/Direction.js */ /** @@ -8069,6 +9294,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {"range"} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetClassType.js */ ApiRange.prototype.GetClassType = function () { return "range"; @@ -8079,6 +9305,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetRow.js */ ApiRange.prototype.GetRow = function () { return (this.range.bbox.r1 + 1); @@ -8093,6 +9320,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetCol.js */ ApiRange.prototype.GetCol = function () { return (this.range.bbox.c1 + 1); @@ -8107,6 +9335,7 @@ * Clears the current range. * @memberof ApiRange * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Clear.js */ ApiRange.prototype.Clear = function () { let range = this.range, @@ -8127,6 +9356,7 @@ * @typeofeditors ["CSE"] * @param {number} nRow - The row number (starts counting from 1, the 0 value returns an error). * @returns {ApiRange | null} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetRows.js */ ApiRange.prototype.GetRows = function (nRow) { let result = null; @@ -8157,6 +9387,7 @@ * @typeofeditors ["CSE"] * @param {number} nCol - The column number. * * @returns {ApiRange | null} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetCols.js */ ApiRange.prototype.GetCols = function (nCol) { let result = null; @@ -8187,6 +9418,7 @@ * @typeofeditors ["CSE"] * @param {Direction} direction - The direction of end in the specified range. * * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/End.js */ ApiRange.prototype.End = function (direction) { let bbox = this.range.bbox; @@ -8254,6 +9486,7 @@ * @param {number} row - The row number or the cell number (if only row is defined). * @param {number} col - The column number. * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetCells.js */ ApiRange.prototype.GetCells = function (row, col) { let bbox = this.range.bbox; @@ -8298,6 +9531,7 @@ * @typeofeditors ["CSE"] * @param {number} nRow - The row number. * @param {number} nCol - The column number. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetOffset.js */ ApiRange.prototype.SetOffset = function (nRow, nCol) { this.range.setOffset({row: nRow, col: nCol}); @@ -8313,6 +9547,7 @@ * @param {boolean} External - Defines if the range is in the current file or not. * @param {range} RelativeTo - The range which the current range is relative to. * @returns {string | null} - returns address of range as string. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetAddress.js */ ApiRange.prototype.GetAddress = function (RowAbs, ColAbs, RefStyle, External, RelativeTo) { // todo поправить, чтобы возвращал адреса всех areas внутри range @@ -8366,6 +9601,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetCount.js */ ApiRange.prototype.GetCount = function () { var range = this.range.bbox; @@ -8400,6 +9636,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {string | string[][]} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetValue.js */ ApiRange.prototype.GetValue = function () { var bbox = this.range.bbox; @@ -8427,7 +9664,8 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {string | bool | number | Array[] | Array[][]} data - The general value for the cell or cell range. - * @return {boolean} - returns false if such a range does not exist. + * @returns {boolean} - returns false if such a range does not exist. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetValue.js */ ApiRange.prototype.SetValue = function (data) { if (!this.range) @@ -8501,7 +9739,8 @@ * Returns a formula of the specified range. * @typeofeditors ["CSE"] * @memberof ApiRange - * @return {string | string[][]} - return Value2 property (value without format) if formula doesn't exist. + * @returns {string | string[][]} - return Value2 property (value without format) if formula doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetFormula.js */ ApiRange.prototype.GetFormula = function () { if (this.range.isFormula()) @@ -8523,7 +9762,8 @@ * Returns the Value2 property (value without format) of the specified range. * @typeofeditors ["CSE"] * @memberof ApiRange - * @return {string | string[][]} + * @returns {string | string[][]} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetValue2.js */ ApiRange.prototype.GetValue2 = function () { var bbox = this.range.bbox; @@ -8559,7 +9799,8 @@ * Returns the text of the specified range. * @typeofeditors ["CSE"] * @memberof ApiRange - * @return {string | string[][]} + * @returns {string | string[][]} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetText.js */ ApiRange.prototype.GetText = function () { var bbox = this.range.bbox; @@ -8596,6 +9837,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {ApiColor} oColor - The color object which specifies the color to be set to the text in the cell / cell range. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetFontColor.js */ ApiRange.prototype.SetFontColor = function (oColor) { this.range.setFontcolor(oColor.color); @@ -8611,6 +9853,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {boolean} - returns true if the values in the range specified are hidden. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetHidden.js */ ApiRange.prototype.GetHidden = function () { var range = this.range; @@ -8632,6 +9875,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {boolean} isHidden - Specifies if the values in the current range are hidden or not. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetHidden.js */ ApiRange.prototype.SetHidden = function (isHidden) { var range = this.range; @@ -8661,6 +9905,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetColumnWidth.js */ ApiRange.prototype.GetColumnWidth = function () { var ws = this.range.worksheet; @@ -8675,6 +9920,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {number} nWidth - The width of the column divided by 7 pixels. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetColumnWidth.js */ ApiRange.prototype.SetColumnWidth = function (nWidth) { this.range.worksheet.setColWidth(nWidth, this.range.bbox.c1, this.range.bbox.c2); @@ -8707,6 +9953,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {pt} - The row height in the range specified, measured in points. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetRowHeight.js */ ApiRange.prototype.GetRowHeight = function () { return this.range.worksheet.getRowHeight(this.range.bbox.r1); @@ -8717,6 +9964,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {pt} nHeight - The row height in the current range measured in points. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetRowHeight.js */ ApiRange.prototype.SetRowHeight = function (nHeight) { this.range.worksheet.setRowHeight(nHeight, this.range.bbox.r1, this.range.bbox.r2, true); @@ -8745,6 +9993,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {number} nSize - The font size value measured in points. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetFontSize.js */ ApiRange.prototype.SetFontSize = function (nSize) { this.range.setFontsize(nSize); @@ -8760,6 +10009,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {string} sName - The font family name used for the current cell range. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetFontName.js */ ApiRange.prototype.SetFontName = function (sName) { this.range.setFontname(sName); @@ -8776,6 +10026,7 @@ * @typeofeditors ["CSE"] * @param {'center' | 'bottom' | 'top' | 'distributed' | 'justify'} sAligment - The vertical alignment that will be applied to the cell contents. * @returns {boolean} - return false if sAligment doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetAlignVertical.js */ ApiRange.prototype.SetAlignVertical = function (sAligment) { switch (sAligment) { @@ -8817,6 +10068,7 @@ * @typeofeditors ["CSE"] * @param {'left' | 'right' | 'center' | 'justify'} sAlignment - The horizontal alignment that will be applied to the cell contents. * @returns {boolean} - return false if sAligment doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetAlignHorizontal.js */ ApiRange.prototype.SetAlignHorizontal = function (sAlignment) { switch (sAlignment) { @@ -8853,6 +10105,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {boolean} isBold - Specifies that the contents of the current cell / cell range are displayed bold. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetBold.js */ ApiRange.prototype.SetBold = function (isBold) { this.range.setBold(!!isBold); @@ -8868,6 +10121,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {boolean} isItalic - Specifies that the contents of the current cell / cell range are displayed italicized. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetItalic.js */ ApiRange.prototype.SetItalic = function (isItalic) { this.range.setItalic(!!isItalic); @@ -8884,11 +10138,12 @@ * @typeofeditors ["CSE"] * @param {'none' | 'single' | 'singleAccounting' | 'double' | 'doubleAccounting'} undelineType - Specifies the type of the * line displayed under the characters. The following values are available: - * * "none" - for no underlining; - * * "single" - for a single line underlining the cell contents; - * * "singleAccounting" - for a single line underlining the cell contents but not protruding beyond the cell borders; - * * "double" - for a double line underlining the cell contents; - * * "doubleAccounting" - for a double line underlining the cell contents but not protruding beyond the cell borders. + * "none" - for no underlining; + * "single" - for a single line underlining the cell contents; + * "singleAccounting" - for a single line underlining the cell contents but not protruding beyond the cell borders; + * "double" - for a double line underlining the cell contents; + * "doubleAccounting" - for a double line underlining the cell contents but not protruding beyond the cell borders. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetUnderline.js */ ApiRange.prototype.SetUnderline = function (undelineType) { var val; @@ -8923,6 +10178,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {boolean} isStrikeout - Specifies if the contents of the current cell / cell range are displayed struck through. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetStrikeout.js */ ApiRange.prototype.SetStrikeout = function (isStrikeout) { this.range.setStrikeout(!!isStrikeout); @@ -8938,6 +10194,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {boolean} isWrap - Specifies if the words in the cell will be wrapped to fit the cell size. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetWrap.js */ ApiRange.prototype.SetWrap = function (isWrap) { this.range.setWrap(!!isWrap); @@ -8948,6 +10205,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetWrapText.js */ ApiRange.prototype.GetWrapText = function () { return this.range.getAlign().getWrap(); @@ -8967,6 +10225,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {ApiColor} oColor - The color object which specifies the color to be set to the background in the cell / cell range. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetFillColor.js */ ApiRange.prototype.SetFillColor = function (oColor) { this.range.setFillColor('No Fill' === oColor ? null : oColor.color); @@ -8976,6 +10235,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {ApiColor|'No Fill'} - return 'No Fill' when the color to the background in the cell / cell range is null. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetFillColor.js */ ApiRange.prototype.GetFillColor = function () { var oColor = this.range.getFillColor(); @@ -8995,6 +10255,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {string | null} This property returns null if all cells in the specified range don't have the same number format. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetNumberFormat.js */ ApiRange.prototype.GetNumberFormat = function () { var bbox = this.range.bbox; @@ -9017,6 +10278,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {string} sFormat - Specifies the mask applied to the number in the cell. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetNumberFormat.js */ ApiRange.prototype.SetNumberFormat = function (sFormat) { this.range.setNumFormat(sFormat); @@ -9037,6 +10299,7 @@ * @param {BordersIndex} bordersIndex - Specifies the cell border position. * @param {LineStyle} lineStyle - Specifies the line style used to form the cell border. * @param {ApiColor} oColor - The color object which specifies the color to be set to the cell border. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetBorders.js */ ApiRange.prototype.SetBorders = function (bordersIndex, lineStyle, oColor) { var borders = new AscCommonExcel.Border(); @@ -9078,6 +10341,7 @@ * @typeofeditors ["CSE"] * @param {boolean} isAcross - When set to true, the cells within the selected range will be merged along the rows, * but remain split in the columns. When set to false, the whole selected range of cells will be merged into a single cell. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Merge.js */ ApiRange.prototype.Merge = function (isAcross) { if (isAcross) { @@ -9095,6 +10359,7 @@ * Splits the selected merged cell range into the single cells. * @memberof ApiRange * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/UnMerge.js */ ApiRange.prototype.UnMerge = function () { this.range.unmerge(); @@ -9124,6 +10389,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {Function} fCallback - A function which will be executed for each cell. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/ForEach.js */ ApiRange.prototype.ForEach = function (fCallback) { if (fCallback instanceof Function) { @@ -9141,6 +10407,7 @@ * @param {string} sText - The comment text. * @param {string} sAuthor - The author's name (optional). * @returns {ApiComment | null} - returns false if comment can't be added. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/AddComment.js */ ApiRange.prototype.AddComment = function (sText, sAuthor) { let result = null; @@ -9169,6 +10436,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {ApiWorksheet} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetWorksheet.js */ ApiRange.prototype.GetWorksheet = function () { return new ApiWorksheet(this.range.worksheet); @@ -9184,6 +10452,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {ApiName} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetDefName.js */ ApiRange.prototype.GetDefName = function () { var defName = this.range.worksheet.getName() + "!" + this.range.bbox.getAbsName(); @@ -9205,6 +10474,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @returns {ApiComment | null} - returns null if range does not consist of one cell. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetComment.js */ ApiRange.prototype.GetComment = function () { if (!this.range.isOneCell()) { @@ -9225,6 +10495,7 @@ * Selects the current range. * @memberof ApiRange * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Select.js */ ApiRange.prototype.Select = function () { if (this.range.worksheet.getId() === this.range.worksheet.workbook.getActiveWs().getId()) { @@ -9245,7 +10516,8 @@ * Returns the current range angle. * @memberof ApiRange * @typeofeditors ["CSE"] - * @return {Angle} + * @returns {Angle} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetOrientation.js */ ApiRange.prototype.GetOrientation = function () { return this.range.getAngle(); @@ -9256,6 +10528,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {Angle} angle - Specifies the range angle. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetOrientation.js */ ApiRange.prototype.SetOrientation = function (angle) { switch (angle) { @@ -9296,6 +10569,7 @@ * @param {SortOrder} sSortOrder3 - The sort order for the values specified in Key3. * @param {SortHeader} sHeader - Specifies whether the first row contains header information. * @param {SortOrientation} sOrientation - Specifies if the sort should be by row (default) or column. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetSort.js */ ApiRange.prototype.SetSort = function (key1, sSortOrder1, key2, /*Type,*/ sSortOrder2, key3, sSortOrder3, sHeader, /*OrderCustom, MatchCase,*/ sOrientation/*, SortMethod, DataOption1, DataOption2, DataOption3*/) { var ws = this.range.worksheet; @@ -9379,7 +10653,8 @@ * Deletes the Range object. * @memberof ApiRange * @typeofeditors ["CSE"] - * @param {?string} shift - Specifies how to shift cells to replace the deleted cells ("up", "left"). + * @param {?DeleteShiftDirection} shift - Specifies how to shift cells to replace the deleted cells. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Delete.js */ ApiRange.prototype.Delete = function (shift) { let preDeleteAction = function() { @@ -9389,7 +10664,7 @@ wsView._cleanCache(lockRange); }; let val; - let ws = this.Worksheet.worksheet; + let ws = this.GetWorksheet().worksheet; let wsView = Asc['editor'].wb.getWorksheet(ws.getIndex()); let cellCommentator = wsView.cellCommentator; let bbox = this.range.bbox; @@ -9402,7 +10677,7 @@ let cols = bbox.c2 - bbox.c1 + 1; shift = (rows <= cols) ? "up" : "left"; } - if (shift == "up") { + if (shift === "up") { val = Asc.c_oAscDeleteOptions.DeleteCellsAndShiftTop; lockRange = ws.getRange3(bbox.r1, bbox.c1, bbox.r2, AscCommon.gc_nMaxCol0); this.range.deleteCellsShiftUp(preDeleteAction); @@ -9418,6 +10693,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {?string} shift - Specifies which way to shift the cells ("right", "down"). + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Insert.js */ ApiRange.prototype.Insert = function (shift) { if (shift && shift.toLocaleLowerCase) { @@ -9440,6 +10716,7 @@ * @typeofeditors ["CSE"] * @param {?bool} bRows - Specifies if the width of the columns will be autofit. * @param {?bool} bCols - Specifies if the height of the rows will be autofit. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/AutoFit.js */ ApiRange.prototype.AutoFit = function (bRows, bCols) { var index = this.range.worksheet.getIndex(); @@ -9454,7 +10731,8 @@ * Returns a collection of the ranges. * @memberof ApiRange * @typeofeditors ["CSE"] - * @return {ApiAreas} + * @returns {ApiAreas} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetAreas.js */ ApiRange.prototype.GetAreas = function () { return new ApiAreas(this.areas || [this.range], this); @@ -9466,10 +10744,11 @@ }); /** - * Copies the range to the specified range or to the Clipboard. + * Copies the range to the specified range or to the clipboard. * @memberof ApiRange * @typeofeditors ["CSE"] - * @param {ApiRange?} [destination] - Specifies the new range to which the specified range will be copied. If this argument is omitted, Onlyoffice copies the range to the Clipboard. + * @param {ApiRange?} [destination] - Specifies the new range to which the specified range will be copied. If this argument is omitted, the range will be copied to the clipboard. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Copy.js */ ApiRange.prototype.Copy = function (destination) { var oApi = Asc["editor"]; @@ -9481,7 +10760,7 @@ let bbox = destination.range.bbox; let range = destination.range.worksheet.getRange3(bbox.r1, bbox.c1, (bbox.r1 + rows), (bbox.c1 + cols)); this.range.move(range.bbox, true, destination.range.worksheet); - AscCommon.g_clipboardBase && AscCommon.g_clipboardBase.ClearBuffer(); + //AscCommon.g_clipboardBase && AscCommon.g_clipboardBase.ClearBuffer(); } else { logError(new Error('Invalid destination')); } @@ -9495,10 +10774,12 @@ }; /** - * Cuts the range to the specified range or to the Clipboard. + * Cuts the range and save it to the clipboard or paste it to the specified range. * @memberof ApiRange * @typeofeditors ["CSE"] - * @param {ApiRange?} [destination] - Specifies the new range to which the specified range will be cuted. If this argument is omitted, Onlyoffice copies the range to the Clipboard. + * @param {ApiRange?} [destination] - Specifies the new range to which the cut range will be pasted. If this argument is omitted, the range will be copied to the clipboard. + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Cut.js */ ApiRange.prototype.Cut = function (destination) { var oApi = Asc["editor"]; @@ -9510,7 +10791,7 @@ let bbox = destination.range.bbox; let range = destination.range.worksheet.getRange3(bbox.r1, bbox.c1, (bbox.r1 + rows), (bbox.c1 + cols)); this.range.move(range.bbox, false, destination.range.worksheet); - AscCommon.g_clipboardBase && AscCommon.g_clipboardBase.ClearBuffer(); + //AscCommon.g_clipboardBase && AscCommon.g_clipboardBase.ClearBuffer(); } else { logError(new Error('Invalid destination')); } @@ -9530,6 +10811,7 @@ * @memberof ApiRange * @typeofeditors ["CSE"] * @param {ApiRange} rangeFrom - Specifies the range to be pasted to the current range + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Paste.js */ ApiRange.prototype.Paste = function (rangeFrom) { if (rangeFrom && rangeFrom instanceof ApiRange) { @@ -9545,13 +10827,15 @@ }; /** - * Pastes the Range object to the specified range. + * Pastes the Range object to the specified range using the special paste options. * @memberof ApiRange * @typeofeditors ["CSE"] - * @param {PasteType} [sPasteType="xlPasteAll"] - Type of special paste - * @param {PasteSpecialOperation} [sPasteSpecialOperation="xlPasteSpecialOperationNone"] - Operation of special paste - * @param {boolean} bSkipBlanks [bSkipBlanks=false] - Case sensitive or not. The default value is "false". - * @param {boolean} bTranspose [bTranspose=false] - Case sensitive or not. The default value is "false". + * @param {PasteType} [sPasteType="xlPasteAll"] - Paste option. + * @param {PasteSpecialOperation} [sPasteSpecialOperation="xlPasteSpecialOperationNone"] - The mathematical operation which will be applied to the copied data. + * @param {boolean} bSkipBlanks [bSkipBlanks=false] - Specifies whether to avoid replacing values in the paste area when blank cells occur in the copy area. + * @param {boolean} bTranspose [bTranspose=false] - Specifies whether the pasted data will be transposed from rows to columns. + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/PasteSpecial.js */ ApiRange.prototype.PasteSpecial = function (sPasteType, sPasteSpecialOperation, bSkipBlanks, bTranspose) { if (sPasteType && typeof sPasteType !== 'string') { @@ -9646,24 +10930,58 @@ }); }; + /** + * Returns the ApiPivotTable object that represents the pivot table report containing the upper-left corner of the specified range. + * @memberof ApiRange + * @typeofeditors ["CSE"] + * @returns {ApiPivotTable | null} + * @since 8.2.0 + * @see office-js-api/Examples/Cell/ApiRange/Methods/GetPivotTable.js + */ + ApiRange.prototype.GetPivotTable = function() { + var bbox = this.range.isOneCell() ? this.range.bbox : this.range.worksheet.getRange3(this.range.bbox.r1, this.range.bbox.c1, this.range.bbox.r1, this.range.bbox.c1).bbox; + var pivotTables = this.range.worksheet.pivotTables; + var foundTable = null; + for (var i = 0; i < pivotTables.length; i++) { + var table = pivotTables[i]; + if (table.intersection(bbox)) { + foundTable = new ApiPivotTable(table, this.range.worksheet.workbook.oApi); + break; + } + } + return foundTable; + }; + + Object.defineProperty(ApiRange.prototype, "PivotTable", { + get: function () { + return this.GetPivotTable(); + } + }); + + + /** * Search data type (formulas or values). * @typedef {("xlFormulas" | "xlValues")} XlFindLookIn + * @see office-js-api/Examples/Enumerations/XlFindLookIn.js */ /** * Specifies whether the whole search text or any part of the search text is matched. * @typedef {("xlWhole" | "xlPart")} XlLookAt + * @see office-js-api/Examples/Enumerations/XlLookAt.js */ /** * Range search order - by rows or by columns. * @typedef {("xlByRows" | "xlByColumns")} XlSearchOrder + * @see office-js-api/Examples/Enumerations/XlSearchOrder.js */ /** * Range search direction - next match or previous match. * @typedef {("xlNext" | "xlPrevious")} XlSearchDirection + * @see office-js-api/Examples/Enumerations/XlSearchDirection.js */ /** @@ -9676,6 +10994,7 @@ * @property {XlSearchOrder} SearchOrder - Range search order - by rows or by columns. * @property {XlSearchDirection} SearchDirection - Range search direction - next match or previous match. * @property {boolean} MatchCase - Case sensitive or not. The default value is "false". + * @see office-js-api/Examples/Enumerations/SearchData.js */ /** @@ -9688,6 +11007,7 @@ * @property {XlSearchDirection} SearchDirection - Range search direction - next match or previous match. * @property {boolean} MatchCase - Case sensitive or not. The default value is "false". * @property {boolean} ReplaceAll - Specifies if all the found data will be replaced or not. The default value is "true". + * @see office-js-api/Examples/Enumerations/ReplaceData.js */ /** @@ -9708,6 +11028,7 @@ * @param {XlSearchDirection} SearchDirection - Range search direction - next match or previous match. * @param {boolean} MatchCase - Case sensitive or not. The default value is "false". * @returns {ApiRange | null} - Returns null if the current range does not contain such text. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Find.js */ ApiRange.prototype.Find = function (oSearchData) { let What, After, LookIn, LookAt, SearchOrder, SearchDirection, MatchCase; @@ -9774,6 +11095,7 @@ * @param {ApiRange} After - The cell after which the search will start. If this argument is not specified, the search starts from the last cell found. * @returns {ApiRange | null} - Returns null if the range does not contain such text. * + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/FindNext.js */ ApiRange.prototype.FindNext = function (After) { if (this._searchOptions) { @@ -9814,6 +11136,7 @@ * @param {ApiRange} Before - The cell before which the search will start. If this argument is not specified, the search starts from the last cell found. * @returns {ApiRange | null} - Returns null if the range does not contain such text. * + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/FindPrevious.js */ ApiRange.prototype.FindPrevious = function (Before) { if (this._searchOptions) { @@ -9864,6 +11187,7 @@ * @param {XlSearchDirection} SearchDirection - Range search direction - next match or previous match. * @param {boolean} MatchCase - Case sensitive or not. The default value is "false". * @param {boolean} ReplaceAll - Specifies if all the found data will be replaced or not. The default value is "true". + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Replace.js */ ApiRange.prototype.Replace = function (oReplaceData) { let What, Replacement, LookAt, SearchOrder, SearchDirection, MatchCase, ReplaceAll; @@ -9930,8 +11254,9 @@ * @typeofeditors ["CSE"] * @param {number} Start - The first character to be returned. If this argument is either 1 or omitted, this property returns a range of characters starting with the first character. * @param {number} Length - The number of characters to be returned. If this argument is omitted, this property returns the remainder of the string (everything after the Start character). - * @return {ApiCharacters} + * @returns {ApiCharacters} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetCharacters.js */ ApiRange.prototype.GetCharacters = function (Start, Length) { let options = { @@ -9973,6 +11298,7 @@ * @memberof ApiDrawing * @typeofeditors ["CSE"] * @returns {"drawing"} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetClassType.js */ ApiDrawing.prototype.GetClassType = function () { return "drawing"; @@ -9984,6 +11310,7 @@ * @typeofeditors ["CSE"] * @param {EMU} nWidth - The object width measured in English measure units. * @param {EMU} nHeight - The object height measured in English measure units. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetSize.js */ ApiDrawing.prototype.SetSize = function (nWidth, nHeight) { var fWidth = nWidth / 36000.0; @@ -10006,7 +11333,8 @@ * @param {EMU} nColOffset - The offset from the nFromCol column to the left part of the drawing object measured in English measure units. * @param {number} nFromRow - The number of the row where the beginning of the drawing object will be placed. * @param {EMU} nRowOffset - The offset from the nFromRow row to the upper part of the drawing object measured in English measure units. - * */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetPosition.js + */ ApiDrawing.prototype.SetPosition = function (nFromCol, nColOffset, nFromRow, nRowOffset) { var extX = null, extY = null; if (this.Drawing.drawingBase) { @@ -10034,6 +11362,7 @@ * @memberof ApiDrawing * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {EMU} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetWidth.js */ ApiDrawing.prototype.GetWidth = function () { return private_MM2EMU(this.Drawing.GetWidth()); @@ -10043,6 +11372,7 @@ * @memberof ApiDrawing * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {EMU} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetHeight.js */ ApiDrawing.prototype.GetHeight = function () { return private_MM2EMU(this.Drawing.GetHeight()); @@ -10050,9 +11380,9 @@ /** * Returns the lock value for the specified lock type of the current drawing. * @typeofeditors ["CSE"] - * @param {"noGrp" | "noUngrp" | "noSelect" | "noRot" | "noChangeAspect" | "noMove" | "noResize" | "noEditPoints" | "noAdjustHandles" - * | "noChangeArrowheads" | "noChangeShapeType" | "noDrilldown" | "noTextEdit" | "noCrop" | "txBox"} sType - Lock type in the string format. + * @param {DrawingLockType} sType - Lock type in the string format. * @returns {bool} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetLockValue.js */ ApiDrawing.prototype.GetLockValue = function (sType) { var nLockType = private_GetDrawingLockType(sType); @@ -10069,10 +11399,10 @@ /** * Sets the lock value to the specified lock type of the current drawing. * @typeofeditors ["CSE"] - * @param {"noGrp" | "noUngrp" | "noSelect" | "noRot" | "noChangeAspect" | "noMove" | "noResize" | "noEditPoints" | "noAdjustHandles" - * | "noChangeArrowheads" | "noChangeShapeType" | "noDrilldown" | "noTextEdit" | "noCrop" | "txBox"} sType - Lock type in the string format. + * @param {DrawingLockType} sType - Lock type in the string format. * @param {bool} bValue - Specifies if the specified lock is applied to the current drawing. * @returns {bool} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetLockValue.js */ ApiDrawing.prototype.SetLockValue = function (sType, bValue) { var nLockType = private_GetDrawingLockType(sType); @@ -10101,6 +11431,7 @@ * @memberof ApiImage * @typeofeditors ["CDE", "CSE"] * @returns {"image"} + * @see office-js-api/Examples/{Editor}/ApiImage/Methods/GetClassType.js */ ApiImage.prototype.GetClassType = function () { return "image"; @@ -10117,6 +11448,7 @@ * @memberof ApiShape * @typeofeditors ["CSE"] * @returns {"shape"} + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetClassType.js */ ApiShape.prototype.GetClassType = function () { return "shape"; @@ -10127,6 +11459,7 @@ * @memberof ApiShape * @typeofeditors ["CSE"] * @returns {?ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetContent.js */ ApiShape.prototype.GetContent = function () { var oApi = Asc["editor"]; @@ -10141,6 +11474,7 @@ * @memberof ApiShape * @typeofeditors ["CSE"] * @returns {?ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetDocContent.js */ ApiShape.prototype.GetDocContent = function () { var oApi = Asc["editor"]; @@ -10156,6 +11490,7 @@ * @typeofeditors ["CSE"] * @param {"top" | "center" | "bottom" } sVerticalAlign - The vertical alignment type for the shape inner contents. * @returns {boolean} - returns false if shape or aligment doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/SetVerticalTextAlign.js */ ApiShape.prototype.SetVerticalTextAlign = function (sVerticalAlign) { if (this.Shape) { @@ -10187,281 +11522,32 @@ // //------------------------------------------------------------------------------------------------------------------ - /** - * Returns a type of the ApiChart class. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @returns {"chart"} - */ - ApiChart.prototype.GetClassType = function () { - return "chart"; - }; - - /** - * Specifies the chart title with the specified parameters. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {string} sTitle - The title which will be displayed for the current chart. - * @param {pt} nFontSize - The text size value measured in points. - * @param {?bool} bIsBold - Specifies if the chart title is written in bold font or not. - */ - ApiChart.prototype.SetTitle = function (sTitle, nFontSize, bIsBold) { - AscFormat.builder_SetChartTitle(this.Chart, sTitle, nFontSize, bIsBold); - }; - - /** - * Specifies the chart horizontal axis title. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {string} sTitle - The title which will be displayed for the horizontal axis of the current chart. - * @param {pt} nFontSize - The text size value measured in points. - * @param {?bool} bIsBold - Specifies if the horizontal axis title is written in bold font or not. - * */ - ApiChart.prototype.SetHorAxisTitle = function (sTitle, nFontSize, bIsBold) { - AscFormat.builder_SetChartHorAxisTitle(this.Chart, sTitle, nFontSize, bIsBold); - }; - - /** - * Specifies the chart vertical axis title. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {string} sTitle - The title which will be displayed for the vertical axis of the current chart. - * @param {pt} nFontSize - The text size value measured in points. - * @param {?bool} bIsBold - Specifies if the vertical axis title is written in bold font or not. - * */ - ApiChart.prototype.SetVerAxisTitle = function (sTitle, nFontSize, bIsBold) { - AscFormat.builder_SetChartVertAxisTitle(this.Chart, sTitle, nFontSize, bIsBold); - }; - - - /** - * Specifies the direction of the data displayed on the vertical axis. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {boolean} bIsMinMax - The true value sets the normal data direction for the vertical axis (from minimum to maximum). - * The false value sets the inverted data direction for the vertical axis (from maximum to minimum). - * */ - ApiChart.prototype.SetVerAxisOrientation = function (bIsMinMax) { - AscFormat.builder_SetChartVertAxisOrientation(this.Chart, bIsMinMax); - }; - - - /** - * Specifies the major tick mark for the horizontal axis. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ - ApiChart.prototype.SetHorAxisMajorTickMark = function (sTickMark) { - AscFormat.builder_SetChartHorAxisMajorTickMark(this.Chart, sTickMark); - }; - - /** - * Specifies the minor tick mark for the horizontal axis. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ - ApiChart.prototype.SetHorAxisMinorTickMark = function (sTickMark) { - AscFormat.builder_SetChartHorAxisMinorTickMark(this.Chart, sTickMark); - }; - - /** - * Specifies the major tick mark for the vertical axis. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ - ApiChart.prototype.SetVertAxisMajorTickMark = function (sTickMark) { - AscFormat.builder_SetChartVerAxisMajorTickMark(this.Chart, sTickMark); - }; - - /** - * Specifies the minor tick mark for the vertical axis. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ - ApiChart.prototype.SetVertAxisMinorTickMark = function (sTickMark) { - AscFormat.builder_SetChartVerAxisMinorTickMark(this.Chart, sTickMark); - }; - - /** - * Specifies the direction of the data displayed on the horizontal axis. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {boolean} bIsMinMax - The true value sets the normal data direction for the horizontal axis - * (from minimum to maximum). The false value sets the inverted data direction for the horizontal axis (from maximum to minimum). - * */ - ApiChart.prototype.SetHorAxisOrientation = function (bIsMinMax) { - AscFormat.builder_SetChartHorAxisOrientation(this.Chart, bIsMinMax); - }; - - /** - * Specifies the chart legend position. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {"left" | "top" | "right" | "bottom" | "none"} sLegendPos - The position of the chart legend inside the chart window. - * */ - ApiChart.prototype.SetLegendPos = function (sLegendPos) { - if (sLegendPos === "left" || sLegendPos === "top" || sLegendPos === "right" || sLegendPos === "bottom" || sLegendPos === "none") - AscFormat.builder_SetChartLegendPos(this.Chart, sLegendPos); - else - AscFormat.builder_SetChartLegendPos(this.Chart, "none"); - }; - - /** - * Specifies the legend font size. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {pt} nFontSize - The text size value measured in points. - * */ - ApiChart.prototype.SetLegendFontSize = function (nFontSize) { - AscFormat.builder_SetLegendFontSize(this.Chart, nFontSize); - }; - - /** - * Specifies which chart data labels are shown for the chart. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {boolean} bShowSerName - Whether to show or hide the source table column names used for the data which the chart will be build from. - * @param {boolean} bShowCatName - Whether to show or hide the source table row names used for the data which the chart will be build from. - * @param {boolean} bShowVal - Whether to show or hide the chart data values. - * @param {boolean} bShowPercent - Whether to show or hide the percent for the data values (works with stacked chart types). - * */ - ApiChart.prototype.SetShowDataLabels = function (bShowSerName, bShowCatName, bShowVal, bShowPercent) { - AscFormat.builder_SetShowDataLabels(this.Chart, bShowSerName, bShowCatName, bShowVal, bShowPercent); - }; - - /** - * Spicifies the show options for the data labels. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {number} nSeriesIndex - The series index from the array of the data used to build the chart from. - * @param {number} nPointIndex - The point index from this series. - * @param {boolean} bShowSerName - Whether to show or hide the source table column names used for the data which the chart will be build from. - * @param {boolean} bShowCatName - Whether to show or hide the source table row names used for the data which the chart will be build from. - * @param {boolean} bShowVal - Whether to show or hide the chart data values. - * @param {boolean} bShowPercent - Whether to show or hide the percent for the data values (works with stacked chart types). - * */ - ApiChart.prototype.SetShowPointDataLabel = function (nSeriesIndex, nPointIndex, bShowSerName, bShowCatName, bShowVal, bShowPercent) { - AscFormat.builder_SetShowPointDataLabel(this.Chart, nSeriesIndex, nPointIndex, bShowSerName, bShowCatName, bShowVal, bShowPercent); - }; - - /** - * Sets the possible values for the position of the chart tick labels in relation to the main vertical label or the chart data values. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {TickLabelPosition} sTickLabelPosition - The type for the position of chart vertical tick labels. - * */ - ApiChart.prototype.SetVertAxisTickLabelPosition = function (sTickLabelPosition) { - AscFormat.builder_SetChartVertAxisTickLablePosition(this.Chart, sTickLabelPosition); - }; - /** - * Sets the possible values for the position of the chart tick labels in relation to the main horizontal label or the chart data values. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {TickLabelPosition} sTickLabelPosition - The type for the position of chart horizontal tick labels. - * */ - ApiChart.prototype.SetHorAxisTickLabelPosition = function (sTickLabelPosition) { - AscFormat.builder_SetChartHorAxisTickLablePosition(this.Chart, sTickLabelPosition); - }; - /** - * Specifies the visual properties of the major vertical gridline. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ - ApiChart.prototype.SetMajorVerticalGridlines = function (oStroke) { - AscFormat.builder_SetVerAxisMajorGridlines(this.Chart, oStroke ? oStroke.Ln : null); - }; - /** - * Specifies the visual properties of the minor vertical gridline. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ - ApiChart.prototype.SetMinorVerticalGridlines = function (oStroke) { - AscFormat.builder_SetVerAxisMinorGridlines(this.Chart, oStroke ? oStroke.Ln : null); - }; - /** - * Specifies the visual properties of the major horizontal gridline. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ - ApiChart.prototype.SetMajorHorizontalGridlines = function (oStroke) { - AscFormat.builder_SetHorAxisMajorGridlines(this.Chart, oStroke ? oStroke.Ln : null); - }; - /** - * Specifies the visual properties of the minor vertical gridline. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - */ - ApiChart.prototype.SetMinorHorizontalGridlines = function (oStroke) { - AscFormat.builder_SetHorAxisMinorGridlines(this.Chart, oStroke ? oStroke.Ln : null); - }; - /** - * Specifies the font size to the horizontal axis labels. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {pt} nFontSize - The text size value measured in points. - */ - ApiChart.prototype.SetHorAxisLablesFontSize = function (nFontSize) { - AscFormat.builder_SetHorAxisFontSize(this.Chart, nFontSize); - }; - /** - * Specifies the font size to the vertical axis labels. - * @memberof ApiChart - * @typeofeditors ["CSE"] - * @param {pt} nFontSize - The text size value measured in points. - */ - ApiChart.prototype.SetVertAxisLablesFontSize = function (nFontSize) { - AscFormat.builder_SetVerAxisFontSize(this.Chart, nFontSize); - }; - /** - * Sets a style to the current chart by style ID. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param nStyleId - One of the styles available in the editor. - * @returns {boolean} - */ - ApiChart.prototype.ApplyChartStyle = function (nStyleId) { - if (typeof (nStyleId) !== "number" || nStyleId < 0) - return false; - var nChartType = this.Chart.getChartType(); - var aStyle = AscCommon.g_oChartStyles[nChartType] && AscCommon.g_oChartStyles[nChartType][nStyleId]; - if (aStyle) { - this.Chart.applyChartStyleByIds(aStyle); - return true; - } - return false; - }; + let ApiChart = AscBuilder.ApiChart; /** * Sets values from the specified range to the specified series. * @memberof ApiChart * @typeofeditors ["CSE"] * @param {string} sRange - A range of cells from the sheet with series values. For example: - * * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, - * * "A1:A5" - must be a single cell, row or column, - * * "Example series". + * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, + * "A1:A5" - must be a single cell, row or column, + * "Example series". * @param {number} nSeria - The index of the chart series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetSeriaValues.js */ ApiChart.prototype.SetSeriaValues = function (sRange, nSeria) { return this.Chart.SetSeriaValues(sRange, nSeria); @@ -10472,11 +11558,12 @@ * @memberof ApiChart * @typeofeditors ["CSE"] * @param {string} sRange - A range of cells from the sheet with series x-axis values. For example: - * * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, - * * "A1:A5" - must be a single cell, row or column, - * * "Example series". + * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, + * "A1:A5" - must be a single cell, row or column, + * "Example series". * @param {number} nSeria - The index of the chart series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetSeriaXValues.js */ ApiChart.prototype.SetSeriaXValues = function (sRange, nSeria) { return this.Chart.SetSeriaXValues(sRange, nSeria); @@ -10487,11 +11574,12 @@ * @memberof ApiChart * @typeofeditors ["CSE"] * @param {string} sNameRange - The series name. Can be a range of cells or usual text. For example: - * * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, - * * "A1:A5" - must be a single cell, row or column, - * * "Example series". + * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, + * "A1:A5" - must be a single cell, row or column, + * "Example series". * @param {number} nSeria - The index of the chart series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetSeriaName.js */ ApiChart.prototype.SetSeriaName = function (sNameRange, nSeria) { return this.Chart.SetSeriaName(sNameRange, nSeria); @@ -10502,8 +11590,9 @@ * @memberof ApiChart * @typeofeditors ["CSE"] * @param {string} sRange - A range of cells from the sheet with the category names. For example: - * * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, - * * "A1:A5" - must be a single cell, row or column. + * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, + * "A1:A5" - must be a single cell, row or column. + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetCatFormula.js */ ApiChart.prototype.SetCatFormula = function (sRange) { return this.Chart.SetCatFormula(sRange); @@ -10514,15 +11603,16 @@ * @memberof ApiChart * @typeofeditors ["CSE"] * @param {string} sNameRange - The series name. Can be a range of cells or usual text. For example: - * * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, - * * "A1:A5" - must be a single cell, row or column, - * * "Example series". + * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, + * "A1:A5" - must be a single cell, row or column, + * "Example series". * @param {string} sValuesRange - A range of cells from the sheet with series values. For example: - * * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, - * * "A1:A5" - must be a single cell, row or column. + * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, + * "A1:A5" - must be a single cell, row or column. * @param {string} [sXValuesRange=undefined] - A range of cells from the sheet with series x-axis values. It is used with the scatter charts only. For example: - * * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, - * * "A1:A5" - must be a single cell, row or column. + * "'sheet 1'!$A$2:$A$5" - must be a single cell, row or column, + * "A1:A5" - must be a single cell, row or column. + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/AddSeria.js */ ApiChart.prototype.AddSeria = function (sNameRange, sValuesRange, sXValuesRange) { if (this.Chart.isScatterChartType() && typeof (sXValuesRange) === "string" && sXValuesRange !== "") { @@ -10531,303 +11621,86 @@ this.Chart.addSeries(sNameRange, sValuesRange); }; - /** - * Removes the specified series from the current chart. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {number} nSeria - The index of the chart series. - * @returns {boolean} - */ - ApiChart.prototype.RemoveSeria = function (nSeria) { - return this.Chart.RemoveSeria(nSeria); - }; + + + + + + //------------------------------------------------------------------------------------------------------------------ + // + // ApiOleObject + // + //------------------------------------------------------------------------------------------------------------------ /** - * Sets the fill to the chart plot area. - * @memberof ApiChart + * Returns a type of the ApiOleObject class. + * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the plot area. - * @returns {boolean} + * @returns {"oleObject"} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetClassType.js */ - ApiChart.prototype.SetPlotAreaFill = function (oFill) { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - this.Chart.SetPlotAreaFill(oFill.UniFill); - return true; + ApiOleObject.prototype.GetClassType = function () { + return "oleObject"; }; /** - * Sets the outline to the chart plot area. - * @memberof ApiChart + * Sets the data to the current OLE object. + * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the plot area outline. + * @param {string} sData - The OLE object string data. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/SetData.js */ - ApiChart.prototype.SetPlotAreaOutLine = function (oStroke) { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") + ApiOleObject.prototype.SetData = function (sData) { + if (typeof (sData) !== "string" || sData === "") return false; - this.Chart.SetPlotAreaOutLine(oStroke.Ln); + this.Drawing.setData(sData); return true; }; /** - * Sets the fill to the specified chart series. - * @memberof ApiChart + * Returns the string data from the current OLE object. + * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the series. - * @param {number} nSeries - The index of the chart series. - * @param {boolean} [bAll=false] - Specifies if the fill will be applied to all series. - * @returns {boolean} + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetData.js */ - ApiChart.prototype.SetSeriesFill = function (oFill, nSeries, bAll) { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; + ApiOleObject.prototype.GetData = function () { + if (typeof (this.Drawing.m_sData) === "string") + return this.Drawing.m_sData; - return this.Chart.SetSeriesFill(oFill.UniFill, nSeries, bAll); + return ""; }; /** - * Sets the outline to the specified chart series. - * @memberof ApiChart + * Sets the application ID to the current OLE object. + * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the series outline. - * @param {number} nSeries - The index of the chart series. - * @param {boolean} [bAll=false] - Specifies if the outline will be applied to all series. + * @param {string} sAppId - The application ID associated with the current OLE object. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/SetApplicationId.js */ - ApiChart.prototype.SetSeriesOutLine = function (oStroke, nSeries, bAll) { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") + ApiOleObject.prototype.SetApplicationId = function (sAppId) { + if (typeof (sAppId) !== "string" || sAppId === "") return false; - return this.Chart.SetSeriesOutLine(oStroke.Ln, nSeries, bAll); + this.Drawing.setApplicationId(sAppId); + return true; }; /** - * Sets the fill to the data point in the specified chart series. - * @memberof ApiChart + * Returns the application ID from the current OLE object. + * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the data point. - * @param {number} nSeries - The index of the chart series. - * @param {number} nDataPoint - The index of the data point in the specified chart series. - * @param {boolean} [bAllSeries=false] - Specifies if the fill will be applied to the specified data point in all series. - * @returns {boolean} + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetApplicationId.js */ - ApiChart.prototype.SetDataPointFill = function (oFill, nSeries, nDataPoint, bAllSeries) { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; + ApiOleObject.prototype.GetApplicationId = function () { + if (typeof (this.Drawing.m_sApplicationId) === "string") + return this.Drawing.m_sApplicationId; - return this.Chart.SetDataPointFill(oFill.UniFill, nSeries, nDataPoint, bAllSeries); - }; - - /** - * Sets the outline to the data point in the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the data point outline. - * @param {number} nSeries - The index of the chart series. - * @param {number} nDataPoint - The index of the data point in the specified chart series. - * @param {boolean} bAllSeries - Specifies if the outline will be applied to the specified data point in all series. - * @returns {boolean} - */ - ApiChart.prototype.SetDataPointOutLine = function (oStroke, nSeries, nDataPoint, bAllSeries) { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetDataPointOutLine(oStroke.Ln, nSeries, nDataPoint, bAllSeries); - }; - - /** - * Sets the fill to the marker in the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the marker. - * @param {number} nSeries - The index of the chart series. - * @param {number} nMarker - The index of the marker in the specified chart series. - * @param {boolean} [bAllMarkers=false] - Specifies if the fill will be applied to all markers in the specified chart series. - * @returns {boolean} - */ - ApiChart.prototype.SetMarkerFill = function (oFill, nSeries, nMarker, bAllMarkers) { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - return this.Chart.SetMarkerFill(oFill.UniFill, nSeries, nMarker, bAllMarkers); - }; - - /** - * Sets the outline to the marker in the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the marker outline. - * @param {number} nSeries - The index of the chart series. - * @param {number} nMarker - The index of the marker in the specified chart series. - * @param {boolean} [bAllMarkers=false] - Specifies if the outline will be applied to all markers in the specified chart series. - * @returns {boolean} - */ - ApiChart.prototype.SetMarkerOutLine = function (oStroke, nSeries, nMarker, bAllMarkers) { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetMarkerOutLine(oStroke.Ln, nSeries, nMarker, bAllMarkers); - }; - - /** - * Sets the fill to the chart title. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the title. - * @returns {boolean} - */ - ApiChart.prototype.SetTitleFill = function (oFill) { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - return this.Chart.SetTitleFill(oFill.UniFill); - }; - - /** - * Sets the outline to the chart title. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the title outline. - * @returns {boolean} - */ - ApiChart.prototype.SetTitleOutLine = function (oStroke) { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetTitleOutLine(oStroke.Ln); - }; - - /** - * Sets the fill to the chart legend. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the legend. - * @returns {boolean} - */ - ApiChart.prototype.SetLegendFill = function (oFill) { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - return this.Chart.SetLegendFill(oFill.UniFill); - }; - - /** - * Sets the outline to the chart legend. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the legend outline. - * @returns {boolean} - */ - ApiChart.prototype.SetLegendOutLine = function (oStroke) { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetLegendOutLine(oStroke.Ln); - }; - - /** - * Sets the specified numeric format to the axis values. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {NumFormat | String} sFormat - Numeric format (can be custom format). - * @param {AxisPos} - Axis position. - * @returns {boolean} - */ - ApiChart.prototype.SetAxieNumFormat = function (sFormat, sAxiePos) { - var nAxiePos = -1; - switch (sAxiePos) { - case "bottom": - nAxiePos = AscFormat.AX_POS_B; - break; - case "left": - nAxiePos = AscFormat.AX_POS_L; - break; - case "right": - nAxiePos = AscFormat.AX_POS_R; - break; - case "top": - nAxiePos = AscFormat.AX_POS_T; - break; - default: - return false; - } - - return this.Chart.SetAxieNumFormat(sFormat, nAxiePos); - }; - - //------------------------------------------------------------------------------------------------------------------ - // - // ApiOleObject - // - //------------------------------------------------------------------------------------------------------------------ - - /** - * Returns a type of the ApiOleObject class. - * @memberof ApiOleObject - * @typeofeditors ["CDE", "CPE", "CSE"] - * @returns {"oleObject"} - */ - ApiOleObject.prototype.GetClassType = function () { - return "oleObject"; - }; - - /** - * Sets the data to the current OLE object. - * @memberof ApiOleObject - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {string} sData - The OLE object string data. - * @returns {boolean} - */ - ApiOleObject.prototype.SetData = function (sData) { - if (typeof (sData) !== "string" || sData === "") - return false; - - this.Drawing.setData(sData); - return true; - }; - - /** - * Returns the string data from the current OLE object. - * @memberof ApiOleObject - * @typeofeditors ["CDE", "CPE", "CSE"] - * @returns {string} - */ - ApiOleObject.prototype.GetData = function () { - if (typeof (this.Drawing.m_sData) === "string") - return this.Drawing.m_sData; - - return ""; - }; - - /** - * Sets the application ID to the current OLE object. - * @memberof ApiOleObject - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {string} sAppId - The application ID associated with the current OLE object. - * @returns {boolean} - */ - ApiOleObject.prototype.SetApplicationId = function (sAppId) { - if (typeof (sAppId) !== "string" || sAppId === "") - return false; - - this.Drawing.setApplicationId(sAppId); - return true; - }; - - /** - * Returns the application ID from the current OLE object. - * @memberof ApiOleObject - * @typeofeditors ["CDE", "CPE", "CSE"] - * @returns {string} - */ - ApiOleObject.prototype.GetApplicationId = function () { - if (typeof (this.Drawing.m_sApplicationId) === "string") - return this.Drawing.m_sApplicationId; - - return ""; + return ""; }; //------------------------------------------------------------------------------------------------------------------ @@ -10841,6 +11714,7 @@ * @memberof ApiColor * @typeofeditors ["CSE"] * @returns {"color"} + * @see office-js-api/Examples/{Editor}/ApiColor/Methods/GetClassType.js */ ApiColor.prototype.GetClassType = function () { return "color"; @@ -10857,6 +11731,7 @@ * @memberof ApiName * @typeofeditors ["CSE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiName/Methods/GetName.js */ ApiName.prototype.GetName = function () { if (this.DefName) { @@ -10872,6 +11747,7 @@ * @typeofeditors ["CSE"] * @param {string} sName - New name for the range. * @returns {boolean} - returns false if sName is invalid. + * @see office-js-api/Examples/{Editor}/ApiName/Methods/SetName.js */ ApiName.prototype.SetName = function (sName) { if (!sName || typeof sName !== 'string' || !this.DefName) { @@ -10904,6 +11780,7 @@ * Deletes the DefName object. * @memberof ApiName * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/ApiName/Methods/Delete.js */ ApiName.prototype.Delete = function () { this.DefName.wb.delDefinesNames(this.DefName.getAscCDefName(false)); @@ -10915,6 +11792,7 @@ * @typeofeditors ["CSE"] * @param {string} sRef - The range reference which must contain the sheet name, followed by sign ! and a range of cells. * Example: "Sheet1!$A$1:$B$2". + * @see office-js-api/Examples/{Editor}/ApiName/Methods/SetRefersTo.js */ ApiName.prototype.SetRefersTo = function (sRef) { this.DefName.setRef(sRef); @@ -10925,6 +11803,7 @@ * @memberof ApiName * @typeofeditors ["CSE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiName/Methods/GetRefersTo.js */ ApiName.prototype.GetRefersTo = function () { return (this.DefName) ? this.DefName.ref : this.DefName; @@ -10944,6 +11823,7 @@ * @memberof ApiName * @typeofeditors ["CSE"] * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiName/Methods/GetRefersToRange.js */ ApiName.prototype.GetRefersToRange = function () { var range; @@ -10970,6 +11850,7 @@ * @memberof ApiComment * @typeofeditors ["CSE"] * @returns {"comment"} + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetClassType.js */ ApiComment.prototype.GetClassType = function () { return "comment"; @@ -10980,6 +11861,7 @@ * @memberof ApiComment * @typeofeditors ["CSE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetText.js */ ApiComment.prototype.GetText = function () { return this.Comment.asc_getText(); @@ -10991,6 +11873,7 @@ * @typeofeditors ["CSE"] * @param {string} text - New text for comment. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/SetText.js */ ApiComment.prototype.SetText = function (text) { if (typeof text === 'string' && text.trim() !== '') { @@ -11014,6 +11897,7 @@ * @typeofeditors ["CSE"] * @returns {string} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetId.js */ ApiComment.prototype.GetId = function () { return this.Comment.asc_getId(); @@ -11031,6 +11915,7 @@ * @typeofeditors ["CSE"] * @returns {string} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetAuthorName.js */ ApiComment.prototype.GetAuthorName = function () { return this.Comment.asc_getUserName(); @@ -11042,6 +11927,7 @@ * @typeofeditors ["CSE"] * @param {string} sAuthorName - The comment author's name. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/SetAuthorName.js */ ApiComment.prototype.SetAuthorName = function (sAuthorName) { this.Comment.asc_putUserName(sAuthorName); @@ -11063,6 +11949,7 @@ * @typeofeditors ["CSE"] * @returns {string} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetUserId.js */ ApiComment.prototype.GetUserId = function () { return this.Comment.asc_getUserId(); @@ -11074,6 +11961,7 @@ * @typeofeditors ["CSE"] * @param {string} sUserId - The user ID of the comment author. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/SetUserId.js */ ApiComment.prototype.SetUserId = function (sUserId) { this.Comment.asc_putUserId(sUserId); @@ -11095,6 +11983,7 @@ * @typeofeditors ["CSE"] * @returns {boolean} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/IsSolved.js */ ApiComment.prototype.IsSolved = function () { return this.Comment.getSolved(); @@ -11106,6 +11995,7 @@ * @typeofeditors ["CSE"] * @param {boolean} bSolved - Specifies if a comment is solved or not. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/SetSolved.js */ ApiComment.prototype.SetSolved = function (bSolved) { this.Comment.setSolved(bSolved); @@ -11127,6 +12017,7 @@ * @typeofeditors ["CSE"] * @returns {Number} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetTimeUTC.js */ ApiComment.prototype.GetTimeUTC = function () { let nTime = parseInt(this.Comment.asc_getOnlyOfficeTime()); @@ -11141,6 +12032,7 @@ * @typeofeditors ["CSE"] * @param {Number | String} nTimeStamp - The timestamp of the comment creation in UTC format. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/SetTimeUTC.js */ ApiComment.prototype.SetTimeUTC = function (timeStamp) { let nTime = parseInt(timeStamp); @@ -11167,6 +12059,7 @@ * @typeofeditors ["CSE"] * @returns {Number} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetTime.js */ ApiComment.prototype.GetTime = function () { let nTime = parseInt(this.Comment.asc_getTime()); @@ -11181,6 +12074,7 @@ * @typeofeditors ["CSE"] * @param {Number | String} nTimeStamp - The timestamp of the comment creation in the current time zone format. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/SetTime.js */ ApiComment.prototype.SetTime = function (timeStamp) { let nTime = parseInt(timeStamp); @@ -11207,6 +12101,7 @@ * @typeofeditors ["CSE"] * @returns {String | null} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetQuoteText.js */ ApiComment.prototype.GetQuoteText = function () { let text = null; @@ -11229,6 +12124,7 @@ * @typeofeditors ["CSE"] * @returns {Number?} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetRepliesCount.js */ ApiComment.prototype.GetRepliesCount = function () { return this.Comment.asc_getRepliesCount() @@ -11247,6 +12143,7 @@ * @param {Number} [nIndex = 0] - The comment reply index. * @returns {ApiCommentReply?} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/GetReply.js */ ApiComment.prototype.GetReply = function (nIndex) { if (typeof (nIndex) != "number" || nIndex < 0 || nIndex >= this.GetRepliesCount()) @@ -11268,6 +12165,7 @@ * @param {String} sUserId - The user ID of the comment reply author (optional). * @param {Number} [nPos=this.GetRepliesCount()] - The comment reply position. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/AddReply.js */ ApiComment.prototype.AddReply = function (sText, sAuthorName, sUserId, nPos) { if (typeof (sText) !== "string" || sText.trim() === "") @@ -11297,6 +12195,7 @@ * @param {Number} [nCount = 1] - A number of comment replies to remove. * @param {boolean} [bRemoveAll = false] - Specifies whether to remove all comment replies or not. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/RemoveReplies.js */ ApiComment.prototype.RemoveReplies = function (nPos, nCount, bRemoveAll) { if (typeof (nPos) !== "number" || nPos < 0 || nPos > this.GetRepliesCount()) @@ -11321,6 +12220,7 @@ * Deletes the ApiComment object. * @memberof ApiComment * @typeofeditors ["CSE"] + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/Delete.js */ ApiComment.prototype.Delete = function () { this.WB.Api.asc_removeComment(this.Comment.asc_getId()); @@ -11343,6 +12243,7 @@ * @typeofeditors ["CSE"] * @returns {"commentReply"} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetClassType.js */ ApiCommentReply.prototype.GetClassType = function () { return "commentReply"; @@ -11354,6 +12255,7 @@ * @typeofeditors ["CSE"] * @returns {string} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetText.js */ ApiCommentReply.prototype.GetText = function () { return this.Data.asc_getText(); @@ -11365,6 +12267,7 @@ * @typeofeditors ["CSE"] * @param {string} sText - The comment reply text. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/SetText.js */ ApiCommentReply.prototype.SetText = function (sText) { this.Data.asc_putText(sText); @@ -11386,6 +12289,7 @@ * @typeofeditors ["CSE"] * @returns {string} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetAuthorName.js */ ApiCommentReply.prototype.GetAuthorName = function () { return this.Data.asc_getUserName(); @@ -11397,6 +12301,7 @@ * @typeofeditors ["CSE"] * @param {string} sAuthorName - The comment reply author's name. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/SetAuthorName.js */ ApiCommentReply.prototype.SetAuthorName = function (sAuthorName) { this.Data.asc_putUserName(sAuthorName); @@ -11418,6 +12323,7 @@ * @typeofeditors ["CSE"] * @returns {string} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetUserId.js */ ApiCommentReply.prototype.GetUserId = function () { return this.Data.asc_getUserId(); @@ -11429,6 +12335,7 @@ * @typeofeditors ["CSE"] * @param {string} sUserId - The user ID of the comment reply author. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/SetUserId.js */ ApiCommentReply.prototype.SetUserId = function (sUserId) { this.Data.asc_putUserId(sUserId); @@ -11450,6 +12357,7 @@ * @typeofeditors ["CSE"] * @returns {Number} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetTimeUTC.js */ ApiCommentReply.prototype.GetTimeUTC = function () { let nTime = parseInt(this.Data.asc_getOnlyOfficeTime()); @@ -11464,6 +12372,7 @@ * @typeofeditors ["CSE"] * @param {Number | String} nTimeStamp - The timestamp of the comment reply creation in UTC format. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/SetTimeUTC.js */ ApiCommentReply.prototype.SetTimeUTC = function (timeStamp) { let nTime = parseInt(timeStamp); @@ -11490,6 +12399,7 @@ * @typeofeditors ["CSE"] * @returns {Number} * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetTime.js */ ApiCommentReply.prototype.GetTime = function () { let nTime = parseInt(this.Data.asc_getTime()); @@ -11504,6 +12414,7 @@ * @typeofeditors ["CSE"] * @param {Number | String} nTimeStamp - The timestamp of the comment reply creation in the current time zone format. * @since 7.5.0 + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/SetTime.js */ ApiCommentReply.prototype.SetTime = function (timeStamp) { let nTime = parseInt(timeStamp); @@ -11539,6 +12450,7 @@ * @memberof ApiAreas * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiAreas/Methods/GetCount.js */ ApiAreas.prototype.GetCount = function () { return this.Items.length; @@ -11556,6 +12468,7 @@ * @typeofeditors ["CSE"] * @param {number} ind - The index number of the object. * @returns {ApiRange} + * @see office-js-api/Examples/{Editor}/ApiAreas/Methods/GetItem.js */ ApiAreas.prototype.GetItem = function (ind) { return this.Items[ind - 1] || null; @@ -11566,6 +12479,7 @@ * @memberof ApiAreas * @typeofeditors ["CSE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiAreas/Methods/GetParent.js */ ApiAreas.prototype.GetParent = function () { return this._parent; @@ -11589,6 +12503,7 @@ * @typeofeditors ["CSE"] * @returns {number} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/GetCount.js */ ApiCharacters.prototype.GetCount = function () { return this._options.length < 0 ? 0 : this._options.length; @@ -11606,6 +12521,7 @@ * @typeofeditors ["CSE"] * @returns {ApiRange} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/GetParent.js */ ApiCharacters.prototype.GetParent = function () { return this._parent; @@ -11622,6 +12538,7 @@ * @memberof ApiCharacters * @typeofeditors ["CSE"] * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/Delete.js */ ApiCharacters.prototype.Delete = function () { if (this._options.start <= this._options.len) { @@ -11659,6 +12576,7 @@ * @typeofeditors ["CSE"] * @param {string} String - The string to insert. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/Insert.js */ ApiCharacters.prototype.Insert = function (String) { this.Delete(); @@ -11721,6 +12639,7 @@ * @typeofeditors ["CSE"] * @param {string} Caption - A string value that represents the text of the specified range of characters. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/SetCaption.js */ ApiCharacters.prototype.SetCaption = function (Caption) { this.Insert(Caption); @@ -11732,6 +12651,7 @@ * @typeofeditors ["CSE"] * @returns {string} - A string value that represents the text of the specified range of characters. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/GetCaption.js */ ApiCharacters.prototype.GetCaption = function () { let value = this._parent.range.getValue(); @@ -11756,6 +12676,7 @@ * @typeofeditors ["CSE"] * @param {string} Text - The text to be set. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/SetText.js */ ApiCharacters.prototype.SetText = function (Text) { this.Insert(Text) @@ -11767,6 +12688,7 @@ * @typeofeditors ["CSE"] * @returns {string} - The text of the specified range of characters. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/GetText.js */ ApiCharacters.prototype.GetText = function () { return this.GetCaption(); @@ -11787,6 +12709,7 @@ * @typeofeditors ["CSE"] * @returns {ApiFont} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiCharacters/Methods/GetFont.js */ ApiCharacters.prototype.GetFont = function () { return new ApiFont(this); @@ -11811,6 +12734,7 @@ * @typeofeditors ["CSE"] * @returns {ApiCharacters} - The parent ApiCharacters object. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetParent.js */ ApiFont.prototype.GetParent = function () { return this._object; @@ -11828,6 +12752,7 @@ * @typeofeditors ["CSE"] * @returns {boolean | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetBold.js */ ApiFont.prototype.GetBold = function () { if (this._object instanceof ApiCharacters) { @@ -11861,6 +12786,7 @@ * @typeofeditors ["CSE"] * @param {boolean} isBold - Specifies that the text characters are displayed bold. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetBold.js */ ApiFont.prototype.SetBold = function (isBold) { if (typeof isBold !== 'boolean') { @@ -11909,6 +12835,7 @@ * @typeofeditors ["CSE"] * @returns {boolean | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetItalic.js */ ApiFont.prototype.GetItalic = function () { if (this._object instanceof ApiCharacters) { @@ -11942,6 +12869,7 @@ * @typeofeditors ["CSE"] * @param {boolean} isItalic - Specifies that the text characters are displayed italic. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetItalic.js */ ApiFont.prototype.SetItalic = function (isItalic) { if (typeof isItalic !== 'boolean') { @@ -11990,6 +12918,7 @@ * @typeofeditors ["CSE"] * @returns {number | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetSize.js */ ApiFont.prototype.GetSize = function () { if (this._object instanceof ApiCharacters) { @@ -12023,6 +12952,7 @@ * @typeofeditors ["CSE"] * @param {number} Size - Font size. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetSize.js */ ApiFont.prototype.SetSize = function (Size) { if (typeof Size !== 'number' || Size < 0 || Size > 409) { @@ -12071,6 +13001,7 @@ * @typeofeditors ["CSE"] * @returns {boolean | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetStrikethrough.js */ ApiFont.prototype.GetStrikethrough = function () { if (this._object instanceof ApiCharacters) { @@ -12104,6 +13035,7 @@ * @typeofeditors ["CSE"] * @param {boolean} isStrikethrough - Specifies that the text characters are displayed strikethrough. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetStrikethrough.js */ ApiFont.prototype.SetStrikethrough = function (isStrikethrough) { if (typeof isStrikethrough !== 'boolean') { @@ -12149,6 +13081,7 @@ /** * Underline type. * @typedef {("xlUnderlineStyleDouble" | "xlUnderlineStyleDoubleAccounting" | "xlUnderlineStyleNone" | "xlUnderlineStyleSingle" | "xlUnderlineStyleSingleAccounting")} XlUnderlineStyle + * @see office-js-api/Examples/Enumerations/XlUnderlineStyle.js */ /** @@ -12157,6 +13090,7 @@ * @typeofeditors ["CSE"] * @returns {XlUnderlineStyle | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetUnderline.js */ ApiFont.prototype.GetUnderline = function () { if (this._object instanceof ApiCharacters) { @@ -12216,6 +13150,7 @@ * @typeofeditors ["CSE"] * @param {XlUnderlineStyle} Underline - Underline type. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetUnderline.js */ ApiFont.prototype.SetUnderline = function (Underline) { if (typeof Underline !== 'string') { @@ -12289,6 +13224,7 @@ * @typeofeditors ["CSE"] * @returns {boolean | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetSubscript.js */ ApiFont.prototype.GetSubscript = function () { if (this._object instanceof ApiCharacters) { @@ -12322,6 +13258,7 @@ * @typeofeditors ["CSE"] * @param {boolean} isSubscript - Specifies that the text characters are displayed subscript. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetSubscript.js */ ApiFont.prototype.SetSubscript = function (isSubscript) { if (typeof isSubscript !== 'boolean') { @@ -12370,6 +13307,7 @@ * @typeofeditors ["CSE"] * @returns {boolean | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetSuperscript.js */ ApiFont.prototype.GetSuperscript = function () { if (this._object instanceof ApiCharacters) { @@ -12403,6 +13341,7 @@ * @typeofeditors ["CSE"] * @param {boolean} isSuperscript - Specifies that the text characters are displayed superscript. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetSuperscript.js */ ApiFont.prototype.SetSuperscript = function (isSuperscript) { if (typeof isSuperscript !== 'boolean') { @@ -12451,6 +13390,7 @@ * @typeofeditors ["CSE"] * @returns {string | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetName.js */ ApiFont.prototype.GetName = function () { if (this._object instanceof ApiCharacters) { @@ -12484,6 +13424,7 @@ * @typeofeditors ["CSE"] * @param {string} FontName - Font name. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetName.js */ ApiFont.prototype.SetName = function (FontName) { if (typeof FontName !== 'string') { @@ -12533,6 +13474,7 @@ * @typeofeditors ["CSE"] * @returns {ApiColor | null} * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/GetColor.js */ ApiFont.prototype.GetColor = function () { if (this._object instanceof ApiCharacters) { @@ -12566,6 +13508,7 @@ * @typeofeditors ["CSE"] * @param {ApiColor} Color - Font color. * @since 7.4.0 + * @see office-js-api/Examples/{Editor}/ApiFont/Methods/SetColor.js */ ApiFont.prototype.SetColor = function (Color) { if (!Color instanceof ApiColor) { @@ -12622,6 +13565,7 @@ * @typeofeditors ["CSE"] * @param {ApiRange | String} frozenRange - A range that represents the cells to be frozen. * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/ApiFreezePanes/Methods/FreezeAt.js */ ApiFreezePanes.prototype.FreezeAt = function (frozenRange) { let api = this.ws.workbook.oApi; @@ -12643,6 +13587,7 @@ * @typeofeditors ["CSE"] * @param {Number?} [count=0] - Optional number of columns to freeze, or zero to unfreeze all columns. * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/ApiFreezePanes/Methods/FreezeColumns.js */ ApiFreezePanes.prototype.FreezeColumns = function (count) { let api = this.ws.workbook.oApi; @@ -12662,6 +13607,7 @@ * @typeofeditors ["CSE"] * @param {Number?} [count=0] - Optional number of rows to freeze, or zero to unfreeze all rows. * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/ApiFreezePanes/Methods/FreezeRows.js */ ApiFreezePanes.prototype.FreezeRows = function (count) { let api = this.ws.workbook.oApi; @@ -12681,6 +13627,7 @@ * @typeofeditors ["CSE"] * @returns {ApiRange | null} - Returns null if there is no frozen pane. * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/ApiFreezePanes/Methods/GetLocation.js */ ApiFreezePanes.prototype.GetLocation = function () { let result = null; @@ -12707,6 +13654,18 @@ return result; }; + /** + * Removes all frozen panes in the current worksheet. + * @memberof ApiFreezePanes + * @typeofeditors ["CSE"] + * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/ApiFreezePanes/Methods/Unfreeze.js + */ + ApiFreezePanes.prototype.Unfreeze = function () { + if (!!this.ws.workbook.oApi.wb.getWorksheet().topLeftFrozenCell) + this.ws.workbook.oApi.asc_freezePane(undefined); + }; + /** * Class representing a user-protected range. * @constructor @@ -12720,8 +13679,9 @@ * @memberof ApiProtectedRange * @typeofeditors ["CSE"] * @param {string} sTitle - The title which will be displayed for the current protected range. - * @return {boolean} - Returns false if a user doesn't have permission to modify the protected range. + * @returns {boolean} - Returns false if a user doesn't have permission to modify the protected range. * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRange/Methods/SetTitle.js */ ApiProtectedRange.prototype.SetTitle = function (sTitle) { let isValidTitle = typeof (sTitle) === 'string' && sTitle.trim() !== ''; @@ -12731,7 +13691,11 @@ if (worksheet) { let newProtectedRange = this.protectedRange.clone(this.protectedRange._ws, true); newProtectedRange.asc_setName(sTitle); - if (worksheet.editUserProtectedRanges(this.protectedRange, newProtectedRange, true)) { + let editRes = worksheet.editUserProtectedRanges(this.protectedRange, newProtectedRange, true); + if (typeof editRes === "object") { + this.protectedRange = editRes; + } + if (editRes) { result = true; } } @@ -12744,8 +13708,9 @@ * @memberof ApiProtectedRange * @typeofeditors ["CSE"] * @param {string} sRange - The cell range which will be set for the current protected range. - * @return {boolean} - Returns false if a user doesn't have permission to modify the protected range. + * @returns {boolean} - Returns false if a user doesn't have permission to modify the protected range. * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRange/Methods/SetRange.js */ ApiProtectedRange.prototype.SetRange = function (sRange) { let isValidRange = typeof (sRange) === 'string' && sRange.trim() !== ''; @@ -12755,7 +13720,11 @@ if (worksheet) { let newProtectedRange = this.protectedRange.clone(this.protectedRange._ws, true); newProtectedRange.asc_setRef(sRange); - if (worksheet.editUserProtectedRanges(this.protectedRange, newProtectedRange, true)) { + let editRes = worksheet.editUserProtectedRanges(this.protectedRange, newProtectedRange, true); + if (typeof editRes === "object") { + this.protectedRange = editRes; + } + if (editRes) { result = true; } } @@ -12766,6 +13735,7 @@ /** * Specifies the user type of the protected range. * @typedef {("CanEdit" | "CanView" | "NotView")} ProtectedRangeUserType + * @see office-js-api/Examples/Enumerations/ProtectedRangeUserType.js */ @@ -12778,6 +13748,7 @@ * @param {ProtectedRangeUserType} protectedRangeUserType - The user type of the protected range. * @returns {ApiProtectedRangeUserInfo | null} - Returns null if a user doesn't have permission to modify the protected range. * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRange/Methods/AddUser.js */ ApiProtectedRange.prototype.AddUser = function (sId, sName, protectedRangeUserType) { let isValidIdTitle = typeof (sId) === 'string' && sId.trim() !== ''; @@ -12800,10 +13771,16 @@ newUser.asc_setType(nType); let users = this.protectedRange.asc_getUsers(); + if (!users) { + users = []; + } users.push(newUser); newProtectedRange.asc_setUsers(users); - worksheet.editUserProtectedRanges(this.protectedRange, newProtectedRange, true); - result = new ApiProtectedRangeUserInfo(result, this.protectedRange); + let editRes = worksheet.editUserProtectedRanges(this.protectedRange, newProtectedRange, true); + if (typeof editRes === "object") { + this.protectedRange = editRes; + } + result = new ApiProtectedRangeUserInfo(newUser, this.protectedRange); } } return result; @@ -12812,9 +13789,11 @@ /** * Removes a user from the current protected range. * @memberof ApiProtectedRange + * @typeofeditors ["CSE"] * @param {string} sId - The user ID. * @returns {bool} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRange/Methods/DeleteUser.js */ ApiProtectedRange.prototype.DeleteUser = function (sId) { let isValidId = typeof (sId) === 'string' && sId.trim() !== ''; @@ -12851,6 +13830,7 @@ * @typeofeditors ["CSE"] * @returns {ApiProtectedRangeUserInfo[] | null} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRange/Methods/GetAllUsers.js */ ApiProtectedRange.prototype.GetAllUsers = function () { let worksheet = this.protectedRange._ws; @@ -12876,6 +13856,7 @@ * @param {ProtectedRangeUserType} protectedRangeUserType - The user type of the protected range. * @returns {bool} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRange/Methods/SetAnyoneType.js */ ApiProtectedRange.prototype.SetAnyoneType = function (protectedRangeUserType) { let nType = Asc.c_oSerUserProtectedRangeType.edit; @@ -12890,7 +13871,11 @@ if (worksheet) { let newProtectedRange = this.protectedRange.clone(this.protectedRange._ws, true); newProtectedRange.asc_setType(nType); - if (worksheet.editUserProtectedRanges(this.protectedRange, newProtectedRange, true)) { + let editRes = worksheet.editUserProtectedRanges(this.protectedRange, newProtectedRange, true); + if (typeof editRes === "object") { + this.protectedRange = editRes; + } + if (editRes) { result = true; } } @@ -12901,9 +13886,11 @@ /** * Returns an object that represents a user from the current protected range. * @memberof ApiProtectedRange + * @typeofeditors ["CSE"] * @param {string} sId - The user ID. * @returns {ApiProtectedRangeUserInfo | null} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRange/Methods/GetUser.js */ ApiProtectedRange.prototype.GetUser = function (sId) { let isValidRange = typeof (sId) === 'string' && sId.trim() !== ''; @@ -12935,6 +13922,7 @@ * @typeofeditors ["CSE"] * @returns {string | null} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRangeUserInfo/Methods/GetName.js */ ApiProtectedRangeUserInfo.prototype.GetName = function () { //the sets methods are available from the parent @@ -12948,6 +13936,7 @@ * @typeofeditors ["CSE"] * @returns {ProtectedRangeUserType} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRangeUserInfo/Methods/GetType.js */ ApiProtectedRangeUserInfo.prototype.GetType = function () { let nType = this.userInfo.asc_getType(); @@ -12967,89 +13956,3131 @@ * @typeofeditors ["CSE"] * @returns {string | null} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiProtectedRangeUserInfo/Methods/GetId.js */ ApiProtectedRangeUserInfo.prototype.GetId = function () { return this.userInfo.asc_getId(); }; + //------------------------------------------------------------------------------------------------------------------ + // + // ApiPivotTable + // + //------------------------------------------------------------------------------------------------------------------ - Api.prototype["Format"] = Api.prototype.Format; - Api.prototype["AddSheet"] = Api.prototype.AddSheet; - Api.prototype["GetSheets"] = Api.prototype.GetSheets; - Api.prototype["GetActiveSheet"] = Api.prototype.GetActiveSheet; - Api.prototype["GetLocale"] = Api.prototype.GetLocale; - Api.prototype["SetLocale"] = Api.prototype.SetLocale; - Api.prototype["GetSheet"] = Api.prototype.GetSheet; - Api.prototype["GetThemesColors"] = Api.prototype.GetThemesColors; - Api.prototype["SetThemeColors"] = Api.prototype.SetThemeColors; - Api.prototype["CreateNewHistoryPoint"] = Api.prototype.CreateNewHistoryPoint; - Api.prototype["CreateColorFromRGB"] = Api.prototype.CreateColorFromRGB; - Api.prototype["CreateColorByName"] = Api.prototype.CreateColorByName; - Api.prototype["Intersect"] = Api.prototype.Intersect; - Api.prototype["GetSelection"] = Api.prototype.GetSelection; - Api.prototype["AddDefName"] = Api.prototype.AddDefName; - Api.prototype["GetDefName"] = Api.prototype.GetDefName; - Api.prototype["Save"] = Api.prototype.Save; - Api.prototype["GetMailMergeData"] = Api.prototype.GetMailMergeData; - - Api.prototype["GetRange"] = Api.prototype.GetRange; - - Api.prototype["RecalculateAllFormulas"] = Api.prototype.RecalculateAllFormulas; - Api.prototype["AddComment"] = Api.prototype.AddComment; - Api.prototype["GetComments"] = Api.prototype.GetComments; - Api.prototype["GetAllComments"] = Api.prototype.GetAllComments; - Api.prototype["GetCommentById"] = Api.prototype.GetCommentById; - Api.prototype["SetFreezePanesType"] = Api.prototype.SetFreezePanesType; - Api.prototype["GetFreezePanesType"] = Api.prototype.GetFreezePanesType; + /* Methods */ - Api.prototype["AddCustomFunction"] = Api.prototype.AddCustomFunction; - Api.prototype["RemoveCustomFunction"] = Api.prototype.RemoveCustomFunction; + /** + * Adds a data field to the pivot table report. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number | string} field - The index number or name of the data field. + * @returns {ApiPivotDataField} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/AddDataField.js + */ + ApiPivotTable.prototype.AddDataField = function (field) { + let pivotIndex = -1; + const pivotFields = this.pivot.asc_getPivotFields(); + if (typeof field === 'string') { + pivotIndex = this.pivot.getFieldIndexByValue(field); + } else if (typeof field === 'number') { + pivotIndex = field - 1; + } else { + private_MakeError('Bad field indentifier type.') + return null; + } + if (pivotFields[pivotIndex]) { + this.pivot.asc_addDataField(this.api, pivotIndex); + const dataFields = this.pivot.asc_getDataFields(); + return new ApiPivotDataField(this, dataFields.length - 1, dataFields[dataFields.length - 1]); + } + private_MakeError("Field with such an identifier does not exist."); + return null; + }; + /** + * Adds the row, column, and page fields to the pivot table report. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {Object} options - The settings for adding row, column, and page fields to the pivot table report. + * @param {number | string | number[] | string[]} [options.rows] - An array of field names or IDs to be added as rows or added to the category axis. + * @param {number | string | number[] | string[]} [options.columns] - An array of field names or IDs to be added as columns or added to the series axis. + * @param {number | string | number[] | string[]} [options.pages] - An array of field names or IDs to be added as pages or added to the page area. + * @param {boolean} [options.addToTable] - Specifies whether to apply fields only to the pivot table reports. If this parameter is set to true, + * the specified fields will be added to the report (none of the existing fields are replaced). + * If false, the existing fields will be replaced with the new fields. The default value is false. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/AddFields.js + */ + ApiPivotTable.prototype.AddFields = function (options) { + options['rows'] = options['rows'] != null ? options['rows'] : []; + options['columns'] = options['columns'] != null ? options['columns'] : []; + options['pages'] = options['pages'] != null ? options['pages'] : []; + + const rows = Array.isArray(options['rows']) ? options['rows'] : [options['rows']]; + const cols = Array.isArray(options['columns']) ? options['columns'] : [options['columns']]; + const pages = Array.isArray(options['pages']) ? options['pages'] : [options['pages']]; + const cacheFields = this.pivot.asc_getCacheFields(); + const t = this; + + function processField(field, callback) { + let index = null; + if (typeof field == "number" && field > 0 && field - 1 < cacheFields.length) { + index = field - 1; + } else if (typeof field == "string") { + index = t.pivot.getFieldIndexByValue(field.trim()); + if (index < 0) { + index = null; + } + } + if (index !== null) { + callback(index); + } else { + private_MakeError("There is no field with such an identifier."); + } + } - Api.prototype["GetReferenceStyle"] = Api.prototype.GetReferenceStyle; - Api.prototype["SetReferenceStyle"] = Api.prototype.SetReferenceStyle; + if (!options.addToTable) { + const pivotFields = this.GetPivotFields() + pivotFields.forEach(function (pivotField) { + pivotField.Remove() + }) - Api.prototype["GetWorksheetFunction"] = Api.prototype.GetWorksheetFunction; - - ApiWorksheet.prototype["GetVisible"] = ApiWorksheet.prototype.GetVisible; - ApiWorksheet.prototype["SetVisible"] = ApiWorksheet.prototype.SetVisible; - ApiWorksheet.prototype["SetActive"] = ApiWorksheet.prototype.SetActive; - ApiWorksheet.prototype["GetActiveCell"] = ApiWorksheet.prototype.GetActiveCell; - ApiWorksheet.prototype["GetSelection"] = ApiWorksheet.prototype.GetSelection; - ApiWorksheet.prototype["GetCells"] = ApiWorksheet.prototype.GetCells; - ApiWorksheet.prototype["GetCols"] = ApiWorksheet.prototype.GetCols; - ApiWorksheet.prototype["GetRows"] = ApiWorksheet.prototype.GetRows; - ApiWorksheet.prototype["GetUsedRange"] = ApiWorksheet.prototype.GetUsedRange; - ApiWorksheet.prototype["GetName"] = ApiWorksheet.prototype.GetName; - ApiWorksheet.prototype["SetName"] = ApiWorksheet.prototype.SetName; - ApiWorksheet.prototype["GetIndex"] = ApiWorksheet.prototype.GetIndex; - ApiWorksheet.prototype["GetRange"] = ApiWorksheet.prototype.GetRange; - ApiWorksheet.prototype["GetRangeByNumber"] = ApiWorksheet.prototype.GetRangeByNumber; - ApiWorksheet.prototype["FormatAsTable"] = ApiWorksheet.prototype.FormatAsTable; - ApiWorksheet.prototype["SetColumnWidth"] = ApiWorksheet.prototype.SetColumnWidth; - ApiWorksheet.prototype["SetRowHeight"] = ApiWorksheet.prototype.SetRowHeight; - ApiWorksheet.prototype["SetDisplayGridlines"] = ApiWorksheet.prototype.SetDisplayGridlines; - ApiWorksheet.prototype["SetDisplayHeadings"] = ApiWorksheet.prototype.SetDisplayHeadings; - ApiWorksheet.prototype["SetLeftMargin"] = ApiWorksheet.prototype.SetLeftMargin; - ApiWorksheet.prototype["GetLeftMargin"] = ApiWorksheet.prototype.GetLeftMargin; - ApiWorksheet.prototype["SetRightMargin"] = ApiWorksheet.prototype.SetRightMargin; - ApiWorksheet.prototype["GetRightMargin"] = ApiWorksheet.prototype.GetRightMargin; - ApiWorksheet.prototype["SetTopMargin"] = ApiWorksheet.prototype.SetTopMargin; - ApiWorksheet.prototype["GetTopMargin"] = ApiWorksheet.prototype.GetTopMargin; - ApiWorksheet.prototype["SetBottomMargin"] = ApiWorksheet.prototype.SetBottomMargin; - ApiWorksheet.prototype["GetBottomMargin"] = ApiWorksheet.prototype.GetBottomMargin; - ApiWorksheet.prototype["SetPageOrientation"] = ApiWorksheet.prototype.SetPageOrientation; - ApiWorksheet.prototype["GetPageOrientation"] = ApiWorksheet.prototype.GetPageOrientation; - ApiWorksheet.prototype["GetPrintHeadings"] = ApiWorksheet.prototype.GetPrintHeadings; - ApiWorksheet.prototype["SetPrintHeadings"] = ApiWorksheet.prototype.SetPrintHeadings; - ApiWorksheet.prototype["GetPrintGridlines"] = ApiWorksheet.prototype.GetPrintGridlines; - ApiWorksheet.prototype["SetPrintGridlines"] = ApiWorksheet.prototype.SetPrintGridlines; - ApiWorksheet.prototype["GetDefNames"] = ApiWorksheet.prototype.GetDefNames; - ApiWorksheet.prototype["GetDefName"] = ApiWorksheet.prototype.GetDefName; - ApiWorksheet.prototype["AddDefName"] = ApiWorksheet.prototype.AddDefName; - ApiWorksheet.prototype["GetComments"] = ApiWorksheet.prototype.GetComments; - ApiWorksheet.prototype["Delete"] = ApiWorksheet.prototype.Delete; - ApiWorksheet.prototype["SetHyperlink"] = ApiWorksheet.prototype.SetHyperlink; - ApiWorksheet.prototype["AddChart"] = ApiWorksheet.prototype.AddChart; + } + rows.forEach(function(row) { + processField(row, function(index) { + t.pivot.asc_addRowField(t.api, index); + }); + }); + cols.forEach(function(col) { + processField(col, function(index) { + t.pivot.asc_addColField(t.api, index); + }); + }); + pages.forEach(function(page) { + processField(page, function(index) { + t.pivot.asc_addPageField(t.api, index); + }); + }); + }; + /** + * Deletes all filters currently applied to the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/ClearAllFilters.js + */ + ApiPivotTable.prototype.ClearAllFilters = function () { + this.pivot.asc_removeFilters(this.api); + }; + /** + * Clears the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/ClearTable.js + */ + ApiPivotTable.prototype.ClearTable = function () { + const ws = this.pivot.worksheet; + const name = this.pivot.asc_getName(); + const range = this.pivot.getRange(); + const bbox = new Asc.Range(range.c1, range.r1, range.c1, range.r1); + const dataRef = this.pivot.cacheDefinition.cacheSource.worksheetSource.getDataRef(); + let index = -1; + for (let i = 0; i < ws.pivotTables.length; i += 1) { + if (ws.pivotTables[i].Get_Id() === this.pivot.Get_Id()) { + index = i; + break; + } + } + if (index !== -1) { + ws._deletePivotTable(ws.pivotTables, this.pivot, index); + this.pivot = this.api._asc_insertPivot(ws.workbook, dataRef, ws, bbox, false); + this.pivot.asc_setName(name); + return; + } + private_MakeError("Unknown error!"); + }; + /** + * Returns the value for the data field in a pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {string[]} items - Describes a single cell in the pivot table report. + * For example, "'Estimated Costs' Tables May", which shows the estimated costs for tables in May + * (Data field = Costs, Product = Tables, Month = May). + * @returns {number | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetData.js + */ + ApiPivotTable.prototype.GetData = function (items) { + const params = this.pivot.asc_getDataToGetPivotData(items); + const cell = this.pivot.getCellByGetPivotDataParams(params); + if (cell) { + return this.pivot.worksheet.getCell3(cell.row, cell.col).getValue(); + } + private_MakeError('There is no data with that params.'); + return null; + }; + /** + * Returns a Range object with information about a data item in the pivot table report. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {string} [dataField] - The name of the field containing the data for the PivotTable. + * @param {string[]} [fieldItemsArray] - An array of field items from the pivot table. + * @returns {ApiRange} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetPivotData.js + */ + ApiPivotTable.prototype.GetPivotData = function (dataField, fieldItemsArray) { + const cell = this.pivot.getCellByGetPivotDataParams({ + dataFieldName: dataField, + optParams: fieldItemsArray + }); + if (cell) { + return new ApiRange(this.pivot.worksheet.getCell3(cell.row, cell.col)); + } + return null; + }; + /** + * Returns a collection that represents either a single pivot table field + * or a collection of both the visible and hidden fields in the pivot table report. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {string | number} [field] - The name or index of the field to be returned. + * @returns {ApiPivotField[] | ApiPivotField | ApiPivotDataField | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetPivotFields.js + */ + ApiPivotTable.prototype.GetPivotFields = function (field) { + const pivotFields = this.pivot.asc_getPivotFields(); + if (field != null) { + let pivotIndex = -1; + if (typeof field === 'number') { + pivotIndex = field - 1; + if (pivotFields[pivotIndex]) { + return new ApiPivotField(this, pivotIndex, pivotFields[pivotIndex]); + } + } else if (typeof field === 'string') { + pivotIndex = this.pivot.getFieldIndexByValue(field.trim()); + if (pivotIndex !== -1) { + return new ApiPivotField(this, pivotIndex, pivotFields[pivotIndex]); + } + return this.GetDataFields(field); + } + } + const t = this; + return pivotFields.map(function(pivotField, i) { + return new ApiPivotField(t, i, pivotField); + }); + }; + Object.defineProperty(ApiPivotTable.prototype, "PivotFields", { + get: function (field) { + this.GetPivotFields(field); + } + }); + /** + * Returns the value of a pivot table cell. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number} rowLine - The position of the pivot line (a line of rows in the pivot table) on the row area. + * @param {number} colLine - The position of the pivot line (a line of columns in the pivot table) on the column area. + * @returns {number | string | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/PivotValueCell.js + */ + ApiPivotTable.prototype.PivotValueCell = function (rowLine, colLine) { + if (rowLine > 0 && colLine > 0) { + const pivotRange = this.pivot.getRange(); + const location = this.pivot.location; + const baseCol = pivotRange.c1 + location.firstDataCol; + const baseRow = pivotRange.r1 + location.firstDataRow; + const curRow = rowLine + baseRow - 1; + const curCol = colLine + baseCol - 1; + if (curRow <= pivotRange.r2 && curCol <= pivotRange.c2) { + return this.pivot.worksheet.getCell3(curRow, curCol).getValue(); + } + } + private_MakeError('Cell is out of range'); + return null; + }; + /** + * Shows details of the pivot table cell. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number} rowLine - The position of the pivot line (a line of rows in the pivot table) on the row area. + * @param {number} colLine - The position of the pivot line (a line of columns in the pivot table) on the column area. + * @returns {boolean} - Returns true if the operation is successful. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/ShowDetails.js + */ + ApiPivotTable.prototype.ShowDetails = function (rowLine, colLine) { + if (rowLine > 0 && colLine > 0) { + const pivotRange = this.pivot.getRange(); + const location = this.pivot.location; + const baseCol = pivotRange.c1 + location.firstDataCol; + const baseRow = pivotRange.r1 + location.firstDataRow; + const curRow = rowLine + baseRow - 1; + const curCol = colLine + baseCol - 1; + if (curRow <= pivotRange.r2 && curCol <= pivotRange.c2) { + return this.api.asc_pivotShowDetails(this.pivot, {row: curRow, col: curCol}); + } + } + private_MakeError('Cell is out of range'); + return false; + }; + /** + * Refreshes the pivot table report from the source data. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/RefreshTable.js + */ + ApiPivotTable.prototype.RefreshTable = function () { + this.pivot.asc_refresh(this.api); + }; + /** + * Updates the current pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/Update.js + */ + ApiPivotTable.prototype.Update = function () { + this.pivot.asc_refresh(this.api); + }; + /** + * Specifies whether to repeat item labels for all pivot fields in the specified pivot table. + * @memberof ApiPivotTable + * @param {boolean} repeat - Specifies whether to repeat all field item labels in a pivot table report. + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetRepeatAllLabels.js + */ + ApiPivotTable.prototype.SetRepeatAllLabels = function (repeat) { + if (typeof repeat == "boolean") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setFillDownLabelsDefault(repeat); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "repeat".'); + } + }; + Object.defineProperty(ApiPivotTable.prototype, "RepeatAllLabels", { + set: function (repeat) { + this.SetRepeatAllLabels(repeat); + } + }); + /** + * Sets the way the specified pivot table items appear — in table format or in outline format. + * @memberof ApiPivotTable + * @param {PivotLayoutType} type - The layout type of the pivot table report. + * @param {boolean} compact - Specifies whether the pivot table items will be displayed in the compact form. + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetRowAxisLayout.js + */ + ApiPivotTable.prototype.SetRowAxisLayout = function (type, compact) { + let props = null; + if (typeof type === "string" && (type === "Tabular" || type === "Outline")) { + props = new Asc.CT_pivotTableDefinition(); + props.asc_setOutline((type == "Outline")); + } else { + private_MakeError('Invalid type of "type" or invalid value.'); + } + if (compact != null) { + if (typeof compact === "boolean") { + if (!props) { + props = new Asc.CT_pivotTableDefinition(); + } + props.asc_setCompact(compact); + } else { + private_MakeError('Invalid type of "compact".'); + } + } + if (props) { + this.pivot.asc_set(this.api, props); + } + }; + Object.defineProperty(ApiPivotTable.prototype, "RowAxisLayout", { + set: function (type, compact) { + this.SetRowAxisLayout(type, compact); + } + }); + /** + * The type of the pivot table subtotal layout. + * @typedef { "Hidden" | "Top" | "Bottom" } PivotSubtotalLayoutType + */ + /** + * Sets the layout subtotal location in the pivot table. + * @memberof ApiPivotTable + * @param {PivotSubtotalLayoutType} type - The type of the pivot table subtotal layout. + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetSubtotalLocation.js + */ + ApiPivotTable.prototype.SetSubtotalLocation = function (type) { + if ( typeof type == "string" && (type === "Hidden" || type === "Bottom" || type === "Top") ) { + const props = new Asc.CT_pivotTableDefinition(); + if (type == "Hidden") { + props.asc_setDefaultSubtotal(false); + } else { + props.asc_setDefaultSubtotal(true); + props.asc_setSubtotalTop( (type == "Top") ); + } + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "type" or invalid value.'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "SubtotalLocation", { + set: function (type) { + this.SetSubtotalLocation(type); + } + }); + /** + * Removes the specified field from all the pivot table categories. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number | string} identifier - The index number or name of the field. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/RemoveField.js + */ + ApiPivotTable.prototype.RemoveField = function (identifier) { + const pivotField = this.GetPivotFields(identifier); + if (pivotField) { + this.pivot.asc_removeField(this.api, pivotField.index); + } + }; + + /** + * The direction to move the pivot table field. + * @typedef { "Up" | "Down" | "Begin" | "End" } PivotMoveFieldType + */ + /** + * The pivot field orientation type. + * @typedef {"Rows" | "Columns" | "Filters" | "Values" | "Hidden" } PivotFieldOrientationType + */ + + /** + * Moves the specified field from one category to another. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number | string} identifier - The index number or name of the field. + * @param {PivotMoveFieldType | PivotFieldOrientationType} type - The direction to move the pivot table field, + * or the pivot field orientation type. + * @param {number} [index] - The field index in a new category. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/MoveField.js + */ + ApiPivotTable.prototype.MoveField = function (identifier, type, index) { + const pivotField = this.GetPivotFields(identifier); + if (pivotField) { + pivotField.Move(type, index) + } + }; + /** + * Selects the current pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/Select.js + */ + ApiPivotTable.prototype.Select = function () { + this.pivot.asc_select(this.api); + }; + + /* Attributes */ + + /** + * Returns a collection that is currently displayed as column fields in the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number | string | undefined} field - The name or index of the field to be returned. + * @returns {ApiPivotField[]} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetColumnFields.js + */ + ApiPivotTable.prototype.GetColumnFields = function (field) { + const pivotFields = this.pivot.asc_getPivotFields(); + const colFields = this.pivot.asc_getColumnFields(); + const t = this; + return colFields.map(function(colField, i) { + const index = colField.asc_getIndex(); + return new ApiPivotField(t, index, pivotFields[index]); + }); + }; + + Object.defineProperty(ApiPivotTable.prototype, "ColumnFields", { + get: function (field) { + return this.GetColumnFields(field); + } + }); + /** + * Returns a collection that represents either a single pivot table data field + * or a collection of all visible data fields. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number | string |undefined} field - The name or index of the field to be returned. + * @returns {ApiPivotDataField[] | ApiPivotDataField | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetDataFields.js + */ + ApiPivotTable.prototype.GetDataFields = function (field) { + const dataFields = this.pivot.asc_getDataFields(); + if (field != null) { + let dataIndex = -1; + if (typeof field === 'number') { + dataIndex = field - 1; + const dataField = dataFields[dataIndex]; + if (dataField) { + return new ApiPivotDataField(this, dataIndex, dataField) + } + } else if (typeof field === 'string') { + const dataIndex = this.pivot.dataFields.getIndexByName(field.trim()) + if (dataIndex !== -1) { + return new ApiPivotDataField(this, dataIndex, dataFields[dataIndex]); + } + } + private_MakeError("A field with such an identifier does not exist."); + return null; + } + const t = this; + return dataFields.map(function(dataField, i) { + return new ApiPivotDataField(t, i, dataField); + }); + }; + + Object.defineProperty(ApiPivotTable.prototype, "DataFields", { + get: function (field) { + return this.GetDataFields(field); + } + }); + + /** + * Returns an array that represents all the hidden fields in the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiPivotField[]} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetHiddenFields.js + */ + ApiPivotTable.prototype.GetHiddenFields = function () { + var fields = this.pivot.asc_getPivotFields(); + var hidden = []; + for (var i = 0; i < fields.length; i++) + if (fields[i].axis === null && !fields[i].dataField) + hidden.push( new ApiPivotField(this, i, fields[i])); + + return hidden; + }; + + Object.defineProperty(ApiPivotTable.prototype, "HiddenFields", { + get: function () { + return this.GetHiddenFields(); + } + }); + + /** + * Returns an array that represents all the visible fields in the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiPivotField[]} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetVisibleFields.js + */ + ApiPivotTable.prototype.GetVisibleFields = function () { + const pivotFields = this.pivot.asc_getPivotFields(); + const visible = []; + for (var i = 0; i < pivotFields.length; i++) { + if (pivotFields[i].axis !== null && !pivotFields[i].dataField) { + visible.push( new ApiPivotField(this, i, pivotFields[i]) ); + } + } + return visible.concat(this.GetDataFields()); + }; + + Object.defineProperty(ApiPivotTable.prototype, "VisibleFields", { + get: function () { + return this.GetVisibleFields(); + } + }); + + /** + * Returns a collection that represents either a single pivot table page field + * or a collection of all visible page fields. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number | string |undefined} field - The name or index of the field to be returned. + * @returns {ApiPivotField[]} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetPageFields.js + */ + ApiPivotTable.prototype.GetPageFields = function (field) { + const pivotFields = this.pivot.asc_getPivotFields(); + const pageFields = this.pivot.asc_getPageFields(); + const t = this; + return pageFields.map(function(pageField, i) { + const index = pageField.asc_getIndex(); + return new ApiPivotField(t, index, pivotFields[index]); + }); + }; + + Object.defineProperty(ApiPivotTable.prototype, "PageFields", { + get: function (field) { + return this.GetPageFields(field); + } + }); + /** + * Returns a collection that is currently displayed as row fields in the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {number | string |undefined} field - The name or index of the field to be returned. + * @returns {ApiPivotField[]} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetRowFields.js + */ + ApiPivotTable.prototype.GetRowFields = function (field) { + const pivotFields = this.pivot.asc_getPivotFields(); + const rowFields = this.pivot.asc_getRowFields(); + const t = this; + return rowFields.map(function(rowField, i) { + const index = rowField.asc_getIndex(); + return new ApiPivotField(t, index, pivotFields[index]); + }); + }; + + Object.defineProperty(ApiPivotTable.prototype, "RowFields", { + get: function () { + return this.GetRowFields(); + } + }); + /** + * Returns the pivot table name. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetName.js + */ + ApiPivotTable.prototype.GetName = function () { + return this.pivot.asc_getName(); + }; + + /** + * Sets the pivot table name. + * @memberof ApiPivotTable + * @param {string} name - The pivot table name. + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetName.js + */ + ApiPivotTable.prototype.SetName = function (name) { + if (typeof name == "string" && name.trim().length) { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setName(name.trim()); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "name" or "name" is empty.'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "Name", { + get: function () { + return this.GetName(); + }, + set: function (name) { + this.SetName(name); + } + }); + + /** + * Returns the Grand Totals setting of the pivot table columns. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetColumnGrand.js + */ + ApiPivotTable.prototype.GetColumnGrand = function () { + return this.pivot.asc_getColGrandTotals(); + }; + + /** + * Sets the Grand Totals setting to the pivot table columns. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether to display the grand totals for columns. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetColumnGrand.js + */ + ApiPivotTable.prototype.SetColumnGrand = function (show) { + if (typeof show == "boolean") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setColGrandTotals(show); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "show".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "ColumnGrand", { + get: function () { + return this.GetColumnGrand(); + }, + set: function (show) { + this.SetColumnGrand(show); + } + }); + + /** + * Returns the Grand Totals setting of the pivot table rows. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetRowGrand.js + */ + ApiPivotTable.prototype.GetRowGrand = function () { + return this.pivot.asc_getRowGrandTotals(); + }; + + /** + * Sets the Grand Totals setting to the pivot table rows. + * @memberof ApiPivotTable + * @param {boolean} show - Specifies whether to display the grand totals for rows. + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetRowGrand.js + */ + ApiPivotTable.prototype.SetRowGrand = function (show) { + if (typeof show == "boolean") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setRowGrandTotals(show); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "show".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "RowGrand", { + get: function () { + return this.GetRowGrand(); + }, + set: function (show) { + this.SetRowGrand(show); + } + }); + + /** + * Specifies how the report filter fields are located. + * @typedef {"OverThenDown" | "DownThenOver"} FieldsInReportFilterType + */ + + /** + * Returns the pivot table display fields in the report filter area settings. + * The returned object has the following structure: {Type: FieldsInReportFilterType, ReportFilterFields: number}, + * where Type specifies how the report filter fields are located, ReportFilterFields defines a number of the report filter fields. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {object} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetDisplayFieldsInReportFilterArea.js + */ + ApiPivotTable.prototype.GetDisplayFieldsInReportFilterArea = function () { + return { + "Type": (this.pivot.asc_getPageOverThenDown() ? "OverThenDown" : "DownThenOver"), + "ReportFilterFields": this.pivot.asc_getPageWrap() + }; + }; + + /** + * Sets the pivot table display fields in the report filter area settings. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {FieldsInReportFilterType} type - Specifies how the report filter fields are located. + * @param {number} fields - A number of the report filter fields. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetDisplayFieldsInReportFilterArea.js + */ + ApiPivotTable.prototype.SetDisplayFieldsInReportFilterArea = function (type, fields) { + var props = null; + if (type != undefined) { + if ( typeof type == "string" && (type == 'OverThenDown' || type == 'DownThenOver') ) { + props = new Asc.CT_pivotTableDefinition(); + props.asc_setPageOverThenDown( (type == 'OverThenDown') ); + } else { + private_MakeError('Invalid type of "type".'); + } + } + + if (fields != undefined) { + if (typeof fields == "number" && fields >= 0 && fields <= 255) { + if (!props) + props = new Asc.CT_pivotTableDefinition(); + + props.asc_setPageWrap(fields); + } else { + private_MakeError('Invalid type of "fields" or invalid value.'); + } + } + + if (props) + this.pivot.asc_set(this.api, props); + }; + + /** + * Returns the setting which specifies whether to display field headers for rows and columns. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetDisplayFieldCaptions.js + */ + ApiPivotTable.prototype.GetDisplayFieldCaptions = function () { + return this.pivot.asc_getShowHeaders(); + }; + + /** + * Returns the setting which specifies whether to display field headers for rows and columns. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether to display field headers for rows and columns. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetDisplayFieldCaptions.js + */ + ApiPivotTable.prototype.SetDisplayFieldCaptions = function (show) { + if (typeof show == "boolean") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setShowHeaders(show); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "show".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "DisplayFieldCaptions", { + get: function () { + return this.GetDisplayFieldCaptions (); + }, + set: function (show) { + this.SetDisplayFieldCaptions (show); + } + }); + + /** + * Returns the pivot table title. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetTitle.js + */ + ApiPivotTable.prototype.GetTitle = function () { + return this.pivot.asc_getTitle() || ""; + }; + + /** + * Sets the pivot table title. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {string} title - The pivot table title. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetTitle.js + */ + ApiPivotTable.prototype.SetTitle = function (title) { + if (typeof title == "string") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setTitle(title.trim()); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "title".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "Title", { + get: function () { + return this.GetTitle(); + }, + set: function (title) { + this.SetTitle(title); + } + }); + + /** + * Returns the pivot table description. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetDescription.js + */ + ApiPivotTable.prototype.GetDescription = function () { + return this.pivot.asc_getDescription() || ""; + }; + + /** + * Sets the pivot table description. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {string} description - The pivot table description. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetDescription.js + */ + ApiPivotTable.prototype.SetDescription = function (description) { + if (typeof description == "string") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setDescription(description.trim()); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "description".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "Description", { + get: function () { + return this.GetDescription(); + }, + set: function (description) { + this.SetDescription(description); + } + }); + + /** + * Returns the pivot table style name. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetStyleName.js + */ + ApiPivotTable.prototype.GetStyleName = function () { + return this.pivot.asc_getStyleInfo().asc_getName(); + }; + + /** + * Sets the pivot table style name. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {string} name - The pivot table style name. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetStyleName.js + */ + ApiPivotTable.prototype.SetStyleName = function (name) { + if (typeof name == "string" && name.trim().length) { + this.pivot.asc_getStyleInfo().asc_setName(this.api, this.pivot, name.trim()); + } else { + private_MakeError('Invalid type of "name" or "name" is empty.'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "StyleName", { + get: function () { + return this.GetStyleName(); + }, + set: function (name) { + this.SetStyleName(name); + } + }); + + /** + * Returns the setting which specifies whether the row headers of the pivot table will be highlighted with the special formatting. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetTableStyleRowHeaders.js + */ + ApiPivotTable.prototype.GetTableStyleRowHeaders = function () { + return this.pivot.asc_getStyleInfo().asc_getShowRowHeaders(); + }; + + /** + * Sets the setting which specifies whether the row headers of the pivot table will be highlighted with the special formatting. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether the row headers of the pivot table will be highlighted with the special formatting. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetTableStyleRowHeaders.js + */ + ApiPivotTable.prototype.SetTableStyleRowHeaders = function (show) { + if (typeof show == "boolean") { + this.pivot.asc_getStyleInfo().asc_setShowRowHeaders(this.api, this.pivot, show); + } else { + private_MakeError('Invalid type of "show".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "ShowTableStyleRowHeaders", { + get: function () { + return this.GetTableStyleRowHeaders(); + }, + set: function (show) { + this.SetTableStyleRowHeaders(show); + } + }); + + /** + * Returns the setting which specifies whether the column headers of the pivot table will be highlighted with the special formatting. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetTableStyleColumnHeaders.js + */ + ApiPivotTable.prototype.GetTableStyleColumnHeaders = function () { + return this.pivot.asc_getStyleInfo().asc_getShowColHeaders(); + }; + + /** + * Sets the setting which specifies whether the column headers of the pivot table will be highlighted with the special formatting. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether the column headers of the pivot table will be highlighted with the special formatting. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetTableStyleColumnHeaders.js + */ + ApiPivotTable.prototype.SetTableStyleColumnHeaders = function (show) { + if (typeof show == "boolean") { + this.pivot.asc_getStyleInfo().asc_setShowColHeaders(this.api, this.pivot, show); + } else { + private_MakeError('Invalid type of "show".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "ShowTableStyleColumnHeaders", { + get: function () { + return this.GetTableStyleColumnHeaders(); + }, + set: function (show) { + this.SetTableStyleColumnHeaders(show); + } + }); + + /** + * Returns the setting which specifies whether the background color alternation for odd and even rows will be enabled for the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetTableStyleRowStripes.js + */ + ApiPivotTable.prototype.GetTableStyleRowStripes = function () { + return this.pivot.asc_getStyleInfo().asc_getShowRowStripes(); + }; + + /** + * Sets the setting which specifies whether the background color alternation for odd and even rows will be enabled for the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether the background color alternation for odd and even rows will be enabled for the pivot table. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetTableStyleRowStripes.js + */ + ApiPivotTable.prototype.SetTableStyleRowStripes = function (show) { + if (typeof show == "boolean") { + this.pivot.asc_getStyleInfo().asc_setShowRowStripes(this.api, this.pivot, show); + } else { + private_MakeError('Invalid type of "show".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "ShowTableStyleRowStripes", { + get: function () { + return this.GetTableStyleRowStripes(); + }, + set: function (show) { + this.SetTableStyleRowStripes(show); + } + }); + + /** + * Returns the setting which specifies whether the background color alternation for odd and even columns will be enabled for the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetTableStyleColumnStripes.js + */ + ApiPivotTable.prototype.GetTableStyleColumnStripes = function () { + return this.pivot.asc_getStyleInfo().asc_getShowColStripes(); + }; + + /** + * Sets the setting which specifies whether the background color alternation for odd and even columns will be enabled for the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether the background color alternation for odd and even columns will be enabled for the pivot table. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetTableStyleColumnStripes.js + */ + ApiPivotTable.prototype.SetTableStyleColumnStripes = function (show) { + if (typeof show == "boolean") { + this.pivot.asc_getStyleInfo().asc_setShowColStripes(this.api, this.pivot, show); + } else { + private_MakeError('Invalid type of "show".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "ShowTableStyleColumnStripes", { + get: function () { + return this.GetTableStyleColumnStripes(); + }, + set: function (show) { + this.SetTableStyleColumnStripes(show); + } + }); + + /** + * Returns the source range for the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiRange} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetSource.js + */ + ApiPivotTable.prototype.GetSource = function () { + var location = this.pivot.getDataLocation(); + return new ApiRange( location.ws.getRange3(location.bbox.r1, location.bbox.c1, location.bbox.r2, location.bbox.c2) ); + }; + + /** + * Sets the source range for the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {ApiRange} source - The range where the pivot table will be located. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetSource.js + */ + ApiPivotTable.prototype.SetSource = function (source) { + if (source instanceof ApiRange) { + var ref = source.GetWorksheet().GetName() + "!" + source.GetAddress(true, true); + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setDataRef(ref); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Source must be instance of ApiRange.'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "Source", { + get: function () { + return this.GetSource(); + }, + set: function (source) { + this.SetSource(source); + } + }); + + /** + * Returns a Range object that represents the column area in the pivot table report. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiRange | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetColumnRange.js + */ + ApiPivotTable.prototype.GetColumnRange = function () { + const res = this.pivot.asc_getColumnRange(); + if (res) { + return new ApiRange(res); + } + return null; + }; + + Object.defineProperty(ApiPivotTable.prototype, "ColumnRange", { + get: function () { + return this.GetColumnRange(); + } + }); + + /** + * Returns a Range object that represents the row area in the pivot table report. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiRange | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetRowRange.js + */ + ApiPivotTable.prototype.GetRowRange = function () { + const res = this.pivot.asc_getRowRange(); + if (res) { + return new ApiRange(res); + } + return null; + }; + + Object.defineProperty(ApiPivotTable.prototype, "RowRange", { + get: function () { + return this.GetRowRange(); + } + }); + + /** + * Returns a Range object that represents the range of values in the pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiRange} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetDataBodyRange.js + */ + ApiPivotTable.prototype.GetDataBodyRange = function () { + const res = this.pivot.asc_getDataBodyRange(); + if (res) { + return new ApiRange(res); + } + return null; + }; + + Object.defineProperty(ApiPivotTable.prototype, "DataBodyRange", { + get: function () { + return this.GetDataBodyRange(); + } + }); + + /** + * Returns a Range object that represents the entire pivot table report, but doesn't include page fields. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiRange | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetTableRange1.js + */ + ApiPivotTable.prototype.GetTableRange1 = function () { + var ref = (this.pivot.location ? this.pivot.location.ref : null); + return (ref ? new ApiRange( this.pivot.worksheet.getRange3(ref.r1, ref.c1, ref.r2, ref.c2) ) : null); + }; + + Object.defineProperty(ApiPivotTable.prototype, "TableRange1", { + get: function () { + return this.GetTableRange1(); + } + }); + + /** + * Returns a Range object that represents the entire pivot table report, including page fields. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiRange | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetTableRange2.js + */ + ApiPivotTable.prototype.GetTableRange2 = function () { + var ref = (this.pivot.location ? this.pivot.location.ref : null); + var firsPFP, lastPFP; + if (this.pivot.pageFieldsPositions.length) { + firsPFP = this.pivot.pageFieldsPositions[0]; + lastPFP = this.pivot.pageFieldsPositions[ (this.pivot.pageFieldsPositions.length - 1) ]; + } + var r1, c1, r2, c2; + if (ref) { + r1 = (firsPFP ? Math.min(firsPFP.row, ref.r1) : ref.r1); + c1 = (firsPFP ? Math.min(firsPFP.col, ref.c1) : ref.c1); + r2 = (lastPFP ? Math.max(lastPFP.row, ref.r2) : ref.r2); + c2 = (lastPFP ? Math.max( (lastPFP.col + 1), ref.c2 ) : ref.c2); + } + return (ref ? new ApiRange( this.pivot.worksheet.getRange3(r1, c1, r2, c2) ) : null); + }; + + Object.defineProperty(ApiPivotTable.prototype, "TableRange2", { + get: function () { + return this.GetTableRange2(); + } + }); + + /** + * Returns the text string label that is displayed in the grand total column or row heading in the specified pivot table report. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetGrandTotalName.js + */ + ApiPivotTable.prototype.GetGrandTotalName = function () { + return ( this.pivot.asc_getGrandTotalCaption() || AscCommon.translateManager.getValue(AscCommonExcel.GRAND_TOTAL_CAPTION) ); + }; + + /** + * Sets the text string label that is displayed in the grand total column or row heading in the specified pivot table report. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {string} name - The grand total name. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetGrandTotalName.js + */ + ApiPivotTable.prototype.SetGrandTotalName = function (name) { + if (typeof name == "string") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setGrandTotalCaption( name.trim() ); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "name".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "GrandTotalName", { + get: function () { + return this.GetGrandTotalName(); + }, + set: function (name) { + this.SetGrandTotalName(name); + } + }); + /** + * Sets the setting which specifies whether to insert blank rows after each item. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {boolean} insert - Specifies whether to insert blank rows after each item. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetLayoutBlankLine.js + */ + ApiPivotTable.prototype.SetLayoutBlankLine = function (insert) { + if (typeof insert == "boolean") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setInsertBlankRow(insert); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "insert".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "LayoutBlankLine", { + set: function (insert) { + this.SetLayoutBlankLine(insert); + } + }); + + /** + * Sets the setting which specifies whether to show subtotals. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether to show subtotals. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/SetLayoutSubtotals.js + */ + ApiPivotTable.prototype.SetLayoutSubtotals = function (show) { + if (typeof show == "boolean") { + var props = new Asc.CT_pivotTableDefinition(); + props.asc_setDefaultSubtotal(show); + this.pivot.asc_set(this.api, props); + } else { + private_MakeError('Invalid type of "show".'); + } + }; + + Object.defineProperty(ApiPivotTable.prototype, "LayoutSubtotals", { + set: function (show) { + this.SetLayoutSubtotals(show); + } + }); + + /** + * Returns the parent object for the current pivot table. + * @memberof ApiPivotTable + * @typeofeditors ["CSE"] + * @returns {ApiWorksheet} - The parent object for the current pivot table. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotTable/Methods/GetParent.js + */ + ApiPivotTable.prototype.GetParent = function () { + return new ApiWorksheet(this.pivot.worksheet); + }; + + Object.defineProperty(ApiPivotTable.prototype, "Parent", { + set: function () { + this.GetParent(); + } + }); + + //------------------------------------------------------------------------------------------------------------------ + // + // ApiPivotDataField + // + //------------------------------------------------------------------------------------------------------------------ + + /** Methods */ + + /** + * Removes the current data field from the category. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/Remove.js + */ + ApiPivotDataField.prototype.Remove = function () { + this.table.pivot.asc_removeDataField(this.table.api, this.index, this.dataIndex); + }; + /** + * Moves the current data field inside the category. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @param {PivotMoveFieldType | PivotFieldOrientationType} type - The direction to move the pivot table field, + * or the pivot field orientation type. + * @param {number} [index] - The index of the data field in a new category. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/Move.js + */ + ApiPivotDataField.prototype.Move = function (type, index) { + function getIndexTo(type, indexFrom, fields) { + switch (type) { + case "Up": + return (indexFrom > 0) ? indexFrom - 1 : indexFrom; + case "Down": + return (indexFrom < fields.length - 1) ? indexFrom + 1 : fields.length - 1; + case "Begin": + return 0; + case "End": + return fields.length - 1; + default: + return null; + } + } + switch (type) { + case "Rows": + this.table.pivot.asc_moveToRowField(this.table.api, this.index, this.dataIndex, index); + break; + case "Columns": + this.table.pivot.asc_moveToColField(this.table.api, this.index, this.dataIndex, index); + break; + case "Filters": + this.table.pivot.asc_moveToPageField(this.table.api, this.index, this.dataIndex, index); + break; + case "Values": + this.SetPosition(index); + break; + default: + const fields = this.table.pivot.asc_getDataFields(); + let indexFrom = this.dataIndex; + let indexTo = getIndexTo(type, indexFrom, fields); + if (indexTo != null) { + this.SetPosition(indexTo + 1); + } else { + private_MakeError("Bad move type."); + } + break; + } + } + + /** Attributes */ + + /** + * The type of calculation to perform on the data field items. + * @typedef {"Average" | "CountNumbers" | "Count" | "Max" | "Min" | "Product" | + * "StdDev" | "StdDevP" | "Sum" | "Var" | "VarP"} DataConsolidateFunctionType + */ + + /** + * Sets a function to the current data field. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @param {DataConsolidateFunctionType} func - The function to perform in the added data field. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/SetFunction.js + */ + ApiPivotDataField.prototype.SetFunction = function (func) { + const field = new Asc.CT_DataField(); + switch (func) { + case "Average": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.Average); + break; + case "Count": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.Count); + break; + case "CountNumbers": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.CountNums); + break; + case "Max": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.Max); + break; + case "Min": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.Min); + break; + case "Product": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.Product); + break; + case "StdDev": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.StdDev); + break; + case "StdDevP": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.StdDevp); + break; + case "Sum": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.Sum); + break; + case "Var": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.Var); + break; + case "VarP": + field.asc_setSubtotal(Asc.c_oAscDataConsolidateFunction.Varp); + break; + default: + private_MakeError('Invalid function type.'); + return; + } + this.dataField.asc_set(this.table.api, this.table.pivot, this.dataIndex, field); + }; + /** + * Returns a function performed in the data field. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {DataConsolidateFunctionType} func - The function performed in the added data field. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetFunction.js + */ + ApiPivotDataField.prototype.GetFunction = function () { + const subtotal = this.dataField.asc_getSubtotal(); + switch (subtotal) { + case Asc.c_oAscDataConsolidateFunction.Average: + return "Average"; + case Asc.c_oAscDataConsolidateFunction.Count: + return "Count"; + case Asc.c_oAscDataConsolidateFunction.CountNums: + return "CountNumbers"; + case Asc.c_oAscDataConsolidateFunction.Max: + return "Max"; + case Asc.c_oAscDataConsolidateFunction.Min: + return "Min"; + case Asc.c_oAscDataConsolidateFunction.Product: + return "Product"; + case Asc.c_oAscDataConsolidateFunction.StdDev: + return "StdDev"; + case Asc.c_oAscDataConsolidateFunction.StdDevP: + return "StdDevP"; + case Asc.c_oAscDataConsolidateFunction.Sum: + return "Sum"; + case Asc.c_oAscDataConsolidateFunction.Var: + return "Var"; + case Asc.c_oAscDataConsolidateFunction.VarP: + return "VarP"; + } + }; + + /** + * Returns a value that represents the data field position within a category. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetPosition.js + */ + ApiPivotDataField.prototype.GetPosition = function () { + return this.dataIndex + 1; + }; + + /** + * Sets a value that represents the data field position within a category. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @param {number} position - The data field position. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/SetPosition.js + */ + ApiPivotDataField.prototype.SetPosition = function (position) { + const dataFields = this.table.pivot.asc_getDataFields(); + if (typeof position === "number") { + if (dataFields[position] && this.index !== position - 1) { + this.table.pivot.asc_moveDataField(this.table.api, this.dataIndex, position - 1); + this.dataIndex = position - 1; + } else { + private_MakeError('Invalid position (out of range or the same).'); + } + } else { + private_MakeError('Invalid type of "position".'); + } + }; + + Object.defineProperty(ApiPivotDataField.prototype, "Position", { + get: function () { + return this.GetPosition(); + }, + set: function (position) { + this.SetPosition(position); + } + }); + /** + * Returns a data field orientation value that represents the data field location in the specified pivot table report. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {PivotFieldOrientationType} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetOrientation.js + */ + ApiPivotDataField.prototype.GetOrientation = function () { + if (this.dataField) { + return "Values"; + } + return null; + }; + Object.defineProperty(ApiPivotDataField.prototype, "Orientation", { + get: function () { + return this.GetOrientation(); + }, + }); + /** + * Returns a value representing the name of the specified data field in the pivot table report. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetValue.js + */ + ApiPivotDataField.prototype.GetValue = function () { + return this.GetName(); + }; + + /** + * Sets a value representing the name of the specified data field in the pivot table report. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @param {string} name - The name of the specified field in the pivot table report. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/SetValue.js + */ + ApiPivotDataField.prototype.SetValue = function (name) { + this.SetName(name); + }; + + Object.defineProperty(ApiPivotDataField.prototype, "Value", { + get: function () { + return this.GetValue(); + }, + set: function (name) { + this.SetValue(name); + } + }); + /** + * Returns a value that represents the label text for the data field. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetCaption.js + */ + ApiPivotDataField.prototype.GetCaption = function () { + return this.GetName(); + }; + /** + * Sets a value that represents the label text for the data field. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @param {string} caption - The label text for the data field. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/SetCaption.js + */ + ApiPivotDataField.prototype.SetCaption = function (caption) { + return this.SetName(caption); + }; + + Object.defineProperty(ApiPivotDataField.prototype, "Caption", { + get: function () { + return this.GetCaption(); + }, + set: function(caption) { + this.SetCaption(caption); + } + }); + + /** + * Returns a value representing the object name. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetName.js + */ + ApiPivotDataField.prototype.GetName = function () { + return this.dataField.asc_getName(); + }; + + /** + * Sets a value representing the object name. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @param {string} name - The object name. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/SetName.js + */ + ApiPivotDataField.prototype.SetName = function (name) { + if (typeof name === 'string' && name.length > 0) { + const field = new Asc.CT_DataField(); + field.asc_setName(name); + this.dataField.asc_set(this.table.api, this.table.pivot, this.dataIndex, field); + } else { + private_MakeError('Bad name type or empty.'); + } + + }; + + Object.defineProperty(ApiPivotDataField.prototype, "Name", { + get: function () { + return this.GetName(); + }, + set: function (name) { + this.SetName(name); + } + }); + /** + * Returns a value that represents the format code for the object. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {string | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetNumberFormat.js + */ + ApiPivotDataField.prototype.GetNumberFormat = function () { + return this.dataField.asc_getNumFormat(); + }; + /** + * Sets a value that represents the format code for the object. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @param {string} format - The format code for the object. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/SetNumberFormat.js + */ + ApiPivotDataField.prototype.SetNumberFormat = function (format) { + const newField = new Asc.CT_DataField(); + newField.asc_setNumFormat(format); + this.dataField.asc_set(this.table.api, this.table.pivot, this.dataIndex, newField); + }; + Object.defineProperty(ApiPivotDataField.prototype, "NumberFormat", { + get: function () { + return this.GetNumberFormat(); + }, + set: function (format) { + return this.SetNumberFormat(format); + } + }); + /** + * Returns an index of the data field. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetIndex.js + */ + ApiPivotDataField.prototype.GetIndex = function () { + return this.dataIndex + 1; + }; + + Object.defineProperty(ApiPivotDataField.prototype, "Index", { + get: function () { + return this.GetIndex(); + } + }); + /** + * Returns the pivot field from which the data field was created. + * @memberof ApiPivotDataField + * @typeofeditors ["CSE"] + * @returns {ApiPivotField} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotDataField/Methods/GetPivotField.js + */ + ApiPivotDataField.prototype.GetPivotField = function () { + return new ApiPivotField(this.table, this.index, this.pivotField); + }; + + Object.defineProperty(ApiPivotDataField.prototype, "PivotField", { + get: function () { + return this.GetPivotField(); + } + }); + + //------------------------------------------------------------------------------------------------------------------ + // + // ApiPivotField + // + //------------------------------------------------------------------------------------------------------------------ + + /** Methods */ + + /** + * Deletes all filters currently applied to the pivot field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/ClearAllFilters.js + */ + ApiPivotField.prototype.ClearAllFilters = function () { + this.table.pivot.removeFiltersWithLock(this.table.api, [this.index], false); + }; + /** + * Deletes all label filters or all date filters from the pivot filters collection. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/ClearLabelFilters.js + */ + ApiPivotField.prototype.ClearLabelFilters = function () { + this.table.pivot.asc_removePivotFilter(this.table.api, this.index, false, true, false); + }; + /** + * Deletes all manual filters from the pivot filters collection. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/ClearManualFilters.js + */ + ApiPivotField.prototype.ClearManualFilters = function () { + this.table.pivot.asc_removePivotFilter(this.table.api, this.index, true, false, false); + }; + /** + * Deletes all value filters from the pivot filters collection. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/ClearValueFilters.js + */ + ApiPivotField.prototype.ClearValueFilters = function () { + this.table.pivot.asc_removePivotFilter(this.table.api, this.index, false, false, true); + }; + /** + * Returns an object that represents either a single pivot table item (the ApiPivotItem object) + * or a collection of all the visible and hidden items (an array of the ApiPivotItem objects) in the specified field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {number} [index] - The item index. + * @returns {ApiPivotItem[] | ApiPivotItem | null} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetPivotItems.js + */ + ApiPivotField.prototype.GetPivotItems = function (index) { + const pivotFields = this.table.pivot.asc_getPivotFields(); + const pivotField = pivotFields[this.index]; + if (index != null) { + const item = pivotField[index]; + if (item && item.t === Asc.c_oAscItemType.Data) { + return new ApiPivotItem(this, item); + } + private_MakeError('Invalid item index.'); + return null; + } + const items = pivotField.getItems(); + const t = this; + return items.filter(function (item) { + return Asc.c_oAscItemType.Data === item.t; + }).map(function (item, index) { + return new ApiPivotItem(t, item); + }) + }; + + Object.defineProperty(ApiPivotField.prototype, "PivotItems", { + get: function (index) { + return this.GetPivotItems(index); + } + }); + /** + * Moves the current pivot field inside the category. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {PivotMoveFieldType | PivotFieldOrientationType} type - The direction to move the pivot table field, + * or the pivot field orientation type. + * @param {number | undefined} index - The field index in a new category. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/Move.js + */ + ApiPivotField.prototype.Move = function (type, index) { + function getIndexTo(type, indexFrom, fields) { + switch (type) { + case "Up": + return (indexFrom > 0) ? indexFrom - 1 : indexFrom; + case "Down": + return (indexFrom < fields.length - 1) ? indexFrom + 1 : fields.length - 1; + case "Begin": + return 0; + case "End": + return fields.length - 1; + default: + return null; + } + } + if (index == null) { + index = 0; + } + switch (type) { + case "Rows": + if (this.pivotField.axis !== Asc.c_oAscAxis.AxisRow) { + this.table.pivot.asc_moveToRowField(this.table.api, this.index, undefined, index - 1); + } else { + this.SetPosition(index) + } + break; + case "Columns": + if (this.pivotField.axis !== Asc.c_oAscAxis.AxisCol) { + this.table.pivot.asc_moveToColField(this.table.api, this.index, undefined, index - 1); + } else { + this.SetPosition(index) + } + break; + case "Filters": + if (this.pivotField.axis !== Asc.c_oAscAxis.AxisPage) { + this.table.pivot.asc_moveToPageField(this.table.api, this.index, undefined, index - 1); + } else { + this.SetPosition(index) + } + break; + case "Values": + this.table.pivot.asc_moveToDataField(this.table.api, this.index, undefined, index - 1); + break; + case "Hidden": + this.Remove(); + break; + default: + const fields = this.table.pivot.getAxisFields(this.pivotField.axis); + if (fields) { + let indexFrom = null; + for (let i = 0; i < fields.length; i += 1) { + if (fields[i].asc_getIndex() === this.index) { + indexFrom = i; + break; + } + } + let indexTo = getIndexTo(type, indexFrom, fields); + if (indexTo != null) { + this.SetPosition(indexTo + 1); + } else { + private_MakeError("Bad move type."); + } + } else { + private_MakeError("Field is hidden."); + } + break; + } + }; + /** + * Removes the current pivot field from the pivot table. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/Remove.js + */ + ApiPivotField.prototype.Remove = function () { + this.table.pivot.asc_removeNoDataField(this.table.api, this.index); + }; + + /** Attributes */ + + /** + * Returns a value that represents the position of the field (first, second, third, and so on) + * among all the fields in its orientation (Rows, Columns, Pages, Data). + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetPosition.js + */ + ApiPivotField.prototype.GetPosition = function () { + const fields = this.table.pivot.getAxisFields(this.pivotField.axis); + if (fields) { + for (let i = 0; i < fields.length; i += 1) { + if (fields[i].asc_getIndex() === this.index) { + return i + 1; + } + } + } + private_MakeError('The field is hidden.\n' + + 'If you need to get the position of the data field then use ApiPivotDataField.GetPosition.\n' + + 'See ApiPivotTable.GetDataFields or ApiPivotTable.GetPivotFields with dataField identifier to get ' + + 'ApiPivotDataField object'); + }; + + /** + * Sets a value that represents the position of the field (first, second, third, and so on) + * among all the fields in its orientation (Rows, Columns, Pages, Data). + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {number} position - The field position. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetPosition.js + */ + ApiPivotField.prototype.SetPosition = function (position) { + if (typeof position == "number") { + if (this.pivotField.axis === null) { + private_MakeError('The field is hidden.\n' + + 'If you need to set the position of the data field then use ApiPivotDataField.SetPosition.\n' + + 'See ApiPivotTable.GetDataFields or ApiPivotTable.GetPivotFields with dataField identifier to get ' + + 'ApiPivotDataField object'); + return; + } + if (!this.table.pivot.moveFieldInAxis(this.table.api, this.index, this.pivotField.axis, position - 1)) { + private_MakeError('Invalid position (out of range or the same).') + } + } else { + private_MakeError('Invalid type of "position".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "Position", { + get: function () { + return this.GetPosition(); + }, + set: function (position) { + this.SetPosition(position); + } + }); + + /** + * Returns a pivot field orientation value that represents the location + * of the field in the specified pivot table report. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {PivotFieldOrientationType} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetOrientation.js + */ + ApiPivotField.prototype.GetOrientation = function () { + if (this.pivotField.axis === Asc.c_oAscAxis.AxisRow) { + return "Rows"; + } else if (this.pivotField.axis === Asc.c_oAscAxis.AxisCol) { + return "Columns"; + } else if (this.pivotField.axis === Asc.c_oAscAxis.AxisPage) { + return "Filters" + } else { + return "Hidden" + } + }; + + /** + * Sets a pivot field orientation value that represents the location + * of the field in the specified pivot table report. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {PivotFieldOrientationType} type - The pivot field orientation type. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetOrientation.js + */ + ApiPivotField.prototype.SetOrientation = function (type) { + switch (type) { + case "Rows": + if (this.pivotField.axis !== Asc.c_oAscAxis.AxisRow) { + this.table.pivot.asc_moveToRowField(this.table.api, this.index); + } else { + private_MakeError('The field already has that orientation.') + } + break; + case "Columns": + if (this.pivotField.axis !== Asc.c_oAscAxis.AxisCol) { + this.table.pivot.asc_moveToColField(this.table.api, this.index); + } else { + private_MakeError('The field already has that orientation.') + } + break; + case "Filters": + if (this.pivotField.axis !== Asc.c_oAscAxis.AxisPage) { + this.table.pivot.asc_moveToPageField(this.table.api, this.index); + } else { + private_MakeError('The field already has that orientation.') + } + break; + case "Values": + this.table.pivot.asc_moveToDataField(this.table.api, this.index); + break; + case "Hidden": + this.Remove(); + break; + default: + private_MakeError('Invalid "type" value.'); + break; + } + }; + + Object.defineProperty(ApiPivotField.prototype, "Orientation", { + get: function () { + return this.GetOrientation(); + }, + set: function (type) { + this.SetOrientation(type); + } + }); + /** + * Returns a value representing the name of the specified field in the pivot table report. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetValue.js + */ + ApiPivotField.prototype.GetValue = function () { + return this.GetName(); + }; + + /** + * Sets a value representing the name of the specified field in the pivot table report. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {string} name - The name of the specified field in the pivot table report. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetValue.js + */ + ApiPivotField.prototype.SetValue = function (name) { + this.SetName(name) + }; + + Object.defineProperty(ApiPivotField.prototype, "Value", { + get: function () { + return this.GetValue(); + }, + set: function (name) { + this.SetValue(name); + } + }); + /** + * Returns a value that represents the label text for the pivot field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetCaption.js + */ + ApiPivotField.prototype.GetCaption = function () { + return this.GetName(); + }; + /** + * Sets a value that represents the label text for the pivot field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {string} caption - The label text for the pivot field. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetCaption.js + */ + ApiPivotField.prototype.SetCaption = function (caption) { + return this.SetName(caption); + }; + + Object.defineProperty(ApiPivotField.prototype, "Caption", { + get: function () { + return this.GetCaption(); + }, + set: function(caption) { + this.SetCaption(caption); + } + }); + + /** + * Returns a value representing the object name. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetName.js + */ + ApiPivotField.prototype.GetName = function () { + return this.pivotField.asc_getName() || this.GetSourceName(); + }; + + /** + * Sets a value representing the object name. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {string} name - The object name. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetName.js + */ + ApiPivotField.prototype.SetName = function (name) { + if (typeof name === 'string' && name.length > 0) { + const field = new Asc.CT_PivotField(); + field.asc_setName(name); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, field); + } else { + private_MakeError('Bad name type or empty.'); + } + + }; + + Object.defineProperty(ApiPivotField.prototype, "Name", { + get: function () { + return this.GetName(); + }, + set: function (name) { + this.SetName(name); + } + }); + /** + * Returns a source name for the pivot table field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetSourceName.js + */ + ApiPivotField.prototype.GetSourceName = function () { + return this.table.pivot.getCacheFieldName(this.index); + }; + + Object.defineProperty(ApiPivotField.prototype, "SourceName", { + get: function () { + return this.GetSourceName(); + } + }); + + /** + * Returns an index for the pivot table field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetIndex.js + */ + ApiPivotField.prototype.GetIndex = function () { + return this.index + 1; + }; + + Object.defineProperty(ApiPivotField.prototype, "Index", { + get: function () { + return this.GetIndex(); + } + }); + + /** + * Returns the ApiPivotTable object which represents the pivot table for the current field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {ApiPivotTable} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetTable.js + */ + ApiPivotField.prototype.GetTable = function () { + return this.table; + }; + + Object.defineProperty(ApiPivotField.prototype, "Table", { + get: function () { + return this.GetTable(); + } + }); + + /** + * Returns the parent object for the current field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {ApiPivotTable} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetParent.js + */ + ApiPivotField.prototype.GetParent = function () { + return this.table; + }; + + Object.defineProperty(ApiPivotField.prototype, "Parent", { + get: function () { + return this.GetParent(); + } + }); + + /** + * Returns the setting which specifies whether a pivot table field is compacted. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetLayoutCompactRow.js + */ + ApiPivotField.prototype.GetLayoutCompactRow = function () { + const pivField = this.table.pivot.asc_getPivotFields()[this.index]; + return (pivField.asc_getOutline() && pivField.asc_getCompact()); + }; + + /** + * Sets the setting which specifies whether a pivot table field is compacted. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} compact - Specifies whether a pivot table field is compacted. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetLayoutCompactRow.js + */ + ApiPivotField.prototype.SetLayoutCompactRow = function (compact) { + if (typeof compact == "boolean") { + const field = new Asc.CT_PivotField(); + const pivField = this.table.pivot.asc_getPivotFields()[this.index]; + field.asc_setCompact( (pivField.asc_getOutline() && compact) ); + pivField.asc_set(this.table.api, this.table.pivot, this.index, field); + } else { + private_MakeError('Invalid type of "compact".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "LayoutCompactRow", { + get: function () { + return this.GetLayoutCompactRow(); + }, + set: function (compact) { + this.SetLayoutCompactRow(compact); + } + }); + + /** + * The layout type of the pivot table report. + * @typedef {"Tabular" | "Outline"} PivotLayoutType + */ + + /** + * Returns the way the specified pivot table items appear — in table format or in outline format. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {PivotLayoutType} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetLayoutForm.js + */ + ApiPivotField.prototype.GetLayoutForm = function () { + return this.pivotField.asc_getOutline() ? "Outline" : "Tabular"; + }; + + /** + * Sets the way the specified pivot table items appear — in table format or in outline format. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {PivotLayoutType} type - The layout type of the pivot table report. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetLayoutForm.js + */ + ApiPivotField.prototype.SetLayoutForm = function (type) { + if (type === "Tabular" || type === "Outline") { + const newField = new Asc.CT_PivotField(); + newField.asc_setOutline(type === "Outline"); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, newField); + } else { + private_MakeError('Invalid type of "type" or invalid value.') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "LayoutForm", { + get: function () { + return this.GetLayoutForm(); + }, + set: function (type) { + this.SetLayoutForm(type); + } + }); + + /** + * Returns the setting which specifies whether to insert a page break after each field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetLayoutPageBreak.js + */ + ApiPivotField.prototype.GetLayoutPageBreak = function () { + return this.pivotField.insertPageBreak; + }; + + /** + * Sets the setting which specifies whether to insert a page break after each field. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} insert - Specifies whether to insert a page break after each field. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetLayoutPageBreak.js + */ + ApiPivotField.prototype.SetLayoutPageBreak = function (insert) { + if ( typeof insert == "boolean") { + this.pivotField.insertPageBreak = insert; + } else { + private_MakeError('Invalid type of "insert".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "LayoutPageBreak", { + get: function () { + return this.GetLayoutPageBreak(); + }, + set: function (type) { + this.SetLayoutPageBreak(type); + } + }); + + /** + * Returns the setting which specifies whether the pivot table field is currently visible in the pivot table. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetShowingInAxis.js + */ + ApiPivotField.prototype.GetShowingInAxis = function () { + return this.pivotField.axis !== null || this.pivotField.dataField; + }; + + Object.defineProperty(ApiPivotField.prototype, "ShowingInAxis", { + get: function () { + return this.GetShowingInAxis(); + } + }); + + /** + * Returns the setting which specifies whether to repeat items labels at each row. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetRepeatLabels.js + */ + ApiPivotField.prototype.GetRepeatLabels = function () { + return this.pivotField.asc_getFillDownLabelsDefault(); + }; + + /** + * Sets the setting which specifies whether to repeat items labels at each row. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} repeat - Specifies whether to repeat items labels at each row. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetRepeatLabels.js + */ + ApiPivotField.prototype.SetRepeatLabels = function (repeat) { + if (typeof repeat == "boolean") { + const field = new Asc.CT_PivotField(); + field.asc_setFillDownLabelsDefault(repeat); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, field); + } else { + private_MakeError('Invalid type of "repeat".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "RepeatLabels", { + get: function () { + return this.GetRepeatLabels(); + }, + set: function (repeat) { + this.SetRepeatLabels(repeat); + } + }); + + /** + * Returns the setting which specifies whether to insert blank rows after each item. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetLayoutBlankLine.js + */ + ApiPivotField.prototype.GetLayoutBlankLine = function () { + return this.pivotField.asc_getInsertBlankRow(); + }; + + /** + * Sets the setting which specifies whether to insert blank rows after each item. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} insert - Specifies whether to insert blank rows after each item. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetLayoutBlankLine.js + */ + ApiPivotField.prototype.SetLayoutBlankLine = function (insert) { + if (typeof insert == "boolean") { + const field = new Asc.CT_PivotField(); + field.asc_setInsertBlankRow(insert); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, field); + } else { + private_MakeError('Invalid type of "insert".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "LayoutBlankLine", { + get: function () { + return this.GetLayoutBlankLine(); + }, + set: function (insert) { + this.SetLayoutBlankLine(insert); + } + }); + + /** + * Returns the setting which specifies whether to show items with no data. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetShowAllItems.js + */ + ApiPivotField.prototype.GetShowAllItems = function () { + return this.pivotField.asc_getShowAll(); + }; + + /** + * Sets the setting which specifies whether to show items with no data. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether to show items with no data. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetShowAllItems.js + */ + ApiPivotField.prototype.SetShowAllItems = function (show) { + if (typeof show == "boolean") { + const field = new Asc.CT_PivotField(); + field.asc_setShowAll(show); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, field); + } else { + private_MakeError('Invalid type of "show".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "ShowAllItems", { + get: function () { + return this.GetShowAllItems(); + }, + set: function (show) { + this.SetShowAllItems(show); + } + }); + + /** + * Returns the setting which specifies whether to show subtotals. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetLayoutSubtotals.js + */ + ApiPivotField.prototype.GetLayoutSubtotals = function () { + return this.pivotField.asc_getDefaultSubtotal(); + }; + + /** + * Sets the setting which specifies whether to show subtotals. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} show - Specifies whether to show subtotals. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetLayoutSubtotals.js + */ + ApiPivotField.prototype.SetLayoutSubtotals = function (show) { + if (typeof show == "boolean") { + const field = new Asc.CT_PivotField(); + field.asc_setDefaultSubtotal(show); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, field); + } else { + private_MakeError('Invalid type of "show".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "LayoutSubtotals", { + get: function () { + return this.GetLayoutSubtotals(); + }, + set: function (show) { + this.SetLayoutSubtotals(show); + } + }); + + /** + * The layout subtotal location. + * @typedef { "Top" | "Bottom" } LayoutSubtotalLocationType + */ + + /** + * Returns the layout subtotal location. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {LayoutSubtotalLocationType} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetLayoutSubtotalLocation.js + */ + ApiPivotField.prototype.GetLayoutSubtotalLocation = function () { + return ( this.pivotField.asc_getSubtotalTop() ? "Top" : "Bottom" ); + }; + + /** + * Sets the layout subtotal location. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {LayoutSubtotalLocationType} type - The layout subtotal location. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetLayoutSubtotalLocation.js + */ + ApiPivotField.prototype.SetLayoutSubtotalLocation = function (type) { + if (typeof type == "string" && ( type == "Top" || type == "Bottom")) { + const field = new Asc.CT_PivotField(); + field.asc_setSubtotalTop( (type == "Top") ); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, field); + } else { + private_MakeError('Invalid type of "type" or invalid value.') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "LayoutSubtotalLocation", { + get: function () { + return this.GetLayoutSubtotalLocation(); + }, + set: function (type) { + this.SetLayoutSubtotalLocation(type); + } + }); + + /** + * Returns the text label displayed in the subtotal column or row heading in the specified pivot table report. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetSubtotalName.js + */ + ApiPivotField.prototype.GetSubtotalName = function () { + return (this.pivotField.subtotalCaption); + }; + + /** + * Sets the text label displayed in the subtotal column or row heading in the specified pivot table report. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {string} caption - The text label displayed in the subtotal column or row heading. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetSubtotalName.js + */ + ApiPivotField.prototype.SetSubtotalName = function (caption) { + if ( typeof caption == "string") { + const field = new Asc.CT_PivotField(); + field.subtotalCaption = caption.trim(); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, field); + } else { + private_MakeError('Invalid type of "caption".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "SubtotalName", { + get: function () { + return this.GetSubtotalName(); + }, + set: function (caption) { + this.SetSubtotalName(caption); + } + }); + + /** + * Subtotal pivot field types (functions for subtotals). + * @typedef {Object} PivotFieldSubtotals + * @property {boolean} Sum - Specififes whether the SUM function will be used. + * @property {boolean} Count - Specififes whether the COUNTA function will be used. + * @property {boolean} Average - Specififes whether the AVERAGE function will be used. + * @property {boolean} Max - Specififes whether the MAX function will be used. + * @property {boolean} Min - Specififes whether the MIN function will be used. + * @property {boolean} Product - Specififes whether the PRODUCT function will be used. + * @property {boolean} CountNumbers - Specififes whether the COUNT function will be used. + * @property {boolean} StdDev - Specififes whether the STDEV function will be used. + * @property {boolean} StdDevP - Specififes whether the STDEV.P function will be used. + * @property {boolean} Var - Specififes whether the VAR function will be used. + * @property {boolean} VarP - Specififes whether the VAR.P function will be used. + */ + + /** + * Returns an object that represents all subtotals. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {PivotFieldSubtotals} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetSubtotals.js + */ + ApiPivotField.prototype.GetSubtotals = function () { + const res = { + 'Sum': false, + 'Count': false, + 'Average': false, + 'Max': false, + 'Min': false, + 'Product': false, + 'CountNumbers': false, + 'StdDev': false, + 'StdDevP': false, + 'Var': false, + 'VarP': false + }; + if (this.pivotField.asc_getDefaultSubtotal()) { + const subtotals = this.pivotField.asc_getSubtotals(); + for (var i = 0; i < subtotals.length; i++) { + switch (subtotals[i]) { + case Asc.c_oAscItemType.Sum: + res['Sum'] = true; + break; + case Asc.c_oAscItemType.CountA: + res['Count'] = true; + break; + case Asc.c_oAscItemType.Avg: + res['Average'] = true; + break; + case Asc.c_oAscItemType.Max: + res['Max'] = true; + break; + case Asc.c_oAscItemType.Min: + res['Min'] = true; + break; + case Asc.c_oAscItemType.Product: + res['Product'] = true; + break; + case Asc.c_oAscItemType.Count: + res['CountNumbers'] = true; + break; + case Asc.c_oAscItemType.StdDev: + res['StdDev'] = true; + break; + case Asc.c_oAscItemType.StdDevP: + res['StdDevP'] = true; + break; + case Asc.c_oAscItemType.Var: + res['Var'] = true; + break; + case Asc.c_oAscItemType.VarP: + res['VarP'] = true; + break; + } + } + } + return res; + }; + + /** + * Sets an object that represents all subtotals. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {PivotFieldSubtotals} subtotals - An object that represents all subtotals or some of them. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetSubtotals.js + */ + ApiPivotField.prototype.SetSubtotals = function (subtotals) { + if (typeof subtotals == "object") { + const field = new Asc.CT_PivotField(); + const arr = []; + if (this.pivotField.asc_getDefaultSubtotal()) { + if (subtotals.hasOwnProperty('Sum') && subtotals['Sum']) { + arr.push(Asc.c_oAscItemType.Sum); + } + if (subtotals.hasOwnProperty('Count') && subtotals['Count']) { + arr.push(Asc.c_oAscItemType.CountA); + } + if (subtotals.hasOwnProperty('Average') && subtotals['Average']) { + arr.push(Asc.c_oAscItemType.Avg); + } + if (subtotals.hasOwnProperty('Max') && subtotals['Max']) { + arr.push(Asc.c_oAscItemType.Max); + } + if (subtotals.hasOwnProperty('Min') && subtotals['Min']) { + arr.push(Asc.c_oAscItemType.Min); + } + if (subtotals.hasOwnProperty('Product') && subtotals['Product']) { + arr.push(Asc.c_oAscItemType.Product); + } + if (subtotals.hasOwnProperty('CountNumbers') && subtotals['CountNumbers']) { + arr.push(Asc.c_oAscItemType.Count); + } + if (subtotals.hasOwnProperty('StdDev') && subtotals['StdDev']) { + arr.push(Asc.c_oAscItemType.StdDev); + } + if (subtotals.hasOwnProperty('StdDevP') && subtotals['StdDevP']) { + arr.push(Asc.c_oAscItemType.StdDevP); + } + if (subtotals.hasOwnProperty('Var') && subtotals['Var']) { + arr.push(Asc.c_oAscItemType.Var); + } + if (subtotals.hasOwnProperty('VarP') && subtotals['VarP']) { + arr.push(Asc.c_oAscItemType.VarP); + } + } + if (arr.length) { + field.asc_setSubtotals(arr); + this.pivotField.asc_set(this.table.api, this.table.pivot, this.index, field); + } + } else { + private_MakeError('Invalid type of "subtotals".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "Subtotals", { + get: function () { + return this.GetSubtotals(); + }, + set: function (subtotals) { + this.SetSubtotals(subtotals); + } + }); + + /** + * Returns the setting which specifies whether the specified field can be dragged to the column position. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetDragToColumn.js + */ + ApiPivotField.prototype.GetDragToColumn = function () { + return this.pivotField.dragToCol; + }; + + /** + * Sets the setting which specifies whether the specified field can be dragged to the column position. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} flag - Specifies whether the specified field can be dragged to the column position. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetDragToColumn.js + */ + ApiPivotField.prototype.SetDragToColumn = function (flag) { + if (typeof flag == "boolean") { + this.pivotField.dragToCol = flag; + } else { + private_MakeError('Invalid type of "flag".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "DragToColumn", { + get: function () { + return this.GetDragToColumn(); + }, + set: function (flag) { + this.SetDragToColumn(flag); + } + }); + + /** + * Returns the setting which specifies whether the specified field can be dragged to the row position. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetDragToRow.js + */ + ApiPivotField.prototype.GetDragToRow = function () { + return this.pivotField.dragToRow; + }; + + /** + * Sets the setting which specifies whether the specified field can be dragged to the row position. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} flag - Specifies whether the specified field can be dragged to the row position. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetDragToRow.js + */ + ApiPivotField.prototype.SetDragToRow = function (flag) { + if (typeof flag == "boolean") { + this.pivotField.dragToRow = flag; + } else { + private_MakeError('Invalid type of "flag".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "DragToRow", { + get: function () { + return this.GetDragToRow(); + }, + set: function (flag) { + this.SetDragToRow(flag); + } + }); + + /** + * Returns the setting which specifies whether the specified field can be dragged to the data position. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetDragToData.js + */ + ApiPivotField.prototype.GetDragToData = function () { + return this.pivotField.dragToData; + }; + + /** + * Sets the setting which specifies whether the specified field can be dragged to the data position. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} flag - Specifies whether the specified field can be dragged to the data position. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetDragToData.js + */ + ApiPivotField.prototype.SetDragToData = function (flag) { + if (typeof flag == "boolean") { + this.pivotField.dragToData = flag; + } else { + private_MakeError('Invalid type of "flag".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "DragToData", { + get: function () { + return this.GetDragToData(); + }, + set: function (flag) { + this.SetDragToData(flag); + } + }); + + /** + * Returns the setting which specifies whether the specified field can be dragged to the page position. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetDragToPage.js + */ + ApiPivotField.prototype.GetDragToPage = function () { + return this.pivotField.dragToPage; + }; + + /** + * Sets the setting which specifies whether the specified field can be dragged to the page position. + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @param {boolean} flag - Specifies whether the specified field can be dragged to the page position. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/SetDragToPage.js + */ + ApiPivotField.prototype.SetDragToPage = function (flag) { + if (typeof flag == "boolean") { + this.pivotField.dragToPage = flag; + } else { + private_MakeError('Invalid type of "flag".') + } + }; + + Object.defineProperty(ApiPivotField.prototype, "DragToPage", { + get: function () { + return this.GetDragToPage(); + }, + set: function (flag) { + this.SetDragToPage(flag); + } + }); + + /** + * Returns the current page which is displayed for the page field (valid only for page fields). + * @memberof ApiPivotField + * @typeofeditors ["CSE"] + * @returns {string | number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotField/Methods/GetCurrentPage.js + */ + ApiPivotField.prototype.GetCurrentPage = function () { + const pageFields = this.table.pivot.asc_getPageFields(); + const t = this; + const pageIndex = pageFields.findIndex(function(pageField) { + return pageField.asc_getIndex() === t.index; + }); + if (this.pivotField.axis === Asc.c_oAscAxis.AxisPage) { + const val = this.table.pivot.getPageFieldCellValue(pageIndex); + return val.text || val.number || val.multiText; + } else { + private_MakeError("It is not possible from this field."); + } + }; + + Object.defineProperty(ApiPivotField.prototype, "CurrentPage", { + get: function () { + return this.GetCurrentPage(); + } + }); + + ApiPivotField.prototype.GetFunction = function () { + private_MakeError('This method can only be called on a data field.\n' + + 'See ApiPivotTable.GetDataFields or ApiPivotTable.GetPivotFields with dataField identifier to get ApiPivotDataField object'); + return null; + }; + ApiPivotField.prototype.SetFunction = function () { + private_MakeError('This method can only be called on a data field.\n' + + 'See ApiPivotTable.GetDataFields or ApiPivotTable.GetPivotFields with dataField identifier to get ApiPivotDataField object'); + return null; + }; + + Object.defineProperty(ApiPivotField.prototype, "Function", { + get: function () { + return this.GetFunction(); + }, + set: function () { + this.SetFunction() + } + }); + + ApiPivotField.prototype.GetNumberFormat = function () { + private_MakeError('This method can only be called on a data field.\n' + + 'See ApiPivotTable.GetDataFields or ApiPivotTable.GetPivotFields with dataField identifier to get ApiPivotDataField object'); + return null; + }; + ApiPivotField.prototype.SetNumberFormat = function () { + private_MakeError('This method can only be called on a data field.\n' + + 'See ApiPivotTable.GetDataFields or ApiPivotTable.GetPivotFields with dataField identifier to get ApiPivotDataField object'); + return null; + }; + + Object.defineProperty(ApiPivotField.prototype, "NumberFormat", { + get: function () { + return this.GetNumberFormat(); + }, + set: function () { + this.SetNumberFormat() + } + }); + + //------------------------------------------------------------------------------------------------------------------ + // + // ApiPivotItem + // + //------------------------------------------------------------------------------------------------------------------ + + /* Attributes */ + + /** + * Returns a name of the pivot item. + * @memberof ApiPivotItem + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotItem/Methods/GetName.js + */ + ApiPivotItem.prototype.GetName = function () { + if (this.pivotItem.n) { + return this.pivotItem.n; + } + const pivot = this.field.table.pivot; + const cacheField = pivot.asc_getCacheFields()[this.field.index]; + const sharedItem = cacheField.getGroupOrSharedItem(this.pivotItem.x); + if (sharedItem) { + return sharedItem.getCellValue().getTextValue(); + } + }; + + Object.defineProperty(ApiPivotItem.prototype, "Name", { + get: function () { + return this.GetName(); + } + }); + + /** + * Returns a caption of the pivot item. + * @memberof ApiPivotItem + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotItem/Methods/GetCaption.js + */ + ApiPivotItem.prototype.GetCaption = function () { + return this.GetName(); + }; + + Object.defineProperty(ApiPivotItem.prototype, "Caption", { + get: function () { + return this.GetCaption(); + } + }); + + /** + * Returns a name of the specified item in the pivot table field. + * @memberof ApiPivotItem + * @typeofeditors ["CSE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotItem/Methods/GetValue.js + */ + ApiPivotItem.prototype.GetValue = function () { + return this.GetName(); + }; + + Object.defineProperty(ApiPivotItem.prototype, "Value", { + get: function () { + return this.GetValue(); + } + }); + + /** + * Returns a parent of the pivot item. + * @memberof ApiPivotItem + * @typeofeditors ["CSE"] + * @returns {ApiPivotField} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPivotItem/Methods/GetParent.js + */ + ApiPivotItem.prototype.GetParent = function () { + return this.field; + }; + + Object.defineProperty(ApiPivotItem.prototype, "Parent", { + get: function () { + return this.GetParent(); + } + }); + + Api.prototype["Format"] = Api.prototype.Format; + Api.prototype["AddSheet"] = Api.prototype.AddSheet; + Api.prototype["GetSheets"] = Api.prototype.GetSheets; + Api.prototype["GetActiveSheet"] = Api.prototype.GetActiveSheet; + Api.prototype["GetLocale"] = Api.prototype.GetLocale; + Api.prototype["SetLocale"] = Api.prototype.SetLocale; + Api.prototype["GetSheet"] = Api.prototype.GetSheet; + Api.prototype["GetThemesColors"] = Api.prototype.GetThemesColors; + Api.prototype["SetThemeColors"] = Api.prototype.SetThemeColors; + Api.prototype["CreateNewHistoryPoint"] = Api.prototype.CreateNewHistoryPoint; + Api.prototype["CreateColorFromRGB"] = Api.prototype.CreateColorFromRGB; + Api.prototype["CreateColorByName"] = Api.prototype.CreateColorByName; + Api.prototype["Intersect"] = Api.prototype.Intersect; + Api.prototype["GetSelection"] = Api.prototype.GetSelection; + Api.prototype["AddDefName"] = Api.prototype.AddDefName; + Api.prototype["GetDefName"] = Api.prototype.GetDefName; + Api.prototype["Save"] = Api.prototype.Save; + Api.prototype["GetMailMergeData"] = Api.prototype.GetMailMergeData; + + Api.prototype["GetRange"] = Api.prototype.GetRange; + + Api.prototype["RecalculateAllFormulas"] = Api.prototype.RecalculateAllFormulas; + Api.prototype["AddComment"] = Api.prototype.AddComment; + Api.prototype["GetComments"] = Api.prototype.GetComments; + Api.prototype["GetAllComments"] = Api.prototype.GetAllComments; + Api.prototype["GetCommentById"] = Api.prototype.GetCommentById; + Api.prototype["SetFreezePanesType"] = Api.prototype.SetFreezePanesType; + Api.prototype["GetFreezePanesType"] = Api.prototype.GetFreezePanesType; + Api.prototype["GetDocumentInfo"] = Api.prototype.GetDocumentInfo; + + Api.prototype["AddCustomFunction"] = Api.prototype.AddCustomFunction; + Api.prototype["RemoveCustomFunction"] = Api.prototype.RemoveCustomFunction; + Api.prototype["ClearCustomFunctions"] = Api.prototype.ClearCustomFunctions; + Api.prototype["AddCustomFunctionLibrary"] = Api.prototype.AddCustomFunctionLibrary; + + Api.prototype["GetReferenceStyle"] = Api.prototype.GetReferenceStyle; + Api.prototype["SetReferenceStyle"] = Api.prototype.SetReferenceStyle; + + Api.prototype["GetWorksheetFunction"] = Api.prototype.GetWorksheetFunction; + Api.prototype["InsertPivotExistingWorksheet"] = Api.prototype.InsertPivotExistingWorksheet; + Api.prototype["InsertPivotNewWorksheet"] = Api.prototype.InsertPivotNewWorksheet; + Api.prototype["GetPivotByName"] = Api.prototype.GetPivotByName; + Api.prototype["RefreshAllPivots"] = Api.prototype.RefreshAllPivots; + Api.prototype["GetAllPivotTables"] = Api.prototype.GetAllPivotTables; + + ApiWorksheet.prototype["GetVisible"] = ApiWorksheet.prototype.GetVisible; + ApiWorksheet.prototype["SetVisible"] = ApiWorksheet.prototype.SetVisible; + ApiWorksheet.prototype["SetActive"] = ApiWorksheet.prototype.SetActive; + ApiWorksheet.prototype["GetActiveCell"] = ApiWorksheet.prototype.GetActiveCell; + ApiWorksheet.prototype["GetSelection"] = ApiWorksheet.prototype.GetSelection; + ApiWorksheet.prototype["GetCells"] = ApiWorksheet.prototype.GetCells; + ApiWorksheet.prototype["GetCols"] = ApiWorksheet.prototype.GetCols; + ApiWorksheet.prototype["GetRows"] = ApiWorksheet.prototype.GetRows; + ApiWorksheet.prototype["GetUsedRange"] = ApiWorksheet.prototype.GetUsedRange; + ApiWorksheet.prototype["GetName"] = ApiWorksheet.prototype.GetName; + ApiWorksheet.prototype["SetName"] = ApiWorksheet.prototype.SetName; + ApiWorksheet.prototype["GetIndex"] = ApiWorksheet.prototype.GetIndex; + ApiWorksheet.prototype["GetRange"] = ApiWorksheet.prototype.GetRange; + ApiWorksheet.prototype["GetRangeByNumber"] = ApiWorksheet.prototype.GetRangeByNumber; + ApiWorksheet.prototype["FormatAsTable"] = ApiWorksheet.prototype.FormatAsTable; + ApiWorksheet.prototype["SetColumnWidth"] = ApiWorksheet.prototype.SetColumnWidth; + ApiWorksheet.prototype["SetRowHeight"] = ApiWorksheet.prototype.SetRowHeight; + ApiWorksheet.prototype["SetDisplayGridlines"] = ApiWorksheet.prototype.SetDisplayGridlines; + ApiWorksheet.prototype["SetDisplayHeadings"] = ApiWorksheet.prototype.SetDisplayHeadings; + ApiWorksheet.prototype["SetLeftMargin"] = ApiWorksheet.prototype.SetLeftMargin; + ApiWorksheet.prototype["GetLeftMargin"] = ApiWorksheet.prototype.GetLeftMargin; + ApiWorksheet.prototype["SetRightMargin"] = ApiWorksheet.prototype.SetRightMargin; + ApiWorksheet.prototype["GetRightMargin"] = ApiWorksheet.prototype.GetRightMargin; + ApiWorksheet.prototype["SetTopMargin"] = ApiWorksheet.prototype.SetTopMargin; + ApiWorksheet.prototype["GetTopMargin"] = ApiWorksheet.prototype.GetTopMargin; + ApiWorksheet.prototype["SetBottomMargin"] = ApiWorksheet.prototype.SetBottomMargin; + ApiWorksheet.prototype["GetBottomMargin"] = ApiWorksheet.prototype.GetBottomMargin; + ApiWorksheet.prototype["SetPageOrientation"] = ApiWorksheet.prototype.SetPageOrientation; + ApiWorksheet.prototype["GetPageOrientation"] = ApiWorksheet.prototype.GetPageOrientation; + ApiWorksheet.prototype["GetPrintHeadings"] = ApiWorksheet.prototype.GetPrintHeadings; + ApiWorksheet.prototype["SetPrintHeadings"] = ApiWorksheet.prototype.SetPrintHeadings; + ApiWorksheet.prototype["GetPrintGridlines"] = ApiWorksheet.prototype.GetPrintGridlines; + ApiWorksheet.prototype["SetPrintGridlines"] = ApiWorksheet.prototype.SetPrintGridlines; + ApiWorksheet.prototype["GetDefNames"] = ApiWorksheet.prototype.GetDefNames; + ApiWorksheet.prototype["GetDefName"] = ApiWorksheet.prototype.GetDefName; + ApiWorksheet.prototype["AddDefName"] = ApiWorksheet.prototype.AddDefName; + ApiWorksheet.prototype["GetComments"] = ApiWorksheet.prototype.GetComments; + ApiWorksheet.prototype["Delete"] = ApiWorksheet.prototype.Delete; + ApiWorksheet.prototype["SetHyperlink"] = ApiWorksheet.prototype.SetHyperlink; + ApiWorksheet.prototype["AddChart"] = ApiWorksheet.prototype.AddChart; ApiWorksheet.prototype["AddShape"] = ApiWorksheet.prototype.AddShape; ApiWorksheet.prototype["AddImage"] = ApiWorksheet.prototype.AddImage; ApiWorksheet.prototype["AddOleObject"] = ApiWorksheet.prototype.AddOleObject; @@ -13066,6 +17097,9 @@ ApiWorksheet.prototype["GetProtectedRange"] = ApiWorksheet.prototype.GetProtectedRange; ApiWorksheet.prototype["GetAllProtectedRanges"] = ApiWorksheet.prototype.GetAllProtectedRanges; ApiWorksheet.prototype["Paste"] = ApiWorksheet.prototype.Paste; + ApiWorksheet.prototype["GetPivotByName"] = ApiWorksheet.prototype.GetPivotByName; + ApiWorksheet.prototype["GetAllPivotTables"] = ApiWorksheet.prototype.GetAllPivotTables; + ApiWorksheet.prototype["RefreshAllPivots"] = ApiWorksheet.prototype.RefreshAllPivots; ApiRange.prototype["GetClassType"] = ApiRange.prototype.GetClassType; ApiRange.prototype["GetRow"] = ApiRange.prototype.GetRow; @@ -13130,6 +17164,7 @@ ApiRange.prototype["Replace"] = ApiRange.prototype.Replace; ApiRange.prototype["GetCharacters"] = ApiRange.prototype.GetCharacters; ApiRange.prototype["PasteSpecial"] = ApiRange.prototype.PasteSpecial; + ApiRange.prototype["GetPivotTable"] = ApiRange.prototype.GetPivotTable; ApiDrawing.prototype["GetClassType"] = ApiDrawing.prototype.GetClassType; @@ -13147,52 +17182,19 @@ ApiShape.prototype["GetContent"] = ApiShape.prototype.GetContent; ApiShape.prototype["SetVerticalTextAlign"] = ApiShape.prototype.SetVerticalTextAlign; - ApiChart.prototype["GetClassType"] = ApiChart.prototype.GetClassType; - ApiChart.prototype["SetTitle"] = ApiChart.prototype.SetTitle; - ApiChart.prototype["SetHorAxisTitle"] = ApiChart.prototype.SetHorAxisTitle; - ApiChart.prototype["SetVerAxisTitle"] = ApiChart.prototype.SetVerAxisTitle; - ApiChart.prototype["SetVerAxisOrientation"] = ApiChart.prototype.SetVerAxisOrientation; - ApiChart.prototype["SetHorAxisOrientation"] = ApiChart.prototype.SetHorAxisOrientation; - ApiChart.prototype["SetLegendPos"] = ApiChart.prototype.SetLegendPos; - ApiChart.prototype["SetLegendFontSize"] = ApiChart.prototype.SetLegendFontSize; - ApiChart.prototype["SetShowDataLabels"] = ApiChart.prototype.SetShowDataLabels; - ApiChart.prototype["SetShowPointDataLabel"] = ApiChart.prototype.SetShowPointDataLabel; - ApiChart.prototype["SetVertAxisTickLabelPosition"] = ApiChart.prototype.SetVertAxisTickLabelPosition; - ApiChart.prototype["SetHorAxisTickLabelPosition"] = ApiChart.prototype.SetHorAxisTickLabelPosition; - - ApiChart.prototype["SetHorAxisMajorTickMark"] = ApiChart.prototype.SetHorAxisMajorTickMark; - ApiChart.prototype["SetHorAxisMinorTickMark"] = ApiChart.prototype.SetHorAxisMinorTickMark; - ApiChart.prototype["SetVertAxisMajorTickMark"] = ApiChart.prototype.SetVertAxisMajorTickMark; - ApiChart.prototype["SetVertAxisMinorTickMark"] = ApiChart.prototype.SetVertAxisMinorTickMark; - - - - ApiChart.prototype["SetMajorVerticalGridlines"] = ApiChart.prototype.SetMajorVerticalGridlines; - ApiChart.prototype["SetMinorVerticalGridlines"] = ApiChart.prototype.SetMinorVerticalGridlines; - ApiChart.prototype["SetMajorHorizontalGridlines"] = ApiChart.prototype.SetMajorHorizontalGridlines; - ApiChart.prototype["SetMinorHorizontalGridlines"] = ApiChart.prototype.SetMinorHorizontalGridlines; - ApiChart.prototype["SetHorAxisLablesFontSize"] = ApiChart.prototype.SetHorAxisLablesFontSize; - ApiChart.prototype["SetVertAxisLablesFontSize"] = ApiChart.prototype.SetVertAxisLablesFontSize; - ApiChart.prototype["ApplyChartStyle"] = ApiChart.prototype.ApplyChartStyle; + + ApiChart.prototype["SetSeriaValues"] = ApiChart.prototype.SetSeriaValues; ApiChart.prototype["SetSeriaXValues"] = ApiChart.prototype.SetSeriaXValues; ApiChart.prototype["SetSeriaName"] = ApiChart.prototype.SetSeriaName; ApiChart.prototype["SetCatFormula"] = ApiChart.prototype.SetCatFormula; ApiChart.prototype["AddSeria"] = ApiChart.prototype.AddSeria; - ApiChart.prototype["RemoveSeria"] = ApiChart.prototype.RemoveSeria; - ApiChart.prototype["SetPlotAreaFill"] = ApiChart.prototype.SetPlotAreaFill; - ApiChart.prototype["SetPlotAreaOutLine"] = ApiChart.prototype.SetPlotAreaOutLine; - ApiChart.prototype["SetSeriesFill"] = ApiChart.prototype.SetSeriesFill; - ApiChart.prototype["SetSeriesOutLine"] = ApiChart.prototype.SetSeriesOutLine; - ApiChart.prototype["SetDataPointFill"] = ApiChart.prototype.SetDataPointFill; - ApiChart.prototype["SetDataPointOutLine"] = ApiChart.prototype.SetDataPointOutLine; - ApiChart.prototype["SetMarkerFill"] = ApiChart.prototype.SetMarkerFill; - ApiChart.prototype["SetMarkerOutLine"] = ApiChart.prototype.SetMarkerOutLine; - ApiChart.prototype["SetTitleFill"] = ApiChart.prototype.SetTitleFill; - ApiChart.prototype["SetTitleOutLine"] = ApiChart.prototype.SetTitleOutLine; - ApiChart.prototype["SetLegendFill"] = ApiChart.prototype.SetLegendFill; - ApiChart.prototype["SetLegendOutLine"] = ApiChart.prototype.SetLegendOutLine; - ApiChart.prototype["SetAxieNumFormat"] = ApiChart.prototype.SetAxieNumFormat; + ApiChart.prototype["SetSize"] = ApiChart.prototype.SetSize = ApiDrawing.prototype.SetSize; + ApiChart.prototype["SetPosition"] = ApiChart.prototype.SetPosition = ApiDrawing.prototype.SetPosition; + ApiChart.prototype["GetWidth"] = ApiChart.prototype.GetWidth = ApiDrawing.prototype.GetWidth; + ApiChart.prototype["GetHeight"] = ApiChart.prototype.GetHeight = ApiDrawing.prototype.GetHeight; + ApiChart.prototype["GetLockValue"] = ApiChart.prototype.GetLockValue = ApiDrawing.prototype.GetLockValue; + ApiChart.prototype["SetLockValue"] = ApiChart.prototype.SetLockValue = ApiDrawing.prototype.SetLockValue; ApiOleObject.prototype["GetClassType"] = ApiOleObject.prototype.GetClassType; ApiOleObject.prototype["SetData"] = ApiOleObject.prototype.SetData; @@ -13236,6 +17238,7 @@ ApiCommentReply.prototype["GetClassType"] = ApiCommentReply.prototype.GetClassType; ApiCommentReply.prototype["GetText"] = ApiCommentReply.prototype.GetText; + ApiCommentReply.prototype["SetText"] = ApiCommentReply.prototype.SetText; ApiCommentReply.prototype["SetTextGetAuthorName"] = ApiCommentReply.prototype.SetTextGetAuthorName; ApiCommentReply.prototype["GetAuthorName"] = ApiCommentReply.prototype.GetAuthorName; ApiCommentReply.prototype["SetAuthorName"] = ApiCommentReply.prototype.SetAuthorName; @@ -13294,6 +17297,7 @@ ApiProtectedRange.prototype["AddUser"] = ApiProtectedRange.prototype.AddUser; ApiProtectedRange.prototype["DeleteUser"] = ApiProtectedRange.prototype.DeleteUser; ApiProtectedRange.prototype["GetAllUsers"] = ApiProtectedRange.prototype.GetAllUsers; + ApiProtectedRange.prototype["SetAnyoneType"] = ApiProtectedRange.prototype.SetAnyoneType; ApiProtectedRange.prototype["GetUser"] = ApiProtectedRange.prototype.GetUser; ApiProtectedRangeUserInfo.prototype["GetName"] = ApiProtectedRangeUserInfo.prototype.GetName; @@ -13345,6 +17349,7 @@ ApiWorksheetFunction.prototype["CHIDIST"] = ApiWorksheetFunction.prototype.CHIDIST; ApiWorksheetFunction.prototype["CHIINV"] = ApiWorksheetFunction.prototype.CHIINV; ApiWorksheetFunction.prototype["CONFIDENCE"] = ApiWorksheetFunction.prototype.CONFIDENCE; + ApiWorksheetFunction.prototype["CHITEST"] = ApiWorksheetFunction.prototype.CHITEST; ApiWorksheetFunction.prototype["COUNT"] = ApiWorksheetFunction.prototype.COUNT; ApiWorksheetFunction.prototype["COUNTA"] = ApiWorksheetFunction.prototype.COUNTA; ApiWorksheetFunction.prototype["COUNTBLANK"] = ApiWorksheetFunction.prototype.COUNTBLANK; @@ -13655,7 +17660,10 @@ ApiWorksheetFunction.prototype["BETA_DIST"] = ApiWorksheetFunction.prototype.BETA_DIST; ApiWorksheetFunction.prototype["BETA_INV"] = ApiWorksheetFunction.prototype.BETA_INV; ApiWorksheetFunction.prototype["BINOM_DIST"] = ApiWorksheetFunction.prototype.BINOM_DIST; + ApiWorksheetFunction.prototype["BINOM_DIST_RANGE"]= ApiWorksheetFunction.prototype.BINOM_DIST_RANGE; ApiWorksheetFunction.prototype["BINOM_INV"] = ApiWorksheetFunction.prototype.BINOM_INV; + ApiWorksheetFunction.prototype["CHISQ_DIST"] = ApiWorksheetFunction.prototype.CHISQ_DIST; + ApiWorksheetFunction.prototype["CHISQ_DIST_RT"] = ApiWorksheetFunction.prototype.CHISQ_DIST_RT; ApiWorksheetFunction.prototype["CHISQ_INV"] = ApiWorksheetFunction.prototype.CHISQ_INV; ApiWorksheetFunction.prototype["CHISQ_INV_RT"] = ApiWorksheetFunction.prototype.CHISQ_INV_RT; ApiWorksheetFunction.prototype["CONFIDENCE_NORM"] = ApiWorksheetFunction.prototype.CONFIDENCE_NORM; @@ -13702,7 +17710,156 @@ ApiWorksheetFunction.prototype["FLOOR_MATH"] = ApiWorksheetFunction.prototype.FLOOR_MATH; ApiWorksheetFunction.prototype["ISO_CEILING"] = ApiWorksheetFunction.prototype.ISO_CEILING; ApiWorksheetFunction.prototype["ERROR_TYPE"] = ApiWorksheetFunction.prototype.ERROR_TYPE; - + ApiWorksheetFunction.prototype["FORECAST_ETS_CONFINT"] = ApiWorksheetFunction.prototype.FORECAST_ETS_CONFINT; + ApiWorksheetFunction.prototype["FORECAST_ETS_SEASONALITY"] = ApiWorksheetFunction.prototype.FORECAST_ETS_SEASONALITY; + ApiWorksheetFunction.prototype["FORECAST_ETS_STAT"] = ApiWorksheetFunction.prototype.FORECAST_ETS_STAT; + ApiWorksheetFunction.prototype["F_DIST_RT"] = ApiWorksheetFunction.prototype.F_DIST_RT; + ApiWorksheetFunction.prototype["F_INV_RT"] = ApiWorksheetFunction.prototype.F_INV_RT; + ApiWorksheetFunction.prototype["NORM_S_DIST"] = ApiWorksheetFunction.prototype.NORM_S_DIST; + ApiWorksheetFunction.prototype["NORM_S_INV"] = ApiWorksheetFunction.prototype.NORM_S_INV; + ApiWorksheetFunction.prototype["T_DIST_2T"] = ApiWorksheetFunction.prototype.T_DIST_2T; + ApiWorksheetFunction.prototype["T_DIST_RT"] = ApiWorksheetFunction.prototype.T_DIST_RT; + ApiWorksheetFunction.prototype["T_INV_2T"] = ApiWorksheetFunction.prototype.T_INV_2T; + + + ApiPivotTable.prototype["AddDataField"] = ApiPivotTable.prototype.AddDataField; + ApiPivotTable.prototype["AddFields"] = ApiPivotTable.prototype.AddFields; + ApiPivotTable.prototype["ClearAllFilters"] = ApiPivotTable.prototype.ClearAllFilters; + ApiPivotTable.prototype["ClearTable"] = ApiPivotTable.prototype.ClearTable + ApiPivotTable.prototype["GetData"] = ApiPivotTable.prototype.GetData; + ApiPivotTable.prototype["GetPivotData"] = ApiPivotTable.prototype.GetPivotData; + ApiPivotTable.prototype["GetPivotFields"] = ApiPivotTable.prototype.GetPivotFields; + ApiPivotTable.prototype["PivotValueCell"] = ApiPivotTable.prototype.PivotValueCell; + ApiPivotTable.prototype["ShowDetails"] = ApiPivotTable.prototype.ShowDetails; + ApiPivotTable.prototype["RefreshTable"] = ApiPivotTable.prototype.RefreshTable; + ApiPivotTable.prototype["Update"] = ApiPivotTable.prototype.Update; + ApiPivotTable.prototype["SetRepeatAllLabels"] = ApiPivotTable.prototype.SetRepeatAllLabels; + ApiPivotTable.prototype["SetRowAxisLayout"] = ApiPivotTable.prototype.SetRowAxisLayout; + ApiPivotTable.prototype["SetSubtotalLocation"] = ApiPivotTable.prototype.SetSubtotalLocation; + ApiPivotTable.prototype["RemoveField"] = ApiPivotTable.prototype.RemoveField; + ApiPivotTable.prototype["MoveField"] = ApiPivotTable.prototype.MoveField; + ApiPivotTable.prototype["Select"] = ApiPivotTable.prototype.Select; + ApiPivotTable.prototype["GetColumnFields"] = ApiPivotTable.prototype.GetColumnFields; + ApiPivotTable.prototype["GetDataFields"] = ApiPivotTable.prototype.GetDataFields; + ApiPivotTable.prototype["GetHiddenFields"] = ApiPivotTable.prototype.GetHiddenFields; + ApiPivotTable.prototype["GetVisibleFields"] = ApiPivotTable.prototype.GetVisibleFields; + ApiPivotTable.prototype["GetPageFields"] = ApiPivotTable.prototype.GetPageFields; + ApiPivotTable.prototype["GetRowFields"] = ApiPivotTable.prototype.GetRowFields; + ApiPivotTable.prototype["GetName"] = ApiPivotTable.prototype.GetName; + ApiPivotTable.prototype["SetName"] = ApiPivotTable.prototype.SetName; + ApiPivotTable.prototype["GetColumnGrand"] = ApiPivotTable.prototype.GetColumnGrand; + ApiPivotTable.prototype["SetColumnGrand"] = ApiPivotTable.prototype.SetColumnGrand; + ApiPivotTable.prototype["GetRowGrand"] = ApiPivotTable.prototype.GetRowGrand; + ApiPivotTable.prototype["SetRowGrand"] = ApiPivotTable.prototype.SetRowGrand; + ApiPivotTable.prototype["GetDisplayFieldsInReportFilterArea"] = ApiPivotTable.prototype.GetDisplayFieldsInReportFilterArea; + ApiPivotTable.prototype["SetDisplayFieldsInReportFilterArea"] = ApiPivotTable.prototype.SetDisplayFieldsInReportFilterArea; + ApiPivotTable.prototype["GetDisplayFieldCaptions"] = ApiPivotTable.prototype.GetDisplayFieldCaptions; + ApiPivotTable.prototype["SetDisplayFieldCaptions"] = ApiPivotTable.prototype.SetDisplayFieldCaptions; + ApiPivotTable.prototype["GetTitle"] = ApiPivotTable.prototype.GetTitle; + ApiPivotTable.prototype["SetTitle"] = ApiPivotTable.prototype.SetTitle; + ApiPivotTable.prototype["GetDescription"] = ApiPivotTable.prototype.GetDescription; + ApiPivotTable.prototype["SetDescription"] = ApiPivotTable.prototype.SetDescription; + ApiPivotTable.prototype["GetStyleName"] = ApiPivotTable.prototype.GetStyleName; + ApiPivotTable.prototype["SetStyleName"] = ApiPivotTable.prototype.SetStyleName; + ApiPivotTable.prototype["GetTableStyleRowHeaders"] = ApiPivotTable.prototype.GetTableStyleRowHeaders; + ApiPivotTable.prototype["SetTableStyleRowHeaders"] = ApiPivotTable.prototype.SetTableStyleRowHeaders; + ApiPivotTable.prototype["GetTableStyleColumnHeaders"] = ApiPivotTable.prototype.GetTableStyleColumnHeaders; + ApiPivotTable.prototype["SetTableStyleColumnHeaders"] = ApiPivotTable.prototype.SetTableStyleColumnHeaders; + ApiPivotTable.prototype["GetTableStyleRowStripes"] = ApiPivotTable.prototype.GetTableStyleRowStripes; + ApiPivotTable.prototype["SetTableStyleRowStripes"] = ApiPivotTable.prototype.SetTableStyleRowStripes; + ApiPivotTable.prototype["GetTableStyleColumnStripes"] = ApiPivotTable.prototype.GetTableStyleColumnStripes; + ApiPivotTable.prototype["SetTableStyleColumnStripes"] = ApiPivotTable.prototype.SetTableStyleColumnStripes; + ApiPivotTable.prototype["GetSource"] = ApiPivotTable.prototype.GetSource; + ApiPivotTable.prototype["SetSource"] = ApiPivotTable.prototype.SetSource; + ApiPivotTable.prototype["GetColumnRange"] = ApiPivotTable.prototype.GetColumnRange; + ApiPivotTable.prototype["GetRowRange"] = ApiPivotTable.prototype.GetRowRange; + ApiPivotTable.prototype["GetDataBodyRange"] = ApiPivotTable.prototype.GetDataBodyRange; + ApiPivotTable.prototype["GetTableRange1"] = ApiPivotTable.prototype.GetTableRange1; + ApiPivotTable.prototype["GetTableRange2"] = ApiPivotTable.prototype.GetTableRange2; + ApiPivotTable.prototype["GetGrandTotalName"] = ApiPivotTable.prototype.GetGrandTotalName; + ApiPivotTable.prototype["SetGrandTotalName"] = ApiPivotTable.prototype.SetGrandTotalName; + ApiPivotTable.prototype["SetLayoutBlankLine"] = ApiPivotTable.prototype.SetLayoutBlankLine; + ApiPivotTable.prototype["SetLayoutSubtotals"] = ApiPivotTable.prototype.SetLayoutSubtotals; + ApiPivotTable.prototype["GetParent"] = ApiPivotTable.prototype.GetParent; + + ApiPivotDataField.prototype["Remove"] = ApiPivotDataField.prototype.Remove; + ApiPivotDataField.prototype["Move"] = ApiPivotDataField.prototype.Move; + ApiPivotDataField.prototype["SetFunction"] = ApiPivotDataField.prototype.SetFunction; + ApiPivotDataField.prototype["GetFunction"] = ApiPivotDataField.prototype.GetFunction; + ApiPivotDataField.prototype["GetPosition"] = ApiPivotDataField.prototype.GetPosition; + ApiPivotDataField.prototype["SetPosition"] = ApiPivotDataField.prototype.SetPosition; + ApiPivotDataField.prototype["GetOrientation"] = ApiPivotDataField.prototype.GetOrientation; + ApiPivotDataField.prototype["GetValue"] = ApiPivotDataField.prototype.GetValue; + ApiPivotDataField.prototype["SetValue"] = ApiPivotDataField.prototype.SetValue; + ApiPivotDataField.prototype["GetCaption"] = ApiPivotDataField.prototype.GetCaption; + ApiPivotDataField.prototype["SetCaption"] = ApiPivotDataField.prototype.SetCaption; + ApiPivotDataField.prototype["GetName"] = ApiPivotDataField.prototype.GetName; + ApiPivotDataField.prototype["SetName"] = ApiPivotDataField.prototype.SetName; + ApiPivotDataField.prototype["GetNumberFormat"] = ApiPivotDataField.prototype.GetNumberFormat; + ApiPivotDataField.prototype["SetNumberFormat"] = ApiPivotDataField.prototype.SetNumberFormat; + ApiPivotDataField.prototype["GetIndex"] = ApiPivotDataField.prototype.GetIndex; + ApiPivotDataField.prototype["GetPivotField"] = ApiPivotDataField.prototype.GetPivotField; + + ApiPivotField.prototype["ClearAllFilters"] = ApiPivotField.prototype.ClearAllFilters; + ApiPivotField.prototype["ClearLabelFilters"] = ApiPivotField.prototype.ClearLabelFilters; + ApiPivotField.prototype["ClearManualFilters"] = ApiPivotField.prototype.ClearManualFilters; + ApiPivotField.prototype["ClearValueFilters"] = ApiPivotField.prototype.ClearValueFilters; + ApiPivotField.prototype["GetPivotItems"] = ApiPivotField.prototype.GetPivotItems; + ApiPivotField.prototype["Move"] = ApiPivotField.prototype.Move; + ApiPivotField.prototype["Remove"] = ApiPivotField.prototype.Remove; + ApiPivotField.prototype["GetPosition"] = ApiPivotField.prototype.GetPosition; + ApiPivotField.prototype["SetPosition"] = ApiPivotField.prototype.SetPosition; + ApiPivotField.prototype["GetOrientation"] = ApiPivotField.prototype.GetOrientation; + ApiPivotField.prototype["SetOrientation"] = ApiPivotField.prototype.SetOrientation; + ApiPivotField.prototype["GetValue"] = ApiPivotField.prototype.GetValue; + ApiPivotField.prototype["SetValue"] = ApiPivotField.prototype.SetValue; + ApiPivotField.prototype["GetCaption"] = ApiPivotField.prototype.GetCaption; + ApiPivotField.prototype["SetCaption"] = ApiPivotField.prototype.SetCaption; + ApiPivotField.prototype["GetName"] = ApiPivotField.prototype.GetName; + ApiPivotField.prototype["SetName"] = ApiPivotField.prototype.SetName; + ApiPivotField.prototype["GetSourceName"] = ApiPivotField.prototype.GetSourceName; + ApiPivotField.prototype["GetIndex"] = ApiPivotField.prototype.GetIndex; + ApiPivotField.prototype["GetTable"] = ApiPivotField.prototype.GetTable; + ApiPivotField.prototype["GetParent"] = ApiPivotField.prototype.GetParent; + ApiPivotField.prototype["GetLayoutCompactRow"] = ApiPivotField.prototype.GetLayoutCompactRow; + ApiPivotField.prototype["SetLayoutCompactRow"] = ApiPivotField.prototype.SetLayoutCompactRow; + ApiPivotField.prototype["GetLayoutForm"] = ApiPivotField.prototype.GetLayoutForm; + ApiPivotField.prototype["SetLayoutForm"] = ApiPivotField.prototype.SetLayoutForm; + ApiPivotField.prototype["GetLayoutPageBreak"] = ApiPivotField.prototype.GetLayoutPageBreak; + ApiPivotField.prototype["SetLayoutPageBreak"] = ApiPivotField.prototype.SetLayoutPageBreak; + ApiPivotField.prototype["GetShowingInAxis"] = ApiPivotField.prototype.GetShowingInAxis; + ApiPivotField.prototype["GetRepeatLabels"] = ApiPivotField.prototype.GetRepeatLabels; + ApiPivotField.prototype["SetRepeatLabels"] = ApiPivotField.prototype.SetRepeatLabels; + ApiPivotField.prototype["GetLayoutBlankLine"] = ApiPivotField.prototype.GetLayoutBlankLine; + ApiPivotField.prototype["SetLayoutBlankLine"] = ApiPivotField.prototype.SetLayoutBlankLine; + ApiPivotField.prototype["GetShowAllItems"] = ApiPivotField.prototype.GetShowAllItems; + ApiPivotField.prototype["SetShowAllItems"] = ApiPivotField.prototype.SetShowAllItems; + ApiPivotField.prototype["GetLayoutSubtotals"] = ApiPivotField.prototype.GetLayoutSubtotals; + ApiPivotField.prototype["SetLayoutSubtotals"] = ApiPivotField.prototype.SetLayoutSubtotals; + ApiPivotField.prototype["GetLayoutSubtotalLocation"] = ApiPivotField.prototype.GetLayoutSubtotalLocation; + ApiPivotField.prototype["SetLayoutSubtotalLocation"] = ApiPivotField.prototype.SetLayoutSubtotalLocation; + ApiPivotField.prototype["GetSubtotalName"] = ApiPivotField.prototype.GetSubtotalName; + ApiPivotField.prototype["SetSubtotalName"] = ApiPivotField.prototype.SetSubtotalName; + ApiPivotField.prototype["GetSubtotals"] = ApiPivotField.prototype.GetSubtotals; + ApiPivotField.prototype["SetSubtotals"] = ApiPivotField.prototype.SetSubtotals; + ApiPivotField.prototype["GetDragToColumn"] = ApiPivotField.prototype.GetDragToColumn; + ApiPivotField.prototype["SetDragToColumn"] = ApiPivotField.prototype.SetDragToColumn; + ApiPivotField.prototype["GetDragToRow"] = ApiPivotField.prototype.GetDragToRow; + ApiPivotField.prototype["SetDragToRow"] = ApiPivotField.prototype.SetDragToRow; + ApiPivotField.prototype["GetDragToData"] = ApiPivotField.prototype.GetDragToData; + ApiPivotField.prototype["SetDragToData"] = ApiPivotField.prototype.SetDragToData; + ApiPivotField.prototype["GetDragToPage"] = ApiPivotField.prototype.GetDragToPage; + ApiPivotField.prototype["SetDragToPage"] = ApiPivotField.prototype.SetDragToPage; + ApiPivotField.prototype["GetCurrentPage"] = ApiPivotField.prototype.GetCurrentPage; + ApiPivotField.prototype["GetNumberFormat"] = ApiPivotField.prototype.GetNumberFormat; + ApiPivotField.prototype["SetNumberFormat"] = ApiPivotField.prototype.SetNumberFormat; + ApiPivotField.prototype["SetFunction"] = ApiPivotField.prototype.SetFunction; + ApiPivotField.prototype["GetFunction"] = ApiPivotField.prototype.GetFunction; + + ApiPivotItem.prototype["GetName"] = ApiPivotItem.prototype.GetName; + ApiPivotItem.prototype["GetCaption"] = ApiPivotItem.prototype.GetCaption; + ApiPivotItem.prototype["GetValue"] = ApiPivotItem.prototype.GetValue; + ApiPivotItem.prototype["GetParent"] = ApiPivotItem.prototype.GetParent; function private_SetCoords(oDrawing, oWorksheet, nExtX, nExtY, nFromCol, nColOffset, nFromRow, nRowOffset, pos) { oDrawing.x = 0; @@ -13923,4 +18080,9 @@ oldSelection && oldSelection.Select(true); } + function private_MakeError(message) { + console.error(new Error(message) ); + }; + }(window, null)); + diff --git a/cell/apiDefines.js b/cell/apiDefines.js index b9451c45da..34ac9c63ca 100644 --- a/cell/apiDefines.js +++ b/cell/apiDefines.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -116,7 +116,8 @@ var c_oAscSelectionDialogType = { var c_oAscScrollType = { ScrollVertical: 1, - ScrollHorizontal: 2 + ScrollHorizontal: 2, + ScrollInitRowsColsCount: 4 }; var c_oAscHyperlinkType = { @@ -365,7 +366,8 @@ var c_oAscVisibleAreaOleEditorBorderColor = new CColor(32, 139, 255); sheetRename: 4, sheetChangeIndex: 5, markModifiedSearch: 6, - mergeRange: 7 + mergeRange: 7, + removeRows: 8 }; var c_oAscLockNameFrozenPane = "frozenPane"; @@ -637,6 +639,12 @@ var c_oAscPopUpSelectorType = { changeSeries : 1 // fill right click mouse - series menu }; + var c_oAscCalcMode = { + auto: 0, + autoNoTable: 1, + manual: 2 + }; + //----------------------------------------------------------export---------------------------------------------------- window['AscCommonExcel'] = window['AscCommonExcel'] || {}; window['AscCommonExcel'].c_oAscDrawDepOptions = c_oAscDrawDepOptions; @@ -1093,4 +1101,10 @@ var c_oAscPopUpSelectorType = { prot['common'] = prot.common; prot['changeSeries'] = prot.changeSeries; + window['Asc']['c_oAscCalcMode'] = window['Asc'].c_oAscCalcMode = c_oAscCalcMode; + prot = c_oAscCalcMode; + prot['auto'] = prot.auto; + prot['autoNoTable'] = prot.autoNoTable; + prot['manual'] = prot.manual; + })(window); diff --git a/cell/api_plugins.js b/cell/api_plugins.js index f7e679faba..e29fa05266 100644 --- a/cell/api_plugins.js +++ b/cell/api_plugins.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -51,6 +51,7 @@ * @property {string} Time - The time when the comment was posted (in milliseconds). * @property {boolean} Solved - Specifies if the comment is resolved (**true**) or not (**false**). * @property {CommentData[]} Replies - An array containing the comment replies represented as the *CommentData* object. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/CommentData.js */ /** @@ -61,6 +62,7 @@ * @param {CommentData} oCommentData - An object which contains the comment data. * @return {string | null} - The comment ID in the string format or null if the comment cannot be added. * @since 7.3.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddComment.js */ Api.prototype["pluginMethod_AddComment"] = function (oCommentData) { if (!oCommentData) @@ -86,6 +88,7 @@ * @param {CommentData} oCommentData - An object which contains the new comment data. * @return {boolean} * @since 7.3.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ChangeComment.js */ Api.prototype["pluginMethod_ChangeComment"] = function (sId, oCommentData) { if (!oCommentData) @@ -108,6 +111,7 @@ * @typeofeditors ["CSE"] * @alias RemoveComments * @since 7.3.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveComments.js */ Api.prototype["pluginMethod_RemoveComments"] = function (arrIds) { for (let comm in arrIds) { @@ -125,6 +129,7 @@ * @alias GetAllComments * @returns {comment[]} - An array of comment objects containing the comment data. * @since 8.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetAllComments.js */ Api.prototype["pluginMethod_GetAllComments"] = function() { @@ -152,7 +157,14 @@ { // DISABLE FOR NATIVE VERSION if (window["NATIVE_EDITOR_ENJINE"]) - return; + { + if (!window.localStorage) + { + window.localStorage = {}; + window.localStorage.getItem = function(key) { return this[key]; }; + window.localStorage.setItem = function(key, value) { this[key] = value; }; + } + } if (undefined === obj) obj = AscCommon.getLocalStorageItem(customFunctionsStorageId); @@ -180,13 +192,66 @@ this.recalculateCustomFunctions(); }; + Api.prototype.addCustomFunctionsLibrary = function(sName, Func) + { + // DISABLE FOR NATIVE VERSION + if (window["NATIVE_EDITOR_ENJINE"]) + { + if (!window.localStorage) + { + window.localStorage = {}; + window.localStorage.getItem = function(key) { return this[key]; }; + window.localStorage.setItem = function(key, value) { this[key] = value; }; + } + } + + let currentValue = AscCommon.getLocalStorageItem(customFunctionsStorageId); + let libraryString = "(" + Func.toString() + ")()"; + if (!currentValue) + { + currentValue = { + "macrosArray" : [{ + "name": sName, + "value": libraryString + }] + }; + } + else + { + let arr = currentValue["macrosArray"]; + if (arr) + { + let isChanged = false; + for (let i = 0, len = arr.length; i < len; i++) + { + if (arr[i]["name"] === sName) + { + isChanged = true; + arr[i]["value"] = libraryString; + } + } + if (!isChanged) + { + arr.push({ + "name" : sName, + "value" : libraryString + }); + } + } + } + + AscCommon.setLocalStorageItem(customFunctionsStorageId, currentValue); + this.registerCustomFunctionsLibrary(currentValue); + }; + /** - * Returns local custom functions library. + * Returns a library of local custom functions. * @memberof Api * @typeofeditors ["CSE"] * @alias GetCustomFunctions - * @return {string} The custom functions library as json. + * @return {string} A library of custom functions in JSON format. * @since 8.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetCustomFunctions.js */ Api.prototype["pluginMethod_GetCustomFunctions"] = function() { @@ -203,12 +268,13 @@ }; /** - * Update local custom functions library + * Updates a library of local custom functions. * @memberof Api * @typeofeditors ["CSE"] * @alias SetCustomFunctions - * @param {string} jsonString - The custom functions library. + * @param {string} jsonString - A library of custom functions in JSON format. * @since 8.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SetCustomFunctions.js */ Api.prototype["pluginMethod_SetCustomFunctions"] = function(jsonString) { @@ -226,3 +292,5 @@ }; })(window); + + diff --git a/cell/document/empty.js b/cell/document/empty.js index 53bc53f9d4..2b54deaac4 100644 --- a/cell/document/empty.js +++ b/cell/document/empty.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/fromToJSON.js b/cell/fromToJSON.js index 4b0c2a3150..9beb5b40f0 100644 --- a/cell/fromToJSON.js +++ b/cell/fromToJSON.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/graphics/DrawingContext.js b/cell/graphics/DrawingContext.js index 7ed912e96c..4b08b0aee8 100644 --- a/cell/graphics/DrawingContext.js +++ b/cell/graphics/DrawingContext.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/graphics/pdfprinter.js b/cell/graphics/pdfprinter.js index 7d34b07469..3639fa31fa 100644 --- a/cell/graphics/pdfprinter.js +++ b/cell/graphics/pdfprinter.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/CellComment.js b/cell/model/CellComment.js index e26e3de660..df97498094 100644 --- a/cell/model/CellComment.js +++ b/cell/model/CellComment.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -634,6 +634,9 @@ CCellCommentator.prototype.isLockedComment = function(oComment, callbackFunc) { return; } + + this.worksheet._startRtlRendering(this.drawingCtx); + this.drawingCtx.setFillStyle(this.commentIconColor); var commentCell, mergedRange, nCol, nRow, x, y, metrics; var aComments = this.model.aComments; @@ -654,6 +657,12 @@ CCellCommentator.prototype.isLockedComment = function(oComment, callbackFunc) { if (0 === metrics.width || 0 === metrics.height) { continue; } + + let isClip = false; + if (this.worksheet._clipDrawingRect(this.drawingCtx, new Asc.Range(nCol, nRow, nCol, nRow))) { + isClip = true; + } + x = metrics.left + metrics.width; y = metrics.top; this.drawingCtx.beginPath(); @@ -661,8 +670,14 @@ CCellCommentator.prototype.isLockedComment = function(oComment, callbackFunc) { this.drawingCtx.lineTo(x - borderW, y); this.drawingCtx.lineTo(x - borderW, y + size); this.drawingCtx.fill(); + + if (isClip) { + this.drawingCtx.RemoveClipRect(); + } } } + + this.worksheet._endRtlRendering(); }; CCellCommentator.prototype.updateActiveComment = function () { @@ -848,7 +863,14 @@ CCellCommentator.prototype.cleanLastSelection = function() { var lastComment = this.findComment(this.lastSelectedId); if (lastComment && (metrics = this.worksheet.getCellMetrics(lastComment.nCol, lastComment.nRow, true))) { var extraOffset = 1; - this.overlayCtx.clearRect(metrics.left, metrics.top, metrics.width - extraOffset, metrics.height - extraOffset); + let x = this.worksheet.checkRtl(metrics.left); + let y = metrics.top; + let width = metrics.width - extraOffset; + if (this.worksheet.getRightToLeft()) { + x -= width; + } + let height = metrics.height - extraOffset; + this.overlayCtx.clearRect(x, y, width, height); } } }; @@ -918,23 +940,28 @@ CCellCommentator.prototype.cleanLastSelection = function() { var left = mergedRange ? mergedRange.c2 : comment.nCol; var top = mergedRange ? mergedRange.r1 : comment.nRow; + let scrollCorrectX = this.worksheet.getHorizontalScrollCorrect(); + let scrollCorrectY = this.worksheet.getScrollCorrect(); var frozenOffset = this.worksheet.getFrozenPaneOffset(); if (this.worksheet.topLeftFrozenCell) { if (comment.nCol < fvc) { frozenOffset.offsetX = 0; fvc = 0; + scrollCorrectX = 0; } if (comment.nRow < fvr) { frozenOffset.offsetY = 0; fvr = 0; + scrollCorrectY = 0; } } - pos.dReverseLeftPX = this.worksheet._getColLeft(left) - this.worksheet._getColLeft(fvc) + - headerCellsOffset.left + frozenOffset.offsetX; - pos.dLeftPX = pos.dReverseLeftPX + this.worksheet.getColumnWidth(left, 0); + pos.dReverseLeftPX = this.worksheet.checkRtl(this.worksheet._getColLeft(left) - this.worksheet._getColLeft(fvc) + + headerCellsOffset.left + frozenOffset.offsetX - scrollCorrectX); + let colWidth = (this.worksheet.getRightToLeft() ? -1 : 1) * this.worksheet.getColumnWidth(left, 0); + pos.dLeftPX = pos.dReverseLeftPX + colWidth; pos.dTopPX = this.worksheet._getRowTop(top) + ((this.worksheet._getRowHeight(top) / 2) | 0) - - this.worksheet._getRowTop(fvr) + headerCellsOffset.top + frozenOffset.offsetY; + this.worksheet._getRowTop(fvr) + headerCellsOffset.top + frozenOffset.offsetY - scrollCorrectY; pos.dLeftPX = AscCommon.AscBrowser.convertToRetinaValue(pos.dLeftPX); pos.dTopPX = AscCommon.AscBrowser.convertToRetinaValue(pos.dTopPX); @@ -949,7 +976,14 @@ CCellCommentator.prototype.cleanLastSelection = function() { var comment = this.findComment(this.lastSelectedId); if (comment && !this._checkHidden(comment) && (metrics = this.worksheet.getCellMetrics(comment.asc_getCol(), comment.asc_getRow(), true))) { - this.overlayCtx.clearRect(metrics.left, metrics.top, metrics.width, metrics.height); + let x = this.worksheet.checkRtl(metrics.left); + let y = metrics.top; + let width = metrics.width; + if (this.worksheet.getRightToLeft()) { + x -= width; + } + let height = metrics.height; + this.overlayCtx.clearRect(x, y, width, height); } } }; @@ -1004,13 +1038,31 @@ CCellCommentator.prototype.selectComment = function(id) { metrics = this.worksheet.getCellMetrics(col, row, true); if (metrics) { + + let isClip = false; + let mc = this.model.getMergedByCell(row, col); + if (this.worksheet._clipDrawingRect(this.overlayCtx, mc ? mc : new Asc.Range(col, row, col, row))) { + isClip = true; + } + var extraOffset = 1; this.overlayCtx.ctx.globalAlpha = 0.2; this.overlayCtx.beginPath(); - this.overlayCtx.clearRect(metrics.left, metrics.top, metrics.width - extraOffset, metrics.height - extraOffset); + let x = this.worksheet.checkRtl(metrics.left); + let y = metrics.top; + let width = metrics.width - extraOffset; + if (this.worksheet.getRightToLeft()) { + x -= width; + } + let height = metrics.height - extraOffset; + this.overlayCtx.clearRect(x, y, width, height); this.overlayCtx.setFillStyle(this.commentFillColor); - this.overlayCtx.fillRect(metrics.left, metrics.top, metrics.width - extraOffset, metrics.height - extraOffset); + this.overlayCtx.fillRect(x, y, width, height); this.overlayCtx.ctx.globalAlpha = 1; + + if (isClip) { + this.overlayCtx.RemoveClipRect(); + } } } }; diff --git a/cell/model/CellInfo.js b/cell/model/CellInfo.js index ffc800c319..f07461b58d 100644 --- a/cell/model/CellInfo.js +++ b/cell/model/CellInfo.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/CollaborativeEditing.js b/cell/model/CollaborativeEditing.js index 84d45b05be..4f0e1c3716 100644 --- a/cell/model/CollaborativeEditing.js +++ b/cell/model/CollaborativeEditing.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/ConditionalFormatting.js b/cell/model/ConditionalFormatting.js index 2281c658da..75bf96e5db 100644 --- a/cell/model/ConditionalFormatting.js +++ b/cell/model/ConditionalFormatting.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/DataValidation.js b/cell/model/DataValidation.js index 3ad63f26dd..df39e357b5 100644 --- a/cell/model/DataValidation.js +++ b/cell/model/DataValidation.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/DrawingObjects/DrawingDocument.js b/cell/model/DrawingObjects/DrawingDocument.js index 568c1527e5..6aab122b27 100644 --- a/cell/model/DrawingObjects/DrawingDocument.js +++ b/cell/model/DrawingObjects/DrawingDocument.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/DrawingObjects/Format/ChartSpacePrototype.js b/cell/model/DrawingObjects/Format/ChartSpacePrototype.js index 80943c42b1..cc6c608525 100644 --- a/cell/model/DrawingObjects/Format/ChartSpacePrototype.js +++ b/cell/model/DrawingObjects/Format/ChartSpacePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -38,7 +38,6 @@ var CShape = AscFormat.CShape; var CChartSpace = AscFormat.CChartSpace; -CChartSpace.prototype.getDrawingObjectsController = CShape.prototype.getDrawingObjectsController; CChartSpace.prototype.getEditorType = function() { return 0; diff --git a/cell/model/DrawingObjects/Format/GroupPrototype.js b/cell/model/DrawingObjects/Format/GroupPrototype.js index 677b9624a4..d4429bbb2b 100644 --- a/cell/model/DrawingObjects/Format/GroupPrototype.js +++ b/cell/model/DrawingObjects/Format/GroupPrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -113,8 +113,6 @@ CGroupShape.prototype.recalcBounds = function() this.recalcInfo.recalculateBounds = true; }; -CGroupShape.prototype.getDrawingObjectsController = CShape.prototype.getDrawingObjectsController; - CGroupShape.prototype.addToRecalculate = CShape.prototype.addToRecalculate; CGroupShape.prototype.convertPixToMM = CShape.prototype.convertPixToMM; CGroupShape.prototype.getHierarchy = CShape.prototype.getHierarchy; @@ -252,4 +250,18 @@ CGroupShape.prototype.recalculate = function() this.worksheet.contentChanges.Refresh(); } }; + CGroupShape.prototype.checkDrawingPartWithHistory = function() { + for (let i = 0; i < this.spTree.length; i++) { + if (this.spTree[i].checkDrawingPartWithHistory) { + this.spTree[i].checkDrawingPartWithHistory(); + } + } + }; + CGroupShape.prototype.generateLocalDrawingPart = function() { + for (let i = 0; i < this.spTree.length; i++) { + if (this.spTree[i].generateLocalDrawingPart) { + this.spTree[i].generateLocalDrawingPart(); + } + } + }; })(window); diff --git a/cell/model/DrawingObjects/Format/ImagePrototype.js b/cell/model/DrawingObjects/Format/ImagePrototype.js index 1de724fd16..09d39e5f0c 100644 --- a/cell/model/DrawingObjects/Format/ImagePrototype.js +++ b/cell/model/DrawingObjects/Format/ImagePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -45,7 +45,6 @@ CImageShape.prototype.getParentObjects = CShape.prototype.getParentObjects; CImageShape.prototype.recalculateTransform = CShape.prototype.recalculateTransform; CImageShape.prototype.recalculateBounds = CShape.prototype.recalculateBounds; CImageShape.prototype.getRotateAngle = CShape.prototype.getRotateAngle; -CImageShape.prototype.getDrawingObjectsController = CShape.prototype.getDrawingObjectsController; CImageShape.prototype.getEditorType = function() { return 0; diff --git a/cell/model/DrawingObjects/Format/ShapePrototype.js b/cell/model/DrawingObjects/Format/ShapePrototype.js index 69420a793f..95150a898f 100644 --- a/cell/model/DrawingObjects/Format/ShapePrototype.js +++ b/cell/model/DrawingObjects/Format/ShapePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -820,6 +820,11 @@ CShape.prototype.Get_Worksheet = function() { return this.worksheet; }; +CShape.prototype.checkDrawingPartWithHistory = function () { + if (this.isObjectInSmartArt()) { + return this.group.group.checkDrawingPartWithHistory(this); + } +}; diff --git a/cell/model/DrawingObjects/GlobalCounters.js b/cell/model/DrawingObjects/GlobalCounters.js index 151fb5893d..2e8d7a897e 100644 --- a/cell/model/DrawingObjects/GlobalCounters.js +++ b/cell/model/DrawingObjects/GlobalCounters.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/DrawingObjects/Graphics.js b/cell/model/DrawingObjects/Graphics.js index bc0ab5ddf8..a34782c541 100644 --- a/cell/model/DrawingObjects/Graphics.js +++ b/cell/model/DrawingObjects/Graphics.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/FormulaObjects/_xlfnFunctions.js b/cell/model/FormulaObjects/_xlfnFunctions.js index a59fe0164c..bf78d0a897 100644 --- a/cell/model/FormulaObjects/_xlfnFunctions.js +++ b/cell/model/FormulaObjects/_xlfnFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/FormulaObjects/cubeFunctions.js b/cell/model/FormulaObjects/cubeFunctions.js index 7daa5cbe70..eca45af970 100644 --- a/cell/model/FormulaObjects/cubeFunctions.js +++ b/cell/model/FormulaObjects/cubeFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/FormulaObjects/databaseFunctions.js b/cell/model/FormulaObjects/databaseFunctions.js index 698f02885a..aa15275c1a 100644 --- a/cell/model/FormulaObjects/databaseFunctions.js +++ b/cell/model/FormulaObjects/databaseFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/FormulaObjects/dateandtimeFunctions.js b/cell/model/FormulaObjects/dateandtimeFunctions.js index b6b55863ac..fd35d6ef17 100644 --- a/cell/model/FormulaObjects/dateandtimeFunctions.js +++ b/cell/model/FormulaObjects/dateandtimeFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1196,6 +1196,7 @@ function (window, undefined) { } let val = arg0.getValue(); + val = parseInt(val); if (val < 0) { return new cError(cErrorType.not_numeric); } else if (!AscCommon.bDate1904) { @@ -2203,10 +2204,10 @@ function (window, undefined) { cWORKDAY_INTL.prototype.argumentsMin = 2; cWORKDAY_INTL.prototype.argumentsMax = 4; cWORKDAY_INTL.prototype.numFormat = AscCommonExcel.cNumFormatNone; - cWORKDAY_INTL.prototype.arrayIndexes = {2: 0, 3: 1}; + cWORKDAY_INTL.prototype.arrayIndexes = {0: AscCommonExcel.arrayIndexesType.range, 1: AscCommonExcel.arrayIndexesType.range, 3: 1}; cWORKDAY_INTL.prototype.argumentsType = [argType.any, argType.any, argType.number, argType.any]; //TODO в данном случае есть различия с ms. при 3 и 4 аргументах - замена результата на ошибку не происходит. - cWORKDAY_INTL.prototype.returnValueType = AscCommonExcel.cReturnFormulaType.value_replace_area; + // cWORKDAY_INTL.prototype.returnValueType = AscCommonExcel.cReturnFormulaType.value_replace_area; cWORKDAY_INTL.prototype.Calculate = function (arg) { //TODO проблема с формулами следующего типа - WORKDAY.INTL(8,60,"0000000") let t = this; @@ -2214,6 +2215,11 @@ function (window, undefined) { let oArguments = this._prepareArguments(tempArgs, arguments[1]); let argClone = oArguments.args; + if ((arg[0] && (arg[0].type === cElementType.cellsRange || arg[0].type === cElementType.cellsRange3D)) || + (arg[1] && (arg[1].type === cElementType.cellsRange || arg[1].type === cElementType.cellsRange3D))) { + return new cError(cErrorType.wrong_value_type); + } + argClone[0] = argClone[0].tocNumber(); argClone[1] = argClone[1].tocNumber(); diff --git a/cell/model/FormulaObjects/engineeringFunctions.js b/cell/model/FormulaObjects/engineeringFunctions.js index 52f7914cad..e1ecafde47 100644 --- a/cell/model/FormulaObjects/engineeringFunctions.js +++ b/cell/model/FormulaObjects/engineeringFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/FormulaObjects/financialFunctions.js b/cell/model/FormulaObjects/financialFunctions.js index e4c1b45a67..ac0ebc5aa8 100644 --- a/cell/model/FormulaObjects/financialFunctions.js +++ b/cell/model/FormulaObjects/financialFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -494,6 +494,7 @@ function (window, undefined) { cACCRINT.prototype.returnValueType = AscCommonExcel.cReturnFormulaType.value_replace_area; cACCRINT.prototype.argumentsType = [argType.any, argType.any, argType.any, argType.any, argType.any, argType.any, argType.any, argType.any]; cACCRINT.prototype.Calculate = function (arg) { + // the ACCRINT formula in ms does not always match the calculation using the formula manually let issue = arg[0], firstInterest = arg[1], settlement = arg[2], @@ -677,6 +678,12 @@ function (window, undefined) { basis = Math.floor(basis.getValue()); calcMethod = calcMethod.toBool(); + // checking for out-of-date dates + let maxDate = AscCommonExcel.getMaxDate(); + if (issue > maxDate || firstInterest > maxDate || settlement > maxDate) { + return new cError(cErrorType.not_numeric); + } + if (issue < startRangeCurrentDateSystem || issue <= 0 || issue >= settlement || firstInterest < startRangeCurrentDateSystem || settlement < startRangeCurrentDateSystem || rate <= 0 || par <= 0 || basis < 0 || basis > 4 || (frequency != 1 && frequency != 2 && frequency != 4) || (!calcMethod && firstInterest < 366 / frequency)) { @@ -692,13 +699,19 @@ function (window, undefined) { return newDate; } + // The function calculates accrued interest on a security on which interest is paid at a certain frequency + // Argument calc_method = 0 (we calculate the accumulated interest from the first payment date (first_interest) to the date of purchase of the security (settlement)) + // calc_method = 1 (we calculate the accumulated interest from the issue date to the date of purchase of the security (settlement)) + // calc_method = 0 is taken into account only if the date of the first payment (first_interest) is greater than the release date (issue) + // exception for 1900/1/29 date let iss = issue === 60 ? new Date(Date.UTC(1900, 1, 29)) : AscCommonExcel.getCorrectDate(issue), fInter = firstInterest === 60 ? new Date(Date.UTC(1900, 1, 29)) : AscCommonExcel.getCorrectDate(firstInterest), settl = settlement === 60 ? new Date(Date.UTC(1900, 1, 29)) : AscCommonExcel.getCorrectDate(settlement), numMonths = 12 / frequency, numMonthsNeg = -numMonths, - endMonth = fInter.lastDayOfMonth(), coupPCD, firstDate, startDate, endDate, res, days, coupDays; + endMonth = fInter.lastDayOfMonth() || (fInter.getUTCDate() === 30 && basis === AscCommonExcel.DayCountBasis.UsPsa30_360), + coupPCD, firstDate, startDate, endDate, res, days, coupDays; let mainCoupPcd = lcl_GetCouppcd(iss, fInter, frequency); // if the first coupon period === 0, return 0 as in MS @@ -725,16 +738,25 @@ function (window, undefined) { // if first coup period, get date difference by default if (mainCoupPcd < iss) { - days = AscCommonExcel.diffDate(firstDate, settl, basis) - } else if (mainCoupPcd >= iss) { + days = AscCommonExcel.diffDate(firstDate, settl, basis).getValue(); + } else { days = AscCommonExcel.days360(firstDate, settl, basis, true); } + + // if the first date was greater, change the sign of the day difference to minus + days = Math.abs(days) * (firstDate > settl ? -1 : 1); coupDays = getcoupdays(coupPCD, fInter, frequency, basis).getValue(); res = days / coupDays; startDate = new cDate(coupPCD); endDate = iss; - + + // res - the coefficient that we use in the formula res * par * rate / frequency + // is found by iterating from the first coupon date to the issue date of the bond + // 1 step equals the number of months in the coupon period (12, 6, 3) + // at each iteration, the issue date and the current coupon date (with the step) are checked, and depending on the result, a number is added to the coefficient: + // - 1 or 0 depending on the calc_method used + // - or a fraction - the result of dividing the difference in days between the previous step's date and the current date by the number of days in the coupon period while (!(numMonthsNeg > 0 ? startDate >= iss : startDate <= iss)) { endDate = startDate; startDate = addMonth(startDate, numMonthsNeg, endMonth); @@ -744,8 +766,7 @@ function (window, undefined) { coupDays = getcoupdays(startDate, endDate, frequency, basis).getValue(); } else { days = AscCommonExcel.diffDate(firstDate, endDate, basis).getValue(); - coupDays = (basis == AscCommonExcel.DayCountBasis.Actual365) ? (365 / frequency) : - AscCommonExcel.diffDate(startDate, endDate, basis).getValue(); + coupDays = (basis == AscCommonExcel.DayCountBasis.Actual365) ? (365 / frequency) : AscCommonExcel.diffDate(startDate, endDate, basis).getValue(); } res += (iss <= startDate) ? calcMethod : days / coupDays; @@ -3585,61 +3606,61 @@ function (window, undefined) { cODDFYIELD.prototype.argumentsType = [argType.any, argType.any, argType.any, argType.any, argType.any, argType.any, argType.any, argType.any, argType.any]; cODDFYIELD.prototype.Calculate = function (arg) { - var settlement = arg[0], maturity = arg[1], issue = arg[2], first_coupon = arg[3], rate = arg[4], pr = arg[5], + let settlement = arg[0], maturity = arg[1], issue = arg[2], first_coupon = arg[3], rate = arg[4], pr = arg[5], redemption = arg[6], frequency = arg[7], basis = arg[8] && !(arg[8] instanceof cEmpty) ? arg[8] : new cNumber(0); - if (settlement instanceof cArea || settlement instanceof cArea3D) { + if (settlement.type === cElementType.cellsRange || settlement.type === cElementType.cellsRange3D) { settlement = settlement.cross(arguments[1]); - } else if (settlement instanceof cArray) { + } else if (settlement.type === cElementType.array) { settlement = settlement.getElementRowCol(0, 0); } - if (maturity instanceof cArea || maturity instanceof cArea3D) { + if (maturity.type === cElementType.cellsRange || maturity.type === cElementType.cellsRange3D) { maturity = maturity.cross(arguments[1]); - } else if (maturity instanceof cArray) { + } else if (maturity.type === cElementType.array) { maturity = maturity.getElementRowCol(0, 0); } - if (issue instanceof cArea || issue instanceof cArea3D) { + if (issue.type === cElementType.cellsRange || issue.type === cElementType.cellsRange3D) { issue = issue.cross(arguments[1]); - } else if (issue instanceof cArray) { + } else if (issue.type === cElementType.array) { issue = issue.getElementRowCol(0, 0); } - if (first_coupon instanceof cArea || first_coupon instanceof cArea3D) { + if (first_coupon.type === cElementType.cellsRange || first_coupon.type === cElementType.cellsRange3D) { first_coupon = first_coupon.cross(arguments[1]); - } else if (first_coupon instanceof cArray) { + } else if (first_coupon.type === cElementType.array) { first_coupon = first_coupon.getElementRowCol(0, 0); } - if (rate instanceof cArea || rate instanceof cArea3D) { + if (rate.type === cElementType.cellsRange || rate.type === cElementType.cellsRange3D) { rate = rate.cross(arguments[1]); - } else if (rate instanceof cArray) { + } else if (rate.type === cElementType.array) { rate = rate.getElementRowCol(0, 0); } - if (pr instanceof cArea || pr instanceof cArea3D) { + if (pr.type === cElementType.cellsRange || pr.type === cElementType.cellsRange3D) { pr = pr.cross(arguments[1]); - } else if (pr instanceof cArray) { + } else if (pr.type === cElementType.array) { pr = pr.getElementRowCol(0, 0); } - if (redemption instanceof cArea || redemption instanceof cArea3D) { + if (redemption.type === cElementType.cellsRange || redemption.type === cElementType.cellsRange3D) { redemption = redemption.cross(arguments[1]); - } else if (redemption instanceof cArray) { + } else if (redemption.type === cElementType.array) { redemption = redemption.getElementRowCol(0, 0); } - if (frequency instanceof cArea || frequency instanceof cArea3D) { + if (frequency.type === cElementType.cellsRange || frequency.type === cElementType.cellsRange3D) { frequency = frequency.cross(arguments[1]); - } else if (frequency instanceof cArray) { + } else if (frequency.type === cElementType.array) { frequency = frequency.getElementRowCol(0, 0); } - if (basis instanceof cArea || basis instanceof cArea3D) { + if (basis.type === cElementType.cellsRange || basis.type === cElementType.cellsRange3D) { basis = basis.cross(arguments[1]); - } else if (basis instanceof cArray) { + } else if (basis.type === cElementType.array) { basis = basis.getElementRowCol(0, 0); } @@ -3653,31 +3674,31 @@ function (window, undefined) { frequency = frequency.tocNumber(); basis = basis.tocNumber(); - if (settlement instanceof cError) { + if (settlement.type === cElementType.error) { return settlement; } - if (maturity instanceof cError) { + if (maturity.type === cElementType.error) { return maturity; } - if (issue instanceof cError) { + if (issue.type === cElementType.error) { return issue; } - if (first_coupon instanceof cError) { + if (first_coupon.type === cElementType.error) { return first_coupon; } - if (rate instanceof cError) { + if (rate.type === cElementType.error) { return rate; } - if (pr instanceof cError) { + if (pr.type === cElementType.error) { return pr; } - if (redemption instanceof cError) { + if (redemption.type === cElementType.error) { return redemption; } - if (frequency instanceof cError) { + if (frequency.type === cElementType.error) { return frequency; } - if (basis instanceof cError) { + if (basis.type === cElementType.error) { return basis; } @@ -3716,7 +3737,7 @@ function (window, undefined) { x = xN; } if (isNaN(x) || Infinity == Math.abs(x)) { - var max = Number.MAX_VALUE, min = -Number.MAX_VALUE, step = 1.6, + let max = Number.MAX_VALUE, min = -Number.MAX_VALUE, step = 1.6, low = guess - 0.01 <= min ? min + g_Eps : guess - 0.01, high = guess + 0.01 >= max ? max - g_Eps : guess + 0.01, i, xBegin, xEnd, x, y, currentIter = 0; @@ -3743,7 +3764,7 @@ function (window, undefined) { return new cError(cErrorType.not_numeric); } - var fXbegin = iterF(xBegin), fXend = iterF(xEnd), fXi, xI; + let fXbegin = iterF(xBegin), fXend = iterF(xEnd), fXi, xI; if (Math.abs(fXbegin) < g_Eps) { return new cNumber(fXbegin); @@ -5508,7 +5529,7 @@ function (window, undefined) { cXIRR.prototype.returnValueType = AscCommonExcel.cReturnFormulaType.value_replace_area; cXIRR.prototype.argumentsType = [argType.any, argType.any, argType.any]; cXIRR.prototype.Calculate = function (arg) { - var arg0 = arg[0], arg1 = arg[1], arg2 = arg[2] ? arg[2] : new cNumber(0.1); + let arg0 = arg[0], arg1 = arg[1], arg2 = arg[2] ? arg[2] : new cNumber(0.1); function xirrFunction(values, dates, rate) { var D_0 = dates[0], r = rate + 1, res = values[0]; @@ -5529,8 +5550,13 @@ function (window, undefined) { function xirr2(_values, _dates, _rate) { - var arr0 = _values[0], arr1 = _dates[0]; - + + if (_values.length === 0 || _dates.length === 0) { + return new cError(cErrorType.not_numeric); + } + + let arr0 = _values[0], arr1 = _dates[0]; + if (arr0 instanceof cError) { return arr0; } @@ -5643,9 +5669,26 @@ function (window, undefined) { } - var _dates = [], _values = []; + if (arg0.type === cElementType.error) { + return arg0; + } + if (arg1.type === cElementType.error) { + return arg1; + } + if (arg2.type === cElementType.error) { + return arg2; + } + + if (arg0.type === cElementType.empty || arg1.type === cElementType.empty) { + return new cError(cErrorType.not_available); + } + + let _dates = [], _values = []; - if (arg0 instanceof cArea) { + if (arg0.type === cElementType.cellsRange || arg0.type === cElementType.cellsRange3D) { + if (arg0.type === cElementType.cellsRange3D && !arg0.isSingleSheet()) { + return new cError(cErrorType.wrong_value_type); + } arg0.foreach2(function (c) { if (c instanceof cNumber) { _values.push(c); @@ -5654,8 +5697,8 @@ function (window, undefined) { } else { _values.push(new cError(cErrorType.wrong_value_type)); } - }); - } else if (arg0 instanceof cArray) { + }) + } else if (arg0.type === cElementType.array) { arg0.foreach(function (c) { if (c instanceof cNumber) { _values.push(c); @@ -5665,21 +5708,17 @@ function (window, undefined) { _values.push(new cError(cErrorType.wrong_value_type)); } }) - } else if (arg0 instanceof cArea3D) { - if (arg0.isSingleSheet()) { - _values = arg0.getMatrix()[0]; - } else { - return new cError(cErrorType.wrong_value_type); - } } else { - if (!(arg0 instanceof cNumber)) { + if (!(arg0.type === cElementType.number)) { return new cError(cErrorType.wrong_value_type) - } else { - _values[0] = arg0; } + _values[0] = arg0; } - if (arg1 instanceof cArea) { + if (arg1.type === cElementType.cellsRange || arg1.type === cElementType.cellsRange3D) { + if (arg1.type === cElementType.cellsRange3D && !arg1.isSingleSheet()) { + return new cError(cErrorType.wrong_value_type); + } arg1.foreach2(function (c) { if (c instanceof cNumber) { _dates.push(c); @@ -5688,8 +5727,8 @@ function (window, undefined) { } else { _dates.push(new cError(cErrorType.wrong_value_type)); } - }); - } else if (arg1 instanceof cArray) { + }) + } else if (arg1.type === cElementType.array) { arg1.foreach(function (c) { if (c instanceof cNumber) { _dates.push(c); @@ -5699,18 +5738,11 @@ function (window, undefined) { _dates.push(new cError(cErrorType.wrong_value_type)); } }) - } else if (arg1 instanceof cArea3D) { - if (arg1.isSingleSheet()) { - _dates = arg1.getMatrix()[0]; - } else { - return new cError(cErrorType.wrong_value_type); - } } else { - if (!(arg1 instanceof cNumber)) { + if (!(arg1.type === cElementType.number)) { return new cError(cErrorType.wrong_value_type) - } else { - _dates[0] = arg1; } + _dates[0] = arg1; } if (arg2 instanceof AscCommonExcel.cRef || arg2 instanceof AscCommonExcel.cRef3D) { @@ -5736,7 +5768,7 @@ function (window, undefined) { return arg2; } - var res = xirr2(_values, _dates, arg2); + let res = xirr2(_values, _dates, arg2); res.numFormat = 9; return res; diff --git a/cell/model/FormulaObjects/informationFunctions.js b/cell/model/FormulaObjects/informationFunctions.js index 601096fe47..2ab9b630c3 100644 --- a/cell/model/FormulaObjects/informationFunctions.js +++ b/cell/model/FormulaObjects/informationFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/FormulaObjects/logicalFunctions.js b/cell/model/FormulaObjects/logicalFunctions.js index 747b77f33a..06bfae56fd 100644 --- a/cell/model/FormulaObjects/logicalFunctions.js +++ b/cell/model/FormulaObjects/logicalFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/FormulaObjects/lookupandreferenceFunctions.js b/cell/model/FormulaObjects/lookupandreferenceFunctions.js index 5a1971af14..09d076d575 100644 --- a/cell/model/FormulaObjects/lookupandreferenceFunctions.js +++ b/cell/model/FormulaObjects/lookupandreferenceFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -628,31 +628,112 @@ function (window, undefined) { if (_arg0 < 1 || _arg0 > arg.length - 1) { return new cError(cErrorType.wrong_value_type); } - - let returnVal = arg[Math.floor(_arg0)]; - if (returnVal.type === cElementType.cell || returnVal.type === cElementType.cell3D) { - returnVal = returnVal.getValue(); - } else if (returnVal.type === cElementType.cellsRange || returnVal.type === cElementType.cellsRange3D) { - returnVal = returnVal.cross(args[1]); - } - return returnVal; + return arg[Math.floor(_arg0)]; } return new cError(cErrorType.wrong_value_type); } - if (cElementType.array === arg0.type) { + if (cElementType.array === arg0.type || cElementType.cellsRange === arg0.type || cElementType.cellsRange3D === arg0.type) { + // TODO refactor // go through the array and return result for each element let resArr = new cArray(); - arg0.foreach(function(elem, r, c) { - if (!resArr.array[r]) { + let tempArraySize, maxArraySize = arg0.getDimensions(); + let arg0Rows = maxArraySize.row, arg0Cols = maxArraySize.col; + + // get max array size by first loop + arg0.foreach2(function (elem) { + let chosenArgument = chooseArgument(elem); + if (chosenArgument && chosenArgument.type === cElementType.cellsRange || chosenArgument.type === cElementType.cellsRange3D || chosenArgument.type === cElementType.array) { + tempArraySize = chosenArgument.getDimensions(); + maxArraySize.row = tempArraySize.row > maxArraySize.row ? tempArraySize.row : maxArraySize.row; + maxArraySize.col = tempArraySize.col > maxArraySize.col ? tempArraySize.col : maxArraySize.col; + } + }); + + for (let r = 0; r < arg0Rows; r++) { + for (let c = 0; c < arg0Cols; c++) { + let elem = arg0.getValue2(r, c); + let chosenArgument = chooseArgument(elem); + let argDimensions = chosenArgument.getDimensions(); + let singleRow = arg0Rows === 1; + let singleCol = arg0Cols === 1; + let tempArr = []; + + if (singleRow || singleCol) { + // if the first argument has one row or column we need to fully take this row or column and pass it to the resulting array + for (let i = 0; i < (singleRow ? maxArraySize.row : maxArraySize.col); i++) { + let elemFromChosenArgument; + if (chosenArgument.type === cElementType.array || chosenArgument.type === cElementType.cellsRange || chosenArgument.type === cElementType.cellsRange3D) { + if (argDimensions.col === 1) { + // return elem from first col + elemFromChosenArgument = chosenArgument.getElementRowCol ? chosenArgument.getElementRowCol(singleRow ? i : r, 0) : chosenArgument.getValueByRowCol(singleRow ? i : r, 0); + } else if (argDimensions.row === 1) { + // return elem from first row + elemFromChosenArgument = chosenArgument.getElementRowCol ? chosenArgument.getElementRowCol(0, singleRow ? c : i) : chosenArgument.getValueByRowCol(0, singleRow ? c : i); + } else { + // return r/c elem + elemFromChosenArgument = chosenArgument.getElementRowCol ? chosenArgument.getElementRowCol(singleRow ? i : r, singleRow ? c : i) : chosenArgument.getValueByRowCol(singleRow ? i : r, singleRow ? c : i); + } + + // if we go outside the range, we must return the #N/A error to the array + if ((singleRow && argDimensions.row - 1 !== 0 && argDimensions.row - 1 < i) || (singleCol && argDimensions.col - 1 !== 0 && argDimensions.col - 1 < i)) { + elemFromChosenArgument = new cError(cErrorType.not_available); + } + } else { + elemFromChosenArgument = chosenArgument; + } + + // undefined can be obtained when accessing an empty cell in the range, in which case we need to return cEmpty + if (elemFromChosenArgument === undefined) { + elemFromChosenArgument = new cEmpty(); + } + + singleRow ? tempArr.push([elemFromChosenArgument]) : tempArr.push(elemFromChosenArgument); + } + singleRow ? resArr.pushCol(tempArr, 0) : resArr.pushRow([tempArr], 0); + } else { + // get r/c part from chosen argument + let elemFromChosenArgument; + if (chosenArgument.type === cElementType.array || chosenArgument.type === cElementType.cellsRange || chosenArgument.type === cElementType.cellsRange3D) { + if (argDimensions.row === 1) { + elemFromChosenArgument = chosenArgument.getElementRowCol ? chosenArgument.getElementRowCol(0, c) : chosenArgument.getValueByRowCol(0, c); + } else if (argDimensions.col === 1) { + elemFromChosenArgument = chosenArgument.getElementRowCol ? chosenArgument.getElementRowCol(r, 0) : chosenArgument.getValueByRowCol(r, 0); + } else { + elemFromChosenArgument = chosenArgument.getElementRowCol ? chosenArgument.getElementRowCol(r, c) : chosenArgument.getValueByRowCol(r, c); + } + if (argDimensions.col - 1 !== 0 && argDimensions.col - 1 < c) { + elemFromChosenArgument = new cError(cErrorType.not_available); + } + } else { + elemFromChosenArgument = chosenArgument; + } + + // undefined can be obtained when accessing an empty cell in the range, in which case we need to return cEmpty + if (elemFromChosenArgument === undefined) { + elemFromChosenArgument = new cEmpty(); + } + + if (!resArr.array[r]) { + resArr.addRow(); + } + resArr.addElement(elemFromChosenArgument); + } + } + } + + if (resArr.getRowCount() < maxArraySize.row) { + // fill the rest of array with #N/A error + for (let i = resArr.getRowCount(); i < maxArraySize.row; i++) { resArr.addRow(); + for (let j = 0; j < resArr.getCountElementInRow(); j++) { + resArr.addElement(new cError(cErrorType.not_available)); + } } + } - let res = chooseArgument(elem); - resArr.addElement(res); - }); return resArr; } @@ -999,7 +1080,7 @@ function (window, undefined) { for (let i = 0; i < rows; i++) { for (let j = 0; j < columns; j++) { - let val = arg1.getValueByRowCol ? arg1.getValueByRowCol(i, j, true) : arg1.getElementRowCol(i, j); + let val = arg1.getValueByRowCol ? arg1.getValueByRowCol(i, j) : arg1.getElementRowCol(i, j, true); val = val.tocBool(); val = val.toBool ? val.toBool() : new cError(cErrorType.wrong_value_type); @@ -1064,10 +1145,10 @@ function (window, undefined) { } if (rangeMode) { - const initialArrayDimensions = arg0.getDimensions(), + const initialArrayDimensions = arg0.getDimensions(true), initRows = initialArrayDimensions.row, initColumns = initialArrayDimensions.col, - lookingArrayDimensions = arg1.getDimensions(); + lookingArrayDimensions = arg1.getDimensions(true); // check for matching array sizes if (lookingArrayDimensions.row === 1 && lookingArrayDimensions.col === initColumns) { @@ -1173,7 +1254,7 @@ function (window, undefined) { if (cElementType.cell !== pivot_table_ref.type && cElementType.cell3D !== pivot_table_ref.type && cElementType.cellsRange !== pivot_table_ref.type && cElementType.cellsRange3D !== pivot_table_ref.type) { return refError; } - let worksheet = pivot_table_ref.ws; + let worksheet = pivot_table_ref.getWS(); let bbox = pivot_table_ref.getBBox0(); let pivotTables = worksheet.getPivotTablesIntersectingRange(bbox); @@ -1275,18 +1356,45 @@ function (window, undefined) { cHLOOKUP.prototype.name = 'HLOOKUP'; cHLOOKUP.prototype.argumentsMin = 3; cHLOOKUP.prototype.argumentsMax = 4; - cHLOOKUP.prototype.arrayIndexes = {1: 1, 2: 1}; + cHLOOKUP.prototype.arrayIndexes = {0: 1, 1: 1, 2: 1}; cHLOOKUP.prototype.argumentsType = [argType.any, argType.number, argType.number, argType.logical]; cHLOOKUP.prototype.Calculate = function (arg) { - //TODO с excel есть несоостветствие - в тестовом файле - E11:H13 - if(this.bArrayFormula) { - //исключение, когда в формуле массива берется из одного аргумента только 1 элемент - if(cElementType.cellsRange3D === arg[2].type || cElementType.cellsRange === arg[2].type) { - arg[2] = arg[2].getValue2(0,0); - } else if(cElementType.array === arg[2].type) { + let retArr = new cArray(); + let error = false; + if (arg[0].type === cElementType.array) { + if (arg[2] && arg[2].type === cElementType.cellsRange || arg[2].type === cElementType.cellsRange3D || arg[2].type === cElementType.array) { arg[2] = arg[2].getValue2(0,0); } + let dimension = arg[0].getDimensions(); + for (let r = 0; r < dimension.row; r++) { + retArr.addRow(); + for (let c = 0; c < dimension.col; c++) { + retArr.addElement(g_oHLOOKUPCache.calculate([arg[0].getValue2(r, c), arg[1], arg[2], arg[3]], arguments[1])); + } + } + + return retArr; + } + + if (arg[2] && (arg[2].type === cElementType.array)) { + let dimension = arg[2].getDimensions(); + for (let r = 0; r < dimension.row; r++) { + retArr.addRow(); + for (let c = 0; c < dimension.col; c++) { + if (!error) { + let res = g_oHLOOKUPCache.calculate([arg[0], arg[1], arg[2].getValue2(r, c), arg[3]], arguments[1]); + if (res.type === cElementType.error) { + error = true + } + retArr.addElement(res); + } else { + break + } + } + } + return error ? new cError(cErrorType.bad_reference) : retArr; } + return g_oHLOOKUPCache.calculate(arg, arguments[1]); }; @@ -1364,8 +1472,8 @@ function (window, undefined) { cINDEX.prototype.arrayIndexes = {0: 1}; cINDEX.prototype.argumentsType = [argType.reference, argType.number, argType.number]; cINDEX.prototype.Calculate = function (arg) { - var arg0 = arg[0], arg1 = arg[1] && (cElementType.empty !== arg[1].type) ? arg[1] : new cNumber(1), - arg2 = arg[2] && (cElementType.empty !== arg[2].type) ? arg[2] : new cNumber(1), + let arg0 = arg[0], arg1 = arg[1] && (cElementType.empty !== arg[1].type) ? arg[1] : new cNumber(0), + arg2 = arg[2] && (cElementType.empty !== arg[2].type) ? arg[2] : new cNumber(0), arg3 = arg[3] && (cElementType.empty !== arg[3].type) ? arg[3] : new cNumber(1), res; if (cElementType.cellsRange3D === arg0.type) { @@ -1411,11 +1519,11 @@ function (window, undefined) { return new cError(cErrorType.wrong_value_type); } - var generateArray = function (_from, row, col) { - var ret = null; - var _colCount = _from.getCountElementInRow(); - var _rowCount = _from.rowCount; - var i; + const generateArray = function (_from, row, col) { + let ret = null; + let _colCount = _from.getCountElementInRow(); + let _rowCount = _from.rowCount; + let i; row = row !== undefined ? Math.ceil(row) : row; col = col !== undefined ? Math.ceil(col) : col; if (undefined !== row) { @@ -1453,77 +1561,71 @@ function (window, undefined) { }; AscCommonExcel.executeInR1C1Mode(false, function () { - if (cElementType.array === arg0.type) { - if ((!arg[1] || arg1 === 0) && (!arg[2] || arg2 === 0)) { - //возвращаем массив - res = arg0; - } else if (!arg[2] || arg2 === 0) { - //возращаем массив из arg1 строки - res = generateArray(arg0, arg1); - } else if (!arg[1] || arg1 === 0) { - //возращаем массив из arg2 столбца - res = generateArray(arg0, undefined, arg2); - } else if(undefined === arg[2] && 1 === arg0.rowCount) {//если последний аргумент опущен, и выделенa 1 строка - res = arg0.getValue2(0, (0 === arg1) ? 0 : arg1 - 1); - } else if(undefined === arg[2] && 1 === arg0.getCountElementInRow()) {//если последний аргумент опущен, и выделен 1 столбец - res = arg0.getValue2((0 === arg1) ? 0 : arg1 - 1, 0); - } else { - res = arg0.getValue2((1 === arg0.rowCount || 0 === arg1) ? 0 : arg1 - 1, 0 === arg2 ? 0 : arg2 - 1); - } - } else if (cElementType.cellsRange === arg0.type) { - var ws = arg0.getWS(), bbox = arg0.getBBox0(); - - if(cElementType.empty === arg[1].type) { - arg1 = 0; - } - - var diffArg1 = arg1 === 0 ? 0 : 1; - var diffArg2 = arg2 === 0 ? 0 : 1; - if(undefined === arg[2] && bbox.r1 === bbox.r2) {//если последний аргумент опущен, и выделенa 1 строка - if (arg1 > Math.abs(bbox.c1 - bbox.c2) + 1) { - res = new cError(cErrorType.bad_reference); - } else { - res = new Asc.Range(bbox.c1 + arg1 - diffArg1, bbox.r1, bbox.c1 + arg1 - diffArg1, bbox.r1); - res = new cRef(res.getName(), ws); - } - } else if(undefined === arg[2] && bbox.c1 === bbox.c2 && arg1 > 0) {//если последний аргумент опущен, и выделен 1 столбец - if (arg1 > Math.abs(bbox.r1 - bbox.r2) + 1) { - res = new cError(cErrorType.bad_reference); + let dimension = arg0.getDimensions(); + let isSingleRowCol = (dimension.row > 1 && dimension.col > 1) ? false : true; + let isByColumn = (dimension.row > 1) ? true : false; + let isArray = cElementType.array === arg0.type; + + let diffArg1 = arg1 === 0 ? 0 : 1; + let diffArg2 = arg2 === 0 ? 0 : 1; + + if (arg[2] !== undefined && (arg1 > dimension.row || arg2 > dimension.col)) { + /* if the col_num and row_num in the arguments is greater than the array size, return an error */ + res = new cError(cErrorType.bad_reference); + } else if (!isArray && arg[2] === undefined && !isSingleRowCol) { + /* if the second arg is ommited and range(exactly reference) is two dimensional, return an error */ + res = new cError(cErrorType.bad_reference); + } else if (cElementType.array === arg0.type || cElementType.cellsRange === arg0.type) { + let ws = arg0.getWS ? arg0.getWS() : null, bbox = arg0.getBBox0 ? arg0.getBBox0() : null; + + if (!isSingleRowCol) { + /* r&c > 1 */ + if (arg1 === 0 && arg2 === 0) { + res = arg0; + } else if (arg1 === 0) { + // return full column + if (isArray) { + res = generateArray(arg0, undefined, arg2); + } else { + res = new Asc.Range(bbox.c1 + arg2 - diffArg2, bbox.r1, bbox.c1 + arg2 - diffArg2, bbox.r2); + res = new cArea(res.getName(), ws); + } + } else if (arg2 === 0) { + // return full row + if (isArray) { + res = generateArray(arg0, arg1, undefined); + } else { + res = new Asc.Range(bbox.c1, bbox.r1 + arg1 - diffArg1, bbox.c2, bbox.r1 + arg1 - diffArg1); + res = new cArea(res.getName(), ws); + } } else { - res = new Asc.Range(bbox.c1, bbox.r1 + arg1 - diffArg1, bbox.c1, bbox.r1 + arg1 - diffArg1); - res = new cRef(res.getName(), ws); - } - } else if(undefined === arg[2] && Math.abs(bbox.r1 - bbox.r2) + 1 > 1 && Math.abs(bbox.c1 - bbox.c2) + 1 > 1) {//если последний аргумент опущен, и выделен более 1 строки и более 1 столбца - //так себя ведёт excel в случае с cellsArea - res = new cError(cErrorType.bad_reference); - } else if (bbox.r1 === bbox.r2) {/*одна строка*/ - res = new Asc.Range(bbox.c1 + arg2 - 1, bbox.r1, bbox.c1 + arg2 - 1, bbox.r1); - res = new cRef(res.getName(), ws); - } else { - if (0 === arg1 && arg2 > 0) { - if (arg2 > Math.abs(bbox.c1 - bbox.c2) + 1) { - res = new cError(cErrorType.bad_reference); + if (isArray) { + res = arg0.getValue2(arg1 > 0 ? arg1 - 1 : 0, arg2 > 0 ? arg2 - 1 : 0); } else { - if (0 === arg2 || undefined === arg[2] || cElementType.empty === arg[2].type) { - res = new Asc.Range(bbox.c1 + arg2 - 1, bbox.r1, bbox.c2 + arg2 - 1, bbox.r2); - } else { - res = new Asc.Range(bbox.c1 + arg2 - 1, bbox.r1, bbox.c1 + arg2 - 1, bbox.r2); - } - res = res.isOneCell() ? new cRef(res.getName(),ws) : new cArea(res.getName(), ws); + res = new Asc.Range(bbox.c1 + arg2 - diffArg2, bbox.r1 + arg1 - diffArg1, bbox.c1 + arg2 - diffArg2, bbox.r1 + arg1 - diffArg1); + res = new cRef(res.getName(), ws); } - } else if ((0 === arg2 || undefined === arg[2] || cElementType.empty === arg[2].type) && arg1 > 0) { - if (arg1 > Math.abs(bbox.r1 - bbox.r2) + 1) { - res = new cError(cErrorType.bad_reference); + } + } else { + /* r|c === 1 */ + if (arg[2] === undefined && ((isByColumn && arg1 > dimension.row) || (!isByColumn && arg1 > dimension.col))) { + res = new cError(cErrorType.bad_reference); + } else if (arg1 === 0 && isByColumn) { + // res = isByColumn ? arg0 : arg0.getValue2(1, arg2); + res = arg0; + } else if (undefined !== arg[2] && arg2 === 0 && !isByColumn) { + res = arg0; + } else if (undefined === arg[2] && dimension.row === 1) { + // if the last argument is omitted and 1 line is selected + if (isArray) { + res = arg0.getValue2(0, arg1 > 0 ? arg1 - 1 : 0); } else { - res = new Asc.Range(bbox.c1 + arg2 - diffArg2, bbox.r1 + arg1 - diffArg1, bbox.c2 + arg2 - diffArg2, bbox.r1 + arg1 - diffArg1); - res = res.isOneCell() ? new cRef(res.getName(),ws) : new cArea(res.getName(), ws); + res = new Asc.Range(bbox.c1 + arg1 - diffArg1, bbox.r1, bbox.c1 + arg1 - diffArg1, bbox.r1); + res = new cRef(res.getName(), ws); } - } else if ((0 === arg1 || undefined === arg[1] || cElementType.empty === arg[1].type) && (0 === arg2 || undefined === arg[2] || cElementType.empty === arg[2].type)) { - res = new Asc.Range(bbox.c1 + arg2 - diffArg2, bbox.r1 + arg1 - diffArg1, bbox.c2 + arg2 - diffArg2, bbox.r2 + arg1 - diffArg1); - res = res.isOneCell() ? new cRef(res.getName(),ws) : new cArea(res.getName(), ws); } else { - if (arg1 > Math.abs(bbox.r1 - bbox.r2) + 1 || arg2 > Math.abs(bbox.c1 - bbox.c2) + 1) { - res = new cError(cErrorType.bad_reference); + if (isArray) { + res = arg0.getValue2(arg1 > 0 ? arg1 - 1 : 0, arg2 > 0 ? arg2 - 1 : 0); } else { res = new Asc.Range(bbox.c1 + arg2 - diffArg2, bbox.r1 + arg1 - diffArg1, bbox.c1 + arg2 - diffArg2, bbox.r1 + arg1 - diffArg1); res = new cRef(res.getName(), ws); @@ -1658,9 +1760,26 @@ function (window, undefined) { cLOOKUP.prototype.name = 'LOOKUP'; cLOOKUP.prototype.argumentsMin = 2; cLOOKUP.prototype.argumentsMax = 3; - cLOOKUP.prototype.arrayIndexes = {1: 1, 2: 1}; + cLOOKUP.prototype.arrayIndexes = {0: 1, 1: 1, 2: 1}; cLOOKUP.prototype.argumentsType = [argType.any, argType.reference, argType.reference]; cLOOKUP.prototype.Calculate = function (arg) { + + if (!AscCommonExcel.bIsSupportDynamicArrays && arg[0].type === cElementType.cellsRange || arg[0].type === cElementType.cellsRange3D) { + arg[0] = arg[0].isOneElement() ? arg[0].getFirstElement() : arg[0].cross(arguments[1]); + } else if (arg[0].type === cElementType.array) { + let retArr = new cArray(); + let dimension = arg[0].getDimensions(); + + for (let r = 0; r < dimension.row; r++) { + retArr.addRow(); + for (let c = 0; c < dimension.col; c++) { + retArr.addElement(g_oLOOKUPCache.calculate([arg[0].getValue2(r, c), arg[1], arg[2]], arguments[1])); + } + } + return retArr; + } + + return g_oLOOKUPCache.calculate(arg, arguments[1]); }; @@ -2756,23 +2875,31 @@ function (window, undefined) { } VHLOOKUPCache.prototype.calculate = function (arg, argument1) { - var arg0 = arg[0], arg1 = arg[1], arg2 = arg[2]; - var arg3 = arg[3] ? arg[3].tocBool().value : true; - var opt_xlookup = arg[4] !== undefined; - var opt_arg4, opt_arg5; + let arg0 = arg[0], arg1 = arg[1], arg2 = arg[2]; + let arg3 = arg[3] ? arg[3].tocBool().value : true; + let opt_xlookup = arg[4] !== undefined; + let opt_arg4, opt_arg5; if (opt_xlookup) { opt_arg4 = arg[4]; opt_arg5 = arg[5]; } - var t = this, number, valueForSearching, r, c, res = -1, min, regexp, count; + let t = this, number, valueForSearching, r, c, res = -1, min, regexp, count; if (!opt_xlookup) { - number = arg2.getValue() - 1; - if (cElementType.array === arg2.type) { - var arg2Val = arg2.getElementRowCol(0, 0); - number = arg2Val ? arg2Val.getValue() - 1 : number; + if (cElementType.cell3D === arg2.type || cElementType.cell === arg2.type) { + arg2 = arg2.getValue(); + } else if (cElementType.array === arg2.type) { + arg2 = arg2.getElementRowCol(0, 0); + } else if (cElementType.cellsRange === arg2.type || cElementType.cellsRange3D === arg2.type) { + arg2 = arg2.cross(argument1); + } + + if (cElementType.error === arg2.type) { + return arg2; } + number = arg2.getValue() - 1; + if (isNaN(number)) { return new cError(cErrorType.bad_reference); } @@ -2789,7 +2916,7 @@ function (window, undefined) { return arg0; } - var arg0Val; + let arg0Val; if (cElementType.array === arg0.type) { arg0Val = arg0.getElementRowCol(0, 0); valueForSearching = ('' + arg0Val.getValue()).toLowerCase(); @@ -2812,41 +2939,50 @@ function (window, undefined) { return new cError(cErrorType.not_available); } - //TODO hlookup не правильно работает если первый агумент массив - раскомментировать тесты для hlookup - var found = false; + let found = false; + let arg0ValType = arg0Val.type if (cElementType.array === arg1.type && !opt_xlookup) { // ToDo if (cElementType.string === arg0.type) { regexp = searchRegExp(valueForSearching); } - arg1.foreach(function (elem, r, c) { - var v = ('' + elem.getValue()).toLowerCase(); - var i = t.bHor ? c : r; - if (0 === i) { - min = v; - } + let arrayToSearch, row, col, res = -1; + let dimension = arg1.getDimensions(); + + row = this.bHor ? 0 : dimension.row; + col = this.bHor ? dimension.col : 0; + + if (this.bHor) { + arrayToSearch = arg1.getRow(0); + } else { + arrayToSearch = arg1.getCol(0); + } + + if (arrayToSearch) { if (arg3) { - if (valueForSearching === v) { - res = i; - found = true; - } else if (valueForSearching > v && !found) { - res = i; - } + // approximate(binary) search + res = _func.binarySearch(arg0Val, arrayToSearch, false); } else { - if (cElementType.string === arg0.type) { - if (regexp.test(v)) { + // exact (simple) search + for (let i = 0; i < arrayToSearch.length; i++) { + let elem = arrayToSearch[i]; + let elemValue = elem.getValue(); + + if (elem.type === cElementType.string) { + elemValue = elemValue.toLowerCase(); + } + + if ((elem.type === arg0ValType) && elemValue === arg0Val.getValue()) { res = i; + break } - } else if (valueForSearching === v) { - res = i; } } - min = Math.min(min, v); - }); + } - if (/*min > valueForSearching ||*/ -1 === res) { + if (-1 === res) { return new cError(cErrorType.not_available); } @@ -2860,12 +2996,12 @@ function (window, undefined) { return arg1.getElementRowCol(r, c); } - var range; + let range; if (cElementType.cell === arg1.type || cElementType.cell3D === arg1.type || cElementType.cellsRange === arg1.type || cElementType.cellsRange3D === arg1.type) { range = arg1.getRange(); } else if (cElementType.array === arg1.type && opt_xlookup) { - var _cacheElem = {elements: []}; + let _cacheElem = {elements: []}; arg1.foreach(function (elem, r, c) { if (elem && elem.type === cElementType.string) { elem.value = elem.value.toLowerCase(); @@ -2879,15 +3015,15 @@ function (window, undefined) { return new cError(cErrorType.bad_reference); } - var bb = range.getBBox0(); + let bb = range.getBBox0(); count = this.bHor ? (bb.r2 - bb.r1) : (bb.c2 - bb.c1); if (number > count) { return new cError(cErrorType.bad_reference); } - var ws = arg1.getWS(); + let ws = arg1.getWS(); r = this.bHor ? bb.r1 : bb.r2; c = this.bHor ? bb.c2 : bb.c1; - var oSearchRange = ws.getRange3(bb.r1, bb.c1, r, c); + let oSearchRange = ws.getRange3(bb.r1, bb.c1, r, c); res = this._get(oSearchRange, arg0Val, arg3, opt_arg4, opt_arg5); @@ -2901,7 +3037,7 @@ function (window, undefined) { r = this.bHor ? bb.r1 + number : res; c = this.bHor ? res : bb.c1 + number; - var resVal; + let resVal; arg1.getWS()._getCellNoEmpty(r, c, function (cell) { resVal = checkTypeCell(cell); }); @@ -3021,8 +3157,9 @@ function (window, undefined) { //из обработанных элементов выбираем те, которые больше(меньше) -> из них уже ищем наименьший(наибольший) //т.е. в итоге получаем следующий наименьший/наибольший элемент const _binarySearch = function (revert) { + let canCompare; + i = 0; - //TODO проверить обратный поиск if (revert) { j = length - 1; @@ -3049,12 +3186,22 @@ function (window, undefined) { k = Math.floor((i + j) / 2); elem = cacheArray[k]; val = elem.v; + canCompare = true; if (val.type === cElementType.empty) { val = val.tocBool(); } + + if (valueForSearching.type !== val.type) { + if (valueForSearching.type !== cElementType.string && val.type !== cElementType.string) { + canCompare = true; + } else { + canCompare = false; + } + } + if (_compareValues(valueForSearching, val, "=")) { return elem.i; - } else if (_compareValues(valueForSearching, val, "<")) { + } else if (canCompare && _compareValues(valueForSearching, val, "<")) { j = k - 1; opt_arg4 !== undefined && addNextOptVal(elem, valueForSearching, true); } else { @@ -4060,19 +4207,46 @@ function (window, undefined) { cVLOOKUP.prototype.name = 'VLOOKUP'; cVLOOKUP.prototype.argumentsMin = 3; cVLOOKUP.prototype.argumentsMax = 4; - cVLOOKUP.prototype.arrayIndexes = {1: 1, 2: {0: 0}}; + cVLOOKUP.prototype.arrayIndexes = {/*0: 1,*/ 1: 1, /*2: 1*/}; cVLOOKUP.prototype.numFormat = AscCommonExcel.cNumFormatNone; + // cVLOOKUP.prototype.returnValueType = AscCommonExcel.cReturnFormulaType.value_replace_area; cVLOOKUP.prototype.argumentsType = [argType.any, argType.number, argType.number, argType.logical]; cVLOOKUP.prototype.Calculate = function (arg) { + let retArr = new cArray(); + let error = false; - if(this.bArrayFormula) { - //в случае когда первый аргумент - массив - //исключение, когда в формуле массива берется из одного аргумента только 1 элемент - if(cElementType.cellsRange3D === arg[2].type || cElementType.cellsRange === arg[2].type) { - arg[2] = arg[2].getValue2(0,0); - } else if(cElementType.array === arg[2].type) { + if (arg[0].type === cElementType.array) { + if (arg[2] && arg[2].type === cElementType.cellsRange || arg[2].type === cElementType.cellsRange3D || arg[2].type === cElementType.array) { arg[2] = arg[2].getValue2(0,0); } + let dimension = arg[0].getDimensions(); + for (let r = 0; r < dimension.row; r++) { + retArr.addRow(); + for (let c = 0; c < dimension.col; c++) { + retArr.addElement(g_oVLOOKUPCache.calculate([arg[0].getValue2(r, c), arg[1], arg[2], arg[3]], arguments[1])); + } + } + + return retArr; + } + + if (arg[2] && (arg[2].type === cElementType.array)) { + let dimension = arg[2].getDimensions(); + for (let r = 0; r < dimension.row; r++) { + retArr.addRow(); + for (let c = 0; c < dimension.col; c++) { + if (!error) { + let res = g_oVLOOKUPCache.calculate([arg[0], arg[1], arg[2].getValue2(r, c), arg[3]], arguments[1]); + if (res.type === cElementType.error) { + error = true; + } + retArr.addElement(res); + } else { + break; + } + } + } + return error ? new cError(cErrorType.bad_reference) : retArr } return g_oVLOOKUPCache.calculate(arg, arguments[1]); @@ -4382,7 +4556,12 @@ function (window, undefined) { if (arg1.type === arg1.empty) { return new cError(cErrorType.wrong_value_type); } - arg1 = arg1.toArray(); + + if (arg1.type === cElementType.cellsRange3D) { + arg1 = arg1.toArray()[0]; + } else { + arg1 = arg1.toArray(); + } //Excel returns a #NUM when array is too large. let elemCount = arg1.length * arg1[0].length; diff --git a/cell/model/FormulaObjects/mathematicFunctions.js b/cell/model/FormulaObjects/mathematicFunctions.js index f78c7fc874..902fdfbc31 100644 --- a/cell/model/FormulaObjects/mathematicFunctions.js +++ b/cell/model/FormulaObjects/mathematicFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -82,7 +82,7 @@ function (window, undefined) { cCOTH, cCSC, cCSCH, cDECIMAL, cDEGREES, cECMA_CEILING, cEVEN, cEXP, cFACT, cFACTDOUBLE, cFLOOR, cFLOOR_PRECISE, cFLOOR_MATH, cGCD, cINT, cISO_CEILING, cLCM, cLN, cLOG, cLOG10, cMDETERM, cMINVERSE, cMMULT, cMOD, cMROUND, cMULTINOMIAL, cMUNIT, cODD, cPI, cPOWER, cPRODUCT, cQUOTIENT, cRADIANS, cRAND, cRANDARRAY, cRANDBETWEEN, cROMAN, cROUND, cROUNDDOWN, - cROUNDUP, cSEC, cSECH, cSERIESSUM, cSIGN, cSIN, cSINH, cSQRT, cSQRTPI, cSUBTOTAL, cSUM, cSUMIF, cSUMIFS, + cROUNDUP, cSEC, cSECH, cSERIESSUM, cSIGN, cSIN, cSINGLE, cSINH, cSQRT, cSQRTPI, cSUBTOTAL, cSUM, cSUMIF, cSUMIFS, cSUMPRODUCT, cSUMSQ, cSUMX2MY2, cSUMX2PY2, cSUMXMY2, cTAN, cTANH, cTRUNC, cSEQUENCE); var cSubTotalFunctionType = { @@ -389,21 +389,21 @@ function (window, undefined) { cAGGREGATE.prototype.isXLFN = true; cAGGREGATE.prototype.argumentsType = [argType.number, argType.number, [argType.reference]]; //TODO начиная со 3 аргумента все оставшиеся - массивы - cAGGREGATE.prototype.arrayIndexes = {2: 1, 3: 1, 4: 1, 5: 1, 6: 1}; + cAGGREGATE.prototype.arrayIndexes = {1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1}; cAGGREGATE.prototype.Calculate = function (arg) { - var oArguments = this._prepareArguments([arg[0], arg[1]], arguments[1]); - var argClone = oArguments.args; + let oArguments = this._prepareArguments([arg[0], arg[1]], arguments[1]); + let argClone = oArguments.args; argClone[0] = argClone[0].tocNumber(); argClone[1] = argClone[1].tocNumber(); - var argError; + let argError; if (argError = this._checkErrorArg(argClone)) { return argError; } - var nFunc = argClone[0].getValue(); - var f = null; + let nFunc = argClone[0].getValue(); + let f = null; switch (nFunc) { case AGGREGATE_FUNC_AVE: f = AscCommonExcel.cAVERAGE.prototype; @@ -482,10 +482,10 @@ function (window, undefined) { return new cError(cErrorType.wrong_value_type); } - var nOption = argClone[1].getValue(); - var ignoreHiddenRows = false; - var ignoreErrorsVal = false; - var ignoreNestedStAg = false; + let nOption = argClone[1].getValue(); + let ignoreHiddenRows = false; + let ignoreErrorsVal = false; + let ignoreNestedStAg = false; switch (nOption) { case 0 : // ignore nested SUBTOTAL and AGGREGATE functions ignoreNestedStAg = true; @@ -519,20 +519,20 @@ function (window, undefined) { return new cError(cErrorType.not_numeric); } - var res; + let res; if (f) { - var oldExcludeHiddenRows = f.excludeHiddenRows; - var oldExcludeErrorsVal = f.excludeErrorsVal; - var oldIgnoreNestedStAg = f.excludeNestedStAg; + let oldExcludeHiddenRows = f.excludeHiddenRows; + let oldExcludeErrorsVal = f.excludeErrorsVal; + let oldIgnoreNestedStAg = f.excludeNestedStAg; f.excludeHiddenRows = ignoreHiddenRows; f.excludeErrorsVal = ignoreErrorsVal; f.excludeNestedStAg = ignoreNestedStAg; - var newArgs = []; + let newArgs = []; //14 - 19 особенные функции, требующие второго аргумента - var doNotCheckRef = nFunc >= 14 && nFunc <= 19; - for (var i = 2; i < arg.length; i++) { + let doNotCheckRef = nFunc >= 14 && nFunc <= 19; + for (let i = 2; i < arg.length; i++) { //аргумент может быть только ссылка на ячейку или диапазон ячеек //в противном случае - ошибка if (doNotCheckRef || this.checkRef(arg[i])) { @@ -4322,6 +4322,8 @@ function (window, undefined) { cROUNDUP.prototype.argumentsType = [argType.number, argType.number]; cROUNDUP.prototype.Calculate = function (arg) { function roundupHelper(number, num_digits) { + let fractionalPart = number.toString().split(".")[1]; + if (num_digits > AscCommonExcel.cExcelMaxExponent) { if (Math.abs(number) >= 1e-100 || num_digits <= 98303) { return new cNumber(number); @@ -4332,6 +4334,8 @@ function (window, undefined) { return new cNumber(number); } return new cError(cErrorType.not_numeric); + } else if (fractionalPart && fractionalPart.length === num_digits) { + return new cNumber(number); } let sign = number >= 0 ? 1 : -1, @@ -4671,6 +4675,32 @@ function (window, undefined) { return arg0; }; + /** + * @constructor + * @extends {AscCommonExcel.cBaseFunction} + */ + function cSINGLE() { + } + + //***array-formula*** + cSINGLE.prototype = Object.create(cBaseFunction.prototype); + cSINGLE.prototype.constructor = cSINGLE; + cSINGLE.prototype.name = 'SINGLE'; + cSINGLE.prototype.argumentsMin = 1; + cSINGLE.prototype.argumentsMax = 1; + cSINGLE.prototype.argumentsType = [argType.any]; + cSINGLE.prototype.arrayIndexes = {0: 1}; + cSINGLE.prototype.isXLFN = true; + cSINGLE.prototype.Calculate = function (arg) { + let arg0 = arg[0]; + if (arg0.type === cElementType.cellsRange || arg0.type === cElementType.cellsRange3D) { + arg0 = arg0.cross(arguments[1]); + } else if (arg0.type === cElementType.array) { + arg0 = arg0.getElement(0); + } + return arg0; + }; + /** * @constructor * @extends {AscCommonExcel.cBaseFunction} @@ -4966,9 +4996,10 @@ function (window, undefined) { cSUMIF.prototype.argumentsMin = 2; cSUMIF.prototype.argumentsMax = 3; cSUMIF.prototype.arrayIndexes = {0: 1, 2: 1}; + cSUMIF.prototype.exactTypes = {0: 1}; cSUMIF.prototype.argumentsType = [argType.reference, argType.any, argType.reference]; cSUMIF.prototype.Calculate = function (arg) { - var arg0 = arg[0], arg1 = arg[1], arg2 = arg[2] ? arg[2] : arg[0], _sum = 0, matchingInfo; + let arg0 = arg[0], arg1 = arg[1], arg2 = arg[2] ? arg[2] : arg[0], _sum = 0, matchingInfo; if (cElementType.cell !== arg0.type && cElementType.cell3D !== arg0.type && cElementType.cellsRange !== arg0.type) { if (cElementType.cellsRange3D === arg0.type) { @@ -4999,7 +5030,9 @@ function (window, undefined) { arg1 = arg1.getElementRowCol(0, 0); } - arg1 = arg1.tocString(); + if (cElementType.string !== arg1.type) { + arg1 = arg1.tocString(); + } if (cElementType.string !== arg1.type) { return new cError(cErrorType.wrong_value_type); @@ -5007,9 +5040,9 @@ function (window, undefined) { matchingInfo = AscCommonExcel.matchingValue(arg1); if (cElementType.cellsRange === arg0.type || cElementType.cell === arg0.type) { - var arg0Matrix = arg0.getMatrix(), arg2Matrix = arg2.getMatrix(), valMatrix2; - for (var i = 0; i < arg0Matrix.length; i++) { - for (var j = 0; j < arg0Matrix[i].length; j++) { + let arg0Matrix = arg0.getMatrix(), arg2Matrix = arg[2] ? arg2.getMatrix() : arg0Matrix, valMatrix2; + for (let i = 0; i < arg0Matrix.length; i++) { + for (let j = 0; j < arg0Matrix[i].length; j++) { if (arg2Matrix[i] && (valMatrix2 = arg2Matrix[i][j]) && cElementType.number === valMatrix2.type && AscCommonExcel.matching(arg0Matrix[i][j], matchingInfo)) { _sum += valMatrix2.getValue(); @@ -5098,6 +5131,7 @@ function (window, undefined) { cSUMIFS.prototype.name = 'SUMIFS'; cSUMIFS.prototype.argumentsMin = 3; cSUMIFS.prototype.arrayIndexes = {0: 1, 1: 1, 3: 1, 5: 1, 7: 1}; + cSUMIFS.prototype.exactTypes = {0: 1, 1: 1}; // in this function every odd argument is should be checked for type reference cSUMIFS.prototype.argumentsType = [argType.reference, [argType.reference, argType.any]]; cSUMIFS.prototype.Calculate = function (arg) { let arg0 = arg[0]; @@ -5256,6 +5290,24 @@ function (window, undefined) { cSUMIFS.prototype.checkArguments = function (countArguments) { return 1 === countArguments % 2 && cBaseFunction.prototype.checkArguments.apply(this, arguments); }; + cSUMIFS.prototype.checkArgumentsTypes = function (args) { + // check first element, then all odd ones + if (!cBaseFunction.prototype.checkArgumentsTypes.call(this, [args[0]])) { + return false + } + + for (let i = 1; i < args.length; i += 2) { + // check reference type for each odd element + let oddArgument = args[i]; + if (oddArgument && this.exactTypes[1]) { + if (oddArgument.type !== cElementType.cellsRange && oddArgument.type !== cElementType.cellsRange3D + && oddArgument.type !== cElementType.cell && oddArgument.type !== cElementType.cell3D) { + return false + } + } + } + return true; + }; /** * @constructor diff --git a/cell/model/FormulaObjects/parserFormula.js b/cell/model/FormulaObjects/parserFormula.js index 25bea8dd47..38b46ad007 100644 --- a/cell/model/FormulaObjects/parserFormula.js +++ b/cell/model/FormulaObjects/parserFormula.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -48,8 +48,9 @@ function (window, undefined) { var parserHelp = AscCommon.parserHelp; var g_oFormatParser = AscCommon.g_oFormatParser; var CellAddress = AscCommon.CellAddress; - var cDate = Asc.cDate; + var cDate = Asc.cDate; var bIsSupportArrayFormula = true; + var bIsSupportDynamicArrays = false; var c_oAscError = Asc.c_oAscError; @@ -71,9 +72,10 @@ function (window, undefined) { var TOK_SUBTYPE_UNION = 15; - var arrayFunctionsMap = {"SUMPRODUCT": 1, "FILTER": 1, "SUM": 1, "LOOKUP": 1}; + var arrayFunctionsMap = {"SUMPRODUCT": 1, "FILTER": 1, "SUM": 1, "LOOKUP": 1, "AGGREGATE": 1}; var importRangeLinksState = {importRangeLinks: null, startBuildImportRangeLinks: null}; + const aExcludeRecursiveFomulas = ['ISFORMULA', 'SHEETS', 'AREAS', 'COLUMN', 'COLUMNS', 'ROW', 'ROWS']; function getArrayCopy(arr) { var newArray = []; @@ -471,6 +473,7 @@ function (window, undefined) { return typedArr; } + /** @enum */ var cElementType = { number : 0, @@ -504,7 +507,8 @@ var cErrorType = { not_numeric : 6, not_available : 7, getting_data : 8, - array_not_calc : 9 + array_not_calc : 9, + cannot_be_spilled : 10 }; //добавляю константу cReturnFormulaType для корректной обработки формул массива // value - функция умеет возвращать только значение(не массив) @@ -517,6 +521,7 @@ var cErrorType = { // area_to_ref - заменяем area на массив ссылок на ячейку(REF) // replace_only_array - в случае с Area - оставляем его в аргументах и рассчитываем только 1 значение(аналогично array) // replace_only_array - в слуае с массивом - обрабатываем стандартно по элементам +// dynamic_array - в отличие от обычного массива такой тип будут использовать формулы которые могут не иметь в аргументах диапазонов/массивов, но при этом будут их возвращать(прим. SEQUENCE) /** @enum */ var cReturnFormulaType = { @@ -525,7 +530,25 @@ var cReturnFormulaType = { array: 2, area_to_ref: 3, replace_only_array: 4, - setArrayRefAsArg: 5//для row/column если нет аргументов + setArrayRefAsArg: 5, //для row/column если нет аргументов + dynamic_array: 6 +}; + +/* + arrayIndexesType - an supporting structure that shows what type of data (associated only with arrays) we expect to see in the argument + There are functions whose arguments only work with a certain type + For example, the argument can process an array, but a range with the same data will not be processed (as in the WORKDAY_INTL function for the first two arguments) + Each type is used to obtain that type in its pure form in a function, for example: + If the data type is array, we process only ranges, and pass the arrays unchanged into the formula + If the data type is range, we process only arrays, and pass ranges unchanged to the formula + If the data type is any - any data type is passed unchanged to the formula (analogous to the previous use of arrayIndex in the format {0: 1, 1: 1}) +*/ + +/** @enum */ +const arrayIndexesType = { + array: 0, + any: 1, + range: 2, }; var cExcelSignificantDigits = 15; //количество цифр в числе после запятой @@ -541,6 +564,12 @@ var cNumFormatFirstCell = -1; var cNumFormatNone = -2; var cNumFormatNull = -3; var g_nFormulaStringMaxLength = 255; +var c_nMaxDate1900 = 2958465; +var c_nMaxDate1904 = c_nMaxDate1900 - (c_Date1900Const - c_Date1904Const) + 1; + +function getMaxDate () { + return AscCommon.bDate1904 ? c_nMaxDate1904 : c_nMaxDate1900; // Maximum date used in calculations in ms (equivalent 31/12/9999) +} // set type weight of base types @@ -636,7 +665,7 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara return res; }; - cBaseType.prototype.toArray = function (putValue, checkOnError, fPrepareElem) { + cBaseType.prototype.toArray = function (putValue, checkOnError, fPrepareElem, bSaveBoolean) { let arr = []; if (this.getMatrix) { arr = this.getMatrix(); @@ -660,7 +689,11 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } } if (putValue) { - arr[i][j] = arr[i][j].getValue(); + if (bSaveBoolean && arr[i][j].type === cElementType.bool) { + arr[i][j] = arr[i][j].toBool(); + } else { + arr[i][j] = arr[i][j].getValue(); + } } } } @@ -917,6 +950,13 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara this.errorType = cErrorType.array_not_calc; break; } + case cErrorLocal["spill"]: + case cErrorOrigin["spill"]: + case cErrorType.cannot_be_spilled: { + this.value = "#SPILL!"; + this.errorType = cErrorType.cannot_be_spilled; + break; + } } return this; @@ -978,6 +1018,10 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara case cErrorType.array_not_calc: { return cErrorLocal["calc"]; } + case cErrorOrigin["spill"]: + case cErrorType.cannot_be_spilled: { + return cErrorLocal["spill"]; + } } return cErrorLocal["na"]; }; @@ -1024,6 +1068,10 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara res = cErrorType.array_not_calc; break; } + case cErrorOrigin["spill"]: { + res = cErrorType.cannot_be_spilled; + break; + } default: { res = cErrorType.not_available; break; @@ -1074,6 +1122,10 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara res = cErrorOrigin["calc"]; break; } + case cErrorType.cannot_be_spilled: { + res = cErrorOrigin["spill"]; + break; + } default: res = cErrorType.not_available; break; @@ -1260,8 +1312,8 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara cArea.prototype.foreach2 = function (action) { var r = this.getRange(); if (r) { - r._foreach2(function (cell) { - action(checkTypeCell(cell), cell); + r._foreach2(function (cell, row, col) { + action(checkTypeCell(cell), cell, row, col); }); } }; @@ -1763,8 +1815,8 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara var _r = this.range(_wsA); for (var i = 0; i < _r.length; i++) { if (_r[i]) { - _r[i]._foreach2(function (cell) { - action(checkTypeCell(cell)); + _r[i]._foreach2(function (cell, row, col) { + action(checkTypeCell(cell), cell, row, col); }); } } @@ -1983,13 +2035,19 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara return !!this.getRange(); }; cRef3D.prototype.getValue = function () { - var _r = this.getRange(); + const t = this; + let _r = this.getRange(); if (!_r) { return new cError(cErrorType.bad_reference); } var res; _r.getLeftTopCellNoEmpty(function (cell) { - res = checkTypeCell(cell); + if (!cell && t.externalLink) { + // if we refer to a non-existent cell in external data, return a #REF error + res = new cError(cErrorType.bad_reference); + } else { + res = checkTypeCell(cell); + } }); return res; }; @@ -2273,8 +2331,10 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara return this._toString(true); }; cStrucTable.prototype._toString = function (isLocal) { - var tblStr, columns_1, columns_2; - var table = this.wb.getDefinesNames(this.tableName, null); + // file works with "#This Row" - user with "@" + // isLocal - change "#This Row", to "@" + const table = this.wb.getDefinesNames(this.tableName, null); + let tblStr, columns_1, columns_2; if (!table) { tblStr = this.tableName; } else { @@ -2282,42 +2342,80 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } if (this.oneColumnIndex) { + // TODO add this.isCrossSign to use? columns_1 = this.oneColumnIndex.name.replace(/([#[\]])/g, "'$1"); + + if (this.isDynamic && isLocal) { + columns_1 = "@" + columns_1; + } else if (this.isDynamic) { + columns_1 = "[" + this._buildLocalTableString(AscCommon.FormulaTablePartInfo.thisRow, isLocal) + "]" + + FormulaSeparators.functionArgumentSeparatorDef + "[" + columns_1 + "]"; + } + tblStr += "[" + columns_1 + "]"; } else if (this.colStartIndex && this.colEndIndex) { columns_1 = this.colStartIndex.name.replace(/([#[\]])/g, "'$1"); columns_2 = this.colEndIndex.name.replace(/([#[\]])/g, "'$1"); tblStr += "[[" + columns_1 + "]:[" + columns_2 + "]]"; } else if (null != this.reservedColumnIndex) { - tblStr += "[" + this._buildLocalTableString(this.reservedColumnIndex, isLocal) + "]"; + if (this.isDynamic && isLocal && this.reservedColumnIndex === AscCommon.FormulaTablePartInfo.thisRow) { + tblStr += "[" + "@" + "]"; + } else if (this.isDynamic) { + tblStr += "[" + this._buildLocalTableString(this.reservedColumnIndex, isLocal) + "]"; + } } else if (this.hdtIndexes || this.hdtcstartIndex || this.hdtcendIndex) { tblStr += '['; - var i; - for (i = 0; i < this.hdtIndexes.length; ++i) { - if (0 != i) { - if (isLocal) { - tblStr += FormulaSeparators.functionArgumentSeparator; - } else { - tblStr += FormulaSeparators.functionArgumentSeparatorDef; - } + let i; + + if (this.hdtIndexes.length > 0 && this.isDynamic && isLocal && this.hdtIndexes[0] === AscCommon.FormulaTablePartInfo.thisRow) { + let hdtcstart = this.hdtcstartIndex ? this.hdtcstartIndex.name.replace(/([#[\]])/g, "'$1") : null; + let hdtcend = this.hdtcendIndex ? this.hdtcendIndex.name.replace(/([#[\]])/g, "'$1") : null; + + tblStr += "@"; + if (hdtcstart && !hdtcend) { + // if one column is selected + tblStr += hdtcstart; + } else if (hdtcstart && hdtcend) { + // if multiple columns are selected + tblStr += '[' + hdtcstart + ']'; + tblStr += ':[' + hdtcend + ']'; } - tblStr += "[" + this._buildLocalTableString(this.hdtIndexes[i], isLocal) + "]"; - } - if (this.hdtcstartIndex) { - if (this.hdtIndexes.length > 0) { - if (isLocal) { - tblStr += FormulaSeparators.functionArgumentSeparator; + + } else { + for (i = 0; i < this.hdtIndexes.length; ++i) { + if (0 != i) { + if (isLocal) { + tblStr += FormulaSeparators.functionArgumentSeparator; + } else { + tblStr += FormulaSeparators.functionArgumentSeparatorDef; + } + } + + if (this.hdtcstartIndex === null && this.hdtIndexes.length === 1) { + // If the formula contains a single hdt index, remove the inner brackets =Table[[#Headers|#All|#Data|#Totals]] + tblStr += this._buildLocalTableString(this.hdtIndexes[i], isLocal); } else { - tblStr += FormulaSeparators.functionArgumentSeparatorDef; + tblStr += "[" + this._buildLocalTableString(this.hdtIndexes[i], isLocal) + "]"; } } - var hdtcstart = this.hdtcstartIndex.name.replace(/([#[\]])/g, "'$1"); - tblStr += "[" + hdtcstart + "]"; - if (this.hdtcendIndex) { - var hdtcend = this.hdtcendIndex.name.replace(/([#[\]])/g, "'$1"); - tblStr += ":[" + hdtcend + "]"; + + if (this.hdtcstartIndex) { + if (this.hdtIndexes.length > 0) { + if (isLocal) { + tblStr += FormulaSeparators.functionArgumentSeparator; + } else { + tblStr += FormulaSeparators.functionArgumentSeparatorDef; + } + } + let hdtcstart = this.hdtcstartIndex.name.replace(/([#[\]])/g, "'$1"); + tblStr += "[" + hdtcstart + "]"; + if (this.hdtcendIndex) { + let hdtcend = this.hdtcendIndex.name.replace(/([#[\]])/g, "'$1"); + tblStr += ":[" + hdtcend + "]"; + } } } + tblStr += ']'; } else if (!isLocal) { tblStr += '[]'; @@ -2325,11 +2423,15 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara return tblStr; }; cStrucTable.prototype._parseVal = function (val) { - var bRes = true, startCol, endCol; + let bRes = true, startCol, endCol; this.tableName = val['tableName']; if (val['oneColumn']) { startCol = val['oneColumn'].replace(/'([#[\]])/g, '$1'); - this.oneColumnIndex = this.wb.getTableIndexColumnByName(this.tableName, startCol); + if (startCol[0] === "@") { + this.isDynamic = true; + } + + this.oneColumnIndex = this.wb.getTableIndexColumnByName(this.tableName, this.isDynamic ? startCol.slice(1) : startCol); bRes = !!this.oneColumnIndex; } else if (val['columnRange']) { startCol = val['colStart'].replace(/'([#[\]])/g, '$1'); @@ -2349,11 +2451,17 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } } else if (val['hdtcc']) { this.hdtIndexes = []; - var hdtcstart = val['hdtcstart']; - var hdtcend = val['hdtcend']; - var re = /\[(.*?)\]/ig, m; + let hdtcstart = val['hdtcstart']; + let hdtcend = val['hdtcend']; + let re = /\[(.*?)\]|\@/ig, m; + + let isCross; + if (val['hdt'] === "@") { + isCross = true; + } + while (null !== (m = re.exec(val['hdt']))) { - var param = parserHelp.getColumnTypeByName(m[1]); + let param = parserHelp.getColumnTypeByName(isCross ? m[0] : m[1]); if (AscCommon.FormulaTablePartInfo.thisRow == param || AscCommon.FormulaTablePartInfo.headers == param || AscCommon.FormulaTablePartInfo.totals == param) { this.isDynamic = true; @@ -2379,8 +2487,32 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara var isThisRow = false; var tableData, refName; if (this.oneColumnIndex) { - paramObj.param = AscCommon.FormulaTablePartInfo.columns; - paramObj.startCol = this.oneColumnIndex.name; + if (this.isDynamic) { + /* this row */ + isThisRow = true; + paramObj.param = AscCommon.FormulaTablePartInfo.thisRow; + let thisRow = this.wb.getTableRangeForFormula(this.tableName, paramObj); + + let thisCol; + if (thisRow) { + paramObj.param = AscCommon.FormulaTablePartInfo.columns; + paramObj.startCol = this.oneColumnIndex.name; + paramObj.endCol = null; + thisCol = this.wb.getTableRangeForFormula(this.tableName, paramObj); + } + + if (!thisRow || !thisCol) { + return this._createAreaError(isThisRow); + } + + range = new Asc.Range(thisCol.range.c1, thisRow.range.r1, thisCol.range.c2, thisRow.range.r2); + + tableData = thisCol; + tableData.range = range; + } else { + paramObj.param = AscCommon.FormulaTablePartInfo.columns; + paramObj.startCol = this.oneColumnIndex.name; + } } else if (this.colStartIndex && this.colEndIndex) { paramObj.param = AscCommon.FormulaTablePartInfo.columns; paramObj.startCol = this.colStartIndex.name; @@ -2640,13 +2772,17 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } } }; + cStrucTable.prototype.getRange = function () { + return this.area && this.area.getRange && this.area.getRange(); + }; /** * @constructor * @extends {cName} */ - function cName3D(val, ws) { + function cName3D(val, ws, externalLink) { cName.call(this, val, ws); + this.externalLink = externalLink; } cName3D.prototype = Object.create(cName.prototype); @@ -2659,15 +2795,21 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } else { ws = this.ws; } - var oRes = new cName3D(this.value, ws); + var oRes = new cName3D(this.value, ws, this.externalLink); this.cloneTo(oRes); return oRes; }; + cName3D.prototype.toString = function () { - return parserHelp.getEscapeSheetName(this.ws.getName()) + "!" + cName.prototype.toString.call(this); + var exPath = this.getExternalLinkStr(this.externalLink); + return parserHelp.getEscapeSheetName(exPath + this.ws.getName()) + "!" + cName.prototype.toString.call(this); }; cName3D.prototype.toLocaleString = function () { - return parserHelp.getEscapeSheetName(this.ws.getName()) + "!" + cName.prototype.toLocaleString.call(this); + var exPath = this.getExternalLinkStr(this.externalLink, true); + return parserHelp.getEscapeSheetName(exPath + this.ws.getName()) + "!" + cName.prototype.toLocaleString.call(this); + }; + cName3D.prototype.getWsId = function () { + return this.ws && this.ws.Id; }; /** @@ -2680,6 +2822,9 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara this.rowCount = 0; this.countElementInRow = []; this.countElement = 0; + + this.realSize = null; + this.missedValue = null; } cArray.prototype = Object.create(cBaseType.prototype); @@ -2725,8 +2870,14 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } return col; }; - cArray.prototype.getElementRowCol = function (row, col) { + cArray.prototype.getElementRowCol = function (row, col, checkRealSize) { if (row > this.rowCount || col > this.getCountElementInRow()) { + if (checkRealSize && this.realSize && row <= this.realSize.row && col <= this.realSize.col) { + if (this.missedValue) { + return this.missedValue + } + return new cEmpty(); + } return new cError(cErrorType.not_available); } return this.array[row] && this.array[row][col] ? this.array[row][col] : new cEmpty(); @@ -2778,19 +2929,40 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara cArray.prototype.getCountElement = function () { return this.countElement; }; - cArray.prototype.getCountElementInRow = function () { - return this.countElementInRow[0]; + cArray.prototype.getCountElementInRow = function (getRealSize) { + return getRealSize && this.realSize ? this.realSize.col : this.countElementInRow[0]; }; - cArray.prototype.getRowCount = function () { - return this.rowCount; + cArray.prototype.getRowCount = function (getRealSize) { + return getRealSize && this.realSize ? this.realSize.row : this.rowCount; }; cArray.prototype.geMaxElementInRow = function () { return Math.max.apply(null, this.countElementInRow); }; + cArray.prototype.getRealArraySize = function () { + if (!this.realSize) { + return; + } + + return this.realSize; + }; + cArray.prototype.getMissedValue = function () { + if (!this.missedValue) { + return; + } + + return this.missedValue; + }; + cArray.prototype.setRealArraySize = function (row, col) { + if (row > 0 && col > 0) { + this.realSize = {row: row, col: col} + } + }; cArray.prototype.tocNumber = function () { - var retArr = new cArray(); - for (var ir = 0; ir < this.rowCount; ir++, retArr.addRow()) { - for (var ic = 0; ic < this.countElementInRow[ir]; ic++) { + let retArr = new cArray(); + retArr.realSize = this.getRealArraySize(); + retArr.missedValue = this.getMissedValue(); + for (let ir = 0; ir < this.rowCount; ir++, retArr.addRow()) { + for (let ic = 0; ic < this.countElementInRow[ir]; ic++) { retArr.addElement(this.array[ir][ic].tocNumber()); } if (ir === this.rowCount - 1) { @@ -2902,13 +3074,26 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara return this.array; }; - cArray.prototype.fillFromArray = function (arr) { - this.array = arr; - this.rowCount = arr.length; - for (var i = 0; i < arr.length; i++) { - this.countElementInRow[i] = arr[i].length; - this.countElement += arr[i].length; + cArray.prototype.fillFromArray = function (arr, fChangeElems) { + if (arr && arr.length !== undefined) { + this.array = arr; + this.rowCount = arr.length; + for (var i = 0; i < arr.length; i++) { + this.countElementInRow[i] = arr[i].length; + this.countElement += arr[i].length; + if (fChangeElems){ + for (let j = 0; j < arr[i].length; j++) { + let changeRes = fChangeElems(arr[i][j]); + if (changeRes !== null) { + arr[i][j] = changeRes; + } else { + return null; + } + } + } + } } + return true; }; cArray.prototype.fillEmptyFromRange = function (range) { if(!range) { @@ -2922,8 +3107,9 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } } }; - cArray.prototype.getDimensions = function () { - return {col: this.getCountElementInRow(), row: this.getRowCount()}; + cArray.prototype.getDimensions = function (getRealSize) { + let realSize = getRealSize ? this.getRealArraySize() : false; + return {col: realSize ? realSize.col : this.getCountElementInRow(), row: realSize ? realSize.row : this.getRowCount()}; }; cArray.prototype.fillMatrix = function (replace_empty) { let maxColCount = Math.max.apply(null, this.countElementInRow); @@ -2940,7 +3126,7 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara this.countElement += this.array[i].length; } }; - cArray.prototype.recalculate = function () { + cArray.prototype.recalculateOld = function () { this.rowCount = this.array.length; this.countElementInRow = []; this.countElement = 0; @@ -2949,6 +3135,23 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara this.countElement += this.array[i].length; } }; + cArray.prototype.recalculate = function (row) { + this.rowCount = this.array.length; + if (row === undefined) { + // full recalculation of the number of elements in the entire array, long execution + this.countElementInRow = []; + this.countElement = 0; + for (let i = 0; i < this.array.length; i++) { + this.countElementInRow[i] = this.array[i].length; + this.countElement += this.array[i].length; + } + } else { + // changing only the affected values ​​(by row) + let lookingRow = this.array[row]; + this.countElementInRow[row] = lookingRow.length; + this.countElement += lookingRow.length; + } + }; cArray.prototype.pushCol = function (matrix, colNum) { for (let i = 0; i < matrix.length; i++) { if (matrix[i] && matrix[i][colNum]) { @@ -2960,10 +3163,10 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } this.recalculate(); }; - cArray.prototype.pushRow = function (matrix, colNum) { - if (matrix && matrix[colNum]) { - this.array.push(matrix[colNum]); - this.recalculate(); + cArray.prototype.pushRow = function (matrix, rowNum) { + if (matrix && matrix[rowNum]) { + this.array.push(matrix[rowNum]); + this.recalculate(this.array.length - 1); } }; cArray.prototype.crop = function (row, col) { @@ -2992,6 +3195,34 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara cArray.prototype.getFirstElement = function () { return this.getElementRowCol(0,0); }; + //check two-dimensional array + cArray.prototype.checkValidArray = function (array, bConvertToValid) { + if (!array || !array.length) { + return false; + } + let isOneDimensional = null; + for (let i = 0; i < array.length; i++) { + if (Array.isArray(array[i])) { + if (isOneDimensional) { + return false; + } + for (let j = 0; j < array[i].length; j++) { + if (Array.isArray(array[i][j])) { + return false; + } + } + isOneDimensional = false; + } else if (isOneDimensional === null) { + isOneDimensional = true; + } + } + if (isOneDimensional && bConvertToValid) { + let temp = []; + temp.push(array); + array = temp; + } + return array; + }; @@ -3111,8 +3342,8 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara res = new cArray(); for (var iRow = 0; iRow < rowCount; iRow++, iRow < rowCount ? res.addRow() : true) { for (var iCol = 0; iCol < colCount; iCol++) { - var elem1 = matrix1 ? matrix1.getElementRowCol(dimension1.row === 1 ? 0 : iRow, dimension1.col === 1 ? 0 : iCol) : operand1; - var elem2 = matrix2 ? matrix2.getElementRowCol(dimension2.row === 1 ? 0 : iRow, dimension2.col === 1 ? 0 : iCol) : operand2; + var elem1 = matrix1 ? matrix1.getElementRowCol(dimension1.row === 1 ? 0 : iRow, dimension1.col === 1 ? 0 : iCol, true) : operand1; + var elem2 = matrix2 ? matrix2.getElementRowCol(dimension2.row === 1 ? 0 : iRow, dimension2.col === 1 ? 0 : iCol, true) : operand2; res.addElement(func(elem1, elem2)); } } @@ -3558,6 +3789,19 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara var res = null; var t = this; + let dynamicRange = null, dynamicArraySize = null; + if (AscCommonExcel.bIsSupportDynamicArrays) { + if (!parserFormula.dynamicRange && !parserFormula.ref) { + dynamicArraySize = this.getDynamicArraySize(arg); + if (dynamicArraySize && parserFormula.parent && parserFormula.parent.nCol != null && parserFormula.parent.nRow != null) { + dynamicRange = Asc.Range(parserFormula.parent.nCol, parserFormula.parent.nRow, dynamicArraySize.width + parserFormula.parent.nCol - 1, dynamicArraySize.height + parserFormula.parent.nRow - 1); + // parserFormula.ref = dynamicRange; + parserFormula.dynamicRange = dynamicRange; + this.bArrayFormula = true; + } + } + } + var functionsCanReturnArray = ["index"]; var returnFormulaType = this.returnValueType; @@ -3575,15 +3819,16 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara //добавлен специальный тип для функции сT, она использует из области всегда первый аргумент var replaceOnlyArray = cReturnFormulaType.replace_only_array === returnFormulaType; - var checkArrayIndex = function(index) { - var res = false; + // Проверка должен ли элемент поступать в формулу без изменени? + const checkArrayIndex = function(index) { + let res = false; if(arrayIndexes) { - if(1 === arrayIndexes[index]) { + if(arrayIndexes[index] === arrayIndexesType.any) { res = true; } else if(typeof arrayIndexes[index] === "object") { //для данной проверки запрашиваем у объекта 0 индекс, там хранится значение индекса аргумента //от которого зависит стоит ли вопринимать данный аргумент как массив или нет - var tempsArgIndex = arrayIndexes[index][0]; + let tempsArgIndex = arrayIndexes[index][0]; if(undefined !== tempsArgIndex && arg[tempsArgIndex]) { if(cElementType.cellsRange === arg[tempsArgIndex].type || cElementType.cellsRange3D === arg[tempsArgIndex].type || cElementType.array === arg[tempsArgIndex].type) { res = true; @@ -3594,9 +3839,18 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara return res; }; - var checkOneRowCol = function() { - var res = false; - for (var j = 0; j < argumentsCount; j++) { + const checkArayIndexType = function(index, argType) { + // check for type of argument - whether array and range can be processed or just one of them + let res = false; + if(arrayIndexes && argType === arrayIndexes[index]) { + res = true; + } + return res; + }; + + const checkOneRowCol = function() { + let res = false; + for (let j = 0; j < argumentsCount; j++) { if(cElementType.array === arg[j].type) { if(1 === arg[j].getRowCount() || 1 === arg[j].getCountElementInRow()) { res = true; @@ -3629,7 +3883,10 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara _checkArrayIndex = checkArrayIndex(j); if (!_checkArrayIndex) { if (cElementType.cellsRange === tempArg.type || cElementType.cellsRange3D === tempArg.type) { - if (replaceAreaByValue) { + if (checkArayIndexType(j, arrayIndexesType.range)) { + // transfer range to argument without changing + tempArg = tempArg; + } else if (replaceAreaByValue) { tempArg = tempArg.cross(opt_bbox); } else if (replaceAreaByRefs) { //добавляю специальные заглушки для функций row/column @@ -3650,18 +3907,21 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara tempArg = window['AscCommonExcel'].convertAreaToArray(tempArg); } } - } - if (cElementType.array === tempArg.type && !_checkArrayIndex) { - //пытаемся найти массив, которые имеет более 1 столбца и более 1 строки - if (!firstArray) { - firstArray = tempArg; - } else if((1 === firstArray.getRowCount() || 1 === firstArray.getCountElementInRow()) && 1 !== tempArg.getRowCount() && 1 !== tempArg.getCountElementInRow()) { - firstArray = tempArg; - } else if((1 === firstArray.getRowCount() && 1 === firstArray.getCountElementInRow()) && (1 !== tempArg.getRowCount() || 1 !== tempArg.getCountElementInRow())){ - firstArray = tempArg; + if (cElementType.array === tempArg.type) { + if (checkArayIndexType(j, arrayIndexesType.array)) { + // transfer array to argument without changing + tempArg = tempArg; + } else if (!firstArray) { //пытаемся найти массив, которые имеет более 1 столбца и более 1 строки + firstArray = tempArg; + } else if((1 === firstArray.getRowCount() || 1 === firstArray.getCountElementInRow()) && 1 !== tempArg.getRowCount() && 1 !== tempArg.getCountElementInRow()) { + firstArray = tempArg; + } else if((1 === firstArray.getRowCount() && 1 === firstArray.getCountElementInRow()) && (1 !== tempArg.getRowCount() || 1 !== tempArg.getCountElementInRow())){ + firstArray = tempArg; + } } } + tempArgs.push(tempArg); } @@ -3713,7 +3973,7 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara if (0 === argumentsCount && parserFormula.ref) { temp_opt_bbox = new Asc.Range(c + parserFormula.ref.c1, r + parserFormula.ref.r1, c + parserFormula.ref.c1, r + parserFormula.ref.r1); } - array.addElement(t.Calculate(newArgs, temp_opt_bbox, opt_defName, parserFormula.ws, null, _row, _col)); + array.addElement(t.Calculate(newArgs, temp_opt_bbox, opt_defName, parserFormula.ws, null, _row ? _row : r, _col ? _col : c)); }; if (firstArray.foreach) { @@ -3740,9 +4000,122 @@ parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSepara } } + if (AscCommonExcel.bIsSupportDynamicArrays && (dynamicRange || dynamicArraySize)) { + // parserFormula.ref = null; + this.bArrayFormula = null; + } + return res; }; + cBaseFunction.prototype.checkFormulaArray2 = function (arg, opt_bbox, opt_defName, parserFormula, bIsSpecialFunction, argumentsCount) { + // if (AscCommonExcel.bIsSupportDynamicArrays) { + const t = this; + let res = null; + let functionsCanReturnArray = ["index"]; + + let returnFormulaType = this.returnValueType; + if (cReturnFormulaType.setArrayRefAsArg === returnFormulaType) { + // todo check if this situation occurs + if (arg.length === 0 && parserFormula.ref) { + res = this.Calculate([new cArea(parserFormula.ref.getName(), parserFormula.ws)], opt_bbox, opt_defName, parserFormula.ws); + } else { + return null; + } + } + + let arrayIndexes = this.arrayIndexes; + let replaceAreaByValue = cReturnFormulaType.value_replace_area === returnFormulaType; + let replaceAreaByRefs = cReturnFormulaType.area_to_ref === returnFormulaType; + let replaceOnlyArray = cReturnFormulaType.replace_only_array === returnFormulaType; + + const checkArrayIndex = function(index) { + let res = false; + if(arrayIndexes) { + if(1 === arrayIndexes[index]) { + res = true; + } else if(typeof arrayIndexes[index] === "object") { + // for this situation check object 0 for an index, the value of the argument index is stored there + // which determines whether a given argument should be treated as an array or not + let tempsArgIndex = arrayIndexes[index][0]; + if(undefined !== tempsArgIndex && arg[tempsArgIndex]) { + if(cElementType.cellsRange === arg[tempsArgIndex].type || cElementType.cellsRange3D === arg[tempsArgIndex].type || cElementType.array === arg[tempsArgIndex].type) { + res = true; + } + } + } + } + return res; + }; + if((!returnFormulaType || replaceAreaByValue || replaceAreaByRefs || arrayIndexes || replaceOnlyArray)) { + if (functionsCanReturnArray.indexOf(this.name.toLowerCase()) !== -1) { + let _tmp = this.Calculate(arg, opt_bbox, opt_defName, this.ws, bIsSpecialFunction); + if (_tmp && _tmp.type === cElementType.array) { + return _tmp; + } + } + + let tempArgs = [], tempArg, firstArray, _checkArrayIndex; + for (let j = 0; j < argumentsCount; j++) { + tempArg = arg[j]; + + _checkArrayIndex = checkArrayIndex(j); + if (!_checkArrayIndex) { + if (/*cElementType.cellsRange === tempArg.type || cElementType.cellsRange3D === tempArg.type ||*/ cElementType.array === tempArg.type) { + res = true + } + } + if (res) { + return res; + } + + tempArgs.push(tempArg); + } + } + + return res; + // } + }; + + cBaseFunction.prototype.getDynamicArraySize = function (arg) { + + if (!AscCommonExcel.bIsSupportDynamicArrays || this.returnValueType === AscCommonExcel.cReturnFormulaType.array) { + return null; + } + + let width = 1, height = 1; + for (let i = 0; i < arg.length; i++) { + if (!this.arrayIndexes || !this.arrayIndexes[i]) { + let objSize = arg[i].getDimensions(); + if (objSize) { + height = Math.max(objSize.row, height); + width = Math.max(objSize.col, width); + } + } + } + + if (width !== 1 || height !== 1) { + return {width: width, height: height}; + } + return null; + }; + cBaseFunction.prototype.checkArgumentsTypes = function (args) { + if (args) { + let length = args.length; + for (let i = 0; i < length; i++) { + let arg = args[i]; + if (arg && this.exactTypes[i] && this.argumentsType && this.argumentsType[i] !== undefined) { + // check types + if (this.argumentsType[i] === Asc.c_oAscFormulaArgumentType.reference && (arg.type !== cElementType.cellsRange && arg.type !== cElementType.cellsRange3D + && arg.type !== cElementType.cell && arg.type !== cElementType.cell3D)) { + return false; + } + // todo add other data types for arguments to the check, if the function requires it + } + } + } + return true; + }; /** @constructor */ function cUnknownFunction(name) { @@ -5306,27 +5679,52 @@ _func[cElementType.array][cElementType.array] = function ( arg0, arg1, what, bbo _func[cElementType.array][cElementType.number] = _func[cElementType.array][cElementType.string] = _func[cElementType.array][cElementType.bool] = _func[cElementType.array][cElementType.error] = _func[cElementType.array][cElementType.empty] = function ( arg0, arg1, what ) { - var res = new cArray(); - arg0.foreach( function ( elem, r ) { + let res = new cArray(), realArraySize, rowDiff, colDiff, funcResult, arrayDimensions = arg0.getDimensions(); + + if (arg0.realSize && arg0.missedValue) { + realArraySize = arg0.getRealArraySize(); + rowDiff = realArraySize.row - arg0.getRowCount(); + colDiff = realArraySize.col - arg0.getCountElementInRow(); + funcResult = _func[arg0.missedValue.type][arg1.type](arg0.missedValue, arg1, what); + + // set realSize to res + res.setRealArraySize(realArraySize.row, realArraySize.col); + res.missedValue = funcResult; + } + + arg0.foreach( function ( elem, r ) { if ( !res.array[r] ) { res.addRow(); } res.addElement( _func[elem.type][arg1.type]( elem, arg1, what ) ); } ); + return res; }; - _func[cElementType.number][cElementType.array] = _func[cElementType.string][cElementType.array] = _func[cElementType.bool][cElementType.array] = _func[cElementType.error][cElementType.array] = _func[cElementType.empty][cElementType.array] = function ( arg0, arg1, what ) { - var res = new cArray(); - arg1.foreach( function ( elem, r ) { + let res = new cArray(), realArraySize, rowDiff, colDiff, funcResult, arrayDimensions = arg1.getDimensions(); + + if (arg1.realSize && arg1.missedValue) { + realArraySize = arg1.getRealArraySize(); + rowDiff = realArraySize.row - arg1.getRowCount(); + colDiff = realArraySize.col - arg1.getCountElementInRow(); + funcResult = _func[arg0.type][arg1.missedValue.type](arg0, arg1.missedValue, what); + + // set realSize to res + res.setRealArraySize(realArraySize.row, realArraySize.col); + res.missedValue = funcResult; + } + + arg1.foreach( function ( elem, r ) { if ( !res.array[r] ) { res.addRow(); } res.addElement( _func[arg0.type][elem.type]( arg0, elem, what ) ); } ); + return res; }; @@ -5833,6 +6231,13 @@ _func[cElementType.cell3D] = _func[cElementType.cell]; return res; }; + function CalculateResult(checkOnError) { + this.checkOnError = checkOnError; + this.error = null; + } + CalculateResult.prototype.setError = function(error) { + this.error = error; + }; var g_defParseResult = new ParseResult(undefined, undefined); @@ -5936,6 +6341,19 @@ function parserFormula( formula, parent, _ws ) { } }; parserFormula.prototype._changeExternalLink = function(data) { + let existedWs = data.existedWs; + for (let i = 0; i < this.outStack.length; i++) { + let elem = this.outStack[i]; + if (elem.type === cElementType.cell3D) { + this.outStack[i] = new AscCommonExcel.cRef3D(elem.value, existedWs ? existedWs : elem.ws, data.data.to); + } else if (elem.type === cElementType.cellsRange3D) { + this.outStack[i] = new AscCommonExcel.cArea3D(elem.value, existedWs ? existedWs : elem.wsFrom, existedWs ? existedWs : elem.wsTo, data.data.to); + } else if (elem.type === cElementType.name3D) { + this.outStack[i] = new AscCommonExcel.cName3D(elem.value, existedWs ? existedWs : elem.ws, data.data.to); + } + } + }; + parserFormula.prototype._changeExternalLinkOld = function(data) { for (var i = 0; i < this.outStack.length; i++) { if (this.outStack[i].type === cElementType.cell3D || this.outStack[i].type === cElementType.cellsRange3D || this.outStack[i].type === cElementType.name3D) { if (this.outStack[i].externalLink == data.data.from) { @@ -6020,6 +6438,7 @@ function parserFormula( formula, parent, _ws ) { } oRes.isParsed = this.isParsed; oRes.ref = this.ref; + oRes.ca = this.ca; return oRes; }; parserFormula.prototype.getParent = function() { @@ -6655,10 +7074,10 @@ function parserFormula( formula, parent, _ws ) { return true; }; - var parseCommaAndArgumentsUnion = function () { + const parseCommaAndArgumentsUnion = function () { wasLeftParentheses = false; wasRigthParentheses = false; - var stackLength = elemArr.length, top_elem = null, top_elem_arg_pos; + let stackLength = elemArr.length, top_elem = null, top_elem_arg_pos; if (elemArr.length !== 0 && elemArr[stackLength - 1].name === "(" && ((!elemArr[stackLength - 2]) || (elemArr[stackLength - 2] && elemArr[stackLength - 2].type !== cElementType.func))) { @@ -6826,6 +7245,66 @@ function parserFormula( formula, parent, _ws ) { parseResult.operand_expected = false; return true; }; + const isRecursiveFormula = function (found_operand, parserFormula) { + const nOperandType = found_operand.type; + let oRange = null; + let bRecursiveCell = parserFormula.ca; + + if (parserFormula.getParent() == null) { + return bRecursiveCell; + } + if (parserFormula.ca) { + return bRecursiveCell; + } + if (levelFuncMap.length && levelFuncMap[currentFuncLevel] && aExcludeRecursiveFomulas.includes(levelFuncMap[currentFuncLevel].func.name)) { + return bRecursiveCell; + } + if (nOperandType === cElementType.cellsRange) { + oRange = found_operand.getRange(); + return oRange.containCell2(parserFormula.getParent()); + } + if (nOperandType === cElementType.cellsRange3D) { + const oParentCell = parserFormula.getParent(); + if (!(oParentCell instanceof AscCommonExcel.CCellWithFormula)) { + return false; + } + const aRanges = found_operand.getRanges().filter(function (oRange) { + return oParentCell.ws.getId() === oRange.worksheet.getId(); + }); + + for (let i = 0, length = aRanges.length; i < length; i++) { + if (aRanges[i].containCell2(oParentCell)) { + return true; + } + } + return false; + } + if (nOperandType === cElementType.name || nOperandType === cElementType.name3D) { + const oElemValue = found_operand.getValue(); + const oElemType = oElemValue.type; + let aRef = [cElementType.cell, cElementType.cell3D, cElementType.cellsRange, cElementType.cellsRange3D]; + if (!aRef.includes(oElemType)) { + return bRecursiveCell; + } + oRange = oElemValue.getRange(); + if (oElemType === cElementType.cellsRange || oElemType === cElementType.cellsRange3D) { + return oRange.containCell2(parserFormula.getParent()); + } + } else if (nOperandType === cElementType.table) { + let oRefElem = found_operand.toRef(); + oRange = oRefElem.getRange(); + } else { + oRange = found_operand.getRange(); + } + + oRange._foreachNoEmpty(function (oCell) { + if (!bRecursiveCell) { + bRecursiveCell = oCell.checkRecursiveFormula(parserFormula.getParent()); + } + }); + + return bRecursiveCell; + }; var parseOperands = function () { found_operand = null; @@ -6889,7 +7368,9 @@ function parserFormula( formula, parent, _ws ) { } var wsF, wsT; - var externalLink = _3DRefTmp[3]; + let sheetName = _3DRefTmp[1]; + let externalLink = _3DRefTmp[3]; + let isExternalRefExist; //check on add to this document let thisTitle = externalLink && window["Asc"]["editor"] && window["Asc"]["editor"].DocInfo && window["Asc"]["editor"].DocInfo.get_Title(); if (thisTitle === externalLink) { @@ -6906,18 +7387,31 @@ function parserFormula( formula, parent, _ws ) { if (!parseResult.externalReferenesNeedAdd[externalLink]) { parseResult.externalReferenesNeedAdd[externalLink] = []; } - parseResult.externalReferenesNeedAdd[externalLink].push({sheet: _3DRefTmp[1]}); + parseResult.externalReferenesNeedAdd[externalLink].push({sheet: sheetName /*_3DRefTmp[1]*/}); + } else { + isExternalRefExist = true; + let externalName = _3DRefTmp[3]; + if (!parseResult.externalReferenesNeedAdd) { + parseResult.externalReferenesNeedAdd = []; + } + if (!parseResult.externalReferenesNeedAdd[externalName]) { + parseResult.externalReferenesNeedAdd[externalName] = []; + } + parseResult.externalReferenesNeedAdd[externalName].push({sheet: sheetName /*_3DRefTmp[1]*/}); } } - wsF = t.wb.getExternalWorksheet(externalLink, _3DRefTmp[1]); + wsF = sheetName ? t.wb.getExternalWorksheet(externalLink, sheetName /*_3DRefTmp[1]*/) : null; wsT = wsF; } else { - wsF = t.wb.getWorksheetByName(_3DRefTmp[1]); + wsF = t.wb.getWorksheetByName(sheetName/*_3DRefTmp[1]*/); wsT = (null !== _3DRefTmp[2]) ? t.wb.getWorksheetByName(_3DRefTmp[2]) : wsF; } - if (!(wsF && wsT) && !externalLink) { + // if it's impossible to get a sheet from an external file, but the file itself is exist, then we return an error about incorrectly entering the formula + let wsNotExist = externalLink && isExternalRefExist && !wsF; + + if ((!(wsF && wsT) && !externalLink) /*|| wsNotExist*/) { parseResult.setError(c_oAscError.ID.FrmlWrongReferences); if (!ignoreErrors) { t.outStack = []; @@ -6938,6 +7432,9 @@ function parserFormula( formula, parent, _ws ) { found_operand = new cArea3D(ph.real_str ? ph.real_str.toUpperCase() : ph.operand_str.toUpperCase(), wsF, wsT, externalLink); } parseResult.addRefPos(prevCurrPos, ph.pCurrPos, t.outStack.length, found_operand); + if (local || (local === false && digitDelim === false)) { // local and digitDelim with value false using only for copypaste mode. + t.ca = isRecursiveFormula(found_operand, t); + } } else if (parserHelp.isRef.call(ph, t.Formula, ph.pCurrPos)) { if (!(wsF && wsT)) { //for edit formula mode @@ -6949,10 +7446,16 @@ function parserFormula( formula, parent, _ws ) { found_operand = new cRef3D(ph.real_str ? ph.real_str.toUpperCase() : ph.operand_str.toUpperCase(), wsF, externalLink); } parseResult.addRefPos(prevCurrPos, ph.pCurrPos, t.outStack.length, found_operand); + if (local || (local === false && digitDelim === false)) { // local and digitDelim with value false using only for copypaste mode. + t.ca = isRecursiveFormula(found_operand, t); + } } else { parserHelp.isName.call(ph, t.Formula, ph.pCurrPos); - found_operand = new cName3D(ph.operand_str, wsF); + found_operand = new cName3D(ph.operand_str, wsF, externalLink); parseResult.addRefPos(prevCurrPos, ph.pCurrPos, t.outStack.length, found_operand); + if (local || (local === false && digitDelim === false)) { // local and digitDelim with value false using only for copypaste mode. + t.ca = isRecursiveFormula(found_operand, t); + } } } @@ -6962,6 +7465,9 @@ function parserFormula( formula, parent, _ws ) { } found_operand = new cArea(ph.real_str ? ph.real_str.toUpperCase() : ph.operand_str.toUpperCase(), t.ws); parseResult.addRefPos(ph.pCurrPos - ph.operand_str.length, ph.pCurrPos, t.outStack.length, found_operand); + if (local || (local === false && digitDelim === false)) { // local and digitDelim with value false using only for copypaste mode. + t.ca = isRecursiveFormula(found_operand, t); + } } /* Referens to cell A4 */ else if (parserHelp.isRef.call(ph, t.Formula, ph.pCurrPos)) { if (!_checkReferenceCount(1)) { @@ -6969,6 +7475,10 @@ function parserFormula( formula, parent, _ws ) { } found_operand = new cRef(ph.real_str ? ph.real_str.toUpperCase() : ph.operand_str.toUpperCase(), t.ws); parseResult.addRefPos(ph.pCurrPos - ph.operand_str.length, ph.pCurrPos, t.outStack.length, found_operand); + + if (local || (local === false && digitDelim === false)) { // local and digitDelim with value false using only for copypaste mode. + t.ca = isRecursiveFormula(found_operand, t); + } } else if (_tableTMP = parserHelp.isTable.call(ph, t.Formula, ph.pCurrPos, local)) { found_operand = cStrucTable.prototype.createFromVal(_tableTMP, t.wb, t.ws, tablesMap); @@ -7026,6 +7536,12 @@ function parserFormula( formula, parent, _ws ) { needAssemble = true; } parseResult.addRefPos(ph.pCurrPos - ph.operand_str.length, ph.pCurrPos, t.outStack.length, found_operand, true); + if (local || (local === false && digitDelim === false)) { // local and digitDelim with value false using only for copypaste mode. + t.ca = isRecursiveFormula(found_operand, t); + } + if (t.ca && defName && defName.parsedRef) { + defName.parsedRef.ca = t.ca; + } } /* Numbers*/ else if (parserHelp.isNumber.call(ph, t.Formula, ph.pCurrPos, digitDelim)) { @@ -7304,48 +7820,176 @@ function parserFormula( formula, parent, _ws ) { } }; - parserFormula.prototype.calculateCycleError = function () { - this.value = new cError(cErrorType.bad_reference); - this._endCalculate(); - return this.value; - }; - parserFormula.prototype.calculate = function (opt_defName, opt_bbox, opt_offset, checkMultiSelect) { - if (this.outStack.length < 1) { - this.value = new cError(cErrorType.wrong_name); - this._endCalculate(); - return this.value; - } - if (!opt_bbox && this.parent && this.parent.onFormulaEvent) { - opt_bbox = this.parent.onFormulaEvent(AscCommon.c_oNotifyParentType.GetRangeCell); - } - if (!opt_bbox) { - opt_bbox = new Asc.Range(0, 0, 0, 0); - } - - var elemArr = [], _tmp, numFormat = cNumFormatFirstCell, currentElement = null, bIsSpecialFunction, argumentsCount, defNameCalcArr, defNameArgCount = 0; - for (var i = 0; i < this.outStack.length; i++) { - currentElement = this.outStack[i]; - if (currentElement.name === "(") { - continue; - } - if(currentElement.type === cElementType.specialFunctionStart){ - bIsSpecialFunction = true; - continue; - } - if(currentElement.type === cElementType.specialFunctionEnd){ - bIsSpecialFunction = false; - continue; - } - if("number" === typeof(currentElement)){ - continue; + parserFormula.prototype.findRefByOutStack = function (forceCheck) { + if (AscCommonExcel.bIsSupportDynamicArrays || forceCheck) { + // using outStack, look at all the arguments in the formulas and compare them with the arrayIndex positions for this formula + // go through the stack in the same order as .calculate method + if (this.ref) { + return true; } - //TODO пока проставляю у каждого элемента флаг для рассчетов. пересмотреть - //***array-formula*** - currentElement.bArrayFormula = null; - if(this.ref) { - currentElement.bArrayFormula = true; - } + if (this.outStack && this.outStack.length > 0) { + let elemArr = [], _tmp, currentElement = null, bIsSpecialFunction, argumentsCount, defNameCalcArr, defNameArgCount = 0; + let length = this.outStack.length; + let isRef, opt_bbox; + + if (!opt_bbox && this.parent && this.parent.onFormulaEvent) { + opt_bbox = this.parent.onFormulaEvent(AscCommon.c_oNotifyParentType.GetRangeCell); + } + if (!opt_bbox) { + opt_bbox = new Asc.Range(0, 0, 0, 0); + } + + if (length === 1) { + let singleElem = this.outStack[0]; + if (singleElem.type === cElementType.cellsRange || singleElem.type === cElementType.cellsRange3D || singleElem.type === cElementType.array) { + isRef = true; + } else if (singleElem.type === cElementType.name || singleElem.type === cElementType.name3D) { + // let defName = singleElem.getDefName(); + let defNameResult = singleElem.Calculate(null, opt_bbox, true); + if (defNameResult && defNameResult.type === cElementType.array || defNameResult.type === cElementType.cellsRange || defNameResult.type === cElementType.cellsRange3D) { + isRef = true; + } + } else if (singleElem.type === cElementType.table) { + let tableArea = singleElem.toRef(opt_bbox); + if (tableArea && tableArea.type === cElementType.cellsRange || tableArea.type === cElementType.cellsRange3D || tableArea.type === cElementType.array) { + isRef = true; + } + } + + if (isRef) { + return isRef; + } + } + + for (let i = 0; i < this.outStack.length; i++) { + currentElement = this.outStack[i]; + if (!currentElement) { + continue; + } + + if(currentElement.name === "(" || currentElement.type === cElementType.specialFunctionStart || currentElement.type === cElementType.specialFunctionEnd || "number" === typeof(currentElement)) { + continue; + } + + if (currentElement.type === cElementType.operator || currentElement.type === cElementType.func) { + argumentsCount = "number" === typeof(this.outStack[i - 1]) ? this.outStack[i - 1] : currentElement.argumentsCurrent; + if (argumentsCount < 0) { + argumentsCount = -argumentsCount; + currentElement.bArrayFormula = true; + } + if (elemArr.length < argumentsCount) { + // elemArr = []; + // todo test these cases + return false; + } else if (argumentsCount + defNameArgCount > currentElement.argumentsMax) { + // elemArr = []; + // todo test these cases + return false; + } else { + // if operator - check whether each of the arguments is a range or an array + let isOperator = currentElement.type === cElementType.operator; + let arg = []; + for (let i = 0; i < argumentsCount + defNameArgCount; i++) { + if ("number" === typeof(elemArr[elemArr.length - 1])) { + elemArr.pop(); + } + let tempElem = elemArr.pop(); + if (isOperator && (tempElem.type === cElementType.cellsRange || tempElem.type === cElementType.cellsRange3D || tempElem.type === cElementType.array)) { + isRef = true; + } + + // arg.unshift(elemArr.pop()); + arg.unshift(tempElem); + } + + let isCanExpand = null; + if (currentElement.type === cElementType.func) { + isCanExpand = cBaseFunction.prototype.checkFormulaArray2.call(currentElement, arg, opt_bbox, null, this, bIsSpecialFunction, argumentsCount); + } else if (currentElement.type === cElementType.operator && currentElement.bArrayFormula) { + bIsSpecialFunction = true; + } + + if(isCanExpand) { + isRef = true; + } else { + /* results of SEQUENCE, RANDARRAY etc... can return an array when using regular values ​​in arguments */ + _tmp = currentElement.Calculate(arg, opt_bbox, null, this.ws, bIsSpecialFunction); + } + + if (isRef || (_tmp && (_tmp.type === cElementType.array /*|| _tmp.type === cElementType.cellsRange || _tmp.type === cElementType.cellsRange3D*/))) { + return true; + } + + defNameArgCount = 0; + elemArr.push(_tmp); + } + } else if (currentElement.type === cElementType.name || currentElement.type === cElementType.name3D) { + // let defName = currentElement.getDefName(); + defNameCalcArr = currentElement.Calculate(null, opt_bbox, true); + defNameArgCount = []; + if(defNameCalcArr && defNameCalcArr.length) { + defNameArgCount = defNameCalcArr.length - 1; + for(let j = 0; j < defNameCalcArr.length; j++) { + elemArr.push(defNameCalcArr[j]); + } + } else { + elemArr.push(defNameCalcArr); + } + } else if (currentElement.type === cElementType.table) { + elemArr.push(currentElement.toRef(opt_bbox)); + } else { + elemArr.push(currentElement); + } + } + + return isRef; + } + return false; + } + }; + parserFormula.prototype.calculate = function (opt_defName, opt_bbox, opt_offset, checkMultiSelect, opt_oCalculateResult) { + if (this.outStack.length < 1) { + this.value = new cError(cErrorType.wrong_name); + this._endCalculate(); + return this.value; + } + if (!opt_bbox && this.parent && this.parent.onFormulaEvent) { + opt_bbox = this.parent.onFormulaEvent(AscCommon.c_oNotifyParentType.GetRangeCell); + } + if (!opt_bbox) { + opt_bbox = new Asc.Range(0, 0, 0, 0); + } + + var elemArr = [], _tmp, numFormat = cNumFormatFirstCell, currentElement = null, bIsSpecialFunction, argumentsCount, defNameCalcArr, defNameArgCount = 0; + for (var i = 0; i < this.outStack.length; i++) { + currentElement = this.outStack[i]; + if (currentElement.name === "(") { + continue; + } + if(currentElement.type === cElementType.specialFunctionStart){ + bIsSpecialFunction = true; + continue; + } + if(currentElement.type === cElementType.specialFunctionEnd){ + bIsSpecialFunction = false; + continue; + } + if("number" === typeof(currentElement)){ + continue; + } + + //TODO пока проставляю у каждого элемента флаг для рассчетов. пересмотреть + //***array-formula*** + currentElement.bArrayFormula = null; + if(this.ref) { + currentElement.bArrayFormula = true; + } + + /* concatenation should be done as an array formula - via ref */ + if (currentElement.name && currentElement.name === "&") { + currentElement.bArrayFormula = true; + } if (currentElement.type === cElementType.operator || currentElement.type === cElementType.func) { argumentsCount = "number" === typeof(this.outStack[i - 1]) ? this.outStack[i - 1] : currentElement.argumentsCurrent; @@ -7378,7 +8022,16 @@ function parserFormula( formula, parent, _ws ) { //если данная функция не может возвращать массив, проходимся по всем элементам аргументов и формируем массив var formulaArray = null; if (currentElement.type === cElementType.func) { - formulaArray = cBaseFunction.prototype.checkFormulaArray.call(currentElement, arg, opt_bbox, opt_defName, this, bIsSpecialFunction, argumentsCount); + // checkArgumentsTypes before calculate + if (opt_oCalculateResult && opt_oCalculateResult.checkOnError && currentElement.exactTypes && !currentElement.checkArgumentsTypes(arg)) { + this.value = new cError(cErrorType.null_value); + this._endCalculate(); + opt_oCalculateResult.setError(c_oAscError.ID.FrmlOperandExpected); + return this.value; + } else { + formulaArray = cBaseFunction.prototype.checkFormulaArray.call(currentElement, arg, opt_bbox, opt_defName, this, bIsSpecialFunction, argumentsCount); + } + } else if (currentElement.type === cElementType.operator && currentElement.bArrayFormula) { bIsSpecialFunction = true; } @@ -7423,14 +8076,53 @@ function parserFormula( formula, parent, _ws ) { } } + // ref(CSE) - legacy array-formula + // dynamic range(DAF) - newest dynamic array-formula + // Differences: + // The DAF formula is entered into one cell and is completed by simply pressing enter 'spill' occurs automatically + // In the case of CSE, you must select the range in advance and press the cse combination after entering the formula + // The DAF size automatically changes when the data in the original range changes. Dynamic range reference is written in D2# format + // DAF is edited in the first cell (parent) of the range; to edit cse we need to select the entire previously created range + // In CSE we cannot delete previously created rows, but DAF can be edited + // CSE can expand to all cells except the same CSE arrays, tables, pivot tables + // DAF can only expand to completely empty cells(empty values) + + let isRangeCanFitIntoCells; //TODO заглушка для парсинга множественного диапазона в _xlnm.Print_Area. Сюда попадаем только в одном случае - из функции findCell для отображения диапазона области печати if(checkMultiSelect && elemArr.length > 1 && this.parent && this.parent instanceof window['AscCommonExcel'].DefName /*&& this.parent.name === "_xlnm.Print_Area"*/) { this.value = elemArr; + + if (AscCommonExcel.bIsSupportDynamicArrays) { + // check further dynamic range + isRangeCanFitIntoCells = this.checkDynamicRangeByElement(this.value, opt_bbox); + if (!isRangeCanFitIntoCells) { + this.aca = true; + this.ca = true; + this.value = new cError(cErrorType.cannot_be_spilled); + } else { + this.ca = false; + this.aca = false; + } + } + this._endCalculate(); } else { this.value = elemArr.pop(); - this.value.numFormat = numFormat; + if (AscCommonExcel.bIsSupportDynamicArrays) { + // check further dynamic range + isRangeCanFitIntoCells = this.checkDynamicRangeByElement(this.value, opt_bbox); + if (!isRangeCanFitIntoCells) { + this.aca = true; + this.ca = true; + this.value = new cError(cErrorType.cannot_be_spilled); + } else { + this.ca = false; + this.aca = false; + } + } + + this.value.numFormat = numFormat; //***array-formula*** //для обработки формулы массива //передаётся последним параметром cell и временно подменяется parent у parserFormula для того, чтобы поменялось значение в элементе массива @@ -8165,6 +8857,21 @@ function parserFormula( formula, parent, _ws ) { } } } + + if (this.importFunctionsRangeLinks) { + for (let i in this.importFunctionsRangeLinks) { + let externalLink = this.wb.getExternalLinkByName(i); + if (externalLink) { + for (let j in this.importFunctionsRangeLinks[i]) { + let _rangeInfo = this.importFunctionsRangeLinks[i][j]; + let _ws = externalLink.worksheets[_rangeInfo.sheet]; + if (_ws) { + this._buildDependenciesRef(_ws.getId(), AscCommonExcel.g_oRangeCache.getRangesFromSqRef(_rangeInfo.range)[0], null, false); + } + } + } + } + } }; parserFormula.prototype._buildDependenciesRef = function(wsId, bbox, isDefName, isStart) { if (this.isTable) { @@ -8247,7 +8954,8 @@ function parserFormula( formula, parent, _ws ) { for (var i = 0; i < this.outStack.length; i++) { var elem = this.outStack[i]; if (cElementType.cell === elem.type || cElementType.cell3D === elem.type || - cElementType.cellsRange === elem.type || cElementType.cellsRange3D === elem.type) { + cElementType.cellsRange === elem.type || cElementType.cellsRange3D === elem.type + || cElementType.table === elem.type) { res = elem.getRange(); break; } @@ -8280,6 +8988,11 @@ function parserFormula( formula, parent, _ws ) { parserFormula.prototype.getArrayFormulaRef = function() { return this.ref; }; + parserFormula.prototype.getDynamicRef = function() { + if (AscCommonExcel.bIsSupportDynamicArrays) { + return this.dynamicRange; + } + }; parserFormula.prototype.setArrayFormulaRef = function(ref) { this.ref = ref; }; @@ -8325,7 +9038,7 @@ function parserFormula( formula, parent, _ws ) { return false; }; parserFormula.prototype.simplifyRefType = function (val, opt_ws, opt_row, opt_col) { - var ref = this.getArrayFormulaRef(), row, col; + let ref = this.getArrayFormulaRef(), dynamicRef = this.getDynamicRef(), row, col; if (val == null) { return; @@ -8359,20 +9072,25 @@ function parserFormula( formula, parent, _ws ) { } } else if (cElementType.cellsRange === val.type || cElementType.cellsRange3D === val.type) { if (opt_ws) { - var range; + let range; if (ref) { range = val.getRange(); if (range) { - var bbox = range.bbox; - var rowCount = bbox.r2 - bbox.r1 + 1; - var colCount = bbox.c2 - bbox.c1 + 1; + let bbox = range.bbox; + let rowCount = bbox.r2 - bbox.r1 + 1, + colCount = bbox.c2 - bbox.c1 + 1; + row = 1 === rowCount ? 0 : opt_row - ref.r1; col = 1 === colCount ? 0 : opt_col - ref.c1; if (row > rowCount - 1 || col > colCount - 1) { val = null; } else { val = val.getValueByRowCol(row, col); + if (!val) { + val = new cEmpty(); + } } + if (!val) { val = new window['AscCommonExcel'].cError(window['AscCommonExcel'].cErrorType.not_available); } @@ -8424,66 +9142,784 @@ function parserFormula( formula, parent, _ws ) { return false; }; + parserFormula.prototype.setDynamicRef = function (range) { + if (!range) { + return + } + this.ref = range; + this.dynamicRange = range; + }; + + parserFormula.prototype.checkDynamicRange = function () { + /* this function checks if the current value in formula can fit in the cells */ + if (!this.dynamicRange) { + return true + } + + if (this.value && (this.value.type !== cElementType.array && this.value.type !== cElementType.cellsRange)) { + return true + } else if (this.value && (this.value.type === cElementType.array || this.value.type === cElementType.cellsRange)) { + // go through the range and see if the array can fit into it + let dimensions = this.value.getDimensions(), + mainCell = this.parent, isHaveNonEmptyCell; + + if (this.value.isOneElement()) { + return true + } + + if (mainCell) { + const t = this; + let rangeRow = mainCell.nRow, + rangeCol = mainCell.nCol; + + for (let i = rangeRow; i < (rangeRow + dimensions.row); i++) { + for (let j = rangeCol; j < (rangeCol + dimensions.col); j++) { + if (i === rangeRow && j === rangeCol) { + continue + } + this.ws._getCellNoEmpty(i, j, function(cell) { + if (cell) { + let formula = cell.getFormulaParsed(); + let dynamicRangeFromCell = formula && formula.getDynamicRef(); + if (formula && dynamicRangeFromCell) { + // check if cell belong to current dynamicRange + // this is necessary so that spill errors do not occur during the second check of the range (since the values ​​in it have already been entered earlier) + if (!t.dynamicRange.isEqual(dynamicRangeFromCell)) { + // if the cell is part of another dynamic range, then the range that is in the area of ​​the previous range is displayed (except for the first cell, but we do not check it) + // that is, if one of the ranges is “lower” or “to the right” in the editor, then it will be displayed, and the other will receive a SPILL error + isHaveNonEmptyCell = true + } + } else if (cell.formulaParsed || !cell.isEmptyTextString()) { + isHaveNonEmptyCell = true + } + } + }); + if (isHaveNonEmptyCell) { + return false + } + } + } + return true + } + } + + return false + }; + + parserFormula.prototype.checkDynamicRangeByElement = function (element, parentCell) { + /* this function checks if element can fit in the cells */ + if (!element || !parentCell) { + return true; + } + + if (element.type !== cElementType.array && element.type !== cElementType.cellsRange && element.type !== cElementType.cellsRange3D) { + return true; + } else if (element.type === cElementType.array || element.type === cElementType.cellsRange || element.type === cElementType.cellsRange3D) { + // go through the range and see if the array can fit into it + let dimensions = element.getDimensions(), isHaveNonEmptyCell; + + if (element.isOneElement()) { + return true + } + + // todo if an element is defname, it has no parent element? + const t = this; + let rangeRow = parentCell.r1, + rangeCol = parentCell.c1; + + let supposedDynamicRange = this.ws.getRange3(rangeRow, rangeCol, (rangeRow + dimensions.row) - 1, (rangeCol + dimensions.col) - 1); + for (let i = rangeRow; i < (rangeRow + dimensions.row); i++) { + for (let j = rangeCol; j < (rangeCol + dimensions.col); j++) { + if (i === rangeRow && j === rangeCol) { + continue + } + this.ws._getCellNoEmpty(i, j, function(cell) { + if (cell) { + let formula = cell.getFormulaParsed(); + let dynamicRangeFromCell = formula && formula.getDynamicRef(); + if (formula && dynamicRangeFromCell) { + // check if cell belong to current dynamicRange + // this is necessary so that spill errors do not occur during the second check of the range (since the values ​​in it have already been entered earlier) + if (!supposedDynamicRange.bbox.isEqual(dynamicRangeFromCell)) { + // if the cell is part of another dynamic range, then the range that is in the area of ​​the previous range is displayed (except for the first cell, but we do not check it) + // that is, if one of the ranges is “lower” or “to the right” in the editor, then it will be displayed, and the other will receive a SPILL error + isHaveNonEmptyCell = true + } + } else if (cell.formulaParsed || !cell.isEmptyTextString()) { + isHaveNonEmptyCell = true + } + } + }); + if (isHaveNonEmptyCell) { + return false + } + } + } + return true + } + + return false + }; + + /** + * Class representative an iterative calculations logic + * @constructor + */ function CalcRecursion() { - this.level = 0; - this.elemsPart = []; - this.elems = []; - this.isForceBacktracking = false; - this.isProcessRecursion = false; + this.nLevel = 0; + this.bIsForceBacktracking = false; + this.bIsProcessRecursion = false; + this.aElems = []; + this.aElemsPart = []; + + this.nIterStep = 1; + this.oStartCellIndex = null; + this.nRecursionCounter = 0; + this.oGroupChangedCells = null; + this.oPrevIterResult = null; + this.oDiffBetweenIter = null; + this.bShowCycleWarn = true; + this.oRecursionCells = null; + this.nCellPasteValue = null; // for paste recursive cell + + this.bIsEnabledRecursion = null; + this.nMaxIterations = null; // Max iterations of recursion calculations. Default value: 100. + this.nRelativeError = null; // Relative error between current and previous cell value. Default value: 1e-3. + this.nCalcMode = Asc.c_oAscCalcMode.auto; // Calculation mode. Default value: Asc.c_oAscCalcMode.auto + /*for chrome63(real maximum call stack size is 12575) nMaxRecursion that cause exception is 783 + by measurement: stack size in doctrenderer is one fourth smaller than chrome*/ + this.nMaxRecursion = 300; // Default value: 300 } - //for chrome63(real maximum call stack size is 12575) MAXRECURSION that cause excaption is 783 - //by measurement: stack size in doctrenderer is one fourth smaller than chrome - CalcRecursion.prototype.MAXRECURSION = 300; + /** + * Method returns maximum recursion level. + * @memberof CalcRecursion + * @returns {number} + */ + CalcRecursion.prototype.getMaxRecursion = function () { + return this.nMaxRecursion; + }; + /** + * Method sets a flag who recognizes recursion needs force backtracking. + * Uses if level of recursion exceeds max level. + * @memberof CalcRecursion + * @param {boolean} bIsForceBacktracking + */ + CalcRecursion.prototype.setIsForceBacktracking = function (bIsForceBacktracking) { + if (!this.getIsForceBacktracking()) { + this.aElemsPart = []; + this.aElems.push(this.aElemsPart); + } + this.bIsForceBacktracking = bIsForceBacktracking; + }; + /** + * Method returns a flag who recognizes recursion needs force backtracking. + * Uses if level of recursion exceeds max level. + * @memberof CalcRecursion + * @returns {boolean} + */ + CalcRecursion.prototype.getIsForceBacktracking = function () { + return this.bIsForceBacktracking; + }; + /** + * Method sets a flag who recognizes work with aElems in _checkDirty method is already in process. + * @memberof CalcRecursion + * @param {boolean} bIsProcessRecursion + */ + CalcRecursion.prototype.setIsProcessRecursion = function (bIsProcessRecursion) { + this.bIsProcessRecursion = bIsProcessRecursion; + }; + /** + * Method returns a flag who recognizes work with aElems in _checkDirty method is already in process. + * @memberof CalcRecursion + * @returns {boolean} + */ + CalcRecursion.prototype.getIsProcessRecursion = function () { + return this.bIsProcessRecursion; + } + /** + * Method increases recursion level. Uses for tracking a level of recursion in _checkDirty method. + * @memberof CalcRecursion + */ CalcRecursion.prototype.incLevel = function () { + this.nLevel++; + }; + /** + * Method decreases recursion level. Uses for actualizes a level of recursion + * in case when one of recursion is finished. Uses in _checkDirty method. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.decLevel = function () { + this.nLevel--; + }; + /** + * Method returns level of recursion in _checkDirty method. + * @memberof CalcRecursion + * @returns {number} + */ + CalcRecursion.prototype.getLevel = function () { + return this.nLevel; + }; + /** + * Method checks the level of recursion exceeds max level or not. + * Uses in _checkDirty method. + * @memberof CalcRecursion + * @returns {boolean} + */ + CalcRecursion.prototype.checkLevel = function () { if (this.getIsForceBacktracking()) { return false; } - var res = this.level <= CalcRecursion.prototype.MAXRECURSION; - if (res) { - this.level++; - } else { + + let res = this.getLevel() <= this.getMaxRecursion(); + if (!res) { this.setIsForceBacktracking(true); } + return res; }; - CalcRecursion.prototype.decLevel = function () { - this.level--; - }; - CalcRecursion.prototype.getLevel = function () { - return this.level; - }; - CalcRecursion.prototype.insert = function (val) { - this.elemsPart.push(val); + /** + * Method inserts cells which need to be processed in _checkDirty method again. + * Uses for formula chains that reached max recursion level. + * @memberof CalcRecursion + * @param {{ws:Worksheet, nRow:number, nCol:number}} oCellCoordinate + */ + CalcRecursion.prototype.insert = function (oCellCoordinate) { + this.aElemsPart.push(oCellCoordinate); }; - CalcRecursion.prototype.foreachInReverse = function (callback) { - for (var i = this.elems.length - 1; i >= 0; --i) { - var elemsPart = this.elems[i]; - for (var j = 0; j < elemsPart.length; ++j) { - callback(elemsPart[j]); + /** + * Method executes callback for each cell from aElems in reverse order. + * aElems stores cell coordinates which need to be processed in _checkDirty method again. + * @memberof CalcRecursion + * @param {Function} fCallback + */ + CalcRecursion.prototype.foreachInReverse = function (fCallback) { + for (let i = this.aElems.length - 1; i >= 0; i--) { + let aElemsPart = this.aElems[i]; + for (let j = 0, length = aElemsPart.length; j < length; j++) { + fCallback(aElemsPart[j]); if (this.getIsForceBacktracking()) { return; } } } }; - CalcRecursion.prototype.setIsForceBacktracking = function (val) { - if (!this.isForceBacktracking) { - this.elemsPart = []; - this.elems.push(this.elemsPart); + /** + * Method increases iteration step. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.incIterStep = function () { + this.nIterStep++; + }; + /** + * Method resets iteration step. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.resetIterStep = function () { + this.nIterStep = 1; + }; + /** + * Method returns iteration step. + * @memberof CalcRecursion + * @returns {number} + */ + CalcRecursion.prototype.getIterStep = function () { + return this.nIterStep; + }; + /** + * Method increments recursion counter. + * Uses for control recursion level of initStartCellForIterCalc and enableCalcFormulas method of Cell class. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.incRecursionCounter = function () { + this.nRecursionCounter++; + }; + /** + * Method decrements recursion counter. + * Uses for control recursion level of initStartCellForIterCalc and enableCalcFormulas method of Cell class. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.decRecursionCounter = function () { + this.nRecursionCounter--; + }; + /** + * Method resets recursion counter. + * Uses for control recursion level of initStartCellForIterCalc method. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.resetRecursionCounter = function () { + if (this.getRecursionCounter() > 0) { + this.decRecursionCounter(); + } else if (this.getIsForceBacktracking()) { + this.setIsForceBacktracking(false); + } + }; + /** + * Method checks the recursion counter exceeds max level of recursion or not. + * @memberof CalcRecursion + * @returns {boolean} + */ + CalcRecursion.prototype.checkRecursionCounter = function () { + if (this.getIsForceBacktracking()) { + return true; + } + + let bRecursionExceeded = g_cCalcRecursion.getRecursionCounter() >= g_cCalcRecursion.getMaxRecursion(); + + if (bRecursionExceeded) { + this.setIsForceBacktracking(true); + } + + return bRecursionExceeded; + } + /** + * Method returns recursion counter. + * Uses for control recursion level of initStartCellForIterCalc method. + * @memberof CalcRecursion + * @returns {number} + */ + CalcRecursion.prototype.getRecursionCounter = function () { + return this.nRecursionCounter; + }; + /** + * Method sets a flag who recognizes an iteration calculations setting is enabled or not. + * @memberof CalcRecursion + * @param {boolean} bIsEnabledRecursion + */ + CalcRecursion.prototype.setIsEnabledRecursion = function (bIsEnabledRecursion) { + this.bIsEnabledRecursion = bIsEnabledRecursion; + }; + /** + * Method returns a flag who recognizes an iteration calculations setting is enabled or not. + * @memberof CalcRecursion + * @returns {boolean} + */ + CalcRecursion.prototype.getIsEnabledRecursion = function () { + return this.bIsEnabledRecursion; + }; + /** + * Method sets index of start cell. This cell is a start and finish point of iteration for a recursion formula. + * Uses for only with enabled iterative calculations setting. + * @memberof CalcRecursion + * @param {{cellId: number, wsName: string}|null} oStartCellIndex + */ + CalcRecursion.prototype.setStartCellIndex = function (oStartCellIndex) { + this.oStartCellIndex = oStartCellIndex; + }; + /** + * Method returns index of start cell. This cell is a start and finish point of iteration for a recursion formula. + * Uses for only with enabled iterative calculations setting. + * @memberof CalcRecursion + * @returns {{cellId: number, wsName: string}} + */ + CalcRecursion.prototype.getStartCellIndex = function () { + return this.oStartCellIndex; + }; + /** + * Method sets a maximum iterations. + * @memberof CalcRecursion + * @param {number} nMaxIterations + */ + CalcRecursion.prototype.setMaxIterations = function (nMaxIterations) { + this.nMaxIterations = nMaxIterations; + }; + /** + * Method returns a maximum iterations. + * @memberof CalcRecursion + * @returns {number} + */ + CalcRecursion.prototype.getMaxIterations = function () { + return this.nMaxIterations; + }; + /** + * Method sets a relative error. + * @memberof CalcRecursion + * @param {number} nRelativeError + */ + CalcRecursion.prototype.setRelativeError = function (nRelativeError) { + this.nRelativeError = nRelativeError; + }; + /** + * Method returns a relative error. + * @memberof CalcRecursion + * @returns {number} + */ + CalcRecursion.prototype.getRelativeError = function () { + return this.nRelativeError; + }; + /** + * Method sets a calculation mode. + * @memberof CalcRecursion + * @param {Asc.c_oAscCalcMode} nCalcMode + */ + CalcRecursion.prototype.setCalcMode = function (nCalcMode) { + this.nCalcMode = nCalcMode; + }; + /** + * Method returns a calculation mode. + * @memberof CalcRecursion + * @returns {Asc.c_oAscCalcMode} + */ + CalcRecursion.prototype.getCalcMode = function () { + return this.nCalcMode; + }; + /** + * Method sets a grouped changed cells. + * @memberof CalcRecursion + * @param {{wsName:{cellId: {cellId: number, wsName: string}[]}}|null} oGroupChangedCells + */ + CalcRecursion.prototype.setGroupChangedCells = function (oGroupChangedCells) { + this.oGroupChangedCells = oGroupChangedCells; + }; + /** + * Method returns a grouped changed cells. + * @memberof CalcRecursion + * @returns {{wsName:{cellId: {cellId: number, wsName: string}[]}}|null} + */ + CalcRecursion.prototype.getGroupChangedCells = function () { + return this.oGroupChangedCells; + }; + /** + * Method initializes an object for grouped changed cells. + * @memberof CalcRecursion + * @param {Cell} oCell + */ + CalcRecursion.prototype.initGroupChangedCells = function (oCell) { + const sCellWsName = oCell.ws.getName().toLowerCase(); + let oGroupChangedCell = {}; + oGroupChangedCell[sCellWsName] = {}; + this.setGroupChangedCells(oGroupChangedCell); + }; + /** + * Method returns an array of cells with recursive formula. + * @memberof CalcRecursion + * @param {Cell} oCell + * @returns {{cellId: number, wsName: string}[]} + */ + CalcRecursion.prototype.getRecursiveCells = function (oCell) { + const oGroupChangedCell = this.getGroupChangedCells(); + const sCellWsName = oCell.ws.getName().toLowerCase(); + const nCellIndex = AscCommonExcel.getCellIndex(oCell.nRow, oCell.nCol); + + if (oGroupChangedCell == null) { + return []; + } + for (let sSheetName in oGroupChangedCell) { + let oGroupChangedSheet = oGroupChangedCell[sSheetName]; + for (let sLinkedCellIndex in oGroupChangedSheet) { + const aLinkedCells = oGroupChangedSheet[sLinkedCellIndex]; + let bHasCell = aLinkedCells.some(function (oCellIndex) { + return oCellIndex.cellId === nCellIndex && oCellIndex.wsName === sCellWsName; + }) + if (bHasCell) { + return aLinkedCells; + } + } + } + + return []; + }; + /** + * Method updates start cell index. + * @memberof CalcRecursion + * @param {{cellId: number, wsName: string}[]} aRecursiveCells + */ + CalcRecursion.prototype.updateStartCellIndex = function (aRecursiveCells) { + if (!aRecursiveCells.length) { + this.setStartCellIndex(null); + return; + } + + const START_CELL_INDEX = 0; + const oStartCellIdFromArr = aRecursiveCells[START_CELL_INDEX]; + const oStartCellIndex = this.getStartCellIndex(); + if (oStartCellIndex && oStartCellIdFromArr.cellId === oStartCellIndex.cellId && oStartCellIdFromArr.wsName === oStartCellIndex.wsName) { + return; } - this.isForceBacktracking = val; + this.setStartCellIndex(oStartCellIdFromArr); }; - CalcRecursion.prototype.getIsForceBacktracking = function () { - return this.isForceBacktracking; + /** + * Method adds array with recursive cells in the group changed cells object. + * @memberof CalcRecursion + * @param {Cell} oCell + * @param {{cellId: number, wsName: string}[]} aRecursiveCells + */ + CalcRecursion.prototype.addRecursiveCells = function (oCell, aRecursiveCells) { + const sCellWsName = oCell.ws.getName().toLowerCase(); + const nCellIndex = AscCommonExcel.getCellIndex(oCell.nRow, oCell.nCol); + let oGroupChangedCell = this.getGroupChangedCells(); + + if (oGroupChangedCell == null) { + this.initGroupChangedCells(oCell); + oGroupChangedCell = this.getGroupChangedCells(); + } + if (!oGroupChangedCell.hasOwnProperty(sCellWsName)) { + oGroupChangedCell[sCellWsName] = {}; + } + oGroupChangedCell[sCellWsName][nCellIndex] = aRecursiveCells; }; - CalcRecursion.prototype.setIsProcessRecursion = function (val) { - this.isProcessRecursion = val; + /** + * Method updates array with recursive cells in the group changed cells object. + * @memberof CalcRecursion + * @param {{cellId: number, wsName: string}} oCellIndex + * @param {{cellId: number, wsName: string}[]} aRecursiveCells + */ + CalcRecursion.prototype.updateRecursiveCells = function (oCellIndex, aRecursiveCells) { + const oGroupChangedCell = this.getGroupChangedCells(); + const sCellWsName = oCellIndex.wsName; + const nCellIndex = oCellIndex.cellId; + + oGroupChangedCell[sCellWsName][nCellIndex] = aRecursiveCells; }; - CalcRecursion.prototype.getIsProcessRecursion = function () { - return this.isProcessRecursion; + /** + * Method removes array with recursive cells in the group changed cells object. + * @memberof CalcRecursion + * @param {Cell} oCell + */ + CalcRecursion.prototype.removeRecursionCell = function (oCell) { + const oGroupChangedCell = this.getGroupChangedCells(); + const sCellWsName = oCell.ws.getName().toLowerCase(); + const nCellIndex = AscCommonExcel.getCellIndex(oCell.nRow, oCell.nCol); + if (!oGroupChangedCell[sCellWsName] || !oGroupChangedCell[sCellWsName][nCellIndex]) { + return; + } + delete oGroupChangedCell[sCellWsName][nCellIndex]; + }; + /** + * Method sets a previous iteration result. + * @memberof CalcRecursion + * @param {Cell} oCell + */ + CalcRecursion.prototype.setPrevIterResult = function (oCell) { + const nCellIndex = AscCommonExcel.getCellIndex(oCell.nRow, oCell.nCol); + const sWsName = oCell.ws.getName().toLowerCase(); + + if (this.oPrevIterResult == null) { + this.oPrevIterResult = {}; + } + if (!this.oPrevIterResult.hasOwnProperty(sWsName)) { + this.oPrevIterResult[sWsName] = {}; + } + this.oPrevIterResult[sWsName][nCellIndex] = oCell.getNumberValue(); }; - var g_cCalcRecursion = new CalcRecursion(); + /** + * Method returns a previous iteration result. + * @memberof CalcRecursion + * @param {Cell} oCell + * @returns {number} + */ + CalcRecursion.prototype.getPrevIterResult = function (oCell) { + const nCellIndex = AscCommonExcel.getCellIndex(oCell.nRow, oCell.nCol); + const sWsName = oCell.ws.getName().toLowerCase(); + const oPrevIterResult = this.oPrevIterResult; + + if (oPrevIterResult == null) { + return NaN; + } + if (!oPrevIterResult.hasOwnProperty(sWsName) || !oPrevIterResult[sWsName].hasOwnProperty(nCellIndex)) { + return NaN; + } + + return oPrevIterResult[sWsName][nCellIndex]; + }; + /** + * Method clears a previous iteration results. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.clearPrevIterResult = function () { + this.oPrevIterResult = null; + }; + /** + * Method sets result of a difference between iterations. + * @memberof CalcRecursion + * @param {Cell} oCell + * @param {number} nResult + */ + CalcRecursion.prototype.setDiffBetweenIter = function (oCell, nResult) { + const nCellIndex = AscCommonExcel.getCellIndex(oCell.nRow, oCell.nCol); + const sWsName = oCell.ws.getName().toLowerCase(); + + if (this.oDiffBetweenIter == null) { + this.oDiffBetweenIter = {}; + } + if (!this.oDiffBetweenIter.hasOwnProperty(sWsName)) { + this.oDiffBetweenIter[sWsName] = {}; + } + this.oDiffBetweenIter[sWsName][nCellIndex] = nResult; + } + /** + * Method calculates a result of a difference between iterations. + * @memberof CalcRecursion + * @param {Cell} oCell + */ + CalcRecursion.prototype.calcDiffBetweenIter = function (oCell) { + const nPrevIterResult = this.getPrevIterResult(oCell); + const nCurrentIterResult = oCell.getNumberValue(); + const nChainLength = this.getRecursiveCells(oCell).length; + + if (this.getIterStep() <= nChainLength && nCurrentIterResult === nPrevIterResult) { + return; + } + this.setDiffBetweenIter(oCell, Math.abs(nCurrentIterResult - nPrevIterResult)); + }; + /** + * Method returns a result of a difference between iterations. + * @memberof CalcRecursion + * @param {Cell} oCell + * @returns {number} + */ + CalcRecursion.prototype.getDiffBetweenIter = function (oCell) { + const nCellIndex = AscCommonExcel.getCellIndex(oCell.nRow, oCell.nCol); + const sWsName = oCell.ws.getName().toLowerCase(); + const oDiffBetweenIter = this.oDiffBetweenIter; + + if (oDiffBetweenIter == null) { + return NaN; + } + if (!oDiffBetweenIter.hasOwnProperty(sWsName) || !oDiffBetweenIter[sWsName].hasOwnProperty(nCellIndex)) { + return NaN; + } + + return oDiffBetweenIter[sWsName][nCellIndex]; + }; + /** + * Method clears a result of a difference between iterations. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.clearDiffBetweenIter = function () { + this.oDiffBetweenIter = null; + }; + /** + * Method returns a flag that checks a recursive call is needed. + * @memberof CalcRecursion + * @returns {boolean} + */ + CalcRecursion.prototype.needRecursiveCall = function () { + if (!this.getIsEnabledRecursion()) { + return false; + } + const oGroupChangedCells = this.getGroupChangedCells(); + const bMaxStepNotExceeded = this.getIterStep() <= this.getMaxIterations(); + let bHasRecursiveCell = false; + + for (let sSheetName in oGroupChangedCells) { + let oGroupChangedSheet = oGroupChangedCells[sSheetName]; + for (let sCellIndex in oGroupChangedSheet) { + let aRecursiveCells = oGroupChangedSheet[sCellIndex]; + if (aRecursiveCells.length) { + bHasRecursiveCell = true; + break; + } + } + if (bHasRecursiveCell) { + break; + } + } + + return bHasRecursiveCell && bMaxStepNotExceeded; + }; + /** + * Method initializes calculation properties. + * @memberof CalcRecursion + * @param {CCalcPr} oCalcPr + */ + CalcRecursion.prototype.initCalcProperties = function (oCalcPr) { + const oCalcSettings = Asc.editor.asc_GetCalcSettings(); // Object with default values + + if (!oCalcSettings) { + return; + } + this.setIsEnabledRecursion(oCalcPr.getIterate() ? oCalcPr.getIterate() : oCalcSettings.asc_getIterativeCalc()); + this.setRelativeError(oCalcPr.getIterateDelta() != null ? oCalcPr.getIterateDelta() : oCalcSettings.asc_getMaxChange()); + this.setMaxIterations(oCalcPr.getIterateCount() ? oCalcPr.getIterateCount() : oCalcSettings.asc_getMaxIterations()); + if (oCalcPr.getCalcMode()) { + this.setCalcMode(oCalcPr.getCalcMode()); + } + }; + /** + * Method returns a flag who recognizes show warn about cycle reference error or not. + * @memberof CalcRecursion + * @returns {boolean} + */ + CalcRecursion.prototype.getShowCycleWarn = function () { + return this.bShowCycleWarn; + }; + /** + * Method sets a flag who recognizes show warn about cycle reference error or not. + * @memberof CalcRecursion + * @param {boolean} bShowCycleWarn + */ + CalcRecursion.prototype.setShowCycleWarn = function (bShowCycleWarn) { + this.bShowCycleWarn = bShowCycleWarn; + }; + /** + * Method adds an index of a recursive cell to the list of recursive cells. + * @memberof CalcRecursion + * @param {number} nCellIndex + */ + CalcRecursion.prototype.addRecursiveCell = function (nCellIndex) { + if (!this.oRecursionCells) { + this.oRecursionCells = {}; + } + + this.oRecursionCells[nCellIndex] = true; + }; + /** + * Method checks a cell is recursive or not by index of cell. + * @memberof CalcRecursion + * @param {number} nCellId + * @returns {boolean} + */ + CalcRecursion.prototype.isRecursiveCell = function (nCellId) { + return !!(this.oRecursionCells && this.oRecursionCells[nCellId]); + }; + /** + * Method clears a list of recursive cells. + * @memberof CalcRecursion + */ + CalcRecursion.prototype.clearRecursionCells = function () { + this.oRecursionCells = null; + }; + /** + * Method finds recursive cell by parserFormula. + * @memberof CalcRecursion + * @param {parserFormula} oParserFormula + */ + CalcRecursion.prototype.findRecursionCell = function (oParserFormula) { + const oThis = this; + const oParentCell = oParserFormula.getParent(); + + if (!(oParentCell instanceof AscCommonExcel.CCellWithFormula)) { + return; + } + oParserFormula.ws._getCell(oParentCell.nRow, oParentCell.nCol, function (oCell) { + if (oCell.isFormula()) { + oCell.initStartCellForIterCalc(); // check cell has recursion formula + if (oThis.getStartCellIndex()) { + oThis.addRecursiveCell(AscCommonExcel.getCellIndex(oCell.nRow, oCell.nCol)); + oThis.setStartCellIndex(null); + } + } + }); + }; + /** + * Method sets a value from a copying cell for a paste cell. + * @memberof CalcRecursion + * @param {number|null} nCellPasteValue + */ + CalcRecursion.prototype.setCellPasteValue = function (nCellPasteValue) { + this.nCellPasteValue = nCellPasteValue; + }; + /** + * Method gets a value from a copying cell for a paste cell. + * @memberof CalcRecursion + * @returns {number|null} + */ + CalcRecursion.prototype.getCellPasteValue = function () { + return this.nCellPasteValue; + }; + + const g_cCalcRecursion = new CalcRecursion(); function parseNum(str) { if (str.indexOf("x") > -1 || str == "" || str.match(/^\s+$/))//исключаем запись числа в 16-ричной форме из числа. @@ -8951,9 +10387,12 @@ function parserFormula( formula, parent, _ws ) { } function convertAreaToArray(area){ - var retArr = new cArray(), _arg0; - var dimension = area.getDimensions(); - var ws; + let retArr = new cArray(), _arg0; + let dimension = area.getDimensions(); + + retArr.realSize = {row: dimension.row, col: dimension.col} + + let ws; if(cElementType.cellsRange3D === area.type) { ws = area.wsFrom; area = area.getMatrixNoEmpty()[0]; @@ -8963,14 +10402,36 @@ function parserFormula( formula, parent, _ws ) { } if (dimension) { - var oBBox = dimension.bbox, minC = Math.min( ws.getColDataLength(), oBBox.c2 ), minR = Math.min( ws.cellsByColRowsCount - 1, oBBox.r2 ); - var rowCount = (minR - oBBox.r1) >= 0 ? minR - oBBox.r1 + 1 : 0; - var colCount = (minC - oBBox.c1) >= 0 ? minC - oBBox.c1 + 1 : 0; + let oBBox = dimension.bbox, + minC = Math.min( ws.getColDataLength(), oBBox.c2 ), + minR = Math.min( ws.cellsByColRowsCount - 1, oBBox.r2 ), + rowCount = (minR - oBBox.r1) >= 0 ? minR - oBBox.r1 + 1 : 0, + colCount = (minC - oBBox.c1) >= 0 ? minC - oBBox.c1 + 1 : 0; + + if (rowCount < dimension.row || colCount < dimension.col) { + retArr.missedValue = new cEmpty(); + } else { + retArr.realSize = null; + } + + if (area && area.length < 1) { + // let emptyElem = new cEmpty(); + // if array is empty - add info about range size and set missedValue + retArr.setRealArraySize(dimension.row, dimension.col); + retArr.missedValue = new cEmpty(); - for ( var iRow = 0; iRow < rowCount; iRow++, iRow < rowCount ? retArr.addRow() : true ) { - for ( var iCol = 0; iCol < colCount; iCol++ ) { - _arg0 = area[iRow] && area[iRow][iCol] ? area[iRow][iCol] : new cEmpty(); - retArr.addElement(_arg0); + /* we add one element to the array so as not to return a completely empty array to the formula */ + if (!retArr.countElement) { + retArr.addRow(); + retArr.addElement(retArr.missedValue); + } + + } else { + for ( let iRow = 0; iRow < rowCount; iRow++, iRow < rowCount ? retArr.addRow() : true ) { + for ( let iCol = 0; iCol < colCount; iCol++ ) { + _arg0 = area[iRow] && area[iRow][iCol] ? area[iRow][iCol] : new cEmpty(); + retArr.addElement(_arg0); + } } } } @@ -9023,161 +10484,135 @@ function parserFormula( formula, parent, _ws ) { function specialFuncArrayToArray(arg0, arg1, what) { let retArr = null, _arg0, _arg1; let iRow, iCol; - if (arg0.getRowCount() === arg1.getRowCount() && 1 === arg0.getCountElementInRow()) { + + let arg0RowCount = arg0.getRowCount(true), + arg0ColCount = arg0.getCountElementInRow(true), + arg1RowCount = arg1.getRowCount(true), + arg1ColCount = arg1.getCountElementInRow(true); + + if (arg0RowCount === arg1RowCount && 1 === arg0ColCount) { retArr = new cArray(); - for (iRow = 0; iRow < arg1.getRowCount(); iRow++, iRow < arg1.getRowCount() ? retArr.addRow() : true) { - for (iCol = 0; iCol < arg1.getCountElementInRow(); iCol++) { - _arg0 = arg0.getElementRowCol(iRow, 0); - _arg1 = arg1.getElementRowCol(iRow, iCol); + for (iRow = 0; iRow < arg1RowCount; iRow++, iRow < arg1RowCount ? retArr.addRow() : true) { + for (iCol = 0; iCol < arg1ColCount; iCol++) { + _arg0 = arg0.getElementRowCol(iRow, 0, true); + _arg1 = arg1.getElementRowCol(iRow, iCol, true); retArr.addElement(_func[_arg0.type][_arg1.type](_arg0, _arg1, what)); } } - } else if (arg0.getRowCount() === arg1.getRowCount() && 1 === arg1.getCountElementInRow()) { + } else if (arg0RowCount === arg1RowCount && 1 === arg1ColCount) { retArr = new cArray(); - for (iRow = 0; iRow < arg0.getRowCount(); iRow++, iRow < arg0.getRowCount() ? retArr.addRow() : true) { - for (iCol = 0; iCol < arg0.getCountElementInRow(); iCol++) { - _arg0 = arg0.getElementRowCol(iRow, iCol); - _arg1 = arg1.getElementRowCol(iRow, 0); + for (iRow = 0; iRow < arg0RowCount; iRow++, iRow < arg0RowCount ? retArr.addRow() : true) { + for (iCol = 0; iCol < arg0ColCount; iCol++) { + _arg0 = arg0.getElementRowCol(iRow, iCol, true); + _arg1 = arg1.getElementRowCol(iRow, 0, true); retArr.addElement(_func[_arg0.type][_arg1.type](_arg0, _arg1, what)); } } - } else if (arg0.getCountElementInRow() === arg1.getCountElementInRow() && 1 === arg0.getRowCount()) { + } else if (arg0ColCount === arg1ColCount && 1 === arg0RowCount) { retArr = new cArray(); - for (iRow = 0; iRow < arg1.getRowCount(); iRow++, iRow < arg1.getRowCount() ? retArr.addRow() : true) { - for (iCol = 0; iCol < arg1.getCountElementInRow(); iCol++) { - _arg0 = arg0.getElementRowCol(0, iCol); - _arg1 = arg1.getElementRowCol(iRow, iCol); + for (iRow = 0; iRow < arg1RowCount; iRow++, iRow < arg1RowCount ? retArr.addRow() : true) { + for (iCol = 0; iCol < arg1ColCount; iCol++) { + _arg0 = arg0.getElementRowCol(0, iCol, true); + _arg1 = arg1.getElementRowCol(iRow, iCol, true); retArr.addElement(_func[_arg0.type][_arg1.type](_arg0, _arg1, what)); } } - } else if (arg0.getCountElementInRow() === arg1.getCountElementInRow() && 1 === arg1.getRowCount()) { + } else if (arg0ColCount === arg1ColCount && 1 === arg1RowCount) { retArr = new cArray(); - for (iRow = 0; iRow < arg0.getRowCount(); iRow++, iRow < arg0.getRowCount() ? retArr.addRow() : true) { - for (iCol = 0; iCol < arg0.getCountElementInRow(); iCol++) { - _arg0 = arg0.getElementRowCol(iRow, iCol); - _arg1 = arg1.getElementRowCol(0, iCol); + for (iRow = 0; iRow < arg0RowCount; iRow++, iRow < arg0RowCount ? retArr.addRow() : true) { + for (iCol = 0; iCol < arg0ColCount; iCol++) { + _arg0 = arg0.getElementRowCol(iRow, iCol, true); + _arg1 = arg1.getElementRowCol(0, iCol, true); retArr.addElement(_func[_arg0.type][_arg1.type](_arg0, _arg1, what)); } } - } else if (1 === arg0.getCountElementInRow() && 1 === arg1.getRowCount()) { + } else if (1 === arg0ColCount && 1 === arg1RowCount) { retArr = new cArray(); - for (iRow = 0; iRow < arg0.getRowCount(); iRow++, iRow < arg0.getRowCount() ? retArr.addRow() : true) { - for (iCol = 0; iCol < arg1.getCountElementInRow(); iCol++) { - _arg0 = arg0.getElementRowCol(iRow, 0); - _arg1 = arg1.getElementRowCol(0, iCol); + for (iRow = 0; iRow < arg0RowCount; iRow++, iRow < arg0RowCount ? retArr.addRow() : true) { + for (iCol = 0; iCol < arg1ColCount; iCol++) { + _arg0 = arg0.getElementRowCol(iRow, 0, true); + _arg1 = arg1.getElementRowCol(0, iCol, true); retArr.addElement(_func[_arg0.type][_arg1.type](_arg0, _arg1, what)); } } - } else if (1 === arg1.getCountElementInRow() && 1 === arg0.getRowCount()) { + } else if (1 === arg1ColCount && 1 === arg0RowCount) { retArr = new cArray(); - for (iRow = 0; iRow < arg1.getRowCount(); iRow++, iRow < arg1.getRowCount() ? retArr.addRow() : true) { - for (iCol = 0; iCol < arg0.getCountElementInRow(); iCol++) { - _arg0 = arg0.getElementRowCol(0, iCol); - _arg1 = arg1.getElementRowCol(iRow, 0); + for (iRow = 0; iRow < arg1RowCount; iRow++, iRow < arg1RowCount ? retArr.addRow() : true) { + for (iCol = 0; iCol < arg0ColCount; iCol++) { + _arg0 = arg0.getElementRowCol(0, iCol, true); + _arg1 = arg1.getElementRowCol(iRow, 0, true); retArr.addElement(_func[_arg0.type][_arg1.type](_arg0, _arg1, what)); } } - } else if (arg0.getCountElement() !== arg1.getCountElement()) { - let arg0Copy = new cArray(), arg1Copy = new cArray(); + } else if (arg0.getCountElement() !== arg1.getCountElement() || arg0RowCount !== arg1RowCount || arg0ColCount !== arg1ColCount) { let errNA = new cError(cErrorType.not_available); - arg0Copy.fillFromArray(arg0.array); - arg1Copy.fillFromArray(arg1.array); - // if there is only one element in the range, get this element and call the function again if (arg0.isOneElement()) { - arg0Copy = arg0.getFirstElement(); - return _func[arg0Copy.type][arg1.type](arg0Copy, arg1, what); + let arg0FirstElem = arg0.getFirstElement(); + return _func[arg0FirstElem.type][arg1.type](arg0FirstElem, arg1, what); } else if (arg1.isOneElement()) { - arg1Copy = arg1.getFirstElement(); - return _func[arg0.type][arg1Copy.type](arg0, arg1Copy, what); + let arg1FirstElem = arg1.getFirstElement(); + return _func[arg0.type][arg1FirstElem.type](arg0, arg1FirstElem, what); } - let arg0Dimensions = arg0.getDimensions(), - arg1Dimensions = arg1.getDimensions(); + // Logic: + // find the effective range (the one that is involved in the calculations) + // calculate it + // then fill the remaining rows and columns with N/A errors - let arrayMaxRows = Math.max(arg0.getRowCount(), arg1.getRowCount()), - arrayMaxCols = Math.max(arg0.getCountElementInRow(), arg1.getCountElementInRow()); - retArr = new cArray(); - - // The logic for creating the final array when the argument sizes do not match: - // If we have arrays consisting of a single row/column, we fill a copy of that array with these columns/rows (up to the maximum number of rows/columns). - // Then we redefine dimensions based on the copies. - // Next, we iterate over the missing columns (those that are less than maxCol) and fill the missing columns with #N/A errors (for correct calculations, as in normal conditions, an empty cell would return cEmpty). - // We do the same for rows, but we fill them entirely since they are completely empty. - // Then, we fill the final array with two loops, with its dimensions being maxRows and maxCols. - // In MS returns the maximum RowCol in the dynamic array. + let arrayMaxRows = Math.max(arg0RowCount, arg1RowCount), arrayMaxCols = Math.max(arg0ColCount, arg1ColCount); + retArr = new cArray(); + retArr.setRealArraySize(arrayMaxRows, arrayMaxCols); - // check if we have single row/col in arg0 - if ((arg0Dimensions.row === 1 && arrayMaxRows > 1) || (arg0Dimensions.col === 1 && arrayMaxCols > 1)) { - if (arg0Dimensions.row === 1) { - let firstRow = arg0._getRow(0); - for (let i = 1; i < arrayMaxRows; i++) { - arg0Copy.pushRow(firstRow, 0); - } - } else if (arg0Dimensions.col === 1) { - let firstCol = arg0._getCol(0); - for (let i = 1; i < arrayMaxCols; i++) { - arg0Copy.pushCol(firstCol, 0); - } - } - } + // arg0RowCount, arg0ColCount, arg1RowCount, arg1ColCount + let usefulCol = Math.min(arg0ColCount, arg1ColCount), + usefulRow = Math.min(arg0RowCount, arg1RowCount), + arg0Dimensions = arg0.getDimensions(), + arg1Dimensions = arg1.getDimensions(); - // check arg0 col dimensions and fill missing positions with errors - arg0Dimensions = arg0Copy.getDimensions(); - if (arg0Dimensions.col < arrayMaxCols) { - // fill the cols with N/A - let errArray = new Array(arg0Dimensions.row).fill([errNA]); - for (let i = arg0Dimensions.col; i < arrayMaxCols; i++) { - arg0Copy.pushCol(errArray, 0); - } - } - // check arg0 row dimensions and fill missing positions with errors - if (arg0Dimensions.row < arrayMaxRows) { - // fill rows with N/A - let errArray = new Array(arrayMaxCols).fill(errNA); - for (let i = arg0Dimensions.row; i < arrayMaxRows; i++) { - arg0Copy.pushRow([errArray], 0); + // if we have one of the element with single row|col, set the value to be obtained from this particular row or column + let fromArg0Row, fromArg1Row, fromArg0Col, fromArg1Col; + if (arg0Dimensions.row === 1 && arrayMaxRows > 1) { + // arg1.row more than arg0.row + usefulRow = arrayMaxRows; + fromArg0Row = 0; + } + if (arg1Dimensions.row === 1 && arrayMaxRows > 1) { + // arg0.row more than arg1.row + usefulRow = arrayMaxRows; + fromArg1Row = 0; + } + if (arg0Dimensions.col === 1 && arrayMaxCols > 1) { + // arg1.col more than arg0.col + usefulCol = arrayMaxCols; + fromArg0Col = 0; + } + if (arg1Dimensions.col === 1 && arrayMaxCols > 1) { + // arg0.col more than arg1.col + usefulCol = arrayMaxCols; + fromArg1Col = 0; + } + + // fill the array + for (let iRow = 0; iRow < arrayMaxRows; iRow++, iRow < usefulRow ? retArr.addRow() : true) { + if (iRow >= usefulRow) { + // fill row with N/A and continue + let errRow = new Array(arrayMaxCols).fill(errNA); + retArr.pushRow([errRow], 0); + continue } - } - // check if we have single row/col in arg1 - if ((arg1Dimensions.row === 1 && arrayMaxRows > 1) || (arg1Dimensions.col === 1 && arrayMaxCols > 1)) { - if (arg1Dimensions.row === 1) { - for (let i = 0; i < arrayMaxRows; i++) { - arg1Copy.pushRow(arg1._getRow(0), 0); - } - } else if (arg1Dimensions.col === 1) { - let firstCol = arg0._getCol(0); - for (let i = 1; i < arrayMaxCols; i++) { - arg0Copy.pushCol(firstCol, 0); + for (let iCol = 0; iCol < arrayMaxCols; iCol++) { + if (iCol >= usefulCol) { + // add N/A error and continue + retArr.addElement(errNA); + continue } - } - } - // check arg1 col dimensions and fill missing positions with errors - arg1Dimensions = arg1Copy.getDimensions(); - if (arg1Dimensions.col < arrayMaxCols) { - // fill cols with N/A - let errArray = new Array(arg1Dimensions.row).fill([errNA]); - for (let i = arg1Dimensions.col; i < arrayMaxCols; i++) { - arg1Copy.pushCol(errArray, 0); - } - } - // check arg1 row dimensions and fill missing positions with errors - if (arg1Dimensions.row < arrayMaxRows) { - // fill rows with N/A - let errArray = new Array(arrayMaxCols).fill(errNA); - for (let i = arg1Dimensions.row; i < arrayMaxRows; i++) { - arg1Copy.pushRow([errArray], 0); - } - } + _arg0 = arg0.getElementRowCol(fromArg0Row !== undefined ? fromArg0Row : iRow, fromArg0Col !== undefined ? fromArg0Col : iCol, true); + _arg1 = arg1.getElementRowCol(fromArg1Row !== undefined ? fromArg1Row : iRow, fromArg1Col !== undefined ? fromArg1Col : iCol, true); - // fill result array - for (iRow = 0; iRow < arrayMaxRows; iRow++, iRow < arrayMaxRows ? retArr.addRow() : true) { - for (iCol = 0; iCol < arrayMaxCols; iCol++) { - _arg0 = arg0Copy.getElementRowCol(iRow, iCol); - _arg1 = arg1Copy.getElementRowCol(iRow, iCol); retArr.addElement(_func[_arg0.type][_arg1.type](_arg0, _arg1, what)); } } @@ -9201,8 +10636,12 @@ function parserFormula( formula, parent, _ws ) { window['AscCommonExcel'].g_cCalcRecursion = g_cCalcRecursion; window['AscCommonExcel'].g_ProcessShared = false; window['AscCommonExcel'].cReturnFormulaType = cReturnFormulaType; + window['AscCommonExcel'].arrayIndexesType = arrayIndexesType; window['AscCommonExcel'].bIsSupportArrayFormula = bIsSupportArrayFormula; + window['AscCommonExcel'].bIsSupportDynamicArrays = bIsSupportDynamicArrays; + + window['AscCommonExcel'].aExcludeRecursiveFomulas = aExcludeRecursiveFomulas; window['AscCommonExcel'].cNumber = cNumber; window['AscCommonExcel'].cString = cString; @@ -9238,6 +10677,7 @@ function parserFormula( formula, parent, _ws ) { window['AscCommonExcel'].parserFormula = parserFormula; window['AscCommonExcel'].ParseResult = ParseResult; + window['AscCommonExcel'].CalculateResult = CalculateResult; window['AscCommonExcel'].parseNum = parseNum; window['AscCommonExcel'].matching = matching; @@ -9253,6 +10693,7 @@ function parserFormula( formula, parent, _ws ) { window['AscCommonExcel'].convertAreaToArray = convertAreaToArray; window['AscCommonExcel'].convertAreaToArrayRefs = convertAreaToArrayRefs; window['AscCommonExcel'].getArrayHelper = getArrayHelper; + window['AscCommonExcel'].getMaxDate = getMaxDate; window['AscCommonExcel'].importRangeLinksState = importRangeLinksState; diff --git a/cell/model/FormulaObjects/statisticalFunctions.js b/cell/model/FormulaObjects/statisticalFunctions.js index 924abb74ce..6d4aa0d5c4 100644 --- a/cell/model/FormulaObjects/statisticalFunctions.js +++ b/cell/model/FormulaObjects/statisticalFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -3449,7 +3449,8 @@ function (window, undefined) { if (fTarget <= this.maRange[this.mnCount - 1].X) { var n = (fTarget - this.maRange[0].X) / this.mfStepSize; var fInterpolate = Math.fmod(fTarget - this.maRange[0].X, this.mfStepSize); - rForecast = this.maRange[n].Y; + // rForecast = this.maRange[n].Y; + rForecast = this.maRange[n] ? this.maRange[n].Y : 0; if (fInterpolate >= this.cfMinABCResolution) { var fInterpolateFactor = fInterpolate / this.mfStepSize; @@ -4028,13 +4029,14 @@ function (window, undefined) { cAVERAGEIF.prototype.argumentsMin = 2; cAVERAGEIF.prototype.argumentsMax = 3; cAVERAGEIF.prototype.arrayIndexes = {0: 1, 2: 1}; + cAVERAGEIF.prototype.exactTypes = {0: 1, 2: 1}; cAVERAGEIF.prototype.argumentsType = [argType.reference, argType.any, argType.reference]; cAVERAGEIF.prototype.Calculate = function (arg) { - var arg0 = arg[0], arg1 = arg[1], arg2 = arg[2] ? arg[2] : arg[0], _sum = 0, _count = 0, matchingInfo, ws; + let arg0 = arg[0], arg1 = arg[1], arg2 = arg[2] ? arg[2] : arg[0], _sum = 0, _count = 0, matchingInfo, ws; if ((cElementType.cell !== arg0.type && cElementType.cell3D !== arg0.type && cElementType.cellsRange !== - arg0.type) || + arg0.type && cElementType.cellsRange3D !== arg0.type) || (cElementType.cell !== arg2.type && cElementType.cell3D !== arg2.type && cElementType.cellsRange !== - arg2.type)) { + arg2.type && cElementType.cellsRange3D !== arg2.type)) { return new cError(cErrorType.wrong_value_type); } @@ -4050,17 +4052,17 @@ function (window, undefined) { return new cError(cErrorType.wrong_value_type); } - var r = arg0.getRange(); - var r2 = arg2.getRange(); + let r = arg0.getRange(), r2 = arg2.getRange(); + ws = arg0.getWS(); matchingInfo = AscCommonExcel.matchingValue(arg1); - if (cElementType.cellsRange === arg0.type) { - arg0.foreach2(function (v, cell) { + if (cElementType.cellsRange === arg0.type || cElementType.cellsRange3D === arg0.type) { + arg0.foreach2(function (v, cell, row, col) { if (matching(v, matchingInfo)) { - var offset = cell.getOffset3(r.bbox.c1 + 1, r.bbox.r1 + 1); + let offset = new AscCommon.CellBase(row - r.bbox.r1, col - r.bbox.c1); r2.setOffset(offset); - var val; + let val; ws._getCellNoEmpty(r2.bbox.r1, r2.bbox.c1, function (cell) { val = checkTypeCell(cell); }); @@ -4077,10 +4079,7 @@ function (window, undefined) { }) } else { if (matching(arg0.getValue(), matchingInfo)) { - var val; - ws._getCellNoEmpty(r.bbox.r1, r2.bbox.c1, function (cell) { - val = checkTypeCell(cell); - }); + let val = arg2.getFirstElement ? arg2.getFirstElement() : arg2.getValue(); if (cElementType.number === val.type) { _sum += val.getValue(); _count++; @@ -5196,9 +5195,12 @@ function (window, undefined) { arg1 = arg1.getElementRowCol(0, 0); } - arg1 = arg1.tocString(); - if (cElementType.string !== arg1.type) { - return new cError(cErrorType.wrong_value_type); + if (arg1.type === cElementType.cell || arg1.type === cElementType.cell3D) { + arg1 = arg1.getValue(); + } + + if (arg1.type === cElementType.empty) { + arg1 = arg1.tocNumber(); } argNextDimension = arg0.getDimensions(); @@ -6227,6 +6229,7 @@ function (window, undefined) { cFORECAST_ETS.prototype.name = 'FORECAST.ETS'; cFORECAST_ETS.prototype.argumentsMin = 3; cFORECAST_ETS.prototype.argumentsMax = 6; + cFORECAST_ETS.prototype.arrayIndexes = {1: 1, 2: 1}; cFORECAST_ETS.prototype.numFormat = AscCommonExcel.cNumFormatNone; cFORECAST_ETS.prototype.argumentsType = [argType.number, argType.reference, argType.reference, argType.number, argType.number, argType.number]; cFORECAST_ETS.prototype.Calculate = function (arg) { @@ -6236,18 +6239,26 @@ function (window, undefined) { [null, cElementType.array, cElementType.array]); let argClone = oArguments.args; + if (!argClone[0]) { + return new cError(cErrorType.not_numeric); + } + + if (argClone[0].type && argClone[0].type !== cElementType.number) { + argClone[0] = argClone[0].tocNumber(); + } + argClone[3] = argClone[3] ? argClone[3].tocNumber() : new cNumber(1); argClone[4] = argClone[4] ? argClone[4].tocNumber() : new cNumber(1); argClone[5] = argClone[5] ? argClone[5].tocNumber() : new cNumber(1); - - argClone[0] = argClone[0].getMatrix && argClone[0].getMatrix(); - let argError; if (argError = this._checkErrorArg(argClone)) { return argError; } + /* if the first argument is not an array or range, then convert it to a standard two-dimensional array with one value */ + argClone[0] = argClone[0].getMatrix ? argClone[0].getMatrix() : argClone[0].toArray(); + let pTMat = argClone[0], pMatY = argClone[1], pMatX = argClone[2], @@ -6255,6 +6266,9 @@ function (window, undefined) { bDataCompletion = argClone[4].getValue(), nAggregation = argClone[5].getValue(); + if (pMatY.length === 0 || pMatX.length === 0) { + return new cError(cErrorType.division_by_zero); + } if (nAggregation < 1 || nAggregation > 7) { return new cError(cErrorType.not_numeric); } @@ -6303,36 +6317,49 @@ function (window, undefined) { cFORECAST_ETS_CONFINT.prototype.name = 'FORECAST.ETS.CONFINT'; cFORECAST_ETS_CONFINT.prototype.argumentsMin = 3; cFORECAST_ETS_CONFINT.prototype.argumentsMax = 7; + cFORECAST_ETS_CONFINT.prototype.arrayIndexes = {1: 1, 2: 1}; cFORECAST_ETS_CONFINT.prototype.numFormat = AscCommonExcel.cNumFormatNone; cFORECAST_ETS_CONFINT.prototype.argumentsType = [argType.number, argType.reference, argType.reference, argType.number, argType.number, argType.number, argType.number]; cFORECAST_ETS_CONFINT.prototype.Calculate = function (arg) { - //результаты данной фукнции соответсвуют результатам LO, но отличаются от MS!!! - var oArguments = this._prepareArguments(arg, arguments[1], true, + + let oArguments = this._prepareArguments(arg, arguments[1], true, [null, cElementType.array, cElementType.array]); - var argClone = oArguments.args; + let argClone = oArguments.args; + + if (!argClone[0]) { + return new cError(cErrorType.not_numeric); + } + + if (argClone[0].type && argClone[0].type !== cElementType.number) { + argClone[0] = argClone[0].tocNumber(); + } argClone[3] = argClone[3] ? argClone[3].tocNumber() : new cNumber(0.95); argClone[4] = argClone[4] ? argClone[4].tocNumber() : new cNumber(1); argClone[5] = argClone[5] ? argClone[5].tocNumber() : new cNumber(1); argClone[6] = argClone[6] ? argClone[6].tocNumber() : new cNumber(1); - - argClone[0] = argClone[0].getMatrix(); - - var argError; + let argError; if (argError = this._checkErrorArg(argClone)) { return argError; } - var pTMat = argClone[0]; - var pMatY = argClone[1]; - var pMatX = argClone[2]; - var fPILevel = argClone[3].getValue(); - var nSmplInPrd = argClone[4].getValue(); - var bDataCompletion = argClone[5].getValue(); - var nAggregation = argClone[6].getValue(); + /* if the first argument is not an array or range, then convert it to a standard two-dimensional array with one value */ + argClone[0] = argClone[0].getMatrix ? argClone[0].getMatrix() : argClone[0].toArray(); + + let pTMat = argClone[0], + pMatY = argClone[1], + pMatX = argClone[2], + fPILevel = argClone[3].getValue(), + nSmplInPrd = argClone[4].getValue(), + bDataCompletion = argClone[5].getValue(), + nAggregation = argClone[6].getValue(); + + if (pMatY.length === 0 || pMatX.length === 0) { + return new cError(cErrorType.division_by_zero); + } if (fPILevel < 0 || fPILevel > 1) { return new cError(cErrorType.not_numeric); @@ -6344,8 +6371,8 @@ function (window, undefined) { return new cError(cErrorType.not_numeric); } - var aETSCalc = new ScETSForecastCalculation(pMatX.length); - var isError = aETSCalc.PreprocessDataRange(pMatX, pMatY, nSmplInPrd, bDataCompletion, nAggregation, pTMat); + let aETSCalc = new ScETSForecastCalculation(pMatX.length); + let isError = aETSCalc.PreprocessDataRange(pMatX, pMatY, nSmplInPrd, bDataCompletion, nAggregation, pTMat); if (!isError) { ///*,( eETSType != etsStatAdd && eETSType != etsStatMult ? pTMat : nullptr ),eETSType ) return new cError(cErrorType.wrong_value_type); @@ -6356,7 +6383,7 @@ function (window, undefined) { /*SCSIZE nC, nR; pTMat->GetDimensions( nC, nR ); ScMatrixRef pPIMat = GetNewMat( nC, nR );*/ - var pPIMat = null; + let pPIMat = null; if (nSmplInPrd === 0) { pPIMat = aETSCalc.GetEDSPredictionIntervals(pTMat, fPILevel); } else { diff --git a/cell/model/FormulaObjects/textanddataFunctions.js b/cell/model/FormulaObjects/textanddataFunctions.js index 7b5c32cc53..0ea192de5b 100644 --- a/cell/model/FormulaObjects/textanddataFunctions.js +++ b/cell/model/FormulaObjects/textanddataFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -189,7 +189,7 @@ function (window, undefined) { cARRAYTOTEXT.prototype.isXLFN = true; cARRAYTOTEXT.prototype.argumentsMin = 1; cARRAYTOTEXT.prototype.argumentsMax = 2; - cARRAYTOTEXT.prototype.arrayIndexes = {0: 1, 1: 1}; + cARRAYTOTEXT.prototype.arrayIndexes = {0: 1}; cARRAYTOTEXT.prototype.argumentsType = [argType.reference, argType.number]; cARRAYTOTEXT.prototype.Calculate = function (arg) { function arrayToTextGeneral(args, isRange) { @@ -890,7 +890,7 @@ function (window, undefined) { cFIND.prototype.argumentsMax = 3; cFIND.prototype.argumentsType = [argType.text, argType.text, argType.number]; cFIND.prototype.Calculate = function (arg) { - var arg0 = arg[0], arg1 = arg[1], arg2 = arg.length === 3 ? arg[2] : null, res, str, searchStr, + let arg0 = arg[0], arg1 = arg[1], arg2 = arg.length === 3 ? arg[2] : null, res, str, searchStr, pos = -1; if (arg0.type === cElementType.cellsRange || arg0.type === cElementType.cellsRange3D) { @@ -938,7 +938,10 @@ function (window, undefined) { } str = arg1.toLocaleString(); - searchStr = RegExp.escape(arg0.toLocaleString()); + // searchStr = RegExp.escape(arg0.toLocaleString()); // doesn't work with strings like """ String""" , it's return ""\ String"" instead "" String"" + //TODO need review. bugs 50869; 68343 + searchStr = arg0.toLocaleString().replace(/\"\"/g, "\""); + searchStr = RegExp.escape(searchStr); if (arg2) { diff --git a/cell/model/FormulaObjects/traceDependents.js b/cell/model/FormulaObjects/traceDependents.js index 79a5a06a1c..f62f67b5a4 100644 --- a/cell/model/FormulaObjects/traceDependents.js +++ b/cell/model/FormulaObjects/traceDependents.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -72,6 +72,8 @@ function (window, undefined) { // isCalculated: null // } }; + this.aPassedPrecedents = null; + this.aPassedDependents = null; this._lockChangeDocument = null; } @@ -296,11 +298,13 @@ function (window, undefined) { for (let i in allDefNamesListeners) { if (allDefNamesListeners.hasOwnProperty(i) && i.toLowerCase() === defName.toLowerCase()) { for (let listener in allDefNamesListeners[i].listeners) { - // TODO возможно стоить добавить все слушатели сразу в curListener + // TODO maybe add all listeners in 'curListener' at once + // listener can be: cell, range, table, named range - there will be unique processing for each case let elem = allDefNamesListeners[i].listeners[listener]; let isArea = elem.ref ? true : false; let is3D = elem.ws.Id ? elem.ws.Id !== ws.Id : false; let isIntersect; + if (isArea && !is3D && !isCurrentCellHeader) { if (defNameRange) { let defBBox = defNameRange.getBBox0(); @@ -311,6 +315,7 @@ function (window, undefined) { isIntersect = elem.ref.contains(cellAddress.col - colShift, cellAddress.row - rowShift); } + if (isIntersect) { // decompose all elements into dependencies let areaIndexes = getAllAreaIndexes(elem); @@ -321,9 +326,9 @@ function (window, undefined) { t._setPrecedents(areaIndexes[index], cellIndex); } } - continue; } } + continue; } let parentCellIndex = getParentIndex(elem.parent); @@ -342,7 +347,6 @@ function (window, undefined) { } else { continue; } - // continue; } else if (!elem.Formula.includes("Headers") && isCurrentCellHeader) { continue; } @@ -372,9 +376,9 @@ function (window, undefined) { setSharedTableIntersection(ws.getTableByName(defName).getRangeWithoutHeaderFooter(), currentCellRange, elem.shared); continue; } - t._setDependents(cellIndex, parentCellIndex); - t._setPrecedents(parentCellIndex, cellIndex); } + t._setDependents(cellIndex, parentCellIndex); + t._setPrecedents(parentCellIndex, cellIndex); } } } @@ -384,9 +388,9 @@ function (window, undefined) { if (!range) { return; } - for (let i = range.c1; i <= range.c2; i++) { - for (let j = range.r1; j <= range.r2; j++) { - let index = AscCommonExcel.getCellIndex(j, i); + for (let c = range.c1; c <= range.c2; c++) { + for (let r = range.r1; r <= range.r2; r++) { + let index = AscCommonExcel.getCellIndex(r, c); indexes.push(index); } } @@ -513,6 +517,7 @@ function (window, undefined) { if (!this.dependents[cellIndex]) { // if dependents by cellIndex didn't exist, create it this.dependents[cellIndex] = {}; + let parentCellIndex = null; for (let i in cellListeners) { if (cellListeners.hasOwnProperty(i)) { let parent = cellListeners[i].parent; @@ -564,7 +569,7 @@ function (window, undefined) { } } - let parentCellIndex = getParentIndex(parent); + parentCellIndex = getParentIndex(parent); if (parentCellIndex === null) { //if (parentCellIndex === null || (typeof(parentCellIndex) === "number" && isNaN(parentCellIndex))) { continue; @@ -573,7 +578,7 @@ function (window, undefined) { this._setPrecedents(parentCellIndex, cellIndex, true); } } - if (Object.keys(this.dependents[cellIndex]).length === 0) { + if (Object.keys(this.dependents[cellIndex]).length === 0 && cellIndex !== parentCellIndex) { delete this.dependents[cellIndex]; this.ws.workbook.handlers.trigger("asc_onError", c_oAscError.ID.TraceDependentsNoFormulas, c_oAscError.Level.NoCritical); } @@ -581,9 +586,16 @@ function (window, undefined) { if (this.checkCircularReference(cellIndex, true)) { return; } + if (this.checkPassedDependents(cellIndex)) { + return; + } // if dependents by cellIndex aldready exist, check current tree let currentIndex = Object.keys(this.dependents[cellIndex])[0]; let isUpdated = false; + let bCellHasNotTrace = false; + if (Object.keys(this.dependents[cellIndex]).length === 0) { + bCellHasNotTrace = true; + } for (let i in cellListeners) { if (cellListeners.hasOwnProperty(i)) { let parent = cellListeners[i].parent; @@ -611,7 +623,7 @@ function (window, undefined) { } // if the child cell does not yet have a dependency with listeners, create it - if (!this._getDependents(cellIndex, elemCellIndex)) { + if (!this._getDependents(cellIndex, elemCellIndex) && cellIndex !== elemCellIndex) { this._setDependents(cellIndex, elemCellIndex); this._setPrecedents(elemCellIndex, cellIndex, true); isUpdated = true; @@ -620,11 +632,18 @@ function (window, undefined) { } if (!isUpdated) { + this.setPassedDependents(cellIndex); for (let i in this.dependents[cellIndex]) { if (this.dependents[cellIndex].hasOwnProperty(i)) { - this._calculateDependents(i, curListener, true); + this._calculateDependents(+i, curListener, true); } } + if (!isSecondCall) { + this.clearPassedDependents(); + } + } + if (Object.keys(this.dependents[cellIndex]).length === 0 && bCellHasNotTrace) { + this.ws.workbook.handlers.trigger("asc_onError", c_oAscError.ID.TraceDependentsNoFormulas, c_oAscError.Level.NoCritical); } } } else if (!isSecondCall) { @@ -641,6 +660,9 @@ function (window, undefined) { if (!this.dependents[from]) { this.dependents[from] = {}; } + if (from === to) { + return; + } this.dependents[from][to] = 1; }; TraceDependentsManager.prototype._setDefaultData = function () { @@ -701,9 +723,9 @@ function (window, undefined) { } let area = areas[areaName]; - for (let i = area.range.r1; i <= area.range.r2; i++) { - for (let j = area.range.c1; j <= area.range.c2; j++) { - let index = AscCommonExcel.getCellIndex(i, j); + for (let r = area.range.r1; r <= area.range.r2; r++) { + for (let c = area.range.c1; c <= area.range.c2; c++) { + let index = AscCommonExcel.getCellIndex(r, c); indexes.push(index); } } @@ -907,7 +929,11 @@ function (window, undefined) { let currentCellIndex = AscCommonExcel.getCellIndex(row, col); let formulaInfoObject = this.checkUnrecordedAndFormNewStack(currentCellIndex, formulaParsed), isHaveUnrecorded, newOutStack; + let bCellHasNotTrace = false; + if (this.precedents[currentCellIndex] && Object.keys(this.precedents[currentCellIndex]).length === 0) { + bCellHasNotTrace = true; + } if (formulaInfoObject) { isHaveUnrecorded = formulaInfoObject.isHaveUnrecorded; newOutStack = formulaInfoObject.newOutStack; @@ -935,6 +961,8 @@ function (window, undefined) { isArea = elemType === cElementType.cellsRange || elemType === cElementType.name, isDefName = elemType === cElementType.name || elemType === cElementType.name3D, isTable = elemType === cElementType.table, areaName; + let bPinCell = false; + let sValue = null; if (elemType === cElementType.cell || is3D || isArea || isDefName || isTable) { let cellRange = new asc_Range(col, row, col, row), elemRange, elemCellIndex; @@ -954,6 +982,8 @@ function (window, undefined) { } else if (elemRange.isOneCell()) { isArea = false; } + sValue = elemValue.value; + bPinCell = sValue.includes("$"); } else if (isTable) { let currentWsId = elem.ws.Id, elemWsId = elem.area.ws ? elem.area.ws.Id : elem.area.wsFrom.Id; @@ -962,6 +992,8 @@ function (window, undefined) { elemRange = elem.area.bbox ? elem.area.bbox : (elem.area.range ? elem.area.range.bbox : null); isArea = ref ? true : !elemRange.isOneCell(); } else { + sValue = elem.value; + bPinCell = sValue.includes("$"); elemRange = elem.range.bbox ? elem.range.bbox : elem.bbox; } @@ -989,6 +1021,20 @@ function (window, undefined) { } } } + } else if (bPinCell) { + const FIRST_INDEX_VALUE = 0; + let nIndex = sValue.indexOf("$"); + if (nIndex === FIRST_INDEX_VALUE) { + sValue = sValue.slice(nIndex + 1); + let bStaticCell = sValue.includes("$"); + if (bStaticCell) { + elemCellIndex = AscCommonExcel.getCellIndex(elemRange.r1, elemRange.c1); + } else { + elemCellIndex = AscCommonExcel.getCellIndex(elemRange.r1 + (row - base.nRow), elemRange.c1); + } + } else { + elemCellIndex = AscCommonExcel.getCellIndex(elemRange.r1, elemRange.c1 + (col - base.nCol)); + } } else { elemCellIndex = AscCommonExcel.getCellIndex(elemRange.r1 + (row - base.nRow), elemRange.c1 + (col - base.nCol)); } @@ -1060,7 +1106,11 @@ function (window, undefined) { if (this.checkCircularReference(currentCellIndex, false)) { return; } + if (this.checkPassedPrecedents(currentCellIndex)) { + return; + } this.setPrecedentsLoop(true); + this.setPassedPrecedents(currentCellIndex); let isHavePrecedents = false; // check first level, then if function return false, check second, third and so on for (let i in this.precedents[currentCellIndex]) { @@ -1074,6 +1124,12 @@ function (window, undefined) { } this.setPrecedentsLoop(false); + if (!isSecondCall) { + this.clearPassedPrecedents(); + } + } + if (Object.keys(this.precedents[currentCellIndex]).length === 0 && bCellHasNotTrace) { + this.ws.workbook.handlers.trigger("asc_onError", c_oAscError.ID.TracePrecedentsNoValidReference, c_oAscError.Level.NoCritical); } }; TraceDependentsManager.prototype.checkUnrecordedAndFormNewStack = function (cellIndex, formulaParsed) { @@ -1252,6 +1308,9 @@ function (window, undefined) { if (!this.precedents[from]) { this.precedents[from] = {}; } + if (from === to) { + return; + } // TODO calculated: 1, not_calculated: 2 // TODO isAreaHeader: "A3:B4" // this.precedents[from][to] = isDependent ? 2 : 1; @@ -1357,9 +1416,17 @@ function (window, undefined) { } else { this._lockChangeDocument = null; let t = this; - if (arg2) { - for (let col = arg2.c1; col <= arg2.c2; col++) { - for (let row = arg2.r1; row <= arg2.r2; row++) { + if (t.isHaveData() && arg2) { + if (Asc.c_oAscSelectionType.RangeMax === arg2.getType()) { + t.clearAll(); + break; + } + + let maxRowToClear = t.ws.nRowsCount ? Math.min(t.ws.nRowsCount, arg2.r2) : arg2.r2, + maxColToClear = t.ws.nColsCount ? Math.min(t.ws.nColsCount, arg2.c2) : arg2.c2; + + for (let col = arg2.c1; col <= maxColToClear; col++) { + for (let row = arg2.r1; row <= maxRowToClear; row++) { if (!(arg2.c1 === col && arg2.r1 === row)) { t.clearCellTraces(row, col); } @@ -1399,6 +1466,59 @@ function (window, undefined) { } } }; + /** + * Sets passed precedents cells index for recursive calls + * @memberof TraceDependentsManager + * @param {number} currentCellIndex + */ + TraceDependentsManager.prototype.setPassedPrecedents = function (currentCellIndex) { + if (!this.aPassedPrecedents) { + this.aPassedPrecedents = []; + } + this.aPassedPrecedents.push(currentCellIndex); + }; + /** + * Checks current cell index is already passed in recursive calls + * @memberof TraceDependentsManager + * @param {number} currentCellIndex + * @returns {boolean} + */ + TraceDependentsManager.prototype.checkPassedPrecedents = function (currentCellIndex) { + return !!(this.aPassedPrecedents && this.aPassedPrecedents.includes(currentCellIndex)); + }; + /** + * Clears attribute of passed precedents + * @memberof TraceDependentsManager + */ + TraceDependentsManager.prototype.clearPassedPrecedents = function () { + this.aPassedPrecedents = null; + }; + /** + * Sets passed dependents cells index for recursive calls + * @memberof TraceDependentsManager + * @param {number} currentCellIndex + */ + TraceDependentsManager.prototype.setPassedDependents = function (currentCellIndex) { + if (!this.aPassedDependents) { + this.aPassedDependents = []; + } + this.aPassedDependents.push(currentCellIndex); + }; + /** + * Checks current cell index is already passed in recursive calls + * @memberof TraceDependentsManager + * @param {number} currentCellIndex + * @returns {boolean} + */ + TraceDependentsManager.prototype.checkPassedDependents = function (currentCellIndex) { + return !!(this.aPassedDependents && this.aPassedDependents.includes(currentCellIndex)); + }; + /** + * Clears attribute of passed dependents + */ + TraceDependentsManager.prototype.clearPassedDependents = function () { + this.aPassedDependents = null; + }; //------------------------------------------------------------export--------------------------------------------------- diff --git a/cell/model/HeaderFooter.js b/cell/model/HeaderFooter.js index 1b148b112f..49c752865c 100644 --- a/cell/model/HeaderFooter.js +++ b/cell/model/HeaderFooter.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/History.js b/cell/model/History.js index 44de4bdaef..6d9b3f8cc2 100644 --- a/cell/model/History.js +++ b/cell/model/History.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -53,6 +53,9 @@ function (window, undefined) { window['AscCH'].historyitem_Workbook_Date1904 = 11; window['AscCH'].historyitem_Workbook_ChangeExternalReference = 12; window['AscCH'].historyitem_Workbook_TimelineCacheDelete = 13; + window['AscCH'].historyitem_Workbook_CalcPr_iterate = 14; + window['AscCH'].historyitem_Workbook_CalcPr_iterateCount = 15; + window['AscCH'].historyitem_Workbook_CalcPr_iterateDelta = 16; window['AscCH'].historyitem_Worksheet_RemoveCell = 1; window['AscCH'].historyitem_Worksheet_RemoveRows = 2; @@ -76,6 +79,7 @@ function (window, undefined) { window['AscCH'].historyitem_Worksheet_SetTabColor = 27; window['AscCH'].historyitem_Worksheet_RowHide = 28; // Frozen cell + window['AscCH'].historyitem_Worksheet_SetRightToLeft = 29; window['AscCH'].historyitem_Worksheet_ChangeFrozenCell = 30; window['AscCH'].historyitem_Worksheet_SetDisplayGridlines = 31; window['AscCH'].historyitem_Worksheet_SetDisplayHeadings = 32; @@ -264,6 +268,8 @@ function (window, undefined) { window['AscCH'].historyitem_PivotTable_FormatsRemoveField = 63; window['AscCH'].historyitem_PivotTable_FormatsAddRowField = 64; window['AscCH'].historyitem_PivotTable_FormatsAddColField = 65; + window['AscCH'].historyitem_PivotTable_SetGrandTotalCaption = 59; + window['AscCH'].historyitem_PivotTable_PivotFieldSetSubtotalCaption = 60; window['AscCH'].historyitem_SharedFormula_ChangeFormula = 1; window['AscCH'].historyitem_SharedFormula_ChangeShared = 2; @@ -570,9 +576,13 @@ CHistory.prototype.RedoAdd = function(oRedoObjectParam, Class, Type, sheetid, ra if(changedObject){ var fChangesClass = AscDFH.changesFactory[nChangesType]; if (fChangesClass){ + let color = null; + if (AscCommon.CollaborativeEditing.isCollaboration()) + color = new CDocumentColor(255, 255, 255); + var oChange = new fChangesClass(changedObject); oChange.ReadFromBinary(Data.oBinaryReader); - oChange.Load(new CDocumentColor(255, 255, 255)); + oChange.Load(color); } } } diff --git a/cell/model/NamedSheetViews.js b/cell/model/NamedSheetViews.js index 8ff94c802f..5d823a2fc8 100644 --- a/cell/model/NamedSheetViews.js +++ b/cell/model/NamedSheetViews.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/PivotTables.js b/cell/model/PivotTables.js index 695970be99..188bd5e4f5 100644 --- a/cell/model/PivotTables.js +++ b/cell/model/PivotTables.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -2721,6 +2721,10 @@ function PivotTableChanged() { this.style = false; this.data = false; } + +/** + * @constructor + */ function CT_pivotTableDefinition(setDefaults) { //Attributes this.name = null; @@ -2798,6 +2802,7 @@ function CT_pivotTableDefinition(setDefaults) { this.rowItems = null; this.colFields = null; this.colItems = null; + /**@type {CT_PageFields} */ this.pageFields = null; /**@type {CT_DataFields} */ this.dataFields = null; @@ -3843,7 +3848,7 @@ CT_pivotTableDefinition.prototype.fillAutoFiltersOptions = function (autoFilterO var pivotFilter = this.getPivotFilter(index); if (pivotFilter) { filterObj.convertFromFilterColumn(pivotFilter.autoFilter.FilterColumns[0], false); - } else if(values.some(function(elem) {return !elem.visible;})){ + } else if(null !== pageFieldItem || values.some(function(elem) {return !elem.visible;})){ filterObj.type = Asc.c_oAscAutoFilterTypes.Filters; } var pivotDataFields = [this.getPivotFieldName(index)]; @@ -4258,6 +4263,9 @@ CT_pivotTableDefinition.prototype.asc_getColGrandTotals = function () { CT_pivotTableDefinition.prototype.asc_getShowHeaders = function () { return this.showHeaders; }; +CT_pivotTableDefinition.prototype.asc_getGrandTotalCaption = function () { + return this.grandTotalCaption; +}; CT_pivotTableDefinition.prototype.asc_getUseAutoFormatting = function () { return this.useAutoFormatting; }; @@ -4327,6 +4335,9 @@ CT_pivotTableDefinition.prototype.asc_select = function (api) { CT_pivotTableDefinition.prototype.asc_getDataRef = function() { return this.cacheDefinition && this.cacheDefinition.getDataRef() || ''; }; +CT_pivotTableDefinition.prototype.asc_getFieldIndexByName = function(name) { + return this.cacheDefinition && this.cacheDefinition.getFieldIndexByName(name); +}; CT_pivotTableDefinition.prototype.getDataLocation = function() { return this.cacheDefinition && this.cacheDefinition.getDataLocation(); }; @@ -5168,6 +5179,9 @@ CT_pivotTableDefinition.prototype.asc_set = function (api, newVal) { if (null !== newVal.showHeaders) { pivot.asc_setShowHeaders(newVal.showHeaders, true); } + if (null !== newVal.grandTotalCaption) { + pivot.asc_setGrandTotalCaption(newVal.grandTotalCaption, true); + } if (null !== newVal.compact) { pivot.setCompact(newVal.compact, true); } @@ -5236,6 +5250,10 @@ CT_pivotTableDefinition.prototype.asc_setShowHeaders = function(newVal, addToHis setTableProperty(this, this.showHeaders, newVal, addToHistory, AscCH.historyitem_PivotTable_SetShowHeaders, true); this.showHeaders = newVal; }; +CT_pivotTableDefinition.prototype.asc_setGrandTotalCaption = function(newVal, addToHistory) { + setTableProperty(this, this.grandTotalCaption, newVal, addToHistory, AscCH.historyitem_PivotTable_SetGrandTotalCaption, true); + this.grandTotalCaption = newVal; +}; CT_pivotTableDefinition.prototype.asc_setCompact = function(newVal, addToHistory) { setTableProperty(this, this.compact, newVal, addToHistory, AscCH.historyitem_PivotTable_SetCompact, true); this.compact = newVal; @@ -5582,7 +5600,10 @@ CT_pivotTableDefinition.prototype.asc_removeDataField = function(api, pivotIndex pivot.removeDataFieldAndReIndex(pivotIndex, dataIndex, true); }); }; -CT_pivotTableDefinition.prototype.asc_moveToPageField = function(api, pivotIndex, dataIndex) { +// во всех методах asc_moveTo добавил ещё один параметр для выставления индекса в новом типе. потому что с интерфейса оно приходит как dataIndex. +// и из-за этого есть баг, что поле всегда добавляется в конец списка и ещё один баг (например: при перемещии из поля values последнего поля в другой тип на первую позицию, +// удаляется не то поле и получается 2 одинаковых поля). Данная правка решает эти проблемы, нужно только в интерфейсе внести правки. +CT_pivotTableDefinition.prototype.asc_moveToPageField = function(api, pivotIndex, dataIndex, indexTo) { if (st_VALUES === pivotIndex) { return; } @@ -5596,10 +5617,10 @@ CT_pivotTableDefinition.prototype.asc_moveToPageField = function(api, pivotIndex if (undefined === deleteIndex && undefined !== dataIndex) { pivot.removeDataFieldAndReIndex(pivotIndex, dataIndex, true); } - pivot.addPageField(pivotIndex, undefined, true); + pivot.addPageField(pivotIndex, indexTo, true); }); }; -CT_pivotTableDefinition.prototype.asc_moveToRowField = function(api, pivotIndex, dataIndex) { +CT_pivotTableDefinition.prototype.asc_moveToRowField = function(api, pivotIndex, dataIndex, indexTo) { var pivotField = this.asc_getPivotFields()[pivotIndex]; if (pivotField && !pivotField.dragToRow) { //todo The field you are moving cannot be placed in thet PivotTable area @@ -5618,11 +5639,11 @@ CT_pivotTableDefinition.prototype.asc_moveToRowField = function(api, pivotIndex, if (undefined === deleteIndex && undefined !== dataIndex) { pivot.removeDataFieldAndReIndex(pivotIndex, dataIndex, true); } - pivot.addRowField(pivotIndex, undefined, true); + pivot.addRowField(pivotIndex, indexTo, true); } }); }; -CT_pivotTableDefinition.prototype.asc_moveToColField = function(api, pivotIndex, dataIndex) { +CT_pivotTableDefinition.prototype.asc_moveToColField = function(api, pivotIndex, dataIndex, indexTo) { var pivotField = this.asc_getPivotFields()[pivotIndex]; if (pivotField && !pivotField.dragToCol) { //todo The field you are moving cannot be placed in thet PivotTable area @@ -5641,11 +5662,11 @@ CT_pivotTableDefinition.prototype.asc_moveToColField = function(api, pivotIndex, if (undefined === deleteIndex && undefined !== dataIndex) { pivot.removeDataFieldAndReIndex(pivotIndex, dataIndex, true); } - pivot.addColField(pivotIndex, undefined, true); + pivot.addColField(pivotIndex, indexTo, true); } }); }; -CT_pivotTableDefinition.prototype.asc_moveToDataField = function(api, pivotIndex, dataIndex) { +CT_pivotTableDefinition.prototype.asc_moveToDataField = function(api, pivotIndex, dataIndex, indexTo) { if (st_VALUES === pivotIndex) { return; } @@ -5659,7 +5680,7 @@ CT_pivotTableDefinition.prototype.asc_moveToDataField = function(api, pivotIndex if (undefined === deleteIndex && undefined !== dataIndex) { pivot.removeDataFieldAndReIndex(pivotIndex, dataIndex, true); } - pivot.addDataFieldAndReIndex(pivotIndex, undefined, true); + pivot.addDataFieldAndReIndex(pivotIndex, indexTo, true); pivot.addValuesField(true); }); }; @@ -6602,19 +6623,47 @@ CT_pivotTableDefinition.prototype.asc_removeFilters = function(api) { this.removeFiltersWithLock(api, flds, false); } }; +CT_pivotTableDefinition.prototype.asc_removePivotFilter = function (api, fld, opt_clearManualFilters, opt_clearLabelFilters, opt_clearValueFilters, confirmation) { + let flds = []; + let autoFilterObject = new Asc.AutoFiltersOptions(); + this.fillAutoFiltersOptions(autoFilterObject, fld); + if (autoFilterObject.filter && autoFilterObject.filter.type !== Asc.c_oAscAutoFilterTypes.None) { + if (autoFilterObject.filter.type === Asc.c_oAscAutoFilterTypes.Filters) { + if (opt_clearManualFilters) { + flds.push(fld); + } + } else { + let pivotFilter = this.getPivotFilter(fld); + if (pivotFilter && pivotFilter.isValueFilter()) { + if (opt_clearValueFilters) { + flds.push(fld); + } + } else { + if (opt_clearLabelFilters) { + flds.push(fld); + } + } + } + } + this.removeFiltersWithLock(api, flds, confirmation); +}; CT_pivotTableDefinition.prototype.removeFiltersWithLock = function(api, flds, confirmation) { var t = this, changeRes; - api._changePivotAndConnectedBySlicerWithLock(this, flds, function() { + let fldsWithFilter = flds.filter(function (fld) { + return t.hasFilter(fld); + }); + if (0 === fldsWithFilter.length) { + return; + } + api._changePivotAndConnectedBySlicerWithLock(this, fldsWithFilter, function() { History.Create_NewPoint(); History.StartTransaction(); api.wbModel.dependencyFormulas.lockRecal(); - for (var i = 0; i < flds.length; ++i) { - if (t.hasFilter(flds[i])) { - changeRes = t.removeFilterWithSlicer(api, flds[i], confirmation); - if (c_oAscError.ID.No !== changeRes.error || c_oAscError.ID.No !== changeRes.warning) { - break; - } + for (var i = 0; i < fldsWithFilter.length; ++i) { + changeRes = t.removeFilterWithSlicer(api, fldsWithFilter[i], confirmation); + if (c_oAscError.ID.No !== changeRes.error || c_oAscError.ID.No !== changeRes.warning) { + break; } } api.wbModel.dependencyFormulas.unlockRecal(); @@ -7766,10 +7815,10 @@ CT_pivotTableDefinition.prototype.getGetPivotParamsByActiveCell = function(activ const rowItems = this.getRowItems(); const colItems = this.getColItems(); const dataFields = this.asc_getDataFields(); - const cacheFieds = this.asc_getCacheFields(); + const cacheFileds = this.asc_getCacheFields(); const indexes = this.getItemsIndexesByActiveCell(row, col); const dataIndex = Math.max(rowItems[indexes.rowItemIndex].i, colItems[indexes.colItemIndex].i); - const dataFieldName = dataFields.length === 1 ? cacheFieds[dataFields[dataIndex].fld].asc_getName() : dataFields[dataIndex].asc_getName(); + const dataFieldName = dataFields.length === 1 ? cacheFileds[dataFields[dataIndex].fld].asc_getName() : dataFields[dataIndex].asc_getName(); const itemMapArray = this.getNoFilterItemFieldsMapArray(indexes.rowItemIndex, indexes.colItemIndex); if (!itemMapArray){ return null; @@ -7782,7 +7831,7 @@ CT_pivotTableDefinition.prototype.getGetPivotParamsByActiveCell = function(activ itemMapArray.forEach(function(item) { const fieldIndex = item[0]; const fieldItemIndex = item[1]; - const cacheField = cacheFieds[fieldIndex]; + const cacheField = cacheFileds[fieldIndex]; const result = t.getGetPivotParam(cacheField, fieldItemIndex); resultOptParams.push(cacheField.asc_getName(), result.value); resultOptParamsFormula.push('"' + cacheField.asc_getName() + '"', result.formulaValue); @@ -8264,6 +8313,183 @@ CT_pivotTableDefinition.prototype.asc_canShowDetails = function(row, col) { CT_pivotTableDefinition.prototype.getFormatting = function(query) { return this.formatsManager.get(query); }; +/** + * @param {string} itemString + * @return {number} + */ +CT_pivotTableDefinition.prototype.findFieldByItem = function(itemString) { + const cacheFields = this.asc_getCacheFields(); + const pivotFields = this.asc_getPivotFields(); + for (let i = 0; i < cacheFields.length; i += 1) { + const cacheField = cacheFields[i]; + const pivotField = pivotFields[i]; + if (pivotField.findFieldItemByTextValue(cacheField, itemString)) { + return i; + } + } + return null; +}; +/** + * @param {string[]} items + * @return {GetPivotDataParams} + */ +CT_pivotTableDefinition.prototype.asc_getDataToGetPivotData = function(items) { + const getPivotDataParams = { + dataFieldName: null, + optParams: [] + }; + const optParamsMap = new Map(); + const cacheFields = this.asc_getCacheFields(); + for (let i = 0; i < items.length; i += 1) { + const reg = /^(\w+)\[(\w+)\]/; + const match = reg.exec(items[i]); + if (match !== null && match[1] && match[2]) { + const fieldIndex = this.getFieldIndexByValue(match[1]); + if (fieldIndex === null || optParamsMap.has(fieldIndex)) { + return null; + } + optParamsMap.set(fieldIndex, items[i]); + getPivotDataParams.optParams.push(cacheFields[fieldIndex].name, match[2]); + continue; + } + if (this.dataFields.getIndexByName(items[i]) !== -1 || this.findDataFieldByFldName(items[i]) !== -1) { + if (getPivotDataParams.dataFieldName !== null) { + return null; + } + getPivotDataParams.dataFieldName = items[i]; + } else { + const fieldIndex = this.findFieldByItem(items[i]); + if (fieldIndex === null || optParamsMap.has(fieldIndex)) { + return null; + } + optParamsMap.set(fieldIndex, items[i]); + getPivotDataParams.optParams.push(cacheFields[fieldIndex].name, items[i]); + } + } + if (!getPivotDataParams.dataFieldName) { + const dataFields = this.asc_getDataFields(); + if (dataFields.length > 1) { + return null; + } + getPivotDataParams.dataFieldName = dataFields[0] && dataFields[0].name; + } + return getPivotDataParams; +}; +/** + * @return {Range} + */ +CT_pivotTableDefinition.prototype.asc_getRowRange = function() { + let res = null; + if (this.getRowFieldsCount()) { + const range = this.getRange(); + const location = this.location; + const r1 = range.r1 + location.firstDataRow - 1; + const r2 = range.r2; + const c1 = range.c1; + const c2 = range.c1 + location.firstDataCol - 1; + res = this.worksheet.getRange3(r1, c1, r2, c2); + } + return res; +}; +/** + * @return {Range} + */ +CT_pivotTableDefinition.prototype.asc_getColumnRange = function() { + let res = null; + if (this.getColumnFieldsCount()) { + const range = this.getRange(); + const location = this.location; + const c1 = range.c1 + location.firstDataCol; + const c2 = range.c2; + const r1 = range.r1; + const r2 = range.r1 + location.firstDataRow - 1; + res = this.worksheet.getRange3(r1, c1, r2, c2) + } + return res; +}; +/** + * @return {Range} + */ +CT_pivotTableDefinition.prototype.asc_getDataBodyRange = function() { + const range = this.getRange(); + const location = this.location; + const r1 = range.r1 + location.firstDataRow; + const r2 = range.r2; + const c1 = range.c1 + location.firstDataCol; + const c2 = range.c2; + return this.worksheet.getRange3(r1, c1, r2, c2); +}; +/** + * Return fieldIndex by Pivot Field name. + * @param {string} index + * @return {number} + */ +CT_pivotTableDefinition.prototype.getFieldIndexByValue = function(value) { + const pivotFields = this.asc_getPivotFields(); + const cacheFields = this.asc_getCacheFields(); + for (let i = 0; i < pivotFields.length; i += 1) { + const pivotField = pivotFields[i]; + const cacheField = cacheFields[i]; + const name = pivotField.name || cacheField.name; + if (value.toLowerCase() === name.toLowerCase()) { + return i; + } + } + return -1; +}; +/** + * @param {c_oAscAxis} axis + * @return {CT_Field[] | CT_PageField[] | null} + */ +CT_pivotTableDefinition.prototype.getAxisFields = function(axis) { + if (axis != null) { + switch (axis) { + case c_oAscAxis.AxisCol: + return this.asc_getColumnFields(); + case c_oAscAxis.AxisRow: + return this.asc_getRowFields(); + case c_oAscAxis.AxisPage: + return this.asc_getPageFields(); + default: + return null; + } + } + return null; +}; +/** + * @param {spreadsheet_api} api + * @param {number} pivotIndex + * @param {c_oAscAxis} axis + * @param {number} position + * @return {boolean} + */ +CT_pivotTableDefinition.prototype.moveFieldInAxis = function(api, pivotIndex, axis, position) { + function getCurPos(fields) { + for (let i = 0; i < fields.length; i += 1) { + if (fields[i].asc_getIndex() === pivotIndex) { + return i; + } + } + } + const fields = this.getAxisFields(axis); + const curPos = getCurPos(fields); + if (fields[position] && curPos !== position) { + switch (axis) { + case c_oAscAxis.AxisCol: + this.asc_moveColField(api, curPos, position); + return true; + case c_oAscAxis.AxisRow: + this.asc_moveRowField(api, curPos, position); + return true; + case c_oAscAxis.AxisPage: + this.asc_movePageField(api, curPos, position); + return true; + default: + return false; + } + } + return false; +}; /** * @typedef PivotFormatsCollectionItem @@ -12750,6 +12976,10 @@ CT_Tuples.prototype.toXml = function(writer, name) { } writer.WriteXmlNodeEnd(name); }; + +/** + * @constructor + */ function CT_PivotField(setDefaults) { //Attributes this.name = null; @@ -13831,6 +14061,9 @@ CT_PivotField.prototype.asc_set = function (api, pivot, index, newVal) { if (null !== newVal.ascNumFormat) { field.setNumFormat(newVal.ascNumFormat, pivot, index, true); } + if (null !== newVal.subtotalCaption) { + field.asc_setSubtotalCaption(newVal.subtotalCaption, pivot, index, true); + } field.checkSubtotal(); }); } @@ -13870,6 +14103,10 @@ CT_PivotField.prototype.asc_setSubtotalTop = function (newVal, pivot, index, add setFieldProperty(pivot, index, this.subtotalTop, newVal, addToHistory, AscCH.historyitem_PivotTable_PivotFieldSetSubtotalTop, true); this.subtotalTop = newVal; }; +CT_PivotField.prototype.asc_setSubtotalCaption = function (newVal, pivot, index, addToHistory) { + setFieldProperty(pivot, index, this.subtotalCaption, newVal, addToHistory, AscCH.historyitem_PivotTable_PivotFieldSetSubtotalCaption, true); + this.subtotalCaption = newVal; +}; CT_PivotField.prototype.asc_setShowAll = function (newVal, pivot, index, addToHistory) { setFieldProperty(pivot, index, this.showAll, newVal, addToHistory, AscCH.historyitem_PivotTable_PivotFieldSetShowAll, true); this.showAll = newVal; @@ -14361,10 +14598,15 @@ CT_PageField.prototype.asc_getName = function () { CT_PageField.prototype.asc_getIndex = function () { return this.fld || 0; }; + +/** + * @constructor + */ function CT_DataField(setDefaults) { //Attributes this.name = null; this.fld = null; + /** @type {c_oAscDataConsolidateFunction} */ this.subtotal = null; this.showDataAs = null; this.baseField = null; @@ -14490,6 +14732,9 @@ CT_DataField.prototype.asc_getName = function () { CT_DataField.prototype.asc_getIndex = function () { return this.fld || 0; }; +/** + * @return {c_oAscDataConsolidateFunction} + */ CT_DataField.prototype.asc_getSubtotal = function () { return this.subtotal; }; @@ -20199,8 +20444,10 @@ prot["asc_getPageOverThenDown"] = prot.asc_getPageOverThenDown; prot["asc_getRowGrandTotals"] = prot.asc_getRowGrandTotals; prot["asc_getColGrandTotals"] = prot.asc_getColGrandTotals; prot["asc_getShowHeaders"] = prot.asc_getShowHeaders; +prot["asc_getGrandTotalCaption"] = prot.asc_getGrandTotalCaption; prot["asc_getUseAutoFormatting"] = prot.asc_getUseAutoFormatting; prot["asc_getDataRef"] = prot.asc_getDataRef; +prot["asc_getFieldIndexByName"] = prot.asc_getFieldIndexByName; prot["asc_getTitle"] = prot.asc_getTitle; prot["asc_getDescription"] = prot.asc_getDescription; prot["asc_getStyleInfo"] = prot.asc_getStyleInfo; @@ -20221,6 +20468,7 @@ prot["asc_setColGrandTotals"] = prot.asc_setColGrandTotals; prot["asc_setPageOverThenDown"] = prot.asc_setPageOverThenDown; prot["asc_setPageWrap"] = prot.asc_setPageWrap; prot["asc_setShowHeaders"] = prot.asc_setShowHeaders; +prot["asc_setGrandTotalCaption"] = prot.asc_setGrandTotalCaption; prot["asc_setUseAutoFormatting"] = prot.asc_setUseAutoFormatting; prot["asc_setCompact"] = prot.asc_setCompact; prot["asc_setOutline"] = prot.asc_setOutline; @@ -20253,6 +20501,12 @@ prot["asc_refresh"] = prot.asc_refresh; prot["asc_getFieldGroupType"] = prot.asc_getFieldGroupType; prot["asc_canExpandCollapseByActiveCell"] = prot.asc_canExpandCollapseByActiveCell; prot["asc_setExpandCollapseByActiveCell"] = prot.asc_setExpandCollapseByActiveCell; +prot["asc_getDataToGetPivotData"] = prot.asc_getDataToGetPivotData; +prot["asc_getColumnRange"] = prot.asc_getColumnRange; +prot["asc_getDataBodyRange"] = prot.asc_getDataBodyRange; +prot["asc_getRowRange"] = prot.asc_getRowRange; +prot["asc_removePivotFilter"] = prot.asc_removePivotFilter; + window["Asc"]["CT_PivotTableStyle"] = window['Asc'].CT_PivotTableStyle = CT_PivotTableStyle; prot = CT_PivotTableStyle.prototype; diff --git a/cell/model/Serialize.js b/cell/model/Serialize.js index 0849e343af..00e6b6f196 100644 --- a/cell/model/Serialize.js +++ b/cell/model/Serialize.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -275,7 +275,8 @@ FileSharing: 25, ExternalLinksAutoRefresh: 26, TimelineCaches: 27, - TimelineCache: 28 + TimelineCache: 28, + Metadata: 29 }; /** @enum */ var c_oSerWorkbookPrTypes = @@ -431,7 +432,10 @@ Value: 3, Formula: 4, RefRowCol: 5, - ValueText: 6 + ValueText: 6, + ValueCache: 7, + CellMetadata: 8, + ValueMetadata: 9 }; /** @enum */ var c_oSerFormulaTypes = @@ -949,7 +953,8 @@ Chart2: 10, ObjectName: 11, EditAs: 12, - ClientData: 14 + ClientData: 14, + pptxDrawingAlternative: 0x99 }; var c_oSer_DrawingClientDataType = @@ -1070,7 +1075,13 @@ SheetDataRowCell: 14, SheetDataRowCellRef: 15, SheetDataRowCellType: 16, - SheetDataRowCellValue: 17 + SheetDataRowCellValue: 17, + AlternateUrls : 18, + AbsoluteUrl : 19, + RelativeUrl : 20, + ExternalAlternateUrlsDriveId : 21, + ExternalAlternateUrlsItemId : 22, + ValueMetadata : 23 }; var c_oSer_HeaderFooter = { AlignWithMargins: 0, @@ -1261,6 +1272,117 @@ TimelineStyleElementDxfId : 6 }; + + var c_oSer_Metadata = + { + MetadataTypes: 0, + MetadataStrings: 1, + MdxMetadata: 2, + CellMetadata: 3, + ValueMetadata: 4, + FutureMetadata: 5 + }; + var c_oSer_MetadataType = + { + MetadataType: 0, + Name: 1, + MinSupportedVersion: 2, + GhostRow: 3, + GhostCol: 4, + Edit: 5, + Delete: 6, + Copy: 7, + PasteAll: 8, + PasteFormulas: 9, + PasteValues: 10, + PasteFormats: 11, + PasteComments: 12, + PasteDataValidation: 13, + PasteBorders: 14, + PasteColWidths: 15, + PasteNumberFormats: 16, + Merge: 17, + SplitFirst: 18, + SplitAll: 19, + RowColShift: 30, + ClearAll: 21, + ClearFormats: 22, + ClearContents: 23, + ClearComments: 24, + Assign: 25, + Coerce: 26, + CellMeta: 27 + }; + var c_oSer_MetadataString = + { + MetadataString: 0 + + }; + var c_oSer_MetadataBlock = + { + MetadataBlock: 0, + MetadataRecord: 1, + MetadataRecordType: 2, + MetadataRecordValue: 3 + }; + var c_oSer_FutureMetadataBlock = + { + Name: 0, + FutureMetadataBlock: 1, + RichValueBlock: 2, + DynamicArrayProperties: 3, + DynamicArray: 4, + CollapsedArray: 5 + }; + var c_oSer_MdxMetadata = + { + Mdx: 0, + NameIndex: 1, + FunctionTag: 2, + MdxTuple: 3, + MdxSet: 4, + MdxKPI: 5, + MdxMemeberProp: 6 + }; + var c_oSer_MetadataMdxTuple = + { + IndexCount: 0, + CultureCurrency: 1, + StringIndex: 2, + NumFmtIndex: 3, + BackColor: 4, + ForeColor: 5, + Italic: 6, + Underline: 7, + Strike: 8, + Bold: 9, + MetadataStringIndex: 10 + }; + var c_oSer_MetadataStringIndex = + { + StringIsSet: 0, + IndexValue: 1 + }; + var c_oSer_MetadataMdxSet = + { + Count: 0, + Index: 1, + SortOrder: 2, + MetadataStringIndex: 3 + }; + var c_oSer_MetadataMdxKPI = + { + NameIndex: 0, + Index: 1, + Property: 2 + }; + var c_oSer_MetadataMemberProperty = + { + NameIndex: 0, + Index: 1 + }; + + /** @enum */ var EBorderStyle = { @@ -1843,6 +1965,13 @@ return res; } + function checkMaxCellLength(text) { + if (text && text.length > Asc.c_oAscMaxCellOrCommentLength) { + text = text.slice(0, Asc.c_oAscMaxCellOrCommentLength); + } + return text; + } + //TODO копия кода из serialize2 function BinaryCustomsTableWriter(memory, CustomXmls) { @@ -3528,6 +3657,10 @@ this.bs.WriteItem(c_oSerWorkbookTypes.TimelineCaches, function () {oThis.WriteTimelineCaches(oThis.wb.timelineCaches);}); } + if (this.wb.metadata) { + this.bs.WriteItem(c_oSerWorkbookTypes.Metadata, function () {oThis.WriteMetadata(oThis.wb.metadata);}); + } + }; this.WriteWorkbookPr = function() { @@ -3883,7 +4016,7 @@ if (externalReference.referenceData) { if (externalReference.referenceData["fileKey"]) { oThis.memory.WriteByte(c_oSerWorkbookTypes.ExternalFileId); - var fileKey = externalReference.referenceData["fileKey"]; + var fileKey = externalReference.referenceData["fileKey"] + ""; oThis.memory.WriteString2(encodeXmlPath(fileKey, true, true)); } if (externalReference.referenceData["instanceId"]) { @@ -3951,12 +4084,12 @@ var oThis = this; if (null != definedName.Name) { this.bs.WriteItem(c_oSer_ExternalLinkTypes.DefinedNameName, function() { - oThis.memory.WriteString2(definedName.Name); + oThis.memory.WriteString3(definedName.Name); }); } if (null != definedName.RefersTo) { this.bs.WriteItem(c_oSer_ExternalLinkTypes.DefinedNameRefersTo, function() { - oThis.memory.WriteString2(definedName.RefersTo); + oThis.memory.WriteString3(definedName.RefersTo); }); } if (null != definedName.SheetId) { @@ -4023,8 +4156,537 @@ oThis.memory.WriteByte(c_oSer_ExternalLinkTypes.SheetDataRowCellValue); oThis.memory.WriteString2(cell.CellValue); } + if (null != cell.vm) { + this.bs.WriteItem(c_oSer_ExternalLinkTypes.ValueMetadata, function () { + oThis.memory.WriteULong(cell.vm); + }); + } + }; + + + //****write metadata**** + this.WriteMetadata = function (pMetadata) { + if (!pMetadata) { + return; + } + + var oThis = this; + if (pMetadata.metadataTypes) { + this.bs.WriteItem(c_oSer_Metadata.MetadataTypes, function () { + oThis.WriteMetadataTypes(pMetadata.metadataTypes); + }); + } + if (pMetadata.metadataTypes) { + this.bs.WriteItem(c_oSer_Metadata.MetadataStrings, function () { + oThis.WriteMetadataStrings(pMetadata.metadataTypes); + }); + } + if (pMetadata.mdxMetadata) { + this.bs.WriteItem(c_oSer_Metadata.MdxMetadata, function () { + oThis.WriteMdxMetadata(pMetadata.mdxMetadata); + }); + } + if (pMetadata.cellMetadata) { + this.bs.WriteItem(c_oSer_Metadata.CellMetadata, function () { + oThis.WriteMetadataBlocks(pMetadata.cellMetadata); + }); + } + if (pMetadata.valueMetadata) { + this.bs.WriteItem(c_oSer_Metadata.ValueMetadata, function () { + oThis.WriteMetadataBlocks(pMetadata.valueMetadata); + }); + } + if (pMetadata.aFutureMetadata) { + for (let i = 0; i < pMetadata.aFutureMetadata.length; ++i) { + this.bs.WriteItem(c_oSer_Metadata.FutureMetadata, function () { + oThis.WriteFutureMetadata(pMetadata.aFutureMetadata[i]); + }); + } + } + }; + this.WriteMetadataTypes = function (pMetadataTypes) { + if (!pMetadataTypes) { + return; + } + + var oThis = this; + for (let i = 0; i < pMetadataTypes.length; ++i) { + this.bs.WriteItem(c_oSer_MetadataType.MetadataType, function () { + oThis.WriteMetadataType(pMetadataTypes[i]); + }); + } }; + this.WriteMetadataType = function (pMetadataType) { + if (!pMetadataType) { + return; + } + var oThis = this; + if (pMetadataType.name != null) { + this.bs.WriteItem(c_oSer_MetadataType.Name, function () { + oThis.memory.WriteString3(pMetadataType.name); + }); + } + if (pMetadataType.minSupportedVersion != null) { + this.bs.WriteItem(c_oSer_MetadataType.MinSupportedVersion, function () { + oThis.memory.WriteLong(pMetadataType.minSupportedVersion); + }); + } + if (pMetadataType.ghostRow != null) { + this.bs.WriteItem(c_oSer_MetadataType.GhostRow, function () { + oThis.memory.WriteBool(pMetadataType.ghostRow); + }); + } + if (pMetadataType.ghostCol != null) { + this.bs.WriteItem(c_oSer_MetadataType.GhostCol, function () { + oThis.memory.WriteBool(pMetadataType.ghostCol); + }); + } + if (pMetadataType.edit != null) { + this.bs.WriteItem(c_oSer_MetadataType.Edit, function () { + oThis.memory.WriteBool(pMetadataType.edit); + }); + } + if (pMetadataType.delete != null) { + this.bs.WriteItem(c_oSer_MetadataType.Delete, function () { + oThis.memory.WriteBool(pMetadataType.delete); + }); + } + if (pMetadataType.copy != null) { + this.bs.WriteItem(c_oSer_MetadataType.Copy, function () { + oThis.memory.WriteBool(pMetadataType.copy); + }); + } + if (pMetadataType.pasteAll != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteAll, function () { + oThis.memory.WriteBool(pMetadataType.pasteAll); + }); + } + if (pMetadataType.pasteFormulas != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteFormulas, function () { + oThis.memory.WriteBool(pMetadataType.pasteFormulas); + }); + } + if (pMetadataType.pasteValues != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteValues, function () { + oThis.memory.WriteBool(pMetadataType.pasteValues); + }); + } + if (pMetadataType.pasteFormats != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteFormats, function () { + oThis.memory.WriteBool(pMetadataType.pasteFormats); + }); + } + if (pMetadataType.pasteComments != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteComments, function () { + oThis.memory.WriteBool(pMetadataType.pasteComments); + }); + } + if (pMetadataType.pasteDataValidation != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteDataValidation, function () { + oThis.memory.WriteBool(pMetadataType.pasteDataValidation); + }); + } + if (pMetadataType.pasteBorders != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteBorders, function () { + oThis.memory.WriteBool(pMetadataType.pasteBorders); + }); + } + if (pMetadataType.pasteColWidths != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteColWidths, function () { + oThis.memory.WriteBool(pMetadataType.pasteColWidths); + }); + } + if (pMetadataType.pasteNumberFormats != null) { + this.bs.WriteItem(c_oSer_MetadataType.PasteNumberFormats, function () { + oThis.memory.WriteBool(pMetadataType.pasteNumberFormats); + }); + } + if (pMetadataType.merge != null) { + this.bs.WriteItem(c_oSer_MetadataType.Merge, function () { + oThis.memory.WriteBool(pMetadataType.merge); + }); + } + if (pMetadataType.splitFirst != null) { + this.bs.WriteItem(c_oSer_MetadataType.SplitFirst, function () { + oThis.memory.WriteBool(pMetadataType.splitFirst); + }); + } + if (pMetadataType.SplitAll != null) { + this.bs.WriteItem(c_oSer_MetadataType.SplitAll, function () { + oThis.memory.WriteBool(pMetadataType.splitAll); + }); + } + if (pMetadataType.rowColShift != null) { + this.bs.WriteItem(c_oSer_MetadataType.RowColShift, function () { + oThis.memory.WriteBool(pMetadataType.rowColShift); + }); + } + if (pMetadataType.clearAll != null) { + this.bs.WriteItem(c_oSer_MetadataType.ClearAll, function () { + oThis.memory.WriteBool(pMetadataType.clearAll); + }); + } + if (pMetadataType.clearFormats != null) { + this.bs.WriteItem(c_oSer_MetadataType.ClearFormats, function () { + oThis.memory.WriteBool(pMetadataType.clearFormats); + }); + } + if (pMetadataType.clearContents != null) { + this.bs.WriteItem(c_oSer_MetadataType.ClearContents, function () { + oThis.memory.WriteBool(pMetadataType.clearContents); + }); + } + if (pMetadataType.clearComments != null) { + this.bs.WriteItem(c_oSer_MetadataType.ClearComments, function () { + oThis.memory.WriteBool(pMetadataType.clearComments); + }); + } + if (pMetadataType.assign != null) { + this.bs.WriteItem(c_oSer_MetadataType.Assign, function () { + oThis.memory.WriteBool(pMetadataType.assign); + }); + } + if (pMetadataType.coerce != null) { + this.bs.WriteItem(c_oSer_MetadataType.Coerce, function () { + oThis.memory.WriteBool(pMetadataType.coerce); + }); + } + if (pMetadataType.cellMeta != null) { + this.bs.WriteItem(c_oSer_MetadataType.CellMeta, function () { + oThis.memory.WriteBool(pMetadataType.cellMeta); + }); + } + }; + this.WriteMetadataStrings = function (pMetadataStrings) { + if (!pMetadataStrings) { + return; + } + + var oThis = this; + for (let i = 0; i < pMetadataStrings.length; ++i) { + if (pMetadataStrings[i] && pMetadataStrings[i].v) { + this.bs.WriteItem(c_oSer_MetadataString.MetadataString, function () { + oThis.memory.WriteString3(pMetadataStrings[i].v); + }); + } + } + }; + this.WriteMdxMetadata = function (pMdxMetadata) { + if (!pMdxMetadata) { + return; + } + + var oThis = this; + for (let i = 0; i < pMdxMetadata.length; ++i) { + if (!pMdxMetadata[i]) { + continue; + } + + this.bs.WriteItem(c_oSer_MdxMetadata.Mdx, function () { + oThis.WriteMdx(pMdxMetadata[i]); + }); + } + }; + this.WriteMdx = function (pMdx) { + if (!pMdx) { + return; + } + + var oThis = this; + if (pMdx.n != null) { + this.bs.WriteItem(c_oSer_MdxMetadata.NameIndex, function () { + oThis.memory.WriteLong(pMdx.n); + }); + } + if (pMdx.f) { + this.bs.WriteItem(c_oSer_MdxMetadata.FunctionTag, function () { + oThis.memory.WriteByte(pMdx.f); + }); + } + if (pMdx.mdxTuple) { + this.bs.WriteItem(c_oSer_MdxMetadata.MdxTuple, function () { + oThis.WriteMdxTuple(pMdx.mdxTuple); + }); + } + if (pMdx.mdxSet) { + this.bs.WriteItem(c_oSer_MdxMetadata.MdxSet, function () { + oThis.WriteMdxSet(pMdx.mdxSet); + }); + } + if (pMdx.mdxKPI) { + this.bs.WriteItem(c_oSer_MdxMetadata.MdxKPI, function () { + oThis.WriteMdxKPI(pMdx.mdxKPI); + }); + } + if (pMdx.mdxMemeberProp) { + this.bs.WriteItem(c_oSer_MdxMetadata.MdxMemeberProp, function () { + oThis.WriteMdxMemeberProp(pMdx.mdxMemeberProp); + }); + } + }; + this.WriteMdxTuple = function (pMdxTuple) { + if (!pMdxTuple) { + return; + } + + var oThis = this; + if (pMdxTuple.c) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.IndexCount, function () { + oThis.memory.WriteLong(pMdxTuple.c); + }); + } + if (pMdxTuple.ct) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.CultureCurrency, function () { + oThis.memory.WriteString3(pMdxTuple.ct); + }); + } + if (pMdxTuple.si) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.StringIndex, function () { + oThis.memory.WriteLong(pMdxTuple.si); + }); + } + if (pMdxTuple.fi) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.NumFmtIndex, function () { + oThis.memory.WriteLong(pMdxTuple.fi); + }); + } + if (pMdxTuple.bc) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.BackColor, function () { + oThis.memory.WriteLong(pMdxTuple.bc); + }); + } + if (pMdxTuple.fc) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.ForeColor, function () { + oThis.memory.WriteLong(pMdxTuple.fc); + }); + } + if (pMdxTuple.i) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.Italic, function () { + oThis.memory.WriteLong(pMdxTuple.i); + }); + } + if (pMdxTuple.b) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.Bold, function () { + oThis.memory.WriteBool(pMdxTuple.b); + }); + } + if (pMdxTuple.u) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.Underline, function () { + oThis.memory.WriteBool(pMdxTuple.u); + }); + } + if (pMdxTuple.st) { + this.bs.WriteItem(c_oSer_MetadataMdxTuple.Strike, function () { + oThis.memory.WriteBool(pMdxTuple.st); + }); + } + if (pMdxTuple.metadataStringIndexes) { + for (let i = 0; i < pMdxTuple.metadataStringIndexes.length; ++i) { + if (!pMdxTuple.metadataStringIndexes[i]) { + continue; + } + + this.bs.WriteItem(c_oSer_MetadataMdxTuple.MetadataStringIndex, function () { + oThis.WriteMetadataStringIndex(pMdxTuple.metadataStringIndexes[i]); + }); + } + } + }; + this.WriteMetadataStringIndex = function (pStringIndex) { + if (!pStringIndex) { + return; + } + + var oThis = this; + if (pStringIndex.x) { + this.bs.WriteItem(c_oSer_MetadataStringIndex.IndexValue, function () { + oThis.memory.WriteLong(pStringIndex.x); + }); + } + if (pStringIndex.s) { + this.bs.WriteItem(c_oSer_MetadataStringIndex.StringIsSet, function () { + oThis.memory.WriteLong(pStringIndex.s); + }); + } + }; + this.WriteMdxSet = function (pMdxSet) { + if (!pMdxSet) { + return; + } + + var oThis = this; + if (pMdxSet.c) { + this.bs.WriteItem(c_oSer_MetadataMdxSet.Count, function () { + oThis.memory.WriteLong(pMdxSet.c); + }); + } + if (pMdxSet.ns) { + this.bs.WriteItem(c_oSer_MetadataMdxSet.Index, function () { + oThis.memory.WriteLong(pMdxSet.ns); + }); + } + if (pMdxSet.o) { + this.bs.WriteItem(c_oSer_MetadataMdxSet.SortOrder, function () { + oThis.memory.WriteByte(pMdxSet.o); + }); + } + if (pMdxSet.metadataStringIndexes) { + for (let i = 0; i < pMdxSet.metadataStringIndexes.length; ++i) { + if (!pMdxSet.metadataStringIndexes[i]) { + continue; + } + + this.bs.WriteItem(c_oSer_MetadataMdxSet.MetadataStringIndex, function () { + oThis.WriteMetadataStringIndex(pMdxSet.metadataStringIndexes[i]); + }); + } + } + }; + this.WriteMdxKPI = function (pMdxKPI) { + if (!pMdxKPI) { + return; + } + + var oThis = this; + if (pMdxKPI.n) { + this.bs.WriteItem(c_oSer_MetadataMdxKPI.NameIndex, function () { + oThis.memory.WriteLong(pMdxKPI.n); + }); + } + if (pMdxKPI.np) { + this.bs.WriteItem(c_oSer_MetadataMdxKPI.Index, function () { + oThis.memory.WriteLong(pMdxKPI.np); + }); + } + if (pMdxKPI.p) { + this.bs.WriteItem(c_oSer_MetadataMdxKPI.Property, function () { + oThis.memory.WriteByte(pMdxKPI.p); + }); + + } + }; + this.WriteMdxMemeberProp = function (pMdxMemeberProp) { + if (!pMdxMemeberProp) { + return; + } + + var oThis = this; + if (pMdxMemeberProp.n) { + this.bs.WriteItem(c_oSer_MetadataMemberProperty.NameIndex, function () { + oThis.memory.WriteLong(pMdxMemeberProp.n); + }); + } + if (pMdxMemeberProp.np) { + this.bs.WriteItem(c_oSer_MetadataMemberProperty.Index, function () { + oThis.memory.WriteLong(pMdxMemeberProp.np); + }); + } + }; + this.WriteMetadataBlocks = function (aMetadataBlocks) { + if (!aMetadataBlocks) { + return; + } + + var oThis = this; + for (let i = 0; i < aMetadataBlocks.length; ++i) { + if (!aMetadataBlocks[i]) { + continue; + } + + this.bs.WriteItem(c_oSer_MetadataBlock.MetadataBlock, function () { + oThis.WriteMetadataBlock(aMetadataBlocks[i]); + }); + } + }; + this.WriteMetadataBlock = function (metadataBlock) { + if (!metadataBlock) { + return; + } + + var oThis = this; + this.bs.WriteItem(c_oSer_MetadataBlock.MetadataRecord, function () { + oThis.WriteMetadataRecord(metadataBlock); + }); + }; + this.WriteMetadataRecord = function (pMetadataRecord) { + if (!pMetadataRecord) { + return; + } + + var oThis = this; + if (pMetadataRecord.t) { + this.bs.WriteItem(c_oSer_MetadataBlock.MetadataRecordType, function () { + oThis.memory.WriteLong(pMetadataRecord.t); + }); + } + if (pMetadataRecord.v) { + this.bs.WriteItem(c_oSer_MetadataBlock.MetadataRecordValue, function () { + oThis.memory.WriteLong(pMetadataRecord.v); + }); + } + }; + this.WriteFutureMetadataBlock = function (pFutureMetadataBlock) { + if (!pFutureMetadataBlock || !pFutureMetadataBlock.extLst) { + return; + } + + var oThis = this; + for (let i = 0; i < pFutureMetadataBlock.extLst.length; ++i) { + if (!pFutureMetadataBlock.extLst[i]) { + continue; + } + + if (pFutureMetadataBlock.extLst[i].dynamicArrayProperties) { + + this.bs.WriteItem(c_oSer_FutureMetadataBlock.DynamicArrayProperties, function () { + + if (pFutureMetadataBlock.extLst[i].dynamicArrayProperties.fDynamic) { + oThis.bs.WriteItem(c_oSer_FutureMetadataBlock.DynamicArray, function () { + oThis.memory.WriteBool(pFutureMetadataBlock.extLst[i].dynamicArrayProperties.fDynamic); + }); + + } + if (pFutureMetadataBlock.extLst[i].dynamicArrayProperties.fCollapsed) { + oThis.bs.WriteItem(c_oSer_FutureMetadataBlock.CollapsedArray, function () { + oThis.memory.WriteBool(pFutureMetadataBlock.extLst[i].dynamicArrayProperties.fCollapsed); + }); + } + }); + } + + if ((pFutureMetadataBlock.extLst[i].richValueBlock) && (pFutureMetadataBlock.extLst[i].richValueBlock.i)) { + oThis.bs.WriteItem(c_oSer_FutureMetadataBlock.RichValueBlock, function () { + oThis.memory.WriteLong(pFutureMetadataBlock.extLst[i].richValueBlock.i); + }); + } + } + }; + this.WriteFutureMetadata = function (pFutureMetadata) { + if (!pFutureMetadata) { + return; + } + + var oThis = this; + if (pFutureMetadata.name) { + oThis.bs.WriteItem(c_oSer_FutureMetadataBlock.Name, function () { + oThis.memory.WriteString3(pFutureMetadata.name); + }); + } + if (pFutureMetadata.futureMetadataBlocks) { + for (let i = 0; i < pFutureMetadata.futureMetadataBlocks.length; ++i) { + if (!pFutureMetadata.futureMetadataBlocks[i]) { + continue; + } + + this.bs.WriteItem(c_oSer_FutureMetadataBlock.FutureMetadataBlock, function () { + oThis.WriteFutureMetadataBlock(pFutureMetadata.futureMetadataBlocks[i]); + }); + } + } + }; + + this.WriteComments = function(aComments) { var t = this; for (var i = 0; i < aComments.length; ++i) { @@ -4772,6 +5434,8 @@ this.bs.WriteItem(c_oSer_SheetView.TopLeftCell, function(){oThis.memory.WriteString3(oSheetView.topLeftCell.getName());}); if (null !== oSheetView.view && !oThis.isCopyPaste) this.bs.WriteItem(c_oSer_SheetView.View, function(){oThis.memory.WriteByte(oSheetView.view);}); + if (null !== oSheetView.rightToLeft && !oThis.isCopyPaste) + this.bs.WriteItem(c_oSer_SheetView.RightToLeft, function(){oThis.memory.WriteBool(oSheetView.rightToLeft);}); }; this.WriteSheetViewPane = function (oPane) { var oThis = this; @@ -6337,7 +7001,7 @@ pptx_content_writer.BinaryFileWriter.ImportFromMemory(old); }}); } - if (this.wb.CustomProperties) { + if (this.wb.CustomProperties && this.wb.CustomProperties.hasProperties()) { this.WriteTable(c_oSerTableTypes.CustomProperties, {Write: function(){ var old = new AscCommon.CMemory(true); pptx_content_writer.BinaryFileWriter.ExportToMemory(old); @@ -7233,7 +7897,7 @@ { if(null == tempValue.text) tempValue.text = ""; - tempValue.text += this.stream.GetString2LE(length); + tempValue.text = checkMaxCellLength(this.stream.GetString2LE(length)); } else res = c_oSerConstants.ReadUnknown; @@ -7256,7 +7920,7 @@ { if(null == oRun.text) oRun.text = ""; - oRun.text += this.stream.GetString2LE(length); + oRun.text = checkMaxCellLength(this.stream.GetString2LE(length)); } else res = c_oSerConstants.ReadUnknown; @@ -8150,6 +8814,13 @@ return oThis.ReadTimelineCaches(t, l, oThis.oWorkbook.timelineCaches); }); } + /*else if (c_oSerWorkbookTypes.Metadata === type) + { + this.oWorkbook.metadata = new AscCommonExcel.CMetadata(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadata(t, l, oThis.oWorkbook.metadata); + }); + }*/ else res = c_oSerConstants.ReadUnknown; return res; @@ -8315,7 +8986,7 @@ } return res; - } + }; this.ReadTimelinePivotFilter = function (type, length, oTimelinePivotFilter) { let res = c_oSerConstants.ReadOk; @@ -8341,6 +9012,408 @@ return res; }; + //****metadata**** + this.ReadMetadata = function (type, length, pMetadata) { + var oThis = this; + let res = c_oSerConstants.ReadOk; + if (c_oSer_Metadata.MetadataTypes === type) { + if (!pMetadata.metadataTypes) { + pMetadata.metadataTypes = []; + } + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataTypes(t, l, pMetadata.metadataTypes); + }); + } else if (c_oSer_Metadata.MetadataStrings === type) { + if (!pMetadata.metadataStrings) { + pMetadata.metadataStrings = []; + } + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataStrings(t, l, pMetadata.metadataStrings); + }); + } else if (c_oSer_Metadata.MdxMetadata === type) { + if (!pMetadata.mdxMetadata) { + pMetadata.mdxMetadata = []; + } + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMdxMetadata(t, l, pMetadata.mdxMetadata); + }); + } else if (c_oSer_Metadata.CellMetadata === type) { + if (!pMetadata.cellMetadata) { + pMetadata.cellMetadata = []; + } + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataBlocks(t, l, pMetadata.cellMetadata); + }); + } else if (c_oSer_Metadata.ValueMetadata === type) { + if (!pMetadata.valueMetadata) { + pMetadata.valueMetadata = []; + } + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataBlocks(t, l, pMetadata.valueMetadata); + }); + } else if (c_oSer_Metadata.FutureMetadata === type) { + if (!pMetadata.aFutureMetadata) { + pMetadata.aFutureMetadata = []; + } + let pMetadataRecord = new AscCommonExcel.CFutureMetadata(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadFutureMetadata(t, l, pMetadataRecord); + }); + pMetadata.aFutureMetadata.push(pMetadataRecord); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadMetadataTypes = function (type, length, aMetadataTypes) { + var oThis = this; + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataType.MetadataType === type) { + var metadataType = new AscCommonExcel.CMetadataType(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataType(t, l, metadataType); + }); + aMetadataTypes.push(metadataType); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + + this.ReadMetadataType = function (type, length, pMetadataType) { + var res = c_oSerConstants.ReadOk; + + if (c_oSer_MetadataType.Name === type) { + pMetadataType.name = this.stream.GetString2LE(length); + } else if (c_oSer_MetadataType.MinSupportedVersion === type) { + pMetadataType.minSupportedVersion = this.stream.GetULong(); + } else if (c_oSer_MetadataType.GhostRow === type) { + pMetadataType.ghostRow = this.stream.GetBool(); + } else if (c_oSer_MetadataType.GhostCol === type) { + pMetadataType.ghostCol = this.stream.GetBool(); + } else if (c_oSer_MetadataType.Edit === type) { + pMetadataType.edit = this.stream.GetBool(); + } else if (c_oSer_MetadataType.Delete === type) { + pMetadataType.delete = this.stream.GetBool(); + } else if (c_oSer_MetadataType.Copy === type) { + pMetadataType.copy = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteAll === type) { + pMetadataType.pasteAll = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteFormulas === type) { + pMetadataType.pasteFormulas = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteValues === type) { + pMetadataType.pasteValues = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteFormats === type) { + pMetadataType.pasteFormats = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteComments === type) { + pMetadataType.pasteComments = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteDataValidation === type) { + pMetadataType.pasteDataValidation = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteBorders === type) { + pMetadataType.pasteBorders = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteColWidths === type) { + pMetadataType.pasteColWidths = this.stream.GetBool(); + } else if (c_oSer_MetadataType.PasteNumberFormats === type) { + pMetadataType.pasteNumberFormats = this.stream.GetBool(); + } else if (c_oSer_MetadataType.Merge === type) { + pMetadataType.merge = this.stream.GetBool(); + } else if (c_oSer_MetadataType.SplitFirst === type) { + pMetadataType.splitFirst = this.stream.GetBool(); + } else if (c_oSer_MetadataType.SplitAll === type) { + pMetadataType.splitAll = this.stream.GetBool(); + } else if (c_oSer_MetadataType.RowColShift === type) { + pMetadataType.rowColShift = this.stream.GetBool(); + } else if (c_oSer_MetadataType.ClearAll === type) { + pMetadataType.clearAll = this.stream.GetBool(); + } else if (c_oSer_MetadataType.ClearFormats === type) { + pMetadataType.clearFormats = this.stream.GetBool(); + } else if (c_oSer_MetadataType.ClearContents === type) { + pMetadataType.clearContents = this.stream.GetBool(); + } else if (c_oSer_MetadataType.ClearComments === type) { + pMetadataType.clearComments = this.stream.GetBool(); + } else if (c_oSer_MetadataType.Assign === type) { + pMetadataType.assign = this.stream.GetBool(); + } else if (c_oSer_MetadataType.Coerce === type) { + pMetadataType.coerce = this.stream.GetBool(); + } else if (c_oSer_MetadataType.CellMeta === type) { + pMetadataType.cellMeta = this.stream.GetBool(); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadMetadataStrings = function (type, length, aMetadataStrings) { + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataString.MetadataString === type) { + let pMetadataString = new AscCommonExcel.CMetadataString(); + pMetadataString.v = this.stream.GetString2LE(length); + aMetadataStrings.push(pMetadataString); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadMdxMetadata = function (type, length, aMdxMetadata) { + var oThis = this; + var res = c_oSerConstants.ReadOk; + if (c_oSer_MdxMetadata.Mdx === type) { + let pMdx = new AscCommonExcel.CMdx(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMdx(t, l, pMdx); + }); + aMdxMetadata.push(pMdx); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadMdx = function (type, length, pMdx) { + var oThis = this; + var res = c_oSerConstants.ReadOk; + if (c_oSer_MdxMetadata.NameIndex === type) { + pMdx.n = this.stream.GetULong(); + } else if (c_oSer_MdxMetadata.FunctionTag === type) { + //pMdx.F.SetValueFromByte(this.stream.GetUChar()); + pMdx.f = this.stream.GetUChar(); + } else if (c_oSer_MdxMetadata.MdxTuple === type) { + //READ1_DEF(length, res, this.ReadMdxTuple, pMdx.MdxTuple.GetPovarer()); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMdx(t, l, pMdx.mdxTuple); + }); + } else if (c_oSer_MdxMetadata.MdxSet === type) { + //READ1_DEF(length, res, this.ReadMdxSet, pMdx.MdxSet.GetPovarer()); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMdx(t, l, pMdx.mdxSet); + }); + } else if (c_oSer_MdxMetadata.MdxKPI === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMdx(t, l, pMdx.mdxKPI); + }); + } else if (c_oSer_MdxMetadata.MdxMemeberProp === type) { + //READ1_DEF(length, res, this.ReadMdxMemeberProp, pMdx.MdxMemeberProp.GetPovarer()); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMdx(t, l, pMdx.mdxMemeberProp); + }); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + //TODO CMetadataBlock -> CMetadataRecord array leto array??? + this.ReadMetadataBlocks = function (type, length, aMetadataBlocks) { + var oThis = this; + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataBlock.MetadataBlock === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataBlock(t, l, aMetadataBlocks); + }); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadMetadataBlock = function (type, length, aMetadataBlocks) { + var oThis = this; + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataBlock.MetadataRecord === type) { + let pMetadataRecord = new AscCommonExcel.CMetadataRecord(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataRecord(t, l, pMetadataRecord); + }); + aMetadataBlocks.push(pMetadataRecord); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadMetadataRecord = function (type, length, pMetadataRecord) { + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataBlock.MetadataRecordType === type) { + pMetadataRecord.t = this.stream.GetULong(); + } else if (c_oSer_MetadataBlock.MetadataRecordValue === type) { + pMetadataRecord.v = this.stream.GetULong(); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadDynamicArrayProperties = function (type, length, pDynamicArrayProperties) { + var res = c_oSerConstants.ReadOk; + if (c_oSer_FutureMetadataBlock.DynamicArray === type) { + pDynamicArrayProperties.fDynamic = this.stream.GetBool(); + } else if (c_oSer_FutureMetadataBlock.CollapsedArray === type) { + pDynamicArrayProperties.fCollapsed = this.stream.GetBool(); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + } + this.ReadMetadataStringIndex = function (type, length, pStringIndex) { + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataStringIndex.StringIsSet === type) { + pStringIndex.s = this.stream.GetULong(); + } else if (c_oSer_MetadataStringIndex.IndexValue === type) { + pStringIndex.x = this.stream.GetULong(); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + } + this.ReadMdxMemeberProp = function (type, length, pMdxMemeberProp) { + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataMemberProperty.NameIndex === type) { + pMdxMemeberProp.n = this.stream.GetULong(); + } else if (c_oSer_MetadataMemberProperty.Index === type) { + pMdxMemeberProp.np = this.stream.GetULong(); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + } + this.ReadMdxKPI = function (type, length, pMetadataRecord) { + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataMdxKPI.NameIndex === type) { + pMetadataRecord.n = this.stream.GetULong(); + } else if (c_oSer_MetadataMdxKPI.Index === type) { + pMetadataRecord.np = this.stream.GetULong(); + } else if (c_oSer_MetadataMdxKPI.Property === type) { + //pMdxKPI.P.Init(); + //pMdxKPI.P.SetValueFromByte(this.stream.GetUChar()); + pMetadataRecord.op = this.stream.GetUChar(); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadMdxSet = function (type, length, pMdxSet) + { + var oThis = this; + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataMdxSet.Count === type) + { + pMdxSet.c = this.stream.GetULong(); + } + else if (c_oSer_MetadataMdxSet.Index === type) + { + pMdxSet.ns = this.stream.GetULong(); + } + else if (c_oSer_MetadataMdxSet.SortOrder === type) + { + //pMdxSet.O.Init(); + //pMdxSet.O.SetValueFromByte(this.stream.GetUChar()); + pMdxSet.o = this.stream.GetUChar(); + } + else if (c_oSer_MetadataMdxSet.MetadataStringIndex === type) + { + let pMetadataStringIndex = new AscCommonExcel.CMetadataStringIndex(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataStringIndex(t, l, pMetadataStringIndex); + }); + pMdxSet.metadataStringIndexes.push(pMetadataStringIndex); + } + else + res = c_oSerConstants.ReadUnknown; + return res; + }; + this.ReadMdxTuple = function (type, length, pMdxTuple) { + var oThis = this; + var res = c_oSerConstants.ReadOk; + if (c_oSer_MetadataMdxTuple.IndexCount === type) { + pMdxTuple.c = this.stream.GetULong(); + } else if (c_oSer_MetadataMdxTuple.StringIndex === type) { + pMdxTuple.si = this.stream.GetULong(); + } else if (c_oSer_MetadataMdxTuple.CultureCurrency === type) { + pMdxTuple.ct = this.stream.GetString2LE(length); + } else if (c_oSer_MetadataMdxTuple.NumFmtIndex === type) { + pMdxTuple.fi = this.stream.GetULong(); + } else if (c_oSer_MetadataMdxTuple.BackColor === type) { + pMdxTuple.bc = this.stream.GetULong(); + } else if (c_oSer_MetadataMdxTuple.ForeColor === type) { + pMdxTuple.fc = this.stream.GetULong(); + } else if (c_oSer_MetadataMdxTuple.Italic === type) { + pMdxTuple.i = this.stream.GetBool(); + } else if (c_oSer_MetadataMdxTuple.Bold === type) { + pMdxTuple.b = this.stream.GetBool(); + } else if (c_oSer_MetadataMdxTuple.Underline === type) { + pMdxTuple.u = this.stream.GetBool(); + } else if (c_oSer_MetadataMdxTuple.Strike === type) { + pMdxTuple.st = this.stream.GetBool(); + } else if (c_oSer_MetadataMdxTuple.MetadataStringIndex === type) { + let pMetadataStringIndex = new AscCommonExcel.CMetadataStringIndex(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadMetadataStringIndex(t, l, pMetadataStringIndex); + }); + pMdxTuple.metadataStringIndexes.push(pMetadataStringIndex); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; + }; + this.ReadFutureMetadata = function (type, length, pCFutureMetadata) + { + var oThis = this; + var res = c_oSerConstants.ReadOk; + + if (c_oSer_FutureMetadataBlock.Name === type) + { + pCFutureMetadata.name = this.stream.GetString2LE(length); + } + else if (c_oSer_FutureMetadataBlock.FutureMetadataBlock === type) + { + if (!pCFutureMetadata.futureMetadataBlocks) { + pCFutureMetadata.futureMetadataBlocks = []; + } + let pFutureMetadataBlock = new AscCommonExcel.CFutureMetadataBlock(); + if (!pFutureMetadataBlock.extLst) { + pFutureMetadataBlock.extLst = []; + } + let elemExtList = new AscCommonExcel.CMetadataBlockExt(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadFutureMetadataBlock(t, l, elemExtList); + }); + pFutureMetadataBlock.extLst.push(elemExtList); + pCFutureMetadata.futureMetadataBlocks.push(pFutureMetadataBlock); + } + else + res = c_oSerConstants.ReadUnknown; + return res; + }; + this.ReadFutureMetadataBlock = function (type, length, pFutureMetadataBlock) + { + var oThis = this; + var res = c_oSerConstants.ReadOk; + if (c_oSer_FutureMetadataBlock.RichValueBlock === type) + { + /*let pExt = new Asc.COfficeArtExtension(); + pExt.m_sUri = L"{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"; + pExt.RichValueBlock.Init(); + pExt.RichValueBlock.I = this.stream.GetULong();*/ + + let richValueBlock = new AscCommonExcel.CRichValueBlock(); + richValueBlock.i = this.stream.GetULong(); + pFutureMetadataBlock.richValueBlock = richValueBlock; + } + else if (c_oSer_FutureMetadataBlock.DynamicArrayProperties === type) + { + + /*OOX.Drawing.COfficeArtExtension* pExt = new OOX.Drawing.COfficeArtExtension(); + pExt.m_sUri = L"{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"; + pExt.DynamicArrayProperties.Init(); + + READ1_DEF(length, res, this.ReadDynamicArrayProperties, pExt.DynamicArrayProperties.GetPovarer()); + pFutureMetadataBlock.ExtLst.m_arrExt.push_back(pExt);*/ + + let pExt = new AscCommonExcel.CDynamicArrayProperties(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadDynamicArrayProperties(t, l, pExt); + }); + pFutureMetadataBlock.dynamicArrayProperties = pExt; + } + else + res = c_oSerConstants.ReadUnknown; + return res; + }; + this.ReadWorkbookPr = function(type, length, WorkbookPr) { var res = c_oSerConstants.ReadOk; @@ -9791,7 +10864,14 @@ } else { oCell.setValueNumberInternal(val); } + } /*else if (c_oSerCellTypes.CellMetadata === type) + { + oCell.cm = this.stream.GetULong(); } + else if (c_oSerCellTypes.ValueMetadata === type) + { + oCell.vm = this.stream.GetULong(); + }*/ else res = c_oSerConstants.ReadUnknown; return res; @@ -9913,6 +10993,24 @@ else if ( c_oSer_DrawingType.pptxDrawing == type ) { oDrawing.graphicObject = this.ReadPptxDrawing(); + + if(oDrawing.graphicObject && !oDrawing.graphicObject.isSupported()) + { + let nPos = this.bcr.stream.cur; + let type_ = this.bcr.stream.GetUChar(); + let length_ = this.bcr.stream.GetULongLE(); + this.bcr.stream.Seek2(nPos); + if(type_ === c_oSer_DrawingType.pptxDrawingAlternative) + { + res = oThis.bcr.Read1(length_, function(t,l){ + if(t === c_oSer_DrawingType.pptxDrawingAlternative){ + oDrawing.graphicObject = pptx_content_loader.ReadGraphicObject2(oThis.stream, oThis.curWorksheet, oThis.curWorksheet.getDrawingDocument()); + return c_oSerConstants.ReadOk; + } + return c_oSerConstants.ReadUnknown; + }); + } + } } else if( c_oSer_DrawingType.ClientData == type ) { var oClientData = new AscFormat.CClientData(); @@ -10408,7 +11506,7 @@ } else if (c_oSer_SheetView.DefaultGridColor === type) { this.stream.GetBool(); } else if (c_oSer_SheetView.RightToLeft === type) { - this.stream.GetBool(); + oSheetView.rightToLeft = this.stream.GetBool(); } else if (c_oSer_SheetView.ShowFormulas === type) { oSheetView.showFormulas = this.stream.GetBool(); } else if (c_oSer_SheetView.ShowGridLines === type) { @@ -11392,7 +12490,6 @@ case c_oSerTableTypes.CustomProperties: this.stream.Seek2(mtiOffBits); fileStream = this.stream.ToFileStream(); - wb.CustomProperties = new AscCommon.CCustomProperties(); wb.CustomProperties.fromStream(fileStream); this.stream.FromFileStream(fileStream); break; @@ -12772,7 +13869,7 @@ InitOpenManager.prototype.ParseNum = function(oNum, oNumFmts, _useNumId) { var oRes = new AscCommonExcel.Num(); var useNumId = false; - if (null != oNum && null != oNum.f) { + if (null != oNum && oNum.f) {//Excel ignors empty format. bug 70667 oRes.f = oNum.f; } else { var sStandartNumFormat = AscCommonExcel.aStandartNumFormats[oNum.id]; @@ -13309,7 +14406,7 @@ this.newDefinedNames = []; } - CT_Workbook.prototype.fromXml = function (reader) { + CT_Workbook.prototype.fromXmlSimple = function (reader) { if (!reader.ReadNextNode()) { return; } diff --git a/cell/model/Slicer.js b/cell/model/Slicer.js index 9bd5687690..f81eff9f97 100644 --- a/cell/model/Slicer.js +++ b/cell/model/Slicer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/UndoRedo.js b/cell/model/UndoRedo.js index 2b1c7cd444..2ce36ef3cd 100644 --- a/cell/model/UndoRedo.js +++ b/cell/model/UndoRedo.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -748,14 +748,15 @@ function (window, undefined) { } }; - function UndoRedoData_CellValueData(sFormula, oValue, formulaRef) { + function UndoRedoData_CellValueData(sFormula, oValue, formulaRef, bCa) { this.formula = sFormula; this.formulaRef = formulaRef; this.value = oValue; + this.ca = bCa; } UndoRedoData_CellValueData.prototype.Properties = { - formula: 0, value: 1, formulaRef: 2 + formula: 0, value: 1, formulaRef: 2, ca: 3 }; UndoRedoData_CellValueData.prototype.isEqual = function (val) { if (null == val) { @@ -784,13 +785,12 @@ function (window, undefined) { switch (nType) { case this.Properties.formula: return this.formula; - break; case this.Properties.value: return this.value; - break; case this.Properties.formulaRef: return this.formulaRef ? new UndoRedoData_BBox(this.formulaRef) : null; - break; + case this.Properties.ca: + return this.ca; } return null; }; @@ -805,6 +805,9 @@ function (window, undefined) { case this.Properties.formulaRef: this.formulaRef = value ? new Asc.Range(value.c1, value.r1, value.c2, value.r2) : null; break; + case this.Properties.ca: + this.ca = value; + break; } }; @@ -2515,7 +2518,7 @@ function (window, undefined) { wb.oApi.asc_RemoveTraceArrows(Asc.c_oAscRemoveArrowsType.all); } } else if (AscCH.historyitem_Workbook_Calculate === Type) { - if (!bUndo) { + if (!bUndo && wb.bCollaborativeChanges) { wb.calculate(Data.elem, nSheetId); } } else if (bUndo && AscCH.historyitem_Workbook_PivotWorksheetSource === Type) { @@ -2564,6 +2567,15 @@ function (window, undefined) { } else { wb.onTimelineCacheDelete(Data.from.name); } + } else if (AscCH.historyitem_Workbook_CalcPr_iterate === Type) { + wb.calcPr.setIterate(bUndo ? Data.from : Data.to); + AscCommonExcel.g_cCalcRecursion.initCalcProperties(wb.calcPr); + } else if (AscCH.historyitem_Workbook_CalcPr_iterateCount === Type) { + wb.calcPr.setIterateCount(bUndo ? Data.from : Data.to); + AscCommonExcel.g_cCalcRecursion.initCalcProperties(wb.calcPr); + } else if (AscCH.historyitem_Workbook_CalcPr_iterateDelta === Type) { + wb.calcPr.setIterateDelta(bUndo ? Data.from : Data.to); + AscCommonExcel.g_cCalcRecursion.initCalcProperties(wb.calcPr); } }; UndoRedoWorkbook.prototype.forwardTransformationIsAffect = function (Type) { @@ -4110,6 +4122,9 @@ function (window, undefined) { case AscCH.historyitem_PivotTable_SetShowHeaders: pivotTable.asc_setShowHeaders(value); break; + case AscCH.historyitem_PivotTable_SetGrandTotalCaption: + pivotTable.asc_setGrandTotalCaption(value); + break; case AscCH.historyitem_PivotTable_SetCompact: pivotTable.asc_setCompact(value); break; @@ -4365,6 +4380,9 @@ function (window, undefined) { case AscCH.historyitem_PivotTable_PivotFieldSetSubtotalTop: field.asc_setSubtotalTop(value, pivotTable, index); break; + case AscCH.historyitem_PivotTable_PivotFieldSetSubtotalCaption: + field.asc_setSubtotalCaption(value, pivotTable, index); + break; case AscCH.historyitem_PivotTable_PivotFieldSetShowAll: field.asc_setShowAll(value, pivotTable, index); break; diff --git a/cell/model/Workbook.js b/cell/model/Workbook.js index 622785159d..191b84b977 100644 --- a/cell/model/Workbook.js +++ b/cell/model/Workbook.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -47,7 +47,6 @@ var g_oCellAddressUtils = AscCommon.g_oCellAddressUtils; var CellAddress = AscCommon.CellAddress; var isRealObject = AscCommon.isRealObject; - var History = AscCommon.History; var cBoolLocal = AscCommon.cBoolLocal; var cErrorLocal = AscCommon.cErrorLocal; var cErrorOrigin = AscCommon.cErrorOrigin; @@ -563,7 +562,7 @@ this.parsedRef.setFormulaString(this.ref = eventData.assemble); this.wb.dependencyFormulas.addToChangedDefName(this); var newUndoName = this.getUndoDefName(); - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_DefinedNamesChangeUndo, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_DefinedNamesChangeUndo, null, null, new UndoRedoData_FromTo(oldUndoName, newUndoName), true); } } @@ -600,6 +599,7 @@ this.volatileListeners = {}; this.defNameListeners = {}; this.tempGetByCells = []; + this.volatileArrays = {}; // contains all daf formulas on the sheet that could not be expanded (vm="1") //set dirty this.isInCalc = false; this.changedCell = null; @@ -813,6 +813,7 @@ if (this.volatileListeners) { for (var listenerId in this.volatileListeners) { listeners[listenerId] = this.volatileListeners[listenerId]; + g_cCalcRecursion.findRecursionCell(this.volatileListeners[listenerId]); } } if(tableNamesMap){ @@ -853,7 +854,7 @@ } }, changeExternalLink: function(prepared) { - var notifyData = {type: c_oNotifyType.ChangeExternalLink, data: prepared.data, preparedData: prepared.preparedData}; + var notifyData = {type: c_oNotifyType.ChangeExternalLink, data: prepared.data, preparedData: prepared.preparedData, existedWs: prepared.existedWs}; for (var listenerId in prepared.listeners) { prepared.listeners[listenerId].notify(notifyData); } @@ -1081,7 +1082,7 @@ } else { res = this.addDefName(newUndoName.name, newUndoName.ref, newUndoName.sheetId, false, newUndoName.type, newUndoName.isXLNM); } - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); if (res && oldUndoName) { if (oldUndoName.name != newUndoName.name) { this.buildDependency(); @@ -1098,7 +1099,7 @@ res.setUndoDefName(newUndoName); } } - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_DefinedNamesChange, null, null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_DefinedNamesChange, null, null, new UndoRedoData_FromTo(oldUndoName, newUndoName)); if (!this.wb.bUndoChanges && !this.wb.bRedoChanges) { @@ -1294,11 +1295,11 @@ var newUndoName = defName.getUndoDefName(); var ref = table.getRangeWithoutHeaderFooter(); newUndoName.ref = defName.ref.split('!')[0] + '!' + ref.getAbsName(); - History.TurnOff(); + AscCommon.History.TurnOff(); this.editDefinesNames(oldUndoName, newUndoName); var notifyData = {type: c_oNotifyType.ChangeDefName, from: oldUndoName, to: newUndoName}; this._broadcastDefName(defName.name, notifyData); - History.TurnOn(); + AscCommon.History.TurnOn(); this.addToChangedDefName(defName); this.calcTree(); } @@ -1309,9 +1310,9 @@ var oldUndoName = defName.getUndoDefName(); var newUndoName = defName.getUndoDefName(); newUndoName.name = newName; - History.TurnOff(); + AscCommon.History.TurnOff(); this.editDefinesNames(oldUndoName, newUndoName); - History.TurnOn(); + AscCommon.History.TurnOn(); } }, delTableName: function(tableName, bConvertTableFormulaToRef) { @@ -1341,6 +1342,25 @@ } this.calcTree(); }, + addToVolatileArrays: function(formula) { + if (!this.volatileArrays) { + this.volatileArrays = {}; + } + let listenerId = formula.getListenerId(); + this.volatileArrays[listenerId] = formula; + }, + getVolatileArrays: function() { + if (!this.volatileArrays) { + return + } + + return this.volatileArrays + }, + endListeningVolatileArray: function(listenerId) { + if (listenerId) { + delete this.volatileArrays[listenerId]; + } + }, //set dirty addToChangedRange2: function(sheetId, bbox) { if (!this.changedRange) { @@ -1564,8 +1584,19 @@ this._broadcastRanges(notifyData); } this._broadcastCellsEnd(); - - this._calculateDirty(); + do { + this._calculateDirty(); + if (g_cCalcRecursion.getIsEnabledRecursion()) { + g_cCalcRecursion.incIterStep(); + } + } while (g_cCalcRecursion.needRecursiveCall()); + g_cCalcRecursion.resetIterStep(); + g_cCalcRecursion.setStartCellIndex(null); + g_cCalcRecursion.setGroupChangedCells(null); + g_cCalcRecursion.clearPrevIterResult(); + g_cCalcRecursion.clearDiffBetweenIter(); + this.changedCell = null; + this.changedRange = null; this.updateSharedFormulas(); //copy cleanCellCache to prevent recursion in trigger("cleanCellCache") var tmpCellCache = this.cleanCellCache; @@ -1663,8 +1694,8 @@ var defName = this._delDefName(name, sheetId); if (defName) { if (null != historyType) { - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, historyType, null, null, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, historyType, null, null, new UndoRedoData_FromTo(defName.getUndoDefName(), null)); } @@ -1853,26 +1884,156 @@ this.tempGetByCells = []; }, - - + /** + * Method starts preparing for calculate cells with formula. Recognizes what cells need to calculate. + * @memberof DependencyGraph + * @private + */ _calculateDirty: function() { - var t = this; - + const t = this; + const aCycleCells = []; let needUpdateCells = []; - - this._foreachChanged(function (cell) { - if (cell && cell.isFormula()) { - cell.setIsDirty(true); + this._foreachChanged(function (oCell) { + if (oCell && oCell.isFormula()) { + const oFormulaParsed = oCell.getFormulaParsed(); + // Logic for iterative calculation + if (g_cCalcRecursion.getIsEnabledRecursion()) { + const nThisCellIndex = getCellIndex(oCell.nRow, oCell.nCol); + const sCellWsName = oCell.ws.getName().toLowerCase(); + const aRecursiveCells = g_cCalcRecursion.getRecursiveCells(oCell); + + g_cCalcRecursion.updateStartCellIndex(aRecursiveCells); + if (!g_cCalcRecursion.getStartCellIndex()) { + oCell.initStartCellForIterCalc(); + } + let oStartCellIndex = g_cCalcRecursion.getStartCellIndex(); + if (oStartCellIndex) { + // Fill 0 value for empty cells with recursive formula. + if (oCell.getNumberValue() == null && (oCell.getValueText() == null || oCell.getValueText() === '#NUM!')) { + if (oCell.getType() !== CellValueType.Number) { + oCell.setTypeInternal(CellValueType.Number); + } + oCell.setValueNumberInternal(0); + } + // Check result of the formula is convergent + let nDiffBetweenIter = g_cCalcRecursion.getDiffBetweenIter(oCell); + if (!isNaN(nDiffBetweenIter) && nDiffBetweenIter < g_cCalcRecursion.getRelativeError()) { + g_cCalcRecursion.removeRecursionCell(oCell); + if (g_cCalcRecursion.getPrevIterResult(oCell) !== 0 && g_cCalcRecursion.getIterStep() === 2) { + oCell.setValueNumberInternal(g_cCalcRecursion.getPrevIterResult(oCell)); + } + return; + } else { + // Check diff of linked cell + let bLinkCellConvergent = false; + oCell.changeLinkedCell(function (oLinkedCell) { + const nLinkedDiff = g_cCalcRecursion.getDiffBetweenIter(oLinkedCell); + if (!isNaN(nLinkedDiff) && nLinkedDiff < g_cCalcRecursion.getRelativeError()) { + bLinkCellConvergent = true; + } + }, false); + if (bLinkCellConvergent) { + g_cCalcRecursion.removeRecursionCell(oCell); + return; + } + } + // Save current value of cell as result of previous iteration + g_cCalcRecursion.setPrevIterResult(oCell); + // Fill the array with linked cells from the recursive formula + if (!aRecursiveCells.length && oStartCellIndex.cellId === nThisCellIndex && oStartCellIndex.wsName === sCellWsName) { + aRecursiveCells.unshift(oStartCellIndex); // The first element of the array is always a start cell. + oCell.changeLinkedCell(function (oCell) { + let oCellIndex = { + cellId: getCellIndex(oCell.nRow, oCell.nCol), + wsName: oCell.ws.getName().toLowerCase() + }; + let aPrevRecursiveCell = g_cCalcRecursion.getRecursiveCells(oCell); + if (aPrevRecursiveCell.length) { + const oPrevStartCellIndex = aPrevRecursiveCell[0]; + aPrevRecursiveCell = aPrevRecursiveCell.filter(function (oPrevCellIndex) { + return oPrevCellIndex.cellId !== oCellIndex.cellId || oPrevCellIndex.wsName !== oCellIndex.wsName; + }) + g_cCalcRecursion.updateRecursiveCells(oPrevStartCellIndex, aPrevRecursiveCell); + } + let bDuplicateElem = aRecursiveCells.some(function (oElem) { + return oElem.cellId === oCellIndex.cellId && oElem.wsName === oCellIndex.wsName; + }); + if (bDuplicateElem) { + return true; + } + aRecursiveCells.push(oCellIndex); + }, true); + g_cCalcRecursion.addRecursiveCells(oCell, aRecursiveCells); + } + // Disable calculating formula for linked cells + let bRecursiveCell = aRecursiveCells.some(function(oCellIndex) { + return oCellIndex.cellId === nThisCellIndex && oCellIndex.wsName === sCellWsName; + }); + if ((nThisCellIndex !== oStartCellIndex.cellId || oStartCellIndex.wsName !== sCellWsName) && bRecursiveCell) { + oCell.setIsDirty(false); + return; + } + } else if (g_cCalcRecursion.getIterStep() > 1 && oCell.getValueWithoutFormat() && !oFormulaParsed.ca) { + oCell.setIsDirty(false); + return; + } + } else if (oFormulaParsed.ca === true) { + oCell.initStartCellForIterCalc(); + if (g_cCalcRecursion.getStartCellIndex()) { + aCycleCells.push(oCell); + if (oCell.getNumberValue() == null && (oCell.getValueText() == null || oCell.getValueText() === '#NUM!')) { + if (oCell.getType() !== CellValueType.Number) { + oCell.setTypeInternal(CellValueType.Number); + } + oCell.setValueNumberInternal(0); + } + oCell.setIsDirty(false); + return; + } + g_cCalcRecursion.setStartCellIndex(null); + } + oCell.setIsDirty(true); } }); + if (aCycleCells.length && g_cCalcRecursion.getShowCycleWarn()) { + const oApi = Asc.editor; + oApi.sendEvent("asc_onError", c_oAscError.ID.CircularReference, c_oAscError.Level.NoCritical); + g_cCalcRecursion.setShowCycleWarn(false); + } + if (!aCycleCells.length && !g_cCalcRecursion.getShowCycleWarn()) { + g_cCalcRecursion.setShowCycleWarn(true); + } AscCommonExcel.importRangeLinksState.startBuildImportRangeLinks = false; - this._foreachChanged(function(cell){ - cell && cell._checkDirty(); + this._foreachChanged(function (oCell) { + oCell && oCell._checkDirty(); + if (oCell.formulaParsed && AscCommonExcel.bIsSupportDynamicArrays && (oCell.formulaParsed.getDynamicRef() || oCell.formulaParsed.getArrayFormulaRef()) && oCell.formulaParsed.aca && oCell.formulaParsed.ca) { + t.addToVolatileArrays(oCell.formulaParsed); + } + // Enable calculating formula for next cell in chain + if (g_cCalcRecursion.getIsEnabledRecursion() && oCell.isFormula()) { + const nThisCellIndex = getCellIndex(oCell.nRow, oCell.nCol); + const sCellWsName = oCell.ws.getName().toLowerCase(); + const aRecursiveCells = g_cCalcRecursion.getRecursiveCells(oCell); + let bLinkedCell = aRecursiveCells.some(function (oCellIndex) { + return oCellIndex.cellId === nThisCellIndex && oCellIndex.wsName === sCellWsName; + }); + if (aRecursiveCells.length && bLinkedCell) { + oCell.changeLinkedCell(function (oCell) { + const nCellIndex = getCellIndex(oCell.nRow, oCell.nCol); + const sCellWsName = oCell.ws.getName().toLowerCase(); + let bLinkedCell = aRecursiveCells.some(function (oCellIndex) { + return oCellIndex.cellId === nCellIndex && oCellIndex.wsName === sCellWsName; + }); + if (bLinkedCell && !oCell.getIsDirty()) { + oCell.setIsDirty(true); + } + }, false); + g_cCalcRecursion.calcDiffBetweenIter(oCell); + } + } }); - this.changedCell = null; - this.changedRange = null; if (AscCommonExcel.importRangeLinksState.importRangeLinks) { //need update @@ -1923,7 +2084,6 @@ } else { AscCommonExcel.importRangeLinksState.startBuildImportRangeLinks = null; } - }, _foreachChanged: function(callback) { var sheetId, changedSheet, ws, bbox; @@ -2359,7 +2519,11 @@ this.nActive = 0; this.App = null; this.Core = null; - this.CustomProperties = null; + + AscFormat.ExecuteNoHistory(function () { + this.CustomProperties = new AscCommon.CCustomProperties(); + }, this, [], true); + this.theme = null; this.clrSchemeMap = null; @@ -2382,11 +2546,8 @@ this.bRedoChanges = false; this.aCollaborativeChangeElements = []; this.externalReferences = []; - this.calcPr = { - calcId: null, calcMode: null, fullCalcOnLoad: null, refMode: null, iterate: null, iterateCount: null, - iterateDelta: null, fullPrecision: null, calcCompleted: null, calcOnSave: null, concurrentCalc: null, - concurrentManualCount: null, forceFullCalc: null - }; + this.calcPr = new AscCommonExcel.CCalcPr(); + this.connections = null; this.wsHandlers = null; @@ -2416,6 +2577,8 @@ this.timelineCaches = []; this.TimelineStyles = null; + + this.metadata = null; } Workbook.prototype.init=function(tableCustomFunc, tableIds, sheetIds, bNoBuildDep, bSnapshot){ if(this.nActive < 0) @@ -2454,6 +2617,10 @@ this.timelineCaches.forEach(function(elem){ elem.initPostOpen(tableIds, sheetIds); }); + //external references + this.externalReferences.forEach(function(elem){ + elem && elem.initPostOpen && elem.initPostOpen(); + }); //show active if it hidden var wsActive = this.getActiveWs(); if (wsActive && wsActive.getHidden()) { @@ -2466,6 +2633,8 @@ if (bSnapshot) { this.snapshot = this._getSnapshot(); } + + g_cCalcRecursion.initCalcProperties(this.calcPr); }; Workbook.prototype.addImages = function (aImages, obj) { const oApi = Asc.editor; @@ -2479,7 +2648,7 @@ const oSmartArtId = oSmartArtGroup && oSmartArtGroup.Id; this.checkObjectsLock([oSmartArtId], function (bLock) { if (bLock) { - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); oController.resetSelection(); oPlaceholderTarget.applyImagePlaceholderCallback && oPlaceholderTarget.applyImagePlaceholderCallback(aImages, obj); oController.selectObject(oSmartArtGroup, 0); @@ -2523,6 +2692,7 @@ AscCommon.pptx_content_loader.Reader.ImageMapChecker = AscCommon.pptx_content_loader.ImageMapChecker; var context = xmlParserContext; context.loadDataLinks(); + context.ClearSmartArts(); } }; Workbook.prototype.preparePivotForSerialization=function(pivotCaches, isCopyPaste){ @@ -2652,8 +2822,8 @@ }; Workbook.prototype.createWorksheet=function(indexBefore, sName, sId){ this.dependencyFormulas.lockRecal(); - History.Create_NewPoint(); - History.TurnOff(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.TurnOff(); var wsActive = this.getActiveWs(); var oNewWorksheet = new Worksheet(this, this.aWorksheets.length, sId); if (this.checkValidSheetName(sName)) @@ -2668,12 +2838,13 @@ } this.aWorksheetsById[oNewWorksheet.getId()] = oNewWorksheet; this._updateWorksheetIndexes(wsActive); - History.TurnOn(); + AscCommon.History.TurnOn(); this._insertWorksheetFormula(oNewWorksheet.index); - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetAdd, null, null, new UndoRedoData_SheetAdd(indexBefore, oNewWorksheet.getName(), null, oNewWorksheet.getId())); - History.SetSheetUndo(wsActive.getId()); - History.SetSheetRedo(oNewWorksheet.getId()); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetAdd, null, null, new UndoRedoData_SheetAdd(indexBefore, oNewWorksheet.getName(), null, oNewWorksheet.getId())); + AscCommon.History.SetSheetUndo(wsActive.getId()); + AscCommon.History.SetSheetRedo(oNewWorksheet.getId()); this.dependencyFormulas.unlockRecal(); + g_cCalcRecursion.clearRecursionCells(); return oNewWorksheet; }; Workbook.prototype.copyWorksheet=function(index, insertBefore, sName, sId, bFromRedo, tableNames, opt_sheet, opt_base64){ @@ -2682,7 +2853,7 @@ if(index >= 0 && index < this.aWorksheets.length){ //buildRecalc вызываем чтобы пересчиталося cwf(может быть пустым если сделать сдвиг формул и скопировать лист) this.dependencyFormulas.buildDependency(); - History.TurnOff(); + AscCommon.History.TurnOff(); var wsActive = this.getActiveWs(); var wsFrom = opt_sheet ? opt_sheet : this.aWorksheets[index]; var newSheet = new Worksheet(this, -1, sId); @@ -2711,7 +2882,7 @@ newSheet.copyFromFormulas(renameParams); newSheet.initPostOpen(this.wsHandlers, {}, {}); - History.TurnOn(); + AscCommon.History.TurnOn(); this.dependencyFormulas.copyDefNameByWorksheet(wsFrom, newSheet, renameParams, opt_sheet); if (opt_sheet /*&& !bFromRedo*/) { @@ -2731,11 +2902,11 @@ if(!bFromRedo && opt_sheet) { opt_sheet_binary = AscCommonExcel.g_clipboardExcel.copyProcessor.getBinaryForCopy(wsFrom, null, null, true); } - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetAdd, null, null, new UndoRedoData_SheetAdd(insertBefore, newSheet.getName(), wsFrom.getId(), newSheet.getId(), tableNames, opt_sheet_binary));*/ + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetAdd, null, null, new UndoRedoData_SheetAdd(insertBefore, newSheet.getName(), wsFrom.getId(), newSheet.getId(), tableNames, opt_sheet_binary));*/ - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetAdd, null, null, new UndoRedoData_SheetAdd(insertBefore, newSheet.getName(), wsFrom.getId(), newSheet.getId(), tableNames, opt_base64)); - History.SetSheetUndo(wsActive.getId()); - History.SetSheetRedo(newSheet.getId()); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetAdd, null, null, new UndoRedoData_SheetAdd(insertBefore, newSheet.getName(), wsFrom.getId(), newSheet.getId(), tableNames, opt_base64)); + AscCommon.History.SetSheetUndo(wsActive.getId()); + AscCommon.History.SetSheetRedo(newSheet.getId()); newSheet.copyFromAfterInsert(wsFrom); if(!(bFromRedo === true)) { @@ -2818,7 +2989,7 @@ this._insertWorksheetFormula(indexTo); - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetMove, null, null, new UndoRedoData_FromTo(indexFrom, indexTo)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetMove, null, null, new UndoRedoData_FromTo(indexFrom, indexTo)); this.dependencyFormulas.unlockRecal(); if (!this.bUndoChanges && !this.bRedoChanges) { @@ -2889,10 +3060,10 @@ if (null != oVisibleWs) wsActive = oVisibleWs; } - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetRemove, null, null, new AscCommonExcel.UndoRedoData_SheetRemove(nIndex, removedSheetId, removedSheet)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_SheetRemove, null, null, new AscCommonExcel.UndoRedoData_SheetRemove(nIndex, removedSheetId, removedSheet)); if (null != oVisibleWs) { - History.SetSheetUndo(removedSheetId); - History.SetSheetRedo(wsActive.getId()); + AscCommon.History.SetSheetUndo(removedSheetId); + AscCommon.History.SetSheetRedo(wsActive.getId()); } if(null != outputParams) { @@ -2903,6 +3074,7 @@ this.dependencyFormulas.unlockRecal(); this.handlers && this.handlers.trigger("asc_onSheetDeleted", nIndex); this.handlers && this.handlers.trigger("changeDocument", AscCommonExcel.docChangedType.sheetRemove, nIndex); + g_cCalcRecursion.clearRecursionCells(); return wsActive.getIndex(); } return -1; @@ -3037,9 +3209,11 @@ AscCommonExcel.executeInR1C1Mode(false, function () { for (let i = 0; i < formulas.length; ++i) { let formula = formulas[i]; + let caTemp = formula.ca; formula.removeDependencies(); formula.setFormula(formula.getFormula()); formula.parse(); + formula.ca = caTemp; formula.buildDependencies(); } }); @@ -3053,11 +3227,11 @@ } this.dependencyFormulas.notifyChanged(formulas); this.dependencyFormulas.calcTree(); - History.Create_NewPoint(); - History.StartTransaction(); - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_Calculate, sheetId, + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_Calculate, sheetId, null, new AscCommonExcel.UndoRedoData_SingleProperty(type)); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Workbook.prototype.checkDefName = function (checkName, scope) { return this.dependencyFormulas.checkDefName(checkName, scope); @@ -3143,7 +3317,7 @@ // Пересчитываем позиции AscCommon.CollaborativeEditing.Refresh_DCChanges(); - var aActions = this.aCollaborativeActions.concat(History.GetSerializeArray()); + var aActions = this.aCollaborativeActions.concat(AscCommon.History.GetSerializeArray()); if(aActions.length > 0) { var oMemory = new AscCommon.CMemory(); @@ -3212,7 +3386,7 @@ return res; }; Workbook.prototype._forwardTransformation = function(wbSnapshot, changesMine, changesTheir) { - History.TurnOff(); + AscCommon.History.TurnOff(); //first mine changes to resolve conflict sheet names var res1 = this._forwardTransformationGetTransform(wbSnapshot, changesTheir, changesMine); var res2 = this._forwardTransformationGetTransform(wbSnapshot, changesMine, changesTheir); @@ -3235,7 +3409,7 @@ ws.setName(res1.renameSheet[oldName]); } } - History.TurnOn(); + AscCommon.History.TurnOn(); }; Workbook.prototype._forwardTransformationGetTransform = function(wbSnapshot, changesMaster, changesModify) { var res = {modify: [], renameSheet: {}}; @@ -3407,7 +3581,7 @@ Workbook.prototype.DeserializeHistory = function(aChanges, fCallback, oColor){ var oThis = this; //сохраняем те изменения, которые были до приема данных, потому что дальше undo/redo будет очищено - this.aCollaborativeActions = this.aCollaborativeActions.concat(History.GetSerializeArray()); + this.aCollaborativeActions = this.aCollaborativeActions.concat(AscCommon.History.GetSerializeArray()); if(aChanges.length > 0) { this.bCollaborativeChanges = true; @@ -3445,8 +3619,8 @@ oFormulaLocaleInfo.Parse = false; oFormulaLocaleInfo.DigitSep = false; AscFonts.IsCheckSymbols = true; - History.Clear(); - History.TurnOff(); + AscCommon.History.Clear(); + AscCommon.History.TurnOff(); var history = new AscCommon.CHistory(); history.init(this); history.Create_NewPoint(); @@ -3504,7 +3678,7 @@ oFormulaLocaleInfo.Parse = true; oFormulaLocaleInfo.DigitSep = true; history.UndoRedoEnd(null, oRedoObjectParam, false); - History.TurnOn(); + AscCommon.History.TurnOn(); oThis.bCollaborativeChanges = false; //make snapshot for faormulas oThis.snapshot = oThis._getSnapshot(); @@ -3533,12 +3707,12 @@ } } - History.Clear(); - History.Create_NewPoint(); - History.SetSelection(null); - History.SetSelectionRedo(null); + AscCommon.History.Clear(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.SetSelection(null); + AscCommon.History.SetSelectionRedo(null); oRedoObjectParam = new AscCommonExcel.RedoObjectParam(); - History.UndoRedoPrepare(oRedoObjectParam, false); + AscCommon.History.UndoRedoPrepare(oRedoObjectParam, false); } var stream = new AscCommon.FT_Stream2(data, data.length); @@ -3565,7 +3739,7 @@ item.Deserialize(stream); if ((null != item.oClass || (item.oData && typeof item.oData.sChangedObjectId === "string")) && null != item.nActionType){ AscCommonExcel.executeInR1C1Mode(false, function () { - History.RedoAdd(oRedoObjectParam, item.oClass, item.nActionType, item.nSheetId, item.oRange, item.oData); + AscCommon.History.RedoAdd(oRedoObjectParam, item.oClass, item.nActionType, item.nSheetId, item.oRange, item.oData); }); } @@ -3575,8 +3749,8 @@ } if(isFull){ - History.UndoRedoEnd(null, oRedoObjectParam, false); - History.Clear(); + AscCommon.History.UndoRedoEnd(null, oRedoObjectParam, false); + AscCommon.History.Clear(); oRedoObjectParam = null; } this.bCollaborativeChanges = false; @@ -3734,9 +3908,9 @@ { return; } - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); //не делаем Duplicate потому что предполагаем что схема не будет менять частями, а только обьектом целиком. - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeColorScheme, null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeColorScheme, null, null, new AscCommonExcel.UndoRedoData_ClrScheme(this.theme.themeElements.clrScheme, scheme)); this.theme.changeColorScheme(scheme); this.rebuildColors(); @@ -3748,9 +3922,9 @@ if(!scheme) { return; } - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); //не делаем Duplicate потому что предполагаем что схема не будет менять частями, а только обьектом целиком. - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeColorScheme, null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeColorScheme, null, null, new AscCommonExcel.UndoRedoData_ClrScheme(this.theme.themeElements.clrScheme, scheme)); this.theme.changeColorScheme(scheme); this.rebuildColors(); @@ -4093,8 +4267,8 @@ }; Workbook.prototype.deleteSlicersByTable = function (tableName, doDelDefName) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); for(var i = 0; i < this.aWorksheets.length; ++i) { var wsSlicers = this.aWorksheets[i].getSlicersByTableName(tableName); @@ -4105,7 +4279,7 @@ } } - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Workbook.prototype.deleteTimelinesByPivotTable = function (sheetId, pivotName) { @@ -4140,7 +4314,7 @@ for(let i = 0; i < this.timelineCaches.length; ++i) { if (this.timelineCaches[i].sourceName === sName) { if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_TimelineCacheDelete, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_TimelineCacheDelete, null, null, new UndoRedoData_FromTo(this.timelineCaches[i], null)); } this.timelineCaches.splice(i, 1); @@ -4177,7 +4351,7 @@ } }; Workbook.prototype.handleChartsOnWorksheetsRemove = function (aWorksheets) { - if(!History.CanAddChanges()) { + if(!AscCommon.History.CanAddChanges()) { return; } var aRefsToChange = []; @@ -4251,7 +4425,7 @@ this.changeSheetNameInRefs(oData.refs, sOldName, sNewName); }; Workbook.prototype.handleChartsOnMoveRange = function (oRangeFrom, oRangeTo, isInsertCol) { - if(!History.CanAddChanges()) { + if(!AscCommon.History.CanAddChanges()) { return; } var aRefsToResize = []; @@ -4489,7 +4663,7 @@ var updateSheet = this.getActiveWs(); var updateRange = new Asc.Range(0, 0, updateSheet.getColsCount(), updateSheet.getRowsCount()); - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_Date1904, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_Date1904, updateSheet.getId(), updateRange, new UndoRedoData_FromTo(oldVal, val)); } }; @@ -4526,8 +4700,8 @@ Workbook.prototype.addCellWatches = function (ws, range) { if (ws && range) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); //TODO protection! var maxCellWatchesCount = Asc.c_nAscMaxAddCellWatchesCount; @@ -4546,7 +4720,7 @@ } } - History.EndTransaction(); + AscCommon.History.EndTransaction(); /*if (!this.bUndoChanges && !this.bRedoChanges) { this.handlers.trigger("asc_onUpdateCellWatches"); @@ -4555,8 +4729,8 @@ }; Workbook.prototype.delCellWatches = function (aCellWatches, addToHistory, opt_remove_all) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); //TODO protection! var i; @@ -4571,7 +4745,7 @@ } } - History.EndTransaction(); + AscCommon.History.EndTransaction(); /*if (!this.bUndoChanges && !this.bRedoChanges) { this.handlers.trigger("asc_onUpdateCellWatches"); @@ -4734,8 +4908,8 @@ //пока предполагаю, что здесь будет массив asc_CExternalReference if (arr) { var isChanged = false; - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); for (var i = 0; i < arr.length; i++) { var eRIndex = this.getExternalLinkIndexByName(arr[i].externalReference.Id); if (eRIndex != null) { @@ -4772,7 +4946,7 @@ } } } - History.EndTransaction(); + AscCommon.History.EndTransaction(); if (isChanged) { this.handlers && this.handlers.trigger("asc_onUpdateExternalReferenceList"); @@ -4786,7 +4960,7 @@ //this.reIndexExternalReferencesLinks(index - 1); this._removeExternalReference(index - 1); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeExternalReference, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeExternalReference, null, null, new UndoRedoData_FromTo(from, null)); } } @@ -4810,7 +4984,7 @@ if (index != null) { var from = this.externalReferences[index - 1].clone(); this.externalReferences[index - 1] = to; - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeExternalReference, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeExternalReference, null, null, new UndoRedoData_FromTo(from, to)); } }; @@ -4819,7 +4993,7 @@ if (arr && arr.length) { for (var i = 0; i < arr.length; i++) { this.externalReferences.push(arr[i]); - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeExternalReference, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeExternalReference, null, null, new UndoRedoData_FromTo(null, arr[i])); } this.handlers && this.handlers.trigger("asc_onUpdateExternalReferenceList"); @@ -4852,25 +5026,28 @@ Workbook.prototype.removeExternalReferenceBySheet = function (sheetId) { //пока предполагаю, что здесь будет массив asc_CExternalReference - var index = this.getExternalLinkIndexBySheetId(sheetId); + let index = this.getExternalLinkIndexBySheetId(sheetId); if (index !== null) { - var eR = this.externalReferences[index - 1]; - if (eR.SheetNames.length === 1) { - //удаляем ссылку - this.removeExternalReference(index, true); - } else { - var to = eR.clone(); - eR.removeSheetById(sheetId); - this.changeExternalReference(index, eR); - } + let eR = this.externalReferences[index - 1]; + // If there are no more listeners for the external document, delete the external link + this.removeExternalReference(index, true); + + // if (eR.SheetNames.length === 1) { + // //удаляем ссылку + // this.removeExternalReference(index, true); + // } else { + // let to = eR.clone(); + // eR.removeSheetById(sheetId); + // this.changeExternalReference(index, eR); + // } this.handlers && this.handlers.trigger("asc_onUpdateExternalReferenceList"); } }; - Workbook.prototype.getExternalReferenceById = function (id) { + Workbook.prototype.getExternalReferenceById = function (id, returnIndex) { for (var i = 0; i < this.externalReferences.length; i++) { if (this.externalReferences[i].Id === id) { - return this.externalReferences[i]; + return returnIndex ? i : this.externalReferences[i]; } } return null; @@ -5246,7 +5423,7 @@ this.bExcludeHiddenRows = false; this.bIgnoreWriteFormulas = false; this.mergeManager = new RangeDataManager(function(data, from, to){ - if(History.Is_On() && (null != from || null != to)) + if(AscCommon.History.Is_On() && (null != from || null != to)) { if(null != from) from = from.clone(); @@ -5255,7 +5432,7 @@ var oHistoryRange = from; if(null == oHistoryRange) oHistoryRange = to; - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeMerge, oThis.getId(), oHistoryRange, new UndoRedoData_FromTo(new UndoRedoData_BBox(from), new UndoRedoData_BBox(to))); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeMerge, oThis.getId(), oHistoryRange, new UndoRedoData_FromTo(new UndoRedoData_BBox(from), new UndoRedoData_BBox(to))); } //расширяем границы if(null != to){ @@ -5269,7 +5446,7 @@ }); this.mergeManager.worksheet = this; this.hyperlinkManager = new RangeDataManager(function(data, from, to, oChangeParam){ - if(History.Is_On() && (null != from || null != to)) + if(AscCommon.History.Is_On() && (null != from || null != to)) { if(null != from) from = from.clone(); @@ -5281,7 +5458,7 @@ var oHistoryData = null; if(null == from || null == to) oHistoryData = data.clone(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeHyperlink, oThis.getId(), oHistoryRange, new AscCommonExcel.UndoRedoData_FromToHyperlink(from, to, oHistoryData)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeHyperlink, oThis.getId(), oHistoryRange, new AscCommonExcel.UndoRedoData_FromToHyperlink(from, to, oHistoryData)); } if (null != to) data.Ref = oThis.getRange3(to.r1, to.c1, to.r2, to.c2); @@ -5359,6 +5536,7 @@ this.bFillHandleRightClick = false; this.activeFillType = null; this.timelines = []; + this.changedArrays = null; } Worksheet.prototype.getCompiledStyle = function (row, col, opt_cell, opt_styleComponents) { @@ -5631,7 +5809,7 @@ } } - if(renameSheetMap && History.Is_On()) { + if(renameSheetMap && AscCommon.History.Is_On()) { //пишем в историю для того, чтобы для случая redo не делать отложенное действия для всех листов var _oldF = parsed.Formula; parsed.parse(null, null, null, null, renameSheetMap); @@ -5641,7 +5819,7 @@ var DataNew = cell.getValueData(); DataNew.formula = _newF; if (false == DataOld.isEqual(DataNew)) { - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, cell.ws.getId(), new Asc.Range(cell.nCol, cell.nRow, cell.nCol, cell.nRow), new UndoRedoData_CellSimpleData(cell.nRow, cell.nCol, DataOld, DataNew)); } @@ -6225,12 +6403,12 @@ if(name.length <= g_nSheetNameMaxLength) { var lastName = this.sName; - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); var prepared = this.workbook.dependencyFormulas.prepareChangeSheet(this.getId(), {rename: {from: lastName, to: name}}); this.sName = name; this.workbook.dependencyFormulas.changeSheet(prepared); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_Rename, this.getId(), null, new UndoRedoData_FromTo(lastName, name)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_Rename, this.getId(), null, new UndoRedoData_FromTo(lastName, name)); this.workbook.dependencyFormulas.calcTree(); if (!this.workbook.bUndoChanges && !this.workbook.bRedoChanges) { @@ -6250,8 +6428,8 @@ if (!this.sheetPr) this.sheetPr = new AscCommonExcel.asc_CSheetPr(); - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetTabColor, this.getId(), null, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetTabColor, this.getId(), null, new UndoRedoData_FromTo(this.sheetPr.TabColor ? this.sheetPr.TabColor.clone() : null, color ? color.clone() : null)); this.sheetPr.TabColor = color; @@ -6282,25 +6460,25 @@ wb.handlers && wb.handlers.trigger("undoRedoHideSheet", nNewIndex); } } - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_Hide, this.getId(), null, new UndoRedoData_FromTo(bOldHidden, hidden)); + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_Hide, this.getId(), null, new UndoRedoData_FromTo(bOldHidden, hidden)); if (null != oVisibleWs) { - History.SetSheetUndo(wsActive.getId()); - History.SetSheetRedo(oVisibleWs.getId()); + AscCommon.History.SetSheetUndo(wsActive.getId()); + AscCommon.History.SetSheetRedo(oVisibleWs.getId()); } } }; Worksheet.prototype.getSheetView = function () { return this.sheetViews[0]; }; - Worksheet.prototype.getSheetViewSettings = function () { - return this.sheetViews[0].clone(); + Worksheet.prototype.getSheetViewSettings = function (bNotClone) { + return bNotClone ? this.sheetViews[0] : this.sheetViews[0].clone(); }; Worksheet.prototype.setDisplayGridlines = function (value) { var view = this.sheetViews[0]; if (value !== view.showGridLines) { - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetDisplayGridlines, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetDisplayGridlines, this.getId(), null, new UndoRedoData_FromTo(view.showGridLines, value)); view.showGridLines = value; @@ -6313,8 +6491,8 @@ Worksheet.prototype.setDisplayHeadings = function (value) { var view = this.sheetViews[0]; if (value !== view.showRowColHeaders) { - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetDisplayHeadings, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetDisplayHeadings, this.getId(), null, new UndoRedoData_FromTo(view.showRowColHeaders, value)); view.showRowColHeaders = value; @@ -6327,8 +6505,8 @@ Worksheet.prototype.setShowZeros = function (value) { var view = this.sheetViews[0]; if (value !== view.showZeros) { - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetShowZeros, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetShowZeros, this.getId(), null, new UndoRedoData_FromTo(view.showZeros, value)); view.showZeros = value; @@ -6342,8 +6520,8 @@ Worksheet.prototype.setShowFormulas = function (value) { var view = this.sheetViews[0]; if (value !== view.showFormulas) { - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetShowFormulas, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetShowFormulas, this.getId(), new Asc.Range(0, 0, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromTo(view.showFormulas, value)); view.showFormulas = value; @@ -6353,6 +6531,20 @@ } } }; + Worksheet.prototype.setRightToLeft = function (value) { + var view = this.sheetViews[0]; + if (value !== view.rightToLeft) { + /*AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetShowFormulas, + this.getId(), new Asc.Range(0, 0, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromTo(view.showFormulas, value));*/ + view.rightToLeft = value; + + this.workbook.handlers.trigger("changeSheetViewSettings", this.getId(), AscCH.historyitem_Worksheet_SetRightToLeft); + if (!this.workbook.bCollaborativeChanges) { + this.workbook.handlers.trigger("asc_onUpdateSheetViewSettings"); + } + } + }; Worksheet.prototype.getShowFormulas = function () { var view = this.sheetViews[0]; return view && view.showFormulas; @@ -6472,7 +6664,7 @@ Worksheet.prototype._removeRows=function(start, stop){ var t = this; this.workbook.dependencyFormulas.lockRecal(); - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); //start, stop 0 based var nDif = -(stop - start + 1); var oActualRange = new Asc.Range(0, start, gc_nMaxCol0, stop); @@ -6485,12 +6677,12 @@ this.updateUserProtectedRangesOffset(oActualRange, offset); } if (false == this.workbook.bUndoChanges && (false == this.workbook.bRedoChanges || this.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; this.updateSortStateOffset(oActualRange, offset); this.updateSparklineGroupOffset(oActualRange, offset); this.updateConditionalFormattingOffset(oActualRange, offset); this.updateProtectedRangeOffset(oActualRange, offset); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } var collapsedInfo = null, lastRowIndex; @@ -6499,7 +6691,7 @@ var oOldProps = row.getHeightProp(); lastRowIndex = row.index; if (false === oOldProps.isEqual(oDefRowPr)) - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowProp, t.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(row.getIndex(), true, oOldProps, oDefRowPr)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowProp, t.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(row.getIndex(), true, oOldProps, oDefRowPr)); row.setStyle(null); if(!t.workbook.bRedoChanges) { @@ -6534,12 +6726,13 @@ }); //notifyChanged after move cells to get new locations(for intersect ranges) this.workbook.dependencyFormulas.notifyChanged(renameRes && renameRes.changed); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RemoveRows, this.getId(), new Asc.Range(0, start, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromToRowCol(true, start, stop)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RemoveRows, this.getId(), new Asc.Range(0, start, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromToRowCol(true, start, stop)); this.autoFilters.redrawStylesTables(redrawTablesArr); if (this.workbook.handlers) { - this.workbook.handlers.trigger("changeDocument", AscCommonExcel.docChangedType.sheetContent, this, new Asc.Range(0, start, gc_nMaxCol0, gc_nMaxRow0), this.getId()); + this.workbook.handlers.trigger("changeDocument", AscCommonExcel.docChangedType.sheetContent, this, new Asc.Range(0, start, gc_nMaxCol0, stop), this.getId()); + this.workbook.handlers.trigger("changeDocument", AscCommonExcel.docChangedType.removeRows, this, new Asc.Range(0, start, gc_nMaxCol0, stop), this.getId()); } this.workbook.dependencyFormulas.unlockRecal(); @@ -6576,7 +6769,7 @@ var t = this; this.workbook.dependencyFormulas.lockRecal(); var oActualRange = new Asc.Range(0, index, gc_nMaxCol0, index + count - 1); - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); var offset = new AscCommon.CellBase(count, 0); //renameDependencyNodes before move cells to store current location in history var renameRes = this.renameDependencyNodes(offset, oActualRange); @@ -6586,12 +6779,12 @@ this.updateUserProtectedRangesOffset(oActualRange, offset); } if (false == this.workbook.bUndoChanges && (false == this.workbook.bRedoChanges || this.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; this.updateSortStateOffset(oActualRange, offset); this.updateSparklineGroupOffset(oActualRange, offset); this.updateConditionalFormattingOffset(oActualRange, offset); this.updateProtectedRangeOffset(oActualRange, offset); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } this._updateFormulasParents(index, 0, gc_nMaxRow0, gc_nMaxCol0, oActualRange, offset, renameRes.shiftedShared); @@ -6626,7 +6819,7 @@ } //notifyChanged after move cells to get new locations(for intersect ranges) this.workbook.dependencyFormulas.notifyChanged(renameRes.changed); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_AddRows, this.getId(), new Asc.Range(0, index, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromToRowCol(true, index, index + count - 1)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_AddRows, this.getId(), new Asc.Range(0, index, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromToRowCol(true, index, index + count - 1)); this.autoFilters.redrawStylesTables(redrawTablesArr); if (this.workbook.handlers) { @@ -6654,7 +6847,7 @@ Worksheet.prototype._removeCols=function(start, stop){ var t = this; this.workbook.dependencyFormulas.lockRecal(); - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); //start, stop 0 based var nDif = -(stop - start + 1), i, j, length; var oActualRange = new Asc.Range(start, 0, stop, gc_nMaxRow0); @@ -6667,12 +6860,12 @@ this.updateUserProtectedRangesOffset(oActualRange, offset); } if (false == this.workbook.bUndoChanges && (false == this.workbook.bRedoChanges || this.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; this.updateSortStateOffset(oActualRange, offset); this.updateSparklineGroupOffset(oActualRange, offset); this.updateConditionalFormattingOffset(oActualRange, offset); this.updateProtectedRangeOffset(oActualRange, offset); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } var collapsedInfo = null, lastRowIndex; @@ -6681,7 +6874,7 @@ var nIndex = col.getIndex(); var oOldProps = col.getWidthProp(); if(false === oOldProps.isEqual(oDefColPr)) - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, t.getId(), new Asc.Range(nIndex, 0, nIndex, gc_nMaxRow0), new UndoRedoData_IndexSimpleProp(nIndex, false, oOldProps, oDefColPr)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, t.getId(), new Asc.Range(nIndex, 0, nIndex, gc_nMaxRow0), new UndoRedoData_IndexSimpleProp(nIndex, false, oOldProps, oDefColPr)); col.setStyle(null); lastRowIndex = col.index; @@ -6717,7 +6910,7 @@ } //notifyChanged after move cells to get new locations(for intersect ranges) this.workbook.dependencyFormulas.notifyChanged(renameRes.changed); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RemoveCols, this.getId(), new Asc.Range(start, 0, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromToRowCol(false, start, stop)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RemoveCols, this.getId(), new Asc.Range(start, 0, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromToRowCol(false, start, stop)); this.autoFilters.redrawStylesTables(redrawTablesArr); if (this.workbook.handlers) { @@ -6735,7 +6928,7 @@ Worksheet.prototype._insertColsBefore=function(index, count){ this.workbook.dependencyFormulas.lockRecal(); var oActualRange = new Asc.Range(index, 0, index + count - 1, gc_nMaxRow0); - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); var offset = new AscCommon.CellBase(0, count); //renameDependencyNodes before move cells to store current location in history var renameRes = this.renameDependencyNodes(offset, oActualRange); @@ -6745,12 +6938,12 @@ this.updateUserProtectedRangesOffset(oActualRange, offset); } if (false == this.workbook.bUndoChanges && (false == this.workbook.bRedoChanges || this.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; this.updateSortStateOffset(oActualRange, offset); this.updateSparklineGroupOffset(oActualRange, offset); this.updateConditionalFormattingOffset(oActualRange, offset); this.updateProtectedRangeOffset(oActualRange, offset); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } this._updateFormulasParents(0, index, gc_nMaxRow0, gc_nMaxCol0, oActualRange, offset, renameRes.shiftedShared); @@ -6782,7 +6975,7 @@ if (null == oPrevCol && null != this.oAllCol) oPrevCol = this.oAllCol; if (null != oPrevCol) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; for (var i = index; i < index + count; ++i) { var oNewCol = oPrevCol.clone(); oNewCol.setHidden(null); @@ -6790,7 +6983,7 @@ oNewCol.index = i; this.aCols[i] = oNewCol; } - History.LocalChange = false; + AscCommon.History.LocalChange = false; } var prevCellsByCol = index > 0 ? this.cellsByCol[index - 1] : null; if (prevCellsByCol) { @@ -6807,7 +7000,7 @@ //notifyChanged after move cells to get new locations(for intersect ranges) this.workbook.dependencyFormulas.notifyChanged(renameRes.changed); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_AddCols, this.getId(), new Asc.Range(index, 0, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromToRowCol(false, index, index + count - 1)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_AddCols, this.getId(), new Asc.Range(index, 0, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromToRowCol(false, index, index + count - 1)); this.autoFilters.redrawStylesTables(redrawTablesArr); if (this.workbook.handlers) { @@ -6864,14 +7057,14 @@ return; if(null == stop) stop = start; - History.Create_NewPoint(); - /*var oSelection = History.GetSelection(); + AscCommon.History.Create_NewPoint(); + /*var oSelection = AscCommon.History.GetSelection(); if(null != oSelection) { oSelection = oSelection.clone(); oSelection.assign(start, 0, stop, gc_nMaxRow0); - History.SetSelection(oSelection); - History.SetSelectionRedo(oSelection); + AscCommon.History.SetSelection(oSelection); + AscCommon.History.SetSelectionRedo(oSelection); }*/ var bNotAddCollapsed = true == this.workbook.bUndoChanges || true == this.workbook.bRedoChanges || this.bExcludeCollapsed; @@ -6895,7 +7088,7 @@ oThis.initColumn(col); var oNewProps = col.getWidthProp(); if(false == oOldProps.isEqual(oNewProps)) - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, oThis.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, oThis.getId(), col._getUpdateRange(), new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps)); } @@ -6941,7 +7134,7 @@ return; if(null == stop) stop = start; - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); var oThis = this, outlineLevel; var bNotAddCollapsed = true == this.workbook.bUndoChanges || true == this.workbook.bRedoChanges || this.bExcludeCollapsed; var _summaryRight = this.sheetPr ? this.sheetPr.SummaryRight : true; @@ -6975,7 +7168,7 @@ } var oNewProps = col.getWidthProp(); if(false == oOldProps.isEqual(oNewProps)) - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, oThis.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, oThis.getId(), col._getUpdateRange(), new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps)); } @@ -7030,7 +7223,7 @@ var oNewProps = col.getCollapsed(); if(oOldProps !== oNewProps) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_CollapsedCol, oThis.getId(), col._getUpdateRange(), new UndoRedoData_IndexSimpleProp(col.index, true, oOldProps, oNewProps)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_CollapsedCol, oThis.getId(), col._getUpdateRange(), new UndoRedoData_IndexSimpleProp(col.index, true, oOldProps, oNewProps)); } }; @@ -7045,8 +7238,8 @@ this.sheetPr = new AscCommonExcel.asc_CSheetPr(); } - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetSummaryRight, this.getId(), null, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetSummaryRight, this.getId(), null, new UndoRedoData_FromTo(this.sheetPr.SummaryRight, val)); this.sheetPr.SummaryRight = val; @@ -7056,8 +7249,8 @@ this.sheetPr = new AscCommonExcel.asc_CSheetPr(); } - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetSummaryBelow, this.getId(), null, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetSummaryBelow, this.getId(), null, new UndoRedoData_FromTo(this.sheetPr.SummaryBelow, val)); this.sheetPr.SummaryBelow = val; @@ -7068,8 +7261,8 @@ this.sheetPr = new AscCommonExcel.asc_CSheetPr(); } - History.Create_NewPoint(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetFitToPage, this.getId(), null, + AscCommon.History.Create_NewPoint(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetFitToPage, this.getId(), null, new UndoRedoData_FromTo(this.sheetPr.FitToPage, val)); this.sheetPr.FitToPage = val; @@ -7110,7 +7303,7 @@ return; if(null == stop) stop = start; - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); var oThis = this; var fProcessCol = function(col){ var oOldProps = col.getWidthProp(); @@ -7125,7 +7318,7 @@ oThis.initColumn(col); var oNewProps = col.getWidthProp(); if(false == oOldProps.isEqual(oNewProps)) - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, oThis.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, oThis.getId(), col._getUpdateRange(), new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps)); }; @@ -7192,15 +7385,15 @@ return; if(null == stop) stop = start; - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); var oThis = this, i; - /*var oSelection = History.GetSelection(); + /*var oSelection = AscCommon.History.GetSelection(); if(null != oSelection) { oSelection = oSelection.clone(); oSelection.assign(0, start, gc_nMaxCol0, stop); - History.SetSelection(oSelection); - History.SetSelectionRedo(oSelection); + AscCommon.History.SetSelection(oSelection); + AscCommon.History.SetSelectionRedo(oSelection); }*/ var prevRow; var bNotAddCollapsed = true == this.workbook.bUndoChanges || true == this.workbook.bRedoChanges || this.bExcludeCollapsed; @@ -7224,7 +7417,7 @@ row.setHidden(false); var oNewProps = row.getHeightProp(); if(false === oOldProps.isEqual(oNewProps)) - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowProp, oThis.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(row.index, true, oOldProps, oNewProps)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowProp, oThis.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(row.index, true, oOldProps, oNewProps)); } }; if(0 == start && gc_nMaxRow0 == stop) @@ -7300,7 +7493,7 @@ if(startIndex !== null) { updateRange = new Asc.Range(0, startIndex, gc_nMaxCol0, endIndex); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowHide, oThis.getId(), updateRange, new UndoRedoData_FromToRowCol(bHidden, startIndex, endIndex)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowHide, oThis.getId(), updateRange, new UndoRedoData_FromToRowCol(bHidden, startIndex, endIndex)); } startIndex = row.index; @@ -7337,7 +7530,7 @@ if(startIndex !== null)//заносим последние строки { updateRange = new Asc.Range(0, startIndex, gc_nMaxCol0, endIndex); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowHide, oThis.getId(),updateRange, new UndoRedoData_FromToRowCol(bHidden, startIndex, endIndex)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowHide, oThis.getId(),updateRange, new UndoRedoData_FromToRowCol(bHidden, startIndex, endIndex)); } } }; @@ -7347,14 +7540,14 @@ var rowsArr = this.autoFilters.splitRangeByFilters(start, stop); if (rowsArr) { var j; - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); if (rowsArr[0] && rowsArr[0].length) { - var oldLocalChange = History.LocalChange; - History.LocalChange = true; + var oldLocalChange = AscCommon.History.LocalChange; + AscCommon.History.LocalChange = true; for (j = 0; j < rowsArr[0].length; j++) { doHide(rowsArr[0][j].start, rowsArr[0][j].stop, true) } - History.LocalChange = oldLocalChange; + AscCommon.History.LocalChange = oldLocalChange; } if (rowsArr[1] && rowsArr[1].length) { for (j = 0; j < rowsArr[1].length; j++) { @@ -7363,7 +7556,7 @@ } } } else { - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); doHide(start, stop) } @@ -7380,7 +7573,7 @@ var oNewProps = row.getCollapsed(); if(oOldProps !== oNewProps) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_CollapsedRow, oThis.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(row.index, true, oOldProps, oNewProps)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_CollapsedRow, oThis.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(row.index, true, oOldProps, oNewProps)); } if(bSave) { row.saveContent(true); @@ -7428,7 +7621,7 @@ return; if(null == stop) stop = start; - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); var oThis = this, i; var isDefaultProp = (true == bBestFit && oDefaultMetrics.RowHeight == height); var fProcessRow = function(row){ @@ -7440,7 +7633,7 @@ row.setHeight(height); var oNewProps = row.getHeightProp(); if(false == oOldProps.isEqual(oNewProps)) - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowProp, oThis.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(row.index, true, oOldProps, oNewProps)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowProp, oThis.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(row.index, true, oOldProps, oNewProps)); } }; if(0 == start && gc_nMaxRow0 == stop) { @@ -7506,9 +7699,10 @@ it.release(); }; Worksheet.prototype.getCellForValidation=function(row, col, array, formula, callback, isCopyPaste, byRef){ - var cell = new Cell(this); - cell.setRowCol(row, col); - //todo cell.xf + let cell; + this._getCell(row, col, function (_cell) { + cell = _cell.clone(); + }); cell.setValueForValidation(array, formula, callback, isCopyPaste, byRef); return cell; }; @@ -7522,8 +7716,11 @@ var oUndoRedoData_CellData = new AscCommonExcel.UndoRedoData_CellData(cell.getValueData(), null); if (null != cell.xfs) oUndoRedoData_CellData.style = cell.xfs.clone(); + if (cell.formulaParsed) { + cell.checkRemoveExternalReferences(null, cell.formulaParsed); + } cell.setFormulaInternal(null); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RemoveCell, sheetId, new Asc.Range(nCol, nRow, nCol, nRow), new UndoRedoData_CellSimpleData(nRow, nCol, oUndoRedoData_CellData, null)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RemoveCell, sheetId, new Asc.Range(nCol, nRow, nCol, nRow), new UndoRedoData_CellSimpleData(nRow, nCol, oUndoRedoData_CellData, null)); } t.workbook.dependencyFormulas.addToChangedCell(cell); @@ -7784,7 +7981,7 @@ } var i, elem, bbox, data, wsFrom = this; var intersection = oBBoxFrom.intersectionSimple(oBBoxTo); - History.LocalChange = true; + AscCommon.History.LocalChange = true; //merged var merged = wsFrom.mergeManager.get(oBBoxFrom).inner; var mergedToRemove; @@ -7806,7 +8003,7 @@ wsFrom.hyperlinkManager.removeElement(hyperlinks[i]); } } - History.LocalChange = false; + AscCommon.History.LocalChange = false; res.merged = merged; res.hyperlinks = hyperlinks; return res; @@ -7814,7 +8011,7 @@ Worksheet.prototype._moveMergedAndHyperlinks = function(prepared, oBBoxFrom, oBBoxTo, copyRange, wsTo, offset) { var i, elem, bbox, data; var intersection = oBBoxFrom.intersectionSimple(oBBoxTo); - History.LocalChange = true; + AscCommon.History.LocalChange = true; for (i = 0; i < prepared.merged.length; i++) { elem = prepared.merged[i]; bbox = copyRange ? elem.bbox.clone() : elem.bbox; @@ -7837,7 +8034,7 @@ wsTo.hyperlinkManager.add(bbox, data); } } - History.LocalChange = false; + AscCommon.History.LocalChange = false; }; Worksheet.prototype._moveCleanRanges = function(oBBoxFrom, oBBoxTo, copyRange, wsTo) { //удаляем to через историю, для undo @@ -7907,13 +8104,13 @@ } } // ToDo возможно нужно уменьшить диапазон обновления - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_MoveRange, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_MoveRange, this.getId(), new Asc.Range(0, 0, gc_nMaxCol0, gc_nMaxRow0), new UndoRedoData_FromTo(new UndoRedoData_BBox(oBBoxFrom), new UndoRedoData_BBox(oBBoxTo), copyRange, wsTo.getId())); if(moveToOtherSheet) { //сделано для того, чтобы происходил пересчет/обновление данных на другом листе //таким образом заносим диапазон обновления в UpdateRigions - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_Null, wsTo.getId(), oBBoxTo, new UndoRedoData_FromTo(null, null)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_Null, wsTo.getId(), oBBoxTo, new UndoRedoData_FromTo(null, null)); } var shiftedArrayFormula = {}; @@ -7931,7 +8128,7 @@ var preMoveCell = {nRow: cell.nRow - offset.row, nCol: cell.nCol - offset.col}; var isFirstCellArray = formula.checkFirstCellArray(preMoveCell) && !shiftedArrayFormula[formula.getListenerId()]; if (copyRange) { - History.TurnOff(); + AscCommon.History.TurnOff(); //***array-formula*** if(!arrayFormula || (arrayFormula && isFirstCellArray)) { newFormula = oThis._moveCellsFormula(cell, formula, cellWithFormula, copyRange, oBBoxFrom, wsTo); @@ -7952,7 +8149,7 @@ } else if(arrayFormula && oldNewArrayFormulaMap[formula.getListenerId()]) { cell.setFormulaInternal(oldNewArrayFormulaMap[formula.getListenerId()], !isClearFromArea); } - History.TurnOn(); + AscCommon.History.TurnOn(); } else { //***array-formula*** //TODO возможно стоит это делать в dependencyFormulas.move @@ -8015,8 +8212,8 @@ if (oBBoxFrom.isEqual(oBBoxTo) && this === wsTo) return; - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); this.workbook.dependencyFormulas.lockRecal(); var offset = new AscCommon.CellBase(oBBoxTo.r1 - oBBoxFrom.r1, oBBoxTo.c1 - oBBoxFrom.c1); @@ -8042,7 +8239,7 @@ } this.workbook.dependencyFormulas.unlockRecal(); - History.EndTransaction(); + AscCommon.History.EndTransaction(); return true; }; Worksheet.prototype._shiftCellsLeft=function(oBBox){ @@ -8057,12 +8254,12 @@ var renameRes = this.renameDependencyNodes(offset, oBBox); var redrawTablesArr = this.autoFilters.insertColumn( oBBox, dif ); if (false == this.workbook.bUndoChanges && (false == this.workbook.bRedoChanges || this.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; this.updateSortStateOffset(oBBox, offset); this.updateSparklineGroupOffset(oBBox, offset); this.updateConditionalFormattingOffset(oBBox, offset); this.updateProtectedRangeOffset(oBBox, offset); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } if (false == this.workbook.bUndoChanges && false == this.workbook.bRedoChanges) { this.updatePivotOffset(oBBox, offset); @@ -8084,7 +8281,7 @@ } //notifyChanged after move cells to get new locations(for intersect ranges) this.workbook.dependencyFormulas.notifyChanged(renameRes.changed); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsLeft, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsLeft, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); this.autoFilters.redrawStylesTables(redrawTablesArr); if (this.workbook.handlers) { @@ -8103,12 +8300,12 @@ var renameRes = this.renameDependencyNodes(offset, oBBox); var redrawTablesArr = this.autoFilters.insertRows("delCell", oBBox, c_oAscDeleteOptions.DeleteCellsAndShiftTop); if (false == this.workbook.bUndoChanges && (false == this.workbook.bRedoChanges || this.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; this.updateSortStateOffset(oBBox, offset); this.updateSparklineGroupOffset(oBBox, offset); this.updateConditionalFormattingOffset(oBBox, offset); this.updateProtectedRangeOffset(oBBox, offset); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } if (false == this.workbook.bUndoChanges && false == this.workbook.bRedoChanges) { this.updatePivotOffset(oBBox, offset); @@ -8127,7 +8324,7 @@ } //notifyChanged after move cells to get new locations(for intersect ranges) this.workbook.dependencyFormulas.notifyChanged(renameRes.changed); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsTop, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsTop, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); this.autoFilters.redrawStylesTables(redrawTablesArr); if (this.workbook.handlers) { @@ -8145,12 +8342,12 @@ var renameRes = this.renameDependencyNodes(offset, oBBox); var redrawTablesArr = this.autoFilters.insertColumn( oBBox, dif, displayNameFormatTable ); if (false == this.workbook.bUndoChanges && (false == this.workbook.bRedoChanges || this.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; this.updateSortStateOffset(oBBox, offset); this.updateSparklineGroupOffset(oBBox, offset); this.updateConditionalFormattingOffset(oBBox, offset); this.updateProtectedRangeOffset(oBBox, offset); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } if (false == this.workbook.bUndoChanges && false == this.workbook.bRedoChanges) { this.updatePivotOffset(oBBox, offset); @@ -8191,7 +8388,7 @@ } //notifyChanged after move cells to get new locations(for intersect ranges) this.workbook.dependencyFormulas.notifyChanged(renameRes.changed); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsRight, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsRight, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); this.autoFilters.redrawStylesTables(redrawTablesArr); @@ -8220,12 +8417,12 @@ this._updateFormulasParents(oActualRange.r1, oActualRange.c1, oActualRange.r2, oActualRange.c2, oBBox, offset, renameRes.shiftedShared); if (false == this.workbook.bUndoChanges && (false == this.workbook.bRedoChanges || this.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; this.updateSortStateOffset(oBBox, offset); this.updateSparklineGroupOffset(oBBox, offset); this.updateConditionalFormattingOffset(oBBox, offset); this.updateProtectedRangeOffset(oBBox, offset); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } var borders; @@ -8258,7 +8455,7 @@ } //notifyChanged after move cells to get new locations(for intersect ranges) this.workbook.dependencyFormulas.notifyChanged(renameRes.changed); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsBottom, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsBottom, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); //пока перенес добавление только последней строки(в данном случае порядок занесения в истрию должен быть именно в таком порядке) //TODO возможно стоит полностью перенести сюда обработку для ф/т и а/ф @@ -8522,7 +8719,7 @@ Worksheet.prototype.removeSparklines = function (range) { for (var i = this.aSparklineGroups.length - 1; i > -1; --i) { if (this.aSparklineGroups[i].remove(range)) { - History.Add(new AscDFH.CChangesDrawingsSparklinesRemove(this.aSparklineGroups[i])); + AscCommon.History.Add(new AscDFH.CChangesDrawingsSparklinesRemove(this.aSparklineGroups[i])); this.aSparklineGroups.splice(i, 1); } } @@ -8530,14 +8727,14 @@ Worksheet.prototype.removeSparklineGroups = function (range) { for (var i = this.aSparklineGroups.length - 1; i > -1; --i) { if (-1 !== this.aSparklineGroups[i].intersectionSimple(range)) { - History.Add(new AscDFH.CChangesDrawingsSparklinesRemove(this.aSparklineGroups[i])); + AscCommon.History.Add(new AscDFH.CChangesDrawingsSparklinesRemove(this.aSparklineGroups[i])); this.aSparklineGroups.splice(i, 1); } } }; Worksheet.prototype.addSparklineGroups = function (sparklineGroups) { if (sparklineGroups) { - History.Add(new AscDFH.CChangesDrawingsSparklinesRemove(sparklineGroups, true)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsSparklinesRemove(sparklineGroups, true)); this.insertSparklineGroup(sparklineGroups); } }; @@ -10022,7 +10219,7 @@ this.clearPivotTableCell(pivotTable); } this.clearPivotTableStyle(pivotTable); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_PivotDelete, this.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_PivotDelete, this.getId(), null, new AscCommonExcel.UndoRedoData_PivotTableRedo(pivotTable.Get_Id(), pivotTable, null)); this.pivotTables.splice(index, 1); }; @@ -10159,7 +10356,7 @@ } this.pivotTables.push(pivotTable); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_PivotAdd, this.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_PivotAdd, this.getId(), null, new AscCommonExcel.UndoRedoData_BinaryWrapper(pivotTable)); } }; @@ -10659,7 +10856,7 @@ Worksheet.prototype._deleteSortState = function () { var oldSortState = this.sortState.clone(); this.sortState = null; - History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, this.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, this.getId(), null, new AscCommonExcel.UndoRedoData_SortState(oldSortState, null)); return true; }; @@ -10884,8 +11081,8 @@ Worksheet.prototype.insertSlicer = function (name, obj_name, type, pivotTable, slicerCacheDefinition) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); //TODO недостаточно ли вместо всей данной длинной структуры использовать только tableId(name) и columnName? var slicer = new window['Asc'].CT_slicer(this); @@ -10894,7 +11091,7 @@ this.aSlicers.push(slicer); var oCache = slicer.getCacheDefinition(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SlicerAdd, this.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SlicerAdd, this.getId(), null, new AscCommonExcel.UndoRedoData_FromTo(null, slicer)); if (isNewCache) { @@ -10907,20 +11104,20 @@ this.workbook.editDefinesNames(null, newDefName); } - History.EndTransaction(); + AscCommon.History.EndTransaction(); return slicer; }; Worksheet.prototype.deleteSlicer = function (name, doDelDefName) { var res = false; - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); var slicerObj = this.getSlicerIndexByName(name); if (null !== slicerObj) { this.aSlicers.splice(slicerObj.index, 1); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SlicerDelete, this.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SlicerDelete, this.getId(), null, new AscCommonExcel.UndoRedoData_FromTo(slicerObj.obj, null)); this.workbook.onSlicerDelete(name); res = true; @@ -10937,7 +11134,7 @@ } } - History.EndTransaction(); + AscCommon.History.EndTransaction(); return res; }; @@ -11076,14 +11273,14 @@ var slicers = this.getSlicersByTableColName(tableName, oldVal); if (slicers) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); for (var i = 0; i < slicers.length; i++) { slicers[i].setTableColName(oldVal, newVal); } - History.EndTransaction(); + AscCommon.History.EndTransaction(); } }; @@ -11094,14 +11291,14 @@ var slicers = this.workbook.getSlicersByTableName(oldVal); if (slicers) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); for (var i = 0; i < slicers.length; i++) { slicers[i].setTableName(newVal); } - History.EndTransaction(); + AscCommon.History.EndTransaction(); } }; @@ -11146,8 +11343,8 @@ }; Worksheet.prototype.deleteSlicersByTable = function (tableName) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); var slicers = this.workbook.getSlicersByTableName(tableName); if (slicers) { @@ -11156,12 +11353,12 @@ } } - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Worksheet.prototype.deleteSlicersByTableCol = function (tableName, colMap) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); for (var j in colMap) { var slicers = this.getSlicersByTableColName(tableName, j); @@ -11172,7 +11369,7 @@ } } - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Worksheet.prototype.changeSlicerCacheName = function (oldVal, newVal) { @@ -11182,14 +11379,14 @@ var slicers = this.getSlicersByCacheName(oldVal); if (slicers) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); for (var i = 0; i < slicers.length; i++) { slicers[i].setCacheName(newVal); } - History.EndTransaction(); + AscCommon.History.EndTransaction(); } }; @@ -11294,7 +11491,7 @@ } if (!doNotAddHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SheetViewDelete, this.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SheetViewDelete, this.getId(), null, new AscCommonExcel.UndoRedoData_NamedSheetViewRedo(namedSheetView.Get_Id(), namedSheetView, null)); } @@ -11308,7 +11505,7 @@ sheetView.ws = this; this.aNamedSheetViews.push(sheetView); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SheetViewAdd, this.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SheetViewAdd, this.getId(), null, new AscCommonExcel.UndoRedoData_BinaryWrapper(sheetView)); } }; @@ -11568,7 +11765,7 @@ this.aConditionalFormattingRules.push(val); this.cleanConditionalFormattingRangeIterator(); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_CFRuleAdd, this.getId(), val.getUnionRange(), new AscCommonExcel.UndoRedoData_CF(val.id, null, val.clone ? val.clone() : val)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_CFRuleAdd, this.getId(), val.getUnionRange(), new AscCommonExcel.UndoRedoData_CF(val.id, null, val.clone ? val.clone() : val)); } }; @@ -11621,7 +11818,7 @@ this.aConditionalFormattingRules.splice(oRule.index, 1); this.cleanConditionalFormattingRangeIterator(); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_CFRuleDelete, this.getId(), oRule.val.getUnionRange(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_CFRuleDelete, this.getId(), oRule.val.getUnionRange(), new AscCommonExcel.UndoRedoData_CF(id, oRule.val)); } if (oRule.ranges) { @@ -11793,7 +11990,7 @@ var oldValue = view.topLeftCell ? view.topLeftCell.clone() : null; view.topLeftCell = val; if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetTopLeftCell, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetTopLeftCell, this.getId(), null, new UndoRedoData_FromTo(oldValue ? new UndoRedoData_BBox(oldValue) : oldValue, val ? new UndoRedoData_BBox(val) : val)); } } @@ -11813,8 +12010,8 @@ //? activeRange sortState.Ref = new Asc.Range(selection.c1, selection.r1, selection.c2, selection.r2); - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); var columnSort = props.columnSort; sortState.ColumnSort = !columnSort; @@ -11880,12 +12077,12 @@ } if(obj) { - History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, t.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, t.getId(), null, new AscCommonExcel.UndoRedoData_SortState(obj.sortState ? obj.sortState.clone() : null, sortState ? sortState.clone() : null, true, obj.DisplayName)); obj.SortState = sortState; } else { - History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, t.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, t.getId(), null, new AscCommonExcel.UndoRedoData_SortState(t.sortState ? t.sortState.clone() : null, sortState ? sortState.clone() : null)); sortState._hasHeaders = props.hasHeaders; @@ -11900,7 +12097,7 @@ } } - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Worksheet.prototype._doSort = function (range, nOption, nStartRowCol, sortColor, opt_guessHeader, opt_by_row, opt_custom_sort) { @@ -12145,7 +12342,7 @@ Worksheet.prototype.checkProtectedRangeName = function (name) { var res = c_oAscDefinedNameReason.OK; //TODO пересмотреть проверку на rx_defName - if (!AscCommon.rx_defName.test(name.toLowerCase()) || name.length > g_nDefNameMaxLength) { + if (!AscCommon.rx_protectedRangeName.test(name.toLowerCase()) || name.length > g_nDefNameMaxLength) { return c_oAscDefinedNameReason.WrongName; } @@ -12329,7 +12526,7 @@ this.aProtectedRanges.push(val); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_AddProtectedRange, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_AddProtectedRange, this.getId(), /*val.getUnionRange()*/null, new AscCommonExcel.UndoRedoData_ProtectedRange(val.Id, null, val)); } @@ -12340,7 +12537,7 @@ if (protectedRange) { this.aProtectedRanges.splice(protectedRange.index, 1); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_DelProtectedRange, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_DelProtectedRange, this.getId(), /*oRule.val.getUnionRange()*/null, new AscCommonExcel.UndoRedoData_ProtectedRange(id, protectedRange.val)); } @@ -12602,7 +12799,7 @@ let fromData = oFromBreak && new AscCommonExcel.UndoRedoData_RowColBreaks(from, oFromBreak.min, oFromBreak.max, oFromBreak.man, oFromBreak.pt, byCol); let toData = new AscCommonExcel.UndoRedoData_RowColBreaks(to, min, max, man, pt, byCol); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeRowColBreaks, this.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeRowColBreaks, this.getId(), null, new AscCommonExcel.UndoRedoData_FromTo(fromData, toData)); } @@ -12639,7 +12836,7 @@ for (let i = 0; i < aBreaks.length; i++) { let fromData = new AscCommonExcel.UndoRedoData_RowColBreaks(aBreaks[i].id, aBreaks[i].min, aBreaks[i].max, aBreaks[i].man, aBreaks[i].pt, byCol); if (_breaks.removeBreak(aBreaks[i].id)) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeRowColBreaks, t.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeRowColBreaks, t.getId(), null, new AscCommonExcel.UndoRedoData_FromTo(fromData, null)); i--; } @@ -12688,7 +12885,7 @@ this.aCellWatches.push(cellWatch); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_AddCellWatch, this.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_AddCellWatch, this.getId(), null, new AscCommonExcel.UndoRedoData_FromTo(null, new AscCommonExcel.UndoRedoData_BBox(ref))); } @@ -12700,7 +12897,7 @@ if (ref.isEqual(this.aCellWatches[i].r)) { this.aCellWatches.splice(i, 1); if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_DelCellWatch, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_DelCellWatch, this.getId(), null, new AscCommonExcel.UndoRedoData_FromTo(new AscCommonExcel.UndoRedoData_BBox(ref), null)); } @@ -12713,7 +12910,7 @@ Worksheet.prototype.deleteCellWatches = function (addToHistory) { if (addToHistory) { for (var i = 0; i < this.aCellWatches.length; i++) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_DelCellWatch, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_DelCellWatch, this.getId(), null, new AscCommonExcel.UndoRedoData_FromTo(new AscCommonExcel.UndoRedoData_BBox(this.aCellWatches[i].r), null)); } @@ -12762,8 +12959,10 @@ return false; } + let newRes; if (oldObj || newObj) { let cloneNewOnj = newObj && newObj.clone(); + newRes = cloneNewOnj; if (cloneNewOnj) { cloneNewOnj.Id = newObj.Id; cloneNewOnj._ws = this; @@ -12792,13 +12991,13 @@ } else if (newObj && newObj.ref) { updateRange = newObj.ref.clone(); } - - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeUserProtectedRange, this.getId(), updateRange, + + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ChangeUserProtectedRange, this.getId(), updateRange, new UndoRedoData_FromTo(oldObj, newObj)); } } - return true; + return newRes ? newRes : true; }; Worksheet.prototype.deleteUserProtectedRanges = function (range) { @@ -13023,13 +13222,13 @@ if (oldValue !== val) { sheetView.view = val; if (addToHistory) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetSheetViewType, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_SetSheetViewType, this.getId(), null, new UndoRedoData_FromTo(oldValue, val)); - History.EndTransaction(); + AscCommon.History.EndTransaction(); } this.workbook.handlers && this.workbook.handlers.trigger("asc_updateSheetViewType", this.index); @@ -13098,7 +13297,7 @@ for (let i = 0; i < this.timelines.length; i++) { if (this.timelines[i].name === name) { if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_TimelineDelete, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_TimelineDelete, this.getId(), null, new UndoRedoData_FromTo(this.timelines[i], null)); } @@ -13117,6 +13316,181 @@ return false; }; + Worksheet.prototype.addChangedArray = function (rangeName, arrayInfo) { + if (!rangeName || !arrayInfo) { + return + } + + if (!this.changedArrays) { + this.changedArrays = {}; + } + + if (!this.changedArrays[rangeName]) { + this.changedArrays[rangeName] = arrayInfo + } + }; + Worksheet.prototype.getChangedArrayList = function () { + if (!this.changedArrays) { + return + } + + return this.changedArrays + }; + Worksheet.prototype.removeFromChangedArrayList = function (name) { + if (!this.changedArrays) { + return + } + + return this.changedArrays[name] + }; + Worksheet.prototype.clearChangedArrayList = function () { + this.changedArrays = null; + }; + Worksheet.prototype.recalculateVolatileArrays = function () { + if (AscCommonExcel.bIsSupportDynamicArrays) { + const ws = this; + + // recalculate all volatile arrays on page + if (ws && ws.workbook && ws.workbook.dependencyFormulas) { + let depGraph = ws.workbook.dependencyFormulas; + // get volatileArraysList + let volatileArrayList = depGraph.getVolatileArrays(); + if (volatileArrayList) { + for (let listenerId in volatileArrayList) { + let formula = volatileArrayList[listenerId]; + let formulaResult = formula.calculate(); + let firstCellRef = formula.parent && new Asc.Range(formula.parent.nCol, formula.parent.nRow, formula.parent.nCol, formula.parent.nRow); + if (!(formula.aca && formula.ca)) { + // array can expand, setValue for each cell except first + let dimensions = formulaResult.getDimensions(); + let newRef = new Asc.Range(firstCellRef.c1, firstCellRef.r1, firstCellRef.c1 + dimensions.col - 1, firstCellRef.r1 + dimensions.row - 1); + formula.setDynamicRef(newRef); + if (newRef) { + for (let row = newRef.r1; row <= newRef.r2; row++) { + for (let col = newRef.c1; col <= newRef.c2; col++) { + // if (row === newRef.r1 && col === newRef.c1) { + // continue + // } + // get cell and setPF to it + ws._getCell(row, col, function(cell) { + cell && cell.setFormulaInternal(formula); + }); + } + } + } + depGraph.addToChangedRange2(formula.getWs().getId(), formula.getDynamicRef()); + depGraph.endListeningVolatileArray(listenerId); + } else { + formula.setDynamicRef(firstCellRef); + ws._getCell(firstCellRef.r1, firstCellRef.c1, function(cell) { + cell && cell.setFormulaInternal(formula); + }); + + depGraph.addToChangedRange2(formula.getWs().getId(), formula.getArrayFormulaRef()); + } + } + } + } + } + }; + Worksheet.prototype.getRefDynamicInfo = function (formula, calculateResult) { + if (formula) { + let applyByArray = true, ctrlKey = true, dynamicRange = null, cannotChangeFormulaArray = false; + + if (formula.ref) { + dynamicRange = formula.ref; + } else { + let tempRef = new Asc.Range(formula.parent.nCol, formula.parent.nRow, formula.parent.nCol, formula.parent.nRow); + formula.ref = tempRef; + + let formulaResult = formula.calculate(null, null, null, null, calculateResult); + let arraySize = formulaResult.getDimensions(true); + let newR2 = (formula.parent.nRow + arraySize.row) > AscCommon.gc_nMaxRow ? AscCommon.gc_nMaxRow - 1 : (formula.parent.nRow + arraySize.row - 1); + let newC2 = (formula.parent.nCol + arraySize.col) > AscCommon.gc_nMaxCol ? AscCommon.gc_nMaxCol - 1 : (formula.parent.nCol + arraySize.col - 1); + + if (formulaResult.type !== cElementType.array) { + return false; + } + + let tempDynamicSelectionRange = this.getRange3(formula.parent.nRow, formula.parent.nCol, newR2, newC2); + tempDynamicSelectionRange._foreachNoEmpty(function (cell) { + let ref = cell.formulaParsed && cell.formulaParsed.ref ? cell.formulaParsed.ref : null; + + if (ref && !tempDynamicSelectionRange.bbox.containsRange(ref)) { + cannotChangeFormulaArray = true; + return false; + } + }); + + if (tempDynamicSelectionRange.bbox.isOneCell() && (formulaResult.type !== cElementType.array && formulaResult.type !== cElementType.cellsRange && formulaResult.type !== cElementType.cellsRange3D)) { + applyByArray = false; + ctrlKey = false; + } + + dynamicRange = tempDynamicSelectionRange.bbox; + } + + return {applyByArray: applyByArray, ctrlKey: ctrlKey, dynamicRange: dynamicRange, cannotChangeFormulaArray: cannotChangeFormulaArray}; + } + }; + + Worksheet.prototype.findEOT = function (bCheckStyles) { + var maxCols = this.getColsCount(); + var maxRows = this.getRowsCount(); + var lastC = -1, lastR = -1; + + let t = this; + let _cell = null; + let _getCell = function (_col, _row) { + if (_col < 0 || _col > gc_nMaxCol0 || _row < 0 || _row > gc_nMaxRow0) { + return null; + } + + return t.getCell3(_row, _col); + }; + let _isCellNullText = function (_col, _row) { + let c = _col; + _cell = null; + if (row !== undefined) { + c = _getCell(_col, _row); + _cell = c; + } + return null === c || c.isNullText(); + }; + + let isEmptyCell = function () { + if (_cell) { + if (_cell.hasMerged()) { + return false; + } else { + var ws = _cell.worksheet; + var nRow = _cell.bbox.r1; + var nCol = _cell.bbox.c1; + var xfs; + ws._getCellNoEmpty(nRow, nCol, function (oCell) { + xfs = ws.getCompiledStyle(nRow, nCol, oCell); + }); + if (xfs) { + return false; + } + } + } + return true; + }; + + for (var col = 0; col < maxCols; ++col) { + for (var row = 0; row < maxRows; ++row) { + if (!_isCellNullText(col, row) || (bCheckStyles && !isEmptyCell())) { + lastC = Math.max(lastC, col); + lastR = Math.max(lastR, row); + } + } + } + + return new AscCommon.CellBase(lastR, lastC); + }; + + //------------------------------------------------------------------------------------------------- var g_nCellOffsetFlag = 0; var g_nCellOffsetXf = g_nCellOffsetFlag + 1; @@ -13149,6 +13523,9 @@ this.isDirty = false; this.isCalc = false; + this.cm = null; + this.vm = null; + this._hasChanged = false; } Cell.prototype.clear = function(keepIndex) { @@ -13171,15 +13548,18 @@ this.isDirty = false; this.isCalc = false; + this.cm = null; + this.vm = null; + this._hasChanged = true; }; Cell.prototype.clearDataKeepXf = function(border) { var xfs = this.xfs; this.clearData(); this.xfs = xfs; - History.TurnOff(); + AscCommon.History.TurnOff(); this.setBorder(border); - History.TurnOn(); + AscCommon.History.TurnOn(); }; Cell.prototype.saveContent = function(opt_inCaseOfChange) { if (this.hasRowCol() && (!opt_inCaseOfChange || this._hasChanged)) { @@ -13320,6 +13700,9 @@ AscCommonExcel.executeInR1C1Mode(false, function () { newFormula.parse(); }); + if (parsed.ca) { // For recursive formulas + newFormula.ca = parsed.ca; + } var arrayFormulaRef = parsed.getArrayFormulaRef(); if(arrayFormulaRef) { newFormula.setArrayFormulaRef(arrayFormulaRef); @@ -13455,15 +13838,15 @@ this.textIndex = null; this._hasChanged = true; }; - Cell.prototype.setValue=function(val,callback, isCopyPaste, byRef, ignoreHyperlink) { + Cell.prototype.setValue=function(val,callback, isCopyPaste, byRef, ignoreHyperlink, dynamicRange) { var ws = this.ws; var wb = ws.workbook; var DataOld = null; - if (History.Is_On()) { + if (AscCommon.History.Is_On()) { DataOld = this.getValueData(); } var isFirstArrayFormulaCell = byRef && this.nCol === byRef.c1 && this.nRow === byRef.r1; - var newFP = this.setValueGetParsed(val, callback, isCopyPaste, byRef); + var newFP = this.setValueGetParsed(val, callback, isCopyPaste, byRef, dynamicRange); if (undefined === newFP) { return; } @@ -13477,6 +13860,9 @@ this.setFormulaInternal(newFP); if(byRef) { if(isFirstArrayFormulaCell) { + if (dynamicRange) { + this.setDynamicArrayFlags(); + } wb.dependencyFormulas.addToBuildDependencyArray(newFP); } } else { @@ -13492,22 +13878,35 @@ } wb.dependencyFormulas.addToChangedCell(this); } else { - wb.dependencyFormulas.addToChangedCell(this); + // when deleting a cell value we get here + if (oldFP && oldFP.dynamicRange) { + isFirstArrayFormulaCell = this.nCol === oldFP.dynamicRange.c1 && this.nRow === oldFP.dynamicRange.r1; + // we check here and add the range with daf to the dependency sheet + if (isFirstArrayFormulaCell) { + wb.dependencyFormulas.addToChangedRange2(oldFP.getWs().getId(), oldFP.getDynamicRef()); + } + } else { + wb.dependencyFormulas.addToChangedCell(this); + } if (this.ws.workbook.handlers) { this.ws.workbook.handlers.trigger("changeDocument", AscCommonExcel.docChangedType.cellValue, this, null, this.ws.getId()); } } var DataNew = null; - if (History.Is_On()) { + if (g_cCalcRecursion.getCellPasteValue() != null) { + this.setValueNumberInternal(g_cCalcRecursion.getCellPasteValue()); + g_cCalcRecursion.setCellPasteValue(null); + } + if (AscCommon.History.Is_On()) { DataNew = this.getValueData(); } - if (History.Is_On() && false == DataOld.isEqual(DataNew)) { - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), + if (AscCommon.History.Is_On() && false == DataOld.isEqual(DataNew)) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew)); } - //sortDependency вызывается ниже History.Add(AscCH.historyitem_Cell_ChangeValue, потому что в ней может быть выставлен формат ячейки(если это текстовый, то принимая изменения формула станет текстом) + //sortDependency вызывается ниже AscCommon.History.Add(AscCH.historyitem_Cell_ChangeValue, потому что в ней может быть выставлен формат ячейки(если это текстовый, то принимая изменения формула станет текстом) this.ws.workbook.sortDependency(); if (!this.ws.workbook.dependencyFormulas.isLockRecal()) { this._adjustCellFormat(); @@ -13586,20 +13985,58 @@ //3. проверям, не ссылаются ли на эти ссылки кто-то другой if (externalLinks && fOld) { let listenerId = fOld.getListenerId(); - for (i in externalLinks) { - if (null != listenerId) { - let sheetId = externalLinks[i]; - let sheetContainer = fOld.wb && fOld.wb.dependencyFormulas && fOld.wb.dependencyFormulas.sheetListeners && fOld.wb.dependencyFormulas.sheetListeners[sheetId]; - if (sheetContainer && Object.keys(sheetContainer.cellMap).length === 0) { - //если есть ссылки на внешние источники, необходимо их удалить - this.ws && this.ws.workbook && this.ws.workbook.removeExternalReferenceBySheet(sheetId); + + for (let link in externalLinks) { + // check all external link listeners + // let erIndex = this.getExternalLinkIndexBySheetId(sheetId); + // let eR = this.ws.workbook.externalReferences[+index - 1]; + let index = this.ws.workbook.getExternalLinkIndexBySheetId(externalLinks[link]); + let eR = this.ws.workbook.externalReferences[index - 1]; + + if (eR && null != listenerId) { + let hasListeners; + for (let ws in eR.worksheets) { + // if listeners are found, then we interrupt the cycle and move on to the next external link + if (hasListeners) { + break + } + + let wsId = eR.worksheets[ws].getId(); + let sheetContainer = fOld.wb && fOld.wb.dependencyFormulas && fOld.wb.dependencyFormulas.sheetListeners && fOld.wb.dependencyFormulas.sheetListeners[wsId]; + + if (sheetContainer) { + if (Object.keys(sheetContainer.cellMap).length === 0 && Object.keys(sheetContainer.areaMap).length === 0) { + hasListeners = false; + } else { + hasListeners = true; + } + } + } + + if (!hasListeners) { + this.ws && this.ws.workbook && this.ws.workbook.removeExternalReference(index, true); } } } } + + // //3. проверям, не ссылаются ли на эти ссылки кто-то другой + // if (externalLinks && fOld) { + // let listenerId = fOld.getListenerId(); + // for (i in externalLinks) { + // if (null != listenerId) { + // let sheetId = externalLinks[i]; + // let sheetContainer = fOld.wb && fOld.wb.dependencyFormulas && fOld.wb.dependencyFormulas.sheetListeners && fOld.wb.dependencyFormulas.sheetListeners[sheetId]; + // if (sheetContainer && Object.keys(sheetContainer.cellMap).length === 0) { + // //если есть ссылки на внешние источники, необходимо их удалить + // this.ws && this.ws.workbook && this.ws.workbook.removeExternalReferenceBySheet(sheetId); + // } + // } + // } + // } }; - Cell.prototype.setValueGetParsed=function(val,callback, isCopyPaste, byRef) { + Cell.prototype.setValueGetParsed=function(val,callback, isCopyPaste, byRef, dynamicRange) { var ws = this.ws; var wb = ws.workbook; var bIsTextFormat = false; @@ -13664,8 +14101,14 @@ } } else { newFP.setFormulaString(newFP.assemble()); + //***dynamic-array-formula*** + if(byRef && dynamicRange) { + newFP.dynamicRange = dynamicRange; + newFP.ref = byRef; + this.ws.formulaArrayLink = newFP; + } //***array-formula*** - if(byRef) { + else if(byRef) { newFP.ref = byRef; this.ws.formulaArrayLink = newFP; } @@ -13677,7 +14120,7 @@ }; Cell.prototype.setValue2=function(array){ var DataOld = null; - if(History.Is_On()) + if(AscCommon.History.Is_On()) DataOld = this.getValueData(); //[{text:"",format:TextFormat},{}...] var xfTableAndCond = this.getCompiledStyleCustom(true, false, true); @@ -13688,10 +14131,10 @@ this.ws.workbook.dependencyFormulas.addToChangedCell(this); this.ws.workbook.sortDependency(); var DataNew = null; - if(History.Is_On()) + if(AscCommon.History.Is_On()) DataNew = this.getValueData(); - if(History.Is_On() && false == DataOld.isEqual(DataNew)) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew)); + if(AscCommon.History.Is_On() && false == DataOld.isEqual(DataNew)) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew)); //todo не должны удаляться ссылки, если сделать merge ее части. if(this.isNullTextString()) { @@ -13718,54 +14161,66 @@ } }; Cell.prototype.setFormulaTemplate = function(bHistoryUndo, action) { - var DataOld = null; - var DataNew = null; - if (History.Is_On()) + let DataOld = null; + let DataNew = null; + let cellIndex = getCellIndex(this.nRow, this.nCol); + if (AscCommon.History.Is_On()) { DataOld = this.getValueData(); + } - this.cleanText(); + if (!g_cCalcRecursion.isRecursiveCell(cellIndex)) { + this.cleanText(); + } action(this); - if (History.Is_On()) { + if (AscCommon.History.Is_On()) { DataNew = this.getValueData(); - if (false == DataOld.isEqual(DataNew)){ - var typeHistory = bHistoryUndo ? AscCH.historyitem_Cell_ChangeValueUndo : AscCH.historyitem_Cell_ChangeValue; - History.Add(AscCommonExcel.g_oUndoRedoCell, typeHistory, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew), bHistoryUndo);} + if (DataOld.isEqual(DataNew) === false){ + let typeHistory = bHistoryUndo ? AscCH.historyitem_Cell_ChangeValueUndo : AscCH.historyitem_Cell_ChangeValue; + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, typeHistory, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew), bHistoryUndo);} } }; - Cell.prototype.setFormula = function(formula, bHistoryUndo, formulaRef) { + Cell.prototype.setFormula = function(formula, bHistoryUndo, formulaRef, caProps) { var cellWithFormula = new CCellWithFormula(this.ws, this.nRow, this.nCol); var parser = new parserFormula(formula, cellWithFormula, this.ws); + if (caProps && caProps.ca) { + parser.ca = caProps.ca; + } if(formulaRef) { parser.setArrayFormulaRef(formulaRef); this.ws.getRange3(formulaRef.r1, formulaRef.c1, formulaRef.r2, formulaRef.c2)._foreachNoEmpty(function(cell){ cell.setFormulaParsed(parser, bHistoryUndo); }); } else { - this.setFormulaParsed(parser, bHistoryUndo); + this.setFormulaParsed(parser, bHistoryUndo, caProps); } }; - Cell.prototype.setFormulaParsed = function(parsed, bHistoryUndo) { + Cell.prototype.setFormulaParsed = function(parsed, bHistoryUndo, caProps) { this.setFormulaTemplate(bHistoryUndo, function(cell){ cell.setFormulaInternal(parsed); cell.ws.workbook.dependencyFormulas.addToBuildDependencyCell(cell); + if (caProps && caProps.oldValue != null) { + cell.setValueNumberInternal(caProps.oldValue); + } }); }; Cell.prototype.setFormulaInternal = function(formula, dontTouchPrev) { if (!dontTouchPrev && this.formulaParsed) { - var shared = this.formulaParsed.getShared(); - var arrayFormula = this.formulaParsed.getArrayFormulaRef(); + let shared = this.formulaParsed.getShared(); + let arrayFormula = this.formulaParsed.getArrayFormulaRef(); + let dynamicRange = this.formulaParsed.getDynamicRef(); if (shared) { if (shared.ref.isOnTheEdge(this.nCol, this.nRow)) { this.ws.workbook.dependencyFormulas.addToChangedShared(this.formulaParsed); } var index = this.ws.workbook.workbookFormulas.add(this.formulaParsed).getIndexNumber(); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_RemoveSharedFormula, this.ws.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_RemoveSharedFormula, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, index, null), true); } else if(arrayFormula && this.formulaParsed.checkFirstCellArray(this)) { //***array-formula*** var fText = "=" + this.formulaParsed.getFormula(); - History.Add(AscCommonExcel.g_oUndoRedoArrayFormula, AscCH.historyitem_ArrayFromula_DeleteFormula, this.ws.getId(), + this.formulaParsed.removeDependencies(); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoArrayFormula, AscCH.historyitem_ArrayFromula_DeleteFormula, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new AscCommonExcel.UndoRedoData_ArrayFormula(arrayFormula, fText), true); } else { this.formulaParsed.removeDependencies(); @@ -13809,7 +14264,7 @@ this.correctValueByType(); this._hasChanged = true; var DataNew = this.getValueData(); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew)); } return type; }; @@ -13824,7 +14279,7 @@ if (changedText) { let dataNew = this._cloneMultiText(); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeArrayValueFormat, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeArrayValueFormat, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, dataOld, dataNew)); } @@ -13843,9 +14298,9 @@ var oStyle; var newVal = this.ws.workbook.CellStyles._prepareCellStyle(val); var oRes = this.ws.workbook.oStyleManager.setCellStyle(this, newVal); - if(History.Is_On()) { + if(AscCommon.History.Is_On()) { var oldStyleName = this.ws.workbook.CellStyles.getStyleNameByXfId(oRes.oldVal); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Style, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldStyleName, val)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Style, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldStyleName, val)); // Выставляем стиль oStyle = this.ws.workbook.CellStyles.getStyleByXfId(oRes.newVal); @@ -13865,8 +14320,8 @@ }; Cell.prototype.setNum=function(val){ var oRes = this.ws.workbook.oStyleManager.setNum(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Num, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Num, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.getShiftedNumFormat=function(nShift, dDigitsCount){ let newNumFormat; @@ -13901,18 +14356,18 @@ if(null != this.multiText && false == this.ws.workbook.bUndoChanges && false == this.ws.workbook.bRedoChanges) { var oldVal = null; - if(History.Is_On()) + if(AscCommon.History.Is_On()) oldVal = this.getValueData(); this.setValueTextInternal(AscCommonExcel.getStringFromMultiText(this.multiText)); - if(History.Is_On()) + if(AscCommon.History.Is_On()) { var newVal = this.getValueData(); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldVal, newVal)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldVal, newVal)); } } } var oRes = this.ws.workbook.oStyleManager.setFont(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { var oldVal = null; if(null != oRes.oldVal) @@ -13920,71 +14375,71 @@ var newVal = null; if(null != oRes.newVal) newVal = oRes.newVal.clone(); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetFont, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldVal, newVal)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetFont, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldVal, newVal)); } }; Cell.prototype.setFontname=function(val){ var oRes = this.ws.workbook.oStyleManager.setFontname(this, val); this._setFontProp(function(format){return val != format.getName();}, function(format){format.setName(val);}); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Fontname, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Fontname, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setFontsize=function(val){ var oRes = this.ws.workbook.oStyleManager.setFontsize(this, val); this._setFontProp(function(format){return val != format.getSize();}, function(format){format.setSize(val);}); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Fontsize, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Fontsize, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setFontcolor=function(val){ var oRes = this.ws.workbook.oStyleManager.setFontcolor(this, val); this._setFontProp(function(format){return val != format.getColor();}, function(format){format.setColor(val);}); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Fontcolor, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Fontcolor, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setBold=function(val){ var oRes = this.ws.workbook.oStyleManager.setBold(this, val); this._setFontProp(function(format){return val != format.getBold();}, function(format){format.setBold(val);}); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Bold, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Bold, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setItalic=function(val){ var oRes = this.ws.workbook.oStyleManager.setItalic(this, val); this._setFontProp(function(format){return val != format.getItalic();}, function(format){format.setItalic(val);}); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Italic, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Italic, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setUnderline=function(val){ var oRes = this.ws.workbook.oStyleManager.setUnderline(this, val); this._setFontProp(function(format){return val != format.getUnderline();}, function(format){format.setUnderline(val);}); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Underline, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Underline, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setStrikeout=function(val){ var oRes = this.ws.workbook.oStyleManager.setStrikeout(this, val); this._setFontProp(function(format){return val != format.getStrikeout();}, function(format){format.setStrikeout(val);}); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Strikeout, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Strikeout, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setFontAlign=function(val){ var oRes = this.ws.workbook.oStyleManager.setFontAlign(this, val); this._setFontProp(function(format){return val != format.getVerticalAlign();}, function(format){format.setVerticalAlign(val);}); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_FontAlign, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_FontAlign, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setAlignVertical=function(val){ var oRes = this.ws.workbook.oStyleManager.setAlignVertical(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_AlignVertical, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_AlignVertical, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setAlignHorizontal=function(val){ var oRes = this.ws.workbook.oStyleManager.setAlignHorizontal(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_AlignHorizontal, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_AlignHorizontal, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setFill=function(val){ var oRes = this.ws.workbook.oStyleManager.setFill(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Fill, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Fill, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setFillColor=function(val){ var fill = new AscCommonExcel.Fill(); @@ -13993,67 +14448,67 @@ }; Cell.prototype.setBorder=function(val){ var oRes = this.ws.workbook.oStyleManager.setBorder(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal){ + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal){ var oldVal = null; if(null != oRes.oldVal) oldVal = oRes.oldVal.clone(); var newVal = null; if(null != oRes.newVal) newVal = oRes.newVal.clone(); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Border, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldVal, newVal)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Border, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldVal, newVal)); } }; Cell.prototype.setShrinkToFit=function(val){ var oRes = this.ws.workbook.oStyleManager.setShrinkToFit(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ShrinkToFit, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ShrinkToFit, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setWrap=function(val){ var oRes = this.ws.workbook.oStyleManager.setWrap(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Wrap, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Wrap, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setAngle=function(val){ var oRes = this.ws.workbook.oStyleManager.setAngle(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Angle, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Angle, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setIndent=function(val){ var oRes = this.ws.workbook.oStyleManager.setIndent(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Indent, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Indent, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setQuotePrefix=function(val){ var oRes = this.ws.workbook.oStyleManager.setQuotePrefix(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetQuotePrefix, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetQuotePrefix, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setApplyProtection=function(val){ var oRes = this.ws.workbook.oStyleManager.setApplyProtection(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetApplyProtection, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetApplyProtection, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setLocked=function(val){ var oRes = this.ws.workbook.oStyleManager.setLocked(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetLocked, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetLocked, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setHiddenFormulas=function(val){ var oRes = this.ws.workbook.oStyleManager.setHiddenFormulas(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetHidden, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetHidden, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setPivotButton=function(val){ var oRes = this.ws.workbook.oStyleManager.setPivotButton(this, val); - if(History.Is_On() && oRes.oldVal != oRes.newVal) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetPivotButton, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); + if(AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetPivotButton, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal)); }; Cell.prototype.setStyle=function(xfs){ var oldVal = this.xfs; this.setStyleInternal(xfs); - if(History.Is_On() && oldVal != this.xfs) + if(AscCommon.History.Is_On() && oldVal != this.xfs) { - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetStyle, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldVal, this.xfs)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_SetStyle, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oldVal, this.xfs)); } }; Cell.prototype.setStyleInternal = function(xfs) { @@ -14276,32 +14731,46 @@ this._checkDirty(); var formula = this.isFormula() ? this.getFormula() : null; var formulaRef; + let ca; if(formula) { var parser = this.getFormulaParsed(); if(parser) { - formulaRef = this.getFormulaParsed().getArrayFormulaRef(); + formulaRef = parser.getArrayFormulaRef(); + ca = parser.ca; } } - return new UndoRedoData_CellValueData(formula, new AscCommonExcel.CCellValue(this), formulaRef); + return new UndoRedoData_CellValueData(formula, new AscCommonExcel.CCellValue(this), formulaRef, ca); }; Cell.prototype.setValueData = function(Val){ //значения устанавляваются через setValue, чтобы пересчитались формулы - if(null != Val.formula) - this.setFormula(Val.formula, null, Val.formulaRef); - else if(null != Val.value) - { + if (null != Val.formula) { + let caProps = { + ca: Val.ca, + oldValue: Val.value.number + }; + this.setFormula(Val.formula, null, Val.formulaRef, caProps); + } else if (null != Val.value) { var DataOld = null; var DataNew = null; - if (History.Is_On()) + if (AscCommon.History.Is_On()) DataOld = this.getValueData(); - this.setFormulaInternal(null); + if (this.formulaParsed && this.formulaParsed.getDynamicRef()) { + this.ws.workbook.dependencyFormulas.addToChangedRange2(this.formulaParsed.getWs().getId(), this.formulaParsed.getDynamicRef()); + if (Val.value.getTextValue()) { + // non empty val, delete PF from cell + this.setFormulaInternal(null); + } + } else { + this.setFormulaInternal(null); + this.ws.workbook.dependencyFormulas.addToChangedCell(this); + } + this._setValueData(Val.value); - this.ws.workbook.dependencyFormulas.addToChangedCell(this); this.ws.workbook.sortDependency(); - if (History.Is_On()) { + if (AscCommon.History.Is_On()) { DataNew = this.getValueData(); if (false == DataOld.isEqual(DataNew)) - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, DataOld, DataNew)); } } else @@ -14314,53 +14783,529 @@ Cell.prototype.getQuotePrefix = function () { return this.xfs && this.xfs.getQuotePrefix(); }; - Cell.prototype._checkDirty = function(){ - var t = this; - if (this.getIsDirty()) { - if (g_cCalcRecursion.incLevel()) { - var isCalc = this.getIsCalc(); - this.setIsCalc(true); - var calculatedArrayFormulas = []; - this.processFormula(function(parsed) { - if (!isCalc) { - //***array-formula*** - //добавлен последний параметр для обработки формулы массива - if(parsed.getArrayFormulaRef()) { - var listenerId = parsed.getListenerId(); - if(parsed.checkFirstCellArray(t) && !calculatedArrayFormulas[listenerId]) { - parsed.calculate(); - calculatedArrayFormulas[listenerId] = 1; - } else { - if(null === parsed.value && !calculatedArrayFormulas[listenerId]) { - parsed.calculate(); - calculatedArrayFormulas[listenerId] = 1; - } - var oldParent = parsed.parent; - parsed.parent = new AscCommonExcel.CCellWithFormula(t.ws, t.nRow, t.nCol); - parsed._endCalculate(); - parsed.parent = oldParent; - } - } else { - parsed.calculate(); + /** + * Checks "areaMap" belongs formula that ignores recursion rules + * @param {[]} aOutStack + * @param {object} oAreaMap + * @returns {boolean} + * @private + */ + function _isExcludeFormula(aOutStack, oAreaMap) { + const aExcludeFormulas = AscCommonExcel.aExcludeRecursiveFomulas; + for (let i = 0, length = aOutStack.length; i < length; i++) { + const oElem = aOutStack[i]; + if (oElem.type === cElementType.func && aExcludeFormulas.includes(oElem.name)) { + let nIndexOfArgCount = i - 1; + let nArgCount = aOutStack[nIndexOfArgCount]; + let nStartArgIndex = nIndexOfArgCount - nArgCount; + let bBelongToFormula = false; + for (let j = nStartArgIndex; j < nIndexOfArgCount; j++) { + let oArgElem = aOutStack[j]; + let oBbox = null; + let aRef = [cElementType.cell, cElementType.cell3D, cElementType.cellsRange, cElementType.cellsRange3D]; + if (!aRef.includes(oArgElem.type)) { + continue; + } + if (oArgElem.type === cElementType.name || oArgElem.type === cElementType.name3D) { + const oElemValue = oArgElem.getValue(); + if (!aRef.includes(oElemValue.type)) { + continue; + } + oBbox = oElemValue.getBBox0(); + } else { + oBbox = oArgElem.getBBox0(); + } + bBelongToFormula = oBbox.containsRange(oAreaMap.bbox); + if (bBelongToFormula) { + return true; + } + } + } + } + return false; + } + /** + * Method returns listeners of cell + * @returns {object} + */ + Cell.prototype.getListeners = function () { + const ws = this.ws; + const oDepFormulas = ws.workbook.dependencyFormulas; + + if (!oDepFormulas || !oDepFormulas.sheetListeners.hasOwnProperty(ws.Id)) { + return null; + } + + const nCellIndex = getCellIndex(this.nRow, this.nCol); + const oFormulaParsed = this.getFormulaParsed(); + if (oFormulaParsed && !oFormulaParsed.ca) { + return null; + } + const aOutStack = oFormulaParsed && oFormulaParsed.outStack; + const oBaseFunction = aOutStack && aOutStack.find(function (oElem) { + return oElem.type === cElementType.func; + }); + let sAreaIndex = null; + // Logic for recognizing area listeners + if (aOutStack && aOutStack.length && oBaseFunction) { + const aElementTypes = [ + cElementType.cell, + cElementType.cellsRange, + cElementType.cellsRange3D, + cElementType.name, + cElementType.name3D, + cElementType.table + ]; + let oOutStackElem = aOutStack.find(function (oElem) { + return aElementTypes.includes(oElem.type); + }); + if (oOutStackElem && (oOutStackElem.type === cElementType.cellsRange || oOutStackElem.type === cElementType.cellsRange3D)) { + let oElemRange = oOutStackElem.getRange(); + if (oElemRange && oElemRange.containCell2(this)) { + sAreaIndex = oOutStackElem.value.replace(/\$/g, ""); + } + } else if (oOutStackElem && (oOutStackElem.type === cElementType.name || oOutStackElem.type === cElementType.name3D)) { + let oRef = oOutStackElem.toRef(); + if (oRef.type === cElementType.cellsRange || oRef.type === cElementType.cellsRange3D) { + sAreaIndex = oRef.value.replace(/\$/g, ""); + } + } + } + const oSheetListeners = oDepFormulas.sheetListeners[ws.Id]; + if (sAreaIndex && oSheetListeners.areaMap.hasOwnProperty(sAreaIndex)) { + return oSheetListeners.areaMap[sAreaIndex]; + } else if (oSheetListeners.cellMap.hasOwnProperty(nCellIndex)) { + return oSheetListeners.cellMap[nCellIndex]; + } else if (aOutStack && aOutStack.length) { + for (let nIndex in oSheetListeners.areaMap) { + if (oSheetListeners.areaMap[nIndex].bbox.contains(this.nCol, this.nRow) + && !_isExcludeFormula(aOutStack, oSheetListeners.areaMap[nIndex])) { + return oSheetListeners.areaMap[nIndex]; + } + } + } + }; + + /** + * Iterative extract listeners of a cell + * @param fAction {Function} Action on the listener. + * @param oCell {Cell} + * @param oListeners {object} + * @private + */ + function _foreachListeners(fAction, oCell, oListeners) { + for (let i in oListeners) { + let oListenerCell = oListeners[i].getParent(); + let nListenerCellIndex = null; + if (oListenerCell instanceof DefName) { + if (!oListeners[i].ca) { + continue; + } + let oParserRef = oListenerCell.parsedRef; + let aRef = [cElementType.cell, cElementType.cell3D, cElementType.cellsRange, cElementType.cellsRange3D]; + let oOutStackElem = oParserRef.outStack.find(function (oElem) { + return aRef.includes(oElem.type); + }); + let oRange = oOutStackElem && oOutStackElem.getRange(); + if (oRange && oRange.isOneCell()) { + nListenerCellIndex = getCellIndex(oRange.bbox.r1, oRange.bbox.c1); + let oWs = oRange.worksheet; + oWs._getCell(oRange.bbox.r1, oRange.bbox.c1, function (oCell) { + oListenerCell = oCell; + }); + } else if (oRange) { + oRange._foreachNoEmpty(function (oCell) { + if (oCell.isFormula()) { + nListenerCellIndex = getCellIndex(oCell.nRow, oCell.nCol); + oListenerCell = oCell; + return true; // break loop; + } + }) + } + } else { + nListenerCellIndex = getCellIndex(oListenerCell.nRow, oListenerCell.nCol); + } + if (nListenerCellIndex == null || isNaN(nListenerCellIndex)) { + continue; + } + if (oListenerCell instanceof Asc.CT_WorksheetSource) { + continue; + } + let oRes = fAction(nListenerCellIndex, oListenerCell, oCell); + if (oRes != null) { + return; + } + } + } + /** + * Method finds a start cell index of recursion formula. + * Uses for only with enabled iterative calculations setting. + * @param {Cell} [oPrevCell] - Previous cell in recursion. + * @param {Cell} [oFirstCell] - First cell in recursion. + * @param {Cell[]} [aPassedCells] - Passed cells in recursion. + * @memberof Cell + */ + Cell.prototype.initStartCellForIterCalc = function (oPrevCell, oFirstCell, aPassedCells) { + if(g_cCalcRecursion.checkRecursionCounter()) { + g_cCalcRecursion.resetRecursionCounter(); + return; + } + const nCellIndex = getCellIndex(this.nRow, this.nCol); + const oCellListeners = this.getListeners(); + if (!oCellListeners) { + g_cCalcRecursion.resetRecursionCounter(); + return; + } + const oListeners = oCellListeners.listeners; + let oCellFromListener = null; + let nPrevCellIndex = oPrevCell ? getCellIndex(oPrevCell.nRow, oPrevCell.nCol) : null; + oFirstCell = oFirstCell || this; + let nFirstCellIndex = getCellIndex(oFirstCell.nRow, oFirstCell.nCol); + aPassedCells = aPassedCells || []; + _foreachListeners(function (nListenerCellIndex, oListenerCell, oThis) { + if (nCellIndex === nListenerCellIndex && oThis.ws.getName() === oListenerCell.ws.getName()) { + g_cCalcRecursion.setStartCellIndex({cellId: nCellIndex, wsName: oThis.ws.getName().toLowerCase()}); + g_cCalcRecursion.resetRecursionCounter(); + return true; + } else if (nPrevCellIndex != null && nListenerCellIndex === nPrevCellIndex && oPrevCell.ws.getName() === oListenerCell.ws.getName()) { + let sPrevCellWsName = oPrevCell.ws.getName().toLowerCase(); + let sThisCellWsName = oThis.ws.getName().toLowerCase(); + let sCellProp = sPrevCellWsName !== sThisCellWsName ? sThisCellWsName : nCellIndex.toString(); + let sPrevCellProp = sPrevCellWsName !== sThisCellWsName ? sPrevCellWsName : nPrevCellIndex.toString(); + if (sPrevCellProp < sCellProp) { + g_cCalcRecursion.setStartCellIndex({cellId: nPrevCellIndex, wsName: sPrevCellWsName}); + } else { + g_cCalcRecursion.setStartCellIndex({cellId: nCellIndex, wsName: sThisCellWsName}); + } + g_cCalcRecursion.resetRecursionCounter(); + return true; + } else if (nFirstCellIndex === nListenerCellIndex && oFirstCell.ws.getName() === oListenerCell.ws.getName()) { + g_cCalcRecursion.setStartCellIndex({cellId: nFirstCellIndex, wsName: oFirstCell.ws.getName().toLowerCase()}); + g_cCalcRecursion.resetRecursionCounter(); + return true; + } else { + let oWs = oListenerCell.ws; + oWs._getCell(oListenerCell.nRow, oListenerCell.nCol, function (oCell) { + oCellFromListener = oCell; + }); + let bPassedCell = aPassedCells.some(function (oPassedCell) { + let nPassedCellIndex = getCellIndex(oPassedCell.nRow, oPassedCell.nCol); + let nCellIndex = getCellIndex(oCellFromListener.nRow, oCellFromListener.nCol); + return nPassedCellIndex === nCellIndex && oPassedCell.ws.getName() === oCellFromListener.ws.getName(); + }); + if (bPassedCell) { + g_cCalcRecursion.resetRecursionCounter(); + return; + } + aPassedCells.push(oCellFromListener); + g_cCalcRecursion.incRecursionCounter(); + oCellFromListener.initStartCellForIterCalc(oThis, oFirstCell, aPassedCells); + g_cCalcRecursion.resetRecursionCounter(); + if (g_cCalcRecursion.getStartCellIndex() != null) { + return true; + } + } + }, this, oListeners); + }; + /** + * Function returns an array of reference cells from outStack attribute of parserFormula class. + * @param {parserFormula} oFormulaParsed + * @returns {[]} + * @private + */ + function _getRefElements(oFormulaParsed) { + const aRefElements = []; + for (let i = 0, length = oFormulaParsed.getOutStackSize(); i < length; i++) { + const oOutStackElem = oFormulaParsed.getOutStackElem(i); + const nElemType = oOutStackElem.type; + const b3D = nElemType === cElementType.cell3D || nElemType === cElementType.cellsRange3D || nElemType === cElementType.name3D; + const bArea = nElemType === cElementType.cellsRange || nElemType === cElementType.name; + const bDefName = nElemType === cElementType.name || nElemType === cElementType.name3D; + const bTable = nElemType === cElementType.table; + + if (nElemType === cElementType.cell || b3D || bArea || bDefName || bTable) { + aRefElements.push(oOutStackElem); + } + } + + return aRefElements; + } + + /** + * Iterative extract reference elements from outStack attribute of parserFormula class. + * @param {Function} fAction - Action with reference element + * @param {[]} aRefElements + * @private + */ + function _foreachRefElements (fAction, aRefElements) { + if (!aRefElements.length) { + return; + } + let nLastIndex = aRefElements.length - 1; + for (let i = 0; i < aRefElements.length; i++) { + let oRefElement = aRefElements[i]; + let nRefType = oRefElement.type; + let oRange = null; + + if (nRefType === cElementType.name || nRefType === cElementType.name3D) { + const oElemValue = oRefElement.getValue(); + const oElemType = oElemValue.type; + let aRef = [cElementType.cell, cElementType.cell3D, cElementType.cellsRange, cElementType.cellsRange3D]; + if (!aRef.includes(oElemType)) { + return; + } + oRange = oElemValue.getRange(); + } else if (nRefType === cElementType.table) { + let oRefElem = oRefElement.toRef(); + oRange = oRefElem.getRange(); + } else { + oRange = oRefElement.getRange(); + } + let oRes = fAction(oRange, nLastIndex, i); + if (oRes != null) { + return; + } + } + } + + /** + * Changes ca flag of cell from listener. + * Function is recursive. + * @param {Cell} oSourceCell + * @private + */ + function _changeCellsFromListener (oSourceCell) { + if (g_cCalcRecursion.checkRecursionCounter()) { + g_cCalcRecursion.resetRecursionCounter(); + return; + } + const oCellListeners = oSourceCell.getListeners(); + if (!oCellListeners) { + g_cCalcRecursion.resetRecursionCounter(); + return; + } + const oListeners = oCellListeners.listeners; + _foreachListeners(function (nListenerCellId, oListenerCellWithFormula, oCell) { + const oWs = oCell.ws; + let oListenerCell = null; + oWs._getCell(oListenerCellWithFormula.nRow, oListenerCellWithFormula.nCol, function (oCell) { + oListenerCell = oCell; + }) + if (!oListenerCell.isFormula()) { + return; + } + const oFormulaParsed = oListenerCell.getFormulaParsed(); + if (oFormulaParsed.ca) { + return; + } + oFormulaParsed.ca = true; + if (oListenerCell.getListeners()) { + g_cCalcRecursion.incRecursionCounter(); + _changeCellsFromListener(oListenerCell); + } + }, oSourceCell, oListeners); + g_cCalcRecursion.resetRecursionCounter(); + } + /** + * Method checks is cell has recursive formula. + * Recursion method + * @param {CCellWithFormula} oCellWithFormula + * @param {Cell[]} [aPassedCell] + * @returns {boolean} + */ + Cell.prototype.checkRecursiveFormula = function (oCellWithFormula, aPassedCell) { + if (g_cCalcRecursion.checkRecursionCounter()) { + g_cCalcRecursion.resetRecursionCounter(); + return false; + } + if (oCellWithFormula == null) { + g_cCalcRecursion.resetRecursionCounter(); + return false; + } + + const nCellIndexFromOperand = getCellIndex(this.nRow, this.nCol); + const nCellIndexFromFormula = getCellIndex(oCellWithFormula.nRow, oCellWithFormula.nCol); + if (isNaN(nCellIndexFromFormula)) { + g_cCalcRecursion.resetRecursionCounter(); + return false; + } + if (nCellIndexFromOperand === nCellIndexFromFormula && this.ws.getName() === oCellWithFormula.ws.getName()) { + g_cCalcRecursion.resetRecursionCounter(); + return true; + } + + if (!this.isFormula()) { + g_cCalcRecursion.resetRecursionCounter(); + return false; + } + const oFormulaParsed = this.getFormulaParsed(); + if (oFormulaParsed.ca) { + g_cCalcRecursion.resetRecursionCounter(); + return true; + } + const aRefElements = _getRefElements(oFormulaParsed); + const oThis = this; + let bRecursiveFormula = false; + aPassedCell = aPassedCell || []; + _foreachRefElements(function (oRange) { + oRange._foreachNoEmpty(function (oCell) { + let nCellIndex = getCellIndex(oCell.nRow, oCell.nCol); + let bCellIsPassed = aPassedCell.some(function (oElem) { + let nElemIndex = getCellIndex(oElem.nRow, oElem.nCol); + return nCellIndex === nElemIndex && oElem.ws.getName() === oCell.ws.getName(); + }); + if (nCellIndexFromFormula === nCellIndex && oCell.ws.getName() === oCellWithFormula.ws.getName()) { + bRecursiveFormula = true; + return true; // break loop + } else if (!bRecursiveFormula && oCell.isFormula() && !bCellIsPassed) { + g_cCalcRecursion.incRecursionCounter(); + aPassedCell.push(oCell); + bRecursiveFormula = oCell.checkRecursiveFormula(oCellWithFormula, aPassedCell); + } + if (bRecursiveFormula) { + return true; // break loop + } + }); + if (bRecursiveFormula) { + if (g_cCalcRecursion.getRecursionCounter() === 0 && aPassedCell.length) { + const oWs = oThis.ws; + let oSourceCell = null; + oWs._getCell(oCellWithFormula.nRow, oCellWithFormula.nCol, function (oCell) { + oSourceCell = oCell; + }); + _changeCellsFromListener(oSourceCell); + } + oFormulaParsed.ca = true; + return true; + } + }, aRefElements); + + g_cCalcRecursion.resetRecursionCounter(); + return bRecursiveFormula; + }; + /** + * Method modifies linked cell. + * @param {function} fAction - Callback function with logic for modifying cell. + * @param {boolean} bRecursiveCall - Changed all linked cells or only nearby cell. + * @memberof Cell + */ + Cell.prototype.changeLinkedCell = function (fAction, bRecursiveCall) { + const oThis = this; + const nThisIndex = getCellIndex(this.nRow, this.nCol); + const oFormulaParsed = this.getFormulaParsed(); + + if (!oFormulaParsed) { + g_cCalcRecursion.resetRecursionCounter(); + return; + } + if (g_cCalcRecursion.checkRecursionCounter()) { + g_cCalcRecursion.resetRecursionCounter(); + return; + } + + const aRefElements = _getRefElements(oFormulaParsed); + _foreachRefElements(function (oRange, nLastRefElemIndex, nIndex) { + oRange._foreachNoEmpty(function(oCell) { + let nCellIndex = getCellIndex(oCell.nRow, oCell.nCol); + let sCellWsName = oCell.ws.getName().toLowerCase(); + let sThisWsName = oThis.ws.getName().toLowerCase(); + if (!oCell.isFormula()) { + return; + } + if ((nCellIndex !== nThisIndex && nCellIndex > nThisIndex) || sCellWsName > sThisWsName) { + let res = fAction(oCell); + if (res != null) { + return true; + } + if (bRecursiveCall) { + g_cCalcRecursion.incRecursionCounter(); + oCell.changeLinkedCell(fAction, true); + } + } else if (nIndex === nLastRefElemIndex && nCellIndex === nThisIndex && sCellWsName === sThisWsName) { + // Try to find listener with linked cell. + const oCellListeners = oCell.getListeners(); + if (!oCellListeners) { + return; + } + const oListeners = oCellListeners.listeners; + _foreachListeners(function (nListenerCellIndex, oListenerCell, oThis) { + let sThisWsName = oThis.ws.getName().toLowerCase(); + let sListenerWsName = oListenerCell.ws.getName().toLowerCase(); + if (nListenerCellIndex !== nCellIndex || sThisWsName !== sListenerWsName) { + let oWs = oListenerCell.ws; + oWs._getCell(oListenerCell.nRow, oListenerCell.nCol, function (oCell) { + if (oCell.isFormula()) { + let res = fAction(oCell); + if (res != null) { + return; + } + if (bRecursiveCall) { + g_cCalcRecursion.incRecursionCounter(); + oCell.changeLinkedCell(fAction, true); + } + } + }); + return true; + } + }, oCell, oListeners); + } + }); + }, aRefElements); + g_cCalcRecursion.resetRecursionCounter(); + }; + /** + * Method calculates cells with formula aren't calculated yet. + * @memberof Cell + * @private + */ + Cell.prototype._checkDirty = function() { + const t = this; + // Checks cell contains formula or formula is not calculated yet + if (this.getIsDirty()) { + if (g_cCalcRecursion.checkLevel()) { + g_cCalcRecursion.incLevel(); + const isCalc = this.getIsCalc(); + this.setIsCalc(true); + const calculatedArrayFormulas = []; + this.processFormula(function(parsed) { + if (!isCalc) { + //***array-formula*** + //добавлен последний параметр для обработки формулы массива + if(parsed.getArrayFormulaRef()) { + const listenerId = parsed.getListenerId(); + if(parsed.checkFirstCellArray(t) && !calculatedArrayFormulas[listenerId]) { + parsed.calculate(); + calculatedArrayFormulas[listenerId] = 1; + } else { + if(null === parsed.value && !calculatedArrayFormulas[listenerId]) { + parsed.calculate(); + calculatedArrayFormulas[listenerId] = 1; + } + + let oldParent = parsed.parent; + parsed.parent = new AscCommonExcel.CCellWithFormula(t.ws, t.nRow, t.nCol); + parsed._endCalculate(); + parsed.parent = oldParent; + } + } else { + parsed.calculate(); } - } else { - parsed.calculateCycleError(); } }); g_cCalcRecursion.decLevel(); if (g_cCalcRecursion.getIsForceBacktracking()) { g_cCalcRecursion.insert({ws: this.ws, nRow: this.nRow, nCol: this.nCol}); - if (0 === g_cCalcRecursion.getLevel() && !g_cCalcRecursion.getIsProcessRecursion()) { + if (g_cCalcRecursion.getLevel() === 0 && !g_cCalcRecursion.getIsProcessRecursion()) { g_cCalcRecursion.setIsProcessRecursion(true); do { g_cCalcRecursion.setIsForceBacktracking(false); - g_cCalcRecursion.foreachInReverse(function(elem) { - elem.ws._getCellNoEmpty(elem.nRow, elem.nCol, function(cell) { - if(cell && cell.getIsDirty()){ - cell.setIsCalc(false); - cell._checkDirty(); + g_cCalcRecursion.foreachInReverse(function(oElem) { + oElem.ws._getCellNoEmpty(oElem.nRow, oElem.nCol, function(oCell) { + if(oCell && oCell.getIsDirty()) { + oCell.setIsCalc(false); + oCell._checkDirty(); } }); }); @@ -14466,7 +15411,7 @@ case cElementType.empty: //=A1:A3 this.setTypeInternal(CellValueType.Number); - this.setValueNumberInternal(res.getValue()); + this.setValueNumberInternal(res.tocNumber().getValue()); break; default: this.setTypeInternal(CellValueType.String); @@ -14867,12 +15812,12 @@ if(this._minimizeMultiText(false)) { var DataNew = this.getValueData(); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow,this.nCol, backupObj, DataNew)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow,this.nCol, backupObj, DataNew)); } else { var DataNew = this._cloneMultiText(); - History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeArrayValueFormat, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, backupObj.value.multiText, DataNew)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_ChangeArrayValueFormat, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, backupObj.value.multiText, DataNew)); } } bRes = true; @@ -14975,6 +15920,9 @@ case cErrorOrigin["calc"]: return cErrorLocal["calc"]; break; + case cErrorOrigin["spill"]: + return cErrorLocal["spill"]; + break; } return cErrorLocal["nil"]; }; @@ -15060,9 +16008,9 @@ var end = stream.XlsbReadRecordLength() + stream.GetCurPos(); this.setRowCol(row, stream.GetULongLE() & 0x3FFF); - var nStyleRef = stream.GetULongLE(); - if (0 !== (nStyleRef & 0xFFFFFF)) { - var xf = aCellXfs[nStyleRef & 0xFFFFF]; + var nFlags2 = stream.GetULongLE(); + if (0 !== (nFlags2 & 0xFFFFFF)) { + var xf = aCellXfs[nFlags2 & 0xFFFFF]; if (xf) { this.setStyle(xf); } @@ -15142,6 +16090,14 @@ this.setValueTextInternal(text); } } + if (0 !== (nFlags2 & 0x2000000)) + { + this.setCm(stream.GetULong()); + } + if (0 !== (nFlags2 & 0x4000000)) + { + this.setVm(stream.GetULong()); + } stream.Seek2(end); }; @@ -15275,11 +16231,18 @@ stream.XlsbStartRecord(type, len); stream.WriteULong(this.nCol & 0x3FFF); - var nStyle = 0; + var nFlags2 = 0; if (null !== nXfsId) { - nStyle = nXfsId; + nFlags2 = nXfsId; } - stream.WriteULong(nStyle); + if (this.cm != null) { + nFlags2 |= 0x2000000; + } + if (this.vm != null) { + nFlags2 |= 0x4000000; + } + stream.WriteULong(nFlags2); + //todo RkNumber switch (type) { case AscCommonExcel.XLSB.rt_CELL_REAL: @@ -15338,10 +16301,21 @@ if (formulaToWrite) { flags = this.toXLSBFormula(stream, formulaToWrite, isBlankFormula); } + + stream.WriteUShort(flags); + if (formulaToWrite) { flags = this.toXLSBFormulaExt(stream, formulaToWrite); } + + if (this.cm != null) { + stream.WriteULong(this.cm); + } + if (this.vm != null) { + stream.WriteULong(this.vm); + } + stream.XlsbEndRecord(); }; Cell.prototype.readAttributes = function(attr, uq) { @@ -15444,6 +16418,20 @@ stream.WriteULong(formulaToWrite.si); } }; + Cell.prototype.setDynamicArrayFlags = function () { + this.cm = 1; + // this.vm = 1; + // todo prop vm - determines the order in which dynamic arrays are expanded? + // presumably the metadata it refers to contains the estimated size of the array + // the size of the array is unique and has its own number in the order of initialization on the page + // for example array 3x1 initialized before than array 2x1 will have the number 1 in vm prop + }; + Cell.prototype.setCm = function(val) { + this.cm = val; + }; + Cell.prototype.setVm = function(val) { + this.vm = val; + }; //------------------------------------------------------------------------------------------------- function CCellWithFormula(ws, row, col) { @@ -15492,7 +16480,7 @@ var shared = parsed.getShared(); if (shared) { var index = wb.workbookFormulas.add(parsed).getIndexNumber(); - History.Add(AscCommonExcel.g_oUndoRedoSharedFormula, AscCH.historyitem_SharedFormula_ChangeFormula, null, null, new UndoRedoData_IndexSimpleProp(index, false, parsed.getFormulaRaw(), eventData.assemble), true); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoSharedFormula, AscCH.historyitem_SharedFormula_ChangeFormula, null, null, new UndoRedoData_IndexSimpleProp(index, false, parsed.getFormulaRaw(), eventData.assemble), true); wb.dependencyFormulas.addToChangedRange2(this.ws.getId(), shared.ref); } else { this.ws._getCell(this.nRow, this.nCol, function(cell) { @@ -16064,9 +17052,9 @@ return new Range(this.worksheet, r1, c1, r2, c2); } }; - Range.prototype.setValue=function(val, callback, isCopyPaste, byRef, ignoreHyperlink){ - History.Create_NewPoint(); - History.StartTransaction(); + Range.prototype.setValue=function(val, callback, isCopyPaste, byRef, ignoreHyperlink, dynamicRange){ + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); //не хотелось бы вводить дополнительный параметр, поэтому если byRef == null //то в качестве значения придёт формула, которой необходимо сделать offset в зависимости от range //при вызове данной функции обратить внимание на параметр byRef @@ -16089,13 +17077,14 @@ var offset = new AscCommon.CellBase(cell.nRow - activeCell.row, cell.nCol - activeCell.col); _val = "=" + _formula.changeOffset(offset, null, true).assembleLocale(AscCommonExcel.cFormulaFunctionToLocale, true, true); } - cell.setValue(_val, callback, isCopyPaste, byRef, ignoreHyperlink); + // when creating new array formulas, it is necessary to transfer information about the dynamic array because regular ref is used + cell.setValue(_val, callback, isCopyPaste, byRef, ignoreHyperlink, dynamicRange); }); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Range.prototype.setValue2=function(array, pushOnlyFirstMergedCell){ - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); //[{"text":"qwe","format":{"b":true, "i":false, "u":Asc.EUnderline.underlineNone, "s":false, "fn":"Arial", "fs": 12, "c": 0xff00ff, "va": "subscript" }},{}...] /* Устанавливаем значение в Range ячеек. В отличае от setValue, сюда мы попадаем только в случае ввода значения отличного от формулы. Таким образом, если в ячейке была формула, то для нее в графе очищается список ячеек от которых зависела. После чего выставляем флаг о необходимости пересчета. @@ -16113,20 +17102,20 @@ // if(cell.isEmpty()) // cell.Remove(); }); - History.EndTransaction(); + AscCommon.History.EndTransaction(); this.worksheet.workbook.oApi.onWorksheetChange(this.bbox); }; Range.prototype.setValueData = function(val){ - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); this._foreach(function(cell){ cell.setValueData(val); }); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Range.prototype.setCellStyle=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var oStyle; @@ -16154,7 +17143,7 @@ if (val === null) { return; } - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16194,7 +17183,7 @@ this.setNumFormatPivot(val); }; Range.prototype.setNum = function(val) { - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16215,7 +17204,7 @@ }); }; Range.prototype.getShiftedNumFormat=function(nShift, dDigitsCount){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); let newNumFormat; this._setPropertyNoEmpty(null, null, function(cell, nRow0, nCol0, nRowStart, nColStart){ newNumFormat = cell.getShiftedNumFormat(nShift, dDigitsCount); @@ -16223,7 +17212,7 @@ return newNumFormat; }; Range.prototype.setFont=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16245,7 +17234,7 @@ }); }; Range.prototype.setFontname=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16267,7 +17256,7 @@ }); }; Range.prototype.setFontsize=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16289,7 +17278,7 @@ }); }; Range.prototype.setFontcolor=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16311,7 +17300,7 @@ }); }; Range.prototype.setBold=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16333,7 +17322,7 @@ }); }; Range.prototype.setItalic=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16355,7 +17344,7 @@ }); }; Range.prototype.setUnderline=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16377,7 +17366,7 @@ }); }; Range.prototype.setStrikeout=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16399,7 +17388,7 @@ }); }; Range.prototype.setFontAlign=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16421,7 +17410,7 @@ }); }; Range.prototype.setAlignVertical=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16443,7 +17432,7 @@ }); }; Range.prototype.setAlignHorizontal=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16465,7 +17454,7 @@ }); }; Range.prototype.setFill=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16492,8 +17481,8 @@ return this.setFill(fill); }; Range.prototype.setBorderSrc=function(border){ - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); if (null == border) border = new Border(); this.createCellOnRowColCross(); @@ -16515,7 +17504,7 @@ function(cell){ cell.setBorder(border.clone()); }); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Range.prototype._setBorderMerge=function(bLeft, bTop, bRight, bBottom, oNewBorder, oCurBorder){ var oTargetBorder = new Border(); @@ -16634,7 +17623,7 @@ Range.prototype.setBorder=function(border){ //border = null очисть border //"ih" - внутренние горизонтальные, "iv" - внутренние вертикальные - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); var _this = this; var oBBox = this.bbox; this.createCellOnRowColCross(); @@ -16684,7 +17673,7 @@ } }; Range.prototype.setShrinkToFit=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16706,7 +17695,7 @@ }); }; Range.prototype.setWrap=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16728,7 +17717,7 @@ }); }; Range.prototype.setAngle=function(val){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16753,7 +17742,7 @@ if (val < 0) { return; } - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16773,7 +17762,7 @@ }); }; Range.prototype.setApplyProtection = function (val) { - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16793,7 +17782,7 @@ }); }; Range.prototype.setLocked = function (val) { - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16813,7 +17802,7 @@ }); }; Range.prototype.setHiddenFormulas = function (val) { - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16833,7 +17822,7 @@ }); }; Range.prototype.setType=function(type){ - History.Create_NewPoint(); + AscCommon.History.Create_NewPoint(); this.createCellOnRowColCross(); var fSetProperty = this._setProperty; var nRangeType = this._getRangeType(); @@ -16845,13 +17834,13 @@ }); }; Range.prototype.changeTextCase=function(type){ - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); this._setPropertyNoEmpty(null, null,function(cell){ cell.changeTextCase(type); }); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Range.prototype.getType=function(){ var type; @@ -17304,12 +18293,12 @@ if(null == type) type = Asc.c_oAscMergeOptions.Merge; var oBBox = this.bbox; - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); if(oBBox.r1 == oBBox.r2 && oBBox.c1 == oBBox.c2){ if(type == Asc.c_oAscMergeOptions.MergeCenter) this.setAlignHorizontal(AscCommon.align_Center); - History.EndTransaction(); + AscCommon.History.EndTransaction(); return; } if(this.hasMerged()) @@ -17319,7 +18308,7 @@ { //сбрасываем AlignHorizontal this.setAlignHorizontal(null); - History.EndTransaction(); + AscCommon.History.EndTransaction(); return; } } @@ -17632,14 +18621,14 @@ } this.worksheet.workbook.handlers.trigger("changeDocument", AscCommonExcel.docChangedType.mergeRange, null, this.bbox, this.worksheet.getId()); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Range.prototype.unmerge=function(bOnlyInRange){ - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); if(false == this.worksheet.workbook.bUndoChanges && false == this.worksheet.workbook.bRedoChanges) this.worksheet.mergeManager.remove(this.bbox); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Range.prototype._getHyperlinks=function(){ var nRangeType = this._getRangeType(); @@ -17732,8 +18721,8 @@ } if(false == bExist) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); if(false == this.worksheet.workbook.bUndoChanges && false == this.worksheet.workbook.bRedoChanges) { //удаляем ссылки с тем же адресом @@ -17756,21 +18745,21 @@ } if(false == this.worksheet.workbook.bUndoChanges && false == this.worksheet.workbook.bRedoChanges) this.worksheet.hyperlinkManager.add(val.Ref.getBBox0(), val); - History.EndTransaction(); + AscCommon.History.EndTransaction(); } }; Range.prototype.removeHyperlink = function (elem, removeStyle) { var bbox = this.bbox; if(false == this.worksheet.workbook.bUndoChanges && false == this.worksheet.workbook.bRedoChanges) { - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); var oChangeParam = { removeStyle: removeStyle }; if(elem) this.worksheet.hyperlinkManager.removeElement(elem, oChangeParam); else this.worksheet.hyperlinkManager.remove(bbox, !bbox.isOneCell(), oChangeParam); - History.EndTransaction(); + AscCommon.History.EndTransaction(); } }; Range.prototype.deleteCellsShiftUp=function(preDeleteAction){ @@ -17845,12 +18834,12 @@ var mergeManager = this.worksheet.mergeManager; this.worksheet.workbook.dependencyFormulas.lockRecal(); //todo вставить предупреждение, что будет unmerge - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); var oShiftGet = null; if (false == this.worksheet.workbook.bUndoChanges && (false == this.worksheet.workbook.bRedoChanges || this.worksheet.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; oShiftGet = mergeManager.shiftGet(this.bbox, true); var aMerged = oShiftGet.elems; if(null != aMerged.outer && aMerged.outer.length > 0) @@ -17868,7 +18857,7 @@ if(bChanged) oShiftGet = null; } - History.LocalChange = false; + AscCommon.History.LocalChange = false; } //сдвигаем ячейки if(bLeft) @@ -17887,12 +18876,12 @@ } if (false == this.worksheet.workbook.bUndoChanges && (false == this.worksheet.workbook.bRedoChanges || this.worksheet.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; mergeManager.shift(this.bbox, !bLeft, true, oShiftGet); this.worksheet.hyperlinkManager.shift(this.bbox, !bLeft, true); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } - History.EndTransaction(); + AscCommon.History.EndTransaction(); this.worksheet.workbook.dependencyFormulas.unlockRecal(); return true; }; @@ -17956,12 +18945,12 @@ var mergeManager = this.worksheet.mergeManager; this.worksheet.workbook.dependencyFormulas.lockRecal(); //todo вставить предупреждение, что будет unmerge - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); var oShiftGet = null; if (false == this.worksheet.workbook.bUndoChanges && (false == this.worksheet.workbook.bRedoChanges || this.worksheet.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; oShiftGet = mergeManager.shiftGet(this.bbox, false); var aMerged = oShiftGet.elems; if(null != aMerged.outer && aMerged.outer.length > 0) @@ -17979,7 +18968,7 @@ if(bChanged) oShiftGet = null; } - History.LocalChange = false; + AscCommon.History.LocalChange = false; } //сдвигаем ячейки if(bUp) @@ -17998,12 +18987,12 @@ } if (false == this.worksheet.workbook.bUndoChanges && (false == this.worksheet.workbook.bRedoChanges || this.worksheet.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; mergeManager.shift(this.bbox, !bUp, false, oShiftGet); this.worksheet.hyperlinkManager.shift(this.bbox, !bUp, false); - History.LocalChange = false; + AscCommon.History.LocalChange = false; } - History.EndTransaction(); + AscCommon.History.EndTransaction(); this.worksheet.workbook.dependencyFormulas.unlockRecal(); return true; }; @@ -18031,8 +19020,8 @@ return null; }; Range.prototype.cleanFormat=function(){ - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); this.unmerge(); this._setPropertyNoEmpty(function(row){ row.setStyle(null); @@ -18047,22 +19036,33 @@ // if(cell.isEmpty()) // cell.Remove(); }); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; - Range.prototype.cleanText=function(){ + Range.prototype.cleanText = function () { + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); + this._setPropertyNoEmpty(null, null, + function (cell, nRow0, nCol0, nRowStart, nColStart) { + cell.setValue(""); + // if(cell.isEmpty()) + // cell.Remove(); + }); + AscCommon.History.EndTransaction(); + }; + Range.prototype.cleanTextExceptFirst = function () { History.Create_NewPoint(); History.StartTransaction(); this._setPropertyNoEmpty(null, null, - function(cell, nRow0, nCol0, nRowStart, nColStart){ - cell.setValue(""); - // if(cell.isEmpty()) - // cell.Remove(); - }); + function (cell, nRow0, nCol0, nRowStart, nColStart) { + if (!(cell.nRow === nRowStart && cell.nCol === nColStart)) { + cell.setValue(""); + } + }); History.EndTransaction(); }; Range.prototype.cleanAll=function(){ - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); this.unmerge(); //удаляем только гиперссылки, которые полностью лежат в области var aHyperlinks = this.worksheet.hyperlinkManager.get(this.bbox); @@ -18082,16 +19082,16 @@ }); this.worksheet.workbook.dependencyFormulas.calcTree(); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Range.prototype.cleanHyperlinks=function(){ - History.Create_NewPoint(); - History.StartTransaction(); + AscCommon.History.Create_NewPoint(); + AscCommon.History.StartTransaction(); //удаляем только гиперссылки, которые полностью лежат в области var aHyperlinks = this.worksheet.hyperlinkManager.get(this.bbox); for(var i = 0, length = aHyperlinks.inner.length; i < length; ++i) this.removeHyperlink(aHyperlinks.inner[i]); - History.EndTransaction(); + AscCommon.History.EndTransaction(); }; Range.prototype.sort = function (nOption, nStartRowCol, sortColor, opt_guessHeader, opt_by_row, opt_custom_sort) { var bbox = this.bbox; @@ -18226,20 +19226,20 @@ } } - History.Create_NewPoint(); - var oSelection = History.GetSelection(); + AscCommon.History.Create_NewPoint(); + var oSelection = AscCommon.History.GetSelection(); if (null != oSelection) { oSelection = oSelection.clone(); oSelection.assign(nColFirst0, nRowFirst0, nLastCol0, nLastRow0); - History.SetSelection(oSelection); - History.SetSelectionRedo(oSelection); + AscCommon.History.SetSelection(oSelection); + AscCommon.History.SetSelectionRedo(oSelection); } var oUndoRedoBBox = new UndoRedoData_BBox({r1: nRowFirst0, c1: nColFirst0, r2: nLastRow0, c2: nLastCol0}); oRes = new AscCommonExcel.UndoRedoData_SortData(oUndoRedoBBox, aSortData, opt_by_row); this._sortByArray(oUndoRedoBBox, aSortData, null, opt_by_row); var range = opt_by_row ? new Asc.Range(nColFirst0, 0, nLastCol0, gc_nMaxRow0) : new Asc.Range(0, nRowFirst0, gc_nMaxCol0, nLastRow0); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_Sort, this.worksheet.getId(), range, oRes) + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_Sort, this.worksheet.getId(), range, oRes) } this.worksheet.workbook.dependencyFormulas.unlockRecal(); return oRes; @@ -18595,7 +19595,7 @@ //сортируются только одинарные гиперссылки, все неодинарные оставляем var aSortedHyperlinks = [], hyp; if (false == this.worksheet.workbook.bUndoChanges && (false == this.worksheet.workbook.bRedoChanges || this.worksheet.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; var aHyperlinks = this.worksheet.hyperlinkManager.get(this.bbox); for (i = 0, length = aHyperlinks.inner.length; i < length; i++) { var elem = aHyperlinks.inner[i]; @@ -18617,7 +19617,7 @@ } } } - History.LocalChange = false; + AscCommon.History.LocalChange = false; } var tempRange = this.worksheet.getRange3(oBBox.r1, oBBox.c1, oBBox.r2, oBBox.c2); @@ -18689,7 +19689,7 @@ } if (false == this.worksheet.workbook.bUndoChanges && (false == this.worksheet.workbook.bRedoChanges || this.worksheet.workbook.bCollaborativeChanges)) { - History.LocalChange = true; + AscCommon.History.LocalChange = true; //восстанавливаем удаленые гиперссылки if (aSortedHyperlinks.length > 0) { for (i = 0, length = aSortedHyperlinks.length; i < length; i++) { @@ -18697,7 +19697,7 @@ this.worksheet.hyperlinkManager.add(hyp.Ref.getBBox0(), hyp); } } - History.LocalChange = false; + AscCommon.History.LocalChange = false; } }; Range.prototype.fillData=function(data){ @@ -18864,20 +19864,20 @@ var oCanPromote = _canPromote(from, wsFrom, to, wsTo, false, 1, 1, bVertical, nIndex); if(null != oCanPromote) { - History.Create_NewPoint(); - var oSelection = History.GetSelection(); + AscCommon.History.Create_NewPoint(); + var oSelection = AscCommon.History.GetSelection(); if(null != oSelection) { oSelection = oSelection.clone(); oSelection.assign(from.c1, from.r1, from.c2, from.r2); - History.SetSelection(oSelection); + AscCommon.History.SetSelection(oSelection); } - var oSelectionRedo = History.GetSelectionRedo(); + var oSelectionRedo = AscCommon.History.GetSelectionRedo(); if(null != oSelectionRedo) { oSelectionRedo = oSelectionRedo.clone(); oSelectionRedo.assign(to.c1, to.r1, to.c2, to.r2); - History.SetSelectionRedo(oSelectionRedo); + AscCommon.History.SetSelectionRedo(oSelectionRedo); } //удаляем merge ячейки в to(после _canPromote должны остаться только inner) wsTo.mergeManager.remove(to, true); @@ -18937,15 +19937,15 @@ var nWidth = oBBox.c2 - oBBox.c1 + 1; var nHeight = oBBox.r2 - oBBox.r1 + 1; - History.Create_NewPoint(); - var oSelection = History.GetSelection(); + AscCommon.History.Create_NewPoint(); + var oSelection = AscCommon.History.GetSelection(); if(null != oSelection) { oSelection = oSelection.clone(); oSelection.assign(oBBox.c1, oBBox.r1, oBBox.c2, oBBox.r2); - History.SetSelection(oSelection); + AscCommon.History.SetSelection(oSelection); } - var oSelectionRedo = History.GetSelectionRedo(); + var oSelectionRedo = AscCommon.History.GetSelectionRedo(); if(null != oSelectionRedo) { oSelectionRedo = oSelectionRedo.clone(); @@ -18978,7 +19978,7 @@ oSelectionRedo.assign(oBBox.c1 + nIndex, oBBox.r1, oBBox.c2, oBBox.r2); } } - History.SetSelectionRedo(oSelectionRedo); + AscCommon.History.SetSelectionRedo(oSelectionRedo); } _promoteFromTo(oBBox, this.worksheet, oCanPromote.to, this.worksheet, true, oCanPromote, bCtrl, bVertical, nIndex); }; @@ -19108,7 +20108,7 @@ const oDefaultCultureInfo = AscCommon.g_oDefaultCultureInfo; wb.dependencyFormulas.lockRecal(); - History.StartTransaction(); + AscCommon.History.StartTransaction(); var oldExcludeHiddenRows = wsFrom.bExcludeHiddenRows; if(wsFrom.autoFilters.bIsExcludeHiddenRows(from, wsFrom.selectionRange.activeCell)){ @@ -19151,7 +20151,7 @@ var oOldProps = row.getHeightProp(); if (false === oOldProps.isEqual(oNewProps)) { row.setHeightProp(oNewProps); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowProp, wsTo.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(nCurIndex, true, oOldProps, oNewProps)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_RowProp, wsTo.getId(), row._getUpdateRange(), new UndoRedoData_IndexSimpleProp(nCurIndex, true, oOldProps, oNewProps)); } } }); @@ -19197,7 +20197,7 @@ if (false == oOldProps.isEqual(oNewProps)) { col.setWidthProp(oNewProps); wsTo.initColumn(col); - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, wsTo.getId(), new Asc.Range(nCurIndex, 0, nCurIndex, gc_nMaxRow0), new UndoRedoData_IndexSimpleProp(nCurIndex, false, oOldProps, oNewProps)); + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ColProp, wsTo.getId(), new Asc.Range(nCurIndex, 0, nCurIndex, gc_nMaxRow0), new UndoRedoData_IndexSimpleProp(nCurIndex, false, oOldProps, oNewProps)); } } } @@ -19481,7 +20481,7 @@ var rangeFormulaArray = oCopyCell.ws.getRange3(intersectionTo.r1, intersectionTo.c1, intersectionTo.r2, intersectionTo.c2); rangeFormulaArray.setValue("=" + _p_.assemble(true), function (r) {}, null, intersectionTo); - History.Add(AscCommonExcel.g_oUndoRedoArrayFormula, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoArrayFormula, AscCH.historyitem_ArrayFromula_AddFormula, oCopyCell.ws.getId(), new Asc.Range(intersectionTo.c1, intersectionTo.r1, intersectionTo.c2, intersectionTo.r2), new AscCommonExcel.UndoRedoData_ArrayFormula(intersectionTo, "=" + oCopyCell.getFormulaParsed().assemble(true))); @@ -19493,7 +20493,12 @@ _p_ = oFromCell.getFormulaParsed().clone(null, oFromCell, this); offset = oCopyCell.getOffset2(oFromCell.getName()); assemb = _p_.changeOffset(offset).assemble(true); - oCopyCell.setFormula(assemb); + let oCaProps = {}; + if (_p_.ca) { // for recursion formulas + oCaProps.ca = _p_.ca; + oCaProps.oldValue = oFromCell.getNumberValue(); + } + oCopyCell.setFormula(assemb, null, null, oCaProps); } } @@ -19665,7 +20670,7 @@ } wsFrom.excludeHiddenRows(oldExcludeHiddenRows); - History.EndTransaction(); + AscCommon.History.EndTransaction(); wb.dependencyFormulas.unlockRecal(); } Range.prototype.createCellOnRowColCross=function(){ @@ -19706,69 +20711,208 @@ this.worksheet._moveRange(this.bbox, oBBoxTo, copyRange, wsTo); }; - function RowIterator() { + function SweepLineRowIterator() { + this.cellsByCol = null; + this.row = -1; + this.col = -1; + this.colData = null; + + this.colDatas = []; + this.colDatasCol = []; + this.colDatasIndex = 0; + + this.toInsert = []; + this.toInsertIndex = 0; + this.toDelete = []; + this.toDeleteIndex = 0; + + this.r1 = []; + this.r1Index = 0; + this.r2 = []; + this.r2Index = 0; } - RowIterator.prototype.init = function(ws, r1, c1, c2) { - this.ws = ws; - this.cell = new Cell(ws); - this.c1 = c1; - this.c2 = Math.min(c2, ws.getColDataLength() - 1); - this.indexRow = r1; - this.indexCol = 0; + SweepLineRowIterator.prototype.init = function (cellsByCol, r1, c1, c2) { + this.cellsByCol = cellsByCol; + this.row = r1 - 1; + this.col = -1; + this.colData = null; this.colDatas = []; - this.colDatasIndex = []; - for (var i = this.c1; i <= this.c2; i++) { - var colData = this.ws.getColDataNoEmpty(i); - if (colData) { - this.colDatas.push(colData); - this.colDatasIndex.push(i); + this.colDatasCol = []; + this.colDatasIndex = 0; + + this.toInsert = []; + this.toInsertIndex = 0; + this.toDelete = []; + this.toDeleteIndex = 0; + this.r1 = []; + this.r1Index = 0; + this.r2 = []; + this.r2Index = 0; + + c2 = Math.min(c2, this.cellsByCol.length - 1); + for (let i = c1; i <= c2; i++) { + let colData = this.cellsByCol[i]; + if (colData && r1 <= colData.getMaxIndex()) { + //minIndex is max of + let elem = {col: i, minIndex: Math.max(r1, colData.getMinIndex()), maxIndex: colData.getMaxIndex(), isInserted: false} + this.r1.push(elem); + this.r2.push(elem); + } + } + //Array.sort is stable in all browsers + //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility + this.r1.sort(function (a, b) { + return a.minIndex - b.minIndex + }); + this.r2.sort(function (a, b) { + return a.maxIndex - b.maxIndex + }); + }; + SweepLineRowIterator.prototype.setRow = function (row) { + while (this.row < row) { + //structure of r1 and r2 forces rows to be changed with fixed step + this.nextRow(); + if (this.row < row) { + while (this.nextCol()) { + } } } + } + SweepLineRowIterator.prototype.nextRow = function () { + this.row++; + this.col = -1; + this.colData = null; + this.colDatasIndex = 0; + while (this.r1Index < this.r1.length && this.row >= this.r1[this.r1Index].minIndex) { + let elem = this.r1[this.r1Index]; + if (this.row <= elem.maxIndex) { + elem.isInserted = true; + this.toInsert.push(elem.col); + } + this.r1Index++; + } + while (this.r2Index < this.r2.length && this.row > this.r2[this.r2Index].maxIndex) { + let elem = this.r2[this.r2Index]; + if (elem.isInserted) { + this.toDelete.push(elem.col); + } + this.r2Index++; + } + } + SweepLineRowIterator.prototype.nextCol = function () { + this.col = -1; + this.colData = null; + if (this.colDatasIndex < this.colDatasCol.length) { + this.col = this.colDatasCol[this.colDatasIndex]; + this.colData = this.colDatas[this.colDatasIndex]; + this.colDatasIndex++; + //delete + let toDeleteOld = this.toDeleteIndex; + while (this.toDeleteIndex < this.toDelete.length && this.toDelete[this.toDeleteIndex] === this.col) { + this.toDeleteIndex++; + if (this.colDatasIndex < this.colDatasCol.length) { + this.col = this.colDatasCol[this.colDatasIndex]; + this.colData = this.colDatas[this.colDatasIndex]; + this.colDatasIndex++; + } else { + this.col = -1; + this.colData = undefined; + } + } + if (toDeleteOld !== this.toDeleteIndex) { + let deleteCount = this.toDeleteIndex - toDeleteOld; + this.colDatasIndex -= -1 === this.col ? deleteCount : deleteCount + 1; + this.colDatas.splice(this.colDatasIndex, deleteCount); + this.colDatasCol.splice(this.colDatasIndex, deleteCount); + if (this.colDatasIndex < this.colDatasCol.length) { + this.col = this.colDatasCol[this.colDatasIndex]; + this.colData = this.colDatas[this.colDatasIndex]; + this.colDatasIndex++; + } else { + this.col = -1; + this.colData = undefined; + } + } + } + //insert + let toInsertOld = this.toInsertIndex; + if (-1 !== this.col) { + while (this.toInsertIndex < this.toInsert.length && this.toInsert[this.toInsertIndex] < this.col) { + this.toInsertIndex++; + } + } else { + this.toInsertIndex = this.toInsert.length; + } + if (toInsertOld !== this.toInsertIndex) { + let cols = []; + let datas = []; + for (let i = toInsertOld; i < this.toInsertIndex; ++i) { + let curCol = this.toInsert[i]; + let colData = this.cellsByCol[curCol]; + if (colData && this.row <= colData.getMaxIndex()) { + cols.push(curCol); + datas.push(colData); + } + } + if (-1 !== this.col) { + this.colDatasIndex--; + } + this.colDatas.splice.apply(this.colDatas, [this.colDatasIndex, 0].concat(datas)); + this.colDatasCol.splice.apply(this.colDatasCol, [this.colDatasIndex, 0].concat(cols)); + + if (this.colDatasIndex < this.colDatasCol.length) { + this.col = this.colDatasCol[this.colDatasIndex]; + this.colData = this.colDatas[this.colDatasIndex]; + this.colDatasIndex++; + } else { + this.col = -1; + this.colData = undefined; + } + } + return -1 !== this.col; + }; + + function RowIterator() { + } + + RowIterator.prototype.init = function (ws, r1, c1, c2) { + this.ws = ws; + this.cell = new Cell(ws); this.ws.workbook.loadCells.push(this.cell); + + this.iter = new SweepLineRowIterator(); + this.iter.init(ws.cellsByCol, r1, c1, c2); }; - RowIterator.prototype.release = function() { + RowIterator.prototype.release = function () { this.cell.saveContent(true); this.ws.workbook.loadCells.pop(); }; - RowIterator.prototype.setRow = function(index) { - this.indexRow = index; - this.indexCol = 0; + RowIterator.prototype.setRow = function (index) { + this.iter.setRow(index); }; - RowIterator.prototype.next = function() { + RowIterator.prototype.next = function () { var wb = this.ws.workbook; this.cell.saveContent(true); - for (; this.indexCol < this.colDatasIndex.length; this.indexCol++) { - var colData = this.colDatas[this.indexCol]; - var nCol = this.colDatasIndex[this.indexCol]; - if (colData.hasIndex(this.indexRow)) { - var targetCell = null; - for (var k = 0; k < wb.loadCells.length - 1; ++k) { - var elem = wb.loadCells[k]; - if (elem.nRow == this.indexRow && elem.nCol == nCol && this.ws === elem.ws) { - targetCell = elem; - break; - } - } - if (null === targetCell) { - if (this.cell.loadContent(this.indexRow, nCol, colData)) { - this.indexCol++; - return this.cell; - } - } else { - this.indexCol++; - return targetCell; + while (this.iter.nextCol()) { + var nRow = this.iter.row; + var nCol = this.iter.col; + var colData = this.iter.colData; + var targetCell = null; + for (var k = 0; k < wb.loadCells.length - 1; ++k) { + var elem = wb.loadCells[k]; + if (elem.nRow === nRow && elem.nCol === nCol && this.ws === elem.ws) { + targetCell = elem; + break; } - } else if (colData.getMaxIndex() < this.indexRow) { - //splice by one element is too slow - var endIndex = this.indexCol + 1; - while (endIndex < this.colDatasIndex.length && this.colDatas[endIndex].getMaxIndex() < this.indexRow) { - endIndex++; + } + if (null === targetCell) { + if (this.cell.loadContent(nRow, nCol, colData)) { + return this.cell; } - this.colDatas.splice(this.indexCol, endIndex - this.indexCol); - this.colDatasIndex.splice(this.indexCol, endIndex - this.indexCol); - this.indexCol--; + } else { + return targetCell; } } }; @@ -19798,6 +20942,7 @@ this.nColLength = this.bbox.c2 - this.bbox.c1 + 1; } this.bFillHandleRightClick = false; + this.bOneSelectedCell = false; } PromoteHelper.prototype = { add: function(nRow, nCol, nVal, bDelimiter, sPrefix, padding, bDate, oAdditional, aTimePeriods){ @@ -19815,6 +20960,15 @@ this.oDataRow[nRow] = row; } row[nCol] = new cDataRow(nCol, nVal, bDelimiter, sPrefix, padding, bDate, oAdditional, aTimePeriods); + // Checking Date format has Date & Time + if (bDate && oAdditional.xfs && oAdditional.xfs.num && oAdditional.xfs.num.getFormat()) { + let oNumFormat = oNumFormatCache.get(oAdditional.xfs.num.getFormat()); + if (oNumFormat.isTimeFormat() && oNumFormat.isDateFormat()) { + row[nCol].setIsDateTime(true); + } else if (oNumFormat.isTimeFormat() && !oNumFormat.isDateFormat()) { + row[nCol].setIsTime(true); + } + } }, isOnlyIntegerSequence: function(){ var bRes = true; @@ -19944,7 +21098,7 @@ var nMaxPadding = 0; //анализируем последовательность, если числа расположены не на одинаковом расстоянии, то считаем их сплошной последовательностью //последовательность с промежутками может быть только целочисленной - for(var i = 0, length = aCurSequence.length; i < length; i++) { + for(let i = 0, length = aCurSequence.length; i < length; i++) { var data = aCurSequence[i]; var nCurX = data.getCol(); let nCurVal = data.getVal(); @@ -19984,7 +21138,7 @@ var bExistSpace = false; nPrevX = null; var aDigits = []; - for(var i = 0, length = aCurSequence.length; i < length; i++) { + for (let i = 0, length = aCurSequence.length; i < length; i++) { var data = aCurSequence[i]; data.setPadding(nMaxPadding); var nCurX = data.getCol(); @@ -19995,25 +21149,93 @@ bExistSpace = true; var y = data.getVal(); //даты автозаполняем только по целой части - if(data.getIsDate()) + if(data.getIsDate() && !data.getIsDateTime() && !data.getIsMixedDateFormat() && !data.getIsTime()) { y = parseInt(y); + } aDigits.push({x: x, y: y}); nPrevX = nCurX; } if(aDigits.length > 0) { - var oSequence = this._promoteSequence(aDigits); - if(1 == aDigits.length && this.bReverse) { - //меняем коэффициенты для случая одного числа в последовательности, иначе она в любую сторону будет возрастающей - oSequence.a1 *= -1; + let bMixedDateFormat = oFirstData.getIsMixedDateFormat(); + let bTime = oFirstData.getIsTime(); + let oSequence = null; + + if (bMixedDateFormat) { + /* In a mixed date format, the promotion sequence should be calculated similarly to the Date format. + But, the original array should be saved to use the time portion of the cell with the Date & Time format + as a constant value for the correct sequence. */ + let aIntDigits = aDigits.map(function (elem) { + return {x: elem.x, y: parseInt(elem.y)}; + }); + oSequence = this._promoteSequence(aIntDigits); + } else { + oSequence = this._promoteSequence(aDigits); + } + if (aDigits.length === 1) { + this.setIsOneSelectedCell(true); + if (bTime) { + // For one selected cell, step for Time format must be 1 hour. + // The time component of a serial value increases by 1/86,400 each second. + oSequence.a1 = (1 / 86400) * 3600; + } + if (this.bReverse) { + //меняем коэффициенты для случая одного числа в последовательности, иначе она в любую сторону будет возрастающей + oSequence.a1 *= -1; + if (bTime && oSequence.a0 === 0) { + oSequence.a0 = 1; + } + } } - var bIsIntegerSequence = oSequence.a1 != parseInt(oSequence.a1); //для дат и чисел с префиксом автозаполняются только целочисленные последовательности + let bIsNotIntegerSequence = oSequence.a1 !== parseInt(oSequence.a1); let sPrefix = oFirstData.getPrefix(); let bDate = oFirstData.getIsDate(); + let bDateTime = oFirstData.getIsDateTime(); let bDelimiter = oFirstData.getDelimiter(); - if(!((null != sPrefix || true == bDate) && bIsIntegerSequence)) { - if(false == bWithSpace && bExistSpace) { - for(var i = nMinIndex; i <= nMaxIndex; i++) { + // For Date format + let bStepForDateIsZero = bDate && oSequence.a1 === 0; + let bIntStartValue = bDate && oSequence.a0 === parseInt(oSequence.a0); + // For Date & Time format + let bDayOfDateDiff = aDigits.length > 1 ? Math.floor(aDigits[0].y) !== Math.floor(aDigits[1].y) : true; + let bDateTimeSeqIsCorrect = aDigits[0].y.toFixed(3) === oSequence.a0.toFixed(3); + // If Date & Time format hasn't diff in days of date, but sequence by time is not correct we use step = 0 + // and start sequence point is equal first element of aDigits or for reverse sequence the last element of aDigit. + if (bDateTime && !bDayOfDateDiff && !bDateTimeSeqIsCorrect && (oSequence.a1 < 1 && oSequence.a1 > -1)) { + oSequence.a0 = this.bReverse ? aDigits[aDigits.length - 1].y : aDigits[0].y; + oSequence.a1 = parseInt(oSequence.a1); + } + if (bMixedDateFormat) { + // The start element needs to add part of the time from the first (or last for reverse sequences) cell + // with Date & Time format from the selected range. + let aDigitsWithDateTime = aDigits.filter(function(item) { + return item.y !== parseInt(item.y); + }); + let nDateTimeVal = this.bReverse ? aDigitsWithDateTime[aDigitsWithDateTime.length - 1].y : aDigitsWithDateTime[0].y; + let nTimePart = nDateTimeVal - parseInt(nDateTimeVal); + oSequence.a0 = parseInt(oSequence.a0) + nTimePart; + } + if (bTime && bDayOfDateDiff && aDigits.length > 1) { + if (this.bReverse && aDigits[0].y - aDigits[aDigits.length - 1].y >= 1) { + let nDateVal = parseInt(aDigits[aDigits.length - 1].y) + oSequence.a0 = (oSequence.a0 - parseInt(oSequence.a0)) + nDateVal; + } + oSequence.a1 = oSequence.a1 - parseInt(oSequence.a1); + } + if(!((sPrefix != null || (bDate && !bDateTime && !bMixedDateFormat && !bTime)) && bIsNotIntegerSequence)) { + // If for Date or Date & Time format the sequence is not correct or sequence step is 0, skip work with oSequence + if (bDate) { + if (bStepForDateIsZero && !bDateTime && !bMixedDateFormat) { + return; + } + if (!bIntStartValue && !bDateTime && !bTime) { + return; + } + if (bDateTime && bDayOfDateDiff && !bDateTimeSeqIsCorrect) { + return; + } + } + if(!bWithSpace && bExistSpace) { + for (let i = nMinIndex; i <= nMaxIndex; i++) { var data = row[i]; if(null == data) { data = new cDataRow(i, null, bDelimiter, sPrefix, null, bDate); @@ -20023,7 +21245,7 @@ } } else { - for(var i = 0, length = aCurSequence.length; i < length; i++) { + for(let i = 0, length = aCurSequence.length; i < length; i++) { var nCurX = aCurSequence[i].nCol; if(null != nCurX) row[nCurX].setSequence(oSequence); @@ -20053,6 +21275,17 @@ for(var j = 0, length2 = aSortIndex.length; j < length2; j++) { var nColIndex = aSortIndex[j]; var rowData = row[nColIndex]; + let rowDataNext = nColIndex + 1 < length2 && row[nColIndex + 1]; + let bDate = rowData.getIsDate(); + let bDateTime = rowData.getIsDateTime(); + let bDateNextRow = rowDataNext && rowDataNext.getIsDate(); + let bDateTimeNextRow = rowDataNext && rowDataNext.getIsDateTime(); + if ((bDate && bDateTime && bDateNextRow && !bDateTimeNextRow) || (bDate && !bDateTime && bDateNextRow && bDateTimeNextRow)) { + let nFirstColIndex = aSortIndex[0]; + let oFirstRowData = row[nFirstColIndex]; + oFirstRowData.setIsMixedDateFormat(true); + oFirstRowData.setIsDateTime(false); + } var bAddToSequence = false; let nVal = rowData.getVal(); let bDelimiter = rowData.getDelimiter(); @@ -20083,18 +21316,28 @@ this.oCurRow = this.oDataRow[index]; this.nCurColIndex = 0; }, - getNext: function(){ - var oRes = null; + getNext: function() { + let oRes = null; if(this.oCurRow) { - var oRes = this.oCurRow[this.nCurColIndex]; - if(null != oRes) { + oRes = this.oCurRow[this.nCurColIndex]; + if(oRes != null) { oRes.setCurValue(null); - if(null != oRes.getSequence()) { - var sequence = oRes.getSequence(); - if((oRes.getIsDate() && !oRes.getTimePeriods()) || null != oRes.getPrefix()) - oRes.setCurValue( Math.abs(sequence.a1 * sequence.nX + sequence.a0)); - else + if(oRes.getSequence() != null) { + let sequence = oRes.getSequence(); + if(oRes.getPrefix() != null) { + oRes.setCurValue(Math.abs(sequence.a1 * sequence.nX + sequence.a0)); + } else if (oRes.getIsDate() && !oRes.getTimePeriods()) { + let nCurValue = sequence.a1 * sequence.nX + sequence.a0; + if (nCurValue >= 0 || (oRes.getIsDateTime() && parseInt(sequence.a1) !== sequence.a1)) { + oRes.setCurValue(nCurValue); + } else if (oRes.getIsTime() && nCurValue < 0) { + // Reset nX and start from beginning + sequence.nX = this.getIsOneSelectedCell() ? 1 : 0; + oRes.setCurValue(sequence.a1 * sequence.nX + sequence.a0); + } + } else { oRes.setCurValue(sequence.a1 * sequence.nX + sequence.a0); + } sequence.nX++; } } @@ -20109,6 +21352,12 @@ }, setFillHandleRightClick: function (bFillHandleRightClick) { this.bFillHandleRightClick = bFillHandleRightClick; + }, + getIsOneSelectedCell: function () { + return this.bOneSelectedCell; + }, + setIsOneSelectedCell: function (bOneSelectedCell) { + this.bOneSelectedCell = bOneSelectedCell; } }; @@ -20244,6 +21493,7 @@ } //------------------------------------------------------------------------------------------------- /** + * Class represents data using for calculating a sequence of filling cells in autofill. * @constructor */ function cDataRow(nCol, nVal, bDelimiter, sPrefix, nPadding, bDate, oAdditional, aTimePeriods) { @@ -20253,50 +21503,172 @@ this.sPrefix = sPrefix; this.nPadding = nPadding; this.bDate = bDate; + this.bDateTime = false; + this.bTime = false; + this.bMixedDateFormat = false; this.oAdditional = oAdditional; this.aTimePeriods = aTimePeriods; this.oSequence = null; this.nCurValue = null; } + + /** + * Method returns column number + * @memberof cDataRow + * @returns {number} + */ cDataRow.prototype.getCol = function() { return this.nCol; }; + /** + * Method returns value of current cell + * @memberof cDataRow + * @returns {number} + */ cDataRow.prototype.getVal = function() { return this.nVal; }; + /** + * Method returns flag which checks cell has delimiter. + * @memberof cDataRow + * @returns {boolean} + */ cDataRow.prototype.getDelimiter = function() { return this.bDelimiter; }; + /** + * Method returns prefix of current cell + * @memberof cDataRow + * @returns {string} + */ cDataRow.prototype.getPrefix = function () { return this.sPrefix; }; + /** + * Method returns padding of current cell + * @memberof cDataRow + * @returns {number} + */ cDataRow.prototype.getPadding = function() { return this.nPadding; }; + /** + * Method sets padding of current cell + * @memberof cDataRow + * @param {number} nPadding + */ cDataRow.prototype.setPadding = function(nPadding) { this.nPadding = nPadding; }; + /** + * Method returns flag which recognizes a current cell has format Date or not. + * @memberof cDataRow + * @returns {boolean} + */ cDataRow.prototype.getIsDate = function() { return this.bDate; }; + /** + * Method returns flag which recognizes a current cell has format Date & Time or not. + * @memberof cDataRow + * @returns {boolean} + */ + cDataRow.prototype.getIsDateTime = function() { + return this.bDateTime; + }; + /** + * Method sets flag which recognizes a current cell has format Date & Time or not. + * @memberof cDataRow + * @param {boolean} bDateTime + */ + cDataRow.prototype.setIsDateTime = function(bDateTime) { + this.bDateTime = bDateTime; + }; + /** + * Method returns flag which recognizes a current cell has mixed format of Dates or not. + * @memberof cDataRow + * @returns {boolean} + */ + cDataRow.prototype.getIsMixedDateFormat = function () { + return this.bMixedDateFormat; + }; + /** + * Method sets flag which recognizes a current cell has mixed format of Dates or not. + * @memberof cDataRow + * @param {boolean} bMixedDateFormat + */ + cDataRow.prototype.setIsMixedDateFormat = function (bMixedDateFormat) { + this.bMixedDateFormat = bMixedDateFormat; + }; + /** + * Method returns flag which recognizes a current cell has format Time or not. + * @memberof cDataRow + * @returns {boolean} + */ + cDataRow.prototype.getIsTime = function() { + return this.bTime; + }; + /** + * Method sets flag which recognizes a current cell has format Time or not. + * @param {boolean} bTime + */ + cDataRow.prototype.setIsTime = function(bTime) { + this.bTime = bTime; + }; + /** + * Method returns additional data + * @memberof cDataRow + * @returns {Cell} + */ cDataRow.prototype.getAdditional = function() { return this.oAdditional; }; + /** + * Method returns array of time periods + * @memberof cDataRow + * @returns {[]} + */ cDataRow.prototype.getTimePeriods = function () { return this.aTimePeriods; }; + /** + * Method returns sequence of calculated step and start cell. For fill next cells in autofill. + * @memberof cDataRow + * @returns {null|object} + */ cDataRow.prototype.getSequence = function() { return this.oSequence; }; + /** + * Method sets sequence of calculated step and start cell. For fill next cells in autofill. + * @memberof cDataRow + * @param {object} oSequence + */ cDataRow.prototype.setSequence = function (oSequence) { this.oSequence = oSequence; }; + /** + * Method returns the current calculated value for cell who need to be filled. + * @memberof cDataRow + * @returns {number} + */ cDataRow.prototype.getCurValue = function() { return this.nCurValue; }; + /** + * Method sets the current calculated value for cell who need to be filled. + * @memberof cDataRow + * @param {number} nCurValue + */ cDataRow.prototype.setCurValue = function(nCurValue) { this.nCurValue = nCurValue; }; + /** + * Method compares 2 DataRow objects for equality + * @memberof cDataRow + * @param {cDataRow} oComparedRowData + * @returns {boolean} + */ cDataRow.prototype.compare = function(oComparedRowData) { let sComparedTimePeriods = oComparedRowData.getTimePeriods() ? oComparedRowData.getTimePeriods().join() : null; let sTimePeriods = this.getTimePeriods() ? this.getTimePeriods().join() : null; @@ -20309,7 +21681,12 @@ return bComparedDelimiter === bDelimiter && sComparedPrefix === sPrefix && bComparedDate === bDate && sComparedTimePeriods === sTimePeriods; }; - + /** + * Method compares bDate and Prefix for equality between two DataRow objects. + * @memberof cDataRow + * @param {cDataRow} oComparedRowData + * @returns {boolean} + */ cDataRow.prototype.prefixDataCompare = function(oComparedRowData) { let sComparedPrefix = oComparedRowData.getPrefix(); let sPrefix = this.getPrefix(); @@ -20765,14 +22142,14 @@ let nWidth = oBBox.c2 - oBBox.c1 + 1; let nHeight = oBBox.r2 - oBBox.r1 + 1; - History.Create_NewPoint(); - let oSelection = History.GetSelection(); + AscCommon.History.Create_NewPoint(); + let oSelection = AscCommon.History.GetSelection(); if (null != oSelection) { oSelection = oSelection.clone(); oSelection.assign(oBBox.c1, oBBox.r1, oBBox.c2, oBBox.r2); - History.SetSelection(oSelection); + AscCommon.History.SetSelection(oSelection); } - let oSelectionRedo = History.GetSelectionRedo(); + let oSelectionRedo = AscCommon.History.GetSelectionRedo(); if (null != oSelectionRedo) { oSelectionRedo = oSelectionRedo.clone(); if (this.getVertical()) { @@ -20788,7 +22165,7 @@ oSelectionRedo.assign(oBBox.c1, oBBox.r1, oBBox.c1 + nIndex - 1, oBBox.r2); } } - History.SetSelectionRedo(oSelectionRedo); + AscCommon.History.SetSelectionRedo(oSelectionRedo); } }; @@ -21226,7 +22603,7 @@ let aFilledCells = this.getFilledCells(); if (aFilledCells.length) { this.initHistoryPoint(); - History.StartTransaction(); + AscCommon.History.StartTransaction(); for (let i = 0, length = aFilledCells.length; i < length; i++) { let oToRange = aFilledCells[i].oToRange; let oFilledRange = aFilledCells[i].oFilledRange; @@ -21238,7 +22615,7 @@ } _mergeCells(oFilledRange, oToRange); } - History.EndTransaction(); + AscCommon.History.EndTransaction(); } else if (oMergedFrom.all.length) { let oApi = Asc.editor; oApi.sendEvent("asc_onError", c_oAscError.ID.CannotFillRange, c_oAscError.Level.NoCritical); @@ -21281,5 +22658,6 @@ window['AscCommonExcel'].changeTextCase = changeTextCase; window['AscCommonExcel'].g_sNewSheetNamePattern = g_sNewSheetNamePattern; window['AscCommonExcel'].CSerial = CSerial; + window['AscCommonExcel'].SweepLineRowIterator = SweepLineRowIterator; })(window); diff --git a/cell/model/WorkbookElems.js b/cell/model/WorkbookElems.js index 0d1e9d4fc1..8345a29a88 100644 --- a/cell/model/WorkbookElems.js +++ b/cell/model/WorkbookElems.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -42,11 +42,11 @@ var FormulaTablePartInfo = AscCommon.FormulaTablePartInfo; var parserHelp = AscCommon.parserHelp; var gc_nMaxRow0 = AscCommon.gc_nMaxRow0; var gc_nMaxCol0 = AscCommon.gc_nMaxCol0; - var History = AscCommon.History; var c_oAscPrintDefaultSettings = AscCommon.c_oAscPrintDefaultSettings; var UndoRedoDataTypes = AscCommonExcel.UndoRedoDataTypes; var UndoRedoData_IndexSimpleProp = AscCommonExcel.UndoRedoData_IndexSimpleProp; +var UndoRedoData_FromTo = AscCommonExcel.UndoRedoData_FromTo; var UndoRedoData_Layout = AscCommonExcel.UndoRedoData_Layout; @@ -6374,8 +6374,8 @@ StyleManager.prototype = Col.prototype.setStyle = function (xfs) { var oldVal = this.xfs; this.setStyleInternal(xfs); - if (History.Is_On() && oldVal !== this.xfs) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_SetStyle, this.ws.getId(), + if (AscCommon.History.Is_On() && oldVal !== this.xfs) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_SetStyle, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oldVal, this.xfs)); } }; @@ -6386,9 +6386,9 @@ StyleManager.prototype = var oStyle; var newVal = this.ws.workbook.CellStyles._prepareCellStyle(val); var oRes = this.ws.workbook.oStyleManager.setCellStyle(this, newVal); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { var oldStyleName = this.ws.workbook.CellStyles.getStyleNameByXfId(oRes.oldVal); - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_SetCellStyle, this.ws.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_SetCellStyle, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oldStyleName, val)); // Выставляем стиль @@ -6410,21 +6410,21 @@ StyleManager.prototype = }; Col.prototype.setNumFormat = function (val) { var oRes = this.ws.workbook.oStyleManager.setNum(this, new Num({f: val})); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Num, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Num, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setNum = function (val) { var oRes = this.ws.workbook.oStyleManager.setNum(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Num, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Num, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setFont = function (val) { var oRes = this.ws.workbook.oStyleManager.setFont(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { var oldVal = null; if (null != oRes.oldVal) { oldVal = oRes.oldVal.clone(); @@ -6433,90 +6433,90 @@ StyleManager.prototype = if (null != oRes.newVal) { newVal = oRes.newVal.clone(); } - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_SetFont, this.ws.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_SetFont, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oldVal, newVal)); } }; Col.prototype.setFontname = function (val) { var oRes = this.ws.workbook.oStyleManager.setFontname(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Fontname, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Fontname, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setFontsize = function (val) { var oRes = this.ws.workbook.oStyleManager.setFontsize(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Fontsize, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Fontsize, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setFontcolor = function (val) { var oRes = this.ws.workbook.oStyleManager.setFontcolor(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Fontcolor, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Fontcolor, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setBold = function (val) { var oRes = this.ws.workbook.oStyleManager.setBold(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Bold, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Bold, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setItalic = function (val) { var oRes = this.ws.workbook.oStyleManager.setItalic(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Italic, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Italic, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setUnderline = function (val) { var oRes = this.ws.workbook.oStyleManager.setUnderline(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Underline, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Underline, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setStrikeout = function (val) { var oRes = this.ws.workbook.oStyleManager.setStrikeout(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Strikeout, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Strikeout, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setFontAlign = function (val) { var oRes = this.ws.workbook.oStyleManager.setFontAlign(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_FontAlign, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_FontAlign, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setAlignVertical = function (val) { var oRes = this.ws.workbook.oStyleManager.setAlignVertical(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_AlignVertical, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_AlignVertical, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setAlignHorizontal = function (val) { var oRes = this.ws.workbook.oStyleManager.setAlignHorizontal(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_AlignHorizontal, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_AlignHorizontal, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setFill = function (val) { var oRes = this.ws.workbook.oStyleManager.setFill(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Fill, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Fill, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setBorder = function (val) { var oRes = this.ws.workbook.oStyleManager.setBorder(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { var oldVal = null; if (null != oRes.oldVal) { oldVal = oRes.oldVal.clone(); @@ -6525,56 +6525,56 @@ StyleManager.prototype = if (null != oRes.newVal) { newVal = oRes.newVal.clone(); } - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Border, this.ws.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Border, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oldVal, newVal)); } }; Col.prototype.setShrinkToFit = function (val) { var oRes = this.ws.workbook.oStyleManager.setShrinkToFit(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_ShrinkToFit, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_ShrinkToFit, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setWrap = function (val) { var oRes = this.ws.workbook.oStyleManager.setWrap(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Wrap, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Wrap, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setAngle = function (val) { var oRes = this.ws.workbook.oStyleManager.setAngle(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Angle, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Angle, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setIndent = function (val) { var oRes = this.ws.workbook.oStyleManager.setIndent(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Indent, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Indent, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setApplyProtection = function (val) { var oRes = this.ws.workbook.oStyleManager.setApplyProtection(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_ApplyProtection, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_ApplyProtection, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setLocked = function (val) { var oRes = this.ws.workbook.oStyleManager.setLocked(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Locked, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Locked, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Col.prototype.setHiddenFormulas = function (val) { var oRes = this.ws.workbook.oStyleManager.setHiddenFormulas(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_HiddenFormulas, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_HiddenFormulas, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; @@ -6612,8 +6612,8 @@ StyleManager.prototype = //this._hasChanged = true; } - if (!notAddHistory && History.Is_On() && oldVal != this.outlineLevel) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_GroupCol, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oldVal, this.outlineLevel)); + if (!notAddHistory && AscCommon.History.Is_On() && oldVal != this.outlineLevel) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_GroupCol, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oldVal, this.outlineLevel)); } }; Col.prototype.getOutlineLevel = function () { @@ -6783,8 +6783,8 @@ StyleManager.prototype = Row.prototype.setStyle = function (xfs) { var oldVal = this.xfs; this.setStyleInternal(xfs); - if (History.Is_On() && oldVal !== this.xfs) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_SetStyle, this.ws.getId(), + if (AscCommon.History.Is_On() && oldVal !== this.xfs) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_SetStyle, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oldVal, this.xfs)); } }; @@ -6796,9 +6796,9 @@ StyleManager.prototype = var oStyle; var newVal = this.ws.workbook.CellStyles._prepareCellStyle(val); var oRes = this.ws.workbook.oStyleManager.setCellStyle(this, newVal); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { var oldStyleName = this.ws.workbook.CellStyles.getStyleNameByXfId(oRes.oldVal); - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_SetCellStyle, this.ws.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_SetCellStyle, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oldStyleName, val)); // Выставляем стиль @@ -6820,21 +6820,21 @@ StyleManager.prototype = }; Row.prototype.setNumFormat = function (val) { var oRes = this.ws.workbook.oStyleManager.setNum(this, new Num({f: val})); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Num, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Num, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setNum = function (val) { var oRes = this.ws.workbook.oStyleManager.setNum(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Num, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Num, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setFont = function (val) { var oRes = this.ws.workbook.oStyleManager.setFont(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { var oldVal = null; if (null != oRes.oldVal) { oldVal = oRes.oldVal.clone(); @@ -6843,90 +6843,90 @@ StyleManager.prototype = if (null != oRes.newVal) { newVal = oRes.newVal.clone(); } - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_SetFont, this.ws.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_SetFont, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oldVal, newVal)); } }; Row.prototype.setFontname = function (val) { var oRes = this.ws.workbook.oStyleManager.setFontname(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Fontname, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Fontname, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setFontsize = function (val) { var oRes = this.ws.workbook.oStyleManager.setFontsize(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Fontsize, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Fontsize, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setFontcolor = function (val) { var oRes = this.ws.workbook.oStyleManager.setFontcolor(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Fontcolor, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Fontcolor, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setBold = function (val) { var oRes = this.ws.workbook.oStyleManager.setBold(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Bold, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Bold, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setItalic = function (val) { var oRes = this.ws.workbook.oStyleManager.setItalic(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Italic, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Italic, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setUnderline = function (val) { var oRes = this.ws.workbook.oStyleManager.setUnderline(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Underline, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Underline, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setStrikeout = function (val) { var oRes = this.ws.workbook.oStyleManager.setStrikeout(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Strikeout, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Strikeout, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setFontAlign = function (val) { var oRes = this.ws.workbook.oStyleManager.setFontAlign(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_FontAlign, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_FontAlign, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setAlignVertical = function (val) { var oRes = this.ws.workbook.oStyleManager.setAlignVertical(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_AlignVertical, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_AlignVertical, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setAlignHorizontal = function (val) { var oRes = this.ws.workbook.oStyleManager.setAlignHorizontal(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_AlignHorizontal, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_AlignHorizontal, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setFill = function (val) { var oRes = this.ws.workbook.oStyleManager.setFill(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Fill, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Fill, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setBorder = function (val) { var oRes = this.ws.workbook.oStyleManager.setBorder(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { var oldVal = null; if (null != oRes.oldVal) { oldVal = oRes.oldVal.clone(); @@ -6935,56 +6935,56 @@ StyleManager.prototype = if (null != oRes.newVal) { newVal = oRes.newVal.clone(); } - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Border, this.ws.getId(), + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Border, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oldVal, newVal)); } }; Row.prototype.setShrinkToFit = function (val) { var oRes = this.ws.workbook.oStyleManager.setShrinkToFit(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_ShrinkToFit, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_ShrinkToFit, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setWrap = function (val) { var oRes = this.ws.workbook.oStyleManager.setWrap(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Wrap, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Wrap, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setAngle = function (val) { var oRes = this.ws.workbook.oStyleManager.setAngle(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Angle, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Angle, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setIndent = function (val) { var oRes = this.ws.workbook.oStyleManager.setIndent(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Indent, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Indent, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setApplyProtection = function (val) { var oRes = this.ws.workbook.oStyleManager.setApplyProtection(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_ApplyProtection, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_ApplyProtection, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setLocked = function (val) { var oRes = this.ws.workbook.oStyleManager.setLocked(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Locked, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Locked, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; Row.prototype.setHiddenFormulas = function (val) { var oRes = this.ws.workbook.oStyleManager.setHiddenFormulas(this, val); - if (History.Is_On() && oRes.oldVal != oRes.newVal) { - History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_HiddenFormulas, this.ws.getId(), + if (AscCommon.History.Is_On() && oRes.oldVal != oRes.newVal) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_HiddenFormulas, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); } }; @@ -7025,8 +7025,8 @@ StyleManager.prototype = this._hasChanged = true; } - if(!notAddHistory && History.Is_On() && oldProps != this.outlineLevel) { - History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_GroupRow, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oldProps, this.outlineLevel)); + if(!notAddHistory && AscCommon.History.Is_On() && oldProps != this.outlineLevel) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_GroupRow, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oldProps, this.outlineLevel)); } }; Row.prototype.getOutlineLevel = function () { @@ -7408,14 +7408,14 @@ function RangeDataManagerElem(bbox, data) this.initData = null; var t = this; AscCommonExcel.executeInR1C1Mode(false, function () { - History.TurnOff(); + AscCommon.History.TurnOff(); for (var i = 0; i < initData.length; ++i) { var range = t.worksheet.getRange2(initData[i]); if (null != range) { range.mergeOpen(); } } - History.TurnOn(); + AscCommon.History.TurnOn(); }); } }; @@ -7750,13 +7750,13 @@ function RangeDataManagerElem(bbox, data) this.arrSparklines[i].updateWorksheet(worksheet.sName, oldWorksheet.sName); newSparklines.push(this.arrSparklines[i].clone()); } - History.Add(new AscDFH.CChangesSparklinesChangeData(this, oldSparklines, newSparklines)); + AscCommon.History.Add(new AscDFH.CChangesSparklinesChangeData(this, oldSparklines, newSparklines)); } }; sparklineGroup.prototype.checkProperty = function (propOld, propNew, type, fChangeConstructor) { if (null !== propNew && propOld !== propNew) { - History.Add(new fChangeConstructor(this, type, propOld, propNew)); + AscCommon.History.Add(new fChangeConstructor(this, type, propOld, propNew)); return propNew; } return propOld; @@ -7809,7 +7809,7 @@ function RangeDataManagerElem(bbox, data) res.arrSparklines.push(this.arrSparklines[i].clone()); newSparklines.push(this.arrSparklines[i].clone()); } - History.Add(new AscDFH.CChangesSparklinesChangeData(res, null, newSparklines)); + AscCommon.History.Add(new AscDFH.CChangesSparklinesChangeData(res, null, newSparklines)); } return res; @@ -7865,7 +7865,7 @@ function RangeDataManagerElem(bbox, data) sparklineGroup.prototype.remove = function (range) { for (var i = 0; i < this.arrSparklines.length; ++i) { if (this.arrSparklines[i].checkInRange(range)) { - History.Add(new AscDFH.CChangesSparklinesRemoveData(this, this.arrSparklines[i])); + AscCommon.History.Add(new AscDFH.CChangesSparklinesRemoveData(this, this.arrSparklines[i])); this.arrSparklines.splice(i, 1); --i; } @@ -7950,7 +7950,7 @@ function RangeDataManagerElem(bbox, data) for (i = 0; i < this.arrSparklines.length; i++) { newPr.push(this.arrSparklines[i].clone()); } - History.Add(new AscDFH.CChangesSparklinesChangeData(this, oldPr, newPr)); + AscCommon.History.Add(new AscDFH.CChangesSparklinesChangeData(this, oldPr, newPr)); } }; sparklineGroup.prototype.isValidDataRef = function (dataRange, locationRange) { @@ -8258,7 +8258,7 @@ function RangeDataManagerElem(bbox, data) }; sparklineGroup.prototype.asc_getStyles = function (type) { - History.TurnOff(); + AscCommon.History.TurnOff(); var aRet = []; var nStyleIndex = -1; var oSparklineGroup = this.clone(true); @@ -8288,7 +8288,7 @@ function RangeDataManagerElem(bbox, data) aRet.push(canvas.toDataURL("image/png")); } aRet.push(nStyleIndex); - History.TurnOn(); + AscCommon.History.TurnOn(); return aRet; }; @@ -9031,11 +9031,13 @@ function RangeDataManagerElem(bbox, data) if (handleSelectionRange.c1 === this.Ref.c1 && handleSelectionRange.c2 === this.Ref.c2) { //all row //Table1[@] + return this.DisplayName + "[" + AscCommon.cStrucTableReservedWords.at + "]"; } else { //part of row //Table1[@[Column2]:[Column3]] //Table1[@Column1] + return this.DisplayName + "[" + AscCommon.cStrucTableReservedWords.at + getColumnNameRange(startCol, endCol) + "]"; } } @@ -9771,7 +9773,7 @@ function RangeDataManagerElem(bbox, data) } if (addToHistory) { - History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, ws.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, ws.getId(), null, new AscCommonExcel.UndoRedoData_SortState(oldSortState, this.clone())); } }; @@ -9851,7 +9853,7 @@ function RangeDataManagerElem(bbox, data) } if (addToHistory && null != to) { - History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, ws.getId(), null, + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoSortState, AscCH.historyitem_SortState_Add, ws.getId(), null, new AscCommonExcel.UndoRedoData_SortState(oldSortState, this.clone())); } }; @@ -13040,8 +13042,8 @@ function RangeDataManagerElem(bbox, data) asc_CPageMargins.prototype.asc_setLeft = function (newVal) { var oldVal = this.left; this.left = newVal; - if (this.ws && History.Is_On() && oldVal !== this.left) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Left, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.left) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Left, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13050,8 +13052,8 @@ function RangeDataManagerElem(bbox, data) asc_CPageMargins.prototype.asc_setRight = function (newVal) { var oldVal = this.right; this.right = newVal; - if (this.ws && History.Is_On() && oldVal !== this.right) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Right, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.right) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Right, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13060,8 +13062,8 @@ function RangeDataManagerElem(bbox, data) asc_CPageMargins.prototype.asc_setTop = function (newVal) { var oldVal = this.top; this.top = newVal; - if (this.ws && History.Is_On() && oldVal !== this.top) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Top, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.top) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Top, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13070,8 +13072,8 @@ function RangeDataManagerElem(bbox, data) asc_CPageMargins.prototype.asc_setBottom = function (newVal) { var oldVal = this.bottom; this.bottom = newVal; - if (this.ws && History.Is_On() && oldVal !== this.bottom) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Bottom, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.bottom) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Bottom, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13081,16 +13083,16 @@ function RangeDataManagerElem(bbox, data) asc_CPageMargins.prototype.asc_setHeader = function (newVal) { var oldVal = this.header; this.header = newVal; - /*if (this.ws && History.Is_On() && oldVal !== this.top) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Top, this.ws.getId(), + /*if (this.ws && AscCommon.History.Is_On() && oldVal !== this.top) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Top, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); }*/ }; asc_CPageMargins.prototype.asc_setFooter = function (newVal) { var oldVal = this.footer; this.footer = newVal; - /*if (this.ws && History.Is_On() && oldVal !== this.bottom) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Bottom, this.ws.getId(), + /*if (this.ws && AscCommon.History.Is_On() && oldVal !== this.bottom) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Bottom, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); }*/ }; @@ -13179,8 +13181,8 @@ function RangeDataManagerElem(bbox, data) asc_CPageSetup.prototype.asc_setOrientation = function (newVal) { var oldVal = this.orientation; this.orientation = newVal; - if (this.ws && History.Is_On() && oldVal !== this.orientation) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Orientation, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.orientation) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Orientation, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13189,8 +13191,8 @@ function RangeDataManagerElem(bbox, data) asc_CPageSetup.prototype.asc_setWidth = function (newVal) { var oldVal = this.width; this.width = newVal; - if (this.ws && History.Is_On() && oldVal !== this.width) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Width, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.width) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Width, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13199,8 +13201,8 @@ function RangeDataManagerElem(bbox, data) asc_CPageSetup.prototype.asc_setHeight = function (newVal) { var oldVal = this.height; this.height = newVal; - if (this.ws && History.Is_On() && oldVal !== this.height) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Height, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.height) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Height, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13217,8 +13219,8 @@ function RangeDataManagerElem(bbox, data) } this.firstPageNumber = newVal; this.useFirstPageNumber = true; - if (this.ws && History.Is_On() && (oldVal !== this.firstPageNumber || oldValUse !== this.useFirstPageNumber)) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_FirstPageNumber, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && (oldVal !== this.firstPageNumber || oldValUse !== this.useFirstPageNumber)) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_FirstPageNumber, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } }; @@ -13250,8 +13252,8 @@ function RangeDataManagerElem(bbox, data) var oldVal = this.fitToWidth; this.fitToWidth = newVal; - if (this.ws && History.Is_On() && oldVal !== this.fitToWidth) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_FitToWidth, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.fitToWidth) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_FitToWidth, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13267,8 +13269,8 @@ function RangeDataManagerElem(bbox, data) var oldVal = this.fitToHeight; this.fitToHeight = newVal; - if (this.ws && History.Is_On() && oldVal !== this.fitToHeight) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_FitToHeight, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.fitToHeight) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_FitToHeight, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13310,8 +13312,8 @@ function RangeDataManagerElem(bbox, data) asc_CPageSetup.prototype.asc_setScale = function (newVal) { var oldVal = this.scale; this.scale = newVal; - if (this.ws && History.Is_On() && oldVal !== this.scale) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Scale, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.scale) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Scale, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } let wb = this.ws && this.ws.workbook && this.ws.workbook; @@ -13537,40 +13539,40 @@ function RangeDataManagerElem(bbox, data) asc_CPageOptions.prototype.asc_setGridLines = function (newVal) { let oldVal = this.gridLines; this.gridLines = newVal; - if (this.ws && History.Is_On() && oldVal !== this.gridLines) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_GridLines, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.gridLines) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_GridLines, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } }; asc_CPageOptions.prototype.asc_setHeadings = function (newVal) { let oldVal = this.headings; this.headings = newVal; - if (this.ws && History.Is_On() && oldVal !== this.headings) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Headings, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.headings) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_Headings, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } }; asc_CPageOptions.prototype.asc_setHorizontalCentered = function (newVal) { let oldVal = this.horizontalCentered; this.horizontalCentered = newVal; - if (this.ws && History.Is_On() && oldVal !== this.horizontalCentered) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_HorizontalCentered, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.horizontalCentered) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_HorizontalCentered, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } }; asc_CPageOptions.prototype.asc_setVerticalCentered = function (newVal) { let oldVal = this.verticalCentered; this.verticalCentered = newVal; - if (this.ws && History.Is_On() && oldVal !== this.verticalCentered) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_VerticalCentered, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.verticalCentered) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_VerticalCentered, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } }; asc_CPageOptions.prototype.asc_setGridLinesSet = function (newVal) { /*let oldVal = this.verticalCentered; this.verticalCentered = newVal; - if (this.ws && History.Is_On() && oldVal !== this.verticalCentered) { - History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_VerticalCentered, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On() && oldVal !== this.verticalCentered) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoLayout, AscCH.historyitem_Layout_VerticalCentered, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); }*/ }; @@ -13679,8 +13681,8 @@ function RangeDataManagerElem(bbox, data) this.evenFooter.setType(Asc.c_oAscPageHFType && Asc.c_oAscPageHFType.evenFooter); } - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Footer_Even, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Footer_Even, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13698,8 +13700,8 @@ function RangeDataManagerElem(bbox, data) this.evenHeader.setType(Asc.c_oAscPageHFType && Asc.c_oAscPageHFType.evenHeader); } - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Header_Even, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Header_Even, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13717,8 +13719,8 @@ function RangeDataManagerElem(bbox, data) this.firstFooter.setType(Asc.c_oAscPageHFType && Asc.c_oAscPageHFType.firstFooter); } - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Footer_First, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Footer_First, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13736,8 +13738,8 @@ function RangeDataManagerElem(bbox, data) this.firstHeader.setType(Asc.c_oAscPageHFType && Asc.c_oAscPageHFType.firstHeader); } - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Header_First, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Header_First, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13755,8 +13757,8 @@ function RangeDataManagerElem(bbox, data) this.oddFooter.setType(Asc.c_oAscPageHFType && Asc.c_oAscPageHFType.oddFooter); } - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Footer_Odd, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Footer_Odd, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13774,8 +13776,8 @@ function RangeDataManagerElem(bbox, data) this.oddHeader.setType(Asc.c_oAscPageHFType && Asc.c_oAscPageHFType.oddHeader); } - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Header_Odd, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Header_Odd, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13788,8 +13790,8 @@ function RangeDataManagerElem(bbox, data) if(!compareValues(oldVal, newVal) && !defaultVal) { this.alignWithMargins = newVal; - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Align_With_Margins, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Align_With_Margins, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13801,8 +13803,8 @@ function RangeDataManagerElem(bbox, data) if(!compareValues(oldVal, newVal)) { this.scaleWithDoc = newVal; - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Scale_With_Doc, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Scale_With_Doc, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13815,8 +13817,8 @@ function RangeDataManagerElem(bbox, data) if(!compareValues(oldVal, newVal) && !defaultVal) { this.differentFirst = newVal; - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Different_First, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Different_First, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -13829,8 +13831,8 @@ function RangeDataManagerElem(bbox, data) if(!compareValues(oldVal, newVal) && !defaultVal) { this.differentOddEven = newVal; - if (this.ws && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Different_Odd_Even, this.ws.getId(), + if (this.ws && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoHeaderFooter, AscCH.historyitem_Different_Odd_Even, this.ws.getId(), null, new UndoRedoData_Layout(oldVal, newVal)); } } @@ -14583,16 +14585,21 @@ function RangeDataManagerElem(bbox, data) var trueZoom = kF * AscCommon.AscBrowser.retinaPixelRatio; var _height = Math.floor(height * kF); var _width = Math.floor(width * kF); + var borderWidth = 1; if (trueZoom !== this.pageZoom) { this.pageZoom = trueZoom; - this.ctx.canvas.style.height = _height + 2 + "px"; - this.ctx.canvas.style.width = _width + 2 + "px"; + this.ctx.canvas.style.height = _height + "px"; + this.ctx.canvas.style.width = _width + borderWidth * 2 + "px"; this.ctx.canvas.height = AscCommon.AscBrowser.convertToRetinaValue(_height, true); this.ctx.canvas.width = AscCommon.AscBrowser.convertToRetinaValue(_width, true); isChangeForZoom = true; } - this.ctx.canvas.style.marginLeft = canvasWidth/2 - _width / 2 + "px"; - this.ctx.canvas.style.marginTop = canvasHeight/2 - _height / 2 + canvasTopPadding * kF + "px"; + this.ctx.canvas.style.marginLeft = Math.floor(canvasWidth/2 - _width / 2) + "px"; + let topMargin = Math.floor(canvasHeight/2 - _height / 2 + canvasTopPadding * kF); + if (topMargin + _height > canvasHeight) { + topMargin = canvasHeight - _height; + } + this.ctx.canvas.style.marginTop = topMargin + "px"; kF = trueZoom; @@ -14844,7 +14851,7 @@ function RangeDataManagerElem(bbox, data) var i; var length = r.GetLong(); for (i = 0; i < length; ++i) { - var definedName = new ExternalDefinedName(); + var definedName = new ExternalDefinedName(this); definedName.Read_FromBinary2(r); if(!this.DefinedNames) { this.DefinedNames = []; @@ -14951,7 +14958,7 @@ function RangeDataManagerElem(bbox, data) if (this.DefinedNames) { for (var i = 0; i < this.DefinedNames.length; i++) { - newObj.DefinedNames.push(this.DefinedNames[i].clone); + newObj.DefinedNames.push(this.DefinedNames[i].clone()); } } @@ -14984,10 +14991,51 @@ function RangeDataManagerElem(bbox, data) return newObj; }; - ExternalReference.prototype.updateData = function (arr, oPortalData) { + ExternalReference.prototype.initPostOpen = function () { + let res = null; + if (this.DefinedNames && this.DefinedNames.length) { + for (let i = 0; i < this.DefinedNames.length; i++) { + this.DefinedNames[i].parent = this; + } + } + this.initWorksheetsFromSheetDataSet(); + this.initWorkbook(); + + return res; + }; + + ExternalReference.prototype.getDefinedNamesBySheetIndex = function (index) { + let res = null; + if (this.DefinedNames && this.DefinedNames.length) { + for (let i = 0; i < this.DefinedNames.length; i++) { + if (this.DefinedNames[i].SheetId === index) { + if (!res) { + res = []; + } + res.push(this.DefinedNames[i]); + } + } + } + return res; + }; + + ExternalReference.prototype.removeSheetByName = function (sheetName) { + if (sheetName != null) { + let index = this.getSheetByName(sheetName); + if (index != null) { + this.SheetNames.splice(index, 1); + this.SheetDataSet.splice(index, 1); + delete this.worksheets[sheetName]; + } + } + }; + + ExternalReference.prototype.updateData = function (arr, oPortalData, noData) { var t = this; var isChanged = false; var cloneER = this.clone(); + + let existedWsArray = []; for (var i = 0; i < arr.length; i++) { //если есть this.worksheets, если нет - проверить и обработать var sheetName = arr[i].sName; @@ -15002,6 +15050,17 @@ function RangeDataManagerElem(bbox, data) //меняем лист AscFormat.ExecuteNoHistory(function(){ AscCommonExcel.executeInR1C1Mode(false, function () { + + let defNames = wsTo.workbook && wsTo.workbook.dependencyFormulas && wsTo.workbook.dependencyFormulas.defNames; + wsTo.workbook.dependencyFormulas._foreachDefName(function (defName) { + var api_sheet = Asc['editor']; + var wb = api_sheet.wbModel; + let realWb = defName.wb; + defName.wb = wb; + defName.onFormulaEvent(AscCommon.c_oNotifyParentType.Change); + defName.wb = realWb; + }); + var oAllRange = wsTo.getRange3(0, 0, wsTo.getRowsCount(), wsTo.getColsCount()); oAllRange.cleanAll(); wsTo.copyFrom(arr[i], wsTo.sName); @@ -15014,12 +15073,29 @@ function RangeDataManagerElem(bbox, data) if (index != null) { var externalSheetDataSet = this.SheetDataSet[index]; if (externalSheetDataSet) { - if (externalSheetDataSet.updateFromSheet(t.worksheets[sheetName])) { + if (externalSheetDataSet.updateFromSheet(t.worksheets[sheetName], noData)) { isChanged = true; } } + let externalDefName = this.getDefinedNamesBySheetIndex(index); + if (externalDefName) { + for (let i = 0; i < externalDefName.length; i++) { + if (externalDefName[i].updateFromSheet(t.worksheets[sheetName], noData)) { + isChanged = true; + } + } + } } } + existedWsArray.push(sheetName); + } + + // delete all non-existent sheets in ExternalReference + for (let wsName in this.worksheets) { + if (!existedWsArray.includes(wsName)) { + // throw an error if we referenced to one of the deleted sheets? + this.removeSheetByName(wsName); + } } var oReferenceData = oPortalData && oPortalData["referenceData"]; @@ -15031,13 +15107,13 @@ function RangeDataManagerElem(bbox, data) //path also can changed var path = oPortalData && oPortalData["path"]; if (path && this.Id !== path) { - let isNotUpdate = (AscCommonExcel.importRangeLinksState && AscCommonExcel.importRangeLinksState.notUpdateIdMap[this.Id]) || this.notUpdateId; + let isNotUpdate = (AscCommonExcel.importRangeLinksState && AscCommonExcel.importRangeLinksState.notUpdateIdMap && AscCommonExcel.importRangeLinksState.notUpdateIdMap[this.Id]) || this.notUpdateId; !isNotUpdate && this.setId(path); isChanged = true; } - if (isChanged && History.Is_On()) { - History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeExternalReference, + if (isChanged && AscCommon.History.Is_On()) { + AscCommon.History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_ChangeExternalReference, null, null, new AscCommonExcel.UndoRedoData_FromTo(cloneER, this)); } }; @@ -15193,6 +15269,9 @@ function RangeDataManagerElem(bbox, data) //клонируем все данные из SheetDataSet в данный темповый Worksheet + if (!sheetDataSet || !sheetDataSet.Row) { + return; + } for (var i = 0; i < sheetDataSet.Row.length; i++) { if (!sheetDataSet.Row[i] || !sheetDataSet.Row[i].Cell) { continue; @@ -15215,6 +15294,24 @@ function RangeDataManagerElem(bbox, data) } }; + ExternalReference.prototype.initWorkbook = function () { + if (this.DefinedNames) { + let wb = this.getWb(); + for (let i = 0; i < this.DefinedNames.length; i++) { + let defName = this.DefinedNames[i]; + let ws = this.getSheetByIndex(defName.SheetId); + if (ws != null) { + //on parse name3d use g_DefNameWorksheet + let RealDefNameWorksheet = AscCommonExcel.g_DefNameWorksheet; + AscCommonExcel.g_DefNameWorksheet = ws; + let oDefName = new Asc.asc_CDefName(defName.Name, defName.RefersTo); + wb.editDefinesNames(null, oDefName); + AscCommonExcel.g_DefNameWorksheet = RealDefNameWorksheet; + } + } + } + }; + ExternalReference.prototype.getSheetByName = function (val) { for (var i = 0; i < this.SheetNames.length; i++) { //если есть this.worksheets, если нет - проверить и обработать @@ -15225,6 +15322,14 @@ function RangeDataManagerElem(bbox, data) return null; }; + ExternalReference.prototype.getSheetByIndex = function (val) { + let sheetName = this.SheetNames[val]; + if (sheetName != null) { + return this.worksheets && this.worksheets[sheetName]; + } + return null; + }; + ExternalReference.prototype.getSheetBySheetId = function (sheetId) { if (this.worksheets) { for (var i in this.worksheets) { @@ -15274,6 +15379,38 @@ function RangeDataManagerElem(bbox, data) } }; + ExternalReference.prototype.initDefinedName = function (val) { + if (!val) { + return; + } + + const index = this.getSheetByName(val.ws.sName); + const name = val.value; + + //check on exist + if (this.getDefName(name, index)) { + return; + } + + let defName = new ExternalDefinedName(this); + defName.Name = name; + defName.SheetId = index; + this.addDefName(defName); + }; + + ExternalReference.prototype.addDefName = function (defName) { + this.DefinedNames.push(defName); + }; + + ExternalReference.prototype.getDefName = function (name, sheetId) { + for (let i in this.DefinedNames) { + if (this.DefinedNames[i] && this.DefinedNames[i].SheetId === sheetId && this.DefinedNames[i].Name === name) { + return this.DefinedNames[i]; + } + } + return null; + }; + ExternalReference.prototype.removeSheetById = function (sheetId) { if (sheetId != null) { var sheetName = this.getSheetBySheetId(sheetId); @@ -15294,7 +15431,7 @@ function RangeDataManagerElem(bbox, data) this.referenceData = {}; } this.referenceData["instanceId"] = portalName; - this.referenceData["fileKey"] = fileId; + this.referenceData["fileKey"] = fileId + ""; }; ExternalReference.prototype.setId = function (id) { @@ -15341,6 +15478,27 @@ function RangeDataManagerElem(bbox, data) return sPath; }; + ExternalReference.prototype.addDataSetFrom = function (eR) { + if (!eR.SheetDataSet) { + return; + } + for (let i = 0; i < eR.SheetDataSet.length; i++) { + let _sheetId = eR.SheetDataSet[i].SheetId; + let sheetName = eR.SheetNames[_sheetId]; + if (sheetName) { + let sheetDataSet = this.getSheetDataSetByName(sheetName); + if (sheetDataSet) { + //add new from eR to this + sheetDataSet.addFrom(eR.SheetDataSet[i]) + } else { + //add new structure + + } + } + } + }; + + function asc_CExternalReference() { this.type = null; @@ -15476,7 +15634,7 @@ function RangeDataManagerElem(bbox, data) } }; - ExternalSheetDataSet.prototype.updateFromSheet = function(sheet) { + ExternalSheetDataSet.prototype.updateFromSheet = function(sheet, noData) { var isChanged = false; if (sheet) { var t = this; @@ -15495,13 +15653,19 @@ function RangeDataManagerElem(bbox, data) var range = sheet.getRange2(externalCell.Ref); range._foreach(function (cell) { - let changedCell = externalCell.initFromCell(cell, true); + let changedCell = externalCell.initFromCell(cell, true, noData); if (!isChanged) { isChanged = changedCell; } var api_sheet = Asc['editor']; var wb = api_sheet.wbModel; + + /* if we haven't received data from an external source, put #REF error for all cells */ + if (noData) { + cell._setValue("#REF!"); + } + wb.dependencyFormulas.addToChangedCell(cell); }); } @@ -15552,6 +15716,18 @@ function RangeDataManagerElem(bbox, data) return row; }; + ExternalSheetDataSet.prototype.addFrom = function(oSheetDataSet) { + var row = null; + + for (var i = 0; i < oSheetDataSet.Row.length; i++) { + if (!this.Row[i]) { + this.Row[i] = oSheetDataSet.Row[i].clone(); + } + } + + return row; + }; + function ExternalRow() { @@ -15675,7 +15851,7 @@ function RangeDataManagerElem(bbox, data) return newObj; }; - ExternalCell.prototype.initFromCell = function(cell, bUpdate) { + ExternalCell.prototype.initFromCell = function(cell, bUpdate, noData) { var isChanged = false; if (cell) { var t = this; @@ -15685,7 +15861,7 @@ function RangeDataManagerElem(bbox, data) }); } - var newVal = cell.getValue(); + let newVal = noData ? "#REF" : cell.getValue(); if (this.CellValue !== newVal) { isChanged = true; this.CellValue = newVal; @@ -15704,6 +15880,11 @@ function RangeDataManagerElem(bbox, data) cellValueType = Asc.ECellTypeType.celltypeError; break; } + + if (noData) { + cellValueType = Asc.ECellTypeType.celltypeError; + } + if (this.CellType !== cellValueType) { this.CellType = cellValueType; isChanged = true; @@ -15746,10 +15927,12 @@ function RangeDataManagerElem(bbox, data) return res; }; - function ExternalDefinedName() { + function ExternalDefinedName(parent) { this.Name = null; this.RefersTo = null; this.SheetId = null; + + this.parent = parent; } ExternalDefinedName.prototype.Read_FromBinary2 = function(r) { @@ -15764,21 +15947,21 @@ function RangeDataManagerElem(bbox, data) } }; ExternalDefinedName.prototype.Write_ToBinary2 = function(w) { - if (null != this.Ref) { + if (null != this.Name) { w.WriteBool(true); w.WriteString2(this.Name); } else { w.WriteBool(false); } - if (null != this.CellType) { + if (null != this.RefersTo) { w.WriteBool(true); w.WriteString2(this.RefersTo); } else { w.WriteBool(false); } - if (null != this.CellValue) { + if (null != this.SheetId) { w.WriteBool(true); w.WriteString2(this.SheetId); } else { @@ -15786,15 +15969,45 @@ function RangeDataManagerElem(bbox, data) } }; ExternalDefinedName.prototype.clone = function () { - var newObj = new ExternalDefinedName(); + var newObj = new ExternalDefinedName(this); newObj.Name = this.Name; newObj.RefersTo = this.RefersTo; newObj.SheetId = this.SheetId; + newObj.parent = this.parent; + return newObj; }; + ExternalDefinedName.prototype.updateFromSheet = function(sheet) { + var isChanged = false; + if (sheet) { + //sheet.workbook.dependencyFormulas.defNames + //check on sheet name and def name + let defNames = sheet.workbook && sheet.workbook.dependencyFormulas && sheet.workbook.dependencyFormulas.defNames; + let thisSheet = defNames && this.parent.SheetNames[this.SheetId]; + if (thisSheet) { + if (defNames.sheet[thisSheet]) { + if (defNames.sheet[thisSheet][this.Name]) { + isChanged = true; + } + } + if (!isChanged) { + if (defNames.wb[this.Name]) { + this.RefersTo = defNames.wb[this.Name].getRef(); + //need init from range + updateFromSheet from data set + if (this.RefersTo) { + this.parent.updateSheetData(thisSheet, sheet, [AscCommonExcel.g_oRangeCache.getAscRange(this.RefersTo.split("!")[1])]); + } + + isChanged = true; + } + } + } + } + return isChanged; + }; //CellWatch function CCellWatch(ws) { @@ -17066,6 +17279,548 @@ function RangeDataManagerElem(bbox, data) return res; }; + /** + * Class representing "Formulas" properties specifies calculation options + * @constructor + */ + function CCalcPr() { + this.calcId = null; + this.calcMode = null; + this.fullCalcOnLoad = null; + this.refMode = null; + this.iterate = null; + this.iterateCount = null; + this.iterateDelta = null; + this.fullPrecision = null; + this.calcCompleted = null; + this.calcOnSave = null; + this.concurrentCalc = null; + this.concurrentManualCount = null; + this.forceFullCalc = null; + } + + /** + * Method clones calculation options + * @memberof CCalcPr + * @returns {CCalcPr} + */ + CCalcPr.prototype.clone = function () { + var res = new CCalcPr(); + + res.calcId = this.calcId; + res.calcMode = this.calcMode; + res.fullCalcOnLoad = this.fullCalcOnLoad; + res.refMode = this.refMode; + res.iterate = this.iterate; + res.iterateCount = this.iterateCount; + res.iterateDelta = this.iterateDelta; + res.fullPrecision = this.fullPrecision; + res.calcCompleted = this.calcCompleted; + res.calcOnSave = this.calcOnSave; + res.concurrentCalc = this.concurrentCalc; + res.concurrentManualCount = this.concurrentManualCount; + res.forceFullCalc = this.forceFullCalc; + + return res; + }; + /** + * Method returns "iterate" attribute specifies whether the application should attempt to calculate formulas + * that contain circular references. + * @memberof CCalcPr + * @returns {boolean} + */ + CCalcPr.prototype.getIterate = function () { + return this.iterate; + }; + /** + * Method returns "iterateCount" attribute specifies the number of iterations attempts when calculating a + * workbook with circular references, when the "iterate" attribute is true. + * @memberof CCalcPr + * @returns {number} + */ + CCalcPr.prototype.getIterateCount = function () { + return this.iterateCount; + }; + /** + * Method returns "iterateDelta" attribute specifies the maximum change for iterative calculations. + * @memberof CCalcPr + * @returns {number} + */ + CCalcPr.prototype.getIterateDelta = function () { + return this.iterateDelta; + }; + /** + * Method returns "calcMode" attribute specifies when the application should calculate formulas in the workbook. + * @memberof CCalcPr + * @returns {Asc.c_oAscCalcMode} + */ + CCalcPr.prototype.getCalcMode = function () { + return this.calcMode; + }; + /** + * Method sets "iterate" attribute specifies whether the application should attempt to calculate formulas + * that contain circular references. + * @memberof CCalcPr + * @param {boolean} bIterate + */ + CCalcPr.prototype.setIterate = function (bIterate) { + const DEFAULT_ITERATE = false; + this.iterate = DEFAULT_ITERATE !== bIterate ? bIterate : null; + }; + /** + * Method sets "iterateCount" attribute specifies the number of iterations attempts when calculating a + * workbook with circular references, when the "iterate" attribute is true. + * @memberof CCalcPr + * @param {number} nIterateCount + */ + CCalcPr.prototype.setIterateCount = function (nIterateCount) { + const DEFAULT_ITER_COUNT = 100; + this.iterateCount = DEFAULT_ITER_COUNT !== nIterateCount ? nIterateCount : null; + }; + /** + * Method sets "iterateDelta" attribute specifies the maximum change for iterative calculations. + * @memberof CCalcPr + * @param {number} nIterateDelta + */ + CCalcPr.prototype.setIterateDelta = function (nIterateDelta) { + const DEFAULT_ITER_DELTA = 1e-3; + this.iterateDelta = DEFAULT_ITER_DELTA !== nIterateDelta ? nIterateDelta : null; + }; + /** + * Method updates calcPr attributes + * @memberof CCalcPr + * @param {asc_CCalcSettings} oCalcSettings + * @param {Workbook} oWbModel + */ + CCalcPr.prototype.updateCalcProperties = function (oCalcSettings, oWbModel) { + let bIterativeCalc = oCalcSettings.asc_getIterativeCalc(); + let nMaxIterations = oCalcSettings.asc_getMaxIterations(); + let nMaxChange = oCalcSettings.asc_getMaxChange(); + + let bOldIterate = this.getIterate(); + let nOldIterateCount = this.getIterateCount(); + let nOldIterateDelta = this.getIterateDelta(); + + this.setIterate(bIterativeCalc); + this.setIterateCount(nMaxIterations); + this.setIterateDelta(nMaxChange); + + if (History.Is_On()) { + let oUpdateSheet = oWbModel.getActiveWs(); + let oUpdateRange = new Asc.Range(0, 0, oUpdateSheet.getColsCount(), oUpdateSheet.getRowsCount()); + + if (this.getIterate() !== bOldIterate) { + History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_CalcPr_iterate, + oUpdateSheet.getId(), oUpdateRange, new UndoRedoData_FromTo(bOldIterate, this.getIterate())); + } + if (this.getIterateCount() !== nOldIterateCount) { + History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_CalcPr_iterateCount, + oUpdateSheet.getId(), oUpdateRange, new UndoRedoData_FromTo(nOldIterateCount, this.getIterateCount())); + } + if (this.getIterateDelta() !== nOldIterateDelta) { + History.Add(AscCommonExcel.g_oUndoRedoWorkbook, AscCH.historyitem_Workbook_CalcPr_iterateDelta, + oUpdateSheet.getId(), oUpdateRange, new UndoRedoData_FromTo(nOldIterateDelta, this.getIterateDelta())); + } + } + }; + + /** + * Class representing calculation settings for UI interface + * @constructor + */ + function asc_CCalcSettings() { + // Default values if calcPr is empty + this.bIterativeCalc = false; + this.nMaxIterations = 100; + this.nMaxChange = 1e-3; + } + + /** + * Method sets "Enable iterative calculation" setting + * @memberof asc_CCalcSettings + * @param {boolean} bIterativeCalc + */ + asc_CCalcSettings.prototype.asc_setIterativeCalc = function (bIterativeCalc) { + this.bIterativeCalc = bIterativeCalc + }; + /** + * Method returns "Enable iterative calculation" setting + * @memberof asc_CCalcSettings + * @returns {boolean} + */ + asc_CCalcSettings.prototype.asc_getIterativeCalc = function () { + return this.bIterativeCalc; + }; + /** + * Method sets "Maximum iterations" setting + * @memberof asc_CCalcSettings + * @param {number} nMaxIterations + */ + asc_CCalcSettings.prototype.asc_setMaxIterations = function (nMaxIterations) { + this.nMaxIterations = nMaxIterations; + }; + /** + * Method returns "Maximum iterations" setting + * @memberof asc_CCalcSettings + * @returns {number} + */ + asc_CCalcSettings.prototype.asc_getMaxIterations = function () { + return this.nMaxIterations; + }; + /** + * Method sets "Maximum change" setting + * @memberof asc_CCalcSettings + * @param {number} nMaxChange + */ + asc_CCalcSettings.prototype.asc_setMaxChange = function (nMaxChange) { + this.nMaxChange = nMaxChange; + }; + /** + * Method returns "Maximum change" setting + * @memberof asc_CCalcSettings + * @returns {number} + */ + asc_CCalcSettings.prototype.asc_getMaxChange = function () { + return this.nMaxChange; + }; + /** + * Method initializes settings according CalcPr + * @memberof asc_CCalcSettings + * @param {Workbook} oWbModel + */ + asc_CCalcSettings.prototype.asc_initSettings = function (oWbModel) { + const oCalcPr = oWbModel.calcPr; + if (oCalcPr.getIterate() != null) { + this.asc_setIterativeCalc(oCalcPr.getIterate()); + } + if (oCalcPr.getIterateCount() != null) { + this.asc_setMaxIterations(oCalcPr.getIterateCount()); + } + if (oCalcPr.getIterateDelta() != null) { + this.asc_setMaxChange(oCalcPr.getIterateDelta()); + } + }; + /** + * Method checks if the given CalcPr object is equal to the current object. + * @memberof asc_CCalcSettings + * @param {CCalcPr} oCalcPr - The CalcPr to compare with. + * @returns {boolean} - True if the objects are equal, false otherwise. + */ + asc_CCalcSettings.prototype.asc_isEqual = function (oCalcPr) { + const DEFAULT_ITERATE = false; + const DEFAULT_MAX_ITERATE = 100; + const DEFAULT_MAX_CHANGE = 1e-3; + + const bIterativeCalcEqual = this.asc_getIterativeCalc() === oCalcPr.getIterate(); + const bMaxIterationEqual = this.asc_getMaxIterations() === oCalcPr.getIterateCount(); + const bMaxChangeEqual = this.asc_getMaxChange() === oCalcPr.getIterateDelta(); + const bIterCalcDefaultVal = this.asc_getIterativeCalc() === DEFAULT_ITERATE && oCalcPr.getIterate() == null; + const bMaxIterDefaultVal = this.asc_getMaxIterations() === DEFAULT_MAX_ITERATE && oCalcPr.getIterateCount() == null; + const bMaxChangeDefaultVal = this.asc_getMaxChange() === DEFAULT_MAX_CHANGE && oCalcPr.getIterateDelta() == null; + + return (bIterativeCalcEqual && bMaxIterationEqual && bMaxChangeEqual) || + (bIterCalcDefaultVal && bMaxIterDefaultVal && bMaxChangeDefaultVal); + }; + + //****metadata**** + function CMetadata() { + this.metadataTypes = null; + this.metadataStrings = null; + this.mdxMetadata = null; + this.cellMetadata = null; + this.valueMetadata = null; + + this.aFutureMetadata = null; + } + CMetadata.prototype.clone = function () { + let res = new CMetadata(); + + res.metadataTypes = this.metadataTypes && this.metadataTypes.clone(); + res.metadataStrings = this.metadataStrings && this.metadataStrings.clone(); + res.mdxMetadata = this.mdxMetadata && this.mdxMetadata.clone(); + res.cellMetadata = this.cellMetadata && this.cellMetadata.clone(); // CMetadataRecord.clone + res.valueMetadata = this.valueMetadata && this.valueMetadata.clone(); // CMetadataRecord.clone + + res.aFutureMetadata = this.aFutureMetadata && this.aFutureMetadata.clone(); + + return res; + }; + + function CFutureMetadata() { + this.name = null; + this.futureMetadataBlocks = null; + } + CFutureMetadata.prototype.clone = function () { + let res = new CFutureMetadata(); + + res.name = this.name; + res.futureMetadataBlocks = this.futureMetadataBlocks && this.futureMetadataBlocks.clone(); + + return res; + }; + + function CMetadataType() { + this.minSupportedVersion = null; + this.ghostRow = null; + this.ghostCol = null; + this.edit = null; + this.delete = null; + this.copy = null; + this.pasteAll = null; + this.pasteFormulas = null; + this.pasteValues = null; + this.pasteFormats = null; + this.pasteComments = null; + this.pasteDataValidation = null; + this.pasteBorders = null; + this.pasteColWidths = null; + this.pasteNumberFormats = null; + this.merge = null; + this.splitFirst = null; + this.splitAll = null; + this.rowColShift = null; + this.clearAll = null; + this.clearFormats = null; + this.clearContents = null; + this.clearComments = null; + this.assign = null; + this.coerce = null; + this.cellMeta = null; + } + CMetadataType.prototype.clone = function () { + let res = new CMetadataType(); + + res.minSupportedVersion = this.minSupportedVersion; + res.ghostRow = this.ghostRow; + res.ghostCol = this.ghostCol; + res.edit = this.edit; + res.delete = this.delete; + res.copy = this.copy; + res.pasteAll = this.pasteAll; + res.pasteFormulas = this.pasteFormulas; + res.pasteValues = this.pasteValues; + res.pasteFormats = this.pasteFormats; + res.pasteComments = this.pasteComments; + res.pasteDataValidation = this.pasteDataValidation; + res.pasteBorders = this.pasteBorders; + res.pasteColWidths = this.pasteColWidths; + res.pasteNumberFormats = this.pasteNumberFormats; + res.merge = this.merge; + res.splitFirst = this.splitFirst; + res.splitAll = this.splitAll; + res.rowColShift = this.rowColShift; + res.clearAll = this.clearAll; + res.clearFormats = this.clearFormats; + res.clearContents = this.clearContents; + res.clearComments = this.clearComments; + res.assign = this.assign; + res.coerce = this.coerce; + res.cellMeta = this.cellMeta; + + return res; + }; + + function CMetadataString() { + this.v = null; + } + CMetadataString.prototype.clone = function () { + let res = new CMetadataString(); + + res.v = this.v; + + return res; + }; + + function CMdx() { + this.mdxTuple = null; + this.mdxSet = null; + this.mdxKPI = null; + this.mdxMemeberProp = null; + + this.n = null; + this.f = null; + } + CMdx.prototype.clone = function () { + let res = new CMdx(); + + res.mdxTuple = this.mdxTuple && this.mdxTuple.clone(); + res.mdxSet = this.mdxSet && this.mdxSet.clone(); + res.mdxKPI = this.mdxKPI && this.mdxKPI.clone(); + + res.mdxMemeberProp = this.mdxMemeberProp && this.mdxMemeberProp.clone(); + + res.n = this.n; + res.f = this.f; + + return res; + }; + + function CMdxTuple() { + this.c = null; + this.ct = null; + this.si = null; + this.fi = null; + this.bc = null; + this.fc = null; + this.i = null; + this.u = null; + this.st = null; + this.b = null; + + this.metadataStringIndexes = null; + } + CMdxTuple.prototype.clone = function () { + let res = new CMdxTuple(); + + res.c = this.c; + res.ct = this.ct; + res.si = this.si; + res.fi = this.fi; + res.bc = this.bc; + res.fc = this.fc; + res.i = this.i; + res.u = this.u; + res.st = this.st; + res.b = this.b; + + res.metadataStringIndexes = this.metadataStringIndexes && this.metadataStringIndexes.clone(); + + return res; + }; + + function CMdxSet() { + this.ns = null; + this.c = null; + this.o = null; + + this.metadataStringIndexes = null; + } + CMdxSet.prototype.clone = function () { + let res = new CMdxSet(); + + res.ns = this.ns; + res.c = this.c; + res.o = this.o; + + res.metadataStringIndexes = this.metadataStringIndexes && this.metadataStringIndexes.clone(); + + return res; + }; + + function CMetadataStringIndex() { + this.x = null; + this.s = null; + + } + CMetadataStringIndex.prototype.clone = function () { + let res = new CMetadataStringIndex(); + + res.x = this.x; + res.s = this.s; + + return res; + }; + + function CMdxMemeberProp() { + this.n = null; + this.np = null; + + } + CMdxMemeberProp.prototype.clone = function () { + let res = new CMdxMemeberProp(); + + res.n = this.n; + res.np = this.np; + + return res; + }; + + function CMdxKPI() { + this.n = null; + this.np = null; + this.p = null; + } + CMdxKPI.prototype.clone = function () { + let res = new CMdxKPI(); + + res.n = this.n; + res.np = this.np; + res.p = this.p; + + return res; + }; + + function CMetadataBlock() { + this.elems = null; + } + CMetadataBlock.prototype.clone = function () { + let res = new CMetadataBlock(); + + res.elems = this.elems; + + return res; + }; + + function CMetadataRecord() { + this.t = null; + this.v = null; + } + CMetadataRecord.prototype.clone = function () { + let res = new CMetadataRecord(); + + res.t = this.t; + res.v = this.v; + + return res; + }; + + function CFutureMetadataBlock() { + this.extLst = null; + } + CFutureMetadataBlock.prototype.clone = function () { + let res = new CFutureMetadataBlock(); + + res.extLst = this.extLst && this.extLst.clone(); + + return res; + }; + + function CMetadataBlockExt() { + this.richValueBlock = null; + this.dynamicArrayProperties = null; + } + CMetadataBlockExt.prototype.clone = function () { + let res = new CMetadataBlockExt(); + + res.richValueBlock = this.richValueBlock && this.richValueBlock.clone(); + res.dynamicArrayProperties = this.dynamicArrayProperties && this.dynamicArrayProperties.clone(); + + return res; + }; + //TODO move to extensions? + function CDynamicArrayProperties() { + this.fDynamic = null; + this.fCollapsed = null; + } + CDynamicArrayProperties.prototype.clone = function () { + let res = new CDynamicArrayProperties(); + + res.fDynamic = this.fDynamic; + res.fCollapsed = this.fCollapsed; + + return res; + }; + + function CRichValueBlock() { + this.i = null; + } + CRichValueBlock.prototype.clone = function () { + let res = new CRichValueBlock(); + + res.i = this.i; + + return res; + }; function CCustomFunctionEngine(wb) { this.wb = wb; @@ -17283,7 +18038,7 @@ function RangeDataManagerElem(bbox, data) if (!aArgs) { return argsInfo; } - + let paramsMap = {}; if (params) { for (let i in params) { @@ -18334,6 +19089,35 @@ function RangeDataManagerElem(bbox, data) window["AscCommonExcel"].CTimelineStyleElement = CTimelineStyleElement; window["AscCommonExcel"].CTimelinePivotFilter = CTimelinePivotFilter; + window["AscCommonExcel"].CCalcPr = CCalcPr; + + window["Asc"]["asc_CCalcSettings"] = window["Asc"].asc_CCalcSettings = asc_CCalcSettings; + prot = asc_CCalcSettings.prototype; + prot["asc_getIterativeCalc"] = prot.asc_getIterativeCalc; + prot["asc_getMaxIterations"] = prot.asc_getMaxIterations; + prot["asc_getMaxChange"] = prot.asc_getMaxChange; + + prot["asc_setIterativeCalc"] = prot.asc_setIterativeCalc; + prot["asc_setMaxIterations"] = prot.asc_setMaxIterations; + prot["asc_setMaxChange"] = prot.asc_setMaxChange; + prot["asc_initSettings"] = prot.asc_initSettings; + + window["AscCommonExcel"].CMetadata = CMetadata; + window["AscCommonExcel"].CMetadataType = CMetadataType; + window["AscCommonExcel"].CMetadataString = CMetadataString; + window["AscCommonExcel"].CFutureMetadata = CFutureMetadata; + window["AscCommonExcel"].CMdx = CMdx; + window["AscCommonExcel"].CMdxTuple = CMdxTuple; + window["AscCommonExcel"].CMdxSet = CMdxSet; + window["AscCommonExcel"].CMetadataStringIndex = CMetadataStringIndex; + window["AscCommonExcel"].CMdxMemeberProp = CMdxMemeberProp; + window["AscCommonExcel"].CMdxKPI = CMdxKPI; + window["AscCommonExcel"].CMetadataBlock = CMetadataBlock; + window["AscCommonExcel"].CMetadataRecord = CMetadataRecord; + window["AscCommonExcel"].CFutureMetadataBlock = CFutureMetadataBlock; + window["AscCommonExcel"].CMetadataBlockExt = CMetadataBlockExt; + window["AscCommonExcel"].CDynamicArrayProperties = CDynamicArrayProperties; + window["AscCommonExcel"].CRichValueBlock = CRichValueBlock; window["AscCommonExcel"].CCustomFunctionEngine = CCustomFunctionEngine; window["AscCommonExcel"].CCustomFunctionInfo = CCustomFunctionInfo; diff --git a/cell/model/WorkbookProtection.js b/cell/model/WorkbookProtection.js index 06931c8e00..48f65368dc 100644 --- a/cell/model/WorkbookProtection.js +++ b/cell/model/WorkbookProtection.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/autofilters.js b/cell/model/autofilters.js index 6c59e0b844..241c3fc727 100644 --- a/cell/model/autofilters.js +++ b/cell/model/autofilters.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/model/clipboard.js b/cell/model/clipboard.js index f9128c823d..44f8d05a84 100644 --- a/cell/model/clipboard.js +++ b/cell/model/clipboard.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1629,7 +1629,7 @@ }, pasteFromBinary: function (worksheet, binary, isCellEditMode, isPasteAll) { - var base64 = null, base64FromWord = null, base64FromPresentation = null, t = this; + var base64 = null, base64FromWord = null, base64FromPresentation = null, base64FromPDF = null, t = this; if (binary.indexOf("xslData;") > -1) { base64 = binary.split('xslData;')[1]; @@ -1637,6 +1637,8 @@ base64FromWord = binary.split('docData;')[1]; } else if (binary.indexOf("pptData;") > -1) { base64FromPresentation = binary.split('pptData;')[1]; + } else if (binary.indexOf("pdfData;") > -1) { + base64FromPDF = binary.split('pdfData;')[1]; } var result = false; @@ -1654,6 +1656,9 @@ } else if (base64FromPresentation) { result = this._pasteFromBinaryPresentation(worksheet, base64FromPresentation, isIntoShape, isCellEditMode); worksheet.workbook.handlers.trigger("cleanCopyData", true); + } else if (base64FromPDF) { + result = this._pasteFromBinaryPDF(worksheet, base64FromPDF, isIntoShape, isCellEditMode); + worksheet.workbook.handlers.trigger("cleanCopyData", true); } return result; @@ -2220,6 +2225,236 @@ return {content: presentationSelectedContent, fonts: fonts, images: arr_Images}; }, + _pasteFromBinaryPDF: function (worksheet, base64, isIntoShape, isCellEditMode) { + pptx_content_loader.Clear(); + + let _stream = AscFormat.CreateBinaryReader(base64, 0, base64.length); + let stream = new AscCommon.FileStream(_stream.data, _stream.size); + let p_url = stream.GetString2(); + let t = this; + + let bIsMultipleContent = stream.GetBool(); + + let selectedContent2 = [], i; + let multipleParamsCount = stream.GetULong(); + for (i = 0; i < multipleParamsCount; i++) { + selectedContent2.push(this._readPDFSelectedContent(stream, worksheet)); + } + + let specialOptionsArr = []; + let specialProps = Asc.c_oSpecialPasteProps; + if (2 === multipleParamsCount) { + specialOptionsArr = [specialProps.sourceformatting]; + } else if (3 === multipleParamsCount) { + specialOptionsArr = [specialProps.sourceformatting, specialProps.picture]; + } + + let pasteObj = selectedContent2[0] ? selectedContent2[0] : selectedContent2[1]; + + if (window['AscCommon'].g_specialPasteHelper.specialPasteStart) { + let props = window['AscCommon'].g_specialPasteHelper.specialPasteProps.property; + switch (props) { + case Asc.c_oSpecialPasteProps.picture: { + if (selectedContent2[2]) { + pasteObj = selectedContent2[2]; + } + break; + } + } + } + + let arr_Images, fonts, content = null; + if (pasteObj) { + arr_Images = pasteObj.images; + fonts = pasteObj.fonts; + content = pasteObj.content; + } + + if (null === content) { + window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + return; + } + + if (content.DocContent) { + let docContent = content.DocContent.Elements; + + if (isCellEditMode) { + let text = this._getTextFromWord(docContent); + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + return text; + } else if (isIntoShape) { + let callback = function (isSuccess) { + if (isSuccess) { + t._insertBinaryIntoShapeContent(worksheet, docContent); + } + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + }; + + worksheet.objectRender.controller.checkPasteInText(callback); + return true; + } else { + History.TurnOff(); + let oPasteFromBinaryWord = new pasteFromBinaryWord(this, worksheet, true); + + let oTempDrawingDocument = window["Asc"]["editor"].wbModel.getDrawingDocument(); + let newCDocument = new CDocument(oTempDrawingDocument, false); + newCDocument.bFromDocument = true; + newCDocument.theme = window["Asc"]["editor"].wbModel.theme; + + let newContent = []; + for (i = 0; i < docContent.length; i++) { + if (type_Paragraph === docContent[i].GetType())//paragraph + { + docContent[i] = AscFormat.ConvertParagraphToWord(docContent[i], newCDocument); + docContent[i].bFromDocument = true; + newContent.push(docContent[i]); + } else if (type_Table === docContent[i].GetType())//table + { + //TODO вырезать из таблицы параграфы + } + } + docContent = newContent; + + History.TurnOn(); + + oPasteFromBinaryWord._paste(worksheet, {content: docContent}); + } + } else if (content.Drawings) { + + if (isCellEditMode) { + return ""; + } + + window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); + specialProps = window['AscCommon'].g_specialPasteHelper.buttonInfo; + if (specialOptionsArr.length > 1) { + specialProps.asc_setOptions(specialOptionsArr); + } + + let arr_shapes = content.Drawings; + if (arr_shapes && arr_shapes.length && !(window["Asc"]["editor"] && window["Asc"]["editor"].isChartEditor)) { + if (content.Drawings.length === selectedContent2[1].content.Drawings.length) { + let oEndContent = { + Drawings: [] + }; + let oSourceContent = { + Drawings: [] + }; + for (i = 0; i < content.Drawings.length; ++i) { + oEndContent.Drawings.push({Drawing: content.Drawings[i].graphicObject}); + oSourceContent.Drawings.push({Drawing: selectedContent2[1].content.Drawings[i].graphicObject}); + } + AscFormat.checkDrawingsTransformBeforePaste(oEndContent, oSourceContent, null); + } + let newFonts = {}; + for (i = 0; i < arr_shapes.length; i++) { + arr_shapes[i].graphicObject.getAllFonts(newFonts); + } + + let aPastedImages = arr_Images; + worksheet._loadFonts(newFonts, function () { + if (aPastedImages && aPastedImages.length) { + t._loadImagesOnServer(aPastedImages, function () { + t._insertImagesFromBinary(worksheet, {Drawings: arr_shapes}, isIntoShape, true); + }); + } else { + t._insertImagesFromBinary(worksheet, {Drawings: arr_shapes}, isIntoShape, true); + } + }); + } else { + window['AscCommon'].g_specialPasteHelper.buttonInfo.clean(); + } + + return true; + } + }, + + _readPDFSelectedContent: function (stream, worksheet) { + + var oPdfSelContent = null; + var fonts = []; + var arr_Images = {}; + var oThis = this; + + var loader = new AscCommon.BinaryPPTYLoader(); + loader.presentation = worksheet.model; + loader.DrawingDocument = worksheet.getDrawingDocument(); + loader.stream = stream; + + var readContent = function () { + History.TurnOff(); + var docContent = AscCommon.PasteProcessor.prototype.ReadPresentationText.call(this, stream, worksheet); + History.TurnOn(); + + if (docContent.length === 0) { + return; + } + oPdfSelContent.DocContent = new AscCommonWord.CSelectedContent(); + oPdfSelContent.DocContent.Elements = docContent; + + //перебираем шрифты + for (var i in oThis.oFonts) { + fonts.push(new AscFonts.CFont(i)); + } + }; + + var readDrawings = function () { + + var objects = oThis.ReadPresentationShapes(stream, worksheet); + oPdfSelContent.Drawings = objects.arrShapes; + + var arr_shapes = objects.arrShapes; + var font_map = {}, i; + for (i = 0; i < arr_shapes.length; ++i) { + if (arr_shapes[i].graphicObject.getAllFonts) { + arr_shapes[i].graphicObject.getAllFonts(font_map); + } + } + + for (i in font_map) { + fonts.push(new AscFonts.CFont(i)); + } + + arr_Images = objects.arrImages; + }; + + var skip1 = function () { + var selected_objs = loader.stream.GetULong(); + + for (var i = 0; i < selected_objs; ++i) { + loader.stream.GetUChar(); + loader.stream.SkipRecord(); + } + }; + + var first_content = stream.GetString2(); + if (first_content === "SelectedContent") { + var countContent = stream.GetULong(); + for (var i = 0; i < countContent; i++) { + if (null === oPdfSelContent) { + oPdfSelContent = window["AscPDF"] && window["AscPDF"].PDFSelectedContent ? new window["AscPDF"].PDFSelectedContent() : {}; + } + var first_string = stream.GetString2(); + switch (first_string) { + case "DocContent": { + readContent(stream, worksheet); + break; + } + case "Drawings": { + readDrawings(); + break; + } + default: { + skip1(); + } + } + } + } + + return {content: oPdfSelContent, fonts: fonts, images: arr_Images}; + }, + _insertBinaryIntoShapeContent: function (worksheet, content, isConvertToPPTX) { if (!content || !content.length) { return; @@ -2497,6 +2732,7 @@ } oDrawing.addToDrawingObjects(); oDrawing.checkDrawingBaseCoords(); + oDrawing.generateSmartArtDrawingPart(); oDrawing.recalculate(); oDrawing.select(ws.objectRender.controller, 0); } @@ -2670,6 +2906,7 @@ graphicObject.setDrawingBaseType(nAnchorType); if (graphicObject.checkExtentsByDocContent) { graphicObject.checkDrawingBaseCoords(); + graphicObject.generateSmartArtDrawingPart(); graphicObject.checkExtentsByDocContent(); } aDrawings.push(graphicObject); @@ -2875,7 +3112,7 @@ }, _getClassBinaryFromHtml: function (node) { - var base64 = null, base64FromWord = null, base64FromPresentation = null; + var base64 = null, base64FromWord = null, base64FromPresentation = null, base64FromPDF; var classNode = AscCommon.searchBinaryClass(node); if (classNode != null) { @@ -2887,6 +3124,8 @@ base64FromWord = cL[i].split('docData;')[1]; } else if (cL[i].indexOf("pptData;") > -1) { base64FromPresentation = cL[i].split('pptData;')[1]; + } else if (cL[i].indexOf("pdfData;") > -1) { + base64FromPDF = cL[i].split('pdfData;')[1]; } } } @@ -4478,7 +4717,7 @@ formatBorders.initDefault(); } //top border for cell - if (top === cellTable.top && (!formatBorders.t || formatBorders.t.isEmpty()) && borders.Top.Value !== 0/*border_None*/) { + if (top === cellTable.top && (!formatBorders.t || formatBorders.t.isEmpty()) && borders.Top.Value !== AscWord.BorderType.none) { borderStyleName = this.clipboard._getBorderStyleName(defaultStyle, this.ws.objectRender.convertMetric(borders.Top.Size, 3, 1)); if (null !== borderStyleName) { formatBorders.t = new AscCommonExcel.BorderProp(); @@ -4487,7 +4726,7 @@ } } //left border for cell - if (left === cellTable.left && (!formatBorders.l || formatBorders.l.isEmpty()) && borders.Left.Value !== 0/*border_None*/) { + if (left === cellTable.left && (!formatBorders.l || formatBorders.l.isEmpty()) && borders.Left.Value !== AscWord.BorderType.none) { borderStyleName = this.clipboard._getBorderStyleName(defaultStyle, this.ws.objectRender.convertMetric(borders.Left.Size, 3, 1)); if (null !== borderStyleName) { formatBorders.l = new AscCommonExcel.BorderProp(); @@ -4497,7 +4736,7 @@ } //bottom border for cell if (top === cellTable.top + heightCell - 1 && (!formatBorders.b || formatBorders.b.isEmpty()) && - borders.Bottom.Value !== 0/*border_None*/) { + borders.Bottom.Value !== AscWord.BorderType.none) { borderStyleName = this.clipboard._getBorderStyleName(defaultStyle, this.ws.objectRender.convertMetric(borders.Bottom.Size, 3, 1)); if (null !== borderStyleName) { formatBorders.b = new AscCommonExcel.BorderProp(); @@ -4507,7 +4746,7 @@ } //right border for cell if (left === cellTable.left + widthCell - 1 && (!formatBorders.r || formatBorders.r.isEmpty()) && - borders.Right.Value !== 0/*border_None*/) { + borders.Right.Value !== AscWord.BorderType.none) { borderStyleName = this.clipboard._getBorderStyleName(defaultStyle, this.ws.objectRender.convertMetric(borders.Right.Size, 3, 1)); if (null !== borderStyleName) { formatBorders.r = new AscCommonExcel.BorderProp(); diff --git a/cell/model/protectRange.js b/cell/model/protectRange.js index b148862415..6ea1f6a3b5 100644 --- a/cell/model/protectRange.js +++ b/cell/model/protectRange.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/cell/model/whatIfAnalysis.js b/cell/model/whatIfAnalysis.js index 4fb1dabc6a..032388ee2a 100644 --- a/cell/model/whatIfAnalysis.js +++ b/cell/model/whatIfAnalysis.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/utils/utils.js b/cell/utils/utils.js index 0fb57ee466..8010f87f30 100644 --- a/cell/utils/utils.js +++ b/cell/utils/utils.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -2067,6 +2067,9 @@ } function getFragmentsText(f) { + if (!f) { + return ""; + } return f.reduce(function (pv, cv) { if (null === cv.getFragmentText()) { cv.initText(); @@ -2076,6 +2079,9 @@ } function getFragmentsLength(f) { + if (!f) { + return; + } return f.length > 0 ? f.reduce(function (pv, cv) { if (null === cv.getFragmentText()) { cv.initText(); @@ -2085,18 +2091,27 @@ } function getFragmentsCharCodes(f) { + if (!f) { + return; + } return f.reduce(function (pv, cv) { return pv.concat(cv.getCharCodes()); - }, ""); + }, []); } function getFragmentsCharCodesLength(f) { + if (!f) { + return 0; + } return f.length > 0 ? f.reduce(function (pv, cv) { return pv + cv.getCharCodes().length; }, 0) : 0; } function getFragmentsTextFromCode(f) { + if (!f) { + return ""; + } return f.reduce(function (pv, cv) { if (null === cv.getFragmentText()) { cv.initText(); @@ -2385,6 +2400,14 @@ var oMatrix = new AscCommon.CMatrix(); oMatrix.tx = rect._x; oMatrix.ty = rect._y; + //TODO !!!rtl print + let api = window.Asc.editor; + let wb = api && api.wb; + let ws = wb.getWorksheet(); + if (ws && ws.getRightToLeft()) { + oMatrix.sx = -1; + oMatrix.tx = (ws.getCtxWidth() * vector_koef) - oMatrix.tx; + } graphics.transform3(oMatrix); var shapeDrawer = new AscCommon.CShapeDrawer(); shapeDrawer.Graphics = graphics; @@ -3092,6 +3115,7 @@ this.zoomScale = 100; this.showZeros = null; + this.rightToLeft = null; this.showFormulas = null; this.topLeftCell = null; @@ -3114,6 +3138,7 @@ } result.showZeros = this.showZeros; result.topLeftCell = this.topLeftCell; + result.rightToLeft = this.rightToLeft; result.showFormulas = this.showFormulas; return result; }, @@ -3140,6 +3165,9 @@ asc_getShowFormulas: function () { return false !== this.showFormulas; }, + asc_getRightToLeft: function () { + return this.rightToLeft; + }, asc_setShowGridLines: function (val) { this.showGridLines = val; }, @@ -3154,6 +3182,9 @@ }, asc_setShowFormulas: function (val) { this.showFormulas = val; + }, + asc_setRightToLeft: function (val) { + this.rightToLeft = val; } }; @@ -3892,8 +3923,8 @@ } }; - cDate.prototype.getDateString = function (api) { - return api.asc_getLocaleExample(AscCommon.getShortDateFormat(), this.getExcelDate()); + cDate.prototype.getDateString = function (api, bLocal) { + return api.asc_getLocaleExample(AscCommon.getShortDateFormat(), this.getExcelDate(bLocal)); }; cDate.prototype.getTimeString = function (api) { return api.asc_getLocaleExample(AscCommon.getShortTimeFormat(), this.getExcelDateWithTime() - this.getTimezoneOffset() / (60 * 24)); @@ -4070,6 +4101,8 @@ prot["asc_setShowRowColHeaders"] = prot.asc_setShowRowColHeaders; prot["asc_setShowZeros"] = prot.asc_setShowZeros; prot["asc_setShowFormulas"] = prot.asc_setShowFormulas; + prot["asc_setRightToLeft"] = prot.asc_setRightToLeft; + prot["asc_getRightToLeft"] = prot.asc_getRightToLeft; window["AscCommonExcel"].asc_CPane = asc_CPane; window["AscCommonExcel"].asc_CSheetPr = asc_CSheetPr; diff --git a/cell/view/CellEditorView.js b/cell/view/CellEditorView.js index 659a9270e6..92c35034f5 100644 --- a/cell/view/CellEditorView.js +++ b/cell/view/CellEditorView.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -162,8 +162,8 @@ function (window, undefined) { /** @type RegExp */ this.rangeChars = ["=", "-", "+", "*", "/", "(", "{", "<", ">", "^", "!", "&", ":", " ", "."]; - this.reNotFormula = new XRegExp("[^\\p{L}\\\\_\\#\\]\\[\\p{N}\\.\"\]", "i"); - this.reFormula = new XRegExp("^([\\p{L}\\\\_\\]\\[][\\p{L}\\\\_\\#\\]\\[\\p{N}\\.]*)", "i"); + this.reNotFormula = new XRegExp("[^\\p{L}\\\\_\\#\\]\\[\\p{N}\\.\"\@]", "i"); + this.reFormula = new XRegExp("^([\\p{L}\\\\_\\]\\[][\\p{L}\\\\_\\#\\]\\[\\p{N}\\.@]*)", "i"); this.defaults = { padding: padding, @@ -422,8 +422,6 @@ function (window, undefined) { this.End_CompositeInput(); } - AscCommon.StartIntervalDrawText(false); - if (saveValue) { // Пересчет делаем всегда для не пустой ячейки или если были изменения. http://bugzilla.onlyoffice.com/show_bug.cgi?id=34864 if (0 < this.undoList.length || 0 < AscCommonExcel.getFragmentsCharCodesLength(this.options.fragments)) { @@ -483,6 +481,10 @@ function (window, undefined) { if (this.isFormula()) { return; } + if (!this.options.fragments) { + return; + } + this.startAction(); var t = this, opt = t.options, begin, end, i, first, last; @@ -541,6 +543,9 @@ function (window, undefined) { if (this.isFormula()) { return; } + if (!this.options.fragments) { + return; + } var t = this, opt = t.options; if (t.selectionBegin !== t.selectionEnd) { @@ -556,6 +561,9 @@ function (window, undefined) { CellEditor.prototype._changeFragments = function (fragmentsMap) { let opt = this.options; + if (!opt.fragments) { + return; + } this.startAction(); if (fragmentsMap) { let _undoFragments = {}; @@ -953,7 +961,8 @@ function (window, undefined) { bboxOper = null; r = this._parseResult.refPos[index]; oper = r.oper; - if (cElementType.table === oper.type || cElementType.name === oper.type || cElementType.name3D === oper.type) { + if ((cElementType.table === oper.type || cElementType.name === oper.type || + cElementType.name3D === oper.type) && oper.externalLink == null) { oper = r.oper.toRef(bbox); if (oper instanceof AscCommonExcel.cError) { continue; @@ -1260,9 +1269,9 @@ function (window, undefined) { //получаю строку без двухбайтовых символов и её отдаю регулярке //позиции всех функций должны совпадать //остаётся вопрос с аргументами, которые могут содержать двухбайтовые символы - s = this.options.fragments.reduce(function (pv, cv) { + s = this.options.fragments ? this.options.fragments.reduce(function (pv, cv) { return pv + AscCommonExcel.convertUnicodeToSimpleString(cv.getCharCodes()); - }, ""); + }, "") : ""; if (isFormula) { let obj = this._getFunctionByString(this.cursorPos, s); @@ -1363,7 +1372,7 @@ function (window, undefined) { CellEditor.prototype._expand = function () { var bottom, tm; var doAdjust = false, fragments = this._getRenderFragments(); - if (0 < fragments.length) { + if (fragments && 0 < fragments.length) { bottom = this.bottom; this.bottom = this.sides.b[this.sides.bi]; @@ -1537,11 +1546,13 @@ function (window, undefined) { if (!window['IS_NATIVE_EDITOR']) { let _width = this._originalCanvasWidth ? this._originalCanvasWidth : ctx.getWidth(); - ctx.setFillStyle(opt.background) - .fillRect(0, 0, _width, ctx.getHeight()); + if (opt.background) { + ctx.setFillStyle(opt.background); + } + ctx.fillRect(0, 0, _width, ctx.getHeight()); } - if (opt.fragments.length > 0) { + if (opt.fragments && opt.fragments.length > 0) { t.textRender.render(undefined, t._getContentLeft(), dy || 0, t._getContentWidth(), opt.font.getColor()); } }; @@ -1855,14 +1866,14 @@ function (window, undefined) { var l = Math.min(s1.length, s2.length); var i1 = 0, i2; - while (i1 < l && s1.charAt(i1) === s2.charAt(i1)) { + while (i1 < l && s1[i1] === s2[i1]) { ++i1; } i2 = i1 + 1; if (i2 >= l) { i2 = Math.max(s1.length, s2.length); } else { - while (i2 < l && s1.charAt(i1) !== s2.charAt(i2)) { + while (i2 < l && s1[i1] !== s2[i2]) { ++i2; } } @@ -1891,6 +1902,9 @@ function (window, undefined) { }; CellEditor.prototype._getContentPosition = function () { + if (!this.textFlags) { + return this.defaults.padding; + } switch (this.textFlags.textAlign) { case AscCommon.align_Right: return this.right - this.left - this.defaults.padding - 1; @@ -1920,6 +1934,10 @@ function (window, undefined) { this.sAutoComplete = null; + if (!opt.fragments) { + return; + } + if (this.selectionBegin !== this.selectionEnd) { var copyFragment = this._findFragmentToInsertInto(Math.min(this.selectionBegin, this.selectionEnd) + 1); if (copyFragment && !this.newTextFormat) { @@ -2035,6 +2053,9 @@ function (window, undefined) { if (b === e) { return; } + if (!opt.fragments) { + return; + } this.startAction(); @@ -2122,6 +2143,9 @@ function (window, undefined) { if (!fragments) { fragments = this.options.fragments; } + if (!fragments) { + return; + } for (i = 0, begin = 0; i < fragments.length; ++i) { end = begin + fragments[i].getCharCodesLength(); @@ -2141,6 +2165,9 @@ function (window, undefined) { if (!fragments) { fragments = this.options.fragments; } + if (!fragments) { + return; + } for (i = 0, begin = 0; i < fragments.length; ++i) { end = begin + fragments[i].getCharCodesLength(); @@ -2164,6 +2191,9 @@ function (window, undefined) { if (!fragments) { fragments = this.options.fragments; } + if (!fragments) { + return; + } if (pos > f.begin && pos < f.end) { fr = fragments[f.index]; @@ -2221,6 +2251,10 @@ function (window, undefined) { CellEditor.prototype._addFragments = function (f, pos) { var t = this, opt = t.options, fr; + if (!opt.fragments) { + return; + } + fr = t._findFragment(pos); if (fr && pos < fr.end) { t._splitFragment(fr, pos); @@ -2245,6 +2279,9 @@ function (window, undefined) { if (!fragments) { fragments = this.options.fragments; } + if (!fragments) { + return; + } for (i = 0; i < fragments.length;) { if (fragments[i].getCharCodesLength() < 1 && fragments.length > 1) { @@ -2269,6 +2306,10 @@ function (window, undefined) { CellEditor.prototype._cleanFragments = function (fr) { var t = this, i, s, f, wrap = t.textFlags.wrapText || t.textFlags.wrapOnlyNL; + if (!fr) { + return; + } + for (i = 0; i < fr.length; ++i) { s = fr[i].getCharCodes(); if (!wrap && -1 !== window["Asc"].search(s, function (val) { @@ -2363,7 +2404,7 @@ function (window, undefined) { let _redoFragments = {}; for (let i in _fragments) { if (_fragments.hasOwnProperty(i)) { - if (this.options.fragments[i]) { + if (this.options.fragments && this.options.fragments[i]) { _redoFragments[i] = this.options.fragments[i].clone(); } } @@ -2389,6 +2430,7 @@ function (window, undefined) { var applyByArray = t.textFlags && t.textFlags.ctrlKey; if (!applyByArray && success) { t.handlers.trigger("applyCloseEvent", event); + AscCommon.StartIntervalDrawText(false); } }; this.close(true, callback); @@ -2421,7 +2463,7 @@ function (window, undefined) { } var xfs = new AscCommonExcel.CellXfs(); - xfs.setFont(this.newTextFormat || this.options.fragments[f.index].format); + xfs.setFont(this.newTextFormat || (this.options.fragments && this.options.fragments[f.index].format)); this.handlers.trigger("updateEditorSelectionInfo", xfs); }; @@ -2795,7 +2837,7 @@ function (window, undefined) { case 186: // ctrl + (shift) + ; if (ctrlKey) { var oDate = new Asc.cDate(); - t._addChars(event.shiftKey ? oDate.getTimeString(api) : oDate.getDateString(api)); + t._addChars(event.shiftKey ? oDate.getTimeString(api) : oDate.getDateString(api, true)); event.stopPropagation(); event.preventDefault(); } @@ -3050,7 +3092,7 @@ function (window, undefined) { return {x: event.pageX, y: event.pageY}; } - var offs = this.canvasOverlay.getBoundingClientRect(); + var offs = AscCommon.UI.getBoundingClientRect(this.canvasOverlay); var x = (((event.pageX * AscBrowser.zoom) >> 0) - offs.left) / this.kx; var y = (((event.pageY * AscBrowser.zoom) >> 0) - offs.top) / this.ky; @@ -3155,6 +3197,12 @@ function (window, undefined) { this.skipKeyPress = val; }; CellEditor.prototype.getText = function (start, len) { + if (start == null) { + start = 0; + } + if (len == null) { + len = this.textRender.getCharsCount(); + } let chars = this.textRender.getChars(start, len); let res = ""; for (let i in chars) { diff --git a/cell/view/CellTextRender.js b/cell/view/CellTextRender.js index 1d8df96b59..307299c57d 100644 --- a/cell/view/CellTextRender.js +++ b/cell/view/CellTextRender.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/view/DrawingObjectsController.js b/cell/view/DrawingObjectsController.js index fd48e350e0..8bb7c09936 100644 --- a/cell/view/DrawingObjectsController.js +++ b/cell/view/DrawingObjectsController.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/view/EventsController.js b/cell/view/EventsController.js index d05efa93ab..8ebb82155c 100644 --- a/cell/view/EventsController.js +++ b/cell/view/EventsController.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -154,7 +154,7 @@ return; } - if (this.view.Api.isMobileVersion) { + if (this.view.Api.isUseOldMobileVersion()) { /*раньше события на ресайз вызывался из меню через контроллер. теперь контроллер в меню не доступен, для ресайза подписываемся на глобальный ресайз от window.*/ window.addEventListener("resize", function () { self._onWindowResize.apply(self, arguments); @@ -434,7 +434,7 @@ settings.isVerticalScroll = true; settings.isHorizontalScroll = false; this.vsbApi.canvasH = null; - this.reinitScrollY(settings, ws.getFirstVisibleRow(true), ws.getVerticalScrollRange(), ws.getVerticalScrollMax()); + this.reinitScrollY(settings, ws.workbook.getSmoothScrolling() ? ws.getFirstVisibleRowSmoothScroll(true) : ws.getFirstVisibleRow(true), ws.getVerticalScrollRange(), ws.getVerticalScrollMax()); this.vsbApi.settings = settings; } if (this.hsbApi) { @@ -444,7 +444,7 @@ settings.isVerticalScroll = false; settings.isHorizontalScroll = true; this.hsbApi.canvasW = null; - this.reinitScrollX(settings, ws.getFirstVisibleCol(true), ws.getHorizontalScrollRange(), ws.getHorizontalScrollMax()); + this.reinitScrollX(settings, ws.workbook.getSmoothScrolling() ? ws.getFirstVisibleColSmoothScroll(true) : ws.getFirstVisibleCol(true), ws.getHorizontalScrollRange(), ws.getHorizontalScrollMax()); this.hsbApi.settings = settings; } }; @@ -456,7 +456,15 @@ this.vsb = document.createElement('div'); this.vsb.id = "ws-v-scrollbar"; this.vsb.style.backgroundColor = AscCommon.GlobalSkin.ScrollBackgroundColor; - this.widget.appendChild(this.vsb); + //TODO test rtl + /*if (window.rightToleft) { + this.vsb.style.left = "0px"; + this.widget.prepend(this.vsb); + this.widget.children[1].style.left = this.vsb.clientWidth + "px"; + this.widget.children[1].style.overflow = "visible" + } else {*/ + this.widget.appendChild(this.vsb); + //} if (!this.vsbApi) { settings = this.createScrollSettings(); @@ -1331,9 +1339,13 @@ }; if ((dc !== 0 || dr !== 0) && false === t.handlers.trigger("isGlobalLockEditCell")) { + const wb = window["Asc"]["editor"].wb; + let ws = wb.getWorksheet(); + if (ws && ws.getRightToLeft()) { + dc = -dc; + } if (isChangeVisibleAreaMode) { t.handlers.trigger("changeVisibleArea", !shiftKey, dc, dr, false, function (d) { - const wb = window["Asc"]["editor"].wb; if (t.targetInfo) { wb._onUpdateWorksheet(t.targetInfo.coordX, t.targetInfo.coordY, false); } @@ -1354,7 +1366,8 @@ if (t.targetInfo) { wb._onUpdateWorksheet(t.targetInfo.coordX, t.targetInfo.coordY, false); } - t.scroll(d); + const ws = wb.getWorksheet(); + t.scroll(ws.convertOffsetToSmooth(d)); _checkLastTab(); }); } @@ -1621,6 +1634,17 @@ /** @param event {MouseEvent} */ asc_CEventsController.prototype._onMouseDown = function (event) { + let touchManager = this.view.Api.wb.MobileTouchManager; + if (touchManager && touchManager.checkTouchEvent(event)) + { + touchManager.startTouchingInProcess(); + let res = touchManager.mainOnTouchStart(event); + touchManager.stopTouchingInProcess(); + return res; + } + if (touchManager) + touchManager.checkMouseFocus(event); + var t = this; asc["editor"].checkInterfaceElementBlur(); var ctrlKey = !AscCommon.getAltGr(event) && (event.metaKey || event.ctrlKey); @@ -1851,6 +1875,15 @@ /** @param event {MouseEvent} */ asc_CEventsController.prototype._onMouseUp = function (event) { + let touchManager = this.view.Api.wb.MobileTouchManager; + if (touchManager && touchManager.checkTouchEvent(event)) + { + touchManager.startTouchingInProcess(); + let res = touchManager.mainOnTouchEnd(event); + touchManager.stopTouchingInProcess(); + return res; + } + var button = AscCommon.getMouseButton(event); AscCommon.global_mouseEvent.UnLockMouse(); @@ -1943,6 +1976,15 @@ /** @param event {MouseEvent} */ asc_CEventsController.prototype._onMouseMove = function (event) { + let touchManager = this.view.Api.wb.MobileTouchManager; + if (touchManager && touchManager.checkTouchEvent(event)) + { + touchManager.startTouchingInProcess(); + let res = touchManager.mainOnTouchMove(event); + touchManager.stopTouchingInProcess(); + return res; + } + var t = this; var ctrlKey = !AscCommon.getAltGr(event) && (event.metaKey || event.ctrlKey); var coord = t._getCoordinates(event); @@ -2068,44 +2110,78 @@ var self = this; var deltaX = 0, deltaY = 0; - if (undefined !== event.wheelDelta && 0 !== event.wheelDelta) { - deltaY = -1 * event.wheelDelta / 40; - } else if (undefined !== event.detail && 0 !== event.detail) { - // FF - deltaY = event.detail; - } else if (undefined !== event.deltaY && 0 !== event.deltaY) { - // FF - //ограничиваем шаг из-за некорректного значения deltaY после обновления FF - //TODO необходимо пересмотреть. нужны корректные значения и учетом системного шага. - var _maxDelta = 3; - if (AscCommon.AscBrowser.isMozilla && Math.abs(event.deltaY) > _maxDelta) { - deltaY = Math.sign(event.deltaY) * _maxDelta; - } else { - deltaY = event.deltaY; + + const wb = window["Asc"]["editor"].wb; + //TODO for mac touchpads. need review + if (wb.smoothScroll && AscCommon.AscBrowser.isMacOs) { + var delta = 0; + + if (undefined != event.wheelDelta && event.wheelDelta != 0) { + delta = -45 * event.wheelDelta / 120; + } + { + delta = 45 * event.detail / 3; } - } - if (undefined !== event.deltaX && 0 !== event.deltaX) { - deltaX = event.deltaX; - } - if (event.axis !== undefined && event.axis === event.HORIZONTAL_AXIS) { - deltaX = deltaY; - deltaY = 0; - } - if (undefined !== event.wheelDeltaX && 0 !== event.wheelDeltaX) { - // Webkit - deltaX = -1 * event.wheelDeltaX / 40; - } - if (undefined !== event.wheelDeltaY && 0 !== event.wheelDeltaY) { + // New school multidimensional scroll (touchpads) deltas + deltaY = delta; + + // Webkit - deltaY = -1 * event.wheelDeltaY / 40; + if (undefined !== event.wheelDeltaY && 0 !== event.wheelDeltaY) { + deltaY = -45 * event.wheelDeltaY / 120; + } + if (undefined !== event.wheelDeltaX && 0 !== event.wheelDeltaX) { + deltaX = -45 * event.wheelDeltaX / 120; + } + + + deltaX >>= 0; + deltaY >>= 0; + + deltaX = (deltaX / wb.getWorksheet().getHScrollStep()) * AscCommon.AscBrowser.retinaPixelRatio; + deltaY = (deltaY / wb.getWorksheet().getVScrollStep()) * AscCommon.AscBrowser.retinaPixelRatio; + } else { + if (undefined !== event.wheelDelta && 0 !== event.wheelDelta) { + deltaY = -1 * event.wheelDelta / 40; + } else if (undefined !== event.detail && 0 !== event.detail) { + // FF + deltaY = event.detail; + } else if (undefined !== event.deltaY && 0 !== event.deltaY) { + // FF + //ограничиваем шаг из-за некорректного значения deltaY после обновления FF + //TODO необходимо пересмотреть. нужны корректные значения и учетом системного шага. + var _maxDelta = 3; + if (AscCommon.AscBrowser.isMozilla && Math.abs(event.deltaY) > _maxDelta) { + deltaY = Math.sign(event.deltaY) * _maxDelta; + } else { + deltaY = event.deltaY; + } + } + if (undefined !== event.deltaX && 0 !== event.deltaX) { + deltaX = event.deltaX; + } + if (event.axis !== undefined && event.axis === event.HORIZONTAL_AXIS) { + deltaX = deltaY; + deltaY = 0; + } + + if (undefined !== event.wheelDeltaX && 0 !== event.wheelDeltaX) { + // Webkit + deltaX = -1 * event.wheelDeltaX / 40; + } + if (undefined !== event.wheelDeltaY && 0 !== event.wheelDeltaY) { + // Webkit + deltaY = -1 * event.wheelDeltaY / 40; + } } + if (event.shiftKey) { deltaX = deltaY; deltaY = 0; } - if (this.smoothWheelCorrector) { + if (this.smoothWheelCorrector && !wb.smoothScroll) { deltaX = this.smoothWheelCorrector.get_DeltaX(deltaX); deltaY = this.smoothWheelCorrector.get_DeltaY(deltaY); } @@ -2118,11 +2194,15 @@ this.handlers.trigger("updateWorksheet", /*x*/undefined, /*y*/undefined, /*ctrlKey*/undefined, function () { if (deltaX && (!self.smoothWheelCorrector || !self.smoothWheelCorrector.isBreakX())) { - deltaX = Math.sign(deltaX) * Math.ceil(Math.abs(deltaX / 3)); + if (!wb.smoothScroll) { + deltaX = Math.sign(deltaX) * Math.ceil(Math.abs(deltaX / 3)); + } self.scrollHorizontal(deltaX, event); } if (deltaY && (!self.smoothWheelCorrector || !self.smoothWheelCorrector.isBreakY())) { - deltaY = Math.sign(deltaY) * Math.ceil(Math.abs(deltaY * self.settings.wheelScrollLinesV / 3)); + if (!wb.smoothScroll) { + deltaY = Math.sign(deltaY) * Math.ceil(Math.abs(deltaY * self.settings.wheelScrollLinesV / 3)); + } self.scrollVertical(deltaY, event); } self._onMouseMove(event); @@ -2158,7 +2238,7 @@ return event.coord; } - var offs = this.element.getBoundingClientRect(); + var offs = AscCommon.UI.getBoundingClientRect(this.element); var x = ((event.pageX * AscBrowser.zoom) >> 0) - offs.left; var y = ((event.pageY * AscBrowser.zoom) >> 0) - offs.top; diff --git a/cell/view/HandlerList.js b/cell/view/HandlerList.js index 601a0d7073..b702716037 100644 --- a/cell/view/HandlerList.js +++ b/cell/view/HandlerList.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/cell/view/StringRender.js b/cell/view/StringRender.js index 8a83272501..4201bdbdcb 100644 --- a/cell/view/StringRender.js +++ b/cell/view/StringRender.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -125,8 +125,8 @@ oRes.c = (undefined !== this.c) ? this.c.clone() : undefined; oRes.lm = (undefined !== this.lm) ? this.lm.clone() : undefined; oRes.fm = (undefined !== this.fm) ? this.fm.clone() : undefined; - oRes.fsz = (undefined !== this.fsz) ? this.fsz.clone() : undefined; oRes.font = (undefined !== this.font) ? this.font.clone() : undefined; + oRes.fsz = this.fsz; oRes.va = this.va; oRes.nl = this.nl; oRes.hp = this.hp; diff --git a/cell/view/WorkbookView.js b/cell/view/WorkbookView.js index 971c9cce91..567c544d0e 100644 --- a/cell/view/WorkbookView.js +++ b/cell/view/WorkbookView.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -331,6 +331,8 @@ this.customFunctionEngine = null; + this.smoothScroll = true; + return this; } @@ -352,10 +354,10 @@ if (null != this.element) { if (!this.Api.VersionHistory && !this.Api.isEditOleMode) { this.element.innerHTML = '
\ - \ - \ - \ - \ + \ + \ + \ + \ \
'; @@ -391,7 +393,7 @@ this.mainGraphics = new AscCommon.CGraphics(); this.trackOverlay = new AscCommon.COverlay(); this.trackOverlay.IsCellEditor = true; - if(this.Api.isMobileVersion) { + if(/*this.Api.isMobileVersion*/true) { this.mainOverlay = new AscCommon.COverlay(); this.mainOverlay.IsCellEditor = true; } @@ -407,6 +409,11 @@ this.stringRender = new AscCommonExcel.StringRender(this.buffers.main); + //need clean previous fonts settings, next in _calcMaxDigitWidth do setFont and reinstall setupFontSize/... + if (this.Api.VersionHistory) { + AscCommonExcel.resetDrawingContextFonts(); + } + // Мерить нужно только со 100% и один раз для всего документа this._calcMaxDigitWidth(); @@ -1245,13 +1252,13 @@ var ws = this.getWorksheet(); if (AscCommonExcel.c_oAscScrollType.ScrollHorizontal & type) { - this.controller.reinitScrollX(this.controller.hsbApi.settings, ws.getFirstVisibleCol(true), ws.getHorizontalScrollRange(), ws.getHorizontalScrollMax()); + this.controller.reinitScrollX(this.controller.hsbApi.settings, this.getSmoothScrolling() ? ws.getFirstVisibleColSmoothScroll(true) : ws.getFirstVisibleCol(true), ws.getHorizontalScrollRange(), ws.getHorizontalScrollMax()); } if (AscCommonExcel.c_oAscScrollType.ScrollVertical & type) { - this.controller.reinitScrollY(this.controller.vsbApi.settings, ws.getFirstVisibleRow(true), ws.getVerticalScrollRange(), ws.getVerticalScrollMax()); + this.controller.reinitScrollY(this.controller.vsbApi.settings, this.getSmoothScrolling() ? ws.getFirstVisibleRowSmoothScroll(true) : ws.getFirstVisibleRow(true), ws.getVerticalScrollRange(), ws.getVerticalScrollMax()); } - if (this.Api.isMobileVersion) { + if (this.MobileTouchManager) { this.MobileTouchManager.Resize(); } }; @@ -1270,21 +1277,41 @@ } }; - WorkbookView.prototype._onScrollY = function(pos, initRowsCount) { - var ws = this.getWorksheet(); - var delta = asc_round(pos - ws.getFirstVisibleRow(true)); - if (delta !== 0) { - ws.scrollVertical(delta, this.cellEditor, initRowsCount); - } - }; + WorkbookView.prototype._onScrollY = function (pos, initRowsCount, bDefaultStep) { + let ws = this.getWorksheet(); + let t = this; + let doScroll = function () { + var delta = !t.getSmoothScrolling() ? (asc_round(pos - ws.getFirstVisibleRow(true))) : (pos - ws.getFirstVisibleRowSmoothScroll(true)); + if (delta !== 0) { + ws.scrollVertical(delta, t.cellEditor, initRowsCount); + } + } + if (bDefaultStep) { + ws.executeScrollDefaultStep(function () { + doScroll(); + }) + } else { + doScroll(); + } + }; - WorkbookView.prototype._onScrollX = function(pos, initColsCount) { - var ws = this.getWorksheet(); - var delta = asc_round(pos - ws.getFirstVisibleCol(true)); - if (delta !== 0) { - ws.scrollHorizontal(delta, this.cellEditor, initColsCount); - } - }; + WorkbookView.prototype._onScrollX = function (pos, initColsCount, bDefaultStep) { + let ws = this.getWorksheet(); + let t = this; + let doScroll = function () { + var delta = !t.getSmoothScrolling() ? (asc_round(pos - ws.getFirstVisibleCol(true))) : (pos - ws.getFirstVisibleColSmoothScroll(true)); + if (delta !== 0) { + ws.scrollHorizontal(delta, t.cellEditor, initColsCount); + } + } + if (bDefaultStep) { + ws.executeScrollDefaultStep(function () { + doScroll(); + }) + } else { + doScroll(); + } + }; WorkbookView.prototype._onSetSelection = function(range) { var ws = this.getWorksheet(); @@ -2055,6 +2082,8 @@ } t.setCellEditMode(true); t.hideSpecialPasteButton(); + t.handlers.trigger("asc_onToggleAutoCorrectOptions"); + ws.openCellEditor(t.cellEditor, enterOptions, selectionRange); t.input.disabled = false; @@ -2435,6 +2464,7 @@ }); } + this.checkScrollRtl(ws.getRightToLeft()); this._onScrollReinitialize(AscCommonExcel.c_oAscScrollType.ScrollVertical | AscCommonExcel.c_oAscScrollType.ScrollHorizontal); // Zoom теперь на каждом листе одинаковый, не отправляем смену @@ -2836,6 +2866,7 @@ } else if (defName.type === Asc.c_oAscDefNameType.table && 0 === fName.indexOf(defNameStr.toLowerCase())) { if (-1 !== fName.indexOf("[")) { var tableNameParse = fName.split("["); + // add only columns to the dropdown menu if @ the last element if (tableNameParse[0] && 0 === defNameStr.toLowerCase().indexOf(tableNameParse[0])) { //ищем совпадения по названию столбцов var table = this.model.getTableByName(defNameStr); @@ -2846,7 +2877,15 @@ for (let j = 0; j < table.TableColumns.length; j++) { _str = table.TableColumns[j].Name; _type = c_oAscPopUpSelectorType.TableColumnName; - if (sTableInner === "" || 0 === _str.toLowerCase().indexOf(sTableInner)) { + + let newStr; + if (sTableInner[0] === "@") { + newStr = sTableInner.slice(1); + if (newStr === "" || 0 === _str.toLowerCase().indexOf(newStr)) { + arrResult.push(getCompleteMenu(_str, _type)); + } + } + else if (sTableInner === "" || 0 === _str.toLowerCase().indexOf(sTableInner)) { arrResult.push(getCompleteMenu(_str, _type)); } } @@ -2877,6 +2916,10 @@ } fPos += defNameStr.length + (fName.length - defNameStr.length - sTableInner.length); _lastFNameLength = sTableInner.length; + // shift for fPos for correct work when we use result from dropdown menu + if (sTableInner[0] === "@") { + fPos++ + } } } } @@ -2911,6 +2954,11 @@ } tmp = this.cellEditor.skipTLUpdate; this.cellEditor.skipTLUpdate = false; + + if (type === c_oAscPopUpSelectorType.TableThisRow) { + this.skipHelpSelector = false; + } + this.cellEditor.replaceText(this.lastFPos, this.lastFNameLength, type === c_oAscPopUpSelectorType.TableThisRow ? "@" : name); this.cellEditor.skipTLUpdate = tmp; } else if (false === this.cellEditor.insertFormula(name, isNotFunction)) { @@ -3028,7 +3076,7 @@ let funcCalc = ws.calculateWizardFormula(_name + '(' + sArguments + ')'); _res.functionResult = funcCalc.str; if (funcCalc.obj && funcCalc.obj.type !== AscCommonExcel.cElementType.error) { - _res.formulaResult = ws.calculateWizardFormula(t.cellEditor._formula).str; + _res.formulaResult = ws.calculateWizardFormula(t.cellEditor.getText().substring(1)).str; } } @@ -3078,7 +3126,7 @@ let trueName = oFormulaList[name] && oFormulaList[name].prototype && oFormulaList[name].prototype.name; if (allowCompleteFunctions[trueName]) { - cellRange = wsView.autoCompleteFormula(trueName); + cellRange = wsView.autoCompleteFormula(trueName, t.isWizardMode); } t.cellEditor.insertFormula(name, null, cellRange && !cellRange.notEditCell && cellRange.text); @@ -4418,16 +4466,19 @@ WorkbookView.prototype.IsSelectionUse = function () { return !this.getWorksheet().getSelectionShape(); }; - WorkbookView.prototype.GetSelectionRectsBounds = function () { + WorkbookView.prototype.GetSelectionRectsBounds = function (checkVisibleRange) { var ws = this.getWorksheet(); if (ws.getSelectionShape()) { return null; } var range = ws.model.getSelection().getLast(); + if (checkVisibleRange && !range.intersectionSimple(ws.visibleRange)) { + return null; + } var type = range.getType(); - var l = ws.getCellLeft(range.c1, 3); - var t = ws.getCellTop(range.r1, 3); + var l = ws.getCellLeft(range.c1, 3) - ws.getHorizontalScrollCorrect(3); + var t = ws.getCellTop(range.r1, 3) - ws.getScrollCorrect(3); var offset = ws.getCellsOffset(3); @@ -4435,9 +4486,9 @@ X: asc.c_oAscSelectionType.RangeRow === type ? -offset.left : l - offset.left, Y: asc.c_oAscSelectionType.RangeCol === type ? -offset.top : t - offset.top, W: asc.c_oAscSelectionType.RangeRow === type ? offset.left : - ws.getCellLeft(range.c2, 3) - l + ws.getColumnWidth(range.c2, 3), + ws.getCellLeft(range.c2, 3) - l + ws.getColumnWidth(range.c2, 3) - ws.getHorizontalScrollCorrect(3), H: asc.c_oAscSelectionType.RangeCol === type ? offset.top : - ws.getCellTop(range.r2, 3) - t + ws.getRowHeight(range.r2, 3), + ws.getCellTop(range.r2, 3) - t + ws.getRowHeight(range.r2, 3) - ws.getScrollCorrect(3), T: type }; }; @@ -5327,9 +5378,60 @@ var updatedReferences = []; for (var i = 0; i < _arrAfterPromise.length; i++) { - let externalReferenceId = _arrAfterPromise[i].externalReferenceId; + // eR - current External Reference + let eRId = _arrAfterPromise[i].externalReferenceId; let stream = _arrAfterPromise[i].stream; - let eR = t.model.getExternalReferenceById(externalReferenceId); + + let oPortalData = _arrAfterPromise[i].data; + let path = oPortalData && oPortalData["path"]; + //if after update get short path, check on added such link + let eR = t.model.getExternalReferenceById(eRId); + + let externalReferenceId = eRId; + if (path && externalReferenceId !== path) { + let isNotUpdate = (AscCommonExcel.importRangeLinksState && AscCommonExcel.importRangeLinksState.notUpdateIdMap && AscCommonExcel.importRangeLinksState.notUpdateIdMap[this.Id]) || this.notUpdateId; + if (!isNotUpdate) { + eR = t.model.getExternalReferenceById(path); + //need remove added new link with externalReferenceId id + if (eR) { + let eRAdded = t.model.getExternalReferenceById(externalReferenceId); + if (eRAdded) { + let indexFrom = t.model.getExternalReferenceById(externalReferenceId, true); + let indexTo = t.model.getExternalReferenceById(path, true); + + for (let wsName in eRAdded.worksheets) { + let existedWs = eR.worksheets[wsName]; + let prepared = t.model.dependencyFormulas.prepareChangeSheet(eRAdded.worksheets[wsName].getId(), {from: indexFrom + 1, to: indexTo + 1}); + + prepared.existedWs = existedWs; + t.model.dependencyFormulas.changeExternalLink(prepared); + + //add to history after updated formula + for (let listenerId in prepared.listeners) { + let f = prepared.listeners[listenerId]; + let parent = f.parent; + if (parent instanceof AscCommonExcel.CCellWithFormula) { + let cell = parent.ws && parent.ws.getCell3(parent.nRow, parent.nCol); + if (cell) { + let sF = prepared.listeners[listenerId].assemble(); + if (sF) { + cell.setValue("=" + sF); + } + } + } + } + } + eR.addDataSetFrom(eRAdded); + t.model.removeExternalReferences([eRAdded.getAscLink()]); + } + } + } + } + + if (!eR) { + eR = t.model.getExternalReferenceById(externalReferenceId); + } + if (stream && eR) { updatedReferences.push(eR); //TODO если внутри не zip, отправляем на конвертацию в xlsx, далее повторно обрабатываем - позже реализовать @@ -5379,7 +5481,11 @@ oBinaryFileReader.Read(binaryData, wb); }); }); - + //g_DefNameWorksheet use on parse def name ref. here need use external ws. + let RealDefNameWorksheet = AscCommonExcel.g_DefNameWorksheet; + AscCommonExcel.g_DefNameWorksheet = new AscCommonExcel.Worksheet(wb, -1); + wb.dependencyFormulas.initOpen(); + AscCommonExcel.g_DefNameWorksheet = RealDefNameWorksheet; if (wb.aWorksheets) { eR && eR.updateData(wb.aWorksheets, _arrAfterPromise[i].data); } @@ -5395,10 +5501,22 @@ eR && eR.updateData(updatedData, _arrAfterPromise[i].data); } } - } else { - if (eR) { - t.model.handlers.trigger("asc_onErrorUpdateExternalReference", eR.Id); + } else if (eR) { + /* + if we haven't received data from an external source + leave the link in the wb.externalReferernces array and assign the values ​​as an error #REF + */ + + if (eR.worksheets) { + let arr = []; + for (let i in eR.worksheets) { + arr.push(eR.worksheets[i]); + } + + eR.updateData(arr, _arrAfterPromise[i].data, /* noData */ true); } + + t.model.handlers.trigger("asc_onErrorUpdateExternalReference", eR.Id); } } @@ -5647,6 +5765,7 @@ wsChangingCell = this.model.getWorksheetByName(sSheetName); } } + sExpectedValue = sExpectedValue.replace(/,/g, "."); let t = this; let callback = function (isSuccess) { @@ -5760,6 +5879,36 @@ } this.customFunctionEngine.add(func, options); }; + /** + * Updates calculating settings properties + * @memberof WorkbookView + * @param {asc_CCalcSettings} oCalcSettings + */ + WorkbookView.prototype.updateCalcSettings = function (oCalcSettings) { + if (this.collaborativeEditing.getGlobalLock() || !window["Asc"]["editor"].canEdit()) { + return; + } + const oCalcPr = this.model.calcPr; + if (!oCalcSettings || oCalcSettings.asc_isEqual(oCalcPr)) { + return; + } + + const ws = this.getWorksheet(); + const oThis = this; + const callback = function (isSuccess) { + const g_cCalcRecursion = AscCommonExcel.g_cCalcRecursion; + History.Create_NewPoint(); + History.StartTransaction(); + oCalcPr.updateCalcProperties(oCalcSettings, oThis.model); + g_cCalcRecursion.initCalcProperties(oCalcPr); + History.EndTransaction(); + + ws._updateRange(new Asc.Range(0, 0, ws.model.getColsCount(), ws.model.getRowsCount()), true); + ws.draw(); + }; + + callback(); + }; WorkbookView.prototype.initCustomEngine = function() { if (!this.customFunctionEngine) { @@ -5767,7 +5916,38 @@ } }; + WorkbookView.prototype.setSmoothScrolling = function(val) { + if (this.smoothScroll !== val) { + this.smoothScroll = val; + for (var i in this.wsViews) { + var item = this.wsViews[i]; + item.setScrollCorrect(null); + item.setHorizontalScrollCorrect(null); + item.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollVertical; + item.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollHorizontal; + item._reinitializeScroll(); + } + var ws = this.getWorksheet(); + ws.draw(); + } + }; + WorkbookView.prototype.getSmoothScrolling = function() { + return this.smoothScroll; + }; + + WorkbookView.prototype.checkScrollRtl = function(val) { + let controller = this.controller; + let hsbApi = controller && controller.hsbApi; + let ctx = hsbApi && hsbApi.context; + if (ctx) { + if (val) { + ctx.setTransform(-1,0,0,1,hsbApi.canvasW,0); + } else { + ctx.setTransform(1,0,0,1,0,0); + } + } + }; //временно добавляю сюда. в идеале - использовать общий класс из документов(или сделать базовый, от него наследоваться) - CDocumentSearch function CDocumentSearchExcel(wb) { @@ -6028,8 +6208,12 @@ if (-1 !== this.CurId) { return this.Direction ? this.CurId + 1 : this.CurId - 1; } else { - let ws = this.wb.getActiveWS(); - let selectionRange = (this.props && this.props.selectionRange) || ws.selectionRange || ws.copySelection; + // it's necessary because into the docbuilder "this.wb.wsActive" is "-1" and search doesn't work + let ws = this.wb.model.getActiveWs(); + if (!ws) { + ws = this.wb && this.wb.model && this.wb.model.getActiveWs && this.wb.model.getActiveWs(); + } + let selectionRange = (this.props && this.props.selectionRange) || (ws && ws.selectionRange) || (ws && ws.copySelection); let activeCell = this.props.activeCell ? this.props.activeCell : selectionRange.activeCell; if (this.props && this.props.lastSearchElem) { @@ -6066,7 +6250,7 @@ let sheetArr = []; let checkElem = function (indexElem, index) { //нужный нам лист - if (ws.sName === t.Elements[indexElem].sheet) { + if (ws && ws.sName === t.Elements[indexElem].sheet) { let prevNextI = bReverse ? indexArr[index - 1] : indexArr[index + 1]; let prevNextElemRowCol = getRowCol(t.Elements[prevNextI]); @@ -6137,6 +6321,9 @@ case AscCommonExcel.docChangedType.rangeValues: this.changeRangeValue(arg1, arg2); break; + case AscCommonExcel.docChangedType.removeRows: + this.changeRemoveRows(arg1, arg2); + break; case AscCommonExcel.docChangedType.sheetContent: this.changeSheetContent(arg1, arg2); break; @@ -6172,6 +6359,22 @@ } } }; + CDocumentSearchExcel.prototype.changeRemoveRows = function (ws, range) { + if (this.isNotEmpty()) { + for (let i in this.Elements) { + if (this.Elements[i].index === ws.index && this.Elements[i].row > range.r2) { + let keyOld = this.Elements[i].index + "-" + this.Elements[i].col + "-" + this.Elements[i].row; + + this.Elements[i].row = this.Elements[i].row - (range.r2 - range.r1 + 1); + + let keyNew = this.Elements[i].index + "-" + this.Elements[i].col + "-" + this.Elements[i].row; + let oldId = this.mapFindCells[keyOld]; + delete this.mapFindCells[keyOld]; + this.mapFindCells[keyNew] = oldId; + } + } + } + }; CDocumentSearchExcel.prototype.changeRangeValue = function (bbox, ws) { if (this.wb.Api.selectSearchingResults && bbox && this.props) { let t = this; diff --git a/cell/view/WorksheetView.js b/cell/view/WorksheetView.js index 4b7d332699..2faf1046c6 100644 --- a/cell/view/WorksheetView.js +++ b/cell/view/WorksheetView.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -123,7 +123,7 @@ var kCurHyperlink = "pointer"; // Курсор для перемещения области выделения var kCurMove = "move"; - var kCurSEResize = "se-resize"; + var kCurSEResize = /*window.rightToleft ? "sw-resize" :*/ "se-resize"; var kCurNEResize = "ne-resize"; var kCurAutoFilter = "pointer"; var kCurEWResize = "ew-resize"; @@ -147,6 +147,8 @@ //limit rows for prepare metrics. if more then limit -> metrics will prepare dynamic var nMaxPrintRows = 150000; + + function getMergeType(merged) { var res = c_oAscMergeType.none; if (null !== merged) { @@ -517,6 +519,9 @@ this.cellPasteHelper = new CCellPasteHelper(this); + this.vScrollPxStep = null; + this.hScrollPxStep = null; + this._init(); return this; @@ -535,6 +540,7 @@ this.model.updatePivotTablesStyle(null); this._cleanCellsTextMetricsCache(); this._prepareCellTextMetricsCache(); + // initializing is completed this.handlers.trigger("initialized"); }; @@ -585,6 +591,8 @@ this._initColsCount(); this.model.initColumns(); + + this._initScrollStep(); }; WorksheetView.prototype.createImageFromMaxRange = function () { @@ -1035,6 +1043,19 @@ return old !== this.nColsCount; }; + WorksheetView.prototype._initScrollStep = function () { + let isMobileVersion = this.workbook && this.workbook.Api && this.workbook.Api.isMobileVersion; + if (isMobileVersion) { + let oView = this.workbook && this.workbook.controller && this.workbook.controller.settings; + let defaultStep = 10; + this.vScrollPxStep = oView ? oView.vscrollStep : defaultStep; + this.hScrollPxStep = oView ? oView.hscrollStep : defaultStep; + } else { + this.vScrollPxStep = this.defaultRowHeightPx; + this.hScrollPxStep = this.defaultColWidthPx; + } + }; + WorksheetView.prototype.getCellEditMode = function () { return this.workbook.isCellEditMode; }; @@ -1073,8 +1094,8 @@ vr = this.visibleRange; } - offsetX += this._getColLeft(vr.c1) - this.cellsLeft; - offsetY += this._getRowTop(vr.r1) - this.cellsTop; + offsetX += this._getOffsetX(vr.c1, true); + offsetY += this._getOffsetY(vr.r1, true); return vr.contains(col, row) ? new asc_VR(vr, offsetX, offsetY) : null; }; @@ -1086,8 +1107,8 @@ if (opt_check_merge && (mc = this.model.getMergedByCell(row, col))) { col = mc.c1; row = mc.r1; - _width = (this._getColLeft(mc.c2 + 1) - this._getColLeft(mc.c1)) - vr.offsetX; - _height = (this._getRowTop(mc.r2 + 1) - this._getRowTop(mc.r1)) - vr.offsetY; + _width = (this._getColLeft(mc.c2 + 1) - this._getColLeft(mc.c1)); + _height = (this._getRowTop(mc.r2 + 1) - this._getRowTop(mc.r1)); } else { _width = this._getColumnWidth(col); _height = this._getRowHeight(row); @@ -1130,11 +1151,111 @@ return this.visibleRange.r1 - tmp; }; + WorksheetView.prototype.getFirstVisibleRowSmoothScroll = function (allowPane) { + var frozenVisibleRangeHeight = 0; + if (allowPane && this.topLeftFrozenCell) { + let tmp = this.topLeftFrozenCell.getRow0(); + frozenVisibleRangeHeight = this._getRowTop(tmp) - this.cellsTop; + } + + //new scroll - calculate height before vr + let beforeVisibleRangeHeight = this._getRowTop(this.visibleRange.r1) - this.cellsTop; + + + beforeVisibleRangeHeight += this.getScrollCorrect(); + let defaultScrollPxStep = Asc.round(this.getVScrollStep()); + return defaultScrollPxStep === 0 ? 0 : ((beforeVisibleRangeHeight - frozenVisibleRangeHeight)/defaultScrollPxStep); + }; + + WorksheetView.prototype.getVerticalSmoothScrollRange = function (bCheckEqual) { + var offsetFrozen = this.getFrozenPaneOffset(true, false); + var ctxH = this.drawingCtx.getHeight() - offsetFrozen.offsetY - this.cellsTop; + for (var h = 0, i = this.nRowsCount - 1; i >= 0; --i) { + h += this._getRowHeight(i); + if (h >= ctxH) { + if (bCheckEqual && h > ctxH) { + i++; + } + break; + } + } + + var frozenVisibleRangeHeight = 0; + if (this.topLeftFrozenCell) { + let tmp = this.topLeftFrozenCell.getRow0(); + frozenVisibleRangeHeight = this._getRowTop(tmp) - this.cellsTop; + } + //TODO + /*if (gc_nMaxRow === this.nRowsCount || this.model.isDefaultHeightHidden()) { + tmp -= 1; + }*/ + let isMobileVersion = this.workbook && this.workbook.Api && this.workbook.Api.isMobileVersion; + let row = Math.max(0, i); // Диапазон скрола должен быть меньше количества строк, чтобы не было прибавления строк при перетаскивании бегунка + let defaultScrollPxStep = Asc.round(this.getVScrollStep()); + let beforeVisibleRangeHeight = this._getRowTop(row) - this.cellsTop; + if (isMobileVersion || AscCommonExcel.c_oAscScrollType.ScrollInitRowsColsCount & this.scrollType) { + beforeVisibleRangeHeight += this.getScrollCorrect(); + } + return defaultScrollPxStep === 0 ? 0 : ((beforeVisibleRangeHeight - frozenVisibleRangeHeight)/defaultScrollPxStep); + }; + + WorksheetView.prototype.getFirstVisibleColSmoothScroll = function (allowPane) { + var frozenVisibleRangeWidth = 0; + if (allowPane && this.topLeftFrozenCell) { + let tmp = this.topLeftFrozenCell.getCol0(); + frozenVisibleRangeWidth = this._getColLeft(tmp) - this.cellsLeft; + } + + //new scroll - calculate height before vr + let beforeVisibleRangeWidth = this._getColLeft(this.visibleRange.c1) - this.cellsLeft; + + + beforeVisibleRangeWidth += this.getHorizontalScrollCorrect(); + let defaultScrollPxStep = Asc.round(this.getHScrollStep()); + return defaultScrollPxStep === 0 ? 0 : ((beforeVisibleRangeWidth - frozenVisibleRangeWidth)/defaultScrollPxStep); + }; + + WorksheetView.prototype.getHorizontalSmoothScrollRange = function (/*bCheckEqual*/) { + var offsetFrozen = this.getFrozenPaneOffset(false, true); + var ctxW = this.drawingCtx.getWidth() - offsetFrozen.offsetX - this.cellsLeft; + for (var h = 0, i = this.nColsCount - 1; i >= 0; --i) { + h += this._getColumnWidth(i); + if (h >= ctxW) { + /*if (bCheckEqual && h > ctxH) { + i++; + }*/ + break; + } + } + + var frozenVisibleRangeWidth = 0; + if (this.topLeftFrozenCell) { + let tmp = this.topLeftFrozenCell.getCol0(); + frozenVisibleRangeWidth = this._getColLeft(tmp) - this.cellsLeft; + } + //TODO + /*if (gc_nMaxRow === this.nRowsCount || this.model.isDefaultHeightHidden()) { + tmp -= 1; + }*/ + let isMobileVersion = this.workbook && this.workbook.Api && this.workbook.Api.isMobileVersion; + let col = Math.max(0, i); // Диапазон скрола должен быть меньше количества строк, чтобы не было прибавления строк при перетаскивании бегунка + let defaultScrollPxStep = Asc.round(this.getHScrollStep()); + let beforeVisibleRangeWidth = this._getColLeft(col) - this.cellsLeft; + if (isMobileVersion || AscCommonExcel.c_oAscScrollType.ScrollInitRowsColsCount & this.scrollType) { + beforeVisibleRangeWidth += this.getHorizontalScrollCorrect(); + } + + return defaultScrollPxStep === 0 ? 0 : ((beforeVisibleRangeWidth - frozenVisibleRangeWidth)/defaultScrollPxStep); + }; + WorksheetView.prototype.getLastVisibleRow = function () { return this.visibleRange.r2; }; WorksheetView.prototype.getHorizontalScrollRange = function () { + if (this.workbook.getSmoothScrolling()) { + return this.getHorizontalSmoothScrollRange(); + } var offsetFrozen = this.getFrozenPaneOffset(false, true); var ctxW = this.drawingCtx.getWidth() - offsetFrozen.offsetX - this.cellsLeft; for (var w = 0, i = this.nColsCount - 1; i >= 0; --i) { @@ -1154,6 +1275,9 @@ }; WorksheetView.prototype.getVerticalScrollRange = function (bCheckEqual) { + if (this.workbook.getSmoothScrolling()) { + return this.getVerticalSmoothScrollRange(bCheckEqual); + } var offsetFrozen = this.getFrozenPaneOffset(true, false); var ctxH = this.drawingCtx.getHeight() - offsetFrozen.offsetY - this.cellsTop; for (var h = 0, i = this.nRowsCount - 1; i >= 0; --i) { @@ -1199,17 +1323,31 @@ }; }; - WorksheetView.prototype._getColLeft = function (i) { + WorksheetView.prototype._getColLeft = function (i, saveRealRightToLeft, ctx) { + ctx = ctx || this.drawingCtx; this._updateColumnPositions(); + let realRightToleft = this.getRightToLeft(); + if (!saveRealRightToLeft) { + this.setRightToLeft(false); + } + var l = this.cols.length; - return this.cellsLeft + ((i < l) ? this.cols[i].left : (((0 === l) ? 0 : - this.cols[l - 1].left + this.cols[l - 1].width) + (!this.model.isDefaultWidthHidden()) * - Asc.round(this.defaultColWidthPx * this.getZoom(true) * this.getRetinaPixelRatio()) * (i - l))); + let defaultWidth = Asc.round(this.defaultColWidthPx * this.getZoom(true) * this.getRetinaPixelRatio()); + let posReal = this.cellsLeft + ((i < l) ? this.cols[i].left : (((0 === l) ? 0 : + this.cols[l - 1].left + this.cols[l - 1].width) + (!this.model.isDefaultWidthHidden()) * defaultWidth * (i - l))); + + if (this.getRightToLeft()) { + posReal = (this.getCtxWidth(ctx)) - posReal - (i < l ? this.cols[i].width : defaultWidth); + } + + this.setRightToLeft(realRightToleft); + + return posReal; }; - WorksheetView.prototype.getCellLeft = function (column, units) { + WorksheetView.prototype.getCellLeft = function (column, units, saveRealRtl) { var u = units >= 0 && units <= 3 ? units : 0; - return this._getColLeft(column) * asc_getcvt(0/*px*/, u, this._getPPIX()); + return this._getColLeft(column, saveRealRtl) * asc_getcvt(0/*px*/, u, this._getPPIX()); }; WorksheetView.prototype._getRowHeightReal = function (i) { @@ -1241,38 +1379,64 @@ return this._getRowTop(row) * asc_getcvt(0/*px*/, u, this._getPPIY()); }; - WorksheetView.prototype.getCellLeftRelative = function (col, units) { + WorksheetView.prototype.getCellLeftRelative = function (col, units, checkFrozenOffset) { if (col < 0 || col >= this.nColsCount) { return null; } // С учетом видимой области var offsetX = 0; + let frozenOffset = null; if (this.topLeftFrozenCell) { var cFrozen = this.topLeftFrozenCell.getCol0(); - offsetX = (col < cFrozen) ? 0 : this._getColLeft(this.visibleRange.c1) - this._getColLeft(cFrozen); + if (col < cFrozen) { + offsetX = 0; + } else { + frozenOffset = this._getColLeft(cFrozen); + offsetX = this._getColLeft(this.visibleRange.c1) - frozenOffset + this.getHorizontalScrollCorrect(); + } } else { - offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft; + offsetX = this._getOffsetX(); } var u = units >= 0 && units <= 3 ? units : 0; - return (this._getColLeft(col) - offsetX) * asc_getcvt(0/*px*/, u, this._getPPIX()); + let _left = this._getColLeft(col) - offsetX; + if (_left < this.cellsLeft) { + _left = this.cellsLeft; + } + if (checkFrozenOffset && frozenOffset && _left < frozenOffset) { + _left = frozenOffset; + } + return _left * asc_getcvt(0/*px*/, u, this._getPPIX()); }; - WorksheetView.prototype.getCellTopRelative = function (row, units) { + WorksheetView.prototype.getCellTopRelative = function (row, units, checkFrozenOffset) { if (row < 0 || row >= this.nRowsCount) { return null; } // С учетом видимой области var offsetY = 0; + let frozenOffset = null; if (this.topLeftFrozenCell) { var rFrozen = this.topLeftFrozenCell.getRow0(); - offsetY = (row < rFrozen) ? 0 : this._getRowTop(this.visibleRange.r1) - this._getRowTop(rFrozen); + if (row < rFrozen) { + offsetY = 0; + } else { + frozenOffset = this._getRowTop(rFrozen); + offsetY = this._getRowTop(this.visibleRange.r1) - frozenOffset + this.getScrollCorrect(); + } } else { - offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop; + offsetY = this._getOffsetY(); } var u = units >= 0 && units <= 3 ? units : 0; - return (this._getRowTop(row) - offsetY) * asc_getcvt(0/*px*/, u, this._getPPIY()); + let _top = this._getRowTop(row) - offsetY; + if (_top < this.cellsTop) { + _top = this.cellsTop; + } + if (checkFrozenOffset && frozenOffset && _top < frozenOffset) { + _top = frozenOffset; + } + return _top * asc_getcvt(0/*px*/, u, this._getPPIY()); }; WorksheetView.prototype._getColumnWidthInner = function (i) { @@ -1392,6 +1556,20 @@ this.updateResize = false; this.objectRender.resizeCanvas(); + if (this.getRightToLeft()) { + AscFormat.ExecuteNoHistory(function () { + let drawings = this.objectRender.controller.getDrawingObjects(); + for (var i = 0; i < drawings.length; ++i) { + if (!drawings[i].group) { + AscFormat.CheckSpPrXfrm3(drawings[i], true); + } else { + AscFormat.CheckSpPrXfrm(drawings[i], true); + } + } + this.objectRender.controller.recalculate(true); + }, this, []); + } + if (editor) { editor.move(); } @@ -1423,6 +1601,8 @@ }; WorksheetView.prototype.changeZoom = function (isUpdate, changeZoomOnPrint) { + this.setScrollCorrect(0); + this.setHorizontalScrollCorrect(0); if (isUpdate || changeZoomOnPrint) { this.isZooming = true; this.notUpdateRowHeight = true; @@ -1470,8 +1650,8 @@ this.updateZoom = false; }; - WorksheetView.prototype.getSheetViewSettings = function () { - return this.model.getSheetViewSettings(); + WorksheetView.prototype.getSheetViewSettings = function (bNotClone) { + return this.model.getSheetViewSettings(bNotClone); }; WorksheetView.prototype.getFrozenPaneOffset = function (noX, noY) { @@ -1499,6 +1679,9 @@ if (this.model.getSheetProtection(Asc.c_oAscSheetProtectType.formatColumns)) { return; } + if (this.getRightToLeft()) { + x2 = this.getCtxWidth() - x2; + } var viewMode = this.handlers.trigger('getViewMode'); var t = this; // Учитываем координаты точки, где мы начали изменение размера @@ -1516,7 +1699,7 @@ } } } - var offsetX = t._getColLeft(c1) - t.cellsLeft; + var offsetX = t._getOffsetX(c1); offsetX -= offsetFrozenX; var x1 = t._getColLeft(col) - offsetX - gridlineSize; @@ -1657,7 +1840,7 @@ } } } - var offsetY = this._getRowTop(r1) - t.cellsTop; + var offsetY = this._getOffsetY(r1); offsetY -= offsetFrozenY; var y1 = this._getRowTop(row) - offsetY - gridlineSize; @@ -1828,8 +2011,82 @@ } }; + WorksheetView.prototype._getAutocompleteValues = function () { + const t = this; + let canExecuteFormula; + /* setRows|setCols - arrays with positions of all real elements */ + /* setNumberRows|setNumberCols - arrays with positions of all "numeric" elements */ + let setCols = [], setRows = [], setNumberCols = [], setNumberRows = []; + let selection = this.model.getSelection(); + let selectionRange = selection.getLast(); + let mergedRange = this.model.getMergedByCell(selectionRange.r1, selectionRange.c1); + if (mergedRange && mergedRange.isEqual(selectionRange)) { + // There is no need to do anything for one cell + return null; + } + + if (c_oAscSelectionType.RangeMax === selectionRange.getType()) { + return null; + } + + let c2 = Math.min(selectionRange.c2, this.nColsCount - 1); + let r2 = Math.min(selectionRange.r2, this.nRowsCount - 1); + for (let c = selectionRange.c1; c <= c2; ++c) { + for (let r = selectionRange.r1; r <= r2; ++r) { + let cellCache = this._getCellTextCache(c, r, true); + if (cellCache) { + if (!canExecuteFormula) { + this.model._getCellNoEmpty(r, c, function (cell) { + if (cell && !cell.isNullText() && cell.type !== CellValueType.String) { + let xfs = cell.getCompiledStyle(); + let numFormatStr, info; + if (xfs && xfs.num) { + // numFormatStr = xfs.num.getNumFormat(); + info = xfs.asc_getNumFormatInfo(); + } + + if (!info) { + canExecuteFormula = true + } else if (info && info.type !== Asc.c_oAscNumFormatType.Date && info.type !== Asc.c_oAscNumFormatType.LongDate + && info.type !== Asc.c_oAscNumFormatType.None && info.type !== Asc.c_oAscNumFormatType.Text) { + canExecuteFormula = true + } + + } + }); + } + + if (cellCache.cellType !== CellValueType.String) { + if (setNumberRows.indexOf(r) === -1) { + setNumberRows.push(r); + } + if (setNumberCols.indexOf(c) === -1) { + setNumberCols.push(c); + } + } + + if (setRows.indexOf(r) === -1) { + setRows.push(r); + } + if (setCols.indexOf(c) === -1) { + setCols.push(c); + } + } + } + } + + if (canExecuteFormula && (setRows.length > 0 || setCols.length > 0) && (setNumberRows.length > 0 || setNumberCols.length > 0)) { + // return an object with information about the positions of real and only numeric values + return { + allExistedValPos: {arrCols: setCols.sort(fSortAscending), arrRows: setRows.sort(fSortAscending)}, + allNumberPos: {arrCols: setNumberCols.sort(fSortAscending), arrRows: setNumberRows.sort(fSortAscending)} + }; + } else { + return null; + } + }; // Autocomplete formula with range if possible - WorksheetView.prototype.autoCompleteFormula = function (functionName) { + WorksheetView.prototype.autoCompleteFormula = function (functionName, callFromWizard) { const t = this; // ToDo autoComplete with multiselect let selection = this.model.getSelection(); @@ -1847,10 +2104,11 @@ let c = activeCell.col - 1; let cell, cellType, isNumberFormat; let result = {}; - // Get all numeric values ​​in the range - let hasNumber = this._getValuesPositionsInRange(true); + // let hasNumber = this._getValuesPositionsInRange(true); + let hasNumber = !callFromWizard && this._getAutocompleteValues(); // Get all valid values ​​for autocomplete according to the cell format and type + // Get all non-empty values ​​in the range - let realValues = this._getValuesPositionsInRange(); + // let realValues = this._getValuesPositionsInRange(); let val, text; /* @@ -1871,6 +2129,9 @@ if (hasNumber) { let i; + let realValues = hasNumber.allExistedValPos; + hasNumber = hasNumber.allNumberPos; + // Are there numeric values ​​in the last row and column let hasNumberInLastColumn = (ar.c2 === hasNumber.arrCols[hasNumber.arrCols.length - 1]); let hasNumberInLastRow = (ar.r2 === hasNumber.arrRows[hasNumber.arrRows.length - 1]); @@ -2094,7 +2355,12 @@ result.notEditCell = true; return result; } - } + } else { + // change selection to the last cell if the values ​​in the range are not valid in the autocomplete formula + if (!result.text && !result.notEditCell) { + selection.setActiveCell(ar.r2, ar.c2); + } + } // Ищем первую ячейку с числом for (; r >= vr.r1; --r) { @@ -2635,6 +2901,7 @@ WorksheetView.prototype._calcVisibleColumns = function () { var w = this.drawingCtx.getWidth(); var sumW = this.topLeftFrozenCell ? this._getColLeft(this.topLeftFrozenCell.getCol0()) : this.cellsLeft; + sumW -= this.getHorizontalScrollCorrect(); for (var i = this.visibleRange.c1, f = false; i < this.nColsCount && sumW < w; ++i) { sumW += this._getColumnWidth(i); f = true; @@ -2646,6 +2913,7 @@ WorksheetView.prototype._calcVisibleRows = function () { var h = this.drawingCtx.getHeight(); var sumH = this.topLeftFrozenCell ? this._getRowTop(this.topLeftFrozenCell.getRow0()) : this.cellsTop; + sumH -= this.getScrollCorrect(); for (var i = this.visibleRange.r1, f = false; i < this.nRowsCount && sumH < h; ++i) { sumH += this._getRowHeight(i); f = true; @@ -2761,6 +3029,16 @@ } let isOnlyFirstPage = adjustPrint && adjustPrint.isOnlyFirstPage; + + if (!isOnlyFirstPage) { + let printOptionsJson = this.workbook && this.workbook.getPrintOptionsJson(); + let curPrintOptionsJson = (printOptionsJson && printOptionsJson["spreadsheetLayout"]) ? printOptionsJson["spreadsheetLayout"] : printOptionsJson; + let thumbnailFirst = curPrintOptionsJson && curPrintOptionsJson["thumbnail"] && curPrintOptionsJson["thumbnail"]["first"]; + if (thumbnailFirst === true || (typeof thumbnailFirst === "string" && thumbnailFirst.toLowerCase() === "true")) { + isOnlyFirstPage = true; + } + } + let pageMargins, pageSetup, pageGridLines, pageHeadings; if (pageOptions) { pageMargins = pageOptions.asc_getPageMargins(); @@ -3451,6 +3729,12 @@ indexPrintPage = recalcIndexPrintPage(indexPrintPage); + let vector_koef = AscCommonExcel.vector_koef / t.getZoom(); + if (AscCommon.AscBrowser.isCustomScaling()) { + vector_koef /= t.getRetinaPixelRatio(); + } + + this.stringRender.fontNeedUpdate = true; if (null === printPagesData) { // Напечатаем пустую страницу @@ -3469,16 +3753,32 @@ } drawingCtx.EndPage && drawingCtx.EndPage(); } else { + if (this.getRightToLeft()) { + let renderingSettings = this.getRenderingSettings(); + if (!renderingSettings) { + renderingSettings = this.initRenderingSettings(); + } + renderingSettings && renderingSettings.setCtxWidth(printPagesData.pageWidth / vector_koef); + renderingSettings && renderingSettings.setPageLeftOffset(printPagesData.leftFieldInPx); + let pageRightField = c_oAscPrintDefaultSettings.PageRightField; + renderingSettings && renderingSettings.setPageRightOffset(pageRightField / vector_koef); + this.objectRender.updateDrawingsTransform({target: c_oTargetType.ColumnResize, col: 0}); + } + drawingCtx.BeginPage && drawingCtx.BeginPage(printPagesData.pageWidth, printPagesData.pageHeight); //special thumbnail split let printOptionsJson = this.workbook && this.workbook.getPrintOptionsJson(); - if (printOptionsJson && printOptionsJson["thumbnail"] && printOptionsJson["thumbnail"]["first"] === true) { + let curPrintOptionsJson = (printOptionsJson && printOptionsJson["spreadsheetLayout"]) ? printOptionsJson["spreadsheetLayout"] : printOptionsJson; + let thumbnailFirst = curPrintOptionsJson && curPrintOptionsJson["thumbnail"] && curPrintOptionsJson["thumbnail"]["first"]; + if (thumbnailFirst === true || (typeof thumbnailFirst === "string" && thumbnailFirst.toLowerCase() === "true")) { let thumbnailMaxRowCount = 100; let currentRowCount = (printPagesData.pageRange.r2 - printPagesData.pageRange.r1) + (printPagesData.titleRowRange ? (printPagesData.titleRowRange.r2 - printPagesData.titleRowRange.r1) : 0); if (currentRowCount > thumbnailMaxRowCount) { - this.initRenderingSettings(); let renderingSettings = this.getRenderingSettings(); + if (!renderingSettings) { + renderingSettings = this.initRenderingSettings(); + } let splitNumber = 2; renderingSettings && renderingSettings.setSplitRowBG(splitNumber); } @@ -3518,6 +3818,19 @@ leftDiff / mmToPx, topDiff / mmToPx); } + if (t.getRightToLeft()) { + if (!_transform) { + _transform = new AscCommon.CMatrix(); + } + transformMatrix = new AscCommon.CMatrix(); + transformMatrix.sx = -1; + transformMatrix.tx = t.getCtxWidth() * (drawingCtx instanceof AscCommonExcel.CPdfPrinter ? vector_koef : 1); + let newTransformMatrix = _transform.Multiply(transformMatrix); + drawingCtx.setTransform(newTransformMatrix.sx, newTransformMatrix.shy, newTransformMatrix.shx, newTransformMatrix.sy, newTransformMatrix.tx, newTransformMatrix.ty); + drawingCtx.updateTransforms && drawingCtx.updateTransforms(); + } + + let offsetCols = printPagesData.startOffsetPx; //range = printPagesData.pageRange; let offsetX = t._getColLeft(range.c1) - printPagesData.leftFieldInPx + offsetCols - titleWidth; @@ -3755,7 +4068,10 @@ } this.stringRender.resetTransform(drawingCtx); this.setRenderingSettings(null); + this.pageWidth = null; drawingCtx.EndPage && drawingCtx.EndPage(); + + this.getRightToLeft() && this.objectRender.updateDrawingsTransform({target: c_oTargetType.ColumnResize, col: 0}); } }; @@ -3803,7 +4119,11 @@ var calcScale = this.calcPrintScale(width, height); if(!isNaN(calcScale)) { + let realLockDraw = this.lockDraw; + //TODO add lock draw here. need review all draw calls(try to replace on recalculate) + this.lockDraw = true; this._setPrintScale(calcScale); + this.lockDraw = realLockDraw; } //TODO нужно ли в данном случае лочить? @@ -4195,6 +4515,7 @@ this._recalculate(); this.handlers.trigger("checkLastWork"); this._clean(); + this._startRtlRendering(); this._drawCorner(); this._drawColumnHeaders(null); this._drawRowHeaders(null); @@ -4206,6 +4527,7 @@ this._drawFrozenPaneLines(); this._fixSelectionOfMergedCells(); this._drawElements(this.af_drawButtons); + this._endRtlRendering(); this.cellCommentator.drawCommentCells(); this.objectRender.showDrawingObjects(); if (this.overlayCtx) { @@ -4249,10 +4571,12 @@ WorksheetView.prototype._activateOverlayCtx = function () { this.drawingCtx = this.buffers.overlay; + this._startRtlRendering(); }; WorksheetView.prototype._deactivateOverlayCtx = function () { - this.drawingCtx = this.buffers.main; + this._endRtlRendering(); + this.drawingCtx = this.buffers.main; }; WorksheetView.prototype._doCleanHighlightedHeaders = function () { @@ -4350,6 +4674,15 @@ .setFillStyle(activeNamedSheetView ? this.settings.header.cornerColorSheetView : this.settings.header.cornerColor) .fill(); }; + WorksheetView.prototype._drawText = function (stringRender, ctx, textX, textY, textW, color) { + stringRender.render(ctx, /*window.rightToleft ? (ctx.getWidth() - textX - textW) : */textX, textY, textW, color); + return stringRender; + }; + WorksheetView.prototype._fillText = function (ctx, text, x, y, maxWidth, charWidths, angle) { + ctx.fillText(text, x, y, maxWidth, charWidths, angle); + return ctx; + + }; /** Рисует заголовки видимых колонок */ WorksheetView.prototype._drawColumnHeaders = function (drawingCtx, start, end, style, offsetXForDraw, offsetYForDraw) { @@ -4363,14 +4696,16 @@ } var vr = this.visibleRange; - var offsetX = (undefined !== offsetXForDraw) ? offsetXForDraw : this._getColLeft(vr.c1) - this.cellsLeft; + var offsetX = (undefined !== offsetXForDraw) ? offsetXForDraw : this._getOffsetX(); var offsetY = (undefined !== offsetYForDraw) ? offsetYForDraw : this.headersTop; + let clipRectX = this.cellsLeft; if (!drawingCtx && this.topLeftFrozenCell && undefined === offsetXForDraw) { var cFrozen = this.topLeftFrozenCell.getCol0(); if (start < vr.c1) { - offsetX = this._getColLeft(0) - this.cellsLeft; + offsetX = this._getOffsetY(0, true); } else { offsetX -= this._getColLeft(cFrozen) - this._getColLeft(0); + clipRectX = this._getColLeft(cFrozen); } } @@ -4386,6 +4721,15 @@ this._setDefaultFont(drawingCtx); + var ctx = this.drawingCtx; + var ctxW = ctx.getWidth(); + var ctxH = ctx.getHeight(); + + let isUseMainClip = (window["IS_NATIVE_EDITOR"] !== true); + + if (isUseMainClip) + ctx.AddClipRect(clipRectX, this.headersTop - this.groupHeight, ctxW, ctxH); + // draw column headers var l = this._getColLeft(start) - offsetX, w; for (var i = start; i <= end; ++i) { @@ -4393,6 +4737,9 @@ this._drawHeader(drawingCtx, l, offsetY, w, this.headersHeight, style, true, i); l += w; } + + if (isUseMainClip) + ctx.RemoveClipRect(); }; /** Рисует заголовки видимых строк */ @@ -4402,13 +4749,15 @@ } var vr = this.visibleRange; var offsetX = (undefined !== offsetXForDraw) ? offsetXForDraw : this.headersLeft; - var offsetY = (undefined !== offsetYForDraw) ? offsetYForDraw : this._getRowTop(vr.r1) - this.cellsTop; + var offsetY = (undefined !== offsetYForDraw) ? offsetYForDraw : this._getOffsetY(); + let clipRectY = this.cellsTop; if (!drawingCtx && this.topLeftFrozenCell && undefined === offsetYForDraw) { var rFrozen = this.topLeftFrozenCell.getRow0(); if (start < vr.r1) { - offsetY = this._getRowTop(0) - this.cellsTop; + offsetY = this._getOffsetY(0, true); } else { offsetY -= this._getRowTop(rFrozen) - this._getRowTop(0); + clipRectY = this._getRowTop(rFrozen); } } @@ -4424,6 +4773,14 @@ this._setDefaultFont(drawingCtx); + var ctx = this.drawingCtx; + var ctxW = ctx.getWidth(); + var ctxH = ctx.getHeight(); + + let isUseMainClip = (window["IS_NATIVE_EDITOR"] !== true); + + if (isUseMainClip) + ctx.AddClipRect(this.headersLeft - this.groupWidth, clipRectY, ctxW, ctxH); // draw row headers var t = this._getRowTop(start) - offsetY, h; for (var i = start; i <= end; ++i) { @@ -4431,6 +4788,8 @@ this._drawHeader(drawingCtx, offsetX, t, this.headersWidth, h, style, false, i); t += h; } + if (isUseMainClip) + ctx.RemoveClipRect(); }; /** @@ -4526,7 +4885,7 @@ } }; let drawLeftBorder = function (_selected) { - if (style !== kHeaderDefault && isColHeader) { + if ((style !== kHeaderDefault || t.getRightToLeft()) && isColHeader) { // Select col (left border) ctx.lineVerPrevPx(x, y, y2); } @@ -4572,7 +4931,7 @@ let x1Diff = 0; let x2Diff = 0; if (_selected) { - x1Diff = (isFirstRowSelection ? (_toRetina(1) + 1) : 1); + x1Diff = (isFirstRowSelection ? (_toRetina(1) + 1) : (1 - t.getRightToLeftOffset())); x2Diff = (isFirstRowSelection ? _toRetina(1) : 0); } ctx.lineHorPrevPx(x - x1Diff, y2, x2 + x2Diff); @@ -4625,7 +4984,22 @@ var textY = this._calcTextVertPos(y, h, bl, tm, Asc.c_oAscVAlign.Bottom); ctx.AddClipRect(x, y, w, h); - ctx.setFillStyle(color).fillText(text, textX, textY + Asc.round(tm.baseline * this.getZoom()), undefined, sr.charWidths); + ctx.setFillStyle(color); + + let charsWidth = 0; + if (this.getRightToLeft()) { + for (let i in sr.charWidths) { + charsWidth += sr.charWidths[i]; + } + textX = textX + charsWidth; + if (ctx.Transform) { + ctx.DocumentRenderer.transform(1, 0, 0, 1, 0, 0); + textX = this.getCtxWidth() - textX; + } + } + + this._fillText(ctx, text, textX, textY + Asc.round(tm.baseline * this.getZoom()), undefined, sr.charWidths); + ctx.RemoveClipRect(); }; @@ -4878,7 +5252,7 @@ }; WorksheetView.prototype._cleanColumnHeaders = function (colStart, colEnd) { - var offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft; + var offsetX = this._getOffsetX(); var l, w, i, cFrozen = 0; if (this.topLeftFrozenCell) { cFrozen = this.topLeftFrozenCell.getCol0(); @@ -4910,7 +5284,7 @@ } } if (0 !== cFrozen) { - offsetX = this._getColLeft(0) - this.cellsLeft; + offsetX = this._getOffsetX(0, true); // Почистим для pane colStart = Math.max(0, colStart); colEnd = Math.min(cFrozen, colEnd); @@ -4926,7 +5300,7 @@ }; WorksheetView.prototype._cleanRowHeaders = function (rowStart, rowEnd) { - var offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop; + var offsetY = this._getOffsetY(); var t, h, i, rFrozen = 0; if (this.topLeftFrozenCell) { rFrozen = this.topLeftFrozenCell.getRow0(); @@ -4944,7 +5318,7 @@ //by clean down thin border let correctX = 0; let correctY = -1*(_toRetina(1) + 1); - let correctW = (this.getRetinaPixelRatio() >= 2 ? _toRetina(1) : 0); + let correctW = (this.getRetinaPixelRatio() >= 2 ? _toRetina(1) : 0) + 2 * this.getRightToLeftOffset(); let correctH = _toRetina(2) + 1; var rowStartTmp = Math.max(this.visibleRange.r1, rowStart); @@ -4958,7 +5332,7 @@ } } if (0 !== rFrozen) { - offsetY = this._getRowTop(0) - this.cellsTop; + offsetY = this._getOffsetY(0, true); // Почистим для pane rowStart = Math.max(0, rowStart); rowEnd = Math.min(rFrozen, rowEnd); @@ -5004,8 +5378,8 @@ let ctx = drawingCtx || this.drawingCtx; let widthCtx = (width) ? width / printScale : ctx.getWidth() / printScale; let heightCtx = (height) ? height / printScale : ctx.getHeight() / printScale; - let offsetX = (undefined !== leftFieldInPx) ? leftFieldInPx : this._getColLeft(this.visibleRange.c1) - this.cellsLeft; - let offsetY = (undefined !== topFieldInPx) ? topFieldInPx : this._getRowTop(this.visibleRange.r1) - this.cellsTop; + let offsetX = (undefined !== leftFieldInPx) ? leftFieldInPx : this._getOffsetX(); + let offsetY = (undefined !== topFieldInPx) ? topFieldInPx : this._getOffsetY(); if (!drawingCtx && this.topLeftFrozenCell) { if (undefined === leftFieldInPx) { let cFrozen = this.topLeftFrozenCell.getCol0(); @@ -5016,6 +5390,14 @@ offsetY -= this._getRowTop(rFrozen) - this._getRowTop(0); } } + + let isClip; + if (!drawingCtx && !window['IS_NATIVE_EDITOR']) { + if (this._clipDrawingRect(ctx, range, clipType.range)) { + isClip = true; + } + } + let x1 = this._getColLeft(range.c1) - offsetX; let y1 = this._getRowTop(range.r1) - offsetY; let x2 = Math.min(this._getColLeft(range.c2 + 1) - offsetX, widthCtx); @@ -5076,17 +5458,303 @@ ctx.fillRect(x1, y1, x2 - x1, y2 - y1); } + if (!drawingCtx && !window['IS_NATIVE_EDITOR'] && isClip) { + ctx.RemoveClipRect(); + } + //this._drawPageBreakPreviewLines(drawingCtx, range, leftFieldInPx, topFieldInPx, width, height); }; + let clipType = { + groupRows: 0, + groupCols: 1, + groupAll: 2, + headersRows: 3, + headersCols: 4, + headersAll: 5, + range: 6 + }; + WorksheetView.prototype._clipDrawingRect = function (drawingCtx, range, type) { + let ctxW = drawingCtx.getWidth(); + let ctxH = drawingCtx.getHeight(); + + if (range === undefined) { + range = this.visibleRange; + } + if (type === undefined) { + type = clipType.range; + } + + let frozenOffsetX = 0; + let frozenOffsetY = 0; + let isFrozenRows = null; + let isFrozenCols = null; + if (this.topLeftFrozenCell) { + //if (undefined === offsetXForDraw) { + let cFrozen = this.topLeftFrozenCell.getCol0(); + if (range.c1 < cFrozen) { + isFrozenCols = true; + } + frozenOffsetX = this._getColLeft(cFrozen) - this.cellsLeft; + //} + //if (undefined === offsetYForDraw) { + let rFrozen = this.topLeftFrozenCell.getRow0(); + frozenOffsetY = this._getRowTop(rFrozen) - this.cellsTop; + if (range.r1 < rFrozen) { + isFrozenRows = true; + } + //} + } + + let _case = 0; + let clipX, clipY, clipWidth, clipHeight; + + switch (type) { + case clipType.groupRows: + if (!this.groupWidth) { + return false; + } + //clip rows group bar + clipX = this.headersLeft - this.groupWidth; + clipY = (!isFrozenRows && frozenOffsetY) ? (this.cellsTop + frozenOffsetY) : this.cellsTop; + clipWidth = this.groupWidth; + clipHeight = ctxH; + _case = -1; + + break; + case clipType.groupCols: + if (!this.groupHeight) { + return false; + } + //clip cols group bar + clipX = (!isFrozenCols && frozenOffsetX) ? (this.cellsLeft + frozenOffsetX) : this.cellsLeft; + clipY = this.headersTop - this.groupHeight; + clipWidth = ctxW; + clipHeight = this.groupHeight; + _case = -2; + + break; + case clipType.groupAll: + if (!this.groupHeight) { + return false; + } + //clip all include groups bar + clipX = this.headersLeft - this.groupWidth; + clipY = this.headersTop - this.groupHeight; + clipWidth = ctxW; + clipHeight = ctxH; + _case = -3; + + break; + case clipType.headersRows: + if (!this.model.getSheetView().asc_getShowRowColHeaders()) { + return false; + } + + clipX = this.headersLeft; + clipY = isFrozenRows ? (this.cellsTop + frozenOffsetY) : this.cellsTop; + clipWidth = this.headersWidth; + clipHeight = ctxH; + _case = -4; + + break; + case clipType.headersCols: + if (!this.model.getSheetView().asc_getShowRowColHeaders()) { + return false; + } + + clipX = isFrozenCols ? (this.cellsLeft + frozenOffsetX) : this.cellsLeft; + clipY = this.headersTop; + clipWidth = ctxW; + clipHeight = this.headersHeight; + _case = -5; + + break; + case clipType.headersAll: + if (!this.model.getSheetView().asc_getShowRowColHeaders()) { + return false; + } + + clipX = this.headersLeft; + clipY = this.headersTop; + clipWidth = ctxW; + clipHeight = ctxH; + _case = -6; + + break; + case clipType.range: + let x1 = this._getColLeft(range.c1); + let x2 = this._getColLeft(range.c2 + 1); + let y1 = this._getRowTop(range.r1); + let y2 = this._getRowTop(range.r2 + 1); + let width = x2 - x1; + let height = y2 - y1; + let offsetX = this._getOffsetX(); + let offsetY = this._getOffsetY(); + + let t = this; + let doSimpleClip = function () { + let heightOffset = 0; + if (y1 - offsetY < t.cellsTop) { + heightOffset = t.cellsTop - (y1 - offsetY); + } + let widthOffset = 0; + if (x1 - offsetX < t.cellsLeft) { + widthOffset = t.cellsLeft - (x1 - offsetX); + } + clipX = x1 - offsetX + widthOffset + t.getRightToLeftOffset(); + clipY = y1 - offsetY + heightOffset; + clipWidth = width - widthOffset; + clipHeight = height - heightOffset; + }; + + + if (!frozenOffsetX && !frozenOffsetY) { + //not frozen panes + doSimpleClip(); + _case = 1; + } else if (frozenOffsetX && !frozenOffsetY) { + //only cols frozen + let heightOffset = 0; + if (y1 - offsetY < this.cellsTop) { + heightOffset = this.cellsTop - (y1 - offsetY); + } + if (!isFrozenCols) { + //outside frozen area + let screenX = x1 - offsetX + frozenOffsetX; + let widthOffset = 0; + if (screenX < frozenOffsetX + this.cellsLeft) { + widthOffset = (frozenOffsetX + this.cellsLeft) - screenX; + } + + clipX = screenX + widthOffset; + clipY = y1 - offsetY + heightOffset; + clipWidth = width - widthOffset; + clipHeight = height - heightOffset; + _case = 2; + } else { + //inside frozen area + clipX = x1; + clipY = y1 - offsetY + heightOffset; + clipWidth = width; + clipHeight = height - heightOffset; + _case = 3; + } + } else if (!frozenOffsetX && frozenOffsetY) { + //only rows frozen + let widthOffset = 0; + if (x1 - offsetX < this.cellsLeft) { + widthOffset = this.cellsLeft - (x1 - offsetX); + } + if (!isFrozenRows) { + //outside frozen area + let screenY = y1 - offsetY + frozenOffsetY; + let heightOffset = 0; + if (screenY < frozenOffsetY + this.cellsTop) { + heightOffset = (frozenOffsetY + this.cellsTop) - screenY; + } + + clipX = x1 - offsetX + widthOffset; + clipY = screenY + heightOffset; + clipWidth = width - widthOffset; + clipHeight = height - heightOffset; + _case = 4 + } else { + //inside frozen area + clipX = x1 - offsetX + widthOffset; + clipY = y1; + clipWidth = width - widthOffset; + clipHeight = height; + _case = 5; + } + } else if (frozenOffsetX && frozenOffsetY) { + if (!isFrozenRows && !isFrozenCols) { + let screenX = x1 - offsetX + frozenOffsetX; + let widthOffset = 0; + if (screenX < frozenOffsetX + this.cellsLeft) { + widthOffset = (frozenOffsetX + this.cellsLeft) - screenX; + } + + let screenY = y1 - offsetY + frozenOffsetY; + let heightOffset = 0; + if (screenY < frozenOffsetY + this.cellsTop) { + heightOffset = (frozenOffsetY + this.cellsTop) - screenY; + } + + clipX = screenX + widthOffset; + clipY = screenY + heightOffset; + clipWidth = width - widthOffset; + clipHeight = height - heightOffset; + + _case = 6 + } else if (isFrozenRows && !isFrozenCols) { + + let screenX = x1 - offsetX + frozenOffsetX; + let widthOffset = 0; + if (screenX < frozenOffsetX + this.cellsLeft) { + widthOffset = (frozenOffsetX + this.cellsLeft) - screenX; + } + + let screenY = y1 - offsetY + frozenOffsetY; + let heightOffset = 0; + if (screenY < frozenOffsetY + this.cellsTop) { + heightOffset = (frozenOffsetY + this.cellsTop) - screenY; + } + + clipX = screenX + widthOffset; + clipY = y1; + clipWidth = width - widthOffset; + clipHeight = height; + + _case = 7; + } else if (!isFrozenRows && isFrozenCols) { + let screenX = x1 - offsetX + frozenOffsetX; + let widthOffset = 0; + if (screenX < frozenOffsetX + this.cellsLeft) { + widthOffset = (frozenOffsetX + this.cellsLeft) - screenX; + } + + let screenY = y1 - offsetY + frozenOffsetY; + let heightOffset = 0; + if (screenY < frozenOffsetY + this.cellsTop) { + heightOffset = (frozenOffsetY + this.cellsTop) - screenY; + } + + clipX = x1; + clipY = screenY + heightOffset; + clipWidth = width; + clipHeight = height - heightOffset; + + _case = 8; + } else if (isFrozenRows && isFrozenCols) { + clipX = x1; + clipY = y1; + clipWidth = width; + clipHeight = height; + + _case = 9; + } + } + + break; + } + + drawingCtx.AddClipRect(clipX, clipY, clipWidth, clipHeight); + //for test + //console.log(" range: " + range.getName() + " clipX: " + clipX + " clipY: " + clipY + " clipWidth: " + clipWidth + " clipHeight: " + clipHeight + " caset: " + caset) + //drawingCtx.setLineWidth(3).setStrokeStyle(AscCommonExcel.c_oAscCoAuthoringOtherBorderColor).strokeRect(clipX + 1, clipY + 1, clipWidth - 1, clipHeight - 1); + + return true; + }; + WorksheetView.prototype._drawCellsAndBorders = function (drawingCtx, range, offsetXForDraw, offsetYForDraw) { if (range === undefined) { range = this.visibleRange; } let left, top, cFrozen, rFrozen; - let offsetX = (undefined === offsetXForDraw) ? this._getColLeft(this.visibleRange.c1) - this.cellsLeft : offsetXForDraw; - let offsetY = (undefined === offsetYForDraw) ? this._getRowTop(this.visibleRange.r1) - this.cellsTop : offsetYForDraw; + let offsetX = (undefined === offsetXForDraw) ? this._getOffsetX() : offsetXForDraw; + let offsetY = (undefined === offsetYForDraw) ? this._getOffsetY() : offsetYForDraw; if (!drawingCtx && this.topLeftFrozenCell) { if (undefined === offsetXForDraw) { cFrozen = this.topLeftFrozenCell.getCol0(); @@ -5098,15 +5766,11 @@ } } + let isClip = null; if (!drawingCtx && !window['IS_NATIVE_EDITOR']) { - left = this._getColLeft(range.c1); - top = this._getRowTop(range.r1); - // set clipping rect to cells area - this.drawingCtx.save() - .beginPath() - .rect(left - offsetX, top - offsetY, Math.min(this._getColLeft(range.c2 + 1) - left, this.drawingCtx.getWidth() - this.cellsLeft), - Math.min(this._getRowTop(range.r2 + 1) - top, this.drawingCtx.getHeight() - this.cellsTop)) - .clip(); + if (this._clipDrawingRect(this.drawingCtx, range, clipType.range)) { + isClip = true; + } } this._prepareCellTextMetricsCache(range); @@ -5145,7 +5809,7 @@ this.drawTraceArrows(range, offsetX, offsetY, [drawingCtx]); } - if (!drawingCtx && !window['IS_NATIVE_EDITOR']) { + if (isClip) { // restore canvas' original clipping range this.drawingCtx.restore(); } @@ -5213,7 +5877,7 @@ var fillGrid = findFillColor || hasFill; findFillColor = findFillColor || (!hasFill && mc && this.settings.cells.defaultState.background); - var x = this._getColLeft(col) - (fillGrid ? 1 : 0); + var x = this._getColLeft(col) - (fillGrid ? 1 : 0) + this.getRightToLeftOffset(); var y = top - (fillGrid ? 1 : 0); var w = width + (fillGrid ? +1 : -1) + mwidth; var h = height + (fillGrid ? +1 : -1) + mheight; @@ -5262,10 +5926,28 @@ drawCells[i] = 1; } } + + let _originalMatrix; + let _ctx = drawingCtx || this.drawingCtx; + if (this.getRightToLeft()) { + _originalMatrix = _ctx.Transform ? _ctx.Transform.CreateDublicate() : _ctx._mbt.clone(); + let _transform = new AscCommon.CMatrix(); + let transformMatrix = _transform.CreateDublicate ? _transform.CreateDublicate() : _transform.clone(); + + _ctx.setTransform(1, transformMatrix.shy, transformMatrix.shx, transformMatrix.sy, transformMatrix.tx, transformMatrix.ty); + _ctx.updateTransforms && _ctx.updateTransforms(); + } + // draw text for (i in drawCells) { this._drawCellText(drawingCtx, cfIterator, i >> 0, row, colStart, colEnd, offsetX, offsetY); } + + if (_originalMatrix) { + _ctx.setTransform(_originalMatrix.sx, _originalMatrix.shy, _originalMatrix.shx, + _originalMatrix.sy, _originalMatrix.tx, _originalMatrix.ty); + _ctx.updateTransforms && _ctx.updateTransforms(); + } }; WorksheetView.prototype._getCellCF = function (cfIterator, c, row, col, type) { @@ -5433,6 +6115,9 @@ && AscCommon.align_Center !== cellHA)) { cellHA = AscCommon.align_Left; } + if (this.getRightToLeft()) { + rect._x = this.getCtxWidth(ctx) - rect._x - rect._width; + } rect._x = this._calcTextHorizPos(rect._x, rect._x + rect._width, tm, cellHA); rect._y = this._calcTextVertPos(rect._y, rect._height, bl, tm, align.getAlignVertical()); var dScale = asc_getcvt(0, 3, this._getPPIX()); @@ -5461,6 +6146,7 @@ var oMatrix = new AscCommon.CMatrix(); oMatrix.tx = rect._x; oMatrix.ty = rect._y; + graphics.transform3(oMatrix); var shapeDrawer = new AscCommon.CShapeDrawer(); shapeDrawer.Graphics = graphics; @@ -5483,7 +6169,7 @@ return true; } - var x = this._getColLeft(col) - offsetX + 1; + var x = this._getColLeft(col) - offsetX + 1 + 2*this.getRightToLeftOffset(); width -= 3; // indent top += 1 - offsetY; @@ -5513,6 +6199,10 @@ return null; } + if (this.getRightToLeft()) { + offsetX = -offsetX; + } + var c = this._getVisibleCell(col, row); if (false === this.model.getSheetView().asc_getShowZeros() && c.getValue() === "0") { @@ -5543,15 +6233,21 @@ } } - var x1 = this._getColLeft(colL) - offsetX; + var x1 = this.checkRtl(this._getColLeft(colL), ctx) - offsetX; var y1 = this._getRowTop(rowT) - offsetY; - var w = this._getColLeft(colR + 1) - offsetX - x1; + var w = this.checkRtl(this._getColLeft(colR + 1), ctx) - offsetX - x1; var h = this._getRowTop(rowB + 1) - offsetY - y1; var x2 = x1 + w - (isTrimmedR ? 0 : gridlineSize); var y2 = y1 + h; var bl = y2 - Asc.round( (isMerged ? (ct.metrics.height - ct.metrics.baseline) : this._getRowDescender(rowB)) * this.getZoom()); - var x1ct = isMerged ? x1 : this._getColLeft(col) - offsetX; + if (this.getRightToLeft()) { + let temp = x1; + x1 = x2; + x2 = temp; + w = -w; + } + var x1ct = isMerged ? x1 : this._getColLeft(col, true, ctx) - offsetX; var x2ct = isMerged ? x2 : x1ct + this._getColumnWidth(col) - gridlineSize; var textX = this._calcTextHorizPos(x1ct, x2ct, ct.metrics, ct.cellHA); var textY = this._calcTextVertPos(y1, h, bl, ct.metrics, ct.cellVA); @@ -5565,7 +6261,7 @@ if (ct.angle) { - xb1 = this._getColLeft(col) - offsetX; + xb1 = this._getColLeft(col, true, ctx) - offsetX; yb1 = this._getRowTop(row) - offsetY; wb = this._getColumnWidth(col); hb = this._getRowHeight(row); @@ -5574,7 +6270,11 @@ txtRotW = ct.textBound.width + xb1 - ct.textBound.offsetX; if (isMerged) { - wb = this._getColLeft(colR + 1) - this._getColLeft(colL); + wb = this._getColLeft(colR + 1, null, ctx) - this._getColLeft(colL, null, ctx); + if (this.getRightToLeft()) { + xb1 += this._getColumnWidth(col) - wb; + } + hb = this._getRowTop(rowB + 1) - this._getRowTop(rowT); ctx.AddClipRect(xb1, yb1, wb, hb); clipUse = true; @@ -5603,7 +6303,7 @@ if (0 == colLeft) { break; } - if (txtRotX >= this._getColLeft(colLeft)) { + if (txtRotX >= this._getColLeft(colLeft, true, ctx)) { break; } --colLeft; @@ -5618,7 +6318,7 @@ --colRight; break; } - if (txtRotW <= this._getColLeft(colRight)) { + if (txtRotW <= this._getColLeft(colRight, true, ctx)) { --colRight; break; } @@ -5679,7 +6379,7 @@ } } - this.stringRender.render(drawingCtx, 0, 0, textW, color); + this._drawText(this.stringRender, drawingCtx, 0, 0, textW, color); this.stringRender.resetTransform(isPrintPreview ? null : drawingCtx); if (transformMatrix) { @@ -5731,7 +6431,8 @@ } } } - this.stringRender.restoreInternalState(ct.state).render(drawingCtx, textX, textY, textW, color); + + this._drawText(this.stringRender.restoreInternalState(ct.state), drawingCtx, textX, textY, textW, color) ctx.RemoveClipRect(); } @@ -6230,8 +6931,8 @@ var t = this; var ctx = drawingCtx || this.drawingCtx; - var offsetX = (undefined !== leftFieldInPx) ? leftFieldInPx : this._getColLeft(this.visibleRange.c1) - this.cellsLeft; - var offsetY = (undefined !== topFieldInPx) ? topFieldInPx : this._getRowTop(this.visibleRange.r1) - this.cellsTop; + var offsetX = (undefined !== leftFieldInPx) ? leftFieldInPx : this._getOffsetX(); + var offsetY = (undefined !== topFieldInPx) ? topFieldInPx : this._getOffsetY(); var frozenX = 0, frozenY = 0, cFrozen, rFrozen; if (!drawingCtx && this.topLeftFrozenCell) { @@ -6337,7 +7038,7 @@ let _y2 = Math.min(tY1 + textHeight * _zoom, y2); if (_x1 < _x2 && _y1 < _y2) { ctx.AddClipRect(x1, y1, x2 - x1, y2 - y1); - this.stringRender.render(undefined, tX1, tY1, 100, this.settings.activeCellBorderColor); + this._drawText(this.stringRender, undefined, tX1, tY1, 100, this.settings.activeCellBorderColor); ctx.RemoveClipRect(); } } @@ -6457,10 +7158,10 @@ switch (type) { case c_oAscBorderType.Hor: - ctx.lineHor(x1, y1, x2); + ctx.lineHor(x1 + t.getRightToLeftOffset(), y1, x2 + t.getRightToLeftOffset()); break; case c_oAscBorderType.Ver: - ctx.lineVer(x1, y1, y2); + ctx.lineVer(x1 + 2*t.getRightToLeftOffset(), y1, y2); break; case c_oAscBorderType.Diag: ctx.lineDiag(x1, y1, x2, y2); @@ -6651,11 +7352,15 @@ */ if (bCur.borders.dd) { // draw diagonal line l,t - r,b - drawBorder(c_oAscBorderType.Diag, bCur.borders.d, x1 - 1, y1 - 1, x2Diagonal, y2Diagonal); + if (bCur.borders.d && bCur.borders.d.w > 0) { + drawBorder(c_oAscBorderType.Diag, bCur.borders.d, x1 - 1, y1 - 1, x2Diagonal, y2Diagonal); + } } if (bCur.borders.du) { // draw diagonal line l,b - r,t - drawBorder(c_oAscBorderType.Diag, bCur.borders.d, x1 - 1, y2Diagonal, x2Diagonal, y1 - 1); + if (bCur.borders.d && bCur.borders.d.w > 0) { + drawBorder(c_oAscBorderType.Diag, bCur.borders.d, x1 - 1, y2Diagonal, x2Diagonal, y1 - 1); + } } // ToDo Clip diagonal borders //ctx.restore(); @@ -6769,8 +7474,8 @@ var tmpRange, offsetX, offsetY; if ( 0 < row && 0 < col ) { - offsetX = this._getColLeft(0) - this.cellsLeft; - offsetY = this._getRowTop(0) - this.cellsTop; + offsetX = this._getOffsetX(0, true); + offsetY = this._getOffsetY(0, true) tmpRange = new asc_Range( 0, 0, col - 1, row - 1 ); if ( !noCells ) { this._drawGrid( null, tmpRange, offsetX, offsetY ); @@ -6782,7 +7487,7 @@ if ( 0 < row ) { row -= 1; offsetX = undefined; - offsetY = this._getRowTop(0) - this.cellsTop; + offsetY = this._getOffsetY(0, true); tmpRange = new asc_Range( this.visibleRange.c1, 0, this.visibleRange.c2, row ); this._drawRowHeaders( null, 0, row, kHeaderDefault, offsetX, offsetY ); if ( !noCells ) { @@ -6794,7 +7499,7 @@ } if ( 0 < col ) { col -= 1; - offsetX = this._getColLeft(0) - this.cellsLeft; + offsetX = this._getOffsetX(0, true); offsetY = undefined; tmpRange = new asc_Range( 0, this.visibleRange.r1, col, this.visibleRange.r2 ); this._drawColumnHeaders( null, 0, col, kHeaderDefault, offsetX, offsetY ); @@ -6808,6 +7513,31 @@ } }; + WorksheetView.prototype._getOffsetY = function (nRow, checkFrozen) { + if (nRow == null) { + nRow = this.visibleRange.r1 + } + let scrollCorrect = this.getScrollCorrect(); + let frozenRow = checkFrozen && this.topLeftFrozenCell && this.topLeftFrozenCell.getRow0(); + if (frozenRow && frozenRow > nRow) { + scrollCorrect = 0; + } + return this._getRowTop(nRow) - this.cellsTop + scrollCorrect; + }; + + WorksheetView.prototype._getOffsetX = function (nCol, checkFrozen) { + if (nCol == null) { + nCol = this.visibleRange.c1 + } + let scrollCorrect = this.getHorizontalScrollCorrect(); + let frozenCol = checkFrozen && this.topLeftFrozenCell && this.topLeftFrozenCell.getCol0(); + if (frozenCol && frozenCol > nCol) { + scrollCorrect = 0; + } + + return this._getColLeft(nCol != null ? nCol : this.visibleRange.c1) - this.cellsLeft + scrollCorrect; + }; + /** Рисует закрепление областей */ WorksheetView.prototype._drawFrozenPaneLines = function (drawingCtx) { // Возможно стоит отрисовывать на overlay, а не на основной канве @@ -6819,8 +7549,8 @@ ctx.setLineWidth(1).setStrokeStyle(color).beginPath(); var fHorLine, fVerLine; if (isLocked) { - fHorLine = ctx.dashLineCleverHor; - fVerLine = ctx.dashLineCleverVer; + fHorLine = this._dashLineCleverHor; + fVerLine = this._dashLineCleverVer; } else { fHorLine = ctx.lineHorPrevPx; fVerLine = ctx.lineVerPrevPx; @@ -6830,26 +7560,38 @@ var row = this.topLeftFrozenCell.getRow0(); var col = this.topLeftFrozenCell.getCol0(); if (0 < row) { - fHorLine.apply(ctx, [0, this._getRowTop(row), ctx.getWidth()]); + fHorLine.apply(ctx, [0, this._getRowTop(row), ctx.getWidth(), this]); } else { - fHorLine.apply(ctx, [this.headersLeft, this.headersTop + this.headersHeight, this.headersLeft + this.headersWidth]); + fHorLine.apply(ctx, [this.headersLeft, this.headersTop + this.headersHeight, this.headersLeft + this.headersWidth, this]); } if (0 < col) { - fVerLine.apply(ctx, [this._getColLeft(col), 0, ctx.getHeight()]); + fVerLine.apply(ctx, [this._getColLeft(col), 0, ctx.getHeight(), this]); } else { - fVerLine.apply(ctx, [this.headersLeft + this.headersWidth, this.headersTop, this.headersTop + this.headersHeight]); + fVerLine.apply(ctx, [this.headersLeft + this.headersWidth, this.headersTop, this.headersTop + this.headersHeight, this]); } ctx.stroke(); } else if (this.model.getSheetView().asc_getShowRowColHeaders()) { - fHorLine.apply(ctx, [this.headersLeft, this.headersTop + this.headersHeight, this.headersLeft + this.headersWidth]); - fVerLine.apply(ctx, [this.headersWidth + this.headersLeft, this.headersTop, this.headersTop + this.headersHeight]); + fHorLine.apply(ctx, [this.headersLeft + this.getRightToLeftOffset(), this.headersTop + this.headersHeight, this.headersLeft + this.headersWidth, this]); + fVerLine.apply(ctx, [this.headersWidth + this.headersLeft, this.headersTop, this.headersTop + this.headersHeight, this]); ctx.stroke(); } }; + WorksheetView.prototype._dashLineCleverVer = function (x, y1, y2, _this) { + let ctx = this; + ctx.dashLineCleverVer(_this.getRightToLeft() ? (_this.getCtxWidth(ctx) - x) : x, y1, y2) + return ctx; + }; + + WorksheetView.prototype._dashLineCleverHor = function (x1, y, x2, _this) { + let ctx = this; + ctx.dashLineCleverHor(_this.getRightToLeft() ? (_this.getCtxWidth(ctx) - x2) : x1, y, _this.getRightToLeft() ? (_this.getCtxWidth(ctx) - x1) : x2) + return ctx; + }; + WorksheetView.prototype.drawFrozenGuides = function ( x, y, target ) { var data, offsetFrozen; var ctx = this.overlayCtx; @@ -6864,7 +7606,7 @@ data.col += 1; if ( 0 <= data.col && data.col < this.nColsCount ) { var h = ctx.getHeight(); - var offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft; + var offsetX = this._getOffsetX(); offsetFrozen = this.getFrozenPaneOffset( false, true ); offsetX -= offsetFrozen.offsetX; ctx.setFillPattern( this.settings.ptrnLineDotted1 ) @@ -6878,7 +7620,7 @@ data.row += 1; if ( 0 <= data.row && data.row < this.nRowsCount ) { var w = ctx.getWidth(); - var offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop; + var offsetY = this._getOffsetY(); offsetFrozen = this.getFrozenPaneOffset( true, false ); offsetY -= offsetFrozen.offsetY; ctx.setFillPattern( this.settings.ptrnLineDotted1 ) @@ -7153,8 +7895,8 @@ let dashThickLine = AscCommonExcel.selectionLineType.DashThick & selectionLineType; if (isDashLine || dashThickLine) { - fHorLine = ctx.dashLineCleverHor; - fVerLine = ctx.dashLineCleverVer; + fHorLine = this._dashLineCleverHor; + fVerLine = this._dashLineCleverVer; } else { fHorLine = ctx.lineHorPrevPx; fVerLine = ctx.lineVerPrevPx; @@ -7220,17 +7962,18 @@ ctx.setLineWidth(widthLine).setStrokeStyle(strokeColor); ctx.beginPath(); + if (drawTopSide && !firstRow) { - fHorLine.apply(ctx, [x1 - !isDashLine * (2 + isRetina * 1) + _diff, y1, x2 + !isDashLine * (1 + isRetina * 1) - _diff]); + fHorLine.apply(ctx, [x1 - !isDashLine * (2 + isRetina * 1) + _diff + this.getRightToLeftOffset()*1, y1, x2 + !isDashLine * (1 + isRetina * 1) - _diff + this.getRightToLeftOffset()*1, this]); } if (drawBottomSide) { - fHorLine.apply(ctx, [x1, y2 + !isDashLine * 1 - thinLineDiff, x2]); + fHorLine.apply(ctx, [x1, y2 + !isDashLine * 1 - thinLineDiff, x2, this]); } if (drawLeftSide && !firstCol) { - fVerLine.apply(ctx, [x1, y1, y2 + !isDashLine * (1 + isRetina * 1) - _diff]); + fVerLine.apply(ctx, [x1 - this.getRightToLeftOffset()*1, y1, y2 + !isDashLine * (1 + isRetina * 1) - _diff, this]); } if (drawRightSide) { - fVerLine.apply(ctx, [x2 + !isDashLine * 1 - thinLineDiff, y1, y2 + !isDashLine * (1 + isRetina * 1)]); + fVerLine.apply(ctx, [x2 + !isDashLine * 1 - thinLineDiff -this.getRightToLeftOffset()*1, y1, y2 + !isDashLine * (1 + isRetina * 1), this]); } ctx.closePath().stroke(); } @@ -7259,20 +8002,22 @@ ctx.setStrokeStyle(colorN); ctx.beginPath(); if (drawTopSide) { - fHorLine.apply(ctx, [x1 + isRetina * 1, y1 + 1 + isRetina * !firstRow * 1, x2 - 1 - isRetina * 1]); + fHorLine.apply(ctx, [x1 + isRetina * 1 + this.getRightToLeftOffset()*1, y1 + 1 + isRetina * !firstRow * 1, x2 - 1 - isRetina * 1 + this.getRightToLeftOffset()*1, ctx]); } if (drawBottomSide) { - fHorLine.apply(ctx, [x1 + isRetina * 1, y2 - 1 - isRetina * 1, x2 - 1 - isRetina * 1]); + fHorLine.apply(ctx, [x1 + isRetina * 1+ this.getRightToLeftOffset()*1, y2 - 1 - isRetina * 1, x2 - 1 - isRetina * 1+ this.getRightToLeftOffset()*1, ctx]); } if (drawLeftSide) { - fVerLine.apply(ctx, [x1 + 1 + isRetina * !firstCol * 1, y1 + isRetina * 1, y2 - 2 - isRetina * !firstCol * 1]); + fVerLine.apply(ctx, [x1 + 1 + isRetina * !firstCol * 1, y1 + isRetina * 1, y2 - 2 - isRetina * !firstCol * 1, ctx]); } if (drawRightSide) { - fVerLine.apply(ctx, [x2 - 1 - isRetina * 1, y1 + isRetina * 1, y2 - 2 - isRetina * 1]); + fVerLine.apply(ctx, [x2 - 1 - isRetina * 1, y1 + isRetina * 1, y2 - 2 - isRetina * 1, ctx]); } ctx.closePath().stroke(); } + + // Отрисовка квадратов для move/resize let isResize = AscCommonExcel.selectionLineType.Resize & selectionLineType; let isPromote = AscCommonExcel.selectionLineType.Promote & selectionLineType; @@ -7286,11 +8031,11 @@ ctx.setFillStyle(colorN); if (drawRightSide && drawBottomSide) { - ctx.fillRect(x2 - diffBorder, y2 - diffBorder, sizeBorder, sizeBorder); + ctx.fillRect(x2 - diffBorder + this.getRightToLeftOffset()*1, y2 - diffBorder, sizeBorder, sizeBorder); } ctx.setFillStyle(strokeColor); if (drawRightSide && drawBottomSide) { - ctx.fillRect(x2 - diff, y2 - diff, size, size); + ctx.fillRect(x2 - diff + this.getRightToLeftOffset()*1, y2 - diff, size, size); } if (isResize) { @@ -7321,8 +8066,8 @@ /**Отрисовывает диапазон с заданными параметрами*/ WorksheetView.prototype._drawElements = function (drawFunction) { var cFrozen = 0, rFrozen = 0, args = Array.prototype.slice.call(arguments, 1), - offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft, - offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop, res; + offsetX = this._getOffsetX(), + offsetY = this._getOffsetY(), res; if (this.topLeftFrozenCell) { cFrozen = this.topLeftFrozenCell.getCol0(); rFrozen = this.topLeftFrozenCell.getRow0(); @@ -7333,21 +8078,42 @@ rFrozen -= 1; if (0 <= cFrozen && 0 <= rFrozen) { oFrozenRange = new asc_Range(0, 0, cFrozen, rFrozen); - res = drawFunction.call(this, oFrozenRange, this._getColLeft(0) - this.cellsLeft, this._getRowTop(0) - this.cellsTop, args); + res = drawFunction.call(this, oFrozenRange, this._getColLeft(0) - this.cellsLeft, this._getOffsetY(0, true), args); if (!res) { return; } } if (0 <= cFrozen) { oFrozenRange = new asc_Range(0, this.visibleRange.r1, cFrozen, this.visibleRange.r2); - res = drawFunction.call(this, oFrozenRange, this._getColLeft(0) - this.cellsLeft, offsetY, args); - if (!res) { - return; - } + + let clipX = this._getColLeft(oFrozenRange.c1) - offsetX + this.getHorizontalScrollCorrect(); + let clipY = this._getRowTop(oFrozenRange.r1) - offsetY + this.getScrollCorrect(); + let clipW = this._getColLeft(this.visibleRange.c2 + 1) - this._getColLeft(oFrozenRange.c1); + let clipH = this._getRowTop(this.visibleRange.r2 + 1) - this._getRowTop(oFrozenRange.r1); + + this.overlayCtx.save().beginPath() + .rect(clipX, clipY, clipW, clipH) + .clip(); + res = drawFunction.call(this, oFrozenRange, this._getColLeft(0) - this.cellsLeft, offsetY, args); + this.overlayCtx.restore(); + + if (!res) { + return; + } } if (0 <= rFrozen) { oFrozenRange = new asc_Range(this.visibleRange.c1, 0, this.visibleRange.c2, rFrozen); - res = drawFunction.call(this, oFrozenRange, offsetX, this._getRowTop(0) - this.cellsTop, args); + let clipX = this._getColLeft(oFrozenRange.c1) - offsetX + this.getHorizontalScrollCorrect(); + let clipY = this._getRowTop(oFrozenRange.r1) - offsetY + this.getScrollCorrect(); + let clipW = this._getColLeft(this.visibleRange.c2 + 1) - this._getColLeft(oFrozenRange.c1); + let clipH = this._getRowTop(this.visibleRange.r2 + 1) - this._getRowTop(oFrozenRange.r1); + + this.overlayCtx.save().beginPath() + .rect(clipX, clipY, clipW, clipH) + .clip(); + res = drawFunction.call(this, oFrozenRange, offsetX, this._getOffsetY(0, true), args); + this.overlayCtx.restore(); + if (!res) { return; } @@ -7355,7 +8121,16 @@ } // Можно вместо call попользовать apply, но тогда нужно каждый раз соединять массив аргументов и 3 объекта + let clipX = this._getColLeft(this.visibleRange.c1) - offsetX + this.getHorizontalScrollCorrect(); + let clipY = this._getRowTop(this.visibleRange.r1) - offsetY + this.getScrollCorrect(); + let clipW = this._getColLeft(this.visibleRange.c2 + 1) - this._getColLeft(this.visibleRange.c1); + let clipH = this._getRowTop(this.visibleRange.r2 + 1) - this._getRowTop(this.visibleRange.r1); + + this.overlayCtx.save().beginPath() + .rect(clipX, clipY, clipW, clipH) + .clip(); drawFunction.call(this, this.visibleRange, offsetX, offsetY, args); + this.overlayCtx.restore(); }; /** @@ -7383,6 +8158,9 @@ // set clipping rect to cells area var ctx = this.overlayCtx; + + this._startRtlRendering(ctx); + ctx.save().beginPath() .rect(this.cellsLeft, this.cellsTop, ctx.getWidth() - this.cellsLeft, ctx.getHeight() - this.cellsTop) .clip(); @@ -7513,6 +8291,7 @@ if (!isOtherSelectionMode && !isShapeSelect) { this._drawActiveHeaders(); } + this._endRtlRendering(ctx); }; WorksheetView.prototype.Show_ForeignCursorLabel = function(userId, foreignCursor, index, color) { @@ -7736,7 +8515,9 @@ var y2 = -Number.MAX_VALUE; var _x1, _x2, _y1, _y2; var i; - var arnIntersection; + var arnIntersection; + + this._startRtlRendering(ctx); if (this.topLeftFrozenCell) { var cFrozen = this.topLeftFrozenCell.getCol0(); @@ -7769,13 +8550,14 @@ if (range.r1 !== this.visibleRange.r1) { diffHeight = 0; } - offsetX = this._getColLeft(range.c1) - this.cellsLeft - diffWidth; - offsetY = this._getRowTop(range.r1) - this.cellsTop - diffHeight; + offsetX = this._getOffsetX(range.c1, true) - diffWidth; + offsetY = this._getOffsetY(range.r1, true) - diffHeight; } else { - offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft - diffWidth; - offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop - diffHeight; + offsetX = this._getOffsetX() - diffWidth; + offsetY = this._getOffsetY() - diffHeight; } + this._endRtlRendering(ctx); this._activateOverlayCtx(); var t = this; var isRetinaWidth = this.getRetinaPixelRatio() >= 2; @@ -7809,6 +8591,7 @@ } }); this._deactivateOverlayCtx(); + this._startRtlRendering(ctx); // Если есть активное автозаполнения, то нужно его тоже очистить if (this.activeFillHandle !== null) { @@ -8009,7 +8792,7 @@ if (!(Number.MAX_VALUE === x1 && -Number.MAX_VALUE === x2 && Number.MAX_VALUE === y1 && -Number.MAX_VALUE === y2)) { - if(this.workbook.Api.isMobileVersion) { + if(this.workbook.Api.wb.MobileTouchManager) { //Add radius of mobile pins var nRad = (AscCommon.MOBILE_SELECT_TRACK_ROUND / 2 + 0.5) >> 0; nRad = AscCommon.AscBrowser.convertToRetinaValue(nRad, true); @@ -8026,6 +8809,7 @@ .clearRect(x1, y1, x2 - x1, y2 - y1) .restore(); } + this._endRtlRendering(ctx); return this; }; @@ -8108,17 +8892,21 @@ x += mouseX; var ctx = this.overlayCtx; - var offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft; + var offsetX = this._getOffsetX(); var offsetFrozen = this.getFrozenPaneOffset( false, true ); offsetX -= offsetFrozen.offsetX; var x1 = this._getColLeft(col) - offsetX - gridlineSize; var h = ctx.getHeight(); - var width = Asc.round((x - x1) / (this.getZoom(true) * this.getRetinaPixelRatio())); + var width = Asc.round((this.getRightToLeft() ? (this.getCtxWidth() - x1) - x : (x - x1)) / (this.getZoom(true) * this.getRetinaPixelRatio())); if ( 0 > width ) { width = 0; } + if (this.getRightToLeft()) { + x1 = this.drawingCtx.getWidth() - x1; + } + ctx.clear(); this._drawSelection(); ctx.setFillPattern( this.settings.ptrnLineDotted1 ) @@ -8129,7 +8917,7 @@ type : Asc.c_oAscMouseMoveType.ResizeColumn, sizeCCOrPt: this.model.colWidthToCharCount(width), sizePx : width, - x : AscCommon.AscBrowser.convertToRetinaValue(x1 + this._getColumnWidth(col)), + x : AscCommon.AscBrowser.convertToRetinaValue( this.getRightToLeft() ? x1 : x1 + this._getColumnWidth(col)), y : AscCommon.AscBrowser.convertToRetinaValue(this.cellsTop) } ); }; @@ -8140,7 +8928,7 @@ y += mouseY; var ctx = this.overlayCtx; - var offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop; + var offsetY = this._getOffsetY(); var offsetFrozen = this.getFrozenPaneOffset( true, false ); offsetY -= offsetFrozen.offsetY; @@ -8161,7 +8949,7 @@ type : Asc.c_oAscMouseMoveType.ResizeRow, sizeCCOrPt: AscCommonExcel.convertPxToPt(height), sizePx : height, - x : AscCommon.AscBrowser.convertToRetinaValue(this.cellsLeft), + x : AscCommon.AscBrowser.convertToRetinaValue(this.getRightToLeft() ? (this.getCtxWidth() - this.cellsLeft) : this.cellsLeft), y : AscCommon.AscBrowser.convertToRetinaValue(y1 + this._getRowHeight(row)) } ); }; @@ -8630,6 +9418,7 @@ if (!angle && !verticalText && (cto.leftSide !== 0 || cto.rightSide !== 0)) { this._addErasedBordersToCache(col - cto.leftSide, col + cto.rightSide, row); } + this._updateRowHeight(cache, row, maxW, colWidth); return mc ? mc.c2 : col; @@ -8689,6 +9478,35 @@ //not find a case where the ms does not update the height with the columns merged ans wrap var isMergedRows = (mergeType & c_oAscMergeType.rows)/* || (mergeType && cache.flags.wrapText)*/; var tm = cache.metrics; + + let mergedWrapHeight = null; + if (mergeType && cache.flags.wrapText) { + if (cache.angle) { + isMergedRows = true; + } else { + //ms use ht if multitext cell inside and use text 1 line height metrics if not multitext + //while such as detect different text settings into 1 cell. probably, need get info from model + let textHeight; + if (cache.state && cache.state.lines) { + for (let i = 0 ; i < cache.state.lines.length; i++) { + if (!textHeight) { + textHeight = cache.state.lines[i].th; + } else if (textHeight !== cache.state.lines[i].th) { + textHeight = null; + break; + } + } + } + if (textHeight) { + mergedWrapHeight = textHeight; + } else { + let _rowHeight = AscCommonExcel.convertPtToPx(this.model.getRowHeight(row)); + if (_rowHeight && !isNaN(_rowHeight)) { + mergedWrapHeight = _rowHeight; + } + } + } + } var va = cache.cellVA; var textBound = cache.textBound; var rowInfo = this.rows[row]; @@ -8705,7 +9523,7 @@ // update row's height // Замерженная ячейка (с 2-мя или более строками) не влияет на высоту строк! if (!isCustomHeight && !(window["NATIVE_EDITOR_ENJINE"] && this.notUpdateRowHeight) && !isMergedRows) { - var newHeight = tm.height; + var newHeight = mergedWrapHeight ? mergedWrapHeight : tm.height; var oldHeight = this.updateRowHeightValuePx || AscCommonExcel.convertPtToPx(this._getRowHeightReal(row)); if (cache.angle && textBound) { newHeight = Math.max(oldHeight, textBound.height / this.getZoom()); @@ -9328,19 +10146,8 @@ function findEOT() { var obr = t.objectRender ? t.objectRender.getMaxColRow() : new AscCommon.CellBase(-1, -1); - var maxCols = t.model.getColsCount(); - var maxRows = t.model.getRowsCount(); - var lastC = -1, lastR = -1; - - for (var col = 0; col < maxCols; ++col) { - for (var row = 0; row < maxRows; ++row) { - if (!t._isCellNullText(col, row)) { - lastC = Math.max(lastC, col); - lastR = Math.max(lastR, row); - } - } - } - return {col: Math.max(lastC, obr.col), row: Math.max(lastR, obr.row)}; + const eot = t.model.findEOT(); + return {col: Math.max(eot.col, obr.col), row: Math.max(eot.row, obr.row)}; } var eot = dc > +2.0001 && dc < +2.9999 && dr > +2.0001 && dr < +2.9999 ? findEOT() : null; @@ -9418,14 +10225,14 @@ }; WorksheetView.prototype._getMissingWidth = function () { - var visibleWidth = this.cellsLeft + this._getColLeft(this.nColsCount) - this._getColLeft(this.visibleRange.c1); + var visibleWidth = this._getColLeft(this.nColsCount) - this._getOffsetX(); var offsetFrozen = this.getFrozenPaneOffset(false, true); visibleWidth += offsetFrozen.offsetX; return this.drawingCtx.getWidth() - visibleWidth; }; WorksheetView.prototype._getMissingHeight = function () { - var visibleHeight = this.cellsTop + this._getRowTop(this.nRowsCount) - this._getRowTop(this.visibleRange.r1); + var visibleHeight = this._getRowTop(this.nRowsCount) - this._getOffsetY(); var offsetFrozen = this.getFrozenPaneOffset(true, false); visibleHeight += offsetFrozen.offsetY; return this.drawingCtx.getHeight() - visibleHeight; @@ -9463,10 +10270,103 @@ }; WorksheetView.prototype.scrollVertical = function (delta, editor, initRowsCount) { + let t = this; var vr = this.visibleRange; var fixStartRow = new asc_Range(vr.c1, vr.r1, vr.c2, vr.r1); + + let isReverse = delta < 0; + let unitDeltaStep = Asc.round(this.getVScrollStep()); + + let defaultScrollPxStep = unitDeltaStep * Math.abs(delta); + if (defaultScrollPxStep < 1) { + return; + } + defaultScrollPxStep = Math.floor(defaultScrollPxStep); + + let deltaRows = 0, deltaCorrect = 0; + let currentScrollCorrect = this.getScrollCorrect(); + + let firstRow = vr.r1; + let startRowHeight = this._getRowHeight(firstRow); + + var offsetX, offsetY, diffWidth = 0, diffHeight = 0, cFrozen = 0, rFrozen = 0; + if (this.topLeftFrozenCell) { + cFrozen = this.topLeftFrozenCell.getCol0(); + rFrozen = this.topLeftFrozenCell.getRow0(); + diffWidth = this._getColLeft(cFrozen) - this._getColLeft(0); + diffHeight = this._getRowTop(rFrozen) - this._getRowTop(0); + } + + if (this.workbook.getSmoothScrolling()) { + //in px + if (!isReverse) { + //down scroll + if (currentScrollCorrect + defaultScrollPxStep >= startRowHeight) { + //go to the next row + //calculate part of row + new rows delta + + let allScrollHeight = currentScrollCorrect + defaultScrollPxStep; + let scrollHeight = 0; + for (let i = firstRow; i < gc_nMaxRow0; i++) { + let _rowHeight = this._getRowHeight(i); + scrollHeight += _rowHeight; + if (scrollHeight >= allScrollHeight) { + if (scrollHeight === allScrollHeight) { + deltaRows++; + } else { + deltaCorrect = _rowHeight - (scrollHeight - allScrollHeight); + } + break; + } + deltaRows++; + } + } else { + //stay in wr.r1 + deltaCorrect = defaultScrollPxStep + currentScrollCorrect; + deltaRows = 0; + } + } else { + //up scroll + if (currentScrollCorrect - defaultScrollPxStep < 0) { + //go to the next row + //calculate part of row + new rows delta + + let allScrollHeight = defaultScrollPxStep - currentScrollCorrect; + let scrollHeight = 0; + /*if (currentScrollCorrect !== 0) { + deltaRows--; + }*/ + for (let i = firstRow - 1; i >= 0; i--) { + let _rowHeight = this._getRowHeight(i); + scrollHeight += _rowHeight; + if (scrollHeight >= allScrollHeight) { + if (scrollHeight === allScrollHeight) { + deltaRows--; + } else { + //if (deltaRows === 0) { + deltaRows--; + //} + deltaCorrect = (scrollHeight - allScrollHeight); + } + break; + } + deltaRows--; + } + + + } else { + //stay in vr.r1 + deltaCorrect = currentScrollCorrect - defaultScrollPxStep; + deltaRows = 0; + } + } + + delta = deltaRows; + } + + this._fixSelectionOfHiddenCells(0, delta >= 0 ? +1 : -1, fixStartRow); - var start = this._calcCellPosition(vr.c1, fixStartRow.r1, 0, delta).row; + var start = this._calcCellPosition(vr.c1, this.workbook.getSmoothScrolling() ? vr.r1 : fixStartRow.r1, 0, delta).row; fixStartRow.assign(vr.c1, start, vr.c2, start); this._fixSelectionOfHiddenCells(0, delta >= 0 ? +1 : -1, fixStartRow); this._fixVisibleRange(fixStartRow); @@ -9477,7 +10377,7 @@ } start = fixStartRow.r1; - if (start === vr.r1) { + if (start === vr.r1 && (!this.workbook.getSmoothScrolling() || (this.workbook.getSmoothScrolling() && currentScrollCorrect === deltaCorrect))) { if (reinitScrollY) { this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollVertical; this._reinitializeScroll(); @@ -9486,6 +10386,7 @@ } if (!this.notUpdateRowHeight) { + this.cleanHighlightedHeaders(); this.cleanSelection(); this.cellCommentator.cleanSelectedComment(); } @@ -9493,19 +10394,17 @@ var ctx = this.drawingCtx; var ctxW = ctx.getWidth(); var ctxH = ctx.getHeight(); - var offsetX, offsetY, diffWidth = 0, diffHeight = 0, cFrozen = 0, rFrozen = 0; - if (this.topLeftFrozenCell) { - cFrozen = this.topLeftFrozenCell.getCol0(); - rFrozen = this.topLeftFrozenCell.getRow0(); - diffWidth = this._getColLeft(cFrozen) - this._getColLeft(0); - diffHeight = this._getRowTop(rFrozen) - this._getRowTop(0); - } var oldVRE_isPartial = this._isRowDrawnPartially(vr.r2, vr.r1, diffHeight); var oldVR = vr.clone(); var oldStart = vr.r1; var oldEnd = vr.r2; var x = this.cellsLeft; + + var topOldStart = this._getRowTop(oldStart); + var dy = (this._getRowTop(start) + deltaCorrect - (topOldStart + currentScrollCorrect)); + this.workbook.getSmoothScrolling() && this.setScrollCorrect(deltaCorrect); + // ToDo стоит тут переделать весь scroll vr.r1 = start; this._updateVisibleRowsCount(); @@ -9514,7 +10413,7 @@ // Полностью обновилась область this._prepareCellTextMetricsCache(vr); } else { - if (0 > delta) { + if (isReverse) { // Идем вверх this._prepareCellTextMetricsCache(new asc_Range(vr.c1, start, vr.c2, oldStart - 1)); } else { @@ -9528,14 +10427,15 @@ } var oldW, dx; - var topOldStart = this._getRowTop(oldStart); - var dy = this._getRowTop(start) - topOldStart; + var oldH = ctxH - this.cellsTop - Math.abs(dy) - diffHeight; var scrollDown = (dy > 0 && oldH > 0); var y = this.cellsTop + (scrollDown ? dy : 0) + diffHeight; var lastRowHeight = (scrollDown && oldVRE_isPartial) ? ctxH - (this._getRowTop(oldEnd) - topOldStart + this.cellsTop + diffHeight) : 0; + this._startRtlRendering(); + //TODO рассмотреть все случаи, когда необходимо вычитать groupWidth if (x !== this.cellsLeft) { this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollHorizontal; @@ -9574,33 +10474,69 @@ // Очищаем область var clearTop = this.cellsTop + diffHeight + (scrollDown && moveHeight > 0 ? moveHeight : 0); var clearHeight = (moveHeight > 0) ? Math.abs(dy) + lastRowHeight : ctxH - (this.cellsTop + diffHeight); + let clearOffset = 0; + if (this.workbook.getSmoothScrolling() && (diffHeight + this._getRowTop(0)) !== clearTop) { + //need clear full row height + let firstDrawRow = vr.r1; + if (moveHeight > 0 && scrollDown) { + firstDrawRow = oldEnd + ((oldVRE_isPartial || (delta === 0)) ? 0 : 1); + } + + let firstDrawRowPos = this.getCellTopRelative(firstDrawRow, undefined, true); + if (firstDrawRowPos && clearTop > firstDrawRowPos) { + clearOffset = clearTop - firstDrawRowPos; + } + } ctx.setFillStyle(this.settings.cells.defaultState.background) - .fillRect(this.headersLeft - this.groupWidth, clearTop, ctxW, clearHeight); - this.drawingGraphicCtx.clearRect(this.headersLeft - this.groupWidth, clearTop, ctxW, clearHeight); + .fillRect(this.headersLeft - this.groupWidth, clearTop - clearOffset, ctxW, clearHeight + clearOffset); + this.drawingGraphicCtx.clearRect(this.headersLeft - this.groupWidth, clearTop - clearOffset, ctxW, clearHeight + clearOffset); this._updateDrawingArea(); // Дорисовываем необходимое - if (dy < 0 || vr.r2 !== oldEnd || oldVRE_isPartial || dx !== 0) { + if (dy < 0 || vr.r2 !== oldEnd || oldVRE_isPartial || dx !== 0 || (clearHeight !== 0 && this.workbook.getSmoothScrolling())) { var r1, r2; if (moveHeight > 0) { if (scrollDown) { - r1 = oldEnd + (oldVRE_isPartial ? 0 : 1); + r1 = oldEnd + ((oldVRE_isPartial || (delta === 0 && this.workbook.getSmoothScrolling())) ? 0 : 1); r2 = vr.r2; } else { r1 = vr.r1; - r2 = delta < 0 ? (vr.r1 + (oldVR.r1 - vr.r1 - 1)) : (vr.r1 - 1 - delta); + r2 = isReverse ? (vr.r1 + (oldVR.r1 - vr.r1 - 1)) : (vr.r1 - 1 - delta); } } else { r1 = vr.r1; r2 = vr.r2; } + + if (this.workbook.getSmoothScrolling() && r2 < AscCommon.gc_nMaxRow0) { + r2++; + } + if (r1 > AscCommon.gc_nMaxRow0) { + r1 = AscCommon.gc_nMaxRow0; + } + if (r2 > AscCommon.gc_nMaxRow0) { + r2 = AscCommon.gc_nMaxRow0; + } + if (this.workbook.getSmoothScrolling() && r2 < r1) { + r2 = r1; + } + + let startClip = function () { + if (t.workbook.getSmoothScrolling()) { + ctx.AddClipRect(t.headersLeft - t.groupWidth, clearTop - clearOffset, ctxW, clearHeight + clearOffset); + t.drawingGraphicCtx.AddClipRect && t.drawingGraphicCtx.AddClipRect(t.headersLeft - t.groupWidth, clearTop - clearOffset, ctxW, clearHeight + clearOffset); + } + }; + var range = new asc_Range(vr.c1, r1, vr.c2, r2); if (dx === 0) { + startClip(); this._drawRowHeaders(null, r1, r2); } else { // redraw all headres, because number of decades in row index has been changed this._drawRowHeaders(null); + startClip(); if (dx < 0) { // draw last column var r_; @@ -9614,15 +10550,15 @@ } if (0 < rFrozen) { r_ = new asc_Range(vr.c2, 0, vr.c2, rFrozen - 1); - offsetY = this._getRowTop(0) - this.cellsTop; + offsetY = this._getOffsetY(0, true); this._drawGrid(null, r_, /*offsetXForDraw*/undefined, offsetY); this._drawGroupData(null, r_, /*offsetXForDraw*/undefined, offsetY); this._drawCellsAndBorders(null, r_, /*offsetXForDraw*/undefined, offsetY); } } } - offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft - diffWidth; - offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop - diffHeight; + offsetX = this._getOffsetX() - diffWidth; + offsetY = this._getOffsetY() - diffHeight; this._drawGrid(null, range); if(dx !== 0) { this._drawGroupData(null); @@ -9636,7 +10572,7 @@ if (0 < cFrozen) { range.c1 = 0; range.c2 = cFrozen - 1; - offsetX = this._getColLeft(0) - this.cellsLeft; + offsetX = this._getOffsetX(0, true); this._drawGrid(null, range, offsetX); this._drawGroupData(null, range, offsetX); this._drawCellsAndBorders(null, range, offsetX); @@ -9644,22 +10580,52 @@ this.objectRender.updateRange(range); } } + + if (this.workbook.getSmoothScrolling()) { + ctx.RemoveClipRect(); + this.drawingGraphicCtx.RemoveClipRect && this.drawingGraphicCtx.RemoveClipRect(); + } + // Отрисовывать нужно всегда, вдруг бордеры this._drawFrozenPaneLines(); this._fixSelectionOfMergedCells(); this._drawSelection(); //this._cleanPagesModeData(); - if (reinitScrollY || (0 > delta && initRowsCount && this._initRowsCount())) { + /*if (!reinitScrollY && this.workbook.getSmoothScrolling()) { + reinitScrollY = oldEnd !== vr.r2; + }*/ + + let isNeedExpand = function () { + //we must init scroll, if expand scroll range(calculate new rows height) + //todo need review + let controller = t.workbook.controller; + let scrollStep = controller.settings.vscrollStep; + if (!t.workbook.Api.isMobileVersion && !AscCommon.AscBrowser.isMacOs && !initRowsCount && t.workbook.getSmoothScrolling() && !isReverse && t.model.getRowsCount() > + t.visibleRange.r2 && controller.vsbMax && scrollStep && controller.vsbMax < (t.getVerticalScrollRange() * scrollStep)) { + return true; + } + return false; + }; + + if ((reinitScrollY && !this.workbook.getSmoothScrolling()) || (reinitScrollY && this.workbook.getSmoothScrolling() && deltaCorrect !== currentScrollCorrect) || + (isReverse && initRowsCount && this._initRowsCount()) || (this.workbook.getSmoothScrolling() && initRowsCount && this.nRowsCount !== gc_nMaxRow) || isNeedExpand()) { this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollVertical; - } + } + + if (initRowsCount) { + this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollInitRowsColsCount; + } this._reinitializeScroll(); + this.handlers.trigger("onDocumentPlaceChanged"); if (editor && this.model.getSelection().activeCell.row >= rFrozen) { editor.move(); } + this._endRtlRendering(); + //ToDo this.drawDepCells(); this.cellCommentator.updateActiveComment(); this.cellCommentator.drawCommentCells(); @@ -9669,11 +10635,134 @@ return this; }; + + //smooth scroll + WorksheetView.prototype.setScrollCorrect = function (val, needDraw) { + this.scrollCorrect = val; + if (needDraw) { + this.draw(); + } + }; + + WorksheetView.prototype.getScrollCorrect = function (units) { + var u = units >= 0 && units <= 3 ? units : 0; + return this.scrollCorrect ? (this.scrollCorrect * asc_getcvt(0/*px*/, u, this._getPPIX())) : 0; + }; + + WorksheetView.prototype.setHorizontalScrollCorrect = function (val, needDraw) { + this.horizontalScrollCorrect = val; + if (needDraw) { + this.draw(); + } + }; + + WorksheetView.prototype.getHorizontalScrollCorrect = function (units) { + var u = units >= 0 && units <= 3 ? units : 0; + return this.horizontalScrollCorrect ? (this.horizontalScrollCorrect * asc_getcvt(0/*px*/, u, this._getPPIX())) : 0; + }; + + + + WorksheetView.prototype.isScrollCorrect = function () { + return !!this.scrollCorrect; + }; + WorksheetView.prototype.scrollHorizontal = function (delta, editor, initColsCount) { var vr = this.visibleRange; var fixStartCol = new asc_Range(vr.c1, vr.r1, vr.c1, vr.r2); + + let isReverse = delta < 0; + let unitDeltaStep = Asc.round(this.getHScrollStep()); + + let defaultScrollPxStep = unitDeltaStep * Math.abs(delta); + if (defaultScrollPxStep < 1) { + return; + } + defaultScrollPxStep = Math.ceil(defaultScrollPxStep); + + let deltaCols = 0, deltaCorrect = 0; + let currentScrollCorrect = this.getHorizontalScrollCorrect(); + + let firstCol = vr.c1; + let startColWidth = this._getColumnWidth(firstCol); + + var offsetX, offsetY, diffWidth = 0, diffHeight = 0, cFrozen = 0, rFrozen = 0; + if (this.topLeftFrozenCell) { + cFrozen = this.topLeftFrozenCell.getCol0(); + rFrozen = this.topLeftFrozenCell.getRow0(); + diffWidth = this._getColLeft(cFrozen) - this._getColLeft(0); + diffHeight = this._getRowTop(rFrozen) - this._getRowTop(0); + } + + if (this.workbook.getSmoothScrolling()) { + //in px + if (!isReverse) { + //down scroll + if (currentScrollCorrect + defaultScrollPxStep >= startColWidth) { + //go to the next row + //calculate part of row + new rows delta + + let allScrollWidth = currentScrollCorrect + defaultScrollPxStep; + let scrollWidth = 0; + for (let i = firstCol; i < gc_nMaxCol0; i++) { + let _colWidth = this._getColumnWidth(i); + scrollWidth += _colWidth; + if (scrollWidth >= allScrollWidth) { + if (scrollWidth === allScrollWidth) { + deltaCols++; + } else { + deltaCorrect = _colWidth - (scrollWidth - allScrollWidth); + } + break; + } + deltaCols++; + } + } else { + //stay in wr.r1 + deltaCorrect = defaultScrollPxStep + currentScrollCorrect; + deltaCols = 0; + } + } else { + //up scroll + if (currentScrollCorrect - defaultScrollPxStep < 0) { + //go to the next row + //calculate part of row + new rows delta + + let allScrollWidth = defaultScrollPxStep - currentScrollCorrect; + let scrollWidth = 0; + /*if (currentScrollCorrect !== 0) { + deltaRows--; + }*/ + for (let i = firstCol - 1; i >= 0; i--) { + let _rowHeight = this._getColumnWidth(i); + scrollWidth += _rowHeight; + if (scrollWidth >= allScrollWidth) { + if (scrollWidth === allScrollWidth) { + deltaCols--; + } else { + //if (deltaRows === 0) { + deltaCols--; + //} + deltaCorrect = (scrollWidth - allScrollWidth); + } + break; + } + deltaCols--; + } + + + } else { + //stay in vr.r1 + deltaCorrect = currentScrollCorrect - defaultScrollPxStep; + deltaCols = 0; + } + } + + delta = deltaCols; + } + this._fixSelectionOfHiddenCells(delta >= 0 ? +1 : -1, 0, fixStartCol); - var start = this._calcCellPosition(fixStartCol.c1, vr.r1, delta, 0).col; + var start = this._calcCellPosition(this.workbook.getSmoothScrolling() ? vr.c1 : fixStartCol.c1, vr.r1, delta, 0).col; fixStartCol.assign(start, vr.r1, start, vr.r2); this._fixSelectionOfHiddenCells(delta >= 0 ? +1 : -1, 0, fixStartCol); this._fixVisibleRange(fixStartCol); @@ -9684,7 +10773,7 @@ } start = fixStartCol.c1; - if (start === vr.c1) { + if (start === vr.c1 && (!this.workbook.getSmoothScrolling() || (this.workbook.getSmoothScrolling() && currentScrollCorrect === deltaCorrect))) { if (reinitScrollX) { this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollHorizontal; this._reinitializeScroll(); @@ -9693,6 +10782,7 @@ } if (!this.notUpdateRowHeight) { + this.cleanHighlightedHeaders(); this.cleanSelection(); this.cellCommentator.cleanSelectedComment(); } @@ -9702,25 +10792,22 @@ var ctxH = ctx.getHeight(); var oldStart = vr.c1; var oldEnd = vr.c2; + var leftOldStart = this._getColLeft(oldStart); - var dx = this._getColLeft(start) - leftOldStart; - var offsetX, offsetY, diffWidth = 0, diffHeight = 0; + var dx = (this._getColLeft(start) + deltaCorrect - (leftOldStart + currentScrollCorrect)); + var oldW = ctxW - this.cellsLeft - Math.abs(dx); var scrollRight = (dx > 0 && oldW > 0); var x = this.cellsLeft + (scrollRight ? dx : 0); var y = this.headersTop - this.groupHeight; - var cFrozen = 0, rFrozen = 0; - if (this.topLeftFrozenCell) { - rFrozen = this.topLeftFrozenCell.getRow0(); - cFrozen = this.topLeftFrozenCell.getCol0(); - diffWidth = this._getColLeft(cFrozen) - this._getColLeft(0); - diffHeight = this._getRowTop(rFrozen) - this._getRowTop(0); - x += diffWidth; - oldW -= diffWidth; - } + x += diffWidth; + oldW -= diffWidth; var oldVCE_isPartial = this._isColDrawnPartially(vr.c2, vr.c1, diffWidth); var oldVR = vr.clone(); + + this.workbook.getSmoothScrolling() && this.setHorizontalScrollCorrect(deltaCorrect); + // ToDo стоит тут переделать весь scroll vr.c1 = start; this._updateVisibleColsCount(); @@ -9745,10 +10832,15 @@ var lastColWidth = (scrollRight && oldVCE_isPartial) ? ctxW - (this._getColLeft(oldEnd) - leftOldStart + this.cellsLeft + diffWidth) : 0; + + this._startRtlRendering(); + this._startRtlDrawingRendering(); + + // Перемещаем область var moveWidth = oldW - lastColWidth; if (moveWidth > 0) { - ctx.drawImage(ctx.getCanvas(), x, y, moveWidth, ctxH, x - dx, y, moveWidth, ctxH); + ctx.drawImage(ctx.getCanvas(), x + this.getRightToLeftOffset(), y, moveWidth, ctxH, x - dx + this.getRightToLeftOffset(), y, moveWidth, ctxH); // Заглушка для safari (http://bugzilla.onlyoffice.com/show_bug.cgi?id=25546). Режим 'copy' сначала затирает, а // потом рисует (а т.к. мы рисуем сами на себе, то уже картинка будет пустой) @@ -9761,18 +10853,38 @@ // Очищаем область var clearLeft = this.cellsLeft + diffWidth + (scrollRight && moveWidth > 0 ? moveWidth : 0); var clearWidth = (moveWidth > 0) ? Math.abs(dx) + lastColWidth : ctxW - (this.cellsLeft + diffWidth); + let clearOffset = 0; + if (this.workbook.getSmoothScrolling() && (diffWidth + this._getColLeft(0)) !== clearLeft) { + //need clear full row height + let firstDrawCol = vr.c1; + if (moveWidth > 0 && scrollRight) { + firstDrawCol = oldEnd + ((oldVCE_isPartial || (delta === 0)) ? 0 : 1); + } + + let firstDrawColPos = this.getCellLeftRelative(firstDrawCol, undefined, true); + if (firstDrawColPos && clearLeft > firstDrawColPos) { + clearOffset = clearLeft - firstDrawColPos; + } + } + ctx.setFillStyle(this.settings.cells.defaultState.background) - .fillRect(clearLeft, y, clearWidth, ctxH); - this.drawingGraphicCtx.clearRect(clearLeft, y, clearWidth, ctxH); + .fillRect(clearLeft - clearOffset + this.getRightToLeftOffset(), y, clearWidth + clearOffset, ctxH); + this.drawingGraphicCtx.clearRect(clearLeft - clearOffset, y, clearWidth + clearOffset, ctxH); this._updateDrawingArea(); + + if (this.workbook.getSmoothScrolling()) { + ctx.AddClipRect(clearLeft - clearOffset + this.getRightToLeftOffset(), y, clearWidth + clearOffset + this.getRightToLeftOffset(), ctxH); + this.drawingGraphicCtx.AddClipRect && this.drawingGraphicCtx.AddClipRect(clearLeft - clearOffset, y, clearWidth + clearOffset + this.getRightToLeftOffset(), ctxH); + } + this._endRtlDrawingRendering(); // Дорисовываем необходимое - if (dx < 0 || vr.c2 !== oldEnd || oldVCE_isPartial) { + if (dx < 0 || vr.c2 !== oldEnd || oldVCE_isPartial || (clearWidth !== 0 && this.workbook.getSmoothScrolling())) { var c1, c2; if (moveWidth > 0) { if (scrollRight) { - c1 = oldEnd + (oldVCE_isPartial ? 0 : 1); + c1 = oldEnd + ((oldVCE_isPartial || (delta === 0 && this.workbook.getSmoothScrolling())) ? 0 : 1); c2 = vr.c2; } else { c1 = vr.c1; @@ -9782,9 +10894,23 @@ c1 = vr.c1; c2 = vr.c2; } + + if (this.workbook.getSmoothScrolling() && c2 < AscCommon.gc_nMaxCol0) { + c2++; + } + if (c1 > AscCommon.gc_nMaxCol0) { + c1 = AscCommon.gc_nMaxCol0; + } + if (c2 > AscCommon.gc_nMaxCol0) { + c2 = AscCommon.gc_nMaxCol0; + } + if (this.workbook.getSmoothScrolling() && c2 < c1) { + c2 = c1; + } + var range = new asc_Range(c1, vr.r1, c2, vr.r2); - offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft - diffWidth; - offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop - diffHeight; + offsetX = this._getOffsetX() - diffWidth; + offsetY = this._getOffsetY() - diffHeight; this._drawColumnHeaders(null, c1, c2); this._drawGrid(null, range); this._drawGroupData(null, range, undefined, undefined, true); @@ -9794,7 +10920,7 @@ if (rFrozen) { range.r1 = 0; range.r2 = rFrozen - 1; - offsetY = this._getRowTop(0) - this.cellsTop; + offsetY = this._getOffsetY(0, true); this._drawGrid(null, range, undefined, offsetY); this._drawGroupData(null, range, undefined, offsetY, true); this._drawCellsAndBorders(null, range, undefined, offsetY); @@ -9803,35 +10929,64 @@ } } + if (this.workbook.getSmoothScrolling()) { + ctx.RemoveClipRect(); + this.drawingGraphicCtx.RemoveClipRect && this.drawingGraphicCtx.RemoveClipRect(); + } + // Отрисовывать нужно всегда, вдруг бордеры this._drawFrozenPaneLines(); this._fixSelectionOfMergedCells(); this._drawSelection(); //this._cleanPagesModeData(); - if (reinitScrollX || (0 > delta && initColsCount && this._initColsCount())) { + if (!reinitScrollX && this.workbook.getSmoothScrolling()) { + reinitScrollX = oldEnd !== vr.c2; + } + + if ((reinitScrollX && !this.workbook.getSmoothScrolling()) || (reinitScrollX && this.workbook.getSmoothScrolling() && deltaCorrect !== currentScrollCorrect) || + (0 > delta && initColsCount && this._initColsCount()) || (this.workbook.getSmoothScrolling() && initColsCount && this.nColsCount !== gc_nMaxCol)) { if (reinitScrollX && (start - cFrozen) === 0 && 0 > delta && initColsCount) { this._initColsCount(); } this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollHorizontal; - } + } + if (initColsCount) { + this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollInitRowsColsCount; + } this._reinitializeScroll(); + this.handlers.trigger("onDocumentPlaceChanged"); if (editor && this.model.getSelection().activeCell.col >= cFrozen) { editor.move(); } + this._endRtlRendering(); + //ToDo this.drawDepCells(); this.cellCommentator.updateActiveComment(); this.cellCommentator.drawCommentCells(); window['AscCommon'].g_specialPasteHelper.SpecialPasteButton_Update_Position(); this.handlers.trigger("toggleAutoCorrectOptions", true); + //this.model.updateTopLeftCell(this.visibleRange); return this; }; + WorksheetView.prototype.executeScrollDefaultStep = function (callback) { + let oView = this.workbook && this.workbook.controller && this.workbook.controller.settings; + let defaultStep = 10; + let realVScrollPxStep = this.vScrollPxStep; + let realHScrollPxStep = this.hScrollPxStep; + this.vScrollPxStep = oView ? oView.vscrollStep : defaultStep; + this.hScrollPxStep = oView ? oView.hscrollStep : defaultStep; + callback(); + this.vScrollPxStep = realVScrollPxStep; + this.hScrollPxStep = realHScrollPxStep; + }; + // ----- Selection ----- // x,y - абсолютные координаты относительно листа (без учета заголовков) @@ -9841,8 +10996,13 @@ result.col = result.row = null; } - x += this.cellsLeft; + x += this.getRightToLeft() ? 0 : this.cellsLeft; y += this.cellsTop; + + if (this.getRightToLeft()) { + x = this.getCtxWidth() - x; + } + if (!skipCol) { sum = this._getColLeft(this.nColsCount); if (sum < x) { @@ -9853,7 +11013,7 @@ sum += (result.col - this.nColsCount) * (this.defaultColWidthPx * this.getZoom(true) * this.getRetinaPixelRatio()); } } else { - sum = this.cellsLeft; + sum = this.getRightToLeft() ? 0 : this.cellsLeft; for (i = 0; i < this.nColsCount; ++i) { size = this._getColumnWidth(i); if (sum + size > x) { @@ -9905,12 +11065,17 @@ * @returns {*} * @private */ - WorksheetView.prototype._findColUnderCursor = function (x, canReturnNull, half) { + WorksheetView.prototype._findColUnderCursor = function (x, canReturnNull, half, ignoreRtl) { var activeCellCol = half ? this._getSelection().activeCell.col : -1; var w, dx = 0; var c = this.visibleRange.c1; - var offset = this._getColLeft(c) - this.cellsLeft; - var c2, x1, x2, cFrozen, widthDiff = 0; + var offset = this._getOffsetX(c); + var c2, x1, x2, cFrozen, widthDiff = -this.getHorizontalScrollCorrect(); + + if (!ignoreRtl && this.getRightToLeft()) { + x = this.getCtxWidth() - x; + } + if (x >= this.cellsLeft) { if (this.topLeftFrozenCell) { cFrozen = this.topLeftFrozenCell.getCol0(); @@ -9918,6 +11083,8 @@ if (x < this.cellsLeft + widthDiff && 0 !== widthDiff) { c = 0; widthDiff = 0; + } else { + widthDiff -= this.getHorizontalScrollCorrect(); } } for (x1 = this.cellsLeft + widthDiff, c2 = this.nColsCount - 1; c <= c2; ++c, x1 = x2) { @@ -9977,8 +11144,8 @@ var activeCellRow = half ? this._getSelection().activeCell.row : -1; var h, dy = 0; var r = this.visibleRange.r1; - var offset = this._getRowTop(r) - this.cellsTop; - var r2, y1, y2, rFrozen, heightDiff = 0; + var offset = /*this._getRowTop(r) - this.cellsTop*/this._getOffsetY(r); + var r2, y1, y2, rFrozen, heightDiff = -this.getScrollCorrect(); if (y >= this.cellsTop) { if (this.topLeftFrozenCell) { rFrozen = this.topLeftFrozenCell.getRow0(); @@ -9986,6 +11153,8 @@ if (y < this.cellsTop + heightDiff && 0 !== heightDiff) { r = 0; heightDiff = 0; + } else { + heightDiff -= this.getScrollCorrect(); } } for (y1 = this.cellsTop + heightDiff, r2 = this.nRowsCount - 1; r <= r2; ++r, y1 = y2) { @@ -10339,6 +11508,9 @@ }; WorksheetView.prototype.getCursorTypeFromXY = function (x, y) { + if (this.getRightToLeft()) { + x = this.getCtxWidth() - x; + } var canEdit = this.workbook.canEdit(); var viewMode = this.handlers.trigger('getViewMode'); this.handlers.trigger("checkLastWork"); @@ -10396,8 +11568,7 @@ lockRangePosTop: lockRangePosTop }; } - - var drawingInfo = this.objectRender.checkCursorDrawingObject(x, y); + var drawingInfo = this.objectRender.checkCursorDrawingObject(this.getRightToLeft() ? this.getCtxWidth() - x : x, y); if ((asc["editor"].isStartAddShape || asc["editor"].isInkDrawerOn()) && AscCommonExcel.CheckIdSatetShapeAdd(this.objectRender.controller.curState)) { return {cursor: asc["editor"].isInkDrawerOn() ? kCurDefault : kCurFillHandle , target: c_oTargetType.Shape, col: -1, row: -1}; @@ -10457,8 +11628,8 @@ } var cFrozen = -1, rFrozen = -1; - offsetX = this._getColLeft(this.visibleRange.c1) - this.cellsLeft; - offsetY = this._getRowTop(this.visibleRange.r1) - this.cellsTop; + offsetX = this._getOffsetX(); + offsetY = this._getOffsetY(); if (this.topLeftFrozenCell) { cFrozen = this.topLeftFrozenCell.getCol0(); rFrozen = this.topLeftFrozenCell.getRow0(); @@ -10493,7 +11664,7 @@ if (readyMode && y <= this.cellsTop && this.groupHeight && y < this.groupHeight) { c = null; if(x > this.groupWidth + this.headersWidth) { - c = this._findColUnderCursor(x, true); + c = this._findColUnderCursor(x, true, null, true); } col = -1; if (c) { @@ -10510,7 +11681,7 @@ let isMobileVersion = this.workbook && this.workbook.Api && this.workbook.Api.isMobileVersion; var epsChangeSize = AscCommon.AscBrowser.convertToRetinaValue(3 * AscCommon.global_mouseEvent.KoefPixToMM, true); - if (x <= this.cellsLeft && y >= this.cellsTop && x >= this.headersLeft) { + if (x <= this.cellsLeft && y >= this.cellsTop && x >= this.headersLeft + this.getRightToLeftOffset()) { r = this._findRowUnderCursor(y, true); if (r === null) { return oResDefault; @@ -10550,7 +11721,7 @@ } if (y <= this.cellsTop && x >= this.cellsLeft && y >= this.headersTop) { - c = this._findColUnderCursor(x, true); + c = this._findColUnderCursor(x, true, null, true); if (c === null) { return oResDefault; } @@ -10595,7 +11766,7 @@ } } if (y <= this.cellsTop && x >= this.cellsLeft) { - c = this._findColUnderCursor(x, true); + c = this._findColUnderCursor(x, true, null, true); if (c !== null) { target = c_oTargetType.ColumnHeader; col = c.col; @@ -10647,7 +11818,7 @@ } if (x > this.cellsLeft && y > this.cellsTop) { - c = this._findColUnderCursor(x, true); + c = this._findColUnderCursor(x, true, null, true); r = this._findRowUnderCursor(y, true); if (c === null || r === null) { return oResDefault; @@ -10979,11 +12150,11 @@ WorksheetView.prototype._getRangeByXY = function (x, y) { var c1, r1, c2, r2; - if (x < this.cellsLeft && y < this.cellsTop) { + if (this.checkRtl(x) < this.cellsLeft && y < this.cellsTop) { c1 = r1 = 0; c2 = gc_nMaxCol0; r2 = gc_nMaxRow0; - } else if (x < this.cellsLeft) { + } else if (this.checkRtl(x) < this.cellsLeft) { r1 = r2 = this._findRowUnderCursor(y).row; c1 = 0; c2 = gc_nMaxCol0; @@ -11263,17 +12434,17 @@ var scroll = 0; if (arn.r1 < vr.r1) { - scroll = arn.r1 - vr.r1; + scroll = this._rowDiffToSmooth(arn.r1, vr.r1); } else if (arn.r1 >= vr.r2) { this.nRowsCount = arn.r2 + 1; this._prepareCellTextMetricsCache(new asc_Range(vr.c1, vr.r2, vr.c2, arn.r2 + 1)); scroll = this.getVerticalScrollRange(true); - if (scroll > arn.r1) { - scroll = arn.r1; + if (scroll > this._rowToSmooth(arn.r1)) { + scroll = this._rowToSmooth(arn.r1); } - scroll -= vr.r1 - (this.topLeftFrozenCell ? this.topLeftFrozenCell.getRow0() : 0); + scroll -= this._rowDiffToSmooth(vr.r1, (this.topLeftFrozenCell ? this.topLeftFrozenCell.getRow0() : 0)); this.nRowsCount = nRowsCount; } if (scroll) { @@ -11283,14 +12454,14 @@ scroll = 0; if (arn.c1 < vr.c1) { - scroll = arn.c1 - vr.c1; + scroll = this._colDiffToSmooth(arn.c1, vr.c1); } else if (arn.c1 >= vr.c2) { this.setColsCount(arn.c2 + 1 + 1); scroll = this.getHorizontalScrollRange(); - if (scroll > arn.c1) { - scroll = arn.c1; + if (scroll > this._colToSmooth(arn.c1)) { + scroll = this._colToSmooth(arn.c1); } - scroll -= vr.c1 - (this.topLeftFrozenCell ? this.topLeftFrozenCell.getCol0() : 0); + scroll -= this._colDiffToSmooth(vr.c1, (this.topLeftFrozenCell ? this.topLeftFrozenCell.getCol0() : 0)); this.setColsCount(nColsCount); } if (scroll) { @@ -11642,6 +12813,120 @@ AscCommonExcel.referenceType.A : AscCommonExcel.referenceType.R); }; + WorksheetView.prototype.convertOffsetToSmooth = function (offset) { + if (!this.workbook.getSmoothScrolling()) { + return offset; + } + + let vr = this.visibleRange; + if (offset.col !== 0) { + if (offset.col < 0) { + //left + let x1 = this.getCellLeft(vr.c1); + let x2 = this.getCellLeft(Math.max(vr.c1 + offset.col, 0)); + let rowsWidth = x1 - x2; + let unitDeltaStep = this.getHScrollStep(); + offset.col = -rowsWidth / unitDeltaStep; + offset.col -= this.getHorizontalScrollCorrect() / unitDeltaStep; + } else { + //down + /*let x1 = this.getCellLeft(vr.c2); + let x2 = this.getCellLeft(vr.c2 + offset.col); + let rowsWidth = x2 - x1; + let unitDeltaStep = Asc.round(this.defaultRowHeightPx * this.getZoom()); + offset.col = rowsWidth / unitDeltaStep; + offset.col += this.getHorizontalScrollCorrect() / unitDeltaStep;*/ + } + //this.setHorizontalScrollCorrect(0); + } + if (offset.row !== 0) { + if (offset.row < 0) { + //up + let y1 = this.getCellTop(vr.r1); + let y2 = this.getCellTop(Math.max(vr.r1 + offset.row, 0)); + let rowsHeight = y1 - y2; + let unitDeltaStep = this.getVScrollStep(); + offset.row = -rowsHeight / unitDeltaStep; + offset.row -= this.getScrollCorrect() / unitDeltaStep; + } else { + //down + /*let y1 = this.getCellTop(vr.r2); + let y2 = this.getCellTop(vr.r2 + offset.row); + let rowsHeight = y2 - y1; + let unitDeltaStep = Asc.round(this.defaultRowHeightPx * this.getZoom()); + offset.row = rowsHeight / unitDeltaStep; + offset.row += this.getScrollCorrect() / unitDeltaStep;*/ + } + //this.setScrollCorrect(0); + } + return offset; + }; + + WorksheetView.prototype._colDiffToSmooth = function (from, to) { + if (!this.workbook.getSmoothScrolling()) { + return from - to; + } + + let x1 = this.getCellLeft(from); + let x2 = this.getCellLeft(to); + let colsWidth = x1 - x2; + let unitDeltaStep = this.getHScrollStep(); + let res = colsWidth / unitDeltaStep; + res = res < 0 ? res - this.getHorizontalScrollCorrect() / unitDeltaStep : res + this.getHorizontalScrollCorrect() / unitDeltaStep; + + return res; + }; + + WorksheetView.prototype._rowDiffToSmooth = function (from, to) { + if (!this.workbook.getSmoothScrolling()) { + return from - to; + } + + let y1 = this.getCellTop(from); + let y2 = this.getCellTop(to); + let rowsHeight = y1 - y2; + let unitDeltaStep = this.getVScrollStep(); + let res = rowsHeight / unitDeltaStep; + res = res < 0 ? res - this.getScrollCorrect() / unitDeltaStep : res + this.getScrollCorrect() / unitDeltaStep; + + return res; + }; + + WorksheetView.prototype._colToSmooth = function (val) { + if (!this.workbook.getSmoothScrolling()) { + return val; + } + + let x1 = this.getCellLeft(val); + let unitDeltaStep = this.getHScrollStep(); + return x1 / unitDeltaStep; + }; + + WorksheetView.prototype._rowDiffToSmooth = function (from, to) { + if (!this.workbook.getSmoothScrolling()) { + return from - to; + } + + let y1 = this.getCellTop(from); + let y2 = this.getCellTop(to); + let rowsHeight = y1 - y2; + let unitDeltaStep = this.getVScrollStep(); + let res = rowsHeight / unitDeltaStep; + res = res < 0 ? res - this.getScrollCorrect() / unitDeltaStep : res + this.getScrollCorrect() / unitDeltaStep; + + return res; + }; + + WorksheetView.prototype._rowToSmooth = function (val) { + if (!this.workbook.getSmoothScrolling()) { + return val; + } + + let y1 = this.getCellTop(val); + let unitDeltaStep = this.getVScrollStep(); + return y1 / unitDeltaStep; + }; + WorksheetView.prototype.getSelectionRangeValue = function (absName, addSheet) { return this.getSelectionRangeValues(absName, addSheet).join(AscCommon.FormulaSeparators.functionArgumentSeparator); }; @@ -12014,13 +13299,20 @@ var xL = this._getColLeft(col); var yL = this._getRowTop(row); // Пересчитываем X и Y относительно видимой области - xL -= (this._getColLeft(vrCol) - this.cellsLeft); - yL -= (this._getRowTop(vrRow) - this.cellsTop); + xL -= (this._getOffsetX(vrCol)); + yL -= (this._getOffsetY(vrRow)); // Пересчитываем X и Y относительно закрепленной области xL += offsetX; yL += offsetY; + if (this.getRightToLeft()) { + xL = this.getCtxWidth() - xL; + } + var width = this._getColumnWidth(col); + if (this.getRightToLeft()) { + width = -width; + } var height = this._getRowHeight(row); if ( AscBrowser.isCustomScaling() ) { @@ -12074,7 +13366,7 @@ window['AscCommon'].g_specialPasteHelper.SpecialPasteButton_Update_Position(); }; - WorksheetView.prototype.setSelection = function (range) { + WorksheetView.prototype.setSelection = function (range, onlyCells) { if (!Array.isArray(range)) { range = [AscCommonExcel.Range.prototype.createFromBBox(this.model, range)]; } @@ -12100,7 +13392,7 @@ this.model.selectionRange.update(); } - this._fixSelectionOfMergedCells(); + this._fixSelectionOfMergedCells(null, onlyCells); this.updateSelectionWithSparklines(); this._updateSelectionNameAndInfo(); @@ -12269,7 +13561,7 @@ // Не попали в выделение (меняем первую точку) this.cleanSelection(); this.model.selectionRange.clean(); - this.setSelection(range); + this.setSelection(range, true); this._drawSelection(); this._updateSelectionNameAndInfo(); @@ -12649,10 +13941,10 @@ var ar = table ? table.Ref.clone() : this.model.getSelection().getLast().clone(true); // Получаем координаты левого верхнего угла выделения - var xL = this._getColLeft(ar.c1); + var xL = this._getColLeft(ar.c1, true); var yL = this._getRowTop(ar.r1); // Получаем координаты правого нижнего угла выделения - var xR = this._getColLeft(ar.c2 + 1); + var xR = this._getColLeft(ar.c2 + 1, true); var yR = this._getRowTop(ar.r2 + 1); // range для пересчета видимой области @@ -12669,7 +13961,7 @@ var dRow; // Пересчитываем X и Y относительно видимой области - x += (this._getColLeft(this.visibleRange.c1) - this.cellsLeft); + x += (this._getColLeft(this.visibleRange.c1, true) - this.cellsLeft); y += (this._getRowTop(this.visibleRange.r1) - this.cellsTop); // Вычисляем расстояние от (x, y) до (xL, yL) @@ -13934,8 +15226,16 @@ } if (shiftMove) { - arnFrom = lastSelection; arnTo = t.model.selectionRange.getLast().clone(); + if (lastSelection.getType() === c_oAscSelectionType.RangeCol && lastSelection.c1 > arnTo.c1) { + let diff = arnFrom.c2 - arnFrom.c1 + 1; + arnFrom = new asc_Range(lastSelection.c1 + diff, lastSelection.r1, lastSelection.c2 + diff, lastSelection.r2); + } else if (lastSelection.getType() === c_oAscSelectionType.RangeRow && lastSelection.r1 > arnTo.r1) { + let diff = arnFrom.r2 - arnFrom.r1 + 1; + arnFrom = new asc_Range(lastSelection.c1, lastSelection.r1 + diff, lastSelection.c2, lastSelection.r2 + diff); + } else { + arnFrom = lastSelection; + } } //***array-formula*** @@ -13986,11 +15286,13 @@ t.model.selectionRange.getLast().assign(lastSelection.c1, rowStart, lastSelection.c2, rowEnd); } - if (colByX != null || rowByY != null) { + if (t.model.selectionRange.getLast().isEqual(lastSelection) !== true &&(colByX != null || rowByY != null)) { History.Create_NewPoint(); History.StartTransaction(); - let insProp = colByX ? c_oAscInsertOptions.InsertCellsAndShiftRight : c_oAscInsertOptions.InsertCellsAndShiftDown; + let insProp = null != colByX ? c_oAscInsertOptions.InsertCellsAndShiftRight : c_oAscInsertOptions.InsertCellsAndShiftDown; this.changeWorksheet("insCell", insProp, doMove, true); + } else { + this._cleanSelectionMoveRange(); } } else { doMove(true); @@ -14261,18 +15563,19 @@ return; } - var t = this; - var checkRange = []; - var activeCell = this.model.selectionRange.activeCell.clone(); - var arn = this.model.selectionRange.getLast().clone(true); + const t = this; + const ws = t.model; + let checkRange = []; + let activeCell = this.model.selectionRange.activeCell.clone(); + let arn = this.model.selectionRange.getLast().clone(true); - var revertSelection = function () { + const revertSelection = function () { if (val.originalSelectBeforePaste && val.originalSelectBeforePaste.ranges) { t.model.selectionRange.ranges = val.originalSelectBeforePaste.ranges; } }; - var onSelectionCallback = function (isSuccess) { + const onSelectionCallback = function (isSuccess) { if (false === isSuccess) { AscCommonExcel.g_clipboardExcel.pasteProcessor.pasteCallBack = null; return; @@ -14302,7 +15605,7 @@ return border; } - var checkIndent = function (_range) { + const checkIndent = function (_range) { if (_range) { var _align = _range.getAlign(); if (_align && _align.getIndent && 0 != _align.getIndent()) { @@ -14312,6 +15615,7 @@ return false; }; + History.Create_NewPoint(); History.StartTransaction(); @@ -14528,7 +15832,39 @@ t.handlers.trigger("slowOperation", true); } /* отключаем отрисовку на случай необходимости пересчета ячеек, заносим ячейку, при необходимости в список перерисовываемых */ + t.model.workbook.dependencyFormulas.lockRecal(); + + if (AscCommonExcel.bIsSupportDynamicArrays) { + //***dynamic array-formula*** + let changedDynamicArraysList; + // checking affected arrays only for cases of deleting values ​​in cells + if (val === c_oAscCleanOptions.All || val === c_oAscCleanOptions.Text || val === c_oAscCleanOptions.Formula) { + changedDynamicArraysList = ws.getChangedArrayList(); + if (changedDynamicArraysList) { + // go through changed dynamic arrays, and delete all|partitional values? + for (let array in changedDynamicArraysList) { + let arrayData = changedDynamicArraysList[array]; + let formula = arrayData.formula; + let dynamicbbox = arrayData.range; + let range = (formula && formula.aca && formula.ca) ? t.model.getRange3(dynamicbbox.r1, dynamicbbox.c1, dynamicbbox.r1, dynamicbbox.c1) : t.model.getRange3(dynamicbbox.r1, dynamicbbox.c1, dynamicbbox.r2, dynamicbbox.c2); + // todo create clear function for cells (clearRange?) + if (arrayData.doDelete) { + // delete all cells + range.cleanText(); + let listenerId = arrayData.formula && arrayData.formula.getListenerId(); + // remove from volatilate listeners + ws.workbook.dependencyFormulas.endListeningVolatileArray(listenerId); + } else if (arrayData.doRecalc) { + // delete all cells except the first one + range.cleanTextExceptFirst(); + ws.workbook.dependencyFormulas.addToVolatileArrays(formula); + } + } + ws.clearChangedArrayList(); + } + } + } switch(val) { case c_oAscCleanOptions.All: @@ -14563,6 +15899,10 @@ break; } + // recalculate all volatile arrays on page + t.model.recalculateVolatileArrays(); + + t.model.excludeHiddenRows(false); // Если нужно удалить автофильтры - удаляем @@ -14736,11 +16076,8 @@ return false; } - for (var j = 0; j < checkPasteRange.length; j++) { - var _checkRange = checkPasteRange[j]; - /*if () { - - }*/ + for (let j = 0; j < checkPasteRange.length; j++) { + let _checkRange = checkPasteRange[j]; if (this.intersectionFormulaArray(_checkRange)) { t.handlers.trigger("onErrorEvent", c_oAscError.ID.CannotChangeFormulaArray, c_oAscError.Level.NoCritical); revertSelection(); @@ -15178,6 +16515,25 @@ } else if (AscCH.historyitem_Worksheet_SetShowFormulas === type) { t.model.setShowFormulas(val); fullUpdate = true; + } else if (AscCH.historyitem_Worksheet_SetRightToLeft === type) { + t.model.setRightToLeft(val); + t.workbook.checkScrollRtl(val); + if (t.objectRender) { + t.objectRender.updateDrawingsTransform({target: c_oTargetType.ColumnResize, col: 0}); + let drawings = t.objectRender.controller.getDrawingObjects(); + for (var i = 0; i < drawings.length; ++i) { + if (!drawings[i].group) { + AscFormat.CheckSpPrXfrm3(drawings[i], true); + } else { + AscFormat.CheckSpPrXfrm(drawings[i], true); + } + } + t.objectRender.controller.recalculate(true); + } + t.model.workbook.handlers.trigger("asc_onHideMathTrack"); + t.model.workbook.handlers.trigger("asc_onHideSpecialPasteOptions"); + t.model.workbook.handlers.trigger("asc_onHideComment"); + fullUpdate = true; } else { t.model.setDisplayGridlines(val); } @@ -15188,7 +16544,11 @@ } }; - this._isLockedAll(onChangeSheetViewSettings); + if (AscCH.historyitem_Worksheet_SetRightToLeft === type) { + onChangeSheetViewSettings(true); + } else { + this._isLockedAll(onChangeSheetViewSettings); + } }; WorksheetView.prototype.changeWorksheet = function (prop, val, callback, lockDraw) { @@ -16765,19 +18125,23 @@ }; WorksheetView.prototype._saveCellValueAfterEdit = function (c, val, flags, isNotHistory, lockDraw) { - var bbox = c.bbox; - var t = this; + const t = this; + const ws = t.model + let bbox = c.bbox; - var ctrlKey = flags && flags.ctrlKey; - var shiftKey = flags && flags.shiftKey; - var applyByArray = ctrlKey && shiftKey; + let ctrlKey = flags && flags.ctrlKey; + let shiftKey = flags && flags.shiftKey; + let applyByArray = ctrlKey && shiftKey; //t.model.workbook.dependencyFormulas.lockRecal(); + let arrayCannotExpand; // flag, needed to avoid selecting the entire expected dynamic range in situations where the array cannot open + //***array-formula*** - var changeRangesIfArrayFormula = function() { + const changeRangesIfArrayFormula = function() { if(ctrlKey) { //TODO есть баг с тем, что не лочатся все ячейки при данном действии - c = t.getSelectedRange(); + // c = dynamicSelectionRange && !arrayCannotExpand ? t._getRange(dynamicSelectionRange.c1, dynamicSelectionRange.r1, dynamicSelectionRange.c2, dynamicSelectionRange.r2) : t.getSelectedRange(); + c = dynamicSelectionRange ? t._getRange(dynamicSelectionRange.c1, dynamicSelectionRange.r1, dynamicSelectionRange.c2, dynamicSelectionRange.r2) : t.getSelectedRange(); var isAllColumnSelect = c && c.bbox && (c.bbox.getType() === c_oAscSelectionType.RangeMax || c.bbox.getType() === c_oAscSelectionType.RangeCol); if(c.bbox.isOneCell()) { //проверяем, есть ли формула массива в этой ячейке @@ -16813,14 +18177,21 @@ return; } bbox = c.bbox; + + // set selection if dynamic arrays are used + if (dynamicSelectionRange) { + ws.copySelection && ws.copySelection.assign2(bbox); + } } }; - var isFormula = this._isFormula(val); - var newFP, parseResult; + let dynamicSelectionRange = null; + let isFormula = this._isFormula(val); + let newFP, parseResult; if (isFormula) { + let calculateResult = new AscCommonExcel.CalculateResult(true); //перед созданием точки в истории, проверяю, валидная ли формула - var cellWithFormula = new AscCommonExcel.CCellWithFormula(this.model, bbox.r1, bbox.c1); + let cellWithFormula = new AscCommonExcel.CCellWithFormula(this.model, bbox.r1, bbox.c1); newFP = new AscCommonExcel.parserFormula(val[0].getFragmentText().substring(1), cellWithFormula, this.model); parseResult = new AscCommonExcel.ParseResult(); if (!newFP.parse(AscCommonExcel.oFormulaLocaleInfo.Parse, AscCommonExcel.oFormulaLocaleInfo.DigitSep, parseResult)) { @@ -16828,6 +18199,59 @@ this.model.workbook.handlers.trigger("asc_onError", parseResult.error, c_oAscError.Level.NoCritical); return; } + } else { + + if (!applyByArray && AscCommonExcel.bIsSupportDynamicArrays) { + /* if we write not through cse, then check the formula for the presence of ref */ + /* if ref exists, write the formula as an array formula and also find its dimensions for further expansion */ + + let isRef = newFP.findRefByOutStack(); + if (isRef) { + // if formula has ref, calculate it to get the final size of ref + let formulaRes = newFP.calculate(null, null, null, null, calculateResult); + applyByArray = true; + ctrlKey = true; + + if ((newFP.aca && newFP.ca)) { + // array cannot expand + // set ref to the first(parent) cell + arrayCannotExpand = true; + dynamicSelectionRange = new Asc.Range(newFP.parent.nCol, newFP.parent.nRow, newFP.parent.nCol, newFP.parent.nRow); + t.model.workbook.dependencyFormulas.addToVolatileArrays(newFP); + } else { + let dimension = formulaRes.getDimensions(); + dynamicSelectionRange = new Asc.Range(newFP.parent.nCol, newFP.parent.nRow, newFP.parent.nCol + dimension.col - 1, newFP.parent.nRow + dimension.row - 1); + } + } else if (newFP.ref) { + applyByArray = true; + ctrlKey = true; + dynamicSelectionRange = newFP.ref; + } + } else if (!applyByArray && !ctrlKey) { + // TODO ctrlKey+enter used to fills the selected cell range with the current entry. Dynamic arrays will have to work the same + // refInfo = {cannoChangeFormulaArray: true|false, applyByArray: true|false, ctrlKey: true|false, dynamicRange: range} + + let canAutoExpand = newFP.findRefByOutStack(true); + let refInfo = canAutoExpand ? ws.getRefDynamicInfo(newFP, calculateResult) : false; + if (refInfo) { + if (refInfo.cannotChangeFormulaArray) { + t.handlers.trigger("onErrorEvent", c_oAscError.ID.CannotChangeFormulaArray, + c_oAscError.Level.NoCritical); + return false; + } + + applyByArray = refInfo.applyByArray; + ctrlKey = refInfo.ctrlKey; + dynamicSelectionRange = refInfo.dynamicRange; + } + } + + // preliminary calculation of the formula + // if calculateResult.error is not empty - return this error + if (calculateResult && calculateResult.error != null) { + this.model.workbook.handlers.trigger("asc_onError", calculateResult.error, c_oAscError.Level.NoCritical); + return false; + } } } @@ -16836,11 +18260,15 @@ History.StartTransaction(); } + // if there is a formula use setValue, otherwise setValue2 if (isFormula) { // ToDo - при вводе формулы в заголовок автофильтра надо писать "0" //***array-formula*** - var ret = true; + let ret = true; changeRangesIfArrayFormula(); + + //***dynamic array-formula*** + let changedDynamicArraysList = AscCommonExcel.bIsSupportDynamicArrays ? ws.getChangedArrayList() : null; if(ctrlKey) { this.model.workbook.dependencyFormulas.lockRecal(); } @@ -16850,10 +18278,40 @@ t.model.workbook.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); } + // before putting a value in the selected cell, need to check whether the given range concerns any of the arrays (daf) on the page + // collect a list of all affected arrays and go through each of them + // if the main cell was affected, then need to clear the entire array (we will also need to update the DepGraph dependency list) + // if the main cell has NOT been affected, we need to execute cell.setValue("") or Range.setValue("") for all child cells of the array, and set the aca=true flag for the main cell + if (changedDynamicArraysList) { + for (let array in changedDynamicArraysList) { + let arrayData = changedDynamicArraysList[array]; + let formula = arrayData.formula; + let dynamicbbox = arrayData.range; + let range = (formula && formula.aca && formula.ca) ? t.model.getRange3(dynamicbbox.r1, dynamicbbox.c1, dynamicbbox.r1, dynamicbbox.c1) : t.model.getRange3(dynamicbbox.r1, dynamicbbox.c1, dynamicbbox.r2, dynamicbbox.c2); + if (arrayData.doDelete) { + // delete all cells + range.cleanText(); + + // remove listener + let listenerId = arrayData.formula && arrayData.formula.getListenerId(); + ws.workbook.dependencyFormulas.endListeningVolatileArray(listenerId); + } else if (arrayData.doRecalc) { + // delete all cells except the first one + range.cleanTextExceptFirst(); + // add to volatile + ws.workbook.dependencyFormulas.addToVolatileArrays(formula); + } + } + ws.clearChangedArrayList(); + } + // set the value to the selected range c.setValue(AscCommonExcel.getFragmentsText(val), function (r) { ret = r; - }, null, applyByArray ? bbox : ((!applyByArray && ctrlKey) ? null : undefined)); + }, null, applyByArray ? bbox : ((!applyByArray && ctrlKey) ? null : undefined), null, AscCommonExcel.bIsSupportDynamicArrays ? dynamicSelectionRange : null); + + // recalc all volatile arrays on page + t.model.recalculateVolatileArrays(); //***array-formula*** if(ctrlKey) { @@ -16866,6 +18324,7 @@ return false; } + // todo Add to history UndoRedo DynamicArray and add to AscCH historyitem_DynamicArrayFormula_AddFormula //***array-formula*** if(applyByArray) { History.Add(AscCommonExcel.g_oUndoRedoArrayFormula, AscCH.historyitem_ArrayFromula_AddFormula, this.model.getId(), @@ -16877,8 +18336,43 @@ } else { //***array-formula*** changeRangesIfArrayFormula(); + + if (AscCommonExcel.bIsSupportDynamicArrays) { + //***dynamic array-formula*** + let changedDynamicArraysList = ws.getChangedArrayList(); + if (changedDynamicArraysList) { + // go through changed dynamic arrays, and delete all|partitional values? + for (let array in changedDynamicArraysList) { + let arrayData = changedDynamicArraysList[array]; + let formula = arrayData.formula; + let dynamicbbox = arrayData.range; + let range = (formula && formula.aca && formula.ca) ? t.model.getRange3(dynamicbbox.r1, dynamicbbox.c1, dynamicbbox.r1, dynamicbbox.c1) : t.model.getRange3(dynamicbbox.r1, dynamicbbox.c1, dynamicbbox.r2, dynamicbbox.c2); + // todo create clear function for cells (clearRange?) + if (arrayData.doDelete) { + // delete all cells + range.cleanText(); + + // remove listener + let listenerId = arrayData.formula && arrayData.formula.getListenerId(); + ws.workbook.dependencyFormulas.endListeningVolatileArray(listenerId); + } else if (arrayData.doRecalc) { + // delete all cells except the first one + range.cleanTextExceptFirst(); + // add to volatile + ws.workbook.dependencyFormulas.addToVolatileArrays(formula); + } + } + + ws.clearChangedArrayList(); + } + } + + // set the value to the selected range c.setValue2(val, true); + // recalculate all volatile arrays on page + t.model.recalculateVolatileArrays(); + // Вызываем функцию пересчета для заголовков форматированной таблицы this.model.checkChangeTablesContent(bbox); } @@ -16945,20 +18439,27 @@ var rFrozen = t.topLeftFrozenCell.getRow0(); if (0 < cFrozen) { if (col >= cFrozen) { - offsetX = t._getColLeft(cFrozen) - t._getColLeft(0); + offsetX = t._getColLeft(cFrozen) - t._getColLeft(0) - t.getHorizontalScrollCorrect(); } else { vr.c1 = 0; vr.c2 = cFrozen - 1; } + } else { + offsetX -= t.getHorizontalScrollCorrect(); } if (0 < rFrozen) { if (row >= rFrozen) { - offsetY = t._getRowTop(rFrozen) - t._getRowTop(0); + offsetY = t._getRowTop(rFrozen) - t._getRowTop(0) - t.getScrollCorrect(); } else { vr.r1 = 0; vr.r2 = rFrozen - 1; } + } else { + offsetY -= t.getScrollCorrect(); } + } else { + offsetX -= t.getHorizontalScrollCorrect(); + offsetY -= t.getScrollCorrect(); } return {vr: vr, offsetX: offsetX, offsetY: offsetY}; } @@ -16966,6 +18467,14 @@ col = cell.col; row = cell.row; + //TODO need only 1 redraw + if (row === t.visibleRange.r1) { + this.setScrollCorrect(0, true); + } + if (col === t.visibleRange.c1) { + this.setHorizontalScrollCorrect(0, true); + } + // Возможно стоит заменить на ячейку из кеша c = this._getVisibleCell(col, row); fl = this._getCellFlags(c); @@ -16975,13 +18484,27 @@ c = this._getVisibleCell(mc.c1, mc.r1); fl = this._getCellFlags(c); } + + if (this.getRightToLeft() && col === 0) { + fl.wrapText = true; + } + var align = c.getAlign(); var indent = align && align.indent; if (AscCommon.align_Distributed === fl.textAlign) { fl.textAlign = AscCommon.align_Center; } - this.handlers.trigger("onScroll", this._calcActiveCellOffset()); + let offset = this._calcActiveCellOffset(); + if (this.topLeftFrozenCell) { + if (col < this.topLeftFrozenCell.getCol0()) { + offset.col = 0; + } + if (row < this.topLeftFrozenCell.getRow0()) { + offset.row = 0; + } + } + this.handlers.trigger("onScroll", offset); bg = c.getFillColor(); @@ -17107,7 +18630,8 @@ } //***array-formula*** - var ref = null; + let ref = null; + let isDynamicRef = null; if (flags.ctrlKey && flags.shiftKey) { //необходимо проверить на выделение массива частично var activeRange = t.getSelectedRange(); @@ -17146,14 +18670,38 @@ t._isLockedCells(lockedRange, /*subType*/null, saveCellValueCallback); } } else { - //проверяем activeCell на наличие форулы массива + // check activeCell for the presence of an array formula c._foreachNoEmpty(function (cell) { - ref = cell.formulaParsed && cell.formulaParsed.ref ? cell.formulaParsed.ref : null; + if (cell) { + let formula = cell.formulaParsed; + let arrayFormulaRef = formula && formula.getArrayFormulaRef(); + let dynamicRange = formula && formula.getDynamicRef(); + + ref = formula && arrayFormulaRef ? arrayFormulaRef : null; + isDynamicRef = formula && dynamicRange ? true : null; + + if (isDynamicRef && AscCommonExcel.bIsSupportDynamicArrays) { + let name = dynamicRange.getName(AscCommonExcel.referenceType.R); + let arrayInfo = {range: dynamicRange, doDelete: false, doRecalc: true, formula: formula}; + + // check this cell. If this is the first cell of dynamic range, delete this range, else delete all elements except the first + if (cell.nRow === dynamicRange.r1 && cell.nCol === dynamicRange.c1) { + arrayInfo.doRecalc = false + arrayInfo.doDelete = true + } + + t.model.addChangedArray(name, arrayInfo); + } + } }); if (ref && !ref.isOneCell()) { - t.handlers.trigger("onErrorEvent", c_oAscError.ID.CannotChangeFormulaArray, + if (isDynamicRef && AscCommonExcel.bIsSupportDynamicArrays) { + return saveCellValueCallback(true); + } else { + t.handlers.trigger("onErrorEvent", c_oAscError.ID.CannotChangeFormulaArray, c_oAscError.Level.NoCritical); - return false; + return false; + } } else { return saveCellValueCallback(true); } @@ -17161,9 +18709,10 @@ }, getSides: function () { var _c1, _r1, _c2, _r2, ri = 0, bi = 0; + let isRtl = t.getRightToLeft(); if (isMerged) { - _c1 = mc.c1; - _c2 = mc.c2; + _c1 = isRtl ? mc.c2 : mc.c1; + _c2 = isRtl ? mc.c1 : mc.c2; _r1 = mc.r1; _r2 = mc.r2; } else { @@ -17173,29 +18722,55 @@ var vro = getVisibleRangeObject(); var i, w, h, arrLeftS = [], arrRightS = [], arrBottomS = []; var offsX = t._getColLeft(vro.vr.c1) - t._getColLeft(0) - vro.offsetX; + if (isRtl) { + offsX = -offsX; + } var offsY = t._getRowTop(vro.vr.r1) - t._getRowTop(0) - vro.offsetY; - var cellX = t._getColLeft(_c1) - offsX, cellY = t._getRowTop(_r1) - offsY; + var cellX = t._getColLeft(_c1, true) - offsX, cellY = t._getRowTop(_r1) - offsY; var _left = cellX; - for (i = _c1; i >= vro.vr.c1; --i) { - w = t._getColumnWidth(i); - if (0 < w) { - arrLeftS.push(_left); + if (isRtl) { + for (i = _c1; i >= vro.vr.c1; --i) { + w = t._getColumnWidth(i); + if (0 < w) { + arrLeftS.push(_left); + } + _left -= w; + } + } else { + for (i = _c1; i <= vro.vr.c2; ++i) { + w = t._getColumnWidth(i); + if (0 < w) { + arrLeftS.push(_left); + } + _left -= w; } - _left -= w; } if (_c2 > vro.vr.c2) { _c2 = vro.vr.c2; } _left = cellX; - for (i = _c1; i <= vro.vr.c2; ++i) { - w = t._getColumnWidth(i); - _left += w; - if (0 < w) { - arrRightS.push(_left); + if (isRtl) { + for (i = _c1; i >= vro.vr.c1; --i) { + w = t._getColumnWidth(i); + _left += w; + if (0 < w) { + arrRightS.push(_left); + } + if (_c2 === i) { + ri = arrRightS.length - 1; + } } - if (_c2 === i) { - ri = arrRightS.length - 1; + } else { + for (i = _c1; i <= vro.vr.c2; ++i) { + w = t._getColumnWidth(i); + _left += w; + if (0 < w) { + arrRightS.push(_left); + } + if (_c2 === i) { + ri = arrRightS.length - 1; + } } } w = t.drawingCtx.getWidth(); @@ -17305,6 +18880,12 @@ } this.handlers.trigger("onDocumentPlaceChanged"); + } else { + //for example, after change size we must recalculate drawings offset(right-to-left mode) + //todo need review + if (this.getRightToLeft() && this.objectRender) { + this.objectRender.updateDrawingsTransform({target: c_oTargetType.RowResize, row: 0}); + } } this._updateColumnPositions(); @@ -17487,6 +19068,7 @@ } } + let isTable = !!styleName; var checkFilterRange = filterInfo ? filterInfo.rangeWithoutDiff : filterRange; if (t._checkAddAutoFilter(checkFilterRange, styleName, addFormatTableOptionsObj) === true) { @@ -17499,7 +19081,7 @@ }; var oRange = this.model.getRange3(checkFilterRange.r1, checkFilterRange.c1, checkFilterRange.r1, checkFilterRange.c2); - if (!addNameColumn && oRange.isFormulaContains()) { + if (!addNameColumn && isTable && oRange.isFormulaContains()) { this.model.workbook.handlers.trigger("asc_onConfirmAction", Asc.c_oAscConfirm.ConfirmReplaceFormulaInTable, function (can) { if (can) { @@ -18296,6 +19878,8 @@ return false; } + offsetX -= this.getRightToLeftOffset(); + var drawCurrentFilterButtons = function (filter) { var autoFilter = filter.isAutoFilter() ? filter : filter.AutoFilter; @@ -18367,7 +19951,7 @@ continue; } - t.af_drawCurrentButton(offsetX, offsetY, {isSortState: isSortState, isSetFilter: isSetFilter, row: row, col: col}); + t.af_drawCurrentButton(offsetX - t.getRightToLeftOffset(), offsetY, {isSortState: isSortState, isSetFilter: isSetFilter, row: row, col: col}); } } } @@ -18427,8 +20011,16 @@ var ctx = props.isOverlay ? this.overlayCtx : this.drawingCtx; var isDataValidation = props.isOverlay; + let isClip = null; + if (!isDataValidation && this._clipDrawingRect(ctx, new Asc.Range(props.col, props.row, props.col, props.row), clipType.range)) { + isClip = true; + } + if (props.idPivotCollapse) { this._drawPivotCollapseButton(offsetX, offsetY, props); + if (isClip) { + ctx.RemoveClipRect(); + } return; } @@ -18649,6 +20241,10 @@ scaleIndex *= this.getRetinaPixelRatio(); _drawButton(x1 + diffX, y1 + diffY); + + if (isClip) { + ctx.RemoveClipRect(); + } }; @@ -20151,6 +21747,51 @@ }); return res; }; + WorksheetView.prototype.intersectionFormulaArray2 = function(range, notCheckContains, checkOneCellArray) { + const t = this; + const ws = this.model; + //checkOneCellArray - ф/т можно добавить поверх формулы массива, которая содержит 1 ячейку, если более - то ошибка + //notCheckContains - ф/т нельзя добавить, если мы пересекаемся или содержим ф/т + // this function, in addition to checking cse formulas, checks dynamic arrays and fills in the list of changed arrays + + let res = false; + for (let row = range.r1; row <= range.r2; row++) { + for (let col = range.c1; col <= range.c2; col++) { + if (res) { + return res; + } + + ws._getCell(row, col, function(cell) { + if(cell.isFormula()) { + let formulaParsed = cell.getFormulaParsed(); + let arrayFormulaRef = formulaParsed.getArrayFormulaRef(); + let dynamicRange = formulaParsed.getDynamicRef(); + + if (arrayFormulaRef && dynamicRange) { + let name = dynamicRange.getName(AscCommonExcel.referenceType.R); + let arrayInfo = {range: dynamicRange, doDelete: false, doRecalc: true, formula: formulaParsed}; + + // check this cell. If this is the first cell of dynamic range, delete this range, else delete all elements except the first + if (cell.nRow === dynamicRange.r1 && cell.nCol === dynamicRange.c1) { + arrayInfo.doRecalc = false + arrayInfo.doDelete = true + } + + ws.addChangedArray(name, arrayInfo); + } else if(arrayFormulaRef && (!checkOneCellArray || (checkOneCellArray && !arrayFormulaRef.isOneCell()))) { + if(notCheckContains) { + res = true; + } else if(!notCheckContains && !range.containsRange(arrayFormulaRef)){ + res = true; + } + } + } + }); + + } + } + return res; + }; // Convert coordinates methods WorksheetView.prototype.ConvertXYToLogic = function (x, y) { @@ -21141,8 +22782,8 @@ this._drawGroupDataMenu(drawingCtx, bCol); var ctx = drawingCtx || this.drawingCtx; - var offsetX = (undefined !== leftFieldInPx) ? leftFieldInPx : this._getColLeft(this.visibleRange.c1) - this.cellsLeft; - var offsetY = (undefined !== topFieldInPx) ? topFieldInPx : this._getRowTop(this.visibleRange.r1) - this.cellsTop; + var offsetX = (undefined !== leftFieldInPx) ? leftFieldInPx : this._getOffsetX(); + var offsetY = (undefined !== topFieldInPx) ? topFieldInPx : this._getOffsetY(); if (!drawingCtx && this.topLeftFrozenCell) { if (undefined === leftFieldInPx) { var cFrozen = this.topLeftFrozenCell.getCol0(); @@ -21154,6 +22795,11 @@ } } + let isClip = null; + if (this._clipDrawingRect(ctx, range, bCol ? clipType.groupCols : clipType.groupRows)) { + isClip = true; + } + var zoom = this.getZoom(); if(zoom > 1) { zoom = 1; @@ -21416,13 +23062,13 @@ var collasedEndCol = this._getGroupCollapsed(arrayLines[i][j].end + 1); //var collasedEndCol = rowLevelMap[arrayLines[i][j].end + 1] && rowLevelMap[arrayLines[i][j].end + 1].collapsed; if(!collasedEndCol) { - ctx.lineVerPrevPx(posX, startPos, endPos + paddingTop); + ctx.lineVerPrevPx(posX - this.getRightToLeftOffset(), startPos, endPos + paddingTop); } // _ //| if(!collasedEndCol && startY === arrayLines[i][j].start) { - ctx.lineHorPrevPx(posX - lineWidthDiff + thickLineDiff, startPos, posX + 4*padding); + ctx.lineHorPrevPx(posX - lineWidthDiff + thickLineDiff + this.getRightToLeftOffset(), startPos, posX + 4*padding + this.getRightToLeftOffset()); } } else { if(endPosArr[arrayLines[i][j].start]) { @@ -21498,6 +23144,9 @@ ctx.closePath(); } + if (isClip) { + ctx.RemoveClipRect(); + } this._drawGroupDataButtons(drawingCtx, buttons, leftFieldInPx, topFieldInPx, bCol); }; @@ -21521,7 +23170,7 @@ var offsetX = 0, offsetY = 0; if(bCol) { - offsetX = (undefined !== leftFieldInPx) ? leftFieldInPx : this._getColLeft(this.visibleRange.c1) - this.cellsLeft; + offsetX = (undefined !== leftFieldInPx) ? leftFieldInPx : this._getOffsetX(); if (!drawingCtx && this.topLeftFrozenCell) { if (undefined === leftFieldInPx) { var cFrozen = this.topLeftFrozenCell.getCol0(); @@ -21529,7 +23178,7 @@ } } } else { - offsetY = (undefined !== topFieldInPx) ? topFieldInPx : this._getRowTop(this.visibleRange.r1) - this.cellsTop; + offsetY = (undefined !== topFieldInPx) ? topFieldInPx : this._getOffsetY(); if (!drawingCtx && this.topLeftFrozenCell) { if (undefined === topFieldInPx) { var rFrozen = this.topLeftFrozenCell.getRow0(); @@ -21558,14 +23207,14 @@ x = x - offsetX; y = y - offsetY; - ctx.AddClipRect(bCol ? pos.pos - borderSize - offsetX : x - borderSize, bCol ? y - borderSize : pos.pos - borderSize - offsetY, bCol ? pos.size + borderSize : w + borderSize, bCol ? h + borderSize : pos.size + borderSize); + ctx.AddClipRect(bCol ? pos.pos - borderSize - offsetX : x - borderSize, bCol ? y - borderSize : pos.pos - borderSize - offsetY, bCol ? pos.size + borderSize : w + borderSize + this.getRightToLeftOffset(), bCol ? h + borderSize : pos.size + borderSize); ctx.beginPath(); if(buttons[i].clean) { ctx.clearRect(x, y, w, h); } - ctx.lineHorPrevPx(x, y, x + w); + ctx.lineHorPrevPx(x, y, x + w + this.getRightToLeftOffset()); ctx.lineHorPrevPx(x + w, y + h, x); ctx.lineVerPrevPx(x + w, y, y + h); ctx.lineVerPrevPx(x, y + h, y - borderSize); @@ -21603,9 +23252,10 @@ if(w > sizeLine + 2) { if(this._getGroupCollapsed(val, bCol)/*rowLevelMap[val] && rowLevelMap[val].collapsed*/) { - ctx.lineHorPrevPx(x + paddingLine, y + h / 2 + 1, x + sizeLine + paddingLine); - ctx.lineVerPrevPx(x + paddingLine + sizeLine / 2 + 1, y + h / 2 - sizeLine / 2, y + h / 2 + sizeLine / 2); + ctx.lineHorPrevPx(x + paddingLine + this.getRightToLeftOffset(), y + h / 2 + 1, x + sizeLine + paddingLine + this.getRightToLeftOffset()); + ctx.lineVerPrevPx(x + paddingLine + sizeLine / 2 + 1 - this.getRightToLeftOffset(), y + h / 2 - sizeLine / 2, y + h / 2 + sizeLine / 2); } else { + x += this.getRightToLeftOffset(); ctx.lineHorPrevPx(x + paddingLine, y + h / 2 + diff, x + sizeLine + paddingLine); } } @@ -21784,7 +23434,9 @@ if(w > tm.width + 3) { var diff = bActive ? 1 : 0; - ctx.setFillStyle(st.color).fillText(text, x + w / 2 - tm.width / 2 + diff, y + Asc.round(tm.baseline) + h / 2 - tm.height / 2 + diff, undefined, sr.charWidths); + ctx.setFillStyle(st.color); + + this._fillText(ctx, text, x + (this.getRightToLeft() ? w : w/2) - tm.width / 2 + diff, y + Asc.round(tm.baseline) + h / 2 - tm.height / 2 + diff, undefined, sr.charWidths); } ctx.stroke(); @@ -21909,14 +23561,14 @@ var t = this; var bCol = c_oTargetType.GroupCol === target.target; - var offsetX = /*(undefined !== leftFieldInPx) ? leftFieldInPx : */this._getColLeft(this.visibleRange.c1) - this.cellsLeft; + var offsetX = /*(undefined !== leftFieldInPx) ? leftFieldInPx : */this._getOffsetX(); if (/*!drawingCtx &&*/ this.topLeftFrozenCell) { //if (undefined === leftFieldInPx) { var cFrozen = this.topLeftFrozenCell.getCol0(); offsetX -= this._getColLeft(cFrozen) - this._getColLeft(0); //} } - var offsetY = /*(undefined !== topFieldInPx) ? topFieldInPx : */this._getRowTop(this.visibleRange.r1) - this.cellsTop; + var offsetY = /*(undefined !== topFieldInPx) ? topFieldInPx : */this._getOffsetY(); if (/*!drawingCtx &&*/ this.topLeftFrozenCell) { //if (undefined === topFieldInPx) { var rFrozen = this.topLeftFrozenCell.getRow0(); @@ -22014,6 +23666,7 @@ if((arrayLines[i][j].end + 1 === target.row && !bCol) || (arrayLines[i][j].end + 1 === target.col && bCol)) { props = t._getGroupDataButtonPos(arrayLines[i][j].end + 1, i, bCol); collapsed = t._getGroupCollapsed(arrayLines[i][j].end + 1, bCol);/*levelMap[arrayLines[i][j].end + 1] && levelMap[arrayLines[i][j].end + 1].collapsed*/ + x = t.checkRtl(x); if(props) { if(x >= props.x - offsetX && x <= props.x + props.w - offsetX && y >= props.y - offsetY && y <= props.y - offsetY + props.h) { if(AscCommon.getPtrEvtName("up") === type) { @@ -22088,6 +23741,8 @@ } } + x = this.checkRtl(x); + //TODO для группировки колонок - y должен быть больше поля колонок var bButtonClick = !bCol && x <= this.cellsLeft && this.groupWidth && x < this.groupWidth && y < this.cellsTop; if(!bButtonClick) { @@ -22109,10 +23764,10 @@ for(var i = 0; i <= groupArr.length; i++) { props = this.getGroupDataMenuButPos(i, bCol); if(x >= props.x && y >= props.y && x <= props.x + props.w && y <= props.y + props.h) { - if("mouseup" === type) { + if("mouseup" === type || "pointerup" === type) { this.hideGroupLevel(i + 1, bCol); this.clickedGroupButton = null; - } else if("mousedown" === type){ + } else if("mousedown" === type || "pointerdown" === type){ this._drawGroupDataMenuButton(null, i, true, true, bCol); this.clickedGroupButton = {level: i, bCol: bCol}; return true; @@ -23498,19 +25153,33 @@ WorksheetView.prototype.rangeToRectAbs = function(oRange, units) { var left = this.getCellLeft(0, units); var top = this.getCellTop(0, units); - var l = this.getCellLeft(oRange.c1, units) - left; + var l = this.checkRtl(this.getCellLeft(oRange.c1, units) - left, null, units); var t = this.getCellTop(oRange.r1, units) - top; - var r = this.getCellLeft(oRange.c2, units) + this.getColumnWidth(oRange.c2, units) - left; + var r = this.checkRtl(this.getCellLeft(oRange.c2, units) + this.getColumnWidth(oRange.c2, units) - left, null, units); var b = this.getCellTop(oRange.r2, units) + this.getRowHeight(oRange.r2, units) - top; - return new AscFormat.CGraphicBounds(l, t, r, b); + + if (this.getRightToLeft()) { + let _r = r; + r = l; + l = _r; + } + + return new AscFormat.CGraphicBounds(l - this.getRightToLeftOffset(), t, r, b); }; - WorksheetView.prototype.rangeToRectRel = function(oRange, units) { - var l = this.getCellLeftRelative(oRange.c1, units); - var t = this.getCellTopRelative(oRange.r1, units); - var r = this.getCellLeftRelative(oRange.c2, units) + this.getColumnWidth(oRange.c2, units); + WorksheetView.prototype.rangeToRectRel = function(oRange, units, checkFrozenArea) { + var l = this.checkRtl(this.getCellLeftRelative(oRange.c1, units, checkFrozenArea), null, units); + var t = this.getCellTopRelative(oRange.r1, units, checkFrozenArea); + var r = this.checkRtl(this.getCellLeftRelative(oRange.c2, units) + this.getColumnWidth(oRange.c2, units), null, units); var b = this.getCellTopRelative(oRange.r2, units) + this.getRowHeight(oRange.r2, units); - return new AscFormat.CGraphicBounds(l, t, r, b); + + if (this.getRightToLeft()) { + let _r = r; + r = l; + l = _r; + } + + return new AscFormat.CGraphicBounds(l - this.getRightToLeftOffset(), t, r, b); }; //интерфейс /*отдаём массив данных для интерефейса - beforeInsertSlicer @@ -24491,12 +26160,18 @@ let needCalc = false; if (fP) { for (let i = 0; i < fP.outStack.length; i++) { - if ((AscCommonExcel.cElementType.cellsRange3D === fP.outStack[i].type || AscCommonExcel.cElementType.cell3D === fP.outStack[i].type) && fP.outStack[i].externalLink) { + let type = fP.outStack[i].type; + if ((AscCommonExcel.cElementType.cellsRange3D === type || AscCommonExcel.cElementType.cell3D === type || + AscCommonExcel.cElementType.name3D === type) && fP.outStack[i].externalLink) { let eR = t.model.workbook.getExternalWorksheet(fP.outStack[i].externalLink); if (eR) { externalReferences.push(opt_get_only_ids ? eR.Id : eR.getAscLink()); if (initStructure) { - eR.initRows(fP.outStack[i].getRange()); + if (AscCommonExcel.cElementType.name3D === type) { + eR.initDefinedName(fP.outStack[i]); + } else { + eR.initRows(fP.outStack[i].getRange()); + } } } } else if (initStructure && fP.outStack[i].type === AscCommonExcel.cElementType.func && fP.outStack[i].name === "IMPORTRANGE") { @@ -24719,7 +26394,7 @@ if (this.isPageBreakPreview(true)) { this.model && this.model.PagePrintOptions && this.model.PagePrintOptions.initPrintTitles(); if (this.workbook && this.workbook.model && this.workbook.model.getActiveWs() === this.model) { - this.draw(); + this.draw(this.lockDraw); } } }; @@ -25048,10 +26723,119 @@ WorksheetView.prototype.initRenderingSettings = function () { this.renderingSettings = new CRenderingSettings(); + return this.renderingSettings; + }; + + WorksheetView.prototype.getVScrollStep = function () { + let isMobileVersion = this.workbook && this.workbook.Api && this.workbook.Api.isMobileVersion; + return this.vScrollPxStep * this.getZoom() * (isMobileVersion ? this.getRetinaPixelRatio() : 1); + }; + + WorksheetView.prototype.getHScrollStep = function () { + return this.hScrollPxStep * this.getZoom() * this.getRetinaPixelRatio(); + }; + + WorksheetView.prototype.checkRtl = function (x, ctx, units, checkOffsets) { + if (this.getRightToLeft()) { + let u = units >= 0 && units <= 3 ? units : 0; + let kf = asc_getcvt(0/*px*/, u, this._getPPIX()); + if (!ctx) { + ctx = this.drawingCtx; + } + return this.getCtxWidth(ctx, checkOffsets) * kf - x; + } + return x; + }; + + WorksheetView.prototype.getRightToLeft = function () { + let sheetViewSettings = this.getSheetViewSettings(true); + return sheetViewSettings.rightToLeft; + }; + + WorksheetView.prototype.setRightToLeft = function (val) { + let sheetViewSettings = this.getSheetViewSettings(true); + sheetViewSettings.rightToLeft = val; + }; + + WorksheetView.prototype._startRtlRendering = function (ctx) { + if (!ctx) { + ctx = this.drawingCtx; + } + if (this.getRightToLeft()) { + let _transform = ctx.Transform ? ctx.Transform : new AscCommon.CMatrix(); + let transformMatrix = _transform.CreateDublicate ? _transform.CreateDublicate() : _transform.clone(); + ctx.setTransform(-1, transformMatrix.shy, transformMatrix.shx, transformMatrix.sy, this.getCtxWidth(ctx), transformMatrix.ty); + + ctx.updateTransforms(); + } + }; + + WorksheetView.prototype.getCtxWidth = function (ctx, checkOffsets) { + if (!ctx) { + ctx = this.drawingCtx; + } + let res; + let renderingSettings = this.getRenderingSettings(); + if (renderingSettings && renderingSettings.getCtxWidth()) { + let offset = checkOffsets ? (renderingSettings.getPageLeftOffset() + renderingSettings.getPageLeftOffset()) : 0; + res = renderingSettings.getCtxWidth() - offset; + } else { + res = ctx.getWidth(); + } + return res; + }; + + WorksheetView.prototype._endRtlRendering = function (ctx) { + if (!ctx) { + ctx = this.drawingCtx; + } + if (this.getRightToLeft()) { + let _transform = ctx.Transform ? ctx.Transform : new AscCommon.CMatrix(); + let transformMatrix = _transform.CreateDublicate ? _transform.CreateDublicate() : _transform.clone(); + ctx.setTransform(1, transformMatrix.shy, transformMatrix.shx, transformMatrix.sy, 0, transformMatrix.ty); + + ctx.updateTransforms() + } + }; + + WorksheetView.prototype._startRtlDrawingRendering = function () { + if (this.getRightToLeft()) { + let ctx = this.drawingGraphicCtx; + let _transform = ctx.Transform ? ctx.Transform : new AscCommon.CMatrix(); + let transformMatrix = _transform.CreateDublicate ? _transform.CreateDublicate() : _transform.clone(); + ctx.setTransform(-1, transformMatrix.shy, transformMatrix.shx, transformMatrix.sy, this.getCtxWidth(ctx), transformMatrix.ty); + + ctx.updateTransforms && ctx.updateTransforms(); + } + }; + + WorksheetView.prototype._endRtlDrawingRendering = function () { + if (this.getRightToLeft()) { + let ctx = this.drawingGraphicCtx; + let _transform = ctx.Transform ? ctx.Transform : new AscCommon.CMatrix(); + let transformMatrix = _transform.CreateDublicate ? _transform.CreateDublicate() : _transform.clone(); + ctx.setTransform(1, transformMatrix.shy, transformMatrix.shx, transformMatrix.sy, 0, transformMatrix.ty); + + ctx.updateTransforms && ctx.updateTransforms(); + } }; + WorksheetView.prototype.getRightToLeftOffset = function () { + return this.getRightToLeft() ? 1 : 0; + }; + + WorksheetView.prototype.checkGraphicObjectsBounds = function () { + this.objectRender.updateSizeDrawingObjects({target: c_oTargetType.ColumnResize, col: 100}); + this.objectRender.updateDrawingsTransform({target: c_oTargetType.ColumnResize, col: 100}); + this.objectRender.updateRange(new Asc.Range(0, 0, gc_nMaxCol0, gc_nMaxCol0)); + }; + + function CRenderingSettings() { this.splitRowBG = null; //number - how much row need skip, every 2,3 and.. + this.ctxWidth = null; + this.leftOffset = null; + this.rightOffset = null; } CRenderingSettings.prototype.setSplitRowBG = function (val) { this.splitRowBG = val; @@ -25070,6 +26854,24 @@ return res; }; + CRenderingSettings.prototype.getCtxWidth = function () { + return this.ctxWidth; + }; + CRenderingSettings.prototype.setCtxWidth = function (val) { + this.ctxWidth = val; + }; + CRenderingSettings.prototype.setPageLeftOffset = function (val) { + this.pageLeftOffset = val; + }; + CRenderingSettings.prototype.setPageRightOffset = function (val) { + this.pageRightOffset = val; + }; + CRenderingSettings.prototype.getPageLeftOffset = function () { + return this.pageLeftOffset; + }; + CRenderingSettings.prototype.getPageRightOffset = function () { + return this.pageRightOffset; + }; function cAsyncAction() { this.timer = null; @@ -25596,6 +27398,9 @@ var valF = arrFormula[i].val; var arrayRef = arrFormula[i].arrayRef; + if (arrFormula[i].ca) { + AscCommonExcel.g_cCalcRecursion.setCellPasteValue(arrFormula[i].oldValue); + } //***array-formula*** if (arrayRef && window['AscCommonExcel'].bIsSupportArrayFormula) { var rangeFormulaArray = ws.model.getRange3(arrayRef.r1, arrayRef.c1, arrayRef.r2, arrayRef.c2); @@ -25616,6 +27421,13 @@ cell.setValue(valF, null, true); }); } + + // todo it works correctly, external dependencies are loaded, but additional checks are needed + // let afterExternalReferences = ws.getExternalReferencesByCell(rangeF, true, true); + // if (afterExternalReferences /*&& !_compare(afterExternalReferences, beforeExternalReferences)*/) { + // //t.model.workbook.handlers.trigger("asc_onNeedUpdateExternalReference"); + // ws.updateExternalReferenceByCell(rangeF, true); + // } } ws.model.workbook.dependencyFormulas.unlockRecal(); @@ -26823,6 +28635,7 @@ var sId = _newVal.getName(); if (pastedFormula || modelFormula) { + let oFromCell = formulaProps.cell; //formula if (pastedFormula && !isOneMerge) { @@ -26892,13 +28705,25 @@ assemb = applySpecialOperationFormula(cellValueDataDup, modelVal, assemb, modelFormula, needOperation, isEmptyPasted, isEmptyModel); } if (assemb !== null) { - rangeStyle.formula = {range: range, val: "=" + assemb, arrayRef: arrayFormulaRef}; + rangeStyle.formula = { + range: range, + val: "=" + assemb, + arrayRef: arrayFormulaRef, + ca: oFromCell.getFormulaParsed().ca, + oldValue: oFromCell.getNumberValue() + }; } } } else if (modelFormula && needOperation !== null) { assemb = applySpecialOperationFormula(cellValueDataDup, modelVal, null, modelFormula, needOperation, isEmptyPasted, isEmptyModel); if (assemb !== null) { - rangeStyle.formula = {range: range, val: "=" + assemb, arrayRef: arrayFormulaRef}; + rangeStyle.formula = { + range: range, + val: "=" + assemb, + arrayRef: arrayFormulaRef, + ca: oFromCell.getFormulaParsed().ca, + oldValue: oFromCell.getNumberValue() + }; } } } @@ -26911,7 +28736,16 @@ sFormula = sFormula.substr(1); var offset = new AscCommon.CellBase(0, 0); var assemb, _p_ = new AscCommonExcel.parserFormula(sFormula, null, ws.model); - if (_p_.parse()) { + + let parseResult = new AscCommonExcel.ParseResult(); + if (_p_.parse(AscCommonExcel.oFormulaLocaleInfo.Parse, AscCommonExcel.oFormulaLocaleInfo.DigitSep, parseResult)) { + if (parseResult.externalReferenesNeedAdd && ws && ws.model && ws.model.workbook) { + ws.model.workbook.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + + // we create the formula again and parse it to correctly obtain externalLink and elements in outStack + _p_ = new AscCommonExcel.parserFormula(sFormula, null, ws.model); + _p_.parse(AscCommonExcel.oFormulaLocaleInfo.Parse, AscCommonExcel.oFormulaLocaleInfo.DigitSep, parseResult) + } assemb = _p_.changeOffset(offset, null, true).assemble(true); rangeStyle.formula = {range: range, val: "=" + assemb}; } else { @@ -27411,8 +29245,8 @@ var mmToPx = asc_getcvt(3/*mm*/, 0/*px*/, ws._getPPIX()); var cursorPos = window['AscCommon'].g_specialPasteHelper.buttonInfo.range; - var offsetX = ws._getColLeft(ws.visibleRange.c1) - ws.cellsLeft; - var offsetY = ws._getRowTop(ws.visibleRange.r1) - ws.cellsTop; + var offsetX = ws._getOffsetX(); + var offsetY = ws._getOffsetY(); var posX = curShape.transformText.TransformPointX(cursorPos.X, cursorPos.Y) * mmToPx - offsetX + ws.cellsLeft; var posY = curShape.transformText.TransformPointY(cursorPos.X, cursorPos.Y) * mmToPx - offsetY + ws.cellsTop; diff --git a/cell/view/mobileTouch.js b/cell/view/mobileTouch.js index 1a8cc9edd1..62fc6340e4 100644 --- a/cell/view/mobileTouch.js +++ b/cell/view/mobileTouch.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -60,9 +60,10 @@ function (window, undefined) CMobileDelegateEditorCell.prototype.constructor = CMobileDelegateEditorCell; CMobileDelegateEditorCell.prototype.Resize = function() { - var _element = document.getElementById("editor_sdk"); - this.Offset.X = _element.offsetLeft; - this.Offset.Y = _element.offsetTop; + let _element = document.getElementById("editor_sdk"); + let pos = AscCommon.UI.getBoundingClientRect(_element); + this.Offset.X = pos.x || pos.left; + this.Offset.Y = pos.y || pos.top; this.Size.W = _element.offsetWidth; this.Size.H = _element.offsetHeight; @@ -161,7 +162,7 @@ function (window, undefined) }; CMobileDelegateEditorCell.prototype.GetSelectionRectsBounds = function() { - var _selection = this.WB.GetSelectionRectsBounds(); + var _selection = this.WB.GetSelectionRectsBounds(true); if (_selection) { @@ -201,31 +202,41 @@ function (window, undefined) var pos; var _api = this.WB; + let needInit = false; + let isSmoothScrolling = _api.getSmoothScrolling(); if ('v' === _scroll.directionLocked) { pos = -_scroll.y / _api.controller.settings.hscrollStep; - if (-_scroll.y >= -_scroll.maxScrollY) + if (-_scroll.y >= -_scroll.maxScrollY) { + needInit = isSmoothScrolling; pos += 1; - _api._onScrollY(pos); + } + _api._onScrollY(pos, needInit, true); } else if ('h' === _scroll.directionLocked) { pos = -_scroll.x / _api.controller.settings.vscrollStep; - if (-_scroll.x >= -_scroll.maxScrollX) + if (-_scroll.x >= -_scroll.maxScrollX) { + needInit = isSmoothScrolling; pos += 1; - _api._onScrollX(pos); + } + _api._onScrollX(pos, needInit, true); } else if ('n' === _scroll.directionLocked) { pos = -_scroll.y / _api.controller.settings.hscrollStep; - if (-_scroll.y >= -_scroll.maxScrollY) + if (-_scroll.y >= -_scroll.maxScrollY) { + needInit = isSmoothScrolling; pos += 1; - _api._onScrollY(pos); + } + _api._onScrollY(pos, needInit, true); pos = -_scroll.x / _api.controller.settings.vscrollStep; - if (-_scroll.x >= -_scroll.maxScrollX) + if (-_scroll.x >= -_scroll.maxScrollX) { + needInit = isSmoothScrolling; pos += 1; - _api._onScrollX(pos); + } + _api._onScrollX(pos, needInit, true); } }; CMobileDelegateEditorCell.prototype.GetContextMenuType = function() @@ -484,16 +495,26 @@ function (window, undefined) { return this.Api.controller._onMouseUp(this._convertLogicToEvent(e, x, y, page)); }; + CMobileDelegateEditorCell.prototype.extendPointerEvent = function(e) + { + try { + e.button = 0; + } catch(err) { + } + }; CMobileDelegateEditorCell.prototype.Drawing_OnMouseDown = function(e) { + this.extendPointerEvent(e); return this.Api.controller._onMouseDown(e); }; CMobileDelegateEditorCell.prototype.Drawing_OnMouseMove = function(e) { + this.extendPointerEvent(e); return this.Api.controller._onMouseMove(e); }; CMobileDelegateEditorCell.prototype.Drawing_OnMouseUp = function(e) { + this.extendPointerEvent(e); return this.Api.controller._onMouseUp(e); }; @@ -519,7 +540,7 @@ function (window, undefined) this.iScroll = new window.IScrollMobile(_element, { scrollbars: true, - mouseWheel: true, + mouseWheel: !this.isDesktopMode, interactiveScrollbars: true, shrinkScrollbars: 'scale', fadeScrollbars: true, @@ -527,7 +548,8 @@ function (window, undefined) scroller_id : this.iScrollElement, bounce : false, eventsElement : this.eventsElement, - click : false + click : false, + transparentIndicators : this.isDesktopMode }); this.delegate.Init(); @@ -581,12 +603,27 @@ function (window, undefined) if (_matrix && global_MatrixTransformer.IsIdentity(_matrix)) _matrix = null; - if (!this.CheckSelectTrack()) + let touchesCount = e.touches ? e.touches.length : this.getPointerCount(); + let isLockedTouch = false; + + if (touchesCount > 1) { - bIsKoefPixToMM = this.CheckObjectTrack(); + if (AscCommon.MobileTouchMode.None !== this.Mode && + AscCommon.MobileTouchMode.Scroll !== this.Mode) + { + isLockedTouch = true; + } } - if ((e.touches && 2 == e.touches.length) || (2 == this.getPointerCount())) + if (!isLockedTouch) + { + if (!this.CheckSelectTrack()) + { + bIsKoefPixToMM = this.CheckObjectTrack(); + } + } + + if (!isLockedTouch && (2 === touchesCount)) { this.Mode = AscCommon.MobileTouchMode.Zoom; } @@ -904,8 +941,8 @@ function (window, undefined) this.Api.sendEvent("asc_onTapEvent", e); var typeMenu = this.delegate.GetContextMenuType(); - if (typeMenu == AscCommon.MobileTouchContextMenuType.Target || - (typeMenu == AscCommon.MobileTouchContextMenuType.Select && this.delegate.IsInObject())) + if (typeMenu === AscCommon.MobileTouchContextMenuType.Target || + (typeMenu === AscCommon.MobileTouchContextMenuType.Select && this.delegate.IsInObject())) isPreventDefault = false; } else @@ -936,6 +973,12 @@ function (window, undefined) // TODO: this.delegate.Drawing_OnMouseUp(e.changedTouches ? e.changedTouches[0] : e); this.Mode = AscCommon.MobileTouchMode.None; + + var typeMenu = this.delegate.GetContextMenuType(); + if (typeMenu === AscCommon.MobileTouchContextMenuType.Target || + (typeMenu === AscCommon.MobileTouchContextMenuType.Select && this.delegate.IsInObject())) + isPreventDefault = false; + break; } case AscCommon.MobileTouchMode.Select: @@ -971,7 +1014,7 @@ function (window, undefined) this.delegate.Api.controller._onMouseMove(_e); } - if (this.CellEditorType == Asc.c_oAscCellEditorState.editFormula) + if (this.CellEditorType === Asc.c_oAscCellEditorState.editFormula) isPreventDefault = false; if (this.Api.isViewMode || isPreventDefault) @@ -986,6 +1029,9 @@ function (window, undefined) if (true !== this.iScroll.isAnimating && (this.CellEditorType != Asc.c_oAscCellEditorState.editFormula)) this.CheckContextMenuTouchEnd(isCheckContextMenuMode, isCheckContextMenuSelect, isCheckContextMenuCursor); + if (!isPreventDefault && this.Api.isMobileVersion && !this.Api.isUseOldMobileVersion()) + this.showKeyboard(true); + return false; }; @@ -993,6 +1039,7 @@ function (window, undefined) { if (AscCommon.g_inputContext && AscCommon.g_inputContext.externalChangeFocus()) return; + this.removeHandlersOnClick(); return this.onTouchStart(e); }; CMobileTouchManager.prototype.mainOnTouchMove = function(e) @@ -1001,12 +1048,17 @@ function (window, undefined) }; CMobileTouchManager.prototype.mainOnTouchEnd = function(e) { - return this.onTouchEnd(e); + let res = this.onTouchEnd(e); + this.checkDesktopModeContextMenuEnd(e); + return res; }; // отрисовка текстового селекта CMobileTouchManager.prototype.CheckSelect = function(overlay, color, drDocument) { + if (!this.desktopTouchState) + return; + if (!this.SelectEnabled) return; diff --git a/common/AdvancedOptions.js b/common/AdvancedOptions.js index 2978ac2b6f..42b2ec1d14 100644 --- a/common/AdvancedOptions.js +++ b/common/AdvancedOptions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -43,6 +43,7 @@ this.fileType = fileType; this.isDownloadEvent = !!isDownloadEvent; this.isSaveAs = false; + this.wopiSaveAsPath = null; this.advancedOptions = null; this.compatible = true; @@ -62,6 +63,7 @@ asc_CDownloadOptions.prototype.asc_setFileType = function (fileType) {this.fileType = fileType;}; asc_CDownloadOptions.prototype.asc_setIsDownloadEvent = function (isDownloadEvent) {this.isDownloadEvent = isDownloadEvent;}; asc_CDownloadOptions.prototype.asc_setIsSaveAs = function (isSaveAs) {this.isSaveAs = isSaveAs;}; + asc_CDownloadOptions.prototype.asc_setWopiSaveAsPath = function (wopiSaveAsPath) {this.wopiSaveAsPath = wopiSaveAsPath;}; asc_CDownloadOptions.prototype.asc_setAdvancedOptions = function (advancedOptions) {this.advancedOptions = advancedOptions;}; asc_CDownloadOptions.prototype.asc_setCompatible = function (compatible) {this.compatible = compatible;}; asc_CDownloadOptions.prototype.asc_setTextParams = function (textParams) {this.textParams = textParams;}; @@ -212,6 +214,7 @@ prot["asc_setFileType"] = prot.asc_setFileType; prot["asc_setIsDownloadEvent"] = prot.asc_setIsDownloadEvent; prot["asc_setIsSaveAs"] = prot.asc_setIsSaveAs; + prot["asc_setWopiSaveAsPath"] = prot.asc_setWopiSaveAsPath; prot["asc_setAdvancedOptions"] = prot.asc_setAdvancedOptions; prot["asc_setCompatible"] = prot.asc_setCompatible; prot["asc_setTextParams"] = prot.asc_setTextParams; diff --git a/common/BulletPreviewDrawer.js b/common/BulletPreviewDrawer.js index a14c33ad3c..fd245bb32c 100644 --- a/common/BulletPreviewDrawer.js +++ b/common/BulletPreviewDrawer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -949,7 +949,7 @@ nYPos = e.clientY; } nYPos = (nYPos * AscCommon.AscBrowser.zoom); - const oClientRect = this.getBoundingClientRect(); + const oClientRect = AscCommon.UI.getBoundingClientRect(this); if (AscFormat.isRealNumber(oClientRect.y)) { diff --git a/common/Charts/3DTransformation.js b/common/Charts/3DTransformation.js index dff0157db5..da82f6a820 100644 --- a/common/Charts/3DTransformation.js +++ b/common/Charts/3DTransformation.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -32,1521 +32,1539 @@ "use strict"; -( -/** +(/** * @param {Window} window * @param {undefined} undefined */ function (window, undefined) { // Import -var ORIENTATION_MIN_MAX = AscFormat.ORIENTATION_MIN_MAX; - -var globalBasePercent = 100; -var global3DPersperctive = 30; // ToDo а нужна ли она в ChartsDrawer ? - -var c_oChartFloorPosition = -{ - None: 0, - Left: 1, - Right: 2, - Bottom: 3, - Top: 4 -}; + let ORIENTATION_MIN_MAX = AscFormat.ORIENTATION_MIN_MAX; -/** @constructor */ -function Processor3D(width, height, left, right, bottom, top, chartSpace, chartsDrawer) { - this.widthCanvas = width; - this.heightCanvas = height; + let globalBasePercent = 100; + let global3DPersperctive = 30; // ToDo а нужна ли она в ChartsDrawer ? - this.left = left ? left : 0; - this.right = right ? right : 0; - this.bottom = bottom ? bottom : 0; - this.top = top ? top : 0; + let c_oChartFloorPosition = { + None: 0, Left: 1, Right: 2, Bottom: 3, Top: 4 + }; - this.cameraDiffZ = 0; - this.cameraDiffX = 0; - this.cameraDiffY = 0; + /** @constructor */ + function Processor3D(width, height, left, right, bottom, top, chartSpace, chartsDrawer) { + this.widthCanvas = width; + this.heightCanvas = height; - this.scaleY = 1; - this.scaleX = 1; - this.scaleZ = 1; + this.left = left ? left : 0; + this.right = right ? right : 0; + this.bottom = bottom ? bottom : 0; + this.top = top ? top : 0; - this.aspectRatioY = 1; - this.aspectRatioX = 1; - this.aspectRatioZ = 1; + this.cameraDiffZ = 0; + this.cameraDiffX = 0; + this.cameraDiffY = 0; - this.specialStandardScaleX = 1; + this.scaleY = 1; + this.scaleX = 1; + this.scaleZ = 1; - this.view3D = chartSpace.chart.getView3d(); - this.chartSpace = chartSpace; - this.chartsDrawer = chartsDrawer; + this.aspectRatioY = 1; + this.aspectRatioX = 1; + this.aspectRatioZ = 1; - this.rPerspective = 0; + this.specialStandardScaleX = 1; - this.hPercent = null; + this.view3D = chartSpace.chart.getView3d(); + this.chartSpace = chartSpace; + this.chartsDrawer = chartsDrawer; - this.angleOx = this.view3D && this.view3D.rotX ? (-this.view3D.rotX / 360) * (Math.PI * 2) : 0; - this.angleOy = this.view3D && this.view3D.rotY ? (-this.view3D.rotY / 360) * (Math.PI * 2) : 0; - //this.angleOz = this.view3D && this.view3D.rotZ ? (- this.view3D.rotZ / 360) * (Math.PI * 2) : 0; + this.rPerspective = 0; - if (!this.view3D.getRAngAx() && AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type) { - this.angleOy = 0; - } + this.hPercent = null; - this.orientationCatAx = null; - this.orientationValAx = null; + this.angleOx = this.view3D && this.view3D.rotX ? (-this.view3D.rotX / 360) * (Math.PI * 2) : 0; + this.angleOy = this.view3D && this.view3D.rotY ? (-this.view3D.rotY / 360) * (Math.PI * 2) : 0; + //this.angleOz = this.view3D && this.view3D.rotZ ? (- this.view3D.rotZ / 360) * (Math.PI * 2) : 0; - this.matrixRotateOx = null; - this.matrixRotateOy = null; - this.matrixRotateAllAxis = null; - this.matrixShearXY = null; - this.projectMatrix = null; -} + if (!this.view3D.getRAngAx() && AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type) { + this.angleOy = 0; + } -Processor3D.prototype.calaculate3DProperties = function (baseDepth, gapDepth, bIsCheck) { - this.calculateCommonOptions(); + this.orientationCatAx = null; + this.orientationValAx = null; - //TODO baseDepth - не универсальный параметр, позже переделать - this._calculateAutoHPercent(); + this.matrixRotateOx = null; + this.matrixRotateOy = null; + this.matrixRotateAllAxis = null; + this.matrixShearXY = null; + this.projectMatrix = null; + } - //рассчёт коэффициэнта отношения ширины / высоты - this._calcAspectRatio(); + Processor3D.prototype.calaculate3DProperties = function (baseDepth, gapDepth, bIsCheck) { + this.calculateCommonOptions(); - //TODO рассчёт коэффицианты для диаграмм типа standard. позже необходимо отказаться - //this._calcSpecialStandardScaleX(); + //TODO baseDepth - не универсальный параметр, позже переделать + this._calculateAutoHPercent(); - //глубина - this.depthPerspective = this.view3D.getRAngAx() ? this._calculateDepth() : this._calculateDepthPerspective(); + //рассчёт коэффициэнта отношения ширины / высоты + this._calcAspectRatio(); - //угол перспективы - this._calculatePerspective(this.view3D); + //TODO рассчёт коэффицианты для диаграмм типа standard. позже необходимо отказаться + //this._calcSpecialStandardScaleX(); - //после рассчета глубины меняются пропорции ширины и высоты - if (this.view3D.getRAngAx()) - this._calculateScaleFromDepth(); + //глубина + this.depthPerspective = this.view3D.getRAngAx() ? this._calculateDepth() : this._calculateDepthPerspective(); - //сдвиг камеры для того, чтобы попали все линии - if (!bIsCheck) { - this._calculateCameraDiff(); + //угол перспективы + this._calculatePerspective(this.view3D); + //после рассчета глубины меняются пропорции ширины и высоты if (this.view3D.getRAngAx()) { - this._recalculateScaleWithMaxWidth(); + this._calculateScaleFromDepth(); } - } - if (AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type && !this.view3D.getRAngAx()) { - //TODO пересмотреть функцию - this.tempChangeAspectRatioForPie(); - } -}; + //сдвиг камеры для того, чтобы попали все линии + if (!bIsCheck) { + this._calculateCameraDiff(); -Processor3D.prototype.tempChangeAspectRatioForPie = function () { - var perspectiveDepth = this.depthPerspective; + if (this.view3D.getRAngAx()) { + this._recalculateScaleWithMaxWidth(); + } + } - var widthCanvas = this.widthCanvas; - var originalWidthChart = widthCanvas - this.left - this.right; + if (AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type && !this.view3D.getRAngAx()) { + //TODO пересмотреть функцию + this.tempChangeAspectRatioForPie(); + } + }; - var heightCanvas = this.heightCanvas; - var heightChart = heightCanvas - this.top - this.bottom; + Processor3D.prototype.tempChangeAspectRatioForPie = function () { + let perspectiveDepth = this.depthPerspective; - var points = [], faces = []; + let widthCanvas = this.widthCanvas; + let originalWidthChart = widthCanvas - this.left - this.right; - points.push(new Point3D(this.left + originalWidthChart / 2, this.top, perspectiveDepth, this)); - points.push(new Point3D(this.left, this.top, perspectiveDepth / 2, this)); - points.push(new Point3D(this.left + originalWidthChart, this.top, perspectiveDepth / 2, this)); - points.push(new Point3D(this.left + originalWidthChart / 2, this.top, 0, this)); + let heightCanvas = this.heightCanvas; + let heightChart = heightCanvas - this.top - this.bottom; - points.push(new Point3D(this.left + originalWidthChart / 2, this.top + heightChart, perspectiveDepth, this)); - points.push(new Point3D(this.left, this.top + heightChart, perspectiveDepth / 2, this)); - points.push(new Point3D(this.left + originalWidthChart, this.top + heightChart, perspectiveDepth / 2, this)); - points.push(new Point3D(this.left + originalWidthChart / 2, this.top + heightChart, 0, this)); + let points = [], faces = []; - faces.push([0, 1, 2, 3]); - faces.push([2, 5, 4, 3]); - faces.push([1, 6, 7, 0]); - faces.push([6, 5, 4, 7]); - faces.push([7, 4, 3, 0]); - faces.push([1, 6, 2, 5]); + points.push(new Point3D(this.left + originalWidthChart / 2, this.top, perspectiveDepth, this)); + points.push(new Point3D(this.left, this.top, perspectiveDepth / 2, this)); + points.push(new Point3D(this.left + originalWidthChart, this.top, perspectiveDepth / 2, this)); + points.push(new Point3D(this.left + originalWidthChart / 2, this.top, 0, this)); - var minMaxOx = this._getMinMaxOx(points, faces); - var minMaxOy = this._getMinMaxOy(points, faces); + points.push(new Point3D(this.left + originalWidthChart / 2, this.top + heightChart, perspectiveDepth, this)); + points.push(new Point3D(this.left, this.top + heightChart, perspectiveDepth / 2, this)); + points.push(new Point3D(this.left + originalWidthChart, this.top + heightChart, perspectiveDepth / 2, this)); + points.push(new Point3D(this.left + originalWidthChart / 2, this.top + heightChart, 0, this)); - var kF = ((minMaxOx.right - minMaxOx.left) / originalWidthChart); - if ((minMaxOy.bottom - minMaxOy.top) / kF > heightChart) { - kF = ((minMaxOy.bottom - minMaxOy.top) / heightChart); - } + faces.push([0, 1, 2, 3]); + faces.push([2, 5, 4, 3]); + faces.push([1, 6, 7, 0]); + faces.push([6, 5, 4, 7]); + faces.push([7, 4, 3, 0]); + faces.push([1, 6, 2, 5]); - this.aspectRatioX = this.aspectRatioX * kF; - this.aspectRatioY = this.aspectRatioY * kF; - this.aspectRatioZ = this.aspectRatioZ * kF; -}; + let minMaxOx = this._getMinMaxOx(points, faces); + let minMaxOy = this._getMinMaxOy(points, faces); + + let kF = ((minMaxOx.right - minMaxOx.left) / originalWidthChart); + if ((minMaxOy.bottom - minMaxOy.top) / kF > heightChart) { + kF = ((minMaxOy.bottom - minMaxOy.top) / heightChart); + } + + this.aspectRatioX = this.aspectRatioX * kF; + this.aspectRatioY = this.aspectRatioY * kF; + this.aspectRatioZ = this.aspectRatioZ * kF; + }; Processor3D.prototype.calculateCommonOptions = function () { this.orientationCatAx = this.chartSpace && this.chartSpace.chart.plotArea.catAx ? this.chartSpace.chart.plotArea.catAx.getOrientation() : ORIENTATION_MIN_MAX; this.orientationValAx = this.chartSpace && this.chartSpace.chart.plotArea.valAx ? this.chartSpace.chart.plotArea.valAx.getOrientation() : ORIENTATION_MIN_MAX; }; -Processor3D.prototype._calculateAutoHPercent = function () { - var widthLine = this.widthCanvas - (this.left + this.right); - var heightLine = this.heightCanvas - (this.top + this.bottom); + Processor3D.prototype._calculateAutoHPercent = function () { + let widthLine = this.widthCanvas - (this.left + this.right); + let heightLine = this.heightCanvas - (this.top + this.bottom); - if (this.hPercent == null) { - this.hPercent = this.view3D.hPercent === null ? (heightLine / widthLine) : this.view3D.hPercent / 100; - if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && ((this.view3D.hPercent === null && this.view3D.getRAngAx()) || (this.view3D.hPercent !== null && !this.view3D.getRAngAx()))) - this.hPercent = 1 / this.hPercent; + if (this.hPercent == null) { + this.hPercent = this.view3D.hPercent === null ? (heightLine / widthLine) : this.view3D.hPercent / 100; + if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && + ((this.view3D.hPercent === null && this.view3D.getRAngAx()) || (this.view3D.hPercent !== null && !this.view3D.getRAngAx()))) { + this.hPercent = 1 / this.hPercent; + } + + if (AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type) { + this.hPercent = 0.12; + //this.view3D.depthPercent = 180; + } - if (AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type) { - this.hPercent = 0.12; - //this.view3D.depthPercent = 180; } + }; - } -}; + Processor3D.prototype._recalculateScaleWithMaxWidth = function () { + let widthLine = this.widthCanvas - (this.left + this.right); + let heightLine = this.heightCanvas - (this.top + this.bottom); + let widthCanvas = this.widthCanvas; + //todo оптимальную ширину нужно пересмотреть + //оптимальная ширина - ширина при которой не происходит масштабирования по ширине + let optimalWidth = heightLine * 10; + + let subType = this.chartsDrawer.calcProp.subType; + let type = this.chartsDrawer.calcProp.type; + let isStandardType = subType === "standard" || type === AscFormat.c_oChartTypes.Line || (type === AscFormat.c_oChartTypes.Area && subType === "normal") || type === + AscFormat.c_oChartTypes.Surface; + + let optimalWidthLine, kF; + if (!isStandardType) { + this.widthCanvas = optimalWidth + (this.left + this.right); + this._calculateScaleNStandard(); + optimalWidthLine = Math.abs(this.depthPerspective * Math.sin(-this.angleOy)) + ((this.widthCanvas - (this.left + this.right)) / this.aspectRatioX) / this.scaleX; + kF = optimalWidthLine / widthLine; + + if (optimalWidthLine < widthLine) { + this.widthCanvas = widthCanvas; + this._calculateScaleNStandard(); + } else { + this.aspectRatioX = widthLine / ((optimalWidthLine - Math.abs(this.depthPerspective * Math.sin(-this.angleOy))) / kF); + this.scaleY = this.scaleY * kF; + this.scaleZ = this.scaleZ * kF; -Processor3D.prototype._recalculateScaleWithMaxWidth = function () { - var widthLine = this.widthCanvas - (this.left + this.right); - var heightLine = this.heightCanvas - (this.top + this.bottom); - var widthCanvas = this.widthCanvas; - //todo оптимальную ширину нужно пересмотреть - //оптимальная ширина - ширина при которой не происходит масштабирования по ширине - var optimalWidth = heightLine * 10; - - var subType = this.chartsDrawer.calcProp.subType; - var type = this.chartsDrawer.calcProp.type; - var isStandardType = subType === "standard" || type === AscFormat.c_oChartTypes.Line || (type === AscFormat.c_oChartTypes.Area && subType === "normal") || type === AscFormat.c_oChartTypes.Surface; - - var optimalWidthLine, kF; - if (!isStandardType) { - this.widthCanvas = optimalWidth + (this.left + this.right); - this._calculateScaleNStandard(); - optimalWidthLine = Math.abs(this.depthPerspective * Math.sin(-this.angleOy)) + ((this.widthCanvas - (this.left + this.right)) / this.aspectRatioX) / this.scaleX; - kF = optimalWidthLine / widthLine; + this.widthCanvas = widthCanvas; + } - if (optimalWidthLine < widthLine) { - this.widthCanvas = widthCanvas; - this._calculateScaleNStandard(); + this._recalculateCameraDiff(); } else { - this.aspectRatioX = widthLine / ((optimalWidthLine - Math.abs(this.depthPerspective * Math.sin(-this.angleOy))) / kF); - this.scaleY = this.scaleY * kF; - this.scaleZ = this.scaleZ * kF; + let scaleX = this.scaleX; + let scaleY = this.scaleY; + let scaleZ = this.scaleZ; - this.widthCanvas = widthCanvas; - } + let aspectRatioX = this.aspectRatioX; + let aspectRatioY = this.aspectRatioY; + let aspectRatioZ = this.aspectRatioZ; - this._recalculateCameraDiff(); - } else { - var scaleX = this.scaleX; - var scaleY = this.scaleY; - var scaleZ = this.scaleZ; + //если будут проблемы с поворотом standard диграмм, раскомментровать! + //TODO протестировать, и если не будет проблем, то убрать if-else + if (Math.abs(this.angleOy) > Math.PI) { + //рассчитываем параметры диаграммы при оптимальной ширине + this.widthCanvas = optimalWidth + (this.left + this.right); - var aspectRatioX = this.aspectRatioX; - var aspectRatioY = this.aspectRatioY; - var aspectRatioZ = this.aspectRatioZ; + this.calaculate3DProperties(null, null, true); - //если будут проблемы с поворотом standard диграмм, раскомментровать! - //TODO протестировать, и если не будет проблем, то убрать if-else - if (Math.abs(this.angleOy) > Math.PI) { - //рассчитываем параметры диаграммы при оптимальной ширине - this.widthCanvas = optimalWidth + (this.left + this.right); + let newDepth = Math.abs(this.depthPerspective * Math.sin(-this.angleOy)); + optimalWidthLine = newDepth + ((this.widthCanvas - (this.left + this.right)) / this.aspectRatioX) / this.scaleX; + kF = optimalWidthLine / widthLine; - this.calaculate3DProperties(null, null, true); + if (optimalWidthLine < widthLine) { + this.widthCanvas = widthCanvas; + this.scaleX = scaleX; + this.scaleY = scaleY; + this.scaleZ = scaleZ; - var newDepth = Math.abs(this.depthPerspective * Math.sin(-this.angleOy)); - optimalWidthLine = newDepth + ((this.widthCanvas - (this.left + this.right)) / this.aspectRatioX) / this.scaleX; - kF = optimalWidthLine / widthLine; + this.aspectRatioX = aspectRatioX; + this.aspectRatioY = aspectRatioY; + this.aspectRatioZ = aspectRatioZ; + + return; + } + + this.aspectRatioX = widthLine / ((optimalWidthLine - newDepth) / kF); + this.scaleY = this.scaleY * kF; + this.scaleZ = this.scaleZ * kF; - if (optimalWidthLine < widthLine) { this.widthCanvas = widthCanvas; - this.scaleX = scaleX; - this.scaleY = scaleY; - this.scaleZ = scaleZ; - this.aspectRatioX = aspectRatioX; - this.aspectRatioY = aspectRatioY; - this.aspectRatioZ = aspectRatioZ; + this._recalculateCameraDiff(); + } else { + //рассчитываем параметры диаграммы при оптимальной ширине + this.widthCanvas = optimalWidth + (this.left + this.right); + this.calaculate3DProperties(null, null, true); - return; - } + optimalWidthLine = this.depthPerspective * Math.sin(-this.angleOy) + ((this.widthCanvas - (this.left + this.right)) / this.aspectRatioX) / this.scaleX; - this.aspectRatioX = widthLine / ((optimalWidthLine - newDepth) / kF); - this.scaleY = this.scaleY * kF; - this.scaleZ = this.scaleZ * kF; + if (optimalWidthLine < widthLine) { + this.widthCanvas = widthCanvas; + this.scaleX = scaleX; + this.scaleY = scaleY; + this.scaleZ = scaleZ; - this.widthCanvas = widthCanvas; + this.aspectRatioX = aspectRatioX; + this.aspectRatioY = aspectRatioY; + this.aspectRatioZ = aspectRatioZ; - this._recalculateCameraDiff(); - } else { - //рассчитываем параметры диаграммы при оптимальной ширине - this.widthCanvas = optimalWidth + (this.left + this.right); - this.calaculate3DProperties(null, null, true); + return; + } - optimalWidthLine = this.depthPerspective * Math.sin(-this.angleOy) + ((this.widthCanvas - (this.left + this.right)) / this.aspectRatioX) / this.scaleX; + kF = optimalWidthLine / widthLine; + this.aspectRatioX = widthLine / ((optimalWidthLine - this.depthPerspective * Math.sin(-this.angleOy)) / kF); + this.scaleY = this.scaleY * kF; + this.scaleZ = this.scaleZ * kF; - if (optimalWidthLine < widthLine) { this.widthCanvas = widthCanvas; - this.scaleX = scaleX; - this.scaleY = scaleY; - this.scaleZ = scaleZ; - - this.aspectRatioX = aspectRatioX; - this.aspectRatioY = aspectRatioY; - this.aspectRatioZ = aspectRatioZ; - return; + this._recalculateCameraDiff(); } + } + }; - kF = optimalWidthLine / widthLine; - this.aspectRatioX = widthLine / ((optimalWidthLine - this.depthPerspective * Math.sin(-this.angleOy)) / kF); - this.scaleY = this.scaleY * kF; - this.scaleZ = this.scaleZ * kF; + Processor3D.prototype._calculateScaleNStandard = function () { + let seriesProps = this.chartsDrawer.calculateFirstChartCountSeries(); + let ptCount = seriesProps.points; - this.widthCanvas = widthCanvas; + let widthLine = this.widthCanvas - (this.left + this.right); + let heightLine = this.heightCanvas - (this.top + this.bottom); - this._recalculateCameraDiff(); - } - } -}; + let trueDepth = Math.abs(this.depthPerspective * Math.sin(-this.angleOx)); + let mustHeight = heightLine - trueDepth; + let mustWidth = this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar ? mustHeight * this.hPercent : mustHeight / this.hPercent; -Processor3D.prototype._calculateScaleNStandard = function () { - var ptCount = this.chartsDrawer.calcProp.ptCount; + let areaStackedKf = this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area && this.chartsDrawer.calcProp.subType !== "normal" ? (ptCount / ((ptCount - 1))) : 1; - var widthLine = this.widthCanvas - (this.left + this.right); - var heightLine = this.heightCanvas - (this.top + this.bottom); + //без маштабирования + if (this.angleOy === 0) { + this.aspectRatioX = ((this.widthCanvas - (this.left + this.right)) / mustWidth) / areaStackedKf; + this.scaleX = 1; + this.scaleY = 1; + this.aspectRatioY = heightLine / mustHeight; + } else { + this.aspectRatioX = ((this.widthCanvas - (this.left + this.right)) / mustWidth) / areaStackedKf; + this.scaleX = 1; + this.scaleY = 1; + this.aspectRatioY = heightLine / mustHeight; + } - var trueDepth = Math.abs(this.depthPerspective * Math.sin(-this.angleOx)); - var mustHeight = heightLine - trueDepth; - var mustWidth = this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar ? mustHeight * this.hPercent : mustHeight / this.hPercent; + let optimalWidthLine = (widthLine / this.aspectRatioX) / this.scaleX; - var areaStackedKf = this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area && this.chartsDrawer.calcProp.subType !== "normal" ? (ptCount / ((ptCount - 1))) : 1; - //без маштабирования - if (this.angleOy === 0) { - this.aspectRatioX = ((this.widthCanvas - (this.left + this.right)) / mustWidth) / areaStackedKf; - this.scaleX = 1; - this.scaleY = 1; - this.aspectRatioY = heightLine / mustHeight; - } else { - this.aspectRatioX = ((this.widthCanvas - (this.left + this.right)) / mustWidth) / areaStackedKf; - this.scaleX = 1; - this.scaleY = 1; - this.aspectRatioY = heightLine / mustHeight; - } - - var optimalWidthLine = (widthLine / this.aspectRatioX) / this.scaleX; + if (optimalWidthLine < widthLine) { + return; + } + let kF = optimalWidthLine / (widthLine); + this.aspectRatioX = kF * this.aspectRatioX; + this.scaleY = this.scaleY * kF; + this.scaleZ = this.scaleZ * kF; + }; - if (optimalWidthLine < widthLine) { - return; - } + Processor3D.prototype._recalculateCameraDiff = function () { + this.cameraDiffX = 0; + this.cameraDiffY = 0; + this.cameraDiffZ = 0; - var kF = optimalWidthLine / (widthLine); - this.aspectRatioX = kF * this.aspectRatioX; - this.scaleY = this.scaleY * kF; - this.scaleZ = this.scaleZ * kF; -}; + this._calculateCameraDiff(); + }; -Processor3D.prototype._recalculateCameraDiff = function () { - this.cameraDiffX = 0; - this.cameraDiffY = 0; - this.cameraDiffZ = 0; + Processor3D.prototype.calculateZPositionValAxis = function () { + let result = 0; + if (!this.view3D.getRAngAx()) { + result = this.orientationCatAx !== ORIENTATION_MIN_MAX ? this.depthPerspective : 0; + if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar) { + let angleOyAbs = Math.abs(this.angleOy); + if ((angleOyAbs >= Math.PI / 2 && angleOyAbs < Math.PI) || (angleOyAbs >= 3 * Math.PI / 2 && angleOyAbs < 2 * Math.PI)) { + result = this.orientationCatAx !== ORIENTATION_MIN_MAX ? 0 : this.depthPerspective; + } + } else { + if (this.orientationCatAx !== ORIENTATION_MIN_MAX) { + result = Math.cos(this.angleOy) > 0 ? this.depthPerspective : 0; + } else { + result = Math.cos(this.angleOy) > 0 ? 0 : this.depthPerspective; + } + } + } else if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar && this.orientationCatAx !== ORIENTATION_MIN_MAX && this.depthPerspective !== undefined) { + result = this.depthPerspective; + } else if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && this.orientationCatAx !== ORIENTATION_MIN_MAX && this.depthPerspective !== undefined) { + //if(this.chartSpace.chart.plotArea.valAx && this.chartSpace.chart.plotArea.valAx.yPoints && this.chartSpace.chart.plotArea.catAx.posY === this.chartSpace.chart.plotArea.valAx.yPoints[0].pos) + result = this.depthPerspective; + } - this._calculateCameraDiff(); -}; + return result; + }; -Processor3D.prototype.calculateZPositionValAxis = function () { - var result = 0; - if (!this.view3D.getRAngAx()) { - result = this.orientationCatAx !== ORIENTATION_MIN_MAX ? this.depthPerspective : 0; - if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar) { - var angleOyAbs = Math.abs(this.angleOy); - if ((angleOyAbs >= Math.PI / 2 && angleOyAbs < Math.PI) || (angleOyAbs >= 3 * Math.PI / 2 && angleOyAbs < 2 * Math.PI)) - result = this.orientationCatAx !== ORIENTATION_MIN_MAX ? 0 : this.depthPerspective; - } else { - if (this.orientationCatAx !== ORIENTATION_MIN_MAX) { + Processor3D.prototype.calculateZPositionCatAxis = function () { + let result = 0; + if (!this.view3D.getRAngAx()) { + if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && this.orientationValAx !== ORIENTATION_MIN_MAX) { result = Math.cos(this.angleOy) > 0 ? this.depthPerspective : 0; } else { result = Math.cos(this.angleOy) > 0 ? 0 : this.depthPerspective; } + } else if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar && this.orientationValAx !== ORIENTATION_MIN_MAX && this.depthPerspective !== undefined) { + if (this.chartSpace.chart.plotArea.valAx && this.chartSpace.chart.plotArea.valAx.yPoints && this.chartSpace.chart.plotArea.catAx.posY === + this.chartSpace.chart.plotArea.valAx.yPoints[0].pos) { + result = this.depthPerspective; + } + } else if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && this.orientationValAx !== ORIENTATION_MIN_MAX && this.depthPerspective !== undefined) { + result = this.depthPerspective; } - } else if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar && this.orientationCatAx !== ORIENTATION_MIN_MAX && this.depthPerspective !== undefined) { - result = this.depthPerspective; - } else if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && this.orientationCatAx !== ORIENTATION_MIN_MAX && this.depthPerspective !== undefined) { - //if(this.chartSpace.chart.plotArea.valAx && this.chartSpace.chart.plotArea.valAx.yPoints && this.chartSpace.chart.plotArea.catAx.posY === this.chartSpace.chart.plotArea.valAx.yPoints[0].pos) - result = this.depthPerspective; - } - return result; -}; + return result; + }; -Processor3D.prototype.calculateZPositionCatAxis = function () { - var result = 0; - if (!this.view3D.getRAngAx()) { - if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && this.orientationValAx !== ORIENTATION_MIN_MAX) { - result = Math.cos(this.angleOy) > 0 ? this.depthPerspective : 0; - } else { - result = Math.cos(this.angleOy) > 0 ? 0 : this.depthPerspective; + Processor3D.prototype.calculateXPositionSerAxis = function () { + if (!this.view3D.getRAngAx()) { + return Math.sin(this.angleOy) > 0; } - } else if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar && this.orientationValAx !== ORIENTATION_MIN_MAX && this.depthPerspective !== undefined) { - if (this.chartSpace.chart.plotArea.valAx && this.chartSpace.chart.plotArea.valAx.yPoints && this.chartSpace.chart.plotArea.catAx.posY === this.chartSpace.chart.plotArea.valAx.yPoints[0].pos) - result = this.depthPerspective; - } else if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && this.orientationValAx !== ORIENTATION_MIN_MAX && this.depthPerspective !== undefined) { - result = this.depthPerspective; - } - - return result; -}; - -Processor3D.prototype.calculateXPositionSerAxis = function () { - if (!this.view3D.getRAngAx()) { - return Math.sin(this.angleOy) > 0; - } -}; + }; -Processor3D.prototype.calculateFloorPosition = function () { - var res, absOy; + Processor3D.prototype.calculateFloorPosition = function () { + let res, absOy; - if (this.view3D.getRAngAx()) { - if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar) { - absOy = Math.abs(this.angleOy); - res = c_oChartFloorPosition.Left; - if (absOy > Math.PI) { - res = c_oChartFloorPosition.Right; - } - } else { - res = c_oChartFloorPosition.Bottom; - if (this.angleOx > 0) { - res = c_oChartFloorPosition.None; + if (this.view3D.getRAngAx()) { + if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar) { + absOy = Math.abs(this.angleOy); + res = c_oChartFloorPosition.Left; + if (absOy > Math.PI) { + res = c_oChartFloorPosition.Right; + } + } else { + res = c_oChartFloorPosition.Bottom; + if (this.angleOx > 0) { + res = c_oChartFloorPosition.None; + } } - } - } else { - if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar) { - absOy = Math.abs(this.angleOy); - res = c_oChartFloorPosition.Left; - if (absOy > Math.PI) { - res = c_oChartFloorPosition.Right; - } } else { - res = c_oChartFloorPosition.Bottom; - if (this.angleOx > 0) { - res = c_oChartFloorPosition.None; + if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar) { + absOy = Math.abs(this.angleOy); + res = c_oChartFloorPosition.Left; + if (absOy > Math.PI) { + res = c_oChartFloorPosition.Right; + } + } else { + res = c_oChartFloorPosition.Bottom; + if (this.angleOx > 0) { + res = c_oChartFloorPosition.None; + } } } - } - return res; -}; - -//***functions for complete transformation point*** -Processor3D.prototype.convertAndTurnPoint = function (x, y, z, isNScale, isNRotate, isNProject) { - var res = null; + return res; + }; - if (this.view3D.getRAngAx()) { - res = this.convertAndTurnPointRAngAx(x, y, z); - } else { - res = this.convertAndTurnPointPerspective(x, y, z, isNScale, isNRotate, isNProject); - } + //***functions for complete transformation point*** + Processor3D.prototype.convertAndTurnPoint = function (x, y, z, isNScale, isNRotate, isNProject) { + let res = null; - return res; -}; + if (this.view3D.getRAngAx()) { + res = this.convertAndTurnPointRAngAx(x, y, z); + } else { + res = this.convertAndTurnPointPerspective(x, y, z, isNScale, isNRotate, isNProject); + } -Processor3D.prototype.convertAndTurnPointRAngAx = function (x, y, z) { - var heightChart = this.heightCanvas - this.top - this.bottom; - var widthOriginalChart = this.widthCanvas - this.left - this.right; + return res; + }; - var point3D = new Point3D(x, y, z, this); - this.scale(point3D); + Processor3D.prototype.convertAndTurnPointRAngAx = function (x, y, z) { + let heightChart = this.heightCanvas - this.top - this.bottom; - //diff - var centerXDiff = heightChart / 2 + this.left / 2; - var centerYDiff = heightChart / 2 + this.top; - var centerZDiff = this.depthPerspective / 2; + let point3D = new Point3D(x, y, z, this); + this.scale(point3D); - point3D.offset(-centerXDiff, -centerYDiff, -centerZDiff); + //diff + let centerXDiff = heightChart / 2 + this.left / 2; + let centerYDiff = heightChart / 2 + this.top; + let centerZDiff = this.depthPerspective / 2; - //rotate - var matrixRotateAllAxis = this._shearXY(); - point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); + point3D.offset(-centerXDiff, -centerYDiff, -centerZDiff); - // diff camera for charts write into rect - point3D.offset(this.cameraDiffX, this.cameraDiffY, this.cameraDiffZ); + //rotate + let matrixRotateAllAxis = this._shearXY(); + point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); - //undiff - var specialReverseDiff = this.widthCanvas / 2 + (this.left - this.right) / 2; - point3D.offset(specialReverseDiff, centerYDiff, centerZDiff); + // diff camera for charts write into rect + point3D.offset(this.cameraDiffX, this.cameraDiffY, this.cameraDiffZ); - return {x: point3D.x, y: point3D.y, z: z}; -}; + //undiff + let specialReverseDiff = this.widthCanvas / 2 + (this.left - this.right) / 2; + point3D.offset(specialReverseDiff, centerYDiff, centerZDiff); -Processor3D.prototype.convertAndTurnPointPerspective = function (x, y, z, isNScale, isNRotate, isNProject) { - var point3D = new Point3D(x, y, z, this); + return {x: point3D.x, y: point3D.y, z: z}; + }; - if (!isNScale) { - this.scale(point3D); - } + Processor3D.prototype.convertAndTurnPointPerspective = function (x, y, z, isNScale, isNRotate, isNProject) { + let point3D = new Point3D(x, y, z, this); - if (!isNRotate) { - this.rotatePerspective(point3D); - } + if (!isNScale) { + this.scale(point3D); + } - if (!isNProject) { - this.projectPerspective(point3D); - } + if (!isNRotate) { + this.rotatePerspective(point3D); + } - return {x: point3D.x, y: point3D.y, z: point3D.z}; -}; + if (!isNProject) { + this.projectPerspective(point3D); + } -Processor3D.prototype.scale = function (point3D) { - //aspectRatio - point3D.x = point3D.x / this.aspectRatioX; - point3D.y = point3D.y / this.aspectRatioY; + return {x: point3D.x, y: point3D.y, z: point3D.z}; + }; - point3D.x = point3D.x / this.scaleX; - point3D.y = point3D.y / this.scaleY; - point3D.z = point3D.z / this.scaleZ; -}; + Processor3D.prototype.scale = function (point3D) { + //aspectRatio + point3D.x = point3D.x / this.aspectRatioX; + point3D.y = point3D.y / this.aspectRatioY; + point3D.x = point3D.x / this.scaleX; + point3D.y = point3D.y / this.scaleY; + point3D.z = point3D.z / this.scaleZ; + }; -Processor3D.prototype.rotatePerspective = function (point3D) { - //diff - point3D.offset((-this.widthCanvas / 2) / this.aspectRatioX, (-this.heightCanvas / 2) / this.aspectRatioY, 0); - //rotate - var matrixRotateAllAxis = this._getMatrixRotateAllAxis(); - point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); + Processor3D.prototype.rotatePerspective = function (point3D) { + //diff + point3D.offset((-this.widthCanvas / 2) / this.aspectRatioX, (-this.heightCanvas / 2) / this.aspectRatioY, 0); + //rotate + let matrixRotateAllAxis = this._getMatrixRotateAllAxis(); + point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); - point3D.offset((this.widthCanvas / 2) / this.aspectRatioX, (this.heightCanvas / 2) / this.aspectRatioY, 0); -}; + point3D.offset((this.widthCanvas / 2) / this.aspectRatioX, (this.heightCanvas / 2) / this.aspectRatioY, 0); + }; + Processor3D.prototype.projectPerspective = function (point3D) { + //diff + point3D.offset((-this.widthCanvas / 2) / this.aspectRatioX, (-this.heightCanvas / 2) / this.aspectRatioY /** aspectRatio*/, 0); -Processor3D.prototype.projectPerspective = function (point3D) { - //diff - point3D.offset((-this.widthCanvas / 2) / this.aspectRatioX, (-this.heightCanvas / 2) / this.aspectRatioY /** aspectRatio*/, 0); + // diff camera for charts write into rect + point3D.offset(this.cameraDiffX, this.cameraDiffY, this.cameraDiffZ); - // diff camera for charts write into rect - point3D.offset(this.cameraDiffX, this.cameraDiffY, this.cameraDiffZ); + //project + let projectiveMatrix = this._getPerspectiveProjectionMatrix(1 / (this.rPerspective)); + point3D.project(projectiveMatrix); - //project - var projectiveMatrix = this._getPerspectiveProjectionMatrix(1 / (this.rPerspective)); - point3D.project(projectiveMatrix); + //undiff + let specialReverseDiffX = this.widthCanvas / 2 + (this.left - this.right) / 2; + let specialReverseDiffY = this.heightCanvas / 2 + (this.top - this.bottom) / 2; + point3D.offset(specialReverseDiffX, specialReverseDiffY, 0); + }; - //undiff - var specialReverseDiffX = this.widthCanvas / 2 + (this.left - this.right) / 2; - var specialReverseDiffY = this.heightCanvas / 2 + (this.top - this.bottom) / 2; - point3D.offset(specialReverseDiffX, specialReverseDiffY, 0); -}; + //functions for step transformation point + Processor3D.prototype.calculatePointManual = function (x, y, z, diffX, diffY, diffZ) { + diffX = diffX !== undefined ? diffX : this.cameraDiffX; + diffY = diffY !== undefined ? diffY : this.cameraDiffY; + diffZ = diffZ !== undefined ? diffZ : this.cameraDiffZ; -//functions for step transformation point -Processor3D.prototype.calculatePointManual = function (x, y, z, diffX, diffY, diffZ) { - diffX = diffX !== undefined ? diffX : this.cameraDiffX; - diffY = diffY !== undefined ? diffY : this.cameraDiffY; - diffZ = diffZ !== undefined ? diffZ : this.cameraDiffZ; + let diffAndScalePoints = this.diffAndScale(x, y, z); + let x11 = diffAndScalePoints.x; + let y11 = diffAndScalePoints.y; + let z11 = diffAndScalePoints.z; - var diffAndScalePoints = this.diffAndScale(x, y, z); - var x11 = diffAndScalePoints.x; - var y11 = diffAndScalePoints.y; - var z11 = diffAndScalePoints.z; + let rotatePoints = this.rotate(x11, y11, z11); + let x111 = rotatePoints.x; + let y111 = rotatePoints.y; + let z111 = rotatePoints.z; - var rotatePoints = this.rotate(x11, y11, z11); - var x111 = rotatePoints.x; - var y111 = rotatePoints.y; - var z111 = rotatePoints.z; + let x1111 = x111 + diffX; + let y1111 = y111 + diffY; + let z1111 = z111 + diffZ; - var x1111 = x111 + diffX; - var y1111 = y111 + diffY; - var z1111 = z111 + diffZ; + let projectPoints = this.project(x1111, y1111, z1111); + let x11111 = projectPoints.x; + let y11111 = projectPoints.y; - var projectPoints = this.project(x1111, y1111, z1111); - var x11111 = projectPoints.x; - var y11111 = projectPoints.y; + return {x: x11111, y: y11111}; + }; - return {x: x11111, y: y11111}; -}; + Processor3D.prototype.diffAndScale = function (x, y, z) { + let aRX = this.aspectRatioX; + let aRY = this.aspectRatioY; -Processor3D.prototype.diffAndScale = function (x, y, z) { - var aRX = this.aspectRatioX; - var aRY = this.aspectRatioY; + let w = this.widthCanvas; + let h = this.heightCanvas; - var w = this.widthCanvas; - var h = this.heightCanvas; + let x1 = x / aRX; + let x11 = x1 - (w / 2) / aRX; - var x1 = x / aRX; - var x11 = x1 - (w / 2) / aRX; + let z11 = z; - var z1 = z; - var z11 = z1; + let y1 = y / aRY; + let y11 = y1 - (h / 2) / aRY; - var y1 = y / aRY; - var y11 = y1 - (h / 2) / aRY; + return {x: x11, y: y11, z: z11}; + }; - return {x: x11, y: y11, z: z11}; -}; + Processor3D.prototype.rotate = function (x11, y11, z11) { + let sinOY = Math.sin(-this.angleOy); + let cosOY = Math.cos(-this.angleOy); + let sinOX = Math.sin(-this.angleOx); + let cosOX = Math.cos(-this.angleOx); -Processor3D.prototype.rotate = function (x11, y11, z11) { - var sinOY = Math.sin(-this.angleOy); - var cosOY = Math.cos(-this.angleOy); - var sinOX = Math.sin(-this.angleOx); - var cosOX = Math.cos(-this.angleOx); + let x111 = z11 * sinOY + x11 * cosOY; + let y111 = x11 * sinOX * sinOY + y11 * cosOX - z11 * sinOX * cosOY; + let z111 = -x11 * sinOY * cosOX + y11 * sinOX + z11 * (cosOY * cosOX); - var x111 = z11 * sinOY + x11 * cosOY; - var y111 = x11 * sinOX * sinOY + y11 * cosOX - z11 * sinOX * cosOY; - var z111 = -x11 * sinOY * cosOX + y11 * sinOX + z11 * (cosOY * cosOX); + return {x: x111, y: y111, z: z111}; + }; - return {x: x111, y: y111, z: z111}; -}; + Processor3D.prototype.project = function (x1111, y1111, z1111) { + let fov = 1 / this.rPerspective; -Processor3D.prototype.project = function (x1111, y1111, z1111) { - var fov = 1 / this.rPerspective; + let w = this.widthCanvas; + let h = this.heightCanvas; - var w = this.widthCanvas; - var h = this.heightCanvas; + let x11111 = (fov * x1111) / (z1111 + fov) + w / 2; + let y11111 = (fov * y1111) / (z1111 + fov) + h / 2; - var x11111 = (fov * x1111) / (z1111 + fov) + w / 2; - var y11111 = (fov * y1111) / (z1111 + fov) + h / 2; + return {x: x11111, y: y11111}; + }; - return {x: x11111, y: y11111}; -}; + //exception for pie charts + Processor3D.prototype.convertAndTurnPointForPie = function (x, y, z) { + let heightChart = this.heightCanvas - this.top - this.bottom; -//exception for pie charts -Processor3D.prototype.convertAndTurnPointForPie = function (x, y, z, cameraDiffZ) { - var heightChart = this.heightCanvas - this.top - this.bottom; + let point3D = new Point3D(x, y, z, this); - //aspectRatio - /*x = x / this.aspectRatioX; - y = y / this.aspectRatioY; + //diff + let centerXDiff = heightChart / 2 + this.left / 2; + let centerYDiff = heightChart / 2 + this.top; + let centerZDiff = this.depthPerspective / 2; - x = x / this.scaleX; - y = y / this.scaleY; - z = z / this.scaleZ;*/ - var point3D = new Point3D(x, y, z, this); + point3D.offset(-centerXDiff, -centerYDiff, -centerZDiff); - //diff - var centerXDiff = heightChart / 2 + this.left / 2; - var centerYDiff = heightChart / 2 + this.top; - var centerZDiff = this.depthPerspective / 2; + //rotate + let matrixRotateAllAxis; + if (!this.view3D.getRAngAx()) { + matrixRotateAllAxis = this._getMatrixRotateAllAxis(); + } else { + matrixRotateAllAxis = this._shearXY(); + } + point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); - point3D.offset(-centerXDiff, -centerYDiff, -centerZDiff); + // diff camera for charts write into rect + point3D.offset(this.cameraDiffX, this.cameraDiffY, this.cameraDiffZ); - //rotate - var matrixRotateAllAxis; - if (!this.view3D.getRAngAx()) - matrixRotateAllAxis = this._getMatrixRotateAllAxis(); - else - matrixRotateAllAxis = this._shearXY(); + //project + let projectionPoint = point3D; + if (!this.view3D.getRAngAx()) { + let projectiveMatrix = this._getPerspectiveProjectionMatrix(1 / (this.rPerspective)); + projectionPoint = point3D.project(projectiveMatrix); + } - point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); + //undiff + let specialReverseDiff = this.widthCanvas / 2 + (this.left - this.right) / 2; + projectionPoint.offset(specialReverseDiff, centerYDiff, centerZDiff); - // diff camera for charts write into rect - point3D.offset(this.cameraDiffX, this.cameraDiffY, this.cameraDiffZ); + //console.log(" this.aspectRatioX: " + this.aspectRatioX + " this.aspectRatioY: " + this.aspectRatioY + " this.scaleX: " + this.scaleX + " this.scaleY: " + this.scaleY); - //project - var projectionPoint = point3D; - if (!this.view3D.getRAngAx()) { - var projectiveMatrix = this._getPerspectiveProjectionMatrix(1 / (this.rPerspective)); - projectionPoint = point3D.project(projectiveMatrix); - } + return {x: projectionPoint.x, y: projectionPoint.y}; + }; - //undiff - var specialReverseDiff = this.widthCanvas / 2 + (this.left - this.right) / 2; - projectionPoint.offset(specialReverseDiff, centerYDiff, centerZDiff); + Processor3D.prototype.calculatePropertiesForPieCharts = function () { + let sinAngleOx = Math.sin(-this.angleOx); + let cosAngleOx = Math.cos(-this.angleOx); + + let widthCharts = this.widthCanvas - this.left - this.right; + let heightCharts = this.heightCanvas - this.bottom - this.top; + let radius1 = widthCharts / 2; + let radius2 = radius1 * sinAngleOx; + let depth = ((widthCharts + 4.89) / 8.37) * cosAngleOx; + + if ((radius2 * 2 + depth) > heightCharts) { + let kF = (radius2 * 2 + depth) / heightCharts; + radius1 = radius1 / kF; + radius2 = radius2 / kF; + depth = depth / kF; + } - //console.log(" this.aspectRatioX: " + this.aspectRatioX + " this.aspectRatioY: " + this.aspectRatioY + " this.scaleX: " + this.scaleX + " this.scaleY: " + this.scaleY); + //ToDo временная правка для круговой диграммы с углом поворота 0 градусов + if (0 === radius2) { + radius2 = 1; + } - return {x: projectionPoint.x, y: projectionPoint.y}; -}; + return {radius1: radius1, radius2: radius2, depth: depth}; + }; -Processor3D.prototype.calculatePropertiesForPieCharts = function () { - var sinAngleOx = Math.sin(-this.angleOx); - var cosAngleOx = Math.cos(-this.angleOx); - - var widthCharts = this.widthCanvas - this.left - this.right; - var heightCharts = this.heightCanvas - this.bottom - this.top; - var radius1 = widthCharts / 2; - var radius2 = radius1 * sinAngleOx; - var depth = ((widthCharts + 4.89) / 8.37) * cosAngleOx; - - if ((radius2 * 2 + depth) > heightCharts) { - var kF = (radius2 * 2 + depth) / heightCharts; - radius1 = radius1 / kF; - radius2 = radius2 / kF; - depth = depth / kF; - } - //ToDo временная правка для круговой диграммы с углом поворота 0 градусов - if (0 === radius2) { - radius2 = 1; - } + //***functions for matrix transformation*** + Processor3D.prototype._shearXY = function () { + if (null === this.matrixShearXY) { + this.matrixShearXY = new Matrix4D(); - return {radius1: radius1, radius2: radius2, depth: depth}; -}; + this.matrixShearXY.a31 = Math.sin(-this.angleOy); + this.matrixShearXY.a32 = Math.sin(this.angleOx); + this.matrixShearXY.a33 = 0; + this.matrixShearXY.a44 = 0; + } + return this.matrixShearXY; + }; + Processor3D.prototype._shearXY2 = function () { + if (null === this.matrixShearXY) { + this.matrixShearXY = [[1, 0, 0, 0], [0, 1, 0, 0], [Math.sin(-this.angleOy), Math.sin(this.angleOx), 0, 0], [0, 0, 0, 0]]; + } + return this.matrixShearXY; + }; -//***functions for matrix transformation*** -Processor3D.prototype._shearXY = function () { - if (null === this.matrixShearXY) { - this.matrixShearXY = new Matrix4D(); + Processor3D.prototype._getMatrixRotateAllAxis = function () { + let matrixRotateOY = this._getMatrixRotateOy(); + let matrixRotateOX = this._getMatrixRotateOx(); - this.matrixShearXY.a31 = Math.sin(-this.angleOy); - this.matrixShearXY.a32 = Math.sin(this.angleOx); - this.matrixShearXY.a33 = 0; - this.matrixShearXY.a44 = 0; - } + /*result matrix - return this.matrixShearXY; -}; -Processor3D.prototype._shearXY2 = function () { - if (null === this.matrixShearXY) { - this.matrixShearXY = [[1, 0, 0, 0], [0, 1, 0, 0], [Math.sin(-this.angleOy), Math.sin(this.angleOx), 0, 0], [0, 0, 0, 0]]; - } - return this.matrixShearXY; -}; + |cosOy 0 sinOy 0| + |sinOx * sinOy cosOx -sinOx * cosOy 0| + |-sinOy * cosOx sinOx cosOy * cosOx 0| + |-sinOy 0 (cosOy + 1) 1|*/ -Processor3D.prototype._getMatrixRotateAllAxis = function () { - var matrixRotateOY = this._getMatrixRotateOy(); - var matrixRotateOX = this._getMatrixRotateOx(); + if (null === this.matrixRotateAllAxis) { + this.matrixRotateAllAxis = matrixRotateOY.multiply(matrixRotateOX); + } - /*итоговая матрица + return this.matrixRotateAllAxis; + }; - |cosOy 0 sinOy 0| - |sinOx * sinOy cosOx -sinOx * cosOy 0| - |-sinOy * cosOx sinOx cosOy * cosOx 0| - |-sinOy 0 (cosOy + 1) 1|*/ + Processor3D.prototype._getMatrixRotateOx = function () { + //todo array -> Float32Array ? + if (null === this.matrixRotateOx) { + this.matrixRotateOx = + new Matrix4D()/*[[1, 0, 0, 0], [0, Math.cos(-this.angleOx), Math.sin(-this.angleOx), 0], [0, - Math.sin(-this.angleOx), Math.cos(-this.angleOx), 1], [0, 0, 0, 1]]*/; - if (null === this.matrixRotateAllAxis) { - this.matrixRotateAllAxis = matrixRotateOY.multiply(matrixRotateOX); - } + let cos = Math.cos(-this.angleOx); + let sin = Math.sin(-this.angleOx); - return this.matrixRotateAllAxis; -}; + this.matrixRotateOx.a22 = cos; + this.matrixRotateOx.a23 = sin; + this.matrixRotateOx.a32 = -sin; + this.matrixRotateOx.a33 = cos; + this.matrixRotateOx.a34 = 1; + } -Processor3D.prototype._getMatrixRotateOx = function () { - //todo посмотреть возможность заменить массивы на Float32Array - if (null === this.matrixRotateOx) { - this.matrixRotateOx = new Matrix4D()/*[[1, 0, 0, 0], [0, Math.cos(-this.angleOx), Math.sin(-this.angleOx), 0], [0, - Math.sin(-this.angleOx), Math.cos(-this.angleOx), 1], [0, 0, 0, 1]]*/; + return this.matrixRotateOx; + }; - var cos = Math.cos(-this.angleOx); - var sin = Math.sin(-this.angleOx); + Processor3D.prototype._getMatrixRotateOy = function () { + if (null === this.matrixRotateOy) { + this.matrixRotateOy = + new Matrix4D()/*[[Math.cos(-this.angleOy), 0, -Math.sin(-this.angleOy), 0], [0, 1, 0, 0], [Math.sin(-this.angleOy), 0, Math.cos(-this.angleOy), 1], [0, 0, 0, 1]]*/; - this.matrixRotateOx.a22 = cos; - this.matrixRotateOx.a23 = sin; - this.matrixRotateOx.a32 = -sin; - this.matrixRotateOx.a33 = cos; - this.matrixRotateOx.a34 = 1; - } + let cos = Math.cos(-this.angleOy); + let sin = Math.sin(-this.angleOy); - return this.matrixRotateOx; -}; + this.matrixRotateOy.a11 = cos; + this.matrixRotateOy.a13 = -sin; + this.matrixRotateOy.a31 = sin; + this.matrixRotateOy.a33 = cos; + this.matrixRotateOy.a34 = 1; + } -Processor3D.prototype._getMatrixRotateOy = function () { - if (null === this.matrixRotateOy) { - this.matrixRotateOy = new Matrix4D()/*[[Math.cos(-this.angleOy), 0, -Math.sin(-this.angleOy), 0], [0, 1, 0, 0], [Math.sin(-this.angleOy), 0, Math.cos(-this.angleOy), 1], [0, 0, 0, 1]]*/; + return this.matrixRotateOy; + }; - var cos = Math.cos(-this.angleOy); - var sin = Math.sin(-this.angleOy); + Processor3D.prototype._getMatrixRotateOz = function () { + return [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]]; + }; - this.matrixRotateOy.a11 = cos; - this.matrixRotateOy.a13 = -sin; - this.matrixRotateOy.a31 = sin; - this.matrixRotateOy.a33 = cos; - this.matrixRotateOy.a34 = 1; - } + Processor3D.prototype._getPerspectiveProjectionMatrix = function (fov) { + /*let zf = this.rPerspective + this.depthPerspective; + let zn = this.rPerspective; + let q = zf / (zf - zn); + return [[1 / Math.tan(this.rPerspective / 2), 0, 0, 0], [0, 1 / Math.tan(this.rPerspective / 2), 0, 0], [0, 0, q, 1], [0, 0, -q * zn, 0]];*/ + //[[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1 / fov], [0, 0, 0, 1]] + if (null === this.projectMatrix) { + this.projectMatrix = new Matrix4D(); + this.projectMatrix.a33 = 0; + this.projectMatrix.a34 = 1 / fov; + } - return this.matrixRotateOy; -}; + return this.projectMatrix; + }; -Processor3D.prototype._getMatrixRotateOz = function () { - return [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]]; -}; + Processor3D.prototype.correctPointsPosition = function (chartSpace) { + if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Pie) { + return; + } -Processor3D.prototype._getPerspectiveProjectionMatrix = function (fov) { - /*var zf = this.rPerspective + this.depthPerspective; - var zn = this.rPerspective; - var q = zf / (zf - zn); - return [[1 / Math.tan(this.rPerspective / 2), 0, 0, 0], [0, 1 / Math.tan(this.rPerspective / 2), 0, 0], [0, 0, q, 1], [0, 0, -q * zn, 0]];*/ - //[[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1 / fov], [0, 0, 0, 1]] - if (null === this.projectMatrix) { - this.projectMatrix = new Matrix4D(); - this.projectMatrix.a33 = 0; - this.projectMatrix.a34 = 1 / fov; - } + let pxToMM = 1 / AscCommon.g_dKoef_pix_to_mm; + let t = this; + //коррективы для подписей + let xPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.catAx ? chartSpace.chart.plotArea.catAx.xPoints : null; + if (!xPoints) { + xPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.valAx ? chartSpace.chart.plotArea.valAx.xPoints : null; + } - return this.projectMatrix; -}; + let coordYAxisOx = chartSpace.chart.plotArea.catAx && chartSpace.chart.plotArea.catAx.posY; + if (!coordYAxisOx && chartSpace.chart.plotArea.valAx) { + coordYAxisOx = chartSpace.chart.plotArea.valAx.posY != undefined ? chartSpace.chart.plotArea.valAx.posY : chartSpace.chart.plotArea.valAx.posY; + } -Processor3D.prototype.correctPointsPosition = function (chartSpace) { - if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Pie) - return; + let yPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.valAx ? chartSpace.chart.plotArea.valAx.yPoints : null; + if (!yPoints) { + yPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.catAx ? chartSpace.chart.plotArea.catAx.yPoints : null; + } - var pxToMM = 1 / AscCommon.g_dKoef_pix_to_mm; - var t = this; - //коррективы для подписей - var xPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.catAx ? chartSpace.chart.plotArea.catAx.xPoints : null; - if (!xPoints) - xPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.valAx ? chartSpace.chart.plotArea.valAx.xPoints : null; + let coordXAxisOy; + if (chartSpace.chart.plotArea.catAx) { + coordXAxisOy = chartSpace.chart.plotArea.catAx.posX ? chartSpace.chart.plotArea.catAx.posX : chartSpace.chart.plotArea.catAx.xPos; + } + if (!coordXAxisOy && chartSpace.chart.plotArea.valAx) { + coordXAxisOy = chartSpace.chart.plotArea.valAx.posX != undefined ? chartSpace.chart.plotArea.valAx.posX : null; + } - var coordYAxisOx = chartSpace.chart.plotArea.catAx.posY; - if (!coordYAxisOx) - coordYAxisOx = chartSpace.chart.plotArea.valAx.posY != undefined ? chartSpace.chart.plotArea.valAx.posY : chartSpace.chart.plotArea.valAx.posY; + let correctPointsOx = function () { + let z = t.calculateZPositionCatAxis(); + let valCatAx = chartSpace.chart.plotArea.catAx; + if (!valCatAx.transformXPoints) { + valCatAx.transformXPoints = []; + } - var yPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.valAx ? chartSpace.chart.plotArea.valAx.yPoints : null; - if (!yPoints) - yPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.catAx ? chartSpace.chart.plotArea.catAx.yPoints : null; + for (let i = 0; i < xPoints.length; i++) { + let widthText = 0; + if (valCatAx && valCatAx.labels && t.orientationValAx !== ORIENTATION_MIN_MAX) { + widthText = valCatAx.labels.extY * pxToMM; + } - var coordXAxisOy = chartSpace.chart.plotArea.catAx.posX ? chartSpace.chart.plotArea.catAx.posX : chartSpace.chart.plotArea.catAx.xPos; - if (!coordXAxisOy) - coordXAxisOy = chartSpace.chart.plotArea.valAx.posX != undefined ? chartSpace.chart.plotArea.valAx.posX : null; + let point = t.convertAndTurnPoint(xPoints[i].pos * pxToMM, coordYAxisOx * pxToMM - widthText, z); - var correctPointsOx = function () { - var z = t.calculateZPositionCatAxis(); - var valCatAx = chartSpace.chart.plotArea.catAx; - if (!valCatAx.transformXPoints) - valCatAx.transformXPoints = []; + valCatAx.transformXPoints[i] = {x: point.x / pxToMM, y: point.y / pxToMM}; + } + }; - for (var i = 0; i < xPoints.length; i++) { - var widthText = 0; - if (valCatAx && valCatAx.labels && t.orientationValAx !== ORIENTATION_MIN_MAX) - widthText = valCatAx.labels.extY * pxToMM; + let correctPointsOxHBar = function () { + let z = t.calculateZPositionValAxis(); + let valCatAx = chartSpace.chart.plotArea.valAx; + if (!valCatAx.transformXPoints) { + valCatAx.transformXPoints = []; + } - var point = t.convertAndTurnPoint(xPoints[i].pos * pxToMM, coordYAxisOx * pxToMM - widthText, z); + for (let i = 0; i < xPoints.length; i++) { + let widthText = 0; + if (t.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && valCatAx && valCatAx.labels && t.orientationCatAx !== ORIENTATION_MIN_MAX) { + widthText = valCatAx.labels.extY * pxToMM; + } - valCatAx.transformXPoints[i] = {x: point.x / pxToMM, y: point.y / pxToMM}; - } - }; + let point = t.convertAndTurnPoint(xPoints[i].pos * pxToMM, coordYAxisOx * pxToMM - widthText, z); - var correctPointsOxHBar = function () { - var z = t.calculateZPositionValAxis(); - var valCatAx = chartSpace.chart.plotArea.valAx; - if (!valCatAx.transformXPoints) - valCatAx.transformXPoints = []; + valCatAx.transformXPoints[i] = {x: point.x / pxToMM, y: point.y / pxToMM}; + } + }; - for (var i = 0; i < xPoints.length; i++) { - var widthText = 0; - if (t.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && valCatAx && valCatAx.labels && t.orientationCatAx !== ORIENTATION_MIN_MAX) - widthText = valCatAx.labels.extY * pxToMM; + let correctPointsOy = function () { + let zPosition = t.calculateZPositionValAxis(); + let valCatAx = chartSpace.chart.plotArea.valAx; - var point = t.convertAndTurnPoint(xPoints[i].pos * pxToMM, coordYAxisOx * pxToMM - widthText, z); + if (!valCatAx.transformYPoints) { + valCatAx.transformYPoints = []; + } - valCatAx.transformXPoints[i] = {x: point.x / pxToMM, y: point.y / pxToMM}; - } - }; + for (let i = 0; i < yPoints.length; i++) { + let point = t.convertAndTurnPoint(coordXAxisOy * pxToMM, yPoints[i].pos * (pxToMM), zPosition); - var correctPointsOy = function () { - var zPosition = t.calculateZPositionValAxis(); - var valCatAx = chartSpace.chart.plotArea.valAx; + //TODO значения высчитать + let widthText = 5; + if (valCatAx && valCatAx.labels) { + widthText = valCatAx.labels.extX * pxToMM; + } - if (!valCatAx.transformYPoints) - valCatAx.transformYPoints = []; + if (t.orientationCatAx !== ORIENTATION_MIN_MAX) { + widthText = 0; + } - for (var i = 0; i < yPoints.length; i++) { - var point = t.convertAndTurnPoint(coordXAxisOy * pxToMM, yPoints[i].pos * (pxToMM), zPosition); + let diffXText = 0; + let angleOyAbs = Math.abs(t.angleOy); + if (!t.view3D.getRAngAx() && (angleOyAbs >= Math.PI / 2 && angleOyAbs < 3 * Math.PI / 2)) { + diffXText = -diffXText; + } - //TODO значения высчитать - var widthText = 5; - if (valCatAx && valCatAx.labels) - widthText = valCatAx.labels.extX * pxToMM; + valCatAx.transformYPoints[i] = { + x: (point.x - (diffXText + widthText)) / pxToMM, y: point.y / pxToMM + }; + } + }; - if (t.orientationCatAx !== ORIENTATION_MIN_MAX) { - widthText = 0; + let correctPointsOyHBar = function () { + let zPosition = t.calculateZPositionCatAxis(); + let valCatAx = chartSpace.chart.plotArea.catAx; + if (!valCatAx.transformYPoints) { + valCatAx.transformYPoints = []; } - var diffXText = 0; - var angleOyAbs = Math.abs(t.angleOy); - if (!t.view3D.getRAngAx() && (angleOyAbs >= Math.PI / 2 && angleOyAbs < 3 * Math.PI / 2)) - diffXText = -diffXText; + for (let i = 0; i < yPoints.length; i++) { + let point = t.convertAndTurnPoint(coordXAxisOy * pxToMM, yPoints[i].pos * (pxToMM), zPosition); - valCatAx.transformYPoints[i] = { - x: (point.x - (diffXText + widthText)) / pxToMM, - y: point.y / pxToMM - }; - } - }; + //TODO значения высчитать + let widthText = 0; + if (valCatAx && valCatAx.labels) { + widthText = valCatAx.labels.extX * pxToMM; + } - var correctPointsOyHBar = function () { - var zPosition = t.calculateZPositionCatAxis(); - var valCatAx = chartSpace.chart.plotArea.catAx; - if (!valCatAx.transformYPoints) - valCatAx.transformYPoints = []; + if (t.orientationValAx !== ORIENTATION_MIN_MAX) { + widthText -= 10; + } else { + widthText += 5; + } - for (var i = 0; i < yPoints.length; i++) { - var point = t.convertAndTurnPoint(coordXAxisOy * pxToMM, yPoints[i].pos * (pxToMM), zPosition); + valCatAx.transformYPoints[i] = {x: (point.x - widthText) / pxToMM, y: point.y / pxToMM}; + } + }; - //TODO значения высчитать - var widthText = 0; - if (valCatAx && valCatAx.labels) - widthText = valCatAx.labels.extX * pxToMM; - if (t.orientationValAx !== ORIENTATION_MIN_MAX) { - widthText -= 10; + if (xPoints) { + if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar) { + correctPointsOx(xPoints); } else { - widthText += 5; + correctPointsOxHBar(xPoints); } + } - valCatAx.transformYPoints[i] = {x: (point.x - widthText) / pxToMM, y: point.y / pxToMM}; + if (yPoints) { + if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar) { + correctPointsOy(yPoints); + } else { + correctPointsOyHBar(yPoints); + } } }; + Processor3D.prototype._calculatePerspective = function (view3D) { + let heightLine = this.heightCanvas - (this.top + this.bottom); - if (xPoints) { - if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar) - correctPointsOx(xPoints); - else - correctPointsOxHBar(xPoints); - } + let perspective = view3D && view3D.perspective ? view3D.perspective : global3DPersperctive; + if (view3D && 0 === view3D.perspective && this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface) { + perspective = 1; + } - if (yPoints) { - if (this.chartsDrawer.calcProp.type !== AscFormat.c_oChartTypes.HBar) - correctPointsOy(yPoints); - else - correctPointsOyHBar(yPoints); - } -}; + let alpha = perspective / 4;//в xml проиходит двойной угол(в параметрах ms стоит 40, приходит в xml 80) + //TODO this.top - this.bottom пересмотреть + let catt = ((heightLine / 2 + (Math.abs(this.top - this.bottom)))) / Math.tan((alpha / 360) * (Math.PI * 2)); + let rPerspective; + if (catt === 0) { + rPerspective = 0; + } else { + rPerspective = 1 / catt; + } -Processor3D.prototype._calculatePerspective = function (view3D) { - var heightLine = this.heightCanvas - (this.top + this.bottom); + this.rPerspective = rPerspective; + }; - var perspective = view3D && view3D.perspective ? view3D.perspective : global3DPersperctive; - if (view3D && 0 === view3D.perspective && this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface) { - perspective = 1; - } + Processor3D.prototype._calculateDepth = function () { + let widthOriginalChart = this.widthCanvas - (this.left + this.right); + let heightOriginalChart = this.heightCanvas - (this.top + this.bottom); + let subType = this.chartsDrawer.calcProp.subType; + let type = this.chartsDrawer.calcProp.type; + let defaultOverlap = (subType === "stacked" || subType === "stackedPer" || subType === "standard" || type === AscFormat.c_oChartTypes.Line || type === + AscFormat.c_oChartTypes.Area || type === AscFormat.c_oChartTypes.Surface) ? 100 : 0; + let overlap = AscFormat.isRealNumber(this.chartSpace.chart.plotArea.chart.overlap) ? (this.chartSpace.chart.plotArea.chart.overlap / 100) : (defaultOverlap / 100); + let gapWidth = this.chartSpace.chart.plotArea.chart.gapWidth != null ? (this.chartSpace.chart.plotArea.chart.gapWidth / 100) : (150 / 100); + let gapDepth = this.chartSpace.chart.plotArea.chart.gapDepth != null ? (this.chartSpace.chart.plotArea.chart.gapDepth / 100) : + type === AscFormat.c_oChartTypes.Area && subType !== "normal" ? 1 : (150 / 100); + + let seriesProps = this.chartsDrawer.calculateFirstChartCountSeries(); + let seriesCount = seriesProps.series; + let ptCount = seriesProps.points; + + let sinOx = Math.abs(Math.sin(-this.angleOx)); + let sinOy = Math.sin(-this.angleOy); + let hPercent = type === AscFormat.c_oChartTypes.HBar ? 1 : this.hPercent; + let depthPercent = this._getDepthPercent(); + let t = this; + + let areaStackedKf = (type === AscFormat.c_oChartTypes.Area && subType !== "normal") || type === AscFormat.c_oChartTypes.Surface ? (ptCount / (2 * (ptCount - 1))) : 1; + + let depth = 0; + let chartWidth = 0; + + let standardType = false; + if (subType === "standard" || type === AscFormat.c_oChartTypes.Line || (type === AscFormat.c_oChartTypes.Area && subType === "normal") || + (type === AscFormat.c_oChartTypes.Surface)) { + standardType = true; + } - var alpha = perspective / 4;//в xml проиходит двойной угол(в параметрах ms стоит 40, приходит в xml 80) - //TODO this.top - this.bottom пересмотреть - var catt = ((heightLine / 2 + (Math.abs(this.top - this.bottom)))) / Math.tan((alpha / 360) * (Math.PI * 2)); - var rPerspective; - if (catt === 0) - rPerspective = 0; - else - rPerspective = 1 / catt; + let heightHPercent = heightOriginalChart / hPercent; + let angleOxKf; + if (!standardType) { + let widthOneBar = ((heightHPercent / seriesCount) / (ptCount - (ptCount - 1) * (overlap) + gapWidth)) * sinOy; + let a, b; - this.rPerspective = rPerspective; -}; + if (this.angleOx === 0 && this.angleOy === 0)//withoutAngleNoAuto + withoutAngleAuto + { + chartWidth = widthOneBar + heightHPercent; + } else if (this.angleOx !== 0)//AngleOYNoAut + AngleOYNoAutPerHeight + (ANGLEOX+ANGLEOY) + AngleOYOXNoAut + ANGLEOXANGLEOYHPerDPer(ANGLEOX+ANGLEOY HPercent) + { + //если выставить ширину 255 будет так же, как и в документе с расчётами + b = (seriesCount - (seriesCount - 1) * overlap + gapWidth); + a = (depthPercent / (ptCount * b)) / hPercent; + let width = heightOriginalChart * areaStackedKf; + depth = (width * a + gapDepth * width * a) / (1 / sinOx + (gapDepth) * a + a); + + chartWidth = heightHPercent - depth; + } else if (this.angleOy !== 0)//angleOxNoAuto + { + //если выставить ширину = 321.25 будет так же, как и в документе с расчётам + //TODO глубина с некоторыми графиками имеет различия, пересчитать! + let widthChart = (widthOriginalChart / t.aspectRatioX) / t.specialStandardScaleX; -Processor3D.prototype._calculateDepth = function () { - var widthOriginalChart = this.widthCanvas - (this.left + this.right); - var heightOriginalChart = this.heightCanvas - (this.top + this.bottom); - var subType = this.chartsDrawer.calcProp.subType; - var type = this.chartsDrawer.calcProp.type; - var defaultOverlap = (subType == "stacked" || subType == "stackedPer" || subType == "standard" || type == AscFormat.c_oChartTypes.Line || type == AscFormat.c_oChartTypes.Area || type == AscFormat.c_oChartTypes.Surface) ? 100 : 0; - var overlap = AscFormat.isRealNumber(this.chartSpace.chart.plotArea.chart.overlap) ? (this.chartSpace.chart.plotArea.chart.overlap / 100) : (defaultOverlap / 100); - var gapWidth = this.chartSpace.chart.plotArea.chart.gapWidth != null ? (this.chartSpace.chart.plotArea.chart.gapWidth / 100) : (150 / 100); - var gapDepth = this.chartSpace.chart.plotArea.chart.gapDepth != null ? (this.chartSpace.chart.plotArea.chart.gapDepth / 100) : type === AscFormat.c_oChartTypes.Area && subType !== "normal" ? 1 : (150 / 100); - var seriesCount = this.chartsDrawer.calcProp.seriesCount; - var ptCount = this.chartsDrawer.calcProp.ptCount; - var sinOx = Math.abs(Math.sin(-this.angleOx)); - var sinOy = Math.sin(-this.angleOy); - var hPercent = type == AscFormat.c_oChartTypes.HBar ? 1 : this.hPercent; - var depthPercent = this._getDepthPercent(); - var t = this; - - var areaStackedKf = (type === AscFormat.c_oChartTypes.Area && subType !== "normal") || type === AscFormat.c_oChartTypes.Surface ? (ptCount / (2 * (ptCount - 1))) : 1; - - var depth = 0; - var chartWidth = 0; - - var standardType = false; - if (subType == "standard" || type == AscFormat.c_oChartTypes.Line || (type == AscFormat.c_oChartTypes.Area && subType == "normal") || (type === AscFormat.c_oChartTypes.Surface)) - standardType = true; - - var heightHPercent = heightOriginalChart / hPercent; - var angleOxKf; - if (!standardType) { - var widthOneBar = ((heightHPercent / seriesCount) / (ptCount - (ptCount - 1) * (overlap) + gapWidth)) * sinOy; - var a, b; - - if (this.angleOx === 0 && this.angleOy === 0)//withoutAngleNoAuto + withoutAngleAuto - { - chartWidth = widthOneBar + heightHPercent; - } else if (this.angleOx !== 0)//AngleOYNoAut + AngleOYNoAutPerHeight + (ANGLEOX+ANGLEOY) + AngleOYOXNoAut + ANGLEOXANGLEOYHPerDPer(ANGLEOX+ANGLEOY HPercent) - { - //если выставить ширину 255 будет так же, как и в документе с расчётами - b = (seriesCount - (seriesCount - 1) * overlap + gapWidth); - a = (depthPercent / (ptCount * b)) / hPercent; - var width = heightOriginalChart * areaStackedKf; - depth = (width * a + gapDepth * width * a) / (1 / sinOx + (gapDepth) * a + a); - - chartWidth = heightHPercent - depth; - } else if (this.angleOy !== 0)//angleOxNoAuto - { - //если выставить ширину = 321.25 будет так же, как и в документе с расчётам - //TODO глубина с некоторыми графиками имеет различия, пересчитать! - var widthChart = (widthOriginalChart / t.aspectRatioX) / t.specialStandardScaleX; + b = (seriesCount - (seriesCount - 1) * overlap + gapWidth); + if (subType === "standard" || type === AscFormat.c_oChartTypes.Line || type === AscFormat.c_oChartTypes.Area || type === AscFormat.c_oChartTypes.Surface) { + b = b / seriesCount; + } - b = (seriesCount - (seriesCount - 1) * overlap + gapWidth); - if (subType == "standard" || type == AscFormat.c_oChartTypes.Line || type == AscFormat.c_oChartTypes.Area || type === AscFormat.c_oChartTypes.Surface) - b = b / seriesCount; + angleOxKf = sinOx === 0 ? 1 : sinOx; + a = depthPercent / (ptCount * b); + depth = (widthChart * a + gapDepth * widthChart * a) / (1 / angleOxKf + (gapDepth) * a + a); - angleOxKf = sinOx === 0 ? 1 : sinOx; - a = depthPercent / (t.chartsDrawer.calcProp.ptCount * b); - depth = (widthChart * a + gapDepth * widthChart * a) / (1 / angleOxKf + (gapDepth) * a + a); + depth = depth / angleOxKf; + } + } else//allStandardDepth + { + angleOxKf = sinOx === 0 ? 0 : sinOx; - depth = depth / angleOxKf; - } - } else//allStandardDepth - { - angleOxKf = sinOx === 0 ? 0 : sinOx; + if (type === AscFormat.c_oChartTypes.Area) { + depth = + (depthPercent / (angleOxKf * depthPercent + ((ptCount + (Math.floor((seriesCount - ptCount) / 2 - 0.5))) / seriesCount * hPercent))) * (heightOriginalChart); + } else { + depth = (depthPercent / (angleOxKf * depthPercent + ((ptCount + (Math.floor((seriesCount - ptCount) / 2))) / seriesCount * hPercent))) * (heightOriginalChart); + } - if (type == AscFormat.c_oChartTypes.Area) - depth = (depthPercent / (angleOxKf * depthPercent + ((ptCount + (Math.floor((seriesCount - ptCount) / 2 - 0.5))) / seriesCount * hPercent))) * (heightOriginalChart); - else - depth = (depthPercent / (angleOxKf * depthPercent + ((ptCount + (Math.floor((seriesCount - ptCount) / 2))) / seriesCount * hPercent))) * (heightOriginalChart); + if ((this.angleOx !== 0)) { + depth = depth * Math.sin(-this.angleOx); + } + } - if ((this.angleOx !== 0)) - depth = depth * Math.sin(-this.angleOx); - } + return sinOx !== 0 ? Math.abs(depth / sinOx) : Math.abs(depth); + }; - return sinOx !== 0 ? Math.abs(depth / sinOx) : Math.abs(depth); -}; + Processor3D.prototype._calculateDepthPerspective = function () { + let widthCanvas = this.widthCanvas; + let widthOriginalChart = widthCanvas - (this.left + this.right); -Processor3D.prototype._calculateDepthPerspective = function () { - var widthCanvas = this.widthCanvas; - var widthOriginalChart = widthCanvas - (this.left + this.right); + let aspectRatio = this.aspectRatioX / (this.specialStandardScaleX); + let widthChart = widthOriginalChart / aspectRatio; + widthChart = widthChart / this.scaleX; - var aspectRatio = this.aspectRatioX / (this.specialStandardScaleX); - var widthChart = widthOriginalChart / aspectRatio; - widthChart = widthChart / this.scaleX; + let countSeries = this.chartsDrawer.calculateFirstChartCountSeries(); + let seriesCount = countSeries.series; + let ptCount = countSeries.points; - var seriesCount = this.chartsDrawer.calcProp.seriesCount; + let width = widthChart / ptCount; - var width = widthChart / this.chartsDrawer.calcProp.ptCount; + let isNormalArea = (this.chartsDrawer.calcProp.subType === "normal" && this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area) || + this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface; - var isNormalArea = (this.chartsDrawer.calcProp.subType == "normal" && this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area) || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface; + let defaultOverlap = (this.chartsDrawer.calcProp.subType === "stacked" || this.chartsDrawer.calcProp.subType === "stackedPer" || this.chartsDrawer.calcProp.subType === + "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || isNormalArea) ? 100 : 0; + let overlap = AscFormat.isRealNumber(this.chartSpace.chart.plotArea.chart.overlap) ? (this.chartSpace.chart.plotArea.chart.overlap / 100) : (defaultOverlap / 100); - var defaultOverlap = (this.chartsDrawer.calcProp.subType == "stacked" || this.chartsDrawer.calcProp.subType == "stackedPer" || this.chartsDrawer.calcProp.subType == "standard" || this.chartsDrawer.calcProp.type == AscFormat.c_oChartTypes.Line || isNormalArea) ? 100 : 0; - var overlap = AscFormat.isRealNumber(this.chartSpace.chart.plotArea.chart.overlap) ? (this.chartSpace.chart.plotArea.chart.overlap / 100) : (defaultOverlap / 100); + let gapWidth = this.chartSpace.chart.plotArea.chart.gapWidth != null ? (this.chartSpace.chart.plotArea.chart.gapWidth / 100) : (150 / 100); + let gapDepth = this.chartSpace.chart.plotArea.chart.gapDepth != null ? (this.chartSpace.chart.plotArea.chart.gapDepth / 100) : (150 / 100); - var gapWidth = this.chartSpace.chart.plotArea.chart.gapWidth != null ? (this.chartSpace.chart.plotArea.chart.gapWidth / 100) : (150 / 100); - var gapDepth = this.chartSpace.chart.plotArea.chart.gapDepth != null ? (this.chartSpace.chart.plotArea.chart.gapDepth / 100) : (150 / 100); + if (AscFormat.c_oChartTypes.Area === this.chartsDrawer.calcProp.type || AscFormat.c_oChartTypes.Surface === this.chartsDrawer.calcProp.type) { + gapWidth = 0; + gapDepth = 0; + } - if (AscFormat.c_oChartTypes.Area === this.chartsDrawer.calcProp.type || AscFormat.c_oChartTypes.Surface === this.chartsDrawer.calcProp.type) { - gapWidth = 0; - gapDepth = 0; - } + let baseDepth = width / (seriesCount - (seriesCount - 1) * overlap + gapWidth); + if (this.chartsDrawer.calcProp.subType === "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || isNormalArea) { + baseDepth = (width / (seriesCount - (seriesCount - 1) * overlap + gapWidth)) * seriesCount; + } - var baseDepth = width / (seriesCount - (seriesCount - 1) * overlap + gapWidth); - if (this.chartsDrawer.calcProp.subType == "standard" || this.chartsDrawer.calcProp.type == AscFormat.c_oChartTypes.Line || isNormalArea) - baseDepth = (width / (seriesCount - (seriesCount - 1) * overlap + gapWidth)) * seriesCount; + let basePercent = this._getDepthPercent(); + let depth = baseDepth * basePercent; + depth = depth + depth * gapDepth; - //процент РѕС‚ базовой глубины - var basePercent = this._getDepthPercent(); - var depth = baseDepth * basePercent; - depth = depth + depth * gapDepth; + if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && this.hPercent !== null) { + depth = this.hPercent * depth; + } - if (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.HBar && this.hPercent !== null) { - depth = this.hPercent * depth; - } + //TODO глубина в некоторых случаях отличается(тип Standard) + if (this.chartsDrawer.calcProp.subType === "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || isNormalArea) { + let b = 1 / seriesCount; - //TODO глубина в некоторых случаях отличается(тип Standard) - if (this.chartsDrawer.calcProp.subType === "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || isNormalArea) { - var b = 1 / seriesCount; + let sinOx = Math.sin(-this.angleOx); + let angleOxKf = 1; + let a = basePercent / (ptCount * b); + depth = (widthChart * a + widthChart * a) / (1 / angleOxKf + a); - var sinOx = Math.sin(-this.angleOx); - var angleOxKf = 1; - var a = basePercent / (this.chartsDrawer.calcProp.ptCount * b); - depth = (widthChart * a + widthChart * a) / (1 / angleOxKf + a); + depth = depth / angleOxKf; + } - depth = depth / angleOxKf; - } + return depth; + }; - return depth; -}; + Processor3D.prototype._calcSpecialStandardScaleX = function () { + let type = this.chartsDrawer.calcProp.type; + let subType = this.chartsDrawer.calcProp.subType; + if (!(subType === "standard" || type === AscFormat.c_oChartTypes.Line || (type === AscFormat.c_oChartTypes.Area && subType === "normal") || type === + AscFormat.c_oChartTypes.Surface)) { + return; + } -Processor3D.prototype._calcSpecialStandardScaleX = function () { - if (!(this.chartsDrawer.calcProp.subType == "standard" || this.chartsDrawer.calcProp.type == AscFormat.c_oChartTypes.Line || (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area && this.chartsDrawer.calcProp.subType == "normal") || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface)) - return; + let countSeries = this.chartsDrawer.calculateFirstChartCountSeries(); + let seriesCount = countSeries.series; + let ptCount = countSeries.points; - //calculate width in 3d standard charts with rAngAx - var n = Math.floor((this.chartsDrawer.calcProp.seriesCount + this.chartsDrawer.calcProp.ptCount) / 2); - var kf = this.chartsDrawer.calcProp.ptCount / n; + //calculate width in 3d standard charts with rAngAx + let n = Math.floor((seriesCount + ptCount) / 2); + let kf = ptCount / n; - this.specialStandardScaleX = 1 / kf; -}; + this.specialStandardScaleX = 1 / kf; + }; -Processor3D.prototype._calculateScaleFromDepth = function (/*isSkip*/) { - //***Calculate scaleY*** - if (this.view3D.getRAngAx() && this.aspectRatioY === 1) { - var heightCanvas = this.heightCanvas; - var heightChart = heightCanvas - this.top - this.bottom; - - this.scaleY = heightChart / (-this.depthPerspective * Math.sin(Math.abs(this.angleOx)) + heightChart); - //меняется ширина в зависимости от количества значений - //if(this.chartsDrawer.calcProp.subType == "standard") - //this.scaleX += parseInt((this.chartsDrawer.calcProp.seriesCount + 1) / 2) - 1; - - var subType = this.chartsDrawer.calcProp.subType; - var newDepth, newWidth; - if (!(subType == "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface || (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area && subType == "normal"))) { - newDepth = this.depthPerspective * Math.sin(-this.angleOx); - newWidth = heightChart - newDepth; - this.scaleX = heightChart / newWidth; + Processor3D.prototype._calculateScaleFromDepth = function (/*isSkip*/) { + //***Calculate scaleY*** + if (this.view3D.getRAngAx() && this.aspectRatioY === 1) { + let heightCanvas = this.heightCanvas; + let heightChart = heightCanvas - this.top - this.bottom; + + this.scaleY = heightChart / (-this.depthPerspective * Math.sin(Math.abs(this.angleOx)) + heightChart); + + let subType = this.chartsDrawer.calcProp.subType; + let newDepth, newWidth; + if (!(subType === "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || this.chartsDrawer.calcProp.type === + AscFormat.c_oChartTypes.Surface || (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area && subType === "normal"))) { + newDepth = this.depthPerspective * Math.sin(-this.angleOx); + newWidth = heightChart - newDepth; + this.scaleX = heightChart / newWidth; + } } - } -}; - -Processor3D.prototype._calculateCameraDiff = function (/*isSkip*/) { - //глубина по OZ - var perspectiveDepth = this.depthPerspective; + }; - var widthCanvas = this.widthCanvas; - var originalWidthChart = widthCanvas - this.left - this.right; + Processor3D.prototype._calculateCameraDiff = function (/*isSkip*/) { + //глубина по OZ + let perspectiveDepth = this.depthPerspective; - var heightCanvas = this.heightCanvas; - var heightChart = heightCanvas - this.top - this.bottom; + let widthCanvas = this.widthCanvas; + let originalWidthChart = widthCanvas - this.left - this.right; - //add test points for parallelepiped rect - var points = []; - var faces = []; + let heightCanvas = this.heightCanvas; + let heightChart = heightCanvas - this.top - this.bottom; - /*if(AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type) - { - points.push(new Point3D(this.left + originalWidthChart / 2, this.top, perspectiveDepth, this)); - points.push(new Point3D(this.left, this.top, perspectiveDepth / 2, this)); - points.push(new Point3D(this.left + originalWidthChart, this.top, perspectiveDepth / 2, this)); - points.push(new Point3D(this.left + originalWidthChart / 2, this.top, 0, this)); + //add test points for parallelepiped rect + let points = []; + let faces = []; - points.push(new Point3D(this.left + originalWidthChart / 2, this.top + heightChart, perspectiveDepth, this)); - points.push(new Point3D(this.left, this.top + heightChart, perspectiveDepth / 2, this)); - points.push(new Point3D(this.left + originalWidthChart, this.top + heightChart, perspectiveDepth / 2, this)); - points.push(new Point3D(this.left + originalWidthChart / 2, this.top + heightChart, 0, this)); - } - else - {*/ - points.push(new Point3D(this.left, this.top, perspectiveDepth, this)); - points.push(new Point3D(this.left, heightChart + this.top, perspectiveDepth, this)); - points.push(new Point3D(originalWidthChart + this.left, heightChart + this.top, perspectiveDepth, this)); - points.push(new Point3D(originalWidthChart + this.left, this.top, perspectiveDepth, this)); - points.push(new Point3D(originalWidthChart + this.left, this.top, 0, this)); - points.push(new Point3D(originalWidthChart + this.left, heightChart + this.top, 0, this)); - points.push(new Point3D(this.left, heightChart + this.top, 0, this)); - points.push(new Point3D(this.left, this.top, 0, this)); - //} - - faces.push([0, 1, 2, 3]); - faces.push([2, 5, 4, 3]); - faces.push([1, 6, 7, 0]); - faces.push([6, 5, 4, 7]); - faces.push([7, 4, 3, 0]); - faces.push([1, 6, 2, 5]); - - - //***Calculate cameraDiffZ*** - if (!this.view3D.getRAngAx()) { - //быстрая функция поиска сдвигов камеры - //console.time("sdf"); - this._calculateCameraDiffZX(points, faces); - //console.timeEnd("sdf"); - } + /*if(AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type) + { + points.push(new Point3D(this.left + originalWidthChart / 2, this.top, perspectiveDepth, this)); + points.push(new Point3D(this.left, this.top, perspectiveDepth / 2, this)); + points.push(new Point3D(this.left + originalWidthChart, this.top, perspectiveDepth / 2, this)); + points.push(new Point3D(this.left + originalWidthChart / 2, this.top, 0, this)); + + points.push(new Point3D(this.left + originalWidthChart / 2, this.top + heightChart, perspectiveDepth, this)); + points.push(new Point3D(this.left, this.top + heightChart, perspectiveDepth / 2, this)); + points.push(new Point3D(this.left + originalWidthChart, this.top + heightChart, perspectiveDepth / 2, this)); + points.push(new Point3D(this.left + originalWidthChart / 2, this.top + heightChart, 0, this)); + } + else + {*/ + points.push(new Point3D(this.left, this.top, perspectiveDepth, this)); + points.push(new Point3D(this.left, heightChart + this.top, perspectiveDepth, this)); + points.push(new Point3D(originalWidthChart + this.left, heightChart + this.top, perspectiveDepth, this)); + points.push(new Point3D(originalWidthChart + this.left, this.top, perspectiveDepth, this)); + points.push(new Point3D(originalWidthChart + this.left, this.top, 0, this)); + points.push(new Point3D(originalWidthChart + this.left, heightChart + this.top, 0, this)); + points.push(new Point3D(this.left, heightChart + this.top, 0, this)); + points.push(new Point3D(this.left, this.top, 0, this)); + //} + + faces.push([0, 1, 2, 3]); + faces.push([2, 5, 4, 3]); + faces.push([1, 6, 7, 0]); + faces.push([6, 5, 4, 7]); + faces.push([7, 4, 3, 0]); + faces.push([1, 6, 2, 5]); + + + //***Calculate cameraDiffZ*** + if (!this.view3D.getRAngAx()) { + //быстрая функция поиска сдвигов камеры + //console.time("sdf"); + this._calculateCameraDiffZX(points, faces); + //console.timeEnd("sdf"); + } - //***Calculate cameraDiffX*** - if (this.view3D.getRAngAx()) { - var minMaxOx = this._getMinMaxOx(points, faces); - this._calculateCameraDiffX(minMaxOx); + //***Calculate cameraDiffX*** + if (this.view3D.getRAngAx()) { + let minMaxOx = this._getMinMaxOx(points, faces); + this._calculateCameraDiffX(minMaxOx); - //***Calculate cameraDiffY*** - var minMaxOy = this._getMinMaxOy(points, faces); - this._calculateCameraDiffY(minMaxOy.top, minMaxOy.bottom); - } -}; + //***Calculate cameraDiffY*** + let minMaxOy = this._getMinMaxOy(points, faces); + this._calculateCameraDiffY(minMaxOy.top, minMaxOy.bottom); + } + }; -Processor3D.prototype._calculateCameraDiffZX = function (newPoints) { - var heightChart = this.heightCanvas - this.top - this.bottom; - var widthOriginalChart = this.widthCanvas - this.left - this.right; - var heightOriginalChart = heightChart; + Processor3D.prototype._calculateCameraDiffZX = function (newPoints) { + let heightChart = this.heightCanvas - this.top - this.bottom; + let widthOriginalChart = this.widthCanvas - this.left - this.right; + let heightOriginalChart = heightChart; - var minX = null; - var maxX = null; - var minZ = null; + let minX = null; + let maxX = null; + let minZ = null; - var aspectRatio = (widthOriginalChart) / (heightOriginalChart); + let aspectRatio = (widthOriginalChart) / (heightOriginalChart); - for (var i = 0; i < newPoints.length; i++) { - var point3D = new Point3D(newPoints[i].x, newPoints[i].y, newPoints[i].z, this); + for (let i = 0; i < newPoints.length; i++) { + let point3D = new Point3D(newPoints[i].x, newPoints[i].y, newPoints[i].z, this); - point3D.scale(aspectRatio, 1, 1); - point3D.offset((-this.widthCanvas / 2) / aspectRatio, (-this.heightCanvas / 2), 0); + point3D.scale(aspectRatio, 1, 1); + point3D.offset((-this.widthCanvas / 2) / aspectRatio, (-this.heightCanvas / 2), 0); - //rotate - var matrixRotateAllAxis = this._getMatrixRotateAllAxis(); - point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); + //rotate + let matrixRotateAllAxis = this._getMatrixRotateAllAxis(); + point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); - if (minZ === null || point3D.z < minZ) - minZ = point3D.z; + if (minZ === null || point3D.z < minZ) { + minZ = point3D.z; + } - if (minX === null || point3D.x < minX) - minX = point3D.x; + if (minX === null || point3D.x < minX) { + minX = point3D.x; + } - if (maxX === null || point3D.x > maxX) - maxX = point3D.x; - } + if (maxX === null || point3D.x > maxX) { + maxX = point3D.x; + } + } - //get min and max point's and diffX - /*if(-t.angleOx === 0) - { - var minMaxOx = this._getMinMaxOxPoints(newPoints, minZ); - this.cameraDiffZ = - minZ; - this.cameraDiffX = - minMaxOx.diffX; + //get min and max point's and diffX + /*if(-t.angleOx === 0) + { + let minMaxOx = this._getMinMaxOxPoints(newPoints, minZ); + this.cameraDiffZ = - minZ; + this.cameraDiffX = - minMaxOx.diffX; - var x111 = this.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - var x222 = this.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + let x111 = this.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + let x222 = this.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - if(Math.abs(x222.x - x111.x) > widthOriginalChart) - { - var correctOffset; - if(x222.x > x111.x) + if(Math.abs(x222.x - x111.x) > widthOriginalChart) { - correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); + let correctOffset; + if(x222.x > x111.x) + { + correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); + } + else + { + correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); + } + + this.cameraDiffZ = Math.abs(correctOffset.minZ); + this.cameraDiffX = correctOffset.diffX; } - else + } + else if(-t.angleOy === 0 && -t.angleOx !== 0) + { + let minMaxOy = this._getMinMaxOyPoints(newPoints, minZ); + this.cameraDiffZ = - minZ; + this.cameraDiffY = -minMaxOy.diffY; + + let y111 = this.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); + let y222 = this.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); + + if(Math.abs(y111.y - y222.y) < heightOriginalChart) { - correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); - } + let minMaxOx = this._getMinMaxOxPoints(newPoints, minZ); + let x111 = this.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + let x222 = this.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + + let correctOffset; + if(x222.x > x111.x) + { + correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); + } + else + { + correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); + } - this.cameraDiffZ = Math.abs(correctOffset.minZ); - this.cameraDiffX = correctOffset.diffX; - } - } - else if(-t.angleOy === 0 && -t.angleOx !== 0) - { - var minMaxOy = this._getMinMaxOyPoints(newPoints, minZ); - this.cameraDiffZ = - minZ; - this.cameraDiffY = -minMaxOy.diffY; + this.cameraDiffZ = Math.abs(correctOffset.minZ); + this.cameraDiffX = correctOffset.diffX; - var y111 = this.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); - var y222 = this.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - if(Math.abs(y111.y - y222.y) < heightOriginalChart) + let minMaxOy = this._getMinMaxOyPoints(newPoints, 0); + //this.cameraDiffZ = - minZ; + this.cameraDiffY = -minMaxOy.diffY; + } + }*/ + /*else if(-t.angleOy !== 0 && -t.angleOx !== 0) { - var minMaxOx = this._getMinMaxOxPoints(newPoints, minZ); - var x111 = this.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - var x222 = this.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + let minMaxOx = this._getMinMaxOxPoints(newPoints, minZ); + let x111 = this.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + let x222 = this.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - var correctOffset; + let correctOffset; if(x222.x > x111.x) { correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); } else { - correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); + correctOffset = this._correctZPosition4(minMaxOx.tempX2, minMaxOx.tempX1, minMaxOx.tempZ2, minMaxOx.tempZ1, minZ, minMaxOx.tempY2, minMaxOx.tempY1); } - this.cameraDiffZ = Math.abs(correctOffset.minZ); + this.cameraDiffZ = correctOffset.minZ; this.cameraDiffX = correctOffset.diffX; + let minMaxOy = this._getMinMaxOyPoints2(newPoints, this.cameraDiffZ); + this.cameraDiffY = minMaxOy.diffY; - var minMaxOy = this._getMinMaxOyPoints(newPoints, 0); - //this.cameraDiffZ = - minZ; - this.cameraDiffY = -minMaxOy.diffY; - } - }*/ - /*else if(-t.angleOy !== 0 && -t.angleOx !== 0) - { - var minMaxOx = this._getMinMaxOxPoints(newPoints, minZ); - var x111 = this.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - var x222 = this.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - - var correctOffset; - if(x222.x > x111.x) - { - correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, minZ, minMaxOx.tempY1, minMaxOx.tempY2); - } - else - { - correctOffset = this._correctZPosition4(minMaxOx.tempX2, minMaxOx.tempX1, minMaxOx.tempZ2, minMaxOx.tempZ1, minZ, minMaxOx.tempY2, minMaxOx.tempY1); - } - - this.cameraDiffZ = correctOffset.minZ; - this.cameraDiffX = correctOffset.diffX; + console.log(" tempX1: " + minMaxOy.tempX1 + " tempX2: " + minMaxOy.tempX2 + " tempY1: " + minMaxOy.tempY1 + " tempY2: " + minMaxOy.tempY2 + " tempZ1: " + minMaxOy.tempZ1 + " tempZ2: " + minMaxOy.tempZ2); - var minMaxOy = this._getMinMaxOyPoints2(newPoints, this.cameraDiffZ); - this.cameraDiffY = minMaxOy.diffY; + let y111 = this.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); + let y222 = this.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - console.log(" tempX1: " + minMaxOy.tempX1 + " tempX2: " + minMaxOy.tempX2 + " tempY1: " + minMaxOy.tempY1 + " tempY2: " + minMaxOy.tempY2 + " tempZ1: " + minMaxOy.tempZ1 + " tempZ2: " + minMaxOy.tempZ2); - - var y111 = this.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); - var y222 = this.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); + if(y111.y < this.top || y222.y > this.top + heightOriginalChart) + { + //correctOffset = this._correctZPositionOY(minMaxOy.tempX1, minMaxOy.tempX2, minMaxOy.tempZ1, minMaxOy.tempZ2, minZ, minMaxOy.tempY1, minMaxOy.tempY2); + this.cameraDiffZ = minMaxOy.diffZ; + //this.cameraDiffY = minMaxOy.diffY; - if(y111.y < this.top || y222.y > this.top + heightOriginalChart) - { - //correctOffset = this._correctZPositionOY(minMaxOy.tempX1, minMaxOy.tempX2, minMaxOy.tempZ1, minMaxOy.tempZ2, minZ, minMaxOy.tempY1, minMaxOy.tempY2); - this.cameraDiffZ = minMaxOy.diffZ; - //this.cameraDiffY = minMaxOy.diffY; + let minMaxOx = this._getMinMaxOxPoints(newPoints, -this.cameraDiffZ); + //correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, -this.cameraDiffZ, minMaxOx.tempY1, minMaxOx.tempY2); + this.cameraDiffX = -minMaxOx.diffX; + } - var minMaxOx = this._getMinMaxOxPoints(newPoints, -this.cameraDiffZ); - //correctOffset = this._correctZPosition4(minMaxOx.tempX1, minMaxOx.tempX2, minMaxOx.tempZ1, minMaxOx.tempZ2, -this.cameraDiffZ, minMaxOx.tempY1, minMaxOx.tempY2); - this.cameraDiffX = -minMaxOx.diffX; - } + //TODO пока включаю для поворотов по OX + по OY checkOutSideArea(медленная функция), затем нужно переделать, используя закомментированный код сверху + this.cameraDiffZ = -minZ; + //this.cameraDiffX = -minMaxOx.diffX; + this.checkOutSideArea(newPoints); + }*/ - //TODO пока включаю для поворотов по OX + по OY checkOutSideArea(медленная функция), затем нужно переделать, используя закомментированный код сверху + //TODO пока включаю для ВСЕГО checkOutSideArea(медленная функция), затем нужно переделать, используя закомментированный код сверху this.cameraDiffZ = -minZ; - //this.cameraDiffX = -minMaxOx.diffX; - this.checkOutSideArea(newPoints); - }*/ - - //TODO пока включаю для ВСЕГО checkOutSideArea(медленная функция), затем нужно переделать, используя закомментированный код сверху - this.cameraDiffZ = -minZ; - this.checkOutSideArea2(newPoints); + this.checkOutSideArea2(newPoints); -}; + }; //TODO если будут проблемы при маштабировании, вернуть функцию checkOutSideArea2 вместо checkOutSideArea -Processor3D.prototype.checkOutSideArea2 = function (newPoints) { - var i = 0; - var maxI = 1000; - var t = this; - - var heightChart = this.heightCanvas - this.top - this.bottom; - var widthChart = this.widthCanvas - this.left - this.right; + Processor3D.prototype.checkOutSideArea2 = function (newPoints) { + let i = 0; + let maxI = 1000; + let t = this; - var calculateZ = function (step) { - var minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); - t.cameraDiffX = -minMaxOx.diffX; - var x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - var x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + let heightChart = this.heightCanvas - this.top - this.bottom; + let widthChart = this.widthCanvas - this.left - this.right; - var diffX = Math.abs(x222.x - x111.x); - - var minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); - t.cameraDiffY = -minMaxOy.diffY; - var y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); - var y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); + let calculateZ = function (step) { + let minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); + t.cameraDiffX = -minMaxOx.diffX; + let x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + let x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - var diffY = Math.abs(y222.y - y111.y); + let diffX = Math.abs(x222.x - x111.x); - if (diffX < widthChart && diffY < heightChart)//if size less then width or height - { - while (diffX < widthChart && diffY < heightChart) { - t.cameraDiffZ -= step; - i++; - minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); - t.cameraDiffX = -minMaxOx.diffX; + let minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); + t.cameraDiffY = -minMaxOy.diffY; + let y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); + let y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - diffX = Math.abs(x222.x - x111.x); + let diffY = Math.abs(y222.y - y111.y); - minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); - t.cameraDiffY = -minMaxOy.diffY; - y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); - y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - diffY = Math.abs(y222.y - y111.y); - - if (i > maxI) - break; + if (diffX < widthChart && diffY < heightChart)//if size less then width or height + { + while (diffX < widthChart && diffY < heightChart) { + t.cameraDiffZ -= step; + i++; + minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); + t.cameraDiffX = -minMaxOx.diffX; + + x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + diffX = Math.abs(x222.x - x111.x); + + minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); + t.cameraDiffY = -minMaxOy.diffY; + y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); + y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); + diffY = Math.abs(y222.y - y111.y); + + if (i > maxI) { + break; + } + } + } else if (diffX > widthChart || diffY > heightChart)//if size more then width or height + { + while (diffX > widthChart || diffY > heightChart) { + t.cameraDiffZ += step; + i++; + minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); + t.cameraDiffX = -minMaxOx.diffX; + + x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + diffX = Math.abs(x222.x - x111.x); + + minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); + t.cameraDiffY = -minMaxOy.diffY; + y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); + y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); + diffY = Math.abs(y222.y - y111.y); + + if (i > maxI) { + break; + } + } } - } else if (diffX > widthChart || diffY > heightChart)//if size more then width or height - { - while (diffX > widthChart || diffY > heightChart) { - t.cameraDiffZ += step; - i++; - minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); - t.cameraDiffX = -minMaxOx.diffX; - - x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - diffX = Math.abs(x222.x - x111.x); - - minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); - t.cameraDiffY = -minMaxOy.diffY; - y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); - y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - diffY = Math.abs(y222.y - y111.y); + }; - if (i > maxI) - break; - } - } + calculateZ(100); + calculateZ(10); + calculateZ(1); }; - calculateZ(100); - calculateZ(10); - calculateZ(1); - -}; + Processor3D.prototype.checkOutSideArea = function (newPoints) { + let t = this; -Processor3D.prototype.checkOutSideArea = function (newPoints) { - var t = this; - - var heightChart = this.heightCanvas - this.top - this.bottom; - var widthChart = this.widthCanvas - this.left - this.right; - var DELTA = 3; - var maxCount = 1000; - var calculateZ = function () { - var minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); - t.cameraDiffX = -minMaxOx.diffX; - var x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - var x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + let heightChart = this.heightCanvas - this.top - this.bottom; + let widthChart = this.widthCanvas - this.left - this.right; + let DELTA = 3; + let maxCount = 1000; + let calculateZ = function () { + let minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); + t.cameraDiffX = -minMaxOx.diffX; + let x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + let x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - var diffX = Math.abs(x222.x - x111.x); + let diffX = Math.abs(x222.x - x111.x); - var minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); - t.cameraDiffY = -minMaxOy.diffY; - var y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); - var y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); + let minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); + t.cameraDiffY = -minMaxOy.diffY; + let y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); + let y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - var diffY = Math.abs(y222.y - y111.y); + let diffY = Math.abs(y222.y - y111.y); - if (diffX <= widthChart && diffY <= heightChart && ((widthChart - diffX) < DELTA || (heightChart - diffY) < DELTA)) { - return; - } - - var count = 0; - var fStart = t.cameraDiffZ ? t.cameraDiffZ : 1; - var fLeftDiffZ, fRightDiffZ; - if (diffX < widthChart && diffY < heightChart) { - fLeftDiffZ = 0; - fRightDiffZ = t.cameraDiffZ; - } else { - fLeftDiffZ = t.cameraDiffZ; - while (diffX >= widthChart || diffY >= heightChart) { - count++; - t.cameraDiffZ += fStart / 2; - minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); - t.cameraDiffX = -minMaxOx.diffX; - x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - diffX = Math.abs(x222.x - x111.x); - minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); - t.cameraDiffY = -minMaxOy.diffY; - y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); - y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - diffY = Math.abs(y222.y - y111.y); - - if (count > maxCount) { - return; - } - } if (diffX <= widthChart && diffY <= heightChart && ((widthChart - diffX) < DELTA || (heightChart - diffY) < DELTA)) { return; } - fRightDiffZ = t.cameraDiffZ; - } - - while ((diffX > widthChart || diffY > heightChart) || (fRightDiffZ - fLeftDiffZ) > DELTA) { - t.cameraDiffZ = fLeftDiffZ + ((fRightDiffZ - fLeftDiffZ) / 2); - - count++; - minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); - t.cameraDiffX = -minMaxOx.diffX; - var x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); - var x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); - - - var diffX = Math.abs(x222.x - x111.x); - - var minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); - t.cameraDiffY = -minMaxOy.diffY; - var y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); - var y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - - var diffY = Math.abs(y222.y - y111.y); + let count = 0; + let fStart = t.cameraDiffZ ? t.cameraDiffZ : 1; + let fLeftDiffZ, fRightDiffZ; if (diffX < widthChart && diffY < heightChart) { - if (((widthChart - diffX) < DELTA) || ((heightChart - diffY) < DELTA)) { - break; - } + fLeftDiffZ = 0; fRightDiffZ = t.cameraDiffZ; } else { fLeftDiffZ = t.cameraDiffZ; + while (diffX >= widthChart || diffY >= heightChart) { + count++; + t.cameraDiffZ += fStart / 2; + minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); + t.cameraDiffX = -minMaxOx.diffX; + x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + diffX = Math.abs(x222.x - x111.x); + minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); + t.cameraDiffY = -minMaxOy.diffY; + y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); + y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); + diffY = Math.abs(y222.y - y111.y); + + if (count > maxCount) { + return; + } + } + if (diffX <= widthChart && diffY <= heightChart && ((widthChart - diffX) < DELTA || (heightChart - diffY) < DELTA)) { + return; + } + fRightDiffZ = t.cameraDiffZ; } - if (count > maxCount) { - return; - } - } - }; - calculateZ(); + while ((diffX > widthChart || diffY > heightChart) || (fRightDiffZ - fLeftDiffZ) > DELTA) { + t.cameraDiffZ = fLeftDiffZ + ((fRightDiffZ - fLeftDiffZ) / 2); + + count++; + minMaxOx = t._getMinMaxOxPoints(newPoints, -t.cameraDiffZ); + t.cameraDiffX = -minMaxOx.diffX; + let x111 = t.convertAndTurnPoint(minMaxOx.tempX1, minMaxOx.tempY1, minMaxOx.tempZ1); + let x222 = t.convertAndTurnPoint(minMaxOx.tempX2, minMaxOx.tempY2, minMaxOx.tempZ2); + -}; + let diffX = Math.abs(x222.x - x111.x); -Processor3D.prototype._getMinMaxOxPoints = function (points, minZ) { - var fov = 1 / this.rPerspective; + let minMaxOy = t._getMinMaxOyPoints(newPoints, t.cameraDiffZ); + t.cameraDiffY = -minMaxOy.diffY; + let y111 = t.convertAndTurnPoint(minMaxOy.tempX1, minMaxOy.tempY1, minMaxOy.tempZ1); + let y222 = t.convertAndTurnPoint(minMaxOy.tempX2, minMaxOy.tempY2, minMaxOy.tempZ2); - var t = this; - var aspectRatioX = this.aspectRatioX; - var aspectRatioY = this.aspectRatioY; + let diffY = Math.abs(y222.y - y111.y); + if (diffX < widthChart && diffY < heightChart) { + if (((widthChart - diffX) < DELTA) || ((heightChart - diffY) < DELTA)) { + break; + } + fRightDiffZ = t.cameraDiffZ; + } else { + fLeftDiffZ = t.cameraDiffZ; + } + if (count > maxCount) { + return; + } + } + }; - var diffAndRotatePoint = function (point) { - var point3D = new Point3D(point.x, point.y, point.z, t); + calculateZ(); - point3D.scale(aspectRatioX, aspectRatioY, 1); - point3D.offset((-t.widthCanvas / 2) / aspectRatioX, (-t.heightCanvas / 2) / aspectRatioY /** aspectRatio*/, 0); + }; - //rotate - var matrixRotateAllAxis = t._getMatrixRotateAllAxis(); - point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); + Processor3D.prototype._getMinMaxOxPoints = function (points, minZ) { + let fov = 1 / this.rPerspective; - return point3D; - }; + let t = this; + let aspectRatioX = this.aspectRatioX; + let aspectRatioY = this.aspectRatioY; - var calculateDiffX = function (x1, x2, z1, z2, minZ, y1, y2) { - var diffAndScalePoints1 = t.diffAndScale(x1, y1, z1); - x1 = diffAndScalePoints1.x; - y1 = diffAndScalePoints1.y; - z1 = diffAndScalePoints1.z; - var rotatePoints1 = t.rotate(x1, y1, z1); + let diffAndRotatePoint = function (point) { + let point3D = new Point3D(point.x, point.y, point.z, t); - var a1 = rotatePoints1.x; - //var x1S = a1 - diffX; - var z1S = rotatePoints1.z - minZ; - //var x1SS = (fov * x1S / (z1S + fov)) + w / 2; + point3D.scale(aspectRatioX, aspectRatioY, 1); + point3D.offset((-t.widthCanvas / 2) / aspectRatioX, (-t.heightCanvas / 2) / aspectRatioY /** aspectRatio*/, 0); + //rotate + let matrixRotateAllAxis = t._getMatrixRotateAllAxis(); + point3D.multiplyPointOnMatrix1(matrixRotateAllAxis); - var diffAndScalePoints2 = t.diffAndScale(x2, y2, z2); - x2 = diffAndScalePoints2.x; - y2 = diffAndScalePoints2.y; - z2 = diffAndScalePoints2.z; + return point3D; + }; - var rotatePoints2 = t.rotate(x2, y2, z2); + let calculateDiffX = function (x1, x2, z1, z2, minZ, y1, y2) { + let diffAndScalePoints1 = t.diffAndScale(x1, y1, z1); + x1 = diffAndScalePoints1.x; + y1 = diffAndScalePoints1.y; + z1 = diffAndScalePoints1.z; - var a2 = rotatePoints2.x; - //var x2S = a2 - diffX; - var z2S = rotatePoints2.z - minZ; - //var x2SS = (fov * x2S / (z2S + fov)) + w / 2; + let rotatePoints1 = t.rotate(x1, y1, z1); - return (-a1 * z2S - a1 * fov - a2 * z1S - a2 * fov) / (-z2S - fov - z1S - fov); - }; + let a1 = rotatePoints1.x; + //let x1S = a1 - diffX; + let z1S = rotatePoints1.z - minZ; + //let x1SS = (fov * x1S / (z1S + fov)) + w / 2; - var w = t.widthCanvas; + let diffAndScalePoints2 = t.diffAndScale(x2, y2, z2); + x2 = diffAndScalePoints2.x; + y2 = diffAndScalePoints2.y; + z2 = diffAndScalePoints2.z; - var tempArray = this._getArrayAllVergeCube(points); + let rotatePoints2 = t.rotate(x2, y2, z2); - var x11, x22, y11, y22, z11, z22; - var tempX1, tempY1, tempZ1, tempX2, tempY2, tempZ2, start, end; - for (var i = 0; i < tempArray.length - 1; i++) { - start = i; - end = i + 1; - x11 = tempArray[start].x - (t.widthCanvas / 2); - x22 = tempArray[end].x - (t.widthCanvas / 2); + let a2 = rotatePoints2.x; + //let x2S = a2 - diffX; + let z2S = rotatePoints2.z - minZ; + //let x2SS = (fov * x2S / (z2S + fov)) + w / 2; - y11 = tempArray[start].y - (t.heightCanvas / 2); - y22 = tempArray[end].y - (t.heightCanvas / 2); + return (-a1 * z2S - a1 * fov - a2 * z1S - a2 * fov) / (-z2S - fov - z1S - fov); + }; - z11 = tempArray[start].z; - z22 = tempArray[end].z; - tempX1 = tempArray[start].x; - tempY1 = tempArray[start].y; - tempZ1 = tempArray[start].z; + let w = t.widthCanvas; - tempX2 = tempArray[end].x; - tempY2 = tempArray[end].y; - tempZ2 = tempArray[end].z; + let tempArray = this._getArrayAllVergeCube(points); - if (x11 > x22) { - start = i + 1; - end = i; + let diffX; + let x11, x22, y11, y22, z11, z22; + let tempX1, tempY1, tempZ1, tempX2, tempY2, tempZ2, start, end; + for (let i = 0; i < tempArray.length - 1; i++) { + start = i; + end = i + 1; x11 = tempArray[start].x - (t.widthCanvas / 2); x22 = tempArray[end].x - (t.widthCanvas / 2); @@ -1563,151 +1581,147 @@ Processor3D.prototype._getMinMaxOxPoints = function (points, minZ) { tempX2 = tempArray[end].x; tempY2 = tempArray[end].y; tempZ2 = tempArray[end].z; - } + if (x11 > x22) { + start = i + 1; + end = i; + x11 = tempArray[start].x - (t.widthCanvas / 2); + x22 = tempArray[end].x - (t.widthCanvas / 2); - var diffX = calculateDiffX(tempX1, tempX2, tempZ1, tempZ2, minZ, tempY1, tempY2); + y11 = tempArray[start].y - (t.heightCanvas / 2); + y22 = tempArray[end].y - (t.heightCanvas / 2); - var projectiveMatrix = t._getPerspectiveProjectionMatrix(1 / (t.rPerspective)); + z11 = tempArray[start].z; + z22 = tempArray[end].z; - var rotatePoint1 = diffAndRotatePoint(tempArray[start]); - rotatePoint1.offset(-diffX, 0, -minZ); - rotatePoint1 = rotatePoint1.project(projectiveMatrix); - var x1 = Math.floor(rotatePoint1.x + t.widthCanvas / 2); + tempX1 = tempArray[start].x; + tempY1 = tempArray[start].y; + tempZ1 = tempArray[start].z; + tempX2 = tempArray[end].x; + tempY2 = tempArray[end].y; + tempZ2 = tempArray[end].z; + } - var rotatePoint2 = diffAndRotatePoint(tempArray[end]); - rotatePoint2.offset(-diffX, 0, -minZ); - rotatePoint2 = rotatePoint2.project(projectiveMatrix); - var x2 = Math.floor(rotatePoint2.x + t.widthCanvas / 2); - var leftMargin = x1; - var rightMargin = Math.floor(w - x2); - if (!((leftMargin >= rightMargin - 1) && (leftMargin <= rightMargin + 1))) - continue; + diffX = calculateDiffX(tempX1, tempX2, tempZ1, tempZ2, minZ, tempY1, tempY2); - var isTrue = true; - for (var l = 0; l < tempArray.length - 1; l++) { - var rotatePoint = diffAndRotatePoint(tempArray[l]); - rotatePoint.offset(-diffX, 0, -minZ); - rotatePoint = rotatePoint.project(projectiveMatrix); - var tempX11 = Math.floor(rotatePoint.x + t.widthCanvas / 2); + let projectiveMatrix = t._getPerspectiveProjectionMatrix(1 / (t.rPerspective)); + let rotatePoint1 = diffAndRotatePoint(tempArray[start]); + rotatePoint1.offset(-diffX, 0, -minZ); + rotatePoint1 = rotatePoint1.project(projectiveMatrix); + let x1 = Math.floor(rotatePoint1.x + t.widthCanvas / 2); - if (x1 < x2) { - if (tempX11 < x1 || tempX11 > x2) { - isTrue = false; - break; - } - } else { - if (tempX11 > x1 || tempX11 < x2) { - isTrue = false; - break; - } - } - } - if (isTrue) - break; - } + let rotatePoint2 = diffAndRotatePoint(tempArray[end]); + rotatePoint2.offset(-diffX, 0, -minZ); + rotatePoint2 = rotatePoint2.project(projectiveMatrix); + let x2 = Math.floor(rotatePoint2.x + t.widthCanvas / 2); - return { - diffX: diffX, - tempX1: tempX1, - tempY1: tempY1, - tempZ1: tempZ1, - tempX2: tempX2, - tempY2: tempY2, - tempZ2: tempZ2, - x11: x11, - z11: z11, - x22: x22, - z22: z22, - y11: y11, - y22: y22 - }; -}; + let leftMargin = x1; + let rightMargin = Math.floor(w - x2); + if (!((leftMargin >= rightMargin - 1) && (leftMargin <= rightMargin + 1))) { + continue; + } -Processor3D.prototype._getMinMaxOyPoints = function (points, minZ) { - var fov = 1 / this.rPerspective; + let isTrue = true; + for (let l = 0; l < tempArray.length - 1; l++) { + let rotatePoint = diffAndRotatePoint(tempArray[l]); + rotatePoint.offset(-diffX, 0, -minZ); + rotatePoint = rotatePoint.project(projectiveMatrix); + let tempX11 = Math.floor(rotatePoint.x + t.widthCanvas / 2); - var t = this; - var h = t.heightCanvas; - var w = t.widthCanvas; + if (x1 < x2) { + if (tempX11 < x1 || tempX11 > x2) { + isTrue = false; + break; + } + } else { + if (tempX11 > x1 || tempX11 < x2) { + isTrue = false; + break; + } + } + } - var calculateDiffY = function (x1, x2, y1, y2, z1, z2, minZ) { - //var cos1 = Math.cos(-t.angleOy); - //var sin1 = Math.sin(-t.angleOy); - var diffY = 0; + if (isTrue) { + break; + } + } - var diffAndScalePoints = t.diffAndScale(x1, y1, z1); - var x1 = diffAndScalePoints.x; - var y1 = diffAndScalePoints.y; - var z1 = diffAndScalePoints.z; + return { + diffX: diffX, tempX1: tempX1, tempY1: tempY1, tempZ1: tempZ1, tempX2: tempX2, tempY2: tempY2, tempZ2: tempZ2, x11: x11, z11: z11, x22: x22, z22: z22, y11: y11, y22: y22 + }; + }; + Processor3D.prototype._getMinMaxOyPoints = function (points, minZ) { + let fov = 1 / this.rPerspective; + let t = this; + let h = t.heightCanvas; - var rotatePoints = t.rotate(x1, y1, z1); + let calculateDiffY = function (x1, x2, y1, y2, z1, z2, minZ) { + //let cos1 = Math.cos(-t.angleOy); + //let sin1 = Math.sin(-t.angleOy); + let diffY = 0; - var a1 = rotatePoints.y; - //var y1S = (a1 - diffY); - var z1S = rotatePoints.z + minZ; + let diffAndScalePoints = t.diffAndScale(x1, y1, z1); + x1 = diffAndScalePoints.x; + y1 = diffAndScalePoints.y; + z1 = diffAndScalePoints.z; - //var x1SS = (fov * y1S / (z1S + fov)) + h / 2; + let rotatePoints = t.rotate(x1, y1, z1); - diffAndScalePoints = t.diffAndScale(x2, y2, z2); - x2 = diffAndScalePoints.x; - y2 = diffAndScalePoints.y; - z2 = diffAndScalePoints.z; + let a1 = rotatePoints.y; + //let y1S = (a1 - diffY); + let z1S = rotatePoints.z + minZ; - rotatePoints = t.rotate(x2, y2, z2); + //let x1SS = (fov * y1S / (z1S + fov)) + h / 2; - var a2 = rotatePoints.y; - //var y2S = (a2 - diffY); - var z2S = rotatePoints.z + minZ; - //var x2SS = (fov * y2S / (z2S + fov)) + h / 2; + diffAndScalePoints = t.diffAndScale(x2, y2, z2); + x2 = diffAndScalePoints.x; + y2 = diffAndScalePoints.y; + z2 = diffAndScalePoints.z; - //var topMargin = (fov * y1S / (z1S + fov)) + h / 2; - //var bottomMargin = h - ((fov * y2S / (z2S + fov)) + h / 2); + rotatePoints = t.rotate(x2, y2, z2); + let a2 = rotatePoints.y; + //let y2S = (a2 - diffY); + let z2S = rotatePoints.z + minZ; - //((a1 - diffY) / (z1S + fov)) = - (((a2 - diffY) / (z2S + fov))) + //let x2SS = (fov * y2S / (z2S + fov)) + h / 2; - /*(a1 - diffY) * (z2S + fov) = -(z1S + fov) * (a2 - diffY) + //let topMargin = (fov * y1S / (z1S + fov)) + h / 2; + //let bottomMargin = h - ((fov * y2S / (z2S + fov)) + h / 2); - a1 * z2S + a1 * fov - diffY * z2S - diffY * fov = -z1S * a2 + z1S * diffY - fov * a2 + fov * diffY - a1 * z2S + a1 * fov + fov * a2 + z1S * a2= diffY * z2S + diffY * fov + z1S * diffY + fov * diffY*/ + //((a1 - diffY) / (z1S + fov)) = - (((a2 - diffY) / (z2S + fov))) - diffY = (a1 * z2S + a1 * fov + fov * a2 + z1S * a2) / (z2S + fov + z1S + fov); + /*(a1 - diffY) * (z2S + fov) = -(z1S + fov) * (a2 - diffY) - //var diffY = (-a1 * z2S - a1 * fov - a2 * z1S -a2 * fov) / ( -z2S - fov - z1S - fov); + a1 * z2S + a1 * fov - diffY * z2S - diffY * fov = -z1S * a2 + z1S * diffY - fov * a2 + fov * diffY + a1 * z2S + a1 * fov + fov * a2 + z1S * a2= diffY * z2S + diffY * fov + z1S * diffY + fov * diffY*/ - return diffY; + diffY = (a1 * z2S + a1 * fov + fov * a2 + z1S * a2) / (z2S + fov + z1S + fov); - }; + //let diffY = (-a1 * z2S - a1 * fov - a2 * z1S -a2 * fov) / ( -z2S - fov - z1S - fov); - var tempArray = this._getArrayAllVergeCube(points); - var tempX1, tempY1, tempZ1, tempX2, tempY2, tempZ2; - for (var i = 0; i < tempArray.length - 1; i++) { - var start = i; - var end = i + 1; + return diffY; - tempX1 = tempArray[start].x; - tempY1 = tempArray[start].y; - tempZ1 = tempArray[start].z; + }; - tempX2 = tempArray[end].x; - tempY2 = tempArray[end].y; - tempZ2 = tempArray[end].z; + let tempArray = this._getArrayAllVergeCube(points); - if (tempY1 > tempY2) { - start = i + 1; - end = i; + let diffY; + let tempX1, tempY1, tempZ1, tempX2, tempY2, tempZ2; + for (let i = 0; i < tempArray.length - 1; i++) { + let start = i; + let end = i + 1; tempX1 = tempArray[start].x; tempY1 = tempArray[start].y; @@ -1716,150 +1730,146 @@ Processor3D.prototype._getMinMaxOyPoints = function (points, minZ) { tempX2 = tempArray[end].x; tempY2 = tempArray[end].y; tempZ2 = tempArray[end].z; - } + if (tempY1 > tempY2) { + start = i + 1; + end = i; - var diffY = calculateDiffY(tempX1, tempX2, tempY1, tempY2, tempZ1, tempZ2, minZ); + tempX1 = tempArray[start].x; + tempY1 = tempArray[start].y; + tempZ1 = tempArray[start].z; - var rotatePoint1 = this.calculatePointManual(tempX1, tempY1, tempZ1, this.cameraDiffX, -diffY, minZ); - var y1 = rotatePoint1.y; + tempX2 = tempArray[end].x; + tempY2 = tempArray[end].y; + tempZ2 = tempArray[end].z; + } - var rotatePoint2 = this.calculatePointManual(tempX2, tempY2, tempZ2, this.cameraDiffX, -diffY, minZ); - var y2 = rotatePoint2.y; + diffY = calculateDiffY(tempX1, tempX2, tempY1, tempY2, tempZ1, tempZ2, minZ); - var topMargin = y1; - var bottomMargin = Math.floor(h - y2); - if (!((topMargin >= bottomMargin - 1) && (topMargin <= bottomMargin + 1))) - continue; + let rotatePoint1 = this.calculatePointManual(tempX1, tempY1, tempZ1, this.cameraDiffX, -diffY, minZ); + let y1 = rotatePoint1.y; - var isTrue = true; - for (var l = 0; l < tempArray.length - 1; l++) { - var rotatePoint = this.calculatePointManual(tempArray[l].x, tempArray[l].y, tempArray[l].z, this.cameraDiffX, -diffY, minZ); - var tempY11 = rotatePoint.y; - if (y1 < y2) { - if (tempY11 < y1 || tempY11 > y2) { - isTrue = false; - break; - } - } else { - if (tempY11 > y1 || tempY11 < y2) { - isTrue = false; - break; + let rotatePoint2 = this.calculatePointManual(tempX2, tempY2, tempZ2, this.cameraDiffX, -diffY, minZ); + let y2 = rotatePoint2.y; + + let topMargin = y1; + let bottomMargin = Math.floor(h - y2); + if (!((topMargin >= bottomMargin - 1) && (topMargin <= bottomMargin + 1))) { + continue; + } + + let isTrue = true; + for (let l = 0; l < tempArray.length - 1; l++) { + let rotatePoint = this.calculatePointManual(tempArray[l].x, tempArray[l].y, tempArray[l].z, this.cameraDiffX, -diffY, minZ); + let tempY11 = rotatePoint.y; + + if (y1 < y2) { + if (tempY11 < y1 || tempY11 > y2) { + isTrue = false; + break; + } + } else { + if (tempY11 > y1 || tempY11 < y2) { + isTrue = false; + break; + } } } - } - if (isTrue) - break; - } + if (isTrue) { + break; + } + } - return { - diffY: diffY, - tempX1: tempX1, - tempY1: tempY1, - tempZ1: tempZ1, - tempX2: tempX2, - tempY2: tempY2, - tempZ2: tempZ2 + return { + diffY: diffY, tempX1: tempX1, tempY1: tempY1, tempZ1: tempZ1, tempX2: tempX2, tempY2: tempY2, tempZ2: tempZ2 + }; }; -}; -Processor3D.prototype._getArrayAllVergeCube = function (points) { - var res = []; - - res[0] = points[0]; - res[1] = points[1]; - res[2] = points[2]; - res[3] = points[3]; - res[4] = points[0]; - res[5] = points[4]; - res[6] = points[7]; - res[7] = points[6]; - res[8] = points[5]; - res[9] = points[2]; - res[10] = points[6]; - res[11] = points[1]; - res[12] = points[7]; - res[13] = points[0]; - res[14] = points[5]; - res[15] = points[1]; - res[16] = points[4]; - res[17] = points[3]; - res[18] = points[6]; - res[19] = points[0]; - res[20] = points[2]; - res[21] = points[7]; - res[22] = points[3]; - res[23] = points[5]; - res[24] = points[7]; - res[25] = points[4]; - res[26] = points[2]; - res[27] = points[3]; - res[28] = points[1]; - res[29] = points[4]; - res[30] = points[5]; - res[31] = points[6]; - res[32] = points[4]; - - - /*for(var i = 0; i < points.length; i++) - { - for(var j = 0; j < points.length; j++) + Processor3D.prototype._getArrayAllVergeCube = function (points) { + let res = []; + + res[0] = points[0]; + res[1] = points[1]; + res[2] = points[2]; + res[3] = points[3]; + res[4] = points[0]; + res[5] = points[4]; + res[6] = points[7]; + res[7] = points[6]; + res[8] = points[5]; + res[9] = points[2]; + res[10] = points[6]; + res[11] = points[1]; + res[12] = points[7]; + res[13] = points[0]; + res[14] = points[5]; + res[15] = points[1]; + res[16] = points[4]; + res[17] = points[3]; + res[18] = points[6]; + res[19] = points[0]; + res[20] = points[2]; + res[21] = points[7]; + res[22] = points[3]; + res[23] = points[5]; + res[24] = points[7]; + res[25] = points[4]; + res[26] = points[2]; + res[27] = points[3]; + res[28] = points[1]; + res[29] = points[4]; + res[30] = points[5]; + res[31] = points[6]; + res[32] = points[4]; + + + /*for(let i = 0; i < points.length; i++) { - res.push(points[i]); - res.push(points[j]); + for(let j = 0; j < points.length; j++) + { + res.push(points[i]); + res.push(points[j]); - } - }*/ + } + }*/ - return res; -}; + return res; + }; -Processor3D.prototype._getMinMaxOyPoints2 = function (points, minZ) { - var t = this; - - var h = t.heightCanvas; - - var tempArray = []; - tempArray[0] = points[0];//leftNear - tempArray[1] = points[1];//leftFar - tempArray[2] = points[2];//rightFar - tempArray[3] = points[3];//rightNear - tempArray[4] = points[4];//leftNear - tempArray[5] = points[5];//leftFar - tempArray[6] = points[6];//leftFar - tempArray[7] = points[7];//leftFar - tempArray[8] = points[4];//leftFar - tempArray[9] = points[1];//leftFar - tempArray[10] = points[3];//leftFar - tempArray[11] = points[0];//leftFar - tempArray[12] = points[7];//leftFar - tempArray[13] = points[2];//leftFar - tempArray[14] = points[0];//leftFar - tempArray[15] = points[6];//leftFar - tempArray[16] = points[5];//leftFar - tempArray[17] = points[0];//leftFar - tempArray[18] = points[4];//leftFar - - - var tempX1, tempY1, tempZ1, tempX2, tempY2, tempZ2; - for (var i = 0; i < tempArray.length - 1; i++) { - var start = i; - var end = i + 1; - - tempX1 = tempArray[start].x; - tempY1 = tempArray[start].y; - tempZ1 = tempArray[start].z; - - tempX2 = tempArray[end].x; - tempY2 = tempArray[end].y; - tempZ2 = tempArray[end].z; - - if (tempY1 > tempY2) { - start = i + 1; - end = i; + Processor3D.prototype._getMinMaxOyPoints2 = function (points, minZ) { + let t = this; + + let h = t.heightCanvas; + + let tempArray = []; + tempArray[0] = points[0];//leftNear + tempArray[1] = points[1];//leftFar + tempArray[2] = points[2];//rightFar + tempArray[3] = points[3];//rightNear + tempArray[4] = points[4];//leftNear + tempArray[5] = points[5];//leftFar + tempArray[6] = points[6];//leftFar + tempArray[7] = points[7];//leftFar + tempArray[8] = points[4];//leftFar + tempArray[9] = points[1];//leftFar + tempArray[10] = points[3];//leftFar + tempArray[11] = points[0];//leftFar + tempArray[12] = points[7];//leftFar + tempArray[13] = points[2];//leftFar + tempArray[14] = points[0];//leftFar + tempArray[15] = points[6];//leftFar + tempArray[16] = points[5];//leftFar + tempArray[17] = points[0];//leftFar + tempArray[18] = points[4];//leftFar + + + let tempX1, tempY1, tempZ1, tempX2, tempY2, tempZ2; + for (let i = 0; i < tempArray.length - 1; i++) { + let start = i; + let end = i + 1; tempX1 = tempArray[start].x; tempY1 = tempArray[start].y; @@ -1868,413 +1878,425 @@ Processor3D.prototype._getMinMaxOyPoints2 = function (points, minZ) { tempX2 = tempArray[end].x; tempY2 = tempArray[end].y; tempZ2 = tempArray[end].z; - } + if (tempY1 > tempY2) { + start = i + 1; + end = i; - //var diffY = calculateDiffY(tempX1, tempX2, tempY1, tempY2, tempZ1, tempZ2, minZ); + tempX1 = tempArray[start].x; + tempY1 = tempArray[start].y; + tempZ1 = tempArray[start].z; + tempX2 = tempArray[end].x; + tempY2 = tempArray[end].y; + tempZ2 = tempArray[end].z; + } - var correctOffset = this._correctZPositionOY(tempX1, tempX2, tempZ1, tempZ2, minZ, tempY1, tempY2); - var diffZ = correctOffset.minZ; - var diffY = correctOffset.diffY; + //let diffY = calculateDiffY(tempX1, tempX2, tempY1, tempY2, tempZ1, tempZ2, minZ); - var rotatePoint1 = this.calculatePointManual(tempX1, tempY1, tempZ1, this.cameraDiffX, diffY, diffZ); - var y1 = rotatePoint1.y; + let correctOffset = this._correctZPositionOY(tempX1, tempX2, tempZ1, tempZ2, minZ, tempY1, tempY2); + let diffZ = correctOffset.minZ; + let diffY = correctOffset.diffY; - var rotatePoint2 = this.calculatePointManual(tempX2, tempY2, tempZ2, this.cameraDiffX, diffY, diffZ); - var y2 = rotatePoint2.y; - var topMargin = y1; - var bottomMargin = Math.floor(h - y2); - if (!((topMargin >= bottomMargin - 1) && (topMargin <= bottomMargin + 1))) - continue; + let rotatePoint1 = this.calculatePointManual(tempX1, tempY1, tempZ1, this.cameraDiffX, diffY, diffZ); + let y1 = rotatePoint1.y; - var isTrue = true; - for (var l = 0; l < tempArray.length - 1; l++) { - var rotatePoint = this.calculatePointManual(tempArray[l].x, tempArray[l].y, tempArray[l].z, this.cameraDiffX, diffY, diffZ); - var tempY11 = rotatePoint.y; - if (y1 < y2) { - if (tempY11 < y1 || tempY11 > y2) { - isTrue = false; - break; - } - } else { - if (tempY11 > y1 || tempY11 < y2) { - isTrue = false; - break; - } + let rotatePoint2 = this.calculatePointManual(tempX2, tempY2, tempZ2, this.cameraDiffX, diffY, diffZ); + let y2 = rotatePoint2.y; + + let topMargin = y1; + let bottomMargin = Math.floor(h - y2); + if (!((topMargin >= bottomMargin - 1) && (topMargin <= bottomMargin + 1))) { + continue; } - } - if (isTrue) - break; - } + let isTrue = true; + for (let l = 0; l < tempArray.length - 1; l++) { + let rotatePoint = this.calculatePointManual(tempArray[l].x, tempArray[l].y, tempArray[l].z, this.cameraDiffX, diffY, diffZ); + let tempY11 = rotatePoint.y; - return { - diffY: diffY, - tempX1: tempX1, - tempY1: tempY1, - tempZ1: tempZ1, - tempX2: tempX2, - tempY2: tempY2, - tempZ2: tempZ2, - diffZ: diffZ - }; -}; + if (y1 < y2) { + if (tempY11 < y1 || tempY11 > y2) { + isTrue = false; + break; + } + } else { + if (tempY11 > y1 || tempY11 < y2) { + isTrue = false; + break; + } + } + } -Processor3D.prototype._correctZPosition4 = function (x1, x2, z1, z2, minZ, y1, y2) { - var t = this; + if (isTrue) { + break; + } + } - var getDiffXZ3 = function (x1, x2, z1, z2, y1, y2) { - var w = t.widthCanvas; + return { + tempX1: tempX1, tempY1: tempY1, tempZ1: tempZ1, tempX2: tempX2, tempY2: tempY2, tempZ2: tempZ2 + }; + }; - var fov = 1 / t.rPerspective; + Processor3D.prototype._correctZPosition4 = function (x1, x2, z1, z2, minZ, y1, y2) { + let t = this; - var diffAndScalePoints = t.diffAndScale(x1, y1, z1); - var x11 = diffAndScalePoints.x; - var y11 = diffAndScalePoints.y; - var z11 = diffAndScalePoints.z; + let getDiffXZ3 = function (x1, x2, z1, z2, y1, y2) { + let w = t.widthCanvas; + let fov = 1 / t.rPerspective; - var rotatePoints = t.rotate(x11, y11, z11); - var x111 = rotatePoints.x; - var z111 = rotatePoints.z; + let diffAndScalePoints = t.diffAndScale(x1, y1, z1); + let x11 = diffAndScalePoints.x; + let y11 = diffAndScalePoints.y; + let z11 = diffAndScalePoints.z; - /*var x1111 = x111 + diffX; - var y1111 = y111 + diffY; - var z1111 = z111 + diffZ; - var x11111 = (fov * x1111) / (z1111 + fov) + w / 2; - var y11111 = (fov * y1111) / (z1111 + fov) + h / 2;*/ + let rotatePoints = t.rotate(x11, y11, z11); + let x111 = rotatePoints.x; + let z111 = rotatePoints.z; - //(fov * x1111) / (z1111 + fov) + w / 2 = t.left - //(fov * (x111 + diffX)) / ((z111 + diffZ) + fov) + w / 2 = t.left - var wL = t.left - w / 2; - //fov * (x111 + diffX) = wL * ((z111 + diffZ) + fov) - //fov * x111 + fov * diffX = wL * z111 + wL * diffZ + wL * fov + /*let x1111 = x111 + diffX; + let y1111 = y111 + diffY; + let z1111 = z111 + diffZ; + let x11111 = (fov * x1111) / (z1111 + fov) + w / 2; + let y11111 = (fov * y1111) / (z1111 + fov) + h / 2;*/ - diffAndScalePoints = t.diffAndScale(x2, y2, z2); - var x22 = diffAndScalePoints.x; - var y22 = diffAndScalePoints.y; - var z22 = diffAndScalePoints.z; + //(fov * x1111) / (z1111 + fov) + w / 2 = t.left + //(fov * (x111 + diffX)) / ((z111 + diffZ) + fov) + w / 2 = t.left + let wL = t.left - w / 2; + //fov * (x111 + diffX) = wL * ((z111 + diffZ) + fov) + //fov * x111 + fov * diffX = wL * z111 + wL * diffZ + wL * fov - rotatePoints = t.rotate(x22, y22, z22); - var x222 = rotatePoints.x; - var z222 = rotatePoints.z; + diffAndScalePoints = t.diffAndScale(x2, y2, z2); + let x22 = diffAndScalePoints.x; + let y22 = diffAndScalePoints.y; + let z22 = diffAndScalePoints.z; - /*var x1111 = x111 + diffX; - var y1111 = y111 + diffY; - var z1111 = z111 + diffZ; - var x11111 = (fov * x1111) / (z1111 + fov) + w / 2; - var y11111 = (fov * y1111) / (z1111 + fov) + h / 2;*/ + rotatePoints = t.rotate(x22, y22, z22); + let x222 = rotatePoints.x; + let z222 = rotatePoints.z; - var wR = w / 2 - t.left; - //fov * (x222 + diffX) = wR * ((z222 + diffZ) + fov) - //fov * x222 + fov * diffX = wR * z222 + wR * diffZ + wR * fov + /*let x1111 = x111 + diffX; + let y1111 = y111 + diffY; + let z1111 = z111 + diffZ; + let x11111 = (fov * x1111) / (z1111 + fov) + w / 2; + let y11111 = (fov * y1111) / (z1111 + fov) + h / 2;*/ - //итого - //fov * x111 + fov * diffX = wL * z111 + wL * diffZ + wL * fov - //fov * x222 + fov * diffX = wR * z222 + wR * diffZ + wR * fov + let wR = w / 2 - t.left; + //fov * (x222 + diffX) = wR * ((z222 + diffZ) + fov) + //fov * x222 + fov * diffX = wR * z222 + wR * diffZ + wR * fov - /*diffX = (wL * z111 + wL * diffZ + wL * fov - fov * x111) / fov; + //итого + //fov * x111 + fov * diffX = wL * z111 + wL * diffZ + wL * fov + //fov * x222 + fov * diffX = wR * z222 + wR * diffZ + wR * fov - fov * x222 + wL * z111 + wL * diffZ + wL * fov - fov * x111 = wR * z222 + wR * diffZ + wR * fov - fov * x222 + wL * z111 + wL * fov - fov * x111 - wR * z222 - wR * fov = wR * diffZ - wL * diffZ*/ + /*diffX = (wL * z111 + wL * diffZ + wL * fov - fov * x111) / fov; + fov * x222 + wL * z111 + wL * diffZ + wL * fov - fov * x111 = wR * z222 + wR * diffZ + wR * fov - var diffZ = (fov * x222 + wL * z111 + wL * fov - fov * x111 - wR * z222 - wR * fov) / (wR - wL); - var diffX = (wL * z111 + wL * diffZ + wL * fov - fov * x111) / fov; + fov * x222 + wL * z111 + wL * fov - fov * x111 - wR * z222 - wR * fov = wR * diffZ - wL * diffZ*/ - return {minZ: diffZ, diffX: diffX}; - }; + let diffZ = (fov * x222 + wL * z111 + wL * fov - fov * x111 - wR * z222 - wR * fov) / (wR - wL); + let diffX = (wL * z111 + wL * diffZ + wL * fov - fov * x111) / fov; - var diffXZ3 = getDiffXZ3(x1, x2, z1, z2, y1, y2); - return {minZ: diffXZ3.minZ, diffX: diffXZ3.diffX}; -}; + return {minZ: diffZ, diffX: diffX}; + }; + let diffXZ3 = getDiffXZ3(x1, x2, z1, z2, y1, y2); -Processor3D.prototype._correctZPositionOY = function (x1, x2, z1, z2, minZ, y1, y2) { - var t = this; + return {minZ: diffXZ3.minZ, diffX: diffXZ3.diffX}; + }; - var getDiffXZ3 = function (x1, x2, z1, z2, y1, y2) { - var h = t.heightCanvas; + Processor3D.prototype._correctZPositionOY = function (x1, x2, z1, z2, minZ, y1, y2) { + let t = this; - var fov = 1 / t.rPerspective; + let getDiffXZ3 = function (x1, x2, z1, z2, y1, y2) { + let h = t.heightCanvas; - var diffAndScalePoints = t.diffAndScale(x1, y1, z1); - var x11 = diffAndScalePoints.x; - var y11 = diffAndScalePoints.y; - var z11 = diffAndScalePoints.z; + let fov = 1 / t.rPerspective; + let diffAndScalePoints = t.diffAndScale(x1, y1, z1); + let x11 = diffAndScalePoints.x; + let y11 = diffAndScalePoints.y; + let z11 = diffAndScalePoints.z; - var rotatePoints = t.rotate(x11, y11, z11); - var y111 = rotatePoints.y; - var z111 = rotatePoints.z; + let rotatePoints = t.rotate(x11, y11, z11); + let y111 = rotatePoints.y; + let z111 = rotatePoints.z; - /*var x1111 = x111 + diffX; - var y1111 = y111 + diffY; - var z1111 = z111 + diffZ; - var x11111 = (fov * x1111) / (z1111 + fov) + w / 2; - var y11111 = (fov * y1111) / (z1111 + fov) + h / 2;*/ + /*let x1111 = x111 + diffX; + let y1111 = y111 + diffY; + let z1111 = z111 + diffZ; + let x11111 = (fov * x1111) / (z1111 + fov) + w / 2; + let y11111 = (fov * y1111) / (z1111 + fov) + h / 2;*/ - //(fov * x1111) / (z1111 + fov) + w / 2 = t.left - //(fov * (x111 + diffX)) / ((z111 + diffZ) + fov) + w / 2 = t.left - //var wL = t.left - w / 2; - //fov * (x111 + diffX) = wL * ((z111 + diffZ) + fov) - //fov * x111 + fov * diffX = wL * z111 + wL * diffZ + wL * fov + //(fov * x1111) / (z1111 + fov) + w / 2 = t.left + //(fov * (x111 + diffX)) / ((z111 + diffZ) + fov) + w / 2 = t.left + //let wL = t.left - w / 2; + //fov * (x111 + diffX) = wL * ((z111 + diffZ) + fov) + //fov * x111 + fov * diffX = wL * z111 + wL * diffZ + wL * fov - diffAndScalePoints = t.diffAndScale(x2, y2, z2); - var x22 = diffAndScalePoints.x; - var y22 = diffAndScalePoints.y; - var z22 = diffAndScalePoints.z; + diffAndScalePoints = t.diffAndScale(x2, y2, z2); + let x22 = diffAndScalePoints.x; + let y22 = diffAndScalePoints.y; + let z22 = diffAndScalePoints.z; - rotatePoints = t.rotate(x22, y22, z22); - var y222 = rotatePoints.y; - var z222 = rotatePoints.z; + rotatePoints = t.rotate(x22, y22, z22); + let y222 = rotatePoints.y; + let z222 = rotatePoints.z; - /*var x1111 = x111 + diffX; - var y1111 = y111 + diffY; - var z1111 = z111 + diffZ; - var x11111 = (fov * x1111) / (z1111 + fov) + w / 2; - var y11111 = (fov * y1111) / (z1111 + fov) + h / 2;*/ + /*let x1111 = x111 + diffX; + let y1111 = y111 + diffY; + let z1111 = z111 + diffZ; + let x11111 = (fov * x1111) / (z1111 + fov) + w / 2; + let y11111 = (fov * y1111) / (z1111 + fov) + h / 2;*/ - //(fov * (y111 + diffY)) / ((z111 + diffZ) + fov) + h / 2 = t.top - //(fov * (y222 + diffY)) / ((z222 + diffZ) + fov) + h / 2 = h - t.bottom - var wL = t.top - h / 2; - var wR = h / 2 - t.bottom; - /*(fov * (y111 + diffY)) / ((z111 + diffZ) + fov) = wL - (fov * (y222 + diffY)) / ((z222 + diffZ) + fov) = wR + //(fov * (y111 + diffY)) / ((z111 + diffZ) + fov) + h / 2 = t.top + //(fov * (y222 + diffY)) / ((z222 + diffZ) + fov) + h / 2 = h - t.bottom + let wL = t.top - h / 2; + let wR = h / 2 - t.bottom; + /*(fov * (y111 + diffY)) / ((z111 + diffZ) + fov) = wL + (fov * (y222 + diffY)) / ((z222 + diffZ) + fov) = wR - fov * (y111 + diffY) = wL * ((z111 + diffZ) + fov) - fov * y111 + fov * diffY = wL * z111 + wL * diffZ + wL * fov - fov * y222 + fov * diffY = wR * z222 + wR * diffZ + wR * fov + fov * (y111 + diffY) = wL * ((z111 + diffZ) + fov) - diffY = (wR * z222 + wR * diffZ + wR * fov - fov * y222) / fov + fov * y111 + fov * diffY = wL * z111 + wL * diffZ + wL * fov + fov * y222 + fov * diffY = wR * z222 + wR * diffZ + wR * fov - fov * y111 + wR * z222 + wR * diffZ + wR * fov - fov * y222 = wL * z111 + wL * diffZ + wL * fov + diffY = (wR * z222 + wR * diffZ + wR * fov - fov * y222) / fov - fov * y111 + wR * z222 + wR * fov - fov * y222 - wL * z111 - wL * fov = wL * diffZ - wR * diffZ*/ + fov * y111 + wR * z222 + wR * diffZ + wR * fov - fov * y222 = wL * z111 + wL * diffZ + wL * fov - var diffZ = (fov * y111 + wR * z222 + wR * fov - fov * y222 - wL * z111 - wL * fov) / (wL - wR); - var diffY = (wR * z222 + wR * diffZ + wR * fov - fov * y222) / fov; + fov * y111 + wR * z222 + wR * fov - fov * y222 - wL * z111 - wL * fov = wL * diffZ - wR * diffZ*/ + let diffZ = (fov * y111 + wR * z222 + wR * fov - fov * y222 - wL * z111 - wL * fov) / (wL - wR); + let diffY = (wR * z222 + wR * diffZ + wR * fov - fov * y222) / fov; - //var diffZ = (fov * x222 + wL * z111 + wL * fov - fov * x111 - wR * z222 - wR * fov) / (wR - wL); - //var diffX = (wL * z111 + wL * diffZ + wL * fov - fov * x111) / fov; + //let diffZ = (fov * x222 + wL * z111 + wL * fov - fov * x111 - wR * z222 - wR * fov) / (wR - wL); + //let diffX = (wL * z111 + wL * diffZ + wL * fov - fov * x111) / fov; - return {minZ: diffZ, diffY: diffY}; - }; - var diffXZ3 = getDiffXZ3(x1, x2, z1, z2, y1, y2); + return {minZ: diffZ, diffY: diffY}; + }; - return {minZ: diffXZ3.minZ, diffY: diffXZ3.diffY}; -}; + let diffXZ3 = getDiffXZ3(x1, x2, z1, z2, y1, y2); -Processor3D.prototype._calculateCameraDiffX = function (minMaxOx) { - //test ровно по центру, но циклом - var maxLeftPoint = minMaxOx.left; - var maxRightPoint = minMaxOx.right; + return {minZ: diffXZ3.minZ, diffY: diffXZ3.diffY}; + }; - //так ближе к тому, как смещает excel - var widthCanvas = this.widthCanvas; - var originalWidthChart = widthCanvas - this.left - this.right; + Processor3D.prototype._calculateCameraDiffX = function (minMaxOx) { + //test ровно по центру, но циклом + let maxLeftPoint = minMaxOx.left; + let maxRightPoint = minMaxOx.right; - var diffLeft = maxLeftPoint - this.left; - var diffRight = (this.left + originalWidthChart) - maxRightPoint; + //так ближе к тому, как смещает excel + let widthCanvas = this.widthCanvas; + let originalWidthChart = widthCanvas - this.left - this.right; - this.cameraDiffX = (((diffRight - diffLeft) / 2) * (1 / (this.rPerspective) + this.cameraDiffZ)) / (1 / (this.rPerspective)); -}; + let diffLeft = maxLeftPoint - this.left; + let diffRight = (this.left + originalWidthChart) - maxRightPoint; -Processor3D.prototype._calculateCameraDiffY = function (maxTopPoint, maxBottomPoint) { - var top = this.top; - var bottom = this.bottom; - var heightCanvas = this.heightCanvas; - var heightChart = heightCanvas - top - bottom; + this.cameraDiffX = (((diffRight - diffLeft) / 2) * (1 / (this.rPerspective) + this.cameraDiffZ)) / (1 / (this.rPerspective)); + }; - var diffTop = maxTopPoint - top; - var diffBottom = (heightChart + top) - maxBottomPoint; + Processor3D.prototype._calculateCameraDiffY = function (maxTopPoint, maxBottomPoint) { + let top = this.top; + let bottom = this.bottom; + let heightCanvas = this.heightCanvas; + let heightChart = heightCanvas - top - bottom; - //this.cameraDiffY = this.top - minMaxOy.top; - для rAngAx - this.cameraDiffY = (diffBottom - diffTop) / 2; -}; + let diffTop = maxTopPoint - top; + let diffBottom = (heightChart + top) - maxBottomPoint; -Processor3D.prototype._getMinMaxOx = function (points, faces) { - var mostLeftPointX; - var mostRightPointX; - var xRight; - var xLeft; + //this.cameraDiffY = this.top - minMaxOy.top; - для rAngAx + this.cameraDiffY = (diffBottom - diffTop) / 2; + }; - for (var i = 0; i < faces.length - 1; i++) { - for (var k = 0; k <= 3; k++) { + Processor3D.prototype._getMinMaxOx = function (points, faces) { + let mostLeftPointX; + let mostRightPointX; + let xRight; + let xLeft; - var point1 = this.convertAndTurnPoint(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z); - //var point2 = this.convertAndTurnPoint(points[faces[i][k + 1]].x, points[faces[i][k + 1]].y, points[faces[i][k + 1]].z, true); - var x1 = point1.x; - //var x2 = point2.x; + for (let i = 0; i < faces.length - 1; i++) { + for (let k = 0; k <= 3; k++) { - if (!xLeft) { - xLeft = x1; - mostLeftPointX = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); + let point1 = this.convertAndTurnPoint(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z); + //let point2 = this.convertAndTurnPoint(points[faces[i][k + 1]].x, points[faces[i][k + 1]].y, points[faces[i][k + 1]].z, true); + let x1 = point1.x; + //let x2 = point2.x; - xRight = x1; - mostRightPointX = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); - } else { - if (x1 < xLeft) { + if (!xLeft) { xLeft = x1; mostLeftPointX = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); - } - if (x1 > xRight) { xRight = x1; mostRightPointX = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); + } else { + if (x1 < xLeft) { + xLeft = x1; + mostLeftPointX = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); + } + + if (x1 > xRight) { + xRight = x1; + mostRightPointX = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); + } } - } + } } - } - return {left: xLeft, right: xRight, mostLeftPointX: mostLeftPointX, mostRightPointX: mostRightPointX}; -}; + return {left: xLeft, right: xRight, mostLeftPointX: mostLeftPointX, mostRightPointX: mostRightPointX}; + }; -Processor3D.prototype._getMinMaxOy = function (points, faces) { - var mostTopPointY; - var mostBottomPointY; - var xTop = this.top + this.heightCanvas; - var xBottom = 0; - for (var i = 0; i < faces.length - 1; i++) { - for (var k = 0; k < 3; k++) { + Processor3D.prototype._getMinMaxOy = function (points, faces) { + let mostTopPointY; + let mostBottomPointY; + let xTop = this.top + this.heightCanvas; + let xBottom = 0; + for (let i = 0; i < faces.length - 1; i++) { + for (let k = 0; k < 3; k++) { - var point1 = this.convertAndTurnPoint(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z); - var point2 = this.convertAndTurnPoint(points[faces[i][k + 1]].x, points[faces[i][k + 1]].y, points[faces[i][k + 1]].z); - var y1 = point1.y; - var y2 = point2.y; + let point1 = this.convertAndTurnPoint(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z); + let point2 = this.convertAndTurnPoint(points[faces[i][k + 1]].x, points[faces[i][k + 1]].y, points[faces[i][k + 1]].z); + let y1 = point1.y; + let y2 = point2.y; - if (y1 <= xTop) { - xTop = y1; - mostTopPointY = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); - } + if (y1 <= xTop) { + xTop = y1; + mostTopPointY = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); + } - if (y2 <= xTop) { - xTop = y2; - mostTopPointY = new Point3D(points[faces[i][k + 1]].x, points[faces[i][k + 1]].y, points[faces[i][k + 1]].z, this.cChartDrawer); - } + if (y2 <= xTop) { + xTop = y2; + mostTopPointY = new Point3D(points[faces[i][k + 1]].x, points[faces[i][k + 1]].y, points[faces[i][k + 1]].z, this.cChartDrawer); + } - if (y1 >= xBottom) { - xBottom = y1; - mostBottomPointY = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); - } + if (y1 >= xBottom) { + xBottom = y1; + mostBottomPointY = new Point3D(points[faces[i][k]].x, points[faces[i][k]].y, points[faces[i][k]].z, this.cChartDrawer); + } - if (y2 >= xBottom) { - xBottom = y2; - mostBottomPointY = new Point3D(points[faces[i][k + 1]].x, points[faces[i][k + 1]].y, points[faces[i][k + 1]].z, this.cChartDrawer); - } + if (y2 >= xBottom) { + xBottom = y2; + mostBottomPointY = new Point3D(points[faces[i][k + 1]].x, points[faces[i][k + 1]].y, points[faces[i][k + 1]].z, this.cChartDrawer); + } + } } - } - return {top: xTop, bottom: xBottom, mostTopPointY: mostTopPointY, mostBottomPointY: mostBottomPointY}; -}; + return {top: xTop, bottom: xBottom, mostTopPointY: mostTopPointY, mostBottomPointY: mostBottomPointY}; + }; -Processor3D.prototype._calcAspectRatio = function () { - //return width / height - var widthOriginalChart = this.widthCanvas - (this.left + this.right); - var heightOriginalChart = this.heightCanvas - (this.top + this.bottom); - //auto scale if hPercent == null - var hPercent = this.hPercent; - var depthPercent = this._getDepthPercent(); + Processor3D.prototype._calcAspectRatio = function () { + //return width / height + let widthOriginalChart = this.widthCanvas - (this.left + this.right); + let heightOriginalChart = this.heightCanvas - (this.top + this.bottom); + //auto scale if hPercent == null + let hPercent = this.hPercent; + let depthPercent = this._getDepthPercent(); - var aspectRatioX = 1; - var aspectRatioY = 1; + let aspectRatioX = 1; + let aspectRatioY = 1; - var subType = this.chartsDrawer.calcProp.subType; - if ((subType === "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area && subType == "normal") || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface) && !this.view3D.getRAngAx()) { - this._calcSpecialStandardScaleX(); + let countSeries = this.chartsDrawer.calculateFirstChartCountSeries(); + let seriesCount = countSeries.series; + let ptCount = countSeries.points; - aspectRatioX = (widthOriginalChart / (heightOriginalChart / hPercent)) * this.specialStandardScaleX; - } else if (subType === "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface) { - var seriesCount = this.chartsDrawer.calcProp.seriesCount; - var ptCount = this.chartsDrawer.calcProp.ptCount; + let subType = this.chartsDrawer.calcProp.subType; + if ((subType === "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || + (this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Area && subType === "normal") || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Surface) && + !this.view3D.getRAngAx()) { + this._calcSpecialStandardScaleX(); - var depth = this.view3D.getRAngAx() ? this._calculateDepth() : this._calculateDepthPerspective(); - var width = (depth / depthPercent) * (ptCount / seriesCount); + aspectRatioX = (widthOriginalChart / (heightOriginalChart / hPercent)) * this.specialStandardScaleX; + } else if (subType === "standard" || this.chartsDrawer.calcProp.type === AscFormat.c_oChartTypes.Line || this.chartsDrawer.calcProp.type === + AscFormat.c_oChartTypes.Surface) { - aspectRatioX = (widthOriginalChart) / width; - } else if (hPercent !== null)//auto scale height - aspectRatioX = widthOriginalChart / (heightOriginalChart / hPercent); + let depth = this.view3D.getRAngAx() ? this._calculateDepth() : this._calculateDepthPerspective(); + let width = (depth / depthPercent) * (ptCount / seriesCount); - if (aspectRatioX < 1 && this.view3D.getRAngAx()) { - aspectRatioY = 1 / aspectRatioX; - aspectRatioX = 1; - } + aspectRatioX = (widthOriginalChart) / width; + } else if (hPercent !== null)//auto scale height + { + aspectRatioX = widthOriginalChart / (heightOriginalChart / hPercent); + } - this.aspectRatioX = aspectRatioX; - this.aspectRatioY = aspectRatioY; -}; + if (aspectRatioX < 1 && this.view3D.getRAngAx()) { + aspectRatioY = 1 / aspectRatioX; + aspectRatioX = 1; + } -Processor3D.prototype._getDepthPercent = function () { - if (AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type) { - return globalBasePercent / 100; - } - return this.view3D && this.view3D.depthPercent ? this.view3D.depthPercent / 100 : globalBasePercent / 100; -}; + this.aspectRatioX = aspectRatioX; + this.aspectRatioY = aspectRatioY; + }; + + Processor3D.prototype._getDepthPercent = function () { + if (AscFormat.c_oChartTypes.Pie === this.chartsDrawer.calcProp.type) { + return globalBasePercent / 100; + } + return this.view3D && this.view3D.depthPercent ? this.view3D.depthPercent / 100 : globalBasePercent / 100; + }; -function Point3D(x, y, z, chartsDrawer) { - this.x = x; - this.y = y; - this.z = z; - this.t = 1; + function Point3D(x, y, z, chartsDrawer) { + this.x = x; + this.y = y; + this.z = z; + this.t = 1; - if (chartsDrawer) { - this.chartProp = chartsDrawer.calcProp; - this.cChartDrawer = chartsDrawer; - this.cChartSpace = chartsDrawer.cChartSpace; + if (chartsDrawer) { + this.chartProp = chartsDrawer.calcProp; + this.cChartDrawer = chartsDrawer; + this.cChartSpace = chartsDrawer.cChartSpace; + } } -} -Point3D.prototype = - { + Point3D.prototype = { constructor: Point3D, rotate: function (angleOx, angleOy, angleOz) { - var x = this.x; - var y = this.y; - var z = this.z; - var cosy = Math.cos(angleOy); - var siny = Math.sin(angleOy); - var cosx = Math.cos(angleOx); - var sinx = Math.sin(angleOx); - var cosz = Math.cos(angleOz); - var sinz = Math.sin(angleOz); + let x = this.x; + let y = this.y; + let z = this.z; + let cosy = Math.cos(angleOy); + let siny = Math.sin(angleOy); + let cosx = Math.cos(angleOx); + let sinx = Math.sin(angleOx); + let cosz = Math.cos(angleOz); + let sinz = Math.sin(angleOz); - var newX = cosy * (sinz * y + cosz * x) - siny * z; - var newY = sinx * (cosy * z + siny * (sinz * y + cosz * x)) + cosx * (cosz * y - sinz * x); - var newZ = cosx * (cosy * z + siny * (sinz * y + cosz * x)) - sinx * (cosz * y - sinz * x); + let newX = cosy * (sinz * y + cosz * x) - siny * z; + let newY = sinx * (cosy * z + siny * (sinz * y + cosz * x)) + cosx * (cosz * y - sinz * x); + let newZ = cosx * (cosy * z + siny * (sinz * y + cosz * x)) - sinx * (cosz * y - sinz * x); this.x = newX; this.y = newY; @@ -2285,11 +2307,11 @@ Point3D.prototype = project: function (matrix) { //умножаем - var projectPoint = matrix.multiplyPoint(this); + let projectPoint = matrix.multiplyPoint(this); //делим на 4 коэффициэнт - var newX = projectPoint.x / projectPoint.t; - var newY = projectPoint.y / projectPoint.t; + let newX = projectPoint.x / projectPoint.t; + let newY = projectPoint.y / projectPoint.t; this.x = newX; this.y = newY; @@ -2314,404 +2336,403 @@ Point3D.prototype = }, multiplyPointOnMatrix1: function (matrix) { - var multiplyMatrix = matrix.multiplyPoint(this); + let multiplyMatrix = matrix.multiplyPoint(this); this.x = multiplyMatrix.x; this.y = multiplyMatrix.y; this.z = multiplyMatrix.z; } }; -function Matrix4D() { - this.a11 = 1.0; - this.a12 = 0.0; - this.a13 = 0.0; - this.a14 = 0.0; - - this.a21 = 0.0; - this.a22 = 1.0; - this.a23 = 0.0; - this.a24 = 0.0; - - this.a31 = 0.0; - this.a32 = 0.0; - this.a33 = 1.0; - this.a34 = 0.0; - - this.a41 = 0.0; - this.a42 = 0.0; - this.a43 = 0.0; - this.a44 = 1.0; - - return this; -} - -Matrix4D.prototype.reset = function () { - this.a11 = 1.0; - this.a12 = 0.0; - this.a13 = 0.0; - this.a14 = 0.0; - - this.a21 = 0.0; - this.a22 = 1.0; - this.a23 = 0.0; - this.a24 = 0.0; - - this.a31 = 0.0; - this.a32 = 0.0; - this.a33 = 1.0; - this.a34 = 0.0; - - this.a41 = 0.0; - this.a42 = 0.0; - this.a43 = 0.0; - this.a44 = 1.0; -}; -Matrix4D.prototype.multiply = function (m) { - var res = new Matrix4D(); - - res.a11 = this.a11 * m.a11 + this.a12 * m.a21 + this.a13 * m.a31 + this.a14 * m.a41; - res.a12 = this.a11 * m.a12 + this.a12 * m.a22 + this.a13 * m.a32 + this.a14 * m.a42; - res.a13 = this.a11 * m.a13 + this.a12 * m.a23 + this.a13 * m.a33 + this.a14 * m.a43; - res.a14 = this.a11 * m.a14 + this.a12 * m.a24 + this.a13 * m.a34 + this.a14 * m.a44; - - res.a21 = this.a21 * m.a11 + this.a22 * m.a21 + this.a23 * m.a31 + this.a24 * m.a41; - res.a22 = this.a21 * m.a12 + this.a22 * m.a22 + this.a23 * m.a32 + this.a24 * m.a42; - res.a23 = this.a21 * m.a13 + this.a22 * m.a23 + this.a23 * m.a33 + this.a24 * m.a43; - res.a24 = this.a21 * m.a14 + this.a22 * m.a24 + this.a23 * m.a34 + this.a24 * m.a44; - - res.a31 = this.a31 * m.a11 + this.a32 * m.a21 + this.a33 * m.a31 + this.a34 * m.a41; - res.a32 = this.a31 * m.a12 + this.a32 * m.a22 + this.a33 * m.a32 + this.a34 * m.a42; - res.a33 = this.a31 * m.a13 + this.a32 * m.a23 + this.a33 * m.a33 + this.a34 * m.a43; - res.a34 = this.a31 * m.a14 + this.a32 * m.a24 + this.a33 * m.a34 + this.a34 * m.a44; - - res.a41 = this.a41 * m.a11 + this.a42 * m.a21 + this.a43 * m.a31 + this.a44 * m.a41; - res.a42 = this.a41 * m.a12 + this.a42 * m.a22 + this.a43 * m.a32 + this.a44 * m.a42; - res.a43 = this.a41 * m.a13 + this.a42 * m.a23 + this.a43 * m.a33 + this.a44 * m.a43; - res.a44 = this.a41 * m.a14 + this.a42 * m.a24 + this.a43 * m.a34 + this.a44 * m.a44; - - return res; -}; -Matrix4D.prototype.multiplyPoint = function (p) { - var res = new Point3D(); + function Matrix4D() { + this.a11 = 1.0; + this.a12 = 0.0; + this.a13 = 0.0; + this.a14 = 0.0; - res.x = p.x * this.a11 + p.y * this.a21 + p.z * this.a31 + this.a41; - res.y = p.x * this.a12 + p.y * this.a22 + p.z * this.a32 + this.a42; - res.z = p.x * this.a13 + p.y * this.a23 + p.z * this.a33 + this.a43; - res.t = p.x * this.a14 + p.y * this.a24 + p.z * this.a34 + this.a44; + this.a21 = 0.0; + this.a22 = 1.0; + this.a23 = 0.0; + this.a24 = 0.0; - return res; -}; + this.a31 = 0.0; + this.a32 = 0.0; + this.a33 = 1.0; + this.a34 = 0.0; + this.a41 = 0.0; + this.a42 = 0.0; + this.a43 = 0.0; + this.a44 = 1.0; -//sort parallalepiped faces -function CSortFaces(cChartDrawer, centralViewPoint) { - this.cChartDrawer = cChartDrawer; - this.chartProp = cChartDrawer.calcProp; - this.centralViewPoint = null; - this._initProperties(centralViewPoint) -} - -CSortFaces.prototype = -{ - constructor: CSortFaces, - - _initProperties: function (centralViewPoint) { - if (!centralViewPoint) { - var top = this.chartProp.chartGutter._top; - var bottom = this.chartProp.chartGutter._bottom; - var left = this.chartProp.chartGutter._left; - var right = this.chartProp.chartGutter._right; - - var widthCanvas = this.chartProp.widthCanvas; - var heightCanvas = this.chartProp.heightCanvas; - var heightChart = heightCanvas - top - bottom; - var widthChart = widthCanvas - left - right; - - var centerChartY = top + heightChart / 2; - var centerChartX = left + widthChart / 2; - - var diffX = centerChartX; - var diffY = centerChartY; - var diffZ = -1 / this.cChartDrawer.processor3D.rPerspective; - //TODO протестировать на bar и затем сделать для всех перспективных диаграмм данный сдвиг - if (!this.cChartDrawer.processor3D.view3D.getRAngAx() && this.chartProp.type === AscFormat.c_oChartTypes.Bar) { - diffX -= this.cChartDrawer.processor3D.cameraDiffX; - diffY -= this.cChartDrawer.processor3D.cameraDiffY; - diffZ -= this.cChartDrawer.processor3D.cameraDiffZ; - } - - //TODO пересмотреть правку! - if (diffZ > 0 && this.chartProp.type === AscFormat.c_oChartTypes.Bar && this.cChartDrawer.processor3D.view3D.getRAngAx() && (this.chartProp.subType === "stackedPer" || this.chartProp.subType == "stacked")) { - diffZ -= 500; - } - - this.centralViewPoint = {x: diffX, y: diffY, z: diffZ}; - } else { - this.centralViewPoint = centralViewPoint; - } - }, + return this; + } - sortParallelepipeds: function (parallelepipeds) { - var intersectionsParallelepipeds = this._getIntersectionsParallelepipeds(parallelepipeds); - var revIntersections = intersectionsParallelepipeds.reverseIntersections; - var countIntersection = intersectionsParallelepipeds.countIntersection; + Matrix4D.prototype.reset = function () { + this.a11 = 1.0; + this.a12 = 0.0; + this.a13 = 0.0; + this.a14 = 0.0; + + this.a21 = 0.0; + this.a22 = 1.0; + this.a23 = 0.0; + this.a24 = 0.0; + + this.a31 = 0.0; + this.a32 = 0.0; + this.a33 = 1.0; + this.a34 = 0.0; + + this.a41 = 0.0; + this.a42 = 0.0; + this.a43 = 0.0; + this.a44 = 1.0; + }; + Matrix4D.prototype.multiply = function (m) { + let res = new Matrix4D(); - var startIndexes = []; - for (var i = 0; i < countIntersection.length; i++) { - if (countIntersection[i] === 0) { - startIndexes.push({index: parseInt(i)}); - } - } + res.a11 = this.a11 * m.a11 + this.a12 * m.a21 + this.a13 * m.a31 + this.a14 * m.a41; + res.a12 = this.a11 * m.a12 + this.a12 * m.a22 + this.a13 * m.a32 + this.a14 * m.a42; + res.a13 = this.a11 * m.a13 + this.a12 * m.a23 + this.a13 * m.a33 + this.a14 * m.a43; + res.a14 = this.a11 * m.a14 + this.a12 * m.a24 + this.a13 * m.a34 + this.a14 * m.a44; - if (startIndexes.length === 0) { - //TODO сделано для графиков типа stacked, когда пересечения найдены всех параллалеп. - return this._getSortZIndexArray(parallelepipeds); - } + res.a21 = this.a21 * m.a11 + this.a22 * m.a21 + this.a23 * m.a31 + this.a24 * m.a41; + res.a22 = this.a21 * m.a12 + this.a22 * m.a22 + this.a23 * m.a32 + this.a24 * m.a42; + res.a23 = this.a21 * m.a13 + this.a22 * m.a23 + this.a23 * m.a33 + this.a24 * m.a43; + res.a24 = this.a21 * m.a14 + this.a22 * m.a24 + this.a23 * m.a34 + this.a24 * m.a44; + + res.a31 = this.a31 * m.a11 + this.a32 * m.a21 + this.a33 * m.a31 + this.a34 * m.a41; + res.a32 = this.a31 * m.a12 + this.a32 * m.a22 + this.a33 * m.a32 + this.a34 * m.a42; + res.a33 = this.a31 * m.a13 + this.a32 * m.a23 + this.a33 * m.a33 + this.a34 * m.a43; + res.a34 = this.a31 * m.a14 + this.a32 * m.a24 + this.a33 * m.a34 + this.a34 * m.a44; + + res.a41 = this.a41 * m.a11 + this.a42 * m.a21 + this.a43 * m.a31 + this.a44 * m.a41; + res.a42 = this.a41 * m.a12 + this.a42 * m.a22 + this.a43 * m.a32 + this.a44 * m.a42; + res.a43 = this.a41 * m.a13 + this.a42 * m.a23 + this.a43 * m.a33 + this.a44 * m.a43; + res.a44 = this.a41 * m.a14 + this.a42 * m.a24 + this.a43 * m.a34 + this.a44 * m.a44; + + return res; + }; + Matrix4D.prototype.multiplyPoint = function (p) { + let res = new Point3D(); + + res.x = p.x * this.a11 + p.y * this.a21 + p.z * this.a31 + this.a41; + res.y = p.x * this.a12 + p.y * this.a22 + p.z * this.a32 + this.a42; + res.z = p.x * this.a13 + p.y * this.a23 + p.z * this.a33 + this.a43; + res.t = p.x * this.a14 + p.y * this.a24 + p.z * this.a34 + this.a44; + + return res; + }; - var g = revIntersections; - var color = {}; // цвет вершины (0, 1, или 2) - var time_in = {}, time_out = {}; // "времена" захода и выхода из вершины - var dfs_timer = 0; - var dfs = function (v) { - time_in[v] = dfs_timer++; - color[v] = 1; +//sort parallalepiped faces + function CSortFaces(cChartDrawer, centralViewPoint) { + this.cChartDrawer = cChartDrawer; + this.chartProp = cChartDrawer.calcProp; + this.centralViewPoint = null; + this._initProperties(centralViewPoint) + } - for (var i in g[v]) { - if (!color[i]) { - dfs(i); + CSortFaces.prototype = { + constructor: CSortFaces, + + _initProperties: function (centralViewPoint) { + if (!centralViewPoint) { + let top = this.chartProp.chartGutter._top; + let bottom = this.chartProp.chartGutter._bottom; + let left = this.chartProp.chartGutter._left; + let right = this.chartProp.chartGutter._right; + + let widthCanvas = this.chartProp.widthCanvas; + let heightCanvas = this.chartProp.heightCanvas; + let heightChart = heightCanvas - top - bottom; + let widthChart = widthCanvas - left - right; + + let centerChartY = top + heightChart / 2; + let centerChartX = left + widthChart / 2; + + let diffX = centerChartX; + let diffY = centerChartY; + let diffZ = -1 / this.cChartDrawer.processor3D.rPerspective; + //TODO протестировать на bar и затем сделать для всех перспективных диаграмм данный сдвиг + if (!this.cChartDrawer.processor3D.view3D.getRAngAx() && this.chartProp.type === AscFormat.c_oChartTypes.Bar) { + diffX -= this.cChartDrawer.processor3D.cameraDiffX; + diffY -= this.cChartDrawer.processor3D.cameraDiffY; + diffZ -= this.cChartDrawer.processor3D.cameraDiffZ; } - } - color[v] = 2; - time_out[v] = dfs_timer++; - }; - var getMax = function () { - var max = 0; - var res = null; - for (var i in time_out) { - if (!addIndexes[i] && time_out[i] > max) { - max = time_out[i]; - res = i; + //TODO пересмотреть правку! + if (diffZ > 0 && this.chartProp.type === AscFormat.c_oChartTypes.Bar && this.cChartDrawer.processor3D.view3D.getRAngAx() && + (this.chartProp.subType === "stackedPer" || this.chartProp.subType === "stacked")) { + diffZ -= 500; } + + this.centralViewPoint = {x: diffX, y: diffY, z: diffZ}; + } else { + this.centralViewPoint = centralViewPoint; } - return res; - }; + }, - for (var i = 0; i < startIndexes.length; i++) { - dfs(startIndexes[i].index); - } + sortParallelepipeds: function (parallelepipeds) { + let intersectionsParallelepipeds = this._getIntersectionsParallelepipeds(parallelepipeds); + let revIntersections = intersectionsParallelepipeds.reverseIntersections; + let countIntersection = intersectionsParallelepipeds.countIntersection; - var addIndexes = {}; - var res = []; - while (true) { - var index = getMax(); + let startIndexes = []; + for (let i = 0; i < countIntersection.length; i++) { + if (countIntersection[i] === 0) { + startIndexes.push({index: parseInt(i)}); + } + } - if (null === index) { - break; + if (startIndexes.length === 0) { + //TODO сделано для графиков типа stacked, когда пересечения найдены всех параллалеп. + return this._getSortZIndexArray(parallelepipeds); } - res.push({nextIndex: index}); - addIndexes[index] = 1; - } - if (res.length < parallelepipeds.length) { - return this._getSortZIndexArray(parallelepipeds); - } + let g = revIntersections; + let color = {}; // цвет вершины (0, 1, или 2) + let time_in = {}, time_out = {}; // "времена" захода и выхода из вершины + let dfs_timer = 0; - return res.reverse(); - }, + let dfs = function (v) { + time_in[v] = dfs_timer++; + color[v] = 1; - _getSortZIndexArray: function (arr) { - arr.sort(function sortArr(a, b) { - return b.z - a.z; - }); - var result = []; - for (var i = 0; i < arr.length; i++) { - result.push({ nextIndex: i }); - } - return result; - }, - - _getIntersectionsParallelepipeds: function (parallelepipeds) { - //TODO нужно по максимуму оптимизировать, при большом количестве значений работает медленно - var usuallyIntersect = {}; - var usuallyIntersectRev = {}; - - var intersections = []; - var reverseIntersections = []; - var countIntersection = []; - for (var i = 0; i < parallelepipeds.length; i++) { - //из каждой точки данного параллалепипеда строим прямые до точки наблюдателя - var fromParallalepiped = parallelepipeds[i]; - countIntersection[i] = 0; - - for (var m = 0; m < parallelepipeds.length; m++) { - if (m === i || usuallyIntersect[i] === m || usuallyIntersectRev[i] === m) { - continue; + for (let i in g[v]) { + if (!color[i]) { + dfs(i); + } } - if (parallelepipeds[m].isValZero && this.cChartDrawer.calcProp.subType !== "normal") { - continue; + + color[v] = 2; + time_out[v] = dfs_timer++; + }; + let getMax = function () { + let max = 0; + let res = null; + for (let i in time_out) { + if (!addIndexes[i] && time_out[i] > max) { + max = time_out[i]; + res = i; + } } + return res; + }; - for (var l = 0; l < fromParallalepiped.arrPoints.length; l++) { - //перебираем точки параллалепипеда FROM - var point = fromParallalepiped.arrPoints[l]; - - //перебираем грани параллалепипеда TO и проверяем на пересечения с прямыми из параллалепипеда FROM - var toParallalepiped = parallelepipeds[m]; - for (var n = 0; n < toParallalepiped.faces.length; n++) { - var toVerge = toParallalepiped.faces[n]; - var lineEqucation = this.cChartDrawer.getLineEquation(point, this.centralViewPoint); - var intersection = this._isIntersectionFaceAndLine(toVerge, lineEqucation, point); - if (intersection) { - usuallyIntersect[i] = m; - usuallyIntersectRev[m] = i; - - if (!intersections[i]) { - intersections[i] = []; - } + for (let i = 0; i < startIndexes.length; i++) { + dfs(startIndexes[i].index); + } - if (!reverseIntersections[m]) { - reverseIntersections[m] = []; - } + let addIndexes = {}; + let res = []; + while (true) { + let index = getMax(); + + if (null === index) { + break; + } + + res.push({nextIndex: index}); + addIndexes[index] = 1; + } + if (res.length < parallelepipeds.length) { + return this._getSortZIndexArray(parallelepipeds); + } + + return res.reverse(); + }, + + _getSortZIndexArray: function (arr) { + arr.sort(function sortArr(a, b) { + return b.z - a.z; + }); + let result = []; + for (let i = 0; i < arr.length; i++) { + result.push({nextIndex: i}); + } + return result; + }, + + _getIntersectionsParallelepipeds: function (parallelepipeds) { + //TODO нужно по максимуму оптимизировать, при большом количестве значений работает медленно + let usuallyIntersect = {}; + let usuallyIntersectRev = {}; + + let intersections = []; + let reverseIntersections = []; + let countIntersection = []; + for (let i = 0; i < parallelepipeds.length; i++) { + //из каждой точки данного параллалепипеда строим прямые до точки наблюдателя + let fromParallalepiped = parallelepipeds[i]; + countIntersection[i] = 0; + + for (let m = 0; m < parallelepipeds.length; m++) { + if (m === i || usuallyIntersect[i] === m || usuallyIntersectRev[i] === m) { + continue; + } + if (parallelepipeds[m].isValZero && this.cChartDrawer.calcProp.subType !== "normal") { + continue; + } + + for (let l = 0; l < fromParallalepiped.arrPoints.length; l++) { + //перебираем точки параллалепипеда FROM + let point = fromParallalepiped.arrPoints[l]; + + //перебираем грани параллалепипеда TO и проверяем на пересечения с прямыми из параллалепипеда FROM + let toParallalepiped = parallelepipeds[m]; + for (let n = 0; n < toParallalepiped.faces.length; n++) { + let toVerge = toParallalepiped.faces[n]; + let lineEqucation = this.cChartDrawer.getLineEquation(point, this.centralViewPoint); + let intersection = this._isIntersectionFaceAndLine(toVerge, lineEqucation, point); + if (intersection) { + usuallyIntersect[i] = m; + usuallyIntersectRev[m] = i; - countIntersection[i]++; + if (!intersections[i]) { + intersections[i] = []; + } - intersections[i][m] = 1; - reverseIntersections[m][i] = 1; + if (!reverseIntersections[m]) { + reverseIntersections[m] = []; + } - l = point.length; - //console.log("fromParallalepiped: " + i + " toParallalepiped " + m + " x: " + intersection.x + " y: " + intersection.y + " z: " + intersection.z); + countIntersection[i]++; - break; + intersections[i][m] = 1; + reverseIntersections[m][i] = 1; + + l = point.length; + //console.log("fromParallalepiped: " + i + " toParallalepiped " + m + " x: " + intersection.x + " y: " + intersection.y + " z: " + intersection.z); + + break; + } } } } } - } - return { - intersections: intersections, - reverseIntersections: reverseIntersections, - countIntersection: countIntersection - }; - }, + return { + intersections: intersections, reverseIntersections: reverseIntersections, countIntersection: countIntersection + }; + }, - //смотрим есть ли пересечения точек, выходящих из вершин данной грани, с другими гранями - _isIntersectionFacesPointLines: function (plainVerge, i, sortZIndexPaths) { - var res = false; - var t = this; + //смотрим есть ли пересечения точек, выходящих из вершин данной грани, с другими гранями + _isIntersectionFacesPointLines: function (plainVerge, i, sortZIndexPaths) { + let res = false; + let t = this; - for (var j = 0; j < plainVerge.points.length; j++) { - var pointFromVerge = plainVerge.points[j]; - var lineEqucation = t.cChartDrawer.getLineEquation(pointFromVerge, this.centralViewPoint); + for (let j = 0; j < plainVerge.points.length; j++) { + let pointFromVerge = plainVerge.points[j]; + let lineEqucation = t.cChartDrawer.getLineEquation(pointFromVerge, this.centralViewPoint); - //пересечение грани и прямой - if (t._isIntersectionFacesAndLine(lineEqucation, pointFromVerge, i, j, sortZIndexPaths)) { - res = true; - break; + //пересечение грани и прямой + if (t._isIntersectionFacesAndLine(lineEqucation, pointFromVerge, i, j, sortZIndexPaths)) { + res = true; + break; + } } - } - return res; - }, + return res; + }, - //пересечение прямой с другими гранями - _isIntersectionFacesAndLine: function (lineEqucation, pointFromVerge, i, j, sortZIndexPaths) { - var res = false; + //пересечение прямой с другими гранями + _isIntersectionFacesAndLine: function (lineEqucation, pointFromVerge, i, j, sortZIndexPaths) { + let res = false; - for (var k = 0; k < sortZIndexPaths.length; k++) { - if (k === i) - continue; + for (let k = 0; k < sortZIndexPaths.length; k++) { + if (k === i) { + continue; + } - if (this._isIntersectionFaceAndLine(sortZIndexPaths[k], lineEqucation, pointFromVerge, i, j, k)) { - res = true; - break; + if (this._isIntersectionFaceAndLine(sortZIndexPaths[k], lineEqucation, pointFromVerge, i, j, k)) { + res = true; + break; + } } - } - return res; - }, + return res; + }, - //пересечение прямой гранью - _isIntersectionFaceAndLine: function (plain, lineEquation, pointFromVerge) { - var res = false; - var t = this; + //пересечение прямой гранью + _isIntersectionFaceAndLine: function (plain, lineEquation, pointFromVerge) { + let res = false; + let t = this; - //get intersection - var nIntersectionPlainAndLine = t.cChartDrawer.isIntersectionPlainAndLine(plain.plainEquation, lineEquation); + //get intersection + let nIntersectionPlainAndLine = t.cChartDrawer.isIntersectionPlainAndLine(plain.plainEquation, lineEquation); - if (null === nIntersectionPlainAndLine) { - return res; - } + if (null === nIntersectionPlainAndLine) { + return res; + } - var iSX = nIntersectionPlainAndLine.x; - var iSY = nIntersectionPlainAndLine.y; - var iSZ = nIntersectionPlainAndLine.z; + let iSX = nIntersectionPlainAndLine.x; + let iSY = nIntersectionPlainAndLine.y; + let iSZ = nIntersectionPlainAndLine.z; - if (Math.round(iSZ * 1000) / 1000 < Math.round(pointFromVerge.z * 1000) / 1000) { - var minMaxpoints = t.cChartDrawer.getMinMaxPoints(plain.points); - var minX = minMaxpoints.minX, maxX = minMaxpoints.maxX, minY = minMaxpoints.minY, - maxY = minMaxpoints.maxY, minZ = minMaxpoints.minZ, maxZ = minMaxpoints.maxZ; + if (Math.round(iSZ * 1000) / 1000 < Math.round(pointFromVerge.z * 1000) / 1000) { + let minMaxpoints = t.cChartDrawer.getMinMaxPoints(plain.points); + let minX = minMaxpoints.minX, maxX = minMaxpoints.maxX, minY = minMaxpoints.minY, maxY = minMaxpoints.maxY, minZ = minMaxpoints.minZ, maxZ = minMaxpoints.maxZ; - var isBeetwenX = t._isBetweenPoint(iSX, minX, maxX); - var isBeetwenY = t._isBetweenPoint(iSY, minY, maxY); - var isBeetwenZ = t._isBetweenPoint(iSZ, minZ, maxZ); + let isBeetwenX = t._isBetweenPoint(iSX, minX, maxX); + let isBeetwenY = t._isBetweenPoint(iSY, minY, maxY); + let isBeetwenZ = t._isBetweenPoint(iSZ, minZ, maxZ); - if (isBeetwenX && isBeetwenY && isBeetwenZ) { - var point0 = plain.points2[0]; - var point1 = plain.points2[1]; - var point2 = plain.points2[2]; - var point3 = plain.points2[3]; + if (isBeetwenX && isBeetwenY && isBeetwenZ) { + let point0 = plain.points2[0]; + let point1 = plain.points2[1]; + let point2 = plain.points2[2]; + let point3 = plain.points2[3]; - var projectIntersection = nIntersectionPlainAndLine; - if (!this.cChartDrawer.processor3D.view3D.getRAngAx()) { - projectIntersection = t.cChartDrawer._convertAndTurnPoint(nIntersectionPlainAndLine.x, nIntersectionPlainAndLine.y, nIntersectionPlainAndLine.z, true, true); - } + let projectIntersection = nIntersectionPlainAndLine; + if (!this.cChartDrawer.processor3D.view3D.getRAngAx()) { + projectIntersection = + t.cChartDrawer._convertAndTurnPoint(nIntersectionPlainAndLine.x, nIntersectionPlainAndLine.y, nIntersectionPlainAndLine.z, true, true); + } - var areaQuadrilateral = plain.plainArea; - var areaTriangle1 = t.cChartDrawer.getAreaTriangle(point0, projectIntersection, point1); - var areaTriangle2 = t.cChartDrawer.getAreaTriangle(point1, projectIntersection, point2); - var areaTriangle3 = t.cChartDrawer.getAreaTriangle(point2, projectIntersection, point3); - var areaTriangle4 = t.cChartDrawer.getAreaTriangle(point3, projectIntersection, point0); + let areaQuadrilateral = plain.plainArea; + let areaTriangle1 = t.cChartDrawer.getAreaTriangle(point0, projectIntersection, point1); + let areaTriangle2 = t.cChartDrawer.getAreaTriangle(point1, projectIntersection, point2); + let areaTriangle3 = t.cChartDrawer.getAreaTriangle(point2, projectIntersection, point3); + let areaTriangle4 = t.cChartDrawer.getAreaTriangle(point3, projectIntersection, point0); - if (parseInt(areaQuadrilateral) === parseInt(areaTriangle1 + areaTriangle2 + areaTriangle3 + areaTriangle4)) { - //var pointFromVergeProject = t.cChartDrawer._convertAndTurnPoint(pointFromVerge.x, pointFromVerge.y, pointFromVerge.z, true, true); - //console.log("x: " + projectIntersection.x + " ;y: " + projectIntersection.y + " ;fromX:" + pointFromVergeProject.x + " ;fromY:" + pointFromVergeProject.y); + if (parseInt(areaQuadrilateral) === parseInt(areaTriangle1 + areaTriangle2 + areaTriangle3 + areaTriangle4)) { + //let pointFromVergeProject = t.cChartDrawer._convertAndTurnPoint(pointFromVerge.x, pointFromVerge.y, pointFromVerge.z, true, true); + //console.log("x: " + projectIntersection.x + " ;y: " + projectIntersection.y + " ;fromX:" + pointFromVergeProject.x + " ;fromY:" + pointFromVergeProject.y); - res = nIntersectionPlainAndLine; + res = nIntersectionPlainAndLine; + } } } - } - return res; - }, + return res; + }, - _isBetweenPoint: function (point, start, end) { - //TODO округление пересмотреть - var res = false; - point = Math.round(point * 100) / 100; - start = Math.round(start * 100) / 100; - end = Math.round(end * 100) / 100; + _isBetweenPoint: function (point, start, end) { + //TODO округление пересмотреть + let res = false; + point = Math.round(point * 100) / 100; + start = Math.round(start * 100) / 100; + end = Math.round(end * 100) / 100; - if (point >= start && point <= end) { - res = true; - } + if (point >= start && point <= end) { + res = true; + } - return res; - }, + return res; + }, - _isEqualPoints: function (point1, point2) { - //TODO округление пересмотреть - var res = false; + _isEqualPoints: function (point1, point2) { + //TODO округление пересмотреть + let res = false; - if (parseInt(point1.x) === parseInt(point2.x) && parseInt(point1.y) === parseInt(point2.y) && parseInt(point1.y) === parseInt(point2.y)) { - res = true; - } + if (parseInt(point1.x) === parseInt(point2.x) && parseInt(point1.y) === parseInt(point2.y) && parseInt(point1.y) === parseInt(point2.y)) { + res = true; + } - return res; - } -}; + return res; + } + }; //----------------------------------------------------------export---------------------------------------------------- window['AscFormat'] = window['AscFormat'] || {}; diff --git a/common/Charts/ChartStyles.js b/common/Charts/ChartStyles.js index 2ee41f0cf1..d3c746520f 100644 --- a/common/Charts/ChartStyles.js +++ b/common/Charts/ChartStyles.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Charts/ChartsDrawer.js b/common/Charts/ChartsDrawer.js index 65b42223a3..31fd6633e1 100644 --- a/common/Charts/ChartsDrawer.js +++ b/common/Charts/ChartsDrawer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -189,7 +189,9 @@ CChartsDrawer.prototype = //CHARTS if (!chartSpace.bEmptySeries) { for(var i in this.charts) { - this.charts[i].recalculate(); + if (this.charts.hasOwnProperty(i) && this.charts[i]) { + this.charts[i].recalculate(); + } } } @@ -204,6 +206,27 @@ CChartsDrawer.prototype = //this._testChartsPaths(); }, + getStandartMargin: function () { + return this.calcProp && AscFormat.isRealNumber(this.calcProp.pxToMM) ? standartMarginForCharts / this.calcProp.pxToMM : 0; + }, + + createChartEx: function (seria) { + this.charts = {}; + switch (seria.layoutId) { + case AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN : + this.charts.chartEx= new drawHistogramChart(seria, this) + break + case AscFormat.SERIES_LAYOUT_WATERFALL : + this.charts.chartEx = new drawWaterfallChart(seria, this) + break + case AscFormat.SERIES_LAYOUT_FUNNEL : + this.charts.chartEx = new drawFunnelChart(seria, this) + break + default : + this.charts.chartEx = null; + } + }, + init: function(chartSpace) { //создаём область this.areaChart = new areaChart(); @@ -215,60 +238,68 @@ CChartsDrawer.prototype = this.backWall3DChart = new backWall3DChart(); //draw chart - var newChart; - for (var i = 0; i < chartSpace.chart.plotArea.charts.length; i++) { - var chart = chartSpace.chart.plotArea.charts[i]; - switch (this._getChartType(chart)) { - case c_oChartTypes.Bar: { - newChart = new drawBarChart(chart, this); - break; - } - case c_oChartTypes.Line: { - newChart = new drawLineChart(chart, this); - break; - } - case c_oChartTypes.HBar: { - newChart = new drawHBarChart(chart, this); - break; - } - case c_oChartTypes.Pie: { - newChart = new drawPieChart(chart, this); - break; - } - case c_oChartTypes.Scatter: { - newChart = new drawScatterChart(chart, this); - break; - } - case c_oChartTypes.Area: { - newChart = new drawAreaChart(chart, this); - break; - } - case c_oChartTypes.Stock: { - newChart = new drawStockChart(chart, this); - break; - } - case c_oChartTypes.DoughnutChart: { - newChart = new drawDoughnutChart(chart, this); - break; - } - case c_oChartTypes.Radar: { - newChart = new drawRadarChart(chart, this); - break; - } - case c_oChartTypes.BubbleChart: { - newChart = new drawBubbleChart(chart, this); - break; + let plotArea = chartSpace.chart.plotArea; + let newChart; + if (plotArea.isChartEx()) { + const series = plotArea.plotAreaRegion.series; + for (let i = 0; i < series.length; i++) { + this.createChartEx(series[i]); + } + } else { + for (let i = 0; i < plotArea.charts.length; i++) { + let chart = plotArea.charts[i]; + switch (this._getChartType(chart)) { + case c_oChartTypes.Bar: { + newChart = new drawBarChart(chart, this); + break; + } + case c_oChartTypes.Line: { + newChart = new drawLineChart(chart, this); + break; + } + case c_oChartTypes.HBar: { + newChart = new drawHBarChart(chart, this); + break; + } + case c_oChartTypes.Pie: { + newChart = new drawPieChart(chart, this); + break; + } + case c_oChartTypes.Scatter: { + newChart = new drawScatterChart(chart, this); + break; + } + case c_oChartTypes.Area: { + newChart = new drawAreaChart(chart, this); + break; + } + case c_oChartTypes.Stock: { + newChart = new drawStockChart(chart, this); + break; + } + case c_oChartTypes.DoughnutChart: { + newChart = new drawDoughnutChart(chart, this); + break; + } + case c_oChartTypes.Radar: { + newChart = new drawRadarChart(chart, this); + break; + } + case c_oChartTypes.BubbleChart: { + newChart = new drawBubbleChart(chart, this); + break; + } + case c_oChartTypes.Surface: { + newChart = new drawSurfaceChart(chart, this); + break; + } } - case c_oChartTypes.Surface: { - newChart = new drawSurfaceChart(chart, this); - break; + if (i === 0) { + this.chart = newChart; + this.charts = {}; } + this.charts[chart.Id] = newChart; } - if (i === 0) { - this.chart = newChart; - this.charts = {}; - } - this.charts[chart.Id] = newChart; } }, @@ -279,7 +310,6 @@ CChartsDrawer.prototype = var cShapeDrawer = new AscCommon.CShapeDrawer(); cShapeDrawer.Graphics = graphics; - this.calcProp.series = chartSpace.chart.plotArea.chart.series; this.cShapeDrawer = cShapeDrawer; @@ -291,35 +321,46 @@ CChartsDrawer.prototype = if(!bBeforeAxes && t.nDimensionCount === 3) { return; } + if (!chartSpace || !chartSpace.chart || !chartSpace.chart.plotArea) { + return; + } - //для начала нужно отсортировать - var sortCharts = t._sortChartsForDrawing(chartSpace); - for(var i = 0; i < sortCharts.length; i++) { - var id = sortCharts[i]; - var chartModel = t._getChartModelById(chartSpace.chart.plotArea, id); - if(!chartModel) { - continue; - } - - var type = chartModel.getObjectType(); - var isLinesChart = type === AscDFH.historyitem_type_LineChart || type === AscDFH.historyitem_type_ScatterChart; - //рисуем линейные диаграммы после отрисовки сетки - if(t.nDimensionCount !== 3 && ((isLinesChart && bBeforeAxes) || (!isLinesChart && !bBeforeAxes))) { - continue; - } - - var bIsNoSmartAttack = false; - if(t.nDimensionCount === 3 || isLinesChart) { - bIsNoSmartAttack = true; - } - - if(bIsNoSmartAttack) { - t.cShapeDrawer.bIsNoSmartAttack = true; + if (chartSpace.isChartEx()) { + for (i in t.charts) { + if (t.charts.hasOwnProperty(i) && t.charts[i]) { + t.charts[i].draw(); + } } - t.calcProp.series = chartModel.series; - t.charts[id].draw(); - if(bIsNoSmartAttack) { - t.cShapeDrawer.bIsNoSmartAttack = false; + } else { + //для начала нужно отсортировать + var sortCharts = t._sortChartsForDrawing(chartSpace); + for(var i = 0; i < sortCharts.length; i++) { + var id = sortCharts[i]; + var chartModel = t._getChartModelById(chartSpace.chart.plotArea, id); + if(!chartModel) { + continue; + } + + var type = chartModel.getObjectType(); + var isLinesChart = type === AscDFH.historyitem_type_LineChart || type === AscDFH.historyitem_type_ScatterChart; + //рисуем линейные диаграммы после отрисовки сетки + if(t.nDimensionCount !== 3 && ((isLinesChart && bBeforeAxes) || (!isLinesChart && !bBeforeAxes))) { + continue; + } + + var bIsNoSmartAttack = false; + if(t.nDimensionCount === 3 || isLinesChart) { + bIsNoSmartAttack = true; + } + + if(bIsNoSmartAttack) { + t.cShapeDrawer.bIsNoSmartAttack = true; + } + + t.charts[id].draw(); + if(bIsNoSmartAttack) { + t.cShapeDrawer.bIsNoSmartAttack = false; + } } } }; @@ -586,6 +627,7 @@ CChartsDrawer.prototype = if (!this.cChartSpace.bEmptySeries) { var type = obj.getObjectType(); + switch (type) { case AscDFH.historyitem_type_DLbl: { pos = this._calculatePositionDlbl(obj); @@ -595,7 +637,7 @@ CChartsDrawer.prototype = var parentType = obj.parent ? obj.parent.getObjectType() : null; if (parentType === AscDFH.historyitem_type_Chart) { pos = this._calculatePositionTitle(obj); - } else if (parentType === AscDFH.historyitem_type_ValAx || parentType === AscDFH.historyitem_type_CatAx || parentType === AscDFH.historyitem_type_DateAx) { + } else if (parentType === AscDFH.historyitem_type_ValAx || parentType === AscDFH.historyitem_type_CatAx || parentType === AscDFH.historyitem_type_DateAx || parentType === AscDFH.historyitem_type_Axis) { pos = this._calculatePositionAxisTitle(obj.parent); } break; @@ -639,18 +681,23 @@ CChartsDrawer.prototype = _calculatePositionDlbl: function(obj/*chartSpace, ser, val, bLayout*/) { - var res = null; - - var chartSpace = obj.chart; - var bLayout = AscCommon.isRealObject(obj.layout) && (AscFormat.isRealNumber(obj.layout.x) || AscFormat.isRealNumber(obj.layout.y)); - var serIdx = obj.series.idx; - var valIdx = obj.pt.idx; - - var chartId = this._getChartModelIdBySerIdx(chartSpace.chart.plotArea, serIdx); - if(null !== chartId && this.charts[chartId] && this.charts[chartId].chart && this.charts[chartId].chart.series) { - //TODO нужно переделать все массивы с патами по idx - var serIndex = this._getIndexByIdxSeria(this.charts[chartId].chart.series, serIdx); - res = this.charts[chartId]._calculateDLbl(chartSpace, serIndex, valIdx, bLayout, serIdx); + let res = null; + if (obj.showChartExVal) { + if (this.charts && this.charts.chartEx) { + res = this.charts.chartEx._calculateDLbl(obj); + } + } else { + var chartSpace = obj.chart; + var bLayout = AscCommon.isRealObject(obj.layout) && (AscFormat.isRealNumber(obj.layout.x) || AscFormat.isRealNumber(obj.layout.y)); + var serIdx = obj.series.idx; + var valIdx = obj.pt.idx; + + var chartId = this._getChartModelIdBySerIdx(chartSpace.chart.plotArea, serIdx); + if(null !== chartId && this.charts[chartId] && this.charts[chartId].chart && this.charts[chartId].chart.series) { + //TODO нужно переделать все массивы с патами по idx + var serIndex = this._getIndexByIdxSeria(this.charts[chartId].chart.series, serIdx); + res = this.charts[chartId]._calculateDLbl(chartSpace, serIndex, valIdx, bLayout, serIdx); + } } return res; @@ -864,22 +911,22 @@ CChartsDrawer.prototype = }, _calculatePositionLabelsCatAxForRadar: function (idx) { - var chartProp = this.calcProp; + let chartProp = this.calcProp; - var trueWidth = chartProp.trueWidth; - var trueHeight = chartProp.trueHeight; - var xCenter = (chartProp.chartGutter._left + trueWidth / 2) / chartProp.pxToMM; - var yCenter = (chartProp.chartGutter._top + trueHeight / 2) / chartProp.pxToMM; + let trueWidth = chartProp.trueWidth; + let trueHeight = chartProp.trueHeight; + let xCenter = (chartProp.chartGutter._left + trueWidth / 2) / chartProp.pxToMM; + let yCenter = (chartProp.chartGutter._top + trueHeight / 2) / chartProp.pxToMM; - var seria = chartProp.series; - var numChache = this.getNumCache(seria[0].val); + let radarChart = this.getChartByType(AscDFH.historyitem_type_RadarChart); + let ptCount = radarChart && radarChart.series && this.cChartDrawer.getPtCount(radarChart.series); - var angle = (Math.PI * 2 / numChache.ptCount) * idx; - var radius = (trueHeight / 2) / chartProp.pxToMM; - var startAngle = (Math.PI / 2) * 3 + angle; + let angle = (Math.PI * 2 / ptCount) * idx; + let radius = (trueHeight / 2) / chartProp.pxToMM; + let startAngle = (Math.PI / 2) * 3 + angle; - var x = xCenter + radius * Math.cos(startAngle); - var y = yCenter + radius * Math.sin(startAngle); + let x = xCenter + radius * Math.cos(startAngle); + let y = yCenter + radius * Math.sin(startAngle); return { x: x, y: y }; }, @@ -914,31 +961,58 @@ CChartsDrawer.prototype = //добавляем размеры подписей осей + размеры названия //TODO генерировать extX для всех осей var axId = chartSpace.chart.plotArea.axId; + let isLeftAxis = false; + let isRightAxis = false; + let isTopExist = chartSpace && chartSpace.chart ? !!chartSpace.chart.title || (!!chartSpace.chart.legend && chartSpace.chart.legend.legendPos === Asc.c_oAscChartLegendShowSettings.top) : false; + let isVertAxisExist = false; if(axId) { for(var i = 0; i < axId.length; i++) { - if(null !== axId[i].title) { - switch (axId[i].axPos) { - case window['AscFormat'].AX_POS_B: { + switch (axId[i].axPos) { + case window['AscFormat'].AX_POS_B: { + if (null !== axId[i].title) { bottomTextLabels += axId[i].title.extY; - break; } - case window['AscFormat'].AX_POS_T: { + break; + } + case window['AscFormat'].AX_POS_T: { + if (null !== axId[i].title) { topTextLabels += axId[i].title.extY; - break; } - case window['AscFormat'].AX_POS_L: { + break; + } + case window['AscFormat'].AX_POS_L: { + if (null !== axId[i].title) { leftTextLabels += axId[i].title.extX; - break; } - case window['AscFormat'].AX_POS_R: { + break; + } + case window['AscFormat'].AX_POS_R: { + if (null !== axId[i].title) { rightTextLabels += axId[i].title.extX; - break; } + break; + } + } + const bLeftVert = axId[i].axPos === AscFormat.AX_POS_L; + const bRigthVert = axId[i].axPos === AscFormat.AX_POS_R; + if (!axId[i].bDelete) { + if (bLeftVert) { + isLeftAxis = axId[i].tickLblPos === AscFormat.TICK_LABEL_POSITION_NEXT_TO || axId[i].tickLblPos === AscFormat.TICK_LABEL_POSITION_LOW; + isRightAxis = axId[i].tickLblPos === AscFormat.TICK_LABEL_POSITION_HIGH; } + if (bRigthVert) { + isLeftAxis = axId[i].tickLblPos === AscFormat.TICK_LABEL_POSITION_HIGH; + isRightAxis = axId[i].tickLblPos === AscFormat.TICK_LABEL_POSITION_NEXT_TO || axId[i].tickLblPos === AscFormat.TICK_LABEL_POSITION_LOW; + } + } + if (!axId[i].bDelete && axId[i].tickLblPos !== Asc.c_oAscTickLabelsPos.TICK_LABEL_POSITION_NONE && (bLeftVert || bRigthVert) && !isVertAxisExist) { + isVertAxisExist = true; } } } + // if no vetical axis when top is not exist, then should work as if top exist + isTopExist = !isTopExist && !isVertAxisExist ? true : isTopExist; //TITLE var topMainTitle = 0; @@ -1032,10 +1106,10 @@ CChartsDrawer.prototype = } if((null === pieChart) || is3dChart) { - left += this._getStandartMargin(left, leftKey, leftTextLabels, 0) + leftKey + leftTextLabels; + left += this._getStandartMargin(isLeftAxis ? 1 : left, leftKey, leftTextLabels, 0) + leftKey + leftTextLabels; bottom += this._getStandartMargin(bottom, bottomKey, bottomTextLabels, 0) + bottomKey + bottomTextLabels; - top += this._getStandartMargin(top, topKey, topTextLabels, topMainTitle) + topKey + topTextLabels + topMainTitle; - right += this._getStandartMargin(right, rightKey, rightTextLabels, 0) + rightKey + rightTextLabels; + top += this._getStandartMargin(isTopExist ? top : 1, topKey, topTextLabels, topMainTitle) + topKey + topTextLabels + topMainTitle; + right += this._getStandartMargin(isRightAxis ? 1 : right, rightKey, rightTextLabels, 0) + rightKey + rightTextLabels; } var pxLeft = calculateLeft ? calculateLeft * pxToMM : left * pxToMM; @@ -1119,12 +1193,15 @@ CChartsDrawer.prototype = var horizontalAxis = horizontalAxes ? horizontalAxes[0] : null; var verticalAxis = verticalAxes ? verticalAxes[0] : null; var crossBetween = null; + const plotArea = chartSpace && chartSpace.chart ? chartSpace.chart.plotArea : null; + const seria = plotArea && plotArea.plotAreaRegion ? plotArea.plotAreaRegion.series[0] : null; + const type = seria ? seria.layoutId : null; + const isChartEx = AscFormat.isRealNumber(type) && chartSpace ? chartSpace.isChartEx() : false; if(verticalAxis instanceof AscFormat.CValAx) { crossBetween = verticalAxis.crossBetween; } else if(horizontalAxis instanceof AscFormat.CValAx) { crossBetween = horizontalAxis.crossBetween; } - if (horizontalAxis && horizontalAxis.xPoints && horizontalAxis.xPoints.length && this.calcProp.widthCanvas != undefined) { if (horizontalAxis instanceof AscFormat.CValAx) { if (!horizontalAxis.isReversed()) { @@ -1134,33 +1211,31 @@ CChartsDrawer.prototype = calculateLeft = horizontalAxis.xPoints[horizontalAxis.xPoints.length - 1].pos; calculateRight = this.calcProp.widthCanvas / pxToMM - horizontalAxis.xPoints[0].pos; } - } else if ((horizontalAxis instanceof AscFormat.CCatAx || horizontalAxis instanceof AscFormat.CDateAx) && verticalAxis && !isNaN(verticalAxis.posX)) { + } else if (((horizontalAxis instanceof AscFormat.CCatAx || horizontalAxis instanceof AscFormat.CDateAx) && verticalAxis && !isNaN(verticalAxis.posX)) || isChartEx) { diffPoints = horizontalAxis.xPoints[1] ? Math.abs(horizontalAxis.xPoints[1].pos - horizontalAxis.xPoints[0].pos) : Math.abs(horizontalAxis.xPoints[0].pos - verticalAxis.posX) * 2; - curBetween = 0; - if (!horizontalAxis.isReversed()) { - if (crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN) { - curBetween = diffPoints / 2; - } - - calculateLeft = horizontalAxis.xPoints[0].pos - curBetween; - calculateRight = this.calcProp.widthCanvas / pxToMM - (horizontalAxis.xPoints[horizontalAxis.xPoints.length - 1].pos + curBetween); - } else { - if (crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN) { - curBetween = diffPoints / 2; - } - - calculateLeft = horizontalAxis.xPoints[horizontalAxis.xPoints.length - 1].pos - curBetween; - calculateRight = this.calcProp.widthCanvas / pxToMM - (horizontalAxis.xPoints[0].pos + curBetween); - } + curBetween = (crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN || isChartEx) ? diffPoints / 2 : 0; + // for reversed cases, start and end indexes are reversed! + const isReversed = horizontalAxis.isReversed(); + const startIndex = (!isReversed || isChartEx) ? 0 : horizontalAxis.xPoints.length - 1; + const endIndex = (!isReversed || isChartEx) ? horizontalAxis.xPoints.length - 1 : 0; + calculateLeft = horizontalAxis.xPoints[startIndex].pos - curBetween; + calculateRight = this.calcProp.widthCanvas / pxToMM - (horizontalAxis.xPoints[endIndex].pos + curBetween); } } if (verticalAxis && verticalAxis.yPoints && verticalAxis.yPoints.length && this.calcProp.heightCanvas != undefined) { - if (verticalAxis instanceof AscFormat.CValAx) { - if (!verticalAxis.isReversed()) { - calculateTop = verticalAxis.yPoints[verticalAxis.yPoints.length - 1].pos; - calculateBottom = this.calcProp.heightCanvas / pxToMM - verticalAxis.yPoints[0].pos; + if (verticalAxis instanceof AscFormat.CValAx || isChartEx) { + if (!verticalAxis.isReversed() || isChartEx) { + if (isChartEx && type === AscFormat.SERIES_LAYOUT_FUNNEL && verticalAxis.yPoints.length === 1) { + // for diagrams with single axis and single data point + let oSize = chartSpace ? chartSpace.getChartSizes() : {startY : 0, h : 0}; + calculateTop = oSize.startY; + calculateBottom = this.calcProp.heightCanvas / pxToMM - (oSize.h + oSize.startY); + } else { + calculateTop = verticalAxis.yPoints[verticalAxis.yPoints.length - 1].pos; + calculateBottom = this.calcProp.heightCanvas / pxToMM - verticalAxis.yPoints[0].pos; + } } else { calculateTop = verticalAxis.yPoints[0].pos; calculateBottom = this.calcProp.heightCanvas / pxToMM - verticalAxis.yPoints[verticalAxis.yPoints.length - 1].pos; @@ -1188,6 +1263,15 @@ CChartsDrawer.prototype = } } + // for funnel chart + if (!horizontalAxis && isChartEx && verticalAxis && verticalAxis.labels && verticalAxis.yPoints) { + calculateLeft = this.cChartSpace && this.cChartSpace.plotAreaRect ? this.cChartSpace.plotAreaRect.x : 0; + let curBetween = verticalAxis.yPoints[1] ? Math.abs(verticalAxis.yPoints[1].pos - verticalAxis.yPoints[0].pos) / 2 : 0; + // curBetween = !curBetween && this.cChartSpace && this.cChartSpace.plotAreaRect ? verticalAxis.yPoints[0].pos - this.cChartSpace.plotAreaRect.y : curBetween; + calculateTop -= curBetween; + calculateBottom -= curBetween; + } + return {calculateLeft: calculateLeft, calculateRight : calculateRight, calculateTop: calculateTop, calculateBottom: calculateBottom}; }, @@ -1196,31 +1280,31 @@ CChartsDrawer.prototype = var defMargin = standartMarginForCharts / this.calcProp.pxToMM; var result; - if (labelsMargin == 0 && keyMargin == 0 && textMargin == 0 && topMainTitleMargin == 0) { + if (labelsMargin === 0 && keyMargin === 0 && textMargin === 0 && topMainTitleMargin === 0) { result = defMargin; - } else if (labelsMargin != 0 && keyMargin == 0 && textMargin == 0 && topMainTitleMargin == 0) { + } else if (labelsMargin !== 0 && keyMargin === 0 && textMargin === 0 && topMainTitleMargin === 0) { result = defMargin / 2; - } else if (labelsMargin != 0 && keyMargin == 0 && textMargin != 0 && topMainTitleMargin == 0) { + } else if (labelsMargin !== 0 && keyMargin === 0 && textMargin !== 0 && topMainTitleMargin === 0) { result = defMargin; - } else if (labelsMargin != 0 && keyMargin != 0 && textMargin != 0 && topMainTitleMargin == 0) { + } else if (labelsMargin !== 0 && keyMargin !== 0 && textMargin !== 0 && topMainTitleMargin === 0) { result = defMargin + defMargin / 2; - } else if (labelsMargin == 0 && keyMargin != 0 && textMargin == 0 && topMainTitleMargin == 0) { + } else if (labelsMargin === 0 && keyMargin !== 0 && textMargin === 0 && topMainTitleMargin === 0) { result = defMargin; - } else if (labelsMargin == 0 && keyMargin == 0 && textMargin != 0 && topMainTitleMargin == 0) { + } else if (labelsMargin === 0 && keyMargin === 0 && textMargin !== 0 && topMainTitleMargin === 0) { result = defMargin; - } else if (labelsMargin == 0 && keyMargin != 0 && textMargin != 0 && topMainTitleMargin == 0) { + } else if (labelsMargin === 0 && keyMargin !== 0 && textMargin !== 0 && topMainTitleMargin === 0) { result = defMargin + defMargin / 2; - } else if (labelsMargin != 0 && keyMargin != 0 && textMargin == 0 && topMainTitleMargin == 0) { + } else if (labelsMargin !== 0 && keyMargin !== 0 && textMargin === 0 && topMainTitleMargin === 0) { result = defMargin; - } else if (labelsMargin == 0 && keyMargin != 0 && textMargin != 0 && topMainTitleMargin == 0) { + } else if (labelsMargin === 0 && keyMargin !== 0 && textMargin !== 0 && topMainTitleMargin === 0) { result = defMargin + defMargin / 2; - } else if (labelsMargin == 0 && keyMargin == 0 && topMainTitleMargin != 0) { + } else if (labelsMargin === 0 && keyMargin === 0 && topMainTitleMargin !== 0) { result = defMargin + defMargin / 2; - } else if (labelsMargin == 0 && keyMargin != 0 && topMainTitleMargin != 0) { + } else if (labelsMargin === 0 && keyMargin !== 0 && topMainTitleMargin !== 0) { result = 2 * defMargin; - } else if (labelsMargin != 0 && keyMargin == 0 && topMainTitleMargin != 0) { + } else if (labelsMargin !== 0 && keyMargin === 0 && topMainTitleMargin !== 0) { result = defMargin; - } else if (labelsMargin != 0 && keyMargin != 0 && topMainTitleMargin != 0) { + } else if (labelsMargin !== 0 && keyMargin !== 0 && topMainTitleMargin !== 0) { result = 2 * defMargin; } @@ -1238,12 +1322,22 @@ CChartsDrawer.prototype = let horizontalAxis = horizontalAxes ? horizontalAxes[0] : null; let verticalAxis = verticalAxes ? verticalAxes[0] : null; + let getInterval = function (_axis) { + if (_axis.interval) { + return Math.abs((horizontalAxis.interval) / 2); + } + if (_axis.scale && _axis.scale.length > 1) { + return Math.abs(_axis.scale[1] - _axis.scale[0]); + } + return 1; + }; + let diffPoints; if(horizontalAxis && horizontalAxis.xPoints && horizontalAxis.xPoints.length) { let orientationHorAxis = !horizontalAxis.isReversed(); diffPoints = 0; if((horizontalAxis instanceof AscFormat.CDateAx || horizontalAxis instanceof AscFormat.CCatAx) && crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN) { - diffPoints = Math.abs((horizontalAxis.interval) / 2); + diffPoints = getInterval(horizontalAxis); } if(orientationHorAxis) { leftDownPointX = horizontalAxis.xPoints[0].pos - diffPoints; @@ -1267,10 +1361,11 @@ CChartsDrawer.prototype = if(verticalAxis && verticalAxis.yPoints && verticalAxis.yPoints.length) { let orientationVerAxis = !verticalAxis.isReversed(); diffPoints = 0; + const isChartEx = chartSpace.isChartEx(); if((verticalAxis instanceof AscFormat.CDateAx || verticalAxis instanceof AscFormat.CCatAx)&& crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN) { - diffPoints = Math.abs((verticalAxis.interval) / 2); + diffPoints = getInterval(verticalAxis); } - if(orientationVerAxis) { + if(orientationVerAxis || isChartEx) { leftDownPointY = verticalAxis.yPoints[0].pos + diffPoints; rightUpPointY = verticalAxis.yPoints[verticalAxis.yPoints.length - 1].pos - diffPoints; } else { @@ -1314,20 +1409,35 @@ CChartsDrawer.prototype = var priorityAxis = []; let charts = chartSpace.chart.plotArea.charts; - for (let i = 0; i < charts.length; i++) { - for (let j = 0; j < charts[i].axId.length; j++) { - var axis = charts[i].axId[j]; + const isChartEx = chartSpace.isChartEx(); + if (isChartEx) { + var axId = chartSpace.chart.plotArea.axId; + for(var i = 0; i < axId.length; i++) { + var axis = chartSpace.chart.plotArea.axId[i]; if(axis.axPos === window['AscFormat'].AX_POS_R || axis.axPos === window['AscFormat'].AX_POS_L) { - if (charts[i].getObjectType() === AscDFH.historyitem_type_RadarChart) { - priorityAxis.push(axis); - } else { - res.push(axis); + if(!res) { + res = []; + } + res.push(axis); + } + } + return res; + } else { + for (let i = 0; i < charts.length; i++) { + for (let j = 0; j < charts[i].axId.length; j++) { + var axis = charts[i].axId[j]; + if(axis.axPos === window['AscFormat'].AX_POS_R || axis.axPos === window['AscFormat'].AX_POS_L) { + if (charts[i].getObjectType() === AscDFH.historyitem_type_RadarChart) { + priorityAxis.push(axis); + } else { + res.push(axis); + } } } } + return res.length || priorityAxis.length ? priorityAxis.concat(res) : null; } - return res.length || priorityAxis.length ? priorityAxis.concat(res) : null; }, isRadarChart: function(axis) { @@ -1353,8 +1463,27 @@ CChartsDrawer.prototype = //считаем маргины this._calculateMarginsChart(chartSpace); - this.calcProp.trueWidth = this.calcProp.widthCanvas - this.calcProp.chartGutter._left - this.calcProp.chartGutter._right; - this.calcProp.trueHeight = this.calcProp.heightCanvas - this.calcProp.chartGutter._top - this.calcProp.chartGutter._bottom; + // check if diagmar size affected by layout + const isLayoutSizes = this.cChartSpace.isLayoutSizes(); + + // layour should not affect for circular charts + let isCircular = false; + if (isLayoutSizes && chartSpace && chartSpace.chart && chartSpace.chart.plotArea && Array.isArray(chartSpace.chart.plotArea.charts)) { + const charts = chartSpace.chart.plotArea.charts; + for (let i = 0; i < charts.length; i++) { + const typeChart = charts[0].getObjectType(); + isCircular = !isCircular ? (typeChart === AscDFH.historyitem_type_PieChart || typeChart === AscDFH.historyitem_type_DoughnutChart) : isCircular; + } + } + + if (isLayoutSizes && !isCircular) { + this.calcProp.trueWidth = this.cChartSpace.chart.plotArea.extX * this.calcProp.pxToMM; + this.calcProp.trueHeight = this.cChartSpace.chart.plotArea.extY * this.calcProp.pxToMM; + this.calcProp.chartGutter._top = this.cChartSpace.chart.plotArea.y * this.calcProp.pxToMM; + } else { + this.calcProp.trueWidth = this.calcProp.widthCanvas - this.calcProp.chartGutter._left - this.calcProp.chartGutter._right; + this.calcProp.trueHeight = this.calcProp.heightCanvas - this.calcProp.chartGutter._top - this.calcProp.chartGutter._bottom; + } }, //****new calculate data**** @@ -1534,6 +1663,7 @@ CChartsDrawer.prototype = // add Trendline coordinates and precalculate all the necessary results if (chartSpace && chartSpace.chart && chartSpace.chart.plotArea && chartSpace.chart.plotArea.charts) { const charts = chartSpace.chart.plotArea.charts; + const dispBlanksAs = chartSpace.chart.dispBlanksAs; for (let i = 0; i < charts.length; i++) { if (charts[i].series) { const subType = this.getChartGrouping(charts[i]); @@ -1548,14 +1678,45 @@ CChartsDrawer.prototype = if (!valPts || !valPts.length || seria.isHidden === true || valPts.length < 2) { continue; } - this.trendline.init(valNumCache.ptCount); // if xVal is given const catNumCache = seria.xVal ? this.getNumCache(seria.xVal) : null; const catPts = catNumCache ? catNumCache.pts : null; - for (let k = 0; k < valPts.length; k++) { - const catVal = catPts ? catPts[k].val : valPts[k].idx + 1; - this.trendline.addCoordinate(catVal, valPts[k].val , charts[i].Id, seria.Id); + + // obtain reference of targetPts either catpts or valpts; + const targetPts = catPts ? catPts : valPts; + let valIterator = 0; + let catIterator = 0; + + const decideCatValue = function (index) { + ++catIterator; + return catPts ? targetPts[index].val : targetPts[index].idx + 1; + } + + const decideValValue = function () { + return valPts[valIterator++].val + } + + if (dispBlanksAs === AscFormat.DISP_BLANKS_AS_ZERO) { + const ptCount = catNumCache ? catNumCache.ptCount : valNumCache.ptCount; + for (let k = 0; k < ptCount; k++) { + const statement1 = catIterator < targetPts.length; + const statement2 = valIterator < valPts.length; + const catVal = statement1 && k === targetPts[catIterator].idx ? decideCatValue(catIterator) : 0; + const valVal = statement2 && k === valPts[valIterator].idx ? decideValValue() : 0; + this.trendline.addCoordinate(catVal, valVal, charts[i].Id, seria.Id); + } + } else { + for (let k = 0; k < targetPts.length && valIterator < valPts.length; k++) { + if ( targetPts[k].idx === valPts[valIterator].idx) { + const catVal = decideCatValue(k); + const valVal = decideValValue(); + this.trendline.addCoordinate(catVal, valVal, charts[i].Id, seria.Id); + } else if (targetPts[k].idx > valPts[valIterator].idx) { + valIterator++; + k--; + } + } } } } @@ -1863,11 +2024,20 @@ CChartsDrawer.prototype = } } else { if(series.length > 0) { - //возможно стоит пройтись по всем сериям - seria = series[0]; - numCache = t.getNumCache(seria.val); + // every chart except scatter should start from 1 min = 1; - max = numCache ? numCache.ptCount : 1; + max = 1; + // find max value across each seria + for (let i = 0; i < series.length; i++) { + const seria = series[i]; + if (seria) { + numCache = t.getNumCache(seria.val); + const ptCount = numCache && AscFormat.isRealNumber(numCache.ptCount) ? numCache.ptCount : 0; + // trendline can affect max value + const newMax = seria.trendline && seria.trendline.forward && ptCount > 1 ? ptCount + seria.trendline.forward : ptCount; + max = Math.max(max, newMax); + } + } } } }; @@ -1890,6 +2060,12 @@ CChartsDrawer.prototype = newArr[l][j] = [val.x, val.y]; } } + + // check the impact of trendline on scatter chart + if (series[l].trendline) { + min = series[l].trendline.backward ? min - series[l].trendline.backward : min; + max = series[l].trendline.forward ? max + series[l].trendline.forward : max; + } } }; @@ -1966,7 +2142,8 @@ CChartsDrawer.prototype = let isOx = axis.axPos === window['AscFormat'].AX_POS_B || axis.axPos === window['AscFormat'].AX_POS_T; //для оси категорий берем интервал 1 let arrayValues; - if(AscDFH.historyitem_type_CatAx === axis.getObjectType() || AscDFH.historyitem_type_DateAx === axis.getObjectType()) { + const axisType = axis.getObjectType(); + if(AscDFH.historyitem_type_CatAx === axisType || AscDFH.historyitem_type_DateAx === axisType) { arrayValues = []; let max = axis.max; for(let i = axis.min; i <= max; i++) { @@ -1992,7 +2169,7 @@ CChartsDrawer.prototype = var bIsManualStep = false; let t = this; let calcAxisMinMax = function (isDefaultMinMax) { - let trueMinMax = t._getTrueMinMax((manualMin !== null && manualMin > yMin) ? manualMin : yMin, (manualMax !== null && manualMax < yMax) ? manualMax : yMax, isDefaultMinMax, isScatter); + let trueMinMax = t._getTrueMinMax((manualMin !== null && manualMin > yMin) ? manualMin : yMin, (manualMax !== null && manualMax < yMax) ? manualMax : yMax, isDefaultMinMax, isScatter, manualMax); let _axisMin, _axisMax, _step, firstDegree; //TODO временная проверка для некорректных минимальных и максимальных значений if (manualMax && manualMin && manualMax < manualMin) { @@ -2025,7 +2202,8 @@ CChartsDrawer.prototype = } else { //было следующее условие - isOx || c_oChartTypes.HBar === this.calcProp.type if (isOx /*&& !isScatter && axisMin !== 0 && axisMax !== 0*/) { - _step = t._getStep(firstDegree.val + (firstDegree.val / 10) * 3); + _step = t._getStep(firstDegree.val + (firstDegree.val / 10) * 1.1111); + // _step = t._getStep(firstDegree.val); } else { _step = t._getStep(firstDegree.val); } @@ -2053,7 +2231,11 @@ CChartsDrawer.prototype = } if (isNaN(step) || step === 0) { - arrayValues = [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]; + if (AscFormat.isRealNumber(manualMax) && manualMax <= 0) { + arrayValues = [-1, -0.9, -0.8, -0.7, -0.6, -0.5, -0.4, -0.3, -0.2, -0.1, 0]; + } else { + arrayValues = [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]; + } } else { if (false && isRadarChart) { arrayValues = this._getRadarAxisValues(axisMin, axisMax, step); @@ -2136,13 +2318,21 @@ CChartsDrawer.prototype = } else { var limitArr = [0, 0, 32, 26, 24, 22, 21, 19, 18, 17, 16]; var limit = limitArr[res.length - 1]; - var heightGrid = Math.round((trueHeight / (res.length - 1))); + const num = (trueHeight / (res.length - 1)); + var heightGrid = Math.round(num); while (heightGrid <= limit) { var firstDegreeStep = this._getFirstDegree(newStep); var tempStep = this._getNextStep(firstDegreeStep.val); newStep = tempStep * firstDegreeStep.numPow; - res = this._getArrayDataValues(newStep, axisMin, axisMax, manualMin, manualMax); + const newRes = this._getArrayDataValues(newStep, axisMin, axisMax, manualMin, manualMax); + + //new array cannot be generated from broken data, example: step is NaN + if (!newRes) { + break; + } + //after we checked that newRes is working array substitute res + res = newRes; if (res.length <= 2) { break; } @@ -2170,25 +2360,35 @@ CChartsDrawer.prototype = }, _getArrayDataValues: function (step, axisMin, axisMax, manualMin, manualMax, isRadarChart) { + if (!AscFormat.isRealNumber(axisMin) || !AscFormat.isRealNumber(axisMax) || !AscFormat.isRealNumber(step)) { + return null; + } + var arrayValues; //минимальное значение оси //TODO use axisMin - var minUnit = 0; + let minUnit = 0; - if (manualMin != null) { + if (AscFormat.isRealNumber(manualMin)) { minUnit = manualMin; - } else if (manualMin == null && axisMin != null && axisMin != 0 && axisMin > 0 && axisMax > 0)//TODO пересмотреть все значения, где-то могут быть расхождения с EXCEL - { - minUnit = parseInt(axisMin / step) * step; } else { - if (axisMin < 0) { - while ((!isRadarChart && minUnit >= axisMin) || (isRadarChart && minUnit > axisMin)) { - minUnit -= step; - } - } else if (axisMin > 0) { - while (minUnit < axisMin && minUnit > (axisMin - step)) { - minUnit += step; + if (AscFormat.isRealNumber(manualMax) && manualMax > axisMin && manualMax >= 0) { + const stepCount = Math.ceil((manualMax - axisMin) / step); + minUnit = manualMax - (stepCount * step); + // minUnit = Math.min(minUnit, manualMax - upperLimit); + } else if (AscFormat.isRealNumber(manualMax)) { + if (manualMax > 0) { + minUnit = 0; + } else if (manualMax === 0) { + minUnit = -1; + } else { + minUnit = manualMax * 2; } + } else { + // possible problems if axisMin < 0 should be checked + // const statement1 = !isRadarChart && minUnit >= axisMin; + // const statement2 = isRadarChart && minUnit > axisMin; + minUnit = Math.floor(axisMin / step) * step; } } @@ -2209,9 +2409,8 @@ CChartsDrawer.prototype = * axis contains min and max values and logBase * if they are null just use yMin lowerBound and yMax upperBound */ - let kF = 1000000000; - let trueMin = (axis && axis.scaling && axis.scaling.min) !== null ? Math.round(axis.scaling.min * kF) / kF : null; - let trueMax = (axis && axis.scaling && axis.scaling.max) !== null ? Math.round(axis.scaling.max * kF) / kF : null; + let trueMin = (axis && axis.scaling && axis.scaling.min) !== null ? this._roundValue(axis.scaling.min) : null; + let trueMax = (axis && axis.scaling && axis.scaling.max) !== null ? this._roundValue(axis.scaling.max) : null; yMin = (yMin <= 0 || yMin >= 1) ? 1 : yMin; yMax = (yMax <= 0) ? logBase : yMax; trueMin = (!trueMin || trueMin <= 0) ? yMin : trueMin; @@ -2399,7 +2598,7 @@ CChartsDrawer.prototype = return step; }, - _getTrueMinMax: function (yMin, yMax, isStackedType, isScatter) { + _getTrueMinMax: function (yMin, yMax, isStackedType, isScatter, isMaxSet) { var axisMax, axisMin, diffMaxMin; var cDiff = 1/6; @@ -2408,7 +2607,7 @@ CChartsDrawer.prototype = // TODO пересмотреть все остальные ситуации! if (yMin >= 0 && yMax >= 0) { diffMaxMin = (yMax - yMin) / yMax; - if (cDiff > diffMaxMin) { + if (isMaxSet === null && cDiff > diffMaxMin) { if (isScatter) { axisMin = isStackedType ? yMin : yMin - 0.05 * (yMax - yMin); axisMax = isStackedType ? yMax : yMax + 0.05 * (yMax - yMin); @@ -2455,107 +2654,477 @@ CChartsDrawer.prototype = this.calcProp.pathH = 1000000000; this.calcProp.pathW = 1000000000; - this.calcProp.type = this._getChartType(chartSpace.chart.plotArea.chart); - this.calcProp.subType = this.getChartGrouping(chartSpace.chart.plotArea.chart); - this.calcProp.xaxispos = null; this.calcProp.yaxispos = null; - //рассчёт данных и ещё некоторых параметров(this.calcProp./min/max/ymax/ymin/) - if (!notCalcExtremum) { - this._calculateExtremumAllCharts(chartSpace); - } + const isChartEx = chartSpace.isChartEx(); - //***series*** - this.calcProp.series = chartSpace.chart.plotArea.chart.series; + if (!isChartEx) { + this.calcProp.type = this._getChartType(chartSpace.chart.plotArea.chart); + this.calcProp.subType = this.getChartGrouping(chartSpace.chart.plotArea.chart); + } - //отсеиваем пустые серии - var countSeries = this.calculateCountSeries(chartSpace.chart.plotArea.chart); - this.calcProp.seriesCount = countSeries.series; - this.calcProp.ptCount = countSeries.points; + if (!notCalcExtremum) { + if (!isChartEx) { + //calculate calcProp -> /min/max/ymax/ymin/ + this._calculateExtremumAllCharts(chartSpace); + } else { + this._prepChartExData(chartSpace) + } + } this.calcProp.widthCanvas = chartSpace.extX * this.calcProp.pxToMM; this.calcProp.heightCanvas = chartSpace.extY * this.calcProp.pxToMM; }, - _getChartType: function (chart) { - var res; - var typeChart = chart.getObjectType(); - switch (typeChart) { - case AscDFH.historyitem_type_LineChart: { - res = c_oChartTypes.Line; - break; - } - case AscDFH.historyitem_type_BarChart: { - if (chart.barDir !== AscFormat.BAR_DIR_BAR) { - res = c_oChartTypes.Bar; - } else { - res = c_oChartTypes.HBar; - } - break; - } - case AscDFH.historyitem_type_PieChart: { - res = c_oChartTypes.Pie; - break; - } - case AscDFH.historyitem_type_AreaChart: { - res = c_oChartTypes.Area; - break; - } - case AscDFH.historyitem_type_ScatterChart: { - res = c_oChartTypes.Scatter; - break; - } - case AscDFH.historyitem_type_StockChart: { - res = c_oChartTypes.Stock; - break; - } - case AscDFH.historyitem_type_DoughnutChart: { - res = c_oChartTypes.DoughnutChart; - break; - } - case AscDFH.historyitem_type_RadarChart: { - res = c_oChartTypes.Radar; - break; - } - case AscDFH.historyitem_type_BubbleChart: { - res = c_oChartTypes.BubbleChart; - break; - } - case AscDFH.historyitem_type_SurfaceChart: { - res = c_oChartTypes.Surface; - break; - } + _handleUserTypedChartExValMinMax: function (axis) { + if (!axis) { + return; } - return res; - }, + //check for user typed max and min properties + let trueMin = (axis.scaling && axis.scaling.min != null) ? this._roundValue(axis.scaling.min) : null; + let trueMax = (axis.scaling && axis.scaling.max != null) ? this._roundValue(axis.scaling.max) : null; + const isTrueMin = AscFormat.isRealNumber(trueMin); + const isTreuMax = AscFormat.isRealNumber(trueMax); - getChartGrouping: function(chart) { - var res = null; + if (isTrueMin && isTreuMax && trueMin >= trueMax) { + axis.max = 0; + axis.min = 0; + } else { + trueMin = AscFormat.isRealNumber(trueMin) ? trueMin : axis.min; + trueMax = AscFormat.isRealNumber(trueMax) ? trueMax : axis.max; - var grouping = chart.grouping; - var typeChart = chart.getObjectType(); + //for special cases, when min greater than max, or max is negative + trueMax = (trueMax === 0 && trueMin >= 0) ? 1 : trueMax; + trueMax = (trueMin > 1 && trueMin > trueMax - 1) ? trueMax * 2 : trueMax; + trueMin = (trueMax < 0 && trueMax < trueMin) ? trueMax * 2 : trueMin; - if (typeChart === AscDFH.historyitem_type_LineChart || typeChart === AscDFH.historyitem_type_AreaChart) { - res = (grouping === AscFormat.GROUPING_PERCENT_STACKED) ? "stackedPer" : (grouping === AscFormat.GROUPING_STACKED) ? "stacked" : "normal"; - } else if (this.nDimensionCount === 3 && grouping === AscFormat.BAR_GROUPING_STANDARD) { - res = "standard"; - } else { - res = (grouping === AscFormat.BAR_GROUPING_PERCENT_STACKED) ? "stackedPer" : (grouping === AscFormat.BAR_GROUPING_STACKED) ? "stacked" : "normal"; + axis.max = trueMax; + axis.min = trueMin; } - - return res; }, - calculateSizePlotArea : function(chartSpace, bNotRecalculate) - { - if(!bNotRecalculate || undefined === this.calcProp.chartGutter) { - this._calculateMarginsChart(chartSpace); + _chartExHandleAxesConfigurations: function (axes, axisProperties) { + if (!axes || !Array.isArray(axes) || !axisProperties ) { + return; } - var widthCanvas = chartSpace.extX; - var heightCanvas = chartSpace.extY; - + for (let i = 0; i < axes.length; i++) { + const customAxis = axes[i].axPos === window['AscFormat'].AX_POS_T || axes[i].axPos === window['AscFormat'].AX_POS_B ? axisProperties.cat : axisProperties.val; + axes[i].min = customAxis.min; + axes[i].max = customAxis.max; + this._handleUserTypedChartExValMinMax(axes[i]); + axes[i].scale = customAxis.scale.length > 0 ? customAxis.scale : this._roundValues(this._getAxisValues2(axes[i], this.cChartSpace, false, false)); + } + }, + + _chartExSetAxisMinAndMax: function (axis, num) { + if (!axis || (num !== 0 && !num)) { + return; + } + axis.max = (axis.max === null || num > axis.max) ? num : axis.max; + axis.min = (axis.min === null || num < axis.min) ? num : axis.min; + }, + + _chartExHandleAggregation: function (type, cachedData, numArr, strArr, axisProperties) { + if (type !== AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN || !cachedData || !numArr || !strArr || !axisProperties) { + return; + } + if (cachedData.aggregation) { + const aggregation = cachedData.aggregation; + axisProperties.cat.scale.push(1); + if (strArr.length !== 0) { + // create object of key and values + for (let i = 0; i < numArr.length; i++) { + const key = strArr[i].val; + if (!aggregation.hasOwnProperty(key)) { + aggregation[key] = 0; + } + aggregation[key] += numArr[i].val; + this._chartExSetAxisMinAndMax(axisProperties.val, aggregation[key]); + } + } else { + // Cases when labels do not exist + const val = numArr[0].val ? numArr[0].val : 0; + aggregation[''] = val; + this._chartExSetAxisMinAndMax(axisProperties.val, val); + } + } + }, + + + _chartExHandleBinning: function (type, cachedData, numArr, axisProperties) { + if (type !== AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN || !cachedData || !numArr || !axisProperties) { + return; + } + if (cachedData.binning) { + const handleCatLimits = function (localBinning, axisProperties) { + if (!localBinning || !axisProperties || !axisProperties.cat) { + return; + } + // uncomment when excel will fix the problem of overflow and underflow being incorrect in some moments + // const statement1 = localBinning.intervalClosed !== AscFormat.INTERVAL_CLOSED_SIDE_L ? localBinning.overflow < axisProperties.cat.max && localBinning.overflow >= axisProperties.cat.min : localBinning.overflow <= axisProperties.cat.max && localBinning.overflow > axisProperties.cat.min; + // const statement2 = localBinning.intervalClosed !== AscFormat.INTERVAL_CLOSED_SIDE_L ? localBinning.underflow >= axisProperties.cat.min && localBinning.underflow < axisProperties.cat.max : localBinning.underflow > axisProperties.cat.min && localBinning.underflow <= axisProperties.cat.max; + // localBinning.overflow = ((localBinning.overflow === 0 || localBinning.overflow) && statement1) ? localBinning.overflow : null; + // localBinning.underflow = ((localBinning.underflow === 0 || localBinning.underflow) && statement2) ? localBinning.underflow : null; + localBinning.overflow = ((localBinning.overflow === 0 || localBinning.overflow) && localBinning.overflow < axisProperties.cat.max && localBinning.overflow >= axisProperties.cat.min) ? localBinning.overflow : null; + localBinning.underflow = ((localBinning.underflow === 0 || localBinning.underflow) && localBinning.underflow > axisProperties.cat.min && localBinning.underflow <= axisProperties.cat.max) ? localBinning.underflow : null; + const limits = { + isOverflowExist : localBinning.overflow === 0 || localBinning.overflow ? true : false, + isUnderflowExist : localBinning.underflow === 0 || localBinning.underflow ? true : false, + trueMax : null, + trueMin : null, + } + if (limits.isOverflowExist && limits.isUnderflowExist && localBinning.underflow > localBinning.overflow) { + localBinning.overflow = null; + limits.isOverflowExist = false; + } + limits.trueMax = limits.isOverflowExist ? localBinning.overflow : axisProperties.cat.max; + limits.trueMin = limits.isUnderflowExist ? localBinning.underflow : axisProperties.cat.min; + return limits; + } + + const calculateBinSizeAndCount = function (localBinning, cL, numArr, axisProperties) { + if (!localBinning || !cL || !numArr || !axisProperties) { + return; + } + if (localBinning.binSize) { + localBinning.binCount = Math.max(Math.ceil((cL.trueMax - cL.trueMin) / localBinning.binSize), 1); + localBinning.normalized = true; + } else if (localBinning.binCount) { + localBinning.binCount -= (cL.isOverflowExist ? 1 : 0) + (cL.isUnderflowExist ? 1 : 0); + localBinning.binCount = Math.max(localBinning.binCount, 0); + localBinning.binSize = (localBinning.binCount != 0) ? ((cL.trueMax - cL.trueMin) / localBinning.binCount) : null; + localBinning.normalized = true;; + } else { + // Find stdev + // formula = sqrt((∑(x - mean)^2)/(n-1)) + let isUnique = true; + let mean = 0; + let stDev = 0; + for (let i = 0; i < numArr.length; i++) { + mean += numArr[i].val; + } + mean /= numArr.length; + + for (let i = 0; i < numArr.length; i++) { + isUnique = numArr[i].val === numArr[0].val ? true : false; + stDev += Math.pow((numArr[i].val - mean), 2); + } + stDev = Math.sqrt(stDev / Math.max(numArr.length - 1, 1)); + + // Calculate bin size and bin count + localBinning.binSize = (3.5 * stDev) / (Math.pow(numArr.length, 1 / 3)); + localBinning.binCount = (localBinning.binSize) ? Math.max(Math.ceil((cL.trueMax - cL.trueMin) / localBinning.binSize), 1) : 1; + localBinning.normalized = false; + if (isUnique) { + localBinning.binSize = 5; + localBinning.binCount = 1; + localBinning.overflow = null; + localBinning.underflow = null; + } + } + } + + const addRangesAndFillCatScale = function (localResults, localBinning, cL, axisProperties) { + if (!localResults || !localBinning || !cL || !axisProperties) { + return; + } + let prev = cL.trueMin; + const addRange = function (minVal, maxVal) { + localResults.push({ min: minVal, max: maxVal, occurrence: 0 }); + } + if (cL.isUnderflowExist) { + addRange(null, prev); + } + + axisProperties.cat.scale.push(prev); + for (let i = 0; i < localBinning.binCount; i++) { + let curr = prev + localBinning.binSize; + + if (cL.isOverflowExist) { + curr = Math.min(curr, cL.trueMax); + } + + addRange(prev, curr); + prev = curr; + axisProperties.cat.scale.push(curr); + } + + if (cL.isOverflowExist) { + addRange(cL.trueMax, null); + } + } + + const countOccurrencesAndValExtremum = function (localResults, localBinning, numArr, axisProperties, chartsDrawer) { + if (!localResults || !localBinning || !numArr || !axisProperties) { + return ; + } + if (numArr.length === 1) { + localResults[0].occurrence++; + chartsDrawer._chartExSetAxisMinAndMax(axisProperties.val, 1); + } else { + for (let i = 0; i < numArr.length; i++) { + // sometimes when bincount is fixed, values shifts into the last bean. + // if this issue will be fixed remove isFound and last if case + let isFound = false; + for (let j = 0; j < localResults.length; j++) { + const min = localResults[j].min; + const max = localResults[j].max; + const statement1 = (j === 0 && numArr[i].val === min); + const statement2 = localBinning.intervalClosed !== AscFormat.INTERVAL_CLOSED_SIDE_L ? + ((!min || numArr[i].val > min) && (!max || numArr[i].val <= max)) : + ((!min || numArr[i].val >= min) && (!max || numArr[i].val < max)); + if (statement1 || statement2) { + isFound = true; + localResults[j].occurrence++; + chartsDrawer._chartExSetAxisMinAndMax(axisProperties.val, localResults[j].occurrence); + } + } + if (!isFound && localResults.length > 1) { + const lastIndex = localResults.length - 1; + localResults[lastIndex].occurrence++; + chartsDrawer._chartExSetAxisMinAndMax(axisProperties.val, localResults[lastIndex].occurrence); + } + } + } + } + + const localBinning = cachedData.binning; + const localResults = cachedData.results; + const catLimits = handleCatLimits(localBinning, axisProperties); + calculateBinSizeAndCount(localBinning, catLimits, numArr, axisProperties); + // if binSize is calculated automatically, it must be rounded to two digits. Example: 78.65 = 79, 0.856 : 0.86! + const BINNING_PRECISION = 1; + localBinning.binSize = !localBinning.normalized ? this._roundValue(localBinning.binSize, true, BINNING_PRECISION) : localBinning.binSize; + addRangesAndFillCatScale(localResults, localBinning, catLimits, axisProperties); + countOccurrencesAndValExtremum(localResults, localBinning, numArr, axisProperties, this); + } + }, + + _chartExHandleClusteredColumn: function (type, cachedData, numArr, strArr, axisProperties) { + if (type !== AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN || !cachedData || !numArr || !axisProperties) { + return; + } + + if (!cachedData.clusteredColumn) { + cachedData.clusteredColumn = {}; + } + this._chartExSetAxisMinAndMax(axisProperties.val, 0); + this._chartExHandleAggregation(type, cachedData.clusteredColumn, numArr, strArr, axisProperties); + this._chartExHandleBinning(type, cachedData.clusteredColumn, numArr, axisProperties); + }, + + _chartExHandleWaterfall: function (type, cachedData, numArr, axisProperties, seria) { + if (type !== AscFormat.SERIES_LAYOUT_WATERFALL || !numArr || !axisProperties || !cachedData) { + return; + } + + // prepare cached data + if (!cachedData.waterfall) { + cachedData.waterfall = {data: []}; + } + cachedData.waterfall.numArr = numArr; + + axisProperties.val.min = 0; + axisProperties.val.max = 0; + let sum = 0; + + // Check if any total values exist is in the array + let index = 0; + const subtotals = seria.layoutPr && seria.layoutPr.subtotals ? seria.layoutPr.subtotals.idx : []; + const checkIsTotal = function (idx) { + if (index < subtotals.length) { + if (subtotals[index] === idx) { + index += 1; + return true; + } + } + return false; + } + + for (let i = 0; i < numArr.length; i++) { + const isTotal = checkIsTotal(numArr[i].idx); + sum = isTotal ? numArr[i].val : sum + numArr[i].val; + cachedData.waterfall.data.push({val: sum, isTotal: isTotal}); + this._chartExSetAxisMinAndMax(axisProperties.val, sum); + axisProperties.cat.scale.push(numArr[i].idx + 1); + } + }, + + _chartExHandleFunnel: function (type, cachedData, numArr, axisProperties) { + if (type !== AscFormat.SERIES_LAYOUT_FUNNEL || !numArr || !axisProperties || !cachedData) { + return; + } + + if (!cachedData.funnel) { + cachedData.funnel = []; + } + + //if there is at least one element in the array then min is 1, however if there is no elements then min is 0 + axisProperties.val.min = 0; + axisProperties.val.max = 0; + for (let i = 0; i < numArr.length; i++) { + this._chartExSetAxisMinAndMax(axisProperties.val, numArr[i].val); + cachedData.funnel.push(numArr[i].val); + axisProperties.val.scale.push(numArr.length - i); + } + }, + + _prepChartExData: function (chartSpace) { + // plotArea: CPlotArea + // data: CNumericPoint + if (!chartSpace || !chartSpace.chart || !chartSpace.chart.plotArea || !chartSpace.chart.plotArea.plotAreaRegion || !chartSpace.chart.plotArea.plotAreaRegion.series) { + return; + } + + const plotArea = chartSpace.chart.plotArea; + const seria = plotArea.plotAreaRegion.series[0]; + if (!seria) { + return; + } + const type = seria.layoutId; + const strCache = seria.getCatLit(type); + const numLit = seria.getValLit(); + + //createCache for storing information + const createCachedData = function (chart, seria) { + + chart.cachedData = {} + + if (seria.layoutPr) { + const binning = seria.layoutPr.binning; + const aggregation = seria.layoutPr.aggregation; + if (aggregation) { + chart.cachedData.clusteredColumn = {aggregation : {}}; + } + if (binning) { + if (!chart.cachedData.clusteredColumn) { + chart.cachedData.clusteredColumn = {}; + } + chart.cachedData.clusteredColumn.binning = {intervalClosed: binning.intervalClosed, overflow: binning.overflow, underflow: binning.underflow, binCount : binning.binCount, binSize : binning.binSize }; + chart.cachedData.clusteredColumn.results = []; + } + } + } + + createCachedData(plotArea.plotAreaRegion, seria); + + if (numLit && numLit.pts && numLit.pts.length > 0) { + + const numArr = numLit.pts; + const strArr = strCache ? strCache.pts : []; + const cachedData = plotArea.plotAreaRegion.cachedData; + const axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + } + + if (cachedData) { + + const calculateExtremums = function (type, axisProperties, numArr, chartsDrawer) { + // Histogram has unique labels. Example: [1, 3], (3, 7], ... etc. + if (type === AscFormat.SERIES_LAYOUT_FUNNEL || !axisProperties || !numArr || axisProperties.mean || axisProperties.catMax || axisProperties.catMin) { + return; + } + const isUniqueLabels = (type === AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN) ? true : false; + if (isUniqueLabels) { + for (let i = 0; i < numArr.length; i++) { + chartsDrawer._chartExSetAxisMinAndMax(axisProperties.cat, numArr[i].val); + } + } else { + axisProperties.cat.min = numArr.length > 0 ? numArr[0].idx + 1 : 0; + axisProperties.cat.max = numArr.length > 0 ? numArr[numArr.length - 1].idx + 1 : 0; + } + } + + calculateExtremums(type, axisProperties, numArr, this); + this._chartExHandleClusteredColumn(type, plotArea.plotAreaRegion.cachedData, numArr, strArr, axisProperties); + this._chartExHandleWaterfall(type, plotArea.plotAreaRegion.cachedData, numArr, axisProperties, seria); + this._chartExHandleFunnel(type, plotArea.plotAreaRegion.cachedData, numArr, axisProperties); + this._chartExHandleAxesConfigurations(plotArea.axId, axisProperties); + } + } + }, + + _getChartType: function (chart) { + var res; + var typeChart = chart.getObjectType(); + switch (typeChart) { + case AscDFH.historyitem_type_LineChart: { + res = c_oChartTypes.Line; + break; + } + case AscDFH.historyitem_type_BarChart: { + if (chart.barDir !== AscFormat.BAR_DIR_BAR) { + res = c_oChartTypes.Bar; + } else { + res = c_oChartTypes.HBar; + } + break; + } + case AscDFH.historyitem_type_PieChart: { + res = c_oChartTypes.Pie; + break; + } + case AscDFH.historyitem_type_AreaChart: { + res = c_oChartTypes.Area; + break; + } + case AscDFH.historyitem_type_ScatterChart: { + res = c_oChartTypes.Scatter; + break; + } + case AscDFH.historyitem_type_StockChart: { + res = c_oChartTypes.Stock; + break; + } + case AscDFH.historyitem_type_DoughnutChart: { + res = c_oChartTypes.DoughnutChart; + break; + } + case AscDFH.historyitem_type_RadarChart: { + res = c_oChartTypes.Radar; + break; + } + case AscDFH.historyitem_type_BubbleChart: { + res = c_oChartTypes.BubbleChart; + break; + } + case AscDFH.historyitem_type_SurfaceChart: { + res = c_oChartTypes.Surface; + break; + } + } + return res; + }, + + getChartGrouping: function(chart) { + var res = null; + + var grouping = chart.grouping; + var typeChart = chart.getObjectType(); + + if (typeChart === AscDFH.historyitem_type_LineChart || typeChart === AscDFH.historyitem_type_AreaChart) { + res = (grouping === AscFormat.GROUPING_PERCENT_STACKED) ? "stackedPer" : (grouping === AscFormat.GROUPING_STACKED) ? "stacked" : "normal"; + } else if (this.nDimensionCount === 3 && grouping === AscFormat.BAR_GROUPING_STANDARD) { + res = "standard"; + } else { + res = (grouping === AscFormat.BAR_GROUPING_PERCENT_STACKED) ? "stackedPer" : (grouping === AscFormat.BAR_GROUPING_STACKED) ? "stacked" : "normal"; + } + + return res; + }, + + calculateSizePlotArea : function(chartSpace, bNotRecalculate) + { + if(!bNotRecalculate || undefined === this.calcProp.chartGutter) { + this._calculateMarginsChart(chartSpace); + } + + var widthCanvas = chartSpace.extX; + var heightCanvas = chartSpace.extY; + var w = widthCanvas - (this.calcProp.chartGutter._left + this.calcProp.chartGutter._right) / this.calcProp.pxToMM; var h = heightCanvas - (this.calcProp.chartGutter._top + this.calcProp.chartGutter._bottom) / this.calcProp.pxToMM; @@ -2932,7 +3501,7 @@ CChartsDrawer.prototype = }*/ - var getResult = function(index) { + var getResult = function(index, isChartEx) { resPos = Math.abs(yPoints[index + 1].pos - yPoints[index].pos); resVal = yPoints[index + 1].val - yPoints[index].val; @@ -2943,29 +3512,22 @@ CChartsDrawer.prototype = var res; var startPos = yPoints[index].pos; - if (!isOx) { - if (!axis.isReversed()) { - res = -(resPos / resVal) * (Math.abs(val - yPoints[index].val)) + startPos; - } else { - res = (resPos / resVal) * (Math.abs(val - yPoints[index].val)) + startPos; - } - } else { - if (axis.isReversed()) { - res = -(resPos / resVal) * (Math.abs(val - yPoints[index].val)) + startPos; - } else { - res = (resPos / resVal) * (Math.abs(val - yPoints[index].val)) + startPos; - } - } + // for the cases of reversed axis, direction is calculated + let firstDirection = !isOx && (!axis.isReversed() || isChartEx) ? -1 : 1; + let secondDirection = isOx && (axis.isReversed() || isChartEx) ? -1 : 1; + + res = (firstDirection * secondDirection * (resPos / resVal) * (Math.abs(val - yPoints[index].val))) + startPos; return res; }; var i = 0, j = yPoints.length - 1, k; + const isChartEx = this.cChartSpace.isChartEx(); while (i <= j) { k = Math.floor((i + j) / 2); if (val >= yPoints[k].val && yPoints[k + 1] && val <= yPoints[k + 1].val) { - result = getResult(k); + result = getResult(k, isChartEx); break; } else if (val < yPoints[k].val) { j = k - 1; @@ -3277,19 +3839,59 @@ CChartsDrawer.prototype = _roundValues: function (values) { if (values.length) { for (let i = 0; i < values.length; i++) { - let count = 1; - let kF = 1000000000; - if (values[i] !== 0 && Math.abs(values[i] * kF) < 1) { - while (Math.abs(values[i]*kF) < 1) { - kF *= 10; - } - } - values[i] = Math.round(values[i] * kF) / (kF * count); + values[i] = this._roundValue(values[i]); } } return values; }, + + // if rounding is strong it affects whole number. Example 106.82 -> 107, for the precision 2 + // if weak, then only decimal places. Example 106.82 ->106.8, for the precision 1 + _roundValue: function (num, isStrong, precision) { + if (num !== 0 && (!num || !isFinite(num))) { + return 1; + } + + if (num === 0) { + return num; + } + + // if num is negative + let isNegative = false; + if (num < 0) { + isNegative = true; + num = -num; + } + + if (!precision || precision < 0) { + //default precision is 9! + precision = 9; + } + + let count = 0; + + // Normalize the number by adjusting its scale + if (isStrong) { + while (num >= 10) { + num /= 10; + count++; + } + } + + while (num < 1) { + num *= 10; + count--; + } + + // Round the number to two decimal places + const kF = Math.pow(10, precision); + const roundedNum = Math.round(num * kF) / kF; + + // Return the normalized number with the appropriate scale + num = (count >= 0) ? roundedNum * Math.pow(10, count) : roundedNum / Math.pow(10, -count); + return isNegative ? -num : num; + }, //***spline functions*** @@ -3465,6 +4067,12 @@ CChartsDrawer.prototype = return {series: counter, points: ptCount}; }, + + calculateFirstChartCountSeries: function () { + let chart = this.cChartSpace && this.cChartSpace.chart && this.cChartSpace.chart.plotArea && this.cChartSpace.chart.plotArea.charts && + this.cChartSpace.chart.plotArea.charts[0]; + return chart ? this.calculateCountSeries(chart) : null; + }, //вспомогательные функции работающие с тремя координатами //получаем к-ты уравнения прямой по 2 точкам @@ -4249,6 +4857,66 @@ CChartsDrawer.prototype = return res; }, + // Draws a rectangle, + // params are start x and y, width, height and isCOnverted + _calculateRect: function (x, y, w, h, isPxToMmConverted) { + if (!this.cChartSpace || !this.calcProp) { + return null; + } + const pathId = this.cChartSpace.AllocPath(); + const path = this.cChartSpace.GetPath(pathId); + + const pathH = this.calcProp.pathH; + const pathW = this.calcProp.pathW; + + if (!isPxToMmConverted) { + const pxToMm = this.calcProp.pxToMM; + x = x / pxToMm; + y = y / pxToMm; + w = w / pxToMm; + h = h / pxToMm; + } + + path.moveTo(x * pathW, y * pathH); + path.lnTo(x * pathW, (y - h) * pathH); + path.lnTo((x + w) * pathW, (y - h) * pathH); + path.lnTo((x + w) * pathW, y * pathH); + path.lnTo(x * pathW, y * pathH); + + return pathId; + }, + + // Draws a line, + // params are point1, length, constPoint, isVertical, and isPxToMmConverted + _calculateLine: function (p1, l, constP, isVertical, isPxToMmConverted) { + if (!this.cChartSpace || !this.calcProp) { + return null; + } + + const pathId = this.cChartSpace.AllocPath(); + const path = this.cChartSpace.GetPath(pathId); + + const pathH = this.calcProp.pathH; + const pathW = this.calcProp.pathW; + + if (!isPxToMmConverted) { + const pxToMm = this.calcProp.pxToMM; + p1 = p1 / pxToMm; + l = l / pxToMm; + constP = constP / pxToMm; + } + + if (isVertical) { + path.moveTo(constP * pathW, p1 * pathH); + path.lnTo(constP * pathW, (p1 - l) * pathH); + } else { + path.moveTo(p1 * pathW, constP * pathH); + path.lnTo(p1 + l * pathW, constP * pathH); + } + + return pathId; + }, + _calculatePathFaceCylinder: function(segmentPoints, segmentPoints2, up, down, isConvertPxToMM, check) { var pxToMm = 1; @@ -4507,10 +5175,10 @@ CChartsDrawer.prototype = //common functions for grid getHorizontalGridLines: function (axis, isCatAxis) { - var t = this; - var gridLines, minorGridLines; - var crossBetween = this.cChartSpace.getValAxisCrossType(); - var points = axis.yPoints; + let t = this; + let gridLines, minorGridLines; + let crossBetween = this.cChartSpace.getValAxisCrossType(); + let points = axis.yPoints; if(!points) { return; @@ -4519,24 +5187,25 @@ CChartsDrawer.prototype = return; } - var widthLine = this.calcProp.widthCanvas - (this.calcProp.chartGutter._left + this.calcProp.chartGutter._right); - var bottomMargin = this.calcProp.heightCanvas - this.calcProp.chartGutter._bottom; - var posX = this.calcProp.chartGutter._left; - var posMinorY, posY, crossDiff; + let widthLine = this.calcProp.trueWidth; + let bottomMargin = this.calcProp.heightCanvas - this.calcProp.chartGutter._bottom; + let posX = this.calcProp.chartGutter._left; + let posMinorY, posY, crossDiff; if (crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN && isCatAxis) { - var posAxis = (this.calcProp.heightCanvas - this.calcProp.chartGutter._bottom)/this.calcProp.pxToMM; + let posAxis = (this.calcProp.heightCanvas - this.calcProp.chartGutter._bottom)/this.calcProp.pxToMM; crossDiff = points[1] ? Math.abs((points[1].pos - points[0].pos) / 2) : Math.abs(points[0].pos - posAxis); } let isRadarValues = axis.isRadarValues(); - - //TODO пересмотреть отрисовку сетки для Radar, не использовать numCache! - var numCache, tempAngle, trueHeight, trueWidth, xDiff, xCenter, yCenter; + + let ptCount, tempAngle, trueHeight, trueWidth, xDiff, xCenter, yCenter; if(isRadarValues) { - numCache = this.getNumCache(this.calcProp.series[0].val); - if(numCache) { - tempAngle = 2 * Math.PI / numCache.length; + let radarChart = this.getChartByType(AscDFH.historyitem_type_RadarChart); + let ptCount = radarChart && radarChart.series && this.getPtCount(radarChart.series); + + if(ptCount) { + tempAngle = 2 * Math.PI / ptCount; trueHeight = this.calcProp.trueHeight; trueWidth = this.calcProp.trueWidth; xDiff = ((trueHeight / 2) / points.length) / this.calcProp.pxToMM; @@ -4545,10 +5214,10 @@ CChartsDrawer.prototype = } } - var calculateRadarGridLines = function () { - var y, x, radius, xFirst, yFirst; + let calculateRadarGridLines = function () { + let y, x, radius, xFirst, yFirst; - for (var k = 0; k < numCache.length; k++) { + for (let k = 0; k < ptCount; k++) { y = i * xDiff; x = xCenter; @@ -4557,8 +5226,8 @@ CChartsDrawer.prototype = y = yCenter - radius * Math.cos(k * tempAngle); x = x + radius * Math.sin(k * tempAngle); - var pathH = t.calcProp.pathH; - var pathW = t.calcProp.pathW; + let pathH = t.calcProp.pathH; + let pathW = t.calcProp.pathW; path.stroke = true; if (k === 0) { @@ -4566,7 +5235,7 @@ CChartsDrawer.prototype = yFirst = y; path.moveTo(x * pathW, y * pathH); } else { - if (k === numCache.length - 1) { + if (k === ptCount - 1) { path.lnTo(x * pathW, y * pathH); path.lnTo(xFirst * pathW, yFirst * pathH); } else { @@ -4580,16 +5249,16 @@ CChartsDrawer.prototype = } }; - var minorLinesCount = isCatAxis ? 2 : 5; - var stepY = points[1] ? Math.abs(points[1].pos - points[0].pos) : Math.abs(points[0].pos - axis.posY) * 2; - var minorStep = (stepY / minorLinesCount) * this.calcProp.pxToMM; + let minorLinesCount = isCatAxis ? 2 : 5; + let stepY = points[1] ? Math.abs(points[1].pos - points[0].pos) : Math.abs(points[0].pos - axis.posY) * 2; + let minorStep = (stepY / minorLinesCount) * this.calcProp.pxToMM; - var pathId = t.cChartSpace.AllocPath(); - var path = t.cChartSpace.GetPath(pathId); - var i; + let pathId = t.cChartSpace.AllocPath(); + let path = t.cChartSpace.GetPath(pathId); + let i; for (i = 0; i < points.length; i++) { if(isRadarValues) { - if(numCache) { + if(ptCount) { calculateRadarGridLines(); } } else { @@ -4623,8 +5292,8 @@ CChartsDrawer.prototype = } } - var pathIdMinor = t.cChartSpace.AllocPath(); - var pathMinor = t.cChartSpace.GetPath(pathIdMinor); + let pathIdMinor = t.cChartSpace.AllocPath(); + let pathMinor = t.cChartSpace.GetPath(pathIdMinor); for (i = 0; i < points.length; i++) { if(!isRadarValues) { if(isCatAxis && points[i].val < 0) { @@ -4638,7 +5307,7 @@ CChartsDrawer.prototype = } //промежуточные линии - for (var n = 0; n < minorLinesCount; n++) { + for (let n = 0; n < minorLinesCount; n++) { posMinorY = posY + n * minorStep; if (posMinorY < this.calcProp.chartGutter._top || posMinorY > bottomMargin) { @@ -4654,19 +5323,23 @@ CChartsDrawer.prototype = } } - return {gridLines: gridLines, minorGridLines: minorGridLines}; }, getVerticalGridLines: function (axis, isCatAxis) { var gridLines, minorGridLines; + const isChartEx = this.cChartSpace.isChartEx(); var crossBetween = this.cChartSpace.getValAxisCrossType(); if(null === crossBetween && isCatAxis) { crossBetween = axis.crossAx ? axis.crossAx.crossBetween : null; } - var heightLine = this.calcProp.heightCanvas - (this.calcProp.chartGutter._bottom + this.calcProp.chartGutter._top); + if(null === crossBetween && isChartEx) { + crossBetween = 0; + } + + var heightLine = this.calcProp.trueHeight; var rightMargin = this.calcProp.widthCanvas - this.calcProp.chartGutter._right; var posY = this.calcProp.chartGutter._top; var posMinorX; @@ -4678,15 +5351,14 @@ CChartsDrawer.prototype = if(!axis.majorGridlines && !axis.minorGridlines) { return; } - - var minorLinesCount = isCatAxis ? 2 : 5; + var minorLinesCount = isCatAxis || isChartEx ? 2 : 5; var posAxis = this.calcProp.chartGutter._left / this.calcProp.pxToMM; var stepX = points[1] ? Math.abs((points[1].pos - points[0].pos)) : (Math.abs(points[0].pos - posAxis) * 2); var minorStep = (stepX * this.calcProp.pxToMM) / minorLinesCount; var posX, crossDiff; - if (crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN && isCatAxis) { + if (crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN && (isCatAxis || isChartEx)) { crossDiff = points[1] ? Math.abs((points[1].pos - points[0].pos) / 2) : Math.abs(points[0].pos - posAxis); } @@ -4694,7 +5366,7 @@ CChartsDrawer.prototype = var path = this.cChartSpace.GetPath(pathId); var i; for (i = 0; i < points.length; i++) { - if(isCatAxis && points[i].val < 0) { + if((isCatAxis && points[i].val < 0) && !isChartEx) { continue; } @@ -4725,7 +5397,7 @@ CChartsDrawer.prototype = var pathIdMinor = this.cChartSpace.AllocPath(); var pathMinor = this.cChartSpace.GetPath(pathIdMinor); for (i = 0; i < points.length; i++) { - if(isCatAxis && points[i].val < 0) { + if((isCatAxis && points[i].val < 0) && !isChartEx) { continue; } @@ -4880,7 +5552,9 @@ CChartsDrawer.prototype = yCenter = (this.calcProp.chartGutter._top + trueHeight / 2) / this.calcProp.pxToMM; } - var ptCount = this.getPtCount(this.calcProp.series); + let radarChart = this.getChartByType(AscDFH.historyitem_type_RadarChart); + let ptCount = radarChart && radarChart.series && this.getPtCount(radarChart.series); + if (!ptCount) { return null; } @@ -5949,6 +6623,15 @@ CChartsDrawer.prototype = return pathId; }, + + getChartByType: function (type) { + for (let i in this.charts) { + if (this.charts[i] && this.charts[i].chart.getObjectType() === type) { + return this.charts[i].chart; + } + } + return null; + } }; @@ -6189,7 +6872,7 @@ drawBarChart.prototype = { cubeCount++; } else { - paths = this._calculateRect(startX, startY, individualBarWidth, height); + paths = this.cChartDrawer._calculateRect(startX, startY, individualBarWidth, height); } var serIdx = this.chart.series[i].idx; @@ -6640,25 +7323,6 @@ drawBarChart.prototype = { return {x: centerX, y: centerY}; }, - _calculateRect: function (x, y, w, h) { - var pathId = this.cChartSpace.AllocPath(); - var path = this.cChartSpace.GetPath(pathId); - - var pathH = this.chartProp.pathH; - var pathW = this.chartProp.pathW; - - - var pxToMm = this.chartProp.pxToMM; - - path.moveTo(x / pxToMm * pathW, y / pxToMm * pathH); - path.lnTo(x / pxToMm * pathW, (y - h) / pxToMm * pathH); - path.lnTo((x + w) / pxToMm * pathW, (y - h) / pxToMm * pathH); - path.lnTo((x + w) / pxToMm * pathW, y / pxToMm * pathH); - path.lnTo(x / pxToMm * pathW, y / pxToMm * pathH); - - return pathId; - }, - //TODO delete after test _DrawBars3D2: function () { @@ -7018,201 +7682,783 @@ drawBarChart.prototype = { point8 = this.cChartDrawer._convertAndTurnPoint(x82, y82, z82); - var needAddOnlyFrontFace = this.subType === "standard"; - var nullPositionOX = this.catAx.posY * this.chartProp.pxToMM; + var needAddOnlyFrontFace = this.subType === "standard"; + var nullPositionOX = this.catAx.posY * this.chartProp.pxToMM; + + var t = this; + var dRadius1, dRadius2, uRadius1, uRadius2; + var calcCylinderProps = function (bCone) { + //большая и малая полуось оснований усеченного конуса + if (bCone) { + // за оси эллипса берем 1/2 длин ребер оснований усеченной пирамиды + points = t.cChartDrawer.isConeIntersection(false, t.subType, startX, startY, height, gapDepth, individualBarWidth, perspectiveDepth, val, nullPositionOX, maxH, minH); + + if (t.val === 0) { + uRadius1 = 0; + uRadius2 = 0; + dRadius1 = points.wDown; + dRadius2 = points.lDown; + } else if ((t.subType === "stacked" || t.subType === "stackedPer") && t.cChartSpace.chart.plotArea.valAx.isReversed()) { + uRadius1 = points.wUp !== 0 ? points.wUp : individualBarWidth / 2; + uRadius2 = points.lUp !== 0 ? points.lUp : perspectiveDepth / 2; + dRadius1 = points.wDown; + dRadius2 = points.lDown; + } else { + uRadius1 = points.wUp; + uRadius2 = points.lUp; + dRadius1 = points.wDown !== 0 ? points.wDown : individualBarWidth / 2; + dRadius2 = points.lDown !== 0 ? points.lDown : perspectiveDepth/ 2; + } + + } else { + //большая и малая полуось эллипса + dRadius1 = individualBarWidth / 2; + dRadius2 = perspectiveDepth / 2; + } + }; + + + var facePoints; + switch (type) { + case AscFormat.BAR_SHAPE_PYRAMID: + case AscFormat.BAR_SHAPE_PYRAMIDTOMAX: { + var nullPositionOX = this.subType === "stacked" ? this.cChartDrawer.getPositionZero(this.valAx) : + this.catAx.posY * this.chartProp.pxToMM; + paths = this.cChartDrawer.calculatePyramid(false, this.subType, startX, startY, height, gapDepth, + individualBarWidth, perspectiveDepth, val, nullPositionOX, maxH, minH); + + paths = paths.paths; + break + } + case AscFormat.BAR_SHAPE_CYLINDER: { + //paths = this.cChartDrawer._calculateCylinder(startX, startY, individualBarWidth, height, val, gapDepth, perspectiveDepth, this.subType !== "standard", false, false); + + calcCylinderProps(); + this.cChartDrawer.calcShapesHelper.setProps(startX, startY, gapDepth, individualBarWidth, height, perspectiveDepth, needAddOnlyFrontFace, val, false, dRadius1, dRadius2); + paths = this.cChartDrawer.calcShapesHelper.getCylinder(); + + break; + } + case AscFormat.BAR_SHAPE_CONE: + case AscFormat.BAR_SHAPE_CONETOMAX: { + //paths = this.cChartDrawer._calculateCylinder(startX, startY, individualBarWidth, height, val, gapDepth, perspectiveDepth, this.subType !== "standard", false, this.subType, nullPositionOX, maxH, minH); + + calcCylinderProps(true); + this.cChartDrawer.calcShapesHelper.setProps(startX, startY, gapDepth, individualBarWidth, height, perspectiveDepth, needAddOnlyFrontFace, val, false, dRadius1, dRadius2, uRadius1, uRadius2); + paths = this.cChartDrawer.calcShapesHelper.getCone(); + + break; + } + default: { + points = [point1, point2, point3, point4, point5, point6, point7, point8]; + paths = this.cChartDrawer.calculateRect3D(points, val, null, this.subType !== "standard", false); + break; + } + } + + facePoints = [[point1, point4, point8, point5], [point1, point2, point3, point4], + [point1, point2, point6, point5], [point4, point8, point7, point3], [point5, point6, point7, point8], + [point2, point3, point7, point6]]; + + //paths2 для расчета подписей, в дальнейшем нужно оптимизировать этот процесс + points = [point1, point2, point3, point4, point5, point6, point7, point8]; + paths2 = this.cChartDrawer.calculateRect3D(points, val, isNotDrawDownVerge); + + if (this.subType !== "standard") { + + height = testHeight; + x12 = startX, y12 = startY, z12 = 0 + gapDepth; + x22 = startX, y22 = startY, z22 = perspectiveDepth + gapDepth; + x32 = startX + individualBarWidth, y32 = startY, z32 = perspectiveDepth + gapDepth; + x42 = startX + individualBarWidth, y42 = startY, z42 = 0 + gapDepth; + x52 = startX, y52 = startY - height, z52 = 0 + gapDepth; + x62 = startX, y62 = startY - height, z62 = perspectiveDepth + gapDepth; + x72 = startX + individualBarWidth, y72 = startY - height, z72 = perspectiveDepth + gapDepth; + x82 = startX + individualBarWidth, y82 = startY - height, z82 = 0 + gapDepth; + + point1 = this.cChartDrawer._convertAndTurnPoint(x12, y12, z12); + point2 = this.cChartDrawer._convertAndTurnPoint(x22, y22, z22); + point3 = this.cChartDrawer._convertAndTurnPoint(x32, y32, z32); + point4 = this.cChartDrawer._convertAndTurnPoint(x42, y42, z42); + point5 = this.cChartDrawer._convertAndTurnPoint(x52, y52, z52); + point6 = this.cChartDrawer._convertAndTurnPoint(x62, y62, z62); + point7 = this.cChartDrawer._convertAndTurnPoint(x72, y72, z72); + point8 = this.cChartDrawer._convertAndTurnPoint(x82, y82, z82); + + var point11 = this.cChartDrawer._convertAndTurnPoint(x12, y12, z12, null, null, true); + var point22 = this.cChartDrawer._convertAndTurnPoint(x22, y22, z22, null, null, true); + var point33 = this.cChartDrawer._convertAndTurnPoint(x32, y32, z32, null, null, true); + var point44 = this.cChartDrawer._convertAndTurnPoint(x42, y42, z42, null, null, true); + var point55 = this.cChartDrawer._convertAndTurnPoint(x52, y52, z52, null, null, true); + var point66 = this.cChartDrawer._convertAndTurnPoint(x62, y62, z62, null, null, true); + var point77 = this.cChartDrawer._convertAndTurnPoint(x72, y72, z72, null, null, true); + var point88 = this.cChartDrawer._convertAndTurnPoint(x82, y82, z82, null, null, true); + + var controlPoint = this.cChartDrawer._convertAndTurnPoint(x12 + individualBarWidth / 2, y12 - height / 2, z12); + + var arrPoints = [[point1, point4, point8, point5], [point1, point2, point3, point4], + [point1, point2, point6, point5], [point4, point8, point7, point3], [point5, point6, point7, point8], + [point6, point2, point3, point7]]; + + var arrPoints2 = [[point11, point44, point88, point55], [point11, point22, point33, point44], + [point11, point22, point66, point55], [point44, point88, point77, point33], + [point55, point66, point77, point88], [point66, point22, point33, point77]]; + + if (!arr) { + arr = []; + } + if (!arr[cubeCount]) { + arr[cubeCount] = {}; + } + if (!arr[cubeCount].faces) { + arr[cubeCount].faces = []; + arr[cubeCount].arrPoints = [point11, point22, point33, point44, point55, point66, point77, point88]; + arr[cubeCount].z = controlPoint.z; + arr[cubeCount].y = controlPoint.y; + arr[cubeCount].x = controlPoint.x; + arr[cubeCount].isValZero = val === 0; + } + + for (var k = 0; k < paths.frontPaths.length; k++) { + if (null === paths.frontPaths[k] && null === paths.darkPaths[k]) { + continue; + } + //this.sortZIndexPaths.push({seria: i, point: idx, verge: k, paths: paths[k], points: arrPoints2[k], points2: arrPoints[k], plainEquation: plainEquation}); + + var plainEquation = this.cChartDrawer.getPlainEquation(arrPoints2[k][0], arrPoints2[k][1], arrPoints2[k][2], arrPoints2[k][3]); + var plainArea = this.cChartDrawer.getAreaQuadrilateral(arrPoints[k][0], arrPoints[k][1], arrPoints[k][2], arrPoints[k][3]); + arr[cubeCount].faces.push({ + seria: serNum, + point: idx, + verge: k, + frontPaths: paths.frontPaths[k], + darkPaths: paths.darkPaths[k], + points: arrPoints2[k], + points2: arrPoints[k], + plainEquation: plainEquation, + plainArea: plainArea, + shapeType: type, + }); + } + } + + return { + paths: paths, + paths2: paths2, + facePoints: facePoints, + }; + }, + + getDepths: function (serNum) { + //параметр r и глубина по OZ + var perspectiveDepth = this.cChartDrawer.processor3D.depthPerspective; + + //сдвиг по OZ в глубину + var gapDepth = this.chart.gapDepth != null ? this.chart.gapDepth : globalGapDepth; + if (this.subType === "standard") { + perspectiveDepth = (perspectiveDepth / (gapDepth / 100 + 1)) / this.seriesCount; + } else { + perspectiveDepth = perspectiveDepth / (gapDepth / 100 + 1); + } + + //если есть ось z берем pos из zPoints + if (this.serAx && this.serAx.zPoints[serNum]) { + return { gapDepth: this.serAx.zPoints[serNum].pos - (perspectiveDepth / 2), perspectiveDepth: perspectiveDepth }; + } + + var DiffGapDepth = perspectiveDepth * (gapDepth / 2) / 100; + if (this.subType === "standard") { + gapDepth = (perspectiveDepth + DiffGapDepth + DiffGapDepth) * serNum + DiffGapDepth; + } else { + gapDepth = DiffGapDepth; + } + + return { gapDepth: gapDepth, perspectiveDepth: perspectiveDepth }; + } +}; + + + +/** @constructor */ +function drawHistogramChart(seria, chartsDrawer) { + this.chartProp = chartsDrawer.calcProp; + this.cChartDrawer = chartsDrawer; + this.cChartSpace = chartsDrawer.cChartSpace; + + this.seria = seria; + + this.catAx = null; + this.valAx = null; + + this.ptCount = null; + this.seriesCount = null; + this.subType = null; + + this.paths = {}; +} + +drawHistogramChart.prototype = { + constructor: drawHistogramChart, + + recalculate: function () { + if (!this.cChartSpace || !this.cChartSpace.chart || !this.cChartSpace.chart.plotArea || !this.cChartSpace.chart.plotArea.plotAreaRegion || !this.cChartSpace.chart.plotArea.axId || this.cChartSpace.chart.plotArea.axId.length < 2) { + return; + } + const cachedData = this.cChartSpace.chart.plotArea.plotAreaRegion.cachedData; + if (cachedData && this.chartProp && this.chartProp.chartGutter && cachedData.clusteredColumn) { + const valAxis = this.cChartSpace.chart.plotArea.axId[1]; + const catAxis = this.cChartSpace.chart.plotArea.axId[0]; + + const catStart = this.chartProp.chartGutter._left; + let valStart = this.cChartSpace.chart.plotArea.axId ? this.cChartSpace.chart.plotArea.axId[0].posY * this.chartProp.pxToMM : this.chartProp.trueHeight + this.chartProp.chartGutter._top; + const coeff = catAxis.scaling.gapWidth; + + const isAggregation = cachedData.clusteredColumn.aggregation; + // two different ways of storing information, object and array, therefore convert object into array + const sections = isAggregation ? Object.values(cachedData.clusteredColumn.aggregation) : cachedData.clusteredColumn.results; + if (sections) { + // 1 px gap for each section length + const gapWidth = 0.5 / this.chartProp.pxToMM; + const gapNumber = sections.length; + //Each bar will have 2 gapWidth and 2 margins , on left and right sides + const initialBarWidth = (this.chartProp.trueWidth - (2 * gapWidth * gapNumber)) / sections.length; + const barWidth = (initialBarWidth / (1 + coeff)); + const margin = (initialBarWidth - barWidth) / 2; + + let start = (catStart + margin + gapWidth); + for (let i = 0; i < sections.length; i++) { + // aggregation object does not have field occurrence; + const val = isAggregation ? sections[i] : sections[i].occurrence; + const startY = this.cChartDrawer.getYPosition(val, valAxis, true); + const bW = i === 0 ? barWidth : barWidth - gapWidth; + if (this.chartProp && this.chartProp.pxToMM ) { + const height = valStart - (startY * this.chartProp.pxToMM); + this.paths[i] = this.cChartDrawer._calculateRect(start, valStart, bW, height); + } + start += (bW + margin + gapWidth + gapWidth + margin); + } + } + + } + }, + + draw: function () { + if (!this.cChartDrawer || !this.cChartDrawer.calcProp || !this.cChartDrawer.cShapeDrawer || !this.cChartDrawer.cShapeDrawer.Graphics || !this.cChartDrawer.calcProp.chartGutter) { + return; + } + + // find chart starting coordinates, width and height; + let leftRect = this.cChartDrawer.calcProp.chartGutter._left / this.cChartDrawer.calcProp.pxToMM; + let topRect = (this.cChartDrawer.calcProp.chartGutter._top) / this.cChartDrawer.calcProp.pxToMM; + let rightRect = this.cChartDrawer.calcProp.trueWidth / this.cChartDrawer.calcProp.pxToMM; + let bottomRect = (this.cChartDrawer.calcProp.trueHeight) / this.cChartDrawer.calcProp.pxToMM; + + if (!AscFormat.isRealNumber(leftRect) || !AscFormat.isRealNumber(topRect) || !AscFormat.isRealNumber(rightRect) || !AscFormat.isRealNumber(bottomRect) ) { + return + } + + this.cChartDrawer.cShapeDrawer.Graphics.SaveGrState(); + this.cChartDrawer.cShapeDrawer.Graphics.AddClipRect(leftRect, topRect, rightRect, bottomRect); + + + //TODO !!! + //series color + /* + + + + + + + + + */ + + //point color + /*cx:plotAreaRegion> + + + + + + + + + + */ + + //this.cChartSpace.chart.plotArea.plotAreaRegion.series[0].spPr.Fill.ln + + let series = this.cChartSpace.chart.plotArea.plotAreaRegion.series; + + let oSeries = series[0]; + if(oSeries) { + for (let i in this.paths) { + if (this.paths.hasOwnProperty(i) && this.paths[i]) { + let nPtIdx = parseInt(i); + let pen = oSeries.getPtPen(nPtIdx); + let brush = oSeries.getPtBrush(nPtIdx); + this.cChartDrawer.drawPath(this.paths[i], pen, brush); + } + } + } + + this.cChartDrawer.cShapeDrawer.Graphics.RestoreGrState(); + }, + + _calculateDLbl: function (compiledDlb) { + if (!this.paths || !this.chartProp) { + return; + } + const path = this.paths[compiledDlb.idx]; + + if (!AscFormat.isRealNumber(path)) { + return; + } + + const oPath = this.cChartSpace.GetPath(path); + const oCommand0 = oPath.getCommandByIndex(0); + const oCommand1 = oPath.getCommandByIndex(1); + const oCommand2 = oPath.getCommandByIndex(2); + + const x = oCommand0.X; + const y = oCommand0.Y; + + const h = oCommand0.Y - oCommand1.Y; + const w = oCommand2.X - oCommand1.X; + + const pxToMm = this.chartProp.pxToMM; + + const width = compiledDlb.extX; + const height = compiledDlb.extY; + + let centerX, centerY; + // DATA_LABEL_POS_IN_END + switch (compiledDlb.dLblPos) { + case AscFormat.DATA_LABEL_POS_CTR: { + centerX = x + w / 2 - width / 2; + centerY = y - h / 2 - height / 2; + break; + } + case AscFormat.DATA_LABEL_POS_IN_BASE: { + centerX = x + w / 2 - width / 2; + centerY = y - height; + break; + } + case AscFormat.DATA_LABEL_POS_IN_END: { + centerX = x + w / 2 - width / 2; + centerY = y - h; + break; + } + case AscFormat.DATA_LABEL_POS_OUT_END: { + centerX = x + w / 2 - width / 2; + centerY = y - h - height; + break; + } + } + + const top = this.chartProp.chartGutter._top / pxToMm; + if (centerY < top) { + centerY = top; + } + + const bottom = ((this.chartProp.trueHeight + this.chartProp.chartGutter._top) / pxToMm) - height ; + if (centerY >= bottom) { + centerY = bottom; + } + + return {x: centerX, y: centerY}; + } +}; + +/** @constructor */ +function drawWaterfallChart(chart, chartsDrawer) { + this.chartProp = chartsDrawer.calcProp; + this.cChartDrawer = chartsDrawer; + this.cChartSpace = chartsDrawer.cChartSpace; + + this.chart = chart; + + this.catAx = null; + this.valAx = null; + + this.ptCount = null; + this.seriesCount = null; + this.subType = null; + + this.paths = {}; +} + +drawWaterfallChart.prototype = { + constructor: drawWaterfallChart, + + recalculate: function () { + if (!this.cChartSpace || !this.cChartSpace.chart || !this.cChartSpace.chart.plotArea || !this.cChartSpace.chart.plotArea.plotAreaRegion || !this.cChartSpace.chart.plotArea.plotAreaRegion.cachedData || !this.cChartSpace.chart.plotArea.plotAreaRegion.cachedData.waterfall || !this.cChartSpace.chart.plotArea.axId) { + return; + } + const data = this.cChartSpace.chart.plotArea.plotAreaRegion.cachedData.waterfall.data; + + if (data && data.length > 0 && this.chartProp && this.chartProp.chartGutter) { + const valAxis = this.cChartSpace.chart.plotArea.axId[1]; + const catAxis = this.cChartSpace.chart.plotArea.axId[0]; + + const catStart = this.chartProp.chartGutter._left; + let valStart = this.cChartSpace.chart.plotArea.axId ? this.cChartSpace.chart.plotArea.axId[0].posY * this.chartProp.pxToMM : this.chartProp.trueHeight + this.chartProp.chartGutter._top; + const zeroValStart = valStart; + if (AscFormat.isRealNumber(valStart)) { + const coeff = catAxis.scaling.gapWidth; + // 1 px gap for each section length + const gapWidth = 0.5 / this.chartProp.pxToMM; + const gapNumber = data.length; + //Each bar will have 2 gapWidth and 2 margins , on left and right sides + const initialBarWidth = (this.chartProp.trueWidth - (2 * gapWidth * gapNumber))/ data.length; + const barWidth = (initialBarWidth / (1 + coeff)); + const margin = (initialBarWidth - barWidth) / 2; + + let start = (catStart + margin + gapWidth); + + for (let i = 0; i < data.length; i++) { + const valPos = this.cChartDrawer.getYPosition(data[i].val, valAxis, true) * this.chartProp.pxToMM; // calc roof of the current bar + const next = start + (barWidth + margin + gapWidth + gapWidth + margin); // start of the next bar + if (this.chartProp && this.chartProp.pxToMM ) { + const height = data[i].isTotal && i !== 0 ? zeroValStart - valPos : valStart - valPos; + this.paths[i] = []; + this.paths[i].push(this.cChartDrawer._calculateRect(start, data[i].isTotal ? zeroValStart : valStart, barWidth, height)); + //dont need last connectorLine + if (i !== data.length - 1 && margin !== 0) { + //exclude gapWidth from connector line + this.paths[i].push(this._calculateConnectorLine(valPos, start + barWidth + gapWidth, next - gapWidth)) + } + } + valStart = valPos; // go up in y direction + start = next; // go right in x direction + } + } + } + }, + + _calculateConnectorLine: function (y, x1, x2) { + if (!this.cChartSpace || !this.chartProp) { + return null; + } + const pathId = this.cChartSpace.AllocPath(); + const path = this.cChartSpace.GetPath(pathId); + + const pathH = this.chartProp.pathH; + const pathW = this.chartProp.pathW; + const pxToMm = this.chartProp.pxToMM; + + path.moveTo((x1 / pxToMm) * pathW, (y / pxToMm) * pathH); + path.lnTo((x2 / pxToMm) * pathW, (y / pxToMm) * pathH); + + return pathId; + }, + + draw: function () { + if (!this.cChartDrawer || !this.cChartDrawer.calcProp || !this.cChartDrawer.cShapeDrawer || !this.cChartDrawer.cShapeDrawer.Graphics || !this.cChartDrawer.calcProp.chartGutter) { + return; + } + + // find chart starting coordinates, width and height; + let leftRect = this.cChartDrawer.calcProp.chartGutter._left / this.cChartDrawer.calcProp.pxToMM; + let topRect = (this.cChartDrawer.calcProp.chartGutter._top) / this.cChartDrawer.calcProp.pxToMM; + let rightRect = this.cChartDrawer.calcProp.trueWidth / this.cChartDrawer.calcProp.pxToMM; + let bottomRect = (this.cChartDrawer.calcProp.trueHeight) / this.cChartDrawer.calcProp.pxToMM; + + if (!AscFormat.isRealNumber(leftRect) || !AscFormat.isRealNumber(topRect) || !AscFormat.isRealNumber(rightRect) || !AscFormat.isRealNumber(bottomRect) ) { + return + } + + this.cChartDrawer.cShapeDrawer.Graphics.SaveGrState(); + this.cChartDrawer.cShapeDrawer.Graphics.AddClipRect(leftRect, topRect, rightRect, bottomRect); + + + //TODO !!! + //series color + /* + + + + + + + + + */ + + //point color + /*cx:plotAreaRegion> + + + + + + + + + + */ + + //this.cChartSpace.chart.plotArea.plotAreaRegion.series[0].spPr.Fill.ln + + let series = this.cChartSpace.chart.plotArea.plotAreaRegion.series; + + let oSeries = series[0]; + if(oSeries) { + for (let i in this.paths) { + if (this.paths.hasOwnProperty(i) && this.paths[i]) { + for (let j in this.paths[i]) { + if (this.paths[i].hasOwnProperty(j) && this.paths[i][j]) { + let nPtIdx = parseInt(i); + let pen = (j === '0' ) ? oSeries.getPtPen(nPtIdx) : this.cChartSpace.chart.plotArea.axId[1].compiledMajorGridLines; + let brush = oSeries.getPtBrush(nPtIdx); + this.cChartDrawer.drawPath(this.paths[i][j], pen, brush); + } + } + } + } + } + + this.cChartDrawer.cShapeDrawer.Graphics.RestoreGrState(); + }, + + _calculateDLbl: function (compiledDlb) { + if (!this.paths || !this.chartProp) { + return; + } + const path = this.paths[compiledDlb.idx] && Array.isArray(this.paths[compiledDlb.idx]) && this.paths[compiledDlb.idx].length > 0 ? this.paths[compiledDlb.idx][0] : null; + + if (!AscFormat.isRealNumber(path)) { + return; + } - var t = this; - var dRadius1, dRadius2, uRadius1, uRadius2; - var calcCylinderProps = function (bCone) { - //большая и малая полуось оснований усеченного конуса - if (bCone) { - // за оси эллипса берем 1/2 длин ребер оснований усеченной пирамиды - points = t.cChartDrawer.isConeIntersection(false, t.subType, startX, startY, height, gapDepth, individualBarWidth, perspectiveDepth, val, nullPositionOX, maxH, minH); + const oPath = this.cChartSpace.GetPath(path); + const oCommand0 = oPath.getCommandByIndex(0); + const oCommand1 = oPath.getCommandByIndex(1); + const oCommand2 = oPath.getCommandByIndex(2); - if (t.val === 0) { - uRadius1 = 0; - uRadius2 = 0; - dRadius1 = points.wDown; - dRadius2 = points.lDown; - } else if ((t.subType === "stacked" || t.subType === "stackedPer") && t.cChartSpace.chart.plotArea.valAx.isReversed()) { - uRadius1 = points.wUp !== 0 ? points.wUp : individualBarWidth / 2; - uRadius2 = points.lUp !== 0 ? points.lUp : perspectiveDepth / 2; - dRadius1 = points.wDown; - dRadius2 = points.lDown; - } else { - uRadius1 = points.wUp; - uRadius2 = points.lUp; - dRadius1 = points.wDown !== 0 ? points.wDown : individualBarWidth / 2; - dRadius2 = points.lDown !== 0 ? points.lDown : perspectiveDepth/ 2; - } + const x = oCommand0.X; + const y = oCommand0.Y; - } else { - //большая и малая полуось эллипса - dRadius1 = individualBarWidth / 2; - dRadius2 = perspectiveDepth / 2; - } - }; + const h = oCommand0.Y - oCommand1.Y; + const w = oCommand2.X - oCommand1.X; + const pxToMm = this.chartProp.pxToMM; - var facePoints; - switch (type) { - case AscFormat.BAR_SHAPE_PYRAMID: - case AscFormat.BAR_SHAPE_PYRAMIDTOMAX: { - var nullPositionOX = this.subType === "stacked" ? this.cChartDrawer.getPositionZero(this.valAx) : - this.catAx.posY * this.chartProp.pxToMM; - paths = this.cChartDrawer.calculatePyramid(false, this.subType, startX, startY, height, gapDepth, - individualBarWidth, perspectiveDepth, val, nullPositionOX, maxH, minH); + const width = compiledDlb.extX; + const height = compiledDlb.extY; - paths = paths.paths; - break + let centerX, centerY; + // DATA_LABEL_POS_IN_END + switch (compiledDlb.dLblPos) { + case AscFormat.DATA_LABEL_POS_CTR: { + centerX = x + w / 2 - width / 2; + centerY = y - h / 2 - height / 2; + break; } - case AscFormat.BAR_SHAPE_CYLINDER: { - //paths = this.cChartDrawer._calculateCylinder(startX, startY, individualBarWidth, height, val, gapDepth, perspectiveDepth, this.subType !== "standard", false, false); - - calcCylinderProps(); - this.cChartDrawer.calcShapesHelper.setProps(startX, startY, gapDepth, individualBarWidth, height, perspectiveDepth, needAddOnlyFrontFace, val, false, dRadius1, dRadius2); - paths = this.cChartDrawer.calcShapesHelper.getCylinder(); - + case AscFormat.DATA_LABEL_POS_IN_BASE: { + centerX = x + w / 2 - width / 2; + centerY = y - height; break; } - case AscFormat.BAR_SHAPE_CONE: - case AscFormat.BAR_SHAPE_CONETOMAX: { - //paths = this.cChartDrawer._calculateCylinder(startX, startY, individualBarWidth, height, val, gapDepth, perspectiveDepth, this.subType !== "standard", false, this.subType, nullPositionOX, maxH, minH); - - calcCylinderProps(true); - this.cChartDrawer.calcShapesHelper.setProps(startX, startY, gapDepth, individualBarWidth, height, perspectiveDepth, needAddOnlyFrontFace, val, false, dRadius1, dRadius2, uRadius1, uRadius2); - paths = this.cChartDrawer.calcShapesHelper.getCone(); - + case AscFormat.DATA_LABEL_POS_IN_END: { + centerX = x + w / 2 - width / 2; + centerY = y - h; break; } - default: { - points = [point1, point2, point3, point4, point5, point6, point7, point8]; - paths = this.cChartDrawer.calculateRect3D(points, val, null, this.subType !== "standard", false); + case AscFormat.DATA_LABEL_POS_OUT_END: { + centerX = x + w / 2 - width / 2; + centerY = y - h - height; break; } } - facePoints = [[point1, point4, point8, point5], [point1, point2, point3, point4], - [point1, point2, point6, point5], [point4, point8, point7, point3], [point5, point6, point7, point8], - [point2, point3, point7, point6]]; + const top = this.chartProp.chartGutter._top / pxToMm; + if (centerY < top) { + centerY = top; + } - //paths2 для расчета подписей, в дальнейшем нужно оптимизировать этот процесс - points = [point1, point2, point3, point4, point5, point6, point7, point8]; - paths2 = this.cChartDrawer.calculateRect3D(points, val, isNotDrawDownVerge); + const bottom = ((this.chartProp.trueHeight + this.chartProp.chartGutter._top) / pxToMm) - height ; + if (centerY >= bottom) { + centerY = bottom; + } - if (this.subType !== "standard") { + return {x: centerX, y: centerY}; + } +} - height = testHeight; - x12 = startX, y12 = startY, z12 = 0 + gapDepth; - x22 = startX, y22 = startY, z22 = perspectiveDepth + gapDepth; - x32 = startX + individualBarWidth, y32 = startY, z32 = perspectiveDepth + gapDepth; - x42 = startX + individualBarWidth, y42 = startY, z42 = 0 + gapDepth; - x52 = startX, y52 = startY - height, z52 = 0 + gapDepth; - x62 = startX, y62 = startY - height, z62 = perspectiveDepth + gapDepth; - x72 = startX + individualBarWidth, y72 = startY - height, z72 = perspectiveDepth + gapDepth; - x82 = startX + individualBarWidth, y82 = startY - height, z82 = 0 + gapDepth; +/** @constructor */ +function drawFunnelChart(chart, chartsDrawer) { + this.chartProp = chartsDrawer.calcProp; + this.cChartDrawer = chartsDrawer; + this.cChartSpace = chartsDrawer.cChartSpace; - point1 = this.cChartDrawer._convertAndTurnPoint(x12, y12, z12); - point2 = this.cChartDrawer._convertAndTurnPoint(x22, y22, z22); - point3 = this.cChartDrawer._convertAndTurnPoint(x32, y32, z32); - point4 = this.cChartDrawer._convertAndTurnPoint(x42, y42, z42); - point5 = this.cChartDrawer._convertAndTurnPoint(x52, y52, z52); - point6 = this.cChartDrawer._convertAndTurnPoint(x62, y62, z62); - point7 = this.cChartDrawer._convertAndTurnPoint(x72, y72, z72); - point8 = this.cChartDrawer._convertAndTurnPoint(x82, y82, z82); + this.chart = chart; - var point11 = this.cChartDrawer._convertAndTurnPoint(x12, y12, z12, null, null, true); - var point22 = this.cChartDrawer._convertAndTurnPoint(x22, y22, z22, null, null, true); - var point33 = this.cChartDrawer._convertAndTurnPoint(x32, y32, z32, null, null, true); - var point44 = this.cChartDrawer._convertAndTurnPoint(x42, y42, z42, null, null, true); - var point55 = this.cChartDrawer._convertAndTurnPoint(x52, y52, z52, null, null, true); - var point66 = this.cChartDrawer._convertAndTurnPoint(x62, y62, z62, null, null, true); - var point77 = this.cChartDrawer._convertAndTurnPoint(x72, y72, z72, null, null, true); - var point88 = this.cChartDrawer._convertAndTurnPoint(x82, y82, z82, null, null, true); + this.catAx = null; + this.valAx = null; - var controlPoint = this.cChartDrawer._convertAndTurnPoint(x12 + individualBarWidth / 2, y12 - height / 2, z12); + this.ptCount = null; + this.seriesCount = null; + this.subType = null; - var arrPoints = [[point1, point4, point8, point5], [point1, point2, point3, point4], - [point1, point2, point6, point5], [point4, point8, point7, point3], [point5, point6, point7, point8], - [point6, point2, point3, point7]]; + this.paths = {}; + this.linePath = null; +} - var arrPoints2 = [[point11, point44, point88, point55], [point11, point22, point33, point44], - [point11, point22, point66, point55], [point44, point88, point77, point33], - [point55, point66, point77, point88], [point66, point22, point33, point77]]; +drawFunnelChart.prototype = { + constructor: drawFunnelChart, - if (!arr) { - arr = []; - } - if (!arr[cubeCount]) { - arr[cubeCount] = {}; - } - if (!arr[cubeCount].faces) { - arr[cubeCount].faces = []; - arr[cubeCount].arrPoints = [point11, point22, point33, point44, point55, point66, point77, point88]; - arr[cubeCount].z = controlPoint.z; - arr[cubeCount].y = controlPoint.y; - arr[cubeCount].x = controlPoint.x; - arr[cubeCount].isValZero = val === 0; + recalculate: function () { + if (!this.cChartSpace || !this.cChartSpace.chart || !this.cChartSpace.chart.plotArea || !this.cChartSpace.chart.plotArea.plotAreaRegion || !this.cChartSpace.chart.plotArea.axId) { + return; + } + const seria = this.cChartSpace.chart.plotArea.plotAreaRegion.series[0]; + const numLit = seria.getValLit(); + const data = numLit ? numLit.pts : null; + if (data && data.length > 0 && this.chartProp && this.chartProp.chartGutter) { + const valAxis = this.cChartSpace.chart.plotArea.axId[0]; + const isSinglePoint = data.length === 1; + const catMiddle = (this.chartProp.trueWidth / 2 + this.chartProp.chartGutter._left ); + let valStart = this.chartProp.chartGutter._top; + let chartHeight = this.chartProp.trueHeight; + const pxToMM = this.chartProp.pxToMM; + if (AscFormat.isRealNumber(valStart) && AscFormat.isRealNumber(catMiddle)) { + const coeff = valAxis.scaling.gapWidth; + // 1 px gap for each section length + const gapWidth = 0.5 / pxToMM; + const gapNumber = data.length; + //Each bar will have 2 gapWidth and 2 margins , on top and bottom sides + const initialBarHeight = (chartHeight - (2 * gapWidth * gapNumber))/ data.length; + const barHeight = (initialBarHeight / (1 + coeff)); + const margin = (initialBarHeight - barHeight) / 2; + + // because calculate rect accepts bottom left point as starting y, we add barHeight to the calculation of starting point + let startVertical = (valStart + margin + gapWidth + barHeight); + for (let i = 0; i < data.length; i++) { + if (this.chartProp && pxToMM) { + const barWidth = valAxis.max && data[i].val > 0 ? (data[i].val / valAxis.max) * this.chartProp.trueWidth: 0; + this.paths[i] = this.cChartDrawer._calculateRect(catMiddle - (barWidth / 2), startVertical, barWidth, barHeight); + } + startVertical += margin + gapWidth + gapWidth + margin + barHeight; + } + // vertical line with 1 px from left + this.linePath = this.cChartDrawer._calculateLine(startVertical, (startVertical - valStart), this.chartProp.chartGutter._left + 1, true); } + } + }, - for (var k = 0; k < paths.frontPaths.length; k++) { - if (null === paths.frontPaths[k] && null === paths.darkPaths[k]) { - continue; - } - //this.sortZIndexPaths.push({seria: i, point: idx, verge: k, paths: paths[k], points: arrPoints2[k], points2: arrPoints[k], plainEquation: plainEquation}); + draw: function () { + if (!this.cChartDrawer || !this.cChartDrawer.calcProp || !this.cChartDrawer.cShapeDrawer || !this.cChartDrawer.cShapeDrawer.Graphics || !this.cChartDrawer.calcProp.chartGutter) { + return; + } - var plainEquation = this.cChartDrawer.getPlainEquation(arrPoints2[k][0], arrPoints2[k][1], arrPoints2[k][2], arrPoints2[k][3]); - var plainArea = this.cChartDrawer.getAreaQuadrilateral(arrPoints[k][0], arrPoints[k][1], arrPoints[k][2], arrPoints[k][3]); - arr[cubeCount].faces.push({ - seria: serNum, - point: idx, - verge: k, - frontPaths: paths.frontPaths[k], - darkPaths: paths.darkPaths[k], - points: arrPoints2[k], - points2: arrPoints[k], - plainEquation: plainEquation, - plainArea: plainArea, - shapeType: type, - }); - } + // find chart starting coordinates, width and height; + let leftRect = this.cChartDrawer.calcProp.chartGutter._left / this.cChartDrawer.calcProp.pxToMM; + let topRect = (this.cChartDrawer.calcProp.chartGutter._top) / this.cChartDrawer.calcProp.pxToMM; + let rightRect = this.cChartDrawer.calcProp.trueWidth / this.cChartDrawer.calcProp.pxToMM; + let bottomRect = (this.cChartDrawer.calcProp.trueHeight) / this.cChartDrawer.calcProp.pxToMM; + + if (!AscFormat.isRealNumber(leftRect) || !AscFormat.isRealNumber(topRect) || !AscFormat.isRealNumber(rightRect) || !AscFormat.isRealNumber(bottomRect) ) { + return } - return { - paths: paths, - paths2: paths2, - facePoints: facePoints, - }; - }, + this.cChartDrawer.cShapeDrawer.Graphics.SaveGrState(); + this.cChartDrawer.cShapeDrawer.Graphics.AddClipRect(leftRect, topRect, rightRect, bottomRect); - getDepths: function (serNum) { - //параметр r и глубина по OZ - var perspectiveDepth = this.cChartDrawer.processor3D.depthPerspective; - //сдвиг по OZ в глубину - var gapDepth = this.chart.gapDepth != null ? this.chart.gapDepth : globalGapDepth; - if (this.subType === "standard") { - perspectiveDepth = (perspectiveDepth / (gapDepth / 100 + 1)) / this.seriesCount; - } else { - perspectiveDepth = perspectiveDepth / (gapDepth / 100 + 1); + //TODO !!! + //series color + /* + + + + + + + + + */ + + //point color + /*cx:plotAreaRegion> + + + + + + + + + + */ + + //this.cChartSpace.chart.plotArea.plotAreaRegion.series[0].spPr.Fill.ln + + let series = this.cChartSpace.chart.plotArea.plotAreaRegion.series; + + let oSeries = series[0]; + if(oSeries) { + if (this.linePath) { + let pen = this.cChartSpace.pen; + this.cChartDrawer.drawPath(this.linePath, pen); + } + for (let i in this.paths) { + if (this.paths.hasOwnProperty(i) && this.paths[i]) { + let nPtIdx = parseInt(i); + let pen = oSeries.getPtPen(nPtIdx); + let brush = oSeries.getPtBrush(nPtIdx); + this.cChartDrawer.drawPath(this.paths[i], pen, brush); + } + } } + + this.cChartDrawer.cShapeDrawer.Graphics.RestoreGrState(); + }, - //если есть ось z берем pos из zPoints - if (this.serAx && this.serAx.zPoints[serNum]) { - return { gapDepth: this.serAx.zPoints[serNum].pos - (perspectiveDepth / 2), perspectiveDepth: perspectiveDepth }; + _calculateDLbl: function (compiledDlb) { + if (!this.paths || !this.chartProp) { + return; } + const path = this.paths[compiledDlb.idx]; - var DiffGapDepth = perspectiveDepth * (gapDepth / 2) / 100; - if (this.subType === "standard") { - gapDepth = (perspectiveDepth + DiffGapDepth + DiffGapDepth) * serNum + DiffGapDepth; - } else { - gapDepth = DiffGapDepth; + if (!AscFormat.isRealNumber(path)) { + return; } - return { gapDepth: gapDepth, perspectiveDepth: perspectiveDepth }; - } -}; + const oPath = this.cChartSpace.GetPath(path); + const oCommand0 = oPath.getCommandByIndex(0); + const oCommand1 = oPath.getCommandByIndex(1); + const oCommand2 = oPath.getCommandByIndex(2); + + const x = oCommand0.X; + const y = oCommand0.Y; + + const h = oCommand0.Y - oCommand1.Y; + const w = oCommand2.X - oCommand1.X; + + const pxToMm = this.chartProp.pxToMM; + + const width = compiledDlb.extX; + const height = compiledDlb.extY; + + let centerX, centerY; + + centerX = x + w / 2 - width / 2; + centerY = y - h / 2 - height / 2; + const top = this.chartProp.chartGutter._top / pxToMm; + if (centerY < top) { + centerY = top; + } + + const bottom = ((this.chartProp.trueHeight + this.chartProp.chartGutter._top) / pxToMm) - height ; + if (centerY >= bottom) { + centerY = bottom; + } + return {x: centerX, y: centerY}; + } +} /** @constructor */ function drawLineChart(chart, chartsDrawer) { @@ -7260,6 +8506,7 @@ drawLineChart.prototype = { _calculateLines: function () { var xPoints = this.catAx.xPoints; var yPoints = this.valAx.yPoints; + let isLog; if(!xPoints || !yPoints) { return; @@ -7270,6 +8517,7 @@ drawLineChart.prototype = { seria = this.chart.series[i]; numCache = this.cChartDrawer.getNumCache(seria.val); + isLog = this.valAx && this.valAx.scaling ? this.valAx.scaling.logBase : false; if (!numCache) { continue; @@ -7303,7 +8551,7 @@ drawLineChart.prototype = { compiledMarkerSize = idxPoint && idxPoint.compiledMarker && idxPoint.compiledMarker.size ? idxPoint.compiledMarker.size : null; compiledMarkerSymbol = idxPoint && idxPoint.compiledMarker && AscFormat.isRealNumber(idxPoint.compiledMarker.symbol) ? idxPoint.compiledMarker.symbol : null; - if (val != null) { + if (val != null && ((isLog && val !== 0) || !isLog)) { this.paths.points[i][n] = this.cChartDrawer.calculatePoint(x, y, compiledMarkerSize, compiledMarkerSymbol); let errBars = this.chart.series[i].errBars[0]; if (errBars) { @@ -7807,11 +9055,13 @@ drawAreaChart.prototype = { var y, x, val, seria, dataSeries, numCache; var pxToMm = this.chartProp.pxToMM; var nullPositionOX = this.catAx.posY; + let isLog; for (var i = 0; i < this.chart.series.length; i++) { seria = this.chart.series[i]; numCache = this.cChartDrawer.getNumCache(seria.val); + isLog = this.valAx && this.valAx.scaling ? this.valAx.scaling.logBase : false; if (!numCache) { continue; @@ -7823,7 +9073,7 @@ drawAreaChart.prototype = { //рассчитываем значения val = this._getYVal(n, i); - if(null === val && this.cChartDrawer.nDimensionCount !== 3) { + if((null === val && this.cChartDrawer.nDimensionCount !== 3) || (isLog && val === 0)) { continue; } @@ -8877,6 +10127,9 @@ drawAreaChart.prototype = { return pathId; }; + let countSeries = oThis.cChartDrawer.calculateCountSeries(oThis.chart); + let ptCount = countSeries.points; + //left paths[2] = null; if (this.darkFaces["left"] && point === 0) { @@ -8885,7 +10138,7 @@ drawAreaChart.prototype = { //right paths[3] = null; - if (this.darkFaces["right"] && point === t.cChartDrawer.calcProp.ptCount - 2) { + if (this.darkFaces["right"] && point === ptCount - 2) { paths[3] = calculateSimpleFace(point4, point8, point7, point3, point44, point88, point77, point33, 3); } @@ -9093,11 +10346,6 @@ drawAreaChart.prototype = { this.chartProp.trueWidth / this.chartProp.pxToMM, this.chartProp.trueHeight / this.chartProp.pxToMM); for (var i = 0; i < this.chart.series.length; i++) { - - //в случае накопительных дигарамм, рисуем в обратном порядке - /*if(this.chartProp.subType == "stackedPer" || this.chartProp.subType == "stacked") - seria = this.chartProp.series[this.chartProp.series.length - 1 - i]; - else*/ seria = this.chart.series[i]; numCache = this.cChartDrawer.getNumCache(seria.val); dataSeries = numCache && numCache.pts ? numCache.pts : null; @@ -9491,7 +10739,7 @@ drawHBarChart.prototype = { seriesHeight, i, idx, cubeCount, shapeType, maxH, minH); cubeCount++; } else { - paths = this._calculateRect(newStartX, newStartY / this.chartProp.pxToMM, width, individualBarHeight / this.chartProp.pxToMM); + paths = this.cChartDrawer._calculateRect(newStartX, newStartY / this.chartProp.pxToMM, width, individualBarHeight / this.chartProp.pxToMM, true); } var serIdx = this.chart.series[i].idx; @@ -9819,21 +11067,6 @@ drawHBarChart.prototype = { return {x: centerX, y: centerY}; }, - _calculateRect: function (x, y, w, h) { - var pathId = this.cChartSpace.AllocPath(); - var path = this.cChartSpace.GetPath(pathId); - - var pathH = this.chartProp.pathH; - var pathW = this.chartProp.pathW; - - path.moveTo(x * pathW, y * pathH); - path.lnTo(x * pathW, (y - h) * pathH); - path.lnTo((x + w) * pathW, (y - h) * pathH); - path.lnTo((x + w) * pathW, y * pathH); - path.lnTo(x * pathW, y * pathH); - return pathId; - }, - calculateParallalepiped: function (newStartX, newStartY, val, width, DiffGapDepth, perspectiveDepth, individualBarHeight, seriesHeight, i, idx, cubeCount, type, maxH, minH) { var paths, paths2; @@ -12840,6 +14073,7 @@ drawScatterChart.prototype = { _recalculateScatter: function () { let seria, yVal, xVal, points, yNumCache, compiledMarkerSize, compiledMarkerSymbol, yPoint, idx, xPoint; let dispBlanksAs = this.cChartSpace.chart.dispBlanksAs; + let isLog; let t = this; let _initObjs = function (_index) { @@ -12860,6 +14094,7 @@ drawScatterChart.prototype = { for (let i = 0; i < this.chart.series.length; i++) { seria = this.chart.series[i]; yNumCache = this.cChartDrawer.getNumCache(seria.yVal); + isLog = this.valAx && this.valAx.scaling ? this.valAx.scaling.logBase : false; if (!yNumCache) { continue; @@ -12898,7 +14133,7 @@ drawScatterChart.prototype = { _initObjs(i); - if (yVal != null) { + if (yVal != null && ((isLog && yVal !== 0) || !isLog)) { let x = this.cChartDrawer.getYPosition(xVal, this.catAx, true); let y = this.cChartDrawer.getYPosition(yVal, this.valAx, true); this.paths.points[i].push(this.cChartDrawer.calculatePoint(x, y, compiledMarkerSize, compiledMarkerSymbol)); @@ -13091,10 +14326,10 @@ drawScatterChart.prototype = { //this.paths.series[i][n] = {path: this.cChartDrawer.calculateSplineLine(x, y, x1, y1, x2, y2, x3, y3, this.catAx, this.valAx), idx: points[i][n].idx}; this.paths.series[i][n] = this.cChartDrawer.calculateSplineLine(x, y, x1, y1, x2, y2, x3, y3, this.catAx, this.valAx); } else { - x = this.cChartDrawer.getYPosition(points[i][n].x, this.catAx); + x = this.cChartDrawer.getYPosition(points[i][n].x, this.catAx, true); y = this.cChartDrawer.getYPosition(points[i][n].y, this.valAx, true); - x1 = this.cChartDrawer.getYPosition(points[i][n + 1].x, this.catAx); + x1 = this.cChartDrawer.getYPosition(points[i][n + 1].x, this.catAx, true); y1 = this.cChartDrawer.getYPosition(points[i][n + 1].y, this.valAx, true); //this.paths.series[i][n] = {path: this._calculateLine(x, y, x1, y1), idx: points[i][n].idx}; @@ -14416,11 +15651,11 @@ axisChart.prototype = { }, _calculateValAxis: function () { - var axisPos; - var left = this.chartProp.chartGutter._left / this.chartProp.pxToMM; - var right = (this.chartProp.widthCanvas - this.chartProp.chartGutter._right) / this.chartProp.pxToMM; - var top = this.chartProp.chartGutter._top / this.chartProp.pxToMM; - var bottom = (this.chartProp.heightCanvas - this.chartProp.chartGutter._bottom) / this.chartProp.pxToMM; + let axisPos; + let left = this.chartProp.chartGutter._left / this.chartProp.pxToMM; + let right = (this.chartProp.widthCanvas - this.chartProp.chartGutter._right) / this.chartProp.pxToMM; + let top = this.chartProp.chartGutter._top / this.chartProp.pxToMM; + let bottom = (this.chartProp.heightCanvas - this.chartProp.chartGutter._bottom) / this.chartProp.pxToMM; if (this.axis && this.axis.isRadarValues()) { @@ -14429,7 +15664,7 @@ axisChart.prototype = { var orientation = !axis.isReversed(); var xCenter = axis.posX; - var yCenter, trueHeight; + let yCenter, trueHeight; if (yPoints.length > 0) { yCenter = orientation ? yPoints[0].pos : yPoints[yPoints.length - 1].pos; } else { @@ -14437,15 +15672,16 @@ axisChart.prototype = { yCenter = (this.chartProp.chartGutter._top + trueHeight / 2) / this.chartProp.pxToMM; } - var ptCount = this.cChartDrawer.getPtCount(this.chartProp.series); + let radarChart = this.cChartDrawer.getChartByType(AscDFH.historyitem_type_RadarChart); + let ptCount = radarChart && radarChart.series && this.cChartDrawer.getPtCount(radarChart.series); if (!ptCount) { return; } - var tempAngle = 2 * Math.PI / ptCount; + let tempAngle = 2 * Math.PI / ptCount; - var radius, x, y; + let radius, x, y; radius = Math.abs(yPoints[yPoints.length - 1].pos - yPoints[0].pos); - for (var n = 0; n < ptCount; n++) { + for (let n = 0; n < ptCount; n++) { x = xCenter + radius * Math.sin(n * tempAngle); y = yCenter - radius * Math.cos(n * tempAngle); @@ -14775,7 +16011,9 @@ axisChart.prototype = { let stepY = points[1] ? Math.abs(points[1].pos - points[0].pos) : Math.abs(points[0].pos - this.chartProp.chartGutter._bottom / this.chartProp.pxToMM); minorStep = stepY / minorLinesCount; - let ptCount = this.cChartDrawer.getNumCache(this.chartProp.series[0].val).ptCount; + let radarChart = this.cChartDrawer.getChartByType(AscDFH.historyitem_type_RadarChart); + let ptCount = radarChart && radarChart.series && this.cChartDrawer.getPtCount(radarChart.series); + let tempAngle = 2 * Math.PI / ptCount; let x1, y1, x2, y2; for (let nDataPt = 0; nDataPt < ptCount; nDataPt++) { @@ -14862,31 +16100,38 @@ axisChart.prototype = { }, _calculateSerTickMark: function () { - var perspectiveDepth = this.cChartDrawer.processor3D.depthPerspective; - var tickmarksProps = this._getTickmarksPropsSer(); - var widthLine = tickmarksProps.widthLine; + let perspectiveDepth = this.cChartDrawer.processor3D.depthPerspective; + let tickmarksProps = this._getTickmarksPropsSer(); + let widthLine = tickmarksProps.widthLine; + let seriesCount = this.axis.labels && this.axis.labels.count; + if (seriesCount == null) { + let _chart = this.axis.parent && this.axis.parent.chart; + let countSeries = this.cChartDrawer.calculateCountSeries(_chart); + seriesCount = countSeries.series; + } + if (widthLine !== 0) { - var positionX = this.cChartDrawer.processor3D.calculateXPositionSerAxis(); - var stepY = perspectiveDepth / this.chartProp.seriesCount; - var startX; + let positionX = this.cChartDrawer.processor3D.calculateXPositionSerAxis(); + let stepY = perspectiveDepth / seriesCount; + let startX; if (positionX) { startX = this.chartProp.chartGutter._left; } else { startX = this.chartProp.widthCanvas - this.chartProp.chartGutter._right; } - var startY = this.axis.posY * this.chartProp.pxToMM; + let startY = this.axis.posY * this.chartProp.pxToMM; - for (var i = 0; i <= this.chartProp.seriesCount; i++) { + for (let i = 0; i <= seriesCount; i++) { //основные линии if (!this.paths.tickMarks) { this.paths.tickMarks = []; } - var convertResult = this.cChartDrawer._convertAndTurnPoint(startX, startY, i * stepY); - var x = convertResult.x / this.chartProp.pxToMM; - var y = convertResult.y / this.chartProp.pxToMM; + let convertResult = this.cChartDrawer._convertAndTurnPoint(startX, startY, i * stepY); + let x = convertResult.x / this.chartProp.pxToMM; + let y = convertResult.y / this.chartProp.pxToMM; this.paths.tickMarks[i] = this._calculateLine(x, y, x + widthLine / this.chartProp.pxToMM, y); } @@ -16327,7 +17572,7 @@ CColorObj.prototype = function CTrendline(chartsDrawer) { this.cChartDrawer = chartsDrawer; this.storage = {};//[chartId][seriaId] - this.ptCount = null; + this.ptCount = 0; //control trend calculate type this.bAllowDrawByBezier = true; @@ -16339,15 +17584,6 @@ CColorObj.prototype = constructor: CTrendline, - // find max ptCount - init: function (ptCount) { - if (!this.ptCount) { - this.ptCount = ptCount; - } else { - this.ptCount = Math.max(ptCount); - } - }, - addCoordinate: function (xVal, yVal, chartId, seriaId) { if (!this.storage[chartId]) { this.storage[chartId] = {}; @@ -16361,6 +17597,7 @@ CColorObj.prototype = // in the case of duplicated data, no further adding should be allowed if (!this.stopAdding) { + this.ptCount+=1; this.storage[chartId][seriaId].addCatVal(xVal); this.storage[chartId][seriaId].addValVal(yVal); @@ -16432,8 +17669,8 @@ CColorObj.prototype = const coefficients = this._getEquationCoefficients(coords.catVals, coords.valVals, type, order, attributes.intercept); const equationStorage = this._obtainEquationStorage(type); if (coefficients && equationStorage) { - let catMax = catAxis.max + attributes.forward; - let catMin = catAxis.min + attributes.backward; + let catMax = catAxis.max; + let catMin = catAxis.min; const midPointsNum = 100; const lineBuilder = new CLineBuilder(coefficients, catMin, catMax, valAxis.scaling.min, valAxis.scaling.max, valAxis.scaling.logBase); lineBuilder.setCalcYVal(equationStorage.calcYVal); @@ -16458,10 +17695,10 @@ CColorObj.prototype = } storageElement.setBoundary(lineBuilder.getBoundary()); - if (attributes.dispEq) { + if (attributes.dispEq || attributes.dispEq === null) { storageElement.setCoefficients(coefficients); } - if (attributes.dispRSqr) { + if (attributes.dispRSqr || attributes.dispRSqr === null) { const rSquared = this._dispRSquared(coords.catVals, coords.valVals, coefficients, type); storageElement.setRSquared(rSquared); } diff --git a/common/Charts/DrawingArea.js b/common/Charts/DrawingArea.js index e081fe4f4e..6132176f81 100755 --- a/common/Charts/DrawingArea.js +++ b/common/Charts/DrawingArea.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -434,13 +434,13 @@ function FrozenPlace(ws, type) { break; case FrozenAreaType.Bottom: { - scroll = -(_this.worksheet._getRowTop(fv.row) - _this.worksheet._getRowTop(_this.frozenCell.row)) + headerPx; + scroll = -(_this.worksheet._getRowTop(fv.row) - _this.worksheet._getRowTop(_this.frozenCell.row) + _this.worksheet.getScrollCorrect()) + headerPx; } break; case FrozenAreaType.Left: case FrozenAreaType.Right: { - scroll = -(_this.worksheet._getRowTop(fv.row) - _this.worksheet.cellsTop) + headerPx; + scroll = -(_this.worksheet._getRowTop(fv.row) - _this.worksheet.cellsTop + _this.worksheet.getScrollCorrect()) + headerPx; } break; @@ -453,13 +453,13 @@ function FrozenPlace(ws, type) { case FrozenAreaType.LeftBottom: case FrozenAreaType.RightBottom: { - scroll = -(_this.worksheet._getRowTop(fv.row) - _this.worksheet._getRowTop(_this.frozenCell.row)) + headerPx; + scroll = -(_this.worksheet._getRowTop(fv.row) - _this.worksheet._getRowTop(_this.frozenCell.row) + _this.worksheet.getScrollCorrect()) + headerPx; } break; // No frozen areas case FrozenAreaType.Center: { - scroll = -(_this.worksheet._getRowTop(fv.row) - _this.worksheet.cellsTop) + headerPx; + scroll = -(_this.worksheet._getRowTop(fv.row) - _this.worksheet.cellsTop + _this.worksheet.getScrollCorrect()) + headerPx; } break; } @@ -477,7 +477,7 @@ function FrozenPlace(ws, type) { // Two places case FrozenAreaType.Top: case FrozenAreaType.Bottom: { - scroll = -(_this.worksheet._getColLeft(fv.col) - _this.worksheet.cellsLeft) + headerPx; + scroll = -(_this.worksheet._getColLeft(fv.col) - _this.worksheet.cellsLeft + _this.worksheet.getHorizontalScrollCorrect()) + headerPx; } break; @@ -487,7 +487,7 @@ function FrozenPlace(ws, type) { break; case FrozenAreaType.Right: { - scroll = -(_this.worksheet._getColLeft(fv.col) - _this.worksheet._getColLeft(_this.frozenCell.col)) + headerPx; + scroll = -(_this.worksheet._getColLeft(fv.col) - _this.worksheet._getColLeft(_this.frozenCell.col) + _this.worksheet.getHorizontalScrollCorrect()) + headerPx; } break; @@ -500,17 +500,17 @@ function FrozenPlace(ws, type) { case FrozenAreaType.RightTop: case FrozenAreaType.RightBottom: { - scroll = -(_this.worksheet._getColLeft(fv.col) - _this.worksheet._getColLeft(_this.frozenCell.col)) + headerPx; + scroll = -(_this.worksheet._getColLeft(fv.col) - _this.worksheet._getColLeft(_this.frozenCell.col) + _this.worksheet.getHorizontalScrollCorrect()) + headerPx; } break; // No frozen areas case FrozenAreaType.Center: { - scroll = -(_this.worksheet._getColLeft(fv.col) - _this.worksheet.cellsLeft) + headerPx; + scroll = -(_this.worksheet._getColLeft(fv.col) - _this.worksheet.cellsLeft + _this.worksheet.getHorizontalScrollCorrect()) + headerPx; } break; } - return scroll; + return _this.worksheet.getRightToLeft() ? -scroll : scroll; }; _this.clip = function(canvas, rect) { @@ -542,7 +542,7 @@ function FrozenPlace(ws, type) { var oClipRect; if(!oRect) { - oClipRect = _this.worksheet.rangeToRectRel(_this.range, 0); + oClipRect = _this.worksheet.rangeToRectRel(_this.range, 0, true); } else { var oT = canvas.shapeCtx.m_oCoordTransform; @@ -580,7 +580,7 @@ function FrozenPlace(ws, type) { } var canvas = _this.worksheet.objectRender.getDrawingCanvas(); _this.setTransform(canvas.shapeCtx, canvas.shapeOverlayCtx, canvas.autoShapeTrack); - _this.clip(canvas.shapeCtx, _this.worksheet.rangeToRectRel(oClipRange, 0)); + _this.clip(canvas.shapeCtx, _this.worksheet.rangeToRectRel(oClipRange, 0, true)); canvas.shapeCtx.updatedRect = _this.worksheet.rangeToRectAbs(oClipRange, 3); //For debug // canvas.shapeCtx.p_color(0, 0, 0, 255); @@ -629,10 +629,10 @@ function FrozenPlace(ws, type) { } autoShapeTrack.m_oOverlay.CheckPoint1(x - nW, top); autoShapeTrack.m_oOverlay.CheckPoint2(x + nW, bottom); - autoShapeTrack.drawImage(sFrozenImageRotUrl, x, top, nW, bottom); + autoShapeTrack.drawImage(sFrozenImageRotUrl, _this.worksheet.checkRtl(x), top, nW, bottom); } else { - autoShapeTrack.m_oOverlay.DrawFrozenPlaceVerLine(x, top, bottom); + autoShapeTrack.m_oOverlay.DrawFrozenPlaceVerLine(_this.worksheet.checkRtl(x), top, bottom); } }; _this.drawSelection = function(drawingDocument, shapeCtx, shapeOverlayCtx, autoShapeTrack, trackOverlay) { @@ -640,7 +640,7 @@ function FrozenPlace(ws, type) { var ctx = trackOverlay.m_oContext; _this.setTransform(shapeCtx, shapeOverlayCtx, autoShapeTrack, trackOverlay); // Clip - _this.clip(shapeOverlayCtx, _this.worksheet.rangeToRectRel(_this.range, 0)); + _this.clip(shapeOverlayCtx, _this.worksheet.rangeToRectRel(_this.range, 0, true)); if (drawingDocument.m_bIsSelection) { if (!window["IS_NATIVE_EDITOR"]) { drawingDocument.SelectionMatrix = null; @@ -857,7 +857,17 @@ DrawingArea.prototype.drawSelection = function(drawingDocument) { if(oWatermark) { oWatermark.zoom = 1.0; oWatermark.Generate(); - oWatermark.Draw(ctx, ctx.canvas.width, ctx.canvas.height); + if(oWatermark.width > 0 && oWatermark.height > 0) { + let nOffsetY = oWS.cellsTop; + while (nOffsetY < ctx.canvas.height) { + let nOffsetX = oWS.cellsLeft; + while (nOffsetX < ctx.canvas.width) { + oWatermark.Draw(ctx, nOffsetX, nOffsetY, oWatermark.width, oWatermark.height); + nOffsetX += oWatermark.width; + } + nOffsetY += oWatermark.height; + } + } } if (this.api) { diff --git a/common/Charts/DrawingObjects.js b/common/Charts/DrawingObjects.js index 436dabc73f..988e0f6e29 100644 --- a/common/Charts/DrawingObjects.js +++ b/common/Charts/DrawingObjects.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -427,8 +427,16 @@ function asc_CChartBinary(chart) { this["binary"] = null; if (chart && chart.getObjectType() === AscDFH.historyitem_type_ChartSpace) { + this["IsChartEx"] = chart.isChartEx(); var writer = new AscCommon.BinaryChartWriter(new AscCommon.CMemory(false)), pptx_writer; - writer.WriteCT_ChartSpace(chart); + if(this["IsChartEx"]) + { + writer.WriteCT_ChartExSpace(chart); + } + else + { + writer.WriteCT_ChartSpace(chart); + } this["binary"] = writer.memory.pos + ";" + writer.memory.GetBase64Memory(); if(chart.theme) { @@ -462,6 +470,8 @@ asc_CChartBinary.prototype = { asc_setThemeBinary: function(val) { this["themeBinary"] = val; }, asc_setColorMapBinary: function(val){this["colorMapBinary"] = val;}, asc_getColorMapBinary: function(){return this["colorMapBinary"];}, + asc_setIsChartEx: function(val){this["IsChartEx"] = val;}, + asc_getIsChartEx: function(){return this["IsChartEx"];}, getChartSpace: function(workSheet) { var binary = this["binary"]; @@ -470,7 +480,12 @@ asc_CChartBinary.prototype = { AscCommon.pptx_content_loader.Clear(); var oNewChartSpace = Asc.editor.isPdfEditor() ? new AscPDF.CPdfChart() : new AscFormat.CChartSpace(); var oBinaryChartReader = new AscCommon.BinaryChartReader(stream); - oBinaryChartReader.ExternalReadCT_ChartSpace(stream.size , oNewChartSpace, workSheet); + if(this["IsChartEx"]) { + oBinaryChartReader.ExternalReadCT_ChartExSpace(stream.size , oNewChartSpace, workSheet); + } + else { + oBinaryChartReader.ExternalReadCT_ChartSpace(stream.size , oNewChartSpace, workSheet); + } return oNewChartSpace; }, @@ -1080,6 +1095,8 @@ CSparklineView.prototype.draw = function(graphics, offX, offY) var x = this.ws.getCellLeft(this.col, 3) - offX; var y = this.ws.getCellTop(this.row, 3) - offY; + x = this.ws.checkRtl(x, undefined, 3); + var i; var extX; @@ -1088,7 +1105,7 @@ CSparklineView.prototype.draw = function(graphics, offX, offY) if(oMergeInfo){ extX = 0; for(i = oMergeInfo.c1; i <= oMergeInfo.c2; ++i){ - extX += this.ws.getColumnWidth(i, 3) + extX += this.ws.getColumnWidth(i, 3); } extY = 0; for(i = oMergeInfo.r1; i <= oMergeInfo.r2; ++i){ @@ -1100,6 +1117,9 @@ CSparklineView.prototype.draw = function(graphics, offX, offY) extY = this.ws.getRowHeight(this.row, 3); } + if (this.ws.getRightToLeft()) { + x -= extX; + } var bExtent = Math.abs(this.extX - extX) > 0.01 || Math.abs(this.extY - extY) > 0.01; var bPosition = Math.abs(this.x - x) > 0.01 || Math.abs(this.y - y) > 0.01; @@ -1363,6 +1383,9 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro metrics.y = this.pxToMm( coordsFrom.y ); metrics.extX = this.ext.cx; metrics.extY = this.ext.cy; + if (this.worksheet.getRightToLeft()) { + metrics.x -= metrics.extX; + } } break; } @@ -1370,12 +1393,21 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro { if (this.worksheet) { coordsFrom = this.getDrawingObjects().calculateCoords(_t.from); - metrics.x = this.pxToMm( coordsFrom.x ); - metrics.y = this.pxToMm( coordsFrom.y ); + if (!this.worksheet.getRightToLeft()) { + metrics.x = this.pxToMm( coordsFrom.x ); + metrics.y = this.pxToMm( coordsFrom.y ); + coordsTo = this.getDrawingObjects().calculateCoords(_t.to); + metrics.extX = this.pxToMm( coordsTo.x - coordsFrom.x ); + metrics.extY = this.pxToMm( coordsTo.y - coordsFrom.y ); + } else { + metrics.y = this.pxToMm( coordsFrom.y ); + + coordsTo = this.getDrawingObjects().calculateCoords(_t.to); + metrics.extX = this.pxToMm( coordsFrom.x - coordsTo.x ); + metrics.extY = this.pxToMm( coordsTo.y - coordsFrom.y ); - coordsTo = this.getDrawingObjects().calculateCoords(_t.to); - metrics.extX = this.pxToMm( coordsTo.x - coordsFrom.x ); - metrics.extY = this.pxToMm( coordsTo.y - coordsFrom.y ); + metrics.x = this.pxToMm( coordsTo.x ); + } } break; } @@ -1430,6 +1462,12 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro ret.ext.cy = _t.graphicObject.extX; } + if (this.worksheet.getRightToLeft()) { + let temp = fromX; + fromX = toX; + toX = temp; + } + var fromColCell = this.worksheet.findCellByXY(fromX, fromY, true, false, true); var fromRowCell = this.worksheet.findCellByXY(fromX, fromY, true, true, false); var toColCell = this.worksheet.findCellByXY(toX, toY, true, false, true); @@ -1499,6 +1537,12 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro this.ext.cy = _t.graphicObject.extX; } + if (this.worksheet.getRightToLeft()) { + let temp = fromX; + fromX = toX; + toX = temp; + } + var fromColCell = this.worksheet.findCellByXY(fromX, fromY, true, false, true); var fromRowCell = this.worksheet.findCellByXY(fromX, fromY, true, true, false); var toColCell = this.worksheet.findCellByXY(toX, toY, true, false, true); @@ -1536,6 +1580,12 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro toY = 0; } + if (this.worksheet.getRightToLeft()) { + let temp = fromX; + fromX = toX; + toX = temp; + } + var fromColCell = this.worksheet.findCellByXY(fromX, fromY, true, false, true); var fromRowCell = this.worksheet.findCellByXY(fromX, fromY, true, true, false); var toColCell = this.worksheet.findCellByXY(toX, toY, true, false, true); @@ -1998,6 +2048,7 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro oGraphic = drawingObject.graphicObject; oGraphic.setDrawingBase(drawingObject); oGraphic.setDrawingObjects(_this); + oGraphic.generateLocalDrawingPart(); oGraphic.getAllRasterImages(aImagesSync); } aImagesSync = _this.checkImageBullets(currentSheet, aImagesSync); @@ -2384,7 +2435,7 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro //----------------------------------------------------------------------------------- - _this.calculateObjectMetrics = function (object, width, height) { + _this.calculateObjectMetrics = function (object, width, height, opt_checkRtl) { // Обработка картинок большого разрешения var bCorrect = false; var metricCoeff = 1; @@ -2411,6 +2462,9 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro bCorrect = true; } + if (opt_checkRtl && worksheet.getRightToLeft()) { + width *= -1; + } var toCell = worksheet.findCellByXY(realLeftOffset + width, realTopOffset + height, true, false, false); object.to.col = toCell.col; object.to.colOff = pxToMm(toCell.colOff); @@ -2443,10 +2497,15 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro oSize = new AscCommon.asc_CImageSize(Math.max((options.width * AscCommon.g_dKoef_pix_to_mm), 1), Math.max((options.height * AscCommon.g_dKoef_pix_to_mm), 1), true); } - var bCorrect = _this.calculateObjectMetrics(drawingObject, mmToPx(oSize.asc_getImageWidth()), mmToPx(oSize.asc_getImageHeight())); + var bCorrect = _this.calculateObjectMetrics(drawingObject, mmToPx(oSize.asc_getImageWidth()), mmToPx(oSize.asc_getImageHeight()), true); var coordsFrom = _this.calculateCoords(drawingObject.from); var coordsTo = _this.calculateCoords(drawingObject.to); + if (worksheet.getRightToLeft()) { + let temp = coordsTo.x; + coordsTo.x = coordsFrom.x; + coordsFrom.x = temp; + } if(bCorrect) { _this.controller.addImageFromParams(_image.src, pxToMm(coordsFrom.x) + MOVE_DELTA, pxToMm(coordsFrom.y) + MOVE_DELTA, pxToMm(coordsTo.x - coordsFrom.x), pxToMm(coordsTo.y - coordsFrom.y)); } @@ -2795,6 +2854,7 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro asc_chart_binary.asc_setBinary(chart["binary"]); asc_chart_binary.asc_setThemeBinary(chart["themeBinary"]); asc_chart_binary.asc_setColorMapBinary(chart["colorMapBinary"]); + asc_chart_binary.asc_setIsChartEx(chart["IsChartEx"]); var oNewChartSpace = asc_chart_binary.getChartSpace(model); var theme = asc_chart_binary.getTheme(); if(theme) @@ -2850,13 +2910,42 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro function fillTableFromRef(ref) { - var cache = ref.numCache ? ref.numCache : (ref.strCache ? ref.strCache : null); + var cache; + if(ref.numCache) { + cache =ref.numCache; + } + else if(ref.strCache) { + cache = ref.strCache; + } + else { + if(Array.isArray(ref.levelData)) { + cache = ref.levelData[0]; + } + else if(typeof ref.v === "string") { + cache = AscFormat.ExecuteNoHistory( + function() { + let oStrCache = new AscFormat.CStrCache(); + let oPt = new AscFormat.CStringPoint(); + oPt.idx = 0; + oPt.val = ref.v; + oStrCache.addPt(oPt); + return oStrCache; + }, this, [] + ); + } + } + var sFormula = ""; + if(typeof ref.f === "string") { + sFormula = ref.f; + } + else if(ref.f && ref.f.content) { + sFormula = ref.f.content; + } var lit_format_code; if(cache) { lit_format_code = (typeof cache.formatCode === "string" && cache.formatCode.length > 0) ? cache.formatCode : "General"; - var sFormula = ref.f + ""; if(sFormula[0] === '(') sFormula = sFormula.slice(1); if(sFormula[sFormula.length-1] === ')') @@ -3007,6 +3096,27 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro } } } + else + { + if(oNewChartSpace.isChartEx()) { + let aSeries = oNewChartSpace.getAllSeries(); + + for(let nS = 0; nS < aSeries.length; ++nS) { + let oSeries = aSeries[nS]; + let oData = oSeries.getData(); + if(oData) { + let aDims = oData.dimension; + for(let nDim = 0; nDim < aDims.length; ++nDim) { + let oDim = aDims[nDim]; + fillTableFromRef(oDim); + } + } + if(oSeries.tx && oSeries.tx.txData) { + fillTableFromRef(oSeries.tx.txData); + } + } + } + } oAllRange = oAllRange.bbox; oAllRange.r2 = Math.max(oAllRange.r2, max_r); oAllRange.c2 = Math.max(oAllRange.c2, max_c); @@ -4548,9 +4658,11 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro if(_this.controller.checkSelectedObjectsProtectionText()) { return; } + Asc.editor.sendEvent("asc_onUserActionStart"); History.Create_NewPoint(AscDFH.historydescription_Document_CompositeInput); _this.beginCompositeInput(); _this.controller.recalculateCurPos(true, true); + Asc.editor.sendEvent("asc_onUserActionEnd"); }; @@ -4583,12 +4695,14 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro { if (null === _this.CompositeInput) return; + Asc.editor.sendEvent("asc_onUserActionStart"); History.Create_NewPoint(AscDFH.historydescription_Document_CompositeInputReplace); _this.addCompositeText(nCharCode); _this.checkCurrentTextObjectExtends(); _this.controller.recalculate(); _this.controller.recalculateCurPos(true, true); _this.controller.updateSelectionState(); + Asc.editor.sendEvent("asc_onUserActionEnd"); }; _this.removeCompositeText = function(nCount){ @@ -4614,6 +4728,7 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro { if (null === _this.CompositeInput) return; + Asc.editor.sendEvent("asc_onUserActionStart"); History.Create_NewPoint(AscDFH.historydescription_Document_CompositeInputReplace); _this.removeCompositeText(_this.CompositeInput.Length); for (var nIndex = 0, nCount = arrCharCodes.length; nIndex < nCount; ++nIndex) @@ -4624,6 +4739,7 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro _this.controller.startRecalculate(); _this.controller.recalculateCurPos(true, true); _this.controller.updateSelectionState(); + Asc.editor.sendEvent("asc_onUserActionEnd"); }; _this.Set_CursorPosInCompositeText = function(nPos) { @@ -4705,6 +4821,7 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro var resultColOff = cell.colOff > colWidth ? colWidth : cell.colOff; coords.y = ws._getRowTop(cell.row) + ws.objectRender.convertMetric(resultRowOff, 3, 0) - ws._getRowTop(0); coords.x = ws._getColLeft(cell.col) + ws.objectRender.convertMetric(resultColOff, 3, 0) - ws._getColLeft(0); + coords.x = ws.checkRtl(coords.x, undefined, undefined, true); } return coords; }; diff --git a/common/Charts/charts.js b/common/Charts/charts.js index 1f9e8ddfcd..77d6a55a08 100644 --- a/common/Charts/charts.js +++ b/common/Charts/charts.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/CollaborativeEditingBase.js b/common/CollaborativeEditingBase.js index c44e87c1ee..6370957ddf 100644 --- a/common/CollaborativeEditingBase.js +++ b/common/CollaborativeEditingBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -123,9 +123,9 @@ }; CCollaborativeChanges.prototype.private_SaveData = function(Binary) { - var Writer = AscCommon.History.BinaryWriter; - var Pos = Binary.Pos; - var Len = Binary.Len; + let Writer = AscCommon.History.BinaryWriter; + let Pos = Binary.Pos; + let Len = Binary.Len; if ((Asc.editor || editor).binaryChanges) { return Writer.GetDataUint8(Pos, Len); } else { @@ -249,7 +249,15 @@ { return this.m_oLogicDocument; }; - CCollaborativeEditingBase.prototype.Clear = function() + CCollaborativeEditingBase.prototype.getCoHistory = function() + { + return this.CoHistory; + }; + CCollaborativeEditingBase.prototype.SetLogicDocument = function(doc) + { + this.m_oLogicDocument = doc; + }; + CCollaborativeEditingBase.prototype.Clear = function() { this.m_nUseType = 1; @@ -264,6 +272,8 @@ this.m_aCheckLocksInstance = []; this.m_aNewObjects = []; this.m_aNewImages = []; + + this.CoHistory.clear(); }; CCollaborativeEditingBase.prototype.Set_Fast = function(bFast) { @@ -283,15 +293,15 @@ { return (1 === this.m_nUseType); }; + CCollaborativeEditingBase.prototype.isCollaboration = function() + { + return (-1 === this.m_nUseType); + }; CCollaborativeEditingBase.prototype.canSendChanges = function() { let api = this.GetEditorApi(); return api && api.canSendChanges(); }; - CCollaborativeEditingBase.prototype.getCoHistory = function() - { - return this.CoHistory; - }; CCollaborativeEditingBase.prototype.getCollaborativeEditing = function() { return !this.Is_SingleUser(); @@ -372,6 +382,8 @@ if (fEndCallBack) fEndCallBack(); } + + AscCommon.CollaborativeEditing.CoHistory.InitTextRecover(); }; CCollaborativeEditingBase.prototype.Apply_OtherChanges = function() { @@ -901,6 +913,10 @@ } } }; + CCollaborativeEditingBase.prototype.Get_CollaborativeMarks = function () + { + return this.m_aChangedClasses; + } //---------------------------------------------------------------------------------------------------------------------- // Функции для работы с обновлением курсоров после принятия изменений //---------------------------------------------------------------------------------------------------------------------- @@ -947,6 +963,10 @@ CCollaborativeEditingBase.prototype.Add_DocumentPosition = function(DocumentPos){ this.m_aDocumentPositions.Add_DocumentPosition(DocumentPos); }; + CCollaborativeEditingBase.prototype.Remove_DocumentPosition = function(docPos) + { + this.m_aDocumentPositions.Remove_DocumentPosition(docPos); + }; CCollaborativeEditingBase.prototype.Add_ForeignCursor = function(UserId, DocumentPos, UserShortId){ this.m_aForeignCursorsPos.Remove_DocumentPosition(this.m_aCursorsToUpdate[UserId]); this.m_aForeignCursors[UserId] = DocumentPos; diff --git a/common/Controls.js b/common/Controls.js index c6030a1611..eff09724aa 100644 --- a/common/Controls.js +++ b/common/Controls.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/ArcTo.js b/common/Drawings/ArcTo.js index 3251be9101..4ce967cbe2 100644 --- a/common/Drawings/ArcTo.js +++ b/common/Drawings/ArcTo.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/ColorArray.js b/common/Drawings/ColorArray.js index ff5f2c2325..504cf76b53 100644 --- a/common/Drawings/ColorArray.js +++ b/common/Drawings/ColorArray.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/CommonController.js b/common/Drawings/CommonController.js index 718e86c53a..59842444a7 100644 --- a/common/Drawings/CommonController.js +++ b/common/Drawings/CommonController.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -206,6 +206,46 @@ return oResult; } + function fGetMaxInscribedRectangle(width, height, angle) { + const isShortWidth = width < height; + let shortSide = height; + let longSide = width; + if (isShortWidth) { + longSide = height; + shortSide = width; + } + const sinA = Math.abs(Math.sin(angle)); + const cosA = Math.abs(Math.cos(angle)); + const tanA = sinA / cosA; + let inscribedWidth; + let inscribedHeight; + + if (angle % Math.PI === 0) { + inscribedWidth = width; + inscribedHeight = height; + } else if (angle % (Math.PI / 2) === 0) { + inscribedWidth = height; + inscribedHeight = width; + } else if (shortSide * (tanA + 1 / tanA) / 2 <= longSide) { + if (isShortWidth) { + inscribedWidth = shortSide / (2 * cosA); + inscribedHeight = shortSide / (2 * sinA); + } else { + inscribedWidth = shortSide / (2 * sinA); + inscribedHeight = shortSide / (2 * cosA); + } + } else { + const divider = sinA * sinA - cosA * cosA; + inscribedWidth = (height * sinA - cosA * width) / divider; + inscribedHeight = (width * sinA - cosA * height) / divider; + } + + return { + width: inscribedWidth, + height: inscribedHeight + }; + } + function checkParagraphDefFonts(map, par) { par && par.Pr && par.Pr.DefaultRunPr && checkRFonts(map, par.Pr.DefaultRunPr.RFonts); } @@ -1485,7 +1525,7 @@ if (AscFormat.isLeftButtonDoubleClick(e) && !e.ShiftKey && !e.CtrlKey && ((this.selection.groupSelection && this.selection.groupSelection.selectedObjects.length === 1) || this.selectedObjects.length === 1)) { - var drawing = this.selectedObjects[0].parent; + var drawing = this.selectedObjects[0] && this.selectedObjects[0].parent; if (object.getObjectType() === AscDFH.historyitem_type_ChartSpace && this.handleChartDoubleClick) { this.handleChartDoubleClick(drawing, object, e, x, y, pageIndex); @@ -2064,7 +2104,7 @@ const oApi = this.getEditorApi(); let isDrawHandles = oApi ? oApi.isShowShapeAdjustments() : true; - const nSelectedCount = this.selectedObjects; + const nSelectedCount = this.selectedObjects.length; const oFirstSelected = this.selectedObjects[0]; if (nSelectedCount === 1 @@ -2112,7 +2152,7 @@ false, false, undefined, - isDrawHandles && cropObject.canEdit() + isDrawHandles && cropObject.canEdit() && cropObject.canResize() ); drawingDocument.DrawTrack( AscFormat.TYPE_TRACK.CROP, @@ -2124,7 +2164,7 @@ false, false, undefined, - isDrawHandles && oCrop.canEdit() + isDrawHandles && oCrop.canEdit() && oCrop.canResize() ); } } @@ -2144,7 +2184,7 @@ AscFormat.CheckObjectLine(oTx), oTx.canRotate(), undefined, - isDrawHandles && oTx.canEdit() + isDrawHandles && oTx.canEdit() && oTx.canResize() ); oTx.drawAdjustments(drawingDocument); } @@ -2161,7 +2201,7 @@ false, oGrp.canRotate(), undefined, - isDrawHandles && oGrp.canEdit() + isDrawHandles && oGrp.canEdit() && oGrp.canResize() ); const oGrpTx = oGrp.selection.textSelection; const oGrpChart = oGrp.selection.chartSelection; @@ -2177,7 +2217,7 @@ AscFormat.CheckObjectLine(oGrpTx), oGrpTx.canRotate(), undefined, - isDrawHandles && this.selection.groupSelection.canEdit() + isDrawHandles && this.selection.groupSelection.canEdit() && this.selection.groupSelection.canResize() ); } else if (oGrpChart) { oGrpChart.drawSelect(drawingDocument, pageIndex); @@ -2197,7 +2237,7 @@ AscFormat.CheckObjectLine(oDrawing), oDrawing.canRotate() && !Asc.editor.isPdfEditor(), undefined, - isDrawHandles && oGrp.canEdit()); + isDrawHandles && oGrp.canEdit() && oGrp.canResize()); } } if (aGrpSelected.length === 1) { @@ -2228,7 +2268,7 @@ AscFormat.CheckObjectLine(oDrawing), oDrawing.canRotate(), undefined, - isDrawHandles && oDrawing.canEdit() + isDrawHandles && oDrawing.canEdit() && oDrawing.canResize() ); } } @@ -2530,7 +2570,7 @@ return null; }, - getTargetDocContent: function (bCheckChartTitle, bOrTable) { + getTargetDocContent: function (bTryUpdateHistory, bOrTable) { var text_object = getTargetTextObject(this); if (text_object) { if (bOrTable) { @@ -2538,8 +2578,16 @@ return text_object.graphicObject; } } - if (bCheckChartTitle && text_object.checkDocContent) { - text_object.checkDocContent(); + if (bTryUpdateHistory) { + if (text_object.checkDocContent) { + text_object.checkDocContent(); + } + if (text_object.checkDrawingPartWithHistory) { + const newTextObject = text_object.checkDrawingPartWithHistory(); + if (newTextObject) { + text_object = newTextObject; + } + } } return text_object.getDocContent(); } @@ -2563,26 +2611,31 @@ this.applyDocContentFunction(AscFormat.CDrawingDocContent.prototype.ClearParagraphFormatting, [isClearParaPr, isClearTextPr], CTable.prototype.ClearParagraphFormatting); }, - applyDocContentFunction: function (f, args, tableFunction) { - var oThis = this; - var isIncreaseDecreaseFunction = f === CDocumentContent.prototype.IncreaseDecreaseFontSize; + applyDocContentFunction: function (f, args, tableFunction, fOrigDocContentMethod) { + let oThis = this; + let isIncreaseDecreaseFunction = f === CDocumentContent.prototype.IncreaseDecreaseFontSize; function applyToArrayDrawings(arr) { var ret = false, ret2; for (var i = 0; i < arr.length; ++i) { - if (arr[i].getObjectType() === AscDFH.historyitem_type_GroupShape || arr[i].getObjectType() === AscDFH.historyitem_type_SmartArt) { - ret2 = applyToArrayDrawings(arr[i].arrGraphicObjects); + let drawing = arr[i]; + const newShape = arr[i].checkDrawingPartWithHistory && arr[i].checkDrawingPartWithHistory(); + if (newShape) { + drawing = newShape; + } + if (drawing.getObjectType() === AscDFH.historyitem_type_GroupShape || drawing.getObjectType() === AscDFH.historyitem_type_SmartArt) { + ret2 = applyToArrayDrawings(drawing.arrGraphicObjects); if (ret2) { ret = true; } - } else if (arr[i].getObjectType() === AscDFH.historyitem_type_GraphicFrame) { - arr[i].graphicObject.SetApplyToAll(true); - tableFunction.apply(arr[i].graphicObject, args); - arr[i].graphicObject.SetApplyToAll(false); + } else if (drawing.getObjectType() === AscDFH.historyitem_type_GraphicFrame) { + drawing.graphicObject.SetApplyToAll(true); + tableFunction.apply(drawing.graphicObject, args); + drawing.graphicObject.SetApplyToAll(false); ret = true; - } else if (arr[i].getObjectType() === AscDFH.historyitem_type_ChartSpace) { + } else if (drawing.getObjectType() === AscDFH.historyitem_type_ChartSpace) { if (args[0].Type === para_TextPr) { - var oChartSpace = arr[i]; + var oChartSpace = drawing; var fCallback = function (oElement) { AscFormat.CheckObjectTextPr(oElement, args[0].Value, oThis.getDrawingDocument()); @@ -2590,40 +2643,42 @@ oChartSpace.applyLabelsFunction(fCallback, args[0].Value); } if (f === CDocumentContent.prototype.IncreaseDecreaseFontSize) { - arr[i].paragraphIncDecFontSize(args[0]); - } - } else if (arr[i].getDocContent) { - var content = arr[i].getDocContent(); - if (content) { - content.SetApplyToAll(true); - f.apply(content, args); - content.SetApplyToAll(false); - ret = true; - if (isIncreaseDecreaseFunction && arr[i].isObjectInSmartArt()) { - arr[i].setCustT(true); - } - } else { - if (arr[i].getObjectType() === AscDFH.historyitem_type_Shape) { - if (arr[i].canEditText()) { - if (arr[i].bWordShape) { - arr[i].createTextBoxContent(); - } else { - arr[i].createTextBody(); - } - content = arr[i].getDocContent(); - if (content) { - content.SetApplyToAll(true); - f.apply(content, args); - content.SetApplyToAll(false); - ret = true; + drawing.paragraphIncDecFontSize(args[0]); + } + } else if (drawing.getDocContent) { + if(!drawing.checkEditTextStyle(fOrigDocContentMethod || f, args, false)) { + var content = drawing.getDocContent(); + if (content) { + content.SetApplyToAll(true); + f.apply(content, args); + content.SetApplyToAll(false); + ret = true; + if (isIncreaseDecreaseFunction && drawing.isObjectInSmartArt()) { + drawing.setCustT(true); + } + } else { + if (drawing.getObjectType() === AscDFH.historyitem_type_Shape) { + if (drawing.canEditText()) { + if (drawing.bWordShape) { + drawing.createTextBoxContent(); + } else { + drawing.createTextBody(); + } + content = drawing.getDocContent(); + if (content) { + content.SetApplyToAll(true); + f.apply(content, args); + content.SetApplyToAll(false); + ret = true; + } } } } } } - if (arr[i].checkExtentsByDocContent) { - arr[i].checkExtentsByDocContent(); + if (drawing.checkExtentsByDocContent) { + drawing.checkExtentsByDocContent(); } } return ret; @@ -2649,7 +2704,9 @@ if (this.selection.textSelection) { if (this.selection.textSelection.getObjectType() !== AscDFH.historyitem_type_GraphicFrame) { - f.apply(this.selection.textSelection.getDocContent(), args); + if(!this.selection.textSelection.checkEditTextStyle(fOrigDocContentMethod || f, args, true)) { + f.apply(this.selection.textSelection.getDocContent(), args); + } this.selection.textSelection.checkExtentsByDocContent(); } else { tableFunction.apply(this.selection.textSelection.graphicObject, args); @@ -2658,6 +2715,8 @@ if (this.selection.groupSelection.selection.textSelection) { if (this.selection.groupSelection.selection.textSelection.getObjectType() !== AscDFH.historyitem_type_GraphicFrame) { var frame = this.selection.groupSelection.selection.textSelection; + frame.checkDrawingPartWithHistory(); + frame = this.selection.groupSelection.selection.textSelection; f.apply(frame.getDocContent(), args); if (frame.isObjectInSmartArt() && isIncreaseDecreaseFunction) { frame.setCustT(true); @@ -2864,8 +2923,15 @@ }, applyTextFunction: function (docContentFunction, tableFunction, args) { + let bApplyTextPr = false; + if(docContentFunction === CDocumentContent.prototype.AddToParagraph && args[0].Type === para_TextPr) { + bApplyTextPr = true; + } if (this.selection.textSelection) { - this.selection.textSelection.applyTextFunction(docContentFunction, tableFunction, args); + if(!this.selection.textSelection.checkEditTextStyle(docContentFunction, args, true)) { + this.selection.textSelection.checkDrawingPartWithHistory(); + this.selection.textSelection.applyTextFunction(docContentFunction, tableFunction, args); + } } else if (this.selection.groupSelection) { var oOldDoc = this.selection.groupSelection.document; this.selection.groupSelection.document = this.document; @@ -2877,19 +2943,20 @@ this.document.Recalculate(); } } else { - if (docContentFunction === CDocumentContent.prototype.AddToParagraph && args[0].Type === para_TextPr || docContentFunction === CDocumentContent.prototype.PasteFormatting) { + if (bApplyTextPr || docContentFunction === CDocumentContent.prototype.PasteFormatting) { var fDocContentCallback = function () { if (this.CanEditAllContentControls()) { docContentFunction.apply(this, args); } }; - this.applyDocContentFunction(fDocContentCallback, args, tableFunction); + this.applyDocContentFunction(fDocContentCallback, args, tableFunction, docContentFunction); } else if (this.selectedObjects.length === 1 && ((this.selectedObjects[0].getObjectType() === AscDFH.historyitem_type_Shape && this.selectedObjects[0].canEditText()) || this.selectedObjects[0].getObjectType() === AscDFH.historyitem_type_GraphicFrame)) { this.selection.textSelection = this.selectedObjects[0]; if (this.selectedObjects[0].getObjectType() === AscDFH.historyitem_type_GraphicFrame) { this.selectedObjects[0].graphicObject.MoveCursorToStartPos(false); this.selectedObjects[0].applyTextFunction(docContentFunction, tableFunction, args); } else { + this.selectedObjects[0].checkDrawingPartWithHistory && this.selectedObjects[0].checkDrawingPartWithHistory(); var oDocContent = this.selectedObjects[0].getDocContent(); if (oDocContent) { oDocContent.MoveCursorToEndPos(false); @@ -3992,36 +4059,13 @@ } } if (AscFormat.isRealNumber(props.Width) || AscFormat.isRealNumber(props.Height)) { - - - for (i = 0; i < objects_by_type.shapes.length; ++i) { - fApplyDrawingSize(objects_by_type.shapes[i], props); - } - for (i = 0; i < objects_by_type.images.length; ++i) { - fApplyDrawingSize(objects_by_type.images[i], props); - } - for (i = 0; i < objects_by_type.charts.length; ++i) { - fApplyDrawingSize(objects_by_type.charts[i], props); - } - for (i = 0; i < objects_by_type.smartArts.length; ++i) { - let oSmartArt = objects_by_type.smartArts[i]; - CheckSpPrXfrm3(oSmartArt); - let kw, kh; - kw = props.Width / oSmartArt.spPr.xfrm.extX; - kh = props.Height / oSmartArt.spPr.xfrm.extY; - oSmartArt.changeSize(kw, kh); - if (oSmartArt.group) { - checkObjectInArray(aGroups, oSmartArt.group.getMainGroup()); - } - oSmartArt.checkDrawingBaseCoords(); - oSmartArt.checkExtentsByDocContent(true, true); - } - for (i = 0; i < objects_by_type.oleObjects.length; ++i) { - let oOleObject = objects_by_type.oleObjects[i]; - fApplyDrawingSize(oOleObject, props); - oOleObject.callPluginOnResize(); + for(i = 0; i < aSelectedObjects.length; ++i) { + let oDrawing = aSelectedObjects[i]; + fApplyDrawingSize(oDrawing, props); + if(oDrawing.getObjectType() === AscDFH.historyitem_type_OleObject) { + oDrawing.callPluginOnResize(); + } } - if (editorId === AscCommon.c_oEditorId.Presentation || editorId === AscCommon.c_oEditorId.Spreadsheet) { bCheckConnectors = true; bMoveFlag = false; @@ -4048,122 +4092,53 @@ if (isRealObject(props.Position) && AscFormat.isRealNumber(props.Position.X) && AscFormat.isRealNumber(props.Position.Y) || AscFormat.isRealBool(props.flipH) || AscFormat.isRealBool(props.flipV) || AscFormat.isRealBool(props.flipHInvert) || AscFormat.isRealBool(props.flipVInvert) || AscFormat.isRealNumber(props.rotAdd) || AscFormat.isRealNumber(props.rot) || AscFormat.isRealNumber(props.anchor)) { var bPosition = isRealObject(props.Position) && (AscFormat.isRealNumber(props.Position.X) || AscFormat.isRealNumber(props.Position.Y)); - for (i = 0; i < objects_by_type.shapes.length; ++i) { - CheckSpPrXfrm(objects_by_type.shapes[i]); - if (bPosition) { - if (AscFormat.isRealNumber(props.Position.X)) { - objects_by_type.shapes[i].spPr.xfrm.setOffX(props.Position.X); - } - if (AscFormat.isRealNumber(props.Position.Y)) { - objects_by_type.shapes[i].spPr.xfrm.setOffY(props.Position.Y); - } - } - if (AscFormat.isRealBool(props.flipH)) { - objects_by_type.shapes[i].changeFlipH(props.flipH); - } - if (AscFormat.isRealBool(props.flipV)) { - objects_by_type.shapes[i].changeFlipV(props.flipV); - } - if (props.flipHInvert) { - objects_by_type.shapes[i].changeFlipH(!objects_by_type.shapes[i].flipH); - } - if (props.flipVInvert) { - objects_by_type.shapes[i].changeFlipV(!objects_by_type.shapes[i].flipV); - } - if (AscFormat.isRealNumber(props.rotAdd)) { - objects_by_type.shapes[i].changeRot(AscFormat.normalizeRotate(objects_by_type.shapes[i].rot + props.rotAdd)); - } - if (AscFormat.isRealNumber(props.rot)) { - objects_by_type.shapes[i].changeRot(AscFormat.normalizeRotate(props.rot)); - } - if (objects_by_type.shapes[i].group) { - checkObjectInArray(aGroups, objects_by_type.shapes[i].group.getMainGroup()); - } - objects_by_type.shapes[i].checkDrawingBaseCoords(); - } - for (i = 0; i < objects_by_type.images.length; ++i) { - CheckSpPrXfrm(objects_by_type.images[i]); - if (bPosition) { - if (AscFormat.isRealNumber(props.Position.X)) { - objects_by_type.images[i].spPr.xfrm.setOffX(props.Position.X); - } - if (AscFormat.isRealNumber(props.Position.Y)) { - objects_by_type.images[i].spPr.xfrm.setOffY(props.Position.Y); + for(i = 0; i < aSelectedObjects.length; ++i) { + let oDrawing = aSelectedObjects[i]; + CheckSpPrXfrm(oDrawing); + let nType = oDrawing.getObjectType(); + if(bPosition) { + let oXfrm = oDrawing.spPr && oDrawing.spPr.xfrm; + if(oXfrm) { + if (AscFormat.isRealNumber(props.Position.X)) { + oXfrm.setOffX(props.Position.X); + } + if (AscFormat.isRealNumber(props.Position.Y)) { + oXfrm.setOffY(props.Position.Y); + } } } - if (AscFormat.isRealBool(props.flipH)) { - objects_by_type.images[i].changeFlipH(props.flipH); - } - if (AscFormat.isRealBool(props.flipV)) { - objects_by_type.images[i].changeFlipV(props.flipV); - } - if (props.flipHInvert) { - objects_by_type.images[i].changeFlipH(!objects_by_type.images[i].flipH); - } - if (props.flipVInvert) { - objects_by_type.images[i].changeFlipV(!objects_by_type.images[i].flipV); - } - if (AscFormat.isRealNumber(props.rot)) { - objects_by_type.images[i].changeRot(AscFormat.normalizeRotate(props.rot)); - } - if (AscFormat.isRealNumber(props.rotAdd)) { - objects_by_type.images[i].changeRot(AscFormat.normalizeRotate(objects_by_type.images[i].rot + props.rotAdd)); - } - if (objects_by_type.images[i].group) { - checkObjectInArray(aGroups, objects_by_type.images[i].group.getMainGroup()); - } - objects_by_type.images[i].checkDrawingBaseCoords(); - } - if (bPosition) { - for (i = 0; i < objects_by_type.charts.length; ++i) { - CheckSpPrXfrm(objects_by_type.charts[i]); - if (AscFormat.isRealNumber(props.Position.X)) { - objects_by_type.charts[i].spPr.xfrm.setOffX(props.Position.X); - } - if (AscFormat.isRealNumber(props.Position.Y)) { - objects_by_type.charts[i].spPr.xfrm.setOffY(props.Position.Y); - } - if (objects_by_type.charts[i].group) { - checkObjectInArray(aGroups, objects_by_type.charts[i].group.getMainGroup()); - } - objects_by_type.charts[i].checkDrawingBaseCoords(); - } - var aSlicers = objects_by_type.slicers; - for (i = 0; i < aSlicers.length; ++i) { - var oSlicer = aSlicers[i]; - CheckSpPrXfrm(oSlicer); - if (AscFormat.isRealNumber(props.Position.X)) { - oSlicer.spPr.xfrm.setOffX(props.Position.X); - } - if (AscFormat.isRealNumber(props.Position.Y)) { - oSlicer.spPr.xfrm.setOffY(props.Position.Y); - } + if( nType === AscDFH.historyitem_type_Shape || + nType === AscDFH.historyitem_type_Cnx || + nType === AscDFH.historyitem_type_ImageShape || + nType === AscDFH.historyitem_type_GroupShape) { - if (oSlicer.group) { - checkObjectInArray(aGroups, oSlicer.group.getMainGroup()); + if (AscFormat.isRealBool(props.flipH)) { + oDrawing.changeFlipH(props.flipH); } - oSlicer.checkDrawingBaseCoords(); - oSlicer.recalculate(); - } - - var aSmartArts = objects_by_type.smartArts; - for (i = 0; i < aSmartArts.length; ++i) { - var oSmartArt = aSmartArts[i]; - CheckSpPrXfrm(oSmartArt); - if (AscFormat.isRealNumber(props.Position.X)) { - oSmartArt.spPr.xfrm.setOffX(props.Position.X); + if (AscFormat.isRealBool(props.flipV)) { + oDrawing.changeFlipV(props.flipV); } - if (AscFormat.isRealNumber(props.Position.Y)) { - oSmartArt.spPr.xfrm.setOffY(props.Position.Y); + if (props.flipHInvert) { + oDrawing.changeFlipH(!oDrawing.flipH); } - - if (oSmartArt.group) { - checkObjectInArray(aGroups, oSmartArt.group.getMainGroup()); + if (props.flipVInvert) { + oDrawing.changeFlipV(!oDrawing.flipV); } - oSmartArt.checkDrawingBaseCoords(); - oSmartArt.recalculate(); + if(oDrawing.canRotate()) { + if (AscFormat.isRealNumber(props.rotAdd)) { + oDrawing.changeRot(AscFormat.normalizeRotate(oDrawing.rot + props.rotAdd)); + } + if (AscFormat.isRealNumber(props.rot)) { + oDrawing.changeRot(AscFormat.normalizeRotate(props.rot)); + } + } + } + if (oDrawing.group) { + checkObjectInArray(aGroups, oDrawing.group.getMainGroup()); } + oDrawing.checkDrawingBaseCoords(); + oDrawing.recalculate(); } if (editorId === AscCommon.c_oEditorId.Presentation || editorId === AscCommon.c_oEditorId.Spreadsheet) { bCheckConnectors = true; @@ -4295,6 +4270,68 @@ if (!oChartSpace || !oProps) { return; } + if(oChartSpace.isChartEx()) { + + var oChart = oChartSpace.chart; + var oPlotArea = oChart.plotArea; + var nTitle = oProps.getTitle(), oTitle, bOverlay; + if (nTitle === c_oAscChartTitleShowSettings.none) { + if (oChart.title) { + oChart.setTitle(null); + } + } else if (nTitle === c_oAscChartTitleShowSettings.noOverlay + || nTitle === c_oAscChartTitleShowSettings.overlay) { + oTitle = oChart.title; + if (!oTitle) { + oTitle = new AscFormat.CTitle(); + oChart.setTitle(oTitle); + } + bOverlay = (nTitle === c_oAscChartTitleShowSettings.overlay); + if (oTitle.overlay !== bOverlay) { + oTitle.setOverlay(bOverlay); + } + } + + + var nLegend = oProps.getLegendPos(), oLegend; + bOverlay = (c_oAscChartLegendShowSettings.leftOverlay === nLegend || nLegend === c_oAscChartLegendShowSettings.rightOverlay); + if (bOverlay) { + if (c_oAscChartLegendShowSettings.leftOverlay === nLegend) { + nLegend = c_oAscChartLegendShowSettings.left; + } + if (c_oAscChartLegendShowSettings.rightOverlay === nLegend) { + nLegend = c_oAscChartLegendShowSettings.right; + } + } + if (nLegend !== null) { + if (nLegend === c_oAscChartLegendShowSettings.none) { + if (oChart.legend) { + oChart.setLegend(null); + } + } else { + oLegend = oChart.legend; + var bChange = false; + if (!oLegend) { + oLegend = new AscFormat.CLegend(); + oChart.setLegend(oLegend); + bChange = true; + } + if (oLegend.legendPos !== nLegend && nLegend !== c_oAscChartLegendShowSettings.layout) { + oLegend.setLegendPos(nLegend); + bChange = true; + } + if (oLegend.overlay !== bOverlay) { + oLegend.setOverlay(bOverlay); + bChange = true; + } + if (bChange) { + oLegend.setLayout(new AscFormat.CLayout()); + } + oChartSpace.checkElementChartStyle(oLegend); + } + } + return; + } var oApi = this.getEditorApi(); oChartSpace.resetSelection(true); if (this.selection && this.selection.chartSelection === oChartSpace) { @@ -4322,6 +4359,7 @@ //Set the properties which was already set. It needs for the fast coediting. TODO: check it oChartSpace.setChart(oChartSpace.chart.createDuplicate()); oChartSpace.setStyle(oChartSpace.style); + oChartSpace.setDisplayTrendlinesEquation(oProps.displayTrendlinesEquation); //Apply chart preset TODO: remove this when chartStyle will be implemented var oChart = oChartSpace.chart; @@ -4536,6 +4574,7 @@ } ret.putStyle(chart_space.getChartStyleIdx()); + ret.putDisplayTrendlinesEquation(chart_space.getDisplayTrendlinesEquation()); ret.putTitle(isRealObject(chart.title) ? (chart.title.overlay ? c_oAscChartTitleShowSettings.overlay : c_oAscChartTitleShowSettings.noOverlay) : c_oAscChartTitleShowSettings.none); @@ -4561,7 +4600,12 @@ var aPositions = chart_space.getPossibleDLblsPosition(); var nDefaultDatalabelsPos; nDefaultDatalabelsPos = aPositions[0]; - var oFirstChart = plot_area.charts[0]; + var oFirstChart; + if (plot_area.isChartEx()) { + oFirstChart = plot_area.plotAreaRegion + } else { + oFirstChart = plot_area.charts[0]; + } var aSeries = oFirstChart.series; var nSer, oSeries; var oFirstSeries = aSeries[0]; @@ -4716,6 +4760,7 @@ if (isRealObject(chart) && typeof chart["binary"] === "string" && chart["binary"].length > 0) { var asc_chart_binary = new Asc.asc_CChartBinary(); asc_chart_binary.asc_setBinary(chart["binary"]); + asc_chart_binary.asc_setIsChartEx(chart["IsChartEx"]); ret = asc_chart_binary.getChartSpace(editor.WordControl.m_oLogicDocument); if (ret.spPr && ret.spPr.xfrm) { ret.spPr.xfrm.setOffX(0); @@ -7648,6 +7693,13 @@ group_drawing_props.shapeProps.title = drawing.getTitle(); group_drawing_props.shapeProps.name = sOwnName; group_drawing_props.shapeProps.description = drawing.getDescription(); + group_drawing_props.shapeProps.w = drawing.extX; + group_drawing_props.shapeProps.h = drawing.extY; + group_drawing_props.shapeProps.rot = drawing.rot; + group_drawing_props.shapeProps.flipH = drawing.flipH; + group_drawing_props.shapeProps.flipV = drawing.flipV; + group_drawing_props.shapeProps.x = drawing.x; + group_drawing_props.shapeProps.y = drawing.y; } if (!shape_props) shape_props = group_drawing_props.shapeProps; @@ -7662,6 +7714,13 @@ group_drawing_props.shapeChartProps.title = drawing.getTitle(); group_drawing_props.shapeChartProps.name = sOwnName; group_drawing_props.shapeChartProps.description = drawing.getDescription(); + group_drawing_props.shapeChartProps.w = drawing.extX; + group_drawing_props.shapeChartProps.h = drawing.extY; + group_drawing_props.shapeChartProps.rot = drawing.rot; + group_drawing_props.shapeChartProps.flipH = drawing.flipH; + group_drawing_props.shapeChartProps.flipV = drawing.flipV; + group_drawing_props.shapeChartProps.x = drawing.x; + group_drawing_props.shapeChartProps.y = drawing.y; } if (!shape_chart_props) { shape_chart_props = group_drawing_props.shapeChartProps; @@ -7675,6 +7734,14 @@ group_drawing_props.imageProps.title = drawing.getTitle(); group_drawing_props.imageProps.name = sOwnName; group_drawing_props.imageProps.description = drawing.getDescription(); + + group_drawing_props.imageProps.w = drawing.extX; + group_drawing_props.imageProps.h = drawing.extY; + group_drawing_props.imageProps.rot = drawing.rot; + group_drawing_props.imageProps.flipH = drawing.flipH; + group_drawing_props.imageProps.flipV = drawing.flipV; + group_drawing_props.imageProps.x = drawing.x; + group_drawing_props.imageProps.y = drawing.y; } if (!image_props) image_props = group_drawing_props.imageProps; @@ -7718,6 +7785,14 @@ group_drawing_props.chartProps.title = drawing.getTitle(); group_drawing_props.chartProps.name = sOwnName; group_drawing_props.chartProps.description = drawing.getDescription(); + + group_drawing_props.chartProps.w = drawing.extX; + group_drawing_props.chartProps.h = drawing.extY; + group_drawing_props.chartProps.rot = drawing.rot; + group_drawing_props.chartProps.flipH = drawing.flipH; + group_drawing_props.chartProps.flipV = drawing.flipV; + group_drawing_props.chartProps.x = drawing.x; + group_drawing_props.chartProps.y = drawing.y; } if (!chart_props) { chart_props = group_drawing_props.chartProps; @@ -8551,7 +8626,19 @@ }; return Asc.editor.checkObjectsLock(aId, callback2); }, - + checkDrawingPartWithHistory: function () { + const api = Asc.editor; + const editorId = api && api.getEditorId(); + if (editorId === AscCommon.c_oEditorId.Spreadsheet) { + const objectsByType = this.getSelectedObjectsByTypes(true); + for (let i = 0; i < objectsByType.shapes.length; i++) { + objectsByType.shapes[i].checkDrawingPartWithHistory(); + } + for (let i = 0; i < objectsByType.smartArts.length; i++) { + objectsByType.smartArts[i].checkDrawingPartWithHistory(); + } + } + }, setGraphicObjectPropsCallBack: function (props, bUpdateSelection) { var apply_props; if (AscFormat.isRealNumber(props.Width) && AscFormat.isRealNumber(props.Height)) { @@ -8559,7 +8646,9 @@ } else { apply_props = props.ShapeProperties ? props.ShapeProperties : props; } - var objects_by_types = this.applyDrawingProps(apply_props); + + this.checkDrawingPartWithHistory(); + const objects_by_types = this.applyDrawingProps(apply_props); if (bUpdateSelection) { this.updateSelectionState(); this.recalculateCurPos(true, true); @@ -11074,9 +11163,9 @@ return null; } } - if (oSelectionState2.geometryObject) { + if (oSelectionState2.geometryObject && oSelectionState2.geometryObject.drawing) { if(oSelectionState1.geometryObject !== oSelectionState2.geometryObject) { - return getTextObj(oSelectionState2.geometryObject.getSpeechDescription() + " " + AscCommon.translateManager.getValue("selected")); + return getTextObj(oSelectionState2.geometryObject.drawing.getSpeechDescription() + " " + AscCommon.translateManager.getValue("selected")); } else { return null; @@ -11231,6 +11320,7 @@ window['AscFormat'].CalcLiterByLength = CalcLiterByLength; window['AscFormat'].fillImage = fillImage; window['AscFormat'].fSolveQuadraticEquation = fSolveQuadraticEquation; + window['AscFormat'].fGetMaxInscribedRectangle = fGetMaxInscribedRectangle; window['AscFormat'].fApproxEqual = fApproxEqual; window['AscFormat'].fCheckBoxIntersectionSegment = fCheckBoxIntersectionSegment; window['AscFormat'].CMathPainter = CMathPainter; diff --git a/common/Drawings/DrawingObjectsHandlers.js b/common/Drawings/DrawingObjectsHandlers.js index e9a28756c7..321ba6cfba 100644 --- a/common/Drawings/DrawingObjectsHandlers.js +++ b/common/Drawings/DrawingObjectsHandlers.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -338,6 +338,13 @@ function handleFloatObjects(drawingObjectsController, drawingArr, e, x, y, group case AscDFH.historyitem_type_OleObject: case AscDFH.historyitem_type_Cnx: case AscDFH.historyitem_type_LockedCanvas: + // annnots + case AscDFH.historyitem_type_Pdf_Annot_Ink: + case AscDFH.historyitem_type_Pdf_Annot_Circle: + case AscDFH.historyitem_type_Pdf_Annot_Square: + case AscDFH.historyitem_type_Pdf_Annot_Line: + case AscDFH.historyitem_type_Pdf_Annot_Polygon: + case AscDFH.historyitem_type_Pdf_Annot_Polyline: { ret = handleShapeImage(drawing, drawingObjectsController, e, x, y, group, pageIndex, bWord); break; @@ -349,6 +356,7 @@ function handleFloatObjects(drawingObjectsController, drawingArr, e, x, y, group } case AscDFH.historyitem_type_GroupShape: case AscDFH.historyitem_type_SmartArt: + case AscDFH.historyitem_type_Pdf_Annot_FreeText: { ret = handleGroup(drawing, drawingObjectsController, e, x, y, group, pageIndex, bWord); break; @@ -734,22 +742,23 @@ function handleGroup(drawing, drawingObjectsController, e, x, y, group, pageInde function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, group, pageIndex, bWord) { - var selector = group ? group : drawingObjectsController; - var bSeries = false; + let selector = group ? group : drawingObjectsController; + let bSeries = false; if(drawing.chartObj) { - var t = drawing.chartObj; - var sortCharts = t._sortChartsForDrawing(drawing); - var oCanvas = drawing.getCanvasContext(); - if( !Array.isArray(t.chart.sortZIndexPaths) || t.chart.sortZIndexPaths.length === 0) + let oChartDrawer = drawing.chartObj; + let sortCharts = oChartDrawer._sortChartsForDrawing(drawing); + let oCanvas = drawing.getCanvasContext(); + let oChartSelection = drawing.selection; + if(!oChartDrawer.chart || !Array.isArray(oChartDrawer.chart.sortZIndexPaths) || oChartDrawer.chart.sortZIndexPaths.length === 0) { for(var j = sortCharts.length - 1; j > -1; j--) { var id = sortCharts[j]; - var chartModel = t._getChartModelById(drawing.chart.plotArea, id); + var chartModel = oChartDrawer._getChartModelById(drawing.chart.plotArea, id); if(!chartModel) { continue; } - var oDrawChart = t.charts[id]; + var oDrawChart = oChartDrawer.charts[id]; var pointsPaths = oDrawChart.paths.points; if(Array.isArray(pointsPaths)) @@ -775,25 +784,25 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro if(bSeries) { - if(drawing.selection.chart === id && drawing.selection.series === k) + if(oChartSelection.chart === id && oChartSelection.series === k) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.markers = true; - drawing.selection.datPoint = l; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.markers = true; + oChartSelection.datPoint = l; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.markers = true; - drawing.selection.datPoint = null; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.markers = true; + oChartSelection.datPoint = null; } break; } @@ -830,44 +839,44 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro bSeries = true; if(bPie) { - if(drawing.selection.series === 0) + if(oChartSelection.series === 0) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = 0; - drawing.selection.datPoint = k; + oChartSelection.chart = id; + oChartSelection.series = 0; + oChartSelection.datPoint = k; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = 0; - drawing.selection.datPoint = null; + oChartSelection.chart = id; + oChartSelection.series = 0; + oChartSelection.datPoint = null; } } else { - if(drawing.selection.chart === id && drawing.selection.series === k) + if(oChartSelection.chart === id && oChartSelection.series === k) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.datPoint = l; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.datPoint = l; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.datPoint = null; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.datPoint = null; } } break; @@ -886,45 +895,45 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro bSeries = true; if(bPie) { - if(drawing.selection.series === 0) + if(oChartSelection.series === 0) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = 0; - drawing.selection.datPoint = k; + oChartSelection.chart = id; + oChartSelection.series = 0; + oChartSelection.datPoint = k; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = 0; - drawing.selection.datPoint = null; + oChartSelection.chart = id; + oChartSelection.series = 0; + oChartSelection.datPoint = null; } } else { - if(drawing.selection.chart === id && drawing.selection.series === k) + if(oChartSelection.chart === id && oChartSelection.series === k) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.datPoint = l; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.datPoint = l; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.datPoint = null; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.datPoint = null; } } break; @@ -988,44 +997,44 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro { if(bPie) { - if(drawing.selection.series === 0) + if(oChartSelection.series === 0) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = 0; - drawing.selection.datPoint = k; + oChartSelection.chart = id; + oChartSelection.series = 0; + oChartSelection.datPoint = k; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = 0; - drawing.selection.datPoint = null; + oChartSelection.chart = id; + oChartSelection.series = 0; + oChartSelection.datPoint = null; } } else { - if(drawing.selection.chart === id && drawing.selection.series === k) + if(oChartSelection.chart === id && oChartSelection.series === k) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.datPoint = l; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.datPoint = l; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.datPoint = null; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.datPoint = null; } } break; @@ -1047,23 +1056,23 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro bSeries = true; if(bPie) { - if(drawing.selection.series === 0) + if(oChartSelection.series === 0) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = 0; - drawing.selection.datPoint = k; + oChartSelection.chart = id; + oChartSelection.series = 0; + oChartSelection.datPoint = k; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.series = 0; - drawing.selection.datPoint = null; + oChartSelection.chart = id; + oChartSelection.series = 0; + oChartSelection.datPoint = null; } } else @@ -1071,10 +1080,10 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.plotArea = null; - drawing.selection.chart = id; - drawing.selection.series = k; - drawing.selection.datPoint = null; + oChartSelection.plotArea = null; + oChartSelection.chart = id; + oChartSelection.series = k; + oChartSelection.datPoint = null; } break; } @@ -1107,8 +1116,8 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.upBars = chartModel.upDownBars.upBars ; + oChartSelection.chart = id; + oChartSelection.upBars = chartModel.upDownBars.upBars ; break; } } @@ -1124,8 +1133,8 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.downBars = chartModel.upDownBars.downBars; + oChartSelection.chart = id; + oChartSelection.downBars = chartModel.upDownBars.downBars; break; } } @@ -1141,8 +1150,8 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.hiLowLines = chartModel.hiLowLines; + oChartSelection.chart = id; + oChartSelection.hiLowLines = chartModel.hiLowLines; break; } } @@ -1155,8 +1164,8 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = id; - drawing.selection.hiLowLines = chartModel.hiLowLines; + oChartSelection.chart = id; + oChartSelection.hiLowLines = chartModel.hiLowLines; break; } } @@ -1170,11 +1179,11 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro } else { - for(var i = t.chart.sortZIndexPaths.length - 1; i > -1; i--) { - var oPathsObject = t.chart.sortZIndexPaths[i]; - if(AscFormat.isRealNumber(t.chart.sortZIndexPaths[i].paths)) + for(var i = oChartDrawer.chart.sortZIndexPaths.length - 1; i > -1; i--) { + var oPathsObject = oChartDrawer.chart.sortZIndexPaths[i]; + if(AscFormat.isRealNumber(oChartDrawer.chart.sortZIndexPaths[i].paths)) { - var oPath = drawing.pathMemory.GetPath(t.chart.sortZIndexPaths[i].paths); + var oPath = drawing.pathMemory.GetPath(oChartDrawer.chart.sortZIndexPaths[i].paths); if(oPath.hitInInnerArea(oCanvas, dTx, dTy) || oPath.hitInPath(oCanvas, dTx, dTy)) { bSeries = true; } @@ -1182,16 +1191,16 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro else { - if(!bSeries && AscFormat.isRealNumber(t.chart.sortZIndexPaths[i].frontPaths)) + if(!bSeries && AscFormat.isRealNumber(oChartDrawer.chart.sortZIndexPaths[i].frontPaths)) { - var oPath = drawing.pathMemory.GetPath(t.chart.sortZIndexPaths[i].frontPaths); + var oPath = drawing.pathMemory.GetPath(oChartDrawer.chart.sortZIndexPaths[i].frontPaths); if(oPath.hitInInnerArea(oCanvas, dTx, dTy) || oPath.hitInPath(oCanvas, dTx, dTy)) { bSeries = true; } } - if(!bSeries && AscFormat.isRealNumber(t.chart.sortZIndexPaths[i].darkPaths)) + if(!bSeries && AscFormat.isRealNumber(oChartDrawer.chart.sortZIndexPaths[i].darkPaths)) { - var oPath = drawing.pathMemory.GetPath(t.chart.sortZIndexPaths[i].darkPaths); + var oPath = drawing.pathMemory.GetPath(oChartDrawer.chart.sortZIndexPaths[i].darkPaths); if(oPath.hitInInnerArea(oCanvas, dTx, dTy) || oPath.hitInPath(oCanvas, dTx, dTy)) { bSeries = true; } @@ -1199,23 +1208,23 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro } if(bSeries) { - if(drawing.selection.chart === t.chart.chart.Id && drawing.selection.series === t.chart.sortZIndexPaths[i].seria) + if(oChartSelection.chart === oChartDrawer.chart.chart.Id && oChartSelection.series === oChartDrawer.chart.sortZIndexPaths[i].seria) { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = t.chart.chart.Id; - drawing.selection.series = t.chart.sortZIndexPaths[i].seria; - drawing.selection.datPoint = t.chart.sortZIndexPaths[i].point; + oChartSelection.chart = oChartDrawer.chart.chart.Id; + oChartSelection.series = oChartDrawer.chart.sortZIndexPaths[i].seria; + oChartSelection.datPoint = oChartDrawer.chart.sortZIndexPaths[i].point; } else { selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.chart = t.chart.chart.Id; - drawing.selection.series = t.chart.sortZIndexPaths[i].seria; - drawing.selection.datPoint = null; + oChartSelection.chart = oChartDrawer.chart.chart.Id; + oChartSelection.series = oChartDrawer.chart.sortZIndexPaths[i].seria; + oChartSelection.datPoint = null; } break; } @@ -1225,11 +1234,11 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro if(!bSeries) { j = 0; - if(Array.isArray(t.axesChart)) + if(Array.isArray(oChartDrawer.axesChart)) { - for(j = 0; j < t.axesChart.length; ++j) + for(j = 0; j < oChartDrawer.axesChart.length; ++j) { - var oAxObj = t.axesChart[j]; + var oAxObj = oChartDrawer.axesChart[j]; if(oAxObj && oAxObj.paths) { if(oAxObj.axis && oAxObj.axis.compiledMajorGridLines && oAxObj.axis.compiledMajorGridLines.isVisible() @@ -1242,8 +1251,8 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.axis = oAxObj.axis; - drawing.selection.majorGridlines = true; + oChartSelection.axis = oAxObj.axis; + oChartSelection.majorGridlines = true; break; } } @@ -1257,8 +1266,8 @@ function handleChartElements(drawing, drawingObjectsController, e, dTx, dTy, gro selector.resetSelection(); selector.selectObject(drawing, pageIndex); selector.selection.chartSelection = drawing; - drawing.selection.axis = oAxObj.axis; - drawing.selection.minorGridlines = true; + oChartSelection.axis = oAxObj.axis; + oChartSelection.minorGridlines = true; break; } } diff --git a/common/Drawings/DrawingsChanges.js b/common/Drawings/DrawingsChanges.js index 6298695fce..107b97bd68 100644 --- a/common/Drawings/DrawingsChanges.js +++ b/common/Drawings/DrawingsChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -158,8 +158,8 @@ function CChangesDrawingsDouble2(Class, Type, OldPr, NewPr) { this.Type = Type; - var _OldPr = (AscFormat.isRealNumber(OldPr) || isNaN(OldPr)) ? OldPr : undefined; - var _NewPr = (AscFormat.isRealNumber(NewPr) || isNaN(NewPr)) ? NewPr : undefined; + var _OldPr = typeof OldPr === "number" ? OldPr : undefined; + var _NewPr = typeof NewPr === "number" ? NewPr : undefined; AscDFH.CChangesBaseDoubleProperty.call(this, Class, _OldPr, _NewPr); } diff --git a/common/Drawings/Externals.js b/common/Drawings/Externals.js index 82fbc96c02..b5e2ca98a0 100644 --- a/common/Drawings/Externals.js +++ b/common/Drawings/Externals.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -630,15 +630,15 @@ function checkAllFonts() { + if (undefined === window["__fonts_files"] && window["native"] && window["native"]["GenerateAllFonts"]) + window["native"]["GenerateAllFonts"](); + + if (undefined === window["__fonts_files"]) + return; + let g_font_files, g_font_infos; var files = window["__fonts_files"]; - if (!files && window["native"] && window["native"]["GenerateAllFonts"]) - { - // тогда должны быть глобальные переменные такие, без window - window["native"]["GenerateAllFonts"](); - files = window["__fonts_files"]; - } let count_files = files ? files.length : 0; g_font_files = new Array(count_files); diff --git a/common/Drawings/Format/ChartEx.js b/common/Drawings/Format/ChartEx.js new file mode 100644 index 0000000000..12d5ddf258 --- /dev/null +++ b/common/Drawings/Format/ChartEx.js @@ -0,0 +1,4548 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +(/** + * @param {Window} window + * @param {undefined} undefined + */ +function (window, undefined) { + + const drawingsChangesMap = window['AscDFH'].drawingsChangesMap; + const drawingContentChanges = window['AscDFH'].drawingContentChanges; + + const CChangesDrawingsBool = AscDFH.CChangesDrawingsBool; + const CChangesDrawingsLong = AscDFH.CChangesDrawingsLong; + const CChangesDrawingsString = AscDFH.CChangesDrawingsString; + const CChangesDrawingsContent = AscDFH.CChangesDrawingsContent; + const CChangesDrawingsObject = AscDFH.CChangesDrawingsObject; + const CChangesDrawingsObjectNoId = AscDFH.CChangesDrawingsObjectNoId; + const CChangesDrawingsDouble2 = AscDFH.CChangesDrawingsDouble2; + + // Address + drawingsChangesMap[AscDFH.historyitem_Address_SetAddress1] = function (oClass, value) { + oClass.address1 = value; + }; + drawingsChangesMap[AscDFH.historyitem_Address_SetCountryRegion] = function (oClass, value) { + oClass.countryRegion = value; + }; + drawingsChangesMap[AscDFH.historyitem_Address_SetAdminDistrict1] = function (oClass, value) { + oClass.adminDistrict1 = value; + }; + drawingsChangesMap[AscDFH.historyitem_Address_SetAdminDistrict2] = function (oClass, value) { + oClass.adminDistrict2 = value; + }; + drawingsChangesMap[AscDFH.historyitem_Address_SetPostalCode] = function (oClass, value) { + oClass.postalCode = value; + }; + drawingsChangesMap[AscDFH.historyitem_Address_SetLocality] = function (oClass, value) { + oClass.locality = value; + }; + drawingsChangesMap[AscDFH.historyitem_Address_SetISOCountryCode] = function (oClass, value) { + oClass.isoCountryCode = value; + }; + + AscDFH.changesFactory[AscDFH.historyitem_Address_SetAddress1] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Address_SetCountryRegion] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Address_SetAdminDistrict1] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Address_SetAdminDistrict2] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Address_SetPostalCode] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Address_SetLocality] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Address_SetISOCountryCode] = window['AscDFH'].CChangesDrawingsString; + + const SERIES_LAYOUT_BOX_WHISKER = 0; + const SERIES_LAYOUT_CLUSTERED_COLUMN = 1; + const SERIES_LAYOUT_FUNNEL = 2; + const SERIES_LAYOUT_PARETO_LINE = 3; + const SERIES_LAYOUT_REGION_MAP = 4; + const SERIES_LAYOUT_SUNBURST = 5; + const SERIES_LAYOUT_TREEMAP = 6; + const SERIES_LAYOUT_WATERFALL = 7; + + const DATA_LABEL_POS_BEST_FIT = 0; + const DATA_LABEL_POS_B = 1; + const DATA_LABEL_POS_CTR = 2; + const DATA_LABEL_POS_IN_BASE = 3; + const DATA_LABEL_POS_IN_END = 4; + const DATA_LABEL_POS_L = 5; + const DATA_LABEL_POS_OUT_END = 6; + const DATA_LABEL_POS_R = 7; + const DATA_LABEL_POS_T = 8; + + const PARENT_LABEL_LAYOUT_NONE = 0; + const PARENT_LABEL_LAYOUT_BANNER = 1; + const PARENT_LABEL_LAYOUT_OVERLAPPING = 2; + + const REGION_LABEL_LAYOUT_NONE = 0; + const REGION_LABEL_LAYOUT_BEST_FIT_ONLY = 1; + const REGION_LABEL_LAYOUT_SHOW_ALL = 2; + + const INTERVAL_CLOSED_SIDE_L = 0; + const INTERVAL_CLOSED_SIDE_R = 1; + + const AXIS_UNIT_HUNDREDS = 0; + const AXIS_UNIT_THOUSANDS = 1; + const AXIS_UNIT_TEN_THOUSANDS = 2; + const AXIS_UNIT_HUNDRED_THOUSANDS = 3; + const AXIS_UNIT_MILLIONS = 4; + const AXIS_UNIT_TEN_MILLIONS = 5; + const AXIS_UNIT_HUNDRED_MILLIONS = 6; + const AXIS_UNIT_BILLIONS = 7; + const AXIS_UNIT_TRILLIONS = 8; + const AXIS_UNIT_PERCENTAGE = 9; + + const SIDE_POS_L = 0; + const SIDE_POS_T = 1; + const SIDE_POS_R = 2; + const SIDE_POS_B = 3; + + const POS_ALIGN_MIN = 0; + const POS_ALIGN_CTR = 1; + const POS_ALIGN_MAX = 2; + + const TICK_MARKS_TYPE_IN = 0; + const TICK_MARKS_TYPE_OUT = 1; + const TICK_MARKS_TYPE_CROSS = 2; + const TICK_MARKS_TYPE_NONE = 3; + + const QUARTILE_METHOD_INCLUSIVE = 0; + const QUARTILE_METHOD_EXCLUSIVE = 1; + + const STRING_DIMENSION_TYPE_CAT = 10; + const STRING_DIMENSION_TYPE_COLOR_STR = 11; + + const NUMERIC_DIMENSION_TYPE_VAL = 0; + const NUMERIC_DIMENSION_TYPE_X = 1; + const NUMERIC_DIMENSION_TYPE_Y = 2; + const NUMERIC_DIMENSION_TYPE_SIZE = 3; + const NUMERIC_DIMENSION_TYPE_COLOR_VAL = 4; + + const FORMULA_DIRECTION_COL = 0; + const FORMULA_DIRECTION_ROW = 1; + +// Import + const History = AscCommon.History; + const InitClass = AscFormat.InitClass; + const CBaseChartObject = AscFormat.CBaseChartObject; + const CAxisBase = AscFormat.CAxisBase; + + function CAddress() { + CBaseChartObject.call(this); + this.address1 = null; + this.countryRegion = null; + this.adminDistrict1 = null; + this.adminDistrict2 = null; + this.postalCode = null; + this.locality = null; + this.isoCountryCode = null; + } + + InitClass(CAddress, CBaseChartObject, AscDFH.historyitem_type_Address); + + CAddress.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setAddress1(this.address1); + oCopy.setCountryRegion(this.countryRegion); + oCopy.setAdminDistrict1(this.adminDistrict1); + oCopy.setAdminDistrict2(this.adminDistrict2); + oCopy.setPostalCode(this.postalCode); + oCopy.setLocality(this.locality); + oCopy.setISOCountryCode(this.isoCountryCode); + }; + + CAddress.prototype.setAddress1 = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Address_SetAddress1, this.address1, pr)); + this.address1 = pr; + }; + CAddress.prototype.setCountryRegion = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Address_SetCountryRegion, this.countryRegion, pr)); + this.countryRegion = pr; + }; + CAddress.prototype.setAdminDistrict1 = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Address_SetAdminDistrict1, this.adminDistrict1, pr)); + this.adminDistrict1 = pr; + }; + CAddress.prototype.setAdminDistrict2 = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Address_SetAdminDistrict2, this.adminDistrict2, pr)); + this.adminDistrict2 = pr; + }; + CAddress.prototype.setPostalCode = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Address_SetPostalCode, this.postalCode, pr)); + this.postalCode = pr; + }; + CAddress.prototype.setLocality = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Address_SetLocality, this.locality, pr)); + this.locality = pr; + }; + CAddress.prototype.setISOCountryCode = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Address_SetISOCountryCode, this.isoCountryCode, pr)); + this.isoCountryCode = pr; + }; + + drawingsChangesMap[AscDFH.historyitem_Axis_SetUnits] = function (oClass, value) { + oClass.units = value; + }; + + drawingsChangesMap[AscDFH.historyitem_Axis_SetTickLabels] = function (oClass, value) { + oClass.tickLabels = value; + }; + + drawingsChangesMap[AscDFH.historyitem_Axis_SetHidden] = function (oClass, value) { + oClass.hidden = value; + }; + + AscDFH.changesFactory[AscDFH.historyitem_Axis_SetUnits] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Axis_SetTickLabels] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_Axis_SetHidden] = window['AscDFH'].CChangesDrawingsBool; + + function CAxis() { + CAxisBase.call(this); + this.units = null; + this.hidden = null; + + this.majorTickMark = null; + this.minorTickMark = null; + } + + InitClass(CAxis, CAxisBase, AscDFH.historyitem_type_Axis); + + CAxis.prototype.fillObject = function (oCopy) { + CAxisBase.prototype.fillObject.call(this, oCopy); + if (this.units) { + oCopy.setUnits(this.units.createDuplicate()); + } + oCopy.setTickLabels(this.tickLabels); + oCopy.setHidden(this.hidden); + }; + + // initialize the ax position, 0 is horizontal and 1 is vertical + CAxis.prototype.initializeAxPos = function (isVertAxis) { + const axPos = isVertAxis ? window['AscFormat'].AX_POS_L : window['AscFormat'].AX_POS_B; + CAxisBase.prototype.setAxPos.call(this, axPos); + } + + CAxis.prototype.setUnits = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Axis_SetUnits, this.units, pr)); + this.units = pr; + }; + + CAxis.prototype.getFormatCode = function () { + let oNumFmt = this.numFmt; + let sFormatCode = null; + + if (oNumFmt) { + if (oNumFmt.sourceLinked) { + return this.getSourceFormatCode(); + } + sFormatCode = oNumFmt.formatCode; + if (typeof sFormatCode === "string" && sFormatCode.length > 0) { + return sFormatCode; + } + } + return "General"; + }; + CAxis.prototype.setTickLabels = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_Axis_SetTickLabels, this.tickLabels, pr)); + this.tickLabels = pr; + }; + CAxis.prototype.setHidden = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_Axis_SetHidden, this.hidden, pr)); + this.hidden = pr; + }; + CAxis.prototype.isValuesAxis = function () { + return (this.scaling instanceof CValueAxisScaling); + }; + CAxis.prototype.isChartExCat = function() { + return (this.scaling instanceof CCategoryAxisScaling); + }; + CAxis.prototype.isChartEx = function() { + return true; + }; + + CAxis.prototype.isHorizontal = function() { + return !this.isVertical(); + }; + CAxis.prototype.isVertical = function() { + if(this.isChartExCat()) { + let oChartSpace = this.getChartSpace(); + if(oChartSpace) { + let aSeries = oChartSpace.getAllSeries(); + let oFirstSeries = aSeries[0]; + if(oFirstSeries && oFirstSeries.layoutId === AscFormat.SERIES_LAYOUT_FUNNEL) { + return true; + } + } + } + return this.isValuesAxis(); + }; + + // AxisUnits + drawingsChangesMap[AscDFH.historyitem_AxisUnits_SetUnitsLabel] = function (oClass, value) { + oClass.unitsLabel = value; + }; + drawingsChangesMap[AscDFH.historyitem_AxisUnits_SetUnit] = function (oClass, value) { + oClass.unit = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_AxisUnits_SetUnitsLabel] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_AxisUnits_SetUnit] = window['AscDFH'].CChangesDrawingsLong; + + function CAxisUnits() { + CBaseChartObject.call(this); + this.unitsLabel = null; + this.unit = null; + } + + InitClass(CAxisUnits, CBaseChartObject, AscDFH.historyitem_type_AxisUnits); + + CAxisUnits.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.unitsLabel) { + oCopy.setUnitsLabel(this.unitsLabel.createDuplicate()); + } + oCopy.setUnit(this.unit); + }; + CAxisUnits.prototype.setUnitsLabel = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_AxisUnits_SetUnitsLabel, this.unitsLabel, pr)); + this.unitsLabel = pr; + this.setParentToChild(pr); + }; + CAxisUnits.prototype.setUnit = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_AxisUnits_SetUnit, this.unit, pr)); + this.unit = pr; + }; + + // AxisUnitsLabel + drawingsChangesMap[AscDFH.historyitem_AxisUnitsLabel_SetTx] = function (oClass, value) { + oClass.tx = value; + }; + drawingsChangesMap[AscDFH.historyitem_AxisUnitsLabel_SetSpPr] = function (oClass, value) { + oClass.spPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_AxisUnitsLabel_SetTxPr] = function (oClass, value) { + oClass.txPr = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_AxisUnitsLabel_SetTx] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_AxisUnitsLabel_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_AxisUnitsLabel_SetTxPr] = window['AscDFH'].CChangesDrawingsObject; + + function CAxisUnitsLabel() { + CBaseChartObject.call(this); + this.tx = null; + this.spPr = null; + this.txPr = null; + } + + InitClass(CAxisUnitsLabel, CBaseChartObject, AscDFH.historyitem_type_AxisUnitsLabel); + + CAxisUnitsLabel.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.tx) { + oCopy.setTx(this.tx.createDuplicate()); + } + if (this.spPr) { + oCopy.setSpPr(this.spPr.createDuplicate()); + } + if (this.txPr) { + oCopy.setTxPr(this.txPr.createDuplicate()); + } + }; + + CAxisUnitsLabel.prototype.setTx = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_AxisUnitsLabel_SetTx, this.tx, pr)); + this.tx = pr; + this.setParentToChild(pr); + }; + CAxisUnitsLabel.prototype.setSpPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_AxisUnitsLabel_SetSpPr, this.spPr, pr)); + this.spPr = pr; + this.setParentToChild(pr); + }; + CAxisUnitsLabel.prototype.setTxPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_AxisUnitsLabel_SetTxPr, this.txPr, pr)); + this.txPr = pr; + this.setParentToChild(pr); + }; + + + // Binning + drawingsChangesMap[AscDFH.historyitem_Binning_SetBinSize] = function (oClass, value) { + oClass.binSize = value; + }; + drawingsChangesMap[AscDFH.historyitem_Binning_SetBinCount] = function (oClass, value) { + oClass.binCount = value; + }; + drawingsChangesMap[AscDFH.historyitem_Binning_SetIntervalClosed] = function (oClass, value) { + oClass.intervalClosed = value; + }; + drawingsChangesMap[AscDFH.historyitem_Binning_SetUnderflow] = function (oClass, value) { + oClass.underflow = value; + }; + drawingsChangesMap[AscDFH.historyitem_Binning_SetOverflow] = function (oClass, value) { + oClass.overflow = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_Binning_SetBinSize] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_Binning_SetBinCount] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Binning_SetIntervalClosed] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Binning_SetUnderflow] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_Binning_SetOverflow] = window['AscDFH'].CChangesDrawingsDouble2; + + function CBinning() { + CBaseChartObject.call(this); + this.binSize = null; + this.binCount = null; + this.intervalClosed = null; + this.underflow = null; + this.overflow = null; + } + + InitClass(CBinning, CBaseChartObject, AscDFH.historyitem_type_Binning); + + CBinning.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setBinSize(this.binSize); + oCopy.setBinCount(this.binCount); + oCopy.setIntervalClosed(this.intervalClosed); + oCopy.setUnderflow(this.underflow); + oCopy.setOverflow(this.overflow); + }; + + CBinning.prototype.setBinSize = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_Binning_SetBinSize, this.binSize, pr)); + this.binSize = pr; + }; + CBinning.prototype.setBinCount = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Binning_SetBinCount, this.binCount, pr)); + this.binCount = pr; + }; + CBinning.prototype.setIntervalClosed = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Binning_SetIntervalClosed, this.intervalClosed, pr)); + this.intervalClosed = pr; + }; + CBinning.prototype.setUnderflow = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_Binning_SetUnderflow, this.underflow, pr)); + this.underflow = pr; + }; + CBinning.prototype.setOverflow = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_Binning_SetOverflow, this.overflow, pr)); + this.overflow = pr; + }; + + + // CategoryAxisScaling + drawingsChangesMap[AscDFH.historyitem_CategoryAxisScaling_SetGapWidth] = function (oClass, value) { + oClass.gapWidth = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_CategoryAxisScaling_SetGapWidth] = window['AscDFH'].CChangesDrawingsDouble2; + + function CCategoryAxisScaling() { + CBaseChartObject.call(this); + this.gapWidth = null; + } + + InitClass(CCategoryAxisScaling, CBaseChartObject, AscDFH.historyitem_type_CategoryAxisScaling); + + CCategoryAxisScaling.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setGapWidth(this.gapWidth); + }; + + CCategoryAxisScaling.prototype.setGapWidth = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_CategoryAxisScaling_SetGapWidth, this.gapWidth, pr)); + this.gapWidth = pr; + + }; + + + + // ChartData + drawingsChangesMap[AscDFH.historyitem_ChartData_SetExternalData] = function (oClass, value) { + oClass.externalData = value; + }; + + drawingContentChanges[AscDFH.historyitem_ChartData_AddData] = + drawingContentChanges[AscDFH.historyitem_ChartData_RemoveData] = function (oClass) { + return oClass.data; + }; + AscDFH.changesFactory[AscDFH.historyitem_ChartData_SetExternalData] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ChartData_AddData] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_ChartData_RemoveData] = window['AscDFH'].CChangesDrawingsContent; + + function CChartData() { + CBaseChartObject.call(this); + this.externalData = null; + this.data = []; + } + + InitClass(CChartData, CBaseChartObject, AscDFH.historyitem_type_ChartData); + + CChartData.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.externalData) { + oCopy.setExternalData(this.externalData.createDuplicate()); + } + if (this.data) { + for (let i = 0; i < this.data.length; i++) { + oCopy.addData(this.data[i].createDuplicate(), i); + } + } + }; + + CChartData.prototype.setExternalData = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartData_SetExternalData, this.externalData, pr)); + this.externalData = pr; + this.setParentToChild(pr); + }; + CChartData.prototype.addData = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.data.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_ChartData_AddData, pos, [pr], true)); + this.data.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CChartData.prototype.removeDataByPos = function (pos) { + if (this.data[pos]) { + let data = this.data.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_ChartData_RemoveData, pos, [data], false)); + } + }; + CChartData.prototype.updateReferences = function (bDisplayEmptyCellsAs, bDisplayHidden) { + for (let nData = 0; nData < this.data.length; ++nData) { + this.data[nData].updateReferences(bDisplayEmptyCellsAs, bDisplayHidden); + } + }; + CChartData.prototype.getData = function (id) { + for (let nData = 0; nData < this.data.length; ++nData) { + let oData = this.data[nData]; + if (oData.id === id) { + return oData; + } + } + return null; + }; + + // Clear (no in ChartSerializeEx.h) + drawingsChangesMap[AscDFH.historyitem_Clear_SetGeoLocationQueryResults] = function (oClass, value) { + oClass.geoLocationQueryResults = value; + }; + drawingsChangesMap[AscDFH.historyitem_Clear_SetGeoDataEntityQueryResults] = function (oClass, value) { + oClass.geoDataEntityQueryResults = value; + }; + drawingsChangesMap[AscDFH.historyitem_Clear_SetGeoDataPointToEntityQueryResults] = function (oClass, value) { + oClass.geoDataPointToEntityQueryResults = value; + }; + drawingsChangesMap[AscDFH.historyitem_Clear_SetGeoChildEntitiesQueryResults] = function (oClass, value) { + oClass.geoChildEntitiesQueryResults = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_Clear_SetGeoLocationQueryResults] = window['AscDFH'].CChangesDrawingsObjectNoId; + AscDFH.changesFactory[AscDFH.historyitem_Clear_SetGeoDataEntityQueryResults] = window['AscDFH'].CChangesDrawingsObjectNoId; + AscDFH.changesFactory[AscDFH.historyitem_Clear_SetGeoDataPointToEntityQueryResults] = window['AscDFH'].CChangesDrawingsObjectNoId; + AscDFH.changesFactory[AscDFH.historyitem_Clear_SetGeoChildEntitiesQueryResults] = window['AscDFH'].CChangesDrawingsObjectNoId; + + function CClear() { + CBaseChartObject.call(this); + this.geoLocationQueryResults = null; + this.geoDataEntityQueryResults = null; + this.geoDataPointToEntityQueryResults = null; + this.geoChildEntitiesQueryResults = null; + } + + InitClass(CClear, CBaseChartObject, AscDFH.historyitem_type_Clear); + + CClear.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoLocationQueryResults) { + oCopy.setGeoLocationQueryResults(this.geoLocationQueryResults.createDuplicate()); + } + if (this.geoDataEntityQueryResults) { + oCopy.setGeoDataEntityQueryResults(this.geoDataEntityQueryResults.createDuplicate()); + } + if (this.geoDataPointToEntityQueryResults) { + oCopy.setGeoDataPointToEntityQueryResults(this.geoDataPointToEntityQueryResults.createDuplicate()); + } + if (this.geoChildEntitiesQueryResults) { + oCopy.setGeoChildEntitiesQueryResults(this.geoChildEntitiesQueryResults.createDuplicate()); + } + }; + + CClear.prototype.setGeoLocationQueryResults = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObjectNoId(this, AscDFH.historyitem_Clear_SetGeoLocationQueryResults, this.geoLocationQueryResults, pr)); + this.geoLocationQueryResults = pr; + this.setParentToChild(pr); + }; + CClear.prototype.setGeoDataEntityQueryResults = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObjectNoId(this, AscDFH.historyitem_Clear_SetGeoDataEntityQueryResults, this.geoDataEntityQueryResults, pr)); + this.geoDataEntityQueryResults = pr; + this.setParentToChild(pr); + }; + CClear.prototype.setGeoDataPointToEntityQueryResults = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObjectNoId(this, AscDFH.historyitem_Clear_SetGeoDataPointToEntityQueryResults, this.geoDataPointToEntityQueryResults, pr)); + this.geoDataPointToEntityQueryResults = pr; + this.setParentToChild(pr); + }; + CClear.prototype.setGeoChildEntitiesQueryResults = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Clear_SetGeoChildEntitiesQueryResults, this.geoChildEntitiesQueryResults, pr)); + this.geoChildEntitiesQueryResults = pr; + this.setParentToChild(pr); + }; + + + drawingsChangesMap[AscDFH.historyitem_Copyrights_SetCopyright] = function (oClass, value) { + oClass.copyright = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_Copyrights_SetCopyright] = window['AscDFH'].CChangesDrawingsString; + + function CCopyrights() { + CBaseChartObject.call(this); + this.copyright = null; + } + + InitClass(CCopyrights, CBaseChartObject, AscDFH.historyitem_type_Copyrights); + + CCopyrights.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setCopyright(this.copyright); + }; + + CCopyrights.prototype.setCopyright = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Copyrights_SetCopyright, this.copyright, pr)); + this.copyright = pr; + }; + + + // Data + + drawingsChangesMap[AscDFH.historyitem_Data_SetId] = function (oClass, value) { + oClass.id = value; + }; + + drawingContentChanges[AscDFH.historyitem_Data_AddDimension] = + drawingContentChanges[AscDFH.historyitem_Data_RemoveDimension] = function (oClass) { + return oClass.dimension; + }; + AscDFH.changesFactory[AscDFH.historyitem_Data_SetId] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Data_AddDimension] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_Data_RemoveDimension] = window['AscDFH'].CChangesDrawingsContent; + + function CData() { + CBaseChartObject.call(this); + // field dimension instead of numDim,strDim (ChartSerializeEx.h) + // this.numDim = null; + // this.strDim = null; + this.dimension = []; + this.id = null; + } + + InitClass(CData, CBaseChartObject, AscDFH.historyitem_type_Data); + + CData.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.dimension) { + for (let i = 0; i < this.dimension.length; i++) { + oCopy.addDimension(this.dimension[i].createDuplicate(), i); + } + } + oCopy.setId(this.id); + }; + + CData.prototype.addDimension = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.dimension.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_Data_AddDimension, pos, [pr], true)); + this.dimension.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CData.prototype.removeDimensionByPos = function (pos) { + if (this.dimension[pos]) { + let dimension = this.dimension.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_Data_RemoveDimension, pos, [dimension], false)); + } + }; + CData.prototype.setId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Data_SetId, this.id, pr)); + this.id = pr; + }; + CData.prototype.updateReferences = function (bDisplayEmptyCellsAs, bDisplayHidden) { + for (let nDim = 0; nDim < this.dimension.length; ++nDim) { + this.dimension[nDim].updateReferences(bDisplayEmptyCellsAs, bDisplayHidden) + } + }; + CData.prototype.getValDimensions = function () { + let aRes = []; + for (let nDim = 0; nDim < this.dimension.length; ++nDim) { + let oDim = this.dimension[nDim]; + if ((oDim instanceof CNumericDimension) && oDim.type === AscFormat.NUMERIC_DIMENSION_TYPE_VAL) { + aRes.push(oDim); + } + } + return aRes; + }; + CData.prototype.getCatDimensions = function () { + let aRes = []; + for (let nDim = 0; nDim < this.dimension.length; ++nDim) { + let oDim = this.dimension[nDim]; + if ((oDim instanceof CStringDimension) && oDim.type === AscFormat.STRING_DIMENSION_TYPE_CAT) { + aRes.push(oDim); + } + } + return aRes; + }; + + + // // DataId (int field instead class in ChartSerializeEx.h) + // drawingsChangesMap[AscDFH.historyitem_DataId_SetVal] = function (oClass, value) { + // oClass.val = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_DataId_SetVal] = window['AscDFH'].CChangesDrawingsString; + // function CDataId() { + // CBaseChartObject.call(this); + // this.val = null; + // } + + // InitClass(CDataId, CBaseChartObject, AscDFH.historyitem_type_DataId); + + // CDataId.prototype.setVal = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_DataId_SetVal, this.val, pr)); + // this.val = pr; + // }; + // + + // DataLabel + drawingsChangesMap[AscDFH.historyitem_DataLabel_SetNumFmt] = function (oClass, value) { + oClass.numFmt = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabel_SetSpPr] = function (oClass, value) { + oClass.spPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabel_SetTxPr] = function (oClass, value) { + oClass.txPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabel_SetVisibility] = function (oClass, value) { + oClass.visibility = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabel_SetSeparator] = function (oClass, value) { + oClass.separator = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabel_SetIdx] = function (oClass, value) { + oClass.idx = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabel_SetPos] = function (oClass, value) { + oClass.pos = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_DataLabel_SetNumFmt] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabel_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabel_SetTxPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabel_SetVisibility] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabel_SetSeparator] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_DataLabel_SetIdx] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_DataLabel_SetPos] = window['AscDFH'].CChangesDrawingsLong; + + function CDataLabel() { + CBaseChartObject.call(this); + this.numFmt = null; + this.spPr = null; + this.txPr = null; + this.visibility = null; + this.separator = null; + this.idx = null; + this.pos = null; + } + + InitClass(CDataLabel, CBaseChartObject, AscDFH.historyitem_type_DataLabel); + + CDataLabel.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.numFmt) { + oCopy.setNumFmt(this.numFmt.createDuplicate()); + } + if (this.spPr) { + oCopy.setSpPr(this.spPr.createDuplicate()); + } + if (this.txPr) { + oCopy.setTxPr(this.txPr.createDuplicate()); + } + if (this.visibility) { + oCopy.setVisibility(this.visibility.createDuplicate()); + } + oCopy.setSeparator(this.separator); + oCopy.setPos(this.pos); + oCopy.setIdx(this.idx); + }; + + CDataLabel.prototype.setNumFmt = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabel_SetNumFmt, this.numFmt, pr)); + this.numFmt = pr; + this.setParentToChild(pr); + }; + CDataLabel.prototype.setSpPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabel_SetSpPr, this.spPr, pr)); + this.spPr = pr; + this.setParentToChild(pr); + }; + CDataLabel.prototype.setTxPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabel_SetTxPr, this.txPr, pr)); + this.txPr = pr; + this.setParentToChild(pr); + }; + CDataLabel.prototype.setVisibility = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabel_SetVisibility, this.visibility, pr)); + this.visibility = pr; + this.setParentToChild(pr); + }; + CDataLabel.prototype.setSeparator = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_DataLabel_SetSeparator, this.separator, pr)); + this.separator = pr; + }; + CDataLabel.prototype.setIdx = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_DataLabel_SetIdx, this.idx, pr)); + this.idx = pr; + }; + CDataLabel.prototype.setPos = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_DataLabel_SetPos, this.pos, pr)); + this.pos = pr; + }; + + + // DataLabelHidden + drawingsChangesMap[AscDFH.historyitem_DataLabelHidden_SetIdx] = function (oClass, value) { + oClass.idx = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_DataLabelHidden_SetIdx] = window['AscDFH'].CChangesDrawingsLong; + + function CDataLabelHidden() { + CBaseChartObject.call(this); + this.idx = null; + } + + InitClass(CDataLabelHidden, CBaseChartObject, AscDFH.historyitem_type_DataLabelHidden); + + CDataLabelHidden.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setIdx(this.idx); + }; + + CDataLabelHidden.prototype.setIdx = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_DataLabelHidden_SetIdx, this.idx, pr)); + this.idx = pr; + }; + + + // DataLabels + drawingsChangesMap[AscDFH.historyitem_DataLabels_SetNumFmt] = function (oClass, value) { + oClass.numFmt = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabels_SetSpPr] = function (oClass, value) { + oClass.spPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabels_SetTxPr] = function (oClass, value) { + oClass.txPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabels_SetVisibility] = function (oClass, value) { + oClass.visibility = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabels_SetSeparator] = function (oClass, value) { + oClass.separator = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabels_SetDataLabel] = function (oClass, value) { + oClass.dataLabel = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabels_SetPos] = function (oClass, value) { + oClass.pos = value; + }; + + drawingContentChanges[AscDFH.historyitem_DataLabels_AddDataLabel] = + drawingContentChanges[AscDFH.historyitem_DataLabels_RemoveDataLabel] = function (oClass) { + return oClass.dataLabel; + }; + + drawingContentChanges[AscDFH.historyitem_DataLabels_AddDataLabelHidden] = + drawingContentChanges[AscDFH.historyitem_DataLabels_RemoveDataLabelHidden] = function (oClass) { + return oClass.dataLabelHidden; + }; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_SetNumFmt] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_SetTxPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_SetVisibility] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_SetSeparator] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_SetDataLabel] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_SetPos] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_AddDataLabel] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_RemoveDataLabel] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_AddDataLabelHidden] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_DataLabels_RemoveDataLabelHidden] = window['AscDFH'].CChangesDrawingsContent; + + function CDataLabels() { + CBaseChartObject.call(this); + this.numFmt = null; + this.spPr = null; + this.txPr = null; + this.visibility = null; + this.separator = null; + this.dataLabel = []; + this.dataLabelHidden = []; + this.pos = null; + } + + InitClass(CDataLabels, CBaseChartObject, AscDFH.historyitem_type_DataLabels); + + CDataLabels.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.numFmt) { + oCopy.setNumFmt(this.numFmt.createDuplicate()); + } + if (this.spPr) { + oCopy.setSpPr(this.spPr.createDuplicate()); + } + if (this.txPr) { + oCopy.setTxPr(this.txPr.createDuplicate()); + } + if (this.visibility) { + oCopy.setVisibility(this.visibility.createDuplicate()); + } + if (this.dataLabel) { + for (let i = 0; i < this.dataLabel.length; i++) { + oCopy.addDataLabel(this.dataLabel[i].createDuplicate(), i); + } + } + if (this.dataLabelHidden) { + for (let i = 0; i < this.dataLabelHidden.length; i++) { + oCopy.addDataLabelHidden(this.dataLabelHidden[i].createDuplicate(), i); + } + } + oCopy.setPos(this.pos); + }; + + CDataLabels.prototype.setNumFmt = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabels_SetNumFmt, this.numFmt, pr)); + this.numFmt = pr; + this.setParentToChild(pr); + }; + CDataLabels.prototype.setSpPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabels_SetSpPr, this.spPr, pr)); + this.spPr = pr; + this.setParentToChild(pr); + }; + CDataLabels.prototype.setTxPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabels_SetTxPr, this.txPr, pr)); + this.txPr = pr; + this.setParentToChild(pr); + }; + CDataLabels.prototype.setVisibility = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabels_SetVisibility, this.visibility, pr)); + this.visibility = pr; + this.setParentToChild(pr); + }; + CDataLabels.prototype.setSeparator = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_DataLabels_SetSeparator, this.separator, pr)); + this.separator = pr; + }; + CDataLabels.prototype.setDataLabel = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataLabels_SetDataLabel, this.dataLabel, pr)); + this.dataLabel = pr; + this.setParentToChild(pr); + }; + CDataLabels.prototype.addDataLabel = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.dataLabel.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_DataLabels_AddDataLabel, pos, [pr], true)); + this.dataLabel.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CDataLabels.prototype.removeDataLabelByPos = function (pos) { + if (this.dataLabel[pos]) { + let dataLabel = this.dataLabel.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_DataLabels_RemoveDataLabel, pos, [dataLabel], false)); + } + }; + CDataLabels.prototype.addDataLabelHidden = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.dataLabelHidden.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_DataLabels_AddDataLabelHidden, pos, [pr], true)); + this.dataLabelHidden.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CDataLabels.prototype.removeDataLabelHiddenByPos = function (pos) { + if (this.dataLabelHidden[pos]) { + let dataLabelHidden = this.dataLabelHidden.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_DataLabels_RemoveDataLabelHidden, pos, [dataLabelHidden], false)); + } + }; + CDataLabels.prototype.setPos = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_DataLabels_SetPos, this.pos, pr)); + this.pos = pr; + }; + + + // DataLabelVisibilities + drawingsChangesMap[AscDFH.historyitem_DataLabelVisibilities_SetSeriesName] = function (oClass, value) { + oClass.seriesName = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabelVisibilities_SetCategoryName] = function (oClass, value) { + oClass.categoryName = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataLabelVisibilities_SetValue] = function (oClass, value) { + oClass.value = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_DataLabelVisibilities_SetSeriesName] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_DataLabelVisibilities_SetCategoryName] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_DataLabelVisibilities_SetValue] = window['AscDFH'].CChangesDrawingsBool; + + function CDataLabelVisibilities() { + CBaseChartObject.call(this); + this.seriesName = null; + this.categoryName = null; + this.value = null; + } + + InitClass(CDataLabelVisibilities, CBaseChartObject, AscDFH.historyitem_type_DataLabelVisibilities); + + CDataLabelVisibilities.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setSeriesName(this.seriesName); + oCopy.setCategoryName(this.categoryName); + oCopy.setValue(this.value); + }; + + CDataLabelVisibilities.prototype.setSeriesName = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_DataLabelVisibilities_SetSeriesName, this.seriesName, pr)); + this.seriesName = pr; + }; + CDataLabelVisibilities.prototype.setCategoryName = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_DataLabelVisibilities_SetCategoryName, this.categoryName, pr)); + this.categoryName = pr; + }; + CDataLabelVisibilities.prototype.setValue = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_DataLabelVisibilities_SetValue, this.value, pr)); + this.value = pr; + }; + + + // DataPoint + drawingsChangesMap[AscDFH.historyitem_DataPoint_SetSpPr] = function (oClass, value) { + oClass.spPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_DataPoint_SetIdx] = function (oClass, value) { + oClass.idx = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_DataPoint_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_DataPoint_SetIdx] = window['AscDFH'].CChangesDrawingsLong; + + function CDataPoint() { + CBaseChartObject.call(this); + this.spPr = null; + this.idx = null; + } + + InitClass(CDataPoint, CBaseChartObject, AscDFH.historyitem_type_DataPoint); + + CDataPoint.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.spPr) { + oCopy.setSpPr(this.spPr.createDuplicate()); + } + oCopy.setIdx(this.idx); + }; + + CDataPoint.prototype.setSpPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_DataPoint_SetSpPr, this.spPr, pr)); + this.spPr = pr; + this.setParentToChild(pr); + }; + CDataPoint.prototype.setIdx = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_DataPoint_SetIdx, this.idx, pr)); + this.idx = pr; + }; + + + // // Extension (Extensionlist is unused in ChartSerializeEx.h) + // drawingsChangesMap[AscDFH.historyitem_Extension_SetUri] = function (oClass, value) { + // oClass.uri = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_Extension_SetUri] = window['AscDFH'].CChangesDrawingsString; + // function CExtension() { + // CBaseChartObject.call(this); + // this.uri = null; + // } + + // InitClass(CExtension, CBaseChartObject, AscDFH.historyitem_type_Extension); + + // CExtension.prototype.setUri = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Extension_SetUri, this.uri, pr)); + // this.uri = pr; + // }; + // + + // // ExtensionList (OOX::Drawing::COfficeArtExtensionList instead of CExtensionList) + // drawingsChangesMap[AscDFH.historyitem_ExtensionList_SetExt] = function (oClass, value) { + // oClass.ext = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_ExtensionList_SetExt] = window['AscDFH'].CChangesDrawingsString; + // function CExtensionList() { + // CBaseChartObject.call(this); + // this.ext = null; + // } + + // InitClass(CExtensionList, CBaseChartObject, AscDFH.historyitem_type_ExtensionList); + + // CExtensionList.prototype.setExt = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_ExtensionList_SetExt, this.ext, pr)); + // this.ext = pr; + // }; + // + + // // ExternalData (contains in ChartFormat.js) + // drawingsChangesMap[AscDFH.historyitem_ExternalData_SetId] = function (oClass, value) { + // oClass.id = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_ExternalData_SetAutoUpdate] = function (oClass, value) { + // oClass.autoUpdate = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_ExternalData_SetId] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_ExternalData_SetAutoUpdate] = window['AscDFH'].CChangesDrawingsBool; + // function CExternalData() { + // CBaseChartObject.call(this); + // this.id = null; + // this.autoUpdate = null; + // } + + // InitClass(CExternalData, CBaseChartObject, AscDFH.historyitem_type_ExternalData); + + // CExternalData.prototype.setId = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_ExternalData_SetId, this.id, pr)); + // this.id = pr; + // }; + // CExternalData.prototype.setAutoUpdate = function (pr) { + // History.CanAddChanges() && History.Add(CChangesDrawingsBool(this, AscDFH.historyitem_ExternalData_SetAutoUpdate, this.autoUpdate, pr)); + // this.autoUpdate = pr; + // }; + // + + // FormatOverride (no in ChartSerializeEx.h) + drawingsChangesMap[AscDFH.historyitem_FormatOverride_SetSpPr] = function (oClass, value) { + oClass.spPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_FormatOverride_SetIdx] = function (oClass, value) { + oClass.idx = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_FormatOverride_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_FormatOverride_SetIdx] = window['AscDFH'].CChangesDrawingsLong; + + function CFormatOverride() { + CBaseChartObject.call(this); + this.spPr = null; + this.idx = null; + } + + InitClass(CFormatOverride, CBaseChartObject, AscDFH.historyitem_type_FormatOverride); + + CFormatOverride.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.spPr) { + oCopy.setSpPr(this.spPr.createDuplicate()); + } + oCopy.setIdx(this.idx); + }; + + CFormatOverride.prototype.setSpPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_FormatOverride_SetSpPr, this.spPr, pr)); + this.spPr = pr; + this.setParentToChild(pr); + }; + CFormatOverride.prototype.setIdx = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_FormatOverride_SetIdx, this.idx, pr)); + this.idx = pr; + }; + + + // FormatOverrides (no in ChartSerializeEx.h) + drawingsChangesMap[AscDFH.historyitem_FormatOverrides_SetFmtOvr] = function (oClass, value) { + oClass.fmtOvr = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_FormatOverrides_SetFmtOvr] = window['AscDFH'].CChangesDrawingsObject; + + function CFormatOverrides() { + CBaseChartObject.call(this); + this.fmtOvr = null; + } + + InitClass(CFormatOverrides, CBaseChartObject, AscDFH.historyitem_type_FormatOverrides); + + CFormatOverrides.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.fmtOvr) { + oCopy.setFmtOvr(this.fmtOvr.createDuplicate()); + } + }; + + CFormatOverrides.prototype.setFmtOvr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_FormatOverrides_SetFmtOvr, this.fmtOvr, pr)); + this.fmtOvr = pr; + this.setParentToChild(pr); + }; + + + // Formula + drawingsChangesMap[AscDFH.historyitem_Formula_SetDir] = function (oClass, value) { + oClass.dir = value; + }; + drawingsChangesMap[AscDFH.historyitem_Formula_SetContent] = function (oClass, value) { + oClass.content = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_Formula_SetDir] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Formula_SetContent] = window['AscDFH'].CChangesDrawingsString; + + function CFormula() { + CBaseChartObject.call(this); + this.dir = null; + this.content = null; + } + + InitClass(CFormula, CBaseChartObject, AscDFH.historyitem_type_Formula); + + CFormula.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setDir(this.dir); + oCopy.setContent(this.content); + }; + + CFormula.prototype.setDir = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Formula_SetDir, this.dir, pr)); + this.dir = pr; + }; + CFormula.prototype.setContent = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Formula_SetContent, this.content, pr)); + this.content = pr; + }; + + + // GeoCache + drawingsChangesMap[AscDFH.historyitem_GeoCache_SetBinary] = function (oClass, value) { + oClass.binary = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoCache_SetClear] = function (oClass, value) { + oClass.clear = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoCache_SetProvider] = function (oClass, value) { + oClass.provider = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoCache_SetBinary] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoCache_SetClear] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoCache_SetProvider] = window['AscDFH'].CChangesDrawingsString; + + function CGeoCache() { + CBaseChartObject.call(this); + this.binary = null; + this.clear = null; + this.provider = null; + } + + InitClass(CGeoCache, CBaseChartObject, AscDFH.historyitem_type_GeoCache); + + CGeoCache.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.clear) { + oCopy.setClear(this.clear.createDuplicate()); + } + oCopy.setBinary(this.binary); + oCopy.setProvider(this.provider); + }; + + CGeoCache.prototype.setBinary = function (pr) { // todo base64binary type + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoCache_SetBinary, this.binary, pr)); + this.binary = pr; + }; + CGeoCache.prototype.setClear = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoCache_SetClear, this.clear, pr)); + this.clear = pr; + this.setParentToChild(pr); + }; + CGeoCache.prototype.setProvider = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoCache_SetProvider, this.provider, pr)); + this.provider = pr; + }; + + + // GeoChildEntities + drawingsChangesMap[AscDFH.historyitem_GeoChildEntities_SetGeoHierarchyEntity] = function (oClass, value) { + oClass.geoHierarchyEntity = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoChildEntities_SetGeoHierarchyEntity] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoChildEntities() { + CBaseChartObject.call(this); + this.geoHierarchyEntity = null; + } + + InitClass(CGeoChildEntities, CBaseChartObject, AscDFH.historyitem_type_GeoChildEntities); + + CGeoChildEntities.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoHierarchyEntity) { + oCopy.setGeoHierarchyEntity(this.geoHierarchyEntity.createDuplicate()); + } + }; + + CGeoChildEntities.prototype.setGeoHierarchyEntity = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoChildEntities_SetGeoHierarchyEntity, this.geoHierarchyEntity, pr)); + this.geoHierarchyEntity = pr; + this.setParentToChild(pr); + }; + + + // GeoChildEntitiesQuery + drawingsChangesMap[AscDFH.historyitem_GeoChildEntitiesQuery_SetGeoChildTypes] = function (oClass, value) { + oClass.geoChildTypes = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoChildEntitiesQuery_SetEntityId] = function (oClass, value) { + oClass.entityId = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoChildEntitiesQuery_SetGeoChildTypes] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoChildEntitiesQuery_SetEntityId] = window['AscDFH'].CChangesDrawingsString; + + function CGeoChildEntitiesQuery() { + CBaseChartObject.call(this); + this.geoChildTypes = null; + this.entityId = null; + } + + InitClass(CGeoChildEntitiesQuery, CBaseChartObject, AscDFH.historyitem_type_GeoChildEntitiesQuery); + + CGeoChildEntitiesQuery.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoChildTypes) { + oCopy.setGeoChildTypes(this.geoChildTypes.createDuplicate()); + } + oCopy.setEntityId(this.entityId); + }; + + CGeoChildEntitiesQuery.prototype.setGeoChildTypes = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoChildEntitiesQuery_SetGeoChildTypes, this.geoChildTypes, pr)); + this.geoChildTypes = pr; + this.setParentToChild(pr); + }; + CGeoChildEntitiesQuery.prototype.setEntityId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoChildEntitiesQuery_SetEntityId, this.entityId, pr)); + this.entityId = pr; + }; + + + // GeoChildEntitiesQueryResult + drawingsChangesMap[AscDFH.historyitem_GeoChildEntitiesQueryResult_SetGeoChildEntitiesQuery] = function (oClass, value) { + oClass.geoChildEntitiesQuery = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoChildEntitiesQueryResult_SetGeoChildEntities] = function (oClass, value) { + oClass.geoChildEntities = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoChildEntitiesQueryResult_SetGeoChildEntitiesQuery] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoChildEntitiesQueryResult_SetGeoChildEntities] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoChildEntitiesQueryResult() { + CBaseChartObject.call(this); + this.geoChildEntitiesQuery = null; + this.geoChildEntities = null; + } + + InitClass(CGeoChildEntitiesQueryResult, CBaseChartObject, AscDFH.historyitem_type_GeoChildEntitiesQueryResult); + + CGeoChildEntitiesQueryResult.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoChildEntities) { + oCopy.setGeoChildEntities(this.geoChildEntities.createDuplicate()); + } + if (this.geoChildEntitiesQuery) { + oCopy.setGeoChildEntitiesQuery(this.geoChildEntitiesQuery.createDuplicate()); + } + }; + + CGeoChildEntitiesQueryResult.prototype.setGeoChildEntitiesQuery = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoChildEntitiesQueryResult_SetGeoChildEntitiesQuery, this.geoChildEntitiesQuery, pr)); + this.geoChildEntitiesQuery = pr; + this.setParentToChild(pr); + }; + CGeoChildEntitiesQueryResult.prototype.setGeoChildEntities = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoChildEntitiesQueryResult_SetGeoChildEntities, this.geoChildEntities, pr)); + this.geoChildEntities = pr; + this.setParentToChild(pr); + }; + + + // GeoChildEntitiesQueryResults + drawingsChangesMap[AscDFH.historyitem_GeoChildEntitiesQueryResults_SetGeoChildEntitiesQueryResult] = function (oClass, value) { + oClass.geoChildEntitiesQueryResult = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoChildEntitiesQueryResults_SetGeoChildEntitiesQueryResult] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoChildEntitiesQueryResults() { + CBaseChartObject.call(this); + this.geoChildEntitiesQueryResult = null; + } + + InitClass(CGeoChildEntitiesQueryResults, CBaseChartObject, AscDFH.historyitem_type_GeoChildEntitiesQueryResults); + + CGeoChildEntitiesQueryResults.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoChildEntitiesQueryResult) { + oCopy.setGeoChildEntitiesQueryResult(this.geoChildEntitiesQueryResult.createDuplicate()); + } + }; + + CGeoChildEntitiesQueryResults.prototype.setGeoChildEntitiesQueryResult = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoChildEntitiesQueryResults_SetGeoChildEntitiesQueryResult, this.geoChildEntitiesQueryResult, pr)); + this.geoChildEntitiesQueryResult = pr; + this.setParentToChild(pr); + }; + + + // GeoChildTypes + drawingsChangesMap[AscDFH.historyitem_GeoChildTypes_SetEntityType] = function (oClass, value) { + oClass.entityType = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoChildTypes_SetEntityType] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoChildTypes() { + CBaseChartObject.call(this); + this.entityType = null; + } + + InitClass(CGeoChildTypes, CBaseChartObject, AscDFH.historyitem_type_GeoChildTypes); + + CGeoChildTypes.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setEntityType(this.entityType); + }; + + CGeoChildTypes.prototype.setEntityType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoChildTypes_SetEntityType, this.entityType, pr)); + this.entityType = pr; + this.setParentToChild(pr); + }; + + + // GeoData + drawingsChangesMap[AscDFH.historyitem_GeoData_SetGeoPolygons] = function (oClass, value) { + oClass.geoPolygons = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoData_SetCopyrights] = function (oClass, value) { + oClass.copyrights = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoData_SetEntityName] = function (oClass, value) { + oClass.entityName = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoData_SetEntityId] = function (oClass, value) { + oClass.entityId = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoData_SetEast] = function (oClass, value) { + oClass.east = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoData_SetWest] = function (oClass, value) { + oClass.west = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoData_SetNorth] = function (oClass, value) { + oClass.north = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoData_SetSouth] = function (oClass, value) { + oClass.south = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoData_SetGeoPolygons] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoData_SetCopyrights] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoData_SetEntityName] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoData_SetEntityId] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoData_SetEast] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_GeoData_SetWest] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_GeoData_SetNorth] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_GeoData_SetSouth] = window['AscDFH'].CChangesDrawingsDouble2; + + function CGeoData() { + CBaseChartObject.call(this); + this.geoPolygons = null; + this.copyrights = null; + this.entityName = null; + this.entityId = null; + this.east = null; + this.west = null; + this.north = null; + this.south = null; + } + + InitClass(CGeoData, CBaseChartObject, AscDFH.historyitem_type_GeoData); + + CGeoData.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoPolygons) { + oCopy.setGeoPolygons(this.geoPolygons.createDuplicate()); + } + if (this.setCopyrights) { + oCopy.setGeoChildEntitiesQuery(this.copyrights.createDuplicate()); + } + oCopy.setEntityName(this.entityName); + oCopy.setEntityId(this.entityId); + oCopy.setEast(this.east); + oCopy.setWest(this.west); + oCopy.setNorth(this.north); + oCopy.setSouth(this.south); + }; + + CGeoData.prototype.setGeoPolygons = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoData_SetGeoPolygons, this.geoPolygons, pr)); + this.geoPolygons = pr; + this.setParentToChild(pr); + }; + CGeoData.prototype.setCopyrights = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoData_SetCopyrights, this.copyrights, pr)); + this.copyrights = pr; + this.setParentToChild(pr); + }; + CGeoData.prototype.setEntityName = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoData_SetEntityName, this.entityName, pr)); + this.entityName = pr; + }; + CGeoData.prototype.setEntityId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoData_SetEntityId, this.entityId, pr)); + this.entityId = pr; + }; + CGeoData.prototype.setEast = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_GeoData_SetEast, this.east, pr)); + this.east = pr; + }; + CGeoData.prototype.setWest = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_GeoData_SetWest, this.west, pr)); + this.west = pr; + }; + CGeoData.prototype.setNorth = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_GeoData_SetNorth, this.north, pr)); + this.north = pr; + }; + CGeoData.prototype.setSouth = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_GeoData_SetSouth, this.south, pr)); + this.south = pr; + }; + + + // GeoDataEntityQuery + drawingsChangesMap[AscDFH.historyitem_GeoDataEntityQuery_SetEntityType] = function (oClass, value) { + oClass.entityType = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoDataEntityQuery_SetEntityId] = function (oClass, value) { + oClass.entityId = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataEntityQuery_SetEntityType] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataEntityQuery_SetEntityId] = window['AscDFH'].CChangesDrawingsString; + + function CGeoDataEntityQuery() { + CBaseChartObject.call(this); + this.entityType = null; + this.entityId = null; + } + + InitClass(CGeoDataEntityQuery, CBaseChartObject, AscDFH.historyitem_type_GeoDataEntityQuery); + + CGeoDataEntityQuery.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setEntityType(this.entityType); + oCopy.setEntityId(this.entityId); + }; + + CGeoDataEntityQuery.prototype.setEntityType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataEntityQuery_SetEntityType, this.entityType, pr)); + this.entityType = pr; + this.setParentToChild(pr); + }; + CGeoDataEntityQuery.prototype.setEntityId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoDataEntityQuery_SetEntityId, this.entityId, pr)); + this.entityId = pr; + }; + + + // GeoDataEntityQueryResult + drawingsChangesMap[AscDFH.historyitem_GeoDataEntityQueryResult_SetGeoDataEntityQuery] = function (oClass, value) { + oClass.geoDataEntityQuery = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoDataEntityQueryResult_SetGeoData] = function (oClass, value) { + oClass.geoData = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataEntityQueryResult_SetGeoDataEntityQuery] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataEntityQueryResult_SetGeoData] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoDataEntityQueryResult() { + CBaseChartObject.call(this); + this.geoDataEntityQuery = null; + this.geoData = null; + } + + InitClass(CGeoDataEntityQueryResult, CBaseChartObject, AscDFH.historyitem_type_GeoDataEntityQueryResult); + + CGeoDataEntityQueryResult.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoDataEntityQuery) { + oCopy.setGeoDataEntityQuery(this.geoDataEntityQuery.createDuplicate()); + } + if (this.geoData) { + oCopy.setGeoData(this.geoData.createDuplicate()); + } + } + + CGeoDataEntityQueryResult.prototype.setGeoDataEntityQuery = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataEntityQueryResult_SetGeoDataEntityQuery, this.geoDataEntityQuery, pr)); + this.geoDataEntityQuery = pr; + this.setParentToChild(pr); + }; + CGeoDataEntityQueryResult.prototype.setGeoData = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataEntityQueryResult_SetGeoData, this.geoData, pr)); + this.geoData = pr; + this.setParentToChild(pr); + }; + + + // GeoDataEntityQueryResults + drawingsChangesMap[AscDFH.historyitem_GeoDataEntityQueryResults_SetGeoDataEntityQueryResult] = function (oClass, value) { + oClass.geoDataEntityQueryResult = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataEntityQueryResults_SetGeoDataEntityQueryResult] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoDataEntityQueryResults() { + CBaseChartObject.call(this); + this.geoDataEntityQueryResult = null; + } + + InitClass(CGeoDataEntityQueryResults, CBaseChartObject, AscDFH.historyitem_type_GeoDataEntityQueryResults); + + CGeoDataEntityQueryResults.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoDataEntityQueryResult) { + oCopy.setGeoDataEntityQueryResult(this.geoDataEntityQueryResult.createDuplicate()); + } + } + + CGeoDataEntityQueryResults.prototype.setGeoDataEntityQueryResult = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataEntityQueryResults_SetGeoDataEntityQueryResult, this.geoDataEntityQueryResult, pr)); + this.geoDataEntityQueryResult = pr; + this.setParentToChild(pr); + }; + + + // GeoDataPointQuery + drawingsChangesMap[AscDFH.historyitem_GeoDataPointQuery_SetEntityType] = function (oClass, value) { + oClass.entityType = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoDataPointQuery_SetLatitude] = function (oClass, value) { + oClass.latitude = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoDataPointQuery_SetLongitude] = function (oClass, value) { + oClass.longitude = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataPointQuery_SetEntityType] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataPointQuery_SetLatitude] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataPointQuery_SetLongitude] = window['AscDFH'].CChangesDrawingsDouble2; + + function CGeoDataPointQuery() { + CBaseChartObject.call(this); + this.entityType = null; + this.latitude = null; + this.longitude = null; + } + + InitClass(CGeoDataPointQuery, CBaseChartObject, AscDFH.historyitem_type_GeoDataPointQuery); + + CGeoDataPointQuery.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setEntityType(this.entityType); + oCopy.setLatitude(this.latitude); + oCopy.setLongitude(this.longitude); + } + + CGeoDataPointQuery.prototype.setEntityType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataPointQuery_SetEntityType, this.entityType, pr)); + this.entityType = pr; + this.setParentToChild(pr); + }; + CGeoDataPointQuery.prototype.setLatitude = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_GeoDataPointQuery_SetLatitude, this.latitude, pr)); + this.latitude = pr; + }; + CGeoDataPointQuery.prototype.setLongitude = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_GeoDataPointQuery_SetLongitude, this.longitude, pr)); + this.longitude = pr; + }; + + + // GeoDataPointToEntityQuery + drawingsChangesMap[AscDFH.historyitem_GeoDataPointToEntityQuery_SetEntityType] = function (oClass, value) { + oClass.entityType = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoDataPointToEntityQuery_SetEntityId] = function (oClass, value) { + oClass.entityId = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataPointToEntityQuery_SetEntityType] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataPointToEntityQuery_SetEntityId] = window['AscDFH'].CChangesDrawingsString; + + function CGeoDataPointToEntityQuery() { + CBaseChartObject.call(this); + this.entityType = null; + this.entityId = null; + } + + InitClass(CGeoDataPointToEntityQuery, CBaseChartObject, AscDFH.historyitem_type_GeoDataPointToEntityQuery); + + CGeoDataPointToEntityQuery.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setEntityType(this.entityType); + oCopy.setEntityId(this.entityId); + } + + CGeoDataPointToEntityQuery.prototype.setEntityType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataPointToEntityQuery_SetEntityType, this.entityType, pr)); + this.entityType = pr; + this.setParentToChild(pr); + }; + CGeoDataPointToEntityQuery.prototype.setEntityId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoDataPointToEntityQuery_SetEntityId, this.entityId, pr)); + this.entityId = pr; + }; + + + // GeoDataPointToEntityQueryResult + drawingsChangesMap[AscDFH.historyitem_GeoDataPointToEntityQueryResult_SetGeoDataPointQuery] = function (oClass, value) { + oClass.geoDataPointQuery = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoDataPointToEntityQueryResult_SetGeoDataPointToEntityQuery] = function (oClass, value) { + oClass.geoDataPointToEntityQuery = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataPointToEntityQueryResult_SetGeoDataPointQuery] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataPointToEntityQueryResult_SetGeoDataPointToEntityQuery] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoDataPointToEntityQueryResult() { + CBaseChartObject.call(this); + this.geoDataPointQuery = null; + this.geoDataPointToEntityQuery = null; + } + + InitClass(CGeoDataPointToEntityQueryResult, CBaseChartObject, AscDFH.historyitem_type_GeoDataPointToEntityQueryResult); + + CGeoDataPointToEntityQueryResult.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoDataPointQuery) { + oCopy.setGeoDataPointQuery(this.geoDataPointQuery.createDuplicate()); + } + if (this.geoDataPointToEntityQuery) { + oCopy.setGeoDataPointToEntityQuery(this.geoDataPointToEntityQuery.createDuplicate()); + } + } + + CGeoDataPointToEntityQueryResult.prototype.setGeoDataPointQuery = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataPointToEntityQueryResult_SetGeoDataPointQuery, this.geoDataPointQuery, pr)); + this.geoDataPointQuery = pr; + this.setParentToChild(pr); + }; + CGeoDataPointToEntityQueryResult.prototype.setGeoDataPointToEntityQuery = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataPointToEntityQueryResult_SetGeoDataPointToEntityQuery, this.geoDataPointToEntityQuery, pr)); + this.geoDataPointToEntityQuery = pr; + this.setParentToChild(pr); + }; + + + // GeoDataPointToEntityQueryResults + drawingsChangesMap[AscDFH.historyitem_GeoDataPointToEntityQueryResults_SetGeoDataPointToEntityQueryResult] = function (oClass, value) { + oClass.geoDataPointToEntityQueryResult = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoDataPointToEntityQueryResults_SetGeoDataPointToEntityQueryResult] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoDataPointToEntityQueryResults() { + CBaseChartObject.call(this); + this.geoDataPointToEntityQueryResult = null; + } + + InitClass(CGeoDataPointToEntityQueryResults, CBaseChartObject, AscDFH.historyitem_type_GeoDataPointToEntityQueryResults); + + CGeoDataPointToEntityQueryResults.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoDataPointToEntityQueryResult) { + oCopy.setGeoDataPointToEntityQueryResult(this.geoDataPointToEntityQueryResult.createDuplicate()); + } + } + + CGeoDataPointToEntityQueryResults.prototype.setGeoDataPointToEntityQueryResult = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoDataPointToEntityQueryResults_SetGeoDataPointToEntityQueryResult, this.geoDataPointToEntityQueryResult, pr)); + this.geoDataPointToEntityQueryResult = pr; + this.setParentToChild(pr); + }; + + + // Geography + drawingsChangesMap[AscDFH.historyitem_Geography_SetGeoCache] = function (oClass, value) { + oClass.geoCache = value; + }; + drawingsChangesMap[AscDFH.historyitem_Geography_SetProjectionType] = function (oClass, value) { + oClass.projectionType = value; + }; + drawingsChangesMap[AscDFH.historyitem_Geography_SetViewedRegionType] = function (oClass, value) { + oClass.viewedRegionType = value; + }; + drawingsChangesMap[AscDFH.historyitem_Geography_SetCultureLanguage] = function (oClass, value) { + oClass.cultureLanguage = value; + }; + drawingsChangesMap[AscDFH.historyitem_Geography_SetCultureRegion] = function (oClass, value) { + oClass.cultureRegion = value; + }; + drawingsChangesMap[AscDFH.historyitem_Geography_SetAttribution] = function (oClass, value) { + oClass.attribution = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_Geography_SetGeoCache] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Geography_SetProjectionType] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Geography_SetViewedRegionType] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Geography_SetCultureLanguage] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Geography_SetCultureRegion] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Geography_SetAttribution] = window['AscDFH'].CChangesDrawingsString; + + function CGeography() { + CBaseChartObject.call(this); + this.geoCache = null; + this.projectionType = null; + this.viewedRegionType = null; + this.cultureLanguage = null; + this.cultureRegion = null; + this.attribution = null; + } + + InitClass(CGeography, CBaseChartObject, AscDFH.historyitem_type_Geography); + + CGeography.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoCache) { + oCopy.setGeoCache(this.geoCache.createDuplicate()); + } + oCopy.setProjectionType(this.projectionType); + oCopy.setViewedRegionType(this.viewedRegionType); + oCopy.setCultureLanguage(this.cultureLanguage); + oCopy.setCultureRegion(this.cultureRegion); + oCopy.setAttribution(this.attribution); + } + + CGeography.prototype.setGeoCache = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Geography_SetGeoCache, this.geoCache, pr)); + this.geoCache = pr; + this.setParentToChild(pr); + }; + CGeography.prototype.setProjectionType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Geography_SetProjectionType, this.projectionType, pr)); + this.projectionType = pr; + this.setParentToChild(pr); + }; + CGeography.prototype.setViewedRegionType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Geography_SetViewedRegionType, this.viewedRegionType, pr)); + this.viewedRegionType = pr; + this.setParentToChild(pr); + }; + CGeography.prototype.setCultureLanguage = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Geography_SetCultureLanguage, this.cultureLanguage, pr)); + this.cultureLanguage = pr; + }; + CGeography.prototype.setCultureRegion = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Geography_SetCultureRegion, this.cultureRegion, pr)); + this.cultureRegion = pr; + }; + CGeography.prototype.setAttribution = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Geography_SetAttribution, this.attribution, pr)); + this.attribution = pr; + }; + + + // GeoHierarchyEntity + drawingsChangesMap[AscDFH.historyitem_GeoHierarchyEntity_SetEntityName] = function (oClass, value) { + oClass.entityName = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoHierarchyEntity_SetEntityId] = function (oClass, value) { + oClass.entityId = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoHierarchyEntity_SetEntityType] = function (oClass, value) { + oClass.entityType = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoHierarchyEntity_SetEntityName] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoHierarchyEntity_SetEntityId] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoHierarchyEntity_SetEntityType] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoHierarchyEntity() { + CBaseChartObject.call(this); + this.entityName = null; + this.entityId = null; + this.entityType = null; + } + + InitClass(CGeoHierarchyEntity, CBaseChartObject, AscDFH.historyitem_type_GeoHierarchyEntity); + + CGeoHierarchyEntity.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setEntityName(this.entityName); + oCopy.setEntityId(this.entityId); + oCopy.setEntityType(this.entityType); + } + + CGeoHierarchyEntity.prototype.setEntityName = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoHierarchyEntity_SetEntityName, this.entityName, pr)); + this.entityName = pr; + }; + CGeoHierarchyEntity.prototype.setEntityId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoHierarchyEntity_SetEntityId, this.entityId, pr)); + this.entityId = pr; + }; + CGeoHierarchyEntity.prototype.setEntityType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoHierarchyEntity_SetEntityType, this.entityType, pr)); + this.entityType = pr; + this.setParentToChild(pr); + }; + + + // GeoLocation + drawingsChangesMap[AscDFH.historyitem_GeoLocation_SetAddress] = function (oClass, value) { + oClass.address = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocation_SetLatitude] = function (oClass, value) { + oClass.latitude = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocation_SetLongitude] = function (oClass, value) { + oClass.longitude = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocation_SetEntityName] = function (oClass, value) { + oClass.entityName = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocation_SetEntityType] = function (oClass, value) { + oClass.entityType = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocation_SetAddress] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocation_SetLatitude] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocation_SetLongitude] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocation_SetEntityName] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocation_SetEntityType] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoLocation() { + CBaseChartObject.call(this); + this.address = null; + this.latitude = null; + this.longitude = null; + this.entityName = null; + this.entityType = null; + } + + InitClass(CGeoLocation, CBaseChartObject, AscDFH.historyitem_type_GeoLocation); + + CGeoLocation.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.address) { + oCopy.setAddress(this.address.createDuplicate()); + } + oCopy.setLatitude(this.latitude); + oCopy.setLongitude(this.longitude); + oCopy.setEntityName(this.entityName); + oCopy.setEntityType(this.entityType); + } + + CGeoLocation.prototype.setAddress = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoLocation_SetAddress, this.address, pr)); + this.address = pr; + this.setParentToChild(pr); + }; + CGeoLocation.prototype.setLatitude = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_GeoLocation_SetLatitude, this.latitude, pr)); + this.latitude = pr; + }; + CGeoLocation.prototype.setLongitude = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_GeoLocation_SetLongitude, this.longitude, pr)); + this.longitude = pr; + }; + CGeoLocation.prototype.setEntityName = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoLocation_SetEntityName, this.entityName, pr)); + this.entityName = pr; + }; + CGeoLocation.prototype.setEntityType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoLocation_SetEntityType, this.entityType, pr)); + this.entityType = pr; + this.setParentToChild(pr); + }; + + + // GeoLocationQuery + drawingsChangesMap[AscDFH.historyitem_GeoLocationQuery_SetCountryRegion] = function (oClass, value) { + oClass.countryRegion = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocationQuery_SetAdminDistrict1] = function (oClass, value) { + oClass.adminDistrict1 = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocationQuery_SetAdminDistrict2] = function (oClass, value) { + oClass.adminDistrict2 = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocationQuery_SetPostalCode] = function (oClass, value) { + oClass.postalCode = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocationQuery_SetEntityType] = function (oClass, value) { + oClass.entityType = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocationQuery_SetCountryRegion] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocationQuery_SetAdminDistrict1] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocationQuery_SetAdminDistrict2] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocationQuery_SetPostalCode] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocationQuery_SetEntityType] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoLocationQuery() { + CBaseChartObject.call(this); + this.countryRegion = null; + this.adminDistrict1 = null; + this.adminDistrict2 = null; + this.postalCode = null; + this.entityType = null; + } + + InitClass(CGeoLocationQuery, CBaseChartObject, AscDFH.historyitem_type_GeoLocationQuery); + + CGeoLocationQuery.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setCountryRegion(this.countryRegion); + oCopy.setAdminDistrict1(this.adminDistrict1); + oCopy.setAdminDistrict2(this.adminDistrict2); + oCopy.setPostalCode(this.postalCode); + oCopy.setEntityType(this.entityType); + } + + CGeoLocationQuery.prototype.setCountryRegion = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoLocationQuery_SetCountryRegion, this.countryRegion, pr)); + this.countryRegion = pr; + }; + CGeoLocationQuery.prototype.setAdminDistrict1 = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoLocationQuery_SetAdminDistrict1, this.adminDistrict1, pr)); + this.adminDistrict1 = pr; + }; + CGeoLocationQuery.prototype.setAdminDistrict2 = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoLocationQuery_SetAdminDistrict2, this.adminDistrict2, pr)); + this.adminDistrict2 = pr; + }; + CGeoLocationQuery.prototype.setPostalCode = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoLocationQuery_SetPostalCode, this.postalCode, pr)); + this.postalCode = pr; + }; + CGeoLocationQuery.prototype.setEntityType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoLocationQuery_SetEntityType, this.entityType, pr)); + this.entityType = pr; + this.setParentToChild(pr); + }; + + + // GeoLocationQueryResult + drawingsChangesMap[AscDFH.historyitem_GeoLocationQueryResult_SetGeoLocationQuery] = function (oClass, value) { + oClass.geoLocationQuery = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoLocationQueryResult_SetGeoLocations] = function (oClass, value) { + oClass.geoLocations = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocationQueryResult_SetGeoLocationQuery] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocationQueryResult_SetGeoLocations] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoLocationQueryResult() { + CBaseChartObject.call(this); + this.geoLocationQuery = null; + this.geoLocations = null; + } + + InitClass(CGeoLocationQueryResult, CBaseChartObject, AscDFH.historyitem_type_GeoLocationQueryResult); + + CGeoLocationQueryResult.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoLocationQuery) { + oCopy.setGeoLocationQuery(this.geoLocationQuery.createDuplicate()); + } + if (this.geoLocations) { + oCopy.setGeoLocations(this.geoLocations.createDuplicate()); + } + } + + CGeoLocationQueryResult.prototype.setGeoLocationQuery = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoLocationQueryResult_SetGeoLocationQuery, this.geoLocationQuery, pr)); + this.geoLocationQuery = pr; + this.setParentToChild(pr); + }; + CGeoLocationQueryResult.prototype.setGeoLocations = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoLocationQueryResult_SetGeoLocations, this.geoLocations, pr)); + this.geoLocations = pr; + this.setParentToChild(pr); + }; + + + // GeoLocationQueryResults + drawingsChangesMap[AscDFH.historyitem_GeoLocationQueryResults_SetGeoLocationQueryResult] = function (oClass, value) { + oClass.geoLocationQueryResult = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocationQueryResults_SetGeoLocationQueryResult] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoLocationQueryResults() { + CBaseChartObject.call(this); + this.geoLocationQueryResult = null; + } + + InitClass(CGeoLocationQueryResults, CBaseChartObject, AscDFH.historyitem_type_GeoLocationQueryResults); + + CGeoLocationQueryResults.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoLocationQueryResult) { + oCopy.setGeoLocationQueryResult(this.geoLocationQueryResult.createDuplicate()); + } + } + + CGeoLocationQueryResults.prototype.setGeoLocationQueryResult = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoLocationQueryResults_SetGeoLocationQueryResult, this.geoLocationQueryResult, pr)); + this.geoLocationQueryResult = pr; + this.setParentToChild(pr); + }; + + + // GeoLocations + drawingsChangesMap[AscDFH.historyitem_GeoLocations_SetGeoLocation] = function (oClass, value) { + oClass.geoLocation = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoLocations_SetGeoLocation] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoLocations() { + CBaseChartObject.call(this); + this.geoLocation = null; + } + + InitClass(CGeoLocations, CBaseChartObject, AscDFH.historyitem_type_GeoLocations); + + CGeoLocations.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoLocation) { + oCopy.setGeoLocation(this.geoLocation.createDuplicate()); + } + } + + CGeoLocations.prototype.setGeoLocation = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoLocations_SetGeoLocation, this.geoLocation, pr)); + this.geoLocation = pr; + this.setParentToChild(pr); + }; + + + // GeoPolygon + drawingsChangesMap[AscDFH.historyitem_GeoPolygon_SetPolygonId] = function (oClass, value) { + oClass.polygonId = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoPolygon_SetNumPoints] = function (oClass, value) { + oClass.numPoints = value; + }; + drawingsChangesMap[AscDFH.historyitem_GeoPolygon_SetPcaRings] = function (oClass, value) { + oClass.pcaRings = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoPolygon_SetPolygonId] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_GeoPolygon_SetNumPoints] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_GeoPolygon_SetPcaRings] = window['AscDFH'].CChangesDrawingsString; + + function CGeoPolygon() { + CBaseChartObject.call(this); + this.polygonId = null; + this.numPoints = null; + this.pcaRings = null; + } + + InitClass(CGeoPolygon, CBaseChartObject, AscDFH.historyitem_type_GeoPolygon); + + CGeoPolygon.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setPolygonId(this.polygonId); + oCopy.setNumPoints(this.numPoints); + oCopy.setPcaRings(this.pcaRings); + } + + + CGeoPolygon.prototype.setPolygonId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoPolygon_SetPolygonId, this.polygonId, pr)); + this.polygonId = pr; + }; + CGeoPolygon.prototype.setNumPoints = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_GeoPolygon_SetNumPoints, this.numPoints, pr)); + this.numPoints = pr; + }; + CGeoPolygon.prototype.setPcaRings = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_GeoPolygon_SetPcaRings, this.pcaRings, pr)); + this.pcaRings = pr; + }; + + + // GeoPolygons + drawingsChangesMap[AscDFH.historyitem_GeoPolygons_SetGeoPolygon] = function (oClass, value) { + oClass.geoPolygon = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_GeoPolygons_SetGeoPolygon] = window['AscDFH'].CChangesDrawingsObject; + + function CGeoPolygons() { + CBaseChartObject.call(this); + this.geoPolygon = null; + } + + InitClass(CGeoPolygons, CBaseChartObject, AscDFH.historyitem_type_GeoPolygons); + + CGeoPolygons.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.geoPolygon) { + oCopy.setGeoPolygon(this.geoPolygon.createDuplicate()); + } + } + + CGeoPolygons.prototype.setGeoPolygon = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_GeoPolygons_SetGeoPolygon, this.geoPolygon, pr)); + this.geoPolygon = pr; + this.setParentToChild(pr); + }; + + + // Gridlines + drawingsChangesMap[AscDFH.historyitem_Gridlines_SetSpPr] = function (oClass, value) { + oClass.spPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_Gridlines_SetName] = function (oClass, value) { + oClass.name = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_Gridlines_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Gridlines_SetName] = window['AscDFH'].CChangesDrawingsString; + + function CGridlines() { + CBaseChartObject.call(this); + this.spPr = null; + this.name = null; + } + + InitClass(CGridlines, CBaseChartObject, AscDFH.historyitem_type_Gridlines); + + CGridlines.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.spPr) { + oCopy.setSpPr(this.spPr.createDuplicate()); + } + oCopy.setName(this.name); + } + + CGridlines.prototype.setSpPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Gridlines_SetSpPr, this.spPr, pr)); + this.spPr = pr; + this.setParentToChild(pr); + }; + CGridlines.prototype.setName = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Gridlines_SetName, this.name, pr)); + this.name = pr; + }; + + + // // HeaderFooter (contains in ChartFormat.js) + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetOddHeader] = function (oClass, value) { + // oClass.oddHeader = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetOddFooter] = function (oClass, value) { + // oClass.oddFooter = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetEvenHeader] = function (oClass, value) { + // oClass.evenHeader = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetEvenFooter] = function (oClass, value) { + // oClass.evenFooter = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetFirstHeader] = function (oClass, value) { + // oClass.firstHeader = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetFirstFooter] = function (oClass, value) { + // oClass.firstFooter = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetAlignWithMargins] = function (oClass, value) { + // oClass.alignWithMargins = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetDifferentOddEven] = function (oClass, value) { + // oClass.differentOddEven = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_HeaderFooter_SetDifferentFirst] = function (oClass, value) { + // oClass.differentFirst = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetOddHeader] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetOddFooter] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetEvenHeader] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetEvenFooter] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetFirstHeader] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetFirstFooter] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetAlignWithMargins] = window['AscDFH'].CChangesDrawingsBool; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetDifferentOddEven] = window['AscDFH'].CChangesDrawingsBool; + // AscDFH.changesFactory[AscDFH.historyitem_HeaderFooter_SetDifferentFirst] = window['AscDFH'].CChangesDrawingsBool; + // function CHeaderFooter() { + // CBaseChartObject.call(this); + // this.oddHeader = null; + // this.oddFooter = null; + // this.evenHeader = null; + // this.evenFooter = null; + // this.firstHeader = null; + // this.firstFooter = null; + // this.alignWithMargins = null; + // this.differentOddEven = null; + // this.differentFirst = null; + // } + + // InitClass(CHeaderFooter, CBaseChartObject, AscDFH.historyitem_type_HeaderFooter); + + // CHeaderFooter.prototype.setOddHeader = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_HeaderFooter_SetOddHeader, this.oddHeader, pr)); + // this.oddHeader = pr; + // }; + // CHeaderFooter.prototype.setOddFooter = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_HeaderFooter_SetOddFooter, this.oddFooter, pr)); + // this.oddFooter = pr; + // }; + // CHeaderFooter.prototype.setEvenHeader = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_HeaderFooter_SetEvenHeader, this.evenHeader, pr)); + // this.evenHeader = pr; + // }; + // CHeaderFooter.prototype.setEvenFooter = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_HeaderFooter_SetEvenFooter, this.evenFooter, pr)); + // this.evenFooter = pr; + // }; + // CHeaderFooter.prototype.setFirstHeader = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_HeaderFooter_SetFirstHeader, this.firstHeader, pr)); + // this.firstHeader = pr; + // }; + // CHeaderFooter.prototype.setFirstFooter = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_HeaderFooter_SetFirstFooter, this.firstFooter, pr)); + // this.firstFooter = pr; + // }; + // CHeaderFooter.prototype.setAlignWithMargins = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_HeaderFooter_SetAlignWithMargins, this.alignWithMargins, pr)); + // this.alignWithMargins = pr; + // }; + // CHeaderFooter.prototype.setDifferentOddEven = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_HeaderFooter_SetDifferentOddEven, this.differentOddEven, pr)); + // this.differentOddEven = pr; + // }; + // CHeaderFooter.prototype.setDifferentFirst = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_HeaderFooter_SetDifferentFirst, this.differentFirst, pr)); + // this.differentFirst = pr; + // }; + // + + // // ChartExLegend (Legend contains in ChartFormat.js) + // drawingsChangesMap[AscDFH.historyitem_ChartExLegend_SetSpPr] = function (oClass, value) { + // oClass.spPr = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_ChartExLegend_SetTxPr] = function (oClass, value) { + // oClass.txPr = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_ChartExLegend_SetPos] = function (oClass, value) { + // oClass.pos = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_ChartExLegend_SetAlign] = function (oClass, value) { + // oClass.align = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_ChartExLegend_SetOverlay] = function (oClass, value) { + // oClass.overlay = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExLegend_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExLegend_SetTxPr] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExLegend_SetPos] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExLegend_SetAlign] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExLegend_SetOverlay] = window['AscDFH'].CChangesDrawingsBool; + // function CChartExLegend() { + // CBaseChartObject.call(this); + // this.spPr = null; + // this.txPr = null; + // this.pos = null; + // this.align = null; + // this.overlay = null; + // } + + // InitClass(CChartExLegend, CBaseChartObject, AscDFH.historyitem_type_ChartExLegend); + + // CChartExLegend.prototype.setSpPr = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartExLegend_SetSpPr, this.spPr, pr)); + // this.spPr = pr; + // }; + // CChartExLegend.prototype.setTxPr = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartExLegend_SetTxPr, this.txPr, pr)); + // this.txPr = pr; + // }; + // CChartExLegend.prototype.setPos = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartExLegend_SetPos, this.pos, pr)); + // this.pos = pr; + // }; + // CChartExLegend.prototype.setAlign = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartExLegend_SetAlign, this.align, pr)); + // this.align = pr; + // }; + // CChartExLegend.prototype.setOverlay = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_ChartExLegend_SetOverlay, this.overlay, pr)); + // this.overlay = pr; + // }; + + + // // NumberColorPosition (CNumericPoint replaces this class) + // drawingsChangesMap[AscDFH.historyitem_NumberColorPosition_SetVal] = function (oClass, value) { + // oClass.val = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_NumberColorPosition_SetVal] = window['AscDFH'].CChangesDrawingsDouble2; + // function CNumberColorPosition() { + // CBaseChartObject.call(this); + // this.val = null; + // } + + // InitClass(CNumberColorPosition, CBaseChartObject, AscDFH.historyitem_type_NumberColorPosition); + + // CNumberColorPosition.prototype.setVal = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_NumberColorPosition_SetVal, this.val, pr)); + // this.val = pr; + // }; + // + + // // NumberFormat (CNumFmt contains in ChartFormat.js) + // drawingsChangesMap[AscDFH.historyitem_NumberFormat_SetFormatCode] = function (oClass, value) { + // oClass.formatCode = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_NumberFormat_SetSourceLinked] = function (oClass, value) { + // oClass.sourceLinked = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_NumberFormat_SetFormatCode] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_NumberFormat_SetSourceLinked] = window['AscDFH'].CChangesDrawingsBool; + // function CNumberFormat() { + // CBaseChartObject.call(this); + // this.formatCode = null; + // this.sourceLinked = null; + // } + + // InitClass(CNumberFormat, CBaseChartObject, AscDFH.historyitem_type_NumberFormat); + + // CNumberFormat.prototype.setFormatCode = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_NumberFormat_SetFormatCode, this.formatCode, pr)); + // this.formatCode = pr; + // }; + // CNumberFormat.prototype.setSourceLinked = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_NumberFormat_SetSourceLinked, this.sourceLinked, pr)); + // this.sourceLinked = pr; + // }; + // + + // Dimension + drawingsChangesMap[AscDFH.historyitem_Dimension_SetF] = function (oClass, value) { + oClass.f = value; + }; + drawingsChangesMap[AscDFH.historyitem_Dimension_SetNf] = function (oClass, value) { + oClass.nf = value; + }; + drawingsChangesMap[AscDFH.historyitem_Dimension_SetType] = function (oClass, value) { + oClass.type = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_Dimension_SetF] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Dimension_SetNf] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Dimension_SetType] = window['AscDFH'].CChangesDrawingsLong; + + function CDimension() { + AscFormat.CChartRefBase.call(this); + this.f = null; + this.nf = null; + this.type = null; + this.levelData = []; + } + + InitClass(CDimension, AscFormat.CChartRefBase, AscDFH.historyitem_type_Dimension); + + CDimension.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.f) { + oCopy.setF(this.f.createDuplicate()); + } + if (this.nf) { + oCopy.setNf(this.nf); + } + oCopy.setType(this.type); + } + + CDimension.prototype.setF = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Dimension_SetF, this.f, pr)); + this.f = pr; + this.setParentToChild(pr); + }; + CDimension.prototype.setNf = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Dimension_SetNf, this.nf, pr)); + this.nf = pr; + }; + CDimension.prototype.setType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Dimension_SetType, this.type, pr)); + this.type = pr; + }; + CDimension.prototype.createLvl = function () { + return null; + }; + CDimension.prototype.fillCellVal = function (oCell, oLvl, nPtIdx) { + return null; + }; + CDimension.prototype.clearLevelData = function () { + for(let nIdx = this.levelData.length; nIdx > -1; --nIdx) { + this.removeLevelDataByPos(nIdx) + } + }; + CDimension.prototype.removeLevelDataByPos = function (nIdx) { + }; + CDimension.prototype.updateReferences = function (bDisplayEmptyCellsAs, bDisplayHidden) { + + this.clearLevelData(); + if (!this.f) { + return; + } + let sContent = this.f.content; + + let aParsedRef = AscFormat.fParseChartFormula(sContent); + if (!Array.isArray(aParsedRef) || aParsedRef.length === 0) { + return false; + } + let nPtCount = 0; + if (aParsedRef.length > 0) { + let nRows = 0, nRef, oRef, oBBox, nPtIdx, nCol, oWS, oCell, sVal, nCols = 0, nRow; + let nLvl, oLvl; + let bLvlsByRows; + if (this.f.dir === AscFormat.FORMULA_DIRECTION_ROW) { + bLvlsByRows = true; + } + else { + bLvlsByRows = false; + } + + if (bLvlsByRows) { + for (nRef = 0; nRef < aParsedRef.length; ++nRef) { + oRef = aParsedRef[nRef]; + oBBox = oRef.bbox; + nPtCount += (oBBox.c2 - oBBox.c1 + 1); + nRows = Math.max(nRows, oBBox.r2 - oBBox.r1 + 1); + } + for (nLvl = 0; nLvl < nRows; ++nLvl) { + oLvl = this.createLvl(); + if (!oLvl) { + return; + } + nPtIdx = 0; + for (nRef = 0; nRef < aParsedRef.length; ++nRef) { + oRef = aParsedRef[nRef]; + oBBox = oRef.bbox; + oWS = oRef.worksheet; + if (nLvl < (oBBox.r2 - oBBox.r1 + 1)) { + for (nCol = oBBox.c1; nCol <= oBBox.c2; ++nCol) { + oCell = oWS.getCell3(nLvl + oBBox.r1, nCol); + this.fillCellVal(oCell, oLvl, nPtIdx); + ++nPtIdx; + } + } + else { + nPtIdx += (oBBox.c2 - oBBox.c1 + 1); + } + } + nPtCount = Math.max(nPtCount, nPtIdx); + oLvl.setPtCount(nPtIdx); + this.addLevelData(oLvl); + } + } + else { + for (nRef = 0; nRef < aParsedRef.length; ++nRef) { + oRef = aParsedRef[nRef]; + oBBox = oRef.bbox; + nPtCount += (oBBox.r2 - oBBox.r1 + 1); + nCols = Math.max(nCols, oBBox.c2 - oBBox.c1 + 1); + } + for (nLvl = 0; nLvl < nCols; ++nLvl) { + oLvl = this.createLvl(); + nPtIdx = 0; + for (nRef = 0; nRef < aParsedRef.length; ++nRef) { + oRef = aParsedRef[nRef]; + oBBox = oRef.bbox; + oWS = oRef.worksheet; + if (nLvl < (oBBox.c2 - oBBox.c1 + 1)) { + for (nRow = oBBox.r1; nRow <= oBBox.r2; ++nRow) { + oCell = oWS.getCell3(nRow, nLvl + oBBox.c1); + this.fillCellVal(oCell, oLvl, nPtIdx); + ++nPtIdx; + } + } + else { + nPtIdx += (oBBox.r2 - oBBox.r1 + 1); + } + } + nPtCount = Math.max(nPtCount, nPtIdx); + oLvl.setPtCount(nPtIdx); + this.addLevelData(oLvl); + } + } + } + }; + CDimension.prototype.updateCache = function() { + AscFormat.ExecuteNoHistory(function () { + this.updateReferences(); + }, this, []); + }; + // NumericDimension + drawingContentChanges[AscDFH.historyitem_NumericDimension_AddLevelData] = + drawingContentChanges[AscDFH.historyitem_NumericDimension_RemoveLevelData] = function (oClass) { + return oClass.levelData; + }; + + AscDFH.changesFactory[AscDFH.historyitem_NumericDimension_AddLevelData] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_NumericDimension_RemoveLevelData] = window['AscDFH'].CChangesDrawingsContent; + + function CNumericDimension() { + CDimension.call(this); + } + + InitClass(CNumericDimension, CDimension, AscDFH.historyitem_type_NumericDimension); + + CNumericDimension.prototype.fillObject = function (oCopy) { + CDimension.prototype.fillObject.call(this, oCopy); + if (this.levelData) { + for (let i = 0; i < this.levelData.length; i++) { + oCopy.addLevelData(this.levelData[i].createDuplicate(), i); + } + } + } + + CNumericDimension.prototype.addLevelData = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.levelData.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_NumericDimension_AddLevelData, pos, [pr], true)); + this.levelData.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CNumericDimension.prototype.removeLevelDataByPos = function (pos) { + if (this.levelData[pos]) { + let levelData = this.levelData.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_NumericDimension_RemoveLevelData, pos, [levelData], false)); + } + }; + CNumericDimension.prototype.createLvl = function () { + return new AscFormat.CNumLit(); + }; + CNumericDimension.prototype.fillCellVal = function (oCell, oLvl, nPtIdx) { + let dVal = oCell.getNumberValue(); + if (!AscFormat.isRealNumber(dVal)) { + let sVal = oCell.getValueForEdit(); + if ((typeof sVal === "string") && sVal.length > 0) { + dVal = 0; + } + } + if (AscFormat.isRealNumber(dVal)) { + let oPt = new AscFormat.CNumericPoint(); + oPt.setIdx(nPtIdx); + oPt.setVal(dVal); + oLvl.addPt(oPt); + oPt.setFormatCode(oCell.getNumFormatStr()); + } + }; + + + // // PageMargins (CPageMarginsChart contains in ChartFormat.js) + // drawingsChangesMap[AscDFH.historyitem_PageMargins_SetL] = function (oClass, value) { + // oClass.l = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageMargins_SetR] = function (oClass, value) { + // oClass.r = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageMargins_SetT] = function (oClass, value) { + // oClass.t = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageMargins_SetB] = function (oClass, value) { + // oClass.b = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageMargins_SetHeader] = function (oClass, value) { + // oClass.header = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageMargins_SetFooter] = function (oClass, value) { + // oClass.footer = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_PageMargins_SetL] = window['AscDFH'].CChangesDrawingsDouble2; + // AscDFH.changesFactory[AscDFH.historyitem_PageMargins_SetR] = window['AscDFH'].CChangesDrawingsDouble2; + // AscDFH.changesFactory[AscDFH.historyitem_PageMargins_SetT] = window['AscDFH'].CChangesDrawingsDouble2; + // AscDFH.changesFactory[AscDFH.historyitem_PageMargins_SetB] = window['AscDFH'].CChangesDrawingsDouble2; + // AscDFH.changesFactory[AscDFH.historyitem_PageMargins_SetHeader] = window['AscDFH'].CChangesDrawingsDouble2; + // AscDFH.changesFactory[AscDFH.historyitem_PageMargins_SetFooter] = window['AscDFH'].CChangesDrawingsDouble2; + // function CPageMargins() { + // CBaseChartObject.call(this); + // this.l = null; + // this.r = null; + // this.t = null; + // this.b = null; + // this.header = null; + // this.footer = null; + // } + + // InitClass(CPageMargins, CBaseChartObject, AscDFH.historyitem_type_PageMargins); + + // CPageMargins.prototype.setL = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_PageMargins_SetL, this.l, pr)); + // this.l = pr; + // }; + // CPageMargins.prototype.setR = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_PageMargins_SetR, this.r, pr)); + // this.r = pr; + // }; + // CPageMargins.prototype.setT = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_PageMargins_SetT, this.t, pr)); + // this.t = pr; + // }; + // CPageMargins.prototype.setB = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_PageMargins_SetB, this.b, pr)); + // this.b = pr; + // }; + // CPageMargins.prototype.setHeader = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_PageMargins_SetHeader, this.header, pr)); + // this.header = pr; + // }; + // CPageMargins.prototype.setFooter = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_PageMargins_SetFooter, this.footer, pr)); + // this.footer = pr; + // }; + // + + // // PageSetup (contains in ChartFormat.js) + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetPaperSize] = function (oClass, value) { + // oClass.paperSize = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetFirstPageNumber] = function (oClass, value) { + // oClass.firstPageNumber = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetOrientation] = function (oClass, value) { + // oClass.orientation = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetBlackAndWhite] = function (oClass, value) { + // oClass.blackAndWhite = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetDraft] = function (oClass, value) { + // oClass.draft = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetUseFirstPageNumber] = function (oClass, value) { + // oClass.useFirstPageNumber = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetHorizontalDpi] = function (oClass, value) { + // oClass.horizontalDpi = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetVerticalDpi] = function (oClass, value) { + // oClass.verticalDpi = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PageSetup_SetCopies] = function (oClass, value) { + // oClass.copies = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetPaperSize] = window['AscDFH'].CChangesDrawingsLong; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetFirstPageNumber] = window['AscDFH'].CChangesDrawingsLong; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetOrientation] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetBlackAndWhite] = window['AscDFH'].CChangesDrawingsBool; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetDraft] = window['AscDFH'].CChangesDrawingsBool; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetUseFirstPageNumber] = window['AscDFH'].CChangesDrawingsBool; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetHorizontalDpi] = window['AscDFH'].CChangesDrawingsLong; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetVerticalDpi] = window['AscDFH'].CChangesDrawingsLong; + // AscDFH.changesFactory[AscDFH.historyitem_PageSetup_SetCopies] = window['AscDFH'].CChangesDrawingsLong; + // function CPageSetup() { + // CBaseChartObject.call(this); + // this.paperSize = null; + // this.firstPageNumber = null; + // this.orientation = null; + // this.blackAndWhite = null; + // this.draft = null; + // this.useFirstPageNumber = null; + // this.horizontalDpi = null; + // this.verticalDpi = null; + // this.copies = null; + // } + + // InitClass(CPageSetup, CBaseChartObject, AscDFH.historyitem_type_PageSetup); + + // CPageSetup.prototype.setPaperSize = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_PageSetup_SetPaperSize, this.paperSize, pr)); + // this.paperSize = pr; + // }; + // CPageSetup.prototype.setFirstPageNumber = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_PageSetup_SetFirstPageNumber, this.firstPageNumber, pr)); + // this.firstPageNumber = pr; + // }; + // CPageSetup.prototype.setOrientation = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_PageSetup_SetOrientation, this.orientation, pr)); + // this.orientation = pr; + // }; + // CPageSetup.prototype.setBlackAndWhite = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_PageSetup_SetBlackAndWhite, this.blackAndWhite, pr)); + // this.blackAndWhite = pr; + // }; + // CPageSetup.prototype.setDraft = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_PageSetup_SetDraft, this.draft, pr)); + // this.draft = pr; + // }; + // CPageSetup.prototype.setUseFirstPageNumber = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_PageSetup_SetUseFirstPageNumber, this.useFirstPageNumber, pr)); + // this.useFirstPageNumber = pr; + // }; + // CPageSetup.prototype.setHorizontalDpi = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_PageSetup_SetHorizontalDpi, this.horizontalDpi, pr)); + // this.horizontalDpi = pr; + // }; + // CPageSetup.prototype.setVerticalDpi = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_PageSetup_SetVerticalDpi, this.verticalDpi, pr)); + // this.verticalDpi = pr; + // }; + // CPageSetup.prototype.setCopies = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_PageSetup_SetCopies, this.copies, pr)); + // this.copies = pr; + // }; + // + + // // ParentLabelLayout ( st instead ct_ParentLabelLayout ) + // drawingsChangesMap[AscDFH.historyitem_ParentLabelLayout_SetVal] = function (oClass, value) { + // oClass.val = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_ParentLabelLayout_SetVal] = window['AscDFH'].CChangesDrawingsObject; + // function CParentLabelLayout() { + // CBaseChartObject.call(this); + // this.val = null; + // } + + // InitClass(CParentLabelLayout, CBaseChartObject, AscDFH.historyitem_type_ParentLabelLayout); + + // CParentLabelLayout.prototype.setVal = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ParentLabelLayout_SetVal, this.val, pr)); + // this.val = pr; + // }; + + + // PercentageColorPosition + drawingsChangesMap[AscDFH.historyitem_PercentageColorPosition_SetVal] = function (oClass, value) { + oClass.val = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_PercentageColorPosition_SetVal] = window['AscDFH'].CChangesDrawingsDouble2; + + function CPercentageColorPosition() { + CBaseChartObject.call(this); + this.val = null; + } + + InitClass(CPercentageColorPosition, CBaseChartObject, AscDFH.historyitem_type_PercentageColorPosition); + + CPercentageColorPosition.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setVal(this.val); + } + + CPercentageColorPosition.prototype.setVal = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_PercentageColorPosition_SetVal, this.val, pr)); + this.val = pr; + }; + + + // // PlotArea (contains in chartFormat.js but different fields) + // drawingsChangesMap[AscDFH.historyitem_ChartExPlotArea_SetPlotAreaRegion] = function (oClass, value) { + // oClass.plotAreaRegion = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_ChartExPlotArea_SetAxis] = function (oClass, value) { + // oClass.axis = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_ChartExPlotArea_SetSpPr] = function (oClass, value) { + // oClass.spPr = value; + // }; + // drawingContentChanges[AscDFH.historyitem_ChartExPlotArea_AddAxis] = + // drawingContentChanges[AscDFH.historyitem_ChartExPlotArea_RemoveAxis] = function (oClass) { + // return oClass.axis; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExPlotArea_SetPlotAreaRegion] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExPlotArea_SetAxis] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExPlotArea_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExPlotArea_AddAxis] = window['AscDFH'].CChangesDrawingsContent; + // AscDFH.changesFactory[AscDFH.historyitem_ChartExPlotArea_RemoveAxis] = window['AscDFH'].CChangesDrawingsContent; + // function CChartExPlotArea() { + // CBaseChartObject.call(this); + // this.plotAreaRegion = null; + // this.axis = []; + // this.spPr = null; + // } + + // InitClass(CChartExPlotArea, CBaseChartObject, AscDFH.historyitem_type_ChartExPlotArea); + + // CChartExPlotArea.prototype.setPlotAreaRegion = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartExPlotArea_SetPlotAreaRegion, this.plotAreaRegion, pr)); + // this.plotAreaRegion = pr; + // }; + // CChartExPlotArea.prototype.setAxis = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartExPlotArea_SetAxis, this.axis, pr)); + // this.axis = pr; + // }; + // CChartExPlotArea.prototype.setSpPr = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartExPlotArea_SetSpPr, this.spPr, pr)); + // this.spPr = pr; + // }; + // CChartExPlotArea.prototype.addAxis = function (pr, idx) { + // var pos; + // if (AscFormat.isRealNumber(idx)) + // pos = idx; + // else + // pos = this.axis.length; + // History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_ChartExPlotArea_AddAxis, pos, [pr], true)); + // this.axis.splice(pos, 0, pr); + // }; + // CChartExPlotArea.prototype.removeAxisByPos = function (pos) { + // if (this.axis[pos]) { + // var axis = this.axis.splice(pos, 1)[0]; + // History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_ChartExPlotArea_RemoveAxis, pos, [axis], false)); + // } + // }; + + + // PlotAreaRegion + drawingsChangesMap[AscDFH.historyitem_PlotAreaRegion_SetPlotSurface] = function (oClass, value) { + oClass.plotSurface = value; + }; + + drawingContentChanges[AscDFH.historyitem_PlotAreaRegion_AddSeries] = + drawingContentChanges[AscDFH.historyitem_PlotAreaRegion_RemoveSeries] = function (oClass) { + return oClass.series; + }; + AscDFH.changesFactory[AscDFH.historyitem_PlotAreaRegion_SetPlotSurface] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_PlotAreaRegion_AddSeries] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_PlotAreaRegion_RemoveSeries] = window['AscDFH'].CChangesDrawingsContent; + + function CPlotAreaRegion() { + CBaseChartObject.call(this); + this.plotSurface = null; + this.series = []; + } + + InitClass(CPlotAreaRegion, CBaseChartObject, AscDFH.historyitem_type_PlotAreaRegion); + + CPlotAreaRegion.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.plotSurface) { + oCopy.setPlotSurface(this.plotSurface.createDuplicate()); + } + if (this.series) { + for (let i = 0; i < this.series.length; i++) { + oCopy.addSeries(this.series[i].createDuplicate(), i); + } + } + } + + CPlotAreaRegion.prototype.getMaxSeriesIdx = function () { + return this.series.length; + }; + CPlotAreaRegion.prototype.setPlotSurface = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_PlotAreaRegion_SetPlotSurface, this.plotSurface, pr)); + this.plotSurface = pr; + this.setParentToChild(pr); + }; + CPlotAreaRegion.prototype.addSeries = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.series.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_PlotAreaRegion_AddSeries, pos, [pr], true)); + this.series.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CPlotAreaRegion.prototype.removeSeriesByPos = function (pos) { + if (this.series[pos]) { + let series = this.series.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_PlotAreaRegion_RemoveSeries, pos, [series], false)); + } + }; + CPlotAreaRegion.prototype.updateReferences = function (bDisplayEmptyCellsAs, bDisplayHidden) { + + }; + CPlotAreaRegion.prototype.getAllSeries = function () { + return [].concat(this.series); + }; + CPlotAreaRegion.prototype.getAllRasterImages = function (images) { + for(let nIdx = 0; nIdx < this.series.length; ++nIdx) { + this.series[nIdx].getAllRasterImages(images); + } + }; + + // PlotSurface + drawingsChangesMap[AscDFH.historyitem_PlotSurface_SetSpPr] = function (oClass, value) { + oClass.spPr = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_PlotSurface_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + + function CPlotSurface() { + CBaseChartObject.call(this); + this.spPr = null; + } + + InitClass(CPlotSurface, CBaseChartObject, AscDFH.historyitem_type_PlotSurface); + + CPlotSurface.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.spPr) { + oCopy.setSpPr(this.spPr.createDuplicate()); + } + } + + CPlotSurface.prototype.setSpPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_PlotSurface_SetSpPr, this.spPr, pr)); + this.spPr = pr; + this.setParentToChild(pr); + }; + + + // // PrintSettings (contains in ChartFormat.js) + // drawingsChangesMap[AscDFH.historyitem_PrintSettings_SetHeaderFooter] = function (oClass, value) { + // oClass.headerFooter = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PrintSettings_SetPageMargins] = function (oClass, value) { + // oClass.pageMargins = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_PrintSettings_SetPageSetup] = function (oClass, value) { + // oClass.pageSetup = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_PrintSettings_SetHeaderFooter] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_PrintSettings_SetPageMargins] = window['AscDFH'].CChangesDrawingsString; + // AscDFH.changesFactory[AscDFH.historyitem_PrintSettings_SetPageSetup] = window['AscDFH'].CChangesDrawingsString; + // function CPrintSettings() { + // CBaseChartObject.call(this); + // this.headerFooter = null; + // this.pageMargins = null; + // this.pageSetup = null; + // } + + // InitClass(CPrintSettings, CBaseChartObject, AscDFH.historyitem_type_PrintSettings); + + // CPrintSettings.prototype.setHeaderFooter = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_PrintSettings_SetHeaderFooter, this.headerFooter, pr)); + // this.headerFooter = pr; + // }; + // CPrintSettings.prototype.setPageMargins = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_PrintSettings_SetPageMargins, this.pageMargins, pr)); + // this.pageMargins = pr; + // }; + // CPrintSettings.prototype.setPageSetup = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_PrintSettings_SetPageSetup, this.pageSetup, pr)); + // this.pageSetup = pr; + // }; + // + + // // RegionLabelLayout (st is used instead of CT_RegionLabelLayout) + // drawingsChangesMap[AscDFH.historyitem_RegionLabelLayout_SetVal] = function (oClass, value) { + // oClass.val = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_RegionLabelLayout_SetVal] = window['AscDFH'].CChangesDrawingsString; + // function CRegionLabelLayout() { + // CBaseChartObject.call(this); + // this.val = null; + // } + + // InitClass(CRegionLabelLayout, CBaseChartObject, AscDFH.historyitem_type_RegionLabelLayout); + + // CRegionLabelLayout.prototype.setVal = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_RegionLabelLayout_SetVal, this.val, pr)); + // this.val = pr; + // }; + // + + + // Series + + drawingsChangesMap[AscDFH.historyitem_Series_SetDataLabels] = function (oClass, value) { + oClass.dataLabels = value; + }; + drawingsChangesMap[AscDFH.historyitem_Series_SetDataId] = function (oClass, value) { + oClass.dataId = value; + }; + drawingsChangesMap[AscDFH.historyitem_Series_SetLayoutPr] = function (oClass, value) { + oClass.layoutPr = value; + }; + drawingsChangesMap[AscDFH.historyitem_Series_SetLayoutId] = function (oClass, value) { + oClass.layoutId = value; + }; + drawingsChangesMap[AscDFH.historyitem_Series_SetHidden] = function (oClass, value) { + oClass.hidden = value; + }; + drawingsChangesMap[AscDFH.historyitem_Series_SetOwnerIdx] = function (oClass, value) { + oClass.ownerIdx = value; + }; + drawingsChangesMap[AscDFH.historyitem_Series_SetUniqueId] = function (oClass, value) { + oClass.uniqueId = value; + }; + drawingsChangesMap[AscDFH.historyitem_Series_SetFormatIdx] = function (oClass, value) { + oClass.formatIdx = value; + }; + + drawingContentChanges[AscDFH.historyitem_Series_AddDataPt] = + drawingContentChanges[AscDFH.historyitem_Series_RemoveDataPt] = function (oClass) { + return oClass.dPt; + }; + + drawingContentChanges[AscDFH.historyitem_Series_AddAxisId] = + drawingContentChanges[AscDFH.historyitem_Series_RemoveAxisId] = function (oClass) { + return oClass.axisId; + }; + + AscDFH.changesFactory[AscDFH.historyitem_Series_SetDataLabels] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Series_SetDataId] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Series_SetLayoutPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Series_SetLayoutId] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Series_SetHidden] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_Series_SetOwnerIdx] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Series_SetUniqueId] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_Series_SetFormatIdx] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Series_AddDataPt] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_Series_RemoveDataPt] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_Series_AddAxisId] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_Series_RemoveAxisId] = window['AscDFH'].CChangesDrawingsContent; + + function CSeries() { + AscFormat.CSeriesBase.call(this); + // commented in ChartSerializeEx.h + // this.valueColors = null; + // this.valueColorPositions = null; + this.dPt = []; + this.dataLabels = null; + this.dataId = null; + this.layoutPr = null; + this.axisId = []; + this.layoutId = null; + this.hidden = null; + this.ownerIdx = null; + this.uniqueId = null; + this.formatIdx = null; + } + + InitClass(CSeries, AscFormat.CSeriesBase, AscDFH.historyitem_type_Series); + CSeries.prototype.isSupported = function () { + let nType = this.layoutId; + if(nType === AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN || + nType === AscFormat.SERIES_LAYOUT_WATERFALL || + nType === AscFormat.SERIES_LAYOUT_FUNNEL) { + return true; + } + return false; + }; + CSeries.prototype.fillObject = function (oCopy) { + AscFormat.CSeriesBase.prototype.fillObject.call(this, oCopy); + if (this.dataLabels) { + oCopy.setDataLabels(this.dataLabels.createDuplicate()); + } + oCopy.setDataId(this.dataId); + if (this.layoutPr) { + oCopy.setLayoutPr(this.layoutPr.createDuplicate()); + } + if (this.layoutId) { + oCopy.setLayoutId(this.layoutId); + } + if (this.dPt) { + for (let i = 0; i < this.dPt.length; i++) { + oCopy.addDataPt(this.dPt[i].createDuplicate(), i); + } + } + if (this.axisId) { + for (let i = 0; i < this.axisId.length; i++) { + oCopy.addAxisId(this.axisId[i].createDuplicate(), i); + } + } + oCopy.setHidden(this.hidden); + oCopy.setOwnerIdx(this.ownerIdx); + oCopy.setUniqueId(this.uniqueId); + oCopy.setFormatIdx(this.formatIdx); + } + + // CSeries.prototype.setValueColors = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Series_SetValueColors, this.valueColors, pr)); + // this.valueColors = pr; + // }; + // CSeries.prototype.setValueColorPositions = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Series_SetValueColorPositions, this.valueColorPositions, pr)); + // this.valueColorPositions = pr; + // }; + CSeries.prototype.addDataPt = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.dPt.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_Series_AddDataPt, pos, [pr], true)); + this.dPt.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CSeries.prototype.removeDataPtByPos = function (pos) { + if (this.dPt[pos]) { + let dPt = this.dPt.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_Series_RemoveDataPt, pos, [dPt], false)); + } + }; + CSeries.prototype.setDataLabels = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Series_SetDataLabels, this.dataLabels, pr)); + this.dataLabels = pr; + this.setParentToChild(pr); + }; + CSeries.prototype.setDataId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Series_SetDataId, this.dataId, pr)); + this.dataId = pr; + }; + CSeries.prototype.setLayoutPr = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Series_SetLayoutPr, this.layoutPr, pr)); + this.layoutPr = pr; + this.setParentToChild(pr); + }; + CSeries.prototype.addAxisId = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.axisId.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_Series_AddAxisId, pos, [pr], true)); + this.axisId.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CSeries.prototype.removeAxisIdByPos = function (pos) { + if (this.axisId[pos]) { + let axisId = this.axisId.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_Series_RemoveAxisId, pos, [axisId], false)); + } + }; + CSeries.prototype.setLayoutId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Series_SetLayoutId, this.layoutId, pr)); + this.layoutId = pr; + }; + CSeries.prototype.setHidden = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_Series_SetHidden, this.hidden, pr)); + this.hidden = pr; + }; + CSeries.prototype.setOwnerIdx = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Series_SetOwnerIdx, this.ownerIdx, pr)); + this.ownerIdx = pr; + }; + CSeries.prototype.setUniqueId = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Series_SetUniqueId, this.uniqueId, pr)); + this.uniqueId = pr; + }; + CSeries.prototype.setFormatIdx = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Series_SetFormatIdx, this.formatIdx, pr)); + this.formatIdx = pr; + }; + CSeries.prototype.getData = function () { + if (this.dataId === null) { + return null; + } + let oChartSpace = this.getChartSpace(); + if (!oChartSpace) { + return null; + } + let oChartData = oChartSpace.chartData; + if (!oChartData) { + return null; + } + let oSeriesData = oChartData.getData(this.dataId); + if (!oSeriesData) { + return null; + } + return oSeriesData; + }; + CSeries.prototype.getValLit = function () { + let oSeriesData = this.getData(); + if (!oSeriesData) { + return null; + } + let aValDim = oSeriesData.getValDimensions(); + if (aValDim.length > 0) { + let oDim = aValDim[0]; + if (oDim) { + return oDim.levelData[0] || null; + } + } + return null; + }; + CSeries.prototype.getAllRasterImages = function (images) { + for (let nDpt = 0; nDpt < this.dPt.length; ++nDpt) { + let oDPt = this.dPt[nDpt]; + if(oDPt && oDPt.spPr) { + oDPt.spPr.checkBlipFillRasterImage(images); + } + } + }; + CSeries.prototype.getValPts = function () { + const numLit = this.getValLit(); + return numLit ? numLit.pts : []; + }; + CSeries.prototype.getNumPts = function() { + return this.getValPts(); + }; + CSeries.prototype.getCatLit = function (type) { + let oSeriesData = this.getData(); + if (!oSeriesData) { + return null; + } + let aCatDim = oSeriesData.getCatDimensions(); + if (aCatDim.length > 0) { + let oDim = aCatDim[0]; + if (oDim) { + let index = (type === AscFormat.SERIES_LAYOUT_WATERFALL || type === AscFormat.SERIES_LAYOUT_FUNNEL) ? oDim.levelData.length - 1 : 0; + return oDim.levelData[index] || null; + } + } + return null; + }; + CSeries.prototype.getBrush = function () { + return this.compiledSeriesBrush; + }; + CSeries.prototype.getPen = function () { + return this.compiledSeriesPen; + }; + CSeries.prototype.getDptByIdx = function (idx) { + for (let nDpt = 0; nDpt < this.dPt.length; ++nDpt) { + if (this.dPt[nDpt].idx === idx) { + return this.dPt[nDpt]; + } + } + return null; + }; + CSeries.prototype.getPtByIdx = function (idx) { + let aPts = this.getNumPts(); + for (let nIdx = 0; nIdx < aPts.length; ++nIdx) { + if (aPts[nIdx].idx === idx) { + return aPts[nIdx]; + } + } + return null; + }; + CSeries.prototype.getPtPen = function (nIdx) { + let oPt = this.getPtByIdx(nIdx); + if (oPt && oPt.pen) { + return oPt.pen; + } + return this.compiledSeriesPen; + }; + + CSeries.prototype.getPtBrush = function (nIdx) { + let oPt = this.getPtByIdx(nIdx); + if (oPt && oPt.brush) { + return oPt.brush; + } + return this.compiledSeriesBrush; + }; + + CSeries.prototype.getIdx = function () { + if (!this.parent) { + return -1; + } + let aSeries = this.parent.series; + for (let nSer = 0; nSer < aSeries.length; ++nSer) { + if (this === aSeries[nSer]) { + return nSer; + } + } + return -1; + }; + + + // SeriesElementVisibilities + drawingsChangesMap[AscDFH.historyitem_SeriesElementVisibilities_SetConnectorLines] = function (oClass, value) { + oClass.connectorLines = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesElementVisibilities_SetMeanLine] = function (oClass, value) { + oClass.meanLine = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesElementVisibilities_SetMeanMarker] = function (oClass, value) { + oClass.meanMarker = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesElementVisibilities_SetNonoutliers] = function (oClass, value) { + oClass.nonoutliers = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesElementVisibilities_SetOutliers] = function (oClass, value) { + oClass.outliers = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_SeriesElementVisibilities_SetConnectorLines] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_SeriesElementVisibilities_SetMeanLine] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_SeriesElementVisibilities_SetMeanMarker] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_SeriesElementVisibilities_SetNonoutliers] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_SeriesElementVisibilities_SetOutliers] = window['AscDFH'].CChangesDrawingsBool; + + function CSeriesElementVisibilities() { + CBaseChartObject.call(this); + this.connectorLines = null; + this.meanLine = null; + this.meanMarker = null; + this.nonoutliers = null; + this.outliers = null; + } + + InitClass(CSeriesElementVisibilities, CBaseChartObject, AscDFH.historyitem_type_SeriesElementVisibilities); + + CSeriesElementVisibilities.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setConnectorLines(this.connectorLines); + oCopy.setMeanLine(this.meanLine); + oCopy.setMeanMarker(this.meanMarker); + oCopy.setNonoutliers(this.nonoutliers); + oCopy.setOutliers(this.outliers); + } + + CSeriesElementVisibilities.prototype.setConnectorLines = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_SeriesElementVisibilities_SetConnectorLines, this.connectorLines, pr)); + this.connectorLines = pr; + }; + CSeriesElementVisibilities.prototype.setMeanLine = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_SeriesElementVisibilities_SetMeanLine, this.meanLine, pr)); + this.meanLine = pr; + }; + CSeriesElementVisibilities.prototype.setMeanMarker = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_SeriesElementVisibilities_SetMeanMarker, this.meanMarker, pr)); + this.meanMarker = pr; + }; + CSeriesElementVisibilities.prototype.setNonoutliers = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_SeriesElementVisibilities_SetNonoutliers, this.nonoutliers, pr)); + this.nonoutliers = pr; + }; + CSeriesElementVisibilities.prototype.setOutliers = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_SeriesElementVisibilities_SetOutliers, this.outliers, pr)); + this.outliers = pr; + }; + + + // SeriesLayoutProperties + drawingsChangesMap[AscDFH.historyitem_SeriesLayoutProperties_SetParentLabelLayout] = function (oClass, value) { + oClass.parentLabelLayout = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesLayoutProperties_SetRegionLabelLayout] = function (oClass, value) { + oClass.regionLabelLayout = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesLayoutProperties_SetVisibility] = function (oClass, value) { + oClass.visibility = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesLayoutProperties_SetAggregation] = function (oClass, value) { + oClass.aggregation = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesLayoutProperties_SetBinning] = function (oClass, value) { + oClass.binning = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesLayoutProperties_SetGeography] = function (oClass, value) { + oClass.geography = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesLayoutProperties_SetStatistics] = function (oClass, value) { + oClass.statistics = value; + }; + drawingsChangesMap[AscDFH.historyitem_SeriesLayoutProperties_SetSubtotals] = function (oClass, value) { + oClass.subtotals = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_SeriesLayoutProperties_SetParentLabelLayout] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_SeriesLayoutProperties_SetRegionLabelLayout] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_SeriesLayoutProperties_SetVisibility] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_SeriesLayoutProperties_SetAggregation] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_SeriesLayoutProperties_SetBinning] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_SeriesLayoutProperties_SetGeography] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_SeriesLayoutProperties_SetStatistics] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_SeriesLayoutProperties_SetSubtotals] = window['AscDFH'].CChangesDrawingsObjectNoId; + + + + + function CSeriesLayoutProperties() { + CBaseChartObject.call(this); + this.parentLabelLayout = null; + this.regionLabelLayout = null; + this.visibility = null; + this.aggregation = null; + this.statistics = null; + this.subtotals = null; + this.binning = null; + // todo in ChartSerializeEx.h + this.geography = null; + } + + InitClass(CSeriesLayoutProperties, CBaseChartObject, AscDFH.historyitem_type_SeriesLayoutProperties); + + CSeriesLayoutProperties.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.visibility) { + oCopy.setVisibility(this.visibility.createDuplicate()); + } + if (this.statistics) { + oCopy.setStatistics(this.statistics.createDuplicate()); + } + if (this.subtotals) { + oCopy.setSubtotals(this.subtotals.createDuplicate()); + } + if (this.binning) { + oCopy.setBinning(this.binning.createDuplicate()); + } + if (this.geography) { + oCopy.setGeography(this.geography.createDuplicate()); + } + oCopy.setParentLabelLayout(this.parentLabelLayout); + oCopy.setRegionLabelLayout(this.regionLabelLayout); + oCopy.setAggregation(this.aggregation); + } + + CSeriesLayoutProperties.prototype.setParentLabelLayout = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_SeriesLayoutProperties_SetParentLabelLayout, this.parentLabelLayout, pr)); + this.parentLabelLayout = pr; + this.setParentToChild(pr); + }; + CSeriesLayoutProperties.prototype.setRegionLabelLayout = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_SeriesLayoutProperties_SetRegionLabelLayout, this.regionLabelLayout, pr)); + this.regionLabelLayout = pr; + this.setParentToChild(pr); + }; + CSeriesLayoutProperties.prototype.setVisibility = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_SeriesLayoutProperties_SetVisibility, this.visibility, pr)); + this.visibility = pr; + this.setParentToChild(pr); + }; + CSeriesLayoutProperties.prototype.setAggregation = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_SeriesLayoutProperties_SetAggregation, this.aggregation, pr)); + this.aggregation = pr; + }; + CSeriesLayoutProperties.prototype.setBinning = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_SeriesLayoutProperties_SetBinning, this.binning, pr)); + this.binning = pr; + this.setParentToChild(pr); + }; + CSeriesLayoutProperties.prototype.setGeography = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_SeriesLayoutProperties_SetGeography, this.geography, pr)); + this.geography = pr; + this.setParentToChild(pr); + }; + CSeriesLayoutProperties.prototype.setStatistics = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_SeriesLayoutProperties_SetStatistics, this.statistics, pr)); + this.statistics = pr; + this.setParentToChild(pr); + }; + CSeriesLayoutProperties.prototype.setSubtotals = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObjectNoId(this, AscDFH.historyitem_SeriesLayoutProperties_SetSubtotals, this.subtotals, pr)); + this.subtotals = pr; + }; + + + // Statistics + drawingsChangesMap[AscDFH.historyitem_Statistics_SetQuartileMethod] = function (oClass, value) { + oClass.quartileMethod = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_Statistics_SetQuartileMethod] = window['AscDFH'].CChangesDrawingsLong; + + function CStatistics() { + CBaseChartObject.call(this); + this.quartileMethod = null; + } + + InitClass(CStatistics, CBaseChartObject, AscDFH.historyitem_type_Statistics); + + CStatistics.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setQuartileMethod(this.quartileMethod); + } + + CStatistics.prototype.setQuartileMethod = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Statistics_SetQuartileMethod, this.quartileMethod, pr)); + this.quartileMethod = pr; + }; + + // StringDimension + + drawingContentChanges[AscDFH.historyitem_StringDimension_AddLevelData] = + drawingContentChanges[AscDFH.historyitem_StringDimension_RemoveLevelData] = function (oClass) { + return oClass.levelData; + }; + AscDFH.changesFactory[AscDFH.historyitem_StringDimension_AddLevelData] = window['AscDFH'].CChangesDrawingsContent; + AscDFH.changesFactory[AscDFH.historyitem_StringDimension_RemoveLevelData] = window['AscDFH'].CChangesDrawingsContent; + + function CStringDimension() { + CDimension.call(this); + } + + InitClass(CStringDimension, CDimension, AscDFH.historyitem_type_StringDimension); + + CStringDimension.prototype.fillObject = function (oCopy) { + CDimension.prototype.fillObject.call(this, oCopy); + if (this.levelData) { + for (let i = 0; i < this.levelData.length; i++) { + oCopy.addLevelData(this.levelData[i].createDuplicate(), i); + } + } + } + + CStringDimension.prototype.addLevelData = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) + pos = idx; + else + pos = this.levelData.length; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_StringDimension_AddLevelData, pos, [pr], true)); + this.levelData.splice(pos, 0, pr); + this.setParentToChild(pr); + }; + CStringDimension.prototype.removeLevelDataByPos = function (pos) { + if (this.levelData[pos]) { + let levelData = this.levelData.splice(pos, 1)[0]; + History.CanAddChanges() && History.Add(new CChangesDrawingsContent(this, AscDFH.historyitem_StringDimension_RemoveLevelData, pos, [levelData], false)); + } + }; + + CStringDimension.prototype.createLvl = function () { + return new AscFormat.CStrCache(); + }; + CStringDimension.prototype.fillCellVal = function (oCell, oLvl, nPtIdx) { + let sVal = oCell.getValueWithFormat(); + if (typeof sVal === "string" && sVal.length > 0) { + let oPt = new AscFormat.CStringPoint(); + oPt.setIdx(nPtIdx); + oPt.setVal(sVal); + oLvl.addPt(oPt); + } + }; + + + + + function CSubtotals() { + AscFormat.CBaseNoIdObject.call(this); + this.idx = []; + } + + InitClass(CSubtotals, AscFormat.CBaseNoIdObject, AscDFH.historyitem_type_Subtotals); + + CSubtotals.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.idx) { + for (let i = 0; i < this.idx.length; i++) { + oCopy.addIdx(this.idx[i], i); + } + } + } + + CSubtotals.prototype.addIdx = function (pr, idx) { + let pos; + if (AscFormat.isRealNumber(idx)) { + pos = idx; + } + else { + pos = this.idx.length; + } + this.idx.splice(pos, 0, pr); + }; + CSubtotals.prototype.removeIdxByPos = function (pos) { + if (this.idx[pos]) { + this.idx.splice(pos, 1); + } + }; + CSubtotals.prototype.Write_ToBinary = function(w) { + let nCount = this.idx.length; + w.WriteLong(nCount); + for(let nI = 0; nI < nCount; ++nI) { + AscFormat.writeLong(w, this.idx[nI]); + } + }; + CSubtotals.prototype.Read_FromBinary = function(r) { + let nCount = r.GetLong(); + for(let nI = 0; nI < nCount; ++nI) { + let nIdx = AscFormat.readLong(r); + this.addIdx(nIdx); + } + }; + CSubtotals.prototype.createDuplicate = function(r) { + let oCopy = new CSubtotals(); + for(let nI = 0; nI < this.idx.length; ++nI) { + oCopy.addIdx(this.idx[nI]); + } + return oCopy; + }; + + AscDFH.drawingsConstructorsMap[AscDFH.historyitem_SeriesLayoutProperties_SetSubtotals] = CSubtotals; + // // Text (CChartText instead CText) + // drawingsChangesMap[AscDFH.historyitem_Text_SetTxData] = function (oClass, value) { + // oClass.txData = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_Text_SetRich] = function (oClass, value) { + // oClass.rich = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_Text_SetTxData] = window['AscDFH'].CChangesDrawingsObject; + // AscDFH.changesFactory[AscDFH.historyitem_Text_SetRich] = window['AscDFH'].CChangesDrawingsObject; + // function CText() { + // CBaseChartObject.call(this); + // this.txData = null; + // this.rich = null; + // } + + // InitClass(CText, CBaseChartObject, AscDFH.historyitem_type_Text); + + // CText.prototype.setTxData = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Text_SetTxData, this.txData, pr)); + // this.txData = pr; + // }; + // CText.prototype.setRich = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Text_SetRich, this.rich, pr)); + // this.rich = pr; + // }; + + + // TextData + drawingsChangesMap[AscDFH.historyitem_TextData_SetF] = function (oClass, value) { + oClass.f = value; + }; + drawingsChangesMap[AscDFH.historyitem_TextData_SetV] = function (oClass, value) { + oClass.v = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_TextData_SetF] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_TextData_SetV] = window['AscDFH'].CChangesDrawingsString; + + function CTextData() { + AscFormat.CChartRefBase.call(this); + this.f = null; + this.v = null; + } + + InitClass(CTextData, AscFormat.CChartRefBase, AscDFH.historyitem_type_TextData); + + CTextData.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.f) { + oCopy.setF(this.f.createDuplicate()); + } + oCopy.setV(this.v); + } + + CTextData.prototype.setF = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_TextData_SetF, this.f, pr)); + this.f = pr; + this.setParentToChild(pr); + }; + CTextData.prototype.setV = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_TextData_SetV, this.v, pr)); + this.v = pr; + }; + + CTextData.prototype.updateCache = function() { + AscFormat.ExecuteNoHistory(function () { + if(this.f) { + let sContent = this.f.content; + + let aParsedRef = AscFormat.fParseChartFormula(sContent); + if (!Array.isArray(aParsedRef) || aParsedRef.length === 0) { + return false; + } + if (aParsedRef.length > 0) { + let oRef = aParsedRef[0]; + let oBBox = oRef.bbox; + let oWS = oRef.worksheet; + let oCell = oWS.getCell3(oBBox.r1, oBBox.c1); + if(oCell) { + let sVal = oCell.getValueWithFormat(); + if (typeof sVal === "string" && sVal.length > 0) { + this.setV(sVal); + } + } + } + } + }, this, []); + }; + + // // TickLabels (unused, bool instead this class) + // function CTickLabels() { + // CBaseChartObject.call(this); + // } + + // InitClass(CTickLabels, CBaseChartObject, AscDFH.historyitem_type_TickLabels); + // + + // TickMarks + drawingsChangesMap[AscDFH.historyitem_TickMarks_SetType] = function (oClass, value) { + oClass.type = value; + }; + drawingsChangesMap[AscDFH.historyitem_TickMarks_SetName] = function (oClass, value) { + oClass.name = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_TickMarks_SetType] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_TickMarks_SetName] = window['AscDFH'].CChangesDrawingsString; + + function CTickMarks() { + CBaseChartObject.call(this); + this.type = null; + this.name = null; + } + + InitClass(CTickMarks, CBaseChartObject, AscDFH.historyitem_type_TickMarks); + + CTickMarks.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setType(this.type); + oCopy.setName(this.name); + } + + CTickMarks.prototype.setType = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_TickMarks_SetType, this.type, pr)); + this.type = pr; + }; + CTickMarks.prototype.setName = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_TickMarks_SetName, this.name, pr)); + this.name = pr; + }; + + + // ValueAxisScaling + drawingsChangesMap[AscDFH.historyitem_ValueAxisScaling_SetMax] = function (oClass, value) { + oClass.max = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueAxisScaling_SetMin] = function (oClass, value) { + oClass.min = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueAxisScaling_SetMajorUnit] = function (oClass, value) { + oClass.majorUnit = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueAxisScaling_SetMinorUnit] = function (oClass, value) { + oClass.minorUnit = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_ValueAxisScaling_SetMax] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_ValueAxisScaling_SetMin] = window['AscDFH'].CChangesDrawingsDouble2; + AscDFH.changesFactory[AscDFH.historyitem_ValueAxisScaling_SetMajorUnit] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ValueAxisScaling_SetMinorUnit] = window['AscDFH'].CChangesDrawingsObject; + + function CValueAxisScaling() { + CBaseChartObject.call(this); + this.max = null; + this.min = null; + this.majorUnit = null; + this.minorUnit = null; + } + + InitClass(CValueAxisScaling, CBaseChartObject, AscDFH.historyitem_type_ValueAxisScaling); + + CValueAxisScaling.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setMax(this.max); + oCopy.setMin(this.min); + oCopy.setMajorUnit(this.majorUnit); + oCopy.setMinorUnit(this.minorUnit); + } + + CValueAxisScaling.prototype.setMax = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_ValueAxisScaling_SetMax, this.max, pr)); + this.max = pr; + }; + CValueAxisScaling.prototype.setMin = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_ValueAxisScaling_SetMin, this.min, pr)); + this.min = pr; + }; + CValueAxisScaling.prototype.setMajorUnit = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_ValueAxisScaling_SetMajorUnit, this.majorUnit, pr)); + this.majorUnit = pr; + }; + CValueAxisScaling.prototype.setMinorUnit = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_ValueAxisScaling_SetMinorUnit, this.minorUnit, pr)); + this.minorUnit = pr; + }; + + + // ValueColorEndPosition + drawingsChangesMap[AscDFH.historyitem_ValueColorEndPosition_SetExtremeValue] = function (oClass, value) { + oClass.extremeValue = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueColorEndPosition_SetNumber] = function (oClass, value) { + oClass.number = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueColorEndPosition_SetPercent] = function (oClass, value) { + oClass.percent = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorEndPosition_SetExtremeValue] = window['AscDFH'].CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorEndPosition_SetNumber] = window['AscDFH'].CChangesDrawingsString; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorEndPosition_SetPercent] = window['AscDFH'].CChangesDrawingsString; + + function CValueColorEndPosition() { + CBaseChartObject.call(this); + this.extremeValue = null; + this.number = null; + this.percent = null; + } + + InitClass(CValueColorEndPosition, CBaseChartObject, AscDFH.historyitem_type_ValueColorEndPosition); + + CValueColorEndPosition.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.percent) { + oCopy.setPercent(this.percent); + } + oCopy.setExtremeValue(this.extremeValue); + oCopy.setNumber(this.number); + } + + CValueColorEndPosition.prototype.setExtremeValue = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_ValueColorEndPosition_SetExtremeValue, this.extremeValue, pr)); + this.extremeValue = pr; + }; + CValueColorEndPosition.prototype.setNumber = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_ValueColorEndPosition_SetNumber, this.number, pr)); + this.number = pr; + }; + CValueColorEndPosition.prototype.setPercent = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_ValueColorEndPosition_SetPercent, this.percent, pr)); + this.percent = pr; + }; + + + // ValueColorMiddlePosition + drawingsChangesMap[AscDFH.historyitem_ValueColorMiddlePosition_SetNumber] = function (oClass, value) { + oClass.number = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueColorMiddlePosition_SetPercent] = function (oClass, value) { + oClass.percent = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorMiddlePosition_SetNumber] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorMiddlePosition_SetPercent] = window['AscDFH'].CChangesDrawingsObject; + + function CValueColorMiddlePosition() { + CBaseChartObject.call(this); + this.number = null; + this.percent = null; + } + + InitClass(CValueColorMiddlePosition, CBaseChartObject, AscDFH.historyitem_type_ValueColorMiddlePosition); + + CValueColorMiddlePosition.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.percent) { + oCopy.setPercent(this.percent); + } + oCopy.setNumber(this.number); + } + + CValueColorMiddlePosition.prototype.setNumber = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_ValueColorMiddlePosition_SetNumber, this.number, pr)); + this.number = pr; + }; + CValueColorMiddlePosition.prototype.setPercent = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_ValueColorMiddlePosition_SetPercent, this.percent, pr)); + this.percent = pr; + }; + + + // ValueColorPositions + drawingsChangesMap[AscDFH.historyitem_ValueColorPositions_SetMin] = function (oClass, value) { + oClass.min = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueColorPositions_SetMid] = function (oClass, value) { + oClass.mid = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueColorPositions_SetMax] = function (oClass, value) { + oClass.max = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueColorPositions_SetCount] = function (oClass, value) { + oClass.count = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorPositions_SetMin] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorPositions_SetMid] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorPositions_SetMax] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ValueColorPositions_SetCount] = window['AscDFH'].CChangesDrawingsLong; + + function CValueColorPositions() { + CBaseChartObject.call(this); + this.min = null; + this.mid = null; + this.max = null; + this.count = null; + } + + InitClass(CValueColorPositions, CBaseChartObject, AscDFH.historyitem_type_ValueColorPositions); + + CValueColorPositions.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + if (this.min) { + oCopy.setMin(this.min.createDuplicate()); + } + if (this.mid) { + oCopy.setMid(this.mid.createDuplicate()); + } + if (this.max) { + oCopy.setMax(this.max.createDuplicate()); + } + oCopy.setCount(this.count); + } + + CValueColorPositions.prototype.setMin = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ValueColorPositions_SetMin, this.min, pr)); + this.min = pr; + this.setParentToChild(pr); + }; + CValueColorPositions.prototype.setMid = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ValueColorPositions_SetMid, this.mid, pr)); + this.mid = pr; + this.setParentToChild(pr); + }; + CValueColorPositions.prototype.setMax = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ValueColorPositions_SetMax, this.max, pr)); + this.max = pr; + this.setParentToChild(pr); + }; + CValueColorPositions.prototype.setCount = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_ValueColorPositions_SetCount, this.count, pr)); + this.count = pr; + }; + + + // ValueColors + drawingsChangesMap[AscDFH.historyitem_ValueColors_SetMinColor] = function (oClass, value) { + oClass.minColor = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueColors_SetMidColor] = function (oClass, value) { + oClass.midColor = value; + }; + drawingsChangesMap[AscDFH.historyitem_ValueColors_SetMaxColor] = function (oClass, value) { + oClass.maxColor = value; + }; + AscDFH.changesFactory[AscDFH.historyitem_ValueColors_SetMinColor] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ValueColors_SetMidColor] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ValueColors_SetMaxColor] = window['AscDFH'].CChangesDrawingsObject; + + function CValueColors() { + CBaseChartObject.call(this); + this.minColor = null; + this.midColor = null; + this.maxColor = null; + } + + InitClass(CValueColors, CBaseChartObject, AscDFH.historyitem_type_ValueColors); + + CValueColors.prototype.fillObject = function (oCopy) { + CBaseChartObject.prototype.fillObject.call(this, oCopy); + oCopy.setMinColor(this.minColor); + oCopy.setMidColor(this.midColor); + oCopy.setMaxColor(this.maxColor); + } + + CValueColors.prototype.setMinColor = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ValueColors_SetMinColor, this.minColor, pr)); + this.minColor = pr; + this.setParentToChild(pr); + }; + CValueColors.prototype.setMidColor = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ValueColors_SetMidColor, this.midColor, pr)); + this.midColor = pr; + this.setParentToChild(pr); + }; + CValueColors.prototype.setMaxColor = function (pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ValueColors_SetMaxColor, this.maxColor, pr)); + this.maxColor = pr; + this.setParentToChild(pr); + }; + + + // Simple Types + + + // // SidePos + // drawingsChangesMap[AscDFH.historyitem_SidePos_SetSidePos] = function (oClass, value) { + // oClass.sidePos = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_SidePos_SetSidePos] = window['AscDFH'].CChangesDrawingsLong; + // function CSidePos() { + // CBaseChartObject.call(this); + // this.sidePos = null; + // } + + // InitClass(CSidePos, CBaseChartObject, AscDFH.historyitem_type_SidePos); + + // CSidePos.prototype.setSidePos = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_SidePos_SetSidePos, this.sidePos, pr)); + // this.sidePos = pr; + // }; + + + // // PosAlign + // drawingsChangesMap[AscDFH.historyitem_PosAlign_SetPosAlign] = function (oClass, value) { + // oClass.posAlign = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_PosAlign_SetPosAlign] = window['AscDFH'].CChangesDrawingsLong; + // function CPosAlign() { + // CBaseChartObject.call(this); + // this.posAlign = null; + // } + + // InitClass(CPosAlign, CBaseChartObject, AscDFH.historyitem_type_PosAlign); + + // CPosAlign.prototype.setPosAlign = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_PosAlign_SetPosAlign, this.posAlign, pr)); + // this.posAlign = pr; + // }; + + + // // AxisUnit + // drawingsChangesMap[AscDFH.historyitem_AxisUnit_SetAxisUnit] = function (oClass, value) { + // oClass.axisUnit = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_AxisUnit_SetAxisUnit] = window['AscDFH'].CChangesDrawingsLong; + // function CAxisUnit() { + // CBaseChartObject.call(this); + // this.axisUnit = null; + // } + + // InitClass(CAxisUnit, CBaseChartObject, AscDFH.historyitem_type_AxisUnit); + + // CAxisUnit.prototype.setAxisUnit = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_AxisUnit_SetAxisUnit, this.axisUnit, pr)); + // this.axisUnit = pr; + // }; + + + // // FormulaDirection + // drawingsChangesMap[AscDFH.historyitem_FormulaDirection_SetFormulaDirection] = function (oClass, value) { + // oClass.formulaDirection = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_FormulaDirection_SetFormulaDirection] = window['AscDFH'].CChangesDrawingsLong; + // function CFormulaDirection() { + // CBaseChartObject.call(this); + // this.formulaDirection = null; + // } + + // InitClass(CFormulaDirection, CBaseChartObject, AscDFH.historyitem_type_FormulaDirection); + + // CFormulaDirection.prototype.setFormulaDirection = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_FormulaDirection_SetFormulaDirection, this.formulaDirection, pr)); + // this.formulaDirection = pr; + // }; + + + // // IntervalClosedSide + // drawingsChangesMap[AscDFH.historyitem_IntervalClosedSide_SetIntervalClosedSide] = function (oClass, value) { + // oClass.intervalClosedSide = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_IntervalClosedSide_SetIntervalClosedSide] = window['AscDFH'].CChangesDrawingsLong; + // function CIntervalClosedSide() { + // CBaseChartObject.call(this); + // this.intervalClosedSide = null; + // } + + // InitClass(CIntervalClosedSide, CBaseChartObject, AscDFH.historyitem_type_IntervalClosedSide); + + // CIntervalClosedSide.prototype.setIntervalClosedSide = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_IntervalClosedSide_SetIntervalClosedSide, this.intervalClosedSide, pr)); + // this.intervalClosedSide = pr; + // }; + + + // // DimensionType (NumericDimensionType) + // drawingsChangesMap[AscDFH.historyitem_DimensionType_SetDimensionType] = function (oClass, value) { + // oClass.dimensionType = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_DimensionType_SetDimensionType] = window['AscDFH'].CChangesDrawingsLong; + // function CDimensionType() { + // CBaseChartObject.call(this); + // this.dimensionType = null; + // } + + // InitClass(CDimensionType, CBaseChartObject, AscDFH.historyitem_type_DimensionType); + + // CDimensionType.prototype.setDimensionType = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_DimensionType_SetDimensionType, this.dimensionType, pr)); + // this.dimensionType = pr; + // }; + + + // // QuartileMethod + // drawingsChangesMap[AscDFH.historyitem_QuartileMethod_SetQuartileMethod] = function (oClass, value) { + // oClass.quartileMethod = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_QuartileMethod_SetQuartileMethod] = window['AscDFH'].CChangesDrawingsLong; + // function CQuartileMethod() { + // CBaseChartObject.call(this); + // this.quartileMethod = null; + // } + + // InitClass(CQuartileMethod, CBaseChartObject, AscDFH.historyitem_type_QuartileMethod); + + // CQuartileMethod.prototype.setQuartileMethod = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_QuartileMethod_SetQuartileMethod, this.quartileMethod, pr)); + // this.quartileMethod = pr; + // }; + + + // // DataLabelPos + // drawingsChangesMap[AscDFH.historyitem_DataLabelPos_SetDataLabelPos] = function (oClass, value) { + // oClass.dataLabelPos = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_DataLabelPos_SetDataLabelPos] = window['AscDFH'].CChangesDrawingsLong; + // function CDataLabelPos() { + // CBaseChartObject.call(this); + // this.dataLabelPos = null; + // } + + // InitClass(CDataLabelPos, CBaseChartObject, AscDFH.historyitem_type_DataLabelPos); + + // CDataLabelPos.prototype.setDataLabelPos = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_DataLabelPos_SetDataLabelPos, this.dataLabelPos, pr)); + // this.dataLabelPos = pr; + // }; + + + // // SeriesLayout + // drawingsChangesMap[AscDFH.historyitem_SeriesLayout_SetSeriesLayout] = function (oClass, value) { + // oClass.seriesLayout = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_SeriesLayout_SetSeriesLayout] = window['AscDFH'].CChangesDrawingsLong; + // function CSeriesLayout() { + // CBaseChartObject.call(this); + // this.seriesLayout = null; + // } + + // InitClass(CSeriesLayout, CBaseChartObject, AscDFH.historyitem_type_SeriesLayout); + + // CSeriesLayout.prototype.setSeriesLayout = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_SeriesLayout_SetSeriesLayout, this.seriesLayout, pr)); + // this.seriesLayout = pr; + // }; + + + // // TickMarksType + // drawingsChangesMap[AscDFH.historyitem_TickMarksType_SetTickMarksType] = function (oClass, value) { + // oClass.tickMarksType = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_TickMarksType_SetTickMarksType] = window['AscDFH'].CChangesDrawingsLong; + // function CTickMarksType() { + // CBaseChartObject.call(this); + // this.tickMarksType = null; + // } + + // InitClass(CTickMarksType, CBaseChartObject, AscDFH.historyitem_type_TickMarksType); + + // CTickMarksType.prototype.setTickMarksType = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_TickMarksType_SetTickMarksType, this.tickMarksType, pr)); + // this.tickMarksType = pr; + // }; + + + // // EntityType + // drawingsChangesMap[AscDFH.historyitem_EntityType_SetEntityType] = function (oClass, value) { + // oClass.entityType = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_EntityType_SetEntityType] = window['AscDFH'].CChangesDrawingsLong; + // function CEntityType() { + // CBaseChartObject.call(this); + // this.entityType = null; + // } + + // InitClass(CEntityType, CBaseChartObject, AscDFH.historyitem_type_EntityType); + + // CEntityType.prototype.setEntityType = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_EntityType_SetEntityType, this.entityType, pr)); + // this.entityType = pr; + // }; + + + // // GeoProjectionType + // drawingsChangesMap[AscDFH.historyitem_GeoProjectionType_SetGeoProjectionType] = function (oClass, value) { + // oClass.geoProjectionType = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_GeoProjectionType_SetGeoProjectionType] = window['AscDFH'].CChangesDrawingsLong; + // function CGeoProjectionType() { + // CBaseChartObject.call(this); + // this.geoProjectionType = null; + // } + + // InitClass(CGeoProjectionType, CBaseChartObject, AscDFH.historyitem_type_GeoProjectionType); + + // CGeoProjectionType.prototype.setGeoProjectionType = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_GeoProjectionType_SetGeoProjectionType, this.geoProjectionType, pr)); + // this.geoProjectionType = pr; + // }; + + + // // GeoMappingLevel + // drawingsChangesMap[AscDFH.historyitem_GeoMappingLevel_SetGeoMappingLevel] = function (oClass, value) { + // oClass.geoMappingLevel = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_GeoMappingLevel_SetGeoMappingLevel] = window['AscDFH'].CChangesDrawingsLong; + // function CGeoMappingLevel() { + // CBaseChartObject.call(this); + // this.geoMappingLevel = null; + // } + + // InitClass(CGeoMappingLevel, CBaseChartObject, AscDFH.historyitem_type_GeoMappingLevel); + + // CGeoMappingLevel.prototype.setGeoMappingLevel = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_GeoMappingLevel_SetGeoMappingLevel, this.geoMappingLevel, pr)); + // this.geoMappingLevel = pr; + // }; + + + // // PageOrientation + // drawingsChangesMap[AscDFH.historyitem_PageOrientation_SetPageOrientation] = function (oClass, value) { + // oClass.pageOrientation = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_PageOrientation_SetPageOrientation] = window['AscDFH'].CChangesDrawingsLong; + // function CPageOrientation() { + // CBaseChartObject.call(this); + // this.pageOrientation = null; + // } + + // InitClass(CPageOrientation, CBaseChartObject, AscDFH.historyitem_type_PageOrientation); + + // CPageOrientation.prototype.setPageOrientation = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_PageOrientation_SetPageOrientation, this.pageOrientation, pr)); + // this.pageOrientation = pr; + // }; + + + // // LabelLayout (ST_ParentLabelLayout) + // drawingsChangesMap[AscDFH.historyitem_LabelLayout_SetLabelLayout] = function (oClass, value) { + // oClass.labelLayout = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_LabelLayout_SetLabelLayout] = window['AscDFH'].CChangesDrawingsLong; + // function CLabelLayout() { + // CBaseChartObject.call(this); + // this.labelLayout = null; + // } + + // InitClass(CLabelLayout, CBaseChartObject, AscDFH.historyitem_type_LabelLayout); + + // CLabelLayout.prototype.setPageOrientation = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_LabelLayout_SetLabelLayout, this.labelLayout, pr)); + // this.labelLayout = pr; + // }; + + + // // RegionLabelLayout (ST) + // drawingsChangesMap[AscDFH.historyitem_RegionLabelLayout_SetRegionLabelLayout] = function (oClass, value) { + // oClass.regionLabelLayout = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_RegionLabelLayout_SetRegionLabelLayout] = window['AscDFH'].CChangesDrawingsLong; + // function CRegionLabelLayout() { + // CBaseChartObject.call(this); + // this.regionLabelLayout = null; + // } + + // InitClass(CRegionLabelLayout, CBaseChartObject, AscDFH.historyitem_type_RegionLabelLayout); + + // CRegionLabelLayout.prototype.setPageOrientation = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_RegionLabelLayout_SetRegionLabelLayout, this.regionLabelLayout, pr)); + // this.regionLabelLayout = pr; + // }; + + + // // DoubleOrAutomatic + // drawingsChangesMap[AscDFH.historyitem_DoubleOrAutomatic_SetValue] = function (oClass, value) { + // oClass.value = value; + // }; + // drawingsChangesMap[AscDFH.historyitem_DoubleOrAutomatic_SetType] = function (oClass, value) { + // oClass.type = value; + // }; + // AscDFH.changesFactory[AscDFH.historyitem_DoubleOrAutomatic_SetValue] = window['AscDFH'].CChangesDrawingsLong; + // AscDFH.changesFactory[AscDFH.historyitem_DoubleOrAutomatic_SetType] = window['AscDFH'].CChangesDrawingsDouble2; + + // const EDoubleOrAutomatic = { typeAuto: 0, typeDouble: 1}; + // function CDoubleOrAutomatic() { + // CBaseChartObject.call(this); + // this.value = 0; + // this.type = EDoubleOrAutomatic.typeAuto; + // } + + // InitClass(CDoubleOrAutomatic, CBaseChartObject, AscDFH.historyitem_type_DoubleOrAutomatic); + // CDoubleOrAutomatic.prototype.setValue = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_DoubleOrAutomatic_SetValue, this.value, pr)); + // this.value = pr; + // }; + // CDoubleOrAutomatic.prototype.setType = function (pr) { + // History.CanAddChanges() && History.Add(new CChangesDrawingsDouble2(this, AscDFH.historyitem_DoubleOrAutomatic_SetType, this.type, pr)); + // this.type = pr; + // }; + + //--------------------------------------------------------export---------------------------------------------------- + window['AscFormat'] = window['AscFormat'] || {}; + window['AscFormat'].CAddress = CAddress; + window['AscFormat'].CAxis = CAxis; + // window['AscFormat'].CChartExTitle = CChartExTitle; + // window['AscFormat'].CAxisTitle = CAxisTitle; + window['AscFormat'].CAxisUnits = CAxisUnits; + window['AscFormat'].CAxisUnitsLabel = CAxisUnitsLabel; + window['AscFormat'].CBinning = CBinning; + window['AscFormat'].CCategoryAxisScaling = CCategoryAxisScaling; + window['AscFormat'].CChartData = CChartData; + window['AscFormat'].CClear = CClear; + window['AscFormat'].CCopyrights = CCopyrights; + window['AscFormat'].CData = CData; + window['AscFormat'].CDataLabel = CDataLabel; + window['AscFormat'].CDataLabelHidden = CDataLabelHidden; + window['AscFormat'].CDataLabels = CDataLabels; + window['AscFormat'].CDataLabelVisibilities = CDataLabelVisibilities; + window['AscFormat'].CDataPoint = CDataPoint; + // window['AscFormat'].CExtension = CExtension; + // window['AscFormat'].CExtensionList = CExtensionList; + // window['AscFormat'].CExternalData = CExternalData; + window['AscFormat'].CFormatOverride = CFormatOverride; + window['AscFormat'].CFormatOverrides = CFormatOverrides; + window['AscFormat'].CFormula = CFormula; + window['AscFormat'].CGeoCache = CGeoCache; + window['AscFormat'].CGeoChildEntities = CGeoChildEntities; + window['AscFormat'].CGeoChildEntitiesQuery = CGeoChildEntitiesQuery; + window['AscFormat'].CGeoChildEntitiesQueryResult = CGeoChildEntitiesQueryResult; + window['AscFormat'].CGeoChildEntitiesQueryResults = CGeoChildEntitiesQueryResults; + window['AscFormat'].CGeoChildTypes = CGeoChildTypes; + window['AscFormat'].CGeoData = CGeoData; + window['AscFormat'].CGeoDataEntityQuery = CGeoDataEntityQuery; + window['AscFormat'].CGeoDataEntityQueryResult = CGeoDataEntityQueryResult; + window['AscFormat'].CGeoDataEntityQueryResults = CGeoDataEntityQueryResults; + window['AscFormat'].CGeoDataPointQuery = CGeoDataPointQuery; + window['AscFormat'].CGeoDataPointToEntityQuery = CGeoDataPointToEntityQuery; + window['AscFormat'].CGeoDataPointToEntityQueryResult = CGeoDataPointToEntityQueryResult; + window['AscFormat'].CGeoDataPointToEntityQueryResults = CGeoDataPointToEntityQueryResults; + window['AscFormat'].CGeography = CGeography; + window['AscFormat'].CGeoHierarchyEntity = CGeoHierarchyEntity; + window['AscFormat'].CGeoLocation = CGeoLocation; + window['AscFormat'].CGeoLocationQuery = CGeoLocationQuery; + window['AscFormat'].CGeoLocationQueryResult = CGeoLocationQueryResult; + window['AscFormat'].CGeoLocationQueryResults = CGeoLocationQueryResults; + window['AscFormat'].CGeoLocations = CGeoLocations; + window['AscFormat'].CGeoPolygon = CGeoPolygon; + window['AscFormat'].CGeoPolygons = CGeoPolygons; + window['AscFormat'].CGridlines = CGridlines; + // window['AscFormat'].CHeaderFooter = CHeaderFooter; + // window['AscFormat'].CChartExLegend = CChartExLegend; + // window['AscFormat'].CNumberColorPosition = CNumberColorPosition; + // window['AscFormat'].CNumberFormat = CNumberFormat; + + // window['AscFormat'].CPageMargins = CPageMargins; + // window['AscFormat'].CPageSetup = CPageSetup; + // window['AscFormat'].CParentLabelLayout = CParentLabelLayout; + window['AscFormat'].CPercentageColorPosition = CPercentageColorPosition; + // window['AscFormat'].CChartExPlotArea = CChartExPlotArea; + window['AscFormat'].CPlotAreaRegion = CPlotAreaRegion; + window['AscFormat'].CPlotSurface = CPlotSurface; + // window['AscFormat'].CPrintSettings = CPrintSettings; + window['AscFormat'].CSeries = CSeries; + window['AscFormat'].CSeriesElementVisibilities = CSeriesElementVisibilities; + window['AscFormat'].CSeriesLayoutProperties = CSeriesLayoutProperties; + window['AscFormat'].CStatistics = CStatistics; + window['AscFormat'].CDimension = CDimension; + window['AscFormat'].CNumericDimension = CNumericDimension; + window['AscFormat'].CStringDimension = CStringDimension; + window['AscFormat'].CSubtotals = CSubtotals; + // window['AscFormat'].CText = CText; + window['AscFormat'].CTextData = CTextData; + // window['AscFormat'].CTickLabels = CTickLabels; + window['AscFormat'].CTickMarks = CTickMarks; + window['AscFormat'].CValueAxisScaling = CValueAxisScaling; + window['AscFormat'].CValueColorEndPosition = CValueColorEndPosition; + window['AscFormat'].CValueColorMiddlePosition = CValueColorMiddlePosition; + window['AscFormat'].CValueColorPositions = CValueColorPositions; + window['AscFormat'].CValueColors = CValueColors; + // --------------------------------------------- + // Simple Types + // --------------------------------------------- + // window['AscFormat'].CSidePos = CSidePos; + // window['AscFormat'].CPosAlign = CPosAlign; + // window['AscFormat'].CAxisUnit = CAxisUnit; + // window['AscFormat'].CFormulaDirection = CFormulaDirection; + // window['AscFormat'].CIntervalClosedSide = CIntervalClosedSide; + // window['AscFormat'].CDimensionType = CDimensionType; + // window['AscFormat'].CQuartileMethod = CQuartileMethod; + // window['AscFormat'].CDataLabelPos = CDataLabelPos; + // window['AscFormat'].CSeriesLayout = CSeriesLayout; + // window['AscFormat'].CTickMarksType = CTickMarksType; + // window['AscFormat'].CEntityType = CEntityType; + // window['AscFormat'].CGeoProjectionType = CGeoProjectionType; + // window['AscFormat'].CGeoMappingLevel = CGeoMappingLevel; + // window['AscFormat'].CPageOrientation = CPageOrientation; + // window['AscFormat'].CLabelLayout = CLabelLayout; + // window['AscFormat'].CRegionLabelLayout = CRegionLabelLayout; + // window['AscFormat'].CDoubleOrAutomatic = CDoubleOrAutomatic; + + window['AscFormat'].SERIES_LAYOUT_BOX_WHISKER = SERIES_LAYOUT_BOX_WHISKER; + window['AscFormat'].SERIES_LAYOUT_CLUSTERED_COLUMN = SERIES_LAYOUT_CLUSTERED_COLUMN; + window['AscFormat'].SERIES_LAYOUT_FUNNEL = SERIES_LAYOUT_FUNNEL; + window['AscFormat'].SERIES_LAYOUT_PARETO_LINE = SERIES_LAYOUT_PARETO_LINE; + window['AscFormat'].SERIES_LAYOUT_REGION_MAP = SERIES_LAYOUT_REGION_MAP; + window['AscFormat'].SERIES_LAYOUT_SUNBURST = SERIES_LAYOUT_SUNBURST; + window['AscFormat'].SERIES_LAYOUT_TREEMAP = SERIES_LAYOUT_TREEMAP; + window['AscFormat'].SERIES_LAYOUT_WATERFALL = SERIES_LAYOUT_WATERFALL; + + window['AscFormat'].DATA_LABEL_POS_BEST_FIT = DATA_LABEL_POS_BEST_FIT; + window['AscFormat'].DATA_LABEL_POS_B = DATA_LABEL_POS_B; + window['AscFormat'].DATA_LABEL_POS_CTR = DATA_LABEL_POS_CTR; + window['AscFormat'].DATA_LABEL_POS_IN_BASE = DATA_LABEL_POS_IN_BASE; + window['AscFormat'].DATA_LABEL_POS_IN_END = DATA_LABEL_POS_IN_END; + window['AscFormat'].DATA_LABEL_POS_L = DATA_LABEL_POS_L; + window['AscFormat'].DATA_LABEL_POS_OUT_END = DATA_LABEL_POS_OUT_END; + window['AscFormat'].DATA_LABEL_POS_R = DATA_LABEL_POS_R; + window['AscFormat'].DATA_LABEL_POS_T = DATA_LABEL_POS_T; + + window['AscFormat'].PARENT_LABEL_LAYOUT_NONE = PARENT_LABEL_LAYOUT_NONE; + window['AscFormat'].PARENT_LABEL_LAYOUT_BANNER = PARENT_LABEL_LAYOUT_BANNER; + window['AscFormat'].PARENT_LABEL_LAYOUT_OVERLAPPING = PARENT_LABEL_LAYOUT_OVERLAPPING; + + window['AscFormat'].REGION_LABEL_LAYOUT_NONE = REGION_LABEL_LAYOUT_NONE; + window['AscFormat'].REGION_LABEL_LAYOUT_BEST_FIT_ONLY = REGION_LABEL_LAYOUT_BEST_FIT_ONLY; + window['AscFormat'].REGION_LABEL_LAYOUT_SHOW_ALL = REGION_LABEL_LAYOUT_SHOW_ALL; + + window['AscFormat'].INTERVAL_CLOSED_SIDE_L = INTERVAL_CLOSED_SIDE_L; + window['AscFormat'].INTERVAL_CLOSED_SIDE_R = INTERVAL_CLOSED_SIDE_R; + + window['AscFormat'].AXIS_UNIT_HUNDREDS = AXIS_UNIT_HUNDREDS; + window['AscFormat'].AXIS_UNIT_THOUSANDS = AXIS_UNIT_THOUSANDS; + window['AscFormat'].AXIS_UNIT_TEN_THOUSANDS = AXIS_UNIT_TEN_THOUSANDS; + window['AscFormat'].AXIS_UNIT_HUNDRED_THOUSANDS = AXIS_UNIT_HUNDRED_THOUSANDS; + window['AscFormat'].AXIS_UNIT_MILLIONS = AXIS_UNIT_MILLIONS; + window['AscFormat'].AXIS_UNIT_TEN_MILLIONS = AXIS_UNIT_TEN_MILLIONS; + window['AscFormat'].AXIS_UNIT_HUNDRED_MILLIONS = AXIS_UNIT_HUNDRED_MILLIONS; + window['AscFormat'].AXIS_UNIT_BILLIONS = AXIS_UNIT_BILLIONS; + window['AscFormat'].AXIS_UNIT_TRILLIONS = AXIS_UNIT_TRILLIONS; + window['AscFormat'].AXIS_UNIT_PERCENTAGE = AXIS_UNIT_PERCENTAGE; + + window['AscFormat'].SIDE_POS_L = SIDE_POS_L; + window['AscFormat'].SIDE_POS_T = SIDE_POS_T; + window['AscFormat'].SIDE_POS_R = SIDE_POS_R; + window['AscFormat'].SIDE_POS_B = SIDE_POS_B; + + window['AscFormat'].POS_ALIGN_MIN = POS_ALIGN_MIN; + window['AscFormat'].POS_ALIGN_CTR = POS_ALIGN_CTR; + window['AscFormat'].POS_ALIGN_MAX = POS_ALIGN_MAX; + + window['AscFormat'].TICK_MARKS_TYPE_IN = TICK_MARKS_TYPE_IN; + window['AscFormat'].TICK_MARKS_TYPE_OUT = TICK_MARKS_TYPE_OUT; + window['AscFormat'].TICK_MARKS_TYPE_CROSS = TICK_MARKS_TYPE_CROSS; + window['AscFormat'].TICK_MARKS_TYPE_NONE = TICK_MARKS_TYPE_NONE; + + window['AscFormat'].QUARTILE_METHOD_INCLUSIVE = QUARTILE_METHOD_INCLUSIVE; + window['AscFormat'].QUARTILE_METHOD_EXCLUSIVE = QUARTILE_METHOD_EXCLUSIVE; + + window['AscFormat'].STRING_DIMENSION_TYPE_CAT = STRING_DIMENSION_TYPE_CAT; + window['AscFormat'].STRING_DIMENSION_TYPE_COLOR_STR = STRING_DIMENSION_TYPE_COLOR_STR; + + window['AscFormat'].NUMERIC_DIMENSION_TYPE_VAL = NUMERIC_DIMENSION_TYPE_VAL; + window['AscFormat'].NUMERIC_DIMENSION_TYPE_X = NUMERIC_DIMENSION_TYPE_X; + window['AscFormat'].NUMERIC_DIMENSION_TYPE_Y = NUMERIC_DIMENSION_TYPE_Y; + window['AscFormat'].NUMERIC_DIMENSION_TYPE_SIZE = NUMERIC_DIMENSION_TYPE_SIZE; + window['AscFormat'].NUMERIC_DIMENSION_TYPE_COLOR_VAL = NUMERIC_DIMENSION_TYPE_COLOR_VAL; + + window['AscFormat'].FORMULA_DIRECTION_COL = FORMULA_DIRECTION_COL; + window['AscFormat'].FORMULA_DIRECTION_ROW = FORMULA_DIRECTION_ROW; +})(window); diff --git a/common/Drawings/Format/ChartFormat.js b/common/Drawings/Format/ChartFormat.js index 5b4a2a1d38..5f075dfbe3 100644 --- a/common/Drawings/Format/ChartFormat.js +++ b/common/Drawings/Format/ChartFormat.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -101,6 +101,9 @@ drawingsChangesMap[AscDFH.historyitem_PlotArea_SetDateAx] = function(oClass, value) { oClass.dateAx = value; }; + drawingsChangesMap[AscDFH.historyitem_PlotArea_SetPlotAreaRegion] = function(oClass, value) { + oClass.plotAreaRegion = value; + }; drawingsChangesMap[AscDFH.historyitem_PlotArea_SetDTable] = function(oClass, value) { oClass.dTable = value; }; @@ -544,6 +547,9 @@ oClass.strRef = value; oClass.onChangeDataRefs(); }; + drawingsChangesMap[AscDFH.historyitem_ChartText_SetTxData] = function(oClass, value) { + oClass.txData = value; + }; drawingsChangesMap[AscDFH.historyitem_ChartText_SetRich] = function(oClass, value) { oClass.rich = value; }; @@ -723,6 +729,9 @@ drawingsChangesMap[AscDFH.historyitem_Legend_SetSpPr] = function(oClass, value) { oClass.spPr = value; }; + drawingsChangesMap[AscDFH.historyitem_Legend_SetAlign] = function(oClass, value) { + oClass.align = value; + }; drawingsChangesMap[AscDFH.historyitem_Legend_SetTxPr] = function(oClass, value) { oClass.txPr = value; }; @@ -838,6 +847,9 @@ drawingsChangesMap[AscDFH.historyitem_NumLit_SetPtCount] = function(oClass, value) { oClass.ptCount = value; }; + drawingsChangesMap[AscDFH.historyitem_NumLit_SetName] = function(oClass, value) { + oClass.name = value; + }; drawingsChangesMap[AscDFH.historyitem_OfPieChart_SetDLbls] = function(oClass, value) { oClass.dLbls = value; }; @@ -1034,6 +1046,9 @@ drawingsChangesMap[AscDFH.historyitem_StrCache_SetPtCount] = function(oClass, value) { oClass.ptCount = value; }; + drawingsChangesMap[AscDFH.historyitem_StrCache_SetName] = function(oClass, value) { + oClass.name = value; + }; drawingsChangesMap[AscDFH.historyitem_StrPoint_SetIdx] = function(oClass, value) { oClass.idx = value; }; @@ -1089,6 +1104,12 @@ drawingsChangesMap[AscDFH.historyitem_Title_SetTxPr] = function(oClass, value) { oClass.txPr = value; }; + drawingsChangesMap[AscDFH.historyitem_Title_SetAlign] = function(oClass, value) { + oClass.align = value; + }; + drawingsChangesMap[AscDFH.historyitem_Title_SetPos] = function(oClass, value) { + oClass.pos = value; + }; drawingsChangesMap[AscDFH.historyitem_Trendline_SetBackward] = function(oClass, value) { oClass.backward = value; }; @@ -1612,6 +1633,7 @@ AscDFH.changesFactory[AscDFH.historyitem_Marker_SetSymbol] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_MultiLvlStrCache_SetPtCount] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_NumLit_SetPtCount] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_NumLit_SetName] = window['AscDFH'].CChangesDrawingsString; AscDFH.changesFactory[AscDFH.historyitem_OfPieChart_SetGapWidth] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_OfPieChart_SetOfPieType] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_OfPieChart_SetSecondPieSize] = window['AscDFH'].CChangesDrawingsLong; @@ -1628,6 +1650,7 @@ AscDFH.changesFactory[AscDFH.historyitem_ScatterSer_SetIdx] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_ScatterSer_SetOrder] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_StrCache_SetPtCount] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_StrCache_SetName] = window['AscDFH'].CChangesDrawingsString; AscDFH.changesFactory[AscDFH.historyitem_StringLiteral_SetPtCount] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_StrPoint_SetIdx] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_SurfaceSeries_SetIdx] = window['AscDFH'].CChangesDrawingsLong; @@ -1695,6 +1718,7 @@ AscDFH.changesFactory[AscDFH.historyitem_DLbl_SetTx] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_DLbl_SetTxPr] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_DLbl_SetParent] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_PlotArea_SetPlotAreaRegion] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_PlotArea_SetDTable] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_PlotArea_SetLayout] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_PlotArea_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; @@ -1768,6 +1792,7 @@ AscDFH.changesFactory[AscDFH.historyitem_Cat_SetStrLit] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_Cat_SetStrRef] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ChartFormatSetChart] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_ChartText_SetTxData] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ChartText_SetRich] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ChartText_SetStrRef] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_DLbls_SetLeaderLines] = window['AscDFH'].CChangesDrawingsObject; @@ -1787,6 +1812,7 @@ AscDFH.changesFactory[AscDFH.historyitem_ErrBars_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_Legend_SetLayout] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_Legend_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Legend_SetAlign] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_Legend_SetTxPr] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_LegendEntry_SetTxPr] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_LineChart_SetDLbls] = window['AscDFH'].CChangesDrawingsObject; @@ -1851,6 +1877,8 @@ AscDFH.changesFactory[AscDFH.historyitem_Title_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_Title_SetTx] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_Title_SetTxPr] = window['AscDFH'].CChangesDrawingsObject; + AscDFH.changesFactory[AscDFH.historyitem_Title_SetAlign] = window['AscDFH'].CChangesDrawingsLong; + AscDFH.changesFactory[AscDFH.historyitem_Title_SetPos] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_Trendline_SetSpPr] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_Trendline_SetTrendlineLbl] = window['AscDFH'].CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_UpDownBars_SetDownBars] = window['AscDFH'].CChangesDrawingsObject; @@ -1991,13 +2019,6 @@ AscDFH.changesFactory[AscDFH.historyitem_MarkerLayoutSymbol] = window['AscDFH'].CChangesDrawingsLong; AscDFH.changesFactory[AscDFH.historyitem_MarkerLayoutSize] = window['AscDFH'].CChangesDrawingsLong; - AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryLnRef] = AscFormat.StyleRef; - AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryFillRef] = AscFormat.StyleRef; - AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryEffectRef] = AscFormat.StyleRef; - AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryFontRef] = AscFormat.FontRef; - AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryBodyPr] = AscFormat.CBodyPr; - - drawingContentChanges[AscDFH.historyitem_PlotArea_AddAxis] = drawingContentChanges[AscDFH.historyitem_BarChart_AddAxId] = drawingContentChanges[AscDFH.historyitem_AreaChart_AddAxId] = @@ -2116,9 +2137,17 @@ } InitClass(CBaseChartObject, CBaseFormatObject, AscDFH.historyitem_type_Unknown); + CBaseChartObject.prototype.generateSmartArtDrawingPart = function () {}; CBaseChartObject.prototype.notAllowedWithoutId = function() { return true; }; + CBaseChartObject.prototype.isChartEx = function() { + const oChartSpace = this.getChartSpace(); + if(oChartSpace) { + return oChartSpace.isChartEx(); + } + return false; + }; CBaseChartObject.prototype.getChartSpace = function() { var oCurElement = this; while(oCurElement) { @@ -2184,7 +2213,7 @@ if(oSpPr && oSpPr.Fill) { oFill = oSpPr.Fill.createDuplicate(); var bIsSpecialStyle = oStyleEntry.isSpecialStyle(); - oFill.checkPhColor(oFillRefUnicolor || aColors[nIdx], bIsSpecialStyle); + oFill.checkPhColor(oFillRefUnicolor || aColors[nIdx]); if(bIsSpecialStyle) { if(AscFormat.isRealNumber(nIdx)) { var nPatternType = oStyleEntry.getSpecialPatternType(nIdx); @@ -2199,7 +2228,7 @@ oLn = oTheme.getLnStyle(oLineRef.idx, oLineRefUnicolor); if(oSpPr && oSpPr.ln) { oLn = oSpPr.ln.createDuplicate(); - oLn.Fill.checkPhColor(oLineRefUnicolor, false); + oLn.Fill.checkPhColor(oLineRefUnicolor); } if(AscFormat.isRealNumber(oLn.w) && AscFormat.isRealNumber(oStyleEntry.lineWidthScale)) { oLn.w *= oStyleEntry.lineWidthScale; @@ -2224,7 +2253,7 @@ if(oStyleEntry.defRPr) { oTextPr.Merge(oStyleEntry.defRPr); if(oTextPr.Unifill) { - oTextPr.Unifill.checkPhColor(oFontUnicolor, false); + oTextPr.Unifill.checkPhColor(oFontUnicolor); } } oParaPr.DefaultRunPr = oTextPr; @@ -2944,6 +2973,7 @@ style.TextPr.Merge(chart_text_pr); } } + let bChartEx = this.isChartEx && this.isChartEx(); if(this instanceof CTitle || this.parent instanceof CTitle) { style.TextPr.Bold = true; if(this.parent instanceof CChart || (this.parent && (this.parent.parent instanceof CChart))) { @@ -2952,6 +2982,25 @@ else style.TextPr.FontSize = 18; } + + + if(bChartEx) { + if (oChartSpace.chartStyle && oChartSpace.chartColors) { + let oTxPr; + if(this.parent instanceof CChart ) { + if (oChartSpace.chartStyle && oChartSpace.chartColors) { + oTxPr = oChartSpace.getTxPrFormStyleEntry(oChartSpace.chartStyle.title, oChartSpace.chartColors.generateColors(1), 0); + } + } + else if(this.parent instanceof AscFormat.CAxis) { + oTxPr = oChartSpace.getTxPrFormStyleEntry(oChartSpace.chartStyle.axisTitle, oChartSpace.chartColors.generateColors(1), 0); + } + if(oTxPr) { + let oParaPr = oTxPr.content.Content[0].Pr; + style.TextPr.Merge(oParaPr.DefaultRunPr); + } + } + } } if(this instanceof CalcLegendEntry && this.legend) { oParaPr = this.legend.getTxPrParaPr(); @@ -2960,6 +3009,16 @@ if(oParaPr.DefaultRunPr) style.TextPr.Merge(oParaPr.DefaultRunPr); } + if(bChartEx) { + if (oChartSpace.chartStyle && oChartSpace.chartColors) { + let oTxPr; + oTxPr = oChartSpace.getTxPrFormStyleEntry(oChartSpace.chartStyle.legend, oChartSpace.chartColors.generateColors(1), 0); + if(oTxPr) { + let oParaPr = oTxPr.content.Content[0].Pr; + style.TextPr.Merge(oParaPr.DefaultRunPr); + } + } + } if(AscFormat.isRealNumber(this.idx)) { var aLegendEntries = this.legend.legendEntryes; for(var i = 0; i < aLegendEntries.length; ++i) { @@ -2977,6 +3036,16 @@ } } + if(this.parent && this.parent instanceof AscFormat.CAxis) { + if (oChartSpace.chartStyle && oChartSpace.chartColors) { + let oTxPr; + oTxPr = oChartSpace.getTxPrFormStyleEntry(oChartSpace.chartStyle.categoryAxis, oChartSpace.chartColors.generateColors(1), 0); + if(oTxPr) { + let oParaPr = oTxPr.content.Content[0].Pr; + style.TextPr.Merge(oParaPr.DefaultRunPr); + } + } + } if(!(this instanceof CTitle)) { if(this.parent) { oParaPr = this.parent.getTxPrParaPr(); @@ -3079,6 +3148,12 @@ } return ""; }; + CDLbl.prototype.getCategoryName = function() { + if(this.series && this.pt) { + return this.series.getCatName(this.pt.idx); + } + return ""; + }; CDLbl.prototype.getDefaultTextForTxBody = function() { var compiled_string = ""; var separator; @@ -3114,6 +3189,11 @@ compiled_string += separator; compiled_string += this.getPercentageString(); } + if (this.showChartExVal) { + //TODO: format the passed number + const val = this.pt; + compiled_string += this.getValueString(); + } return compiled_string; }; CDLbl.prototype.getMaxWidth = function(bodyPr) { @@ -3328,7 +3408,12 @@ this.txBody = this.tx.rich; this.txBody.parent = this; } + else if(this.txPr && this.txPr.content && !this.txPr.content.IsEmpty()) { + this.txBody = this.txPr.createDuplicate(); + this.txBody.parent = this; + } else { + if(this.parent && this.parent.getObjectType() === AscDFH.historyitem_type_TrendLine) { this.txBody = AscFormat.CreateTextBodyFromString("", this.getDrawingDocument(), this); this.parent.fillEquationContent( this.txBody.content); @@ -3562,6 +3647,10 @@ History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_DLbl_SetShowVal, this.showVal, pr)); this.showVal = pr; }; + CDLbl.prototype.setShowChartExVal = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_DLbl_SetShowVal, this.setShowChartExVal, pr)); + this.showChartExVal = pr; + }; CDLbl.prototype.setShowDlblsRange = function(pr) { History.CanAddChanges() && History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_DLbl_SetShowDLblsRange, this.showDlblsRange, pr)); this.showDlblsRange = pr; @@ -3812,6 +3901,9 @@ return ""; } } + if(this.tx && this.tx.txData && this.tx.txData.v) { + return this.tx.txData.v; + } return AscCommon.translateManager.getValue('Series') + " " + (this.idx + 1); }; CSeriesBase.prototype.handleUpdateFill = function() { @@ -4033,7 +4125,7 @@ return new CDataRefs([]); }; CSeriesBase.prototype.getTxDataRefs = function() { - if(this.tx) { + if(this.tx && this.tx.getDataRefs) { return this.tx.getDataRefs(); } return new CDataRefs([]); @@ -4684,9 +4776,12 @@ oChartSpace.onDataUpdate(); }; CSeriesBase.prototype["asc_setOrder"] = CSeriesBase.prototype.asc_setOrder; - CSeriesBase.prototype.asc_getIdx = function() { + CSeriesBase.prototype.getIdx = function() { return this.idx; }; + CSeriesBase.prototype.asc_getIdx = function() { + return this.getIdx(); + }; CSeriesBase.prototype["asc_getIdx"] = CSeriesBase.prototype.asc_getIdx; CSeriesBase.prototype.asc_MoveUp = function() { var oChartSpace = this.getChartSpace(); @@ -4824,6 +4919,7 @@ function CPlotArea() { CBaseChartObject.call(this); + this.plotAreaRegion = null; this.charts = []; this.dTable = null; this.layout = null; @@ -4854,6 +4950,10 @@ InitClass(CPlotArea, CBaseChartObject, AscDFH.historyitem_type_PlotArea); CPlotArea.prototype.Refresh_RecalcData = function(data) { switch(data.Type) { + case AscDFH.historyitem_PlotArea_SetPlotAreaRegion: + { + break; + } case AscDFH.historyitem_CommonChartFormat_SetParent: { break; @@ -4942,6 +5042,9 @@ if(this.spPr) { oCopy.setSpPr(this.spPr.createDuplicate()); } + if(this.plotAreaRegion) { + oCopy.setPlotAreaRegion(this.plotAreaRegion.createDuplicate()); + } var len = this.axId.length; for(i = 0; i < len; i++) { @@ -5157,6 +5260,11 @@ } } }; + CPlotArea.prototype.setPlotAreaRegion = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_PlotArea_SetPlotAreaRegion, this.plotAreaRegion, pr)); + this.plotAreaRegion = pr; + this.setParentToChild(pr); + }; CPlotArea.prototype.setDTable = function(pr) { History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_PlotArea_SetDTable, this.dTable, pr)); this.dTable = pr; @@ -5279,6 +5387,9 @@ CPlotArea.prototype.canMove = function() { return true; }; + CPlotArea.prototype.canResize = function() { + return true; + }; CPlotArea.prototype.reindexSeries = function() { if(this.parent) { this.parent.reindexSeries(); @@ -5881,6 +5992,18 @@ if(!this.parent) { return; } + if(this.isChartEx()) { + let oChartSpace = this.getChartSpace(); + if(!oChartSpace) return; + let settings = AscFormat.DrawingObjectsController.prototype.getPropsFromChart(oChartSpace); + settings.type = nType; + let aSeries = AscFormat.getChartSeries(settings); + let oNewChartSpace = AscFormat.DrawingObjectsController.prototype._getChartSpace.call(this, aSeries, settings, true); + if(oNewChartSpace) { + oChartSpace.setChart(oNewChartSpace.chart.createDuplicate()); + } + return; + } if(this.charts.length < 1) { return; } @@ -5920,6 +6043,9 @@ } }; CPlotArea.prototype.getAllSeries = function() { + if(this.plotAreaRegion) { + return this.plotAreaRegion.getAllSeries(); + } var _ret = []; var aCharts = this.charts; for(var i = 0; i < aCharts.length; ++i) { @@ -5931,7 +6057,10 @@ return _ret; }; CPlotArea.prototype.getMaxSeriesIdx = function() { - var aAllSeries = this.getAllSeries(); + if(this.plotAreaRegion) { + return this.plotAreaRegion.getMaxSeriesIdx(); + } + let aAllSeries = this.getAllSeries(); if(aAllSeries.length === 0) { return -1; } @@ -6452,7 +6581,22 @@ } } }; - + CPlotArea.prototype.updateReferences = function(bDisplayEmptyCellsAs, bDisplayHidden) { + const aCharts = this.charts; + for (let nChart = 0; nChart < aCharts.length; ++nChart) { + this.charts[nChart].updateReferences(bDisplayEmptyCellsAs, bDisplayHidden); + } + const aAxes = this.axId; + for (let nAx = 0; nAx < aAxes.length; ++nAx) { + aAxes[nAx].updateReferences(); + } + if(this.plotAreaRegion) { + this.plotAreaRegion.updateReferences(bDisplayEmptyCellsAs, bDisplayHidden); + } + }; + CPlotArea.prototype.isChartEx = function() { + return !!this.plotAreaRegion; + }; function getIsMarkerByType(nType) { if(nType === Asc.c_oAscChartTypeSettings.scatter || nType === Asc.c_oAscChartTypeSettings.scatterLineMarker || @@ -7096,6 +7240,12 @@ } return this.parent.getMaxSeriesIdx(); }; + CChartBase.prototype.updateReferences = function(bDisplayEmptyCellsAs, bDisplayHidden) { + for(let nSeries = 0; nSeries < this.series.length; ++nSeries) { + this.series[nSeries].updateData(bDisplayEmptyCellsAs, bDisplayHidden); + } + }; + function CBarChart() { CChartBase.call(this); this.barDir = null; @@ -7592,6 +7742,24 @@ CAxisBase.prototype.onUpdate = function() { this.onChartInternalUpdate(); }; + CAxisBase.prototype.getFormatCode = function() { + let oNumFmt = this.numFmt; + let sFormatCode = null; + + if(oNumFmt) { + if(oNumFmt.sourceLinked) { + return this.getSourceFormatCode ? this.getSourceFormatCode() : "General"; + } + sFormatCode = oNumFmt.formatCode; + if(typeof sFormatCode === "string" && sFormatCode.length > 0) { + return sFormatCode; + } + return "General"; + } + else { + return this.getSourceFormatCode ? this.getSourceFormatCode() : "General"; + } + }; CAxisBase.prototype.Refresh_RecalcData = function() { this.onUpdate(); }; @@ -7769,7 +7937,11 @@ CAxisBase.prototype.getSourceFormatCode = function() { return "General"; }; + CAxisBase.prototype.isChartExCat = function() { + return false; + }; CAxisBase.prototype.updateNumFormat = function() { + if(this.isChartEx()) return; var oNumFmt = this.numFmt; if(!oNumFmt) { oNumFmt = new CNumFmt(); @@ -8107,6 +8279,13 @@ return this.getObjectType() === AscDFH.historyitem_type_SerAx; }; + CAxisBase.prototype.updateReferences = function() { + if(this.title) { + this.title.updateReferences(); + } + this.updateNumFormat(); + }; + function getBaseLog(x, y) { return Math.log(y) / Math.log(x); } @@ -8888,24 +9067,6 @@ } } }; - CValAx.prototype.getFormatCode = function() { - let oNumFmt = this.numFmt; - let sFormatCode = null; - - if(oNumFmt) { - if(oNumFmt.sourceLinked) { - return this.getSourceFormatCode(); - } - sFormatCode = oNumFmt.formatCode; - if(typeof sFormatCode === "string" && sFormatCode.length > 0) { - return sFormatCode; - } - return "General"; - } - else { - return this.getSourceFormatCode(); - } - }; CValAx.prototype.getSourceFormatCode = function() { var oPlotArea = this.getPlotArea(); var sDefault = "General"; @@ -9254,6 +9415,7 @@ this.rich = null; this.strRef = null; this.chart = null; + this.txData = null; } InitClass(CChartText, CBaseChartObject, AscDFH.historyitem_type_ChartText); @@ -9267,6 +9429,9 @@ if(this.strRef) { oCopy.setStrRef(this.strRef.createDuplicate()); } + if(this.txData) { + oCopy.setTxData(this.txData.createDuplicate()); + } }; CChartText.prototype.getStyles = CDLbl.prototype.getStyles; CChartText.prototype.Get_Theme = CDLbl.prototype.Get_Theme; @@ -9290,6 +9455,11 @@ this.strRef = tx.strRef; } }; + CChartText.prototype.setTxData = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartText_SetTxData, this.txData, pr)); + this.txData = pr; + this.setParentToChild(pr); + }; CChartText.prototype.setRich = function(pr) { History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartText_SetRich, this.rich, pr)); this.rich = pr; @@ -10135,6 +10305,7 @@ this.overlay = false; this.spPr = null; this.txPr = null; + this.align = null; this.rot = 0; this.flipH = false; @@ -10210,6 +10381,9 @@ if(this.txPr) { oCopy.setTxPr(this.txPr.createDuplicate()); } + if(this.align !== null) { + oCopy.setAlign(this.align); + } }; CLegend.prototype.getCalcEntryByIdx = function(idx, drawingDocument) { for(var i = 0; i < this.calcEntryes.length; ++i) { @@ -10263,6 +10437,9 @@ CLegend.prototype.canMove = function() { return true; }; + CLegend.prototype.canResize = function() { + return true; + }; CLegend.prototype.selectObject = function() { }; @@ -10413,6 +10590,10 @@ this.spPr = spPr; this.setParentToChild(spPr); }; + CLegend.prototype.setAlign = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Legend_SetAlign, this.align, pr)); + this.align = pr; + }; CLegend.prototype.setTxPr = function(txPr) { History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_Legend_SetTxPr, this.txPr, txPr)); this.txPr = txPr; @@ -11615,7 +11796,15 @@ } } }; - + CStrRef.prototype.onUpdateCache = function() { + CChartRefBase.prototype.onUpdateCache.call(this); + if(this.parent && this.parent.getObjectType() === AscDFH.historyitem_type_ChartText) { + let oParentObject = this.parent.parent; + if(oParentObject && oParentObject.recalcInfo && oParentObject.recalcInfo.recalculateTxBody === false) { + oParentObject.recalcInfo.recalculateTxBody = true; + } + } + }; function CNumericPoint() { CBaseChartObject.call(this); this.formatCode = null; @@ -11698,6 +11887,8 @@ this.formatCode = null; this.pts = []; this.ptCount = null; + + this.name = null; } InitClass(CNumLit, CBaseChartObject, AscDFH.historyitem_type_NumLit); @@ -11717,6 +11908,9 @@ oCopy.addPt(this.pts[i].createDuplicate()); } oCopy.setPtCount(this.ptCount); + if(this.name) { + oCopy.setName(this.name); + } }; CNumLit.prototype.getPtByIndex = function(idx) { if(this.pts[idx] && this.pts[idx].idx === idx) @@ -11961,6 +12155,10 @@ } return "General"; }; + CNumLit.prototype.setName = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_NumLit_SetName, this.name, pr)); + this.name = pr; + }; function COfPieChart() { CChartBase.call(this); @@ -13242,6 +13440,7 @@ CBaseChartObject.call(this); this.pts = []; this.ptCount = null; + this.name = null; } InitClass(CStrCache, CBaseChartObject, AscDFH.historyitem_type_StrCache); @@ -13294,6 +13493,10 @@ History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_StrCache_SetPtCount, this.ptCount, pr)); this.ptCount = pr; }; + CStrCache.prototype.setName = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_StrCache_SetName, this.name, pr)); + this.name = pr; + }; CStrCache.prototype.update = function(sFormula) { AscFormat.ExecuteNoHistory(function() { var str_cache = this; @@ -13630,6 +13833,10 @@ this.localTransform = new CMatrix(); this.localTransformText = new CMatrix(); + //for chart title only (but not axis title) + this.align = null; + this.pos = null; + this.recalcInfo = { recalculateTxBody: true, @@ -13812,6 +14019,8 @@ if(this.txPr) { oCopy.setTxPr(this.txPr.createDuplicate()); } + oCopy.setPos(this.pos); + oCopy.setAlign(this.align); }; CTitle.prototype.paragraphAdd = function(paraItem, bRecalculate) { var content = this.getDocContent(); @@ -13927,6 +14136,14 @@ this.invertTransformText = global_MatrixTransformer.Invert(this.transformText); }; + CTitle.prototype.setAlign = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Title_SetAlign, this.align, pr)); + this.align = pr; + }; + CTitle.prototype.setPos = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Title_SetPos, this.pos, pr)); + this.pos = pr; + }; CTitle.prototype.getParentObjects = function() { if(this.chart) { return this.chart.getParentObjects(); @@ -13955,8 +14172,16 @@ }; CTitle.prototype.getDefaultTextForTxBody = function() { var sText; - if(this.tx && this.tx.strRef) { - sText = this.tx.strRef.getText(false); + if(this.tx) { + let oTx = this.tx; + if(oTx.strRef) { + sText = oTx.strRef.getText(false); + } + if(!sText) { + if(oTx.txData) { + sText = oTx.txData.v; + } + } if(typeof sText === "string" && sText.length > 0) { return sText; } @@ -14070,6 +14295,11 @@ this.applyStyleEntry(oChartStyle.axisTitle, oColors.generateColors(1), 0, bReset); } }; + CTitle.prototype.updateReferences = function() { + if (this.tx) { + this.tx.update(); + } + }; function CTrendLine() { CBaseChartObject.call(this); @@ -14167,6 +14397,9 @@ if(AscFormat.isRealNumber(this.trendlineType)) { oCopy.setTrendlineType(this.trendlineType); } + if(this.trendlineLbl) { + oCopy.setTrendlineLbl(this.trendlineLbl.createDuplicate()); + } }; CTrendLine.prototype.applyChartStyle = function(oChartStyle, oColors, oAdditionalData, bReset) { if(!this.parent) { @@ -14311,6 +14544,37 @@ CTrendLine.prototype.Refresh_RecalcData2 = function(pageIndex, object) { this.onChartInternalUpdate(); }; + CTrendLine.prototype.createLabel = function() { + let oLabel = new AscFormat.CDLbl(); + let oChartSpace = this.getChartSpace(); + if(!oChartSpace) + return oLabel; + let oChartStyle = oChartSpace.chartStyle; + let oChartColors = oChartSpace.chartColors; + if(!oChartStyle || !oChartColors) + return oLabel; + let oTrendlineLabelStyle = oChartStyle.trendlineLabel; + if(!oTrendlineLabelStyle) + return oLabel; + oLabel.setParent(this); + oLabel.applyStyleEntry(oTrendlineLabelStyle, oChartColors.generateColors(1), 0, true); + return oLabel; + }; + + CTrendLine.prototype.setShowLabel = function(bShow) { + if(bShow) { + if(!this.trendlineLbl) { + this.setTrendlineLbl(this.createLabel()); + this.setDispEq(null); + } + } + else { + if(this.trendlineLbl) { + this.setTrendlineLbl(null); + this.setDispEq(false); + } + } + }; function CUpDownBars() { CBaseChartObject.call(this); @@ -15218,7 +15482,14 @@ this.title.applyChartStyle(oChartStyle, oColors, oAdditionalData, bReset); } }; - + CChart.prototype.updateReferences = function(bDisplayEmptyCellsAs, bDisplayHidden) { + if(this.title) { + this.title.updateReferences(); + } + if(this.plotArea) { + this.plotArea.updateReferences(bDisplayEmptyCellsAs, bDisplayHidden); + } + }; function CChartWall() { CBaseChartObject.call(this); this.pictureOptions = null; @@ -15774,6 +16045,14 @@ function AddToContentFromString(content, str) { content.MoveCursorToStartPos(false); + if(content.IsEmpty()) { + let aFirstPara = content.Content[0]; + if(aFirstPara.Content.length === 2) {// 0 - empty run, 1 - paraEnd run + let oFirstRun = aFirstPara.Content[0]; + oFirstRun.AddText(str); + return; + } + } content.AddText(str); } @@ -15956,6 +16235,13 @@ CalcLegendEntry.prototype.GetParaDrawing = function() { return null; }; + CalcLegendEntry.prototype.isChartEx = function() { + let oCS = this.getChartSpace(); + if(oCS) { + return oCS.isChartEx(); + } + return false; + }; function CompiledMarker() { this.spPr = new AscFormat.CSpPr(); @@ -17378,16 +17664,55 @@ if(!this.chartSpace) { return; } - var aSeries = this.chartSpace.getAllSeries(); - aSeries.sort(function(a, b) { - return a.order - b.order; - }); - var nSeries; - var oSeriesRefs; - var nStartIdx = aSeries.length; + let aSeries = this.chartSpace.getAllSeries(); + let nSeries; + let oSeriesRefs; + let nStartIdx = aSeries.length; + if(this.chartSpace.isChartEx()) { + let oChartData = this.chartSpace.chartData; + if(!oChartData) return; - for(nSeries = 0; nSeries < aSeries.length; ++nSeries) { - this.seriesRefs.push(new CSeriesDataRefs(aSeries[nSeries])); + aSeries.sort(function(a, b) { + return a.formatIdx - b.formatIdx; + }); + + for(nSeries = 0; nSeries < aSeries.length; ++nSeries) { + let oSeries = aSeries[nSeries]; + let oData = oSeries.getData(); + if(oData) { + let oSeriesDataRefs = new CSeriesDataRefs(); + let oNumDim = oData.getValDimensions()[0]; + let oStrDim = oData.getCatDimensions()[0]; + let oTxDim = oSeries.tx && oSeries.tx.txData; + let sFormula; + if(oNumDim && oNumDim.f) { + sFormula = oNumDim.f.content; + oSeriesDataRefs.val = new CDataRefs(AscFormat.fParseChartFormula(sFormula)); + oSeriesDataRefs.val.ref = oNumDim; + } + if(oStrDim && oStrDim.f) { + sFormula = oStrDim.f.content; + oSeriesDataRefs.cat = new CDataRefs(AscFormat.fParseChartFormula(sFormula)); + oSeriesDataRefs.cat.ref = oStrDim; + } + if(oTxDim && oTxDim.f) { + sFormula = oTxDim.f.content; + oSeriesDataRefs.tx = new CDataRefs(AscFormat.fParseChartFormula(sFormula)); + oSeriesDataRefs.tx.ref = oTxDim; + } + this.tx = new CDataRefs([]); + this.seriesRefs.push(oSeriesDataRefs); + } + } + } + else { + aSeries.sort(function(a, b) { + return a.order - b.order; + }); + + for(nSeries = 0; nSeries < aSeries.length; ++nSeries) { + this.seriesRefs.push(new CSeriesDataRefs(aSeries[nSeries])); + } } for(nSeries = 0; nSeries < this.seriesRefs.length; ++nSeries) { oSeriesRefs = this.seriesRefs[nSeries]; @@ -18828,9 +19153,18 @@ }; AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartSpace_ChartColors] = CChartColors; + AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryLnRef] = AscFormat.StyleRef; + AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryFillRef] = AscFormat.StyleRef; + AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryEffectRef] = AscFormat.StyleRef; + AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryFontRef] = AscFormat.FontRef; + AscDFH.drawingsConstructorsMap[AscDFH.historyitem_ChartStyleEntryBodyPr] = AscFormat.CBodyPr; + + //--------------------------------------------------------export---------------------------------------------------- window['AscFormat'] = window['AscFormat'] || {}; + window['AscFormat'].CAxisBase = CAxisBase; + window['AscFormat'].CSeriesBase = CSeriesBase; window['AscFormat'].CDLbl = CDLbl; window['AscFormat'].CPlotArea = CPlotArea; window['AscFormat'].CBarChart = CBarChart; @@ -18896,6 +19230,7 @@ window['AscFormat'].CHeaderFooterChart = CHeaderFooterChart; window['AscFormat'].CPageMarginsChart = CPageMarginsChart; window['AscFormat'].CPageSetup = CPageSetup; + window['AscFormat'].CChartRefBase = CChartRefBase; window['AscFormat'].CreateTextBodyFromString = CreateTextBodyFromString; window['AscFormat'].CreateDocContentFromString = CreateDocContentFromString; window['AscFormat'].AddToContentFromString = AddToContentFromString; diff --git a/common/Drawings/Format/ChartSpace.js b/common/Drawings/Format/ChartSpace.js index 02a2bc2b14..1a7d8d204d 100644 --- a/common/Drawings/Format/ChartSpace.js +++ b/common/Drawings/Format/ChartSpace.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -373,6 +373,7 @@ function(window, undefined) { AscDFH.changesFactory[AscDFH.historyitem_ChartSpace_SetNvGrFrProps] = CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ChartSpace_SetThemeOverride] = CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ShapeSetBDeleted] = CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_ChartSpace_SetChartData] = CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ChartSpace_SetParent] = CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ChartSpace_SetChart] = CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ChartSpace_SetClrMapOvr] = CChangesDrawingsObject; @@ -535,6 +536,9 @@ function(window, undefined) { drawingsChangesMap[AscDFH.historyitem_ShapeSetBDeleted] = function (oClass, value) { oClass.bDeleted = value; }; + drawingsChangesMap[AscDFH.historyitem_ChartSpace_SetChartData] = function(oClass, value) { + oClass.chartData = value; + }; drawingsChangesMap[AscDFH.historyitem_ChartSpace_SetParent] = function (oClass, value) { oClass.oldParent = oClass.parent; oClass.parent = value; @@ -706,7 +710,7 @@ function(window, undefined) { this.aLabels[i].updatePosition(x, y); } }; - CLabelsBox.prototype.layoutHorNormal = function (fAxisY, fDistance, fXStart, fInterval, bOnTickMark, fForceContentWidth) { + CLabelsBox.prototype.layoutHorNormal = function (fAxisY, fDistance, fXStart, fInterval, bOnTickMark, fForceContentWidth, oLabelParams) { this.bRotated = false; this.align = (fDistance >= 0); let fMaxHeight = 0.0; @@ -715,44 +719,57 @@ function(window, undefined) { fCurX += fInterval; } let oFirstLabel = null, fFirstLabelCenterX = null, oLastLabel = null, fLastLabelCenterX = null; - let fContentWidth = fForceContentWidth ? fForceContentWidth : Math.abs(fInterval); + let fContentWidth = fForceContentWidth || (oLabelParams && oLabelParams.valid) ? fForceContentWidth : Math.abs(fInterval); let fHorShift = Math.abs(fInterval) / 2.0 - fContentWidth / 2.0; let fMaxContentWidth = 0; - for (let i = 0; i < this.aLabels.length; ++i) { - if (this.aLabels[i]) { - var oLabel = this.aLabels[i]; - var oContent = oLabel.tx.rich.content; - oContent.Reset(0, 0, fContentWidth, 20000.0); - oContent.Recalculate_Page(0, true); - var fCurHeight = oContent.GetSummaryHeight(); - if (fCurHeight > fMaxHeight) { - fMaxHeight = fCurHeight; - } - var fX, fY; - fX = fCurX + fHorShift; - if (fDistance >= 0.0) { - fY = fAxisY + fDistance; - } else { - fY = fAxisY + fDistance - fCurHeight; - } - let oTransform = oLabel.transformText; - oTransform.Reset(); - global_MatrixTransformer.TranslateAppend(oTransform, fX, fY); - oTransform = oLabel.localTransformText; - oTransform.Reset(); - global_MatrixTransformer.TranslateAppend(oTransform, fX, fY); - + let bNeedMaxWidth = false; + if(this.axis && this.axis.getObjectType() === AscDFH.historyitem_type_SerAx) { + bNeedMaxWidth = true; + } + if (Array.isArray(this.aLabels) && this.aLabels.length > 0) { + let loopsCount = 0; + let jump = 0; + for (let i = 0; i < this.aLabels.length; i += jump) { + if (this.aLabels[i]) { + var oLabel = this.aLabels[i]; + var oContent = oLabel.tx.rich.content; + oContent.Reset(0, 0, fContentWidth, 20000.0); + oContent.Recalculate_Page(0, true); + var fCurHeight = oContent.GetSummaryHeight(); + if (fCurHeight > fMaxHeight) { + fMaxHeight = fCurHeight; + } + var fX, fY; + fX = fCurX + fHorShift; + if (fDistance >= 0.0) { + fY = fAxisY + fDistance; + } else { + fY = fAxisY + fDistance - fCurHeight; + } + let oTransform = oLabel.transformText; + oTransform.Reset(); + global_MatrixTransformer.TranslateAppend(oTransform, fX, fY); + oTransform = oLabel.localTransformText; + oTransform.Reset(); + global_MatrixTransformer.TranslateAppend(oTransform, fX, fY); + + + if (oFirstLabel === null) { + oFirstLabel = oLabel; + fFirstLabelCenterX = fCurX + Math.abs(fInterval) / 2.0; + } + oLastLabel = oLabel; + fLastLabelCenterX = fCurX + Math.abs(fInterval) / 2.0; - if (oFirstLabel === null) { - oFirstLabel = oLabel; - fFirstLabelCenterX = fCurX + Math.abs(fInterval) / 2.0; + if(bNeedMaxWidth) { + fMaxContentWidth = Math.max(fMaxContentWidth, oLabel.tx.rich.getMaxContentWidth(fContentWidth)); + } } - oLastLabel = oLabel; - fLastLabelCenterX = fCurX + Math.abs(fInterval) / 2.0; - fMaxContentWidth = Math.max(fMaxContentWidth, oLabel.tx.rich.getMaxContentWidth(fContentWidth)); + jump = skipCond(oLabelParams, loopsCount); + fCurX += (jump * fInterval); + loopsCount++; } - fCurX += fInterval; } let x0, x1; @@ -783,103 +800,265 @@ function(window, undefined) { this.extY = fMaxHeight - fDistance; } }; - CLabelsBox.prototype.layoutHorRotated = function (fAxisY, fDistance, fXStart, fXEnd, fInterval, bOnTickMark) { + CLabelsBox.prototype.layoutHorRotated = function (fAxisY, fDistance, fXStart, fXEnd, fInterval, bOnTickMark, oLabelParams) { this.bRotated = true; this.align = (fDistance >= 0); var bTickLblSkip = AscFormat.isRealNumber(this.axis.tickLblSkip); if (bTickLblSkip) { - this.layoutHorRotated2(this.aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark); + this.layoutHorRotated2(this.aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark, oLabelParams); } else { - - var fAngle = Math.PI / 4.0, fMultiplier = Math.sin(fAngle); - var aLabelsSource = [].concat(this.aLabels); - var oLabel = aLabelsSource[0]; - var i = 1; - while (!oLabel && i < aLabelsSource.length) { - oLabel = aLabelsSource[i++]; - } - if (oLabel) { - var oContent = oLabel.tx.rich.content; - oContent.SetApplyToAll(true); - oContent.SetParagraphAlign(AscCommon.align_Left); - oContent.SetParagraphIndent({FirstLine: 0.0, Left: 0.0}); - oContent.SetApplyToAll(false); - var oSize = oLabel.tx.rich.getContentOneStringSizes(); - var fInset = fMultiplier * (oSize.h); - fInset *= 2; - if (fInset <= fInterval) { - this.layoutHorRotated2(this.aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark); - } else { + if (oLabelParams) { + this.layoutHorRotated2(this.aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark, oLabelParams); + } else { + // manually search for oLabelParams + var fAngle = Math.PI / 4.0, fMultiplier = Math.sin(fAngle); + var aLabelsSource = [].concat(this.aLabels); + var oLabel = aLabelsSource[0]; + var i = 1; + while (!oLabel && i < aLabelsSource.length) { + oLabel = aLabelsSource[i++]; + } + if (oLabel) { + var oContent = oLabel.tx.rich.content; + oContent.SetApplyToAll(true); + oContent.SetParagraphAlign(AscCommon.align_Left); + oContent.SetParagraphIndent({FirstLine: 0.0, Left: 0.0}); + oContent.SetApplyToAll(false); + var oSize = oLabel && oLabel.tx && oLabel.tx.rich ? oLabel.tx.rich.getContentOneStringSizes() : {w: 0, h: 0}; + var fInset = fMultiplier * (oSize.h); + fInset *= 2; + if (fInset <= fInterval) { + this.layoutHorRotated2(this.aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark); + } else { - var nIntervalCount = bOnTickMark ? this.count - 1 : this.count; - var fInterval_ = Math.abs(fXEnd - fXStart) / nIntervalCount; - var nLblTickSkip = (fInset / fInterval_ + 0.5) >> 0; - var aLabels = [].concat(aLabelsSource); - var index = 0; - if (nLblTickSkip > 1) { - for (i = 0; i < aLabels.length; ++i) { - if (aLabels[i]) { - if ((index % nLblTickSkip) !== 0) { - aLabels[i] = null; + var nIntervalCount = bOnTickMark ? this.count - 1 : this.count; + var fInterval_ = Math.abs(fXEnd - fXStart) / nIntervalCount; + var nLblTickSkip = (fInset / fInterval_ + 0.5) >> 0; + var aLabels = [].concat(aLabelsSource); + var index = 0; + if (nLblTickSkip > 1) { + for (i = 0; i < aLabels.length; ++i) { + if (aLabels[i]) { + if ((index % nLblTickSkip) !== 0) { + aLabels[i] = null; + } + index++; } - index++; } } + this.layoutHorRotated2(this.aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark); } - this.layoutHorRotated2(aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark); } } } - }; - CLabelsBox.prototype.layoutHorRotated2 = function (aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark) { + CLabelsBox.prototype.layoutHorRotated2 = function (aLabels, fAxisY, fDistance, fXStart, fInterval, bOnTickMark, oLabelParams) { this.bRotated = true; this.align = (fDistance >= 0); - var i; var fMaxHeight = 0.0; var fCurX = bOnTickMark ? fXStart : fXStart + fInterval / 2.0; - var fAngle = Math.PI / 4.0, fMultiplier = Math.sin(fAngle); + let fAngle = oLabelParams && oLabelParams.valid ? Math.PI : Math.PI / 4.0; + const fMultiplier = Math.sin(fAngle); + let sinAlpha = null; + let cosAlpha = null; var fMinLeft = null, fMaxRight = null; - for (i = 0; i < aLabels.length; ++i) { - if (aLabels[i]) { - var oLabel = aLabels[i]; - var oContent = oLabel.tx.rich.content; - oContent.SetApplyToAll(true); - oContent.SetParagraphAlign(AscCommon.align_Left); - oContent.SetParagraphIndent({FirstLine: 0.0, Left: 0.0}); - oContent.SetApplyToAll(false); - var oSize = oLabel.tx.rich.getContentOneStringSizes(); - var fBoxW = fMultiplier * (oSize.w + oSize.h); - var fBoxH = fBoxW; - if (fBoxH > fMaxHeight) { - fMaxHeight = fBoxH; - } - var fX1, fY0, fXC, fYC; - fY0 = fAxisY + fDistance; - if (fDistance >= 0.0) { - fXC = fCurX - oSize.w * fMultiplier / 2.0; - fYC = fY0 + fBoxH / 2.0; - } else { - //fX1 = fCurX - oSize.h*fMultiplier; - fXC = fCurX + oSize.w * fMultiplier / 2.0; - fYC = fY0 - fBoxH / 2.0; + let rotatedMaxWidth = null; + let bDirection = true; + + if (oLabelParams && oLabelParams.valid) { + fAngle = getRotationAngle(oLabelParams.rot); + sinAlpha = Math.abs(Math.sin(fAngle)); + cosAlpha = Math.abs(Math.cos(fAngle)); + rotatedMaxWidth = (cosAlpha + sinAlpha) * oLabelParams.maxHeight; + // bDirection indecates whether angle is positive or negative. + // excel incorrectly works with align, is they will fix it uncomment this line, and remove this align from getTranslationX function + // bDirection = this.align ? oLabelParams.rot > 0 : oLabelParams.rot <= 0; + bDirection = oLabelParams.rot > 0; + } + + const getSquareWidth = function (bDirection, oLabel, fLabelHigh) { + const contents = oLabel && oLabel.txBody && oLabel.txBody.content && oLabel.txBody.content.Content && Array.isArray(oLabel.txBody.content.Content) ? oLabel.txBody.content.Content[0].Content : null; + + if (!contents || !Array.isArray(contents) || contents.length < 1) { + return; + } + + let runTexts = contents[0].Content; + + if (runTexts) { + let squareWidth = 0; + let size = runTexts.length; + if (size > 0) { + if (bDirection) { + squareWidth = runTexts[0].GetWidth(oLabel.txPr); + } else { + squareWidth = runTexts[size - 1].GetWidth(oLabel.txPr); + } + + // we need lowest out of height and width; + squareWidth = squareWidth > fLabelHigh ? fLabelHigh : squareWidth; } - var oTransform = oLabel.localTransformText; - oTransform.Reset(); - global_MatrixTransformer.TranslateAppend(oTransform, -oSize.w / 2.0, -oSize.h / 2.0); - global_MatrixTransformer.RotateRadAppend(oTransform, fAngle); - global_MatrixTransformer.TranslateAppend(oTransform, fXC, fYC); - oLabel.transformText = oTransform.CreateDublicate(); - if (null === fMinLeft || (fXC - fBoxW / 2.0) < fMinLeft) { - fMinLeft = fXC - fBoxW / 2.0; + + return squareWidth; + } + } + + const getTranslationX = function (align, bDirection, squareWidth, labelWidth) { + bDirection = align ? bDirection : !bDirection; + return bDirection > 0 ? -squareWidth / 2.0 : (squareWidth / 2.0) - labelWidth; + } + + const addDots = function (sliced, oLabel) { + const contents = oLabel && oLabel.txBody && oLabel.txBody.content && oLabel.txBody.content.Content && Array.isArray(oLabel.txBody.content.Content) ? oLabel.txBody.content.Content[0].Content : null; + if (!sliced || !contents) { + return; + } + let size = contents[0].Content.length; + contents[0].AddToContent(size++,new AscWord.CRunText(46), true); + contents[0].AddToContent(size++,new AscWord.CRunText(46), true); + contents[0].AddToContent(size++,new AscWord.CRunText(46), true); + oLabel.txBody.content.Recalculate_Page(0, true); + } + + const sliceLabel = function (oLabel, maxWidth, aDotWidth) { + const paragraph = oLabel && oLabel.txBody && oLabel.txBody.content && oLabel.txBody.content.Content && Array.isArray(oLabel.txBody.content.Content) ? oLabel.txBody.content.Content[0] : null + const contents = paragraph ? paragraph.Content : null; + let oSize = oLabel && oLabel.tx && oLabel.tx.rich ? oLabel.tx.rich.getContentOneStringSizes() : null; + if (!paragraph || !contents || !maxWidth || !oSize) { + return; + } + let runTexts = contents[0].Content; + let addDots = false; + + const getCondition = function (multiLine) { + // statement1 indicates whether paragraph consist of multiple lines + const statement1 = paragraph && Array.isArray(paragraph.Lines) && paragraph.Lines.length > 1; + // statement2 indicates label with overfitting + const statement2 = oSize.w > maxWidth; + return multiLine ? statement1 : statement2; + } + + // true stands for multiple line problem, false stands for overwidth problem + const slice = function (multiLine) { + + // condition indecates whether multilines or overfitting + let condition = getCondition(multiLine); + + if (runTexts && condition) { + contents[0].Content = []; + let left = 0; + let right = runTexts.length; + let mid = null; + + // when dealing width width subtract the width of the dots from max width + if (!multiLine) { + + // add dot to empty string and find its width + if (aDotWidth[0] === null) { + const oDot = new AscWord.CRunText(46); + contents[0].AddToContent(0, oDot, true); + const oDotSize = oLabel && oLabel.tx && oLabel.tx.rich ? oLabel.tx.rich.getContentOneStringSizes() : {w: 0, h: 0}; + contents[0].Content = []; + aDotWidth[0] = oDotSize.w; + } + + // indicate number of dots + const dotCount = 3; + // aDotWidth is equal across all the axis labels + maxWidth -= (aDotWidth[0] * dotCount); + } + + while(right - left > 1) { + mid = (right + left) / 2 + 0.5 >> 0; + contents[0].Content = runTexts.slice(0, mid - 1); + oSize = oLabel && oLabel.tx && oLabel.tx.rich ? oLabel.tx.rich.getContentOneStringSizes() : {w: 0, h: 0}; + condition = getCondition(multiLine); + if(condition) { + right = mid; + } else { + left = mid; + } + } + left = (left === 0) ? 1 : left; + contents[0].Content = runTexts.slice(0, left); + oSize = oLabel && oLabel.tx && oLabel.tx.rich ? oLabel.tx.rich.getContentOneStringSizes() : {w: 0, h: 0}; + if (getCondition(multiLine) && left > 1) { + contents[0].Content = runTexts.slice(0, --left); + } + + addDots = true; } - if (null === fMaxRight || (fXC + fBoxW / 2.0) > fMaxRight) { - fMaxRight = fXC + fBoxW / 2.0; + + } + + // when rotation is applied then multiline labels should be sliced + slice(true); + + // if overfitting is detected then label should be sliced + slice(false); + + return addDots; + } + + if (Array.isArray(aLabels) && aLabels.length > 0) { + let loopsCount = 0; + let jump = 0; + const aDotWidth = [null]; + for (let i = 0; i < aLabels.length; i += jump) { + if (aLabels[i]) { + var oLabel = aLabels[i]; + const sliced = sliceLabel(oLabel, rotatedMaxWidth, aDotWidth); + var oContent = oLabel.tx.rich.content; + oContent.SetApplyToAll(true); + oContent.SetParagraphAlign(AscCommon.align_Left); + oContent.SetParagraphIndent({FirstLine: 0.0, Left: 0.0}); + oContent.SetApplyToAll(false); + const oSize = oLabel && oLabel.tx && oLabel.tx.rich ? oLabel.tx.rich.getContentOneStringSizes() : {w: 0, h: 0}; + addDots(sliced, oLabel); + + // create a square around which rotation will be made; + const squareWidth = getSquareWidth(bDirection, oLabel, oSize.h); + let fBoxW = oLabelParams && oLabelParams.valid ? (cosAlpha * oSize.w) + (sinAlpha * oSize.h) : fMultiplier * (oSize.w + oSize.h); + var fBoxH = oLabelParams && oLabelParams.valid ? (sinAlpha * oSize.w) + (cosAlpha * oSize.h) : fBoxW; + if (fBoxH > fMaxHeight) { + fMaxHeight = fBoxH; + } + var fX1, fY0, fXC, fYC; + fY0 = fAxisY + fDistance; + if (fDistance >= 0.0) { + fXC = oLabelParams && oLabelParams.valid ? fCurX : fCurX - oSize.w * fMultiplier / 2.0; + fYC = oLabelParams && oLabelParams.valid ? fY0 + squareWidth / 2.0 : fY0 + fBoxH / 2.0; + } else { + //fX1 = fCurX - oSize.h*fMultiplier; + fXC = oLabelParams && oLabelParams.valid ? fCurX : fCurX + oSize.w * fMultiplier / 2.0; + fYC = oLabelParams && oLabelParams.valid ? fY0 : fY0 - fBoxH / 2.0; + } + var oTransform = oLabel.localTransformText; + oTransform.Reset(); + + const translateInX = oLabelParams && oLabelParams.valid ? getTranslationX(this.align, bDirection, squareWidth, oSize.w) : -oSize.w / 2.0; + global_MatrixTransformer.TranslateAppend(oTransform, translateInX, - oSize.h / 2.0); + global_MatrixTransformer.RotateRadAppend(oTransform, fAngle); + global_MatrixTransformer.TranslateAppend(oTransform, fXC, fYC); + + oLabel.transformText = oTransform.CreateDublicate(); + const leftStep = oLabelParams && oLabelParams.valid ? (bDirection ? fXC : fXC - fBoxW) : (fXC - fBoxW / 2.0); + if (null === fMinLeft || leftStep < fMinLeft) { + fMinLeft = leftStep; + } + const rightStep = oLabelParams && oLabelParams.valid ? (bDirection ? fXC + fBoxW : fXC) : (fXC + fBoxW / 2.0); + if (null === fMaxRight || rightStep > fMaxRight) { + fMaxRight = rightStep; + } } + + jump = skipCond(oLabelParams, loopsCount); + fCurX += (jump * fInterval); + loopsCount++; } - fCurX += fInterval; } + this.aLabels = aLabels; var aPoints = []; aPoints.push(fXStart); @@ -891,6 +1070,7 @@ function(window, undefined) { if (null !== fMaxRight) { aPoints.push(fMaxRight); } + this.x = Math.min.apply(Math, aPoints); this.extX = Math.max.apply(Math, aPoints) - this.x; if (fDistance >= 0.0) { @@ -1092,6 +1272,51 @@ function(window, undefined) { drawingDocument.DrawTrack(AscFormat.TYPE_TRACK.CHART_TEXT, this.chartSpace.transform, this.x, this.y, this.extX, this.extY, false, false, undefined, isDrawHandles); } }; + CLabelsBox.prototype.isLabelUserDefined = function () { + if (!this.chartSpace || !this.chartSpace.chart || !this.chartSpace.chart.plotArea || !this.axis) { + return false; + } + let oSeries = this.chartSpace.chart.plotArea.getSeriesWithSmallestIndexForAxis(this.axis); + // check if axis has user typed labels + const mainAxis = oSeries ? oSeries.cat : null // && oSeries.cat.getLit(); + + //statement2 checks if non general + const sFormatCode = this.axis.getFormatCode(); + const statement2 = sFormatCode !== 'General'; + return !!mainAxis || statement2; + } + + CLabelsBox.prototype.getLabelsDataType = function () { + if (!this.chartSpace || !this.chartSpace.chart || !this.chartSpace.chart.plotArea || !this.axis) { + return 'number'; + } + let oSeries = this.chartSpace.chart.plotArea.getSeriesWithSmallestIndexForAxis(this.axis); + // check if axis has user typed labels + const mainAxis = oSeries ? oSeries.cat : null // && oSeries.cat.getLit(); + + //statement1 checks if string + const statement1 = mainAxis ? (!!mainAxis.strRef || !!mainAxis.strLit) : false; + + if (statement1) { + return 'string'; + } + + //statement2 checks if date + const sFormatCode = this.axis.getFormatCode(); + const statement2 = sFormatCode !== 'General'; + const oNumFormat = oNumFormatCache.get(sFormatCode); + + let msg = 'date_'; + const isDateAx = this.axis.getObjectType() === AscDFH.historyitem_type_DateAx; + if (isDateAx && mainAxis) { + const numCache = mainAxis.getNumCache(); + if (numCache) { + const val = Array.isArray(numCache.pts) && numCache.pts.length > 0 ? numCache.pts[0].val : null; + msg = AscFormat.isRealNumber(val) ? msg + val : msg; + } + } + return statement2 ? (isDateAx ? msg : 'string') : 'number'; + } function fCreateLabel(sText, idx, oParent, oChart, oTxPr, oSpPr, oDrawingDocument) { var dlbl = new AscFormat.CDLbl(); @@ -1112,14 +1337,102 @@ function(window, undefined) { return dlbl; } - function fLayoutHorLabelsBox(oLabelsBox, fY, fXStart, fXEnd, bOnTickMark, fDistance, bForceVertical, bNumbers, fForceContentWidth) { + function getRotationAngle (rot) { + // one degree of rot is equal to 60000 + // therefore fullRange is 180 * 60000 + // regular range is between [-90 * 60000; 90 * 60000] + const fullRange = 10800000; + const halfRange = 5400000; + const isRot = AscFormat.isRealNumber(rot); + return isRot && rot >= -halfRange && rot <= halfRange ? - (Math.PI * rot) / fullRange : Math.PI / 4.0; + } + + function skipCond (oLabelParams, loopsCount) { + if (!oLabelParams) { + return 1; + } + + const isLeap = function (y) { + if (!AscFormat.isRealNumber(y)) { + return false; + } + + // excel formula for leap year; + return (y % 4 === 0 && y % 100 !== 0) || y % 400 === 0; + }; + + const nLblTickSkip = oLabelParams.nLblTickSkip; + const nAxisType = oLabelParams.nAxisType; + const sDataType = oLabelParams.sDataType; + const oStartingDate = oLabelParams.oStartingDate; + const currentDay = oLabelParams.oStartingDate ? oStartingDate.getDate() : 0; + const currentMonth = oLabelParams.oStartingDate ? oStartingDate.getMonth() : 0; + const currentYear = oLabelParams.oStartingDate ? oStartingDate.getFullYear() : 0; + + const calcYearlyStep = function (yearsCounter) { + if (!AscFormat.isRealNumber(yearsCounter) && yearsCounter < 0) { + return 366; + } + let res = 0; + let year = 0; + for (let i = 1; i <= yearsCounter; i++) { + year = currentYear + i; + const days = isLeap(year) ? 366 : 365; + res += days + } + oStartingDate.setFullYear(year); + return res; + } + + const calcMonthlyStep = function (monthCounter) { + const findDays = function (arr, startIndex, step) { + let sum = 0; + for (let i = startIndex; i < startIndex + step; i++) { + sum += arr[i % 12]; + } + return sum; + } + const months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + // february can have 28/29 days + months[1] = isLeap(currentYear) ? months[1] + 1 : months[1]; + const currMonth = months[currentMonth]; + const nextMonth = months[(currentMonth + monthCounter) % 12]; + const days = findDays(months, currentMonth, monthCounter); + + //check if next month has less days, example 29 January, where February can not contain more + const negOffset = currentDay > nextMonth ? currentDay - nextMonth : 0; + + //check if last day, days must be added example : 28 + (31-28); + const posOffset = currentDay === currMonth && nextMonth > currMonth ? nextMonth - currMonth : 0; + const skipDays = days - negOffset + posOffset; + + oStartingDate.setDate(oStartingDate.getDate() + skipDays); + return skipDays; + } + + if (nAxisType === AscDFH.historyitem_type_DateAx && oStartingDate && nLblTickSkip !== 0) { + if (nLblTickSkip % 366 === 0) { + return calcYearlyStep(nLblTickSkip / 366); + } else if (nLblTickSkip % 31 === 0) { + return calcMonthlyStep(nLblTickSkip / 31);; + } + } + + return AscFormat.isRealNumber(nLblTickSkip) && nLblTickSkip > 0 ? nLblTickSkip : 1; + } + + function fLayoutHorLabelsBox(oLabelsBox, fY, fXStart, fXEnd, bOnTickMark, fDistance, bForceVertical, bNumbers, fForceContentWidth, nIndex, fRectHeight) { + if (!oLabelsBox) { + return; + } + let fAxisLength = fXEnd - fXStart; let nLabelsCount = oLabelsBox.aLabels.length; - let bOnTickMark_ = bOnTickMark && nLabelsCount > 1; let nIntervalCount = bOnTickMark_ ? nLabelsCount - 1 : nLabelsCount; let fInterval = fAxisLength / nIntervalCount; let fForceContentWidth_ = fForceContentWidth; + if (!bForceVertical || true) {//TODO: implement for vertical labels let fMaxMinWidth = oLabelsBox.checkMaxMinWidth(); let fCheckInterval; @@ -1156,11 +1469,28 @@ function(window, undefined) { } } } - if (fMaxMinWidth <= fCheckInterval) { - oLabelsBox.layoutHorNormal(fY, fDistance, fXStart, fInterval, bOnTickMark_, fForceContentWidth_); - } else { - oLabelsBox.layoutHorRotated(fY, fDistance, fXStart, fXEnd, fInterval, bOnTickMark_); + // find axis type and data type + const nAxisType = oLabelsBox && oLabelsBox.axis ? oLabelsBox.axis.getObjectType() : null; + const sDataType = oLabelsBox.getLabelsDataType(); + + // oLabelParams indecates necessary stuff such as label rotation, label skip, label format + const oLabelParams = oLabelsBox && oLabelsBox.axis && oLabelsBox.axis.params ? oLabelsBox.axis.params : new CLabelsParameters(nAxisType, sDataType); + oLabelParams.calculate(oLabelsBox, fAxisLength, fRectHeight, nIndex); + + //check whether rotation is applied or not + let statement = oLabelParams.valid ? oLabelParams.isRotated() : fMaxMinWidth > fCheckInterval; + if (oLabelParams.valid) { + // if oLabelParams is valid then one label = axis lenght / (number of labels); number of labels = allLabels / labelsTickSkip + + const fLabelWidth = fAxisLength / Math.ceil(oLabelParams.nLabelsCount / oLabelParams.nLblTickSkip); + // if userDefinedTickSkip then each label has same width as axislength + fForceContentWidth_ = oLabelParams.isUserDefinedTickSkip ? fAxisLength : fLabelWidth; + } + if (statement) { + oLabelsBox.layoutHorRotated(fY, fDistance, fXStart, fXEnd, fInterval, bOnTickMark_, oLabelParams); + } else { + oLabelsBox.layoutHorNormal(fY, fDistance, fXStart, fInterval, bOnTickMark_, fForceContentWidth_, oLabelParams); } } } @@ -1323,6 +1653,7 @@ function(window, undefined) { this.userShapes = [];//userShapes this.chartStyle = null; this.chartColors = null; + this.chartData = null; this.dataRefs = null; this.pathMemory = new CPathMemory(); @@ -1355,6 +1686,21 @@ function(window, undefined) { } AscFormat.InitClass(CChartSpace, AscFormat.CGraphicObjectBase, AscDFH.historyitem_type_ChartSpace); + CChartSpace.prototype.getPlotArea = function () { + if(!this.chart) return null; + return this.chart.plotArea; + }; + CChartSpace.prototype.isChartEx = function () { + let oPlotArea = this.getPlotArea(); + if(!oPlotArea) return false; + return oPlotArea.isChartEx(); + }; + CChartSpace.prototype.isLayoutSizes = function () { + let oPlotArea = this.getPlotArea(); + if(!oPlotArea) return false; + const oLayout = oPlotArea.layout; + return oLayout ? ((oLayout.h === null && oLayout.w === null && oLayout.x === null && oLayout.y === null) ? false : true): false; + }; CChartSpace.prototype.fromOther = function(oChartSpace) { if(oChartSpace.nvGraphicFramePr) { this.setNvSpPr(oChartSpace.nvGraphicFramePr.createDuplicate()); @@ -1430,6 +1776,10 @@ function(window, undefined) { } return this.dataRefs; }; + CChartSpace.prototype.setChartData = function(pr) { + History.CanAddChanges() && History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_ChartSpace_SetChartData, this.chartData, pr)); + this.chartData = pr; + }; CChartSpace.prototype.clearDataRefs = function () { if (this.dataRefs) { this.dataRefs = null; @@ -1442,17 +1792,24 @@ function(window, undefined) { return this.pathMemory.GetPath(index); }; CChartSpace.prototype.checkTypeCorrect = function () { - if (!this.chart) { - return false; - } - if (!this.chart.plotArea) { - return false - } - if (this.chart.plotArea.charts.length === 0) { + let allSeries = this.getAllSeries(); + if (allSeries.length === 0) { return false; } - var allSeries = this.getAllSeries(); - if (allSeries.length === 0) { + return true; + }; + CChartSpace.prototype.isSupported = function () { + if(this.isChartEx()) { + const aSeries = this.getAllSeries(); + if(aSeries.length === 0) { + return true; + } + for (let nSer = 0; nSer < aSeries.length; nSer++) { + let oSeries = aSeries[nSer]; + if(oSeries.isSupported()) { + return true; + } + } return false; } return true; @@ -1474,6 +1831,16 @@ function(window, undefined) { } return -1; }; + CChartSpace.prototype.getSeriesByIdx = function (nSeriesIdx) { + let aAllSeries = this.getAllSeries(); + for(let nIdx = 0; nIdx < aAllSeries.length; ++nIdx) { + let oSer = aAllSeries[nIdx]; + if(oSer.idx === nSeriesIdx) { + return oSer; + } + } + return null; + }; CChartSpace.prototype._getPtArrayIdx = function (oChart, nSeriesIdx, nPtIdx) { var oSeries = oChart.series[this._getSeriesArrayIdx(nSeriesIdx)]; if (oSeries) { @@ -3350,6 +3717,9 @@ function(window, undefined) { if (this.textLink !== null) { copy.setTextLink(this.textLink); } + if(this.chartData) { + copy.setChartData(this.chartData.createDuplicate()); + } if (!oPr || false !== oPr.cacheImage) { copy.cachedImage = this.getBase64Img(); copy.cachedPixH = this.cachedPixH; @@ -3460,23 +3830,19 @@ function(window, undefined) { if (this.chart) { if (this.chart.plotArea) { this.chart.plotArea.updatePosition(posX, posY); - var aCharts = this.chart.plotArea.charts; - for (var t = 0; t < aCharts.length; ++t) { - var oChart = aCharts[t]; - var series = oChart.series; - for (var i = 0; i < series.length; ++i) { - var ser = series[i]; - var pts = ser.getNumPts(); - for (var j = 0; j < pts.length; ++j) { - if (pts[j].compiledDlb) { - pts[j].compiledDlb.updatePosition(posX, posY); - } - } - let oTrendlineLbl = ser.trendline && ser.trendline.trendlineLbl; - if(oTrendlineLbl) { - oTrendlineLbl.updatePosition(posX, posY); + var series = this.getAllSeries(); + for (var i = 0; i < series.length; ++i) { + var ser = series[i]; + var pts = ser.getNumPts(); + for (var j = 0; j < pts.length; ++j) { + if (pts[j].compiledDlb) { + pts[j].compiledDlb.updatePosition(posX, posY); } } + let oTrendlineLbl = ser.trendline && ser.trendline.trendlineLbl; + if(oTrendlineLbl) { + oTrendlineLbl.updatePosition(posX, posY); + } } var aAxes = this.chart.plotArea.axId; for (var i = 0; i < aAxes.length; ++i) { @@ -3619,6 +3985,10 @@ function(window, undefined) { for (i = 0; i < plot_area.charts.length; ++i) { plot_area.charts[i].getAllRasterImages(images); } + + if(plot_area.plotAreaRegion) { + plot_area.plotAreaRegion.getAllRasterImages(images); + } } } for (var i = 0; i < this.userShapes.length; ++i) { @@ -3842,7 +4212,7 @@ function(window, undefined) { this.group = group; }; CChartSpace.prototype.hasCharts = function () { - if (this.chart && this.chart.plotArea && this.chart.plotArea.charts.length > 0) { + if (this.isChartEx() || !this.isChartEx() && this.chart && this.chart.plotArea && this.chart.plotArea.charts.length > 0) { return true; } return false; @@ -3865,7 +4235,7 @@ function(window, undefined) { this.clearDataCache(); }; CChartSpace.prototype.recalculateReferences = function () { - var oSelectedSeries = this.getSelectedSeries(); + const oSelectedSeries = this.getSelectedSeries(); if (AscFormat.isRealNumber(this.selection.series)) { if (!oSelectedSeries) { this.selection.series = null; @@ -3873,27 +4243,11 @@ function(window, undefined) { this.selection.markers = null; } } - var worksheet = this.worksheet; - if (!worksheet) + if (!this.worksheet) return; - var charts, series, i, j, ser; - charts = this.chart.plotArea.charts; - for (i = 0; i < charts.length; ++i) { - series = charts[i].series; - for (j = 0; j < series.length; ++j) { - series[j].updateData(this.displayEmptyCellsAs, this.displayHidden); - } - } - var aTitles = this.getAllTitles(); - for (i = 0; i < aTitles.length; ++i) { - var oTitle = aTitles[i]; - if (oTitle.tx) { - oTitle.tx.update(); - } - } - var aAxis = this.chart.plotArea.axId; - for (i = 0; i < aAxis.length; ++i) { - aAxis[i].updateNumFormat(); + this.chart.updateReferences(this.displayEmptyCellsAs, this.displayHidden); + if(this.chartData) { + this.chartData.updateReferences(this.displayEmptyCellsAs, this.displayHidden); } }; CChartSpace.prototype.checkEmptyVal = function (val) { @@ -3924,17 +4278,37 @@ function(window, undefined) { } return true; }; + + // if true, then series is empty CChartSpace.prototype.checkEmptySeries = function () { - for (var t = 0; t < this.chart.plotArea.charts.length; ++t) { - var chart_type = this.chart.plotArea.charts[t]; - var series = chart_type.series; - var nChartType = chart_type.getObjectType(); - var nSeriesLength = (nChartType === AscDFH.historyitem_type_PieChart || nChartType === AscDFH.historyitem_type_DoughnutChart) && this.chart.plotArea.charts.length === 1 ? Math.min(1, series.length) : series.length; - if (this.isEmptySeries(series, nSeriesLength)) { + if (!this.chart || !this.chart.plotArea ) { + return true; + } + if (this.isChartEx()) { + if (!this.chart.plotArea.plotAreaRegion) { + return true; + } + + const numLit = this.chart.plotArea.plotAreaRegion.series[0].getValLit(); + if (!numLit) { + return true; + } + return numLit.pts.length === 0 ? true : false; + } else { + if (!this.chart.plotArea.charts) { return true; } + for (var t = 0; t < this.chart.plotArea.charts.length; ++t) { + var chart_type = this.chart.plotArea.charts[t]; + var series = chart_type.series; + var nChartType = chart_type.getObjectType(); + var nSeriesLength = (nChartType === AscDFH.historyitem_type_PieChart || nChartType === AscDFH.historyitem_type_DoughnutChart) && this.chart.plotArea.charts.length === 1 ? Math.min(1, series.length) : series.length; + if (this.isEmptySeries(series, nSeriesLength)) { + return true; + } + } + return t < 1; } - return t < 1; }; CChartSpace.prototype.getNeedReflect = function () { if (!this.chartObj) { @@ -3950,7 +4324,7 @@ function(window, undefined) { return ret; }; CChartSpace.prototype.getAxisCrossType = function (oAxis) { - if (oAxis.getObjectType() === AscDFH.historyitem_type_ValAx) { + if (oAxis.getObjectType() === AscDFH.historyitem_type_ValAx || (oAxis.getObjectType() === AscDFH.historyitem_type_Axis && oAxis.isValuesAxis())) { return AscFormat.CROSS_BETWEEN_MID_CAT; } if (oAxis.getObjectType() === AscDFH.historyitem_type_SerAx) { @@ -4086,7 +4460,68 @@ function(window, undefined) { } return fRetLayout; }; - CChartSpace.prototype.calculateLabelsPositions = function (b_recalc_labels, b_recalc_legend) { + CChartSpace.prototype.calculateDLblsForChartEx = function () { + const obtainData = function (cachedData, key) { + if (!cachedData) { + return; + } + if (cachedData.clusteredColumn) { + if (cachedData.clusteredColumn.aggregation) { + return key ? cachedData.clusteredColumn.aggregation[key] : cachedData.clusteredColumn.aggregation; + } else if (cachedData.clusteredColumn.results) { + return key ? cachedData.clusteredColumn.results[key].occurrence : cachedData.clusteredColumn.results; + } + } else if (cachedData.waterfall && cachedData.waterfall.numArr) { + return key ? cachedData.waterfall.numArr[key].val : cachedData.waterfall.numArr; + } else if (cachedData.funnel) { + return key ? cachedData.funnel[key] : cachedData.funnel; + } + return null; + } + + const size = this.chart.plotArea.plotAreaRegion.series.length; + const seria = this.chart.plotArea.plotAreaRegion.series[size - 1]; + const cachedData = this.chart.plotArea.plotAreaRegion.cachedData; + const results = obtainData(cachedData); + //seria.dataLabels.visibility optional + if (cachedData && seria && seria.dataLabels && results) { + const default_lbl = new AscFormat.CDLbl(); + const nDefaultPosition = seria.dataLabels.pos ? seria.dataLabels.pos : AscFormat.DATA_LABEL_POS_OUT_END; + default_lbl.initDefault(nDefaultPosition); + cachedData.compiledDlbs = []; + let aPts = seria.getValPts(); + for(let nPt = 0; nPt < aPts.length; ++nPt) { + let pt = aPts[nPt]; + const compiled_dlb = new AscFormat.CDLbl(); + compiled_dlb.merge(default_lbl); + pt.compiledDlb = compiled_dlb; + pt.compiledDlb.chart = this; + pt.compiledDlb.series = seria; + pt.compiledDlb.pt = pt; + pt.compiledDlb.setShowChartExVal(true); + pt.compiledDlb.recalculate(); + if (cachedData.funnel && pt.compiledDlb.pt <= 0) { + pt.compiledDlb = default_lbl; + } + } + } + } + CChartSpace.prototype.calculateChartExLabelsPositions = function () { + if (!this.chartObj || !this.chart || !this.chart.plotArea || !this.chart.plotArea.plotAreaRegion || !this.chart.plotArea.plotAreaRegion.series) { + return; + } + + this.calculateDLblsForChartEx(); + const aDLbls = this.recalcInfo.dataLbls; + for (let i = 0; i < aDLbls.length; i++) { + let oLbl = aDLbls[i]; + oLbl.idx = i; + let pos = this.chartObj.recalculatePositionText(oLbl); + oLbl.setPosition(pos.x, pos.y); + } + }; + + CChartSpace.prototype.calculateChartLabelsPositions = function () { let layout; let aDLbls = this.recalcInfo.dataLbls; for (let i = 0; i < aDLbls.length; ++i) { @@ -4130,13 +4565,31 @@ function(window, undefined) { } } } + }; + + CChartSpace.prototype.calculateLabelsPositions = function (b_recalc_labels, b_recalc_legend) { + const isChartEx = this.isChartEx(); + + // TODO after new succefull implementation of new type remove option here + const type = this.chart && this.chart.plotArea && this.chart.plotArea.plotAreaRegion && this.chart.plotArea.plotAreaRegion.series && this.chart.plotArea.plotAreaRegion.series[0] ? this.chart.plotArea.plotAreaRegion.series[0].layoutId : null; + if (isChartEx && !type && (type === AscFormat.SERIES_LAYOUT_BOX_WHISKER || type === AscFormat.SERIES_LAYOUT_PARETO_LINE || type === AscFormat.SERIES_LAYOUT_REGION_MAP || type === AscFormat.SERIES_LAYOUT_SUNBURST || type === AscFormat.SERIES_LAYOUT_TREEMAP)) { + return ; + } + //---------------------------------- + + if (isChartEx) { + this.calculateChartExLabelsPositions(); + } else { + this.calculateChartLabelsPositions(); + } this.recalcInfo.dataLbls.length = 0; + // Calculate diagram title and axes titles if (b_recalc_labels) { if (this.chart && this.chart.title) { var pos = this.chartObj.recalculatePositionText(this.chart.title); if (this.chart.title.layout) { - layout = this.chart.title.layout; + const layout = this.chart.title.layout; if (AscFormat.isRealNumber(layout.x)) { pos.x = this.calculatePosByLayout(pos.x, layout.xMode, layout.x, this.chart.title.extX, this.extX); } @@ -4155,7 +4608,7 @@ function(window, undefined) { var pos = this.chartObj.recalculatePositionText(oAxis.title); if (oAxis.title.layout) { - layout = oAxis.title.layout; + const layout = oAxis.title.layout; if (AscFormat.isRealNumber(layout.x)) { pos.x = this.calculatePosByLayout(pos.x, layout.xMode, layout.x, oAxis.title.extX, this.extX); } @@ -4171,6 +4624,7 @@ function(window, undefined) { } } + //Calculate diagram legend if (b_recalc_legend && this.chart && this.chart.legend) { var bResetLegendPos = false; if (!AscFormat.isRealNumber(this.chart.legend.legendPos)) { @@ -4179,7 +4633,7 @@ function(window, undefined) { } var pos = this.chartObj.recalculatePositionText(this.chart.legend); if (this.chart.legend.layout) { - layout = this.chart.legend.layout; + const layout = this.chart.legend.layout; if (AscFormat.isRealNumber(layout.x)) { pos.x = this.calculatePosByLayout(pos.x, layout.xMode, layout.x, this.chart.legend.extX, this.extX); } @@ -4193,6 +4647,7 @@ function(window, undefined) { } } + // Calculate trendline labels let aSeries = this.getAllSeries(); for(let nSer = 0; nSer < aSeries.length; ++nSer) { let oSer = aSeries[nSer]; @@ -4202,7 +4657,7 @@ function(window, undefined) { if(oLbl && oDrawerData && oDrawerData.coordinate) { pos = {x: oDrawerData.coordinate.catVal, y: oDrawerData.coordinate.valVal}; if (oLbl.layout) { - layout = oLbl.layout; + const layout = oLbl.layout; if (AscFormat.isRealNumber(layout.x)) { pos.x = this.calculatePosByLayout(pos.x, layout.xMode, layout.x, oLbl.extX, this.extX); } @@ -4262,28 +4717,60 @@ function(window, undefined) { } return ret; }; + + + CChartSpace.prototype.getValLabels = function(oAxis) { + let aStrings = []; + let aVal = [].concat(oAxis.scale); + let fMultiplier; + if (oAxis.dispUnits) { + fMultiplier = oAxis.dispUnits.getMultiplier(); + } else { + fMultiplier = 1.0; + } + let oNumFormat = null; + let sFormatCode = oAxis.getFormatCode(); + if (typeof sFormatCode === "string") { + oNumFormat = oNumFormatCache.get(sFormatCode); + } + if (!oNumFormat) { + oNumFormat = oNumFormatCache.get("General"); + } + for (let t = 0; t < aVal.length; ++t) { + let fCalcValue = aVal[t] * fMultiplier; + let sRichValue; + if (oNumFormat) { + sRichValue = oNumFormat.formatToChart(fCalcValue); + } else { + sRichValue = fCalcValue + ""; + } + aStrings.push(sRichValue); + } + return aStrings; + }; + CChartSpace.prototype.getLabelsForAxis = function (oAxis) { - var aStrings = []; - var oPlotArea = this.chart.plotArea, i; - var nAxisType = oAxis.getObjectType(); - var oSeries = oPlotArea.getSeriesWithSmallestIndexForAxis(oAxis); - var bCat = false; + let aStrings = []; + let oPlotArea = this.chart.plotArea, i; + let nAxisType = oAxis.getObjectType(); + let oSeries = oPlotArea.getSeriesWithSmallestIndexForAxis(oAxis); + let bCat = false; switch (nAxisType) { case AscDFH.historyitem_type_DateAx: case AscDFH.historyitem_type_CatAx: { //расчитаем подписи для горизонтальной оси - var nPtsLen = 0; - var aScale = []; + let nPtsLen = 0; + let aScale = []; if (Array.isArray(oAxis.scale)) { aScale = aScale.concat(oAxis.scale); } if (oSeries && oSeries.cat) { - var oCat = oSeries.cat; - var oLit = oCat.getLit(); + let oCat = oSeries.cat; + let oLit = oCat.getLit(); if (oLit) { bCat = true; - var oLitFormat = null, oPtFormat = null; + let oLitFormat = null, oPtFormat = null; if (typeof oLit.formatCode === "string" && oLit.formatCode.length > 0) { oLitFormat = oNumFormatCache.get(oLit.formatCode); } @@ -4292,15 +4779,16 @@ function(window, undefined) { } nPtsLen = oLit.ptCount; - var bTickSkip = AscFormat.isRealNumber(oAxis.tickLblSkip) || nPtsLen >= SKIP_LBL_LIMIT; - var nTickLblSkip = AscFormat.isRealNumber(oAxis.tickLblSkip) ? oAxis.tickLblSkip : (nPtsLen < SKIP_LBL_LIMIT ? 1 : (Math.floor(nPtsLen / SKIP_LBL_LIMIT) + 1)); + let bTickSkip = AscFormat.isRealNumber(oAxis.tickLblSkip) || nPtsLen >= SKIP_LBL_LIMIT; + // let nTickLblSkip = AscFormat.isRealNumber(oAxis.tickLblSkip) ? oAxis.tickLblSkip : (nPtsLen < SKIP_LBL_LIMIT ? 1 : (Math.floor(nPtsLen / SKIP_LBL_LIMIT) + 1)); + let nTickLblSkip = 1; let nLastNoEmptyLblIdx = -1; for (i = 0; i < nPtsLen; ++i) { if (!bTickSkip || nLastNoEmptyLblIdx === -1 || ((i - nLastNoEmptyLblIdx) >= nTickLblSkip)) { - var oPt = oLit.getPtByIndex(i); + let oPt = oLit.getPtByIndex(i); if (oPt) { - var sPt; + let sPt; if (typeof oPt.formatCode === "string" && oPt.formatCode.length > 0) { oPtFormat = oNumFormatCache.get(oPt.formatCode); if (oPtFormat) { @@ -4326,12 +4814,12 @@ function(window, undefined) { } } } - var nPtsLength = 0; - var aChartsForAxis = oAxis.getAllCharts(); + let nPtsLength = 0; + let aChartsForAxis = oAxis.getAllCharts(); for (i = 0; i < aChartsForAxis.length; ++i) { - var oChart = aChartsForAxis[i]; - for (var j = 0; j < oChart.series.length; ++j) { - var oCurPts = null; + let oChart = aChartsForAxis[i]; + for (let j = 0; j < oChart.series.length; ++j) { + let oCurPts = null; oSeries = oChart.series[j]; if (oSeries.val) { if (oSeries.val.numRef && oSeries.val.numRef.numCache) { @@ -4340,24 +4828,35 @@ function(window, undefined) { oCurPts = oSeries.val.numLit; } if (oCurPts) { - nPtsLength = Math.max(nPtsLength, oCurPts.ptCount); + const forward = oSeries.trendline && oSeries.trendline.forward ? oSeries.trendline.forward : 0; + const newNPtsLength = oCurPts.ptCount + forward; + nPtsLength = Math.max(nPtsLength, newNPtsLength); } } } } - var nCrossBetween = this.getAxisCrossType(oAxis); + let nCrossBetween = this.getAxisCrossType(oAxis); if (nCrossBetween === AscFormat.CROSS_BETWEEN_MID_CAT && nPtsLength < 2) { nPtsLength = 2; } - var oLitFormatDate = null; - if (nAxisType === AscDFH.historyitem_type_DateAx && oAxis.numFmt && typeof oAxis.numFmt.formatCode === "string" && oAxis.numFmt.formatCode.length > 0) { + let oLitFormatDate = null; + if (oAxis.numFmt && typeof oAxis.numFmt.formatCode === "string" && oAxis.numFmt.formatCode.length > 0) { oLitFormatDate = oNumFormatCache.get(oAxis.numFmt.formatCode); } if (nPtsLength > aStrings.length) { - bTickSkip = AscFormat.isRealNumber(oAxis.tickLblSkip) || nPtsLength >= SKIP_LBL_LIMIT; - nTickLblSkip = AscFormat.isRealNumber(oAxis.tickLblSkip) ? oAxis.tickLblSkip : (nPtsLength < SKIP_LBL_LIMIT ? 1 : (Math.floor(nPtsLength / SKIP_LBL_LIMIT) + 1)); - var nStartLength = aStrings.length; + let bTickSkip = AscFormat.isRealNumber(oAxis.tickLblSkip) || nPtsLength >= SKIP_LBL_LIMIT; + let nTickLblSkip = AscFormat.isRealNumber(oAxis.tickLblSkip) ? oAxis.tickLblSkip : (nPtsLength < SKIP_LBL_LIMIT ? 1 : (Math.floor(nPtsLength / SKIP_LBL_LIMIT) + 1)); + // let nTickLblSkip = 1; + let nStartLength = aStrings.length; + + // // different label skip implementation for catAxis + const nAxisType = oAxis.getObjectType(); + if (AscFormat.isRealNumber(nAxisType) && (AscDFH.historyitem_type_CatAx === nAxisType || AscDFH.historyitem_type_DateAx === nAxisType)) { + nTickLblSkip = 1; + } + + for (i = aStrings.length; i < nPtsLength; ++i) { if (!bCat && (!bTickSkip || (((nStartLength + i) % nTickLblSkip) === 0))) { if (oLitFormatDate) { @@ -4387,31 +4886,7 @@ function(window, undefined) { break; } case AscDFH.historyitem_type_ValAx: { - var aVal = [].concat(oAxis.scale); - var fMultiplier; - if (oAxis.dispUnits) { - fMultiplier = oAxis.dispUnits.getMultiplier(); - } else { - fMultiplier = 1.0; - } - var oNumFormat = null; - var sFormatCode = oAxis.getFormatCode(); - if (typeof sFormatCode === "string") { - oNumFormat = oNumFormatCache.get(sFormatCode); - } - if (!oNumFormat) { - oNumFormat = oNumFormatCache.get("General"); - } - for (var t = 0; t < aVal.length; ++t) { - var fCalcValue = aVal[t] * fMultiplier; - var sRichValue; - if (oNumFormat) { - sRichValue = oNumFormat.formatToChart(fCalcValue); - } else { - sRichValue = fCalcValue + ""; - } - aStrings.push(sRichValue); - } + aStrings = this.getValLabels(oAxis); break; } case AscDFH.historyitem_type_SerAx: { @@ -4424,21 +4899,114 @@ function(window, undefined) { break; } - } - return aStrings; - }; - CChartSpace.prototype.calculateAxisGrid = function (oAxis, oRect) { - if (!oAxis) { - return; - } + case AscDFH.historyitem_type_Axis: { + if (!this.chart || !this.chart.plotArea) { + return []; + } + if (oAxis.isValuesAxis()) { + aStrings = this.getValLabels(oAxis); + break; + } + const strSeria = this.chart.plotArea.plotAreaRegion && this.chart.plotArea.plotAreaRegion.series ? this.chart.plotArea.plotAreaRegion.series[0] : null; + if (strSeria) { + const cachedData = this.chart.plotArea.plotAreaRegion.cachedData; + const type = this.chart.plotArea.plotAreaRegion.series[0].layoutId; + if (!cachedData || !oAxis.scale) { + return []; + } + + if (type === AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN && cachedData.clusteredColumn && cachedData.clusteredColumn.aggregation) { + // if data is aggregated then convert array of integers into chars + const strCache = strSeria.getCatLit(); + if (strCache && strCache.pts) { + const mySet = {}; + for (let i = 0; i < strCache.pts.length; i++) { + // If no labels exist, then excel just leaves empty catAxis + const key = strCache.pts[i].val; + if (!mySet.hasOwnProperty(key)) { + mySet[key] = true; + aStrings.push(key); + } + } + } else { + aStrings.push(''); + } + } else if (type === AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN && cachedData.clusteredColumn && cachedData.clusteredColumn.binning) { + // obtain properly formated array of integers + const bStrings = this.getValLabels(oAxis); + const binning = cachedData.clusteredColumn.binning; + + //convert array of formated strings into ranges + if (bStrings && bStrings.length != 0) { + // ranges always start with '[' and end with ']', however between they can have '(' and ')' + let start = '['; + let end = binning.intervalClosed === AscFormat.INTERVAL_CLOSED_SIDE_L ? ')' : ']'; + // user can manually set minimum and maximum, therefore alternative start and end needed + const alternativeStart = binning.intervalClosed === AscFormat.INTERVAL_CLOSED_SIDE_L ? '<' : '≤'; + const alternativeEnd = binning.intervalClosed === AscFormat.INTERVAL_CLOSED_SIDE_L ? '≥' : '>'; + + const isAlternativeStartExist = binning.underflow === 0 || binning.underflow ? true : false; + const isAlternativeEndExist = binning.overflow === 0 || binning.overflow ? true : false; + // first check is alternativeStart exist, and append alternativeStartSign with value, + // also because start not the first anymore, we can change its value from '[' to '('; + if (isAlternativeStartExist) { + aStrings.push(alternativeStart + bStrings[0]); + start = '('; + } + // if element not the first one, then change value of start + // if element is last one and no alternativeEnd exist, then change value of end + for (let i = 0; i < (bStrings.length - 1); i++) { + if (i === 1 && start != "(" && binning.intervalClosed !== AscFormat.INTERVAL_CLOSED_SIDE_L) { + start = '('; + } - let oAxisGrid = new CAxisGrid(); - oAxis.grid = oAxisGrid; - let aStrings = this.getLabelsForAxis(oAxis); - if(oAxis.isRadarCategories()) { - let nIntervalsCount = aStrings.length; - oAxisGrid.nCount = nIntervalsCount; - oAxisGrid.bOnTickMark = true; + if (i === (bStrings.length - 2) && !isAlternativeEndExist && binning.intervalClosed === AscFormat.INTERVAL_CLOSED_SIDE_L) { + end = ']'; + } + aStrings.push(start + bStrings[i] + ", " + bStrings[i + 1] + end) + } + // add alternativeEnd if exist + if (isAlternativeEndExist) { + const val = (bStrings.length > 1) ? bStrings[bStrings.length - 1] : binning.overflow; + aStrings.push(alternativeEnd + " " + val); + } + } + } else if (type === AscFormat.SERIES_LAYOUT_WATERFALL) { + const strCache = strSeria.getCatLit(type); + if (strCache) { + for ( let i = 0; i < strCache.pts.length; i++) { + aStrings.push(strCache.pts[i].val); + } + } else { + aStrings = this.getValLabels(oAxis); + } + } else if (type === AscFormat.SERIES_LAYOUT_FUNNEL) { + const strCache = strSeria.getCatLit(type); + if (strCache) { + for ( let i = strCache.pts.length - 1; i >= 0; i--) { + aStrings.push(strCache.pts[i].val); + } + } else { + aStrings = this.getValLabels(oAxis); + } + } + } + break; + } + } + return aStrings; + }; + CChartSpace.prototype.calculateAxisGrid = function (oAxis, oRect) { + if (!oAxis) { + return; + } + let oAxisGrid = new CAxisGrid(); + oAxis.grid = oAxisGrid; + let aStrings = this.getLabelsForAxis(oAxis); + if(oAxis.isRadarCategories()) { + let nIntervalsCount = aStrings.length; + oAxisGrid.nCount = nIntervalsCount; + oAxisGrid.bOnTickMark = true; oAxisGrid.aStrings = aStrings; if (!oAxis.isReversed()) { oAxisGrid.fStart = 0; @@ -4520,13 +5088,21 @@ function(window, undefined) { }; CChartSpace.prototype.recalculateAxesSet = function(aAxesSet, oRect, oBaseRect, nIndex, fForceContentWidth) { let oCorrectedRect = null; - - let bWithoutLabels = false; - if(this.chart.plotArea.layout && this.chart.plotArea.layout.layoutTarget === AscFormat.LAYOUT_TARGET_INNER) { - bWithoutLabels = true; - } + // check if diagram size affected by laout + const isLayoutSizes = this.isLayoutSizes(); + const oPlotArea = this.getPlotArea(); + const bWithoutLabels = isLayoutSizes && this.chart.plotArea.layout.layoutTarget === AscFormat.LAYOUT_TARGET_INNER; + if (isLayoutSizes && oPlotArea) { + oPlotArea.extX = oRect.w; + oPlotArea.extY = oRect.h; + oPlotArea.x = oRect.x; + oPlotArea.y = oRect.y; + oPlotArea.rectChanged = true; + } + let bCorrected = false; let fL = oRect.x, fT = oRect.y, fR = oRect.x + oRect.w, fB = oRect.y + oRect.h; + const isChartEx = this.isChartEx(); let fHorPadding = 0.0; let fVertPadding = 0.0; let fHorInterval = null; @@ -4534,22 +5110,28 @@ function(window, undefined) { for(let nAxesSet = 0; nAxesSet < aAxesSet.length; ++nAxesSet) { let oCurAxis = aAxesSet[nAxesSet]; let oCrossAxis = oCurAxis.crossAx; - if(!oCalcMap[oCurAxis.Id]) { + if(oCalcMap && !oCalcMap[oCurAxis.Id]) { this.calculateAxisGrid(oCurAxis, oRect); oCalcMap[oCurAxis.Id] = true; } - if(!oCalcMap[oCrossAxis.Id]) { + if(oCrossAxis && !oCalcMap[oCrossAxis.Id]) { this.calculateAxisGrid(oCrossAxis, oRect); oCalcMap[oCrossAxis.Id] = true; } + if (!oCrossAxis) { + return; + } let fCrossValue; + // posY seeks the zero position on the diagram + let posY = null; + // fAxisPos seeks the bottom diagram position let fAxisPos; let fDistance = DEFAULT_LBLS_DISTANCE; let fDistanceSign = 1; let nLabelsPos; let bLabelsExtremePosition = false; let bOnTickMark = oCurAxis.grid.bOnTickMark; - if(oCurAxis.bDelete) { + if(oCurAxis.bDelete || oCurAxis.hidden) { nLabelsPos = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NONE; } else { @@ -4595,7 +5177,9 @@ function(window, undefined) { } default: { //includes AutoZero - if(oCrossAxis.scale[0] <= 0 && oCrossAxis.scale[oCrossAxis.scale.length - 1] >= 0) { + if (isChartEx) { + fCrossValue = oCrossAxis.scale[0]; + } else if(oCrossAxis.scale[0] <= 0 && oCrossAxis.scale[oCrossAxis.scale.length - 1] >= 0) { fCrossValue = 0; } else if(oCrossAxis.scale[0] > 0) { @@ -4617,6 +5201,7 @@ function(window, undefined) { let bKoeff = 1.0; if(oCrossAxis.scale.length > 1) { bKoeff = oCrossAxis.scale[1] - oCrossAxis.scale[0]; + bKoeff = bKoeff ? bKoeff : 1.0; } fAxisPos = oCrossGrid.fStart; const bRadarValues = oCurAxis.isRadarValues(); @@ -4626,6 +5211,7 @@ function(window, undefined) { else { if(oCrossAxis.scale.length > 0) { fAxisPos += (fCrossValue - oCrossAxis.scale[0]) * (oCrossGrid.fStride) / bKoeff; + posY = fAxisPos + (-oCrossAxis.scale[0]) * (oCrossGrid.fStride) / bKoeff; } } @@ -4666,7 +5252,9 @@ function(window, undefined) { } } - + if (isChartEx && aAxesSet.length === 1) { + fPos = oRect.x; + } oCurAxis.labels = oLabelsBox; oCurAxis.posX = null; @@ -4689,7 +5277,7 @@ function(window, undefined) { fLayoutRadarCatLabelsBox(oLabelsBox, oRect, aPoints); } else if(oCurAxis.isHorizontal()) { - oCurAxis.posY = fAxisPos; + oCurAxis.posY = isChartEx ? posY : fAxisPos; oCurAxis.xPoints = []; aPoints = oCurAxis.xPoints; if(oLabelsBox) { @@ -4713,7 +5301,7 @@ function(window, undefined) { fForceContentWidth = Math.abs(fHorInterval) + fHorInterval / nTickLblSkip; } fDistance = fDistanceSign * oLabelsBox.getLabelsOffset(); - fLayoutHorLabelsBox(oLabelsBox, fPos, fPosStart, fPosEnd, bOnTickMark, fDistance, bForceVertical, bNumbers, fForceContentWidth); + fLayoutHorLabelsBox(oLabelsBox, fPos, fPosStart, fPosEnd, bOnTickMark, fDistance, bForceVertical, bNumbers, fForceContentWidth, nIndex, oBaseRect.h); if(bLabelsExtremePosition) { if(fDistance > 0) { fVertPadding = -oLabelsBox.extY; @@ -4924,6 +5512,14 @@ function(window, undefined) { this.cachedCanvas = null; this.plotAreaRect = null; this.bEmptySeries = this.checkEmptySeries(); + const isChartEx = this.isChartEx(); + + // TODO after new succefull implementation of new type remove option here + const type = this.chart && this.chart.plotArea && this.chart.plotArea.plotAreaRegion && this.chart.plotArea.plotAreaRegion.series && this.chart.plotArea.plotAreaRegion.series[0] ? this.chart.plotArea.plotAreaRegion.series[0].layoutId : null; + if (isChartEx && !type && (type === AscFormat.SERIES_LAYOUT_BOX_WHISKER || type === AscFormat.SERIES_LAYOUT_PARETO_LINE || type === AscFormat.SERIES_LAYOUT_REGION_MAP || type === AscFormat.SERIES_LAYOUT_SUNBURST || type === AscFormat.SERIES_LAYOUT_TREEMAP)) { + return ; + } + //---------------------------------- if (this.chart && this.chart.plotArea) { var oPlotArea = this.chart.plotArea; for (i = 0; i < oPlotArea.axId.length; ++i) { @@ -4993,44 +5589,50 @@ function(window, undefined) { var aSeriesAxes = []; var dSeriesLabelsWidth = 0; var oSetAxis; - while (aAxes.length > 0) { - oCurAxis = aAxes.splice(0, 1)[0]; - if (oCurAxis.getObjectType() !== AscDFH.historyitem_type_SerAx) { - aCurAxesSet = []; - aCurAxesSet.push(oCurAxis); - for (i = aAxes.length - 1; i > -1; --i) { - oCurAxis2 = aAxes[i]; - if (oCurAxis2.getObjectType() !== AscDFH.historyitem_type_SerAx) { - for (j = aCurAxesSet.length - 1; j > -1; --j) { - oSetAxis = aCurAxesSet[j]; - if (oSetAxis.crossAx !== oSetAxis && oSetAxis.crossAx === oCurAxis2 || - oCurAxis2.crossAx !== oCurAxis2 && oCurAxis2.crossAx === oSetAxis) { - aCurAxesSet.push(oCurAxis2); + if (isChartEx) { + if (this.chart.plotArea.axId && Array.isArray(this.chart.plotArea.axId)) { + aAllAxes.push(this.chart.plotArea.axId); + } + } else { + while (aAxes.length > 0) { + oCurAxis = aAxes.splice(0, 1)[0]; + if (oCurAxis.getObjectType() !== AscDFH.historyitem_type_SerAx) { + aCurAxesSet = []; + aCurAxesSet.push(oCurAxis); + for (i = aAxes.length - 1; i > -1; --i) { + oCurAxis2 = aAxes[i]; + if (oCurAxis2.getObjectType() !== AscDFH.historyitem_type_SerAx) { + for (j = aCurAxesSet.length - 1; j > -1; --j) { + oSetAxis = aCurAxesSet[j]; + if (oSetAxis.crossAx !== oSetAxis && oSetAxis.crossAx === oCurAxis2 || + oCurAxis2.crossAx !== oCurAxis2 && oCurAxis2.crossAx === oSetAxis) { + aCurAxesSet.push(oCurAxis2); + } } } } - } - if (aCurAxesSet.length > 1) { - aAllAxes.push(aCurAxesSet); - } - } else { - aSeriesAxes.push(oCurAxis); - this.calculateAxisGrid(oCurAxis, oRect); - oCurAxis.labels = null; - var nLabelsPos = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NEXT_TO; - if (oCurAxis.bDelete) { - nLabelsPos = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NONE; + if (aCurAxesSet.length > 1) { + aAllAxes.push(aCurAxesSet); + } } else { - if (null !== oCurAxis.tickLblPos) { - nLabelsPos = oCurAxis.tickLblPos; + aSeriesAxes.push(oCurAxis); + this.calculateAxisGrid(oCurAxis, oRect); + oCurAxis.labels = null; + var nLabelsPos = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NEXT_TO; + if (oCurAxis.bDelete) { + nLabelsPos = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NONE; } else { - nLabelsPos = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NEXT_TO; + if (null !== oCurAxis.tickLblPos) { + nLabelsPos = oCurAxis.tickLblPos; + } else { + nLabelsPos = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NEXT_TO; + } + } + if (nLabelsPos !== c_oAscTickLabelsPos.TICK_LABEL_POSITION_NONE) { + var oLabelsBox = new CLabelsBox(oCurAxis.grid.aStrings, oCurAxis, this); + oCurAxis.labels = oLabelsBox; + dSeriesLabelsWidth = oLabelsBox.maxMinWidth; } - } - if (nLabelsPos !== c_oAscTickLabelsPos.TICK_LABEL_POSITION_NONE) { - var oLabelsBox = new CLabelsBox(oCurAxis.grid.aStrings, oCurAxis, this); - oCurAxis.labels = oLabelsBox; - dSeriesLabelsWidth = oLabelsBox.maxMinWidth; } } } @@ -5170,6 +5772,7 @@ function(window, undefined) { } let oChartSize = this.getChartSizes(true); + oPlotArea.rectChanged = false; this.chart.plotArea.x = oChartSize.startX; this.chart.plotArea.y = oChartSize.startY; this.chart.plotArea.extX = oChartSize.w; @@ -5259,6 +5862,9 @@ function(window, undefined) { } else { if (oAxisLabels.align) { var labels_offset = oCatAx.labels.getLabelsOffset(); + const rot = oAxisLabels.axis && oAxisLabels.axis.params ? oAxisLabels.axis.params.rot : null; + // find angle based on rot + let fAngle = getRotationAngle(rot); for (i = 0; i < oAxisLabels.aLabels.length; ++i) { if (oAxisLabels.aLabels[i]) { oLabel = oAxisLabels.aLabels[i]; @@ -5266,9 +5872,9 @@ function(window, undefined) { w: oLabel.tx.rich.getContentWidth(), h: oLabel.tx.rich.content.GetSummaryHeight() }, w2, h2, x1, y0, xc, yc; - w2 = wh.w * Math.cos(Math.PI / 4) + wh.h * Math.sin(Math.PI / 4); - h2 = wh.w * Math.sin(Math.PI / 4) + wh.h * Math.cos(Math.PI / 4); - x1 = oCatAx.xPoints[i].pos + wh.h * Math.sin(Math.PI / 4); + w2 = wh.w * Math.cos(fAngle) + wh.h * Math.sin(fAngle); + h2 = wh.w * Math.sin(fAngle) + wh.h * Math.cos(fAngle); + x1 = oCatAx.xPoints[i].pos + wh.h * Math.sin(fAngle); y0 = oAxisLabels.y + labels_offset; var x1t, y0t; var oRes = oProcessor3D.convertAndTurnPoint(x1 * this.chartObj.calcProp.pxToMM, y0 * this.chartObj.calcProp.pxToMM, dZPositionCatAxis); @@ -5279,7 +5885,7 @@ function(window, undefined) { var local_text_transform = oLabel.localTransformText; local_text_transform.Reset(); global_MatrixTransformer.TranslateAppend(local_text_transform, -wh.w / 2, -wh.h / 2); - global_MatrixTransformer.RotateRadAppend(local_text_transform, Math.PI / 4); + global_MatrixTransformer.RotateRadAppend(local_text_transform, fAngle); global_MatrixTransformer.TranslateAppend(local_text_transform, xc, yc); var fBottomContent = y0t + h2; @@ -5310,7 +5916,6 @@ function(window, undefined) { local_text_transform = oLabel.localTransformText; local_text_transform.Reset(); global_MatrixTransformer.TranslateAppend(local_text_transform, -wh.w / 2, -wh.h / 2); - global_MatrixTransformer.RotateRadAppend(local_text_transform, Math.PI / 4);//TODO global_MatrixTransformer.TranslateAppend(local_text_transform, xc, yc); } } @@ -5537,25 +6142,28 @@ function(window, undefined) { }; CChartSpace.prototype.recalculateLegend = function () { if (this.chart && this.chart.legend) { - var parents = this.getParentObjects(); - var RGBA = {R: 0, G: 0, B: 0, A: 255}; - var legend = this.chart.legend; - var arr_str_labels = [], i, j; - var calc_entryes = legend.calcEntryes; + let aCharts = this.isChartEx() ? [this.chart.plotArea.plotAreaRegion] : this.chart.plotArea.charts; + if(aCharts.length === 0) { + return; + } + let parents = this.getParentObjects(); + let RGBA = {R: 0, G: 0, B: 0, A: 255}; + let legend = this.chart.legend; + let arr_str_labels = [], i, j; + let calc_entryes = legend.calcEntryes; calc_entryes.length = 0; - var series; - var legend_pos = c_oAscChartLegendShowSettings.right; + let series; + let legend_pos = c_oAscChartLegendShowSettings.right; if (AscFormat.isRealNumber(legend.legendPos)) { legend_pos = legend.legendPos; } - var aCharts = this.chart.plotArea.charts; var oTypedChart; //Order series for the legend - var aOrderedSeries = []; - var aChartSeries; - var nChart; - var bStraightOrder; - var bVericalLegend = false; + let aOrderedSeries = []; + let aChartSeries; + let nChart; + let bStraightOrder; + let bVericalLegend = false; if (aCharts.length === 1 && (legend_pos === c_oAscChartLegendShowSettings.left || legend_pos === c_oAscChartLegendShowSettings.right || legend_pos === c_oAscChartLegendShowSettings.leftOverlay || @@ -5598,22 +6206,28 @@ function(window, undefined) { aOrderedSeries = aOrderedSeries.concat(aChartSeries); } } + series = aOrderedSeries; - var calc_entry, union_marker, entry; - var max_width = 0, cur_width, max_font_size = 0, cur_font_size, ser, b_line_series; - var b_no_line_series = false; + for(let nS = series.length - 1; nS > -1; --nS) { + if(series[nS].hidden) { + series.splice(nS, 1); + } + } + let calc_entry, union_marker, entry; + let max_width = 0, cur_width, max_font_size = 0, cur_font_size, ser, b_line_series; + let b_no_line_series = false; this.chart.legend.chart = this; var b_scatter_no_line = false; /*(this.chart.plotArea.charts[0].getObjectType() === AscDFH.historyitem_type_ScatterChart && (this.chart.plotArea.charts[0].scatterStyle === AscFormat.SCATTER_STYLE_MARKER || this.chart.plotArea.charts[0].scatterStyle === AscFormat.SCATTER_STYLE_NONE)); */ this.legendLength = null; - var oFirstChart = aCharts[0]; - var bNoPieChart = (oFirstChart.getObjectType() !== AscDFH.historyitem_type_PieChart && oFirstChart.getObjectType() !== AscDFH.historyitem_type_DoughnutChart); - var bSurfaceChart = (oFirstChart.getObjectType() === AscDFH.historyitem_type_SurfaceChart); - const bRadarChart = (oFirstChart.getObjectType() === AscDFH.historyitem_type_RadarChart); + const oFirstChart = aCharts[0]; + const bNoPieChart = oFirstChart && (oFirstChart.getObjectType() !== AscDFH.historyitem_type_PieChart && oFirstChart.getObjectType() !== AscDFH.historyitem_type_DoughnutChart); + const bSurfaceChart = oFirstChart && (oFirstChart.getObjectType() === AscDFH.historyitem_type_SurfaceChart); + const bRadarChart = oFirstChart && (oFirstChart.getObjectType() === AscDFH.historyitem_type_RadarChart); - var bSeriesLegend = aCharts.length > 1 || (bNoPieChart && (!(oFirstChart.varyColors && series.length === 1) || bSurfaceChart || bRadarChart)); + let bSeriesLegend = aCharts.length > 1 || (bNoPieChart && (!(oFirstChart.varyColors && series.length === 1) || bSurfaceChart || bRadarChart)); if (bSeriesLegend) { if (bSurfaceChart) { this.legendLength = this.chart.plotArea.charts[0].compiledBandFormats.length; @@ -5630,7 +6244,8 @@ function(window, undefined) { entry = legend.findLegendEntryByIndex(i); if(entry && entry.bDelete) continue; - arr_str_labels.push(ser.getSeriesName()); + const label = ser.getSeriesName ? ser.getSeriesName() : ''; + arr_str_labels.push(label); } else { entry = legend.findLegendEntryByIndex(i); @@ -5661,12 +6276,13 @@ function(window, undefined) { calc_entry.calcMarkerUnion = new AscFormat.CUnionMarker(); union_marker = calc_entry.calcMarkerUnion; - var pts = ser.getNumPts(); + var pts = this.isChartEx() ? ser.getValPts() : ser.getNumPts(); var nSerType = ser.getObjectType(); if(nSerType === AscDFH.historyitem_type_BarSeries || nSerType === AscDFH.historyitem_type_BubbleSeries || nSerType === AscDFH.historyitem_type_AreaSeries || nSerType === AscDFH.historyitem_type_PieSeries || + nSerType === AscDFH.historyitem_type_Series || (nSerType === AscDFH.historyitem_type_RadarSeries && ser.parent && ser.parent.isFilled())) { @@ -5861,6 +6477,9 @@ function(window, undefined) { } else { marker_size = 0.2 * max_font_size; for (i = 0; i < calc_entryes.length; ++i) { + if (!calc_entryes[i].calcMarkerUnion || !calc_entryes[i].calcMarkerUnion.marker || !calc_entryes[i].calcMarkerUnion.marker.spPr || !calc_entryes[i].calcMarkerUnion.marker.spPr.geometry) { + continue; + } calc_entryes[i].calcMarkerUnion.marker.spPr.geometry.Recalculate(marker_size, marker_size); } distance_to_text = marker_size * 0.7; @@ -6691,7 +7310,6 @@ function(window, undefined) { } if (bMerge) { - var oParaPr = oCopy.txPr.content.Content[0].Pr.Copy(); var oParaPr2 = new CParaPr(); var oCopyTextPr = oTextPr.Copy(); @@ -6829,6 +7447,7 @@ function(window, undefined) { } return oCopy; }; + CChartSpace.prototype.getChartSizes = function (bNotRecalculate) { if (this.plotAreaRect && !this.recalcInfo.recalculateAxisVal) { return { @@ -6843,7 +7462,14 @@ function(window, undefined) { var oChartSize = this.chartObj.calculateSizePlotArea(this, bNotRecalculate); var oLayout = this.chart.plotArea.layout; if (oLayout) { - + if (this.chart.plotArea.rectChanged) { + return { + startX: this.chart.plotArea.x, + startY: this.chart.plotArea.y, + w: this.chart.plotArea.extX, + h: this.chart.plotArea.extY + } + } oChartSize.startX = this.calculatePosByLayout(oChartSize.startX, oLayout.xMode, oLayout.x, oChartSize.w, this.extX); oChartSize.startY = this.calculatePosByLayout(oChartSize.startY, oLayout.yMode, oLayout.y, oChartSize.h, this.extY); var fSize = this.calculateSizeByLayout(oChartSize.startX, this.extX, oLayout.w, oLayout.wMode); @@ -6969,6 +7595,14 @@ function(window, undefined) { default_brush = CreateUnifillSolidFillSchemeColor(8, 0.95000); } } + if(this.isChartEx()) { + if (this.chartStyle && this.chartColors) { + let oSpPr = this.getSpPrFormStyleEntry(this.chartStyle.plotArea, this.chartColors.generateColors(1), 0); + if(oSpPr && oSpPr.Fill) { + default_brush.merge(oSpPr.Fill); + } + } + } if (plot_area.spPr && plot_area.spPr.Fill) { default_brush.merge(plot_area.spPr.Fill); } @@ -7008,6 +7642,14 @@ function(window, undefined) { B: 0, A: 255 }, this.clrMapOvr); + if(this.isChartEx()) { + if (this.chartStyle && this.chartColors) { + let oSpPr = this.getSpPrFormStyleEntry(this.chartStyle.chartArea, this.chartColors.generateColors(1), 0); + if(oSpPr && oSpPr.ln) { + default_line.merge(oSpPr.ln); + } + } + } this.pen = default_line; checkBlackUnifill(this.pen.Fill, true); }; @@ -7020,6 +7662,14 @@ function(window, undefined) { else default_brush = CreateUnifillSolidFillSchemeColor(8, 0); + if(this.isChartEx()) { + if (this.chartStyle && this.chartColors) { + let oSpPr = this.getSpPrFormStyleEntry(this.chartStyle.chartArea, this.chartColors.generateColors(1), 0); + if(oSpPr && oSpPr.Fill) { + default_brush.merge(oSpPr.Fill); + } + } + } if (this.spPr && this.spPr.Fill) { default_brush.merge(this.spPr.Fill); } @@ -7241,533 +7891,558 @@ function(window, undefined) { this.cachedCanvas = null; this.ptsCount = 0; if (this.chart && this.chart.plotArea) { - var style = CHART_STYLE_MANAGER.getStyleByIndex(this.style); - var parents = this.getParentObjects(); - var RGBA = {R: 0, G: 0, B: 0, A: 255}; - var aCharts = this.chart.plotArea.charts; - var aAllSeries = []; - for (var t = 0; t < aCharts.length; ++t) { - aAllSeries = aAllSeries.concat(aCharts[t].series); - } - var nMaxSeriesIdx = getMaxIdx(aAllSeries); - for (t = 0; t < aCharts.length; ++t) { - var oChart = aCharts[t]; - var series = oChart.series; - if (oChart.varyColors - && (series.length === 1 || oChart.getObjectType() === AscDFH.historyitem_type_PieChart || oChart.getObjectType() === AscDFH.historyitem_type_DoughnutChart)) { - var base_fills2 = getArrayFillsFromBase(style.fill2, getMaxIdx(series)); - for (var ii = 0; ii < series.length; ++ii) { - var ser = series[ii]; - var pts = ser.getNumPts(); - this.ptsCount += pts.length; - ser.compiledSeriesBrush = new AscFormat.CUniFill(); - ser.compiledSeriesBrush.merge(base_fills2[ser.idx]); - if (ser.spPr && ser.spPr.Fill) { - ser.compiledSeriesBrush.merge(ser.spPr.Fill); - } - - - ser.compiledSeriesPen = new AscFormat.CLn(); - if (style.line1 === EFFECT_NONE) { - ser.compiledSeriesPen.w = 0; - } else if (style.line1 === EFFECT_SUBTLE) { - ser.compiledSeriesPen.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); - } else if (style.line1 === EFFECT_MODERATE) { - ser.compiledSeriesPen.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); - } else if (style.line1 === EFFECT_INTENSE) { - ser.compiledSeriesPen.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); - } - var base_line_fills2; - if (this.style === 34) - base_line_fills2 = getArrayFillsFromBase(style.line2, getMaxIdx(series)); - - ser.compiledSeriesPen.Fill = new AscFormat.CUniFill(); - if (this.style !== 34) { - ser.compiledSeriesPen.Fill.merge(style.line2[0]); - } else { - ser.compiledSeriesPen.Fill.merge(base_line_fills2[ser.idx]); - } - if (ser.spPr && ser.spPr.ln) - ser.compiledSeriesPen.merge(ser.spPr.ln); - - - if (!(oChart.getObjectType() === AscDFH.historyitem_type_LineChart || oChart.getObjectType() === AscDFH.historyitem_type_ScatterChart)) { - var base_fills = getArrayFillsFromBase(style.fill2, getMaxIdx(pts)); - for (var i = 0; i < pts.length; ++i) { - var compiled_brush = new AscFormat.CUniFill(); - compiled_brush.merge(base_fills[pts[i].idx]); - if (ser.spPr && ser.spPr.Fill) { - compiled_brush.merge(ser.spPr.Fill); - } - if (Array.isArray(ser.dPt)) { - for (var j = 0; j < ser.dPt.length; ++j) { - if (ser.dPt[j].idx === pts[i].idx) { - if (ser.dPt[j].spPr) { - compiled_brush.merge(ser.dPt[j].spPr.Fill); + let style = CHART_STYLE_MANAGER.getStyleByIndex(this.style); + let parents = this.getParentObjects(); + let RGBA = {R: 0, G: 0, B: 0, A: 255}; + let nColorsCount = this.chart.plotArea.getMaxSeriesIdx() + 1; + let oChartSpace = this; + function defaultCalculateSeriesColors(aSeries) { + let base_fills = getArrayFillsFromBase(style.fill2, nColorsCount); + let base_line_fills = null; + if (style.line1 === EFFECT_SUBTLE && oChartSpace.style === 34) + base_line_fills = getArrayFillsFromBase(style.line2, nColorsCount); + + + for (let nSer = 0; nSer < aSeries.length; ++nSer) { + let oSeries = aSeries[nSer]; + var compiled_brush = new AscFormat.CUniFill(); + compiled_brush.merge(base_fills[oSeries.getIdx()]); + if(oSeries.isChartEx()) { + if (oChartSpace.chartStyle && oChartSpace.chartColors) { + let oSpPr = oChartSpace.getSpPrFormStyleEntry(oChartSpace.chartStyle.dataPoint, oChartSpace.chartColors.generateColors(aSeries.length), oSeries.idx); + if(oSpPr && oSpPr.Fill) { + compiled_brush.merge(oSpPr.Fill); + } + } + } + if (oSeries.spPr && oSeries.spPr.Fill) { + compiled_brush.merge(oSeries.spPr.Fill); + } + oSeries.compiledSeriesBrush = compiled_brush.createDuplicate(); + + oSeries.compiledSeriesBrush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, oChartSpace.clrMapOvr); + + default_line = new AscFormat.CLn(); + if (style.line1 === EFFECT_NONE) { + default_line.w = 0; + } else if (style.line1 === EFFECT_SUBTLE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); + } else if (style.line1 === EFFECT_MODERATE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); + } else if (style.line1 === EFFECT_INTENSE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); + } + + let pts = oSeries.getNumPts && oSeries.getNumPts(); + if (oChartSpace.style === 34 && pts) + base_line_fills = getArrayFillsFromBase(style.line2, getMaxIdx(pts)); + + + var compiled_line = new AscFormat.CLn(); + compiled_line.merge(default_line); + compiled_line.Fill = new AscFormat.CUniFill(); + if (oChartSpace.style !== 34) + compiled_line.Fill.merge(style.line2[0]); + else if (base_line_fills) + compiled_line.Fill.merge(base_line_fills[oSeries.idx]); + if(oSeries.isChartEx()) { + if (oChartSpace.chartStyle && oChartSpace.chartColors) { + let oSpPr = oChartSpace.getSpPrFormStyleEntry(oChartSpace.chartStyle.dataPoint, oChartSpace.chartColors.generateColors(aSeries.length), oSeries.idx); + if(oSpPr && oSpPr.ln) { + compiled_line.merge(oSpPr.ln); + } + } + } + if (oSeries.spPr && oSeries.spPr.ln) { + compiled_line.merge(oSeries.spPr.ln); + } + oSeries.compiledSeriesPen = compiled_line.createDuplicate(); + oSeries.compiledSeriesPen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, oChartSpace.clrMapOvr); + + + if(pts) { + oChartSpace.ptsCount += pts.length; + for (let nPt = 0; nPt < pts.length; ++nPt) { + let oPt = pts[nPt]; + oPt.brush = oSeries.compiledSeriesBrush; + oPt.pen = oSeries.compiledSeriesPen; + if (Array.isArray(oSeries.dPt) && !(oSeries.getObjectType && oSeries.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { + for (let nDpt = 0; nDpt < oSeries.dPt.length; ++nDpt) { + let oDpt = oSeries.dPt[nDpt]; + if (oDpt.idx === oPt.idx) { + if (oDpt.spPr) { + if (oDpt.spPr.Fill && oDpt.spPr.Fill.fill) { + compiled_brush = oDpt.spPr.Fill.createDuplicate(); + oPt.brush = compiled_brush; } - break; + compiled_line = oSeries.compiledSeriesPen.createDuplicate(); + compiled_line.merge(oDpt.spPr.ln); + oPt.pen = compiled_line; + + compiled_brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, oChartSpace.clrMapOvr); + compiled_line.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, oChartSpace.clrMapOvr); } + break; } } - pts[i].brush = compiled_brush; - pts[i].brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); } + } + } + else { + for (let nDpt = 0; nDpt < oSeries.dPt.length; ++nDpt) { + let oDpt = oSeries.dPt[nDpt]; + oDpt.brush = oSeries.compiledSeriesBrush; + oDpt.pen = oSeries.compiledSeriesPen; + if (oDpt.spPr) { + if (oDpt.spPr.Fill && oDpt.spPr.Fill.fill) { + compiled_brush = oDpt.spPr.Fill.createDuplicate(); + oDpt.brush = compiled_brush; + + compiled_brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, oChartSpace.clrMapOvr); + } + compiled_line = oSeries.compiledSeriesPen.createDuplicate(); + compiled_line.merge(oDpt.spPr.ln); + oDpt.pen = compiled_line; + compiled_line.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, oChartSpace.clrMapOvr); + } + } + } + } + } + + if(this.isChartEx()) { + let oPlotAreaRegion = this.chart.plotArea.plotAreaRegion; + if(oPlotAreaRegion) { + defaultCalculateSeriesColors(oPlotAreaRegion.series); + } + } + else { + let aCharts = this.chart.plotArea.charts; + for (let nChart = 0; nChart < aCharts.length; ++nChart) { + let oChart = aCharts[nChart]; + let series = oChart.series; + if (oChart.varyColors + && (series.length === 1 || oChart.getObjectType() === AscDFH.historyitem_type_PieChart || oChart.getObjectType() === AscDFH.historyitem_type_DoughnutChart)) { + var base_fills2 = getArrayFillsFromBase(style.fill2, getMaxIdx(series)); + for (var ii = 0; ii < series.length; ++ii) { + var ser = series[ii]; + var pts = ser.getNumPts(); + this.ptsCount += pts.length; + ser.compiledSeriesBrush = new AscFormat.CUniFill(); + ser.compiledSeriesBrush.merge(base_fills2[ser.idx]); + if (ser.spPr && ser.spPr.Fill) { + ser.compiledSeriesBrush.merge(ser.spPr.Fill); + } + - default_line = new AscFormat.CLn(); + ser.compiledSeriesPen = new AscFormat.CLn(); if (style.line1 === EFFECT_NONE) { - default_line.w = 0; + ser.compiledSeriesPen.w = 0; } else if (style.line1 === EFFECT_SUBTLE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); + ser.compiledSeriesPen.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); } else if (style.line1 === EFFECT_MODERATE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); + ser.compiledSeriesPen.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); } else if (style.line1 === EFFECT_INTENSE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); + ser.compiledSeriesPen.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); } - var base_line_fills; + var base_line_fills2; if (this.style === 34) - base_line_fills = getArrayFillsFromBase(style.line2, getMaxIdx(pts)); - for (i = 0; i < pts.length; ++i) { - var compiled_line = new AscFormat.CLn(); - compiled_line.merge(default_line); - compiled_line.Fill = new AscFormat.CUniFill(); - if (this.style !== 34) { - compiled_line.Fill.merge(style.line2[0]); - } else { - compiled_line.Fill.merge(base_line_fills[pts[i].idx]); - } - if (ser.spPr && ser.spPr.ln) - compiled_line.merge(ser.spPr.ln); - if (Array.isArray(ser.dPt) && !(ser.getObjectType && ser.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { - for (var j = 0; j < ser.dPt.length; ++j) { - if (ser.dPt[j].idx === pts[i].idx) { - if (ser.dPt[j].spPr) { - compiled_line.merge(ser.dPt[j].spPr.ln); - } - break; - } - } - } - pts[i].pen = compiled_line; - pts[i].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); - } - } else { - var default_line; - if (oChart.getObjectType() === AscDFH.historyitem_type_ScatterChart && oChart.scatterStyle === AscFormat.SCATTER_STYLE_MARKER || oChart.scatterStyle === AscFormat.SCATTER_STYLE_NONE) { - default_line = new AscFormat.CLn(); - default_line.setFill(new AscFormat.CUniFill()); - default_line.Fill.setFill(new AscFormat.CNoFill()); + base_line_fills2 = getArrayFillsFromBase(style.line2, getMaxIdx(series)); + + ser.compiledSeriesPen.Fill = new AscFormat.CUniFill(); + if (this.style !== 34) { + ser.compiledSeriesPen.Fill.merge(style.line2[0]); } else { - default_line = parents.theme.themeElements.fmtScheme.lnStyleLst[0]; - } - var base_line_fills = getArrayFillsFromBase(style.line4, getMaxIdx(pts)); - for (var i = 0; i < pts.length; ++i) { - var compiled_line = new AscFormat.CLn(); - compiled_line.merge(default_line); - if (!(oChart.getObjectType() === AscDFH.historyitem_type_ScatterChart && oChart.scatterStyle === AscFormat.SCATTER_STYLE_MARKER || oChart.scatterStyle === AscFormat.SCATTER_STYLE_NONE)) - compiled_line.Fill.merge(base_line_fills[pts[i].idx]); - compiled_line.w *= style.line3; - if (ser.spPr && ser.spPr.ln) { - compiled_line.merge(ser.spPr.ln); - } - if (Array.isArray(ser.dPt)) { - for (var j = 0; j < ser.dPt.length; ++j) { - if (ser.dPt[j].idx === pts[i].idx) { - if (ser.dPt[j].spPr) { - compiled_line.merge(ser.dPt[j].spPr.ln); - } - break; - } - } - } - pts[i].brush = null; - pts[i].pen = compiled_line; - pts[i].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + ser.compiledSeriesPen.Fill.merge(base_line_fills2[ser.idx]); } - } - for (var j = 0; j < pts.length; ++j) { - if (pts[j].compiledMarker) { - pts[j].compiledMarker.pen && pts[j].compiledMarker.pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); - pts[j].compiledMarker.brush && pts[j].compiledMarker.brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + if (ser.spPr && ser.spPr.ln) + ser.compiledSeriesPen.merge(ser.spPr.ln); - } - } - } - } - else { - var nChartType = oChart.getObjectType(); - if(nChartType === AscDFH.historyitem_type_LineChart || - (nChartType === AscDFH.historyitem_type_RadarChart && (oChart.radarStyle === AscFormat.RADAR_STYLE_STANDARD || oChart.radarStyle === AscFormat.RADAR_STYLE_MARKER))) { - var base_line_fills = getArrayFillsFromBase(style.line4, nMaxSeriesIdx); - if(!AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this)) { - for(var i = 0; i < series.length; ++i) { - var default_line = parents.theme.themeElements.fmtScheme.lnStyleLst[0]; - var ser = series[i]; - var pts = ser.getNumPts(); - this.ptsCount += pts.length; - var compiled_line = new AscFormat.CLn(); - compiled_line.merge(default_line); - compiled_line.Fill && compiled_line.Fill.merge(base_line_fills[ser.idx]); - compiled_line.w *= style.line3; - if(ser.spPr && ser.spPr.ln) - compiled_line.merge(ser.spPr.ln); - ser.compiledSeriesPen = compiled_line; - for(var j = 0; j < pts.length; ++j) { - var oPointLine = null; - if(Array.isArray(ser.dPt)) { - for(var k = 0; k < ser.dPt.length; ++k) { - if(ser.dPt[k].idx === pts[j].idx) { - if(ser.dPt[k].spPr) { - oPointLine = ser.dPt[k].spPr.ln; + if (!(oChart.getObjectType() === AscDFH.historyitem_type_LineChart || oChart.getObjectType() === AscDFH.historyitem_type_ScatterChart)) { + var base_fills = getArrayFillsFromBase(style.fill2, getMaxIdx(pts)); + for (var i = 0; i < pts.length; ++i) { + var compiled_brush = new AscFormat.CUniFill(); + compiled_brush.merge(base_fills[pts[i].idx]); + if (ser.spPr && ser.spPr.Fill) { + compiled_brush.merge(ser.spPr.Fill); + } + if (Array.isArray(ser.dPt)) { + for (var j = 0; j < ser.dPt.length; ++j) { + if (ser.dPt[j].idx === pts[i].idx) { + if (ser.dPt[j].spPr) { + compiled_brush.merge(ser.dPt[j].spPr.Fill); } break; } } } - if(oPointLine) { - compiled_line = ser.compiledSeriesPen.createDuplicate(); - compiled_line.merge(oPointLine); - } - else { - compiled_line = ser.compiledSeriesPen; - } - pts[j].brush = null; - pts[j].pen = compiled_line; + pts[i].brush = compiled_brush; + pts[i].brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); } - } - } - else { - var base_fills = getArrayFillsFromBase(style.fill2, nMaxSeriesIdx); - var base_line_fills = null; - if(style.line1 === EFFECT_SUBTLE && this.style === 34) - base_line_fills = getArrayFillsFromBase(style.line2, nMaxSeriesIdx); - for(var i = 0; i < series.length; ++i) { - var ser = series[i]; - var compiled_brush = new AscFormat.CUniFill(); - compiled_brush.merge(base_fills[ser.idx]); - if(ser.spPr && ser.spPr.Fill) { - compiled_brush.merge(ser.spPr.Fill); + + default_line = new AscFormat.CLn(); + if (style.line1 === EFFECT_NONE) { + default_line.w = 0; + } else if (style.line1 === EFFECT_SUBTLE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); + } else if (style.line1 === EFFECT_MODERATE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); + } else if (style.line1 === EFFECT_INTENSE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); } - ser.compiledSeriesBrush = compiled_brush; - ser.compiledSeriesBrush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); - var pts = ser.getNumPts(); - for(var j = 0; j < pts.length; ++j) { - pts[j].brush = ser.compiledSeriesBrush; - if(Array.isArray(ser.dPt) && !(ser.getObjectType && ser.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { - for(var k = 0; k < ser.dPt.length; ++k) { - if(ser.dPt[k].idx === pts[j].idx) { - if(ser.dPt[k].spPr) { - if(ser.dPt[k].spPr.Fill && ser.dPt[k].spPr.Fill.fill) { - pts[j].brush = ser.dPt[k].spPr.Fill.createDuplicate(); - pts[j].brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); - } + var base_line_fills; + if (this.style === 34) + base_line_fills = getArrayFillsFromBase(style.line2, getMaxIdx(pts)); + for (i = 0; i < pts.length; ++i) { + var compiled_line = new AscFormat.CLn(); + compiled_line.merge(default_line); + compiled_line.Fill = new AscFormat.CUniFill(); + if (this.style !== 34) { + compiled_line.Fill.merge(style.line2[0]); + } else { + compiled_line.Fill.merge(base_line_fills[pts[i].idx]); + } + if (ser.spPr && ser.spPr.ln) + compiled_line.merge(ser.spPr.ln); + if (Array.isArray(ser.dPt) && !(ser.getObjectType && ser.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { + for (var j = 0; j < ser.dPt.length; ++j) { + if (ser.dPt[j].idx === pts[i].idx) { + if (ser.dPt[j].spPr) { + compiled_line.merge(ser.dPt[j].spPr.ln); } break; } } } + pts[i].pen = compiled_line; + pts[i].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); } - - - // - { + } else { + var default_line; + if (oChart.getObjectType() === AscDFH.historyitem_type_ScatterChart && oChart.scatterStyle === AscFormat.SCATTER_STYLE_MARKER || oChart.scatterStyle === AscFormat.SCATTER_STYLE_NONE) { default_line = new AscFormat.CLn(); - if(style.line1 === EFFECT_NONE) { - default_line.w = 0; - } - else if(style.line1 === EFFECT_SUBTLE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); - } - else if(style.line1 === EFFECT_MODERATE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); + default_line.setFill(new AscFormat.CUniFill()); + default_line.Fill.setFill(new AscFormat.CNoFill()); + } else { + default_line = parents.theme.themeElements.fmtScheme.lnStyleLst[0]; + } + var base_line_fills = getArrayFillsFromBase(style.line4, getMaxIdx(pts)); + for (var i = 0; i < pts.length; ++i) { + var compiled_line = new AscFormat.CLn(); + compiled_line.merge(default_line); + if (!(oChart.getObjectType() === AscDFH.historyitem_type_ScatterChart && oChart.scatterStyle === AscFormat.SCATTER_STYLE_MARKER || oChart.scatterStyle === AscFormat.SCATTER_STYLE_NONE)) + compiled_line.Fill.merge(base_line_fills[pts[i].idx]); + compiled_line.w *= style.line3; + if (ser.spPr && ser.spPr.ln) { + compiled_line.merge(ser.spPr.ln); } - else if(style.line1 === EFFECT_INTENSE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); + if (Array.isArray(ser.dPt)) { + for (var j = 0; j < ser.dPt.length; ++j) { + if (ser.dPt[j].idx === pts[i].idx) { + if (ser.dPt[j].spPr) { + compiled_line.merge(ser.dPt[j].spPr.ln); + } + break; + } + } } - var base_line_fills; - if(this.style === 34) - base_line_fills = getArrayFillsFromBase(style.line2, getMaxIdx(pts)); + pts[i].brush = null; + pts[i].pen = compiled_line; + pts[i].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + } + } + for (var j = 0; j < pts.length; ++j) { + if (pts[j].compiledMarker) { + pts[j].compiledMarker.pen && pts[j].compiledMarker.pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + pts[j].compiledMarker.brush && pts[j].compiledMarker.brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + } + } + } + } else { + var nChartType = oChart.getObjectType(); + if (nChartType === AscDFH.historyitem_type_LineChart || + (nChartType === AscDFH.historyitem_type_RadarChart && (oChart.radarStyle === AscFormat.RADAR_STYLE_STANDARD || oChart.radarStyle === AscFormat.RADAR_STYLE_MARKER))) { + var base_line_fills = getArrayFillsFromBase(style.line4, nColorsCount); + if (!AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this)) { + for (var i = 0; i < series.length; ++i) { + var default_line = parents.theme.themeElements.fmtScheme.lnStyleLst[0]; + var ser = series[i]; + var pts = ser.getNumPts(); + this.ptsCount += pts.length; var compiled_line = new AscFormat.CLn(); compiled_line.merge(default_line); - compiled_line.Fill = new AscFormat.CUniFill(); - if(this.style !== 34) - compiled_line.Fill.merge(style.line2[0]); - else - compiled_line.Fill.merge(base_line_fills[ser.idx]); - if(ser.spPr && ser.spPr.ln) { + compiled_line.Fill && compiled_line.Fill.merge(base_line_fills[ser.idx]); + compiled_line.w *= style.line3; + if (ser.spPr && ser.spPr.ln) compiled_line.merge(ser.spPr.ln); - } ser.compiledSeriesPen = compiled_line; - ser.compiledSeriesPen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); - for(var j = 0; j < pts.length; ++j) { - if(Array.isArray(ser.dPt) && !(ser.getObjectType && ser.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { - for(var k = 0; k < ser.dPt.length; ++k) { - if(ser.dPt[k].idx === pts[j].idx) { - if(ser.dPt[k].spPr) { - compiled_line = ser.compiledSeriesPen.createDuplicate(); - compiled_line.merge(ser.dPt[k].spPr.ln); - pts[j].pen = compiled_line; - pts[j].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + for (var j = 0; j < pts.length; ++j) { + var oPointLine = null; + if (Array.isArray(ser.dPt)) { + for (var k = 0; k < ser.dPt.length; ++k) { + if (ser.dPt[k].idx === pts[j].idx) { + if (ser.dPt[k].spPr) { + oPointLine = ser.dPt[k].spPr.ln; } break; } } } - if(pts[j].compiledMarker) { - pts[j].compiledMarker.pen && pts[j].compiledMarker.pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); - pts[j].compiledMarker.brush && pts[j].compiledMarker.brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + if (oPointLine) { + compiled_line = ser.compiledSeriesPen.createDuplicate(); + compiled_line.merge(oPointLine); + } else { + compiled_line = ser.compiledSeriesPen; } + pts[j].brush = null; + pts[j].pen = compiled_line; + pts[j].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); } } - } - } - } - else if(nChartType === AscDFH.historyitem_type_ScatterChart) { - var base_line_fills = getArrayFillsFromBase(style.line4, nMaxSeriesIdx); - for(var i = 0; i < series.length; ++i) { - var default_line = parents.theme.themeElements.fmtScheme.lnStyleLst[0]; - var ser = series[i]; - var pts = ser.getNumPts(); - this.ptsCount += pts.length; - if(oChart.scatterStyle === AscFormat.SCATTER_STYLE_SMOOTH || oChart.scatterStyle === AscFormat.SCATTER_STYLE_SMOOTH_MARKER) { - if(!AscFormat.isRealBool(ser.smooth)) { - ser.smooth = true; - } - } - if(oChart.scatterStyle === AscFormat.SCATTER_STYLE_MARKER || oChart.scatterStyle === AscFormat.SCATTER_STYLE_NONE) { - default_line = new AscFormat.CLn(); - default_line.setFill(new AscFormat.CUniFill()); - default_line.Fill.setFill(new AscFormat.CNoFill()); - } - var compiled_line = new AscFormat.CLn(); - compiled_line.merge(default_line); - if(!(oChart.scatterStyle === AscFormat.SCATTER_STYLE_MARKER || oChart.scatterStyle === AscFormat.SCATTER_STYLE_NONE)) { - compiled_line.Fill && compiled_line.Fill.merge(base_line_fills[ser.idx]); - } - compiled_line.w *= style.line3; - if(ser.spPr && ser.spPr.ln) - compiled_line.merge(ser.spPr.ln); - ser.compiledSeriesPen = compiled_line; - for(var j = 0; j < pts.length; ++j) { - pts[j].brush = null; - pts[j].pen = ser.compiledSeriesPen; - if(Array.isArray(ser.dPt)) { - for(var k = 0; k < ser.dPt.length; ++k) { - if(ser.dPt[k].idx === pts[j].idx) { - if(ser.dPt[k].spPr) { - pts[j].pen = ser.compiledSeriesPen.createDuplicate(); - pts[j].pen.merge(ser.dPt[k].spPr.ln); - pts[j].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + } else { + var base_fills = getArrayFillsFromBase(style.fill2, nColorsCount); + var base_line_fills = null; + if (style.line1 === EFFECT_SUBTLE && this.style === 34) + base_line_fills = getArrayFillsFromBase(style.line2, nColorsCount); + for (var i = 0; i < series.length; ++i) { + var ser = series[i]; + var compiled_brush = new AscFormat.CUniFill(); + compiled_brush.merge(base_fills[ser.idx]); + if (ser.spPr && ser.spPr.Fill) { + compiled_brush.merge(ser.spPr.Fill); + } + ser.compiledSeriesBrush = compiled_brush; + ser.compiledSeriesBrush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + var pts = ser.getNumPts(); + for (var j = 0; j < pts.length; ++j) { + pts[j].brush = ser.compiledSeriesBrush; + if (Array.isArray(ser.dPt) && !(ser.getObjectType && ser.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { + for (var k = 0; k < ser.dPt.length; ++k) { + if (ser.dPt[k].idx === pts[j].idx) { + if (ser.dPt[k].spPr) { + if (ser.dPt[k].spPr.Fill && ser.dPt[k].spPr.Fill.fill) { + pts[j].brush = ser.dPt[k].spPr.Fill.createDuplicate(); + pts[j].brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + } + } + break; + } } - break; } } - } - } - } - } - else if(nChartType === AscDFH.historyitem_type_SurfaceChart) { - var oSurfaceChart = oChart; - var aValAxArray = this.getValAxisValues(); - var nFmtsCount = aValAxArray.length - 1; - var oSpPr, oBandFmt, oCompiledBandFmt; - oSurfaceChart.compiledBandFormats.length = 0; - var multiplier; - var axis_by_types = oSurfaceChart.getAxisByTypes(); - var val_ax = axis_by_types.valAx[0]; - if(val_ax.dispUnits) - multiplier = val_ax.dispUnits.getMultiplier(); - else - multiplier = 1; - var num_fmt = val_ax.numFmt, num_format = null, calc_value, rich_value; - if(num_fmt && typeof num_fmt.formatCode === "string" /*&& !(num_fmt.formatCode === "General")*/) { - num_format = oNumFormatCache.get(num_fmt.formatCode); - } - var oParentObjects = this.getParentObjects(); - var RGBA = {R: 255, G: 255, B: 255, A: 255}; - if(oSurfaceChart.isWireframe()) { - var base_line_fills = getArrayFillsFromBase(style.line4, nFmtsCount); - var default_line = parents.theme.themeElements.fmtScheme.lnStyleLst[0]; - for(var i = 0; i < nFmtsCount; ++i) { - oBandFmt = oSurfaceChart.getBandFmtByIndex(i); - oSpPr = new AscFormat.CSpPr(); - oSpPr.setFill(AscFormat.CreateNoFillUniFill()); - var compiled_line = new AscFormat.CLn(); - compiled_line.merge(default_line); - compiled_line.Fill.merge(base_line_fills[i]); - //compiled_line.w *= style.line3; - compiled_line.Join = new AscFormat.LineJoin(); - compiled_line.Join.type = AscFormat.LineJoinType.Bevel; - if(oBandFmt && oBandFmt.spPr) { - compiled_line.merge(oBandFmt.spPr.ln); - } - compiled_line.calculate(oParentObjects.theme, oParentObjects.slide, oParentObjects.layout, oParentObjects.master, RGBA, this.clrMapOvr); - oSpPr.setLn(compiled_line); - oCompiledBandFmt = new AscFormat.CBandFmt(); - oCompiledBandFmt.setIdx(i); - oCompiledBandFmt.setSpPr(oSpPr); - if(num_format) { - oCompiledBandFmt.startValue = num_format.formatToChart(aValAxArray[i] * multiplier); - oCompiledBandFmt.endValue = num_format.formatToChart(aValAxArray[i + 1] * multiplier); - - } - else { - oCompiledBandFmt.startValue = '' + (aValAxArray[i] * multiplier); - oCompiledBandFmt.endValue = '' + (aValAxArray[i + 1] * multiplier); + // + { + default_line = new AscFormat.CLn(); + if (style.line1 === EFFECT_NONE) { + default_line.w = 0; + } else if (style.line1 === EFFECT_SUBTLE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); + } else if (style.line1 === EFFECT_MODERATE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); + } else if (style.line1 === EFFECT_INTENSE) { + default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); + } + var base_line_fills; + if (this.style === 34) + base_line_fills = getArrayFillsFromBase(style.line2, getMaxIdx(pts)); + + + var compiled_line = new AscFormat.CLn(); + compiled_line.merge(default_line); + compiled_line.Fill = new AscFormat.CUniFill(); + if (this.style !== 34) + compiled_line.Fill.merge(style.line2[0]); + else + compiled_line.Fill.merge(base_line_fills[ser.idx]); + if (ser.spPr && ser.spPr.ln) { + compiled_line.merge(ser.spPr.ln); + } + ser.compiledSeriesPen = compiled_line; + ser.compiledSeriesPen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + for (var j = 0; j < pts.length; ++j) { + if (Array.isArray(ser.dPt) && !(ser.getObjectType && ser.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { + for (var k = 0; k < ser.dPt.length; ++k) { + if (ser.dPt[k].idx === pts[j].idx) { + if (ser.dPt[k].spPr) { + compiled_line = ser.compiledSeriesPen.createDuplicate(); + compiled_line.merge(ser.dPt[k].spPr.ln); + pts[j].pen = compiled_line; + pts[j].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + } + break; + } + } + } + if (pts[j].compiledMarker) { + pts[j].compiledMarker.pen && pts[j].compiledMarker.pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + pts[j].compiledMarker.brush && pts[j].compiledMarker.brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); + } + } + } } - oCompiledBandFmt.setSpPr(oSpPr); - oSurfaceChart.compiledBandFormats.push(oCompiledBandFmt); - } - } - else { - var base_fills = getArrayFillsFromBase(style.fill2, nFmtsCount); - var base_line_fills = null; - if(style.line1 === EFFECT_SUBTLE && this.style === 34) - base_line_fills = getArrayFillsFromBase(style.line2, nFmtsCount); - - var default_line = new AscFormat.CLn(); - if(style.line1 === EFFECT_NONE) { - default_line.w = 0; - } - else if(style.line1 === EFFECT_SUBTLE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); - } - else if(style.line1 === EFFECT_MODERATE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); - } - else if(style.line1 === EFFECT_INTENSE) { - default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); } - - for(var i = 0; i < nFmtsCount; ++i) { - oBandFmt = oSurfaceChart.getBandFmtByIndex(i); - var compiled_brush = new AscFormat.CUniFill(); - oSpPr = new AscFormat.CSpPr(); - compiled_brush.merge(base_fills[i]); - if(oBandFmt && oBandFmt.spPr) { - compiled_brush.merge(oBandFmt.spPr.Fill); + } else if (nChartType === AscDFH.historyitem_type_ScatterChart) { + var base_line_fills = getArrayFillsFromBase(style.line4, nColorsCount); + for (var i = 0; i < series.length; ++i) { + var default_line = parents.theme.themeElements.fmtScheme.lnStyleLst[0]; + var ser = series[i]; + var pts = ser.getNumPts(); + this.ptsCount += pts.length; + if (oChart.scatterStyle === AscFormat.SCATTER_STYLE_SMOOTH || oChart.scatterStyle === AscFormat.SCATTER_STYLE_SMOOTH_MARKER) { + if (!AscFormat.isRealBool(ser.smooth)) { + ser.smooth = true; + } + } + if (oChart.scatterStyle === AscFormat.SCATTER_STYLE_MARKER || oChart.scatterStyle === AscFormat.SCATTER_STYLE_NONE) { + default_line = new AscFormat.CLn(); + default_line.setFill(new AscFormat.CUniFill()); + default_line.Fill.setFill(new AscFormat.CNoFill()); } - oSpPr.setFill(compiled_brush); - var compiled_line = new AscFormat.CLn(); compiled_line.merge(default_line); - compiled_line.Fill = new AscFormat.CUniFill(); - if(this.style !== 34) - compiled_line.Fill.merge(style.line2[0]); - else - compiled_line.Fill.merge(base_line_fills[i]); - if(oBandFmt && oBandFmt.spPr && oBandFmt.spPr.ln) { - compiled_line.merge(oBandFmt.spPr.ln); + if (!(oChart.scatterStyle === AscFormat.SCATTER_STYLE_MARKER || oChart.scatterStyle === AscFormat.SCATTER_STYLE_NONE)) { + compiled_line.Fill && compiled_line.Fill.merge(base_line_fills[ser.idx]); } - oSpPr.setLn(compiled_line); - compiled_line.calculate(oParentObjects.theme, oParentObjects.slide, oParentObjects.layout, oParentObjects.master, RGBA, this.clrMapOvr); - compiled_brush.calculate(oParentObjects.theme, oParentObjects.slide, oParentObjects.layout, oParentObjects.master, RGBA, this.clrMapOvr); - oCompiledBandFmt = new AscFormat.CBandFmt(); - oCompiledBandFmt.setIdx(i); - oCompiledBandFmt.setSpPr(oSpPr); - if(num_format) { - oCompiledBandFmt.startValue = num_format.formatToChart(aValAxArray[i] * multiplier); - oCompiledBandFmt.endValue = num_format.formatToChart(aValAxArray[i + 1] * multiplier); - - } - else { - oCompiledBandFmt.startValue = '' + (aValAxArray[i] * multiplier); - oCompiledBandFmt.endValue = '' + (aValAxArray[i + 1] * multiplier); - } - oSurfaceChart.compiledBandFormats.push(oCompiledBandFmt); - } - } - } - else { - - var base_fills = getArrayFillsFromBase(style.fill2, nMaxSeriesIdx); - var base_line_fills = null; - if(style.line1 === EFFECT_SUBTLE && this.style === 34) - base_line_fills = getArrayFillsFromBase(style.line2, nMaxSeriesIdx); - for(var i = 0; i < series.length; ++i) { - var ser = series[i]; - var compiled_brush = new AscFormat.CUniFill(); - compiled_brush.merge(base_fills[ser.idx]); - if(ser.spPr && ser.spPr.Fill) { - compiled_brush.merge(ser.spPr.Fill); - } - ser.compiledSeriesBrush = compiled_brush.createDuplicate(); - var pts = ser.getNumPts(); - this.ptsCount += pts.length; - for(var j = 0; j < pts.length; ++j) { - pts[j].brush = ser.compiledSeriesBrush; - if(Array.isArray(ser.dPt) && !(ser.getObjectType && ser.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { - for(var k = 0; k < ser.dPt.length; ++k) { - if(ser.dPt[k].idx === pts[j].idx) { - if(ser.dPt[k].spPr) { - if(ser.dPt[k].spPr.Fill && ser.dPt[k].spPr.Fill.fill) { - compiled_brush = ser.dPt[k].spPr.Fill.createDuplicate(); - pts[j].brush = compiled_brush; + compiled_line.w *= style.line3; + if (ser.spPr && ser.spPr.ln) + compiled_line.merge(ser.spPr.ln); + ser.compiledSeriesPen = compiled_line; + for (var j = 0; j < pts.length; ++j) { + pts[j].brush = null; + pts[j].pen = ser.compiledSeriesPen; + if (Array.isArray(ser.dPt)) { + for (var k = 0; k < ser.dPt.length; ++k) { + if (ser.dPt[k].idx === pts[j].idx) { + if (ser.dPt[k].spPr) { + pts[j].pen = ser.compiledSeriesPen.createDuplicate(); + pts[j].pen.merge(ser.dPt[k].spPr.ln); } + break; } - break; } } + pts[j].pen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); } } + } else if (nChartType === AscDFH.historyitem_type_SurfaceChart) { + var oSurfaceChart = oChart; + var aValAxArray = this.getValAxisValues(); + var nFmtsCount = aValAxArray.length - 1; + var oSpPr, oBandFmt, oCompiledBandFmt; + oSurfaceChart.compiledBandFormats.length = 0; + var multiplier; + var axis_by_types = oSurfaceChart.getAxisByTypes(); + var val_ax = axis_by_types.valAx[0]; + if (val_ax.dispUnits) + multiplier = val_ax.dispUnits.getMultiplier(); + else + multiplier = 1; + var num_fmt = val_ax.numFmt, num_format = null, calc_value, rich_value; + if (num_fmt && typeof num_fmt.formatCode === "string" /*&& !(num_fmt.formatCode === "General")*/) { + num_format = oNumFormatCache.get(num_fmt.formatCode); + } + var oParentObjects = this.getParentObjects(); + RGBA = {R: 255, G: 255, B: 255, A: 255}; + if (oSurfaceChart.isWireframe()) { + var base_line_fills = getArrayFillsFromBase(style.line4, nFmtsCount); + var default_line = parents.theme.themeElements.fmtScheme.lnStyleLst[0]; + for (var i = 0; i < nFmtsCount; ++i) { + oBandFmt = oSurfaceChart.getBandFmtByIndex(i); + oSpPr = new AscFormat.CSpPr(); + oSpPr.setFill(AscFormat.CreateNoFillUniFill()); + var compiled_line = new AscFormat.CLn(); + compiled_line.merge(default_line); + compiled_line.Fill.merge(base_line_fills[i]); + //compiled_line.w *= style.line3; + compiled_line.Join = new AscFormat.LineJoin(); + compiled_line.Join.type = AscFormat.LineJoinType.Bevel; + if (oBandFmt && oBandFmt.spPr) { + compiled_line.merge(oBandFmt.spPr.ln); + } + compiled_line.calculate(oParentObjects.theme, oParentObjects.slide, oParentObjects.layout, oParentObjects.master, RGBA, this.clrMapOvr); + oSpPr.setLn(compiled_line); + oCompiledBandFmt = new AscFormat.CBandFmt(); + oCompiledBandFmt.setIdx(i); + oCompiledBandFmt.setSpPr(oSpPr); - // - { - default_line = new AscFormat.CLn(); - if(style.line1 === EFFECT_NONE) { - default_line.w = 0; + if (num_format) { + oCompiledBandFmt.startValue = num_format.formatToChart(aValAxArray[i] * multiplier); + oCompiledBandFmt.endValue = num_format.formatToChart(aValAxArray[i + 1] * multiplier); + + } else { + oCompiledBandFmt.startValue = '' + (aValAxArray[i] * multiplier); + oCompiledBandFmt.endValue = '' + (aValAxArray[i + 1] * multiplier); + } + oCompiledBandFmt.setSpPr(oSpPr); + oSurfaceChart.compiledBandFormats.push(oCompiledBandFmt); } - else if(style.line1 === EFFECT_SUBTLE) { + } else { + var base_fills = getArrayFillsFromBase(style.fill2, nFmtsCount); + var base_line_fills = null; + if (style.line1 === EFFECT_SUBTLE && this.style === 34) + base_line_fills = getArrayFillsFromBase(style.line2, nFmtsCount); + + var default_line = new AscFormat.CLn(); + if (style.line1 === EFFECT_NONE) { + default_line.w = 0; + } else if (style.line1 === EFFECT_SUBTLE) { default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[0]); - } - else if(style.line1 === EFFECT_MODERATE) { + } else if (style.line1 === EFFECT_MODERATE) { default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[1]); - } - else if(style.line1 === EFFECT_INTENSE) { + } else if (style.line1 === EFFECT_INTENSE) { default_line.merge(parents.theme.themeElements.fmtScheme.lnStyleLst[2]); } - var base_line_fills; - if(this.style === 34) - base_line_fills = getArrayFillsFromBase(style.line2, getMaxIdx(pts)); + for (var i = 0; i < nFmtsCount; ++i) { + oBandFmt = oSurfaceChart.getBandFmtByIndex(i); + var compiled_brush = new AscFormat.CUniFill(); + oSpPr = new AscFormat.CSpPr(); + compiled_brush.merge(base_fills[i]); + if (oBandFmt && oBandFmt.spPr) { + compiled_brush.merge(oBandFmt.spPr.Fill); + } + oSpPr.setFill(compiled_brush); - var compiled_line = new AscFormat.CLn(); - compiled_line.merge(default_line); - compiled_line.Fill = new AscFormat.CUniFill(); - if(this.style !== 34) - compiled_line.Fill.merge(style.line2[0]); - else - compiled_line.Fill.merge(base_line_fills[ser.idx]); - if(ser.spPr && ser.spPr.ln) { - compiled_line.merge(ser.spPr.ln); - } - ser.compiledSeriesPen = compiled_line.createDuplicate(); - ser.compiledSeriesPen.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA, this.clrMapOvr); - for(var j = 0; j < pts.length; ++j) { - pts[j].pen = ser.compiledSeriesPen; - if(Array.isArray(ser.dPt) && !(ser.getObjectType && ser.getObjectType() === AscDFH.historyitem_type_AreaSeries)) { - for(var k = 0; k < ser.dPt.length; ++k) { - if(ser.dPt[k].idx === pts[j].idx) { - if(ser.dPt[k].spPr) { - compiled_line = ser.compiledSeriesPen.createDuplicate(); - compiled_line.merge(ser.dPt[k].spPr.ln); - pts[j].pen = compiled_line; - } - break; - } - } + var compiled_line = new AscFormat.CLn(); + compiled_line.merge(default_line); + compiled_line.Fill = new AscFormat.CUniFill(); + if (this.style !== 34) + compiled_line.Fill.merge(style.line2[0]); + else + compiled_line.Fill.merge(base_line_fills[i]); + if (oBandFmt && oBandFmt.spPr && oBandFmt.spPr.ln) { + compiled_line.merge(oBandFmt.spPr.ln); } + oSpPr.setLn(compiled_line); + compiled_line.calculate(oParentObjects.theme, oParentObjects.slide, oParentObjects.layout, oParentObjects.master, RGBA, this.clrMapOvr); + compiled_brush.calculate(oParentObjects.theme, oParentObjects.slide, oParentObjects.layout, oParentObjects.master, RGBA, this.clrMapOvr); + oCompiledBandFmt = new AscFormat.CBandFmt(); + oCompiledBandFmt.setIdx(i); + oCompiledBandFmt.setSpPr(oSpPr); + if (num_format) { + oCompiledBandFmt.startValue = num_format.formatToChart(aValAxArray[i] * multiplier); + oCompiledBandFmt.endValue = num_format.formatToChart(aValAxArray[i + 1] * multiplier); + + } else { + oCompiledBandFmt.startValue = '' + (aValAxArray[i] * multiplier); + oCompiledBandFmt.endValue = '' + (aValAxArray[i + 1] * multiplier); + } + oSurfaceChart.compiledBandFormats.push(oCompiledBandFmt); } } + } else { + defaultCalculateSeriesColors(series); } } } } + } }; CChartSpace.prototype.recalculateChartTitleEditMode = function (bWord) { @@ -8229,6 +8904,14 @@ function(window, undefined) { if (this.chartObj) { this.chartObj.draw(this, graphics); } + const isChartEx = this.isChartEx(); + + // TODO after new succefull implementation of new type remove option here + const type = this.chart && this.chart.plotArea && this.chart.plotArea.plotAreaRegion && this.chart.plotArea.plotAreaRegion.series && this.chart.plotArea.plotAreaRegion.series[0] ? this.chart.plotArea.plotAreaRegion.series[0].layoutId : null; + if (isChartEx && !type && (type === AscFormat.SERIES_LAYOUT_BOX_WHISKER || type === AscFormat.SERIES_LAYOUT_PARETO_LINE || type === AscFormat.SERIES_LAYOUT_REGION_MAP || type === AscFormat.SERIES_LAYOUT_SUNBURST || type === AscFormat.SERIES_LAYOUT_TREEMAP)) { + return ; + } + //---------------------------------- if (this.chart && !this.bEmptySeries) { if (this.chart.plotArea) { // var oChartSize = this.getChartSizes(); @@ -8241,25 +8924,26 @@ function(window, undefined) { // graphics._l(oChartSize.startX + 0, oChartSize.startY + oChartSize.h); // graphics._z(); // graphics.ds(); - var aCharts = this.chart.plotArea.charts; - for (var t = 0; t < aCharts.length; ++t) { - var oChart = aCharts[t]; - if (oChart && oChart.series) { - var series = oChart.series; - var _len = oChart.getObjectType() === AscDFH.historyitem_type_PieChart ? 1 : series.length; - for (var i = 0; i < _len; ++i) { - var ser = series[i]; - var pts = ser.getNumPts(); - for (var j = 0; j < pts.length; ++j) { - if (pts[j].compiledDlb) - pts[j].compiledDlb.draw(graphics); - } - let oTrendlineLbl = ser.trendline && ser.trendline.trendlineLbl; - if(oTrendlineLbl) { - oTrendlineLbl.draw(graphics); - } + var series = this.getAllSeries(); + let bPie = false; + for (var i = 0; i < series.length; ++i) { + var ser = series[i]; + if(ser.parent.getObjectType() === AscDFH.historyitem_type_PieChart) { + if(bPie) { + continue; + } + bPie = true; + } + var pts = ser.getNumPts(); + for (var j = 0; j < pts.length; ++j) { + if (pts[j].compiledDlb) { + pts[j].compiledDlb.draw(graphics); } } + let oTrendlineLbl = ser.trendline && ser.trendline.trendlineLbl; + if(oTrendlineLbl) { + oTrendlineLbl.draw(graphics); + } } for (var i = 0; i < this.chart.plotArea.axId.length; ++i) { var oAxis = this.chart.plotArea.axId[i]; @@ -8580,10 +9264,65 @@ function(window, undefined) { } return oChartStyleCache.getStyleIdx(this.getChartType(), this.chartStyle.id); }; + CChartSpace.prototype.getDisplayTrendlinesEquation = function () { + let aSeries = this.getAllSeries(); + let bResult = null; + if(aSeries.length === 0) { + return bResult; + } + let aAllTrendlines = []; + let oTrendline; + for(let nSer = 0; nSer < aSeries.length; ++nSer) { + oTrendline = aSeries[nSer].trendline; + if(oTrendline) { + aAllTrendlines.push(oTrendline); + } + } + if(aAllTrendlines.length === 0) { + return null; + } + if(!oTrendline) { + return bResult; + } + oTrendline = aAllTrendlines[0]; + bResult = oTrendline.trendlineLbl !== null; + for(let nIdx = 1; nIdx < aAllTrendlines.length; ++nIdx) { + let bLbl = aAllTrendlines[nIdx].trendlineLbl !== null; + if(bResult !== bLbl) { + return undefined; + } + } + return bResult; + }; + CChartSpace.prototype.setDisplayTrendlinesEquation = function (bValue) { + if(bValue === this.getDisplayTrendlinesEquation()) { + return; + } + let aSeries = this.getAllSeries(); + let bResult = null; + if(aSeries.length === 0) { + return; + } + let aAllTrendlines = []; + let oTrendline; + for(let nSer = 0; nSer < aSeries.length; ++nSer) { + oTrendline = aSeries[nSer].trendline; + if(oTrendline) { + aAllTrendlines.push(oTrendline); + } + } + for(let nIdx = 0; nIdx < aAllTrendlines.length; ++nIdx) { + aAllTrendlines[nIdx].setShowLabel(bValue); + } + return bResult; + }; CChartSpace.prototype.buildSeries = function (aRefs) { if (!Array.isArray(aRefs)) { return Asc.c_oAscError.ID.No; } + if(this.isChartEx()) { + return Asc.c_oAscError.ID.CannotFillRange; + } if (aRefs.length > MAX_SERIES_COUNT) { return Asc.c_oAscError.ID.MaxDataSeriesError; } @@ -8649,6 +9388,7 @@ function(window, undefined) { } }; CChartSpace.prototype.switchRowCol = function () { + if(this.isChartEx()) return; var oDataRange = this.getDataRefs(); var aRefs = oDataRange.getSwitchedRefs(this.isScatterChartType()); if (!aRefs) { @@ -8662,6 +9402,7 @@ function(window, undefined) { return nResult; }; CChartSpace.prototype.fillDataFromTrack = function (oSelectedRange) { + if(this.isChartEx()) return; let oSelectedSeries = this.getSelectedSeries(); if (oSelectedSeries) { oSelectedSeries.fillFromSelectedRange(oSelectedRange); @@ -10942,6 +11683,290 @@ function(window, undefined) { CHART_STYLE_MANAGER.init(); } + function CLabelsParameters(nAxisType, sDataType) { + this.nLblTickType = null; + this.nLblTickSkip = null; + this.rot = null; + this.isUserDefinedTickSkip = false; + this.isUserDefinedLabelFormat = false; + this.isUserDefinedRot = false; + // excel calculates one degree as 60000 + this.degree = 60000; + this.maxHeight = null; + // excel works in the range of -90 degree to 90 degree -> [-90 * 60000; 60000 * 90] + this.range = 60000 * 90; + this.nAxisType = nAxisType; + this.sDataType = sDataType; + this.oStartingDate = null; + this.valid = AscFormat.isRealNumber(nAxisType) && (this.nAxisType === AscDFH.historyitem_type_CatAx || this.nAxisType === AscDFH.historyitem_type_DateAx); + this.nLabelsCount = 0; + this.bCalculated = false; + this.fLabelHeight = null; + this.fLabelWidth = null; + } + + CLabelsParameters.prototype.calculate = function (oLabelsBox, fAxisLength, fRectHeight, nIndex) { + // get height of label + this.bCalculated = !!nIndex; + + if (this.valid && this.isCorrectlyCalculated(oLabelsBox, fAxisLength)) { + + // get labelHeight + this.fLabelHeight = AscFormat.isRealNumber(this.fLabelHeight) ? this.fLabelHeight : this.getHeight(oLabelsBox.aLabels); + + // check whether user has defined some parameters + this.getUserDefinedSettings(oLabelsBox); + + // calculate number of labels + this.calculateLabelsNumber(oLabelsBox); + + // automatically calculate remaining parameters + this.calculateParams(oLabelsBox, fAxisLength, fRectHeight); + + // save some updated params for future use + this.saveParams(oLabelsBox); + + this.bCalculated = true; + } + }; + + // function to check whether new Label axis will handle old parameters + CLabelsParameters.prototype.isCorrectlyCalculated = function (oLabelsBox, fAxisLength) { + if (!this.bCalculated) { + return true; + } + + // cases when 45 degree text calculated should not be affected by width; + if (!this.isUserDefinedRot && this.rot < 0 && AscFormat.isRealNumber(this.fLabelHeight)) { + this.fLabelWidth = this.fLabelHeight; + } + + // sometimes it is possible that new fAxisLength is enough for current nLabelsCount + if (this.bCalculated && this.nLblTickSkip !== null && this.nLabelsCount !== 0 && this.nLblTickSkip !== 0) { + return this.bCalculated = Math.ceil(this.nLabelsCount / this.nLblTickSkip) * this.fLabelWidth >= fAxisLength; + } + return false; + } + + CLabelsParameters.prototype.calculateLabelsNumber = function (oLabelsBox) { + this.nLabelsCount = 0; + for (let i = 0; i < oLabelsBox.aLabels.length; i++) { + if (oLabelsBox.aLabels[i]) { + this.nLabelsCount++; + } + } + }; + + CLabelsParameters.prototype.getUserDefinedSettings = function (oLabelsBox) { + if (!oLabelsBox) { + return; + } + + // check label format + this.isUserDefinedLabelFormat = oLabelsBox && oLabelsBox.isLabelUserDefined ? oLabelsBox.isLabelUserDefined() : false; + + // check lbl tick skip + this.nLblTickSkip = oLabelsBox.axis && AscFormat.isRealNumber(oLabelsBox.axis.tickLblSkip) ? oLabelsBox.axis.tickLblSkip : null; + this.isUserDefinedTickSkip = !!this.nLblTickSkip; + + // check rotation + const rot = oLabelsBox.axis.txPr && oLabelsBox.axis.txPr.bodyPr ? oLabelsBox.axis.txPr.bodyPr.rot : null; + this.rot = AscFormat.isRealNumber(rot) && rot >= -this.range && rot <= this.range ? rot : null; + this.isUserDefinedRot = !!this.rot; + }; + + CLabelsParameters.prototype.calculateParams = function (oLabelsBox, fAxisLength, fRectHeight) { + // find max possible space allowed to fill by labels + const isLayoutSizes = oLabelsBox.chartSpace ? oLabelsBox.chartSpace.isLayoutSizes() : false; + this.setMaxHeight(oLabelsBox, fRectHeight, isLayoutSizes ? oLabelsBox.chartSpace.chart.plotArea.layout : false); + + // retrieve startingDate if exist + let msg = this.sDataType.split('_'); + if (msg.length > 1) { + // date.setDate(date.getDateFromExcel(+msg[1])); + let date = new AscCommonExcel.cDate(); + this.oStartingDate = date.getDateFromExcel(+msg[1]); + } else if (msg[0] === 'number'){ + let date = new AscCommonExcel.cDate(); + // 2 days + 1899/12/39 will create 1900/01/01 + this.oStartingDate = date.getDateFromExcel(2); + } + + // find label skip + this.calculateNLblTickSkip(oLabelsBox, fAxisLength); + + // if rotation is not set + this.calculateRotation(oLabelsBox, fAxisLength); + }; + + CLabelsParameters.prototype.saveParams = function (oLabelsBox) { + if (!oLabelsBox) { + return; + } + oLabelsBox.axis.params = this; + }; + + CLabelsParameters.prototype.setMaxHeight = function (oLabelsBox, fRectHeight, layout) { + if (!oLabelsBox) { + return; + } + + if (layout && AscFormat.isRealNumber(layout.h) && layout.h !== 0) { + const fChartHeight = layout.h; + const fChartStart = layout.y; + // find chart height + const fTrueRectHeight = oLabelsBox.chartSpace && AscFormat.isRealNumber(oLabelsBox.chartSpace.extY) ? oLabelsBox.chartSpace.extY : fRectHeight / fChartHeight; + const fTrueRectStart = fTrueRectHeight * fChartStart; + + // function to obtains standart margin + let margin = oLabelsBox.chartSpace && oLabelsBox.chartSpace.chartObj ? oLabelsBox.chartSpace.chartObj.getStandartMargin() : 0; + const is3dChart = oLabelsBox.chartSpace ? oLabelsBox.chartSpace.is3dChart() : false; + margin = !is3dChart ? margin * 2 : margin; + + // check wheter the axis is on top or on bottom, standart is bottom + const statement1 = !oLabelsBox.axis || (oLabelsBox.axis.axPos === AscFormat.AX_POS_B && oLabelsBox.axis.tickLblPos !== AscFormat.TICK_LABEL_POSITION_HIGH); + const statement2 = !oLabelsBox.axis || (oLabelsBox.axis.axPos === AscFormat.AX_POS_T && oLabelsBox.axis.tickLblPos === AscFormat.TICK_LABEL_POSITION_HIGH); + const isStandard = statement1 || statement2; + + if (isStandard) { + const labelMaxHeight = fTrueRectHeight - (fTrueRectStart + fRectHeight); + this.maxHeight = labelMaxHeight > margin ? labelMaxHeight - margin : labelMaxHeight; + } else { + const labelMaxHeight = fTrueRectStart; + this.maxHeight = labelMaxHeight > ((3 * margin) / 4) ? labelMaxHeight - ((3 * margin) / 4) : labelMaxHeight; + } + } else { + //height multiplier defines the maximum occupation percentage + const heightMultiplier = 0.45; + this.maxHeight = fRectHeight * heightMultiplier; + } + }; + + CLabelsParameters.prototype.calculateNLblTickSkip = function (oLabelsBox, fAxisLength) { + //default nLblTickSkip should be 1! + if (!oLabelsBox || !Array.isArray(oLabelsBox.aLabels) || this.nLabelsCount === 0 || !fAxisLength) { + this.nLblTickSkip = 1; + return; + } + + if (!this.isUserDefinedTickSkip) { + this.nLblTickSkip = this.manuallyCalculateNLblTickSkip(oLabelsBox, fAxisLength); + } + }; + + CLabelsParameters.prototype.getHeight = function (aLabels) { + for (let i = 0; i < aLabels.length; i++) { + //check if there multiple lines exist + //if so, take the height of first line + if (aLabels[i]) { + const content = aLabels[i].tx && aLabels[i].tx.rich && aLabels[i].tx.rich.content ? aLabels[i].tx.rich.content.Content : null; + const lines = content && Array.isArray(content) && content.length > 0 && content[0] ? content[0].Lines : null; + const height = lines && Array.isArray(lines) && lines.length > 0 ? lines[0].Y : null; + if (AscFormat.isRealNumber(height)) { + return height; + } + + //check the height of the label + const labelSize = aLabels[i].tx.rich.getContentOneStringSizes(); + if (AscFormat.isRealNumber(labelSize.h)) { + return labelSize.h; + } + } + } + return 0; + }; + + CLabelsParameters.prototype.manuallyCalculateNLblTickSkip = function (oLabelsBox, fAxisLength) { + // due to the rotation of the labels, the width necessary to place all of them is recalculated according to its height and some trigonometric formulas + const radianAngle = this.isUserDefinedRot ? (Math.abs(this.rot / this.degree) * Math.PI) / 180 : Math.PI / 2.0; + // if the rotation parameter is set then we need to measure the new width of the label + const rotationWidth = this.fLabelHeight / Math.sin(radianAngle); + // if the rotation width is higher than normal width, then take normal width + const updatedCellWidth = AscFormat.isRealNumber(oLabelsBox.maxMinWidth) ? Math.min(rotationWidth, oLabelsBox.maxMinWidth) : null; + this.fLabelWidth = AscFormat.isRealNumber(updatedCellWidth) ? updatedCellWidth : this.fLabelHeight; + + // return minimum amount of skips needed to place a vertical labels into fAxisLength + let nLblTickSkip = 1; + + if (this.fLabelWidth) { + // toDo test configurations for different number labels on excel: finalTestCatAxis + const labelCount = fAxisLength > 0 && fAxisLength >= this.fLabelWidth ? Math.floor(fAxisLength / this.fLabelWidth) : 1; + nLblTickSkip = Math.ceil(this.nLabelsCount / labelCount); + + // date ax skips labels by significant days + // two days, week or weeks, mounths, years + if (this.nAxisType === AscDFH.historyitem_type_DateAx && this.sDataType !== 'string') { + // lowLimits indicate necessary count of days for following skips, month and years + const lowLimitMonths = 21; + const lowLimitYears = 341; + if (nLblTickSkip > 2 && nLblTickSkip < lowLimitMonths) { + nLblTickSkip = Math.ceil(nLblTickSkip / 7) * 7; + } else if (nLblTickSkip > 14 && nLblTickSkip < lowLimitYears) { + nLblTickSkip = Math.ceil(nLblTickSkip / 31) * 31; + } else if (nLblTickSkip >= lowLimitYears) { + nLblTickSkip = Math.ceil(nLblTickSkip / 366) * 366; + } + } + } + + // default is always 1 + return (!AscFormat.isRealNumber(nLblTickSkip) || nLblTickSkip === 0) ? 1 : nLblTickSkip; + }; + + CLabelsParameters.prototype.calculateRotation = function (oLabelsBox, fAxisLength) { + + if (!oLabelsBox || !Array.isArray(oLabelsBox.aLabels) || this.nLabelsCount === 0|| !fAxisLength) { + this.rot = 0; + return; + } + + if (this.isUserDefinedRot) { + return; + } + + const updatedLabelsCount = Math.ceil(this.nLabelsCount / this.nLblTickSkip); + + // Check if horizontal labels can fit into axis width + const labelWidth = oLabelsBox.maxMinWidth * updatedLabelsCount; + if (labelWidth && labelWidth <= fAxisLength) { + this.fLabelWidth = oLabelsBox.maxMinWidth; + this.rot = 0; + return; + } + + // сheck if diagonal labels can fit into axis width + // also other suggestions to calculate diagonal width can be found in this function in commit: 616c0a0665bb0b09e81d9bc25df120ddf3c6783a + if (this.isUserDefinedLabelFormat || this.sDataType === 'string') { + // multiplier is the square root of 2; + // diagonal rectangle with h is equal to root(2) * h; + const fUpdatedLabelHight = 1.41421356237 * this.fLabelHeight; + const diagonalLabelWidth = fUpdatedLabelHight * updatedLabelsCount; + + // diagonal angle is 45 degree + if (diagonalLabelWidth && diagonalLabelWidth <= fAxisLength) { + this.fLabelWidth = fUpdatedLabelHight; + this.rot = -45 * this.degree; + return; + } + } + + // vertical angle is 90 degree + this.rot = this.isUserDefinedTickSkip && oLabelsBox.maxMinWidth < this.fLabelHeight? 0 : -90 * this.degree; + }; + + CLabelsParameters.prototype.isRotated = function () { + //case when rot parameter is unset + if (!AscFormat.isRealNumber(this.rot) || this.rot < -this.range || this.rot > this.range) { + return false; + } + // case when labels are rotated 0 degree + if (this.rot === 0) { + return false; + } + + return true; + }; + function CChartStyleCache() { this.cachedStyles = {}; diff --git a/common/Drawings/Format/CnxShape.js b/common/Drawings/Format/CnxShape.js index dc838b7935..d9ac39cad2 100644 --- a/common/Drawings/Format/CnxShape.js +++ b/common/Drawings/Format/CnxShape.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -524,6 +524,11 @@ this.fillObject(copy, oPr); return copy; }; + CConnectionShape.prototype.convertToPdf = function(oPr) { + let copy = new AscPDF.CPdfConnectionShape(); + this.fillObject(copy, oPr); + return copy; + }; CConnectionShape.prototype.resetShape = function (oShape) { if (!this.nvSpPr) diff --git a/common/Drawings/Format/CreateGeometry.js b/common/Drawings/Format/CreateGeometry.js index da6a4c07f3..0b09b27025 100644 --- a/common/Drawings/Format/CreateGeometry.js +++ b/common/Drawings/Format/CreateGeometry.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/Format/Data.js b/common/Drawings/Format/Data.js index b7f24dbcd2..f92019ad4d 100644 --- a/common/Drawings/Format/Data.js +++ b/common/Drawings/Format/Data.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -88,7 +88,11 @@ Because of this, the display is sometimes not correct. // consts const GRAYSCALE_TRESHHOLD = 150; - const Point_type_asst = 1; + const smartArtContentFillingType_parentWithChildren = 0x0011; + const smartArtContentFillingType_onlyChildren = 0x0001; + const smartArtContentFillingType_onlyParent = 0x0010; + + const Point_type_asst = 1; const Point_type_doc = 2; const Point_type_node = 0; const Point_type_parTrans = 4; @@ -203,11 +207,6 @@ Because of this, the display is sometimes not correct. const If_op_gte = 4; const If_op_lte = 5; - const boolOperator_none = 0; - const boolOperator_equ = 1; - const boolOperator_gte = 2; - const boolOperator_lte = 3; - const If_func_cnt = 0; const If_func_depth = 6; const If_func_maxDepth = 7; @@ -254,7 +253,7 @@ Because of this, the display is sometimes not correct. const Constr_type_endPad = 15; const Constr_type_h = 16; const Constr_type_hArH = 17; - const Constr_type_hOff = 63; // TODO: add to constr type in x2t + const Constr_type_hOff = 63; const Constr_type_l = 18; const Constr_type_lMarg = 19; const Constr_type_lOff = 20; @@ -690,10 +689,10 @@ Because of this, the display is sometimes not correct. const ParameterVal_connectorRouting_stra = 3; const ParameterVal_continueDirection_revDir = 0; const ParameterVal_continueDirection_sameDir = 1; - const ParameterVal_diagramHorizontalAlignment_ctr = 0; - const ParameterVal_diagramHorizontalAlignment_l = 1; - const ParameterVal_diagramHorizontalAlignment_none = 2; - const ParameterVal_diagramHorizontalAlignment_r = 3; + const ParameterVal_horizontalAlignment_ctr = 0; + const ParameterVal_horizontalAlignment_l = 1; + const ParameterVal_horizontalAlignment_none = 2; + const ParameterVal_horizontalAlignment_r = 3; const ParameterVal_diagramTextAlignment_ctr = 0; const ParameterVal_diagramTextAlignment_l = 1; const ParameterVal_diagramTextAlignment_r = 2; @@ -755,7 +754,7 @@ Because of this, the display is sometimes not correct. const ParameterVal_textAnchorHorizontal_none = 1; const ParameterVal_textAnchorVertical_b = 0; const ParameterVal_textAnchorVertical_mid = 1; - const ParameterVal_textAnchorVertical_top = 2; + const ParameterVal_textAnchorVertical_t = 2; const ParameterVal_textBlockDirection_horz = 0; const ParameterVal_textBlockDirection_vert = 1; const ParameterVal_textDirection_fromB = 0; @@ -981,6 +980,20 @@ Because of this, the display is sometimes not correct. return [this.ptLst, this.cxnLst, this.whole, this.bg]; }; + DataModel.prototype.getMainPoint = function () { + const ptLst = this.getPtLst(); + + if (ptLst) { + const arrPoints = ptLst.list; + for (let i = 0; i < arrPoints.length; i += 1) { + const oPoint = arrPoints[i]; + if (oPoint.getType() === Point_type_doc) { + return oPoint; + } + } + } + } + changesFactory[AscDFH.historyitem_CCommonDataListAdd] = CChangeContent; changesFactory[AscDFH.historyitem_CCommonDataListRemove] = CChangeContent; @@ -1090,7 +1103,7 @@ Because of this, the display is sometimes not correct. changesFactory[AscDFH.historyitem_CxnSibTransId] = CChangeString; changesFactory[AscDFH.historyitem_CxnSrcId] = CChangeString; changesFactory[AscDFH.historyitem_CxnSrcOrd] = CChangeString; - changesFactory[AscDFH.historyitem_CxnType] = CChangeString; + changesFactory[AscDFH.historyitem_CxnType] = CChangeLong; changesFactory[AscDFH.historyitem_CxnExtLst] = CChangeObject; drawingsChangesMap[AscDFH.historyitem_CxnDestId] = function (oClass, value) { oClass.destId = value; @@ -1133,13 +1146,37 @@ Because of this, the display is sometimes not correct. this.sibTransId = null; this.srcId = null; this.srcOrd = null; - this.type = null; + this.type = Cxn_type_parOf; this.extLst = null; } InitClass(Cxn, CBaseFormatObject, AscDFH.historyitem_type_Cxn); + Cxn.getTypeEnum = function (sType) { + switch (sType) { + case 'presOf': + return Cxn_type_presOf; + case 'parOf': + return Cxn_type_parOf; + case 'presParOf': + return Cxn_type_presParOf; + default: + return; + } + }; + Cxn.getTypeString = function (sType) { + switch (sType) { + case Cxn_type_presOf: + return 'presOf'; + case Cxn_type_parOf: + return 'parOf'; + case Cxn_type_presParOf: + return 'presParOf'; + default: + return ''; + } + }; Cxn.prototype.setDestId = function (pr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_CxnDestId, this.getDestId(), pr)); this.destId = pr; @@ -1181,7 +1218,7 @@ Because of this, the display is sometimes not correct. } Cxn.prototype.setType = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_CxnType, this.getType(), pr)); + oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_CxnType, this.getType(), pr)); this.type = pr; } @@ -1248,7 +1285,7 @@ Because of this, the display is sometimes not correct. Cxn.prototype.privateWriteAttributes = function(pWriter) { pWriter._WriteString2(0, this.modelId); - pWriter._WriteString2(1, this.type); + pWriter._WriteString2(1, Cxn.getTypeString(this.type)); pWriter._WriteString2(2, this.destId); pWriter._WriteString2(3, this.destOrd); pWriter._WriteString2(4, this.srcId); @@ -1262,7 +1299,7 @@ Because of this, the display is sometimes not correct. Cxn.prototype.readAttribute = function(nType, pReader) { var oStream = pReader.stream; if (0 === nType) this.setModelId(oStream.GetString2()); - else if (1 === nType) this.setType(oStream.GetString2()); + else if (1 === nType) this.setType(Cxn.getTypeEnum(oStream.GetString2())); else if (2 === nType) this.setDestId(oStream.GetString2()); else if (3 === nType) this.setDestOrd(oStream.GetString2()); else if (4 === nType) this.setSrcId(oStream.GetString2()); @@ -1615,7 +1652,7 @@ Because of this, the display is sometimes not correct. CBaseFormatObject.call(this); this.cxnId = null; this.modelId = null; - this.type = null; + this.type = Point_type_node; this.extLst = null; this.prSet = null; @@ -1625,6 +1662,9 @@ Because of this, the display is sometimes not correct. InitClass(Point, CBaseFormatObject, AscDFH.historyitem_type_Point); + Point.prototype.getHierBranchValue = function () { + return this.prSet && this.prSet.getHierBranchValue(); + }; Point.prototype.getDrawingDocument = function () { } @@ -1887,6 +1927,14 @@ Because of this, the display is sometimes not correct. return this.prSet && this.prSet.presStyleLbl; }; + Point.prototype.getPresName = function () { + return this.prSet && this.prSet.presName; + }; + + Point.prototype.getPresAssocID = function () { + return this.prSet && this.prSet.presAssocID; + }; + Point.prototype.getCustAng = function () { var prSet = this.getPrSet(); if (prSet) { @@ -2054,7 +2102,9 @@ Because of this, the display is sometimes not correct. InitClass(PrSet, CBaseFormatObject, AscDFH.historyitem_type_PrSet); - + PrSet.prototype.getHierBranchValue = function () { + return this.presLayoutVars && this.presLayoutVars.getHierBranchValue(); + }; PrSet.prototype.setCoherent3DOff = function (pr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeBool(this, AscDFH.historyitem_PrSetCoherent3DOff, this.getCoherent3DOff(), pr)); this.coherent3DOff = pr; @@ -2374,8 +2424,8 @@ Because of this, the display is sometimes not correct. pWriter._WriteInt2(8, this.custLinFactNeighborY ? Math.floor(this.custLinFactNeighborY * 100000) : null); pWriter._WriteInt2(9, this.custLinFactX ? Math.floor(this.custLinFactX * 100000) : null); pWriter._WriteInt2(10, this.custLinFactY ? Math.floor(this.custLinFactY * 100000) : null); - pWriter._WriteInt2(11, this.custRadScaleInc); - pWriter._WriteInt2(12, this.custRadScaleRad); + pWriter._WriteInt2(11, this.custRadScaleInc ? Math.floor(this.custRadScaleInc * 100000) : null); + pWriter._WriteInt2(12, this.custRadScaleRad ? Math.floor(this.custRadScaleRad * 100000) : null); pWriter._WriteInt2(13, this.custScaleX ? Math.floor(this.custScaleX * 100000) : null); pWriter._WriteInt2(14, this.custScaleY ? Math.floor(this.custScaleY * 100000) : null); pWriter._WriteInt2(15, this.custSzX); @@ -2409,8 +2459,8 @@ Because of this, the display is sometimes not correct. else if (8 === nType) this.setCustLinFactNeighborY(oStream.GetLong() / 100000); else if (9 === nType) this.setCustLinFactX(oStream.GetLong() / 100000); else if (10 === nType) this.setCustLinFactY(oStream.GetLong() / 100000); - else if (11 === nType) this.setCustRadScaleInc(oStream.GetLong()); - else if (12 === nType) this.setCustRadScaleRad(oStream.GetLong()); + else if (11 === nType) this.setCustRadScaleInc(oStream.GetLong() / 100000); + else if (12 === nType) this.setCustRadScaleRad(oStream.GetLong() / 100000); else if (13 === nType) this.setCustScaleX(oStream.GetLong() / 100000); else if (14 === nType) this.setCustScaleY(oStream.GetLong() / 100000); else if (15 === nType) this.setCustSzX(oStream.GetLong()); @@ -2681,7 +2731,7 @@ Because of this, the display is sometimes not correct. break; } case 1: { - this.setDesc(new Desc()); + this.setDesc(new DiagramTitle()); this.desc.fromPPTY(pReader); break; } @@ -2696,12 +2746,12 @@ Because of this, the display is sometimes not correct. break; } case 4: { - this.setStyleData(new StyleData()); + this.setStyleData(new SampData()); this.styleData.fromPPTY(pReader); break; } case 5: { - this.setClrData(new ClrData()); + this.setClrData(new SampData()); this.clrData.fromPPTY(pReader); break; } @@ -2719,12 +2769,6 @@ Because of this, the display is sometimes not correct. LayoutDef.prototype.getChildren = function() { return [this.title, this.desc, this.catLst, this.sampData, this.styleData, this.clrData, this.layoutNode]; }; - LayoutDef.prototype.startAlgorithm = function (pointTree) { - var entry = this.getLayoutNode(); - if (entry) { - entry.startAlgorithm(pointTree); - } - }; function CatLst() { @@ -2804,131 +2848,6 @@ Because of this, the display is sometimes not correct. }; - changesFactory[AscDFH.historyitem_ClrDataUseDef] = CChangeBool; - changesFactory[AscDFH.historyitem_ClrDataDataModel] = CChangeObject; - drawingsChangesMap[AscDFH.historyitem_ClrDataUseDef] = function (oClass, value) { - oClass.useDef = value; - }; - drawingsChangesMap[AscDFH.historyitem_ClrDataDataModel] = function (oClass, value) { - oClass.dataModel = value; - }; - - function ClrData() { - CBaseFormatObject.call(this); - this.useDef = null; - this.dataModel = null; - } - - InitClass(ClrData, CBaseFormatObject, AscDFH.historyitem_type_ClrData); - - ClrData.prototype.setUseDef = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeBool(this, AscDFH.historyitem_ClrDataUseDef, this.getUseDef(), pr)); - this.useDef = pr; - } - - ClrData.prototype.setDataModel = function (oPr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_ClrDataDataModel, this.getDataModel(), oPr)); - this.dataModel = oPr; - this.setParentToChild(oPr); - } - - ClrData.prototype.getUseDef = function () { - return this.useDef; - } - - ClrData.prototype.getDataModel = function () { - return this.dataModel; - } - - ClrData.prototype.fillObject = function (oCopy, oIdMap) { - oCopy.setUseDef(this.getUseDef()); - if (this.getDataModel()) { - oCopy.setDataModel(this.getDataModel().createDuplicate(oIdMap)); - } - } - - ClrData.prototype.privateWriteAttributes = function(pWriter) { - pWriter._WriteBool2(0, this.useDef); - }; - ClrData.prototype.writeChildren = function(pWriter) { - this.writeRecord2(pWriter, 0, this.dataModel); // TODO: add record number - }; - ClrData.prototype.readAttribute = function(nType, pReader) { - var oStream = pReader.stream; - if (0 === nType) this.setUseDef(oStream.GetBool()); - }; - ClrData.prototype.readChild = function(nType, pReader) { - var s = pReader.stream; - switch (nType) { - case 0: { - this.setDataModel(new DataModel()); - this.dataModel.fromPPTY(pReader); - break; - } - default: { - s.SkipRecord(); - break; - } - } - }; - ClrData.prototype.getChildren = function() { - return [this.dataModel]; - }; - - - changesFactory[AscDFH.historyitem_DescLang] = CChangeString; - changesFactory[AscDFH.historyitem_DescVal] = CChangeString; - drawingsChangesMap[AscDFH.historyitem_DescLang] = function (oClass, value) { - oClass.lang = value; - }; - drawingsChangesMap[AscDFH.historyitem_DescVal] = function (oClass, value) { - oClass.val = value; - }; - - function Desc() { - CBaseFormatObject.call(this); - this.lang = null; - this.val = null; - } - InitClass(Desc, CBaseFormatObject, AscDFH.historyitem_type_Desc); - Desc.prototype.setLang = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_DescLang, this.getLang(), pr)); - this.lang = pr; - } - - Desc.prototype.setVal = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_DescVal, this.getVal(), pr)); - this.val = pr; - } - - Desc.prototype.getLang = function () { - return this.lang; - } - - Desc.prototype.getVal = function () { - return this.val; - } - - Desc.prototype.fillObject = function (oCopy, oIdMap) { - oCopy.setLang(this.getLang()); - oCopy.setVal(this.getVal()); - } - - Desc.prototype.privateWriteAttributes = function(pWriter) { - pWriter._WriteString2(0, this.lang); - pWriter._WriteString2(1, this.val); - }; - Desc.prototype.writeChildren = function(pWriter) { - }; - Desc.prototype.readAttribute = function(nType, pReader) { - var oStream = pReader.stream; - if (0 === nType) this.setLang(oStream.GetString2()); - else if (1 === nType) this.setVal(oStream.GetString2()); - }; - Desc.prototype.readChild = function(nType, pReader) { - }; - - changesFactory[AscDFH.historyitem_LayoutNodeChOrder] = CChangeLong; changesFactory[AscDFH.historyitem_LayoutNodeMoveWith] = CChangeString; changesFactory[AscDFH.historyitem_LayoutNodeName] = CChangeString; @@ -3071,35 +2990,6 @@ Because of this, the display is sometimes not correct. }, undefined); }; - LayoutNode.prototype.startAlgorithm = function (pointTree) { - if (pointTree) { - var nodes = pointTree.findNodeByNameAndStyleLbl.call(pointTree, this.name, this.styleLbl); - if (nodes) { - var that = this; - nodes.forEach(function (node) { - var transfer = {node: node, name: that.name, styleLbl: that.styleLbl}; - var constrLst = that.list.reduce(function (acc, current) { - return current instanceof ConstrLst ? current : acc; - }, null); - if (constrLst) { - constrLst.startSetConstr(pointTree, transfer); - } - if (that.list) { - that.list.forEach(function (element) { - if (element instanceof AscFormat.ForEach || element instanceof AscFormat.LayoutNode || element instanceof AscFormat.Choose) { - element.startAlgorithm(pointTree, transfer); - } - }); - } - }); - } - } - }; - - LayoutNode.prototype.findPoint = function (pointInfo) { - - }; - changesFactory[AscDFH.historyitem_AlgRev] = CChangeLong; changesFactory[AscDFH.historyitem_AlgType] = CChangeLong; @@ -3226,7 +3116,7 @@ Because of this, the display is sometimes not correct. changesFactory[AscDFH.historyitem_ParameterValConnectorPoint] = CChangeLong; changesFactory[AscDFH.historyitem_ParameterValConnectorRouting] = CChangeLong; changesFactory[AscDFH.historyitem_ParameterValContinueDirection] = CChangeLong; - changesFactory[AscDFH.historyitem_ParameterValDiagramHorizontalAlignment] = CChangeLong; + changesFactory[AscDFH.historyitem_ParameterValHorizontalAlignment] = CChangeLong; changesFactory[AscDFH.historyitem_ParameterValDiagramTextAlignment] = CChangeLong; changesFactory[AscDFH.historyitem_ParameterValFallbackDimension] = CChangeLong; changesFactory[AscDFH.historyitem_ParameterValFlowDirection] = CChangeLong; @@ -3284,8 +3174,8 @@ Because of this, the display is sometimes not correct. drawingsChangesMap[AscDFH.historyitem_ParameterValContinueDirection] = function (oClass, value) { oClass.continueDirection = value; }; - drawingsChangesMap[AscDFH.historyitem_ParameterValDiagramHorizontalAlignment] = function (oClass, value) { - oClass.diagramHorizontalAlignment = value; + drawingsChangesMap[AscDFH.historyitem_ParameterValHorizontalAlignment] = function (oClass, value) { + oClass.horizontalAlignment = value; }; drawingsChangesMap[AscDFH.historyitem_ParameterValDiagramTextAlignment] = function (oClass, value) { oClass.diagramTextAlignment = value; @@ -3373,7 +3263,7 @@ Because of this, the display is sometimes not correct. this.connectorPoint = null; this.connectorRouting = null; this.continueDirection = null; - this.diagramHorizontalAlignment = null; + this.horizontalAlignment = null; this.diagramTextAlignment = null; this.fallbackDimension = null; this.flowDirection = null; @@ -3457,9 +3347,9 @@ Because of this, the display is sometimes not correct. this.continueDirection = pr; }; - ParameterVal.prototype.setDiagramHorizontalAlignment = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_ParameterValDiagramHorizontalAlignment, this.getDiagramHorizontalAlignment(), pr)); - this.diagramHorizontalAlignment = pr; + ParameterVal.prototype.setHorizontalAlignment = function (pr) { + oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_ParameterValHorizontalAlignment, this.getHorizontalAlignment(), pr)); + this.horizontalAlignment = pr; }; ParameterVal.prototype.setDiagramTextAlignment = function (pr) { @@ -3626,8 +3516,8 @@ Because of this, the display is sometimes not correct. return this.continueDirection; }; - ParameterVal.prototype.getDiagramHorizontalAlignment = function () { - return this.diagramHorizontalAlignment; + ParameterVal.prototype.getHorizontalAlignment = function () { + return this.horizontalAlignment; }; ParameterVal.prototype.getDiagramTextAlignment = function () { @@ -3738,7 +3628,7 @@ Because of this, the display is sometimes not correct. oCopy.setConnectorPoint(this.getConnectorPoint()); oCopy.setConnectorRouting(this.getConnectorRouting()); oCopy.setContinueDirection(this.getContinueDirection()); - oCopy.setDiagramHorizontalAlignment(this.getDiagramHorizontalAlignment()); + oCopy.setHorizontalAlignment(this.getHorizontalAlignment()); oCopy.setDiagramTextAlignment(this.getDiagramTextAlignment()); oCopy.setFallbackDimension(this.getFallbackDimension()); oCopy.setFlowDirection(this.getFlowDirection()); @@ -3783,6 +3673,376 @@ Because of this, the display is sometimes not correct. } InitClass(Param, CBaseFormatObject, AscDFH.historyitem_type_Param); + Param.prototype.getValEnum = function () { + switch (this.type) { + case Param_type_ctrShpMap: { + switch (this.val) { + case 'fNode': + return ParameterVal_centerShapeMapping_fNode; + case 'none': + return ParameterVal_centerShapeMapping_none; + default: + return this.val; + } + } + case Param_type_autoTxRot: { + switch (this.val) { + case 'upr': + return ParameterVal_autoTextRotation_upr; + case 'grav': + return ParameterVal_autoTextRotation_grav; + case 'none': + return ParameterVal_autoTextRotation_none; + default: + return this.val; + } + } + case Param_type_rotPath: { + switch (this.val) { + case 'alongPath': + return ParameterVal_rotationPath_alongPath; + case 'none': + return ParameterVal_rotationPath_none; + default: + return this.val; + } + } + case Param_type_fallback: { + switch (this.val) { + case '1D': + return ParameterVal_fallbackDimension_1D; + case '2D': + return ParameterVal_fallbackDimension_2D; + default: + return this.val; + } + } + case Param_type_bendPt: { + switch (this.val) { + case 'end': + return ParameterVal_bendPoint_end; + case 'beg': + return ParameterVal_bendPoint_beg; + case 'def': + return ParameterVal_bendPoint_def; + default: + return this.val; + } + } + case Param_type_pyraAcctPos: { + switch (this.val) { + case 'bef': + return ParameterVal_pyramidAccentPosition_bef; + case 'aft': + return ParameterVal_pyramidAccentPosition_aft; + default: + return this.val; + } + } + case Param_type_nodeHorzAlign: { + switch (this.val) { + case 'l': + return ParameterVal_nodeHorizontalAlignment_l; + case 'ctr': + return ParameterVal_nodeHorizontalAlignment_ctr; + case 'r': + return ParameterVal_nodeHorizontalAlignment_r; + default: + return this.val; + } + } + case Param_type_nodeVertAlign: { + switch (this.val) { + case 'b': + return ParameterVal_nodeVerticalAlignment_b; + case 'mid': + return ParameterVal_nodeVerticalAlignment_mid; + case 't': + return ParameterVal_nodeVerticalAlignment_t; + default: + return this.val; + } + } + case Param_type_connRout: { + switch (this.val) { + case 'longCurve': + return ParameterVal_connectorRouting_longCurve; + case 'curve': + return ParameterVal_connectorRouting_curve; + case 'stra': + return ParameterVal_connectorRouting_stra; + case 'bend': + return ParameterVal_connectorRouting_bend; + default: + return this.val; + } + } + case Param_type_dim: { + switch (this.val) { + case '2D': + return ParameterVal_connectorDimension_2D; + case '1D': + return ParameterVal_connectorDimension_1D; + case 'cust': + return ParameterVal_connectorDimension_cust; + default: + return this.val; + } + } + case Param_type_begSty: + case Param_type_endSty: { + switch (this.val) { + case 'arr': + return ParameterVal_arrowheadStyle_arr; + case 'noArr': + return ParameterVal_arrowheadStyle_noArr; + case 'auto': + return ParameterVal_arrowheadStyle_auto; + default: + return this.val; + } + } + case Param_type_grDir: { + switch (this.val) { + case 'bL': + return ParameterVal_growDirection_bL; + case 'bR': + return ParameterVal_growDirection_bR; + case 'tL': + return ParameterVal_growDirection_tL; + case 'tR': + return ParameterVal_growDirection_tR; + default: + return this.val; + } + } + case Param_type_contDir: { + switch (this.val) { + case 'sameDir': + return ParameterVal_continueDirection_sameDir; + case 'revDir': + return ParameterVal_continueDirection_revDir; + default: + return this.val; + } + } + case Param_type_secLinDir: + case Param_type_linDir: { + switch (this.val) { + case 'fromL': + return ParameterVal_linearDirection_fromL; + case 'fromT': + return ParameterVal_linearDirection_fromT; + case 'fromR': + return ParameterVal_linearDirection_fromR; + case 'fromB': + return ParameterVal_linearDirection_fromB; + default: + return this.val; + } + } + case Param_type_hierAlign: + { + switch (this.val) { + case 'bCtrCh': + return ParameterVal_hierarchyAlignment_bCtrCh; + case 'bCtrDes': + return ParameterVal_hierarchyAlignment_bCtrDes; + case 'bL': + return ParameterVal_hierarchyAlignment_bL; + case 'bR': + return ParameterVal_hierarchyAlignment_bR; + case 'lB': + return ParameterVal_hierarchyAlignment_lB; + case 'lCtrCh': + return ParameterVal_hierarchyAlignment_lCtrCh; + case 'lCtrDes': + return ParameterVal_hierarchyAlignment_lCtrDes; + case 'lT': + return ParameterVal_hierarchyAlignment_lT; + case 'rB': + return ParameterVal_hierarchyAlignment_rB; + case 'rCtrCh': + return ParameterVal_hierarchyAlignment_rCtrCh; + case 'rCtrDes': + return ParameterVal_hierarchyAlignment_rCtrDes; + case 'rT': + return ParameterVal_hierarchyAlignment_rT; + case 'tCtrCh': + return ParameterVal_hierarchyAlignment_tCtrCh; + case 'tCtrDes': + return ParameterVal_hierarchyAlignment_tCtrDes; + case 'tL': + return ParameterVal_hierarchyAlignment_tL; + case 'tR': + return ParameterVal_hierarchyAlignment_tR; + default: + return this.val; + } + } + case Param_type_secChAlign: + case Param_type_chAlign: { + switch (this.val) { + case 'l': + return ParameterVal_childAlignment_l; + case 't': + return ParameterVal_childAlignment_t; + case 'r': + return ParameterVal_childAlignment_r; + case 'b': + return ParameterVal_childAlignment_b; + default: + return this.val; + } + } + case Param_type_flowDir: { + switch (this.val) { + case 'col': + return ParameterVal_flowDirection_col; + case 'row': + return ParameterVal_flowDirection_row; + default: + return this.val; + } + } + case Param_type_off: + switch (this.val) { + case 'ctr': + return ParameterVal_offset_ctr; + case 'off': + return ParameterVal_offset_off; + default: + return this.val; + } + case Param_type_bkpt: + switch (this.val) { + case 'fixed': + return ParameterVal_breakpoint_fixed; + case 'endCnv': + return ParameterVal_breakpoint_endCnv; + case 'bal': + return ParameterVal_breakpoint_bal; + default: + return this.val; + } + case Param_type_vertAlign: + switch (this.val) { + case 'mid': + return ParameterVal_verticalAlignment_mid; + case 'b': + return ParameterVal_verticalAlignment_b; + case 't': + return ParameterVal_verticalAlignment_t; + case 'none': + return ParameterVal_verticalAlignment_none; + default: + return this.val; + } + case Param_type_horzAlign: + switch (this.val) { + case 'r': + return ParameterVal_horizontalAlignment_r; + case 'l': + return ParameterVal_horizontalAlignment_l; + case 'ctr': + return ParameterVal_horizontalAlignment_ctr; + case 'none': + return ParameterVal_horizontalAlignment_none; + default: + return this.val; + } + case Param_type_begPts: + case Param_type_endPts: + const arrVal = this.val.split(' '); + const arrResult = []; + for (let i = 0; i < arrVal.length; i++) { + const val = arrVal[i]; + switch (val) { + case "auto": + arrResult.push(ParameterVal_connectorPoint_auto); + break; + case "bCtr": + arrResult.push(ParameterVal_connectorPoint_bCtr); + break; + case "bL": + arrResult.push(ParameterVal_connectorPoint_bL); + break; + case "bR": + arrResult.push(ParameterVal_connectorPoint_bR); + break; + case "ctr": + arrResult.push(ParameterVal_connectorPoint_ctr); + break; + case "midL": + arrResult.push(ParameterVal_connectorPoint_midL); + break; + case "midR": + arrResult.push(ParameterVal_connectorPoint_midR); + break; + case "radial": + arrResult.push(ParameterVal_connectorPoint_radial); + break; + case "tCtr": + arrResult.push(ParameterVal_connectorPoint_tCtr); + break; + case "tL": + arrResult.push(ParameterVal_connectorPoint_tL); + break; + case "tR": + arrResult.push(ParameterVal_connectorPoint_tR); + break; + default: + break; + } + } + return arrResult; + case Param_type_parTxLTRAlign: + case Param_type_parTxRTLAlign: + case Param_type_shpTxLTRAlignCh: + case Param_type_shpTxRTLAlignCh: + switch (this.val) { + case "r": + return ParameterVal_horizontalAlignment_r; + case "l": + return ParameterVal_horizontalAlignment_l; + case "ctr": + return ParameterVal_horizontalAlignment_ctr; + default: + return this.val; + } + case Param_type_txAnchorVert: + case Param_type_txAnchorVertCh: + switch (this.val) { + case "b": + return ParameterVal_textAnchorVertical_b; + case "t": + return ParameterVal_textAnchorVertical_t; + case "mid": + return ParameterVal_textAnchorVertical_mid; + default: + return this.val; + } + case Param_type_txAnchorHorz: + case Param_type_txAnchorHorzCh: + switch (this.val) { + case "ctr": + return true; + default: + return false; + } + case Param_type_lnSpAfParP: + case Param_type_lnSpAfChP: + return parseFloat(this.val) / 100 * 1.2 * g_dKoef_pt_to_mm; + case Param_type_ar: + case Param_type_spanAng: + case Param_type_stAng: + case Param_type_bkPtFixedVal: + case Param_type_stBulletLvl: + return parseFloat(this.val); + default: + return this.val; + } + }; Param.prototype.setType = function (pr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_ParamType, this.getType(), pr)); @@ -3934,22 +4194,6 @@ Because of this, the display is sometimes not correct. return [this.if, this.else]; }; - Choose.prototype.startAlgorithm = function (pointTree, node) { - var check; - for (var i = 0; i < this.if.length; i += 1) { - if (!check) { - check = this.if[i].startAlgorithm(pointTree, node); - } else { - this.if[i].startAlgorithm(pointTree, node); - } - } - if (!check) { - if (this.else) { - this.else.startAlgorithm(pointTree, node); - } - } - }; - changesFactory[AscDFH.historyitem_ElseName] = CChangeString; @@ -4036,20 +4280,6 @@ Because of this, the display is sometimes not correct. return [].concat(this.list); }; - Else.prototype.startAlgorithm = function (pointTree, node) { - var constrLst = this.list.reduce(function (acc, current) { - return current instanceof ConstrLst ? current : acc; - }, null); - if (constrLst) { - constrLst.startSetConstr(pointTree, node); - } - this.list.forEach(function (element) { - if (element instanceof AscFormat.ForEach || element instanceof AscFormat.LayoutNode || element instanceof AscFormat.Choose) { - element.startAlgorithm(pointTree, node); - } - }); - }; - changesFactory[AscDFH.historyitem_IteratorAttributesAddAxis] = CChangeContent; changesFactory[AscDFH.historyitem_IteratorAttributesRemoveAxis] = CChangeContent; changesFactory[AscDFH.historyitem_IteratorAttributesAddCnt] = AscDFH.CChangesDrawingsContentLong; @@ -4111,6 +4341,74 @@ Because of this, the display is sometimes not correct. InitClass(IteratorAttributes, CBaseFormatObject, AscDFH.historyitem_type_IteratorAttributes); + + IteratorAttributes.prototype.getNodesArray = function (smartartAlgorithm) { + if (!this.axis.length) { + return []; + } + const currentNode = smartartAlgorithm.getCurrentNode(); + let currentNodes = [currentNode]; + for (let i = 0; i < this.axis.length; i += 1) { + const newCurrentNodes = []; + for (let j = 0; j < currentNodes.length; j += 1) { + const node = currentNodes[j]; + const tempNodes = []; + node.getNodesByAxis(tempNodes, this.getAxis(i), this.getPtType(i)); + const step = this.getStep(i); + let count = this.getCount(i) || tempNodes.length; + for (let k = this.getStart(i, tempNodes.length); k < tempNodes.length; k += step) { + if (!count) { + break; + } + newCurrentNodes.push(tempNodes[k]); + count -= 1; + } + } + currentNodes = newCurrentNodes; + } + const lastNode = currentNodes[currentNodes.length - 1]; + if (lastNode && lastNode.isHideLastTrans) { + currentNodes.pop(); + } + return currentNodes; + }; + IteratorAttributes.prototype.getPtType = function (index) { + if (this.ptType[index]) { + return this.ptType[index].getVal(); + } + return ElementType_value_all; + }; + IteratorAttributes.prototype.getCount = function (index) { + return this.cnt[index] || 0; + }; + IteratorAttributes.prototype.getAxis = function (index) { + if (this.axis[index]) { + return this.axis[index].getVal(); + } + return AxisType_value_none; + }; + IteratorAttributes.prototype.getStart = function (index, nodesLength) { + if (AscFormat.isRealNumber(this.st[index])) { + const start = this.st[index]; + if (start <= 0) { + return Math.max(nodesLength + start, 0); + } + return start - 1; + } + return 0; + }; + IteratorAttributes.prototype.getStep = function (index) { + if (AscFormat.isRealNumber(this.step[index])) { + return this.st[index]; + } + return 1; + }; + IteratorAttributes.prototype.getHideLastTrans = function (index) { + if (this.hideLastTrans[index] !== undefined) { + return this.hideLastTrans[index]; + } + return true; + }; IteratorAttributes.prototype.addToLstAxis = function (nIdx, oPr) { var nInsertIdx = Math.min(this.axis.length, Math.max(0, nIdx)); oHistory.CanAddChanges() && oHistory.Add(new CChangeContent(this, AscDFH.historyitem_IteratorAttributesAddAxis, nInsertIdx, [oPr], true)); @@ -4347,7 +4645,7 @@ Because of this, the display is sometimes not correct. function ElementType() { CBaseFormatObject.call(this); - this.val = null; + this.val = ElementType_value_all; } InitClass(ElementType, CBaseFormatObject, AscDFH.historyitem_type_ElementType); @@ -4566,7 +4864,7 @@ Because of this, the display is sometimes not correct. oCopy.setInt(this.getInt()); }; - changesFactory[AscDFH.historyitem_IfArg] = CChangeString; + changesFactory[AscDFH.historyitem_IfArg] = CChangeLong; changesFactory[AscDFH.historyitem_IfRef] = CChangeString; changesFactory[AscDFH.historyitem_IfFunc] = CChangeLong; changesFactory[AscDFH.historyitem_IfName] = CChangeString; @@ -4602,7 +4900,7 @@ Because of this, the display is sometimes not correct. function If() { IteratorAttributes.call(this); - this.arg = null; + this.arg = If_arg_none; this.func = null; this.name = null; this.op = null; @@ -4612,9 +4910,58 @@ Because of this, the display is sometimes not correct. } InitClass(If, IteratorAttributes, AscDFH.historyitem_type_If); + If.getArgEnum = function (arg) { + switch (arg) { + case 'animLvl': + return If_arg_animLvl; + case 'animOne': + return If_arg_animOne; + case 'bulEnabled': + return If_arg_bulEnabled; + case 'chMax': + return If_arg_chMax; + case 'chPref': + return If_arg_chPref; + case 'dir': + return If_arg_dir; + case 'hierBranch': + return If_arg_hierBranch; + case 'orgChart': + return If_arg_orgChart; + case 'resizeHandles': + return If_arg_resizeHandles; + case 'none': + default: + return If_arg_none; + } + }; + If.getArgString = function (arg) { + switch (arg) { + case If_arg_animLvl: + return 'animLvl'; + case If_arg_animOne: + return 'animOne'; + case If_arg_bulEnabled: + return 'bulEnabled'; + case If_arg_chMax: + return 'chMax'; + case If_arg_chPref: + return 'chPref'; + case If_arg_dir: + return 'dir'; + case If_arg_hierBranch: + return 'hierBranch'; + case If_arg_none: + return 'none'; + case If_arg_orgChart: + return 'orgChart'; + case If_arg_resizeHandles: + return 'resizeHandles'; + } + } If.prototype.setArg = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_IfArg, this.getArg(), pr)); + oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_IfArg, this.getArg(), pr)); this.arg = pr; }; @@ -4758,7 +5105,7 @@ Because of this, the display is sometimes not correct. pWriter._WriteUChar2(8, this.op); pWriter._WriteUChar2(9, this.func); pWriter._WriteString2(10, this.val); - pWriter._WriteString2(11, this.arg); + pWriter._WriteString2(11, If.getArgString(this.arg)); }; If.prototype.writeChildren = function(pWriter) { for(var nIndex = 0; nIndex < this.list.length; ++nIndex) { @@ -4798,7 +5145,7 @@ Because of this, the display is sometimes not correct. else if (8 === nType) this.setOp(oStream.GetUChar()); else if (9 === nType) this.setFunc(oStream.GetUChar()); else if (10 === nType) this.setVal(oStream.GetString2()); - else if (11 === nType) this.setArg(oStream.GetString2()); + else if (11 === nType) this.setArg(If.getArgEnum(oStream.GetString2())); }; If.prototype.readChild = function(nType, pReader) { @@ -4808,191 +5155,6 @@ Because of this, the display is sometimes not correct. return [].concat(this.list); }; - If.prototype.startAlgorithm = function (pointTree, node) { - var check = this.checkCondition(pointTree, node); - if (check) { - var constrLst = this.list.reduce(function (acc, current) { - return current instanceof ConstrLst ? current : acc; - }, null); - if (constrLst) { - constrLst.startSetConstr(pointTree, node); - } - this.list.forEach(function (element) { - if (element instanceof AscFormat.ForEach || element instanceof AscFormat.LayoutNode || element instanceof AscFormat.Choose) { - element.startAlgorithm(pointTree, node); - } - }); - } - return check; - }; - - - If.prototype.checkCondition = function (pointTree, nodeData) { - if (nodeData.node) { - var nodes = []; - var smartArtNode = nodeData.node.parent; - this.axis.forEach(function (type) { - nodes = nodes.concat(smartArtNode.getAxis(type.getVal())); - }); - } - - switch (this.func) { - case If_func_cnt: - return this.funcCnt(nodes); - case If_func_depth: - return this.funcDepth(nodes); - case If_func_maxDepth: - return this.funcMaxDepth(nodes); - case If_func_pos: - return this.funcPos(nodes); - case If_func_posEven: - return this.funcPosEven(nodes); - case If_func_posOdd: - return this.funcPosOdd(nodes); - case If_func_revPos: - return this.funcRevPos(nodes); - case If_func_var: - return this.funcVar(nodeData); - default: - return false; - } - }; - - If.prototype.funcVar = function (nodeData) { - if (nodeData && nodeData.node) { - var nodeElement = nodeData.node.parent; - var rootOfTree = nodeElement.getRoot()[0]; - var rootPres = rootOfTree.data.getPresWithVarLst(); - var currentPres = nodeData.node.getPresByNameAndStyleLbl(nodeData.name, nodeData.styleLbl); - switch (this.arg) { - case 'animLvl': - case 'hierBranch': - case 'bulletEnabled': - if (currentPres && currentPres.prSet && currentPres.prSet.presLayoutVars) { - return this.compare(currentPres.prSet.presLayoutVars.getVal(this.arg)); - } - break; - - case 'animOne': - case 'dir': - case 'chPref': - case 'chMax': - case 'orgChart': - case 'resizeHandles': - if (rootPres && rootPres.prSet && rootPres.prSet.presLayoutVars && rootPres.prSet.presLayoutVars[this.arg]) { - return this.compare(rootPres.prSet.presLayoutVars.getVal(this.arg)); - } - break; - default: - return false; - } - } - return false; - }; - - If.prototype.funcCnt = function (axis) { - var count = 0; - this.ptType.forEach(function (Type) { - var typeOfPoint = Type.getVal(); - axis.forEach(function (node) { - count += node.getPoints(typeOfPoint).length; - }); - }); - return this.compare(count); - }; - - If.prototype.funcDepth = function (axis) { - return this.compare(axis[0].data.depth); - }; - - If.prototype.funcMaxDepth = function (axis) { - var maxDepth = axis.reduce(function (acc, b) { - if (b.data.depth > acc) { - return b.data.depth; - } - return acc; - }, 0); - return this.compare(maxDepth); - }; - - If.prototype.funcPos = function () { - - }; - - If.prototype.funcPosEven = function (axis) { - return this.funcPos(axis) % 2 === 0; - }; - - If.prototype.funcPosOdd = function (axis) { - return this.funcPos(axis) % 2 === 1; - }; - - If.prototype.funcRevPos = function () { - - }; - - If.prototype.compare = function (comparingArg) { - var val = this.valAdapter(this.val); - var adaptComparingArg = this.valAdapter(comparingArg); - switch (this.op) { - case If_op_equ: - return adaptComparingArg === val; - case If_op_gt: - return adaptComparingArg > val; - case If_op_gte: - return adaptComparingArg >= val; - case If_op_lt: - return adaptComparingArg < val; - case If_op_lte: - return adaptComparingArg <= val; - case If_op_neq: - return adaptComparingArg !== val; - default: - return false; - } - }; - - If.prototype.valAdapter = function (value) { - var adaptVal; - if (!(parseFloat(value) !== parseFloat(value))) { - adaptVal = parseFloat(value); - } else { - switch (value) { - case 'norm': - case 'none': - case 'hang': - case 'exact': - case false: - case 'false': - adaptVal = 0; - break; - case 'rev': - case 'ctr': - case 'branch': - case 'init': - case 'rel': - case true: - case 'true': - adaptVal = 1; - break; - case 'lvl': - case 'one': - case 'l': - adaptVal = 2; - break; - case 'r': - adaptVal = 3; - break; - case 'std': - adaptVal = 4; - break; - default: - return; - } - } - return adaptVal; - }; - function ConstrLst() { CCommonDataList.call(this); } @@ -5015,34 +5177,6 @@ Because of this, the display is sometimes not correct. } }; - ConstrLst.prototype.startSetConstr = function (pointTree, node) { - var constrWithPrimFont = []; - var constrWithSecFont = []; - this.list.forEach(function (constr) { - if (constr.type === Constr_type_primFontSz) { - constrWithPrimFont.push({ - constr: constr, - node: node, - }); - } else if (constr.type === Constr_type_secFontSz) { - constrWithSecFont.push({ - constr: constr, - node: node, - }); - } else { - constr.setConstr(pointTree, [{node: node, constr: constr}]); - } - }); - if (constrWithPrimFont.length !== 0) { - constrWithPrimFont[0].constr.setConstr(pointTree, constrWithPrimFont); - } - if (constrWithSecFont.length !== 0) { - constrWithSecFont[0].constr.setConstr(pointTree, constrWithSecFont); - } - }; - - - changesFactory[AscDFH.historyitem_ConstrFact] = CChangeDouble2; changesFactory[AscDFH.historyitem_ConstrFor] = CChangeLong; changesFactory[AscDFH.historyitem_ConstrForName] = CChangeString; @@ -5095,17 +5229,17 @@ Because of this, the display is sometimes not correct. function Constr() { CBaseFormatObject.call(this); - this.fact = null; - this.for = null; + this.fact = 1; + this.for = Constr_for_self; this.forName = null; - this.op = null; + this.op = Constr_op_none; this.setPtType(new ElementType()); - this.refFor = null; + this.refFor = Constr_for_self; this.refForName = null; this.setRefPtType(new ElementType()); - this.refType = null; + this.refType = Constr_type_none; this.type = null; - this.val = null; + this.val = 0; this.extLst = null; } @@ -5283,534 +5417,6 @@ Because of this, the display is sometimes not correct. Constr.prototype.readChild = function(nType, pReader) { }; - Constr.prototype.getFieldScale = function (type) { - if (type) { - switch (type) { - case Constr_type_alignOff: - return 1; - case Constr_type_b: - return 1; - case Constr_type_begMarg: - return 1; - case Constr_type_begPad: - return 1; - case Constr_type_bendDist: - return 1; - case Constr_type_bMarg: - return 1; - case Constr_type_bOff: - return 1; - case Constr_type_connDist: - return 1; - case Constr_type_ctrX: - return 1; - case Constr_type_ctrXOff: - return 1; - case Constr_type_ctrY: - return 1; - case Constr_type_ctrYOff: - return 1; - case Constr_type_diam: - return 1; - case Constr_type_endMarg: - return 1; - case Constr_type_endPad: - return 1; - case Constr_type_h: - case Constr_type_w: - return 36000; - case Constr_type_hArH: - return 1; - case Constr_type_hOff: // TODO: add to constr type in x2t - return 1; - case Constr_type_l: - return 1; - case Constr_type_lMarg: - return 1; - case Constr_type_lOff: - return 1; - case Constr_type_none: - return 1; - case Constr_type_primFontSz: - case Constr_type_secFontSz: - return 100 * Constr_font_scale; - case Constr_type_pyraAcctRatio: - return 1; - case Constr_type_r: - return 1; - case Constr_type_rMarg: - return 1; - case Constr_type_rOff: - return 1; - case Constr_type_secSibSp: - return 1; - case Constr_type_sibSp: - return 1; - case Constr_type_sp: - return 1; - case Constr_type_stemThick: - return 1; - case Constr_type_t: - return 1; - case Constr_type_tMarg: - return 1; - case Constr_type_tOff: - return 1; - case Constr_type_userA: - return 1; - case Constr_type_userB: - return 1; - case Constr_type_userC: - return 1; - case Constr_type_userD: - return 1; - case Constr_type_userE: - return 1; - case Constr_type_userF: - return 1; - case Constr_type_userG: - return 1; - case Constr_type_userH: - return 1; - case Constr_type_userI: - return 1; - case Constr_type_userJ: - return 1; - case Constr_type_userK: - return 1; - case Constr_type_userL: - return 1; - case Constr_type_userM: - return 1; - case Constr_type_userN: - return 1; - case Constr_type_userO: - return 1; - case Constr_type_userP: - return 1; - case Constr_type_userQ: - return 1; - case Constr_type_userR: - return 1; - case Constr_type_userS: - return 1; - case Constr_type_userT: - return 1; - case Constr_type_userU: - return 1; - case Constr_type_userV: - return 1; - case Constr_type_userW: - return 1; - case Constr_type_userX: - return 1; - case Constr_type_userY: - return 1; - case Constr_type_userZ: - return 1; - case Constr_type_wArH: - return 1; - case Constr_type_wOff: - return 1; - default: - return 1; - } - } - return 1; - }; - - Constr.prototype.getConstrVal = function (shape) { - var result; - if (this.val) { - result = this.val; - return; - } else { - if (shape) { - var constrType = this.refType; - - switch (constrType) { - case Constr_type_alignOff: - break; - case Constr_type_b: - break; - case Constr_type_begMarg: - break; - case Constr_type_begPad: - break; - case Constr_type_bendDist: - break; - case Constr_type_bMarg: - break; - case Constr_type_bOff: - break; - case Constr_type_connDist: - break; - case Constr_type_ctrX: - break; - case Constr_type_ctrXOff: - break; - case Constr_type_ctrY: - break; - case Constr_type_ctrYOff: - break; - case Constr_type_diam: - break; - case Constr_type_endMarg: - break; - case Constr_type_endPad: - break; - case Constr_type_h: - //result = shape.extX; - break; - case Constr_type_hArH: - break; - case Constr_type_hOff: // TODO: add to constr type in x2t - break; - case Constr_type_l: - break; - case Constr_type_lMarg: - break; - case Constr_type_lOff: - break; - case Constr_type_none: - break; - case Constr_type_primFontSz: - case Constr_type_secFontSz: - if (shape.txBody && shape.txBody.content) { - result = shape.txBody.content.getFontSizeForConstr(); - } - break; - case Constr_type_pyraAcctRatio: - break; - case Constr_type_r: - break; - case Constr_type_rMarg: - break; - case Constr_type_rOff: - break; - case Constr_type_secSibSp: - break; - case Constr_type_sibSp: - break; - case Constr_type_sp: - break; - case Constr_type_stemThick: - break; - case Constr_type_t: - break; - case Constr_type_tMarg: - break; - case Constr_type_tOff: - break; - case Constr_type_userA: - break; - case Constr_type_userB: - break; - case Constr_type_userC: - break; - case Constr_type_userD: - break; - case Constr_type_userE: - break; - case Constr_type_userF: - break; - case Constr_type_userG: - break; - case Constr_type_userH: - break; - case Constr_type_userI: - break; - case Constr_type_userJ: - break; - case Constr_type_userK: - break; - case Constr_type_userL: - break; - case Constr_type_userM: - break; - case Constr_type_userN: - break; - case Constr_type_userO: - break; - case Constr_type_userP: - break; - case Constr_type_userQ: - break; - case Constr_type_userR: - break; - case Constr_type_userS: - break; - case Constr_type_userT: - break; - case Constr_type_userU: - break; - case Constr_type_userV: - break; - case Constr_type_userW: - break; - case Constr_type_userX: - break; - case Constr_type_userY: - break; - case Constr_type_userZ: - break; - case Constr_type_w: - //result = shape.extY; - break; - case Constr_type_wArH: - break; - case Constr_type_wOff: - break; - default: - return; - } - if (typeof result === 'number' && !(result !== result)) { - result *= this.getFieldScale(constrType); - } - } - } - if (typeof result === 'number'&& !(result !== result)) { - var fact = Math.abs(this.fact ? this.fact : 1); - result *= fact; - return result; - } - }; - - Constr.prototype.getShapesFromAxis = function (transfer, isRef) { - var node = transfer && transfer.node && transfer.node.parent; - if (node) { - var axisNodes; - var shapes = []; - var fGetAxis = this.getAxisFromParent.bind(this, node); - var that = this; - axisNodes = isRef ? fGetAxis(this.refFor) : fGetAxis(this.for); - if (axisNodes && axisNodes.length !== 0) { - var ptType; - if (isRef) { - ptType = this.refPtType && this.refPtType.getVal(); - shapes = axisNodes.reduce(function (acc, axisNode) { - if (that.refForName && ptType) { - return acc.concat(axisNode.getShape(that.refForName, ptType)); - } - else if (that.refForName) { - return acc.concat(axisNode.getShape(that.refForName)); - } - else if (ptType) { - return acc.concat(axisNode.getShape(transfer.name, ptType)); - } else { - return acc.concat(axisNode.getShape(transfer.name)); - } - }, []); - } else { - ptType = this.ptType && this.ptType.getVal(); - shapes = axisNodes.reduce(function (acc, axisNode) { - if (that.forName && ptType) { - return acc.concat(axisNode.getShape(that.forName, ptType)); - } - else if (that.forName) { - return acc.concat(axisNode.getShape(that.forName)); - } - else if (ptType) { - return acc.concat(axisNode.getShape(undefined, ptType)); - } else { - return acc.concat(axisNode.getShape()); - } - }, []); - } - } - return shapes; - } - }; - - Constr.prototype.getAxisFromParent = function (node, constrAxisType) { - switch (constrAxisType) { - case Constr_for_ch: - return node.getAxis(AxisType_value_ch); - case Constr_for_des: - return node.getAxis(AxisType_value_des); - case Constr_for_self: - return node.getAxis(AxisType_value_self); - default: - return node.getAxis(AxisType_value_self); - } - }; - - Constr.prototype.setConstr = function (pointTree, transfer) { - // var node = transfer; - // var smartArt = pointTree && pointTree.parent; - // if (node) { - // var shapes = this.getShapesFromAxis(node, false); - // var refShape = this.getShapesFromAxis(node, true); - // if (this.type === Constr_type_primFontSz || this.type === Constr_type_secFontSz) { - // if (smartArt) { - // smartArt.setTruthFontSizeInSmartArt(shapes); - // } - // return; - // } - // - // var that = this; - // var value = refShape.reduce(function (acc, shape) { - // var compute = that.getConstrVal(shape); - // if (!acc && typeof compute === 'number') { - // return compute; - // } else if (typeof compute === 'number' && compute > acc) { - // return compute; - // } - // return acc; - // }, undefined); - // - // if (typeof value === 'number' && !(value !== value)) { - // value /= this.getFieldScale(this.type); - // shapes.forEach(function (shape) { - // var setter = that.getConstrSetter(shape); - // if (setter) { - // setter.call(shape, value); - // } - // }); - // } - // } - }; - - Constr.prototype.getConstrSetter = function (shape) { - if (shape) { - var constrType = this.type; - switch (constrType) { - case Constr_type_alignOff: - break; - case Constr_type_b: - break; - case Constr_type_begMarg: - break; - case Constr_type_begPad: - break; - case Constr_type_bendDist: - break; - case Constr_type_bMarg: - break; - case Constr_type_bOff: - break; - case Constr_type_connDist: - break; - case Constr_type_ctrX: - break; - case Constr_type_ctrXOff: - break; - case Constr_type_ctrY: - break; - case Constr_type_ctrYOff: - break; - case Constr_type_diam: - break; - case Constr_type_endMarg: - break; - case Constr_type_endPad: - break; - case Constr_type_h: - //return shape.setResizeHeightConstr; - break; - case Constr_type_hArH: - break; - case Constr_type_hOff: // TODO: add to constr type in x2t - break; - case Constr_type_l: - break; - case Constr_type_lMarg: - break; - case Constr_type_lOff: - break; - case Constr_type_none: - break; - case Constr_type_primFontSz: - case Constr_type_secFontSz: - //return shape.setFontSizeForAllContent; - break; - case Constr_type_pyraAcctRatio: - break; - case Constr_type_r: - break; - case Constr_type_rMarg: - break; - case Constr_type_rOff: - break; - case Constr_type_secSibSp: - break; - case Constr_type_sibSp: - break; - case Constr_type_sp: - break; - case Constr_type_stemThick: - break; - case Constr_type_t: - break; - case Constr_type_tMarg: - break; - case Constr_type_tOff: - break; - case Constr_type_userA: - break; - case Constr_type_userB: - break; - case Constr_type_userC: - break; - case Constr_type_userD: - break; - case Constr_type_userE: - break; - case Constr_type_userF: - break; - case Constr_type_userG: - break; - case Constr_type_userH: - break; - case Constr_type_userI: - break; - case Constr_type_userJ: - break; - case Constr_type_userK: - break; - case Constr_type_userL: - break; - case Constr_type_userM: - break; - case Constr_type_userN: - break; - case Constr_type_userO: - break; - case Constr_type_userP: - break; - case Constr_type_userQ: - break; - case Constr_type_userR: - break; - case Constr_type_userS: - break; - case Constr_type_userT: - break; - case Constr_type_userU: - break; - case Constr_type_userV: - break; - case Constr_type_userW: - break; - case Constr_type_userX: - break; - case Constr_type_userY: - break; - case Constr_type_userZ: - break; - case Constr_type_w: - //return shape.setResizeWidthConstr; - break; - case Constr_type_wArH: - break; - case Constr_type_wOff: - break; - default: - return; - } - } - }; - changesFactory[AscDFH.historyitem_PresOfExtLst] = CChangeObject; drawingsChangesMap[AscDFH.historyitem_PresOfExtLst] = function (oClass, value) { oClass.extLst = value; @@ -5960,7 +5566,7 @@ Because of this, the display is sometimes not correct. function Rule() { CBaseFormatObject.call(this); this.fact = null; - this.for = null; + this.for = AscFormat.Constr_for_self; this.forName = null; this.max = null; this.type = null; @@ -6094,7 +5700,7 @@ Because of this, the display is sometimes not correct. changesFactory[AscDFH.historyitem_SShapeHideGeom] = CChangeBool; changesFactory[AscDFH.historyitem_SShapeLkTxEntry] = CChangeBool; changesFactory[AscDFH.historyitem_SShapeRot] = CChangeDouble2; - changesFactory[AscDFH.historyitem_SShapeType] = CChangeString; + changesFactory[AscDFH.historyitem_SShapeType] = CChangeLong; changesFactory[AscDFH.historyitem_SShapeZOrderOff] = CChangeLong; changesFactory[AscDFH.historyitem_SShapeAdjLst] = CChangeObject; changesFactory[AscDFH.historyitem_SShapeExtLst] = CChangeObject; @@ -6129,12 +5735,12 @@ Because of this, the display is sometimes not correct. function SShape() { CBaseFormatObject.call(this); this.blip = null; - this.blipPhldr = null; - this.hideGeom = null; - this.lkTxEntry = null; - this.rot = null; - this.type = null; - this.zOrderOff = null; + this.blipPhldr = false; + this.hideGeom = false; + this.lkTxEntry = false; + this.rot = 0; + this.type = LayoutShapeType_outputShapeType_none; + this.zOrderOff = 0; this.adjLst = null; this.extLst = null; } @@ -6167,7 +5773,7 @@ Because of this, the display is sometimes not correct. } SShape.prototype.setType = function (oPr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_SShapeType, this.getType(), oPr)); + oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_SShapeType, this.getType(), oPr)); this.type = oPr; } @@ -6246,7 +5852,7 @@ Because of this, the display is sometimes not correct. pWriter._WriteBool2(3, this.lkTxEntry); pWriter._WriteDoubleReal2(4, this.rot); pWriter._WriteInt2(5, this.zOrderOff); - pWriter._WriteString2(6, this.type); + pWriter._WriteString2(6, AscCommon.To_XML_ST_LayoutShapeType(this.type)); }; SShape.prototype.writeChildren = function(pWriter) { @@ -6259,8 +5865,8 @@ Because of this, the display is sometimes not correct. else if (2 === nType) this.setHideGeom(oStream.GetBool()); else if (3 === nType) this.setLkTxEntry(oStream.GetBool()); else if (4 === nType) this.setRot(oStream.GetDouble()); - else if (5 === nType) this.setZOrderOff(oStream.GetULong()); - else if (6 === nType) this.setType(oStream.GetString2()); + else if (5 === nType) this.setZOrderOff(oStream.GetLong()); + else if (6 === nType) this.setType(AscCommon.From_XML_ST_LayoutShapeType(oStream.GetString2())); }; SShape.prototype.readChild = function(nType, pReader) { switch (nType) { @@ -6402,6 +6008,9 @@ Because of this, the display is sometimes not correct. InitClass(VarLst, CBaseFormatObject, AscDFH.historyitem_type_VarLst); + VarLst.prototype.getHierBranchValue = function () { + return this.hierBranch && this.hierBranch.val; + } VarLst.prototype.setAnimLvl = function (oPr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_VarLstAnimLvl, this.getAnimLvl(), oPr)); this.animLvl = oPr; @@ -6640,7 +6249,9 @@ Because of this, the display is sometimes not correct. }; AnimLvl.prototype.fromPPTY = function (pReader) { var val = pReader.stream.ReadByteFromPPTY(); - this.setVal(val); + if (val !== null) { + this.setVal(val); + } }; AnimLvl.prototype.readAttribute = function(nType, pReader) { var oStream = pReader.stream; @@ -6680,7 +6291,9 @@ Because of this, the display is sometimes not correct. AnimOne.prototype.fromPPTY = function (pReader) { var val = pReader.stream.ReadByteFromPPTY(); - this.setVal(val); + if (val !== null) { + this.setVal(val); + } }; changesFactory[AscDFH.historyitem_BulletEnabledVal] = CChangeBool; @@ -6713,7 +6326,9 @@ Because of this, the display is sometimes not correct. BulletEnabled.prototype.fromPPTY = function (pReader) { var val = pReader.stream.ReadByteFromPPTY(); - this.setVal(!!val); + if (val !== null) { + this.setVal(!!val); + } }; changesFactory[AscDFH.historyitem_ChMaxVal] = CChangeLong; @@ -6795,7 +6410,7 @@ Because of this, the display is sometimes not correct. function DiagramDirection() { CBaseFormatObject.call(this); - this.val = null; + this.val = DiagramDirection_val_norm; } InitClass(DiagramDirection, CBaseFormatObject, AscDFH.historyitem_type_DiagramDirection); @@ -6819,7 +6434,9 @@ Because of this, the display is sometimes not correct. DiagramDirection.prototype.fromPPTY = function (pReader) { var val = pReader.stream.ReadByteFromPPTY(); - this.setVal(val); + if (val !== null) { + this.setVal(val); + } }; @@ -6830,7 +6447,7 @@ Because of this, the display is sometimes not correct. function HierBranch() { CBaseFormatObject.call(this); - this.val = null; + this.val = AscFormat.HierBranch_val_std; } InitClass(HierBranch, CBaseFormatObject, AscDFH.historyitem_type_HierBranch); @@ -6849,12 +6466,14 @@ Because of this, the display is sometimes not correct. }; HierBranch.prototype.toPPTY = function (pWriter) { - pWriter.WriteByteToPPTY(this.getVal() || 0); + pWriter.WriteByteToPPTY(this.getVal()); }; HierBranch.prototype.fromPPTY = function (pReader) { var val = pReader.stream.ReadByteFromPPTY(); - this.setVal(val); + if (val !== null) { + this.setVal(val); + } }; @@ -6889,7 +6508,9 @@ Because of this, the display is sometimes not correct. OrgChart.prototype.fromPPTY = function (pReader) { var val = pReader.stream.ReadByteFromPPTY(); - this.setVal(!!val); + if (val !== null) { + this.setVal(!!val); + } }; @@ -6925,7 +6546,9 @@ Because of this, the display is sometimes not correct. ResizeHandles.prototype.fromPPTY = function (pReader) { var val = pReader.stream.ReadByteFromPPTY(); - this.setVal(val); + if (val !== null) { + this.setVal(val); + } }; @@ -7104,16 +6727,6 @@ Because of this, the display is sometimes not correct. return [].concat(this.list); }; - ForEach.prototype.startAlgorithm = function (pointTree, node) { - this.list.forEach(function (element) { - if (element instanceof AscFormat.ForEach || element instanceof AscFormat.LayoutNode || element instanceof AscFormat.Choose) { - element.startAlgorithm(pointTree, node); - } - }); - }; - - - changesFactory[AscDFH.historyitem_SampDataUseDef] = CChangeBool; changesFactory[AscDFH.historyitem_SampDataDataModel] = CChangeObject; drawingsChangesMap[AscDFH.historyitem_SampDataUseDef] = function (oClass, value) { @@ -7185,80 +6798,6 @@ Because of this, the display is sometimes not correct. return [this.dataModel]; }; - - changesFactory[AscDFH.historyitem_StyleDataUseDef] = CChangeBool; - changesFactory[AscDFH.historyitem_StyleDataDataModel] = CChangeObject; - drawingsChangesMap[AscDFH.historyitem_StyleDataUseDef] = function (oClass, value) { - oClass.useDef = value; - }; - drawingsChangesMap[AscDFH.historyitem_StyleDataDataModel] = function (oClass, value) { - oClass.dataModel = value; - }; - - function StyleData() { - CBaseFormatObject.call(this); - this.useDef = null; - this.dataModel = null; - } - - InitClass(StyleData, CBaseFormatObject, AscDFH.historyitem_type_StyleData); - - StyleData.prototype.setUseDef = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeBool(this, AscDFH.historyitem_StyleDataUseDef, this.getUseDef(), pr)); - this.useDef = pr; - } - - StyleData.prototype.setDataModel = function (oPr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_StyleDataDataModel, this.getDataModel(), oPr)); - this.dataModel = oPr; - this.setParentToChild(oPr); - } - - StyleData.prototype.getUseDef = function () { - return this.useDef; - } - - StyleData.prototype.getDataModel = function () { - return this.dataModel; - } - - StyleData.prototype.fillObject = function (oCopy, oIdMap) { - oCopy.setUseDef(this.getUseDef()); - if (this.getDataModel()) { - oCopy.setDataModel(this.getDataModel().createDuplicate(oIdMap)); - } - } - - StyleData.prototype.privateWriteAttributes = function(pWriter) { - pWriter._WriteBool2(0, this.useDef); - }; - StyleData.prototype.writeChildren = function(pWriter) { - this.writeRecord2(pWriter, 0, this.dataModel); - }; - StyleData.prototype.readAttribute = function(nType, pReader) { - var oStream = pReader.stream; - if (0 === nType) this.setUseDef(oStream.GetBool()); - }; - StyleData.prototype.readChild = function(nType, pReader) { - var s = pReader.stream; - switch (nType) { - case 0: { - this.setDataModel(new DataModel()); - this.dataModel.fromPPTY(pReader); - break; - } - default: { - s.SkipRecord(); - break; - } - } - }; - StyleData.prototype.getChildren = function() { - return [this.dataModel]; - }; - - - changesFactory[AscDFH.historyitem_DiagramTitleLang] = CChangeString; changesFactory[AscDFH.historyitem_DiagramTitleVal] = CChangeString; drawingsChangesMap[AscDFH.historyitem_DiagramTitleLang] = function (oClass, value) { @@ -7271,7 +6810,7 @@ Because of this, the display is sometimes not correct. function DiagramTitle() { CBaseFormatObject.call(this); this.lang = null; - this.val = null; + this.val = ""; } InitClass(DiagramTitle, CBaseFormatObject, AscDFH.historyitem_type_DiagramTitle); @@ -7676,8 +7215,8 @@ Because of this, the display is sometimes not correct. if (nIdx > -1 && nIdx < this.styleLbl.length) { this.styleLbl[nIdx].setParent(null); oHistory.CanAddChanges() && oHistory.Add(new CChangesDrawingsContentStyleLbl(this, AscDFH.historyitem_ColorsDefRemoveStyleLbl, nIdx, [this.styleLbl[nIdx]], false)); - var deleteObj = nIdx === this.styleLbl.length - 1 ? this.styleLbl.pop() : this.styleLbl.splice(nIdx, 1); - delete this.styleLblByName[deleteObj[0].name]; + var deleteObj = nIdx === this.styleLbl.length - 1 ? this.styleLbl.pop() : this.styleLbl.splice(nIdx, 1)[0]; + delete this.styleLblByName[deleteObj.name]; } }; @@ -7751,7 +7290,7 @@ Because of this, the display is sometimes not correct. break; } case 1: { - this.setDesc(new Desc()); + this.setDesc(new DiagramTitle()); this.desc.fromPPTY(pReader); break; } @@ -7828,7 +7367,6 @@ Because of this, the display is sometimes not correct. oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_ColorDefStyleLblName, this.getName(), pr)); this.name = pr; } - ColorDefStyleLbl.prototype.setEffectClrLst = function (oPr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_ColorDefStyleLblEffectClrLst, this.getEffectClrLst(), oPr)); this.effectClrLst = oPr; @@ -7947,32 +7485,32 @@ Because of this, the display is sometimes not correct. var s = pReader.stream; switch (nType) { case 0: { - this.setEffectClrLst(new EffectClrLst()); + this.setEffectClrLst(new ClrLst()); this.effectClrLst.fromPPTY(pReader); break; } case 1: { - this.setFillClrLst(new FillClrLst()); + this.setFillClrLst(new ClrLst()); this.fillClrLst.fromPPTY(pReader); break; } case 2: { - this.setLinClrLst(new LinClrLst()); + this.setLinClrLst(new ClrLst()); this.linClrLst.fromPPTY(pReader); break; } case 3: { - this.setTxEffectClrLst(new TxEffectClrLst()); + this.setTxEffectClrLst(new ClrLst()); this.txEffectClrLst.fromPPTY(pReader); break; } case 4: { - this.setTxFillClrLst(new TxFillClrLst()); + this.setTxFillClrLst(new ClrLst()); this.txFillClrLst.fromPPTY(pReader); break; } case 5: { - this.setTxLinClrLst(new TxLinClrLst()); + this.setTxLinClrLst(new ClrLst()); this.txLinClrLst.fromPPTY(pReader); break; } @@ -7985,98 +7523,81 @@ Because of this, the display is sometimes not correct. ColorDefStyleLbl.prototype.getChildren = function() { return [this.effectClrLst, this.fillClrLst, this.linClrLst, this.txEffectClrLst, this.txFillClrLst, this.txLinClrLst]; }; + ColorDefStyleLbl.prototype.checkNoFill = function () { + switch (this.name) { + case "parChTrans1D1": + return true; + default: + return false; + } + }; - changesFactory[AscDFH.historyitem_CCommonDataClrListAdd] = CChangesContentNoId; - changesFactory[AscDFH.historyitem_CCommonDataClrListRemove] = CChangesContentNoId; - drawingConstructorsMap[AscDFH.historyitem_CCommonDataClrListAdd] = AscFormat.CUniColor; - drawingConstructorsMap[AscDFH.historyitem_CCommonDataClrListRemove] = AscFormat.CUniColor; - drawingContentChanges[AscDFH.historyitem_CCommonDataClrListAdd] = function (oClass) { - return oClass.list; - }; - drawingContentChanges[AscDFH.historyitem_CCommonDataClrListRemove] = function (oClass) { - return oClass.list; - }; - - - function CCommonDataClrList(type, ind, item, isAdd) { - CBaseFormatObject.call(this, type, ind, item, isAdd); - this.list = []; - this.hueDir = null; - this.meth = null; - } - - InitClass(CCommonDataClrList, CBaseFormatObject, AscDFH.historyitem_type_CCommonDataClrList); - - CCommonDataClrList.prototype.setHueDir = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_CCommonDataClrListHueDir, this.getHueDir(), pr)); - this.hueDir = pr; - } - - CCommonDataClrList.prototype.setMeth = function (pr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_CCommonDataClrListMeth, this.getMeth(), pr)); - this.meth = pr; - } - - CCommonDataClrList.prototype.getHueDir = function () { - return this.hueDir; - } - - CCommonDataClrList.prototype.getMeth = function () { - return this.meth; - } - - CCommonDataClrList.prototype.addToLst = function (nIdx, oPr) { - var nInsertIdx = Math.min(this.list.length, Math.max(0, nIdx)); - oHistory.CanAddChanges() && oHistory.Add(new CChangesContentNoId(this, AscDFH.historyitem_CCommonDataClrListAdd, nInsertIdx, [oPr], true)); - nInsertIdx === this.list.length ? this.list.push(oPr) : this.list.splice(nInsertIdx, 0, oPr); - }; - - CCommonDataClrList.prototype.removeFromLst = function (nIdx) { - if (nIdx > -1 && nIdx < this.list.length) { - this.list[nIdx].setParent(null); - oHistory.CanAddChanges() && oHistory.Add(new CChangesContentNoId(this, AscDFH.historyitem_CCommonDataClrListRemove, nIdx, [this.list[nIdx]], false)); - nIdx === this.list.length - 1 ? this.list.pop() : this.list.splice(nIdx, 1); - } - }; - - CCommonDataClrList.prototype.fillObject = function (oCopy, oIdMap) { - for (var nIdx = 0; nIdx < this.list.length; ++nIdx) { - oCopy.addToLst(nIdx, this.list[nIdx].createDuplicate(oIdMap)); - } - }; - - CCommonDataClrList.prototype.privateWriteAttributes = function(pWriter) { - pWriter._WriteUChar2(0, this.hueDir); - pWriter._WriteUChar2(1, this.meth); - }; - CCommonDataClrList.prototype.writeChildren = function(pWriter) { - for (var i = 0; i < this.list.length; i += 1) { - pWriter.WriteRecord2(0, this.list[i], pWriter.WriteUniColor); - } - }; - CCommonDataClrList.prototype.readAttribute = function(nType, pReader) { - var oStream = pReader.stream; - if (0 === nType) this.setHueDir(oStream.GetUChar()); - else if (1 === nType) this.setMeth(oStream.GetUChar()); - }; - CCommonDataClrList.prototype.readChild = function(nType, pReader) { - var s = pReader.stream; - switch (nType) { - case 0: - this.addToLst(this.list.length, pReader.ReadUniColor()); - break; - default: - s.SkipRecord(); - break; - } - - }; - CCommonDataClrList.prototype.getChildren = function() { - return [].concat(this.list); - }; - + ColorDefStyleLbl.prototype.checkNoLn = function () { + switch (this.name) { + case "sibTrans2D1": + case "trBgShp": + case "bgShp": + case "dkBgShp": + case "fgSibTrans2D1": + case "revTx": + return true; + default: + return false; + } + }; + ColorDefStyleLbl.prototype.setShapeFill = function (shapes, parentObjects) { + if (shapes.length && this.fillClrLst && !this.checkNoFill()) { + const fillShapes = []; + for (let i = 0; i < shapes.length; i++) { + if (!(shapes[i].shape.hideGeom || shapes[i].type === AscFormat.LayoutShapeType_outputShapeType_conn)) { + fillShapes.push(shapes[i]); + } + } + const fills = this.fillClrLst.getCurColor(fillShapes.length, parentObjects); + if (fills) { + for (let i = 0; i < fills.length; i++) { + fillShapes[i].setFill(fills[i]); + } + } + } + }; + ColorDefStyleLbl.prototype.getLineWidth = function (shadowShape) { + switch (this.name) { + case "trAlignAcc1": + case "sibTrans1D1": + return 6350; + default: + return shadowShape.tailLnArrow || shadowShape.headLnArrow ? 6350 : 12700; + } + } + ColorDefStyleLbl.prototype.setShapeLn = function (shapes, parentObjects) { + if (shapes.length && this.linClrLst && !this.checkNoLn()) { + const fillShapes = []; + for (let i = 0; i < shapes.length; i += 1) { + const shadowShape = shapes[i]; + if (!(shadowShape.shape.hideGeom || + shadowShape.node.isParNode() && shadowShape.type !== AscFormat.LayoutShapeType_outputShapeType_conn)) { + fillShapes.push(shadowShape); + } + } + const fills = this.linClrLst.getCurColor(fillShapes.length, parentObjects); + if (fills) { + for (let i = 0; i < fills.length; i++) { + const shadowShape = fillShapes[i]; + const ln = new AscFormat.CLn(); + ln.setW(this.getLineWidth(shadowShape)); + ln.setFill(fills[i]); + shadowShape.setLn(ln); + } + } + } + }; + changesFactory[AscDFH.historyitem_ClrLstAdd] = CChangesContentNoId; + changesFactory[AscDFH.historyitem_ClrLstRemove] = CChangesContentNoId; + drawingConstructorsMap[AscDFH.historyitem_ClrLstAdd] = AscFormat.CUniColor; + drawingConstructorsMap[AscDFH.historyitem_ClrLstRemove] = AscFormat.CUniColor; changesFactory[AscDFH.historyitem_ClrLstHueDir] = CChangeLong; changesFactory[AscDFH.historyitem_ClrLstMeth] = CChangeLong; drawingsChangesMap[AscDFH.historyitem_ClrLstHueDir] = function (oClass, value) { @@ -8085,15 +7606,115 @@ Because of this, the display is sometimes not correct. drawingsChangesMap[AscDFH.historyitem_ClrLstMeth] = function (oClass, value) { oClass.meth = value; }; + drawingContentChanges[AscDFH.historyitem_ClrLstAdd] = function (oClass) { + return oClass.list; + }; + drawingContentChanges[AscDFH.historyitem_ClrLstRemove] = function (oClass) { + return oClass.list; + }; function ClrLst() { - CCommonDataClrList.call(this); - this.hueDir = null; - this.meth = null; + CBaseFormatObject.call(this); + this.list = []; + this.hueDir = ClrLst_hueDir_cw; + this.meth = ClrLst_meth_span; } + InitClass(ClrLst, CBaseFormatObject, AscDFH.historyitem_type_ClrLst); + + ClrLst.prototype.getCurColor = function (length, parentObjects) { + if (!length) { + return; + } + if (this.list.length === 0) { + return this.getNoFillColor(length); + } + + if (this.meth === ClrLst_meth_repeat || this.list.length === 1) { + return this.getRepeatColor(length); + } - InitClass(ClrLst, CCommonDataClrList, AscDFH.historyitem_type_ClrLst); + const startColor = this.list[0]; + const endColor = this.list[1]; + startColor.Calculate(parentObjects.theme, parentObjects.slide, parentObjects.layout, parentObjects.master); + endColor.Calculate(parentObjects.theme, parentObjects.slide, parentObjects.layout, parentObjects.master); + const startHSL = {}; + AscFormat.CColorModifiers.prototype.RGB2HSL(startColor.RGBA.R, startColor.RGBA.G, startColor.RGBA.B, startHSL); + + const endHSL = {}; + AscFormat.CColorModifiers.prototype.RGB2HSL(endColor.RGBA.R, endColor.RGBA.G, endColor.RGBA.B, endHSL); + + const diffHSL = {}; + if (this.hueDir === ClrLst_hueDir_ccw) { + diffHSL.H = startHSL.H - endHSL.H; + } else { + diffHSL.H = endHSL.H - startHSL.H; + } + diffHSL.S = endHSL.S - startHSL.S; + diffHSL.L = endHSL.L - startHSL.L; + diffHSL.A = endColor.RGBA.A - startColor.RGBA.A; + if (this.meth === ClrLst_meth_cycle) { + return this.getCycleColor(diffHSL, length); + } else { + return this.getSpanColor(diffHSL, length); + } + }; + + ClrLst.prototype.getNoFillColor = function (length) { + const colors = []; + for (let i = 0; i < length; i++) { + colors.push(AscFormat.CreateNoFillUniFill()); + } + return colors; + }; + + ClrLst.prototype.getRepeatColor = function (length) { + const colors = []; + for (let i = 0; i < length; i++) { + const truthIndex = i % this.list.length; + const uniColor = this.list[truthIndex]; + colors.push(AscFormat.CreateUniFillByUniColorCopy(uniColor)); + } + return colors; + }; + ClrLst.prototype.getInterpolateStartColor = function (diffHSL, scale) { + const startColor = this.list[0]; + + const hueOff = diffHSL.H * scale; + const satOff = diffHSL.S * scale; + const lumOff = diffHSL.L * scale; + const alphaOff = diffHSL.A * scale; + const copyColor = startColor.createDuplicate(); + copyColor.addColorMod(new AscFormat.CColorMod("hueOff", ((hueOff / 255) * (360 * 60000)) >> 0)); + copyColor.addColorMod(new AscFormat.CColorMod("satOff", (satOff / 255 * 100000) >> 0)); + copyColor.addColorMod(new AscFormat.CColorMod("lumOff", (lumOff / 255 * 100000) >> 0)); + copyColor.addColorMod(new AscFormat.CColorMod("alphaOff", (alphaOff / 255 * 100000) >> 0)); + return AscFormat.CreateUniFillByUniColor(copyColor); + }; + ClrLst.prototype.getCycleColor = function (diffHSL, length) { + if (!length) { + return; + } + const resultColors = []; + + for (let i = 0; i < length; i++) { + const scale = (i * 2) / length; + resultColors.push(this.getInterpolateStartColor(diffHSL, scale > 1 ? 2 - scale : scale)); + } + return resultColors; + }; + ClrLst.prototype.getSpanColor = function (diffHSL, length) { + if (!length) { + return; + } + + const resultColors = []; + for (let i = 0; i < length; i += 1) { + const scale = i / (length - 1); + resultColors.push(this.getInterpolateStartColor(diffHSL, scale)); + } + return resultColors; + } ClrLst.prototype.setHueDir = function (pr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeLong(this, AscDFH.historyitem_ClrLstHueDir, this.getHueDir(), pr)); this.hueDir = pr; @@ -8104,6 +7725,20 @@ Because of this, the display is sometimes not correct. this.meth = pr; } + ClrLst.prototype.addToLst = function (nIdx, oPr) { + var nInsertIdx = Math.min(this.list.length, Math.max(0, nIdx)); + oHistory.CanAddChanges() && oHistory.Add(new CChangesContentNoId(this, AscDFH.historyitem_ClrLstAdd, nInsertIdx, [oPr], true)); + nInsertIdx === this.list.length ? this.list.push(oPr) : this.list.splice(nInsertIdx, 0, oPr); + }; + + ClrLst.prototype.removeFromLst = function (nIdx) { + if (nIdx > -1 && nIdx < this.list.length) { + this.list[nIdx].setParent(null); + oHistory.CanAddChanges() && oHistory.Add(new CChangesContentNoId(this, AscDFH.historyitem_ClrLstRemove, nIdx, [this.list[nIdx]], false)); + nIdx === this.list.length - 1 ? this.list.pop() : this.list.splice(nIdx, 1); + } + }; + ClrLst.prototype.getHueDir = function () { return this.hueDir; } @@ -8112,6 +7747,32 @@ Because of this, the display is sometimes not correct. return this.meth; } + ClrLst.prototype.privateWriteAttributes = function(pWriter) { + pWriter._WriteUChar2(0, this.hueDir); + pWriter._WriteUChar2(1, this.meth); + }; + ClrLst.prototype.writeChildren = function(pWriter) { + for (var i = 0; i < this.list.length; i += 1) { + pWriter.WriteRecord2(0, this.list[i], pWriter.WriteUniColor); + } + }; + ClrLst.prototype.readAttribute = function(nType, pReader) { + var oStream = pReader.stream; + if (0 === nType) this.setHueDir(oStream.GetUChar()); + else if (1 === nType) this.setMeth(oStream.GetUChar()); + }; + ClrLst.prototype.readChild = function(nType, pReader) { + var s = pReader.stream; + switch (nType) { + case 0: + this.addToLst(this.list.length, pReader.ReadUniColor()); + break; + default: + s.SkipRecord(); + break; + } + }; + ClrLst.prototype.fillObject = function (oCopy, oIdMap) { oCopy.setHueDir(this.getHueDir()); oCopy.setMeth(this.getMeth()); @@ -8120,41 +7781,9 @@ Because of this, the display is sometimes not correct. oCopy.addToLst(nIdx, oColor); } } - - function EffectClrLst() { - ClrLst.call(this); - } - - InitClass(EffectClrLst, ClrLst, AscDFH.historyitem_type_EffectClrLst); - - function FillClrLst() { - ClrLst.call(this); - } - - InitClass(FillClrLst, ClrLst, AscDFH.historyitem_type_FillClrLst); - - function LinClrLst() { - ClrLst.call(this); - } - - InitClass(LinClrLst, ClrLst, AscDFH.historyitem_type_LinClrLst); - function TxEffectClrLst() { - ClrLst.call(this); - } - - InitClass(TxEffectClrLst, ClrLst, AscDFH.historyitem_type_TxEffectClrLst); - - function TxFillClrLst() { - ClrLst.call(this); - } - - InitClass(TxFillClrLst, ClrLst, AscDFH.historyitem_type_TxFillClrLst); - - function TxLinClrLst() { - ClrLst.call(this); - } - - InitClass(TxLinClrLst, ClrLst, AscDFH.historyitem_type_TxLinClrLst); + ClrLst.prototype.getChildren = function() { + return [].concat(this.list); + }; function ColorsDefHdrLst() { CCommonDataList.call(this); @@ -8316,8 +7945,8 @@ Because of this, the display is sometimes not correct. changesFactory[AscDFH.historyitem_StyleDefScene3d] = CChangeObject; changesFactory[AscDFH.historyitem_StyleDefTitle] = CChangeObject; changesFactory[AscDFH.historyitem_StyleDefDesc] = CChangeObject; - changesFactory[AscDFH.historyitem_StyleDefAddStyleLbl] = CChangeContent; - changesFactory[AscDFH.historyitem_StyleDefRemoveStyleLbl] = CChangeContent; + changesFactory[AscDFH.historyitem_StyleDefAddStyleLbl] = CChangesDrawingsContentStyleLbl; + changesFactory[AscDFH.historyitem_StyleDefRemoveStyleLbl] = CChangesDrawingsContentStyleLbl; drawingsChangesMap[AscDFH.historyitem_StyleDefMinVer] = function (oClass, value) { oClass.minVer = value; }; @@ -8356,6 +7985,7 @@ Because of this, the display is sometimes not correct. this.title = null; this.desc = null; this.styleLbl = []; + this.styleLblByName = {}; } InitClass(StyleDef, CBaseFormatObject, AscDFH.historyitem_type_StyleDef); @@ -8402,16 +8032,18 @@ Because of this, the display is sometimes not correct. StyleDef.prototype.addToLstStyleLbl = function (nIdx, oPr) { var nInsertIdx = Math.min(this.styleLbl.length, Math.max(0, nIdx)); - oHistory.CanAddChanges() && oHistory.Add(new CChangeContent(this, AscDFH.historyitem_StyleDefAddStyleLbl, nInsertIdx, [oPr], true)); + oHistory.CanAddChanges() && oHistory.Add(new CChangesDrawingsContentStyleLbl(this, AscDFH.historyitem_StyleDefAddStyleLbl, nInsertIdx, [oPr], true)); nInsertIdx === this.styleLbl.length ? this.styleLbl.push(oPr) : this.styleLbl.splice(nInsertIdx, 0, oPr); this.setParentToChild(oPr); + this.styleLblByName[oPr.name] = oPr; }; StyleDef.prototype.removeFromLstStyleLbl = function (nIdx) { if (nIdx > -1 && nIdx < this.styleLbl.length) { this.styleLbl[nIdx].setParent(null); - oHistory.CanAddChanges() && oHistory.Add(new CChangeContent(this, AscDFH.historyitem_StyleDefRemoveStyleLbl, nIdx, [this.styleLbl[nIdx]], false)); - nIdx === this.styleLbl.length - 1 ? this.styleLbl.pop() : this.styleLbl.splice(nIdx, 1); + oHistory.CanAddChanges() && oHistory.Add(new CChangesDrawingsContentStyleLbl(this, AscDFH.historyitem_StyleDefRemoveStyleLbl, nIdx, [this.styleLbl[nIdx]], false)); + const deleteObj = nIdx === this.styleLbl.length - 1 ? this.styleLbl.pop() : this.styleLbl.splice(nIdx, 1)[0]; + delete this.styleLblByName[deleteObj.name]; } }; @@ -8493,7 +8125,7 @@ Because of this, the display is sometimes not correct. break; } case 1: { - this.setDesc(new Desc()); + this.setDesc(new DiagramTitle()); this.desc.fromPPTY(pReader); break; } @@ -8683,6 +8315,14 @@ Because of this, the display is sometimes not correct. InitClass(StyleDefStyleLbl, CBaseFormatObject, AscDFH.historyitem_type_StyleDefStyleLbl); + StyleDefStyleLbl.prototype.setShapeStyle = function (shapes) { + if (this.style) { + for (let i = 0; i < shapes.length; i += 1) { + const shape = shapes[i]; + shape.setStyle(this.style.createDuplicate()); + } + } + } StyleDefStyleLbl.prototype.setName = function (pr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_StyleDefStyleLblName, this.getName(), pr)); this.name = pr; @@ -9021,6 +8661,11 @@ Because of this, the display is sometimes not correct. InitClass(Drawing, CGroupShape, AscDFH.historyitem_type_SmartArtDrawing); + Drawing.prototype.recalcSmartArtConnections = function () { + if (this.group) { + this.group.recalcSmartArtConnections(); + } + }; Drawing.prototype.getObjectType = function () { return AscDFH.historyitem_type_SmartArtDrawing; } @@ -10056,54 +9701,212 @@ Because of this, the display is sometimes not correct. } - changesFactory[AscDFH.historyitem_ShapeSmartArtInfoSpPrPoint] = CChangeObject; - changesFactory[AscDFH.historyitem_ShapeSmartArtInfoShapePoint] = CChangeObject; - changesFactory[AscDFH.historyitem_ShapeSmartArtInfoAddLstContentPoint] = CChangeContent; - changesFactory[AscDFH.historyitem_ShapeSmartArtInfoRemoveLstContentPoint] = CChangeContent; - drawingsChangesMap[AscDFH.historyitem_ShapeSmartArtInfoSpPrPoint] = function (oClass, value) { - oClass.spPrPoint = value; - }; - drawingsChangesMap[AscDFH.historyitem_ShapeSmartArtInfoShapePoint] = function (oClass, value) { - oClass.shapePoint = value; - }; - drawingContentChanges[AscDFH.historyitem_ShapeSmartArtInfoAddLstContentPoint] = function (oClass) { - return oClass.contentPoint; - }; - drawingContentChanges[AscDFH.historyitem_ShapeSmartArtInfoRemoveLstContentPoint] = function (oClass) { - return oClass.contentPoint; - }; - function ShapeSmartArtInfo() { - CBaseFormatObject.call(this); + this.shape = null; this.shapePoint = null; this.contentPoint = []; this.maxFontSize = null; - } - InitClass(ShapeSmartArtInfo, CBaseFormatObject, AscDFH.historyitem_type_ShapeSmartArtInfo); + this.textConstraints = {}; + this.params = {}; + this.textConstraintRelations = []; + this.adaptFontSizeShapesInfo = null; + this.secondaryFontSizeScale = null; + } + ShapeSmartArtInfo.prototype.getContentFillingType = function (shapes) { + + let res = 0x00; + for (let i = 0; i < shapes.length; i += 1) { + const shape = shapes[i]; + if (!shape.isCanFitFontSize()) { + continue; + } + const docContent = shape.getDocContent(); + if (docContent) { + for (let j = 0; j < docContent.Content.length; j++) { + const item = docContent.Content[j]; + if (item.PresentationPr && item.PresentationPr.Bullet && !item.PresentationPr.Bullet.IsNone()) { + res |= smartArtContentFillingType_onlyChildren; + } else { + res |= smartArtContentFillingType_onlyParent; + } + if (res === smartArtContentFillingType_parentWithChildren) { + return res; + } + } + } + } + return res; + }; + ShapeSmartArtInfo.prototype.getSecondaryFontSizeCoefficient = function () { + if (this.secondaryFontSizeScale === null) { + const primaryConstr = this.textConstraints[AscFormat.Constr_type_primFontSz]; + if (primaryConstr) { + const coefficient = primaryConstr.getSecondaryFontSizeCoefficient(); + if (coefficient !== null) { + this.secondaryFontSizeScale = coefficient; + return coefficient; + } + } + + const secondaryConstr = this.textConstraints[AscFormat.Constr_type_secFontSz]; + if (secondaryConstr) { + const coefficient = secondaryConstr.getSecondaryFontSizeCoefficient(); + if (coefficient !== null) { + this.secondaryFontSizeScale = coefficient; + return coefficient; + } + } + + this.secondaryFontSizeScale = 0.78; + } + return this.secondaryFontSizeScale; + }; + ShapeSmartArtInfo.prototype.getAdaptFontSizeInfo = function () { + if (this.adaptFontSizeShapesInfo === null) { + const checkShapes = {}; + + this.adaptFontSizeShapesInfo = {}; + this.adaptFontSizeShapesInfo.shapes = []; + const res = this.adaptFontSizeShapesInfo.shapes; + const checkShapeSmartArtInfos = [this]; + while (checkShapeSmartArtInfos.length) { + const smartArtInfo = checkShapeSmartArtInfos.pop(); + const shape = smartArtInfo.shape; + if (!checkShapes[shape.GetId()]) { + res.push(shape); + checkShapes[shape.GetId()] = true; + } + + + const primFontConstraint = smartArtInfo.textConstraints[AscFormat.Constr_type_primFontSz]; + if (primFontConstraint) { + primFontConstraint.collectShapeSmartArtInfo(AscFormat.Constr_op_equ, checkShapeSmartArtInfos, checkShapes); + primFontConstraint.collectShapeSmartArtInfo(AscFormat.Constr_op_equ, checkShapeSmartArtInfos, checkShapes, true); + primFontConstraint.collectShapeSmartArtInfo(AscFormat.Constr_op_none, checkShapeSmartArtInfos, checkShapes); + primFontConstraint.collectShapeSmartArtInfo(AscFormat.Constr_op_lte, checkShapeSmartArtInfos, checkShapes); + } + const secFontConstraint = smartArtInfo.textConstraints[AscFormat.Constr_type_secFontSz]; + if (secFontConstraint) { + secFontConstraint.collectShapeSmartArtInfo(AscFormat.Constr_op_equ, checkShapeSmartArtInfos, checkShapes); + secFontConstraint.collectShapeSmartArtInfo(AscFormat.Constr_op_equ, checkShapeSmartArtInfos, checkShapes, true); + secFontConstraint.collectShapeSmartArtInfo(AscFormat.Constr_op_none, checkShapeSmartArtInfos, checkShapes); + secFontConstraint.collectShapeSmartArtInfo(AscFormat.Constr_op_lte, checkShapeSmartArtInfos, checkShapes); + } + } + this.adaptFontSizeShapesInfo.contentFillingType = this.getContentFillingType(res); + } + return this.adaptFontSizeShapesInfo; + }; + ShapeSmartArtInfo.prototype.getChildrenSpacingScale = function () { + if (this.params[AscFormat.Param_type_lnSpAfChP] !== undefined) { + return this.params[AscFormat.Param_type_lnSpAfChP]; + } + return g_dKoef_pt_to_mm * 0.18; + }; + ShapeSmartArtInfo.prototype.getParentSpacingScale = function () { + if (this.params[AscFormat.Param_type_lnSpAfParP] !== undefined) { + return this.params[AscFormat.Param_type_lnSpAfParP]; + } + return g_dKoef_pt_to_mm * 0.42; + }; + ShapeSmartArtInfo.prototype.setShape = function (shape) { + this.shape = shape; + } + ShapeSmartArtInfo.prototype.getMarginFactors = function () { + const res = {}; + res.bMarg = this.textConstraints[AscFormat.Constr_type_bMarg]; + res.tMarg = this.textConstraints[AscFormat.Constr_type_tMarg]; + res.rMarg = this.textConstraints[AscFormat.Constr_type_rMarg]; + res.lMarg = this.textConstraints[AscFormat.Constr_type_lMarg]; + return res; + }; + ShapeSmartArtInfo.prototype.getRelFitFontSize = function (isUseChildrenCoefficient) { + const adaptInfo = this.getAdaptFontSizeInfo(); + const shapes = adaptInfo.shapes; + let minFontSize = null; + for (let i = 0; i < shapes.length; i++) { + const shape = shapes[i]; + const content = shape.getDocContent(); + const shapeInfo = shape.getSmartArtInfo(); + const isNotPlaceholder = content && !content.Is_Empty({SkipEnd: true, SkipPlcHldr: false}) && shapeInfo.contentPoint.some(function (node) { + const point = node.point; + return point && point.prSet && !point.prSet.custT && !point.prSet.phldr; + }); + if (isNotPlaceholder) { + + if (shapeInfo.maxFontSize === null) { + this.setMaxFontSize(shape.findFitFontSizeForSmartArt()); + } + if (minFontSize === null || minFontSize > shapeInfo.maxFontSize) { + minFontSize = shapeInfo.maxFontSize; + } + } + if (minFontSize !== null && isUseChildrenCoefficient) { + const contentFillingType = this.getContentFillingType(shapes); + if (contentFillingType === smartArtContentFillingType_onlyChildren || contentFillingType === smartArtContentFillingType_parentWithChildren) { + return minFontSize; + } else if (contentFillingType === smartArtContentFillingType_onlyParent) { + return Math.round(minFontSize * shapeInfo.getSecondaryFontSizeCoefficient()); + } + } + } + return minFontSize; + }; + ShapeSmartArtInfo.prototype.getMaxConstrFontSize = function (isUseChildrenCoefficient) { + const fontSizes = [65]; + const primTextConstr = this.textConstraints[AscFormat.Constr_type_primFontSz]; + if (primTextConstr) { + fontSizes.push(primTextConstr.getMaxFontSize(isUseChildrenCoefficient)); + } + const secTextConstr = this.textConstraints[AscFormat.Constr_type_secFontSz]; + if (secTextConstr) { + fontSizes.push(secTextConstr.getMaxFontSize(isUseChildrenCoefficient)); + } + return Math.min.apply(Math, fontSizes); + }; + ShapeSmartArtInfo.prototype.getMinConstrFontSize = function () { + const fontSizes = [5]; + const primTextConstr = this.textConstraints[AscFormat.Constr_type_primFontSz]; + if (primTextConstr) { + fontSizes.push(primTextConstr.getMinFontSize()); + } + const secTextConstr = this.textConstraints[AscFormat.Constr_type_secFontSz]; + if (secTextConstr) { + fontSizes.push(secTextConstr.getMinFontSize()); + } + return Math.min.apply(Math, fontSizes); + }; + ShapeSmartArtInfo.prototype.getShape = function () { + return this.shape; + }; ShapeSmartArtInfo.prototype.setShapePoint = function (oPr) { - oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_ShapeSmartArtInfoShapePoint, this.shapePoint, oPr)); this.shapePoint = oPr; - this.setParentToChild(oPr); } ShapeSmartArtInfo.prototype.addToLstContentPoint = function (nIdx, oPr) { var nInsertIdx = Math.min(this.contentPoint.length, Math.max(0, nIdx)); - oHistory.CanAddChanges() && oHistory.Add(new CChangeContent(this, AscDFH.historyitem_ShapeSmartArtInfoAddLstContentPoint, nInsertIdx, [oPr], true)); nInsertIdx === this.contentPoint.length ? this.contentPoint.push(oPr) : this.contentPoint.splice(nInsertIdx, 0, oPr); - this.setParentToChild(oPr); } ShapeSmartArtInfo.prototype.removeFromLstContentPoint = function (nIdx) { if (nIdx > -1 && nIdx < this.contentPoint.length) { - this.contentPoint[nIdx].setParent(null); - oHistory.CanAddChanges() && oHistory.Add(new CChangeContent(this, AscDFH.historyitem_ShapeSmartArtInfoRemoveLstContentPoint, nIdx, [this.contentPoint[nIdx]], false)); nIdx === this.contentPoint.length - 1 ? this.contentPoint.pop() : this.contentPoint.splice(nIdx, 1); } } - ShapeSmartArtInfo.prototype.setMaxFontSize = function (oPr) { - this.maxFontSize = oPr; - } + ShapeSmartArtInfo.prototype.setMaxFontSize = function (nPr) { + this.maxFontSize = nPr; + }; + ShapeSmartArtInfo.prototype.collectTextConstraintRelations = function (array) { + array = array || []; + for (let i = 0; i < this.textConstraintRelations.length; i += 1) { + const presNodeArray = this.textConstraintRelations[i]; + if (!array.includes(presNodeArray)) { + array.push(presNodeArray); + } + } + return array; + }; changesFactory[AscDFH.historyitem_SmartArtColorsDef] = CChangeObject; changesFactory[AscDFH.historyitem_SmartArtDrawing] = CChangeObject; @@ -10120,6 +9923,8 @@ Because of this, the display is sometimes not correct. }; drawingsChangesMap[AscDFH.historyitem_SmartArtDrawing] = function (oClass, value) { oClass.drawing = value; + oClass.isLocalDrawingPart = oClass.localDrawingId !== null ? oClass.localDrawingId === (value && value.Get_Id()) : false; + oClass.recalcSmartArtConnections(); }; drawingsChangesMap[AscDFH.historyitem_SmartArtLayoutDef] = function (oClass, value) { oClass.layoutDef = value; @@ -10147,11 +9952,33 @@ Because of this, the display is sometimes not correct. this.bNeedUpdatePosition = true; this.calcGeometry = null; - this.bFirstRecalculate = true; + this.isLocalDrawingPart = true; + this.localDrawingId = null; } InitClass(SmartArt, CGroupShape, AscDFH.historyitem_type_SmartArt); - + SmartArt.prototype.generateDefaultStructures = function () { + if (!this.colorsDef) { + this.setColorsDef(AscFormat.generateDefaultSmartArtColors()); + } + if (!this.layoutDef) { + this.setLayoutDef(AscFormat.generateDefaultSmartArtLayout()); + } + if (!this.styleDef){ + this.setStyleDef(AscFormat.generateDefaultSmartArtQuickStyle()); + } + }; + SmartArt.prototype.recalcFitFontSize = function () { + this.recalcInfo.fitFontSize = true; + }; + SmartArt.prototype.recalcSmartArtConnections = function () { + this.recalcInfo.reconnectSmartArtShapes = true; + }; + SmartArt.prototype.setRecalculateInfo = function () { + CGroupShape.prototype.setRecalculateInfo.call(this); + this.recalcInfo.fitFontSize = true; + this.recalcInfo.reconnectSmartArtShapes = true; + }; SmartArt.prototype.getObjectType = function() { return AscDFH.historyitem_type_SmartArt; }; @@ -10159,6 +9986,235 @@ Because of this, the display is sometimes not correct. return 'SmartArt'; }; + SmartArt.prototype.isCanGenerateSmartArt = function () { + const smartartType = this.getTypeOfSmartArt(); + switch (smartartType) { + case Asc.c_oAscSmartArtTypes.AlternatingHexagonList: + case Asc.c_oAscSmartArtTypes.AlternatingPictureBlocks: + case Asc.c_oAscSmartArtTypes.ArrowRibbon: + case Asc.c_oAscSmartArtTypes.AscendingPictureAccentProcess: + case Asc.c_oAscSmartArtTypes.Balance: + case Asc.c_oAscSmartArtTypes.BasicBlockList: + case Asc.c_oAscSmartArtTypes.BasicCycle: + case Asc.c_oAscSmartArtTypes.BasicMatrix: + case Asc.c_oAscSmartArtTypes.BasicBendingProcess: + case Asc.c_oAscSmartArtTypes.BasicPie: + case Asc.c_oAscSmartArtTypes.BasicProcess: + case Asc.c_oAscSmartArtTypes.BasicPyramid: + case Asc.c_oAscSmartArtTypes.BasicRadial: + case Asc.c_oAscSmartArtTypes.BasicTarget: + case Asc.c_oAscSmartArtTypes.BasicVenn: + case Asc.c_oAscSmartArtTypes.BendingPictureAccentList: + case Asc.c_oAscSmartArtTypes.BendingPictureBlocks: + case Asc.c_oAscSmartArtTypes.BendingPictureCaptionList: + case Asc.c_oAscSmartArtTypes.BendingPictureCaption: + case Asc.c_oAscSmartArtTypes.BendingPictureSemiTransparentText: + case Asc.c_oAscSmartArtTypes.BlockCycle: + case Asc.c_oAscSmartArtTypes.CaptionedPictures: + case Asc.c_oAscSmartArtTypes.ChevronAccentProcess: + case Asc.c_oAscSmartArtTypes.CircleArrowProcess: + case Asc.c_oAscSmartArtTypes.CircleProcess: + case Asc.c_oAscSmartArtTypes.CircleRelationship: + case Asc.c_oAscSmartArtTypes.ClosedChevronProcess: + case Asc.c_oAscSmartArtTypes.ContinuousCycle: + case Asc.c_oAscSmartArtTypes.ConvergingArrows: + case Asc.c_oAscSmartArtTypes.ConvergingRadial: + case Asc.c_oAscSmartArtTypes.ConvergingText: + case Asc.c_oAscSmartArtTypes.CounterbalanceArrows: + case Asc.c_oAscSmartArtTypes.CycleMatrix: + case Asc.c_oAscSmartArtTypes.DescendingProcess: + case Asc.c_oAscSmartArtTypes.DivergingArrows: + case Asc.c_oAscSmartArtTypes.DivergingRadial: + case Asc.c_oAscSmartArtTypes.Equation: + case Asc.c_oAscSmartArtTypes.Funnel: + case Asc.c_oAscSmartArtTypes.Gear: + case Asc.c_oAscSmartArtTypes.GridMatrix: + case Asc.c_oAscSmartArtTypes.GroupedList: + case Asc.c_oAscSmartArtTypes.HexagonCluster: + case Asc.c_oAscSmartArtTypes.IncreasingCircleProcess: + case Asc.c_oAscSmartArtTypes.InterconnectedBlockProcess: + case Asc.c_oAscSmartArtTypes.InterconnectedRings: + case Asc.c_oAscSmartArtTypes.InvertedPyramid: + case Asc.c_oAscSmartArtTypes.LinearVenn: + case Asc.c_oAscSmartArtTypes.MultiDirectionalCycle: + case Asc.c_oAscSmartArtTypes.NestedTarget: + case Asc.c_oAscSmartArtTypes.NonDirectionalCycle: + case Asc.c_oAscSmartArtTypes.OpposingArrows: + case Asc.c_oAscSmartArtTypes.OpposingIdeas: + case Asc.c_oAscSmartArtTypes.PhasedProcess: + case Asc.c_oAscSmartArtTypes.PictureAccentProcess: + case Asc.c_oAscSmartArtTypes.PictureCaptionList: + case Asc.c_oAscSmartArtTypes.PictureFrame: + case Asc.c_oAscSmartArtTypes.PictureLineup: + case Asc.c_oAscSmartArtTypes.PictureOrganizationChart: + case Asc.c_oAscSmartArtTypes.PictureStrips: + case Asc.c_oAscSmartArtTypes.PlusAndMinus: + case Asc.c_oAscSmartArtTypes.ProcessList: + case Asc.c_oAscSmartArtTypes.RadialCluster: + case Asc.c_oAscSmartArtTypes.RadialCycle: + case Asc.c_oAscSmartArtTypes.RadialList: + case Asc.c_oAscSmartArtTypes.RadialPictureList: + case Asc.c_oAscSmartArtTypes.RadialVenn: + case Asc.c_oAscSmartArtTypes.RepeatingBendingProcess: + case Asc.c_oAscSmartArtTypes.ReverseList: + case Asc.c_oAscSmartArtTypes.SegmentedCycle: + case Asc.c_oAscSmartArtTypes.SegmentedProcess: + case Asc.c_oAscSmartArtTypes.SegmentedPyramid: + case Asc.c_oAscSmartArtTypes.SpiralPicture: + case Asc.c_oAscSmartArtTypes.StackedVenn: + case Asc.c_oAscSmartArtTypes.StaggeredProcess: + case Asc.c_oAscSmartArtTypes.TabList: + case Asc.c_oAscSmartArtTypes.TabbedArc: + case Asc.c_oAscSmartArtTypes.TableList: + case Asc.c_oAscSmartArtTypes.TextCycle: + case Asc.c_oAscSmartArtTypes.ThemePictureAccent: + case Asc.c_oAscSmartArtTypes.ThemePictureAlternatingAccent: + case Asc.c_oAscSmartArtTypes.ThemePictureGrid: + case Asc.c_oAscSmartArtTypes.TitledMatrix: + case Asc.c_oAscSmartArtTypes.TitledPictureAccentList: + case Asc.c_oAscSmartArtTypes.TitledPictureBlocks: + case Asc.c_oAscSmartArtTypes.TitlePictureLineup: + case Asc.c_oAscSmartArtTypes.TrapezoidList: + case Asc.c_oAscSmartArtTypes.UpwardArrow: + case Asc.c_oAscSmartArtTypes.VerticalPictureAccentList: + case Asc.c_oAscSmartArtTypes.VerticalPictureList: + case Asc.c_oAscSmartArtTypes.HorizontalOrganizationChart: + case Asc.c_oAscSmartArtTypes.HalfCircleOrganizationChart: + case Asc.c_oAscSmartArtTypes.StackedList: + case Asc.c_oAscSmartArtTypes.HorizontalHierarchy: + case Asc.c_oAscSmartArtTypes.HorizontalMultiLevelHierarchy: + case Asc.c_oAscSmartArtTypes.OrganizationChart: + case Asc.c_oAscSmartArtTypes.NameAndTitleOrganizationChart: + case Asc.c_oAscSmartArtTypes.CirclePictureHierarchy: + case Asc.c_oAscSmartArtTypes.HierarchyList: + case Asc.c_oAscSmartArtTypes.Hierarchy: + return true; + default: + return false; + } + }; + SmartArt.prototype.getSizes = function () { + const sizes = {width: 0, height: 0}; + if (this.drawingBase) { + const drawingMetrics = this.drawingBase.getGraphicObjectMetrics(); + sizes.width = drawingMetrics.extX; + sizes.height = drawingMetrics.extY; + } else { + sizes.width = this.spPr.xfrm.extX; + sizes.height = this.spPr.xfrm.extY; + } + return sizes; + }; + SmartArt.prototype.generateLocalDrawingPart = function () { + if (this.isLocalDrawingPart) { + if (!this.isCanGenerateSmartArt()) { + this.isLocalDrawingPart = false; + return; + } + AscFormat.ExecuteNoHistory(function () { + this.generateDrawingPart(); + this.isLocalDrawingPart = true; + this.localDrawingId = this.drawing.Get_Id(); + }, this, []); + } + }; + SmartArt.prototype.reconnectSmartArtShapes = function () { + if (!this.dataModel) { + return; + } + this.smartArtTree = new AscFormat.SmartArtAlgorithm(this); + if (this.isCanGenerateSmartArt()) { + this.smartArtTree.startFromBegin(); + this.smartArtTree.connectShapeSmartArtInfo(); + } else { + this.setConnections2(); + } + }; + SmartArt.prototype.checkDrawingPartWithHistory = function (handleShape) { + if (this.worksheet && this.isLocalDrawingPart && AscCommon.History.CanAddChanges()) { + this.isLocalDrawingPart = false; + const oldDrawing = this.drawing; + const mainGroup = this.getMainGroup(); + const selectedObjects = mainGroup.selectedObjects; + const mapShapes = {}; + for (let i = 0; i < oldDrawing.spTree.length; i += 1) { + const shape = oldDrawing.spTree[i]; + mapShapes[shape.GetId()] = {index: i, state: null}; + const docContent = shape.getDocContent(); + if (docContent) { + mapShapes[shape.GetId()].state = docContent.GetSelectionState(); + } + } + + const copyDrawing = this.drawing.copy(); + copyDrawing.setWorksheet(this.drawing.worksheet); + copyDrawing.setDrawingObjects(this.drawing.drawingObjects); + this.removeFromSpTreeByPos(0); + this.addToSpTree(0, copyDrawing); + this.setDrawing(copyDrawing); + this.reconnectSmartArtShapes(); + copyDrawing.recalculate(); + for (let i = 0; i < selectedObjects.length; i += 1) { + const shapeInfo = mapShapes[selectedObjects[i].Id]; + if (shapeInfo) { + copyDrawing.spTree[shapeInfo.index].selectStartPage = selectedObjects[i].selectStartPage; + selectedObjects[i] = copyDrawing.spTree[shapeInfo.index]; + selectedObjects[i].selected = true; + if (shapeInfo.state) { + const docContent = selectedObjects[i].getDocContent(); + docContent && docContent.SetSelectionState(shapeInfo.state); + } + } + } + if (mainGroup.selection.textSelection) { + const info = mapShapes[mainGroup.selection.textSelection.GetId()]; + if (info) { + mainGroup.selection.textSelection = copyDrawing.spTree[info.index]; + } + } + if (handleShape) { + const info = mapShapes[handleShape.GetId()]; + if (info) { + return copyDrawing.spTree[info.index]; + } + } + } + }; + SmartArt.prototype.initDrawing = function () { + if (!this.drawing) { + this.drawing = new Drawing(); + this.drawing.setBDeleted(false); + this.addToSpTree(0, this.drawing); + const spPr = new AscFormat.CSpPr(); + this.drawing.setSpPr(spPr); + spPr.setParent(this.drawing); + const nvSpPr = new AscFormat.UniNvPr(); + nvSpPr.cNvPr.setId(0); + this.drawing.setNvSpPr(nvSpPr); + } + } + SmartArt.prototype.generateDrawingPart = function () { + this.isLocalDrawingPart = false; + if (!this.isCanGenerateSmartArt()) { + return; + } + this.smartArtTree = new AscFormat.SmartArtAlgorithm(this); + this.smartArtTree.startFromBegin(); + const drawing = this.getDrawing(); + const shapeLength = drawing.spTree.length; + for (let i = 0; i < shapeLength; i++) { + drawing.removeFromSpTreeByPos(0); + } + const shapes = this.smartArtTree.getShapes(); + for (let i = shapes.length - 1; i >= 0; i -= 1) { + drawing.addToSpTree(0, shapes[i]); + } + this.recalcFitFontSize(); + }; + SmartArt.prototype.generateSmartArtDrawingPart = SmartArt.prototype.generateDrawingPart; + SmartArt.prototype.findConnector = function (x, y) { + return null; + }; SmartArt.prototype.getAllRasterImages = function (arrImages) { const oBgFormat = this.getBg(); @@ -10180,7 +10236,6 @@ Because of this, the display is sometimes not correct. arrShapes.forEach(function (oShape) { if (oShape.spPr) { if (oShape.spPr.Fill && oShape.spPr.Fill.fill && !(oShape.spPr.Fill.fill instanceof AscFormat.CNoFill)) { - let mods = null; const id = oShape.spPr.Fill.fill.color.color.id; let standardColor; if (id === 0) { @@ -10192,7 +10247,7 @@ Because of this, the display is sometimes not correct. } if (oShape.spPr.Fill.fill.color.Mods) { - mods = oShape.spPr.Fill.fill.color.Mods.Apply(standardColor); + oShape.spPr.Fill.fill.color.Mods.Apply(standardColor); } const grayscaleValue = AscFormat.getGrayscaleValue(standardColor); @@ -10226,11 +10281,15 @@ Because of this, the display is sometimes not correct. if (oldParaMarks) { editor.ShowParaMarks = false; } + if (this.recalcInfo.reconnectSmartArtShapes) { + this.recalcInfo.reconnectSmartArtShapes = false; + this.reconnectSmartArtShapes(); + } CGroupShape.prototype.recalculate.call(this); - if (this.bFirstRecalculate) { - this.bFirstRecalculate = false; - this.fitFontSize(); - } + if (this.recalcInfo.fitFontSize) { + this.recalcInfo.fitFontSize = false; + this.fitFontSize(); + } if (oldParaMarks) { editor.ShowParaMarks = oldParaMarks; } @@ -10269,6 +10328,7 @@ Because of this, the display is sometimes not correct. this.readChild(pReader.stream.GetUChar(), pReader); this.readChild(pReader.stream.GetUChar(), pReader); this.readChild(pReader.stream.GetUChar(), pReader); + this.readChild(pReader.stream.GetUChar(), pReader); this.checkNodePointsAfterRead(true); } this.setSpPr(new AscFormat.CSpPr()); @@ -10343,13 +10403,6 @@ Because of this, the display is sometimes not correct. } }; - SmartArt.prototype.startAlgorithm = function (pointTree) { - var layoutDef = this.getLayoutDef(); - if (layoutDef) { - layoutDef.startAlgorithm(pointTree); - } - } - SmartArt.prototype.getShapeMap = function () { var shapes = this.getDrawing() && this.getDrawing().spTree; var shapeMap = {}; @@ -10361,11 +10414,6 @@ Because of this, the display is sometimes not correct. } } - SmartArt.prototype.recalculateSmartArt = function () { - var tree = this.createHierarchy(); - this.startAlgorithm(tree); - } - SmartArt.prototype.getPtMap = function () { var ptLst = this.getPtLst(); var ptMap = {}; @@ -10387,113 +10435,10 @@ Because of this, the display is sometimes not correct. return dataModel && dataModel.getCxnLst() && dataModel.getCxnLst().list; } - SmartArt.prototype.createDataForHierarchy = function () { - var shapeMap = this.getShapeMap(); - var ptMap = this.getPtMap(); - var ptLst = this.getPtLst(); - var cxnLst = this.getCxnLst(); - var elements = []; - var nodePoints = []; - var ptLstWithTypePres = []; - var docPoint; - if (cxnLst && ptLst) { - var connectionsParOf = cxnLst.filter(function (cxn) {return !cxn.type;}); - - ptLst.forEach(function (point) { - if (point.type === Point_type_pres) { - ptLstWithTypePres.push(point); - } else if (!point.type || point.type === Point_type_node || point.type === Point_type_asst) { - nodePoints.push(point); - } else if (point.type === Point_type_doc) { - docPoint = point; - } - }); - - for (var i = 0; i <= nodePoints.length; i += 1) { - var elem = new SmartArtNodeData(); - - if (i === nodePoints.length) { - var mPoint = docPoint; - elem.setDocPoint(mPoint); - - } else { - mPoint = nodePoints[i]; - if (!mPoint.type || mPoint.type === Point_type_node) { - elem.setNodePoint(mPoint); - } else if (mPoint.type === Point_type_asst) { - elem.setAsstPoint(mPoint); - } - } - - connectionsParOf.forEach(function (cxn) { - if (cxn.destId === mPoint.modelId) { - elem.setCxn(cxn); - if (ptMap) { - elem.addToLstSibPoint(0, ptMap[cxn.sibTransId]); - elem.addToLstParPoint(0, ptMap[cxn.parTransId]); - } - } - }); - - ptLstWithTypePres.forEach(function (pointWithTypePres) { - var prSet = pointWithTypePres.prSet; - if (prSet && (prSet.presAssocID === mPoint.modelId || (elem.sibPoint && prSet.presAssocID === elem.sibPoint.modelId) || (elem.parPoint && prSet.presAssocID === elem.parPoint.modelId))) { - elem.addToLstPresPoint(elem.presPoint.length, pointWithTypePres); - if (shapeMap && shapeMap[pointWithTypePres.modelId]) { - elem.addToLstShapes(elem.shapes.length, shapeMap[pointWithTypePres.modelId]); - } - } - }); - elements.push(elem); - } - return elements; - } - } - - SmartArt.prototype.createHierarchy = function () { - var cxnLst = this.getCxnLst(); - - if (cxnLst) { - var cxnWithNoPres = cxnLst.filter(function (cxn) {return !cxn.type;}); - - var elements = this.createDataForHierarchy(); - - var root = elements.reduce(function (acc, next) { - if (next.docPoint) { - return next; - } - return acc; - }, undefined); - - if (root) { - var rootInfo = root.docPoint.modelId; - var tree = new SmartArtTree(rootInfo, root, this); - - cxnWithNoPres = cxnWithNoPres.sort(function (a, b) { - return parseInt(a.srcOrd) - parseInt(b.srcOrd); - }); - for (var i = 0; i < cxnWithNoPres.length; i += 1) { - for (var j = 0; j < cxnWithNoPres.length; j += 1) { - var _cxn = cxnWithNoPres[j]; - var childData = elements.reduce(function (acc, next) { - var nodePoint = next.nodePoint || next.asstPoint; - if (nodePoint && nodePoint.modelId === _cxn.destId) { - return next; - } - return acc; - }, undefined); - tree.add(_cxn.destId, _cxn.srcId, childData); - } - } - } - } - return tree; - } - - SmartArt.prototype.getDefColorsByName = function () { - var colorsDef = this.getColorsDef(); - return colorsDef && colorsDef.styleLblByName; - } + SmartArt.prototype.getDefColorsByName = function () { + var colorsDef = this.getColorsDef(); + return colorsDef && colorsDef.styleLblByName; + } SmartArt.prototype.getDefaultColorsForPoint = function (point) { var styleLbl = point.getPresStyleLbl(); @@ -10514,8 +10459,21 @@ Because of this, the display is sometimes not correct. } SmartArt.prototype.getSmartArtDefaultTxFill = function (shape) { - var shapePoint = shape && shape.getSmartArtShapePoint(); - var defaultTxColorFromShape = shapePoint && this.getDefaultTxColorFromPoint(shapePoint); + const smartArtInfo = shape.getSmartArtInfo(); + if (!smartArtInfo) { + return; + } + let textPoint; + if (this.isCanGenerateSmartArt()) { + const contentNodes = smartArtInfo.contentPoint; + if (contentNodes.length) { + const textNode = contentNodes[0].getTextNode(); + textPoint = textNode && textNode.presPoint; + } + } else { + textPoint = smartArtInfo.shapePoint; + } + var defaultTxColorFromShape = textPoint && this.getDefaultTxColorFromPoint(textPoint); var defaultTxFill; if (defaultTxColorFromShape) { @@ -10525,155 +10483,12 @@ Because of this, the display is sometimes not correct. } SmartArt.prototype.getTypeOfSmartArt = function () { - // Russian name -> type - // - // - // Акцентируемый рисунок -> AccentedPicture - // Баланс -> balance1 - // Блоки рисунков с названиями -> TitledPictureBlocks - // Блоки со смещенными рисунками -> PictureAccentBlocks - // Блочный цикл -> cycle5 - // Венна в столбик -> venn2 - // Вертикальное уравнение -> equation2 - // Вертикальный блочный список -> vList5 - // Вертикальный ломаный процесс -> bProcess4 - // Вертикальный маркированный список -> vList2 - // Вертикальный нелинейный список -> VerticalCurvedList - // Вертикальный процесс -> process2 - // Вертикальный список -> list1 - // Вертикальный список рисунков -> vList4 - // Вертикальный список с кругами -> VerticalCircleList - // Вертикальный список со смещенными рисунками -> vList3 - // Вертикальный список со стрелкой -> vList6 - // Вертикальный уголковый список -> chevron2 - // Вертикальный уголковый список2 -> VerticalAccentList - // Вложенная целевая -> target2 - // Воронка -> funnel1 - // Восходящая стрелка -> arrow2 - // Восходящая стрелка процесса -> IncreasingArrowsProcess - // Восходящий процесс -> StepUpProcess - // Выноска с круглыми рисунками -> CircularPictureCallout - // Горизонтальная иерархия -> hierarchy2 - // Горизонтальная иерархия с подписями -> hierarchy5 - // Горизонтальная многоуровневая иерархия -> HorizontalMultiLevelHierarchy - // Горизонтальная организационная диаграмма -> HorizontalOrganizationChart - // Горизонтальный маркированный список -> hList1 - // Горизонтальный список рисунков -> pList2 - // Закрытый уголковый процесс -> hChevron3 - // Иерархический список -> hierarchy3 - // Иерархия -> hierarchy1 - // Иерархия с круглыми рисунками -> CirclePictureHierarchy - // Иерархия с подписями -> hierarchy6 - // Инвертированная пирамида -> pyramid3 - // Кластер шестиугольников -> HexagonCluster - // Круг связей -> CircleRelationship - // Круглая временная шкала -> CircleAccentTimeline - // Круглый ломаный процесс -> bProcess2 - // Лента со стрелками -> arrow6 - // Линейная Венна -> venn3 - // Линия рисунков -> PictureLineup - // Линия рисунков с названиями -> TitlePictureLineup - // Ломаный список рисунков с подписями -> BendingPictureCaptionList - // Ломаный список со смещенными рисунками -> bList2 - // Матрица с заголовками -> matrix1 - // Нарастающий процесс с кругами -> IncreasingCircleProcess - // Нелинейные рисунки с блоками -> BendingPictureBlocks - // Нелинейные рисунки с подписями -> BendingPictureCaption - // Нелинейные рисунки с полупрозрачным текстом -> BendingPictureSemiTransparentText - // Ненаправленный цикл -> cycle6 - // Непрерывный блочный процесс -> hProcess9 - // Непрерывный список с рисунками -> hList7 - // Непрерывный цикл -> cycle3 - // Нисходящий блочный список -> BlockDescendingList - // Нисходящий процесс -> StepDownProcess - // Обратный список -> ReverseList - // Организационная диаграмма -> orgChart1 - // Организационная диаграмма с именами и должностями -> NameandTitleOrganizationalChart - // Переменный поток -> hProcess4 - // Пирамидальный список -> pyramid2 - // Плюс и минус -> PlusandMinus - // Повторяющийся ломаный процесс -> bProcess3 - // Подписанные рисунки -> CaptionedPictures - // Подробный процесс -> hProcess7 - // Полосы рисунков -> PictureStrips - // Полукруглая организационная диаграмма -> HalfCircleOrganizationChart - // Поэтапный процесс -> PhasedProcess - // Простая Венна -> venn1 - // Простая временная шкала -> hProcess11 - // Простая круговая -> chart3 - // Простая матрица -> matrix3 - // Простая пирамида -> pyramid1 - // Простая радиальная -> radial1 - // Простая целевая -> target1 - // Простой блочный список -> default - // Простой ломаный процесс -> process5 - // Простой процесс -> process1 - // Простой уголковый процесс -> chevron1 - // Простой цикл -> cycle2 - // Противоположные идеи -> OpposingIdeas - // Противостоящие стрелки -> arrow4 - // Процесс от случайности к результату -> RandomtoResultProcess - // Процесс с вложенными шагами -> SubStepProcess - // Процесс с круговой диаграммой -> PieProcess - // Процесс со смещением -> process3 - // Процесс со смещенными по возрастанию рисунками -> AscendingPictureAccentProcess - // Процесс со смещенными рисунками -> hProcess10 - // Радиальная Венна -> radial3 - // Радиальная циклическая -> radial6 - // Радиальный кластер -> RadialCluster - // Радиальный список -> radial2 - // Разнонаправленный цикл -> cycle7 - // Расходящаяся радиальная -> radial5 - // Расходящиеся стрелки -> arrow1 - // Рисунок с текстом в рамке -> FramedTextPicture - // Сгруппированный список -> lProcess2 - // Сегментированная пирамида -> pyramid4 - // Сегментированный процесс -> process4 - // Сегментированный цикл -> cycle8 - // Сетка рисунков -> PictureGrid - // Сетчатая матрица -> matrix2 - // Спираль рисунков -> SpiralPicture - // Список в столбик -> hList9 - // Список названий рисунков -> pList1 - // Список процессов -> lProcess1 - // Список рисунков с выносками -> BubblePictureList - // Список с квадратиками -> SquareAccentList - // Список с линиями -> LinedList - // Список со смещенными рисунками -> hList2 - // Список со смещенными рисунками и заголовком -> PictureAccentList - // Список со снимками -> SnapshotPictureList - // Стрелка непрерывного процесса -> hProcess3 - // Стрелка процесса с кругами -> CircleArrowProcess - // Стрелки процесса -> hProcess6 - // Ступенчатый процесс -> vProcess5 - // Сходящаяся радиальная -> radial4 - // Сходящиеся стрелки -> arrow5 - // Табличная иерархия -> hierarchy4 - // Табличный список -> hList3 - // Текстовый цикл -> cycle1 - // Трапецевидный список -> hList6 - // Убывающий процесс -> DescendingProcess - // Уголковый список -> lProcess3 - // Уравнение -> equation1 - // Уравновешивающие стрелки -> arrow3 - // Целевой список -> target3 - // Циклическая матрица -> cycle4 - // Чередующиеся блоки рисунков -> AlternatingPictureBlocks - // Чередующиеся круги рисунков -> AlternatingPictureCircles - // Чередующиеся шестиугольники -> AlternatingHexagons - // Шестеренки -> gear1 - var dataModel = this.getDataModel() && this.getDataModel().getDataModel(); - var ptLst = dataModel.ptLst.list; + const layoutDef = this.getLayoutDef(); var type; - ptLst.forEach(function (point) { - if (point.type === Point_type_doc) { - if (point.prSet && point.prSet.loTypeId) { - var typeSplit = point.prSet.loTypeId.split('/'); - type = typeSplit[typeSplit.length - 1]; - type = type.split('#')[0]; - } - } - }); + if (layoutDef) { + var typeSplit = layoutDef.uniqueId.split('/'); + type = typeSplit[typeSplit.length - 1].split('#')[0]; + } switch (type) { case "AccentedPicture": { @@ -11371,7 +11186,9 @@ Because of this, the display is sometimes not correct. SmartArt.prototype.setColorsDef = function (oPr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_SmartArtColorsDef, this.getColorsDef(), oPr)); this.colorsDef = oPr; - oPr.setParent(this); + if (oPr) { + oPr.setParent(this); + } }; SmartArt.prototype.setType = function (oPr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeString(this, AscDFH.historyitem_SmartArtType, this.type, oPr)); @@ -11379,23 +11196,31 @@ Because of this, the display is sometimes not correct. }; SmartArt.prototype.setDrawing = function (oPr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_SmartArtDrawing, this.getDrawing(), oPr)); - this.drawing = oPr; - oPr.setParent(this); + this.drawing = oPr; + if (oPr) { + oPr.setParent(this); + } }; SmartArt.prototype.setLayoutDef = function (oPr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_SmartArtLayoutDef, this.getLayoutDef(), oPr)); this.layoutDef = oPr; - oPr.setParent(this); + if (oPr) { + oPr.setParent(this); + } }; SmartArt.prototype.setDataModel = function (oPr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_SmartArtDataModel, this.getDataModel(), oPr)); this.dataModel = oPr; - oPr.setParent(this); + if (oPr) { + oPr.setParent(this); + } }; SmartArt.prototype.setStyleDef = function (oPr) { oHistory.CanAddChanges() && oHistory.Add(new CChangeObject(this, AscDFH.historyitem_SmartArtStyleDef, this.getStyleDef(), oPr)); this.styleDef = oPr; - oPr.setParent(this); + if (oPr) { + oPr.setParent(this); + } }; SmartArt.prototype.getColorsDef = function () { return this.colorsDef; @@ -11435,6 +11260,64 @@ Because of this, the display is sometimes not correct. } }; + SmartArt.prototype.getRelationOfContent2 = function () { + var dataModel = this.getDataModel() && this.getDataModel().getDataModel(); + if (dataModel) { + var connections = {byConnections: {}, custom: {}}; + connections.byConnections[Cxn_type_presOf] = {}; + connections.byConnections[Cxn_type_parOf] = {}; + connections.byConnections[Cxn_type_presParOf] = {}; + connections.custom.presParOfAssocId = {}; + connections.custom.presChildParOf = {}; + var ptMap = this.getPtMap(); + var cxnLst = dataModel.cxnLst.list; + + cxnLst.forEach(function (cxn) { + switch (cxn.type) { + case Cxn_type_presOf: { + const point = ptMap[cxn.srcId]; + connections.byConnections[Cxn_type_presOf][point.getModelId()] = ptMap[cxn.destId]; + break; + } + case Cxn_type_parOf: { + if (!connections.byConnections[Cxn_type_parOf][cxn.srcId]) { + connections.byConnections[Cxn_type_parOf][cxn.srcId] = []; + } + connections.byConnections[Cxn_type_parOf][cxn.srcId].push({ + point : ptMap[cxn.destId], + sibPoint: ptMap[cxn.sibTransId], + parPoint: ptMap[cxn.parTransId], + index: parseInt(cxn.srcOrd, 10) + }); + break; + } + case Cxn_type_presParOf: { + if (!connections.byConnections[Cxn_type_presParOf][cxn.srcId]) { + connections.byConnections[Cxn_type_presParOf][cxn.srcId] = {}; + } + const presPoint = ptMap[cxn.destId]; + connections.byConnections[Cxn_type_presParOf][cxn.srcId][cxn.srcOrd] = ptMap[cxn.destId]; + const presAssocId = presPoint.getPresAssocID(); + if (!connections.custom.presParOfAssocId[presAssocId]) { + connections.custom.presParOfAssocId[presAssocId] = []; + } + connections.custom.presParOfAssocId[presAssocId].push(presPoint); + connections.custom.presChildParOf[cxn.destId] = ptMap[cxn.srcId]; + break; + } + default: + break; + } + }); + for (let id in connections.byConnections[Cxn_type_parOf]) { + connections.byConnections[Cxn_type_parOf][id].sort(function (a, b) { + return a.index - b.index; + }); + } + return connections; + } + }; + SmartArt.prototype.getRelationOfContent = function () { var dataModel = this.getDataModel() && this.getDataModel().getDataModel(); if (dataModel) { @@ -11443,7 +11326,7 @@ Because of this, the display is sometimes not correct. var shapeMap = this.getShapeMap(); var cxnLst = dataModel.cxnLst.list; var presCxnLst = cxnLst.filter(function (cxn) { - return cxn.type === 'presOf'; + return cxn.type === Cxn_type_presOf; }); presCxnLst.forEach(function (cxn) { @@ -11481,7 +11364,7 @@ Because of this, the display is sometimes not correct. var shapeMap = this.getShapeMap(); var cxnLst = dataModel.cxnLst.list; var presCxnLst = cxnLst.filter(function (cxn) { - return cxn.type === 'presOf' || cxn.type === 'presParOf'; + return cxn.type === Cxn_type_presOf || cxn.type === Cxn_type_presParOf; }); presCxnLst.forEach(function (cxn) { @@ -11503,14 +11386,15 @@ Because of this, the display is sometimes not correct. var shapeMap = this.getShapeMap(); var contentConnections = this.getRelationOfContent(); var shapeConnections = this.getRelationOfShapes(); - + const contentNodeRelations = this.smartArtTree.getDataPointRelations(); for (var modelId in shapeMap) { var shape = shapeMap[modelId]; var smartArtInfo = new ShapeSmartArtInfo(); shape.setShapeSmartArtInfo(smartArtInfo); if (contentConnections[modelId]) { contentConnections[modelId].forEach(function (el) { - smartArtInfo.addToLstContentPoint(smartArtInfo.contentPoint.length, el.point); + const contentNode = contentNodeRelations[el.point.getModelId()]; + smartArtInfo.addToLstContentPoint(smartArtInfo.contentPoint.length, contentNode); }); } if (shapeConnections[modelId]) { @@ -11547,6 +11431,7 @@ Because of this, the display is sometimes not correct. switch (nType) { case 0: { this.setDrawing(new Drawing()); + this.drawing.setBDeleted(false); pReader.ReadSmartArtGroup(this.drawing); this.drawing.setGroup(this); this.addToSpTree(0, this.drawing); @@ -11555,7 +11440,6 @@ Because of this, the display is sometimes not correct. case 1: { this.setDataModel(new DiagramData()); this.dataModel.fromPPTY(pReader); - this.setConnections2(); break; } case 2: { @@ -11681,6 +11565,11 @@ Because of this, the display is sometimes not correct. editor.ShowParaMarks = false; } + if (graphics.animationDrawer) { + graphics.animationDrawer.drawObject(this, graphics); + return; + } + if(this.calcGeometry) { graphics.SaveGrState(); graphics.SetIntegerGrid(false); @@ -11733,7 +11622,9 @@ Because of this, the display is sometimes not correct. var RGBA = {R: 0, G: 0, B: 0, A: 255}; this.brush.calculate(oParents.theme, oParents.slide, oParents.layout, oParents.master, RGBA); }; - + SmartArt.prototype.getCompiledFill = function () { + return null; + }; SmartArt.prototype.recalculatePen = function () { this.pen = null; var oWhole = this.getWhole(); @@ -11893,7 +11784,6 @@ Because of this, the display is sometimes not correct. copy.cachedPixW = this.cachedPixW; } copy.setLocks(this.locks); - copy.setConnections2(); return copy; }; SmartArt.prototype.handleUpdateFill = function() { @@ -11934,1373 +11824,23 @@ Because of this, the display is sometimes not correct. } }; SmartArt.prototype.checkNodePointsAfterRead = function(bReplaceAll) { - let tree = this.createHierarchy(); - tree.traverseBF(function (node) { - let nodePoint = node.data && (node.data.nodePoint || node.data.asstPoint); - if (nodePoint) { - if (bReplaceAll) { - nodePoint.setPhldrT('[' + AscCommon.translateManager.getValue('Text') + ']'); - } else { - const oPlaceholderText = nodePoint.getPhldrT(); - if (typeof oPlaceholderText !== 'string') { - nodePoint.setPhldrT(''); - } - } - } - }); - }; - - function SmartArtTree(rootInfo, rootData, parent) { - CBaseFormatObject.call(this); - var child = new SmartArtNode(); - if (rootInfo) { - child.setInfo(rootInfo); - } - if (rootData) { - child.setData(rootData); - } - child.setParent(this); - this.parent = parent; - child.depth = 0; - this.root = child; - } - InitClass(SmartArtTree, CBaseFormatObject, AscDFH.historyitem_type_SmartArtTree); - - SmartArtTree.prototype.traverseDF = function (callback) { - (function recurse(currentNode) { - for (var i = 0; i < currentNode.children.length; i += 1) { - recurse(currentNode.children[i]); - } - callback(currentNode); - })(this.root); - } - SmartArtTree.prototype.setRoot = function (oPr) { - this.root = oPr; - oPr.setParent(this); - } - - SmartArtTree.prototype.traverseBF = function (callback) { - var queue = []; - var currentTree = this.root; - - while (currentTree) { - for (var i = 0; i < currentTree.children.length; i += 1) { - queue.push(currentTree.children[i]); - } - callback(currentTree); - currentTree = queue.shift(); - } - } - - SmartArtTree.prototype.findNodeByNameAndStyleLbl = function (name, styleLbl) { - var layoutNode = []; - function callback(node) { - if (node.data) { - if (name && styleLbl) { - var check = node.data.presPoint.some(function (point) { - if (point.prSet) { - return point.prSet.presName === name && point.prSet.styleLbl === styleLbl; - } - }); - if (check) { - layoutNode.push(node.data); - } - } else if (name) { - var check = node.data.presPoint.some(function (point) { - if (point.prSet) { - return point.prSet.presName === name; - } - }); - if (check) { - layoutNode.push(node.data); - } - } else if (styleLbl) { - var check = node.data.presPoint.some(function (point) { - if (point.prSet) { - return point.prSet.styleLbl === styleLbl; - } - }); - if (check) { - layoutNode.push(node.data); - } - } - } - } - this.contains(callback, true); - return layoutNode; - } - - SmartArtTree.prototype.contains = function (callback, isTraverseDF) { - var traverse = isTraverseDF ? this.traverseDF : this.traverseBF; - traverse.call(this, callback); - } - - SmartArtTree.prototype.add = function (childInfo, parentInfo, childData, isTraverseDF) { - var traverse = isTraverseDF ? this.traverseDF : this.traverseBF; - var parent; - - var callback = function (node) { - if (node.info === parentInfo) { - parent = node; - } - }; - this.contains(callback, traverse === this.traverseDF); - - if (parent) { - var parentHaveChild = parent.children.some(function (ch) { - return ch.info === childInfo; - }); - if (!parentHaveChild) { - var child = new SmartArtNode(); - if (childInfo) { - child.setInfo(childInfo); - } - if (childData) { - child.setData(childData); - } - parent.addToLstChildren(parent.children.length, child); - } - } + //todo + // let tree = this.createHierarchy(); + // tree.traverseBF(function (node) { + // let nodePoint = node.data && (node.data.nodePoint || node.data.asstPoint); + // if (nodePoint) { + // if (bReplaceAll) { + // nodePoint.setPhldrT('[' + AscCommon.translateManager.getValue('Text') + ']'); + // } else { + // const oPlaceholderText = nodePoint.getPhldrT(); + // if (typeof oPlaceholderText !== 'string') { + // nodePoint.setPhldrT(''); + // } + // } + // } + // }); }; - SmartArtTree.prototype.remove = function (node, parent) { - - } - - function SmartArtNode() { - CBaseFormatObject.call(this); - this.info = null; - this.data = null; - this.children = []; - this.depth = null; - } - InitClass(SmartArtNode, CBaseFormatObject, AscDFH.historyitem_type_SmartArtNode); - - SmartArtNode.prototype.setInfo = function (oPr) { - this.info = oPr; - } - - SmartArtNode.prototype.getInfo = function () { - return this.info; - } - - SmartArtNode.prototype.setData = function (oPr) { - this.data = oPr; - oPr.setParent(this); - } - - SmartArtNode.prototype.getData = function () { - return this.data; - } - - SmartArtNode.prototype.addToLstChildren = function (nIdx, oPr) { - var nInsertIdx = Math.min(this.children.length, Math.max(0, nIdx)); - nInsertIdx === this.children.length ? this.children.push(oPr) : this.children.splice(nInsertIdx, 0, oPr); - oPr.depth = this.depth + 1; - oPr.setParent(this); - } - - SmartArtNode.prototype.removeFromLstChildren = function (nIdx) { - if (nIdx > -1 && nIdx < this.children.length) { - this.children[nIdx].setParent(null); - nIdx === this.children.length - 1 ? this.children.pop() : this.children.splice(nIdx, 1); - } - } - - SmartArtNode.prototype.getAxis = function (axisType) { - switch (axisType) { - case AxisType_value_ancst: - return this.getAncst(); - case AxisType_value_ancstOrSelf: - return this.getAncstOrSelf(); - case AxisType_value_ch: - return this.getCh(); - case AxisType_value_des: - return this.getDes(); - case AxisType_value_desOrSelf: - return this.getDesOrSelf(); - case AxisType_value_follow: - return this.getFollow(); - case AxisType_value_followSib: - return this.getFollowSib(); - case AxisType_value_none: - return this.getNone(); - case AxisType_value_par: - return this.getPar(); - case AxisType_value_preced: - return this.getPreced(); - case AxisType_value_precedSib: - return this.getPrecedSib(); - case AxisType_value_root: - return this.getRoot(); - case AxisType_value_self: - return this.getSelf(); - default: - return; - - } - } - - SmartArtNode.prototype.getAncst = function () { - var ancestors = []; - var root = this; - while (!(root instanceof SmartArtTree)) { - if (root !== this) { - ancestors.unshift(root); - } - root = root.parent; - } - return ancestors; - } - - SmartArtNode.prototype.getAncstOrSelf = function () { - return this.getAncst().concat(this.getSelf()); - } - - SmartArtNode.prototype.getCh = function () { - return this.children; - } - - SmartArtNode.prototype.getDes = function () { - var descendant = []; - (function recurse(context) { - context.children.forEach(function (children) { - descendant.push(children); - recurse(children); - }); - })(this); - return descendant; - } - - SmartArtNode.prototype.getDesOrSelf = function () { - return this.getSelf().concat(this.getDes()); - } - - SmartArtNode.prototype.getFollow = function () { - if (this.parent instanceof SmartArtTree) { - return; - } - var follow = []; - var followSib = this.getFollowSib(); - followSib.forEach(function (follower) { - follow = follow.concat(follower.getDesOrSelf()); - }); - return follow; - } - - SmartArtNode.prototype.getFollowSib = function () { - if (this.parent instanceof SmartArtTree) { - return; - } - var followSib = []; - var isFollowSib; - var parent = this.parent; - var childs = parent.children; - for (var i = 0; i < childs.length; i += 1) { - var child = childs[i]; - if (isFollowSib) { - followSib.push(child); - } - if (this === child) { - isFollowSib = true; - } - } - return followSib; - } - - SmartArtNode.prototype.getNone = function () { - return []; - } - - SmartArtNode.prototype.getPar = function () { - return [this.parent]; - } - - SmartArtNode.prototype.getPreced = function () { - if (this.parent instanceof SmartArtTree) { - return; - } - var preced = []; - var precedSib = this.getPrecedSib(); - precedSib.forEach(function (preceder) { - preced = preced.concat(preceder.getDesOrSelf()); - }); - return preced; - } - - SmartArtNode.prototype.getPrecedSib = function () { - if (this.parent instanceof SmartArtTree) { - return; - } - var precedSib = []; - var isPrecedSib; - var parent = this.parent; - var childs = parent.children; - for (var i = childs.length - 1; i >= 0; i -= 1) { - var child = childs[i]; - if (isPrecedSib) { - precedSib.push(child); - } - if (this === child) { - isPrecedSib = true; - } - } - return precedSib; - } - - SmartArtNode.prototype.getRoot = function () { - var root = this; - while (!(root instanceof SmartArtTree)) { - root = root.parent; - } - return [root.root]; - } - - SmartArtNode.prototype.getSelf = function () { - return [this]; - } - - SmartArtNode.prototype.getPoints = function (ptType, name) { - var points = []; - if (this.data) { - switch (ptType) { - case ElementType_value_all: - points = this.data.getAllPoints(); - break; - case ElementType_value_asst: - points = this.data.getAsstPoint(); - break; - case ElementType_value_node: - points = this.data.getNodePoint(); - break; - case ElementType_value_doc: - points = this.data.getDocPoint(); - break; - case ElementType_value_norm: - points = this.data.getNormPoint(); - break; - case ElementType_value_nonAsst: - points = this.data.getNonAsstPoint(); - break; - case ElementType_value_nonNorm: - points = this.data.getNonNormPoint(); - break; - case ElementType_value_parTrans: - points = this.data.getParPoint(); - break; - case ElementType_value_pres: - points = this.data.getPresPoint(); - break; - case ElementType_value_sibTrans: - points = this.data.getSibPoint(); - break; - default: - points = this.data.getAllPoints(); - break; - } - if (name) { - return points.filter(function (point) { - return point && point.prSet && point.prSet.presName && point.prSet.presName === name; - }); - } - } - return points; - } - - SmartArtNode.prototype.getShape = function (name, ptType) { - var points; - if (ptType) { - points = this.getPoints(ptType, name); - } else { - points = this.getPoints(ElementType_value_all, name); - } - points = points.map(function (point) { - return point.getShape(name); - }).filter(function (shape) { - return !!shape; - }); - return points; - } - - function SmartArtNodeData() { - CBaseFormatObject.call(this); - this.cxn = null; - this.sibPoint = []; - this.parPoint = []; - this.docPoint = null; - this.nodePoint = null; - this.normPoint = []; - this.asstPoint = null; - this.presPoint = []; - this.shapes = []; - } - InitClass(SmartArtNodeData, CBaseFormatObject, AscDFH.historyitem_type_SmartArtNodeData); - - SmartArtNodeData.prototype.setSibPoint = function (oPr) { - this.sibPoint = oPr; - } - - SmartArtNodeData.prototype.addToLstSibPoint = function (nIdx, oPr) { - var nInsertIdx = Math.min(this.sibPoint.length, Math.max(0, nIdx)); - nInsertIdx === this.sibPoint.length ? this.sibPoint.push(oPr) : this.sibPoint.splice(nInsertIdx, 0, oPr); - } - - SmartArtNodeData.prototype.addToLstNormPoint = function (nIdx, oPr) { - var nInsertIdx = Math.min(this.normPoint.length, Math.max(0, nIdx)); - nInsertIdx === this.normPoint.length ? this.normPoint.push(oPr) : this.normPoint.splice(nInsertIdx, 0, oPr); - } - - SmartArtNodeData.prototype.addToLstParPoint = function (nIdx, oPr) { - var nInsertIdx = Math.min(this.parPoint.length, Math.max(0, nIdx)); - nInsertIdx === this.parPoint.length ? this.parPoint.push(oPr) : this.parPoint.splice(nInsertIdx, 0, oPr); - } - - SmartArtNodeData.prototype.setDocPoint = function (oPr) { - this.docPoint = oPr; - } - - SmartArtNodeData.prototype.addToLstAsstPoint = function (nIdx, oPr) { - var nInsertIdx = Math.min(this.asstPoint.length, Math.max(0, nIdx)); - nInsertIdx === this.asstPoint.length ? this.asstPoint.push(oPr) : this.asstPoint.splice(nInsertIdx, 0, oPr); - } - - SmartArtNodeData.prototype.setAsstPoint = function (oPr) { - this.asstPoint = oPr; - } - - SmartArtNodeData.prototype.setNodePoint = function (oPr) { - this.nodePoint = oPr; - } - - SmartArtNodeData.prototype.getPresPoint = function () { - return this.presPoint; - } - - SmartArtNodeData.prototype.getAllPoints = function () { - var typeOfPoints = ['sibPoint', 'parPoint', 'docPoint', 'normPoint', 'nodePoint', 'asstPoint', 'presPoint']; - var result = []; - var that = this; - typeOfPoints.forEach(function (pointType) { - result = result.concat(!!that[pointType] ? that[pointType] : []); - }); - return result; - } - - SmartArtNodeData.prototype.getDocPoint = function () { - return this.docPoint ? [this.docPoint] : []; - } - - SmartArtNodeData.prototype.getNodePoint = function () { - return this.nodePoint ? [this.nodePoint] : []; - } - - SmartArtNodeData.prototype.getAsstPoint = function () { - return this.asstPoint; - } - - SmartArtNodeData.prototype.getNormPoint = function () { - return this.normPoint; - } - - SmartArtNodeData.prototype.getParPoint = function () { - return this.parPoint; - } - - SmartArtNodeData.prototype.getNonAsstPoint = function () { - return this.getAllPoints().filter(function (point) { - return point.type !== Point_type_asst; - }); - } - - SmartArtNodeData.prototype.getNonNormPoint = function () { - var typeOfPoints = ['sibPoint', 'parPoint', 'docPoint', 'nodePoint', 'asstPoint']; - var result = []; - var that = this; - typeOfPoints.forEach(function (pointType) { - result = result.concat(that[pointType]); - }); - return result; - } - - SmartArtNodeData.prototype.getSibPoint = function () { - return this.sibPoint; - } - - SmartArtNodeData.prototype.setCxn = function (oPr) { - this.cxn = oPr; - } - SmartArtNodeData.prototype.getCxn = function () { - return this.cxn; - } - - SmartArtNodeData.prototype.setParPoint = function (oPr) { - this.parPoint = oPr; - } - - SmartArtNodeData.prototype.getParPoint = function () { - return this.parPoint; - } - - - SmartArtNodeData.prototype.addToLstShapes = function (nIdx, oPr) { - var nInsertIdx = Math.min(this.shapes.length, Math.max(0, nIdx)); - nInsertIdx === this.shapes.length ? this.shapes.push(oPr) : this.shapes.splice(nInsertIdx, 0, oPr); - } - - SmartArtNodeData.prototype.removeFromLstShapes = function (nIdx) { - if (nIdx > -1 && nIdx < this.shapes.length) { - this.shapes[nIdx].setParent(null); - nIdx === this.shapes.length - 1 ? this.shapes.pop() : this.shapes.splice(nIdx, 1); - } - } - - SmartArtNodeData.prototype.addToLstPresPoint = function (nIdx, oPr) { - var nInsertIdx = Math.min(this.presPoint.length, Math.max(0, nIdx)); - nInsertIdx === this.presPoint.length ? this.presPoint.push(oPr) : this.presPoint.splice(nInsertIdx, 0, oPr); - } - - SmartArtNodeData.prototype.removeFromLstPresPoint = function (nIdx) { - if (nIdx > -1 && nIdx < this.presPoint.length) { - this.presPoint[nIdx].setParent(null); - nIdx === this.presPoint.length - 1 ? this.presPoint.pop() : this.presPoint.splice(nIdx, 1); - } - } - - SmartArtNodeData.prototype.getPresByNameAndStyleLbl = function (name, styleLbl) { - var presValue; - this.presPoint.forEach(function (pres) { - if (pres.prSet) { - if (name && styleLbl) { - if (pres.prSet.presName === name && pres.prSet.styleLbl === styleLbl) { - presValue = pres; - } - } else if (name) { - if (pres.prSet.presName === name) { - presValue = pres; - } - } else if (styleLbl) { - if (pres.prSet.styleLbl === styleLbl) { - presValue = pres; - } - } - } - }); - return presValue; - } - - SmartArtNodeData.prototype.getPresWithVarLst = function () { - for (var i = 0; i < this.presPoint.length; i += 1) { - var pres = this.presPoint[i]; - if (pres && pres.prSet && pres.prSet.presLayoutVars) { - return pres; - } - } - } - - // Акцентируемый рисунок - function SmartArtAccentedPicture() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtAccentedPicture, SmartArt); - - // Баланс - function SmartArtBalance1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBalance1, SmartArt); - - // Блоки рисунков с названиями - function SmartArtTitledPictureBlocks() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtTitledPictureBlocks, SmartArt); - - // Блоки со смещенными рисунками - function SmartArtPictureAccentBlocks() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPictureAccentBlocks, SmartArt); - // Блочный цикл - function SmartArtCycle5() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCycle5, SmartArt); - - // Венна в столбик - function SmartArtVenn2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVenn2, SmartArt); - - // Вертикальное уравнение - function SmartArtEquation2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtEquation2, SmartArt); - - // Вертикальный блочный список - function SmartArtVList5() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVList5, SmartArt); - - // Вертикальный ломаный процесс - function SmartArtBProcess4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBProcess4, SmartArt); - - // Вертикальный маркированный список - function SmartArtVList2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVList2, SmartArt); - - // Вертикальный нелинейный список - function SmartArtVerticalCurvedList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVerticalCurvedList, SmartArt); - - // Вертикальный процесс - function SmartArtProcess2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtProcess2, SmartArt); - - // Вертикальный список - function SmartArtList1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtList1, SmartArt); - - // Вертикальный список рисунков - function SmartArtVList4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVList4, SmartArt); - - // Вертикальный список с кругами - function SmartArtVerticalCircleList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVerticalCircleList, SmartArt); - - // Вертикальный список со смещенными рисунками - function SmartArtVList3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVList3, SmartArt); - - // Вертикальный список со стрелкой - function SmartArtVList6() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVList6, SmartArt); - - // Вертикальный уголковый список - function SmartArtChevron2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtChevron2, SmartArt); - - // Вертикальный уголковый список2 - function SmartArtVerticalAccentList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVerticalAccentList, SmartArt); - - // Вложенная целевая - function SmartArtTarget2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtTarget2, SmartArt); - - // Воронка - function SmartArtFunnel1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtFunnel1, SmartArt); - - // Восходящая стрелка - function SmartArtArrow2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtArrow2, SmartArt); - - // Восходящая стрелка процесса - function SmartArtIncreasingArrowsProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtIncreasingArrowsProcess, SmartArt); - - // Восходящий процесс - function SmartArtStepUpProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtStepUpProcess, SmartArt); - - // Выноска с круглыми рисунками - function SmartArtCircularPictureCallout() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCircularPictureCallout, SmartArt); - - // Горизонтальная иерархия - function SmartArtHierarchy2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHierarchy2, SmartArt); - - // Горизонтальная иерархия с подписями - function SmartArtHierarchy5() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHierarchy5, SmartArt); - - // Горизонтальная многоуровневая иерархия - function SmartArtHorizontalMultiLevelHierarchy() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHorizontalMultiLevelHierarchy, SmartArt); - - // Горизонтальная организационная диаграмма - function SmartArtHorizontalOrganizationChart() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHorizontalOrganizationChart, SmartArt); - - // Горизонтальный маркированный список - function SmartArtHList1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHList1, SmartArt); - - // Горизонтальный список рисунков - function SmartArtPList2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPList2, SmartArt); - - // Закрытый уголковый процесс - function SmartArtHChevron3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHChevron3, SmartArt); - - // Иерархический список - function SmartArtHierarchy3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHierarchy3, SmartArt); - - // Иерархия - function SmartArtHierarchy1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHierarchy1, SmartArt); - - // Иерархия с круглыми рисунками - function SmartArtCirclePictureHierarchy() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCirclePictureHierarchy, SmartArt); - - // Иерархия с подписями - function SmartArtHierarchy6() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHierarchy6, SmartArt); - - // Инвертированная пирамида - function SmartArtPyramid3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPyramid3, SmartArt); - - // Кластер шестиугольников - function SmartArtHexagonCluster() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHexagonCluster, SmartArt); - - // Круг связей - function SmartArtCircleRelationship() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCircleRelationship, SmartArt); - - // Круглая временная шкала - function SmartArtCircleAccentTimeline() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCircleAccentTimeline, SmartArt); - - // Круглый ломаный процесс - function SmartArtBProcess2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBProcess2, SmartArt); - - // Лента со стрелками - function SmartArtArrow6() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtArrow6, SmartArt); - - // Линейная Венна - function SmartArtVenn3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVenn3, SmartArt); - - // Линия рисунков - function SmartArtPictureLineup() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPictureLineup, SmartArt); - - // Линия рисунков с названиями - function SmartArtTitlePictureLineup() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtTitlePictureLineup, SmartArt); - - // Ломаный список рисунков с подписями - function SmartArtBendingPictureCaptionList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBendingPictureCaptionList, SmartArt); - - // Ломаный список со смещенными рисунками - function SmartArtBList2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBList2, SmartArt); - - // Матрица с заголовками - function SmartArtMatrix1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtMatrix1, SmartArt); - - // Нарастающий процесс с кругами - function SmartArtIncreasingCircleProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtIncreasingCircleProcess, SmartArt); - - // Нелинейные рисунки с блоками - function SmartArtBendingPictureBlocks() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBendingPictureBlocks, SmartArt); - - // Нелинейные рисунки с подписями - function SmartArtBendingPictureCaption() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBendingPictureCaption, SmartArt); - - // Нелинейные рисунки с полупрозрачным текстом - function SmartArtBendingPictureSemiTransparentText() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBendingPictureSemiTransparentText, SmartArt); - - // Ненаправленный цикл - function SmartArtCycle6() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCycle6, SmartArt); - - // Непрерывный блочный процесс - function SmartArtHProcess9() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHProcess9, SmartArt); - - // Непрерывный список с рисунками - function SmartArtHList7() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHList7, SmartArt); - - // Непрерывный цикл - function SmartArtCycle3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCycle3, SmartArt); - - // Нисходящий блочный список - function SmartArtBlockDescendingList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBlockDescendingList, SmartArt); - - // Нисходящий процесс - function SmartArtStepDownProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtStepDownProcess, SmartArt); - - // Обратный список - function SmartArtReverseList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtReverseList, SmartArt); - - // Организационная диаграмма - function SmartArtOrgChart1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtOrgChart1, SmartArt); - - // Организационная диаграмма с именами и должностями - function SmartArtNameandTitleOrganizationalChart() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtNameandTitleOrganizationalChart, SmartArt); - - // Переменный поток - function SmartArtHProcess4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHProcess4, SmartArt); - - // Пирамидальный список - function SmartArtPyramid2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPyramid2, SmartArt); - - // Плюс и минус - function SmartArtPlusandMinus() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPlusandMinus, SmartArt); - - // Повторяющийся ломаный процесс - function SmartArtBProcess3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBProcess3, SmartArt); - - // Подписанные рисунки - function SmartArtCaptionedPictures() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCaptionedPictures, SmartArt); - - // Подробный процесс - function SmartArtHProcess7() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHProcess7, SmartArt); - - // Полосы рисунков - function SmartArtPictureStrips() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPictureStrips, SmartArt); - - // Полукруглая организационная диаграмма - function SmartArtHalfCircleOrganizationChart() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHalfCircleOrganizationChart, SmartArt); - - // Поэтапный процесс - function SmartArtPhasedProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPhasedProcess, SmartArt); - - // Простая Венна - function SmartArtVenn1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVenn1, SmartArt); - - // Простая временная шкала - function SmartArtHProcess11() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHProcess11, SmartArt); - - // Простая круговая - function SmartArtChart3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtChart3, SmartArt); - - // Простая матрица - function SmartArtMatrix3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtMatrix3, SmartArt); - - // Простая пирамида - function SmartArtPyramid1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPyramid1, SmartArt); - - // Простая радиальная - function SmartArtRadial1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtRadial1, SmartArt); - - // Простая целевая - function SmartArtTarget1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtTarget1, SmartArt); - - // Простой блочный список - function SmartArtDefault() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtDefault, SmartArt); - - // Простой ломаный процесс - function SmartArtProcess5() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtProcess5, SmartArt); - - // Простой процесс - function SmartArtProcess1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtProcess1, SmartArt); - - // Простой уголковый процесс - function SmartArtChevron1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtChevron1, SmartArt); - - // Простой цикл - function SmartArtCycle2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCycle2, SmartArt); - - // Противоположные идеи - function SmartArtOpposingIdeas() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtOpposingIdeas, SmartArt); - - // Противостоящие стрелки - function SmartArtArrow4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtArrow4, SmartArt); - - // Процесс от случайности к результату - function SmartArtRandomtoResultProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtRandomtoResultProcess, SmartArt); - - // Процесс с вложенными шагами - function SmartArtSubStepProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtSubStepProcess, SmartArt); - - // Процесс с круговой диаграммой - function SmartArtPieProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPieProcess, SmartArt); - - // Процесс со смещением - function SmartArtProcess3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtProcess3, SmartArt); - - // Процесс со смещенными по возрастанию рисунками - function SmartArtAscendingPictureAccentProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtAscendingPictureAccentProcess, SmartArt); - - // Процесс со смещенными рисунками - function SmartArtHProcess10() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHProcess10, SmartArt); - - // Радиальная Венна - function SmartArtRadial3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtRadial3, SmartArt); - - // Радиальная циклическая - function SmartArtRadial6() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtRadial6, SmartArt); - - // Радиальный кластер - function SmartArtRadialCluster() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtRadialCluster, SmartArt); - - // Радиальный список - function SmartArtRadial2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtRadial2, SmartArt); - - // Разнонаправленный цикл - function SmartArtCycle7() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCycle7, SmartArt); - - // Расходящаяся радиальная - function SmartArtRadial5() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtRadial5, SmartArt); - - // Расходящиеся стрелки - function SmartArtArrow1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtArrow1, SmartArt); - - // Рисунок с текстом в рамке - function SmartArtFramedTextPicture() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtFramedTextPicture, SmartArt); - - // Сгруппированный список - function SmartArtLProcess2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtLProcess2, SmartArt); - - // Сегментированная пирамида - function SmartArtPyramid4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPyramid4, SmartArt); - - // Сегментированный процесс - function SmartArtProcess4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtProcess4, SmartArt); - - // Сегментированный цикл - function SmartArtCycle8() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCycle8, SmartArt); - - // Сетка рисунков - function SmartArtPictureGrid() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPictureGrid, SmartArt); - - // Сетчатая матрица - function SmartArtMatrix2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtMatrix2, SmartArt); - - // Спираль рисунков - function SmartArtSpiralPicture() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtSpiralPicture, SmartArt); - - // Список в столбик - function SmartArtHList9() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHList9, SmartArt); - - // Список названий рисунков - function SmartArtPList1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPList1, SmartArt); - - // Список процессов - function SmartArtLProcess1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtLProcess1, SmartArt); - - // Список рисунков с выносками - function SmartArtBubblePictureList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtBubblePictureList, SmartArt); - - // Список с квадратиками - function SmartArtSquareAccentList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtSquareAccentList, SmartArt); - - // Список с линиями - function SmartArtLinedList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtLinedList, SmartArt); - - // Список со смещенными рисунками - function SmartArtHList2() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHList2, SmartArt); - - // Список со смещенными рисунками и заголовком - function SmartArtPictureAccentList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtPictureAccentList, SmartArt); - - // Список со снимками - function SmartArtSnapshotPictureList() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtSnapshotPictureList, SmartArt); - - // Стрелка непрерывного процесса - function SmartArtHProcess3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHProcess3, SmartArt); - - // Стрелка процесса с кругами - function SmartArtCircleArrowProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCircleArrowProcess, SmartArt); - - // Стрелки процесса - function SmartArtHProcess6() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHProcess6, SmartArt); - - // Ступенчатый процесс - function SmartArtVProcess5() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtVProcess5, SmartArt); - - // Сходящаяся радиальная - function SmartArtRadial4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtRadial4, SmartArt); - - // Сходящиеся стрелки - function SmartArtArrow5() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtArrow5, SmartArt); - - // Табличная иерархия - function SmartArtHierarchy4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHierarchy4, SmartArt); - - // Табличный список - function SmartArtHList3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHList3, SmartArt); - - // Текстовый цикл - function SmartArtCycle1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCycle1, SmartArt); - - // Трапецевидный список - function SmartArtHList6() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtHList6, SmartArt); - - // Убывающий процесс - function SmartArtDescendingProcess() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtDescendingProcess, SmartArt); - - // Уголковый список - function SmartArtLProcess3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtLProcess3, SmartArt); - - // Уравнение - function SmartArtEquation1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtEquation1, SmartArt); - - // Уравновешивающие стрелки - function SmartArtArrow3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtArrow3, SmartArt); - - // Целевой список - function SmartArtTarget3() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtTarget3, SmartArt); - - // Циклическая матрица - function SmartArtCycle4() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtCycle4, SmartArt); - - // Чередующиеся блоки рисунков - function SmartArtAlternatingPictureBlocks() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtAlternatingPictureBlocks, SmartArt); - - // Чередующиеся круги рисунков - function SmartArtAlternatingPictureCircles() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtAlternatingPictureCircles, SmartArt); - - // Чередующиеся шестиугольники - function SmartArtAlternatingHexagons() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtAlternatingHexagons, SmartArt); - - // Шестеренки - function SmartArtGear1() { - SmartArt.call(this); - } - InitClassWithoutType(SmartArtGear1, SmartArt); - - window['AscFormat'] = window['AscFormat'] || {}; window['AscFormat'].kForInsFitFontSize = kForInsFitFontSize; @@ -13318,8 +11858,6 @@ Because of this, the display is sometimes not correct. window['AscFormat'].LayoutDef = LayoutDef; window['AscFormat'].CatLst = CatLst; window['AscFormat'].SCat = SCat; - window['AscFormat'].ClrData = ClrData; - window['AscFormat'].Desc = Desc; window['AscFormat'].LayoutNode = LayoutNode; window['AscFormat'].Alg = Alg; window['AscFormat'].Param = Param; @@ -13351,12 +11889,6 @@ Because of this, the display is sometimes not correct. window['AscFormat'].ColorsDef = ColorsDef; window['AscFormat'].ColorDefStyleLbl = ColorDefStyleLbl; window['AscFormat'].ClrLst = ClrLst; - window['AscFormat'].EffectClrLst = EffectClrLst; - window['AscFormat'].FillClrLst = FillClrLst; - window['AscFormat'].LinClrLst = LinClrLst; - window['AscFormat'].TxEffectClrLst = TxEffectClrLst; - window['AscFormat'].TxFillClrLst = TxFillClrLst; - window['AscFormat'].TxLinClrLst = TxLinClrLst; window['AscFormat'].ColorsDefHdr = ColorsDefHdr; window['AscFormat'].ColorsDefHdrLst = ColorsDefHdrLst; window['AscFormat'].StyleDef = StyleDef; @@ -13377,7 +11909,6 @@ Because of this, the display is sometimes not correct. window['AscFormat'].StyleDefHdrLst = StyleDefHdrLst; window['AscFormat'].StyleDefHdr = StyleDefHdr; window['AscFormat'].BackdropAnchor = BackdropAnchor; - window['AscFormat'].StyleData = StyleData; window['AscFormat'].SampData = SampData; window['AscFormat'].ForEach = ForEach; window['AscFormat'].ResizeHandles = ResizeHandles; @@ -13388,15 +11919,11 @@ Because of this, the display is sometimes not correct. window['AscFormat'].ExtrusionClr = ExtrusionClr; window['AscFormat'].ContourClr = ContourClr; window['AscFormat'].SmartArt = SmartArt; - window['AscFormat'].CCommonDataClrList = CCommonDataClrList; window['AscFormat'].BuNone = BuNone; window['AscFormat'].Drawing = Drawing; window['AscFormat'].DiagramData = DiagramData; window['AscFormat'].FunctionValue = FunctionValue; window['AscFormat'].ShapeSmartArtInfo = ShapeSmartArtInfo; - window['AscFormat'].SmartArtTree = SmartArtTree; - window['AscFormat'].SmartArtNode = SmartArtNode; - window['AscFormat'].SmartArtNodeData = SmartArtNodeData; window['AscFormat'].Point_type_asst = Point_type_asst; window['AscFormat'].Point_type_doc = Point_type_doc; @@ -13513,11 +12040,6 @@ Because of this, the display is sometimes not correct. window['AscFormat'].If_op_gte = If_op_gte; window['AscFormat'].If_op_lte = If_op_lte; - window['AscFormat'].boolOperator_none = boolOperator_none; - window['AscFormat'].boolOperator_equ = boolOperator_equ; - window['AscFormat'].boolOperator_gte = boolOperator_gte; - window['AscFormat'].boolOperator_lte = boolOperator_lte; - window['AscFormat'].If_func_cnt = If_func_cnt; window['AscFormat'].If_func_depth = If_func_depth; window['AscFormat'].If_func_maxDepth = If_func_maxDepth; @@ -14000,10 +12522,10 @@ Because of this, the display is sometimes not correct. window['AscFormat'].ParameterVal_connectorRouting_stra = ParameterVal_connectorRouting_stra; window['AscFormat'].ParameterVal_continueDirection_revDir = ParameterVal_continueDirection_revDir; window['AscFormat'].ParameterVal_continueDirection_sameDir = ParameterVal_continueDirection_sameDir; - window['AscFormat'].ParameterVal_diagramHorizontalAlignment_ctr = ParameterVal_diagramHorizontalAlignment_ctr; - window['AscFormat'].ParameterVal_diagramHorizontalAlignment_l = ParameterVal_diagramHorizontalAlignment_l; - window['AscFormat'].ParameterVal_diagramHorizontalAlignment_none = ParameterVal_diagramHorizontalAlignment_none; - window['AscFormat'].ParameterVal_diagramHorizontalAlignment_r = ParameterVal_diagramHorizontalAlignment_r; + window['AscFormat'].ParameterVal_horizontalAlignment_ctr = ParameterVal_horizontalAlignment_ctr; + window['AscFormat'].ParameterVal_horizontalAlignment_l = ParameterVal_horizontalAlignment_l; + window['AscFormat'].ParameterVal_horizontalAlignment_none = ParameterVal_horizontalAlignment_none; + window['AscFormat'].ParameterVal_horizontalAlignment_r = ParameterVal_horizontalAlignment_r; window['AscFormat'].ParameterVal_diagramTextAlignment_ctr = ParameterVal_diagramTextAlignment_ctr; window['AscFormat'].ParameterVal_diagramTextAlignment_l = ParameterVal_diagramTextAlignment_l; window['AscFormat'].ParameterVal_diagramTextAlignment_r = ParameterVal_diagramTextAlignment_r; @@ -14065,7 +12587,7 @@ Because of this, the display is sometimes not correct. window['AscFormat'].ParameterVal_textAnchorHorizontal_none = ParameterVal_textAnchorHorizontal_none; window['AscFormat'].ParameterVal_textAnchorVertical_b = ParameterVal_textAnchorVertical_b; window['AscFormat'].ParameterVal_textAnchorVertical_mid = ParameterVal_textAnchorVertical_mid; - window['AscFormat'].ParameterVal_textAnchorVertical_top = ParameterVal_textAnchorVertical_top; + window['AscFormat'].ParameterVal_textAnchorVertical_t = ParameterVal_textAnchorVertical_t; window['AscFormat'].ParameterVal_textBlockDirection_horz = ParameterVal_textBlockDirection_horz; window['AscFormat'].ParameterVal_textBlockDirection_vert = ParameterVal_textBlockDirection_vert; window['AscFormat'].ParameterVal_textDirection_fromB = ParameterVal_textDirection_fromB; @@ -14101,4 +12623,8 @@ Because of this, the display is sometimes not correct. window['AscFormat'].EChOrder_chOrderB = EChOrder_chOrderB; window['AscFormat'].EChOrder_chOrderT = EChOrder_chOrderT; + window['AscCommon'].smartArtContentFillingType_parentWithChildren = smartArtContentFillingType_parentWithChildren; + window['AscCommon'].smartArtContentFillingType_onlyChildren = smartArtContentFillingType_onlyChildren; + window['AscCommon'].smartArtContentFillingType_onlyParent = smartArtContentFillingType_onlyParent; + })(window) diff --git a/common/Drawings/Format/DrawingContent.js b/common/Drawings/Format/DrawingContent.js index 30f35f92ff..103bbfc39e 100644 --- a/common/Drawings/Format/DrawingContent.js +++ b/common/Drawings/Format/DrawingContent.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -789,7 +789,8 @@ var oShape = this.Parent.parent; var contentPoints = oShape.getSmartArtPointContent(); if (contentPoints && contentPoints.length !== 0) { - var isPhldr = contentPoints.every(function (point) { + var isPhldr = contentPoints.every(function (node) { + const point = node.point; return point && point.prSet && point.prSet.phldr; }); if (isPhldr) { diff --git a/common/Drawings/Format/Format.js b/common/Drawings/Format/Format.js index 8879b8430f..fc182444e9 100644 --- a/common/Drawings/Format/Format.js +++ b/common/Drawings/Format/Format.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -70,6 +70,7 @@ var CChangesDrawingsContentLong = AscDFH.CChangesDrawingsContentLong; var CChangesDrawingsContentLongMap = AscDFH.CChangesDrawingsContentLongMap; var CChangesDrawingsContent = AscDFH.CChangesDrawingsContent; + var CChangesDrawingsDouble2 = AscDFH.CChangesDrawingsDouble2; @@ -714,6 +715,9 @@ drawingContentChanges[AscDFH.historyitem_ThemeRemoveExtraClrScheme] = function (oClass) { return oClass.extraClrSchemeLst; }; + drawingContentChanges[AscDFH.historyitem_CustomPropertiesAddProperty] = function (oClass) { + return oClass.properties; + }; drawingConstructorsMap[AscDFH.historyitem_ClrMap_SetClr] = CUniColor; @@ -733,7 +737,7 @@ drawingConstructorsMap[AscDFH.historyitem_CNvPr_SetHlinkClick] = CT_Hyperlink; drawingConstructorsMap[AscDFH.historyitem_CNvPr_SetHlinkHover] = CT_Hyperlink; - + drawingConstructorsMap[AscDFH.historyitem_CustomPropertiesAddProperty] = CCustomProperty; AscDFH.changesFactory[AscDFH.historyitem_DefaultShapeDefinition_SetSpPr] = CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_DefaultShapeDefinition_SetBodyPr] = CChangesDrawingsObjectNoId; @@ -800,6 +804,10 @@ AscDFH.changesFactory[AscDFH.historyitem_HF_SetFtr] = CChangesDrawingsBool; AscDFH.changesFactory[AscDFH.historyitem_HF_SetHdr] = CChangesDrawingsBool; AscDFH.changesFactory[AscDFH.historyitem_HF_SetSldNum] = CChangesDrawingsBool; + AscDFH.changesFactory[AscDFH.historyitem_CustomPropertiesAddProperty] = CChangesDrawingsContentNoId; + + + // COLOR ----------------------- /* @@ -888,7 +896,7 @@ g_oThemeFontsName["minorHAnsi"] = true; function isRealNumber(n) { - return typeof n === "number" && !isNaN(n); + return typeof n === "number" && !isNaN(n) && isFinite(n); } function isRealBool(b) { @@ -1025,11 +1033,11 @@ } } - function ExecuteNoHistory(f, oThis, args) { + function ExecuteNoHistory(f, oThis, args, notOffTableId) { AscCommon.History.TurnOff && AscCommon.History.TurnOff(); var b_table_id = false; - if (g_oTableId && !g_oTableId.m_bTurnOff) { + if (!notOffTableId && g_oTableId && !g_oTableId.m_bTurnOff) { g_oTableId.m_bTurnOff = true; b_table_id = true; } @@ -1807,7 +1815,22 @@ oMod.name = name; while (reader.MoveToNextAttribute()) { if (reader.GetNameNoNS() === "val") { - oMod.val = reader.GetValueInt(); + let sVal = reader.GetValue(); + let nLen = sVal.length; + if(typeof sVal === "string" && nLen > 0) { + if ((nLen - 1) === sVal.indexOf("%")) { + sVal.substring(0, nLen - 1); + let dVal = parseFloat(sVal); + if (AscFormat.isRealNumber(dVal)) + oMod.val = dVal * 1000 + 0.5 >> 0; + } + else { + let dVal = parseFloat(sVal); + if(AscFormat.isRealNumber(dVal)) { + oMod.val = dVal + 0.5 >> 0; + } + } + } break; } } @@ -2420,7 +2443,7 @@ } InitClass(CUniColor, CBaseNoIdObject, 0); - CUniColor.prototype.checkPhColor = function (unicolor, bMergeMods) { + CUniColor.prototype.checkPhColor = function (unicolor) { if (this.color && this.color.type === c_oAscColor.COLOR_TYPE_SCHEME && this.color.id === 14) { if (unicolor) { if (unicolor.color) { @@ -2430,9 +2453,7 @@ if (!this.Mods || this.Mods.Mods.length === 0) { this.Mods = unicolor.Mods.createDuplicate(); } else { - if (bMergeMods) { - this.Mods.Merge(unicolor.Mods); - } + this.Mods.Merge(unicolor.Mods); } } } @@ -2467,6 +2488,13 @@ } return null; }; + CUniColor.prototype.getTransparency = function () { + let nAlphaVal = this.getModValue("alpha"); + if(nAlphaVal === null) { + return 0; + } + return (100000 - nAlphaVal) / 1000; + }; CUniColor.prototype.checkWordMods = function () { return this.Mods && this.Mods.Mods.length === 1 && (this.Mods.Mods[0].name === "wordTint" || this.Mods.Mods[0].name === "wordShade"); @@ -3122,24 +3150,60 @@ } return _ret; }; + CBlipFill.prototype.reduceSize = function (nW, nH, nMaxSize) { + let dWK = nW / nMaxSize; + let dHK = nH / nMaxSize; + let dK = Math.max(dWK, dHK); + let oResult = {W: nW, H: nH}; + if (dK > 1) { + oResult.W = ((nW / dK) + 0.5 >> 0); + oResult.H = ((nH / dK) + 0.5 >> 0); + } + return oResult; + }; CBlipFill.prototype.getBase64Data = function (bReduce, bReturnOrigIfCantDraw) { - var sRasterImageId = this.RasterImageId; + let sRasterImageId = this.RasterImageId; if (typeof sRasterImageId !== "string" || sRasterImageId.length === 0) { return null; } - var oApi = Asc.editor || editor; - var sDefaultResult = sRasterImageId; + let oApi = Asc.editor || editor; + let sDefaultResult = sRasterImageId; + const nMaxSize = 640; if(bReturnOrigIfCantDraw === false) { sDefaultResult = null; } + if (window["NATIVE_EDITOR_ENJINE"] && window["native"]) { + let sSrc = AscCommon.getFullImageSrc2(sRasterImageId); + let oImageSize = AscCommon.getSourceImageSize(sSrc); + let nW = Math.max(oImageSize.width, 1); + let nH = Math.max(oImageSize.height, 1); + if (bReduce) { + let oReducedSize = this.reduceSize(nW, nH, nMaxSize); + nW = oReducedSize.W; + nH = oReducedSize.H; + } + let oCanvas = new AscCommon.CNativeGraphics(); + oCanvas.width = nW; + oCanvas.height = nH; + oCanvas.create(window["native"], oCanvas.width, oCanvas.height, oCanvas.width, oCanvas.height); + oCanvas.transform(1, 0, 0, 1, 0, 0); + oCanvas.drawImage(sSrc, 0, 0, oCanvas.width, oCanvas.height); + let sResult; + try { + sResult = oCanvas.toDataURL("image/png"); + } catch (err) { + sResult = sDefaultResult; + } + return {img: sResult, w: oCanvas.width, h: oCanvas.height}; + } if (!oApi) { return {img: sDefaultResult, w: null, h: null}; } - var oImageLoader = oApi.ImageLoader; + let oImageLoader = oApi.ImageLoader; if (!oImageLoader) { return {img: sDefaultResult, w: null, h: null}; } - var oImage = oImageLoader.map_image_index[AscCommon.getFullImageSrc2(sRasterImageId)]; + let oImage = oImageLoader.map_image_index[AscCommon.getFullImageSrc2(sRasterImageId)]; if (!oImage || !oImage.Image || oImage.Status !== AscFonts.ImageLoadStatus.Complete) { return {img: sDefaultResult, w: null, h: null}; } @@ -3147,20 +3211,15 @@ if (sRasterImageId.indexOf("data:") === 0 && sRasterImageId.indexOf("base64") > 0) { return {img: sRasterImageId, w: oImage.Image.width, h: oImage.Image.height}; } - var sResult = sDefaultResult; + let sResult = sDefaultResult; if (!window["NATIVE_EDITOR_ENJINE"]) { - var oCanvas = document.createElement("canvas"); - var nW = Math.max(oImage.Image.width, 1); - var nH = Math.max(oImage.Image.height, 1); + let oCanvas = document.createElement("canvas"); + let nW = Math.max(oImage.Image.width, 1); + let nH = Math.max(oImage.Image.height, 1); if (bReduce) { - var nMaxSize = 640; - var dWK = nW / nMaxSize; - var dHK = nH / nMaxSize; - var dK = Math.max(dWK, dHK); - if (dK > 1) { - nW = ((nW / dK) + 0.5 >> 0); - nH = ((nH / dK) + 0.5 >> 0); - } + let oReducedSize = this.reduceSize(nW, nH, nMaxSize); + nW = oReducedSize.W; + nH = oReducedSize.H; } oCanvas.width = nW; oCanvas.height = nH; @@ -4086,11 +4145,7 @@ if(!this.color) { return 0; } - let nAlphaVal = this.color.getModValue("alpha"); - if(nAlphaVal === null) { - return 0; - } - return (100000 - nAlphaVal) / 1000; + return this.color.getTransparency(); }; asc_CShadowProperty.prototype.putTransparency = function(nVal) { if(!this.color) { @@ -5090,7 +5145,7 @@ } } }; - CUniFill.prototype.checkPhColor = function (unicolor, bMergeMods) { + CUniFill.prototype.checkPhColor = function (unicolor) { if (this.fill) { switch (this.fill.type) { case c_oAscFill.FILL_TYPE_BLIP: @@ -5100,24 +5155,24 @@ } case c_oAscFill.FILL_TYPE_SOLID: { if (this.fill.color && this.fill.color) { - this.fill.color.checkPhColor(unicolor, bMergeMods); + this.fill.color.checkPhColor(unicolor); } break; } case c_oAscFill.FILL_TYPE_GRAD: { for (var i = 0; i < this.fill.colors.length; ++i) { if (this.fill.colors[i] && this.fill.colors[i].color) { - this.fill.colors[i].color.checkPhColor(unicolor, bMergeMods); + this.fill.colors[i].color.checkPhColor(unicolor); } } break; } case c_oAscFill.FILL_TYPE_PATT: { if (this.fill.bgClr) { - this.fill.bgClr.checkPhColor(unicolor, bMergeMods); + this.fill.bgClr.checkPhColor(unicolor); } if (this.fill.fgClr) { - this.fill.fgClr.checkPhColor(unicolor, bMergeMods); + this.fill.fgClr.checkPhColor(unicolor); } break; } @@ -6237,39 +6292,42 @@ return; } if (ln.Fill != null && ln.Fill.fill != null) { - this.Fill = ln.Fill.createDuplicate(); + this.setFill(ln.Fill.createDuplicate()); } if (ln.prstDash != null) { - this.prstDash = ln.prstDash; + this.setPrstDash(ln.prstDash); } if (ln.Join != null) { - this.Join = ln.Join.createDuplicate(); + this.setJoin(ln.Join.createDuplicate()); } if (ln.headEnd != null) { - this.headEnd = ln.headEnd.createDuplicate(); + this.setHeadEnd(ln.headEnd.createDuplicate()); } if (ln.tailEnd != null) { - this.tailEnd = ln.tailEnd.createDuplicate(); + this.setTailEnd(ln.tailEnd.createDuplicate()); } if (ln.algn != null) { - this.algn = ln.algn; + this.setAlgn(ln.algn); } if (ln.cap != null) { - this.cap = ln.cap; + this.setCap(ln.cap); } if (ln.cmpd != null) { - this.cmpd = ln.cmpd; + this.setCmpd(ln.cmpd); } if (ln.w != null) { - this.w = ln.w; + this.setW(ln.w); + } + else if(ln.isNoFillLine && ln.isNoFillLine()) { + this.setW(0); } }; CLn.prototype.calculate = function (theme, slide, layout, master, RGBA, colorMap) { @@ -6844,6 +6902,9 @@ AscCommon.History.Add(new CChangesDrawingsString(this, AscDFH.historyitem_Ph_SetIdx, this.idx, idx)); this.idx = idx; }; + Ph.prototype.getIdx = function() { + return this.idx; + } Ph.prototype.setOrient = function (orient) { AscCommon.History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Ph_SetOrient, this.orient, orient)); this.orient = orient; @@ -6856,6 +6917,9 @@ AscCommon.History.Add(new CChangesDrawingsLong(this, AscDFH.historyitem_Ph_SetType, this.type, type)); this.type = type; }; + Ph.prototype.getType = function() { + return this.type; + }; function fUpdateLocksValue(nLocks, nMask, bValue) { nLocks |= nMask; @@ -7031,6 +7095,7 @@ CBaseNoIdObject.call(this); this.idx = 0; this.Color = new CUniColor(); + this.styleClr = null; } InitClass(StyleRef, CBaseNoIdObject, 0); @@ -7055,6 +7120,9 @@ StyleRef.prototype.setIdx = function (idx) { this.idx = idx; }; + StyleRef.prototype.setStyleClr = function (styleClr) { + this.styleClr = styleClr; + }; StyleRef.prototype.setColor = function (color) { this.Color = color; }; @@ -7148,19 +7216,19 @@ CShapeStyle.prototype.merge = function (style) { if (style != null) { if (style.lnRef != null) { - this.lnRef = style.lnRef.createDuplicate(); + this.setLnRef(style.lnRef.createDuplicate()); } if (style.fillRef != null) { - this.fillRef = style.fillRef.createDuplicate(); + this.setFillRef(style.fillRef.createDuplicate()); } if (style.effectRef != null) { - this.effectRef = style.effectRef.createDuplicate(); + this.setEffectRef(style.effectRef.createDuplicate()); } if (style.fontRef != null) { - this.fontRef = style.fontRef.createDuplicate(); + this.setFontRef(style.fontRef.createDuplicate()); } } }; @@ -7327,46 +7395,46 @@ return; } if (xfrm.offX != null) { - this.offX = xfrm.offX; + this.setOffX(xfrm.offX); } if (xfrm.offY != null) { - this.offY = xfrm.offY; + this.setOffY(xfrm.offY); } if (xfrm.extX != null) { - this.extX = xfrm.extX; + this.setExtX(xfrm.extX); } if (xfrm.extY != null) { - this.extY = xfrm.extY; + this.setExtY(xfrm.extY); } if (xfrm.chOffX != null) { - this.chOffX = xfrm.chOffX; + this.setChOffX(xfrm.chOffX); } if (xfrm.chOffY != null) { - this.chOffY = xfrm.chOffY; + this.setChOffY(xfrm.chOffY); } if (xfrm.chExtX != null) { - this.chExtX = xfrm.chExtX; + this.setChExtX(xfrm.chExtX); } if (xfrm.chExtY != null) { - this.chExtY = xfrm.chExtY; + this.setChExtY(xfrm.chExtY); } if (xfrm.flipH != null) { - this.flipH = xfrm.flipH; + this.setFlipH(xfrm.flipH); } if (xfrm.flipV != null) { - this.flipV = xfrm.flipV; + this.setFlipV(xfrm.flipV); } if (xfrm.rot != null) { - this.rot = xfrm.rot; + this.setRot(xfrm.rot); } }; CXfrm.prototype.createDuplicate = function () { @@ -7869,6 +7937,25 @@ this.ln.merge(spPr.ln); } */ }; + CSpPr.prototype.fullMerge = function (spPr) { + if (spPr.xfrm != null) { + this.xfrm.merge(spPr.xfrm); + } + if (spPr.geometry !== null) { + this.setGeometry(spPr.geometry.createDuplicate()); + } + + if (spPr.Fill !== null && spPr.Fill.fill !== null) { + this.setFill(spPr.Fill.createDuplicate()); + } + + if (spPr.ln != null) { + if (this.ln == null) + this.setLn(new CLn()); + + this.ln.merge(spPr.ln); + } + }; CSpPr.prototype.setParent = function (pr) { AscCommon.History.Add(new CChangesDrawingsObject(this, AscDFH.historyitem_SpPr_SetParent, this.parent, pr)); this.parent = pr; @@ -8557,14 +8644,14 @@ if (!ret) return null; var ret2 = ret.createDuplicate(); - ret2.checkPhColor(unicolor, false); + ret2.checkPhColor(unicolor); return ret2; } else if (number >= 1001) { var ret = this.bgFillStyleLst[number - 1001]; if (!ret) return null; var ret2 = ret.createDuplicate(); - ret2.checkPhColor(unicolor, false); + ret2.checkPhColor(unicolor); return ret2; } return null; @@ -8746,7 +8833,7 @@ if (this.themeElements.fmtScheme.fillStyleLst[idx - 1]) { ret = this.themeElements.fmtScheme.fillStyleLst[idx - 1].createDuplicate(); if (ret) { - ret.checkPhColor(unicolor, false); + ret.checkPhColor(unicolor); return ret; } } @@ -8754,7 +8841,7 @@ if (this.themeElements.fmtScheme.bgFillStyleLst[idx - 1001]) { ret = this.themeElements.fmtScheme.bgFillStyleLst[idx - 1001].createDuplicate(); if (ret) { - ret.checkPhColor(unicolor, false); + ret.checkPhColor(unicolor); return ret; } } @@ -8768,7 +8855,7 @@ if (this.themeElements.fmtScheme.lnStyleLst[idx - 1]) { var ret = this.themeElements.fmtScheme.lnStyleLst[idx - 1].createDuplicate(); if (ret.Fill) { - ret.Fill.checkPhColor(unicolor, false); + ret.Fill.checkPhColor(unicolor); } return ret; } @@ -9039,6 +9126,52 @@ AscCommon.History.Add(new CChangesDrawingsBool(this, AscDFH.historyitem_HF_SetSldNum, this.sldNum, pr)); this.sldNum = pr; }; + HF.prototype.applySettings = function (oSettings) { + if(!oSettings) return; + if (oSettings.get_ShowSlideNum()) { + if (this.sldNum !== null) { + this.setSldNum(null); + } + } + else { + if (this.sldNum !== false) { + this.setSldNum(false); + } + } + + if (oSettings.get_ShowFooter()) { + if (this.ftr !== null) { + this.setFtr(null); + } + } + else { + if (this.ftr !== false) { + this.setFtr(false); + } + } + + if (oSettings.get_ShowHeader()) { + if (this.hdr !== null) { + this.setHdr(null); + } + } + else { + if (this.hdr !== false) { + this.setHdr(false); + } + } + + if (oSettings.get_ShowDateTime()) { + if (this.dt !== null) { + this.setDt(null); + } + } + else { + if (this.dt !== false) { + this.setDt(false); + } + } + }; function CBgPr() { CBaseNoIdObject.call(this) @@ -9200,8 +9333,15 @@ } }); }; - CSld.prototype.refreshAllContentsFields = function() { + CSld.prototype.refreshAllContentsFields = function(bNoHistory) { + let bOldUpdate = AscCommon.History.RecalculateData.Update; + if(bNoHistory) { + AscCommon.History.RecalculateData.Update = false; + } this.handleAllContents(RefreshContentAllFields); + if(bNoHistory) { + AscCommon.History.RecalculateData.Update = bOldUpdate; + } }; function RefreshContentAllFields(oContent) { @@ -10558,6 +10698,12 @@ CBullet.prototype.isBullet = function () { return this.bulletType != null && this.bulletType.type != null; }; + CBullet.prototype.isNone = function() { + if (!this.bulletType) + return true; + + return this.bulletType.type === AscFormat.BULLET_TYPE_TYPEFACE_NONE; + }; CBullet.prototype.getPresentationBullet = function (theme, color) { var para_pr = new CParaPr(); para_pr.Bullet = this; @@ -10796,12 +10942,12 @@ return; } var _this = this; - AscCommon.ShowImageFileDialog(Api.documentId, Api.documentUserId, Api.CoAuthoringApi.get_jwt(), Api.documentShardKey, Api.documentWopiSrc, function (error, files) { + AscCommon.ShowImageFileDialog(Api.documentId, Api.documentUserId, Api.CoAuthoringApi.get_jwt(), Api.documentShardKey, Api.documentWopiSrc, Api.documentUserSessionId, function (error, files) { if (Asc.c_oAscError.ID.No !== error) { Api.sendEvent("asc_onError", error, Asc.c_oAscError.Level.NoCritical); } else { Api.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.UploadImage); - AscCommon.UploadImageFiles(files, Api.documentId, Api.documentUserId, Api.CoAuthoringApi.get_jwt(), Api.documentShardKey, Api.documentWopiSrc, function (error, urls) { + AscCommon.UploadImageFiles(files, Api.documentId, Api.documentUserId, Api.CoAuthoringApi.get_jwt(), Api.documentShardKey, Api.documentWopiSrc, Api.documentUserSessionId, function (error, urls) { if (Asc.c_oAscError.ID.No !== error) { Api.sendEvent("asc_onError", error, Asc.c_oAscError.Level.NoCritical); Api.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.UploadImage); @@ -11465,7 +11611,78 @@ } } }; + TextListStyle.prototype.applyParaPr = function (nLvl, ParaPr, bIncreaseFontSize, oSp) { + let iN = AscFormat.isRealNumber; + if(bIncreaseFontSize === true || bIncreaseFontSize === false) { + if(!this.levels[nLvl]) { + this.levels[nLvl] = new AscWord.CParaPr(); + } + let oLvl = this.levels[nLvl]; + if(oLvl) { + if(!oLvl.DefaultRunPr) { + oLvl.DefaultRunPr = new AscWord.CTextPr(); + } + let TextPr = oLvl.DefaultRunPr; + let Pr; + if(iN(TextPr.FontSize)) { + TextPr.FontSize = TextPr.GetIncDecFontSize(bIncreaseFontSize) + } + else { + let oSpStyles = oSp.Get_Styles(nLvl); + let Styles = oSpStyles.styles; + Pr = Styles.Get_Pr(oSpStyles.lastId, styletype_Paragraph, null); + TextPr.FontSize = Pr.TextPr.GetIncDecFontSize(bIncreaseFontSize) + } + if(iN(TextPr.FontSizeCS)) { + TextPr.FontSizeCS = TextPr.GetIncDecFontSizeCS(bIncreaseFontSize) + } + + else { + if(!Pr) { + let oSpStyles = oSp.Get_Styles(nLvl); + let Styles = oSpStyles.styles; + Pr = Styles.Get_Pr(oSpStyles.lastId, styletype_Paragraph, null); + } + TextPr.FontSize = Pr.TextPr.GetIncDecFontSize(bIncreaseFontSize) + } + } + return; + } + if(!ParaPr) { + this.levels[nLvl] = null; + return; + } + if(!this.levels[nLvl]) { + this.levels[nLvl] = new AscWord.CParaPr(); + } + let oLvl = this.levels[nLvl]; + oLvl.Merge(ParaPr); + if(!oLvl.DefaultRunPr) { + oLvl.DefaultRunPr = new AscWord.CTextPr(); + } + + if(ParaPr.DefaultRunPr) { + let TextPr = ParaPr.DefaultRunPr; + if (TextPr.FontFamily) { + let FName = TextPr.FontFamily.Name; + let FIndex = TextPr.FontFamily.Index; + TextPr.RFonts = new CRFonts(); + TextPr.RFonts.SetAll(FName, FIndex); + } + oLvl.DefaultRunPr.Apply(ParaPr.DefaultRunPr); + } + }; + TextListStyle.prototype.changeFontSize = function (nLvl, bIncrease) { + if(!this.levels[nLvl]) { + this.levels[nLvl] = new AscWord.CParaPr(); + } + let oLvl = this.levels[nLvl]; + if(oLvl.DefaultRunPr) { + oLvl.DefaultRunPr = new AscWord.CTextPr(); + } + + }; function CBaseAttrObject() { CBaseNoIdObject.call(this); @@ -12706,11 +12923,12 @@ prot["asc_getPages"] = prot.asc_getPages; function CCustomProperties() { - CBaseNoIdObject.call(this); + CBaseObject.call(this); this.properties = []; + this.Lock = new AscCommon.CLock(); } - InitClass(CCustomProperties, CBaseNoIdObject, 0); + InitClass(CCustomProperties, CBaseObject, AscDFH.historyitem_type_CustomProperties); CCustomProperties.prototype.fromStream = function (s) { var _type = s.GetUChar(); var _len = s.GetULong(); @@ -12768,19 +12986,68 @@ }); }; CCustomProperties.prototype.add = function (name, variant, opt_linkTarget) { + this.addProperty(this.properties.length, this.createPropertyWithVariant(name, variant, opt_linkTarget)); + }; + CCustomProperties.prototype.createPropertyWithVariant = function (name, variant, opt_linkTarget) { var newProperty = new CCustomProperty(); newProperty.fmtid = "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}"; newProperty.pid = null; newProperty.name = name; newProperty.linkTarget = opt_linkTarget || null; newProperty.content = variant; - this.properties.push(newProperty); + return newProperty; + }; + CCustomProperties.prototype.createProperty = function (name, type, value, opt_linkTarget) { + let oVariant = new CVariant(); + oVariant.setType(type); + oVariant.setValue(value); + return this.createPropertyWithVariant(name, oVariant, opt_linkTarget); + }; + CCustomProperties.prototype.getAllProperties = function () { + return [].concat(this.properties); + }; + CCustomProperties.prototype.addProperty = function (idx, pr) { + let nInsertIdx = Math.min(this.properties.length, Math.max(0, idx)); + AscCommon.History.Add(new CChangesDrawingsContentNoId(this, AscDFH.historyitem_CustomPropertiesAddProperty, nInsertIdx, [pr], true)); + this.properties.splice(nInsertIdx, 0, pr); + }; + CCustomProperties.prototype.removeProperty = function (idx) { + if(idx < 0 || idx >= this.properties.length) + return; + let aDeleteElems = this.properties.splice(idx, 1); + AscCommon.History.Add(new CChangesDrawingsContentNoId(this, AscDFH.historyitem_CustomPropertiesAddProperty, idx, aDeleteElems, false)); + }; + CCustomProperties.prototype.modifyProperty = function (idx, pr) { + if(idx < 0 || idx >= this.properties.length) + return; + this.removeProperty(idx); + this.addProperty(idx, pr); + }; + CCustomProperties.prototype.AddProperty = function (name, type, value) { + for(let nIdx = 0; nIdx < this.properties.length; ++nIdx) { + let oPr = this.properties[nIdx]; + if(oPr.name === name) { + this.ModifyProperty(nIdx, name, type, value); + return; + } + } + this.addProperty(this.properties.length, this.createProperty(name, type, value, null)); + }; + CCustomProperties.prototype.ModifyProperty = function (idx, name, type, value) { + this.modifyProperty(idx, this.createProperty(name, type, value, null)); + }; + CCustomProperties.prototype.RemoveProperty = function (idx) { + return this.removeProperty(idx); + }; + CCustomProperties.prototype.hasProperties = function () { + return this.properties.length > 0; }; window['AscCommon'].CCustomProperties = CCustomProperties; prot = CCustomProperties.prototype; prot["add"] = prot.add; + function CCustomProperty() { CBaseNoIdObject.call(this); this.fmtid = null; @@ -12858,7 +13125,43 @@ s.WriteRecord4(0, this.content); }; - + CCustomProperty.prototype.setContent = function (v) { + this.content = v; + }; + CCustomProperty.prototype.asc_getName = function() { + return this.name; + }; + CCustomProperty.prototype.asc_getType = function() { + if(this.content) { + return this.content.getVariantType(); + } + return c_oVariantTypes.vtEmpty; + }; + CCustomProperty.prototype.asc_getValue = function() { + if(this.content) { + return this.content.getValue(); + } + return null; + }; + CCustomProperty.prototype.Write_ToBinary = function(w) { + let oStream = AscCommon.pptx_content_writer.BinaryFileWriter; + var old = new AscCommon.CMemory(true); + oStream.ExportToMemory(old); + oStream.ImportFromMemory(w); + oStream.WriteRecord4(0, this); + oStream.ExportToMemory(w); + oStream.ImportFromMemory(old); + }; + CCustomProperty.prototype.Read_FromBinary = function(r) { + let fileStream = r.ToFileStream(); + fileStream.GetUChar(); + this.fromStream(fileStream); + r.FromFileStream(fileStream); + }; + + CCustomProperty.prototype["asc_getName"] = CCustomProperty.prototype.asc_getName; + CCustomProperty.prototype["asc_getType"] = CCustomProperty.prototype.asc_getType; + CCustomProperty.prototype["asc_getValue"] = CCustomProperty.prototype.asc_getValue; function CVariantVector() { CBaseNoIdObject.call(this); @@ -13077,7 +13380,6 @@ }; function CVariant(parent) { - CBaseNoIdObject.call(this); this.type = null; this.strContent = null; this.iContent = null; @@ -13088,11 +13390,8 @@ this.vector = null; this.array = null; this.vStream = null; - this.parent = parent; } - - InitClass(CVariant, CBaseNoIdObject, 0); CVariant.prototype.fromStream = function (s) { var _type; var _len = s.GetULong(); @@ -13187,21 +13486,54 @@ s.WriteRecord4(7, this.array); s.WriteRecord4(8, this.vStream); }; + CVariant.prototype.setParent = function(pr) { + this.parent = pr; + }; + CVariant.prototype.setType = function(pr) { + this.type = pr; + }; + CVariant.prototype.setStrContent = function(pr) { + this.strContent = pr; + }; + CVariant.prototype.setIContent = function(pr) { + this.iContent = pr; + }; + CVariant.prototype.setUContent = function(pr) { + this.uContent = pr; + }; + CVariant.prototype.setDContent = function(pr) { + this.dContent = pr; + }; + CVariant.prototype.setBContent = function(pr) { + this.bContent = pr; + }; + CVariant.prototype.setVariant = function(pr) { + this.variant = pr; + }; + CVariant.prototype.setVector = function(pr) { + this.vector = pr; + }; + CVariant.prototype.setArray = function(pr) { + this.array = pr; + }; + CVariant.prototype.setVStream = function(pr) { + this.vStream = pr; + }; CVariant.prototype.setText = function (val) { - this.type = c_oVariantTypes.vtLpwstr; - this.strContent = val; + this.setType(c_oVariantTypes.vtLpwstr); + this.setStrContent(val); }; CVariant.prototype.setNumber = function (val) { - this.type = c_oVariantTypes.vtI4; - this.iContent = val; + this.setType(c_oVariantTypes.vtI4); + this.setIContent(val); }; CVariant.prototype.setDate = function (val) { - this.type = c_oVariantTypes.vtFiletime; - this.strContent = val.toISOString().slice(0, 19) + 'Z'; + this.setDate(c_oVariantTypes.vtFiletime); + this.setStrContent(val.toISOString().slice(0, 19) + 'Z'); }; CVariant.prototype.setBool = function (val) { - this.type = c_oVariantTypes.vtBool; - this.bContent = val; + this.setType(c_oVariantTypes.vtBool); + this.setBContent(val); }; CVariant.prototype.typeStrToEnum = function (name) { switch (name) { @@ -13414,6 +13746,116 @@ CVariant.prototype.getVariantType = function () { return AscFormat.isRealNumber(this.type) ? this.type : c_oVariantTypes.vtEmpty; }; + CVariant.prototype.getValue = function () { + switch (this.type) { + case c_oVariantTypes.vtClsid: + case c_oVariantTypes.vtOStorage: + case c_oVariantTypes.vtStorage: + case c_oVariantTypes.vtOStream: + case c_oVariantTypes.vtStream: + case c_oVariantTypes.vtError: + case c_oVariantTypes.vtCy: + case c_oVariantTypes.vtBstr: + case c_oVariantTypes.vtDecimal: + case c_oVariantTypes.vtEmpty: + case c_oVariantTypes.vtVariant: + case c_oVariantTypes.vtVector: + case c_oVariantTypes.vtArray: + case c_oVariantTypes.vtVStream: + case c_oVariantTypes.vtBlob: + case c_oVariantTypes.vtOBlob: + case c_oVariantTypes.vtNull: { + return null; + } + case c_oVariantTypes.vtI2: + case c_oVariantTypes.vtI4: + case c_oVariantTypes.vtI8: + case c_oVariantTypes.vtInt: + case c_oVariantTypes.vtI1: { + return this.iContent; + } + case c_oVariantTypes.vtUint: + case c_oVariantTypes.vtUi8: + case c_oVariantTypes.vtUi4: + case c_oVariantTypes.vtUi2: + case c_oVariantTypes.vtUi1: { + return this.uContent; + } + case c_oVariantTypes.vtR8: + case c_oVariantTypes.vtR4: { + return this.dContent; + } + case c_oVariantTypes.vtLpwstr: + case c_oVariantTypes.vtLpstr: { + return this.strContent; + } + case c_oVariantTypes.vtDate: + case c_oVariantTypes.vtFiletime: { + return new Date(this.strContent); + } + case c_oVariantTypes.vtBool: { + return this.bContent; + } + } + }; + CVariant.prototype.setValue = function(v) { + switch (this.type) { + case c_oVariantTypes.vtClsid: + case c_oVariantTypes.vtOStorage: + case c_oVariantTypes.vtStorage: + case c_oVariantTypes.vtOStream: + case c_oVariantTypes.vtStream: + case c_oVariantTypes.vtError: + case c_oVariantTypes.vtCy: + case c_oVariantTypes.vtBstr: + case c_oVariantTypes.vtDecimal: + case c_oVariantTypes.vtEmpty: + case c_oVariantTypes.vtVariant: + case c_oVariantTypes.vtVector: + case c_oVariantTypes.vtArray: + case c_oVariantTypes.vtVStream: + case c_oVariantTypes.vtBlob: + case c_oVariantTypes.vtOBlob: + case c_oVariantTypes.vtNull: { + break; + } + case c_oVariantTypes.vtI2: + case c_oVariantTypes.vtI4: + case c_oVariantTypes.vtI8: + case c_oVariantTypes.vtInt: + case c_oVariantTypes.vtI1: { + this.setIContent(v); + break; + } + case c_oVariantTypes.vtUint: + case c_oVariantTypes.vtUi8: + case c_oVariantTypes.vtUi4: + case c_oVariantTypes.vtUi2: + case c_oVariantTypes.vtUi1: { + this.setUContent(v); + break; + } + case c_oVariantTypes.vtR8: + case c_oVariantTypes.vtR4: { + this.setDContent(v); + break; + } + case c_oVariantTypes.vtLpwstr: + case c_oVariantTypes.vtLpstr: { + this.setStrContent(v); + break; + } + case c_oVariantTypes.vtDate: + case c_oVariantTypes.vtFiletime: { + this.setStrContent(v.toISOString().slice(0, 19) + 'Z'); + break; + } + case c_oVariantTypes.vtBool: { + this.setBContent(v); + break; + } + } + }; window['AscCommon'].CVariant = CVariant; prot = CVariant.prototype; @@ -13461,7 +13903,41 @@ }; window['AscCommon'].c_oVariantTypes = c_oVariantTypes; - + window['AscCommon']["c_oVariantTypes"] = c_oVariantTypes; + c_oVariantTypes["vtEmpty"] = c_oVariantTypes.vtEmpty; + c_oVariantTypes["vtNull"] = c_oVariantTypes.vtNull; + c_oVariantTypes["vtVariant"] = c_oVariantTypes.vtVariant; + c_oVariantTypes["vtVector"] = c_oVariantTypes.vtVector; + c_oVariantTypes["vtArray"] = c_oVariantTypes.vtArray; + c_oVariantTypes["vtVStream"] = c_oVariantTypes.vtVStream; + c_oVariantTypes["vtBlob"] = c_oVariantTypes.vtBlob; + c_oVariantTypes["vtOBlob"] = c_oVariantTypes.vtOBlob; + c_oVariantTypes["vtI1"] = c_oVariantTypes.vtI1; + c_oVariantTypes["vtI2"] = c_oVariantTypes.vtI2; + c_oVariantTypes["vtI4"] = c_oVariantTypes.vtI4; + c_oVariantTypes["vtI8"] = c_oVariantTypes.vtI8; + c_oVariantTypes["vtInt"] = c_oVariantTypes.vtInt; + c_oVariantTypes["vtUi1"] = c_oVariantTypes.vtUi1; + c_oVariantTypes["vtUi2"] = c_oVariantTypes.vtUi2; + c_oVariantTypes["vtUi4"] = c_oVariantTypes.vtUi4; + c_oVariantTypes["vtUi8"] = c_oVariantTypes.vtUi8; + c_oVariantTypes["vtUint"] = c_oVariantTypes.vtUint; + c_oVariantTypes["vtR4"] = c_oVariantTypes.vtR4; + c_oVariantTypes["vtR8"] = c_oVariantTypes.vtR8; + c_oVariantTypes["vtDecimal"] = c_oVariantTypes.vtDecimal; + c_oVariantTypes["vtLpstr"] = c_oVariantTypes.vtLpstr; + c_oVariantTypes["vtLpwstr"] = c_oVariantTypes.vtLpwstr; + c_oVariantTypes["vtBstr"] = c_oVariantTypes.vtBstr; + c_oVariantTypes["vtDate"] = c_oVariantTypes.vtDate; + c_oVariantTypes["vtFiletime"] = c_oVariantTypes.vtFiletime; + c_oVariantTypes["vtBool"] = c_oVariantTypes.vtBool; + c_oVariantTypes["vtCy"] = c_oVariantTypes.vtCy; + c_oVariantTypes["vtError"] = c_oVariantTypes.vtError; + c_oVariantTypes["vtStream"] = c_oVariantTypes.vtStream; + c_oVariantTypes["vtOStream"] = c_oVariantTypes.vtOStream; + c_oVariantTypes["vtStorage"] = c_oVariantTypes.vtStorage; + c_oVariantTypes["vtOStorage"] = c_oVariantTypes.vtOStorage; + c_oVariantTypes["vtClsid"] = c_oVariantTypes.vtClsid; function CPres() { CBaseNoIdObject.call(this); @@ -13765,10 +14241,12 @@ let oColor = new CUniColor(); oColor.color = new CSchemeColor(); oColor.color.id = id; - for(let nMod = 0; nMod < aMods.length; ++nMod) { - let oModObject = aMods[nMod]; - let oMod = new CColorMod(oModObject.name, oModObject.val); - oColor.addColorMod(oMod); + if (aMods) { + for(let nMod = 0; nMod < aMods.length; ++nMod) { + let oModObject = aMods[nMod]; + let oMod = new CColorMod(oModObject.name, oModObject.val); + oColor.addColorMod(oMod); + } } return oColor; } @@ -14827,18 +15305,29 @@ case "areaStackedPercent": { return Asc.c_oAscChartTypeSettings.areaStackedPer; } + case "comboBarLine": { + return Asc.c_oAscChartTypeSettings.comboBarLine; + } + case "comboBarLineSecondary": { + return Asc.c_oAscChartTypeSettings.comboBarLineSecondary; + } + case "comboCustom": { + return Asc.c_oAscChartTypeSettings.comboCustom; + } } return null; } + + function builder_CreateChart(nW, nH, sType, aCatNames, aSeriesNames, aSeries, nStyleIndex, aNumFormats) { - var settings = new Asc.asc_ChartSettings(); + let settings = new Asc.asc_ChartSettings(); settings.type = ChartBuilderTypeToInternal(sType); - var aAscSeries = []; - var aAlphaBet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; - var oCat, i; + let aAscSeries = []; + let aAlphaBet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; + let oCat, i; if (aCatNames.length > 0) { - var aNumCache = []; + let aNumCache = []; for (i = 0; i < aCatNames.length; ++i) { aNumCache.push({val: aCatNames[i] + ""}); } @@ -14848,10 +15337,10 @@ }; } for (i = 0; i < aSeries.length; ++i) { - var oAscSeries = new AscFormat.asc_CChartSeria(); + let oAscSeries = new AscFormat.asc_CChartSeria(); oAscSeries.Val.NumCache = []; - var aData = aSeries[i]; - var sEndLiter = AscFormat.CalcLiterByLength(aAlphaBet, aData.length); + let aData = aSeries[i]; + let sEndLiter = AscFormat.CalcLiterByLength(aAlphaBet, aData.length); oAscSeries.Val.Formula = 'Sheet1!' + '$B$' + (i + 2) + ':$' + sEndLiter + '$' + (i + 2); if (aSeriesNames[i]) { oAscSeries.TxCache.Formula = 'Sheet1!' + '$A$' + (i + 2); @@ -14869,7 +15358,7 @@ if (Array.isArray(aNumFormats) && typeof (aNumFormats[i]) === "string") oAscSeries.FormatCode = aNumFormats[i]; - for (var j = 0; j < aData.length; ++j) { + for (let j = 0; j < aData.length; ++j) { oAscSeries.Val.NumCache.push({ numFormatStr: oAscSeries.FormatCode !== "" ? null : "General", isDateTimeFormat: false, @@ -14880,7 +15369,7 @@ aAscSeries.push(oAscSeries); } - var oChartSpace = AscFormat.DrawingObjectsController.prototype._getChartSpace(aAscSeries, settings, true); + let oChartSpace = AscFormat.DrawingObjectsController.prototype._getChartSpace(aAscSeries, settings, true); if (!oChartSpace) { return null; } @@ -18226,6 +18715,7 @@ window['AscFormat'].fRGBAToHexString = fRGBAToHexString; window['AscFormat'].RefreshContentAllFields = RefreshContentAllFields; window['AscFormat'].IsEqualObjects = IsEqualObjects; + window['AscFormat'].CreateSchemeUnicolorWithMods = CreateSchemeUnicolorWithMods; window['AscFormat'].szPh_full = szPh_full; window['AscFormat'].szPh_half = szPh_half; window['AscFormat'].szPh_quarter = szPh_quarter; diff --git a/common/Drawings/Format/Geometry.js b/common/Drawings/Format/Geometry.js index 183d21447a..bbfece13cb 100644 --- a/common/Drawings/Format/Geometry.js +++ b/common/Drawings/Format/Geometry.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/Format/GraphicFrame.js b/common/Drawings/Format/GraphicFrame.js index f3b1fe45d7..538b0a9aa2 100644 --- a/common/Drawings/Format/GraphicFrame.js +++ b/common/Drawings/Format/GraphicFrame.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -39,8 +39,7 @@ var HitInLine = AscFormat.HitInLine; var isRealObject = AscCommon.isRealObject; - var History = AscCommon.History; - + window['AscDFH'].drawingsChangesMap[AscDFH.historyitem_GraphicFrameSetSpPr] = function (oClass, value) { oClass.spPr = value; @@ -237,7 +236,7 @@ }; CGraphicFrame.prototype.setSpPr = function (spPr) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetSpPr, this.spPr, spPr)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetSpPr, this.spPr, spPr)); this.spPr = spPr; if (spPr) { spPr.setParent(this); @@ -245,7 +244,7 @@ }; CGraphicFrame.prototype.setGraphicObject = function (graphicObject) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetGraphicObject, this.graphicObject, graphicObject)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetGraphicObject, this.graphicObject, graphicObject)); this.graphicObject = graphicObject; if (this.graphicObject) { this.graphicObject.Index = 0; @@ -254,17 +253,17 @@ }; CGraphicFrame.prototype.setNvSpPr = function (pr) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetSetNvSpPr, this.nvGraphicFramePr, pr)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetSetNvSpPr, this.nvGraphicFramePr, pr)); this.nvGraphicFramePr = pr; }; CGraphicFrame.prototype.setParent = function (parent) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetSetParent, this.parent, parent)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetSetParent, this.parent, parent)); this.parent = parent; }; CGraphicFrame.prototype.setGroup = function (group) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetSetGroup, this.group, group)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_GraphicFrameSetSetGroup, this.group, group)); this.group = group; }; @@ -959,7 +958,20 @@ } return this.compiledStyles[level]; } else { - return editor.WordControl.m_oLogicDocument.globalTableStyles; + let oLogicDoc; + if(Asc.editor.private_GetLogicDocument) { + oLogicDoc = Asc.editor.private_GetLogicDocument(); + } + if(oLogicDoc) { + + if(oLogicDoc.globalTableStyles) { + return oLogicDoc.globalTableStyles; + } + if(oLogicDoc.Get_Styles) { + return oLogicDoc.Get_Styles(level); + } + } + return this.Get_Styles(0); } }; @@ -1189,7 +1201,11 @@ Graphic.GraphicData = new AscFormat.CT_GraphicalObjectData(); let nDrawingType = oDrawing.getObjectType(); if (nDrawingType === AscDFH.historyitem_type_ChartSpace) { - Graphic.GraphicData.Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart"; + if (oDrawing.isChartEx()) { + Graphic.GraphicData.Uri = "http://schemas.microsoft.com/office/drawing/2014/chartex"; + } else { + Graphic.GraphicData.Uri = "http://schemas.openxmlformats.org/drawingml/2006/chart"; + } } else if (nDrawingType === AscDFH.historyitem_type_SlicerView) { Graphic.GraphicData.Uri = "http://schemas.microsoft.com/office/drawing/2010/slicer"; } else if (nDrawingType === AscDFH.historyitem_type_TimelineSlicerView) { diff --git a/common/Drawings/Format/GraphicObjectBase.js b/common/Drawings/Format/GraphicObjectBase.js index 6e6afdf3af..29694de2e2 100644 --- a/common/Drawings/Format/GraphicObjectBase.js +++ b/common/Drawings/Format/GraphicObjectBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -55,6 +55,7 @@ AscDFH.changesFactory[AscDFH.historyitem_AutoShapes_SetDrawingBaseExt] = AscDFH.CChangesDrawingsObjectNoId; AscDFH.changesFactory[AscDFH.historyitem_AutoShapes_SetDrawingBaseCoors] = AscDFH.CChangesDrawingsObjectNoId; AscDFH.changesFactory[AscDFH.historyitem_ShapeSetClientData] = AscDFH.CChangesDrawingsObjectNoId; + AscDFH.changesFactory[AscDFH.historyitem_ShapeSetUseBgFill] = AscDFH.CChangesDrawingsBool; var drawingsChangesMap = window['AscDFH'].drawingsChangesMap; @@ -133,6 +134,9 @@ drawingsChangesMap[AscDFH.historyitem_ShapeSetClientData] = function (oClass, value) { oClass.clientData = value; }; + drawingsChangesMap[AscDFH.historyitem_ShapeSetUseBgFill] = function (oClass, value) { + oClass.useBgFill = value; + }; drawingsChangesMap[AscDFH.historyitem_ShapeSetMacro] = function (oClass, value) { @@ -750,19 +754,19 @@ } }; CGraphicObjectBase.prototype.setMacro = function (sMacroName) { - History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_ShapeSetMacro, this.macro, sMacroName)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_ShapeSetMacro, this.macro, sMacroName)); this.macro = sMacroName; }; CGraphicObjectBase.prototype.setModelId = function (sModelId) { - History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_ShapeSetModelId, this.modelId, sModelId)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_ShapeSetModelId, this.modelId, sModelId)); this.modelId = sModelId; }; CGraphicObjectBase.prototype.setFLocksText = function (bLock) { - History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_ShapeSetFLocksText, this.fLocksText, bLock)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_ShapeSetFLocksText, this.fLocksText, bLock)); this.fLocksText = bLock; }; CGraphicObjectBase.prototype.setClientData = function (oClientData) { - History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_ShapeSetClientData, this.clientData, oClientData)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_ShapeSetClientData, this.clientData, oClientData)); this.clientData = oClientData; }; CGraphicObjectBase.prototype.checkClientData = function () { @@ -847,7 +851,7 @@ } }; CGraphicObjectBase.prototype.setTextLink = function (sLink) { - History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_ShapeSetTextLink, this.textLink, sLink)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_ShapeSetTextLink, this.textLink, sLink)); this.textLink = sLink; }; CGraphicObjectBase.prototype.hasMacro = function () { @@ -970,6 +974,12 @@ } return this.getNoRot() === false; }; + CGraphicObjectBase.prototype.canResize = function () { + if (!this.canEdit()) { + return false; + } + return this.getNoResize() === false; + }; CGraphicObjectBase.prototype.canSelect = function () { return this.getNoSelect() === false; }; @@ -1099,8 +1109,16 @@ oSpPr.setGeometry(geometry.createDuplicate()); } let oShadowFill; + let nTransparency = null; if (outerShdw.color) { oShadowFill = AscFormat.CreateUniFillByUniColorCopy(outerShdw.color); + nTransparency = outerShdw.color.getTransparency(); + if(nTransparency === 0) { + oShadowFill.transparent = null; + } + else { + oShadowFill.transparent = 255 - 255 * nTransparency / 100 + } } else { oShadowFill = AscFormat.CreateUniFillByUniColor(AscFormat.CreateUniColorRGB(0, 0, 0)); } @@ -1164,6 +1182,12 @@ CGraphicObjectBase.prototype.clearLang = function () { }; + CGraphicObjectBase.prototype.editTxStyleLst = function (ParaPr, bSelect) { + }; + CGraphicObjectBase.prototype.checkEditTextStyle = function (fDocContentMethod, params) { + return false; + }; + CGraphicObjectBase.prototype.isObjectInSmartArt = function () { if (this.group && this.group.isSmartArtObject()) { return true; @@ -1173,7 +1197,7 @@ }; CGraphicObjectBase.prototype.isGroupObject = function () { var nType = this.getObjectType(); - return nType === AscDFH.historyitem_type_GroupShape || nType === AscDFH.historyitem_type_LockedCanvas || this.isSmartArtObject(); + return nType === AscDFH.historyitem_type_GroupShape || nType === AscDFH.historyitem_type_LockedCanvas || this.isSmartArtObject() || nType === AscDFH.historyitem_type_Pdf_Annot_FreeText; }; CGraphicObjectBase.prototype.isSmartArtObject = function () { var nType = this.getObjectType(); @@ -1242,9 +1266,8 @@ oTransform.ty += this.shdwSp.extY; } global_MatrixTransformer.MultiplyAppend(oTransform, this.transform); - this.shdwSp.bounds.x = this.bounds.x + this.shdwSp.bounds.l; - this.shdwSp.bounds.y = this.bounds.y + this.shdwSp.bounds.t; this.shdwSp.transform = oTransform; + this.shdwSp.recalculateBounds(); this.shdwSp.draw(graphics); } }; @@ -1282,6 +1305,9 @@ CGraphicObjectBase.prototype.checkTypeCorrect = function () { return true; }; + CGraphicObjectBase.prototype.isSupported = function () { + return true; + }; CGraphicObjectBase.prototype.handleUpdateExtents = function (bExtX) { }; CGraphicObjectBase.prototype.handleUpdatePosition = function () { @@ -1299,21 +1325,21 @@ }; CGraphicObjectBase.prototype.setDrawingBaseType = function (nType) { if (this.drawingBase) { - History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseType, this.drawingBase.Type, nType)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseType, this.drawingBase.Type, nType)); this.drawingBase.Type = nType; this.handleUpdateExtents(); } }; CGraphicObjectBase.prototype.setDrawingBaseEditAs = function (nType) { if (this.drawingBase) { - History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseEditAs, this.drawingBase.editAs, nType)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseEditAs, this.drawingBase.editAs, nType)); this.drawingBase.editAs = nType; this.handleUpdateExtents(); } }; CGraphicObjectBase.prototype.setDrawingBasePos = function (fPosX, fPosY) { if (this.drawingBase && this.drawingBase.Pos) { - History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_AutoShapes_SetDrawingBasePos, new CDrawingBaseCoordsWritable(this.drawingBase.Pos.X, this.drawingBase.Pos.Y), new CDrawingBaseCoordsWritable(fPosX, fPosY))); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_AutoShapes_SetDrawingBasePos, new CDrawingBaseCoordsWritable(this.drawingBase.Pos.X, this.drawingBase.Pos.Y), new CDrawingBaseCoordsWritable(fPosX, fPosY))); this.drawingBase.Pos.X = fPosX; this.drawingBase.Pos.Y = fPosY; this.handleUpdatePosition(); @@ -1321,7 +1347,7 @@ }; CGraphicObjectBase.prototype.setDrawingBaseExt = function (fExtX, fExtY) { if (this.drawingBase && this.drawingBase.ext) { - History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseExt, new CDrawingBaseCoordsWritable(this.drawingBase.ext.cx, this.drawingBase.ext.cy), new CDrawingBaseCoordsWritable(fExtX, fExtY))); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseExt, new CDrawingBaseCoordsWritable(this.drawingBase.ext.cx, this.drawingBase.ext.cy), new CDrawingBaseCoordsWritable(fExtX, fExtY))); this.drawingBase.ext.cx = fExtX; this.drawingBase.ext.cy = fExtY; this.handleUpdateExtents(); @@ -1501,7 +1527,7 @@ this.extY = oldExtY; this.rot = oldRot; var from = this.drawingBase.from, to = this.drawingBase.to; - History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseCoors, + AscCommon.History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseCoors, new CDrawingBasePosWritable({ fromCol: oldFromCol, fromColOff: oldFromColOff, @@ -1535,7 +1561,7 @@ }; CGraphicObjectBase.prototype.setDrawingBaseCoords = function (fromCol, fromColOff, fromRow, fromRowOff, toCol, toColOff, toRow, toRowOff, posX, posY, extX, extY) { if (this.drawingBase) { - History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseCoors, new CDrawingBasePosWritable({ + AscCommon.History.Add(new AscDFH.CChangesDrawingsObjectNoId(this, AscDFH.historyitem_AutoShapes_SetDrawingBaseCoors, new CDrawingBasePosWritable({ fromCol: this.drawingBase.from.col, fromColOff: this.drawingBase.from.colOff, fromRow: this.drawingBase.from.row, @@ -1606,6 +1632,11 @@ CGraphicObjectBase.prototype.getWorksheet = function () { return this.worksheet; }; + CGraphicObjectBase.prototype.getWorksheetView = function () { + let oWS = this.getWorksheet(); + if(!oWS) return null; + + }; CGraphicObjectBase.prototype.getWorkbook = function () { var oWorksheet = this.getWorksheet(); if (!oWorksheet) { @@ -1696,7 +1727,7 @@ return undefined; }; CGraphicObjectBase.prototype.setBDeleted = function (pr) { - History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_ShapeSetBDeleted, this.bDeleted, pr)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_ShapeSetBDeleted, this.bDeleted, pr)); this.bDeleted = pr; }; CGraphicObjectBase.prototype.getEditorType = function () { @@ -2781,12 +2812,13 @@ }; CGraphicObjectBase.prototype.createPlaceholderControl = function (aControls) { - if(!this.parent) return; - if(!this.parent.getObjectType) return; + let nParentType = null; + if(this.parent && this.parent.getObjectType) { + nParentType = this.parent.getObjectType(); + } let bCanAdd = false; - let nParentType = this.parent.getObjectType(); - if(this.isPlaceholder() && - (nParentType === AscDFH.historyitem_type_SlideMaster || nParentType === AscDFH.historyitem_type_SlideLayout)) { + let bMasterLtPh = (this.isPlaceholder() && (nParentType === AscDFH.historyitem_type_SlideMaster || nParentType === AscDFH.historyitem_type_SlideLayout)) + if(bMasterLtPh) { bCanAdd = true; } else { @@ -2798,10 +2830,11 @@ if (!bCanAdd) { return; } - var phType = this.getPlaceholderType(); - var aButtons = []; - var isLocalDesktop = window["AscDesktopEditor"] && window["AscDesktopEditor"]["IsSupportMedia"] && window["AscDesktopEditor"]["IsSupportMedia"](); + let phType = this.getPlaceholderType(); + let aButtons = []; + let isLocalDesktop = window["AscDesktopEditor"] && window["AscDesktopEditor"]["IsSupportMedia"] && window["AscDesktopEditor"]["IsSupportMedia"](); const oRect = {x: 0, y: 0, w: this.extX, h: this.extY}; + let isDisabled = bMasterLtPh; switch (phType) { case null: { aButtons.push(AscCommon.PlaceholderButtonType.Table); @@ -2896,7 +2929,7 @@ nPageNum = this.Get_AbsolutePage() || 0; } if (aButtons.length > 0) { - aControls.push(AscCommon.CreateDrawingPlaceholder(this.Id, aButtons, nPageNum, oRect, this.transform)); + aControls.push(AscCommon.CreateDrawingPlaceholder(this.Id, aButtons, nPageNum, oRect, this.transform, isDisabled)); } }; CGraphicObjectBase.prototype.onSlicerUpdate = function (sName) { @@ -2998,6 +3031,12 @@ return this; }; + CGraphicObjectBase.prototype.getDrawingObjectsController = function() { + if(AscFormat.CShape.prototype.getDrawingObjectsController) { + return AscFormat.CShape.prototype.getDrawingObjectsController.call(this); + } + return null; + }; //TODO: refactor this methods: don't call functions from AscFormat.CShape.prototype @@ -3125,6 +3164,10 @@ }; CGraphicObjectBase.prototype.getBoundsByDrawing = function (bMorph) { const oCopy = this.bounds.copy(); + if(this.shdwSp) { + this.shdwSp.recalculateBounds(); + oCopy.checkByOther(this.shdwSp.bounds); + } if(!bMorph) { oCopy.l -= 3; oCopy.r += 3; @@ -3653,9 +3696,14 @@ CGraphicObjectBase.prototype.applyDrawingSize = function(props) { let oSpParent = this.parent; - let oXfrm = this.spPr.xfrm; AscFormat.CheckSpPrXfrm3(this); + let oXfrm = this.spPr.xfrm; + let scaleX = 1.0; + let scaleY = 1.0; + let oldExtX = oXfrm.extX; + let oldExtY = oXfrm.extY; if (!props.SizeRelH && AscFormat.isRealNumber(props.Width)) { + scaleX = props.Width / oXfrm.extX; oXfrm.setExtX(props.Width); if (oSpParent instanceof AscCommonWord.ParaDrawing) { oSpParent.SetSizeRelH({ @@ -3665,6 +3713,7 @@ } } if (!props.SizeRelV && AscFormat.isRealNumber(props.Height)) { + scaleY = props.Height / oXfrm.extY; oXfrm.setExtY(props.Height); if (oSpParent instanceof AscCommonWord.ParaDrawing) { oSpParent.SetSizeRelV({ @@ -3688,20 +3737,51 @@ } } this.ResetParametersWithResize(true); + if(this.isGroup()) { + oXfrm.setExtX(oldExtX); + oXfrm.setExtY(oldExtY); + this.changeSize(scaleX, scaleY); + } this.checkDrawingBaseCoords(); }; CGraphicObjectBase.prototype.checkPlaceholders = function(oPlaceholders) { + if(this.isDependentPlaceholder(oPlaceholders)) { + this.setRecalculateInfo(); + this.handleUpdateTheme(); + this.recalculate(); + return true; + } + return false; + }; + CGraphicObjectBase.prototype.isDependentPlaceholder = function(oPlaceholders) { + if(!this.isPlaceholder()) return false; let aHierarchy = this.getHierarchy(); for(let nIdx = 0; nIdx < aHierarchy.length; ++nIdx) { let oDrawing = aHierarchy[nIdx]; if(oDrawing && oPlaceholders[oDrawing.Id]) { - this.setRecalculateInfo(); - this.recalculate(); return true; } } return false; }; + CGraphicObjectBase.prototype.handleUpdateTheme = function() { + + }; + CGraphicObjectBase.prototype.changeSize = function (kw, kh) { + AscFormat.CShape.prototype.changeSize.call(this, kw, kh); + }; + CGraphicObjectBase.prototype.checkOnDeletePlaceholder = function(oPlaceholders) { + if(this.isDependentPlaceholder(oPlaceholders)) { + if(!(this.spPr && this.spPr.xfrm && this.spPr.xfrm.isNotNull())) { + AscFormat.CheckSpPrXfrm(this, true); + } + return true; + } + return false; + }; + CGraphicObjectBase.prototype.generateLocalDrawingPart = function () {}; + CGraphicObjectBase.prototype.generateSmartArtDrawingPart = function () {}; + CGraphicObjectBase.prototype.checkDrawingPartWithHistory = function () {}; var ANIM_LABEL_WIDTH_PIX = 22; var ANIM_LABEL_HEIGHT_PIX = 17; @@ -3729,24 +3809,24 @@ return AscDFH.historyitem_type_RelSizeAnchor; }; CRelSizeAnchor.prototype.setFromTo = function (fromX, fromY, toX, toY) { - History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_RelSizeAnchorFromX, this.fromX, fromX)); - History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_RelSizeAnchorFromY, this.fromY, fromY)); - History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_RelSizeAnchorToX, this.toX, toX)); - History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_RelSizeAnchorToY, this.toY, toY)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_RelSizeAnchorFromX, this.fromX, fromX)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_RelSizeAnchorFromY, this.fromY, fromY)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_RelSizeAnchorToX, this.toX, toX)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_RelSizeAnchorToY, this.toY, toY)); this.fromX = fromX; this.fromY = fromY; this.toX = toX; this.toY = toY; }; CRelSizeAnchor.prototype.setObject = function (object) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_RelSizeAnchorObject, this.object, object)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_RelSizeAnchorObject, this.object, object)); this.object = object; if (object) { object.setParent(this); } }; CRelSizeAnchor.prototype.setParent = function (object) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_RelSizeAnchorParent, this.parent, object)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_RelSizeAnchorParent, this.parent, object)); this.parent = object; }; CRelSizeAnchor.prototype.copy = function (oPr) { @@ -3816,24 +3896,24 @@ return AscDFH.historyitem_type_AbsSizeAnchor; }; CAbsSizeAnchor.prototype.setFromTo = function (fromX, fromY, extX, extY) { - History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_AbsSizeAnchorFromX, this.fromX, fromX)); - History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_AbsSizeAnchorFromY, this.fromY, fromY)); - History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_AbsSizeAnchorExtX, this.toX, extX)); - History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_AbsSizeAnchorExtY, this.toY, extY)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_AbsSizeAnchorFromX, this.fromX, fromX)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_AbsSizeAnchorFromY, this.fromY, fromY)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_AbsSizeAnchorExtX, this.toX, extX)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsDouble(this, AscDFH.historyitem_AbsSizeAnchorExtY, this.toY, extY)); this.fromX = fromX; this.fromY = fromY; this.toX = extX; this.toY = extY; }; CAbsSizeAnchor.prototype.setObject = function (object) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_AbsSizeAnchorObject, this.object, object)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_AbsSizeAnchorObject, this.object, object)); this.object = object; if (object) { object.setParent(this); } }; CAbsSizeAnchor.prototype.setParent = function (object) { - History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_AbsSizeAnchorParent, this.parent, object)); + AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_AbsSizeAnchorParent, this.parent, object)); this.parent = object; }; CAbsSizeAnchor.prototype.copy = function (oPr) { diff --git a/common/Drawings/Format/GroupShape.js b/common/Drawings/Format/GroupShape.js index b8be2e02fa..4d0764f80e 100644 --- a/common/Drawings/Format/GroupShape.js +++ b/common/Drawings/Format/GroupShape.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -511,7 +511,7 @@ CGroupShape.prototype.getResultScaleCoefficients = function () { if (this.recalcInfo.recalculateScaleCoefficients) { var cx, cy; - if (this.spPr.xfrm.isNotNullForGroup()) { + if (this.spPr && this.spPr.xfrm && this.spPr.xfrm.isNotNullForGroup()) { var dExtX = this.spPr.xfrm.extX, dExtY = this.spPr.xfrm.extY; @@ -1434,7 +1434,7 @@ } } }; - + CGroupShape.prototype.recalcSmartArtConnections = function () {}; CGroupShape.prototype.Refresh_RecalcData = function (oData) { if (oData) { switch (oData.Type) { @@ -1449,6 +1449,13 @@ case AscDFH.historyitem_GroupShapeRemoveFromSpTree: { if (!this.bDeleted) { this.handleUpdateSpTree(); + this.recalcSmartArtConnections(); + } + break; + } + case AscDFH.historyitem_SmartArtDrawing: { + if (!this.bDeleted) { + this.addToRecalculate(); } break; } @@ -1700,6 +1707,12 @@ } return oCurCandidate; }; + CGroupShape.prototype.checkDrawingPartWithHistory = function() {}; + CGroupShape.prototype.generateSmartArtDrawingPart = function () { + for (let i = 0; i < this.spTree.length; i += 1) { + this.spTree[i].generateSmartArtDrawingPart(); + } + }; //--------------------------------------------------------export---------------------------------------------------- window['AscFormat'] = window['AscFormat'] || {}; diff --git a/common/Drawings/Format/Image.js b/common/Drawings/Format/Image.js index b1dba4657e..d2eb020eed 100644 --- a/common/Drawings/Format/Image.js +++ b/common/Drawings/Format/Image.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -288,6 +288,41 @@ return ret; }; + CImageShape.prototype.convertToPdf = function () { + let copy = new AscPDF.CPdfImage(); + + copy.setParent(null); + copy.setBDeleted(false); + + if (this.nvPicPr) { + copy.setNvPicPr(this.nvPicPr.createDuplicate()); + } + if (this.spPr) { + copy.setSpPr(this.spPr.createDuplicate()); + copy.spPr.setParent(copy); + } + if (this.blipFill) { + copy.setBlipFill(this.blipFill.createDuplicate()); + } + if (this.style) { + copy.setStyle(this.style.createDuplicate()); + } + if (this.macro !== null) { + copy.setMacro(this.macro); + } + if (this.textLink !== null) { + copy.setTextLink(this.textLink); + } + if (this.clientData) { + copy.setClientData(this.clientData.createDuplicate()); + } + if (this.fLocksText !== null) { + copy.setFLocksText(this.fLocksText); + } + copy.setLocks(this.locks); + return copy; + }; + CImageShape.prototype.recalculateBrush = CShape.prototype.recalculateBrush; CImageShape.prototype.recalculatePen = function () { @@ -460,7 +495,7 @@ CImageShape.prototype.recalculateGeometry = function () { this.calcGeometry = null; - if (isRealObject(this.spPr.geometry)) { + if (isRealObject(this.spPr && this.spPr.geometry)) { this.calcGeometry = this.spPr.geometry; } else { var hierarchy = this.getHierarchy(); diff --git a/common/Drawings/Format/LockedCanvas.js b/common/Drawings/Format/LockedCanvas.js index 0655368d82..a57ca15d7f 100644 --- a/common/Drawings/Format/LockedCanvas.js +++ b/common/Drawings/Format/LockedCanvas.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/Format/OleObject.js b/common/Drawings/Format/OleObject.js index fcfa65b388..a570939f8e 100644 --- a/common/Drawings/Format/OleObject.js +++ b/common/Drawings/Format/OleObject.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/Format/Path.js b/common/Drawings/Format/Path.js index 88ce0bb723..e28c5a377d 100644 --- a/common/Drawings/Format/Path.js +++ b/common/Drawings/Format/Path.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -55,8 +55,6 @@ var HitInBezier4 = AscFormat.HitInBezier4; var HitInBezier3 = AscFormat.HitInBezier3; var MOVE_DELTA = AscFormat.MOVE_DELTA; - var History = AscCommon.History; - var cToRad2 = (Math.PI/60000)/180; @@ -273,32 +271,32 @@ AscFormat.InitClass(Path, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_P }; Path.prototype.setStroke = function(pr) { - History.CanAddChanges() && History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_PathSetStroke, this.stroke, pr)); + AscCommon.History.CanAddChanges() && AscCommon.History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_PathSetStroke, this.stroke, pr)); this.stroke = pr; }; Path.prototype.setExtrusionOk = function(pr) { - History.CanAddChanges() && History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_PathSetExtrusionOk, this.extrusionOk, pr)); + AscCommon.History.CanAddChanges() && AscCommon.History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_PathSetExtrusionOk, this.extrusionOk, pr)); this.extrusionOk = pr; }; Path.prototype.setFill = function(pr) { - History.CanAddChanges() && History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_PathSetFill, this.fill, pr)); + AscCommon.History.CanAddChanges() && AscCommon.History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_PathSetFill, this.fill, pr)); this.fill = pr; }; Path.prototype.setPathH = function(pr) { - History.CanAddChanges() && History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_PathSetPathH, this.pathH, pr)); + AscCommon.History.CanAddChanges() && AscCommon.History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_PathSetPathH, this.pathH, pr)); this.pathH = pr; }; Path.prototype.setPathW = function(pr) { - History.CanAddChanges() && History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_PathSetPathW, this.pathW, pr)); + AscCommon.History.CanAddChanges() && AscCommon.History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_PathSetPathW, this.pathW, pr)); this.pathW = pr; }; Path.prototype.addPathCommand = function(cmd) { - History.CanAddChanges() && History.Add(new CChangesDrawingsAddPathCommand(this, cmd, this.ArrPathCommandInfo.length)); + AscCommon.History.CanAddChanges() && AscCommon.History.Add(new CChangesDrawingsAddPathCommand(this, cmd, this.ArrPathCommandInfo.length)); this.ArrPathCommandInfo.push(cmd); }; Path.prototype.moveTo = function(x, y) diff --git a/common/Drawings/Format/Shape.js b/common/Drawings/Format/Shape.js index aed7ae8d60..b6a3b8ff64 100644 --- a/common/Drawings/Format/Shape.js +++ b/common/Drawings/Format/Shape.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -76,6 +76,22 @@ var dTextFitDelta = 3;// mm + function getSmartArtParagraphIndent(fontSize) { + if (fontSize >= 30) { + return 7.9; + } + if (fontSize >= 20) { + return 6.4; + } + if (fontSize >= 16) { + return 4.8; + } + if (fontSize >= 12) { + return 3.2; + } + return 1.6; + } + function CheckObjectLine(obj) { return (obj instanceof CShape && obj.spPr && obj.spPr.geometry && AscFormat.CheckLinePresetForParagraphAdd(obj.spPr.geometry.preset)); } @@ -186,6 +202,10 @@ return -1; } + if(object.canResize && !object.canResize()) { + return -1; + } + if (object.cropObject) { return hitToCropHandles(x, y, object); } @@ -423,6 +443,10 @@ oNewEndPr.Unifill = oNewEndPr.TextFill; oNewEndPr.TextFill = undefined; } + if (oNewEndPr.RStyle != undefined) { + oNewEndPr.RStyle = undefined; + } + oNewEndPr.FontScale = undefined; new_paragraph.TextPr.Set_Value(oNewEndPr); new_paragraph.Internal_Content_Remove2(0, new_paragraph.Content.length); ConvertParagraphContentToPPTX(paragraph.Content, new_paragraph, bIsAddMath, bRemoveHyperlink); @@ -717,6 +741,11 @@ aAllDrawings[i].GraphicObj.recalculate(); } } + let aTables = oDocContent.GetAllTables(); + for(let nIdx = 0; nIdx < aTables.length; ++nIdx) { + let oTable = aTables[nIdx]; + oTable.RecalcInfo.Recalc_AllCells(); + } oDocContent.Recalculate_Page(0, true); fHandleContent(oDocContent.Content, oMaxWidth); if (oMaxWidth.max_width === 0) { @@ -791,9 +820,7 @@ AscDFH.changesFactory[AscDFH.historyitem_ShapeSetNvSpPr] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ShapeSetSpPr] = AscDFH.CChangesDrawingsObject; - AscDFH.changesFactory[AscDFH.historyitem_ShapeSetShapeSmartArtPointInfo] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ShapeSetTxXfrm] = AscDFH.CChangesDrawingsObject; - AscDFH.changesFactory[AscDFH.historyitem_ShapeSetSmartArtPoint] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ShapeSetStyle] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ShapeSetTxBody] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_ShapeSetTextBoxContent] = AscDFH.CChangesDrawingsObject; @@ -809,12 +836,6 @@ AscDFH.drawingsChangesMap[AscDFH.historyitem_ShapeSetNvSpPr] = function (oClass, value) { oClass.nvSpPr = value; }; - AscDFH.drawingsChangesMap[AscDFH.historyitem_ShapeSetSmartArtPoint] = function (oClass, value) { - oClass.point = value; - }; - AscDFH.drawingsChangesMap[AscDFH.historyitem_ShapeSetShapeSmartArtPointInfo] = function (oClass, value) { - oClass.shapeSmartArtInfo = value; - }; AscDFH.drawingsChangesMap[AscDFH.historyitem_ShapeSetTxXfrm] = function (oClass, value) { oClass.txXfrm = value; }; @@ -959,18 +980,21 @@ CShape.prototype.setCustT = function (value) { var pointContent = this.getSmartArtPointContent(); if (pointContent) { - pointContent.forEach(function (point) { + pointContent.forEach(function (node) { + const point = node.point; if (point.prSet && point.prSet.custT !== value) { point.prSet.setCustT(value); } - }) + }); + this.applyCustTSettings(); } } CShape.prototype.setShapeSmartArtInfo = function (pr) { - AscCommon.History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_ShapeSetShapeSmartArtPointInfo, this.shapeSmartArtInfo, pr)); this.shapeSmartArtInfo = pr; - this.shapeSmartArtInfo.setParent(this); + if (this.shapeSmartArtInfo) { + this.shapeSmartArtInfo.setShape(this); + } } CShape.prototype.isActiveBlipFillPlaceholder = function () { const shapePoint = this.getSmartArtShapePoint(); @@ -978,7 +1002,8 @@ let isContentFill = false; const contentPoints = this.getSmartArtPointContent(); if (contentPoints && contentPoints[0]) { - isContentFill = contentPoints[0].spPr && contentPoints[0].spPr.Fill; + const contentPoint = contentPoints[0].point; + isContentFill = contentPoint.spPr && contentPoint.spPr.Fill; } return shapePoint.isBlipFillPlaceholder() && !(shapePoint.spPr && shapePoint.spPr.Fill) && !isContentFill; } @@ -1057,54 +1082,16 @@ CShape.prototype.convertToPPTX = function (drawingDocument, worksheet, bIsAddMath) { let c = new CShape(); - c.setWordShape(false); - c.setBDeleted(false); - c.setWorksheet(worksheet); - if (this.nvSpPr) { - c.setNvSpPr(this.nvSpPr.createDuplicate()); - } - if (this.spPr) { - c.setSpPr(this.spPr.createDuplicate()); - c.spPr.setParent(c); - } - if (this.style) { - c.setStyle(this.style.createDuplicate()); - } - if (this.textBoxContent) { - let tx_body = new AscFormat.CTextBody(); - tx_body.setParent(c); - if (this.bodyPr) { - tx_body.setBodyPr(this.bodyPr.createDuplicate()); - } - let new_content = new AscFormat.CDrawingDocContent(tx_body, drawingDocument, 0, 0, 0, 0, false, false, true); - let aContent = this.textBoxContent.Content; - let aNewParagraphs = []; - for (let nIdx = 0; nIdx < aContent.length; ++nIdx) { - let oCurElement = aContent[nIdx]; - if (oCurElement instanceof AscWord.Paragraph) { - let oParagraph = ConvertParagraphToPPTX(oCurElement, drawingDocument, new_content, bIsAddMath); - aNewParagraphs.push(oParagraph); - } - } - if (aNewParagraphs.length > 0) { - new_content.Internal_Content_RemoveAll(); - for (let nIdx = 0; nIdx < aNewParagraphs.length; ++nIdx) { - let oParagraph = aNewParagraphs[nIdx]; - new_content.Internal_Content_Add(nIdx, oParagraph, false); - } - } - tx_body.setContent(new_content); - c.setTxBody(tx_body); - } - if (worksheet) { - if (this.signatureLine) { - c.setSignature(this.signatureLine.copy()); - } - } + this._convertToPPTX(c, drawingDocument, worksheet, bIsAddMath); return c; }; CShape.prototype.convertToPdf = function (drawingDocument, worksheet, bIsAddMath) { let c = new AscPDF.CPdfShape(); + this._convertToPPTX(c, drawingDocument, worksheet, bIsAddMath); + return c; + }; + CShape.prototype._convertToPPTX = function(c, drawingDocument, worksheet, bIsAddMath) + { c.setWordShape(false); c.setBDeleted(false); c.setWorksheet(worksheet); @@ -1149,7 +1136,6 @@ c.setSignature(this.signatureLine.copy()); } } - return c; }; CShape.prototype.convertFromSmartArt = function (bForce) { if (AscFormat.SmartArt && !bForce) { @@ -1238,7 +1224,9 @@ this.txXfrm.setParent(this); } }; - + CShape.prototype.getModelId = function () { + return this.modelId; + }; CShape.prototype.setModelId = function (pr) { AscCommon.History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_ShapeSetModelId, this.modelId, pr)); this.modelId = pr; @@ -1286,6 +1274,10 @@ this.recalcInfo.recalculateTransformText = true; this.addToRecalculate(); }; + CShape.prototype.setUseBgFill = function (pr) { + AscCommon.History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_ShapeSetUseBgFill, this.useBgFill, pr)); + this.useBgFill = pr; + }; CShape.prototype.createTextBody = function () { var tx_body = new AscFormat.CTextBody(); @@ -1380,7 +1372,7 @@ var pointsCopy; for (var i = 0; i < pointContent.length; i += 1) { - var point = pointContent[i]; + var point = pointContent[i].point; if (point.prSet && point.prSet.custT) { options.custT = true; @@ -1416,7 +1408,8 @@ } } pointsCopy = txBody.createDuplicateForSmartArt(options); - pointContent.forEach(function (point, idx) { + pointContent.forEach(function (node, idx) { + const point = node.point; point.setT(pointsCopy[idx]) }); } @@ -2241,50 +2234,22 @@ CShape.prototype.checkTransformTextMatrix = function (oMatrix, oContent, oBodyPr, bWordArtTransform, bIgnoreInsets) { oMatrix.Reset(); - var _shape_transform = this.localTransform; - var _content_height = oContent.GetSummaryHeight(); - var _l, _t, _r, _b; - var _t_x_lt, _t_y_lt, _t_x_rt, _t_y_rt, _t_x_lb, _t_y_lb, _t_x_rb, _t_y_rb; - var l_ins = bIgnoreInsets ? 0 : (AscFormat.isRealNumber(oBodyPr.lIns) ? oBodyPr.lIns : 2.54); - var t_ins = bIgnoreInsets ? 0 : (AscFormat.isRealNumber(oBodyPr.tIns) ? oBodyPr.tIns : 1.27); - var r_ins = bIgnoreInsets ? 0 : (AscFormat.isRealNumber(oBodyPr.rIns) ? oBodyPr.rIns : 2.54); - var b_ins = bIgnoreInsets ? 0 : (AscFormat.isRealNumber(oBodyPr.bIns) ? oBodyPr.bIns : 1.27); - - var oRect = this.getTextRect(); - if (this.txXfrm) { - return this.checkTransformTextMatrixSmartArt(oMatrix, oContent, oBodyPr, bWordArtTransform, bIgnoreInsets); - } + let _shape_transform = this.localTransform; + let _content_height = oContent.GetSummaryHeight(); + let _l, _t, _r, _b; + let _t_x_lt, _t_y_lt, _t_x_rt, _t_y_rt, _t_x_lb, _t_y_lb, _t_x_rb, _t_y_rb; - if (this.bWordShape) { - var oPen = this.pen; - if (oPen) { - var penW = (oPen.w == null) ? 12700 : parseInt(oPen.w); - penW /= 36000.0; - switch (oPen.algn) { - case 1: { - break; - } - default: { - penW /= 2.0; - break; - } - } - l_ins += penW; - r_ins += penW; - t_ins += penW; - b_ins += penW; - } - } - let oForm = this.isForm && this.isForm() ? this.getInnerForm() : null; - if (oForm) { - let nFormHorPadding = this.getFormHorPadding(); - l_ins = nFormHorPadding; - r_ins = nFormHorPadding; - t_ins = 0; - b_ins = 0; + let oRect = this.getTextRect(); + if (this.txXfrm) { + return this.checkTransformTextMatrixSmartArt(oMatrix, oContent, oBodyPr, bWordArtTransform, bIgnoreInsets); } + let oInsets = this.getInsets({bIgnoreInsets: bIgnoreInsets, bodyPr: oBodyPr}); + let l_ins = oInsets.lIns; + let t_ins = oInsets.tIns; + let r_ins = oInsets.rIns; + let b_ins = oInsets.bIns; _l = oRect.l + l_ins; _t = oRect.t + t_ins; @@ -2340,6 +2305,7 @@ var oClipRect; var Diff = 1.6; + const oForm = this.isForm && this.isForm() ? this.getInnerForm() : null; if (oForm) { if (oForm.IsMultiLineForm()) _vertical_shift = 0; @@ -2810,7 +2776,8 @@ if (this.isObjectInSmartArt()) { var pointContent = this.getSmartArtPointContent(); if (pointContent && pointContent.length !== 0) { - return pointContent.every(function (point) { + return pointContent.every(function (node) { + const point = node.point; return point && point.prSet && point.prSet.phldr; }) } @@ -3042,11 +3009,18 @@ }; CShape.prototype.recalculateBrush = function () { - var compiled_style = this.getCompiledStyle(); - var RGBA = {R: 0, G: 0, B: 0, A: 255}; - var parents = this.getParentObjects(); - var oStyleBrush = null; - var oLin; + let parents = this.getParentObjects(); + let RGBA = {R: 0, G: 0, B: 0, A: 255}; + if(this.useBgFill) { + if(this.parent && this.parent.backgroundFill) { + this.brush = this.parent.backgroundFill.createDuplicate(); + this.brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, RGBA); + return; + } + } + let compiled_style = this.getCompiledStyle(); + let oStyleBrush = null; + let oLin; if (isRealObject(parents.theme) && isRealObject(compiled_style) && isRealObject(compiled_style.fillRef)) { this.brush = parents.theme.getFillStyle(compiled_style.fillRef.idx, compiled_style.fillRef.Color); if (this.brush) { @@ -3159,7 +3133,8 @@ || phldrType == AscFormat.phType_media) { return true; } - if (phldrType == AscFormat.phType_pic) { + if (phldrType == AscFormat.phType_pic + || phldrType == AscFormat.phType_tbl) { var _b_empty_text = true; if (this.txBody) { if (this.txBody.content) { @@ -3497,8 +3472,19 @@ var scale_scale_coefficients = this.group.getResultScaleCoefficients(); - this.x = scale_scale_coefficients.cx * (xfrm.offX - this.group.spPr.xfrm.chOffX); - this.y = scale_scale_coefficients.cy * (xfrm.offY - this.group.spPr.xfrm.chOffY); + + let offX = xfrm.offX; + let offY = xfrm.offY; + let oGrXfrm = null; + if(this.group.spPr) { + oGrXfrm = this.group.spPr.xfrm; + if(oGrXfrm) { + offX -= oGrXfrm.chOffX; + offY -= oGrXfrm.chOffY; + } + } + this.x = scale_scale_coefficients.cx * offX; + this.y = scale_scale_coefficients.cy * offY; this.extX = scale_scale_coefficients.cx * xfrm.extX; this.extY = scale_scale_coefficients.cy * xfrm.extY; this.rot = AscFormat.isRealNumber(xfrm.rot) ? xfrm.rot : 0; @@ -3846,53 +3832,16 @@ CShape.prototype.recalculateDocContent = function (oDocContent, oBodyPr) { - var nStartPage = this.Get_AbsolutePage ? this.Get_AbsolutePage() : 0; - var oRet = {w: 0, h: 0, contentH: 0}; - var l_ins, t_ins, r_ins, b_ins; - if (oBodyPr) { - l_ins = AscFormat.isRealNumber(oBodyPr.lIns) ? oBodyPr.lIns : 2.54; - r_ins = AscFormat.isRealNumber(oBodyPr.rIns) ? oBodyPr.rIns : 2.54; - t_ins = AscFormat.isRealNumber(oBodyPr.tIns) ? oBodyPr.tIns : 1.27; - b_ins = AscFormat.isRealNumber(oBodyPr.bIns) ? oBodyPr.bIns : 1.27; - } else { - l_ins = 2.54; - r_ins = 2.54; - t_ins = 1.27; - b_ins = 1.27; - } - if (this.bWordShape) { - var oPen = this.pen; - if (oPen) { - var penW = (oPen.w == null) ? 12700 : parseInt(oPen.w); - penW /= 36000.0; - switch (oPen.algn) { - case 1: { - break; - } - default: { - penW /= 2.0; - break; - } - } - - l_ins += penW; - r_ins += penW; - t_ins += penW; - b_ins += penW; - } - } - - let oForm = this.isForm && this.isForm() ? this.getInnerForm() : null; - if (oForm) { - let nFormHorPadding = this.getFormHorPadding(); - l_ins = nFormHorPadding; - r_ins = nFormHorPadding; - t_ins = 0; - b_ins = 0; - } - - var oRect = this.getTextRect(); - var w, h; + let nStartPage = this.Get_AbsolutePage ? this.Get_AbsolutePage() : 0; + let oRet = {w: 0, h: 0, contentH: 0}; + let oInsets = this.getInsets({bIgnoreInsets: false, bodyPr: oBodyPr}); + const oForm = this.isForm && this.isForm() ? this.getInnerForm() : null; + let l_ins = oInsets.lIns; + let t_ins = oInsets.tIns; + let r_ins = oInsets.rIns; + let b_ins = oInsets.bIns; + let oRect = this.getTextRect(); + let w, h; w = oRect.r - oRect.l - (l_ins + r_ins); h = oRect.b - oRect.t - (t_ins + b_ins); if (oBodyPr.wrap === AscFormat.nTWTNone) { @@ -4031,9 +3980,8 @@ }; CShape.prototype.getSmartArtPointContent = function () { - if (this.isObjectInSmartArt()) { - return this.getSmartArtInfo() && this.getSmartArtInfo().contentPoint; - } + const smartartInfo = this.getSmartArtInfo(); + return smartartInfo && smartartInfo.contentPoint; } CShape.prototype.getSmartArtShapePoint = function () { @@ -4062,7 +4010,7 @@ if (typeof AscCommonSlide !== "undefined" && AscCommonSlide.CNotes && this.parent instanceof AscCommonSlide.CNotes && this.nvSpPr.nvPr.ph.type === AscFormat.phType_body) { text = AscCommon.translateManager.getValue("Click to add notes"); } else if (this.isObjectInSmartArt()) { - text = AscCommon.translateManager.getValue(pointContent[0].prSet.phldrT || ''); + text = AscCommon.translateManager.getValue(pointContent[0].point.prSet.phldrT || ''); } else { text = this.getPlaceholderName(); } @@ -4227,47 +4175,222 @@ return currentFontSize; } - CShape.prototype.setFontSizeInSmartArt = function (fontSize, bSkipRecalculateContent2) { + CShape.prototype.setFontSizeInSmartArt = function (fontSize, bSkipRecalculateContent2, isParentWithChildren) { const oContent = this.txBody && this.txBody.content; if (this.txBody && oContent) { const currentFontSize = this.getFirstFontSize(); const oBodyPr = this.txBody.getBodyPr(); - if (oBodyPr) { + const pointContent = this.getSmartArtPointContent(); + if (oBodyPr && pointContent) { const paddings = {}; - const pointContent = this.getSmartArtPointContent(); - const point = pointContent && pointContent[0]; + const point = pointContent && pointContent[0].point; if (point) { const isRecalculateInsets = point.isRecalculateInsets(); - if (isRecalculateInsets.Top) { - const tInsetPerPt = oBodyPr.tIns / currentFontSize; - paddings.Top = tInsetPerPt * fontSize; - } - if (isRecalculateInsets.Bottom) { - const bInsetPerPt = oBodyPr.bIns / currentFontSize; - paddings.Bottom = bInsetPerPt * fontSize; - } - if (isRecalculateInsets.Left) { - const lInsetPerPt = oBodyPr.lIns / currentFontSize; - paddings.Left = lInsetPerPt * fontSize; - } - if (isRecalculateInsets.Right) { - const rInsetPerPt = oBodyPr.rIns / currentFontSize; - paddings.Right = rInsetPerPt * fontSize; + const smartArt = this.group && this.group.group; + if (smartArt && smartArt.isCanGenerateSmartArt()) { + const shapeInfo = this.getSmartArtInfo(); + const marginFactors = shapeInfo.getMarginFactors(); + if (isRecalculateInsets.Top && marginFactors.tMarg !== undefined) { + paddings.Top = g_dKoef_pt_to_mm * marginFactors.tMarg * fontSize; + } + if (isRecalculateInsets.Bottom && marginFactors.bMarg !== undefined) { + paddings.Bottom = g_dKoef_pt_to_mm * marginFactors.bMarg * fontSize; + } + if (isRecalculateInsets.Left && marginFactors.lMarg !== undefined) { + paddings.Left = g_dKoef_pt_to_mm * marginFactors.lMarg * fontSize; + } + if (isRecalculateInsets.Right && marginFactors.rMarg !== undefined) { + paddings.Right = g_dKoef_pt_to_mm * marginFactors.rMarg * fontSize; + } + } else { + if (isRecalculateInsets.Top) { + const tInsetPerPt = oBodyPr.tIns / currentFontSize; + paddings.Top = tInsetPerPt * fontSize; + } + if (isRecalculateInsets.Bottom) { + const bInsetPerPt = oBodyPr.bIns / currentFontSize; + paddings.Bottom = bInsetPerPt * fontSize; + } + if (isRecalculateInsets.Left) { + const lInsetPerPt = oBodyPr.lIns / currentFontSize; + paddings.Left = lInsetPerPt * fontSize; + } + if (isRecalculateInsets.Right) { + const rInsetPerPt = oBodyPr.rIns / currentFontSize; + paddings.Right = rInsetPerPt * fontSize; + } } } // In files layout.xml insets depend on font size. // While there is no recalculation, we consider new insets as a dependency on the previous font size. this.setPaddings(paddings, {bNotCopyToPoints: true}); } - const bOldApplyToAll = oContent.ApplyToAll; - oContent.ApplyToAll = true; - oContent.AddToParagraph(new AscCommonWord.ParaTextPr({FontSize: (Math.min(fontSize, 300))}), false); - oContent.ApplyToAll = bOldApplyToAll; + if (pointContent) { + this.applySmartArtFontSize(fontSize, isParentWithChildren); + } else { + const bOldApplyToAll = oContent.ApplyToAll; + oContent.ApplyToAll = true; + oContent.AddToParagraph(new AscCommonWord.ParaTextPr({FontSize:fontSize}), false); + oContent.ApplyToAll = bOldApplyToAll; + } + if (!bSkipRecalculateContent2) { this.recalculateContent2(); } } }; + CShape.prototype.getFirstCustTFontSize = function () { + const shapeInfo = this.getSmartArtInfo(); + const contentPoints = shapeInfo && shapeInfo.contentPoint; + if (contentPoints) { + let paragraphIndex = 0; + for (let i = 0; i < contentPoints.length; i++) { + const contentNode = contentPoints[i]; + const point = contentNode.point; + const contentLength = point.t && point.t.content && point.t.content.Content.length; + if (contentLength) { + if (point && point.prSet && point.prSet.custT) { + break; + } else { + paragraphIndex += contentLength; + } + } + } + const content = this.getDocContent(); + if (content) { + const item = content.Content[paragraphIndex]; + if (item) { + return item.Get_FirstTextPr2().FontSize; + } + } + } + }; + CShape.prototype.applyCustTSettings = function () { + const fontSize = this.getFirstCustTFontSize(); + const oContent = this.getDocContent(); + if (AscFormat.isRealNumber(fontSize) && oContent) { + this.applySmartArtPaddings(fontSize); + this.applyCustTFontSizeSettings(); + } + }; + + CShape.prototype.applyCustTFontSizeSettings = function () { + const contentPoints = this.getSmartArtPointContent(); + if (!contentPoints) { + return; + } + const oContent = this.txBody && this.txBody.content; + const shapeInfo = this.getSmartArtInfo(); + const nBulletParagraphIndex = this.getFirstBulletParagraphIndex(); + const bulletSpacingScale = shapeInfo.getChildrenSpacingScale(); + const paragraphSpacingScale = shapeInfo.getParentSpacingScale(); + + if (oContent && contentPoints && contentPoints.length) { + let startDepth; + let paragraphIndex = 0; + for (let i = 0; i < contentPoints.length; i++) { + const node = contentPoints[i]; + const point = node.point; + const pointContent = point.t && point.t.content; + if (paragraphIndex === nBulletParagraphIndex) { + startDepth = node.depth; + } + const deltaDepth = startDepth !== undefined ? node.depth - startDepth + 1 : 0; + for (let j = 0; j < pointContent.Content.length; j += 1) { + const oItem = oContent.Content[paragraphIndex]; + const fontSize = oItem.Get_FirstTextPr2().FontSize; + if (startDepth !== undefined) { + const indent = getSmartArtParagraphIndent(fontSize); + oItem.Set_Spacing({After: fontSize * bulletSpacingScale}, false); + oItem.Set_Ind({Left: deltaDepth * indent, FirstLine: -indent}, false); + } else { + oItem.Set_Spacing({After: fontSize * paragraphSpacingScale}, false); + oItem.Set_Ind({Left: 0, FirstLine: 0}, false); + } + paragraphIndex += 1; + } + } + } + }; + CShape.prototype.applySmartArtPaddings = function (fontSize) { + const oContent = this.txBody && this.txBody.content; + if (this.txBody && oContent) { + const oBodyPr = this.txBody.getBodyPr(); + const pointContent = this.getSmartArtPointContent(); + if (oBodyPr && pointContent) { + const paddings = {}; + const point = pointContent && pointContent[0].point; + if (point) { + const isRecalculateInsets = point.isRecalculateInsets(); + const shapeInfo = this.getSmartArtInfo(); + const marginFactors = shapeInfo.getMarginFactors(); + if (isRecalculateInsets.Top && marginFactors.tMarg !== undefined) { + paddings.Top = g_dKoef_pt_to_mm * marginFactors.tMarg * fontSize; + } + if (isRecalculateInsets.Bottom && marginFactors.bMarg !== undefined) { + paddings.Bottom = g_dKoef_pt_to_mm * marginFactors.bMarg * fontSize; + } + if (isRecalculateInsets.Left && marginFactors.lMarg !== undefined) { + paddings.Left = g_dKoef_pt_to_mm * marginFactors.lMarg * fontSize; + } + if (isRecalculateInsets.Right && marginFactors.rMarg !== undefined) { + paddings.Right = g_dKoef_pt_to_mm * marginFactors.rMarg * fontSize; + } + } + + this.setPaddings(paddings, {bNotCopyToPoints: true}); + } + } + } + CShape.prototype.applySmartArtFontSize = function (fontSize, isParentWithChildren) { + const contentPoints = this.getSmartArtPointContent(); + if (!contentPoints) { + return; + } + const oContent = this.txBody && this.txBody.content; + const shapeInfo = this.getSmartArtInfo(); + const nBulletParagraphIndex = this.getFirstBulletParagraphIndex(); + const mainParaTextPr = new AscCommonWord.ParaTextPr({FontSize: fontSize}); + let bulletTextPr = mainParaTextPr; + if (isParentWithChildren) { + const fontSizeScale = shapeInfo.getSecondaryFontSizeCoefficient(); + bulletTextPr = new AscCommonWord.ParaTextPr({FontSize: Math.round(fontSize * fontSizeScale)}); + } + const bulletFontSize = bulletTextPr.Value.FontSize; + const indent = getSmartArtParagraphIndent(bulletFontSize); + const bulletSpacingScale = shapeInfo.getChildrenSpacingScale(); + const paragraphSpacingScale = shapeInfo.getParentSpacingScale(); + + if (oContent && contentPoints && contentPoints.length) { + let startDepth; + let paragraphIndex = 0; + let firstLine = 0; + for (let i = 0; i < contentPoints.length; i++) { + const node = contentPoints[i]; + const point = node.point; + const pointContent = point.t && point.t.content; + if (paragraphIndex === nBulletParagraphIndex) { + startDepth = node.depth; + firstLine = -indent; + } + const deltaDepth = startDepth !== undefined ? node.depth - startDepth + 1 : 0; + for (let j = 0; j < pointContent.Content.length; j += 1) { + const oItem = oContent.Content[paragraphIndex]; + oItem.SetApplyToAll(true); + if (startDepth !== undefined) { + oItem.AddToParagraph(bulletTextPr, false); + oItem.Set_Spacing({After: bulletFontSize * bulletSpacingScale}, false); + } else { + oItem.AddToParagraph(mainParaTextPr, false); + oItem.Set_Spacing({After: fontSize * paragraphSpacingScale}, false); + } + oItem.Set_Ind({Left: deltaDepth * indent, FirstLine: firstLine}, false); + oItem.SetApplyToAll(false); + paragraphIndex += 1; + } + } + } + }; CShape.prototype.resetSmartArtMaxFontSize = function () { const oSmartArtInfo = this.getSmartArtInfo(); if (oSmartArtInfo) { @@ -4287,7 +4410,8 @@ return !paragraph.Is_Empty({SkipEnd: true, SkipPlcHldr: false}); }); if (bIsNotEmptyShape) { - arrPointContent.forEach(function (point) { + arrPointContent.forEach(function (node) { + const point = node.point; point.prSet.setPhldr(false); }) this.txBody.content2 = null; @@ -4299,15 +4423,23 @@ }; - CShape.prototype.getInsets = function (properties) { - const oBodyPr = properties.bodyPr || this.getBodyPr && this.getBodyPr(); + CShape.prototype.getInsets = function (properties) {; properties = properties || {}; + const oBodyPr = properties.bodyPr || this.getBodyPr && this.getBodyPr() let lIns = 0, tIns = 0, rIns = 0, bIns = 0; if (!properties.bIgnoreInsets) { - lIns = (AscFormat.isRealNumber(oBodyPr.lIns) ? oBodyPr.lIns : 2.54); - tIns = (AscFormat.isRealNumber(oBodyPr.tIns) ? oBodyPr.tIns : 1.27); - rIns = (AscFormat.isRealNumber(oBodyPr.rIns) ? oBodyPr.rIns : 2.54); - bIns = (AscFormat.isRealNumber(oBodyPr.bIns) ? oBodyPr.bIns : 1.27); + if(oBodyPr) { + lIns = (AscFormat.isRealNumber(oBodyPr.lIns) ? oBodyPr.lIns : 2.54); + tIns = (AscFormat.isRealNumber(oBodyPr.tIns) ? oBodyPr.tIns : 1.27); + rIns = (AscFormat.isRealNumber(oBodyPr.rIns) ? oBodyPr.rIns : 2.54); + bIns = (AscFormat.isRealNumber(oBodyPr.bIns) ? oBodyPr.bIns : 1.27); + } + else { + lIns = 2.54; + tIns = 1.27; + rIns = 2.54; + bIns = 1.27; + } } if (this.bWordShape) { @@ -4437,7 +4569,17 @@ } return false; }; - CShape.prototype.findFitFontSize = function (nMinFontSize, nMaxFontSize, bMax) { + CShape.prototype.getFirstBulletParagraphIndex = function () { + const oContent = this.getDocContent(); + for (let i = 0; i < oContent.Content.length; i++) { + const shapeParagraph = oContent.Content[i]; + if (shapeParagraph.Pr.Bullet && shapeParagraph.Pr.Bullet.bulletType.type === AscFormat.BULLET_TYPE_BULLET_CHAR) { + return i; + } + } + return -1; + }; + CShape.prototype.findFitFontSize = function (nMinFontSize, nMaxFontSize, bMax, isParentWithChildren) { if (nMinFontSize > nMaxFontSize) { return null; } @@ -4457,7 +4599,7 @@ let b = scalesForSmartArt.length - 1; let averageAmount = Math.floor((a + b) / 2); while (a !== averageAmount && b !== averageAmount) { - this.setFontSizeInSmartArt(scalesForSmartArt[averageAmount]); + this.setFontSizeInSmartArt(scalesForSmartArt[averageAmount], false, isParentWithChildren); let bCheck = this.compareWidthOfBoundsTextInSmartArt(bMax) || this.compareHeightOfBoundsTextInSmartArt(); if (bCheck) { @@ -4467,87 +4609,75 @@ } averageAmount = Math.floor((a + b) / 2); } - this.setFontSizeInSmartArt(nOldFontSize); + this.setFontSizeInSmartArt(scalesForSmartArt[averageAmount + 1], false, isParentWithChildren); + if (!this.compareWidthOfBoundsTextInSmartArt(bMax) && !this.compareHeightOfBoundsTextInSmartArt()) { + averageAmount += 1; + } + this.setFontSizeInSmartArt(nOldFontSize, false, isParentWithChildren); this.recalculateContent(); return scalesForSmartArt[averageAmount]; } return MAX_FONT_SIZE; }, this, []); }; - CShape.prototype.findFitFontSizeForSmartArt = function (bMax) { - return AscFormat.ExecuteNoHistory(function () { - const MAX_FONT_SIZE = 65; - const content = this.getCurrentDocContentInSmartArt(); - if (content) { - const nOldFontSize = this.getFirstFontSize(); - const scalesForSmartArt = Array((MAX_FONT_SIZE - 4) > 0 ? MAX_FONT_SIZE - 4 : 1).fill(0).map(function (e, ind) { - return ind + 5; - }); - let a = 0; - let b = scalesForSmartArt.length - 1; - let averageAmount = Math.floor((a + b) / 2); - const bNeedCheckWidth = this.checkFitContentForSmartArt(); - while (a !== averageAmount && b !== averageAmount) { - this.setFontSizeInSmartArt(scalesForSmartArt[averageAmount]); - let bCheck; - if (bNeedCheckWidth) { - bCheck = this.compareWidthOfBoundsTextInSmartArt(bMax) || this.compareHeightOfBoundsTextInSmartArt(); - } else { - bCheck = this.compareHeightOfBoundsTextInSmartArt(); - } + CShape.prototype.findFitFontSizeForSmartArt = function (isParentWithChildren) { + const oSmartArtInfo = this.getSmartArtInfo(); - if (bCheck) { - b = averageAmount; - } else { - a = averageAmount; - } - averageAmount = Math.floor((a + b) / 2); - } - this.setFontSizeInSmartArt(nOldFontSize); - this.recalculateContent(); - return scalesForSmartArt[averageAmount]; - } - return MAX_FONT_SIZE; - }, this, []); + const maxFontSize = oSmartArtInfo.getMaxConstrFontSize(oSmartArtInfo.getAdaptFontSizeInfo().contentFillingType === AscCommon.smartArtContentFillingType_onlyChildren); + const minFontSize = oSmartArtInfo.getMinConstrFontSize(); + return this.findFitFontSize(minFontSize, maxFontSize, false, isParentWithChildren); }; CShape.prototype.getShapesForFitText = function () { - return this.isObjectInSmartArt() ? this.group.group.getShapesForFitText(this) : []; + if (this.isObjectInSmartArt()) { + if (this.group.group.isCanGenerateSmartArt()) { + const smartArtInfo = this.getSmartArtInfo(); + return smartArtInfo.getAdaptFontSizeInfo(); + } + //todo + return {shapes: this.group.group.getShapesForFitText(this), contentFillingType: AscCommon.smartArtContentFillingType_onlyParent}; + } + return []; }; - CShape.prototype.setTruthFontSizeInSmartArt = function () { + CShape.prototype.isCanFitFontSize = function () { const arrMainContentPoints = this.getSmartArtPointContent(); - if (!(arrMainContentPoints && arrMainContentPoints.length)) return; - const bIsFitText = arrMainContentPoints.every(function (point) { - return point && point.prSet && (typeof point.prSet.phldrT === "string") && !point.prSet.custT && !point.prSet.phldr; - }); - let bIsPlaceholder = arrMainContentPoints.every(function (point) { - return point && point.prSet && (typeof point.prSet.phldrT === "string") && !point.prSet.custT && point.prSet.phldr; + if (!(arrMainContentPoints && arrMainContentPoints.length)) { + return false; + } + return arrMainContentPoints.every(function (node) { + const point = node.point; + return point && point.prSet && !point.prSet.custT; }); + }; - if (!bIsFitText && !bIsPlaceholder) { - return; - } - const oSmartArtInfo = this.getSmartArtInfo(); - if (oSmartArtInfo) { - oSmartArtInfo.setMaxFontSize(this.findFitFontSizeForSmartArt()); - } - const arrShapes = this.getShapesForFitText(); + function fitSmartArtShapes(arrShapes, isParentWithChildren) { const arrPlaceholders = []; const arrFitText = []; for (let i = 0; i < arrShapes.length; i += 1) { const oShape = arrShapes[i]; var contentPoints = oShape.getSmartArtPointContent(); - const isPlaceholder = contentPoints.every(function (point) { - return point && point.prSet && (typeof point.prSet.phldrT === "string") && !point.prSet.custT && point.prSet.phldr; - }); - const isNotPlaceholder = contentPoints.every(function (point) { - return point && point.prSet && (typeof point.prSet.phldrT === "string") && !point.prSet.custT && !point.prSet.phldr; + + const isNotPlaceholder = contentPoints.every(function (node) { + const point = node.point; + return point && point.prSet && !point.prSet.custT; + }) && contentPoints.some(function (node) { + const point = node.point; + return point && point.prSet && !point.prSet.phldr; }); - if (isPlaceholder) { - arrPlaceholders.push(oShape); - } else if (isNotPlaceholder) { - arrFitText.push(oShape); + if (isNotPlaceholder) { + const oContent = oShape.getDocContent(); + if (oContent && !oContent.Is_Empty({SkipEnd: true, SkipPlcHldr: false})) { + arrFitText.push(oShape); + } + } else { + const isPlaceholder = contentPoints.every(function (node) { + const point = node.point; + return point && point.prSet && (typeof point.prSet.phldrT === "string") && !point.prSet.custT && point.prSet.phldr; + }); + if (isPlaceholder) { + arrPlaceholders.push(oShape); + } } } @@ -4557,18 +4687,37 @@ const oShapeSmartArtInfo = oShape.getSmartArtInfo(); if (oShapeSmartArtInfo) { if (!AscFormat.isRealNumber(oShapeSmartArtInfo.maxFontSize)) { - oShapeSmartArtInfo.setMaxFontSize(oShape.findFitFontSizeForSmartArt()); + oShapeSmartArtInfo.setMaxFontSize(oShape.findFitFontSizeForSmartArt(isParentWithChildren)); } if (oShapeSmartArtInfo.maxFontSize < nFitFontSize) { nFitFontSize = oShapeSmartArtInfo.maxFontSize; } } } + const adaptRelationArrays = []; for (let i = 0; i < arrFitText.length; i += 1) { const oShape = arrFitText[i]; const nCurrentFontSize = oShape.getFirstFontSize(); + const smartArtInfo = oShape.getSmartArtInfo(); if (nCurrentFontSize !== nFitFontSize) { - oShape.setFontSizeInSmartArt(nFitFontSize, true); + oShape.setFontSizeInSmartArt(nFitFontSize, true, isParentWithChildren); + } else { + oShape.recalculate(); + } + + smartArtInfo.collectTextConstraintRelations(adaptRelationArrays); + } + + for (let i = 0; i < adaptRelationArrays.length; i += 1) { + const presNodeArray = adaptRelationArrays[i]; + if (presNodeArray.length) { + const editorShape = presNodeArray[0].contentNodes[0] && presNodeArray[0].contentNodes[0].getContentNode().getShape().editorShape; + if (editorShape) { + const smartArtInfo = editorShape.getSmartArtInfo(); + if (AscFormat.isRealNumber(smartArtInfo.maxFontSize)) { + editorShape.setTruthFontSizeInSmartArt(true); + } + } } } @@ -4578,16 +4727,44 @@ const oPlaceholderSmartArtInfo = oShape.getSmartArtInfo(); if (oPlaceholderSmartArtInfo) { if (!AscFormat.isRealNumber(oPlaceholderSmartArtInfo.maxFontSize)) { - oPlaceholderSmartArtInfo.setMaxFontSize(oShape.findFitFontSizeForSmartArt()); + oPlaceholderSmartArtInfo.setMaxFontSize(oShape.findFitFontSizeForSmartArt(isParentWithChildren)); } const nPlaceholderFontSize = Math.min(oPlaceholderSmartArtInfo.maxFontSize, nFitFontSize); if (nCurrentFontSize !== nPlaceholderFontSize) { - oShape.setFontSizeInSmartArt(nPlaceholderFontSize, true); + oShape.setFontSizeInSmartArt(nPlaceholderFontSize, true, isParentWithChildren); + } else { + oShape.recalculate(); } } else if (nCurrentFontSize !== nFitFontSize) { - oShape.setFontSizeInSmartArt(nFitFontSize, true); + oShape.setFontSizeInSmartArt(nFitFontSize, true, isParentWithChildren); + } else { + oShape.recalculate(); + } + } + } + CShape.prototype.setTruthFontSizeInSmartArt = function (updateAllMaxFontSize) { + let arrShapes; + if (updateAllMaxFontSize) { + arrShapes = this.getShapesForFitText(); + for (let i = 0; i < arrShapes.shapes.length; i += 1) { + const shape = arrShapes.shapes[i]; + const oSmartArtInfo = shape.getSmartArtInfo(); + if (oSmartArtInfo) { + oSmartArtInfo.setMaxFontSize(null); + } + } + } else { + if (!this.isCanFitFontSize()) { + return; + } + arrShapes = this.getShapesForFitText(); + const oSmartArtInfo = this.getSmartArtInfo(); + if (oSmartArtInfo) { + oSmartArtInfo.setMaxFontSize(null); } } + + fitSmartArtShapes(arrShapes.shapes, arrShapes.contentFillingType === AscCommon.smartArtContentFillingType_parentWithChildren); }; CShape.prototype.checkExtentsByDocContent = function (bForce, bNeedRecalc) { @@ -4758,7 +4935,8 @@ return !paragraph.Is_Empty({SkipEnd: true, SkipPlcHldr: false}); }); if (isNotEmptyShape) { - pointContent.forEach(function (point) { + pointContent.forEach(function (node) { + const point = node.point; point.prSet.setPhldr(false); }) this.txBody.content2 = null; @@ -5355,7 +5533,7 @@ this.isPlaceholder && this.isPlaceholder()) { bMasterPh = true; } - if ((!graphics.isSmartArtPreviewDrawer && !graphics.isPdf() && !this.bWordShape && (this.isEmptyPlaceholder() || bMasterPh) && !(this.parent && this.parent.kind === AscFormat.TYPE_KIND.NOTES) && !(this.pen && this.pen.Fill && this.pen.Fill.fill && !(this.pen.Fill.fill instanceof AscFormat.CNoFill)) && (graphics.IsNoDrawingEmptyPlaceholder !== true || bMasterPh) && !AscCommon.IsShapeToImageConverter) + if (/*(!(this.pen && this.pen.Fill && this.pen.Fill.fill && !(this.pen.Fill.fill instanceof AscFormat.CNoFill)) && AscCommon.IS_GENERATE_SMARTART_AND_TEXT_ON_OPEN) || */(!graphics.isSmartArtPreviewDrawer && !graphics.isPdf() && !this.bWordShape && (this.isEmptyPlaceholder() && !this.isObjectInSmartArt() || bMasterPh) && !(this.parent && this.parent.kind === AscFormat.TYPE_KIND.NOTES) && !(this.pen && this.pen.Fill && this.pen.Fill.fill && !(this.pen.Fill.fill instanceof AscFormat.CNoFill)) && (graphics.IsNoDrawingEmptyPlaceholder !== true || bMasterPh) && !AscCommon.IsShapeToImageConverter) || (Asc.editor.isPdfEditor() && !graphics.isPdf() && !graphics.isSmartArtPreviewDrawer && this.IsDrawing && this.IsDrawing() && this.ShouldDrawImaginaryBorder(graphics) && (graphics.IsNoDrawingEmptyPlaceholder !== true || bMasterPh) && !AscCommon.IsShapeToImageConverter)) { var drawingObjects = this.getDrawingObjectsController(); if (typeof editor !== "undefined" && editor && graphics.m_oContext !== undefined && graphics.m_oContext !== null && !graphics.isTrack() && (Asc.editor.isPdfEditor() || !drawingObjects || AscFormat.getTargetTextObject(drawingObjects) !== this)) { @@ -5930,6 +6108,9 @@ var unifill2 = AscFormat.CorrectUniFill(unifill, this.brush, this.getEditorType()); unifill2.convertToPPTXMods(); this.setFill(unifill2); + if(this.useBgFill) { + this.setUseBgFill(null); + } var point = this.getSmartArtShapePoint(); if (point) { point.setUniFill(unifill2); @@ -6753,6 +6934,91 @@ return true; }; + CShape.prototype.checkEditTextStyle = function (fDocContentMethod, params, bSelect) { + let nParentType = null; + if(this.parent && this.parent.getObjectType) { + nParentType = this.parent.getObjectType(); + } + if(nParentType !== AscDFH.historyitem_type_SlideMaster && + nParentType !== AscDFH.historyitem_type_SlideLayout) { + return false; + } + if(!this.isPlaceholder()) { + return false; + } + let oTxBody = this.txBody; + if(!oTxBody) { + return false; + } + let oContent = oTxBody.content; + if(!oContent) { + return false; + } + let oParaPrToApply = new AscWord.CParaPr(); + let bIncreaseFontSize = null; + let oDCP = AscFormat.CDrawingDocContent.prototype; + if(fDocContentMethod === oDCP.Set_ParagraphPresentationNumbering) { + oParaPrToApply.Bullet = params[0]; + } + else if(fDocContentMethod === oDCP.SetParagraphIndent) { + oParaPrToApply.Ind = new CParaInd(); + oParaPrToApply.Ind.Set_FromObject(params[0]); + } + else if(fDocContentMethod === oDCP.ClearParagraphFormatting) { + oParaPrToApply = null; + if(nParentType === AscDFH.historyitem_type_SlideMaster) { + return true; + } + } + else if(fDocContentMethod === oDCP.SetParagraphSpacing) { + oParaPrToApply.Spacing = new CParaSpacing(); + oParaPrToApply.Spacing.Set_FromObject(params[0]); + } + else if(fDocContentMethod === oDCP.IncreaseDecreaseFontSize) { + bIncreaseFontSize = params[0]; + } + else if(fDocContentMethod === oDCP.SetParagraphAlign) { + oParaPrToApply.Jc = params[0]; + } + else if(fDocContentMethod === CDocumentContent.prototype.AddToParagraph && params[0].Type === para_TextPr) { + oParaPrToApply.DefaultRunPr = params[0].Value; + } + else { + return false; + } + + let oTextStyles; + if(oTxBody.lstStyle) { + oTextStyles = oTxBody.lstStyle.createDuplicate(); + } + else { + oTextStyles = new AscFormat.TextListStyle(); + } + if(bSelect) { + let oLvls = {}; + let aParagraphs = []; + oContent.GetCurrentParagraph(false, aParagraphs, {}); + for(let nIdx = 0; nIdx < aParagraphs.length; ++nIdx) { + let oParagraph = aParagraphs[nIdx]; + let nLvl = 0; + if(AscFormat.isRealNumber(oParagraph.Pr.Lvl)) { + nLvl = oParagraph.Pr.Lvl; + } + if(!oLvls[nLvl]) { + oTextStyles.applyParaPr(nLvl, oParaPrToApply, bIncreaseFontSize, this); + oLvls[nLvl] = true; + } + } + } + else { + for(let nLvl = 0; nLvl < 9; ++nLvl) { + oTextStyles.applyParaPr(nLvl, oParaPrToApply, bIncreaseFontSize, this); + } + } + oTxBody.setLstStyle(oTextStyles); + return true; + }; + CShape.prototype.pasteFormatting = function (oFormatData) { if(!oFormatData) return; @@ -6953,6 +7219,7 @@ } return oCurCandidate; }; + CShape.prototype.checkDrawingPartWithHistory = function () {}; function CreateBinaryReader(szSrc, offset, srcLen) { var memoryData = AscCommon.Base64.decode(szSrc, true, srcLen, offset); @@ -7093,4 +7360,5 @@ window['AscFormat'].SaveContentSourceFormatting = SaveContentSourceFormatting; window['AscFormat'].hitToHandles = hitToHandles; window['AscFormat'].pHText = pHText; + window['AscFormat'].fitSmartArtShapes = fitSmartArtShapes; })(window); diff --git a/common/Drawings/Format/SlicerView.js b/common/Drawings/Format/SlicerView.js index 839331a6ff..6f5a15fd9d 100644 --- a/common/Drawings/Format/SlicerView.js +++ b/common/Drawings/Format/SlicerView.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/Format/TextBody.js b/common/Drawings/Format/TextBody.js index 23bdab5973..6ce55042dc 100644 --- a/common/Drawings/Format/TextBody.js +++ b/common/Drawings/Format/TextBody.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -232,6 +232,11 @@ if(Data.Type === AscDFH.historyitem_TextBodySetBodyPr) { this.recalcInfo.recalculateBodyPr = true; } + if(Data.Type === AscDFH.historyitem_TextBodySetLstStyle) { + if(this.content) { + this.content.Recalc_AllParagraphs_CompiledPr(); + } + } } }; CTextBody.prototype.isEmpty = function() { @@ -247,7 +252,7 @@ }; CTextBody.prototype.Get_AbsolutePage = function(CurPage) { if(this.parent && this.parent.Get_AbsolutePage) { - return this.parent.Get_AbsolutePage(); + return this.parent.Get_AbsolutePage(CurPage); } return 0;//TODO; }; @@ -317,7 +322,7 @@ }; CTextBody.prototype.draw = function(graphics) { if((!this.content || this.content.Is_Empty()) && !AscCommon.IsShapeToImageConverter && this.parent.isEmptyPlaceholder() && !this.checkCurrentPlaceholder()) { - if(graphics.IsNoDrawingEmptyPlaceholder !== true && graphics.IsNoDrawingEmptyPlaceholderText !== true && this.content2 && !graphics.isPdf()) { + if(/*AscCommon.IS_GENERATE_SMARTART_AND_TEXT_ON_OPEN || */graphics.IsNoDrawingEmptyPlaceholder !== true && graphics.IsNoDrawingEmptyPlaceholderText !== true && this.content2 && !graphics.isPdf()) { if(!graphics.isSupportTextDraw()) { let _w2 = this.content2.XLimit; let _h2 = this.content2.GetSummaryHeight(); @@ -541,7 +546,7 @@ return max_width; }; CTextBody.prototype.getMaxContentWidth = function(maxWidth, bLeft) { - this.content.Reset(0, 0, maxWidth - 0.01, 20000); + this.content.Reset(0, 0, maxWidth, 20000); if(bLeft) { this.content.SetApplyToAll(true); this.content.SetParagraphAlign(AscCommon.align_Left); @@ -556,7 +561,7 @@ max_width = paragraph_lines[j].Ranges[0].W; } } - return max_width + 0.01; + return Math.max(max_width, 0.01); }; CTextBody.prototype.GetPrevElementEndInfo = function(CurElement) { return null; diff --git a/common/Drawings/GraphicsBase.js b/common/Drawings/GraphicsBase.js index 8a95a8e205..30426908c1 100644 --- a/common/Drawings/GraphicsBase.js +++ b/common/Drawings/GraphicsBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/HatchPattern.js b/common/Drawings/HatchPattern.js index c2f35bbfb6..61287438e1 100644 --- a/common/Drawings/HatchPattern.js +++ b/common/Drawings/HatchPattern.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/Hit.js b/common/Drawings/Hit.js index 4a56d4e705..de7d24b7b9 100644 --- a/common/Drawings/Hit.js +++ b/common/Drawings/Hit.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/Metafile.js b/common/Drawings/Metafile.js index 457090d05a..ad4730c808 100644 --- a/common/Drawings/Metafile.js +++ b/common/Drawings/Metafile.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1205,6 +1205,16 @@ this.WriteXmlAttributeDouble(name, val) } }; + this.WriteXmlNullableAttributeAnyNumber = function(name, val) + { + if (null !== val && undefined !== val) { + if (val === Infinity) { + this.WriteXmlAttributeString(name, "INF"); + } else { + this.WriteXmlAttributeDouble(name, val); + } + } + }; this.WriteXmlNullableAttributeNumber = function(name, val) { if (null !== val && undefined !== val) { @@ -1544,6 +1554,8 @@ this.ctAnnotFieldDelete = 165; this.ctWidgetsInfo = 166; + this.ctHeadings = 169; + this.ctPageWidth = 200; this.ctPageHeight = 201; @@ -3373,6 +3385,111 @@ } }; + function WriteHeadings(memory, headings) + { + if (!headings.length) + return; + + memory.WriteByte(CommandType.ctHeadings); + + let nStartPos = memory.GetCurPosition(); + memory.Skip(4); + + memory.WriteLong(headings.length); + for (let i = 0; i < headings.length; ++i) + { + memory.WriteLong(headings[i].lvl); + memory.WriteLong(headings[i].page); + memory.WriteDouble(headings[i].x); + memory.WriteDouble(headings[i].y); + memory.WriteString(headings[i].desc); + } + + let nEndPos = memory.GetCurPosition(); + memory.Seek(nStartPos); + memory.WriteLong(nEndPos - nStartPos); + memory.Seek(nEndPos); + } + + function AddHeading(headings, posXY, lvl, text) + { + if (!posXY) + return; + + let x = posXY.X; + let y = posXY.Y; + if (posXY.Transform) + { + x = posXY.Transform.TransformPointX(posXY.X, posXY.Y); + y = posXY.Transform.TransformPointY(posXY.X, posXY.Y); + } + + headings.push({ + lvl : lvl, + page : posXY.PageNum, + x : x, + y : y, + desc : text + }); + } + + function GetHeadingsByHeadings(logicDocument) + { + let docOutline = logicDocument.GetDocumentOutline(); + let isUse = docOutline.IsUse(); + if (!isUse) + docOutline.SetUse(true); + + let count = docOutline.GetElementsCount(); + let headings = []; + for (let i = 0; i < count; ++i) + { + let posXY = docOutline.GetDestinationXY(i); + AddHeading(headings, posXY, docOutline.GetLevel(i), docOutline.GetText(i)); + } + + if (!isUse) + docOutline.SetUse(false); + + return headings; + } + + function GetHeadingsByBookmarks(logicDocument) + { + let bookmarkManager = logicDocument.GetBookmarksManager(); + + let count = bookmarkManager.GetCount(); + let headings = []; + for (let i = 0; i < count; ++i) + { + let name = bookmarkManager.GetName(i); + if (bookmarkManager.IsHiddenBookmark(name)) + continue; + + let bookmarkStart = bookmarkManager.GetBookmarkStart(i); + if (!bookmarkStart) + continue; + + let posXY = bookmarkStart.GetDestinationXY(); + AddHeading(headings, posXY, 0, name); + } + + return headings; + } + CDocumentRenderer.prototype.AddHeadings = function(logicDocument, byHeadings) + { + if (!logicDocument) + return; + + let headings; + if (byHeadings) + headings = GetHeadingsByHeadings(logicDocument); + else + headings = GetHeadingsByBookmarks(logicDocument); + + WriteHeadings(this.Memory, headings); + }; + var MATRIX_ORDER_PREPEND = 0; var MATRIX_ORDER_APPEND = 1; diff --git a/common/Drawings/States.js b/common/Drawings/States.js index e17bd707cc..c4546d5945 100644 --- a/common/Drawings/States.js +++ b/common/Drawings/States.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1044,6 +1044,7 @@ RotateState.prototype = History.Create_NewPoint(AscDFH.historydescription_CommonDrawings_CopyCtrl); for(i = 0; i < tracks.length; ++i) { + tracks[i].checkDrawingPartWithHistory(); copy = tracks[i].originalObject.copy(oCopyPr); oIdMap[tracks[i].originalObject.Id] = copy.Id; this.drawingObjects.drawingObjects.getWorksheetModel && copy.setWorksheet(this.drawingObjects.drawingObjects.getWorksheetModel()); @@ -1241,6 +1242,7 @@ RotateState.prototype = this.drawingObjects.checkSelectedObjectsAndCallback(function () { for(i = 0; i < tracks.length; ++i){ + tracks[i].checkDrawingPartWithHistory(); tracks[i].trackEnd(false, bFlag); } if(tracks.length === 1 && tracks[0].chartSpace){ diff --git a/common/Drawings/TextDrawer.js b/common/Drawings/TextDrawer.js index 0b4b3288e5..7189ab3850 100644 --- a/common/Drawings/TextDrawer.js +++ b/common/Drawings/TextDrawer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/TrackObjects/AdjustmentTracks.js b/common/Drawings/TrackObjects/AdjustmentTracks.js index 0dd75683d8..ef8514820b 100644 --- a/common/Drawings/TrackObjects/AdjustmentTracks.js +++ b/common/Drawings/TrackObjects/AdjustmentTracks.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -308,6 +308,7 @@ XYAdjustmentTrack.prototype.trackEnd = function() } }; +XYAdjustmentTrack.prototype.checkDrawingPartWithHistory = function () {}; function PolarAdjustmentTrack(originalShape, adjIndex, bTextWarp) { @@ -527,6 +528,7 @@ function PolarAdjustmentTrack(originalShape, adjIndex, bTextWarp) } }; + this.checkDrawingPartWithHistory = function () {}; } PolarAdjustmentTrack.prototype.getBounds = XYAdjustmentTrack.prototype.getBounds; diff --git a/common/Drawings/TrackObjects/ConnectorTrack.js b/common/Drawings/TrackObjects/ConnectorTrack.js index fce462fb9d..77b4060e51 100644 --- a/common/Drawings/TrackObjects/ConnectorTrack.js +++ b/common/Drawings/TrackObjects/ConnectorTrack.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/TrackObjects/GeometryEditTrack.js b/common/Drawings/TrackObjects/GeometryEditTrack.js index ab516d67d4..dee636c793 100644 --- a/common/Drawings/TrackObjects/GeometryEditTrack.js +++ b/common/Drawings/TrackObjects/GeometryEditTrack.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -504,7 +504,15 @@ return {OffX: dOffX, OffY: dOffY}; }; - + EditShapeGeometryTrack.prototype.checkDrawingPartWithHistory = function () { + if (this.originalObject.checkDrawingPartWithHistory) { + const newObject = this.originalObject.checkDrawingPartWithHistory(); + if (newObject) { + this.originalObject = newObject; + this.originalShape = newObject; + } + } + }; EditShapeGeometryTrack.prototype.trackEnd = function(bWord) { this.addCommandsInPathInfo(); //set new extents diff --git a/common/Drawings/TrackObjects/MoveTracks.js b/common/Drawings/TrackObjects/MoveTracks.js index 67e7e902e4..732e096414 100644 --- a/common/Drawings/TrackObjects/MoveTracks.js +++ b/common/Drawings/TrackObjects/MoveTracks.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -251,7 +251,16 @@ function MoveShapeImageTrack(originalObject) } this.overlayObject.draw(overlay); }; - + this.checkDrawingPartWithHistory = function () { + if (this.originalObject.checkDrawingPartWithHistory) { + + const newObject = this.originalObject.checkDrawingPartWithHistory(); + if (newObject) { + this.originalObject = newObject; + this.originalShape = newObject; + } + } + }; this.trackEnd = function(bWord, bNoResetCnx) { if(!this.bIsTracked) @@ -574,7 +583,11 @@ function MoveGroupTrack(originalObject) bounds_checker.Bounds.extY = this.originalObject.extY; return bounds_checker.Bounds; }; - + this.checkDrawingPartWithHistory = function () { + if (this.originalObject.checkDrawingPartWithHistory) { + this.originalObject.checkDrawingPartWithHistory(); + } + }; this.trackEnd = function(bWord) { if(!this.bIsTracked){ @@ -659,23 +672,24 @@ function MoveComment(comment) boundsChecker.Bounds.extY = H; return boundsChecker.Bounds; }; + this.checkDrawingPartWithHistory = function () {}; } function MoveAnnotationTrack(originalObject) { this.bIsTracked = false; this.originalObject = originalObject; - this.x = originalObject._pagePos.x; - this.y = originalObject._pagePos.y; - this.viewer = editor.getDocumentRenderer(); + this.x = originalObject._origRect[0]; + this.y = originalObject._origRect[1]; + this.viewer = Asc.editor.getDocumentRenderer(); this.objectToDraw = originalObject.LazyCopy(); this.pageIndex = originalObject.GetPage(); this.track = function(dx, dy, pageIndex) { this.bIsTracked = true; - this.x = this.originalObject._pagePos.x + dx * AscCommon.g_dKoef_mm_to_pix; - this.y = this.originalObject._pagePos.y + dy * AscCommon.g_dKoef_mm_to_pix; + this.x = originalObject._origRect[0] + dx * g_dKoef_mm_to_pt; + this.y = originalObject._origRect[1] + dy * g_dKoef_mm_to_pt; this.pageIndex = pageIndex; this.initCanvas(); @@ -790,6 +804,7 @@ function MoveAnnotationTrack(originalObject) { return {x: this.x, y: this.y}; }; + this.checkDrawingPartWithHistory = function () {}; this.initCanvas(true); } @@ -903,6 +918,7 @@ function MoveChartObjectTrack(oObject, oChartSpace) boundsChecker.Bounds.extY = oObject.extY; return boundsChecker.Bounds; }; + this.checkDrawingPartWithHistory = function () {}; } @@ -1001,6 +1017,7 @@ function MoveChartObjectTrack(oObject, oChartSpace) oBounds.extY = oBounds.max_y - oBounds.min_y; return oBounds; }; + CGuideTrack.prototype.checkDrawingPartWithHistory = function () {}; //--------------------------------------------------------export---------------------------------------------------- window['AscFormat'] = window['AscFormat'] || {}; diff --git a/common/Drawings/TrackObjects/NewShapeTracks.js b/common/Drawings/TrackObjects/NewShapeTracks.js index 39ca5a9709..5ae42a02aa 100644 --- a/common/Drawings/TrackObjects/NewShapeTracks.js +++ b/common/Drawings/TrackObjects/NewShapeTracks.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -109,7 +109,7 @@ SHAPE_ASPECTS["accentBorderCallout2"] = 914400/612648; SHAPE_ASPECTS["accentBorderCallout3"] = 914400/612648; -function NewShapeTrack(presetGeom, startX, startY, theme, master, layout, slide, pageIndex, drawingsController, nPlaceholderType, bVertical) +function NewShapeTrack(presetGeom, startX, startY, theme, master, layout, slide, pageIndex, drawingsController, nPlaceholderType, bVertical, bSkipCheckConnector) { this.presetGeom = presetGeom; this.startX = startX; @@ -141,7 +141,7 @@ function NewShapeTrack(presetGeom, startX, startY, theme, master, layout, slide, AscFormat.ExecuteNoHistory(function(){ - if(this.drawingsController && !this.drawingsController.document){ + if(!bSkipCheckConnector && this.drawingsController && !this.drawingsController.document){ this.bConnector = AscFormat.isConnectorPreset(presetGeom); if(this.bConnector){ @@ -688,10 +688,18 @@ function NewShapeTrack(presetGeom, startX, startY, theme, master, layout, slide, { if(this.presetGeom && this.presetGeom.indexOf("textRect") === 0) { + let isPdf = Asc.editor.isPdfEditor(); + shape.spPr.setGeometry(AscFormat.CreateGeometry("rect")); shape.setTxBox(true); var fill, ln; - if(!drawingObjects || !drawingObjects.cSld) + if((drawingObjects && drawingObjects.cSld) || isPdf) + { + fill = new AscFormat.CUniFill(); + fill.setFill(new AscFormat.CNoFill()); + shape.spPr.setFill(fill); + } + else { if(!bFromWord) { @@ -712,13 +720,7 @@ function NewShapeTrack(presetGeom, startX, startY, theme, master, layout, slide, ln.Fill.fill.setColor(new AscFormat.CUniColor()); ln.Fill.fill.color.setColor(new AscFormat.CPrstColor()); ln.Fill.fill.color.color.setId("black"); - shape.spPr.setLn(ln); - } - else - { - fill = new AscFormat.CUniFill(); - fill.setFill(new AscFormat.CNoFill()); - shape.spPr.setFill(fill); + shape.spPr.setLn(ln); } var body_pr = new AscFormat.CBodyPr(); body_pr.setDefault(); diff --git a/common/Drawings/TrackObjects/PolyLine.js b/common/Drawings/TrackObjects/PolyLine.js index d0a31ce265..f5f3017762 100644 --- a/common/Drawings/TrackObjects/PolyLine.js +++ b/common/Drawings/TrackObjects/PolyLine.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/TrackObjects/ResizeTracks.js b/common/Drawings/TrackObjects/ResizeTracks.js index 326ab0e517..cb837c1d76 100644 --- a/common/Drawings/TrackObjects/ResizeTracks.js +++ b/common/Drawings/TrackObjects/ResizeTracks.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -522,43 +522,36 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController // этот метод обрабатывает данный случай и корректирует координаты let oFreeText = this.originalObject.group; - let oFreeTextRect = oFreeText.GetTextBoxRect(true).map(function(measure) { - return measure * AscCommon.g_dKoef_pix_to_mm; + let oFreeTextRect = oFreeText.GetTextBoxRect().map(function(measure) { + return measure * g_dKoef_pt_to_mm; }); let aCallout = oFreeText.GetCallout(); let oExitPoint = undefined; // перпендикулярная линия выходящая из freetext аннотации let oCalloutArrowPt = undefined; // x2, y2 точка линии (точка начала стрелки) let oCalloutArrowEndPt = undefined; // x1, y1 точка линии (точка конца стрелки) - let oViewer = Asc.editor.getDocumentRenderer(); - let nPage = oFreeText.GetPage(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom * AscCommon.g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom * AscCommon.g_dKoef_pix_to_mm; if (aCallout && aCallout.length == 6) { // точка выхода callout из аннотации oExitPoint = { - x: (aCallout[2 * 2]) * nScaleX, - y: (aCallout[2 * 2 + 1]) * nScaleY + x: (aCallout[2 * 2]) * g_dKoef_pt_to_mm, + y: (aCallout[2 * 2 + 1]) * g_dKoef_pt_to_mm }; // x2, y2 линии oCalloutArrowPt = { - x: aCallout[1 * 2] * nScaleX, - y: (aCallout[1 * 2 + 1]) * nScaleY + x: aCallout[1 * 2] * g_dKoef_pt_to_mm, + y: (aCallout[1 * 2 + 1]) * g_dKoef_pt_to_mm }; oCalloutArrowEndPt = { - x: aCallout[0 * 2] * nScaleX, - y: (aCallout[0 * 2 + 1]) * nScaleY + x: aCallout[0 * 2] * g_dKoef_pt_to_mm, + y: (aCallout[0 * 2 + 1]) * g_dKoef_pt_to_mm } } else { return; } - let nFreeTextW = oFreeTextRect[2] - oFreeTextRect[0]; - let nFreeTextH = oFreeTextRect[3] - oFreeTextRect[1]; - if (this.numberHandle == 4) { // если x начала стрелки находится в пределах ректа аннотации то фиксируем x if (oCalloutArrowPt.x < oFreeTextRect[0] || oCalloutArrowPt.x > oFreeTextRect[2]) { @@ -574,8 +567,8 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController this.correctXYForPdfFreeText = function(x, y) { let oFreeText = this.originalObject.group; let aCallout = oFreeText.GetCallout(true); - let aCalloutMM = aCallout ? aCallout.map(function(measure) {return measure * AscCommon.g_dKoef_pix_to_mm}) : undefined; - let aTextBoxRectMM = oFreeText.GetTextBoxRect(true).map(function(measure) {return measure * AscCommon.g_dKoef_pix_to_mm}); + let aCalloutMM = aCallout ? aCallout.map(function(measure) {return measure * g_dKoef_pt_to_mm}) : undefined; + let aTextBoxRectMM = oFreeText.GetTextBoxRect().map(function(measure) {return measure * g_dKoef_pt_to_mm}); let nExitPos = oFreeText.GetCalloutExitPos(); if (!aCalloutMM) @@ -968,7 +961,7 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController this.resizedflipV = false; } - if (Asc.editor.isPdfEditor() && this.originalObject.IsPdfObject) { + if (Asc.editor.isPdfEditor() && this.originalObject.IsAnnot()) { let xMin = this.resizedPosX; let xMax = this.resizedPosX + this.resizedExtX; let yMin = this.resizedPosY; @@ -1284,6 +1277,11 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController return; } + if (this.originalObject.IsAnnot && this.originalObject.IsAnnot()) { + // changed size in SetRect method + return; + } + if(this.originalObject.animMotionTrack) { this.originalObject.updateAnimation(this.resizedPosX, this.resizedPosY, @@ -1565,6 +1563,14 @@ function ResizeTrackShapeImage(originalObject, cardDirection, drawingsController } }; + this.checkDrawingPartWithHistory = function () { + if (this.originalObject.checkDrawingPartWithHistory) { + const newObject = this.originalObject.checkDrawingPartWithHistory(); + if (newObject) { + this.originalObject = newObject; + } + } + }; }, this, []); } @@ -2295,6 +2301,15 @@ function ResizeTrackGroup(originalObject, cardDirection, parentTrack) }; + this.checkDrawingPartWithHistory = function () { + if (this.originalObject.getObjectType && this.originalObject.getObjectType() === AscDFH.historyitem_type_SmartArt) { + this.originalObject.checkDrawingPartWithHistory(); + } + for(var i = 0; i < this.childs.length; ++i) + { + this.childs[i].checkDrawingPartWithHistory(); + } + }; }, this, []); @@ -2455,6 +2470,7 @@ function ShapeForResizeInGroup(originalObject, parentTrack) if(this.parentTrack) global_MatrixTransformer.MultiplyAppend(t, this.parentTrack.transform); }; + this.checkDrawingPartWithHistory = function () {}; }, this, []); } diff --git a/common/Drawings/TrackObjects/RotateTracks.js b/common/Drawings/TrackObjects/RotateTracks.js index 958e94474f..3a2933b27d 100644 --- a/common/Drawings/TrackObjects/RotateTracks.js +++ b/common/Drawings/TrackObjects/RotateTracks.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -510,6 +510,14 @@ function RotateTrackShapeImage(originalObject) boundsChecker.Bounds.extY = this.originalObject.extY; return boundsChecker.Bounds; } + this.checkDrawingPartWithHistory = function () { + if (this.originalObject.checkDrawingPartWithHistory) { + const newObject = this.originalObject.checkDrawingPartWithHistory(); + if (newObject) { + this.originalObject = newObject; + } + } + }; } function RotateTrackGroup(originalObject) @@ -654,6 +662,11 @@ function RotateTrackGroup(originalObject) } this.originalObject.spPr.xfrm.setRot(this.angle); } + this.checkDrawingPartWithHistory = function () { + if (this.originalObject.checkDrawingPartWithHistory) { + this.originalObject.checkDrawingPartWithHistory() + } + }; } function Chart3dAdjustTrack(oChartSpace, numHandle, startX, startY) @@ -935,6 +948,7 @@ function Chart3dAdjustTrack(oChartSpace, numHandle, startX, startY) } oChartSpace.changeView3d(this.view3D.createDuplicate()); } + this.checkDrawingPartWithHistory = function () {}; } //--------------------------------------------------------export---------------------------------------------------- diff --git a/common/Drawings/TrackObjects/Spline.js b/common/Drawings/TrackObjects/Spline.js index 8df6d183b9..51584ed909 100644 --- a/common/Drawings/TrackObjects/Spline.js +++ b/common/Drawings/TrackObjects/Spline.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Drawings/WorkEvents.js b/common/Drawings/WorkEvents.js index 5cd7712eb6..eaa6d9cbe4 100644 --- a/common/Drawings/WorkEvents.js +++ b/common/Drawings/WorkEvents.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -67,7 +67,7 @@ var isUsePointerEvents = true; if (AscBrowser.isChrome && (AscBrowser.chromeVersion <= 70)) // xp isUsePointerEvents = false; - else if (AscBrowser.isSafari && (AscBrowser.safariVersion < 17004001)) + else if (AscBrowser.isSafari && (AscBrowser.safariVersion < 15000000)) isUsePointerEvents = false; else if (AscBrowser.isIE) isUsePointerEvents = false; @@ -104,6 +104,7 @@ this.Y = 0; // позиция курсора Y this.Button = g_mouse_button_left; // кнопка мыши + this.ButtonOverride = -1; this.Type = g_mouse_event_type_move; // тип евента this.AltKey = false; // нажата ли кнопка alt @@ -333,6 +334,8 @@ function getMouseButton(e) { + if (-1 !== global_mouseEvent.ButtonOverride) + return global_mouseEvent.ButtonOverride; var res = e.button; return (res && -1 !== res) ? res : 0; } @@ -755,8 +758,9 @@ return oEvent.defaultPrevented; } - function PaintMessageLoop(interval) + function PaintMessageLoop(interval, api) { + this.isUseInterval = api.isMobileVersion !== true; this.interval = interval || 40; this.id = null; @@ -772,7 +776,7 @@ window.oCancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || null; - this.isUseRequestAnimationFrame = AscCommon.AscBrowser.isChrome; + this.isUseRequestAnimationFrame = AscCommon.AscBrowser.isChrome || AscCommon.AscBrowser.isSafari; if (this.isUseRequestAnimationFrame && !this.requestAnimationFrame) this.isUseRequestAnimationFrame = false; @@ -819,7 +823,7 @@ PaintMessageLoop.prototype._animation = function() { var now = Date.now(); - if (-1 === this.requestAnimationOldTime || (now >= (this.requestAnimationOldTime + 40)) || (now < this.requestAnimationOldTime)) + if (!this.isUseInterval || -1 === this.requestAnimationOldTime || (now >= (this.requestAnimationOldTime + this.interval)) || (now < this.requestAnimationOldTime)) { this.requestAnimationOldTime = now; this.engine(); diff --git a/common/ExternalDataLoader.js b/common/ExternalDataLoader.js index b3de9bb88c..92e3066341 100644 --- a/common/ExternalDataLoader.js +++ b/common/ExternalDataLoader.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/GlobalLoaders.js b/common/GlobalLoaders.js index 705919db67..d0fc99113f 100644 --- a/common/GlobalLoaders.js +++ b/common/GlobalLoaders.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -330,6 +330,50 @@ info && info.LoadFontsFromServer(this); } }; + + this.LoadFonts = function(fonts, callback) + { + let fontMap = {} + + if (fonts && Array.isArray(fonts)) + { + for (let i = 0; i < fonts.length; ++i) + { + let name = fonts[i]; + fontMap[name] = AscFonts.g_fontApplication.GetFontInfo(name); + fontMap[name].NeedStyles = 15; + } + } + else + { + for (let name in fonts) + { + fontMap[name] = AscFonts.g_fontApplication.GetFontInfo(name); + fontMap[name].NeedStyles = 15; + } + } + + + let globalLoader = this; + + let checkLoaded = function() + { + let needLoad = 0; + for (let name in fontMap) + { + if (!fontMap[name].CheckFontLoadStyles(globalLoader)) + delete fontMap[name]; + else + ++needLoad; + } + + if (needLoad) + setTimeout(checkLoaded, 50); + else if (callback) + callback(); + }; + checkLoaded(); + } } function CGlobalImageLoader() @@ -424,16 +468,16 @@ } // сначала заполним массив - if (this.ThemeLoader == null) - this.Api.asyncImagesDocumentStartLoaded(); - else - this.ThemeLoader.asyncImagesStartLoaded(); this.images_loading = []; for (let id in images) { this.images_loading[this.images_loading.length] = AscCommon.getFullImageSrc2(images[id]); } + if (this.ThemeLoader == null) + this.Api.asyncImagesDocumentStartLoaded(this.images_loading); + else + this.ThemeLoader.asyncImagesStartLoaded(this.images_loading); if (!this.bIsAsyncLoadDocumentImages) { diff --git a/common/HistoryCommon.js b/common/HistoryCommon.js index 708f8883d1..946c71fa18 100644 --- a/common/HistoryCommon.js +++ b/common/HistoryCommon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1210,6 +1210,7 @@ break; case AscDFH.historydescription_Document_ConvertTableToText: sString = "Document_ConvertTableToText"; + break; case AscDFH.historydescription_Document_ResolveAllComments: sString = "Document_ResolveAllComments"; break; @@ -1224,6 +1225,7 @@ break; case AscDFH.historydescription_Document_ConvertMathView: sString = "Document_ConvertMathView"; + break; case AscDFH.historydescription_Document_ConvertMathDisplayMode: sString = "Document_ConvertMathDisplayMode"; break; @@ -1291,13 +1293,37 @@ sString = "Document_ComplexField_MergeFormat"; break; case AscDFH.historydescription_Presentation_ResetSlideBackground: - sString = "historydescription_Presentation_ResetSlideBackground"; + sString = "Presentation_ResetSlideBackground"; break; case AscDFH.historydescription_Presentation_ApplyBackgroundToAll: - sString = "historydescription_Presentation_ApplyBackgroundToAll"; + sString = "Presentation_ApplyBackgroundToAll"; break; case AscDFH.historydescription_Presentation_ShowMasterShapes: - sString = "historydescription_Presentation_ShowMasterShapes"; + sString = "Presentation_ShowMasterShapes"; + break; + case AscDFH.historydescription_BuilderScript: + sString = "BuilderScript"; + break; + case AscDFH.historydescription_Document_AddRemoveBeforeAfterParagraph: + sString = "Document_AddRemoveBeforeAfterParagraph"; + break; + case AscDFH.historydescription_Document_SectionPageNumFormat: + sString = "Document_SectionPageNumFormat"; + break; + case AscDFH.historydescription_Document_SetPageColor: + sString = "Document_SetPageColor"; + break; + case AscDFH.historydescription_Document_InsertTextFromFile: + sString = "Document_InsertTextFromFile"; + break; + case AscDFH.historydescription_Document_AddComplexField: + sString = "Document_AddComplexField"; + break; + case AscDFH.historydescription_Document_EditComplexFieldInstruction: + sString = "Document_EditComplexFieldInstruction"; + break; + case AscDFH.historydescription_Collaborative_DeletedTextRecovery: + sString = "Collaborative_DeletedTextRecovery"; break; } return sString; @@ -1325,11 +1351,12 @@ // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - window['AscDFH'].historyitem_recalctype_Inline = 0; // Изменения произошли в обычном тексте (с верхним классом CDocument) - window['AscDFH'].historyitem_recalctype_Flow = 1; // Изменения произошли в "плавающем" объекте - window['AscDFH'].historyitem_recalctype_HdrFtr = 2; // Изменения произошли в колонтитуле - window['AscDFH'].historyitem_recalctype_Drawing = 3; // Изменения произошли в drawing'е - window['AscDFH'].historyitem_recalctype_NotesEnd = 4; // Изменение произошли в сносках, которые идут в конце документа + window['AscDFH'].historyitem_recalctype_Inline = 0; // Изменения произошли в обычном тексте (с верхним классом CDocument) + window['AscDFH'].historyitem_recalctype_Flow = 1; // Изменения произошли в "плавающем" объекте + window['AscDFH'].historyitem_recalctype_HdrFtr = 2; // Изменения произошли в колонтитуле + window['AscDFH'].historyitem_recalctype_Drawing = 3; // Изменения произошли в drawing'е + window['AscDFH'].historyitem_recalctype_NotesEnd = 4; // Изменение произошли в сносках, которые идут в конце документа + window['AscDFH'].historyitem_recalctype_FromStart = 0xFFFF; // Изменения требуют полного пересчета документа с самого начала //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // @@ -1406,7 +1433,9 @@ window['AscDFH'].historyitem_type_GlossaryDocument = 67 << 16; window['AscDFH'].historyitem_type_DocPart = 68 << 16; window['AscDFH'].historyitem_type_Endnotes = 69 << 16; - + window['AscDFH'].historyitem_type_ParagraphPermStart = 70 << 16; + window['AscDFH'].historyitem_type_ParagraphPermEnd = 71 << 16; + window['AscDFH'].historyitem_type_CommonShape = 1000 << 16; // Этот класс добавлен для элементов, у которых нет конкретного класса window['AscDFH'].historyitem_type_ColorMod = 1001 << 16; @@ -1610,6 +1639,68 @@ window['AscDFH'].historyitem_type_MarkerLayout = 1199 << 16; window['AscDFH'].historyitem_type_TimelineSlicerView = 1200 << 16; + + window['AscDFH'].historyitem_type_Address = 1201 << 16; + window['AscDFH'].historyitem_type_AxisUnits = 1202 << 16; + window['AscDFH'].historyitem_type_AxisUnitsLabel = 1200 << 16; + window['AscDFH'].historyitem_type_Binning = 1203 << 16; + window['AscDFH'].historyitem_type_CategoryAxisScaling = 1204 << 16; + window['AscDFH'].historyitem_type_ChartData = 1205 << 16; + window['AscDFH'].historyitem_type_Clear = 1206 << 16; + window['AscDFH'].historyitem_type_Copyrights = 1207 << 16; + window['AscDFH'].historyitem_type_Data = 1208 << 16; + window['AscDFH'].historyitem_type_DataLabel = 1209 << 16; + window['AscDFH'].historyitem_type_DataLabelHidden = 1200 << 16; + window['AscDFH'].historyitem_type_DataLabels = 1210 << 16; + window['AscDFH'].historyitem_type_DataLabelVisibilities = 1211 << 16; + window['AscDFH'].historyitem_type_DataPoint = 1212 << 16; + window['AscDFH'].historyitem_type_FormatOverride = 1213 << 16; + window['AscDFH'].historyitem_type_FormatOverrides = 1214 << 16; + window['AscDFH'].historyitem_type_Formula = 1215 << 16; + window['AscDFH'].historyitem_type_GeoCache = 1216 << 16; + window['AscDFH'].historyitem_type_GeoChildEntities = 1217 << 16; + window['AscDFH'].historyitem_type_GeoChildEntitiesQuery = 1218 << 16; + window['AscDFH'].historyitem_type_GeoChildEntitiesQueryResult = 1219 << 16; + window['AscDFH'].historyitem_type_GeoChildEntitiesQueryResults = 1220 << 16; + window['AscDFH'].historyitem_type_GeoChildTypes = 1221 << 16; + window['AscDFH'].historyitem_type_GeoData = 1222 << 16; + window['AscDFH'].historyitem_type_GeoDataEntityQuery = 1223 << 16; + window['AscDFH'].historyitem_type_GeoDataEntityQueryResult = 1224 << 16; + window['AscDFH'].historyitem_type_GeoDataEntityQueryResults = 1225 << 16; + window['AscDFH'].historyitem_type_GeoDataPointQuery = 1226 << 16; + window['AscDFH'].historyitem_type_GeoDataPointToEntityQuery = 1227 << 16; + window['AscDFH'].historyitem_type_GeoDataPointToEntityQueryResult = 1228 << 16; + window['AscDFH'].historyitem_type_GeoDataPointToEntityQueryResults = 1229 << 16; + window['AscDFH'].historyitem_type_Geography = 1230 << 16; + window['AscDFH'].historyitem_type_GeoHierarchyEntity = 1231 << 16; + window['AscDFH'].historyitem_type_GeoLocation = 1232 << 16; + window['AscDFH'].historyitem_type_GeoLocationQuery = 1233 << 16; + window['AscDFH'].historyitem_type_GeoLocationQueryResult = 1234 << 16; + window['AscDFH'].historyitem_type_GeoLocationQueryResults = 1235 << 16; + window['AscDFH'].historyitem_type_GeoLocations = 1236 << 16; + window['AscDFH'].historyitem_type_GeoPolygon = 1237 << 16; + window['AscDFH'].historyitem_type_GeoPolygons = 1238 << 16; + window['AscDFH'].historyitem_type_Gridlines = 1239 << 16; + window['AscDFH'].historyitem_type_Dimension = 1240 << 16; + window['AscDFH'].historyitem_type_NumericDimension = 1241 << 16; + window['AscDFH'].historyitem_type_PercentageColorPosition = 1242 << 16; + window['AscDFH'].historyitem_type_PlotAreaRegion = 1243 << 16; + window['AscDFH'].historyitem_type_PlotSurface = 1244 << 16; + window['AscDFH'].historyitem_type_Series = 1245 << 16; + window['AscDFH'].historyitem_type_SeriesElementVisibilities = 1246 << 16; + window['AscDFH'].historyitem_type_SeriesLayoutProperties = 1247 << 16; + window['AscDFH'].historyitem_type_Statistics = 1248 << 16; + window['AscDFH'].historyitem_type_StringDimension = 1249 << 16; + window['AscDFH'].historyitem_type_Subtotals = 1250 << 16; + window['AscDFH'].historyitem_type_TextData = 1251 << 16; + window['AscDFH'].historyitem_type_TickMarks = 1252 << 16; + window['AscDFH'].historyitem_type_ValueAxisScaling = 1253 << 16; + window['AscDFH'].historyitem_type_ValueColorEndPosition = 1254 << 16; + window['AscDFH'].historyitem_type_ValueColorMiddlePosition = 1255 << 16; + window['AscDFH'].historyitem_type_ValueColorPositions = 1256 << 16; + window['AscDFH'].historyitem_type_ValueColors = 1257 << 16; + + window['AscDFH'].historyitem_type_DocumentMacros = 2000 << 16; window['AscDFH'].historyitem_type_PrSet = 2001 << 16; window['AscDFH'].historyitem_type_CCommonDataList = 2002 << 16; @@ -1625,8 +1716,6 @@ window['AscDFH'].historyitem_type_LayoutDef = 2012 << 16; window['AscDFH'].historyitem_type_CatLst = 2013 << 16; window['AscDFH'].historyitem_type_SCat = 2014 << 16; - window['AscDFH'].historyitem_type_ClrData = 2015 << 16; - window['AscDFH'].historyitem_type_Desc = 2016 << 16; window['AscDFH'].historyitem_type_LayoutNode = 2017 << 16; window['AscDFH'].historyitem_type_Alg = 2018 << 16; window['AscDFH'].historyitem_type_Param = 2019 << 16; @@ -1658,12 +1747,6 @@ window['AscDFH'].historyitem_type_ColorsDef = 2047 << 16; window['AscDFH'].historyitem_type_ColorDefStyleLbl = 2048 << 16; window['AscDFH'].historyitem_type_ClrLst = 2049 << 16; - window['AscDFH'].historyitem_type_EffectClrLst = 2050 << 16; - window['AscDFH'].historyitem_type_FillClrLst = 2051 << 16; - window['AscDFH'].historyitem_type_LinClrLst = 2052 << 16; - window['AscDFH'].historyitem_type_TxEffectClrLst = 2053 << 16; - window['AscDFH'].historyitem_type_TxFillClrLst = 2054 << 16; - window['AscDFH'].historyitem_type_TxLinClrLst = 2056 << 16; window['AscDFH'].historyitem_type_ColorsDefHdr = 2057 << 16; window['AscDFH'].historyitem_type_ColorsDefHdrLst = 2058 << 16; window['AscDFH'].historyitem_type_StyleDef = 2059 << 16; @@ -1685,7 +1768,6 @@ window['AscDFH'].historyitem_type_StyleDefHdrLst = 2075 << 16; window['AscDFH'].historyitem_type_StyleDefHdr = 2076 << 16; window['AscDFH'].historyitem_type_BackdropAnchor = 2077 << 16; - window['AscDFH'].historyitem_type_StyleData = 2078 << 16; window['AscDFH'].historyitem_type_SampData = 2079 << 16; window['AscDFH'].historyitem_type_ForEach = 2080 << 16; window['AscDFH'].historyitem_type_ResizeHandles = 2081 << 16; @@ -1696,16 +1778,11 @@ window['AscDFH'].historyitem_type_ExtrusionClr = 2086 << 16; window['AscDFH'].historyitem_type_ContourClr = 2087 << 16; window['AscDFH'].historyitem_type_SmartArt = 2088 << 16; - window['AscDFH'].historyitem_type_CCommonDataClrList = 2089 << 16; window['AscDFH'].historyitem_type_BuNone = 2090 << 16; window['AscDFH'].historyitem_type_SmartArtDrawing = 2091 << 16; window['AscDFH'].historyitem_type_DiagramData = 2092 << 16; window['AscDFH'].historyitem_type_FunctionValue = 2093 << 16; window['AscDFH'].historyitem_type_PointInfo = 2094 << 16; - window['AscDFH'].historyitem_type_ShapeSmartArtInfo = 2095 << 16; - window['AscDFH'].historyitem_type_SmartArtTree = 2096 << 16; - window['AscDFH'].historyitem_type_SmartArtNode = 2097 << 16; - window['AscDFH'].historyitem_type_SmartArtNodeData = 2098 << 16; window['AscDFH'].historyitem_type_BuBlip = 2099 << 16; window['AscDFH'].historyitem_type_VMLArc = 2099 << 16; @@ -1738,13 +1815,26 @@ window['AscDFH'].historyitem_type_PDF_Document = 2210 << 16; window['AscDFH'].historyitem_type_Pdf_Form = 2211 << 16; window['AscDFH'].historyitem_type_Pdf_Comment = 2212 << 16; - window['AscDFH'].historyitem_type_Pdf_Ink = 2213 << 16; - window['AscDFH'].historyitem_type_Pdf_Annot = 2214 << 16; - window['AscDFH'].historyitem_type_Pdf_Pushbutton = 2215 << 16; - window['AscDFH'].historyitem_type_Pdf_Line = 2216 << 16; - window['AscDFH'].historyitem_type_Pdf_List_Form = 2217 << 16; - window['AscDFH'].historyitem_Pdf_FreeText = 2218 << 16; - window['AscDFH'].historyitem_Pdf_Drawing = 2219 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot = 2213 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Ink = 2214 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Line = 2215 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_FreeText = 2216 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Text = 2217 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Circle = 2218 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Square = 2219 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Polygon = 2220 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Polyline = 2221 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Highlight = 2222 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Underline = 2223 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Strikeout = 2224 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Squiggly = 2225 << 16; + window['AscDFH'].historyitem_type_Pdf_Annot_Caret = 2226 << 16; + window['AscDFH'].historyitem_type_Pdf_Pushbutton = 2227 << 16; + window['AscDFH'].historyitem_type_Pdf_List_Form = 2228 << 16; + window['AscDFH'].historyitem_type_Pdf_Drawing = 2229 << 16; + window['AscDFH'].historyitem_type_Pdf_Page = 2230 << 16; + + window['AscDFH'].historyitem_type_CustomProperties = 2301 << 16; @@ -2454,6 +2544,7 @@ window['AscDFH'].historyitem_ChartSpace_RemoveUserShape = window['AscDFH'].historyitem_type_ChartSpace | 19; window['AscDFH'].historyitem_ChartSpace_ChartStyle = window['AscDFH'].historyitem_type_ChartSpace | 20; window['AscDFH'].historyitem_ChartSpace_ChartColors = window['AscDFH'].historyitem_type_ChartSpace | 21; + window['AscDFH'].historyitem_ChartSpace_SetChartData = window['AscDFH'].historyitem_type_ChartSpace | 22; window['AscDFH'].historyitem_Legend_SetLayout = window['AscDFH'].historyitem_type_Legend | 1; window['AscDFH'].historyitem_Legend_AddLegendEntry = window['AscDFH'].historyitem_type_Legend | 2; @@ -2461,6 +2552,7 @@ window['AscDFH'].historyitem_Legend_SetOverlay = window['AscDFH'].historyitem_type_Legend | 4; window['AscDFH'].historyitem_Legend_SetSpPr = window['AscDFH'].historyitem_type_Legend | 5; window['AscDFH'].historyitem_Legend_SetTxPr = window['AscDFH'].historyitem_type_Legend | 6; + window['AscDFH'].historyitem_Legend_SetAlign = window['AscDFH'].historyitem_type_Legend | 7; window['AscDFH'].historyitem_Layout_SetH = window['AscDFH'].historyitem_type_Layout | 1; window['AscDFH'].historyitem_Layout_SetHMode = window['AscDFH'].historyitem_type_Layout | 2; @@ -2505,17 +2597,18 @@ window['AscDFH'].historyitem_Marker_SetSpPr = window['AscDFH'].historyitem_type_Marker | 2; window['AscDFH'].historyitem_Marker_SetSymbol = window['AscDFH'].historyitem_type_Marker | 3; - window['AscDFH'].historyitem_PlotArea_AddChart = window['AscDFH'].historyitem_type_PlotArea | 1; - window['AscDFH'].historyitem_PlotArea_SetCatAx = window['AscDFH'].historyitem_type_PlotArea | 2; - window['AscDFH'].historyitem_PlotArea_SetDateAx = window['AscDFH'].historyitem_type_PlotArea | 3; - window['AscDFH'].historyitem_PlotArea_SetDTable = window['AscDFH'].historyitem_type_PlotArea | 4; - window['AscDFH'].historyitem_PlotArea_SetLayout = window['AscDFH'].historyitem_type_PlotArea | 5; - window['AscDFH'].historyitem_PlotArea_SetSerAx = window['AscDFH'].historyitem_type_PlotArea | 6; - window['AscDFH'].historyitem_PlotArea_SetSpPr = window['AscDFH'].historyitem_type_PlotArea | 7; - window['AscDFH'].historyitem_PlotArea_SetValAx = window['AscDFH'].historyitem_type_PlotArea | 8; - window['AscDFH'].historyitem_PlotArea_AddAxis = window['AscDFH'].historyitem_type_PlotArea | 9; - window['AscDFH'].historyitem_PlotArea_RemoveChart = window['AscDFH'].historyitem_type_PlotArea | 10; - window['AscDFH'].historyitem_PlotArea_RemoveAxis = window['AscDFH'].historyitem_type_PlotArea | 11; + window['AscDFH'].historyitem_PlotArea_AddChart = window['AscDFH'].historyitem_type_PlotArea | 1; + window['AscDFH'].historyitem_PlotArea_SetCatAx = window['AscDFH'].historyitem_type_PlotArea | 2; + window['AscDFH'].historyitem_PlotArea_SetDateAx = window['AscDFH'].historyitem_type_PlotArea | 3; + window['AscDFH'].historyitem_PlotArea_SetDTable = window['AscDFH'].historyitem_type_PlotArea | 4; + window['AscDFH'].historyitem_PlotArea_SetLayout = window['AscDFH'].historyitem_type_PlotArea | 5; + window['AscDFH'].historyitem_PlotArea_SetSerAx = window['AscDFH'].historyitem_type_PlotArea | 6; + window['AscDFH'].historyitem_PlotArea_SetSpPr = window['AscDFH'].historyitem_type_PlotArea | 7; + window['AscDFH'].historyitem_PlotArea_SetValAx = window['AscDFH'].historyitem_type_PlotArea | 8; + window['AscDFH'].historyitem_PlotArea_AddAxis = window['AscDFH'].historyitem_type_PlotArea | 9; + window['AscDFH'].historyitem_PlotArea_RemoveChart = window['AscDFH'].historyitem_type_PlotArea | 10; + window['AscDFH'].historyitem_PlotArea_RemoveAxis = window['AscDFH'].historyitem_type_PlotArea | 11; + window['AscDFH'].historyitem_PlotArea_SetPlotAreaRegion = window['AscDFH'].historyitem_type_PlotArea | 12; window['AscDFH'].historyitem_NumFmt_SetFormatCode = window['AscDFH'].historyitem_type_NumFmt | 1; window['AscDFH'].historyitem_NumFmt_SetSourceLinked = window['AscDFH'].historyitem_type_NumFmt | 2; @@ -2667,6 +2760,7 @@ window['AscDFH'].historyitem_NumLit_SetFormatCode = window['AscDFH'].historyitem_type_NumLit | 1; window['AscDFH'].historyitem_NumLit_AddPt = window['AscDFH'].historyitem_type_NumLit | 2; window['AscDFH'].historyitem_NumLit_SetPtCount = window['AscDFH'].historyitem_type_NumLit | 3; + window['AscDFH'].historyitem_NumLit_SetName = window['AscDFH'].historyitem_type_NumLit | 4; window['AscDFH'].historyitem_NumericPoint_SetFormatCode = window['AscDFH'].historyitem_type_NumericPoint | 1; window['AscDFH'].historyitem_NumericPoint_SetIdx = window['AscDFH'].historyitem_type_NumericPoint | 2; @@ -2695,6 +2789,7 @@ window['AscDFH'].historyitem_StrCache_AddPt = window['AscDFH'].historyitem_type_StrCache | 1; window['AscDFH'].historyitem_StrCache_SetPtCount = window['AscDFH'].historyitem_type_StrCache | 2; + window['AscDFH'].historyitem_StrCache_SetName = window['AscDFH'].historyitem_type_StrCache | 3; window['AscDFH'].historyitem_StrPoint_SetIdx = window['AscDFH'].historyitem_type_StrPoint | 1; window['AscDFH'].historyitem_StrPoint_SetVal = window['AscDFH'].historyitem_type_StrPoint | 2; @@ -2822,6 +2917,7 @@ window['AscDFH'].historyitem_ChartText_SetRich = window['AscDFH'].historyitem_type_ChartText | 1; window['AscDFH'].historyitem_ChartText_SetStrRef = window['AscDFH'].historyitem_type_ChartText | 2; + window['AscDFH'].historyitem_ChartText_SetTxData = window['AscDFH'].historyitem_type_ChartText | 3; window['AscDFH'].historyitem_ShapeStyle_SetLnRef = window['AscDFH'].historyitem_type_ShapeStyle | 1; window['AscDFH'].historyitem_ShapeStyle_SetFillRef = window['AscDFH'].historyitem_type_ShapeStyle | 2; @@ -2936,10 +3032,9 @@ window['AscDFH'].historyitem_ShapeSetTextLink = window['AscDFH'].historyitem_type_Shape | 13; window['AscDFH'].historyitem_ShapeSetModelId = window['AscDFH'].historyitem_type_Shape | 14; window['AscDFH'].historyitem_ShapeSetTxXfrm = window['AscDFH'].historyitem_type_Shape | 15; - window['AscDFH'].historyitem_ShapeSetSmartArtPoint = window['AscDFH'].historyitem_type_Shape | 16; window['AscDFH'].historyitem_ShapeSetFLocksText = window['AscDFH'].historyitem_type_Shape | 17; window['AscDFH'].historyitem_ShapeSetClientData = window['AscDFH'].historyitem_type_Shape | 18; - window['AscDFH'].historyitem_ShapeSetShapeSmartArtPointInfo = window['AscDFH'].historyitem_type_Shape | 19; + window['AscDFH'].historyitem_ShapeSetUseBgFill = window['AscDFH'].historyitem_type_Shape | 19; window['AscDFH'].historyitem_OleSizeSelectionSetRange = window['AscDFH'].historyitem_type_OleSizeSelection | 1; @@ -3092,6 +3187,8 @@ window['AscDFH'].historyitem_Title_SetSpPr = window['AscDFH'].historyitem_type_Title | 3; window['AscDFH'].historyitem_Title_SetTx = window['AscDFH'].historyitem_type_Title | 4; window['AscDFH'].historyitem_Title_SetTxPr = window['AscDFH'].historyitem_type_Title | 5; + window['AscDFH'].historyitem_Title_SetAlign = window['AscDFH'].historyitem_type_Title | 6; + window['AscDFH'].historyitem_Title_SetPos = window['AscDFH'].historyitem_type_Title | 7; window['AscDFH'].historyitem_SlideSetComments = window['AscDFH'].historyitem_type_Slide | 1; window['AscDFH'].historyitem_SlideSetShow = window['AscDFH'].historyitem_type_Slide | 2; @@ -3564,12 +3661,6 @@ AscDFH.historyitem_SCatPri = AscDFH.historyitem_type_SCat | 1; AscDFH.historyitem_SCatType = AscDFH.historyitem_type_SCat | 2; - AscDFH.historyitem_ClrDataUseDef = AscDFH.historyitem_type_ClrData | 1; - AscDFH.historyitem_ClrDataDataModel = AscDFH.historyitem_type_ClrData | 2; - - AscDFH.historyitem_DescLang = AscDFH.historyitem_type_Desc | 1; - AscDFH.historyitem_DescVal = AscDFH.historyitem_type_Desc | 2; - AscDFH.historyitem_LayoutNodeChOrder = AscDFH.historyitem_type_LayoutNode | 1; AscDFH.historyitem_LayoutNodeMoveWith = AscDFH.historyitem_type_LayoutNode | 2; AscDFH.historyitem_LayoutNodeName = AscDFH.historyitem_type_LayoutNode | 3; @@ -3728,6 +3819,8 @@ AscDFH.historyitem_ClrLstHueDir = AscDFH.historyitem_type_ClrLst | 1; AscDFH.historyitem_ClrLstMeth = AscDFH.historyitem_type_ClrLst | 2; + AscDFH.historyitem_ClrLstAdd = AscDFH.historyitem_type_ClrLst | 3; + AscDFH.historyitem_ClrLstRemove = AscDFH.historyitem_type_ClrLst | 4; AscDFH.historyitem_ColorsDefHdrMinVer = AscDFH.historyitem_type_ColorsDefHdr | 1; AscDFH.historyitem_ColorsDefHdrResId = AscDFH.historyitem_type_ColorsDefHdr | 2; @@ -3825,9 +3918,6 @@ AscDFH.historyitem_BackdropAnchorY = AscDFH.historyitem_type_BackdropAnchor | 2; AscDFH.historyitem_BackdropAnchorZ = AscDFH.historyitem_type_BackdropAnchor | 3; - AscDFH.historyitem_StyleDataDataModel = AscDFH.historyitem_type_StyleData | 1; - AscDFH.historyitem_StyleDataUseDef = AscDFH.historyitem_type_StyleData | 2; - AscDFH.historyitem_SampDataDataModel = AscDFH.historyitem_type_SampData | 1; AscDFH.historyitem_SampDataUseDef = AscDFH.historyitem_type_SampData | 2; @@ -3850,27 +3940,6 @@ AscDFH.historyitem_FunctionValueBool = AscDFH.historyitem_type_FunctionValue | 6; AscDFH.historyitem_FunctionValueInt = AscDFH.historyitem_type_FunctionValue | 7; - AscDFH.historyitem_ShapeSmartArtInfoSpPrPoint = AscDFH.historyitem_type_ShapeSmartArtInfo | 1; - AscDFH.historyitem_ShapeSmartArtInfoShapePoint = AscDFH.historyitem_type_ShapeSmartArtInfo | 2; - AscDFH.historyitem_ShapeSmartArtInfoAddLstContentPoint = AscDFH.historyitem_type_ShapeSmartArtInfo | 3; - AscDFH.historyitem_ShapeSmartArtInfoRemoveLstContentPoint = AscDFH.historyitem_type_ShapeSmartArtInfo | 4; - - AscDFH.historyitem_SmartArtTreeRoot = AscDFH.historyitem_type_SmartArtTree | 1; - - AscDFH.historyitem_SmartArtNodeInfo = AscDFH.historyitem_type_SmartArtNode | 1; - AscDFH.historyitem_SmartArtNodeData = AscDFH.historyitem_type_SmartArtNode | 2; - AscDFH.historyitem_SmartArtNodeAddToLstChildren = AscDFH.historyitem_type_SmartArtNode | 3; - AscDFH.historyitem_SmartArtNodeRemoveFromLstChildren = AscDFH.historyitem_type_SmartArtNode | 4; - - AscDFH.historyitem_SmartArtNodeDataParPoint = AscDFH.historyitem_type_SmartArtNodeData | 1; - AscDFH.historyitem_SmartArtNodeDataSibPoint = AscDFH.historyitem_type_SmartArtNodeData | 2; - AscDFH.historyitem_SmartArtNodeDataCxn = AscDFH.historyitem_type_SmartArtNodeData | 3; - AscDFH.historyitem_SmartArtNodeDataMainPoint = AscDFH.historyitem_type_SmartArtNodeData | 4; - AscDFH.historyitem_SmartArtNodeDataAddToLstShapes = AscDFH.historyitem_type_SmartArtNodeData | 5; - AscDFH.historyitem_SmartArtNodeDataRemoveFromLstShapes = AscDFH.historyitem_type_SmartArtNodeData | 6; - AscDFH.historyitem_SmartArtNodeDataAddToLstPresPoint = AscDFH.historyitem_type_SmartArtNodeData | 7; - AscDFH.historyitem_SmartArtNodeDataRemoveFromLstPresPoint = AscDFH.historyitem_type_SmartArtNodeData | 8; - AscDFH.historyitem_BuBlipBlip = AscDFH.historyitem_type_BuBlip | 1; AscDFH.historyitem_PointInfoPoint = AscDFH.historyitem_type_PointInfo | 1; @@ -3887,7 +3956,7 @@ AscDFH.historyitem_ParameterValConnectorPoint = AscDFH.historyitem_type_ParameterVal | 9; AscDFH.historyitem_ParameterValConnectorRouting = AscDFH.historyitem_type_ParameterVal | 10; AscDFH.historyitem_ParameterValContinueDirection = AscDFH.historyitem_type_ParameterVal | 11; - AscDFH.historyitem_ParameterValDiagramHorizontalAlignment = AscDFH.historyitem_type_ParameterVal | 12; + AscDFH.historyitem_ParameterValHorizontalAlignment = AscDFH.historyitem_type_ParameterVal | 12; AscDFH.historyitem_ParameterValDiagramTextAlignment = AscDFH.historyitem_type_ParameterVal | 13; AscDFH.historyitem_ParameterValFallbackDimension = AscDFH.historyitem_type_ParameterVal | 14; AscDFH.historyitem_ParameterValFlowDirection = AscDFH.historyitem_type_ParameterVal | 15; @@ -3976,12 +4045,6 @@ AscDFH.historyitem_SmartArtParent = AscDFH.historyitem_type_SmartArt | 6; AscDFH.historyitem_SmartArtType = AscDFH.historyitem_type_SmartArt | 7; - AscDFH.historyitem_CCommonDataClrListAdd = AscDFH.historyitem_type_CCommonDataClrList | 1; - AscDFH.historyitem_CCommonDataClrListRemove = AscDFH.historyitem_type_CCommonDataClrList | 2; - AscDFH.historyitem_CCommonDataClrListHueDir = AscDFH.historyitem_type_CCommonDataClrList | 3; - AscDFH.historyitem_CCommonDataClrListMeth = AscDFH.historyitem_type_CCommonDataClrList | 4; - - AscDFH.historyitem_ViewPrGridSpacing = AscDFH.historyitem_type_ViewPr | 1; AscDFH.historyitem_ViewPrSlideViewerPr = AscDFH.historyitem_type_ViewPr | 2; AscDFH.historyitem_ViewPrLastView = AscDFH.historyitem_type_ViewPr | 3; @@ -4004,6 +4067,249 @@ AscDFH.historyitem_ViewPrGuideOrient = AscDFH.historyitem_type_ViewPrGuide | 1; AscDFH.historyitem_ViewPrGuidePos = AscDFH.historyitem_type_ViewPrGuide | 2; + + AscDFH.historyitem_Address_SetAddress1 = AscDFH.historyitem_type_Address | 1; + AscDFH.historyitem_Address_SetCountryRegion = AscDFH.historyitem_type_Address | 2; + AscDFH.historyitem_Address_SetAdminDistrict1 = AscDFH.historyitem_type_Address | 3; + AscDFH.historyitem_Address_SetAdminDistrict2 = AscDFH.historyitem_type_Address | 4; + AscDFH.historyitem_Address_SetPostalCode = AscDFH.historyitem_type_Address | 5; + AscDFH.historyitem_Address_SetLocality = AscDFH.historyitem_type_Address | 6; + AscDFH.historyitem_Address_SetISOCountryCode = AscDFH.historyitem_type_Address | 7; + + AscDFH.historyitem_Axis_SetUnits = AscDFH.historyitem_type_Axis | 1; + AscDFH.historyitem_Axis_SetTickLabels = AscDFH.historyitem_type_Axis | 2; + AscDFH.historyitem_Axis_SetHidden = AscDFH.historyitem_type_Axis | 3; + + AscDFH.historyitem_AxisUnits_SetUnitsLabel = AscDFH.historyitem_type_AxisUnits | 1; + AscDFH.historyitem_AxisUnits_SetUnit = AscDFH.historyitem_type_AxisUnits | 2; + + AscDFH.historyitem_AxisUnitsLabel_SetTx = AscDFH.historyitem_type_AxisUnitsLabel | 1; + AscDFH.historyitem_AxisUnitsLabel_SetSpPr = AscDFH.historyitem_type_AxisUnitsLabel | 2; + AscDFH.historyitem_AxisUnitsLabel_SetTxPr = AscDFH.historyitem_type_AxisUnitsLabel | 3; + + AscDFH.historyitem_Binning_SetBinSize = AscDFH.historyitem_type_Binning | 1; + AscDFH.historyitem_Binning_SetBinCount = AscDFH.historyitem_type_Binning | 2; + AscDFH.historyitem_Binning_SetIntervalClosed = AscDFH.historyitem_type_Binning | 3; + AscDFH.historyitem_Binning_SetUnderflow = AscDFH.historyitem_type_Binning | 4; + AscDFH.historyitem_Binning_SetOverflow = AscDFH.historyitem_type_Binning | 5; + + AscDFH.historyitem_CategoryAxisScaling_SetGapWidth = AscDFH.historyitem_type_CategoryAxisScaling | 1; + + AscDFH.historyitem_ChartData_SetExternalData = AscDFH.historyitem_type_ChartData | 1; + AscDFH.historyitem_ChartData_AddData = AscDFH.historyitem_type_ChartData | 2; + AscDFH.historyitem_ChartData_RemoveData = AscDFH.historyitem_type_ChartData | 3; + + AscDFH.historyitem_Clear_SetGeoLocationQueryResults = AscDFH.historyitem_type_Clear | 1; + AscDFH.historyitem_Clear_SetGeoDataEntityQueryResults = AscDFH.historyitem_type_Clear | 2; + AscDFH.historyitem_Clear_SetGeoDataPointToEntityQueryResults = AscDFH.historyitem_type_Clear | 3; + AscDFH.historyitem_Clear_SetGeoChildEntitiesQueryResults = AscDFH.historyitem_type_Clear | 4; + + AscDFH.historyitem_Copyrights_SetCopyright = AscDFH.historyitem_type_Copyrights | 1; + + AscDFH.historyitem_Data_AddDimension = AscDFH.historyitem_type_Data | 1; + AscDFH.historyitem_Data_RemoveDimension = AscDFH.historyitem_type_Data | 2; + AscDFH.historyitem_Data_SetId = AscDFH.historyitem_type_Data | 3; + + AscDFH.historyitem_DataLabel_SetNumFmt = AscDFH.historyitem_type_DataLabel | 1; + AscDFH.historyitem_DataLabel_SetSpPr = AscDFH.historyitem_type_DataLabel | 2; + AscDFH.historyitem_DataLabel_SetTxPr = AscDFH.historyitem_type_DataLabel | 3; + AscDFH.historyitem_DataLabel_SetVisibility = AscDFH.historyitem_type_DataLabel | 4; + AscDFH.historyitem_DataLabel_SetSeparator = AscDFH.historyitem_type_DataLabel | 5; + AscDFH.historyitem_DataLabel_SetIdx = AscDFH.historyitem_type_DataLabel | 6; + AscDFH.historyitem_DataLabel_SetPos = AscDFH.historyitem_type_DataLabel | 7; + + AscDFH.historyitem_DataLabelHidden_SetIdx = AscDFH.historyitem_type_DataLabelHidden | 1; + + AscDFH.historyitem_DataLabels_SetNumFmt = AscDFH.historyitem_type_DataLabels | 1; + AscDFH.historyitem_DataLabels_SetSpPr = AscDFH.historyitem_type_DataLabels | 2; + AscDFH.historyitem_DataLabels_SetTxPr = AscDFH.historyitem_type_DataLabels | 3; + AscDFH.historyitem_DataLabels_SetVisibility = AscDFH.historyitem_type_DataLabels | 4; + AscDFH.historyitem_DataLabels_SetSeparator = AscDFH.historyitem_type_DataLabels | 5; + AscDFH.historyitem_DataLabels_SetDataLabel = AscDFH.historyitem_type_DataLabels | 6; + AscDFH.historyitem_DataLabels_AddDataLabel = AscDFH.historyitem_type_DataLabels | 7; + AscDFH.historyitem_DataLabels_RemoveDataLabel = AscDFH.historyitem_type_DataLabels | 8; + AscDFH.historyitem_DataLabels_AddDataLabelHidden = AscDFH.historyitem_type_DataLabels | 9; + AscDFH.historyitem_DataLabels_RemoveDataLabelHidden = AscDFH.historyitem_type_DataLabels | 10; + AscDFH.historyitem_DataLabels_SetPos = AscDFH.historyitem_type_DataLabels | 11; + + + AscDFH.historyitem_DataLabelVisibilities_SetSeriesName = AscDFH.historyitem_type_DataLabelVisibilities | 1; + AscDFH.historyitem_DataLabelVisibilities_SetCategoryName = AscDFH.historyitem_type_DataLabelVisibilities | 2; + AscDFH.historyitem_DataLabelVisibilities_SetValue = AscDFH.historyitem_type_DataLabelVisibilities | 3; + + AscDFH.historyitem_DataPoint_SetSpPr = AscDFH.historyitem_type_DataPoint | 1; + AscDFH.historyitem_DataPoint_SetIdx = AscDFH.historyitem_type_DataPoint | 2; + + AscDFH.historyitem_FormatOverride_SetSpPr = AscDFH.historyitem_type_FormatOverride | 1; + AscDFH.historyitem_FormatOverride_SetIdx = AscDFH.historyitem_type_FormatOverride | 2; + AscDFH.historyitem_FormatOverrides_SetFmtOvr = AscDFH.historyitem_type_FormatOverride | 3; + + AscDFH.historyitem_Formula_SetDir = AscDFH.historyitem_type_Formula | 1; + AscDFH.historyitem_Formula_SetContent = AscDFH.historyitem_type_Formula | 2; + + AscDFH.historyitem_GeoCache_SetBinary = AscDFH.historyitem_type_GeoCache | 1; + AscDFH.historyitem_GeoCache_SetClear = AscDFH.historyitem_type_GeoCache | 2; + AscDFH.historyitem_GeoCache_SetProvider = AscDFH.historyitem_type_GeoCache | 3; + + AscDFH.historyitem_GeoChildEntities_SetGeoHierarchyEntity = AscDFH.historyitem_type_GeoChildEntities | 1; + + AscDFH.historyitem_GeoChildEntitiesQuery_SetGeoChildTypes = AscDFH.historyitem_type_GeoChildEntitiesQuery | 1; + AscDFH.historyitem_GeoChildEntitiesQuery_SetEntityId = AscDFH.historyitem_type_GeoChildEntitiesQuery | 2; + + AscDFH.historyitem_GeoChildEntitiesQueryResult_SetGeoChildEntitiesQuery = AscDFH.historyitem_type_GeoChildEntitiesQueryResult | 1; + AscDFH.historyitem_GeoChildEntitiesQueryResult_SetGeoChildEntities = AscDFH.historyitem_type_GeoChildEntitiesQueryResult | 2; + + AscDFH.historyitem_GeoChildEntitiesQueryResults_SetGeoChildEntitiesQueryResult = AscDFH.historyitem_type_GeoChildEntitiesQueryResults | 1; + + AscDFH.historyitem_GeoChildTypes_SetEntityType = AscDFH.historyitem_type_GeoChildTypes | 1; + + AscDFH.historyitem_GeoData_SetGeoPolygons = AscDFH.historyitem_type_GeoData | 1; + AscDFH.historyitem_GeoData_SetCopyrights = AscDFH.historyitem_type_GeoData | 2; + AscDFH.historyitem_GeoData_SetEntityName = AscDFH.historyitem_type_GeoData | 3; + AscDFH.historyitem_GeoData_SetEntityId = AscDFH.historyitem_type_GeoData | 4; + AscDFH.historyitem_GeoData_SetEast = AscDFH.historyitem_type_GeoData | 5; + AscDFH.historyitem_GeoData_SetWest = AscDFH.historyitem_type_GeoData | 6; + AscDFH.historyitem_GeoData_SetNorth = AscDFH.historyitem_type_GeoData | 7; + AscDFH.historyitem_GeoData_SetSouth = AscDFH.historyitem_type_GeoData | 8; + + AscDFH.historyitem_GeoDataEntityQuery_SetEntityType = AscDFH.historyitem_type_GeoDataEntityQuery | 1; + AscDFH.historyitem_GeoDataEntityQuery_SetEntityId = AscDFH.historyitem_type_GeoDataEntityQuery |2; + + AscDFH.historyitem_GeoDataEntityQueryResult_SetGeoDataEntityQuery = AscDFH.historyitem_type_GeoDataEntityQueryResult | 1; + AscDFH.historyitem_GeoDataEntityQueryResult_SetGeoData = AscDFH.historyitem_type_GeoDataEntityQueryResult | 2; + + AscDFH.historyitem_GeoDataEntityQueryResults_SetGeoDataEntityQueryResult = AscDFH.historyitem_type_GeoDataEntityQueryResults | 1; + + AscDFH.historyitem_GeoDataPointQuery_SetEntityType = AscDFH.historyitem_type_GeoDataPointQuery | 1; + AscDFH.historyitem_GeoDataPointQuery_SetLatitude = AscDFH.historyitem_type_GeoDataPointQuery | 2; + AscDFH.historyitem_GeoDataPointQuery_SetLongitude = AscDFH.historyitem_type_GeoDataPointQuery | 3; + + AscDFH.historyitem_GeoDataPointToEntityQuery_SetEntityType = AscDFH.historyitem_type_GeoDataPointToEntityQuery | 1; + AscDFH.historyitem_GeoDataPointToEntityQuery_SetEntityId = AscDFH.historyitem_type_GeoDataPointToEntityQuery | 2; + + AscDFH.historyitem_GeoDataPointToEntityQueryResult_SetGeoDataPointQuery = AscDFH.historyitem_type_GeoDataPointToEntityQueryResult | 1; + AscDFH.historyitem_GeoDataPointToEntityQueryResult_SetGeoDataPointToEntityQuery = AscDFH.historyitem_type_GeoDataPointToEntityQueryResult | 2; + + AscDFH.historyitem_GeoDataPointToEntityQueryResults_SetGeoDataPointToEntityQueryResult = AscDFH.historyitem_type_GeoDataPointToEntityQueryResults | 1; + + AscDFH.historyitem_Geography_SetGeoCache = AscDFH.historyitem_type_Geography | 1; + AscDFH.historyitem_Geography_SetProjectionType = AscDFH.historyitem_type_Geography | 2; + AscDFH.historyitem_Geography_SetViewedRegionType = AscDFH.historyitem_type_Geography | 3; + AscDFH.historyitem_Geography_SetCultureLanguage = AscDFH.historyitem_type_Geography | 4; + AscDFH.historyitem_Geography_SetCultureRegion = AscDFH.historyitem_type_Geography | 5; + AscDFH.historyitem_Geography_SetAttribution = AscDFH.historyitem_type_Geography | 6; + + AscDFH.historyitem_GeoHierarchyEntity_SetEntityName = AscDFH.historyitem_type_GeoHierarchyEntity | 1; + AscDFH.historyitem_GeoHierarchyEntity_SetEntityId = AscDFH.historyitem_type_GeoHierarchyEntity | 2; + AscDFH.historyitem_GeoHierarchyEntity_SetEntityType = AscDFH.historyitem_type_GeoHierarchyEntity | 3; + + AscDFH.historyitem_GeoLocation_SetAddress = AscDFH.historyitem_type_GeoLocation | 1; + AscDFH.historyitem_GeoLocation_SetLatitude = AscDFH.historyitem_type_GeoLocation | 2; + AscDFH.historyitem_GeoLocation_SetLongitude = AscDFH.historyitem_type_GeoLocation | 3; + AscDFH.historyitem_GeoLocation_SetEntityName = AscDFH.historyitem_type_GeoLocation | 4; + AscDFH.historyitem_GeoLocation_SetEntityType = AscDFH.historyitem_type_GeoLocation | 5; + + AscDFH.historyitem_GeoLocationQuery_SetCountryRegion = AscDFH.historyitem_type_GeoLocationQuery | 1; + AscDFH.historyitem_GeoLocationQuery_SetAdminDistrict1 = AscDFH.historyitem_type_GeoLocationQuery | 2; + AscDFH.historyitem_GeoLocationQuery_SetAdminDistrict2 = AscDFH.historyitem_type_GeoLocationQuery | 3; + AscDFH.historyitem_GeoLocationQuery_SetPostalCode = AscDFH.historyitem_type_GeoLocationQuery | 4; + AscDFH.historyitem_GeoLocationQuery_SetEntityType = AscDFH.historyitem_type_GeoLocationQuery | 5; + + AscDFH.historyitem_GeoLocationQueryResult_SetGeoLocationQuery = AscDFH.historyitem_type_GeoLocationQueryResult | 1; + AscDFH.historyitem_GeoLocationQueryResult_SetGeoLocations = AscDFH.historyitem_type_GeoLocationQueryResult | 2; + + AscDFH.historyitem_GeoLocationQueryResults_SetGeoLocationQueryResult = AscDFH.historyitem_type_GeoLocationQueryResults | 1; + + AscDFH.historyitem_GeoLocations_SetGeoLocation = AscDFH.historyitem_type_GeoLocations | 1; + + AscDFH.historyitem_GeoPolygon_SetPolygonId = AscDFH.historyitem_type_GeoPolygon | 1; + AscDFH.historyitem_GeoPolygon_SetNumPoints = AscDFH.historyitem_type_GeoPolygon | 2; + AscDFH.historyitem_GeoPolygon_SetPcaRings = AscDFH.historyitem_type_GeoPolygon | 3; + + AscDFH.historyitem_GeoPolygons_SetGeoPolygon = AscDFH.historyitem_type_GeoPolygons | 1; + + AscDFH.historyitem_Gridlines_SetSpPr = AscDFH.historyitem_type_Gridlines | 1; + AscDFH.historyitem_Gridlines_SetName = AscDFH.historyitem_type_Gridlines | 2; + + AscDFH.historyitem_Dimension_SetF = AscDFH.historyitem_type_Dimension | 1; + AscDFH.historyitem_Dimension_SetNf = AscDFH.historyitem_type_Dimension | 2; + AscDFH.historyitem_Dimension_SetType = AscDFH.historyitem_type_Dimension | 3; + + AscDFH.historyitem_NumericDimension_AddLevelData = AscDFH.historyitem_type_NumericDimension | 1; + AscDFH.historyitem_NumericDimension_RemoveLevelData = AscDFH.historyitem_type_NumericDimension | 2; + + AscDFH.historyitem_PercentageColorPosition_SetVal = AscDFH.historyitem_type_PercentageColorPosition | 1; + + AscDFH.historyitem_PlotAreaRegion_SetPlotSurface = AscDFH.historyitem_type_PlotAreaRegion | 1; + AscDFH.historyitem_PlotAreaRegion_AddSeries = AscDFH.historyitem_type_PlotAreaRegion | 2; + AscDFH.historyitem_PlotAreaRegion_RemoveSeries = AscDFH.historyitem_type_PlotAreaRegion | 3; + + AscDFH.historyitem_PlotSurface_SetSpPr = AscDFH.historyitem_type_PlotSurface | 1; + + AscDFH.historyitem_Series_AddDataPt = AscDFH.historyitem_type_Series | 1; + AscDFH.historyitem_Series_RemoveDataPt = AscDFH.historyitem_type_Series | 2; + AscDFH.historyitem_Series_SetDataLabels = AscDFH.historyitem_type_Series | 3; + AscDFH.historyitem_Series_SetDataId = AscDFH.historyitem_type_Series | 4; + AscDFH.historyitem_Series_SetLayoutPr = AscDFH.historyitem_type_Series | 5; + AscDFH.historyitem_Series_AddAxisId = AscDFH.historyitem_type_Series | 6; + AscDFH.historyitem_Series_RemoveAxisId = AscDFH.historyitem_type_Series | 7; + AscDFH.historyitem_Series_SetLayoutId = AscDFH.historyitem_type_Series | 8; + AscDFH.historyitem_Series_SetHidden = AscDFH.historyitem_type_Series | 9; + AscDFH.historyitem_Series_SetOwnerIdx = AscDFH.historyitem_type_Series | 10; + AscDFH.historyitem_Series_SetUniqueId = AscDFH.historyitem_type_Series | 11; + AscDFH.historyitem_Series_SetFormatIdx = AscDFH.historyitem_type_Series | 12; + + AscDFH.historyitem_SeriesElementVisibilities_SetConnectorLines = AscDFH.historyitem_type_SeriesElementVisibilities | 1; + AscDFH.historyitem_SeriesElementVisibilities_SetMeanLine = AscDFH.historyitem_type_SeriesElementVisibilities | 2; + AscDFH.historyitem_SeriesElementVisibilities_SetMeanMarker = AscDFH.historyitem_type_SeriesElementVisibilities | 3; + AscDFH.historyitem_SeriesElementVisibilities_SetNonoutliers = AscDFH.historyitem_type_SeriesElementVisibilities | 4; + AscDFH.historyitem_SeriesElementVisibilities_SetOutliers = AscDFH.historyitem_type_SeriesElementVisibilities | 5; + + AscDFH.historyitem_SeriesLayoutProperties_SetParentLabelLayout = AscDFH.historyitem_type_SeriesLayoutProperties | 1; + AscDFH.historyitem_SeriesLayoutProperties_SetRegionLabelLayout = AscDFH.historyitem_type_SeriesLayoutProperties | 2; + AscDFH.historyitem_SeriesLayoutProperties_SetVisibility = AscDFH.historyitem_type_SeriesLayoutProperties | 3; + AscDFH.historyitem_SeriesLayoutProperties_SetAggregation = AscDFH.historyitem_type_SeriesLayoutProperties | 4; + AscDFH.historyitem_SeriesLayoutProperties_SetBinning = AscDFH.historyitem_type_SeriesLayoutProperties | 5; + AscDFH.historyitem_SeriesLayoutProperties_SetGeography = AscDFH.historyitem_type_SeriesLayoutProperties | 6; + AscDFH.historyitem_SeriesLayoutProperties_SetStatistics = AscDFH.historyitem_type_SeriesLayoutProperties | 7; + AscDFH.historyitem_SeriesLayoutProperties_SetSubtotals = AscDFH.historyitem_type_SeriesLayoutProperties | 8; + + AscDFH.historyitem_Statistics_SetQuartileMethod = AscDFH.historyitem_type_Statistics | 1; + + AscDFH.historyitem_StringDimension_AddLevelData = AscDFH.historyitem_type_StringDimension | 1; + AscDFH.historyitem_StringDimension_RemoveLevelData = AscDFH.historyitem_type_StringDimension | 2; + + AscDFH.historyitem_Subtotals_AddIdx = AscDFH.historyitem_type_Subtotals | 1; + AscDFH.historyitem_Subtotals_RemoveIdx = AscDFH.historyitem_type_Subtotals | 2; + + AscDFH.historyitem_TextData_SetF = AscDFH.historyitem_type_TextData | 1; + AscDFH.historyitem_TextData_SetV = AscDFH.historyitem_type_TextData | 2; + + AscDFH.historyitem_TickMarks_SetType = AscDFH.historyitem_type_TickMarks | 1; + AscDFH.historyitem_TickMarks_SetName = AscDFH.historyitem_type_TickMarks | 2; + + AscDFH.historyitem_ValueAxisScaling_SetMax = AscDFH.historyitem_type_ValueAxisScaling | 1; + AscDFH.historyitem_ValueAxisScaling_SetMin = AscDFH.historyitem_type_ValueAxisScaling | 2; + AscDFH.historyitem_ValueAxisScaling_SetMajorUnit = AscDFH.historyitem_type_ValueAxisScaling | 3; + AscDFH.historyitem_ValueAxisScaling_SetMinorUnit = AscDFH.historyitem_type_ValueAxisScaling | 4; + + AscDFH.historyitem_ValueColorEndPosition_SetExtremeValue = AscDFH.historyitem_type_ValueColorEndPosition | 1; + AscDFH.historyitem_ValueColorEndPosition_SetNumber = AscDFH.historyitem_type_ValueColorEndPosition | 2; + AscDFH.historyitem_ValueColorEndPosition_SetPercent = AscDFH.historyitem_type_ValueColorEndPosition | 3; + + AscDFH.historyitem_ValueColorMiddlePosition_SetNumber = AscDFH.historyitem_type_ValueColorMiddlePosition | 1; + AscDFH.historyitem_ValueColorMiddlePosition_SetPercent = AscDFH.historyitem_type_ValueColorMiddlePosition | 2; + + AscDFH.historyitem_ValueColorPositions_SetMin = AscDFH.historyitem_type_ValueColorPositions | 1; + AscDFH.historyitem_ValueColorPositions_SetMid = AscDFH.historyitem_type_ValueColorPositions | 2; + AscDFH.historyitem_ValueColorPositions_SetMax = AscDFH.historyitem_type_ValueColorPositions | 3; + AscDFH.historyitem_ValueColorPositions_SetCount = AscDFH.historyitem_type_ValueColorPositions | 4; + + AscDFH.historyitem_ValueColors_SetMinColor = AscDFH.historyitem_type_ValueColors | 1; + AscDFH.historyitem_ValueColors_SetMidColor = AscDFH.historyitem_type_ValueColors | 2; + AscDFH.historyitem_ValueColors_SetMaxColor = AscDFH.historyitem_type_ValueColors | 3; + + //------------------------------------------------------------------------------------------------------------------ // Типы изменений в PDF Forms //------------------------------------------------------------------------------------------------------------------ @@ -4011,8 +4317,10 @@ AscDFH.historyitem_Pdf_Form_Value = AscDFH.historyitem_type_Pdf_Form | 1; AscDFH.historyitem_Pdf_Form_Add_Kid = AscDFH.historyitem_type_Pdf_Form | 2; AscDFH.historyitem_Pdf_Form_Remove_Kid = AscDFH.historyitem_type_Pdf_Form | 3; + AscDFH.historyitem_Pdf_Form_Change_Display = AscDFH.historyitem_type_Pdf_Form | 4; AscDFH.historyitem_Pdf_List_Form_Cur_Idxs = AscDFH.historyitem_type_Pdf_List_Form | 1; + AscDFH.historyitem_Pdf_List_Form_Top_Idx = AscDFH.historyitem_type_Pdf_List_Form | 2; AscDFH.historyitem_Pdf_Pushbutton_Image = AscDFH.historyitem_type_Pdf_Pushbutton | 1; @@ -4026,43 +4334,60 @@ AscDFH.historyitem_Pdf_Annot_Pos = AscDFH.historyitem_type_Pdf_Annot | 2; AscDFH.historyitem_Pdf_Annot_Contents = AscDFH.historyitem_type_Pdf_Annot | 3; AscDFH.historyitem_Pdf_Annot_Page = AscDFH.historyitem_type_Pdf_Annot | 4; - AscDFH.historyitem_Pdf_Annot_Replies = AscDFH.historyitem_type_Pdf_Annot | 5; - AscDFH.historyitem_Pdf_Annot_RD = AscDFH.historyitem_type_Pdf_Annot | 6; - AscDFH.historyitem_Pdf_Annot_Vertices = AscDFH.historyitem_type_Pdf_Annot | 7; + AscDFH.historyitem_Pdf_Annot_RD = AscDFH.historyitem_type_Pdf_Annot | 5; + AscDFH.historyitem_Pdf_Annot_Vertices = AscDFH.historyitem_type_Pdf_Annot | 6; + AscDFH.historyitem_Pdf_Annot_Creation_Date = AscDFH.historyitem_type_Pdf_Annot | 7; + AscDFH.historyitem_Pdf_Annot_Mod_Date = AscDFH.historyitem_type_Pdf_Annot | 8; + AscDFH.historyitem_Pdf_Annot_Author = AscDFH.historyitem_type_Pdf_Annot | 9; + AscDFH.historyitem_Pdf_Annot_Display = AscDFH.historyitem_type_Pdf_Annot | 10; + AscDFH.historyitem_Pdf_Annot_Name = AscDFH.historyitem_type_Pdf_Annot | 11; + AscDFH.historyitem_Pdf_Annot_File_Idx = AscDFH.historyitem_type_Pdf_Annot | 12; + AscDFH.historyitem_Pdf_Annot_Stroke = AscDFH.historyitem_type_Pdf_Annot | 13; + AscDFH.historyitem_Pdf_Annot_StrokeWidth = AscDFH.historyitem_type_Pdf_Annot | 14; + AscDFH.historyitem_Pdf_Annot_Fill = AscDFH.historyitem_type_Pdf_Annot | 15; + AscDFH.historyitem_Pdf_Annot_Opacity = AscDFH.historyitem_type_Pdf_Annot | 16; + AscDFH.historyitem_Pdf_Annot_Quads = AscDFH.historyitem_type_Pdf_Annot | 17; + AscDFH.historyitem_Pdf_Annot_Intent = AscDFH.historyitem_type_Pdf_Annot | 18; + AscDFH.historyitem_Pdf_Annot_WasChanged = AscDFH.historyitem_type_Pdf_Annot | 19; // Comment AscDFH.historyitem_Pdf_Comment_Data = AscDFH.historyitem_type_Pdf_Comment | 1; // Ink - AscDFH.historyitem_Pdf_Ink_Points = AscDFH.historyitem_type_Pdf_Ink | 1; - AscDFH.historyitem_Pdf_Ink_FlipV = AscDFH.historyitem_type_Pdf_Ink | 2; - AscDFH.historyitem_Pdf_Ink_FlipH = AscDFH.historyitem_type_Pdf_Ink | 3; + AscDFH.historyitem_Pdf_Ink_Points = AscDFH.historyitem_type_Pdf_Annot_Ink | 1; + AscDFH.historyitem_Pdf_Ink_FlipV = AscDFH.historyitem_type_Pdf_Annot_Ink | 2; + AscDFH.historyitem_Pdf_Ink_FlipH = AscDFH.historyitem_type_Pdf_Annot_Ink | 3; // FreeText - AscDFH.historyitem_Pdf_FreeText_CL = AscDFH.historyitem_Pdf_FreeText | 1; - AscDFH.historyitem_Pdf_FreeText_RC = AscDFH.historyitem_Pdf_FreeText | 2; + AscDFH.historyitem_type_Pdf_Annot_FreeText_CL = AscDFH.historyitem_type_Pdf_Annot_FreeText | 1; + AscDFH.historyitem_type_Pdf_Annot_FreeText_RC = AscDFH.historyitem_type_Pdf_Annot_FreeText | 2; + AscDFH.historyitem_type_Pdf_Annot_FreeText_Align = AscDFH.historyitem_type_Pdf_Annot_FreeText | 3; + AscDFH.historyitem_type_Pdf_Annot_FreeText_Rotate = AscDFH.historyitem_type_Pdf_Annot_FreeText | 4; // annot line - AscDFH.historyitem_Pdf_Line_Points = AscDFH.historyitem_type_Pdf_Line | 1; + AscDFH.historyitem_Pdf_Line_Points = AscDFH.historyitem_type_Pdf_Annot_Line | 1; //------------------------------------------------------------------------------------------------------------------ - // Типы изменений в PDF Text Shape + // Типы изменений в PDF drawing prototype //------------------------------------------------------------------------------------------------------------------ - AscDFH.historyitem_Pdf_Drawing_Rect = AscDFH.historyitem_Pdf_Drawing | 0; - AscDFH.historyitem_Pdf_Drawing_Page = AscDFH.historyitem_Pdf_Drawing | 1; - AscDFH.historyitem_Pdf_Drawing_Rot = AscDFH.historyitem_Pdf_Drawing | 2; + AscDFH.historyitem_type_Pdf_Drawing_Page = AscDFH.historyitem_type_Pdf_Drawing | 1; //------------------------------------------------------------------------------------------------------------------ // Типы изменений в классе CPDFDoc //------------------------------------------------------------------------------------------------------------------ - window['AscDFH'].historyitem_PDF_Document_AddItem = window['AscDFH'].historyitem_type_PDF_Document | 1; - window['AscDFH'].historyitem_PDF_Document_RemoveItem = window['AscDFH'].historyitem_type_PDF_Document | 2; - window['AscDFH'].historyitem_PDF_Document_AddPage = window['AscDFH'].historyitem_type_PDF_Document | 3; - window['AscDFH'].historyitem_PDF_Document_RemovePage = window['AscDFH'].historyitem_type_PDF_Document | 4; - window['AscDFH'].historyitem_PDF_Document_RotatePage = window['AscDFH'].historyitem_type_PDF_Document | 5; - window['AscDFH'].historyitem_PDF_Document_RecognizePage = window['AscDFH'].historyitem_type_PDF_Document | 6; - window['AscDFH'].historyitem_PDF_Document_ChangePosInTree = window['AscDFH'].historyitem_type_PDF_Document | 7; + window['AscDFH'].historyitem_PDF_Document_AnnotsContent = window['AscDFH'].historyitem_type_PDF_Document | 1; + window['AscDFH'].historyitem_PDF_Document_DrawingsContent = window['AscDFH'].historyitem_type_PDF_Document | 2; + window['AscDFH'].historyitem_PDF_Document_FieldsContent = window['AscDFH'].historyitem_type_PDF_Document | 3; + window['AscDFH'].historyitem_PDF_Document_AddPage = window['AscDFH'].historyitem_type_PDF_Document | 4; + window['AscDFH'].historyitem_PDF_Document_RemovePage = window['AscDFH'].historyitem_type_PDF_Document | 5; + window['AscDFH'].historyitem_PDF_Document_RotatePage = window['AscDFH'].historyitem_type_PDF_Document | 6; + window['AscDFH'].historyitem_PDF_Document_RecognizePage = window['AscDFH'].historyitem_type_PDF_Document | 7; + window['AscDFH'].historyitem_PDF_Document_SetDocument = window['AscDFH'].historyitem_type_PDF_Document | 8; + + + AscDFH.historyitem_CustomPropertiesAddProperty = AscDFH.historyitem_type_CustomProperties | 0; + AscDFH.historyitem_CustomPropertiesRemoveProperty = AscDFH.historyitem_type_CustomProperties | 1; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -4071,6 +4396,7 @@ // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + window['AscDFH'].historydescription_Unknown = 0x0000; window['AscDFH'].historydescription_Cut = 0x0001; window['AscDFH'].historydescription_PasteButtonIE = 0x0002; window['AscDFH'].historydescription_PasteButtonNotIE = 0x0003; @@ -4510,6 +4836,34 @@ window['AscDFH'].historydescription_Document_AddRemoveBeforeAfterParagraph = 0x01b0; window['AscDFH'].historydescription_Document_SectionPageNumFormat = 0x01b1; window['AscDFH'].historydescription_Document_SetPageColor = 0x01b2; + window['AscDFH'].historydescription_Document_InsertTextFromFile = 0x01b3; + window['AscDFH'].historydescription_Document_AddComplexField = 0x01b4; + window['AscDFH'].historydescription_Document_EditComplexFieldInstruction = 0x01b5; + window['AscDFH'].historydescription_Collaborative_DeletedTextRecovery = 0x01b6; + window['AscDFH'].historydescription_Document_AutoCorrectMath = 0x01b7; + + window['AscDFH'].historydescription_CustomProperties_Add = 0x01b8; + window['AscDFH'].historydescription_CustomProperties_Remove = 0x01b9; + window['AscDFH'].historydescription_CustomProperties_Modify = 0x01c0; + // pdf + window['AscDFH'].historydescription_Pdf_AddAnnot = 0x29a; + window['AscDFH'].historydescription_Pdf_FreeTextGeom = 0x29b; + window['AscDFH'].historydescription_Pdf_AddPage = 0x29c; + window['AscDFH'].historydescription_Pdf_RemovePage = 0x29d; + window['AscDFH'].historydescription_Pdf_AddHighlightAnnot = 0x29e; + window['AscDFH'].historydescription_Pdf_EraseInk = 0x29f; + window['AscDFH'].historydescription_Pdf_RemoveComment = 0x2a0; + window['AscDFH'].historydescription_Pdf_EditPage = 0x2a1; + window['AscDFH'].historydescription_Pdf_ContextMenuRemove = 0x2a2; + window['AscDFH'].historydescription_Pdf_RotatePage = 0x2a3; + window['AscDFH'].historydescription_Pdf_UpdateAnnotRC = 0x2a4; + window['AscDFH'].historydescription_Pdf_ClickCheckbox = 0x2a5; + window['AscDFH'].historydescription_Pdf_FieldCommit = 0x2a6; + window['AscDFH'].historydescription_Pdf_FieldImportImage = 0x2a6; + window['AscDFH'].historydescription_Pdf_FieldSelectOption = 0x2a7; + window['AscDFH'].historydescription_Pdf_ExecActions = 0x2a8; + window['AscDFH'].historydescription_Pdf_FreeTextFitTextBox = 0x2a9; + window['AscDFH'].historydescription_Pdf_AddComment = 0x2b0; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -4654,6 +5008,13 @@ { return true; }; + CChangesBaseContentChange.prototype.GetContentChangesClass = function() + { + if (this.Class && this.Class.m_oContentChanges) + return this.Class.m_oContentChanges; + + return null; + }; CChangesBaseContentChange.prototype.IsAdd = function() { return this.Add; diff --git a/common/Local/common.js b/common/Local/common.js index aff8f025a6..92d4720fe7 100644 --- a/common/Local/common.js +++ b/common/Local/common.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Local/license.js b/common/Local/license.js index e7caf27768..ce846f7e30 100644 --- a/common/Local/license.js +++ b/common/Local/license.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Merge/NodejsEnv.js b/common/Merge/NodejsEnv.js index 097826c416..e3ff71ed7f 100644 --- a/common/Merge/NodejsEnv.js +++ b/common/Merge/NodejsEnv.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Native/native.js b/common/Native/native.js index 8569568621..7d611ed6b9 100644 --- a/common/Native/native.js +++ b/common/Native/native.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -241,13 +241,21 @@ document.documentElement = _null_object; document.body = _null_object; // NATIVE OBJECT -window.native = native; function GetNativeEngine() { return window.native; } var Api = null; // main builder object window.devicePixelRatio = 1; -if (window.native && window.native.GetDevicePixelRatio) - window.devicePixelRatio = window.native.GetDevicePixelRatio(); + +window.InitNativeObject = function() +{ + window.native = native; + window.devicePixelRatio = 1; + if (window.native && window.native.GetDevicePixelRatio) + window.devicePixelRatio = window.native.GetDevicePixelRatio(); +}; + +if (undefined !== native) + window.InitNativeObject(); // OPEN function NativeCreateApi(options) @@ -259,15 +267,28 @@ function NativeCreateApi(options) if (options && undefined !== options["translate"]) configApi["translate"] = options["translate"]; - if (window.NATIVE_DOCUMENT_TYPE === "presentation" || window.NATIVE_DOCUMENT_TYPE === "document") + switch (window.NATIVE_DOCUMENT_TYPE) { - Api = new window["Asc"]["asc_docs_api"](configApi); - if (options && options["documentLayout"] && undefined !== options["documentLayout"]["openedAt"]) - Api.setOpenedAt(options["documentLayout"]["openedAt"]); - } - else - { - Api = new window["Asc"]["spreadsheet_api"](configApi); + case "document": + case "presentation": + { + Api = new window["Asc"]["asc_docs_api"](configApi); + if (options && options["documentLayout"] && undefined !== options["documentLayout"]["openedAt"]) + Api.setOpenedAt(options["documentLayout"]["openedAt"]); + break; + } + case "spreadsheet": + { + Api = new window["Asc"]["spreadsheet_api"](configApi); + break; + } + case "pdf": + { + Api = new window["Asc"]["PDFEditorApi"](configApi); + break; + } + default: + break; } if (options && undefined !== options["locale"]) @@ -278,14 +299,26 @@ function NativeOpenFileData(data, version, xlsx_file_path, options) { NativeCreateApi(options); - if (window.NATIVE_DOCUMENT_TYPE === "presentation" || - window.NATIVE_DOCUMENT_TYPE === "document") - { - Api.asc_nativeOpenFile(data, version); - } - else + switch (window.NATIVE_DOCUMENT_TYPE) { - Api.asc_nativeOpenFile(data, version, undefined, xlsx_file_path); + case "document": + case "presentation": + { + Api.asc_nativeOpenFile(data, version); + break; + } + case "spreadsheet": + { + Api.asc_nativeOpenFile(data, version, undefined, xlsx_file_path); + break; + } + case "pdf": + { + Api.asc_nativeOpenFile(data, version); + break; + } + default: + break; } } diff --git a/common/Native/native_graphics.js b/common/Native/native_graphics.js index cb26579fe0..50e4b91641 100644 --- a/common/Native/native_graphics.js +++ b/common/Native/native_graphics.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -31,12 +31,12 @@ */ "use strict"; -function CNativeGraphics() +function CNativeGraphics(nativeEmbed) { AscCommon.CGraphicsBase.call(this, AscCommon.RendererType.NativeDrawer); /** @suppress {checkVars} */ - this.Native = CreateEmbedObject("CGraphicsEmbed"); + this.Native = nativeEmbed ? nativeEmbed : CreateEmbedObject("CGraphicsEmbed"); this.isNativeGraphics = true; diff --git a/common/NumFormat.js b/common/NumFormat.js index fc3113febb..541b22daf0 100644 --- a/common/NumFormat.js +++ b/common/NumFormat.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -2847,26 +2847,45 @@ CellFormat.prototype = { isTextFormat : function() { - if(null != this.oPositiveFormat) + if (this.oPositiveFormat != null) { return this.oPositiveFormat.bTextFormat; - else if(null != this.aComporationFormats && this.aComporationFormats.length > 0) + } else if (this.aComporationFormats != null && this.aComporationFormats.length > 0) { return this.aComporationFormats[0].bTextFormat; + } return false; }, isGeneralFormat : function() { - if(null != this.oPositiveFormat) + if (this.oPositiveFormat != null) { return this.oPositiveFormat.isGeneral(); - else if(null != this.aComporationFormats && this.aComporationFormats.length > 0) + } else if (this.aComporationFormats != null && this.aComporationFormats.length > 0) { return this.aComporationFormats[0].isGeneral(); + } return false; }, isDateTimeFormat : function() { - if(null != this.oPositiveFormat) + if (this.oPositiveFormat != null) { return this.oPositiveFormat.bDateTime; - else if(null != this.aComporationFormats && this.aComporationFormats.length > 0) + } else if (this.aComporationFormats != null && this.aComporationFormats.length > 0) { return this.aComporationFormats[0].bDateTime; + } + return false; + }, + isTimeFormat : function() { + if (this.oPositiveFormat != null) { + return this.oPositiveFormat.bTime; + } else if (this.aComporationFormats != null && this.aComporationFormats.length > 0) { + return this.aComporationFormats[0].bTime; + } + return false; + }, + isDateFormat : function() { + if ( this.oPositiveFormat != null) { + return this.oPositiveFormat.bDate; + } else if (this.aComporationFormats != null && this.aComporationFormats.length > 0) { + return this.aComporationFormats[0].bDate; + } return false; }, getTextFormat: function () { @@ -3884,7 +3903,14 @@ FormatParser.prototype = prev.date = true; } if (i + 1 < length) { - var next = match[i + 1]; + let next = match[i + 1] + // processing the option when the date is given as the format "October 11, 2008" + if (i === 0 && i + 2 < length) { + let afterNext = match[i + 2]; + if (oDataTypes.digit == afterNext.type && false == afterNext.time) { + afterNext.date = true; + } + } if (oDataTypes.digit == next.type && false == next.time) next.date = true; } @@ -3931,7 +3957,7 @@ FormatParser.prototype = bError = true;//случай "1-2-3 10" } var nDateLength = aDate.length; - if (nDateLength > 0 && !(2 <= nDateLength && nDateLength <= 3 && (null == nMonthIndex || (3 == nDateLength && 1 == nMonthIndex) || 2 == nDateLength))) + if (nDateLength > 0 && !(2 <= nDateLength && nDateLength <= 3 && (null == nMonthIndex || (3 == nDateLength && 1 == nMonthIndex) || 2 == nDateLength || (3 == nDateLength && 0 == nMonthIndex)))) bError = true; var nTimeLength = aTime.length; if (nTimeLength > 3) @@ -3969,12 +3995,18 @@ FormatParser.prototype = bError = true; } } - } - else { - res.sDateFormat = "d-mmm-yy"; - res.d = aDate[0]; - res.m = aDate[1]; - res.y = aDate[2]; + } else { + if (nMonthIndex == 0) { + res.sDateFormat = "dd-mmm-yy"; + res.m = aDate[0]; + res.d = aDate[1]; + res.y = aDate[2]; + } else { + res.sDateFormat = "d-mmm-yy"; + res.d = aDate[0]; + res.m = aDate[1]; + res.y = aDate[2]; + } } } else { @@ -4252,7 +4284,7 @@ FormatParser.prototype = break; } } - return bRes; + return length === 0 ? false: bRes; }, parseDate: function (value, cultureInfo) { @@ -4273,7 +4305,7 @@ FormatParser.prototype = var oDataType = null; if("0" <= sChar && sChar <= "9") oDataType = oDataTypes.digit; - else if(" " == sChar) + else if(" " == sChar || "," == sChar) oDataType = oDataTypes.space; else if ("/" == sChar || "-" == sChar || ":" == sChar || cultureInfo.DateSeparator == sChar || cultureInfo.TimeSeparator == sChar) oDataType = oDataTypes.delimiter; @@ -4329,7 +4361,7 @@ FormatParser.prototype = } else if (!bMonth) { bMonth = true; - var aArraysToCheck = [{ arr: cultureInfo.AbbreviatedMonthNames, format: "mmm" }, { arr: cultureInfo.MonthNames, format: "mmmm" }]; + let aArraysToCheck = [{ arr: cultureInfo.MonthNames, format: "mmmm" }, { arr: cultureInfo.AbbreviatedMonthNames, format: "mmm" }]; var bFound = false; for (var index in aArraysToCheck) { var aArrayTemp = aArraysToCheck[index]; @@ -5715,7 +5747,7 @@ var g_aCultureInfos = { 1045: {LCID: 1045, Name: "pl-PL", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "zł", NumberDecimalSeparator: ",", NumberGroupSeparator: " ", NumberGroupSizes: [3], DayNames: ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], AbbreviatedDayNames: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], MonthNames: ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], AbbreviatedMonthNames: ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], MonthGenitiveNames: ["stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia", ""], AbbreviatedMonthGenitiveNames: [], AMDesignator: "AM", PMDesignator: "PM", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dddd\\,\\ d\\ mmmm\\ yyyy"}, 1046: {LCID: 1046, Name: "pt-BR", CurrencyPositivePattern: 2, CurrencyNegativePattern: 9, CurrencySymbol: "R$", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], AbbreviatedDayNames: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], MonthNames: ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], AbbreviatedMonthNames: ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dddd\\,\\ d\" de \"mmmm\" de \"yyyy"}, 1049: {LCID: 1049, Name: "ru-RU", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "₽", NumberDecimalSeparator: ",", NumberGroupSeparator: " ", NumberGroupSizes: [3], DayNames: ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], AbbreviatedDayNames: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], MonthNames: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], AbbreviatedMonthNames: ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], MonthGenitiveNames: ["января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря", ""], AbbreviatedMonthGenitiveNames: ["янв", "фев", "мар", "апр", "мая", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "d\\ mmmm\\ yyyy\\ \"г.\""}, - 1050: {LCID: 1050, Name: "hr-HR", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "kn", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["nedjelja", "ponedjeljak", "utorak", "srijeda", "četvrtak", "petak", "subota"], AbbreviatedDayNames: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], MonthNames: ["siječanj", "veljača", "ožujak", "travanj", "svibanj", "lipanj", "srpanj", "kolovoz", "rujan", "listopad", "studeni", "prosinac", ""], AbbreviatedMonthNames: ["sij", "vlj", "ožu", "tra", "svi", "lip", "srp", "kol", "ruj", "lis", "stu", "pro", ""], MonthGenitiveNames: ["siječnja", "veljače", "ožujka", "travnja", "svibnja", "lipnja", "srpnja", "kolovoza", "rujna", "listopada", "studenog", "prosinca", ""], AbbreviatedMonthGenitiveNames: [], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "d\\.\\ mmmm\\ yyyy\\."}, + 1050: {LCID: 1050, Name: "hr-HR", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "€", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["nedjelja", "ponedjeljak", "utorak", "srijeda", "četvrtak", "petak", "subota"], AbbreviatedDayNames: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], MonthNames: ["siječanj", "veljača", "ožujak", "travanj", "svibanj", "lipanj", "srpanj", "kolovoz", "rujan", "listopad", "studeni", "prosinac", ""], AbbreviatedMonthNames: ["sij", "vlj", "ožu", "tra", "svi", "lip", "srp", "kol", "ruj", "lis", "stu", "pro", ""], MonthGenitiveNames: ["siječnja", "veljače", "ožujka", "travnja", "svibnja", "lipnja", "srpnja", "kolovoza", "rujna", "listopada", "studenog", "prosinca", ""], AbbreviatedMonthGenitiveNames: [], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "d\\.\\ mmmm\\ yyyy\\."}, 1051: {LCID: 1051, Name: "sk-SK", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "€", NumberDecimalSeparator: ",", NumberGroupSeparator: " ", NumberGroupSizes: [3], DayNames: ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], AbbreviatedDayNames: ["ne", "po", "ut", "st", "št", "pi", "so"], MonthNames: ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], AbbreviatedMonthNames: ["jan", "feb", "mar", "apr", "máj", "jún", "júl", "aug", "sep", "okt", "nov", "dec", ""], MonthGenitiveNames: ["januára", "februára", "marca", "apríla", "mája", "júna", "júla", "augusta", "septembra", "októbra", "novembra", "decembra", ""], AbbreviatedMonthGenitiveNames: [], AMDesignator: "AM", PMDesignator: "PM", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "dddd\\ d\\.\\ mmmm\\ yyyy"}, 1053: {LCID: 1053, Name: "sv-SE", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "kr", NumberDecimalSeparator: ",", NumberGroupSeparator: " ", NumberGroupSizes: [3], DayNames: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], AbbreviatedDayNames: ["sön", "mån", "tis", "ons", "tor", "fre", "lör"], MonthNames: ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], AbbreviatedMonthNames: ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: "-", TimeSeparator: ":", ShortDatePattern: "531", LongDatePattern: "\"den \"d\\ mmmm\\ yyyy"}, 1055: {LCID: 1055, Name: "tr-TR", CurrencyPositivePattern: 0, CurrencyNegativePattern: 1, CurrencySymbol: "₺", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], AbbreviatedDayNames: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"], MonthNames: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], AbbreviatedMonthNames: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "ÖÖ", PMDesignator: "ÖS", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "035", LongDatePattern: "d\\ mmmm\\ yyyy\\ dddd"}, @@ -5775,10 +5807,12 @@ var g_aCultureInfos = { 9225: {LCID: 9225, Name: "en-029", CurrencyPositivePattern: 0, CurrencyNegativePattern: 1, CurrencySymbol: "EC$", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], AbbreviatedDayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], MonthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], AbbreviatedMonthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "AM", PMDesignator: "PM", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dddd\\,\\ dd\\ mmmm\\ yyyy"}, 9226: {LCID: 9226, Name: "es-CO", CurrencyPositivePattern: 2, CurrencyNegativePattern: 9, CurrencySymbol: "$", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], AbbreviatedDayNames: ["dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."], MonthNames: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], AbbreviatedMonthNames: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic.", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], AMDesignator: "a. m.", PMDesignator: "p. m.", UseAMPM: 1, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "035", LongDatePattern: "dddd\\,\\ d\\ \"de\"\\ mmmm\\ \"de\"\\ yyyy"}, 9228: {LCID: 9228, Name: "fr-CD", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "FC", NumberDecimalSeparator: ",", NumberGroupSeparator: " ", NumberGroupSizes: [3], DayNames: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], AbbreviatedDayNames: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], MonthNames: ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], AbbreviatedMonthNames: ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "AM", PMDesignator: "PM", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dddd\\ d\\ mmmm\\ yyyy"}, + 9242: {LCID: 9242, Name: "sr-Latn-RS", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "RSD", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["nedelja", "ponedeljak", "utorak", "sreda", "četvrtak", "petak", "subota"], AbbreviatedDayNames: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], MonthNames: ["januar", "februar", "mart", "april", "maj", "jun", "jul", "avgust", "septembar", "oktobar", "novembar", "decembar", ""], AbbreviatedMonthNames: ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "avg", "sep", "okt", "nov", "dec", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "pre podne", PMDesignator: "po podne", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "dddd\\,\\ dd\\.\\ mmmm\\ yyyy\\."}, 10241: {LCID: 10241, Name: "ar-SY", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "ل.س.‏", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], AbbreviatedDayNames: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], MonthNames: ["كانون الثاني", "شباط", "آذار", "نيسان", "أيار", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول", ""], AbbreviatedMonthNames: ["كانون الثاني", "شباط", "آذار", "نيسان", "أيار", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "ص", PMDesignator: "م", UseAMPM: 1, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dd\\ mmmm\\,\\ yyyy"}, 10249: {LCID: 10249, Name: "en-BZ", CurrencyPositivePattern: 0, CurrencyNegativePattern: 1, CurrencySymbol: "$", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], AbbreviatedDayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], MonthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], AbbreviatedMonthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "am", PMDesignator: "pm", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dddd\\,\\ dd\\ mmmm\\ yyyy"}, 10250: {LCID: 10250, Name: "es-PE", CurrencyPositivePattern: 2, CurrencyNegativePattern: 9, CurrencySymbol: "S/", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], AbbreviatedDayNames: ["dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."], MonthNames: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Setiembre", "Octubre", "Noviembre", "Diciembre", ""], AbbreviatedMonthNames: ["Ene.", "Feb.", "Mar.", "Abr.", "May.", "Jun.", "Jul.", "Ago.", "Set.", "Oct.", "Nov.", "Dic.", ""], MonthGenitiveNames: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "setiembre", "octubre", "noviembre", "diciembre", ""], AbbreviatedMonthGenitiveNames: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "set.", "oct.", "nov.", "dic.", ""], AMDesignator: "a. m.", PMDesignator: "p. m.", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "035", LongDatePattern: "dddd\\,\\ d\\ \"de\"\\ mmmm\\ \"de\"\\ yyyy"}, 10252: {LCID: 10252, Name: "fr-SN", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "CFA", NumberDecimalSeparator: ",", NumberGroupSeparator: " ", NumberGroupSizes: [3], DayNames: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], AbbreviatedDayNames: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], MonthNames: ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], AbbreviatedMonthNames: ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "AM", PMDesignator: "PM", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dddd\\ d\\ mmmm\\ yyyy"}, + 10266: {LCID: 10266, Name: "sr-Cyrl-RS", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "дин.", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["недеља", "понедељак", "уторак", "среда", "четвртак", "петак", "субота"], AbbreviatedDayNames: ["нед.", "пон.", "ут.", "ср.", "чет.", "пет.", "суб."], MonthNames: ["јануар", "фебруар", "март", "април", "мај", "јун", "јул", "август", "септембар", "октобар", "новембар", "децембар", ""], AbbreviatedMonthNames: ["јан.", "феб.", "март", "апр.", "мај", "јун", "јул", "авг.", "септ.", "окт.", "нов.", "дец.", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "d\\.\\ mmmm\\ yyyy\\."}, 11265: {LCID: 11265, Name: "ar-JO", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "د.ا.‏", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], AbbreviatedDayNames: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], MonthNames: ["كانون الثاني", "شباط", "آذار", "نيسان", "أيار", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول", ""], AbbreviatedMonthNames: ["كانون الثاني", "شباط", "آذار", "نيسان", "أيار", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "ص", PMDesignator: "م", UseAMPM: 1, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dd\\ mmmm\\,\\ yyyy"}, 11273: {LCID: 11273, Name: "en-TT", CurrencyPositivePattern: 0, CurrencyNegativePattern: 1, CurrencySymbol: "$", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], AbbreviatedDayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], MonthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], AbbreviatedMonthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "am", PMDesignator: "pm", UseAMPM: 1, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "dddd\\,\\ d\\ mmmm\\ yyyy"}, 11274: {LCID: 11274, Name: "es-AR", CurrencyPositivePattern: 2, CurrencyNegativePattern: 9, CurrencySymbol: "$", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], AbbreviatedDayNames: ["dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."], MonthNames: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], AbbreviatedMonthNames: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "a. m.", PMDesignator: "p. m.", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "dddd\\,\\ d\\ \"de\"\\ mmmm\\ \"de\"\\ yyyy"}, @@ -5811,12 +5845,14 @@ var g_aCultureInfos = { 21514: {LCID: 21514, Name: "es-US", CurrencyPositivePattern: 0, CurrencyNegativePattern: 0, CurrencySymbol: "$", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], AbbreviatedDayNames: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"], MonthNames: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], AbbreviatedMonthNames: ["ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "AM", PMDesignator: "PM", UseAMPM: 1, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "205", LongDatePattern: "dddd\\,\\ mmmm\\ dd\\,\\ yyyy"}, 22538: {LCID: 22538, Name: "es-419", CurrencyPositivePattern: 0, CurrencyNegativePattern: 1, CurrencySymbol: "XDR", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], AbbreviatedDayNames: ["dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."], MonthNames: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], AbbreviatedMonthNames: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "a.m.", PMDesignator: "p.m.", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "dddd\\,\\ d\\ \"de\"\\ mmmm\\ \"de\"\\ yyyy"}, 23562: {LCID: 23562, Name: "es-CU", CurrencyPositivePattern: 0, CurrencyNegativePattern: 1, CurrencySymbol: "$", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], AbbreviatedDayNames: ["dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."], MonthNames: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], AbbreviatedMonthNames: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "a.m.", PMDesignator: "p.m.", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "dddd\\,\\ d\\ \"de\"\\ mmmm\\ \"de\"\\ yyyy"}, + 27674: {LCID: 27674, Name: "sr-Cyrl", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "дин.", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["недеља", "понедељак", "уторак", "среда", "четвртак", "петак", "субота"], AbbreviatedDayNames: ["нед.", "пон.", "ут.", "ср.", "чет.", "пет.", "суб."], MonthNames: ["јануар", "фебруар", "март", "април", "мај", "јун", "јул", "август", "септембар", "октобар", "новембар", "децембар", ""], AbbreviatedMonthNames: ["јан.", "феб.", "март", "апр.", "мај", "јун", "јул", "авг.", "септ.", "окт.", "нов.", "дец.", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "d\\.\\ mmmm\\ yyyy\\."}, + 28698: {LCID: 28698, Name: "sr-Latn", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "RSD", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["nedelja", "ponedeljak", "utorak", "sreda", "četvrtak", "petak", "subota"], AbbreviatedDayNames: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], MonthNames: ["januar", "februar", "mart", "april", "maj", "jun", "jul", "avgust", "septembar", "oktobar", "novembar", "decembar", ""], AbbreviatedMonthNames: ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "avg", "sep", "okt", "nov", "dec", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "pre podne", PMDesignator: "po podne", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "dddd\\,\\ dd\\.\\ mmmm\\ yyyy\\."}, 29740: {LCID: 29740, Name: "az-Cyrl", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "₼", NumberDecimalSeparator: ",", NumberGroupSeparator: " ", NumberGroupSizes: [3], DayNames: ["базар", "базар ертәси", "чәршәнбә ахшамы", "чәршәнбә", "ҹүмә ахшамы", "ҹүмә", "шәнбә"], AbbreviatedDayNames: ["Б", "Бе", "Ча", "Ч", "Ҹа", "Ҹ", "Ш"], MonthNames: ["jанвар", "феврал", "март", "апрел", "мај", "ијун", "ијул", "август", "сентјабр", "октјабр", "нојабр", "декабр", ""], AbbreviatedMonthNames: ["Јан", "Фев", "Мар", "Апр", "Мај", "Ијун", "Ијул", "Авг", "Сен", "Окт", "Ноя", "Дек", ""], MonthGenitiveNames: ["јанвар", "феврал", "март", "апрел", "мај", "ијун", "ијул", "август", "сентјабр", "октјабр", "нојабр", "декабр", ""], AbbreviatedMonthGenitiveNames: ["Јан", "Фев", "Мар", "Апр", "мая", "ијун", "ијул", "Авг", "Сен", "Окт", "Ноя", "Дек", ""], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "d\\ mmmm\\ yyyy"}, 30724: {LCID: 30724, Name: "zh", CurrencyPositivePattern: 0, CurrencyNegativePattern: 2, CurrencySymbol: "¥", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], AbbreviatedDayNames: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"], MonthNames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], AbbreviatedMonthNames: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "上午", PMDesignator: "下午", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "520", LongDatePattern: "yyyy\"年\"m\"月\"d\"日\""}, 30764: {LCID: 30764, Name: "az-Latn", CurrencyPositivePattern: 3, CurrencyNegativePattern: 8, CurrencySymbol: "₼", NumberDecimalSeparator: ",", NumberGroupSeparator: ".", NumberGroupSizes: [3], DayNames: ["bazar", "bazar ertəsi", "çərşənbə axşamı", "çərşənbə", "cümə axşamı", "cümə", "şənbə"], AbbreviatedDayNames: ["B.", "B.E.", "Ç.A.", "Ç.", "C.A.", "C.", "Ş."], MonthNames: ["Yanvar", "Fevral", "Mart", "Aprel", "May", "İyun", "İyul", "Avqust", "Sentyabr", "Oktyabr", "Noyabr", "Dekabr", ""], AbbreviatedMonthNames: ["yan", "fev", "mar", "apr", "may", "iyn", "iyl", "avq", "sen", "okt", "noy", "dek", ""], MonthGenitiveNames: ["yanvar", "fevral", "mart", "aprel", "may", "iyun", "iyul", "avqust", "sentyabr", "oktyabr", "noyabr", "dekabr", ""], AbbreviatedMonthGenitiveNames: [], AMDesignator: "AM", PMDesignator: "PM", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "135", LongDatePattern: "d\\ mmmm\\ yyyy\\,\\ dddd"}, 30800: {LCID: 30800, Name: "mn-Cyrl", CurrencyPositivePattern: 2, CurrencyNegativePattern: 9, CurrencySymbol: "₮", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["ням", "даваа", "мягмар", "лхагва", "пүрэв", "баасан", "бямба"], AbbreviatedDayNames: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"], MonthNames: ["Нэгдүгээр сар", "Хоёрдугаар сар", "Гуравдугаар сар", "Дөрөвдүгээр сар", "Тавдугаар сар", "Зургаадугаар сар", "Долоодугаар сар", "Наймдугаар сар", "Есдүгээр сар", "Аравдугаар сар", "Арван нэгдүгээр сар", "Арван хоёрдугаар сар", ""], AbbreviatedMonthNames: ["1-р сар", "2-р сар", "3-р сар", "4-р сар", "5-р сар", "6-р сар", "7-р сар", "8-р сар", "9-р сар", "10-р сар", "11-р сар", "12-р сар", ""], MonthGenitiveNames: ["нэгдүгээр сар", "хоёрдугаар сар", "гуравдугаар сар", "дөрөвдүгээр сар", "тавдугаар сар", "зургаадугаар сар", "долоодугаар сар", "наймдугаар сар", "есдүгээр сар", "аравдугаар сар", "арван нэгдүгээр сар", "арван хоёрдугаар сар", ""], AbbreviatedMonthGenitiveNames: [], AMDesignator: "ү.ө.", PMDesignator: "ү.х.", UseAMPM: 0, DateSeparator: ".", TimeSeparator: ":", ShortDatePattern: "531", LongDatePattern: "yyyy\\.mm\\.dd\\,\\ dddd"}, 31748: {LCID: 31748, Name: "zh-Hant", CurrencyPositivePattern: 0, CurrencyNegativePattern: 0, CurrencySymbol: "HK$", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3], DayNames: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], AbbreviatedDayNames: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"], MonthNames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], AbbreviatedMonthNames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "上午", PMDesignator: "下午", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "025", LongDatePattern: "yyyy\"年\"m\"月\"d\"日\""}, - 31824: {LCID:31824,Name:"mn-Mong",CurrencyPositivePattern:0,CurrencyNegativePattern:2,CurrencySymbol:"¥",NumberDecimalSeparator:".",NumberGroupSeparator:",",NumberGroupSizes:[3,0],DayNames:["ᠭᠠᠷᠠᠭ ᠤᠨ ᠡᠳᠦᠷ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠨᠢᠭᠡᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠬᠣᠶᠠᠷ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠭᠤᠷᠪᠠᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠳᠥᠷᠪᠡᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠲᠠᠪᠤᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠵᠢᠷᠭᠤᠭᠠᠨ"],AbbreviatedDayNames:["ᠭᠠᠷᠠᠭ ᠤᠨ ᠡᠳᠦᠷ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠨᠢᠭᠡᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠬᠣᠶᠠᠷ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠭᠤᠷᠪᠠᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠳᠥᠷᠪᠡᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠲᠠᠪᠤᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠵᠢᠷᠭᠤᠭᠠᠨ"],MonthNames:["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ",""],AbbreviatedMonthNames:["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ",""],MonthGenitiveNames:[],AbbreviatedMonthGenitiveNames:[],AMDesignator:"",PMDesignator:"",UseAMPM:0,DateSeparator:"/",TimeSeparator:":",ShortDatePattern:"520",LongDatePattern:"yyyy\\ᠣ\\ᠨ\\ mmmm\\ d\\ᠡ\\ᠳ\\ᠦ\\ᠷ\\᠂\\ dddd"}, + 31824: {LCID: 31824, Name: "mn-Mong", CurrencyPositivePattern: 0, CurrencyNegativePattern: 2, CurrencySymbol: "¥", NumberDecimalSeparator: ".", NumberGroupSeparator: ",", NumberGroupSizes: [3, 0], DayNames: ["ᠭᠠᠷᠠᠭ ᠤᠨ ᠡᠳᠦᠷ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠨᠢᠭᠡᠨ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠬᠣᠶᠠᠷ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠭᠤᠷᠪᠠᠨ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠳᠥᠷᠪᠡᠨ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠲᠠᠪᠤᠨ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠵᠢᠷᠭᠤᠭᠠᠨ"], AbbreviatedDayNames: ["ᠭᠠᠷᠠᠭ ᠤᠨ ᠡᠳᠦᠷ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠨᠢᠭᠡᠨ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠬᠣᠶᠠᠷ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠭᠤᠷᠪᠠᠨ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠳᠥᠷᠪᠡᠨ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠲᠠᠪᠤᠨ", "ᠭᠠᠷᠠᠭ ᠤᠨ ᠵᠢᠷᠭᠤᠭᠠᠨ"], MonthNames: ["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ", "ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ", "ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ", "ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ", "ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", ""], AbbreviatedMonthNames: ["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ", "ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ", "ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ", "ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", "ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ", "ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ", ""], MonthGenitiveNames: [], AbbreviatedMonthGenitiveNames: [], AMDesignator: "", PMDesignator: "", UseAMPM: 0, DateSeparator: "/", TimeSeparator: ":", ShortDatePattern: "520", LongDatePattern: "yyyy\\ᠣ\\ᠨ\\ mmmm\\ d\\ᠡ\\ᠳ\\ᠦ\\ᠷ\\᠂\\ dddd"}, }; var g_oDefaultCultureInfo, g_oLCID; setCurrentCultureInfo(1033);//en-US//1033//fr-FR//1036//basq//1069//ru-Ru//1049//hindi//1081 diff --git a/common/Overlay.js b/common/Overlay.js index aedfff0249..ed8eb67160 100644 --- a/common/Overlay.js +++ b/common/Overlay.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/PromiseIterators.js b/common/PromiseIterators.js index 21d9a17e3e..d5673c7535 100644 --- a/common/PromiseIterators.js +++ b/common/PromiseIterators.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Scrolls/mobileTouchManagerBase.js b/common/Scrolls/mobileTouchManagerBase.js index b7f73c55a8..67211b2e45 100644 --- a/common/Scrolls/mobileTouchManagerBase.js +++ b/common/Scrolls/mobileTouchManagerBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -38,6 +38,45 @@ var AscCommon = window['AscCommon']; var global_mouseEvent = AscCommon.global_mouseEvent; + /* + function CVirtualKeyboard() + { + this.checkSupport = false; + this.isShow = false; + + try + { + if ("virtualKeyboard" in navigator) + { + this.checkSupport = true; + + if (navigator.virtualKeyboard.addEventListener) + { + navigator.virtualKeyboard.addEventListener("geometrychange", function(event) { + alert(JSON.stringify(event.target.boundingRect)); + }); + } + } + } + catch (err) + { + this.checkSupport = false; + } + + this.isSupport = function() + { + return this.checkSupport; + }; + + this.isVisible = function() + { + return this.isShow; + }; + } + + AscCommon.virtualKeyboard = new CVirtualKeyboard(); + */ + AscCommon.MobileTouchMode = { None : 0, @@ -215,6 +254,10 @@ { return false; }; + CMobileDelegateSimple.prototype.IsLockedZoom = function() + { + return false; + }; /** * @extends {CMobileDelegateSimple} @@ -241,7 +284,10 @@ }; CMobileDelegateEditor.prototype.ConvertCoordsFromCursor = function(x, y) { - return this.DrawingDocument.ConvertCoordsFromCursor2(x, y); + let res = this.DrawingDocument.ConvertCoordsFromCursor2(x, y); + if (undefined === res.pageIndex) + res.Page = res.DrawPage; + return res; }; CMobileDelegateEditor.prototype.GetElementOffset = function() { @@ -312,17 +358,14 @@ var _target = this.LogicDocument.IsSelectionUse(); if (_target === false) { - /* - _info = { - X : this.DrawingDocument.m_dTargetX, - Y : this.DrawingDocument.m_dTargetY, - Page : this.DrawingDocument.m_lTargetPage - }; - */ + let targetPos = this.LogicDocument.Get_TargetPos(); + if (!targetPos) + return; + _info = { - X : this.LogicDocument.TargetPos.X, - Y : this.LogicDocument.TargetPos.Y, - Page : this.LogicDocument.TargetPos.PageNum + X : targetPos.X, + Y : targetPos.Y, + Page : targetPos.PageNum }; _transform = this.DrawingDocument.TextMatrix; @@ -508,7 +551,7 @@ CMobileDelegateEditor.prototype.GetScrollerParent = function() { if (this.IsNativeViewer()) - return document.getElementById(this.Api.HtmlElementName); + return document.getElementById("id_main"); return this.HtmlPage.m_oMainView.HtmlElement; }; CMobileDelegateEditor.prototype.GetScrollerSize = function() @@ -570,7 +613,13 @@ }; CMobileDelegateEditor.prototype.IsReader = function() { - return (null != this.DrawingDocument.m_oDocumentRenderer); + return false;//(null != this.DrawingDocument.m_oDocumentRenderer); + }; + CMobileDelegateEditor.prototype.IsLockedZoom = function() + { + // Fix after testing... + return false; + return this.HtmlPage.ReaderModeCurrent === 1; }; CMobileDelegateEditor.prototype.IsNativeViewer = function() { @@ -581,6 +630,8 @@ CMobileDelegateEditor.prototype.Logic_GetNearestPos = function(x, y, page) { + if (this.IsNativeViewer()) + return null; return this.LogicDocument.Get_NearestPos(page, x, y); }; CMobileDelegateEditor.prototype.Logic_OnMouseDown = function(e, x, y, page) @@ -597,14 +648,20 @@ }; CMobileDelegateEditor.prototype.Drawing_OnMouseDown = function(e) { + if (this.IsNativeViewer()) + return this.DrawingDocument.m_oDocumentRenderer.onMouseDown(e); return this.HtmlPage.onMouseDown(e); }; CMobileDelegateEditor.prototype.Drawing_OnMouseMove = function(e) { + if (this.IsNativeViewer()) + return this.DrawingDocument.m_oDocumentRenderer.onMouseMove(e); return this.HtmlPage.onMouseMove(e); }; CMobileDelegateEditor.prototype.Drawing_OnMouseUp = function(e) { + if (this.IsNativeViewer()) + return this.DrawingDocument.m_oDocumentRenderer.onMouseUp(e); return this.HtmlPage.onMouseUp(e); }; @@ -613,14 +670,20 @@ this.Api = null; this.Mode = AscCommon.MobileTouchMode.None; + this.isDesktopMode = _config.desktopMode === true; + this.isTouchingProcess = false; + this.desktopTouchState = false; + this.IsTouching = false; this.ReadingGlassTime = 750; this.TimeDown = 0; this.DownPoint = null; this.DownPointOriginal = {X : 0, Y : 0}; + this.MoveMinDist = 20; + this.isGlassDrawed = false; + this.MoveAfterDown = false; - this.MoveMinDist = 10; /* select text */ this.SelectEnabled = (_config.isSelection !== false); @@ -681,15 +744,132 @@ this.isShowingContextMenu = false; this.isMobileContextMenuShowResize = false; + + // On Android, there is no way to show the keyboard except onclick + // TODO: may be exist another way?? + this.isCheckFocusOnClick = AscCommon.AscBrowser.isAndroid; + this.isCheckFocusOnClickValue = false; } CMobileTouchManagerBase.prototype.initEvents = function(_id) { + this.desktopTouchState = true; this.eventsElement = _id; this.iScroll.eventsElement = this.eventsElement; this.iScroll._initEvents(); }; + CMobileTouchManagerBase.prototype.isTouchMode = function() + { + if (this.isDesktopMode) + return this.desktopTouchState; + return true; + }; + + CMobileTouchManagerBase.prototype.checkMouseFocus = function(e) + { + // mobile version does not get focus with mouse events + if (this.Api.isMobileVersion && e && "mouse" === e.pointerType) + { + if (AscCommon.g_inputContext) + AscCommon.g_inputContext.setInterfaceEnableKeyEvents(true); + } + }; + + CMobileTouchManagerBase.prototype.checkTouchEvent = function(e) + { + if (!e) + return false; + + if (this.isDesktopMode) + { + if (this.isTouchingInProcess()) + return false; + + if (e.pointerType === "touch") + { + this.desktopTouchState = true; + + switch (this.Api.editorId) + { + case AscCommon.c_oEditorId.Word: + { + if (this.Api.isDrawTableErase === true || + this.Api.isDrawTablePen === true || + this.Api.isStartAddShape === true || + this.Api.isInkDrawerOn()) + { + this.desktopTouchState = false; + } + break; + } + case AscCommon.c_oEditorId.Spreadsheet: + { + if (this.Api.isStartAddShape === true) + { + this.desktopTouchState = false; + } + break; + } + case AscCommon.c_oEditorId.Presentation: + { + if (this.Api.isStartAddShape === true) + { + this.desktopTouchState = false; + } + break; + } + default: + break; + } + } + else + this.desktopTouchState = false; + + return this.desktopTouchState; + } + + return false; + }; + + CMobileTouchManagerBase.prototype.isTouchingInProcess = function() + { + return this.isTouchingProcess; + }; + CMobileTouchManagerBase.prototype.startTouchingInProcess = function() + { + this.isTouchingProcess = true; + }; + CMobileTouchManagerBase.prototype.stopTouchingInProcess = function() + { + this.isTouchingProcess = false; + }; + + CMobileTouchManagerBase.prototype.checkDesktopModeContextMenuEnd = function(e) + { + let isContextMenu = false; + if (this.isDesktopMode && !this.MoveAfterDown) + { + let newTime = new Date().getTime(); + if ((newTime - this.TimeDown) > 750) + isContextMenu = true; + } + + if (!e) + return isContextMenu; + + if (!isContextMenu) + return; + + AscCommon.global_mouseEvent.ButtonOverride = AscCommon.g_mouse_button_right; + + let _e = e.changedTouches ? e.changedTouches[0] : e; + this.delegate.Drawing_OnMouseDown(_e); + this.delegate.Drawing_OnMouseUp(_e); + + AscCommon.global_mouseEvent.ButtonOverride = -1; + }; + CMobileTouchManagerBase.prototype.checkHandlersOnClick = function() { var handler = this.Api.getHandlerOnClick(); @@ -711,7 +891,7 @@ CMobileTouchManagerBase.prototype.CreateScrollerDiv = function(_wrapper) { var _scroller = document.createElement('div'); - var _style = "position: absolute; z-index: 0; margin: 0; padding: 0; -webkit-tap-highlight-color: rgba(0,0,0,0); width: 100%; heigth: 100%; display: block;"; + var _style = "position: absolute; z-index: -1; margin: 0; padding: 0; -webkit-tap-highlight-color: rgba(0,0,0,0); width: 100%; heigth: 100%; display: block;"; _style += "-webkit-transform: translateZ(0); -moz-transform: translateZ(0); -ms-transform: translateZ(0); -o-transform: translateZ(0); transform: translateZ(0);"; _style += "touch-action:none;-webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;"; _style += "-webkit-text-size-adjust: none; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -o-text-size-adjust: none; text-size-adjust: none;"; @@ -1072,6 +1252,12 @@ } var _new_value = this.delegate.GetZoomFit(); + if (this.isDesktopMode && !this.Api.isMobileVersion) + { + let c_min_zoom_value = 50; // delegate method + if (_new_value > c_min_zoom_value) + _new_value = c_min_zoom_value; + } this.ZoomValueMin = _new_value; if (this.ZoomValue < this.ZoomValueMin) @@ -1170,7 +1356,9 @@ { that.ContextMenuShowTimerId = -1; var _pos = that.delegate.GetContextMenuPosition(); + if (AscCommon.g_inputContext) AscCommon.g_inputContext.isGlobalDisableFocus = true; that.Api.sendEvent("asc_onShowPopMenu", _pos.X, _pos.Y, (_pos.Mode > 1) ? true : false); + if (AscCommon.g_inputContext) AscCommon.g_inputContext.isGlobalDisableFocus = false; }, 500); }; @@ -1473,9 +1661,199 @@ this.PageSelect2 = _rect2.Page; }; + CMobileTouchManagerBase.prototype.CheckGlassUpdate = function() + { + if (this.isGlassDrawed) + this.delegate.HtmlPage.OnUpdateOverlay(); + }; + + CMobileTouchManagerBase.prototype.CheckGlass = function(overlay, mainLayer, targetElement) + { + this.isGlassDrawed = false; + + if (this.Mode !== AscCommon.MobileTouchMode.Cursor && + this.Mode !== AscCommon.MobileTouchMode.Select) + { + return; + } + + var rPR = AscCommon.AscBrowser.retinaPixelRatio; + let elementOffset = this.delegate.GetElementOffset(); + let posMouseX = (rPR * (AscCommon.global_mouseEvent.X - elementOffset.X)) >> 0; + let posMouseY = (rPR * (AscCommon.global_mouseEvent.Y - elementOffset.Y)) >> 0; + + let glassSize = (rPR * 100) >> 0; + let glassOffset = (rPR * 25) >> 0; + let glassScale = 2; + + let srcSize = (glassSize / glassScale) >> 0; + let srcX = posMouseX - (srcSize >> 1); + let srcY = posMouseY - (srcSize >> 1); + + if (0 > srcX || 0 > srcY) + return; + + let srcR = srcX + srcSize; + let srcB = srcY + srcSize; + + let rad = (glassSize >> 1); + let dstX = posMouseX - rad; + let dstY = posMouseY - glassOffset - glassSize; + + let imageSizeX = mainLayer.width; + let imageSizeY = mainLayer.height; + + if (srcY < 0) + { + dstY += ((-1 * glassScale * srcY) >> 0); + srcY = 0; + } + if (srcX < 0) + { + dstX += ((-1 * glassScale * srcX) >> 0); + srcX = 0; + } + if (srcR >= imageSizeX) + srcR = imageSizeX; + if (srcB >= imageSizeY) + srcB = imageSizeY; + + var ctx = overlay.m_oContext; + ctx.save(); + ctx.beginPath(); + ctx.arc(dstX + rad, dstY + rad, rad, 0, 2 * Math.PI); + ctx.clip(); + ctx.beginPath(); + + let srcW = srcR - srcX; + let srcH = srcB - srcY; + + if (srcW > 0 && srcH > 0) + { + if (AscCommon.AscBrowser.isAppleDevices) + { + if (!this.glassCanvas) + this.glassCanvas = document.createElement("canvas"); + + if (glassSize !== this.glassCanvas.width || glassSize !== this.glassCanvas.height) + { + this.glassCanvas.width = glassSize; + this.glassCanvas.width = glassSize; + } + let ctxTmp = this.glassCanvas.getContext("2d"); + + let data1 = mainLayer.getContext("2d").getImageData(srcX, srcY, srcW, srcH); + ctxTmp.putImageData(data1, 0, 0); + ctx.drawImage(this.glassCanvas, 0, 0, srcW, srcH, dstX, dstY, (srcW * glassScale) >> 0, (srcH * glassScale) >> 0); + + let data2 = ctx.getImageData(srcX, srcY, srcW, srcH); + ctxTmp.putImageData(data2, 0, 0); + ctx.drawImage(this.glassCanvas, 0, 0, srcW, srcH, dstX, dstY, (srcW * glassScale) >> 0, (srcH * glassScale) >> 0); + } else + { + ctx.drawImage(mainLayer, srcX, srcY, srcW, srcH, dstX, dstY, (srcW * glassScale) >> 0, (srcH * glassScale) >> 0); + ctx.drawImage(ctx.canvas, srcX, srcY, srcW, srcH, dstX, dstY, (srcW * glassScale) >> 0, (srcH * glassScale) >> 0); + } + } + + if (targetElement) + { + let tL = parseInt(targetElement.style.left); + let tT = parseInt(targetElement.style.top); + let tR = tL + parseInt(targetElement.style.width); + let tB = tT + parseInt(targetElement.style.height); + let m = undefined; + + let transform = targetElement.style["transform"] || targetElement.style["webkitTransform"] || targetElement.style["mozTransform"] || targetElement.style["msTransform"] || ""; + if (transform !== "") + { + let pos1 = transform.indexOf("("); + let pos2 = transform.indexOf(")"); + + if (-1 !== pos1 && -1 !== pos2 && pos2 > pos1) + { + let arrPos = transform.substring(pos1 + 1, pos2).split(", "); + if (6 === arrPos.length) + { + m = new AscCommon.CMatrix(); + m.SetValues(parseFloat(arrPos[0]), parseFloat(arrPos[1]), parseFloat(arrPos[2]), + parseFloat(arrPos[3]), parseFloat(arrPos[4]), parseFloat(arrPos[5])); + } + } + } + + let arrPoints = new Array(8); + + if (!m) + { + arrPoints[0] = tL * rPR; + arrPoints[1] = tT * rPR; + + arrPoints[2] = tR * rPR; + arrPoints[3] = tT * rPR; + + arrPoints[4] = tR * rPR; + arrPoints[5] = tB * rPR; + + arrPoints[6] = tL * rPR; + arrPoints[7] = tB * rPR; + } + else + { + arrPoints[0] = rPR * m.TransformPointX(tL, tT); + arrPoints[1] = rPR * m.TransformPointY(tL, tT); + + arrPoints[2] = rPR * m.TransformPointX(tR, tT); + arrPoints[3] = rPR * m.TransformPointY(tR, tT); + + arrPoints[4] = rPR * m.TransformPointX(tR, tB); + arrPoints[5] = rPR * m.TransformPointY(tR, tB); + + arrPoints[6] = rPR * m.TransformPointX(tL, tB); + arrPoints[7] = rPR * m.TransformPointY(tL, tB); + } + + let cX = posMouseX; + let cY = posMouseY - glassOffset - rad; + for (let i = 0; i < 8; i += 2) + { + let x = arrPoints[i]; + let y = arrPoints[i + 1]; + + x = cX + (x - posMouseX) * glassScale; + y = cY + (y - posMouseY) * glassScale; + + if (0 === i) + ctx.moveTo(x, y); + else + ctx.lineTo(x, y); + } + ctx.closePath(); + ctx.fillStyle = targetElement.style.backgroundColor; + ctx.fill(); + ctx.beginPath(); + } + + ctx.beginPath(); + ctx.arc(dstX + rad, dstY + rad, rad, 0, 2 * Math.PI); + ctx.lineWidth = 1; + ctx.strokeStyle = GlobalSkin.RulerOutline; + ctx.stroke(); + ctx.beginPath(); + + overlay.CheckRect(posMouseX - rad, posMouseY - glassOffset - glassSize, glassSize, glassSize); + + ctx.restore(); + + this.isGlassDrawed = true; + }; + // отрисовка текстового селекта CMobileTouchManagerBase.prototype.CheckSelect = function(overlay) { + if (!this.desktopTouchState) + return; + if (!this.SelectEnabled) return; @@ -1586,6 +1964,9 @@ // заточка на определенного делегата CMobileTouchManagerBase.prototype.CheckTableRules = function(overlay) { + if (!this.desktopTouchState) + return; + if (this.Api.isViewMode || this.Api.isRestrictionForms() || !this.TableTrackEnabled) return; @@ -1647,8 +2028,8 @@ { this.TableMovePoint = {X : _tableOutline.X, Y : _tableOutline.Y}; - var pos1 = DrawingDocument.ConvertCoordsToCursorWR(_tableOutline.X, _tableOutline.Y, _tableOutline.PageNum); - var pos2 = DrawingDocument.ConvertCoordsToCursorWR(_tableOutline.X + _tableW, _tableOutline.Y, _tableOutline.PageNum); + var pos1 = DrawingDocument.ConvertCoordsToCursorWR(_tableOutline.X, _tableOutline.Y, _tableOutline.PageNum, undefined, false); + var pos2 = DrawingDocument.ConvertCoordsToCursorWR(_tableOutline.X + _tableW, _tableOutline.Y, _tableOutline.PageNum, undefined, false); ctx.beginPath(); @@ -1680,8 +2061,8 @@ _y2 += _table_markup.Rows[i].H; } - var pos3 = DrawingDocument.ConvertCoordsToCursorWR(_tableOutline.X, _y1, DrawingDocument.m_lCurrentPage); - var pos4 = DrawingDocument.ConvertCoordsToCursorWR(_tableOutline.X, _y2, DrawingDocument.m_lCurrentPage); + var pos3 = DrawingDocument.ConvertCoordsToCursorWR(_tableOutline.X, _y1, DrawingDocument.m_lCurrentPage, undefined, false); + var pos4 = DrawingDocument.ConvertCoordsToCursorWR(_tableOutline.X, _y2, DrawingDocument.m_lCurrentPage, undefined, false); if (this.delegate.Name != "slide") { @@ -1760,7 +2141,7 @@ var _newPos = (i != _count) ? _table_markup.Rows[i].Y : _oldY; var _p = {Y : _oldY, H : (_newPos - _oldY)}; - var _y = DrawingDocument.ConvertCoordsToCursorWR(0, _oldY, _PageNum); + var _y = DrawingDocument.ConvertCoordsToCursorWR(0, _oldY, _PageNum, undefined, false); ctx.beginPath(); overlay.AddDiamond(Math.round(_x * rPR) + 1.5 + Math.round(Math.round(_rectWidth * rPR) / 2), Math.round(_y.Y * rPR), Math.round(AscCommon.MOBILE_TABLE_RULER_DIAMOND * rPR)); @@ -2232,13 +2613,16 @@ CMobileTouchManagerBase.prototype.checkPointerEvent = function(e) { var _type = e.type; + if (!_type) + return false; + if (_type.toLowerCase) _type = _type.toLowerCase(); - if (-1 == _type.indexOf("pointer")) + if (-1 === _type.indexOf("pointer")) return false; - if (undefined == e["pointerId"]) + if (undefined === e["pointerId"]) return false; return true; @@ -2300,13 +2684,45 @@ return _count; }; - CMobileTouchManagerBase.prototype.showKeyboard = function() + CMobileTouchManagerBase.prototype.showKeyboard = function(isForce) { if (AscCommon.g_inputContext) { - if (this.ContextMenuLastMode == AscCommon.MobileTouchContextMenuType.Target) - AscCommon.g_inputContext.HtmlArea.focus(); + let isShow = (isForce === true) ? true : false; + if (!isShow) + { + if (this.ContextMenuLastMode === AscCommon.MobileTouchContextMenuType.Target) + { + if (this.Api.canEnterText()) + isShow = true; + } + } + if (isShow) + { + AscCommon.g_inputContext.showKeyboard(); + + if (this.isCheckFocusOnClick) + this.isCheckFocusOnClickValue = true; + } + } + }; + + CMobileTouchManagerBase.prototype.addClickElement = function(elems) + { + for (let i = 0, len = elems.length; i < len; i++) + elems[i].onclick = this.onClickElement.bind(this); + }; + + CMobileTouchManagerBase.prototype.onClickElement = function(e) + { + if (this.isCheckFocusOnClickValue === true) + { + if (AscCommon.g_inputContext) + AscCommon.g_inputContext.showKeyboard(); + this.isCheckFocusOnClickValue = false; } + + this.checkHandlersOnClick(); }; CMobileTouchManagerBase.prototype.scrollTo = function(x, y) diff --git a/common/SerializeChart.js b/common/SerializeChart.js index fddb12ea85..dd2fb59876 100644 --- a/common/SerializeChart.js +++ b/common/SerializeChart.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -197,6 +197,78 @@ var st_groupingPERCENTSTACKED = 0; var st_groupingSTANDARD = 1; var st_groupingSTACKED = 2; +// chart ex st + +var st_parentlabellayoutNONE = 0; +var st_parentlabellayoutBANNER = 1; +var st_parentlabellayoutOVERLAPPING = 2; + +var st_regionlabellayoutNONE = 0; +var st_regionlabellayoutBESTFITONLY = 1; +var st_regionlabellayoutSHOWALL = 2; + +var st_serieslayoutBOXWHISKER = 0; +var st_serieslayoutCLUSTEREDCOLUMN = 1; +var st_serieslayoutFUNNEL = 2; +var st_serieslayoutPARETOLINE = 3; +var st_serieslayoutREGIONMAP = 4; +var st_serieslayoutSUNBURST = 5; +var st_serieslayoutTREEMAP = 6; +var st_serieslayoutWATERFALL = 7; + +var st_datalabelposBESTFIT = 0; +var st_datalabelposB = 1; +var st_datalabelposCTR = 2; +var st_datalabelposINBASE = 3; +var st_datalabelposINEND = 4; +var st_datalabelposL = 5; +var st_datalabelposOUTEND = 6; +var st_datalabelposR = 7; +var st_datalabelposT = 8; + +var st_intervalclosedsideL = 0; +var st_intervalclosedsideR = 1; + +var st_axisunitHUNDREDS = 0; +var st_axisunitTHOUSANDS = 1; +var st_axisunitTENTHOUSANDS = 2; +var st_axisunitHUNDREDTHOUSANDS = 3; +var st_axisunitMILLIONS = 4; +var st_axisunitTENMILLIONS = 5; +var st_axisunitHUNDREDMILLIONS = 6; +var st_axisunitBILLIONS = 7; +var st_axisunitTRILLIONS = 8; +var st_axisunitPERCENTAGE = 9; + +var st_posalignMIN = 0; +var st_posalignCTR = 1; +var st_posalignMAX = 2; + +var st_tickmarkstypeIN = 0; +var st_tickmarkstypeOUT = 1; +var st_tickmarkstypeCROSS = 2; +var st_tickmarkstypeNONE = 3; + +var st_quartilemethodINCLUSIVE = 0; +var st_quartilemethodEXCLUSIVE = 1; + +var st_stringdimensiontypeCAT = 10; +var st_stringdimensiontypeCOLORSTR = 11; + +var st_numericdimensiontypeVAL = 0; +var st_numericdimensiontypeX = 1; +var st_numericdimensiontypeY = 2; +var st_numericdimensiontypeSIZE = 3; +var st_numericdimensiontypeCOLORVAL = 4; + +var st_formuladirectionCOL = 0; +var st_formuladirectionROW = 1; + +var st_sideposL = 0; +var st_sideposT = 1; +var st_sideposR = 2; +var st_sideposB = 3; + var c_oserct_extlstEXT = 0; var c_oserct_chartspaceDATE1904 = 0; @@ -218,7 +290,13 @@ var c_oserct_chartspaceTHEMEOVERRIDE = 15; var c_oserct_chartspaceXLSX = 16; var c_oserct_chartspaceSTYLES = 17; var c_oserct_chartspaceCOLORS = 18; +var c_oserct_chartspaceXLSXEXTERNAL = 19; +var c_oserct_chartspaceXLSXZIP = 20; +const sideLeft = 0; +const sideRight = 1; +const sideTop = 2; +const sideBottom = 3; var c_oserct_usershapes_COUNT = 0; var c_oserct_usershapes_SHAPE_REL = 1; @@ -285,6 +363,7 @@ var c_oserct_legendOVERLAY = 3; var c_oserct_legendSPPR = 4; var c_oserct_legendTXPR = 5; var c_oserct_legendEXTLST = 6; +var c_oserct_legendALIGN = 7; var c_oserct_layoutMANUALLAYOUT = 0; var c_oserct_layoutEXTLST = 1; @@ -354,6 +433,7 @@ var c_oserct_titleOVERLAY = 2; var c_oserct_titleSPPR = 3; var c_oserct_titleTXPR = 4; var c_oserct_titleEXTLST = 5; +var c_oserct_titleALIGN = 6; var c_oserct_txRICH = 0; var c_oserct_txSTRREF = 1; @@ -927,6 +1007,7 @@ var c_oserct_plotareaVALAX = 22; var c_oserct_plotareaDTABLE = 23; var c_oserct_plotareaSPPR = 24; var c_oserct_plotareaEXTLST = 25; +var c_oserct_plotareaPLOTAREAREGION = 26; var c_oserct_thicknessVAL = 0; @@ -1032,6 +1113,7 @@ var c_oserct_chartExSpaceCLRMAPOVR = 4; var c_oserct_chartExSpaceXLSX = c_oserct_chartspaceXLSX;/* = 16*/ var c_oserct_chartExSpaceSTYLES = c_oserct_chartspaceSTYLES;/* = 17*/ var c_oserct_chartExSpaceCOLORS = c_oserct_chartspaceCOLORS;/* = 18*/ +// var c_oserct_chartExSpaceXLSXEXTERNAL = c_oserct_chartspaceXLSXEXTERNAL;/* = 19*/ var c_oserct_chartExDATA = 0; var c_oserct_chartExEXTERNALDATA = 1; @@ -1394,6 +1476,44 @@ BinaryChartWriter.prototype.WriteCT_ChartSpace = function (oVal) { }); } }; +BinaryChartWriter.prototype.WriteCT_ChartExSpace = function (oVal) { + var oThis = this; + if(oVal.chartData !== null) { + this.bs.WriteItem(c_oserct_chartExSpaceCHARTDATA, function() { + oThis.WriteCT_ChartData(oVal.chartData); + }); + } + if (oVal.chart !== null) { + this.bs.WriteItem(c_oserct_chartExSpaceCHART, function () { + oThis.WriteCT_ChartEx(oVal.chart); + }); + } + if (oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExSpaceSPPR, function () { + oThis.WriteSpPr(oVal.spPr); + }); + } + if (oVal.txPr !== null) { + this.bs.WriteItem(c_oserct_chartExSpaceTXPR, function () { + oThis.WriteTxPr(oVal.txPr); + }); + } + if (oVal.clrMapOvr !== null) { + this.bs.WriteItem(c_oserct_chartExSpaceCLRMAPOVR, function () { + oThis.WriteClrMapOverride(oVal.clrMapOvr); + }); + } + if(oVal.chartStyle !== null) { + this.bs.WriteItem(c_oserct_chartExSpaceSTYLES, function() { + oThis.WriteCT_ChartStyle(oVal.chartStyle); + }); + } + if(oVal.chartColors !== null) { + this.bs.WriteItem(c_oserct_chartExSpaceCOLORS, function() { + oThis.WriteCT_ChartColors(oVal.chartColors); + }); + } +}; BinaryChartWriter.prototype.WriteCT_FromTo = function(oVal){ this.memory.WriteByte(Asc.c_oSer_DrawingPosType.X); this.memory.WriteByte(AscCommon.c_oSerPropLenType.Double); @@ -1908,6 +2028,11 @@ BinaryChartWriter.prototype.WriteCT_Legend = function (oVal) { oThis.WriteTxPr(oVal.txPr); }); } + if (null != oVal.align) { + this.bs.WriteItem(c_oserct_legendALIGN, function () { + oThis.memory.WriteByte(oVal.align); + }); + } // var oCurVal = oVal.m_extLst; // if (null != oCurVal) { // this.bs.WriteItem(c_oserct_legendEXTLST, function () { @@ -2261,6 +2386,11 @@ BinaryChartWriter.prototype.WriteCT_Title = function (oVal) { oThis.WriteTxPr(oVal.txPr); }); } + if (null != oVal.align) { + this.bs.WriteItem(c_oserct_titleALIGN, function () { + oThis.memory.WriteByte(oVal.align); + }); + } // var oCurVal = oVal.m_extLst; // if (null != oCurVal) { // this.bs.WriteItem(c_oserct_titleEXTLST, function () { @@ -5461,6 +5591,11 @@ BinaryChartWriter.prototype.WriteCT_PlotArea = function (oVal, oChart) { oThis.WriteSpPr(oVal.spPr); }); } + if (null != oVal.plotAreaRegion) { + this.bs.WriteItem(c_oserct_plotareaPLOTAREAREGION, function () { + oThis.WriteCT_PlotAreaRegion(oVal.plotAreaRegion); + }); + } // var oCurVal = oVal.m_extLst; // if (null != oCurVal) { // this.bs.WriteItem(c_oserct_plotareaEXTLST, function () { @@ -5771,980 +5906,3407 @@ BinaryChartWriter.prototype.WriteCT_TextLanguageID = function (oVal) { }); } }; -BinaryChartWriter.prototype.WriteAlternateContent = function (oVal) { +BinaryChartWriter.prototype.WriteCT_Axis = function (oVal) { var oThis = this; - if (null != oVal.m_Choice) { - for (var i = 0, length = oVal.m_Choice.length; i < length; ++i) { - var oCurVal = oVal.m_Choice[i]; - if (null != oCurVal) { - this.bs.WriteItem(c_oseralternatecontentCHOICE, function () { - oThis.WriteAlternateContentChoice(oCurVal); - }); - } + if(oVal.axId !== null) { + this.bs.WriteItem(c_oserct_chartExAxisID, function() { + oThis.memory.WriteLong(oVal.axId); + }); + } + if(oVal.hidden !== null) { + this.bs.WriteItem(c_oserct_chartExAxisHIDDEN, function() { + oThis.memory.WriteBool(oVal.hidden); + }); + } + if(oVal.scaling !== null) { + if (oVal.scaling instanceof AscFormat.CCategoryAxisScaling) { + this.bs.WriteItem(c_oserct_chartExAxisCATSCALING, function() { + oThis.WriteCT_CategoryAxisScaling(oVal.scaling); + }); + } else if (oVal.scaling instanceof AscFormat.CValueAxisScaling) { + this.bs.WriteItem(c_oserct_chartExAxisVALSCALING, function() { + oThis.WriteCT_ValueAxisScaling(oVal.scaling); + }); } } - var oCurVal = oVal.m_Fallback; - if (null != oCurVal) { - this.bs.WriteItem(c_oseralternatecontentFALLBACK, function () { - oThis.WriteAlternateContentFallback(oCurVal); + if(oVal.title !== null) { + this.bs.WriteItem(c_oserct_chartExAxisTITLE, function() { + oThis.WriteCT_ChartExTitle(oVal.title); }); } -}; -BinaryChartWriter.prototype.WriteAlternateContentChoice = function (oVal) { - var oThis = this; - var oCurVal = oVal.m_style; - if (null != oCurVal) { - this.bs.WriteItem(c_oseralternatecontentchoiceSTYLE, function () { - oThis.WriteCT_Style(oCurVal); + if(oVal.units !== null) { + this.bs.WriteItem(c_oserct_chartExAxisUNIT, function() { + oThis.WriteCT_AxisUnits(oVal.units); }); } - var oCurVal = oVal.m_Requires; - if (null != oCurVal) { - this.bs.WriteItem(c_oseralternatecontentchoiceREQUIRES, function () { - oThis.memory.WriteString3(oCurVal); + if(oVal.numFmt !== null) { + this.bs.WriteItem(c_oserct_chartExAxisNUMFMT, function() { + oThis.WriteCT_ChartExNumFmt(oVal.numFmt); + }); + } + if(oVal.majorTickMark !== null) { + this.bs.WriteItem(c_oserct_chartExAxisMAJORTICK, function() { + oThis.WriteCT_TickMarks(oVal.majorTickMark); + }); + } + if(oVal.minorTickMark !== null) { + this.bs.WriteItem(c_oserct_chartExAxisMINORTICK, function() { + oThis.WriteCT_TickMarks(oVal.minorTickMark); + }); + } + if(oVal.majorGridlines !== null) { + this.bs.WriteItem(c_oserct_chartExAxisMAJORGRID, function() { + oThis.WriteCT_Gridlines(oVal.majorGridlines); + }); + } + if(oVal.minorGridlines !== null) { + this.bs.WriteItem(c_oserct_chartExAxisMINORGRID, function() { + oThis.WriteCT_Gridlines(oVal.minorGridlines); + }); + } + if(oVal.tickLabels !== null) { + this.bs.WriteItem(c_oserct_chartExAxisTICKLABELS, function() { + oThis.memory.WriteBool(oVal.tickLabels); + }); + } + if(oVal.txPr !== null) { + this.bs.WriteItem(c_oserct_chartExAxisTXPR, function() { + oThis.WriteTxPr(oVal.txPr); + }); + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExAxisSPPR, function() { + oThis.WriteSpPr(oVal.spPr); }); } }; -BinaryChartWriter.prototype.WriteAlternateContentFallback = function (oVal) { +BinaryChartWriter.prototype.WriteCT_ChartData = function (oVal) { var oThis = this; - var oCurVal = oVal.m_style; - if (null != oCurVal) { - this.bs.WriteItem(c_oseralternatecontentfallbackSTYLE, function () { - oThis.WriteCT_Style1(oCurVal); + if (oVal.data !== null) { + for (var i = 0, length = oVal.data.length; i < length; ++i) { + var oCurVal = oVal.data[i]; + if (oCurVal !== null) { + this.bs.WriteItem(c_oserct_chartExDATA, function () { + oThis.WriteCT_Data(oCurVal); + }); + } + } + } + if(oVal.externalData !== null) { + this.bs.WriteItem(c_oserct_chartExEXTERNALDATA, function() { + oThis.WriteCT_ChartExExternalData(oVal.externalData); }); } }; -function BinaryChartReader(stream) { - this.stream = stream; - this.bcr = new AscCommon.Binary_CommonReader(this.stream); - this.drawingDocument = null; -} -BinaryChartReader.prototype.ReadCT_extLst = function (type, length, val) { +BinaryChartWriter.prototype.WriteCT_ChartExExternalData = function (oVal) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_extlstEXT === type) { - var oNewVal; - oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Extension(t, l, oNewVal); + var oCurVal = oVal.m_autoUpdate; + if (oCurVal !== null) { + this.bs.WriteItem(c_oserct_chartExExternalAUTOUPDATE, function () { + oThis.WriteCT_Boolean(oCurVal); }); - if (null == val.m_ext) - val.m_ext = []; - val.m_ext.push(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; }; -BinaryChartReader.prototype.ExternalReadCT_ChartSpace = function (length, val, curWorksheet) { - var res = c_oSerConstants.ReadOk; - this.curWorksheet = curWorksheet; - this.drawingDocument = null; - if(this.curWorksheet) { - if(this.curWorksheet.getDrawingDocument) { - this.drawingDocument = this.curWorksheet.getDrawingDocument(); - } - if (!this.drawingDocument && this.curWorksheet.DrawingDocument) { - this.drawingDocument = this.curWorksheet.DrawingDocument; - } +BinaryChartWriter.prototype.WriteCT_ChartEx = function (oVal) { + var oThis = this; + if(oVal.plotArea !== null) { + this.bs.WriteItem(c_oserct_chartExChartPLOTAREA, function() { + oThis.WriteCT_ChartExPlotArea(oVal.plotArea); + }); } - + if(oVal.title !== null) { + this.bs.WriteItem(c_oserct_chartExChartTITLE, function() { + oThis.WriteCT_ChartExTitle(oVal.title); + }); + } + if(oVal.legend !== null) { + this.bs.WriteItem(c_oserct_chartExChartLEGEND, function() { + oThis.WriteCT_ChartExLegend(oVal.legend); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_ChartExPlotArea = function (oVal) { var oThis = this; - this.curChart = val; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartSpace(t, l, val); - }); - if(val){ - val.correctAxes(); - } - /*if(this.curWorksheet) { - var aStyles = null; - var sName = this.curWorksheet.sName; - if(sName === "Bar") { - - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal"]; - } - else if(sName === "BarStacked") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked"] = []; + if(oVal.plotAreaRegion !== null) { + this.bs.WriteItem(c_oserct_chartExChartAREAREGION, function() { + oThis.WriteCT_PlotAreaRegion(oVal.plotAreaRegion); + }); + } + if (oVal.axId !== null) { + for (var i = 0, length = oVal.axId.length; i < length; ++i) { + var oCurVal = oVal.axId[i]; + if (oCurVal !== null) { + this.bs.WriteItem(c_oserct_chartExChartAXIS, function () { + oThis.WriteCT_Axis(oCurVal); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked"]; } - else if(sName === "BarStackedPer") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer"] = []; + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExChartSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_PlotAreaRegion = function (oVal) { + var oThis = this; + if(oVal.plotSurface !== null) { + this.bs.WriteItem(c_oserct_chartExAreaPLOTSURFACE, function() { + oThis.WriteCT_PlotSurface(oVal.plotSurface); + }); + } + if (oVal.series !== null) { + for (var i = 0, length = oVal.series.length; i < length; ++i) { + var oCurVal = oVal.series[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExAreaSERIES, function () { + oThis.WriteCT_Series(oCurVal); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer"]; } - else if(sName === "3DClusteredColumn") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3d"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3d"] = []; + } +}; +BinaryChartWriter.prototype.WriteCT_PlotSurface = function (oVal) { + var oThis = this; + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExPlotSurfaceSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_SeriesLayout = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.SERIES_LAYOUT_BOX_WHISKER: nVal = st_serieslayoutBOXWHISKER; break; + case AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN: nVal = st_serieslayoutCLUSTEREDCOLUMN; break; + case AscFormat.SERIES_LAYOUT_FUNNEL: nVal = st_serieslayoutFUNNEL; break; + case AscFormat.SERIES_LAYOUT_PARETO_LINE: nVal = st_serieslayoutPARETOLINE; break; + case AscFormat.SERIES_LAYOUT_REGION_MAP: nVal = st_serieslayoutREGIONMAP; break; + case AscFormat.SERIES_LAYOUT_SUNBURST: nVal = st_serieslayoutSUNBURST; break; + case AscFormat.SERIES_LAYOUT_TREEMAP: nVal = st_serieslayoutTREEMAP; break; + case AscFormat.SERIES_LAYOUT_WATERFALL: + default: nVal = st_serieslayoutWATERFALL; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_Series = function (oVal) { + var oThis = this; + if (oVal.dPt !== null) { + for (var i = 0, length = oVal.dPt.length; i < length; ++i) { + var oCurVal = oVal.dPt[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExSeriesDATAPT, function () { + oThis.WriteCT_DataPoint(oCurVal); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3d"]; } - else if(sName === "3DStackedColumn") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked3d"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked3d"] = []; + } + if(oVal.dataLabels !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesDATALABELS, function() { + oThis.WriteCT_DataLabels(oVal.dataLabels); + }); + } + if(oVal.layoutPr !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLAYOUTPROPS, function() { + oThis.WriteCT_SeriesLayoutProperties(oVal.layoutPr); + }); + } + if(oVal.tx !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesTEXT, function() { + oThis.WriteCT_Text(oVal.tx); + }); + } + if (oVal.axisId !== null) { + for (var i = 0, length = oVal.axisId.length; i < length; ++i) { + var oCurVal = oVal.axisId[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExSeriesAXIS, function() { + oThis.memory.WriteLong(oCurVal); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked3d"]; } - else if(sName === "3DStackedColumnPer") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer3d"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer3d"] = []; + } + if(oVal.dataId !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesDATAID, function() { + oThis.memory.WriteLong(oVal.dataId); + }); + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } + if(oVal.layoutId !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLAYOUTID, function() { + oThis.WriteCT_SeriesLayout(oVal.layoutId); + }); + } + if(oVal.hidden !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesHIDDEN, function() { + oThis.memory.WriteBool(oVal.hidden); + }); + } + if(oVal.ownerIdx !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesOWNERIDX, function() { + oThis.memory.WriteLong(oVal.ownerIdx); + }); + } + if(oVal.formatIdx !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesFORMATIDX, function() { + oThis.memory.WriteLong(oVal.formatIdx); + }); + } + if(oVal.uniqueId !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesUNIQUEID, function() { + oThis.memory.WriteString3(oVal.uniqueId); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_DataPoint = function (oVal) { + var oThis = this; + if(oVal.idx !== null) { + this.bs.WriteItem(c_oserct_chartExDataPointIDX, function() { + oThis.memory.WriteLong(oVal.idx); + }); + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExDataPointSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_DataLabels = function (oVal) { + var oThis = this; + if(oVal.pos !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelsPOS, function() { + oThis.WriteCT_DataLabelPos(oVal.pos); + }); + } + if(oVal.numFmt !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelsNUMFMT, function() { + oThis.WriteCT_ChartExNumFmt(oVal.numFmt); + }); + } + if(oVal.txPr !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelsTXPR, function() { + oThis.WriteTxPr(oVal.txPr); + }); + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelsSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } + if(oVal.visibility !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelsVISABILITIES, function() { + oThis.WriteCT_DataLabelVisibilities(oVal.visibility); + }); + } + if(oVal.separator !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelsSEPARATOR, function() { + oThis.memory.WriteString3(oVal.separator); + }); + } + if (oVal.dataLabel !== null) { + for (var i = 0, length = oVal.dataLabel.length; i < length; ++i) { + var oCurVal = oVal.dataLabel[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExDataLabelsDATALABEL, function () { + oThis.WriteCT_DataLabel(oCurVal); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer3d"]; } - else if(sName === "3DColumn") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3dPerspective"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3dPerspective"] = []; + } + if (oVal.dataLabelHidden !== null) { + for (var i = 0, length = oVal.dataLabelHidden.length; i < length; ++i) { + var oCurVal = oVal.dataLabelHidden[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExDataLabelsDATALABELHIDDEN, function () { + oThis.WriteCT_DataLabelHidden(oCurVal); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3dPerspective"]; } - else if(sName === "2DBar") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal"]; - } - else if(sName === "StackedBar") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked"]; - } - else if(sName === "StackedBarPer") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStackedPer"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStackedPer"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStackedPer"]; - } - else if(sName === "3DClusteredBar") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal3d"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal3d"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal3d"]; + } +}; +BinaryChartWriter.prototype.WriteCT_ChartExNumFmt = function (oVal) { + var oThis = this; + if (oVal.formatCode !== null) { + this.bs.WriteItem(c_oserct_chartExNumberFormatFORMATCODE, function () { + oThis.memory.WriteString3(oVal.formatCode); + }); + } + if (oVal.sourceLinked !== null) { + this.bs.WriteItem(c_oserct_chartExNumberFormatSOURCELINKED, function () { + oThis.memory.WriteBool(oVal.sourceLinked); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_DataLabelPos = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.DATA_LABEL_POS_BEST_FIT: nVal = st_datalabelposBESTFIT; break; + case AscFormat.DATA_LABEL_POS_B: nVal = st_datalabelposB; break; + case AscFormat.DATA_LABEL_POS_CTR: nVal = st_datalabelposCTR; break; + case AscFormat.DATA_LABEL_POS_IN_BASE: nVal = st_datalabelposINBASE; break; + case AscFormat.DATA_LABEL_POS_IN_END: nVal = st_datalabelposINEND; break; + case AscFormat.DATA_LABEL_POS_L: nVal = st_datalabelposL; break; + case AscFormat.DATA_LABEL_POS_OUT_END: nVal = st_datalabelposOUTEND; break; + case AscFormat.DATA_LABEL_POS_R: nVal = st_datalabelposR; break; + case AscFormat.DATA_LABEL_POS_T: + default: nVal = st_datalabelposT; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_DataLabel = function (oVal) { + var oThis = this; + if(oVal.idx !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelIDX, function() { + oThis.memory.WriteLong(oVal.idx); + }); + } + if(oVal.pos !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelPOS, function() { + oThis.WriteCT_DataLabelPos(oVal.pos); + }); + } + if(oVal.numFmt !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelNUMFMT, function() { + oThis.WriteCT_ChartExNumFmt(oVal.numFmt); + }); + } + if(oVal.txPr !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelTXPR, function() { + oThis.WriteTxPr(oVal.txPr); + }); + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } + if(oVal.visibility !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelVISABILITIES, function() { + oThis.WriteCT_DataLabelVisibilities(oVal.visibility); + }); + } + if(oVal.separator !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelSEPARATOR, function() { + oThis.memory.WriteString3(oVal.separator); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_DataLabelHidden = function (oVal) { + var oThis = this; + if(oVal.idx !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelHiddenIDX, function() { + oThis.memory.WriteLong(oVal.idx); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_ParentLabelLayout = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.PARENT_LABEL_LAYOUT_NONE: nVal = st_parentlabellayoutNONE; break; + case AscFormat.PARENT_LABEL_LAYOUT_BANNER: nVal = st_parentlabellayoutBANNER; break; + case AscFormat.PARENT_LABEL_LAYOUT_OVERLAPPING: + default: nVal = st_parentlabellayoutOVERLAPPING; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_RegionLabelLayout = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.REGION_LABEL_LAYOUT_NONE: nVal = st_regionlabellayoutNONE; break; + case AscFormat.REGION_LABEL_LAYOUT_BEST_FIT_ONLY: nVal = st_regionlabellayoutBESTFITONLY; break; + case AscFormat.REGION_LABEL_LAYOUT_SHOW_ALL: + default: nVal = st_regionlabellayoutSHOWALL; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_SeriesLayoutProperties = function (oVal) { + var oThis = this; + if(oVal.parentLabelLayout !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLayoutPARENT, function() { + oThis.WriteCT_ParentLabelLayout(oVal.parentLabelLayout); + }); + } + if(oVal.regionLabelLayout !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLayoutREGION, function() { + oThis.WriteCT_RegionLabelLayout(oVal.regionLabelLayout); + }); + } + if(oVal.visibility !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLayoutVISABILITIES, function() { + oThis.WriteCT_SeriesElementVisibilities(oVal.visibility); + }); + } + if(oVal.aggregation !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLayoutAGGREGATION, function() { + oThis.memory.WriteBool(oVal.aggregation); + }); + } + if(oVal.binning !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLayoutBINNING, function() { + oThis.WriteCT_Binning(oVal.binning); + }); + } + if(oVal.statistics !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLayoutSTATISTIC, function() { + oThis.WriteCT_Statistics(oVal.statistics); + }); + } + if(oVal.subtotals !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesLayoutSUBTOTALS, function() { + oThis.WriteCT_Subtotals(oVal.subtotals); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_DataLabelVisibilities = function (oVal) { + var oThis = this; + if(oVal.seriesName !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelVisibilitiesSERIES, function() { + oThis.memory.WriteBool(oVal.seriesName); + }); + } + if(oVal.categoryName !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelVisibilitiesCATEGORY, function() { + oThis.memory.WriteBool(oVal.categoryName); + }); + } + if(oVal.value !== null) { + this.bs.WriteItem(c_oserct_chartExDataLabelVisibilitiesVALUE, function() { + oThis.memory.WriteBool(oVal.value); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_IntervalClosedSide = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.INTERVAL_CLOSED_SIDE_L: nVal = st_intervalclosedsideL; break; + case AscFormat.INTERVAL_CLOSED_SIDE_R: + default: nVal = st_intervalclosedsideR; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_Binning = function (oVal) { + var oThis = this; + if(oVal.binSize !== null) { + this.bs.WriteItem(c_oserct_chartExBinningBINSIZE, function() { + oThis.memory.WriteDouble2(oVal.binSize); + }); + } + if(oVal.binCount !== null) { + this.bs.WriteItem(c_oserct_chartExBinningBINCOUNT, function() { + oThis.memory.WriteLong(oVal.binCount); + }); + } + if(oVal.intervalClosed !== null) { + this.bs.WriteItem(c_oserct_chartExBinningINTERVAL, function() { + oThis.WriteCT_IntervalClosedSide(oVal.intervalClosed); + }); + } + if(oVal.underflow !== null) { + if (typeof oVal.underflow === "undefined") { + this.bs.WriteItem(c_oserct_chartExBinningUNDERAUTO, function() { + oThis.memory.WriteByte(0); + }); + } else { + this.bs.WriteItem(c_oserct_chartExBinningUNDERVAL, function() { + oThis.memory.WriteDouble2(oVal.underflow); + }); } - else if(sName === "3DStackedBar") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked3d"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked3d"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked3d"]; + } + if(oVal.overflow !== null) { + if (typeof oVal.underflow === "undefined") { + this.bs.WriteItem(c_oserct_chartExBinningOVERAUTO, function() { + oThis.memory.WriteByte(oVal.overflow); + }); + } else { + this.bs.WriteItem(c_oserct_chartExBinningOVERVAL, function() { + oThis.memory.WriteDouble2(oVal.overflow); + }); } - else if(sName === "Line") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineNormal"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineNormalMarker"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineStackedMarker"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineStackedPerMarker"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineNormal"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineStacked"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineStackedPer"] = []; + } +}; +BinaryChartWriter.prototype.WriteCT_PosAlign = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.POS_ALIGN_MIN: nVal = st_posalignMIN; break; + case AscFormat.POS_ALIGN_CTR: nVal = st_posalignCTR; break; + case AscFormat.POS_ALIGN_MAX: + default: nVal = st_posalignMAX; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_SidePos = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.SIDE_POS_L: nVal = st_sideposL; break; + case AscFormat.SIDE_POS_T: nVal = st_sideposT; break; + case AscFormat.SIDE_POS_R: nVal = st_sideposR; break; + case AscFormat.SIDE_POS_B: + default: nVal = st_sideposB; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_ChartExTitle = function (oVal) { + var oThis = this; + if(oVal.tx !== null) { + this.bs.WriteItem(c_oserct_chartExTitleTX, function() { + oThis.WriteCT_Text(oVal.tx); + }); + } + if(oVal.txPr !== null) { + this.bs.WriteItem(c_oserct_chartExTitleTXPR, function() { + oThis.WriteTxPr(oVal.txPr); + }); + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExTitleSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } + if(oVal.pos !== null) { + this.bs.WriteItem(c_oserct_chartExTitlePOS, function() { + oThis.WriteCT_SidePos(oVal.pos); + }); + } + if(oVal.align !== null) { + this.bs.WriteItem(c_oserct_chartExTitleALIGN, function() { + oThis.WriteCT_PosAlign(oVal.align); + }); + } + // if(oVal.overlay !== null) { + // this.bs.WriteItem(c_oserct_chartExTitleOVERLAY, function() { + // oThis.memory.WriteBool(oVal.overlay); + // }); + // } +}; +BinaryChartWriter.prototype.WriteCT_ChartExLegend = function (oVal) { + var oThis = this; + if(oVal.txPr !== null) { + this.bs.WriteItem(c_oserct_chartExLegendTXPR, function() { + oThis.WriteTxPr(oVal.txPr); + }); + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExLegendSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } + if(oVal.legendPos !== null) { + this.bs.WriteItem(c_oserct_chartExLegendPOS, function() { + let nVal = st_legendposT; + switch (oVal.legendPos) { + case c_oAscChartLegendShowSettings.bottom: nVal = sideBottom; break; + case c_oAscChartLegendShowSettings.topRight: nVal = sideRight; break; + case c_oAscChartLegendShowSettings.left: + case c_oAscChartLegendShowSettings.leftOverlay: + nVal = sideLeft; break; + case c_oAscChartLegendShowSettings.right: + case c_oAscChartLegendShowSettings.rightOverlay: + nVal = sideRight; break; + case c_oAscChartLegendShowSettings.top: nVal = sideTop; break; + } + + oThis.memory.WriteByte(nVal); + }); + } + if(oVal.align !== null) { + this.bs.WriteItem(c_oserct_chartExLegendALIGN, function() { + oThis.WriteCT_PosAlign(oVal.align); + }); + } + if(oVal.overlay !== null) { + this.bs.WriteItem(c_oserct_chartExLegendOVERLAY, function() { + oThis.memory.WriteBool(oVal.overlay); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_Text = function (oVal) { + var oThis = this; + if(oVal.rich !== null) { + this.bs.WriteItem(c_oserct_chartExTextRICH, function() { + oThis.WriteTxPr(oVal.rich); + }); + } + if(oVal.txData !== null) { + this.bs.WriteItem(c_oserct_chartExTextDATA, function() { + oThis.WriteCT_TextData(oVal.txData); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_TextData = function (oVal) { + var oThis = this; + if(oVal.f !== null) { + this.bs.WriteItem(c_oserct_chartExTextDataFORMULA, function() { + oThis.WriteCT_Formula(oVal.f); + }); + } + if(oVal.v !== null) { + this.bs.WriteItem(c_oserct_chartExTextDataVALUE, function() { + oThis.memory.WriteString3(oVal.v); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_Data = function (oVal) { + var oThis = this; + if(oVal.id !== null) { + this.bs.WriteItem(c_oserct_chartExDataID, function() { + oThis.memory.WriteLong(oVal.id); + }); + } + if(oVal.dimension !== null) { + for (var i = 0, length = oVal.dimension.length; i < length; ++i) { + var oDimension = oVal.dimension[i]; + if (oDimension instanceof AscFormat.CNumericDimension) { + this.bs.WriteItem(c_oserct_chartExDataNUMDIMENSION, function() { + oThis.WriteCT_NumericDimension(oDimension); + }); + } else { + this.bs.WriteItem(c_oserct_chartExDataSTRDIMENSION, function() { + oThis.WriteCT_StringDimension(oDimension); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineNormal"]; } - else if(sName === "Line3D") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.line3d"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.line3d"] = []; + } +}; +BinaryChartWriter.prototype.WriteCT_Subtotals = function (oVal) { + var oThis = this; + if(oVal.idx !== null) { + for (var i = 0, length = oVal.idx.length; i < length; ++i) { + var oCurVal = oVal.idx[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExSubtotalsIDX, function () { + oThis.memory.WriteLong(oCurVal); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.line3d"]; } - else if(sName === "Pie") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie"]; + } +}; +BinaryChartWriter.prototype.WriteCT_SeriesElementVisibilities = function (oVal) { + var oThis = this; + if(oVal.connectorLines !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesVisibilitiesCONNECTOR, function() { + oThis.memory.WriteBool(oVal.connectorLines); + }); + } + if(oVal.meanLine !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesVisibilitiesMEANLINE, function() { + oThis.memory.WriteBool(oVal.meanLine); + }); + } + if(oVal.meanMarker !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesVisibilitiesMEANMARKER, function() { + oThis.memory.WriteBool(oVal.meanMarker); + }); + } + if(oVal.nonoutliers !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesVisibilitiesNONOUTLIERS, function() { + oThis.memory.WriteBool(oVal.nonoutliers); + }); + } + if(oVal.outliers !== null) { + this.bs.WriteItem(c_oserct_chartExSeriesVisibilitiesOUTLIERS, function() { + oThis.memory.WriteBool(oVal.outliers); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_CategoryAxisScaling = function (oVal) { + var oThis = this; + if(oVal.gapWidth !== null) { + if (typeof oVal.gapWidth === "undefined") { + this.bs.WriteItem(c_oserct_chartExCatScalingGAPAUTO, function() { + oThis.memory.WriteByte(0); + }); + } else { + this.bs.WriteItem(c_oserct_chartExCatScalingGAPVAL, function() { + oThis.memory.WriteDouble2(oVal.gapWidth); + }); } - else if(sName === "Pie3D") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie3d"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie3d"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie3d"]; + } +}; +BinaryChartWriter.prototype.WriteCT_ValueAxisScaling = function (oVal) { + var oThis = this; + if(oVal.max !== null) { + if (typeof oVal.max === "undefined") { + this.bs.WriteItem(c_oserct_chartExValScalingMAXAUTO, function() { + oThis.memory.WriteByte(oVal.max); + }); + } else { + this.bs.WriteItem(c_oserct_chartExValScalingMAXVAL, function() { + oThis.memory.WriteDouble2(oVal.max); + }); } - else if(sName === "Doughnut") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.doughnut"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.doughnut"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.doughnut"]; + } + if(oVal.min !== null) { + if (typeof oVal.min === "undefined") { + this.bs.WriteItem(c_oserct_chartExValScalingMINAUTO, function() { + oThis.memory.WriteByte(oVal.min); + }); + } else { + this.bs.WriteItem(c_oserct_chartExValScalingMINVAL, function() { + oThis.memory.WriteDouble2(oVal.min); + }); } - else if(sName === "Area") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaNormal"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaNormal"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaStacked"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaStackedPer"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaNormal"]; + } + if(oVal.majorUnit !== null) { + if (typeof oVal.majorUnit === "undefined") { + this.bs.WriteItem(c_oserct_chartExValScalingMAJUNITAUTO, function() { + oThis.memory.WriteByte(oVal.majorUnit); + }); + } else { + this.bs.WriteItem(c_oserct_chartExValScalingMAJUNITVAL, function() { + oThis.memory.WriteDouble2(oVal.majorUnit); + }); } - else if(sName === "Stock") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.stock"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.stock"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.stock"]; + } + if(oVal.minorUnit !== null) { + if (typeof oVal.minorUnit === "undefined") { + this.bs.WriteItem(c_oserct_chartExValScalingMINUNITAUTO, function() { + oThis.memory.WriteByte(oVal.minorUnit); + }); + } else { + this.bs.WriteItem(c_oserct_chartExValScalingMINUNITVAL, function() { + oThis.memory.WriteDouble2(oVal.minorUnit); + }); } - if(sName === "ScatterLine") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatter"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatter"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterLine"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterLineMarker"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterMarker"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterNone"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterSmooth"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterSmoothMarker"] = []; - } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatter"]; + } +}; +BinaryChartWriter.prototype.WriteCT_ChartExAxisUnit = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.AXIS_UNIT_HUNDREDS: nVal = st_axisunitHUNDREDS; break; + case AscFormat.AXIS_UNIT_THOUSANDS: nVal = st_axisunitTHOUSANDS; break; + case AscFormat.AXIS_UNIT_TEN_THOUSANDS: nVal = st_axisunitTENTHOUSANDS; break; + case AscFormat.AXIS_UNIT_HUNDRED_THOUSANDS: nVal = st_axisunitHUNDREDTHOUSANDS; break; + case AscFormat.AXIS_UNIT_MILLIONS: nVal = st_axisunitMILLIONS; break; + case AscFormat.AXIS_UNIT_TEN_MILLIONS: nVal = st_axisunitTENMILLIONS; break; + case AscFormat.AXIS_UNIT_HUNDRED_MILLIONS: nVal = st_axisunitHUNDREDMILLIONS; break; + case AscFormat.AXIS_UNIT_BILLIONS: nVal = st_axisunitBILLIONS; break; + case AscFormat.AXIS_UNIT_TRILLIONS: nVal = st_axisunitTRILLIONS; break; + case AscFormat.AXIS_UNIT_PERCENTAGE: + default: nVal = st_axisunitPERCENTAGE; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_AxisUnits = function (oVal) { + var oThis = this; + if(oVal.unitsLabel !== null) { + this.bs.WriteItem(c_oserct_chartExAxisUnitLABEL, function() { + oThis.WriteCT_AxisUnitsLabel(oVal.unitsLabel); + }); + } + if(oVal.unit !== null) { + this.bs.WriteItem(c_oserct_chartExAxisUnitTYPE, function() { + oThis.WriteCT_ChartExAxisUnit(oVal.unit); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_AxisUnitsLabel = function (oVal) { + var oThis = this; + if(oVal.tx !== null) { + this.bs.WriteItem(c_oserct_chartExAxisUnitsLabelTEXT, function() { + oThis.WriteCT_Text(oVal.tx); + }); + } + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExAxisUnitsLabelSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } + if(oVal.txPr !== null) { + this.bs.WriteItem(c_oserct_chartExAxisUnitsLabelTXPR, function() { + oThis.WriteTxPr(oVal.txPr); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_TickMarksType = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.TICK_MARKS_TYPE_IN: nVal = st_tickmarkstypeIN; break; + case AscFormat.TICK_MARKS_TYPE_OUT: nVal = st_tickmarkstypeOUT; break; + case AscFormat.TICK_MARKS_TYPE_CROSS: nVal = st_tickmarkstypeCROSS; break; + case AscFormat.TICK_MARKS_TYPE_NONE: + default: nVal = st_tickmarkstypeNONE; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_TickMarks = function (oVal) { + var oThis = this; + if(oVal.type !== null) { + this.bs.WriteItem(c_oserct_chartExTickMarksTYPE, function() { + oThis.WriteCT_TickMarksType(oVal.type); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_Gridlines = function (oVal) { + var oThis = this; + if(oVal.spPr !== null) { + this.bs.WriteItem(c_oserct_chartExGridlinesSPPR, function() { + oThis.WriteSpPr(oVal.spPr); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_QuartileMethod = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.QUARTILE_METHOD_INCLUSIVE: nVal = st_quartilemethodINCLUSIVE; break; + case AscFormat.QUARTILE_METHOD_EXCLUSIVE: + default: nVal = st_quartilemethodEXCLUSIVE; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_Statistics = function (oVal) { + var oThis = this; + if(oVal.quartileMethod !== null) { + this.bs.WriteItem(c_oserct_chartExStatisticsMETHOD, function() { + oThis.WriteCT_QuartileMethod(oVal.quartileMethod); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_StringDimensionType = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.STRING_DIMENSION_TYPE_CAT: nVal = st_stringdimensiontypeCAT; break; + case AscFormat.STRING_DIMENSION_TYPE_COLOR_STR: + default: nVal = st_stringdimensiontypeCOLORSTR; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_StringDimension = function (oVal) { + var oThis = this; + if(oVal.type !== null) { + this.bs.WriteItem(c_oserct_chartExDataDimensionTYPE, function() { + oThis.WriteCT_StringDimensionType(oVal.type); + }); + } + if(oVal.f !== null) { + this.bs.WriteItem(c_oserct_chartExDataDimensionFORMULA, function() { + oThis.WriteCT_Formula(oVal.f); + }); + } + if(oVal.nf !== null) { + this.bs.WriteItem(c_oserct_chartExDataDimensionNF, function() { + oThis.memory.WriteString3(oVal.nf); + }); + } + if(oVal.levelData !== null) { + for (var i = 0, length = oVal.levelData.length; i < length; ++i) { + var oCurVal = oVal.levelData[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExDataDimensionSTRINGLEVEL, function () { + oThis.WriteCT_StringLevel(oCurVal); + }); + } } - else if(sName === "Combo") { - if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboCustom"])) { - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboCustom"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboBarLine"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboBarLineSecondary"] = - AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboAreaBar"] = []; + } +}; +BinaryChartWriter.prototype.WriteCT_NumericDimensionType = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.NUMERIC_DIMENSION_TYPE_VAL: nVal = st_numericdimensiontypeVAL; break; + case AscFormat.NUMERIC_DIMENSION_TYPE_X: nVal = st_numericdimensiontypeX; break; + case AscFormat.NUMERIC_DIMENSION_TYPE_Y: nVal = st_numericdimensiontypeY; break; + case AscFormat.NUMERIC_DIMENSION_TYPE_SIZE: nVal = st_numericdimensiontypeSIZE; break; + case AscFormat.NUMERIC_DIMENSION_TYPE_COLOR_VAL: + default: nVal = st_numericdimensiontypeCOLORVAL; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_NumericDimension = function (oVal) { + var oThis = this; + if(oVal.type !== null) { + this.bs.WriteItem(c_oserct_chartExDataDimensionTYPE, function() { + oThis.WriteCT_NumericDimensionType(oVal.type); + }); + } + if(oVal.f !== null) { + this.bs.WriteItem(c_oserct_chartExDataDimensionFORMULA, function() { + oThis.WriteCT_Formula(oVal.f); + }); + } + if(oVal.nf !== null) { + this.bs.WriteItem(c_oserct_chartExDataDimensionNF, function() { + oThis.memory.WriteString3(oVal.nf); + }); + } + if(oVal.levelData !== null) { + for (var i = 0, length = oVal.levelData.length; i < length; ++i) { + var oCurVal = oVal.levelData[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExDataDimensionNUMERICLEVEL, function () { + oThis.WriteCT_NumericLevel(oCurVal); + }); } - aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboCustom"]; } - if(Array.isArray(aStyles)) { - if(this.curChart.oDataLablesData) { - AscCommon.g_oDataLabelsBinaries[this.curChart.oDataLablesData.crc32] = this.curChart.oDataLablesData.data; - } - if(this.curChart.oCatAxData) { - AscCommon.g_oCatBinaries[this.curChart.oCatAxData.crc32] = this.curChart.oCatAxData.data; - } - if(this.curChart.oValAxData) { - AscCommon.g_oValBinaries[this.curChart.oValAxData.crc32] = this.curChart.oValAxData.data; - } - if(this.curChart.oView3DData) { - AscCommon.g_oView3dBinaries[this.curChart.oView3DData.crc32] = this.curChart.oView3DData.data; - } - if(this.curChart.oLegendData) { - AscCommon.g_oLegendBinaries[this.curChart.oLegendData.crc32] = this.curChart.oLegendData.data; - } - if(this.curChart.oChartStyleData) { - AscCommon.g_oStylesBinaries[this.curChart.oChartStyleData.crc32] = this.curChart.oChartStyleData.data; - AscCommon.g_oChartStylesIdMap[this.curChart.chartStyle.id] = this.curChart.oChartStyleData.crc32; - } - if(this.curChart.oChartColorsData) { - AscCommon.g_oColorsBinaries[this.curChart.oChartColorsData.crc32] = this.curChart.oChartColorsData.data; - } - var oBarChart; - var aCharts = val.chart.plotArea.charts; - if(aCharts.length === 1 && aCharts[0].getObjectType() === AscDFH.historyitem_type_BarChart) { - oBarChart = aCharts[0]; - } - var crc32BarParams = null; - if(oBarChart) { - var aBarParams = []; - aBarParams.push(oBarChart.gapWidth); - aBarParams.push(oBarChart.overlap); - aBarParams.push(oBarChart.gapDepth); - var sJSON = JSON.stringify(aBarParams); - crc32BarParams = AscCommon.g_oCRC32.Calculate_ByString(sJSON, sJSON.length); - AscCommon.g_oBarParams[crc32BarParams] = aBarParams; - } - aStyles.push([ - val.oChartStyleData && val.oChartStyleData.crc32 || null, - val.oChartColorsData && val.oChartColorsData.crc32 || null, - val.oDataLablesData && val.oDataLablesData.crc32 || null, - val.oCatAxData && val.oCatAxData.crc32 || null, - val.oValAxData && val.oValAxData.crc32 || null, - val.oView3DData && val.oView3DData.crc32 || null, - val.oLegendData && val.oLegendData.crc32 || null, - crc32BarParams - ]); + } +}; +BinaryChartWriter.prototype.WriteCT_FormulaDirection = function (oVal) { + var oThis = this; + var nVal = null; + switch (oVal) { + case AscFormat.FORMULA_DIRECTION_COL: nVal = st_formuladirectionCOL; break; + case AscFormat.FORMULA_DIRECTION_ROW: + default: nVal = st_formuladirectionROW; break; + } + oThis.memory.WriteByte(nVal); +}; +BinaryChartWriter.prototype.WriteCT_Formula = function (oVal) { + var oThis = this; + if(oVal.content !== null) { + this.bs.WriteItem(c_oserct_chartExFormulaCONTENT, function() { + oThis.memory.WriteString3(oVal.content); + }); + } + if(oVal.dir !== null) { + this.bs.WriteItem(c_oserct_chartExFormulaDIRECTION, function() { + oThis.WriteCT_FormulaDirection(oVal.dir); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_StringLevel = function (oVal) { + var oThis = this; + if(oVal.name !== null) { + this.bs.WriteItem(c_oserct_chartExDataLevelNAME, function() { + oThis.memory.WriteString3(oVal.name); + }); + } + if(oVal.ptCount !== null) { + this.bs.WriteItem(c_oserct_chartExDataLevelCOUNT, function() { + oThis.memory.WriteLong(oVal.ptCount); + }); + } + for (var i = 0, length = oVal.pts.length; i < length; ++i) { + var oCurVal = oVal.pts[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExDataLevelPT, function () { + oThis.WriteCT_StringValue(oCurVal); + }); + } + } +}; +BinaryChartWriter.prototype.WriteCT_NumericLevel = function (oVal) { + var oThis = this; + if(oVal.name !== null) { + this.bs.WriteItem(c_oserct_chartExDataLevelNAME, function() { + oThis.memory.WriteString3(oVal.name); + }); + } + if(oVal.ptCount !== null) { + this.bs.WriteItem(c_oserct_chartExDataLevelCOUNT, function() { + oThis.memory.WriteLong(oVal.ptCount); + }); + } + + for (var i = 0, length = oVal.pts.length; i < length; ++i) { + var oCurVal = oVal.pts[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oserct_chartExDataLevelPT, function () { + oThis.WriteCT_NumericValue(oCurVal); + }); + } + } + if(oVal.formatCode !== null) { + this.bs.WriteItem(c_oserct_chartExDataLevelFORMATCODE, function() { + oThis.memory.WriteString3(oVal.formatCode); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_StringValue = function (oVal) { + var oThis = this; + if(oVal.idx !== null) { + this.bs.WriteItem(c_oserct_chartExDataValueIDX, function() { + oThis.memory.WriteLong(oVal.idx); + }); + } + if(oVal.val !== null) { + this.bs.WriteItem(c_oserct_chartExDataValueCONTENT, function() { + oThis.memory.WriteString3(oVal.val); + }); + } +}; +BinaryChartWriter.prototype.WriteCT_NumericValue = function (oVal) { + var oThis = this; + if(oVal.idx !== null) { + this.bs.WriteItem(c_oserct_chartExDataValueIDX, function() { + oThis.memory.WriteLong(oVal.idx); + }); + } + if(oVal.content !== null) { + this.bs.WriteItem(c_oserct_chartExDataValueCONTENT, function() { + oThis.memory.WriteDouble2(oVal.val); + }); + } +}; +BinaryChartWriter.prototype.WriteAlternateContent = function (oVal) { + var oThis = this; + if (null != oVal.m_Choice) { + for (var i = 0, length = oVal.m_Choice.length; i < length; ++i) { + var oCurVal = oVal.m_Choice[i]; + if (null != oCurVal) { + this.bs.WriteItem(c_oseralternatecontentCHOICE, function () { + oThis.WriteAlternateContentChoice(oCurVal); + }); + } + } + } + var oCurVal = oVal.m_Fallback; + if (null != oCurVal) { + this.bs.WriteItem(c_oseralternatecontentFALLBACK, function () { + oThis.WriteAlternateContentFallback(oCurVal); + }); + } +}; +BinaryChartWriter.prototype.WriteAlternateContentChoice = function (oVal) { + var oThis = this; + var oCurVal = oVal.m_style; + if (null != oCurVal) { + this.bs.WriteItem(c_oseralternatecontentchoiceSTYLE, function () { + oThis.WriteCT_Style(oCurVal); + }); + } + var oCurVal = oVal.m_Requires; + if (null != oCurVal) { + this.bs.WriteItem(c_oseralternatecontentchoiceREQUIRES, function () { + oThis.memory.WriteString3(oCurVal); + }); + } +}; +BinaryChartWriter.prototype.WriteAlternateContentFallback = function (oVal) { + var oThis = this; + var oCurVal = oVal.m_style; + if (null != oCurVal) { + this.bs.WriteItem(c_oseralternatecontentfallbackSTYLE, function () { + oThis.WriteCT_Style1(oCurVal); + }); + } +}; +function BinaryChartReader(stream) { + this.stream = stream; + this.bcr = new AscCommon.Binary_CommonReader(this.stream); + this.drawingDocument = null; +} +BinaryChartReader.prototype.ReadCT_extLst = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_extlstEXT === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Extension(t, l, oNewVal); + }); + if (null == val.m_ext) + val.m_ext = []; + val.m_ext.push(oNewVal); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ExternalReadCT_ChartSpace = function (length, val, curWorksheet) { + var res = c_oSerConstants.ReadOk; + this.curWorksheet = curWorksheet; + this.drawingDocument = null; + if(this.curWorksheet) { + if(this.curWorksheet.getDrawingDocument) { + this.drawingDocument = this.curWorksheet.getDrawingDocument(); + } + if (!this.drawingDocument && this.curWorksheet.DrawingDocument) { + this.drawingDocument = this.curWorksheet.DrawingDocument; + } + } + + var oThis = this; + this.curChart = val; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartSpace(t, l, val); + }); + if(val){ + val.correctAxes(); + } + /*if(this.curWorksheet) { + var aStyles = null; + var sName = this.curWorksheet.sName; + if(sName === "Bar") { + + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal"]; + } + else if(sName === "BarStacked") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked"]; + } + else if(sName === "BarStackedPer") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer"]; + } + else if(sName === "3DClusteredColumn") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3d"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3d"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3d"]; + } + else if(sName === "3DStackedColumn") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked3d"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked3d"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStacked3d"]; + } + else if(sName === "3DStackedColumnPer") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer3d"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer3d"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barStackedPer3d"]; + } + else if(sName === "3DColumn") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3dPerspective"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3dPerspective"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.barNormal3dPerspective"]; + } + else if(sName === "2DBar") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal"]; + } + else if(sName === "StackedBar") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked"]; + } + else if(sName === "StackedBarPer") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStackedPer"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStackedPer"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStackedPer"]; + } + else if(sName === "3DClusteredBar") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal3d"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal3d"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarNormal3d"]; + } + else if(sName === "3DStackedBar") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked3d"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked3d"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.hBarStacked3d"]; + } + else if(sName === "Line") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineNormal"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineNormalMarker"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineStackedMarker"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineStackedPerMarker"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineNormal"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineStacked"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineStackedPer"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.lineNormal"]; + } + else if(sName === "Line3D") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.line3d"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.line3d"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.line3d"]; + } + else if(sName === "Pie") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie"]; + } + else if(sName === "Pie3D") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie3d"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie3d"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.pie3d"]; + } + else if(sName === "Doughnut") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.doughnut"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.doughnut"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.doughnut"]; + } + else if(sName === "Area") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaNormal"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaNormal"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaStacked"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaStackedPer"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.areaNormal"]; + } + else if(sName === "Stock") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.stock"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.stock"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.stock"]; + } + if(sName === "ScatterLine") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatter"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatter"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterLine"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterLineMarker"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterMarker"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterNone"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterSmooth"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatterSmoothMarker"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.scatter"]; + } + else if(sName === "Combo") { + if(!Array.isArray(AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboCustom"])) { + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboCustom"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboBarLine"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboBarLineSecondary"] = + AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboAreaBar"] = []; + } + aStyles = AscCommon.g_oChartStyles["Asc.c_oAscChartTypeSettings.comboCustom"]; + } + if(Array.isArray(aStyles)) { + if(this.curChart.oDataLablesData) { + AscCommon.g_oDataLabelsBinaries[this.curChart.oDataLablesData.crc32] = this.curChart.oDataLablesData.data; + } + if(this.curChart.oCatAxData) { + AscCommon.g_oCatBinaries[this.curChart.oCatAxData.crc32] = this.curChart.oCatAxData.data; + } + if(this.curChart.oValAxData) { + AscCommon.g_oValBinaries[this.curChart.oValAxData.crc32] = this.curChart.oValAxData.data; + } + if(this.curChart.oView3DData) { + AscCommon.g_oView3dBinaries[this.curChart.oView3DData.crc32] = this.curChart.oView3DData.data; + } + if(this.curChart.oLegendData) { + AscCommon.g_oLegendBinaries[this.curChart.oLegendData.crc32] = this.curChart.oLegendData.data; + } + if(this.curChart.oChartStyleData) { + AscCommon.g_oStylesBinaries[this.curChart.oChartStyleData.crc32] = this.curChart.oChartStyleData.data; + AscCommon.g_oChartStylesIdMap[this.curChart.chartStyle.id] = this.curChart.oChartStyleData.crc32; + } + if(this.curChart.oChartColorsData) { + AscCommon.g_oColorsBinaries[this.curChart.oChartColorsData.crc32] = this.curChart.oChartColorsData.data; + } + var oBarChart; + var aCharts = val.chart.plotArea.charts; + if(aCharts.length === 1 && aCharts[0].getObjectType() === AscDFH.historyitem_type_BarChart) { + oBarChart = aCharts[0]; + } + var crc32BarParams = null; + if(oBarChart) { + var aBarParams = []; + aBarParams.push(oBarChart.gapWidth); + aBarParams.push(oBarChart.overlap); + aBarParams.push(oBarChart.gapDepth); + var sJSON = JSON.stringify(aBarParams); + crc32BarParams = AscCommon.g_oCRC32.Calculate_ByString(sJSON, sJSON.length); + AscCommon.g_oBarParams[crc32BarParams] = aBarParams; + } + aStyles.push([ + val.oChartStyleData && val.oChartStyleData.crc32 || null, + val.oChartColorsData && val.oChartColorsData.crc32 || null, + val.oDataLablesData && val.oDataLablesData.crc32 || null, + val.oCatAxData && val.oCatAxData.crc32 || null, + val.oValAxData && val.oValAxData.crc32 || null, + val.oView3DData && val.oView3DData.crc32 || null, + val.oLegendData && val.oLegendData.crc32 || null, + crc32BarParams + ]); + } + }*/ + return res; +}; +BinaryChartReader.prototype.ExternalReadCT_ChartExSpace = function (length, val, curWorksheet) { + var res = c_oSerConstants.ReadOk; + this.curWorksheet = curWorksheet; + this.drawingDocument = null; + if(this.curWorksheet) { + if(this.curWorksheet.getDrawingDocument) { + this.drawingDocument = this.curWorksheet.getDrawingDocument(); + } + else { + if(this.curWorksheet.DrawingDocument) { + this.drawingDocument = this.curWorksheet.DrawingDocument; + } + } + } + + var oThis = this; + this.curChart = val; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartExSpace(t, l, val); + }); + if(val) { + val.correctAxes(); + } + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartSpace = function (type, length, val, curWorksheet) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartspaceDATE1904 === type) { + oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setDate1904(oNewVal.m_val); + else + val.setDate1904(true); + } + else if (c_oserct_chartspaceLANG === type) { + oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TextLanguageID(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setLang(oNewVal.m_val); + } + else if (c_oserct_chartspaceROUNDEDCORNERS === type) { + oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setRoundedCorners(oNewVal.m_val); + } + else if (c_oserct_chartspaceALTERNATECONTENT === type) { + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadAlternateContent(t, l, oNewVal); + }); + var nNewStyle = null; + if (null != oNewVal.m_Choice && oNewVal.m_Choice.length > 0) { + var choice = oNewVal.m_Choice[0]; + if (null != choice.m_style && null != choice.m_style.m_val) + nNewStyle = choice.m_style.m_val - 100; + } + if (null == nNewStyle && null != oNewVal.m_Fallback && null != oNewVal.m_Fallback.m_style && null != oNewVal.m_Fallback.m_style.m_val) + nNewStyle = oNewVal.m_Fallback.m_style.m_val; + if (null != nNewStyle) + val.setStyle(nNewStyle); + } + else if (c_oserct_chartspaceSTYLE === type) { + oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Style1(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setStyle(oNewVal.m_val); + } + else if (c_oserct_chartspaceCLRMAPOVR === type) { + val.setClrMapOvr(this.ReadClrOverride(length)); + } + else if (c_oserct_chartspacePIVOTSOURCE === type) { + oNewVal = new AscFormat.CPivotSource(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_PivotSource(t, l, oNewVal); + }); + val.setPivotSource(oNewVal); + } + else if (c_oserct_chartspacePROTECTION === type) { + oNewVal = new AscFormat.CProtection(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Protection(t, l, oNewVal); + }); + val.setProtection(oNewVal); + } + else if (c_oserct_chartspaceCHART === type) { + oNewVal = new AscFormat.CChart(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Chart(t, l, oNewVal); + }); + val.setChart(oNewVal); + // if(null === oNewVal.autoTitleDeleted){ + // oNewVal.setAutoTitleDeleted(false); + // } + } + else if (c_oserct_chartspaceSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + val.spPr.setParent(val); + } + else if (c_oserct_chartspaceTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + //else if (c_oserct_chartspaceEXTERNALDATA === type) { + // oNewVal; + // oNewVal = {}; + // res = this.bcr.Read1(length, function (t, l) { + // return oThis.ReadCT_ExternalData(t, l, oNewVal); + // }); + // val.m_externalData = oNewVal; + //} + else if (c_oserct_chartspacePRINTSETTINGS === type) { + oNewVal = new AscFormat.CPrintSettings(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_PrintSettings(t, l, oNewVal); + }); + val.setPrintSettings(oNewVal); + } + else if (c_oserct_chartspaceUSERSHAPES === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UserShapes(t, l, val); + }); + } + else if (c_oserct_chartspaceEXTLST === type) { + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else if (c_oserct_chartspaceTHEMEOVERRIDE === type) { + var theme = AscCommon.pptx_content_loader.ReadTheme(this, this.stream); + if (null != theme) + val.setThemeOverride(theme); + } + else if(c_oserct_chartspaceXLSX === type) { + //todo + res = c_oSerConstants.ReadUnknown; + } + else if(c_oserct_chartspaceSTYLES === type) { + oNewVal = new AscFormat.CChartStyle(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartStyle(t, l, oNewVal); + }); + if(oNewVal) { + val.setChartStyle(oNewVal); + } + } + else if(c_oserct_chartspaceCOLORS === type) { + oNewVal = new AscFormat.CChartColors(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartColors(t, l, oNewVal); + }); + if(oNewVal) { + val.setChartColors(oNewVal); + } + } + else { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartExSpace = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if(c_oserct_chartExSpaceCHARTDATA === type) + { + oNewVal = new AscFormat.CChartData(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartData(t, l, oNewVal); + }); + val.setChartData(oNewVal); + } + else if (c_oserct_chartExSpaceCHART === type) { + oNewVal = new AscFormat.CChart(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartEx(t, l, oNewVal); + }); + val.setChart(oNewVal); + } + else if (c_oserct_chartExSpaceSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_chartExSpaceTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_chartExSpaceCLRMAPOVR === type) { + val.setClrMapOvr(this.ReadClrOverride(length)); + } + // else if(c_oserct_chartExSpaceXLSX === type) { + // //todo + // res = c_oSerConstants.ReadUnknown; + // } + else if(c_oserct_chartExSpaceCOLORS === type) { + oNewVal = new AscFormat.CChartColors(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartColors(t, l, oNewVal); + }); + val.setChartColors(oNewVal); + } + else if(c_oserct_chartExSpaceSTYLES === type) { + oNewVal = new AscFormat.CChartStyle(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartStyle(t, l, oNewVal); + }); + val.setChartStyle(oNewVal); + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadSpPr = function (length) { + return AscCommon.pptx_content_loader.ReadShapeProperty(this.stream); +}; + +BinaryChartReader.prototype.ReadClrOverride = function(lenght) +{ + var loader = new AscCommon.BinaryPPTYLoader(); + + loader.stream = new AscCommon.FileStream(); + loader.stream.obj = this.stream.obj; + loader.stream.data = this.stream.data; + loader.stream.size = this.stream.size; + + loader.stream.pos = this.stream.pos; + loader.stream.cur = this.stream.cur; + var s = loader.stream; + var _main_type = s.GetUChar(); // 0!!! + + var clr_map = new AscFormat.ClrMap(); + loader.ReadClrMap(clr_map); + + this.stream.pos = s.pos; + this.stream.cur = s.cur; + return clr_map; + +}; + +BinaryChartReader.prototype.ReadTxPr = function (length) { + var cur = this.stream.cur; + var ret = AscCommon.pptx_content_loader.ReadTextBody(null, this.stream, null, this.curWorksheet, this.drawingDocument); + this.stream.cur = cur + length; + return ret; +}; +BinaryChartReader.prototype.ParsePersent = function (val) { + var nVal = parseFloat(val); + if (!isNaN(nVal)) + return nVal; + else + return null; +}; +BinaryChartReader.prototype.ParseMetric = function (val) { + var nVal = parseFloat(val); + var nRes = null; + if (!isNaN(nVal)) { + if (-1 != val.indexOf("mm")) + nRes = nVal; + else if (-1 != val.indexOf("cm")) + nRes = nVal * 10; + else if (-1 != val.indexOf("in")) + nRes = nVal * 2.54 * 10; + else if (-1 != val.indexOf("pt")) + nRes = nVal * 2.54 * 10 / 72; + else if (-1 != val.indexOf("pc") || -1 != val.indexOf("pi")) + nRes = nVal * 12 * 2.54 * 10 / 72; + } + return nRes; +}; +BinaryChartReader.prototype.CorrectChartWithAxis = function (chartOld, chartNew, aChartWithAxis) { + for (var i = 0, length = aChartWithAxis.length; i < length; ++i) { + var item = aChartWithAxis[i]; + if (item.chart == chartOld) + item.chart = chartNew; + } +}; +BinaryChartReader.prototype.ReadCT_Boolean = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_booleanVAL === type) { + var oNewVal; + oNewVal = this.stream.GetBool(); + val.m_val = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ExternalReadCT_RelId = function (length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_RelId(t, l, val); + }); + return res; +}; +BinaryChartReader.prototype.ReadCT_RelId = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_relidID === type) { + //todo + var oNewVal; + oNewVal = this.stream.GetString2LE(length); + val.m_id = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_UserShapes = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var nCount; + if (c_oserct_usershapes_COUNT === type) { + nCount = this.stream.GetULongLE(); + } + else if(c_oserct_usershapes_SHAPE_REL){ + var oNewVal = new AscFormat.CRelSizeAnchor(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_userShape(t, l, oNewVal); + }); + val.addUserShape(undefined, oNewVal); + } + else if(c_oserct_usershapes_SHAPE_ABS){ + var oNewVal = new AscFormat.CAbsSizeAnchor(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_userShape(t, l, oNewVal); + }); + val.addUserShape(undefined, oNewVal); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; + +BinaryChartReader.prototype.ReadCT_ChartStyle = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if(c_oserct_chartstyleID === type) { + val.setId(this.stream.GetULongLE()); + } + else if (c_oserct_chartstyleENTRY === type) { + oNewVal = new AscFormat.CStyleEntry(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_StyleEntry(t, l, oNewVal); + }); + if(res === c_oSerConstants.ReadOk) { + val.addEntry(oNewVal); + } + } + else if (c_oserct_chartstyleMARKERLAYOUT === type) { + oNewVal = new AscFormat.CMarkerLayout(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_MarkerLayout(t, l, oNewVal); + }); + if(res === c_oSerConstants.ReadOk) { + val.setMarkerLayout(oNewVal); + } + } + else { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_StyleEntry = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oNewVal; + if (c_oserct_chartstyleENTRYTYPE == type) + { + val.setType(this.stream.GetUChar()); + } + else if (c_oserct_chartstyleLNREF == type) + { + oNewVal = AscCommon.pptx_content_loader.ReadStyleRef(this, this.stream); + if(oNewVal) + { + val.setLnRef(oNewVal); + } + } + else if (c_oserct_chartstyleFILLREF == type) + { + oNewVal = AscCommon.pptx_content_loader.ReadStyleRef(this, this.stream); + if(oNewVal) + { + val.setFillRef(oNewVal); + } + } + else if (c_oserct_chartstyleEFFECTREF == type) + { + oNewVal = AscCommon.pptx_content_loader.ReadStyleRef(this, this.stream); + if(oNewVal) + { + val.setEffectRef(oNewVal); + } + } + else if (c_oserct_chartstyleFONTREF == type) + { + oNewVal = AscCommon.pptx_content_loader.ReadFontRef(this, this.stream); + if(oNewVal) + { + val.setFontRef(oNewVal); + } + } + else if (c_oserct_chartstyleDEFPR == type) + { + oNewVal = AscCommon.pptx_content_loader.ReadRunProperties(this.stream, 0); + if(oNewVal) + { + val.setDefRPr(oNewVal); + } + } + else if (c_oserct_chartstyleBODYPR == type) + { + oNewVal = AscCommon.pptx_content_loader.ReadBodyPr(this, this.stream); + if(oNewVal) + { + val.setBodyPr(oNewVal); + } + } + else if (c_oserct_chartstyleSPPR == type) + { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_chartstyleLINEWIDTH == type) + { + val.setLineWidthScale(this.stream.GetDoubleLE()); + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_MarkerLayout = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_chartstyleMARKERSYMBOL == type) + { + val.setSymbol(this.MarkerStyleToFormat(this.stream.GetUChar())); + } + else if (c_oserct_chartstyleMARKERSIZE == type) + { + val.setSize(this.stream.GetULongLE()); + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartColors = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartcolorsID === type) + { + val.setId(this.stream.GetULongLE()); + } + else if (c_oserct_chartcolorsMETH === type) + { + val.setMeth(this.stream.GetString2LE(length)); + } + else if(c_oserct_chartcolorsVARIATION === type) + { + oNewVal = new AscFormat.CColorModifiers(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ColorsVariation(t, l, oNewVal); + }); + val.addItem(oNewVal); + } + else if(c_oserct_chartcolorsCOLOR === type) + { + oNewVal = AscCommon.pptx_content_loader.ReadUniColor(this, this.stream); + if(oNewVal) + { + val.addItem(oNewVal); + } + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_ColorsVariation = function (type, length, val) +{ + var res = c_oSerConstants.ReadOk; + if (c_oserct_chartcolorsEFFECT === type) + { + var oMod = AscCommon.pptx_content_loader.ReadColorMod(this, this.stream); + if(oMod) + { + val.addMod(oMod); + } + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; + +BinaryChartReader.prototype.ReadCT_FromTo = function(type, length, poResult) +{ + var res = c_oSerConstants.ReadOk; + if(Asc.c_oSer_DrawingPosType.X == type) + { + poResult.x = this.stream.GetDoubleLE(); + } + else if(Asc.c_oSer_DrawingPosType.Y == type) + { + poResult.y = this.stream.GetDoubleLE(); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_userShape = function(type, length, poResult) +{ + var oThis = this; + + var res = c_oSerConstants.ReadOk; + if(Asc.c_oSer_DrawingType.From == type) + { + var oNewVal = {}; + res = this.bcr.Read2Spreadsheet(length, function (t, l) { + return oThis.ReadCT_FromTo(t, l, oNewVal); + }); + poResult.setFromTo(oNewVal.x, oNewVal.y, poResult.toX, poResult.toY); + } + else if(Asc.c_oSer_DrawingType.To == type) + { + var oNewVal = {}; + res = this.bcr.Read2Spreadsheet(length, function (t, l) { + return oThis.ReadCT_FromTo(t, l, oNewVal); + }); + poResult.setFromTo( poResult.fromX, poResult.fromY, oNewVal.x, oNewVal.y); + } + else if(Asc.c_oSer_DrawingType.Ext == type) + { + var oNewVal = {}; + res = this.bcr.Read2Spreadsheet(length, function (t, l) { + return oThis.ReadCT_FromTo(t, l, oNewVal); + }); + poResult.setFromTo( poResult.fromX, poResult.fromY, oNewVal.x, oNewVal.y); + } + else if(Asc.c_oSer_DrawingType.pptxDrawing == type) + { + var oGraphicObject = AscCommon.pptx_content_loader.ReadGraphicObject(this.stream, this.curWorksheet, this.drawingDocument); + poResult.setObject(oGraphicObject); + // oGraphicObject.createTextBody(); + // oGraphicObject.txBody.content.AddText("Test user Shapes"); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_PageSetup = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_pagesetupPAPERSIZE === type) { + val.setPaperSize(this.stream.GetULongLE()); + } + else if (c_oserct_pagesetupPAPERHEIGHT === type) { + var mm = this.ParseMetric(this.stream.GetString2LE(length)); + if (null != mm) + val.setPaperHeight(mm); + } + else if (c_oserct_pagesetupPAPERWIDTH === type) { + var mm = this.ParseMetric(this.stream.GetString2LE(length)); + if (null != mm) + val.setPaperWidth(mm); + } + else if (c_oserct_pagesetupFIRSTPAGENUMBER === type) { + val.setFirstPageNumber(this.stream.GetULongLE()); + } + else if (c_oserct_pagesetupORIENTATION === type) { + switch (this.stream.GetUChar()) { + case st_pagesetuporientationDEFAULT: val.setOrientation(AscFormat.PAGE_SETUP_ORIENTATION_DEFAULT); break; + case st_pagesetuporientationPORTRAIT: val.setOrientation(AscFormat.PAGE_SETUP_ORIENTATION_PORTRAIT); break; + case st_pagesetuporientationLANDSCAPE: val.setOrientation(AscFormat.PAGE_SETUP_ORIENTATION_LANDSCAPE); break; + } + } + else if (c_oserct_pagesetupBLACKANDWHITE === type) { + val.setBlackAndWhite(this.stream.GetBool()); + } + else if (c_oserct_pagesetupDRAFT === type) { + val.setBlackAndWhite(this.stream.GetBool()); + } + else if (c_oserct_pagesetupUSEFIRSTPAGENUMBER === type) { + val.setUseFirstPageNumb(this.stream.GetBool()); + } + else if (c_oserct_pagesetupHORIZONTALDPI === type) { + val.setHorizontalDpi(this.stream.GetULongLE()); + } + else if (c_oserct_pagesetupVERTICALDPI === type) { + val.setVerticalDpi(this.stream.GetULongLE()); + } + else if (c_oserct_pagesetupCOPIES === type) { + val.setCopies(this.stream.GetULongLE()); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_PageMargins = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_pagemarginsL === type) { + val.setL(this.stream.GetDoubleLE()); + } + else if (c_oserct_pagemarginsR === type) { + val.setR(this.stream.GetDoubleLE()); + } + else if (c_oserct_pagemarginsT === type) { + val.setT(this.stream.GetDoubleLE()); + } + else if (c_oserct_pagemarginsB === type) { + val.setB(this.stream.GetDoubleLE()); + } + else if (c_oserct_pagemarginsHEADER === type) { + val.setHeader(this.stream.GetDoubleLE()); + } + else if (c_oserct_pagemarginsFOOTER === type) { + val.setFooter(this.stream.GetDoubleLE()); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_HeaderFooter = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_headerfooterODDHEADER === type) { + val.setOddHeader(this.stream.GetString2LE(length)); + } + else if (c_oserct_headerfooterODDFOOTER === type) { + val.setOddFooter(this.stream.GetString2LE(length)); + } + else if (c_oserct_headerfooterEVENHEADER === type) { + val.setEvenHeader(this.stream.GetString2LE(length)); + } + else if (c_oserct_headerfooterEVENFOOTER === type) { + val.setEvenFooter(this.stream.GetString2LE(length)); + } + else if (c_oserct_headerfooterFIRSTHEADER === type) { + val.setFirstHeader(this.stream.GetString2LE(length)); + } + else if (c_oserct_headerfooterFIRSTFOOTER === type) { + val.setFirstFooter(this.stream.GetString2LE(length)); + } + else if (c_oserct_headerfooterALIGNWITHMARGINS === type) { + val.setAlignWithMargins(this.stream.GetBool()); + } + else if (c_oserct_headerfooterDIFFERENTODDEVEN === type) { + val.setDifferentOddEven(this.stream.GetBool()); + } + else if (c_oserct_headerfooterDIFFERENTFIRST === type) { + val.setDifferentFirst(this.stream.GetBool()); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_PrintSettings = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_printsettingsHEADERFOOTER === type) { + var oNewVal = new AscFormat.CHeaderFooterChart(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_HeaderFooter(t, l, oNewVal); + }); + val.setHeaderFooter(oNewVal); + } + else if (c_oserct_printsettingsPAGEMARGINS === type) { + var oNewVal = new AscFormat.CPageMarginsChart(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_PageMargins(t, l, oNewVal); + }); + val.setPageMargins(oNewVal); + } + else if (c_oserct_printsettingsPAGESETUP === type) { + var oNewVal = new AscFormat.CPageSetup(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_PageSetup(t, l, oNewVal); + }); + val.setPageSetup(oNewVal); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_ExternalData = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_externaldataAUTOUPDATE === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + val.m_autoUpdate = oNewVal; + } + else if (c_oserct_externaldataID === type) { + //todo + var oNewVal; + oNewVal = this.stream.GetString2LE(length); + val.m_id = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_DispBlanksAs = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_dispblanksasVAL === type) { + switch (this.stream.GetUChar()) { + case st_dispblanksasSPAN: val.m_val = AscFormat.DISP_BLANKS_AS_SPAN; break; + case st_dispblanksasGAP: val.m_val = AscFormat.DISP_BLANKS_AS_GAP; break; + case st_dispblanksasZERO: val.m_val = AscFormat.DISP_BLANKS_AS_ZERO; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_LegendEntry = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_legendentryIDX === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setIdx(oNewVal.m_val); + } + else if (c_oserct_legendentryDELETE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setDelete(oNewVal.m_val); + else + val.setDelete(true); + } + else if (c_oserct_legendentryTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_legendentryEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_UnsignedInt = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_unsignedintVAL === type) { + var oNewVal; + oNewVal = this.stream.GetULongLE(); + val.m_val = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Extension = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_extensionANY === type) { + var oNewVal; + oNewVal = this.stream.GetString2LE(length); + val.m_Any = oNewVal; + } + else if (c_oserct_extensionURI === type) { + var oNewVal; + oNewVal = this.stream.GetString2LE(length); + val.m_uri = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_LegendPos = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_legendposVAL === type) { + switch (this.stream.GetUChar()) { + case st_legendposB: val.m_val = c_oAscChartLegendShowSettings.bottom; break; + case st_legendposTR: val.m_val = c_oAscChartLegendShowSettings.topRight; break; + case st_legendposL: val.m_val = c_oAscChartLegendShowSettings.left; break; + case st_legendposR: val.m_val = c_oAscChartLegendShowSettings.right; break; + case st_legendposT: val.m_val = c_oAscChartLegendShowSettings.top; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Legend = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_legendLEGENDPOS === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LegendPos(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setLegendPos(oNewVal.m_val); + } + else if (c_oserct_legendLEGENDENTRY === type) { + var oNewVal = new AscFormat.CLegendEntry(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LegendEntry(t, l, oNewVal); + }); + val.addLegendEntry(oNewVal); + } + else if (c_oserct_legendLAYOUT === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Layout(t, l, val); + }); + } + else if (c_oserct_legendOVERLAY === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setOverlay(oNewVal.m_val); + } + else if (c_oserct_legendSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_legendTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_legendALIGN === type) { + val.setAlign(this.stream.GetUChar()) + } + else if (c_oserct_legendEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Layout = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_layoutMANUALLAYOUT === type) { + var oNewVal = new AscFormat.CLayout(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ManualLayout(t, l, oNewVal); + }); + val.setLayout(oNewVal); + } + else if (c_oserct_layoutEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_ManualLayout = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_manuallayoutLAYOUTTARGET === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LayoutTarget(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setLayoutTarget(oNewVal.m_val); + } + else if (c_oserct_manuallayoutXMODE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LayoutMode(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setXMode(oNewVal.m_val); + } + else if (c_oserct_manuallayoutYMODE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LayoutMode(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setYMode(oNewVal.m_val); + } + else if (c_oserct_manuallayoutWMODE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LayoutMode(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setWMode(oNewVal.m_val); + } + else if (c_oserct_manuallayoutHMODE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LayoutMode(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setHMode(oNewVal.m_val); + } + else if (c_oserct_manuallayoutX === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Double(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setX(oNewVal.m_val); + } + else if (c_oserct_manuallayoutY === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Double(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setY(oNewVal.m_val); + } + else if (c_oserct_manuallayoutW === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Double(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setW(oNewVal.m_val); + } + else if (c_oserct_manuallayoutH === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Double(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setH(oNewVal.m_val); + } + else if (c_oserct_manuallayoutEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_LayoutTarget = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_layouttargetVAL === type) { + switch (this.stream.GetUChar()) { + case st_layouttargetINNER: val.m_val = LAYOUT_TARGET_INNER; break; + case st_layouttargetOUTER: val.m_val = LAYOUT_TARGET_OUTER; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_LayoutMode = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_layoutmodeVAL === type) { + switch (this.stream.GetUChar()) { + case st_layoutmodeEDGE: val.m_val = LAYOUT_MODE_EDGE; break; + case st_layoutmodeFACTOR: val.m_val = LAYOUT_MODE_FACTOR; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Double = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_doubleVAL === type) { + var oNewVal; + oNewVal = this.stream.GetDoubleLE(); + val.m_val = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_DTable = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_dtableSHOWHORZBORDER === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setShowHorzBorder(oNewVal.m_val); + } + else if (c_oserct_dtableSHOWVERTBORDER === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setShowVertBorder(oNewVal.m_val); + } + else if (c_oserct_dtableSHOWOUTLINE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setShowOutline(oNewVal.m_val); + } + else if (c_oserct_dtableSHOWKEYS === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setShowKeys(oNewVal.m_val); + } + else if (c_oserct_dtableSPPR === type) { + val.setSpPr(this.ReadSpPr(length)) + } + else if (c_oserct_dtableTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_dtableEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_SerAx = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_seraxAXID === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setAxId(oNewVal.m_val); + } + else if (c_oserct_seraxSCALING === type) { + var oNewVal = new AscFormat.CScaling(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Scaling(t, l, oNewVal); + }); + val.setScaling(oNewVal); + } + else if (c_oserct_seraxDELETE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setDelete(oNewVal.m_val); + else + val.setDelete(true); + } + else if (c_oserct_seraxAXPOS === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_AxPos(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setAxPos(oNewVal.m_val); + } + else if (c_oserct_seraxMAJORGRIDLINES === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setMajorGridlines(oNewVal.spPr); + else + val.setMajorGridlines(new AscFormat.CSpPr()); + } + else if (c_oserct_seraxMINORGRIDLINES === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setMinorGridlines(oNewVal.spPr); + else + val.setMinorGridlines(new AscFormat.CSpPr()); + } + else if (c_oserct_seraxTITLE === type) { + var oNewVal = new AscFormat.CTitle(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Title(t, l, oNewVal); + }); + if(!AscFormat.isRealBool(oNewVal.overlay)) + { + oNewVal.setOverlay(false); + } + val.setTitle(oNewVal); + } + else if (c_oserct_seraxNUMFMT === type) { + var oNewVal = new AscFormat.CNumFmt(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_NumFmt(t, l, oNewVal); + }); + val.setNumFmt(oNewVal); + } + else if (c_oserct_seraxMAJORTICKMARK === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickMark(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setMajorTickMark(oNewVal.m_val); + else{ + val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); + } + } + else if (c_oserct_seraxMINORTICKMARK === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickMark(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setMinorTickMark(oNewVal.m_val); + else{ + val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); } - }*/ + } + else if (c_oserct_seraxTICKLBLPOS === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickLblPos(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setTickLblPos(oNewVal.m_val); + } + else if (c_oserct_seraxSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_seraxTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_seraxCROSSAX === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + + if (null != oNewVal.m_val) + { + val.crossAxId = oNewVal.m_val; + } + } + else if (c_oserct_seraxCROSSES === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Crosses(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setCrosses(oNewVal.m_val); + } + else if (c_oserct_seraxCROSSESAT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Double(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setCrossesAt(oNewVal.m_val); + } + else if (c_oserct_seraxTICKLBLSKIP === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Skip(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setTickLblSkip(oNewVal.m_val); + } + else if (c_oserct_seraxTICKMARKSKIP === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Skip(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setTickMarkSkip(oNewVal.m_val); + } + else if (c_oserct_seraxEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_ChartSpace = function (type, length, val, curWorksheet) { +BinaryChartReader.prototype.ReadCT_Scaling = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - var oNewVal; - if (c_oserct_chartspaceDATE1904 === type) { - oNewVal = { m_val: null }; + if (c_oserct_scalingLOGBASE === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_LogBase(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setDate1904(oNewVal.m_val); - else - val.setDate1904(true); + val.setLogBase(oNewVal.m_val); } - else if (c_oserct_chartspaceLANG === type) { - oNewVal = { m_val: null }; + else if (c_oserct_scalingORIENTATION === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TextLanguageID(t, l, oNewVal); + return oThis.ReadCT_Orientation(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setLang(oNewVal.m_val); + val.setOrientation(oNewVal.m_val); } - else if (c_oserct_chartspaceROUNDEDCORNERS === type) { - oNewVal = { m_val: null }; + else if (c_oserct_scalingMAX === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Double(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setRoundedCorners(oNewVal.m_val); + val.setMax(oNewVal.m_val); } - else if (c_oserct_chartspaceALTERNATECONTENT === type) { - oNewVal = {}; + else if (c_oserct_scalingMIN === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadAlternateContent(t, l, oNewVal); + return oThis.ReadCT_Double(t, l, oNewVal); }); - var nNewStyle = null; - if (null != oNewVal.m_Choice && oNewVal.m_Choice.length > 0) { - var choice = oNewVal.m_Choice[0]; - if (null != choice.m_style && null != choice.m_style.m_val) - nNewStyle = choice.m_style.m_val - 100; - } - if (null == nNewStyle && null != oNewVal.m_Fallback && null != oNewVal.m_Fallback.m_style && null != oNewVal.m_Fallback.m_style.m_val) - nNewStyle = oNewVal.m_Fallback.m_style.m_val; - if (null != nNewStyle) - val.setStyle(nNewStyle); + if (null != oNewVal.m_val) + val.setMin(oNewVal.m_val); } - else if (c_oserct_chartspaceSTYLE === type) { - oNewVal = { m_val: null }; + else if (c_oserct_scalingEXTLST === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Style1(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setStyle(oNewVal.m_val); + // val.m_extLst = oNewVal; } - else if (c_oserct_chartspaceCLRMAPOVR === type) { - val.setClrMapOvr(this.ReadClrOverride(length)); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_LogBase = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_logbaseVAL === type) { + var oNewVal; + oNewVal = this.stream.GetDoubleLE(); + val.m_val = oNewVal; } - else if (c_oserct_chartspacePIVOTSOURCE === type) { - oNewVal = new AscFormat.CPivotSource(); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Orientation = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_orientationVAL === type) { + switch (this.stream.GetUChar()) { + case st_orientationMAXMIN: val.m_val = AscFormat.ORIENTATION_MAX_MIN; break; + case st_orientationMINMAX: val.m_val = AscFormat.ORIENTATION_MIN_MAX; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_AxPos = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_axposVAL === type) { + switch (this.stream.GetUChar()) { + case st_axposB: val.m_val = AscFormat.AX_POS_B; break; + case st_axposL: val.m_val = AscFormat.AX_POS_L; break; + case st_axposR: val.m_val = AscFormat.AX_POS_R; break; + case st_axposT: val.m_val = AscFormat.AX_POS_T; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartLines = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_chartlinesSPPR === type) { + val.spPr = this.ReadSpPr(length); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Title = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_titleTX === type) { + var oNewVal = new AscFormat.CChartText(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PivotSource(t, l, oNewVal); + return oThis.ReadCT_Tx(t, l, oNewVal); }); - val.setPivotSource(oNewVal); + oNewVal.setChart(this.curChart); + val.setTx(oNewVal); } - else if (c_oserct_chartspacePROTECTION === type) { - oNewVal = new AscFormat.CProtection(); + else if (c_oserct_titleLAYOUT === type) { res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Protection(t, l, oNewVal); + return oThis.ReadCT_Layout(t, l, val); }); - val.setProtection(oNewVal); } - else if (c_oserct_chartspaceCHART === type) { - oNewVal = new AscFormat.CChart(); + else if (c_oserct_titleOVERLAY === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Chart(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setChart(oNewVal); - // if(null === oNewVal.autoTitleDeleted){ - // oNewVal.setAutoTitleDeleted(false); - // } - } - else if (c_oserct_chartspaceSPPR === type) { + if (null != oNewVal.m_val) + val.setOverlay(oNewVal.m_val); + } + else if (c_oserct_titleSPPR === type) { val.setSpPr(this.ReadSpPr(length)); - val.spPr.setParent(val); } - else if (c_oserct_chartspaceTXPR === type) { + else if (c_oserct_titleTXPR === type) { val.setTxPr(this.ReadTxPr(length)); val.txPr.setParent(val); } - //else if (c_oserct_chartspaceEXTERNALDATA === type) { - // oNewVal; - // oNewVal = {}; - // res = this.bcr.Read1(length, function (t, l) { - // return oThis.ReadCT_ExternalData(t, l, oNewVal); - // }); - // val.m_externalData = oNewVal; - //} - else if (c_oserct_chartspacePRINTSETTINGS === type) { - oNewVal = new AscFormat.CPrintSettings(); + else if (c_oserct_titleALIGN === type) { + val.setAlign(this.stream.GetUChar()); + } + else if (c_oserct_titleEXTLST === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PrintSettings(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - val.setPrintSettings(oNewVal); + // val.m_extLst = oNewVal; } - else if (c_oserct_chartspaceUSERSHAPES === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UserShapes(t, l, val); - }); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Tx = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_txRICH === type) { + val.setRich(this.ReadTxPr(length)); + val.rich.setParent(val); } - else if (c_oserct_chartspaceEXTLST === type) { + else if (c_oserct_txSTRREF === type) { + var oNewVal = new AscFormat.CStrRef(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_StrRef(t, l, oNewVal); + }); + val.setStrRef(oNewVal); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_StrRef = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_strrefF === type) { + val.setF(this.stream.GetString2LE(length)); + } + else if (c_oserct_strrefSTRCACHE === type) { + var oNewVal = new AscFormat.CStrCache(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_StrData(t, l, oNewVal); + }); + val.setStrCache(oNewVal); + } + else if (c_oserct_strrefEXTLST === type) { + var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); // val.m_extLst = oNewVal; } - else if (c_oserct_chartspaceTHEMEOVERRIDE === type) { - var theme = AscCommon.pptx_content_loader.ReadTheme(this, this.stream); - if (null != theme) - val.setThemeOverride(theme); - } - else if(c_oserct_chartspaceXLSX === type) { - //todo + else res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_StrData = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_strdataPTCOUNT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setPtCount(oNewVal.m_val); } - else if(c_oserct_chartspaceSTYLES === type) { - oNewVal = new AscFormat.CChartStyle(); + else if (c_oserct_strdataPT === type) { + var oNewVal = new AscFormat.CStringPoint(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartStyle(t, l, oNewVal); + return oThis.ReadCT_StrVal(t, l, oNewVal); }); - if(oNewVal) { - val.setChartStyle(oNewVal); - } + val.addPt(oNewVal); } - else if(c_oserct_chartspaceCOLORS === type) { - oNewVal = new AscFormat.CChartColors(); + else if (c_oserct_strdataEXTLST === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartColors(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - if(oNewVal) { - val.setChartColors(oNewVal); - } + // val.m_extLst = oNewVal; } - else { + else res = c_oSerConstants.ReadUnknown; - } return res; }; -BinaryChartReader.prototype.ReadSpPr = function (length) { - return AscCommon.pptx_content_loader.ReadShapeProperty(this.stream); -}; - -BinaryChartReader.prototype.ReadClrOverride = function(lenght) -{ - var loader = new AscCommon.BinaryPPTYLoader(); - - loader.stream = new AscCommon.FileStream(); - loader.stream.obj = this.stream.obj; - loader.stream.data = this.stream.data; - loader.stream.size = this.stream.size; - - loader.stream.pos = this.stream.pos; - loader.stream.cur = this.stream.cur; - var s = loader.stream; - var _main_type = s.GetUChar(); // 0!!! - - var clr_map = new AscFormat.ClrMap(); - loader.ReadClrMap(clr_map); - - this.stream.pos = s.pos; - this.stream.cur = s.cur; - return clr_map; - -}; - -BinaryChartReader.prototype.ReadTxPr = function (length) { - var cur = this.stream.cur; - var ret = AscCommon.pptx_content_loader.ReadTextBody(null, this.stream, null, this.curWorksheet, this.drawingDocument); - this.stream.cur = cur + length; - return ret; +BinaryChartReader.prototype.ReadCT_StrVal = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_strvalV === type) { + val.setVal(this.stream.GetString2LE(length)); + } + else if (c_oserct_strvalIDX === type) { + val.setIdx(this.stream.GetULongLE()); + } + else + res = c_oSerConstants.ReadUnknown; + return res; }; -BinaryChartReader.prototype.ParsePersent = function (val) { - var nVal = parseFloat(val); - if (!isNaN(nVal)) - return nVal; +BinaryChartReader.prototype.ReadCT_NumFmt = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_numfmtFORMATCODE === type) { + val.setFormatCode(this.stream.GetString2LE(length)); + } + else if (c_oserct_numfmtSOURCELINKED === type) { + val.setSourceLinked(this.stream.GetBool()); + } else - return null; + res = c_oSerConstants.ReadUnknown; + return res; }; -BinaryChartReader.prototype.ParseMetric = function (val) { - var nVal = parseFloat(val); - var nRes = null; - if (!isNaN(nVal)) { - if (-1 != val.indexOf("mm")) - nRes = nVal; - else if (-1 != val.indexOf("cm")) - nRes = nVal * 10; - else if (-1 != val.indexOf("in")) - nRes = nVal * 2.54 * 10; - else if (-1 != val.indexOf("pt")) - nRes = nVal * 2.54 * 10 / 72; - else if (-1 != val.indexOf("pc") || -1 != val.indexOf("pi")) - nRes = nVal * 12 * 2.54 * 10 / 72; +BinaryChartReader.prototype.ReadCT_TickMark = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_tickmarkVAL === type) { + switch (this.stream.GetUChar()) { + case st_tickmarkCROSS: val.m_val = c_oAscTickMark.TICK_MARK_CROSS; break; + case st_tickmarkIN: val.m_val = c_oAscTickMark.TICK_MARK_IN; break; + case st_tickmarkNONE: val.m_val = c_oAscTickMark.TICK_MARK_NONE; break; + case st_tickmarkOUT: val.m_val = c_oAscTickMark.TICK_MARK_OUT; break; + } } - return nRes; + else + res = c_oSerConstants.ReadUnknown; + return res; }; -BinaryChartReader.prototype.CorrectChartWithAxis = function (chartOld, chartNew, aChartWithAxis) { - for (var i = 0, length = aChartWithAxis.length; i < length; ++i) { - var item = aChartWithAxis[i]; - if (item.chart == chartOld) - item.chart = chartNew; +BinaryChartReader.prototype.ReadCT_TickLblPos = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_ticklblposVAL === type) { + switch (this.stream.GetUChar()) { + case st_ticklblposHIGH: val.m_val = c_oAscTickLabelsPos.TICK_LABEL_POSITION_HIGH; break; + case st_ticklblposLOW: val.m_val = c_oAscTickLabelsPos.TICK_LABEL_POSITION_LOW; break; + case st_ticklblposNEXTTO: val.m_val = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NEXT_TO; break; + case st_ticklblposNONE: val.m_val = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NONE; break; + } } + else + res = c_oSerConstants.ReadUnknown; + return res; }; -BinaryChartReader.prototype.ReadCT_Boolean = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Crosses = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_booleanVAL === type) { - var oNewVal; - oNewVal = this.stream.GetBool(); - val.m_val = oNewVal; + if (c_oserct_crossesVAL === type) { + switch (this.stream.GetUChar()) { + case st_crossesAUTOZERO: val.m_val = AscFormat.CROSSES_AUTO_ZERO; break; + case st_crossesMAX: val.m_val = AscFormat.CROSSES_MAX; break; + case st_crossesMIN: val.m_val = AscFormat.CROSSES_MIN; break; + } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ExternalReadCT_RelId = function (length, val) { +BinaryChartReader.prototype.ReadCT_Skip = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_RelId(t, l, val); - }); + if (c_oserct_skipVAL === type) { + var oNewVal; + oNewVal = this.stream.GetULongLE(); + val.m_val = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_RelId = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_TimeUnit = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_relidID === type) { - //todo - var oNewVal; - oNewVal = this.stream.GetString2LE(length); - val.m_id = oNewVal; + if (c_oserct_timeunitVAL === type) { + switch (this.stream.GetUChar()) { + case st_timeunitDAYS: val.m_val = AscFormat.TIME_UNIT_DAYS; break; + case st_timeunitMONTHS: val.m_val = AscFormat.TIME_UNIT_MONTHS; break; + case st_timeunitYEARS: val.m_val = AscFormat.TIME_UNIT_YEARS; break; + } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_UserShapes = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_DateAx = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - var nCount; - if (c_oserct_usershapes_COUNT === type) { - nCount = this.stream.GetULongLE(); - } - else if(c_oserct_usershapes_SHAPE_REL){ - var oNewVal = new AscFormat.CRelSizeAnchor(); + if (c_oserct_dateaxAXID === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_userShape(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); - val.addUserShape(undefined, oNewVal); + if (null != oNewVal.m_val) + val.setAxId(oNewVal.m_val); } - else if(c_oserct_usershapes_SHAPE_ABS){ - var oNewVal = new AscFormat.CAbsSizeAnchor(); + else if (c_oserct_dateaxSCALING === type) { + var oNewVal = new AscFormat.CScaling(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_userShape(t, l, oNewVal); + return oThis.ReadCT_Scaling(t, l, oNewVal); }); - val.addUserShape(undefined, oNewVal); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; - -BinaryChartReader.prototype.ReadCT_ChartStyle = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - var oNewVal; - if(c_oserct_chartstyleID === type) { - val.setId(this.stream.GetULongLE()); + val.setScaling(oNewVal); } - else if (c_oserct_chartstyleENTRY === type) { - oNewVal = new AscFormat.CStyleEntry(); + else if (c_oserct_dateaxDELETE === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StyleEntry(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if(res === c_oSerConstants.ReadOk) { - val.addEntry(oNewVal); - } + if (null != oNewVal.m_val) + val.setDelete(oNewVal.m_val); + else + val.setDelete(true); } - else if (c_oserct_chartstyleMARKERLAYOUT === type) { - oNewVal = new AscFormat.CMarkerLayout(); + else if (c_oserct_dateaxAXPOS === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_MarkerLayout(t, l, oNewVal); + return oThis.ReadCT_AxPos(t, l, oNewVal); }); - if(res === c_oSerConstants.ReadOk) { - val.setMarkerLayout(oNewVal); - } + if (null != oNewVal.m_val) + val.setAxPos(oNewVal.m_val); } - else { - res = c_oSerConstants.ReadUnknown; + else if (c_oserct_dateaxMAJORGRIDLINES === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setMajorGridlines(oNewVal.spPr); + else + val.setMajorGridlines(new AscFormat.CSpPr()); } - return res; -}; -BinaryChartReader.prototype.ReadCT_StyleEntry = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oNewVal; - if (c_oserct_chartstyleENTRYTYPE == type) - { - val.setType(this.stream.GetUChar()); + else if (c_oserct_dateaxMINORGRIDLINES === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setMinorGridlines(oNewVal.spPr); + else + val.setMinorGridlines(new AscFormat.CSpPr()); } - else if (c_oserct_chartstyleLNREF == type) - { - oNewVal = AscCommon.pptx_content_loader.ReadStyleRef(this, this.stream); - if(oNewVal) + else if (c_oserct_dateaxTITLE === type) { + var oNewVal = new AscFormat.CTitle(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Title(t, l, oNewVal); + }); + if(!AscFormat.isRealBool(oNewVal.overlay)) { - val.setLnRef(oNewVal); + oNewVal.setOverlay(false); } + val.setTitle(oNewVal); } - else if (c_oserct_chartstyleFILLREF == type) - { - oNewVal = AscCommon.pptx_content_loader.ReadStyleRef(this, this.stream); - if(oNewVal) - { - val.setFillRef(oNewVal); - } + else if (c_oserct_dateaxNUMFMT === type) { + var oNewVal = new AscFormat.CNumFmt(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_NumFmt(t, l, oNewVal); + }); + val.setNumFmt(oNewVal); } - else if (c_oserct_chartstyleEFFECTREF == type) - { - oNewVal = AscCommon.pptx_content_loader.ReadStyleRef(this, this.stream); - if(oNewVal) - { - val.setEffectRef(oNewVal); + else if (c_oserct_dateaxMAJORTICKMARK === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickMark(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setMajorTickMark(oNewVal.m_val); + else{ + val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); } } - else if (c_oserct_chartstyleFONTREF == type) - { - oNewVal = AscCommon.pptx_content_loader.ReadFontRef(this, this.stream); - if(oNewVal) - { - val.setFontRef(oNewVal); + else if (c_oserct_dateaxMINORTICKMARK === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickMark(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setMinorTickMark(oNewVal.m_val); + else{ + val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); } } - else if (c_oserct_chartstyleDEFPR == type) - { - oNewVal = AscCommon.pptx_content_loader.ReadRunProperties(this.stream, 0); - if(oNewVal) - { - val.setDefRPr(oNewVal); - } + else if (c_oserct_dateaxTICKLBLPOS === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickLblPos(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setTickLblPos(oNewVal.m_val); } - else if (c_oserct_chartstyleBODYPR == type) - { - oNewVal = AscCommon.pptx_content_loader.ReadBodyPr(this, this.stream); - if(oNewVal) + else if (c_oserct_dateaxSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_dateaxTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_dateaxCROSSAX === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + + if (null != oNewVal.m_val) { - val.setBodyPr(oNewVal); + val.crossAxId = oNewVal.m_val; } } - else if (c_oserct_chartstyleSPPR == type) - { - val.setSpPr(this.ReadSpPr(length)); + else if (c_oserct_dateaxCROSSES === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Crosses(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setCrosses(oNewVal.m_val); + } + else if (c_oserct_dateaxCROSSESAT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Double(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setCrossesAt(oNewVal.m_val); + } + else if (c_oserct_dateaxAUTO === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setAuto(oNewVal.m_val); + } + else if (c_oserct_dateaxLBLOFFSET === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LblOffset(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setLblOffset(oNewVal.m_val); + } + else if (c_oserct_dateaxBASETIMEUNIT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TimeUnit(t, l, oNewVal); + }); + // if (null != oNewVal.m_val) { + // val.setMinorTimeUnit(oNewVal.m_val); + } + else if (c_oserct_dateaxMAJORUNIT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_AxisUnit(t, l, oNewVal); + }); + // if (null != oNewVal.m_val) + // val.setMajorUnit(oNewVal.m_val); + } + else if (c_oserct_dateaxMAJORTIMEUNIT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TimeUnit(t, l, oNewVal); + }); + // if (null != oNewVal.m_val) { + // val.setMinorTimeUnit(oNewVal.m_val); + } + else if (c_oserct_dateaxMINORUNIT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_AxisUnit(t, l, oNewVal); + }); + // if (null != oNewVal.m_val) + // val.setMinorUnit(oNewVal.m_val); + } + else if (c_oserct_dateaxMINORTIMEUNIT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TimeUnit(t, l, oNewVal); + }); + // if (null != oNewVal.m_val) + // val.setMinorTimeUnit(oNewVal.m_val); } - else if (c_oserct_chartstyleLINEWIDTH == type) - { - val.setLineWidthScale(this.stream.GetDoubleLE()); + else if (c_oserct_dateaxEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; } else - { res = c_oSerConstants.ReadUnknown; - } return res; }; -BinaryChartReader.prototype.ReadCT_MarkerLayout = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_LblOffset = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_chartstyleMARKERSYMBOL == type) - { - val.setSymbol(this.MarkerStyleToFormat(this.stream.GetUChar())); - } - else if (c_oserct_chartstyleMARKERSIZE == type) - { - val.setSize(this.stream.GetULongLE()); + if (c_oserct_lbloffsetVAL === type) { + val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); } else - { res = c_oSerConstants.ReadUnknown; - } return res; }; -BinaryChartReader.prototype.ReadCT_ChartColors = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_AxisUnit = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - var oNewVal; - if (c_oserct_chartcolorsID === type) - { - val.setId(this.stream.GetULongLE()); - } - else if (c_oserct_chartcolorsMETH === type) - { - val.setMeth(this.stream.GetString2LE(length)); - } - else if(c_oserct_chartcolorsVARIATION === type) - { - oNewVal = new AscFormat.CColorModifiers(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ColorsVariation(t, l, oNewVal); - }); - val.addItem(oNewVal); - } - else if(c_oserct_chartcolorsCOLOR === type) - { - oNewVal = AscCommon.pptx_content_loader.ReadUniColor(this, this.stream); - if(oNewVal) - { - val.addItem(oNewVal); - } + if (c_oserct_axisunitVAL === type) { + var oNewVal; + oNewVal = this.stream.GetDoubleLE(); + val.m_val = oNewVal; } else - { res = c_oSerConstants.ReadUnknown; - } return res; }; -BinaryChartReader.prototype.ReadCT_ColorsVariation = function (type, length, val) -{ +BinaryChartReader.prototype.ReadCT_LblAlgn = function (type, length, val) { var res = c_oSerConstants.ReadOk; - if (c_oserct_chartcolorsEFFECT === type) - { - var oMod = AscCommon.pptx_content_loader.ReadColorMod(this, this.stream); - if(oMod) - { - val.addMod(oMod); + var oThis = this; + if (c_oserct_lblalgnVAL === type) { + switch (this.stream.GetUChar()) { + case st_lblalgnCTR: val.m_val = AscFormat.LBL_ALG_CTR; break; + case st_lblalgnL: val.m_val = AscFormat.LBL_ALG_L; break; + case st_lblalgnR: val.m_val = AscFormat.LBL_ALG_R; break; } } else - { res = c_oSerConstants.ReadUnknown; - } return res; }; - -BinaryChartReader.prototype.ReadCT_FromTo = function(type, length, poResult) -{ +BinaryChartReader.prototype.ReadCT_CatAx = function (type, length, val) { var res = c_oSerConstants.ReadOk; - if(Asc.c_oSer_DrawingPosType.X == type) - { - poResult.x = this.stream.GetDoubleLE(); - } - else if(Asc.c_oSer_DrawingPosType.Y == type) - { - poResult.y = this.stream.GetDoubleLE(); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_userShape = function(type, length, poResult) -{ var oThis = this; - - var res = c_oSerConstants.ReadOk; - if(Asc.c_oSer_DrawingType.From == type) - { - var oNewVal = {}; - res = this.bcr.Read2Spreadsheet(length, function (t, l) { - return oThis.ReadCT_FromTo(t, l, oNewVal); + if (c_oserct_cataxAXID === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); - poResult.setFromTo(oNewVal.x, oNewVal.y, poResult.toX, poResult.toY); + if (null != oNewVal.m_val) + val.setAxId(oNewVal.m_val); } - else if(Asc.c_oSer_DrawingType.To == type) - { - var oNewVal = {}; - res = this.bcr.Read2Spreadsheet(length, function (t, l) { - return oThis.ReadCT_FromTo(t, l, oNewVal); + else if (c_oserct_cataxSCALING === type) { + var oNewVal = new AscFormat.CScaling(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Scaling(t, l, oNewVal); }); - poResult.setFromTo( poResult.fromX, poResult.fromY, oNewVal.x, oNewVal.y); + val.setScaling(oNewVal); } - else if(Asc.c_oSer_DrawingType.Ext == type) - { - var oNewVal = {}; - res = this.bcr.Read2Spreadsheet(length, function (t, l) { - return oThis.ReadCT_FromTo(t, l, oNewVal); + else if (c_oserct_cataxDELETE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - poResult.setFromTo( poResult.fromX, poResult.fromY, oNewVal.x, oNewVal.y); - } - else if(Asc.c_oSer_DrawingType.pptxDrawing == type) - { - var oGraphicObject = AscCommon.pptx_content_loader.ReadGraphicObject(this.stream, this.curWorksheet, this.drawingDocument); - poResult.setObject(oGraphicObject); - // oGraphicObject.createTextBody(); - // oGraphicObject.txBody.content.AddText("Test user Shapes"); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_PageSetup = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_pagesetupPAPERSIZE === type) { - val.setPaperSize(this.stream.GetULongLE()); + if (null != oNewVal.m_val) + val.setDelete(oNewVal.m_val); + else + val.setDelete(true); } - else if (c_oserct_pagesetupPAPERHEIGHT === type) { - var mm = this.ParseMetric(this.stream.GetString2LE(length)); - if (null != mm) - val.setPaperHeight(mm); + else if (c_oserct_cataxAXPOS === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_AxPos(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setAxPos(oNewVal.m_val); } - else if (c_oserct_pagesetupPAPERWIDTH === type) { - var mm = this.ParseMetric(this.stream.GetString2LE(length)); - if (null != mm) - val.setPaperWidth(mm); + else if (c_oserct_cataxMAJORGRIDLINES === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setMajorGridlines(oNewVal.spPr); + else + val.setMajorGridlines(new AscFormat.CSpPr()); } - else if (c_oserct_pagesetupFIRSTPAGENUMBER === type) { - val.setFirstPageNumber(this.stream.GetULongLE()); + else if (c_oserct_cataxMINORGRIDLINES === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setMinorGridlines(oNewVal.spPr); + else + val.setMinorGridlines(new AscFormat.CSpPr()); } - else if (c_oserct_pagesetupORIENTATION === type) { - switch (this.stream.GetUChar()) { - case st_pagesetuporientationDEFAULT: val.setOrientation(AscFormat.PAGE_SETUP_ORIENTATION_DEFAULT); break; - case st_pagesetuporientationPORTRAIT: val.setOrientation(AscFormat.PAGE_SETUP_ORIENTATION_PORTRAIT); break; - case st_pagesetuporientationLANDSCAPE: val.setOrientation(AscFormat.PAGE_SETUP_ORIENTATION_LANDSCAPE); break; + else if (c_oserct_cataxTITLE === type) { + var oNewVal = new AscFormat.CTitle(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Title(t, l, oNewVal); + }); + if(!AscFormat.isRealBool(oNewVal.overlay)) + { + oNewVal.setOverlay(true); } + val.setTitle(oNewVal); } - else if (c_oserct_pagesetupBLACKANDWHITE === type) { - val.setBlackAndWhite(this.stream.GetBool()); - } - else if (c_oserct_pagesetupDRAFT === type) { - val.setBlackAndWhite(this.stream.GetBool()); - } - else if (c_oserct_pagesetupUSEFIRSTPAGENUMBER === type) { - val.setUseFirstPageNumb(this.stream.GetBool()); - } - else if (c_oserct_pagesetupHORIZONTALDPI === type) { - val.setHorizontalDpi(this.stream.GetULongLE()); - } - else if (c_oserct_pagesetupVERTICALDPI === type) { - val.setVerticalDpi(this.stream.GetULongLE()); - } - else if (c_oserct_pagesetupCOPIES === type) { - val.setCopies(this.stream.GetULongLE()); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_PageMargins = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_pagemarginsL === type) { - val.setL(this.stream.GetDoubleLE()); - } - else if (c_oserct_pagemarginsR === type) { - val.setR(this.stream.GetDoubleLE()); - } - else if (c_oserct_pagemarginsT === type) { - val.setT(this.stream.GetDoubleLE()); + else if (c_oserct_cataxNUMFMT === type) { + var oNewVal = new AscFormat.CNumFmt(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_NumFmt(t, l, oNewVal); + }); + val.setNumFmt(oNewVal); } - else if (c_oserct_pagemarginsB === type) { - val.setB(this.stream.GetDoubleLE()); + else if (c_oserct_cataxMAJORTICKMARK === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickMark(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setMajorTickMark(oNewVal.m_val); + else{ + val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); + } } - else if (c_oserct_pagemarginsHEADER === type) { - val.setHeader(this.stream.GetDoubleLE()); + else if (c_oserct_cataxMINORTICKMARK === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickMark(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setMinorTickMark(oNewVal.m_val); + else{ + val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); + } } - else if (c_oserct_pagemarginsFOOTER === type) { - val.setFooter(this.stream.GetDoubleLE()); + else if (c_oserct_cataxTICKLBLPOS === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_TickLblPos(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setTickLblPos(oNewVal.m_val); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_HeaderFooter = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_headerfooterODDHEADER === type) { - val.setOddHeader(this.stream.GetString2LE(length)); + else if (c_oserct_cataxSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_headerfooterODDFOOTER === type) { - val.setOddFooter(this.stream.GetString2LE(length)); + else if (c_oserct_cataxTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); } - else if (c_oserct_headerfooterEVENHEADER === type) { - val.setEvenHeader(this.stream.GetString2LE(length)); + else if (c_oserct_cataxCROSSAX === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + { + val.crossAxId = oNewVal.m_val; + } } - else if (c_oserct_headerfooterEVENFOOTER === type) { - val.setEvenFooter(this.stream.GetString2LE(length)); + else if (c_oserct_cataxCROSSES === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Crosses(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setCrosses(oNewVal.m_val); + } - else if (c_oserct_headerfooterFIRSTHEADER === type) { - val.setFirstHeader(this.stream.GetString2LE(length)); + else if (c_oserct_cataxCROSSESAT === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Double(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setCrossesAt(oNewVal.m_val); } - else if (c_oserct_headerfooterFIRSTFOOTER === type) { - val.setFirstFooter(this.stream.GetString2LE(length)); + else if (c_oserct_cataxAUTO === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setAuto(oNewVal.m_val); } - else if (c_oserct_headerfooterALIGNWITHMARGINS === type) { - val.setAlignWithMargins(this.stream.GetBool()); + else if (c_oserct_cataxLBLALGN === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LblAlgn(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setLblAlgn(oNewVal.m_val); } - else if (c_oserct_headerfooterDIFFERENTODDEVEN === type) { - val.setDifferentOddEven(this.stream.GetBool()); + else if (c_oserct_cataxLBLOFFSET === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_LblOffset(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setLblOffset(oNewVal.m_val); } - else if (c_oserct_headerfooterDIFFERENTFIRST === type) { - val.setDifferentFirst(this.stream.GetBool()); + else if (c_oserct_cataxTICKLBLSKIP === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Skip(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setTickLblSkip(oNewVal.m_val); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_PrintSettings = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_printsettingsHEADERFOOTER === type) { - var oNewVal = new AscFormat.CHeaderFooterChart(); + else if (c_oserct_cataxTICKMARKSKIP === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_HeaderFooter(t, l, oNewVal); + return oThis.ReadCT_Skip(t, l, oNewVal); }); - val.setHeaderFooter(oNewVal); + if (null != oNewVal.m_val) + val.setTickMarkSkip(oNewVal.m_val); } - else if (c_oserct_printsettingsPAGEMARGINS === type) { - var oNewVal = new AscFormat.CPageMarginsChart(); + else if (c_oserct_cataxNOMULTILVLLBL === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PageMargins(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setPageMargins(oNewVal); + if (null != oNewVal.m_val) + val.setNoMultiLvlLbl(oNewVal.m_val); } - else if (c_oserct_printsettingsPAGESETUP === type) { - var oNewVal = new AscFormat.CPageSetup(); + else if (c_oserct_cataxEXTLST === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PageSetup(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - val.setPageSetup(oNewVal); + // val.m_extLst = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_ExternalData = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_DispUnitsLbl = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_externaldataAUTOUPDATE === type) { - var oNewVal; - oNewVal = {}; + if (c_oserct_dispunitslblLAYOUT === type) { res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Layout(t, l, val); }); - val.m_autoUpdate = oNewVal; } - else if (c_oserct_externaldataID === type) { - //todo - var oNewVal; - oNewVal = this.stream.GetString2LE(length); - val.m_id = oNewVal; + else if (c_oserct_dispunitslblTX === type) { + var oNewVal = new AscFormat.CChartText(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Tx(t, l, oNewVal); + }); + oNewVal.setChart(this.curChart); + val.setTx(oNewVal); + } + else if (c_oserct_dispunitslblSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_dispunitslblTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DispBlanksAs = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_BuiltInUnit = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_dispblanksasVAL === type) { + if (c_oserct_builtinunitVAL === type) { switch (this.stream.GetUChar()) { - case st_dispblanksasSPAN: val.m_val = AscFormat.DISP_BLANKS_AS_SPAN; break; - case st_dispblanksasGAP: val.m_val = AscFormat.DISP_BLANKS_AS_GAP; break; - case st_dispblanksasZERO: val.m_val = AscFormat.DISP_BLANKS_AS_ZERO; break; + case st_builtinunitHUNDREDS: val.m_val = c_oAscValAxUnits.HUNDREDS; break; + case st_builtinunitTHOUSANDS: val.m_val = c_oAscValAxUnits.THOUSANDS; break; + case st_builtinunitTENTHOUSANDS: val.m_val = c_oAscValAxUnits.TEN_THOUSANDS; break; + case st_builtinunitHUNDREDTHOUSANDS: val.m_val = c_oAscValAxUnits.HUNDRED_THOUSANDS; break; + case st_builtinunitMILLIONS: val.m_val = c_oAscValAxUnits.MILLIONS; break; + case st_builtinunitTENMILLIONS: val.m_val = c_oAscValAxUnits.TEN_MILLIONS; break; + case st_builtinunitHUNDREDMILLIONS: val.m_val = c_oAscValAxUnits.HUNDRED_MILLIONS; break; + case st_builtinunitBILLIONS: val.m_val = c_oAscValAxUnits.BILLIONS; break; + case st_builtinunitTRILLIONS: val.m_val = c_oAscValAxUnits.TRILLIONS; break; } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_LegendEntry = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_DispUnits = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_legendentryIDX === type) { + if (c_oserct_dispunitsBUILTINUNIT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_BuiltInUnit(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); + val.setBuiltInUnit(oNewVal.m_val); } - else if (c_oserct_legendentryDELETE === type) { + else if (c_oserct_dispunitsCUSTUNIT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Double(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setDelete(oNewVal.m_val); - else - val.setDelete(true); + val.setCustUnit(oNewVal.m_val); } - else if (c_oserct_legendentryTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + else if (c_oserct_dispunitsDISPUNITSLBL === type) { + var oNewVal = new AscFormat.CDLbl(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DispUnitsLbl(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDispUnitsLbl(oNewVal); } - else if (c_oserct_legendentryEXTLST === type) { + else if (c_oserct_dispunitsEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -6756,199 +9318,190 @@ BinaryChartReader.prototype.ReadCT_LegendEntry = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_UnsignedInt = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_unsignedintVAL === type) { - var oNewVal; - oNewVal = this.stream.GetULongLE(); - val.m_val = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Extension = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_extensionANY === type) { - var oNewVal; - oNewVal = this.stream.GetString2LE(length); - val.m_Any = oNewVal; - } - else if (c_oserct_extensionURI === type) { - var oNewVal; - oNewVal = this.stream.GetString2LE(length); - val.m_uri = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_LegendPos = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_CrossBetween = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_legendposVAL === type) { + if (c_oserct_crossbetweenVAL === type) { switch (this.stream.GetUChar()) { - case st_legendposB: val.m_val = c_oAscChartLegendShowSettings.bottom; break; - case st_legendposTR: val.m_val = c_oAscChartLegendShowSettings.topRight; break; - case st_legendposL: val.m_val = c_oAscChartLegendShowSettings.left; break; - case st_legendposR: val.m_val = c_oAscChartLegendShowSettings.right; break; - case st_legendposT: val.m_val = c_oAscChartLegendShowSettings.top; break; + case st_crossbetweenBETWEEN: val.m_val = AscFormat.CROSS_BETWEEN_BETWEEN; break; + case st_crossbetweenMIDCAT: val.m_val = AscFormat.CROSS_BETWEEN_MID_CAT; break; } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_Legend = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_ValAx = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_legendLEGENDPOS === type) { + if (c_oserct_valaxAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LegendPos(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setLegendPos(oNewVal.m_val); + val.setAxId(oNewVal.m_val); } - else if (c_oserct_legendLEGENDENTRY === type) { - var oNewVal = new AscFormat.CLegendEntry(); + else if (c_oserct_valaxSCALING === type) { + var oNewVal = new AscFormat.CScaling(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LegendEntry(t, l, oNewVal); + return oThis.ReadCT_Scaling(t, l, oNewVal); }); - val.addLegendEntry(oNewVal); + val.setScaling(oNewVal); } - else if (c_oserct_legendLAYOUT === type) { + else if (c_oserct_valaxDELETE === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Layout(t, l, val); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); + if (null != oNewVal.m_val) + val.setDelete(oNewVal.m_val); + else + val.setDelete(true); } - else if (c_oserct_legendOVERLAY === type) { + else if (c_oserct_valaxAXPOS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_AxPos(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setOverlay(oNewVal.m_val); - } - else if (c_oserct_legendSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + val.setAxPos(oNewVal.m_val); } - else if (c_oserct_legendTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + else if (c_oserct_valaxMAJORGRIDLINES === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setMajorGridlines(oNewVal.spPr); + else + val.setMajorGridlines(new AscFormat.CSpPr()); } - else if (c_oserct_legendEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_valaxMINORGRIDLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_ChartLines(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + if (null != oNewVal.spPr) + val.setMinorGridlines(oNewVal.spPr); + else + val.setMinorGridlines(new AscFormat.CSpPr()); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Layout = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_layoutMANUALLAYOUT === type) { - var oNewVal = new AscFormat.CLayout(); + else if (c_oserct_valaxTITLE === type) { + var oNewVal = new AscFormat.CTitle(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ManualLayout(t, l, oNewVal); + return oThis.ReadCT_Title(t, l, oNewVal); }); - val.setLayout(oNewVal); + if(!AscFormat.isRealBool(oNewVal.overlay)) + { + oNewVal.setOverlay(true); + } + val.setTitle(oNewVal); } - else if (c_oserct_layoutEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_valaxNUMFMT === type) { + var oNewVal = new AscFormat.CNumFmt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_NumFmt(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + val.setNumFmt(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_ManualLayout = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_manuallayoutLAYOUTTARGET === type) { + else if (c_oserct_valaxMAJORTICKMARK === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LayoutTarget(t, l, oNewVal); + return oThis.ReadCT_TickMark(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setLayoutTarget(oNewVal.m_val); + val.setMajorTickMark(oNewVal.m_val); + else{ + val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); + } } - else if (c_oserct_manuallayoutXMODE === type) { + else if (c_oserct_valaxMINORTICKMARK === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LayoutMode(t, l, oNewVal); + return oThis.ReadCT_TickMark(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setXMode(oNewVal.m_val); + val.setMinorTickMark(oNewVal.m_val); + else{ + val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); + } } - else if (c_oserct_manuallayoutYMODE === type) { + else if (c_oserct_valaxTICKLBLPOS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LayoutMode(t, l, oNewVal); + return oThis.ReadCT_TickLblPos(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setYMode(oNewVal.m_val); + val.setTickLblPos(oNewVal.m_val); } - else if (c_oserct_manuallayoutWMODE === type) { + else if (c_oserct_valaxSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_valaxTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_valaxCROSSAX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LayoutMode(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setWMode(oNewVal.m_val); + { + val.crossAxId = oNewVal.m_val; + } } - else if (c_oserct_manuallayoutHMODE === type) { + else if (c_oserct_valaxCROSSES === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LayoutMode(t, l, oNewVal); + return oThis.ReadCT_Crosses(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setHMode(oNewVal.m_val); + val.setCrosses(oNewVal.m_val); + else + val.setCrosses(AscFormat.CROSSES_AUTO_ZERO); } - else if (c_oserct_manuallayoutX === type) { + else if (c_oserct_valaxCROSSESAT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Double(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setX(oNewVal.m_val); + val.setCrossesAt(oNewVal.m_val); } - else if (c_oserct_manuallayoutY === type) { + else if (c_oserct_valaxCROSSBETWEEN === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_CrossBetween(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setY(oNewVal.m_val); + val.setCrossBetween(oNewVal.m_val); } - else if (c_oserct_manuallayoutW === type) { + else if (c_oserct_valaxMAJORUNIT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_AxisUnit(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setW(oNewVal.m_val); + val.setMajorUnit(oNewVal.m_val); } - else if (c_oserct_manuallayoutH === type) { + else if (c_oserct_valaxMINORUNIT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_AxisUnit(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setH(oNewVal.m_val); + val.setMinorUnit(oNewVal.m_val); } - else if (c_oserct_manuallayoutEXTLST === type) { + else if (c_oserct_valaxDISPUNITS === type) { + var oNewVal = new AscFormat.CDispUnits(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DispUnits(t, l, oNewVal); + }); + val.setDispUnits(oNewVal); + } + else if (c_oserct_valaxEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -6960,253 +9513,246 @@ BinaryChartReader.prototype.ReadCT_ManualLayout = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_LayoutTarget = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_SizeRepresents = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_layouttargetVAL === type) { + if (c_oserct_sizerepresentsVAL === type) { switch (this.stream.GetUChar()) { - case st_layouttargetINNER: val.m_val = LAYOUT_TARGET_INNER; break; - case st_layouttargetOUTER: val.m_val = LAYOUT_TARGET_OUTER; break; + case st_sizerepresentsAREA: val.m_val = SIZE_REPRESENTS_AREA; break; + case st_sizerepresentsW: val.m_val = SIZE_REPRESENTS_W; break; } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_LayoutMode = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_BubbleScale = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_layoutmodeVAL === type) { - switch (this.stream.GetUChar()) { - case st_layoutmodeEDGE: val.m_val = LAYOUT_MODE_EDGE; break; - case st_layoutmodeFACTOR: val.m_val = LAYOUT_MODE_FACTOR; break; - } + if (c_oserct_bubblescaleVAL === type) { + val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_Double = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_BubbleSer = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_doubleVAL === type) { - var oNewVal; - oNewVal = this.stream.GetDoubleLE(); - val.m_val = oNewVal; + if (c_oserct_bubbleserIDX === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setIdx(oNewVal.m_val); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_DTable = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_dtableSHOWHORZBORDER === type) { + else if (c_oserct_bubbleserORDER === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setOrder(oNewVal.m_val); + } + else if (c_oserct_bubbleserTX === type) { + var oNewVal = new AscFormat.CTx(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_SerTx(t, l, oNewVal); + }); + val.setTx(oNewVal); + } + else if (c_oserct_bubbleserSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_bubbleserINVERTIFNEGATIVE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setInvertIfNegative(oNewVal.m_val); + } + else if (c_oserct_bubbleserDPT === type) { + var oNewVal = new AscFormat.CDPt(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DPt(t, l, oNewVal); + }); + val.addDPt(oNewVal); + } + else if (c_oserct_bubbleserDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); + } + else if (c_oserct_bubbleserTRENDLINE === type) { + //todo array + var oNewVal = new AscFormat.CTrendLine(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Trendline(t, l, oNewVal); + }); + val.setTrendline(oNewVal); + } + else if (c_oserct_bubbleserERRBARS === type) { + var oNewVal = new AscFormat.CErrBars(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ErrBars(t, l, oNewVal); + }); + val.addErrBars(oNewVal); + } + else if (c_oserct_bubbleserXVAL === type) { + var oNewVal = new AscFormat.CCat(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_AxDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowHorzBorder(oNewVal.m_val); + val.setXVal(oNewVal); } - else if (c_oserct_dtableSHOWVERTBORDER === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_bubbleserYVAL === type) { + var oNewVal = new AscFormat.CYVal(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowVertBorder(oNewVal.m_val); + val.setYVal(oNewVal); } - else if (c_oserct_dtableSHOWOUTLINE === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_bubbleserBUBBLESIZE === type) { + var oNewVal = new AscFormat.CYVal(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowOutline(oNewVal.m_val); + val.setBubbleSize(oNewVal); } - else if (c_oserct_dtableSHOWKEYS === type) { + else if (c_oserct_bubbleserBUBBLE3D === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setShowKeys(oNewVal.m_val); - } - else if (c_oserct_dtableSPPR === type) { - val.setSpPr(this.ReadSpPr(length)) - } - else if (c_oserct_dtableTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + val.setBubble3D(oNewVal.m_val); } - else if (c_oserct_dtableEXTLST === type) { + else if (c_oserct_bubbleserEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); // val.m_extLst = oNewVal; + } + else if(c_oserct_chartFiltering === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartFiltering(t, l, val); + }); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_SerAx = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_SerTx = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_seraxAXID === type) { - var oNewVal = { m_val: null }; + if (c_oserct_sertxSTRREF === type) { + var oNewVal = new AscFormat.CStrRef(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_StrRef(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setAxId(oNewVal.m_val); + val.setStrRef(oNewVal); } - else if (c_oserct_seraxSCALING === type) { - var oNewVal = new AscFormat.CScaling(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Scaling(t, l, oNewVal); - }); - val.setScaling(oNewVal); + else if (c_oserct_sertxV === type) { + val.setVal(this.stream.GetString2LE(length)); } - else if (c_oserct_seraxDELETE === type) { + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_DPt = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_dptIDX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setDelete(oNewVal.m_val); - else - val.setDelete(true); + val.setIdx(oNewVal.m_val); } - else if (c_oserct_seraxAXPOS === type) { + else if (c_oserct_dptINVERTIFNEGATIVE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxPos(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setAxPos(oNewVal.m_val); - } - else if (c_oserct_seraxMAJORGRIDLINES === type) { - var oNewVal = { spPr: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); - }); - if (null != oNewVal.spPr) - val.setMajorGridlines(oNewVal.spPr); - else - val.setMajorGridlines(new AscFormat.CSpPr()); - } - else if (c_oserct_seraxMINORGRIDLINES === type) { - var oNewVal = { spPr: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); - }); - if (null != oNewVal.spPr) - val.setMinorGridlines(oNewVal.spPr); - else - val.setMinorGridlines(new AscFormat.CSpPr()); - } - else if (c_oserct_seraxTITLE === type) { - var oNewVal = new AscFormat.CTitle(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Title(t, l, oNewVal); - }); - if(!AscFormat.isRealBool(oNewVal.overlay)) - { - oNewVal.setOverlay(false); - } - val.setTitle(oNewVal); - } - else if (c_oserct_seraxNUMFMT === type) { - var oNewVal = new AscFormat.CNumFmt(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumFmt(t, l, oNewVal); - }); - val.setNumFmt(oNewVal); + val.setInvertIfNegative(oNewVal.m_val); } - else if (c_oserct_seraxMAJORTICKMARK === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_dptMARKER === type) { + var oNewVal = new AscFormat.CMarker(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickMark(t, l, oNewVal); + return oThis.ReadCT_Marker(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setMajorTickMark(oNewVal.m_val); - else{ - val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); - } + val.setMarker(oNewVal); } - else if (c_oserct_seraxMINORTICKMARK === type) { + else if (c_oserct_dptBUBBLE3D === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickMark(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setMinorTickMark(oNewVal.m_val); - else{ - val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); - } + val.setBubble3D(oNewVal.m_val); } - else if (c_oserct_seraxTICKLBLPOS === type) { + else if (c_oserct_dptEXPLOSION === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickLblPos(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setTickLblPos(oNewVal.m_val); + val.setExplosion(oNewVal.m_val); } - else if (c_oserct_seraxSPPR === type) { + else if (c_oserct_dptSPPR === type) { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_seraxTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); - } - else if (c_oserct_seraxCROSSAX === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_dptPICTUREOPTIONS === type) { + var oNewVal = new AscFormat.CPictureOptions(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_PictureOptions(t, l, oNewVal); }); - - if (null != oNewVal.m_val) - { - val.crossAxId = oNewVal.m_val; - } + val.setPictureOptions(oNewVal); } - else if (c_oserct_seraxCROSSES === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_dptEXTLST === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Crosses(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setCrosses(oNewVal.m_val); + // val.m_extLst = oNewVal; } - else if (c_oserct_seraxCROSSESAT === type) { + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Marker = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_markerSYMBOL === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_MarkerStyle(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setCrossesAt(oNewVal.m_val); + val.setSymbol(oNewVal.m_val); } - else if (c_oserct_seraxTICKLBLSKIP === type) { + else if (c_oserct_markerSIZE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Skip(t, l, oNewVal); + return oThis.ReadCT_MarkerSize(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setTickLblSkip(oNewVal.m_val); + val.setSize(oNewVal.m_val); } - else if (c_oserct_seraxTICKMARKSKIP === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Skip(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setTickMarkSkip(oNewVal.m_val); + else if (c_oserct_markerSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_seraxEXTLST === type) { + else if (c_oserct_markerEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -7218,334 +9764,277 @@ BinaryChartReader.prototype.ReadCT_SerAx = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_Scaling = function (type, length, val) { +BinaryChartReader.prototype.MarkerStyleToFormat = function(markerStyle) { + + var val = null; + switch (markerStyle) { + case st_markerstyleCIRCLE: val = AscFormat.SYMBOL_CIRCLE; break; + case st_markerstyleDASH: val = AscFormat.SYMBOL_DASH; break; + case st_markerstyleDIAMOND: val = AscFormat.SYMBOL_DIAMOND; break; + case st_markerstyleDOT: val = AscFormat.SYMBOL_DOT; break; + case st_markerstyleNONE: val = AscFormat.SYMBOL_NONE; break; + case st_markerstylePICTURE: val = AscFormat.SYMBOL_PICTURE; break; + case st_markerstylePLUS: val = AscFormat.SYMBOL_PLUS; break; + case st_markerstyleSQUARE: val = AscFormat.SYMBOL_SQUARE; break; + case st_markerstyleSTAR: val = AscFormat.SYMBOL_STAR; break; + case st_markerstyleTRIANGLE: val = AscFormat.SYMBOL_TRIANGLE; break; + case st_markerstyleX: val = AscFormat.SYMBOL_X; break; + case st_markerstyleAUTO: break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_MarkerStyle = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + if (c_oserct_markerstyleVAL === type) { + val.m_val = this.MarkerStyleToFormat(this.stream.GetUChar()); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_MarkerSize = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_scalingLOGBASE === type) { + if (c_oserct_markersizeVAL === type) { + var oNewVal; + oNewVal = this.stream.GetUChar(); + val.m_val = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_PictureOptions = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_pictureoptionsAPPLYTOFRONT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LogBase(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setLogBase(oNewVal.m_val); + val.setApplyToFront(oNewVal.m_val); } - else if (c_oserct_scalingORIENTATION === type) { + else if (c_oserct_pictureoptionsAPPLYTOSIDES === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Orientation(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setOrientation(oNewVal.m_val); + val.setApplyToSides(oNewVal.m_val); } - else if (c_oserct_scalingMAX === type) { + else if (c_oserct_pictureoptionsAPPLYTOEND === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setMax(oNewVal.m_val); + val.setApplyToEnd(oNewVal.m_val); } - else if (c_oserct_scalingMIN === type) { + else if (c_oserct_pictureoptionsPICTUREFORMAT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_PictureFormat(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setMin(oNewVal.m_val); + val.setPictureFormat(oNewVal.m_val); } - else if (c_oserct_scalingEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_pictureoptionsPICTURESTACKUNIT === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_PictureStackUnit(t, l, oNewVal); }); - // val.m_extLst = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_LogBase = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_logbaseVAL === type) { - var oNewVal; - oNewVal = this.stream.GetDoubleLE(); - val.m_val = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Orientation = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_orientationVAL === type) { - switch (this.stream.GetUChar()) { - case st_orientationMAXMIN: val.m_val = AscFormat.ORIENTATION_MAX_MIN; break; - case st_orientationMINMAX: val.m_val = AscFormat.ORIENTATION_MIN_MAX; break; - } + if (null != oNewVal.m_val) + val.setPictureStackUnit(oNewVal.m_val); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_AxPos = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_PictureFormat = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_axposVAL === type) { + if (c_oserct_pictureformatVAL === type) { switch (this.stream.GetUChar()) { - case st_axposB: val.m_val = AscFormat.AX_POS_B; break; - case st_axposL: val.m_val = AscFormat.AX_POS_L; break; - case st_axposR: val.m_val = AscFormat.AX_POS_R; break; - case st_axposT: val.m_val = AscFormat.AX_POS_T; break; + case st_pictureformatSTRETCH: val.m_val = PICTURE_FORMAT_STACK_STRETCH; break; + case st_pictureformatSTACK: val.m_val = PICTURE_FORMAT_STACK; break; + case st_pictureformatSTACKSCALE: val.m_val = PICTURE_FORMAT_STACK_SCALE; break; } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_ChartLines = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_PictureStackUnit = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_chartlinesSPPR === type) { - val.spPr = this.ReadSpPr(length); + if (c_oserct_picturestackunitVAL === type) { + var oNewVal; + oNewVal = this.stream.GetDoubleLE(); + val.m_val = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_Title = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_DLbls = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_titleTX === type) { - var oNewVal = new AscFormat.CChartText(); + if (c_oserct_dlblsDLBL === type) { + var oNewVal = new AscFormat.CDLbl(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Tx(t, l, oNewVal); + return oThis.ReadCT_DLbl(t, l, oNewVal); }); - oNewVal.setChart(this.curChart); - val.setTx(oNewVal); + oNewVal.correctValues(); + val.addDLbl(oNewVal); } - else if (c_oserct_titleLAYOUT === type) { + else if (c_oserct_dlblsDLBLPOS === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Layout(t, l, val); + return oThis.ReadCT_DLblPos(t, l, oNewVal); }); + if (null != oNewVal.m_val) + val.setDLblPos(oNewVal.m_val); } - else if (c_oserct_titleOVERLAY === type) { + else if (c_oserct_dlblsDELETE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setOverlay(oNewVal.m_val); - } - else if (c_oserct_titleSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); - } - else if (c_oserct_titleTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + val.setDelete(oNewVal.m_val); + else + val.setDelete(true); } - else if (c_oserct_titleEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_dlblsLEADERLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_ChartLines(t, l, oNewVal); }); - // val.m_extLst = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Tx = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_txRICH === type) { - val.setRich(this.ReadTxPr(length)); - val.rich.setParent(val); + if (null != oNewVal.spPr) + val.setLeaderLines(oNewVal.spPr); + else + val.setLeaderLines(new AscFormat.CSpPr()); } - else if (c_oserct_txSTRREF === type) { - var oNewVal = new AscFormat.CStrRef(); + else if (c_oserct_dlblsNUMFMT === type) { + var oNewVal = new AscFormat.CNumFmt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StrRef(t, l, oNewVal); + return oThis.ReadCT_NumFmt(t, l, oNewVal); }); - val.setStrRef(oNewVal); + val.setNumFmt(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_StrRef = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_strrefF === type) { - val.setF(this.stream.GetString2LE(length)); + else if (c_oserct_dlblsSEPARATOR === type) { + val.setSeparator(this.stream.GetString2LE(length)); } - else if (c_oserct_strrefSTRCACHE === type) { - var oNewVal = new AscFormat.CStrCache(); + else if (c_oserct_dlblsSHOWBUBBLESIZE === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StrData(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setStrCache(oNewVal); + if (null != oNewVal.m_val) + val.setShowBubbleSize(oNewVal.m_val); + else + val.setShowBubbleSize(true); } - else if (c_oserct_strrefEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_dlblsSHOWCATNAME === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + if (null != oNewVal.m_val) + val.setShowCatName(oNewVal.m_val); + else + val.setShowCatName(true); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_StrData = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_strdataPTCOUNT === type) { + else if (c_oserct_dlblsSHOWLEADERLINES === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setPtCount(oNewVal.m_val); + val.setShowLeaderLines(oNewVal.m_val); + else + val.setShowLeaderLines(true); } - else if (c_oserct_strdataPT === type) { - var oNewVal = new AscFormat.CStringPoint(); + else if (c_oserct_dlblsSHOWLEGENDKEY === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StrVal(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.addPt(oNewVal); + if (null != oNewVal.m_val) + val.setShowLegendKey(oNewVal.m_val); + else + val.setShowLegendKey(true); } - else if (c_oserct_strdataEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_dlblsSHOWPERCENT === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - // val.m_extLst = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_StrVal = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_strvalV === type) { - val.setVal(this.stream.GetString2LE(length)); - } - else if (c_oserct_strvalIDX === type) { - val.setIdx(this.stream.GetULongLE()); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_NumFmt = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_numfmtFORMATCODE === type) { - val.setFormatCode(this.stream.GetString2LE(length)); + if (null != oNewVal.m_val) + val.setShowPercent(oNewVal.m_val); + else + val.setShowPercent(true); } - else if (c_oserct_numfmtSOURCELINKED === type) { - val.setSourceLinked(this.stream.GetBool()); + else if (c_oserct_dlblsSHOWSERNAME === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setShowSerName(oNewVal.m_val); + else + val.setShowSerName(true); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_TickMark = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_tickmarkVAL === type) { - switch (this.stream.GetUChar()) { - case st_tickmarkCROSS: val.m_val = c_oAscTickMark.TICK_MARK_CROSS; break; - case st_tickmarkIN: val.m_val = c_oAscTickMark.TICK_MARK_IN; break; - case st_tickmarkNONE: val.m_val = c_oAscTickMark.TICK_MARK_NONE; break; - case st_tickmarkOUT: val.m_val = c_oAscTickMark.TICK_MARK_OUT; break; - } + else if (c_oserct_dlblsSHOWVAL === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setShowVal(oNewVal.m_val); + else + val.setShowVal(true); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_TickLblPos = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_ticklblposVAL === type) { - switch (this.stream.GetUChar()) { - case st_ticklblposHIGH: val.m_val = c_oAscTickLabelsPos.TICK_LABEL_POSITION_HIGH; break; - case st_ticklblposLOW: val.m_val = c_oAscTickLabelsPos.TICK_LABEL_POSITION_LOW; break; - case st_ticklblposNEXTTO: val.m_val = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NEXT_TO; break; - case st_ticklblposNONE: val.m_val = c_oAscTickLabelsPos.TICK_LABEL_POSITION_NONE; break; - } + else if (c_oserct_dlblsSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Crosses = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_crossesVAL === type) { - switch (this.stream.GetUChar()) { - case st_crossesAUTOZERO: val.m_val = AscFormat.CROSSES_AUTO_ZERO; break; - case st_crossesMAX: val.m_val = AscFormat.CROSSES_MAX; break; - case st_crossesMIN: val.m_val = AscFormat.CROSSES_MIN; break; - } + else if (c_oserct_dlblsTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Skip = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_skipVAL === type) { + else if (c_oserct_dlblsEXTLST === type) { var oNewVal; - oNewVal = this.stream.GetULongLE(); - val.m_val = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_TimeUnit = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_timeunitVAL === type) { - switch (this.stream.GetUChar()) { - case st_timeunitDAYS: val.m_val = AscFormat.TIME_UNIT_DAYS; break; - case st_timeunitMONTHS: val.m_val = AscFormat.TIME_UNIT_MONTHS; break; - case st_timeunitYEARS: val.m_val = AscFormat.TIME_UNIT_YEARS; break; - } + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DateAx = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_DLbl = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_dateaxAXID === type) { + if (c_oserct_dlblIDX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setAxId(oNewVal.m_val); + val.setIdx(oNewVal.m_val); } - else if (c_oserct_dateaxSCALING === type) { - var oNewVal = new AscFormat.CScaling(); + else if (c_oserct_dlblDLBLPOS === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Scaling(t, l, oNewVal); + return oThis.ReadCT_DLblPos(t, l, oNewVal); }); - val.setScaling(oNewVal); + if (null != oNewVal.m_val) + val.setDLblPos(oNewVal.m_val); } - else if (c_oserct_dateaxDELETE === type) { + else if (c_oserct_dlblDELETE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); @@ -7555,173 +10044,232 @@ BinaryChartReader.prototype.ReadCT_DateAx = function (type, length, val) { else val.setDelete(true); } - else if (c_oserct_dateaxAXPOS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_dlblLAYOUT === type) { res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxPos(t, l, oNewVal); + return oThis.ReadCT_Layout(t, l, val); }); - if (null != oNewVal.m_val) - val.setAxPos(oNewVal.m_val); } - else if (c_oserct_dateaxMAJORGRIDLINES === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_dlblNUMFMT === type) { + var oNewVal = new AscFormat.CNumFmt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_NumFmt(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setMajorGridlines(oNewVal.spPr); - else - val.setMajorGridlines(new AscFormat.CSpPr()); + val.setNumFmt(oNewVal); } - else if (c_oserct_dateaxMINORGRIDLINES === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_dlblSEPARATOR === type) { + val.setSeparator(this.stream.GetString2LE(length)); + } + else if (c_oserct_dlblSHOWBUBBLESIZE === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setMinorGridlines(oNewVal.spPr); + if (null != oNewVal.m_val) + val.setShowBubbleSize(oNewVal.m_val); else - val.setMinorGridlines(new AscFormat.CSpPr()); + val.setShowBubbleSize(true); } - else if (c_oserct_dateaxTITLE === type) { - var oNewVal = new AscFormat.CTitle(); + else if (c_oserct_dlblSHOWCATNAME === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Title(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if(!AscFormat.isRealBool(oNewVal.overlay)) - { - oNewVal.setOverlay(false); - } - val.setTitle(oNewVal); + if (null != oNewVal.m_val) + val.setShowCatName(oNewVal.m_val); + else + val.setShowCatName(true); } - else if (c_oserct_dateaxNUMFMT === type) { - var oNewVal = new AscFormat.CNumFmt(); + else if (c_oserct_dlblSHOWLEGENDKEY === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumFmt(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setNumFmt(oNewVal); + if (null != oNewVal.m_val) + val.setShowLegendKey(oNewVal.m_val); + else + val.setShowLegendKey(true); } - else if (c_oserct_dateaxMAJORTICKMARK === type) { + else if (c_oserct_dlblSHOWPERCENT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickMark(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setMajorTickMark(oNewVal.m_val); - else{ - val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); - } + val.setShowPercent(oNewVal.m_val); + else + val.setShowPercent(true); } - else if (c_oserct_dateaxMINORTICKMARK === type) { + else if (c_oserct_dlblSHOWSERNAME === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickMark(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setMinorTickMark(oNewVal.m_val); - else{ - val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); - } + val.setShowSerName(oNewVal.m_val); + else + val.setShowSerName(true); } - else if (c_oserct_dateaxTICKLBLPOS === type) { + else if (c_oserct_dlblSHOWVAL === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickLblPos(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setTickLblPos(oNewVal.m_val); + val.setShowVal(oNewVal.m_val); + else + val.setShowVal(true); } - else if (c_oserct_dateaxSPPR === type) { + else if (c_oserct_dlblSPPR === type) { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_dateaxTXPR === type) { + else if (c_oserct_dlblTX === type) { + var oNewVal = new AscFormat.CChartText(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Tx(t, l, oNewVal); + }); + oNewVal.setChart(this.curChart); + val.setTx(oNewVal); + } + else if (c_oserct_dlblTXPR === type) { val.setTxPr(this.ReadTxPr(length)); val.txPr.setParent(val); } - else if (c_oserct_dateaxCROSSAX === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_dlblEXTLST === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else if (c_oserct_dataLabel === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLblExt(t, l, val); }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_DLblExt = function(type, length, val) { - if (null != oNewVal.m_val) - { - val.crossAxId = oNewVal.m_val; + let res = c_oSerConstants.ReadOk; + let oThis = this; + if (c_oserct_showDataLabelsRange === type) { + let oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setShowDlblsRange(oNewVal.m_val); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_DLblPos = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_dlblposVAL === type) { + switch (this.stream.GetUChar()) { + case st_dlblposBESTFIT: val.m_val = c_oAscChartDataLabelsPos.bestFit; break; + case st_dlblposB: val.m_val = c_oAscChartDataLabelsPos.b; break; + case st_dlblposCTR: val.m_val = c_oAscChartDataLabelsPos.ctr; break; + case st_dlblposINBASE: val.m_val = c_oAscChartDataLabelsPos.inBase; break; + case st_dlblposINEND: val.m_val = c_oAscChartDataLabelsPos.inEnd; break; + case st_dlblposL: val.m_val = c_oAscChartDataLabelsPos.l; break; + case st_dlblposOUTEND: val.m_val = c_oAscChartDataLabelsPos.outEnd; break; + case st_dlblposR: val.m_val = c_oAscChartDataLabelsPos.r; break; + case st_dlblposT: val.m_val = c_oAscChartDataLabelsPos.t; break; } } - else if (c_oserct_dateaxCROSSES === type) { + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Trendline = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_trendlineNAME === type) { + val.setName(this.stream.GetString2LE(length)); + } + else if (c_oserct_trendlineSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_trendlineTRENDLINETYPE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Crosses(t, l, oNewVal); + return oThis.ReadCT_TrendlineType(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setCrosses(oNewVal.m_val); + val.setTrendlineType(oNewVal.m_val); } - else if (c_oserct_dateaxCROSSESAT === type) { + else if (c_oserct_trendlineORDER === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_Order(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setCrossesAt(oNewVal.m_val); + val.setOrder(oNewVal.m_val); } - else if (c_oserct_dateaxAUTO === type) { + else if (c_oserct_trendlinePERIOD === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Period(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setAuto(oNewVal.m_val); + val.setPeriod(oNewVal.m_val); } - else if (c_oserct_dateaxLBLOFFSET === type) { + else if (c_oserct_trendlineFORWARD === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LblOffset(t, l, oNewVal); + return oThis.ReadCT_Double(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setLblOffset(oNewVal.m_val); + val.setForward(oNewVal.m_val); } - else if (c_oserct_dateaxBASETIMEUNIT === type) { + else if (c_oserct_trendlineBACKWARD === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TimeUnit(t, l, oNewVal); + return oThis.ReadCT_Double(t, l, oNewVal); }); - // if (null != oNewVal.m_val) { - // val.setMinorTimeUnit(oNewVal.m_val); + if (null != oNewVal.m_val) + val.setBackward(oNewVal.m_val); } - else if (c_oserct_dateaxMAJORUNIT === type) { + else if (c_oserct_trendlineINTERCEPT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxisUnit(t, l, oNewVal); + return oThis.ReadCT_Double(t, l, oNewVal); }); - // if (null != oNewVal.m_val) - // val.setMajorUnit(oNewVal.m_val); + if (null != oNewVal.m_val) + val.setIntercept(oNewVal.m_val); } - else if (c_oserct_dateaxMAJORTIMEUNIT === type) { + else if (c_oserct_trendlineDISPRSQR === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TimeUnit(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - // if (null != oNewVal.m_val) { - // val.setMinorTimeUnit(oNewVal.m_val); + if (null != oNewVal.m_val) + val.setDispRSqr(oNewVal.m_val); } - else if (c_oserct_dateaxMINORUNIT === type) { + else if (c_oserct_trendlineDISPEQ === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxisUnit(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - // if (null != oNewVal.m_val) - // val.setMinorUnit(oNewVal.m_val); + if (null != oNewVal.m_val) + val.setDispEq(oNewVal.m_val); } - else if (c_oserct_dateaxMINORTIMEUNIT === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_trendlineTRENDLINELBL === type) { + var oNewVal = new AscFormat.CDLbl(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TimeUnit(t, l, oNewVal); + return oThis.ReadCT_TrendlineLbl(t, l, oNewVal); }); - // if (null != oNewVal.m_val) - // val.setMinorTimeUnit(oNewVal.m_val); + oNewVal.correctValues(); + val.setTrendlineLbl(oNewVal); } - else if (c_oserct_dateaxEXTLST === type) { + else if (c_oserct_trendlineEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -7733,229 +10281,150 @@ BinaryChartReader.prototype.ReadCT_DateAx = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_LblOffset = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_TrendlineType = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_lbloffsetVAL === type) { - val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); + if (c_oserct_trendlinetypeVAL === type) { + switch (this.stream.GetUChar()) { + case st_trendlinetypeEXP: val.m_val = TRENDLINE_TYPE_EXP; break; + case st_trendlinetypeLINEAR: val.m_val = TRENDLINE_TYPE_LINEAR; break; + case st_trendlinetypeLOG: val.m_val = TRENDLINE_TYPE_LOG; break; + case st_trendlinetypeMOVINGAVG: val.m_val = TRENDLINE_TYPE_MOVING_AVG; break; + case st_trendlinetypePOLY: val.m_val = TRENDLINE_TYPE_POLY; break; + case st_trendlinetypePOWER: val.m_val = TRENDLINE_TYPE_POWER; break; + } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_AxisUnit = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Order = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_axisunitVAL === type) { + if (c_oserct_orderVAL === type) { var oNewVal; - oNewVal = this.stream.GetDoubleLE(); + oNewVal = this.stream.GetUChar(); val.m_val = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_LblAlgn = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Period = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_lblalgnVAL === type) { - switch (this.stream.GetUChar()) { - case st_lblalgnCTR: val.m_val = AscFormat.LBL_ALG_CTR; break; - case st_lblalgnL: val.m_val = AscFormat.LBL_ALG_L; break; - case st_lblalgnR: val.m_val = AscFormat.LBL_ALG_R; break; - } + if (c_oserct_periodVAL === type) { + var oNewVal; + oNewVal = this.stream.GetULongLE(); + val.m_val = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_CatAx = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_TrendlineLbl = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_cataxAXID === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setAxId(oNewVal.m_val); - } - else if (c_oserct_cataxSCALING === type) { - var oNewVal = new AscFormat.CScaling(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Scaling(t, l, oNewVal); - }); - val.setScaling(oNewVal); - } - else if (c_oserct_cataxDELETE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setDelete(oNewVal.m_val); - else - val.setDelete(true); - } - else if (c_oserct_cataxAXPOS === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxPos(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setAxPos(oNewVal.m_val); - } - else if (c_oserct_cataxMAJORGRIDLINES === type) { - var oNewVal = { spPr: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); - }); - if (null != oNewVal.spPr) - val.setMajorGridlines(oNewVal.spPr); - else - val.setMajorGridlines(new AscFormat.CSpPr()); - } - else if (c_oserct_cataxMINORGRIDLINES === type) { - var oNewVal = { spPr: null }; + if (c_oserct_trendlinelblLAYOUT === type) { res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_Layout(t, l, val); }); - if (null != oNewVal.spPr) - val.setMinorGridlines(oNewVal.spPr); - else - val.setMinorGridlines(new AscFormat.CSpPr()); } - else if (c_oserct_cataxTITLE === type) { - var oNewVal = new AscFormat.CTitle(); + else if (c_oserct_trendlinelblTX === type) { + var oNewVal = new AscFormat.CChartText(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Title(t, l, oNewVal); + return oThis.ReadCT_Tx(t, l, oNewVal); }); - if(!AscFormat.isRealBool(oNewVal.overlay)) - { - oNewVal.setOverlay(true); - } - val.setTitle(oNewVal); + oNewVal.setChart(this.curChart); + val.setTx(oNewVal); } - else if (c_oserct_cataxNUMFMT === type) { + else if (c_oserct_trendlinelblNUMFMT === type) { var oNewVal = new AscFormat.CNumFmt(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_NumFmt(t, l, oNewVal); }); val.setNumFmt(oNewVal); } - else if (c_oserct_cataxMAJORTICKMARK === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickMark(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setMajorTickMark(oNewVal.m_val); - else{ - val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); - } - } - else if (c_oserct_cataxMINORTICKMARK === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickMark(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setMinorTickMark(oNewVal.m_val); - else{ - val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); - } - } - else if (c_oserct_cataxTICKLBLPOS === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickLblPos(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setTickLblPos(oNewVal.m_val); - } - else if (c_oserct_cataxSPPR === type) { + else if (c_oserct_trendlinelblSPPR === type) { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_cataxTXPR === type) { + else if (c_oserct_trendlinelblTXPR === type) { val.setTxPr(this.ReadTxPr(length)); val.txPr.setParent(val); } - else if (c_oserct_cataxCROSSAX === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - { - val.crossAxId = oNewVal.m_val; - } - } - else if (c_oserct_cataxCROSSES === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_trendlinelblEXTLST === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Crosses(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setCrosses(oNewVal.m_val); - + // val.m_extLst = oNewVal; } - else if (c_oserct_cataxCROSSESAT === type) { + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_ErrBars = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_errbarsERRDIR === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_ErrDir(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setCrossesAt(oNewVal.m_val); + val.setErrDir(oNewVal.m_val); } - else if (c_oserct_cataxAUTO === type) { + else if (c_oserct_errbarsERRBARTYPE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_ErrBarType(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setAuto(oNewVal.m_val); + val.setErrBarType(oNewVal.m_val); } - else if (c_oserct_cataxLBLALGN === type) { + else if (c_oserct_errbarsERRVALTYPE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LblAlgn(t, l, oNewVal); + return oThis.ReadCT_ErrValType(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setLblAlgn(oNewVal.m_val); + val.setErrValType(oNewVal.m_val); } - else if (c_oserct_cataxLBLOFFSET === type) { + else if (c_oserct_errbarsNOENDCAP === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LblOffset(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setLblOffset(oNewVal.m_val); + val.setNoEndCap(oNewVal.m_val); } - else if (c_oserct_cataxTICKLBLSKIP === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_errbarsPLUS === type) { + var oNewVal = new AscFormat.CMinusPlus(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Skip(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setTickLblSkip(oNewVal.m_val); + val.setPlus(oNewVal); } - else if (c_oserct_cataxTICKMARKSKIP === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_errbarsMINUS === type) { + var oNewVal = new AscFormat.CMinusPlus(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Skip(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setTickMarkSkip(oNewVal.m_val); + val.setMinus(oNewVal); } - else if (c_oserct_cataxNOMULTILVLLBL === type) { + else if (c_oserct_errbarsVAL === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Double(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setNoMultiLvlLbl(oNewVal.m_val); + val.setVal(oNewVal.m_val); } - else if (c_oserct_cataxEXTLST === type) { + else if (c_oserct_errbarsSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_errbarsEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -7967,81 +10436,92 @@ BinaryChartReader.prototype.ReadCT_CatAx = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DispUnitsLbl = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_ErrDir = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_dispunitslblLAYOUT === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Layout(t, l, val); - }); - } - else if (c_oserct_dispunitslblTX === type) { - var oNewVal = new AscFormat.CChartText(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Tx(t, l, oNewVal); - }); - oNewVal.setChart(this.curChart); - val.setTx(oNewVal); - } - else if (c_oserct_dispunitslblSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + if (c_oserct_errdirVAL === type) { + switch (this.stream.GetUChar()) { + case st_errdirX: val.m_val = ERR_DIR_X; break; + case st_errdirY: val.m_val = ERR_DIR_Y; break; + } } - else if (c_oserct_dispunitslblTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_ErrBarType = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_errbartypeVAL === type) { + switch (this.stream.GetUChar()) { + case st_errbartypeBOTH: val.m_val = ERR_BAR_TYPE_BOTH; break; + case st_errbartypeMINUS: val.m_val = ERR_BAR_TYPE_MINUS; break; + case st_errbartypePLUS: val.m_val = ERR_BAR_TYPE_PLUS; break; + } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_BuiltInUnit = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_ErrValType = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_builtinunitVAL === type) { + if (c_oserct_errvaltypeVAL === type) { switch (this.stream.GetUChar()) { - case st_builtinunitHUNDREDS: val.m_val = c_oAscValAxUnits.HUNDREDS; break; - case st_builtinunitTHOUSANDS: val.m_val = c_oAscValAxUnits.THOUSANDS; break; - case st_builtinunitTENTHOUSANDS: val.m_val = c_oAscValAxUnits.TEN_THOUSANDS; break; - case st_builtinunitHUNDREDTHOUSANDS: val.m_val = c_oAscValAxUnits.HUNDRED_THOUSANDS; break; - case st_builtinunitMILLIONS: val.m_val = c_oAscValAxUnits.MILLIONS; break; - case st_builtinunitTENMILLIONS: val.m_val = c_oAscValAxUnits.TEN_MILLIONS; break; - case st_builtinunitHUNDREDMILLIONS: val.m_val = c_oAscValAxUnits.HUNDRED_MILLIONS; break; - case st_builtinunitBILLIONS: val.m_val = c_oAscValAxUnits.BILLIONS; break; - case st_builtinunitTRILLIONS: val.m_val = c_oAscValAxUnits.TRILLIONS; break; + case st_errvaltypeCUST: val.m_val = ERR_VAL_TYPE_CUST; break; + case st_errvaltypeFIXEDVAL: val.m_val = ERR_VAL_TYPE_FIXED_VAL; break; + case st_errvaltypePERCENTAGE: val.m_val = ERR_VAL_TYPE_PERCENTAGE; break; + case st_errvaltypeSTDDEV: val.m_val = ERR_VAL_TYPE_STD_DEV; break; + case st_errvaltypeSTDERR: val.m_val = ERR_VAL_TYPE_STD_ERR; break; } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DispUnits = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_NumDataSource = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_dispunitsBUILTINUNIT === type) { - var oNewVal = { m_val: null }; + if (c_oserct_numdatasourceNUMLIT === type) { + var oNewVal = new AscFormat.CNumLit(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BuiltInUnit(t, l, oNewVal); + return oThis.ReadCT_NumData(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setBuiltInUnit(oNewVal.m_val); + val.setNumLit(oNewVal); } - else if (c_oserct_dispunitsCUSTUNIT === type) { + else if (c_oserct_numdatasourceNUMREF === type) { + var oNewVal = new AscFormat.CNumRef(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_NumRef(t, l, oNewVal); + }); + val.setNumRef(oNewVal); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_NumData = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_numdataFORMATCODE === type) { + val.setFormatCode(this.stream.GetString2LE(length)); + } + else if (c_oserct_numdataPTCOUNT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setCustUnit(oNewVal.m_val); + val.setPtCount(oNewVal.m_val); } - else if (c_oserct_dispunitsDISPUNITSLBL === type) { - var oNewVal = new AscFormat.CDLbl(); + else if (c_oserct_numdataPT === type) { + var oNewVal = new AscFormat.CNumericPoint(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DispUnitsLbl(t, l, oNewVal); + return oThis.ReadCT_NumVal(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setDispUnitsLbl(oNewVal); + val.addPt(oNewVal); } - else if (c_oserct_dispunitsEXTLST === type) { + else if (c_oserct_numdataEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -8053,192 +10533,227 @@ BinaryChartReader.prototype.ReadCT_DispUnits = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_CrossBetween = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_NumVal = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_crossbetweenVAL === type) { - switch (this.stream.GetUChar()) { - case st_crossbetweenBETWEEN: val.m_val = AscFormat.CROSS_BETWEEN_BETWEEN; break; - case st_crossbetweenMIDCAT: val.m_val = AscFormat.CROSS_BETWEEN_MID_CAT; break; - } + if (c_oserct_numvalV === type) { + var nVal = parseFloat(this.stream.GetString2LE(length)); + if(isNaN(nVal)) + nVal = 0; + val.setVal(nVal); + } + else if (c_oserct_numvalIDX === type) { + val.setIdx(this.stream.GetULongLE()); + } + else if (c_oserct_numvalFORMATCODE === type) { + val.setFormatCode(this.stream.GetString2LE(length)); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_ValAx = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_NumRef = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_valaxAXID === type) { - var oNewVal = { m_val: null }; + if (c_oserct_numrefF === type) { + val.setF(this.stream.GetString2LE(length)); + } + else if (c_oserct_numrefNUMCACHE === type) { + var oNewVal = new AscFormat.CNumLit(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_NumData(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setAxId(oNewVal.m_val); + val.setNumCache(oNewVal); } - else if (c_oserct_valaxSCALING === type) { - var oNewVal = new AscFormat.CScaling(); + else if (c_oserct_numrefEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Scaling(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - val.setScaling(oNewVal); + // val.m_extLst = oNewVal; } - else if (c_oserct_valaxDELETE === type) { - var oNewVal = { m_val: null }; + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_AxDataSource = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_axdatasourceMULTILVLSTRREF === type) { + var oNewVal = new AscFormat.CMultiLvlStrRef(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_MultiLvlStrRef(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setDelete(oNewVal.m_val); - else - val.setDelete(true); + val.setMultiLvlStrRef(oNewVal); } - else if (c_oserct_valaxAXPOS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_axdatasourceNUMLIT === type) { + var oNewVal = new AscFormat.CNumLit(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxPos(t, l, oNewVal); + return oThis.ReadCT_NumData(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setAxPos(oNewVal.m_val); + val.setNumLit(oNewVal); } - else if (c_oserct_valaxMAJORGRIDLINES === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_axdatasourceNUMREF === type) { + var oNewVal = new AscFormat.CNumRef(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_NumRef(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setMajorGridlines(oNewVal.spPr); - else - val.setMajorGridlines(new AscFormat.CSpPr()); + val.setNumRef(oNewVal); } - else if (c_oserct_valaxMINORGRIDLINES === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_axdatasourceSTRLIT === type) { + var oNewVal = new AscFormat.CStrCache(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_StrData(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setMinorGridlines(oNewVal.spPr); - else - val.setMinorGridlines(new AscFormat.CSpPr()); + val.setStrLit(oNewVal); } - else if (c_oserct_valaxTITLE === type) { - var oNewVal = new AscFormat.CTitle(); + else if (c_oserct_axdatasourceSTRREF === type) { + var oNewVal = new AscFormat.CStrRef(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Title(t, l, oNewVal); + return oThis.ReadCT_StrRef(t, l, oNewVal); }); - if(!AscFormat.isRealBool(oNewVal.overlay)) - { - oNewVal.setOverlay(true); - } - val.setTitle(oNewVal); + val.setStrRef(oNewVal); } - else if (c_oserct_valaxNUMFMT === type) { - var oNewVal = new AscFormat.CNumFmt(); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_MultiLvlStrRef = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_multilvlstrrefF === type) { + val.setF(this.stream.GetString2LE(length)); + } + else if (c_oserct_multilvlstrrefMULTILVLSTRCACHE === type) { + var oNewVal = new AscFormat.CMultiLvlStrCache(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_MultiLvlStrData(t, l, oNewVal); + }); + val.setMultiLvlStrCache(oNewVal); + } + else if (c_oserct_multilvlstrrefEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_lvl = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_lvlPT === type) { + var oNewVal = new AscFormat.CStringPoint(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumFmt(t, l, oNewVal); + return oThis.ReadCT_StrVal(t, l, oNewVal); }); - val.setNumFmt(oNewVal); + val.addPt(oNewVal); } - else if (c_oserct_valaxMAJORTICKMARK === type) { + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_MultiLvlStrData = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_multilvlstrdataPTCOUNT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickMark(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setMajorTickMark(oNewVal.m_val); - else{ - val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); - } + val.setPtCount(oNewVal.m_val); } - else if (c_oserct_valaxMINORTICKMARK === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_multilvlstrdataLVL === type) { + var oNewVal = new AscFormat.CStrCache(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickMark(t, l, oNewVal); + return oThis.ReadCT_lvl(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setMinorTickMark(oNewVal.m_val); - else{ - val.setMajorTickMark(c_oAscTickMark.TICK_MARK_CROSS); - } + val.addLvl(oNewVal); } - else if (c_oserct_valaxTICKLBLPOS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_multilvlstrdataEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TickLblPos(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setTickLblPos(oNewVal.m_val); - } - else if (c_oserct_valaxSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); - } - else if (c_oserct_valaxTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + // val.m_extLst = oNewVal; } - else if (c_oserct_valaxCROSSAX === type) { + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_BubbleChart = function (type, length, val, aChartWithAxis) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_bubblechartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - { - val.crossAxId = oNewVal.m_val; - } + val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_valaxCROSSES === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_bubblechartSER === type) { + var oNewVal = new AscFormat.CBubbleSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Crosses(t, l, oNewVal); + return oThis.ReadCT_BubbleSer(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setCrosses(oNewVal.m_val); - else - val.setCrosses(AscFormat.CROSSES_AUTO_ZERO); + val.addSer(oNewVal); } - else if (c_oserct_valaxCROSSESAT === type) { + else if (c_oserct_bubblechartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); + } + else if (c_oserct_bubblechartBUBBLE3D === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setCrossesAt(oNewVal.m_val); + val.setBubble3D(oNewVal.m_val); } - else if (c_oserct_valaxCROSSBETWEEN === type) { + else if (c_oserct_bubblechartBUBBLESCALE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_CrossBetween(t, l, oNewVal); + return oThis.ReadCT_BubbleScale(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setCrossBetween(oNewVal.m_val); + val.setBubbleScale(oNewVal.m_val); } - else if (c_oserct_valaxMAJORUNIT === type) { + else if (c_oserct_bubblechartSHOWNEGBUBBLES === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxisUnit(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setMajorUnit(oNewVal.m_val); + val.setShowNegBubbles(oNewVal.m_val); } - else if (c_oserct_valaxMINORUNIT === type) { + else if (c_oserct_bubblechartSIZEREPRESENTS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxisUnit(t, l, oNewVal); + return oThis.ReadCT_SizeRepresents(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setMinorUnit(oNewVal.m_val); + val.setSizeRepresents(oNewVal.m_val); } - else if (c_oserct_valaxDISPUNITS === type) { - var oNewVal = new AscFormat.CDispUnits(); + else if (c_oserct_bubblechartAXID === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DispUnits(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); - val.setDispUnits(oNewVal); + if (null != oNewVal.m_val) + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); } - else if (c_oserct_valaxEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_bubblechartEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); @@ -8248,33 +10763,66 @@ BinaryChartReader.prototype.ReadCT_ValAx = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_SizeRepresents = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_bandFmts = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_sizerepresentsVAL === type) { - switch (this.stream.GetUChar()) { - case st_sizerepresentsAREA: val.m_val = SIZE_REPRESENTS_AREA; break; - case st_sizerepresentsW: val.m_val = SIZE_REPRESENTS_W; break; - } + if (c_oserct_bandfmtsBANDFMT === type) { + var oNewVal = new AscFormat.CBandFmt(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_BandFmt(t, l, oNewVal); + }); + val.addBandFmt(oNewVal); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_BubbleScale = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Surface3DChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_bubblescaleVAL === type) { - val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); + if (c_oserct_surface3dchartWIREFRAME === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setWireframe(oNewVal.m_val); + } + else if (c_oserct_surface3dchartSER === type) { + var oNewVal = new AscFormat.CSurfaceSeries(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_SurfaceSer(t, l, oNewVal); + }); + val.addSer(oNewVal); + } + else if (c_oserct_surface3dchartBANDFMTS === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_bandFmts(t, l, val); + }); + } + else if (c_oserct_surface3dchartAXID === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val, surface: true }); + } + else if (c_oserct_surface3dchartEXTLST === type) { + var oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_BubbleSer = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_SurfaceSer = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_bubbleserIDX === type) { + if (c_oserct_surfaceserIDX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -8282,7 +10830,7 @@ BinaryChartReader.prototype.ReadCT_BubbleSer = function (type, length, val) { if (null != oNewVal.m_val) val.setIdx(oNewVal.m_val); } - else if (c_oserct_bubbleserORDER === type) { + else if (c_oserct_surfaceserORDER === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -8290,84 +10838,96 @@ BinaryChartReader.prototype.ReadCT_BubbleSer = function (type, length, val) { if (null != oNewVal.m_val) val.setOrder(oNewVal.m_val); } - else if (c_oserct_bubbleserTX === type) { + else if (c_oserct_surfaceserTX === type) { var oNewVal = new AscFormat.CTx(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_SerTx(t, l, oNewVal); }); val.setTx(oNewVal); } - else if (c_oserct_bubbleserSPPR === type) { + else if (c_oserct_surfaceserSPPR === type) { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_bubbleserINVERTIFNEGATIVE === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_surfaceserCAT === type) { + var oNewVal = new AscFormat.CCat(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_AxDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setInvertIfNegative(oNewVal.m_val); + val.setCat(oNewVal); } - else if (c_oserct_bubbleserDPT === type) { - var oNewVal = new AscFormat.CDPt(); + else if (c_oserct_surfaceserVAL === type) { + var oNewVal = new AscFormat.CYVal(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DPt(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - val.addDPt(oNewVal); + val.setVal(oNewVal); } - else if (c_oserct_bubbleserDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_surfaceserEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + // val.m_extLst = oNewVal; } - else if (c_oserct_bubbleserTRENDLINE === type) { - //todo array - var oNewVal = new AscFormat.CTrendLine(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Trendline(t, l, oNewVal); - }); - val.setTrendline(oNewVal); + else if(c_oserct_chartFiltering === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartFiltering(t, l, val); + }); } - else if (c_oserct_bubbleserERRBARS === type) { - var oNewVal = new AscFormat.CErrBars(); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_BandFmt = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_bandfmtIDX === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ErrBars(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); - val.addErrBars(oNewVal); + if (null != oNewVal.m_val) + val.setIdx(oNewVal.m_val); } - else if (c_oserct_bubbleserXVAL === type) { - var oNewVal = new AscFormat.CCat(); + else if (c_oserct_bandfmtSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_SurfaceChart = function (type, length, val, aChartWithAxis) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_surfacechartWIREFRAME === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxDataSource(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setXVal(oNewVal); + if (null != oNewVal.m_val) + val.setWireframe(oNewVal.m_val); } - else if (c_oserct_bubbleserYVAL === type) { - var oNewVal = new AscFormat.CYVal(); + else if (c_oserct_surfacechartSER === type) { + var oNewVal = new AscFormat.CSurfaceSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_SurfaceSer(t, l, oNewVal); }); - val.setYVal(oNewVal); + val.addSer(oNewVal); } - else if (c_oserct_bubbleserBUBBLESIZE === type) { - var oNewVal = new AscFormat.CYVal(); + else if (c_oserct_surfacechartBANDFMTS === type) { res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_bandFmts(t, l, val); }); - val.setBubbleSize(oNewVal); } - else if (c_oserct_bubbleserBUBBLE3D === type) { + else if (c_oserct_surfacechartAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setBubble3D(oNewVal.m_val); + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val, surface: true }); } - else if (c_oserct_bubbleserEXTLST === type) { + else if (c_oserct_surfacechartEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -8375,85 +10935,146 @@ BinaryChartReader.prototype.ReadCT_BubbleSer = function (type, length, val) { }); // val.m_extLst = oNewVal; } - else if(c_oserct_chartFiltering === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartFiltering(t, l, val); - }); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_SecondPieSize = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_secondpiesizeVAL === type) { + val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_SerTx = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_SplitType = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_sertxSTRREF === type) { - var oNewVal = new AscFormat.CStrRef(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StrRef(t, l, oNewVal); - }); - val.setStrRef(oNewVal); + if (c_oserct_splittypeVAL === type) { + switch (this.stream.GetUChar()) { + case st_splittypeAUTO: val.m_val = SPLIT_TYPE_AUTO; break; + case st_splittypeCUST: val.m_val = SPLIT_TYPE_CUST; break; + case st_splittypePERCENT: val.m_val = SPLIT_TYPE_PERCENT; break; + case st_splittypePOS: val.m_val = SPLIT_TYPE_POS; break; + case st_splittypeVAL: val.m_val = SPLIT_TYPE_VAL; break; + } } - else if (c_oserct_sertxV === type) { - val.setVal(this.stream.GetString2LE(length)); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_OfPieType = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_ofpietypeVAL === type) { + switch (this.stream.GetUChar()) { + case st_ofpietypePIE: val.m_val = OF_PIE_TYPE_PIE; break; + case st_ofpietypeBAR: val.m_val = OF_PIE_TYPE_BAR; break; + } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DPt = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_custSplit = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_dptIDX === type) { + if (c_oserct_custsplitSECONDPIEPT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); + val.addCustSplit(oNewVal.m_val); } - else if (c_oserct_dptINVERTIFNEGATIVE === type) { + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_OfPieChart = function (type, length, val, aChartWithAxis) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_ofpiechartOFPIETYPE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_OfPieType(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setOfPieType(oNewVal.m_val); + } + else if (c_oserct_ofpiechartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setInvertIfNegative(oNewVal.m_val); + val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_dptMARKER === type) { - var oNewVal = new AscFormat.CMarker(); + else if (c_oserct_ofpiechartSER === type) { + var oNewVal = new AscFormat.CPieSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Marker(t, l, oNewVal); + return oThis.ReadCT_PieSer(t, l, oNewVal); }); - val.setMarker(oNewVal); + val.addSer(oNewVal); } - else if (c_oserct_dptBUBBLE3D === type) { + else if (c_oserct_ofpiechartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); + } + else if (c_oserct_ofpiechartGAPWIDTH === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_GapAmount(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setBubble3D(oNewVal.m_val); + val.setGapWidth(oNewVal.m_val); } - else if (c_oserct_dptEXPLOSION === type) { + else if (c_oserct_ofpiechartSPLITTYPE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_SplitType(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setExplosion(oNewVal.m_val); + val.setSplitType(oNewVal.m_val) } - else if (c_oserct_dptSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + else if (c_oserct_ofpiechartSPLITPOS === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Double(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setSplitPos(oNewVal.m_val); } - else if (c_oserct_dptPICTUREOPTIONS === type) { - var oNewVal = new AscFormat.CPictureOptions(); + else if (c_oserct_ofpiechartCUSTSPLIT === type) { res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PictureOptions(t, l, oNewVal); + return oThis.ReadCT_custSplit(t, l, val); }); - val.setPictureOptions(oNewVal); } - else if (c_oserct_dptEXTLST === type) { + else if (c_oserct_ofpiechartSECONDPIESIZE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_SecondPieSize(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setSecondPieSize(oNewVal.m_val); + } + else if (c_oserct_ofpiechartSERLINES === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setSerLines(oNewVal.spPr); + else + val.setSerLines(new AscFormat.CSpPr()); + } + else if (c_oserct_ofpiechartEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -8465,280 +11086,174 @@ BinaryChartReader.prototype.ReadCT_DPt = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_Marker = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_PieSer = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_markerSYMBOL === type) { + if (c_oserct_pieserIDX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_MarkerStyle(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setSymbol(oNewVal.m_val); + val.setIdx(oNewVal.m_val); } - else if (c_oserct_markerSIZE === type) { + else if (c_oserct_pieserORDER === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_MarkerSize(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setSize(oNewVal.m_val); - } - else if (c_oserct_markerSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + val.setOrder(oNewVal.m_val); } - else if (c_oserct_markerEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_pieserTX === type) { + var oNewVal = new AscFormat.CTx(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_SerTx(t, l, oNewVal); }); - // val.m_extLst = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.MarkerStyleToFormat = function(markerStyle) { - - var val = null; - switch (markerStyle) { - case st_markerstyleCIRCLE: val = AscFormat.SYMBOL_CIRCLE; break; - case st_markerstyleDASH: val = AscFormat.SYMBOL_DASH; break; - case st_markerstyleDIAMOND: val = AscFormat.SYMBOL_DIAMOND; break; - case st_markerstyleDOT: val = AscFormat.SYMBOL_DOT; break; - case st_markerstyleNONE: val = AscFormat.SYMBOL_NONE; break; - case st_markerstylePICTURE: val = AscFormat.SYMBOL_PICTURE; break; - case st_markerstylePLUS: val = AscFormat.SYMBOL_PLUS; break; - case st_markerstyleSQUARE: val = AscFormat.SYMBOL_SQUARE; break; - case st_markerstyleSTAR: val = AscFormat.SYMBOL_STAR; break; - case st_markerstyleTRIANGLE: val = AscFormat.SYMBOL_TRIANGLE; break; - case st_markerstyleX: val = AscFormat.SYMBOL_X; break; - case st_markerstyleAUTO: break; - } - return val; -}; -BinaryChartReader.prototype.ReadCT_MarkerStyle = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - if (c_oserct_markerstyleVAL === type) { - val.m_val = this.MarkerStyleToFormat(this.stream.GetUChar()); + val.setTx(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_MarkerSize = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_markersizeVAL === type) { - var oNewVal; - oNewVal = this.stream.GetUChar(); - val.m_val = oNewVal; + else if (c_oserct_pieserSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_PictureOptions = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_pictureoptionsAPPLYTOFRONT === type) { + else if (c_oserct_pieserEXPLOSION === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setApplyToFront(oNewVal.m_val); + val.setExplosion(oNewVal.m_val); } - else if (c_oserct_pictureoptionsAPPLYTOSIDES === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_pieserDPT === type) { + var oNewVal = new AscFormat.CDPt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_DPt(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setApplyToSides(oNewVal.m_val); + val.addDPt(oNewVal); } - else if (c_oserct_pictureoptionsAPPLYTOEND === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_pieserDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); + } + else if (c_oserct_pieserCAT === type) { + var oNewVal = new AscFormat.CCat(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_AxDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setApplyToEnd(oNewVal.m_val); + val.setCat(oNewVal); } - else if (c_oserct_pictureoptionsPICTUREFORMAT === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_pieserVAL === type) { + var oNewVal = new AscFormat.CYVal(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PictureFormat(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setPictureFormat(oNewVal.m_val); + val.setVal(oNewVal); } - else if (c_oserct_pictureoptionsPICTURESTACKUNIT === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_pieserEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PictureStackUnit(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setPictureStackUnit(oNewVal.m_val); + // val.m_extLst = oNewVal; } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_PictureFormat = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_pictureformatVAL === type) { - switch (this.stream.GetUChar()) { - case st_pictureformatSTRETCH: val.m_val = PICTURE_FORMAT_STACK_STRETCH; break; - case st_pictureformatSTACK: val.m_val = PICTURE_FORMAT_STACK; break; - case st_pictureformatSTACKSCALE: val.m_val = PICTURE_FORMAT_STACK_SCALE; break; - } + else if(c_oserct_chartFiltering === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartFiltering(t, l, val); + }); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_PictureStackUnit = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_GapAmount = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_picturestackunitVAL === type) { - var oNewVal; - oNewVal = this.stream.GetDoubleLE(); - val.m_val = oNewVal; + if (c_oserct_gapamountVAL === type) { + val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DLbls = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Bar3DChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_dlblsDLBL === type) { - var oNewVal = new AscFormat.CDLbl(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbl(t, l, oNewVal); - }); - oNewVal.correctValues(); - val.addDLbl(oNewVal); - } - else if (c_oserct_dlblsDLBLPOS === type) { + if (c_oserct_bar3dchartBARDIR === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLblPos(t, l, oNewVal); + return oThis.ReadCT_BarDir(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setDLblPos(oNewVal.m_val); + val.setBarDir(oNewVal.m_val); } - else if (c_oserct_dlblsDELETE === type) { + else if (c_oserct_bar3dchartGROUPING === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_BarGrouping(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setDelete(oNewVal.m_val); - else - val.setDelete(true); - } - else if (c_oserct_dlblsLEADERLINES === type) { - var oNewVal = { spPr: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); - }); - if (null != oNewVal.spPr) - val.setLeaderLines(oNewVal.spPr); - else - val.setLeaderLines(new AscFormat.CSpPr()); - } - else if (c_oserct_dlblsNUMFMT === type) { - var oNewVal = new AscFormat.CNumFmt(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumFmt(t, l, oNewVal); - }); - val.setNumFmt(oNewVal); - } - else if (c_oserct_dlblsSEPARATOR === type) { - val.setSeparator(this.stream.GetString2LE(length)); + val.setGrouping(oNewVal.m_val); } - else if (c_oserct_dlblsSHOWBUBBLESIZE === type) { + else if (c_oserct_bar3dchartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setShowBubbleSize(oNewVal.m_val); - else - val.setShowBubbleSize(true); + val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_dlblsSHOWCATNAME === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_bar3dchartSER === type) { + var oNewVal = new AscFormat.CBarSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_BarSer(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowCatName(oNewVal.m_val); - else - val.setShowCatName(true); + val.addSer(oNewVal); } - else if (c_oserct_dlblsSHOWLEADERLINES === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_bar3dchartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_DLbls(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowLeaderLines(oNewVal.m_val); - else - val.setShowLeaderLines(true); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else if (c_oserct_dlblsSHOWLEGENDKEY === type) { + else if (c_oserct_bar3dchartGAPWIDTH === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_GapAmount(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setShowLegendKey(oNewVal.m_val); - else - val.setShowLegendKey(true); + val.setGapWidth(oNewVal.m_val); } - else if (c_oserct_dlblsSHOWPERCENT === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_bar3dchartGAPDEPTH === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_GapAmount(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowPercent(oNewVal.m_val); - else - val.setShowPercent(true); + if(null != oNewVal.m_val) + val.setGapDepth(oNewVal.m_val); } - else if (c_oserct_dlblsSHOWSERNAME === type) { + else if (c_oserct_bar3dchartSHAPE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Shape(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowSerName(oNewVal.m_val); - else - val.setShowSerName(true); + if(null != oNewVal.m_val) + val.setShape(oNewVal.m_val); } - else if (c_oserct_dlblsSHOWVAL === type) { + else if (c_oserct_bar3dchartAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setShowVal(oNewVal.m_val); - else - val.setShowVal(true); - } - else if (c_oserct_dlblsSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); - } - else if (c_oserct_dlblsTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); } - else if (c_oserct_dlblsEXTLST === type) { + else if (c_oserct_bar3dchartEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -8750,10 +11265,38 @@ BinaryChartReader.prototype.ReadCT_DLbls = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DLbl = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_BarDir = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_dlblIDX === type) { + if (c_oserct_bardirVAL === type) { + switch (this.stream.GetUChar()) { + case st_bardirBAR: val.m_val = AscFormat.BAR_DIR_BAR; break; + case st_bardirCOL: val.m_val = AscFormat.BAR_DIR_COL; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_BarGrouping = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_bargroupingVAL === type) { + switch (this.stream.GetUChar()) { + case st_bargroupingPERCENTSTACKED: val.m_val = AscFormat.BAR_GROUPING_PERCENT_STACKED; break; + case st_bargroupingCLUSTERED: val.m_val = AscFormat.BAR_GROUPING_CLUSTERED; break; + case st_bargroupingSTANDARD: val.m_val = AscFormat.BAR_GROUPING_STANDARD; break; + case st_bargroupingSTACKED: val.m_val = AscFormat.BAR_GROUPING_STACKED; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_BarSer = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_barserIDX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -8761,252 +11304,308 @@ BinaryChartReader.prototype.ReadCT_DLbl = function (type, length, val) { if (null != oNewVal.m_val) val.setIdx(oNewVal.m_val); } - else if (c_oserct_dlblDLBLPOS === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLblPos(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setDLblPos(oNewVal.m_val); - } - else if (c_oserct_dlblDELETE === type) { + else if (c_oserct_barserORDER === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setDelete(oNewVal.m_val); - else - val.setDelete(true); - } - else if (c_oserct_dlblLAYOUT === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Layout(t, l, val); - }); - } - else if (c_oserct_dlblNUMFMT === type) { - var oNewVal = new AscFormat.CNumFmt(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumFmt(t, l, oNewVal); - }); - val.setNumFmt(oNewVal); - } - else if (c_oserct_dlblSEPARATOR === type) { - val.setSeparator(this.stream.GetString2LE(length)); + val.setOrder(oNewVal.m_val); } - else if (c_oserct_dlblSHOWBUBBLESIZE === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_barserTX === type) { + var oNewVal = new AscFormat.CTx(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_SerTx(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowBubbleSize(oNewVal.m_val); - else - val.setShowBubbleSize(true); + val.setTx(oNewVal); } - else if (c_oserct_dlblSHOWCATNAME === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setShowCatName(oNewVal.m_val); - else - val.setShowCatName(true); + else if (c_oserct_barserSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_dlblSHOWLEGENDKEY === type) { + else if (c_oserct_barserINVERTIFNEGATIVE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setShowLegendKey(oNewVal.m_val); - else - val.setShowLegendKey(true); + val.setInvertIfNegative(oNewVal.m_val); } - else if (c_oserct_dlblSHOWPERCENT === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_barserPICTUREOPTIONS === type) { + var oNewVal = new AscFormat.CPictureOptions(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_PictureOptions(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowPercent(oNewVal.m_val); - else - val.setShowPercent(true); + val.setPictureOptions(oNewVal); } - else if (c_oserct_dlblSHOWSERNAME === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_barserDPT === type) { + var oNewVal = new AscFormat.CDPt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_DPt(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowSerName(oNewVal.m_val); - else - val.setShowSerName(true); + val.addDPt(oNewVal); } - else if (c_oserct_dlblSHOWVAL === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_barserDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_DLbls(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowVal(oNewVal.m_val); - else - val.setShowVal(true); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else if (c_oserct_dlblSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + else if (c_oserct_barserTRENDLINE === type) { + //todo array + var oNewVal = new AscFormat.CTrendLine(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Trendline(t, l, oNewVal); + }); + val.setTrendline(oNewVal); } - else if (c_oserct_dlblTX === type) { - var oNewVal = new AscFormat.CChartText(); + else if (c_oserct_barserERRBARS === type) { + var oNewVal = new AscFormat.CErrBars(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Tx(t, l, oNewVal); + return oThis.ReadCT_ErrBars(t, l, oNewVal); }); - oNewVal.setChart(this.curChart); - val.setTx(oNewVal); + val.addErrBars(oNewVal); } - else if (c_oserct_dlblTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + else if (c_oserct_barserCAT === type) { + var oNewVal = new AscFormat.CCat(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_AxDataSource(t, l, oNewVal); + }); + val.setCat(oNewVal); } - else if (c_oserct_dlblEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_barserVAL === type) { + var oNewVal = new AscFormat.CYVal(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + val.setVal(oNewVal); } - else if (c_oserct_dataLabel === type) { + else if (c_oserct_barserSHAPE === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLblExt(t, l, val); + return oThis.ReadCT_Shape(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setShape(oNewVal.m_val); + } + else if (c_oserct_barserEXTLST === type) { + var oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); }); // val.m_extLst = oNewVal; } + else if(c_oserct_chartFiltering === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartFiltering(t, l, val); + }); + } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DLblExt = function(type, length, val) { - +BinaryChartReader.prototype.ReadCT_ChartFiltering = function(type, length, val) { let res = c_oSerConstants.ReadOk; let oThis = this; - if (c_oserct_showDataLabelsRange === type) { - let oNewVal = { m_val: null }; + if (c_oserct_dataLabelsRange === type) { + var oNewVal = new AscFormat.CStrRef(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_dataLabelsRange(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setShowDlblsRange(oNewVal.m_val); + val.setDataLabelsRange(oNewVal); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DLblPos = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_dataLabelsRange = function(type, length, val) { + let res = c_oSerConstants.ReadOk; + let oThis = this; + if (0 === type) { + val.setF(this.stream.GetString2LE(length)); + } + else if(1 === type) { + var oNewVal = new AscFormat.CStrCache(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_StrData(t, l, oNewVal); + }); + val.setStrCache(oNewVal); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Shape = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_dlblposVAL === type) { + if (c_oserct_shapeVAL === type) { switch (this.stream.GetUChar()) { - case st_dlblposBESTFIT: val.m_val = c_oAscChartDataLabelsPos.bestFit; break; - case st_dlblposB: val.m_val = c_oAscChartDataLabelsPos.b; break; - case st_dlblposCTR: val.m_val = c_oAscChartDataLabelsPos.ctr; break; - case st_dlblposINBASE: val.m_val = c_oAscChartDataLabelsPos.inBase; break; - case st_dlblposINEND: val.m_val = c_oAscChartDataLabelsPos.inEnd; break; - case st_dlblposL: val.m_val = c_oAscChartDataLabelsPos.l; break; - case st_dlblposOUTEND: val.m_val = c_oAscChartDataLabelsPos.outEnd; break; - case st_dlblposR: val.m_val = c_oAscChartDataLabelsPos.r; break; - case st_dlblposT: val.m_val = c_oAscChartDataLabelsPos.t; break; + case st_shapeCONE: val.m_val = AscFormat.BAR_SHAPE_CONE; break; + case st_shapeCONETOMAX: val.m_val = AscFormat.BAR_SHAPE_CONETOMAX; break; + case st_shapeBOX: val.m_val = AscFormat.BAR_SHAPE_BOX; break; + case st_shapeCYLINDER: val.m_val = AscFormat.BAR_SHAPE_CYLINDER; break; + case st_shapePYRAMID: val.m_val = AscFormat.BAR_SHAPE_PYRAMID; break; + case st_shapePYRAMIDTOMAX: val.m_val = AscFormat.BAR_SHAPE_PYRAMIDTOMAX; break; } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_Trendline = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Overlap = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_trendlineNAME === type) { - val.setName(this.stream.GetString2LE(length)); + if (c_oserct_overlapVAL === type) { + val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); } - else if (c_oserct_trendlineSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_BarChart = function (type, length, val, aChartWithAxis) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_barchartBARDIR === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_BarDir(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setBarDir(oNewVal.m_val); } - else if (c_oserct_trendlineTRENDLINETYPE === type) { + else if (c_oserct_barchartGROUPING === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TrendlineType(t, l, oNewVal); + return oThis.ReadCT_BarGrouping(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setTrendlineType(oNewVal.m_val); + val.setGrouping(oNewVal.m_val); } - else if (c_oserct_trendlineORDER === type) { + else if (c_oserct_barchartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Order(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setOrder(oNewVal.m_val); + val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_trendlinePERIOD === type) { + else if (c_oserct_barchartSER === type) { + var oNewVal = new AscFormat.CBarSeries(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_BarSer(t, l, oNewVal); + }); + val.addSer(oNewVal); + } + else if (c_oserct_barchartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); + } + else if (c_oserct_barchartGAPWIDTH === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Period(t, l, oNewVal); + return oThis.ReadCT_GapAmount(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setPeriod(oNewVal.m_val); + val.setGapWidth(oNewVal.m_val); } - else if (c_oserct_trendlineFORWARD === type) { + else if (c_oserct_barchartOVERLAP === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_Overlap(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setForward(oNewVal.m_val); + val.setOverlap(oNewVal.m_val); } - else if (c_oserct_trendlineBACKWARD === type) { + else if (c_oserct_barchartSERLINES === type) { + //todo array + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setSerLines(oNewVal.spPr); + else + val.setSerLines(new AscFormat.CSpPr()); + } + else if (c_oserct_barchartAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setBackward(oNewVal.m_val); + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); } - else if (c_oserct_trendlineINTERCEPT === type) { + else if (c_oserct_barchartEXTLST === type) { + var oNewVal; + oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_HoleSize = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_holesizeVAL === type) { + val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_DoughnutChart = function (type, length, val, aChartWithAxis) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_doughnutchartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setVaryColors(oNewVal.m_val); + } + else if (c_oserct_doughnutchartSER === type) { + var oNewVal = new AscFormat.CPieSeries(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_PieSer(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setIntercept(oNewVal.m_val); + val.addSer(oNewVal); } - else if (c_oserct_trendlineDISPRSQR === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_doughnutchartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_DLbls(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setDispRSqr(oNewVal.m_val); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else if (c_oserct_trendlineDISPEQ === type) { + else if (c_oserct_doughnutchartFIRSTSLICEANG === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_FirstSliceAng(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setDispEq(oNewVal.m_val); + val.setFirstSliceAng(oNewVal.m_val); } - else if (c_oserct_trendlineTRENDLINELBL === type) { - var oNewVal = new AscFormat.CDLbl(); + else if (c_oserct_doughnutchartHOLESIZE === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_TrendlineLbl(t, l, oNewVal); + return oThis.ReadCT_HoleSize(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setTrendlineLbl(oNewVal); + if (null != oNewVal.m_val) + val.setHoleSize(oNewVal.m_val); } - else if (c_oserct_trendlineEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_doughnutchartEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); @@ -9016,39 +11615,10 @@ BinaryChartReader.prototype.ReadCT_Trendline = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_TrendlineType = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_trendlinetypeVAL === type) { - switch (this.stream.GetUChar()) { - case st_trendlinetypeEXP: val.m_val = TRENDLINE_TYPE_EXP; break; - case st_trendlinetypeLINEAR: val.m_val = TRENDLINE_TYPE_LINEAR; break; - case st_trendlinetypeLOG: val.m_val = TRENDLINE_TYPE_LOG; break; - case st_trendlinetypeMOVINGAVG: val.m_val = TRENDLINE_TYPE_MOVING_AVG; break; - case st_trendlinetypePOLY: val.m_val = TRENDLINE_TYPE_POLY; break; - case st_trendlinetypePOWER: val.m_val = TRENDLINE_TYPE_POWER; break; - } - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Order = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_orderVAL === type) { - var oNewVal; - oNewVal = this.stream.GetUChar(); - val.m_val = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Period = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_FirstSliceAng = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_periodVAL === type) { + if (c_oserct_firstsliceangVAL === type) { var oNewVal; oNewVal = this.stream.GetULongLE(); val.m_val = oNewVal; @@ -9057,39 +11627,34 @@ BinaryChartReader.prototype.ReadCT_Period = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_TrendlineLbl = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Pie3DChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_trendlinelblLAYOUT === type) { + if (c_oserct_pie3dchartVARYCOLORS === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Layout(t, l, val); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); + if (null != oNewVal.m_val) + val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_trendlinelblTX === type) { - var oNewVal = new AscFormat.CChartText(); + else if (c_oserct_pie3dchartSER === type) { + var oNewVal = new AscFormat.CPieSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Tx(t, l, oNewVal); + return oThis.ReadCT_PieSer(t, l, oNewVal); }); - oNewVal.setChart(this.curChart); - val.setTx(oNewVal); + val.addSer(oNewVal); } - else if (c_oserct_trendlinelblNUMFMT === type) { - var oNewVal = new AscFormat.CNumFmt(); + else if (c_oserct_pie3dchartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumFmt(t, l, oNewVal); + return oThis.ReadCT_DLbls(t, l, oNewVal); }); - val.setNumFmt(oNewVal); - } - else if (c_oserct_trendlinelblSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); - } - else if (c_oserct_trendlinelblTXPR === type) { - val.setTxPr(this.ReadTxPr(length)); - val.txPr.setParent(val); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else if (c_oserct_trendlinelblEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_pie3dchartEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); @@ -9099,208 +11664,222 @@ BinaryChartReader.prototype.ReadCT_TrendlineLbl = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_ErrBars = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_PieChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_errbarsERRDIR === type) { + if (c_oserct_piechartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ErrDir(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setErrDir(oNewVal.m_val); + val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_errbarsERRBARTYPE === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_piechartSER === type) { + var oNewVal = new AscFormat.CPieSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ErrBarType(t, l, oNewVal); + return oThis.ReadCT_PieSer(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setErrBarType(oNewVal.m_val); + val.addSer(oNewVal); } - else if (c_oserct_errbarsERRVALTYPE === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_piechartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ErrValType(t, l, oNewVal); + return oThis.ReadCT_DLbls(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setErrValType(oNewVal.m_val); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else if (c_oserct_errbarsNOENDCAP === type) { + else if (c_oserct_piechartFIRSTSLICEANG === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_FirstSliceAng(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setNoEndCap(oNewVal.m_val); + val.setFirstSliceAng(oNewVal.m_val); } - else if (c_oserct_errbarsPLUS === type) { - var oNewVal = new AscFormat.CMinusPlus(); + else if (c_oserct_piechartEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_extLst(t, l, oNewVal); }); - val.setPlus(oNewVal); + // val.m_extLst = oNewVal; } - else if (c_oserct_errbarsMINUS === type) { - var oNewVal = new AscFormat.CMinusPlus(); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_ScatterSer = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_scatterserIDX === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); - val.setMinus(oNewVal); + if (null != oNewVal.m_val) + val.setIdx(oNewVal.m_val); } - else if (c_oserct_errbarsVAL === type) { + else if (c_oserct_scatterserORDER === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setVal(oNewVal.m_val); + val.setOrder(oNewVal.m_val); } - else if (c_oserct_errbarsSPPR === type) { + else if (c_oserct_scatterserTX === type) { + var oNewVal = new AscFormat.CTx(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_SerTx(t, l, oNewVal); + }); + val.setTx(oNewVal); + } + else if (c_oserct_scatterserSPPR === type) { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_errbarsEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_scatterserMARKER === type) { + var oNewVal = new AscFormat.CMarker(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_Marker(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + val.setMarker(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_ErrDir = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_errdirVAL === type) { - switch (this.stream.GetUChar()) { - case st_errdirX: val.m_val = ERR_DIR_X; break; - case st_errdirY: val.m_val = ERR_DIR_Y; break; - } + else if (c_oserct_scatterserDPT === type) { + var oNewVal = new AscFormat.CDPt(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DPt(t, l, oNewVal); + }); + val.addDPt(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_ErrBarType = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_errbartypeVAL === type) { - switch (this.stream.GetUChar()) { - case st_errbartypeBOTH: val.m_val = ERR_BAR_TYPE_BOTH; break; - case st_errbartypeMINUS: val.m_val = ERR_BAR_TYPE_MINUS; break; - case st_errbartypePLUS: val.m_val = ERR_BAR_TYPE_PLUS; break; - } + else if (c_oserct_scatterserDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_ErrValType = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_errvaltypeVAL === type) { - switch (this.stream.GetUChar()) { - case st_errvaltypeCUST: val.m_val = ERR_VAL_TYPE_CUST; break; - case st_errvaltypeFIXEDVAL: val.m_val = ERR_VAL_TYPE_FIXED_VAL; break; - case st_errvaltypePERCENTAGE: val.m_val = ERR_VAL_TYPE_PERCENTAGE; break; - case st_errvaltypeSTDDEV: val.m_val = ERR_VAL_TYPE_STD_DEV; break; - case st_errvaltypeSTDERR: val.m_val = ERR_VAL_TYPE_STD_ERR; break; - } + else if (c_oserct_scatterserTRENDLINE === type) { + //todo array + var oNewVal = new AscFormat.CTrendLine(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Trendline(t, l, oNewVal); + }); + val.setTrendline(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_NumDataSource = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_numdatasourceNUMLIT === type) { - var oNewVal = new AscFormat.CNumLit(); + else if (c_oserct_scatterserERRBARS === type) { + var oNewVal = new AscFormat.CErrBars(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumData(t, l, oNewVal); + return oThis.ReadCT_ErrBars(t, l, oNewVal); }); - val.setNumLit(oNewVal); + val.addErrBars(oNewVal); } - else if (c_oserct_numdatasourceNUMREF === type) { - var oNewVal = new AscFormat.CNumRef(); + else if (c_oserct_scatterserXVAL === type) { + var oNewVal = new AscFormat.CCat(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumRef(t, l, oNewVal); + return oThis.ReadCT_AxDataSource(t, l, oNewVal); }); - val.setNumRef(oNewVal); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_NumData = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_numdataFORMATCODE === type) { - val.setFormatCode(this.stream.GetString2LE(length)); + val.setXVal(oNewVal); } - else if (c_oserct_numdataPTCOUNT === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_scatterserYVAL === type) { + var oNewVal = new AscFormat.CYVal(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setPtCount(oNewVal.m_val); + val.setYVal(oNewVal); } - else if (c_oserct_numdataPT === type) { - var oNewVal = new AscFormat.CNumericPoint(); + else if (c_oserct_scatterserSMOOTH === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumVal(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.addPt(oNewVal); + if (null != oNewVal.m_val){ + val.setSmooth(oNewVal.m_val); + } + else{ + val.setSmooth(true); + } } - else if (c_oserct_numdataEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_scatterserEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); // val.m_extLst = oNewVal; } + else if(c_oserct_chartFiltering === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartFiltering(t, l, val); + }); + } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_NumVal = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_ScatterStyle = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_numvalV === type) { - var nVal = parseFloat(this.stream.GetString2LE(length)); - if(isNaN(nVal)) - nVal = 0; - val.setVal(nVal); - } - else if (c_oserct_numvalIDX === type) { - val.setIdx(this.stream.GetULongLE()); - } - else if (c_oserct_numvalFORMATCODE === type) { - val.setFormatCode(this.stream.GetString2LE(length)); + if (c_oserct_scatterstyleVAL === type) { + switch (this.stream.GetUChar()) { + case st_scatterstyleNONE: val.m_val = AscFormat.SCATTER_STYLE_NONE; break; + case st_scatterstyleLINE: val.m_val = AscFormat.SCATTER_STYLE_LINE; break; + case st_scatterstyleLINEMARKER: val.m_val = AscFormat.SCATTER_STYLE_LINE_MARKER; break; + case st_scatterstyleMARKER: val.m_val = AscFormat.SCATTER_STYLE_MARKER; break; + case st_scatterstyleSMOOTH: val.m_val = AscFormat.SCATTER_STYLE_SMOOTH; break; + case st_scatterstyleSMOOTHMARKER: val.m_val = AscFormat.SCATTER_STYLE_SMOOTH_MARKER; break; + } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_NumRef = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_ScatterChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_numrefF === type) { - val.setF(this.stream.GetString2LE(length)); + if (c_oserct_scatterchartSCATTERSTYLE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ScatterStyle(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setScatterStyle(oNewVal.m_val); } - else if (c_oserct_numrefNUMCACHE === type) { - var oNewVal = new AscFormat.CNumLit(); + else if (c_oserct_scatterchartVARYCOLORS === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumData(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setNumCache(oNewVal); + if (null != oNewVal.m_val) + val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_numrefEXTLST === type) { + else if (c_oserct_scatterchartSER === type) { + var oNewVal = new AscFormat.CScatterSeries(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ScatterSer(t, l, oNewVal); + }); + val.addSer(oNewVal); + if(oNewVal.smooth === null){ + oNewVal.setSmooth(false); + } + } + else if (c_oserct_scatterchartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); + } + else if (c_oserct_scatterchartAXID === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + } + else if (c_oserct_scatterchartEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); @@ -9311,62 +11890,72 @@ BinaryChartReader.prototype.ReadCT_NumRef = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_AxDataSource = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_RadarSer = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_axdatasourceMULTILVLSTRREF === type) { - var oNewVal = new AscFormat.CMultiLvlStrRef(); + if (c_oserct_radarserIDX === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_MultiLvlStrRef(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); - val.setMultiLvlStrRef(oNewVal); + if (null != oNewVal.m_val) + val.setIdx(oNewVal.m_val); } - else if (c_oserct_axdatasourceNUMLIT === type) { - var oNewVal = new AscFormat.CNumLit(); + else if (c_oserct_radarserORDER === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumData(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); - val.setNumLit(oNewVal); + if (null != oNewVal.m_val) + val.setOrder(oNewVal.m_val); } - else if (c_oserct_axdatasourceNUMREF === type) { - var oNewVal = new AscFormat.CNumRef(); + else if (c_oserct_radarserTX === type) { + var oNewVal = new AscFormat.CTx(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumRef(t, l, oNewVal); + return oThis.ReadCT_SerTx(t, l, oNewVal); }); - val.setNumRef(oNewVal); + val.setTx(oNewVal); } - else if (c_oserct_axdatasourceSTRLIT === type) { - var oNewVal = new AscFormat.CStrCache(); + else if (c_oserct_radarserSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_radarserMARKER === type) { + var oNewVal = new AscFormat.CMarker(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StrData(t, l, oNewVal); + return oThis.ReadCT_Marker(t, l, oNewVal); }); - val.setStrLit(oNewVal); + val.setMarker(oNewVal); } - else if (c_oserct_axdatasourceSTRREF === type) { - var oNewVal = new AscFormat.CStrRef(); + else if (c_oserct_radarserDPT === type) { + var oNewVal = new AscFormat.CDPt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StrRef(t, l, oNewVal); + return oThis.ReadCT_DPt(t, l, oNewVal); }); - val.setStrRef(oNewVal); + val.addDPt(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_MultiLvlStrRef = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_multilvlstrrefF === type) { - val.setF(this.stream.GetString2LE(length)); + else if (c_oserct_radarserDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else if (c_oserct_multilvlstrrefMULTILVLSTRCACHE === type) { - var oNewVal = new AscFormat.CMultiLvlStrCache(); + else if (c_oserct_radarserCAT === type) { + var oNewVal = new AscFormat.CCat(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_MultiLvlStrData(t, l, oNewVal); + return oThis.ReadCT_AxDataSource(t, l, oNewVal); }); - val.setMultiLvlStrCache(oNewVal); + val.setCat(oNewVal); } - else if (c_oserct_multilvlstrrefEXTLST === type) { + else if (c_oserct_radarserVAL === type) { + var oNewVal = new AscFormat.CYVal(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_NumDataSource(t, l, oNewVal); + }); + val.setVal(oNewVal); + } + else if (c_oserct_radarserEXTLST === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { @@ -9374,57 +11963,41 @@ BinaryChartReader.prototype.ReadCT_MultiLvlStrRef = function (type, length, val) }); // val.m_extLst = oNewVal; } + else if(c_oserct_chartFiltering === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartFiltering(t, l, val); + }); + } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_lvl = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_RadarStyle = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_lvlPT === type) { - var oNewVal = new AscFormat.CStringPoint(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StrVal(t, l, oNewVal); - }); - val.addPt(oNewVal); + if (c_oserct_radarstyleVAL === type) { + switch (this.stream.GetUChar()) { + case st_radarstyleSTANDARD: val.m_val = RADAR_STYLE_STANDARD; break; + case st_radarstyleMARKER: val.m_val = RADAR_STYLE_MARKER; break; + case st_radarstyleFILLED: val.m_val = RADAR_STYLE_FILLED; break; + } } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_MultiLvlStrData = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_RadarChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_multilvlstrdataPTCOUNT === type) { + if (c_oserct_radarchartRADARSTYLE === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setPtCount(oNewVal.m_val); - } - else if (c_oserct_multilvlstrdataLVL === type) { - var oNewVal = new AscFormat.CStrCache(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_lvl(t, l, oNewVal); - }); - val.addLvl(oNewVal); - } - else if (c_oserct_multilvlstrdataEXTLST === type) { - var oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); - }); - // val.m_extLst = oNewVal; - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_BubbleChart = function (type, length, val, aChartWithAxis) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_bubblechartVARYCOLORS === type) { + return oThis.ReadCT_RadarStyle(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setRadarStyle(oNewVal.m_val); + } + else if (c_oserct_radarchartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); @@ -9432,14 +12005,14 @@ BinaryChartReader.prototype.ReadCT_BubbleChart = function (type, length, val, aC if (null != oNewVal.m_val) val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_bubblechartSER === type) { - var oNewVal = new AscFormat.CBubbleSeries(); + else if (c_oserct_radarchartSER === type) { + var oNewVal = new AscFormat.CRadarSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BubbleSer(t, l, oNewVal); + return oThis.ReadCT_RadarSer(t, l, oNewVal); }); val.addSer(oNewVal); } - else if (c_oserct_bubblechartDLBLS === type) { + else if (c_oserct_radarchartDLBLS === type) { var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_DLbls(t, l, oNewVal); @@ -9447,39 +12020,7 @@ BinaryChartReader.prototype.ReadCT_BubbleChart = function (type, length, val, aC oNewVal.correctValues(); val.setDLbls(oNewVal); } - else if (c_oserct_bubblechartBUBBLE3D === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setBubble3D(oNewVal.m_val); - } - else if (c_oserct_bubblechartBUBBLESCALE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BubbleScale(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setBubbleScale(oNewVal.m_val); - } - else if (c_oserct_bubblechartSHOWNEGBUBBLES === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setShowNegBubbles(oNewVal.m_val); - } - else if (c_oserct_bubblechartSIZEREPRESENTS === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SizeRepresents(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setSizeRepresents(oNewVal.m_val); - } - else if (c_oserct_bubblechartAXID === type) { + else if (c_oserct_radarchartAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -9487,7 +12028,7 @@ BinaryChartReader.prototype.ReadCT_BubbleChart = function (type, length, val, aC if (null != oNewVal.m_val) aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); } - else if (c_oserct_bubblechartEXTLST === type) { + else if (c_oserct_radarchartEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); @@ -9498,52 +12039,60 @@ BinaryChartReader.prototype.ReadCT_BubbleChart = function (type, length, val, aC res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_bandFmts = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_StockChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_bandfmtsBANDFMT === type) { - var oNewVal = new AscFormat.CBandFmt(); + if (c_oserct_stockchartSER === type) { + var oNewVal = new AscFormat.CLineSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BandFmt(t, l, oNewVal); + return oThis.ReadCT_LineSer(t, l, oNewVal); }); - val.addBandFmt(oNewVal); + val.addSer(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Surface3DChart = function (type, length, val, aChartWithAxis) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_surface3dchartWIREFRAME === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_stockchartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_DLbls(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setWireframe(oNewVal.m_val); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else if (c_oserct_surface3dchartSER === type) { - var oNewVal = new AscFormat.CSurfaceSeries(); + else if (c_oserct_stockchartDROPLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SurfaceSer(t, l, oNewVal); + return oThis.ReadCT_ChartLines(t, l, oNewVal); }); - val.addSer(oNewVal); + if (null != oNewVal.spPr) + val.setDropLines(oNewVal.spPr); + else + val.setDropLines(new AscFormat.CSpPr()); } - else if (c_oserct_surface3dchartBANDFMTS === type) { + else if (c_oserct_stockchartHILOWLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_bandFmts(t, l, val); + return oThis.ReadCT_ChartLines(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setHiLowLines(oNewVal.spPr); + else + val.setHiLowLines(new AscFormat.CSpPr()); + } + else if (c_oserct_stockchartUPDOWNBARS === type) { + var oNewVal = new AscFormat.CUpDownBars(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UpDownBars(t, l, oNewVal); }); + val.setUpDownBars(oNewVal); } - else if (c_oserct_surface3dchartAXID === type) { + else if (c_oserct_stockchartAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val, surface: true }); + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); } - else if (c_oserct_surface3dchartEXTLST === type) { + else if (c_oserct_stockchartEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); @@ -9554,10 +12103,10 @@ BinaryChartReader.prototype.ReadCT_Surface3DChart = function (type, length, val, res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_SurfaceSer = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_LineSer = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_surfaceserIDX === type) { + if (c_oserct_lineserIDX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -9565,7 +12114,7 @@ BinaryChartReader.prototype.ReadCT_SurfaceSer = function (type, length, val) { if (null != oNewVal.m_val) val.setIdx(oNewVal.m_val); } - else if (c_oserct_surfaceserORDER === type) { + else if (c_oserct_lineserORDER === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -9573,173 +12122,159 @@ BinaryChartReader.prototype.ReadCT_SurfaceSer = function (type, length, val) { if (null != oNewVal.m_val) val.setOrder(oNewVal.m_val); } - else if (c_oserct_surfaceserTX === type) { + else if (c_oserct_lineserTX === type) { var oNewVal = new AscFormat.CTx(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_SerTx(t, l, oNewVal); }); val.setTx(oNewVal); } - else if (c_oserct_surfaceserSPPR === type) { + else if (c_oserct_lineserSPPR === type) { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_surfaceserCAT === type) { - var oNewVal = new AscFormat.CCat(); + else if (c_oserct_lineserMARKER === type) { + var oNewVal = new AscFormat.CMarker(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxDataSource(t, l, oNewVal); + return oThis.ReadCT_Marker(t, l, oNewVal); }); - val.setCat(oNewVal); + val.setMarker(oNewVal); } - else if (c_oserct_surfaceserVAL === type) { - var oNewVal = new AscFormat.CYVal(); + else if (c_oserct_lineserDPT === type) { + var oNewVal = new AscFormat.CDPt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_DPt(t, l, oNewVal); }); - val.setVal(oNewVal); + val.addDPt(oNewVal); } - else if (c_oserct_surfaceserEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_lineserDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_DLbls(t, l, oNewVal); }); - // val.m_extLst = oNewVal; - } - else if(c_oserct_chartFiltering === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartFiltering(t, l, val); - }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_BandFmt = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_bandfmtIDX === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_lineserTRENDLINE === type) { + //todo array + var oNewVal = new AscFormat.CTrendLine(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Trendline(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); - } - else if (c_oserct_bandfmtSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + val.setTrendline(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_SurfaceChart = function (type, length, val, aChartWithAxis) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_surfacechartWIREFRAME === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_lineserERRBARS === type) { + var oNewVal = new AscFormat.CErrBars(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_ErrBars(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setWireframe(oNewVal.m_val); + val.addErrBars(oNewVal); } - else if (c_oserct_surfacechartSER === type) { - var oNewVal = new AscFormat.CSurfaceSeries(); + else if (c_oserct_lineserCAT === type) { + var oNewVal = new AscFormat.CCat(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SurfaceSer(t, l, oNewVal); + return oThis.ReadCT_AxDataSource(t, l, oNewVal); }); - val.addSer(oNewVal); + val.setCat(oNewVal); } - else if (c_oserct_surfacechartBANDFMTS === type) { + else if (c_oserct_lineserVAL === type) { + var oNewVal = new AscFormat.CYVal(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_bandFmts(t, l, val); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); + val.setVal(oNewVal); } - else if (c_oserct_surfacechartAXID === type) { + else if (c_oserct_lineserSMOOTH === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val, surface: true }); + if (null != oNewVal.m_val) { + val.setSmooth(oNewVal.m_val); + } + else { + val.setSmooth(true); + } } - else if (c_oserct_surfacechartEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_lineserEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); // val.m_extLst = oNewVal; } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_SecondPieSize = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_secondpiesizeVAL === type) { - val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); + else if(c_oserct_chartFiltering === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartFiltering(t, l, val); + }); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_SplitType = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_UpDownBars = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_splittypeVAL === type) { - switch (this.stream.GetUChar()) { - case st_splittypeAUTO: val.m_val = SPLIT_TYPE_AUTO; break; - case st_splittypeCUST: val.m_val = SPLIT_TYPE_CUST; break; - case st_splittypePERCENT: val.m_val = SPLIT_TYPE_PERCENT; break; - case st_splittypePOS: val.m_val = SPLIT_TYPE_POS; break; - case st_splittypeVAL: val.m_val = SPLIT_TYPE_VAL; break; - } + if (c_oserct_updownbarsGAPWIDTH === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_GapAmount(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setGapWidth(oNewVal.m_val); + } + else if (c_oserct_updownbarsUPBARS === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UpDownBar(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setUpBars(oNewVal.spPr); + else + val.setUpBars(new AscFormat.CSpPr()); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_OfPieType = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_ofpietypeVAL === type) { - switch (this.stream.GetUChar()) { - case st_ofpietypePIE: val.m_val = OF_PIE_TYPE_PIE; break; - case st_ofpietypeBAR: val.m_val = OF_PIE_TYPE_BAR; break; - } + else if (c_oserct_updownbarsDOWNBARS === type) { + var oNewVal = { spPr: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UpDownBar(t, l, oNewVal); + }); + if (null != oNewVal.spPr) + val.setDownBars(oNewVal.spPr); + else + val.setDownBars(new AscFormat.CSpPr()); + } + else if (c_oserct_updownbarsEXTLST === type) { + var oNewVal = {}; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_extLst(t, l, oNewVal); + }); + // val.m_extLst = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_custSplit = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_UpDownBar = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_custsplitSECONDPIEPT === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.addCustSplit(oNewVal.m_val); + if (c_oserct_updownbarSPPR === type) { + val.spPr = this.ReadSpPr(length); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_OfPieChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_Line3DChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_ofpiechartOFPIETYPE === type) { + if (c_oserct_line3dchartGROUPING === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_OfPieType(t, l, oNewVal); + return oThis.ReadCT_Grouping(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setOfPieType(oNewVal.m_val); + val.setGrouping(oNewVal.m_val); } - else if (c_oserct_ofpiechartVARYCOLORS === type) { + else if (c_oserct_line3dchartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); @@ -9747,14 +12282,17 @@ BinaryChartReader.prototype.ReadCT_OfPieChart = function (type, length, val, aCh if (null != oNewVal.m_val) val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_ofpiechartSER === type) { - var oNewVal = new AscFormat.CPieSeries(); + else if (c_oserct_line3dchartSER === type) { + var oNewVal = new AscFormat.CLineSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PieSer(t, l, oNewVal); + return oThis.ReadCT_LineSer(t, l, oNewVal); }); + if(oNewVal.smooth === null){ + oNewVal.setSmooth(false); + } val.addSer(oNewVal); } - else if (c_oserct_ofpiechartDLBLS === type) { + else if (c_oserct_line3dchartDLBLS === type) { var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_DLbls(t, l, oNewVal); @@ -9762,56 +12300,34 @@ BinaryChartReader.prototype.ReadCT_OfPieChart = function (type, length, val, aCh oNewVal.correctValues(); val.setDLbls(oNewVal); } - else if (c_oserct_ofpiechartGAPWIDTH === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_GapAmount(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setGapWidth(oNewVal.m_val); - } - else if (c_oserct_ofpiechartSPLITTYPE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SplitType(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setSplitType(oNewVal.m_val) - } - else if (c_oserct_ofpiechartSPLITPOS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_line3dchartDROPLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Double(t, l, oNewVal); + return oThis.ReadCT_ChartLines(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setSplitPos(oNewVal.m_val); + if (null != oNewVal.spPr) + val.setDropLines(oNewVal.spPr); + else + val.setDropLines(new AscFormat.CSpPr()); } - else if (c_oserct_ofpiechartCUSTSPLIT === type) { + else if (c_oserct_line3dchartGAPDEPTH === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_custSplit(t, l, val); + return oThis.ReadCT_GapAmount(t, l, oNewVal); }); + //val.m_gapDepth = oNewVal; } - else if (c_oserct_ofpiechartSECONDPIESIZE === type) { + else if (c_oserct_line3dchartAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SecondPieSize(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setSecondPieSize(oNewVal.m_val); - } - else if (c_oserct_ofpiechartSERLINES === type) { - var oNewVal = { spPr: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); - }); - if (null != oNewVal.spPr) - val.setSerLines(oNewVal.spPr); - else - val.setSerLines(new AscFormat.CSpPr()); + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); } - else if (c_oserct_ofpiechartEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_line3dchartEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); @@ -9821,118 +12337,135 @@ BinaryChartReader.prototype.ReadCT_OfPieChart = function (type, length, val, aCh res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_PieSer = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Grouping = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_pieserIDX === type) { + if (c_oserct_groupingVAL === type) { + switch (this.stream.GetUChar()) { + case st_groupingPERCENTSTACKED: val.m_val = AscFormat.GROUPING_PERCENT_STACKED; break; + case st_groupingSTANDARD: val.m_val = AscFormat.GROUPING_STANDARD; break; + case st_groupingSTACKED: val.m_val = AscFormat.GROUPING_STACKED; break; + } + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_LineChart = function (type, length, val, aChartWithAxis) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_linechartGROUPING === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Grouping(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); + val.setGrouping(oNewVal.m_val); } - else if (c_oserct_pieserORDER === type) { + else if (c_oserct_linechartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setOrder(oNewVal.m_val); + val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_pieserTX === type) { - var oNewVal = new AscFormat.CTx(); + else if (c_oserct_linechartSER === type) { + var oNewVal = new AscFormat.CLineSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SerTx(t, l, oNewVal); + return oThis.ReadCT_LineSer(t, l, oNewVal); }); - val.setTx(oNewVal); + val.addSer(oNewVal); + if(oNewVal.smooth === null){ + oNewVal.setSmooth(false); + } } - else if (c_oserct_pieserSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + else if (c_oserct_linechartDLBLS === type) { + var oNewVal = new AscFormat.CDLbls(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_DLbls(t, l, oNewVal); + }); + oNewVal.correctValues(); + val.setDLbls(oNewVal); } - else if (c_oserct_pieserEXPLOSION === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_linechartDROPLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_ChartLines(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setExplosion(oNewVal.m_val); + if (null != oNewVal.spPr) + val.setDropLines(oNewVal.spPr); + else + val.setDropLines(new AscFormat.CSpPr()); } - else if (c_oserct_pieserDPT === type) { - var oNewVal = new AscFormat.CDPt(); + else if (c_oserct_linechartHILOWLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DPt(t, l, oNewVal); + return oThis.ReadCT_ChartLines(t, l, oNewVal); }); - val.addDPt(oNewVal); + if (null != oNewVal.spPr) + val.setHiLowLines(oNewVal.spPr); + else + val.setHiLowLines(new AscFormat.CSpPr()); } - else if (c_oserct_pieserDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_linechartUPDOWNBARS === type) { + var oNewVal = new AscFormat.CUpDownBars(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_UpDownBars(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + val.setUpDownBars(oNewVal); } - else if (c_oserct_pieserCAT === type) { - var oNewVal = new AscFormat.CCat(); + else if (c_oserct_linechartMARKER === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxDataSource(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setCat(oNewVal); + if (null != oNewVal.m_val) + val.setMarker(oNewVal.m_val); } - else if (c_oserct_pieserVAL === type) { - var oNewVal = new AscFormat.CYVal(); + else if (c_oserct_linechartSMOOTH === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setVal(oNewVal); + if (null != oNewVal.m_val){ + val.setSmooth(oNewVal.m_val); + } + else{ + val.setSmooth(true); + } } - else if (c_oserct_pieserEXTLST === type) { + else if (c_oserct_linechartAXID === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + } + else if (c_oserct_linechartEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); // val.m_extLst = oNewVal; } - else if(c_oserct_chartFiltering === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartFiltering(t, l, val); - }); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_GapAmount = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_gapamountVAL === type) { - val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); - } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_Bar3DChart = function (type, length, val, aChartWithAxis) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_bar3dchartBARDIR === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BarDir(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setBarDir(oNewVal.m_val); - } - else if (c_oserct_bar3dchartGROUPING === type) { +BinaryChartReader.prototype.ReadCT_Area3DChart = function (type, length, val, aChartWithAxis) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_area3dchartGROUPING === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BarGrouping(t, l, oNewVal); + return oThis.ReadCT_Grouping(t, l, oNewVal); }); if (null != oNewVal.m_val) val.setGrouping(oNewVal.m_val); } - else if (c_oserct_bar3dchartVARYCOLORS === type) { + else if (c_oserct_area3dchartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); @@ -9940,14 +12473,14 @@ BinaryChartReader.prototype.ReadCT_Bar3DChart = function (type, length, val, aCh if (null != oNewVal.m_val) val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_bar3dchartSER === type) { - var oNewVal = new AscFormat.CBarSeries(); + else if (c_oserct_area3dchartSER === type) { + var oNewVal = new AscFormat.CAreaSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BarSer(t, l, oNewVal); + return oThis.ReadCT_AreaSer(t, l, oNewVal); }); val.addSer(oNewVal); } - else if (c_oserct_bar3dchartDLBLS === type) { + else if (c_oserct_area3dchartDLBLS === type) { var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_DLbls(t, l, oNewVal); @@ -9955,32 +12488,25 @@ BinaryChartReader.prototype.ReadCT_Bar3DChart = function (type, length, val, aCh oNewVal.correctValues(); val.setDLbls(oNewVal); } - else if (c_oserct_bar3dchartGAPWIDTH === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_area3dchartDROPLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_GapAmount(t, l, oNewVal); + return oThis.ReadCT_ChartLines(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setGapWidth(oNewVal.m_val); + if (null != oNewVal.spPr) + val.setDropLines(oNewVal.spPr); + else + val.setDropLines(new AscFormat.CSpPr()); } - else if (c_oserct_bar3dchartGAPDEPTH === type) { + else if (c_oserct_area3dchartGAPDEPTH === type) { var oNewVal; oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_GapAmount(t, l, oNewVal); }); - if(null != oNewVal.m_val) - val.setGapDepth(oNewVal.m_val); - } - else if (c_oserct_bar3dchartSHAPE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Shape(t, l, oNewVal); - }); - if(null != oNewVal.m_val) - val.setShape(oNewVal.m_val); + //val.m_gapDepth = oNewVal; } - else if (c_oserct_bar3dchartAXID === type) { + else if (c_oserct_area3dchartAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -9988,9 +12514,8 @@ BinaryChartReader.prototype.ReadCT_Bar3DChart = function (type, length, val, aCh if (null != oNewVal.m_val) aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); } - else if (c_oserct_bar3dchartEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_area3dchartEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); @@ -10000,38 +12525,10 @@ BinaryChartReader.prototype.ReadCT_Bar3DChart = function (type, length, val, aCh res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_BarDir = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_bardirVAL === type) { - switch (this.stream.GetUChar()) { - case st_bardirBAR: val.m_val = AscFormat.BAR_DIR_BAR; break; - case st_bardirCOL: val.m_val = AscFormat.BAR_DIR_COL; break; - } - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_BarGrouping = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_bargroupingVAL === type) { - switch (this.stream.GetUChar()) { - case st_bargroupingPERCENTSTACKED: val.m_val = AscFormat.BAR_GROUPING_PERCENT_STACKED; break; - case st_bargroupingCLUSTERED: val.m_val = AscFormat.BAR_GROUPING_CLUSTERED; break; - case st_bargroupingSTANDARD: val.m_val = AscFormat.BAR_GROUPING_STANDARD; break; - case st_bargroupingSTACKED: val.m_val = AscFormat.BAR_GROUPING_STACKED; break; - } - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_BarSer = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_AreaSer = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_barserIDX === type) { + if (c_oserct_areaserIDX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -10039,7 +12536,7 @@ BinaryChartReader.prototype.ReadCT_BarSer = function (type, length, val) { if (null != oNewVal.m_val) val.setIdx(oNewVal.m_val); } - else if (c_oserct_barserORDER === type) { + else if (c_oserct_areaserORDER === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); @@ -10047,39 +12544,31 @@ BinaryChartReader.prototype.ReadCT_BarSer = function (type, length, val) { if (null != oNewVal.m_val) val.setOrder(oNewVal.m_val); } - else if (c_oserct_barserTX === type) { + else if (c_oserct_areaserTX === type) { var oNewVal = new AscFormat.CTx(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_SerTx(t, l, oNewVal); }); val.setTx(oNewVal); } - else if (c_oserct_barserSPPR === type) { + else if (c_oserct_areaserSPPR === type) { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_barserINVERTIFNEGATIVE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setInvertIfNegative(oNewVal.m_val); - } - else if (c_oserct_barserPICTUREOPTIONS === type) { + else if (c_oserct_areaserPICTUREOPTIONS === type) { var oNewVal = new AscFormat.CPictureOptions(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_PictureOptions(t, l, oNewVal); }); val.setPictureOptions(oNewVal); } - else if (c_oserct_barserDPT === type) { + else if (c_oserct_areaserDPT === type) { var oNewVal = new AscFormat.CDPt(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_DPt(t, l, oNewVal); }); val.addDPt(oNewVal); } - else if (c_oserct_barserDLBLS === type) { + else if (c_oserct_areaserDLBLS === type) { var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_DLbls(t, l, oNewVal); @@ -10087,220 +12576,63 @@ BinaryChartReader.prototype.ReadCT_BarSer = function (type, length, val) { oNewVal.correctValues(); val.setDLbls(oNewVal); } - else if (c_oserct_barserTRENDLINE === type) { + else if (c_oserct_areaserTRENDLINE === type) { //todo array var oNewVal = new AscFormat.CTrendLine(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Trendline(t, l, oNewVal); }); - val.setTrendline(oNewVal); - } - else if (c_oserct_barserERRBARS === type) { - var oNewVal = new AscFormat.CErrBars(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ErrBars(t, l, oNewVal); - }); - val.addErrBars(oNewVal); - } - else if (c_oserct_barserCAT === type) { - var oNewVal = new AscFormat.CCat(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxDataSource(t, l, oNewVal); - }); - val.setCat(oNewVal); - } - else if (c_oserct_barserVAL === type) { - var oNewVal = new AscFormat.CYVal(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); - }); - val.setVal(oNewVal); - } - else if (c_oserct_barserSHAPE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Shape(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setShape(oNewVal.m_val); - } - else if (c_oserct_barserEXTLST === type) { - var oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); - }); - // val.m_extLst = oNewVal; - } - else if(c_oserct_chartFiltering === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartFiltering(t, l, val); - }); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_ChartFiltering = function(type, length, val) { - let res = c_oSerConstants.ReadOk; - let oThis = this; - if (c_oserct_dataLabelsRange === type) { - var oNewVal = new AscFormat.CStrRef(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_dataLabelsRange(t, l, oNewVal); - }); - val.setDataLabelsRange(oNewVal); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_dataLabelsRange = function(type, length, val) { - let res = c_oSerConstants.ReadOk; - let oThis = this; - if (0 === type) { - val.setF(this.stream.GetString2LE(length)); - } - else if(1 === type) { - var oNewVal = new AscFormat.CStrCache(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StrData(t, l, oNewVal); - }); - val.setStrCache(oNewVal); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Shape = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_shapeVAL === type) { - switch (this.stream.GetUChar()) { - case st_shapeCONE: val.m_val = AscFormat.BAR_SHAPE_CONE; break; - case st_shapeCONETOMAX: val.m_val = AscFormat.BAR_SHAPE_CONETOMAX; break; - case st_shapeBOX: val.m_val = AscFormat.BAR_SHAPE_BOX; break; - case st_shapeCYLINDER: val.m_val = AscFormat.BAR_SHAPE_CYLINDER; break; - case st_shapePYRAMID: val.m_val = AscFormat.BAR_SHAPE_PYRAMID; break; - case st_shapePYRAMIDTOMAX: val.m_val = AscFormat.BAR_SHAPE_PYRAMIDTOMAX; break; - } - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Overlap = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_overlapVAL === type) { - val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_BarChart = function (type, length, val, aChartWithAxis) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_barchartBARDIR === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BarDir(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setBarDir(oNewVal.m_val); - } - else if (c_oserct_barchartGROUPING === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BarGrouping(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setGrouping(oNewVal.m_val); - } - else if (c_oserct_barchartVARYCOLORS === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); - } - else if (c_oserct_barchartSER === type) { - var oNewVal = new AscFormat.CBarSeries(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BarSer(t, l, oNewVal); - }); - val.addSer(oNewVal); - } - else if (c_oserct_barchartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); - }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); - } - else if (c_oserct_barchartGAPWIDTH === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_GapAmount(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setGapWidth(oNewVal.m_val); + val.setTrendline(oNewVal); } - else if (c_oserct_barchartOVERLAP === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_areaserERRBARS === type) { + var oNewVal = new AscFormat.CErrBars(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Overlap(t, l, oNewVal); + return oThis.ReadCT_ErrBars(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setOverlap(oNewVal.m_val); + val.addErrBars(oNewVal); } - else if (c_oserct_barchartSERLINES === type) { - //todo array - var oNewVal = { spPr: null }; + else if (c_oserct_areaserCAT === type) { + var oNewVal = new AscFormat.CCat(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_AxDataSource(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setSerLines(oNewVal.spPr); - else - val.setSerLines(new AscFormat.CSpPr()); + val.setCat(oNewVal); } - else if (c_oserct_barchartAXID === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_areaserVAL === type) { + var oNewVal = new AscFormat.CYVal(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_NumDataSource(t, l, oNewVal); }); - if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + val.setVal(oNewVal); } - else if (c_oserct_barchartEXTLST === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_areaserEXTLST === type) { + var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); // val.m_extLst = oNewVal; } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_HoleSize = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_holesizeVAL === type) { - val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); + else if(c_oserct_chartFiltering === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartFiltering(t, l, val); + }); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_DoughnutChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_AreaChart = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_doughnutchartVARYCOLORS === type) { + if (c_oserct_areachartGROUPING === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Grouping(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setGrouping(oNewVal.m_val); + } + else if (c_oserct_areachartVARYCOLORS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); @@ -10308,14 +12640,14 @@ BinaryChartReader.prototype.ReadCT_DoughnutChart = function (type, length, val, if (null != oNewVal.m_val) val.setVaryColors(oNewVal.m_val); } - else if (c_oserct_doughnutchartSER === type) { - var oNewVal = new AscFormat.CPieSeries(); + else if (c_oserct_areachartSER === type) { + var oNewVal = new AscFormat.CAreaSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PieSer(t, l, oNewVal); + return oThis.ReadCT_AreaSer(t, l, oNewVal); }); val.addSer(oNewVal); } - else if (c_oserct_doughnutchartDLBLS === type) { + else if (c_oserct_areachartDLBLS === type) { var oNewVal = new AscFormat.CDLbls(); res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_DLbls(t, l, oNewVal); @@ -10323,23 +12655,25 @@ BinaryChartReader.prototype.ReadCT_DoughnutChart = function (type, length, val, oNewVal.correctValues(); val.setDLbls(oNewVal); } - else if (c_oserct_doughnutchartFIRSTSLICEANG === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_areachartDROPLINES === type) { + var oNewVal = { spPr: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_FirstSliceAng(t, l, oNewVal); + return oThis.ReadCT_ChartLines(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setFirstSliceAng(oNewVal.m_val); + if (null != oNewVal.spPr) + val.setDropLines(oNewVal.spPr); + else + val.setDropLines(new AscFormat.CSpPr()); } - else if (c_oserct_doughnutchartHOLESIZE === type) { + else if (c_oserct_areachartAXID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_HoleSize(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setHoleSize(oNewVal.m_val); + aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); } - else if (c_oserct_doughnutchartEXTLST === type) { + else if (c_oserct_areachartEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); @@ -10350,271 +12684,238 @@ BinaryChartReader.prototype.ReadCT_DoughnutChart = function (type, length, val, res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_FirstSliceAng = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_PlotArea = function (type, length, val, aChartWithAxis) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_firstsliceangVAL === type) { - var oNewVal; - oNewVal = this.stream.GetULongLE(); - val.m_val = oNewVal; + if (c_oserct_plotareaLAYOUT === type) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Layout(t, l, val); + }); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Pie3DChart = function (type, length, val, aChartWithAxis) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_pie3dchartVARYCOLORS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_plotareaAREA3DCHART === type) { + var oNewVal = new AscFormat.CAreaChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Area3DChart(t, l, oNewVal, aChartWithAxis); }); - if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); + val.addChart(oNewVal); } - else if (c_oserct_pie3dchartSER === type) { - var oNewVal = new AscFormat.CPieSeries(); + else if (c_oserct_plotareaAREACHART === type) { + var oNewVal = new AscFormat.CAreaChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PieSer(t, l, oNewVal); + return oThis.ReadCT_AreaChart(t, l, oNewVal, aChartWithAxis); }); - val.addSer(oNewVal); + val.addChart(oNewVal); } - else if (c_oserct_pie3dchartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_plotareaBAR3DCHART === type) { + var oNewVal = new AscFormat.CBarChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_Bar3DChart(t, l, oNewVal, aChartWithAxis); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + oNewVal.set3D(true); + //3d->2d + /*if (AscFormat.BAR_GROUPING_STANDARD == oNewVal.grouping) + oNewVal.setGrouping(AscFormat.BAR_GROUPING_CLUSTERED); + else if(AscFormat.BAR_GROUPING_CLUSTERED != oNewVal.grouping){ + oNewVal.setOverlap(100); + }*/ + val.addChart(oNewVal); } - else if (c_oserct_pie3dchartEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_plotareaBARCHART === type) { + var oNewVal = new AscFormat.CBarChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_BarChart(t, l, oNewVal, aChartWithAxis); }); - // val.m_extLst = oNewVal; + val.addChart(oNewVal); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_PieChart = function (type, length, val, aChartWithAxis) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_piechartVARYCOLORS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_plotareaBUBBLECHART === type) { + var oNewVal = new AscFormat.CBubbleChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_BubbleChart(t, l, oNewVal, aChartWithAxis); }); - if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); + //bubble -> scatter + var scatter = oNewVal.convertToScutterChart(); + this.CorrectChartWithAxis(oNewVal, scatter, aChartWithAxis); + val.addChart(scatter); } - else if (c_oserct_piechartSER === type) { - var oNewVal = new AscFormat.CPieSeries(); + else if (c_oserct_plotareaDOUGHNUTCHART === type) { + var oNewVal = new AscFormat.CDoughnutChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PieSer(t, l, oNewVal); + return oThis.ReadCT_DoughnutChart(t, l, oNewVal, aChartWithAxis); }); - val.addSer(oNewVal); + val.addChart(oNewVal); } - else if (c_oserct_piechartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_plotareaLINE3DCHART === type) { + var oNewVal = new AscFormat.CLineChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_Line3DChart(t, l, oNewVal, aChartWithAxis); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + oNewVal.convert3Dto2D(); + val.addChart(oNewVal); } - else if (c_oserct_piechartFIRSTSLICEANG === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_plotareaLINECHART === type) { + var oNewVal = new AscFormat.CLineChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_FirstSliceAng(t, l, oNewVal); + return oThis.ReadCT_LineChart(t, l, oNewVal, aChartWithAxis); }); - if (null != oNewVal.m_val) - val.setFirstSliceAng(oNewVal.m_val); + val.addChart(oNewVal); } - else if (c_oserct_piechartEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_plotareaOFPIECHART === type) { + var oNewVal = new AscFormat.COfPieChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_OfPieChart(t, l, oNewVal, aChartWithAxis); }); - // val.m_extLst = oNewVal; + //ofPie -> pie + var pie = oNewVal.convertToPieChart(); + this.CorrectChartWithAxis(oNewVal, pie, aChartWithAxis); + val.addChart(pie); } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_ScatterSer = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_scatterserIDX === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_plotareaPIE3DCHART === type) { + var oNewVal = new AscFormat.CPieChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Pie3DChart(t, l, oNewVal, aChartWithAxis); }); - if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); + oNewVal.set3D(true); + //3d->2d + // oNewVal.setFirstSliceAng(0); + val.addChart(oNewVal); } - else if (c_oserct_scatterserORDER === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_plotareaPIECHART === type) { + var oNewVal = new AscFormat.CPieChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_PieChart(t, l, oNewVal, aChartWithAxis); }); - if (null != oNewVal.m_val) - val.setOrder(oNewVal.m_val); + val.addChart(oNewVal); } - else if (c_oserct_scatterserTX === type) { - var oNewVal = new AscFormat.CTx(); + else if (c_oserct_plotareaRADARCHART === type) { + var oNewVal = new AscFormat.CRadarChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SerTx(t, l, oNewVal); + return oThis.ReadCT_RadarChart(t, l, oNewVal, aChartWithAxis); }); - val.setTx(oNewVal); + //radar -> line + //var line = this.ConvertRadarToLine(oNewVal, aChartWithAxis); + val.addChart(oNewVal); } - else if (c_oserct_scatterserSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + else if (c_oserct_plotareaSCATTERCHART === type) { + var oNewVal = new AscFormat.CScatterChart(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ScatterChart(t, l, oNewVal, aChartWithAxis); + }); + val.addChart(oNewVal); } - else if (c_oserct_scatterserMARKER === type) { - var oNewVal = new AscFormat.CMarker(); + else if (c_oserct_plotareaSTOCKCHART === type) { + var oNewVal = new AscFormat.CStockChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Marker(t, l, oNewVal); + return oThis.ReadCT_StockChart(t, l, oNewVal, aChartWithAxis); }); - val.setMarker(oNewVal); + val.addChart(oNewVal); } - else if (c_oserct_scatterserDPT === type) { - var oNewVal = new AscFormat.CDPt(); + else if (c_oserct_plotareaSURFACE3DCHART === type) { + var oNewVal = new AscFormat.CSurfaceChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DPt(t, l, oNewVal); + return oThis.ReadCT_Surface3DChart(t, l, oNewVal, aChartWithAxis); }); - val.addDPt(oNewVal); + val.addChart(oNewVal); } - else if (c_oserct_scatterserDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_plotareaSURFACECHART === type) { + var oNewVal = new AscFormat.CSurfaceChart(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_SurfaceChart(t, l, oNewVal, aChartWithAxis); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + val.addChart(oNewVal); } - else if (c_oserct_scatterserTRENDLINE === type) { - //todo array - var oNewVal = new AscFormat.CTrendLine(); + else if (c_oserct_plotareaCATAX === type) { + var oNewVal = new AscFormat.CCatAx(); + res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Trendline(t, l, oNewVal); + return oThis.ReadCT_CatAx(t, l, oNewVal); }); - val.setTrendline(oNewVal); + val.addAxis(oNewVal); } - else if (c_oserct_scatterserERRBARS === type) { - var oNewVal = new AscFormat.CErrBars(); + else if (c_oserct_plotareaDATEAX === type) { + var oNewVal = new AscFormat.CDateAx(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ErrBars(t, l, oNewVal); + return oThis.ReadCT_DateAx(t, l, oNewVal); }); - val.addErrBars(oNewVal); + val.addAxis(oNewVal); } - else if (c_oserct_scatterserXVAL === type) { - var oNewVal = new AscFormat.CCat(); + else if (c_oserct_plotareaSERAX === type) { + var oNewVal = new AscFormat.CSerAx(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxDataSource(t, l, oNewVal); + return oThis.ReadCT_SerAx(t, l, oNewVal); }); - val.setXVal(oNewVal); + val.addAxis(oNewVal); } - else if (c_oserct_scatterserYVAL === type) { - var oNewVal = new AscFormat.CYVal(); + else if (c_oserct_plotareaVALAX === type) { + var oNewVal = new AscFormat.CValAx(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_ValAx(t, l, oNewVal); }); - val.setYVal(oNewVal); + val.addAxis(oNewVal); + //if(!AscFormat.isRealNumber(oNewVal.crossBetween)) + //{ + // oNewVal.setCrossBetween(AscFormat.CROSS_BETWEEN_BETWEEN); + //} } - else if (c_oserct_scatterserSMOOTH === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_plotareaDTABLE === type) { + var oNewVal = new AscFormat.CDTable(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_DTable(t, l, oNewVal); }); - if (null != oNewVal.m_val){ - val.setSmooth(oNewVal.m_val); - } - else{ - val.setSmooth(true); - } + val.setDTable(oNewVal); } - else if (c_oserct_scatterserEXTLST === type) { + else if (c_oserct_plotareaSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_plotareaEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); // val.m_extLst = oNewVal; } - else if(c_oserct_chartFiltering === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartFiltering(t, l, val); - }); + else if (c_oserct_plotareaPLOTAREAREGION === type) { + var oNewVal = new AscFormat.CPlotAreaRegion(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_PlotAreaRegion(t, l, oNewVal); + }); + val.setPlotAreaRegion(oNewVal); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_ScatterStyle = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Thickness = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_scatterstyleVAL === type) { - switch (this.stream.GetUChar()) { - case st_scatterstyleNONE: val.m_val = AscFormat.SCATTER_STYLE_NONE; break; - case st_scatterstyleLINE: val.m_val = AscFormat.SCATTER_STYLE_LINE; break; - case st_scatterstyleLINEMARKER: val.m_val = AscFormat.SCATTER_STYLE_LINE_MARKER; break; - case st_scatterstyleMARKER: val.m_val = AscFormat.SCATTER_STYLE_MARKER; break; - case st_scatterstyleSMOOTH: val.m_val = AscFormat.SCATTER_STYLE_SMOOTH; break; - case st_scatterstyleSMOOTHMARKER: val.m_val = AscFormat.SCATTER_STYLE_SMOOTH_MARKER; break; - } + if (c_oserct_thicknessVAL === type) { + val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_ScatterChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_Surface = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_scatterchartSCATTERSTYLE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ScatterStyle(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setScatterStyle(oNewVal.m_val); - } - else if (c_oserct_scatterchartVARYCOLORS === type) { + if (c_oserct_surfaceTHICKNESS === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Thickness(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); - } - else if (c_oserct_scatterchartSER === type) { - var oNewVal = new AscFormat.CScatterSeries(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ScatterSer(t, l, oNewVal); - }); - val.addSer(oNewVal); - if(oNewVal.smooth === null){ - oNewVal.setSmooth(false); - } + val.setThickness(oNewVal.m_val); } - else if (c_oserct_scatterchartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); - }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + else if (c_oserct_surfaceSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_scatterchartAXID === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_surfacePICTUREOPTIONS === type) { + var oNewVal = new AscFormat.CPictureOptions(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_PictureOptions(t, l, oNewVal); }); - if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + val.setPictureOptions(oNewVal); } - else if (c_oserct_scatterchartEXTLST === type) { + else if (c_oserct_surfaceEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); @@ -10625,145 +12926,120 @@ BinaryChartReader.prototype.ReadCT_ScatterChart = function (type, length, val, a res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_RadarSer = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Perspective = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_radarserIDX === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); - } - else if (c_oserct_radarserORDER === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setOrder(oNewVal.m_val); - } - else if (c_oserct_radarserTX === type) { - var oNewVal = new AscFormat.CTx(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SerTx(t, l, oNewVal); - }); - val.setTx(oNewVal); - } - else if (c_oserct_radarserSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); - } - else if (c_oserct_radarserMARKER === type) { - var oNewVal = new AscFormat.CMarker(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Marker(t, l, oNewVal); - }); - val.setMarker(oNewVal); - } - else if (c_oserct_radarserDPT === type) { - var oNewVal = new AscFormat.CDPt(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DPt(t, l, oNewVal); - }); - val.addDPt(oNewVal); - } - else if (c_oserct_radarserDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); - }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); - } - else if (c_oserct_radarserCAT === type) { - var oNewVal = new AscFormat.CCat(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxDataSource(t, l, oNewVal); - }); - val.setCat(oNewVal); + if (c_oserct_perspectiveVAL === type) { + var oNewVal; + oNewVal = this.stream.GetUChar(); + val.m_val = oNewVal; } - else if (c_oserct_radarserVAL === type) { - var oNewVal = new AscFormat.CYVal(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); - }); - val.setVal(oNewVal); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_DepthPercent = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_depthpercentVAL === type) { + var oNewVal; + oNewVal = this.stream.GetString2LE(length); + val.m_val = oNewVal; } - else if (c_oserct_radarserEXTLST === type) { + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_RotY = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_rotyVAL === type) { var oNewVal; - oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); - }); - // val.m_extLst = oNewVal; + oNewVal = this.stream.GetULongLE(); + val.m_val = oNewVal; } - else if(c_oserct_chartFiltering === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartFiltering(t, l, val); - }); + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_HPercent = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_hpercentVAL === type) { + val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_RadarStyle = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_RotX = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_radarstyleVAL === type) { - switch (this.stream.GetUChar()) { - case st_radarstyleSTANDARD: val.m_val = RADAR_STYLE_STANDARD; break; - case st_radarstyleMARKER: val.m_val = RADAR_STYLE_MARKER; break; - case st_radarstyleFILLED: val.m_val = RADAR_STYLE_FILLED; break; - } + if (c_oserct_rotxVAL === type) { + var oNewVal; + oNewVal = this.stream.GetChar(); + val.m_val = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_RadarChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_View3D = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_radarchartRADARSTYLE === type) { + if (c_oserct_view3dROTX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_RadarStyle(t, l, oNewVal); + return oThis.ReadCT_RotX(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setRadarStyle(oNewVal.m_val); + val.setRotX(oNewVal.m_val); } - else if (c_oserct_radarchartVARYCOLORS === type) { + else if (c_oserct_view3dHPERCENT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_HPercent(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); + val.setHPercent(oNewVal.m_val); } - else if (c_oserct_radarchartSER === type) { - var oNewVal = new AscFormat.CRadarSeries(); + else if (c_oserct_view3dROTY === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_RadarSer(t, l, oNewVal); + return oThis.ReadCT_RotY(t, l, oNewVal); }); - val.addSer(oNewVal); + if (null != oNewVal.m_val) + val.setRotY(oNewVal.m_val); } - else if (c_oserct_radarchartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_view3dDEPTHPERCENT === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_DepthPercent(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + if (null != oNewVal.m_val){ + var nPercent = parseInt(oNewVal.m_val) + if(AscFormat.isRealNumber(nPercent)){ + val.setDepthPercent(nPercent); + } + } } - else if (c_oserct_radarchartAXID === type) { + else if (c_oserct_view3dRANGAX === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + val.setRAngAx(oNewVal.m_val); } - else if (c_oserct_radarchartEXTLST === type) { + else if (c_oserct_view3dPERSPECTIVE === type) { + var oNewVal = { m_val: null }; + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Perspective(t, l, oNewVal); + }); + if (null != oNewVal.m_val) + val.setPerspective(oNewVal.m_val); + } + else if (c_oserct_view3dEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); @@ -10774,60 +13050,40 @@ BinaryChartReader.prototype.ReadCT_RadarChart = function (type, length, val, aCh res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_StockChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_PivotFmt = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_stockchartSER === type) { - var oNewVal = new AscFormat.CLineSeries(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LineSer(t, l, oNewVal); - }); - val.addSer(oNewVal); - } - else if (c_oserct_stockchartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + if (c_oserct_pivotfmtIDX === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + if (null != oNewVal.m_val) + val.setIdx(oNewVal.m_val); } - else if (c_oserct_stockchartDROPLINES === type) { - var oNewVal = { spPr: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); - }); - if (null != oNewVal.spPr) - val.setDropLines(oNewVal.spPr); - else - val.setDropLines(new AscFormat.CSpPr()); + else if (c_oserct_pivotfmtSPPR === type) { + val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_stockchartHILOWLINES === type) { - var oNewVal = { spPr: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); - }); - if (null != oNewVal.spPr) - val.setHiLowLines(oNewVal.spPr); - else - val.setHiLowLines(new AscFormat.CSpPr()); + else if (c_oserct_pivotfmtTXPR === type) { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); } - else if (c_oserct_stockchartUPDOWNBARS === type) { - var oNewVal = new AscFormat.CUpDownBars(); + else if (c_oserct_pivotfmtMARKER === type) { + var oNewVal = new AscFormat.CMarker(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UpDownBars(t, l, oNewVal); + return oThis.ReadCT_Marker(t, l, oNewVal); }); - val.setUpDownBars(oNewVal); + val.setMarker(oNewVal); } - else if (c_oserct_stockchartAXID === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_pivotfmtDLBL === type) { + var oNewVal = new AscFormat.CDLbl(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_DLbl(t, l, oNewVal); }); - if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + oNewVal.correctValues(); + val.setLbl(oNewVal); } - else if (c_oserct_stockchartEXTLST === type) { + else if (c_oserct_pivotfmtEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); @@ -10838,146 +13094,118 @@ BinaryChartReader.prototype.ReadCT_StockChart = function (type, length, val, aCh res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_LineSer = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_pivotFmts = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_lineserIDX === type) { - var oNewVal = { m_val: null }; + if (c_oserct_pivotfmtsPIVOTFMT === type) { + var oNewVal = new AscFormat.CPivotFmt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_PivotFmt(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); + val.setPivotFmts(oNewVal); } - else if (c_oserct_lineserORDER === type) { - var oNewVal = { m_val: null }; + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Chart = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_chartTITLE === type) { + var oNewVal = new AscFormat.CTitle(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Title(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setOrder(oNewVal.m_val); + val.setTitle(oNewVal); } - else if (c_oserct_lineserTX === type) { - var oNewVal = new AscFormat.CTx(); + else if (c_oserct_chartAUTOTITLEDELETED === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SerTx(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - val.setTx(oNewVal); - } - else if (c_oserct_lineserSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); + if (null != oNewVal.m_val) + val.setAutoTitleDeleted(oNewVal.m_val); + else + val.setAutoTitleDeleted(true); } - else if (c_oserct_lineserMARKER === type) { - var oNewVal = new AscFormat.CMarker(); + else if (c_oserct_chartPIVOTFMTS === type) { res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Marker(t, l, oNewVal); + return oThis.ReadCT_pivotFmts(t, l, val); }); - val.setMarker(oNewVal); } - else if (c_oserct_lineserDPT === type) { - var oNewVal = new AscFormat.CDPt(); + else if (c_oserct_chartVIEW3D === type) { + var oNewVal = new AscFormat.CView3d(); + res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DPt(t, l, oNewVal); + return oThis.ReadCT_View3D(t, l, oNewVal); }); - val.addDPt(oNewVal); + val.setView3D(oNewVal); } - else if (c_oserct_lineserDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_chartFLOOR === type) { + var oNewVal = new AscFormat.CChartWall(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_Surface(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + val.setFloor(oNewVal); } - else if (c_oserct_lineserTRENDLINE === type) { - //todo array - var oNewVal = new AscFormat.CTrendLine(); + else if (c_oserct_chartSIDEWALL === type) { + var oNewVal = new AscFormat.CChartWall(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Trendline(t, l, oNewVal); + return oThis.ReadCT_Surface(t, l, oNewVal); }); - val.setTrendline(oNewVal); + val.setSideWall(oNewVal); } - else if (c_oserct_lineserERRBARS === type) { - var oNewVal = new AscFormat.CErrBars(); + else if (c_oserct_chartBACKWALL === type) { + var oNewVal = new AscFormat.CChartWall(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ErrBars(t, l, oNewVal); + return oThis.ReadCT_Surface(t, l, oNewVal); }); - val.addErrBars(oNewVal); + val.setBackWall(oNewVal); } - else if (c_oserct_lineserCAT === type) { - var oNewVal = new AscFormat.CCat(); + else if (c_oserct_chartPLOTAREA === type) { + var oNewVal = new AscFormat.CPlotArea(); + var aChartWithAxis = []; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxDataSource(t, l, oNewVal); + return oThis.ReadCT_PlotArea(t, l, oNewVal, aChartWithAxis); }); - val.setCat(oNewVal); + oNewVal.initPostOpen(aChartWithAxis); + val.setPlotArea(oNewVal); } - else if (c_oserct_lineserVAL === type) { - var oNewVal = new AscFormat.CYVal(); + else if (c_oserct_chartLEGEND === type) { + var oNewVal = new AscFormat.CLegend(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_Legend(t, l, oNewVal); }); - val.setVal(oNewVal); + oNewVal.updateLegendPos(); + val.setLegend(oNewVal); } - else if (c_oserct_lineserSMOOTH === type) { + else if (c_oserct_chartPLOTVISONLY === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if (null != oNewVal.m_val) { - val.setSmooth(oNewVal.m_val); - } - else { - val.setSmooth(true); - } - } - else if (c_oserct_lineserEXTLST === type) { - var oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); - }); - // val.m_extLst = oNewVal; - } - else if(c_oserct_chartFiltering === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartFiltering(t, l, val); - }); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_UpDownBars = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_updownbarsGAPWIDTH === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_GapAmount(t, l, oNewVal); - }); if (null != oNewVal.m_val) - val.setGapWidth(oNewVal.m_val); + val.setPlotVisOnly(oNewVal.m_val); } - else if (c_oserct_updownbarsUPBARS === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_chartDISPBLANKSAS === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UpDownBar(t, l, oNewVal); + return oThis.ReadCT_DispBlanksAs(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setUpBars(oNewVal.spPr); - else - val.setUpBars(new AscFormat.CSpPr()); + if (null != oNewVal.m_val) + val.setDispBlanksAs(oNewVal.m_val); } - else if (c_oserct_updownbarsDOWNBARS === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_chartSHOWDLBLSOVERMAX === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UpDownBar(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setDownBars(oNewVal.spPr); + if (null != oNewVal.m_val) + val.setShowDLblsOverMax(oNewVal.m_val); else - val.setDownBars(new AscFormat.CSpPr()); + val.setShowDLblsOverMax(true); } - else if (c_oserct_updownbarsEXTLST === type) { + else if (c_oserct_chartEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); @@ -10988,1070 +13216,1393 @@ BinaryChartReader.prototype.ReadCT_UpDownBars = function (type, length, val) { res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_UpDownBar = function (type, length, val) { - var res = c_oSerConstants.ReadOk; - var oThis = this; - if (c_oserct_updownbarSPPR === type) { - val.spPr = this.ReadSpPr(length); - } - else - res = c_oSerConstants.ReadUnknown; - return res; -}; -BinaryChartReader.prototype.ReadCT_Line3DChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_Protection = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_line3dchartGROUPING === type) { + if (c_oserct_protectionCHARTOBJECT === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Grouping(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setGrouping(oNewVal.m_val); + val.setChartObject(oNewVal.m_val); } - else if (c_oserct_line3dchartVARYCOLORS === type) { + else if (c_oserct_protectionDATA === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); }); if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); + val.setData(oNewVal.m_val); } - else if (c_oserct_line3dchartSER === type) { - var oNewVal = new AscFormat.CLineSeries(); + else if (c_oserct_protectionFORMATTING === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LineSer(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if(oNewVal.smooth === null){ - oNewVal.setSmooth(false); - } - val.addSer(oNewVal); + if (null != oNewVal.m_val) + val.setFormatting(oNewVal.m_val); } - else if (c_oserct_line3dchartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_protectionSELECTION === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + if (null != oNewVal.m_val) + val.setSelection(oNewVal.m_val); } - else if (c_oserct_line3dchartDROPLINES === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_protectionUSERINTERFACE === type) { + var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setDropLines(oNewVal.spPr); - else - val.setDropLines(new AscFormat.CSpPr()); + if (null != oNewVal.m_val) + val.setUserInterface(oNewVal.m_val); } - else if (c_oserct_line3dchartGAPDEPTH === type) { - var oNewVal; - oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_GapAmount(t, l, oNewVal); - }); - //val.m_gapDepth = oNewVal; + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_PivotSource = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_pivotsourceNAME === type) { + val.setName(this.stream.GetString2LE(length)); } - else if (c_oserct_line3dchartAXID === type) { + else if (c_oserct_pivotsourceFMTID === type) { var oNewVal = { m_val: null }; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_UnsignedInt(t, l, oNewVal); }); if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + val.setFmtId(oNewVal.m_val); } - else if (c_oserct_line3dchartEXTLST === type) { + else if (c_oserct_pivotsourceEXTLST === type) { var oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_extLst(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + // if (null == val.m_extLst) + // val.m_extLst = []; + // val.m_extLst.push(oNewVal); } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_Grouping = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Style1 = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_groupingVAL === type) { - switch (this.stream.GetUChar()) { - case st_groupingPERCENTSTACKED: val.m_val = AscFormat.GROUPING_PERCENT_STACKED; break; - case st_groupingSTANDARD: val.m_val = AscFormat.GROUPING_STANDARD; break; - case st_groupingSTACKED: val.m_val = AscFormat.GROUPING_STACKED; break; - } + if (c_oserct_style1VAL === type) { + var oNewVal; + oNewVal = this.stream.GetUChar(); + val.m_val = oNewVal; } else res = c_oSerConstants.ReadUnknown; return res; }; -BinaryChartReader.prototype.ReadCT_LineChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_Style = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_linechartGROUPING === type) { - var oNewVal = { m_val: null }; + if (c_oserct_styleVAL === type) { + var oNewVal; + oNewVal = this.stream.GetUChar(); + val.m_val = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_TextLanguageID = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_textlanguageidVAL === type) { + var oNewVal; + oNewVal = this.stream.GetString2LE(length); + val.m_val = oNewVal; + } + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_Axis = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExAxisID === type) + { + val.setAxId(this.stream.GetULongLE()); + } + else if (c_oserct_chartExAxisHIDDEN === type) + { + val.setHidden(this.stream.GetBool()); + } + else if (c_oserct_chartExAxisCATSCALING === type) + { + var oNewVal = new AscFormat.CCategoryAxisScaling(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Grouping(t, l, oNewVal); + return oThis.ReadCT_CategoryAxisScaling(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setGrouping(oNewVal.m_val); + val.setScaling(oNewVal); } - else if (c_oserct_linechartVARYCOLORS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_chartExAxisVALSCALING === type) + { + var oNewVal = new AscFormat.CValueAxisScaling(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_ValueAxisScaling(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); + val.setScaling(oNewVal); } - else if (c_oserct_linechartSER === type) { - var oNewVal = new AscFormat.CLineSeries(); + else if (c_oserct_chartExAxisTITLE === type) + { + var oNewVal = new AscFormat.CTitle(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LineSer(t, l, oNewVal); + return oThis.ReadCT_ChartExTitle(t, l, oNewVal); }); - val.addSer(oNewVal); - if(oNewVal.smooth === null){ - oNewVal.setSmooth(false); - } + val.setTitle(oNewVal); } - else if (c_oserct_linechartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); + else if (c_oserct_chartExAxisUNIT === type) + { + var oNewVal = new AscFormat.CAxisUnits(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); + return oThis.ReadCT_AxisUnits(t, l, oNewVal); }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + val.setUnits(oNewVal); } - else if (c_oserct_linechartDROPLINES === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_chartExAxisNUMFMT === type) + { + var oNewVal = new AscFormat.CNumFmt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_ChartExNumFmt(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setDropLines(oNewVal.spPr); - else - val.setDropLines(new AscFormat.CSpPr()); + val.setNumFmt(oNewVal); } - else if (c_oserct_linechartHILOWLINES === type) { - var oNewVal = { spPr: null }; + else if (c_oserct_chartExAxisMAJORTICK === type) + { + var oNewVal = new AscFormat.CTickMarks(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_TickMarks(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setHiLowLines(oNewVal.spPr); - else - val.setHiLowLines(new AscFormat.CSpPr()); + val.setMajorTickMark(oNewVal); } - else if (c_oserct_linechartUPDOWNBARS === type) { - var oNewVal = new AscFormat.CUpDownBars(); + else if (c_oserct_chartExAxisMINORTICK === type) + { + var oNewVal = new AscFormat.CTickMarks(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UpDownBars(t, l, oNewVal); + return oThis.ReadCT_TickMarks(t, l, oNewVal); }); - val.setUpDownBars(oNewVal); + val.setMinorTickMark(oNewVal); } - else if (c_oserct_linechartMARKER === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_chartExAxisMAJORGRID === type) + { + var oNewVal = new AscFormat.CGridlines(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Gridlines(t, l, oNewVal); + }); + val.setMajorGridlines(oNewVal); + } + else if (c_oserct_chartExAxisMINORGRID === type) + { + var oNewVal = new AscFormat.CGridlines(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Gridlines(t, l, oNewVal); + }); + val.setMinorGridlines(oNewVal); + } + else if (c_oserct_chartExAxisTICKLABELS === type) + { + val.setTickLabels(this.stream.GetBool()); + } + else if (c_oserct_chartExAxisTXPR === type) + { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_chartExAxisSPPR === type) + { + val.setSpPr(this.ReadSpPr(length)); + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartData = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExDATA === type) { + var oNewVal = new AscFormat.CData(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Data(t, l, oNewVal); + }); + val.addData(oNewVal); + } + // else if (c_oserct_chartExEXTERNALDATA === type) + // { + // var oNewVal = new AscFormat.CExternalData(); + // res = this.bcr.Read1(length, function (t, l) { + // return oThis.ReadCT_ChartExExternalData(t, l, oNewVal); + // }); + // val.setExternalData(oNewVal); + // } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartExExternalData = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + if (c_oserct_chartExExternalAUTOUPDATE === type) { + var oNewVal; + oNewVal = {}; res = this.bcr.Read1(length, function (t, l) { return oThis.ReadCT_Boolean(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setMarker(oNewVal.m_val); + val.m_autoUpdate = oNewVal; } - else if (c_oserct_linechartSMOOTH === type) { - var oNewVal = { m_val: null }; + else + res = c_oSerConstants.ReadUnknown; + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartEx = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExChartPLOTAREA === type) + { + var oNewVal = new AscFormat.CPlotArea(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_ChartExPlotArea(t, l, oNewVal); }); - if (null != oNewVal.m_val){ - val.setSmooth(oNewVal.m_val); - } - else{ - val.setSmooth(true); + if (oNewVal && oNewVal.axId && Array.isArray(oNewVal.axId)) { + for (let i = 0; i < oNewVal.axId.length; i++) { + const axis = oNewVal.axId[i]; + const start = (oNewVal.axId.length > 1) ? i : i + 1; + axis.initializeAxPos(start); + } + if (oNewVal.axId.length === 2) { + oNewVal.axId[0].setCrossAx(oNewVal.axId[1]); + oNewVal.axId[1].setCrossAx(oNewVal.axId[0]); + } + if (oNewVal.axId.length === 1) { + oNewVal.axId[0].setCrossAx(oNewVal.axId[0]); + } } + val.setPlotArea(oNewVal); } - else if (c_oserct_linechartAXID === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_chartExChartTITLE === type) + { + var oNewVal = new AscFormat.CTitle(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_ChartExTitle(t, l, oNewVal); }); - if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + val.setTitle(oNewVal); } - else if (c_oserct_linechartEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_chartExChartLEGEND === type) + { + var oNewVal = new AscFormat.CLegend(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_ChartExLegend(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + val.setLegend(oNewVal); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_Area3DChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_ChartExPlotArea = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_area3dchartGROUPING === type) { - var oNewVal = { m_val: null }; + var oNewVal; + if (c_oserct_chartExChartAREAREGION === type) + { + var oNewVal = new AscFormat.CPlotAreaRegion(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Grouping(t, l, oNewVal); + return oThis.ReadCT_PlotAreaRegion(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setGrouping(oNewVal.m_val); + val.setPlotAreaRegion(oNewVal); } - else if (c_oserct_area3dchartVARYCOLORS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_chartExChartAXIS === type) { + var oNewVal = new AscFormat.CAxis(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); + return oThis.ReadCT_Axis(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); + val.addAxis(oNewVal); } - else if (c_oserct_area3dchartSER === type) { - var oNewVal = new AscFormat.CAreaSeries(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AreaSer(t, l, oNewVal); - }); - val.addSer(oNewVal); + else if (c_oserct_chartExChartSPPR === type) + { + val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_area3dchartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); - }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_area3dchartDROPLINES === type) { - var oNewVal = { spPr: null }; + return res; +}; +BinaryChartReader.prototype.ReadCT_PlotAreaRegion = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExAreaPLOTSURFACE === type) + { + var oNewVal = new AscFormat.CPlotSurface(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); + return oThis.ReadCT_PlotSurface(t, l, oNewVal); }); - if (null != oNewVal.spPr) - val.setDropLines(oNewVal.spPr); - else - val.setDropLines(new AscFormat.CSpPr()); + val.setPlotSurface(oNewVal); } - else if (c_oserct_area3dchartGAPDEPTH === type) { - var oNewVal; - oNewVal = {}; + else if (c_oserct_chartExAreaSERIES === type) { + var oNewVal = new AscFormat.CSeries(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_GapAmount(t, l, oNewVal); + return oThis.ReadCT_Series(t, l, oNewVal); }); - //val.m_gapDepth = oNewVal; + val.addSeries(oNewVal); } - else if (c_oserct_area3dchartAXID === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_area3dchartEXTLST === type) { - var oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); - }); - // val.m_extLst = oNewVal; + return res; +}; +BinaryChartReader.prototype.ReadCT_PlotSurface = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExPlotSurfaceSPPR === type) + { + val.setSpPr(this.ReadSpPr(length)); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_AreaSer = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_SeriesLayout = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_serieslayoutBOXWHISKER: val = AscFormat.SERIES_LAYOUT_BOX_WHISKER; break; + case st_serieslayoutCLUSTEREDCOLUMN: val = AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN; break; + case st_serieslayoutFUNNEL: val = AscFormat.SERIES_LAYOUT_FUNNEL; break; + case st_serieslayoutPARETOLINE: val = AscFormat.SERIES_LAYOUT_PARETO_LINE; break; + case st_serieslayoutREGIONMAP: val = AscFormat.SERIES_LAYOUT_REGION_MAP; break; + case st_serieslayoutSUNBURST: val = AscFormat.SERIES_LAYOUT_SUNBURST; break; + case st_serieslayoutTREEMAP: val = AscFormat.SERIES_LAYOUT_TREEMAP; break; + case st_serieslayoutWATERFALL: + default: val = AscFormat.SERIES_LAYOUT_WATERFALL; break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_Series = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_areaserIDX === type) { - var oNewVal = { m_val: null }; + var oNewVal; + if (c_oserct_chartExSeriesDATAPT === type) { + var oNewVal = new AscFormat.CDataPoint(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_DataPoint(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); + val.addDataPt(oNewVal); } - else if (c_oserct_areaserORDER === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_chartExSeriesDATALABELS === type) + { + var oNewVal = new AscFormat.CDataLabels(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_DataLabels(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setOrder(oNewVal.m_val); + val.setDataLabels(oNewVal); } - else if (c_oserct_areaserTX === type) { - var oNewVal = new AscFormat.CTx(); + else if (c_oserct_chartExSeriesLAYOUTPROPS === type) + { + var oNewVal = new AscFormat.CSeriesLayoutProperties(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SerTx(t, l, oNewVal); + return oThis.ReadCT_SeriesLayoutProperties(t, l, oNewVal); + }); + val.setLayoutPr(oNewVal); + } + else if (c_oserct_chartExSeriesTEXT === type) + { + var oNewVal = new AscFormat.CChartText(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Text(t, l, oNewVal); }); + oNewVal.setChart(this.curChart); val.setTx(oNewVal); } - else if (c_oserct_areaserSPPR === type) { + else if (c_oserct_chartExSeriesAXIS === type) { + val.addAxisId(this.stream.GetULongLE()); + } + else if (c_oserct_chartExSeriesDATAID === type) + { + val.setDataId(this.stream.GetULongLE()); + } + else if (c_oserct_chartExSeriesSPPR === type) + { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_areaserPICTUREOPTIONS === type) { - var oNewVal = new AscFormat.CPictureOptions(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PictureOptions(t, l, oNewVal); - }); - val.setPictureOptions(oNewVal); + else if (c_oserct_chartExSeriesLAYOUTID === type) + { + val.setLayoutId(oThis.ReadCT_SeriesLayout()); + } + else if (c_oserct_chartExSeriesHIDDEN === type) + { + val.setHidden(this.stream.GetBool()); + } + else if (c_oserct_chartExSeriesOWNERIDX === type) + { + val.setOwnerIdx(this.stream.GetULongLE()); + } + else if (c_oserct_chartExSeriesFORMATIDX === type) + { + val.setFormatIdx(this.stream.GetULongLE()); } - else if (c_oserct_areaserDPT === type) { - var oNewVal = new AscFormat.CDPt(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DPt(t, l, oNewVal); - }); - val.addDPt(oNewVal); + else if (c_oserct_chartExSeriesUNIQUEID === type) + { + val.setUniqueId(this.stream.GetString2LE(length)); } - else if (c_oserct_areaserDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); - }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_areaserTRENDLINE === type) { - //todo array - var oNewVal = new AscFormat.CTrendLine(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Trendline(t, l, oNewVal); - }); - val.setTrendline(oNewVal); + return res; +}; +BinaryChartReader.prototype.ReadCT_DataPoint = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExDataPointIDX === type) + { + val.setIdx(this.stream.GetULongLE()); } - else if (c_oserct_areaserERRBARS === type) { - var oNewVal = new AscFormat.CErrBars(); + else if (c_oserct_chartExDataPointSPPR === type) + { + val.setSpPr(this.ReadSpPr(length)); + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_DataLabels = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExDataLabelsPOS === type) + { + val.setPos(oThis.ReadCT_DataLabelPos()); + } + else if (c_oserct_chartExDataLabelsNUMFMT === type) + { + var oNewVal = new AscFormat.CNumFmt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ErrBars(t, l, oNewVal); + return oThis.ReadCT_ChartExNumFmt(t, l, oNewVal); }); - val.addErrBars(oNewVal); + val.setNumFmt(oNewVal); } - else if (c_oserct_areaserCAT === type) { - var oNewVal = new AscFormat.CCat(); + else if (c_oserct_chartExDataLabelsTXPR === type) + { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_chartExDataLabelsSPPR === type) + { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_chartExDataLabelsVISABILITIES === type) + { + var oNewVal = new AscFormat.CDataLabelVisibilities(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AxDataSource(t, l, oNewVal); + return oThis.ReadCT_DataLabelVisibilities(t, l, oNewVal); }); - val.setCat(oNewVal); + val.setVisibility(oNewVal); } - else if (c_oserct_areaserVAL === type) { - var oNewVal = new AscFormat.CYVal(); + else if (c_oserct_chartExDataLabelsSEPARATOR === type) + { + val.setSeparator(this.stream.GetString2LE(length)); + } + else if (c_oserct_chartExDataLabelsDATALABEL === type) { + var oNewVal = new AscFormat.CDataLabel(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_NumDataSource(t, l, oNewVal); + return oThis.ReadCT_DataLabel(t, l, oNewVal); }); - val.setVal(oNewVal); + val.addDataLabel(oNewVal); } - else if (c_oserct_areaserEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_chartExDataLabelsDATALABELHIDDEN === type) { + var oNewVal = new AscFormat.CDataLabelHidden(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_DataLabelHidden(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + val.addDataLabelHidden(oNewVal); } - else if(c_oserct_chartFiltering === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartFiltering(t, l, val); - }); + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartExNumFmt = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExNumberFormatFORMATCODE === type) { + val.setFormatCode(this.stream.GetString2LE(length)); + } + else if (c_oserct_chartExNumberFormatSOURCELINKED === type) { + val.setSourceLinked(this.stream.GetBool()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_AreaChart = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_DataLabelPos = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_datalabelposBESTFIT: val = AscFormat.DATA_LABEL_POS_BEST_FIT; break; + case st_datalabelposB: val = AscFormat.DATA_LABEL_POS_B; break; + case st_datalabelposCTR: val = AscFormat.DATA_LABEL_POS_CTR; break; + case st_datalabelposINBASE: val = AscFormat.DATA_LABEL_POS_IN_BASE; break; + case st_datalabelposINEND: val = AscFormat.DATA_LABEL_POS_IN_END; break; + case st_datalabelposL: val = AscFormat.DATA_LABEL_POS_L; break; + case st_datalabelposOUTEND: val = AscFormat.DATA_LABEL_POS_OUT_END; break; + case st_datalabelposR: val = AscFormat.DATA_LABEL_POS_R; break; + case st_datalabelposT: + default: val = AscFormat.DATA_LABEL_POS_T; break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_DataLabel = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_areachartGROUPING === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Grouping(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setGrouping(oNewVal.m_val); + var oNewVal; + if (c_oserct_chartExDataLabelIDX === type) + { + val.setIdx(this.stream.GetULongLE()); } - else if (c_oserct_areachartVARYCOLORS === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setVaryColors(oNewVal.m_val); + else if (c_oserct_chartExDataLabelPOS === type) + { + val.setPos(oThis.ReadCT_DataLabelPos()); } - else if (c_oserct_areachartSER === type) { - var oNewVal = new AscFormat.CAreaSeries(); + else if (c_oserct_chartExDataLabelNUMFMT === type) + { + var oNewVal = new AscFormat.CNumFmt(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AreaSer(t, l, oNewVal); + return oThis.ReadCT_ChartExNumFmt(t, l, oNewVal); }); - val.addSer(oNewVal); + val.setNumFmt(oNewVal); } - else if (c_oserct_areachartDLBLS === type) { - var oNewVal = new AscFormat.CDLbls(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbls(t, l, oNewVal); - }); - oNewVal.correctValues(); - val.setDLbls(oNewVal); + else if (c_oserct_chartExDataLabelTXPR === type) + { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); } - else if (c_oserct_areachartDROPLINES === type) { - var oNewVal = { spPr: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ChartLines(t, l, oNewVal); - }); - if (null != oNewVal.spPr) - val.setDropLines(oNewVal.spPr); - else - val.setDropLines(new AscFormat.CSpPr()); + else if (c_oserct_chartExDataLabelSPPR === type) + { + val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_areachartAXID === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_chartExDataLabelVISABILITIES === type) + { + var oNewVal = new AscFormat.CDataLabelVisibilities(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_DataLabelVisibilities(t, l, oNewVal); }); - if (null != oNewVal.m_val) - aChartWithAxis.push({ axisId: oNewVal.m_val, chart: val }); + val.setVisibility(oNewVal); } - else if (c_oserct_areachartEXTLST === type) { - var oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); - }); - // val.m_extLst = oNewVal; + else if (c_oserct_chartExDataLabelSEPARATOR === type) + { + val.setSeparator(this.stream.GetString2LE(length)); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_PlotArea = function (type, length, val, aChartWithAxis) { +BinaryChartReader.prototype.ReadCT_DataLabelHidden = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_plotareaLAYOUT === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Layout(t, l, val); - }); + var oNewVal; + if (c_oserct_chartExDataLabelHiddenIDX === type) + { + val.setIdx(this.stream.GetULongLE()); } - else if (c_oserct_plotareaAREA3DCHART === type) { - var oNewVal = new AscFormat.CAreaChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Area3DChart(t, l, oNewVal, aChartWithAxis); - }); - val.addChart(oNewVal); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_plotareaAREACHART === type) { - var oNewVal = new AscFormat.CAreaChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_AreaChart(t, l, oNewVal, aChartWithAxis); - }); - val.addChart(oNewVal); + return res; +}; +BinaryChartReader.prototype.ReadCT_ParentLabelLayout = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_parentlabellayoutNONE: val = AscFormat.PARENT_LABEL_LAYOUT_NONE; break; + case st_parentlabellayoutBANNER: val = AscFormat.PARENT_LABEL_LAYOUT_BANNER; break; + case st_parentlabellayoutOVERLAPPING: + default: val = AscFormat.PARENT_LABEL_LAYOUT_OVERLAPPING; break; } - else if (c_oserct_plotareaBAR3DCHART === type) { - var oNewVal = new AscFormat.CBarChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Bar3DChart(t, l, oNewVal, aChartWithAxis); - }); - oNewVal.set3D(true); - //3d->2d - /*if (AscFormat.BAR_GROUPING_STANDARD == oNewVal.grouping) - oNewVal.setGrouping(AscFormat.BAR_GROUPING_CLUSTERED); - else if(AscFormat.BAR_GROUPING_CLUSTERED != oNewVal.grouping){ - oNewVal.setOverlap(100); - }*/ - val.addChart(oNewVal); + return val; +}; +BinaryChartReader.prototype.ReadCT_RegionLabelLayout = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_regionlabellayoutNONE: val = AscFormat.REGION_LABEL_LAYOUT_NONE; break; + case st_regionlabellayoutBESTFITONLY: val = AscFormat.REGION_LABEL_LAYOUT_BEST_FIT_ONLY; break; + case st_regionlabellayoutSHOWALL: + default: val = AscFormat.REGION_LABEL_LAYOUT_SHOW_ALL; break; } - else if (c_oserct_plotareaBARCHART === type) { - var oNewVal = new AscFormat.CBarChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BarChart(t, l, oNewVal, aChartWithAxis); - }); - val.addChart(oNewVal); + return val; +}; +BinaryChartReader.prototype.ReadCT_SeriesLayoutProperties = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExSeriesLayoutPARENT === type) + { + val.setParentLabelLayout(oThis.ReadCT_ParentLabelLayout()); } - else if (c_oserct_plotareaBUBBLECHART === type) { - var oNewVal = new AscFormat.CBubbleChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_BubbleChart(t, l, oNewVal, aChartWithAxis); - }); - //bubble -> scatter - var scatter = oNewVal.convertToScutterChart(); - this.CorrectChartWithAxis(oNewVal, scatter, aChartWithAxis); - val.addChart(scatter); + else if (c_oserct_chartExSeriesLayoutREGION === type) + { + val.setRegionLabelLayout(oThis.ReadCT_RegionLabelLayout()); } - else if (c_oserct_plotareaDOUGHNUTCHART === type) { - var oNewVal = new AscFormat.CDoughnutChart(); + else if (c_oserct_chartExSeriesLayoutVISABILITIES === type) + { + var oNewVal = new AscFormat.CSeriesElementVisibilities(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DoughnutChart(t, l, oNewVal, aChartWithAxis); + return oThis.ReadCT_SeriesElementVisibilities(t, l, oNewVal); }); - val.addChart(oNewVal); + val.setVisibility(oNewVal); } - else if (c_oserct_plotareaLINE3DCHART === type) { - var oNewVal = new AscFormat.CLineChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Line3DChart(t, l, oNewVal, aChartWithAxis); - }); - oNewVal.convert3Dto2D(); - val.addChart(oNewVal); + else if (c_oserct_chartExSeriesLayoutAGGREGATION === type) + { + val.setAggregation(this.stream.GetBool()); } - else if (c_oserct_plotareaLINECHART === type) { - var oNewVal = new AscFormat.CLineChart(); + else if (c_oserct_chartExSeriesLayoutBINNING === type) + { + var oNewVal = new AscFormat.CBinning(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_LineChart(t, l, oNewVal, aChartWithAxis); + return oThis.ReadCT_Binning(t, l, oNewVal); }); - val.addChart(oNewVal); + val.setBinning(oNewVal); } - else if (c_oserct_plotareaOFPIECHART === type) { - var oNewVal = new AscFormat.COfPieChart(); + else if (c_oserct_chartExSeriesLayoutSTATISTIC === type) + { + var oNewVal = new AscFormat.CStatistics(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_OfPieChart(t, l, oNewVal, aChartWithAxis); + return oThis.ReadCT_Statistics(t, l, oNewVal); }); - //ofPie -> pie - var pie = oNewVal.convertToPieChart(); - this.CorrectChartWithAxis(oNewVal, pie, aChartWithAxis); - val.addChart(pie); + val.setStatistics(oNewVal); } - else if (c_oserct_plotareaPIE3DCHART === type) { - var oNewVal = new AscFormat.CPieChart(); + else if (c_oserct_chartExSeriesLayoutSUBTOTALS === type) + { + var oNewVal = new AscFormat.CSubtotals(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Pie3DChart(t, l, oNewVal, aChartWithAxis); + return oThis.ReadCT_Subtotals(t, l, oNewVal); }); - oNewVal.set3D(true); - //3d->2d - // oNewVal.setFirstSliceAng(0); - val.addChart(oNewVal); + val.setSubtotals(oNewVal); } - else if (c_oserct_plotareaPIECHART === type) { - var oNewVal = new AscFormat.CPieChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PieChart(t, l, oNewVal, aChartWithAxis); - }); - val.addChart(oNewVal); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_plotareaRADARCHART === type) { - var oNewVal = new AscFormat.CRadarChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_RadarChart(t, l, oNewVal, aChartWithAxis); - }); - //radar -> line - //var line = this.ConvertRadarToLine(oNewVal, aChartWithAxis); - val.addChart(oNewVal); + return res; +}; +BinaryChartReader.prototype.ReadCT_DataLabelVisibilities = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExDataLabelVisibilitiesSERIES === type) + { + val.setSeriesName(this.stream.GetBool()); } - else if (c_oserct_plotareaSCATTERCHART === type) { - var oNewVal = new AscFormat.CScatterChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ScatterChart(t, l, oNewVal, aChartWithAxis); - }); - val.addChart(oNewVal); + else if (c_oserct_chartExDataLabelVisibilitiesCATEGORY === type) + { + val.setCategoryName(this.stream.GetBool()); } - else if (c_oserct_plotareaSTOCKCHART === type) { - var oNewVal = new AscFormat.CStockChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_StockChart(t, l, oNewVal, aChartWithAxis); - }); - val.addChart(oNewVal); + else if (c_oserct_chartExDataLabelVisibilitiesVALUE === type) + { + val.setValue(this.stream.GetBool()); } - else if (c_oserct_plotareaSURFACE3DCHART === type) { - var oNewVal = new AscFormat.CSurfaceChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Surface3DChart(t, l, oNewVal, aChartWithAxis); - }); - val.addChart(oNewVal); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_plotareaSURFACECHART === type) { - var oNewVal = new AscFormat.CSurfaceChart(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SurfaceChart(t, l, oNewVal, aChartWithAxis); - }); - val.addChart(oNewVal); + return res; +}; +BinaryChartReader.prototype.ReadCT_IntervalClosedSide = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_intervalclosedsideL: val = AscFormat.INTERVAL_CLOSED_SIDE_L; break; + case st_intervalclosedsideR: + default: val = AscFormat.INTERVAL_CLOSED_SIDE_R; break; } - else if (c_oserct_plotareaCATAX === type) { - var oNewVal = new AscFormat.CCatAx(); - - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_CatAx(t, l, oNewVal); - }); - val.addAxis(oNewVal); + return val; +}; +BinaryChartReader.prototype.ReadCT_Binning = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExBinningBINSIZE === type) + { + val.setBinSize(this.stream.GetDoubleLE()); } - else if (c_oserct_plotareaDATEAX === type) { - var oNewVal = new AscFormat.CDateAx(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DateAx(t, l, oNewVal); - }); - val.addAxis(oNewVal); + else if (c_oserct_chartExBinningBINCOUNT === type) + { + val.setBinCount(this.stream.GetULongLE()); } - else if (c_oserct_plotareaSERAX === type) { - var oNewVal = new AscFormat.CSerAx(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_SerAx(t, l, oNewVal); - }); - val.addAxis(oNewVal); + else if (c_oserct_chartExBinningINTERVAL === type) + { + val.setIntervalClosed(oThis.ReadCT_IntervalClosedSide()); } - else if (c_oserct_plotareaVALAX === type) { - var oNewVal = new AscFormat.CValAx(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_ValAx(t, l, oNewVal); - }); - val.addAxis(oNewVal); - //if(!AscFormat.isRealNumber(oNewVal.crossBetween)) - //{ - // oNewVal.setCrossBetween(AscFormat.CROSS_BETWEEN_BETWEEN); - //} + else if (c_oserct_chartExBinningUNDERVAL === type) + { + val.setUnderflow(this.stream.GetDoubleLE()); } - else if (c_oserct_plotareaDTABLE === type) { - var oNewVal = new AscFormat.CDTable(); + else if (c_oserct_chartExBinningUNDERAUTO === type) + { + this.stream.GetUChar(); + val.setUnderflow(undefined); + } + else if (c_oserct_chartExBinningOVERVAL === type) + { + val.setOverflow(this.stream.GetDoubleLE()); + } + else if (c_oserct_chartExBinningOVERAUTO === type) + { + val.setOverflow(this.stream.GetUChar()); + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_PosAlign = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_posalignMIN: val = AscFormat.POS_ALIGN_MIN; break; + case st_posalignCTR: val = AscFormat.POS_ALIGN_CTR; break; + case st_posalignMAX: + default: val = AscFormat.POS_ALIGN_MAX; break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_SidePos = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_sideposL: val = AscFormat.SIDE_POS_L; break; + case st_sideposT: val = AscFormat.SIDE_POS_T; break; + case st_sideposR: val = AscFormat.SIDE_POS_R; break; + case st_sideposB: + default: val = AscFormat.SIDE_POS_B; break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_ChartExTitle = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExTitleTX === type) + { + var oNewVal = new AscFormat.CChartText(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DTable(t, l, oNewVal); + return oThis.ReadCT_Text(t, l, oNewVal); }); - val.setDTable(oNewVal); + oNewVal.setChart(this.curChart); + val.setTx(oNewVal); } - else if (c_oserct_plotareaSPPR === type) { + else if (c_oserct_chartExTitleTXPR === type) + { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_chartExTitleSPPR === type) + { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_plotareaEXTLST === type) { - var oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); - }); - // val.m_extLst = oNewVal; + else if (c_oserct_chartExTitlePOS === type) + { + val.setPos(oThis.ReadCT_SidePos()); + } + else if (c_oserct_chartExTitleALIGN === type) + { + val.setAlign(oThis.ReadCT_PosAlign()); + } + else if (c_oserct_chartExTitleOVERLAY === type) + { + val.setOverlay(this.stream.GetBool()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_Thickness = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_ChartExLegend = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_thicknessVAL === type) { - val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); + var oNewVal; + if (c_oserct_chartExLegendTXPR === type) + { + val.setTxPr(this.ReadTxPr(length)); + val.txPr.setParent(val); + } + else if (c_oserct_chartExLegendSPPR === type) + { + val.setSpPr(this.ReadSpPr(length)); + } + else if (c_oserct_chartExLegendPOS === type) + { + let nPos = c_oAscChartLegendShowSettings.top; + switch (this.stream.GetUChar()) { + case sideBottom: nPos = c_oAscChartLegendShowSettings.bottom; break; + case sideLeft: nPos = c_oAscChartLegendShowSettings.left; break; + case sideRight: nPos = c_oAscChartLegendShowSettings.right; break; + case sideTop: nPos = c_oAscChartLegendShowSettings.top; break; + } + val.setLegendPos(nPos); + } + else if (c_oserct_chartExLegendALIGN === type) + { + val.setAlign(oThis.ReadCT_PosAlign()); + } + else if (c_oserct_chartExLegendOVERLAY === type) + { + val.setOverlay(this.stream.GetBool()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_Surface = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Text = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_surfaceTHICKNESS === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Thickness(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setThickness(oNewVal.m_val); - } - else if (c_oserct_surfaceSPPR === type) { - val.setSpPr(this.ReadSpPr(length)); - } - else if (c_oserct_surfacePICTUREOPTIONS === type) { - var oNewVal = new AscFormat.CPictureOptions(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PictureOptions(t, l, oNewVal); - }); - val.setPictureOptions(oNewVal); + var oNewVal; + if (c_oserct_chartExTextRICH === type) + { + // var oNewVal = new AscFormat.CTextBody(); + // res = this.bcr.Read1(length, function (t, l) { + // return oThis.ReadCT_TextBody(t, l, oNewVal); + // }); + // val.setRich(oNewVal); + val.setRich(this.ReadTxPr(length)); + val.rich.setParent(val); } - else if (c_oserct_surfaceEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_chartExTextDATA === type) + { + var oNewVal = new AscFormat.CTextData(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_TextData(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + val.setTxData(oNewVal); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_Perspective = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_TextData = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_perspectiveVAL === type) { - var oNewVal; - oNewVal = this.stream.GetUChar(); - val.m_val = oNewVal; + var oNewVal; + if (c_oserct_chartExTextDataFORMULA === type) + { + var oNewVal = new AscFormat.CFormula(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_Formula(t, l, oNewVal); + }); + val.setF(oNewVal); + } + else if (c_oserct_chartExTextDataVALUE === type) + { + val.setV(this.stream.GetString2LE(length)); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_DepthPercent = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Data = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_depthpercentVAL === type) { - var oNewVal; - oNewVal = this.stream.GetString2LE(length); - val.m_val = oNewVal; + var oNewVal; + if (c_oserct_chartExDataID === type) + { + val.setId(this.stream.GetULongLE()); + } + else if (c_oserct_chartExDataSTRDIMENSION === type) + { + var oNewVal = new AscFormat.CStringDimension(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_StringDimension(t, l, oNewVal); + }); + val.addDimension(oNewVal); + } + else if (c_oserct_chartExDataNUMDIMENSION === type) + { + var oNewVal = new AscFormat.CNumericDimension(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_NumericDimension(t, l, oNewVal); + }); + val.addDimension(oNewVal); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_RotY = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Subtotals = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_rotyVAL === type) { - var oNewVal; - oNewVal = this.stream.GetULongLE(); - val.m_val = oNewVal; + var oNewVal; + if (c_oserct_chartExSubtotalsIDX === type) + { + val.addIdx(this.stream.GetULongLE()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_HPercent = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_SeriesElementVisibilities = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_hpercentVAL === type) { - val.m_val = this.ParsePersent(this.stream.GetString2LE(length)); + var oNewVal; + if (c_oserct_chartExSeriesVisibilitiesCONNECTOR === type) + { + val.setConnectorLines(this.stream.GetBool()); + } + else if (c_oserct_chartExSeriesVisibilitiesMEANLINE === type) + { + val.setMeanLine(this.stream.GetBool()); + } + else if (c_oserct_chartExSeriesVisibilitiesMEANMARKER === type) + { + val.setMeanMarker(this.stream.GetBool()); + } + else if (c_oserct_chartExSeriesVisibilitiesNONOUTLIERS === type) + { + val.setNonoutliers(this.stream.GetBool()); + } + else if (c_oserct_chartExSeriesVisibilitiesOUTLIERS === type) + { + val.setOutliers(this.stream.GetBool()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_RotX = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_CategoryAxisScaling = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_rotxVAL === type) { - var oNewVal; - oNewVal = this.stream.GetChar(); - val.m_val = oNewVal; + var oNewVal; + if (c_oserct_chartExCatScalingGAPVAL === type) + { + val.setGapWidth(this.stream.GetDoubleLE()); + } + else if (c_oserct_chartExCatScalingGAPAUTO === type) + { + this.stream.GetUChar(); + val.setGapWidth(undefined); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_View3D = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_ValueAxisScaling = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_view3dROTX === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_RotX(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setRotX(oNewVal.m_val); + var oNewVal; + if (c_oserct_chartExValScalingMAXAUTO === type) + { + val.setMax(this.stream.GetUChar()); } - else if (c_oserct_view3dHPERCENT === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_HPercent(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setHPercent(oNewVal.m_val); + else if (c_oserct_chartExValScalingMAXVAL === type) + { + val.setMax(this.stream.GetDoubleLE()); } - else if (c_oserct_view3dROTY === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_RotY(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setRotY(oNewVal.m_val); + else if (c_oserct_chartExValScalingMINAUTO === type) + { + val.setMin(this.stream.GetUChar()); } - else if (c_oserct_view3dDEPTHPERCENT === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DepthPercent(t, l, oNewVal); - }); - if (null != oNewVal.m_val){ - var nPercent = parseInt(oNewVal.m_val) - if(AscFormat.isRealNumber(nPercent)){ - val.setDepthPercent(nPercent); - } - } + else if (c_oserct_chartExValScalingMINVAL === type) + { + val.setMin(this.stream.GetDoubleLE()); } - else if (c_oserct_view3dRANGAX === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setRAngAx(oNewVal.m_val); + else if (c_oserct_chartExValScalingMAJUNITAUTO === type) + { + val.setMajorUnit(this.stream.GetUChar()); } - else if (c_oserct_view3dPERSPECTIVE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Perspective(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setPerspective(oNewVal.m_val); + else if (c_oserct_chartExValScalingMAJUNITVAL === type) + { + val.setMajorUnit(this.stream.GetDoubleLE()); } - else if (c_oserct_view3dEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_chartExValScalingMINUNITAUTO === type) + { + val.setMinorUnit(this.stream.GetUChar()); + } + else if (c_oserct_chartExValScalingMINUNITVAL === type) + { + val.setMinorUnit(this.stream.GetDoubleLE()); + } + else + { + res = c_oSerConstants.ReadUnknown; + } + return res; +}; +BinaryChartReader.prototype.ReadCT_ChartExAxisUnit = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_axisunitHUNDREDS: val = AscFormat.AXIS_UNIT_HUNDREDS; break; + case st_axisunitTHOUSANDS: val = AscFormat.AXIS_UNIT_TEN_THOUSANDS; break; + case st_axisunitTENTHOUSANDS: val = AscFormat.AXIS_UNIT_TEN_MILLIONS; break; + case st_axisunitHUNDREDTHOUSANDS: val = AscFormat.AXIS_UNIT_HUNDRED_THOUSANDS; break; + case st_axisunitMILLIONS: val = AscFormat.AXIS_UNIT_MILLIONS; break; + case st_axisunitTENMILLIONS: val = AscFormat.AXIS_UNIT_TEN_MILLIONS; break; + case st_axisunitHUNDREDMILLIONS: val = AscFormat.AXIS_UNIT_HUNDRED_MILLIONS; break; + case st_axisunitBILLIONS: val = AscFormat.AXIS_UNIT_BILLIONS; break; + case st_axisunitTRILLIONS: val = AscFormat.AXIS_UNIT_TRILLIONS; break; + case st_axisunitPERCENTAGE: + default: val = AscFormat.AXIS_UNIT_PERCENTAGE; break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_AxisUnits = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExAxisUnitLABEL === type) + { + var oNewVal = new AscFormat.CAxisUnitsLabel(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_AxisUnitsLabel(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + val.setUnitsLabel(oNewVal); + } + else if (c_oserct_chartExAxisUnitTYPE === type) + { + val.setUnit(oThis.ReadCT_ChartExAxisUnit()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_PivotFmt = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_AxisUnitsLabel = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_pivotfmtIDX === type) { - var oNewVal = { m_val: null }; + var oNewVal; + if (c_oserct_chartExAxisUnitsLabelTEXT === type) + { + var oNewVal = new AscFormat.CChartText(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); + return oThis.ReadCT_Text(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setIdx(oNewVal.m_val); + val.setTx(oNewVal); } - else if (c_oserct_pivotfmtSPPR === type) { + else if (c_oserct_chartExAxisUnitsLabelSPPR === type) + { val.setSpPr(this.ReadSpPr(length)); } - else if (c_oserct_pivotfmtTXPR === type) { + else if (c_oserct_chartExAxisUnitsLabelTXPR === type) + { val.setTxPr(this.ReadTxPr(length)); val.txPr.setParent(val); } - else if (c_oserct_pivotfmtMARKER === type) { - var oNewVal = new AscFormat.CMarker(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Marker(t, l, oNewVal); - }); - val.setMarker(oNewVal); - } - else if (c_oserct_pivotfmtDLBL === type) { - var oNewVal = new AscFormat.CDLbl(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DLbl(t, l, oNewVal); - }); - oNewVal.correctValues(); - val.setLbl(oNewVal); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_pivotfmtEXTLST === type) { - var oNewVal = {}; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); - }); - // val.m_extLst = oNewVal; + return res; +}; +BinaryChartReader.prototype.ReadCT_TickMarksType = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_tickmarkstypeIN: val = AscFormat.TICK_MARKS_TYPE_IN; break; + case st_tickmarkstypeOUT: val = AscFormat.TICK_MARKS_TYPE_OUT; break; + case st_tickmarkstypeCROSS: val = AscFormat.TICK_MARKS_TYPE_CROSS; break; + case st_tickmarkstypeNONE: + default: val = AscFormat.TICK_MARKS_TYPE_NONE; break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_TickMarks = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExTickMarksTYPE === type) + { + val.setType(oThis.ReadCT_TickMarksType()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_pivotFmts = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_Gridlines = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_pivotfmtsPIVOTFMT === type) { - var oNewVal = new AscFormat.CPivotFmt(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PivotFmt(t, l, oNewVal); - }); - val.setPivotFmts(oNewVal); + var oNewVal; + if (c_oserct_chartExGridlinesSPPR === type) + { + val.setSpPr(this.ReadSpPr(length)); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_Chart = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_QuartileMethod = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_quartilemethodINCLUSIVE: val = AscFormat.QUARTILE_METHOD_INCLUSIVE; break; + case st_quartilemethodEXCLUSIVE: + default: val = AscFormat.QUARTILE_METHOD_EXCLUSIVE; break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_Statistics = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_chartTITLE === type) { - var oNewVal = new AscFormat.CTitle(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Title(t, l, oNewVal); - }); - val.setTitle(oNewVal); + var oNewVal; + if (c_oserct_chartExStatisticsMETHOD === type) + { + val.setQuartileMethod(oThis.ReadCT_QuartileMethod()); } - else if (c_oserct_chartAUTOTITLEDELETED === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setAutoTitleDeleted(oNewVal.m_val); - else - val.setAutoTitleDeleted(true); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_chartPIVOTFMTS === type) { - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_pivotFmts(t, l, val); - }); + return res; +}; +BinaryChartReader.prototype.ReadCT_StringDimensionType = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_stringdimensiontypeCAT: val = AscFormat.STRING_DIMENSION_TYPE_CAT; break; + case st_stringdimensiontypeCOLORSTR: + default: val = AscFormat.STRING_DIMENSION_TYPE_COLOR_STR; break; } - else if (c_oserct_chartVIEW3D === type) { - var oNewVal = new AscFormat.CView3d(); - - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_View3D(t, l, oNewVal); - }); - val.setView3D(oNewVal); + return val; +}; +BinaryChartReader.prototype.ReadCT_StringDimension = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExDataDimensionTYPE === type) + { + val.setType(oThis.ReadCT_StringDimensionType()); } - else if (c_oserct_chartFLOOR === type) { - var oNewVal = new AscFormat.CChartWall(); + else if (c_oserct_chartExDataDimensionFORMULA === type) + { + var oNewVal = new AscFormat.CFormula(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Surface(t, l, oNewVal); + return oThis.ReadCT_Formula(t, l, oNewVal); }); - val.setFloor(oNewVal); + val.setF(oNewVal); } - else if (c_oserct_chartSIDEWALL === type) { - var oNewVal = new AscFormat.CChartWall(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Surface(t, l, oNewVal); - }); - val.setSideWall(oNewVal); + else if (c_oserct_chartExDataDimensionNF === type) + { + val.setNf(this.stream.GetString2LE(length)); } - else if (c_oserct_chartBACKWALL === type) { - var oNewVal = new AscFormat.CChartWall(); + else if (c_oserct_chartExDataDimensionSTRINGLEVEL === type) + { + var oNewVal = new AscFormat.CStrCache(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Surface(t, l, oNewVal); + return oThis.ReadCT_StringLevel(t, l, oNewVal); }); - val.setBackWall(oNewVal); + val.addLevelData(oNewVal); } - else if (c_oserct_chartPLOTAREA === type) { - var oNewVal = new AscFormat.CPlotArea(); - var aChartWithAxis = []; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_PlotArea(t, l, oNewVal, aChartWithAxis); - }); - oNewVal.initPostOpen(aChartWithAxis); - val.setPlotArea(oNewVal); + else + { + res = c_oSerConstants.ReadUnknown; } - else if (c_oserct_chartLEGEND === type) { - var oNewVal = new AscFormat.CLegend(); - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Legend(t, l, oNewVal); - }); - oNewVal.updateLegendPos(); - val.setLegend(oNewVal); + return res; +}; +BinaryChartReader.prototype.ReadCT_NumericDimensionType = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_numericdimensiontypeVAL: val = AscFormat.NUMERIC_DIMENSION_TYPE_VAL; break; + case st_numericdimensiontypeX: val = AscFormat.NUMERIC_DIMENSION_TYPE_X; break; + case st_numericdimensiontypeY: val = AscFormat.NUMERIC_DIMENSION_TYPE_Y; break; + case st_numericdimensiontypeSIZE: val = AscFormat.NUMERIC_DIMENSION_TYPE_SIZE; break; + case st_numericdimensiontypeCOLORVAL: + default: val = AscFormat.NUMERIC_DIMENSION_TYPE_COLOR_VAL; break; } - else if (c_oserct_chartPLOTVISONLY === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setPlotVisOnly(oNewVal.m_val); + return val; +}; +BinaryChartReader.prototype.ReadCT_NumericDimension = function (type, length, val) { + var res = c_oSerConstants.ReadOk; + var oThis = this; + var oNewVal; + if (c_oserct_chartExDataDimensionTYPE === type) + { + val.setType(oThis.ReadCT_NumericDimensionType()); } - else if (c_oserct_chartDISPBLANKSAS === type) { - var oNewVal = { m_val: null }; + else if (c_oserct_chartExDataDimensionFORMULA === type) + { + var oNewVal = new AscFormat.CFormula(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_DispBlanksAs(t, l, oNewVal); + return oThis.ReadCT_Formula(t, l, oNewVal); }); - if (null != oNewVal.m_val) - val.setDispBlanksAs(oNewVal.m_val); + val.setF(oNewVal); } - else if (c_oserct_chartSHOWDLBLSOVERMAX === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setShowDLblsOverMax(oNewVal.m_val); - else - val.setShowDLblsOverMax(true); + else if (c_oserct_chartExDataDimensionNF === type) + { + val.setNf(this.stream.GetString2LE(length)); } - else if (c_oserct_chartEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_chartExDataDimensionNUMERICLEVEL === type) + { + var oNewVal = new AscFormat.CNumLit(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_NumericLevel(t, l, oNewVal); }); - // val.m_extLst = oNewVal; + val.addLevelData(oNewVal); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_Protection = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_FormulaDirection = function () { + let val = null; + switch (this.stream.GetUChar()) { + case st_formuladirectionCOL: val = AscFormat.FORMULA_DIRECTION_COL; break; + case st_formuladirectionROW: + default: val = AscFormat.FORMULA_DIRECTION_ROW; break; + } + return val; +}; +BinaryChartReader.prototype.ReadCT_Formula = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_protectionCHARTOBJECT === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setChartObject(oNewVal.m_val); - } - else if (c_oserct_protectionDATA === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setData(oNewVal.m_val); - } - else if (c_oserct_protectionFORMATTING === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setFormatting(oNewVal.m_val); - } - else if (c_oserct_protectionSELECTION === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setSelection(oNewVal.m_val); + var oNewVal; + if (c_oserct_chartExFormulaCONTENT === type) + { + val.setContent(this.stream.GetString2LE(length)); } - else if (c_oserct_protectionUSERINTERFACE === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_Boolean(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setUserInterface(oNewVal.m_val); + else if (c_oserct_chartExFormulaDIRECTION === type) + { + val.setDir(oThis.ReadCT_FormulaDirection()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_PivotSource = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_StringLevel = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_pivotsourceNAME === type) { + var oNewVal; + if (c_oserct_chartExDataLevelNAME === type) + { val.setName(this.stream.GetString2LE(length)); } - else if (c_oserct_pivotsourceFMTID === type) { - var oNewVal = { m_val: null }; - res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_UnsignedInt(t, l, oNewVal); - }); - if (null != oNewVal.m_val) - val.setFmtId(oNewVal.m_val); + else if (c_oserct_chartExDataLevelCOUNT === type) + { + val.setPtCount(this.stream.GetULongLE()); } - else if (c_oserct_pivotsourceEXTLST === type) { - var oNewVal = {}; + else if (c_oserct_chartExDataLevelPT === type) + { + var oNewVal = new AscFormat.CStringPoint(); res = this.bcr.Read1(length, function (t, l) { - return oThis.ReadCT_extLst(t, l, oNewVal); + return oThis.ReadCT_StringValue(t, l, oNewVal); }); - // if (null == val.m_extLst) - // val.m_extLst = []; - // val.m_extLst.push(oNewVal); + val.addPt(oNewVal); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_Style1 = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_NumericLevel = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_style1VAL === type) { - var oNewVal; - oNewVal = this.stream.GetUChar(); - val.m_val = oNewVal; + var oNewVal; + if (c_oserct_chartExDataLevelNAME === type) + { + val.setName(this.stream.GetString2LE(length)); + } + else if (c_oserct_chartExDataLevelCOUNT === type) + { + val.setPtCount(this.stream.GetULongLE()); + } + else if (c_oserct_chartExDataLevelPT === type) + { + var oNewVal = new AscFormat.CNumericPoint(); + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_NumericValue(t, l, oNewVal); + }); + val.addPt(oNewVal); + } + else if (c_oserct_chartExDataLevelFORMATCODE === type) + { + val.setFormatCode(this.stream.GetString2LE(length)); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_Style = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_StringValue = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_styleVAL === type) { - var oNewVal; - oNewVal = this.stream.GetUChar(); - val.m_val = oNewVal; + var oNewVal; + if (c_oserct_chartExDataValueIDX === type) + { + val.setIdx(this.stream.GetULongLE()); + } + else if (c_oserct_chartExDataValueCONTENT === type) + { + val.setVal(this.stream.GetString2LE(length)); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; -BinaryChartReader.prototype.ReadCT_TextLanguageID = function (type, length, val) { +BinaryChartReader.prototype.ReadCT_NumericValue = function (type, length, val) { var res = c_oSerConstants.ReadOk; var oThis = this; - if (c_oserct_textlanguageidVAL === type) { - var oNewVal; - oNewVal = this.stream.GetString2LE(length); - val.m_val = oNewVal; + var oNewVal; + if (c_oserct_chartExDataValueIDX === type) + { + val.setIdx(this.stream.GetULongLE()); + } + else if (c_oserct_chartExDataValueCONTENT === type) + { + val.setVal(this.stream.GetDoubleLE()); } else + { res = c_oSerConstants.ReadUnknown; + } return res; }; BinaryChartReader.prototype.ReadAlternateContent = function (type, length, val) { @@ -12178,4 +14729,9 @@ BinaryChartReader.prototype.ReadAlternateContentFallback = function (type, lengt window['AscFormat'].ERR_VAL_TYPE_STD_DEV = ERR_VAL_TYPE_STD_DEV; window['AscFormat'].ERR_VAL_TYPE_STD_ERR = ERR_VAL_TYPE_STD_ERR; + window['AscFormat'].TICK_LABEL_POSITION_HIGH = st_ticklblposHIGH; + window['AscFormat'].TICK_LABEL_POSITION_LOW = st_ticklblposLOW; + window['AscFormat'].TICK_LABEL_POSITION_NEXT_TO = st_ticklblposNEXTTO; + window['AscFormat'].TICK_LABEL_POSITION_NONE = st_ticklblposNONE; + })(window); diff --git a/common/SerializeCommonWordExcel.js b/common/SerializeCommonWordExcel.js index ecd509e29e..837a994af3 100644 --- a/common/SerializeCommonWordExcel.js +++ b/common/SerializeCommonWordExcel.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -83,7 +83,8 @@ var c_oSerBorderType = { Value: 3, ColorTheme: 4, SpacePoint: 5, - Size8Point: 6 + Size8Point: 6, + ValueType: 7 }; var c_oSerBordersType = { left: 0, @@ -239,6 +240,10 @@ BinaryCommonWriter.prototype.WriteBorder = function(border) this.memory.WriteByte(c_oSerBorderType.Value); this.memory.WriteByte(c_oSerPropLenType.Byte); this.memory.WriteByte(border.Value); + + this.memory.WriteByte(c_oSerBorderType.ValueType); + this.memory.WriteByte(c_oSerPropLenType.Long); + this.memory.WriteLong(border.getValue()); } }; BinaryCommonWriter.prototype.WriteBorders = function(Borders) @@ -1283,6 +1288,13 @@ function isRealObject(obj) return 0; return this.data[this.cur++]; } + this.GetUChar_TypeNode = function() + { + if (this.cur >= this.size) + return c_nodeAttribute.nodeAttributeEnd; + return this.data[this.cur++]; + } + this.GetBool = function() { if (this.cur >= this.size) @@ -1332,12 +1344,12 @@ function isRealObject(obj) this.ReadByteFromPPTY = function () { - var value = 0; + var value = null; var end = this.cur + this.GetULong() + 4; this.Skip2(1); while (true) { - var _at = this.GetUChar(); + var _at = this.GetUChar_TypeNode(); if (_at === c_nodeAttribute.nodeAttributeEnd) { break; diff --git a/common/Shapes/EditorSettings.js b/common/Shapes/EditorSettings.js index a0e90e87ac..91407fdddc 100644 --- a/common/Shapes/EditorSettings.js +++ b/common/Shapes/EditorSettings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/Shapes/Serialize.js b/common/Shapes/Serialize.js index ad5dd851e9..841d3e668a 100644 --- a/common/Shapes/Serialize.js +++ b/common/Shapes/Serialize.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -173,6 +173,7 @@ function BinaryPPTYLoader() this.oConnectedObjects = {}; this.map_shapes_by_id = {}; this.fields = []; + this.smartarts = []; this.ClearConnectedObjects = function(){ @@ -312,6 +313,15 @@ function BinaryPPTYLoader() this.ImageMapChecker = null; }; + this.GenerateSmartArts = function () { + while (this.smartarts.length) { + const smartart = this.smartarts.pop(); + smartart.generateDrawingPart(); + } + }; + this.ClearSmartArts = function () { + this.smartarts.length = 0; + }; this.LoadDocument = function() { @@ -385,7 +395,6 @@ function BinaryPPTYLoader() // CustomProperties s.Seek2(_main_tables["48"]); - this.presentation.CustomProperties = new AscCommon.CCustomProperties(); this.presentation.CustomProperties.fromStream(s); } } @@ -691,6 +700,11 @@ function BinaryPPTYLoader() } } } + if (this.IsThemeLoader) { + this.ClearSmartArts(); + } else { + this.GenerateSmartArts(); + } if (this.Api != null && !this.IsThemeLoader) { @@ -6367,7 +6381,7 @@ function BinaryPPTYLoader() { case 0: { - shape.attrUseBgFill = s.GetBool(); + shape.setUseBgFill(s.GetBool()); break; } default: @@ -6606,18 +6620,114 @@ function BinaryPPTYLoader() return shape; }; + this.IsNoSlideSpTree = function () + { + return this.TempMainObject && AscFormat.isRealNumber(this.TempMainObject.kind) && (this.TempMainObject.kind !== AscFormat.TYPE_KIND.SLIDE); + }; + this.ReadSpTreeElement = function() + { + let s = this.stream; + + let bIsNoSlideSpTree = this.IsNoSlideSpTree(); + let _type = s.GetUChar(); + let _object; + switch (_type) + { + case 1: + { + _object = this.ReadShape(); + if (!IsHiddenObj(_object) || bIsNoSlideSpTree) + { + _object.setParent2(this.TempMainObject); + } + else + { + _object = null; + } + break; + } + case 6: + case 2: + case 7: + case 8: + { + _object = this.ReadPic(_type); + if(_type === 6 && !_object.checkCorrect()) + { + _object = null; + } + break; + } + case 3: + { + _object = this.ReadCxn(); + break; + } + case 4: + { + _object = this.ReadGroupShape(); + break; + } + case 5: + { + _object = this.ReadGrFrame(); + break; + } + case 0x99: + { + _object = this.ReadSpTreeElement(); + break; + } + default: + { + s.SkipRecord(); + break; + } + } + if(_object) + { + if (!IsHiddenObj(_object) || bIsNoSlideSpTree) + { + _object.setParent2(this.TempMainObject); + } + else + { + _object = null + } + } + let nCurPos = s.cur; + let nType = s.GetUChar(); + let oAltDrawing = null; + if(nType === 0x99) + { + let nAltContentLen = s.GetULong(); + let nEndPos = s.cur + nAltContentLen; + if(!_object || !_object.isSupported()) + oAltDrawing = this.ReadSpTreeElement(); + if(oAltDrawing) + { + _object = oAltDrawing; + } + s.Seek2(nEndPos); + } + else + { + s.Seek2(nCurPos); + } + return _object; + }; this.ReadGroupShapeMain = function() { - var s = this.stream; + let s = this.stream; - var shapes = []; + let shapes = []; - var _rec_start = s.cur; - var _end_rec = _rec_start + s.GetULong() + 4; + let _rec_start = s.cur; + let _end_rec = _rec_start + s.GetULong() + 4; + let _object; s.Skip2(5); // type SPTREE + len - let bIsNoSlideSpTree = this.TempMainObject && AscFormat.isRealNumber(this.TempMainObject.kind) && (this.TempMainObject.kind !== AscFormat.TYPE_KIND.SLIDE); while (s.cur < _end_rec) { var _at = s.GetUChar(); @@ -6646,71 +6756,10 @@ function BinaryPPTYLoader() if (__len == 0) continue; - var _type = s.GetUChar(); - - switch (_type) + _object = this.ReadSpTreeElement(); + if(_object) { - case 1: - { - var _object = this.ReadShape(); - if (!IsHiddenObj(_object) || bIsNoSlideSpTree) - { - shapes[shapes.length] = _object; - _object.setParent2(this.TempMainObject); - } - break; - } - case 6: - case 2: - case 7: - case 8: - { - var _object = this.ReadPic(_type); - if (!IsHiddenObj(_object) || bIsNoSlideSpTree) - { - if(_type !== 6 || _object.checkCorrect()) - { - shapes[shapes.length] = _object; - _object.setParent2(this.TempMainObject); - } - } - break; - } - case 3: - { - var _object = this.ReadCxn(); - if (!IsHiddenObj(_object) || bIsNoSlideSpTree) - { - shapes[shapes.length] = _object; - _object.setParent2(this.TempMainObject); - } - break; - } - case 4: - { - var _object = this.ReadGroupShape(); - if (!IsHiddenObj(_object) || bIsNoSlideSpTree) - { - shapes[shapes.length] = _object; - _object.setParent2(this.TempMainObject); - } - break; - } - case 5: - { - var _ret = this.ReadGrFrame(); - if (null != _ret) - { - shapes[shapes.length] = _ret; - _ret.setParent2(this.TempMainObject); - } - break; - } - default: - { - s.SkipRecord(); - break; - } + shapes[shapes.length] = _object; } } break; @@ -6858,7 +6907,7 @@ function BinaryPPTYLoader() { var s = this.stream; - var shape = new AscFormat.CConnectionShape(); + var shape = false == Asc.editor.isPdfEditor() ? new AscFormat.CConnectionShape() : new AscPDF.CPdfConnectionShape(); shape.setBDeleted(false); var _rec_start = s.cur; @@ -7115,9 +7164,37 @@ function BinaryPPTYLoader() } break; } + case 7: // chartEx + { + var _length = s.GetLong(); + var _pos = s.cur; + + if(typeof AscFormat.CChartSpace !== "undefined" && _length) + { + var _stream = new AscCommon.FT_Stream2(); + _stream.data = s.data; + _stream.pos = s.pos; + _stream.cur = s.cur; + _stream.size = s.size; + _chart = new AscFormat.CChartSpace(); + _chart.setBDeleted(false); + AscCommon.pptx_content_loader.ImageMapChecker = this.ImageMapChecker; + AscCommon.pptx_content_loader.Reader.ImageMapChecker = this.ImageMapChecker; + var oBinaryChartReader = new AscCommon.BinaryChartReader(_stream); + oBinaryChartReader.ExternalReadCT_ChartExSpace(_length, _chart, this.presentation); + if(!_chart.hasCharts()) + { + _chart = null; + } + } + + s.Seek2(_pos + _length); + break; + } case 8://smartArt { _smartArt = this.ReadSmartArt(); + this.smartarts.push(_smartArt); break; } case 9: @@ -7238,6 +7315,7 @@ function BinaryPPTYLoader() _smartArt = new AscFormat.SmartArt(); _smartArt.fromPPTY(this); _smartArt.setBDeleted(false); + _smartArt.generateDefaultStructures(); _smartArt.checkNodePointsAfterRead(); } else @@ -10461,6 +10539,23 @@ function BinaryPPTYLoader() return GrObject; }); }; + this.ReadGraphicObject2 = function(stream, presentation, drawingDocument) { + var oThis = this; + return this.ReadPPTXElement(undefined, stream, function() { + if(presentation) + { + oThis.Reader.presentation = presentation; + } + if(drawingDocument) + { + oThis.Reader.DrawingDocument = drawingDocument; + } + oThis.LogicDocument = null; + var s = oThis.stream; + var GrObject = oThis.Reader.ReadGraphicObject(); + return GrObject; + }); + }; this.ReadTextBody = function(reader, stream, shape, presentation, drawingDocument) { var oThis = this; @@ -10542,7 +10637,7 @@ function BinaryPPTYLoader() { case 0: { - shape.attrUseBgFill = s.GetBool(); + shape.setUseBgFill(s.GetBool()); break; } default: @@ -10785,7 +10880,19 @@ function BinaryPPTYLoader() var s = this.stream; var isOle = (type === 6); - var pic = isOle ? new AscFormat.COleObject() : new AscFormat.CImageShape(); + var pic; + if (isOle) + { + pic = new AscFormat.COleObject(this.TempMainObject) + } + else + { + if (Asc.editor.isPdfEditor()) + pic = new AscPDF.CPdfImage(); + else + pic = new AscFormat.CImageShape(this.TempMainObject); + } + pic.setBDeleted(false); pic.setParent(this.TempMainObject == null ? this.ParaDrawing : null); @@ -11305,6 +11412,7 @@ function BinaryPPTYLoader() this.BaseReader = null; if(!bClearStreamOnly) this.ImageMapChecker = {}; + this.Reader.ClearSmartArts(); }; } diff --git a/common/Shapes/SerializeWriter.js b/common/Shapes/SerializeWriter.js index a9018b2310..ee810d6bf2 100644 --- a/common/Shapes/SerializeWriter.js +++ b/common/Shapes/SerializeWriter.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -582,7 +582,7 @@ function CBinaryFileWriter() this.WriteCore(presentation.Core, presentation.Api); // Core - if (presentation.CustomProperties) + if (presentation.CustomProperties && presentation.CustomProperties.hasProperties()) this.WriteCustomProperties(presentation.CustomProperties, presentation.Api); // ViewProps @@ -2971,8 +2971,10 @@ function CBinaryFileWriter() { oThis.WriteRecord2(1, txBody.lstStyle, oThis.WriteTextListStyle); } - var _content = txBody.content.Content; - oThis.WriteRecordArray(2, 0, _content, oThis.WriteParagraph); + var _content = txBody.content && txBody.content.Content; + if (_content) { + oThis.WriteRecordArray(2, 0, _content, oThis.WriteParagraph); + } }; this.WriteParagraph = function(paragraph, startPos, endPos) @@ -3329,7 +3331,7 @@ function CBinaryFileWriter() else{ oThis.StartRecord(1); oThis.WriteUChar(g_nodeAttributeStart); - oThis._WriteBool2(0, shape.attrUseBgFill); + oThis._WriteBool2(0, shape.useBgFill); oThis.WriteUChar(g_nodeAttributeEnd); } @@ -3507,7 +3509,14 @@ function CBinaryFileWriter() } case AscDFH.historyitem_type_ChartSpace: { - oThis.WriteRecord2(3, grObj, oThis.WriteChart2); + if(grObj.isChartEx()) + { + oThis.WriteRecord2(7, grObj, oThis.WriteChart2); + } + else + { + oThis.WriteRecord2(3, grObj, oThis.WriteChart2); + } break; } case AscDFH.historyitem_type_SlicerView: @@ -3548,7 +3557,11 @@ function CBinaryFileWriter() oThis.UseContinueWriter++; var oBinaryChartWriter = new AscCommon.BinaryChartWriter(_memory); - oBinaryChartWriter.WriteCT_ChartSpace(grObj); + if (grObj.isChartEx()) { + oBinaryChartWriter.WriteCT_ChartExSpace(grObj); + } else { + oBinaryChartWriter.WriteCT_ChartSpace(grObj); + } oThis.data = _memory.data; oThis.len = _memory.len; @@ -5226,7 +5239,7 @@ function CBinaryFileWriter() else{ _writer.StartRecord(1); _writer.WriteUChar(g_nodeAttributeStart); - _writer._WriteBool2(0, shape.attrUseBgFill); + _writer._WriteBool2(0, shape.useBgFill); _writer.WriteUChar(g_nodeAttributeEnd); } diff --git a/common/SmartArts/DefaultStructures.js b/common/SmartArts/DefaultStructures.js new file mode 100644 index 0000000000..7dbd5c3d30 --- /dev/null +++ b/common/SmartArts/DefaultStructures.js @@ -0,0 +1,1013 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +(function (window) { + const g_clr_accent1 = 0; + const g_clr_lt1 = 12; + const g_clr_tx1 = 15; + const g_clr_dk1 = 8; + + + + + function generateLayoutChildren(parent, children) { + if (!children) { + return; + } + for (let i = children.length - 1; i >= 0; i -= 1) { + const templateChild = children[i]; + let child; + if (templateChild.layoutNode) { + child = getLayoutNode(templateChild.layoutNode); + } else if (templateChild.varLst) { + child = getVarLst(templateChild.varLst); + } else if (templateChild.alg) { + child = getAlgorithm(templateChild.alg); + } else if (templateChild.shape) { + child = getSmartArtShape(templateChild.shape); + } else if (templateChild.presOf) { + child = getPresOf(templateChild.presOf); + } else if (templateChild.constrLst) { + child = getConstrLst(templateChild.constrLst); + } else if (templateChild.ruleLst) { + child = getRuleLst(templateChild.ruleLst); + } else if (templateChild.forEach) { + child = getForEach(templateChild.forEach); + } else if (templateChild.choose) { + child = getChoose(templateChild.choose); + } + if (child) { + if (parent.addToLst) { + parent.addToLst(0, child); + } else if (parent.addToLstList) { + parent.addToLstList(0, child); + } + + } + } + } + function getVarLst(info) { + const varLst = new AscFormat.VarLst(); + if (info.bulletEnabled) { + varLst.setBulletEnabled(new AscFormat.BulletEnabled()); + varLst.bulletEnabled.setVal(info.bulletEnabled.val); + } + if (info.dir) { + varLst.setDir(new AscFormat.DiagramDirection()); + } + if (info.resizeHandles) { + varLst.setResizeHandles(new AscFormat.ResizeHandles()); + varLst.resizeHandles.setVal(info.resizeHandles.val); + } + return varLst; + } + function getAlgorithm(info) { + const alg = new AscFormat.Alg(); + alg.setType(info.type); + if (info.params) { + for (let i = info.params.length - 1; i >= 0; i -= 1) { + const sampParam = info.params[i]; + const param = new AscFormat.Param(); + param.setType(sampParam.type); + param.setVal(sampParam.val); + alg.addToLstParam(0, param); + } + } + return alg; + } + function getSmartArtShape(info) { + const smartArtShape = new AscFormat.SShape(); + smartArtShape.setBlip(info.blip); + if (info.type !== undefined) { + smartArtShape.setType(info.type); + } + if (info.adjLst) { + smartArtShape.setAdjLst(new AscFormat.AdjLst()); + } + return smartArtShape; + } + function getPresOf(info) { + const presOf = new AscFormat.PresOf(); + if (info.axis !== undefined) { + presOf.addToLstAxis(0, getAxis(info.axis)); + } + if (info.ptType !== undefined) { + presOf.addToLstPtType(0, getPtType(info.ptType)); + } + return presOf; + } + function getConstrLst(info) { + const constrLst = new AscFormat.ConstrLst(); + for (let i = info.length - 1; i >= 0; i -= 1) { + const sampConstr = info[i]; + const constr = new AscFormat.Constr(); + if (sampConstr.type !== undefined) { + constr.setType(sampConstr.type); + } + if (sampConstr.refType !== undefined) { + constr.setRefType(sampConstr.refType); + } + if (sampConstr.for !== undefined) { + constr.setFor(sampConstr.for); + } + if (sampConstr.refFor !== undefined) { + constr.setRefFor(sampConstr.refFor); + } + if (sampConstr.forName !== undefined) { + constr.setForName(sampConstr.forName); + } + if (sampConstr.refForName !== undefined) { + constr.setRefForName(sampConstr.refForName); + } + if (sampConstr.fact !== undefined) { + constr.setFact(sampConstr.fact); + } + if (sampConstr.val !== undefined) { + constr.setVal(sampConstr.val); + } + if (sampConstr.op !== undefined) { + constr.setOp(sampConstr.op); + } + constrLst.addToLst(0, constr); + } + return constrLst; + } + function getRuleLst(info) { + const ruleLst = new AscFormat.RuleLst(); + for (let i = info.length - 1; i >= 0; i -= 1) { + const sampRule = info[i]; + const rule = new AscFormat.Rule(); + if (sampRule.type !== undefined) { + rule.setType(sampRule.type); + } + if (sampRule.for !== undefined) { + rule.setFor(sampRule.for); + } + if (sampRule.forName !== undefined) { + rule.setForName(sampRule.forName); + } + if (sampRule.fact !== undefined) { + rule.setFact(sampRule.fact); + } + if (sampRule.max !== undefined) { + rule.setMax(sampRule.max); + } + if (sampRule.val !== undefined) { + rule.setVal(sampRule.val); + } + ruleLst.addToLst(0, rule); + } + return ruleLst; + } + function getAxis(type) { + const axisType = new AscFormat.AxisType(); + axisType.setVal(type); + return axisType; + } + function getPtType(type) { + const ptType = new AscFormat.ElementType(); + ptType.setVal(type); + return ptType; + } + function getForEach(info) { + const forEach = new AscFormat.ForEach(); + forEach.setName(info.name); + forEach.addToLstAxis(0, getAxis(info.axis)); + forEach.addToLstPtType(0, getPtType(info.ptType)); + if (info.cnt !== undefined) { + forEach.addToLstCnt(0, info.cnt); + } + generateLayoutChildren(forEach, info.children); + return forEach; + } + function getChoose(info) { + const choose = new AscFormat.Choose(); + choose.setName(info.name); + const chooseElse = new AscFormat.Else(); + chooseElse.setName(info.layoutElse.name); + generateLayoutChildren(chooseElse, info.layoutElse.children); + choose.setElse(chooseElse); + for (let i = info.ifArray.length - 1; i >= 0; i -= 1) { + const ifInfo = info.ifArray[i]; + const chooseIf = new AscFormat.If(); + chooseIf.setName(ifInfo.name); + chooseIf.setFunc(ifInfo.func); + chooseIf.setArg(ifInfo.arg); + chooseIf.setVal(ifInfo.val); + chooseIf.setOp(ifInfo.op); + generateLayoutChildren(chooseIf, ifInfo.children); + choose.addToLstIf(0, chooseIf); + } + return choose; + } + function getLayoutNode(info) { + const layoutNode = new AscFormat.LayoutNode(); + const name = info.name; + layoutNode.setName(name); + generateLayoutChildren(layoutNode, info.children); + return layoutNode; + } + function getSampData(data) { + const sampData = new AscFormat.SampData(); + if (data.dataModel) { + const dataModel = new AscFormat.DataModel(); + if (data.dataModel.ptLst) { + const ptLst = new AscFormat.PtLst(); + for (let i = 0; i < data.dataModel.ptLst.length; i++) { + const sampPt = data.dataModel.ptLst[i]; + const pt = new AscFormat.Point(); + pt.setModelId(sampPt.id); + if (sampPt.type !== undefined) { + pt.setType(sampPt.type); + } + if (sampPt.prSet) { + pt.setPrSet(new AscFormat.PrSet()); + if (sampPt.prSet.phldr) { + pt.prSet.setPhldr(sampPt.prSet.phldr); + } + } + + ptLst.addToLst(ptLst.list.length, pt); + + } + dataModel.setPtLst(ptLst); + } + + if (data.dataModel.cxnLst) { + const cxnLst = new AscFormat.CxnLst(); + for (let i = 0; i < data.dataModel.cxnLst.length; i += 1) { + const sampCxn = data.dataModel.cxnLst[i]; + const cxn = new AscFormat.Cxn(); + cxn.setModelId(sampCxn.modelId); + cxn.setDestId(sampCxn.destId); + cxn.setDestOrd(sampCxn.destOrd); + cxn.setSrcId(sampCxn.srcId); + cxn.setSrcOrd(sampCxn.srcOrd); + cxnLst.addToLst(cxnLst.list.length, cxn); + } + dataModel.setCxnLst(cxnLst); + } + if (data.dataModel.bg) { + dataModel.setBg(new AscFormat.BgFormat()); + } + if (data.dataModel.whole) { + dataModel.setWhole(new AscFormat.Whole()); + } + sampData.setDataModel(dataModel); + } + return sampData; + } + + function getScene3D() { + const scene3d = new AscFormat.Scene3d(); + scene3d.setCamera(new AscFormat.Camera()); + scene3d.camera.setPrst(AscFormat.Camera_prst_orthographicFront); + scene3d.setLightRig(new AscFormat.LightRig()); + scene3d.lightRig.setRig(AscFormat.LightRig_rig_threePt); + scene3d.lightRig.setDir(AscFormat.LightRig_dir_t); + return scene3d; + } + function generateStyleStyleLbl(name, color, idx) { + const styleLbl = new AscFormat.StyleDefStyleLbl(); + styleLbl.setName(name); + styleLbl.setScene3d(getScene3D()); + styleLbl.setSp3d(new AscFormat.Sp3d()); + styleLbl.setTxPr(new AscFormat.CTextBody()); + styleLbl.setStyle(new AscFormat.CShapeStyle()); + styleLbl.style.setLnRef(new AscFormat.StyleRef()); + styleLbl.style.lnRef.setIdx(idx[0]); + styleLbl.style.lnRef.setColor(AscFormat.CreateUniColorRGB(0, 0, 0)); + styleLbl.style.setFillRef(new AscFormat.StyleRef()); + styleLbl.style.fillRef.setIdx(idx[1]); + styleLbl.style.fillRef.setColor(AscFormat.CreateUniColorRGB(0, 0, 0)); + styleLbl.style.setEffectRef(new AscFormat.StyleRef()); + styleLbl.style.effectRef.setIdx(idx[2]); + styleLbl.style.effectRef.setColor(AscFormat.CreateUniColorRGB(0, 0, 0)); + styleLbl.style.setFontRef(new AscFormat.FontRef()); + styleLbl.style.fontRef.setIdx(AscFormat.fntStyleInd_minor); + if (color) { + styleLbl.style.fontRef.setColor(AscFormat.CreateSchemeUnicolorWithMods(color.type, color.mods)); + } + return styleLbl; + } + + function generateDefaultSmartArtLayout() { + const defaultLayoutPreset = { + sampData: { + dataModel: { + ptLst: [ + { + id: "0", + type: AscFormat.Point_type_doc + }, + { + id: "1", + prSet: { + phldr: true + } + }, + { + id: "2", + prSet: { + phldr: true + } + }, + { + id: "3", + prSet: { + phldr: true + } + }, + { + id: "4", + prSet: { + phldr: true + } + }, + { + id: "5", + prSet: { + phldr: true + } + } + ], + cxnLst: [ + { + modelId: "6", + srcId: "0", + destId: "1", + srcOrd: "0", + destOrd: "0" + }, + { + modelId: "7", + srcId: "0", + destId: "2", + srcOrd: "1", + destOrd: "0" + }, + { + modelId: "8", + srcId: "0", + destId: "3", + srcOrd: "2", + destOrd: "0" + }, + { + modelId: "9", + srcId: "0", + destId: "4", + srcOrd: "3", + destOrd: "0" + }, + { + modelId: "10", + srcId: "0", + destId: "5", + srcOrd: "4", + destOrd: "0" + } + ], + bg: {}, + whole: {} + } + }, + styleData: { + dataModel: { + ptLst: [ + { + id: "0", + type: AscFormat.Point_type_doc + }, + {id: "1"}, + {id: "2"} + ], + cxnLst: [ + { + modelId: "3", + srcId: "0", + destId: "1", + srcOrd: "0", + destOrd: "0" + }, + { + modelId: "4", + srcId: "0", + destId: "2", + srcOrd: "1", + destOrd: "0" + } + ], + bg: {}, + whole: {} + } + }, + clrData: { + dataModel: { + ptLst: [ + { + id: "0", + type: AscFormat.Point_type_doc + }, + {id: "1"}, + {id: "2"}, + {id: "3"}, + {id: "4"}, + {id: "5"}, + {id: "6"} + ], + cxnLst: [ + { + modelId: "7", + srcId: "0", + destId: "1", + srcOrd: "0", + destOrd: "0" + }, + { + modelId: "8", + srcId: "0", + destId: "2", + srcOrd: "1", + destOrd: "0" + }, + { + modelId: "9", + srcId: "0", + destId: "3", + srcOrd: "2", + destOrd: "0" + }, + { + modelId: "10", + srcId: "0", + destId: "4", + srcOrd: "3", + destOrd: "0" + }, + { + modelId: "11", + srcId: "0", + destId: "5", + srcOrd: "4", + destOrd: "0" + }, + { + modelId: "12", + srcId: "0", + destId: "6", + srcOrd: "5", + destOrd: "0" + } + ], + bg: {}, + whole: {} + } + }, + layoutNode: { + name: "diagram", + children: [ + { + varLst: { + dir: {}, + resizeHandles: { + val: AscFormat.ResizeHandles_val_exact + } + } + }, + { + choose: { + name: "Name0", + layoutElse: { + name: "Name2", + children: [ + { + alg: { + type: AscFormat.Alg_type_snake, + params: [ + {type: AscFormat.Param_type_grDir, val: "tR"}, + {type: AscFormat.Param_type_flowDir, val: "row"}, + {type: AscFormat.Param_type_contDir, val: "sameDir"}, + {type: AscFormat.Param_type_off, val: "ctr"} + ] + } + } + ] + }, + ifArray: [{ + name: "Name1", + func: AscFormat.If_func_var, + arg: AscFormat.If_arg_dir, + op: AscFormat.If_op_equ, + val: "norm", + children: [ + { + alg: { + type: AscFormat.Alg_type_snake, + params: [ + {type: AscFormat.Param_type_grDir, val: "tL"}, + {type: AscFormat.Param_type_flowDir, val: "row"}, + {type: AscFormat.Param_type_contDir, val: "sameDir"}, + {type: AscFormat.Param_type_off, val: "ctr"} + ] + } + } + ] + }] + } + }, + { + shape: { + blip: "", + adjLst: [] + } + }, + { + presOf: {} + }, + { + constrLst: + [ + {type:AscFormat.Constr_type_w, for: AscFormat.Constr_for_ch, forName: "node", refType: AscFormat.Constr_type_w}, + {type:AscFormat.Constr_type_h, for: AscFormat.Constr_for_ch, forName: "node", refType: AscFormat.Constr_type_w, refFor: AscFormat.Constr_for_ch, refForName: "node", fact: 0.6}, + {type:AscFormat.Constr_type_w, for: AscFormat.Constr_for_ch, forName: "sibTrans", refType: AscFormat.Constr_type_w, refFor: AscFormat.Constr_for_ch, refForName: "node", fact: 0.1}, + {type:AscFormat.Constr_type_sp, refType: AscFormat.Constr_type_w, refFor: AscFormat.Constr_for_ch, refForName: "sibTrans"}, + {type:AscFormat.Constr_type_primFontSz, for: AscFormat.Constr_for_ch, forName: "node", op: AscFormat.Constr_op_equ, val: 65} + ] + }, + {ruleLst: {}}, + { + forEach: { + name: "Name3", + axis: AscFormat.AxisType_value_ch, + ptType: AscFormat.ElementType_value_node, + children: [ + { + layoutNode: { + name: "node", + children: [ + { + varLst: { + bulletEnabled: { + val: true + } + } + }, + { + alg: { + type: AscFormat.Alg_type_tx + } + }, + { + shape: { + type: AscFormat.LayoutShapeType_shapeType_rect, + blip: "", + adjLst: [] + + } + }, + { + presOf: { + axis: AscFormat.AxisType_value_desOrSelf, + ptType: AscFormat.ElementType_value_node + } + }, + { + constrLst: [ + {type: AscFormat.Constr_type_lMarg, refType: AscFormat.Constr_type_primFontSz, fact: 0.3}, + {type: AscFormat.Constr_type_rMarg, refType: AscFormat.Constr_type_primFontSz, fact: 0.3}, + {type: AscFormat.Constr_type_tMarg, refType: AscFormat.Constr_type_primFontSz, fact: 0.3}, + {type: AscFormat.Constr_type_bMarg, refType: AscFormat.Constr_type_primFontSz, fact: 0.3} + ] + }, + { + ruleLst: [ + { + type: AscFormat.Constr_type_primFontSz, + val: 5, + fact: NaN, + max: NaN + } + ] + } + ] + } + }, + { + forEach: { + name: "Name4", + axis: AscFormat.AxisType_value_followSib, + ptType: AscFormat.ElementType_value_sibTrans, + cnt: 1, + children: [ + { + layoutNode: { + name: "sibTrans", + children: [ + { + alg: { + type: AscFormat.Alg_type_sp + } + }, + { + shape: { + adjLst: [], + blip: "" + } + }, + { + presOf: {} + }, + { + constrLst: [] + }, + { + ruleLst: [] + } + ] + } + } + ] + } + } + ] + } + } + ] + } + }; + const layoutDef = new AscFormat.LayoutDef(); + layoutDef.setUniqueId("urn:microsoft.com/office/officeart/2005/8/layout/default"); + layoutDef.setTitle(new AscFormat.DiagramTitle()); + layoutDef.setDesc(new AscFormat.DiagramTitle()); + layoutDef.setCatLst(new AscFormat.CatLst()); + const category = new AscFormat.SCat(); + category.setType("list"); + category.setPri(400); + layoutDef.catLst.addToLst(0, category); + layoutDef.setSampData(getSampData(defaultLayoutPreset.sampData)); + layoutDef.setStyleData(getSampData(defaultLayoutPreset.styleData)); + layoutDef.setClrData(getSampData(defaultLayoutPreset.clrData)); + layoutDef.setLayoutNode(getLayoutNode(defaultLayoutPreset.layoutNode)); + + return layoutDef; + } + + function generateDefaultSmartArtQuickStyle() { + const defaultStylesInfo = [ + { + names: ["fgImgPlace1", "alignImgPlace1", "bgImgPlace1", "callout", + "fgAcc1", "conFgAcc1", "alignAcc1", "bgAcc1", "solidFgAcc1", + "solidAlignAcc1", "solidBgAcc1", "fgAccFollowNode1", "alignAccFollowNode1", "bgAccFollowNode1", "fgAcc0", "fgAcc2", + "fgAcc3", "fgAcc4", "fgShp"], + idx: [2, 1, 0] + }, + { + names: ["revTx"], + idx: [0, 0, 0] + }, + { + names: ["bgShp", "dkBgShp", "trBgShp"], + idx: [0, 1, 0] + }, + { + names: ["trAlignAcc1"], + idx: [1, 1, 0] + }, + { + names: ["parChTrans1D1", "parChTrans1D2", "parChTrans1D3", "parChTrans1D4"], + idx: [2, 0, 0] + }, + { + names: ["sibTrans1D1"], + idx: [1, 0, 0] + }, + { + names: ["node0", "lnNode1", "alignNode1", "node1", "node2", "node3", "node4", + "asst0", "asst1", "asst2", "asst3", "asst4", "parChTrans2D1", "parChTrans2D2", "parChTrans2D3", "parChTrans2D4"], + clr: {type: g_clr_lt1}, + idx: [2, 1, 0] + }, + { + names: ["sibTrans2D1", "fgSibTrans2D1", "bgSibTrans2D1"], + clr: {type: g_clr_lt1}, + idx: [0, 1, 0] + }, + { + names: ["vennNode1"], + clr: {type: g_clr_tx1}, + idx: [2, 1, 0] + } + ]; + + const styleDef = new AscFormat.StyleDef(); + styleDef.setUniqueId("urn:microsoft.com/office/officeart/2005/8/quickstyle/simple1"); + styleDef.setTitle(new AscFormat.DiagramTitle()); + styleDef.setDesc(new AscFormat.DiagramTitle()); + styleDef.setCatLst(new AscFormat.CatLst()); + const cat = new AscFormat.SCat(); + cat.setType("simple"); + cat.setPri(10100); + styleDef.catLst.addToLst(0, cat); + styleDef.setScene3d(getScene3D()); + for (let i = 0; i < defaultStylesInfo.length; i++) { + const info = defaultStylesInfo[i]; + const color = info.clr; + const idx = info.idx; + for (let j = 0; j < info.names.length; j++) { + styleDef.addToLstStyleLbl(styleDef.styleLbl.length, generateStyleStyleLbl(info.names[j], color, idx)); + } + } + return styleDef; + } + + + + function getTintMod(val) { + return {name: "tint", val: val}; + } + function getAlphaMod(val) { + return {name: "alpha", val: val}; + } + function getShadeMod(val) { + return {name: "shade", val: val}; + } + function repeatAccent(mods) { + return { + method: AscFormat.ClrLst_meth_repeat, + colors: [{type: g_clr_accent1, mods: mods}] + }; + } + function repeatLt(mods) { + return { + method: AscFormat.ClrLst_meth_repeat, + colors: [{type: g_clr_lt1, mods: mods}] + }; + } + function repeatTx(mods) { + return { + method: AscFormat.ClrLst_meth_repeat, + colors: [{type: g_clr_tx1, mods: mods}] + }; + } + function repeatDk(mods) { + return { + method: AscFormat.ClrLst_meth_repeat, + colors: [{type: g_clr_dk1, mods: mods}] + }; + } + function repeatAccentTint(val) { + return repeatAccent([getTintMod(val)]); + } + function repeatAccentAlpha(val) { + return repeatAccent([getAlphaMod(val)]); + } + function repeatAccentShade(val) { + return repeatAccent([getShadeMod(val)]); + } + function repeatLtAlpha(val) { + return repeatLt([getAlphaMod(val)]); + } + function generateDefaultSmartArtColors() { + const presetStyleLbl = [ + { + names:["node0", "node1", "lnNode1", "node2", "node3", "node4", "asst0", "asst1", "asst2", "asst3", "asst4"], + clrsLst: { + fillClrLst: repeatAccent(), + linClrLst: repeatLt() + } + }, + { + names:["alignNode1"], + clrsLst: { + fillClrLst: repeatAccent(), + linClrLst: repeatAccent() + } + }, + { + names:["vennNode1"], + clrsLst: { + fillClrLst: repeatAccentAlpha(50000), + linClrLst: repeatLt() + } + }, + { + names:["fgImgPlace1", "alignImgPlace1", "bgImgPlace1"], + clrsLst: { + fillClrLst: repeatAccentTint(50000), + linClrLst: repeatLt(), + txFillClrLst: repeatLt() + } + }, + { + names:["sibTrans2D1", "fgSibTrans2D1", "bgSibTrans2D1"], + clrsLst: { + fillClrLst: repeatAccentTint(60000), + linClrLst: repeatAccentTint(60000), + } + }, + { + names:["sibTrans1D1"], + clrsLst: { + fillClrLst: repeatAccent(), + linClrLst: repeatAccent(), + txFillClrLst: repeatTx(), + } + }, + { + names:["callout"], + clrsLst: { + fillClrLst: repeatAccent(), + linClrLst: repeatAccentTint(50000), + txFillClrLst: repeatTx(), + } + }, + { + names:["parChTrans2D1"], + clrsLst: { + fillClrLst: repeatAccentTint(60000), + linClrLst: repeatAccentTint(60000), + txFillClrLst: repeatLt() + } + }, + { + names:["parChTrans2D2", "parChTrans2D3", "parChTrans2D4"], + clrsLst: { + fillClrLst: repeatAccent(), + linClrLst: repeatAccent(), + txFillClrLst: repeatLt() + } + }, + { + names:["parChTrans1D1", "parChTrans1D2"], + clrsLst: { + fillClrLst: repeatAccent(), + linClrLst: repeatAccentShade(60000), + txFillClrLst: repeatTx() + } + }, + { + names:["parChTrans1D3", "parChTrans1D4"], + clrsLst: { + fillClrLst: repeatAccent(), + linClrLst: repeatAccentShade(80000), + txFillClrLst: repeatTx() + } + }, + { + names:["fgAcc1", "conFgAcc1", "alignAcc1", "bgAcc1", "fgAcc0", "fgAcc2", "fgAcc3", "fgAcc4"], + clrsLst: { + fillClrLst: repeatLtAlpha(90000), + linClrLst: repeatAccent(), + txFillClrLst: repeatDk() + } + }, + { + names:["trAlignAcc1"], + clrsLst: { + fillClrLst: repeatLtAlpha(40000), + linClrLst: repeatAccent(), + txFillClrLst: repeatDk() + } + }, + { + names:["solidFgAcc1", "solidAlignAcc1", "solidBgAcc1"], + clrsLst: { + fillClrLst: repeatLt(), + linClrLst: repeatAccent(), + txFillClrLst: repeatDk() + } + }, + { + names:["fgAccFollowNode1", "alignAccFollowNode1", "bgAccFollowNode1"], + clrsLst: { + fillClrLst: repeatAccent([getAlphaMod(90000), getTintMod(40000)]), + linClrLst: repeatAccent([getAlphaMod(90000), getTintMod(40000)]), + txFillClrLst: repeatDk() + } + }, + { + names: ["bgShp"], + clrsLst: { + fillClrLst: repeatAccentTint(40000), + linClrLst: repeatAccent(), + txFillClrLst: repeatDk() + } + }, + { + names: ["dkBgShp"], + clrsLst: { + fillClrLst: repeatAccentShade(80000), + linClrLst: repeatAccent(), + txFillClrLst: repeatLt() + } + }, + { + names: ["trBgShp"], + clrsLst: { + fillClrLst: repeatAccent([getTintMod(50000), getAlphaMod(40000)]), + linClrLst: repeatAccent(), + txFillClrLst: repeatLt() + } + }, + { + names: ["fgShp"], + clrsLst: { + fillClrLst: repeatAccentTint(60000), + linClrLst: repeatLt(), + txFillClrLst: repeatDk() + } + }, + { + names: ["revTx"], + clrsLst: { + fillClrLst: repeatLtAlpha(0), + linClrLst: repeatDk([getAlphaMod(0)]), + txFillClrLst: repeatTx() + } + } + ]; + + const colorsDef = new AscFormat.ColorsDef(); + colorsDef.setUniqueId("urn:microsoft.com/office/officeart/2005/8/colors/accent1_2"); + colorsDef.setTitle(new AscFormat.DiagramTitle()); + colorsDef.setDesc(new AscFormat.DiagramTitle()); + colorsDef.setCatLst(new AscFormat.CatLst()); + const cat = new AscFormat.SCat(); + colorsDef.catLst.addToLst(0, cat); + cat.setType("accent1"); + cat.setPri(11200); + for (let i = 0; i < presetStyleLbl.length; i++) { + const infos = presetStyleLbl[i]; + const names = infos.names; + for (let j = 0; j < names.length; j++) { + const styleLbl = createColorsStyleLbl(presetStyleLbl[i].clrsLst, names[j]); + colorsDef.addToLstStyleLbl(colorsDef.styleLbl.length, styleLbl); + } + } + return colorsDef; + } + function createColorsStyleLbl(clrsLst, name) { + const styleLbl = new AscFormat.ColorDefStyleLbl(); + styleLbl.setName(name); + styleLbl.setLinClrLst(new AscFormat.ClrLst()); + styleLbl.setFillClrLst(new AscFormat.ClrLst()); + styleLbl.setEffectClrLst(new AscFormat.ClrLst()); + styleLbl.setTxLinClrLst(new AscFormat.ClrLst()); + styleLbl.setTxFillClrLst(new AscFormat.ClrLst()); + styleLbl.setTxEffectClrLst(new AscFormat.ClrLst()); + fillColorsLst(styleLbl.fillClrLst, clrsLst.fillClrLst); + fillColorsLst(styleLbl.linClrLst, clrsLst.linClrLst); + fillColorsLst(styleLbl.effectClrLst, clrsLst.effectClrLst); + fillColorsLst(styleLbl.txLinClrLst, clrsLst.txLinClrLst); + fillColorsLst(styleLbl.txFillClrLst, clrsLst.txFillClrLst); + fillColorsLst(styleLbl.txEffectClrLst, clrsLst.txEffectClrLst); + return styleLbl; + } + function fillColorsLst(styleLblClrLst, exampleClrLst) { + if (!exampleClrLst) { + return; + } + const method = exampleClrLst.method; + const colors = exampleClrLst.colors; + styleLblClrLst.setMeth(method); + for (let i = 0; i < colors.length; i++) { + styleLblClrLst.addToLst(i, AscFormat.CreateSchemeUnicolorWithMods(colors[i].type, colors[i].mods)); + } + } + + window["AscFormat"].generateDefaultSmartArtLayout = generateDefaultSmartArtLayout; + window["AscFormat"].generateDefaultSmartArtColors = generateDefaultSmartArtColors; + window["AscFormat"].generateDefaultSmartArtQuickStyle = generateDefaultSmartArtQuickStyle; +})(window); diff --git a/common/SmartArts/SmartArtCache.js b/common/SmartArts/SmartArtCache.js index dffd6d757e..1589d08706 100644 --- a/common/SmartArts/SmartArtCache.js +++ b/common/SmartArts/SmartArtCache.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/SmartArts/SmartArtTree.js b/common/SmartArts/SmartArtTree.js new file mode 100644 index 0000000000..2c1ef3593a --- /dev/null +++ b/common/SmartArts/SmartArtTree.js @@ -0,0 +1,8200 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +(function (window) { + // const IS_DEBUG_DRAWING = true; + // const IS_ADD_HTML = false; + AscCommon.IS_GENERATE_SMARTART_AND_TEXT_ON_OPEN = false; + + const LayoutNode = AscFormat.LayoutNode; + const Choose = AscFormat.Choose; + const If = AscFormat.If; + const Else = AscFormat.Else; + const Alg = AscFormat.Alg; + const ForEach = AscFormat.ForEach; + const Point = AscFormat.Point; + const ConstrLst = AscFormat.ConstrLst; + const SShape = AscFormat.SShape; + const PresOf = AscFormat.PresOf; + const RuleLst = AscFormat.RuleLst; + const VarLst = AscFormat.VarLst; + + const degToRad = Math.PI / 180; + const radToDeg = 1 / degToRad; + const algDelta = 1e-10; + const intDelta = 1e-2; + + const factRuleState = { + default: 0, + enabled: 1, + disabled: 2 + }; + + function isClockwisePoints(centerPoint, edgePoint1, edgePoint2) { + const rectSum = (centerPoint.x - edgePoint1.x) * (edgePoint2.y - edgePoint1.y) - + (edgePoint2.x - edgePoint1.x) * (centerPoint.y - edgePoint1.y); + return rectSum < 0; + } + + function checkBounds(firstBounds, secondBounds) { + if (secondBounds.l < firstBounds.l) { + firstBounds.l = secondBounds.l; + } + if (secondBounds.t < firstBounds.t) { + firstBounds.t = secondBounds.t; + } + if (secondBounds.r > firstBounds.r) { + firstBounds.r = secondBounds.r; + } + if (secondBounds.b > firstBounds.b) { + firstBounds.b = secondBounds.b; + } + } + + function fAlgDeltaEqual(a, b) { + return AscFormat.fApproxEqual(a, b, algDelta); + } + function fIntervalDeltaEqual(a, b) { + return AscFormat.fApproxEqual(a, b, intDelta); + } + + function CCoordPoint(x, y) { + this.x = x; + this.y = y; + } + + CCoordPoint.prototype.getVector = function (point) { + return new CVector(point.x - this.x, point.y - this.y); + } + function CVector(x, y) { + this.x = x; + this.y = y; + } + CVector.getVectorByAngle = function (angle) { + return new CVector(Math.cos(angle), Math.sin(angle)); + }; + CVector.prototype.getDistance = function () { + return Math.sqrt(this.x * this.x + this.y * this.y); + }; + CVector.prototype.getDiffVector = function (vector) { + return new CVector(this.x - vector.x, this.y - vector.y); + }; + CVector.prototype.multiply = function (value) { + this.x *= value; + this.y *= value; + }; + CVector.prototype.getAngle = function () { + const x = this.x; + const y = this.y; + const vectorLength = Math.sqrt(x * x + y * y); + if (vectorLength !== 0) { + const angle = Math.acos(x / vectorLength); + if (y > 0) { + return angle; + } + return AscFormat.normalizeRotate(-angle); + } + return null; + }; + + CVector.prototype.getAngleBetween = function (vector, isAntiClockwise) { + let currentAngle = this.getAngle(); + let anotherAngle = vector.getAngle(); + + if (isAntiClockwise) { + if (currentAngle < anotherAngle) { + currentAngle += Math.PI * 2; + } + return currentAngle - anotherAngle; + } else { + if (anotherAngle < currentAngle || fAlgDeltaEqual(anotherAngle, currentAngle)) { + anotherAngle += Math.PI * 2; + } + return anotherAngle - currentAngle; + } + }; + + function createPresNode(presName, styleLbl, contentNode) { + presName = presName || ""; + const point = new Point(); + point.setType(AscFormat.Point_type_pres); + const prSet = new AscFormat.PrSet(); + prSet.setPresName(presName); + prSet.setPresStyleLbl(styleLbl || "node1"); + + point.setPrSet(prSet); + return new PresNode(point, contentNode); + } + + VarLst.prototype.executeAlgorithm = function (smartartAlgorithm) {}; + + PresOf.prototype.executeAlgorithm = function (smartartAlgorithm) { + const currentPresNode = smartartAlgorithm.getCurrentPresNode(); + //todo change read/write only one instance of presof + if (currentPresNode.contentNodes.length) { + return; + } + const nodes = this.getNodesArray(smartartAlgorithm); + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i]; + currentPresNode.contentNodes.push(node); + node.addPresOf(currentPresNode); + } + + if (nodes.length) { + currentPresNode.node = nodes[0] || smartartAlgorithm.getCurrentNode(); + } + }; + LayoutNode.prototype.executeAlgorithm = function (smartartAlgorithm) { + const list = this.list; + const parentPresNode = smartartAlgorithm.getCurrentPresNode(); + const curPresNode = smartartAlgorithm.getPresNode(this); + parentPresNode.addChild(curPresNode); + smartartAlgorithm.addCurrentPresNode(curPresNode); + for (let i = 0; i < list.length; i += 1) { + const element = this.list[i]; + element.executeAlgorithm(smartartAlgorithm); + } + curPresNode.checkMoveWith(); + curPresNode.initPresShape(); + smartartAlgorithm.removeCurrentPresNode(curPresNode); + } + LayoutNode.prototype.getForEachMap = function () { + const forEachMap = {}; + const elements = [this]; + while (elements.length) { + const element = elements.pop(); + + const list = element.list; + if (list) { + elements.push.apply(elements, list); + } + if (element instanceof ForEach) { + forEachMap[element.name] = element; + } + } + return forEachMap; + } + + Choose.prototype.executeAlgorithm = function (smartartAlgorithm) { + for (let i = 0; i < this.if.length; i++) { + if (this.if[i].executeAlgorithm(smartartAlgorithm)) { + return; + } + } + this.else.executeAlgorithm(smartartAlgorithm); + }; + + + If.prototype.executeAlgorithm = function (smartartAlgorithm) { + if (this.checkCondition(smartartAlgorithm)) { + for (let i = 0; i < this.list.length; i++) { + this.list[i].executeAlgorithm(smartartAlgorithm); + } + return true; + } + return false; + } + + If.prototype.checkCondition = function (smartArtAlgorithm) { + const node = smartArtAlgorithm.getCurrentNode(); + const nodes = this.getNodesArray(smartArtAlgorithm); + + switch (this.func) { + case AscFormat.If_func_cnt: + return this.funcCnt(nodes); + case AscFormat.If_func_depth: + return this.funcDepth(node); + case AscFormat.If_func_maxDepth: + const depth = node.isParNode() ? node.depth - 1 : node.depth; + return this.funcMaxDepth(nodes, depth); + case AscFormat.If_func_pos: + return this.funcPos(nodes, node); + case AscFormat.If_func_posEven: + return this.funcPosEven(nodes, node); + case AscFormat.If_func_posOdd: + return this.funcPosOdd(nodes, node); + case AscFormat.If_func_revPos: + return this.funcRevPos(nodes, node); + case AscFormat.If_func_var: + return this.funcVar(smartArtAlgorithm); + default: + return false; + } + }; + + If.prototype.check = function (expected, result) { + switch (this.op) { + case AscFormat.If_op_equ: { + return expected === result; + } + case AscFormat.If_op_gt: { + return result > expected; + } + case AscFormat.If_op_lt: { + return result < expected; + } + case AscFormat.If_op_gte: { + return result >= expected; + } + case AscFormat.If_op_lte: { + return result <= expected; + } + case AscFormat.If_op_neq: { + return result !== expected; + } + default: { + return false; + } + } + } + If.prototype.funcPosEven = function (nodes, currentNode) { + const conditionValue = parseInt(this.getConditionValue(), 10); + for (let i = 0; i < nodes.length; i += 1) { + if (nodes === currentNode) { + return this.check(conditionValue, (i + 1) % 2 === 0 ? 1 : 0); + } + } + return false; + }; + If.prototype.funcPosOdd = function (nodes, currentNode) { + const conditionValue = parseInt(this.getConditionValue(), 10); + const position = currentNode.getPositionByParent() + 1; + return this.check(conditionValue, position % 2); + }; + If.prototype.funcPos = function (nodes, currentNode) { + const conditionValue = parseInt(this.getConditionValue(), 10); + const position = currentNode.getPositionByParent() + 1; + return this.check(conditionValue, position); + }; + If.prototype.funcRevPos = function (nodes, currentNode) { + const conditionValue = parseInt(this.getConditionValue(), 10); + const position = currentNode.getPositionByParent(); + const parentLength = currentNode.getParentChildLength(); + return this.check(conditionValue, parentLength - position); + }; + If.prototype.funcDepth = function (currentNode) { + const conditionValue = parseInt(this.getConditionValue(), 10); + return this.check(conditionValue, currentNode.depth); + }; + If.prototype.funcMaxDepth = function (nodes, curDepth) { + const conditionValue = parseInt(this.getConditionValue(), 10); + let maxDepth = curDepth; + for (let i = 0; i < nodes.length; i++) { + const depth = nodes[i].getChildDepth(); + if (depth > maxDepth) { + maxDepth = depth; + } + } + return this.check(conditionValue, maxDepth - curDepth); + }; + If.prototype.getFuncVarNode = function (smartArtAlgorithm) { + switch (this.arg) { + case AscFormat.If_arg_dir: { + return smartArtAlgorithm.dataRoot; + } + default: + return smartArtAlgorithm.getCurrentNode(); + } + }; + If.prototype.funcVar = function (smartArtAlgorithm) { + const node = this.getFuncVarNode(smartArtAlgorithm); + const nodeVal = node.getFuncVarValue(this.arg); + return this.check(this.getConditionValue(), nodeVal); + } + If.prototype.funcCnt = function (nodes) { + return this.check(parseInt(this.val, 10), nodes.length); + } + If.prototype.getConditionValue = function () { + switch (this.arg) { + case AscFormat.If_arg_dir: { + return this.getConditionDirValue(); + } + case AscFormat.If_arg_hierBranch: { + return this.getConditionHierBranchValue(); + } + default: + return this.val; + } + }; + If.prototype.getConditionHierBranchValue = function () { + switch (this.val) { + case 'l': + return AscFormat.HierBranch_val_l; + case 'r': + return AscFormat.HierBranch_val_r; + case 'hang': + return AscFormat.HierBranch_val_hang; + case 'init': + return AscFormat.HierBranch_val_init; + case 'std': + return AscFormat.HierBranch_val_std; + default: + break; + } + } + If.prototype.getConditionDirValue = function () { + switch (this.val) { + case 'norm': + return AscFormat.DiagramDirection_val_norm; + case 'rev': + return AscFormat.DiagramDirection_val_rev; + default: + break; + } + } + ConstrLst.prototype.executeAlgorithm = function (smartartAlgorithm) { + smartartAlgorithm.setConstraints(this.list); + } + + RuleLst.prototype.executeAlgorithm = function (smartartAlgorithm) { + smartartAlgorithm.setRules(this.list); + } + + Else.prototype.executeAlgorithm = function (smartartAlgorithm) { + for (let i = 0; i < this.list.length; i++) { + this.list[i].executeAlgorithm(smartartAlgorithm); + } + } + + ForEach.prototype.executeAlgorithm = function (smartartAlgorithm) { + const refForEach = smartartAlgorithm.getForEach(this.ref); + if (refForEach) { + refForEach.executeAlgorithm(smartartAlgorithm); + return; + } + const currentNode = smartartAlgorithm.getCurrentNode(); + + let isHideLastTrans2 = this.getHideLastTrans(0); + if (!isHideLastTrans2) { + const parent = currentNode.parent || currentNode; + const lastChild = parent.childs[parent.childs.length - 1]; + if (lastChild && lastChild.sibNode) { + lastChild.sibNode.isHideLastTrans = false; + } + } + const nodes = this.getNodesArray(smartartAlgorithm); + for (let i = 0; i < nodes.length; i += 1) { + const node = nodes[i]; + smartartAlgorithm.addCurrentNode(node); + for (let j = 0; j < this.list.length; j++) { + this.list[j].executeAlgorithm(smartartAlgorithm); + } + smartartAlgorithm.removeCurrentNode(); + } + }; + + Alg.prototype.getAlgorithm = function (smartartAlgorithm) { + let algorithm; + switch (this.getType()) { + case AscFormat.Alg_type_snake: { + algorithm = new SnakeAlgorithm(); + break; + } + case AscFormat.Alg_type_tx: { + algorithm = new TextAlgorithm(); + break; + } + case AscFormat.Alg_type_sp: { + algorithm = new SpaceAlgorithm(); + break; + } + case AscFormat.Alg_type_composite: { + algorithm = new CompositeAlgorithm(); + break; + } + case AscFormat.Alg_type_lin: { + algorithm = new LinearAlgorithm(); + break; + } + case AscFormat.Alg_type_conn: { + algorithm = new ConnectorAlgorithm(); + break; + } + case AscFormat.Alg_type_cycle: { + algorithm = new CycleAlgorithm(); + break; + } + case AscFormat.Alg_type_pyra: { + algorithm = new PyramidAlgorithm(); + break; + } + case AscFormat.Alg_type_hierRoot: { + algorithm = new HierarchyRootAlgorithm(); + break; + } + case AscFormat.Alg_type_hierChild: { + algorithm = new HierarchyChildAlgorithm(); + break; + } + default: { + break; + } + } + if (algorithm) { + algorithm.setParams(this.param); + algorithm.setParentNode(smartartAlgorithm.getCurrentPresNode()); + } + return algorithm; + }; + + Alg.prototype.executeAlgorithm = function (smartartAlgorithm) { + const node = smartartAlgorithm.getCurrentPresNode(); + node.setAlgorithm(this.getAlgorithm(smartartAlgorithm)); + } + + + Point.prototype.getVariables = function () { + const prSet = this.prSet; + return prSet && prSet.getPresLayoutVars(); + } + Point.prototype.getDirection = function () { + const variables = this.getVariables(); + if (variables) { + const dir = variables.getDir(); + if (dir) { + return dir.getVal(); + } + } + return AscFormat.DiagramDirection_val_norm; + } + SShape.prototype.executeAlgorithm = function (smartartAlgoritm) { + const presNode = smartartAlgoritm.getCurrentPresNode(); + presNode.layoutInfo.shape = this; + } + + function SmartArtAlgorithm(smartart) { + this.smartart = smartart; + const relations = this.smartart.getRelationOfContent2(); + this.relations = relations.byConnections; + this.customRelations = relations.custom; + this.dataRoot = null; + this.presRoot = null; + this.nodesStack = []; + this.presNodesStack = []; + this.connectorAlgorithmStack = []; + this.moveShapeSettings = []; + this.forEachMap = null; + this.factRuleState = factRuleState.default; + this.initDataTree(); + } + SmartArtAlgorithm.prototype.forEachContentNode = function (callback) { + const nodes = [this.dataRoot]; + while (nodes.length) { + const node = nodes.pop(); + callback(node); + nodes.push.apply(nodes, node.childs); + } + }; + SmartArtAlgorithm.prototype.getDataPointRelations = function () { + const mapRelations = {}; + this.forEachContentNode(function (node) { + mapRelations[node.point.getModelId()] = node; + if (node.sibNode) { + mapRelations[node.sibNode.point.getModelId()] = node.sibNode; + } + if (node.parNode) { + mapRelations[node.parNode.point.getModelId()] = node.parNode; + } + }); + return mapRelations; + }; + SmartArtAlgorithm.prototype.setFactRuleState = function (pr) { + this.factRuleState = pr; + }; + SmartArtAlgorithm.prototype.addSettingsForMove = function (settings) { + this.moveShapeSettings.push(settings); + }; + SmartArtAlgorithm.prototype.applySettingsForMove = function () { + while (this.moveShapeSettings.length) { + const settings = this.moveShapeSettings.pop(); + const coefficient = settings.coefficient; + const shape = settings.shape; + + const presNode = shape.node; + const prSet = presNode.getPrSet(); + let neighborWidth = null; + let neighborHeight = null; + const neighbor = presNode.getNeighbor(); + const neighborShape = neighbor.shape; +/* if (neighborShape) { + if (presNode.node.isSibNode()) { + neighborHeight = neighborShape.cleanParams.height; + } else { + neighborWidth = neighborShape.cleanParams.width; + } + }*/ + if (prSet) { + let offX = 0; + let offY = 0; + const radialInfo = shape.getCustomRadialInfo(); + if (radialInfo) { + const custScaleRadius = prSet.custRadScaleRad === null ? 1 : prSet.custRadScaleRad; + const custScaleAngle = prSet.custRadScaleInc === null ? 0 : prSet.custRadScaleInc; + if (custScaleRadius !== 1 || custScaleAngle !== 0) { + const shapeCenterPoint = new CCoordPoint(shape.x + shape.width / 2, shape.y + shape.height / 2); + const centerPoint = new CCoordPoint(shapeCenterPoint.x - shape.radialVector.x, shapeCenterPoint.y - shape.radialVector.y); + const customRadius = radialInfo.radius; + const custAngle = radialInfo.angle; + const custVector = CVector.getVectorByAngle(custAngle); + custVector.multiply(customRadius); + const custCenterPoint = new CCoordPoint(custVector.x + centerPoint.x, custVector.y + centerPoint.y); + offX = custCenterPoint.x - shape.width / 2 - shape.x; + offY = custCenterPoint.y - shape.height / 2 - shape.y; + shape.custCenterPoint = centerPoint; + } + } + + if (prSet.custLinFactNeighborX) { + const width = neighborWidth !== null ? neighborWidth : shape.cleanParams.width; + offX += width * prSet.custLinFactNeighborX * coefficient; + } + if (prSet.custLinFactX) { + offX += shape.cleanParams.width * prSet.custLinFactX * coefficient; + } + if (prSet.custLinFactNeighborY) { + const height = neighborHeight !== null ? neighborHeight : shape.cleanParams.height; + offY += height * prSet.custLinFactNeighborY * coefficient; + } + if (prSet.custLinFactY) { + offY += shape.cleanParams.height * prSet.custLinFactY * coefficient; + } + + const smartart = this.smartart; + const smartartHeight = smartart.spPr.xfrm.extY; + const smartartWidth = smartart.spPr.xfrm.extX; + const shapeBounds = shape.getBounds(); + if (shapeBounds.l + offX < 0) { + offX = -shapeBounds.l; + } else if (shapeBounds.r + offX > smartartWidth) { + offX = smartartWidth - shapeBounds.r; + } + if (shapeBounds.t + offY < 0) { + offY = -shapeBounds.t; + } else if (shapeBounds.b + offY > smartartHeight) { + offY = smartartHeight - shapeBounds.b; + } + if (shape.radialVector) { + shape.radialVector = new CVector(shape.radialVector.x + offX, shape.radialVector.y + offY); + } + shape.moveTo(offX, offY); + } + } + }; + SmartArtAlgorithm.prototype.getForEach = function (ref) { + return this.forEachMap[ref]; + }; + SmartArtAlgorithm.prototype.addConnectorAlgorithm = function (algorithm) { + this.connectorAlgorithmStack.push(algorithm); + } + SmartArtAlgorithm.prototype.getParentObjects = function () { + const smartart = this.smartart; + return smartart.getParentObjects(); + }; + SmartArtAlgorithm.prototype.getInitObjects = function () { + const api = Asc.editor; + if (!api) { + return null; + } + const smartart = this.smartart; + const initObjects = Object.create(this.getParentObjects()); + initObjects.worksheet = null; + initObjects.parent = null; + initObjects.drawingObjects = null; + initObjects.drawingDocument = api.getDrawingDocument(); + const editorId = api.getEditorId(); + if (editorId === AscCommon.c_oEditorId.Spreadsheet) { + initObjects.worksheet = smartart.worksheet; + initObjects.drawingObjects = smartart.drawingObjects; + } else if (editorId === AscCommon.c_oEditorId.Presentation) { + initObjects.parent = smartart.parent; + } + return initObjects; + }; + SmartArtAlgorithm.prototype.applyColorsDef = function (shadowShapes) { + const colorsDef = this.smartart.getColorsDef(); + const stylesDef = this.smartart.getStyleDef(); + const styleLblsByName = stylesDef.styleLblByName; + const colorLblsByName = colorsDef.styleLblByName; + const parentObjects = this.getParentObjects(); + const shapesByStyleLbl = {}; + for (let i = 0; i < shadowShapes.length; i += 1) { + const shadowShape = shadowShapes[i]; + const node = shadowShape.node; + const styleLbl = node.getPresStyleLbl(); + if (styleLbl) { + if (!shapesByStyleLbl[styleLbl]) { + shapesByStyleLbl[styleLbl] = []; + } + shapesByStyleLbl[styleLbl].push(shadowShape.connectorShape || shadowShape); + } + } + for (let styleLbl in shapesByStyleLbl) { + const colorLbl = colorLblsByName[styleLbl]; + const shapes = shapesByStyleLbl[styleLbl]; + if (colorLbl) { + colorLbl.setShapeFill(shapes, parentObjects); + colorLbl.setShapeLn(shapes, parentObjects); + } + const quickStyleLbl = styleLblsByName[styleLbl]; + if (quickStyleLbl) { + quickStyleLbl.setShapeStyle(shapes); + } + } + }; + + SmartArtAlgorithm.prototype.initDataTree = function () { + const dataModel = this.smartart.getDataModel().getDataModel(); + const mainSmartArtPoint = dataModel.getMainPoint(); + const treeRoot = new SmartArtDataNode(mainSmartArtPoint, 0); + this.dataRoot = treeRoot; + const elements = [treeRoot]; + + while (elements.length) { + const root = elements.shift(); + const rootChildDepth = root.depth + 1; + let connectionChildren = this.relations[[AscFormat.Cxn_type_parOf]][root.getModelId()]; + if (connectionChildren) { + for (let i = 0; i < connectionChildren.length; i += 1) { + const connectionChild = connectionChildren[i]; + const contentPoint = connectionChild.point; + const sibPoint = connectionChild.sibPoint; + const parPoint = connectionChild.parPoint; + const node = new SmartArtDataNode(contentPoint, rootChildDepth); + node.setSibNode(new SmartArtSibDataNode(sibPoint, rootChildDepth)); + node.setParNode(new SmartArtParDataNode(parPoint, rootChildDepth)); + root.addChild(node); + elements.push(node); + } + if (connectionChildren.length) { + const lastNode = elements[elements.length - 1]; + const sibTrans = lastNode.sibNode; + sibTrans.isHideLastTrans = true; + } + } + } + } + + SmartArtAlgorithm.prototype.getPresNode = function (layoutNode) { + const currentNode = this.getCurrentNode(); + const currentPresNode = this.getCurrentPresNode(); + const presRelations = this.relations[AscFormat.Cxn_type_presOf]; + const presCustomRelations = this.customRelations.presParOfAssocId; + const presChildParRelations = this.customRelations.presChildParOf; + const presParRelations = this.relations[AscFormat.Cxn_type_presParOf]; + let presNode; + if (!currentNode.presNode) { + const nodeModelId = currentNode.getModelId(); + + let presPoint = presRelations[nodeModelId]; + if (!presPoint || presPoint.getPresName() !== layoutNode.name) { + let i; + if (presCustomRelations[nodeModelId]) { + for (i = 0; i < presCustomRelations[nodeModelId].length; i += 1) { + const assocPresPoint = presCustomRelations[nodeModelId][i]; + if (assocPresPoint.getPresName() === layoutNode.name) { + presPoint = assocPresPoint; + break; + } + } + } + while (presPoint && presPoint.getPresName() !== layoutNode.name) { + presPoint = presChildParRelations[presPoint.getModelId()]; + } + } + if (presPoint) { + presNode = new PresNode(presPoint, currentNode); + } else { + presNode = createPresNode(layoutNode.name, layoutNode.styleLbl, currentNode); + } + currentNode.setPresNode(presNode); + } else { + const children = presParRelations[currentPresNode.getModelId()]; + const child = children && children[currentPresNode.childs.length]; + if (child) { + presNode = new PresNode(child, currentNode); + } else { + presNode = createPresNode(layoutNode.name, layoutNode.styleLbl, currentNode); + } + } + presNode.moveWith = layoutNode.moveWith; + return presNode; + }; + + SmartArtAlgorithm.prototype.addCurrentPresNode = function (presNode) { + this.presNodesStack.push(presNode); + } + SmartArtAlgorithm.prototype.removeCurrentPresNode = function () { + this.presNodesStack.pop(); + } + SmartArtAlgorithm.prototype.getCurrentPresNode = function () { + return this.presNodesStack[this.presNodesStack.length - 1]; + } + SmartArtAlgorithm.prototype.getShapes = function () { + + const algorithm = this.presRoot.algorithm; + return algorithm ? algorithm.getShapes(this) : []; + } + SmartArtAlgorithm.prototype.connectShapeSmartArtInfo = function () { + const spTree = this.smartart.drawing.spTree; + const mapEditorShapes = {}; + for (let i = 0; i < spTree.length; i++) { + const shape = spTree[i]; + mapEditorShapes[shape.getModelId()] = shape; + } + this.forEachPresFromBottom(function (presNode) { + const point = presNode.presPoint; + const editorShape = mapEditorShapes[point.getModelId()]; + if (editorShape) { + const shadowShape = presNode.getShape(); + shadowShape.setShapeSmartArtInfo(editorShape); + shadowShape.editorShape = editorShape; + const textNodes = presNode.contentNodes[0] && presNode.contentNodes[0].getTextNodes(); + if (textNodes) { + if (presNode === textNodes.textNode) { + presNode.algorithm.applyFontRelations(editorShape); + } else if (presNode === textNodes.contentNode && textNodes.textNode) { + textNodes.textNode.algorithm.applyFontRelations(editorShape); + } + } + } + }); + }; + + + SmartArtAlgorithm.prototype.cleanDrawingShapeInfo = function () { + const smartart = this.smartart; + const drawing = smartart.drawing; + for (let i = 0; i < drawing.spTree.length; i++) { + const shape = drawing.spTree[i]; + shape.setShapeSmartArtInfo(null); + } + }; + SmartArtAlgorithm.prototype.startFromBegin = function () { + this.cleanDrawingShapeInfo(); + this.addCurrentNode(this.dataRoot); + const mockPresNode = new PresNode(); + this.addCurrentPresNode(mockPresNode); + + const layout = this.smartart.getLayoutDef(); + const layoutNode = layout.getLayoutNode(); + this.forEachMap = layoutNode.getForEachMap(); + layoutNode.executeAlgorithm(this); + + this.presRoot = mockPresNode.childs[0]; + this.presRoot.parent = null; + this.presRoot.initRootConstraints(this.smartart, this); + this.removeCurrentPresNode(); + this.removeCurrentNode(); + this.calcConstraints(); + this.cleanRules(); + this.calcScaleCoefficients(); + if (this.factRuleState === factRuleState.disabled) { + this.cleanCalcValues(); + this.calcConstraints(); + this.calcScaleCoefficients(); + } + this.calcAdaptedConstraints(); + + this.executeAlgorithms(); + }; + SmartArtAlgorithm.prototype.cleanCalcValues = function () { + this.forEachPresFromTop(function (presNode) { + presNode.cleanRules(); + presNode.cleanConstraints(); + presNode.cleanScales(); + presNode.cleanPosition(); + }); + this.presRoot.initRootConstraints(this.smartart, this); + }; + + + SmartArtAlgorithm.prototype.calcScaleCoefficients = function () { + const oThis = this; + this.forEachPresFromBottom(function (presNode) { + presNode.startAlgorithm(oThis, true); + }); + }; + SmartArtAlgorithm.prototype.calcAdaptedConstraints = function () { + const oThis = this; + const isNeedSetRules = this.factRuleState !== factRuleState.disabled; + this.forEachPresFromTop(function (presNode) { + if (isNeedSetRules) { + presNode.setRules(oThis); + } + presNode.setConstraints(true, oThis); + }); + }; + SmartArtAlgorithm.prototype.calcConstraints = function () { + const oThis = this; + const isNeedSetRules = this.factRuleState !== factRuleState.disabled; + this.forEachPresFromTop(function (presNode) { + if (isNeedSetRules) { + presNode.setRules(oThis); + } + presNode.setConstraints(false, oThis); + }); + }; + SmartArtAlgorithm.prototype.cleanRules = function () { + this.forEachPresFromTop(function (presNode) { + presNode.cleanRules(); + }); + }; + SmartArtAlgorithm.prototype.executeAlgorithms = function () { + const oThis = this; + this.forEachPresFromBottom(function (presNode) { + presNode.startAlgorithm(oThis); + }); + this.applySettingsForMove(); + this.generateConnectors(); + this.applySettingsForMove(); + }; + SmartArtAlgorithm.prototype.generateConnectors = function () { + while (this.connectorAlgorithmStack.length) { + const connectorAlgorithm = this.connectorAlgorithmStack.pop(); + connectorAlgorithm.connectShapes(this); + } + }; + SmartArtAlgorithm.prototype.forEachPresFromBottom = function (callback) { + const checkElements = [this.presRoot]; + while (checkElements.length) { + const elem = checkElements.pop(); + if (elem.childs.length) { + for (let i = 0; i < elem.childs.length; i += 1) { + checkElements.push(elem.childs[i]); + } + } else { + const callbackElements = [elem]; + while (callbackElements.length) { + const elem = callbackElements.pop(); + callback(elem); + const firstParentChild = elem.parent && elem.parent.childs[0]; + if (firstParentChild === elem) { + callbackElements.push(elem.parent); + } + } + } + } + }; + + + SmartArtAlgorithm.prototype.forEachPresFromTop = function (callback) { + const elements = [this.presRoot]; + while (elements.length) { + const element = elements.pop(); + callback(element); + for (let i = element.childs.length - 1; i >= 0; i -= 1) { + elements.push(element.childs[i]); + } + } + }; + + + SmartArtAlgorithm.prototype.getCurrentNode = function () { + return this.nodesStack[this.nodesStack.length - 1]; + } + SmartArtAlgorithm.prototype.addCurrentNode = function (node) { + this.nodesStack.push(node); + } + + SmartArtAlgorithm.prototype.removeCurrentNode = function () { + this.nodesStack.pop(); + } + + SmartArtAlgorithm.prototype.setConstraints = function (constr) { + const node = this.getCurrentPresNode(); + node.setLayoutConstraints(constr); + } + SmartArtAlgorithm.prototype.setRules = function (rules) { + const node = this.getCurrentPresNode(); + node.setLayoutRules(rules); + } + + function SmartArtDataNodeBase(point, depth) { + this.point = point; + this.parent = null; + this.presNode = null; + this.childs = []; + this.algorithm = null; + this.depth = AscFormat.isRealNumber(depth) ? depth : null; + this.presOfArray = []; + this.presOf = null; + } + SmartArtDataNodeBase.prototype.addPresOf = function (presNode) { + this.presOfArray.push(presNode); + } + SmartArtDataNodeBase.prototype.getTextNode = function () { + const textNodes = this.getTextNodes(); + return textNodes.textNode || textNodes.contentNode; + }; + SmartArtDataNodeBase.prototype.getContentNode = function () { + const textNodes = this.getTextNodes(); + return textNodes.contentNode || textNodes.textNode; + }; + SmartArtDataNodeBase.prototype.getTextNodes = function () { + if (this.presOf === null) { + this.presOf = { + contentNode: null, + textNode: null + }; + while (this.presOfArray.length) { + const presNode = this.presOfArray.pop(); + if (presNode.algorithm instanceof TextAlgorithm) { + this.presOf.textNode = presNode; + } else if (presNode.layoutInfo.shape && !presNode.layoutInfo.shape.hideGeom && presNode.layoutInfo.shape.type !== AscFormat.LayoutShapeType_outputShapeType_none) { + this.presOf.contentNode = presNode; + } + } + } + return this.presOf; + }; + SmartArtDataNodeBase.prototype.getDirection = function () {}; + SmartArtDataNodeBase.prototype._getHierBranchValue = function () { + if (this.presNode) { + const presPoint = this.presNode.presPoint; + return presPoint && presPoint.getHierBranchValue(); + } + }; + SmartArtDataNodeBase.prototype.getPositionByParent = function () { + return -1; + }; + SmartArtDataNodeBase.prototype.getHierBranch = function () { + return this._getHierBranchValue(); + }; + SmartArtDataNodeBase.prototype.getFuncVarValue = function (type) { + switch (type) { + case AscFormat.If_arg_dir: + return this.getDirection(); + case AscFormat.If_arg_hierBranch: + return this.getHierBranch(); + } + }; + SmartArtDataNodeBase.prototype.getPresName = function () { + return this.presNode && this.presNode.getPresName(); + }; + SmartArtDataNodeBase.prototype.getPtType = function () { + return this.point.type; + } + + SmartArtDataNodeBase.prototype.getNodesByAxis = function (nodes, axis, ptType) { + nodes = nodes || []; + switch (axis) { + case AscFormat.AxisType_value_root: { + this.getNodesByRoot(nodes, ptType); + break; + } + case AscFormat.AxisType_value_ch: { + this.getNodesByCh(nodes, ptType); + break; + } + case AscFormat.AxisType_value_par: { + this.getNodesByParent(nodes, ptType); + break; + } + case AscFormat.AxisType_value_self: { + const needNode = this.getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + break; + } + case AscFormat.AxisType_value_follow: { + this.getNodesByFollow(nodes, ptType); + break; + } + case AscFormat.AxisType_value_followSib: { + this.getNodesByFollowSib(nodes, ptType); + break; + } + case AscFormat.AxisType_value_precedSib: { + this.getNodesByPrecedSib(nodes, ptType); + break; + } + case AscFormat.AxisType_value_des: { + this.getNodesByDescendant(nodes, ptType); + break; + } + case AscFormat.AxisType_value_desOrSelf: { + this.getNodesByAxis(nodes, AscFormat.AxisType_value_self, ptType); + this.getNodesByAxis(nodes, AscFormat.AxisType_value_des, ptType); + break; + } + default: { + break; + } + } + return nodes; + } + SmartArtDataNodeBase.prototype.getParent = function () { + return this.parent; + } + SmartArtDataNodeBase.prototype.getNodesByParent = function (nodes, ptType) { + const parent = this.getParent(); + const needNode = parent && parent.getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + }; + SmartArtDataNodeBase.prototype.getNodesByRoot = function (nodes, ptType) { + let curNode = this; + while (curNode && !curNode.isRoot()) { + curNode = curNode.parent; + } + if (curNode && curNode.isRoot()) { + const needNode = curNode.getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + } + } + SmartArtDataNodeBase.prototype.getNodesByDescendant = function (nodes, ptType) { + const elements = [].concat(this.childs); + while (elements.length) { + const child = elements.shift(); + const needNode = child.getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + for (let i = 0; i < child.childs.length; i++) { + elements.push(child.childs[i]); + } + } + }; + + SmartArtDataNodeBase.prototype.forEachDes = function (callback) { + const elements = [this]; + while (elements.length) { + const element = elements.pop(); + for (let i = 0; i < element.childs.length; i++) { + elements.push(element.childs[i]); + callback(element.childs[i]); + } + } + }; + + SmartArtDataNodeBase.prototype.forEachDesOrSelf = function (callback) { + callback(this); + this.forEachDes(callback); + }; + SmartArtDataNodeBase.prototype.getNodesByFollow = function (nodes, ptType) { + const parent = this.getParent(); + if (parent) { + let bAdd = false; + for (let i = 0; i < parent.childs.length; i++) { + const child = parent.childs[i]; + if (bAdd) { + child.forEachDesOrSelf(function (node) { + const needNode = node.getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + }); + } else if (child === this) { + bAdd = true; + if (ptType === AscFormat.ElementType_value_sibTrans) { + child.forEachDesOrSelf(function (node) { + const needNode = node.getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + }); + } + } else if (child.sibNode === this) { + bAdd = true; + } + } + } + } + SmartArtDataNodeBase.prototype.getNodesByFollowSib = function (nodes, ptType) { + const parent = this.getParent(); + if (parent) { + let bAdd = false; + for (let i = 0; i < parent.childs.length; i++) { + const child = parent.childs[i]; + if (bAdd) { + const needNode = parent.childs[i].getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + } else if (child === this) { + bAdd = true; + if (ptType === AscFormat.ElementType_value_sibTrans) { + const needNode = parent.childs[i].getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + } + } else if (child.sibNode === this) { + bAdd = true; + } + } + } + }; + SmartArtDataNodeBase.prototype.getNodesByPrecedSib = function (nodes, ptType) { + const parent = this.parent; + if (parent) { + for (let i = 0; i < parent.childs.length; i++) { + if (parent.childs[i] === this) { + if (ptType === AscFormat.ElementType_value_parTrans) { + const needNode = parent.childs[i].getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + } + break; + } else { + const needNode = parent.childs[i].getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + } + } + } + }; + + SmartArtDataNodeBase.prototype.getNodesByCh = function (nodes, ptType) { + for (let i = 0; i < this.childs.length; i++) { + const child = this.childs[i]; + const needNode = child.getNodeByPtType(ptType); + if (needNode) { + nodes.push(needNode); + } + } + }; + + SmartArtDataNodeBase.prototype.addChild = function (child, position) { + position = AscFormat.isRealNumber(position) ? position : this.childs.length; + this.childs.splice(position, 0, child); + child.setParent(this); + }; + SmartArtDataNodeBase.prototype.removeChilds = function (position, count) { + this.childs.splice(position, count); + }; + SmartArtDataNodeBase.prototype.setParent = function (parent) { + this.parent = parent; + }; + SmartArtDataNodeBase.prototype.setPresNode = function (presNode) { + this.presNode = presNode; + }; + + SmartArtDataNodeBase.prototype.getModelId = function () { + return this.point.getModelId(); + }; + SmartArtDataNodeBase.prototype.isRoot = function () { + return this.point.getType() === AscFormat.Point_type_doc; + }; + SmartArtDataNodeBase.prototype.isNode = function () { + return this.point.getType() === AscFormat.Point_type_node; + }; + SmartArtDataNodeBase.prototype.isAsst = function () { + return this.point.getType() === AscFormat.Point_type_asst; + }; + SmartArtDataNodeBase.prototype.isContentNode = function () { + return false; + }; + SmartArtDataNodeBase.prototype.isSibNode = function () { + return false; + }; + SmartArtDataNodeBase.prototype.isParNode = function () { + return false; + }; + + function SmartArtSibDataNode(mainPoint, depth) { + SmartArtDataNodeBase.call(this, mainPoint, depth); + } + AscFormat.InitClassWithoutType(SmartArtSibDataNode, SmartArtDataNodeBase); + SmartArtSibDataNode.prototype.isSibNode = function () { + return true; + }; + SmartArtSibDataNode.prototype.getParent = function () { + return this.parent && this.parent.parent; + } + SmartArtSibDataNode.prototype.getNodeByPtType = function (elementTypeValue) { + switch (elementTypeValue) { + case AscFormat.ElementType_value_sibTrans: + return this; + case AscFormat.ElementType_value_node: + return this; + default: + return this; + } + } + + function SmartArtParDataNode(mainPoint, depth) { + SmartArtDataNodeBase.call(this, mainPoint, depth); + } + AscFormat.InitClassWithoutType(SmartArtParDataNode, SmartArtDataNodeBase); + SmartArtParDataNode.prototype.isParNode = function () { + return true; + }; + SmartArtParDataNode.prototype.getNodeByPtType = function (elementTypeValue) { + return this; + } + SmartArtParDataNode.prototype.getDirection = function () { + return this.parent.getDirection(); + }; + SmartArtParDataNode.prototype.getHierBranch = function () { + let node = this; + while (node) { + const val = node._getHierBranchValue(); + if (AscFormat.isRealNumber(val)) { + return val; + } + node = node.parent; + } + return null; + }; + SmartArtParDataNode.prototype.getParent = function () { + return this.parent && this.parent.parent; + } + function SmartArtDataNode(mainPoint, depth) { + SmartArtDataNodeBase.call(this, mainPoint, depth); + this.sibNode = null; + this.parNode = null; + this.childDepth = null; + } + AscFormat.InitClassWithoutType(SmartArtDataNode, SmartArtDataNodeBase); + SmartArtDataNode.prototype.getPointType = function () { + return this.point.getType(); + } + SmartArtDataNode.prototype.getParentChildLength = function () { + const parent = this.getParent(); + return parent.childs.length; + } + SmartArtDataNode.prototype.getPositionByParent = function () { + const parent = this.getParent(); + for (let i = 0; i < parent.childs.length; i++) { + if (parent.childs[i] === this) { + return i; + } + } + return -1; + }; + + SmartArtDataNode.prototype.getDirection = function () { + return this.presNode && this.presNode.getDirection(); + } + + SmartArtDataNode.prototype.getChildDepth = function () { + if (this.childDepth === null) { + let maxDepth = this.depth; + const tempNodes = [this]; + while (tempNodes.length) { + const node = tempNodes.pop(); + if (node.depth > maxDepth) { + maxDepth = node.depth; + } + tempNodes.push.apply(tempNodes, node.childs); + } + this.childDepth = maxDepth; + } + return this.childDepth; + }; + SmartArtDataNode.prototype.isContentNode = function () { + return true; + }; + + SmartArtDataNode.prototype.setSibNode = function (node) { + this.sibNode = node; + node.setParent(this); + }; + + SmartArtDataNode.prototype.setParNode = function (node) { + this.parNode = node; + node.setParent(this); + }; + + SmartArtDataNode.prototype.getNodeByPtType = function (elementTypeValue) { + switch (elementTypeValue) { + case AscFormat.ElementType_value_sibTrans: + return this.sibNode; + case AscFormat.ElementType_value_node: + if (this.isNode() || this.isAsst()) { + return this; + } + break; + case AscFormat.ElementType_value_parTrans: + return this.parNode; + case AscFormat.ElementType_value_all: + return this; + case AscFormat.ElementType_value_asst: + if (this.isAsst()) { + return this; + } + break; + case AscFormat.ElementType_value_doc: + if (this.isRoot()) { + return this; + } + break; + + case AscFormat.ElementType_value_nonAsst: + if (!this.isAsst()) { + return this; + } + break; + case AscFormat.ElementType_value_nonNorm: + break; + case AscFormat.ElementType_value_norm: + break; + case AscFormat.ElementType_value_pres: + break; + default: + return this; + } + } + + SmartArtDataNode.prototype.getSibName = function () { + return this.sibNode.getPresName(); + }; + SmartArtDataNode.prototype.getParName = function () { + return this.parNode.getPresName(); + }; + + SmartArtDataNode.prototype.checkName = function (name) { + switch (name) { + case this.getPresName(): + return this; + case this.getSibName(): + return this.sibNode; + case this.getParName(): + return this.parNode; + default: + return null; + } + } + + + SmartArtDataNode.prototype.getPrSet = function () { + return this.presNode && this.presNode.getPrSet(); + } + + function Position(node) { + this.rot = 0; + this.x = 0; + this.y = 0; + this.width = 0; + this.height = 0; + this.node = node; + this.cleanParams = { + x: 0, + y: 0, + width: 0, + height: 0 + }; + } + Position.prototype.getMatrix = function () { + const matrix = new AscCommon.CMatrix(); + matrix.RotateAt(this.rot * radToDeg, this.x + this.width / 2, this.y + this.height / 2); + return matrix; + }; + Position.prototype.getReverseMatrix = function () { + const matrix = new AscCommon.CMatrix(); + matrix.RotateAt(-this.rot * radToDeg, this.x + this.width / 2, this.y + this.height / 2); + return matrix; + }; + Position.prototype.initFromShape = function () { + + }; + Position.prototype.moveTo = function (dx, dy) { + this.node.moveTo(dx, dy, true); + }; + Position.prototype.checkBounds = function (bounds, isClean) { + const shapeBounds = this.getBounds(isClean); + checkBounds(bounds, shapeBounds); + }; + Position.prototype.getBounds = function (isClean, skipRotate) { + const res = { + isEllipse: this.node.layoutInfo.shape.type === AscFormat.LayoutShapeType_shapeType_ellipse + }; + const pos = isClean ? this.cleanParams : this; + let minX; + let maxX; + let minY; + let maxY; + if (skipRotate) { + minX = pos.x; + maxX = pos.x + pos.width; + minY = pos.y; + maxY = pos.y + pos.height; + } else { + const matrix = this.getMatrix(); + const x1 = matrix.TransformPointX(pos.x, pos.y); + const x2 = matrix.TransformPointX(pos.x + pos.width, pos.y); + const x3 = matrix.TransformPointX(pos.x, pos.y + pos.height); + const x4 = matrix.TransformPointX(pos.x + pos.width, pos.y + pos.height); + const y1 = matrix.TransformPointY(pos.x, pos.y); + const y2 = matrix.TransformPointY(pos.x + pos.width, pos.y); + const y3 = matrix.TransformPointY(pos.x, pos.y + pos.height); + const y4 = matrix.TransformPointY(pos.x + pos.width, pos.y + pos.height); + + + minX = Math.min(x1, x2, x3, x4); + maxX = Math.max(x1, x2, x3, x4); + minY = Math.min(y1, y2, y3, y4); + maxY = Math.max(y1, y2, y3, y4); + } + if (pos.width < 0) { + res.l = maxX; + res.r = minX; + } else { + res.l = minX; + res.r = maxX; + } + if (pos.height < 0) { + res.t = maxY; + res.b = minY; + } else { + res.t = minY; + res.b = maxY; + } + return res; + }; + function ShadowShape(node) { + Position.call(this, node); + this.rot = 0; + this.type = AscFormat.LayoutShapeType_outputShapeType_none; + this.ln = null; + this.fill = null; + this.tailLnArrow = null; + this.headLnArrow = null; + this.style = null; + this.shape = null; + this.connectorShape = null; + this.customAdj = null; + this.customGeom = []; + this.radialVector = null; + this.incAngle = null; + } + AscFormat.InitClassWithoutType(ShadowShape, Position); + ShadowShape.prototype.setRadialInfo = function (radialVector, incAngle) { + const nodes = [this.node]; + while (nodes.length) { + const node = nodes.pop(); + if (node.algorithm instanceof CompositeAlgorithm) { + nodes.push.apply(nodes, node.childs); + } else { + const shape = node.getShape(); + shape.radialVector = radialVector; + shape.incAngle = incAngle; + } + } + }; + ShadowShape.prototype.getCustomRadialInfo = function () { + if (this.radialVector && AscFormat.isRealNumber(this.incAngle)) { + const prSet = this.node.getPrSet(); + if (prSet) { + const custScaleRadius = prSet.custRadScaleRad === null ? 1 : prSet.custRadScaleRad; + const custScaleAngle = prSet.custRadScaleInc === null ? 0 : prSet.custRadScaleInc; + const defaultRadius = this.radialVector.getDistance(); + const defaultAngle = this.radialVector.getAngle(); + if (custScaleRadius !== 1 || custScaleAngle !== 0) { + const customRadius = defaultRadius * custScaleRadius; + const custAngle = AscFormat.normalizeRotate(defaultAngle + custScaleAngle * this.incAngle); + return {radius: customRadius, angle: custAngle}; + } + return {radius: defaultRadius, angle: defaultAngle}; + } + } + }; + ShadowShape.prototype.moveTo = function (dX, dY) { + this.node.moveTo(dX, dY, false); + }; + ShadowShape.prototype.changeSize = function (coefficient, props) { + props = props || {}; + this.x *= coefficient; + this.width *= coefficient; + if (props.changeHeight !== false) { + this.y *= coefficient; + this.height *= coefficient; + } + } + ShadowShape.prototype.initSizesFromConstraints = function () { + + } + ShadowShape.prototype.initFromShape = function (shape) { + this.shape = shape; + if (!(shape.hideGeom && (this.node.algorithm instanceof SpaceAlgorithm))) { + this.type = shape.type; + } + + } + + ShadowShape.prototype.setFill = function (fill) { + this.fill = fill; + }; + + ShadowShape.prototype.setLn = function (ln) { + this.ln = ln; + } + + ShadowShape.prototype.setStyle = function (style) { + this.style = style; + } + + ShadowShape.prototype.getEditorLine = function (initObjects) { + + const shapeTrack = new AscFormat.NewShapeTrack("", this.x, this.y, initObjects.theme, initObjects.master, initObjects.layout, initObjects.slide, 0, undefined, undefined, undefined, true); + shapeTrack.track({}, this.x + this.width, this.y + this.height); + const shape = shapeTrack.getShape(false, initObjects.drawingDocument, initObjects.drawingObjects); + const spPr = shape.spPr; + spPr.setFill(null); + spPr.setLn(null); + spPr.xfrm.setExtX(this.width); + spPr.xfrm.setExtY(this.height); + shape.setBDeleted(false); + shape.setParent(initObjects.parent); + shape.setWorksheet(initObjects.worksheet); + + const geometry = spPr.geometry; + for (let i = 0; i < this.customGeom.length; i += 1) { + const custCommand = this.customGeom[i]; + for (let j = 1; j < custCommand.length; j++) { + custCommand[j] = String(custCommand[j] >> 0); + } + geometry.AddPathCommand.apply(geometry, custCommand); + } + this.applyPostEditorSettings(shape); + return shape; + }; + ShadowShape.prototype.getEditorShape = function (isLine, initObjects) { + if (this.connectorShape) { + return this.connectorShape.getEditorShape(this.connectorShape.type === AscFormat.LayoutShapeType_outputShapeType_conn, initObjects); + } + + if (isLine) { + return this.getEditorLine(initObjects); + } else { + const shapeType = this.getEditorShapeType(); + if (typeof shapeType !== 'string') { + return null; + } + + const shapeTrack = new AscFormat.NewShapeTrack(this.getEditorShapeType(), this.x, this.y, initObjects.theme, initObjects.master, initObjects.layout, initObjects.slide, 0, undefined, undefined, undefined, true); + shapeTrack.track({}, this.x + this.width, this.y + this.height); + const shape = shapeTrack.getShape(false, initObjects.drawingDocument, initObjects.drawingObjects); + const nvSpPr = new AscFormat.UniNvPr(); + nvSpPr.cNvPr.setId(0); + shape.setNvSpPr(nvSpPr); + const spPr = shape.spPr; + spPr.setFill(null); + spPr.setLn(null); + spPr.xfrm.setExtX(this.width); + spPr.xfrm.setExtY(this.height); + shape.setBDeleted(false); + shape.setParent(initObjects.parent); + shape.setWorksheet(initObjects.worksheet); + + this.applyAdjLst(shape.spPr.geometry); + this.applyPostEditorSettings(shape); + return shape; + } + } + ShadowShape.prototype.getAdjValueWithApplyFactor = function (adj) { + const val = adj.val; + const idx = adj.idx; + switch (this.type) { + case AscFormat.LayoutShapeType_shapeType_pie: + case AscFormat.LayoutShapeType_shapeType_arc: + return AscFormat.normalizeRotate(val * degToRad) * radToDeg * 60000; + case AscFormat.LayoutShapeType_shapeType_blockArc: + switch (idx) { + case 1: + case 2: + return AscFormat.normalizeRotate(val * degToRad) * radToDeg * 60000; + default: + return val * 100000; + } + case AscFormat.LayoutShapeType_shapeType_circularArrow: + case AscFormat.LayoutShapeType_shapeType_leftCircularArrow: + switch (idx) { + case 2: + case 3: + case 4: + return AscFormat.normalizeRotate(val * degToRad) * radToDeg * 60000; + default: + return val * 100000; + } + case AscFormat.LayoutShapeType_shapeType_chord: + return AscFormat.normalizeRotate(val * degToRad) * radToDeg * 60000; + default: + return val * 100000; + } + }; + function getAdjName(geometry, id) { + switch (geometry.preset) { + case "hexagon": + if (id === 1) { + return "adj" + } else if (id === 2) { + return "vf"; + } + break; + default: + const singleAdjName = "adj"; + const adjName = singleAdjName + id; + if (geometry.avLst[adjName]) { + return adjName; + } else if (geometry.avLst[singleAdjName]) { + return singleAdjName; + } + break; + } + return null; + } + ShadowShape.prototype.applyAdjLst = function (geometry) { + const adjLst = this.customAdj || (this.shape && this.shape.adjLst); + if (adjLst) { + for (let i = 0; i < adjLst.list.length; i += 1) { + const adj = adjLst.list[i]; + const adjName = getAdjName(geometry, adj.idx); + if (adjName) { + geometry.AddAdj(adjName, 0, this.getAdjValueWithApplyFactor(adj)); + } + } + } + + } + ShadowShape.prototype.setShapeSmartArtInfo = function (editorShape) { + const shapeSmartArtInfo = new AscFormat.ShapeSmartArtInfo(); + editorShape.setShapeSmartArtInfo(shapeSmartArtInfo); + + const presNode = this.node; + shapeSmartArtInfo.setShapePoint(presNode.presPoint); + editorShape.setModelId(presNode.presPoint.getModelId()); + for (let i = presNode.contentNodes.length - 1; i >= 0; i -= 1) { + const contentNode = presNode.contentNodes[i]; + shapeSmartArtInfo.addToLstContentPoint(0, contentNode); + } + }; + + ShadowShape.prototype.applyPostEditorSettings = function (editorShape) { + this.setShapeSmartArtInfo(editorShape); + this.applyShapeSettings(editorShape); + this.applyTextSettings(editorShape); + this.applyShapeRot(editorShape); + }; + + ShadowShape.prototype.applyShapeRot = function (editorShape) { + const presNode = this.node; + let sumRot = this.rot + presNode.moveRot; + const prSet = presNode.getPrSet(); + if (prSet) { + if (prSet.custAng) { + sumRot += prSet.custAng; + } + } + editorShape.spPr.xfrm.setRot(AscFormat.normalizeRotate(sumRot)); + }; + + ShadowShape.prototype.applyTextSettings = function (editorShape) { + const algorithm = this.node.algorithm; + algorithm.applyTextSettings(editorShape); + }; + ShadowShape.prototype.applyShapeSettings = function (editorShape) { + const shapeSmartArtInfo = editorShape.getSmartArtInfo(); + const presPoint = shapeSmartArtInfo.shapePoint; + const contentPoint = shapeSmartArtInfo.contentPoint[0]; + let skipSettingDefaultSpPr = false; + if (this.style) { + editorShape.setStyle(this.style); + if (this.fill) { + skipSettingDefaultSpPr = true; + const fillRef = editorShape.style.fillRef ? editorShape.style.fillRef.createDuplicate() : new AscFormat.StyleRef(); + const color = this.fill.fill.color || null; + fillRef.setColor(color); + editorShape.style.setFillRef(fillRef); + } + if (this.ln) { + skipSettingDefaultSpPr = true; + const lnRef = editorShape.style.lnRef ? editorShape.style.lnRef.createDuplicate() : new AscFormat.StyleRef(); + const color = this.ln.Fill.fill.color || null; + lnRef.setColor(color); + editorShape.style.setLnRef(lnRef); + } + } + if (!editorShape.spPr.ln) { + editorShape.spPr.setLn(new AscFormat.CLn()); + } + if (this.headLnArrow) { + editorShape.spPr.ln.setHeadEnd(this.headLnArrow); + } + if (this.tailLnArrow) { + editorShape.spPr.ln.setTailEnd(this.tailLnArrow); + } + + + const style = editorShape.style; + if (contentPoint && contentPoint.point.prSet && contentPoint.point.prSet.style) { + style.merge(contentPoint.point.prSet.style); + skipSettingDefaultSpPr = true; + } + if (presPoint && presPoint.prSet && presPoint.prSet.style) { + style.merge(presPoint.prSet.style); + skipSettingDefaultSpPr = true; + } + + const spPr = editorShape.spPr; + if (!skipSettingDefaultSpPr) { + if (this.fill) { + spPr.setFill(this.fill); + } else { + spPr.setFill(AscFormat.CreateNoFillUniFill()); + } + if (this.ln) { + spPr.setLn(this.ln); + } else { + spPr.setLn(AscFormat.CreateNoFillLine()); + } + } + + if (contentPoint && contentPoint.point.spPr) { + spPr.fullMerge(contentPoint.point.spPr); + } + if (presPoint && presPoint.spPr) { + spPr.fullMerge(presPoint.spPr); + } + }; + + ShadowShape.prototype.getEditorShapeType = function () { + if (this.type !== AscFormat.LayoutShapeType_outputShapeType_none && this.type !== AscFormat.LayoutShapeType_outputShapeType_conn) { + return AscCommon.To_XML_ST_LayoutShapeType(this.type); + } + }; + + + function BaseAlgorithm() { + this.params = {}; + this.parentNode = null; + this._isHideLastChild = null; + this.constraintSizes = null; + this.constrClockwise = null; + this.calcValues = {}; + } + BaseAlgorithm.prototype.applyTextSettings = function (editorShape) {}; + BaseAlgorithm.prototype.setConstrClockwise = function (isClockwise) { + this.constrClockwise = isClockwise; + } + BaseAlgorithm.prototype.isClockwise = function () { + return true; + }; + BaseAlgorithm.prototype.getConstrClockwise = function () { + return this.constrClockwise; + } + BaseAlgorithm.prototype.getChildAlgorithmAlignBounds = function (isCalculateCoefficients, skipRotate) { + let childShape = this.parentNode.getShape(isCalculateCoefficients); + if (childShape.connectorShape) { + childShape = childShape.connectorShape; + } + return childShape.getBounds(false, skipRotate); + }; + BaseAlgorithm.prototype.getAlgorithmAlignBounds = function (isCalculateCoefficients) { + const childs = this.parentNode.childs; + let bounds; + const isCycleAlgorithm = this instanceof CycleAlgorithm; + for (let i = 0; i < childs.length; i += 1) { + const node = childs[i]; + if (node.isSkipShape(isCalculateCoefficients, isCycleAlgorithm)) { + continue; + } + const childBounds = node.algorithm.getChildAlgorithmAlignBounds(isCalculateCoefficients, isCycleAlgorithm); + if (bounds) { + checkBounds(bounds, childBounds); + } else { + bounds = childBounds; + } + } + return bounds; + }; + BaseAlgorithm.prototype.getHorizontalAlgorithmOffset = function (isCalculateCoefficients) { + if (this.params[AscFormat.Param_type_horzAlign] === AscFormat.ParameterVal_horizontalAlignment_none) { + return 0; + } + + const constrBounds = this.getAlgorithmAlignBounds(isCalculateCoefficients); + if (!constrBounds) { + return 0; + } + + switch (this.params[AscFormat.Param_type_horzAlign]) { + case AscFormat.ParameterVal_horizontalAlignment_ctr: { + const parentWidth = this.parentNode.getConstr(AscFormat.Constr_type_w, !isCalculateCoefficients); + const boundsWidth = constrBounds.r - constrBounds.l; + return parentWidth / 2 - (constrBounds.l + boundsWidth / 2); + } + case AscFormat.ParameterVal_horizontalAlignment_l: { + return -constrBounds.l; + } + case AscFormat.ParameterVal_horizontalAlignment_r: { + const parentWidth = this.parentNode.getConstr(AscFormat.Constr_type_w, !isCalculateCoefficients); + return parentWidth - constrBounds.r; + } + default: + return 0; + + } + }; + BaseAlgorithm.prototype.getVerticalAlgorithmOffset = function (isCalculateCoefficients) { + if (this.params[AscFormat.Param_type_vertAlign] === AscFormat.ParameterVal_horizontalAlignment_none) { + return 0; + } + + const constrBounds = this.getAlgorithmAlignBounds(isCalculateCoefficients); + if (!constrBounds) { + return 0; + } + + switch (this.params[AscFormat.Param_type_vertAlign]) { + case AscFormat.ParameterVal_verticalAlignment_mid: { + const boundsHeight = constrBounds.b - constrBounds.t; + const parentHeight = this.parentNode.getConstr(AscFormat.Constr_type_h, !isCalculateCoefficients); + return parentHeight / 2 - (constrBounds.t + boundsHeight / 2); + } + case AscFormat.ParameterVal_verticalAlignment_t: { + return -constrBounds.t; + } + case AscFormat.ParameterVal_verticalAlignment_b: { + const parentHeight = this.parentNode.getConstr(AscFormat.Constr_type_h, !isCalculateCoefficients); + return parentHeight - constrBounds.b; + } + default: + return 0; + } + }; + BaseAlgorithm.prototype.applyAlgorithmAligns = function (isCalculateCoefficients) { + const offX = this.getHorizontalAlgorithmOffset(isCalculateCoefficients); + const offY = this.getVerticalAlgorithmOffset(isCalculateCoefficients); + this.parentNode.forEachChild(function (node) { + node.moveTo(offX, offY, isCalculateCoefficients, true); + }); + }; + BaseAlgorithm.prototype.getParentConnectionNode = function () { + return this.parentNode; + }; + BaseAlgorithm.prototype.setParentConnection = function (connectorAlgorithm, childNode) { + const parentConnNode = this.getParentConnectionNode(); + if (connectorAlgorithm && childNode.algorithm && parentConnNode) { + let srcNode; + let dstNode; + if (connectorAlgorithm.params[AscFormat.Param_type_srcNode]) { + srcNode = parentConnNode.getNamedNode(connectorAlgorithm.params[AscFormat.Param_type_srcNode]); + } else { + srcNode = parentConnNode.getDefaultConnectionNode(); + } + if (connectorAlgorithm.params[AscFormat.Param_type_dstNode]) { + dstNode = childNode.getNamedNode(connectorAlgorithm.params[AscFormat.Param_type_dstNode]); + } else { + dstNode = childNode.getDefaultConnectionNode(); + } + if (srcNode && dstNode) { + connectorAlgorithm.setParentAlgorithm(this); + connectorAlgorithm.setFirstConnectorNode(srcNode); + connectorAlgorithm.setLastConnectorNode(dstNode); + } + } + }; + BaseAlgorithm.prototype.getBounds = function (isCalculateScaleCoefficients, bounds) { + const shape = this.parentNode.getShape(isCalculateScaleCoefficients); + if (!bounds) { + bounds = shape.getBounds(); + } else { + shape.checkBounds(bounds); + } + return bounds; + }; + BaseAlgorithm.prototype.getRoot = function () { + return this.parentNode; + }; + BaseAlgorithm.prototype.getShapes = function (smartartAlgorithm) { + const shapes = []; + const initObjects = smartartAlgorithm.getInitObjects(); + if (!initObjects) { + return shapes; + } + const shadowShapes = this.parentNode.getShadowShapesByZOrder(); + smartartAlgorithm.applyColorsDef(this.parentNode.getDescendantFilteredShapes().sort(function (shape1, shape2) { + return shape2.shape.zOrderOff - shape1.shape.zOrderOff; + })); + for (let i = 0; i < shadowShapes.length; i++) { + const shadowShape = shadowShapes[i]; + const editorShape = shadowShape.getEditorShape(false, initObjects); + if (editorShape) { + shadowShape.editorShape = editorShape; + shapes.push(editorShape); + } + } + return shapes; + } + BaseAlgorithm.prototype.applyPostAlgorithmSettings = function (smartartAlgorithm) { + this.applyPostAlgorithmSettingsForShape(smartartAlgorithm, this.parentNode.getShape(false)); + }; + BaseAlgorithm.prototype.isHierarchy = function () {return false;}; + BaseAlgorithm.prototype.moveToHierarchyOffsets = function () {}; + BaseAlgorithm.prototype.isRootHierarchy = function () { + return false; + }; + BaseAlgorithm.prototype.setConstraintSizes = function (shape) { + this.constraintSizes = { + x : shape.x, + y : shape.y, + width : shape.width, + height: shape.height + } + } + BaseAlgorithm.prototype.setSibConnection = function (startNode, endNode, connectorAlgorithm) { + let srcNode; + let dstNode; + const parentNode = this.parentNode; + if (connectorAlgorithm.params[AscFormat.Param_type_srcNode]) { + srcNode = startNode.getNamedNode(connectorAlgorithm.params[AscFormat.Param_type_srcNode]); + if (!srcNode) { + srcNode = parentNode.getNamedNode(connectorAlgorithm.params[AscFormat.Param_type_srcNode]); + } + } else { + srcNode = startNode.getDefaultConnectionNode(); + } + if (connectorAlgorithm.params[AscFormat.Param_type_dstNode]) { + dstNode = endNode.getNamedNode(connectorAlgorithm.params[AscFormat.Param_type_dstNode]); + if (!dstNode) { + dstNode = parentNode.getNamedNode(connectorAlgorithm.params[AscFormat.Param_type_dstNode]); + } + } else { + dstNode = endNode.getDefaultConnectionNode(); + } + if (srcNode && dstNode) { + connectorAlgorithm.setParentAlgorithm(this); + connectorAlgorithm.setFirstConnectorNode(srcNode); + connectorAlgorithm.setLastConnectorNode(dstNode); + } + }; + BaseAlgorithm.prototype.setConnections = function () { + const nodes = this.parentNode.childs; + let firstNode; + let sibConnNode; + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i]; + const shape = node.shape; + if (nodes[i].isRealShapeType()) { + sibConnNode = nodes[i]; + } + if (shape.type === AscFormat.LayoutShapeType_outputShapeType_conn) { + const algorithm = node.algorithm; + if (node.isParNode()) { + const parConnNode = node.node.parent && node.node.parent.presNode; + this.setParentConnection(algorithm, parConnNode); + } else { + if (!sibConnNode) { + continue; + } + if (!firstNode) { + firstNode = sibConnNode; + } + let nextIndex = i + 1; + while (nextIndex < nodes.length && !nodes[nextIndex].isRealShapeType()) { + nextIndex += 1; + } + const lastNode = nodes[nodes.length - 1].node; + const nextNode = nextIndex === nodes.length && !lastNode.isHideLastTrans ? firstNode : nodes[nextIndex]; + if (algorithm && nextNode) { + this.setSibConnection(sibConnNode, nextNode, algorithm); + } + } + } + } + }; + BaseAlgorithm.prototype.getRadialConnectionInfo = function () {}; + BaseAlgorithm.prototype.setParentAlgorithm = function (algorithm) {}; + BaseAlgorithm.prototype.isHideLastChild = function () { + if (this._isHideLastChild !== null) { + return this._isHideLastChild; + } + this._isHideLastChild = false; + if (this.parentNode.isHideLastTrans) { + const childs = this.parentNode.childs; + const lastNode = childs[childs.length - 1]; + if (lastNode && lastNode.isSibNode()) { + this._isHideLastChild = true; + } + } + return this._isHideLastChild; + }; + + BaseAlgorithm.prototype.calcScaleCoefficients = function () {}; + BaseAlgorithm.prototype.setConnectionDistance = function (value, isStart) { + + }; + BaseAlgorithm.prototype.setStemThick = function (value) { + + }; + BaseAlgorithm.prototype.afterShape = function (smartartAlgorithm) {}; + BaseAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(false, isCalculateScaleCoefficients); + }; + BaseAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficients) { + this.createShadowShape(isCalculateScaleCoefficients); + }; + BaseAlgorithm.prototype.setParams = function (params) { + this.initParams(params); + }; + BaseAlgorithm.prototype.initParams = function (params) { + for (let i = 0; i < params.length; i++) { + const param = params[i]; + this.params[param.type] = param.getValEnum(); + } + }; + BaseAlgorithm.prototype.getAspectRatio = function () { + return this.params[AscFormat.Param_type_ar] || 0; + } + + + BaseAlgorithm.prototype.setParentNode = function (node) { + this.parentNode = node; + }; + BaseAlgorithm.prototype.setFirstConnectorNode = function () { + + }; + BaseAlgorithm.prototype.setLastConnectorNode = function () { + + }; + BaseAlgorithm.prototype.applyPostAlgorithmSettingsForShape = function (smartartAlgorithm, shape, customCoefficient) { + const presNode = shape.node; + const prSet = presNode.getPrSet(); + if (prSet.custLinFactY || prSet.custLinFactX || prSet.custLinFactNeighborY || prSet.custLinFactNeighborX || prSet.custRadScaleInc || prSet.custRadScaleRad) { + smartartAlgorithm.addSettingsForMove({shape: shape, coefficient: customCoefficient || 1}); + } + }; + function PositionAlgorithm() { + BaseAlgorithm.call(this); + this.connector = null; + this.shapeContainer = null; + this.coefficientShapeContainer = null; + } + AscFormat.InitClassWithoutType(PositionAlgorithm, BaseAlgorithm); + PositionAlgorithm.prototype.getParentNodeWidth = function (isAdapt) { + return this.parentNode.getConstr(AscFormat.Constr_type_w, isAdapt) || this.parentNode.getParentWidth(isAdapt); + }; + PositionAlgorithm.prototype.getParentNodeHeight = function (isAdapt) { + return this.parentNode.getConstr(AscFormat.Constr_type_h, isAdapt) || this.parentNode.getParentHeight(isAdapt); + }; + PositionAlgorithm.prototype.getShapeContainer = function (isCalculateScaleCoefficient) { + return isCalculateScaleCoefficient ? this.coefficientShapeContainer : this.shapeContainer; + }; + + PositionAlgorithm.prototype.applyParamOffsets = function (isCalculateScaleCoefficient) { + switch (this.params[AscFormat.Param_type_off]) { + case AscFormat.ParameterVal_offset_ctr: + this.applyCenterAlign(isCalculateScaleCoefficient); + break; + default: + break; + } + }; + + PositionAlgorithm.prototype.applyCenterAlign = function (isCalculateScaleCoefficient) { + const parentHeight = this.parentNode.getConstr(AscFormat.Constr_type_h, !isCalculateScaleCoefficient)/* || this.parentNode.getParentHeight(!isCalculateScaleCoefficient)*/; + const parentWidth = this.parentNode.getConstr(AscFormat.Constr_type_w, !isCalculateScaleCoefficient)/* || this.parentNode.getParentWidth(!isCalculateScaleCoefficient)*/; + if (!(parentWidth && parentHeight)) { + return + } + + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficient); + shapeContainer.applyCenterAlign(parentHeight, parentWidth, isCalculateScaleCoefficient, this); + }; + + PositionAlgorithm.prototype.calcScaleCoefficients = function () { + + }; + PositionAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm) { + + }; + + + function SnakeAlgorithm() { + PositionAlgorithm.call(this); + this.calcValues = { + spacing: null + }; + } + + AscFormat.InitClassWithoutType(SnakeAlgorithm, PositionAlgorithm); + SnakeAlgorithm.prototype.initParams = function (params) { + BaseAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_flowDir] === undefined) { + this.params[AscFormat.Param_type_flowDir] = AscFormat.ParameterVal_flowDirection_row; + } + if (this.params[AscFormat.Param_type_grDir] === undefined) { + this.params[AscFormat.Param_type_grDir] = AscFormat.ParameterVal_growDirection_tL; + } + if (this.params[AscFormat.Param_type_bkpt] === undefined) { + this.params[AscFormat.Param_type_bkpt] = AscFormat.ParameterVal_breakpoint_endCnv; + } + if (this.params[AscFormat.Param_type_vertAlign] === undefined) { + this.params[AscFormat.Param_type_vertAlign] = AscFormat.ParameterVal_verticalAlignment_mid; + } + if (this.params[AscFormat.Param_type_horzAlign] === undefined) { + this.params[AscFormat.Param_type_horzAlign] = AscFormat.ParameterVal_horizontalAlignment_ctr; + } + if (this.params[AscFormat.Param_type_contDir] === undefined) { + this.params[AscFormat.Param_type_contDir] = AscFormat.ParameterVal_continueDirection_sameDir; + } + }; + SnakeAlgorithm.prototype.applyParamOffsets = function (isCalculateScaleCoefficients) { + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients); + shapeContainer.applyCenterAlign(this.params[AscFormat.Param_type_off] === AscFormat.ParameterVal_offset_ctr); + }; + SnakeAlgorithm.prototype.getStartValues = function (node) { + const oRes = {coefficient: 1, width: 0, height: 0, prSpace: 0}; + if (node) { + const shape = node.getShape(true); + oRes.height = shape.height; + oRes.width = shape.width; + + const smWidth = this.parentNode.getConstr(AscFormat.Constr_type_w); + const smHeight = this.parentNode.getConstr(AscFormat.Constr_type_h); + + const widthKoef = smWidth / oRes.width; + const heightKoef = smHeight / oRes.height; + oRes.coefficient = Math.min(1, widthKoef, heightKoef); + } + return oRes; + }; + + + SnakeAlgorithm.prototype.calculateFixedRowScaleCoefficient = function () { + const parentNode = this.parentNode; + const childs = parentNode.childs; + + const parentWidth = parentNode.getConstr(AscFormat.Constr_type_w); + const parentHeight = parentNode.getConstr(AscFormat.Constr_type_h); + const spaceConstr = parentNode.getConstr(AscFormat.Constr_type_sp); + + const countInRow = this.getBreakpointFixedValue(); + let maxWidth = 0; + let height = -spaceConstr; + let rowWidth = 0; + let maxRowHeight = 0; + let rowShapeCounter = 0; + for (let i = 0; i < childs.length; i += 1) { + const node = childs[i]; + const shape = node.getShape(true); + if (!node.node.isSibNode()) { + if (rowShapeCounter === countInRow) { + rowShapeCounter = 0; + if (maxWidth < rowWidth) { + maxWidth = rowWidth; + } + height += maxRowHeight + spaceConstr; + maxRowHeight = shape.height; + rowWidth = shape.width; + } else { + rowWidth += shape.width; + if (shape.height > maxRowHeight) { + maxRowHeight = shape.height; + } + } + rowShapeCounter += 1; + } else if (rowShapeCounter !== 0 && rowShapeCounter !== countInRow) { + rowWidth += shape.width; + } + } + if (rowShapeCounter !== 0) { + if (maxWidth < rowWidth) { + maxWidth = rowWidth; + } + height += maxRowHeight + spaceConstr; + } + const coefficient = Math.min(1, parentWidth / maxWidth, parentHeight / height); + this.setScaleCoefficient(coefficient); + }; + SnakeAlgorithm.prototype.calculateFixedColumnScaleCoefficient = function () { + const parentNode = this.parentNode; + const childs = parentNode.childs; + + const parentWidth = parentNode.getConstr(AscFormat.Constr_type_w); + const parentHeight = parentNode.getConstr(AscFormat.Constr_type_h); + const spaceConstr = parentNode.getConstr(AscFormat.Constr_type_sp); + + const countInColumn = this.getBreakpointFixedValue(); + + let maxHeight = 0; + let width = -spaceConstr; + let columnHeight = 0; + let maxColumnWidth = 0; + let columnShapeCounter = 0; + for (let i = 0; i < childs.length; i += 1) { + const node = childs[i]; + const shape = node.getShape(true); + if (!node.node.isSibNode()) { + if (columnShapeCounter === countInColumn) { + columnShapeCounter = 0; + if (maxHeight < columnHeight) { + maxHeight = columnHeight; + } + width += maxColumnWidth + spaceConstr; + maxColumnWidth = shape.width; + columnHeight = shape.height; + } else { + columnHeight += shape.height; + if (shape.width > maxColumnWidth) { + maxColumnWidth = shape.width; + } + } + columnShapeCounter += 1; + } else if (columnShapeCounter !== 0 && columnShapeCounter !== countInColumn) { + columnHeight += shape.height; + } + } + if (columnShapeCounter !== 0) { + if (maxHeight < columnHeight) { + maxHeight = columnHeight; + } + width += maxColumnWidth + spaceConstr; + } + const coefficient = Math.min(1, parentWidth / width, parentHeight / maxHeight); + this.setScaleCoefficient(coefficient); + }; + SnakeAlgorithm.prototype.setScaleCoefficient = function (coefficient) { + this.parentNode.forEachDes(function (node) { + node.setSizesScale(coefficient, coefficient); + }); + const space = this.parentNode.getConstr(AscFormat.Constr_type_sp); + this.calcValues.spacing = coefficient * space; + } + SnakeAlgorithm.prototype.calculateCanvasRowScaleCoefficient = function () { + const parentNode = this.parentNode; + const childs = parentNode.childs; + + const parentWidth = parentNode.getConstr(AscFormat.Constr_type_w); + const parentHeight = parentNode.getConstr(AscFormat.Constr_type_h); + const spaceConstr = parentNode.getConstr(AscFormat.Constr_type_sp); + const initValues = this.getStartValues(parentNode.childs[0]); + let coefficient = initValues.coefficient; + let i = 1; + let nNeedRecalc = 0; + function calculateAdaptCoefficient() { + let prSpaceWidth = 0; + let previousRowHeight = 0; + let columnWidth = initValues.width; + let rowHeight = initValues.height; + let previousRowSpace = 0; + let previousMaxWidthCoefficient = null; + for (i; i < childs.length; i++) { + const child = parentNode.childs[i]; + const childShape = child.getShape(true); + if (child.node.isSibNode()) { + prSpaceWidth = childShape.width; + } else { + const width = childShape.width; + const height = childShape.height; + + const sumWidth = columnWidth + width + prSpaceWidth; + const sumHeight = rowHeight + height + spaceConstr; + + const updatePreviousRowHeight = previousRowHeight + height + previousRowSpace; + + + let widthCoefficient = 1; + let heightCoefficient = 1; + widthCoefficient = parentWidth / sumWidth; + heightCoefficient = parentHeight / sumHeight; + const tempCoefficient = Math.min(coefficient, Math.max(widthCoefficient, heightCoefficient)); + const nodeWidthCoefficient = parentWidth / width; + const nodeHeightCoefficient = parentHeight / updatePreviousRowHeight; + let addToWidth = false; + + + if ((heightCoefficient < 1) && (heightCoefficient > widthCoefficient) && (nodeWidthCoefficient < tempCoefficient)) { + coefficient = Math.min(coefficient, /*nodeWidthCoefficient,*/ nodeWidthCoefficient); + addToWidth = true; + } else if ((updatePreviousRowHeight > rowHeight) && (widthCoefficient < 1) && (widthCoefficient > nodeHeightCoefficient) && (nodeHeightCoefficient < tempCoefficient)) { + if (previousRowHeight > height || nNeedRecalc >= i) { + coefficient = Math.min(coefficient, nodeHeightCoefficient); + } else { + coefficient = Math.min(coefficient, parentHeight / height); + return true; + } + } else { + if (previousMaxWidthCoefficient !== null && previousMaxWidthCoefficient < coefficient && tempCoefficient < coefficient && previousMaxWidthCoefficient >= heightCoefficient) { + coefficient = previousMaxWidthCoefficient; + return true; + } else if (widthCoefficient < coefficient && (previousMaxWidthCoefficient === null || previousMaxWidthCoefficient < widthCoefficient)) { + previousMaxWidthCoefficient = widthCoefficient; + } + addToWidth = widthCoefficient >= tempCoefficient; + coefficient = tempCoefficient; + + } + if (addToWidth) { + columnWidth = sumWidth; + rowHeight = Math.max(rowHeight, updatePreviousRowHeight); + // todo need optimize + if (nNeedRecalc < i) { + return true + } + } else { + previousRowSpace = spaceConstr; + previousRowHeight = rowHeight; + rowHeight = sumHeight; + columnWidth = width; + } + } + } + return false; + } + + while (calculateAdaptCoefficient()) { + nNeedRecalc = i; + i = 1; + } + this.setScaleCoefficient(coefficient); + }; + SnakeAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(false, isCalculateScaleCoefficients); + }; + SnakeAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficients) { + if (isCalculateScaleCoefficients) { + this.calcScaleCoefficients(); + } else { + this._calculateShapePositions(); + this.applyParamOffsets(); + this.applyAlgorithmAligns(); + this.applyPostAlgorithmSettings(); + this.setConnections(); + } + this.createShadowShape(isCalculateScaleCoefficients); + } + SnakeAlgorithm.prototype._calculateShapePositions = function () { + if (this.isColumn()) { + this.calculateColumnSnakeShapePositions(); + } else { + this.calculateRowSnakeShapePositions(); + } + } + SnakeAlgorithm.prototype.getMainElements = function () { + const childs = this.parentNode.childs; + const mainElements = []; + for (let i = 0; i < childs.length; i += 1) { + const node = childs[i]; + if (!node.node.isSibNode()) { + mainElements.push(node); + } + } + return mainElements; + }; + SnakeAlgorithm.prototype.getBreakpointFixedValue = function () { + if (this.params[AscFormat.Param_type_bkPtFixedVal] !== undefined) { + return this.params[AscFormat.Param_type_bkPtFixedVal]; + } + const mainElements = this.getMainElements(); + return Math.ceil(Math.sqrt(mainElements.length)); + + }; + SnakeAlgorithm.prototype.calcScaleCoefficients = function () { + if (this.isColumn()) { + if (this.params[AscFormat.Param_type_bkpt] !== AscFormat.ParameterVal_breakpoint_endCnv) { + this.calculateFixedColumnScaleCoefficient(); + } + } else { + if (this.params[AscFormat.Param_type_bkpt] === AscFormat.ParameterVal_breakpoint_endCnv) { + this.calculateCanvasRowScaleCoefficient(); + } else { + this.calculateFixedRowScaleCoefficient(); + } + } + }; + SnakeAlgorithm.prototype.isReverseNextLine = function () { + return this.params[AscFormat.Param_type_contDir] === AscFormat.ParameterVal_continueDirection_revDir; + }; + SnakeAlgorithm.prototype.addGridToParentContainer = function (parentContainer, gridContainer, isReverse) { + if (isReverse) { + gridContainer.reverse(); + } + + switch (this.params[AscFormat.Param_type_grDir]) { + case AscFormat.ParameterVal_growDirection_tL: + parentContainer.push(gridContainer); + break; + case AscFormat.ParameterVal_growDirection_bR: + parentContainer.unshift(gridContainer); + break; + case AscFormat.ParameterVal_growDirection_tR: + if (this.isColumn()) { + parentContainer.unshift(gridContainer); + } else { + parentContainer.push(gridContainer); + } + break; + case AscFormat.ParameterVal_growDirection_bL: + if (this.isColumn()) { + parentContainer.push(gridContainer); + } else { + parentContainer.unshift(gridContainer); + } + break; + default: + break; + } + }; + SnakeAlgorithm.prototype.isPushInCurrentLine = function (containerLength) { + let defaultValue; + switch (this.params[AscFormat.Param_type_grDir]) { + case AscFormat.ParameterVal_growDirection_tR: + defaultValue = this.isColumn(); + break; + case AscFormat.ParameterVal_growDirection_tL: + defaultValue = true; + break; + case AscFormat.ParameterVal_growDirection_bR: + defaultValue = false; + break; + case AscFormat.ParameterVal_growDirection_bL: + defaultValue = !this.isColumn(); + break; + default: + defaultValue = true; + break; + } + return this.isReverseNextLine() && (containerLength % 2 === 1) ? !defaultValue : defaultValue; + }; + SnakeAlgorithm.prototype.addShapeToRow = function (row, shape, isPush, offX) { + row.push(shape); + if (isPush) { + shape.moveTo(offX - shape.x, -shape.y); + return shape.x + shape.width; + } else { + shape.moveTo(offX - (shape.x + shape.width), -shape.y); + return shape.x; + } + }; + SnakeAlgorithm.prototype.addShapeToColumn = function (column, shape, isPush, offY) { + column.push(shape); + if (isPush) { + shape.moveTo(-shape.x, offY - shape.y); + return shape.y + shape.height; + } else { + shape.moveTo(-shape.x, offY - (shape.y + shape.height)); + return shape.y; + } + }; + SnakeAlgorithm.prototype.calculateRowSnakeShapePositions = function () { + const childs = this.parentNode.childs; + const parentWidth = this.parentNode.getConstr(AscFormat.Constr_type_w, true); + const constrSpace = this.calcValues.spacing; + const rows = this.getShapeContainer(); + rows.setGap(constrSpace); + let row = new ShapeContainer(); + let isPushInCurrentLine = this.isPushInCurrentLine(0); + let sibSpacingShapes = []; + let sibWidth = 0; + let offX = 0; + let startX = 0; + for (let i = 0; i < childs.length; i += 1) { + const child = childs[i]; + const shape = child.getShape(false); + const newRowWidth = Math.abs(offX - startX) + shape.width + sibWidth; + if (newRowWidth > parentWidth && !fAlgDeltaEqual(newRowWidth, parentWidth)) { + this.addGridToParentContainer(rows, row, !isPushInCurrentLine); + isPushInCurrentLine = this.isPushInCurrentLine(rows.getLength()); + if (isPushInCurrentLine) { + const positionShape = row.shapes[0]; + offX = positionShape.x; + startX = offX; + } else { + const positionShape = row.shapes[row.shapes.length - 1]; + offX = positionShape.x + positionShape.width; + startX = offX; + } + + row = new ShapeContainer(); + sibSpacingShapes = []; + sibWidth = 0; + if (!child.node.isSibNode()) { + offX = this.addShapeToRow(row, shape, isPushInCurrentLine, offX); + } + } else { + if (!child.node.isSibNode()) { + for (let j = 0; j < sibSpacingShapes.length; j += 1) { + offX = this.addShapeToRow(row, sibSpacingShapes[j], isPushInCurrentLine, offX); + } + sibSpacingShapes = []; + sibWidth = 0; + offX = this.addShapeToRow(row, shape, isPushInCurrentLine, offX); + } else if (row.shapes.length !== 0) { + sibSpacingShapes.push(shape); + sibWidth += shape.width; + } + } + } + if (row !== rows.rows[rows.rows.length - 1]) { + this.addGridToParentContainer(rows, row); + } + rows.applyVerticalPositions(); + }; + + SnakeAlgorithm.prototype.calculateColumnSnakeShapePositions = function () { + const childs = this.parentNode.childs; + const parentHeight = this.parentNode.getConstr(AscFormat.Constr_type_h, true); + const constrSpace = this.calcValues.spacing; + const columns = this.getShapeContainer(); + columns.setGap(constrSpace); + let column = new ShapeContainer(); + let isPushInCurrentLine = this.isPushInCurrentLine(0); + let sibSpacingShapes = []; + let sibSpacingHeight = 0; + let offY = 0; + let startY = 0; + for (let i = 0; i < childs.length; i += 1) { + const child = childs[i]; + const shape = child.getShape(false); + const newRowHeight = Math.abs(offY - startY) + shape.height + sibSpacingHeight; + if (newRowHeight > parentHeight && !fAlgDeltaEqual(newRowHeight, parentHeight)) { + this.addGridToParentContainer(columns, column, !isPushInCurrentLine); + isPushInCurrentLine = this.isPushInCurrentLine(columns.getLength()); + if (isPushInCurrentLine) { + const positionShape = column.shapes[0]; + offY = positionShape.y; + startY = offY; + } else { + const positionShape = column.shapes[column.shapes.length - 1]; + offY = positionShape.y + positionShape.height; + startY = offY; + } + + column = new ShapeContainer(); + sibSpacingShapes = []; + sibSpacingHeight = 0; + if (!child.node.isSibNode()) { + offY = this.addShapeToColumn(column, shape, isPushInCurrentLine, offY); + } + } else { + if (!child.node.isSibNode()) { + for (let j = 0; j < sibSpacingShapes.length; j += 1) { + offY = this.addShapeToColumn(column, sibSpacingShapes[j], isPushInCurrentLine, offY); + } + sibSpacingShapes = []; + sibSpacingHeight = 0; + offY = this.addShapeToColumn(column, shape, isPushInCurrentLine, offY); + } else if (column.shapes.length !== 0) { + sibSpacingShapes.push(shape); + sibSpacingHeight += shape.height; + } + } + } + if (column !== columns.columns[columns.columns.length - 1]) { + this.addGridToParentContainer(columns, column); + } + columns.applyHorizontalPositions(); + }; + SnakeAlgorithm.prototype.isColumn = function () { + return this.params[AscFormat.Param_type_flowDir] === AscFormat.ParameterVal_flowDirection_col; + } + SnakeAlgorithm.prototype.getShapeContainer = function (isCalculateScaleCoefficient) { + if (isCalculateScaleCoefficient) { + if (this.coefficientShapeContainer === null) { + this.coefficientShapeContainer = this.isColumn() ? new ShapeColumns() : new ShapeRows(); + } + return this.coefficientShapeContainer; + } + if (this.shapeContainer === null) { + this.shapeContainer = this.isColumn() ? new ShapeColumns() : new ShapeRows(); + } + return this.shapeContainer; + }; + + function ContainerBase() { + + } + ContainerBase.prototype.forEachShape = function (callback) { + }; + ContainerBase.prototype.applyCenterAlign = function (parentHeight, parentWidth, isCalculateScaleCoefficients, algorithm) { + }; + + function ShapeContainer() { + ContainerBase.call(this); + this.shapes = []; + this.bounds = null; + } + AscFormat.InitClassWithoutType(ShapeContainer, ContainerBase); + ShapeContainer.prototype.forEachShape = function (callback) { + for (let i = 0; i < this.shapes.length; i += 1) { + callback(this.shapes[i]); + } + }; + ShapeContainer.prototype.reverse = function () { + return this.shapes.reverse(); + }; + ShapeContainer.prototype.push = function (shape) { + this.shapes.push(shape); + }; + ShapeContainer.prototype.unshift = function (shape) { + this.shapes.unshift(shape); + }; + ShapeContainer.prototype.getBounds = function (isCalculateScaleCoefficient, isClean) { + if (this.shapes.length) { + const firstShape = this.shapes[0]; + this.bounds = firstShape.getBounds(isClean); + for (let i = 1; i < this.shapes.length; i += 1) { + this.shapes[i].checkBounds(this.bounds, isClean); + } + } else { + this.bounds = {l: 0, r: 0, t: 0, b: 0}; + } + return this.bounds; + }; + ShapeContainer.prototype.getOffsets = function (parentHeight, parentWidth, isCalculateScaleCoefficient) { + const bounds = this.getBounds(isCalculateScaleCoefficient); + const ctrX = bounds.l + (bounds.r - bounds.l) / 2; + const ctrY = bounds.t + (bounds.b - bounds.t) / 2; + const offX = parentWidth / 2 - ctrX; + const offY = parentHeight / 2 - ctrY; + return {offX: offX, offY: offY}; + } + ShapeContainer.prototype.applyCenterAlign = function (parentHeight, parentWidth, isCalculateScaleCoefficient, algorithm) { + const offsets = this.getOffsets(parentHeight, parentWidth, isCalculateScaleCoefficient); + algorithm.moveToHierarchyOffsets(offsets.offX, offsets.offY); + for (let i = 0; i < this.shapes.length; i++) { + const shape = this.shapes[i]; + const node = shape.node; + node.moveTo(offsets.offX, offsets.offY, isCalculateScaleCoefficient); + } + }; + function PyramidContainer() { + ShapeContainer.call(this) + } + AscFormat.InitClassWithoutType(PyramidContainer, ShapeContainer); + + function HierarchyChildContainer() { + ShapeContainer.call(this); + } + AscFormat.InitClassWithoutType(HierarchyChildContainer, ShapeContainer); + HierarchyChildContainer.prototype.getBounds = function (isCalculateScaleCoefficient) { + let bounds; + for (let i = 0; i < this.shapes.length; i += 1) { + const shape = this.shapes[i]; + const algorithm = shape.node.algorithm; + bounds = algorithm.getBounds(isCalculateScaleCoefficient, bounds); + } + if (!bounds) { + return {l: 0, r: 0, t: 0, b: 0}; + } + return bounds; + }; + function HierarchyRootContainer() { + ShapeContainer.call(this); + } + AscFormat.InitClassWithoutType(HierarchyRootContainer, ShapeContainer); + function CycleContainer() { + ShapeContainer.call(this); + } + AscFormat.InitClassWithoutType(CycleContainer, ShapeContainer); + CycleContainer.prototype.getBounds = function (isCalculateScaleCoefficient) { + if (this.shapes.length) { + const firstShape = this.shapes[0]; + const bounds = { + l: firstShape.x, + t: firstShape.y, + b: firstShape.y + firstShape.height, + r: firstShape.x + firstShape.width + }; + this.bounds = bounds; + for (let i = 0; i < this.shapes.length; i += 1) { + const shape = this.shapes[i]; + if (shape.x < bounds.l) { + bounds.l = shape.x; + } + if (shape.y < bounds.t) { + bounds.t = shape.y; + } + + const r = shape.x + shape.width; + if (r > bounds.r) { + bounds.r = r; + } + + const b = shape.y + shape.height; + if (b > bounds.b) { + bounds.b = b; + } + } + } else { + this.bounds = {l: 0, r: 0, b: 0, t: 0}; + } + return this.bounds; + }; + + + function ShapeRows() { + ContainerBase.call(this); + this.bounds = null; + this.rows = []; + this.gap = 0; + } + AscFormat.InitClassWithoutType(ShapeRows, ContainerBase); + ShapeRows.prototype.getLength = function () { + return this.rows.length; + }; + ShapeRows.prototype.setGap = function (value) { + this.gap = value; + }; + ShapeRows.prototype.applyVerticalPositions = function () { + for (let i = 1; i < this.rows.length; i += 1) { + const currentRow = this.rows[i]; + const currentRowBounds = currentRow.getBounds(); + const previousRowBounds = this.rows[i - 1].getBounds(); + + const offY = previousRowBounds.b + this.gap - currentRowBounds.t; + for (let j = 0; j < currentRow.shapes.length; j += 1) { + const shape = currentRow.shapes[j]; + shape.moveTo(0, offY); + } + } + }; + ShapeRows.prototype.push = function (elem) { + this.rows.push(elem); + } + ShapeRows.prototype.unshift = function (elem) { + this.rows.unshift(elem); + } + ShapeRows.prototype.getBounds = function (isCalculateScaleCoefficient, isClean) { + if (this.rows.length) { + const firstBounds = Object.assign({}, this.rows[0].getBounds(isCalculateScaleCoefficient, isClean)); + for (let i = 0; i < this.rows.length; i++) { + const row = this.rows[i]; + const bounds = row.getBounds(isCalculateScaleCoefficient, isClean); + checkBounds(firstBounds, bounds); + } + this.bounds = firstBounds; + } else { + this.bounds = {l: 0, r: 0, t: 0, b: 0}; + } + return this.bounds; + }; + + ShapeRows.prototype.applyCenterAlign = function (isCenteringRows) { + const bounds = this.getBounds(); + const width = bounds.r - bounds.l; + + for (let i = 0; i < this.rows.length; i++) { + const row = this.rows[i]; + const rowBounds = row.getBounds(); + const rowHeight = rowBounds.b - rowBounds.t; + let offRowX = 0; + if (isCenteringRows) { + const rowWidth = rowBounds.r - rowBounds.l; + offRowX = bounds.l + width / 2 - (rowBounds.l + rowWidth / 2); + } + for (let j = 0; j < row.shapes.length; j++) { + const shape = row.shapes[j]; + const offRowY = rowBounds.t + rowHeight / 2 - (shape.y + shape.height / 2); + shape.moveTo(offRowX, offRowY); + } + } + }; + ShapeRows.prototype.forEachShape = function (callback) { + for (let i = 0; i < this.rows.length; i += 1) { + this.rows[i].forEachShape(callback); + } + }; + + function ShapeColumns() { + ContainerBase.call(this); + this.bounds = null; + this.columns = []; + this.gap = 0; + } + AscFormat.InitClassWithoutType(ShapeColumns, ContainerBase); + + ShapeColumns.prototype.getLength = function () { + return this.columns.length; + }; + ShapeColumns.prototype.push = function (elem) { + this.columns.push(elem); + } + ShapeColumns.prototype.unshift = function (elem) { + this.columns.unshift(elem); + } + ShapeColumns.prototype.setGap = function (value) { + this.gap = value; + } + ShapeColumns.prototype.getBounds = function (isCalculateScaleCoefficient, isClean) { + if (this.columns.length) { + const firstBounds = Object.assign({}, this.columns[0].getBounds(isCalculateScaleCoefficient, isClean)); + for (let i = 0; i < this.columns.length; i++) { + const column = this.columns[i]; + const bounds = column.getBounds(isCalculateScaleCoefficient, isClean); + checkBounds(firstBounds, bounds); + } + this.bounds = firstBounds; + } else { + this.bounds = {l: 0, r: 0, t: 0, b: 0}; + } + return this.bounds; + }; + + ShapeColumns.prototype.applyHorizontalPositions = function () { + for (let i = 1; i < this.columns.length; i += 1) { + const currentColumn = this.columns[i]; + const currentColumnBounds = currentColumn.getBounds(); + const previousColumnBounds = this.columns[i - 1].getBounds(); + + const offX = previousColumnBounds.r + this.gap - currentColumnBounds.l; + for (let j = 0; j < currentColumn.shapes.length; j += 1) { + const shape = currentColumn.shapes[j]; + shape.moveTo(offX, 0); + } + } + }; + + ShapeColumns.prototype.applyCenterAlign = function (isCenteringColumns) { + const bounds = this.getBounds(); + const height = bounds.b - bounds.t; + + for (let i = 0; i < this.columns.length; i++) { + const column = this.columns[i]; + const columnBounds = column.getBounds(); + const columnWidth = columnBounds.r - columnBounds.l; + + let offColumnY = 0; + if (isCenteringColumns) { + const columnHeight = columnBounds.b - columnBounds.t; + offColumnY = height / 2 - (columnBounds.t + columnHeight / 2); + } + for (let j = 0; j < column.shapes.length; j++) { + const shape = column.shapes[j]; + const offColumnX = columnBounds.l + columnWidth / 2 - (shape.x + shape.width / 2); + shape.moveTo(offColumnX, offColumnY); + } + } + }; + ShapeColumns.prototype.forEachShape = function (callback) { + for (let i = 0; i < this.columns.length; i += 1) { + this.columns[i].forEachShape(callback); + } + }; + +function HierarchyAlgorithm() { + PositionAlgorithm.call(this); + this.levelPositions = []; + this.calcValues = { + mainChilds: null + }; +} + AscFormat.InitClassWithoutType(HierarchyAlgorithm, PositionAlgorithm); + HierarchyAlgorithm.prototype.moveToHierarchyOffsets = function (dx, dy) { + for (let i = 0; i < this.levelPositions.length; i += 1) { + const levelPosition = this.levelPositions[i]; + levelPosition.l += dx; + levelPosition.r += dx; + levelPosition.t += dy; + levelPosition.b += dy; + } + }; + HierarchyAlgorithm.prototype.setLevelBounds = function (bounds) { + this.levelPositions.push(Object.assign({}, bounds)); + }; + HierarchyAlgorithm.prototype.getHorizontalOffset = function (node, isCalculateScaleCoefficient, fromLeft) { + const algorithm = node.algorithm; + let maxSpace = 0; + const shape = node.getShape(isCalculateScaleCoefficient); + + for (let i = 0; i < this.levelPositions.length; i += 1) { + const startBounds = this.levelPositions[i]; + for (let j = 0; j < algorithm.levelPositions.length; j += 1) { + const endBounds = algorithm.levelPositions[j]; + let levelDifference; + if (fromLeft) { + levelDifference = startBounds.r - endBounds.l; + } else { + levelDifference = endBounds.r - startBounds.l; + } + if (levelDifference > maxSpace && !!this.getVerticalIntersection(startBounds, endBounds)) { + maxSpace = levelDifference; + } + } + const shapeBounds = shape.getBounds(); + let nodeDifference; + if (fromLeft) { + nodeDifference = startBounds.r - shapeBounds.l; + } else { + nodeDifference = shapeBounds.r - startBounds.l; + } + if (nodeDifference > maxSpace && !!this.getVerticalIntersection(shapeBounds, startBounds)) { + maxSpace = nodeDifference; + } + } + return maxSpace; + }; + HierarchyAlgorithm.prototype.getHorizontalIntersection = function (bounds1, bounds2) { + return Math.max(Math.min(bounds1.r, bounds2.r) - Math.max(bounds1.l, bounds2.l), 0); + }; + HierarchyAlgorithm.prototype.getVerticalIntersection = function (bounds1, bounds2) { + return Math.max(Math.min(bounds1.b, bounds2.b) - Math.max(bounds1.t, bounds2.t), 0); + }; + HierarchyAlgorithm.prototype.getVerticalOffset = function (node, isCalculateScaleCoefficient) { + const algorithm = node.algorithm; + let maxSpace = 0; + const shape = node.getShape(isCalculateScaleCoefficient); + for (let i = 0; i < this.levelPositions.length; i += 1) { + const startBounds = this.levelPositions[i]; + for (let j = 0; j < algorithm.levelPositions.length; j += 1) { + const endBounds = algorithm.levelPositions[j]; + const levelDifference = startBounds.b - endBounds.t; + if (levelDifference > maxSpace && !!this.getHorizontalIntersection(startBounds, endBounds)) { + maxSpace = levelDifference; + } + } + const shapeBounds = shape.getBounds(); + const nodeDifference = startBounds.b - shapeBounds.t; + if (nodeDifference > maxSpace && !!this.getHorizontalIntersection(shapeBounds, startBounds)) { + maxSpace = nodeDifference; + } + } + return maxSpace; + }; + HierarchyAlgorithm.prototype.isHierarchy = function () { + return true; + }; + HierarchyAlgorithm.prototype.getMainChilds = function () { + if (this.calcValues.mainChilds === null) { + const childs = []; + for (let i = 0; i < this.parentNode.childs.length; i += 1) { + const child = this.parentNode.childs[i]; + if (child.isContentNode()) { + childs.push(child); + } + } + this.calcValues.mainChilds = childs; + } + return this.calcValues.mainChilds; + }; + HierarchyAlgorithm.prototype._calculateShapePositions = function (isAdapt) { + + }; + HierarchyAlgorithm.prototype.setScaleCoefficient = function () { + if (this.parentNode.parent && !(this.parentNode.parent.algorithm instanceof CompositeAlgorithm)) { + return; + } + const childs = this.getMainChilds(); + const parentHeight = this.parentNode.getConstr(AscFormat.Constr_type_h); + const parentWidth = this.parentNode.getConstr(AscFormat.Constr_type_w); + if (!(parentHeight && parentWidth)) { + return; + } + const shapeContainer = this.getShapeContainer(true); + const bounds = shapeContainer.getBounds(true); + const height = bounds.b - bounds.t; + const width = bounds.r - bounds.l; + + const widthCoefficient = Math.min(parentWidth / width, 1); + const heightCoefficient = Math.min(parentHeight / height, 1); + const coefficient = Math.min(widthCoefficient, heightCoefficient, 1); + if (!AscFormat.isRealNumber(coefficient)) { + return + } + + this.parentNode.forEachDes(function (node) { + node.setSizesScale(coefficient, coefficient); + }); + }; + + HierarchyAlgorithm.prototype.updateLevelPositions = function (algorithm) { + if (algorithm.levelPositions) { + for (let i = 0; i < algorithm.levelPositions.length; i += 1) { + this.setLevelBounds(algorithm.levelPositions[i]); + } + } + }; + HierarchyAlgorithm.prototype.resetLevelPositions = function () { + this.levelPositions = []; + }; + HierarchyAlgorithm.prototype.collectHierarchyPositions = function () {}; + HierarchyAlgorithm.prototype.putShapesToShapeContainer = function (isCalculateScaleCoefficient) {}; + HierarchyAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficients) { + this.resetLevelPositions(); + this.putShapesToShapeContainer(isCalculateScaleCoefficients); + this._calculateShapePositions(isCalculateScaleCoefficients); + this.applyParamOffsets(isCalculateScaleCoefficients); + this.collectHierarchyPositions(); + if (isCalculateScaleCoefficients) { + this.setScaleCoefficient(); + } else { + this.setConnections(); + } + this.createShadowShape(isCalculateScaleCoefficients); + }; + + + function HierarchyChildAlgorithm() { + HierarchyAlgorithm.call(this); + } + AscFormat.InitClassWithoutType(HierarchyChildAlgorithm, HierarchyAlgorithm); + + HierarchyChildAlgorithm.prototype.getHorizontalSibSp = function (node, isCalculateScaleCoefficient, fromLeft) { + const sibSp = this.parentNode.getConstr(AscFormat.Constr_type_sibSp, !isCalculateScaleCoefficient); + const offset = this.getHorizontalOffset(node, isCalculateScaleCoefficient, fromLeft); + if (fromLeft) { + return sibSp + offset; + } else { + return - offset - sibSp; + } + }; + HierarchyChildAlgorithm.prototype.getVerticalSibSp = function (node, isCalculateScaleCoefficient) { + const sibSp = this.parentNode.getConstr(AscFormat.Constr_type_sibSp, !isCalculateScaleCoefficient); + const offset = this.getVerticalOffset(node, isCalculateScaleCoefficient); + return sibSp + offset; + }; + HierarchyChildAlgorithm.prototype.isHorizontalHierarchy = function () { + const parent = this.parentNode.parent; + if (parent && parent.algorithm.isHierarchy()) { + return parent.algorithm.isHorizontalHierarchy(); + } else { + switch (this.params[AscFormat.Param_type_chAlign]) { + case AscFormat.ParameterVal_childAlignment_r: + case AscFormat.ParameterVal_childAlignment_l: + return true; + default: + return false; + } + } + }; + HierarchyChildAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createHierarchyChildShadowShape(isCalculateScaleCoefficients); + }; + HierarchyChildAlgorithm.prototype.setParentConnection = function (connectorAlgorithm, childNode) { + const parent = this.parentNode.parent; + if (parent && parent.algorithm.isHierarchy()) { + const root = parent.algorithm.getRoot(); + root.algorithm.setParentConnection(connectorAlgorithm, childNode.algorithm.getRoot()); + } + }; + HierarchyChildAlgorithm.prototype.initParams = function (params) { + HierarchyAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_linDir] === undefined) { + this.params[AscFormat.Param_type_linDir] = AscFormat.ParameterVal_linearDirection_fromL; + } + if (this.params[AscFormat.Param_type_chAlign] === undefined) { + this.params[AscFormat.Param_type_chAlign] = AscFormat.ParameterVal_childAlignment_t; + } + if (this.params[AscFormat.Param_type_off] === undefined) { + this.params[AscFormat.Param_type_off] = AscFormat.ParameterVal_offset_ctr; + } + } + + HierarchyChildAlgorithm.prototype.isHang = function () { + return this.params[AscFormat.Param_type_secLinDir] !== undefined && + this.params[AscFormat.Param_type_linDir] !== undefined; + } + HierarchyChildAlgorithm.prototype.getCommonChildBounds = function (isCalculateScaleCoefficient) { + const childs = this.getMainChilds(); + let bounds; + for (let i = 0; i < childs.length; i += 1) { + const child = childs[i]; + bounds = child.algorithm.getBounds(isCalculateScaleCoefficient, bounds); + } + return bounds; + }; + HierarchyChildAlgorithm.prototype.getRootCenteringOffset = function (shape, isCalculateScaleCoefficient) { + const result = {offX: 0, offY: 0}; + if (this.isHang()) { + const isHorizontal = this.isHorizontalHierarchy(); + const sibSp = this.parentNode.getConstr(AscFormat.Constr_type_sibSp, !isCalculateScaleCoefficient); + const bounds = this.getHangStructBounds(isCalculateScaleCoefficient); + if (!bounds) { + return result; + } + if (isHorizontal) { + result.offY = shape.y + shape.height / 2 - bounds.b - sibSp / 2; + } else { + if (this.params[AscFormat.Param_type_linDir] === AscFormat.ParameterVal_linearDirection_fromR) { + result.offX = shape.x + shape.width / 2 - bounds.l + sibSp / 2; + } else { + result.offX = shape.x + shape.width / 2 - bounds.r - sibSp / 2; + } + } + } + return result; + }; + HierarchyChildAlgorithm.prototype.putShapesToShapeContainer = function (isCalculateScaleCoefficient) { + const childs = this.getMainChilds(); + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficient); + for (let i = 0; i < childs.length; i += 1) { + shapeContainer.push(childs[i].getShape(isCalculateScaleCoefficient)); + } + } + HierarchyChildAlgorithm.prototype.calculateVerticalHierarchyVerticalShapePositions = function (isCalculateScaleCoefficient, fromTop) { + const childs = fromTop ? this.getMainChilds() : this.getMainChilds().slice().reverse(); + const parentNode = this.parentNode; + const sibSp = parentNode.getConstr(AscFormat.Constr_type_sibSp, !isCalculateScaleCoefficient); + const commonBounds = this.getCommonChildBounds(isCalculateScaleCoefficient); + const firstShape = childs[0].getShape(isCalculateScaleCoefficient); + const firstBounds = childs[0].algorithm.getBounds(isCalculateScaleCoefficient); + + const firstChildOffsets = this.getChildAlignOffsets(commonBounds, firstBounds, this.params[AscFormat.Param_type_chAlign]); + firstShape.moveTo(firstChildOffsets.offX, firstChildOffsets.offY); + + let offY = firstBounds.b - firstBounds.t + sibSp; + this.setLevelBounds({l: firstShape.x, t: firstShape.y, b: firstShape.y + firstShape.height, r: firstShape.x + firstShape.width}); + this.updateLevelPositions(childs[0].algorithm); + let previousShape = firstShape; + let previousDesHeight = firstBounds.b - firstBounds.t; + for (let i = 1; i < childs.length; i += 1) { + const node = childs[i]; + const shape = node.getShape(isCalculateScaleCoefficient); + const bounds = node.algorithm.getBounds(isCalculateScaleCoefficient); + const childOffsets = this.getChildAlignOffsets(commonBounds, bounds, this.params[AscFormat.Param_type_chAlign]); + const offY = previousShape.y + previousDesHeight + sibSp - shape.y; + shape.moveTo(childOffsets.offX, offY + childOffsets.offY); + this.setLevelBounds({l: shape.x, t: shape.y, b: shape.y + shape.height, r: shape.x + shape.width}); + this.updateLevelPositions(node.algorithm); + previousShape = shape; + previousDesHeight = bounds.b - bounds.t; + } + }; + HierarchyChildAlgorithm.prototype.calculateHorizontalHierarchyVerticalShapePositions = function (isCalculateScaleCoefficient, fromTop) { + const childs = fromTop ? this.getMainChilds() : this.getMainChilds().slice().reverse(); + const commonBounds = this.getCommonChildBounds(isCalculateScaleCoefficient); + const firstNode = childs[0]; + const firstShape = firstNode.getShape(isCalculateScaleCoefficient); + const firstBounds = firstNode.algorithm.getBounds(isCalculateScaleCoefficient); + const firstChildOffsets = this.getChildAlignOffsets(commonBounds, firstBounds, this.params[AscFormat.Param_type_chAlign]); + firstShape.moveTo(firstChildOffsets.offX, firstChildOffsets.offY); + + this.updateLevelPositions(firstNode.algorithm); + let previousShape = firstShape; + this.setLevelBounds({l: firstShape.x, r: firstShape.x + firstShape.width, t: firstShape.y, b: firstShape.y + firstShape.height}); + for (let i = 1; i < childs.length; i += 1) { + const node = childs[i]; + const shape = node.getShape(isCalculateScaleCoefficient); + const bounds = node.algorithm.getBounds(isCalculateScaleCoefficient); + const offY = previousShape.y + previousShape.height - shape.y; + const childOffsets = this.getChildAlignOffsets(commonBounds, bounds, this.params[AscFormat.Param_type_chAlign]); + shape.moveTo(childOffsets.offX, offY + childOffsets.offY); + const sibSp = this.getVerticalSibSp(node, isCalculateScaleCoefficient); + shape.moveTo(0, sibSp); + this.updateLevelPositions(node.algorithm); + this.setLevelBounds({l: shape.x, r: shape.x + shape.width, t: shape.y, b: shape.y + shape.height}); + previousShape = shape; + } + }; + HierarchyChildAlgorithm.prototype.setSibLevelBounds = function () { + + }; + HierarchyChildAlgorithm.prototype.calculateVerticalHierarchyHorizontalShapePositions = function (isCalculateScaleCoefficient, fromLeft) { + const childs = this.getMainChilds(); + const commonBounds = this.getCommonChildBounds(isCalculateScaleCoefficient); + const firstNode = childs[0]; + const firstShape = firstNode.getShape(isCalculateScaleCoefficient); + const firstBounds = firstNode.algorithm.getBounds(isCalculateScaleCoefficient); + const firstAlignOffsets = this.getChildAlignOffsets(commonBounds, firstBounds, this.params[AscFormat.Param_type_chAlign]); + firstNode.moveTo(firstAlignOffsets.offX, firstAlignOffsets.offY, isCalculateScaleCoefficient); + this.updateLevelPositions(childs[0].algorithm); + let previousShape = firstShape; + this.setLevelBounds({l: firstShape.x, t: firstShape.y, b: firstShape.y + firstShape.height, r: firstShape.x + firstShape.width}); + for (let i = 1; i < childs.length; i += 1) { + const node = childs[i]; + const shape = node.getShape(isCalculateScaleCoefficient); + + let offX; + if (fromLeft) { + offX = previousShape.x + previousShape.width - shape.x; + } else { + offX = previousShape.x - (shape.x + shape.width); + } + const bounds = node.algorithm.getBounds(isCalculateScaleCoefficient); + const alignOffsets = this.getChildAlignOffsets(commonBounds, bounds, this.params[AscFormat.Param_type_chAlign]); + node.moveTo(offX + alignOffsets.offX, alignOffsets.offY, isCalculateScaleCoefficient); + const offset = this.getHorizontalSibSp(node, isCalculateScaleCoefficient, fromLeft); + node.moveTo(offset, 0, isCalculateScaleCoefficient); + previousShape = shape; + this.updateLevelPositions(node.algorithm); + this.setLevelBounds({l: shape.x, t: shape.y, b: shape.y + shape.height, r: shape.x + shape.width}); + } + }; + HierarchyChildAlgorithm.prototype.calculateHorizontalHierarchyHorizontalShapePositions = function (isCalculateScaleCoefficient, fromRight) { + const childs = fromRight ? this.getMainChilds() : this.getMainChilds().slice().reverse(); + const parentNode = this.parentNode; + const sibSp = parentNode.getConstr(AscFormat.Constr_type_sibSp, !isCalculateScaleCoefficient); + const commonBounds = this.getCommonChildBounds(isCalculateScaleCoefficient); + const firstShape = childs[0].getShape(isCalculateScaleCoefficient); + const firstBounds = childs[0].algorithm.getBounds(isCalculateScaleCoefficient); + + const firstChildOffsets = this.getChildAlignOffsets(commonBounds, firstBounds, this.params[AscFormat.Param_type_chAlign]); + firstShape.moveTo(firstChildOffsets.offX, firstChildOffsets.offY); + + this.setLevelBounds({l: firstShape.x, t: firstShape.y, b: firstShape.y + firstShape.height, r: firstShape.x + firstShape.width}); + this.updateLevelPositions(childs[0].algorithm); + let previousShape = firstShape; + let previousWidth = firstBounds.r - firstBounds.l; + for (let i = 1; i < childs.length; i += 1) { + const node = childs[i]; + const shape = node.getShape(isCalculateScaleCoefficient); + const bounds = node.algorithm.getBounds(isCalculateScaleCoefficient); + const childOffsets = this.getChildAlignOffsets(commonBounds, bounds, this.params[AscFormat.Param_type_chAlign]); + const offX = previousShape.x + previousWidth + sibSp; + shape.moveTo(childOffsets.offX + offX, childOffsets.offY); + this.setLevelBounds({l: shape.x, t: shape.y, b: shape.y + shape.height, r: shape.x + shape.width}); + this.updateLevelPositions(node.algorithm); + previousShape = shape; + previousWidth = bounds.r - bounds.l; + } + }; + HierarchyChildAlgorithm.prototype.getShapeContainer = function (isCalculateScaleCoefficient) { + if (isCalculateScaleCoefficient) { + if (this.coefficientShapeContainer === null) { + this.coefficientShapeContainer = new HierarchyChildContainer(); + } + return this.coefficientShapeContainer; + } + if (this.shapeContainer === null) { + this.shapeContainer = new HierarchyChildContainer(); + } + return this.shapeContainer; + } + HierarchyChildAlgorithm.prototype.calculateShapePositionsHorizontalHang = function (isCalculateScaleCoefficient, fromRight) { + const childs = this.getMainChilds(); + const sibSp = this.parentNode.getConstr(AscFormat.Constr_type_sibSp, !isCalculateScaleCoefficient); + + const topRow = []; + const bottomRow = []; + + for (let i = 0; i < childs.length; i += 1) { + const child = childs[i]; + if (i % 2 === 0) { + topRow.push(child); + } else { + bottomRow.push(child); + } + } + + const topCalcBounds = this.applyMainChildAlign(topRow, isCalculateScaleCoefficient); + const bottomCalcBounds = this.applyMainChildAlign(bottomRow, isCalculateScaleCoefficient); + + let bottomOffY = 0; + if (topCalcBounds.commonBounds && bottomCalcBounds.commonBounds) { + bottomOffY = topCalcBounds.commonBounds.b - bottomCalcBounds.commonBounds.t + sibSp; + } + + let offX = 0; + for (let i = 0; i < topRow.length; i += 1) { + const topNode = topRow[i]; + const topShape = topNode.getShape(isCalculateScaleCoefficient); + const topBounds = topCalcBounds.bounds[i]; + + const commonChildBounds = Object.assign({}, topBounds); + + const bottomNode = bottomRow[i]; + let bottomShape; + if (bottomNode) { + bottomShape = bottomNode.getShape(isCalculateScaleCoefficient); + const bottomBounds = bottomCalcBounds.bounds[i]; + checkBounds(commonChildBounds, bottomBounds); + const bottomOffsets = this.getChildAlignOffsets(commonChildBounds, bottomBounds, this.params[AscFormat.Param_type_chAlign]); + bottomNode.moveTo(bottomOffsets.offX, bottomOffsets.offY, isCalculateScaleCoefficient); + if (fromRight) { + bottomShape.moveTo(offX - (bottomShape.x + bottomShape.width), bottomOffY - bottomShape.y); + } else { + bottomShape.moveTo(offX - bottomShape.x, bottomOffY - bottomShape.y); + } + this.updateLevelPositions(bottomNode.algorithm); + this.setLevelBounds({ + l: bottomShape.x, + r: bottomShape.x + bottomShape.width, + t: bottomShape.y, + b: bottomShape.y + bottomShape.height + }); + } + const topOffsets = this.getChildAlignOffsets(commonChildBounds, topBounds, this.params[AscFormat.Param_type_chAlign]); + topNode.moveTo(topOffsets.offX, topOffsets.offY, isCalculateScaleCoefficient); + if (fromRight) { + topShape.moveTo(offX - (topShape.x + topShape.width), 0); + } else { + topShape.moveTo(offX - topShape.x, 0); + } + this.updateLevelPositions(topNode.algorithm); + this.setLevelBounds({ + l: topShape.x, + r: topShape.x + topShape.width, + t: topShape.y, + b: topShape.y + topShape.height + }); + if (topShape && bottomShape) { + const bottomBounds = bottomCalcBounds.bounds[i]; + if (fromRight) { + const topLeft = topShape.x + topShape.width - (topBounds.r - topBounds.l); + const bottomLeft = bottomShape.x + bottomShape.width - (bottomBounds.r - bottomBounds.l); + offX = Math.min(topLeft, bottomLeft) - sibSp; + } else { + const topRight = topShape.x + (topBounds.r - topBounds.l); + const bottomRight = bottomShape.x + (bottomBounds.r - bottomBounds.l); + offX = Math.max(topRight, bottomRight) + sibSp; + } + } + } + }; + HierarchyChildAlgorithm.prototype.getChildAlignOffsets = function (commonBounds, shapeBounds, childAlign) { + const offsets = {offX: 0, offY: 0}; + + switch (childAlign) { + case AscFormat.ParameterVal_childAlignment_l: + offsets.offX = commonBounds.l - shapeBounds.l; + break; + case AscFormat.ParameterVal_childAlignment_t: + offsets.offY = commonBounds.t - shapeBounds.t; + break; + case AscFormat.ParameterVal_childAlignment_r: + offsets.offX = commonBounds.r - shapeBounds.r; + break; + case AscFormat.ParameterVal_childAlignment_b: + offsets.offY = commonBounds.b - shapeBounds.b; + break; + default: + break; + } + return offsets; + }; + HierarchyChildAlgorithm.prototype.calculateShapePositionsVerticalHangFromTop = function (isCalculateScaleCoefficient, fromRight) { + const childs = this.getMainChilds(); + + let leftCol = []; + let rightCol = []; + const sibSp = this.parentNode.getConstr(AscFormat.Constr_type_sibSp, !isCalculateScaleCoefficient); + for (let i = 0; i < childs.length; i += 1) { + const child = childs[i]; + if (i % 2 === 0) { + leftCol.push(child); + } else { + rightCol.push(child); + } + } + if (fromRight) { + const tempCol = leftCol; + leftCol = rightCol; + rightCol = tempCol; + } + const leftCalcBounds = this.applyMainChildAlign(leftCol, isCalculateScaleCoefficient); + const rightCalcBounds = this.applyMainChildAlign(rightCol, isCalculateScaleCoefficient); + let rightOffX = 0; + if (leftCalcBounds.commonBounds && rightCalcBounds.commonBounds) { + rightOffX = leftCalcBounds.commonBounds.r - rightCalcBounds.commonBounds.l + sibSp; + } + let offY = 0; + const columnLength = Math.ceil(childs.length / 2); + for (let i = 0; i < columnLength; i += 1) { + const leftNode = leftCol[i]; + if (leftNode) { + const leftShape = leftNode.getShape(isCalculateScaleCoefficient); + leftShape.moveTo(0, offY); + this.updateLevelPositions(leftNode.algorithm); + this.setLevelBounds({l: leftShape.x, r: leftShape.x + leftShape.width, t: leftShape.y, b: leftShape.y + leftShape.height}); + } + const rightNode = rightCol[i]; + if (rightNode) { + const rightShape = rightNode.getShape(isCalculateScaleCoefficient); + rightShape.moveTo(rightOffX, offY); + this.updateLevelPositions(rightNode.algorithm); + this.setLevelBounds({l: rightShape.x, r: rightShape.x + rightShape.width, t: rightShape.y, b: rightShape.y + rightShape.height}); + } + const leftBounds = leftCalcBounds.bounds[i]; + const rightBounds = rightCalcBounds.bounds[i]; + if (leftBounds && rightBounds) { + const commonChildBounds = Object.assign({}, leftBounds); + checkBounds(commonChildBounds, rightBounds); +/* const leftOffsets = this.getChildAlignOffsets(commonChildBounds, leftBounds, this.params[AscFormat.Param_type_chAlign]); + const rightOffsets = this.getChildAlignOffsets(commonChildBounds, rightBounds, this.params[AscFormat.Param_type_chAlign]); + leftNode.moveTo(leftOffsets.offX, leftOffsets.offY, isCalculateScaleCoefficient); + rightNode.moveTo(rightOffsets.offX, rightOffsets.offY, isCalculateScaleCoefficient);*/ + offY += Math.max(leftBounds.b - leftBounds.t, rightBounds.b - rightBounds.t) + sibSp; + } + } + }; + HierarchyChildAlgorithm.prototype.applyMainChildAlign = function (childs, isCalculateScaleCoefficient) { + const allBounds = []; + const result = { + commonBounds: null, + bounds: allBounds + }; + if (!childs.length) { + return result; + } + const commonBounds = {}; + const firstChild = childs[0]; + const firstBounds = firstChild.algorithm.getBounds(isCalculateScaleCoefficient); + allBounds.push(firstBounds); + Object.assign(commonBounds, firstBounds); + for (let i = 1; i < childs.length; i += 1) { + const child = childs[i]; + const bounds = child.algorithm.getBounds(isCalculateScaleCoefficient); + checkBounds(commonBounds, bounds); + allBounds.push(bounds); + } + + for (let i = 0; i < childs.length; i += 1) { + const child = childs[i]; + const mainOffsets = this.getChildAlignOffsets(commonBounds, allBounds[i], this.params[AscFormat.Param_type_chAlign]); + const secondaryOffsets = this.getChildAlignOffsets(commonBounds, allBounds[i], this.params[AscFormat.Param_type_secChAlign]); + child.moveTo(mainOffsets.offX + secondaryOffsets.offX, mainOffsets.offY + secondaryOffsets.offY, isCalculateScaleCoefficient); + } + return {commonBounds: commonBounds, bounds: allBounds}; + }; + + HierarchyChildAlgorithm.prototype.calculateShapePositionsVerticalHangFromRight = function (isCalculateScaleCoefficient) { + + }; + HierarchyChildAlgorithm.prototype._calculateShapePositions = function (isCalculateScaleCoefficient) { + const childs = this.getMainChilds(); + if (!childs.length) { + return; + } + if (this.isHang()) { + switch (this.params[AscFormat.Param_type_secLinDir]) { + case AscFormat.ParameterVal_linearDirection_fromT: + const fromRight = this.params[AscFormat.Param_type_linDir] === AscFormat.ParameterVal_linearDirection_fromR; + this.calculateShapePositionsVerticalHangFromTop(isCalculateScaleCoefficient, fromRight); + break; + case AscFormat.ParameterVal_linearDirection_fromL: + this.calculateShapePositionsHorizontalHang(isCalculateScaleCoefficient, false); + break; + case AscFormat.ParameterVal_linearDirection_fromR: + this.calculateShapePositionsHorizontalHang(isCalculateScaleCoefficient, true); + break; + default: + break; + } + } else { + if (this.isHorizontalHierarchy()) { + switch (this.params[AscFormat.Param_type_linDir]) { + case AscFormat.ParameterVal_linearDirection_fromB: + this.calculateHorizontalHierarchyVerticalShapePositions(isCalculateScaleCoefficient, false); + break; + case AscFormat.ParameterVal_linearDirection_fromT: + this.calculateHorizontalHierarchyVerticalShapePositions(isCalculateScaleCoefficient, true); + break; + case AscFormat.ParameterVal_linearDirection_fromR: + this.calculateHorizontalHierarchyHorizontalShapePositions(isCalculateScaleCoefficient, false); + break; + case AscFormat.ParameterVal_linearDirection_fromL: + this.calculateHorizontalHierarchyHorizontalShapePositions(isCalculateScaleCoefficient, true); + break; + default: + break; + } + } else { + switch (this.params[AscFormat.Param_type_linDir]) { + case AscFormat.ParameterVal_linearDirection_fromB: + this.calculateVerticalHierarchyVerticalShapePositions(isCalculateScaleCoefficient, false); + break; + case AscFormat.ParameterVal_linearDirection_fromT: + this.calculateVerticalHierarchyVerticalShapePositions(isCalculateScaleCoefficient, true); + break; + case AscFormat.ParameterVal_linearDirection_fromR: + this.calculateVerticalHierarchyHorizontalShapePositions(isCalculateScaleCoefficient, false); + break; + case AscFormat.ParameterVal_linearDirection_fromL: + this.calculateVerticalHierarchyHorizontalShapePositions(isCalculateScaleCoefficient, true); + break; + default: + break; + } + } + } + }; + + HierarchyChildAlgorithm.prototype.getChildBounds = function (isCalculateScaleCoefficients) { + const childs = this.getMainChilds(); + + if (!childs.length) { + return; + } + + const firstChild = childs[0]; + const firstRoot = firstChild.algorithm.getRoot(); + const firstShape = firstRoot.getShape(isCalculateScaleCoefficients); + const bounds = firstShape.getBounds(); + + for (let i = 1; i < childs.length; i += 1) { + const child = childs[i]; + const root = child.algorithm.getRoot(); + const shape = root.getShape(isCalculateScaleCoefficients); + shape.checkBounds(bounds); + } + return bounds; + }; + HierarchyChildAlgorithm.prototype.getHangStructBounds = function (isCalculateScaleCoefficients) { + const childs = this.getMainChilds(); + if (!childs.length) { + return; + } + const firstChild = childs[0]; + const bounds = firstChild.algorithm.getBounds(isCalculateScaleCoefficients); + for (let i = 2; i < childs.length; i += 2) { + const child = childs[i]; + child.algorithm.getBounds(isCalculateScaleCoefficients, bounds); + } + return bounds; + }; + function HierarchyRootAlgorithm() { + HierarchyAlgorithm.call(this); + } + AscFormat.InitClassWithoutType(HierarchyRootAlgorithm, HierarchyAlgorithm); + HierarchyRootAlgorithm.prototype.isHorizontalHierarchy = function () { + switch (this.params[AscFormat.Param_type_hierAlign]) { + case AscFormat.ParameterVal_hierarchyAlignment_lB: + case AscFormat.ParameterVal_hierarchyAlignment_lCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_lCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_lT: + case AscFormat.ParameterVal_hierarchyAlignment_rB: + case AscFormat.ParameterVal_hierarchyAlignment_rCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_rCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_rT: + return true; + default: + return false; + } + }; + HierarchyRootAlgorithm.prototype.putShapesToShapeContainer = function (isCalculateScaleCoefficient) { + const rootNode = this.getRoot(); + const asstNode = this.getAsstNode(); + const nonAsstNode = this.getNonAsstNode(); + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficient); + shapeContainer.push(rootNode.getShape(isCalculateScaleCoefficient)); + if (asstNode && asstNode.algorithm.getMainChilds().length) { + shapeContainer.push(asstNode.getShape(isCalculateScaleCoefficient)); + } + if (nonAsstNode.algorithm.getMainChilds().length) { + shapeContainer.push(nonAsstNode.getShape(isCalculateScaleCoefficient)); + } + }; + HierarchyRootAlgorithm.prototype.getBounds = function (isCalculateScaleCoefficients, bounds) { + const childs = this.getMainChilds(); + const firstChild = childs[0]; + const firstShape = firstChild.getShape(isCalculateScaleCoefficients); + if (!bounds) { + bounds = firstShape.getBounds(); + } else { + firstShape.checkBounds(bounds); + } + const asstNode = this.getAsstNode(); + if (asstNode && asstNode.childs.length) { + const shape = asstNode.getShape(isCalculateScaleCoefficients); + shape.checkBounds(bounds); + } + const nonAsstNode = this.getNonAsstNode(); + if (nonAsstNode.childs.length) { + const shape = nonAsstNode.getShape(isCalculateScaleCoefficients); + shape.checkBounds(bounds); + } + return bounds; + }; + HierarchyRootAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createHierarchyRootShadowShape(isCalculateScaleCoefficients); + }; + HierarchyRootAlgorithm.prototype.getNonAsstNode = function () { + return this.parentNode.childs[1]; + }; + HierarchyRootAlgorithm.prototype.getAsstNode = function () { + return this.parentNode.childs[2]; + }; + HierarchyRootAlgorithm.prototype.applyMainTopAlign = function (isCalculateScaleCoefficients) { + const root = this.getRoot(); + if (!root) { + return; + } + const parentNode = this.parentNode; + const space = parentNode.getConstr(AscFormat.Constr_type_sp, !isCalculateScaleCoefficients); + const rootShape = root.getShape(isCalculateScaleCoefficients); + let offY = rootShape.y + rootShape.height + space; + + const asstNode = this.getAsstNode(); + if (asstNode && asstNode.algorithm.getMainChilds().length) { + const asstShape = asstNode.getShape(isCalculateScaleCoefficients); + asstShape.moveTo(/*todo: asstOffset*/0, offY - asstShape.y); + offY = asstShape.y + asstShape.height + space; + } + + const nonAsstNode = this.getNonAsstNode(); + if (nonAsstNode.algorithm.getMainChilds().length) { + const nonAsstShape = nonAsstNode.getShape(isCalculateScaleCoefficients); + nonAsstShape.moveTo(/*todo: nonAsstOffset*/0, offY - nonAsstShape.y); + } + }; + + HierarchyRootAlgorithm.prototype.applyMainBottomAlign = function (isCalculateScaleCoefficients) { + const rootNode = this.getRoot(); + if (!rootNode) { + return; + } + const parentNode = this.parentNode; + const space = parentNode.getConstr(AscFormat.Constr_type_sp, !isCalculateScaleCoefficients); + + let offY = 0; + const nonAsstNode = this.getNonAsstNode(); + if (nonAsstNode.algorithm.getMainChilds().length) { + const nonAsstShape = nonAsstNode.getShape(isCalculateScaleCoefficients); + offY += nonAsstShape.y + nonAsstShape.height + space; + } + + + const asstNode = this.getAsstNode(); + if (asstNode && asstNode.algorithm.getMainChilds().length) { + const asstShape = asstNode.getShape(isCalculateScaleCoefficients); + asstShape.moveTo(/*todo: asstOffset*/0, offY - asstShape.y); + offY = asstShape.y + asstShape.height + space; + } + + const rootShape = rootNode.getShape(isCalculateScaleCoefficients); + rootShape.moveTo(0, offY - rootShape.y); + }; + + HierarchyRootAlgorithm.prototype.applyMainLeftAlign = function (isCalculateScaleCoefficients) { + const rootNode = this.getRoot(); + if (!rootNode) { + return; + } + const space = this.parentNode.getConstr(AscFormat.Constr_type_sp, !isCalculateScaleCoefficients); + const rootShape = rootNode.getShape(isCalculateScaleCoefficients); + const bounds = rootShape.getBounds(); + let offX = bounds.r + space; + + const asstNode = this.getAsstNode(); + if (asstNode && asstNode.algorithm.getMainChilds().length) { + const asstShape = asstNode.getShape(isCalculateScaleCoefficients); + asstShape.moveTo(offX - asstShape.x, 0); + offX = asstShape.x + asstShape.width + space; + } + + const nonAsstNode = this.getNonAsstNode(); + if (nonAsstNode.algorithm.getMainChilds().length) { + const nonAsstShape = nonAsstNode.getShape(isCalculateScaleCoefficients); + nonAsstShape.moveTo(offX - nonAsstShape.x, 0); + } + }; + + HierarchyRootAlgorithm.prototype.applyMainRightAlign = function (isCalculateScaleCoefficients) { + const rootNode = this.getRoot(); + if (!rootNode) { + return; + } + const space = this.parentNode.getConstr(AscFormat.Constr_type_sp, !isCalculateScaleCoefficients); + let offX = 0; + + const nonAsstNode = this.getNonAsstNode(); + if (nonAsstNode.algorithm.getMainChilds().length) { + const nonAsstShape = nonAsstNode.getShape(isCalculateScaleCoefficients); + offX = nonAsstShape.x + nonAsstShape.width + space; + } + + const asstNode = this.getAsstNode(); + if (asstNode && asstNode.algorithm.getMainChilds().length) { + const asstShape = asstNode.getShape(isCalculateScaleCoefficients); + asstShape.moveTo(offX - asstShape.x, 0); + offX = asstShape.x + asstShape.width + space; + } + + const rootShape = rootNode.getShape(isCalculateScaleCoefficients); + const bounds = rootShape.getBounds(); + rootShape.moveTo(offX - bounds.l, 0); + }; + + HierarchyRootAlgorithm.prototype.applyMainAlign = function (isCalculateScaleCoefficients) { + switch (this.params[AscFormat.Param_type_hierAlign]) { + case AscFormat.ParameterVal_hierarchyAlignment_bCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_bCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_bL: + case AscFormat.ParameterVal_hierarchyAlignment_bR: + this.applyMainBottomAlign(isCalculateScaleCoefficients); + break; + case AscFormat.ParameterVal_hierarchyAlignment_lB: + case AscFormat.ParameterVal_hierarchyAlignment_lT: + case AscFormat.ParameterVal_hierarchyAlignment_lCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_lCtrDes: + this.applyMainLeftAlign(isCalculateScaleCoefficients); + break; + case AscFormat.ParameterVal_hierarchyAlignment_rB: + case AscFormat.ParameterVal_hierarchyAlignment_rT: + case AscFormat.ParameterVal_hierarchyAlignment_rCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_rCtrDes: + this.applyMainRightAlign(isCalculateScaleCoefficients); + break; + case AscFormat.ParameterVal_hierarchyAlignment_tCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_tCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_tL: + case AscFormat.ParameterVal_hierarchyAlignment_tR: + this.applyMainTopAlign(isCalculateScaleCoefficients); + break; + default: + return; + } + }; + HierarchyRootAlgorithm.prototype.applySecondaryAlign = function (isCalculateScaleCoefficients) { + const asstNode = this.getAsstNode(); + const nonAsstNode = this.getNonAsstNode(); + + if (asstNode) { + this.applySecondaryAlignForChild(isCalculateScaleCoefficients, asstNode); + } + this.applySecondaryAlignForChild(isCalculateScaleCoefficients, nonAsstNode); + }; + HierarchyRootAlgorithm.prototype.applySecondaryAlignForChild = function (isCalculateScaleCoefficients, child) { + const rootNode = this.getRoot(); + const rootShape = rootNode.getShape(isCalculateScaleCoefficients); + const childShape = child.getShape(isCalculateScaleCoefficients); + if (child.algorithm.isHang()) { + const offsets = child.algorithm.getRootCenteringOffset(rootShape, isCalculateScaleCoefficients); + childShape.moveTo(offsets.offX, offsets.offY); + return; + } + + const appendChildOffset = this.getOffsetAlign(isCalculateScaleCoefficients, child); + switch (this.params[AscFormat.Param_type_hierAlign]) { + case AscFormat.ParameterVal_hierarchyAlignment_lCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_rCtrCh: { + const childBounds = child.algorithm.getChildBounds(isCalculateScaleCoefficients); + if (childBounds) { + childShape.moveTo(0, (rootShape.y + rootShape.height / 2) - (childBounds.t + (childBounds.b - childBounds.t) / 2) + appendChildOffset); + } + break; + } + case AscFormat.ParameterVal_hierarchyAlignment_bCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_tCtrCh: { + const childBounds = child.algorithm.getChildBounds(isCalculateScaleCoefficients); + if (childBounds) { + childShape.moveTo((rootShape.x + rootShape.width / 2) - (childBounds.l + (childBounds.r - childBounds.l) / 2) + appendChildOffset, 0); + } + break; + } + case AscFormat.ParameterVal_hierarchyAlignment_lCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_rCtrDes: + childShape.moveTo(0, rootShape.y + rootShape.height / 2 - (childShape.y + childShape.height / 2) + appendChildOffset); + break; + case AscFormat.ParameterVal_hierarchyAlignment_bCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_tCtrDes: + childShape.moveTo(rootShape.x + rootShape.width / 2 - (childShape.x + childShape.width / 2) + appendChildOffset, 0); + break; + case AscFormat.ParameterVal_hierarchyAlignment_bL: + case AscFormat.ParameterVal_hierarchyAlignment_tL: + childShape.moveTo(rootShape.x - childShape.x + appendChildOffset, 0); + break; + case AscFormat.ParameterVal_hierarchyAlignment_bR: + case AscFormat.ParameterVal_hierarchyAlignment_tR: + childShape.moveTo((rootShape.x + rootShape.width) - (childShape.x + childShape.width) + appendChildOffset, 0); + break; + case AscFormat.ParameterVal_hierarchyAlignment_lB: + case AscFormat.ParameterVal_hierarchyAlignment_rB: + childShape.moveTo(0, (rootShape.y + rootShape.height) - (childShape.y + childShape.height) + appendChildOffset); + break; + case AscFormat.ParameterVal_hierarchyAlignment_lT: + case AscFormat.ParameterVal_hierarchyAlignment_rT: + childShape.moveTo(0, rootShape.y - childShape.y + appendChildOffset); + break; + default: + return; + } + }; + + HierarchyRootAlgorithm.prototype.getOffsetAlign = function (isCalculateScaleCoefficients, child) { + const offsetFactor = child.algorithm.isHang() ? 0 : this.parentNode.getConstr(AscFormat.Constr_type_alignOff, !isCalculateScaleCoefficients); + if (!offsetFactor) { + return 0; + } + const rootNode = this.getRoot(); + const rootShape = rootNode.getShape(isCalculateScaleCoefficients); + switch (this.params[AscFormat.Param_type_hierAlign]) { + case AscFormat.ParameterVal_hierarchyAlignment_bCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_lCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_rCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_tCtrCh: + case AscFormat.ParameterVal_hierarchyAlignment_bCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_lCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_rCtrDes: + case AscFormat.ParameterVal_hierarchyAlignment_tCtrDes: + return 0; + case AscFormat.ParameterVal_hierarchyAlignment_bL: + case AscFormat.ParameterVal_hierarchyAlignment_tL: + return rootShape.width * offsetFactor; + case AscFormat.ParameterVal_hierarchyAlignment_bR: + case AscFormat.ParameterVal_hierarchyAlignment_tR: + return -rootShape.width * offsetFactor; + case AscFormat.ParameterVal_hierarchyAlignment_lB: + case AscFormat.ParameterVal_hierarchyAlignment_rB: + return -rootShape.height * offsetFactor; + case AscFormat.ParameterVal_hierarchyAlignment_lT: + case AscFormat.ParameterVal_hierarchyAlignment_rT: + return rootShape.height * offsetFactor; + default: + return 0; + } + }; + + HierarchyRootAlgorithm.prototype.initParams = function (params) { + HierarchyAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_off] === undefined) { + this.params[AscFormat.Param_type_off] = AscFormat.ParameterVal_offset_ctr; + } + if (this.params[AscFormat.Param_type_hierAlign] === undefined) { + this.params[AscFormat.Param_type_hierAlign] = AscFormat.ParameterVal_hierarchyAlignment_tCtrCh; + } + } + HierarchyRootAlgorithm.prototype.getRoot = function () { + const childs = this.getMainChilds(); + if (childs.length) { + return childs[0]; + } + }; + HierarchyRootAlgorithm.prototype.getShapeContainer = function (isCalculateScaleCoefficients) { + if (isCalculateScaleCoefficients) { + if (this.coefficientShapeContainer === null) { + this.coefficientShapeContainer = new HierarchyRootContainer(); + } + return this.coefficientShapeContainer; + } else { + if (this.shapeContainer === null) { + this.shapeContainer = new HierarchyRootContainer(); + } + return this.shapeContainer; + } + }; + HierarchyRootAlgorithm.prototype._collectHierarchyPositions = function (isVertical) { + const asstNode = this.getAsstNode(); + if (asstNode) { + const asstAlgorithm = asstNode.algorithm; + for (let i = 0; i < asstAlgorithm.levelPositions.length; i += 1) { + this.setLevelBounds(asstAlgorithm.levelPositions[i]); + } + } + const nonAsstNode = this.getNonAsstNode(); + const nonAsstAlgorithm = nonAsstNode.algorithm; + for (let i = 0; i < nonAsstAlgorithm.levelPositions.length; i += 1) { + this.setLevelBounds(nonAsstAlgorithm.levelPositions[i]); + } + }; + HierarchyRootAlgorithm.prototype.collectHierarchyPositions = function () { + this._collectHierarchyPositions(); + }; + HierarchyRootAlgorithm.prototype._calculateShapePositions = function (isCalculateScaleCoefficients) { + this.applyMainAlign(isCalculateScaleCoefficients); + this.applySecondaryAlign(isCalculateScaleCoefficients); + }; + + + function PyramidAlgorithm() { + PositionAlgorithm.call(this); + this.calcValues = { + defaultBlockHeight: 0 + }; + } + AscFormat.InitClassWithoutType(PyramidAlgorithm, PositionAlgorithm); + PyramidAlgorithm.prototype.initParams = function (params) { + PositionAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_pyraAcctPos] === undefined) { + this.params[AscFormat.Param_type_pyraAcctPos] = AscFormat.ParameterVal_pyramidAccentPosition_aft; + } + if (this.params[AscFormat.Param_type_off] === undefined) { + this.params[AscFormat.Param_type_off] = AscFormat.ParameterVal_offset_ctr; + } + + } + PyramidAlgorithm.prototype.calcScaleCoefficients = function () { + const parentHeight = this.parentNode.getConstr(AscFormat.Constr_type_h, false); + const childs = this.parentNode.childs; + const defaultBlockHeight = parentHeight / childs.length; + let sumHeight = 0; + for (let i = 0; i < childs.length; i++) { + const child = this.getPyramidChildren(childs[i]).pyramid; + const scaleBlockHeight = child.getHeightScale(); + sumHeight += scaleBlockHeight * defaultBlockHeight; + } + this.calcValues.defaultBlockHeight = defaultBlockHeight * (parentHeight / sumHeight); + }; + PyramidAlgorithm.prototype.getTextNodeCoefficients = function (contentNode, textNode) { + const resultScales = {width: 1, height: 1}; + const contentWidth = contentNode.getConstr(AscFormat.Constr_type_w, true, true); + const contentHeight = contentNode.getConstr(AscFormat.Constr_type_h, true, true); + const textWidth = textNode.getConstr(AscFormat.Constr_type_w, true, true); + const textHeight = textNode.getConstr(AscFormat.Constr_type_h, true, true); + if (contentWidth && textWidth) { + resultScales.width = textWidth / contentWidth; + } + if (contentHeight && textHeight) { + resultScales.height = textHeight / contentHeight; + } + return resultScales; + }; + PyramidAlgorithm.prototype.setPyramidParametersForNode = function (child, x, y, height, width, cleanHeight, cleanWidth, adjValue) { + const shape = child.getShape(false); + if (shape) { + if (width < height) { + adjValue = adjValue * height / cleanWidth; + } + shape.height = height; + shape.width = width; + shape.x = x; + shape.y = y; + shape.cleanParams.height = cleanHeight; + shape.cleanParams.width = cleanWidth; + const adjLst = new AscFormat.AdjLst(); + const adj = new AscFormat.Adj(); + adj.setVal(adjValue); + adj.setIdx(1); + adjLst.addToLst(0, adj); + shape.customAdj = adjLst; + + const textNodes = child.contentNodes[0] && child.contentNodes[0].getTextNodes(); + if (textNodes && textNodes.contentNode === child && textNodes.textNode) { + const txNode = textNodes.textNode; + const coefficients = this.getTextNodeCoefficients(child, txNode); + const textShape = txNode.getShape(); + textShape.height = shape.height * coefficients.height; + textShape.width = shape.width * coefficients.width; + textShape.x = shape.x + (shape.width - textShape.width) / 2; + textShape.y = shape.y + (shape.height - textShape.height) / 2; + } + } + }; + PyramidAlgorithm.prototype.getPyramidChildren = function (node) { + const pyramid = node.getNamedNode(this.params[AscFormat.Param_type_pyraLvlNode]); + const acct = node.getNamedNode(this.params[AscFormat.Param_type_pyraAcctBkgdNode]); + return { + pyramid: pyramid, + acct: acct + }; + }; + PyramidAlgorithm.prototype.isReversedPyramid = function () { + return this.params[AscFormat.Param_type_linDir] === AscFormat.ParameterVal_linearDirection_fromT; + }; + PyramidAlgorithm.prototype.getStartDefaultBlockWidth = function () { + const acctRatio = this.parentNode.getConstr(AscFormat.Constr_type_pyraAcctRatio, true); + const parentWidth = this.parentNode.getConstr(AscFormat.Constr_type_w, true); + return parentWidth * (1 - acctRatio); + } + PyramidAlgorithm.prototype.forEachChild = function (callback, startIndex) { + const childs = this.parentNode.childs; + if (this.isReversedPyramid()) { + for (let i = startIndex; i < childs.length; i += 1) { + callback(childs[i]); + } + } else { + for (let i = childs.length - 1 - startIndex; i >= 0; i -= 1) { + callback(childs[i]); + } + } + } + PyramidAlgorithm.prototype.getFirstPyramidComponents = function () { + const childs = this.parentNode.childs; + if (this.isReversedPyramid()) { + return this.getPyramidChildren(childs[0]); + } + + return this.getPyramidChildren(childs[childs.length - 1]); + } + PyramidAlgorithm.prototype.getShapeContainer = function (isCalculateScaleCoefficient) { + if (isCalculateScaleCoefficient) { + if (this.coefficientShapeContainer === null) { + this.coefficientShapeContainer = new PyramidContainer(); + } + return this.coefficientShapeContainer; + } + if (this.shapeContainer === null) { + this.shapeContainer = new PyramidContainer(); + } + return this.shapeContainer; + }; + PyramidAlgorithm.prototype._calculateShapePositions = function () { + const parentNode = this.parentNode; + const shapeContainer = this.getShapeContainer(false); + const parentHeight = parentNode.getConstr(AscFormat.Constr_type_h, true); + const parentWidth = parentNode.getConstr(AscFormat.Constr_type_w, true); + const defaultBlockHeight = this.calcValues.defaultBlockHeight; + let previousBlockWidth = this.getStartDefaultBlockWidth(); + const defaultAdjValue = (previousBlockWidth / 2) / parentHeight; + + + const firstPyramidComponents = this.getFirstPyramidComponents(); + const firstChild = firstPyramidComponents.pyramid; + const firstShape = firstChild.getShape(false); + const firstHeight = defaultBlockHeight * firstChild.getHeightScale(); + const firstWidth = previousBlockWidth * firstChild.getWidthScale(); + let ctrX = (previousBlockWidth - firstWidth) / 2 + firstWidth / 2; + if (!this.isAfterAcct()) { + ctrX = parentWidth - ctrX; + } + let previousY; + if (this.isReversedPyramid()) { + previousY = 0; + } else { + previousY = parentHeight - firstHeight; + } + let previousBlockHeight = firstHeight; + this.setPyramidParametersForNode(firstChild, ctrX - firstWidth / 2, previousY, firstHeight, firstWidth, defaultBlockHeight, previousBlockWidth, defaultAdjValue); + const firstAcctOffset = defaultAdjValue * previousBlockHeight; + if (this.isReversedPyramid()) { + firstShape.rot = Math.PI; + this.addAcctShape(firstChild, firstPyramidComponents.acct, defaultAdjValue, firstAcctOffset); + shapeContainer.push(firstShape); + } else { + shapeContainer.push(firstShape); + this.addAcctShape(firstChild, firstPyramidComponents.acct, defaultAdjValue, firstAcctOffset); + } + const oThis = this; + this.forEachChild(function (node) { + const pyramidComponents = oThis.getPyramidChildren(node); + const child = pyramidComponents.pyramid; + const shape = child.getShape(false); + const blockHeightFactor = child.getHeightScale(); + const blockWidthFactor = child.getWidthScale(); + const scaledBlockHeight = blockHeightFactor * defaultBlockHeight; + const curBlockWidth = previousBlockWidth - 2 * defaultAdjValue * previousBlockHeight; + const scaledBlockWidth = curBlockWidth * blockWidthFactor; + const x = ctrX - scaledBlockWidth / 2; + let y; + if (oThis.isReversedPyramid()) { + y = previousY + previousBlockHeight; + } else { + y = previousY - scaledBlockHeight; + } + const acctOffset = defaultAdjValue * scaledBlockHeight; + oThis.setPyramidParametersForNode(child, x, y, scaledBlockHeight, scaledBlockWidth, defaultBlockHeight, curBlockWidth, defaultAdjValue); + if (oThis.isReversedPyramid()) { + shape.rot = Math.PI; + oThis.addAcctShape(child, pyramidComponents.acct, defaultAdjValue, acctOffset); + shapeContainer.push(shape); + } else { + shapeContainer.push(shape); + oThis.addAcctShape(child, pyramidComponents.acct, defaultAdjValue, acctOffset); + } + previousBlockWidth = curBlockWidth; + previousBlockHeight = scaledBlockHeight; + previousY = y; + }, 1); + if (!this.isReversedPyramid()) { + shapeContainer.reverse(); + } + }; + PyramidAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficients) { + const parentNode = this.parentNode; + const childs = parentNode.childs; + if (!childs.length) { + return; + } + if (isCalculateScaleCoefficients) { + this.calcScaleCoefficients(smartartAlgorithm); + } else { + this._calculateShapePositions(); + this.applyParamOffsets(); + this.applyPostAlgorithmSettings(); + this.createShadowShape(false); + } + }; + PyramidAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(true, isCalculateScaleCoefficients); + }; + PyramidAlgorithm.prototype.getTemplateAdjAcctLst = function (firstAdj, secondAdj) { + const adjLst = new AscFormat.AdjLst(); + const adj1 = new AscFormat.Adj(); + adjLst.addToLst(0, adj1); + adj1.setIdx(1); + + const adj2 = new AscFormat.Adj(); + adj2.setIdx(2); + adjLst.addToLst(1, adj2); + + adj1.setVal(firstAdj); + adj2.setVal(secondAdj); + return adjLst; + }; + PyramidAlgorithm.prototype.isAfterAcct = function () { + return this.params[AscFormat.Param_type_pyraAcctPos] === AscFormat.ParameterVal_pyramidAccentPosition_aft; + } + PyramidAlgorithm.prototype.addAcctShape = function (mainNode, acctNode, defaultAdjValue, acctHelper) { + if (!(mainNode && acctNode)) { + return; + } + const shapeContainer = this.getShapeContainer(); + const parentWidth = this.parentNode.getConstr(AscFormat.Constr_type_w, true); + const mainShape = mainNode.getShape(false); + const acctShape = acctNode.getShape(false); + + const heightScale = acctNode.getHeightScale(); + const widthScale = acctNode.getWidthScale(); + let defaultWidth; + if (this.isAfterAcct()) { + defaultWidth = parentWidth - (mainShape.x + mainShape.width - acctHelper); + } else { + defaultWidth = mainShape.x + acctHelper; + } + const defaultHeight = mainShape.height; + acctShape.cleanParams.width = defaultWidth; + acctShape.cleanParams.height = defaultHeight; + acctShape.width = defaultWidth * widthScale; + acctShape.height = defaultHeight * heightScale; + if (defaultWidth < defaultHeight) { + defaultAdjValue = defaultAdjValue * defaultHeight / defaultWidth; + } + + if (this.isAfterAcct()) { + acctShape.x = mainShape.x + mainShape.width - acctHelper + (defaultWidth - acctShape.width) / 2; + if (this.isReversedPyramid()) { + acctShape.customAdj = this.getTemplateAdjAcctLst(defaultAdjValue, 0); + } else { + acctShape.customAdj = this.getTemplateAdjAcctLst(0, defaultAdjValue); + } + } else { + acctShape.x = (defaultWidth - acctShape.width) / 2; + if (this.isReversedPyramid()) { + acctShape.customAdj = this.getTemplateAdjAcctLst(0, defaultAdjValue); + } else { + acctShape.customAdj = this.getTemplateAdjAcctLst(defaultAdjValue, 0); + } + } + acctShape.y = mainShape.y + (defaultHeight - acctShape.height) / 2; + if (!this.isReversedPyramid()) { + acctShape.rot = Math.PI; + } + shapeContainer.push(acctShape); + + const txNode = acctNode.contentNodes[0] && acctNode.contentNodes[0].getTextNode(); + if (txNode) { + const textShape = txNode.getShape(); + textShape.type = AscFormat.LayoutShapeType_shapeType_rect; + if (this.isAfterAcct()) { + textShape.x = mainShape.x + mainShape.width; + textShape.y = acctShape.y; + textShape.height = acctShape.height; + textShape.width = acctShape.width - (textShape.x - acctShape.x); + textShape.rot = acctShape.rot; + } else { + textShape.x = acctShape.x; + textShape.y = acctShape.y; + textShape.height = acctShape.height; + textShape.width = acctShape.width - acctHelper; + textShape.rot = acctShape.rot; + } + + } + }; + + function CycleAlgorithm() { + PositionAlgorithm.call(this); + this.calcValues = { + radius: 0, + startAngle: 0, + stepAngle: 0, + mainElements: [], + centerNodeIndex: null, + isInit: false + }; + } + AscFormat.InitClassWithoutType(CycleAlgorithm, PositionAlgorithm); + CycleAlgorithm.prototype.getChildAlgorithmAlignBounds = function (isCalculateCoefficients, skipRotate) { + const x = this.parentNode.getConstr(AscFormat.Constr_type_l, !isCalculateCoefficients); + const y = this.parentNode.getConstr(AscFormat.Constr_type_t, !isCalculateCoefficients); + const width = this.parentNode.getConstr(AscFormat.Constr_type_w, !isCalculateCoefficients); + const height = this.parentNode.getConstr(AscFormat.Constr_type_h, !isCalculateCoefficients); + return { + l: x, + t: y, + r: x + width, + b: y + height + }; + }; + CycleAlgorithm.prototype.getCenterNode = function () { + if (this.calcValues.centerNodeIndex !== null) { + return this.parentNode.childs[this.calcValues.centerNodeIndex]; + } + }; + CycleAlgorithm.prototype.getParentConnectionNode = function () { + return this.getCenterNode(); + }; + CycleAlgorithm.prototype.isClockwise = function () { + return this.calcValues.stepAngle > 0; + } + CycleAlgorithm.prototype.getShapeIndex = function (shape) { + return this.calcValues.mainElements.indexOf(shape); + }; + CycleAlgorithm.prototype.getRadialConnectionInfo = function (node) { + const shape = node.getShape(); + const shapeCenterPoint = new CCoordPoint(shape.x + shape.width / 2, shape.y + shape.height / 2); + let radius; + let angle; + let custVector; + if (shape.custCenterPoint) { + custVector = shape.custCenterPoint.getVector(shapeCenterPoint); + radius = custVector.getDistance(); + angle = custVector.getAngle(); + return { + point: shape.custCenterPoint, + radius: radius, + angle: angle, + isClockwise: this.isClockwise() + } + } else if (shape.radialVector) { + radius = shape.radialVector.getDistance(); + angle = shape.radialVector.getAngle(); + return { + point: new CCoordPoint(shapeCenterPoint.x - shape.radialVector.x, shapeCenterPoint.y - shape.radialVector.y), + radius: radius, + angle: angle, + isClockwise: this.isClockwise() + }; + } + return null; + }; + CycleAlgorithm.prototype.initParams = function (params) { + PositionAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_stAng] === undefined) { + this.params[AscFormat.Param_type_stAng] = 0; + } + if (this.params[AscFormat.Param_type_spanAng] === undefined) { + this.params[AscFormat.Param_type_spanAng] = 360; + } + if (this.params[AscFormat.Param_type_vertAlign] === undefined) { + this.params[AscFormat.Param_type_vertAlign] = AscFormat.ParameterVal_verticalAlignment_mid; + } + if (this.params[AscFormat.Param_type_horzAlign] === undefined) { + this.params[AscFormat.Param_type_horzAlign] = AscFormat.ParameterVal_horizontalAlignment_ctr; + } + + if (this.params[AscFormat.Param_type_ctrShpMap] === undefined) { + this.params[AscFormat.Param_type_ctrShpMap] = AscFormat.ParameterVal_centerShapeMapping_none; + } + } + CycleAlgorithm.prototype.getCenterShapeRadius = function (centerBounds, anotherBounds, guideVector) { + if (!centerBounds || !anotherBounds) { + return 0; + } + const centerPoint = getShapePoint(centerBounds); + const anotherPoint = getShapePoint(anotherBounds); + const centerEdgePoint = getMinShapeEdgePoint(centerBounds, guideVector); + const anotherEdgePoint = getMinShapeEdgePoint(anotherBounds, new CVector(-guideVector.x, -guideVector.y)); + if (centerEdgePoint && anotherEdgePoint) { + const centerDistance = centerPoint.getVector(centerEdgePoint).getDistance(); + const anotherDistance = anotherPoint.getVector(anotherEdgePoint).getDistance(); + const minPadding = this.parentNode.getConstr(AscFormat.Constr_type_sp); + return centerDistance + anotherDistance + minPadding; + } + return 0; + }; + CycleAlgorithm.prototype.getStartCycleBounds = function () { + const centerNode = this.getCenterNode(); + if (centerNode) { + const centerShape = centerNode.getShape(true); + const bounds = centerShape.getBounds(true); + const halfWidth = (bounds.r - bounds.l) / 2; + const halfHeight = (bounds.b - bounds.t) / 2; + return { + l: -halfWidth, + r: halfWidth, + t: -halfHeight, + b: halfHeight + }; + } + return {l: 0, r: 0, t: 0, b: 0}; + } + CycleAlgorithm.prototype.initCenterShapeMap = function () { + if (this.params[AscFormat.Param_type_ctrShpMap] === AscFormat.ParameterVal_centerShapeMapping_fNode) { + const childs = this.parentNode.childs; + for (let i = 0; i < childs.length; i += 1) { + const child = childs[i]; + if (child.isContentNode()) { + this.calcValues.centerNodeIndex = i; + return i + 1; + } + } + } + return 0; + }; + CycleAlgorithm.prototype.calculateStartValues = function () { + if (!this.calcValues.isInit) { + this.calcValues.isInit = true; + const spanAngle = this.params[AscFormat.Param_type_spanAng]; + const startAngle = AscFormat.normalizeRotate(this.params[AscFormat.Param_type_stAng] * degToRad - Math.PI / 2); + + const mainElements = this.calcValues.mainElements; + const childs = this.parentNode.childs; + let startIndex = this.initCenterShapeMap(); + for (startIndex; startIndex < childs.length; startIndex += 1) { + const child = childs[startIndex]; + if (child.isContentNode()) { + mainElements.push(child); + } + } + + let stepAngle; + if (Math.abs(spanAngle) === 360) { + if (mainElements.length === 0) { + stepAngle = 0; + } else { + stepAngle = (spanAngle / mainElements.length) * degToRad; + } + + } else { + if (mainElements.length === 0) { + stepAngle = 0; + } else { + stepAngle = (spanAngle / (mainElements.length - 1)) * degToRad; + } + } + this.calcValues.startAngle = startAngle; + this.calcValues.stepAngle = stepAngle; + } + }; + CycleAlgorithm.prototype.getNormalizeSibSp = function () { + //todo think about how it is actually calculated + const stepAngle = this.calcValues.stepAngle; + const sibSp = this.parentNode.getConstr(AscFormat.Constr_type_sibSp); + if (this.isClockwise()) { + if (stepAngle > Math.PI / 2 && sibSp < 0) { + return 0; + } + } else { + if (stepAngle < -Math.PI / 2 && sibSp < 0) { + return 0; + } + } + return sibSp; + } + CycleAlgorithm.prototype.calcScaleCoefficients = function (smartartAlgorithm) { + const startAngle = this.calcValues.startAngle; + const stepAngle = this.calcValues.stepAngle; + const mainElements = this.calcValues.mainElements; + let previousAngle = startAngle; + let currentAngle = AscFormat.normalizeRotate(startAngle + stepAngle); + const divider = Math.sqrt(2 * (1 - Math.cos(Math.abs(stepAngle)))); + const sibSp = this.getNormalizeSibSp(); + + const firstShape = mainElements[0] && mainElements[0].getShape(true) + const firstElementBounds = firstShape && firstShape.getBounds(true); + let maxRadius = 0; + const centerNode = this.getCenterNode(); + let centerShapeBounds; + if (centerNode) { + const startGuideVector = CVector.getVectorByAngle(startAngle); + const centerShape = centerNode.getShape(true); + centerShapeBounds = centerShape.getBounds(true); + maxRadius = this.getCenterShapeRadius(centerShapeBounds, firstElementBounds, startGuideVector); + } + if (divider !== 0) { + let previousBounds = firstElementBounds; + for (let i = 1; i < mainElements.length + 1; i++) { + const curIndex = i === mainElements.length ? 0 : i; + const shape = mainElements[curIndex].getShape(true); + const currentBounds = shape.getBounds(true); + const centerGuideVector = CVector.getVectorByAngle(currentAngle); + const tempCenterRadius = this.getCenterShapeRadius(centerShapeBounds, currentBounds, centerGuideVector); + + let tempSibRadius = 0; + + const previousVector = CVector.getVectorByAngle(previousAngle); + const currentVector = CVector.getVectorByAngle(currentAngle); + const guideVector = currentVector.getDiffVector(previousVector); + const currentEdgePoint = getMinShapeEdgePoint(currentBounds, guideVector); + const previousEdgePoint = getMinShapeEdgePoint(previousBounds, new CVector(-guideVector.x, -guideVector.y)); + if (currentEdgePoint && previousEdgePoint) { + const currentShapePoint = getShapePoint(currentBounds); + const previousShapePoint = getShapePoint(previousBounds); + const currentVector = currentShapePoint.getVector(currentEdgePoint); + const previousVector = previousShapePoint.getVector(previousEdgePoint); + const previousDistance = previousVector.getDistance(); + const currentDistance = currentVector.getDistance(); + + tempSibRadius = (sibSp + previousDistance + currentDistance) / divider; + } + maxRadius = Math.max(maxRadius, tempSibRadius, tempCenterRadius); + previousAngle = currentAngle; + currentAngle = i === mainElements.length - 1 ? AscFormat.normalizeRotate(startAngle) : AscFormat.normalizeRotate(currentAngle + stepAngle); + previousBounds = currentBounds; + } + } + currentAngle = startAngle; + const cycleBounds = this.getStartCycleBounds(); + const radiusBounds = {l: 0, r: 0, t: 0, b: 0}; + for (let i = 0; i < mainElements.length; i++) { + const radiusVector = CVector.getVectorByAngle(currentAngle); + radiusVector.multiply(maxRadius); + const shape = mainElements[i].getShape(true); + const currentBounds = shape.getBounds(true); + const halfWidth = (currentBounds.r - currentBounds.l) / 2; + const halfHeight = (currentBounds.b - currentBounds.t) / 2; + const newL = radiusVector.x - halfWidth; + const newR = radiusVector.x + halfWidth; + const newT = radiusVector.y - halfHeight; + const newB = radiusVector.y + halfHeight; + + if (newL < cycleBounds.l) { + cycleBounds.l = newL; + radiusBounds.l = radiusVector.x; + } + if (newT < cycleBounds.t) { + cycleBounds.t = newT; + radiusBounds.t = radiusVector.y; + } + if (newR > cycleBounds.r) { + cycleBounds.r = newR; + radiusBounds.r = radiusVector.x; + } + if (newB > cycleBounds.b) { + cycleBounds.b = newB; + radiusBounds.b = radiusVector.y; + } + + currentAngle = AscFormat.normalizeRotate(currentAngle + stepAngle); + } + + const parentWidth = this.getParentNodeWidth(); + const parentHeight = this.getParentNodeHeight(); + const cycleHeight = cycleBounds.b - cycleBounds.t; + const cycleWidth = cycleBounds.r - cycleBounds.l; + let coefficient = Math.min(1, parentWidth / cycleWidth, parentHeight / cycleHeight); + if (coefficient === 1 && smartartAlgorithm.factRuleState === factRuleState.enabled) { + smartartAlgorithm.setFactRuleState(factRuleState.disabled); + return; + } + let radiusCoefficient = coefficient; + const scaleFactor = this.getOffsetScaleFactor(radiusBounds, cycleBounds); + if (scaleFactor > 1) { + radiusCoefficient = Math.max(coefficient, scaleFactor); + } + const adaptRadius = maxRadius * radiusCoefficient; + this.calcValues.radius = maxRadius; + const constrRadius = this.getConstrRadius(true); + if (constrRadius !== undefined && adaptRadius > constrRadius) { + radiusCoefficient *= constrRadius / adaptRadius; + } + this.calcValues.radiusCoefficient = radiusCoefficient; + for (let i = 0; i < this.parentNode.childs.length; i += 1) { + const child = this.parentNode.childs[i]; + child.setSizesScale(coefficient, coefficient); + } + }; + CycleAlgorithm.prototype.getConstrRadius = function (isCalculateScaleCoefficients) { + const constrObject = this.parentNode.getConstraints(!isCalculateScaleCoefficients); + const diameter = constrObject[AscFormat.Constr_type_diam]; + if (diameter !== undefined) { + return diameter / 2; + } + }; + CycleAlgorithm.prototype.getOffsetScaleFactor = function (radiusBounds, cycleBounds) { + const parentNodeWidth = this.getParentNodeWidth(); + const parentNodeHeight = this.getParentNodeHeight(); + + const radiusHeight = radiusBounds.b - radiusBounds.t; + const radiusWidth = radiusBounds.r - radiusBounds.l; + const parentWidth = parentNodeWidth - (radiusBounds.l - cycleBounds.l) - (cycleBounds.r - radiusBounds.r); + const parentHeight = parentNodeHeight - (radiusBounds.t - cycleBounds.t) - (cycleBounds.b - radiusBounds.b); + if (radiusHeight !== 0 && radiusWidth !== 0) { + return Math.max(1, Math.min(parentWidth / radiusWidth, parentHeight / radiusHeight)); + } else if (radiusHeight === 0 && radiusWidth !== 0) { + return Math.max(1, parentWidth / radiusWidth); + } else if (radiusWidth === 0 && radiusHeight !== 0) { + return Math.max(1, parentHeight / radiusHeight); + } + return 1; + }; + + CycleAlgorithm.prototype.generateCurveShapeConnectors = function (smartartAlgorithm) { + for (let i = 0; i < this.parentNode.childs.length; i += 1) { + const child = this.parentNode.childs[i]; + if (child.algorithm instanceof ConnectorAlgorithm && child.algorithm.isCurveShape()) { + child.algorithm.connectShapes(smartartAlgorithm); + } + } + }; + CycleAlgorithm.prototype.resetConnectors = function () { + for (let i = 0; i < this.parentNode.childs.length; i += 1) { + const child = this.parentNode.childs[i]; + if (child.algorithm instanceof ConnectorAlgorithm) { + child.algorithm.reset(); + } + } + }; + CycleAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficients) { + this.calculateStartValues(); + if (isCalculateScaleCoefficients) { + this.calcScaleCoefficients(smartartAlgorithm); + } else { + this._calculateShapePositions(); + this.setConnections(); + this.generateCurveShapeConnectors(smartartAlgorithm); + this.applyAlgorithmAligns(isCalculateScaleCoefficients); + this.resetConnectors(); + this.applyPostAlgorithmSettings(); + this.createShadowShape(isCalculateScaleCoefficients); + } + }; + CycleAlgorithm.prototype.isAlongPath = function () { + return this.params[AscFormat.Param_type_rotPath] === AscFormat.ParameterVal_rotationPath_alongPath; + } + CycleAlgorithm.prototype.getAlongRot = function (currentAngle) { + if (this.isAlongPath()) { + return AscFormat.normalizeRotate(currentAngle + Math.PI / 2); + } + return 0; + }; + CycleAlgorithm.prototype._calculateShapePositions = function () { + const childs = this.parentNode.childs; + const radius = this.calcValues.radius * this.calcValues.radiusCoefficient; + let currentAngle = this.calcValues.startAngle; + const stepAngle = this.calcValues.stepAngle; + const container = this.getShapeContainer(); + let startIndex = 0; + let incAngleDivider = childs.length; + if (this.calcValues.centerNodeIndex !== null) { + incAngleDivider -= 1; + const centerNode = this.getCenterNode(); + const shape = centerNode && centerNode.getShape(false); + if (shape) { + shape.moveTo(-(shape.x + shape.width / 2), -(shape.y + shape.height / 2)); + container.push(shape); + } + startIndex = this.calcValues.centerNodeIndex + 1; + } + let incAngle = 0; + if (incAngleDivider > 0) { + incAngle = 2 * Math.PI / incAngleDivider; + } + + for (let i = startIndex; i < childs.length; i++) { + const child = childs[i]; + const shape = child.getShape(false); + if (child.isContentNode() && shape) { + const radiusGuideVector = CVector.getVectorByAngle(currentAngle); + radiusGuideVector.multiply(radius); + shape.setRadialInfo(radiusGuideVector, incAngle); + const bounds = shape.getBounds(); + const width = bounds.r - bounds.l; + const height = bounds.b - bounds.t; + const offX = radiusGuideVector.x - (bounds.l + width / 2); + const offY = radiusGuideVector.y - (bounds.t + height / 2); + + shape.rot = this.getAlongRot(currentAngle); + shape.moveTo(offX, offY); + currentAngle = currentAngle + stepAngle; + container.push(shape); + } + } + }; + CycleAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(true, isCalculateScaleCoefficients); + }; + CycleAlgorithm.prototype.getShapeContainer = function (isCalculateScaleCoefficient) { + if (isCalculateScaleCoefficient) { + if (this.coefficientShapeContainer === null) { + this.coefficientShapeContainer = new CycleContainer(); + } + return this.coefficientShapeContainer; + } + if (this.shapeContainer === null) { + this.shapeContainer = new CycleContainer(); + } + return this.shapeContainer; + }; + + function LinearAlgorithm() { + PositionAlgorithm.call(this); + } + AscFormat.InitClassWithoutType(LinearAlgorithm, PositionAlgorithm); + + LinearAlgorithm.prototype.isRow = function () { + return this.params[AscFormat.Param_type_linDir] === AscFormat.ParameterVal_linearDirection_fromL || + this.params[AscFormat.Param_type_linDir] === AscFormat.ParameterVal_linearDirection_fromR; + } + LinearAlgorithm.prototype.initParams = function (params) { + PositionAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_linDir] === undefined) { + this.params[AscFormat.Param_type_linDir] = AscFormat.ParameterVal_linearDirection_fromL; + } + + if (this.params[AscFormat.Param_type_vertAlign] === undefined) { + this.params[AscFormat.Param_type_vertAlign] = AscFormat.ParameterVal_verticalAlignment_mid; + } + if (this.params[AscFormat.Param_type_horzAlign] === undefined) { + this.params[AscFormat.Param_type_horzAlign] = AscFormat.ParameterVal_horizontalAlignment_ctr; + } + + if (this.isRow()) { + if (this.params[AscFormat.Param_type_nodeVertAlign] === undefined) { + this.params[AscFormat.Param_type_nodeVertAlign] = AscFormat.ParameterVal_nodeVerticalAlignment_mid; + } + this.params[AscFormat.Param_type_nodeHorzAlign] = undefined; + } else { + if (this.params[AscFormat.Param_type_nodeHorzAlign] === undefined) { + this.params[AscFormat.Param_type_nodeHorzAlign] = AscFormat.ParameterVal_nodeHorizontalAlignment_ctr; + } + this.params[AscFormat.Param_type_nodeVertAlign] = undefined; + } + } + LinearAlgorithm.prototype.applyLeftNodeAlign = function (isCalculateScaleCoefficients) { + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients); + const bounds = shapeContainer.getBounds(); + + shapeContainer.forEachShape(function (shape) { + const shapeBounds = shape.getBounds(); + shape.moveTo(bounds.l - shapeBounds.l, 0); + }); + }; + LinearAlgorithm.prototype.applyRightNodeAlign = function (isCalculateScaleCoefficients) { + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients); + const bounds = shapeContainer.getBounds(); + + shapeContainer.forEachShape(function (shape) { + const shapeBounds = shape.getBounds(); + shape.moveTo(bounds.r - shapeBounds.r, 0); + }); + }; + LinearAlgorithm.prototype.applyCenterNodeAlign = function (isCalculateScaleCoefficients) { + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients); + const bounds = shapeContainer.getBounds(); + const boundsCenter = bounds.l + (bounds.r - bounds.l) / 2; + shapeContainer.forEachShape(function (shape) { + const shapeBounds = shape.getBounds(); + shape.moveTo(boundsCenter - (shapeBounds.l + (shapeBounds.r - shapeBounds.l) / 2), 0); + }); + }; + LinearAlgorithm.prototype.applyTopNodeAlign = function (isCalculateScaleCoefficients) { + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients); + const bounds = shapeContainer.getBounds(); + + shapeContainer.forEachShape(function (shape) { + const shapeBounds = shape.getBounds(); + shape.moveTo(0, bounds.t - shapeBounds.t); + }); + }; + LinearAlgorithm.prototype.applyBottomNodeAlign = function (isCalculateScaleCoefficients) { + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients); + const bounds = shapeContainer.getBounds(); + + shapeContainer.forEachShape(function (shape) { + const shapeBounds = shape.getBounds(); + shape.moveTo(0, bounds.b - shapeBounds.b); + }); + }; + LinearAlgorithm.prototype.applyMidNodeAlign = function (isCalculateScaleCoefficients) { + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients); + const bounds = shapeContainer.getBounds(); + const boundsCenter = bounds.t + (bounds.b - bounds.t) / 2; + shapeContainer.forEachShape(function (shape) { + const shapeBounds = shape.getBounds(); + shape.moveTo(0, boundsCenter - (shapeBounds.t + (shapeBounds.b - shapeBounds.t) / 2)); + }); + }; + LinearAlgorithm.prototype.applyNodeAligns = function (isCalculateScaleCoefficients) { + switch (this.params[AscFormat.Param_type_nodeHorzAlign]) { + case AscFormat.ParameterVal_nodeHorizontalAlignment_l: + this.applyLeftNodeAlign(isCalculateScaleCoefficients); + break; + case AscFormat.ParameterVal_nodeHorizontalAlignment_ctr: + this.applyCenterNodeAlign(isCalculateScaleCoefficients); + break; + case AscFormat.ParameterVal_nodeHorizontalAlignment_r: + this.applyRightNodeAlign(isCalculateScaleCoefficients); + break; + default: + break; + } + + switch (this.params[AscFormat.Param_type_nodeVertAlign]) { + case AscFormat.ParameterVal_nodeVerticalAlignment_t: + this.applyTopNodeAlign(isCalculateScaleCoefficients); + break; + case AscFormat.ParameterVal_nodeVerticalAlignment_mid: + this.applyMidNodeAlign(isCalculateScaleCoefficients); + break; + case AscFormat.ParameterVal_nodeVerticalAlignment_b: + this.applyBottomNodeAlign(isCalculateScaleCoefficients); + break; + default: + break; + } + } + LinearAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(true, isCalculateScaleCoefficients); + }; + LinearAlgorithm.prototype.isFromLeft = function () { + return this.params[AscFormat.Param_type_linDir] === AscFormat.ParameterVal_linearDirection_fromL; + }; + LinearAlgorithm.prototype.isFromTop = function () { + return this.params[AscFormat.Param_type_linDir] === AscFormat.ParameterVal_linearDirection_fromT; + }; + LinearAlgorithm.prototype._calculateShapePositions = function (isCalculateScaleCoefficients) { + switch (this.params[AscFormat.Param_type_linDir]) { + case AscFormat.ParameterVal_linearDirection_fromL: + case AscFormat.ParameterVal_linearDirection_fromR: + this.calculateRowShapePositions(isCalculateScaleCoefficients); + break; + case AscFormat.ParameterVal_linearDirection_fromT: + case AscFormat.ParameterVal_linearDirection_fromB: + this.calculateColumnShapePositions(isCalculateScaleCoefficients); + break; + } + }; + LinearAlgorithm.prototype.isHaveChildLinear = function () { + for (let i = 0; i < this.parentNode.childs.length; i += 1) { + if (this.parentNode.childs[i].algorithm instanceof LinearAlgorithm) { + return true; + } + } + return false; + } + LinearAlgorithm.prototype.is2DFallback = function () { + return this.params[AscFormat.Param_type_fallback] === AscFormat.ParameterVal_fallbackDimension_2D || this.isHaveChildLinear(); + } + LinearAlgorithm.prototype.setScaleCoefficient = function () { + if (!(!this.parentNode.parent || this.parentNode.parent.algorithm instanceof CompositeAlgorithm)) { + return; + } + + const parentHeight = this.getParentNodeHeight(false); + const parentWidth = this.getParentNodeWidth(false); + if (!(parentHeight && parentWidth)) { + return; + } + const childs = this.parentNode.childs; + const length = this.isHideLastChild() ? childs.length - 1 : childs.length; + if (length > 0) { + const isRow = this.isRow(); + const shapeContainer = this.getShapeContainer(true); + const bounds = shapeContainer.getBounds(); + const width = bounds.r - bounds.l; + const height = bounds.b - bounds.t; + let widthCoefficient = Math.min(parentWidth / width, 1); + let heightCoefficient = Math.min(parentHeight / height, 1); + if (this.is2DFallback()) { + const commonCoefficient = Math.min(widthCoefficient, heightCoefficient); + widthCoefficient = commonCoefficient; + heightCoefficient = commonCoefficient; + } else if (isRow) { + //todo check the case when the height depends on the width + const cleanBounds = shapeContainer.getBounds(true, true); + const cleanHeightCoefficient = parentHeight / (cleanBounds.b - cleanBounds.t); + if (cleanHeightCoefficient >= 1 || fAlgDeltaEqual(cleanHeightCoefficient, 1)) { + heightCoefficient = 1; + } + } else { + const cleanBounds = shapeContainer.getBounds(true, true); + const cleanWidthCoefficient = parentWidth / (cleanBounds.r - cleanBounds.l); + if (cleanWidthCoefficient >= 1 || fAlgDeltaEqual(cleanWidthCoefficient, 1)) { + widthCoefficient = 1; + } + } + + const heightSizeScale = isRow ? 1 : heightCoefficient; + const widthSizeScale = isRow ? widthCoefficient : 1; + const nodes = [this.parentNode]; + while (nodes.length) { + const node = nodes.pop(); + for (let i = 0; i < node.childs.length; i += 1) { + const childNode = node.childs[i]; + + childNode.setSizesScale(widthSizeScale, heightSizeScale); + const shapeType = childNode.layoutInfo.shape.type; + if (shapeType !== AscFormat.LayoutShapeType_outputShapeType_none && + shapeType !== AscFormat.LayoutShapeType_outputShapeType_conn) { + if (isRow) { + if (childNode.getAspectRatio()) { + childNode.setParentScale(AscFormat.Constr_type_w, heightCoefficient); + childNode.setParentScale(AscFormat.Constr_type_h, heightCoefficient); + } else { + childNode.setParentScale(AscFormat.Constr_type_h, heightCoefficient); + } + } else { + if (childNode.getAspectRatio()) { + childNode.setParentScale(AscFormat.Constr_type_w, widthCoefficient); + childNode.setParentScale(AscFormat.Constr_type_h, widthCoefficient); + } else { + childNode.setParentScale(AscFormat.Constr_type_w, widthCoefficient); + } + } + } + nodes.push(childNode); + } + } + } + }; + LinearAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficients) { + this._calculateShapePositions(isCalculateScaleCoefficients); + this.applyNodeAligns(isCalculateScaleCoefficients); + this.applyAlgorithmAligns(isCalculateScaleCoefficients); + if (isCalculateScaleCoefficients) { + this.setScaleCoefficient(); + } else { + this.setConnections(); + } + this.createShadowShape(isCalculateScaleCoefficients); + }; + LinearAlgorithm.prototype.calculateRowShapePositions = function (isCalculateScaleCoefficients) { + const fromLeft = this.isFromLeft(); + const childs = this.parentNode.childs; + const length = this.isHideLastChild() ? childs.length - 1 : childs.length; + let offX = 0; + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients); + const row = new ShapeContainer(); + shapeContainer.push(row); + for (let i = 0; i < length; i++) { + const node = childs[i]; + const shape = node.getShape(isCalculateScaleCoefficients); + const bounds = shape.getBounds(); + row.push(shape); + if (fromLeft) { + shape.moveTo(offX - bounds.l, 0); + offX += bounds.r - bounds.l; + } else { + shape.moveTo(offX - bounds.r, 0); + offX -= bounds.r - bounds.l; + } + } + }; + + LinearAlgorithm.prototype.calculateColumnShapePositions = function (isCalculateScaleCoefficients) { + const fromTop = this.isFromTop(); + const childs = this.parentNode.childs; + const length = this.isHideLastChild() ? childs.length - 1 : childs.length; + if (length === 0) { + return; + } + const shapeContainer = this.getShapeContainer(isCalculateScaleCoefficients, true); + const row = new ShapeContainer(); + shapeContainer.push(row); + let offY = 0; + for (let i = 0; i < length; i++) { + const node = childs[i]; + const shape = node.getShape(isCalculateScaleCoefficients); + row.push(shape); + const bounds = shape.getBounds(); + if (fromTop) { + shape.moveTo(0, offY - bounds.t); + offY += bounds.b - bounds.t; + } else { + shape.moveTo(0, offY - bounds.b); + offY -= bounds.b - bounds.t; + } + } + }; + LinearAlgorithm.prototype.getShapeContainer = function (isCalculateScaleCoefficient, isColumn) { + if (isCalculateScaleCoefficient) { + if (this.coefficientShapeContainer === null) { + if (isColumn) { + this.coefficientShapeContainer = new ShapeColumns(); + } else { + this.coefficientShapeContainer = new ShapeRows(); + } + + } + return this.coefficientShapeContainer; + } + if (this.shapeContainer === null) { + if (isColumn) { + this.shapeContainer = new ShapeColumns(); + } else { + this.shapeContainer = new ShapeRows(); + } + } + return this.shapeContainer; + }; + + function ConnectorAlgorithm() { + BaseAlgorithm.call(this); + this.startNode = null; + this.endNode = null; + this.connectionDistances = { + begin: null, + end: null + }; + this.stemThick = 0.6; + this.diameterScale = 1; + this.parentAlgorithm = null; + this.calcValues = { + edgePoints: null, + radiusCenterPoint: null, + connectionPoints: null, + pointPositions: null + } + } + AscFormat.InitClassWithoutType(ConnectorAlgorithm, BaseAlgorithm); + ConnectorAlgorithm.prototype.reset = function () { + this.calcValues = { + edgePoints: null, + radiusCenterPoint: null, + connectionPoints: null, + pointPositions: null + } + const connectionDistanceResolver = this.parentAlgorithm.parentNode.connectionDistanceResolver; + if (connectionDistanceResolver) { + connectionDistanceResolver.connectionDistance = null; + } + }; + ConnectorAlgorithm.prototype.isClockwise = function () { + if (this.constrClockwise !== null) { + return this.constrClockwise; + } + return this.parentAlgorithm.isClockwise(); + }; + ConnectorAlgorithm.prototype.initParams = function (params) { + BaseAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_dim] === undefined) { + this.params[AscFormat.Param_type_dim] = AscFormat.ParameterVal_connectorDimension_2D; + } + if (this.params[AscFormat.Param_type_begSty] === undefined) { + this.params[AscFormat.Param_type_begSty] = AscFormat.ParameterVal_arrowheadStyle_noArr; + } + if (this.params[AscFormat.Param_type_endSty] === undefined) { + this.params[AscFormat.Param_type_endSty] = AscFormat.ParameterVal_arrowheadStyle_arr; + } + if (this.params[AscFormat.Param_type_connRout] === undefined) { + this.params[AscFormat.Param_type_connRout] = AscFormat.ParameterVal_connectorRouting_stra; + } + if (this.params[AscFormat.Param_type_connRout] === AscFormat.ParameterVal_connectorRouting_bend) { + if (this.params[AscFormat.Param_type_bendPt] === undefined) { + this.params[AscFormat.Param_type_bendPt] = AscFormat.ParameterVal_bendPoint_end; + } + } + } + + ConnectorAlgorithm.prototype.getConnectionDistCoefficient = function (isBegin) { + switch (this.params[AscFormat.Param_type_connRout]) { + case AscFormat.ParameterVal_connectorRouting_bend: + if (!this.connectionDistances.begin && !this.connectionDistances.end) { + return isBegin ? 0 : 1; + } else { + if (isBegin) { + return this.connectionDistances.begin || 0; + } else { + return this.connectionDistances.end || 1; + } + } + case AscFormat.ParameterVal_connectorRouting_stra: + if (!this.connectionDistances.begin && !this.connectionDistances.end) { + if (this.params[AscFormat.Param_type_dim] === AscFormat.ParameterVal_connectorDimension_2D) { + return isBegin ? 0.22 : 0.25; + } + return 0; + } + return isBegin ? this.connectionDistances.begin : this.connectionDistances.end; + default: + return isBegin ? this.connectionDistances.begin : this.connectionDistances.end; + } + } + ConnectorAlgorithm.prototype.getEdgePoints = function () { + if (!this.calcValues.edgePoints) { + this.calcValues.edgePoints = { + start: null, + end: null + }; + this.calcValues.pointPositions = { + start: null, + end: null + }; + + let calcStartEdgePoint; + let calcEndEdgePoint; + const startEdgePoints = this.getAvailableEdgePoints(true); + const endEdgePoints = this.getAvailableEdgePoints(); + let minDistance = null; + for (let i = 0; i < startEdgePoints.length; i += 1) { + const startEdgePoint = startEdgePoints[i].point; + for (let j = 0; j < endEdgePoints.length; j += 1) { + const endEdgePoint = endEdgePoints[j].point; + const distance = startEdgePoint.getVector(endEdgePoint).getDistance(); + if (minDistance === null || minDistance > distance) { + minDistance = distance; + calcStartEdgePoint = startEdgePoints[i]; + calcEndEdgePoint = endEdgePoints[j]; + } + } + } + + if (calcStartEdgePoint && calcEndEdgePoint) { + this.calcValues.edgePoints.start = calcStartEdgePoint.point; + this.calcValues.pointPositions.start = calcStartEdgePoint.type; + this.calcValues.edgePoints.end = calcEndEdgePoint.point; + this.calcValues.pointPositions.end = calcEndEdgePoint.type; + } + if (this.isCurveConnection()) { + this.calcCurveEdgePoints(this.calcValues.edgePoints.start, this.calcValues.edgePoints.end); + } + } + if (this.calcValues.edgePoints.start && this.calcValues.edgePoints.end) { + return this.calcValues.edgePoints; + } + return null; + }; + ConnectorAlgorithm.prototype.getBendConnectionPoints = function (startPoint, endPoint) { + const vector = startPoint.getVector(endPoint); + const startConnectionPoint = this.getBendConnectionPoint(startPoint, startPoint, vector, true); + const endConnectionPoint = this.getBendConnectionPoint(endPoint, startPoint, vector, false); + return {start: startConnectionPoint, end: endConnectionPoint}; + }; + + ConnectorAlgorithm.prototype.getBendConnectionPoint = function (point, startPoint, vector, isStart) { + const position = this.getPointPosition(isStart); + const coefficient = this.getConnectionDistCoefficient(isStart); + switch (position) { + case AscFormat.ParameterVal_connectorPoint_bCtr: + case AscFormat.ParameterVal_connectorPoint_tCtr: + return new CCoordPoint(point.x, vector.y * coefficient + startPoint.y); + case AscFormat.ParameterVal_connectorPoint_midR: + case AscFormat.ParameterVal_connectorPoint_midL: + case AscFormat.ParameterVal_connectorPoint_tL: + case AscFormat.ParameterVal_connectorPoint_bR: + case AscFormat.ParameterVal_connectorPoint_tR: + case AscFormat.ParameterVal_connectorPoint_bL: + return new CCoordPoint(vector.x * coefficient + startPoint.x, point.y); + case AscFormat.ParameterVal_connectorPoint_radial: + case AscFormat.ParameterVal_connectorPoint_auto: + default: + return null; + } + }; + ConnectorAlgorithm.prototype.getStraightConnectionPoints = function (startPoint, endPoint) { + const startCoefficient = this.getConnectionDistCoefficient(true); + const endCoefficient = 1 - this.getConnectionDistCoefficient(false); + const endConnectionPoint = new CCoordPoint((endPoint.x - startPoint.x) * endCoefficient + startPoint.x, (endPoint.y - startPoint.y) * endCoefficient + startPoint.y); + const startConnectionPoint = new CCoordPoint((endPoint.x - startPoint.x) * startCoefficient + startPoint.x, (endPoint.y - startPoint.y) * startCoefficient + startPoint.y); + + return {start: startConnectionPoint, end: endConnectionPoint}; + }; + ConnectorAlgorithm.prototype.getCenterPoint = function () { + if (this.calcValues.radiusCenterPoint) { + return this.calcValues.radiusCenterPoint; + } + if (this.parentAlgorithm instanceof CycleAlgorithm) { + const startShape = this.getStartShape(); + if (startShape.radialVector) { + const bounds = startShape.getBounds(); + const centerShapePoint = getShapePoint(bounds); + return new CCoordPoint(centerShapePoint.x - startShape.radialVector.x, centerShapePoint.y - startShape.radialVector.y); + } + } + }; + ConnectorAlgorithm.prototype.getCurveConnectionPoints = function (startPoint, endPoint) { + const result = {start: null, end: null}; + const centerPoint = this.getCenterPoint(); + if (centerPoint) { + const startCoefficient = this.getConnectionDistCoefficient(true); + const endCoefficient = this.getConnectionDistCoefficient(false); + + const startVector = centerPoint.getVector(startPoint); + const radius = startVector.getDistance(); + const endVector = centerPoint.getVector(endPoint); + const angle = startVector.getAngleBetween(endVector, !this.isClockwise()); + const startAngle = startVector.getAngle(); + const endAngle = endVector.getAngle(); + + let startConnectionVector; + let endConnectionVector; + if (this.isClockwise() === this.isLongCurve()) { + startConnectionVector = CVector.getVectorByAngle(startAngle - angle * startCoefficient); + endConnectionVector = CVector.getVectorByAngle(endAngle + angle * endCoefficient); + } else { + startConnectionVector = CVector.getVectorByAngle(startAngle + angle * startCoefficient); + endConnectionVector = CVector.getVectorByAngle(endAngle - angle * endCoefficient); + } + result.start = new CCoordPoint(centerPoint.x + startConnectionVector.x * radius, centerPoint.y + startConnectionVector.y * radius); + result.end = new CCoordPoint(centerPoint.x + endConnectionVector.x * radius, centerPoint.y + endConnectionVector.y * radius); + } + return result; + }; + ConnectorAlgorithm.prototype.getConnectionPoints = function () { + if (!this.calcValues.connectionPoints) { + this.calcValues.connectionPoints = { + start: null, + end : null + }; + const edgePoints = this.getEdgePoints(); + if (edgePoints) { + const startPoint = edgePoints.start; + const endPoint = edgePoints.end; + let connectionPoints; + switch (this.params[AscFormat.Param_type_connRout]) { + case AscFormat.ParameterVal_connectorRouting_bend: + connectionPoints = this.getBendConnectionPoints(startPoint, endPoint); + break; + case AscFormat.ParameterVal_connectorRouting_stra: + connectionPoints = this.getStraightConnectionPoints(startPoint, endPoint); + break; + case AscFormat.ParameterVal_connectorRouting_curve: + case AscFormat.ParameterVal_connectorRouting_longCurve: + connectionPoints = this.getCurveConnectionPoints(startPoint, endPoint); + break; + default: + break; + } + + if (connectionPoints) { + this.calcValues.connectionPoints.start = connectionPoints.start; + this.calcValues.connectionPoints.end = connectionPoints.end; + } + } + } + return this.calcValues.connectionPoints; + } + ConnectorAlgorithm.prototype.setParentAlgorithm = function (algorithm) { + this.parentAlgorithm = algorithm; + }; + ConnectorAlgorithm.prototype.setConnectionDistance = function (value, isStart) { + if (isStart) { + this.connectionDistances.begin = value; + } else { + this.connectionDistances.end = value; + } + }; + BaseAlgorithm.prototype.setStemThick = function (value) { + this.stemThick = value; + }; + ConnectorAlgorithm.prototype.getPointPosition = function (isStart) { + if (!this.calcValues.pointPositions) { + this.getEdgePoints(); + } + return isStart ? this.calcValues.pointPositions.start : this.calcValues.pointPositions.end; + }; + ConnectorAlgorithm.prototype.getStartShape = function () { + return this.startNode.getShape(false); + }; + ConnectorAlgorithm.prototype.getEndShape = function () { + return this.endNode.getShape(false); + }; + ConnectorAlgorithm.prototype.isAutoCenterPoint = function (isStart, isFromLayout) { + const connCoefficient = this.getConnectionDistCoefficient(isStart); + return connCoefficient === 0 && this.params[AscFormat.Param_type_dim] === AscFormat.ParameterVal_connectorDimension_2D && + isFromLayout; + }; + ConnectorAlgorithm.prototype.getAutoEdgePoint = function (isStart, isFromLayout) { + const startShape = this.getStartShape(); + const endShape = this.getEndShape(); + const startBounds = startShape.getBounds(); + const endBounds = endShape.getBounds(); + if (this.isAutoCenterPoint(isStart, isFromLayout)) { + return isStart ? getShapePoint(startBounds) : getShapePoint(endBounds); + } + const startPoint = getShapePoint(startBounds); + const endPoint = getShapePoint(endBounds); + let guideVector; + if (isStart) { + guideVector = new CVector(endPoint.x - startPoint.x, endPoint.y - startPoint.y); + } else { + guideVector = new CVector(startPoint.x - endPoint.x, startPoint.y - endPoint.y); + } + if (fAlgDeltaEqual(guideVector.getDistance(), 0)) { + return null; + } + const bounds = isStart ? startBounds : endBounds; + return getMinShapeEdgePoint(bounds, guideVector); + }; + ConnectorAlgorithm.prototype.getEllipseRadialEdgePoint = function (radialInfo, bounds, isStart) { + const cycleAngle = radialInfo.angle; + const centerPoint = radialInfo.point; + const radius = radialInfo.radius; + const shapeRadius = (bounds.r - bounds.l) / 2; + const shapeAngle = Math.acos(1 - ((shapeRadius * shapeRadius) / (2 * radius * radius))); + let angle = cycleAngle; + if (radialInfo.isClockwise) { + if (isStart) { + angle += shapeAngle; + } else { + angle -= shapeAngle; + } + } else { + if (isStart) { + angle -= shapeAngle; + } else { + angle += shapeAngle; + } + } + + + return new CCoordPoint(Math.cos(angle) * radius + centerPoint.x, Math.sin(angle) * radius + centerPoint.y); + }; + ConnectorAlgorithm.prototype.isPointOnInterval = function (point, startSegment, endSegment) { + if (startSegment.x === endSegment.x) { + return (point.y > startSegment.y) && (point.y < endSegment.y) && !(fIntervalDeltaEqual(point.y, startSegment.y) || fIntervalDeltaEqual(point.y, endSegment.y)); + } else { + return (point.x > startSegment.x) && (point.x < endSegment.x) && !(fIntervalDeltaEqual(point.x, startSegment.x) || fIntervalDeltaEqual(point.x, endSegment.x)); + } + }; + ConnectorAlgorithm.prototype.isPointOnSegment = function (point, startSegment, endSegment) { + if (startSegment.x === endSegment.x) { + return (point.y > startSegment.y || fIntervalDeltaEqual(point.y, startSegment.y)) && (point.y < endSegment.y || fIntervalDeltaEqual(point.y, endSegment.y)); + } else { + return (point.x > startSegment.x || fIntervalDeltaEqual(point.x, startSegment.x)) && (point.x < endSegment.x || fIntervalDeltaEqual(point.x, endSegment.x)); + } + } + ConnectorAlgorithm.prototype.getCycleRadius = function () { + const radiusCoefficient = this.parentAlgorithm.calcValues.radiusCoefficient || 1; + if (this.parentAlgorithm instanceof CycleAlgorithm) { + const diamScale = Math.abs(this.diameterScale); + return this.parentAlgorithm.calcValues.radius * radiusCoefficient * diamScale; + } + const constrDiam = this.parentNode.getConstr(AscFormat.Constr_type_diam, true, true); + if (constrDiam !== undefined) { + return Math.abs(constrDiam) / 2; + } + + }; + + ConnectorAlgorithm.prototype.calcCurveEdgePoints = function (startPoint, endPoint) { + if (!(startPoint && endPoint)) { + startPoint = this.getAutoEdgePoint(true); + endPoint = this.getAutoEdgePoint(); + } + if (!(startPoint && endPoint)) { + const startShape = this.getStartShape(); + const endShape = this.getEndShape(); + const startBounds = startShape.getBounds(); + const endBounds = endShape.getBounds(); + startPoint = getShapePoint(startBounds); + endPoint = getShapePoint(endBounds); + } + if (startPoint && endPoint) { + this.calcValues.edgePoints.start = startPoint; + this.calcValues.edgePoints.end = endPoint; + + const cycleRadius = this.getCycleRadius(); + const isClockwise = this.isClockwise(); + const lineVector = startPoint.getVector(endPoint); + const circlesIntersectionPoints = AscFormat.circlesIntersection(startPoint.x, startPoint.y, cycleRadius, endPoint.x, endPoint.y, cycleRadius); + if (circlesIntersectionPoints.length) { + const firstEllipsePoint = new CCoordPoint(circlesIntersectionPoints[0].x, circlesIntersectionPoints[0].y); + const secondEllipsePoint = new CCoordPoint(circlesIntersectionPoints[1].x, circlesIntersectionPoints[1].y); + let _isClockwisePoints = isClockwisePoints(firstEllipsePoint, startPoint, endPoint); + + if (_isClockwisePoints) { + this.calcValues.radiusCenterPoint = isClockwise ? firstEllipsePoint : secondEllipsePoint; + } else { + this.calcValues.radiusCenterPoint = isClockwise ? secondEllipsePoint : firstEllipsePoint; + } + } else { + this.calcValues.radiusCenterPoint = new CCoordPoint(startPoint.x + lineVector.x / 2, startPoint.y + lineVector.y / 2); + } + } + }; + ConnectorAlgorithm.prototype.getRectRadialEdgePoint = function (radialInfo, bounds, isStart) { + const centerPoint = radialInfo.point; + const radius = radialInfo.radius; + const isClockwise = radialInfo.isClockwise; + + const ellipseBounds = { + l: centerPoint.x - radius, + r: centerPoint.x + radius, + t: centerPoint.y - radius, + b: centerPoint.y + radius + }; + + const linePoints = [ + [new CCoordPoint(bounds.l, bounds.t), new CCoordPoint(bounds.r, bounds.t)], + [new CCoordPoint(bounds.l, bounds.t), new CCoordPoint(bounds.l, bounds.b)], + [new CCoordPoint(bounds.l, bounds.b), new CCoordPoint(bounds.r, bounds.b)], + [new CCoordPoint(bounds.r, bounds.t), new CCoordPoint(bounds.r, bounds.b)] + ]; + const rectCenterPoint = getShapePoint(bounds); + for (let i = 0; i < linePoints.length; i += 1) { + const coords = linePoints[i]; + const paramLine = getParametricLinEquation(coords[0], new CVector(coords[1].x - coords[0].x, coords[1].y - coords[0].y)); + const answer = resolveParameterLineAndShapeEquation(ellipseBounds, paramLine); + if (!answer.bError) { + let point; + const point1 = new CCoordPoint(paramLine.x + paramLine.ax * answer.x1, paramLine.y + paramLine.ay * answer.x1); + const point2 = new CCoordPoint(paramLine.x + paramLine.ax * answer.x2, paramLine.y + paramLine.ay * answer.x2); + + if (this.isPointOnInterval(point1, coords[0], coords[1]) && this.isPointOnInterval(point2, coords[0], coords[1])) { + continue; + } else if (this.isPointOnSegment(point1, coords[0], coords[1])) { + point = point1; + } else if (this.isPointOnSegment(point2, coords[0], coords[1])) { + point = point2; + } else { + continue; + } + if (isStart && isClockwise || !isStart && !isClockwise) { + if (isClockwisePoints(centerPoint, rectCenterPoint, point)) { + return point; + } + } else { + if (isClockwisePoints(centerPoint, point, rectCenterPoint)) { + return point; + } + } + } + } + return null; + }; + ConnectorAlgorithm.prototype.getRadialEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const radialInfo = this.parentAlgorithm.getRadialConnectionInfo(shape.node); + if (!radialInfo || radialInfo.radius === 0) { + return null; + } + + const bounds = shape.getBounds(); + if (bounds.isEllipse) { + return this.getEllipseRadialEdgePoint(radialInfo, bounds, isStart); + } + return this.getRectRadialEdgePoint(radialInfo, bounds, isStart); + }; + ConnectorAlgorithm.prototype.getAvailablePointPositions = function (isStart) { + const parameters = isStart ? this.params[AscFormat.Param_type_begPts] : this.params[AscFormat.Param_type_endPts]; + return parameters || [AscFormat.ParameterVal_connectorPoint_auto]; + + } + ConnectorAlgorithm.prototype.isCurveConnection = function () { + return this.params[AscFormat.Param_type_connRout] === AscFormat.ParameterVal_connectorRouting_curve || + this.params[AscFormat.Param_type_connRout] === AscFormat.ParameterVal_connectorRouting_longCurve; + }; + ConnectorAlgorithm.prototype.isCurveShape = function () { + return this.params[AscFormat.Param_type_connRout] === AscFormat.ParameterVal_connectorRouting_curve && + this.params[AscFormat.Param_type_dim] === AscFormat.ParameterVal_connectorDimension_2D; + }; + ConnectorAlgorithm.prototype.getAvailableEdgePoints = function (isStart) { + const result = []; + const pointPositions = this.getAvailablePointPositions(isStart); + for (let i = 0; i < pointPositions.length; i += 1) { + const type = pointPositions[i]; + let point; + switch (type) { + case AscFormat.ParameterVal_connectorPoint_radial: + point = this.getRadialEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_tL: + point = this.getTopLeftEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_tCtr: + point = this.getTopCenterEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_tR: + point = this.getTopRightEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_midR: + point = this.getMidRightEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_bR: + point = this.getBottomRightEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_bCtr: + point = this.getBottomCenterEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_bL: + point = this.getBottomLeftEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_midL: + point = this.getMidLeftEdgePoint(isStart); + break; + case AscFormat.ParameterVal_connectorPoint_auto: + default: + point = this.getAutoEdgePoint(isStart, true); + break; + } + if (point) { + result.push({point: point, type: type}); + } + } + return result; + }; + ConnectorAlgorithm.prototype.getTopLeftEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const bounds = shape.getBounds(); + return new CCoordPoint(bounds.l, bounds.t); + }; + ConnectorAlgorithm.prototype.getTopCenterEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const bounds = shape.getBounds(); + return new CCoordPoint(bounds.l + (bounds.r - bounds.l) / 2, bounds.t); + }; + ConnectorAlgorithm.prototype.getTopRightEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const bounds = shape.getBounds(); + return new CCoordPoint(bounds.r, bounds.t); + }; + ConnectorAlgorithm.prototype.getMidRightEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const bounds = shape.getBounds(); + return new CCoordPoint(bounds.r, bounds.t + (bounds.b - bounds.t) / 2); + }; + ConnectorAlgorithm.prototype.getBottomRightEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const bounds = shape.getBounds(); + return new CCoordPoint(bounds.r, bounds.b); + }; + ConnectorAlgorithm.prototype.getBottomCenterEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const bounds = shape.getBounds(); + return new CCoordPoint(bounds.l + (bounds.r - bounds.l) / 2, bounds.b); + }; + ConnectorAlgorithm.prototype.getBottomLeftEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const bounds = shape.getBounds(); + return new CCoordPoint(bounds.l, bounds.b); + }; + ConnectorAlgorithm.prototype.getMidLeftEdgePoint = function (isStart) { + const shape = isStart ? this.getStartShape() : this.getEndShape(); + const bounds = shape.getBounds(); + return new CCoordPoint(bounds.l, bounds.t + (bounds.b - bounds.t) / 2); + }; + + ConnectorAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(false, isCalculateScaleCoefficients); + }; + ConnectorAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficients) { + this.createShadowShape(isCalculateScaleCoefficients); + if (!isCalculateScaleCoefficients) { + smartartAlgorithm.addConnectorAlgorithm(this); + } + } + + ConnectorAlgorithm.prototype.setFirstConnectorNode = function (node) { + this.startNode = node; + }; + ConnectorAlgorithm.prototype.setLastConnectorNode = function (node) { + this.endNode = node; + }; + ConnectorAlgorithm.prototype.connectShapes = function (smartartAlgorithm) { + if (this.startNode && this.endNode) { + if (this.params[AscFormat.Param_type_dim] === AscFormat.ParameterVal_connectorDimension_2D) { + this.createShapeConnector(smartartAlgorithm); + } else if (this.params[AscFormat.Param_type_dim] === AscFormat.ParameterVal_connectorDimension_1D) { + this.createLineConnector(); + } + } + }; + ConnectorAlgorithm.prototype.getStraightAdjLst = function (shapeType) { + if (shapeType !== AscFormat.LayoutShapeType_shapeType_rect) { + const customAdjLst = new AscFormat.AdjLst(); + const adj1 = new AscFormat.Adj(); + const adj2 = new AscFormat.Adj(); + adj1.setIdx(1); + adj2.setIdx(2); + adj1.setVal(this.stemThick); + adj2.setVal(0.5); + customAdjLst.addToLst(0, adj1); + customAdjLst.addToLst(0, adj2); + return customAdjLst; + } + }; + ConnectorAlgorithm.prototype.isLongCurve = function () { + return this.params[AscFormat.Param_type_connRout] === AscFormat.ParameterVal_connectorRouting_longCurve; + } + ConnectorAlgorithm.prototype.getConnectorShapeType = function () { + const endStyle = this.params[AscFormat.Param_type_endSty]; + const beginStyle = this.params[AscFormat.Param_type_begSty]; + if (this.params[AscFormat.Param_type_connRout] === AscFormat.ParameterVal_connectorRouting_curve) { + if (endStyle === AscFormat.ParameterVal_arrowheadStyle_arr && beginStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + return AscFormat.LayoutShapeType_shapeType_leftRightCircularArrow; + } else if (endStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + if (this.isClockwise()) { + return AscFormat.LayoutShapeType_shapeType_circularArrow; + } + return AscFormat.LayoutShapeType_shapeType_leftCircularArrow; + } else if (beginStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + if (this.isClockwise()) { + return AscFormat.LayoutShapeType_shapeType_leftCircularArrow; + } + return AscFormat.LayoutShapeType_shapeType_circularArrow; + } + return AscFormat.LayoutShapeType_shapeType_blockArc; + } else if (this.isLongCurve()) { + if (endStyle === AscFormat.ParameterVal_arrowheadStyle_arr && beginStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + return AscFormat.LayoutShapeType_shapeType_leftRightCircularArrow; + } else if (endStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + if (this.isClockwise()) { + return AscFormat.LayoutShapeType_shapeType_leftCircularArrow; + } + return AscFormat.LayoutShapeType_shapeType_circularArrow; + } else if (beginStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + if (this.isClockwise()) { + return AscFormat.LayoutShapeType_shapeType_circularArrow; + } + return AscFormat.LayoutShapeType_shapeType_leftCircularArrow; + } + return AscFormat.LayoutShapeType_shapeType_blockArc; + } else { + if (endStyle === AscFormat.ParameterVal_arrowheadStyle_arr && beginStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + return AscFormat.LayoutShapeType_shapeType_leftRightArrow; + } else if (endStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + return AscFormat.LayoutShapeType_shapeType_rightArrow; + } else if (beginStyle === AscFormat.ParameterVal_arrowheadStyle_arr) { + return AscFormat.LayoutShapeType_shapeType_leftArrow; + } + return AscFormat.LayoutShapeType_shapeType_rect; + } + } + ConnectorAlgorithm.prototype.getTemplateConnectorShape = function () { + const shape = this.parentNode.shape; + const connectorShape = new ShadowShape(); + connectorShape.shape = shape.shape; + + connectorShape.type = this.getConnectorShapeType(); + connectorShape.cleanParams = {}; + connectorShape.cleanParams.width = shape.cleanParams.width; + connectorShape.cleanParams.height = shape.cleanParams.height; + connectorShape.cleanParams.x = shape.cleanParams.x; + connectorShape.cleanParams.y = shape.cleanParams.y; + connectorShape.node = this.parentNode; + return connectorShape; + }; + + ConnectorAlgorithm.prototype.createBlockArcCurveShapeConnector = function (startAngle, endAngle, radius) { + const connectorShape = this.getTemplateConnectorShape(); + const connectorHeight = this.parentNode.getConstr(AscFormat.Constr_type_h, true); + const stemThick = (connectorHeight / radius) / 3.4; + const customAdjLst = new AscFormat.AdjLst(); + const adj1 = new AscFormat.Adj(); + const adj2 = new AscFormat.Adj(); + const adj3 = new AscFormat.Adj(); + adj1.setIdx(1); + adj2.setIdx(2); + adj3.setIdx(3); + adj1.setVal(startAngle * radToDeg); + adj2.setVal(endAngle * radToDeg); + adj3.setVal(stemThick); + customAdjLst.addToLst(0, adj1); + customAdjLst.addToLst(0, adj2); + customAdjLst.addToLst(0, adj3); + connectorShape.customAdj = customAdjLst; + + const centerPoint = this.getCenterPoint(); + const absRadius = Math.abs(radius); + const diameterSide = absRadius * 2; + const truthSide = diameterSide / (1 - stemThick / 2); + const truthRadius = truthSide / 2; + connectorShape.width = truthSide; + connectorShape.height = truthSide; + connectorShape.x = centerPoint.x - truthRadius; + connectorShape.y = centerPoint.y - truthRadius; + const shape = this.parentNode.getShape(); + shape.connectorShape = connectorShape; + }; + ConnectorAlgorithm.prototype.createCircularArrowCurveShapeConnector = function (startAngle, endAngle, radius) { + const connectorShape = this.getTemplateConnectorShape(); + const connectorHeight = this.parentNode.getConstr(AscFormat.Constr_type_h, true, true); + const constrArrowWidth = this.parentNode.getConstr(AscFormat.Constr_type_wArH, true, true); + const constrStemThick = this.parentNode.getConstr(AscFormat.Constr_type_stemThick, true, true); + const constrArrowHeight = this.parentNode.getConstr(AscFormat.Constr_type_hArH, true, true); + let adjArrowWidth; + let stemThick; + let adjArrowHeight; + let truthSide; + // todo: increase accuracy in Continuous Cycle + if (constrArrowWidth !== undefined && constrStemThick !== undefined && constrArrowHeight !== undefined) { + const diam = radius * 2; + const diamScale = Math.abs(this.diameterScale); + if (connectorHeight !== undefined) { + adjArrowWidth = constrArrowWidth / radius * 0.6195; + stemThick = adjArrowWidth / 1.16666; + adjArrowHeight = (constrArrowHeight / radius) * 28.65983; + truthSide = (diam / (1 - adjArrowWidth * 2)) * 0.98999; + } else { + adjArrowWidth = 1 / (diamScale) * 0.0598728; + stemThick = adjArrowWidth * 0.963; + adjArrowHeight = (1 / diamScale) * 5.731787; + truthSide = (diam / (1 - adjArrowWidth * 2)) * 0.9965; + } + } else if (connectorHeight !== undefined) { + const addValue = connectorHeight * 0.15; + truthSide = ((radius + addValue) * 2 + connectorHeight); + adjArrowWidth = 0.5 - ((radius - addValue / 3) / truthSide); + stemThick = adjArrowWidth * 0.85718; + adjArrowHeight = (connectorHeight / radius) * radToDeg / 2; + } else { + return; + } + + + const customAdjLst = new AscFormat.AdjLst(); + const adj1 = new AscFormat.Adj(); + const adj2 = new AscFormat.Adj(); + const adj3 = new AscFormat.Adj(); + const adj4 = new AscFormat.Adj(); + const adj5 = new AscFormat.Adj(); + adj1.setIdx(1); + adj2.setIdx(2); + adj3.setIdx(3); + adj4.setIdx(4); + adj5.setIdx(5); + adj1.setVal(stemThick); + adj2.setVal(adjArrowHeight); + if (this.getConnectorShapeType() === AscFormat.LayoutShapeType_shapeType_circularArrow) { + adj3.setVal(endAngle * radToDeg - adjArrowHeight); + adj4.setVal(startAngle * radToDeg); + } else { + adj3.setVal(startAngle * radToDeg + adjArrowHeight); + adj4.setVal(endAngle * radToDeg); + } + adj5.setVal(adjArrowWidth); + customAdjLst.addToLst(0, adj1); + customAdjLst.addToLst(0, adj2); + customAdjLst.addToLst(0, adj3); + customAdjLst.addToLst(0, adj4); + customAdjLst.addToLst(0, adj5); + connectorShape.customAdj = customAdjLst; + + const centerPoint = this.getCenterPoint(); + const truthRadius = truthSide / 2; + connectorShape.width = truthSide; + connectorShape.height = truthSide; + connectorShape.x = centerPoint.x - truthRadius; + connectorShape.y = centerPoint.y - truthRadius; + const shape = this.parentNode.getShape(); + shape.connectorShape = connectorShape; + }; + ConnectorAlgorithm.prototype.createCurveShapeConnector = function (smartartAlgorithm, startPoint, endPoint) { + const centerPoint = this.getCenterPoint(); + const startVector = centerPoint.getVector(startPoint); + const endVector = centerPoint.getVector(endPoint); + let startAngle = startVector.getAngle(); + let endAngle = endVector.getAngle(); + const isClockwise = this.isClockwise(); + if (fAlgDeltaEqual(startAngle, endAngle)) { + endAngle = startAngle + 0.000001; + } else if (isClockwise === this.isLongCurve()) { + const temp = startAngle; + startAngle = endAngle; + endAngle = temp; + } + const radius = startVector.getDistance(); + switch (this.getConnectorShapeType()) { + case AscFormat.LayoutShapeType_shapeType_blockArc: + this.createBlockArcCurveShapeConnector(startAngle, endAngle, radius); + break; + case AscFormat.LayoutShapeType_shapeType_circularArrow: + case AscFormat.LayoutShapeType_shapeType_leftCircularArrow: + this.createCircularArrowCurveShapeConnector(startAngle, endAngle, radius); + break; + default: + break; + } + + const shape = this.parentNode.getShape(); + const connectorShape = shape.connectorShape; + if (connectorShape) { + const coefficient = connectorShape.width / shape.cleanParams.width; + const heightScale = this.parentNode.getHeightScale(true); + const widthScale = this.parentNode.getWidthScale(true); + const newWidth = connectorShape.width * widthScale; + const newHeight = connectorShape.height * heightScale; + connectorShape.x += (connectorShape.width - newWidth) / 2; + connectorShape.y += (connectorShape.height - newHeight) / 2; + connectorShape.width = newWidth; + connectorShape.height = newHeight; + this.applyPostAlgorithmSettingsForShape(smartartAlgorithm, connectorShape, coefficient); + } + }; + ConnectorAlgorithm.prototype.createStraightShapeConnector = function (smartartAlgorithm, startPoint, endPoint) { + const cx = (startPoint.x + endPoint.x) / 2; + const cy = (startPoint.y + endPoint.y) / 2; + + const arrowVector = new CVector(endPoint.x - startPoint.x, endPoint.y - startPoint.y); + + let width; + const connectionDistanceResolver = this.parentAlgorithm.parentNode.connectionDistanceResolver; + const minConnectionDistance = connectionDistanceResolver && connectionDistanceResolver.getConnectionDistance(); + if (connectionDistanceResolver && minConnectionDistance !== -1) { + width = minConnectionDistance; + } else { + width = arrowVector.getDistance(); + } + const constrObj = this.parentNode.getConstraints(true); + const height = constrObj[AscFormat.Constr_type_hArH] !== undefined ? constrObj[AscFormat.Constr_type_hArH] : this.parentNode.shape.height; + + const x = cx - width / 2; + const y = cy - height / 2; + const shape = this.parentNode.getShape(); + const connectorShape = this.getTemplateConnectorShape(); + connectorShape.customAdj = this.getStraightAdjLst(connectorShape.type); + + connectorShape.x = x; + connectorShape.y = y; + connectorShape.rot = arrowVector.getAngle(); + shape.connectorShape = connectorShape; + + const prSet = this.parentNode.getPrSet(); + if (!prSet.getPresStyleLbl()) { + prSet.setPresStyleLbl("sibTrans2D1"); + } + const coefficient = width / shape.cleanParams.width; + this.applyPostAlgorithmSettings(smartartAlgorithm, connectorShape, coefficient); + + const heightScale = this.parentNode.getHeightScale(true); + const widthScale = this.parentNode.getWidthScale(true); + const scaleHeight = height * heightScale; + const scaleWidth = width * widthScale; + connectorShape.height = scaleHeight; + connectorShape.width = scaleWidth; + connectorShape.x += (width - scaleWidth) / 2; + connectorShape.y += (height - scaleHeight) / 2; + }; + ConnectorAlgorithm.prototype.createShapeConnector = function (smartartAlgorithm) { + const connectionPoints = this.getConnectionPoints(); + const startArrowPoint = connectionPoints.start; + const endArrowPoint = connectionPoints.end; + if (startArrowPoint && endArrowPoint) { + switch (this.params[AscFormat.Param_type_connRout]) { + case AscFormat.ParameterVal_connectorRouting_longCurve: + case AscFormat.ParameterVal_connectorRouting_curve: + this.createCurveShapeConnector(smartartAlgorithm, startArrowPoint, endArrowPoint); + break; + default: + this.createStraightShapeConnector(smartartAlgorithm, startArrowPoint, endArrowPoint); + break; + } + } + }; + + ConnectorAlgorithm.prototype.createLineConnector = function () { + const points = this.getConnectionPoints(); + if (points.start && points.end) { + switch (this.params[AscFormat.Param_type_connRout]) { + case AscFormat.ParameterVal_connectorRouting_stra: + this.createStraightLineConnector(points.start, points.end); + break; + case AscFormat.ParameterVal_connectorRouting_bend: + this.createBendLineConnector(points.start, points.end); + break; + case AscFormat.ParameterVal_connectorRouting_curve: + this.createCurveLineConnector(points.start, points.end); + break; + default: + break; + } + } + }; + ConnectorAlgorithm.prototype.getStraightConnectionInfo = function (startPoint, endPoint) { + const cx = (startPoint.x + endPoint.x) / 2; + const cy = (startPoint.y + endPoint.y) / 2; + + const arrowVector = new CVector(endPoint.x - startPoint.x, endPoint.y - startPoint.y); + + let width; + const connectionDistanceResolver = this.parentAlgorithm.parentNode.connectionDistanceResolver; + const minConnectionDistance = connectionDistanceResolver && connectionDistanceResolver.getConnectionDistance(); + if (connectionDistanceResolver && minConnectionDistance !== -1) { + width = minConnectionDistance; + } else { + width = arrowVector.getDistance(); + } + const shape = this.parentNode.shape; + const height = shape.height; + + const x = cx - width / 2; + const y = cy - height / 2; + + const coefficient = width / shape.cleanParams.width; + + const heightScale = this.parentNode.getHeightScale(true); + const widthScale = this.parentNode.getWidthScale(true); + const scaleHeight = height * heightScale; + const scaleWidth = width * widthScale; + + return { + x: x, + y: y, + width: scaleWidth, + height: scaleHeight, + offX: (width - scaleWidth) / 2, + offY: (height - scaleHeight) / 2, + rot: arrowVector.getAngle(), + coefficient: coefficient + } + } + ConnectorAlgorithm.prototype.isDoubleBendHorizontalConnector = function() { + const startPoint = this.getPointPosition(true); + const endPoint = this.getPointPosition(); + return startPoint === AscFormat.ParameterVal_connectorPoint_midR && endPoint === AscFormat.ParameterVal_connectorPoint_midL || + startPoint === AscFormat.ParameterVal_connectorPoint_midL && endPoint === AscFormat.ParameterVal_connectorPoint_midR; + }; + ConnectorAlgorithm.prototype.isDoubleBendVerticalConnector = function() { + const startPoint = this.getPointPosition(true); + const endPoint = this.getPointPosition(); + return startPoint === AscFormat.ParameterVal_connectorPoint_bCtr && endPoint === AscFormat.ParameterVal_connectorPoint_tCtr || + startPoint === AscFormat.ParameterVal_connectorPoint_tCtr && endPoint === AscFormat.ParameterVal_connectorPoint_bCtr; + }; + ConnectorAlgorithm.prototype.isWrongBendPoints = function (startPoint, endPoint) { + const endPointPosition = this.getPointPosition(); + const startPointPosition = this.getPointPosition(true); + switch (endPointPosition) { + case AscFormat.ParameterVal_connectorPoint_tCtr: + if ((endPoint.y <= startPoint.y) || + (startPointPosition === AscFormat.ParameterVal_connectorPoint_midR && endPoint.x <= startPoint.x) || + (startPointPosition === AscFormat.ParameterVal_connectorPoint_midL && endPoint.x >= startPoint.x)) { + return true; + } + break; + case AscFormat.ParameterVal_connectorPoint_bCtr: + if ((endPoint.y >= startPoint.y) || + (startPointPosition === AscFormat.ParameterVal_connectorPoint_midR && endPoint.x <= startPoint.x) || + (startPointPosition === AscFormat.ParameterVal_connectorPoint_midL && endPoint.x >= startPoint.x)) { + return true; + } + break; + case AscFormat.ParameterVal_connectorPoint_midR: + case AscFormat.ParameterVal_connectorPoint_bR: + if ((endPoint.x >= startPoint.x) || + ((startPointPosition === AscFormat.ParameterVal_connectorPoint_bCtr || + startPointPosition === AscFormat.ParameterVal_connectorPoint_tCtr) && endPoint.y <= startPoint.y)) { + return true; + } + break; + case AscFormat.ParameterVal_connectorPoint_midL: + case AscFormat.ParameterVal_connectorPoint_bL: + if ((endPoint.x <= startPoint.x) || + ((startPointPosition === AscFormat.ParameterVal_connectorPoint_bCtr || + startPointPosition === AscFormat.ParameterVal_connectorPoint_tCtr) && endPoint.y <= startPoint.y)) { + return true; + } + break; + } + return false; + }; + ConnectorAlgorithm.prototype.getBendPoints = function (startPoint, endPoint) { + if (this.isWrongBendPoints(startPoint, endPoint)) { + return []; + } + const isReverse = this.params[AscFormat.Param_type_bendPt] === AscFormat.ParameterVal_bendPoint_end; + const edgePoints = this.getEdgePoints(); + let startEdgePoint = edgePoints.start; + let endEdgePoint = edgePoints.end; + if (isReverse) { + const t = startPoint; + startPoint = endPoint; + endPoint = t; + startEdgePoint = edgePoints.end; + endEdgePoint = edgePoints.start; + } + let bendDist; + if (this.isDoubleBendHorizontalConnector()) { + bendDist = this.parentNode.adaptConstr[AscFormat.Constr_type_bendDist]; + if (bendDist === undefined) { + bendDist = Math.abs(startEdgePoint.x - endEdgePoint.x) / 2; + } + } else if (this.isDoubleBendVerticalConnector()) { + bendDist = this.parentNode.adaptConstr[AscFormat.Constr_type_bendDist]; + if (bendDist === undefined) { + bendDist = Math.abs(startEdgePoint.y - endEdgePoint.y) / 2; + } + } + const type = this.getPointPosition(!isReverse); + let bendPoints; + switch (type) { + case AscFormat.ParameterVal_connectorPoint_auto: + break; + case AscFormat.ParameterVal_connectorPoint_bCtr: { + if (bendDist === undefined) { + bendPoints = [new CCoordPoint(startPoint.x, endPoint.y)]; + } else { + let y = Math.min(endPoint.y, startEdgePoint.y + bendDist); + bendPoints = [new CCoordPoint(startEdgePoint.x, y), new CCoordPoint(endEdgePoint.x, y)]; + } + break; + } + case AscFormat.ParameterVal_connectorPoint_ctr: + break; + case AscFormat.ParameterVal_connectorPoint_bL: + case AscFormat.ParameterVal_connectorPoint_midL: { + if (bendDist === undefined) { + bendPoints = [new CCoordPoint(endPoint.x, startPoint.y)]; + } else { + let x = Math.max(endPoint.x, startEdgePoint.x - bendDist); + bendPoints = [new CCoordPoint(x, startEdgePoint.y), new CCoordPoint(x, endEdgePoint.y)]; + } + break; + } + case AscFormat.ParameterVal_connectorPoint_bR: + case AscFormat.ParameterVal_connectorPoint_midR: { + if (bendDist === undefined) { + bendPoints = [new CCoordPoint(endPoint.x, startPoint.y)]; + } else { + let x = Math.min(endPoint.x, startEdgePoint.x + bendDist); + bendPoints = [new CCoordPoint(x, startEdgePoint.y), new CCoordPoint(x, endEdgePoint.y)]; + } + break; + } + case AscFormat.ParameterVal_connectorPoint_radial: + break; + case AscFormat.ParameterVal_connectorPoint_tCtr: { + if (bendDist === undefined) { + bendPoints = [new CCoordPoint(startPoint.x, endPoint.y)]; + } else { + let y = Math.max(endPoint.y, startEdgePoint.y - bendDist); + bendPoints = [new CCoordPoint(startEdgePoint.x, y), new CCoordPoint(endEdgePoint.x, y)]; + } + break; + } + case AscFormat.ParameterVal_connectorPoint_tL: + break; + case AscFormat.ParameterVal_connectorPoint_tR: + break; + default: + break; + } + if (bendPoints) { + return isReverse ? bendPoints.reverse() : bendPoints; + } + }; + ConnectorAlgorithm.prototype.getStartBendPoint = function (startPoint, endPoint) { + + }; + ConnectorAlgorithm.prototype.getEndBendPoint = function (startPoint, endPoint) { + + }; + ConnectorAlgorithm.prototype.getBendConnectionInfo = function (startPoint, endPoint) { + const x = endPoint.x < startPoint.x ? endPoint.x : startPoint.x; + const y = endPoint.y < startPoint.y ? endPoint.y : startPoint.y; + const width = Math.abs(endPoint.x - startPoint.x); + const height = Math.abs(endPoint.y - startPoint.y); + const bendPoints = this.getBendPoints(startPoint, endPoint); + return { + x: x, + y: y, + width: width, + height: height, + bendPoints: bendPoints + }; + } + ConnectorAlgorithm.prototype.createBendLineConnector = function (startPoint, endPoint) { + const shape = this.parentNode.getShape(false); + shape.height = 0; + const info = this.getBendConnectionInfo(startPoint, endPoint); + const connectorShape = this.getTemplateConnectorLine(); + + connectorShape.x = info.x; + connectorShape.y = info.y; + connectorShape.width = info.width; + connectorShape.height = info.height; + + shape.connectorShape = connectorShape; + + const prSet = this.parentNode.getPrSet(); + if (!prSet.getPresStyleLbl()) { + prSet.setPresStyleLbl("parChTrans1D2"); + } + + const bendPoints = info.bendPoints; + const localEndPoint = new CCoordPoint(endPoint.x - connectorShape.x, endPoint.y - connectorShape.y); + const localStartPoint = new CCoordPoint(startPoint.x - connectorShape.x, startPoint.y - connectorShape.y); + if (bendPoints) { + connectorShape.customGeom.push([0]); + connectorShape.customGeom.push([1, localStartPoint.x * 36000, localStartPoint.y * 36000]); + for (let i = 0; i < bendPoints.length; i++) { + const bendPoint = bendPoints[i]; + const localBendPoint = new CCoordPoint(bendPoint.x - connectorShape.x, bendPoint.y - connectorShape.y); + connectorShape.customGeom.push([2, localBendPoint.x * 36000, localBendPoint.y * 36000]); + } + connectorShape.customGeom.push([2, localEndPoint.x * 36000, localEndPoint.y * 36000]); + + } else { + connectorShape.customGeom.push([0]); + connectorShape.customGeom.push([1, localStartPoint.x * 36000, localStartPoint.y * 36000]); + connectorShape.customGeom.push([2, localEndPoint.x * 36000, localEndPoint.y * 36000]); + } + }; + ConnectorAlgorithm.prototype.createCurveLineConnector = function (startPoint, endPoint) { + const centerPoint = this.calcValues.radiusCenterPoint; + if (centerPoint) { + const shape = this.parentNode.getShape(); + const prSet = this.parentNode.getPrSet(); + if (!prSet.getPresStyleLbl()) { + prSet.setPresStyleLbl("sibTrans1D1"); + } + const startVector = centerPoint.getVector(startPoint); + const endVector = centerPoint.getVector(endPoint); + + const radius = startVector.getDistance(); + const side = radius * 2; + + const isClockwise = this.isClockwise(); + const swAngle = isClockwise ? startVector.getAngleBetween(endVector) : -startVector.getAngleBetween(endVector, true); + + const connectorShape = this.getTemplateConnectorLine(); + connectorShape.width = side; + connectorShape.height = side; + connectorShape.x = centerPoint.x - radius; + connectorShape.y = centerPoint.y - radius; + + shape.connectorShape = connectorShape; + + + connectorShape.customGeom.push([0]); + connectorShape.customGeom.push([1, (startPoint.x - connectorShape.x) * 36000, (startPoint.y - connectorShape.y) * 36000]); + const startAngle = startVector.getAngle(); + connectorShape.customGeom.push([3, radius * 36000, radius * 36000, startAngle * radToDeg * 60000, swAngle * radToDeg * 60000]); + } + }; + ConnectorAlgorithm.prototype.createStraightLineConnector = function (startPoint, endPoint) { + const shape = this.parentNode.shape; + shape.height = 0; + const info = this.getStraightConnectionInfo(startPoint, endPoint); + const connectorShape = this.getTemplateConnectorLine(); + + connectorShape.x = info.x; + connectorShape.y = info.y; + connectorShape.rot = info.rot; + + shape.connectorShape = connectorShape; + + const prSet = this.parentNode.getPrSet(); + if (!prSet.getPresStyleLbl()) { + prSet.setPresStyleLbl("parChTrans1D2"); + } + + connectorShape.height = info.height; + connectorShape.width = info.width; + connectorShape.x += info.offX; + connectorShape.y += info.offY; + + connectorShape.customGeom.push([0]); + connectorShape.customGeom.push([1, 0, 0]); + connectorShape.customGeom.push([2, connectorShape.width * 36000, 0]); + connectorShape.customGeom.push([6]); + }; + ConnectorAlgorithm.prototype.getTemplateConnectorLine = function () { + const shape = this.parentNode.shape; + const connectorShape = new ShadowShape(); + connectorShape.shape = shape.shape; + + connectorShape.type = AscFormat.LayoutShapeType_outputShapeType_conn; + connectorShape.cleanParams = {}; + connectorShape.cleanParams.width = shape.cleanParams.width; + connectorShape.cleanParams.height = shape.cleanParams.height; + connectorShape.cleanParams.x = shape.cleanParams.x; + connectorShape.cleanParams.y = shape.cleanParams.y; + connectorShape.node = this.parentNode; + if (this.params[AscFormat.Param_type_endSty] === AscFormat.ParameterVal_arrowheadStyle_arr) { + const endArrow = new AscFormat.EndArrow(); + endArrow.type = AscFormat.LineEndType.Arrow; + connectorShape.tailLnArrow = endArrow; + } + if (this.params[AscFormat.Param_type_begSty] === AscFormat.ParameterVal_arrowheadStyle_arr) { + const endArrow = new AscFormat.EndArrow(); + endArrow.type = AscFormat.LineEndType.Arrow; + connectorShape.headLnArrow = endArrow; + } + return connectorShape; + } + + function SpaceAlgorithm() { + BaseAlgorithm.call(this); + } + AscFormat.InitClassWithoutType(SpaceAlgorithm, BaseAlgorithm); + + SpaceAlgorithm.prototype.applyTextSettings = function (editorShape) { + const node = this.parentNode.node; + const textNodes = node.getTextNodes(); + + const textNode = textNodes.textNode; + if (textNode && textNodes.contentNode === this.parentNode) { + textNodes.textNode.algorithm.applyTextSettings(editorShape, this.parentNode.getShape()); + } + }; + SpaceAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficients) { + this.createShadowShape(isCalculateScaleCoefficients); + if (!isCalculateScaleCoefficients) { + this.applyPostAlgorithmSettings(smartartAlgorithm); + } + } + SpaceAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(false, isCalculateScaleCoefficients); + }; + function TextAlgorithm() { + BaseAlgorithm.call(this); + } + + AscFormat.InitClassWithoutType(TextAlgorithm, BaseAlgorithm); + TextAlgorithm.prototype.initParams = function (params) { + BaseAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_parTxLTRAlign] === undefined) { + this.params[AscFormat.Param_type_parTxLTRAlign] = AscFormat.ParameterVal_horizontalAlignment_ctr; + } + if (this.params[AscFormat.Param_type_parTxRTLAlign] === undefined) { + this.params[AscFormat.Param_type_parTxRTLAlign] = AscFormat.ParameterVal_horizontalAlignment_ctr; + } + if (this.params[AscFormat.Param_type_shpTxLTRAlignCh] === undefined) { + this.params[AscFormat.Param_type_shpTxLTRAlignCh] = AscFormat.ParameterVal_horizontalAlignment_l; + } + if (this.params[AscFormat.Param_type_shpTxRTLAlignCh] === undefined) { + this.params[AscFormat.Param_type_shpTxRTLAlignCh] = AscFormat.ParameterVal_horizontalAlignment_r; + } + if (this.params[AscFormat.Param_type_txAnchorVert] === undefined) { + this.params[AscFormat.Param_type_txAnchorVert] = AscFormat.ParameterVal_textAnchorVertical_mid; + } + if (this.params[AscFormat.Param_type_txAnchorVertCh] === undefined) { + this.params[AscFormat.Param_type_txAnchorVertCh] = AscFormat.ParameterVal_textAnchorVertical_t; + } + if (this.params[AscFormat.Param_type_autoTxRot] === undefined) { + this.params[AscFormat.Param_type_autoTxRot] = AscFormat.ParameterVal_autoTextRotation_upr; + } + if (this.params[AscFormat.Param_type_stBulletLvl] === undefined) { + this.params[AscFormat.Param_type_stBulletLvl] = 2; + } + }; + TextAlgorithm.prototype.applyContentFilling = function (editorShape) { + const shapeSmartArtInfo = editorShape.getSmartArtInfo(); + const contentNodes = shapeSmartArtInfo.contentPoint; + if (!contentNodes.length) { + return; + } + + + const stBulletLvl = this.params[AscFormat.Param_type_stBulletLvl]; + editorShape.createTextBody(); + const shapeContent = editorShape.txBody.content; + + const arrParagraphs = []; + let nBulletLevel = 0; + + const startDepth = contentNodes[0].depth; + for (let i = 0; i < contentNodes.length; i += 1) { + const contentNode = contentNodes[i]; + const mainPoint = contentNode.point; + const deltaDepth = contentNode.depth - startDepth; + if (contentNode.point) { + const dataContent = mainPoint.t && mainPoint.t.content; + if (dataContent) { + const firstParagraph = dataContent.Content[0]; + if (firstParagraph) { + const copyParagraph = firstParagraph.Copy(shapeContent, shapeContent.DrawingDocument); + if (stBulletLvl === 1 || stBulletLvl === 2 && deltaDepth > 0) { + const oBullet = AscFormat.fGetPresentationBulletByNumInfo({Type: 0, SubType: 0}); + oBullet.bulletTypeface.type = AscFormat.BULLET_TYPE_TYPEFACE_TX; + + copyParagraph.Add_PresentationNumbering(oBullet); + copyParagraph.Set_PresentationLevel(nBulletLevel); + nBulletLevel = Math.min(nBulletLevel + 1, 8); + copyParagraph.Set_Ind({FirstLine: -7.9}, false); + } + copyParagraph.Set_Spacing({Line : 0.9, LineRule : Asc.linerule_Auto}, false); + arrParagraphs.push(copyParagraph); + for (let j = 1; j < dataContent.Content.length; j += 1) { + const paragraph = dataContent.Content[j]; + const copyCurrentParagraph = paragraph.Copy(); + if (copyParagraph.Pr.Ind) { + copyCurrentParagraph.Set_Ind({Left: copyParagraph.Pr.Ind.Left}, false); + + } + if (copyParagraph.Pr.Spacing) { + copyCurrentParagraph.Set_Spacing(copyParagraph.Pr.Spacing, false); + } + arrParagraphs.push(copyCurrentParagraph); + } + } + } + } + } + if (arrParagraphs.length) { + shapeContent.Internal_Content_RemoveAll(); + for (let i = 0; i < arrParagraphs.length; i++) { + shapeContent.AddToContent(shapeContent.Content.length, arrParagraphs[i]); + } + } + }; + TextAlgorithm.prototype.applyDataBodyPr = function (editorShape) { + const node = this.parentNode; + const contentNode = node.contentNodes[0]; + const bodyPr = contentNode.point.t && contentNode.point.t.bodyPr; + if (bodyPr) { + const copyBodyPr = bodyPr.createDuplicate(); + editorShape.txBody.setBodyPr(copyBodyPr); + } + }; + TextAlgorithm.prototype.applyTextSettings = function (editorShape, contentShadowShape) { + if (!contentShadowShape && this.parentNode.isTxXfrm()) { + return; + } + const smartArtInfo = editorShape.getSmartArtInfo(); + this.applyFontRelations(editorShape); + this.applyContentFilling(editorShape); + if (smartArtInfo.contentPoint.length) { + this.applyTxXfrmSettings(editorShape, contentShadowShape); + this.applyDataBodyPr(editorShape); + this.applyTextMargins(editorShape); + this.applyHorizontalAlignment(editorShape); + this.applyVerticalAlignment(editorShape); + if (!editorShape.isCanFitFontSize()) { + editorShape.applyCustTSettings(); + } + } + }; + TextAlgorithm.prototype.getTextRotate = function () { + const shadowShape = this.parentNode.getShape(); + const shapeRotate = shadowShape.rot; + switch (this.params[AscFormat.Param_type_autoTxRot]) { + case AscFormat.ParameterVal_autoTextRotation_none: + return 0; + case AscFormat.ParameterVal_autoTextRotation_grav: + if ((shapeRotate > Math.PI / 2) && (shapeRotate < Math.PI * 3 / 2)) { + return Math.PI; + } + return 0; + case AscFormat.ParameterVal_autoTextRotation_upr: + default: + let rot = 0; + if (shapeRotate > Math.PI / 4) { + rot -= Math.PI / 2; + } + if (shapeRotate >= Math.PI * 3 / 4) { + rot -= Math.PI / 2; + } + if (shapeRotate > Math.PI * 5 / 4) { + rot -= Math.PI / 2; + } + if (shapeRotate >= Math.PI * 7 / 4) { + rot -= Math.PI / 2; + } + return AscFormat.normalizeRotate(rot); + } + }; + TextAlgorithm.prototype.applyTxXfrmSettings = function (editorShape, contentShadowShape) { + const shadowShape = this.parentNode.getShape(); + const txXfrm = new AscFormat.CXfrm(); + const autoRot = this.getTextRotate(); + let geometry = editorShape.spPr.geometry; + if (contentShadowShape) { + geometry = AscFormat.ExecuteNoHistory(function(){return AscFormat.CreateGeometry(shadowShape.getEditorShapeType());}, this, []); + shadowShape.applyAdjLst(geometry); + } + geometry.Recalculate(shadowShape.width, shadowShape.height); + const geometryRect = geometry.rect; + let extX; + let extY; + let offX; + let offY; + if (geometryRect) { + offX = geometryRect.l + shadowShape.x; + offY = geometryRect.t + shadowShape.y; + extX = geometryRect.r - geometryRect.l; + extY = geometryRect.b - geometryRect.t; + } else { + offX = shadowShape.x; + offY = shadowShape.y; + extX = shadowShape.width; + extY = shadowShape.height; + } + const shapeMatrix = shadowShape.getReverseMatrix(); + const cx = shapeMatrix.TransformPointX(offX + extX / 2, offY + extY / 2); + const cy = shapeMatrix.TransformPointY(offX + extX / 2, offY + extY / 2); + offX = cx - extX / 2; + offY = cy - extY / 2; + + const newSizes = AscFormat.fGetMaxInscribedRectangle(extX, extY, autoRot); + offX += (extX - newSizes.width) / 2; + offY += (extY - newSizes.height) / 2; + txXfrm.setOffX(offX); + txXfrm.setOffY(offY); + txXfrm.setExtX(newSizes.width); + txXfrm.setExtY(newSizes.height); + const contentShadowShapeRot = contentShadowShape ? (shadowShape.rot - contentShadowShape.rot) : 0; + txXfrm.setRot(AscFormat.normalizeRotate(autoRot + contentShadowShapeRot)); + + editorShape.setTxXfrm(txXfrm); + }; + TextAlgorithm.prototype.initDefaultMarginScales = function () { + const node = this.parentNode; + + if (node.textConstraints[AscFormat.Constr_type_bMarg] === undefined) { + const bMarg = node.getConstr(AscFormat.Constr_type_bMarg, true, true); + if (bMarg === undefined) { + node.textConstraints[AscFormat.Constr_type_bMarg] = 0.56; + } + } + if (node.textConstraints[AscFormat.Constr_type_tMarg] === undefined) { + const tMarg = node.getConstr(AscFormat.Constr_type_tMarg, true, true); + if (tMarg === undefined) { + node.textConstraints[AscFormat.Constr_type_tMarg] = 0.56; + } + } + + if (node.textConstraints[AscFormat.Constr_type_rMarg] === undefined) { + const rMarg = node.getConstr(AscFormat.Constr_type_rMarg, true, true); + if (rMarg === undefined) { + node.textConstraints[AscFormat.Constr_type_rMarg] = 0.56; + } + } + + if (node.textConstraints[AscFormat.Constr_type_lMarg] === undefined) { + const lMarg = node.getConstr(AscFormat.Constr_type_lMarg, true, true); + if (lMarg === undefined) { + node.textConstraints[AscFormat.Constr_type_lMarg] = 0.56; + } + } + }; + TextAlgorithm.prototype.applyFontRelations = function (editorShape) { + const node = this.parentNode; + this.initDefaultMarginScales(); + + const shapeSmartArtInfo = editorShape.getSmartArtInfo(); + shapeSmartArtInfo.textConstraintRelations = node.textConstraintRelations; + shapeSmartArtInfo.textConstraints = node.textConstraints; + shapeSmartArtInfo.params[AscFormat.Param_type_lnSpAfParP] = this.params[AscFormat.Param_type_lnSpAfParP]; + shapeSmartArtInfo.params[AscFormat.Param_type_lnSpAfChP] = this.params[AscFormat.Param_type_lnSpAfChP]; + }; + TextAlgorithm.prototype.applyTextMargins = function (editorShape) { + const node = this.parentNode; + const paddings = {}; + const isApplyInsets = node.contentNodes[0].point.isRecalculateInsets(); + if (isApplyInsets.Bottom && node.textConstraints[AscFormat.Constr_type_bMarg] === undefined) { + paddings.Bottom = node.getConstr(AscFormat.Constr_type_bMarg, true) * g_dKoef_pt_to_mm; + } + + if (isApplyInsets.Top && node.textConstraints[AscFormat.Constr_type_tMarg] === undefined) { + paddings.Top = node.getConstr(AscFormat.Constr_type_tMarg, true) * g_dKoef_pt_to_mm; + } + + if (isApplyInsets.Right && node.textConstraints[AscFormat.Constr_type_rMarg] === undefined) { + paddings.Right = node.getConstr(AscFormat.Constr_type_rMarg, true) * g_dKoef_pt_to_mm; + } + + if (isApplyInsets.Left && node.textConstraints[AscFormat.Constr_type_lMarg] === undefined) { + paddings.Left = node.getConstr(AscFormat.Constr_type_lMarg, true) * g_dKoef_pt_to_mm; + } + + editorShape.setPaddings(paddings, {bNotCopyToPoints: true}); + }; + function isParentWithChildren(nodes) { + if (nodes.length) { + const startDepth = nodes[0].depth; + for (let i = 1; i < nodes.length; i += 1) { + if (nodes[i].depth - startDepth > 0) { + return true; + } + } + } + + return false; + } + TextAlgorithm.prototype.applyVerticalAlignment = function (editorShape) { + const node = this.parentNode; + const bodyPr = editorShape.getBodyPr().createDuplicate(); + const stBulletLvl = this.params[AscFormat.Param_type_stBulletLvl]; + const firstNodeBodyPr = node.contentNodes[0].point.t.bodyPr; + if (firstNodeBodyPr && typeof firstNodeBodyPr.anchor === "number") { + bodyPr.setAnchor(firstNodeBodyPr.anchor); + } else if (isParentWithChildren(node.contentNodes) || stBulletLvl === 1) { + switch (this.params[AscFormat.Param_type_txAnchorVertCh]) { + case AscFormat.ParameterVal_textAnchorVertical_b: + bodyPr.setAnchor(AscFormat.VERTICAL_ANCHOR_TYPE_BOTTOM); + break; + case AscFormat.ParameterVal_textAnchorVertical_mid: + bodyPr.setAnchor(AscFormat.VERTICAL_ANCHOR_TYPE_CENTER); + break; + case AscFormat.ParameterVal_textAnchorVertical_t: + default: + bodyPr.setAnchor(AscFormat.VERTICAL_ANCHOR_TYPE_TOP); + break; + } + } else { + switch (this.params[AscFormat.Param_type_txAnchorVert]) { + case AscFormat.ParameterVal_textAnchorVertical_b: + bodyPr.setAnchor(AscFormat.VERTICAL_ANCHOR_TYPE_BOTTOM); + break; + case AscFormat.ParameterVal_textAnchorVertical_t: + bodyPr.setAnchor(AscFormat.VERTICAL_ANCHOR_TYPE_TOP); + break; + case AscFormat.ParameterVal_textAnchorVertical_mid: + default: + bodyPr.setAnchor(AscFormat.VERTICAL_ANCHOR_TYPE_CENTER); + break; + } + } + editorShape.txBody.setBodyPr(bodyPr); + }; + TextAlgorithm.prototype.getTextAlignment = function (paramType) { + switch (this.params[paramType]) { + case AscFormat.ParameterVal_horizontalAlignment_l: + return AscCommon.align_Left; + case AscFormat.ParameterVal_horizontalAlignment_r: + return AscCommon.align_Right; + case AscFormat.ParameterVal_horizontalAlignment_ctr: + default: + return AscCommon.align_Center; + } + }; + TextAlgorithm.prototype.applyHorizontalAlignment = function (editorShape) { + const drawingContent = editorShape.txBody.content; + const node = this.parentNode; + let paragraphLTRAlignment; + let paragraphRTLAlignment; + let isCtrHorzAlign; + const stBulletLvl = this.params[AscFormat.Param_type_stBulletLvl]; + if (isParentWithChildren(node.contentNodes) || stBulletLvl === 1) { + paragraphLTRAlignment = this.getTextAlignment(AscFormat.Param_type_shpTxLTRAlignCh); + paragraphRTLAlignment = this.getTextAlignment(AscFormat.Param_type_shpTxRTLAlignCh); + isCtrHorzAlign = !!this.params[AscFormat.Param_type_txAnchorHorzCh]; + } else { + paragraphLTRAlignment = this.getTextAlignment(AscFormat.Param_type_parTxLTRAlign); + paragraphRTLAlignment = this.getTextAlignment(AscFormat.Param_type_parTxRTLAlign); + isCtrHorzAlign = !!this.params[AscFormat.Param_type_txAnchorHorz]; + } + let skipSettingAlignment = false; + for (let i = 0; i < drawingContent.Content.length; i++) { + const item = drawingContent.Content[i]; + if (typeof item.Pr.Jc === "number") { + skipSettingAlignment = true; + break; + } + } + if (!skipSettingAlignment) { + for (let i = 0; i < drawingContent.Content.length; i++) { + const item = drawingContent.Content[i]; + item.SetApplyToAll(true); + if (item.isRtlDirection()) { + item.SetParagraphAlign(paragraphRTLAlignment); + } else { + item.SetParagraphAlign(paragraphLTRAlignment); + } + item.SetApplyToAll(false); + } + } + + const bodyPr = editorShape.getBodyPr(); + const firstNodeBodyPr = node.contentNodes[0].point.t.bodyPr; + if (firstNodeBodyPr && typeof firstNodeBodyPr.anchorCtr === "boolean") { + const copyBodyPr = bodyPr.createDuplicate(); + bodyPr.anchorCtr = firstNodeBodyPr.anchorCtr; + editorShape.txBody.setBodyPr(copyBodyPr); + } else if (bodyPr.anchorCtr !== isCtrHorzAlign) { + const copyBodyPr = bodyPr.createDuplicate(); + bodyPr.anchorCtr = isCtrHorzAlign; + editorShape.txBody.setBodyPr(copyBodyPr); + } + }; + + TextAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateScaleCoefficient) { + this.createShadowShape(isCalculateScaleCoefficient); + if (!isCalculateScaleCoefficient) { + this.applyPostAlgorithmSettings(smartartAlgorithm); + } + }; + TextAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(false, isCalculateScaleCoefficients); + }; + + function CompositeAlgorithm() { + BaseAlgorithm.call(this); + } + AscFormat.InitClassWithoutType(CompositeAlgorithm, BaseAlgorithm); + CompositeAlgorithm.prototype.initParams = function (params) { + BaseAlgorithm.prototype.initParams.call(this, params); + if (this.params[AscFormat.Param_type_horzAlign] === undefined) { + this.params[AscFormat.Param_type_horzAlign] = AscFormat.ParameterVal_horizontalAlignment_ctr; + } + if (this.params[AscFormat.Param_type_vertAlign] === undefined) { + this.params[AscFormat.Param_type_vertAlign] = AscFormat.ParameterVal_verticalAlignment_mid; + } + }; + + CompositeAlgorithm.prototype.createShadowShape = function (isCalculateScaleCoefficients) { + return this.parentNode.createShadowShape(true, isCalculateScaleCoefficients); + }; + CompositeAlgorithm.prototype.calculateShapePositions = function (smartartAlgorithm, isCalculateCoefficients) { + this.applyAlgorithmAligns(isCalculateCoefficients); + if (!isCalculateCoefficients) { + this.setConnections(); + } + this.createShadowShape(isCalculateCoefficients); + }; + +function PresNode(presPoint, contentNode) { + this.parent = null; + this.presPoint = presPoint || null; + this.childs = []; + this.algorithm = null; + this.node = contentNode; + this.contentNodes = []; + this.layoutInfo = { + constrLst: null, + ruleLst: null, + shape: null + }; + + this.shape = null; + this.moveWithNodes = []; + + this.isHideLastTrans = true; + this.connectionDistanceResolver = null; + this.bounds = { + constraints: null + }; + this.namedNodes = null; + this.moveWith = null; + this._isTxXfrm = null; + this.textConstraints = {}; + this.textConstraintRelations = []; + + this.cleanRules(); + this.cleanConstraints(); + this.cleanScales(); + this.cleanPosition(); +} + PresNode.prototype.cleanPosition = function () { + this.position = null; + }; +PresNode.prototype.cleanScales = function () { + this.moveScaleCoefficients = { + width: 1, + height: 1 + }; + this.moveRot = 0; + this.parentScale = {}; +}; +PresNode.prototype.setSizesScale = function (widthCoefficient, heightCoefficient) { + const aspectRatio = this.getAspectRatio(); + if (aspectRatio) { + const commonCoefficient = Math.min(widthCoefficient, heightCoefficient); + this.setWidthScale(commonCoefficient); + this.setHeightScale(commonCoefficient); + } else { + this.setWidthScale(widthCoefficient); + this.setHeightScale(heightCoefficient); + } +}; + PresNode.prototype.initPresShape = function () { + if (!this.layoutInfo.shape) { + this.layoutInfo.shape = new AscFormat.SShape(); + } + } + PresNode.prototype.getParentScale = function (type) { + return this.parentScale[type] === undefined ? 1 : this.parentScale[type]; + } + PresNode.prototype.setParentScale = function (type, value) { + if (value < 1 && (this.parentScale[type] === undefined || this.parentScale[type] > value)) { + this.parentScale[type] = value; + } + } +PresNode.prototype.getDefaultConnectionNode = function() { + if (this.childs.length) { + return this.childs[0]; + } + return this; + }; + PresNode.prototype.getShape = function (isCalculateCoefficients) { + if (isCalculateCoefficients) { + if (!this.position) { + this.position = new Position(this); + } + return this.position; + } + if (!this.shape) { + this.shape = new ShadowShape(this); + } + return this.shape; + }; + PresNode.prototype.getRelationConstr = function (type) { + return this.relations[type]; + } + PresNode.prototype.setRelationConstr = function (refNode, constr) { + this.relations[constr.type] = {constr: constr, ref: refNode}; + }; + PresNode.prototype.setWidthScale = function (pr) { + const relation = this.getRelationConstr(AscFormat.Constr_type_w); + if (relation) { + const relationConstr = relation.constr; + const widthRef = relation.ref; + const summaryWidthScale = this.getSummaryWidthScale(); + const newCoef = pr / summaryWidthScale; + if (widthRef.getPresName() === this.getPresName() && + relationConstr.refType === AscFormat.Constr_type_h) { + this.setParentScale(AscFormat.Constr_type_h, newCoef); + } else { + this.setParentScale(AscFormat.Constr_type_w, newCoef); + } + } + } + PresNode.prototype.getSummaryScale = function (scaleType) { + let startCoefficient = 1; + const startRelation = this.getRelationConstr(scaleType); + if (!startRelation) { + return startCoefficient; + } + let refNode = startRelation.ref; + let relationConstr = startRelation.constr; + const mapRelations = {}; + mapRelations[scaleType] = {}; + if (refNode && refNode.getPresName() === this.getPresName() && relationConstr.type !== relationConstr.refType) { + mapRelations[scaleType][this.getPresName()] = true; + } + + while (relationConstr && refNode) { + const refType = relationConstr.refType; + if (!mapRelations[refType]) { + mapRelations[refType] = {}; + } + const refPresName = refNode.getPresName(); + if (mapRelations[refType][refPresName]) { + break; + } + startCoefficient *= refNode.getParentScale(refType); + mapRelations[refType][refPresName] = true; + const refRelation = refNode.getRelationConstr(refType); + if (refRelation) { + relationConstr = refRelation.constr; + refNode = refRelation.ref; + } else { + break; + } + } + return startCoefficient; + } + + PresNode.prototype.getSummaryHeightScale = function () { + return this.getSummaryScale(AscFormat.Constr_type_h); + }; + + PresNode.prototype.getSummaryWidthScale = function () { + return this.getSummaryScale(AscFormat.Constr_type_w); + }; + PresNode.prototype.setHeightScale = function (pr) { + const relation = this.getRelationConstr(AscFormat.Constr_type_h); + if (relation) { + const relationConstr = relation.constr; + const heightRef = relation.ref; + const isSelfRelation = heightRef.getPresName() === this.getPresName(); + const summaryHeight = this.getSummaryHeightScale(); + const newCoef = pr / summaryHeight; + if (isSelfRelation && + relationConstr.refType === AscFormat.Constr_type_w) { + this.setParentScale(AscFormat.Constr_type_w, newCoef); + } else { + this.setParentScale(AscFormat.Constr_type_h, newCoef); + } + } + } +PresNode.prototype.getNamedNode = function (name) { + if (name === undefined || name === this.getPresName()) { + return this; + } + if (this.namedNodes === null) { + this.namedNodes = {}; + const childs = this.childs; + for (let i = 0; i < childs.length; i++) { + const child = childs[i]; + this.namedNodes[child.getPresName()] = child; + } + } + return this.namedNodes[name]; +}; + PresNode.prototype.isRealShapeType = function () { + return !(this.algorithm instanceof ConnectorAlgorithm || (this.algorithm instanceof SpaceAlgorithm && + (this.layoutInfo.shape.type === AscFormat.LayoutShapeType_outputShapeType_conn || + this.layoutInfo.shape.type === AscFormat.LayoutShapeType_outputShapeType_none))); + } + PresNode.prototype.isSkipShape = function (isCalculateScaleCoefficient, isCycleAlgorithm) { + let shape = this.getShape(isCalculateScaleCoefficient); + if (shape.connectorShape) { + shape = shape.connectorShape; + } + return shape.width <= 0 && shape.height <= 0 || + (this.algorithm instanceof ConnectorAlgorithm && !(isCycleAlgorithm && this.algorithm.isCurveShape())) || + this.isTxXfrm() || + !this.algorithm || + (this.algorithm instanceof SpaceAlgorithm && + !(this.parent && this.parent.algorithm instanceof CompositeAlgorithm) && + (this.layoutInfo.shape.hideGeom || !this.isRealShapeType())); + }; + PresNode.prototype.isSibNode = function () { + return this.node.isSibNode(); + }; + PresNode.prototype.isParNode = function () { + return this.node.isParNode(); + }; + PresNode.prototype.isContentNode = function () { + return this.node.isContentNode(); + }; + PresNode.prototype.getDescendantFilteredShapes = function () { + const nodes = [this]; + const shapes = []; + while (nodes.length) { + const node = nodes.pop(); + shapes.push(node.getShape()); + + for (let i = node.childs.length - 1; i >= 0; i -= 1) { + nodes.push(node.childs[i]); + } + } + return shapes.filter(function (shadowShape) { + if (shadowShape.height === 0 && shadowShape.width === 0 && shadowShape.node.algorithm instanceof TextAlgorithm) { + return false; + } + if (shadowShape.shape.hideGeom && shadowShape.shape.type === AscFormat.LayoutShapeType_shapeType_rect && shadowShape.node.algorithm instanceof TextAlgorithm && !shadowShape.node.isTxXfrm()) { + return true; + } + return !shadowShape.shape.hideGeom && !shadowShape.node.isTxXfrm() && shadowShape.shape.type !== AscFormat.LayoutShapeType_outputShapeType_none; + }); + } + PresNode.prototype.getShadowShapesByZOrder = function () { + const shapes = this.getDescendantFilteredShapes(); + const sortedShapes = shapes.slice(); + let sortedIndex = 0; + for (let i = 0; i < shapes.length; i++) { + const shape = shapes[i]; + const zOrderOff = shape.shape.zOrderOff; + if (zOrderOff === 0) { + continue; + } + while (sortedShapes[sortedIndex] !== shape) { + sortedIndex += 1; + } + const sortedShape = sortedShapes[sortedIndex]; + sortedShapes.splice(sortedIndex, 1); + const insertIndex = Math.min(Math.max(0, sortedIndex + zOrderOff), sortedShapes.length); + sortedShapes.splice(insertIndex, 0, sortedShape); + } + + return sortedShapes; + }; + PresNode.prototype.getChildIndex = function (child) { + for (let i = 0; i < this.childs.length; i++) { + if (this.childs[i] === child) { + return i; + } + } + } + PresNode.prototype.getNeighbor = function () { + const parent = this.parent; + const index = parent.getChildIndex(this); + for (let i = index + 1; i < parent.childs.length; i += 1) { + const child = parent.childs[i]; + const shape = child.shape; + if (child.isRealShapeType()) { + return child; + } + } + + for (let i = index - 1; i >= 0; i -= 1) { + const child = parent.childs[i]; + const shape = child.shape; + if (child.isRealShapeType()) { + return child; + } + } + + return this; + }; + PresNode.prototype.moveTo = function (deltaX, deltaY, isCalcScaleCoefficient, skipMoveWithNodes) { + deltaX = deltaX || 0; + deltaY = deltaY || 0; + this.forEachDesOrSelf(function (node) { + const shape = node.getShape(isCalcScaleCoefficient); + if (shape) { + shape.x += deltaX; + shape.y += deltaY; + } + }); + if (!skipMoveWithNodes) { + for (let i = 0; i < this.moveWithNodes.length; i++) { + const moveNode = this.moveWithNodes[i]; + const moveShape = moveNode.getShape(isCalcScaleCoefficient); + if (moveShape) { + moveShape.x += deltaX; + moveShape.y += deltaY; + } + } + const textNodes = this.contentNodes[0] && this.contentNodes[0].getTextNodes(); + if (textNodes && textNodes.contentNode === this && textNodes.textNode) { + const moveShape = textNodes.textNode.getShape(isCalcScaleCoefficient); + if (moveShape) { + moveShape.x += deltaX; + moveShape.y += deltaY; + } + } + } + this.algorithm.moveToHierarchyOffsets(deltaX, deltaY); + }; + + PresNode.prototype.forEachChild = function (callback) { + for (let i = 0; i < this.childs.length; i += 1) { + callback(this.childs[i]); + } + }; + + PresNode.prototype.forEachDes = function (callback) { + const elements = [this]; + while (elements.length) { + const element = elements.pop(); + for (let i = 0; i < element.childs.length; i++) { + elements.push(element.childs[i]); + callback(element.childs[i]); + } + } + }; + + PresNode.prototype.forEachDesOrSelf = function (callback) { + callback(this); + this.forEachDes(callback); + }; + PresNode.prototype.getAspectRatio = function () { + if (this.algorithm) { + return this.algorithm.getAspectRatio(); + } + return 0; + } + PresNode.prototype.getPresStyleLbl = function () { + return this.presPoint.getPresStyleLbl(); + } + PresNode.prototype.addMoveWithNode = function (node) { + this.moveWithNodes.push(node); + } + PresNode.prototype.checkMoveWith = function () { + for (let i = 0; i < this.childs.length; i += 1) { + const node = this.childs[i]; + if (node.moveWith) { + const moveNode = this.getNamedNode(node.moveWith); + if (moveNode) { + moveNode.addMoveWithNode(node); + } + } + } + }; +PresNode.prototype.addChild = function (ch, pos) { + if (!AscFormat.isRealNumber(pos)) { + pos = this.childs.length; + } + this.childs.splice(pos, 0, ch); + ch.parent = this; +}; + PresNode.prototype.removeChilds = function (pos, count) { + this.childs.splice(pos, count); + }; + PresNode.prototype.getPresName = function () { + return this.presPoint.getPresName(); + }; + PresNode.prototype.getPrSet = function () { + return this.presPoint.getPrSet(); + }; + + PresNode.prototype.setShape = function (shape) { + this.shape = shape; + }; + + PresNode.prototype.getNodesByAxis = function (nodes, constrType) { + switch (constrType) { + case AscFormat.Constr_for_self: { + nodes.push(this); + break; + } + case AscFormat.Constr_for_ch: { + for (let i = 0; i < this.childs.length; i++) { + nodes.push(this.childs[i]); + } + break; + } + case AscFormat.Constr_for_des: { + const elements = [this]; + while (elements.length) { + const element = elements.pop(); + for (let i = 0; i < element.childs.length; i++) { + const child = element.childs[i]; + nodes.push(child); + elements.push(child); + } + } + break; + } + default: { + break; + } + } + }; + PresNode.prototype.setRules = function (smartartAlgorithm) { + const ruleLst = this.layoutInfo.ruleLst; + if (!ruleLst) { + return; + } + let cacheFor = {}; + for (let i = 0; i < ruleLst.length; i++) { + const rule = ruleLst[i]; + if (!cacheFor[rule.for]) { + cacheFor[rule.for] = []; + this.getNodesByAxis(cacheFor[rule.for], rule.for); + } + const nodes = cacheFor[rule.for]; + for (let j = 0; j < nodes.length; j++) { + nodes[j].setRule(rule, smartartAlgorithm); + } + } + }; + PresNode.prototype.getFactRule = function (constr) { + const ruleFactor = this.factRules[constr.type]; + if (ruleFactor === undefined || ruleFactor > constr.fact) { + return constr.fact; + } + return ruleFactor; + }; + PresNode.prototype.cleanRules = function () { + this.factRules = {}; + this.valRules = {}; + }; + PresNode.prototype.cleanConstraints = function () { + this.relations = {}; + this.equationRelations = { + adapt: {}, + nonAdapt: {} + }; + + this.equationRelations.nonAdapt[AscFormat.Constr_op_equ] = {}; + this.equationRelations.nonAdapt[AscFormat.Constr_op_gte] = {}; + this.equationRelations.nonAdapt[AscFormat.Constr_op_lte] = {}; + this.equationRelations.nonAdapt[AscFormat.Constr_op_none] = {}; + this.equationRelations.adapt[AscFormat.Constr_op_equ] = {}; + this.equationRelations.adapt[AscFormat.Constr_op_gte] = {}; + this.equationRelations.adapt[AscFormat.Constr_op_lte] = {}; + this.equationRelations.adapt[AscFormat.Constr_op_none] = {}; + this.adaptConstr = {}; + this.constr = {}; + }; + PresNode.prototype.setRule = function (rule, smartartAlgorithm) { + const node = this.getConstraintNode(rule.forName, rule.ptType.getVal()); + if (node) { + if (AscFormat.isRealNumber(rule.fact)) { + if (rule.val !== rule.val) { + node.factRules[rule.type] = rule.fact; + smartartAlgorithm.setFactRuleState(factRuleState.enabled); + } + } + if (typeof rule.val === "number" && rule.val === rule.val) { + switch (rule.type) { + case AscFormat.Constr_type_diam: { + this.valRules[rule.type] = rule.val; + break; + } + case AscFormat.Constr_type_primFontSz: + case AscFormat.Constr_type_secFontSz: { + if (!this.textConstraints[rule.type]) { + this.textConstraints[rule.type] = new TextConstr(); + } + const textConstr = this.textConstraints[rule.type]; + if (!textConstr.rule || rule.val < textConstr.rule.val) { + textConstr.rule = rule; + } + break; + } + default: + break; + } + } + } + }; + function TextConstr() { + this.op = {}; + this.op[AscFormat.Constr_op_none] = []; + this.op[AscFormat.Constr_op_equ] = []; + this.op[AscFormat.Constr_op_gte] = []; + this.op[AscFormat.Constr_op_lte] = []; + this.rule = null; + } + TextConstr.prototype.getSecondaryFontSizeCoefficient = function () { + const info = this.op[AscFormat.Constr_op_none]; + + for (let i = 0; i < info.length; i += 1) { + const constr = info[i].constr; + if (constr.type === AscFormat.Constr_type_primFontSz && constr.refType === AscFormat.Constr_type_secFontSz) { + return 1 / constr.fact; + } else if (constr.refType === AscFormat.Constr_type_primFontSz && constr.type === AscFormat.Constr_type_secFontSz) { + return constr.fact; + } + } + return null; + }; + TextConstr.prototype.collectShapeSmartArtInfo = function (opType, array, mapShapes, collectRefNodes) { + const information = this.op[opType]; + for (let i = 0; i < information.length; i++) { + const info = information[i]; + const nodes = collectRefNodes ? info.refNodes : info.nodes; + for (let j = 0; j < nodes.length; j++) { + const node = nodes[j]; + const editorShape = node.contentNodes[0] && node.contentNodes[0].getContentNode().getShape().editorShape; + if (editorShape && !mapShapes[editorShape.GetId()]) { + array.push(editorShape.getSmartArtInfo()); + } + } + } + }; + + TextConstr.prototype.getMaxFontSizeFromInfo = function (opType, isUseChildrenCoefficient, isReturnFirstFindFontSize) { + const informations = this.op[opType]; + let fontSize = 65; + //todo + for (let i = 0; i < informations.length; i += 1) { + const info = informations[i]; + const constr = info.constr; + if (constr) { + if (constr.refType === AscFormat.Constr_type_none && constr.op !== AscFormat.Constr_op_equ) { + if (constr.val < fontSize) { + fontSize = constr.val; + } + if (isReturnFirstFindFontSize) { + break; + } + } else if (!(constr.for === constr.refFor && constr.forName === constr.refForName && constr.ptType.getVal() === constr.refPtType.getVal())) { + const refNodes = info.refNodes; + for (let i = 0; i < refNodes.length; i += 1) { + const refNode = refNodes[i]; + const editorShape = refNode.contentNodes[0] && refNode.contentNodes[0].getContentNode().getShape().editorShape; + if (editorShape) { + const shapeInfo = editorShape.getSmartArtInfo(); + const shapeFontSize = shapeInfo.getRelFitFontSize(isUseChildrenCoefficient); + if (shapeFontSize !== null && shapeFontSize < fontSize) { + fontSize = shapeFontSize; + } + } + } + if (isReturnFirstFindFontSize) { + break; + } + } + } + } + + return fontSize; + }; + TextConstr.prototype.getMaxFontSize = function (isUseChildrenCoefficient) { + const noneFontSize = this.getMaxFontSizeFromInfo(AscFormat.Constr_op_none, isUseChildrenCoefficient, true); + const lteFontSize = this.getMaxFontSizeFromInfo(AscFormat.Constr_op_lte, isUseChildrenCoefficient); + return Math.min(noneFontSize, lteFontSize); + }; + TextConstr.prototype.getMinFontSize = function () { + if (this.rule) { + return this.rule.val; + } + return 5; + }; + function checkFontSizeConstraints(constr, refNodes, nodes) { + const truthRefNodes = []; + const truthNodes = []; + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i].getConstraintNode(constr.forName, constr.ptType.getVal()); + if (node) { + truthNodes.push(node); + } + } + for (let i = 0; i < refNodes.length; i++) { + const node = refNodes[i].getConstraintNode(constr.refForName, constr.refPtType.getVal()); + if (node) { + truthRefNodes.push(node); + } + } + for (let i = 0; i < truthNodes.length; i += 1) { + const node = truthNodes[i]; + if (!node.textConstraints[constr.type]) { + node.textConstraints[constr.type] = new TextConstr(); + } + const calcConstr = node.textConstraints[constr.type]; + calcConstr.op[constr.op].push({constr: constr, refNodes: truthRefNodes, nodes: truthNodes}); + } + if (constr.op === AscFormat.Constr_op_equ) { + for (let i = 0; i < truthRefNodes.length; i++) { + const node = truthRefNodes[i]; + if (!node.textConstraints[constr.type]) { + node.textConstraints[constr.type] = new TextConstr(); + } + const calcConstr = node.textConstraints[constr.type]; + calcConstr.op[constr.op].push({constr: constr, refNodes: truthNodes, nodes: truthRefNodes}); + } + } + if (constr.op === AscFormat.Constr_op_lte && !(constr.for === constr.refFor && constr.forName === constr.refForName && constr.ptType.getVal() === constr.refPtType.getVal()) && constr.refType !== AscFormat.Constr_type_none) { + for (let i = 0; i < truthRefNodes.length; i += 1) { + truthRefNodes[i].textConstraintRelations.push(truthNodes); + } + } + } + PresNode.prototype.setConstraints = function (isAdapt, smartartAlgorithm) { + const constrLst = this.layoutInfo.constrLst; + if (!constrLst) { + return; + } + const valueCache = {}; + const cacheFor = {}; + for (let i = 0; i < constrLst.length; i++) { + const constr = constrLst[i]; + if (!cacheFor[constr.for]) { + cacheFor[constr.for] = []; + this.getNodesByAxis(cacheFor[constr.for], constr.for); + } + const nodes = cacheFor[constr.for]; + + if (!cacheFor[constr.refFor]) { + cacheFor[constr.refFor] = []; + this.getNodesByAxis(cacheFor[constr.refFor], constr.refFor); + } + const refNodes = cacheFor[constr.refFor]; + + for (let j = 0; j < refNodes.length; j++) { + const calcValue = refNodes[j].getCalcRefConstr(constr, isAdapt, valueCache); + if (AscFormat.isRealNumber(calcValue)) { + for (let k = 0; k < nodes.length; k++) { + nodes[k].setConstraintByNode(constr, refNodes[j], calcValue, isAdapt); + } + break; + } + } + if (isAdapt) { + switch (constr.type) { + case AscFormat.Constr_type_primFontSz: + case AscFormat.Constr_type_secFontSz: + checkFontSizeConstraints(constr, refNodes, nodes, smartartAlgorithm); + break; + default: + break; + } + } + } + } + PresNode.prototype.getPtType = function () { + const node = this.node; + return node.getPtType(); + } + PresNode.prototype.checkPtType = function (elementType) { + const ptType = this.getPtType(); + switch (elementType) { + case AscFormat.ElementType_value_all: + return this; + case AscFormat.ElementType_value_sibTrans: + if (ptType === AscFormat.Point_type_sibTrans) { + return this; + } + break; + case AscFormat.ElementType_value_parTrans: + if (ptType === AscFormat.Point_type_parTrans) { + return this; + } + break; + case AscFormat.ElementType_value_node: + if (ptType === AscFormat.Point_type_node || ptType === AscFormat.Point_type_asst) { + return this; + } + break; + case AscFormat.ElementType_value_asst: + if (ptType === AscFormat.Point_type_asst) { + return this; + } + break; + case AscFormat.ElementType_value_nonAsst: + if (ptType !== AscFormat.Point_type_asst) { + return this; + } + break; + default: + break; + } + } + + PresNode.prototype.getConstraintNode = function (forName, ptType) { + let node = this; + if (forName) { + node = this.checkName(forName); + } + return node && node.checkPtType(ptType); + }; + + PresNode.prototype.getCalcRefConstr = function (constr, isAdapt, valueCache) { + const refPtType = constr.refPtType.getVal(); + if (!constr.refForName) { + if (!valueCache[constr.refFor]) { + valueCache[constr.refFor] = {}; + } + if (!valueCache[constr.refFor][refPtType]) { + valueCache[constr.refFor][refPtType] = {}; + } + const cacheValue = valueCache[constr.refFor][refPtType][constr.refType]; + if (AscFormat.isRealNumber(cacheValue)) { + return cacheValue; + } + } + + const refNode = this.getConstraintNode(constr.refForName, refPtType); + if (!refNode) { + return; + } + const calcValue = refNode.getRefConstr(constr, isAdapt); + if (constr.refType !== AscFormat.Constr_type_none && !constr.refForName && constr.refFor !== AscFormat.Constr_for_self) { + valueCache[constr.refFor][refPtType][constr.refType] = calcValue; + } + return calcValue; + }; + PresNode.prototype.setConstraintByNode = function (constr, refNode, calcValue, isAdapt) { + const constrNode = this.getConstraintNode(constr.forName, constr.ptType.getVal()); + if (constrNode) { + constrNode.addEqualRelation(refNode, constr, isAdapt); + const isSettingConstraint = constrNode.setConstraint(constr, calcValue, isAdapt); + constrNode.setParamConstraint(constr, refNode); + if (isSettingConstraint) { + constrNode.applyEqualRelations(isAdapt); + setRelationConstraints(constrNode, refNode, constr); + } + } + }; + + function setRelationConstraints(constrNode, refNode, constr) { + switch (constr.type) { + case AscFormat.Constr_type_w: + case AscFormat.Constr_type_h: + constrNode.setRelationConstr(refNode, constr); + break; + default: + break; + } + } + + PresNode.prototype.addEqualRelation = function (refNode, constr, isAdapt) { + const relations = isAdapt ? this.equationRelations.adapt : this.equationRelations.nonAdapt; + relations[constr.op][constr.type] = {constr: constr, ref: refNode}; + }; + PresNode.prototype.applyEqualRelations = function (isAdapt) { + const relations = isAdapt ? this.equationRelations.adapt : this.equationRelations.nonAdapt; + const equRelations = relations[AscFormat.Constr_op_equ]; + for (let constrType in equRelations) { + const rel = equRelations[constrType]; + const constr = rel.constr; + const refNode = rel.ref; + + const refConstrObject = isAdapt ? refNode.adaptConstr : refNode.constr; + const curConstrObject = isAdapt ? this.adaptConstr : this.constr; + + let factor = this.getFactRule(constr); + const refType = constr.refType === AscFormat.Constr_type_none && constr.refForName ? constr.type : constr.refType; + if (refConstrObject[refType]) { + if ( refNode === this && refConstrObject[refType] * factor !== curConstrObject[constr.type]) { + refConstrObject[refType] = curConstrObject[constr.type]; + } else { + curConstrObject[constr.type] = refConstrObject[refType] * factor; + } + } + } + }; + PresNode.prototype.setParamConstraint = function (constr, refNode) { + switch (constr.type) { + case AscFormat.Constr_type_connDist: { + if (constr.for !== AscFormat.Constr_for_self) { + if (this.algorithm) { + if (!refNode.connectionDistanceResolver) { + refNode.connectionDistanceResolver = new CConnectionDistanceResolver(); + } + refNode.connectionDistanceResolver.addConnection(this.algorithm); + } + } + } + } + } + function isUserConstr(type) { + switch (type) { + case AscFormat.Constr_type_userA: + case AscFormat.Constr_type_userB: + case AscFormat.Constr_type_userC: + case AscFormat.Constr_type_userD: + case AscFormat.Constr_type_userE: + case AscFormat.Constr_type_userF: + case AscFormat.Constr_type_userG: + case AscFormat.Constr_type_userH: + case AscFormat.Constr_type_userI: + case AscFormat.Constr_type_userJ: + case AscFormat.Constr_type_userK: + case AscFormat.Constr_type_userL: + case AscFormat.Constr_type_userM: + case AscFormat.Constr_type_userN: + case AscFormat.Constr_type_userO: + case AscFormat.Constr_type_userP: + case AscFormat.Constr_type_userQ: + case AscFormat.Constr_type_userR: + case AscFormat.Constr_type_userS: + case AscFormat.Constr_type_userT: + case AscFormat.Constr_type_userU: + case AscFormat.Constr_type_userV: + case AscFormat.Constr_type_userW: + case AscFormat.Constr_type_userX: + case AscFormat.Constr_type_userY: + case AscFormat.Constr_type_userZ: + return true; + default: + return false; + } + } + + PresNode.prototype.setConstraint = function (constr, value, isAdapt) { + if (!this.isCanAdapt(constr, isAdapt)) { + return false; + } + let factor = this.getFactRule(constr); + value *= factor; + const constrObject = this.getConstraints(isAdapt); + if (constrObject[constr.type] !== undefined && constr.refFor === AscFormat.Constr_for_self && constr.refType === AscFormat.Constr_type_none) { + return false; + } + + switch (constr.op) { + case AscFormat.Constr_op_gte: { + const oldValue = constrObject[constr.type]; + if (oldValue !== undefined && value < oldValue) { + return false; + } + break; + } + case AscFormat.Constr_op_lte: { + const oldValue = constrObject[constr.type]; + if (oldValue !== undefined && value > oldValue) { + return false; + } + break; + } + default: { + break; + } + } + if (isAdapt) { + switch (constr.type) { + case AscFormat.Constr_type_w: + case AscFormat.Constr_type_h: { + const summaryScale = this.getSummaryScale(constr.type); + const parentScale = Math.min(this.getParentScale(constr.type) / summaryScale, 1); + value *= parentScale; + break; + } + default: + break; + } + } + + + switch (constr.type) { + case AscFormat.Constr_type_begPad: + case AscFormat.Constr_type_endPad: { + if (this.algorithm) { + const padFactor = constr.refType === AscFormat.Constr_type_none ? constr.val : constr.fact; + this.algorithm.setConnectionDistance(padFactor, constr.type === AscFormat.Constr_type_begPad); + } + break; + } + case AscFormat.Constr_type_stemThick: { + if (this.algorithm) { + this.algorithm.setStemThick(constr.fact); + } + break; + } + case AscFormat.Constr_type_diam: + if (this.algorithm) { + let val; + if (value === 0) { + val = constr.refType === AscFormat.Constr_type_none ? constr.val : constr.fact; + } else { + val = value; + } + this.algorithm.setConstrClockwise(val > 0); + this.algorithm.diameterScale = constr.fact; + break; + } + break; + case AscFormat.Constr_type_bMarg: + case AscFormat.Constr_type_tMarg: + case AscFormat.Constr_type_rMarg: + case AscFormat.Constr_type_lMarg: + if (this.textConstraints[constr.type] === undefined && constrObject[constr.type] === undefined) { + if (constr.refType === AscFormat.Constr_type_primFontSz || constr.refType === AscFormat.Constr_type_secFontSz) { + this.textConstraints[constr.type] = constr.fact; + } else if (AscFormat.isRealNumber(this.textConstraints[constr.refType])) { + this.textConstraints[constr.type] = this.textConstraints[constr.refType]; + } + } else if (constr.refType === AscFormat.Constr_type_primFontSz || constr.refType === AscFormat.Constr_type_secFontSz) { + return; + } + break; + default: { + break; + } + } + if (this.valRules[constr.type] !== Infinity) { + constrObject[constr.type] = value; + } + return true; + }; + PresNode.prototype.getParentWidth = function (isAdapt) { + let node = this; + while (node.isContentNode() && node.parent) { + const parentConstrObject = isAdapt ? node.parent.adaptConstr : node.parent.constr; + let parentWidth = parentConstrObject[AscFormat.Constr_type_w]; + let parentHeight = parentConstrObject[AscFormat.Constr_type_h]; + const aspectRatio = node.parent.getAspectRatio(); + if (aspectRatio) { + const aspectWidth = parentHeight * aspectRatio; + if (parentWidth > aspectWidth) { + parentWidth = aspectWidth; + } + } + if (parentWidth) { + return parentWidth; + } + node = node.parent; + } + }; + PresNode.prototype.getParentHeight = function (isAdapt) { + let node = this; + while (node.isContentNode() && node.parent) { + const parentConstrObject = isAdapt ? node.parent.adaptConstr : node.parent.constr; + let parentWidth = parentConstrObject[AscFormat.Constr_type_w]; + let parentHeight = parentConstrObject[AscFormat.Constr_type_h]; + const aspectRatio = node.parent.getAspectRatio(); + if (aspectRatio) { + const aspectWidth = parentHeight * aspectRatio; + if (parentWidth <= aspectWidth) { + parentHeight = parentWidth / aspectRatio; + } + } + if (parentHeight) { + return parentHeight; + } + node = node.parent; + } + }; + PresNode.prototype.isCanAdapt = function (constr, isAdapt) { + if (isAdapt) { + switch (constr.type) { + case AscFormat.Constr_type_w: + case AscFormat.Constr_type_h: { + const relation = this.getRelationConstr(constr.type); + return !!(relation && constr === relation.constr); + } + default: + return true; + } + } + return true; + } + PresNode.prototype.getRefConstr = function (constr, isAdapt) { + let aspectRatio; + if (!(constr.for === AscFormat.Constr_for_self && constr.refFor === AscFormat.Constr_for_self && !isUserConstr(constr.type))) { + aspectRatio = this.getAspectRatio(); + } + const constrObject = isAdapt ? this.adaptConstr : this.constr; + let value; + if (isUserConstr(constr.type) && constr.refType === AscFormat.Constr_type_none && constrObject[constr.type] !== undefined && constr.refFor === AscFormat.Constr_for_self) { + value = constrObject[constr.type]; + } else if (constr.refType === AscFormat.Constr_type_none) { + value = constr.val; + } else if (constrObject[constr.refType]) { + value = constrObject[constr.refType]; + } + if (value !== undefined) { + if (aspectRatio) { + switch (constr.refType) { + case AscFormat.Constr_type_h: + const width = constrObject[AscFormat.Constr_type_w]; + if (width !== undefined) { + const aspectWidth = width / aspectRatio; + if (aspectWidth < value) { + value = aspectWidth; + } + } + + break; + case AscFormat.Constr_type_w: + const height = constrObject[AscFormat.Constr_type_h]; + if (height !== undefined) { + const aspectHeight = height * aspectRatio; + if (aspectHeight < value) { + value = aspectHeight; + } + } + break; + default: + break; + } + } + } else { + value = this.getConstr(constr.refType, isAdapt, true); + if (value === undefined) { + switch (constr.refType) { + case AscFormat.Constr_type_w: { + const parentWidth = this.getParentWidth(isAdapt); + constrObject[AscFormat.Constr_type_w] = parentWidth; + return parentWidth; + } + case AscFormat.Constr_type_h: { + const parentHeight = this.getParentHeight(isAdapt); + constrObject[AscFormat.Constr_type_h] = parentHeight; + return parentHeight; + } + default: { + value = constr.val; + break; + } + } + } + } + return value; + }; + + PresNode.prototype.setAlgorithm = function (algorithm) { + this.algorithm = algorithm; + } + + PresNode.prototype.getAlgorithm = function () { + return this.algorithm; + } + PresNode.prototype.getPositionConstrWithOffset = function (posConstrType, offsetConstrType, isAdapt) { + const constrObject = this.getConstraints(isAdapt); + const position = constrObject[posConstrType]; + let result; + if (position !== undefined) { + result = position; + const offset = constrObject[offsetConstrType]; + if (offset !== undefined) { + result += offset; + } + } + return result; + } + PresNode.prototype.getConstrForCalculating = function (type, isAdapt) { + switch (type) { + case AscFormat.Constr_type_l: + return this.getPositionConstrWithOffset(type, AscFormat.Constr_type_lOff, isAdapt); + case AscFormat.Constr_type_r: + return this.getPositionConstrWithOffset(type, AscFormat.Constr_type_rOff, isAdapt); + case AscFormat.Constr_type_t: + return this.getPositionConstrWithOffset(type, AscFormat.Constr_type_tOff, isAdapt); + case AscFormat.Constr_type_b: + return this.getPositionConstrWithOffset(type, AscFormat.Constr_type_bOff, isAdapt); + case AscFormat.Constr_type_ctrX: + return this.getPositionConstrWithOffset(type, AscFormat.Constr_type_ctrXOff, isAdapt); + case AscFormat.Constr_type_ctrY: + return this.getPositionConstrWithOffset(type, AscFormat.Constr_type_ctrYOff, isAdapt); + case AscFormat.Constr_type_w: + return this.getPositionConstrWithOffset(type, AscFormat.Constr_type_wOff, isAdapt); + case AscFormat.Constr_type_h: + return this.getPositionConstrWithOffset(type, AscFormat.Constr_type_hOff, isAdapt); + default: + const constrObj = this.getConstraints(isAdapt); + return constrObj[type]; + } + }; + PresNode.prototype.getConstr = function (type, isAdapt, skipDefaultValue, depth) { + depth = depth || 0; + const constrObj = isAdapt ? this.adaptConstr : this.constr; + let result = this.getConstrForCalculating(type, isAdapt); + if (depth < 2) { + switch (type) { + case AscFormat.Constr_type_l: { + const width = this.getConstr(AscFormat.Constr_type_w, isAdapt, false, depth + 1); + const right = this.getConstrForCalculating(AscFormat.Constr_type_r, isAdapt); + const ctrX = this.getConstrForCalculating(AscFormat.Constr_type_ctrX, isAdapt); + if (ctrX !== undefined) { + result = ctrX - width / 2; + } else if (right !== undefined) { + result = right - width; + } + break; + } + case AscFormat.Constr_type_t: { + const height = this.getConstrForCalculating(AscFormat.Constr_type_h, isAdapt); + if (height !== undefined) { + const ctrY = this.getConstrForCalculating(AscFormat.Constr_type_ctrY, isAdapt); + const bottom = this.getConstrForCalculating(AscFormat.Constr_type_b, isAdapt); + if (ctrY !== undefined) { + result = ctrY - height / 2; + } else if (bottom !== undefined) { + result = bottom - height; + } + } + break; + } + case AscFormat.Constr_type_w: { + const right = this.getConstrForCalculating(AscFormat.Constr_type_r, isAdapt); + const left = this.getConstrForCalculating(AscFormat.Constr_type_l, isAdapt); + if (right !== undefined && left !== undefined) { + result = right - left; + } else if (this.algorithm instanceof TextAlgorithm && result === undefined) { + const wOff = constrObj[AscFormat.Constr_type_wOff]; + result = this.getParentWidth(isAdapt); + if (left !== undefined) { + result -= left; + } else if (wOff !== undefined) { + result += wOff; + } + } + break; + } + case AscFormat.Constr_type_h: { + const bottom = this.getConstrForCalculating(AscFormat.Constr_type_b, isAdapt); + const top = this.getConstr(AscFormat.Constr_type_t, isAdapt, true, depth + 1); + if (bottom !== undefined && top !== undefined) { + result = bottom - top; + } else if (this.algorithm instanceof TextAlgorithm && result === undefined) { + const hOff = constrObj[AscFormat.Constr_type_hOff]; + result = this.getParentHeight(isAdapt); + if (top !== undefined) { + result -= top; + } else if (hOff !== undefined) { + result += hOff; + } + } + break; + } + case AscFormat.Constr_type_b: { + const height = this.getConstrForCalculating(AscFormat.Constr_type_h, isAdapt); + if (AscFormat.isRealNumber(height)) { + const top = this.getConstrForCalculating(AscFormat.Constr_type_t, isAdapt); + const ctrY = this.getConstrForCalculating(AscFormat.Constr_type_ctrY, isAdapt); + if (AscFormat.isRealNumber(top)) { + result = top + height; + } else if (AscFormat.isRealNumber(ctrY)) { + result = ctrY + height / 2; + } else { + result = height; + } + } + break; + } + case AscFormat.Constr_type_r: { + const width = this.getConstr(AscFormat.Constr_type_w, isAdapt, true, depth + 1); + if (AscFormat.isRealNumber(width)) { + const left = this.getConstr(AscFormat.Constr_type_l, isAdapt, false, depth + 1); + result = left + width; + } + break; + } + case AscFormat.Constr_type_ctrY: { + const height = this.getConstr(AscFormat.Constr_type_h, isAdapt, true, depth + 1); + if (AscFormat.isRealNumber(height)) { + const top = this.getConstr(AscFormat.Constr_type_t, isAdapt, false, depth + 1); + result = top + height / 2; + } + break; + } + case AscFormat.Constr_type_ctrX: { + const width = this.getConstr(AscFormat.Constr_type_w, isAdapt, true, depth + 1); + if (AscFormat.isRealNumber(width)) { + const left = this.getConstr(AscFormat.Constr_type_l, isAdapt, false, depth + 1); + result = left + width / 2; + } + break; + } + default: + break; + } + } + + return skipDefaultValue ? result : (result || 0); + }; + + + PresNode.prototype.getDirection = function () { + return this.presPoint.getDirection(); + } + + PresNode.prototype.checkName = function (name) { + if (this.getPresName() === name) { + return this; + } + } + + PresNode.prototype.startAlgorithm = function (smartartAlgorithm, isCalculateScaleCoefficients) { + if (this.algorithm) { + this.algorithm.calculateShapePositions(smartartAlgorithm, isCalculateScaleCoefficients); + } + } + + PresNode.prototype.calcScaleCoefficients = function (smartartAlgorithm) { + if (this.algorithm) { + this.algorithm.calcScaleCoefficients(smartartAlgorithm); + } + } + PresNode.prototype.setLayoutConstraints = function (lst) { + this.layoutInfo.constrLst = lst; + }; + PresNode.prototype.setLayoutRules = function (lst) { + this.layoutInfo.ruleLst = lst; + }; + PresNode.prototype.isTxXfrm = function () { + const contentNode = this.node; + const textNodes = contentNode.getTextNodes(); + return !!(textNodes.textNode && textNodes.contentNode && textNodes.textNode === this); + }; + + PresNode.prototype.updateCompositeSizes = function (isCalculateCoefficients) { + const shape = this.getShape(isCalculateCoefficients); + if (!this.childs.length) { + shape.width = 0; + shape.height = 0; + return; + } + + let shapeBounds; + let cleanShapeBounds; + for (let i = 0; i < this.childs.length; i += 1) { + const node = this.childs[i]; + const childShape = node.getShape(isCalculateCoefficients); + // todo: check this + if (childShape.width <= 0 && childShape.height <= 0 || (node.algorithm instanceof ConnectorAlgorithm) || ((node.algorithm instanceof TextAlgorithm) && !node.isRealShapeType()) || node.isTxXfrm()) { + continue; + } + if (shapeBounds) { + checkBounds(shapeBounds, childShape.getBounds()); + checkBounds(cleanShapeBounds, childShape.getBounds(true)); + } else { + shapeBounds = childShape.getBounds(); + cleanShapeBounds = childShape.getBounds(true); + } + } + if (!shapeBounds) { + shape.width = 0; + shape.height = 0; + return; + } + + + shape.x = shapeBounds.l; + shape.y = shapeBounds.t; + shape.cleanParams.x = cleanShapeBounds.l; + shape.cleanParams.y = cleanShapeBounds.t; + + + shape.width = shapeBounds.r - shapeBounds.l; + shape.height = shapeBounds.b - shapeBounds.t; + + shape.cleanParams.width = cleanShapeBounds.r - cleanShapeBounds.l; + shape.cleanParams.height = cleanShapeBounds.b - cleanShapeBounds.t; + return shapeBounds; + }; + + PresNode.prototype.createShadowShape = function (isComposite, isCalculateCoefficients) { + + const shape = this.getShape(isCalculateCoefficients); + shape.initFromShape(this.layoutInfo.shape); + this.createShadowShapeFromConstraints(this.layoutInfo.shape, isCalculateCoefficients); + if (isComposite) { + this.forEachChild(function (node) { + node.moveTo(shape.x, shape.y, isCalculateCoefficients, true); + }); + this.algorithm.setConstraintSizes(shape); + return this.updateCompositeSizes(isCalculateCoefficients); + } + }; + PresNode.prototype.createHierarchyRootShadowShape = function (isCalculateCoefficients) { + const algorithm = this.algorithm; + if (algorithm) { + const root = algorithm.getRoot(); + const shape = this.getShape(isCalculateCoefficients); + shape.initFromShape(this.layoutInfo.shape); + // root.algorithm.getBounds(); + const rootShape = root.getShape(isCalculateCoefficients); + shape.x = rootShape.x; + shape.y = rootShape.y; + shape.width = rootShape.width; + shape.height = rootShape.height; + shape.rot = rootShape.rot; + shape.cleanParams = Object.assign({}, rootShape.cleanParams); + } + }; + PresNode.prototype.createHierarchyChildShadowShape = function (isCalculateCoefficients) { + const shape = this.getShape(isCalculateCoefficients); + shape.initFromShape(this.layoutInfo.shape); + const childs = this.algorithm.getMainChilds(); + if (!childs.length) { + return; + } + let bounds = childs[0].algorithm.getBounds(isCalculateCoefficients); + for (let i = 1; i < childs.length; i += 1) { + const child = childs[i]; + const algorithm = child.algorithm; + bounds = algorithm.getBounds(isCalculateCoefficients, bounds); + } + if (bounds) { + shape.x = bounds.l; + shape.y = bounds.t; + shape.width = bounds.r - bounds.l; + shape.height = bounds.b - bounds.t; + } + }; + PresNode.prototype.getConstraints = function (isAdapt) { + return isAdapt ? this.adaptConstr : this.constr; + }; + PresNode.prototype.setMoveRot = function (rot) { + this.moveRot = rot; + } + PresNode.prototype.createShadowShapeFromConstraints = function (layoutShape, isCalculateCoefficients) { + const isChildInSpaceAlgorithm = this.parent && this.parent.algorithm instanceof SpaceAlgorithm; + const constrNode = isChildInSpaceAlgorithm ? this.parent : this; + + const shape = this.getShape(isCalculateCoefficients); + shape.rot = AscFormat.normalizeRotate(degToRad * layoutShape.rot); + + const widthCoef = this.getWidthScale(); + const heightCoef = this.getHeightScale(); + let x = constrNode.getConstr(AscFormat.Constr_type_l, !isCalculateCoefficients); + let y = constrNode.getConstr(AscFormat.Constr_type_t, !isCalculateCoefficients); + let width = constrNode.getConstr(AscFormat.Constr_type_w, !isCalculateCoefficients, !isChildInSpaceAlgorithm); + let height = constrNode.getConstr(AscFormat.Constr_type_h, !isCalculateCoefficients, !isChildInSpaceAlgorithm); + if (width === undefined && height === undefined) { + const isSpaceAlgorithm = this.algorithm instanceof SpaceAlgorithm; + width = isSpaceAlgorithm ? (constrNode.getParentWidth(!isCalculateCoefficients) || 0) : 0; + height = isSpaceAlgorithm ? (constrNode.getParentHeight(!isCalculateCoefficients) || 0): 0; + } else { + width = width || 0; + height = height || 0; + } + const newSizes = AscFormat.fGetMaxInscribedRectangle(width, height, shape.rot); + const newScaledSizes = AscFormat.fGetMaxInscribedRectangle(width * widthCoef, height * heightCoef, shape.rot); + x += (width - newSizes.width) / 2; + y += (height - newSizes.height) / 2; + width = newSizes.width; + height = newSizes.height; + const scaleWidth = newScaledSizes.width; + const scaleHeight = newScaledSizes.height; + shape.x = x; + shape.y = y; + + + shape.width = scaleWidth; + shape.height = scaleHeight; + const offX = (width - shape.width) / 2; + const offY = (height - shape.height) / 2; + shape.x += offX; + shape.y += offY; + + let moveRot = 0; + const prSet = this.getPrSet(); + + if (prSet && prSet.custAng) { + moveRot = prSet.custAng; + } + for (let i = 0; i < this.moveWithNodes.length; i += 1) { + const moveNode = this.moveWithNodes[i]; + if (moveNode.isInitShape(isCalculateCoefficients)) { + const moveShape = moveNode.getShape(isCalculateCoefficients); + const scaleMoveWidth = moveShape.width * widthCoef; + const scaleMoveHeight = moveShape.height * heightCoef; + const moveOffX = (shape.x + (moveShape.x - x) * widthCoef) - moveShape.x; + const moveOffY = (moveShape.height - scaleMoveHeight) / 2; + moveShape.width = scaleMoveWidth; + moveShape.height = scaleMoveHeight; + moveNode.moveTo(moveOffX, moveOffY, isCalculateCoefficients); + + + } else { + moveNode.setMoveScaleCoefficients(widthCoef, heightCoef); + } + moveNode.setMoveRot(moveRot); + } + const textNodes = this.contentNodes[0] && this.contentNodes[0].getTextNodes(); + if (textNodes && textNodes.contentNode === this && textNodes.textNode) { + if (textNodes.textNode.isInitShape(isCalculateCoefficients)) { + const moveShape = textNodes.textNode.getShape(isCalculateCoefficients); + const scaleMoveWidth = moveShape.width * widthCoef; + const scaleMoveHeight = moveShape.height * heightCoef; + const moveOffX = shape.x + shape.width / 2 + (moveShape.x + moveShape.width / 2 - (x + width / 2)) * widthCoef - (moveShape.x + scaleMoveWidth / 2); + const moveOffY = shape.y + shape.height / 2 + (moveShape.y + moveShape.height / 2 - (y + height / 2)) * heightCoef - (moveShape.y + scaleMoveHeight / 2); + moveShape.width = scaleMoveWidth; + moveShape.height = scaleMoveHeight; + textNodes.textNode.moveTo(moveOffX, moveOffY, isCalculateCoefficients); + } + } + + shape.cleanParams = { + width: width, + height: height, + x: x, + y: y + }; + }; + PresNode.prototype.isInitShape = function (isCalculateScaleCoefficient) { + return !!(isCalculateScaleCoefficient ? this.position : this.shape); + }; + PresNode.prototype.setMoveScaleCoefficients = function (widthCoefficient, heightCoefficient) { + this.moveScaleCoefficients.width = widthCoefficient; + this.moveScaleCoefficients.height = heightCoefficient; + }; + PresNode.prototype.getChildConstraintBounds = function (isCalculateCoefficients) { + if (this.bounds.constraints === null) { + const constrBounds = { + l: 0, + r: 0, + t: 0, + b: 0 + }; + this.bounds.constraints = constrBounds; + if (this.childs.length) { + const firstNodeConstraints = this.childs[0].algorithm && this.childs[0].algorithm.constraintSizes; + if (firstNodeConstraints) { + constrBounds.b = firstNodeConstraints.y + firstNodeConstraints.height; + constrBounds.t = firstNodeConstraints.y; + constrBounds.l = firstNodeConstraints.x; + constrBounds.r = firstNodeConstraints.x + firstNodeConstraints.width; + } else { + const shape = this.childs[0].getShape(isCalculateCoefficients); + constrBounds.b = shape.y + shape.height; + constrBounds.t = shape.y; + constrBounds.l = shape.x; + constrBounds.r = shape.x + shape.width; + } + for (let i = 1; i < this.childs.length; i++) { + this.childs[i].checkConstraintBounds(constrBounds, isCalculateCoefficients); + } + } + } + return this.bounds.constraints; + }; + PresNode.prototype.checkConstraintBounds = function (bounds, isCalculateScaleCoefficient) { + if (!this.isContentNode()) { + return; + } + const constraintSizes = this.algorithm && this.algorithm.constraintSizes; + if (constraintSizes) { + if (constraintSizes.x < bounds.l) { + bounds.l = constraintSizes.x; + } + if (constraintSizes.y < bounds.t) { + bounds.t = constraintSizes.y; + } + const right = constraintSizes.x + constraintSizes.width; + if (right > bounds.r) { + bounds.r = right; + } + const bottom = constraintSizes.y + constraintSizes.height; + if (bottom > bounds.b) { + bounds.b = bottom; + } + } else { + const shape = this.getShape(isCalculateScaleCoefficient); + if (shape.x < bounds.l) { + bounds.l = shape.x; + } + if (shape.y < bounds.t) { + bounds.t = shape.y; + } + const right = shape.x + shape.width; + if (right > bounds.r) { + bounds.r = right; + } + const bottom = shape.y + shape.height; + if (bottom > bounds.b) { + bounds.b = bottom; + } + } + }; + + PresNode.prototype.getHeightScale = function (force) { + if (!force && !this.isRealShapeType()) { + return this.moveScaleCoefficients.height; + } + const prSet = this.getPrSet(); + if (prSet) { + return (prSet.custScaleY || 1) * this.moveScaleCoefficients.height; + } + return this.moveScaleCoefficients.height; + } + + PresNode.prototype.getWidthScale = function (force) { + if (!force && !this.isRealShapeType()) { + return this.moveScaleCoefficients.width; + } + const prSet = this.getPrSet(); + if (prSet) { + return (prSet.custScaleX || 1) * this.moveScaleCoefficients.width; + } + return this.moveScaleCoefficients.width; + } + + PresNode.prototype.initRootConstraints = function (smartArt, smartartAlgorithm) { + const sizes = smartArt.getSizes(); + this.constr[AscFormat.Constr_type_w] = sizes.width; + this.constr[AscFormat.Constr_type_h] = sizes.height; + this.adaptConstr[AscFormat.Constr_type_w] = sizes.width; + this.adaptConstr[AscFormat.Constr_type_h] = sizes.height; + }; + PresNode.prototype.getModelId = function () { + return this.presPoint.getModelId(); + }; + +function CConnectionDistanceResolver() { + this.connectionAlgorithms = []; + this.connectionDistance = null; +} + + CConnectionDistanceResolver.prototype.calcChildConnectionDistance = function () { + this.connectionDistance = -1; + const firstAlg = this.connectionAlgorithms[0]; + if (firstAlg) { + const points = firstAlg.getConnectionPoints(); + if (points.end && points.start) { + const v = new CVector(points.end.x - points.start.x, points.end.y - points.start.y); + this.connectionDistance = v.getDistance(); + } else { + return; + } + } + for (let i = 1; i < this.connectionAlgorithms.length; i++) { + const alg = this.connectionAlgorithms[i]; + const points = alg.getConnectionPoints(); + if (points.end && points.start) { + const v = new CVector(points.end.x - points.start.x, points.end.y - points.start.y); + const distance = v.getDistance(); + if (distance < this.connectionDistance) { + this.connectionDistance = distance; + } + } + } + }; + CConnectionDistanceResolver.prototype.getConnectionDistance = function () { + if (this.connectionDistance === null) { + this.calcChildConnectionDistance(); + } + return this.connectionDistance; + }; + CConnectionDistanceResolver.prototype.addConnection = function (algorithm) { + this.connectionAlgorithms.push(algorithm); + } + + function getShapePoint(bounds) { + return new CCoordPoint(bounds.l + (bounds.r - bounds.l) / 2, bounds.t + (bounds.b - bounds.t) / 2); + } + function getMinShapeEdgePoint(bounds, guideVector) { + if (bounds.isEllipse) { + return getMinCircleEdgePoint(bounds, guideVector); + } else { + return getMinRectEdgePoint(bounds, guideVector); + } + } + function resolveParameterLineAndShapeEquation(ellipseBounds, paramLine) { + const width = ellipseBounds.r - ellipseBounds.l; + const height = ellipseBounds.b - ellipseBounds.t; + const cw = width / 2; + const ch = height / 2; + const cx = cw + ellipseBounds.l; + const cy = ch + ellipseBounds.t; + + const px = paramLine.ax; + const py = paramLine.ay; + const x1 = paramLine.x; + const y1 = paramLine.y; + const ch2 = ch * ch; + const cw2 = cw * cw; + const a = ch2 * px * px + cw2 * py * py; + const b = 2 * ch2 * px * (x1 - cx) + 2 * cw2 * py * (y1 - cy); + const c = ch2 * (cy * cy - 2 * cy * y1 + y1 * y1) + cw2 * (cx * cx - 2 * cx * x1 + x1 * x1) - cw2 * ch2; + return AscFormat.fSolveQuadraticEquation(a, b, c); + } + + function getMinCircleEdgePoint(bounds, guideVector) { + const shapePoint = getShapePoint(bounds); + const line = getParametricLinEquation(shapePoint, guideVector); + const answer = resolveParameterLineAndShapeEquation(bounds, line); + if (answer.bError) { + return null; + } + const angle = guideVector.getAngle(); + + const xt1 = line.x + line.ax * answer.x1; + const yt1 = line.y + line.ay * answer.x1; + + let edgeAngle = new CVector(xt1 - shapePoint.x, yt1 - shapePoint.y).getAngle(); + if (AscFormat.fApproxEqual(edgeAngle, angle, algDelta)) { + return new CCoordPoint(xt1, yt1); + } + + const xt2 = line.x + line.ax * answer.x2; + const yt2 = line.y + line.ay * answer.x2; + + edgeAngle = new CVector(xt2 - shapePoint.x, yt2 - shapePoint.y).getAngle(); + if (AscFormat.fApproxEqual(edgeAngle, angle, algDelta)) { + return new CCoordPoint(xt2, yt2); + } + } + + function getMinRectEdgePoint(bounds, guideVector) { + const shapePoint = getShapePoint(bounds); + const centerAngle = guideVector.getAngle(); + let checkEdges = [ + [new CCoordPoint(bounds.l, bounds.t), new CCoordPoint(bounds.r, bounds.t)], + [new CCoordPoint(bounds.r, bounds.t), new CCoordPoint(bounds.r, bounds.b)], + [new CCoordPoint(bounds.l, bounds.t), new CCoordPoint(bounds.l, bounds.b)], + [new CCoordPoint(bounds.l, bounds.b), new CCoordPoint(bounds.r, bounds.b)] + ]; + for (let i = 0; i < checkEdges.length; i += 1) { + const edge = checkEdges[i]; + const point = getRectEdgePoint(shapePoint, guideVector, edge[0], edge[1]); + if (point) { + const edgeGuideVector = new CVector(point.x - shapePoint.x, point.y - shapePoint.y); + const edgeAngle = edgeGuideVector.getAngle(); + if (AscFormat.fApproxEqual(edgeAngle, centerAngle, algDelta)) { + return point; + } + } + } + } + function getParametricLinEquation(startPoint, guideVector) { + const len = guideVector.getDistance(); + return { + x: startPoint.x, + ax: guideVector.x / len, + y: startPoint.y, + ay: guideVector.y / len + }; + } + function getRectEdgePoint(linePoint, guideVector, rectEdgePoint1, rectEdgePoint2) { + const line1 = getParametricLinEquation(linePoint, guideVector); + const line2 = getParametricLinEquation(rectEdgePoint1, new CVector(rectEdgePoint2.x - rectEdgePoint1.x, rectEdgePoint2.y - rectEdgePoint1.y)); + return getIntersectionLines(line1, line2, rectEdgePoint1, rectEdgePoint2); + } + function getIntersectionLines(line1, line2, rectEdgePoint1, rectEdgePoint2) { + const divider = line1.ay * line2.ax - line1.ax * line2.ay; + if (divider === 0) { + return null; + } + const parameter = (line1.ax * (line2.y - line1.y) - line1.ay * (line2.x - line1.x)) / divider; + const x = line2.x + line2.ax * parameter; + const y = line2.y + line2.ay * parameter; + if (((x > rectEdgePoint1.x && x < rectEdgePoint2.x) || AscFormat.fApproxEqual(x, rectEdgePoint2.x, algDelta) || AscFormat.fApproxEqual(x, rectEdgePoint1.x, algDelta)) + && ((y > rectEdgePoint1.y && y < rectEdgePoint2.y) || AscFormat.fApproxEqual(y, rectEdgePoint2.y, algDelta) || AscFormat.fApproxEqual(y, rectEdgePoint1.y, algDelta))) { + return new CCoordPoint(x, y); + } + return null; + } + + // document.body.addEventListener('keydown', function (e) { + // if (e.ctrlKey && e.altKey && e.keyCode === 82) { + // const oSM = editor.getGraphicController().selectedObjects[0]; + // const smartArtAlgorithm = new SmartArtAlgorithm(oSM); + // smartArtAlgorithm.startFromBegin(); + // const drawing = oSM.spTree[0]; + // const shapeLength = drawing.spTree.length; + // for (let i = 0; i < shapeLength; i++) { + // drawing.removeFromSpTreeByPos(0); + // } + // const shapes = smartArtAlgorithm.getShapes(); + // + // for (let i = shapes.length - 1; i >= 0; i -= 1) { + // drawing.addToSpTree(0, shapes[i]); + // } + // + // oSM.recalculate(); + // + // editor.getLogicDocument().Recalculate(); + // oSM.fitFontSize(); + // editor.getLogicDocument().Recalculate(); + // } + // }); + + AscFormat.SmartArtAlgorithm = SmartArtAlgorithm; +})(window); + diff --git a/common/TableId.js b/common/TableId.js index f125e4e2e5..73ac203b6e 100644 --- a/common/TableId.js +++ b/common/TableId.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -51,14 +51,14 @@ { return this.isInit; }; - CTableId.prototype.init = function() + CTableId.prototype.init = function(editor) { this.m_aPairs = {}; this.m_bTurnOff = false; this.m_oFactoryClass = {}; this.Id = AscCommon.g_oIdCounter.Get_NewId(); this.Add(this, this.Id); - this.private_InitFactoryClass(); + this.private_InitFactoryClass(editor); this.isInit = true; }; CTableId.prototype.Add = function(Class, Id) @@ -145,7 +145,7 @@ delete this.m_aPairs[sId]; } }; - CTableId.prototype.private_InitFactoryClass = function() + CTableId.prototype.private_InitFactoryClass = function(editor) { this.m_oFactoryClass[AscDFH.historyitem_type_Paragraph] = AscWord.Paragraph; this.m_oFactoryClass[AscDFH.historyitem_type_TextPr] = AscCommonWord.ParaTextPr; @@ -308,8 +308,6 @@ this.m_oFactoryClass[AscDFH.historyitem_type_LayoutDef ] = AscFormat.LayoutDef; this.m_oFactoryClass[AscDFH.historyitem_type_CatLst ] = AscFormat.CatLst; this.m_oFactoryClass[AscDFH.historyitem_type_SCat ] = AscFormat.SCat; - this.m_oFactoryClass[AscDFH.historyitem_type_ClrData ] = AscFormat.ClrData; - this.m_oFactoryClass[AscDFH.historyitem_type_Desc ] = AscFormat.Desc; this.m_oFactoryClass[AscDFH.historyitem_type_LayoutNode ] = AscFormat.LayoutNode; this.m_oFactoryClass[AscDFH.historyitem_type_Alg ] = AscFormat.Alg; this.m_oFactoryClass[AscDFH.historyitem_type_Param ] = AscFormat.Param; @@ -341,12 +339,6 @@ this.m_oFactoryClass[AscDFH.historyitem_type_ColorsDef ] = AscFormat.ColorsDef; this.m_oFactoryClass[AscDFH.historyitem_type_ColorDefStyleLbl ] = AscFormat.ColorDefStyleLbl; this.m_oFactoryClass[AscDFH.historyitem_type_ClrLst ] = AscFormat.ClrLst; - this.m_oFactoryClass[AscDFH.historyitem_type_EffectClrLst ] = AscFormat.EffectClrLst; - this.m_oFactoryClass[AscDFH.historyitem_type_FillClrLst ] = AscFormat.FillClrLst; - this.m_oFactoryClass[AscDFH.historyitem_type_LinClrLst ] = AscFormat.LinClrLst; - this.m_oFactoryClass[AscDFH.historyitem_type_TxEffectClrLst ] = AscFormat.TxEffectClrLst; - this.m_oFactoryClass[AscDFH.historyitem_type_TxFillClrLst ] = AscFormat.TxFillClrLst; - this.m_oFactoryClass[AscDFH.historyitem_type_TxLinClrLst ] = AscFormat.TxLinClrLst; this.m_oFactoryClass[AscDFH.historyitem_type_ColorsDefHdr ] = AscFormat.ColorsDefHdr; this.m_oFactoryClass[AscDFH.historyitem_type_ColorsDefHdrLst ] = AscFormat.ColorsDefHdrLst; this.m_oFactoryClass[AscDFH.historyitem_type_StyleDef ] = AscFormat.StyleDef; @@ -368,7 +360,6 @@ this.m_oFactoryClass[AscDFH.historyitem_type_StyleDefHdrLst ] = AscFormat.StyleDefHdrLst; this.m_oFactoryClass[AscDFH.historyitem_type_StyleDefHdr ] = AscFormat.StyleDefHdr; this.m_oFactoryClass[AscDFH.historyitem_type_BackdropAnchor ] = AscFormat.BackdropAnchor; - this.m_oFactoryClass[AscDFH.historyitem_type_StyleData ] = AscFormat.StyleData; this.m_oFactoryClass[AscDFH.historyitem_type_SampData ] = AscFormat.SampData; this.m_oFactoryClass[AscDFH.historyitem_type_ForEach ] = AscFormat.ForEach; this.m_oFactoryClass[AscDFH.historyitem_type_ResizeHandles ] = AscFormat.ResizeHandles; @@ -379,16 +370,13 @@ this.m_oFactoryClass[AscDFH.historyitem_type_ExtrusionClr ] = AscFormat.ExtrusionClr; this.m_oFactoryClass[AscDFH.historyitem_type_ContourClr ] = AscFormat.ContourClr; this.m_oFactoryClass[AscDFH.historyitem_type_SmartArt ] = AscFormat.SmartArt; - this.m_oFactoryClass[AscDFH.historyitem_type_CCommonDataClrList] = AscFormat.CCommonDataClrList; this.m_oFactoryClass[AscDFH.historyitem_type_BuNone ] = AscFormat.BuNone; this.m_oFactoryClass[AscDFH.historyitem_type_SmartArtDrawing ] = AscFormat.Drawing; this.m_oFactoryClass[AscDFH.historyitem_type_DiagramData ] = AscFormat.DiagramData; this.m_oFactoryClass[AscDFH.historyitem_type_FunctionValue ] = AscFormat.FunctionValue; - this.m_oFactoryClass[AscDFH.historyitem_type_ShapeSmartArtInfo ] = AscFormat.ShapeSmartArtInfo; - this.m_oFactoryClass[AscDFH.historyitem_type_SmartArtTree ] = AscFormat.SmartArtTree; - this.m_oFactoryClass[AscDFH.historyitem_type_SmartArtNode ] = AscFormat.SmartArtNode; - this.m_oFactoryClass[AscDFH.historyitem_type_SmartArtNodeData ] = AscFormat.SmartArtNodeData; this.m_oFactoryClass[AscDFH.historyitem_type_BuBlip ] = AscFormat.CBuBlip; + this.m_oFactoryClass[AscDFH.historyitem_type_ParagraphPermStart] = AscWord.ParagraphPermStart; + this.m_oFactoryClass[AscDFH.historyitem_type_ParagraphPermEnd ] = AscWord.ParagraphPermEnd; if (window['AscCommonSlide']) { @@ -461,6 +449,10 @@ this.m_oFactoryClass[AscDFH.historyitem_type_Theme] = AscFormat.CTheme; this.m_oFactoryClass[AscDFH.historyitem_type_GraphicFrame] = AscFormat.CGraphicFrame; + + this.m_oFactoryClass[AscDFH.historyitem_type_CustomProperties] = AscCommon.CCustomProperties; + + if (window['AscCommonExcel']) { this.m_oFactoryClass[AscDFH.historyitem_type_Sparkline] = AscCommonExcel.sparklineGroup; @@ -478,7 +470,84 @@ } + if (editor && editor.isPdfEditor()) + { + this.m_oFactoryClass[AscDFH.historyitem_type_Shape] = AscPDF.CPdfShape; + this.m_oFactoryClass[AscDFH.historyitem_type_GraphicFrame] = AscPDF.CPdfGraphicFrame; + this.m_oFactoryClass[AscDFH.historyitem_type_ImageShape] = AscPDF.CPdfImage; + this.m_oFactoryClass[AscDFH.historyitem_type_Cnx] = AscPDF.CPdfConnectionShape; + this.m_oFactoryClass[AscDFH.historyitem_type_Pdf_Annot_Text] = AscPDF.CAnnotationText; + this.m_oFactoryClass[AscDFH.historyitem_type_Pdf_Annot_Ink] = AscPDF.CAnnotationInk; + this.m_oFactoryClass[AscDFH.historyitem_type_Pdf_Annot_Highlight] = AscPDF.CAnnotationHighlight; + this.m_oFactoryClass[AscDFH.historyitem_type_Pdf_Annot_Underline] = AscPDF.CAnnotationUnderline; + this.m_oFactoryClass[AscDFH.historyitem_type_Pdf_Annot_Strikeout] = AscPDF.CAnnotationStrikeout; + this.m_oFactoryClass[AscDFH.historyitem_type_Pdf_Annot_FreeText] = AscPDF.CAnnotationFreeText; + this.m_oFactoryClass[AscDFH.historyitem_type_Pdf_Page] = AscPDF.CPageInfo; + } + this.m_oFactoryClass[AscDFH.historyitem_type_DocumentMacros] = AscCommon.CDocumentMacros; + + + this.m_oFactoryClass[AscDFH.historyitem_type_Address] = AscFormat.CAddress; + this.m_oFactoryClass[AscDFH.historyitem_type_Axis] = AscFormat.CAxis; + this.m_oFactoryClass[AscDFH.historyitem_type_AxisUnits] = AscFormat.CAxisUnits; + this.m_oFactoryClass[AscDFH.historyitem_type_AxisUnitsLabel] = AscFormat.CAxisUnitsLabel; + this.m_oFactoryClass[AscDFH.historyitem_type_Binning] = AscFormat.CBinning; + this.m_oFactoryClass[AscDFH.historyitem_type_CategoryAxisScaling] = AscFormat.CCategoryAxisScaling; + this.m_oFactoryClass[AscDFH.historyitem_type_ChartData] = AscFormat.CChartData; + this.m_oFactoryClass[AscDFH.historyitem_type_Clear] = AscFormat.CClear; + this.m_oFactoryClass[AscDFH.historyitem_type_Copyrights] = AscFormat.CCopyrights; + this.m_oFactoryClass[AscDFH.historyitem_type_Data] = AscFormat.CData; + this.m_oFactoryClass[AscDFH.historyitem_type_DataLabel] = AscFormat.CDataLabel; + this.m_oFactoryClass[AscDFH.historyitem_type_DataLabelHidden] = AscFormat.CDataLabelHidden; + this.m_oFactoryClass[AscDFH.historyitem_type_DataLabels] = AscFormat.CDataLabels; + this.m_oFactoryClass[AscDFH.historyitem_type_DataLabelVisibilities] = AscFormat.CDataLabelVisibilities; + this.m_oFactoryClass[AscDFH.historyitem_type_DataPoint] = AscFormat.CDataPoint; + this.m_oFactoryClass[AscDFH.historyitem_type_FormatOverride] = AscFormat.CFormatOverride; + this.m_oFactoryClass[AscDFH.historyitem_type_FormatOverrides] = AscFormat.CFormatOverrides; + this.m_oFactoryClass[AscDFH.historyitem_type_Formula] = AscFormat.CFormula; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoCache] = AscFormat.CGeoCache; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoChildEntities] = AscFormat.CGeoChildEntities; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoChildEntitiesQuery] = AscFormat.CGeoChildEntitiesQuery; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoChildEntitiesQueryResult] = AscFormat.CGeoChildEntitiesQueryResult; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoChildEntitiesQueryResults] = AscFormat.CGeoChildEntitiesQueryResults; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoChildTypes] = AscFormat.CGeoChildTypes; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoData] = AscFormat.CGeoData; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoDataEntityQuery] = AscFormat.CGeoDataEntityQuery; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoDataEntityQueryResult] = AscFormat.CGeoDataEntityQueryResult; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoDataEntityQueryResults] = AscFormat.CGeoDataEntityQueryResults; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoDataPointQuery] = AscFormat.CGeoDataPointQuery; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoDataPointToEntityQuery] = AscFormat.CGeoDataPointToEntityQuery; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoDataPointToEntityQueryResult] = AscFormat.CGeoDataPointToEntityQueryResult; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoDataPointToEntityQueryResults] = AscFormat.CGeoDataPointToEntityQueryResults; + this.m_oFactoryClass[AscDFH.historyitem_type_Geography] = AscFormat.CGeography; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoHierarchyEntity] = AscFormat.CGeoHierarchyEntity; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoLocation] = AscFormat.CGeoLocation; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoLocationQuery] = AscFormat.CGeoLocationQuery; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoLocationQueryResult] = AscFormat.CGeoLocationQueryResult; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoLocationQueryResults] = AscFormat.CGeoLocationQueryResults; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoLocations] = AscFormat.CGeoLocations; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoPolygon] = AscFormat.CGeoPolygon; + this.m_oFactoryClass[AscDFH.historyitem_type_GeoPolygons] = AscFormat.CGeoPolygons; + this.m_oFactoryClass[AscDFH.historyitem_type_Gridlines] = AscFormat.CGridlines; + this.m_oFactoryClass[AscDFH.historyitem_type_Dimension] = AscFormat.CDimension; + this.m_oFactoryClass[AscDFH.historyitem_type_NumericDimension] = AscFormat.CNumericDimension; + this.m_oFactoryClass[AscDFH.historyitem_type_PercentageColorPosition] = AscFormat.CPercentageColorPosition; + this.m_oFactoryClass[AscDFH.historyitem_type_PlotAreaRegion] = AscFormat.CPlotAreaRegion; + this.m_oFactoryClass[AscDFH.historyitem_type_PlotSurface] = AscFormat.CPlotSurface; + this.m_oFactoryClass[AscDFH.historyitem_type_Series] = AscFormat.CSeries; + this.m_oFactoryClass[AscDFH.historyitem_type_SeriesElementVisibilities] = AscFormat.CSeriesElementVisibilities; + this.m_oFactoryClass[AscDFH.historyitem_type_SeriesLayoutProperties] = AscFormat.CSeriesLayoutProperties; + this.m_oFactoryClass[AscDFH.historyitem_type_Statistics] = AscFormat.CStatistics; + this.m_oFactoryClass[AscDFH.historyitem_type_StringDimension] = AscFormat.CStringDimension; + this.m_oFactoryClass[AscDFH.historyitem_type_Subtotals] = AscFormat.CSubtotals; + this.m_oFactoryClass[AscDFH.historyitem_type_TextData] = AscFormat.CTextData; + this.m_oFactoryClass[AscDFH.historyitem_type_TickMarks] = AscFormat.CTickMarks; + this.m_oFactoryClass[AscDFH.historyitem_type_ValueAxisScaling] = AscFormat.CValueAxisScaling; + this.m_oFactoryClass[AscDFH.historyitem_type_ValueColorEndPosition] = AscFormat.CValueColorEndPosition; + this.m_oFactoryClass[AscDFH.historyitem_type_ValueColorMiddlePosition] = AscFormat.CValueColorMiddlePosition; + this.m_oFactoryClass[AscDFH.historyitem_type_ValueColorPositions] = AscFormat.CValueColorPositions; + this.m_oFactoryClass[AscDFH.historyitem_type_ValueColors] = AscFormat.CValueColors; this.InitOFormClasses(); }; diff --git a/common/TableIdChanges.js b/common/TableIdChanges.js index 873b92ffad..4b20216dfd 100644 --- a/common/TableIdChanges.js +++ b/common/TableIdChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/api/actionOnTimer.js b/common/api/actionOnTimer.js index 738da9a722..56dd233cd8 100644 --- a/common/api/actionOnTimer.js +++ b/common/api/actionOnTimer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -95,6 +95,15 @@ this.OnEnd(); } }; + CActionOnTimerBase.prototype.Stop = function() + { + this.Reset(); + this.Start = false; + }; + CActionOnTimerBase.prototype.IsInProgress = function() + { + return this.Start; + }; CActionOnTimerBase.prototype.Reset = function() { if (this.TimerId) diff --git a/common/api/addTextSettings.js b/common/api/addTextSettings.js index cecc675267..f72b22f2bf 100644 --- a/common/api/addTextSettings.js +++ b/common/api/addTextSettings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/api/auto-hyphenation-settings.js b/common/api/auto-hyphenation-settings.js index b6af1360a8..b7556ed7ba 100644 --- a/common/api/auto-hyphenation-settings.js +++ b/common/api/auto-hyphenation-settings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/api/autoCorrectSettings.js b/common/api/autoCorrectSettings.js index cace6ad6a0..ebf67acaf5 100644 --- a/common/api/autoCorrectSettings.js +++ b/common/api/autoCorrectSettings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/api/firstLetterExceptions.js b/common/api/firstLetterExceptions.js index 16b1726934..dd43972127 100644 --- a/common/api/firstLetterExceptions.js +++ b/common/api/firstLetterExceptions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/api/restrictionSettings.js b/common/api/restrictionSettings.js index fac6ba05ac..9a731f4186 100644 --- a/common/api/restrictionSettings.js +++ b/common/api/restrictionSettings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/api/searchSettings.js b/common/api/searchSettings.js index 3f9de0201c..87f0136d32 100644 --- a/common/api/searchSettings.js +++ b/common/api/searchSettings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/api/spellCheckSettings.js b/common/api/spellCheckSettings.js index 72b575997c..dd07abeaf6 100644 --- a/common/api/spellCheckSettings.js +++ b/common/api/spellCheckSettings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/api/tableStylesPreviewGenerator.js b/common/api/tableStylesPreviewGenerator.js index 29dc8957a1..ac84a98a39 100644 --- a/common/api/tableStylesPreviewGenerator.js +++ b/common/api/tableStylesPreviewGenerator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/apiBase.js b/common/apiBase.js index ede25b3c84..13e029c116 100644 --- a/common/apiBase.js +++ b/common/apiBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -85,6 +85,7 @@ this.documentShardKey = undefined; this.documentWopiSrc = undefined; this.documentIsWopi = false; + this.documentUserSessionId = undefined; this.documentOpenOptions = undefined; // Опции при открытии (пока только опции для CSV) @@ -166,7 +167,6 @@ this.forceSaveButtonContinue = false; this.forceSaveTimeoutTimeout = null; this.forceSaveForm = null; - this.disconnectOnSave = null; this.disconnectRestrictions = null;//to restore restrictions after disconnect this.forceSaveUndoRequest = false; // Флаг нужен, чтобы мы знали, что данное сохранение пришло по запросу Undo в совместке @@ -230,7 +230,8 @@ this.binaryChanges = false; this.isBlurEditor = false; - + + this.builderFonts = {}; this.formatPainter = new AscCommon.CFormatPainter(this); this.eyedropper = new AscCommon.CEyedropper(this); @@ -305,7 +306,11 @@ if(t.isDocumentLoadComplete) { //todo disconnect and downloadAs ability t.sendEvent("asc_onError", Asc.c_oAscError.ID.EditingError, c_oAscError.Level.NoCritical); - t.asc_setViewMode(true); + if (t.isCoAuthoringEnable) { + t.asc_coAuthoringDisconnect(); + } else { + t.asc_setViewMode(true); + } } else { t.sendEvent("asc_onError", Asc.c_oAscError.ID.ConvertationOpenError, c_oAscError.Level.Critical); @@ -485,6 +490,12 @@ //чтобы в versionHistory был один documentId для auth и open this.CoAuthoringApi.setDocId(this.documentId); + if (this.DocInfo.get_Wopi()) + { + this.documentWopiSrc = this.DocInfo.get_Wopi()["WOPISrc"]; + this.documentUserSessionId = this.DocInfo.get_Wopi()["UserSessionId"]; + this.documentIsWopi = true; + } if (this.documentOpenOptions) { if (this.documentOpenOptions["watermark"]) @@ -498,16 +509,10 @@ window["Asc"]["Addons"]["forms"] = false; AscCommon.g_oTableId.InitOFormClasses(); } - - if (this.documentOpenOptions[Asc.c_sWopiSrcName]) - { - this.documentWopiSrc = this.documentOpenOptions[Asc.c_sWopiSrcName]; - this.documentIsWopi = true; - } } if (!this.documentWopiSrc) { //todo add tenant in origin? - this.documentShardKey = this.documentId; + this.documentShardKey = this.DocInfo.get_Shardkey() || this.documentId; } } @@ -689,6 +694,7 @@ this.restrictions = val; this.onUpdateRestrictions(additionalSettings); this.checkInputMode(); + this.sendEvent("asc_onChangeRestrictions", this.restrictions); }; baseEditorsApi.prototype.getViewMode = function() { @@ -699,12 +705,14 @@ this.restrictions |= val; this.onUpdateRestrictions(); this.checkInputMode(); + this.sendEvent("asc_onChangeRestrictions", this.restrictions); }; baseEditorsApi.prototype.asc_removeRestriction = function(val) { this.restrictions &= ~val; this.onUpdateRestrictions(); this.checkInputMode(); + this.sendEvent("asc_onChangeRestrictions", this.restrictions); }; baseEditorsApi.prototype.asc_setCanSendChanges = function(canSend) { @@ -1032,11 +1040,8 @@ { this.sendEvent("asc_onPrint"); }; - // Open - baseEditorsApi.prototype.asc_LoadDocument = function(versionHistory, isRepeat) + baseEditorsApi.prototype._getOpenCmd = function(versionHistory) { - // Меняем тип состояния (на открытие) - this.advancedOptionsAction = AscCommon.c_oAscAdvancedOptionsAction.Open; var rData = null; if (!(this.DocInfo && this.DocInfo.get_OfflineApp())) { @@ -1049,7 +1054,7 @@ } } let convertToOrigin = ''; - if (!!this.DocInfo.get_DirectUrl() && this["asc_isSupportFeature"]("ooxml")) { + if (!!(this.DocInfo && this.DocInfo.get_DirectUrl()) && this["asc_isSupportFeature"]("ooxml")) { convertToOrigin = '.docx.xlsx.pptx'; } @@ -1073,15 +1078,25 @@ if (versionHistory) { rData["serverVersion"] = versionHistory.serverVersion; - rData["closeonerror"] = versionHistory.isRequested; + rData["closeonerror"] = versionHistory.isRequested; rData["tokenHistory"] = versionHistory.token; //чтобы результат пришел только этому соединению, а не всем кто в документе rData["userconnectionid"] = this.CoAuthoringApi.getUserConnectionId(); } } + return rData; + } + // Open + baseEditorsApi.prototype.asc_LoadDocument = function(versionHistory, isRepeat) + { + // Меняем тип состояния (на открытие) + this.advancedOptionsAction = AscCommon.c_oAscAdvancedOptionsAction.Open; + + let rData = this._getOpenCmd(versionHistory); if (versionHistory) { this.CoAuthoringApi.versionHistory(rData); } else { + //todo auth on connection this.CoAuthoringApi.auth(this.getViewMode(), rData); } @@ -1173,7 +1188,7 @@ { // здесь прокинуть евент о заморозке меню }; - baseEditorsApi.prototype.asyncImagesDocumentStartLoaded = function() + baseEditorsApi.prototype.asyncImagesDocumentStartLoaded = function(aImages) { // евент о заморозке не нужен... оно и так заморожено // просто нужно вывести информацию в статус бар (что началась загрузка картинок) @@ -1314,6 +1329,9 @@ baseEditorsApi.prototype._haveOtherChanges = function () { return false; }; + baseEditorsApi.prototype._haveChanges = function() { + return AscCommon.History.Have_Changes(); + }; baseEditorsApi.prototype._onSaveCallback = function (e) { var t = this; var nState; @@ -1552,6 +1570,8 @@ // CoAuthoring baseEditorsApi.prototype._coAuthoringInit = function() { + this.initCollaborativeEditing(); + var t = this; //Если User не задан, отключаем коавторинг. if (null == this.User || null == this.User.asc_getId()) @@ -1606,6 +1626,7 @@ if (!t.isOnLoadLicense) { t._onEndPermissions(); } else { + //todo auth on connection if (t.CoAuthoringApi.get_isAuth()) { t.CoAuthoringApi.auth(t.getViewMode(), undefined, t.isIdle()); } else { @@ -1666,25 +1687,19 @@ var reason = data["reason"]; var interval = data["interval"]; var extendSession = true; - if (c_oCloseCode.sessionIdle == code) { + if (c_oCloseCode.sessionIdle === code) { var idleTime = t.isIdle(); if (idleTime > interval) { extendSession = false; } else { t.CoAuthoringApi.extendSession(idleTime); } - } else if (c_oCloseCode.sessionAbsolute == code) { + } else if (c_oCloseCode.sessionAbsolute === code) { extendSession = false; } if (!extendSession) { - if (t.asc_Save(false, true)) { - //enter view mode because save async - t.setViewModeDisconnect(AscCommon.getEnableDownloadByCloseCode(code)); - t.disconnectOnSave = {code: code, reason: reason}; - } else { - t.CoAuthoringApi.sendClientLog('debug', 'disconnect code:' + code + ';reason:' + reason); - t.CoAuthoringApi.disconnect(code, reason); - } + t.CoAuthoringApi.sendClientLog('debug', 'disconnect code:' + code + ';reason:' + reason); + t.CoAuthoringApi.disconnect(code, reason); } }; this.CoAuthoringApi.onForceSave = function(data) { @@ -1788,7 +1803,8 @@ { t.asyncServerIdEndLoaded(); } - if (null != opt_closeCode) { + let isSessionIdleDisconnect = AscCommon.c_oCloseCode.sessionIdle === opt_closeCode; + if (null != opt_closeCode && !isSessionIdleDisconnect) { if (null !== t.disconnectRestrictions) { t.sync_EndAction(Asc.c_oAscAsyncActionType.Information, Asc.c_oAscAsyncAction.Disconnect); t.asc_setRestriction(t.disconnectRestrictions); @@ -1806,6 +1822,11 @@ t.disconnectRestrictions = t.restrictions; t.sync_StartAction(Asc.c_oAscAsyncActionType.Information, Asc.c_oAscAsyncAction.Disconnect); t.asc_setRestriction(Asc.c_oAscRestrictionType.View); + if (isSessionIdleDisconnect) { + t.waitNotIdle(undefined, function () { + t.CoAuthoringApi.connect(); + }); + } } }; this.CoAuthoringApi.onDocumentOpen = function (inputWrap) { @@ -1904,7 +1925,9 @@ }; this._coAuthoringInitEnd(); - this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', this.editorId, this.documentFormatSave, this.DocInfo, this.documentShardKey, this.documentWopiSrc); + + let openCmd = this._getOpenCmd(); + this.CoAuthoringApi.init(this.User, this.documentId, this.documentCallbackUrl, 'fghhfgsjdgfjs', this.editorId, this.documentFormatSave, this.DocInfo, this.documentShardKey, this.documentWopiSrc, this.documentUserSessionId, openCmd); }; baseEditorsApi.prototype._coAuthoringInitEnd = function() { @@ -2145,6 +2168,7 @@ oAdditionalData["title"] = AscCommon.changeFileExtention(this.documentTitle, AscCommon.getExtentionByFormat(options.fileType), Asc.c_nMaxDownloadTitleLen); oAdditionalData["nobase64"] = isNoBase64; oAdditionalData["isSaveAs"] = options.isSaveAs; + oAdditionalData["saveAsPath"] = options.wopiSaveAsPath; let locale = this.asc_getLocale() || undefined; if (typeof locale === "string") { locale = Asc.g_oLcidNameToIdMap[locale]; @@ -2308,6 +2332,13 @@ { return this.textArtPreviewManager.getWordArtPreviews(); }; + baseEditorsApi.prototype.isUseOldMobileVersion = function() + { + if (!this.isMobileVersion) + return false; + // return true for old scheme + return false; + }; // Add image baseEditorsApi.prototype.AddImageUrl = function(urls, imgProp, token, obj) { @@ -2355,7 +2386,7 @@ var t = this; if (this.WordControl) // после показа диалога может не прийти mouseUp this.WordControl.m_bIsMouseLock = false; - AscCommon.ShowImageFileDialog(this.documentId, this.documentUserId, this.CoAuthoringApi.get_jwt(), this.documentShardKey, this.documentWopiSrc, function(error, files) + AscCommon.ShowImageFileDialog(this.documentId, this.documentUserId, this.CoAuthoringApi.get_jwt(), this.documentShardKey, this.documentWopiSrc, this.documentUserSessionId, function(error, files) { t._uploadCallback(error, files, obj); }, function(error) @@ -2388,7 +2419,7 @@ } obj && obj.fStartUploadImageCallback && obj.fStartUploadImageCallback(); this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.UploadImage); - AscCommon.UploadImageFiles(files, this.documentId, this.documentUserId, this.CoAuthoringApi.get_jwt(), this.documentShardKey, this.documentWopiSrc, function(error, urls) + AscCommon.UploadImageFiles(files, this.documentId, this.documentUserId, this.CoAuthoringApi.get_jwt(), this.documentShardKey, this.documentWopiSrc, this.documentUserSessionId, function(error, urls) { if (c_oAscError.ID.No !== error) { @@ -2614,12 +2645,16 @@ AscCommon.CollaborativeEditing.Apply_Changes(); } }; + baseEditorsApi.prototype.getVersionHistory = function() + { + return this.VersionHistory; + }; baseEditorsApi.prototype.asc_undoAllChanges = function() { }; baseEditorsApi.prototype.asc_getAdvancedOptions = function () { var cp = { - 'codepage' : AscCommon.c_oAscCodePageUtf8, + 'codepage' : AscCommon.c_oAscCodePageNone, 'encodings' : AscCommon.getEncodingParams() }; return new AscCommon.asc_CAdvancedOptions(cp); @@ -2645,7 +2680,7 @@ if (this.canSave && this._saveCheck() && this.canSendChanges()) { this.IsUserSave = !isAutoSave; - if (this.asc_isDocumentCanSave() || AscCommon.History.Have_Changes() || this._haveOtherChanges() || + if (this.asc_isDocumentCanSave() || this._haveChanges() || this._haveOtherChanges() || this.canUnlockDocument || this.forceSaveUndoRequest) { if (this._prepareSave(isIdle)) { // Не даем пользователю сохранять, пока не закончится сохранение (если оно началось) @@ -2786,6 +2821,14 @@ this.sendEvent("asc_onError", c_oAscError.ID.ConvertationOpenFormat, c_oAscError.Level.Critical, errorData); return; } + if (this.VersionHistory && this.VersionHistory.documentSha256) { + let sha256 = AscCommon.Digest.sha256(this.openResult.data, 0, this.openResult.data.length); + if (this.VersionHistory.documentSha256 !== AscCommon.Hex.encode(sha256) ) { + this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Open); + this.sendEvent("asc_onError", c_oAscError.ID.DocumentAndChangeMismatch, c_oAscError.Level.Critical); + return; + } + } this.openDocument(this.openResult); this.sendEvent("asc_onDocumentPassword", ("" !== this.currentPassword)); @@ -2795,7 +2838,8 @@ }; baseEditorsApi.prototype._onEndLoadSdk = function() { - AscCommon.g_oTableId.init(); + AscCommon.g_oTableId.init(this); + this.initCollaborativeEditing(); // init drag&drop var t = this; @@ -2830,6 +2874,9 @@ this.checkDocumentTitleFonts(); }; + baseEditorsApi.prototype.initCollaborativeEditing = function() + { + }; baseEditorsApi.prototype.checkDocumentTitleFonts = function() { if (!AscFonts.FontPickerByCharacter || !this.documentTitle) return; @@ -3280,8 +3327,36 @@ { return this.asc_canPaste(); }; - baseEditorsApi.prototype.onEndBuilderScript = function() + baseEditorsApi.prototype.onEndBuilderScript = function(callback) + { + let _t = this; + this.loadBuilderFonts(function() + { + return _t._onEndBuilderScript(callback); + }); + + return true; + }; + baseEditorsApi.prototype.addBuilderFont = function(fontName) { + this.builderFonts[fontName] = true; + }; + baseEditorsApi.prototype.loadBuilderFonts = function(callback) + { + let _t = this; + this.incrementCounterLongAction(); + AscCommon.g_font_loader.LoadFonts(this.builderFonts, function(){ + _t.decrementCounterLongAction(); + callback(); + }); + this.builderFonts = {}; + }; + baseEditorsApi.prototype._onEndBuilderScript = function(callback) + { + // This method is intended to be overridden + if (callback) + callback(true); + return true; }; @@ -3736,15 +3811,29 @@ if (!this.canSave || !this._saveCheck()) return 0; - if (this.isPdfEditor()) - return 0; - //viewer - if (this.isViewMode) + if (this.isViewMode || this.isPdfViewer) return 0; return new Date().getTime() - this.lastWorkTime; }; + baseEditorsApi.prototype.waitNotIdle = function (lastWorkTime, callback) + { + let t = this; + //todo remove first timeout + //start with timeout to aviod lastWorkTime update on: + //onDisconnect -> asc_setRestriction -> checkLastWork and CheckTargetUpdate -> checkLastWork + setTimeout(function () { + if (undefined === lastWorkTime) { + lastWorkTime = t.getLastWork(); + } + if (lastWorkTime < t.getLastWork()) { + callback(); + } else { + t.waitNotIdle(lastWorkTime, callback); + } + }, 100); + } baseEditorsApi.prototype.checkInterfaceElementBlur = function() { @@ -3760,6 +3849,11 @@ document.activeElement.dispatchEvent(e); }; + + baseEditorsApi.prototype.getLastWork = function() + { + return this.lastWorkTime; + }; baseEditorsApi.prototype.checkLastWork = function() { this.lastWorkTime = new Date().getTime(); @@ -3775,9 +3869,10 @@ baseEditorsApi.prototype.asc_setCurrentPassword = function(password) { + this.currentPasswordOld = this.currentPassword; this.currentPassword = password; this.asc_Save(false, undefined, true); - if (!(this.DocInfo && this.DocInfo.get_OfflineApp())) { + if (!(this.DocInfo && this.DocInfo.get_OfflineApp()) && !this.isViewMode && !this.isPdfViewer) { var rData = { "c": 'setpassword', "id": this.documentId, @@ -4469,6 +4564,10 @@ this.updateDarkMode(); }; + baseEditorsApi.prototype.canEnterText = function() + { + return this.canEdit(); + }; baseEditorsApi.prototype.updateDarkMode = function() { }; @@ -5024,6 +5123,8 @@ if (types && types[i] && types[i].prototype && types[i].prototype.fromCValue) arguments[i] = types[i].prototype.fromCValue(arguments[i]); } + if (!this[name]) + console.log("Wrap unexisted function: " + name); let result = this[name].apply(this, arguments); if (result && result.toCValue) result = result.toCValue(); @@ -5031,19 +5132,73 @@ } }; - baseEditorsApi.prototype.wrapEvent = function(name) + baseEditorsApi.prototype.wrapEvent = function(name) { - this.asc_registerCallback(name, function() - { - for (let i = 0, len = arguments.length; i < len; i++) + var wrapArray = function(args) { + let arrayResult = new Array(args.length); + for (let i = 0, len = args.length; i < len; i++) { - if (arguments[i] && arguments[i].toCValue) - arguments[i] = arguments[i].toCValue(); + arrayResult[i] = args[i]; + if (!args[i]) + continue; + if (args[i].toCValue) + arrayResult[i] = args[i].toCValue(); + else if (Array.isArray(args[i])) + arrayResult[i] = wrapArray(args[i]); } - window["native"]["onJsEvent"](name, Array.from(arguments)); + return arrayResult; + }; + + this.asc_registerCallback(name, function() + { + window["native"]["onJsEvent"](name, wrapArray(arguments)); }); }; + baseEditorsApi.prototype.setPluginsOptions = function(options) + { + this.externalPluginsOptions = options; + + if (window.g_asc_plugins) + window.g_asc_plugins.onUpdateOptions(); + }; + + baseEditorsApi.prototype.getCustomProperties = function() { + return null; + }; + + baseEditorsApi.prototype.asc_getAllCustomProperties = function() { + let oCustomProperties = this.getCustomProperties(); + if(!oCustomProperties) return []; + return oCustomProperties.getAllProperties(); + }; + + baseEditorsApi.prototype.asc_addCustomProperty = function(name, type, value) { + this.addCustomProperty(name, type, value); + }; + + baseEditorsApi.prototype.asc_modifyCustomProperty = function(idx, name, type, value) { + this.modifyCustomProperty(idx, name, type, value); + }; + + + baseEditorsApi.prototype.asc_removeCustomProperty = function(idx) { + this.removeCustomProperty(idx); + }; + + baseEditorsApi.prototype.addCustomProperty = function(name, type, value) { + }; + + baseEditorsApi.prototype.modifyCustomProperty = function(idx, name, type, value) { + }; + + baseEditorsApi.prototype.removeCustomProperty = function(idx) { + }; + + baseEditorsApi.prototype.asc_setPdfViewer = function(isPdfViewer) { + }; + + //----------------------------------------------------------export---------------------------------------------------- window['AscCommon'] = window['AscCommon'] || {}; window['AscCommon'].baseEditorsApi = baseEditorsApi; @@ -5119,8 +5274,34 @@ prot['asc_hideMediaControl'] = prot.asc_hideMediaControl; prot['asc_getInputLanguage'] = prot.asc_getInputLanguage; + prot['setPluginsOptions'] = prot.setPluginsOptions; + // passwords prot["asc_setCurrentPassword"] = prot.asc_setCurrentPassword; prot["asc_resetPassword"] = prot.asc_resetPassword; + // NATIVE INITIALIZER (need be in min version) + window["InitNativeEditors"] = function() + { + AscFonts.checkAllFonts(); + + let loader = AscCommon.g_font_loader; + loader.fontFiles = AscFonts.g_font_files; + loader.fontInfos = AscFonts.g_font_infos; + loader.map_font_index = AscFonts.g_map_font_index; + + window["InitNativeObject"](); + if (window["InitNativeTextMeasurer"]) // fonts_ie.js + window["InitNativeTextMeasurer"](); + window["InitNativeZLib"](); + }; + + //custom properties + prot["asc_getAllCustomProperties"] = prot.asc_getAllCustomProperties; + prot["asc_addCustomProperty"] = prot.asc_addCustomProperty; + prot["asc_modifyCustomProperty"] = prot.asc_modifyCustomProperty; + prot["asc_removeCustomProperty"] = prot.asc_removeCustomProperty; + + prot["asc_setPdfViewer"] = prot.asc_setPdfViewer; + })(window); diff --git a/common/apiBase_plugins.js b/common/apiBase_plugins.js index c0eeeb6f00..d286c21fd3 100644 --- a/common/apiBase_plugins.js +++ b/common/apiBase_plugins.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -56,29 +56,32 @@ /** * The editors which the plugin is available for: - * * word - text document editor, - * * cell - spreadsheet editor, - * * slide - presentation editor, - * * pdf - pdf editor. + * word - text document editor, + * cell - spreadsheet editor, + * slide - presentation editor, + * pdf - pdf editor. * @typedef {("word" | "cell" | "slide" | "pdf")} editorType - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/editorType.js + */ /** * The data type selected in the editor and sent to the plugin: - * * text - the text data, - * * html - HTML formatted code, - * * ole - OLE object data, - * * desktop - the desktop editor data, - * * destop-external - the main page data of the desktop app (system messages), - * * none - no data will be send to the plugin from the editor, - * * sign - the sign for the keychain plugin. + * text - the text data, + * html - HTML formatted code, + * ole - OLE object data, + * desktop - the desktop editor data, + * destop-external - the main page data of the desktop app (system messages), + * none - no data will be send to the plugin from the editor, + * sign - the sign for the keychain plugin. * @typedef {("text" | "html" | "ole" | "desktop" | "destop-external" | "none" | "sign")} initDataType - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/initDataType.js + */ /** * Plugin event ("onDocumentContentReady", "onTargetPositionChanged", onClick", "onInputHelperClear", "onInputHelperInput", etc.). * @typedef {string} EventType - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/EventType.js + */ /** * Plugin variations, or subplugins, that are created inside the origin plugin. @@ -148,11 +151,12 @@ * @property {boolean} [primary] - Defines if the button is primary or not. The primary flag affects the button skin only. * @property {boolean} [isViewer] - Defines if the button is shown in the viewer mode only or not. * @property {localeTranslate} [textLocale] - Translations for the text field. The object keys are the two letter language codes (ru, de, it, etc.) and the values are the button label translation for each language. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/Button.js */ /** * The OLE object properties - * @typed {Object} OLEProperties + * @typedef {Object} OLEProperties * @property {string} data - OLE object data (internal format). * @property {string} imgSrc - A link to the image (its visual representation) stored in the OLE object and used by the plugin. * @property {string} guid - An identifier of the plugin which can edit the current OLE object and must be of the *asc.{UUID}* type. @@ -160,6 +164,7 @@ * @property {number} height - The OLE object height measured in millimeters. * @property {number} widthPix - The OLE object image width in pixels. * @property {number} heightPix - The OLE object image height in pixels. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/OLEProperties.js */ /** @@ -177,7 +182,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias GetVersion * @returns {string} - The editor version. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetVersion.js + */ Api.prototype["pluginMethod_GetVersion"] = function() { return this.GetVersion(); }; /** @@ -187,7 +193,8 @@ * @alias AddOleObject * @this Api * @param {OLEProperties} data - The OLE object properties. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddOleObject.js + */ Api.prototype["pluginMethod_AddOleObject"] = function(data) { return this.asc_addOleObject(data); }; /** @@ -196,7 +203,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias EditOleObject * @param {OLEProperties} data - The OLE object properties. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/EditOleObject.js + */ Api.prototype["pluginMethod_EditOleObject"] = function(data) { return this.asc_editOleObject(data); }; @@ -206,6 +214,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias GetSelectedOleObjects * @returns {OLEProperties[]} - An array of the *OLEProperties* objects containing the data about the OLE object parameters. + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetSelectedOleObjects.js */ Api.prototype["pluginMethod_GetSelectedOleObjects"] = function() { @@ -246,7 +255,8 @@ * @property {number} m_shLineGap The typographic line gap for the current font. * @property {number} m_shXHeight The distance between the baseline and the approximate height of non-ascending lowercase letters measured in FUnits. * @property {number} m_shCapHeight The distance between the baseline and the approximate height of uppercase letters measured in FUnits. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/FontInfo.js + */ /** * Returns the fonts list. @@ -254,7 +264,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias GetFontList * @returns {FontInfo[]} - An array of the FontInfo objects containing the data about the used fonts. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetFontList.js + */ Api.prototype["pluginMethod_GetFontList"] = function() { return AscFonts.g_fontApplication.g_fontSelections.SerializeList(); @@ -267,7 +278,8 @@ * @alias InputText * @param {string} text - A string value that specifies the text to be inserted into the document. * @param {string} textReplace - A string value that specifies the text to be replaced with a new text. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/InputText.js + */ Api.prototype["pluginMethod_InputText"] = function(text, textReplace) { if (!this.canEdit() || this.isPdfEditor() || !AscCommon.g_inputContext) @@ -289,6 +301,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias PasteHtml * @param {string} htmlText - A string value that specifies the text in the *HTML* format to be pasted into the document. + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/PasteHtml.js */ Api.prototype["pluginMethod_PasteHtml"] = function (htmlText) { if (!AscCommon.g_clipboardBase) @@ -362,7 +375,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias PasteText * @param {string} text - A string value that specifies the text to be pasted into the document. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/PasteText.js + */ Api.prototype["pluginMethod_PasteText"] = function(text) { if (!AscCommon.g_clipboardBase) @@ -376,7 +390,8 @@ * @typedef {Object} Macros * @property {Array.} macrosArray - An array of macros codes (*[{"name": "Macros1", "value": "{macrosCode}"}]*). * @property {number} current - A current macro index. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/Macros.js + */ /** * Returns the document macros. @@ -384,7 +399,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias GetMacros * @returns {Macros} - The Macros object containing the data about all the macros from the document - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetMacros.js + */ Api.prototype["pluginMethod_GetMacros"] = function() { return this.asc_getMacros(); @@ -396,7 +412,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias SetMacros * @param {Macros} data - The *Macros* object containing the data about all the macros from the document. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SetMacros.js + */ Api.prototype["pluginMethod_SetMacros"] = function(data) { return this.asc_setMacros(data); @@ -409,6 +426,7 @@ * @alias GetVBAMacros * @returns {string | null} VBA xml macros. * @since 7.3.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetVBAMacros.js */ Api.prototype["pluginMethod_GetVBAMacros"] = function() { @@ -422,7 +440,8 @@ * @alias StartAction * @param {number} type - A value which defines an action type which can take 0 if this is an *Information* action or 1 if this is a *BlockInteraction* action. * @param {string} description - A string value that specifies the description text for the start action of the operation. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/StartAction.js + */ Api.prototype["pluginMethod_StartAction"] = function(type, description) { this.sync_StartAction((type == "Block") ? Asc.c_oAscAsyncActionType.BlockInteraction : Asc.c_oAscAsyncActionType.Information, description); @@ -436,7 +455,8 @@ * @param {number} type - A value which defines an action type which can take "Block" if this is the *BlockInteraction* action or "Information if this is the *Information* action. * @param {string} description - A string value that specifies the description text for the operation end action. * @param {string} status - The error status code. If no error occurs, then an empty string is passed. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/EndAction.js + */ Api.prototype["pluginMethod_EndAction"] = function(type, description, status) { this.sync_EndAction((type == "Block") ? Asc.c_oAscAsyncActionType.BlockInteraction : Asc.c_oAscAsyncActionType.Information, description); @@ -489,17 +509,18 @@ * @alias OnEncryption * @param {object} obj - The encryption properties. * @param {string} obj.type - The type of encrypting operation: - * * generatePassword - generates a password for the document, - * * getPasswordByFile - sends the password when opening the document, - * * encryptData - encrypts changes when co-editing, - * * decryptData - decrypts changes when co-editing. + * generatePassword - generates a password for the document, + * getPasswordByFile - sends the password when opening the document, + * encryptData - encrypts changes when co-editing, + * decryptData - decrypts changes when co-editing. * @param {string} obj.password - A string value specifying the password to access the document. * @param {string} obj.data - Encrypted/decrypted changes. * @param {boolean} obj.check - Checks if the encryption/decryption operation is successful or not (used only for *encryptData* or *decryptData* types). * @param {string} obj.docinfo - An unencrypted part of the encrypted file. * @param {string} obj.hash - A string value specifying a file hash (*sha256* by default). * @param {string} obj.error - A string value specifying an error that occurs (the "" value means that the operation is successful). - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/OnEncryption.js + */ Api.prototype["pluginMethod_OnEncryption"] = function(obj) { var _editor = window["Asc"]["editor"] ? window["Asc"]["editor"] : window.editor; @@ -586,7 +607,8 @@ * @property {boolean} paragraphs.runs.italic Defines if the current text is displayed italic or not. * @property {boolean} paragraphs.runs.strikeout Defines if the current text is displayed struck through or not. * @property {boolean} paragraphs.runs.underline Defines if the current text is displayed underlined or not. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/watermark_on_draw.js + */ /** * An object containing the form properties. @@ -596,7 +618,8 @@ * @property {string} tags.checkBox The checkbox form value (true - checked, false - unchecked). * @property {string} tags.picture The image form value (a link to the image). * @property {string} tags.comboBox The combo box form value (one of the items from the combo box list values). - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/fillForms.js + */ /** * Sets the properties to the document. @@ -609,7 +632,8 @@ * @param {?string} obj.watermark_on_draw - A string value for {@link global#watermark_on_draw watermark properties} in JSON format. * @param {?boolean} obj.disableAutostartMacros - Sets a flag that specifies that macros are started automatically when the editor opens. * @param {?string} obj.fillForms - Sets rules in JSON format for filling document {@link global#fillForms forms} by tags. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SetProperties.js + */ Api.prototype["pluginMethod_SetProperties"] = function(obj) { if (!this.isDocumentLoadComplete && obj) @@ -813,6 +837,33 @@ } }; + /** + * The plugin options. + * @typedef {Object} PluginOptions + * @property {object} all The parameters which will be set for all plugins ({ "all" : { key, value } }). + * @property {object} plugin_guid The parameters which will be set for a specific plugin. The plugin must be specified with the plugin GUID of the asc.{UUID} type ({ "plugin_guid" : { keyForSpecificPlugin : valueForSpecificPlugin } }). + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/PluginOptions.js + */ + + /** + * Configures plugins from an external source. The settings can be set for all plugins or for a specific plugin. + * For example, this method can be used to pass an authorization token to the plugin. This method can be used only with the connector class. + * @memberof Api + * @typeofeditors ["CDE", "CSE", "CPE"] + * @alias SetPluginsOptions + * @param {PluginOptions} options - Plugin options. + * @since 8.1.1 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SetPluginsOptions.js + */ + Api.prototype["pluginMethod_SetPluginsOptions"] = function(options) + { + let guid = window.g_asc_plugins.getCurrentPluginGuid(); + let runObject = window.g_asc_plugins.runnedPluginsMap[guid]; + if (!runObject.isConnector) + return; + this.setPluginsOptions(options); + }; + /** * Shows the input helper. * @memberof Api @@ -822,7 +873,8 @@ * @param {number} w - A number which specifies the window width measured in millimeters. * @param {number} h - A number which specifies the window height measured in millimeters. * @param {boolean} isKeyboardTake - Defines if the keyboard is caught (**true**) or not (**alse**). - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ShowInputHelper.js + */ Api.prototype["pluginMethod_ShowInputHelper"] = function(guid, w, h, isKeyboardTake) { var _frame = document.getElementById("iframe_" + guid); @@ -907,7 +959,8 @@ * @alias UnShowInputHelper * @param {string} guid - A string value which specifies a plugin identifier which must be of the *asc.{UUID}* type. * @param {string} isclear - Defines if the input context will be cleared (**true**) or not (**false**). - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/UnShowInputHelper.js + */ Api.prototype["pluginMethod_UnShowInputHelper"] = function(guid, isclear) { var _frame = document.getElementById("iframe_" + guid); @@ -948,7 +1001,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias CoAuthoringChatSendMessage * @param {string} sText - Message text. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/CoAuthoringChatSendMessage.js + */ Api.prototype["pluginMethod_CoAuthoringChatSendMessage"] = function(sText) { return this.CoAuthoringChatSendMessage(sText); @@ -957,6 +1011,7 @@ /** * The current selection type ("none", "text", "drawing", or "slide"). * @typedef {("none" | "text" | "drawing" | "slide")} SelectionType + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/SelectionType.js */ /** @@ -965,6 +1020,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @alias GetSelectionType * @returns {SelectionType} - The selection type. + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetSelectionType.js */ Api.prototype["pluginMethod_GetSelectionType"] = function() { @@ -1058,7 +1114,8 @@ * @param {boolean} [bDemoteHeadings=false] - Defines if all heading levels in your document will be demoted to conform with the following standard: single H1 as title, H2 as top-level heading in the text body. * @param {boolean} [bRenderHTMLTags=false] - Defines if HTML tags will be preserved in your Markdown. If you just want to use an occasional HTML tag, you can avoid using the opening angle bracket in the following way: \text\. By default, the opening angle brackets will be replaced with the special characters. * @return {string} - The Markdown/HTML text. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ConvertDocument.js + */ Api.prototype["pluginMethod_ConvertDocument"] = function(sConvertType, bHtmlHeadings, bBase64img, bDemoteHeadings, bRenderHTMLTags) { return this.ConvertDocument(sConvertType, bHtmlHeadings, bBase64img, bDemoteHeadings, bRenderHTMLTags); @@ -1080,9 +1137,8 @@ * @param {string} prop.NewLineSeparator - Defines how the line separator will be specified in the resulting string (this property has the priority over *NewLine*). * @return {string} - Selected text. * @since 7.1.0 - * @example - * window.Asc.plugin.executeMethod("GetSelectedText", [{NewLine:true, NewLineParagraph:true, Numbering:true}]) - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetSelectedText.js + */ Api.prototype["pluginMethod_GetSelectedText"] = function(prop) { var properties; @@ -1123,7 +1179,8 @@ * @param {string} [sParaNewLine=" "] - A character which is used to specify the line break character in the source text. * @returns {boolean} - Always returns true. * @since 7.1.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ReplaceTextSmart.js + */ Api.prototype["pluginMethod_ReplaceTextSmart"] = function(arrString, sParaTab, sParaNewLine) { window.g_asc_plugins && window.g_asc_plugins.setPluginMethodReturnAsync(); @@ -1165,7 +1222,8 @@ * @param {string} [format=" "] - A format in which you need to download a file. * @returns {string} - URL to download the file in the specified format or error. * @since 7.2.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetFileToDownload.js + */ Api.prototype["pluginMethod_GetFileToDownload"] = function(format) { window.g_asc_plugins && window.g_asc_plugins.setPluginMethodReturnAsync(); @@ -1185,6 +1243,7 @@ /** * Specifies how to adjust the image object in case of replacing the selected image. * @typedef {("fill" | "fit" | "original" | "stretch")} ReplaceImageMode + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ReplaceImageMode.js */ /** @@ -1194,7 +1253,8 @@ * @property {number} width The image width in pixels. * @property {number} height The image height in pixels. * @property {?ReplaceImageMode} replaceMode Specifies how to adjust the image object in case of replacing the selected image. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ImageData.js + */ /** * Returns the image data from the first of the selected drawings. If there are no drawings selected, the method returns a white rectangle. @@ -1203,7 +1263,8 @@ * @alias GetImageDataFromSelection * @returns {?ImageData} - The ImageData object containig the information about the base64 encoded png image. * @since 7.2.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetImageDataFromSelection.js + */ Api.prototype["pluginMethod_GetImageDataFromSelection"] = function() { return this.getImageDataFromSelection(); @@ -1216,7 +1277,8 @@ * @alias PutImageDataToSelection * @param {ImageData} oImageData - The information about the base64 encoded *png* image. * @since 7.2.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/PutImageDataToSelection.js + */ Api.prototype["pluginMethod_PutImageDataToSelection"] = function(oImageData) { if(!this.canEdit() || this.isPdfEditor()) @@ -1420,7 +1482,8 @@ * @property {string} guid The plugin identifier. It must be of the *asc.{UUID}* type. * @property {boolean} canRemoved Specifies if the plugin can be removed (**true**) or not (**false**). * @property {object} obj The {@link /plugin/config config} of the installed plugin. The version is taken from the config and compared with the current one to check for updates. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/PluginData.js + */ /** * Returns all the installed plugins. @@ -1429,7 +1492,8 @@ * @alias GetInstalledPlugins * @returns {PluginData[]} - An array of all the installed plugins. * @since 7.2.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetInstalledPlugins.js + */ Api.prototype["pluginMethod_GetInstalledPlugins"] = function() { /* @@ -1520,7 +1584,8 @@ * @alias RemovePlugin * @returns {object} - An object with the result information. * @since 7.2.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemovePlugin.js + */ Api.prototype["pluginMethod_RemovePlugin"] = function(guid, backup) { let removedPlugin = window.g_asc_plugins.unregister(guid); @@ -1581,7 +1646,8 @@ * @alias InstallPlugin * @returns {object} - An object with the result information. * @since 7.2.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/InstallPlugin.js + */ Api.prototype["pluginMethod_InstallPlugin"] = function(config) { return installPlugin(config, "Installed"); @@ -1594,7 +1660,8 @@ * @alias UpdatePlugin * @returns {object} - An object with the result information. * @since 7.3.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/UpdatePlugin.js + */ Api.prototype["pluginMethod_UpdatePlugin"] = function(config) { return installPlugin(config, "Updated"); @@ -1608,6 +1675,7 @@ * @alias InstallDeveloperPlugin * @returns {boolean} - Returns true if the plugin is installed. * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/InstallDeveloperPlugin.js */ Api.prototype["installDeveloperPlugin"] = function(configUrl) { @@ -1639,6 +1707,7 @@ * @param {string} align - The parameter indicates whether the button will be displayed on the right side of the window or on the left. The default value is "left". * @alias ShowButton * @since 7.2.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ShowButton.js */ Api.prototype["pluginMethod_ShowButton"] = function(id, bShow, align) { @@ -1679,14 +1748,15 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {object} obj The drag&drop emulation properties. * @param {string} obj.type - The drag&drop event type: - * * onbeforedrop - an event that is fired when the selected text or element is dragged; - * * ondrop - an event that is fired when the selected text or element is dropped on a valid drop target. + * onbeforedrop - an event that is fired when the selected text or element is dragged; + * ondrop - an event that is fired when the selected text or element is dropped on a valid drop target. * @param {number} obj.x - The horizontal coordinate (in pixels) at which the mouse was clicked, relative to the left edge of the entire document. * @param {number} obj.y - The vertical coordinate (in pixels) at which the mouse was clicked, relative to the top edge of the entire document. * @param {string} obj.html - The dragged HTML element. * @param {string} obj.text - The dragged text. * @alias OnDropEvent * @since 7.3.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/OnDropEvent.js */ Api.prototype["pluginMethod_OnDropEvent"] = function(obj) { @@ -1728,7 +1798,8 @@ * @alias GetDocumentLang * @returns {string} - Document language. * @since 7.4.0 - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetDocumentLang.js + */ Api.prototype["pluginMethod_GetDocumentLang"] = function() { let langCode = 1033; // en-US @@ -1788,6 +1859,7 @@ * @property {boolean} [disabled] - Specifies if the current item is disabled or not. * @property {string} [icons] - The item icons (see the plugins {@link /plugin/config config} documentation). * @property {ContextMenuItem[]} items - An array containing the context menu items for the current item. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContextMenuItem.js */ /** @@ -1797,6 +1869,7 @@ * @alias AddContextMenuItem * @param {ContextMenuItem[]} items - An array containing the context menu items. * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddContextMenuItem.js */ Api.prototype["pluginMethod_AddContextMenuItem"] = function(items) { @@ -1812,6 +1885,7 @@ * @alias UpdateContextMenuItem * @param {ContextMenuItem[]} items - An array containing the context menu items for the current item. * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/UpdateContextMenuItem.js */ Api.prototype["pluginMethod_UpdateContextMenuItem"] = function(items) { @@ -1823,6 +1897,7 @@ /** * The possible values of the base which the relative vertical position of the toolbar menu item will be calculated from. * @typedef {("button" | "...")} ToolbarMenuItemType + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ToolbarMenuItemType.js */ /** @@ -1839,6 +1914,7 @@ * @property {boolean} [separator] - Specifies if a separator is used between the toolbar menu items or not. * @property {boolean} [split] - Specifies if the toolbar menu items are split or not. * @property {ContextMenuItem[]} [items] - An array containing the context menu items for the current item. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ToolbarMenuItem.js */ /** @@ -1847,6 +1923,7 @@ * @property {string} id - The tab ID. * @property {string} text - The tab text. * @property {ToolbarMenuItem[]} [items] - An array containing the toolbar menu items for the current tab. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ToolbarMenuTab.js */ /** @@ -1854,6 +1931,7 @@ * The main toolbar menu item. * @property {string} guid - The plugin guid. * @property {ToolbarMenuTab[]} tabs - An array containing the toolbar menu tabs for the current item. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ToolbarMenuMainItem.js */ /** @@ -1863,6 +1941,7 @@ * @alias AddToolbarMenuItem * @param {ToolbarMenuMainItem[]} items - An array containing the main toolbar menu items. * @since 8.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddToolbarMenuItem.js */ Api.prototype["pluginMethod_AddToolbarMenuItem"] = function(items) { @@ -1884,6 +1963,7 @@ * @param {variation} variation - The plugin variation. * @alias ShowWindow * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ShowWindow.js */ Api.prototype["pluginMethod_ShowWindow"] = function(frameId, variation) { @@ -1903,6 +1983,7 @@ * @param {string} frameId - The frame ID. * @alias ActivateWindow * @since 8.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ActivateWindow.js */ Api.prototype["pluginMethod_ActivateWindow"] = function(frameId) { @@ -1916,6 +1997,7 @@ * @param {string} frameId - The frame ID. * @alias CloseWindow * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/CloseWindow.js */ Api.prototype["pluginMethod_CloseWindow"] = function(frameId) { @@ -1931,6 +2013,7 @@ * @param {object} data - The event data. * @alias SendToWindow * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SendToWindow.js */ Api.prototype["pluginMethod_SendToWindow"] = function(windowID, name, data) { @@ -1947,6 +2030,7 @@ * @param {number} maxSize - The frame maximum size. * @alias ResizeWindow * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ResizeWindow.js */ Api.prototype["pluginMethod_ResizeWindow"] = function(frameId, size, minSize, maxSize) { @@ -1965,6 +2049,7 @@ * @param {number} y - The Y coordinate. * @alias MouseUpWindow * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/MouseUpWindow.js */ Api.prototype["pluginMethod_MouseUpWindow"] = function(frameId, x, y) { @@ -1980,9 +2065,12 @@ * @param {number} y - The Y coordinate. * @alias MouseMoveWindow * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/MouseMoveWindow.js */ Api.prototype["pluginMethod_MouseMoveWindow"] = function(frameId, x, y) { this.sendEvent("asc_onPluginWindowMouseMove", frameId, x, y); }; })(window); + + diff --git a/common/apiCommon.js b/common/apiCommon.js index e20bf4bd05..68148bafaa 100644 --- a/common/apiCommon.js +++ b/common/apiCommon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1067,6 +1067,8 @@ function (window, undefined) { this.depthAxes = []; this.view3D = null; + + this.displayTrendlinesEquation = false; } //TODO:remove this--------------------- @@ -1294,6 +1296,9 @@ function (window, undefined) { if (this.view3D && oPr.view3D && !this.view3D.isEqual(oPr.view3D)) { return false; } + if(this.displayTrendlinesEquation !== oPr.displayTrendlinesEquation) { + return false; + } return true; }; asc_ChartSettings.prototype.isEmpty = function () { @@ -1657,6 +1662,12 @@ function (window, undefined) { this.chartSpace.onDataUpdate(); } }; + asc_ChartSettings.prototype.getDisplayTrendlinesEquation = function() { + return this.displayTrendlinesEquation; + }; + asc_ChartSettings.prototype.putDisplayTrendlinesEquation = function(v) { + this.displayTrendlinesEquation = v; + }; /** @constructor */ function asc_CRect(x, y, width, height) { @@ -4650,6 +4661,8 @@ function (window, undefined) { this.IsEnabledMacroses = true; this.IsWebOpening = false; this.SupportsOnSaveDocument = false; + this.Wopi = null; + this.shardkey = null; //for external reference this.ReferenceData = null; @@ -4809,6 +4822,18 @@ function (window, undefined) { prot.get_SupportsOnSaveDocument = prot.asc_getSupportsOnSaveDocument = function () { return this.SupportsOnSaveDocument; }; + prot.put_Wopi = prot.asc_putWopi = function (v) { + this.Wopi = v; + }; + prot.get_Wopi = prot.asc_getWopi = function () { + return this.Wopi; + }; + prot.put_Shardkey = prot.asc_putShardkey = function (v) { + this.shardkey = v; + }; + prot.get_Shardkey = prot.asc_getShardkey = function () { + return this.shardkey; + }; function COpenProgress() { this.Type = Asc.c_oAscAsyncAction.Open; @@ -5052,7 +5077,13 @@ function (window, undefined) { let ctx = canvasTransparent.getContext("2d"); ctx.globalAlpha = this.transparent; ctx.drawImage(this.image, 0, 0); - this.imageBase64 = canvasTransparent.toDataURL("image/png"); + try { + this.imageBase64 = canvasTransparent.toDataURL("image/png"); + } + catch (e) { + this.imageBase64 = undefined; + this.api.sendEvent("asc_onError", Asc.c_oAscError.ID.CannotSaveWatermark, Asc.c_oAscError.Level.NoCritical); + } canvasTransparent = null; }; this.EndRenderer = function () { @@ -5062,6 +5093,9 @@ function (window, undefined) { this.imageBase64 = undefined; }; this.DrawOnRenderer = function (renderer, w, h) { + if(!this.imageBase64) { + return; + } let wMM = this.width * AscCommon.g_dKoef_pix_to_mm / this.zoom; let hMM = this.height * AscCommon.g_dKoef_pix_to_mm / this.zoom; let x = (w - wMM) / 2; @@ -5111,7 +5145,7 @@ function (window, undefined) { } let _oldTrackRevision = false; - if (oApi.getEditorId() === AscCommon.c_oEditorId.Word && oApi.WordControl && !oApi.isPdfEditor()) + if (oApi.getEditorId() === AscCommon.c_oEditorId.Word && oApi.WordControl && oApi.WordControl.m_oLogicDocument && !oApi.isPdfEditor()) _oldTrackRevision = oApi.WordControl.m_oLogicDocument.GetLocalTrackRevisions(); if (false !== _oldTrackRevision) @@ -5165,7 +5199,11 @@ function (window, undefined) { if (undefined != align) { oShape.setVerticalAlign(align); } + else { + oShape.setVerticalAlign(1);//ctr + } + oShape.setVertOverflowType(AscFormat.nVOTOverflow); if (Array.isArray(obj['margins']) && obj['margins'].length === 4) { oShape.setPaddings({ Left: obj['margins'][0], @@ -5426,6 +5464,13 @@ function (window, undefined) { this.zoom = 1; this.calculatezoom = 0; this.CheckParams(); + + if (this.contentObjects && "string" === typeof this.contentObjects["fill"]) + { + this.imageBackgroundUrl = this.contentObjects["fill"]; + this.imageBackground = {}; + } + this.Generate(); }; } @@ -6110,7 +6155,8 @@ function (window, undefined) { prot["getView3d"] = prot.getView3d; prot["putView3d"] = prot.putView3d; prot["setView3d"] = prot.setView3d; - + prot["getDisplayTrendlinesEquation"] = prot.getDisplayTrendlinesEquation; + prot["putDisplayTrendlinesEquation"] = prot.putDisplayTrendlinesEquation; window["AscCommon"].asc_CRect = asc_CRect; prot = asc_CRect.prototype; @@ -6795,6 +6841,10 @@ function (window, undefined) { prot["get_IsWebOpening"] = prot["asc_getIsWebOpening"] = prot.asc_getIsWebOpening; prot["put_SupportsOnSaveDocument"] = prot["asc_putSupportsOnSaveDocument"] = prot.asc_putSupportsOnSaveDocument; prot["get_SupportsOnSaveDocument"] = prot["asc_getSupportsOnSaveDocument"] = prot.asc_getSupportsOnSaveDocument; + prot["put_Wopi"] = prot["asc_putWopi"] = prot.asc_putWopi; + prot["get_Wopi"] = prot["asc_getWopi"] = prot.asc_getWopi; + prot["put_Shardkey"] = prot["asc_putShardkey"] = prot.asc_putShardkey; + prot["get_Shardkey"] = prot["asc_getShardkey"] = prot.asc_getShardkey; window["AscCommon"].COpenProgress = COpenProgress; prot = COpenProgress.prototype; @@ -6856,5 +6906,14 @@ function (window, undefined) { CDocInfoProp.prototype['put_SymbolsCount'] = CDocInfoProp.prototype.put_SymbolsCount; CDocInfoProp.prototype['get_SymbolsWSCount'] = CDocInfoProp.prototype.get_SymbolsWSCount; CDocInfoProp.prototype['put_SymbolsWSCount'] = CDocInfoProp.prototype.put_SymbolsWSCount; - + + window["AscCommon"]["pix2mm"] = window["AscCommon"].pix2mm = function(pix) + { + return pix * AscCommon.g_dKoef_pix_to_mm; + }; + window["AscCommon"]["mm2pix"] = window["AscCommon"].mm2pix = function(mm) + { + return mm * AscCommon.g_dKoef_mm_to_pix; + }; + })(window); diff --git a/common/applyDocumentChanges.js b/common/applyDocumentChanges.js index 6560f9cbee..758c363cea 100644 --- a/common/applyDocumentChanges.js +++ b/common/applyDocumentChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/base32.js b/common/base32.js index 41562056b1..d8a50d9437 100644 --- a/common/base32.js +++ b/common/base32.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/browser.js b/common/browser.js index d980e01950..18c8b6c15e 100644 --- a/common/browser.js +++ b/common/browser.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -63,7 +63,9 @@ var AscBrowser = { chromeVersion : 70, iosVersion : 13, isAndroidNativeApp : false, - safariVersion : 17004001 + safariVersion : 17004001, + isTelegramWebView : false, + maxTouchPoints : 0 }; // user agent lower case @@ -144,6 +146,8 @@ if (AscBrowser.isAppleDevices) AscBrowser.iosVersion = iosversion; } +if (navigator.maxTouchPoints) AscBrowser.maxTouchPoints = navigator.maxTouchPoints; + // android devices detect AscBrowser.isAndroid = (AscBrowser.userAgent.indexOf("android") > -1); @@ -177,6 +181,8 @@ AscBrowser.isNeedEmulateUpload = (AscBrowser.userAgent.indexOf("needemulateuploa AscBrowser.isAndroidNativeApp = (AscBrowser.userAgent.indexOf("ascandroidwebview") > -1); +AscBrowser.isTelegramWebView = (typeof TelegramWebviewProxy === "object") ? true : false; + AscBrowser.zoom = 1; AscBrowser.isCustomScaling = function() @@ -213,6 +219,13 @@ AscBrowser.checkZoom = function() AscCommon.correctApplicationScale(zoomValue); }; +AscBrowser.isOffsetUsedZoom = function() +{ + if (AscCommon.AscBrowser.isChrome && 128 <= AscCommon.AscBrowser.chromeVersion) + return (AscBrowser.zoom === 1) ? false : true; + return false; +}; + AscBrowser.checkZoom(); AscBrowser.convertToRetinaValue = function(value, isScale) @@ -223,7 +236,42 @@ AscBrowser.convertToRetinaValue = function(value, isScale) return ((value / AscBrowser.retinaPixelRatio) + 0.5) >> 0; }; +var UI = { + getBoundingClientRect : function(element) + { + let rect = element.getBoundingClientRect(); + if (!AscBrowser.isOffsetUsedZoom()) + return rect; + + let koef = AscCommon.AscBrowser.zoom; + let newRect = {} + if (undefined !== rect.x) newRect.x = rect.x * koef; + if (undefined !== rect.y) newRect.y = rect.y * koef; + if (undefined !== rect.width) newRect.width = rect.width * koef; + if (undefined !== rect.height) newRect.height = rect.height * koef; + + if (undefined !== rect.left) newRect.left = rect.left * koef; + if (undefined !== rect.top) newRect.top = rect.top * koef; + if (undefined !== rect.right) newRect.right = rect.right * koef; + if (undefined !== rect.bottom) newRect.bottom = rect.bottom * koef; + return newRect; + }, + + getOffsetLeft : function(element) { + if (!AscBrowser.isOffsetUsedZoom()) + return element.offsetLeft; + return element.offsetLeft * AscBrowser.zoom; + }, + + getOffsetTop : function(element) { + if (!AscBrowser.isOffsetUsedZoom()) + return element.offsetTop; + return element.offsetTop * AscBrowser.zoom; + } +}; + //--------------------------------------------------------export---------------------------------------------------- window['AscCommon'] = window['AscCommon'] || {}; window['AscCommon'].AscBrowser = AscBrowser; + window['AscCommon'].UI = UI; })(window); diff --git a/common/clipboard_base.js b/common/clipboard_base.js index 35f69d709e..f7c080db15 100644 --- a/common/clipboard_base.js +++ b/common/clipboard_base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1044,6 +1044,15 @@ Button_Copy : function() { + if (window["AscDesktopEditor"]) + { + window["asc_desktop_copypaste"](this.Api, "Copy"); + return true; + } + + if (window["NATIVE_EDITOR_ENJINE"]) + return false; + if (this.isUseNewCopy()) { if (this.Button_Copy_New()) @@ -1080,6 +1089,15 @@ Button_Cut : function() { + if (window["AscDesktopEditor"]) + { + window["asc_desktop_copypaste"](this.Api, "Cut"); + return true; + } + + if (window["NATIVE_EDITOR_ENJINE"]) + return false; + if (this.isUseNewCopy()) { if (this.Button_Copy_New(true)) @@ -1120,6 +1138,15 @@ Button_Paste : function() { + if (window["AscDesktopEditor"]) + { + window["asc_desktop_copypaste"](this.Api, "Paste"); + return true; + } + + if (window["NATIVE_EDITOR_ENJINE"]) + return false; + if (this.isUseNewPaste()) { if (this.Button_Paste_New()) @@ -1516,6 +1543,4 @@ window["asc_desktop_copypaste"] = function(_api, _method) if (!bIsFocus) _api.asc_enableKeyEvents(true); window["AscDesktopEditor"][_method](); - if (!bIsFocus) - _api.asc_enableKeyEvents(false); }; diff --git a/common/collaboration/deleted-text-recovery.js b/common/collaboration/deleted-text-recovery.js new file mode 100644 index 0000000000..c88a03d792 --- /dev/null +++ b/common/collaboration/deleted-text-recovery.js @@ -0,0 +1,670 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +(function () +{ + /** + * Класс, восстанавливающий удаленные части документа + * @param {AscWord.Document} logicDocument + * @constructor + */ + function DeletedTextRecovery(logicDocument) + { + this.document = logicDocument; + + /** + * Список всех изменений связанных с удалением текста + * @type {*[]} + */ + this.m_RewiewDelPoints = []; + this.arrColor = []; + + this.userId = undefined; + this.userName = undefined; + this.userTime = undefined; + } + /** + * Восстанавливаем удаленный текст в текущей точке истории версий + * @return {boolean} + */ + DeletedTextRecovery.prototype.RecoverDeletedText = function() + { + this.UndoRecoveredText(); + return this.ShowDelText(); + }; + /** + * Отменяем восстановление удаленного текста, если оно было + */ + DeletedTextRecovery.prototype.UndoRecoveredText = function () + { + if (!this.HaveRecoveredText()) + return; + + let localHistory = AscCommon.History; + let changes = localHistory.Undo(); + this.document.UpdateAfterUndoRedo(changes); + localHistory.ClearRedo(); + }; + /** + * Запрашивем,есть ли восстановленный удаленный текст + * @return {boolean} + */ + DeletedTextRecovery.prototype.HaveRecoveredText = function() + { + let localHistory = AscCommon.History; + let lastPoint = localHistory.Points[localHistory.Points.length - 1]; + return !!(lastPoint && lastPoint.Description === AscDFH.historydescription_Collaborative_DeletedTextRecovery); + }; + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // Private area + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + /** + * Инициализация и создание промежуточных данных для отображения удаленного текста в текущей ревизии + */ + DeletedTextRecovery.prototype.HandleChanges = function() + { + AscCommon.CollaborativeEditing.CoHistory.SplitChangesByPoints(); + + let oCoHistory = AscCommon.CollaborativeEditing.CoHistory; + let arrChangesList = oCoHistory.Changes; + let arrPointsList = AscCommon.CollaborativeEditing.CoHistory.ChangesSplitByPoints; + let nIndex = AscCommon.CollaborativeEditing.CoHistory.curChangeIndex; + let arrChanges = arrChangesList.slice(0, arrPointsList[nIndex]); + + if (!arrChanges || !arrChanges.length) + return; + + this.m_RewiewDelPoints = arrChanges; + }; + /** + * Получаем подготовленные данные, разбитые по точкам + * @return {*[]} + */ + DeletedTextRecovery.prototype.GetChanges = function() + { + let arr = this.m_RewiewDelPoints.slice(); + + let arrOutput = [] + for (let i = 0; i < arr.length; i++) + { + let oChange = arr[i]; + if (oChange.ConvertToSimpleChanges) + { + let arrSplitChange = oChange.ConvertToSimpleChanges(); + if (arrSplitChange && arrSplitChange.length) + { + for (let j = 0; j < arrSplitChange.length; j++) + { + arrOutput.push(arrSplitChange[j]) + } + } else + { + arrOutput.push(oChange); + } + } + else + arrOutput.push(oChange); + + } + return arrOutput; + }; + DeletedTextRecovery.prototype.GetRemoveTextChanges = function (arrInputChanges, oRemoveText) + { + let oAddText = new AddTextPositions(); + + // отбираем удаленный текст связанный с текущей ревизией + for (let i = 0; i < arrInputChanges.length; i++) + { + let oCurChange = arrInputChanges[i]; + + // пропускаем все изменения связанные со сплитом + if (oCurChange instanceof CChangesRunOnStartSplit) + { + while (oCurChange && !(oCurChange instanceof CChangesRunOnEndSplit)) + { + i++; + oCurChange = arrInputChanges[i]; + } + } + + if (oCurChange === undefined) + break; + + if (oCurChange instanceof AscCommon.CChangesTableIdDescription || !oCurChange.Copy) + continue; + + let oNewCurChange = oCurChange.Copy(); + + oRemoveText.ProceedChange(oNewCurChange); + + if (oNewCurChange instanceof CChangesRunAddItem || oNewCurChange instanceof CChangesParagraphAddItem || oNewCurChange instanceof CChangesDocumentAddItem) + oAddText.Add(oCurChange.Class, oCurChange, oCurChange.UseArray ? oCurChange.PosArray[0] : oCurChange.Pos, i); + else if (oNewCurChange instanceof CChangesRunRemoveItem || oNewCurChange instanceof CChangesParagraphRemoveItem || oNewCurChange instanceof CChangesDocumentRemoveItem) + oRemoveText.Check(oAddText, oCurChange, i); + } + oRemoveText.DelDuplicate(); + } + DeletedTextRecovery.prototype.CommuteChanges = function (arrInputChanges, arrSaveData, oRemoveText) + { + // коммутируем изменения + let arrRevInput = arrInputChanges; + + let arrDelChangesForCommute = oRemoveText.GetArrayChanges(); + + for (let j = 0; j < arrDelChangesForCommute.length; j++) + { + let oCurItem = arrDelChangesForCommute[j]; + let nPos = oCurItem.nIndex; + let oChange = oCurItem.item; + + if (oChange.IsContentChange()) + { + let _oChange = oChange.Copy(); + + if (AscCommon.CollaborativeEditing.CoHistory.CommuteContentChange(_oChange, nPos, arrRevInput)) + arrSaveData.push(_oChange); + } + else + { + arrSaveData.push(oChange); + } + } + + oRemoveText.ResetData(); + } + /** + * Отменяем заданные изменения + * @param arrInputChanges + * @return {*[]} + */ + DeletedTextRecovery.prototype.RedoUndoChanges = function (arrInputChanges) + { + let oRemoveText = new RemoveTextPositions(); + let arrChanges = []; + let arrDelChanges = []; + + this.GetRemoveTextChanges(arrInputChanges, oRemoveText); + this.CommuteChanges(arrInputChanges, arrDelChanges, oRemoveText); + + for (let i = 0; i < arrDelChanges.length; i++) + { + this.RedoUndoChange(arrDelChanges[i], false, arrChanges); + let nPos = arrDelChanges[i].UseArray + ? arrDelChanges[i].PosArray[0] + : arrDelChanges[i].Pos; + + oRemoveText.Add( + arrDelChanges[i].Class, + arrDelChanges[i], + nPos, + i + ); + } + + let result = { + data: oRemoveText.ProceedPositions(this), + classes: oRemoveText.oClasses + }; + + return [arrChanges, result]; + }; + DeletedTextRecovery.prototype.ShowDelText = function () + { + let versionHistory = this.document.GetApi().getVersionHistory(); + if (!versionHistory) + return false; + + this.HandleChanges(); + let arrInput = this.GetChanges(); + if (arrInput.length === 0) + return false; + + let localHistory = AscCommon.History; + localHistory.Create_NewPoint(AscDFH.historydescription_Collaborative_DeletedTextRecovery); + + this.userId = versionHistory.userId; + this.userName = versionHistory.userName; + this.userTime = new Date(versionHistory.dateOfRevision).getTime(); + + // отменяем изменения до нужного места (необходимо для перемещения по истории) + let arrCurrentPoint = this.RedoUndoChanges(arrInput); + let delChanges = arrCurrentPoint[0]; + let arrResult = arrCurrentPoint[1]; + + for (let i = 0; i < delChanges.length; i++) + { + this.document.History.Add(delChanges[i]); + } + this.Split(arrResult); + this.document.RecalculateByChanges(delChanges); + + this.m_RewiewDelPoints = []; + return true; + }; + DeletedTextRecovery.prototype.Split = function (arrInput) + { + let data = arrInput.data; + let classes = arrInput.classes; + let arrKeys = Object.keys(data); + + for (let nKey = 0; nKey < arrKeys.length; nKey++) + { + let strCurrentKey = arrKeys[nKey]; + let arrCurrentRunData = data[strCurrentKey]; + let oCurrentRun = classes[strCurrentKey]; + + arrCurrentRunData.sort(function (a, b) { return a.nStart - b.nStart }); + + for (let j = arrCurrentRunData.length - 1; j >= 0; j--) + { + let oCurrentRule = arrCurrentRunData[j]; + let nStart = oCurrentRule.nStart; + let nEnd = oCurrentRule.nEnd; + + if (oCurrentRun instanceof CDocument) + { + let arrContent = oCurrentRun.Content; + + for (let j = nStart; j <= nEnd; j++) + { + let oCurrentParagraph = arrContent[j]; + if (oCurrentParagraph) + this.SetReviewInfo(oCurrentParagraph); + } + } + else if (oCurrentRun instanceof Paragraph) + { + let arrContent = oCurrentRun.Content; + + if (nStart === 0 && arrContent.length === nEnd) + { + this.SetReviewInfo(oCurrentRun); + } + else + { + for (let i = nStart; i <= nEnd; i++) + { + this.SetReviewInfo(arrContent[i]); + } + } + } + else if (oCurrentRun instanceof ParaRun) + { + let newCollab = []; + + if (oCurrentRun.Content.length === 0 || (nEnd + 1 - nStart) === oCurrentRun.Content.length) + { + this.SetReviewInfo(oCurrentRun); + continue; + } + + for (let i = 0; i < oCurrentRun.CollaborativeMarks.Ranges.length; i++) + { + let oCollab = oCurrentRun.CollaborativeMarks.Ranges[i]; + newCollab.push({PosS: oCollab.PosS, PosE: oCollab.PosE, Color: oCollab.Color, oCurrentRun: oCurrentRun}); + } + + let oParent = oCurrentRun.GetParent(); + let RunPos = this.FindPosInParent(oCurrentRun); + let RightRun = oCurrentRun.SplitForSpreadCollaborativeMark(nStart); + + oParent.Add_ToContent(RunPos + 1, RightRun); + let oNewer = RightRun.SplitForSpreadCollaborativeMark(nEnd - nStart + 1); + + oParent.Add_ToContent(RunPos + 2, oNewer); + this.SetReviewInfo(RightRun); + + for (let i = 0; i < newCollab.length; i++) + { + let oCurCollaborativeMark = newCollab[i]; + this.arrColor.push(oCurCollaborativeMark); + } + } + } + } + } + DeletedTextRecovery.prototype.SetReviewInfo = function (oReviewInfoParent) + { + if (!oReviewInfoParent === undefined) + return; + + if (!oReviewInfoParent || !oReviewInfoParent.ReviewInfo) + { + if (oReviewInfoParent instanceof ParaMath) + { + let oRootContent = oReviewInfoParent.Root.Content; + for (let i = 0; i < oRootContent.length; i++) + { + let oCurrentContent = oRootContent[i]; + this.SetReviewInfo(oCurrentContent); + } + } + else if (oReviewInfoParent.Content.length > 0) + { + for (let i = 0; i < oReviewInfoParent.Content.length; i++) + { + let oCurrentContent = oReviewInfoParent.Content[i]; + this.SetReviewInfo(oCurrentContent); + } + } + return; + } + + if (oReviewInfoParent.ReviewType !== 1) + { + let oCurrentReviewType = oReviewInfoParent.GetReviewInfo().Copy(); + oCurrentReviewType.UserId = this.userId; + oCurrentReviewType.UserName = this.userName; + oCurrentReviewType.DateTime = this.userTime; + + oReviewInfoParent.SetReviewTypeWithInfo(1, oCurrentReviewType, false); + } + }; + DeletedTextRecovery.prototype.FindPosInParent = function(oClass) + { + let oParent = oClass.GetParent(); + let arrParentContent = oParent.Content; + + for (let i = 0; i < arrParentContent.length; i++) + { + if (arrParentContent[i] === oClass) + return i; + } + }; + DeletedTextRecovery.prototype.RedoUndoChange = function (oChange, isRedo, arrToSave) + { + if (!oChange) + return; + + if (oChange.IsContentChange()) + { + let arrSimpleChanges = oChange.ConvertToSimpleChanges(); + + for (let simpleIndex = arrSimpleChanges.length - 1; simpleIndex >= 0; simpleIndex--) + { + if (isRedo) + arrSimpleChanges[simpleIndex].Redo(); + else + arrSimpleChanges[simpleIndex].Undo(); + + + let oRevChange = arrSimpleChanges[simpleIndex]; + + if (!isRedo) + oRevChange = oRevChange.CreateReverseChange(); + + if (oRevChange) + arrToSave.push(oRevChange); + } + } + else + { + if (isRedo) + oChange.Redo(); + else + oChange.Undo(); + + let oRevChange = oChange; + + if (!isRedo) + oRevChange = oRevChange.CreateReverseChange(); + + if (oRevChange) + arrToSave.push(oRevChange); + } + }; + + function AddTextPositions() + { + this.data = {}; + + this.Add = function (oClass, oItem, Pos, nIndex) + { + if (!this.data[oClass.Id]) + this.data[oClass.Id] = []; + + this.data[oClass.Id].push({item: oItem, pos: Pos, nIndex: nIndex}); + } + } + function RemoveTextPositions() + { + this.data = {}; + this.oClasses = {}; + this.arrClasses = []; + + this.Check = function (oAddText, oCurChange, i) + { + if (oCurChange.Class) + { + let strCurrentId = oCurChange.Class.Id; + let arrRemData = oAddText.data[strCurrentId]; + + if (!arrRemData) + { + this.Add(oCurChange.Class, oCurChange, oCurChange.UseArray ? oCurChange.PosArray[0] : oCurChange.Pos, i); + return; + } + + let addItem = oCurChange.Items[0]; + + for (let i = 0; i < arrRemData.length; i++) + { + let oCurrentRemItem = arrRemData[i]; + + if (oCurChange.UseArray && oCurChange.PosArray[0] === oCurrentRemItem.pos && addItem.Value === oCurrentRemItem.item.Items[0].Value) + { + return false; + } + else if (!oCurChange.UseArray && oCurChange.Pos === oCurrentRemItem.pos && addItem.Value === oCurrentRemItem.item.Items[0].Value) + { + return false; + } + } + } + + this.Add(oCurChange.Class, oCurChange, oCurChange.UseArray ? oCurChange.PosArray[0] : oCurChange.Pos, i); + } + this.DelDuplicate = function () + { + let arrKeys = Object.keys(this.data); + + for (let nKey = 0; nKey < arrKeys.length; nKey++) + { + let strCurrentKey = arrKeys[nKey]; + let arrCurrentRunData = this.data[strCurrentKey]; + + for (let i = 0; i < arrCurrentRunData.length; i++) + { + for (let j = i + 1; j < arrCurrentRunData.length; j++) + { + if (arrCurrentRunData[i].item === arrCurrentRunData[j].item) + { + arrCurrentRunData.splice(j, 1); + break + } + } + } + } + } + this.Add = function (oClass, oItem, Pos, nIndex) + { + if (!this.data[oClass.Id]) + this.data[oClass.Id] = []; + + this.data[oClass.Id].push({item: oItem, pos: Pos, nIndex: nIndex}); + } + this.GetArrayChanges = function () + { + let arrOutput = [] + let arrKeys = Object.keys(this.data); + + for (let nKey = 0; nKey < arrKeys.length; nKey++) + { + let strCurrentKey = arrKeys[nKey]; + let arrCurrentRunData = this.data[strCurrentKey]; + + for (let i = 0; i < arrCurrentRunData.length; i++) + { + arrOutput.push(arrCurrentRunData[i]); + } + } + return arrOutput; + } + this.ProceedChange = function (oChange) + { + if (oChange.Class && !this.oClasses[oChange.Class.Id]) + { + this.oClasses[oChange.Class.Id] = oChange.Class; + if (-1 === this.arrClasses.indexOf(oChange.Class.Id)) + { + this.arrClasses.push(oChange.Class.Id); + } + } + } + this.FindInParent = function (oClass, oItem) + { + let arrParentContent = oClass.Content; + + for (let nPos = 0; nPos < arrParentContent.length; nPos++) + { + if (arrParentContent[nPos] === oItem) + return nPos; + } + } + this.ProceedPositions = function () + { + for (let nKey = 0; nKey < this.arrClasses.length; nKey++) + { + let strCurrentKey = this.arrClasses[nKey]; + let arrCurrentRunData = this.data[strCurrentKey]; + if (!arrCurrentRunData) + continue; + let oClass = this.oClasses[strCurrentKey]; + let newArrCurrentRunData = []; + + for (let i = 0; i < arrCurrentRunData.length; i++) + { + let oItem = arrCurrentRunData[i]; + + let nPos = this.FindInParent(oClass, oItem.item.Items[0]); + newArrCurrentRunData.push(nPos); + } + + let nCurrentPos; + let nPrevPos; + let nTempPrevPos; + + for (let nPos = 1; nPos < newArrCurrentRunData.length; nPos++) + { + nPrevPos = newArrCurrentRunData[nPos - 1]; + nCurrentPos = newArrCurrentRunData[nPos]; + + if (nTempPrevPos === nCurrentPos || nCurrentPos === nPrevPos) + { + if (nTempPrevPos) + { + nTempPrevPos = undefined; + newArrCurrentRunData[nPos] = nPrevPos + 1; + nTempPrevPos = nCurrentPos; + } + else + { + newArrCurrentRunData[nPos] = nCurrentPos + 1; + nTempPrevPos = nCurrentPos; + } + } + } + this.data[strCurrentKey] = newArrCurrentRunData; + } + let transformedObject = CollapsePositions(this.data); + return transformedObject + } + this.ResetData = function () + { + this.data = {}; + } + } + function CollapsePositions (oInput) + { + let transformedObject = {}; + for (let key in oInput) + { + if (oInput.hasOwnProperty(key)) + { + let values = oInput[key]; + let pairs = []; + let nStart = null; + let nEnd = null; + let decreasingSequence = false; + + for (let i = 0; i < values.length; i++) + { + let value = values[i]; + + if (nStart === null) + { + nStart = value; + nEnd = value; + } + else if (value === nEnd + 1) + { + nEnd = value; + decreasingSequence = false; + } + else if (value === nEnd - 1) + { + nStart = value; + decreasingSequence = true; + } + else + { + pairs.push({ nStart : nStart, nEnd: nEnd }); + nStart = value; + nEnd = value; + decreasingSequence = false; + } + } + + if (nStart !== null && nEnd !== null) + pairs.push({ nStart : nStart, nEnd: nEnd }); + + transformedObject[key] = pairs; + } + } + return transformedObject; + } + //--------------------------------------------------------export---------------------------------------------------- + AscCommon.DeletedTextRecovery = DeletedTextRecovery; + +})(); diff --git a/common/collaborativeHistory.js b/common/collaborativeHistory.js index c3be086fda..2dbd5544ad 100644 --- a/common/collaborativeHistory.js +++ b/common/collaborativeHistory.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -44,12 +44,82 @@ this.CoEditing = coEditing; this.Changes = []; // Список всех изменений + this.ChangesSplitByPoints = [] // Список изменений разделенных по точкам this.OwnRanges = []; // Диапазоны собственных изменений - this.SyncIndex = -1; // Позиция в массиве изменений, которые согласованы с сервером - + this.SyncIndex = -1; // Позиция в массиве изменений, которые согласованы с сервером + this.curChangeIndex = -1; // Текущая позиция в массиве изменений разделенных по точкам + //this.StepTextPoint = undefined; //Позиция предыдущего состояния + + this.textRecovery = null; } + /** + * Разделяем изменения ревизии для отображения истории ревизии + */ + CCollaborativeHistory.prototype.SplitChangesByPoints = function () + { + if (!this.Changes || !this.Changes || this.ChangesSplitByPoints.length !== 0) + return; + + let arrCurrent = [0]; + for (let i = 1; i < this.Changes.length; i++) + { + let oCurrentChange = this.Changes[i]; + let oPrevChange = (i === 0) + ? undefined + : this.Changes[i - 1]; + if (!(oPrevChange && (oPrevChange instanceof AscCommon.CChangesTableIdDescription || oPrevChange.IsDescriptionChange() === oCurrentChange.IsDescriptionChange()))) + { + arrCurrent.push(i); + } + } + + arrCurrent.push(this.Changes.length); + this.ChangesSplitByPoints = arrCurrent; + this.curChangeIndex = arrCurrent.length - 1; + }; + CCollaborativeHistory.prototype.clear = function() + { + this.Changes = []; + this.OwnRanges = []; + this.ChangesSplitByPoints = []; + + this.SyncIndex = -1; + this.curChangeIndex = -1; + + this.textRecovery = null; + }; + /** + * Перемещаемся по истории ревизии на заданную точку + * @param {number} pointIndex - Позиция на которую необходимо переместится + * @constructor + */ + CCollaborativeHistory.prototype.NavigationRevisionHistoryByStep = function(pointIndex) + { + let logicDocument = this.CoEditing.GetLogicDocument(); + if (!logicDocument || !logicDocument.IsDocumentEditor()) + return false; + + this.UndoDeletedTextRecovery(); + this.SplitChangesByPoints(); + if (this.curChangeIndex < 0) + return false; + + pointIndex = Math.max(0, Math.min(pointIndex, this.ChangesSplitByPoints.length - 1)); + if (pointIndex === this.curChangeIndex) + return false; + + let changes; + if (this.curChangeIndex < pointIndex) + changes = this._RedoChanges(this.ChangesSplitByPoints[this.curChangeIndex], this.ChangesSplitByPoints[pointIndex]); + else + changes = this._UndoChanges(this.ChangesSplitByPoints[this.curChangeIndex], this.ChangesSplitByPoints[pointIndex]); + + this.curChangeIndex = pointIndex; + logicDocument.RecalculateByChanges(changes); + return true; + }; CCollaborativeHistory.prototype.AddChange = function(change) { this.Changes.push(change); @@ -89,6 +159,52 @@ { return (this.OwnRanges.length > 0) }; + CCollaborativeHistory.prototype._RedoChanges = function(startPos, endPos) + { + let changes = []; + for (let i = startPos; i < endPos; ++i) + { + let change = this.Changes[i]; + if (change.IsContentChange()) + { + let simpleChanges = change.ConvertToSimpleChanges(); + for (let simpleIndex = 0; simpleIndex < simpleChanges.length; ++simpleIndex) + { + simpleChanges[simpleIndex].Redo(); + changes.push(simpleChanges[simpleIndex]); + } + } + else + { + change.Redo(); + changes.push(change); + } + } + return changes; + }; + CCollaborativeHistory.prototype._UndoChanges = function(startPos, endPos) + { + let changes = []; + for (let i = startPos - 1; i >= endPos; --i) + { + let change = this.Changes[i]; + if (change.IsContentChange()) + { + let simpleChanges = change.ConvertToSimpleChanges(); + for (let simpleIndex = simpleChanges.length - 1; simpleIndex >= 0; --simpleIndex) + { + simpleChanges[simpleIndex].Undo(); + changes.push(simpleChanges[simpleIndex]); + } + } + else + { + change.Undo(); + changes.push(change); + } + } + return changes; + }; /** * Откатываем заданное количество действий * @param {number} count @@ -96,6 +212,8 @@ */ CCollaborativeHistory.prototype.UndoGlobalChanges = function(count) { + this.UndoDeletedTextRecovery(); + count = Math.min(count, this.Changes.length); if (!count) @@ -134,6 +252,8 @@ */ CCollaborativeHistory.prototype.UndoGlobalPoint = function() { + this.UndoDeletedTextRecovery(); + let count = 0; for (let index = this.Changes.length - 1; index > 0; --index, ++count) { @@ -150,6 +270,73 @@ return count ? this.UndoGlobalChanges(count) : []; }; + /** + * Получаем количество позиций истории в текущей ревизии + * @return {number} + * @constructor + */ + CCollaborativeHistory.prototype.GetGlobalPointCount = function() + { + this.SplitChangesByPoints(); + return this.ChangesSplitByPoints.length; + }; + /** + * Получаем текущую позицию в истории ревизии + * @return {number} + */ + CCollaborativeHistory.prototype.GetGlobalPointIndex = function() + { + this.SplitChangesByPoints(); + return this.curChangeIndex; + }; + /** + * Перемещаемся на нужную точку истории ревизии + * @param nPos - позиция в истории + * @return {boolean} - был ли произведен переход на данную позицию + */ + CCollaborativeHistory.prototype.MoveToPoint = function(nPos) + { + return this.NavigationRevisionHistoryByStep(nPos); + }; + CCollaborativeHistory.prototype.InitTextRecover = function () + { + if (this.textRecovery) + return; + + let logicDocument = this.CoEditing.GetLogicDocument(); + if (!logicDocument || !logicDocument.IsDocumentEditor()) + return; + + this.textRecovery = new AscCommon.DeletedTextRecovery(logicDocument); + }; + /** + * Отображаем удаленный текст для данный точки в истории ревизии + * @return {boolean} - был ли отображен удаленный текст + */ + CCollaborativeHistory.prototype.RecoverDeletedText = function() + { + this.InitTextRecover(); + return this.textRecovery.RecoverDeletedText(); + }; + /** + * Отменить отображение удаленного текста в данной точке истории ревизии + * @return {boolean} + */ + CCollaborativeHistory.prototype.UndoDeletedTextRecovery = function() + { + if (this.textRecovery) + return this.textRecovery.UndoRecoveredText(); + + return false; + }; + CCollaborativeHistory.prototype.HaveDeletedTextRecovery = function() + { + return !!(this.textRecovery && this.textRecovery.HaveRecoveredText()); + }; + CCollaborativeHistory.prototype.GetCollaborativeMarks = function () + { + return this.CoEditing.Get_CollaborativeMarks(); + } /** * Отменяем собственные последние действия, прокатывая их через чужие * @returns {[]} возвращаем массив новых действий @@ -292,8 +479,12 @@ return arrReverseChanges; }; - CCollaborativeHistory.prototype.CommuteContentChange = function(oChange, nStartPosition) + CCollaborativeHistory.prototype.CommuteContentChange = function(oChange, nStartPosition, arrChanges) { + var arrChangesForProceed = this.Changes; + if (arrChanges && arrChanges.length > 0) + arrChangesForProceed = arrChanges; + var arrActions = oChange.ConvertToSimpleActions(); var arrCommutateActions = []; @@ -302,9 +493,9 @@ var oAction = arrActions[nActionIndex]; var oResult = oAction; - for (var nIndex = nStartPosition, nOverallCount = this.Changes.length; nIndex < nOverallCount; ++nIndex) + for (var nIndex = nStartPosition, nOverallCount = arrChangesForProceed.length; nIndex < nOverallCount; ++nIndex) { - var oTempChange = this.Changes[nIndex]; + var oTempChange = arrChangesForProceed[nIndex]; if (!oTempChange) continue; @@ -748,5 +939,11 @@ //--------------------------------------------------------export---------------------------------------------------- window['AscCommon'] = window['AscCommon'] || {}; window['AscCommon'].CCollaborativeHistory = CCollaborativeHistory; - + + CCollaborativeHistory.prototype["GetGlobalPointCount"] = CCollaborativeHistory.prototype.GetGlobalPointCount; + CCollaborativeHistory.prototype["getGlobalPointIndex"] = CCollaborativeHistory.prototype.GetGlobalPointIndex; + CCollaborativeHistory.prototype["moveToPoint"] = CCollaborativeHistory.prototype.MoveToPoint; + CCollaborativeHistory.prototype["recoverDeletedText"] = CCollaborativeHistory.prototype.RecoverDeletedText; + CCollaborativeHistory.prototype["undoDeletedTextRecovery"] = CCollaborativeHistory.prototype.UndoDeletedTextRecovery; + })(window); diff --git a/common/commonDefines.js b/common/commonDefines.js index 8597e4b955..baa5948606 100644 --- a/common/commonDefines.js +++ b/common/commonDefines.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -457,6 +457,7 @@ window.AscCommon.g_cIsBeta = "false"; var c_sNativeViewerFormats = '.pdf.xps.oxps.djvu'; var c_sShardKeyName = 'shardkey'; var c_sWopiSrcName = 'WOPISrc'; + var c_sUserSessionIdName = 'usid'; //files type for Saving & DownloadAs var c_oAscFileType = { @@ -1069,7 +1070,7 @@ window.AscCommon.g_cIsBeta = "false"; var ST_ChildOrderType = { b: 0, - t: 1 + t: 1 } var ST_AlgorithmType = { @@ -1096,7 +1097,7 @@ window.AscCommon.g_cIsBeta = "false"; equ: 1, gte: 2, lte: 3 - } + } var ST_ElementType = { all: 0, @@ -2179,6 +2180,7 @@ window.AscCommon.g_cIsBeta = "false"; var changestype_Timing = 78; var changestype_ViewPr = 79; var changestype_DocumentProtection = 80; + var changestype_CustomPr = 81; var changestype_2_InlineObjectMove = 1; // Передвигаем объект в заданную позцию (проверяем место, в которое пытаемся передвинуть) var changestype_2_HdrFtr = 2; // Изменения с колонтитулом @@ -2436,9 +2438,9 @@ window.AscCommon.g_cIsBeta = "false"; pasteOnlyFormula: 1, formulaNumberFormat: 2, formulaAllFormatting: 3, - formulaWithoutBorders: 4, + formulaWithoutBorders: 4, formulaColumnWidth: 5, - mergeConditionalFormating: 6, + mergeConditionalFormating: 6, pasteOnlyValues: 7, valueNumberFormat: 8, valueAllFormating: 9, @@ -2988,17 +2990,21 @@ window.AscCommon.g_cIsBeta = "false"; CustomGreece : 0x4000, CustomDecimalFourZero : 0x4001, CustomDecimalThreeZero : 0x4002, - CustomDecimalTwoZero : 0x4003 + CustomDecimalTwoZero : 0x4003, + CustomUpperTurkish : 0x4004, + CustomLowerTurkish : 0x4005 }; var c_oAscCustomNumberingFormatAssociation = { 'α, β, γ, ...': c_oAscNumberingFormat.CustomGreece, '00001, 00002, 00003, ...': c_oAscNumberingFormat.CustomDecimalFourZero, '0001, 0002, 0003, ...': c_oAscNumberingFormat.CustomDecimalThreeZero, - '001, 002, 003, ...': c_oAscNumberingFormat.CustomDecimalTwoZero + '001, 002, 003, ...': c_oAscNumberingFormat.CustomDecimalTwoZero, + 'A, Ç, Ĝ, ...': c_oAscNumberingFormat.CustomUpperTurkish, + 'a, ç, ĝ, ...': c_oAscNumberingFormat.CustomLowerTurkish }; - var c_oAscAllNumberingTypes = [c_oAscNumberingFormat.Aiueo, c_oAscNumberingFormat.AiueoFullWidth, c_oAscNumberingFormat.ArabicAbjad, c_oAscNumberingFormat.ArabicAlpha, c_oAscNumberingFormat.BahtText, c_oAscNumberingFormat.CardinalText, c_oAscNumberingFormat.Chicago, c_oAscNumberingFormat.ChineseCounting, c_oAscNumberingFormat.ChineseCountingThousand, c_oAscNumberingFormat.ChineseLegalSimplified, c_oAscNumberingFormat.Chosung, c_oAscNumberingFormat.Decimal, c_oAscNumberingFormat.DecimalEnclosedCircle, c_oAscNumberingFormat.DecimalEnclosedCircleChinese, c_oAscNumberingFormat.DecimalEnclosedFullstop, c_oAscNumberingFormat.DecimalEnclosedParen, c_oAscNumberingFormat.DecimalFullWidth, c_oAscNumberingFormat.DecimalFullWidth2, c_oAscNumberingFormat.DecimalHalfWidth, c_oAscNumberingFormat.DecimalZero, c_oAscNumberingFormat.Ganada, c_oAscNumberingFormat.Hebrew1, c_oAscNumberingFormat.Hebrew2, c_oAscNumberingFormat.Hex, c_oAscNumberingFormat.HindiConsonants, c_oAscNumberingFormat.HindiCounting, c_oAscNumberingFormat.HindiNumbers, c_oAscNumberingFormat.HindiVowels, c_oAscNumberingFormat.IdeographDigital, c_oAscNumberingFormat.IdeographEnclosedCircle, c_oAscNumberingFormat.IdeographLegalTraditional, c_oAscNumberingFormat.IdeographTraditional, c_oAscNumberingFormat.IdeographZodiac, c_oAscNumberingFormat.IdeographZodiacTraditional, c_oAscNumberingFormat.Iroha, c_oAscNumberingFormat.IrohaFullWidth, c_oAscNumberingFormat.JapaneseCounting, c_oAscNumberingFormat.JapaneseDigitalTenThousand, c_oAscNumberingFormat.JapaneseLegal, c_oAscNumberingFormat.KoreanCounting, c_oAscNumberingFormat.KoreanDigital, c_oAscNumberingFormat.KoreanDigital2, c_oAscNumberingFormat.KoreanLegal, c_oAscNumberingFormat.LowerLetter, c_oAscNumberingFormat.LowerRoman, c_oAscNumberingFormat.NumberInDash, c_oAscNumberingFormat.Ordinal, c_oAscNumberingFormat.OrdinalText, c_oAscNumberingFormat.RussianLower, c_oAscNumberingFormat.RussianUpper, c_oAscNumberingFormat.TaiwaneseCounting, c_oAscNumberingFormat.TaiwaneseCountingThousand, c_oAscNumberingFormat.TaiwaneseDigital, c_oAscNumberingFormat.ThaiCounting, c_oAscNumberingFormat.ThaiLetters, c_oAscNumberingFormat.ThaiNumbers, c_oAscNumberingFormat.UpperLetter, c_oAscNumberingFormat.UpperRoman, c_oAscNumberingFormat.VietnameseCounting, c_oAscNumberingFormat.CustomGreece, c_oAscNumberingFormat.CustomDecimalFourZero, c_oAscNumberingFormat.CustomDecimalThreeZero, c_oAscNumberingFormat.CustomDecimalTwoZero,]; + var c_oAscAllNumberingTypes = [c_oAscNumberingFormat.Aiueo, c_oAscNumberingFormat.AiueoFullWidth, c_oAscNumberingFormat.ArabicAbjad, c_oAscNumberingFormat.ArabicAlpha, c_oAscNumberingFormat.BahtText, c_oAscNumberingFormat.CardinalText, c_oAscNumberingFormat.Chicago, c_oAscNumberingFormat.ChineseCounting, c_oAscNumberingFormat.ChineseCountingThousand, c_oAscNumberingFormat.ChineseLegalSimplified, c_oAscNumberingFormat.Chosung, c_oAscNumberingFormat.Decimal, c_oAscNumberingFormat.DecimalEnclosedCircle, c_oAscNumberingFormat.DecimalEnclosedCircleChinese, c_oAscNumberingFormat.DecimalEnclosedFullstop, c_oAscNumberingFormat.DecimalEnclosedParen, c_oAscNumberingFormat.DecimalFullWidth, c_oAscNumberingFormat.DecimalFullWidth2, c_oAscNumberingFormat.DecimalHalfWidth, c_oAscNumberingFormat.DecimalZero, c_oAscNumberingFormat.Ganada, c_oAscNumberingFormat.Hebrew1, c_oAscNumberingFormat.Hebrew2, c_oAscNumberingFormat.Hex, c_oAscNumberingFormat.HindiConsonants, c_oAscNumberingFormat.HindiCounting, c_oAscNumberingFormat.HindiNumbers, c_oAscNumberingFormat.HindiVowels, c_oAscNumberingFormat.IdeographDigital, c_oAscNumberingFormat.IdeographEnclosedCircle, c_oAscNumberingFormat.IdeographLegalTraditional, c_oAscNumberingFormat.IdeographTraditional, c_oAscNumberingFormat.IdeographZodiac, c_oAscNumberingFormat.IdeographZodiacTraditional, c_oAscNumberingFormat.Iroha, c_oAscNumberingFormat.IrohaFullWidth, c_oAscNumberingFormat.JapaneseCounting, c_oAscNumberingFormat.JapaneseDigitalTenThousand, c_oAscNumberingFormat.JapaneseLegal, c_oAscNumberingFormat.KoreanCounting, c_oAscNumberingFormat.KoreanDigital, c_oAscNumberingFormat.KoreanDigital2, c_oAscNumberingFormat.KoreanLegal, c_oAscNumberingFormat.LowerLetter, c_oAscNumberingFormat.LowerRoman, c_oAscNumberingFormat.NumberInDash, c_oAscNumberingFormat.Ordinal, c_oAscNumberingFormat.OrdinalText, c_oAscNumberingFormat.RussianLower, c_oAscNumberingFormat.RussianUpper, c_oAscNumberingFormat.TaiwaneseCounting, c_oAscNumberingFormat.TaiwaneseCountingThousand, c_oAscNumberingFormat.TaiwaneseDigital, c_oAscNumberingFormat.ThaiCounting, c_oAscNumberingFormat.ThaiLetters, c_oAscNumberingFormat.ThaiNumbers, c_oAscNumberingFormat.UpperLetter, c_oAscNumberingFormat.UpperRoman, c_oAscNumberingFormat.VietnameseCounting, c_oAscNumberingFormat.CustomGreece, c_oAscNumberingFormat.CustomDecimalFourZero, c_oAscNumberingFormat.CustomDecimalThreeZero, c_oAscNumberingFormat.CustomDecimalTwoZero, c_oAscNumberingFormat.CustomUpperTurkish, c_oAscNumberingFormat.CustomLowerTurkish]; /** enum {number} */ var c_oAscNumberingSuff = { @@ -3767,8 +3773,36 @@ window.AscCommon.g_cIsBeta = "false"; Shape: "Shape", OleObject: "OleObject" }; - - + + // 17.18.21 ST_EdGrp + const ST_EdGrp = { + administrators : 0, + contributors : 1, + current : 2, + editors : 3, + everyone : 4, + none : 5, + owners : 6 + }; + + window['Asc']['ST_EdGrp'] = window['Asc'].ST_EdGrp = ST_EdGrp; + ST_EdGrp['administrators'] = ST_EdGrp.administrators; + ST_EdGrp['contributors'] = ST_EdGrp.contributors; + ST_EdGrp['current'] = ST_EdGrp.current; + ST_EdGrp['editors'] = ST_EdGrp.editors; + ST_EdGrp['everyone'] = ST_EdGrp.everyone; + ST_EdGrp['none'] = ST_EdGrp.none; + + // 17.18.13 ST_DisplacedByCustomXml + const ST_DisplacedByCustomXml = { + next : 0, + prev : 1 + }; + window['Asc']['ST_DisplacedByCustomXml'] = window['Asc'].ST_DisplacedByCustomXml = ST_DisplacedByCustomXml; + ST_DisplacedByCustomXml['next'] = ST_DisplacedByCustomXml.next; + ST_DisplacedByCustomXml['prev'] = ST_DisplacedByCustomXml.prev; + + var c_oAscDateTimeFormat = {}; c_oAscDateTimeFormat[lcid_arSA] = [ "dd/MM/yyyy", @@ -4254,6 +4288,44 @@ window.AscCommon.g_cIsBeta = "false"; "HH:mm", "HH:mm:ss" ]; + c_oAscDateTimeFormat[lcid_srCyrlRS] = [ + "dd.MM.yyyy.", + "dddd, d. MMMM yyyy.", + "d. MMMM yyyy.", + "dd.MM.yy.", + "yyyy-MM-dd", + "d-MMM-yy", + "dd/MM/yyyy", + "d. MMM. yy.", + "dd/MM/yy", + "MMMM yy", + "MMM-yy", + "dd.MM.yyyy. H:mm", + "dd.MM.yyyy. H:mm:ss", + "h:mm am/pm", + "h:mm:ss am/pm", + "HH:mm", + "HH:mm:ss" + ]; + c_oAscDateTimeFormat[lcid_srLatnRS] = [ + "d.M.yyyy.", + "dddd, dd. MMMM yyyy.", + "dd. MMMM yyyy.", + "d.M.yy.", + "yyyy-MM-dd", + "d-MMM-yy", + "d/M/yyyy", + "dd. MMM. yy.", + "d/M/yy", + "MMMM yy", + "MMM-yy", + "d.M.yyyy. HH:mm", + "d.M.yyyy. HH:mm:ss", + "h:mm am/pm", + "h:mm:ss am/pm", + "HH:mm", + "HH:mm:ss" + ]; c_oAscDateTimeFormat[lcid_skSK] = [ "d. M. yyyy", "dddd d. MMMM yyyy", @@ -4455,6 +4527,7 @@ window.AscCommon.g_cIsBeta = "false"; window['Asc']['c_sNativeViewerFormats'] = window['Asc'].c_sNativeViewerFormats = c_sNativeViewerFormats; window['Asc']['c_sShardKeyName'] = window['Asc'].c_sShardKeyName = c_sShardKeyName; window['Asc']['c_sWopiSrcName'] = window['Asc'].c_sWopiSrcName = c_sWopiSrcName; + window['Asc']['c_sUserSessionIdName'] = window['Asc'].c_sUserSessionIdName = c_sUserSessionIdName; window['Asc']['c_oAscFileType'] = window['Asc'].c_oAscFileType = c_oAscFileType; window['Asc'].g_oLcidNameToIdMap = g_oLcidNameToIdMap; window['Asc'].availableIdeographLanguages = availableIdeographLanguages; @@ -5225,6 +5298,7 @@ window.AscCommon.g_cIsBeta = "false"; window["AscCommon"].changestype_Timing = changestype_Timing; window["AscCommon"].changestype_ViewPr = changestype_ViewPr; window["AscCommon"].changestype_DocumentProtection = changestype_DocumentProtection; + window["AscCommon"].changestype_CustomPr = changestype_CustomPr; window["AscCommon"].changestype_2_InlineObjectMove = changestype_2_InlineObjectMove; window["AscCommon"].changestype_2_HdrFtr = changestype_2_HdrFtr; @@ -5558,6 +5632,8 @@ window.AscCommon.g_cIsBeta = "false"; prot['CustomDecimalFourZero'] = prot.CustomDecimalFourZero; prot['CustomDecimalThreeZero'] = prot.CustomDecimalThreeZero; prot['CustomDecimalTwoZero'] = prot.CustomDecimalTwoZero; + prot['CustomUpperTurkish'] = prot.CustomUpperTurkish; + prot['CustomLowerTurkish'] = prot.CustomLowerTurkish; window['Asc']['c_oAscCustomNumberingFormatAssociation'] = window['Asc'].c_oAscCustomNumberingFormatAssociation = c_oAscCustomNumberingFormatAssociation; diff --git a/common/device_scale.js b/common/device_scale.js index e3c1e746c6..2df381e35b 100644 --- a/common/device_scale.js +++ b/common/device_scale.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/digest/sha256.js b/common/digest/sha256.js index 4ad0a3eec6..4d2d20a8ab 100644 --- a/common/digest/sha256.js +++ b/common/digest/sha256.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/docscoapi.js b/common/docscoapi.js index b3c2f7c5ed..1c88e22896 100644 --- a/common/docscoapi.js +++ b/common/docscoapi.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -50,7 +50,7 @@ this._onlineWork = false; } - CDocsCoApi.prototype.init = function(user, docid, documentCallbackUrl, token, editorType, documentFormatSave, docInfo, shardKey, wopiSrc) { + CDocsCoApi.prototype.init = function(user, docid, documentCallbackUrl, token, editorType, documentFormatSave, docInfo, shardKey, wopiSrc, userSessionId, openCmd) { if (this._CoAuthoringApi && this._CoAuthoringApi.isRightURL()) { var t = this; this._CoAuthoringApi.onAuthParticipantsChanged = function(e, id) { @@ -145,7 +145,7 @@ t.callback_OnLicenseChanged(res); }; - this._CoAuthoringApi.init(user, docid, documentCallbackUrl, token, editorType, documentFormatSave, docInfo, shardKey, wopiSrc); + this._CoAuthoringApi.init(user, docid, documentCallbackUrl, token, editorType, documentFormatSave, docInfo, shardKey, wopiSrc, userSessionId, openCmd); this._onlineWork = true; } else { // Фиктивные вызовы @@ -357,6 +357,12 @@ } }; + CDocsCoApi.prototype.connect = function() { + if (this._CoAuthoringApi && this._onlineWork) { + this._CoAuthoringApi.connect(); + } + }; + CDocsCoApi.prototype.extendSession = function(idleTime) { if (this._CoAuthoringApi && this._onlineWork) { this._CoAuthoringApi.extendSession(idleTime); @@ -587,7 +593,7 @@ this._id = null; this._sessionTimeConnect = null; this._allChangesSaved = null; - this._lastForceSaveButtonTime = null; + this._lastForceSaveButtonTime = -2;//-2 to allow first save without changes this._lastForceSaveTimeoutTime = null; this._indexUser = -1; // Если пользователей больше 1, то совместно редактируем @@ -645,12 +651,12 @@ this.mode = undefined; this.permissions = undefined; this.lang = undefined; + this.openCmd = undefined; this.jwtOpen = undefined; this.jwtSession = undefined; this.encrypted = undefined; this.IsAnonymousUser = undefined; this.coEditingMode = undefined; - this._isViewer = false; this._isReSaveAfterAuth = false; // Флаг для сохранения после повторной авторизации (для разрыва соединения во время сохранения) this._lockBuffer = []; this._saveChangesChunks = []; @@ -903,6 +909,11 @@ } }; + DocsCoApi.prototype.connect = function() { + this.isCloseCoAuthoring = false; + this.socketio.connect(); + }; + DocsCoApi.prototype.disconnect = function(opt_code, opt_reason) { // Отключаемся сами this.isCloseCoAuthoring = true; @@ -1641,7 +1652,7 @@ this._authOtherChanges = []; }; - DocsCoApi.prototype.init = function(user, docid, documentCallbackUrl, token, editorType, documentFormatSave, docInfo, shardKey, wopiSrc) { + DocsCoApi.prototype.init = function(user, docid, documentCallbackUrl, token, editorType, documentFormatSave, docInfo, shardKey, wopiSrc, userSessionId, openCmd) { this._user = user; this._docid = null; this._documentCallbackUrl = documentCallbackUrl; @@ -1656,12 +1667,14 @@ this.mode = docInfo.get_Mode(); this.permissions = docInfo.get_Permissions(); this.lang = docInfo.get_Lang(); + this.openCmd = openCmd; this.jwtOpen = docInfo.get_Token(); this.encrypted = docInfo.get_Encrypted() || docInfo.get_IsWebOpening(); this.IsAnonymousUser = docInfo.get_IsAnonymousUser(); this.coEditingMode = docInfo.asc_getCoEditingMode(); this.shardKey = shardKey; this.wopiSrc = wopiSrc; + this.userSessionId = userSessionId; this.setDocId(docid); this._initSocksJs(); @@ -1674,9 +1687,7 @@ this._docid = docid; this.socketio_url = AscCommon.getBaseUrlPathname() + '../../../../doc/' + docid + '/c'; }; - // Авторизация (ее нужно делать после выставления состояния редактора view-mode) - DocsCoApi.prototype.auth = function(isViewer, opt_openCmd, opt_isIdle) { - this._isViewer = isViewer; + DocsCoApi.prototype.getAuthCommand = function(opt_openCmd, opt_isIdle) { if (this._locks) { this.ownedLockBlocks = []; //If we already have locks @@ -1689,7 +1700,7 @@ } this._locks = {}; } - this._send({ + return { 'type': 'auth', 'docid': this._docid, 'documentCallbackUrl': this._documentCallbackUrl, @@ -1705,10 +1716,9 @@ 'lastOtherSaveTime': this.lastOtherSaveTime, 'block': this.ownedLockBlocks, 'sessionId': this._id, - 'sessionTimeConnect': this._sessionTimeConnect, + 'sessionTimeConnect': this._sessionTimeConnect, 'sessionTimeIdle': opt_isIdle >= 0 ? opt_isIdle : 0, 'documentFormatSave': this._documentFormatSave, - 'view': this._isViewer, 'isCloseCoAuthoring': this.isCloseCoAuthoring, 'openCmd': opt_openCmd, 'lang': this.lang, @@ -1722,9 +1732,12 @@ 'jwtSession': this.jwtSession, 'time': Math.round(performance.now()), 'supportAuthChangesAck': true - }); + }; + }; + // Авторизация (ее нужно делать после выставления состояния редактора view-mode) + DocsCoApi.prototype.auth = function(isViewer, opt_openCmd, opt_isIdle) { + this._send(this.getAuthCommand(opt_openCmd, opt_isIdle)); }; - function CNativeSocket(settings) { this.engine = window['SockJS']; @@ -1783,6 +1796,7 @@ "reconnectionDelayMax": 10000, "randomizationFactor": 0.5, "auth": { + "data": this.getAuthCommand(this.openCmd), "token": this.jwtOpen, "session": this.jwtSession } @@ -1794,6 +1808,9 @@ if (this.wopiSrc) { options["query"][Asc.c_sWopiSrcName] = this.wopiSrc; } + if (this.userSessionId) { + options["query"][Asc.c_sUserSessionIdName] = this.userSessionId; + } if (window['IS_NATIVE_EDITOR']) { socket = this.sockjs = new CNativeSocket(options); diff --git a/common/docscoapicommon.js b/common/docscoapicommon.js index 1a34e02599..b7e2edec1d 100644 --- a/common/docscoapicommon.js +++ b/common/docscoapicommon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/downloaderfiles.js b/common/downloaderfiles.js index 6b2afb777c..da12132494 100644 --- a/common/downloaderfiles.js +++ b/common/downloaderfiles.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/editorscommon.js b/common/editorscommon.js index 27c3cef4c6..ffee0e8165 100644 --- a/common/editorscommon.js +++ b/common/editorscommon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -54,6 +54,12 @@ var availableBidiLanguages = window['Asc'].availableBidiLanguages; const fontslot_ASCII = 0x01; + let scriptDirectory = ""; + if (document.currentScript) { + scriptDirectory = document.currentScript.src; + scriptDirectory = scriptDirectory.substring(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/") + 1); + } + Number.isInteger = Number.isInteger || function(value) { return typeof value === 'number' && Number.isFinite(value) && !(value % 1); }; @@ -966,6 +972,9 @@ if (editor.documentWopiSrc) { url += '&' + Asc.c_sWopiSrcName + '=' + encodeURIComponent(editor.documentWopiSrc); } + if (editor.documentUserSessionId) { + url += '&' + Asc.c_sUserSessionIdName + '=' + encodeURIComponent(editor.documentUserSessionId); + } asc_ajax({ type: 'POST', url: url, @@ -988,7 +997,7 @@ }); } - function sendSaveFile(docId, userId, title, jwt, shardKey, wopiSrc, data, fError, fsuccess) + function sendSaveFile(docId, userId, title, jwt, shardKey, wopiSrc, userSessionId, data, fError, fsuccess) { let cmd = {'id': docId, "userid": userId, "tokenSession": jwt, 'outputpath': title}; let url =sSaveFileLocalUrl + '/' + docId; @@ -999,6 +1008,9 @@ if (wopiSrc) { url += '&' + Asc.c_sWopiSrcName + '=' + encodeURIComponent(wopiSrc); } + if (userSessionId) { + url += '&' + Asc.c_sUserSessionIdName + '=' + encodeURIComponent(userSessionId); + } asc_ajax({ type: 'POST', url: url, @@ -1045,6 +1057,8 @@ case c_oAscServerError.ConvertNEED_PARAMS : case c_oAscServerError.ConvertUnknownFormat : case c_oAscServerError.ConvertReadFile : + case c_oAscServerError.ConvertTemporaty : + case c_oAscServerError.ConvertDetect : case c_oAscServerError.Convert : nRes = AscCommon.c_oAscAdvancedOptionsAction.Save === nAction ? Asc.c_oAscError.ID.ConvertationSaveError : @@ -1446,7 +1460,8 @@ "na": "#N\/A", "getdata": "#GETTING_DATA", "uf": "#UNSUPPORTED_FUNCTION!", - "calc": "#CALC!" + "calc": "#CALC!", + "spill": "#SPILL!", }; var cErrorLocal = {}; let cCellFunctionLocal = {}; @@ -1481,7 +1496,8 @@ structured_tables_headata = new XRegExp('(?:\\[\\#' + loc_headers + '\\]\\' + FormulaSeparators.functionArgumentSeparator + '\\[\\#' + loc_data + '\\])'), structured_tables_datals = new XRegExp('(?:\\[\\#' + loc_data + '\\]\\' + FormulaSeparators.functionArgumentSeparator + '\\[\\#' + loc_totals + '\\])'), structured_tables_userColumn = new XRegExp('(?:\'\\[|\'\\]|[^[\\]])+'), - structured_tables_reservedColumn = new XRegExp('\\#(?:' + loc_all + '|' + loc_headers + '|' + loc_totals + '|' + loc_data + '|' + loc_this_row + ')|@'); + structured_tables_reservedColumn = new XRegExp('\\#(?:' + loc_all + '|' + loc_headers + '|' + loc_totals + '|' + loc_data + /*'|' + loc_this_row + */')'), + structured_tables_thisRow = new XRegExp('(?:\\#(?:' + loc_this_row +')|(?:\\@))'); //Table4[[#Data];[#Totals]] @@ -1497,22 +1513,34 @@ //Table1[[#Headers],[#Data],[Column1]:[Column2]] + // @ === [#This Row], + // Table[@] + // Table[@Column1] + // Table[@Column1:[Column2]] === Table[@[Column1]:[Column2]] + let argsSeparator = FormulaSeparators.functionArgumentSeparator; return XRegExp.build('^(?{{tableName}})\\[(?{{columnName}})?\\]', { "tableName": new XRegExp("^(:?[" + str_namedRanges + "][" + str_namedRanges + "\\d.]*)"), - "columnName": XRegExp.build('(?{{reservedColumn}})|(?{{userColumn}})|(?{{userColumnRange}})|(?{{hdtcc}})', { + "columnName": XRegExp.build('(?{{reservedColumn}}|{{thisRow}})|(?{{userColumn}})|(?{{userColumnRange}})|(?{{hdtcc}})', { "userColumn": structured_tables_userColumn, "reservedColumn": structured_tables_reservedColumn, + "thisRow": structured_tables_thisRow, "userColumnRange": XRegExp.build('\\[(?{{uc}})\\]\\:\\[(?{{uc}})\\]', { "uc": structured_tables_userColumn }), //fixed: added [{{rc}}\\]' + argsSeparator + '\\[{{rc}}\\] for: //Table1[[#Data],[#Totals]] //Table1[[#Headers],[#Data]] - "hdtcc": XRegExp.build('(?\\[{{rc}}\\]' + argsSeparator + '\\[{{rc}}\\]|\\[{{rc}}\\]|{{hd}}|{{dt}})(?:\\' + argsSeparator + '(?:\\[(?{{uc}})\\])(?:\\:(?:\\[(?{{uc}})\\]))?)?', { + + // '(?\\[{{rc}}\\]' + argsSeparator + '\\[{{rc}}\\]|\\[{{rc}}\\]|{{hd}}|{{dt}})(?:\\' + argsSeparator + '(?:\\[(?{{uc}})\\])(?:\\:(?:\\[(?{{uc}})\\]))?)?' + + // last used: '(?(?:\\[{{rc}}\\])?(?:\@)?)(?:(?:\\'+argsSeparator+')?(?:\\\[?(?{{uc}})\\\]?)(?:\\:(?:\\[(?{{uc}})\\]))?)?' + "hdtcc": XRegExp.build('(?(?:\\[{{rc}}\\]' + argsSeparator + '\\[{{rc}}\\]|\\[{{rc}}\\]|{{hd}}|{{dt}})|(?:\\[{{tr}}\\])|\@)(?:(?:\\' + argsSeparator + ')?(?:\\[(?{{uc}})\\])(?:\\:(?:\\[(?{{uc}})\\]))?)?' + , { "rc": structured_tables_reservedColumn, "hd": structured_tables_headata, "dt": structured_tables_datals, + "tr": structured_tables_thisRow, "uc": structured_tables_userColumn }) }) @@ -1540,7 +1568,8 @@ "na": "#N\/A", "getdata": "#GETTING_DATA", "uf": "#UNSUPPORTED_FUNCTION!", - "calc": "#CALC!" + "calc": "#CALC!", + "spill": "#SPILL!" }; cErrorLocal['nil'] = local['nil']; cErrorLocal['div'] = local['div']; @@ -1552,6 +1581,7 @@ cErrorLocal['getdata'] = local['getdata']; cErrorLocal['uf'] = local['uf']; cErrorLocal['calc'] = local['calc']; + cErrorLocal['spill'] = local['spill']; return new RegExp("^(" + cErrorLocal["nil"] + "|" + cErrorLocal["div"] + "|" + @@ -1562,7 +1592,8 @@ cErrorLocal["na"] + "|" + cErrorLocal["getdata"] + "|" + cErrorLocal["uf"] + "|" + - cErrorLocal["calc"] + ")", "i"); + cErrorLocal["calc"] + "|" + + cErrorLocal["spill"] + ")", "i") } function build_rx_cell_func(local) @@ -1646,6 +1677,8 @@ ConvertPASSWORD: -91, ConvertICU: -92, ConvertLIMITS: -93, + ConvertTemporaty: -94, + ConvertDetect: -95, ConvertDeadLetter: -99, Upload: -100, @@ -1668,7 +1701,7 @@ //todo get from server config var c_oAscImageUploadProp = {//Не все браузеры позволяют получить информацию о файле до загрузки(например ie9), меняя параметры здесь надо поменять аналогичные параметры в web.common MaxFileSize: 25000000, //25 mb - SupportedFormats: ["jpg", "jpeg", "jpe", "png", "gif", "bmp", "svg"] + SupportedFormats: ["jpg", "jpeg", "jpe", "png", "gif", "bmp", "svg", "tiff", "tif"] }; var c_oAscDocumentUploadProp = { @@ -2190,8 +2223,14 @@ let oViewer = Asc.editor.getDocumentRenderer(); let oDoc = oViewer.doc; let oActionsQueue = oDoc.GetActionsQueue(); + + function cancelFileDialog() { + AscCommon.global_mouseEvent.UnLockMouse(); + oActionsQueue.Continue(); + } + if (oActionsQueue.IsInProgress()) { - Asc.editor.sendEvent("asc_onOpenFilePdfForm", fileName.click.bind(fileName), oActionsQueue.Continue.bind(oActionsQueue)); + Asc.editor.sendEvent("asc_onOpenFilePdfForm", fileName.click.bind(fileName), cancelFileDialog); } else fileName.click(); @@ -2204,7 +2243,7 @@ return false; } } - function ShowImageFileDialog(documentId, documentUserId, jwt, shardKey, wopiSrc, callback, callbackOld) + function ShowImageFileDialog(documentId, documentUserId, jwt, shardKey, wopiSrc, userSessionId, callback, callbackOld) { if (false === _ShowFileDialog(getAcceptByArray(c_oAscImageUploadProp.SupportedFormats), true, true, ValidateUploadImage, callback)) { //todo remove this compatibility @@ -2217,6 +2256,9 @@ if (wopiSrc) { queryParams.push(Asc.c_sWopiSrcName + '=' + encodeURIComponent(wopiSrc)); } + if (userSessionId) { + queryParams.push(Asc.c_sUserSessionIdName + '=' + encodeURIComponent(userSessionId)); + } if (jwt) { queryParams.push('token=' + encodeURIComponent(jwt)); } @@ -2248,8 +2290,8 @@ fileName.click(); } } - function ShowDocumentFileDialog(callback) { - if (false === _ShowFileDialog(getAcceptByArray(c_oAscDocumentUploadProp.SupportedFormats), false, false, ValidateUploadDocument, callback)) { + function ShowDocumentFileDialog(callback, isAllowMultiple) { + if (false === _ShowFileDialog(getAcceptByArray(c_oAscDocumentUploadProp.SupportedFormats), false, !!isAllowMultiple, ValidateUploadDocument, callback)) { callback(Asc.c_oAscError.ID.Unknown); } } @@ -2430,7 +2472,7 @@ callback(nError, [file], obj); } - function UploadImageFiles(files, documentId, documentUserId, jwt, shardKey, wopiSrc, callback) + function UploadImageFiles(files, documentId, documentUserId, jwt, shardKey, wopiSrc, userSessionId, callback) { if (files.length > 0) { @@ -2442,6 +2484,9 @@ if (wopiSrc) { queryParams.push(Asc.c_sWopiSrcName + '=' + encodeURIComponent(wopiSrc)); } + if (userSessionId) { + queryParams.push(Asc.c_sUserSessionIdName + '=' + encodeURIComponent(userSessionId)); + } if (queryParams.length > 0) { url += '?' + queryParams.join('&'); } @@ -2503,7 +2548,7 @@ } } - function UploadImageUrls(files, documentId, documentUserId, jwt, shardKey, wopiSrc, callback) + function UploadImageUrls(files, documentId, documentUserId, jwt, shardKey, wopiSrc, userSessionId, callback) { if (files.length > 0) { @@ -2515,6 +2560,9 @@ if (wopiSrc) { queryParams.push(Asc.c_sWopiSrcName + '=' + encodeURIComponent(wopiSrc)); } + if (userSessionId) { + queryParams.push(Asc.c_sUserSessionIdName + '=' + encodeURIComponent(userSessionId)); + } if (queryParams.length > 0) { url += '?' + queryParams.join('&'); } @@ -2809,8 +2857,8 @@ /*Functions that checks of an element in formula*/ //var str_namedRanges = "\\p{L}\\p{M}*", - var str_namedRanges = "A-Za-z\u005F\u0080-\u0081\u0083\u0085-\u0087\u0089-\u008A\u008C-\u0091\u0093-\u0094\u0096-\u0097\u0099-\u009A\u009C-\u009F\u00A1-\u00A5\u00A7-\u00A8\u00AA\u00AD\u00AF-\u00BA\u00BC-\u02B8\u02BB-\u02C1\u02C7\u02C9-\u02CB\u02CD\u02D0-\u02D1\u02D8-\u02DB\u02DD\u02E0-\u02E4\u02EE\u0370-\u0373\u0376-\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0523\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0621-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0972\u097B-\u097F\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58-\u0C59\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D\u0D60-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E3A\u0E40-\u0E4E\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDD\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8B\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1159\u115F-\u11A2\u11A8-\u11F9\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u1676\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19A9\u19C1-\u19C7\u1A00-\u1A16\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200e\u2010\u2013-\u2016\u2018\u201C-\u201D\u2020-\u2021\u2025-\u2027\u2030\u2032-\u2033\u2035\u203B\u2071\u2074\u207F\u2081-\u2084\u2090-\u2094\u2102-\u2103\u2105\u2107\u2109-\u2113\u2115-\u2116\u2119-\u211D\u2121-\u2122\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2153-\u2154\u215B-\u215E\u2160-\u2188\u2190-\u2199\u21D2\u21D4\u2200\u2202-\u2203\u2207-\u2208\u220B\u220F\u2211\u2215\u221A\u221D-\u2220\u2223\u2225\u2227-\u222C\u222E\u2234-\u2237\u223C-\u223D\u2248\u224C\u2252\u2260-\u2261\u2264-\u2267\u226A-\u226B\u226E-\u226F\u2282-\u2283\u2286-\u2287\u2295\u2299\u22A5\u22BF\u2312\u2460-\u24B5\u24D0-\u24E9\u2500-\u254B\u2550-\u2574\u2581-\u258F\u2592-\u2595\u25A0-\u25A1\u25A3-\u25A9\u25B2-\u25B3\u25B6-\u25B7\u25BC-\u25BD\u25C0-\u25C1\u25C6-\u25C8\u25CB\u25CE-\u25D1\u25E2-\u25E5\u25EF\u2605-\u2606\u2609\u260E-\u260F\u261C\u261E\u2640\u2642\u2660-\u2661\u2663-\u2665\u2667-\u266A\u266C-\u266D\u266F\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C6F\u2C71-\u2C7D\u2C80-\u2CE4\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3000-\u3003\u3005-\u3017\u301D-\u301F\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u321C\u3220-\u3229\u3231-\u3232\u3239\u3260-\u327B\u327F\u32A3-\u32A8\u3303\u330D\u3314\u3318\u3322-\u3323\u3326-\u3327\u332B\u3336\u333B\u3349-\u334A\u334D\u3351\u3357\u337B-\u337E\u3380-\u3384\u3388-\u33CA\u33CD-\u33D3\u33D5-\u33D6\u33D8\u33DB-\u33DD\u3400-\u4DB5\u4E00-\u9FC3\uA000-\uA48C\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA65F\uA662-\uA66E\uA680-\uA697\uA722-\uA787\uA78B-\uA78C\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA90A-\uA925\uA930-\uA946\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAC00-\uD7A3\uE000-\uF848\uF900-\uFA2D\uFA30-\uFA6A\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE30-\uFE31\uFE33-\uFE44\uFE49-\uFE52\uFE54-\uFE57\uFE59-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFF01-\uFF5E\uFF61-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6"; - str_namedRanges += "\\p{M}*"; + var str_namedRanges = "A-Za-z\u005F\u0080-\u0081\u0083\u0085-\u0087\u0089-\u008A\u008C-\u0091\u0093-\u0094\u0096-\u0097\u0099-\u009A\u009C-\u009F\u00A1-\u00A5\u00A7-\u00A8\u00AA\u00AD\u00AF-\u00BA\u00BC-\u02B8\u02BB-\u02C1\u02C7\u02C9-\u02CB\u02CD\u02D0-\u02D1\u02D8-\u02DB\u02DD\u02E0-\u02E4\u02EE\u0370-\u0373\u0376-\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0523\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0621-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0972\u097B-\u097F\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09C0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58-\u0C59\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D\u0D60-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E3A\u0E40-\u0E4E\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDD\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8B\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1159\u115F-\u11A2\u11A8-\u11F9\u1200-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u1676\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19A9\u19C1-\u19C7\u1A00-\u1A16\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200e\u2010\u2013-\u2016\u2018\u201C-\u201D\u2020-\u2021\u2025-\u2027\u2030\u2032-\u2033\u2035\u203B\u2071\u2074\u207F\u2081-\u2084\u2090-\u2094\u2102-\u2103\u2105\u2107\u2109-\u2113\u2115-\u2116\u2119-\u211D\u2121-\u2122\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2153-\u2154\u215B-\u215E\u2160-\u2188\u2190-\u2199\u21D2\u21D4\u2200\u2202-\u2203\u2207-\u2208\u220B\u220F\u2211\u2215\u221A\u221D-\u2220\u2223\u2225\u2227-\u222C\u222E\u2234-\u2237\u223C-\u223D\u2248\u224C\u2252\u2260-\u2261\u2264-\u2267\u226A-\u226B\u226E-\u226F\u2282-\u2283\u2286-\u2287\u2295\u2299\u22A5\u22BF\u2312\u2460-\u24B5\u24D0-\u24E9\u2500-\u254B\u2550-\u2574\u2581-\u258F\u2592-\u2595\u25A0-\u25A1\u25A3-\u25A9\u25B2-\u25B3\u25B6-\u25B7\u25BC-\u25BD\u25C0-\u25C1\u25C6-\u25C8\u25CB\u25CE-\u25D1\u25E2-\u25E5\u25EF\u2605-\u2606\u2609\u260E-\u260F\u261C\u261E\u2640\u2642\u2660-\u2661\u2663-\u2665\u2667-\u266A\u266C-\u266D\u266F\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C6F\u2C71-\u2C7D\u2C80-\u2CE4\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3000-\u3003\u3005-\u3017\u301D-\u301F\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u321C\u3220-\u3229\u3231-\u3232\u3239\u3260-\u327B\u327F\u32A3-\u32A8\u3303\u330D\u3314\u3318\u3322-\u3323\u3326-\u3327\u332B\u3336\u333B\u3349-\u334A\u334D\u3351\u3357\u337B-\u337E\u3380-\u3384\u3388-\u33CA\u33CD-\u33D3\u33D5-\u33D6\u33D8\u33DB-\u33DD\u3400-\u4DB5\u4E00-\u9FC3\uA000-\uA48C\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA65F\uA662-\uA66E\uA680-\uA697\uA722-\uA787\uA78B-\uA78C\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA90A-\uA925\uA930-\uA946\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAC00-\uD7A3\uE000-\uF848\uF900-\uFA2D\uFA30-\uFA6A\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE30-\uFE31\uFE33-\uFE44\uFE49-\uFE52\uFE54-\uFE57\uFE59-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFF01-\uFF5E\uFF61-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6"; + str_namedRanges += "\\p{M}"; var str_namedSheetsRange = "\u0001-\u0026\u0028-\u0029\u002B-\u002D\u003B-\u003E\u0040\u005E\u0060\u007B-\u007F\u0082\u0084\u008B\u0092\u0095\u0098\u009B\u00A0\u00A6\u00A9\u00AB-\u00AC\u00AE\u00BB\u0378-\u0379\u037E-\u0383\u0387\u038B\u038D\u03A2\u0524-\u0530\u0557-\u0558\u055A-\u0560\u0588-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EF\u05F3-\u05FF\u0604-\u0605\u0609-\u060A\u060C-\u060D\u061B-\u061E\u0620\u065F\u066A-\u066D\u06D4\u0700-\u070E\u074B-\u074C\u07B2-\u07BF\u07F7-\u07F9\u07FB-\u0900\u093A-\u093B\u094E-\u094F\u0955-\u0957\u0964-\u0965\u0970\u0973-\u097A\u0980\u0984\u098D-\u098E\u0991-\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BB\u09C5-\u09C6\u09C9-\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4-\u09E5\u09FB-\u0A00\u0A04\u0A0B-\u0A0E\u0A11-\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A3B\u0A3D\u0A43-\u0A46\u0A49-\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABB\u0AC6\u0ACA\u0ACE-\u0ACF\u0AD1-\u0ADF\u0AE4-\u0AE5\u0AF0\u0AF2-\u0B00\u0B04\u0B0D-\u0B0E\u0B11-\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3B\u0B45-\u0B46\u0B49-\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64-\u0B65\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE-\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64-\u0C65\u0C70-\u0C77\u0C80-\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4-\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D29\u0D3A-\u0D3C\u0D45\u0D49\u0D4E-\u0D56\u0D58-\u0D5F\u0D64-\u0D65\u0D76-\u0D78\u0D80-\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE-\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3E\u0E4F\u0E5A-\u0E80\u0E83\u0E85-\u0E86\u0E89\u0E8B-\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8-\u0EA9\u0EAC\u0EBA\u0EBE-\u0EBF\u0EC5\u0EC7\u0ECE-\u0ECF\u0EDA-\u0EDB\u0EDE-\u0EFF\u0F04-\u0F12\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F8C-\u0F8F\u0F98\u0FBD\u0FCD\u0FD0-\u0FFF\u104A-\u104F\u109A-\u109D\u10C6-\u10CF\u10FB\u10FD-\u10FF\u115A-\u115E\u11A3-\u11A7\u11FA-\u11FF\u1249\u124E-\u124F\u1257\u1259\u125E-\u125F\u1289\u128E-\u128F\u12B1\u12B6-\u12B7\u12BF\u12C1\u12C6-\u12C7\u12D7\u1311\u1316-\u1317\u135B-\u135E\u1361-\u1368\u137D-\u137F\u139A-\u139F\u13F5-\u1400\u166D-\u166E\u1677-\u167F\u169B-\u169F\u16EB-\u16ED\u16F1-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DA\u17DE-\u17DF\u17EA-\u17EF\u17FA-\u180A\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1945\u196E-\u196F\u1975-\u197F\u19AA-\u19AF\u19CA-\u19CF\u19DA-\u19DF\u1A1C-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BAB-\u1BAD\u1BBA-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E-\u1CFF\u1DE7-\u1DFD\u1F16-\u1F17\u1F1E-\u1F1F\u1F46-\u1F47\u1F4E-\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E-\u1F7F\u1FB5\u1FC5\u1FD4-\u1FD5\u1FDC\u1FF0-\u1FF1\u1FF5\u1FFF\u200e\u2011-\u2012\u2017\u2019-\u201B\u201E-\u201F\u2022-\u2024\u2031\u2034\u2036-\u203A\u203C-\u2043\u2045-\u2051\u2053-\u205E\u2065-\u2069\u2072-\u2073\u207D-\u207E\u208D-\u208F\u2095-\u209F\u20B6-\u20CF\u20F1-\u20FF\u2150-\u2152\u2189-\u218F\u2329-\u232A\u23E8-\u23FF\u2427-\u243F\u244B-\u245F\u269E-\u269F\u26BD-\u26BF\u26C4-\u2700\u2705\u270A-\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u275F-\u2760\u2768-\u2775\u2795-\u2797\u27B0\u27BF\u27C5-\u27C6\u27CB\u27CD-\u27CF\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC-\u29FD\u2B4D-\u2B4F\u2B55-\u2BFF\u2C2F\u2C5F\u2C70\u2C7E-\u2C7F\u2CEB-\u2CFC\u2CFE-\u2CFF\u2D26-\u2D2F\u2D66-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3018-\u301C\u3030\u303D\u3040\u3097-\u3098\u30A0\u3100-\u3104\u312E-\u3130\u318F\u31B8-\u31BF\u31E4-\u31EF\u321F\u3244-\u324F\u32FF\u4DB6-\u4DBF\u9FC4-\u9FFF\uA48D-\uA48F\uA4C7-\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA660-\uA661\uA673-\uA67B\uA67E\uA698-\uA6FF\uA78D-\uA7FA\uA82C-\uA83F\uA874-\uA87F\uA8C5-\uA8CF\uA8DA-\uA8FF\uA92F\uA954-\uA9FF\uAA37-\uAA3F\uAA4E-\uAA4F\uAA5A-\uABFF\uD7A4-\uD7FF\uFA2E-\uFA2F\uFA6B-\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90-\uFD91\uFDC8-\uFDEF\uFDFE-\uFDFF\uFE10-\uFE1F\uFE27-\uFE2F\uFE32\uFE45-\uFE48\uFE53\uFE58\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFEFE\uFF00\uFF5F-\uFF60\uFFBF-\uFFC1\uFFC8-\uFFC9\uFFD0-\uFFD1\uFFD8-\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFF8\uFFFE-\uFFFF", rx_operators = /^ *[-+*\/^&%<=>:] */, @@ -2876,43 +2924,57 @@ //var regExpExceptExternalLink = /('?[a-zA-Z0-9\s\[\]\.]{1,99})?'?!?\$?[a-zA-Z]{1,3}\$?[0-9]{1,7}(:\$?[a-zA-Z]{1,3}\$?[0-9]{1,7})?/; //'path/[name]Sheet1'!A1 - var path, name, startLink, i; - url = url && url.split(FormulaSeparators.functionArgumentSeparator)[0]; - if (url && url[0] === "'"/*url.match(/('[^\[]*\[[^\]]+\]([^'])+'!)/g)*/) { - for (i = url.length - 1; i >= 0; i--) { - if (url[i] === "!" && url[i - 1] === "'") { - startLink = true; - i--; - continue; + let path, name, startLink, i, exclamationMarkIndex; + if (url && url.indexOf("[") !== -1) { + //todo check on other separators, exm -> SUM(A2 '[new.xlsx]Sheet1'!A1 '[new.xlsx]Sheet1'!A2) + for (let j = 0; j < url.length; j++) { + if (!exclamationMarkIndex && url[j] === "!") { + exclamationMarkIndex = j; + } + + if (url[j] === FormulaSeparators.functionArgumentSeparator || url[j] === FormulaSeparators.functionArgumentSeparatorDef || url[j] === ";") { + url = url.substring(0, j); + break; } - if (startLink) { - if (name) { - if (url[i] === "[" && (url[i - 1] === "/" || url[i - 1] === "/\/" || url[i - 1] === "\\" || (url[i - 1] === "'") && i === 1)) { - break; + } + + + if (url && url[0] === "'"/*url.match(/('[^\[]*\[[^\]]+\]([^'])+'!)/g)*/) { + for (i = exclamationMarkIndex ? exclamationMarkIndex : url.length - 1; i >= 0; i--) { + if (url[i] === "!" && url[i - 1] === "'") { + startLink = true; + i--; + continue; + } + if (startLink) { + if (name) { + if (url[i] === "[" && (url[i - 1] === "/" || url[i - 1] === "/\/" || url[i - 1] === "\\" || (url[i - 1] === "'") && i === 1)) { + break; + } else { + name.end--; + } } else { - name.end--; - } - } else { - if("]" === url[i]) { - name = {start: i, end: i}; + if("]" === url[i]) { + name = {start: i, end: i}; + } } } } - } - if (name) { - var fullname = url.substring(0, name.start + 1); - path = url.substring(1, name.end - 1); - name = url.substring(name.end, name.start); - return {name: name, path: path, fullname: fullname}; - } - } else if (url && url[0] === "[") { // [name]Sheet1!A1 - for (i = 1; i < url.length; i++) { - if (url[i] === "]") { - return {name: url.substring(1, i), path: "", fullname: url.substring(0, i + 1)}; + if (name) { + var fullname = url.substring(0, name.start + 1); + path = url.substring(1, name.end - 1); + name = url.substring(name.end, name.start); + return {name: name, path: path, fullname: fullname}; } - } - } else if (true) { //https://s3.amazonaws.com/nct-files/xlsx/[ExternalLinksDestination.xlsx]Sheet1!A1:A2 + } else if (url && url[0] === "[") { // [name]Sheet1!A1 + for (i = 1; i < url.length; i++) { + if (url[i] === "]") { + return {name: url.substring(1, i), path: "", fullname: url.substring(0, i + 1)}; + } + } + } else if (true) { //https://s3.amazonaws.com/nct-files/xlsx/[ExternalLinksDestination.xlsx]Sheet1!A1:A2 + } } return null; @@ -3342,10 +3404,12 @@ if (external) { externalLength = external.fullname.length; subSTR = formula.substring(start_pos + externalLength); - if (-1 !== subSTR.indexOf("'")) { - externalLength += 1; + const posQuote = subSTR.indexOf("'"); + if (-1 !== posQuote) { + externalLength -= 1; + subSTR = "'" + subSTR; } - subSTR = subSTR.replace("'", ""); + external = external.path + external.name; } } @@ -3700,8 +3764,8 @@ this._reset(); } - var subSTR = formula.substring(start_pos), - match = XRegExp.exec(subSTR, local ? rx_table_local : rx_table); + let subSTR = formula.substring(start_pos), + match = XRegExp.exec(subSTR, local ? rx_table_local : rx_table); if (match != null && match["tableName"]) { @@ -4203,10 +4267,15 @@ this.m_nOFormLoadCounter = 0; this.m_nOFormEditCounter = 0; + + this.m_nTurnOffCounter = 0; } CIdCounter.prototype.Get_NewId = function () { + if (!AscCommon.g_oTableId.IsOn()) + return ("off_" + (++this.m_nTurnOffCounter)); + if (true === this.m_bLoad || null === this.m_sUserId) { this.m_nIdCounterLoad++; @@ -4303,6 +4372,11 @@ oLogicDocument.Document_UpdateInterfaceState(false); } } + let oCustomProperties = oApi.getCustomProperties && oApi.getCustomProperties(); + if(oCustomProperties && oCustomProperties.Lock === this) + { + oApi.sendEvent("asc_onCustomPropertiesLocked", this.Is_Locked()); + } }; CLock.prototype.Check = function (Id) { @@ -4371,13 +4445,17 @@ { this.m_aChanges.length = 0; }; - CContentChanges.prototype.Check = function (Type, Pos) + CContentChanges.prototype.GetPos = function(pos) + { + return this.Check(AscCommon.contentchanges_Remove, pos, true); + }; + CContentChanges.prototype.Check = function (Type, Pos, checkPos) { var CurPos = Pos; var Count = this.m_aChanges.length; for (var Index = 0; Index < Count; Index++) { - var NewPos = this.m_aChanges[Index].Check_Changes(Type, CurPos); + var NewPos = this.m_aChanges[Index].Check_Changes(Type, CurPos, checkPos); if (false === NewPos) return false; @@ -4430,20 +4508,23 @@ this.m_pData.Binary.Pos = Binary_Pos; this.m_pData.Binary.Len = Binary_Len; }; - CContentChangesElement.prototype.Check_Changes = function (Type, Pos) + CContentChangesElement.prototype.Check_Changes = function (Type, Pos, checkPos) { var CurPos = Pos; - if (contentchanges_Add === Type) + if (AscCommon.contentchanges_Add === Type) { for (var Index = 0; Index < this.m_nCount; Index++) { if (false !== this.m_aPositions[Index]) { if (CurPos <= this.m_aPositions[Index]) - this.m_aPositions[Index]++; + { + if (!checkPos) + this.m_aPositions[Index]++; + } else { - if (contentchanges_Add === this.m_nType) + if (AscCommon.contentchanges_Add === this.m_nType) CurPos++; else //if ( contentchanges_Remove === this.m_nType ) CurPos--; @@ -4455,29 +4536,35 @@ { for (var Index = 0; Index < this.m_nCount; Index++) { - if (false !== this.m_aPositions[Index]) + if (false === this.m_aPositions[Index]) + continue; + + if (CurPos < this.m_aPositions[Index]) { - if (CurPos < this.m_aPositions[Index]) + if (!checkPos) this.m_aPositions[Index]--; - else if (CurPos > this.m_aPositions[Index]) + } + else if (CurPos > this.m_aPositions[Index]) + { + if (AscCommon.contentchanges_Add === this.m_nType) + CurPos++; + else //if ( contentchanges_Remove === this.m_nType ) + CurPos--; + } + else //if ( CurPos === this.m_aPositions[Index] ) + { + if (AscCommon.contentchanges_Remove === this.m_nType) { - if (contentchanges_Add === this.m_nType) - CurPos++; - else //if ( contentchanges_Remove === this.m_nType ) - CurPos--; + // Мы попали в позицию, удаленную другим пользователем + // Если наше действие удаляем тоже самое место, то помечаем, что удалять ничего не нужно + if (!checkPos) + this.m_aPositions[Index] = false; + + return false; } - else //if ( CurPos === this.m_aPositions[Index] ) + else { - if (AscCommon.contentchanges_Remove === this.m_nType) - { - // Отмечаем, что действия совпали - this.m_aPositions[Index] = false; - return false; - } - else - { - CurPos++; - } + CurPos++; } } } @@ -4649,11 +4736,183 @@ return ((num - 1) % nLastTrueSymbol) + 1; } + function getANDConjunctionLang(nLang) + { + const sLang = languages[nLang]; + switch (sLang) + { + case "tr-TR": + return "ve"; + case 'fr-FR': + return "et"; + case 'de-DE': + return "und"; + case 'es-ES': + return "con"; + case 'nl-NL': + return "en"; + case 'sv-SE': + case 'sk-SK': + return ""; + case 'pt-BR': + case 'pt-PT': + case 'it-IT': + return "e"; + case 'el-GR': + return "και"; + case "sr-Cyrl-RS": + case 'pl-PL': + case "sr-Latn-RS": + return "i"; + case 'cs-CZ': + return "a"; + case 'ru-RU': + return "и"; + case "eu-ES": + return "koma"; + case "hy-AM": + case "gl-ES": + case 'ko-KR': + case 'vi-VN': + case 'zh-CN': + case 'ja-JP': + case 'en-GB': + case "ms-MY": + case 'bg-BG': + case 'lv-LV': + case 'az-Latn-AZ': + case "si-LK": + case "ar-SA": + case 'en-US': + case "zh-TW": + case 'uk-UA': + default: + return "and"; + } + } + function getAlphaBetForOrdinalText(language) { var alphaBet = {}; switch (language) { + case "sr-Cyrl-RS": { + alphaBet = { + "нула" : "нулти", + "један" : "први", + "два" : "други", + "три" : "трећи", + "четири" : "четврти", + "пет" : "пети", + "шест" : "шести", + "седам" : "седми", + "осам" : "осми", + "девет" : "девети", + "десет" : "десети", + "једанаест" : "једанаести", + "дванаест" : "дванаести", + "тринаест" : "тринаести", + "четрнаест" : "четрнаести", + "петнаест" : "петнаести", + "шеснаест" : "шеснаести", + "седамнаест": "седамнаести", + "осамнаест" : "осамнаести", + "деветнаест": "деветнаести", + "двадесет" : "двадесети", + "тридесет" : "тридесети", + "четрдесет" : "четрдесети", + "педесет" : "педесети", + "шездесет" : "шездесети", + "седамдесет": "седамдесети", + "осамдесет" : "осамдесети", + "деведесет" : "деведесети", + "сто" : "стоти", + "двјесто" : "двјестоти", + "тристо" : "тристоти", + "четиристо" : "четиристоти", + "петсто" : "петстоти", + "шесто" : "шестстоти", + "седамсто" : "седамстоти", + "осамсто" : "осамстоти", + "деветсто" : "деветстоти", + "тисућу" : "тисућити", + "тисуће" : "тисућити", + "тисућа" : "тисућити" + }; + break; + } + case "sr-Latn-RS": { + alphaBet = { + "nula" : "nulti", + "jedan" : "prvi", + "dva" : "drugi", + "tri" : "treći", + "četiri" : "četvrti", + "pet" : "peti", + "šest" : "šesti", + "sedam" : "sedmi", + "osam" : "osmi", + "devet" : "deveti", + "deset" : "deseti", + "jedanaest" : "jedanaesti", + "dvanaest" : "dvanaesti", + "trinaest" : "trinaesti", + "četrnaest" : "četrnaesti", + "petnaest" : "petnaesti", + "šesnaest" : "šesnaesti", + "sedamnaest": "sedamnaesti", + "osamnaest" : "osamnaesti", + "devetnaest": "devetnaesti", + "dvadeset" : "dvadeseti", + "trideset" : "trideseti", + "četrdeset" : "četrdeseti", + "pedeset" : "pedeseti", + "šezdeset" : "šezdeseti", + "sedamdeset": "sedamdeseti", + "osamdeset" : "osamdeseti", + "devedeset" : "devedeseti", + "sto" : "stoti", + "dvjesto" : "dvjestoti", + "tristo" : "tristoti", + "četiristo" : "četiristoti", + "petsto" : "petstoti", + "šesto" : "šeststoti", + "sedamsto" : "sedamstoti", + "osamsto" : "osamstoti", + "devetsto" : "devetstoti", + "tisuću" : "tisućiti", + "tisuće" : "tisućiti", + "tisuća" : "tisućiti" + + }; + break; + } + case "tr-TR": { + alphaBet = { + "sıfır" : "sıfırıncı", + "bir" : "birinci", + "iki" : "ikinci", + "üç" : "üçüncü", + "dört" : "dördüncü", + "beş" : "beşinci", + "altı" : "altıncı", + "yedi" : "yedinci", + "sekiz" : "sekizinci", + "dokuz" : "dokuzuncu", + "on" : "onuncu", + "yirmi" : "yirminci", + "otuz" : "otuzuncu", + "kırk" : "kırkıncı", + "elli" : "ellinci", + "altmış": "altmışıncı", + "yetmiş": "yetmişinci", + "seksen": "sekseninci", + "doksan": "doksanıncı", + "yüz" : "yüzüncü", + "bin" : "bininci" + }; + break; + } case "bg-BG": alphaBet = { 0: ['нулевят'], @@ -5324,6 +5583,12 @@ case 'ko-KR': case 'az-Latn-AZ': case 'en-US': + case 'si-LK': + case 'ar-SA': + case 'gl-ES': + case 'hy-AM': + case 'ms-MY': + case 'zh-TW': case 'vi-VN': case 'en-GB': default: @@ -5351,6 +5616,76 @@ var alphaBet = {}; switch (language) { + case "eu-ES": + alphaBet = { + 0 : ["zero"], + 1 : [ + "bat", + "bi", + "hiru", + "lau", + "bost", + "sei", + "zazpi", + "zortzi", + "bederatzi", + "hamar", + "hamaika", + "hamabi", + "hamairu", + "hamalau", + "hamabost", + "hamasei", + "hamazazpi", + "hemezortzi", + "hemeretzi" + ], + 10 : [ + "hogei", + "berrogei", + "hirurogei", + "laurogei" + ], + 100: [ + "ehun", + "berrehun", + "hirurehun", + "laurehun", + "bostehun", + "seiehun", + "zazpiehun", + "zortziehun", + "bederatziehun" + ] + }; + break; + case "tr-TR": + alphaBet = { + 0 : ["sıfır"], + 1 : [ + "bir", + "iki", + "üç", + "dört", + "beş", + "altı", + "yedi", + "sekiz", + "dokuz" + ], + 10: [ + "on", + "yirmi", + "otuz", + "kırk", + "elli", + "altmış", + "yetmiş", + "seksen", + "doksan" + ] + }; + break; case"bg-BG": alphaBet = { 0: ['нула'], @@ -5407,6 +5742,118 @@ ] }; break; + case "sr-Cyrl-RS": + alphaBet = { + 0: ["нула"], + 1: [ + "један", + "два", + "три", + "четири", + "пет", + "шест", + "седам", + "осам", + "девет", + "десет", + "једанаест", + "дванаест", + "тринаест", + "четрнаест", + "петнаест", + "шеснаест", + "седамнаест", + "осамнаест", + "деветнаест" + ], + 10: [ + "двадесет", + "тридесет", + "четрдесет", + "педесет", + "шездесет", + "седамдесет", + "осамдесет", + "деведесет" + ], + 100: [ + "сто", + "двјесто", + "тристо", + "четиристо", + "петсто", + "шесто", + "седамсто", + "осамсто", + "деветсто" + ], + "thousand": [ + "тисућу", + "тисуће", + "тисућа" + ], + 'thousandType': [ + "један", + "двије" + ] + }; + break; + case "sr-Latn-RS": + alphaBet = { + 0: ["nula"], + 1: [ + "jedan", + "dva", + "tri", + "četiri", + "pet", + "šest", + "sedam", + "osam", + "devet", + "deset", + "jedanaest", + "dvanaest", + "trinaest", + "četrnaest", + "petnaest", + "šesnaest", + "sedamnaest", + "osamnaest", + "devetnaest" + ], + 10: [ + "dvadeset", + "trideset", + "četrdeset", + "pedeset", + "šezdeset", + "sedamdeset", + "osamdeset", + "devedeset" + ], + 100: [ + "sto", + "dvjesto", + "tristo", + "četiristo", + "petsto", + "šesto", + "sedamsto", + "osamsto", + "devetsto" + ], + "thousand": [ + "tisuću", + "tisuće", + "tisuća" + ], + 'thousandType': [ + "jedan", + "dvije" + ] + }; + break; case"cs-CZ": alphaBet = { 0: ['nula'], @@ -6061,6 +6508,12 @@ }; break; case 'en-US': + case 'si-LK': + case 'ar-SA': + case 'gl-ES': + case 'hy-AM': + case 'ms-MY': + case 'zh-TW': case 'az-Latn-AZ': case 'en-GB': case 'ja-JP': @@ -6123,6 +6576,8 @@ switch (lang) { + case 'sr-Latn-RS': + case 'sr-Cyrl-RS': case 'ru-RU': case 'uk-UA': case 'cs-CZ': @@ -6241,7 +6696,7 @@ return resArr; }; - if (lang === 'uk-UA' || lang === 'cs-CZ' || lang === 'pl-PL' || lang === 'el-GR' || lang === 'lv-LV') + if (lang === 'uk-UA' || lang === 'cs-CZ' || lang === 'pl-PL' || lang === 'el-GR' || lang === 'lv-LV' || lang === 'sr-Latn-RS' || lang === 'sr-Cyrl-RS') { arrAnswer = cardinalSplittingCyrillicMim(nValue, true); } else if (lang === 'ru-RU') @@ -6746,6 +7201,74 @@ }; break; } + case "eu-ES": + { + const letterNumberLessThen100EU = function (nNum) + { + var resArr = []; + if (nNum < 100 && nNum > 0) + { + const nDegree1 = nNum % 20; + const nDegree10 = Math.floor(nNum / 20); + if (nDegree10 && nDegree1) + { + resArr.push(alphaBet[10][nDegree10 - 1] + "ta", alphaBet[1][nDegree1 - 1]); + } + else if (nDegree10) + { + resArr.push(alphaBet[10][nDegree10 - 1]); + } + else + { + resArr.push(alphaBet[1][nDegree1 - 1]); + } + } + + return resArr; + }; + const cardinalSplittingEU = function (nNum, bNotPushEta) + { + const resArr = []; + if (nNum < 1000000 && nNum > 0) + { + const oGroups = {}; + oGroups[1000] = Math.floor(nNum / 1000); + nNum %= 1000; + oGroups[100] = Math.floor(nNum / 100); + nNum %= 100; + oGroups[1] = nNum; + if (oGroups[1000]) + { + if (oGroups[1000] >= 100) + { + resArr.push.apply(resArr, cardinalSplittingEU(oGroups[1000], true)); + } + else if (oGroups[1000] !== 1) + { + resArr.push.apply(resArr, letterNumberLessThen100EU(oGroups[1000])); + } + resArr.push("mila"); + } + + if (oGroups[100]) + { + resArr.push(alphaBet[100][oGroups[100] - 1]); + } + + if (oGroups[1]) + { + if ((oGroups[100] || oGroups[1000]) && !bNotPushEta) + { + resArr.push("eta"); + } + resArr.push.apply(resArr, letterNumberLessThen100EU(oGroups[1])); + } + } + return resArr; + } + arrAnswer = cardinalSplittingEU(nValue); + break; + } case 'it-IT': { var letterNumberLessThen100IT = function(num) @@ -7027,7 +7550,77 @@ break; } + case 'tr-TR': + const letterNumberLessThen100TR = function (nNum) + { + const resArr = []; + if (nNum < 100 && nNum > 0) + { + const nDegree1 = nNum % 10; + const nDegree10 = Math.floor(nNum / 10); + + if (nDegree10) + { + resArr.push(alphaBet[10][nDegree10 - 1]); + } + if (nDegree1) + { + resArr.push(alphaBet[1][nDegree1 - 1]); + } + } + return resArr; + } + const cardinalSplittingTR = function (nNum) + { + const resArr = []; + if (nNum < 1000000 && nNum > 0) + { + const oGroups = {}; + oGroups[1000] = Math.floor(nNum / 1000); + nNum = nNum % 1000; + oGroups[100] = Math.floor(nNum / 100); + nNum = nNum % 100; + oGroups[1] = nNum; + if (oGroups[1000]) + { + if (oGroups[1000] >= 100) + { + resArr.push.apply(resArr, cardinalSplittingTR(oGroups[1000])); + } + else if (oGroups[1000] !== 1) + { + resArr.push.apply(resArr, letterNumberLessThen100TR(oGroups[1000])); + } + resArr.push("bin"); + } + if (oGroups[100]) + { + if (oGroups[100] !== 1) + { + resArr.push.apply(resArr, letterNumberLessThen100TR(oGroups[100])); + } + resArr.push("yüz"); + } + if (oGroups[1]) + { + resArr.push.apply(resArr, letterNumberLessThen100TR(oGroups[1])); + } + } + return resArr; + } + arrAnswer = cardinalSplittingTR(nValue); + getConcatStringByRule = function (array) + { + return array.join(""); + } + break; case 'en-US': + case 'gl-ES': + case 'si-LK': + case 'ar-SA': + case 'hy-AM': + case 'ms-MY': + case 'zh-TW': case 'az-Latn-AZ': case 'en-GB': case 'ja-JP': @@ -8320,6 +8913,10 @@ switch (textLang) { case 'de-DE': + case 'eu-ES': + case 'tr-TR': + case 'sr-Cyrl-RS': + case 'sr-Latn-RS': case 'pl-PL': case 'cs-CZ': { @@ -8383,6 +8980,12 @@ } case 'bg-BG': case 'en-GB': + case 'gl-ES': + case 'si-LK': + case 'ar-SA': + case 'hy-AM': + case 'ms-MY': + case 'zh-TW': case 'en-US': case 'zh-CN': case 'uk-UA': @@ -8571,6 +9174,21 @@ return sResult; } + function getCardinalTextToSentenceCase(sText, sLang) + { + switch (sLang) + { + case "tr-TR": + if (sText[0] === "i") + { + return "İ" + sText.slice(1, sText.length); + } + return sText.sentenceCase(); + default: + return sText.sentenceCase(); + } + } + function IntToOrdinalText(nValue, nLang) { var textLang = languages[nLang]; @@ -8579,12 +9197,35 @@ { if (alphaBet[0] && alphaBet[0][0]) { - return alphaBet[0][0].sentenceCase(); + return getCardinalTextToSentenceCase(alphaBet[0][0], textLang); } } var ordinalText = getCardinalTextFromValue(textLang, nValue); switch (textLang) { + case 'eu-ES': + { + const arrOfDigits = ordinalText.arrAnswer; + if (nValue === 1) + { + arrOfDigits[arrOfDigits.length - 1] = "lehenengo"; + } + else if (arrOfDigits[arrOfDigits.length - 1]) + { + arrOfDigits[arrOfDigits.length - 1] = arrOfDigits[arrOfDigits.length - 1] + "garren"; + } + break; + } + case 'tr-TR': + { + const arrOfDigits = ordinalText.arrAnswer; + const sLastWord = arrOfDigits[arrOfDigits.length - 1]; + if (alphaBet[sLastWord]) + { + arrOfDigits[arrOfDigits.length - 1] = alphaBet[sLastWord]; + } + break; + } case 'de-DE': { var arrOfDigits = ordinalText.arrAnswer; @@ -8844,6 +9485,28 @@ } break; } + case 'sr-Cyrl-RS': + case 'sr-Latn-RS': + { + const arrOfDigits = ordinalText.arrAnswer; + const sLastWord = arrOfDigits[arrOfDigits.length - 1]; + if (sLastWord) + { + const reminder100 = nValue % 100; + const degree10 = Math.floor(reminder100 / 10); + const degree1 = reminder100 % 10; + if (degree10 && degree1 && reminder100 >= 20) + { + arrOfDigits[arrOfDigits.length - 1] = alphaBet[arrOfDigits[arrOfDigits.length - 1]]; + arrOfDigits[arrOfDigits.length - 2] = alphaBet[arrOfDigits[arrOfDigits.length - 2]]; + } + else + { + arrOfDigits[arrOfDigits.length - 1] = alphaBet[arrOfDigits[arrOfDigits.length - 1]]; + } + } + break; + } case 'uk-UA': case 'pl-PL': case 'ru-RU': @@ -9009,6 +9672,12 @@ case 'ko-KR': case 'az-Latn-AZ': case 'en-US': + case 'si-LK': + case 'ar-SA': + case 'gl-ES': + case 'zh-TW': + case 'ms-MY': + case 'hy-AM': case 'vi-VN': case 'en-GB': default: @@ -9033,7 +9702,7 @@ break; } } - return ordinalText.getConcatStringByRule(ordinalText.arrAnswer).sentenceCase(); + return getCardinalTextToSentenceCase(ordinalText.getConcatStringByRule(ordinalText.arrAnswer), textLang); } var splitHindiCounting = function(alphaBet, degrees, num) @@ -9194,6 +9863,43 @@ return resArr; } + function NumberToDollarText(nValue, nLang, bIsSkipFractValue) + { + const nIntValue = Math.floor(nValue); + const oCardinalText = getCardinalTextFromValue(languages[nLang], nIntValue); + const sIntResult = oCardinalText.getConcatStringByRule(oCardinalText.arrAnswer); + if (!bIsSkipFractValue) + { + const nFractValue = Math.round(nValue * 100) % 100; + const sFractValue = nFractValue.toString(); + const sDollarValue = sFractValue.length === 1 ? "0" + sFractValue : sFractValue; + const sFractResult = sDollarValue + "/100"; + + const sAndConjunction = getANDConjunctionLang(nLang); + return sIntResult + (sAndConjunction.length ? " " + sAndConjunction + " " : " ") + sFractResult; + } + return sIntResult; + } + + function NumberToBahtText(nValue, isSkipFractValue) + { + const nIntValue = Math.floor(nValue); + const nFractValue = Math.round(nValue * 100) % 100; + const sIntValue = IntToNumberFormat(nIntValue, Asc.c_oAscNumberingFormat.ThaiCounting); + + if (isSkipFractValue) + { + return sIntValue; + } + if (nFractValue) + { + const sFractValue = IntToNumberFormat(nFractValue, Asc.c_oAscNumberingFormat.ThaiCounting); + return sIntValue + "บาท" + sFractValue + "สตางค์"; + } + + return sIntValue + "บาทถ้วน"; + } + function IntToThaiCounting(nValue) { var digits = [ @@ -9278,6 +9984,31 @@ return vietnameseCounting(nValue, digits).join(' '); } + function IntToCustomTurkish(nValue, bLowerCase) + { + let arrLetters; + if (bLowerCase) + { + arrLetters = [0x0061, 0x0062, 0x0063, 0x00e7, 0x0064, 0x0065, 0x0066, 0x0067, 0x011f, 0x0068, 0x0131, 0x0069, 0x006a, + 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, 0x00f6, 0x0070, 0x0072, 0x0073, 0x015f, 0x0074, 0x0075, 0x00fc, 0x0076, + 0x0079, 0x007a]; + } + else + { + arrLetters = [0x0041, 0x0042, 0x0043, 0x00c7, 0x0044, 0x0045, 0x0046, 0x0047, 0x011e, 0x0048, 0x0049, 0x0130, 0x004a, + 0x004b, 0x004c, 0x004d, 0x004e, 0x004f, 0x00d6, 0x0050, 0x0052, 0x0053, 0x015e, 0x0054, 0x0055, 0x00dc, 0x0056, + 0x0059, 0x005a]; + } + nValue = repeatNumberingLvl(nValue, 870); + const nNum = nValue - 1; + + const nAlphabetLength = arrLetters.length; + const nOst = nNum % nAlphabetLength; + const nCount = ((nNum - nOst) / nAlphabetLength) + 1; + + return String.fromCharCode(arrLetters[nOst]).repeat(nCount); + } + function IntToCustomGreece(nValue) { nValue = repeatNumberingLvl(nValue, 9999); const greeceNumbersMap = { @@ -9368,12 +10099,14 @@ * Переводим числовое значение в строку с заданным форматом нумерации * @param nValue {number} * @param nFormat {Asc.c_oAscNumberingFormat} - * @param [oLang] {AscCommonWord.CLang} + * @param [oPr] {Object} * @returns {string} */ - function IntToNumberFormat(nValue, nFormat, oLang) + function IntToNumberFormat(nValue, nFormat, oPr) { + oPr = oPr || {}; var nLang; + const oLang = oPr.lang; if (oLang) { nLang = oLang.Val; @@ -9650,7 +10383,7 @@ break; case Asc.c_oAscNumberingFormat.CardinalText: var cardinalText = getCardinalTextFromValue(languages[nLang], nValue); - sResult = cardinalText.getConcatStringByRule(cardinalText.arrAnswer).sentenceCase(); + sResult = getCardinalTextToSentenceCase(cardinalText.getConcatStringByRule(cardinalText.arrAnswer), languages[nLang]); break; case Asc.c_oAscNumberingFormat.Custom: @@ -9679,16 +10412,39 @@ sResult = IntToThaiCounting(nValue, nFormat); break; case Asc.c_oAscNumberingFormat.DollarText: - sResult += nValue; + if (oPr.isFromField) + { + sResult = NumberToDollarText(nValue, nLang, oPr.isSkipFractPart); + } + else + { + sResult += nValue; + } break; case Asc.c_oAscNumberingFormat.BahtText: - sResult += nValue; + if (oPr.isFromField) + { + sResult = NumberToBahtText(nValue, oPr.isSkipFractPart); + } + else + { + sResult += nValue; + } break; case Asc.c_oAscNumberingFormat.VietnameseCounting: sResult = IntToVietnameseCounting(nValue); break; case Asc.c_oAscNumberingFormat.CustomGreece: sResult = IntToCustomGreece(nValue); + break; + case Asc.c_oAscNumberingFormat.CustomUpperTurkish: + sResult = IntToCustomTurkish(nValue); + break; + case Asc.c_oAscNumberingFormat.CustomLowerTurkish: + sResult = IntToCustomTurkish(nValue, true); + break; + default: + break; } return sResult; @@ -9898,6 +10654,23 @@ return result; } + function ExecuteEditorAction(actionPr, f, logicDocument, t, args) + { + if (!logicDocument + || !logicDocument.IsDocumentEditor + || !logicDocument.IsDocumentEditor()) + return f.apply(t, args); + + let description = actionPr && actionPr.description ? actionPr.description : AscDFH.historydescription_Unknown; + let flags = actionPr && actionPr.flags ? actionPr.flags : AscWord.ACTION_FLAGS.UPDATEALL_RECALCULATE; + + logicDocument.StartAction(description, null, flags); + let result = f.apply(t, args); + logicDocument.FinalizeAction(); + + return result; + } + function AddAndExecuteChange(change) { AscCommon.History.Add(change); @@ -10458,7 +11231,11 @@ } else { - loadScript('./../../../../sdkjs/' + sdkName + '/sdk-all.js', onSuccess, onError); + if (scriptDirectory) { + loadScript(scriptDirectory + 'sdk-all.js', onSuccess, onError); + } else { + loadScript('./../../../../sdkjs/' + sdkName + '/sdk-all.js', onSuccess, onError); + } } } @@ -10814,6 +11591,13 @@ || (0x2670 <= nCharCode && nCharCode <= 0x2671) || (0xFB1D <= nCharCode && nCharCode <= 0xFB4F)); } + + function IsGeorgianScript(charCode) + { + return ((0x10A0 <= charCode && charCode <= 0x10FF) + || (0x2D00 <= charCode && charCode <= 0x2D2F) + || (0x1C90 <= charCode && charCode <= 0x1CBF)); + } var g_oIdCounter = new CIdCounter(); @@ -11394,7 +12178,7 @@ obj.options.callback(Asc.c_oAscError.ID.No, data); else { - AscCommon.UploadImageUrls(data, obj.options.api.documentId, obj.options.api.documentUserId, obj.options.api.CoAuthoringApi.get_jwt(), obj.options.api.documentShardKey, obj.options.api.documentWopiSrc, function(urls) + AscCommon.UploadImageUrls(data, obj.options.api.documentId, obj.options.api.documentUserId, obj.options.api.CoAuthoringApi.get_jwt(), obj.options.api.documentShardKey, obj.options.api.documentWopiSrc, obj.options.api.documentUserSessionId, function(urls) { obj.options.api.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.UploadImage); @@ -13363,7 +14147,7 @@ var rect; if (!AscBrowser.isIE) - rect = element.getBoundingClientRect(); + rect = AscCommon.UI.getBoundingClientRect(element); else { function getCanvasBoundingClientRect(canvas) { const offsetLeft = canvas.offsetLeft; @@ -13840,6 +14624,10 @@ return max; return value; } + + function getArrayRandomElement(aArray) { + return aArray[Math.random() * aArray.length | 0]; + } //------------------------------------------------------------export--------------------------------------------------- window['AscCommon'] = window['AscCommon'] || {}; window["AscCommon"].getSockJs = getSockJs; @@ -13929,6 +14717,7 @@ window["AscCommon"].IsAscFontSupport = IsAscFontSupport; window["AscCommon"].ExecuteNoHistory = ExecuteNoHistory; window["AscCommon"].executeNoRevisions = executeNoRevisions; + window["AscCommon"].ExecuteEditorAction = ExecuteEditorAction; window["AscCommon"].AddAndExecuteChange = AddAndExecuteChange; window["AscCommon"].CompareStrings = CompareStrings; window["AscCommon"].IsSupportAscFeature = IsSupportAscFeature; @@ -13946,6 +14735,7 @@ window["AscCommon"].isEastAsianScript = isEastAsianScript; window["AscCommon"].IsEastAsianFont = IsEastAsianFont; window["AscCommon"].IsComplexScript = IsComplexScript; + window["AscCommon"].IsGeorgianScript = IsGeorgianScript; window["AscCommon"].CMathTrack = CMathTrack; window["AscCommon"].CPolygon = CPolygon; window['AscCommon'].CDrawingCollaborativeTargetBase = CDrawingCollaborativeTargetBase; @@ -14064,9 +14854,10 @@ window["AscCommon"].c_oAscImageUploadProp = c_oAscImageUploadProp; window["AscCommon"].trimMinMaxValue = trimMinMaxValue; window["AscCommon"].cStrucTableReservedWords = cStrucTableReservedWords; + window["AscCommon"].getArrayRandomElement = getArrayRandomElement; })(window); -window["asc_initAdvancedOptions"] = function(_code, _file_hash, _docInfo) +window["asc_initAdvancedOptions"] = function(_code, _file_hash, _docInfo, csv_data) { if (window.isNativeOpenPassword) { @@ -14096,7 +14887,14 @@ window["asc_initAdvancedOptions"] = function(_code, _file_hash, _docInfo) } window.checkPasswordFromPlugin = false; - _editor._onNeedParams(undefined, (_code == 90 || _code == 91) ? true : undefined); + let data = undefined; + if (csv_data && window["AscDesktopEditor"]) + { + var bufferArray = window["AscDesktopEditor"]["GetOpenedFile"](csv_data); + if (bufferArray) + data = new Uint8Array(bufferArray); + } + _editor._onNeedParams(data, (_code == 90 || _code == 91) ? true : undefined); }; window["asc_IsNeedBuildCryptedFile"] = function() @@ -14281,7 +15079,7 @@ window["buildCryptoFile_End"] = function(url, error, hash, password) ext = ".docxf"; } - AscCommon.sendSaveFile(_editor.documentId, _editor.documentUserId, "output" + ext, _editor.asc_getSessionToken(), _editor.documentShardKey, _editor.documentWopiSrc, fileData, function(err) { + AscCommon.sendSaveFile(_editor.documentId, _editor.documentUserId, "output" + ext, _editor.asc_getSessionToken(), _editor.documentShardKey, _editor.documentWopiSrc, _editor.documentUserSessionId, fileData, function(err) { _editor.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.Save); _editor.sendEvent("asc_onError", Asc.c_oAscError.ID.ConvertationSaveError, Asc.c_oAscError.Level.Critical); diff --git a/common/embed/embed.js b/common/embed/embed.js index a597ec99d3..143d801cc1 100644 --- a/common/embed/embed.js +++ b/common/embed/embed.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/errorCodes.js b/common/errorCodes.js index 270651e235..0a07f9a941 100644 --- a/common/errorCodes.js +++ b/common/errorCodes.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -131,6 +131,8 @@ ConvertationOpenLimitError : -84, ConvertationOpenFormat : -85, + CannotSaveWatermark : -86, + UserDrop : -100, Warning : -101, UpdateVersion : -102, @@ -167,6 +169,8 @@ PivotGroup : -315, PivotWithoutUnderlyingData : -316, + CircularReference : -320, + ForceSaveButton: -331, ForceSaveTimeout: -332, Submit: -333, @@ -246,7 +250,9 @@ TraceDependentsNoFormulas: 1060, TracePrecedentsNoValidReference: 1061, - MustIntegerOrDecimalNumber: 1070 + MustIntegerOrDecimalNumber: 1070, + + DocumentAndChangeMismatch: 1080 } }; @@ -331,6 +337,7 @@ prot['ConvertationSaveError'] = prot.ConvertationSaveError; prot['ConvertationOpenLimitError'] = prot.ConvertationOpenLimitError; prot['ConvertationOpenFormat'] = prot.ConvertationOpenFormat; + prot['CannotSaveWatermark'] = prot.CannotSaveWatermark; prot['UserDrop'] = prot.UserDrop; prot['Warning'] = prot.Warning; prot['UpdateVersion'] = prot.UpdateVersion; @@ -358,6 +365,7 @@ prot['PivotOverlap'] = prot.PivotOverlap; prot['PivotGroup'] = prot.PivotGroup; prot['PivotWithoutUnderlyingData'] = prot.PivotWithoutUnderlyingData; + prot['CircularReference'] = prot.CircularReference; prot['ForceSaveButton'] = prot.ForceSaveButton; prot['ForceSaveTimeout'] = prot.ForceSaveTimeout; prot['Submit'] = prot.Submit; @@ -413,6 +421,7 @@ prot['TraceDependentsNoFormulas'] = prot.TraceDependentsNoFormulas; prot['TracePrecedentsNoValidReference'] = prot.TracePrecedentsNoValidReference; prot['MustIntegerOrDecimalNumber'] = prot.MustIntegerOrDecimalNumber; + prot['DocumentAndChangeMismatch'] = prot.DocumentAndChangeMismatch; diff --git a/common/externs/cell.js b/common/externs/cell.js index 43bb612250..311cad4924 100644 --- a/common/externs/cell.js +++ b/common/externs/cell.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/externs/global.js b/common/externs/global.js index 306ce38651..3425847a4e 100644 --- a/common/externs/global.js +++ b/common/externs/global.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/externs/slide.js b/common/externs/slide.js index d07b014740..b338a6ef86 100644 --- a/common/externs/slide.js +++ b/common/externs/slide.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/externs/word.js b/common/externs/word.js index 657fe36338..620bb204c6 100644 --- a/common/externs/word.js +++ b/common/externs/word.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/externs/xregexp-3.0.0.js b/common/externs/xregexp-3.0.0.js index 95647bfb9b..9e92120047 100644 --- a/common/externs/xregexp-3.0.0.js +++ b/common/externs/xregexp-3.0.0.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/geometry/geometry.js b/common/geometry/geometry.js index 3d1b7e6a72..cf3ee2c4ed 100644 --- a/common/geometry/geometry.js +++ b/common/geometry/geometry.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/geometry/test/code.js b/common/geometry/test/code.js index a5038fe0ac..f5e1690e42 100644 --- a/common/geometry/test/code.js +++ b/common/geometry/test/code.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/hash/hash.js b/common/hash/hash.js index 8a2a79ea2c..be2e88c61c 100644 --- a/common/hash/hash.js +++ b/common/hash/hash.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/hash/hash/engine.js b/common/hash/hash/engine.js index 9dad61df72..6ff9e1afa1 100644 --- a/common/hash/hash/engine.js +++ b/common/hash/hash/engine.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/hash/hash/engine_ie.js b/common/hash/hash/engine_ie.js index bc93c7f616..6760dd00a5 100644 --- a/common/hash/hash/engine_ie.js +++ b/common/hash/hash/engine_ie.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/intervalTree.js b/common/intervalTree.js index 2b5e7655a5..765a2ac3b5 100644 --- a/common/intervalTree.js +++ b/common/intervalTree.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/keychainstorage.js b/common/keychainstorage.js index 3e1f30ac92..246a2a6365 100644 --- a/common/keychainstorage.js +++ b/common/keychainstorage.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/character.js b/common/libfont/character.js index 8f64768fb9..9950274260 100644 --- a/common/libfont/character.js +++ b/common/libfont/character.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/common.js b/common/libfont/common.js index c61e8c5660..73ac774fea 100644 --- a/common/libfont/common.js +++ b/common/libfont/common.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/engine.js b/common/libfont/engine.js index 518924aae2..b4e3a92977 100644 --- a/common/libfont/engine.js +++ b/common/libfont/engine.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -775,7 +775,10 @@ function onLoadFontsModule(window, undefined) if (AscCommon["CZLibEngineJS"]) AscCommon["CZLibEngineJS"].prototype["isModuleInit"] = true; - window.nativeZlibEngine = new ZLib(); + if (window["NATIVE_EDITOR_ENJINE"]) + window["InitNativeZLib"] = function() { window.nativeZlibEngine = new ZLib(); }; + else + window.nativeZlibEngine = new ZLib(); function Hyphenation() { diff --git a/common/libfont/engine/fonts.js b/common/libfont/engine/fonts.js index 10c0648008..d26f609e42 100644 --- a/common/libfont/engine/fonts.js +++ b/common/libfont/engine/fonts.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/engine/fonts_ie.js b/common/libfont/engine/fonts_ie.js index e9ea891577..d29d839e9f 100644 --- a/common/libfont/engine/fonts_ie.js +++ b/common/libfont/engine/fonts_ie.js @@ -29,11214 +29,1019 @@ * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode * */ - (function(window,undefined){var AscFonts=window["AscFonts"];if(window["NATIVE_EDITOR_ENJINE"]){var immediateArray=[];window.setImmediate=function(fn){if(immediateArray)immediateArray.push(fn);else fn()};window.immediateRun=function(){for(var i=0;ih&&(h=Math.max(0,Ka+h));if(null==Za||Za>Ka)Za=Ka;Za=Number(Za);0>Za&&(Za=Math.max(0,Ka+Za));for(h=Number(h||0);hf||1342177279>>=1)h+=h;return Za}});Gd("Number.isFinite", -function(h){return h?h:function(f){return"number"!==typeof f?!1:!isNaN(f)&&Infinity!==f&&-Infinity!==f}});Gd("Number.isInteger",function(h){return h?h:function(f){return Number.isFinite(f)?f===Math.floor(f):!1}});Gd("String.prototype.endsWith",function(h){return h?h:function(f,h){var Ka=Hd(this,f,"endsWith");f+="";void 0===h&&(h=Ka.length);h=Math.max(0,Math.min(h|0,Ka.length));for(var bb=f.length;0=bb}});Gd("String.prototype.padStart",function(h){return h? -h:function(f,h){var Ka=Hd(this,null,"padStart");f-=Ka.length;h=void 0!==h?String(h):" ";return(0=gb}});Gd("Object.is",function(h){return h?h:function(f,h){return f===h?0!==f||1/f===1/h:f!==f&&h!==h}});Gd("Array.prototype.includes",function(h){return h?h:function(f,h){var Ka=this;Ka instanceof String&&(Ka=String(Ka));var bb=Ka.length;h=h||0;for(0>h&&(h=Math.max(h+bb,0));hf?-h:h}});Gd("Math.log1p",function(h){return h?h:function(f){f=Number(f);if(.25>f&&-.25f&&-.25f?-h:h}});Gd("Math.log10",function(h){return h?h:function(f){return Math.log(f)/Math.LN10}});Gd("Math.cosh",function(h){if(h)return h;var f=Math.exp;return function(h){h=Number(h);return(f(h)+ -f(-h))/2}});Gd("Math.sinh",function(h){if(h)return h;var f=Math.exp;return function(h){h=Number(h);return 0===h?h:(f(h)-f(-h))/2}});Gd("Math.acosh",function(h){return h?h:function(f){f=Number(f);return Math.log(f+Math.sqrt(f*f-1))}});Gd("Math.atanh",function(h){if(h)return h;var f=Math.log1p;return function(h){h=Number(h);return(f(h)-f(-h))/2}});Gd("Math.asinh",function(h){return h?h:function(f){f=Number(f);if(0===f)return f;var h=Math.log(Math.abs(f)+Math.sqrt(f*f+1));return 0>f?-h:h}});Gd("Array.prototype.findIndex", -function(h){return h?h:function(f,h){return Fw(this,f,h).dn}});Math.imul=Math.imul||function(a,b){var ah=a>>>16&65535;var al=a&65535;var bh=b>>>16&65535;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16>>>0)|0};Math.fround=Math.fround||function(x){return(new Float32Array([x]))[0]};Math.clz32=Math.clz32||function(value){value=Number(value)>>>0;return value!==0?31-Math.floor(Math.log(value+.5)/Math.log(2)):32};Uint8Array.prototype.copyWithin=Uint8Array.prototype.copyWithin||function(target,start,end){var tmpArray= -this.subarray(start,end);this.set(tmpArray,target);return this};(function(){if(undefined!==String.prototype.fromUtf8&&undefined!==String.prototype.toUtf8)return;var STRING_UTF8_BUFFER_LENGTH=1024;var STRING_UTF8_BUFFER=new ArrayBuffer(STRING_UTF8_BUFFER_LENGTH);String.prototype.fromUtf8=function(buffer,start,len){if(undefined===start)start=0;if(undefined===len)len=buffer.length-start;var result="";var index=start;var end=start+len;while(index>10,56320|ch&1023)}}return result};String.prototype.toUtf8=function(isNoEndNull,isUseBuffer){var inputLen=this.length;var testLen=6*inputLen+1;var tmpStrings=isUseBuffer&&testLen< -STRING_UTF8_BUFFER_LENGTH?STRING_UTF8_BUFFER:new ArrayBuffer(testLen);var code=0;var index=0;var outputIndex=0;var outputDataTmp=new Uint8Array(tmpStrings);var outputData=outputDataTmp;while(index=55296&&code<=57343&&index>6;outputData[outputIndex++]=128|code&63}else if(code<65536){outputData[outputIndex++]= -224|code>>12;outputData[outputIndex++]=128|code>>6&63;outputData[outputIndex++]=128|code&63}else if(code<2097151){outputData[outputIndex++]=240|code>>18;outputData[outputIndex++]=128|code>>12&63;outputData[outputIndex++]=128|code>>6&63;outputData[outputIndex++]=128|code&63}else if(code<67108863){outputData[outputIndex++]=248|code>>24;outputData[outputIndex++]=128|code>>18&63;outputData[outputIndex++]=128|code>>12&63;outputData[outputIndex++]=128|code>>6&63;outputData[outputIndex++]=128|code&63}else if(code< -2147483647){outputData[outputIndex++]=252|code>>30;outputData[outputIndex++]=128|code>>24&63;outputData[outputIndex++]=128|code>>18&63;outputData[outputIndex++]=128|code>>12&63;outputData[outputIndex++]=128|code>>6&63;outputData[outputIndex++]=128|code&63}}if(isNoEndNull!==true)outputData[outputIndex++]=0;return new Uint8Array(tmpStrings,0,outputIndex)};function StringPointer(pointer,len){this.ptr=pointer;this.length=len}StringPointer.prototype.free=function(){if(0!==this.ptr)Module["_free"](this.ptr)}; -String.prototype.toUtf8Pointer=function(isNoEndNull){var tmp=this.toUtf8(isNoEndNull,true);var pointer=Module["_malloc"](tmp.length);if(0==pointer)return null;Module["HEAP8"].set(tmp,pointer);return new StringPointer(pointer,tmp.length)}})();var Module=typeof Module!="undefined"?Module:{};var Promise=function(){function noop(){}function bind(fn,thisArg){return function(){fn.apply(thisArg,arguments)}}function Promise(fn){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new"); -if(typeof fn!="function")throw new TypeError("not a function");this._state=0;this._handled=false;this._value=undefined;this._deferreds=[];doResolve(fn,this)}function handle(self,deferred){while(self._state===3)self=self._value;if(self._state===0){self._deferreds.push(deferred);return}self._handled=true;Promise._immediateFn(function(){var cb=self._state===1?deferred.onFulfilled:deferred.onRejected;if(cb===null){(self._state===1?resolve:reject)(deferred.promise,self._value);return}var ret;try{ret=cb(self._value)}catch(e){reject(deferred.promise, -e);return}resolve(deferred.promise,ret)})}function resolve(self,newValue){try{if(newValue===self)throw new TypeError("A promise cannot be resolved with itself.");if(newValue&&(typeof newValue=="object"||typeof newValue=="function")){var then=newValue.then;if(newValue instanceof Promise){self._state=3;self._value=newValue;finale(self);return}else if(typeof then=="function"){doResolve(bind(then,newValue),self);return}}self._state=1;self._value=newValue;finale(self)}catch(e){reject(self,e)}}function reject(self, -newValue){self._state=2;self._value=newValue;finale(self)}function finale(self){if(self._state===2&&self._deferreds.length===0)Promise._immediateFn(function(){if(!self._handled)Promise._unhandledRejectionFn(self._value)});for(var i=0,len=self._deferreds.length;i=0;--a){f[48+a]=52+a;f[65+a]=a;f[97+a]=26+a}f[43]=62;f[47]=63;function l(m,n,o){var g,h,a=0,i=n,j=o.length,k=n+(j*3>>2)-(o[j-2]=="=")-(o[j-1]=="=");for(;a>4;if(i>2;if(i>2];d=c-12|0;f=J[d>>2];b=f+a|0;if(!J[b+4>>2]){H[b+33|0]=1;f=J[d>>2]}D=a+12|0;N=a+33|0;A=a+4|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{while(1){l:{g=a+f|0;b=J[g+12>>2];if(b>>>0>=M[g+8>>2])break l;i=J[g+16>>2];if(i-b>>>0<=7){H[g+33|0]=1;break k}e=c-12|0;d=0;if(b+3>>>0>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;f=J[e>>2];b=f+a|0;i=J[b+16>>2];b=J[b+12>>2]}m:{if(b+3>>>0>=i>>>0)break m;g=K[b|0]|K[b+1|0]<<8|(K[b+2| -0]<<16|K[b+3|0]<<24);J[f+D>>2]=b+4;if(!g)break m;b=J[e>>2]+a|0;F=J[b+12>>2];c=g-8|0;if(c>>>0>J[b+16>>2]-F>>>0){H[b+33|0]=1;break k}Q=J[b+4>>2];J[a+116>>2]=c;b=J[e>>2]+a|0;c=c+J[b+12>>2]|0;g=b;b=J[b+8>>2];J[g+16>>2]=b>>>0>c>>>0?c:b;if(d-123>>>0<=4294967173){if(J[a+36>>2]==1179469088&J[a+40>>2]==65536)break l;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break k}if(!((d|0)==1|G)){H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break k}n:{o:switch(d-1|0){case 113:J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[h+56>>2]=0;J[h+ -60>>2]=0;J[h+48>>2]=0;J[h+52>>2]=1072693248;J[h+80>>2]=0;J[h+84>>2]=0;J[h+72>>2]=0;J[h+76>>2]=1072693248;J[h+64>>2]=0;J[h+68>>2]=0;J[h+88>>2]=0;J[h+92>>2]=0;H[h+96|0]=0;H[h+97|0]=0;H[h+98|0]=0;H[h+99|0]=0;e=0;f=0;g=J[J[a>>2]-12>>2]+A|0;c=J[g+12>>2];b=J[g+8>>2];if(c>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+4>>2]=e;e=0;p:{if(c>>>0<=b+3>>>0){f=0;break p}f=K[b| -0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+8>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+12>>2]=e;e=0;q:{if(c>>>0<=b+3>>>0){f=0;break q}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+16>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+20>>2]=e;e=0;r:{if(c>>>0<=b+3>>>0){f=0;break r}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+ -24>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+28>>2]=e;e=0;f=0;if(b>>>0>>0){f=K[b|0];J[g+8>>2]=b+1}H[h+32|0]=f;b=J[g+8>>2];if(b>>>0>2]){e=K[b|0];J[g+8>>2]=b+1}H[h+33|0]=e;e=0;b=0;c=J[g+8>>2];if(c>>>0>2]){b=K[c|0];J[g+8>>2]=c+1}H[h+34|0]=b;b=J[g+8>>2];if(b>>>0>2]){e=K[b|0];J[g+8>>2]=b+1}H[h+35|0]=e;e=0;d=J[g+12>>2];b=J[g+8>>2];s:{if(d>>>0<=b+3>>>0){f=0;break s}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+ -8>>2]=b}J[h+36>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+40>>2]=e;if(d>>>0<=b+3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+48>>3]=o;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+56>>3]=o;if(d>>>0<=b+3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+64>>3]=o;if(d>>> -0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+72>>3]=o;if(d>>>0<=b+3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+80>>3]=o;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+88>>3]=o;e=0;f=0;if(b>>>0>>0){f=K[b|0];J[g+8>>2]=b+1}H[h+96|0]=f;b=J[g+8>>2];if(b>>>0>2]){e=K[b|0];J[g+8>>2]=b+1}H[h+97|0]=e;e=0;b= -0;c=J[g+8>>2];if(c>>>0>2]){b=K[c|0];J[g+8>>2]=c+1}H[h+98|0]=b;b=J[g+8>>2];if(b>>>0>2]){e=K[b|0];J[g+8>>2]=b+1}H[h+99|0]=e;e=0;c=J[g+12>>2];b=J[g+8>>2];t:{if(c>>>0<=b+3>>>0){f=0;break t}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+100>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+104>>2]=e;e=0;u:{if(c>>>0<=b+3>>>0){f=0;break u}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+108>> -2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+112>>2]=e;e=0;v:{if(c>>>0<=b+3>>>0){f=0;break v}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+116>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+120>>2]=e;e=0;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+8>>2]=b+4}J[h+124>>2]=e;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+112>> -2]](b,h,(J[J[a>>2]-12>>2]+a|0)+4|0);i=0;e=xb-16|0;xb=e;J[e+12>>2]=0;w:{if(!(!(Ab[J[J[a>>2]+136>>2]](a,J[h+104>>2],J[h+108>>2],J[h+112>>2],J[h+116>>2],108,e+12|0,e+8|0,e+4|0)|0)|!J[a+208>>2])){x:{if(!K[h+35|0]){d=J[e+4>>2];if(!d){d=0;break x}c=J[e+8>>2];if(!c)break x;while(1){y:{if(!c){c=0;break y}b=K[h+34|0];f=0;while(1){H[(J[e+12>>2]+(P(c,i)+f<<2)|0)+3|0]=b;c=J[e+8>>2];f=f+1|0;if(c>>>0>f>>>0)continue;break}d=J[e+4>>2]}i=i+1|0;if(i>>>0>>0)continue;break}break x}d=J[e+4>>2];if(!d){d=0;break x}c= -J[e+8>>2];if(!c)break x;l=+K[h+34|0]/255;while(1){f=0;if(c){while(1){b=J[e+12>>2]+(P(c,i)+f<<2)|0;n=l*+K[b+3|0];z:{if(n<4294967296&n>=0){c=~~n>>>0;break z}c=0}H[b+3|0]=c;c=J[e+8>>2];f=f+1|0;if(c>>>0>f>>>0)continue;break}d=J[e+4>>2]}else c=0;i=i+1|0;if(i>>>0>>0)continue;break}}f=J[e+12>>2];g=J[a+208>>2];b=f;if(!g)break w;c=J[h+16>>2];n=+(c|0);b=J[h+20>>2];l=+(b|0);Ab[J[J[g>>2]+16>>2]](g,n,l,+(c+J[h+24>>2]|0)-n,+(b+J[h+28>>2]|0)-l,f,J[e+8>>2],d)}b=J[e+12>>2]}if(b)Kb(b);xb=e+16|0;break n;case 75:J[h+ -8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[h+48>>2]=0;J[h+52>>2]=1072693248;J[h+80>>2]=0;J[h+84>>2]=0;J[h+72>>2]=0;J[h+76>>2]=1072693248;J[h+64>>2]=0;J[h+68>>2]=0;J[h+88>>2]=0;J[h+92>>2]=0;H[h+96|0]=0;H[h+97|0]=0;H[h+98|0]=0;H[h+99|0]=0;e=0;f=0;g=J[J[a>>2]-12>>2]+A|0;d=J[g+12>>2];b=J[g+8>>2];if(d>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]= -b}J[h+4>>2]=e;e=0;A:{if(d>>>0<=b+3>>>0){f=0;break A}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+8>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+12>>2]=e;e=0;B:{if(d>>>0<=b+3>>>0){f=0;break B}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+16>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+20>>2]=e;e=0;C:{if(d>>>0<=b+3>>>0){f=0;break C}f=K[b|0]|K[b+ -1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+24>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+28>>2]=e;e=0;D:{if(d>>>0<=b+3>>>0){f=0;break D}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+32>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+36>>2]=e;e=0;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+40>>2]=e;if(d>>>0<= -b+3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+48>>3]=o;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+56>>3]=o;if(d>>>0<=b+3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+64>>3]=o;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+72>>3]=o;if(d>>>0<=b+ -3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+80>>3]=o;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+88>>3]=o;e=0;f=0;if(b>>>0>>0){f=K[b|0];J[g+8>>2]=b+1}H[h+96|0]=f;b=J[g+8>>2];if(b>>>0>2]){e=K[b|0];J[g+8>>2]=b+1}H[h+97|0]=e;e=0;b=0;c=J[g+8>>2];if(c>>>0>2]){b=K[c|0];J[g+8>>2]=c+1}H[h+98|0]=b;b=J[g+8>>2];if(b>>>0>2]){e=K[b|0];J[g+8>>2]=b+1}H[h+ -99|0]=e;e=0;c=J[g+12>>2];b=J[g+8>>2];E:{if(c>>>0<=b+3>>>0){f=0;break E}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+100>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+104>>2]=e;e=0;F:{if(c>>>0<=b+3>>>0){f=0;break F}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+108>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+112>>2]=e;e=0;if(c>>>0>b+3>>>0){e= -K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+8>>2]=b+4}J[h+116>>2]=e;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+120>>2]](b,h,(J[J[a>>2]-12>>2]+a|0)+4|0);g=xb-16|0;xb=g;J[g+12>>2]=0;G:{H:{if(Ab[J[J[a>>2]+136>>2]](a,J[h+104>>2],J[h+108>>2],J[h+112>>2],J[h+116>>2],100,g+12|0,g+8|0,g+4|0)|0){d=J[a+208>>2];if(!d)break H;c=J[h+16>>2];n=+(c|0);b=J[h+20>>2];l=+(b|0);Ab[J[J[d>>2]+16>>2]](d,n,l,+(c+J[h+24>>2]|0)-n,+(b+J[h+28>>2]|0)-l,J[g+12>>2],J[g+8>>2],J[g+4>>2]);break H}I:{J:{K:{b= -J[h+32>>2];if((b|0)<=10485960){if((b|0)==66)break K;if((b|0)!=5898313)break I;break J}if((b|0)==10485961|(b|0)==15728673)break J;if((b|0)!=16711778)break I;b=Pb(4);J[g+12>>2]=b;H[b|0]=255;H[b+1|0]=255;H[b+2|0]=255;H[b+3|0]=255;J[g+4>>2]=1;J[g+8>>2]=1;break I}b=Pb(4);J[g+12>>2]=b;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=255;J[g+4>>2]=1;J[g+8>>2]=1;break I}b=J[J[a+120>>2]+20>>2];if(!b)break I;c=Pb(4);J[g+12>>2]=c;H[c|0]=K[b+10|0];H[c+1|0]=K[b+9|0];b=K[b+8|0];H[c+3|0]=255;H[c+2|0]=b;J[g+4>>2]=1;J[g+8>> -2]=1}d=J[g+12>>2];if(!d)break G;f=J[a+208>>2];if(!f)break H;c=J[h+16>>2];n=+(c|0);b=J[h+20>>2];l=+(b|0);Ab[J[J[f>>2]+16>>2]](f,n,l,+(c+J[h+24>>2]|0)-n,+(b+J[h+28>>2]|0)-l,d,J[g+8>>2],J[g+4>>2])}b=J[g+12>>2];if(!b)break G;Kb(b)}xb=g+16|0;break n;case 80:J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;c=0;e=0;f=J[J[a>>2]-12>>2]+A|0;d=J[f+12>>2];b=J[f+8>>2];if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<< -16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+4>>2]=e;e=0;L:{if(d>>>0<=b+3>>>0){c=0;break L}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+8>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+12>>2]=e;e=0;M:{if(d>>>0<=b+3>>>0){c=0;break M}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+16>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+20>>2]=e;e=0;N:{if(d>>> -0<=b+3>>>0){c=0;break N}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+24>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+28>>2]=e;e=0;O:{if(d>>>0<=b+3>>>0){c=0;break O}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+32>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+36>>2]=e;e=0;P:{if(d>>>0<=b+3>>>0){c=0;break P}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+ -3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+40>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+44>>2]=e;e=0;Q:{if(d>>>0<=b+3>>>0){c=0;break Q}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+48>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+52>>2]=e;e=0;R:{if(d>>>0<=b+3>>>0){c=0;break R}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+56>>2]=c;if(d>>>0>b+3>>>0){e= -K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+60>>2]=e;e=0;S:{if(d>>>0<=b+3>>>0){c=0;break S}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+64>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+8>>2]=b+4}J[h+68>>2]=e;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+116>>2]](b,h,(J[J[a>>2]-12>>2]+a|0)+4|0);g=xb-16|0;xb=g;J[g+12>>2]=0;b=g+12|0;T:{if(!(!(Ab[J[J[a>>2]+136>>2]](a,J[h+40>>2],J[h+44>>2],J[h+ -48>>2],J[h+52>>2],80,b,g+8|0,g+4|0)|0)|!J[a+208>>2])){hr(J[h+60>>2],b,J[g+8>>2],J[g+4>>2]);d=J[g+12>>2];f=J[a+208>>2];b=d;if(!f)break T;c=J[h+16>>2];n=+(c|0);b=J[h+20>>2];l=+(b|0);Ab[J[J[f>>2]+16>>2]](f,n,l,+(c+J[h+64>>2]|0)-n,+(b+J[h+68>>2]|0)-l,d,J[g+8>>2],J[g+4>>2])}b=J[g+12>>2]}if(b)Kb(b);xb=g+16|0;break n;case 79:J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;c=0;e=0;f=J[J[a>>2]-12>>2]+A|0;d=J[f+12>>2];b=J[f+8>>2];if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+ -8>>2]=b}J[h>>2]=e;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+4>>2]=c;c=0;U:{if(d>>>0<=b+3>>>0){e=0;break U}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+8>>2]=e;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+12>>2]=c;c=0;V:{if(d>>>0<=b+3>>>0){e=0;break V}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+16>>2]=e;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2| -0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+20>>2]=c;c=0;W:{if(d>>>0<=b+3>>>0){e=0;break W}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+24>>2]=e;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+28>>2]=c;c=0;X:{if(d>>>0<=b+3>>>0){e=0;break X}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+32>>2]=e;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+36>>2]=c;c=0;Y:{if(d>>> -0<=b+3>>>0){e=0;break Y}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+40>>2]=e;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+44>>2]=c;c=0;Z:{if(d>>>0<=b+3>>>0){e=0;break Z}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+48>>2]=e;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+52>>2]=c;c=0;_:{if(d>>>0<=b+3>>>0){e=0;break _}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+ -3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+56>>2]=e;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+8>>2]=b}J[h+60>>2]=c;c=0;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+8>>2]=b+4}J[h+64>>2]=c;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+124>>2]](b,h,(J[J[a>>2]-12>>2]+a|0)+4|0);c=xb-16|0;xb=c;J[c+12>>2]=0;$:{if(!(Ab[J[J[a>>2]+136>>2]](a,J[h+40>>2],J[h+44>>2],J[h+48>>2],J[h+52>>2],76,c+12|0,c+8|0,c+4|0)|0))break $;b=J[a+208>> -2];if(!b)break $;n=+J[h>>2];l=+J[h+4>>2];Ab[J[J[b>>2]+16>>2]](b,n,l,+J[h+8>>2]-n,+J[h+12>>2]-l,J[c+12>>2],J[c+8>>2],J[c+4>>2])}b=J[c+12>>2];if(b)Kb(b);xb=c+16|0;break n;case 76:J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[h+48>>2]=0;J[h+52>>2]=1072693248;J[h+80>>2]=0;J[h+84>>2]=0;J[h+72>>2]=0;J[h+76>>2]=1072693248;J[h+64>>2]=0;J[h+68>>2]=0;J[h+88>>2]=0;J[h+92>>2]=0;H[h+96|0]=0;H[h+97|0]=0;H[h+98|0]=0;H[h+99|0]=0;e=0;f=0;g=J[J[a>>2]-12>>2]+A|0;d=J[g+12>>2];b=J[g+8>>2]; -if(d>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+4>>2]=e;e=0;aa:{if(d>>>0<=b+3>>>0){f=0;break aa}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+8>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+12>>2]=e;e=0;ba:{if(d>>>0<=b+3>>>0){f=0;break ba}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<< -24);b=b+4|0;J[g+8>>2]=b}J[h+16>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+20>>2]=e;e=0;ca:{if(d>>>0<=b+3>>>0){f=0;break ca}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+24>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+28>>2]=e;e=0;da:{if(d>>>0<=b+3>>>0){f=0;break da}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+32>>2]=f;if(d>>>0>b+3>>>0){e= -K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+36>>2]=e;e=0;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+40>>2]=e;if(d>>>0<=b+3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+48>>3]=o;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+56>>3]=o;if(d>>>0<=b+3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3| -0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+64>>3]=o;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+72>>3]=o;if(d>>>0<=b+3>>>0)o=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}O[h+80>>3]=o;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b;o=+(x(2,c),C())}else o=0;O[h+88>>3]=o;e=0;f=0;if(b>>>0>>0){f=K[b|0];J[g+8>>2]=b+1}H[h+96|0]=f;b=J[g+8>>2]; -if(b>>>0>2]){e=K[b|0];J[g+8>>2]=b+1}H[h+97|0]=e;e=0;b=0;c=J[g+8>>2];if(c>>>0>2]){b=K[c|0];J[g+8>>2]=c+1}H[h+98|0]=b;b=J[g+8>>2];if(b>>>0>2]){e=K[b|0];J[g+8>>2]=b+1}H[h+99|0]=e;e=0;c=J[g+12>>2];b=J[g+8>>2];ea:{if(c>>>0<=b+3>>>0){f=0;break ea}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+100>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+104>>2]=e;e=0;fa:{if(c>>>0<=b+3>>>0){f=0;break fa}f=K[b|0]|K[b+ -1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+108>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+112>>2]=e;e=0;ga:{if(c>>>0<=b+3>>>0){f=0;break ga}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+116>>2]=f;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+8>>2]=b}J[h+120>>2]=e;e=0;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+8>>2]=b+4}J[h+124>>2]=e;b=J[a+216>> -2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+128>>2]](b,h,(J[J[a>>2]-12>>2]+a|0)+4|0);g=xb-16|0;xb=g;J[g+12>>2]=0;b=g+12|0;ha:{if(!(!(Ab[J[J[a>>2]+136>>2]](a,J[h+104>>2],J[h+108>>2],J[h+112>>2],J[h+116>>2],108,b,g+8|0,g+4|0)|0)|!J[a+208>>2])){hr(J[h+32>>2],b,J[g+8>>2],J[g+4>>2]);d=J[g+12>>2];f=J[a+208>>2];b=d;if(!f)break ha;c=J[h+16>>2];n=+(c|0);b=J[h+20>>2];l=+(b|0);Ab[J[J[f>>2]+16>>2]](f,n,l,+(c+J[h+24>>2]|0)-n,+(b+J[h+28>>2]|0)-l,d,J[g+8>>2],J[g+4>>2])}b=J[g+12>>2]}if(b)Kb(b);xb= -g+16|0;break n;case 28:J[h+8>>2]=0;J[h+12>>2]=0;d=0;f=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];b=J[f+16>>2];ia:{if(c+3>>>0>=b>>>0){e=0;break ia}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+4>>2]=d;d=0;ja:{if(b>>>0<=c+3>>>0){e=0;break ja}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+8>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<< -24);J[f+12>>2]=c+4}J[h+12>>2]=d;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;e=xb+-64|0;xb=e;c=J[h+8>>2];b=J[h>>2];d=(c|0)>(b|0);f=(d?1:-1)+c|0;J[h+8>>2]=f;d=b+(d?-1:1)|0;J[h>>2]=d;c=J[h+4>>2];b=J[h+12>>2];g=(c|0)<(b|0);c=(g?-1:1)+c|0;J[h+4>>2]=c;b=b+(g?1:-1)|0;J[h+12>>2]=b;O[e+56>>3]=b|0;O[e+48>>3]=f|0;O[e+40>>3]=c|0;O[e+32>>3]=d|0;c=Ab[J[J[a>>2]+36>>2]](a)|0;b=J[c>>2];O[e+8>>3]=J[c+4>>2];O[e>>3]=b|0;b=J[c+8>>2];O[e+24>>3]=J[c+12>>2];O[e+16>>3]=b|0;cC(J[a+120>>2]+4|0,e+32|0,e);b=J[a+208>>2];ka:{if(!b)break ka; -Ab[J[J[b>>2]+84>>2]](b);b=J[a+208>>2];if(!b)break ka;Ab[J[J[b>>2]+284>>2]](b,h)}xb=e- -64|0;break n;case 74:f=0;c=J[a>>2]-12|0;e=J[c>>2];g=e+a|0;b=J[g+12>>2];d=J[g+16>>2];la:{if(d>>>0<=b+3>>>0){i=0;break la}i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;e=J[c>>2];b=e+a|0;d=J[b+16>>2];b=J[b+12>>2]}J[h>>2]=i;if(b+3>>>0>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+D>>2]=b+4}J[h+152>>2]=f;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;wf(J[a+120>>2]+4|0);b=J[a+208>>2];if(b)Ab[J[J[b>> -2]+288>>2]](b,h,h+152|0,(J[J[a>>2]-12>>2]+a|0)+4|0);b=J[J[a>>2]-12>>2]+a|0;c=(J[b+12>>2]+J[a+116>>2]|0)-8|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;break n;case 29:J[h+8>>2]=0;J[h+12>>2]=0;d=0;f=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];b=J[f+16>>2];ma:{if(c+3>>>0>=b>>>0){e=0;break ma}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+4>>2]=d;d=0;na:{if(b>>>0<=c+3>>>0){e=0;break na}e= -K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+8>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4}J[h+12>>2]=d;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;c=xb-32|0;xb=c;b=J[h>>2];O[c+8>>3]=J[h+4>>2];O[c>>3]=b|0;b=J[h+8>>2];O[c+24>>3]=J[h+12>>2];O[c+16>>3]=b|0;dC(J[a+120>>2]+4|0,c);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+312>>2]](b,h);xb=c+32|0;break n;case 66:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+ -2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+276>>2]](b,h);c=J[a+156>>2];oa:{if(!c)break oa;b=J[a+120>>2];cr(b+4|0,c,J[h>>2],b+504|0);b=J[a+156>>2];if(b){Kb(qd(b));J[a+156>>2]=0}b=J[a+208>>2];if(!b)break oa;Ab[J[J[b>>2]+84>>2]](b)}break n;case 27:wf(J[a+120>>2]+4|0);b=J[a+208>>2];pa:{if(!b)break pa;Ab[J[J[b>>2]+292>>2]](b);b=J[a+208>>2];if(!b)break pa;Ab[J[J[b>>2]+84>>2]](b)}break n;case 0:e=0;b=0;g=J[a>>2]-12|0;f=J[g>>2]+ -a|0;c=J[f+12>>2];d=J[f+16>>2];if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[a+4>>2]=e;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[a+8>>2]=b;b=0;qa:{if(d>>>0<=c+3>>>0){e=0;break qa}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[a+12>>2]=e;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4}J[a+16>>2]=b;b=0;f=J[g>>2]+a|0;c=J[f+12>>2];d=J[f+16>>2];ra:{if(c+ -3>>>0>=d>>>0){e=0;break ra}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[a+20>>2]=e;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[a+24>>2]=b;b=0;sa:{if(d>>>0<=c+3>>>0){e=0;break sa}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[a+28>>2]=e;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4}J[a+32>>2]=b;b=0;e=0;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){e=K[d|0]|K[d+1| -0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[a+36>>2]=e;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[a+40>>2]=b;b=0;e=0;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[a+44>>2]=e;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[a+48>>2]=b;b=0;e=0;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+1>>>0>2]){e=K[d|0]|K[d+1|0]<<8;J[c+12>>2]=d+2}I[a+52>>1]=e;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+1>>>0>2]){b=K[d|0]|K[d+1|0]<<8;J[c+12>>2]=d+2}I[a+54>>1]=b;b=0;e=0;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[a+56>>2]=e;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[a+60>>2]=b;c=0;b=0;d=J[g>>2]+a|0;f=J[d+12>>2];if(f+3>>>0>2]){b=K[f|0]|K[f+1|0]<<8|(K[f+ -2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[a+64>>2]=b;f=J[g>>2]+a|0;e=J[f+12>>2];d=J[f+16>>2];if(e+3>>>0>>0){c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[f+12>>2]=e}J[a+68>>2]=c;c=0;b=0;if(d>>>0>e+3>>>0){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[f+12>>2]=e+4}J[a+72>>2]=b;f=J[g>>2]+a|0;b=J[f+12>>2];d=J[f+16>>2];if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b}J[a+76>>2]=c;e=0;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<< -24);J[f+12>>2]=b+4}J[a+80>>2]=e;ta:{if(!(J[a+36>>2]==1179469088&J[a+40>>2]==65536)){H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break ta}b=J[J[a>>2]-12>>2]+a|0;c=(J[b+12>>2]+J[a+116>>2]|0)-80|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;z=+J[a+76>>2];f=a+68|0;v=+J[f>>2];w=+J[a+20>>2]/100/z*v;l=V(w+.5);ua:{if(R(l)<2147483648){c=~~l;break ua}c=-2147483648}J[a+84>>2]=c;t=+J[a+80>>2];o=+J[a+72>>2];n=+J[a+24>>2]/100/t*o;l=V(n+.5);va:{if(R(l)<2147483648){b=~~l;break va}b=-2147483648}J[a+88>>2]=b;l=V(+J[a+32>>2]/ -100/t*o-n+.5);wa:{if(R(l)<2147483648){d=~~l;break wa}d=-2147483648}J[a+96>>2]=d+b;l=V(+J[a+28>>2]/100/z*v-w+.5);xa:{if(R(l)<2147483648){b=~~l;break xa}b=-2147483648}J[a+92>>2]=b+c;b=J[a+88>>2];J[a+100>>2]=J[a+84>>2];J[a+104>>2]=b;b=J[a+96>>2];J[a+108>>2]=J[a+92>>2];J[a+112>>2]=b;iA(J[a+120>>2],f);hA(J[a+120>>2],f);b=J[a+208>>2];if(b){Ab[J[J[b>>2]+8>>2]](b);b=J[a+208>>2];Ab[J[J[b>>2]+108>>2]](b,a+4|0)}}break n;case 13:g=J[a>>2]-12|0;c=J[g>>2];d=c+a|0;b=J[d+12>>2];f=J[d+16>>2];if(f>>>0>b+3>>>0){J[d+ -12>>2]=b+4;c=J[g>>2];b=c+a|0;f=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){J[c+D>>2]=b+4;c=J[g>>2];b=c+a|0;f=J[b+16>>2];b=J[b+12>>2]}b=(J[a+116>>2]+b|0)-12|0;J[c+D>>2]=b>>>0>>0?b:f;c=J[g>>2]+a|0;b=J[c+12>>2];if(b+3>>>0>2])J[c+12>>2]=b+4;Uq(a);break n;case 40:f=0;d=0;c=xb-32|0;xb=c;k=J[a>>2]-12|0;e=J[k>>2]+a|0;b=J[e+12>>2];g=J[e+16>>2];if(b+3>>>0>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+24>>2]=d;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+ -3|0]<<24);J[e+12>>2]=b+4}J[c+28>>2]=f;d=0;f=J[k>>2];g=f+a|0;e=J[g+12>>2];b=J[g+16>>2];if(b>>>0>e+3>>>0){d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[g+12>>2]=e+4;f=J[k>>2];g=f+a|0;b=J[g+16>>2];e=J[g+12>>2]}J[c+20>>2]=d;if(e+3>>>0>=b>>>0)o=0;else{g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[(a+f|0)+12>>2]=e+4;f=J[k>>2];d=f+a|0;b=J[d+16>>2];e=J[d+12>>2];o=+(x(2,g),C())}O[c+8>>3]=o;if(e+3>>>0>>0){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[(a+f|0)+12>>2]=e+4;o=+(x(2,b),C())}else o= -0;O[c>>3]=o;b=J[a+216>>2];if(!(K[b+213|0]?b:0)){e=c+24|0;g=c+20|0;f=c+8|0;b=J[a+208>>2];ya:{if(!b)break ya;if(J[a+156>>2]){if((Ab[J[J[b>>2]+96>>2]](b)|0)==4)break ya;b=J[a+208>>2]}Ab[J[J[b>>2]+324>>2]](b,e,g,f,c)}d=J[e+4>>2];g=J[g>>2];v=+(d+g|0);b=J[e>>2];w=+(b+g|0);t=+(d-g|0);o=+(b-g|0);n=O[c>>3];l=O[f>>3];b=J[a+156>>2];za:{if(b){if(Se(b,o,t,w,v,l,n))break za;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break za}b=J[a+208>>2];if(!b)break za;Ab[J[J[b>>2]+44>>2]](b,o,t,w,v,l,n)}b=J[a+208>>2];if(!(!(!J[a+156>> -2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,1);b=J[a+208>>2];Ab[J[J[b>>2]+56>>2]](b)}}xb=c+32|0;break n;case 44:J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[h+152>>2]=0;J[h+156>>2]=0;J[h+144>>2]=0;J[h+148>>2]=0;d=h+152|0;c=h+144|0;Cn(a,h,d,c,h+136|0,h+128|0);b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];Aa:{if(!b)break Aa;if(J[a+156>>2]){if((Ab[J[J[b>>2]+96>>2]](b)|0)==4)break Aa;b=J[a+208>>2]}Ab[J[J[b>>2]+328>>2]](b,h,d,c)}z=we(J[h>>2],J[h+4>>2],J[h+8>>2],J[h+12>>2],J[d>>2],J[d+4>>2]);l=we(J[h>> -2],J[h+4>>2],J[h+8>>2],J[h+12>>2],J[c>>2],J[c+4>>2]);f=J[a+120>>2];e=J[f+688>>2];d=J[f+672>>2];b=J[h+4>>2];c=J[h+12>>2];Ba:{if(((J[f+676>>2]<0?(b|0)<(c|0):(b|0)>(c|0))|0)!=1){f=b;b=c;break Ba}J[h+4>>2]=c;J[h+12>>2]=b;f=c}c=J[h>>2];g=J[h+8>>2];Ca:{if((((d|0)<0?(c|0)<(g|0):(c|0)>(g|0))|0)!=1){d=c;c=g;break Ca}J[h>>2]=g;J[h+8>>2]=c;d=g}v=z*-.017453292519943295;o=Fe(v);w=l-z;t=w+-360;g=(e|0)==1;n=+(b-f|0);l=n*.5;E=o;o=+(c-d|0);n=Pi(ue(v)/n*.5,E/o*.5);l=l+ +(f|0)-l*ue(n);Da:{if(R(l)<2147483648){c=~~l; -break Da}c=-2147483648}v=+(c|0);l=o*.5;l=l*Fe(n)+(l+ +(d|0));Ea:{if(R(l)<2147483648){b=~~l;break Ea}b=-2147483648}l=+(b|0);d=J[a+156>>2];Fa:{Ga:{if(d){if(le(d,l,v))break Ga;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Fa}d=J[a+208>>2];if(!d)break Ga;Ab[J[J[d>>2]+32>>2]](d,l,v)}d=J[a+120>>2];J[d+680>>2]=b;J[d+684>>2]=c}w=g?w:t;t=+J[h+12>>2];o=+J[h+8>>2];n=+J[h+4>>2];l=+J[h>>2];b=J[a+156>>2];Ha:{if(b){if(Se(b,l,n,o,t,z,w))break Ha;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Ha}b=J[a+208>>2];if(!b)break Ha;Ab[J[J[b>> -2]+44>>2]](b,l,n,o,t,z,w)}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,1);b=J[a+208>>2];Ab[J[J[b>>2]+56>>2]](b)}break n;case 54:J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[h+152>>2]=0;J[h+156>>2]=0;J[h+144>>2]=0;J[h+148>>2]=0;d=h+152|0;c=h+144|0;Cn(a,h,d,c,h+136|0,h+128|0);b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];Ia:{if(!b)break Ia;if(J[a+156>>2]){if((Ab[J[J[b>>2]+96>>2]](b)|0)==4)break Ia;b=J[a+208>>2]}Ab[J[J[b>>2]+332>>2]](b,h,d,c)}v=we(J[h>>2],J[h+4>>2],J[h+ -8>>2],J[h+12>>2],J[d>>2],J[d+4>>2]);l=we(J[h>>2],J[h+4>>2],J[h+8>>2],J[h+12>>2],J[c>>2],J[c+4>>2]);f=J[a+120>>2];d=J[(f+664|0)+8>>2];b=J[h+12>>2];c=J[h+4>>2];Ja:{if(((J[f+676>>2]<0?(b|0)>(c|0):(b|0)<(c|0))|0)!=1){f=b;b=c;break Ja}J[h+4>>2]=b;J[h+12>>2]=c;f=c}c=J[h+8>>2];g=J[h>>2];Ka:{if((((d|0)<0?(c|0)>(g|0):(c|0)<(g|0))|0)!=1){d=c;c=g;break Ka}J[h>>2]=c;J[h+8>>2]=g;d=g}w=l-v;t=+(f|0);o=+(d|0);n=+(b|0);l=+(c|0);b=J[a+156>>2];La:{if(b){if(Se(b,l,n,o,t,v,w))break La;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1; -break La}b=J[a+208>>2];if(!b)break La;Ab[J[J[b>>2]+44>>2]](b,l,n,o,t,v,w)}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,1);b=J[a+208>>2];Ab[J[J[b>>2]+56>>2]](b)}break n;case 45:J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[h+152>>2]=0;J[h+156>>2]=0;J[h+144>>2]=0;J[h+148>>2]=0;f=h+152|0;c=h+144|0;Cn(a,h,f,c,h+136|0,h+128|0);b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=c;c=J[a+208>>2];Ma:{if(!c)break Ma;if(J[a+156>>2]){if((Ab[J[J[c>>2]+96>>2]](c)|0)==4)break Ma;c=J[a+208>>2]}Ab[J[J[c>> -2]+336>>2]](c,h,f,b)}v=we(J[h>>2],J[h+4>>2],J[h+8>>2],J[h+12>>2],J[f>>2],J[f+4>>2]);w=we(J[h>>2],J[h+4>>2],J[h+8>>2],J[h+12>>2],J[b>>2],J[b+4>>2]);d=J[h>>2];c=J[h+8>>2];t=v*-.017453292519943295;o=Fe(t);b=J[h+4>>2];n=+(J[h+12>>2]-b|0);l=n*.5;E=o;o=+(c-d|0);n=Pi(ue(t)/n*.5,E/o*.5);l=l+ +(b|0)-l*ue(n);Na:{if(R(l)<2147483648){c=~~l;break Na}c=-2147483648}t=+(c|0);l=o*.5;l=l*Fe(n)+(l+ +(d|0));Oa:{if(R(l)<2147483648){b=~~l;break Oa}b=-2147483648}l=+(b|0);d=J[a+156>>2];Pa:{Qa:{if(d){if(le(d,l,t))break Qa; -H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Pa}d=J[a+208>>2];if(!d)break Qa;Ab[J[J[d>>2]+32>>2]](d,l,t)}d=J[a+120>>2];J[d+680>>2]=b;J[d+684>>2]=c}w=w-v;t=+J[h+12>>2];o=+J[h+8>>2];n=+J[h+4>>2];l=+J[h>>2];b=J[a+156>>2];Ra:{Sa:{Ta:{if(b){if(Se(b,l,n,o,t,v,w))break Ta;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Ta}b=J[a+208>>2];if(!b){c=J[f+4>>2];b=J[f>>2];break Sa}Ab[J[J[b>>2]+44>>2]](b,l,n,o,t,v,w)}c=J[f+4>>2];n=+(c|0);b=J[f>>2];l=+(b|0);d=J[a+156>>2];if(d){if(ud(d,l,n))break Sa;H[(J[J[a>>2]-12>>2]+a|0)+33|0]= -1;break Ra}d=J[a+208>>2];if(!d)break Sa;Ab[J[J[d>>2]+36>>2]](d,l,n)}d=J[a+120>>2];J[d+680>>2]=b;J[d+684>>2]=c}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+208>>2];Ab[J[J[b>>2]+56>>2]](b)}break n;case 41:J[h+8>>2]=0;J[h+12>>2]=0;d=0;f=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];b=J[f+16>>2];Ua:{if(c+3>>>0>=b>>>0){e=0;break Ua}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0; -J[f+12>>2]=c}J[h+4>>2]=d;d=0;Va:{if(b>>>0<=c+3>>>0){e=0;break Va}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+8>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4}J[h+12>>2]=d;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];Wa:{if(!b)break Wa;if(J[a+156>>2]){if((Ab[J[J[b>>2]+96>>2]](b)|0)==4)break Wa;b=J[a+208>>2]}Ab[J[J[b>>2]+340>>2]](b,h)}c=J[a+120>>2];b=J[(c+664|0)+8>>2];f=J[h+4>>2];d=J[h+12>>2];if(((J[c+676>>2]<0?(f|0)<(d| -0):(d|0)<(f|0))|0)==1){J[h+4>>2]=d;J[h+12>>2]=f}d=J[h>>2];c=J[h+8>>2];if((((b|0)<0?(d|0)<(c|0):(c|0)<(d|0))|0)==1){J[h>>2]=c;J[h+8>>2]=d}b=J[a+156>>2];t=+J[h+8>>2];o=+J[h>>2];Xa:{if(J[J[a+120>>2]+688>>2]==1){n=+J[h+12>>2];l=+J[h+4>>2];if(b){if(Se(b,o,l,t,n,0,360))break Xa;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Xa}b=J[a+208>>2];if(!b)break Xa;Ab[J[J[b>>2]+44>>2]](b,o,l,t,n,0,360);break Xa}n=+J[h+4>>2];l=+J[h+12>>2];if(b){if(Se(b,o,l,t,n,0,360))break Xa;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Xa}b=J[a+ -208>>2];if(!b)break Xa;Ab[J[J[b>>2]+44>>2]](b,o,l,t,n,0,360)}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+208>>2];Ab[J[J[b>>2]+56>>2]](b)}break n;case 82:f=0;i=0;n=0;c=xb-96|0;xb=c;J[c+68>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+80>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;e=J[J[a>>2]-12>>2]+a|0;b=J[e+12>>2];g=J[e+16>>2];if(b+3>>>0>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+8>>2]=i;if(g>>>0>b+ -3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+12>>2]=f;f=0;Ya:{if(g>>>0<=b+3>>>0){i=0;break Ya}i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+16>>2]=i;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+20>>2]=f;f=0;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+24>>2]=f;if(g>>>0<=b+3>>>0)o=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4| -0;J[e+12>>2]=b;o=+(x(2,d),C())}O[c+32>>3]=o;if(g>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4;n=+(x(2,d),C())}J[195395]=0;O[c+40>>3]=n;fa(1990,e+4|0,c+48|0,36);b=J[195395];J[195395]=0;if((b|0)==1)break j;b=J[a+216>>2];Za:{if(b){J[195395]=0;d=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break j;if(d)break Za}J[195395]=0;$(1991,a|0,c+8|0);b=J[195395];J[195395]=0;if((b|0)==1)break j}b=J[c+88>>2];if(b){Kb(b);J[c+88>>2]=0}b=J[c+92>>2];if(b)Kb(b);xb=c+96|0;break n;case 83:f= -0;i=0;n=0;c=xb-96|0;xb=c;J[c+68>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+80>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;e=J[J[a>>2]-12>>2]+a|0;b=J[e+12>>2];g=J[e+16>>2];if(b+3>>>0>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+8>>2]=i;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+12>>2]=f;f=0;_a:{if(g>>>0<=b+3>>>0){i=0;break _a}i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0; -J[e+12>>2]=b}J[c+16>>2]=i;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+20>>2]=f;f=0;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[c+24>>2]=f;if(g>>>0<=b+3>>>0)o=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b;o=+(x(2,d),C())}O[c+32>>3]=o;if(g>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4;n=+(x(2,d),C())}J[195395]=0;O[c+40>>3]=n;fa(1992,e+4|0,c+48|0, -36);b=J[195395];J[195395]=0;if((b|0)==1)break j;b=J[a+216>>2];$a:{if(b){J[195395]=0;d=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break j;if(d)break $a}J[195395]=0;$(1993,a|0,c+8|0);b=J[195395];J[195395]=0;if((b|0)==1)break j}b=J[c+88>>2];if(b){Kb(b);J[c+88>>2]=0}b=J[c+92>>2];if(b)Kb(b);xb=c+96|0;break n;case 61:J[h+8>>2]=0;J[h+12>>2]=0;d=0;f=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];b=J[f+16>>2];ab:{if(c+3>>>0>=b>>>0){e=0;break ab}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h>> -2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+4>>2]=d;d=0;bb:{if(b>>>0<=c+3>>>0){e=0;break bb}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+8>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4}J[h+12>>2]=d;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+228>>2]](b,h);b=J[a+156>>2];cb:{if(!b)break cb;Ui(b,J[a+208>>2],0,1,-1);wf(J[a+156>>2]);b=J[a+156>>2];if(!b)break cb; -Kb(qd(b));J[a+156>>2]=0}break n;case 53:c=0;d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];b=J[d+16>>2];db:{if(f+3>>>0>=b>>>0){e=0;break db}e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+4|0;J[d+12>>2]=f}J[h>>2]=e;if(b>>>0>f+3>>>0){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[h+4>>2]=c;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];eb:{if(!b)break eb;if(J[a+156>>2]){if((Ab[J[J[b>>2]+96>>2]](b)|0)==4)break eb;b=J[a+208>>2]}Ab[J[J[b>>2]+352>>2]](b,h)}d=J[h+4>>2];n=+(d|0);c=J[h>> -2];l=+(c|0);b=J[a+156>>2];fb:{gb:{if(b){if(ud(b,l,n))break gb;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break fb}b=J[a+208>>2];if(!b)break gb;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}break n;case 46:J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[h+152>>2]=0;J[h+156>>2]=0;J[h+144>>2]=0;J[h+148>>2]=0;d=h+152|0;c=h+144|0;Cn(a,h,d,c,h+136|0,h+128|0);b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];hb:{if(!b)break hb;if(J[a+156>>2]){if((Ab[J[J[b>>2]+96>>2]](b)|0)==4)break hb; -b=J[a+208>>2]}Ab[J[J[b>>2]+356>>2]](b,h,d,c)}v=we(J[h>>2],J[h+4>>2],J[h+8>>2],J[h+12>>2],J[d>>2],J[d+4>>2]);w=we(J[h>>2],J[h+4>>2],J[h+8>>2],J[h+12>>2],J[c>>2],J[c+4>>2])-v;t=+J[h+12>>2];o=+J[h+8>>2];n=+J[h+4>>2];l=+J[h>>2];b=J[a+156>>2];ib:{if(b){if(Se(b,l,n,o,t,v,w))break ib;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break ib}b=J[a+208>>2];if(!b)break ib;Ab[J[J[b>>2]+44>>2]](b,l,n,o,t,v,w)}d=(J[h+12>>2]+J[h+4>>2]|0)/2|0;n=+(d|0);c=(J[h+8>>2]+J[h>>2]|0)/2|0;l=+(c|0);b=J[a+156>>2];jb:{kb:{if(b){if(ud(b,l,n))break kb; -H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break jb}b=J[a+208>>2];if(!b)break kb;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}b=J[a+156>>2];lb:{if(b){if(Kf(b))break lb;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break lb}b=J[a+208>>2];if(!b)break lb;Ab[J[J[b>>2]+48>>2]](b)}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+208>>2];Ab[J[J[b>>2]+56>>2]](b)}break n;case 1:b=0;f=0;e=xb-32|0;xb=e;J[e+24>>2]=0;J[e+28>>2]=0;q=J[a>>2]-12|0;g=J[q>>2]+a|0;c=J[g+12>>2];d=J[g+16>> -2];if(c+3>>>0>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[g+12>>2]=c}J[e+16>>2]=f;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[g+12>>2]=c}J[e+20>>2]=b;b=0;mb:{if(d>>>0<=c+3>>>0){f=0;break mb}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[g+12>>2]=c}J[e+24>>2]=f;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[g+12>>2]=c+4}J[e+28>>2]=b;b=J[q>>2]+a|0;c=J[b+12>>2];nb:{if(c+3>>>0>=M[b+16>>2])break nb;m=K[c|0]|K[c+1| -0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;if(!m)break nb;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;ob:{pb:{if(m>>>0>=536870912){J[195395]=0;ea(1994,e+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break pb;B()}J[195395]=0;d=m<<3;f=_(1078,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break ob}a=Z()|0;b=J[e+4>>2];if(!b)break d;J[e+8>>2]=b;Kb(b);break d}J[e+4>>2]=f;b=d+f|0;J[e+12>>2]=b;c=0;j=Nb(f,0,d);J[e+8>>2]=b;g=J[q>>2]+a|0;d=J[g+12>>2];b=J[g+16>>2];qb:{if(d+3>>>0>=b>>>0){f=0;break qb}f=K[d|0]|K[d+1|0]<< -8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[g+12>>2]=d}J[j>>2]=f;if(b>>>0>d+3>>>0){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[g+12>>2]=d+4}J[j+4>>2]=c;d=1;if(m>>>0>1)while(1){p=j+(d<<3)|0;f=0;k=J[q>>2]+a|0;b=J[k+12>>2];g=J[k+16>>2];rb:{if(b+3>>>0>=g>>>0){c=0;break rb}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[p>>2]=c;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[k+12>>2]=b+4}J[p+4>>2]=f;f=0;k=J[q>>2]+a|0;b=J[k+12>>2];g=J[k+16>>2];sb:{if(b+3>>> -0>=g>>>0){c=0;break sb}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[p+8>>2]=c;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[k+12>>2]=b+4}J[p+12>>2]=f;f=0;k=J[q>>2]+a|0;b=J[k+12>>2];g=J[k+16>>2];tb:{if(b+3>>>0>=g>>>0){c=0;break tb}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[p+16>>2]=c;if(g>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[k+12>>2]=b+4}J[p+20>>2]=f;d=d+3|0;if(m>>>0>d>>>0)continue;break}b=J[a+ -216>>2];ub:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break i;if(c)break ub}J[195395]=0;fa(1995,a|0,e+16|0,e+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break i}b=J[e+4>>2];if(!b)break nb;J[e+8>>2]=b;Kb(b)}xb=e+32|0;break n;case 84:c=0;f=0;e=xb-32|0;xb=e;J[e+24>>2]=0;J[e+28>>2]=0;m=J[a>>2]-12|0;g=J[m>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[e+16>>2]=f;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+ -2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[e+20>>2]=c;c=0;vb:{if(d>>>0<=b+3>>>0){f=0;break vb}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[e+24>>2]=f;if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[e+28>>2]=c;b=J[m>>2]+a|0;c=J[b+12>>2];wb:{if(c+3>>>0>=M[b+16>>2])break wb;j=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;if(!j)break wb;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;xb:{yb:{if(j>>>0>=1073741824){J[195395]=0;ea(1996, -e+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break yb;B()}J[195395]=0;d=j<<2;f=_(1078,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break xb}a=Z()|0;b=J[e+4>>2];if(!b)break d;J[e+8>>2]=b;Kb(b);break d}J[e+4>>2]=f;b=d+f|0;J[e+12>>2]=b;c=0;k=Nb(f,0,d);J[e+8>>2]=b;g=J[m>>2]+a|0;b=J[g+12>>2];f=J[g+16>>2];zb:{if(b+1>>>0>=f>>>0){d=0;break zb}d=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[g+12>>2]=b}I[k>>1]=d;u=1;if(f>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[g+12>>2]=b+2}I[k+2>>1]=c;if(j>>>0>1)while(1){q=k+(u<<2)|0;f=0;g=J[m>>2]+ -a|0;c=J[g+12>>2];d=J[g+16>>2];Ab:{if(c+1>>>0>=d>>>0){b=0;break Ab}b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[g+12>>2]=c}I[q>>1]=b;if(d>>>0>c+1>>>0){f=K[c|0]|K[c+1|0]<<8;J[g+12>>2]=c+2}I[q+2>>1]=f;f=0;g=J[m>>2]+a|0;c=J[g+12>>2];d=J[g+16>>2];Bb:{if(c+1>>>0>=d>>>0){b=0;break Bb}b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[g+12>>2]=c}I[q+4>>1]=b;if(d>>>0>c+1>>>0){f=K[c|0]|K[c+1|0]<<8;J[g+12>>2]=c+2}I[q+6>>1]=f;f=0;g=J[m>>2]+a|0;c=J[g+12>>2];d=J[g+16>>2];Cb:{if(c+1>>>0>=d>>>0){b=0;break Cb}b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[g+12>> -2]=c}I[q+8>>1]=b;if(d>>>0>c+1>>>0){f=K[c|0]|K[c+1|0]<<8;J[g+12>>2]=c+2}I[q+10>>1]=f;u=u+3|0;if(j>>>0>u>>>0)continue;break}b=J[a+216>>2];Db:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break i;if(c)break Db}J[195395]=0;fa(1997,a|0,e+16|0,e+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break i}b=J[e+4>>2];if(!b)break wb;J[e+8>>2]=b;Kb(b)}xb=e+32|0;break n;case 4:c=0;b=0;f=xb-32|0;xb=f;J[f+24>>2]=0;J[f+28>>2]=0;m=J[a>>2]-12|0;g=J[m>>2]+a|0;e=J[g+12>>2];d=J[g+16>>2];if(e+3>>>0>>0){c= -K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[g+12>>2]=e}J[f+16>>2]=c;if(d>>>0>e+3>>>0){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[g+12>>2]=e}J[f+20>>2]=b;b=0;Eb:{if(d>>>0<=e+3>>>0){c=0;break Eb}c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[g+12>>2]=e}J[f+24>>2]=c;if(d>>>0>e+3>>>0){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[g+12>>2]=e+4}J[f+28>>2]=b;Fb:{Gb:{b=J[m>>2]+a|0;c=J[b+12>>2];Hb:{Ib:{Jb:{if(c+3>>>0>=M[b+16>>2]){J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>> -2]=0;break Jb}q=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if(!q)break Jb;Kb:{Lb:{if(q>>>0>=536870912){J[195395]=0;ea(1994,f+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break Lb;B()}e=0;J[195395]=0;d=q<<3;b=_(1078,d|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break Kb}e=Z()|0;a=J[f+4>>2];if(!a)break Gb;J[f+8>>2]=a;Kb(a);break Gb}J[f+4>>2]=b;c=b+d|0;J[f+12>>2]=c;k=Nb(b,0,d);J[f+8>>2]=c;while(1){j=J[m>>2]+a|0;if(q-e>>>0<=1){H[j+33|0]=1;break Ib}p=k+ -(e<<3)|0;d=0;g=J[j+16>>2];c=J[j+12>>2];Mb:{if(g>>>0<=c+3>>>0){i=0;break Mb}i=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[j+12>>2]=c}J[p>>2]=i;if(g>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[j+12>>2]=c+4}J[p+4>>2]=d;d=0;j=J[m>>2]+a|0;c=J[j+12>>2];g=J[j+16>>2];Nb:{if(c+3>>>0>=g>>>0){i=0;break Nb}i=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[j+12>>2]=c}J[p+8>>2]=i;if(g>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[j+12>>2]=c+4}J[p+12>> -2]=d;d=0;j=J[m>>2]+a|0;c=J[j+12>>2];g=J[j+16>>2];Ob:{if(c+3>>>0>=g>>>0){i=0;break Ob}i=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[j+12>>2]=c}J[p+16>>2]=i;if(g>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[j+12>>2]=c+4}J[p+20>>2]=d;e=e+3|0;if(q>>>0>e>>>0)continue;break}}Pb:{Qb:{Rb:{b=J[a+216>>2];if(!b)break Rb;J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break Qb;if(!c)break Rb;b=J[f+4>>2];break Pb}e=J[a+208>>2];Sb:{if(!e)break Sb;if(J[a+156>>2]){b=J[J[e>> -2]+96>>2];J[195395]=0;c=_(b|0,e|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qb;if((c|0)==4)break Sb;e=J[a+208>>2]}b=J[J[e>>2]+368>>2];J[195395]=0;fa(b|0,e|0,f+16|0,f+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break Qb}b=J[f+8>>2];c=J[f+4>>2];if((b|0)==(c|0))break Pb;e=0;b=c;while(1){Tb:{J[195395]=0;b=(e<<3)+b|0;ia(1998,a|0,b|0,b+8|0,b+16|0);b=J[195395];J[195395]=0;if((b|0)==1)break Tb;e=e+3|0;b=J[f+4>>2];if(e>>>0>2]-b>>3>>>0)continue;break Pb}break}}e=Z()|0;a=J[f+4>>2];if(!a)break Gb;break c}if(!b)break Hb}J[f+ -8>>2]=b;Kb(b)}xb=f+32|0;break Fb}ba(e|0);B()}break n;case 87:c=0;b=0;f=xb-32|0;xb=f;J[f+24>>2]=0;J[f+28>>2]=0;m=J[a>>2]-12|0;g=J[m>>2]+a|0;e=J[g+12>>2];d=J[g+16>>2];if(e+3>>>0>>0){c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[g+12>>2]=e}J[f+16>>2]=c;if(d>>>0>e+3>>>0){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[g+12>>2]=e}J[f+20>>2]=b;b=0;Ub:{if(d>>>0<=e+3>>>0){c=0;break Ub}c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[g+12>>2]=e}J[f+24>>2]=c;if(d>>>0>e+ -3>>>0){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[g+12>>2]=e+4}J[f+28>>2]=b;Vb:{Wb:{b=J[m>>2]+a|0;c=J[b+12>>2];Xb:{Yb:{Zb:{if(c+3>>>0>=M[b+16>>2]){J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;break Zb}q=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if(!q)break Zb;_b:{$b:{if(q>>>0>=1073741824){J[195395]=0;ea(1996,f+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break $b;B()}e=0;J[195395]=0;d=q<<2;b=_(1078,d|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break _b}e= -Z()|0;a=J[f+4>>2];if(!a)break Wb;J[f+8>>2]=a;Kb(a);break Wb}J[f+4>>2]=b;c=b+d|0;J[f+12>>2]=c;k=Nb(b,0,d);J[f+8>>2]=c;while(1){j=J[m>>2]+a|0;if(q-e>>>0<=1){H[j+33|0]=1;break Yb}p=k+(e<<2)|0;d=0;g=J[j+16>>2];c=J[j+12>>2];ac:{if(g>>>0<=c+1>>>0){i=0;break ac}i=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[j+12>>2]=c}I[p>>1]=i;if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[j+12>>2]=c+2}I[p+2>>1]=d;d=0;j=J[m>>2]+a|0;c=J[j+12>>2];g=J[j+16>>2];bc:{if(c+1>>>0>=g>>>0){i=0;break bc}i=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[j+12>>2]=c}I[p+4>> -1]=i;if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[j+12>>2]=c+2}I[p+6>>1]=d;d=0;j=J[m>>2]+a|0;c=J[j+12>>2];g=J[j+16>>2];cc:{if(c+1>>>0>=g>>>0){i=0;break cc}i=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[j+12>>2]=c}I[p+8>>1]=i;if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[j+12>>2]=c+2}I[p+10>>1]=d;e=e+3|0;if(q>>>0>e>>>0)continue;break}}dc:{ec:{fc:{b=J[a+216>>2];if(!b)break fc;J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break ec;if(!c)break fc;b=J[f+4>>2];break dc}e=J[a+208>>2];gc:{if(!e)break gc;if(J[a+156>> -2]){b=J[J[e>>2]+96>>2];J[195395]=0;c=_(b|0,e|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break ec;if((c|0)==4)break gc;e=J[a+208>>2]}b=J[J[e>>2]+372>>2];J[195395]=0;fa(b|0,e|0,f+16|0,f+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break ec}b=J[f+8>>2];c=J[f+4>>2];if((b|0)==(c|0))break dc;e=0;b=c;while(1){hc:{J[195395]=0;b=(e<<2)+b|0;ia(1999,a|0,b|0,b+4|0,b+8|0);b=J[195395];J[195395]=0;if((b|0)==1)break hc;e=e+3|0;b=J[f+4>>2];if(e>>>0>2]-b>>2>>>0)continue;break dc}break}}e=Z()|0;a=J[f+4>>2];if(!a)break Wb; -break c}if(!b)break Xb}J[f+8>>2]=b;Kb(b)}xb=f+32|0;break Vb}ba(e|0);B()}break n;case 55:e=0;c=0;r=xb-32|0;xb=r;J[r+24>>2]=0;J[r+28>>2]=0;k=J[a>>2]-12|0;f=J[k>>2]+a|0;b=J[f+12>>2];d=J[f+16>>2];if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b}J[r+16>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b}J[r+20>>2]=e;e=0;ic:{if(d>>>0<=b+3>>>0){c=0;break ic}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]= -b}J[r+24>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4}J[r+28>>2]=e;b=J[k>>2]+a|0;c=J[b+12>>2];jc:{if(c+3>>>0>=M[b+16>>2])break jc;j=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;J[r+12>>2]=j;if(!j)break jc;b=0;c=j<<3;q=Nb(Pb(j>>>0>536870911?-1:c),0,c);while(1){f=q+(b<<3)|0;g=J[k>>2]+a|0;e=J[g+12>>2];d=J[g+16>>2];kc:{if(e+3>>>0>=d>>>0){c=0;break kc}c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[g+12>>2]=e}J[f>>2]=c;c=0;if(d>>>0> -e+3>>>0){c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[g+12>>2]=e+4}J[f+4>>2]=c;b=b+1|0;if((j|0)!=(b|0))continue;break}b=0;p=Pb(j);if((j|0)!=1){d=j&-2;c=0;while(1){s=0;f=J[k>>2]+a|0;g=J[f+12>>2];if(g>>>0>2]){s=K[g|0];J[f+12>>2]=g+1}H[b+p|0]=s;s=0;f=J[k>>2]+a|0;g=J[f+12>>2];if(g>>>0>2]){s=K[g|0];J[f+12>>2]=g+1}H[p+(b|1)|0]=s;b=b+2|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(j&1){c=b+p|0;b=0;d=J[k>>2]+a|0;f=J[d+12>>2];if(f>>>0>2]){b=K[f|0];J[d+12>>2]=f+1}H[c|0]=b}b=J[a+ -216>>2];if(!(K[b+213|0]?b:0)){k=r+16|0;e=0;b=0;d=0;g=0;j=r+12|0;lc:{if(!J[j>>2])break lc;while(1){f=d;c=b;b=q+(e<<3)|0;m=K[e+p|0];mc:{nc:{if((m|0)==6){Zq(a,b);d=0;break nc}oc:{pc:{qc:{if(m&2){Bn(a,b);d=0;if(m&1)break qc;break nc}if(!(m&4))break nc;d=1;rc:switch(f|0){case 0:break mc;case 1:break oc;case 2:break rc;default:break pc}XA(a,c,g,b);d=0;if(!(m&1))break nc}nl(a);break nc}H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break lc}d=2;g=b}b=c}e=e+1|0;if(e>>>0>2])continue;break}}e=J[a+208>>2];sc:{if(!e)break sc; -if(J[a+156>>2]){if((Ab[J[J[e>>2]+96>>2]](e)|0)==4)break sc;e=J[a+208>>2]}Ab[J[J[e>>2]+376>>2]](e,k,q,j,p)}}Kb(q);Kb(p)}xb=r+32|0;break n;case 91:e=0;c=0;r=xb-32|0;xb=r;J[r+24>>2]=0;J[r+28>>2]=0;k=J[a>>2]-12|0;f=J[k>>2]+a|0;b=J[f+12>>2];d=J[f+16>>2];if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b}J[r+16>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b}J[r+20>>2]=e;e=0;tc:{if(d>>>0<=b+3>>>0){c=0;break tc}c=K[b|0]|K[b+ -1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b}J[r+24>>2]=c;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4}J[r+28>>2]=e;b=J[k>>2]+a|0;c=J[b+12>>2];uc:{if(c+3>>>0>=M[b+16>>2])break uc;j=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;J[r+12>>2]=j;if(!j)break uc;b=0;c=j<<2;q=Nb(Pb(j>>>0>1073741823?-1:c),0,c);while(1){f=q+(b<<2)|0;g=J[k>>2]+a|0;e=J[g+12>>2];d=J[g+16>>2];vc:{if(e+1>>>0>=d>>>0){c=0;break vc}c=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[g+12>> -2]=e}I[f>>1]=c;c=0;if(d>>>0>e+1>>>0){c=K[e|0]|K[e+1|0]<<8;J[g+12>>2]=e+2}I[f+2>>1]=c;b=b+1|0;if((j|0)!=(b|0))continue;break}b=0;p=Pb(j);if((j|0)!=1){d=j&-2;c=0;while(1){s=0;f=J[k>>2]+a|0;g=J[f+12>>2];if(g>>>0>2]){s=K[g|0];J[f+12>>2]=g+1}H[b+p|0]=s;s=0;f=J[k>>2]+a|0;g=J[f+12>>2];if(g>>>0>2]){s=K[g|0];J[f+12>>2]=g+1}H[p+(b|1)|0]=s;b=b+2|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(j&1){c=b+p|0;b=0;d=J[k>>2]+a|0;f=J[d+12>>2];if(f>>>0>2]){b=K[f|0];J[d+12>>2]=f+1}H[c|0]=b}b=J[a+ -216>>2];if(!(K[b+213|0]?b:0)){k=r+16|0;e=0;b=0;d=0;g=0;j=r+12|0;wc:{if(!J[j>>2])break wc;while(1){f=d;c=b;b=q+(e<<2)|0;m=K[e+p|0];xc:{yc:{if((m|0)==6){Yq(a,b);d=0;break yc}zc:{Ac:{Bc:{if(m&2){An(a,b);d=0;if(m&1)break Bc;break yc}if(!(m&4))break yc;d=1;Cc:switch(f|0){case 0:break xc;case 1:break zc;case 2:break Cc;default:break Ac}YA(a,c,g,b);d=0;if(!(m&1))break yc}nl(a);break yc}H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break wc}d=2;g=b}b=c}e=e+1|0;if(e>>>0>2])continue;break}}e=J[a+208>>2];Dc:{if(!e)break Dc; -if(J[a+156>>2]){if((Ab[J[J[e>>2]+96>>2]](e)|0)==4)break Dc;e=J[a+208>>2]}Ab[J[J[e>>2]+380>>2]](e,k,q,j,p)}}Kb(q);Kb(p)}xb=r+32|0;break n;case 2:e=0;f=0;c=xb-32|0;xb=c;J[c+24>>2]=0;J[c+28>>2]=0;j=J[a>>2]-12|0;g=J[j>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+16>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+20>>2]=e;e=0;Ec:{if(d>>>0<=b+3>>>0){f=0;break Ec}f=K[b|0]|K[b+ -1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+24>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[c+28>>2]=e;b=J[j>>2]+a|0;d=J[b+12>>2];Fc:{if(d+3>>>0>=M[b+16>>2])break Fc;q=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+12>>2]=d+4;if(!q)break Fc;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;Gc:{Hc:{if(q>>>0>=536870912){J[195395]=0;ea(1994,c+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break Hc;B()}J[195395]=0;f=q<<3;g=_(1078,f|0)|0;b=J[195395];J[195395]= -0;if((b|0)!=1)break Gc}b=Z()|0;a=J[c+4>>2];if(!a)break a;J[c+8>>2]=a;Kb(a);break a}J[c+4>>2]=g;d=f+g|0;J[c+12>>2]=d;b=0;g=Nb(g,0,f);J[c+8>>2]=d;while(1){k=g+(b<<3)|0;m=J[j>>2]+a|0;e=J[m+12>>2];d=J[m+16>>2];Ic:{if(e+3>>>0>=d>>>0){f=0;break Ic}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[m+12>>2]=e}J[k>>2]=f;f=0;if(d>>>0>e+3>>>0){f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[m+12>>2]=e+4}J[k+4>>2]=f;b=b+1|0;if((q|0)!=(b|0))continue;break}Jc:{b=J[a+216>>2];if(b){J[195395]=0;d=K[b+ -213|0];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(d)break Jc}J[195395]=0;fa(2E3,a|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break Jc;break b}b=J[c+4>>2];if(!b)break Fc;J[c+8>>2]=b;Kb(b)}xb=c+32|0;break n;case 85:e=0;f=0;c=xb-32|0;xb=c;J[c+24>>2]=0;J[c+28>>2]=0;j=J[a>>2]-12|0;g=J[j>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+16>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+ -4|0;J[g+12>>2]=b}J[c+20>>2]=e;e=0;Kc:{if(d>>>0<=b+3>>>0){f=0;break Kc}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+24>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[c+28>>2]=e;b=J[j>>2]+a|0;d=J[b+12>>2];Lc:{if(d+3>>>0>=M[b+16>>2])break Lc;q=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+12>>2]=d+4;if(!q)break Lc;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;Mc:{Nc:{if(q>>>0>=1073741824){J[195395]=0;ea(1996,c+4|0);a=J[195395];J[195395]= -0;if((a|0)==1)break Nc;B()}J[195395]=0;f=q<<2;g=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Mc}b=Z()|0;a=J[c+4>>2];if(!a)break a;J[c+8>>2]=a;Kb(a);break a}J[c+4>>2]=g;d=f+g|0;J[c+12>>2]=d;b=0;g=Nb(g,0,f);J[c+8>>2]=d;while(1){k=g+(b<<2)|0;m=J[j>>2]+a|0;e=J[m+12>>2];d=J[m+16>>2];Oc:{if(e+1>>>0>=d>>>0){f=0;break Oc}f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[m+12>>2]=e}I[k>>1]=f;f=0;if(d>>>0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;J[m+12>>2]=e+2}I[k+2>>1]=f;b=b+1|0;if((q|0)!=(b|0))continue;break}Pc:{b=J[a+216>> -2];if(b){J[195395]=0;d=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(d)break Pc}J[195395]=0;fa(2001,a|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break Pc;break b}b=J[c+4>>2];if(!b)break Lc;J[c+8>>2]=b;Kb(b)}xb=c+32|0;break n;case 3:e=0;f=0;c=xb-32|0;xb=c;J[c+24>>2]=0;J[c+28>>2]=0;j=J[a>>2]-12|0;g=J[j>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+16>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+ -2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+20>>2]=e;e=0;Qc:{if(d>>>0<=b+3>>>0){f=0;break Qc}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+24>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[c+28>>2]=e;b=J[j>>2]+a|0;d=J[b+12>>2];Rc:{if(d+3>>>0>=M[b+16>>2])break Rc;q=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+12>>2]=d+4;if(!q)break Rc;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;Sc:{Tc:{if(q>>>0>=536870912){J[195395]=0;ea(1994, -c+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break Tc;B()}J[195395]=0;f=q<<3;g=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Sc}b=Z()|0;a=J[c+4>>2];if(!a)break a;J[c+8>>2]=a;Kb(a);break a}J[c+4>>2]=g;d=f+g|0;J[c+12>>2]=d;b=0;g=Nb(g,0,f);J[c+8>>2]=d;while(1){k=g+(b<<3)|0;m=J[j>>2]+a|0;e=J[m+12>>2];d=J[m+16>>2];Uc:{if(e+3>>>0>=d>>>0){f=0;break Uc}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[m+12>>2]=e}J[k>>2]=f;f=0;if(d>>>0>e+3>>>0){f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<< -24);J[m+12>>2]=e+4}J[k+4>>2]=f;b=b+1|0;if((q|0)!=(b|0))continue;break}Vc:{b=J[a+216>>2];if(b){J[195395]=0;d=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(d)break Vc}J[195395]=0;fa(2002,a|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break Vc;break b}b=J[c+4>>2];if(!b)break Rc;J[c+8>>2]=b;Kb(b)}xb=c+32|0;break n;case 86:e=0;f=0;c=xb-32|0;xb=c;J[c+24>>2]=0;J[c+28>>2]=0;j=J[a>>2]-12|0;g=J[j>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3| -0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+16>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+20>>2]=e;e=0;Wc:{if(d>>>0<=b+3>>>0){f=0;break Wc}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+24>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[c+28>>2]=e;b=J[j>>2]+a|0;d=J[b+12>>2];Xc:{if(d+3>>>0>=M[b+16>>2])break Xc;q=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+12>>2]=d+4;if(!q)break Xc; -J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;Yc:{Zc:{if(q>>>0>=1073741824){J[195395]=0;ea(1996,c+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break Zc;B()}J[195395]=0;f=q<<2;g=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Yc}b=Z()|0;a=J[c+4>>2];if(!a)break a;J[c+8>>2]=a;Kb(a);break a}J[c+4>>2]=g;d=f+g|0;J[c+12>>2]=d;b=0;g=Nb(g,0,f);J[c+8>>2]=d;while(1){k=g+(b<<2)|0;m=J[j>>2]+a|0;e=J[m+12>>2];d=J[m+16>>2];_c:{if(e+1>>>0>=d>>>0){f=0;break _c}f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[m+12>>2]=e}I[k>>1]=f;f=0;if(d>>> -0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;J[m+12>>2]=e+2}I[k+2>>1]=f;b=b+1|0;if((q|0)!=(b|0))continue;break}$c:{b=J[a+216>>2];if(b){J[195395]=0;d=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(d)break $c}J[195395]=0;fa(2003,a|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break $c;break b}b=J[c+4>>2];if(!b)break Xc;J[c+8>>2]=b;Kb(b)}xb=c+32|0;break n;case 5:f=0;e=0;c=xb-32|0;xb=c;J[c+24>>2]=0;J[c+28>>2]=0;m=J[a>>2]-12|0;g=J[m>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>>0){f=K[b|0]|K[b+ -1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+16>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+20>>2]=e;e=0;ad:{if(d>>>0<=b+3>>>0){f=0;break ad}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+24>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[c+28>>2]=e;b=J[m>>2]+a|0;d=J[b+12>>2];bd:{if(d+3>>>0>=M[b+16>>2]){e=0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;d=0;break bd}p=K[d| -0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+12>>2]=d+4;e=0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;d=0;if(!p)break bd;cd:{dd:{if(p>>>0>=536870912){J[195395]=0;ea(1994,c+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break dd;B()}b=0;J[195395]=0;f=p<<3;e=_(1078,f|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break cd}b=Z()|0;a=J[c+4>>2];if(!a)break a;J[c+8>>2]=a;Kb(a);break a}J[c+4>>2]=e;d=e+f|0;J[c+12>>2]=d;k=Nb(e,0,f);J[c+8>>2]=d;while(1){j=k+(b<<3)|0;u=0;q=J[m>>2]+a|0;f=J[q+12>>2];g=J[q+16>>2];ed:{if(f+3>>> -0>=g>>>0){r=0;break ed}r=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+4|0;J[q+12>>2]=f}J[j>>2]=r;if(g>>>0>f+3>>>0){u=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[q+12>>2]=f+4}J[j+4>>2]=u;b=b+1|0;if((p|0)!=(b|0))continue;break}}fd:{b=J[a+216>>2];if(b){J[195395]=0;d=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(d)break fd;e=J[c+4>>2];d=J[c+8>>2]}if((d|0)!=(e|0)){b=0;while(1){J[195395]=0;$(2004,a|0,(b<<3)+e|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;b=b+1|0;e=J[c+4>>2];if(b>>> -0>2]-e>>3>>>0)continue;break}}b=J[a+208>>2];if(!b)break fd;if(J[a+156>>2]){d=J[J[b>>2]+96>>2];J[195395]=0;d=_(d|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;if((d|0)==4)break fd;b=J[a+208>>2]}d=J[J[b>>2]+400>>2];J[195395]=0;fa(d|0,b|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break fd;break b}b=J[c+4>>2];if(b){J[c+8>>2]=b;Kb(b)}xb=c+32|0;break n;case 88:f=0;e=0;c=xb-32|0;xb=c;J[c+24>>2]=0;J[c+28>>2]=0;m=J[a>>2]-12|0;g=J[m>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>>0){f= -K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+16>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+20>>2]=e;e=0;gd:{if(d>>>0<=b+3>>>0){f=0;break gd}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[c+24>>2]=f;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[c+28>>2]=e;b=J[m>>2]+a|0;d=J[b+12>>2];hd:{if(d+3>>>0>=M[b+16>>2]){e=0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;d=0;break hd}p= -K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+12>>2]=d+4;e=0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;d=0;if(!p)break hd;id:{jd:{if(p>>>0>=1073741824){J[195395]=0;ea(1996,c+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break jd;B()}b=0;J[195395]=0;f=p<<2;e=_(1078,f|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break id}b=Z()|0;a=J[c+4>>2];if(!a)break a;J[c+8>>2]=a;Kb(a);break a}J[c+4>>2]=e;d=e+f|0;J[c+12>>2]=d;k=Nb(e,0,f);J[c+8>>2]=d;while(1){j=k+(b<<2)|0;u=0;q=J[m>>2]+a|0;f=J[q+12>>2];g=J[q+16>>2];kd:{if(f+ -1>>>0>=g>>>0){r=0;break kd}r=K[f|0]|K[f+1|0]<<8;f=f+2|0;J[q+12>>2]=f}I[j>>1]=r;if(g>>>0>f+1>>>0){u=K[f|0]|K[f+1|0]<<8;J[q+12>>2]=f+2}I[j+2>>1]=u;b=b+1|0;if((p|0)!=(b|0))continue;break}}ld:{b=J[a+216>>2];if(b){J[195395]=0;d=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(d)break ld;e=J[c+4>>2];d=J[c+8>>2]}if((d|0)!=(e|0)){b=0;while(1){J[195395]=0;$(2005,a|0,(b<<2)+e|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;b=b+1|0;e=J[c+4>>2];if(b>>>0>2]-e>>2>>>0)continue;break}}b=J[a+208>>2]; -if(!b)break ld;if(J[a+156>>2]){d=J[J[b>>2]+96>>2];J[195395]=0;d=_(d|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;if((d|0)==4)break ld;b=J[a+208>>2]}d=J[J[b>>2]+404>>2];J[195395]=0;fa(d|0,b|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break ld;break b}b=J[c+4>>2];if(b){J[c+8>>2]=b;Kb(b)}xb=c+32|0;break n;case 7:e=0;d=0;f=xb-32|0;xb=f;J[f+24>>2]=0;J[f+28>>2]=0;k=J[a>>2]-12|0;g=J[k>>2]+a|0;b=J[g+12>>2];c=J[g+16>>2];if(b+3>>>0>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+ -4|0;J[g+12>>2]=b}J[f+16>>2]=d;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[f+20>>2]=e;e=0;md:{if(c>>>0<=b+3>>>0){d=0;break md}d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[f+24>>2]=d;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[f+28>>2]=e;d=0;e=J[k>>2];g=e+a|0;c=J[g+12>>2];b=J[g+16>>2];if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[g+12>>2]=c+4;e=J[k>>2];c=e+a|0;b=J[c+ -16>>2];c=J[c+12>>2]}if(c+3>>>0>>0)J[(a+e|0)+12>>2]=c+4;b=0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;nd:{if(!d)break nd;J[195395]=0;$(2006,f+4|0,d|0);c=J[195395];J[195395]=0;if((c|0)==1)break h;while(1){c=0;g=J[J[a>>2]-12>>2]+a|0;e=J[g+12>>2];if(e+3>>>0>2]){c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[g+12>>2]=e+4}k=J[f+4>>2]+P(b,12)|0;e=J[k>>2];g=J[k+4>>2]-e>>3;od:{if(g>>>0>>0){J[195395]=0;$(2007,k|0,c-g|0);c=J[195395];J[195395]=0;if((c|0)!=1)break od;break h}if(c>>>0>=g>>>0)break od; -J[k+4>>2]=e+(c<<3)}b=b+1|0;if((d|0)!=(b|0))continue;break}if(!d)break nd;m=J[a>>2]-12|0;i=0;j=J[f+4>>2];while(1){c=j+P(i,12)|0;b=J[c+4>>2];p=J[c>>2];if((b|0)!=(p|0)){b=b-p>>3;k=b>>>0<=1?1:b;c=0;while(1){q=p+(c<<3)|0;r=J[m>>2]+a|0;b=J[r+12>>2];g=J[r+16>>2];pd:{if(b+3>>>0>=g>>>0){e=0;break pd}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[r+12>>2]=b}J[q>>2]=e;e=0;if(g>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[r+12>>2]=b+4}J[q+4>>2]=e;c=c+1|0;if((k|0)!=(c|0))continue; -break}}i=i+1|0;if((i|0)!=(d|0))continue;break}}b=J[a+216>>2];qd:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break h;if(c)break qd}J[195395]=0;fa(2008,a|0,f+16|0,f+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break h}d=J[f+4>>2];if(d){b=J[f+8>>2];c=d;if((b|0)!=(c|0)){while(1){c=b-12|0;g=J[c>>2];if(g){J[b-8>>2]=g;Kb(g)}b=c;if((d|0)!=(b|0))continue;break}c=J[f+4>>2]}J[f+8>>2]=d;Kb(c)}xb=f+32|0;break n;case 90:e=0;d=0;f=xb-32|0;xb=f;J[f+24>>2]=0;J[f+28>>2]=0;k=J[a>>2]-12|0;g=J[k>> -2]+a|0;b=J[g+12>>2];c=J[g+16>>2];if(b+3>>>0>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[f+16>>2]=d;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[f+20>>2]=e;e=0;rd:{if(c>>>0<=b+3>>>0){d=0;break rd}d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[f+24>>2]=d;if(c>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4}J[f+28>>2]=e;d=0;e=J[k>>2];g=e+a|0;c=J[g+12>>2];b=J[g+16>>2]; -if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[g+12>>2]=c+4;e=J[k>>2];c=e+a|0;b=J[c+16>>2];c=J[c+12>>2]}if(c+3>>>0>>0)J[(a+e|0)+12>>2]=c+4;b=0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;sd:{if(!d)break sd;J[195395]=0;$(2009,f+4|0,d|0);c=J[195395];J[195395]=0;if((c|0)==1)break h;while(1){c=0;g=J[J[a>>2]-12>>2]+a|0;e=J[g+12>>2];if(e+3>>>0>2]){c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[g+12>>2]=e+4}k=J[f+4>>2]+P(b,12)|0;e=J[k>>2];g=J[k+4>>2]-e>>2;td:{if(g>>>0>>0){J[195395]= -0;$(2010,k|0,c-g|0);c=J[195395];J[195395]=0;if((c|0)!=1)break td;break h}if(c>>>0>=g>>>0)break td;J[k+4>>2]=e+(c<<2)}b=b+1|0;if((d|0)!=(b|0))continue;break}if(!d)break sd;m=J[a>>2]-12|0;i=0;j=J[f+4>>2];while(1){c=j+P(i,12)|0;b=J[c+4>>2];p=J[c>>2];if((b|0)!=(p|0)){b=b-p>>2;k=b>>>0<=1?1:b;c=0;while(1){q=p+(c<<2)|0;r=J[m>>2]+a|0;b=J[r+12>>2];g=J[r+16>>2];ud:{if(b+1>>>0>=g>>>0){e=0;break ud}e=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[r+12>>2]=b}I[q>>1]=e;e=0;if(g>>>0>b+1>>>0){e=K[b|0]|K[b+1|0]<<8;J[r+12>>2]=b+2}I[q+ -2>>1]=e;c=c+1|0;if((k|0)!=(c|0))continue;break}}i=i+1|0;if((i|0)!=(d|0))continue;break}}b=J[a+216>>2];vd:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break h;if(c)break vd}J[195395]=0;fa(2011,a|0,f+16|0,f+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break h}d=J[f+4>>2];if(d){b=J[f+8>>2];c=d;if((b|0)!=(c|0)){while(1){c=b-12|0;g=J[c>>2];if(g){J[b-8>>2]=g;Kb(g)}b=c;if((d|0)!=(b|0))continue;break}c=J[f+4>>2]}J[f+8>>2]=d;Kb(c)}xb=f+32|0;break n;case 6:b=0;d=0;f=xb-32|0;xb=f;J[f+24>> -2]=0;J[f+28>>2]=0;g=J[a>>2]-12|0;k=J[g>>2]+a|0;e=J[k+12>>2];c=J[k+16>>2];if(e+3>>>0>>0){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[k+12>>2]=e}J[f+16>>2]=b;if(c>>>0>e+3>>>0){d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[k+12>>2]=e}J[f+20>>2]=d;d=0;wd:{if(c>>>0<=e+3>>>0){b=0;break wd}b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[k+12>>2]=e}J[f+24>>2]=b;if(c>>>0>e+3>>>0){d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[k+12>>2]=e+4}J[f+28>>2]=d;i=0;d=J[g>> -2];c=d+a|0;b=J[c+12>>2];e=J[c+16>>2];if(e>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4;d=J[g>>2];b=d+a|0;e=J[b+16>>2];b=J[b+12>>2]}c=1;if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+d|0)+12>>2]=b+4;c=!c}xd:{b=!i;if(c?b:0)break xd;if((b|c)==1){H[(J[g>>2]+a|0)+33|0]=1;break xd}c=0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;$(2006,f+4|0,i|0);b=J[195395];J[195395]=0;yd:{if((b|0)==1)break yd;while(1){b=0;d=J[J[a>>2]-12>>2]+a|0;g=J[d+12>>2]; -if(g+3>>>0>2]){b=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);J[d+12>>2]=g+4}e=J[f+4>>2]+P(c,12)|0;g=J[e>>2];d=J[e+4>>2]-g>>3;zd:{if(d>>>0>>0){J[195395]=0;$(2007,e|0,b-d|0);b=J[195395];J[195395]=0;if((b|0)!=1)break zd;break yd}if(b>>>0>=d>>>0)break zd;J[e+4>>2]=g+(b<<3)}c=c+1|0;if((i|0)!=(c|0))continue;break}m=J[a>>2]-12|0;e=0;j=J[f+4>>2];while(1){c=j+P(e,12)|0;b=J[c+4>>2];p=J[c>>2];if((b|0)!=(p|0)){b=b-p>>3;k=b>>>0<=1?1:b;b=0;while(1){q=p+(b<<3)|0;r=J[m>>2]+a|0;c=J[r+12>>2];g=J[r+16>> -2];Ad:{if(c+3>>>0>=g>>>0){d=0;break Ad}d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[r+12>>2]=c}J[q>>2]=d;d=0;if(g>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[r+12>>2]=c+4}J[q+4>>2]=d;b=b+1|0;if((k|0)!=(b|0))continue;break}}e=e+1|0;if((i|0)!=(e|0))continue;break}b=J[a+216>>2];Bd:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break yd;if(c)break Bd}J[195395]=0;fa(2012,a|0,f+16|0,f+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break yd}d=J[f+4>>2];if(!d)break xd; -b=d;c=J[f+8>>2];if((b|0)!=(c|0)){while(1){b=c-12|0;g=J[b>>2];if(g){J[c-8>>2]=g;Kb(g)}c=b;if((b|0)!=(d|0))continue;break}b=J[f+4>>2]}J[f+8>>2]=d;Kb(b);break xd}break h}xb=f+32|0;break n;case 89:b=0;d=0;f=xb-32|0;xb=f;J[f+24>>2]=0;J[f+28>>2]=0;g=J[a>>2]-12|0;k=J[g>>2]+a|0;e=J[k+12>>2];c=J[k+16>>2];if(e+3>>>0>>0){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[k+12>>2]=e}J[f+16>>2]=b;if(c>>>0>e+3>>>0){d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[k+12>>2]=e}J[f+20>>2]=d;d= -0;Cd:{if(c>>>0<=e+3>>>0){b=0;break Cd}b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[k+12>>2]=e}J[f+24>>2]=b;if(c>>>0>e+3>>>0){d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[k+12>>2]=e+4}J[f+28>>2]=d;i=0;d=J[g>>2];c=d+a|0;b=J[c+12>>2];e=J[c+16>>2];if(e>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4;d=J[g>>2];b=d+a|0;e=J[b+16>>2];b=J[b+12>>2]}c=1;if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+d|0)+12>>2]=b+4;c=!c}Dd:{b=!i;if(c? -b:0)break Dd;if((b|c)==1){H[(J[g>>2]+a|0)+33|0]=1;break Dd}c=0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;$(2009,f+4|0,i|0);b=J[195395];J[195395]=0;Ed:{if((b|0)==1)break Ed;while(1){b=0;d=J[J[a>>2]-12>>2]+a|0;g=J[d+12>>2];if(g+3>>>0>2]){b=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);J[d+12>>2]=g+4}e=J[f+4>>2]+P(c,12)|0;g=J[e>>2];d=J[e+4>>2]-g>>2;Fd:{if(d>>>0>>0){J[195395]=0;$(2010,e|0,b-d|0);b=J[195395];J[195395]=0;if((b|0)!=1)break Fd;break Ed}if(b>>>0>=d>>>0)break Fd;J[e+4>>2]= -g+(b<<2)}c=c+1|0;if((i|0)!=(c|0))continue;break}m=J[a>>2]-12|0;e=0;j=J[f+4>>2];while(1){c=j+P(e,12)|0;b=J[c+4>>2];p=J[c>>2];if((b|0)!=(p|0)){b=b-p>>2;k=b>>>0<=1?1:b;b=0;while(1){q=p+(b<<2)|0;r=J[m>>2]+a|0;c=J[r+12>>2];g=J[r+16>>2];Gd:{if(c+1>>>0>=g>>>0){d=0;break Gd}d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[r+12>>2]=c}I[q>>1]=d;d=0;if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[r+12>>2]=c+2}I[q+2>>1]=d;b=b+1|0;if((k|0)!=(b|0))continue;break}}e=e+1|0;if((i|0)!=(e|0))continue;break}b=J[a+216>>2];Hd:{if(b){J[195395]= -0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break Ed;if(c)break Hd}J[195395]=0;fa(2013,a|0,f+16|0,f+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break Ed}d=J[f+4>>2];if(!d)break Dd;b=d;c=J[f+8>>2];if((b|0)!=(c|0)){while(1){b=c-12|0;g=J[b>>2];if(g){J[c-8>>2]=g;Kb(g)}c=b;if((b|0)!=(d|0))continue;break}b=J[f+4>>2]}J[f+8>>2]=d;Kb(b);break Dd}break h}xb=f+32|0;break n;case 95:c=0;b=xb-80|0;xb=b;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+76>>2]=0;d=J[J[a>>2]-12>>2];J[195395]=0;ca(2014,(a+ -d|0)+4|0,b+32|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break g;Id:{Jd:{Kd:{Ld:{Md:{if(!J[b+72>>2])break Md;if(!J[b+76>>2])break Ld;c=J[a+216>>2];if(c){J[195395]=0;d=K[c+213|0];c=J[195395];J[195395]=0;if((c|0)==1)break g;c=J[b+72>>2];if(!c|d)break Md}e=0;while(1){J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+8>>2]=0;J[b+12>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[195395]=0;J[b>>2]=0;J[b+4>>2]=1072693248;ia(2015,a|0,J[b+76>>2]+P(e,48)|0,J[b+48>>2],b|0);c=J[195395];J[195395]=0;if((c|0)==1)break g; -c=J[b+72>>2];e=e+1|0;if(c>>>0>e>>>0)continue;break}}e=J[b+76>>2];if(!e)break Id;if(!c)break Jd;break Kd}H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;if(J[b+76>>2])break Kd;break Id}c=0;while(1){f=J[b+76>>2]+P(c,48)|0;d=J[f+40>>2];if(d){Kb(d);J[f+40>>2]=0}d=J[f+44>>2];if(d){Kb(d);J[f+44>>2]=0}c=c+1|0;if(c>>>0>2])continue;break}e=J[b+76>>2];if(!e)break Id}Kb(e)}xb=b+80|0;break n;case 96:c=0;b=xb-80|0;xb=b;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+76>>2]=0;d=J[J[a>>2]-12>>2];J[195395]=0;ca(2016, -(a+d|0)+4|0,b+32|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break g;Nd:{Od:{Pd:{Qd:{Rd:{if(!J[b+72>>2])break Rd;if(!J[b+76>>2])break Qd;c=J[a+216>>2];if(c){J[195395]=0;d=K[c+213|0];c=J[195395];J[195395]=0;if((c|0)==1)break g;c=J[b+72>>2];if(!c|d)break Rd}e=0;while(1){J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+8>>2]=0;J[b+12>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[195395]=0;J[b>>2]=0;J[b+4>>2]=1072693248;ia(2017,a|0,J[b+76>>2]+P(e,48)|0,J[b+48>>2],b|0);c=J[195395];J[195395]=0;if((c|0)==1)break g; -c=J[b+72>>2];e=e+1|0;if(c>>>0>e>>>0)continue;break}}e=J[b+76>>2];if(!e)break Nd;if(!c)break Od;break Pd}H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;if(J[b+76>>2])break Pd;break Nd}c=0;while(1){f=J[b+76>>2]+P(c,48)|0;d=J[f+40>>2];if(d){Kb(d);J[f+40>>2]=0}d=J[f+44>>2];if(d){Kb(d);J[f+44>>2]=0}c=c+1|0;if(c>>>0>2])continue;break}e=J[b+76>>2];if(!e)break Nd}Kb(e)}xb=b+80|0;break n;case 42:J[h+8>>2]=0;J[h+12>>2]=0;d=0;f=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];b=J[f+16>>2];Sd:{if(c+3>>>0>=b>>>0){e=0;break Sd}e=K[c| -0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+4>>2]=d;d=0;Td:{if(b>>>0<=c+3>>>0){e=0;break Td}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+8>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4}J[h+12>>2]=d;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];Ud:{if(!b)break Ud;if(J[a+156>>2]){if((Ab[J[J[b>>2]+96>> -2]](b)|0)==4)break Ud;b=J[a+208>>2]}Ab[J[J[b>>2]+424>>2]](b,h)}b=J[a+156>>2];d=J[h+4>>2];n=+(d|0);c=J[h>>2];l=+(c|0);Vd:{if(J[J[a+120>>2]+688>>2]==1){Wd:{Xd:{if(b){if(le(b,l,n))break Xd;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Wd}b=J[a+208>>2];if(!b)break Xd;Ab[J[J[b>>2]+32>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}d=J[h+12>>2];n=+(d|0);c=J[h>>2];l=+(c|0);b=J[a+156>>2];Yd:{Zd:{if(b){if(ud(b,l,n))break Zd;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Yd}b=J[a+208>>2];if(!b)break Zd;Ab[J[J[b>>2]+ -36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}d=J[h+12>>2];n=+(d|0);c=J[h+8>>2];l=+(c|0);b=J[a+156>>2];_d:{$d:{if(b){if(ud(b,l,n))break $d;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break _d}b=J[a+208>>2];if(!b)break $d;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}d=J[h+4>>2];n=+(d|0);c=J[h+8>>2];l=+(c|0);b=J[a+156>>2];ae:{if(b){if(ud(b,l,n))break ae;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Vd}b=J[a+208>>2];if(!b)break ae;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>> -2]=c;J[b+684>>2]=d;break Vd}be:{ce:{if(b){if(le(b,l,n))break ce;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break be}b=J[a+208>>2];if(!b)break ce;Ab[J[J[b>>2]+32>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}d=J[h+4>>2];n=+(d|0);c=J[h+8>>2];l=+(c|0);b=J[a+156>>2];de:{ee:{if(b){if(ud(b,l,n))break ee;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break de}b=J[a+208>>2];if(!b)break ee;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}d=J[h+12>>2];n=+(d|0);c=J[h+8>>2];l=+(c|0);b=J[a+156>>2];fe:{ge:{if(b){if(ud(b, -l,n))break ge;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break fe}b=J[a+208>>2];if(!b)break ge;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}d=J[h+12>>2];n=+(d|0);c=J[h>>2];l=+(c|0);b=J[a+156>>2];he:{if(b){if(ud(b,l,n))break he;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Vd}b=J[a+208>>2];if(!b)break he;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}b=J[a+156>>2];ie:{if(b){if(Kf(b))break ie;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break ie}b=J[a+208>>2];if(!b)break ie;Ab[J[J[b>> -2]+48>>2]](b)}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+208>>2];Ab[J[J[b>>2]+56>>2]](b)}break n;case 43:c=0;f=0;k=xb-32|0;xb=k;J[k+24>>2]=0;J[k+28>>2]=0;J[k+8>>2]=0;J[k+12>>2]=0;d=J[a>>2]-12|0;e=J[d>>2]+a|0;b=J[e+12>>2];g=J[e+16>>2];if(b+3>>>0>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[k+16>>2]=f;if(g>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[k+20>>2]=c;c=0;je:{if(g>>>0<=b+3>>>0){f=0;break je}f= -K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[k+24>>2]=f;if(g>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4}J[k+28>>2]=c;b=0;g=J[d>>2]+a|0;c=J[g+12>>2];d=J[g+16>>2];ke:{if(c+3>>>0>=d>>>0){f=0;break ke}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[g+12>>2]=c}J[k+8>>2]=f;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[g+12>>2]=c+4}J[k+12>>2]=b;b=J[a+216>>2];if(!(K[b+213|0]?b:0)){j=k+16|0;g=k+8|0;d=J[a+208>>2];le:{if(!d)break le; -if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break le;d=J[a+208>>2]}Ab[J[J[d>>2]+428>>2]](d,j,g)}f=J[j+4>>2];c=(J[j+12>>2]-f|0)/2|0;b=J[g+4>>2];e=(b|0)>(c|0)?c:b;d=J[j>>2];c=(J[j+8>>2]-d|0)/2|0;b=J[g>>2];g=(b|0)>(c|0)?c:b;c=d+g|0;n=+(c|0);b=J[a+156>>2];l=+(f|0);me:{if(J[J[a+120>>2]+688>>2]==1){ne:{oe:{if(b){if(le(b,n,l))break oe;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break ne}b=J[a+208>>2];if(!b)break oe;Ab[J[J[b>>2]+32>>2]](b,n,l)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=f}b=J[j+4>>2];t=+(b+e|0);c= -J[j>>2];o=+(g+c|0);n=+(b|0);l=+(c|0);b=J[a+156>>2];pe:{qe:{re:{if(b){if(Se(b,l,n,o,t,270,-90))break re;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break re}b=J[a+208>>2];if(!b){d=J[j+12>>2]-e|0;break qe}Ab[J[J[b>>2]+44>>2]](b,l,n,o,t,270,-90)}d=J[j+12>>2]-e|0;n=+(d|0);c=J[j>>2];l=+(c|0);b=J[a+156>>2];if(b){if(ud(b,l,n))break qe;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break pe}b=J[a+208>>2];if(!b)break qe;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}b=J[j>>2];t=+(b+g|0);c=J[j+12>>2];o=+(c-e| -0);n=+(c|0);l=+(b|0);b=J[a+156>>2];se:{te:{ue:{if(b){if(Se(b,l,o,t,n,180,-90))break ue;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break ue}b=J[a+208>>2];if(!b){d=J[j+8>>2]-g|0;break te}Ab[J[J[b>>2]+44>>2]](b,l,o,t,n,180,-90)}d=J[j+8>>2]-g|0;n=+(d|0);c=J[j+12>>2];l=+(c|0);b=J[a+156>>2];if(b){if(ud(b,n,l))break te;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break se}b=J[a+208>>2];if(!b)break te;Ab[J[J[b>>2]+36>>2]](b,n,l)}b=J[a+120>>2];J[b+680>>2]=d;J[b+684>>2]=c}b=J[j+12>>2];t=+(b-e|0);c=J[j+8>>2];o=+(c-g|0);n=+(b|0); -l=+(c|0);b=J[a+156>>2];ve:{we:{xe:{if(b){if(Se(b,o,t,l,n,90,-90))break xe;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break xe}b=J[a+208>>2];if(!b){d=e+J[j+4>>2]|0;break we}Ab[J[J[b>>2]+44>>2]](b,o,t,l,n,90,-90)}d=e+J[j+4>>2]|0;n=+(d|0);c=J[j+8>>2];l=+(c|0);b=J[a+156>>2];if(b){if(ud(b,l,n))break we;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break ve}b=J[a+208>>2];if(!b)break we;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}c=J[j+4>>2];t=+(e+c|0);b=J[j+8>>2];o=+(b-g|0);n=+(b|0);l=+(c|0);b=J[a+156>> -2];ye:{ze:{if(b){if(Se(b,o,l,n,t,0,-90))break ze;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break ze}b=J[a+208>>2];if(!b){d=g+J[j>>2]|0;break ye}Ab[J[J[b>>2]+44>>2]](b,o,l,n,t,0,-90)}d=g+J[j>>2]|0;n=+(d|0);c=J[j+4>>2];l=+(c|0);b=J[a+156>>2];if(b){if(ud(b,n,l))break ye;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break me}b=J[a+208>>2];if(!b)break ye;Ab[J[J[b>>2]+36>>2]](b,n,l)}b=J[a+120>>2];J[b+680>>2]=d;J[b+684>>2]=c;break me}Ae:{Be:{if(b){if(le(b,n,l))break Be;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Ae}b=J[a+208>>2]; -if(!b)break Be;Ab[J[J[b>>2]+32>>2]](b,n,l)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=f}d=J[j+8>>2]-g|0;n=+(d|0);c=J[j+4>>2];l=+(c|0);b=J[a+156>>2];Ce:{De:{if(b){if(ud(b,n,l))break De;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Ce}b=J[a+208>>2];if(!b)break De;Ab[J[J[b>>2]+36>>2]](b,n,l)}b=J[a+120>>2];J[b+680>>2]=d;J[b+684>>2]=c}b=J[j+4>>2];t=+(b+e|0);c=J[j+8>>2];o=+(c-g|0);n=+(c|0);l=+(b|0);b=J[a+156>>2];Ee:{Fe:{Ge:{if(b){if(Se(b,o,l,n,t,-90,90))break Ge;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Ge}b=J[a+208>> -2];if(!b){d=J[j+12>>2]-e|0;break Fe}Ab[J[J[b>>2]+44>>2]](b,o,l,n,t,-90,90)}d=J[j+12>>2]-e|0;n=+(d|0);c=J[j+8>>2];l=+(c|0);b=J[a+156>>2];if(b){if(ud(b,l,n))break Fe;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Ee}b=J[a+208>>2];if(!b)break Fe;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}c=J[j+12>>2];t=+(c-e|0);b=J[j+8>>2];o=+(b-g|0);n=+(c|0);l=+(b|0);b=J[a+156>>2];He:{Ie:{Je:{if(b){if(Se(b,o,t,l,n,0,90))break Je;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Je}b=J[a+208>>2];if(!b){d=g+J[j>> -2]|0;break Ie}Ab[J[J[b>>2]+44>>2]](b,o,t,l,n,0,90)}d=g+J[j>>2]|0;n=+(d|0);c=J[j+12>>2];l=+(c|0);b=J[a+156>>2];if(b){if(ud(b,n,l))break Ie;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break He}b=J[a+208>>2];if(!b)break Ie;Ab[J[J[b>>2]+36>>2]](b,n,l)}b=J[a+120>>2];J[b+680>>2]=d;J[b+684>>2]=c}c=J[j>>2];t=+(g+c|0);b=J[j+12>>2];o=+(b-e|0);n=+(b|0);l=+(c|0);b=J[a+156>>2];Ke:{Le:{Me:{if(b){if(Se(b,l,o,t,n,90,90))break Me;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Me}b=J[a+208>>2];if(!b){d=e+J[j+4>>2]|0;break Le}Ab[J[J[b>> -2]+44>>2]](b,l,o,t,n,90,90)}d=e+J[j+4>>2]|0;n=+(d|0);c=J[j>>2];l=+(c|0);b=J[a+156>>2];if(b){if(ud(b,l,n))break Le;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Ke}b=J[a+208>>2];if(!b)break Le;Ab[J[J[b>>2]+36>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}c=J[j+4>>2];t=+(c+e|0);b=J[j>>2];o=+(b+g|0);n=+(c|0);l=+(b|0);b=J[a+156>>2];if(b){if(Se(b,l,n,o,t,180,90))break me;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break me}b=J[a+208>>2];if(!b)break me;Ab[J[J[b>>2]+44>>2]](b,l,n,o,t,180,90)}b=J[a+156>>2];Ne:{if(b){if(Kf(b))break Ne; -H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Ne}b=J[a+208>>2];if(!b)break Ne;Ab[J[J[b>>2]+48>>2]](b)}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+208>>2];Ab[J[J[b>>2]+56>>2]](b)}}xb=k+32|0;break n;case 14:b=0;e=0;k=xb-16|0;xb=k;j=k+4|0;H[j|0]=0;H[j+1|0]=0;H[j+2|0]=0;H[j+3|0]=0;f=J[a>>2]-12|0;g=J[f>>2]+a|0;c=J[g+12>>2];d=J[g+16>>2];if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[g+12>>2]=c}J[k+8>>2]=e;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+ -2|0]<<16|K[c+3|0]<<24);J[g+12>>2]=c+4}J[k+12>>2]=b;c=0;f=J[f>>2]+a|0;b=J[f+12>>2];d=J[f+16>>2];Oe:{if(b>>>0>=d>>>0){e=0;break Oe}e=K[b|0];b=b+1|0;J[f+12>>2]=b}H[j|0]=e;if(b>>>0>>0){c=K[b|0];b=b+1|0;J[f+12>>2]=b}H[j+1|0]=c;c=0;Pe:{if(b>>>0>=d>>>0){e=0;break Pe}e=K[b|0];b=b+1|0;J[f+12>>2]=b}H[j+2|0]=e;if(b>>>0>>0){c=K[b|0];J[f+12>>2]=b+1}H[j+3|0]=c;b=J[a+216>>2];if(!(K[b+213|0]?b:0)){f=k+8|0;g=xb-16|0;xb=g;b=J[a+208>>2];if(b){Ab[J[J[b>>2]+432>>2]](b,f,j);b=J[a+208>>2]}else b=0;H[g+12|0]=K[j+2| -0];H[g+13|0]=K[j+1|0];c=K[j|0];H[g+15|0]=255;H[g+14|0]=c;if(b){d=J[f>>2];n=+(d|0);c=J[f+4>>2];l=+(c|0);Ab[J[J[b>>2]+16>>2]](b,n,l,+(d+1|0)-n,+(c+1|0)-l,g+12|0,1,1)}xb=g+16|0}xb=k+16|0;break n;case 107:J[h+40>>2]=0;J[h+44>>2]=0;J[h+56>>2]=0;J[h+48>>2]=0;J[h+52>>2]=0;b=J[J[a>>2]-12>>2];J[195395]=0;ca(1987,b+A|0,h|0)|0;b=J[195395];J[195395]=0;Qe:{Re:{if((b|0)==1)break Re;b=J[a+216>>2];if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break Re;if(c)break Qe}J[195395]=0;$(1989,a|0,h|0); -b=J[195395];J[195395]=0;if((b|0)!=1)break Qe}a=Z()|0;b=J[h+56>>2];if(b)Kb(b);break d}b=J[h+56>>2];if(!b)break n;Kb(b);break n;case 62:J[h+8>>2]=0;J[h+12>>2]=0;d=0;f=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];b=J[f+16>>2];Se:{if(c+3>>>0>=b>>>0){e=0;break Se}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+4>>2]=d;d=0;Te:{if(b>>>0<=c+3>>>0){e=0;break Te}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16| -K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+8>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4}J[h+12>>2]=d;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];Ue:{if(!b)break Ue;Ab[J[J[b>>2]+440>>2]](b,h);c=J[a+208>>2];if(!c)break Ue;b=J[a+156>>2];if(!b)break Ue;Ui(b,c,1,1,-1);wf(J[a+156>>2]);b=J[a+156>>2];if(!b)break Ue;Kb(qd(b));J[a+156>>2]=0}break n;case 63:J[h+8>>2]=0;J[h+12>>2]=0;d=0;f=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];b=J[f+16>>2];Ve:{if(c+3>>>0>=b>>>0){e= -0;break Ve}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+4>>2]=d;d=0;We:{if(b>>>0<=c+3>>>0){e=0;break We}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[h+8>>2]=e;if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4}J[h+12>>2]=d;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];Xe:{if(!b)break Xe;Ab[J[J[b>>2]+444>>2]](b, -h);c=J[a+208>>2];if(!c)break Xe;b=J[a+156>>2];if(!b)break Xe;Ui(b,c,1,0,-1);wf(J[a+156>>2]);b=J[a+156>>2];if(!b)break Xe;Kb(qd(b));J[a+156>>2]=0}break n;case 73:b=0;f=0;g=0;u=0;m=xb+-64|0;xb=m;J[m+56>>2]=0;J[m+60>>2]=0;k=J[a>>2]-12|0;e=J[k>>2]+a|0;c=J[e+12>>2];d=J[e+16>>2];if(c+3>>>0>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[e+12>>2]=c}J[m+48>>2]=f;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[e+12>>2]=c}J[m+52>>2]=b;b=0;Ye:{if(d>>>0<=c+3>>>0){f= -0;break Ye}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[e+12>>2]=c}J[m+56>>2]=f;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[e+12>>2]=c+4}J[m+60>>2]=b;Ze:{_e:{c=J[k>>2]+a|0;d=J[c+12>>2];$e:{if(d+3>>>0>=M[c+16>>2])break $e;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4;if(b>>>0<33)break $e;J[m+40>>2]=0;J[m+44>>2]=0;J[m+32>>2]=0;J[m+36>>2]=0;f=0;e=J[k>>2]+a|0;c=J[e+12>>2];d=J[e+16>>2];if(c+3>>>0>>0){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<< -24);c=c+4|0;J[e+12>>2]=c}J[m+16>>2]=g;af:{if(d>>>0<=c+3>>>0){b=c;break af}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b=c+4|0;J[e+12>>2]=b}J[m+20>>2]=f;i=0;bf:{if(d>>>0<=b+3>>>0){c=0;break bf}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+24>>2]=c;if(d>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+28>>2]=i;i=0;if(d>>>0>b+3>>>0){u=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+32>>2]=u;if(d>>>0>b+3>>> -0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+36>>2]=i;i=0;cf:{if(d>>>0<=b+3>>>0){u=0;break cf}u=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+40>>2]=u;if(d>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4}J[m+44>>2]=i;if(!c|((g|0)!=32|(f|0)!=1))break $e;J[m+12>>2]=0;J[m+4>>2]=0;J[m+8>>2]=0;df:{ef:{if(c>>>0>=268435456){J[195395]=0;ea(2018,m+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break ef;B()}J[195395]=0;f=c<<4; -c=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break df}c=Z()|0;a=J[m+4>>2];if(!a)break _e;J[m+8>>2]=a;Kb(a);break _e}J[m+4>>2]=c;d=c+f|0;J[m+12>>2]=d;Nb(c,0,f);J[m+8>>2]=d;while(1){j=J[k>>2]+a|0;b=J[j+12>>2];e=J[j+16>>2];ff:{if(b+3>>>0>=e>>>0){f=0;break ff}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b}J[c>>2]=f;f=0;gf:{if(e>>>0<=b+3>>>0){g=0;break gf}g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b}J[c+4>>2]=g;if(e>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<< -8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b}J[c+8>>2]=f;f=0;if(e>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[j+12>>2]=b+4}J[c+12>>2]=f;c=c+16|0;if((d|0)!=(c|0))continue;break}hf:{b=J[a+216>>2];jf:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break jf;if(c)break hf}J[195395]=0;ia(2019,a|0,m+48|0,m+16|0,m+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break hf}c=Z()|0;a=J[m+4>>2];if(!a)break _e;J[m+8>>2]=a;Kb(a);ba(c|0);B()}b=J[m+4>>2];if(!b)break $e;J[m+8>> -2]=b;Kb(b)}xb=m- -64|0;break Ze}ba(c|0);B()}break n;case 70:b=0;f=0;g=0;u=0;r=0;m=xb+-64|0;xb=m;J[m+56>>2]=0;J[m+60>>2]=0;k=J[a>>2]-12|0;e=J[k>>2]+a|0;c=J[e+12>>2];d=J[e+16>>2];if(c+3>>>0>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[e+12>>2]=c}J[m+48>>2]=f;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[e+12>>2]=c}J[m+52>>2]=b;b=0;kf:{if(d>>>0<=c+3>>>0){f=0;break kf}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[e+12>>2]=c}J[m+56>>2]=f; -if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[e+12>>2]=c+4}J[m+60>>2]=b;b=J[k>>2];e=b+a|0;d=J[e+12>>2];c=J[e+16>>2];lf:{if(c>>>0<=d+3>>>0){f=0;break lf}f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;b=J[k>>2];d=b+a|0;c=J[d+16>>2];d=J[d+12>>2]}if(d+3>>>0>>0){r=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+b|0)+12>>2]=d+4}mf:{nf:{of:{if(f>>>0<33)break of;J[m+40>>2]=0;J[m+44>>2]=0;J[m+32>>2]=0;J[m+36>>2]=0;f=0;e=J[k>>2]+a|0;c=J[e+12>>2];d=J[e+16>>2];if(c+ -3>>>0>>0){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[e+12>>2]=c}J[m+16>>2]=g;pf:{if(d>>>0<=c+3>>>0){b=c;break pf}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b=c+4|0;J[e+12>>2]=b}J[m+20>>2]=f;i=0;qf:{if(d>>>0<=b+3>>>0){c=0;break qf}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+24>>2]=c;if(d>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+28>>2]=i;i=0;if(d>>>0>b+3>>>0){u=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3| -0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+32>>2]=u;if(d>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+36>>2]=i;i=0;rf:{if(d>>>0<=b+3>>>0){u=0;break rf}u=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b}J[m+40>>2]=u;if(d>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4}J[m+44>>2]=i;if(!c|((g|0)!=32|(f|0)!=1))break of;J[m+12>>2]=0;J[m+4>>2]=0;J[m+8>>2]=0;sf:{tf:{if(c>>>0>=268435456){J[195395]=0;ea(2018,m+4|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break tf;B()}J[195395]=0;f=c<<4;d=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break sf}d=Z()|0;a=J[m+4>>2];if(!a)break nf;J[m+8>>2]=a;Kb(a);break nf}J[m+4>>2]=d;c=d+f|0;J[m+12>>2]=c;Nb(d,0,f);J[m+8>>2]=c;while(1){j=J[k>>2]+a|0;b=J[j+12>>2];e=J[j+16>>2];uf:{if(b+3>>>0>=e>>>0){f=0;break uf}f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b}J[d>>2]=f;f=0;vf:{if(e>>>0<=b+3>>>0){g=0;break vf}g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>> -2]=b}J[d+4>>2]=g;if(e>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b}J[d+8>>2]=f;f=0;if(e>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[j+12>>2]=b+4}J[d+12>>2]=f;d=d+16|0;if((c|0)!=(d|0))continue;break}wf:{b=J[a+216>>2];xf:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break xf;if(c)break wf}J[195395]=0;ma(2020,a|0,m+48|0,r|0,m+16|0,m+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break wf}d=Z()|0;a=J[m+4>>2];if(!a)break nf;J[m+ -8>>2]=a;Kb(a);ba(d|0);B()}b=J[m+4>>2];if(!b)break of;J[m+8>>2]=b;Kb(b)}xb=m- -64|0;break mf}ba(d|0);B()}break n;case 71:b=0;d=0;s=0;g=0;u=0;r=0;m=0;e=0;p=xb+-64|0;xb=p;J[p+56>>2]=0;J[p+60>>2]=0;q=J[a>>2]-12|0;f=J[q>>2]+a|0;i=J[f+12>>2];c=J[f+16>>2];if(i+3>>>0>>0){b=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+4|0;J[f+12>>2]=i}J[p+48>>2]=b;if(c>>>0>i+3>>>0){d=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+4|0;J[f+12>>2]=i}J[p+52>>2]=d;d=0;yf:{if(c>>>0<=i+3>>>0){b=0;break yf}b=K[i|0]|K[i+ -1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+4|0;J[f+12>>2]=i}J[p+56>>2]=b;if(c>>>0>i+3>>>0){d=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);J[f+12>>2]=i+4}J[p+60>>2]=d;zf:{Af:{c=J[q>>2]+a|0;d=J[c+12>>2];Bf:{if(d+3>>>0>=M[c+16>>2])break Bf;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4;if(b>>>0<33)break Bf;d=0;i=J[q>>2];b=i+a|0;c=J[b+12>>2];f=J[b+16>>2];if(f>>>0>c+3>>>0){m=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;i=J[q>>2];b=i+a|0;f=J[b+16>>2];c=J[b+12>>2]}if(c+3>>> -0>>0){r=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+i|0)+12>>2]=c+4;i=J[q>>2];b=i+a|0;f=J[b+16>>2];c=J[b+12>>2]}if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+i|0)+12>>2]=c+4;i=J[q>>2];b=i+a|0;f=J[b+16>>2];c=J[b+12>>2]}J[p+40>>2]=0;J[p+44>>2]=0;J[p+32>>2]=0;J[p+36>>2]=0;k=a+i|0;Cf:{if(c+3>>>0>=f>>>0){b=c;break Cf}d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b=c+4|0;J[k+12>>2]=b}J[p+16>>2]=d;c=0;if(b+3>>>0>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<< -24);b=b+4|0;J[k+12>>2]=b}J[p+20>>2]=g;if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[p+24>>2]=c;if(b+3>>>0>>0){u=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[p+28>>2]=u;if(b+3>>>0>>0){s=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[p+32>>2]=s;s=0;Df:{if(b+3>>>0>=f>>>0){u=0;break Df}u=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[p+36>>2]=u;if(b+3>>>0>>0){s=K[b|0]|K[b+1|0]<< -8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[p+40>>2]=s;s=0;if(b+3>>>0>>0){s=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[k+12>>2]=b+4}J[p+44>>2]=s;if(!c|((d|0)!=32|(g|0)!=1))break Bf;J[p+12>>2]=0;J[p+4>>2]=0;J[p+8>>2]=0;Ef:{Ff:{if(c>>>0>=268435456){J[195395]=0;ea(2018,p+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break Ff;B()}J[195395]=0;d=c<<4;f=_(1078,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Ef}f=Z()|0;a=J[p+4>>2];if(!a)break Af;J[p+8>>2]=a;Kb(a);break Af}J[p+4>>2]=f;c=d+f| -0;J[p+12>>2]=c;Nb(f,0,d);J[p+8>>2]=c;while(1){j=J[q>>2]+a|0;d=J[j+12>>2];k=J[j+16>>2];Gf:{if(d+3>>>0>=k>>>0){b=0;break Gf}b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[j+12>>2]=d}J[f>>2]=b;b=0;Hf:{if(k>>>0<=d+3>>>0){g=0;break Hf}g=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[j+12>>2]=d}J[f+4>>2]=g;if(k>>>0>d+3>>>0){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[j+12>>2]=d}J[f+8>>2]=b;b=0;if(k>>>0>d+3>>>0){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[j+12>> -2]=d+4}J[f+12>>2]=b;f=f+16|0;if((c|0)!=(f|0))continue;break}If:{b=J[a+216>>2];Jf:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break Jf;if(c)break If}J[195395]=0;oa(2021,a|0,p+48|0,m|0,r|0,e|0,p+16|0,p+4|0);b=J[195395];J[195395]=0;if((b|0)!=1)break If}f=Z()|0;a=J[p+4>>2];if(!a)break Af;J[p+8>>2]=a;Kb(a);ba(f|0);B()}b=J[p+4>>2];if(!b)break Bf;J[p+8>>2]=b;Kb(b)}xb=p- -64|0;break zf}ba(f|0);B()}break n;case 117:m=0;p=xb-32|0;xb=p;q=J[a>>2]-12|0;e=J[q>>2];j=e+a|0;f=J[j+12>>2];i= -J[j+16>>2];g=i>>>0>f+3>>>0;b=f+(g<<2)|0;d=b+3>>>0>>0;b=b+(d<<2)|0;c=b+3>>>0>>0;b=(c<<2)+b|0;k=b+3|0;Kf:{if(!(c|(d|g)))if(i>>>0<=k>>>0)break Kf;J[j+12>>2]=b+((i>>>0>k>>>0)<<2);e=J[q>>2];b=e+a|0;i=J[b+16>>2];f=J[b+12>>2]}g=0;Lf:{if(f+3>>>0>=i>>>0){u=0;break Lf}u=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[(a+e|0)+12>>2]=f+4;e=J[q>>2];b=e+a|0;i=J[b+16>>2];f=J[b+12>>2]}if(f+3>>>0>>0){g=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[(a+e|0)+12>>2]=f+4;e=J[q>>2];b=e+a|0;i=J[b+16>>2];f=J[b+ -12>>2]}if(f+3>>>0>>0){m=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[(a+e|0)+12>>2]=f+4}Mf:{Nf:{Of:{if(!g|u-5>>>0<4294967294)break Of;c=u<<4;b=Pb(c);J[p+20>>2]=b;d=b+c|0;J[p+28>>2]=d;e=0;j=Nb(b,0,c);J[p+24>>2]=d;k=J[q>>2]+a|0;b=J[k+12>>2];f=J[k+16>>2];Pf:{if(b+3>>>0>=f>>>0){c=0;break Pf}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[j>>2]=c;if(f>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[j+4>>2]=e;e=0;Qf:{if(f>>>0<=b+1>>>0){c= -0;break Qf}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+8>>1]=c;if(f>>>0>b+1>>>0){e=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+10>>1]=e;e=0;Rf:{if(f>>>0<=b+1>>>0){c=0;break Rf}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+12>>1]=c;if(f>>>0>b+1>>>0){e=K[b|0]|K[b+1|0]<<8;J[k+12>>2]=b+2}I[j+14>>1]=e;Sf:{if((d|0)==(j+16|0))break Sf;e=0;k=J[q>>2]+a|0;b=J[k+12>>2];f=J[k+16>>2];Tf:{if(b+3>>>0>=f>>>0){c=0;break Tf}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[j+16>>2]=c;if(f>>> -0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[j+20>>2]=e;e=0;Uf:{if(f>>>0<=b+1>>>0){c=0;break Uf}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+24>>1]=c;if(f>>>0>b+1>>>0){e=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+26>>1]=e;e=0;Vf:{if(f>>>0<=b+1>>>0){c=0;break Vf}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+28>>1]=c;if(f>>>0>b+1>>>0){e=K[b|0]|K[b+1|0]<<8;J[k+12>>2]=b+2}I[j+30>>1]=e;if((d|0)==(j+32|0))break Sf;e=0;k=J[q>>2]+a|0;b=J[k+12>>2];f=J[k+16>>2];Wf:{if(b+ -3>>>0>=f>>>0){c=0;break Wf}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[j+32>>2]=c;if(f>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b}J[j+36>>2]=e;e=0;Xf:{if(f>>>0<=b+1>>>0){c=0;break Xf}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+40>>1]=c;if(f>>>0>b+1>>>0){e=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+42>>1]=e;e=0;Yf:{if(f>>>0<=b+1>>>0){c=0;break Yf}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[k+12>>2]=b}I[j+44>>1]=c;if(f>>>0>b+1>>>0){e=K[b|0]| -K[b+1|0]<<8;J[k+12>>2]=b+2}I[j+46>>1]=e;if((d|0)==(j+48|0))break Sf;b=0;f=J[q>>2]+a|0;c=J[f+12>>2];d=J[f+16>>2];Zf:{if(c+3>>>0>=d>>>0){e=0;break Zf}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[j+48>>2]=e;if(d>>>0>c+3>>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c}J[j+52>>2]=b;b=0;_f:{if(d>>>0<=c+1>>>0){e=0;break _f}e=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[f+12>>2]=c}I[j+56>>1]=e;if(d>>>0>c+1>>>0){b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[f+12>>2]=c}I[j+58>>1]=b;b= -0;$f:{if(d>>>0<=c+1>>>0){e=0;break $f}e=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[f+12>>2]=c}I[j+60>>1]=e;if(d>>>0>c+1>>>0){b=K[c|0]|K[c+1|0]<<8;J[f+12>>2]=c+2}I[j+62>>1]=b}J[p+16>>2]=0;J[p+8>>2]=0;J[p+12>>2]=0;if(g>>>0>=536870912){J[195395]=0;ea(2022,p+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break Nf;B()}J[195395]=0;c=g<<3;i=_(1078,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Nf;J[p+8>>2]=i;j=c+i|0;J[p+16>>2]=j;Nb(i,0,c);J[p+12>>2]=j;k=a+12|0;while(1){b=J[q>>2];d=b+a|0;f=J[d+12>>2];c=J[d+16>>2];ag:{if(c>>> -0<=f+3>>>0){e=0;break ag}e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4;b=J[q>>2];d=b+a|0;c=J[d+16>>2];f=J[d+12>>2]}J[i>>2]=e;e=0;if(f+3>>>0>>0){e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[b+k>>2]=f+4}J[i+4>>2]=e;i=i+8|0;if((j|0)!=(i|0))continue;break}if((u|0)==4){b=J[q>>2]+a|0;c=J[b+12>>2]+(g<<2)|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b}b=J[a+216>>2];bg:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break Nf;if(c)break bg}J[195395]=0;ia(2023,a| -0,p+20|0,p+8|0,m|0);b=J[195395];J[195395]=0;if((b|0)==1)break Nf}b=J[p+8>>2];if(b){J[p+12>>2]=b;Kb(b)}b=J[p+20>>2];if(!b)break Of;J[p+24>>2]=b;Kb(b)}xb=p+32|0;break Mf}a=Z()|0;b=J[p+8>>2];if(b){J[p+12>>2]=b;Kb(b)}b=J[p+20>>2];if(b){J[p+24>>2]=b;Kb(b)}ba(a|0);B()}break n;case 38:c=0;k=xb-16|0;xb=k;b=Pb(44);J[195395]=0;j=dh(b);d=J[195395];J[195395]=0;cg:{if((d|0)!=1){f=J[a>>2]-12|0;e=J[f>>2];g=e+a|0;b=J[g+12>>2];d=J[g+16>>2];if(d>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>> -2]=b+4;e=J[f>>2];b=e+a|0;d=J[b+16>>2];b=J[b+12>>2]}J[k+12>>2]=c;f=a+e|0;e=0;dg:{if(b+3>>>0>=d>>>0){c=0;break dg}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b}J[j+8>>2]=c;if(b>>>0>>0){e=K[b|0];b=b+1|0;J[f+12>>2]=b}H[j+12|0]=e;e=0;eg:{if(b>>>0>=d>>>0){c=0;break eg}c=K[b|0];b=b+1|0;J[f+12>>2]=b}H[j+13|0]=c;if(b>>>0>>0){e=K[b|0];b=b+1|0;J[f+12>>2]=b}H[j+14|0]=e;e=0;fg:{if(b>>>0>=d>>>0){c=0;break fg}c=K[b|0];b=b+1|0;J[f+12>>2]=b}H[j+15|0]=c;if(b+3>>>0>>0){e=K[b|0]|K[b+ -1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4}J[j+16>>2]=e;b=J[a+216>>2];if(!(K[b+213|0]?b:0)){c=k+12|0;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+152>>2]](b,c,j);ef(a+124|0,J[c>>2],j)}xb=k+16|0;break cg}break f}break n;case 93:e=0;d=0;k=xb-32|0;xb=k;c=J[a>>2]-12|0;i=J[c>>2];g=i+a|0;b=J[g+12>>2];f=J[g+16>>2];if(f>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;i=J[c>>2];b=i+a|0;f=J[b+16>>2];b=J[b+12>>2]}J[k+28>>2]=d;c=a+i|0;if(b+3>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<< -16|K[b+3|0]<<24);b=b+4|0;J[c+12>>2]=b}J[k+8>>2]=e;e=0;gg:{if(b+3>>>0>=f>>>0){i=0;break gg}i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[c+12>>2]=b}J[k+12>>2]=i;if(b+3>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[c+12>>2]=b}J[k+16>>2]=e;e=0;hg:{if(b+3>>>0>=f>>>0){i=0;break hg}i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[c+12>>2]=b}J[k+20>>2]=i;if(b+3>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4}J[k+24>>2]=e;b=J[a+216>> -2];if(!(K[b+213|0]?b:0)){d=k+28|0;c=k+8|0;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+272>>2]](b,d,c,(J[J[a>>2]-12>>2]+a|0)+4|0);$A(a,c,J[d>>2])}xb=k+32|0;break n;case 92:e=0;d=0;k=xb-32|0;xb=k;c=J[a>>2]-12|0;i=J[c>>2];g=i+a|0;b=J[g+12>>2];f=J[g+16>>2];if(f>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;i=J[c>>2];b=i+a|0;f=J[b+16>>2];b=J[b+12>>2]}J[k+28>>2]=d;c=a+i|0;if(b+3>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[c+12>>2]=b}J[k+8>>2]=e;e=0;ig:{if(b+ -3>>>0>=f>>>0){i=0;break ig}i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[c+12>>2]=b}J[k+12>>2]=i;if(b+3>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[c+12>>2]=b}J[k+16>>2]=e;e=0;jg:{if(b+3>>>0>=f>>>0){i=0;break jg}i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[c+12>>2]=b}J[k+20>>2]=i;if(b+3>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4}J[k+24>>2]=e;b=J[a+216>>2];if(!(K[b+213|0]?b:0)){d=k+28|0;c=k+8|0;b=J[a+208>>2];if(b)Ab[J[J[b>> -2]+268>>2]](b,d,c,(J[J[a>>2]-12>>2]+a|0)+4|0);$A(a,c,J[d>>2])}xb=k+32|0;break n;case 48:c=0;k=xb-16|0;xb=k;e=Pb(12);J[195395]=0;J[e+8>>2]=0;I[e+4>>1]=0;J[e>>2]=415752;b=e;d=J[195395];J[195395]=0;kg:{if((d|0)!=1){d=J[a>>2]-12|0;e=J[d>>2];f=e+a|0;g=J[f+12>>2];if(g+3>>>0>2]){c=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);J[f+12>>2]=g+4;e=J[d>>2]}J[k+12>>2]=c;g=0;e=a+e|0;c=J[e+16>>2];d=J[e+12>>2];if(c>>>0>d+1>>>0){d=d+2|0;J[e+12>>2]=d}lg:{mg:{if(c>>>0<=d+1>>>0){I[b+4>>1]=0;break mg}c=K[d|0]| -K[d+1|0]<<8;J[e+12>>2]=d+2;I[b+4>>1]=c;if(!c)break mg;S=b,T=Pb(c<<2),J[S+8>>2]=T;while(1){f=J[b+8>>2]+(g<<2)|0;d=0;c=J[e+12>>2];if(c>>>0>2]){d=K[c|0];J[e+12>>2]=c+1}H[f|0]=d;d=0;s=0;c=J[e+12>>2];if(c>>>0>2]){s=K[c|0];J[e+12>>2]=c+1}H[f+1|0]=s;c=J[e+12>>2];if(c>>>0>2]){d=K[c|0];J[e+12>>2]=c+1}H[f+2|0]=d;d=0;c=J[e+12>>2];if(c>>>0>2]){d=K[c|0];J[e+12>>2]=c+1}H[f+3|0]=d;g=g+1|0;if(g>>>0>1])continue;break}break lg}J[b+8>>2]=0}c=J[a+216>>2];if(!(K[c+213|0]?c:0)){d= -k+12|0;c=J[a+208>>2];if(c)Ab[J[J[c>>2]+300>>2]](c,d,b);ef(a+124|0,J[d>>2],b)}xb=k+16|0;break kg}break e}break n;case 37:b=0;k=xb-16|0;xb=k;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[k+12>>2]=b;b=Pb(28);J[195395]=0;j=Vj(b);c=J[195395];J[195395]=0;ng:{if((c|0)!=1){e=0;b=0;g=J[a>>2]-12|0;c=J[g>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[j+8>>2]=b;c=J[g>> -2];d=c+a|0;b=J[d+12>>2];f=J[d+16>>2];if(f>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[d+12>>2]=b+4;c=J[g>>2];b=c+a|0;f=J[b+16>>2];b=J[b+12>>2]}J[k+8>>2]=e;if(b+3>>>0>>0){J[(a+c|0)+12>>2]=b+4;c=J[g>>2];b=c+a|0;f=J[b+16>>2];b=J[b+12>>2]}d=a+c|0;c=0;og:{if(b>>>0>=f>>>0){e=0;break og}e=K[b|0];b=b+1|0;J[d+12>>2]=b}H[j+16|0]=e;if(b>>>0>>0){c=K[b|0];b=b+1|0;J[d+12>>2]=b}H[j+17|0]=c;c=0;pg:{if(b>>>0>=f>>>0){e=0;break pg}e=K[b|0];b=b+1|0;J[d+12>>2]=b}H[j+18|0]=e;if(b>>>0>>0){c= -K[b|0];J[d+12>>2]=b+1}H[j+19|0]=c;b=J[a+216>>2];if(!(K[b+213|0]?b:0)){d=k+12|0;c=k+8|0;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+188>>2]](b,d,c,j);J[j+12>>2]=J[c>>2];ef(a+124|0,J[d>>2],j)}xb=k+16|0;break ng}break f}break n;case 81:c=0;m=xb-16|0;xb=m;b=J[a+116>>2];e=Pb(372);J[195395]=0;H[e+368|0]=b-4>>>0<321;J[e+4>>2]=415608;J[e>>2]=415552;J[e+364>>2]=0;b=e;d=J[195395];J[195395]=0;qg:{if((d|0)!=1){d=J[a>>2]-12|0;e=J[d>>2];f=e+a|0;g=J[f+12>>2];if(g+3>>>0>2]){c=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<< -24);J[f+12>>2]=g+4;e=J[d>>2]}J[m+12>>2]=c;r=(a+e|0)+4|0;i=0;u=0;e=0;q=b+8|0;rg:{if(K[b+368|0]){cB(r,q);j=J[r+12>>2];d=J[r+8>>2];f=j-d|0;if(f+1>>>0<3)break rg;k=b+100|0;c=(f|0)/2|0;c=c>>>0>=64?64:c;g=c&1;sg:{if((f&-2)==2)break sg;f=c&126;while(1){tg:{if(j>>>0<=d+1>>>0){c=0;break tg}c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[r+8>>2]=d}I[k+(i<<1)>>1]=c;c=0;if(j>>>0>d+1>>>0){c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[r+8>>2]=d}I[k+((i|1)<<1)>>1]=c;i=i+2|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}if(g){c=0;if(j>>>0>d+1>>>0){c= -K[d|0]|K[d+1|0]<<8;d=d+2|0;J[r+8>>2]=d}I[k+(i<<1)>>1]=c}f=j-d|0;if(f+1>>>0<3)break rg;k=b+228|0;c=(f|0)/2|0;c=c>>>0>=32?32:c;g=c&1;ug:{if((f&-2)==2){i=0;break ug}f=c&62;i=0;e=0;while(1){vg:{if(j>>>0<=d+1>>>0){c=0;break vg}c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[r+8>>2]=d}I[k+(i<<1)>>1]=c;c=0;if(j>>>0>d+1>>>0){c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[r+8>>2]=d}I[k+((i|1)<<1)>>1]=c;i=i+2|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}if(g){c=0;if(j>>>0>d+1>>>0){c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[r+8>>2]=d}I[k+(i<<1)>>1]=c}f=j- -d|0;if(f+1>>>0<3)break rg;k=b+292|0;c=(f|0)/2|0;c=c>>>0>=18?18:c;g=c&1;i=0;if((f&-2)!=2){f=c&30;e=0;while(1){wg:{if(j>>>0<=d+1>>>0){c=0;break wg}c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[r+8>>2]=d}I[k+(i<<1)>>1]=c;c=0;if(j>>>0>d+1>>>0){c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[r+8>>2]=d}I[k+((i|1)<<1)>>1]=c;i=i+2|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}if(!g)break rg;c=0;if(j>>>0>d+1>>>0){c=K[d|0]|K[d+1|0]<<8;J[r+8>>2]=d+2}I[k+(i<<1)>>1]=c;break rg}cB(r,q);p=J[r+12>>2];c=J[r+8>>2];f=p-c|0;d=(f|0)/2|0;xg:{if(f+1>>>0< -3)break xg;j=q+92|0;d=d>>>0>=64?64:d;k=d&1;yg:{if((f&-2)==2){g=0;break yg}f=d&126;g=0;while(1){zg:{if(p>>>0<=c+1>>>0){d=0;break zg}d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[r+8>>2]=c}I[j+(g<<1)>>1]=d;d=0;if(p>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[r+8>>2]=c}I[j+((g|1)<<1)>>1]=d;g=g+2|0;u=u+2|0;if((f|0)!=(u|0))continue;break}}if(k){d=0;if(p>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[r+8>>2]=c}I[j+(g<<1)>>1]=d}f=p-c|0;if(f+1>>>0<3)break xg;j=q+220|0;d=(f|0)/2|0;d=d>>>0>=32?32:d;k=d&1;Ag:{if((f&-2)==2){g= -0;break Ag}f=d&62;g=0;u=0;while(1){Bg:{if(p>>>0<=c+1>>>0){d=0;break Bg}d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[r+8>>2]=c}I[j+(g<<1)>>1]=d;d=0;if(p>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[r+8>>2]=c}I[j+((g|1)<<1)>>1]=d;g=g+2|0;u=u+2|0;if((f|0)!=(u|0))continue;break}}if(k){d=0;if(p>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[r+8>>2]=c}I[j+(g<<1)>>1]=d}f=p-c|0;if(f+1>>>0<3)break xg;j=q+284|0;d=(f|0)/2|0;d=d>>>0>=32?32:d;k=d&1;g=0;if((f&-2)!=2){f=d&62;u=0;while(1){Cg:{if(p>>>0<=c+1>>>0){d=0;break Cg}d=K[c| -0]|K[c+1|0]<<8;c=c+2|0;J[r+8>>2]=c}I[j+(g<<1)>>1]=d;d=0;if(p>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[r+8>>2]=c}I[j+((g|1)<<1)>>1]=d;g=g+2|0;u=u+2|0;if((f|0)!=(u|0))continue;break}}if(!k)break xg;d=0;if(p>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[r+8>>2]=c+2}I[j+(g<<1)>>1]=d}q=J[r+12>>2];d=J[r+8>>2];if(q>>>0>d+3>>>0){i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[r+8>>2]=d}J[b+356>>2]=i;if(q>>>0<=d+3>>>0){J[b+360>>2]=0;J[b+364>>2]=0;break rg}p=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24); -d=d+4|0;J[r+8>>2]=d;J[b+364>>2]=0;J[b+360>>2]=p;if((i|0)!=134248036|p-17>>>0<4294967280)break rg;j=Pb(p<<2);J[b+364>>2]=j;i=0;if((p|0)!=1){k=p&-2;while(1){g=i<<2;f=g+j|0;Dg:{if(q>>>0<=d+3>>>0){c=0;break Dg}c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[r+8>>2]=d}J[f>>2]=c;c=0;if(q>>>0>d+3>>>0){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[r+8>>2]=d}J[j+(g|4)>>2]=c;i=i+2|0;e=e+2|0;if((k|0)!=(e|0))continue;break}}if(!(p&1))break rg;c=j+(i<<2)|0;i=0;if(q>>>0>d+3>>>0){i=K[d|0]| -K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[r+8>>2]=d+4}J[c>>2]=i}c=J[a+216>>2];if(!(K[c+213|0]?c:0)){d=m+12|0;c=J[a+208>>2];if(c)Ab[J[J[c>>2]+164>>2]](c,d,b);ef(a+124|0,J[d>>2],b)}xb=m+16|0;break qg}break e}break n;case 94:f=0;y=xb-16|0;xb=y;g=J[a>>2]-12|0;e=J[g>>2];d=e+a|0;c=J[d+12>>2];b=J[d+16>>2];if(b>>>0>c+3>>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[d+12>>2]=c+4;e=J[g>>2];c=e+a|0;b=J[c+16>>2];c=J[c+12>>2]}J[y+12>>2]=f;c=c+4|0;J[(a+e|0)+12>>2]=b>>>0>c>>>0?c:b;b=J[g>>2]+a|0;c=J[b+12>> -2]+4|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;b=J[g>>2]+a|0;c=J[b+12>>2]+4|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;b=J[g>>2]+a|0;c=J[b+12>>2]+4|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;k=J[a+116>>2];b=Pb(28);J[195395]=0;i=Vj(b);c=J[195395];J[195395]=0;if((c|0)==1)break f;g=Pb(8);J[y>>2]=g;b=g+8|0;J[y+8>>2]=b;J[g>>2]=0;J[g+4>>2]=0;J[y+4>>2]=b;c=0;b=0;s=J[a>>2]-12|0;d=J[s>>2]+a|0;f=J[d+12>>2];if(f+3>>>0>2]){b=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[i+ -8>>2]=b;b=J[s>>2]+a|0;d=J[b+12>>2];if(d+3>>>0>2]){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+12>>2]=d+4}J[i+12>>2]=c;b=0;c=0;d=J[s>>2]+a|0;f=J[d+12>>2];if(f+3>>>0>2]){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[g>>2]=c;d=J[s>>2]+a|0;e=J[d+12>>2];c=J[d+16>>2];if(e>>>0>>0){b=K[e|0];e=e+1|0;J[d+12>>2]=e}H[i+16|0]=b;b=0;Eg:{if(c>>>0<=e>>>0){f=0;break Eg}f=K[e|0];e=e+1|0;J[d+12>>2]=e}H[i+17|0]=f;if(c>>>0>e>>>0){b=K[e|0];e=e+1|0;J[d+12>>2]=e}H[i+18|0]= -b;b=0;f=0;if(c>>>0>e>>>0){f=K[e|0];J[d+12>>2]=e+1}H[i+19|0]=f;c=J[s>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[g+4>>2]=b;Fg:{Gg:{Hg:{Ig:{b=J[s>>2]+a|0;c=J[b+12>>2];if(c+3>>>0>=M[b+16>>2]){J[i+20>>2]=0;u=k-44|0;break Ig}r=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;J[i+20>>2]=r;u=k-44|0;if(!r)break Ig;c=0;J[195395]=0;j=r<<2;q=_(1109,(r>>>0>1073741823?-1:j)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Gg;J[i+24>> -2]=q;if((r|0)!=1){k=r&-2;f=0;while(1){e=c<<2;d=q+e|0;b=0;m=J[s>>2]+a|0;p=J[m+12>>2];if(p+3>>>0>2]){b=K[p|0]|K[p+1|0]<<8|(K[p+2|0]<<16|K[p+3|0]<<24);J[m+12>>2]=p+4}J[d>>2]=b;b=0;d=J[s>>2]+a|0;m=J[d+12>>2];if(m+3>>>0>2]){b=K[m|0]|K[m+1|0]<<8|(K[m+2|0]<<16|K[m+3|0]<<24);J[d+12>>2]=m+4}J[q+(e|4)>>2]=b;c=c+2|0;f=f+2|0;if((k|0)!=(f|0))continue;break}}u=u-j|0;if(!(r&1))break Hg;b=q+(c<<2)|0;c=0;d=J[s>>2]+a|0;f=J[d+12>>2];if(f+3>>>0>2]){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<< -24);J[d+12>>2]=f+4}J[b>>2]=c;break Hg}J[i+24>>2]=0}b=J[s>>2]+a|0;c=J[b+12>>2]+u|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;b=J[a+216>>2];Jg:{Kg:{if(b){J[195395]=0;c=K[b+213|0];b=J[195395];J[195395]=0;if((b|0)==1)break Gg;if(c)break Kg}J[195395]=0;ia(2028,a|0,y+12|0,i|0,y|0);b=J[195395];J[195395]=0;if((b|0)==1)break Gg;g=J[y>>2];if(!g)break Jg}J[y+4>>2]=g;Kb(g)}xb=y+16|0;break Fg}a=Z()|0;b=J[y>>2];if(b){J[y+4>>2]=b;Kb(b)}ba(a|0);B()}break n;case 36:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>> -0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+160>>2]](b,h);mA(a+124|0,J[h>>2]);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 39:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+176>>2]](b,h);jA(a+124|0,J[h>>2]);b=J[a+ -208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 47:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+304>>2]](b,h);e=a+124|0;g=J[h>>2];if((g|0)==-2147483633)J[J[e>>2]+404>>2]=0;c=e+24|0;d=J[c>>2];Lg:{if(!d)break Lg;b=c;while(1){f=g>>>0>M[d+16>>2];b=f?b:d;d=J[(f?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|g>>>0>2])break Lg;b=J[b+ -20>>2];if((Ab[J[J[b>>2]+8>>2]](b)|0)!=4)break Lg;J[J[e>>2]+404>>2]=b}break n;case 58:b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+156>>2];if(b)Kb(qd(b));b=J[a+208>>2];if(b)Ab[J[J[b>>2]+196>>2]](b);b=Pb(12);J[195395]=0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;c=J[195395];J[195395]=0;Mg:{if((c|0)!=1){J[a+156>>2]=b;b=J[a+120>>2];le(J[a+156>>2],+J[b+680>>2],+J[b+684>>2]);break Mg}break f}break n;case 59:b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+200>>2]](b);break n;case 60:b=J[a+ -216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+204>>2]](b);b=J[a+156>>2];Ng:{if(!b)break Ng;if(Kf(b))break Ng;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1}break n;case 64:b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+208>>2]](b);break n;case 65:b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+212>>2]](b);break n;case 67:b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+216>>2]](b);b=J[a+156>>2];if(b){Kb(qd(b));J[a+156>> -2]=0}break n;case 26:c=0;d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];b=J[d+16>>2];Og:{if(f+3>>>0>=b>>>0){e=0;break Og}e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+4|0;J[d+12>>2]=f}J[h>>2]=e;if(b>>>0>f+3>>>0){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[h+4>>2]=c;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+220>>2]](b,h);d=J[h+4>>2];n=+(d|0);c=J[h>>2];l=+(c|0);b=J[a+156>>2];Pg:{Qg:{if(b){if(le(b,l,n))break Qg;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Pg}b= -J[a+208>>2];if(!b)break Qg;Ab[J[J[b>>2]+32>>2]](b,l,n)}b=J[a+120>>2];J[b+680>>2]=c;J[b+684>>2]=d}break n;case 56:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+224>>2]](b,h);J[J[a+120>>2]+688>>2]=J[h>>2];break n;case 32:b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+136>>2]](b);lA(a+124|0,-1);b=J[a+208>>2];if(b)Ab[J[J[b>> -2]+84>>2]](b);break n;case 33:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+140>>2]](b,h);b=J[h>>2];Rg:{if((b|0)>=0){H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break Rg}kA(a+124|0,b);J[a+120>>2]=J[a+124>>2];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b)}break n;case 23:H[h|0]=0;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=0;e=0;d=J[J[a>>2]-12>>2]+a|0;c=J[d+12>>2]; -b=J[d+16>>2];Sg:{if(c>>>0>=b>>>0){i=0;break Sg}i=K[c|0];c=c+1|0;J[d+12>>2]=c}H[h|0]=i;if(b>>>0>c>>>0){e=K[c|0];c=c+1|0;J[d+12>>2]=c}H[h+1|0]=e;e=0;Tg:{if(b>>>0<=c>>>0){i=0;break Tg}i=K[c|0];c=c+1|0;J[d+12>>2]=c}H[h+2|0]=i;if(b>>>0>c>>>0){e=K[c|0];J[d+12>>2]=c+1}H[h+3|0]=e;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+156>>2]](b,h);b=J[a+120>>2];H[b+600|0]=K[h|0];H[b+601|0]=K[h+1|0];H[b+602|0]=K[h+2|0];H[b+603|0]=K[h+3|0];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n; -case 21:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+168>>2]](b,h);J[J[a+120>>2]+608>>2]=J[h>>2];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 17:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+ -208>>2];if(b)Ab[J[J[b>>2]+172>>2]](b,h);J[J[a+120>>2]+612>>2]=J[h>>2];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 57:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+180>>2]](b,h);J[J[a+120>>2]+616>>2]=J[h>>2];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 18:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b= -K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+192>>2]](b,h);J[J[a+120>>2]+620>>2]=J[h>>2];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 16:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+232>>2]](b,h);g=J[a+120>>2];b=J[h>>2];J[g+16>> -2]=b;Ug:{Vg:switch(b-1|0){case 0:J[g+640>>2]=0;J[g+644>>2]=1072693248;J[g+632>>2]=0;J[g+636>>2]=1072693248;break Ug;case 1:J[g+640>>2]=-1860025207;J[g+644>>2]=1070736456;J[g+632>>2]=-1860025207;J[g+636>>2]=1070736456;break Ug;case 2:J[g+640>>2]=-2117046872;J[g+644>>2]=1067255514;J[g+632>>2]=-2117046872;J[g+636>>2]=1067255514;break Ug;case 3:J[g+640>>2]=1889785610;J[g+644>>2]=1072106045;J[g+632>>2]=1889785610;J[g+636>>2]=1072106045;break Ug;case 4:J[g+640>>2]=-1924145348;J[g+644>>2]=1068658327;J[g+ -632>>2]=-1924145348;J[g+636>>2]=1068658327;break Ug;case 5:J[g+640>>2]=-1717986918;J[g+644>>2]=1068079513;J[g+632>>2]=-1717986918;J[g+636>>2]=1068079513;break Ug;case 6:case 7:break Vg;default:break Ug}f=J[g+656>>2];if((f|0)<2)break Ug;d=J[g+672>>2];if((d|0)<2)break Ug;Wg:switch(b-7|0){case 0:l=+(d|0)/+(f|0);O[g+632>>3]=l;O[g+640>>3]=l;break Ug;case 1:break Wg;default:break Ug}c=J[g+660>>2];if(!c)break Ug;b=J[g+676>>2];if(!b)break Ug;O[g+640>>3]=+(b|0)/+(c|0);O[g+632>>3]=+(d|0)/+(f|0)}Yf(g);break n; -case 9:c=0;d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];b=J[d+16>>2];Xg:{if(f+3>>>0>=b>>>0){e=0;break Xg}e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+4|0;J[d+12>>2]=f}J[h>>2]=e;if(b>>>0>f+3>>>0){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[h+4>>2]=c;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+236>>2]](b,h);g=J[a+120>>2];J[g+648>>2]=J[h>>2];J[g+652>>2]=J[h+4>>2];f=J[g+656>>2];Yg:{if((f|0)<2)break Yg;d=J[g+672>>2];if((d|0)<2)break Yg;Zg:switch(J[g+16>> -2]-7|0){case 0:l=+(d|0)/+(f|0);O[g+632>>3]=l;O[g+640>>3]=l;break Yg;case 1:break Zg;default:break Yg}c=J[g+660>>2];if(!c)break Yg;b=J[g+676>>2];if(!b)break Yg;O[g+640>>3]=+(b|0)/+(c|0);O[g+632>>3]=+(d|0)/+(f|0)}Yf(g);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 8:c=0;d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];b=J[d+16>>2];_g:{if(f+3>>>0>=b>>>0){e=0;break _g}e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+4|0;J[d+12>>2]=f}J[h>>2]=e;if(b>>>0>f+3>>>0){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+ -3|0]<<24);J[d+12>>2]=f+4}J[h+4>>2]=c;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+240>>2]](b,h);c=J[a+120>>2];b=J[c+16>>2];$g:{if((b|0)!=7&(b|0)!=8)break $g;iA(c,h);b=J[a+208>>2];if(!b)break $g;Ab[J[J[b>>2]+84>>2]](b)}break n;case 31:d=0;i=0;s=0;k=J[a>>2]-12|0;c=J[k>>2];f=c+a|0;b=J[f+12>>2];e=J[f+16>>2];if(e>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4;c=J[k>>2];b=c+a|0;e=J[b+16>>2];b=J[b+12>>2]}g=0;if(b+3>>>0>>0){d=K[b|0]|K[b+1|0]<<8| -(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+c|0)+12>>2]=b+4;c=J[k>>2];b=c+a|0;e=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){s=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+c|0)+12>>2]=b+4;c=J[k>>2];b=c+a|0;e=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+c|0)+12>>2]=b+4}b=J[a+216>>2];if(!(K[b+213|0]?b:0)){b=J[a+208>>2];if(b)Ab[J[J[b>>2]+244>>2]](b,i,d,s,g);b=J[a+120>>2];c=J[b+16>>2];ah:{if((c|0)!=7&(c|0)!=8)break ah;n=+(s|0)/+(g|0);l=+J[b+656>>2]*(+(i|0)/ -+(d|0));bh:{if(R(l)<2147483648){d=~~l;break bh}d=-2147483648}J[b+656>>2]=d;l=+J[b+660>>2]*n;ch:{if(R(l)<2147483648){c=~~l;break ch}c=-2147483648}J[b+660>>2]=c;e=J[b+16>>2];dh:{if((e|0)!=7)break dh;g=J[b+672>>2];n=+(g|0);t=R(n/+(d|0));f=J[b+676>>2];l=+(f|0);o=R(l/+(c|0));if(t>o){f=g>>31|1;l=V(o*n/t+.5);eh:{if(R(l)<2147483648){g=~~l;break eh}g=-2147483648}J[b+672>>2]=g?g:f;break dh}f=f>>31|1;l=V(t*l/o+.5);fh:{if(R(l)<2147483648){g=~~l;break fh}g=-2147483648}J[b+676>>2]=g?g:f}gh:{if((d|0)<2)break gh; -g=J[b+672>>2];if((g|0)<2)break gh;hh:switch(e-7|0){case 0:l=+(g|0)/+(d|0);O[b+632>>3]=l;O[b+640>>3]=l;break gh;case 1:break hh;default:break gh}if(!c)break gh;f=J[b+676>>2];if(!f)break gh;O[b+640>>3]=+(f|0)/+(c|0);O[b+632>>3]=+(g|0)/+(d|0)}Yf(b);b=J[a+208>>2];if(!b)break ah;Ab[J[J[b>>2]+84>>2]](b)}}break n;case 11:c=0;d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];b=J[d+16>>2];ih:{if(f+3>>>0>=b>>>0){e=0;break ih}e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+4|0;J[d+12>>2]=f}J[h>>2]=e;if(b>>>0>f+3>>>0){c= -K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[h+4>>2]=c;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+248>>2]](b,h);g=J[a+120>>2];J[g+664>>2]=J[h>>2];J[g+668>>2]=J[h+4>>2];f=J[g+656>>2];jh:{if((f|0)<2)break jh;d=J[g+672>>2];if((d|0)<2)break jh;kh:switch(J[g+16>>2]-7|0){case 0:l=+(d|0)/+(f|0);O[g+632>>3]=l;O[g+640>>3]=l;break jh;case 1:break kh;default:break jh}c=J[g+660>>2];if(!c)break jh;b=J[g+676>>2];if(!b)break jh;O[g+640>>3]=+(b|0)/+(c|0);O[g+632>>3]= -+(d|0)/+(f|0)}Yf(g);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 10:c=0;d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];b=J[d+16>>2];lh:{if(f+3>>>0>=b>>>0){e=0;break lh}e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+4|0;J[d+12>>2]=f}J[h>>2]=e;if(b>>>0>f+3>>>0){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[h+4>>2]=c;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+252>>2]](b,h);c=J[a+120>>2];b=J[c+16>>2];mh:{if((b|0)!=7&(b|0)!=8)break mh;hA(c,h);b=J[a+ -208>>2];if(!b)break mh;Ab[J[J[b>>2]+84>>2]](b)}break n;case 30:d=0;i=0;s=0;k=J[a>>2]-12|0;c=J[k>>2];f=c+a|0;b=J[f+12>>2];e=J[f+16>>2];if(e>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4;c=J[k>>2];b=c+a|0;e=J[b+16>>2];b=J[b+12>>2]}g=0;if(b+3>>>0>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+c|0)+12>>2]=b+4;c=J[k>>2];b=c+a|0;e=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){s=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+c|0)+12>>2]=b+4;c=J[k>>2];b=c+a|0; -e=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+c|0)+12>>2]=b+4}b=J[a+216>>2];if(!(K[b+213|0]?b:0)){b=J[a+208>>2];if(b)Ab[J[J[b>>2]+256>>2]](b,i,d,s,g);b=J[a+120>>2];c=J[b+16>>2];nh:{if((c|0)!=7&(c|0)!=8)break nh;n=+(s|0)/+(g|0);l=+J[b+672>>2]*(+(i|0)/+(d|0));oh:{if(R(l)<2147483648){c=~~l;break oh}c=-2147483648}J[b+672>>2]=c;l=+J[b+676>>2]*n;ph:{if(R(l)<2147483648){d=~~l;break ph}d=-2147483648}J[b+676>>2]=d;g=J[b+16>>2];qh:{if((g|0)!=7){f=J[b+656>> -2];break qh}n=+(c|0);f=J[b+656>>2];t=R(n/+(f|0));l=+(d|0);o=R(l/+J[b+660>>2]);if(t>o){c=c>>31|1;l=V(o*n/t+.5);rh:{if(R(l)<2147483648){e=~~l;break rh}e=-2147483648}c=e?e:c;J[b+672>>2]=c;break qh}d=d>>31|1;l=V(t*l/o+.5);sh:{if(R(l)<2147483648){e=~~l;break sh}e=-2147483648}d=e?e:d;J[b+676>>2]=d}th:{if((f|0)<2|(c|0)<2)break th;uh:switch(g-7|0){case 0:l=+(c|0)/+(f|0);O[b+632>>3]=l;O[b+640>>3]=l;break th;case 1:break uh;default:break th}g=J[b+660>>2];if(!g|!d)break th;O[b+640>>3]=+(d|0)/+(g|0);O[b+632>> -3]=+(c|0)/+(f|0)}Yf(b);b=J[a+208>>2];if(!b)break nh;Ab[J[J[b>>2]+84>>2]](b)}}break n;case 24:H[h|0]=0;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=0;e=0;d=J[J[a>>2]-12>>2]+a|0;c=J[d+12>>2];b=J[d+16>>2];vh:{if(c>>>0>=b>>>0){i=0;break vh}i=K[c|0];c=c+1|0;J[d+12>>2]=c}H[h|0]=i;if(b>>>0>c>>>0){e=K[c|0];c=c+1|0;J[d+12>>2]=c}H[h+1|0]=e;e=0;wh:{if(b>>>0<=c>>>0){i=0;break wh}i=K[c|0];c=c+1|0;J[d+12>>2]=c}H[h+2|0]=i;if(b>>>0>c>>>0){e=K[c|0];J[d+12>>2]=c+1}H[h+3|0]=e;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2]; -if(b)Ab[J[J[b>>2]+280>>2]](b,h);b=J[a+120>>2];H[b+604|0]=K[h|0];H[b+605|0]=K[h+1|0];H[b+606|0]=K[h+2|0];H[b+607|0]=K[h+3|0];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 20:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+260>>2]](b,h);J[J[a+120>>2]+624>>2]=J[h>>2];break n;case 97:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>> -0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+264>>2]](b,h);break n;case 19:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+296>>2]](b,h);J[J[a+120>>2]+628>>2]=J[h>>2];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break n;case 51:b= -J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+308>>2]](b);break n;case 114:b=0;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}J[h>>2]=b;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+316>>2]](b,h);break n;case 12:c=0;d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];b=J[d+16>>2];xh:{if(f+3>>>0>=b>>>0){e=0;break xh}e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+4|0;J[d+12>>2]=f}J[h>> -2]=e;if(b>>>0>f+3>>>0){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[h+4>>2]=c;b=J[a+216>>2];if(K[b+213|0]?b:0)break n;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+320>>2]](b,h);break n;case 34:c=xb-48|0;xb=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;g=J[J[a>>2]-12>>2]+a|0;b=J[g+12>>2];f=J[g+16>>2];if(b+3>>>0>=f>>>0)o=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3| -0]<<24);b=b+4|0;J[g+12>>2]=b;o=+(x(2,d),C())}O[c>>3]=o;if(f>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;o=+(x(2,d),C())}else o=0;O[c+8>>3]=o;if(f>>>0<=b+3>>>0)o=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;o=+(x(2,d),C())}O[c+16>>3]=o;if(f>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;o=+(x(2,d),C())}else o=0;O[c+24>>3]=o;if(f>>>0<=b+3>>>0)o=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<< -24);b=b+4|0;J[g+12>>2]=b;o=+(x(2,d),C())}O[c+32>>3]=o;if(f>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;o=+(x(2,d),C())}else o=0;O[c+40>>3]=o;b=J[a+216>>2];if(!(K[b+213|0]?b:0)){b=J[a+208>>2];if(b)Ab[J[J[b>>2]+148>>2]](b,c);Qh(J[a+120>>2],c,4);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b)}xb=c+48|0;break n;case 35:g=xb+-64|0;xb=g;c=g+16|0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+ -20>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;f=J[a>>2]-12|0;k=J[f>>2]+a|0;b=J[k+12>>2];e=J[k+16>>2];if(b+3>>>0>=e>>>0)o=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b;o=+(x(2,d),C())}O[c>>3]=o;if(e>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b;o=+(x(2,d),C())}else o=0;O[c+8>>3]=o;if(e>>>0<=b+3>>>0)o=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b;o=+(x(2,d),C())}O[c+16>>3]=o;if(e>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<< -8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b;o=+(x(2,d),C())}else o=0;O[c+24>>3]=o;if(e>>>0<=b+3>>>0)o=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[k+12>>2]=b;o=+(x(2,d),C())}O[c+32>>3]=o;if(e>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[k+12>>2]=b+4;o=+(x(2,d),C())}else o=0;O[c+40>>3]=o;b=0;d=J[f>>2]+a|0;f=J[d+12>>2];if(f+3>>>0>2]){b=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}J[g+12>>2]=b;b=J[a+216>>2];if(!(K[b+213|0]?b:0)){d= -g+12|0;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+144>>2]](b,c,d);Qh(J[a+120>>2],c,J[d>>2]);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b)}xb=g- -64|0;break n;case 69:i=xb-464|0;xb=i;e=J[a>>2];f=e-12|0;b=J[f>>2]+a|0;c=J[b+12>>2]+4|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;b=J[f>>2]+a|0;c=J[b+12>>2];H[i+463|0]=4;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[i+456|0]=0;J[i+452>>2]=d;g=b;c=c+4|0;b=J[b+16>>2];J[g+12>>2]=b>>>0>c>>>0?c:b;yh:{zh:{Ah:{Bh:{Ch:{Dh:{Eh:{Fh:{if((d|0)!=1128875079){if((d|0)!=726027589)break yh; -d=J[a+208>>2];if(!d)break yh;c=J[a+216>>2];if(!c){J[195395]=0;f=_(1078,280)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Fh;J[195395]=0;c=aa(2029,f|0,d|0,a+4|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Eh;J[a+216>>2]=c;e=J[a>>2];J[(J[J[c>>2]-12>>2]+c|0)+24>>2]=J[(J[e-12>>2]+a|0)+24>>2]}d=J[(J[e-12>>2]+a|0)+12>>2];b=J[a+116>>2];J[195395]=0;ol(c,d,b-8|0);b=J[195395];J[195395]=0;if((b|0)==1)break Fh;c=J[a+208>>2];b=J[J[c>>2]+104>>2];J[195395]=0;ea(b|0,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break Fh; -c=J[a+216>>2];b=J[J[c>>2]+16>>2];J[195395]=0;ea(b|0,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break Fh;c=J[a+208>>2];b=J[J[c>>2]+104>>2];J[195395]=0;ea(b|0,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break Fh;b=J[J[a>>2]-12>>2]+a|0;c=(J[b+12>>2]+J[a+116>>2]|0)-8|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;break yh}c=J[f>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>=M[c+16>>2])break yh;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4;if((b|0)!=-2147483647)break yh;b=J[f>>2]+a|0;c=J[b+12>>2]+12|0;d= -b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;b=J[f>>2]+a|0;c=J[b+12>>2];if(c+3>>>0>=M[b+16>>2])break yh;q=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;if(!q)break yh;J[195395]=0;s=_(1796,i+176|0)|0;b=J[195395];J[195395]=0;Gh:{if((b|0)!=1){b=J[a>>2]-12|0;J[s+24>>2]=J[(J[b>>2]+a|0)+24>>2];b=J[(J[b>>2]+a|0)+12>>2];J[195395]=0;J[s+4>>2]=b;J[s+12>>2]=b;b=b+q|0;J[s+16>>2]=b;J[s+8>>2]=b;b=J[195395];J[195395]=0;if((b|0)==1)break Ah;J[195395]=0;ea(2032,s|0);b=J[195395];J[195395]=0;if((b|0)== -1)break Ah;if(!K[s+33|0])break Gh;ve(s);break yh}a=Z()|0;break zh}c=J[a+208>>2];if(!c){J[195395]=0;ea(2033,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)break Ch;break Ah}b=J[J[c>>2]+96>>2];J[195395]=0;c=_(b|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Ah;Hh:{if((c|0)==2){b=J[a+208>>2];J[195395]=0;c=J[b+4>>2];b=J[195395];J[195395]=0;Ih:{Jh:{if((b|0)==1)break Jh;J[195395]=0;c=aa(2035,i+104|0,s|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Jh;J[195395]=0;$(1802,s|0,c|0);b=J[195395];J[195395]= -0;if((b|0)==1)break Ih;J[195395]=0;ea(2036,s|0);b=J[195395];J[195395]=0;if((b|0)==1)break Ih;J[195395]=0;ea(2033,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break Ih;J[c>>2]=388672;b=J[c+68>>2];if(!b)break Ch;Kb(b);break Ch}a=Z()|0;ve(s);break zh}a=Z()|0;J[c>>2]=388672;b=J[c+68>>2];if(!b)break Hh;Kb(b);ve(s);break zh}c=J[a+208>>2];if(!c)break Ch;b=J[J[c>>2]+96>>2];J[195395]=0;c=_(b|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Ah;if((c|0)!=4)break Ch;J[195395]=0;ia(2037,s|0,4,0,0);b=J[195395];J[195395]= -0;if((b|0)==1)break Ah;b=J[a+208>>2];J[195395]=0;r=J[b+84>>2];b=J[195395];J[195395]=0;if((b|0)!=1){J[195395]=0;p=_(2039,s|0)|0;b=J[195395];J[195395]=0;Kh:{Lh:{Mh:{Nh:{Oh:{Ph:{Qh:{Rh:{Sh:{Th:{Uh:{Vh:{Wh:{Xh:{Yh:{Zh:{_h:{$h:{ai:{bi:{if((b|0)!=1){b=J[J[a>>2]+36>>2];J[195395]=0;c=_(b|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bi;m=J[c+4>>2];j=J[c+12>>2];k=J[p+4>>2];e=J[p+12>>2];g=J[c>>2];f=J[c+8>>2];d=J[p>>2];c=J[p+8>>2];J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Bh;n=R(+(j-m|0)/+(e- -k|0));l=R(+(f-g|0)/+(c-d|0));ci:{if(R(1-l)<=2.220446049250313E-16){e=0;J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Bh;if(R(1-n)<=2.220446049250313E-16)break ci}J[195395]=0;c=ca(2040,i+104|0,395940)|0;b=J[195395];J[195395]=0;if((b|0)==1)break ai;J[195395]=0;fa(1950,r|0,c|0,1);b=J[195395];J[195395]=0;if((b|0)==1)break $h;if(H[c+11|0]<0)Kb(J[c>>2]);J[195395]=0;d=ca(2040,i+92|0,396136)|0;b=J[195395];J[195395]=0;if((b|0)==1)break _h;J[195395]=0;c=i+20|0;da(1863,c|0,+l,-1);b=J[195395];J[195395]= -0;if((b|0)==1)break Zh;J[195395]=0;c=aa(1954,c|0,0,396420)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Yh;J[i+40>>2]=J[c+8>>2];b=J[c+4>>2];J[i+32>>2]=J[c>>2];J[i+36>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,i+32|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break Xh;J[i+56>>2]=J[i+40>>2];J[i+40>>2]=0;b=J[i+36>>2];J[i+48>>2]=J[i+32>>2];J[i+52>>2]=b;J[i+32>>2]=0;J[i+36>>2]=0;J[195395]=0;c=i+8|0;da(1863,c|0,+n,-1);b=J[195395];J[195395]=0;if((b|0)==1)break Wh;J[195395]=0;g=c;c=K[i+19|0]; -b=c<<24>>24<0;c=aa(1864,i+48|0,(b?J[i+8>>2]:g)|0,(b?J[i+12>>2]:c)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Vh;J[i+72>>2]=J[c+8>>2];b=J[c+4>>2];J[i+64>>2]=J[c>>2];J[i+68>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,i- -64|0,41);b=J[195395];J[195395]=0;if((b|0)==1)break Uh;J[i+88>>2]=J[i+72>>2];J[i+72>>2]=0;b=J[i+68>>2];J[i+80>>2]=J[i+64>>2];J[i+84>>2]=b;J[i+64>>2]=0;J[i+68>>2]=0;J[195395]=0;fa(1951,r|0,d|0,i+80|0);b=J[195395];J[195395]=0;if((b|0)==1)break Th;if(H[i+91|0]<0)Kb(J[i+ -80>>2]);if(H[i+75|0]<0)Kb(J[i+64>>2]);if(H[i+19|0]<0)Kb(J[i+8>>2]);if(H[i+59|0]<0)Kb(J[i+48>>2]);if(H[i+43|0]<0)Kb(J[i+32>>2]);if(H[i+31|0]<0)Kb(J[i+20>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);J[195395]=0;c=ca(2040,i+80|0,395940)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Mh;J[195395]=0;ia(1953,r|0,c|0,1,0);b=J[195395];J[195395]=0;if((b|0)==1)break Lh;if(H[c+11|0]<0)Kb(J[c>>2]);e=1}J[195395]=0;c=J[s+248>>2];b=J[195395];J[195395]=0;if((b|0)==1)break Bh;J[195395]=0;$(2042,c+8|0,r|0);b=J[195395];J[195395]=0; -if((b|0)==1)break Bh;J[195395]=0;ea(2036,s|0);b=J[195395];J[195395]=0;if((b|0)==1)break Bh;if(e)break Kh;break Dh}a=Z()|0;ve(s);break zh}a=Z()|0;ve(s);break zh}a=Z()|0;ve(s);break zh}a=Z()|0;if(H[c+11|0]>=0)break Hh;Kb(J[c>>2]);ve(s);break zh}a=Z()|0;ve(s);break zh}a=Z()|0;break Nh}a=Z()|0;break Oh}a=Z()|0;break Ph}a=Z()|0;break Qh}a=Z()|0;break Rh}a=Z()|0;break Sh}a=Z()|0;if(H[i+91|0]>=0)break Sh;Kb(J[i+80>>2])}if(H[i+75|0]>=0)break Rh;Kb(J[i+64>>2])}if(H[i+19|0]>=0)break Qh;Kb(J[i+8>>2])}if(H[i+ -59|0]>=0)break Ph;Kb(J[i+48>>2])}if(H[i+43|0]>=0)break Oh;Kb(J[i+32>>2])}if(H[i+31|0]>=0)break Nh;Kb(J[i+20>>2])}if(H[d+11|0]>=0)break Hh;Kb(J[d>>2]);ve(s);break zh}a=Z()|0;ve(s);break zh}a=Z()|0;if(H[c+11|0]>=0)break Hh;Kb(J[c>>2]);ve(s);break zh}J[195395]=0;c=ca(2040,i- -64|0,395940)|0;b=J[195395];J[195395]=0;di:{if((b|0)!=1){J[195395]=0;ia(1953,r|0,c|0,0,0);b=J[195395];J[195395]=0;if((b|0)==1)break di;if(H[c+11|0]>=0)break Dh;Kb(J[c>>2]);break Dh}a=Z()|0;ve(s);break zh}a=Z()|0;if(H[c+11|0]>=0)break Hh; -Kb(J[c>>2]);ve(s);break zh}a=Z()|0}ve(s);break zh}a=Z()|0;break zh}a=Z()|0;Kb(f);break zh}J[195395]=0;ea(2033,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break Bh}b=J[J[a>>2]-12>>2]+a|0;c=q+J[b+12>>2]|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;ve(s);break yh}a=Z()|0;ve(s);break zh}a=Z()|0;ve(s)}if(H[i+463|0]<0)Kb(J[i+452>>2]);break d}if(H[i+463|0]<0)Kb(J[i+452>>2]);xb=i+464|0;break n;default:break o}d=J[a+208>>2];if(d){c=J[a>>2]-12|0;b=J[c>>2]+a|0;J[b+12>>2]=J[b+12>>2]-8;Ab[J[J[d>>2]+452>>2]](d,(J[c>> -2]+a|0)+4|0)}b=J[J[a>>2]-12>>2]+a|0;c=J[b+12>>2]+J[a+116>>2]|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b}if(K[a+212|0])break l;c=J[a>>2];d=c-12|0;b=J[d>>2]+a|0;f=J[a+116>>2]+(J[b+4>>2]+(F-Q|0)|0)|0;g=b;b=J[b+16>>2];J[g+12>>2]=b>>>0>f>>>0?f:b;b=J[d>>2]+a|0;J[b+16>>2]=J[b+8>>2];G=G+1|0}f=J[c-12>>2];if(!K[N+f|0])continue}break}b=J[a>>2];d=J[b-12>>2]+a|0;if(!K[d+33|0]){c=J[d+8>>2];J[d+12>>2]=J[d+4>>2];J[d+16>>2]=c}if(!K[a+212|0]){Uq(a);b=J[a>>2]}Ab[J[b+32>>2]](a)}xb=h+160|0;return}a=Z()|0;b=J[c+88>> -2];if(b){Kb(b);J[c+88>>2]=0}b=J[c+92>>2];if(b){Kb(b);J[c+92>>2]=0}break d}a=Z()|0;b=J[e+4>>2];if(!b)break d;J[e+8>>2]=b;Kb(b);break d}a=Z()|0;aB(f+4|0);break d}a=Z()|0;c=J[b+76>>2];ei:{if(!c)break ei;if(J[b+72>>2]){c=0;while(1){d=J[b+76>>2]+P(c,48)|0;h=J[d+40>>2];if(h){Kb(h);J[d+40>>2]=0}h=J[d+44>>2];if(h){Kb(h);J[d+44>>2]=0}c=c+1|0;if(c>>>0>2])continue;break}c=J[b+76>>2];if(!c)break ei}Kb(c);J[b+76>>2]=0}break d}a=Z()|0;Kb(b);break d}a=Z()|0;Kb(e)}ba(a|0);B()}J[f+8>>2]=a;Kb(a);ba(e|0);B()}b= -Z()|0;a=J[c+4>>2];if(!a)break a;J[c+8>>2]=a;Kb(a)}ba(b|0);B()}function j0(a){a=a|0;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,y=0,z=0,A=0,D=0,E=0,F=0,G=0,N=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;E=xb-48|0;xb=E;d=J[a>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(K[a+212|0])break n;U=a+124|0;V=a+4|0;P=a+12|0;p=J[d-12>>2];e=J[(p+a|0)+12>>2];while(1){f=a+p|0;if(M[f+8>>2]<=e>>>0)break n;d=d-12|0;b=0;c=J[f+16>>2];o:{if(c>>>0<=e+1>>>0){g=0;break o}g=K[e|0]| -K[e+1|0]<<8;J[f+12>>2]=e+2;p=J[d>>2];e=p+a|0;c=J[e+16>>2];e=J[e+12>>2]}i=0;if(e+1>>>0>>0){b=K[e|0]|K[e+1|0]<<8;J[p+P>>2]=e+2;p=J[d>>2];e=p+a|0;c=J[e+16>>2];e=J[e+12>>2]}if(e+3>>>0>>0){J[p+P>>2]=e+4;p=J[d>>2];e=p+a|0;c=J[e+16>>2];e=J[e+12>>2]}if(e+3>>>0>>0){i=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[p+P>>2]=e+4}J[a+116>>2]=i;c=J[d>>2]+a|0;e=J[c+12>>2]+i|0;d=c;c=J[c+8>>2];J[d+16>>2]=c>>>0>e>>>0?e:c;n=J[a>>2]-12|0;d=J[n>>2];m=d+a|0;c=J[m+12>>2];W=c-J[m+4>>2]|0;p:{q:switch((g&65535)- -16385|0){case 52:H[a+213|0]=1;r=0;b=J[n>>2];c=b+a|0;e=J[c+12>>2];d=J[c+16>>2];if(d>>>0<=e+3>>>0)k=0;else{g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[c+12>>2]=e+4;b=J[n>>2];c=b+a|0;d=J[c+16>>2];e=J[c+12>>2];k=+(x(2,g),C())}if(e+3>>>0>>0){c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[b+P>>2]=e+4;r=+(x(2,c),C())}b=J[a+208>>2];if(!b)break p;Ab[J[J[b>>2]+468>>2]](b,k,r);break p;case 48:H[a+213|0]=1;wf(J[a+120>>2]+4|0);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);b=J[a+208>>2];if(!b)break p; -Ab[J[J[b>>2]+472>>2]](b);break p;case 50:f=b&65535;H[a+213|0]=1;c=a+236|0;d=J[c>>2];r:{if(!d)break r;g=f&255;b=c;while(1){e=g>>>0>M[d+16>>2];b=e?b:d;d=J[(e?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|g>>>0>2])break r;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=3)break r;c=J[b+20>>2];if(!c)break r;wf(J[a+120>>2]+4|0);cr(J[a+120>>2]+4|0,c+4|0,f>>>8&15,Ab[J[J[a>>2]+92>>2]](a,2)|0);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);b=J[a+208>>2];if(!b)break r;Ab[J[J[b>>2]+476>>2]](b,f<<16>>16,c)}break p; -case 49:r=0;z=0;e=xb-96|0;xb=e;H[a+213|0]=1;J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;f=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];g=J[f+16>>2];if(c+3>>>0>=g>>>0)q=0;else{d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c;q=+(x(2,d),C())}O[e+64>>3]=q;if(g>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c;r=+(x(2,d),C())}O[e+72>>3]=r;if(g>>>0<=c+3>>>0)k=0;else{d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[f+12>>2]=c;k=+(x(2,d),C())}O[e+ -80>>3]=k;if(g>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4;z=+(x(2,d),C())}O[e+88>>3]=z;wf(J[a+120>>2]+4|0);O[e+40>>3]=r;O[e+56>>3]=r+z;O[e+32>>3]=q;O[e+48>>3]=q+k;c=J[e+44>>2];J[e+8>>2]=J[e+40>>2];J[e+12>>2]=c;c=J[e+60>>2];J[e+24>>2]=J[e+56>>2];J[e+28>>2]=c;c=J[e+52>>2];J[e+16>>2]=J[e+48>>2];J[e+20>>2]=c;c=J[e+36>>2];J[e>>2]=J[e+32>>2];J[e+4>>2]=c;f=(b&65535)>>>8&15;g=xb-16|0;xb=g;h=rA(g);k=O[e+8>>3];w=O[e>>3];J[195395]=0;i=h+4|0;ra(1902,i|0,+w,+k)|0;b=J[195395];J[195395]= -0;s:{t:{if((b|0)==1)break t;q=O[e+16>>3];J[195395]=0;ra(1906,i|0,+q,+k)|0;b=J[195395];J[195395]=0;if((b|0)==1)break t;k=O[e+24>>3];J[195395]=0;ra(1906,i|0,+q,+k)|0;b=J[195395];J[195395]=0;if((b|0)==1)break t;J[195395]=0;ra(1906,i|0,+w,+k)|0;b=J[195395];J[195395]=0;if((b|0)==1)break t;J[195395]=0;_(1921,i|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break t;d=J[a+120>>2];J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break t;b=J[J[a>>2]+92>>2];J[195395]=0;c=ca(b|0,a|0,2)|0;b=J[195395];J[195395]=0;if((b| -0)==1)break t;J[195395]=0;ha(2087,d+4|0,i|0,f|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break t;J[195395]=0;ea(2088,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break t;Rq(h);xb=g+16|0;break s}a=Z()|0;Rq(h);ba(a|0);B()}b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+480>>2]](b,f,e- -64|0);xb=e+96|0;break p;case 51:c=0;h=xb+-64|0;xb=h;H[a+213|0]=1;f=b&65535;i=f&255;e=a+236|0;g=J[e>>2];u:{if(!g)break u;b=e;while(1){d=i>>>0>M[g+16>>2];b=d?b:g;g=J[(d?g+4|0:g)>>2];if(g)continue; -break}if((b|0)==(e|0)|i>>>0>2])break u;e=J[b+20>>2];if((Ab[J[J[e>>2]+12>>2]](e)|0)!=4)break u;b=J[b+20>>2];if(!b)break u;wf(J[a+120>>2]+4|0);g=J[b+4>>2];c=J[b+8>>2];if((g|0)!=(c|0))while(1){g=g+4|0;if((c|0)!=(g|0))continue;break}c=b}b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+484>>2]](b,i,f>>>8&15,c);xb=h- -64|0;break p;case 2:e=J[a+116>>2];c=e+c|0;b=J[m+16>>2];J[m+12>>2]=b>>>0>c>>>0?c:b;b=J[a+208>>2];if(!b)break p;Ab[J[J[b>>2]+488>>2]](b,J[n>>2]+V|0,e);break p; -case 1:b=J[a+208>>2];if(!b){I[a+212>>1]=1;break p}Ab[J[J[b>>2]+12>>2]](b);I[a+212>>1]=1;b=J[a+208>>2];if(!b)break p;Ab[J[J[b>>2]+492>>2]](b);break p;case 3:H[a+213|0]=0;b=J[a+208>>2];if(!b)break p;Ab[J[J[b>>2]+496>>2]](b);break p;case 0:c=c+4|0;b=J[m+16>>2];J[m+12>>2]=b>>>0>c>>>0?c:b;c=0;g=J[n>>2];d=g+a|0;e=J[d+12>>2];b=J[d+16>>2];v:{if(b>>>0<=e+3>>>0){p=0;break v}p=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[d+12>>2]=e+4;g=J[n>>2];e=g+a|0;b=J[e+16>>2];e=J[e+12>>2]}if(e+3>>>0>>0){c=K[e|0]| -K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[g+P>>2]=e+4}J[a+216>>2]=c;e=0;b=J[n>>2]+a|0;c=J[b+12>>2];if(c+3>>>0>2]){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4}H[a+213|0]=1;J[a+220>>2]=e;b=J[a+208>>2];if(!b)break p;Ab[J[J[b>>2]+8>>2]](b);b=J[a+208>>2];Ab[J[J[b>>2]+500>>2]](b,p,J[a+216>>2],J[a+220>>2]);break p;case 8:H[E+2|0]=0;H[E+3|0]=255;b=0;e=J[n>>2]+a|0;d=J[e+12>>2];c=J[e+16>>2];w:{if(d>>>0>=c>>>0){i=0;break w}i=K[d|0];d=d+1|0;J[e+12>>2]=d}H[E|0]=i;if(c>>>0>d>>>0){b= -K[d|0];d=d+1|0;J[e+12>>2]=d}H[E+1|0]=b;i=0;x:{if(c>>>0<=d>>>0){b=0;break x}b=K[d|0];d=d+1|0;J[e+12>>2]=d}H[E+2|0]=b;if(c>>>0>d>>>0){i=K[d|0];J[e+12>>2]=d+1}H[E+3|0]=i;b=J[a+208>>2];if(b)Ab[J[J[b>>2]+504>>2]](b,E);H[a+213|0]=1;break p;case 17:y:{if(b&16384){g=b&65535;r=0;z=0;e=xb-32|0;xb=e;i=J[a>>2]-12|0;c=J[i>>2];h=c+a|0;d=J[h+12>>2];b=J[h+16>>2];if(b>>>0<=d+3>>>0)q=0;else{f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[h+12>>2]=d+4;c=J[i>>2];d=c+a|0;b=J[d+16>>2];d=J[d+12>>2];q=+(x(2,f),C())}if(d+ -3>>>0>>0){f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+c|0)+12>>2]=d+4;c=J[i>>2];d=c+a|0;b=J[d+16>>2];z=+(x(2,f),C());d=J[d+12>>2]}f=a+c|0;if(d+1>>>0>=b>>>0)w=0;else{c=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[f+12>>2]=d;w=+(c|0)}if(d+1>>>0>>0){c=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[f+12>>2]=d;r=+(c|0)}if(d+1>>>0>=b>>>0)k=0;else{c=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[f+12>>2]=d;k=+(c|0)}if(d+1>>>0>>0){b=(K[d|0]|K[d+1|0]<<8)<<16>>16;J[f+12>>2]=d+2;y=+(b|0)}else y=0;break y}g=b&65535; -r=0;z=0;e=xb-32|0;xb=e;i=J[a>>2]-12|0;c=J[i>>2];h=c+a|0;d=J[h+12>>2];b=J[h+16>>2];if(b>>>0<=d+3>>>0)q=0;else{f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[h+12>>2]=d+4;c=J[i>>2];d=c+a|0;b=J[d+16>>2];d=J[d+12>>2];q=+(x(2,f),C())}if(d+3>>>0>>0){f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+c|0)+12>>2]=d+4;c=J[i>>2];d=c+a|0;b=J[d+16>>2];z=+(x(2,f),C());d=J[d+12>>2]}f=a+c|0;if(d+3>>>0>=b>>>0)w=0;else{c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[f+12>>2]=d;w=+(x(2,c),C())}if(d+ -3>>>0>>0){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[f+12>>2]=d;r=+(x(2,c),C())}if(d+3>>>0>=b>>>0)k=0;else{c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[f+12>>2]=d;k=+(x(2,c),C())}if(d+3>>>0>>0){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f+12>>2]=d+4;y=+(x(2,b),C())}else y=0}c=a+236|0;d=J[c>>2];z:{if(!d)break z;h=g<<24>>24;b=c;while(1){f=h>>>0>M[d+16>>2];b=f?b:d;d=J[(f?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|h>>>0>2])break z;c=J[b+20>>2]; -if((Ab[J[J[c>>2]+12>>2]](c)|0)!=2)break z;b=J[b+20>>2];if(!b)break z;h=b+4|0;J[J[a+120>>2]+24>>2]=h;b=J[J[a+120>>2]+688>>2];O[e+8>>3]=r;O[e>>3]=w;O[e+16>>3]=k;O[e+24>>3]=y;_A(a,w,r);y=r+y;A:{if(R(y)<2147483648){d=~~y;break A}d=-2147483648}k=w+k;B:{if(R(k)<2147483648){c=~~k;break B}c=-2147483648}k=z+-360;f=(b|0)==1;if(R(r)<2147483648)b=~~r;else b=-2147483648;k=f?z:k;if(R(w)<2147483648)f=~~w;else f=-2147483648;Dg(a,f,b,c,d,q,k);Cg(a,1,0,1);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+508>>2]](b,g&255,q,k,e);b=J[a+ -120>>2];if((h|0)==J[b+24>>2])J[b+24>>2]=0}xb=e+32|0;H[a+213|0]=1;break p;case 24:C:{if(b&2048)break C;if(b&16384){d=b&65535;c=0;g=xb-48|0;xb=g;D:{E:{F:{G:{H:{h=J[a>>2]-12|0;b=J[h>>2]+a|0;e=J[b+12>>2];I:{if(e+3>>>0>=M[b+16>>2])break I;t=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[b+12>>2]=e+4;if(t>>>0<3)break I;J[g+44>>2]=0;J[g+36>>2]=0;J[g+40>>2]=0;if(t>>>0>=1073741824){J[195395]=0;ea(2054,g+36|0);a=J[195395];J[195395]=0;if((a|0)==1)break m;break D}J[195395]=0;l=t<<2;e=_(1078,l|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break m;o=d&255;e=Nb(e,0,l);j=l+e|0;while(1){i=(c<<2)+e|0;n=J[h>>2]+a|0;d=J[n+12>>2];f=J[n+16>>2];J:{if(d+1>>>0>=f>>>0){b=0;break J}b=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[n+12>>2]=d}I[i>>1]=b;b=0;if(f>>>0>d+1>>>0){b=K[d|0]|K[d+1|0]<<8;J[n+12>>2]=d+2}I[i+2>>1]=b;c=c+1|0;if((t|0)!=(c|0))continue;break}d=a+236|0;c=J[d>>2];K:{if(!c)break K;b=d;while(1){f=o>>>0>M[c+16>>2];b=f?b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(d|0)|o>>>0>2])break K;d=J[b+20>>2];c=J[J[d>>2]+12>> -2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;L:{if((c|0)!=1){if((d|0)!=2)break K;c=J[b+20>>2];if(!c)break K;b=J[a+120>>2];J[195395]=0;n=c+4|0;J[b+24>>2]=n;b=J[195395];J[195395]=0;if((b|0)!=1)break L}c=Z()|0;break l}J[g+20>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;m=l>>2;if(m>>>0>=1073741824){J[195395]=0;ea(2054,g+12|0);a=J[195395];J[195395]=0;if((a|0)!=1)break D;break F}v=0;J[195395]=0;d=_(1078,l|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break F;J[g+16>>2]=d;J[g+12>>2]=d;J[g+20>>2]=(m<<2)+d;i=l-4|0; -h=(i>>>2|0)+1&7;M:{if(!h){b=e;c=d;break M}b=e;c=d;while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;c=c+4|0;b=b+4|0;v=v+1|0;if((h|0)!=(v|0))continue;break}}if(i>>>0>=28)while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;f=L[b+4>>1]|L[b+6>>1]<<16;I[c+4>>1]=f;I[c+6>>1]=f>>>16;f=L[b+8>>1]|L[b+10>>1]<<16;I[c+8>>1]=f;I[c+10>>1]=f>>>16;f=L[b+12>>1]|L[b+14>>1]<<16;I[c+12>>1]=f;I[c+14>>1]=f>>>16;f=L[b+16>>1]|L[b+18>>1]<<16;I[c+16>>1]=f;I[c+18>>1]=f>>>16;f=L[b+20>>1]|L[b+22>>1]<<16;I[c+ -20>>1]=f;I[c+22>>1]=f>>>16;f=L[b+24>>1]|L[b+26>>1]<<16;I[c+24>>1]=f;I[c+26>>1]=f>>>16;f=L[b+28>>1]|L[b+30>>1]<<16;I[c+28>>1]=f;I[c+30>>1]=f>>>16;c=c+32|0;b=b+32|0;if((j|0)!=(b|0))continue;break}N:{if((c|0)!=(d|0)){J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;b=c-d|0;h=b>>2;if(h>>>0>=268435456){J[195395]=0;ea(2056,g+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break D;break G}J[195395]=0;f=b<<2;b=_(1078,f|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break G;J[g+24>>2]=b;J[g+32>>2]=(h<<4)+b;c=0;l=Nb(b,0,f);J[g+ -28>>2]=l+f;f=h>>>0<=1?1:h;j=f&1;if(h>>>0>=2){i=f&-2;v=0;while(1){h=l+(c<<4)|0;f=(c<<2)+d|0;O[h>>3]=I[f>>1];O[h+8>>3]=I[f+2>>1];f=c|1;h=l+(f<<4)|0;f=(f<<2)+d|0;O[h>>3]=I[f>>1];O[h+8>>3]=I[f+2>>1];c=c+2|0;v=v+2|0;if((i|0)!=(v|0))continue;break}}if(!j)break N;f=l+(c<<4)|0;c=(c<<2)+d|0;O[f>>3]=I[c>>1];O[f+8>>3]=I[c+2>>1];break N}b=0;J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0}J[g+16>>2]=d;Kb(d);q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);c=J[195395];J[195395]=0;b=1;if((c|0)==1)break H;if(t>>>0>1)while(1){c= -J[g+24>>2]+(b<<4)|0;A=O[c+16>>3];r=O[c+24>>3];y=O[c+32>>3];w=O[c+40>>3];q=O[c>>3];k=O[c+8>>3];J[195395]=0;if(R(k)<2147483648)d=~~k;else d=-2147483648;if(R(q)<2147483648)c=~~q;else c=-2147483648;if(R(w)<2147483648)i=~~w;else i=-2147483648;if(R(y)<2147483648)h=~~y;else h=-2147483648;if(R(r)<2147483648)f=~~r;else f=-2147483648;if(R(A)<2147483648)j=~~A;else j=-2147483648;oa(2058,a|0,c|0,d|0,j|0,f|0,h|0,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break H;b=b+3|0;if(m>>>0>b>>>0)continue;break}J[195395]=0; -ia(2059,a|0,1,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break H;c=J[a+208>>2];if(c){b=J[J[c>>2]+512>>2];J[195395]=0;fa(b|0,c|0,o|0,g+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break H}b=J[a+120>>2];J[195395]=0;if((n|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break H;b=J[g+24>>2];if(!b)break K;J[g+28>>2]=b;Kb(b)}Kb(e)}xb=g+48|0;break C}c=Z()|0;d=J[g+24>>2];if(!d)break l;J[g+28>>2]=d;break E}c=Z()|0;a=J[g+24>>2];if(a){J[g+28>>2]=a;Kb(a)}J[g+16>>2]=d;break E}c=Z()|0;d=J[g+12>>2];if(!d)break l; -J[g+16>>2]=d}Kb(d);break l}B()}c=b&65535;g=xb-48|0;xb=g;O:{P:{Q:{R:{S:{T:{h=J[a>>2]-12|0;b=J[h>>2]+a|0;e=J[b+12>>2];U:{if(e+3>>>0>=M[b+16>>2])break U;D=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[b+12>>2]=e+4;if(D>>>0<3)break U;J[g+44>>2]=0;J[g+36>>2]=0;J[g+40>>2]=0;if(D>>>0>=268435456){J[195395]=0;ea(2056,g+36|0);a=J[195395];J[195395]=0;if((a|0)==1)break m;break P}J[195395]=0;t=D<<4;e=_(1078,t|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;o=c&255;c=0;e=Nb(e,0,t);m=t+e|0;while(1){b=(c<<4)+ -e|0;j=J[h>>2]+a|0;i=J[j+12>>2];f=J[j+16>>2];if(i+3>>>0>=f>>>0)k=0;else{d=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+4|0;J[j+12>>2]=i;k=+(x(2,d),C())}O[b>>3]=k;if(f>>>0>i+3>>>0){d=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);J[j+12>>2]=i+4;k=+(x(2,d),C())}else k=0;O[b+8>>3]=k;c=c+1|0;if((D|0)!=(c|0))continue;break}d=a+236|0;c=J[d>>2];V:{if(!c)break V;b=d;while(1){f=o>>>0>M[c+16>>2];b=f?b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(d|0)|o>>>0>2])break V;d=J[b+20>>2];c=J[J[d>> -2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;W:{if((c|0)!=1){if((d|0)!=2)break V;c=J[b+20>>2];if(!c)break V;b=J[a+120>>2];J[195395]=0;n=c+4|0;J[b+24>>2]=n;b=J[195395];J[195395]=0;if((b|0)!=1)break W}c=Z()|0;break l}J[g+20>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;l=t>>4;if(l>>>0>=268435456){J[195395]=0;ea(2056,g+12|0);a=J[195395];J[195395]=0;if((a|0)!=1)break P;break R}i=0;J[195395]=0;d=_(1078,t|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break R;J[g+16>>2]=d;J[g+12>>2]=d;J[g+20>>2]=(l<<4)+d;j= -t-16|0;h=(j>>>4|0)+1&3;X:{if(!h){b=e;c=d;break X}b=e;c=d;while(1){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;c=c+16|0;b=b+16|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(j>>>0>=48)while(1){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;f=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=f;f=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+ -36>>2]=f;f=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=f;f=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=f;c=c- -64|0;b=b- -64|0;if((m|0)!=(b|0))continue;break}Y:{if((c|0)!=(d|0)){J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;f=c-d|0;h=f>>4;if(h>>>0>=268435456){J[195395]=0;ea(2056,g+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break P;break S}J[195395]=0;b=_(1078,f|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break S;J[g+24>>2]=b;J[g+32>>2]=(h<<4)+b;u=0;p=Nb(b,0,f);J[g+28>>2]=p+f;f=h>>>0<=1?1:h;j=f&3;c=0;if(h>>> -0>=4){i=f&-4;s=0;while(1){t=c<<4;h=t+p|0;m=d+t|0;f=J[m+4>>2];J[h>>2]=J[m>>2];J[h+4>>2]=f;f=J[m+12>>2];J[h+8>>2]=J[m+8>>2];J[h+12>>2]=f;f=t|16;h=f+p|0;m=d+f|0;f=J[m+12>>2];J[h+8>>2]=J[m+8>>2];J[h+12>>2]=f;f=J[m+4>>2];J[h>>2]=J[m>>2];J[h+4>>2]=f;f=t|32;h=f+p|0;m=d+f|0;f=J[m+12>>2];J[h+8>>2]=J[m+8>>2];J[h+12>>2]=f;f=J[m+4>>2];J[h>>2]=J[m>>2];J[h+4>>2]=f;f=t|48;h=f+p|0;m=d+f|0;f=J[m+12>>2];J[h+8>>2]=J[m+8>>2];J[h+12>>2]=f;f=J[m+4>>2];J[h>>2]=J[m>>2];J[h+4>>2]=f;c=c+4|0;s=s+4|0;if((i|0)!=(s|0))continue; -break}}if(!j)break Y;while(1){f=c<<4;h=f+p|0;i=d+f|0;f=J[i+4>>2];J[h>>2]=J[i>>2];J[h+4>>2]=f;f=J[i+12>>2];J[h+8>>2]=J[i+8>>2];J[h+12>>2]=f;c=c+1|0;u=u+1|0;if((j|0)!=(u|0))continue;break}break Y}b=0;J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0}J[g+16>>2]=d;Kb(d);q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);c=J[195395];J[195395]=0;b=1;if((c|0)==1)break T;if(D>>>0>1)while(1){c=J[g+24>>2]+(b<<4)|0;A=O[c+16>>3];r=O[c+24>>3];y=O[c+32>>3];w=O[c+40>>3];q=O[c>>3];k=O[c+8>>3];J[195395]=0;if(R(k)<2147483648)d= -~~k;else d=-2147483648;if(R(q)<2147483648)c=~~q;else c=-2147483648;if(R(w)<2147483648)i=~~w;else i=-2147483648;if(R(y)<2147483648)h=~~y;else h=-2147483648;if(R(r)<2147483648)f=~~r;else f=-2147483648;if(R(A)<2147483648)j=~~A;else j=-2147483648;oa(2058,a|0,c|0,d|0,j|0,f|0,h|0,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break T;b=b+3|0;if(l>>>0>b>>>0)continue;break}J[195395]=0;ia(2059,a|0,1,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break T;c=J[a+208>>2];if(c){b=J[J[c>>2]+512>>2];J[195395]=0;fa(b|0,c|0,o| -0,g+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break T}b=J[a+120>>2];J[195395]=0;if((n|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break T;b=J[g+24>>2];if(!b)break V;J[g+28>>2]=b;Kb(b)}Kb(e)}xb=g+48|0;break O}c=Z()|0;d=J[g+24>>2];if(!d)break l;J[g+28>>2]=d;break Q}c=Z()|0;a=J[g+24>>2];if(a){J[g+28>>2]=a;Kb(a)}J[g+16>>2]=d;break Q}c=Z()|0;d=J[g+12>>2];if(!d)break l;J[g+16>>2]=d}Kb(d);break l}B()}}H[a+213|0]=1;break p;case 22:Z:{if(b&2048)break Z;if(b&16384){d=b&65535;r=0;g=xb-48| -0;xb=g;h=J[a>>2]-12|0;b=J[h>>2];f=b+a|0;c=J[f+12>>2];i=J[f+16>>2];if(i>>>0>c+3>>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[f+12>>2]=c+4;b=J[h>>2];c=b+a|0;i=J[c+16>>2];r=+(x(2,e),C());c=J[c+12>>2]}_:{$:{aa:{ba:{ca:{da:{if(c+3>>>0>=i>>>0)break da;t=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+b|0)+12>>2]=c+4;if(t>>>0<3)break da;J[g+44>>2]=0;J[g+36>>2]=0;J[g+40>>2]=0;if(t>>>0>=1073741824){J[195395]=0;ea(2054,g+36|0);a=J[195395];J[195395]=0;if((a|0)==1)break m;break _}J[195395]=0;j= -t<<2;c=_(1078,j|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;o=d&255;d=0;e=Nb(c,0,j);n=j+e|0;while(1){f=J[h>>2]+a|0;b=J[f+12>>2];c=J[f+16>>2];ea:{if(b+1>>>0>=c>>>0){i=0;break ea}i=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[f+12>>2]=b}I[e>>1]=i;i=0;if(c>>>0>b+1>>>0){i=K[b|0]|K[b+1|0]<<8;J[f+12>>2]=b+2}I[e+2>>1]=i;d=d+1|0;if((t|0)!=(d|0))continue;break}d=a+236|0;c=J[d>>2];fa:{if(!c)break fa;b=d;while(1){f=o>>>0>M[c+16>>2];b=f?b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(d|0)|o>>>0>2])break fa; -d=J[b+20>>2];c=J[J[d>>2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;ga:{if((c|0)!=1){if((d|0)!=2)break fa;c=J[b+20>>2];if(!c)break fa;b=J[a+120>>2];J[195395]=0;m=c+4|0;J[b+24>>2]=m;b=J[195395];J[195395]=0;if((b|0)!=1)break ga}c=Z()|0;break l}J[g+20>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;c=j>>2;if(c>>>0>=1073741824){J[195395]=0;ea(2054,g+12|0);a=J[195395];J[195395]=0;if((a|0)!=1)break _;break aa}i=0;J[195395]=0;d=_(1078,j|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break aa;J[g+16>>2]=d;J[g+12>> -2]=d;J[g+20>>2]=(c<<2)+d;j=j-4|0;h=(j>>>2|0)+1&7;ha:{if(!h){b=e;c=d;break ha}b=e;c=d;while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;c=c+4|0;b=b+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(j>>>0>=28)while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;f=L[b+4>>1]|L[b+6>>1]<<16;I[c+4>>1]=f;I[c+6>>1]=f>>>16;f=L[b+8>>1]|L[b+10>>1]<<16;I[c+8>>1]=f;I[c+10>>1]=f>>>16;f=L[b+12>>1]|L[b+14>>1]<<16;I[c+12>>1]=f;I[c+14>>1]=f>>>16;f=L[b+16>>1]|L[b+18>>1]<<16;I[c+16>>1]=f;I[c+18>>1]=f>>> -16;f=L[b+20>>1]|L[b+22>>1]<<16;I[c+20>>1]=f;I[c+22>>1]=f>>>16;f=L[b+24>>1]|L[b+26>>1]<<16;I[c+24>>1]=f;I[c+26>>1]=f>>>16;f=L[b+28>>1]|L[b+30>>1]<<16;I[c+28>>1]=f;I[c+30>>1]=f>>>16;c=c+32|0;b=b+32|0;if((n|0)!=(b|0))continue;break}ia:{if((c|0)!=(d|0)){J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;b=c-d|0;h=b>>2;if(h>>>0>=268435456){J[195395]=0;ea(2056,g+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break _;break ba}J[195395]=0;f=b<<2;b=_(1078,f|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ba;J[g+24>>2]=b;J[g+ -32>>2]=(h<<4)+b;c=0;l=Nb(b,0,f);J[g+28>>2]=l+f;f=h>>>0<=1?1:h;n=f&1;if(h>>>0>=2){j=f&-2;i=0;while(1){h=l+(c<<4)|0;f=(c<<2)+d|0;O[h>>3]=I[f>>1];O[h+8>>3]=I[f+2>>1];f=c|1;h=l+(f<<4)|0;f=(f<<2)+d|0;O[h>>3]=I[f>>1];O[h+8>>3]=I[f+2>>1];c=c+2|0;i=i+2|0;if((j|0)!=(i|0))continue;break}}if(!n)break ia;f=l+(c<<4)|0;c=(c<<2)+d|0;O[f>>3]=I[c>>1];O[f+8>>3]=I[c+2>>1];break ia}b=0;J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0}J[g+16>>2]=d;Kb(d);q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);c=J[195395];J[195395]= -0;b=1;if((c|0)==1)break ca;if(t>>>0>1)while(1){c=J[g+24>>2]+(b<<4)|0;z=O[c+16>>3];A=O[c+24>>3];y=O[c+32>>3];w=O[c+40>>3];q=O[c>>3];k=O[c+8>>3];J[195395]=0;if(R(k)<2147483648)d=~~k;else d=-2147483648;if(R(q)<2147483648)c=~~q;else c=-2147483648;if(R(w)<2147483648)i=~~w;else i=-2147483648;if(R(y)<2147483648)h=~~y;else h=-2147483648;if(R(A)<2147483648)f=~~A;else f=-2147483648;if(R(z)<2147483648)j=~~z;else j=-2147483648;oa(2058,a|0,c|0,d|0,j|0,f|0,h|0,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break ca; -b=b+3|0;if(t>>>0>b>>>0)continue;break}J[195395]=0;ea(2052,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break ca;J[195395]=0;ia(2059,a|0,1,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break ca;c=J[a+208>>2];if(c){b=J[J[c>>2]+516>>2];J[195395]=0;Ua(b|0,c|0,o|0,+r,g+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break ca}b=J[a+120>>2];J[195395]=0;if((m|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break ca;b=J[g+24>>2];if(!b)break fa;J[g+28>>2]=b;Kb(b)}Kb(e)}xb=g+48|0;break Z}c=Z()|0;d=J[g+24>> -2];if(!d)break l;J[g+28>>2]=d;break $}c=Z()|0;a=J[g+24>>2];if(a){J[g+28>>2]=a;Kb(a)}J[g+16>>2]=d;break $}c=Z()|0;d=J[g+12>>2];if(!d)break l;J[g+16>>2]=d}Kb(d);break l}B()}i=0;D=0;u=0;r=0;g=xb-48|0;xb=g;j=J[a>>2]-12|0;d=J[j>>2];h=d+a|0;c=J[h+12>>2];e=J[h+16>>2];if(e>>>0>c+3>>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[h+12>>2]=c+4;d=J[j>>2];c=d+a|0;e=J[c+16>>2];r=+(x(2,f),C());c=J[c+12>>2]}f=b&65535;ja:{ka:{la:{ma:{na:{oa:{pa:{if(c+3>>>0>=e>>>0)break pa;p=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16| -K[c+3|0]<<24);J[(a+d|0)+12>>2]=c+4;if(p>>>0<3)break pa;J[g+44>>2]=0;J[g+36>>2]=0;J[g+40>>2]=0;if(p>>>0>=268435456){J[195395]=0;ea(2056,g+36|0);a=J[195395];J[195395]=0;if((a|0)==1)break m;break ka}J[195395]=0;o=p<<4;c=_(1078,o|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;l=f&255;d=0;e=Nb(c,0,o);m=o+e|0;while(1){h=J[j>>2]+a|0;b=J[h+12>>2];f=J[h+16>>2];if(b+3>>>0>=f>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[h+12>>2]=b;k=+(x(2,c),C())}O[e>>3]=k;if(f>>>0>b+3>>>0){c=K[b| -0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[h+12>>2]=b+4;k=+(x(2,c),C())}else k=0;O[e+8>>3]=k;d=d+1|0;if((p|0)!=(d|0))continue;break}d=a+236|0;c=J[d>>2];qa:{if(!c)break qa;b=d;while(1){f=l>>>0>M[c+16>>2];b=f?b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(d|0)|l>>>0>2])break qa;d=J[b+20>>2];c=J[J[d>>2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;ra:{if((c|0)!=1){if((d|0)!=2)break qa;c=J[b+20>>2];if(!c)break qa;b=J[a+120>>2];J[195395]=0;n=c+4|0;J[b+24>>2]=n;b=J[195395]; -J[195395]=0;if((b|0)!=1)break ra}c=Z()|0;break l}J[g+20>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;c=o>>4;if(c>>>0>=268435456){J[195395]=0;ea(2056,g+12|0);a=J[195395];J[195395]=0;if((a|0)!=1)break ka;break ma}v=0;J[195395]=0;d=_(1078,o|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break ma;J[g+16>>2]=d;J[g+12>>2]=d;J[g+20>>2]=(c<<4)+d;j=o-16|0;h=(j>>>4|0)+1&3;sa:{if(!h){b=e;c=d;break sa}b=e;c=d;while(1){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;c=c+16|0;b=b+16|0;v=v+1| -0;if((h|0)!=(v|0))continue;break}}if(j>>>0>=48)while(1){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;f=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=f;f=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=f;f=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=f;f=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=f;c=c- -64|0;b=b- -64|0;if((m|0)!=(b|0))continue;break}ta:{if((c|0)!=(d|0)){J[g+ -32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;c=c-d|0;f=c>>4;if(f>>>0>=268435456){J[195395]=0;ea(2056,g+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break ka;break na}J[195395]=0;i=_(1078,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break na;J[g+24>>2]=i;J[g+32>>2]=(f<<4)+i;t=Nb(i,0,c);J[g+28>>2]=t+c;b=f>>>0<=1?1:f;j=b&3;c=0;if(f>>>0>=4){h=b&-4;while(1){o=c<<4;f=o+t|0;m=d+o|0;b=J[m+4>>2];J[f>>2]=J[m>>2];J[f+4>>2]=b;b=J[m+12>>2];J[f+8>>2]=J[m+8>>2];J[f+12>>2]=b;b=o|16;f=b+t|0;m=b+d|0;b=J[m+12>>2];J[f+8>>2]=J[m+8>> -2];J[f+12>>2]=b;b=J[m+4>>2];J[f>>2]=J[m>>2];J[f+4>>2]=b;b=o|32;f=b+t|0;m=b+d|0;b=J[m+12>>2];J[f+8>>2]=J[m+8>>2];J[f+12>>2]=b;b=J[m+4>>2];J[f>>2]=J[m>>2];J[f+4>>2]=b;b=o|48;f=b+t|0;m=b+d|0;b=J[m+12>>2];J[f+8>>2]=J[m+8>>2];J[f+12>>2]=b;b=J[m+4>>2];J[f>>2]=J[m>>2];J[f+4>>2]=b;c=c+4|0;u=u+4|0;if((h|0)!=(u|0))continue;break}}if(!j)break ta;while(1){b=c<<4;f=b+t|0;h=b+d|0;b=J[h+4>>2];J[f>>2]=J[h>>2];J[f+4>>2]=b;b=J[h+12>>2];J[f+8>>2]=J[h+8>>2];J[f+12>>2]=b;c=c+1|0;D=D+1|0;if((j|0)!=(D|0))continue;break}break ta}J[g+ -32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0}J[g+16>>2]=d;Kb(d);q=O[i+8>>3];k=O[i>>3];J[195395]=0;qa(2057,a|0,+k,+q);c=J[195395];J[195395]=0;b=1;if((c|0)==1)break oa;if(p>>>0>1)while(1){c=J[g+24>>2]+(b<<4)|0;z=O[c+16>>3];A=O[c+24>>3];y=O[c+32>>3];w=O[c+40>>3];q=O[c>>3];k=O[c+8>>3];J[195395]=0;if(R(k)<2147483648)d=~~k;else d=-2147483648;if(R(q)<2147483648)c=~~q;else c=-2147483648;if(R(w)<2147483648)i=~~w;else i=-2147483648;if(R(y)<2147483648)h=~~y;else h=-2147483648;if(R(A)<2147483648)f=~~A;else f=-2147483648; -if(R(z)<2147483648)j=~~z;else j=-2147483648;oa(2058,a|0,c|0,d|0,j|0,f|0,h|0,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break oa;b=b+3|0;if(p>>>0>b>>>0)continue;break}J[195395]=0;ea(2052,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break oa;J[195395]=0;ia(2059,a|0,1,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break oa;c=J[a+208>>2];if(c){b=J[J[c>>2]+516>>2];J[195395]=0;Ua(b|0,c|0,l|0,+r,g+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break oa}b=J[a+120>>2];J[195395]=0;if((n|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395]; -J[195395]=0;if((b|0)==1)break oa;b=J[g+24>>2];if(!b)break qa;J[g+28>>2]=b;Kb(b)}Kb(e)}xb=g+48|0;break ja}c=Z()|0;d=J[g+24>>2];if(!d)break l;J[g+28>>2]=d;break la}c=Z()|0;a=J[g+24>>2];if(a){J[g+28>>2]=a;Kb(a)}J[g+16>>2]=d;break la}c=Z()|0;d=J[g+12>>2];if(!d)break l;J[g+16>>2]=d}Kb(d);break l}B()}}H[a+213|0]=1;break p;case 23:ua:{if(b&16384){f=b&65535;e=0;g=0;r=0;D=0;u=0;o=xb-48|0;xb=o;j=J[a>>2]-12|0;p=J[j>>2];h=p+a|0;c=J[h+12>>2];b=J[h+16>>2];if(b>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+ -3|0]<<24);J[h+12>>2]=c+4;p=J[j>>2];c=p+a|0;b=J[c+16>>2];r=+(x(2,d),C());c=J[c+12>>2]}if(c+3>>>0>>0){u=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+p|0)+12>>2]=c+4;p=J[j>>2];c=p+a|0;b=J[c+16>>2];c=J[c+12>>2]}if(c+3>>>0>>0){D=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+p|0)+12>>2]=c+4;p=J[j>>2];c=p+a|0;b=J[c+16>>2];c=J[c+12>>2]}va:{wa:{if(c+3>>>0>=b>>>0){J[o+40>>2]=0;break wa}d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+p|0)+12>>2]=c+4;J[o+44>>2]=0;J[o+36>>2]=0;J[o+40>> -2]=0;if(!d)break wa;xa:{ya:{if(d>>>0>=1073741824){J[195395]=0;ea(2054,o+36|0);a=J[195395];J[195395]=0;if((a|0)==1)break ya;break va}J[195395]=0;c=d<<2;e=_(1078,c|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break xa}c=Z()|0;a=J[o+36>>2];if(!a)break k;J[o+40>>2]=a;Kb(a);break k}J[o+36>>2]=e;b=c+e|0;J[o+44>>2]=b;h=Nb(e,0,c);J[o+40>>2]=b;while(1){p=0;i=J[j>>2]+a|0;b=J[i+12>>2];c=J[i+16>>2];za:{if(b+1>>>0>=c>>>0){v=0;break za}v=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[i+12>>2]=b}I[h>>1]=v;if(c>>>0>b+1>>>0){p=K[b|0]| -K[b+1|0]<<8;J[i+12>>2]=b+2}I[h+2>>1]=p;g=g+1|0;if((d|0)!=(g|0))continue;break}g=d}Aa:{Ba:{Ca:{Da:{Ea:{d=a+236|0;c=J[d>>2];Fa:{if(!c)break Fa;l=f&255;b=d;while(1){f=l>>>0>M[c+16>>2];b=f?b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(d|0)|l>>>0>2])break Fa;d=J[b+20>>2];c=J[J[d>>2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;Ga:{if((c|0)!=1){if((d|0)!=2)break Fa;c=J[b+20>>2];if(!c)break Fa;b=J[a+120>>2];J[195395]=0;n=c+4|0;J[b+24>>2]=n;b=J[195395];J[195395]=0;if((b|0)!= -1)break Ga}c=Z()|0;break Aa}J[o+20>>2]=0;J[o+12>>2]=0;J[o+16>>2]=0;h=J[o+40>>2];b=h-e|0;c=b>>2;if(c>>>0>=1073741824){J[195395]=0;ea(2054,o+12|0);a=J[195395];J[195395]=0;if((a|0)!=1)break va;break Ca}J[195395]=0;d=_(1078,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Ca;J[o+16>>2]=d;J[o+12>>2]=d;J[o+20>>2]=(c<<2)+d;b=e;c=d;while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;c=c+4|0;b=b+4|0;if((h|0)!=(b|0))continue;break}Ha:{if((c|0)!=(d|0)){J[o+32>>2]=0;J[o+24>>2]=0;J[o+28>>2]=0;b=c-d|0; -h=b>>2;if(h>>>0>=268435456){J[195395]=0;ea(2056,o+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break va;break Da}J[195395]=0;f=b<<2;b=_(1078,f|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Da;J[o+24>>2]=b;J[o+32>>2]=(h<<4)+b;c=0;m=Nb(b,0,f);J[o+28>>2]=m+f;f=h>>>0<=1?1:h;j=f&1;if(h>>>0>=2){i=f&-2;p=0;while(1){h=m+(c<<4)|0;f=(c<<2)+d|0;O[h>>3]=I[f>>1];O[h+8>>3]=I[f+2>>1];f=c|1;h=m+(f<<4)|0;f=(f<<2)+d|0;O[h>>3]=I[f>>1];O[h+8>>3]=I[f+2>>1];c=c+2|0;p=p+2|0;if((i|0)!=(p|0))continue;break}}if(!j)break Ha; -f=m+(c<<4)|0;c=(c<<2)+d|0;O[f>>3]=I[c>>1];O[f+8>>3]=I[c+2>>1];break Ha}b=0;J[o+32>>2]=0;J[o+24>>2]=0;J[o+28>>2]=0}J[o+16>>2]=d;Kb(d);q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);c=J[195395];J[195395]=0;b=1;if((c|0)==1)break Ea;if(g>>>0>1)while(1){c=J[o+24>>2]+(b<<4)|0;z=O[c+16>>3];A=O[c+24>>3];y=O[c+32>>3];w=O[c+40>>3];q=O[c>>3];k=O[c+8>>3];J[195395]=0;if(R(k)<2147483648)d=~~k;else d=-2147483648;if(R(q)<2147483648)c=~~q;else c=-2147483648;if(R(w)<2147483648)i=~~w;else i=-2147483648;if(R(y)< -2147483648)h=~~y;else h=-2147483648;if(R(A)<2147483648)f=~~A;else f=-2147483648;if(R(z)<2147483648)j=~~z;else j=-2147483648;oa(2058,a|0,c|0,d|0,j|0,f|0,h|0,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break Ea;b=b+3|0;if(g>>>0>b>>>0)continue;break}J[195395]=0;ia(2059,a|0,1,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break Ea;c=J[a+208>>2];if(c){b=J[J[c>>2]+520>>2];J[195395]=0;Ta(b|0,c|0,l|0,+r,u|0,D|0,o+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break Ea}b=J[a+120>>2];J[195395]=0;if((n|0)==J[b+24>>2])J[b+ -24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Ea;b=J[o+24>>2];if(!b)break Fa;J[o+28>>2]=b;Kb(b)}if(e){J[o+40>>2]=e;Kb(e)}xb=o+48|0;break ua}c=Z()|0;d=J[o+24>>2];if(!d)break Aa;J[o+28>>2]=d;break Ba}c=Z()|0;a=J[o+24>>2];if(a){J[o+28>>2]=a;Kb(a)}J[o+16>>2]=d;break Ba}c=Z()|0;d=J[o+12>>2];if(!d)break Aa;J[o+16>>2]=d}Kb(d)}if(!e)break k;J[o+40>>2]=e;break l}B()}j=b&65535;i=0;r=0;D=0;u=0;s=xb-48|0;xb=s;n=J[a>>2]-12|0;d=J[n>>2];g=d+a|0;c=J[g+12>>2];b=J[g+16>>2];if(b>>>0>c+3>>>0){e=K[c|0]|K[c+1|0]<< -8|(K[c+2|0]<<16|K[c+3|0]<<24);J[g+12>>2]=c+4;d=J[n>>2];c=d+a|0;b=J[c+16>>2];r=+(x(2,e),C());c=J[c+12>>2]}if(c+3>>>0>>0){u=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+d|0)+12>>2]=c+4;d=J[n>>2];c=d+a|0;b=J[c+16>>2];c=J[c+12>>2]}if(c+3>>>0>>0){D=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+d|0)+12>>2]=c+4;d=J[n>>2];c=d+a|0;b=J[c+16>>2];c=J[c+12>>2]}Ia:{Ja:{Ka:{La:{if(c+3>>>0>=b>>>0){J[s+40>>2]=0;break La}g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+d|0)+12>>2]=c+4;J[s+44>> -2]=0;J[s+36>>2]=0;J[s+40>>2]=0;if(!g)break La;Ma:{Na:{if(g>>>0>=268435456){J[195395]=0;ea(2056,s+36|0);a=J[195395];J[195395]=0;if((a|0)==1)break Na;break Ja}d=0;J[195395]=0;c=g<<4;e=_(1078,c|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Ma}c=Z()|0;a=J[s+36>>2];if(!a)break k;J[s+40>>2]=a;Kb(a);break k}b=c;c=Nb(e,0,c);J[s+40>>2]=b+c;while(1){i=J[n>>2]+a|0;b=J[i+12>>2];h=J[i+16>>2];if(b+3>>>0>=h>>>0)k=0;else{f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[i+12>>2]=b;k=+(x(2,f),C())}O[c>> -3]=k;if(h>>>0>b+3>>>0){f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[i+12>>2]=b+4;k=+(x(2,f),C())}else k=0;O[c+8>>3]=k;d=d+1|0;if((g|0)!=(d|0))continue;break}i=g;break Ka}e=0}Oa:{Pa:{Qa:{Ra:{Sa:{d=a+236|0;c=J[d>>2];Ta:{if(!c)break Ta;o=j&255;b=d;while(1){g=o>>>0>M[c+16>>2];b=g?b:c;c=J[(g?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(d|0)|o>>>0>2])break Ta;d=J[b+20>>2];c=J[J[d>>2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;Ua:{if((c|0)!=1){if((d|0)!=2)break Ta;c=J[b+20>>2]; -if(!c)break Ta;b=J[a+120>>2];J[195395]=0;j=c+4|0;J[b+24>>2]=j;b=J[195395];J[195395]=0;if((b|0)!=1)break Ua}c=Z()|0;break Oa}J[s+20>>2]=0;J[s+12>>2]=0;J[s+16>>2]=0;f=J[s+40>>2];b=f-e|0;c=b>>4;if(c>>>0>=268435456){J[195395]=0;ea(2056,s+12|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Ja;break Qa}J[195395]=0;d=_(1078,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qa;J[s+16>>2]=d;J[s+12>>2]=d;J[s+20>>2]=(c<<4)+d;b=e;c=d;while(1){g=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=g;g=J[b+12>>2];J[c+8>>2]=J[b+8>>2]; -J[c+12>>2]=g;c=c+16|0;b=b+16|0;if((f|0)!=(b|0))continue;break}Va:{if((c|0)!=(d|0)){J[s+32>>2]=0;J[s+24>>2]=0;J[s+28>>2]=0;g=c-d|0;f=g>>4;if(f>>>0>=268435456){J[195395]=0;ea(2056,s+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Ja;break Ra}J[195395]=0;b=_(1078,g|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ra;J[s+24>>2]=b;J[s+32>>2]=(f<<4)+b;v=0;p=Nb(b,0,g);J[s+28>>2]=p+g;g=f>>>0<=1?1:f;m=g&3;c=0;if(f>>>0>=4){h=g&-4;n=0;while(1){t=c<<4;f=t+p|0;l=d+t|0;g=J[l+4>>2];J[f>>2]=J[l>>2];J[f+4>>2]=g;g=J[l+ -12>>2];J[f+8>>2]=J[l+8>>2];J[f+12>>2]=g;g=t|16;f=g+p|0;l=d+g|0;g=J[l+12>>2];J[f+8>>2]=J[l+8>>2];J[f+12>>2]=g;g=J[l+4>>2];J[f>>2]=J[l>>2];J[f+4>>2]=g;g=t|32;f=g+p|0;l=d+g|0;g=J[l+12>>2];J[f+8>>2]=J[l+8>>2];J[f+12>>2]=g;g=J[l+4>>2];J[f>>2]=J[l>>2];J[f+4>>2]=g;g=t|48;f=g+p|0;l=d+g|0;g=J[l+12>>2];J[f+8>>2]=J[l+8>>2];J[f+12>>2]=g;g=J[l+4>>2];J[f>>2]=J[l>>2];J[f+4>>2]=g;c=c+4|0;n=n+4|0;if((h|0)!=(n|0))continue;break}}if(!m)break Va;while(1){g=c<<4;f=g+p|0;h=d+g|0;g=J[h+4>>2];J[f>>2]=J[h>>2];J[f+4>>2]=g; -g=J[h+12>>2];J[f+8>>2]=J[h+8>>2];J[f+12>>2]=g;c=c+1|0;v=v+1|0;if((m|0)!=(v|0))continue;break}break Va}b=0;J[s+32>>2]=0;J[s+24>>2]=0;J[s+28>>2]=0}J[s+16>>2]=d;Kb(d);q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);c=J[195395];J[195395]=0;b=1;if((c|0)==1)break Sa;if(i>>>0>1)while(1){c=J[s+24>>2]+(b<<4)|0;z=O[c+16>>3];A=O[c+24>>3];y=O[c+32>>3];w=O[c+40>>3];q=O[c>>3];k=O[c+8>>3];J[195395]=0;if(R(k)<2147483648)d=~~k;else d=-2147483648;if(R(q)<2147483648)c=~~q;else c=-2147483648;if(R(w)<2147483648)h= -~~w;else h=-2147483648;if(R(y)<2147483648)f=~~y;else f=-2147483648;if(R(A)<2147483648)g=~~A;else g=-2147483648;if(R(z)<2147483648)l=~~z;else l=-2147483648;oa(2058,a|0,c|0,d|0,l|0,g|0,f|0,h|0);c=J[195395];J[195395]=0;if((c|0)==1)break Sa;b=b+3|0;if(i>>>0>b>>>0)continue;break}J[195395]=0;ia(2059,a|0,1,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break Sa;c=J[a+208>>2];if(c){b=J[J[c>>2]+520>>2];J[195395]=0;Ta(b|0,c|0,o|0,+r,u|0,D|0,s+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break Sa}b=J[a+120>>2];J[195395]= -0;if((j|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Sa;b=J[s+24>>2];if(!b)break Ta;J[s+28>>2]=b;Kb(b)}if(e){J[s+40>>2]=e;Kb(e)}xb=s+48|0;break Ia}c=Z()|0;d=J[s+24>>2];if(!d)break Oa;J[s+28>>2]=d;break Pa}c=Z()|0;a=J[s+24>>2];if(a){J[s+28>>2]=a;Kb(a)}J[s+16>>2]=d;break Pa}c=Z()|0;d=J[s+12>>2];if(!d)break Oa;J[s+16>>2]=d}Kb(d)}if(!e)break k;J[s+40>>2]=e;break l}B()}}H[a+213|0]=1;break p;case 53:n=b&65535;g=0;v=0;D=0;l=xb-112|0;xb=l;f=J[a>>2]-12|0;c=J[f>>2];e=c+a|0;d=J[e+12>> -2];b=J[e+16>>2];if(b>>>0>d+3>>>0){g=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;c=J[f>>2];e=c+a|0;b=J[e+16>>2];d=J[e+12>>2]}if(d+3>>>0>>0){D=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+c|0)+12>>2]=d+4;c=J[f>>2];e=c+a|0;b=J[e+16>>2];d=J[e+12>>2]}if(d+3>>>0>>0){v=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+c|0)+12>>2]=d+4;c=J[f>>2];e=c+a|0;b=J[e+16>>2];d=J[e+12>>2]}Wa:{Xa:{Ya:{Za:{_a:{$a:{if(d+3>>>0>=b>>>0)break $a;m=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<< -24);J[(a+c|0)+12>>2]=d+4;if(!m)break $a;d=0;b=m+1|0;j=Pb((b|0)<0?-1:b<<1);I[j+(m<<1)>>1]=0;i=J[f>>2]+a|0;h=J[i+16>>2];b=J[i+12>>2];c=h-b|0;e=(c|0)/2|0;ab:{if(c+1>>>0<3)break ab;c=e>>>0>>0?e:m;f=c&1;if((c|0)!=1){e=c&-2;s=0;while(1){bb:{if(h>>>0<=b+1>>>0){c=0;break bb}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[i+12>>2]=b}I[j+(d<<1)>>1]=c;c=0;if(h>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[i+12>>2]=b}I[j+((d|1)<<1)>>1]=c;d=d+2|0;s=s+2|0;if((e|0)!=(s|0))continue;break}}if(!f)break ab;c=0;if(h>>>0>b+1>>>0){c= -K[b|0]|K[b+1|0]<<8;J[i+12>>2]=b+2}I[j+(d<<1)>>1]=c}J[l+104>>2]=0;J[l+96>>2]=0;J[l+100>>2]=0;J[195395]=0;fa(2061,l+32|0,j|0,m|0);b=J[195395];J[195395]=0;if((b|0)==1)break _a;if(H[l+107|0]<0)Kb(J[l+96>>2]);J[l+104>>2]=J[l+40>>2];b=J[l+36>>2];J[l+96>>2]=J[l+32>>2];J[l+100>>2]=b;Kb(j);J[195395]=0;fa(2062,l+84|0,a|0,m|0);b=J[195395];J[195395]=0;cb:{db:{eb:{fb:{if((b|0)!=1){if((v|0)==1){J[195395]=0;J[l+40>>2]=0;J[l+44>>2]=0;J[l+32>>2]=0;J[l+36>>2]=1072693248;J[l+64>>2]=0;J[l+68>>2]=0;J[l+56>>2]=0;J[l+60>> -2]=1072693248;J[l+48>>2]=0;J[l+52>>2]=0;J[l+72>>2]=0;J[l+76>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break fb;j=J[J[a>>2]-12>>2]+a|0;b=J[j+12>>2];m=J[j+16>>2];h=b+3>>>0>>0;b=(h<<2)+b|0;f=b+3>>>0>>0;b=(f<<2)+b|0;d=b+3>>>0>>0;b=(d<<2)+b|0;e=b+3>>>0>>0;b=(e<<2)+b|0;c=b+3>>>0>>0;b=(c<<2)+b|0;i=b+3|0;gb:{hb:{if(f|h|(d|e))break hb;if(c)break hb;if(i>>>0>=m>>>0)break gb}J[j+12>>2]=b+((i>>>0>>0)<<2)}H[a+213|0]=1}d=J[l+84>>2];if(!J[a+208>>2])break cb;b=K[l+107|0];h=b<<24>>24<0?J[l+100>> -2]:b;c=J[l+88>>2];f=c-d|0;if((h|0)!=f>>4)break cb;J[l+28>>2]=0;J[l+20>>2]=0;J[l+24>>2]=0;if((c|0)==(d|0))break db;if(h>>>0<268435456)break eb;J[195395]=0;ea(1813,l+20|0);a=J[195395];J[195395]=0;if((a|0)==1)break Za;B()}d=Z()|0;break Xa}d=Z()|0;break Ya}b=0;J[195395]=0;e=_(1078,f|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Za;J[l+20>>2]=e;J[l+28>>2]=e+(h<<4);m=Nb(e,0,f);J[l+24>>2]=m+f;c=h>>>0<=1?1:h;i=c&1;if(h>>>0>=2){h=c&-2;c=0;while(1){j=b<<4;f=j+m|0;e=d+j|0;O[f>>3]=O[e>>3];O[f+8>>3]=O[e+8>>3]; -e=j|16;f=e+m|0;e=d+e|0;O[f>>3]=O[e>>3];O[f+8>>3]=O[e+8>>3];b=b+2|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!i)break db;b=b<<4;c=b+m|0;b=b+d|0;O[c>>3]=O[b>>3];O[c+8>>3]=O[b+8>>3]}c=a+236|0;d=J[c>>2];ib:{if(!d)break ib;h=n&255;b=c;while(1){e=h>>>0>M[d+16>>2];b=e?b:d;d=J[(e?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|h>>>0>2])break ib;d=J[b+20>>2];e=J[J[d>>2]+12>>2];J[195395]=0;d=_(e|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Za;if((d|0)!=6)break ib;e=J[b+20>>2];if(!e)break ib; -b=J[a+120>>2];J[195395]=0;f=e+4|0;J[b+28>>2]=f;b=J[195395];J[195395]=0;if((b|0)==1)break Za;jb:{if(n<<16>>16<0){J[195395]=0;e=l+16|0;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Za;H[e+3|0]=g>>>24;H[e|0]=g>>>16;b=g<<8|(g&65280)>>>8;H[e+1|0]=b;H[e+2|0]=b>>>8;c=J[a+120>>2];J[195395]=0;b=J[195395];J[195395]=0;kb:{if((b|0)==1)break kb;J[195395]=0;H[l+12|0]=K[c+600|0];H[l+13|0]=K[c+601|0];H[l+14|0]=K[c+602|0];H[l+15|0]=K[c+603|0];b=J[195395];J[195395]=0;if((b|0)== -1)break kb;b=J[a+120>>2];J[195395]=0;H[b+600|0]=K[e|0];H[b+601|0]=K[e+1|0];H[b+602|0]=K[e+2|0];H[b+603|0]=K[e+3|0];b=J[195395];J[195395]=0;if((b|0)==1)break kb;c=J[a+208>>2];b=J[J[c>>2]+24>>2];J[195395]=0;d=l+96|0;e=l+20|0;fa(b|0,c|0,d|0,e|0);b=J[195395];J[195395]=0;if((b|0)==1)break kb;c=J[a+208>>2];b=J[J[c>>2]+524>>2];J[195395]=0;Ia(b|0,c|0,h|0,g|0,D|0,v|0,0,d|0,e|0);b=J[195395];J[195395]=0;if((b|0)==1)break kb;b=J[a+120>>2];J[195395]=0;H[b+600|0]=K[l+12|0];H[b+601|0]=K[l+13|0];H[b+602|0]=K[l+14| -0];H[b+603|0]=K[l+15|0];b=J[195395];J[195395]=0;if((b|0)!=1)break jb}break Za}d=J[c>>2];if(!d)break ib;b=c;while(1){e=M[d+16>>2]>>0;b=e?b:d;d=J[(e?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|M[b+16>>2]>g>>>0)break ib;e=J[b+20>>2];c=J[J[e>>2]+12>>2];J[195395]=0;e=_(c|0,e|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Za;if((e|0)!=1)break ib;c=J[b+20>>2];if(!c)break ib;J[195395]=0;e=l+16|0;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Za;H[e+2|0]=K[c+8| -0];H[e+1|0]=K[c+9|0];H[e|0]=K[c+10|0];H[e+3|0]=K[c+11|0];c=J[a+120>>2];J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Za;J[195395]=0;H[l+12|0]=K[c+600|0];H[l+13|0]=K[c+601|0];H[l+14|0]=K[c+602|0];H[l+15|0]=K[c+603|0];b=J[195395];J[195395]=0;if((b|0)==1)break Za;b=J[a+120>>2];J[195395]=0;H[b+600|0]=K[e|0];H[b+601|0]=K[e+1|0];H[b+602|0]=K[e+2|0];H[b+603|0]=K[e+3|0];b=J[195395];J[195395]=0;if((b|0)==1)break Za;c=J[a+208>>2];b=J[J[c>>2]+24>>2];J[195395]=0;d=c;e=l+96|0;c=l+20|0;fa(b|0,d|0,e|0,c| -0);b=J[195395];J[195395]=0;if((b|0)==1)break Za;d=J[a+208>>2];if(d){b=J[J[d>>2]+524>>2];J[195395]=0;Ia(b|0,d|0,h|0,g|0,D|0,v|0,0,e|0,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break Za}b=J[a+120>>2];J[195395]=0;H[b+600|0]=K[l+12|0];H[b+601|0]=K[l+13|0];H[b+602|0]=K[l+14|0];H[b+603|0]=K[l+15|0];b=J[195395];J[195395]=0;if((b|0)==1)break Za}b=J[a+120>>2];J[195395]=0;if((f|0)==J[b+28>>2])J[b+28>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Za;H[a+213|0]=1}b=J[l+20>>2];if(b){J[l+24>>2]=b;Kb(b)}d=J[l+84>> -2]}if(d){J[l+88>>2]=d;Kb(d)}if(H[l+107|0]>=0)break $a;Kb(J[l+96>>2])}xb=l+112|0;break Wa}d=Z()|0;break Xa}d=Z()|0;a=J[l+20>>2];if(!a)break Ya;J[l+24>>2]=a;Kb(a)}a=J[l+84>>2];if(!a)break Xa;J[l+88>>2]=a;Kb(a)}if(H[l+107|0]<0)Kb(J[l+96>>2]);break i}break p;case 14:lb:{if(b&16384){g=b&65535;i=0;p=0;v=0;s=0;d=xb-32|0;xb=d;e=J[J[a>>2]-12>>2]+a|0;b=J[e+12>>2];c=J[e+16>>2];if(b+1>>>0>>0){p=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[e+12>>2]=b}if(c>>>0>b+1>>>0){i=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[e+12>> -2]=b}if(c>>>0>b+1>>>0){s=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[e+12>>2]=b}if(c>>>0>b+1>>>0){v=(K[b|0]|K[b+1|0]<<8)<<16>>16;J[e+12>>2]=b+2}c=a+236|0;e=J[c>>2];mb:{if(!e)break mb;n=g&255;b=c;while(1){g=n>>>0>M[e+16>>2];b=g?b:e;e=J[(g?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)|n>>>0>2])break mb;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=2)break mb;j=J[b+20>>2];if(!j)break mb;b=J[j+28>>2];if(b)J[J[a+120>>2]+20>>2]=b+4;e=j+4|0;J[J[a+120>>2]+24>>2]=e;c=v<<16>>16;i=i<<16>>16;f=c+i|0;b=s<< -16>>16;h=p<<16>>16;g=b+h|0;nb:{if(J[J[a+120>>2]+688>>2]==1){Dg(a,h,i,g,f,0,360);break nb}Dg(a,h,f,g,i,0,360)}Cg(a,1,0,1);g=J[a+208>>2];if(g){O[d+24>>3]=c|0;O[d+16>>3]=b|0;O[d+8>>3]=i|0;O[d>>3]=h|0;Ab[J[J[g>>2]+528>>2]](g,n,d)}c=J[j+28>>2];if(c){b=J[a+120>>2];if(J[b+20>>2]==(c+4|0))J[b+20>>2]=0}b=J[a+120>>2];if((e|0)==J[b+24>>2])J[b+24>>2]=0}break lb}g=b&65535;r=0;A=0;d=xb-32|0;xb=d;f=J[J[a>>2]-12>>2]+a|0;b=J[f+12>>2];e=J[f+16>>2];if(b+3>>>0>=e>>>0)q=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3| -0]<<24);b=b+4|0;J[f+12>>2]=b;q=+(x(2,c),C())}if(e>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;r=+(x(2,c),C())}if(e>>>0<=b+3>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;k=+(x(2,c),C())}if(e>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4;A=+(x(2,c),C())}c=a+236|0;e=J[c>>2];ob:{if(!e)break ob;j=g&255;b=c;while(1){g=j>>>0>M[e+16>>2];b=g?b:e;e=J[(g?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)| -j>>>0>2])break ob;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=2)break ob;i=J[b+20>>2];if(!i)break ob;b=J[i+28>>2];if(b)J[J[a+120>>2]+20>>2]=b+4;h=i+4|0;J[J[a+120>>2]+24>>2]=h;b=J[J[a+120>>2]+688>>2];w=r+A;pb:{if(R(w)<2147483648){g=~~w;break pb}g=-2147483648}w=q+k;qb:{if(R(w)<2147483648){e=~~w;break qb}e=-2147483648}if(R(r)<2147483648)c=~~r;else c=-2147483648;f=(b|0)!=1;if(R(q)<2147483648)b=~~q;else b=-2147483648;rb:{if(!f){Dg(a,b,c,e,g,0,360);break rb}Dg(a,b,g,e,c,0,360)}Cg(a,1,0,1);b=J[a+ -208>>2];if(b){O[d+24>>3]=A;O[d+16>>3]=k;O[d+8>>3]=r;O[d>>3]=q;Ab[J[J[b>>2]+528>>2]](b,j,d)}c=J[i+28>>2];if(c){b=J[a+120>>2];if(J[b+20>>2]==(c+4|0))J[b+20>>2]=0}b=J[a+120>>2];if((h|0)==J[b+24>>2])J[b+24>>2]=0}}xb=d+32|0;H[a+213|0]=1;break p;case 25:sb:{if(b&16384){f=b&65535;r=0;z=0;c=xb-48|0;xb=c;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;h=J[a>>2]-12|0;g=J[h>>2];e=g+a|0;d=J[e+12>>2];b=J[e+16>>2];if(b>>>0>d+3>>>0){J[e+12>>2]=d+4;g=J[h>>2];e=g+a|0;b=J[e+16>>2];d=J[e+12>>2]}if(d+3>>>0>=b>>> -0)break sb;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+g|0)+12>>2]=d+4;if((b|0)!=2)break sb;g=J[h>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>=d>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,e),C())}O[c+16>>3]=k;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,e),C())}else k=0;O[c+24>>3]=k;if(d>>>0<=b+3>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,e), -C())}O[c+32>>3]=k;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;k=+(x(2,e),C())}else k=0;O[c+40>>3]=k;g=J[h>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+1>>>0>=d>>>0)q=0;else{e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;q=+(e|0)}if(d>>>0>b+1>>>0){e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;r=+(e|0)}if(d>>>0<=b+1>>>0)k=0;else{e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;k=+(e|0)}if(d>>>0>b+1>>>0){e=(K[b|0]|K[b+1|0]<<8)<<16>>16;J[g+12>>2]=b+2;z=+(e| -0)}e=Pb(48);J[c+4>>2]=e;b=e+48|0;J[c+12>>2]=b;O[e+40>>3]=r+z;k=q+k;O[e+32>>3]=k;O[e+24>>3]=r;O[e+16>>3]=k;O[e+8>>3]=r;O[e>>3]=q;J[195395]=0;J[c+8>>2]=b;ma(2069,a|0,f&255,c|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)!=1){b=J[c+4>>2];if(!b)break sb;J[c+8>>2]=b;Kb(b);break sb}break h}f=b&65535;r=0;z=0;c=xb-48|0;xb=c;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;h=J[a>>2]-12|0;g=J[h>>2];e=g+a|0;d=J[e+12>>2];b=J[e+16>>2];if(b>>>0>d+3>>>0){J[e+12>>2]=d+4;g=J[h>>2];e=g+a|0;b=J[e+16>>2];d=J[e+ -12>>2]}tb:{if(d+3>>>0>=b>>>0)break tb;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+g|0)+12>>2]=d+4;if((b|0)!=2)break tb;g=J[h>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>=d>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,e),C())}O[c+16>>3]=k;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,e),C())}else k=0;O[c+24>>3]=k;if(d>>>0<=b+3>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+ -4|0;J[g+12>>2]=b;k=+(x(2,e),C())}O[c+32>>3]=k;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;k=+(x(2,e),C())}else k=0;O[c+40>>3]=k;g=J[h>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>=d>>>0)q=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;q=+(x(2,e),C())}if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;r=+(x(2,e),C())}if(d>>>0<=b+3>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b= -b+4|0;J[g+12>>2]=b;k=+(x(2,e),C())}if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;z=+(x(2,e),C())}e=Pb(48);J[c+4>>2]=e;b=e+48|0;J[c+12>>2]=b;O[e+40>>3]=r+z;k=q+k;O[e+32>>3]=k;O[e+24>>3]=r;O[e+16>>3]=k;O[e+8>>3]=r;O[e>>3]=q;J[195395]=0;J[c+8>>2]=b;ma(2069,a|0,f&255,c|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break h;b=J[c+4>>2];if(!b)break tb;J[c+8>>2]=b;Kb(b)}}xb=c+48|0;H[a+213|0]=1;break p;case 26:ub:{if(b&2048)break ub;if(b&16384){n=b&65535;p=0;e=0;g= -xb-80|0;xb=g;J[g+72>>2]=0;J[g+76>>2]=0;b=g- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[g+56>>2]=0;J[g+60>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;l=J[a>>2]-12|0;i=J[l>>2];d=i+a|0;b=J[d+12>>2];c=J[d+16>>2];if(c>>>0>b+3>>>0){J[d+12>>2]=b+4;i=J[l>>2];b=i+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){p=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+i|0)+12>>2]=b+4;i=J[l>>2];b=i+a|0;c=J[b+16>>2];b=J[b+12>>2]}f=a+i|0;if(b+3>>>0>=c>>>0)k=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;k=+(x(2, -d),C())}O[g+48>>3]=k;if(b+3>>>0>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;k=+(x(2,d),C())}else k=0;O[g+56>>3]=k;if(b+3>>>0>=c>>>0)k=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;k=+(x(2,d),C())}O[g+64>>3]=k;if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4;k=+(x(2,c),C())}else k=0;O[g+72>>3]=k;c=0;b=J[l>>2]+a|0;d=J[b+12>>2];if(d+3>>>0>2]){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+12>> -2]=d+4}vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{if((p|0)!=2&(c|0)!=3)break Bb;d=0;J[g+44>>2]=0;J[g+36>>2]=0;J[g+40>>2]=0;i=0;if(c){Cb:{Db:{if(c>>>0>=1073741824){J[195395]=0;ea(2054,g+36|0);a=J[195395];J[195395]=0;if((a|0)==1)break Db;break vb}b=0;J[195395]=0;h=c<<2;e=_(1078,h|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break Cb}b=Z()|0;a=J[g+36>>2];if(!a)break e;J[g+40>>2]=a;Kb(a);break e}J[g+36>>2]=e;i=e+h|0;J[g+44>>2]=i;h=Nb(e,0,h);J[g+40>>2]=i;while(1){j=h+(b<<2)|0;u=0;m=J[l>>2]+a|0;p=J[m+12>>2];f=J[m+16>>2]; -Eb:{if(p+1>>>0>=f>>>0){v=0;break Eb}v=K[p|0]|K[p+1|0]<<8;p=p+2|0;J[m+12>>2]=p}I[j>>1]=v;if(f>>>0>p+1>>>0){u=K[p|0]|K[p+1|0]<<8;J[m+12>>2]=p+2}I[j+2>>1]=u;b=b+1|0;if((c|0)!=(b|0))continue;break}}J[g+20>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;Fb:{Gb:{if((e|0)!=(i|0)){b=i-e|0;c=b>>2;if(c>>>0>=1073741824){J[195395]=0;ea(2054,g+12|0);a=J[195395];J[195395]=0;if((a|0)!=1)break vb;break yb}J[195395]=0;d=_(1078,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break yb;J[g+12>>2]=d;J[g+20>>2]=(c<<2)+d;c=e;b=d;while(1){f= -L[c>>1]|L[c+2>>1]<<16;I[b>>1]=f;I[b+2>>1]=f>>>16;b=b+4|0;c=c+4|0;if((i|0)!=(c|0))continue;break}J[g+16>>2]=b;if((b|0)!=(d|0))break Gb}J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;break Fb}J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;b=b-d|0;h=b>>2;if(h>>>0>=268435456){J[195395]=0;ea(2056,g+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break vb;break zb}J[195395]=0;c=b<<2;f=_(1078,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break zb;J[g+24>>2]=f;J[g+32>>2]=f+(h<<4);b=0;m=Nb(f,0,c);J[g+28>>2]=m+c;c=h>>>0<=1?1:h;j=c& -1;if(h>>>0>=2){h=c&-2;i=0;while(1){f=m+(b<<4)|0;c=(b<<2)+d|0;O[f>>3]=I[c>>1];O[f+8>>3]=I[c+2>>1];c=b|1;f=m+(c<<4)|0;c=(c<<2)+d|0;O[f>>3]=I[c>>1];O[f+8>>3]=I[c+2>>1];b=b+2|0;i=i+2|0;if((h|0)!=(i|0))continue;break}}if(!j)break Fb;c=m+(b<<4)|0;b=(b<<2)+d|0;O[c>>3]=I[b>>1];O[c+8>>3]=I[b+2>>1]}J[195395]=0;ma(2069,a|0,n&255,b|0,g+48|0,g+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break Ab;b=J[g+24>>2];if(b){J[g+28>>2]=b;Kb(b)}if(d){J[g+16>>2]=d;Kb(d)}if(!e)break Bb;Kb(e)}xb=g+80|0;break ub}b=Z()|0;a=J[g+ -24>>2];if(a){J[g+28>>2]=a;Kb(a)}if(!d)break wb;break xb}b=Z()|0;a=J[g+24>>2];if(!a)break xb;J[g+28>>2]=a;Kb(a);break xb}b=Z()|0;d=J[g+12>>2];if(!d)break wb}J[g+16>>2]=d;Kb(d)}if(!e)break e;Kb(e);break e}B()}m=b&65535;p=0;i=0;g=xb-80|0;xb=g;J[g+72>>2]=0;J[g+76>>2]=0;b=g- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[g+56>>2]=0;J[g+60>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;o=J[a>>2]-12|0;c=J[o>>2];e=c+a|0;b=J[e+12>>2];d=J[e+16>>2];if(d>>>0>b+3>>>0){J[e+12>>2]=b+4;c=J[o>>2];b=c+a|0;d=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>> -0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+c|0)+12>>2]=b+4;c=J[o>>2];b=c+a|0;d=J[b+16>>2];b=J[b+12>>2]}e=a+c|0;if(b+3>>>0>=d>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b;k=+(x(2,c),C())}O[g+48>>3]=k;if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b;k=+(x(2,c),C())}else k=0;O[g+56>>3]=k;if(b+3>>>0>=d>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[e+12>>2]=b;k=+(x(2,c),C())}O[g+64>>3]= -k;if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4;k=+(x(2,c),C())}else k=0;O[g+72>>3]=k;d=0;b=J[o>>2]+a|0;c=J[b+12>>2];if(c+3>>>0>2]){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4}Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{if((i|0)!=2&(d|0)!=3)break Ob;c=0;J[g+44>>2]=0;J[g+36>>2]=0;J[g+40>>2]=0;e=0;if(d){Pb:{Qb:{if(d>>>0>=268435456){J[195395]=0;ea(2056,g+36|0);a=J[195395];J[195395]=0;if((a|0)==1)break Qb;break Ib}b=0;J[195395]=0;h=d<<4;e=_(1078,h|0)| -0;f=J[195395];J[195395]=0;if((f|0)!=1)break Pb}b=Z()|0;a=J[g+36>>2];if(!a)break e;J[g+40>>2]=a;Kb(a);break e}J[g+36>>2]=e;p=e+h|0;J[g+44>>2]=p;n=Nb(e,0,h);J[g+40>>2]=p;while(1){f=n+(b<<4)|0;l=J[o>>2]+a|0;i=J[l+12>>2];j=J[l+16>>2];if(i+3>>>0>=j>>>0)k=0;else{h=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+4|0;J[l+12>>2]=i;k=+(x(2,h),C())}O[f>>3]=k;if(j>>>0>i+3>>>0){h=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);J[l+12>>2]=i+4;k=+(x(2,h),C())}else k=0;O[f+8>>3]=k;b=b+1|0;if((d|0)!=(b|0))continue; -break}}J[g+20>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;Rb:{Sb:{if((e|0)!=(p|0)){b=p-e|0;d=b>>4;if(d>>>0>=268435456){J[195395]=0;ea(2056,g+12|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Ib;break Lb}J[195395]=0;c=_(1078,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Lb;J[g+12>>2]=c;J[g+20>>2]=(d<<4)+c;d=e;b=c;while(1){f=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=f;f=J[d+12>>2];J[b+8>>2]=J[d+8>>2];J[b+12>>2]=f;b=b+16|0;d=d+16|0;if((p|0)!=(d|0))continue;break}J[g+16>>2]=b;if((b|0)!=(c|0))break Sb}J[g+32>>2]=0;J[g+ -24>>2]=0;J[g+28>>2]=0;break Rb}J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;f=b-c|0;j=f>>4;if(j>>>0>=268435456){J[195395]=0;ea(2056,g+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Ib;break Mb}J[195395]=0;d=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Mb;J[g+24>>2]=d;J[g+32>>2]=d+(j<<4);i=0;o=Nb(d,0,f);J[g+28>>2]=o+f;d=j>>>0<=1?1:j;h=d&3;b=0;if(j>>>0>=4){f=d&-4;s=0;while(1){l=b<<4;n=l+o|0;j=c+l|0;d=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=d;d=J[j+12>>2];J[n+8>>2]=J[j+8>>2];J[n+12>>2]=d;d=l|16;n= -d+o|0;j=c+d|0;d=J[j+12>>2];J[n+8>>2]=J[j+8>>2];J[n+12>>2]=d;d=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=d;d=l|32;n=d+o|0;j=c+d|0;d=J[j+12>>2];J[n+8>>2]=J[j+8>>2];J[n+12>>2]=d;d=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=d;d=l|48;n=d+o|0;j=c+d|0;d=J[j+12>>2];J[n+8>>2]=J[j+8>>2];J[n+12>>2]=d;d=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=d;b=b+4|0;s=s+4|0;if((f|0)!=(s|0))continue;break}}if(!h)break Rb;while(1){d=b<<4;j=d+o|0;f=c+d|0;d=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=d;d=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=d;b= -b+1|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}J[195395]=0;ma(2069,a|0,m&255,b|0,g+48|0,g+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break Nb;b=J[g+24>>2];if(b){J[g+28>>2]=b;Kb(b)}if(c){J[g+16>>2]=c;Kb(c)}if(!e)break Ob;Kb(e)}xb=g+80|0;break Hb}b=Z()|0;a=J[g+24>>2];if(a){J[g+28>>2]=a;Kb(a)}if(!c)break Jb;break Kb}b=Z()|0;a=J[g+24>>2];if(!a)break Kb;J[g+28>>2]=a;Kb(a);break Kb}b=Z()|0;c=J[g+12>>2];if(!c)break Jb}J[g+16>>2]=c;Kb(c)}if(!e)break e;Kb(e);break e}B()}}H[a+213|0]=1;break p;case 12:Tb:{if(b& -2048)break Tb;if(b&16384){D=b&65535;g=xb+-64|0;xb=g;Ub:{Vb:{Wb:{Xb:{Yb:{Zb:{_b:{$b:{ac:{h=J[a>>2]-12|0;b=J[h>>2]+a|0;c=J[b+12>>2];bc:{if(c+3>>>0>=M[b+16>>2])break bc;n=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;if(!n)break bc;J[g+60>>2]=0;J[g+52>>2]=0;J[g+56>>2]=0;if(n>>>0>=1073741824){J[195395]=0;ea(2054,g+52|0);a=J[195395];J[195395]=0;if((a|0)==1)break g;break Ub}J[195395]=0;G=n<<2;e=_(1078,G|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break g;S=D&255;J[g+52>>2]=e;T=e+G|0;J[g+60>> -2]=T;c=0;d=Nb(e,0,G);J[g+56>>2]=T;while(1){i=d+(c<<2)|0;j=J[h>>2]+a|0;e=J[j+12>>2];f=J[j+16>>2];cc:{if(e+1>>>0>=f>>>0){b=0;break cc}b=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[j+12>>2]=e}I[i>>1]=b;b=0;if(f>>>0>e+1>>>0){b=K[e|0]|K[e+1|0]<<8;J[j+12>>2]=e+2}I[i+2>>1]=b;c=c+1|0;if((n|0)!=(c|0))continue;break}e=a+236|0;c=J[e>>2];dc:{if(!c)break dc;b=e;while(1){f=S>>>0>M[c+16>>2];b=f?b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(e|0)|S>>>0>2])break dc;e=J[b+20>>2];c=J[J[e>>2]+12>>2];J[195395]=0;e=_(c| -0,e|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ac;if((e|0)!=2)break dc;u=J[b+20>>2];if(!u)break dc;b=J[a+120>>2];J[195395]=0;l=u+4|0;J[b+24>>2]=l;b=J[195395];J[195395]=0;if((b|0)==1)break ac;c=J[u+28>>2];if(c){b=J[a+120>>2];J[195395]=0;J[b+20>>2]=c+4;b=J[195395];J[195395]=0;if((b|0)==1)break ac}J[g+36>>2]=0;J[g+28>>2]=0;J[g+32>>2]=0;s=G>>2;if(s>>>0>=1073741824){J[195395]=0;ea(2054,g+28|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Ub;break Wb}J[195395]=0;e=_(1078,G|0)|0;b=J[195395];J[195395]=0; -if((b|0)==1)break Wb;J[g+28>>2]=e;J[g+36>>2]=e+(s<<2);p=G-4|0;m=(p>>>2|0)+1|0;h=m&7;ec:{if(!h){b=d;c=e;break ec}i=0;b=d;c=e;while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;c=c+4|0;b=b+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(p>>>0>=28)while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;f=L[b+4>>1]|L[b+6>>1]<<16;I[c+4>>1]=f;I[c+6>>1]=f>>>16;f=L[b+8>>1]|L[b+10>>1]<<16;I[c+8>>1]=f;I[c+10>>1]=f>>>16;f=L[b+12>>1]|L[b+14>>1]<<16;I[c+12>>1]=f;I[c+14>>1]=f>>>16;f=L[b+16>>1]|L[b+ -18>>1]<<16;I[c+16>>1]=f;I[c+18>>1]=f>>>16;f=L[b+20>>1]|L[b+22>>1]<<16;I[c+20>>1]=f;I[c+22>>1]=f>>>16;f=L[b+24>>1]|L[b+26>>1]<<16;I[c+24>>1]=f;I[c+26>>1]=f>>>16;f=L[b+28>>1]|L[b+30>>1]<<16;I[c+28>>1]=f;I[c+30>>1]=f>>>16;c=c+32|0;b=b+32|0;if((T|0)!=(b|0))continue;break}n=(c|0)==(e|0);fc:{if(!n){J[g+48>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;t=c-e|0;h=t>>2;if(h>>>0>=268435456){J[195395]=0;ea(2056,g+40|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Ub;break Yb}J[195395]=0;o=t<<2;f=_(1078,o|0)|0;b=J[195395];J[195395]= -0;if((b|0)==1)break Yb;J[g+40>>2]=f;J[g+48>>2]=f+(h<<4);c=0;F=Nb(f,0,o);b=h>>>0<=1?1:h;j=b&1;if(h>>>0>=2){h=b&-2;i=0;while(1){f=F+(c<<4)|0;b=e+(c<<2)|0;O[f>>3]=I[b>>1];O[f+8>>3]=I[b+2>>1];b=c|1;f=F+(b<<4)|0;b=e+(b<<2)|0;O[f>>3]=I[b>>1];O[f+8>>3]=I[b+2>>1];c=c+2|0;i=i+2|0;if((h|0)!=(i|0))continue;break}}if(j){f=F+(c<<4)|0;b=e+(c<<2)|0;O[f>>3]=I[b>>1];O[f+8>>3]=I[b+2>>1]}gc:{if(!n){q=O[F+8>>3];k=O[F>>3];J[195395]=0;qa(2057,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break gc;if(t>>>0>=5){f=o>>4; -c=1;while(1){b=F+(c<<4)|0;q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2070,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break gc;c=c+1|0;if(f>>>0>c>>>0)continue;break}}if(D&8192){J[195395]=0;ea(2052,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break gc}J[195395]=0;ia(2059,a|0,1,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break gc}J[g+44>>2]=F;Kb(F);break fc}c=Z()|0;J[g+44>>2]=F;Kb(F);break Xb}J[g+48>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0}J[g+32>>2]=e;Kb(e);n=J[a+208>>2];if(n){J[g+12>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;if(s>>> -0>=1073741824){J[195395]=0;ea(2054,g+4|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Ub;break _b}J[195395]=0;e=_(1078,G|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break _b;J[g+8>>2]=e;J[g+4>>2]=e;J[g+12>>2]=(s<<2)+e;h=m&7;hc:{if(!h){b=d;c=e;break hc}i=0;b=d;c=e;while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;c=c+4|0;b=b+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(p>>>0>=28)while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;f=L[b+4>>1]|L[b+6>>1]<<16;I[c+4>>1]=f;I[c+6>>1]=f>>>16; -f=L[b+8>>1]|L[b+10>>1]<<16;I[c+8>>1]=f;I[c+10>>1]=f>>>16;f=L[b+12>>1]|L[b+14>>1]<<16;I[c+12>>1]=f;I[c+14>>1]=f>>>16;f=L[b+16>>1]|L[b+18>>1]<<16;I[c+16>>1]=f;I[c+18>>1]=f>>>16;f=L[b+20>>1]|L[b+22>>1]<<16;I[c+20>>1]=f;I[c+22>>1]=f>>>16;f=L[b+24>>1]|L[b+26>>1]<<16;I[c+24>>1]=f;I[c+26>>1]=f>>>16;f=L[b+28>>1]|L[b+30>>1]<<16;I[c+28>>1]=f;I[c+30>>1]=f>>>16;c=c+32|0;b=b+32|0;if((T|0)!=(b|0))continue;break}ic:{if((c|0)==(e|0)){J[g+24>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;break ic}J[g+24>>2]=0;J[g+16>>2]=0;J[g+20>> -2]=0;b=c-e|0;i=b>>2;if(i>>>0>=268435456){J[195395]=0;ea(2056,g+16|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Ub;break $b}J[195395]=0;f=b<<2;h=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break $b;J[g+16>>2]=h;J[g+24>>2]=h+(i<<4);c=0;m=Nb(h,0,f);J[g+20>>2]=m+f;b=i>>>0<=1?1:i;j=b&1;if(i>>>0>=2){h=b&-2;i=0;while(1){f=m+(c<<4)|0;b=(c<<2)+e|0;O[f>>3]=I[b>>1];O[f+8>>3]=I[b+2>>1];b=c|1;f=m+(b<<4)|0;b=(b<<2)+e|0;O[f>>3]=I[b>>1];O[f+8>>3]=I[b+2>>1];c=c+2|0;i=i+2|0;if((h|0)!=(i|0))continue;break}}if(!j)break ic; -f=m+(c<<4)|0;b=(c<<2)+e|0;O[f>>3]=I[b>>1];O[f+8>>3]=I[b+2>>1]}b=J[J[n>>2]+540>>2];J[195395]=0;fa(b|0,n|0,S|0,g+16|0);b=J[195395];J[195395]=0;if((b|0)==1)break $b;b=J[g+16>>2];if(b){J[g+20>>2]=b;Kb(b)}J[g+8>>2]=e;Kb(e)}b=J[u+28>>2];if(b){c=J[a+120>>2];J[195395]=0;if(J[c+20>>2]==(b+4|0))J[c+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break ac}b=J[a+120>>2];J[195395]=0;if((l|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break ac;H[a+213|0]=1}Kb(d)}xb=g- -64|0;break Tb}c=Z()|0;break Vb}c= -Z()|0;a=J[g+16>>2];if(!a)break Zb;J[g+20>>2]=a;Kb(a);break Zb}c=Z()|0;e=J[g+4>>2];if(!e)break Vb}J[g+8>>2]=e;Kb(e);break Vb}c=Z()|0;a=J[g+40>>2];if(!a)break Xb;J[g+44>>2]=a;Kb(a)}J[g+32>>2]=e;Kb(e);break Vb}c=Z()|0;a=J[g+28>>2];if(!a)break Vb;J[g+32>>2]=a;Kb(a)}Kb(d);break k}B()}t=b&65535;g=xb+-64|0;xb=g;jc:{kc:{lc:{mc:{nc:{oc:{pc:{qc:{rc:{sc:{h=J[a>>2]-12|0;b=J[h>>2]+a|0;c=J[b+12>>2];tc:{if(c+3>>>0>=M[b+16>>2])break tc;n=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;if(!n)break tc; -J[g+60>>2]=0;J[g+52>>2]=0;J[g+56>>2]=0;if(n>>>0>=268435456){J[195395]=0;ea(2056,g+52|0);a=J[195395];J[195395]=0;if((a|0)==1)break g;break kc}J[195395]=0;F=n<<4;e=_(1078,F|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break g;T=t&255;J[g+52>>2]=e;u=e+F|0;J[g+60>>2]=u;c=0;d=Nb(e,0,F);J[g+56>>2]=u;while(1){b=d+(c<<4)|0;j=J[h>>2]+a|0;i=J[j+12>>2];f=J[j+16>>2];if(i+3>>>0>=f>>>0)k=0;else{e=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+4|0;J[j+12>>2]=i;k=+(x(2,e),C())}O[b>>3]=k;if(f>>>0>i+3>>>0){e=K[i|0]| -K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);J[j+12>>2]=i+4;k=+(x(2,e),C())}else k=0;O[b+8>>3]=k;c=c+1|0;if((n|0)!=(c|0))continue;break}e=a+236|0;c=J[e>>2];uc:{if(!c)break uc;b=e;while(1){f=T>>>0>M[c+16>>2];b=f?b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(e|0)|T>>>0>2])break uc;e=J[b+20>>2];c=J[J[e>>2]+12>>2];J[195395]=0;e=_(c|0,e|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break sc;if((e|0)!=2)break uc;s=J[b+20>>2];if(!s)break uc;b=J[a+120>>2];J[195395]=0;m=s+4|0;J[b+24>>2]=m;b=J[195395]; -J[195395]=0;if((b|0)==1)break sc;c=J[s+28>>2];if(c){b=J[a+120>>2];J[195395]=0;J[b+20>>2]=c+4;b=J[195395];J[195395]=0;if((b|0)==1)break sc}J[g+36>>2]=0;J[g+28>>2]=0;J[g+32>>2]=0;D=F>>4;if(D>>>0>=268435456){J[195395]=0;ea(2056,g+28|0);a=J[195395];J[195395]=0;if((a|0)!=1)break kc;break mc}J[195395]=0;e=_(1078,F|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break mc;J[g+28>>2]=e;J[g+36>>2]=e+(D<<4);o=F-16|0;n=(o>>>4|0)+1|0;h=n&3;vc:{if(!h){b=d;c=e;break vc}i=0;b=d;c=e;while(1){f=J[b+4>>2];J[c>>2]=J[b>>2]; -J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;c=c+16|0;b=b+16|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(o>>>0>=48)while(1){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;f=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=f;f=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=f;f=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=f;f=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+ -60>>2]=f;c=c- -64|0;b=b- -64|0;if((u|0)!=(b|0))continue;break}j=(c|0)==(e|0);wc:{if(!j){J[g+48>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;G=c-e|0;f=G>>4;if(f>>>0>=268435456){J[195395]=0;ea(2056,g+40|0);a=J[195395];J[195395]=0;if((a|0)!=1)break kc;break oc}J[195395]=0;c=_(1078,G|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break oc;J[g+40>>2]=c;J[g+48>>2]=c+(f<<4);i=0;N=Nb(c,0,G);b=f>>>0<=1?1:f;l=b&3;c=0;if(f>>>0>=4){h=b&-4;v=0;while(1){S=c<<4;f=S+N|0;p=e+S|0;b=J[p+4>>2];J[f>>2]=J[p>>2];J[f+4>>2]=b;b=J[p+12>>2]; -J[f+8>>2]=J[p+8>>2];J[f+12>>2]=b;b=S|16;f=b+N|0;p=b+e|0;b=J[p+12>>2];J[f+8>>2]=J[p+8>>2];J[f+12>>2]=b;b=J[p+4>>2];J[f>>2]=J[p>>2];J[f+4>>2]=b;b=S|32;f=b+N|0;p=b+e|0;b=J[p+12>>2];J[f+8>>2]=J[p+8>>2];J[f+12>>2]=b;b=J[p+4>>2];J[f>>2]=J[p>>2];J[f+4>>2]=b;b=S|48;f=b+N|0;p=b+e|0;b=J[p+12>>2];J[f+8>>2]=J[p+8>>2];J[f+12>>2]=b;b=J[p+4>>2];J[f>>2]=J[p>>2];J[f+4>>2]=b;c=c+4|0;v=v+4|0;if((h|0)!=(v|0))continue;break}}if(l)while(1){b=c<<4;f=b+N|0;h=b+e|0;b=J[h+4>>2];J[f>>2]=J[h>>2];J[f+4>>2]=b;b=J[h+12>>2];J[f+ -8>>2]=J[h+8>>2];J[f+12>>2]=b;c=c+1|0;i=i+1|0;if((l|0)!=(i|0))continue;break}xc:{if(!j){q=O[N+8>>3];k=O[N>>3];J[195395]=0;qa(2057,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break xc;if(G>>>0>=17){f=G>>4;c=1;while(1){b=N+(c<<4)|0;q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2070,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break xc;c=c+1|0;if(f>>>0>c>>>0)continue;break}}if(t&8192){J[195395]=0;ea(2052,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break xc}J[195395]=0;ia(2059,a|0,1,0,1);b=J[195395];J[195395]= -0;if((b|0)==1)break xc}J[g+44>>2]=N;Kb(N);break wc}c=Z()|0;J[g+44>>2]=N;Kb(N);break nc}J[g+48>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0}J[g+32>>2]=e;Kb(e);l=J[a+208>>2];if(l){J[g+12>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;if(D>>>0>=268435456){J[195395]=0;ea(2056,g+4|0);a=J[195395];J[195395]=0;if((a|0)!=1)break kc;break qc}J[195395]=0;e=_(1078,F|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break qc;J[g+8>>2]=e;J[g+4>>2]=e;J[g+12>>2]=(D<<4)+e;h=n&3;yc:{if(!h){b=d;c=e;break yc}i=0;b=d;c=e;while(1){f=J[b+4>>2];J[c>>2]=J[b>> -2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;c=c+16|0;b=b+16|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(o>>>0>=48)while(1){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;f=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=f;f=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=f;f=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=f;f=J[b+60>>2];J[c+56>>2]=J[b+56>>2]; -J[c+60>>2]=f;c=c- -64|0;b=b- -64|0;if((u|0)!=(b|0))continue;break}zc:{if((c|0)==(e|0)){J[g+24>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;break zc}J[g+24>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;f=c-e|0;h=f>>4;if(h>>>0>=268435456){J[195395]=0;ea(2056,g+16|0);a=J[195395];J[195395]=0;if((a|0)!=1)break kc;break rc}J[195395]=0;c=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break rc;J[g+16>>2]=c;J[g+24>>2]=c+(h<<4);i=0;t=Nb(c,0,f);J[g+20>>2]=t+f;b=h>>>0<=1?1:h;j=b&3;c=0;if(h>>>0>=4){h=b&-4;v=0;while(1){o=c<<4;f=o+t|0; -n=e+o|0;b=J[n+4>>2];J[f>>2]=J[n>>2];J[f+4>>2]=b;b=J[n+12>>2];J[f+8>>2]=J[n+8>>2];J[f+12>>2]=b;b=o|16;f=b+t|0;n=b+e|0;b=J[n+12>>2];J[f+8>>2]=J[n+8>>2];J[f+12>>2]=b;b=J[n+4>>2];J[f>>2]=J[n>>2];J[f+4>>2]=b;b=o|32;f=b+t|0;n=b+e|0;b=J[n+12>>2];J[f+8>>2]=J[n+8>>2];J[f+12>>2]=b;b=J[n+4>>2];J[f>>2]=J[n>>2];J[f+4>>2]=b;b=o|48;f=b+t|0;n=b+e|0;b=J[n+12>>2];J[f+8>>2]=J[n+8>>2];J[f+12>>2]=b;b=J[n+4>>2];J[f>>2]=J[n>>2];J[f+4>>2]=b;c=c+4|0;v=v+4|0;if((h|0)!=(v|0))continue;break}}if(!j)break zc;while(1){b=c<<4;f= -b+t|0;h=b+e|0;b=J[h+4>>2];J[f>>2]=J[h>>2];J[f+4>>2]=b;b=J[h+12>>2];J[f+8>>2]=J[h+8>>2];J[f+12>>2]=b;c=c+1|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}b=J[J[l>>2]+540>>2];J[195395]=0;fa(b|0,l|0,T|0,g+16|0);b=J[195395];J[195395]=0;if((b|0)==1)break rc;b=J[g+16>>2];if(b){J[g+20>>2]=b;Kb(b)}J[g+8>>2]=e;Kb(e)}b=J[s+28>>2];if(b){c=J[a+120>>2];J[195395]=0;if(J[c+20>>2]==(b+4|0))J[c+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break sc}b=J[a+120>>2];J[195395]=0;if((m|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395]; -J[195395]=0;if((b|0)==1)break sc;H[a+213|0]=1}Kb(d)}xb=g- -64|0;break jc}c=Z()|0;break lc}c=Z()|0;a=J[g+16>>2];if(!a)break pc;J[g+20>>2]=a;Kb(a);break pc}c=Z()|0;e=J[g+4>>2];if(!e)break lc}J[g+8>>2]=e;Kb(e);break lc}c=Z()|0;a=J[g+40>>2];if(!a)break nc;J[g+44>>2]=a;Kb(a)}J[g+32>>2]=e;Kb(e);break lc}c=Z()|0;a=J[g+28>>2];if(!a)break lc;J[g+32>>2]=a;Kb(a)}Kb(d);break k}B()}}H[a+213|0]=1;break p;case 20:e=0;i=xb-32|0;xb=i;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){e=K[d|0]|K[d+1|0]<<8| -(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}b=b&65535;Ac:{Bc:{Cc:{Dc:{c=a+236|0;d=J[c>>2];Ec:{Fc:{if(!d)break Fc;h=b&255;b=c;while(1){g=h>>>0>M[d+16>>2];b=g?b:d;d=J[(g?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|h>>>0>2])break Fc;d=J[b+20>>2];if((Ab[J[J[d>>2]+12>>2]](d)|0)!=3)break Fc;f=J[b+20>>2];if(!f)break Fc;d=J[c>>2];if(!d)break Ec;b=c;while(1){g=M[d+16>>2]>>0;b=g?b:d;d=J[(g?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|M[b+16>>2]>e>>>0)break Ec;c=J[b+20>>2];if((Ab[J[J[c>>2]+ -12>>2]](c)|0)!=2)break Ec;g=J[b+20>>2];if(!g)break Ec;d=g+4|0;J[J[a+120>>2]+24>>2]=d;b=J[g+28>>2];if(b)J[J[a+120>>2]+20>>2]=b+4;c=i+28|0;J[c>>2]=391824;J[195395]=0;n=i+16|0;J[n+8>>2]=0;J[n>>2]=0;J[n+4>>2]=0;b=J[195395];J[195395]=0;Gc:{if((b|0)!=1){J[195395]=0;j=i+4|0;J[j+8>>2]=0;J[j>>2]=0;J[j+4>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Dc;J[195395]=0;ma(2071,c|0,n|0,j|0,f+4|0,g|0);b=J[195395];J[195395]=0;if((b|0)==1)break Cc;b=J[a+208>>2];J[195395]=0;ma(2072,n|0,b|0,1,0,-1);b=J[195395];J[195395]= -0;if((b|0)==1)break Cc;b=J[a+208>>2];J[195395]=0;ma(2072,j|0,b|0,0,1,-1);b=J[195395];J[195395]=0;if((b|0)==1)break Cc;c=J[a+208>>2];if(!c)break Gc;b=J[J[c>>2]+544>>2];J[195395]=0;ia(b|0,c|0,h|0,e|0,n|0);b=J[195395];J[195395]=0;if((b|0)!=1)break Gc;break Cc}d=Z()|0;break i}b=J[g+28>>2];if(b){c=J[a+120>>2];J[195395]=0;if(J[c+20>>2]==(b+4|0))J[c+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Cc}b=J[a+120>>2];J[195395]=0;if((d|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Cc; -qd(j);qd(n)}H[a+213|0]=1}xb=i+32|0;break Ac}d=Z()|0;break Bc}d=Z()|0;qd(j)}qd(n);break i}break p;case 16:Hc:{if(b&16384){p=b&65535;r=0;A=0;d=xb-32|0;xb=d;h=J[a>>2]-12|0;e=J[h>>2];f=e+a|0;b=J[f+12>>2];c=J[f+16>>2];if(c>>>0<=b+3>>>0)w=0;else{g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4;e=J[h>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2];w=+(x(2,g),C())}if(b+3>>>0>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+e|0)+12>>2]=b+4;e=J[h>>2];b=e+a|0;c=J[b+16>>2];A=+(x(2,g),C());b= -J[b+12>>2]}g=a+e|0;if(b+1>>>0>=c>>>0)q=0;else{e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;q=+(e|0)}if(b+1>>>0>>0){e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;r=+(e|0)}if(b+1>>>0>=c>>>0)k=0;else{e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;k=+(e|0)}if(b+1>>>0>>0){c=(K[b|0]|K[b+1|0]<<8)<<16>>16;J[g+12>>2]=b+2;y=+(c|0)}else y=0;break Hc}p=b&65535;r=0;A=0;d=xb-32|0;xb=d;h=J[a>>2]-12|0;e=J[h>>2];f=e+a|0;b=J[f+12>>2];c=J[f+16>>2];if(c>>>0<=b+3>>>0)w=0;else{g=K[b|0]|K[b+1|0]<< -8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4;e=J[h>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2];w=+(x(2,g),C())}if(b+3>>>0>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+e|0)+12>>2]=b+4;e=J[h>>2];b=e+a|0;c=J[b+16>>2];A=+(x(2,g),C());b=J[b+12>>2]}g=a+e|0;if(b+3>>>0>=c>>>0)q=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;q=+(x(2,e),C())}if(b+3>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;r=+(x(2,e),C())}if(b+3>>>0>=c>>>0)k=0;else{e= -K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,e),C())}if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;y=+(x(2,c),C())}else y=0}b=J[a+208>>2];if(b){O[d+24>>3]=y;O[d+16>>3]=k;O[d+8>>3]=r;O[d>>3]=q;Ab[J[J[b>>2]+548>>2]](b,p&255,w,A,d)}xb=d+32|0;H[a+213|0]=1;break p;case 10:Ic:{if(b&16384){b=b&65535;d=xb-16|0;xb=d;Jc:{Kc:{c=J[J[a>>2]-12>>2]+a|0;e=J[c+12>>2];Lc:{if(e+3>>>0>=M[c+16>>2])break Lc;f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<< -24);J[c+12>>2]=e+4;if(!f)break Lc;c=a+236|0;e=J[c>>2];if(!e)break Lc;i=b&255;b=c;while(1){g=i>>>0>M[e+16>>2];b=g?b:e;e=J[(g?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)|i>>>0>2])break Lc;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=2)break Lc;h=J[b+20>>2];if(!h)break Lc;e=h+4|0;J[J[a+120>>2]+24>>2]=e;b=J[h+28>>2];if(b)J[J[a+120>>2]+20>>2]=b+4;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;Mc:{Nc:{if(f>>>0>=134217728){J[195395]=0;ea(2073,d+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break Nc;B()}J[195395]= -0;c=f<<5;g=_(1078,c|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Mc}e=Z()|0;a=J[d+4>>2];if(!a)break Jc;J[d+8>>2]=a;Kb(a);break Jc}J[d+4>>2]=g;b=c+g|0;J[d+12>>2]=b;Nb(g,0,c);J[d+8>>2]=b;c=f>>>0<=1?1:f;g=0;while(1){j=J[J[a>>2]-12>>2]+a|0;b=J[j+12>>2];f=J[j+16>>2];Oc:{if(b+1>>>0>=f>>>0){v=0;break Oc}v=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[j+12>>2]=b}s=0;Pc:{if(f>>>0<=b+1>>>0){D=0;break Pc}D=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[j+12>>2]=b}if(f>>>0>b+1>>>0){s=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0; -J[j+12>>2]=b}u=0;if(f>>>0>b+1>>>0){u=(K[b|0]|K[b+1|0]<<8)<<16>>16;J[j+12>>2]=b+2}b=g<<5;f=b+J[d+4>>2]|0;O[f+24>>3]=u<<16>>16;O[f+16>>3]=s<<16>>16;O[f+8>>3]=D<<16>>16;O[f>>3]=v<<16>>16;J[195395]=0;ia(2074,a|0,b+J[d+4>>2]|0,1,0);b=J[195395];J[195395]=0;if((b|0)==1)break Kc;g=g+1|0;if((c|0)!=(g|0))continue;break}c=J[a+208>>2];if(c){b=J[J[c>>2]+552>>2];J[195395]=0;fa(b|0,c|0,i|0,d+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break Kc}b=J[h+28>>2];if(b){c=J[a+120>>2];J[195395]=0;if(J[c+20>>2]==(b+4|0))J[c+ -20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Kc}b=J[a+120>>2];J[195395]=0;if((e|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Kc;b=J[d+4>>2];if(!b)break Lc;J[d+8>>2]=b;Kb(b)}xb=d+16|0;break Ic}e=Z()|0;a=J[d+4>>2];if(!a)break Jc;break d}ba(e|0);B()}b=b&65535;d=xb-16|0;xb=d;Qc:{Rc:{Sc:{c=J[J[a>>2]-12>>2]+a|0;e=J[c+12>>2];Tc:{if(e+3>>>0>=M[c+16>>2])break Tc;h=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[c+12>>2]=e+4;if(!h)break Tc;c=a+236|0;e=J[c>>2];if(!e)break Tc; -j=b&255;b=c;while(1){g=j>>>0>M[e+16>>2];b=g?b:e;e=J[(g?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)|j>>>0>2])break Tc;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=2)break Tc;i=J[b+20>>2];if(!i)break Tc;f=i+4|0;J[J[a+120>>2]+24>>2]=f;b=J[i+28>>2];if(b)J[J[a+120>>2]+20>>2]=b+4;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;Uc:{Vc:{if(h>>>0>=134217728){J[195395]=0;ea(2073,d+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break Vc;B()}J[195395]=0;c=h<<5;e=_(1078,c|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Uc}e= -Z()|0;a=J[d+4>>2];if(!a)break Rc;J[d+8>>2]=a;Kb(a);break Rc}J[d+4>>2]=e;b=c+e|0;J[d+12>>2]=b;Nb(e,0,c);J[d+8>>2]=b;e=h>>>0<=1?1:h;g=0;while(1){r=0;n=J[J[a>>2]-12>>2]+a|0;b=J[n+12>>2];h=J[n+16>>2];if(b+3>>>0>=h>>>0)q=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[n+12>>2]=b;q=+(x(2,c),C())}if(h>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[n+12>>2]=b;r=+(x(2,c),C())}z=0;if(h>>>0<=b+3>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0; -J[n+12>>2]=b;k=+(x(2,c),C())}if(h>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[n+12>>2]=b+4;z=+(x(2,c),C())}b=g<<5;c=b+J[d+4>>2]|0;O[c+24>>3]=z;O[c+16>>3]=k;O[c+8>>3]=r;O[c>>3]=q;J[195395]=0;ia(2074,a|0,b+J[d+4>>2]|0,1,0);b=J[195395];J[195395]=0;if((b|0)==1)break Sc;g=g+1|0;if((e|0)!=(g|0))continue;break}c=J[a+208>>2];if(c){b=J[J[c>>2]+552>>2];J[195395]=0;fa(b|0,c|0,j|0,d+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break Sc}b=J[i+28>>2];if(b){c=J[a+120>>2];J[195395]=0;if(J[c+20>>2]== -(b+4|0))J[c+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Sc}b=J[a+120>>2];J[195395]=0;if((f|0)==J[b+24>>2])J[b+24>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Sc;b=J[d+4>>2];if(!b)break Tc;J[d+8>>2]=b;Kb(b)}xb=d+16|0;break Qc}e=Z()|0;a=J[d+4>>2];if(!a)break Rc;break d}ba(e|0);B()}}H[a+213|0]=1;break p;case 27:n=b&65535;g=0;p=0;d=xb+-64|0;xb=d;J[d+56>>2]=0;J[d+60>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;i=J[a>>2]-12|0;c=J[i>>2];f=c+a|0;e=J[f+12>> -2];b=J[f+16>>2];if(b>>>0>e+3>>>0){g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[f+12>>2]=e+4;c=J[i>>2];e=c+a|0;b=J[e+16>>2];e=J[e+12>>2]}if(e+3>>>0>>0){p=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[(a+c|0)+12>>2]=e+4;c=J[i>>2];e=c+a|0;b=J[e+16>>2];e=J[e+12>>2]}Wc:{Xc:{Yc:{if(e+3>>>0>=b>>>0)break Yc;h=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[(a+c|0)+12>>2]=e+4;if(!h)break Yc;f=J[a+116>>2];j=J[i>>2]+a|0;b=J[j+12>>2];e=J[j+16>>2];if(b+3>>>0>=e>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+ -2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b;k=+(x(2,c),C())}O[d+32>>3]=k;if(e>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b;k=+(x(2,c),C())}else k=0;O[d+40>>3]=k;if(e>>>0<=b+3>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b;k=+(x(2,c),C())}O[d+48>>3]=k;if(e>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[j+12>>2]=b+4;k=+(x(2,c),C())}else k=0;O[d+56>>3]=k;e=0;b=f-28|0;l=b>>>0>>0?b:h;b=l+1|0;o=Pb((b|0)<0?-1: -b<<1);I[o+(l<<1)>>1]=0;m=J[i>>2]+a|0;j=J[m+16>>2];b=J[m+12>>2];c=(j-b|0)/2|0;h=c>>>0>>0?c:l;Zc:{if(!h)break Zc;if((h|0)!=1){f=h&-2;i=0;while(1){_c:{if(j>>>0<=b+1>>>0){c=0;break _c}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[m+12>>2]=b}I[o+(e<<1)>>1]=c;c=0;if(j>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[m+12>>2]=b}I[o+((e|1)<<1)>>1]=c;e=e+2|0;i=i+2|0;if((f|0)!=(i|0))continue;break}}if(!(h&1))break Zc;c=0;if(j>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[m+12>>2]=b+2}I[o+(e<<1)>>1]=c}J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>> -2]=0;J[195395]=0;fa(2061,d+4|0,o|0,l|0);b=J[195395];J[195395]=0;if((b|0)==1)break Xc;if(H[d+27|0]<0)Kb(J[d+16>>2]);J[d+24>>2]=J[d+12>>2];b=J[d+8>>2];J[d+16>>2]=J[d+4>>2];J[d+20>>2]=b;Kb(o);$c:{if(!J[a+208>>2])break $c;c=a+236|0;e=J[c>>2];if(!e)break $c;m=n&255;b=c;while(1){f=m>>>0>M[e+16>>2];b=f?b:e;e=J[(f?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)|m>>>0>2])break $c;f=J[b+20>>2];e=J[J[f>>2]+12>>2];J[195395]=0;f=_(e|0,f|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Xc;if((f|0)!=6)break $c; -e=J[b+20>>2];if(!e)break $c;b=J[a+120>>2];i=0;J[195395]=0;j=e+4|0;J[b+28>>2]=j;b=J[195395];J[195395]=0;if((b|0)==1)break Xc;e=J[c>>2];ad:{if(!e)break ad;b=c;while(1){f=M[e+16>>2]

>>0;b=f?b:e;e=J[(f?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)|M[b+16>>2]>p>>>0)break ad;f=J[b+20>>2];e=J[J[f>>2]+12>>2];J[195395]=0;f=_(e|0,f|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Xc;if((f|0)!=7)break ad;i=J[b+20>>2]}b=J[a+120>>2];J[195395]=0;h=J[b+608>>2];b=J[195395];J[195395]=0;if((b|0)==1)break Xc;bd:{if(!i)break bd; -e=0;cd:{dd:switch(J[i+8>>2]-1|0){case 0:O[d+32>>3]=O[d+32>>3]+O[d+48>>3]*.5;e=6;break cd;case 1:break dd;default:break cd}O[d+32>>3]=O[d+48>>3]+O[d+32>>3];e=2}ed:{fd:{gd:switch(J[i+12>>2]-1|0){case 0:r=O[d+56>>3]*.5;z=O[d+40>>3];e=e|1536;break fd;case 1:break gd;default:break ed}r=O[d+40>>3];z=O[d+56>>3];e=e|512}O[d+40>>3]=z+r}b=J[a+120>>2];J[195395]=0;J[b+608>>2]=e;b=J[195395];J[195395]=0;if((b|0)!=1)break bd;break Xc}hd:{if(n<<16>>16<0){J[195395]=0;e=d+4|0;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]= -0;b=J[195395];J[195395]=0;if((b|0)==1)break Xc;H[e+3|0]=g>>>24;H[e|0]=g>>>16;b=g<<8|(g&65280)>>>8;H[e+1|0]=b;H[e+2|0]=b>>>8;c=J[a+120>>2];J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Xc;J[195395]=0;H[d|0]=K[c+600|0];H[d+1|0]=K[c+601|0];H[d+2|0]=K[c+602|0];H[d+3|0]=K[c+603|0];c=d;b=J[195395];J[195395]=0;if((b|0)==1)break Xc;b=J[a+120>>2];J[195395]=0;H[b+600|0]=K[e|0];H[b+601|0]=K[e+1|0];H[b+602|0]=K[e+2|0];H[b+603|0]=K[e+3|0];b=J[195395];J[195395]=0;if((b|0)==1)break Xc;e=J[a+208>>2];b=J[J[e>> -2]+20>>2];J[195395]=0;f=b;i=e;e=c+16|0;b=K[c+27|0];Ka(f|0,i|0,e|0,(b<<24>>24<0?J[c+20>>2]:b)|0,+O[c+32>>3],+O[c+40>>3],0,2,1,1);break hd}e=J[c>>2];if(!e)break $c;b=c;while(1){f=M[e+16>>2]>>0;b=f?b:e;e=J[(f?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)|M[b+16>>2]>g>>>0)break $c;e=J[b+20>>2];c=J[J[e>>2]+12>>2];J[195395]=0;e=_(c|0,e|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Xc;if((e|0)!=1)break $c;c=J[b+20>>2];if(!c)break $c;J[195395]=0;e=d+4|0;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0;b= -J[195395];J[195395]=0;if((b|0)==1)break Xc;H[e+2|0]=K[c+8|0];H[e+1|0]=K[c+9|0];H[e|0]=K[c+10|0];H[e+3|0]=K[c+11|0];c=J[a+120>>2];J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Xc;J[195395]=0;H[d|0]=K[c+600|0];H[d+1|0]=K[c+601|0];H[d+2|0]=K[c+602|0];H[d+3|0]=K[c+603|0];c=d;b=J[195395];J[195395]=0;if((b|0)==1)break Xc;b=J[a+120>>2];J[195395]=0;H[b+600|0]=K[e|0];H[b+601|0]=K[e+1|0];H[b+602|0]=K[e+2|0];H[b+603|0]=K[e+3|0];b=J[195395];J[195395]=0;if((b|0)==1)break Xc;e=J[a+208>>2];b=J[J[e>>2]+20>> -2];J[195395]=0;f=b;i=e;e=c+16|0;b=K[c+27|0];k=O[c+32>>3];Ka(f|0,i|0,e|0,(b<<24>>24<0?J[c+20>>2]:b)|0,+k,+k,0,2,1,1)}b=J[195395];J[195395]=0;if((b|0)==1)break Xc;f=J[a+208>>2];if(f){b=J[J[f>>2]+556>>2];J[195395]=0;Da(b|0,f|0,m|0,g|0,p|0,e|0,d+32|0);b=J[195395];J[195395]=0;if((b|0)==1)break Xc}b=J[a+120>>2];J[195395]=0;H[b+600|0]=K[c|0];H[b+601|0]=K[c+1|0];H[b+602|0]=K[c+2|0];H[b+603|0]=K[c+3|0];b=J[195395];J[195395]=0;if((b|0)==1)break Xc;b=J[a+120>>2];J[195395]=0;J[b+608>>2]=h;b=J[195395];J[195395]= -0;if((b|0)==1)break Xc;b=J[a+120>>2];J[195395]=0;if((j|0)==J[b+28>>2])J[b+28>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Xc;H[a+213|0]=1}if(H[d+27|0]>=0)break Yc;Kb(J[d+16>>2])}xb=d- -64|0;break Wc}a=Z()|0;if(H[d+27|0]<0)Kb(J[d+16>>2]);break a}break p;case 21:i=xb-16|0;xb=i;id:{jd:{kd:{ld:{d=b&65535;if(d&2048)break ld;h=J[a>>2]-12|0;e=J[h>>2];f=e+a|0;b=J[f+12>>2];g=b+3|0;c=J[f+16>>2];if(d&16384){if(c>>>0>g>>>0){J[f+12>>2]=b+4;e=J[h>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){J[(a+ -e|0)+12>>2]=b+4;e=J[h>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>=c>>>0)break ld;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+e|0)+12>>2]=b+4;J[i+12>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;if(c>>>0<1073741824)break ld;J[195395]=0;ea(2054,i+4|0);a=J[195395];J[195395]=0;if((a|0)!=1)break kd;break jd}if(c>>>0>g>>>0){J[f+12>>2]=b+4;e=J[h>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){J[(a+e|0)+12>>2]=b+4;e=J[h>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>=c>>>0)break ld;c=K[b|0]|K[b+ -1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+e|0)+12>>2]=b+4;J[i+12>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;if(c>>>0<268435456)break ld;J[195395]=0;ea(2056,i+4|0);a=J[195395];J[195395]=0;if((a|0)!=1)break kd;break jd}H[a+213|0]=1;xb=i+16|0;break id}B()}b=Z()|0;a=J[i+4>>2];if(a){J[i+8>>2]=a;Kb(a)}break e}break p;case 13:md:{if(b&16384){f=b&65535;p=0;g=0;i=0;o=xb-128|0;xb=o;d=J[a>>2]-12|0;c=J[d>>2];h=c+a|0;b=J[h+12>>2];e=J[h+16>>2];if(e>>>0>b+3>>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[h+12>>2]=b+4; -c=J[d>>2];b=c+a|0;e=J[b+16>>2];b=J[b+12>>2]}c=a+c|0;if(b+1>>>0>>0){p=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[c+12>>2]=b}s=0;nd:{if(b+1>>>0>=e>>>0){v=0;break nd}v=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[c+12>>2]=b}if(b+1>>>0>>0){s=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[c+12>>2]=b}if(b+1>>>0>>0){i=(K[b|0]|K[b+1|0]<<8)<<16>>16;J[c+12>>2]=b+2}i=i<<16>>16;l=v<<16>>16;n=i+l|0;h=s<<16>>16;m=p<<16>>16;j=h+m|0;od:{pd:{if(f<<16>>16<0){b=Bg(o+40|0);J[b+8>>2]=g;c=J[a+120>>2];J[195395]=0;d=b+4|0;J[c+20>> -2]=d;c=J[195395];J[195395]=0;if((c|0)==1)break od;c=J[a+120>>2];J[195395]=0;e=J[c+688>>2];c=J[195395];J[195395]=0;if((c|0)==1)break od;J[195395]=0;c=(e|0)==1;Sa(2078,a|0,m|0,(c?l:n)|0,j|0,(c?n:l)|0,0,360);c=J[195395];J[195395]=0;if((c|0)==1)break od;J[195395]=0;ia(2059,a|0,0,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break od;qd:{e=J[a+208>>2];if(!e)break qd;O[o+32>>3]=i|0;O[o+24>>3]=h|0;O[o+16>>3]=l|0;O[o+8>>3]=m|0;c=J[J[e>>2]+564>>2];J[195395]=0;fa(c|0,e|0,g|0,o+8|0);c=J[195395];J[195395]=0;if((c| -0)!=1)break qd;break od}c=J[a+120>>2];J[195395]=0;if((d|0)==J[c+20>>2])J[c+20>>2]=0;c=J[195395];J[195395]=0;if((c|0)==1)break od;Ge(b);break pd}c=a+236|0;e=J[c>>2];if(!e)break pd;b=c;while(1){d=M[e+16>>2]>>0;b=d?b:e;e=J[(d?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)|M[b+16>>2]>g>>>0)break pd;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=1)break pd;b=J[b+20>>2];if(!b)break pd;c=b+4|0;J[J[a+120>>2]+20>>2]=c;rd:{if(J[J[a+120>>2]+688>>2]==1){Dg(a,m,l,j,n,0,360);break rd}Dg(a,m,n,j,l,0,360)}Cg(a, -0,1,1);b=J[a+208>>2];if(b){O[o+64>>3]=i|0;O[o+56>>3]=h|0;O[o+48>>3]=l|0;O[o+40>>3]=m|0;Ab[J[J[b>>2]+564>>2]](b,g,o+40|0)}b=J[a+120>>2];if((c|0)==J[b+20>>2])J[b+20>>2]=0}xb=o+128|0;break md}break c}h=b&65535;r=0;g=0;A=0;n=xb-128|0;xb=n;d=J[a>>2]-12|0;c=J[d>>2];f=c+a|0;b=J[f+12>>2];e=J[f+16>>2];if(e>>>0>b+3>>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4;c=J[d>>2];b=c+a|0;e=J[b+16>>2];b=J[b+12>>2]}d=a+c|0;if(b+3>>>0>=e>>>0)q=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24); -b=b+4|0;J[d+12>>2]=b;q=+(x(2,c),C())}if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[d+12>>2]=b;r=+(x(2,c),C())}if(b+3>>>0>=e>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[d+12>>2]=b;k=+(x(2,c),C())}if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[d+12>>2]=b+4;A=+(x(2,c),C())}w=r+A;sd:{if(R(w)<2147483648){i=~~w;break sd}i=-2147483648}w=q+k;td:{if(R(w)<2147483648){f=~~w;break td}f=-2147483648}c=h<<16>>16;if(R(r)<2147483648)h= -~~r;else h=-2147483648;c=(c|0)>=0;if(R(q)<2147483648)d=~~q;else d=-2147483648;ud:{if(!c){b=Bg(n+40|0);J[b+8>>2]=g;c=J[a+120>>2];J[195395]=0;j=b+4|0;J[c+20>>2]=j;c=J[195395];J[195395]=0;if((c|0)==1)break c;c=J[a+120>>2];J[195395]=0;e=J[c+688>>2];c=J[195395];J[195395]=0;if((c|0)==1)break c;J[195395]=0;c=(e|0)==1;Sa(2078,a|0,d|0,(c?h:i)|0,f|0,(c?i:h)|0,0,360);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[195395]=0;ia(2059,a|0,0,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break c;vd:{e=J[a+208>>2];if(!e)break vd; -O[n+32>>3]=A;O[n+24>>3]=k;O[n+16>>3]=r;O[n+8>>3]=q;c=J[J[e>>2]+564>>2];J[195395]=0;fa(c|0,e|0,g|0,n+8|0);c=J[195395];J[195395]=0;if((c|0)!=1)break vd;break c}c=J[a+120>>2];J[195395]=0;if((j|0)==J[c+20>>2])J[c+20>>2]=0;c=J[195395];J[195395]=0;if((c|0)==1)break c;Ge(b);break ud}c=a+236|0;e=J[c>>2];if(!e)break ud;b=c;while(1){j=M[e+16>>2]>>0;b=j?b:e;e=J[(j?e+4|0:e)>>2];if(e)continue;break}if((b|0)==(c|0)|M[b+16>>2]>g>>>0)break ud;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=1)break ud;b=J[b+20>>2]; -if(!b)break ud;c=b+4|0;J[J[a+120>>2]+20>>2]=c;wd:{if(J[J[a+120>>2]+688>>2]==1){Dg(a,d,h,f,i,0,360);break wd}Dg(a,d,i,f,h,0,360)}Cg(a,0,1,1);b=J[a+208>>2];if(b){O[n+64>>3]=A;O[n+56>>3]=k;O[n+48>>3]=r;O[n+40>>3]=q;Ab[J[J[b>>2]+564>>2]](b,g,n+40|0)}b=J[a+120>>2];if((c|0)==J[b+20>>2])J[b+20>>2]=0}xb=n+128|0}H[a+213|0]=1;break p;case 19:e=0;h=xb-96|0;xb=h;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>2]){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4}f=b&65535;c=a+236|0;d=J[c>> -2];xd:{if(!d)break xd;j=f&255;b=c;while(1){g=j>>>0>M[d+16>>2];b=g?b:d;d=J[(g?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|j>>>0>2])break xd;d=J[b+20>>2];if((Ab[J[J[d>>2]+12>>2]](d)|0)!=3)break xd;i=J[b+20>>2];if(!i)break xd;yd:{if(f<<16>>16<0){b=Bg(h+8|0);J[b+8>>2]=e;c=J[a+120>>2];J[195395]=0;d=b+4|0;J[c+20>>2]=d;c=J[195395];J[195395]=0;if((c|0)==1)break c;c=J[a+208>>2];J[195395]=0;ma(2072,i+4|0,c|0,0,1,-1);c=J[195395];J[195395]=0;if((c|0)==1)break c;g=J[a+208>>2];if(g){c=J[J[g>>2]+568>> -2];J[195395]=0;ia(c|0,g|0,j|0,e|0,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break c}c=J[a+120>>2];J[195395]=0;if((d|0)==J[c+20>>2])J[c+20>>2]=0;c=J[195395];J[195395]=0;if((c|0)==1)break c;Ge(b);break yd}d=J[c>>2];if(!d)break xd;b=c;while(1){g=M[d+16>>2]>>0;b=g?b:d;d=J[(g?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|M[b+16>>2]>e>>>0)break xd;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=1)break xd;b=J[b+20>>2];if(!b)break xd;c=b+4|0;J[J[a+120>>2]+20>>2]=c;Ui(i+4|0,J[a+208>>2],0,1,-1);b=J[a+208>> -2];if(b)Ab[J[J[b>>2]+568>>2]](b,j,e,i);b=J[a+120>>2];if((c|0)==J[b+20>>2])J[b+20>>2]=0}H[a+213|0]=1}xb=h+96|0;break p;case 15:zd:{if(b&16384){r=0;i=0;A=0;d=xb-32|0;xb=d;f=J[a>>2]-12|0;e=J[f>>2];g=e+a|0;b=J[g+12>>2];c=J[g+16>>2];if(c>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;e=J[f>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>=c>>>0)w=0;else{g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+e|0)+12>>2]=b+4;e=J[f>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2];w=+(x(2, -g),C())}if(b+3>>>0>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+e|0)+12>>2]=b+4;e=J[f>>2];b=e+a|0;c=J[b+16>>2];A=+(x(2,g),C());b=J[b+12>>2]}g=a+e|0;if(b+1>>>0>=c>>>0)q=0;else{e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;q=+(e|0)}if(b+1>>>0>>0){e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;r=+(e|0)}if(b+1>>>0>=c>>>0)k=0;else{e=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[g+12>>2]=b;k=+(e|0)}if(b+1>>>0>>0){c=(K[b|0]|K[b+1|0]<<8)<<16>>16;J[g+12>>2]=b+2;y=+(c|0)}else y=0; -break zd}r=0;i=0;A=0;d=xb-32|0;xb=d;f=J[a>>2]-12|0;e=J[f>>2];g=e+a|0;b=J[g+12>>2];c=J[g+16>>2];if(c>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;e=J[f>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>=c>>>0)w=0;else{g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+e|0)+12>>2]=b+4;e=J[f>>2];b=e+a|0;c=J[b+16>>2];b=J[b+12>>2];w=+(x(2,g),C())}if(b+3>>>0>>0){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+e|0)+12>>2]=b+4;e=J[f>>2];b=e+a|0;c=J[b+16>>2];A=+(x(2, -g),C());b=J[b+12>>2]}g=a+e|0;if(b+3>>>0>=c>>>0)q=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;q=+(x(2,e),C())}if(b+3>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;r=+(x(2,e),C())}if(b+3>>>0>=c>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,e),C())}if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;y=+(x(2,c),C())}else y=0}b=J[a+208>>2];if(b){O[d+24>>3]=y;O[d+ -16>>3]=k;O[d+8>>3]=r;O[d>>3]=q;Ab[J[J[b>>2]+572>>2]](b,i,w,A,d)}xb=d+32|0;H[a+213|0]=1;break p;case 11:Ad:{if(b&2048)break Ad;if(b&16384){v=0;g=xb-128|0;xb=g;h=J[a>>2]-12|0;d=J[h>>2];e=d+a|0;c=J[e+12>>2];i=J[e+16>>2];if(i>>>0>c+3>>>0){v=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[e+12>>2]=c+4;d=J[h>>2];c=d+a|0;i=J[c+16>>2];c=J[c+12>>2]}n=b&65535;Bd:{Cd:{Dd:{Ed:{Fd:{Gd:{Hd:{Id:{Jd:{Kd:{if(c+3>>>0>=i>>>0)break Kd;o=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+d|0)+12>>2]=c+4;if(o>>>0<2)break Kd; -J[g+124>>2]=0;J[g+116>>2]=0;J[g+120>>2]=0;if(o>>>0>=1073741824){J[195395]=0;ea(2054,g+116|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;break Bd}J[195395]=0;l=o<<2;e=_(1078,l|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;J[g+116>>2]=e;m=e+l|0;J[g+124>>2]=m;c=0;e=Nb(e,0,l);J[g+120>>2]=m;while(1){f=(c<<2)+e|0;j=J[h>>2]+a|0;d=J[j+12>>2];b=J[j+16>>2];Ld:{if(d+1>>>0>=b>>>0){i=0;break Ld}i=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[j+12>>2]=d}I[f>>1]=i;i=0;if(b>>>0>d+1>>>0){i=K[d|0]|K[d+1|0]<<8;J[j+12>>2]=d+2}I[f+ -2>>1]=i;c=c+1|0;if((o|0)!=(c|0))continue;break}J[g+100>>2]=0;J[g+92>>2]=0;J[g+96>>2]=0;c=l>>2;if(c>>>0>=1073741824){J[195395]=0;ea(2054,g+92|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Bd;break Dd}J[195395]=0;d=_(1078,l|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Dd;J[g+96>>2]=d;J[g+92>>2]=d;J[g+100>>2]=(c<<2)+d;j=l-4|0;h=(j>>>2|0)+1&7;Md:{if(!h){b=e;c=d;break Md}i=0;b=e;c=d;while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;c=c+4|0;b=b+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(j>>> -0>=28)while(1){f=L[b>>1]|L[b+2>>1]<<16;I[c>>1]=f;I[c+2>>1]=f>>>16;f=L[b+4>>1]|L[b+6>>1]<<16;I[c+4>>1]=f;I[c+6>>1]=f>>>16;f=L[b+8>>1]|L[b+10>>1]<<16;I[c+8>>1]=f;I[c+10>>1]=f>>>16;f=L[b+12>>1]|L[b+14>>1]<<16;I[c+12>>1]=f;I[c+14>>1]=f>>>16;f=L[b+16>>1]|L[b+18>>1]<<16;I[c+16>>1]=f;I[c+18>>1]=f>>>16;f=L[b+20>>1]|L[b+22>>1]<<16;I[c+20>>1]=f;I[c+22>>1]=f>>>16;f=L[b+24>>1]|L[b+26>>1]<<16;I[c+24>>1]=f;I[c+26>>1]=f>>>16;f=L[b+28>>1]|L[b+30>>1]<<16;I[c+28>>1]=f;I[c+30>>1]=f>>>16;c=c+32|0;b=b+32|0;if((m|0)!= -(b|0))continue;break}Nd:{if((c|0)!=(d|0)){J[g+112>>2]=0;J[g+104>>2]=0;J[g+108>>2]=0;b=c-d|0;i=b>>2;if(i>>>0>=268435456){J[195395]=0;ea(2056,g+104|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Bd;break Ed}J[195395]=0;f=b<<2;h=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Ed;J[g+104>>2]=h;J[g+112>>2]=h+(i<<4);c=0;m=Nb(h,0,f);J[g+108>>2]=m+f;b=i>>>0<=1?1:i;j=b&1;if(i>>>0>=2){h=b&-2;i=0;while(1){f=m+(c<<4)|0;b=(c<<2)+d|0;O[f>>3]=I[b>>1];O[f+8>>3]=I[b+2>>1];b=c|1;f=m+(b<<4)|0;b=(b<<2)+d|0;O[f>> -3]=I[b>>1];O[f+8>>3]=I[b+2>>1];c=c+2|0;i=i+2|0;if((h|0)!=(i|0))continue;break}}if(!j)break Nd;f=m+(c<<4)|0;b=(c<<2)+d|0;O[f>>3]=I[b>>1];O[f+8>>3]=I[b+2>>1];break Nd}J[g+112>>2]=0;J[g+104>>2]=0;J[g+108>>2]=0}J[g+96>>2]=d;Kb(d);Od:{if(n<<16>>16<0){J[195395]=0;f=Bg(g);b=J[195395];J[195395]=0;if((b|0)==1)break Jd;J[f+8>>2]=v;b=J[a+120>>2];J[195395]=0;d=f+4|0;J[b+20>>2]=d;b=J[195395];J[195395]=0;if((b|0)==1)break Gd;b=J[g+104>>2];q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);b=J[195395];J[195395]= -0;c=1;if((b|0)==1)break Gd;Pd:{if(o>>>0>1)while(1){b=J[g+104>>2]+(c<<4)|0;q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2070,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break Pd;c=c+1|0;if((o|0)!=(c|0))continue;break}J[195395]=0;ea(2052,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break Gd;J[195395]=0;ia(2059,a|0,0,1,1);b=J[195395];J[195395]=0;if((b|0)==1)break Gd;c=J[a+208>>2];if(c){b=J[J[c>>2]+576>>2];J[195395]=0;fa(b|0,c|0,v|0,g+104|0);b=J[195395];J[195395]=0;if((b|0)==1)break Gd}b=J[a+120>>2];J[195395]= -0;if((d|0)==J[b+20>>2])J[b+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Gd;Ge(f);break Od}c=Z()|0;Ge(f);break Fd}d=a+236|0;c=J[d>>2];if(!c)break Od;b=d;while(1){f=M[c+16>>2]>>0;b=f?b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(d|0)|M[b+16>>2]>v>>>0)break Od;d=J[b+20>>2];c=J[J[d>>2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Id;if((d|0)!=1)break Od;c=J[b+20>>2];if(!c)break Od;b=J[a+120>>2];J[195395]=0;d=c+4|0;J[b+20>>2]=d;b=J[195395];J[195395]=0;if((b| -0)==1)break Id;b=J[g+104>>2];q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break Id;c=1;if(o>>>0>1)while(1){b=J[g+104>>2]+(c<<4)|0;q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2070,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break Hd;c=c+1|0;if((o|0)!=(c|0))continue;break}c=J[a+208>>2];if(c){b=J[J[c>>2]+576>>2];J[195395]=0;fa(b|0,c|0,v|0,g+104|0);b=J[195395];J[195395]=0;if((b|0)==1)break Id}J[195395]=0;ea(2052,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break Id; -J[195395]=0;ia(2059,a|0,0,1,1);b=J[195395];J[195395]=0;if((b|0)==1)break Id;b=J[a+120>>2];J[195395]=0;if((d|0)==J[b+20>>2])J[b+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Id}b=J[g+104>>2];if(b){J[g+108>>2]=b;Kb(b)}Kb(e)}xb=g+128|0;break Ad}c=Z()|0;break Fd}c=Z()|0;break Fd}c=Z()|0;break Fd}c=Z()|0;Ge(f)}d=J[g+104>>2];if(!d)break l;J[g+108>>2]=d;break Cd}c=Z()|0;a=J[g+104>>2];if(a){J[g+108>>2]=a;Kb(a)}J[g+96>>2]=d;break Cd}c=Z()|0;d=J[g+92>>2];if(!d)break l;J[g+96>>2]=d}Kb(d);break l}B()}v= -0;g=xb-128|0;xb=g;h=J[a>>2]-12|0;i=J[h>>2];e=i+a|0;c=J[e+12>>2];d=J[e+16>>2];if(d>>>0>c+3>>>0){v=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[e+12>>2]=c+4;i=J[h>>2];c=i+a|0;d=J[c+16>>2];c=J[c+12>>2]}n=b&65535;Qd:{Rd:{Sd:{Td:{Ud:{Vd:{Wd:{Xd:{Yd:{Zd:{_d:{if(c+3>>>0>=d>>>0)break _d;o=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[(a+i|0)+12>>2]=c+4;if(o>>>0<2)break _d;J[g+124>>2]=0;J[g+116>>2]=0;J[g+120>>2]=0;if(o>>>0>=268435456){J[195395]=0;ea(2056,g+116|0);a=J[195395];J[195395]=0;if((a|0)==1)break f; -break Rd}J[195395]=0;l=o<<4;e=_(1078,l|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;J[g+116>>2]=e;m=e+l|0;J[g+124>>2]=m;c=0;e=Nb(e,0,l);J[g+120>>2]=m;while(1){b=(c<<4)+e|0;j=J[h>>2]+a|0;i=J[j+12>>2];f=J[j+16>>2];if(i+3>>>0>=f>>>0)k=0;else{d=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+4|0;J[j+12>>2]=i;k=+(x(2,d),C())}O[b>>3]=k;if(f>>>0>i+3>>>0){d=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);J[j+12>>2]=i+4;k=+(x(2,d),C())}else k=0;O[b+8>>3]=k;c=c+1|0;if((o|0)!=(c|0))continue;break}J[g+ -100>>2]=0;J[g+92>>2]=0;J[g+96>>2]=0;c=l>>4;if(c>>>0>=268435456){J[195395]=0;ea(2056,g+92|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Rd;break Td}J[195395]=0;d=_(1078,l|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Td;J[g+96>>2]=d;J[g+92>>2]=d;J[g+100>>2]=(c<<4)+d;j=l-16|0;h=(j>>>4|0)+1&3;$d:{if(!h){b=e;c=d;break $d}i=0;b=e;c=d;while(1){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;c=c+16|0;b=b+16|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(j>>>0>=48)while(1){f= -J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;f=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=f;f=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=f;f=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=f;f=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=f;c=c- -64|0;b=b- -64|0;if((m|0)!=(b|0))continue;break}ae:{if((c|0)!=(d|0)){J[g+112>>2]=0;J[g+104>>2]=0;J[g+108>>2]=0;f=c-d|0;i=f>> -4;if(i>>>0>=268435456){J[195395]=0;ea(2056,g+104|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Rd;break Ud}J[195395]=0;c=_(1078,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Ud;J[g+104>>2]=c;J[g+112>>2]=c+(i<<4);s=0;l=Nb(c,0,f);J[g+108>>2]=l+f;b=i>>>0<=1?1:i;h=b&3;c=0;if(i>>>0>=4){f=b&-4;u=0;while(1){m=c<<4;j=m+l|0;i=d+m|0;b=J[i+4>>2];J[j>>2]=J[i>>2];J[j+4>>2]=b;b=J[i+12>>2];J[j+8>>2]=J[i+8>>2];J[j+12>>2]=b;b=m|16;j=b+l|0;i=b+d|0;b=J[i+12>>2];J[j+8>>2]=J[i+8>>2];J[j+12>>2]=b;b=J[i+4>>2];J[j>>2]= -J[i>>2];J[j+4>>2]=b;b=m|32;j=b+l|0;i=b+d|0;b=J[i+12>>2];J[j+8>>2]=J[i+8>>2];J[j+12>>2]=b;b=J[i+4>>2];J[j>>2]=J[i>>2];J[j+4>>2]=b;b=m|48;j=b+l|0;i=b+d|0;b=J[i+12>>2];J[j+8>>2]=J[i+8>>2];J[j+12>>2]=b;b=J[i+4>>2];J[j>>2]=J[i>>2];J[j+4>>2]=b;c=c+4|0;u=u+4|0;if((f|0)!=(u|0))continue;break}}if(!h)break ae;while(1){b=c<<4;i=b+l|0;f=b+d|0;b=J[f+4>>2];J[i>>2]=J[f>>2];J[i+4>>2]=b;b=J[f+12>>2];J[i+8>>2]=J[f+8>>2];J[i+12>>2]=b;c=c+1|0;s=s+1|0;if((h|0)!=(s|0))continue;break}break ae}J[g+112>>2]=0;J[g+104>>2]= -0;J[g+108>>2]=0}J[g+96>>2]=d;Kb(d);be:{if(n<<16>>16<0){J[195395]=0;f=Bg(g);b=J[195395];J[195395]=0;if((b|0)==1)break Zd;J[f+8>>2]=v;b=J[a+120>>2];J[195395]=0;d=f+4|0;J[b+20>>2]=d;b=J[195395];J[195395]=0;if((b|0)==1)break Wd;b=J[g+104>>2];q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);b=J[195395];J[195395]=0;c=1;if((b|0)==1)break Wd;ce:{if(o>>>0>1)while(1){b=J[g+104>>2]+(c<<4)|0;q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2070,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break ce;c=c+1|0;if((o|0)!= -(c|0))continue;break}J[195395]=0;ea(2052,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break Wd;J[195395]=0;ia(2059,a|0,0,1,1);b=J[195395];J[195395]=0;if((b|0)==1)break Wd;c=J[a+208>>2];if(c){b=J[J[c>>2]+576>>2];J[195395]=0;fa(b|0,c|0,v|0,g+104|0);b=J[195395];J[195395]=0;if((b|0)==1)break Wd}b=J[a+120>>2];J[195395]=0;if((d|0)==J[b+20>>2])J[b+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Wd;Ge(f);break be}c=Z()|0;Ge(f);break Vd}d=a+236|0;c=J[d>>2];if(!c)break be;b=d;while(1){f=M[c+16>>2]>>0;b=f? -b:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(d|0)|M[b+16>>2]>v>>>0)break be;d=J[b+20>>2];c=J[J[d>>2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Yd;if((d|0)!=1)break be;c=J[b+20>>2];if(!c)break be;b=J[a+120>>2];J[195395]=0;d=c+4|0;J[b+20>>2]=d;b=J[195395];J[195395]=0;if((b|0)==1)break Yd;b=J[g+104>>2];q=O[b+8>>3];k=O[b>>3];J[195395]=0;qa(2057,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break Yd;c=1;if(o>>>0>1)while(1){b=J[g+104>>2]+(c<<4)|0;q=O[b+8>>3]; -k=O[b>>3];J[195395]=0;qa(2070,a|0,+k,+q);b=J[195395];J[195395]=0;if((b|0)==1)break Xd;c=c+1|0;if((o|0)!=(c|0))continue;break}c=J[a+208>>2];if(c){b=J[J[c>>2]+576>>2];J[195395]=0;fa(b|0,c|0,v|0,g+104|0);b=J[195395];J[195395]=0;if((b|0)==1)break Yd}J[195395]=0;ea(2052,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break Yd;J[195395]=0;ia(2059,a|0,0,1,1);b=J[195395];J[195395]=0;if((b|0)==1)break Yd;b=J[a+120>>2];J[195395]=0;if((d|0)==J[b+20>>2])J[b+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Yd}b=J[g+ -104>>2];if(b){J[g+108>>2]=b;Kb(b)}Kb(e)}xb=g+128|0;break Qd}c=Z()|0;break Vd}c=Z()|0;break Vd}c=Z()|0;break Vd}c=Z()|0;Ge(f)}d=J[g+104>>2];if(!d)break l;J[g+108>>2]=d;break Sd}c=Z()|0;a=J[g+104>>2];if(a){J[g+108>>2]=a;Kb(a)}J[g+96>>2]=d;break Sd}c=Z()|0;d=J[g+92>>2];if(!d)break l;J[g+96>>2]=d}Kb(d);break l}B()}}H[a+213|0]=1;break p;case 9:de:{if(b&16384){h=b&65535;g=0;e=xb-112|0;xb=e;f=J[a>>2]-12|0;c=J[f>>2];i=c+a|0;d=J[i+12>>2];b=J[i+16>>2];if(b>>>0>d+3>>>0){g=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+ -3|0]<<24);J[i+12>>2]=d+4;c=J[f>>2];d=c+a|0;b=J[d+16>>2];d=J[d+12>>2]}ee:{fe:{ge:{he:{ie:{je:{ke:{if(d+3>>>0>=b>>>0)break ke;i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+c|0)+12>>2]=d+4;if(!i)break ke;J[e+108>>2]=0;J[e+100>>2]=0;J[e+104>>2]=0;le:{me:{if(i>>>0>=134217728){J[195395]=0;ea(2073,e+100|0);a=J[195395];J[195395]=0;if((a|0)==1)break me;B()}J[195395]=0;d=i<<5;f=_(1078,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break le}d=Z()|0;a=J[e+100>>2];if(!a)break ee;J[e+104>>2]=a;Kb(a);break ee}J[e+ -100>>2]=f;b=d+f|0;J[e+108>>2]=b;c=0;Nb(f,0,d);J[e+104>>2]=b;while(1){f=J[J[a>>2]-12>>2]+a|0;b=J[f+12>>2];d=J[f+16>>2];ne:{if(b+1>>>0>=d>>>0){v=0;break ne}v=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[f+12>>2]=b}s=0;oe:{if(d>>>0<=b+1>>>0){D=0;break oe}D=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[f+12>>2]=b}if(d>>>0>b+1>>>0){s=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[f+12>>2]=b}u=0;if(d>>>0>b+1>>>0){u=(K[b|0]|K[b+1|0]<<8)<<16>>16;J[f+12>>2]=b+2}b=J[e+100>>2]+(c<<5)|0;O[b+24>>3]=u<<16>>16;O[b+16>>3]=s<<16>>16; -O[b+8>>3]=D<<16>>16;O[b>>3]=v<<16>>16;c=c+1|0;if((i|0)!=(c|0))continue;break}pe:{if(h<<16>>16<0){J[195395]=0;h=Bg(e+8|0);b=J[195395];J[195395]=0;if((b|0)==1)break je;J[h+8>>2]=g;b=J[a+120>>2];J[195395]=0;f=h+4|0;J[b+20>>2]=f;b=J[195395];J[195395]=0;qe:{if((b|0)==1)break qe;d=J[e+100>>2];c=J[e+104>>2];if((d|0)!=(c|0))while(1){J[195395]=0;ia(2074,a|0,d|0,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break ie;d=d+32|0;if((c|0)!=(d|0))continue;break}c=J[a+208>>2];if(c){b=J[J[c>>2]+580>>2];J[195395]=0;fa(b| -0,c|0,g|0,e+100|0);b=J[195395];J[195395]=0;if((b|0)==1)break qe}b=J[a+120>>2];J[195395]=0;if((f|0)==J[b+20>>2])J[b+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break qe;Ge(h);break pe}d=Z()|0;Ge(h);break fe}c=a+236|0;d=J[c>>2];if(!d)break pe;b=c;while(1){f=M[d+16>>2]>>0;b=f?b:d;d=J[(f?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|M[b+16>>2]>g>>>0)break pe;d=J[b+20>>2];c=J[J[d>>2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break he;if((d|0)!=1)break pe;c=J[b+20>>2]; -if(!c)break pe;b=J[a+120>>2];J[195395]=0;f=c+4|0;J[b+20>>2]=f;b=J[195395];J[195395]=0;if((b|0)==1)break he;d=J[e+100>>2];c=J[e+104>>2];if((d|0)!=(c|0))while(1){J[195395]=0;ia(2074,a|0,d|0,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break ge;d=d+32|0;if((c|0)!=(d|0))continue;break}c=J[a+208>>2];if(c){b=J[J[c>>2]+580>>2];J[195395]=0;fa(b|0,c|0,g|0,e+100|0);b=J[195395];J[195395]=0;if((b|0)==1)break he}b=J[a+120>>2];J[195395]=0;if((f|0)==J[b+20>>2])J[b+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break he}b= -J[e+100>>2];if(!b)break ke;J[e+104>>2]=b;Kb(b)}xb=e+112|0;break de}d=Z()|0;break fe}d=Z()|0;Ge(h);break fe}d=Z()|0;break fe}d=Z()|0}a=J[e+100>>2];if(!a)break ee;break j}break i}h=b&65535;g=0;e=xb-112|0;xb=e;f=J[a>>2]-12|0;c=J[f>>2];i=c+a|0;d=J[i+12>>2];b=J[i+16>>2];if(b>>>0>d+3>>>0){g=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[i+12>>2]=d+4;c=J[f>>2];d=c+a|0;b=J[d+16>>2];d=J[d+12>>2]}re:{se:{te:{ue:{ve:{we:{xe:{if(d+3>>>0>=b>>>0)break xe;i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[(a+ -c|0)+12>>2]=d+4;if(!i)break xe;J[e+108>>2]=0;J[e+100>>2]=0;J[e+104>>2]=0;ye:{ze:{if(i>>>0>=134217728){J[195395]=0;ea(2073,e+100|0);a=J[195395];J[195395]=0;if((a|0)==1)break ze;B()}J[195395]=0;d=i<<5;f=_(1078,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break ye}d=Z()|0;a=J[e+100>>2];if(!a)break i;J[e+104>>2]=a;Kb(a);break i}J[e+100>>2]=f;b=d+f|0;J[e+108>>2]=b;c=0;Nb(f,0,d);J[e+104>>2]=b;while(1){r=0;j=J[J[a>>2]-12>>2]+a|0;b=J[j+12>>2];f=J[j+16>>2];if(b+3>>>0>=f>>>0)q=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+ -2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b;q=+(x(2,d),C())}if(f>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b;r=+(x(2,d),C())}z=0;if(f>>>0<=b+3>>>0)k=0;else{d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[j+12>>2]=b;k=+(x(2,d),C())}if(f>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[j+12>>2]=b+4;z=+(x(2,d),C())}b=J[e+100>>2]+(c<<5)|0;O[b+24>>3]=z;O[b+16>>3]=k;O[b+8>>3]=r;O[b>>3]=q;c=c+1|0;if((i|0)!=(c|0))continue;break}Ae:{if(h<<16>> -16<0){J[195395]=0;h=Bg(e+8|0);b=J[195395];J[195395]=0;if((b|0)==1)break we;J[h+8>>2]=g;b=J[a+120>>2];J[195395]=0;f=h+4|0;J[b+20>>2]=f;b=J[195395];J[195395]=0;Be:{if((b|0)==1)break Be;d=J[e+100>>2];c=J[e+104>>2];if((d|0)!=(c|0))while(1){J[195395]=0;ia(2074,a|0,d|0,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break ve;d=d+32|0;if((c|0)!=(d|0))continue;break}c=J[a+208>>2];if(c){b=J[J[c>>2]+580>>2];J[195395]=0;fa(b|0,c|0,g|0,e+100|0);b=J[195395];J[195395]=0;if((b|0)==1)break Be}b=J[a+120>>2];J[195395]=0; -if((f|0)==J[b+20>>2])J[b+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Be;Ge(h);break Ae}d=Z()|0;Ge(h);break se}c=a+236|0;d=J[c>>2];if(!d)break Ae;b=c;while(1){f=M[d+16>>2]>>0;b=f?b:d;d=J[(f?d+4|0:d)>>2];if(d)continue;break}if((b|0)==(c|0)|M[b+16>>2]>g>>>0)break Ae;d=J[b+20>>2];c=J[J[d>>2]+12>>2];J[195395]=0;d=_(c|0,d|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ue;if((d|0)!=1)break Ae;c=J[b+20>>2];if(!c)break Ae;b=J[a+120>>2];J[195395]=0;f=c+4|0;J[b+20>>2]=f;b=J[195395];J[195395]=0;if((b| -0)==1)break ue;d=J[e+100>>2];c=J[e+104>>2];if((d|0)!=(c|0))while(1){J[195395]=0;ia(2074,a|0,d|0,0,1);b=J[195395];J[195395]=0;if((b|0)==1)break te;d=d+32|0;if((c|0)!=(d|0))continue;break}c=J[a+208>>2];if(c){b=J[J[c>>2]+580>>2];J[195395]=0;fa(b|0,c|0,g|0,e+100|0);b=J[195395];J[195395]=0;if((b|0)==1)break ue}b=J[a+120>>2];J[195395]=0;if((f|0)==J[b+20>>2])J[b+20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break ue}b=J[e+100>>2];if(!b)break xe;J[e+104>>2]=b;Kb(b)}xb=e+112|0;break re}d=Z()|0;break se}d=Z()| -0;Ge(h);break se}d=Z()|0;break se}d=Z()|0}a=J[e+100>>2];if(!a)break i;break j}}H[a+213|0]=1;break p;case 18:if(M[m+16>>2]>c+3>>>0)J[m+12>>2]=c+4;H[a+213|0]=1;break p;case 7:d=0;f=xb-32|0;xb=f;b=b&65535;o=b&255;Ce:{De:{Ee:{Fe:{Ge:switch((b>>>8&127)-1|0){case 1:i=0;g=0;c=J[a>>2]-12|0;b=J[c>>2]+a|0;e=J[b+12>>2]+4|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>e>>>0?e:b;He:{c=J[c>>2]+a|0;e=J[c+12>>2];if(e+3>>>0>2]){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[c+12>>2]=e+4;if(b)break He}b=Pb(64);J[195395]= -0;g=yA(b);c=J[195395];J[195395]=0;if((c|0)==1)break b;s=J[a>>2];t=s-12|0;p=J[t>>2];e=p+a|0;b=J[e+12>>2];c=J[e+16>>2];if(c>>>0>b+3>>>0){i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4;p=J[t>>2];b=p+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){J[(a+p|0)+12>>2]=b+4;p=J[t>>2];b=p+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+p|0)+12>>2]=b+4;k=+(x(2,c),C())}else k=0;O[g+16>>3]=k;if(i&1){b=J[t>>2]+a|0;c=J[b+12>>2]+24|0;d=b;b=J[b+ -16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b}Ie:{if(!(i&2))break Ie;c=J[t>>2]+a|0;e=J[c+12>>2];if(e+3>>>0>2]){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[c+12>>2]=e+4;if(b>>>0>2)break Ie;c=96-(b<<4)|0}else c=96;J[g+8>>2]=c|J[g+8>>2]}Je:{if(!(i&4))break Je;c=512;e=J[t>>2]+a|0;d=J[e+12>>2];Ke:{if(d+3>>>0>=M[e+16>>2])break Ke;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;Le:switch(b|0){case 0:break Ke;case 1:break Le;default:break Je}c=256}J[g+8>>2]=J[g+8>>2]|c}Me:{if(!(i&8))break Me; -c=8192;e=J[t>>2]+a|0;d=J[e+12>>2];Ne:{if(d+3>>>0>=M[e+16>>2])break Ne;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;Oe:switch(b|0){case 0:break Ne;case 1:break Oe;default:break Me}c=4096}J[g+8>>2]=J[g+8>>2]|c}if(i&16){c=J[t>>2]+a|0;e=J[c+12>>2];if(e+3>>>0>2]){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[c+12>>2]=e+4;k=+(x(2,b),C())}else k=0;O[g+32>>3]=k}if(i&32){b=0;c=J[t>>2]+a|0;e=J[c+12>>2];if(e+3>>>0>2]){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[c+ -12>>2]=e+4}J[g+8>>2]=J[g+8>>2]|b&15}Pe:{if(!(i&64))break Pe;c=96;e=J[t>>2]+a|0;d=J[e+12>>2];Qe:{if(d+3>>>0>=M[e+16>>2])break Qe;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;Re:switch(b|0){case 0:break Qe;case 2:break Re;default:break Pe}c=64}J[g+8>>2]=J[g+8>>2]|c}if(i&128){c=J[t>>2]+a|0;e=J[c+12>>2];if(e+3>>>0>2]){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[c+12>>2]=e+4;k=+(x(2,b),C())}else k=0;O[g+40>>3]=k}Se:{if(!(i&256))break Se;c=0;b=0;e=J[t>>2]+a|0;d=J[e+12>> -2];if(d+3>>>0>2]){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;b=c>>>0>536870911?-1:c<<3}J[g+52>>2]=c;m=Pb(b);J[g+48>>2]=m;if(!c)break Se;b=0;if((c|0)!=1){j=c&-2;u=0;while(1){h=b<<3;d=h+m|0;n=J[t>>2]+a|0;l=J[n+12>>2];if(l+3>>>0>2]){e=K[l|0]|K[l+1|0]<<8|(K[l+2|0]<<16|K[l+3|0]<<24);J[n+12>>2]=l+4;k=+(x(2,e),C())}else k=0;O[d>>3]=k;d=m+(h|8)|0;h=J[t>>2]+a|0;n=J[h+12>>2];if(n+3>>>0>2]){e=K[n|0]|K[n+1|0]<<8|(K[n+2|0]<<16|K[n+3|0]<<24);J[h+12>>2]=n+4;k=+(x(2,e), -C())}else k=0;O[d>>3]=k;b=b+2|0;u=u+2|0;if((j|0)!=(u|0))continue;break}}if(!(c&1))break Se;c=m+(b<<3)|0;e=J[t>>2]+a|0;d=J[e+12>>2];if(d+3>>>0>2]){b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;k=+(x(2,b),C())}else k=0;O[c>>3]=k}if(i&512){b=J[t>>2]+a|0;c=J[b+12>>2]+4|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b}if(i&1024){p=0;u=J[t>>2];e=u+a|0;b=J[e+12>>2];c=J[e+16>>2];if(c>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4;p=c<<2;u=J[t>>2];b=u+a| -0;c=J[b+16>>2];b=J[b+12>>2]}b=b+p|0;J[(a+u|0)+12>>2]=b>>>0>>0?b:c}if(i&2048){p=0;u=J[t>>2];e=u+a|0;b=J[e+12>>2];c=J[e+16>>2];if(c>>>0>b+3>>>0){p=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4;u=J[t>>2];b=u+a|0;c=J[b+16>>2];b=J[b+12>>2]}d=a+u|0;e=b+4|0;J[d+12>>2]=c>>>0>e>>>0?e:c;e=b-J[d+4>>2]|0;Te:{Ue:{Ve:{We:{c=J[t>>2]+a|0;d=J[c+12>>2];if(d+3>>>0>=M[c+16>>2])break We;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4;switch(b|0){case 1:break Ve;case 0:break We;default:break Te}}b= -Pb(96);J[b+56>>2]=0;J[b+60>>2]=0;J[b>>2]=416648;c=b- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;IA((J[t>>2]+a|0)+4|0,b);if(J[b+4>>2]-1>>>0>1)break Ue;c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2]+4|0;h=c;c=J[c+16>>2];J[h+12>>2]=c>>>0>d>>>0?d:c;X=b,Y=Wj(a),J[X+88>>2]=Y;break Ue}b=Pb(96);J[b+64>>2]=0;J[b+68>>2]=0;J[b>>2]=410264;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;HA((J[t>>2]+a|0)+4|0,b)}J[g+56>>2]=b}s=J[a>>2];b=J[s-12>> -2]+a|0;c=(e+J[b+4>>2]|0)+p|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b}if(i&4096){c=0;i=s-12|0;p=J[i>>2];e=p+a|0;d=J[e+12>>2];b=J[e+16>>2];if(b>>>0>d+3>>>0){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;p=J[i>>2];e=p+a|0;b=J[e+16>>2];d=J[e+12>>2]}h=a+p|0;e=d+4|0;J[h+12>>2]=b>>>0>e>>>0?e:b;e=d-J[h+4>>2]|0;Xe:{Ye:{Ze:{_e:{d=J[i>>2]+a|0;h=J[d+12>>2];if(h+3>>>0>=M[d+16>>2])break _e;b=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);J[d+12>>2]=h+4;switch(b|0){case 1:break Ze;case 0:break _e; -default:break Xe}}d=Pb(96);J[d+56>>2]=0;J[d+60>>2]=0;J[d>>2]=416648;b=d- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0;IA((J[i>>2]+a|0)+4|0,d);if(J[d+4>>2]-1>>>0>1)break Ye;b=J[J[a>>2]-12>>2]+a|0;h=J[b+12>>2]+4|0;i=b;b=J[b+16>>2];J[i+12>>2]=b>>>0>h>>>0?h:b;X=d,Y=Wj(a),J[X+88>>2]=Y;break Ye}d=Pb(96);J[d+64>>2]=0;J[d+68>>2]=0;J[d>>2]=410264;J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;HA((J[i>>2]+a|0)+4|0,d)}J[g+60>>2]= -d}b=J[J[a>>2]-12>>2]+a|0;c=(e+J[b+4>>2]|0)+c|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b}X=g,Y=LA(a),J[X+28>>2]=Y;break He}_f(a,g,o);break Fe;case 2:if(b<<16>>16<0){$e:{af:{bf:{e=a+236|0;b=J[e>>2];cf:{if(!b)break cf;c=e;while(1){d=o>>>0>M[b+16>>2];c=d?c:b;b=J[(d?b+4|0:b)>>2];if(b)continue;break}if((c|0)==(e|0)|o>>>0>2])break cf;b=J[c+20>>2];if((Ab[J[J[b>>2]+12>>2]](b)|0)!=255)break cf;b=J[c+20>>2];if(b)break bf}b=Pb(16);J[195395]=0;J[b>>2]=415408;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>> -2]=416440;c=J[195395];J[195395]=0;if((c|0)!=1)break af;a=Z()|0;Kb(b);break a}MA(a,b);break $e}MA(a,b);_f(a,b,o)}if(J[b+12>>2]-J[b+8>>2]|0)break Fe;e=J[J[a>>2]-12>>2]+a|0;c=J[e+16>>2];J[f+24>>2]=J[e+12>>2];J[f+28>>2]=c;c=J[e+8>>2];J[f+16>>2]=J[e+4>>2];J[f+20>>2]=c;J[195395]=0;J[f+12>>2]=J[b+4>>2];J[f+8>>2]=J[b+8>>2];b=J[195395];J[195395]=0;if((b|0)==1)break Ee;b=J[f+8>>2];e=J[J[a>>2]-12>>2]+a|0;c=J[f+12>>2];J[e+4>>2]=c;J[e+12>>2]=c;b=b+c|0;J[e+16>>2]=b;J[e+8>>2]=b;J[195395]=0;c=_(2082,a|0)|0;b=J[195395]; -J[195395]=0;df:{if((b|0)==1)break df;J[195395]=0;fa(2083,a|0,c|0,o|0);b=J[195395];J[195395]=0;if((b|0)==1)break df;b=J[f+20>>2];c=J[J[a>>2]-12>>2]+a|0;J[c+4>>2]=J[f+16>>2];J[c+8>>2]=b;b=J[f+28>>2];J[c+12>>2]=J[f+24>>2];J[c+16>>2]=b;break Fe}break Ee}_f(a,Wj(a),o);break Fe;case 3:m=xb-16|0;xb=m;b=Pb(16);J[195395]=0;J[b>>2]=415408;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=416600;J[b+12>>2]=0;c=b;e=J[195395];J[195395]=0;ef:{ff:{gf:{if((e|0)!=1){e=J[a>>2]-12|0;d=J[e>>2];g=d+a|0;b=J[g+12>>2];p=J[g+16>>2];if(p>>> -0>b+3>>>0){J[g+12>>2]=b+4;d=J[e>>2];b=d+a|0;p=J[b+16>>2];b=J[b+12>>2]}hf:{jf:{if(b+3>>>0>=p>>>0){J[m+12>>2]=0;u=1;break jf}e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+d|0)+12>>2]=b+4;J[m+12>>2]=0;u=e+1|0;if(!u)break hf}n=c+4|0;while(1){j=Zf(a,m+12|0);kf:{if(!j)break kf;b=J[c+8>>2];if((b|0)!=J[c+12>>2]){J[b>>2]=j;J[c+8>>2]=b+4;break kf}i=J[n>>2];h=b-i|0;d=h>>2;g=d+1|0;if(g>>>0>=1073741824)break gf;e=h>>1;h=h>>>0>=2147483644?1073741823:e>>>0>g>>>0?e:g;if(h){if(h>>>0>=1073741824)break ff;e= -Pb(h<<2)}else e=0;d=e+(d<<2)|0;J[d>>2]=j;g=d+4|0;if((b|0)!=(i|0)){while(1){d=d-4|0;b=b-4|0;J[d>>2]=J[b>>2];if((b|0)!=(i|0))continue;break}b=J[n>>2]}J[c+12>>2]=e+(h<<2);J[c+8>>2]=g;J[c+4>>2]=d;if(!b)break kf;Kb(b)}if(M[m+12>>2]>>0)continue;break}}xb=m+16|0;break ef}break b}Ti(n);B()}zd();B()}_f(a,c,o);break Fe;case 4:lf:{mf:{nf:{if(!(b>>>15|0)){d=Pb(32);J[195395]=0;J[d>>2]=415408;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d>>2]=416512;J[d+24>>2]=0;J[d+28>>2]=0;b=J[195395]; -J[195395]=0;if((b|0)==1)break nf;c=J[a>>2]-12|0;b=J[c>>2]+a|0;e=J[b+12>>2]+4|0;g=b;b=J[b+16>>2];J[g+12>>2]=b>>>0>e>>>0?e:b;b=J[c>>2]+a|0;e=J[b+12>>2];if(e+3>>>0>=M[b+16>>2])break mf;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[b+12>>2]=e+4;if(c-1>>>0<=1)J[d+16>>2]=c;of:switch(c-1|0){case 0:KA(a,d,1);break mf;case 1:JA(a,d,1);break;default:break of}break mf}pf:{qf:{rf:{c=a+236|0;d=J[c>>2];sf:{if(!d)break sf;b=c;while(1){e=o>>>0>M[d+16>>2];b=e?b:d;d=J[(e?d+4|0:d)>>2];if(d)continue;break}if((b| -0)==(c|0))break sf;if(o>>>0>=M[b+16>>2])break rf}h=J[a+116>>2];d=Pb(32);J[195395]=0;J[d>>2]=415408;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d>>2]=416512;J[d+24>>2]=0;J[d+28>>2]=0;g=d;b=J[195395];J[195395]=0;tf:{if((b|0)!=1){c=J[J[a>>2]-12>>2]+a|0;e=J[c+12>>2];if(e+3>>>0>2]){b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[c+12>>2]=e+4;c=b-16|0}else c=-16;tn(d,c);c=J[a>>2]-12|0;b=J[c>>2]+a|0;e=J[b+12>>2]+4|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>e>>>0?e:b;b=J[c>>2]+a| -0;e=J[b+12>>2];uf:{if(e+3>>>0>=M[b+16>>2])break uf;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[b+12>>2]=e+4;if(c-1>>>0<=1)J[g+16>>2]=c;vf:switch(c-1|0){case 0:e=J[a>>2]-12|0;i=J[e>>2];b=i+a|0;d=J[b+12>>2];c=J[b+16>>2];if(c>>>0>d+3>>>0){J[b+12>>2]=d+4;i=J[e>>2];b=i+a|0;c=J[b+16>>2];d=J[b+12>>2]}if(d+3>>>0>>0){J[(a+i|0)+12>>2]=d+4;i=J[e>>2];b=i+a|0;c=J[b+16>>2];d=J[b+12>>2]}if(d+3>>>0>>0){J[(a+i|0)+12>>2]=d+4;i=J[e>>2];b=i+a|0;c=J[b+16>>2];d=J[b+12>>2]}b=d+4|0;J[(a+i|0)+12>>2]=b>>>0>> -0?b:c;c=J[e>>2]+a|0;b=J[c+12>>2];if(b+3>>>0>=M[c+16>>2])break uf;J[c+12>>2]=b+4;break uf;case 1:break vf;default:break uf}d=0;b=J[J[a>>2]-12>>2]+a|0;c=J[b+12>>2];if(c+3>>>0>2]){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4}b=d-1>>>0<5;J[g+20>>2]=b?d:0;if(!b)break uf;d=0;b=J[J[a>>2]-12>>2]+a|0;c=J[b+12>>2];if(c+3>>>0>2]){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4}b=J[a+116>>2]-16|0;tn(g,b>>>0>>0?d:b)}_f(a,g,o);if(J[g+16>>2]!=2)break tf;e=h- -20|0;break qf}break nf}e=J[g+16>>2]==1?h-32|0:h;break qf}e=J[a+116>>2];c=J[J[a>>2]-12>>2]+a|0;d=J[c+12>>2]+4|0;g=c;c=J[c+16>>2];J[g+12>>2]=c>>>0>d>>>0?d:c;c=J[b+20>>2];if((Ab[J[J[c>>2]+12>>2]](c)|0)!=5)break pf;g=J[b+20>>2];e=e-4|0}l=Pb(e);m=J[J[a>>2]-12>>2]+a|0;n=J[m+16>>2];b=J[m+12>>2];c=n-b|0;j=c>>>0>>0?c:e;wf:{if(!j)break wf;d=0;if((j|0)!=1){h=j&-2;i=0;while(1){xf:{if(b>>>0>=n>>>0){c=0;break xf}c=K[b|0];b=b+1|0;J[m+12>>2]=b}H[d+l|0]=c;c=0;if(b>>>0>>0){c=K[b|0];b=b+1|0;J[m+12>>2]=b}H[l+(d| -1)|0]=c;d=d+2|0;i=i+2|0;if((h|0)!=(i|0))continue;break}}if(!(j&1))break wf;c=0;if(b>>>0>>0){c=K[b|0];J[m+12>>2]=b+1}H[d+l|0]=c}sn(g,l,e);Kb(l)}break lf}a=Z()|0;Kb(d);break a}_f(a,d,o)}break Fe;case 5:i=0;m=xb-16|0;xb=m;b=J[J[a>>2]-12>>2]+a|0;c=J[b+12>>2]+4|0;d=b;b=J[b+16>>2];J[d+12>>2]=b>>>0>c>>>0?c:b;e=Pb(40);J[195395]=0;b=xA(e);c=J[195395];J[195395]=0;yf:{if((c|0)!=1){h=J[a>>2]-12|0;e=J[h>>2]+a|0;d=J[e+12>>2];if(d+3>>>0>2]){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]= -d+4;k=+(x(2,c),C())}else k=0;O[b+8>>3]=k;c=0;e=J[h>>2]+a|0;d=J[e+12>>2];if(d+3>>>0>2]){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4}J[b+16>>2]=c;c=J[h>>2]+a|0;d=J[c+12>>2];zf:{if(d+3>>>0>=M[c+16>>2])break zf;e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c+12>>2]=d+4;if(e&1)H[b+20|0]=1;if(e&2)H[b+21|0]=1;if(e&8)H[b+23|0]=1;if(!(e&4))break zf;H[b+22|0]=1}c=J[h>>2]+a|0;e=J[c+12>>2]+4|0;d=c;c=J[c+16>>2];J[d+12>>2]=c>>>0>e>>>0?e:c;g=0;e=J[h>>2]+a|0;d=J[e+12>>2];if(d+3>>> -0>2]){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;g=c>>>0>=15?15:c}c=g<<1;l=Pb(c+2|0);I[c+l>>1]=0;n=J[h>>2]+a|0;j=J[n+16>>2];d=J[n+12>>2];c=(j-d|0)/2|0;h=c>>>0>>0?c:g;Af:{if(!h)break Af;p=0;if((h|0)!=1){e=h&14;while(1){Bf:{if(j>>>0<=d+1>>>0){c=0;break Bf}c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[n+12>>2]=d}I[l+(p<<1)>>1]=c;c=0;if(j>>>0>d+1>>>0){c=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[n+12>>2]=d}I[l+((p|1)<<1)>>1]=c;p=p+2|0;i=i+2|0;if((e|0)!=(i|0))continue;break}}if(!(h&1))break Af;c=0; -if(j>>>0>d+1>>>0){c=K[d|0]|K[d+1|0]<<8;J[n+12>>2]=d+2}I[l+(p<<1)>>1]=c}en(m+4|0,l,g);if(H[b+35|0]<0)Kb(J[b+24>>2]);c=J[m+8>>2];J[b+24>>2]=J[m+4>>2];J[b+28>>2]=c;J[b+32>>2]=J[m+12>>2];Kb(l);xb=m+16|0;break yf}a=Z()|0;Kb(e);break a}_f(a,b,o);break Fe;case 6:b=Pb(56);J[195395]=0;J[b>>2]=415408;J[b>>2]=416624;c=J[195395];J[195395]=0;if((c|0)!=1){u=0;r=0;g=J[J[a>>2]-12>>2]+a|0;c=J[g+12>>2]+4|0;h=J[g+16>>2];c=c>>>0>>0?c:h;J[g+12>>2]=c;e=b;Cf:{if(h>>>0<=c+3>>>0){d=c;c=0;break Cf}d=c+4|0;c=K[c|0]|K[c+ -1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24)}J[b+4>>2]=c;b=d+4|0;b=b>>>0>>0?b:h;J[g+12>>2]=b;if(h>>>0>b+3>>>0){u=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[e+8>>2]=u;u=0;if(h>>>0>b+3>>>0){u=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0}J[e+12>>2]=u;b=b+8|0;b=b>>>0>>0?b:h;J[g+12>>2]=b;if(h>>>0>b+3>>>0){r=+(x(2,K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24)),C());b=b+4|0}O[e+16>>3]=r;b=b+4|0;b=b>>>0>>0?b:h;J[g+12>>2]=b;if(h>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+ -2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,c),C())}else k=0;O[e+24>>3]=k;if(h>>>0<=b+3>>>0)k=0;else{c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,c),C())}O[e+32>>3]=k;if(h>>>0>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,c),C())}else k=0;O[e+40>>3]=k;u=0;Df:{if(h>>>0<=b+3>>>0){d=0;break Df}d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b}J[e+48>>2]=d;Ef:{if(h>>>0<=b+3>>>0){c=b;break Ef}d=K[b|0]| -K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=b+4|0;J[g+12>>2]=c;u=d<<2}b=0;d=g;if(h>>>0>c+3>>>0){b=(K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))<<3;c=c+4|0}g=b;b=c+u|0;b=g+(b>>>0>>0?b:h)|0;J[d+12>>2]=b>>>0>>0?b:h;_f(a,e,o);break Fe}break De;case 7:b=Pb(16);J[195395]=0;J[b>>2]=415408;J[b+8>>2]=-16777216;J[b>>2]=416488;c=J[195395];J[195395]=0;if((c|0)!=1){e=b;g=J[J[a>>2]-12>>2]+a|0;b=J[g+12>>2]+8|0;h=J[g+16>>2];b=b>>>0>>0?b:h;J[g+12>>2]=b;Ff:{if(h>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<< -16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;if(d>>>0>4)break Ff}J[e+4>>2]=d;d=0;Gf:{if(b>>>0>=h>>>0){c=0;break Gf}c=K[b|0];b=b+1|0;J[g+12>>2]=b}H[e+8|0]=c;if(b>>>0>>0){d=K[b|0];b=b+1|0;J[g+12>>2]=b}H[e+9|0]=d;d=0;Hf:{if(b>>>0>=h>>>0){c=0;break Hf}c=K[b|0];b=b+1|0;J[g+12>>2]=b}H[e+10|0]=c;if(b>>>0>>0){d=K[b|0];b=b+1|0;J[g+12>>2]=b}H[e+11|0]=d;d=0;if(h>>>0>b+3>>>0){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0}J[e+12>>2]=d;b=b+4|0;J[g+12>>2]=b>>>0>>0?b:h}_f(a,e,o);break Fe}break De;case 0:break Ge; -default:break Fe}_f(a,LA(a),o)}xb=f+32|0;break Ce}a=Z()|0;break a}a=Z()|0;Kb(b);break a}break p;case 55:j=J[m+16>>2];d=j>>>0>c+3>>>0;b=(d<<2)+c|0;e=b+1>>>0>>0;b=(e<<1)+b|0;g=b+1|0;c=((g>>>0>>0)<<1)+b|0;if(!(!(d|e)&g>>>0>=j>>>0))J[m+12>>2]=c;If:{if((c|0)==(j|0))break If;b=j-c|0;b=b>>>0>=8?8:b;h=b&3;if(b-1>>>0>=3){e=b&12;g=0;while(1){b=c>>>0>>0;c=b?c+1|0:c;f=c>>>0>>0;c=f?c+1|0:c;d=c>>>0>>0;i=d?c+1|0:c;c=i>>>0>>0?i+1|0:i;Jf:{if(!(d|(b|f)))if(i>>>0>=j>>>0)break Jf;J[m+12>>2]=c}g=g+4| -0;if((e|0)!=(g|0))continue;break}}b=0;if(!h)break If;while(1){if(c>>>0>>0){c=c+1|0;J[m+12>>2]=c}b=b+1|0;if((h|0)!=(b|0))continue;break}}c=J[n>>2]+a|0;b=J[c+12>>2];if(b+3>>>0>=M[c+16>>2])break p;J[c+12>>2]=b+4;break p;case 28:b=J[m+16>>2];if(b>>>0>c+3>>>0){J[m+12>>2]=c+4;d=J[n>>2];c=d+a|0;b=J[c+16>>2];c=J[c+12>>2]}if(c+3>>>0>=b>>>0)break p;J[d+P>>2]=c+4;break p;case 38:b=J[m+16>>2];h=b>>>0>c+3>>>0;e=(h<<2)+c|0;f=e+3>>>0>>0;e=e+(f<<2)|0;g=e+3>>>0>>0;e=(g<<2)+e|0;i=e+3|0;Kf:{if(!(g|(f|h)))if(b>>> -0<=i>>>0)break Kf;J[m+12>>2]=e+((b>>>0>i>>>0)<<2);d=J[n>>2];c=d+a|0;b=J[c+16>>2];c=J[c+12>>2]}h=c+3>>>0>>0;e=(h<<2)+c|0;f=e+3>>>0>>0;e=(f<<2)+e|0;g=e+3>>>0>>0;e=(g<<2)+e|0;i=e+3|0;Lf:{if(!(g|(f|h)))if(b>>>0<=i>>>0)break Lf;J[d+P>>2]=e+((b>>>0>i>>>0)<<2);d=J[n>>2];c=d+a|0;b=J[c+16>>2];c=J[c+12>>2]}if(c+3>>>0>=b>>>0)break p;J[d+P>>2]=c+4;break p;case 39:if(M[m+16>>2]<=c+3>>>0)break p;J[m+12>>2]=c+4;break p;case 40:if(M[m+16>>2]<=c+3>>>0)break p;J[m+12>>2]=c+4;break p;case 37:d=0;if(M[m+16>> -2]>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[m+12>>2]=c+4}kA(U,d);J[a+120>>2]=J[U>>2];b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break p;case 36:d=0;if(M[m+16>>2]>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[m+12>>2]=c+4}lA(U,d);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break p;case 57:if(b<<16>>16<0){d=0;g=b&32767;if(g){e=J[a>>2]-12|0;while(1){i=J[e>>2]+a|0;b=J[i+12>>2];j=J[i+16>>2];c=j>>>0>b>>>0;b=c?b+1|0:b;h=b+1|0;f=b;b=b>>>0>>0;h=b?h:f;f=h>>>0>>0;h=f?h+ -1|0:h;Mf:{if(!(f|(b|c)))if(h>>>0>=j>>>0)break Mf;J[i+12>>2]=h>>>0>>0?h+1|0:h}d=d+1|0;if((g|0)!=(d|0))continue;break}}break p}c=0;i=0;j=b&32767;if(j){d=j<<3;g=Pb(d);b=g;e=j&3;if(e)while(1){I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=1024;I[b+6>>1]=1024;b=b+8|0;c=c+1|0;if((e|0)!=(c|0))continue;break}if((j-1&536870911)>>>0>=3){c=d+g|0;while(1){I[b+24>>1]=0;I[b+26>>1]=0;I[b+28>>1]=1024;I[b+30>>1]=1024;I[b+16>>1]=0;I[b+18>>1]=0;I[b+20>>1]=1024;I[b+22>>1]=1024;I[b+8>>1]=0;I[b+10>>1]=0;I[b+12>>1]=1024;I[b+14>>1]= -1024;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=1024;I[b+6>>1]=1024;b=b+32|0;if((c|0)!=(b|0))continue;break}}if(j){e=J[a>>2]-12|0;while(1){f=g+(i<<3)|0;h=J[e>>2]+a|0;b=J[h+12>>2];d=J[h+16>>2];Nf:{if(b+1>>>0>=d>>>0){c=0;break Nf}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[h+12>>2]=b}I[f>>1]=c;c=0;Of:{if(d>>>0<=b+1>>>0){s=0;break Of}s=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[h+12>>2]=b}I[f+2>>1]=s;if(d>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[h+12>>2]=b}I[f+4>>1]=c;c=0;if(d>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[h+12>>2]=b+2}I[f+6>>1]= -c;i=i+1|0;if((j|0)!=(i|0))continue;break}}Kb(g)}break p;case 56:e=xb-48|0;xb=e;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=1072693248;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=1072693248;J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;f=J[a>>2]-12|0;d=J[f>>2];g=d+a|0;b=J[g+12>>2];c=J[g+16>>2];if(b>>>0>>0){J[g+12>>2]=b+1;d=J[f>>2];b=d+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b>>>0>>0){J[(a+d|0)+12>>2]=b+1;d=J[f>>2];b=d+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b>>>0>>0){J[(a+d|0)+12>>2]=b+1;d= -J[f>>2];b=d+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b>>>0>>0){J[(a+d|0)+12>>2]=b+1;d=J[f>>2];b=d+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+1>>>0>>0){J[(a+d|0)+12>>2]=b+2;d=J[f>>2];b=d+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+1>>>0>>0){J[(a+d|0)+12>>2]=b+2;d=J[f>>2];b=d+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b+1>>>0>>0){J[(a+d|0)+12>>2]=b+2;d=J[f>>2];b=d+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b>>>0>>0){J[(a+d|0)+12>>2]=b+1;d=J[f>>2];b=d+a|0;c=J[b+16>>2];b=J[b+12>>2]}if(b>>>0>>0){J[(a+d|0)+12>>2]=b+1;d=J[f>>2];b= -d+a|0;c=J[b+16>>2];b=J[b+12>>2]}j=b+3>>>0>>0;b=(j<<2)+b|0;i=b+3>>>0>>0;b=(i<<2)+b|0;h=b+3>>>0>>0;b=(h<<2)+b|0;f=b+3>>>0>>0;b=(f<<2)+b|0;g=b+3>>>0>>0;b=(g<<2)+b|0;n=b+3|0;Pf:{Qf:{if(i|j|(f|h))break Qf;if(g)break Qf;if(c>>>0<=n>>>0)break Pf}J[(a+d|0)+12>>2]=b+((c>>>0>n>>>0)<<2)}xb=e+48|0;break p;case 43:d=b&65535;c=xb-48|0;xb=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+40>>2]=0;J[c+ -44>>2]=0;f=J[J[a>>2]-12>>2]+a|0;b=J[f+12>>2];g=J[f+16>>2];if(b+3>>>0>=g>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;k=+(x(2,e),C())}O[c>>3]=k;if(g>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;k=+(x(2,e),C())}else k=0;O[c+8>>3]=k;if(g>>>0<=b+3>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;k=+(x(2,e),C())}O[c+16>>3]=k;if(g>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b= -b+4|0;J[f+12>>2]=b;k=+(x(2,e),C())}else k=0;O[c+24>>3]=k;if(g>>>0<=b+3>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[f+12>>2]=b;k=+(x(2,e),C())}O[c+32>>3]=k;if(g>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+12>>2]=b+4;k=+(x(2,e),C())}else k=0;O[c+40>>3]=k;Qh(J[a+120>>2],c,d&8192?3:2);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);H[a+213|0]=1;xb=c+48|0;break p;case 42:b=J[a+120>>2];J[b+416>>2]=0;J[b+420>>2]=0;J[b+408>>2]=0;J[b+412>>2]=1072693248;J[b+440>> -2]=0;J[b+444>>2]=0;J[b+432>>2]=0;J[b+436>>2]=1072693248;J[b+424>>2]=0;J[b+428>>2]=0;J[b+448>>2]=0;J[b+452>>2]=0;Yf(b);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);H[a+213|0]=1;break p;case 46:r=0;if(M[m+16>>2]>c+3>>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[m+12>>2]=c+4;r=+(x(2,e),C())*.017453292519943295}q=ue(r);k=Fe(r);O[E+40>>3]=0;O[E+32>>3]=0;O[E+24>>3]=k;O[E+16>>3]=-q;O[E+8>>3]=q;O[E>>3]=k;Qh(J[a+120>>2],E,b&8192?3:2);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);H[a+213|0]=1;break p; -case 45:g=J[m+16>>2];if(g>>>0<=c+3>>>0)k=0;else{e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[m+12>>2]=c+4;d=J[n>>2];c=d+a|0;g=J[c+16>>2];c=J[c+12>>2];k=+(x(2,e),C())}if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[d+P>>2]=c+4;q=+(x(2,e),C())}else q=0;O[E+40>>3]=0;O[E+32>>3]=0;O[E+24>>3]=q;O[E+16>>3]=0;O[E+8>>3]=0;O[E>>3]=k;Qh(J[a+120>>2],E,b&8192?3:2);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);H[a+213|0]=1;break p;case 47:r=0;g=xb-48|0;xb=g;e=J[J[a>>2]-12>>2]+a|0;d=J[e+ -12>>2];if(d+3>>>0>2]){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;r=+(x(2,c),C())}O[a+224>>3]=r;Rf:{Sf:{Tf:switch((b&255)-3|0){case 0:k=+Q(Q(M[a+216>>2])*Q(72));break Sf;case 1:k=+M[a+216>>2];break Sf;case 2:k=+Q(Q(M[a+216>>2])/Q(300));break Sf;case 3:break Tf;default:break Rf}k=+Q(Q(M[a+216>>2])/Q(25.399999618530273))}r=r*k;O[a+224>>3]=r}O[g+40>>3]=0;O[g+32>>3]=0;O[g+24>>3]=r;O[g+16>>3]=0;O[g+8>>3]=0;O[g>>3]=r;Qh(J[a+120>>2],g,2);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b); -H[a+213|0]=1;xb=g+48|0;break p;case 41:z=0;A=0;c=xb-48|0;xb=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;g=J[J[a>>2]-12>>2]+a|0;b=J[g+12>>2];d=J[g+16>>2];if(b+3>>>0>=d>>>0)w=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;w=+(x(2,e),C())}O[c>>3]=w;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;z=+(x(2,e), -C())}O[c+8>>3]=z;if(d>>>0<=b+3>>>0)q=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;q=+(x(2,e),C())}O[c+16>>3]=q;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;A=+(x(2,e),C())}O[c+24>>3]=A;if(d>>>0<=b+3>>>0)k=0;else{e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[g+12>>2]=b;k=+(x(2,e),C())}O[c+32>>3]=k;if(d>>>0>b+3>>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[g+12>>2]=b+4;r=+(x(2,e),C())}else r=0;y=O[a+224>> -3];O[c+40>>3]=r*y;O[c+32>>3]=k*y;O[c+24>>3]=A*y;O[c+16>>3]=q*y;O[c+8>>3]=z*y;O[c>>3]=w*y;Qh(J[a+120>>2],c,4);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);H[a+213|0]=1;xb=c+48|0;break p;case 44:break q;default:break p}g=J[m+16>>2];if(g>>>0<=c+3>>>0)k=0;else{e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[m+12>>2]=c+4;d=J[n>>2];c=d+a|0;g=J[c+16>>2];c=J[c+12>>2];k=+(x(2,e),C())}if(c+3>>>0>>0){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[d+P>>2]=c+4;q=+(x(2,g),C())}else q=0;O[E+40>>3]=q;O[E+ -32>>3]=k;O[E+24>>3]=1;O[E+16>>3]=0;O[E+8>>3]=0;O[E>>3]=1;Qh(J[a+120>>2],E,b&8192?3:2);b=J[a+208>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);H[a+213|0]=1}d=J[a>>2];e=d-12|0;b=J[e>>2]+a|0;c=J[a+116>>2]+(J[b+4>>2]+W|0)|0;g=b;b=J[b+16>>2];J[g+12>>2]=b>>>0>c>>>0?c:b;b=J[e>>2]+a|0;J[b+16>>2]=J[b+8>>2];J[a+116>>2]=0;p=J[e>>2];b=p+a|0;e=J[b+12>>2];if(J[b+16>>2]-e>>>0<12)break n;if(!K[a+212|0])continue;break}}b=J[d-12>>2]+a|0;if(!K[b+33|0]){a=J[b+8>>2];J[b+12>>2]=J[b+4>>2];J[b+16>>2]=a}xb=E+48|0;return}b=Z()|0;a=J[g+ -36>>2];if(a){J[g+40>>2]=a;Kb(a)}break e}Kb(e)}ba(c|0);B()}J[e+104>>2]=a;Kb(a)}ba(d|0);B()}b=Z()|0;a=J[c+4>>2];if(a){J[c+8>>2]=a;Kb(a)}break e}b=Z()|0;a=J[g+52>>2];if(a){J[g+56>>2]=a;Kb(a)}break e}b=Z()|0;a=J[g+116>>2];if(a){J[g+120>>2]=a;Kb(a)}}ba(b|0);B()}J[d+8>>2]=a;Kb(a);ba(e|0);B()}a=Z()|0;Ge(b);break a}a=Z()|0;Kb(b)}ba(a|0);B()}function Bja(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,u=0,v=0,w=0,x=0,y=0,z=Q(0),A=0,C=0,D=0,E=0,F=0,G=0,O=0,S= -0,T=Q(0),U=0,W=0,X=0,Y=0,da=0,ga=0,ia=0,ja=0,la=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=Q(0);if(!b){b=K[238177]|K[238178]<<8;H[a+88|0]=b;H[a+89|0]=b>>>8;c=K[238173]|K[238174]<<8|(K[238175]<<16|K[238176]<<24);b=K[238169]|K[238170]<<8|(K[238171]<<16|K[238172]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[238165]|K[238166]<<8|(K[238167]<<16|K[238168]<<24);b=K[238161]|K[238162]<< -8|(K[238163]<<16|K[238164]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}da=Ab[J[J[b>>2]+24>>2]](b)|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(c>>>0<=1){d=Pb(944);J[195395]=0;g=Fd(d,1);e=J[195395];J[195395]=0;if((e|0)==1)break f;J[g>>2]=240372;Qg(g,a);o=xb-112|0;xb=o;d=0;p:{if(!b)break p;p=Ab[J[J[b>>2]+24>>2]](b)|0;q:{r:{s:{t:{u:{if(!(Ab[J[J[b>>2]+12>>2]](b,o+98|0,14,1,0,0)|0)){oc(g+72|0,238430,255); -break u}d=Mf(g,L[o+100>>1]|L[o+102>>1]<<16);I[o+100>>1]=d;I[o+102>>1]=d>>>16;d=Mf(g,L[o+108>>1]|L[o+110>>1]<<16);I[o+108>>1]=d;I[o+110>>1]=d>>>16;d=I[o+98>>1];if(((K[g+462|0]?d:d<<8|(d&65280)>>>8)&65535)!=19778){I[o+108>>1]=0;I[o+110>>1]=0;Ab[J[J[b>>2]+20>>2]](b,p,0)|0}e=0;f=o+56|0;v:{if(!b|!f)break v;if(!(Ab[J[J[b>>2]+12>>2]](b,f,40,1,0,0)|0))break v;hi(g,f);w:{x:{y:{z:{h=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);if((h|0)<=63){if((h|0)==12)break z;if((h|0)==40)break w;break y}d=24;if((h|0)== -64)break x;if((h|0)!=124)break y;d=84;break x}H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;d=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);H[f+12|0]=d;H[f+13|0]=d>>>8;H[f+14|0]=d>>>16;H[f+15|0]=d>>>24;d=K[f+6|0]|K[f+7|0]<<8;H[f+8|0]=d;H[f+9|0]=d>>>8;H[f+10|0]=d>>>16;H[f+11|0]=d>>>24;d=K[f+4|0]|K[f+5|0]<<8;H[f+4|0]=d;H[f+5|0]=d>>>8;H[f+6|0]=d>>>16;H[f+7|0]=d>>>24;H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;H[f+29|0]=0;H[f+30|0]= -0;H[f+31|0]=0;H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+36|0]=0;H[f+37|0]=0;H[f+38|0]=0;H[f+39|0]=0;d=-28;break x}if(h>>>0<41|(K[f+20|0]|K[f+21|0]<<8|(K[f+22|0]<<16|K[f+23|0]<<24))>>>0>>0|(K[f+32|0]|K[f+33|0]<<8|(K[f+34|0]<<16|K[f+35|0]<<24)|(K[f+12|0]|K[f+13|0]<<8)!=1))break v;if(K[f+16|0]|K[f+17|0]<<8|(K[f+18|0]<<16|K[f+19|0]<<24))break w;d=h- -40|0}Ab[J[J[b>>2]+20>>2]](b,d,1)|0}if(!(K[f+20|0]|K[f+21|0]<<8|(K[f+22|0]<<16|K[f+23|0]<<24))){d=P(P(K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24),K[f+14|0]|K[f+15|0]<<8)+31>>>3&536870908,K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24));H[f+20|0]=d;H[f+21|0]=d>>>8;H[f+22|0]=d>>>16;H[f+23|0]=d>>>24}e=1;if(K[f+32|0]|K[f+33|0]<<8|(K[f+34|0]<<16|K[f+35|0]<<24))break v;d=K[f+14|0]|K[f+15|0]<<8;d=d>>>0<9?1<>>8;H[f+34|0]=d>>>16;H[f+35|0]=d>>>24}if(!e){oc(g+72|0,238573, -255);break u}j=J[o+64>>2];e=j;if((e|0)<0){e=0-e|0;J[o+64>>2]=e}d=J[o+60>>2];if(J[g+332>>2]==-1){J[g+68>>2]=1;J[g+20>>2]=e;J[g+16>>2]=d;oc(g+72|0,239026,255);break u}h=J[o+56>>2];s=J[o+72>>2];f=L[o+70>>1];if(!Af(g,d,e,f,1))break u;A=V(+J[o+80>>2]*254/1E4+.5);A:{if(R(A)<2147483648){d=~~A;break A}d=-2147483648}ig(g,d);A=V(+J[o+84>>2]*254/1E4+.5);B:{if(R(A)<2147483648){d=~~A;break B}d=-2147483648}ji(g,d);if(J[g+332>>2]){oc(g+72|0,239264,255);break u}q=J[g+4>>2];u=q?J[g+44>>2]?q+40|0:0:0;C:{if(!u)break C; -e=J[o+88>>2];d=L[o+70>>1];l=e?e:d>>>0<9?1<>2];d=J[J[b>>2]+12>>2];if((h|0)==12){Ab[d|0](b,u,P(l,3),1,q,e)|0;d=J[g+44>>2];D:{if(!d){d=L[g+26>>1];if(d>>>0>8)break C;d=1<>>0>1;d=e;if(h)continue;break}break C}Ab[d|0](b,u,l<<2,1,q,e)|0;h=J[g+44>>2];if(!h)break C;d=0;if(h>>>0>=8){e=h&-8;while(1){l=d<<2;H[(l+u|0)+3|0]=0;H[(u+(l|4)|0)+3|0]=0;H[(u+(l|8)| -0)+3|0]=0;H[(u+(l|12)|0)+3|0]=0;H[(u+(l|16)|0)+3|0]=0;H[(u+(l|20)|0)+3|0]=0;H[(u+(l|24)|0)+3|0]=0;H[(u+(l|28)|0)+3|0]=0;d=d+8|0;m=m+8|0;if((e|0)!=(m|0))continue;break}}e=h&7;if(!e)break C;while(1){H[(u+(d<<2)|0)+3|0]=0;d=d+1|0;k=k+1|0;if((e|0)!=(k|0))continue;break}}if(J[g+332>>2]){oc(g+72|0,239264,255);break u}E:{F:{G:{H:switch(f-1|0){case 31:I:{if((s|0)==3){Ab[J[J[b>>2]+12>>2]](b,o+44|0,12,1,0,0)|0;if((J[o+44>>2]&J[o+48>>2]&J[o+52>>2])!=-1)break I}J[o+44>>2]=16711680;J[o+48>>2]=65280;J[o+52>>2]= -255}d=L[o+108>>1]|L[o+110>>1]<<16;if(d)Ab[J[J[b>>2]+20>>2]](b,d+p|0,0)|0;J:switch(s|0){case 0:case 3:d=P(J[g+20>>2],J[g+16>>2])<<2;q=Qb(d);if(!q)break G;Ab[J[J[b>>2]+12>>2]](b,q,d,1,0,0)|0;K:{if(s)break K;hg(g);if(!J[g+932>>2])break K;k=J[g+20>>2];L:{if((k|0)<=0)break L;d=0;p=J[g+16>>2];if((p|0)<=0)break L;l=q+3|0;h=0;while(1){if((p|0)>0){k=l+(P(d,p)<<2)|0;e=0;while(1){f=K[k|0];ne(g,e,d,f);k=k+4|0;h=(f|0)!=0|h;e=e+1|0;p=J[g+16>>2];if((e|0)<(p|0))continue;break}k=J[g+20>>2]}d=d+1|0;if((k|0)>(d|0))continue; -break}if(h&1)break K}h=J[g+932>>2];M:{if(!h)break M;e=P(J[g+16>>2],J[g+20>>2]);if((e|0)<=0)break M;if(e>>>0>=4){d=e&-4;f=0;while(1){H[h|0]=K[h|0]^-1;H[h+1|0]=K[h+1|0]^-1;H[h+2|0]=K[h+2|0]^-1;H[h+3|0]=K[h+3|0]^-1;h=h+4|0;f=f+4|0;if((d|0)!=(f|0))continue;break}}d=e&3;if(!d)break M;f=0;while(1){H[h|0]=K[h|0]^-1;h=h+1|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}}XE(g,q,J[o+44>>2],J[o+48>>2],J[o+52>>2],32);Kb(q);if((j|0)<0)break r;break q;default:break J}oc(g+72|0,239524,255);break u;case 23:d=L[o+108>> -1]|L[o+110>>1]<<16;if(d)Ab[J[J[b>>2]+20>>2]](b,d+p|0,0)|0;if(!s){Ab[J[J[b>>2]+12>>2]](b,J[g+56>>2],J[g+32>>2],1,J[g+4>>2],J[g+8>>2])|0;break s}oc(g+72|0,239524,255);break u;case 15:N:{if((s|0)==3){Ab[J[J[b>>2]+12>>2]](b,o+16|0,12,1,0,0)|0;break N}J[o+24>>2]=31;J[o+16>>2]=31744;J[o+20>>2]=992}d=L[o+108>>1]|L[o+110>>1]<<16;if(d)Ab[J[J[b>>2]+20>>2]](b,d+p|0,0)|0;Ab[J[J[b>>2]+12>>2]](b,J[g+56>>2],P(J[g+20>>2],(J[g+16>>2]+1|0)/2|0)<<2,1,J[g+4>>2],J[g+8>>2])|0;XE(g,J[g+56>>2],J[o+16>>2],J[o+20>>2],J[o+ -24>>2],16);break s;case 0:case 3:case 7:break H;default:break s}d=L[o+108>>1]|L[o+110>>1]<<16;O:{if(!d)break O;d=d+p|0;if(d>>>0>2])break O;Ab[J[J[b>>2]+20>>2]](b,d,0)|0}P:switch(s|0){case 1:break t;case 0:break F;case 2:break P;default:break E}q=0;H[o+43|0]=0;H[o+42|0]=0;J[o+36>>2]=g;d=fd(g,0);J[o+24>>2]=0;J[o+28>>2]=0;J[o+16>>2]=0;J[o+20>>2]=0;J[o+32>>2]=d;if(!(Ab[J[J[b>>2]+12>>2]](b,o+43|0,1,1,0,0)|0))break s;p=0;e=0;while(1){Q:{R:{if(!K[o+43|0]){Ab[J[J[b>>2]+12>>2]](b,o+43|0,1,1,0,0)|0; -S:switch(K[o+43|0]){case 0:q=q+1|0;p=0;e=0;break Q;case 2:Ab[J[J[b>>2]+12>>2]](b,o+15|0,1,1,0,0)|0;Ab[J[J[b>>2]+12>>2]](b,o+14|0,1,1,0,0)|0;q=K[o+14|0]+q|0;p=(K[o+15|0]>>>1|0)+p|0;break Q;case 1:break s;default:break S}h=0;Ab[J[J[b>>2]+12>>2]](b,o+42|0,1,1,0,0)|0;f=bo(o+16|0,q);if(!K[o+43|0])break Q;while(1){T:{U:{V:{W:{l=f+p|0;if(l>>>0>=J[g+56>>2]+J[g+32>>2]>>>0){k=h&1;break W}k=h&1;d=K[o+42|0];if(e){H[l|0]=K[l|0]|(k?d&15:(d&240)>>>4|0);p=p+1|0;break W}if(k){H[l|0]=d<<4;d=K[o+43|0];break V}H[l|0]= -d&240;break U}d=K[o+43|0];if(!k)break T}if(((d&255)-1|0)==(h|0))break T;Ab[J[J[b>>2]+12>>2]](b,o+42|0,1,1,0,0)|0}d=K[o+43|0]}e=!e;h=h+1|0;d=d&255;if(h>>>0>>0)continue;break}break R}d=bo(o+16|0,q);h=0;Ab[J[J[b>>2]+12>>2]](b,o+42|0,1,1,0,0)|0;if(!K[o+43|0])break Q;while(1){k=d+p|0;X:{if(k>>>0>=J[g+56>>2]+J[g+32>>2]>>>0)break X;f=h&1;l=K[o+42|0];if(e){H[k|0]=K[k|0]|(f?l&15:(l&240)>>>4|0);p=p+1|0;break X}if(f){H[k|0]=l<<4;break X}H[k|0]=l&240}e=!e;h=h+1|0;if(h>>>0>2]+12>>2]](b,o+42|0,1,1,0,0)|0}if(Ab[J[J[b>>2]+12>>2]](b,o+43|0,1,1,0,0)|0)continue;break}break s}oc(g+72|0,239337,255);break u}Ab[J[J[b>>2]+12>>2]](b,J[g+56>>2],J[g+32>>2],1,J[g+4>>2],J[g+8>>2])|0;break s}oc(g+72|0,239913,255)}d=J[g+332>>2]==-1&J[g+68>>2]==1;break p}k=0;H[o+43|0]=0;H[o+42|0]=0;J[o+36>>2]=g;d=fd(g,0);J[o+24>>2]=0;J[o+28>>2]=0;J[o+16>>2]=0;J[o+20>>2]=0;J[o+32>>2]=d;if(!(Ab[J[J[b>>2]+12>>2]](b,o+43|0,1,1,0,0)|0))break s;e=0;while(1){Y:{if(!K[o+43|0]){Ab[J[J[b>> -2]+12>>2]](b,o+43|0,1,1,0,0)|0;Z:switch(K[o+43|0]){case 0:k=k+1|0;e=0;break Y;case 2:Ab[J[J[b>>2]+12>>2]](b,o+15|0,1,1,0,0)|0;Ab[J[J[b>>2]+12>>2]](b,o+14|0,1,1,0,0)|0;k=K[o+14|0]+k|0;e=K[o+15|0]+e|0;break Y;case 1:break s;default:break Z}xa=b,ya=bo(o+16|0,k)+e|0,za=K[o+43|0],Aa=1,Ba=J[g+4>>2],Ca=J[g+8>>2],wa=J[J[b>>2]+12>>2],Ab[wa](xa|0,ya|0,za|0,Aa|0,Ba|0,Ca|0)|0;d=K[o+43|0];if(d&1){Ab[J[J[b>>2]+12>>2]](b,o+42|0,1,1,0,0)|0;d=K[o+43|0]}e=(d&255)+e|0;break Y}f=bo(o+16|0,k);h=0;Ab[J[J[b>>2]+12>>2]](b, -o+42|0,1,1,0,0)|0;if(!K[o+43|0])break Y;while(1){d=e+f|0;if(d>>>0>=J[g+56>>2]+J[g+32>>2]>>>0)break Y;H[d|0]=K[o+42|0];e=e+1|0;h=h+1|0;if(h>>>0>2]+12>>2]](b,o+43|0,1,1,0,0)|0)continue;break}}if((j|0)>=0)break q}ds(g);d=1;break p}d=1}xb=o+112|0;if(!d)break o;break b}switch(c-2|0){case 5:break i;case 4:break j;case 2:break k;case 0:break l;case 3:break m;case 1:break n;case 7:break g;case 6:break h;default:break d}}se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)| -0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}d=Pb(968);J[195395]=0;g=js(d);e=J[195395];J[195395]=0;if((e|0)==1)break f;Qg(g,a);i=xb-848|0;xb=i;p=Qb(40);J[p>>2]=0;J[195395]=0;m=_(1078,516)|0;f=J[195395];J[195395]=0;_:{$:{aa:{ba:{ca:{if((f|0)==1)break ca;q=4;h=-1;da:{if(!f)break da;d=J[195396];if(!d)break da;h=Sb(J[f>>2],p,4);if(!h)break $;yb=d}d=yb;if((h|0)==1)break ba;J[195395]=0;r=ca(1148,m|0,g+464|0)|0;f=J[195395];J[195395]=0;h=-1;ea:{if(!f)break ea;d=J[195396];if(!d)break ea;h=Sb(J[f>>2],p,4);if(!h)break $; -yb=d}d=yb;if((h|0)==1)break ba;if((f|0)==1){e=Z()|0;J[195395]=0;Kb(m);f=J[195395];J[195395]=0;h=-1;fa:{if(!f)break fa;d=J[195396];if(!d)break fa;h=Sb(J[f>>2],p,4);if(!h)break $;yb=d}d=yb;if((h|0)!=1)break aa;break ba}J[g+944>>2]=r;d=J[J[b>>2]+24>>2];J[195395]=0;m=_(d|0,b|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ca;h=-1;ga:{if(!f)break ga;d=J[195396];if(!d)break ga;h=Sb(J[f>>2],p,4);if(!h)break $;yb=d}d=yb;if((h|0)==1)break ba;d=J[g+944>>2];J[195395]=0;aa(1150,d|0,b|0,1)|0;f=J[195395];J[195395]= -0;if((f|0)==1)break ca;h=-1;ha:{if(!f)break ha;d=J[195396];if(!d)break ha;h=Sb(J[f>>2],p,4);if(!h)break $;yb=d}d=yb;if((h|0)==1)break ba;d=J[J[b>>2]+20>>2];J[195395]=0;aa(d|0,b|0,m|0,0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ca;h=-1;ia:{if(!f)break ia;d=J[195396];if(!d)break ia;h=Sb(J[f>>2],p,4);if(!h)break $;yb=d}d=yb;if((h|0)==1)break ba;m=K[J[J[g+944>>2]>>2]+460|0];J[195395]=0;fd(g,0);f=J[195395];J[195395]=0;if((f|0)==1)break ca;h=-1;ja:{if(!f)break ja;d=J[195396];if(!d)break ja;h=Sb(J[f>> -2],p,4);if(!h)break $;yb=d}w=!m;d=yb;if((h|0)==1)break ba;J[195395]=0;J[i+356>>2]=g+72;m=nk(i+68|0);f=J[195395];J[195395]=0;if((f|0)==1)break ca;h=-1;ka:{if(!f)break ka;d=J[195396];if(!d)break ka;h=Sb(J[f>>2],p,4);if(!h)break $;yb=d}x=g+52|0;d=yb;if((h|0)==1)break ba;J[i+68>>2]=1153;J[i+360>>2]=m;J[195395]=0;J[i+52>>2]=1154;J[i+48>>2]=1155;J[i+44>>2]=1156;J[i+40>>2]=1157;J[i+36>>2]=1158;J[i+24>>2]=1159;J[i+20>>2]=1160;J[i+16>>2]=1161;J[i+56>>2]=b;J[i+28>>2]=0;J[i+32>>2]=0;e=_(1109,4096)|0;f=J[195395]; -J[195395]=0;if((f|0)==1)break ca;h=-1;la:{if(!f)break la;d=J[195396];if(!d)break la;h=Sb(J[f>>2],p,4);if(!h)break $;yb=d}r=i+28|0;d=yb;if((h|0)==1)break ba;J[i+60>>2]=e;m=i+60|0;d=0;O=i+200|0;p=wd(O,1,p,4);q=yb;break ba}a=Z()|0;Kb(p);break a}ma:while(1){l=d;na:{oa:{if(d){J[195395]=0;ea(1162,i+360|0);f=J[195395];J[195395]=0;h=-1;pa:{if(!f)break pa;d=J[195396];if(!d)break pa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)!=1)break oa;break na}J[195395]=0;fa(1163,i+360|0,80,488); -f=J[195395];J[195395]=0;h=-1;qa:{if(!f)break qa;d=J[195396];if(!d)break qa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[195395]=0;J[i+384>>2]=r;ca(1164,i+360|0,1)|0;f=J[195395];J[195395]=0;h=-1;ra:{if(!f)break ra;d=J[195396];if(!d)break ra;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[195395]=0;k=ii(g,3);f=J[195395];J[195395]=0;h=-1;sa:{if(!f)break sa;d=J[195396];if(!d)break sa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d= -yb;if((h|0)==1)continue;if((f|0)==1)break na;if(k&128)J[i+404>>2]=1;if(k&256){J[195395]=0;J[i+444>>2]=1;z=Q(N[g+344>>2]+Q(.5));ta:{if(z=Q(0)){e=~~z>>>0;break ta}e=0}f=J[195395];J[195395]=0;h=-1;ua:{if(!f)break ua;d=J[195396];if(!d)break ua;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[i+456>>2]=e}if(k&512)J[i+448>>2]=J[g+964>>2];if(k&1024)J[i+452>>2]=0;if(k&2048)J[i+436>>2]=0;J[195395]=0;J[i+408>>2]=1;e=K[g+348|0];f=J[195395];J[195395]=0;h= --1;va:{if(!f)break va;d=J[195396];if(!d)break va;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[i+412>>2]=e;h=-1;wa:{if(J[g+332>>2]==-1){J[195395]=0;ea(1168,i+360|0);f=J[195395];J[195395]=0;xa:{if(!f)break xa;d=J[195396];if(!d)break xa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[g+16>>2]=J[i+472>>2];d=J[i+476>>2];J[g+68>>2]=3;J[g+20>>2]=d;break wa}J[195395]=0;_(1169,i+360|0)|0;f=J[195395];J[195395]=0;ya:{if(!f)break ya; -d=J[195396];if(!d)break ya;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[195395]=0;ka(1170,g|0,J[i+472>>2],J[i+476>>2],J[i+484>>2]<<3,3)|0;f=J[195395];J[195395]=0;h=-1;za:{if(!f)break za;d=J[195396];if(!d)break za;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;Aa:{if(!J[g+4>>2])break Aa;Ba:{Ca:{Da:{if(!w){T=N[g+644>>2];Ea:{if(T==Q(0))break Ea;z=N[g+652>>2];if(z==Q(0))break Ea;J[195395]=0;z=Q(T/z);Fa:{if(Q(R(z))>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na}T=N[g+648>>2];if(T==Q(0))break Ba;z=N[g+652>>2];if(z==Q(0))break Ba;z=Q(T/z);if(!(Q(R(z))>1]|!L[i+652>>1])break Ba;J[195395]=0;e=J[g+364>>2];f=J[195395];J[195395]=0;h=-1;Ia:{if(!f)break Ia;d=J[195396];if(!d)break Ia;h=Sb(J[f>> -2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;z=Q(Q(Q(L[i+654>>1])/Q(L[i+652>>1]))*Q(e|0));if(!(Q(R(z))>1]*2.54+.5);Ja:{if(R(A)<2147483648){d=~~A;break Ja}d=-2147483648}ig(g,d);f=J[195395];J[195395]=0;h=-1;Ka:{if(!f)break Ka;d=J[195396];if(!d)break Ka;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;A=V(+L[i+654>>1]*2.54+.5);if(!(R(A)<2147483648))break Da;d=~~A;break Ca; -default:break Ha}J[195395]=0;ig(g,L[i+652>>1]);f=J[195395];J[195395]=0;h=-1;La:{if(!f)break La;d=J[195396];if(!d)break La;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;d=L[i+654>>1];break Ca}d=-2147483648}J[195395]=0;ji(g,d);f=J[195395];J[195395]=0;h=-1;Ma:{if(!f)break Ma;d=J[195396];if(!d)break Ma;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na}Na:{if(J[i+404>>2]==1){J[195395]=0;pk(g);f=J[195395];J[195395]=0;h=-1;Oa:{if(!f)break Oa; -d=J[195396];if(!d)break Oa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;d=256;if((f|0)==1)break na;break Na}if(!J[i+444>>2]){d=0;break Na}d=J[i+496>>2];h=J[d+8>>2];e=J[d+4>>2];d=J[d>>2];J[195395]=0;gs(g,J[i+492>>2],d,e,h);f=J[195395];J[195395]=0;h=-1;Pa:{if(!f)break Pa;d=J[195396];if(!d)break Pa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;d=J[i+492>>2]}J[g+44>>2]=d;d=J[J[i+364>>2]+8>>2];J[195395]=0;o=P(J[i+484>>2],J[i+472>>2]);u=ha(d|0,i+360| -0,1,o|0,1)|0;f=J[195395];J[195395]=0;h=-1;Qa:{if(!f)break Qa;d=J[195396];if(!d)break Qa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[195395]=0;s=J[g+20>>2];f=J[195395];J[195395]=0;h=-1;Ra:{if(!f)break Ra;d=J[195396];if(!d)break Ra;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[195395]=0;j=fd(g,0);f=J[195395];J[195395]=0;h=-1;Sa:{if(!f)break Sa;d=J[195396];if(!d)break Sa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h| -0)==1)continue;if((f|0)==1)break na;J[195395]=0;k=J[g+52>>2];f=J[195395];J[195395]=0;h=-1;Ta:{if(!f)break Ta;d=J[195396];if(!d)break Ta;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;J[195395]=0;e=J[g+20>>2];f=J[195395];J[195395]=0;h=-1;Ua:{if(!f)break Ua;d=J[195396];if(!d)break Ua;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na;E=-1;Va:{if(M[i+500>>2]>=M[i+476>>2])break Va;n=s-1|0;j=j+P(k,e-1|0)|0;if((o|0)<=0){if((o|0)<0){while(1){if(J[g+ -332>>2])break Aa;J[195395]=0;aa(1178,i+360|0,u|0,1)|0;f=J[195395];J[195395]=0;h=-1;Wa:{if(!f)break Wa;d=J[195396];if(!d)break Wa;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue ma;Xa:{if((f|0)==1)break Xa;Ya:{if(!J[i+444>>2]&J[i+396>>2]==4)break Ya;k=J[u>>2];J[195395]=0;e=J[g+52>>2];f=J[195395];J[195395]=0;h=-1;Za:{if(!f)break Za;d=J[195396];if(!d)break Za;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue ma;if((f|0)==1)break Xa;if(!j|!k|(e|0)<=0)break Ya;Mb(j,k,e)}if((n| -0)>0){J[195395]=0;e=J[g+52>>2];f=J[195395];J[195395]=0;h=-1;_a:{if(!f)break _a;d=J[195396];if(!d)break _a;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue ma;if((f|0)==1)break Xa;j=j-e|0}n=n-1|0;if(M[i+500>>2]>2])continue;break Va}break}break na}while(1){if(J[g+332>>2])break Aa;J[195395]=0;aa(1178,i+360|0,u|0,1)|0;f=J[195395];J[195395]=0;h=-1;$a:{if(!f)break $a;d=J[195396];if(!d)break $a;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue ma;ab:{if((f|0)==1)break ab; -bb:{if(!J[i+444>>2]&J[i+396>>2]==4)break bb;k=J[u>>2];J[195395]=0;e=J[g+52>>2];f=J[195395];J[195395]=0;h=-1;cb:{if(!f)break cb;d=J[195396];if(!d)break cb;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue ma;if((f|0)==1)break ab;if(!j|!k)break bb;d=(e|0)<(o|0)?e:o;if((d|0)<=0)break bb;Mb(j,k,d)}if((n|0)>0){J[195395]=0;e=J[g+52>>2];f=J[195395];J[195395]=0;h=-1;db:{if(!f)break db;d=J[195396];if(!d)break db;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue ma;if((f|0)==1)break ab; -j=j-e|0}n=n-1|0;if(M[i+500>>2]>2])continue;break Va}break}break na}while(1){if(J[g+332>>2])break Aa;J[195395]=0;aa(1178,i+360|0,u|0,1)|0;f=J[195395];J[195395]=0;h=-1;eb:{if(!f)break eb;d=J[195396];if(!d)break eb;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue ma;if((f|0)==1)break na;k=J[u>>2];fb:{if(!(J[i+444>>2]|J[i+396>>2]!=4)){f=0;d=0;if(J[x>>2]<=0)break fb;while(1){h=d+j|0;e=K[k+(f|3)|0];H[h|0]=(P(e,K[k+(f|2)|0])>>>0)/255;H[h+1|0]=(P(e,K[k+(f|1)|0])>>>0)/255;H[h+2|0]=(P(e, -K[f+k|0])>>>0)/255;d=d+3|0;if((d|0)>=J[x>>2])break fb;f=f+4|0;if((o|0)>(f|0))continue;break}break fb}J[195395]=0;e=J[g+52>>2];f=J[195395];J[195395]=0;h=-1;gb:{if(!f)break gb;d=J[195396];if(!d)break gb;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue ma;if((f|0)==1)break na;if(!j|!k)break fb;d=(o|0)<0?e:(e|0)<(o|0)?e:o;if((d|0)<=0)break fb;Mb(j,k,d)}if((n|0)>0){J[195395]=0;e=J[g+52>>2];f=J[195395];J[195395]=0;h=-1;hb:{if(!f)break hb;d=J[195396];if(!d)break hb;h=Sb(J[f>>2],p,q);if(!h)break $; -yb=d}d=yb;if((h|0)==1)continue ma;if((f|0)==1)break na;j=j-e|0}n=n-1|0;if(M[i+500>>2]>2])continue;break}}J[195395]=0;_(1179,i+360|0)|0;f=J[195395];J[195395]=0;ib:{if(!f)break ib;d=J[195396];if(!d)break ib;E=Sb(J[f>>2],p,q);if(!E)break $;yb=d}d=yb;if((E|0)==1)continue;if((f|0)==1)break na;if(J[i+444>>2]|J[i+396>>2]!=3)break wa;J[195395]=0;h=fd(g,0);f=J[195395];J[195395]=0;j=-1;jb:{if(!f)break jb;d=J[195396];if(!d)break jb;j=Sb(J[f>>2],p,q);if(!j)break $;yb=d}d=yb;if((j|0)==1)continue;if((f| -0)==1)break na;if(J[g+20>>2]<=0)break wa;n=0;kb:{while(1){if(J[g+332>>2]){J[195395]=0;$(1180,O|0,1);f=J[195395];J[195395]=0;lb:{if(!f)break lb;d=J[195396];if(!d)break lb;if(!Sb(J[f>>2],p,q))break $;yb=d}d=yb;continue ma}d=J[g+16>>2];J[195395]=0;qk(g,h,P(d,3));f=J[195395];J[195395]=0;j=-1;mb:{if(!f)break mb;d=J[195396];if(!d)break mb;j=Sb(J[f>>2],p,q);if(!j)break $;yb=d}d=yb;if((j|0)==1)continue ma;if((f|0)==1)break kb;h=J[x>>2]+h|0;n=n+1|0;if((n|0)>2])continue;break}break wa}break na}J[195395]= -0;$(1180,O|0,1);f=J[195395];J[195395]=0;nb:{if(!f)break nb;d=J[195396];if(!d)break nb;if(!Sb(J[f>>2],p,q))break $;yb=d}d=yb;continue}J[195395]=0;ea(1162,i+360|0);f=J[195395];J[195395]=0;h=-1;ob:{if(!f)break ob;d=J[195396];if(!d)break ob;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;if((f|0)==1)break na}d=J[m>>2];if(d){J[195395]=0;Kb(d);f=J[195395];J[195395]=0;h=-1;pb:{if(!f)break pb;d=J[195396];if(!d)break pb;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue}Kb(p);xb= -i+848|0;d=!l;break _}e=Z()|0;d=J[m>>2];if(!d)break aa;J[195395]=0;Kb(d);f=J[195395];J[195395]=0;h=-1;qb:{if(!f)break qb;d=J[195396];if(!d)break qb;h=Sb(J[f>>2],p,q);if(!h)break $;yb=d}d=yb;if((h|0)==1)continue;break}}Kb(p);ba(e|0);B()}Kb(p);gd(f,d);B()}if(d)break b;se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)|0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}d=Pb(948);J[195395]=0;g=Fd(d,5);e=J[195395];J[195395]=0;if((e|0)==1)break f;J[g+944>>2]=0;J[g>>2]=240416;Qg(g,a);e=0;h=0;q=0;r=0;o=xb-1360|0;xb=o;rb:{sb:{tb:{ub:{vb:{wb:{if(b){d= -Ab[J[J[b>>2]+24>>2]](b)|0;l=J[g+352>>2];Ab[J[J[b>>2]+12>>2]](b,o+1354|0,6,1,0,0)|0;f=I[o+1356>>1];I[o+1356>>1]=K[g+462|0]?f:f<<8|(f&65280)>>>8;f=I[o+1358>>1];f=(K[g+462|0]?f:f<<8|(f&65280)>>>8)<<16>>16;I[o+1358>>1]=f;if(L[o+1354>>1]|(L[o+1356>>1]-1&65535)>>>0>1)break tb;e=f&65535;J[g+356>>2]=e;w=Qb(e<<4);xb:{if(!f){e=0;break xb}while(1){f=w+(h<<4)|0;Ab[J[J[b>>2]+12>>2]](b,f,16,1,0,0)|0;e=I[f+4>>1];I[f+4>>1]=K[g+462|0]?e:e<<8|(e&65280)>>>8;e=I[f+6>>1];I[f+6>>1]=K[g+462|0]?e:e<<8|(e&65280)>>>8;wa=f, -Ca=Mf(g,J[f+8>>2]),J[wa+8>>2]=Ca;wa=f,Ca=Mf(g,J[f+12>>2]),J[wa+12>>2]=Ca;h=h+1|0;e=L[o+1358>>1];if(h>>>0>>0)continue;break}}if(e>>>0>l>>>0){if(J[g+332>>2]==-1){f=w+(l<<4)|0;h=K[f|0];J[g+16>>2]=h;e=K[f+1|0];J[g+20>>2]=e;if(!(e|h)){Ab[J[J[b>>2]+20>>2]](b,J[f+12>>2]+d|0,0)|0;d=Fd(o+288|0,0);J[195395]=0;J[d+332>>2]=-1;e=J[195395];J[195395]=0;if((e|0)==1)break sb;J[195395]=0;h=aa(1147,d|0,b|0,4)|0;e=J[195395];J[195395]=0;if((e|0)==1)break sb;if(h){J[195395]=0;aa(1249,g|0,d|0,1)|0;e=J[195395];J[195395]= -0;if((e|0)==1)break sb;J[g+356>>2]=L[o+1358>>1]}Nf(d)}Kb(w);J[g+68>>2]=5;e=1;break tb}h=w+(l<<4)|0;Ab[J[J[b>>2]+20>>2]](b,J[h+12>>2]+d|0,0)|0;yb:{if(!(K[h|0]|K[h+1|0])){d=Fd(o+288|0,0);J[195395]=0;h=aa(1147,d|0,b|0,4)|0;e=J[195395];J[195395]=0;if((e|0)==1)break yb;if(h){J[195395]=0;aa(1249,g|0,d|0,1)|0;e=J[195395];J[195395]=0;if((e|0)==1)break yb;J[g+356>>2]=L[o+1358>>1]}J[195395]=0;J[g+68>>2]=5;e=J[195395];J[195395]=0;if((e|0)==1)break yb;Nf(d);break ub}e=o+1314|0;Ab[J[J[b>>2]+12>>2]](b,e,40,1,0, -0)|0;hi(g,e);s=K[o+1328|0]|K[o+1329|0]<<8;Af(g,K[h|0],K[h+1|0],s,5);h=o+288|0;e=K[o+1346|0]|K[o+1347|0]<<8|(K[o+1348|0]<<16|K[o+1349|0]<<24);e=e?e:J[g+44>>2];Ab[J[J[b>>2]+12>>2]](b,h,(e>>>0>=256?256:e)<<2,1,0,0)|0;co(g,h,J[g+44>>2]);zb:{if(s>>>0<=24){Ab[J[J[b>>2]+12>>2]](b,J[g+56>>2],J[g+32>>2],1,0,0)|0;h=J[g+20>>2];break zb}p=0;e=P(J[g+20>>2],J[g+16>>2])<<2;d=Qb(e);Ab[J[J[b>>2]+12>>2]](b,d,e,1,0,0)|0;if(!J[g+932>>2])hg(g);h=J[g+20>>2];if((h|0)>0){e=d;while(1){h=fd(g,p);j=0;if(J[g+16>>2]>0)while(1){H[h| -0]=K[e|0];H[h+1|0]=K[e+1|0];H[h+2|0]=K[e+2|0];ne(g,j,p,K[e+3|0]);e=e+4|0;h=h+3|0;j=j+1|0;if((j|0)>2])continue;break}h=J[g+20>>2];p=p+1|0;if((h|0)>(p|0))continue;break}}Kb(d)}e=0;k=(J[g+16>>2]+31|0)/32<<2;h=P(k,h);u=Qb(h);if(!(Ab[J[J[b>>2]+12>>2]](b,u,h,1,0,0)|0))break vb;Ab:{Bb:{if((h|0)<=0)break Bb;while(1){if(!(K[e+u|0]!=255|K[u+(e|1)|0]!=255|(K[u+(e|2)|0]!=255|K[u+(e|3)|0]!=255))){e=e+4|0;if((h|0)!=(e|0))continue;break Bb}break}p=J[g+932>>2]!=0;if(!p)hg(g);f=J[g+20>>2];Cb:{if((f|0)<=0)break Cb; -h=J[g+16>>2];if((h|0)<=0)break Cb;j=0;while(1){if((h|0)>0){f=u+P(j,k)|0;e=0;while(1){if(K[f+(e>>>3|0)|0]>>>((e^-1)&7)&1){ne(g,e,j,0);p=1;h=J[g+16>>2]}e=e+1|0;if((e|0)<(h|0))continue;break}f=J[g+20>>2]}j=j+1|0;if((j|0)<(f|0))continue;break}}if(!(p&1)){fo(g);f=J[g+20>>2]}if((f|0)<=0)break Ab;j=J[g+16>>2];if((j|0)<=0)break Ab;h=0;p=0;while(1){if((j|0)>0){l=u+P(k,p)|0;e=0;while(1){Db:{if(!(K[l+(e>>>3|0)|0]>>>((e^-1)&7)&1))break Db;fj(o+16|0,g,e,p,0);f=J[o+16>>2];if(!h){h=1;r=fg(g,e,p);d=f;q=d;break Db}h= -((d|0)!=(f|0))+h|0}e=e+1|0;j=J[g+16>>2];if((e|0)<(j|0))continue;break}f=J[g+20>>2]}p=p+1|0;if((p|0)<(f|0))continue;break}d=s>>>0>8;if(!(d|(h|0)!=1)){J[o+12>>2]=q;J[o+284>>2]=q;H[o+15|0]=0;J[g+340>>2]=K[o+12|0]|K[o+13|0]<<8|(K[o+14|0]<<16|K[o+15|0]<<24);J[g+336>>2]=J[g+44>>2]>(r|0)?r:0;fo(g);f=J[g+20>>2];break wb}if(d)break vb;break wb}J[g+336>>2]=0;j=0;e=0;p=0;q=xb-16|0;xb=q;Eb:{if(!J[g+4>>2])break Eb;if(L[g+26>>1]<=8){if(ej(g)){if(J[g+928>>2]){d=J[g+376>>2];e=J[g+384>>2];if((d|0)<=(e|0))break Eb; -p=J[g+380>>2];if((p|0)<=J[g+372>>2])break Eb;while(1){j=J[g+372>>2];if((j|0)<(p|0)){while(1){d=J[g+928>>2];if(d)d=K[(d+P(J[g+16>>2],e)|0)+j|0];else d=1;if(d)eo(g,j,e,jh(g,j,e)^255);p=J[g+380>>2];j=j+1|0;if((p|0)>(j|0))continue;break}d=J[g+376>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}break Eb}if(!J[g+32>>2])break Eb;j=J[g+56>>2];while(1){H[j|0]=K[j|0]^-1;j=j+1|0;e=e+1|0;if(e>>>0>2])continue;break}break Eb}f=J[g+44>>2];if(!f)break Eb;d=J[g+4>>2];h=d?f?d+40|0:0:0;if((f|0)!=1){e=f&-2;while(1){d= -j<<2;l=d+h|0;H[l|0]=K[l|0]^-1;H[l+1|0]=K[l+1|0]^-1;H[l+2|0]=K[l+2|0]^-1;d=h+(d|4)|0;H[d|0]=K[d|0]^-1;H[d+1|0]=K[d+1|0]^-1;H[d+2|0]=K[d+2|0]^-1;j=j+2|0;p=p+2|0;if((e|0)!=(p|0))continue;break}}if(!(f&1))break Eb;d=h+(j<<2)|0;H[d|0]=K[d|0]^-1;H[d+1|0]=K[d+1|0]^-1;H[d+2|0]=K[d+2|0]^-1;break Eb}Fb:{if(!J[g+928>>2]){if(!J[g+32>>2])break Fb;j=J[g+56>>2];while(1){H[j|0]=K[j|0]^-1;j=j+1|0;e=e+1|0;if(e>>>0>2])continue;break}break Fb}d=J[g+376>>2];e=J[g+384>>2];if((d|0)<=(e|0))break Fb;p=J[g+380>>2]; -if((p|0)<=J[g+372>>2])break Fb;while(1){j=J[g+372>>2];if((j|0)<(p|0)){while(1){d=J[g+928>>2];if(d)d=K[(d+P(J[g+16>>2],e)|0)+j|0];else d=1;if(d){eg(q+12|0,g,j,e,1);H[q+11|0]=K[q+15|0];H[q+10|0]=K[q+14|0]^-1;H[q+9|0]=K[q+13|0]^-1;H[q+8|0]=K[q+12|0]^-1;J[q+4>>2]=K[q+8|0]|K[q+9|0]<<8|(K[q+10|0]<<16|K[q+11|0]<<24);hs(g,j,e,q+4|0,0)}p=J[g+380>>2];j=j+1|0;if((p|0)>(j|0))continue;break}d=J[g+376>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}}H[g+340|0]=K[g+340|0]^-1;H[g+341|0]=K[g+341|0]^-1;H[g+342|0]=K[g+342| -0]^-1}xb=q+16|0;break vb}if(s>>>0<9)break wb;break vb}break sb}Kb(w)}e=0;break tb}h=0;Nb(o+16|0,0,256);Gb:{if((f|0)<=0)break Gb;j=J[g+16>>2];if((j|0)<=0)break Gb;while(1){e=0;if((j|0)>0){while(1){wa=jh(g,e,h)+(o+16|0)|0,Ca=1,H[wa|0]=Ca;e=e+1|0;j=J[g+16>>2];if((e|0)<(j|0))continue;break}f=J[g+20>>2]}h=h+1|0;if((f|0)>(h|0))continue;break}}q=J[g+44>>2];while(1){q=q-1|0;if((q|0)<0)break vb;if(K[(o+16|0)+q|0])continue;break}Hb:{if((f|0)<=0)break Hb;h=J[g+16>>2];if((h|0)<=0)break Hb;p=0;l=q&255;j=0;while(1){if((h| -0)>0){d=u+P(j,k)|0;e=0;while(1){if(K[d+(e>>>3|0)|0]>>>((e^-1)&7)&1){Pg(g,e,j,l);p=1;h=J[g+16>>2]}e=e+1|0;if((e|0)<(h|0))continue;break}f=J[g+20>>2]}j=j+1|0;if((j|0)<(f|0))continue;break}if(!(p&1))break Hb;J[g+336>>2]=J[g+44>>2]>(q|0)?q:0}fo(g)}Kb(u)}Kb(w);e=1}xb=o+1360|0;break rb}a=Z()|0;Nf(d);break a}if(e)break b;J[a+356>>2]=J[g+356>>2];se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)|0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}d=Pb(1092);J[195395]=0;g=_(1142,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break f; -Qg(g,a);k=0;q=0;j=0;m=0;l=0;t=xb-3456|0;xb=t;Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{if(!b)break Ob;Ab[J[J[b>>2]+12>>2]](b,t+3443|0,13,1,0,0)|0;if((K[t+3443|0]|K[t+3444|0]<<8|(K[t+3445|0]<<16|K[t+3446|0]<<24))!=944130375)break Ob;d=(K[t+3451|0]|K[t+3452|0]<<8)<<16>>16;d=K[g+462|0]?d:d<<8|(d&65280)>>>8;H[t+3451|0]=d;H[t+3452|0]=d>>>8;d=(K[t+3449|0]|K[t+3450|0]<<8)<<16>>16;d=(K[g+462|0]?d:d<<8|(d&65280)>>>8)<<16>>16;H[t+3449|0]=d;H[t+3450|0]=d>>>8;if(J[g+332>>2]==-1){J[g+16>>2]=d&65535;d=K[t+3451|0]|K[t+3452|0]<< -8;J[g+68>>2]=2;J[g+20>>2]=d;k=1;break Ob}d=1;h=H[t+3453|0];e=(h&7)+1|0;I[t+2664>>1]=1<>1]=(h>>>4&7)+1;if((h|0)<0){Ab[J[J[b>>2]+12>>2]](b,t+2666|0,3<>2]+24>>2]](b)|0;Mb(o+18|0,t+2662|0,772);e=1;Pb:{if((Ab[J[J[b>>2]+12>>2]](b,o+17|0,1,1,0,0)|0)!=1)break Pb;p=o+22|0;while(1){f=e;h=K[o+17|0];Qb:{if(!(!h|e&1)){e=0;break Qb}e=!h;Rb:{Sb:switch((h<<24>>24)-33|0){case 0:JE(g,b);break Rb;case 26:break Pb;case 11:break Sb;default:break Qb}Ab[J[J[b>> -2]+12>>2]](b,o+790|0,9,1,0,0)|0;e=I[o+790>>1];I[o+790>>1]=K[g+462|0]?e:e<<8|(e&65280)>>>8;e=I[o+792>>1];I[o+792>>1]=K[g+462|0]?e:e<<8|(e&65280)>>>8;e=I[o+794>>1];I[o+794>>1]=K[g+462|0]?e:e<<8|(e&65280)>>>8;e=I[o+796>>1];w=(K[g+462|0]?e:e<<8|(e&65280)>>>8)<<16>>16;I[o+796>>1]=w;h=K[u+6|0]|K[u+7|0]<<8;Tb:{if(h){e=L[o+794>>1];break Tb}h=0;e=L[o+794>>1];if(K[u+8|0]|K[u+9|0]<<8)break Tb;H[u+8|0]=w;H[u+9|0]=w>>>8;H[u+6|0]=e;H[u+7|0]=e>>>8;h=e}if(L[o+790>>1]+(e&65535)>>>0>(h&65535)>>>0)break Rb;h=w&65535; -if(h+L[o+792>>1]>>>0>(K[u+8|0]|K[u+9|0]<<8)>>>0)break Rb;e=H[o+798|0];if((e|0)<0){h=(e&7)+1|0;e=1<>>8;Ab[J[J[b>>2]+12>>2]](b,p,3<>1];e=K[o+798|0]}J[o+12>>2]=0;J[g+980>>2]=h;J[g+968>>2]=e&64;J[g+984>>2]=0;J[g+988>>2]=16384;J[g+972>>2]=0;J[g+976>>2]=8;e=Ab[J[J[b>>2]+24>>2]](b)|0;IE(g,b,0,I[o+794>>1],o+12|0);Ub:{if(J[o+12>>2]){h=0;Ab[J[J[b>>2]+20>>2]](b,e,0)|0;H[o+799|0]=0;while(1){if(!(Ab[J[J[b>>2]+12>>2]](b,o+799|0,1,1,0,0)|0))break Ub;e=h&255;h=K[o+ -799|0];if(e|(h|0)!=44)continue;break}Ab[J[J[b>>2]+20>>2]](b,-1,1)|0;Ab[J[J[b>>2]+24>>2]](b)|0;break Ub}Ab[J[J[b>>2]+20>>2]](b,(J[g+988>>2]-J[g+992>>2]|0)+1|0,1)|0}r=r+1|0}e=f}if((Ab[J[J[b>>2]+12>>2]](b,o+17|0,1,1,0,0)|0)==1)continue;break}}Ab[J[J[b>>2]+20>>2]](b,s,0)|0;xb=o+800|0;J[g+356>>2]=r;e=J[g+352>>2];if((e|0)<0|(e|0)>=(r|0))break Ob;w=(r|0)!=1?d:0;h=t+2666|0;f=0;e=1;Vb:{Wb:{Xb:{Yb:{while(1){d=e;Zb:{_b:while(1){e=d;while(1){if((Ab[J[J[b>>2]+12>>2]](b,t+2661|0,1,1,0,0)|0)!=1)break Zb;k=0;if(J[g+ -332>>2]>0)break Ob;k=H[t+2661|0];d=!k;if(!((e|d)&1)){d=0;continue _b}$b:{if((k|0)!=33){k=k-44|0;if(!k)break $b;if((k|0)==15)break Zb;continue _b}if(JE(g,b))continue;break Zb}Ab[J[J[b>>2]+12>>2]](b,t+3434|0,9,1,0,0)|0;d=I[t+3434>>1];I[t+3434>>1]=K[g+462|0]?d:d<<8|(d&65280)>>>8;d=I[t+3436>>1];I[t+3436>>1]=K[g+462|0]?d:d<<8|(d&65280)>>>8;d=I[t+3438>>1];I[t+3438>>1]=K[g+462|0]?d:d<<8|(d&65280)>>>8;d=I[t+3440>>1];d=(K[g+462|0]?d:d<<8|(d&65280)>>>8)<<16>>16;I[t+3440>>1]=d;i=K[t+3449|0]|K[t+3450|0]<<8;O= -L[t+3438>>1];if(i>>>0>1]>>>0)continue;o=K[t+3451|0]|K[t+3452|0]<<8;x=d&65535;if(o>>>0>1]>>>0)continue;break}break}k=H[t+3442|0];ac:{if((k|0)>=0){d=h;n=I[t+2664>>1];break ac}d=t+1888|0;k=(k&7)+1|0;Ab[J[J[b>>2]+12>>2]](b,d,3<>16;y=(p|0)<3?1:(p|0)<17?4:8;bc:{if(!m){J[195395]=0;ka(1170,G|0,K[t+3449|0]|K[t+3450|0]<<8,K[t+3451|0]|K[t+3452|0]<<8,y|0,2)|0;f=J[195395];J[195395]= -0;if((f|0)==1)break Kb;l=J[g+336>>2];f=K[g+947|0];J[195395]=0;Tl(G,f);f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;k=_(1078,944)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;q=ka(1252,k|0,G|0,1,1,1)|0;f=J[195395];J[195395]=0;if((f|0)!=1){J[195395]=0;H[q+461|0]=0;f=J[195395];J[195395]=0;if((f|0)!=1)break bc;break Kb}a=Z()|0;Kb(k);break Jb}cc:switch((f&255)-2|0){case 0:J[195395]=0;ma(1273,G|0,g|0,0,0,0);f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;Tl(G,l&255);f= -J[195395];J[195395]=0;if((f|0)==1)break Kb;break bc;case 1:J[195395]=0;ma(1273,G|0,g|0,0,0,0);f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;u=J[q+16>>2];f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;s=J[q+20>>2];f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;k=L[q+26>>1];f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;ka(1170,G|0,u|0,s|0,k|0,2)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;u=J[G+4>>2];f=J[195395];J[195395]=0;if((f|0)==1)break Kb; -J[195395]=0;s=J[q+4>>2];f=J[195395];J[195395]=0;if((f|0)==1)break Kb;J[195395]=0;k=(J[G+32>>2]+J[G+12>>2]|0)+(J[G+44>>2]<<2)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Kb;Mb(u,s,k);break bc;default:break cc}J[195395]=0;ma(1273,G|0,g|0,1,1,1);f=J[195395];J[195395]=0;if((f|0)==1)break Kb}J[195395]=0;ka(1170,g|0,L[t+3438>>1],L[t+3440>>1],y|0,2)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Kb;dc:{if((H[t+3442|0]|H[t+3453|0])>=0)break dc;ec:{if(n<<16>>16<=0){f=0;break ec}k=0;if((n&65535)!=1){r=p&-2;n= -0;while(1){u=t+528|0;F=d+P(k,3)|0;H[u+k|0]=K[F|0];s=t+272|0;H[s+k|0]=K[F+1|0];f=t+16|0;H[f+k|0]=K[F+2|0];D=k|1;F=d+P(D,3)|0;H[u+D|0]=K[F|0];H[s+D|0]=K[F+1|0];H[f+D|0]=K[F+2|0];k=k+2|0;n=n+2|0;if((r|0)!=(n|0))continue;break}}f=p;if(!(f&1))break ec;d=d+P(k,3)|0;H[(t+528|0)+k|0]=K[d|0];H[(t+272|0)+k|0]=K[d+1|0];H[(t+16|0)+k|0]=K[d+2|0]}k=J[g+336>>2];if(!((k|0)<0|f>>>0>255)){d=256-f|0;Nb((t+16|0)+f|0,255,d);Nb((t+272|0)+f|0,255,d);Nb((t+528|0)+f|0,255,d)}J[195395]=0;gs(g,(k|0)>=0?256:p,t+528|0,t+272| -0,t+16|0);d=J[195395];J[195395]=0;if((d|0)!=1)break dc;a=Z()|0;break Jb}J[195395]=0;s=_(1078,24)|0;d=J[195395];J[195395]=0;fc:{gc:{hc:{if((d|0)==1)break hc;J[s+20>>2]=g;J[195395]=0;f=fd(g,0);d=J[195395];J[195395]=0;if((d|0)==1)break gc;J[s>>2]=0;J[s+4>>2]=0;J[s+16>>2]=f;J[s+8>>2]=0;J[s+12>>2]=0;d=J[s+20>>2];J[195395]=0;f=J[d+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break hc;J[s+4>>2]=f-1;d=J[s+20>>2];J[195395]=0;p=fd(d,0);d=J[195395];J[195395]=0;if((d|0)==1)break hc;d=J[s+20>>2];J[195395]=0;k=J[d+ -52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break hc;d=J[s+20>>2];J[195395]=0;f=J[d+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break hc;J[s+16>>2]=p+P(k,f-1|0);J[t+528>>2]=0;J[g+988>>2]=16384;J[g+968>>2]=K[t+3442|0]&64;J[g+980>>2]=L[t+3440>>1];J[g+984>>2]=0;J[g+972>>2]=0;J[g+976>>2]=8;d=J[J[b>>2]+24>>2];J[195395]=0;r=_(d|0,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[195395]=0;ka(1276,g|0,b|0,s|0,I[t+3438>>1],t+528|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;Kb(s);if(!J[g+332>>2])break fc; -ih(G);k=0;break Ob}a=Z()|0;break Jb}a=Z()|0;Kb(s);break Jb}w=(!m&((i|0)!=(O|0)&(o|0)!=(x|0)))+w|0;ic:{if(w>>>0<=1){J[195395]=0;ca(1277,G|0,y|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[195395]=0;HE(G,g,t+3434|0);d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[195395]=0;J[G+336>>2]=J[G+44>>2]>(l|0)?l:0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[195395]=0;k=J[g+4>>2];f=J[g+44>>2];d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[195395]=0;fa(1101,G|0,(k?f?k+40|0:0:0)|0,256);d=J[195395];J[195395]= -0;if((d|0)==1)break Lb;J[195395]=0;aa(1249,g|0,G|0,0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break ic;break Lb}J[g+352>>2]=J[g+356>>2]-1;jc:{if(j)break jc;J[195395]=0;f=_(1078,944)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[195395]=0;j=ka(1280,f|0,K[t+3449|0]|K[t+3450|0]<<8,K[t+3451|0]|K[t+3452|0]<<8,24,2)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break jc;a=Z()|0;Kb(f);break Jb}f=L[t+3440>>1];if(!f)break ic;n=0;d=L[t+3438>>1];while(1){k=d&65535;d=0;if(k){u=n^-1;k=0;while(1){J[195395]=0;s=L[t+3436>> -1];p=K[t+3451|0]|K[t+3452|0]<<8;f=L[t+3434>>1];fj(t+12|0,g,k,u+L[t+3440>>1]|0,1);d=J[195395];J[195395]=0;if((d|0)==1)break Yb;J[195395]=0;J[t+4>>2]=K[t+12|0]|K[t+13|0]<<8|(K[t+14|0]<<16|K[t+15|0]<<24);Rl(j,f+k|0,(p-n|0)+(s^-1)|0,t+4|0,0);d=J[195395];J[195395]=0;if((d|0)==1)break Yb;d=L[t+3438>>1];k=k+1|0;if(d>>>0>k>>>0)continue;break}f=L[t+3440>>1]}n=n+1|0;if(n>>>0<(f&65535)>>>0)continue;break}}p=K[g+944|0];kc:{if(J[t+528>>2]){J[195395]=0;aa(1281,t|0,b|0,r|0)|0;break kc}k=J[J[b>>2]+20>>2];f=J[g+988>> -2];d=J[g+992>>2];J[195395]=0;aa(k|0,b|0,(f-d|0)+1|0,1)|0}d=J[195395];J[195395]=0;if((d|0)==1)break Lb;if(!(j|!K[g+461|0])){lc:{if(m)break lc;J[195395]=0;_(1097,g|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;u=J[g+356>>2];J[195395]=0;f=_(1109,(u>>>0>1073741823?-1:u<<2)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[g+940>>2]=f;if((u|0)<=0)break lc;f=0;k=0;if(u>>>0>=4){d=u&-4;n=0;while(1){s=k<<2;J[s+J[g+940>>2]>>2]=0;J[J[g+940>>2]+(s|4)>>2]=0;J[J[g+940>>2]+(s|8)>>2]=0;J[J[g+940>>2]+(s|12)>> -2]=0;k=k+4|0;n=n+4|0;if((d|0)!=(n|0))continue;break}}d=u&3;if(!d)break lc;while(1){J[J[g+940>>2]+(k<<2)>>2]=0;k=k+1|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}J[195395]=0;k=_(1078,944)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[195395]=0;f=ka(1252,k|0,g|0,1,1,1)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Nb;d=m<<2;J[d+J[g+940>>2]>>2]=f;d=J[d+J[g+940>>2]>>2];J[195395]=0;H[d+461|0]=0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb}f=p>>>2&7;if(f>>>0<=1){if(q)Ab[J[J[q>>2]+4>>2]](q);J[195395]=0;k= -_(1078,944)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb;J[195395]=0;q=ka(1252,k|0,g|0,1,1,1)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Mb;J[195395]=0;H[q+461|0]=0;d=J[195395];J[195395]=0;if((d|0)==1)break Lb}k=J[g+352>>2];d=K[g+461|0];ih(G);d=(k|0)!=(m|0)|(d|0)!=0;m=d+m|0;if(d)continue}break}if(!j|(w|0)<2)break Xb;if(H[g+944|0]&1){Td(t+8|0,g,K[g+336|0]);J[t>>2]=K[t+8|0]|K[t+9|0]<<8|(K[t+10|0]<<16|K[t+11|0]<<24);H[t+3|0]=0;J[j+340>>2]=K[t|0]|K[t+1|0]<<8|(K[t+2|0]<<16|K[t+3|0]<<24);J[j+336>>2]= -0}io(g,j,1);break Wb}a=Z()|0;break Jb}if(!j)break Vb}Ab[J[J[j>>2]+4>>2]](j)}k=1;if(!q)break Ob;Ab[J[J[q>>2]+4>>2]](q)}xb=t+3456|0;break Ib}a=Z()|0;Kb(k);break Jb}a=Z()|0;Kb(k);break Jb}a=Z()|0;break Jb}a=Z()|0}ih(G);break a}if(k)break b;J[a+356>>2]=J[g+356>>2];se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)|0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}d=Pb(944);J[195395]=0;g=Fd(d,4);e=J[195395];J[195395]=0;if((e|0)==1)break f;J[g>>2]=240460;Qg(g,a);y=xb-32|0;xb=y;n=Qb(40);J[n>>2]=0;J[195395]=0;fd(g,0);d= -J[195395];J[195395]=0;mc:{nc:{if((d|0)==1)break nc;m=4;h=-1;oc:{pc:{qc:{rc:{if(!d)break rc;j=J[195396];if(!j)break rc;h=Sb(J[d>>2],n,4);if(!h)break qc;yb=j}d=yb;sc:{if((h|0)==1)break sc;J[195395]=0;e=ha(1198,238466,0,0,0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;tc:{if(!d)break tc;j=J[195396];if(!j)break tc;h=Sb(J[d>>2],n,4);if(!h)break qc;yb=j}d=yb;if((h|0)==1)break sc;J[y+28>>2]=e;if(!e){J[195395]=0;oc(g+72|0,238600,255);d=J[195395];J[195395]=0;h=-1;uc:{if(!d)break uc;j=J[195396];if(!j)break uc; -h=Sb(J[d>>2],n,4);if(!h)break qc;yb=j}d=yb;if((h|0)==1)break sc;break pc}J[195395]=0;e=_(1200,e|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;vc:{if(!d)break vc;j=J[195396];if(!j)break vc;h=Sb(J[d>>2],n,4);if(!h)break qc;yb=j}d=yb;if((h|0)==1)break sc;J[y+24>>2]=e;if(!e){J[195395]=0;fa(1201,y+28|0,0,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;wc:{if(!d)break wc;j=J[195396];if(!j)break wc;h=Sb(J[d>>2],n,4);if(!h)break qc;yb=j}d=yb;if((h|0)==1)break sc;J[195395]=0;oc(g+72|0,238908, -255);d=J[195395];J[195395]=0;h=-1;xc:{if(!d)break xc;j=J[195396];if(!j)break xc;h=Sb(J[d>>2],n,4);if(!h)break qc;yb=j}d=yb;if((h|0)!=1)break pc;break sc}d=0;n=wd(J[y+28>>2],1,n,4);m=yb}yc:while(1){if(d){J[195395]=0;fa(1201,y+28|0,y+24|0,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;zc:{if(!d)break zc;j=J[195396];if(!j)break zc;h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}d=yb;if((h|0)!=1)break pc;continue}J[195395]=0;fa(1202,J[y+28>>2],b|0,1203);d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;Ac:{if(!d)break Ac; -j=J[195396];if(!j)break Ac;h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}d=yb;if((h|0)==1)continue;J[195395]=0;d=J[y+28>>2];if(d){J[d+164>>2]=0;J[d+160>>2]=1205;J[d+168>>2]=g+72}d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;Bc:{if(!d)break Bc;j=J[195396];if(!j)break Bc;h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}d=yb;if((h|0)==1)continue;J[195395]=0;$(1206,J[y+28>>2],J[y+24>>2]);d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;Cc:{if(!d)break Cc;j=J[195396];if(!j)break Cc;h=Sb(J[d>>2],n,m);if(!h)break qc; -yb=j}d=yb;if((h|0)==1)continue;l=J[y+24>>2];if(J[g+332>>2]==-1){J[g+16>>2]=J[l>>2];d=J[l+4>>2];J[g+68>>2]=4;J[g+20>>2]=d;J[195395]=0;$(1180,J[y+28>>2],1);d=J[195395];J[195395]=0;Dc:{if(!d)break Dc;j=J[195396];if(!j)break Dc;if(!Sb(J[d>>2],n,m))break qc;yb=j}d=yb;continue}j=24;k=3;h=1;e=0;f=1;q=0;Ec:{Fc:switch(K[l+25|0]){case 6:h=0;k=4;break Ec;default:e=K[239221]|K[239222]<<8|(K[239223]<<16|K[239224]<<24);d=K[239217]|K[239218]<<8|(K[239219]<<16|K[239220]<<24);H[g+87|0]=d;H[g+88|0]=d>>>8;H[g+89|0]= -d>>>16;H[g+90|0]=d>>>24;H[g+91|0]=e;H[g+92|0]=e>>>8;H[g+93|0]=e>>>16;H[g+94|0]=e>>>24;e=K[239214]|K[239215]<<8|(K[239216]<<16|K[239217]<<24);d=K[239210]|K[239211]<<8|(K[239212]<<16|K[239213]<<24);H[g+80|0]=d;H[g+81|0]=d>>>8;H[g+82|0]=d>>>16;H[g+83|0]=d>>>24;H[g+84|0]=e;H[g+85|0]=e>>>8;H[g+86|0]=e>>>16;H[g+87|0]=e>>>24;e=K[239206]|K[239207]<<8|(K[239208]<<16|K[239209]<<24);d=K[239202]|K[239203]<<8|(K[239204]<<16|K[239205]<<24);H[g+72|0]=d;H[g+73|0]=d>>>8;H[g+74|0]=d>>>16;H[g+75|0]=d>>>24;H[g+76|0]= -e;H[g+77|0]=e>>>8;H[g+78|0]=e>>>16;H[g+79|0]=e>>>24;J[195395]=0;$(1180,J[y+28>>2],1);d=J[195395];J[195395]=0;Gc:{if(!d)break Gc;j=J[195396];if(!j)break Gc;if(!Sb(J[d>>2],n,m))break qc;yb=j}d=yb;continue;case 4:f=2;e=1;h=0;break;case 2:break Ec;case 0:case 3:break Fc}d=K[l+30|0];j=e?8:h?d>>>0>8?8:d:d;k=f;h=0;q=e}e=J[l+4>>2];d=J[l>>2];J[195395]=0;f=ka(1170,g|0,d|0,e|0,j|0,4)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;Hc:{if(!d)break Hc;j=J[195396];if(!j)break Hc;e=Sb(J[d>>2],n,m);if(!e)break qc; -yb=j}d=yb;if((e|0)==1)continue;if(!f){J[195395]=0;$(1180,J[y+28>>2],1);d=J[195395];J[195395]=0;Ic:{if(!d)break Ic;j=J[195396];if(!j)break Ic;if(!Sb(J[d>>2],n,m))break qc;yb=j}d=yb;continue}Jc:{Kc:{Lc:{Mc:{d=J[y+24>>2];switch(K[d+120|0]){case 1:break Lc;case 0:break Mc;default:break Jc}}d=J[d+112>>2];J[195395]=0;ig(g,d);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;Nc:{if(!d)break Nc;j=J[195396];if(!j)break Nc;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;d=J[J[y+24>>2]+116>> -2];break Kc}d=J[d+112>>2];J[195395]=0;A=V(+(d>>>0)*254/1E4+.5);Oc:{if(R(A)<2147483648){d=~~A;break Oc}d=-2147483648}ig(g,d);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;Pc:{if(!d)break Pc;j=J[195396];if(!j)break Pc;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;A=V(+M[J[y+24>>2]+116>>2]*254/1E4+.5);if(R(A)<2147483648){d=~~A;break Kc}d=-2147483648}J[195395]=0;ji(g,d);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;Qc:{if(!d)break Qc;j=J[195396];if(!j)break Qc;e=Sb(J[d>>2],n, -m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue}d=J[y+24>>2];e=L[d+20>>1];Rc:{if(e){d=J[d+16>>2];J[195395]=0;PE(g,d,e);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;Sc:{if(!d)break Sc;j=J[195396];if(!j)break Sc;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;d=L[J[y+24>>2]+20>>1];J[195395]=0;NE(g,d);break Rc}if(K[d+24|0]==2){J[195395]=0;gi(g,0,0,0,0,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;Tc:{if(!d)break Tc;j=J[195396];if(!j)break Tc;e=Sb(J[d>>2],n,m);if(!e)break qc; -yb=j}d=yb;if((e|0)==1)continue;J[195395]=0;gi(g,1,85,85,85,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;Uc:{if(!d)break Uc;j=J[195396];if(!j)break Uc;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;J[195395]=0;gi(g,2,170,170,170,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;Vc:{if(!d)break Vc;j=J[195396];if(!j)break Vc;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;J[195395]=0;gi(g,3,255,255,255,0);break Rc}J[195395]=0;pk(g)}d=J[195395];J[195395]=0; -if((d|0)==1)break nc;e=-1;Wc:{if(!d)break Wc;j=J[195396];if(!j)break Wc;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;e=J[y+24>>2];d=K[e+24|0]>>>3|0;s=((d>>>0<=1?1:d)<<3)-8|0;Xc:{Yc:switch(L[e+22>>1]){case 1:if(K[e+25|0]==3){J[g+336>>2]=K[e+80|0];break Xc}J[g+336>>2]=L[e+88>>1]>>>s;break Xc;case 0:break Xc;default:break Yc}J[195395]=0;f=J[g+4>>2];e=J[g+44>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;r=f?e?f+40|0:0:0;e=-1;Zc:{if(!d)break Zc;j=J[195396];if(!j)break Zc;e=Sb(J[d>> -2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;if(!r)break Xc;u=J[g+44>>2];d=J[y+24>>2];j=L[d+22>>1];p=(j|0)>(u|0)?u:j;_c:{if(!p)break _c;w=J[d+76>>2];f=0;d=0;if(p>>>0>=4){l=p&-4;O=0;while(1){H[(r+(d<<2)|0)+3|0]=K[d+w|0];e=d|1;H[(r+(e<<2)|0)+3|0]=K[e+w|0];e=d|2;H[(r+(e<<2)|0)+3|0]=K[e+w|0];e=d|3;H[(r+(e<<2)|0)+3|0]=K[e+w|0];d=d+4|0;O=O+4|0;if((l|0)!=(O|0))continue;break}}e=p&3;if(!e)break _c;while(1){H[(r+(d<<2)|0)+3|0]=K[d+w|0];d=d+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}$c:{if(j>>>0>= -u>>>0)break $c;f=u+(j^-1)|0;d=0;e=u-j&7;if(e)while(1){H[(r+(j<<2)|0)+3|0]=255;j=j+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}if(f>>>0<7)break $c;while(1){d=r+(j<<2)|0;H[d+3|0]=255;H[d+7|0]=255;H[d+11|0]=255;H[d+15|0]=255;H[d+19|0]=255;H[d+23|0]=255;H[d+27|0]=255;H[d+31|0]=255;j=j+8|0;if((u|0)!=(j|0))continue;break}}H[g+389|0]=1}ad:{if(!h)break ad;J[195395]=0;e=QD(J[y+28>>2],J[y+24>>2],y+20|0,y+16|0,y+12|0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;bd:{if(!d)break bd;j=J[195396];if(!j)break bd; -h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}d=yb;if((h|0)==1)continue;if(!e)break ad;d=J[y+24>>2];H[g+342|0]=L[d+82>>1]>>>s;H[g+341|0]=L[d+84>>1]>>>s;d=L[d+86>>1];H[g+343|0]=0;J[g+336>>2]=0;H[g+340|0]=d>>>s}if(!(k&1)){J[195395]=0;_(1212,g|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;cd:{if(!d)break cd;j=J[195396];if(!j)break cd;h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}d=yb;if((h|0)==1)continue}if(K[J[y+24>>2]+25|0]&2){J[195395]=0;d=J[y+28>>2];if(d)J[d+208>>2]=J[d+208>>2]|1;d=J[195395];J[195395]= -0;if((d|0)==1)break nc;h=-1;dd:{if(!d)break dd;j=J[195396];if(!j)break dd;h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}d=yb;if((h|0)==1)continue}if(J[g+332>>2]){J[195395]=0;$(1180,J[y+28>>2],1);d=J[195395];J[195395]=0;ed:{if(!d)break ed;j=J[195396];if(!j)break ed;if(!Sb(J[d>>2],n,m))break qc;yb=j}d=yb;continue}d=J[J[y+24>>2]+12>>2];J[195395]=0;D=_(1109,d+8|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;fd:{if(!d)break fd;j=J[195396];if(!j)break fd;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e| -0)==1)continue;J[195395]=0;d=1;e=J[y+28>>2];if(!(!e|!K[e+398|0])){J[e+208>>2]=J[e+208>>2]|2;d=7}l=d;d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;gd:{if(!d)break gd;j=J[195396];if(!j)break gd;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;J[195395]=0;h=ii(g,4);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;hd:{if(!d)break hd;j=J[195396];if(!j)break hd;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;J[195395]=0;ks(g,h&-2|(l|0)>1,0);d=J[195395];J[195395]=0;if((d| -0)==1)break nc;e=-1;id:{if(!d)break id;j=J[195396];if(!j)break id;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue;if((l|0)>0){d=J[y+24>>2];i=K[d+30|0]>>>3|0;F=K[d+24|0]>>>3|0;x=P(F,3);o=F<<1;u=l-1|0;O=0;while(1){J[195395]=0;p=J[g+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;jd:{if(!d)break jd;j=J[195396];if(!j)break jd;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue yc;J[195395]=0;s=fd(g,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;kd:{if(!d)break kd; -j=J[195396];if(!j)break kd;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue yc;J[195395]=0;f=J[g+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;ld:{if(!d)break ld;j=J[195396];if(!j)break ld;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue yc;J[195395]=0;h=J[g+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;md:{if(!d)break md;j=J[195396];if(!j)break md;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue yc;p=p-1|0;e=s+P(f,h-1|0)|0;E=0;while(1){if(J[g+ -332>>2]){J[195395]=0;$(1180,J[y+28>>2],1);d=J[195395];J[195395]=0;nd:{if(!d)break nd;j=J[195396];if(!j)break nd;if(!Sb(J[d>>2],n,m))break qc;yb=j}d=yb;continue yc}J[195395]=0;h=J[g+932>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=(h|0)!=0;f=-1;od:{if(!d)break od;j=J[195396];if(!j)break od;f=Sb(J[d>>2],n,m);if(!f)break qc;yb=j}d=yb;if((f|0)==1)continue yc;pd:{if(h){h=J[g+20>>2]+(E^-1)|0;qd:{if((h|0)<0)break qd;J[195395]=0;s=J[g+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;f=-1;rd:{if(!d)break rd; -j=J[195396];if(!j)break rd;f=Sb(J[d>>2],n,m);if(!f)break qc;yb=j}d=yb;if((f|0)==1)continue yc;if((h|0)>(s|0))break qd;J[195395]=0;p=fd(g,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;sd:{if(!d)break sd;j=J[195396];if(!j)break sd;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue yc;J[195395]=0;f=J[g+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;e=-1;td:{if(!d)break td;j=J[195396];if(!j)break td;e=Sb(J[d>>2],n,m);if(!e)break qc;yb=j}d=yb;if((e|0)==1)continue yc;e=P(f,h)+p| -0;p=h}ud:{if(!K[J[y+24>>2]+28|0])break ud;vd:switch(O|0){case 0:case 7:break ud;default:break vd}if(J[g+16>>2]<=0)break ud;f=0;r=0;if(q)while(1){w=D+P(f,i)|0;H[w|0]=K[e+f|0];J[195395]=0;s=gg(g,f,h);d=J[195395];J[195395]=0;if((d|0)==1)break nc;r=-1;wd:{if(!d)break wd;j=J[195396];if(!j)break wd;r=Sb(J[d>>2],n,m);if(!r)break qc;yb=j}d=yb;if((r|0)==1)continue yc;H[w+F|0]=s;f=f+1|0;if((f|0)>2])continue;break ud}while(1){s=D+P(i,r)|0;d=P(r,3)+e|0;H[s|0]=K[d|0];H[s+F|0]=K[d+1|0];H[o+s|0]=K[d+2|0]; -J[195395]=0;f=gg(g,r,h);d=J[195395];J[195395]=0;if((d|0)==1)break nc;X=-1;xd:{if(!d)break xd;j=J[195396];if(!j)break xd;X=Sb(J[d>>2],n,m);if(!X)break qc;yb=j}d=yb;if((X|0)==1)continue yc;H[s+x|0]=f;r=r+1|0;if((r|0)>2])continue;break}}J[195395]=0;fa(1218,J[y+28>>2],D|0,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;f=-1;yd:{if(!d)break yd;j=J[195396];if(!j)break yd;f=Sb(J[d>>2],n,m);if(!f)break qc;yb=j}d=yb;if((f|0)==1)continue yc;if(J[g+16>>2]<=0)break pd;f=0;r=0;if(q)while(1){d=D+P(f,i)| -0;H[e+f|0]=K[d|0];d=K[d+F|0];J[195395]=0;ne(g,f,h,d);d=J[195395];J[195395]=0;if((d|0)==1)break nc;r=-1;zd:{if(!d)break zd;j=J[195396];if(!j)break zd;r=Sb(J[d>>2],n,m);if(!r)break qc;yb=j}d=yb;if((r|0)==1)continue yc;f=f+1|0;if((f|0)>2])continue;break pd}while(1){d=P(r,3)+e|0;f=D+P(i,r)|0;H[d|0]=K[f|0];H[d+1|0]=K[f+F|0];H[d+2|0]=K[f+o|0];d=K[f+x|0];J[195395]=0;ne(g,r,h,d);d=J[195395];J[195395]=0;if((d|0)==1)break nc;f=-1;Ad:{if(!d)break Ad;j=J[195396];if(!j)break Ad;f=Sb(J[d>>2],n,m);if(!f)break qc; -yb=j}d=yb;if((f|0)==1)continue yc;r=r+1|0;if((r|0)>2])continue;break}break pd}Bd:{if(!O)break Bd;d=J[y+24>>2];if(!K[d+28|0])break Bd;Cd:{if(!e)break Cd;s=J[d+12>>2];if((s|0)<=0)break Cd;J[195395]=0;h=J[g+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;f=-1;Dd:{if(!d)break Dd;j=J[195396];if(!j)break Dd;f=Sb(J[d>>2],n,m);if(!f)break qc;yb=j}d=yb;if((f|0)==1)continue yc;Mb(D,e,(h|0)<(s|0)?h:s);d=J[y+24>>2]}if(K[d+24|0]<9)break Bd;h=P(J[g+16>>2],k);if((h|0)<=0)break Bd;j=0;d=h;f=d&3;if(f)while(1){d= -d-1|0;H[D+P(F,d)|0]=K[d+D|0];j=j+1|0;if((f|0)!=(j|0))continue;break}if(h>>>0<4)break Bd;while(1){h=d-1|0;H[D+P(h,F)|0]=K[h+D|0];h=d-2|0;H[D+P(h,F)|0]=K[h+D|0];h=d-3|0;H[D+P(h,F)|0]=K[h+D|0];d=d-4|0;H[D+P(F,d)|0]=K[d+D|0];if(h>>>0>1)continue;break}}J[195395]=0;fa(1218,J[y+28>>2],D|0,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;f=-1;Ed:{if(!d)break Ed;j=J[195396];if(!j)break Ed;f=Sb(J[d>>2],n,m);if(!f)break qc;yb=j}d=yb;if((f|0)==1)continue yc;w=J[y+24>>2];Fd:{if(K[w+24|0]<9)break Fd;r=P(J[g+16>> -2],k);if((r|0)<=0)break Fd;j=0;d=0;if(r>>>0>=4){s=r&-4;f=0;while(1){H[d+D|0]=K[D+P(d,F)|0];h=d|1;H[h+D|0]=K[D+P(h,F)|0];h=d|2;H[h+D|0]=K[D+P(h,F)|0];h=d|3;H[h+D|0]=K[D+P(h,F)|0];d=d+4|0;f=f+4|0;if((s|0)!=(f|0))continue;break}}h=r&3;if(!h)break Fd;while(1){H[d+D|0]=K[D+P(d,F)|0];d=d+1|0;j=j+1|0;if((h|0)!=(j|0))continue;break}}s=J[w+12>>2];J[195395]=0;h=J[g+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;f=-1;Gd:{if(!d)break Gd;j=J[195396];if(!j)break Gd;f=Sb(J[d>>2],n,m);if(!f)break qc;yb=j}d= -yb;if((f|0)==1)continue yc;Hd:{if(!e)break Hd;d=(s|0)<0?h:(h|0)<(s|0)?h:s;if((d|0)<=0)break Hd;Mb(e,D,d)}Id:{if(K[J[y+24>>2]+24|0]!=2|(u|0)!=(O|0))break Id;d=J[g+16>>2];if((d|0)<=0)break Id;while(1){h=d-1|0;f=(h>>>1|0)+e|0;r=f;j=d<<2&4;s=K[f|0]&(15<>>2|0)+e|0]&3<>>f&15)<>>0>1;d=h;if(f)continue;break}}if((p|0)>0){J[195395]=0;h=J[g+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nc;r=-1;Jd:{if(!d)break Jd;j=J[195396];if(!j)break Jd;r=Sb(J[d>>2],n,m);if(!r)break qc; -yb=j}d=yb;if((r|0)==1)continue yc;e=e-h|0}p=p-1|0}E=E+1|0;if((E|0)>2])continue;break}O=O+1|0;if((l|0)!=(O|0))continue;break}}J[195395]=0;Kb(D);d=J[195395];J[195395]=0;h=-1;Kd:{if(!d)break Kd;j=J[195396];if(!j)break Kd;h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}d=yb;if((h|0)==1)continue;J[195395]=0;$(1220,J[y+28>>2],J[y+24>>2]);d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;Ld:{if(!d)break Ld;j=J[195396];if(!j)break Ld;h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}d=yb;if((h|0)==1)continue;J[195395]= -0;fa(1201,y+28|0,y+24|0,0);d=J[195395];J[195395]=0;if((d|0)==1)break nc;h=-1;Md:{if(!d)break Md;j=J[195396];if(!j)break Md;h=Sb(J[d>>2],n,m);if(!h)break qc;yb=j}j=1;d=yb;if((h|0)==1)continue;break}break oc}Kb(n);gd(d,j);B()}j=J[g+332>>2]==-1&J[g+68>>2]==4}Kb(n);xb=y+32|0;break mc}a=Z()|0;Kb(n);break a}if(j)break b;se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)|0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}d=Pb(956);J[195395]=0;g=Fd(d,6);e=J[195395];J[195395]=0;if((e|0)==1)break f;J[g+952>>2]=0;H[g+948|0]= -0;J[g+944>>2]=0;J[g>>2]=241660;Qg(g,a);f=0;h=0;l=0;x=0;X=0;k=xb-336|0;xb=k;v=LE(b,238368);J[k+332>>2]=0;J[k+328>>2]=0;I[k+326>>1]=1;I[k+324>>1]=1;J[k+320>>2]=-1;I[k+318>>1]=0;I[k+316>>1]=1;I[k+314>>1]=1;Nd:{Od:{if(!v){oc(g+72|0,238698,255);break Od}q=0;e=xb-16|0;xb=e;d=J[v+460>>2];J[e+12>>2]=d;Pd:{if(!d)break Pd;while(1){if(!fD(v,e+12|0))break Pd;q=q+1|0;if(J[e+12>>2])continue;break}}xb=e+16|0;J[g+356>>2]=q&65535;e=L[g+352>>1];p=xb-16|0;xb=p;q=J[v+460>>2];J[p+12>>2]=q;Qd:{Rd:{if(!e){d=e;break Rd}d= -e;if(!q)break Rd;while(1){q=0;if(!fD(v,p+12|0))break Qd;q=J[p+12>>2];d=d-1|0;if(!(d&65535))break Rd;if(q)continue;break}}J[v+20>>2]=q;I[v+32>>1]=0;I[v+476>>1]=e+(d^-1);q=VC(v)}xb=p+16|0;Sd:{if(!q){oc(g+72|0,238989,255);break Sd}J[k+272>>2]=k+328;zc(v,256,k+272|0);J[k+256>>2]=k+332;zc(v,257,k+256|0);J[k+240>>2]=k+324;zc(v,277,k+240|0);J[k+224>>2]=k+326;zc(v,258,k+224|0);J[k+208>>2]=k+320;zc(v,278,k+208|0);J[k+192>>2]=k+318;zc(v,262,k+192|0);J[k+176>>2]=k+314;zc(v,274,k+176|0);if(J[g+332>>2]==-1){J[g+ -16>>2]=J[k+328>>2];d=J[k+332>>2];J[g+68>>2]=6;J[g+20>>2]=d;oc(g+72|0,239237,255);break Sd}J[k+160>>2]=k+312;Ue(v,296,k+160|0);J[k+144>>2]=k+308;if(zc(v,282,k+144|0)){z=N[k+308>>2];if(L[k+312>>1]==3){z=Q(Q(z*Q(2.5399999618530273))+Q(.5));N[k+308>>2]=z}if(Q(R(z))>2]=k+308;if(zc(v,283,k+128|0)){z=N[k+308>>2];if(L[k+312>>1]==3){z=Q(Q(z*Q(2.5399999618530273))+Q(.5));N[k+308>>2]=z}if(Q(R(z))> -2]=k+304;if(zc(v,286,k+112|0)){z=N[k+304>>2];Td:{if(Q(R(z))>2]=d}J[k+96>>2]=k+304;if(zc(v,287,k+96|0)){z=N[k+304>>2];Ud:{if(Q(R(z))>2]=d}J[g+336>>2]=-1;J[g+44>>2]=0;d=J[k+332>>2];if(d>>>0>2]){J[k+80>>2]=d;J[k+320>>2]=d;xc(v,278,k+80|0)}Vd:{Wd:{Xd:{Yd:{Zd:{e=L[k+318>>1];if(e>>>0>6)break Zd;d=1<>1];switch(m-1|0){case 3:break _d; -case 0:break $d;default:break Wd}}J[g+44>>2]=2;d=1;break Xd}J[g+44>>2]=16;d=4;break Xd}if(e-32844>>>0<2)break Yd;d=4;m=L[k+326>>1];if((m|0)!=4)break Wd;J[g+44>>2]=16;break Xd}d=24;I[g+26>>1]=24;h=1;break Vd}I[g+26>>1]=d;break Vd}J[g+44>>2]=256;d=8;I[g+26>>1]=8;if((e|0)!=3|m>>>0<9)break Vd;J[g+44>>2]=0;d=24;I[g+26>>1]=24}if(J[g+332>>2]){oc(g+72|0,239428,255);break Sd}Af(g,J[k+328>>2],J[k+332>>2],d,6);if(!J[g+4>>2]){oc(g+72|0,239665,255);break Sd}d=L[k+324>>1];if((d|0)==4){hg(g);d=L[k+324>>1]}if(!((d& -65535)!=2|L[k+326>>1]!=8))hg(g);J[k+64>>2]=k+316;zc(v,259,k- -64|0);ks(g,L[k+316>>1],0);ae:{be:{ce:{de:{ee:{fe:{ge:{he:{if(h){q=Qb(P(J[k+328>>2],J[k+332>>2])<<2);if(!q){oc(g+72|0,239809,255);break Sd}s=J[k+328>>2];p=J[k+332>>2];h=0;w=0;x=xb-1120|0;xb=x;i=x+96|0;Nb(i,0,1024);j=xb-192|0;xb=j;ie:{if(!J[v+512>>2]){e=K[263345]|K[263346]<<8|(K[263347]<<16|K[263348]<<24);d=K[263341]|K[263342]<<8|(K[263343]<<16|K[263344]<<24);H[i+46|0]=d;H[i+47|0]=d>>>8;H[i+48|0]=d>>>16;H[i+49|0]=d>>>24;H[i+50|0]=e;H[i+51| -0]=e>>>8;H[i+52|0]=e>>>16;H[i+53|0]=e>>>24;e=K[263339]|K[263340]<<8|(K[263341]<<16|K[263342]<<24);d=K[263335]|K[263336]<<8|(K[263337]<<16|K[263338]<<24);H[i+40|0]=d;H[i+41|0]=d>>>8;H[i+42|0]=d>>>16;H[i+43|0]=d>>>24;H[i+44|0]=e;H[i+45|0]=e>>>8;H[i+46|0]=e>>>16;H[i+47|0]=e>>>24;e=K[263331]|K[263332]<<8|(K[263333]<<16|K[263334]<<24);d=K[263327]|K[263328]<<8|(K[263329]<<16|K[263330]<<24);H[i+32|0]=d;H[i+33|0]=d>>>8;H[i+34|0]=d>>>16;H[i+35|0]=d>>>24;H[i+36|0]=e;H[i+37|0]=e>>>8;H[i+38|0]=e>>>16;H[i+39| -0]=e>>>24;e=K[263323]|K[263324]<<8|(K[263325]<<16|K[263326]<<24);d=K[263319]|K[263320]<<8|(K[263321]<<16|K[263322]<<24);H[i+24|0]=d;H[i+25|0]=d>>>8;H[i+26|0]=d>>>16;H[i+27|0]=d>>>24;H[i+28|0]=e;H[i+29|0]=e>>>8;H[i+30|0]=e>>>16;H[i+31|0]=e>>>24;e=K[263315]|K[263316]<<8|(K[263317]<<16|K[263318]<<24);d=K[263311]|K[263312]<<8|(K[263313]<<16|K[263314]<<24);H[i+16|0]=d;H[i+17|0]=d>>>8;H[i+18|0]=d>>>16;H[i+19|0]=d>>>24;H[i+20|0]=e;H[i+21|0]=e>>>8;H[i+22|0]=e>>>16;H[i+23|0]=e>>>24;e=K[263307]|K[263308]<< -8|(K[263309]<<16|K[263310]<<24);d=K[263303]|K[263304]<<8|(K[263305]<<16|K[263306]<<24);H[i+8|0]=d;H[i+9|0]=d>>>8;H[i+10|0]=d>>>16;H[i+11|0]=d>>>24;H[i+12|0]=e;H[i+13|0]=e>>>8;H[i+14|0]=e>>>16;H[i+15|0]=e>>>24;e=K[263299]|K[263300]<<8|(K[263301]<<16|K[263302]<<24);d=K[263295]|K[263296]<<8|(K[263297]<<16|K[263298]<<24);H[i|0]=d;H[i+1|0]=d>>>8;H[i+2|0]=d>>>16;H[i+3|0]=d>>>24;H[i+4|0]=e;H[i+5|0]=e>>>8;H[i+6|0]=e>>>16;H[i+7|0]=e>>>24;break ie}d=L[v+84>>1];je:{if(!(1<>>0<=16:0)){J[j>>2]=d;Md(i, -263834,j);break je}d=L[v+98>>1]-L[v+168>>1]|0;J[j+176>>2]=j+190;ke:{le:{me:{ne:{oe:{pe:{qe:{re:{if(!zc(v,262,j+176|0)){h=1;se:switch(d-1|0){case 2:break ie;case 0:break re;default:break se}J[j+16>>2]=273664;Md(i,264668,j+16|0);break je}h=1;te:{f=L[j+190>>1];switch(f|0){case 6:case 8:break ie;case 4:case 7:break le;case 5:break oe;case 2:break pe;case 0:case 1:case 3:break qe;default:break te}}switch(f-32844|0){case 1:break me;case 0:break ne;default:break le}}f=1;I[j+190>>1]=1}if(L[v+138>>1]!=1)break ie; -e=L[v+98>>1];if((e|0)==1)break ie;d=L[v+84>>1];if(d>>>0>7)break ie;J[j+48>>2]=d;J[j+44>>2]=e;J[j+40>>2]=265710;J[j+36>>2]=f;J[j+32>>2]=273664;Md(i,265384,j+32|0);break je}if((d|0)>2)break ie;J[j+84>>2]=d;J[j+80>>2]=266688;Md(i,266371,j+80|0);break je}J[j+112>>2]=j+188;Ue(v,332,j+112|0);h=267804;f=L[j+188>>1];if((f|0)!=1)break ke;h=265710;f=L[v+98>>1];if(f>>>0<4)break ke;h=1;break ie}if(L[v+88>>1]==34676)break ie;J[j+132>>2]=34676;J[j+128>>2]=269075;Md(i,268666,j+128|0);break je}if((L[v+88>>1]&65534)!= -34676){J[j+164>>2]=34676;J[j+168>>2]=34677;J[j+160>>2]=269075;Md(i,269695,j+160|0);break je}d=L[v+138>>1];if((d|0)==1)break ie;J[j+148>>2]=d;J[j+144>>2]=270769;Md(i,270398,j+144|0);break je}J[j+68>>2]=f;J[j+64>>2]=273664;Md(i,271387,j- -64|0);break je}J[j+100>>2]=f;J[j+96>>2]=h;Md(i,267432,j+96|0)}h=0}xb=j+192|0;ue:{ve:{if(!h)break ve;f=0;m=xb-496|0;xb=m;d=x+12|0;J[d+44>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;I[d+30>>1]=4;J[d+4>>2]=1;J[d>>2]=v;J[m+448>>2]=d+24;Ue(v,258,m+448|0); -e=L[d+24>>1];we:{if(!(1<>>0<=16:0)){J[m>>2]=e;Md(i,263834,m);break we}J[d+12>>2]=0;J[m+432>>2]=d+26;Ue(v,277,m+432|0);J[m+420>>2]=m+476;J[m+416>>2]=m+474;Ue(v,338,m+416|0);xe:{if(!L[m+474>>1])break xe;ye:{ze:{f=L[J[m+476>>2]>>1];switch(f|0){case 1:case 2:break ye;case 0:break ze;default:break xe}}f=1;if(L[d+26>>1]<=3)break xe}J[d+12>>2]=f}e=d+32|0;J[m+400>>2]=e;if(!zc(v,262,m+400|0))I[d+32>>1]=0;h=L[d+26>>1];j=L[m+474>>1];Ae:{if(j)break Ae;j=0;if((h|0)!=4|L[d+32>>1]!=2)break Ae;j=1;J[d+ -12>>2]=1;I[m+474>>1]=1}J[m+384>>2]=m+470;Ue(v,259,m+384|0);J[m+368>>2]=m+472;Ue(v,284,m+368|0);J[m+352>>2]=e;u=h-j|0;Be:{Ce:{De:{Ee:{Fe:{Ge:{He:{Ie:{Je:{if(!zc(v,262,m+352|0)){Ke:switch(u-1|0){case 0:J[m+160>>2]=m+480;zc(v,259,m+160|0);e=L[m+480>>1];if(!(e-2>>>0>=3&(e|0)!=32771)){I[d+32>>1]=0;break Je}I[d+32>>1]=1;break Je;case 2:break Ce;default:break Ke}J[m+16>>2]=273664;Md(i,264668,m+16|0);f=0;break we}Le:{Me:{e=L[d+32>>1];switch(e|0){case 8:break Be;case 4:case 7:break De;case 5:break Ge;case 2:break He; -case 6:break Ie;case 0:case 1:break Je;case 3:break Le;default:break Me}}switch(e-32844|0){case 1:break Ee;case 0:break Fe;default:break De}}J[m+200>>2]=m+456;J[m+196>>2]=m+460;J[m+192>>2]=m+464;if(!zc(v,320,m+192|0)){f=0;e=K[271725]|K[271726]<<8|(K[271727]<<16|K[271728]<<24);d=K[271721]|K[271722]<<8|(K[271723]<<16|K[271724]<<24);H[i+24|0]=d;H[i+25|0]=d>>>8;H[i+26|0]=d>>>16;H[i+27|0]=d>>>24;H[i+28|0]=e;H[i+29|0]=e>>>8;H[i+30|0]=e>>>16;H[i+31|0]=e>>>24;e=K[271717]|K[271718]<<8|(K[271719]<<16|K[271720]<< -24);d=K[271713]|K[271714]<<8|(K[271715]<<16|K[271716]<<24);H[i+16|0]=d;H[i+17|0]=d>>>8;H[i+18|0]=d>>>16;H[i+19|0]=d>>>24;H[i+20|0]=e;H[i+21|0]=e>>>8;H[i+22|0]=e>>>16;H[i+23|0]=e>>>24;e=K[271709]|K[271710]<<8|(K[271711]<<16|K[271712]<<24);d=K[271705]|K[271706]<<8|(K[271707]<<16|K[271708]<<24);H[i+8|0]=d;H[i+9|0]=d>>>8;H[i+10|0]=d>>>16;H[i+11|0]=d>>>24;H[i+12|0]=e;H[i+13|0]=e>>>8;H[i+14|0]=e>>>16;H[i+15|0]=e>>>24;e=K[271701]|K[271702]<<8|(K[271703]<<16|K[271704]<<24);d=K[271697]|K[271698]<<8|(K[271699]<< -16|K[271700]<<24);H[i|0]=d;H[i+1|0]=d>>>8;H[i+2|0]=d>>>16;H[i+3|0]=d>>>24;H[i+4|0]=e;H[i+5|0]=e>>>8;H[i+6|0]=e>>>16;H[i+7|0]=e>>>24;break we}f=2<>1];wa=d,Ca=Qb(f),J[wa+36>>2]=Ca;wa=d,Ca=Qb(f),J[wa+40>>2]=Ca;h=Qb(f);J[d+44>>2]=h;e=J[d+36>>2];if(h?!e|!J[d+40>>2]:1){f=0;e=K[271891]|K[271892]<<8|(K[271893]<<16|K[271894]<<24);d=K[271887]|K[271888]<<8|(K[271889]<<16|K[271890]<<24);H[i+24|0]=d;H[i+25|0]=d>>>8;H[i+26|0]=d>>>16;H[i+27|0]=d>>>24;H[i+28|0]=e;H[i+29|0]=e>>>8;H[i+30|0]=e>>>16;H[i+31|0]= -e>>>24;e=K[271883]|K[271884]<<8|(K[271885]<<16|K[271886]<<24);d=K[271879]|K[271880]<<8|(K[271881]<<16|K[271882]<<24);H[i+16|0]=d;H[i+17|0]=d>>>8;H[i+18|0]=d>>>16;H[i+19|0]=d>>>24;H[i+20|0]=e;H[i+21|0]=e>>>8;H[i+22|0]=e>>>16;H[i+23|0]=e>>>24;e=K[271875]|K[271876]<<8|(K[271877]<<16|K[271878]<<24);d=K[271871]|K[271872]<<8|(K[271873]<<16|K[271874]<<24);H[i+8|0]=d;H[i+9|0]=d>>>8;H[i+10|0]=d>>>16;H[i+11|0]=d>>>24;H[i+12|0]=e;H[i+13|0]=e>>>8;H[i+14|0]=e>>>16;H[i+15|0]=e>>>24;e=K[271867]|K[271868]<<8|(K[271869]<< -16|K[271870]<<24);d=K[271863]|K[271864]<<8|(K[271865]<<16|K[271866]<<24);H[i|0]=d;H[i+1|0]=d>>>8;H[i+2|0]=d>>>16;H[i+3|0]=d>>>24;H[i+4|0]=e;H[i+5|0]=e>>>8;H[i+6|0]=e>>>16;H[i+7|0]=e>>>24;break we}Pc(e,J[m+464>>2],f);Pc(J[d+40>>2],J[m+460>>2],f);Pc(J[d+44>>2],J[m+456>>2],f)}if(L[m+472>>1]!=1)break Be;h=L[d+26>>1];if((h|0)==1)break Be;e=L[d+24>>1];if(e>>>0>7)break Be;d=L[d+32>>1];J[m+144>>2]=e;J[m+140>>2]=h;J[m+136>>2]=265710;J[m+132>>2]=d;J[m+128>>2]=273664;Md(i,265384,m+128|0);f=0;break we}if(L[m+ -472>>1]!=1|L[m+470>>1]!=7)break Be;J[m+208>>2]=1;xc(v,65538,m+208|0);I[d+32>>1]=2;break Be}if((u|0)>2)break Be;J[m+228>>2]=u;J[m+224>>2]=266688;Md(i,266371,m+224|0);f=0;break we}J[m+256>>2]=m+480;Ue(v,332,m+256|0);f=267804;j=L[m+480>>1];if((j|0)==1){f=265710;j=L[d+26>>1];if(j>>>0>=4)break Be}J[m+244>>2]=j;J[m+240>>2]=f;Md(i,267432,m+240|0);f=0;break we}if(L[m+470>>1]!=34676){J[m+292>>2]=34676;J[m+288>>2]=269075;Md(i,268666,m+288|0);f=0;break we}J[m+272>>2]=3;xc(v,65560,m+272|0);I[d+32>>1]=1;I[d+24>> -1]=8;break Be}if((L[m+470>>1]+30858&65535)>>>0<=65533){J[m+308>>2]=34676;J[m+312>>2]=34677;J[m+304>>2]=269075;Md(i,269695,m+304|0);f=0;break we}e=L[m+472>>1];if((e|0)!=1){J[m+340>>2]=e;J[m+336>>2]=270769;Md(i,270398,m+336|0);f=0;break we}J[m+320>>2]=3;xc(v,65560,m+320|0);I[d+32>>1]=2;I[d+24>>1]=8;break Be}J[m+180>>2]=e;J[m+176>>2]=273664;Md(i,271387,m+176|0);f=0;break we}I[d+32>>1]=2}J[d+56>>2]=0;J[d+60>>2]=0;J[d+72>>2]=0;e=d- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[m+112>>2]=d+16;zc(v,256,m+112|0);J[m+96>> -2]=d+20;zc(v,257,m+96|0);J[m+80>>2]=d+28;Ue(v,274,m+80|0);e=L[m+472>>1]!=2|(u|0)<2;J[d+8>>2]=e;h=J[J[d>>2]+12>>2]>>>10&1;if(e){J[d+52>>2]=0;J[d+48>>2]=h?1581:1582;Ne:{Oe:{Pe:switch(L[d+32>>1]){case 2:Qe:switch(L[d+24>>1]-8|0){case 0:Re:switch(J[d+12>>2]-1|0){case 0:J[d+52>>2]=1583;break Oe;case 1:J[d+52>>2]=1584;break Oe;default:break Re}J[d+52>>2]=1585;break Oe;case 8:break Qe;default:break Oe}Se:switch(J[d+12>>2]-1|0){case 0:J[d+52>>2]=1586;break Oe;case 1:J[d+52>>2]=1587;break Oe;default:break Se}J[d+ -52>>2]=1588;break Oe;case 5:if(!Pn(d)|L[d+24>>1]!=8)break Oe;if(!J[d+56>>2]){J[d+52>>2]=1589;break Oe}J[d+52>>2]=1590;break Oe;case 3:if(!Pn(d))break Oe;Te:switch(L[d+24>>1]-1|0){case 7:J[d+52>>2]=1591;break Oe;case 3:J[d+52>>2]=1592;break Oe;case 1:J[d+52>>2]=1593;break Oe;case 0:break Te;default:break Oe}J[d+52>>2]=1594;break Oe;case 0:case 1:if(!Pn(d))break Oe;Ue:switch(L[d+24>>1]-1|0){case 15:J[d+52>>2]=1595;break Oe;case 7:J[d+52>>2]=1596;break Oe;case 3:J[d+52>>2]=1597;break Oe;case 1:J[d+52>> -2]=1598;break Oe;case 0:break Ue;default:break Oe}J[d+52>>2]=1599;break Oe;case 6:if(L[d+24>>1]!=8)break Oe;if(!dD(d))break Oe;e=J[d>>2];J[m+36>>2]=m+492;J[m+32>>2]=m+480;Ue(e,530,m+32|0);f=1600;Ve:switch((L[m+492>>1]|L[m+480>>1]<<4)-17|0){case 49:J[d+52>>2]=1601;break Oe;case 48:J[d+52>>2]=1602;break Oe;case 17:J[d+52>>2]=1603;break Oe;case 16:J[d+52>>2]=1604;break Oe;case 1:J[d+52>>2]=1605;break Oe;case 0:f=1606;break;case 51:break Ve;default:break Oe}J[d+52>>2]=f;break Oe;case 8:break Pe;default:break Ne}if(!Pn(d)| -L[d+24>>1]!=8)break Oe;We:{Xe:{if(J[d+72>>2])break Xe;e=Qb(18124);J[d+72>>2]=e;if(e)break Xe;Ob(J[J[d>>2]+628>>2],775856,275856,0);e=0;break We}e=J[d>>2];J[m+48>>2]=m+492;Ue(e,318,m+48|0);J[m+484>>2]=1120403456;e=J[m+492>>2];z=N[e>>2];T=N[e+4>>2];N[m+480>>2]=Q(z/T)*Q(100);N[m+488>>2]=Q(Q(Q(Q(1)-z)-T)/T)*Q(100);f=0;n=0;o=J[d+72>>2];J[o>>2]=1500;Pc(o+28|0,775736,84);r=J[o>>2];T=Q(Q(N[o- -64>>2]-N[o+88>>2])/Q(r|0));N[o+4>>2]=T;Ye:{Ze:{if((r|0)<0){N[o+8>>2]=T;break Ze}A=1/+N[o+100>>2];u=r+1|0;z=Q(M[o+ -76>>2]);S=+(r|0);if(r){h=u&-2;j=o+112|0;while(1){wa=j+(f<<2)|0,Da=Q(Q(Qd(+(f|0)/S,A))*z),N[wa>>2]=Da;e=f|1;wa=j+(e<<2)|0,Da=Q(Q(Qd(+(e|0)/S,A))*z),N[wa>>2]=Da;f=f+2|0;n=n+2|0;if((h|0)!=(n|0))continue;break}}if(!(r&1))wa=o+(f<<2)|0,Da=Q(Q(Qd(+(f|0)/S,A))*z),N[wa+112>>2]=Da;N[o+8>>2]=T;f=0;if((r|0)<0)break Ze;A=1/+N[o+104>>2];z=Q(M[o+80>>2]);if(r){h=u&-2;j=o+6116|0;n=0;while(1){wa=j+(f<<2)|0,Da=Q(Q(Qd(+(f|0)/S,A))*z),N[wa>>2]=Da;e=f|1;wa=j+(e<<2)|0,Da=Q(Q(Qd(+(e|0)/S,A))*z),N[wa>>2]=Da;f=f+2|0;n=n+ -2|0;if((h|0)!=(n|0))continue;break}}if(!(r&1))wa=(o+(f<<2)|0)+6116|0,Da=Q(Q(Qd(+(f|0)/S,A))*z),N[wa>>2]=Da;N[o+12>>2]=T;f=0;if((r|0)<0)break Ye;A=1/+N[o+108>>2];z=Q(M[o+84>>2]);if(r){h=u&-2;j=o+12120|0;n=0;while(1){wa=j+(f<<2)|0,Da=Q(Q(Qd(+(f|0)/S,A))*z),N[wa>>2]=Da;e=f|1;wa=j+(e<<2)|0,Da=Q(Q(Qd(+(e|0)/S,A))*z),N[wa>>2]=Da;f=f+2|0;n=n+2|0;if((h|0)!=(n|0))continue;break}}if(r&1)break Ye;wa=(o+(f<<2)|0)+12120|0,Da=Q(Q(Qd(+(f|0)/S,A))*z),N[wa>>2]=Da;break Ye}N[o+12>>2]=T}N[o+16>>2]=N[m+480>>2];N[o+20>> -2]=N[m+484>>2];N[o+24>>2]=N[m+488>>2];e=1607}J[d+52>>2]=e}if(!J[d+48>>2])break Ne;f=1;if(J[d+52>>2])break we}f=0;d=K[272335]|K[272336]<<8|(K[272337]<<16|K[272338]<<24);H[i+24|0]=d;H[i+25|0]=d>>>8;H[i+26|0]=d>>>16;H[i+27|0]=d>>>24;e=K[272331]|K[272332]<<8|(K[272333]<<16|K[272334]<<24);d=K[272327]|K[272328]<<8|(K[272329]<<16|K[272330]<<24);H[i+16|0]=d;H[i+17|0]=d>>>8;H[i+18|0]=d>>>16;H[i+19|0]=d>>>24;H[i+20|0]=e;H[i+21|0]=e>>>8;H[i+22|0]=e>>>16;H[i+23|0]=e>>>24;e=K[272323]|K[272324]<<8|(K[272325]<< -16|K[272326]<<24);d=K[272319]|K[272320]<<8|(K[272321]<<16|K[272322]<<24);H[i+8|0]=d;H[i+9|0]=d>>>8;H[i+10|0]=d>>>16;H[i+11|0]=d>>>24;H[i+12|0]=e;H[i+13|0]=e>>>8;H[i+14|0]=e>>>16;H[i+15|0]=e>>>24;e=K[272315]|K[272316]<<8|(K[272317]<<16|K[272318]<<24);d=K[272311]|K[272312]<<8|(K[272313]<<16|K[272314]<<24);H[i|0]=d;H[i+1|0]=d>>>8;H[i+2|0]=d>>>16;H[i+3|0]=d>>>24;H[i+4|0]=e;H[i+5|0]=e>>>8;H[i+6|0]=e>>>16;H[i+7|0]=e>>>24;break we}J[d+52>>2]=0;J[d+48>>2]=h?1608:1609;_e:{$e:{af:switch(L[d+32>>1]-2|0){case 0:bf:switch(L[d+ -24>>1]-8|0){case 0:cf:switch(J[d+12>>2]-1|0){case 0:J[d+52>>2]=1610;break $e;case 1:J[d+52>>2]=1611;break $e;default:break cf}J[d+52>>2]=1612;break $e;case 8:break bf;default:break $e}df:switch(J[d+12>>2]-1|0){case 0:J[d+52>>2]=1613;break $e;case 1:J[d+52>>2]=1614;break $e;default:break df}J[d+52>>2]=1615;break $e;case 4:break af;default:break _e}if(L[d+24>>1]!=8|L[d+26>>1]!=3)break $e;if(!dD(d))break $e;e=J[d>>2];J[m+68>>2]=m+492;J[m+64>>2]=m+480;Ue(e,530,m- -64|0);if((L[m+492>>1]|L[m+480>>1]<<4)!= -17)break $e;J[d+52>>2]=1616}if(!J[d+48>>2])break _e;f=1;if(J[d+52>>2])break we}f=0;d=K[272335]|K[272336]<<8|(K[272337]<<16|K[272338]<<24);H[i+24|0]=d;H[i+25|0]=d>>>8;H[i+26|0]=d>>>16;H[i+27|0]=d>>>24;e=K[272331]|K[272332]<<8|(K[272333]<<16|K[272334]<<24);d=K[272327]|K[272328]<<8|(K[272329]<<16|K[272330]<<24);H[i+16|0]=d;H[i+17|0]=d>>>8;H[i+18|0]=d>>>16;H[i+19|0]=d>>>24;H[i+20|0]=e;H[i+21|0]=e>>>8;H[i+22|0]=e>>>16;H[i+23|0]=e>>>24;e=K[272323]|K[272324]<<8|(K[272325]<<16|K[272326]<<24);d=K[272319]| -K[272320]<<8|(K[272321]<<16|K[272322]<<24);H[i+8|0]=d;H[i+9|0]=d>>>8;H[i+10|0]=d>>>16;H[i+11|0]=d>>>24;H[i+12|0]=e;H[i+13|0]=e>>>8;H[i+14|0]=e>>>16;H[i+15|0]=e>>>24;e=K[272315]|K[272316]<<8|(K[272317]<<16|K[272318]<<24);d=K[272311]|K[272312]<<8|(K[272313]<<16|K[272314]<<24);H[i|0]=d;H[i+1|0]=d>>>8;H[i+2|0]=d>>>16;H[i+3|0]=d>>>24;H[i+4|0]=e;H[i+5|0]=e>>>8;H[i+6|0]=e>>>16;H[i+7|0]=e>>>24}xb=m+496|0;if(!f)break ve;I[x+42>>1]=4;e=J[x+60>>2];ef:{if(!e){d=J[x+12>>2];Ob(J[d+628>>2],J[d>>2],272569,0);w=0; -break ef}if(!J[x+64>>2]){d=J[x+12>>2];Ob(J[d+628>>2],J[d>>2],272961,0);w=0;break ef}d=J[x+32>>2];w=Ab[e|0](x+12|0,q+(P(s,p-d|0)<<2)|0,s,d)|0}d=J[x+68>>2];if(d){Kb(d);J[x+68>>2]=0}d=J[x+72>>2];if(d){Kb(d);J[x+72>>2]=0}d=J[x+76>>2];if(d){Kb(d);J[x+76>>2]=0}d=J[x+80>>2];if(d){Kb(d);J[x+80>>2]=0}d=J[x+84>>2];if(d){Kb(d);J[x+84>>2]=0}d=J[x+48>>2];if(d){Kb(d);Kb(J[x+52>>2]);Kb(J[x+56>>2])}break ue}e=J[v+628>>2];d=J[v>>2];J[x>>2]=x+96;Ob(e,d,273316,x)}xb=x+1120|0;if(!w){Kb(q);oc(g+72|0,240089,255);break Sd}f= -J[k+332>>2];if(f){r=J[g+56>>2];m=q;while(1){if(J[g+332>>2])break he;d=0;n=r;if(J[k+328>>2]){while(1){e=(d<<2)+m|0;H[n|0]=L[e+2>>1];H[n+1|0]=J[e>>2]>>>8;H[n+2|0]=J[e>>2];if(L[k+324>>1]==4)ne(g,d,l,K[e+3|0]);n=n+3|0;d=d+1|0;e=J[k+328>>2];if(d>>>0>>0)continue;break}f=J[k+332>>2];d=e}r=J[g+52>>2]+r|0;m=(d<<2)+m|0;l=l+1|0;if(l>>>0>>0)continue;break}}Kb(q);break ce}d=L[k+318>>1];q=L[k+326>>1];if(!((d|0)!=3|q>>>0<25)){oc(g+72|0,240218,255);break Sd}u=(d|0)==3&q>>>0>8;E=vc(u?1<>>0>=8?8:q;ff:{gf:switch(d|0){case 0:case 1:if((q|0)==1){if((d|0)==1){H[E+4|0]=255;H[E+5|0]=255;H[E+6|0]=255;break ff}H[E+2|0]=255;H[E|0]=255;H[E+1|0]=255;break ff}h=1<>>0)|0;if((d|0)!=1){n=0;if(q)while(1){e=(n<<2)+E|0;d=P(l,n)^-1;H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;d=n|1;e=(d<<2)+E|0;d=P(d,l)^-1;H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;n=n+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}if(q)break ff;e=(n<<2)+E|0;d=P(l,n)^-1;H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;break ff}n= -0;if(q)while(1){e=(n<<2)+E|0;d=P(l,n);H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;d=n|1;e=(d<<2)+E|0;d=P(d,l);H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;n=n+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}if(q)break ff;e=(n<<2)+E|0;d=P(l,n);H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;break ff;case 3:break gf;default:break ff}J[k+48>>2]=k+300;J[k+52>>2]=k+296;J[k+56>>2]=k+292;zc(v,320,k+48|0);d=1;hf:{if(u)break hf;n=1<>2];f=J[k+296>>2];h=J[k+300>>2];while(1){if((n|0)<=0){d=u;break hf}n=n-1|0;if(L[h+(n<<1)>>1]>255)break hf;e=n<< -1;if(L[e+f>>1]>255)break hf;if(L[e+l>>1]<256)continue;break}}e=u?L[k+326>>1]:j;f=-1<>2];q=J[k+296>>2];l=J[k+300>>2];if(d)while(1){e=(n<<2)+E|0;d=n<<1;H[e+2|0]=L[d+l>>1]/257;H[e+1|0]=L[d+q>>1]/257;H[e|0]=L[d+p>>1]/257;d=(n|0)>0;n=n-1|0;if(d)continue;break ff}if(f&1){h=(n<<2)+E|0;d=n<<1;H[h+2|0]=K[d+l|0];H[h+1|0]=K[d+q|0];H[h|0]=K[d+p|0];n=-2-f|0}if(!e)break ff;while(1){e=(n<<2)+E|0;d=n<<1;H[e+2|0]=K[d+l|0];H[e+1|0]=K[d+q|0];H[e|0]=K[d+p|0];d=n-1|0;e=(d<<2)+E|0;d=d<<1;H[e+2|0]=K[d+ -l|0];H[e+1|0]=K[d+q|0];H[e|0]=K[d+p|0];d=(n|0)>1;n=n-2|0;if(d)continue;break}}if(!u){co(g,E,1<>1];q=L[k+326>>1];h=J[k+328>>2];s=hk(v);e=J[g+32>>2];l=J[g+52>>2];w=L[k+326>>1];f=J[k+320>>2];d=L[k+324>>1];oa=J[v+12>>2]>>>10&1;p=0;J[k+300>>2]=0;J[k+296>>2]=0;h=P(P(h,q),j)+7|0;jf:{if(!oa){d=P(d,e);e=(d|0)>(s|0)?s:d;d=P(f,l);d=P(w>>>0<=8?1:(w|0)==16?1:w+7>>>3|0,(d|0)<(e|0)?e:d);break jf}J[k+32>>2]=k+300;zc(v,322,k+32|0);J[k+16>>2]=k+296;zc(v,323,k+16|0);J[k+320>>2]=J[k+296>>2];d= -P(cg(v),(M[k+328>>2]/M[k+300>>2]|0)+1|0);p=Qb(cg(v))}e=h>>>3|0;h=L[k+326>>1];j=d<<((h|0)==16);f=Qb(j);kf:{lf:{if(!((h|0)!=16|oa)){q=L[k+324>>1];h=J[k+328>>2];l=Qb(d);if(l)break lf;if(!f)break be;Kb(f);break be}if(!f)break be;q=0;X=1;n=J[k+332>>2];o=0;break kf}h=P(h,q)&536870911;n=J[k+332>>2];if(!f){X=1;q=e;j=d;e=h;f=l;o=0;break kf}q=e;x=f;j=d;e=h;f=l;o=Qb(n)}mf:{if(!n)break mf;va=X?e:q;t=X?f:x;G=e&536870910;y=e&1;D=e&536870908;ua=e&3;while(1){if(J[g+332>>2]){Kb(f);oc(g+72|0,239428,255);break ae}d= -J[k+320>>2];s=d+ia>>>0>n>>>0?n-ia|0:d;nf:{if(oa){na=Ye(v);r=Hg(v);if(!J[k+328>>2])break nf;U=na-r|0;Y=r&7;F=!s|!r;qa=0;O=r-1>>>0<7;pa=0;la=0;while(1){if((fk(v,p,pa,ia,0)|0)<0){Kb(p);Kb(f);oc(g+72|0,240865,255);break ae}of:{if(na>>>0>2]+la>>>0){if(!s)break of;l=na-la|0;if(!l)break of;ga=r-l|0;d=P(r,qa);ja=na-d&7;n=f+la|0;i=na+(d^-1)>>>0<7;w=s;d=p;while(1){m=0;h=l;if(ja)while(1){H[n|0]=K[d|0];n=n+1|0;d=d+1|0;h=h-1|0;m=m+1|0;if((ja|0)!=(m|0))continue;break}if(!i)while(1){H[n|0]=K[d|0];H[n+1| -0]=K[d+1|0];H[n+2|0]=K[d+2|0];H[n+3|0]=K[d+3|0];H[n+4|0]=K[d+4|0];H[n+5|0]=K[d+5|0];H[n+6|0]=K[d+6|0];H[n+7|0]=K[d+7|0];n=n+8|0;d=d+8|0;h=h-8|0;if(h)continue;break}d=d+ga|0;n=U+(n+ga|0)|0;w=w-1|0;if(w)continue;break}break of}if(F)break of;n=f+la|0;l=s;d=p;while(1){m=0;h=r;if(Y)while(1){H[n|0]=K[d|0];n=n+1|0;d=d+1|0;h=h-1|0;m=m+1|0;if((Y|0)!=(m|0))continue;break}if(!O)while(1){H[n|0]=K[d|0];H[n+1|0]=K[d+1|0];H[n+2|0]=K[d+2|0];H[n+3|0]=K[d+3|0];H[n+4|0]=K[d+4|0];H[n+5|0]=K[d+5|0];H[n+6|0]=K[d+6|0]; -H[n+7|0]=K[d+7|0];n=n+8|0;d=d+8|0;h=h-8|0;if(h)continue;break}n=n+U|0;l=l-1|0;if(l)continue;break}}qa=qa+1|0;la=r+la|0;pa=J[k+300>>2]+pa|0;if(pa>>>0>2])continue;break}break nf}if((gk(v,ik(v,ia,0),t,P(s,va))|0)==-1)break mf}if(s){Y=C-s|0;w=0;while(1){F=s+(w^-1)|0;U=P(F,e);l=L[k+326>>1];pf:{if(u|(l|0)!=16)break pf;qf:{if(!X){if(e)break qf;H[o+(J[k+332>>2]+(w+Y|0)|0)|0]=8;break pf}i=J[k+328>>2];if(!i)break pf;m=U+1|0;n=0;if((i|0)!=1){r=i&-2;h=0;while(1){H[(n+U|0)+f|0]=K[(m+(n<<1)|0)+f|0];d= -n|1;H[(d+U|0)+f|0]=K[(m+(d<<1)|0)+f|0];n=n+2|0;h=h+2|0;if((r|0)!=(h|0))continue;break}}if(!(i&1))break pf;H[(n+U|0)+f|0]=K[(m+(n<<1)|0)+f|0];break pf}ja=P(q,F);ga=ja+1|0;r=0;n=0;d=0;C=0;if(e>>>0>=4)while(1){h=n<<1;O=K[(ga+(h|6)|0)+x|0];i=K[(ga+(h|4)|0)+x|0];m=K[(ga+(h|2)|0)+x|0];h=K[(h+ga|0)+x|0];d=d&255;d=d>>>0>>0?h:d;d=d>>>0>>0?m:d;d=d>>>0>>0?i:d;d=d>>>0>>0?O:d;n=n+4|0;C=C+4|0;if((D|0)!=(C|0))continue;break}if(ua)while(1){h=K[(ga+(n<<1)|0)+x|0];d=d&255;d=d>>>0>>0?h:d;n=n+1|0;r=r+ -1|0;if((ua|0)!=(r|0))continue;break}rf:{if(!(d&255)){n=8;break rf}n=0;if(d<<24>>24<0)break rf;while(1){n=n+1|0;d=d<<25>>24;if((d|0)>=0)continue;break}}H[o+(J[k+332>>2]+(w+Y|0)|0)|0]=n;if(!e)break pf;r=8-n|0;n=0;h=0;if((e|0)!=1)while(1){d=(ja+(n<<1)|0)+x|0;H[(n+U|0)+f|0]=(K[d|0]|K[d+1|0]<<8)>>>r;d=n|1;m=(d+U|0)+f|0;d=(ja+(d<<1)|0)+x|0;H[m|0]=(K[d|0]|K[d+1|0]<<8)>>>r;n=n+2|0;h=h+2|0;if((G|0)!=(h|0))continue;break}if(!y)break pf;d=(ja+(n<<1)|0)+x|0;H[(n+U|0)+f|0]=(K[d|0]|K[d+1|0]<<8)>>>r}sf:{tf:switch(L[k+ -324>>1]-1|0){case 0:if(u){if(!X){ME(J[g+56>>2]+P(J[g+52>>2],J[k+332>>2]+(w+Y|0)|0)|0,P(q,F)+x|0,J[k+328>>2],l,E);break sf}ME(J[g+56>>2]+P(J[g+52>>2],J[k+332>>2]+(w+Y|0)|0)|0,f+U|0,J[k+328>>2],l,E);break sf}if(!((l|0)!=16&(l|0)!=L[g+26>>1])){d=J[g+52>>2];Mb(J[g+56>>2]+P(d,J[k+332>>2]+(w+Y|0)|0)|0,f+U|0,d>>>0>e>>>0?e:d);break sf}C=J[g+56>>2]+P(J[g+52>>2],J[k+332>>2]+(w+Y|0)|0)|0;m=f+U|0;d=J[k+328>>2];h=0;r=l;uf:{if(l>>>0<=8){if((d|0)<=0)break uf;n=-1<>>8-i|0;break vf}h=i-8|0;l=K[m|0]<>>16-i;m=m+1|0}H[C|0]=l&n;h=(i|0)>7?h:i;C=C+1|0;m=((i|0)==8)+m|0;l=d>>>0>1;d=d-1|0;if(l)continue;break}break uf}if(r>>>0<=15){if((d|0)<=0)break uf;i=r-8|0;n=r+7|0;while(1){l=d;d=K[m|0]|K[m+1|0]<<8|(K[m+2|0]<<16|K[m+3|0]<<24);H[C|0]=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>24-h;d=h+r|0;wf:{if((d|0)>=8){d=(h+n|0)-((d|0)>=15?15:d)|0;h=(h+i|0)-(d&-8)|0;m=m+1+(d>>>3)|0;break wf}h=d}C=C+1|0;d=l-1|0;if(l>>>0>=2)continue;break}break uf}if(r>>>0>=32){if((d| -0)<=0)break uf;l=d&3;xf:{if(!l){h=d;break xf}r=0;h=d;while(1){H[C|0]=K[m+3|0];m=m+4|0;C=C+1|0;h=h-1|0;r=r+1|0;if((l|0)!=(r|0))continue;break}}if(d>>>0<4)break uf;while(1){H[C|0]=K[m+3|0];H[C+1|0]=K[m+7|0];H[C+2|0]=K[m+11|0];H[C+3|0]=K[m+15|0];m=m+16|0;C=C+4|0;d=h-5|0;h=h-4|0;if(d>>>0<4294967294)continue;break}break uf}if((d|0)<=0)break uf;i=r-8|0;n=r+7|0;while(1){l=d;d=K[m|0]|K[m+1|0]<<8|(K[m+2|0]<<16|K[m+3|0]<<24);F=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=h+r|0;H[C|0]=F>>>d-8;yf:{if((d|0)>=8){d= -(h+n|0)-((d|0)>=15?15:d)|0;h=(h+i|0)-(d&-8)|0;m=m+1+(d>>>3)|0;break yf}h=d}C=C+1|0;d=l-1|0;if(l>>>0>=2)continue;break}}break sf;case 1:d=J[k+332>>2];if(!J[g+932>>2])hg(g);if(!e)break sf;n=d+(w+Y|0)|0;h=0;d=0;while(1){l=(h+U|0)+f|0;Pg(g,d,n,K[l|0]);ne(g,d,n,K[l+1|0]);d=d+1|0;l=(d|0)>=J[k+328>>2];d=l?0:d;n=n-l|0;h=h+2|0;if(e>>>0>h>>>0)continue;break}break sf;default:break tf}zf:{if(L[g+26>>1]==24)break zf;Af(g,J[k+328>>2],J[k+332>>2],24,6);if(L[k+324>>1]!=4)break zf;hg(g)}if(!J[k+328>>2])break sf;n= -J[k+332>>2]+(w+Y|0)|0;h=0;d=0;while(1){l=0;C=0;m=U+P(L[k+324>>1],h)|0;r=m+2|0;if((r|0)<(j|0)){l=K[f+r|0];C=l<<24>>24<0?l|-256:l;r=f+m|0;l=K[r+1|0];l=l<<24>>24<0?l|-256:l;r=K[r|0]}else r=0;A=(+(r|0)/2.55+16)/116;ra=Qd(A+ +(C|0)*-.005,3)*1.0883;S=ra*1.057311;sa=Qd(+(l|0)*.002+A,3)*.95047;W=Qd(A,3);A=sa*.055648+W*-.204043;ta=ra*.041556+(sa*-.969256+W*1.875992);W=ra*-.498535+(sa*3.240479+W*-1.53715);Af:{if(W>.00304){W=Qd(W,.41667)*1.055+-.055;break Af}W=W*12.92}A=S+A;Bf:{if(ta>.00304){S=Qd(ta,.41667)* -1.055+-.055;break Bf}S=ta*12.92}Cf:{if(A>.00304){A=Qd(A,.41667)*1.055+-.055;break Cf}A=A*12.92}W=W*255;Df:{if(R(W)<2147483648){l=~~W;break Df}l=-2147483648}l=(l|0)>=255?255:l;H[k+290|0]=(l|0)>0?l:0;S=S*255;Ef:{if(R(S)<2147483648){l=~~S;break Ef}l=-2147483648}l=(l|0)>=255?255:l;H[k+289|0]=(l|0)>0?l:0;A=A*255;Ff:{if(R(A)<2147483648){l=~~A;break Ff}l=-2147483648}l=(l|0)>=255?255:l;H[k+288|0]=(l|0)>0?l:0;J[k+12>>2]=K[k+288|0]|K[k+289|0]<<8|(K[k+290|0]<<16|K[k+291|0]<<24);Rl(g,d,n,k+12|0,0);if(L[k+324>> -1]==4)ne(g,d,n,K[(f+m|0)+3|0]);d=d+1|0;l=J[k+328>>2];r=(d|0)>=(l|0);d=r?0:d;n=n-r|0;h=h+1|0;if(l>>>0>h>>>0)continue;break}}w=w+1|0;if(s>>>0>w>>>0)continue;break}}ia=J[k+320>>2]+ia|0;C=0-ia|0;n=J[k+332>>2];if(ia>>>0>>0)continue;break}}Kb(f);if(!X)Kb(x);if(u|(!o|(L[k+324>>1]!=1|L[k+326>>1]!=16)))break fe;r=J[k+332>>2];if(!r)break ee;q=r&3;d=0;if(r>>>0<4){m=8;n=0;break ge}l=r&-4;n=0;m=8;h=0;while(1){e=K[n+o|0];f=(e|0)>(m|0)?m:e;e=K[o+(n|1)|0];f=(e|0)>(f|0)?f:e;e=K[o+(n|2)|0];f=(e|0)>(f|0)?f:e;e=K[o+ -(n|3)|0];m=(e|0)>(f|0)?f:e;n=n+4|0;h=h+4|0;if((l|0)!=(h|0))continue;break}break ge}Kb(q);oc(g+72|0,239428,255);break ae}if(q)while(1){e=K[n+o|0];m=(e|0)>(m|0)?m:e;n=n+1|0;d=d+1|0;if((q|0)!=(d|0))continue;break}if(!r)break ee;l=0;while(1){d=K[l+o|0];if(!(!J[k+328>>2]|(d|0)<=(m|0))){e=d-m|0;n=J[g+56>>2]+P(J[g+52>>2],l)|0;d=0;while(1){H[n|0]=K[n|0]>>>e;n=n+1|0;d=d+1|0;if(d>>>0>2])continue;break}r=J[k+332>>2]}l=l+1|0;if(r>>>0>l>>>0)continue;break}}if(!o)break de}Kb(o)}if(oa)Kb(p);if(E)Kb(E); -Gf:switch(L[k+314>>1]-2|0){case 1:ds(g);Ol(g);break ce;case 2:ds(g);break ce;case 3:cs(g);Ol(g);break ce;case 4:$n(g);break ce;case 5:$n(g);Ol(g);break ce;case 6:cs(g);break ce;case 0:break Gf;default:break ce}Ol(g)}Bl(v);d=1;break Nd}if(E)Kb(E);if(p)Kb(p);oc(g+72|0,240768,255)}if(!v)break Od}Bl(v)}d=J[g+332>>2]==-1&J[g+68>>2]==6}xb=k+336|0;if(d)break b;J[a+356>>2]=J[g+356>>2];se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)|0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}d=Pb(944);J[195395]=0;g=Fd(d,7);e=J[195395]; -J[195395]=0;if((e|0)==1)break f;J[g>>2]=240504;Qg(g,a);e=0;j=xb-800|0;xb=j;Hf:{if(!b)break Hf;if(!(Ab[J[J[b>>2]+12>>2]](b,j+782|0,18,1,0,0)|0)){oc(g+72|0,238451,255);break Hf}d=(K[j+785|0]|K[j+786|0]<<8)<<16>>16;d=K[g+462|0]?d:d<<8|(d&65280)>>>8;H[j+785|0]=d;H[j+786|0]=d>>>8;d=(K[j+787|0]|K[j+788|0]<<8)<<16>>16;d=K[g+462|0]?d:d<<8|(d&65280)>>>8;H[j+787|0]=d;H[j+788|0]=d>>>8;d=(K[j+790|0]|K[j+791|0]<<8)<<16>>16;d=K[g+462|0]?d:d<<8|(d&65280)>>>8;H[j+790|0]=d;H[j+791|0]=d>>>8;d=(K[j+792|0]|K[j+793|0]<< -8)<<16>>16;d=K[g+462|0]?d:d<<8|(d&65280)>>>8;H[j+792|0]=d;H[j+793|0]=d>>>8;d=(K[j+794|0]|K[j+795|0]<<8)<<16>>16;d=K[g+462|0]?d:d<<8|(d&65280)>>>8;H[j+794|0]=d;H[j+795|0]=d>>>8;d=(K[j+796|0]|K[j+797|0]<<8)<<16>>16;f=(K[g+462|0]?d:d<<8|(d&65280)>>>8)<<16>>16;H[j+796|0]=f;H[j+797|0]=f>>>8;l=K[j+784|0]-1|0;d=l&255;if(!(d>>>0>=11|!(1799>>>d&1))){If:{Jf:{if(!f)break Jf;h=K[j+794|0]|K[j+795|0]<<8;if(!h)break Jf;e=K[j+798|0];if(!e)break Jf;if((K[j+787|0]|K[j+788|0]<<8)>>>0<257)break If}oc(g+72|0,238893,255); -e=0;break Hf}d=e-8|0;if(!(1<>>0<=24:0)){oc(g+72|0,238893,255);e=0;break Hf}if(J[g+332>>2]==-1){J[g+68>>2]=7;J[g+20>>2]=f&65535;J[g+16>>2]=h;e=1;break Hf}d=K[j+782|0];if(d){Ab[J[J[b>>2]+20>>2]](b,d,1)|0;h=K[j+794|0]|K[j+795|0]<<8;f=K[j+796|0]|K[j+797|0]<<8;e=K[j+798|0]}Af(g,h,f&65535,e&255,7);if(K[j+798|0]==32)hg(g);if(!J[g+4>>2]){oc(g+72|0,239293,255);e=0;break Hf}if(J[g+332>>2]){oc(g+72|0,239428,255);e=0;break Hf}Kf:{if(!K[j+783|0])break Kf;e=0;Ab[J[J[b>>2]+12>>2]](b,j,P(K[j+787|0]| -K[j+788|0]<<8,3),1,0,0)|0;if(!(K[j+787|0]|K[j+788|0]<<8))break Kf;while(1){d=j+P(e,3)|0;gi(g,e&255,K[d+2|0],K[d+1|0],K[d|0],0);e=e+1|0;if(e>>>0<(K[j+787|0]|K[j+788|0]<<8)>>>0)continue;break}}if((K[j+784|0]&247)==3)pk(g);d=K[j+799|0];q=d&32;e=0;f=fd(g,0);Lf:{Mf:{if(!(K[j+796|0]|K[j+797|0]<<8))break Mf;l=1792>>>l&1;Nf:{if(q){p=255;while(1){if(J[g+332>>2])break Lf;if(Ab[J[J[b>>2]+36>>2]](b)|0)break Nf;h=(K[j+796|0]|K[j+797|0]<<8)+(e^-1)|0;if(!((h|0)<0|(h|0)>J[g+20>>2]))f=fd(g,0)+P(h,J[g+52>>2])|0;h= -K[j+794|0]|K[j+795|0]<<8;Of:{if(!l){Zr(g,f,j+782|0,b,h,e,0);break Of}p=DE(g,f,j+782|0,b,h,e,p&255)}e=e+1|0;if(e>>>0<(K[j+796|0]|K[j+797|0]<<8)>>>0)continue;break}break Mf}if(!l)while(1){if(J[g+332>>2])break Lf;if(Ab[J[J[b>>2]+36>>2]](b)|0)break Nf;if(J[g+20>>2]>=(e|0))f=fd(g,0)+P(J[g+52>>2],e)|0;Zr(g,f,j+782|0,b,K[j+794|0]|K[j+795|0]<<8,e,0);e=e+1|0;if(e>>>0<(K[j+796|0]|K[j+797|0]<<8)>>>0)continue;break Mf}k=255;while(1){if(J[g+332>>2])break Lf;if(Ab[J[J[b>>2]+36>>2]](b)|0)break Nf;if(J[g+20>>2]>= -(e|0))f=fd(g,0)+P(J[g+52>>2],e)|0;k=DE(g,f,j+782|0,b,K[j+794|0]|K[j+795|0]<<8,e,k&255);e=e+1|0;if(e>>>0<(K[j+796|0]|K[j+797|0]<<8)>>>0)continue;break}break Mf}oc(g+72|0,239739,255);e=0;break Hf}if(d&16)Ol(g);e=1;if(!q|K[j+798|0]!=32)break Hf;SE(g);break Hf}oc(g+72|0,239428,255);e=0;break Hf}oc(g+72|0,238631,255)}xb=j+800|0;if(e)break b;se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)|0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}d=Pb(944);J[195395]=0;g=Fd(d,8);e=J[195395];J[195395]=0;if((e|0)==1)break f;J[g>> -2]=240548;Qg(g,a);d=0;i=xb-912|0;xb=i;Pf:{Qf:{if(!b)break Qf;if(!(Ab[J[J[b>>2]+12>>2]](b,i+784|0,128,1,0,0)|0)){oc(g+72|0,238347,255);break Pf}e=(K[i+788|0]|K[i+789|0]<<8)<<16>>16;e=K[g+462|0]?e:e<<8|(e&65280)>>>8;H[i+788|0]=e;H[i+789|0]=e>>>8;e=(K[i+790|0]|K[i+791|0]<<8)<<16>>16;e=K[g+462|0]?e:e<<8|(e&65280)>>>8;H[i+790|0]=e;H[i+791|0]=e>>>8;e=(K[i+792|0]|K[i+793|0]<<8)<<16>>16;e=K[g+462|0]?e:e<<8|(e&65280)>>>8;H[i+792|0]=e;H[i+793|0]=e>>>8;e=(K[i+794|0]|K[i+795|0]<<8)<<16>>16;e=K[g+462|0]?e:e<< -8|(e&65280)>>>8;H[i+794|0]=e;H[i+795|0]=e>>>8;e=(K[i+796|0]|K[i+797|0]<<8)<<16>>16;e=K[g+462|0]?e:e<<8|(e&65280)>>>8;H[i+796|0]=e;H[i+797|0]=e>>>8;e=(K[i+798|0]|K[i+799|0]<<8)<<16>>16;e=K[g+462|0]?e:e<<8|(e&65280)>>>8;H[i+798|0]=e;H[i+799|0]=e>>>8;e=(K[i+850|0]|K[i+851|0]<<8)<<16>>16;e=K[g+462|0]?e:e<<8|(e&65280)>>>8;H[i+850|0]=e;H[i+851|0]=e>>>8;e=(K[i+852|0]|K[i+853|0]<<8)<<16>>16;e=K[g+462|0]?e:e<<8|(e&65280)>>>8;H[i+852|0]=e;H[i+853|0]=e>>>8;if(K[i+784|0]!=10){oc(g+72|0,238676,255);break Qf}if(K[i+ -786|0]!=1){oc(g+72|0,238952,255);break Qf}l=K[i+788|0]|K[i+789|0]<<8;f=K[i+792|0]|K[i+793|0]<<8;h=K[i+790|0]|K[i+791|0]<<8;e=K[i+794|0]|K[i+795|0]<<8;J[g+364>>2]=K[i+796|0]|K[i+797|0]<<8;J[g+368>>2]=K[i+798|0]|K[i+799|0]<<8;Rf:{q=f-l|0;if((q|0)>=0){o=e-h|0;if((o|0)>=0)break Rf}oc(g+72|0,238676,255);break Pf}h=o+1|0;k=q+1|0;if(J[g+332>>2]==-1){J[g+68>>2]=8;J[g+20>>2]=h;J[g+16>>2]=k;d=1;break Pf}d=H[i+849|0];if((d|0)>=5){oc(g+72|0,239122,255);break Qf}e=H[i+787|0];Sf:{if(!((e|0)!=8|(d|0)<3)){Af(g,k, -h,24,8);if(K[i+849|0]!=4)break Sf;hg(g);break Sf}if(!((d|0)!=4|(e|0)!=1)){Af(g,k,h,4,8);break Sf}Af(g,k,h,e,8)}if(J[g+332>>2]){oc(g+72|0,239428,255);break Qf}p=P(H[i+849|0],P(h,K[i+850|0]|K[i+851|0]<<8));j=Qb(p);if(j){if((p|0)>0){d=j;e=p;while(1){if(Ab[J[J[b>>2]+36>>2]](b)|0){oc(g+72|0,239695,255);Kb(j);break Qf}Ab[J[J[b>>2]+12>>2]](b,i+783|0,1,1,0,0)|0;l=K[i+783|0];Tf:{if((l&192)!=192){H[d|0]=l;e=e-1|0;d=d+1|0;break Tf}Ab[J[J[b>>2]+12>>2]](b,i+783|0,1,1,0,0)|0;f=l&63;if(f>>>0>e>>>0){oc(g+72|0,239840, -255);Kb(j);break Qf}e=e-f|0;if(!f)break Tf;r=0;s=K[i+783|0];h=f;l=l&7;if(l)while(1){H[d|0]=s;d=d+1|0;h=h-1|0;r=r+1|0;if((l|0)!=(r|0))continue;break}if(f>>>0<8)break Tf;while(1){H[d+7|0]=s;H[d+6|0]=s;H[d+5|0]=s;H[d+4|0]=s;H[d+3|0]=s;H[d+2|0]=s;H[d+1|0]=s;H[d|0]=s;d=d+8|0;f=h-9|0;h=h-8|0;if(f>>>0<4294967294)continue;break}}if((e|0)>0)continue;break}}e=K[i+833|0]|K[i+834|0]<<8|(K[i+835|0]<<16|K[i+836|0]<<24);d=K[i+829|0]|K[i+830|0]<<8|(K[i+831|0]<<16|K[i+832|0]<<24);H[i+29|0]=d;H[i+30|0]=d>>>8;H[i+31| -0]=d>>>16;H[i+32|0]=d>>>24;H[i+33|0]=e;H[i+34|0]=e>>>8;H[i+35|0]=e>>>16;H[i+36|0]=e>>>24;d=K[i+837|0]|K[i+838|0]<<8|(K[i+839|0]<<16|K[i+840|0]<<24);H[i+37|0]=d;H[i+38|0]=d>>>8;H[i+39|0]=d>>>16;H[i+40|0]=d>>>24;d=K[i+841|0]|K[i+842|0]<<8;H[i+41|0]=d;H[i+42|0]=d>>>8;H[i+43|0]=K[i+843|0];H[i|0]=K[i+800|0];d=K[i+801|0]|K[i+802|0]<<8|(K[i+803|0]<<16|K[i+804|0]<<24);H[i+1|0]=d;H[i+2|0]=d>>>8;H[i+3|0]=d>>>16;H[i+4|0]=d>>>24;e=K[i+809|0]|K[i+810|0]<<8|(K[i+811|0]<<16|K[i+812|0]<<24);d=K[i+805|0]|K[i+806| -0]<<8|(K[i+807|0]<<16|K[i+808|0]<<24);H[i+5|0]=d;H[i+6|0]=d>>>8;H[i+7|0]=d>>>16;H[i+8|0]=d>>>24;H[i+9|0]=e;H[i+10|0]=e>>>8;H[i+11|0]=e>>>16;H[i+12|0]=e>>>24;e=K[i+817|0]|K[i+818|0]<<8|(K[i+819|0]<<16|K[i+820|0]<<24);d=K[i+813|0]|K[i+814|0]<<8|(K[i+815|0]<<16|K[i+816|0]<<24);H[i+13|0]=d;H[i+14|0]=d>>>8;H[i+15|0]=d>>>16;H[i+16|0]=d>>>24;H[i+17|0]=e;H[i+18|0]=e>>>8;H[i+19|0]=e>>>16;H[i+20|0]=e>>>24;e=K[i+825|0]|K[i+826|0]<<8|(K[i+827|0]<<16|K[i+828|0]<<24);d=K[i+821|0]|K[i+822|0]<<8|(K[i+823|0]<<16| -K[i+824|0]<<24);H[i+21|0]=d;H[i+22|0]=d>>>8;H[i+23|0]=d>>>16;H[i+24|0]=d>>>24;H[i+25|0]=e;H[i+26|0]=e>>>8;H[i+27|0]=e>>>16;H[i+28|0]=e>>>24;J[i+44>>2]=K[i+844|0]|K[i+845|0]<<8|(K[i+846|0]<<16|K[i+847|0]<<24);Uf:{Vf:{Wf:{Xf:{e=K[i+787|0];d=K[i+849|0];if(!((e|0)!=8|(d|0)!=1)){d=0;Ab[J[J[b>>2]+12>>2]](b,i+783|0,1,1,0,0)|0;if(K[i+783|0]!=12)break Xf;while(1){e=i+P(d,3)|0;Ab[J[J[b>>2]+12>>2]](b,e,1,1,0,0)|0;Ab[J[J[b>>2]+12>>2]](b,e+1|0,1,1,0,0)|0;Ab[J[J[b>>2]+12>>2]](b,e+2|0,1,1,0,0)|0;d=d+1|0;if((d|0)!= -256)continue;break}e=K[i+787|0];d=K[i+849|0]}if(!((e|0)!=1|(d&255)!=1)){I[i+2>>1]=65280;I[i+4>>1]=65535;I[i>>1]=0}if(J[g+44>>2]){d=0;while(1){e=i+P(d,3)|0;gi(g,d&255,K[e|0],K[e+1|0],K[e+2|0],0);d=d+1|0;if(d>>>0>2])continue;break}}h=Qb(k+((K[i+850|0]|K[i+851|0]<<8)<<3)|0);if(!h)break Uf;u=q+1|0;d=0;while(1){if(J[g+332>>2]){oc(g+72|0,239428,255);break Vf}q=d;r=o-d|0;f=K[i+849|0];x=f<<24>>24;e=K[i+850|0]|K[i+851|0]<<8;k=j+P(x,P(e,d))|0;s=K[i+787|0];Yf:{Zf:{if((f|0)!=3)break Zf;d=0;if((s|0)!= -8)break Zf;while(1){f=d+k|0;e=K[i+850|0]|K[i+851|0]<<8;RE(g,d,r,K[f+e|0]<<8|K[f|0]|K[f+(e<<1)|0]<<16);d=d+1|0;if((u|0)!=(d|0))continue;break}break Yf}_f:{if((f|0)!=4)break _f;d=0;if((s|0)!=8)break _f;while(1){f=d+k|0;e=K[i+850|0]|K[i+851|0]<<8;RE(g,d,r,K[f+e|0]<<8|K[f|0]|K[f+(e<<1)|0]<<16);e=P(K[i+850|0]|K[i+851|0]<<8,3)+d|0;if(e>>>0

>>0)ne(g,d,r,K[e+k|0]);d=d+1|0;if((u|0)!=(d|0))continue;break}break Yf}$f:{if((f|0)==1){l=h;d=e<<16>>16;f=0;ag:{bg:switch((s<<24>>24)-1|0){case 0:if((d|0)<=0)break ag; -while(1){e=K[k|0];H[l+7|0]=e&1;H[l|0]=e>>>7;H[l+6|0]=e>>>1&1;H[l+5|0]=e>>>2&1;H[l+4|0]=e>>>3&1;H[l+3|0]=e>>>4&1;H[l+2|0]=e>>>5&1;H[l+1|0]=e>>>6&1;l=l+8|0;k=k+1|0;e=d&65535;d=d-1|0;if(e>>>0>1)continue;break}break ag;case 1:if((d|0)<=0)break ag;if(d&1){e=K[k|0];H[l+3|0]=e&3;H[l|0]=e>>>6;H[l+2|0]=e>>>2&3;H[l+1|0]=e>>>4&3;l=l+4|0;k=k+1|0;f=d-1|0}else f=d;if((d|0)==1)break ag;while(1){d=K[k|0];H[l+3|0]=d&3;H[l|0]=d>>>6;H[l+2|0]=d>>>2&3;H[l+1|0]=d>>>4&3;d=K[k+1|0];H[l+7|0]=d&3;H[l+4|0]=d>>>6;H[l+6|0]=d>>> -2&3;H[l+5|0]=d>>>4&3;l=l+8|0;k=k+2|0;d=f-3|0;f=f-2|0;if((d&65535)>>>0<65534)continue;break}break ag;case 3:if((d|0)<=0)break ag;w=d&3;cg:{if(!w){e=d;break cg}e=d;while(1){s=K[k|0];H[l+1|0]=s&15;H[l|0]=s>>>4;l=l+2|0;k=k+1|0;e=e-1|0;f=f+1|0;if((w|0)!=(f&65535))continue;break}}if(d>>>0<4)break ag;while(1){d=K[k|0];H[l+1|0]=d&15;H[l|0]=d>>>4;d=K[k+1|0];H[l+3|0]=d&15;H[l+2|0]=d>>>4;d=K[k+2|0];H[l+5|0]=d&15;H[l+4|0]=d>>>4;d=K[k+3|0];H[l+7|0]=d&15;H[l+6|0]=d>>>4;l=l+8|0;k=k+4|0;d=e-5|0;e=e-4|0;if((d&65535)>>> -0<65534)continue;break}break ag;case 7:break bg;default:break ag}if((d|0)<=0)break ag;s=d&7;dg:{if(!s){e=d;break dg}e=d;while(1){H[l|0]=K[k|0];l=l+1|0;k=k+1|0;e=e-1|0;f=f+1|0;if((s|0)!=(f&65535))continue;break}}if(d>>>0<8)break ag;while(1){H[l|0]=K[k|0];H[l+1|0]=K[k+1|0];H[l+2|0]=K[k+2|0];H[l+3|0]=K[k+3|0];H[l+4|0]=K[k+4|0];H[l+5|0]=K[k+5|0];H[l+6|0]=K[k+6|0];H[l+7|0]=K[k+7|0];l=l+8|0;k=k+8|0;d=e-9|0;e=e-8|0;if((d&65535)>>>0<65534)continue;break}}break $f}f=h;C=0;w=(s|0)==1&(x|0)<5;n=e<<16>>16;eg:{if(!w| -(n|0)<=0)break eg;d=n<<3;d=Nb(f,0,(d|1)-((d|0)>0?1:d)|0);if((x|0)<=0)break eg;l=k;e=d;while(1){s=H[l|0];m=s&255;if((s|0)<0)H[e|0]=K[e|0]|1;if(m&64)H[e+1|0]=K[e+1|0]|1;if(m&32)H[e+2|0]=K[e+2|0]|1;if(m&16)H[e+3|0]=K[e+3|0]|1;if(m&8)H[e+4|0]=K[e+4|0]|1;if(m&4)H[e+5|0]=K[e+5|0]|1;if(m&2)H[e+6|0]=K[e+6|0]|1;if(m&1)H[e+7|0]=K[e+7|0]|1;l=l+1|0;e=e+8|0;C=C+1|0;if((n|0)!=(C|0))continue;break}if((x|0)==1)break eg;C=0;s=k+n|0;l=s;e=d;while(1){k=H[l|0];m=k&255;if((k|0)<0)H[e|0]=K[e|0]|2;if(m&64)H[e+1|0]=K[e+ -1|0]|2;if(m&32)H[e+2|0]=K[e+2|0]|2;if(m&16)H[e+3|0]=K[e+3|0]|2;if(m&8)H[e+4|0]=K[e+4|0]|2;if(m&4)H[e+5|0]=K[e+5|0]|2;if(m&2)H[e+6|0]=K[e+6|0]|2;if(m&1)H[e+7|0]=K[e+7|0]|2;l=l+1|0;e=e+8|0;C=C+1|0;if((n|0)!=(C|0))continue;break}if((x|0)==2)break eg;C=0;k=n+s|0;l=k;e=d;while(1){d=H[l|0];s=d&255;if((d|0)<0)H[e|0]=K[e|0]|4;if(s&64)H[e+1|0]=K[e+1|0]|4;if(s&32)H[e+2|0]=K[e+2|0]|4;if(s&16)H[e+3|0]=K[e+3|0]|4;if(s&8)H[e+4|0]=K[e+4|0]|4;if(s&4)H[e+5|0]=K[e+5|0]|4;if(s&2)H[e+6|0]=K[e+6|0]|4;if(s&1)H[e+7|0]= -K[e+7|0]|4;l=l+1|0;e=e+8|0;C=C+1|0;if((n|0)!=(C|0))continue;break}if((x|0)==3)break eg;e=k+n|0;l=0;while(1){d=H[e|0];k=d&255;if((d|0)<0)H[f|0]=K[f|0]|8;if(k&64)H[f+1|0]=K[f+1|0]|8;if(k&32)H[f+2|0]=K[f+2|0]|8;if(k&16)H[f+3|0]=K[f+3|0]|8;if(k&8)H[f+4|0]=K[f+4|0]|8;if(k&4)H[f+5|0]=K[f+5|0]|8;if(k&2)H[f+6|0]=K[f+6|0]|8;if(k&1)H[f+7|0]=K[f+7|0]|8;e=e+1|0;f=f+8|0;l=l+1|0;if((n|0)!=(l|0))continue;break}}if(!w)break Wf}d=0;while(1){Pg(g,d,r,K[d+h|0]);d=d+1|0;if((u|0)!=(d|0))continue;break}}d=q+1|0;if((o| -0)!=(q|0))continue;break}Kb(j);Kb(h);d=1;break Pf}oc(g+72|0,239995,255);Kb(j);break Qf}oc(g+72|0,240628,255)}Kb(j);Kb(h);break Qf}oc(g+72|0,239428,255);Kb(j);break Qf}oc(g+72|0,239428,255)}d=0}xb=i+912|0;if(d)break b;se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)|0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}d=Pb(944);J[195395]=0;g=Fd(d,9);e=J[195395];J[195395]=0;if((e|0)!=1)break e}a=Z()|0;Kb(d);break a}J[g>>2]=240592;Qg(g,a);e=0;l=xb-32|0;xb=l;d=0;fg:{if(!b)break fg;while(1){if(!(Ab[J[J[b>>2]+36>>2]](b)| -0)){d=Ab[J[J[b>>2]+48>>2]](b)|0;e=d&127|e<<7;if(d&128)continue}break}while(1){if(!(Ab[J[J[b>>2]+36>>2]](b)|0))if(Ab[J[J[b>>2]+48>>2]](b)&128)continue;break}f=0;while(1){if(!(Ab[J[J[b>>2]+36>>2]](b)|0)){d=Ab[J[J[b>>2]+48>>2]](b)|0;f=d&127|f<<7;if(d&128)continue}break}h=0;while(1){if(!(Ab[J[J[b>>2]+36>>2]](b)|0)){d=Ab[J[J[b>>2]+48>>2]](b)|0;h=d&127|h<<7;if(d&128)continue}break}if(Ab[J[J[b>>2]+36>>2]](b)|0){oc(g+72|0,238419,255);d=0;break fg}if(e){oc(g+72|0,238654,255);d=0;break fg}J[g+20>>2]=h;J[g+ -16>>2]=f;if(!((f|0)>0&(h|0)>0)){oc(g+72|0,239056,255);d=0;break fg}gg:{if(J[g+332>>2]!=-1){Af(g,f,h,1,9);if(!J[g+4>>2]){oc(g+72|0,239274,255);d=0;break fg}pk(g);e=J[g+16>>2];J[l+28>>2]=g;d=fd(g,0);J[l+16>>2]=0;J[l+20>>2]=0;J[l+8>>2]=0;J[l+12>>2]=0;J[l+24>>2]=d;J[l+8>>2]=0;J[l+12>>2]=J[J[l+28>>2]+20>>2]-1;wa=l,Ca=fd(J[l+28>>2],0)+P(J[J[l+28>>2]+52>>2],J[J[l+28>>2]+20>>2]-1|0)|0,J[wa+24>>2]=Ca;if(J[g+20>>2]<=0)break gg;h=(e+7|0)/8|0;e=0;while(1){Ab[J[J[b>>2]+12>>2]](b,J[l+24>>2],h,1,0,0)|0;d=J[l+12>> -2];J[l+12>>2]=d-1;if((d|0)>0)J[l+24>>2]=J[l+24>>2]-J[J[l+28>>2]+52>>2];e=e+1|0;if((e|0)>2])continue;break}break gg}J[g+68>>2]=9}d=1}xb=l+32|0;if(d)break b;se(a+72|0,g+72|0);Ab[J[J[b>>2]+20>>2]](b,da,0)|0;Ab[J[J[g>>2]+4>>2]](g);if(c)break c}c=K[239975]|K[239976]<<8|(K[239977]<<16|K[239978]<<24);b=K[239971]|K[239972]<<8|(K[239973]<<16|K[239974]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]=b>>>16;H[a+99|0]=b>>>24;H[a+100|0]=c;H[a+101|0]=c>>>8;H[a+102|0]=c>>>16;H[a+103|0]=c>>>24;c=K[239967]|K[239968]<< -8|(K[239969]<<16|K[239970]<<24);b=K[239963]|K[239964]<<8|(K[239965]<<16|K[239966]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[239959]|K[239960]<<8|(K[239961]<<16|K[239962]<<24);b=K[239955]|K[239956]<<8|(K[239957]<<16|K[239958]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[239951]|K[239952]<<8|(K[239953]<<16|K[239954]<<24);b= -K[239947]|K[239948]<<8|(K[239949]<<16|K[239950]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}return 0}io(a,g,1);Ab[J[J[g>>2]+4>>2]](g);return 1}ba(a|0);B()}function wZ(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=xb-1600|0;xb=c;a:{b:{c:{d:{if(J[a>>2]==-1)break d;d=xb+-64|0;xb=d;cA(d+52|0,a);e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{e=K[d+63|0];h=e<<24>>24<0?J[d+56>>2]:e;v:{if(!h)break v;J[195395]= -0;e=_(1078,32)|0;f=J[195395];J[195395]=0;if((f|0)==1)break g;J[d+40>>2]=e;J[d+44>>2]=7;J[d+48>>2]=-2147483640;J[e+24>>2]=J[106197];f=J[106196];J[e+16>>2]=J[106195];J[e+20>>2]=f;f=J[106194];J[e+8>>2]=J[106193];J[e+12>>2]=f;f=J[106192];J[e>>2]=J[106191];J[e+4>>2]=f;J[e+28>>2]=0;J[195395]=0;f=a+48|0;fa(3137,f|0,d+40|0,1);e=J[195395];J[195395]=0;if((e|0)==1)break u;if(H[d+51|0]<0)Kb(J[d+40>>2]);J[195395]=0;e=_(1078,16)|0;g=J[195395];J[195395]=0;if((g|0)==1)break t;J[d+28>>2]=e;J[d+32>>2]=2;J[d+36>>2]= --2147483644;J[e+8>>2]=0;J[e>>2]=105;J[e+4>>2]=100;J[195395]=0;fa(3138,f|0,d+28|0,d+52|0);e=J[195395];J[195395]=0;if((e|0)==1)break s;if(H[d+39|0]<0)Kb(J[d+28>>2]);J[195395]=0;e=_(1078,32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break r;J[d+28>>2]=e;J[d+32>>2]=5;J[d+36>>2]=-2147483640;J[e+16>>2]=J[105201];g=J[105200];J[e+8>>2]=J[105199];J[e+12>>2]=g;g=J[105198];J[e>>2]=J[105197];J[e+4>>2]=g;J[e+20>>2]=0;i=O[a+24>>3];w:{if(i!=0){j=O[a+8>>3];J[195395]=0;da(1863,d+16|0,+(j*8/i),-1);e=J[195395];J[195395]= -0;if((e|0)!=1)break w;a=Z()|0;break p}J[d+16>>2]=49;J[d+20>>2]=0;H[d+27|0]=1}J[195395]=0;fa(3138,f|0,d+28|0,d+16|0);e=J[195395];J[195395]=0;if((e|0)==1)break q;if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+39|0]<0)Kb(J[d+28>>2]);J[195395]=0;e=_(1078,32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break o;J[d+28>>2]=e;J[d+32>>2]=6;J[d+36>>2]=-2147483640;g=J[105208];J[e+16>>2]=J[105207];J[e+20>>2]=g;g=J[105206];J[e+8>>2]=J[105205];J[e+12>>2]=g;g=J[105204];J[e>>2]=J[105203];J[e+4>>2]=g;J[e+24>>2]=0;i=O[a+32>>3];x:{if(i!= -0){j=O[a+8>>3];J[195395]=0;da(1863,d+16|0,+(j*8/i),-1);e=J[195395];J[195395]=0;if((e|0)!=1)break x;a=Z()|0;break m}J[d+16>>2]=49;J[d+20>>2]=0;H[d+27|0]=1}J[195395]=0;fa(3138,f|0,d+28|0,d+16|0);e=J[195395];J[195395]=0;if((e|0)==1)break n;if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+39|0]<0)Kb(J[d+28>>2]);J[195395]=0;e=_(1078,64)|0;g=J[195395];J[195395]=0;if((g|0)==1)break l;J[d+28>>2]=e;J[d+32>>2]=12;J[d+36>>2]=-2147483632;g=J[106210];J[e+40>>2]=J[106209];J[e+44>>2]=g;g=J[106208];J[e+32>>2]=J[106207];J[e+ -36>>2]=g;g=J[106206];J[e+24>>2]=J[106205];J[e+28>>2]=g;g=J[106204];J[e+16>>2]=J[106203];J[e+20>>2]=g;g=J[106202];J[e+8>>2]=J[106201];J[e+12>>2]=g;g=J[106200];J[e>>2]=J[106199];J[e+4>>2]=g;J[e+48>>2]=0;J[195395]=0;fa(3139,f|0,d+28|0,424848);e=J[195395];J[195395]=0;if((e|0)==1)break k;if(H[d+39|0]<0)Kb(J[d+28>>2]);J[195395]=0;e=_(1078,64)|0;g=J[195395];J[195395]=0;if((g|0)==1)break j;J[d+28>>2]=e;J[d+32>>2]=15;J[d+36>>2]=-2147483632;J[e+56>>2]=J[106244];g=J[106243];J[e+48>>2]=J[106242];J[e+52>>2]=g; -g=J[106241];J[e+40>>2]=J[106240];J[e+44>>2]=g;g=J[106239];J[e+32>>2]=J[106238];J[e+36>>2]=g;g=J[106237];J[e+24>>2]=J[106236];J[e+28>>2]=g;g=J[106235];J[e+16>>2]=J[106234];J[e+20>>2]=g;g=J[106233];J[e+8>>2]=J[106232];J[e+12>>2]=g;g=J[106231];J[e>>2]=J[106230];J[e+4>>2]=g;J[e+60>>2]=0;J[195395]=0;fa(3139,f|0,d+28|0,424984);e=J[195395];J[195395]=0;if((e|0)==1)break i;if(H[d+39|0]<0)Kb(J[d+28>>2]);J[195395]=0;e=_(1078,32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break g;J[d+4>>2]=e;J[d+8>>2]=7;J[d+12>>2]= --2147483640;J[e+24>>2]=J[106197];g=J[106196];J[e+16>>2]=J[106195];J[e+20>>2]=g;g=J[106194];J[e+8>>2]=J[106193];J[e+12>>2]=g;g=J[106192];J[e>>2]=J[106191];J[e+4>>2]=g;J[e+28>>2]=0;J[195395]=0;ia(3136,f|0,d+4|0,1,0);e=J[195395];J[195395]=0;if((e|0)==1)break h;if(H[d+15|0]>=0)break v;Kb(J[d+4>>2])}if(H[d+63|0]<0)Kb(J[d+52>>2]);xb=d- -64|0;d=(h|0)!=0;break e}a=Z()|0;if(H[d+51|0]>=0)break f;Kb(J[d+40>>2]);break f}a=Z()|0;break f}a=Z()|0;if(H[d+39|0]>=0)break f;Kb(J[d+28>>2]);break f}a=Z()|0;break f}a= -Z()|0;if(H[d+27|0]>=0)break p;Kb(J[d+16>>2])}if(H[d+39|0]>=0)break f;Kb(J[d+28>>2]);break f}a=Z()|0;break f}a=Z()|0;if(H[d+27|0]>=0)break m;Kb(J[d+16>>2])}if(H[d+39|0]>=0)break f;Kb(J[d+28>>2]);break f}a=Z()|0;break f}a=Z()|0;if(H[d+39|0]>=0)break f;Kb(J[d+28>>2]);break f}a=Z()|0;break f}a=Z()|0;if(H[d+39|0]>=0)break f;Kb(J[d+28>>2]);break f}a=Z()|0;if(H[d+15|0]>=0)break f;Kb(J[d+4>>2]);break f}a=Z()|0}if(H[d+63|0]<0)Kb(J[d+52>>2]);break a}if(!d)break d;d=xb-48|0;xb=d;y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{if(!K[a+ -44|0]|J[a+40>>2]<0)break K;e=Pb(32);J[d+36>>2]=e;J[d+40>>2]=4;J[d+44>>2]=-2147483640;f=J[105193];J[e+8>>2]=J[105192];J[e+12>>2]=f;f=J[105191];J[e>>2]=J[105190];J[e+4>>2]=f;J[e+16>>2]=0;J[195395]=0;f=a+48|0;fa(3137,f|0,d+36|0,1);e=J[195395];J[195395]=0;if((e|0)==1)break J;if(H[d+47|0]<0)Kb(J[d+36>>2]);J[d+24>>2]=120;J[d+28>>2]=0;J[195395]=0;H[d+35|0]=1;fa(3139,f|0,d+24|0,423332);e=J[195395];J[195395]=0;if((e|0)==1)break I;if(H[d+35|0]<0)Kb(J[d+24>>2]);J[195395]=0;J[d+24>>2]=121;J[d+28>>2]=0;H[d+35| -0]=1;fa(3139,f|0,d+24|0,423332);e=J[195395];J[195395]=0;if((e|0)==1)break H;if(H[d+35|0]<0)Kb(J[d+24>>2]);e=Pb(32);J[d+24>>2]=e;J[d+28>>2]=5;J[d+32>>2]=-2147483640;J[e+16>>2]=J[105201];h=J[105200];J[e+8>>2]=J[105199];J[e+12>>2]=h;h=J[105198];J[e>>2]=J[105197];J[e+4>>2]=h;J[e+20>>2]=0;i=O[a+8>>3];J[195395]=0;e=d+12|0;da(1863,e|0,+(i*8),-1);h=J[195395];J[195395]=0;if((h|0)==1)break G;J[195395]=0;fa(3138,f|0,d+24|0,e|0);e=J[195395];J[195395]=0;if((e|0)==1)break F;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+ -35|0]<0)Kb(J[d+24>>2]);e=Pb(32);J[d+24>>2]=e;J[d+28>>2]=6;J[d+32>>2]=-2147483640;h=J[105208];J[e+16>>2]=J[105207];J[e+20>>2]=h;h=J[105206];J[e+8>>2]=J[105205];J[e+12>>2]=h;h=J[105204];J[e>>2]=J[105203];J[e+4>>2]=h;J[e+24>>2]=0;i=O[a+8>>3];J[195395]=0;e=d+12|0;da(1863,e|0,+(i*8),-1);h=J[195395];J[195395]=0;if((h|0)==1)break E;J[195395]=0;fa(3138,f|0,d+24|0,e|0);e=J[195395];J[195395]=0;if((e|0)==1)break D;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);e=Pb(32);J[d+24>>2]=e;J[d+28>>2]=4; -J[d+32>>2]=-2147483640;h=J[105213];J[e+8>>2]=J[105212];J[e+12>>2]=h;h=J[105211];J[e>>2]=J[105210];J[e+4>>2]=h;J[e+16>>2]=0;e=K[a+44|0];h=J[a+40>>2];J[195395]=0;g=d+12|0;fa(1975,g|0,h|0,e|0);e=J[195395];J[195395]=0;if((e|0)==1)break C;J[195395]=0;fa(3138,f|0,d+24|0,g|0);e=J[195395];J[195395]=0;if((e|0)==1)break B;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);e=Pb(32);J[d>>2]=e;J[d+4>>2]=4;J[d+8>>2]=-2147483640;h=J[105193];J[e+8>>2]=J[105192];J[e+12>>2]=h;h=J[105191];J[e>>2]=J[105190]; -J[e+4>>2]=h;J[e+16>>2]=0;J[195395]=0;ia(3136,f|0,d|0,1,1);e=J[195395];J[195395]=0;if((e|0)==1)break A;if(H[d+11|0]>=0)break K;Kb(J[d>>2])}xb=d+48|0;break y}a=Z()|0;if(H[d+47|0]>=0)break a;Kb(J[d+36>>2]);break a}a=Z()|0;break z}a=Z()|0;break z}a=Z()|0;break z}a=Z()|0;if(H[d+23|0]>=0)break z;Kb(J[d+12>>2]);break z}a=Z()|0;break z}a=Z()|0;if(H[d+23|0]>=0)break z;Kb(J[d+12>>2]);break z}a=Z()|0;break z}a=Z()|0;if(H[d+23|0]>=0)break z;Kb(J[d+12>>2]);break z}a=Z()|0;if(H[d+11|0]>=0)break a;Kb(J[d>>2]);break a}if(H[d+ -35|0]>=0)break a;Kb(J[d+24>>2]);break a}L:{M:switch(J[a>>2]){case 1:J[c+984>>2]=0;J[c+988>>2]=0;J[c+976>>2]=0;J[c+980>>2]=1071644672;J[c+1592>>2]=0;J[c+1596>>2]=1075838976;J[c+1584>>2]=0;J[c+1588>>2]=1071644672;ln(a,c+976|0,c+1584|0);break L;case 2:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074528256;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+ -1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+1580>>2]=8;J[c+1088>>2]=0;J[c+1092>>2]=1075576832;J[c+1072>>2]=0;J[c+1076>>2]=1075314688;J[c+1056>>2]=0;J[c+1060>>2]=1075052544;J[c+1040>>2]=0;J[c+1044>>2]=1074790400;J[c+1024>>2]=0;J[c+1028>>2]=1074266112;J[c+1008>>2]=0;J[c+1012>>2]=1073741824;J[c+992>>2]=0;J[c+996>>2]=1072693248;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1576>>2]=c+976;b=J[c+1580>>2];J[c>>2]=J[c+1576>>2];J[c+4>>2]=b;N:{d=jd(c+1584|0,c);b=J[d>>2];e=J[d+4>>2];if((b|0)!= -(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break N;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 3:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074528256;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+1572>>2]=8;J[c+1088>> -2]=0;J[c+1092>>2]=0;J[c+1072>>2]=0;J[c+1076>>2]=1072693248;J[c+1056>>2]=0;J[c+1060>>2]=1073741824;J[c+1040>>2]=0;J[c+1044>>2]=1074266112;J[c+1024>>2]=0;J[c+1028>>2]=1074790400;J[c+1008>>2]=0;J[c+1012>>2]=1075052544;J[c+992>>2]=0;J[c+996>>2]=1075314688;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1075576832;J[c+1568>>2]=c+976;b=J[c+1572>>2];J[c+8>>2]=J[c+1568>>2];J[c+12>>2]=b;O:{d=jd(c+1584|0,c+8|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395]; -J[195395]=0;if((f|0)==1)break O;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 4:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1071644672;J[c+1016>>2]=0;J[c+1020>>2]=0;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1564>>2]=2;J[c+1008>>2]=0;J[c+1012>>2]=1071644672;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1560>>2]=c+976;b=J[c+1564>>2];J[c+16>>2]=J[c+1560>>2]; -J[c+20>>2]=b;P:{d=xd(c+1584|0,c+16|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break P;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 5:b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1080|0;J[b>>2]=0; -J[b+4>>2]=1075183616;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1152>>2]=0;J[c+1156>>2]=0;J[c+1136>>2]=0;J[c+1140>>2]=1075576832;J[c+1120>>2]=0;J[c+1124>>2]=1072693248;J[c+1104>>2]=0;J[c+1108>>2]=1075314688;J[c+1088>>2]=0;J[c+1092>>2]=1073741824;J[c+1072>>2]=0;J[c+1076>>2]=1075052544;J[c+1056>>2]=0;J[c+1060>>2]=1075052544;J[c+1040>>2]= -0;J[c+1044>>2]=1073741824;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1556>>2]=12;J[c+1552>>2]=c+976;b=J[c+1556>>2];J[c+32>>2]=J[c+1552>>2];J[c+36>>2]=b;d=jd(c+1584|0,c+32|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]= -b;Kb(b)}b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075052544;J[c+1016>>2]=0;J[c+1020>>2]=1074921472;J[c+1E3>>2]=0;J[c+1004>>2]=1074528256;J[c+1548>>2]=2;J[c+1544>>2]=c+976;b=J[c+1548>>2];J[c+24>>2]=J[c+1544>>2];J[c+28>>2]=b;J[c+1008>>2]=0;J[c+1012>>2]=1074266112;J[c+992>>2]=0;J[c+996>>2]=1075052544;J[c+984>>2]=0;J[c+988>>2]=1074528256;J[c+976>>2]=0;J[c+980>>2]=1074266112;Q:{d=xd(c+1584|0,c+24|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0, -b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break Q;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 6:J[c+1E3>>2]=0;J[c+1004>>2]=1074921472;J[c+1540>>2]=2;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1536>>2]=c+976;b=J[c+1540>>2];J[c+40>>2]=J[c+1536>>2];J[c+44>>2]=b;R:{d=jd(c+1584|0,c+40|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]= -0;if((f|0)==1)break R;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 7:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075445760;J[c+1016>>2]=0;J[c+1020>>2]=1074921472;J[c+1E3>>2]=0;J[c+1004>>2]=1074003968;J[c+1532>>2]=4;J[c+1024>>2]=0;J[c+1028>>2]=1074790400;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1528>>2]=c+976;b=J[c+1532>>2];J[c+48>>2]=J[c+1528>>2];J[c+52>>2]= -b;S:{d=jd(c+1584|0,c+48|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break S;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 8:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074003968;J[c+1016>>2]=0;J[c+1020>>2]=1074003968; -J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1524>>2]=8;J[c+1088>>2]=0;J[c+1092>>2]=1075314688;J[c+1072>>2]=0;J[c+1076>>2]=1073741824;J[c+1056>>2]=0;J[c+1060>>2]=1074790400;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1073741824;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1520>>2]=c+976;b=J[c+1524>>2];J[c+56>>2]=J[c+1520>>2];J[c+60>>2]=b;T:{d=jd(c+1584|0,c+56|0);b=J[d>>2];e=J[d+4>>2];if((b| -0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break T;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 9:b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1112|0; -J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1216>>2]=0;J[c+1220>>2]=1075314688;J[c+1200>>2]=0;J[c+1204>>2]=1073741824;J[c+1184>>2]=0;J[c+1188>>2]=1074790400;J[c+1168>>2]=0;J[c+1172>>2]=0;J[c+1152>>2]=0;J[c+1156>>2]=1075314688; -J[c+1136>>2]=0;J[c+1140>>2]=1073741824;J[c+1120>>2]=0;J[c+1124>>2]=1074790400;J[c+1104>>2]=0;J[c+1108>>2]=0;J[c+1088>>2]=0;J[c+1092>>2]=1075314688;J[c+1072>>2]=0;J[c+1076>>2]=1073741824;J[c+1056>>2]=0;J[c+1060>>2]=1074790400;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1073741824;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1516>>2]=16;J[c+1512>>2]=c+976;b=J[c+1516>>2];J[c+64>>2]=J[c+1512>> -2];J[c+68>>2]=b;U:{d=jd(c+1584|0,c- -64|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break U;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 10:b=c+1352|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1336|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1320|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1304|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1272|0;J[b>>2]=0;J[b+ -4>>2]=1075445760;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1080|0;J[b>>2]=0;J[b+ -4>>2]=1074003968;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1344>>2]=0;J[c+1348>>2]=1075576832;J[c+1328>>2]=0;J[c+1332>>2]=1074266112;J[c+1312>>2]=0;J[c+1316>>2]=1075314688;J[c+1296>>2]=0;J[c+1300>>2]=1074790400;J[c+1280>>2]=0;J[c+1284>>2]=1073741824;J[c+1264>>2]=0;J[c+1268>>2]=0;J[c+1248>>2]=0;J[c+1252>>2]=1075052544;J[c+1232>>2]=0;J[c+ -1236>>2]=1072693248;J[c+1216>>2]=0;J[c+1220>>2]=1075314688;J[c+1200>>2]=0;J[c+1204>>2]=1074790400;J[c+1184>>2]=0;J[c+1188>>2]=1073741824;J[c+1168>>2]=0;J[c+1172>>2]=0;J[c+1152>>2]=0;J[c+1156>>2]=1075576832;J[c+1136>>2]=0;J[c+1140>>2]=1074266112;J[c+1120>>2]=0;J[c+1124>>2]=1075314688;J[c+1104>>2]=0;J[c+1108>>2]=1074790400;J[c+1088>>2]=0;J[c+1092>>2]=1073741824;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1056>>2]=0;J[c+1060>>2]=1075052544;J[c+1040>>2]=0;J[c+1044>>2]=1072693248;J[c+1024>>2]=0;J[c+1028>>2]=1075314688; -J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1073741824;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1508>>2]=24;J[c+1504>>2]=c+976;b=J[c+1508>>2];J[c+72>>2]=J[c+1504>>2];J[c+76>>2]=b;V:{d=jd(c+1584|0,c+72|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break V;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 11:b=c+1448|0;J[b>>2]=0;J[b+ -4>>2]=1075707904;b=c+1432|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1416|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1400|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1384|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1368|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1352|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1336|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1320|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1304|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1256|0;J[b>>2]=0;J[b+ -4>>2]=1074921472;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1064|0;J[b>>2]=0;J[b+ -4>>2]=1073217536;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1440>>2]=0;J[c+1444>>2]=1075576832;J[c+1424>>2]=0;J[c+1428>>2]=1075052544;J[c+1408>>2]=0;J[c+1412>>2]=1074266112;J[c+1392>>2]=0;J[c+1396>>2]=1075314688;J[c+1376>>2]=0;J[c+1380>>2]=1074790400;J[c+1360>>2]=0;J[c+1364>>2]=1073741824;J[c+1344>>2]=0;J[c+1348>>2]=0;J[c+1328>>2]=0;J[c+1332>>2]=1075576832;J[c+1312>>2]=0;J[c+1316>> -2]=1075052544;J[c+1296>>2]=0;J[c+1300>>2]=1074266112;J[c+1280>>2]=0;J[c+1284>>2]=1072693248;J[c+1264>>2]=0;J[c+1268>>2]=1075314688;J[c+1248>>2]=0;J[c+1252>>2]=1074790400;J[c+1232>>2]=0;J[c+1236>>2]=1073741824;J[c+1216>>2]=0;J[c+1220>>2]=0;J[c+1200>>2]=0;J[c+1204>>2]=1075576832;J[c+1184>>2]=0;J[c+1188>>2]=1074266112;J[c+1168>>2]=0;J[c+1172>>2]=1072693248;J[c+1152>>2]=0;J[c+1156>>2]=1075314688;J[c+1136>>2]=0;J[c+1140>>2]=1074790400;J[c+1120>>2]=0;J[c+1124>>2]=1073741824;J[c+1104>>2]=0;J[c+1108>>2]= -0;J[c+1088>>2]=0;J[c+1092>>2]=1075576832;J[c+1072>>2]=0;J[c+1076>>2]=1075052544;J[c+1056>>2]=0;J[c+1060>>2]=1074266112;J[c+1040>>2]=0;J[c+1044>>2]=1072693248;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1073741824;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1500>>2]=30;J[c+1496>>2]=c+976;b=J[c+1500>>2];J[c+80>>2]=J[c+1496>>2];J[c+84>>2]=b;W:{d=jd(c+1584|0,c+80|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]= -0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break W;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 12:b=c+1480|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1464|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1448|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1432|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1416|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1400|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1384|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1368|0;J[b>>2]=0;J[b+4>>2]=1075445760; -b=c+1352|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1336|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1320|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1304|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074528256; -b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1472>>2]=0;J[c+1476>>2]=1075576832;J[c+1456>> -2]=0;J[c+1460>>2]=1075052544;J[c+1440>>2]=0;J[c+1444>>2]=1074266112;J[c+1424>>2]=0;J[c+1428>>2]=1072693248;J[c+1408>>2]=0;J[c+1412>>2]=1075314688;J[c+1392>>2]=0;J[c+1396>>2]=1074790400;J[c+1376>>2]=0;J[c+1380>>2]=1073741824;J[c+1360>>2]=0;J[c+1364>>2]=0;J[c+1344>>2]=0;J[c+1348>>2]=1075576832;J[c+1328>>2]=0;J[c+1332>>2]=1075052544;J[c+1312>>2]=0;J[c+1316>>2]=1074266112;J[c+1296>>2]=0;J[c+1300>>2]=1072693248;J[c+1280>>2]=0;J[c+1284>>2]=1075314688;J[c+1264>>2]=0;J[c+1268>>2]=1074790400;J[c+1248>>2]= -0;J[c+1252>>2]=1073741824;J[c+1232>>2]=0;J[c+1236>>2]=0;J[c+1216>>2]=0;J[c+1220>>2]=1075576832;J[c+1200>>2]=0;J[c+1204>>2]=1075052544;J[c+1184>>2]=0;J[c+1188>>2]=1074266112;J[c+1168>>2]=0;J[c+1172>>2]=1072693248;J[c+1152>>2]=0;J[c+1156>>2]=1075314688;J[c+1136>>2]=0;J[c+1140>>2]=1074790400;J[c+1120>>2]=0;J[c+1124>>2]=1073741824;J[c+1104>>2]=0;J[c+1108>>2]=0;J[c+1088>>2]=0;J[c+1092>>2]=1075576832;J[c+1072>>2]=0;J[c+1076>>2]=1075052544;J[c+1056>>2]=0;J[c+1060>>2]=1074266112;J[c+1040>>2]=0;J[c+1044>> -2]=1072693248;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1073741824;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1492>>2]=32;J[c+1488>>2]=c+976;b=J[c+1492>>2];J[c+88>>2]=J[c+1488>>2];J[c+92>>2]=b;X:{d=jd(c+1584|0,c+88|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break X;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b; -Kb(b);break L}break b;case 13:b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1074266112;b=c+1112| -0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075576832;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1200>>2]=0;J[c+1204>>2]=1075314688;J[c+1168>>2]=0;J[c+ -1172>>2]=1073741824;J[c+1136>>2]=0;J[c+1140>>2]=1074790400;J[c+1104>>2]=0;J[c+1108>>2]=0;J[c+1072>>2]=0;J[c+1076>>2]=1075314688;J[c+1040>>2]=0;J[c+1044>>2]=1073741824;J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1074266112;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+972>>2]=8;J[c+968>>2]=c+976;b=J[c+972>>2];J[c+104>>2]=J[c+968>>2];J[c+108>>2]=b;d=xd(c+1584|0,c+104|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f= -J[195395];J[195395]=0;if((f|0)==1)break b;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1112| -0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+1248>>2]=0;J[c+1252>>2]=1075576832;J[c+1232>>2]=0;J[c+1236>>2]=1075052544;J[c+1216>>2]=0;J[c+1220>>2]=1074266112;J[c+1200>>2]=0;J[c+1204>>2]=1072693248;J[c+1184>>2]=0;J[c+1188>> -2]=0;J[c+1168>>2]=0;J[c+1172>>2]=1075576832;J[c+1152>>2]=0;J[c+1156>>2]=1075052544;J[c+1136>>2]=0;J[c+1140>>2]=1074266112;J[c+1120>>2]=0;J[c+1124>>2]=1072693248;J[c+1104>>2]=0;J[c+1108>>2]=1075576832;J[c+1088>>2]=0;J[c+1092>>2]=1075052544;J[c+1072>>2]=0;J[c+1076>>2]=1074266112;J[c+1056>>2]=0;J[c+1060>>2]=1072693248;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1024>>2]=0;J[c+1028>>2]=1075576832;J[c+1008>>2]=0;J[c+1012>>2]=1075052544;J[c+992>>2]=0;J[c+996>>2]=1074266112;J[c+984>>2]=0;J[c+988>>2]=1073217536;J[c+ -976>>2]=0;J[c+980>>2]=1072693248;J[c+964>>2]=18;J[c+960>>2]=c+976;b=J[c+964>>2];J[c+96>>2]=J[c+960>>2];J[c+100>>2]=b;Y:{d=jd(c+1584|0,c+96|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break Y;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 14:b=c+1480|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1472|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1464|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1448| -0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1440|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1432|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1416|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1408|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1400|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1384|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1376|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1368|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1352|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1344|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1336|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1320| -0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1312|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1304|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1280|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1248|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1192| -0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1064| -0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1456>>2]=0;J[c+1460>>2]=1074266112;J[c+1424>>2]=0;J[c+1428>>2]=0;J[c+1392>>2]=0;J[c+1396>>2]=1075052544;J[c+1360>>2]=0;J[c+1364>>2]=1072693248;J[c+1328>>2]=0;J[c+1332>>2]=1074266112;J[c+1296>>2]=0;J[c+1300>>2]=0;J[c+1264>> -2]=0;J[c+1268>>2]=1075052544;J[c+1232>>2]=0;J[c+1236>>2]=1072693248;J[c+1200>>2]=0;J[c+1204>>2]=1074266112;J[c+1168>>2]=0;J[c+1172>>2]=0;J[c+1136>>2]=0;J[c+1140>>2]=1075052544;J[c+1104>>2]=0;J[c+1108>>2]=1072693248;J[c+1072>>2]=0;J[c+1076>>2]=1074266112;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=1075052544;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1072693248;J[c+956>>2]=16;J[c+952>>2]=c+976;b=J[c+956>>2];J[c+120>>2]=J[c+952>> -2];J[c+124>>2]=b;d=xd(c+1584|0,c+120|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075707904;J[c+1016>>2]=0;J[c+1020>>2]=1075183616;J[c+1E3>>2]=0;J[c+1004>>2]=1074528256;J[c+948>>2]=4;J[c+944>>2]=c+976;b=J[c+948>>2];J[c+112>>2]=J[c+944>>2];J[c+116>>2]=b;J[c+1024>>2]=0;J[c+1028>>2]=1075576832;J[c+1008>>2]=0;J[c+ -1012>>2]=1075576832;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1073217536;J[c+976>>2]=0;J[c+980>>2]=1075576832;Z:{d=jd(c+1584|0,c+112|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break Z;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 15:b=c+1352|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1344|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1336|0;J[b>>2]=0;J[b+4>>2]=1075707904; -b=c+1320|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1312|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1304|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1280|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1248|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1074921472; -b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074003968; -b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1328>>2]=0;J[c+1332>>2]=0;J[c+1296>>2]=0;J[c+1300>>2]=1074266112;J[c+1264>>2]=0;J[c+1268>>2]=0;J[c+1232>>2]=0;J[c+1236>>2]=0;J[c+1200>>2]=0;J[c+1204>>2]=1075052544;J[c+1168>>2]=0;J[c+1172>>2]=1072693248;J[c+1136>> -2]=0;J[c+1140>>2]=0;J[c+1104>>2]=0;J[c+1108>>2]=1074266112;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=1075052544;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1072693248;J[c+940>>2]=12;J[c+936>>2]=c+976;b=J[c+940>>2];J[c+136>>2]=J[c+936>>2];J[c+140>>2]=b;d=xd(c+1584|0,c+136|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break b; -b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}J[c+1E3>>2]=0;J[c+1004>>2]=1075445760;J[c+932>>2]=2;J[c+928>>2]=c+976;b=J[c+932>>2];J[c+128>>2]=J[c+928>>2];J[c+132>>2]=b;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1074003968;J[c+976>>2]=0;J[c+980>>2]=1075576832;_:{d=jd(c+1584|0,c+128|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break _;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L; -J[d+4>>2]=b;Kb(b);break L}break b;case 16:b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1280|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1248|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1075838976; -b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1074266112;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075838976; -b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1264>>2]=0;J[c+1268>>2]=0;J[c+1232>>2]=0;J[c+1236>>2]=0;J[c+1200>>2]=0;J[c+1204>>2]=0;J[c+1168>>2]=0;J[c+1172>>2]=1074790400;J[c+1136>>2]=0;J[c+1140>>2]=0;J[c+1104>>2]=0;J[c+1108>>2]=0;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]= -0;J[c+996>>2]=1074266112;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+924>>2]=10;J[c+920>>2]=c+976;b=J[c+924>>2];J[c+144>>2]=J[c+920>>2];J[c+148>>2]=b;$:{d=xd(c+1584|0,c+144|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break $;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 17:b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1248|0;J[b>>2]=0;J[b+ -4>>2]=1075838976;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1120|0;J[b>>2]=0;J[b+ -4>>2]=1075838976;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1232>>2]=0;J[c+1236>>2]=0; -J[c+1200>>2]=0;J[c+1204>>2]=0;J[c+1168>>2]=0;J[c+1172>>2]=0;J[c+1136>>2]=0;J[c+1140>>2]=1072693248;J[c+1104>>2]=0;J[c+1108>>2]=1075052544;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+916>>2]=9;J[c+912>>2]=c+976;b=J[c+916>>2];J[c+152>>2]=J[c+912>>2];J[c+156>>2]=b;aa:{d=xd(c+1584|0,c+152|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0; -fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break aa;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 18:b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074921472; -b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1216>>2]=0;J[c+1220>>2]=1075576832;J[c+1200>>2]=0;J[c+1204>>2]=1074266112;J[c+1184>>2]=0;J[c+1188>>2]=1075314688;J[c+1168>>2]=0;J[c+1172>>2]=1073741824;J[c+1152>>2]=0;J[c+1156>>2]=1075052544;J[c+1136>>2]=0;J[c+ -1140>>2]=1072693248;J[c+1120>>2]=0;J[c+1124>>2]=1074790400;J[c+1104>>2]=0;J[c+1108>>2]=0;J[c+1088>>2]=0;J[c+1092>>2]=1075576832;J[c+1072>>2]=0;J[c+1076>>2]=1074266112;J[c+1056>>2]=0;J[c+1060>>2]=1075314688;J[c+1040>>2]=0;J[c+1044>>2]=1073741824;J[c+1024>>2]=0;J[c+1028>>2]=1075052544;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+908>>2]=16;J[c+904>>2]=c+976;b=J[c+908>>2];J[c+160>>2]=J[c+904>>2];J[c+164>> -2]=b;ba:{d=jd(c+1584|0,c+160|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break ba;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 19:b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075183616; -b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1216>>2]=0;J[c+1220>>2]=1074790400;J[c+1200>>2]=0;J[c+1204>>2]=0;J[c+1184>>2]=0;J[c+1188>>2]=1075052544;J[c+1168>>2]=0;J[c+1172>> -2]=1072693248;J[c+1152>>2]=0;J[c+1156>>2]=1075314688;J[c+1136>>2]=0;J[c+1140>>2]=1073741824;J[c+1120>>2]=0;J[c+1124>>2]=1075576832;J[c+1104>>2]=0;J[c+1108>>2]=1074266112;J[c+1088>>2]=0;J[c+1092>>2]=1074790400;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1056>>2]=0;J[c+1060>>2]=1075052544;J[c+1040>>2]=0;J[c+1044>>2]=1072693248;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1073741824;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1074266112; -J[c+900>>2]=16;J[c+896>>2]=c+976;b=J[c+900>>2];J[c+168>>2]=J[c+896>>2];J[c+172>>2]=b;ca:{d=jd(c+1584|0,c+168|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break ca;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 20:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075707904;J[c+1016>>2]=0;J[c+1020>>2]=1075707904;J[c+1E3>>2]=0;J[c+1004>>2]=1074528256;J[c+892>>2]=4;J[c+1024>>2]=0;J[c+1028>>2]=1075576832; -J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1074528256;J[c+976>>2]=0;J[c+980>>2]=0;J[c+888>>2]=c+976;b=J[c+892>>2];J[c+184>>2]=J[c+888>>2];J[c+188>>2]=b;d=jd(c+1584|0,c+184|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1416|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1408|0;J[b>>2]=0;J[b+4>>2]=1075052544; -b=c+1400|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1384|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1376|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1368|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1352|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1344|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1336|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1320|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1312|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1304|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1280|0;J[b>>2]=0;J[b+4>>2]=1074266112; -b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1248|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075838976; -b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1074266112;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075314688; -J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1392>>2]=0;J[c+1396>>2]=1074266112;J[c+1360>>2]=0;J[c+1364>>2]=1075314688;J[c+1328>>2]=0;J[c+1332>>2]=1073741824;J[c+1296>>2]=0;J[c+1300>>2]=1075052544;J[c+1264>>2]=0;J[c+1268>>2]=1072693248;J[c+1232>>2]=0;J[c+1236>>2]=1074790400;J[c+1200>>2]=0;J[c+1204>>2]=0;J[c+1168>>2]=0;J[c+1172>>2]=1074266112;J[c+1136>>2]=0;J[c+1140>>2]=1075314688;J[c+1104>>2]=0;J[c+1108>>2]=1073741824;J[c+1072>>2]=0;J[c+1076>>2]=1075052544;J[c+ -1040>>2]=0;J[c+1044>>2]=1072693248;J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1073741824;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+884>>2]=14;J[c+880>>2]=c+976;b=J[c+884>>2];J[c+176>>2]=J[c+880>>2];J[c+180>>2]=b;da:{d=xd(c+1584|0,c+176|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break da;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b; -case 21:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075707904;J[c+1016>>2]=0;J[c+1020>>2]=1075707904;J[c+1E3>>2]=0;J[c+1004>>2]=1074528256;J[c+876>>2]=4;J[c+1024>>2]=0;J[c+1028>>2]=1075576832;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1074528256;J[c+976>>2]=0;J[c+980>>2]=0;J[c+872>>2]=c+976;b=J[c+876>>2];J[c+200>>2]=J[c+872>>2];J[c+204>>2]=b;d=jd(c+1584|0,c+200|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]= -0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1416|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1408|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1400|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1384|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1376|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1368|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1352|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1344|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1336|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1320|0;J[b>>2]=0;J[b+4>> -2]=1075183616;b=c+1312|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1304|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1280|0;J[b>>2]=0;J[b+4>>2]=1074266112;b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1248|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1192|0;J[b>>2]=0;J[b+ -4>>2]=1074528256;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1064|0;J[b>>2]=0;J[b+ -4>>2]=1073217536;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1074266112;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1392>>2]=0;J[c+1396>>2]=1074266112;J[c+1360>>2]=0;J[c+1364>>2]=1074790400;J[c+1328>>2]=0;J[c+1332>>2]=0;J[c+1296>>2]=0;J[c+1300>>2]=1075052544;J[c+1264>>2]=0;J[c+1268>>2]=1072693248;J[c+1232>>2]=0;J[c+1236>>2]=1075314688;J[c+1200>>2]=0; -J[c+1204>>2]=1073741824;J[c+1168>>2]=0;J[c+1172>>2]=1074266112;J[c+1136>>2]=0;J[c+1140>>2]=1074790400;J[c+1104>>2]=0;J[c+1108>>2]=0;J[c+1072>>2]=0;J[c+1076>>2]=1075052544;J[c+1040>>2]=0;J[c+1044>>2]=1072693248;J[c+1008>>2]=0;J[c+1012>>2]=1075314688;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1073741824;J[c+868>>2]=14;J[c+864>>2]=c+976;b=J[c+868>>2];J[c+192>>2]=J[c+864>>2];J[c+196>>2]=b;ea:{d=xd(c+1584|0,c+192|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!= -(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ea;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 22:J[c+1E3>>2]=0;J[c+1004>>2]=1075707904;J[c+860>>2]=2;J[c+992>>2]=0;J[c+996>>2]=0;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1075576832;J[c+856>>2]=c+976;b=J[c+860>>2];J[c+216>>2]=J[c+856>>2];J[c+220>>2]=b;d=jd(c+1584|0,c+216|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]= -0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1144|0;J[b>>2]=0;J[b+4>>2]= -1075183616;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074266112;J[c+1016>>2]=0;J[c+1020>>2]= -1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1200>>2]=0;J[c+1204>>2]=1075314688;J[c+1168>>2]=0;J[c+1172>>2]=1075052544;J[c+1136>>2]=0;J[c+1140>>2]=1074790400;J[c+1104>>2]=0;J[c+1108>>2]=1074266112;J[c+1072>>2]=0;J[c+1076>>2]=1073741824;J[c+1040>>2]=0;J[c+1044>>2]=1072693248;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1073741824;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+852>>2]=8;J[c+848>>2]=c+976;b=J[c+852>>2];J[c+208>>2]=J[c+848>>2];J[c+212>>2]=b;fa:{d= -xd(c+1584|0,c+208|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break fa;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 23:J[c+1E3>>2]=0;J[c+1004>>2]=1075707904;J[c+844>>2]=2;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+840>>2]=c+976;b=J[c+844>>2];J[c+232>>2]=J[c+840>>2];J[c+236>>2]=b;d=jd(c+1584|0,c+232|0); -b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1074266112;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1152|0;J[b>> -2]=0;J[b+4>>2]=1074790400;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1024|0;J[b>> -2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1200>>2]=0;J[c+1204>>2]=0;J[c+1168>>2]=0;J[c+1172>>2]=0;J[c+1136>>2]=0;J[c+1140>>2]=1072693248;J[c+1104>>2]=0;J[c+1108>>2]=1073741824;J[c+1072>>2]=0;J[c+1076>>2]=1074266112;J[c+1040>>2]=0;J[c+1044>>2]=1074790400;J[c+1008>>2]=0;J[c+1012>>2]=1075052544;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1075314688;J[c+836>>2]=8;J[c+832>>2]=c+976; -b=J[c+836>>2];J[c+224>>2]=J[c+832>>2];J[c+228>>2]=b;ga:{d=xd(c+1584|0,c+224|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ga;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 24:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074921472;J[c+1016>>2]=0;J[c+1020>>2]=0;J[c+1E3>>2]=0;J[c+1004>>2]=1075838976;J[c+828>>2]=2;J[c+1008>>2]=0;J[c+1012>> -2]=1074921472;J[c+992>>2]=0;J[c+996>>2]=1071644672;J[c+984>>2]=0;J[c+988>>2]=0;J[c+976>>2]=0;J[c+980>>2]=1071644672;J[c+824>>2]=c+976;b=J[c+828>>2];J[c+240>>2]=J[c+824>>2];J[c+244>>2]=b;ha:{d=xd(c+1584|0,c+240|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ha;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 25:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1024|0; -J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1074921472;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+820>>2]=2;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+816>>2]=c+976;b=J[c+820>>2];J[c+248>>2]=J[c+816>>2];J[c+252>>2]=b;ia:{d=xd(c+1584|0,c+248|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ia;b=b+32|0;if((e|0)!=(b| -0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 26:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=0;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=0;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074003968;J[c+1016>>2]=0;J[c+1020>>2]=0;J[c+1E3>>2]=0;J[c+1004>>2]=1075838976;J[c+812>>2]=4;J[c+1072>>2]=0;J[c+ -1076>>2]=1075445760;J[c+1040>>2]=0;J[c+1044>>2]=1074921472;J[c+1008>>2]=0;J[c+1012>>2]=1074003968;J[c+992>>2]=0;J[c+996>>2]=1071644672;J[c+984>>2]=0;J[c+988>>2]=0;J[c+976>>2]=0;J[c+980>>2]=1071644672;J[c+808>>2]=c+976;b=J[c+812>>2];J[c+256>>2]=J[c+808>>2];J[c+260>>2]=b;ja:{d=xd(c+1584|0,c+256|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ja;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b; -Kb(b);break L}break b;case 27:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+804>>2]=4;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1040>>2]=0; -J[c+1044>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+800>>2]=c+976;b=J[c+804>>2];J[c+264>>2]=J[c+800>>2];J[c+268>>2]=b;ka:{d=xd(c+1584|0,c+264|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ka;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 28:i=O[a+8>>3];O[a+8>>3]= -i+i;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074921472;J[c+1016>>2]=0;J[c+1020>>2]=0;J[c+1E3>>2]=0;J[c+1004>>2]=1075838976;J[c+796>>2]=2;J[c+1008>>2]=0;J[c+1012>>2]=1074921472;J[c+992>>2]=0;J[c+996>>2]=1071644672;J[c+984>>2]=0;J[c+988>>2]=0;J[c+976>>2]=0;J[c+980>>2]=1071644672;J[c+792>>2]=c+976;b=J[c+796>>2];J[c+272>>2]=J[c+792>>2];J[c+276>>2]=b;la:{d=xd(c+1584|0,c+272|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395]; -J[195395]=0;if((f|0)==1)break la;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}O[a+8>>3]=O[a+8>>3]*.5;break L}break b;case 29:i=O[a+8>>3];O[a+8>>3]=i+i;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1074921472;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+788>>2]=2;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+784>>2]=c+ -976;b=J[c+788>>2];J[c+280>>2]=J[c+784>>2];J[c+284>>2]=b;ma:{d=xd(c+1584|0,c+280|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ma;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}O[a+8>>3]=O[a+8>>3]*.5;break L}break b;case 30:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472; -b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074528256;J[c+1016>>2]=0;J[c+1020>>2]=1074528256;J[c+1E3>>2]=0;J[c+1004>>2]=1074003968;J[c+780>>2]=8;J[c+1088>>2]=0;J[c+1092>>2]=1075576832;J[c+1072>>2]=0;J[c+1076>>2]=1074266112;J[c+1056>>2]=0;J[c+1060>>2]=1075314688;J[c+1040>>2]=0;J[c+1044>>2]=1073741824;J[c+1024>>2]=0;J[c+1028>>2]=1075052544;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1074003968;J[c+976>>2]=0;J[c+980>>2]=0;J[c+776>>2]=c+976;b=J[c+780>>2]; -J[c+288>>2]=J[c+776>>2];J[c+292>>2]=b;na:{d=jd(c+1584|0,c+288|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break na;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 31:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074528256; -J[c+1016>>2]=0;J[c+1020>>2]=1074528256;J[c+1E3>>2]=0;J[c+1004>>2]=1074003968;J[c+772>>2]=8;J[c+1088>>2]=0;J[c+1092>>2]=1074790400;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1056>>2]=0;J[c+1060>>2]=1075052544;J[c+1040>>2]=0;J[c+1044>>2]=1072693248;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1073741824;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1074003968;J[c+976>>2]=0;J[c+980>>2]=1074266112;J[c+768>>2]=c+976;b=J[c+772>>2];J[c+296>>2]=J[c+768>>2];J[c+300>>2]=b;oa:{d= -jd(c+1584|0,c+296|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break oa;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 32:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1074921472;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+764>>2]=2;J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+ -984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+760>>2]=c+976;b=J[c+764>>2];J[c+304>>2]=J[c+760>>2];J[c+308>>2]=b;pa:{d=xd(c+1584|0,c+304|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break pa;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 33:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074921472;J[c+1016>>2]=0;J[c+1020>> -2]=1074790400;J[c+1E3>>2]=0;J[c+1004>>2]=1074790400;J[c+756>>2]=2;J[c+1008>>2]=0;J[c+1012>>2]=1074921472;J[c+992>>2]=0;J[c+996>>2]=1071644672;J[c+984>>2]=0;J[c+988>>2]=0;J[c+976>>2]=0;J[c+980>>2]=1071644672;J[c+752>>2]=c+976;b=J[c+756>>2];J[c+312>>2]=J[c+752>>2];J[c+316>>2]=b;qa:{d=xd(c+1584|0,c+312|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break qa;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+ -4>>2]=b;Kb(b);break L}break b;case 34:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074528256;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+748>>2]=8;J[c+1088>>2]=0;J[c+1092>>2]=1075052544;J[c+1072>>2]=0;J[c+1076>>2]=1073741824;J[c+1056>>2]=0;J[c+1060>>2]=1075576832;J[c+1040>>2]=0;J[c+1044>>2]=1074266112;J[c+1024>> -2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+744>>2]=c+976;b=J[c+748>>2];J[c+320>>2]=J[c+744>>2];J[c+324>>2]=b;ra:{d=jd(c+1584|0,c+320|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break ra;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 35:i=O[a+8>> -3];O[a+8>>3]=i+i;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1073741824;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>> -2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1104>>2]=0;J[c+1108>>2]=1074790400;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1040>>2]=0;J[c+1044>>2]=1074266112;J[c+1008>>2]=0;J[c+1012>>2]=1075314688;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1073741824;J[c+740>>2]=5;J[c+736>>2]=c+976;b=J[c+740>>2];J[c+328>>2]=J[c+736>>2];J[c+332>>2]=b;sa:{d=xd(c+1584|0,c+328|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16| -0);f=J[195395];J[195395]=0;if((f|0)==1)break sa;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}O[a+8>>3]=O[a+8>>3]*.5;break L}break b;case 36:b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968; -b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1152>>2]=0;J[c+1156>>2]=1075052544;J[c+1136>>2]=0;J[c+1140>>2]=1073741824;J[c+1120>>2]=0;J[c+1124>>2]=1075314688;J[c+1104>>2]=0;J[c+1108>>2]=1072693248;J[c+1088>>2]=0;J[c+1092>>2]=1075576832;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1056>>2]=0;J[c+1060>>2]=1075052544;J[c+1040>>2]=0;J[c+1044>>2]=1073741824;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+ -992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+732>>2]=12;J[c+728>>2]=c+976;b=J[c+732>>2];J[c+344>>2]=J[c+728>>2];J[c+348>>2]=b;d=jd(c+1584|0,c+344|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075052544;J[c+1016>>2]=0;J[c+ -1020>>2]=1075707904;J[c+1E3>>2]=0;J[c+1004>>2]=1074528256;J[c+724>>2]=2;J[c+720>>2]=c+976;b=J[c+724>>2];J[c+336>>2]=J[c+720>>2];J[c+340>>2]=b;J[c+1008>>2]=0;J[c+1012>>2]=1074266112;J[c+992>>2]=0;J[c+996>>2]=1075052544;J[c+984>>2]=0;J[c+988>>2]=1074528256;J[c+976>>2]=0;J[c+980>>2]=1074266112;ta:{d=xd(c+1584|0,c+336|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ta;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L; -J[d+4>>2]=b;Kb(b);break L}break b;case 37:b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075183616;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+716>>2]=6;J[c+1056>>2]=0;J[c+1060>>2]=1075576832;J[c+1040>>2]=0;J[c+1044>>2]=1074790400;J[c+1024>>2]=0;J[c+1028>>2]=1072693248;J[c+1008>>2]=0;J[c+1012>>2]=1075576832;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1073217536;J[c+976>>2]= -0;J[c+980>>2]=1072693248;J[c+712>>2]=c+976;b=J[c+716>>2];J[c+360>>2]=J[c+712>>2];J[c+364>>2]=b;d=jd(c+1584|0,c+360|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1056|0;J[b>>2]=0; -J[b+4>>2]=1075576832;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074790400;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1072>>2]=0;J[c+1076>>2]=1073741824;J[c+1040>>2]=0;J[c+1044>>2]=1075052544;J[c+1008>>2]=0;J[c+1012>>2]=1073741824;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1075052544;J[c+708>>2]=4;J[c+704>>2]=c+976;b=J[c+708>>2];J[c+ -352>>2]=J[c+704>>2];J[c+356>>2]=b;ua:{d=xd(c+1584|0,c+352|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ua;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 38:b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075183616; -b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074528256;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+1120>>2]=0;J[c+1124>>2]=1075576832;J[c+1104>>2]=0;J[c+1108>>2]=0;J[c+1088>>2]=0;J[c+1092>>2]=1075314688;J[c+1072>>2]=0;J[c+1076>>2]=1072693248;J[c+1056>>2]=0;J[c+1060>>2]=1075052544;J[c+1040>>2]=0;J[c+1044>>2]=1073741824;J[c+1024>>2]=0;J[c+1028>>2]=1074790400;J[c+1008>>2]=0;J[c+1012>>2]=1075052544;J[c+992>>2]=0;J[c+996>>2]=1075314688; -J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1075576832;J[c+700>>2]=10;J[c+696>>2]=c+976;b=J[c+700>>2];J[c+368>>2]=J[c+696>>2];J[c+372>>2]=b;va:{d=jd(c+1584|0,c+368|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break va;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}J[c+984>>2]=0;J[c+988>>2]=1074921472;J[c+976>>2]=0;J[c+980>>2]=1074266112;J[c+1592>>2]=0;J[c+1596>>2]=1074921472;J[c+1584>> -2]=0;J[c+1588>>2]=1075052544;ln(a,c+976|0,c+1584|0);break L}break b;case 39:b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1071644672;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+692>>2]= -4;J[c+1072>>2]=0;J[c+1076>>2]=1074921472;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=1071644672;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+688>>2]=c+976;b=J[c+692>>2];J[c+376>>2]=J[c+688>>2];J[c+380>>2]=b;wa:{d=xd(c+1584|0,c+376|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break wa;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L; -J[d+4>>2]=b;Kb(b);break L}break b;case 40:b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074528256; -b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1264>>2]=0;J[c+1268>>2]=1075576832;J[c+1248>>2]=0;J[c+1252>>2]=1075052544;J[c+1232>>2]=0;J[c+1236>>2]=1072693248;J[c+1216>>2]=0;J[c+1220>>2]=1075314688;J[c+1200>>2]=0;J[c+1204>>2]=1073741824;J[c+1184>>2]=0;J[c+ -1188>>2]=1074266112;J[c+1168>>2]=0;J[c+1172>>2]=1072693248;J[c+1152>>2]=0;J[c+1156>>2]=1074790400;J[c+1136>>2]=0;J[c+1140>>2]=0;J[c+1120>>2]=0;J[c+1124>>2]=1075576832;J[c+1104>>2]=0;J[c+1108>>2]=1075052544;J[c+1088>>2]=0;J[c+1092>>2]=1072693248;J[c+1072>>2]=0;J[c+1076>>2]=1075314688;J[c+1056>>2]=0;J[c+1060>>2]=1073741824;J[c+1040>>2]=0;J[c+1044>>2]=1075052544;J[c+1024>>2]=0;J[c+1028>>2]=1074266112;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]= -1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+684>>2]=19;J[c+680>>2]=c+976;b=J[c+684>>2];J[c+384>>2]=J[c+680>>2];J[c+388>>2]=b;xa:{d=jd(c+1584|0,c+384|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break xa;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 41:b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1074528256; -b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+ -1216>>2]=0;J[c+1220>>2]=1075576832;J[c+1200>>2]=0;J[c+1204>>2]=1075052544;J[c+1184>>2]=0;J[c+1188>>2]=1074266112;J[c+1168>>2]=0;J[c+1172>>2]=1072693248;J[c+1152>>2]=0;J[c+1156>>2]=1075314688;J[c+1136>>2]=0;J[c+1140>>2]=1074790400;J[c+1120>>2]=0;J[c+1124>>2]=1073741824;J[c+1104>>2]=0;J[c+1108>>2]=0;J[c+1088>>2]=0;J[c+1092>>2]=1075576832;J[c+1072>>2]=0;J[c+1076>>2]=1075052544;J[c+1056>>2]=0;J[c+1060>>2]=1074266112;J[c+1040>>2]=0;J[c+1044>>2]=1072693248;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>> -2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1073741824;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+676>>2]=16;J[c+672>>2]=c+976;b=J[c+676>>2];J[c+400>>2]=J[c+672>>2];J[c+404>>2]=b;d=jd(c+1584|0,c+400|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1088|0;J[b>>2]=0;J[b+4>> -2]=1074790400;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074790400;J[c+1016>>2]=0;J[c+1020>>2]=1075183616;J[c+1E3>>2]=0;J[c+1004>>2]=1074921472;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1074921472; -J[c+976>>2]=0;J[c+980>>2]=0;J[c+668>>2]=4;J[c+664>>2]=c+976;b=J[c+668>>2];J[c+392>>2]=J[c+664>>2];J[c+396>>2]=b;ya:{d=xd(c+1584|0,c+392|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break ya;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 42:b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075183616;J[c+ -1016>>2]=0;J[c+1020>>2]=1074528256;J[c+1E3>>2]=0;J[c+1004>>2]=1074003968;J[c+660>>2]=6;J[c+1056>>2]=0;J[c+1060>>2]=0;J[c+1040>>2]=0;J[c+1044>>2]=1075576832;J[c+1024>>2]=0;J[c+1028>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=1074266112;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1073217536;J[c+976>>2]=0;J[c+980>>2]=1074266112;J[c+656>>2]=c+976;b=J[c+660>>2];J[c+408>>2]=J[c+656>>2];J[c+412>>2]=b;za:{d=jd(c+1584|0,c+408|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a| -0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break za;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 43:b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+652>>2]=7;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1056>>2]=0;J[c+1060>>2]=0;J[c+1040>>2]=0;J[c+1044>> -2]=0;J[c+1024>>2]=0;J[c+1028>>2]=1075314688;J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1073741824;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+648>>2]=c+976;b=J[c+652>>2];J[c+416>>2]=J[c+648>>2];J[c+420>>2]=b;Aa:{d=jd(c+1584|0,c+416|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break Aa;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b; -case 44:b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074921472;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1074003968;J[c+644>>2]=6;J[c+1056>>2]=0;J[c+1060>>2]=1075314688;J[c+1040>>2]=0;J[c+1044>>2]=1073741824;J[c+1024>>2]=0;J[c+1028>>2]=1074790400;J[c+1008>>2]=0;J[c+1012>>2]=1075314688;J[c+992>>2]=0;J[c+996>>2]=1073741824;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+640>>2]=c+976; -b=J[c+644>>2];J[c+424>>2]=J[c+640>>2];J[c+428>>2]=b;Ba:{d=jd(c+1584|0,c+424|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break Ba;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 45:b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074003968;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+636>>2]=5;J[c+1040>>2]=0;J[c+1044>> -2]=1075314688;J[c+1024>>2]=0;J[c+1028>>2]=1074790400;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1075052544;J[c+984>>2]=0;J[c+988>>2]=1073217536;J[c+976>>2]=0;J[c+980>>2]=0;J[c+632>>2]=c+976;b=J[c+636>>2];J[c+440>>2]=J[c+632>>2];J[c+444>>2]=b;d=jd(c+1584|0,c+440|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1096|0;J[b>>2]=0; -J[b+4>>2]=1075838976;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074790400;J[c+1016>>2]=0;J[c+1020>>2]=1074528256;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1072>>2]=0;J[c+1076>>2]=1075707904;J[c+1040>>2]=0;J[c+1044>>2]=1074790400;J[c+1008>>2]=0;J[c+1012>>2]=1073741824; -J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1075314688;J[c+628>>2]=4;J[c+624>>2]=c+976;b=J[c+628>>2];J[c+432>>2]=J[c+624>>2];J[c+436>>2]=b;Ca:{d=xd(c+1584|0,c+432|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break Ca;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 46:b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075707904;J[c+ -1016>>2]=0;J[c+1020>>2]=1075707904;J[c+1E3>>2]=0;J[c+1004>>2]=1074528256;J[c+620>>2]=4;J[c+1024>>2]=0;J[c+1028>>2]=1075576832;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=1074528256;J[c+976>>2]=0;J[c+980>>2]=0;J[c+616>>2]=c+976;b=J[c+620>>2];J[c+456>>2]=J[c+616>>2];J[c+460>>2]=b;d=jd(c+1584|0,c+456|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue; -break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1288|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1280|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1272|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1248|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1074266112; -b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075576832; -b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074266112;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1264>>2]=0;J[c+1268>>2]=1074266112;J[c+1232>>2]=0;J[c+1236>>2]=0;J[c+1200>>2]=0;J[c+1204>>2]=1075052544;J[c+1168>>2]=0;J[c+1172>>2]=1072693248;J[c+1136>>2]=0;J[c+1140>>2]=0;J[c+1104>>2]=0;J[c+1108>>2]=1074266112;J[c+1072>>2]=0;J[c+1076>>2]=0;J[c+1040>>2]=0;J[c+1044>>2]=1075052544;J[c+1008>>2]= -0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+612>>2]=10;J[c+608>>2]=c+976;b=J[c+612>>2];J[c+448>>2]=J[c+608>>2];J[c+452>>2]=b;Da:{d=xd(c+1584|0,c+448|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break Da;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 47:b=c+1064|0;J[b>>2]=0;J[b+4>> -2]=1075183616;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074003968;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+604>>2]=6;J[c+1056>>2]=0;J[c+1060>>2]=0;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1024>>2]=0;J[c+1028>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=1075576832;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1073217536;J[c+976>>2]=0;J[c+980>>2]=0;J[c+600>>2]=c+976;b=J[c+604>>2];J[c+472>>2]=J[c+600>>2];J[c+476>>2]=b;d=jd(c+1584| -0,c+472|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1256|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1248|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1240|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1224|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1216|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1208|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075183616;b= -c+1184|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1074790400;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968; -b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1071644672;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1071644672;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1232>>2]=0;J[c+1236>>2]=0;J[c+1200>>2]=0;J[c+1204>>2]=0;J[c+1168>>2]=0;J[c+1172>>2]=1074266112;J[c+1136>>2]=0;J[c+1140>>2]=1075052544;J[c+1104>>2]=0;J[c+1108>>2]=1072693248;J[c+1072>>2]=0;J[c+1076>>2]=1074790400;J[c+1040>>2]=0;J[c+1044>>2]=1074790400;J[c+ -1008>>2]=0;J[c+1012>>2]=1075052544;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1072693248;J[c+596>>2]=9;J[c+592>>2]=c+976;b=J[c+596>>2];J[c+464>>2]=J[c+592>>2];J[c+468>>2]=b;Ea:{d=xd(c+1584|0,c+464|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break Ea;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 48:b=c+1096| -0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=0;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075838976;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1071644672;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=0;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1074921472;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+588>>2]=4;J[c+1072>>2]=0;J[c+1076>>2]=1074921472;J[c+1040>>2]=0;J[c+1044>>2]=1071644672;J[c+1008>>2]=0;J[c+1012>> -2]=0;J[c+992>>2]=0;J[c+996>>2]=1075838976;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+584>>2]=c+976;b=J[c+588>>2];J[c+480>>2]=J[c+584>>2];J[c+484>>2]=b;Fa:{d=xd(c+1584|0,c+480|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break Fa;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 49:i=O[a+8>>3];O[a+8>>3]=i+i;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1075707904; -b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074528256;J[c+1016>>2]=0;J[c+1020>>2]=1074528256;J[c+1E3>>2]=0;J[c+1004>>2]=-1075838976;J[c+580>>2]=6;J[c+1056>>2]=0;J[c+1060>>2]=1075576832;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1024>>2]=0;J[c+1028>>2]=1075576832;J[c+1008>>2]=0;J[c+1012>>2]=0;J[c+992>>2]=0;J[c+996>>2]=1075576832;J[c+984>>2]=0;J[c+988>>2]=-1075838976;J[c+976>>2]=0;J[c+980>>2]=0;J[c+576>>2]=c+976;b=J[c+580>>2];J[c+496>>2]=J[c+576>>2];J[c+500>>2]=b;d=jd(c+1584|0, -c+496|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1184|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1152|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+ -1120|0;J[b>>2]=0;J[b+4>>2]=1074266112;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1074266112;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=-1075838976;J[c+1168>> -2]=0;J[c+1172>>2]=1074266112;J[c+1136>>2]=0;J[c+1140>>2]=1075052544;J[c+1104>>2]=0;J[c+1108>>2]=1072693248;J[c+1072>>2]=0;J[c+1076>>2]=1074266112;J[c+1040>>2]=0;J[c+1044>>2]=1075052544;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1075052544;J[c+984>>2]=0;J[c+988>>2]=-1075838976;J[c+976>>2]=0;J[c+980>>2]=1074266112;J[c+572>>2]=7;J[c+568>>2]=c+976;b=J[c+572>>2];J[c+488>>2]=J[c+568>>2];J[c+492>>2]=b;Ga:{d=xd(c+1584|0,c+488|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]= -0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break Ga;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}O[a+8>>3]=O[a+8>>3]*.5;break L}break b;case 50:O[a+8>>3]=O[a+8>>3]*4;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075838976;J[c+1016>>2]=0;J[c+1020>>2]=1075052544;J[c+1E3>>2]=0;J[c+1004>>2]=1072693248;J[c+564>>2]=2;J[c+1008>>2]=0;J[c+1012>>2]=1074790400;J[c+992>>2]=0;J[c+996>>2]=1074790400;J[c+984>>2]=0;J[c+988>>2]=1072693248; -J[c+976>>2]=0;J[c+980>>2]=0;J[c+560>>2]=c+976;b=J[c+564>>2];J[c+504>>2]=J[c+560>>2];J[c+508>>2]=b;Ha:{d=xd(c+1584|0,c+504|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break Ha;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}O[a+8>>3]=O[a+8>>3]*.25;break L}break b;case 51:b=c+1192|0;J[b>>2]=0;J[b+4>>2]=1075707904;b=c+1176|0;J[b>>2]=0;J[b+4>>2]=1075445760;b=c+1160|0;J[b>>2]=0;J[b+4>>2]=1075445760; -b=c+1144|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1073217536;J[c+1016>>2]=0;J[c+1020>>2]=1073217536;J[c+1E3>>2]=0;J[c+1004>>2]=1071644672;J[c+1184>>2]=0;J[c+1188>>2]=1075576832;J[c+1168>>2]=0;J[c+1172>>2]=0;J[c+1152>>2]=0;J[c+ -1156>>2]=1075314688;J[c+1136>>2]=0;J[c+1140>>2]=1072693248;J[c+1120>>2]=0;J[c+1124>>2]=1075052544;J[c+1104>>2]=0;J[c+1108>>2]=1073741824;J[c+1088>>2]=0;J[c+1092>>2]=1074790400;J[c+1072>>2]=0;J[c+1076>>2]=1074266112;J[c+1056>>2]=0;J[c+1060>>2]=1074790400;J[c+1040>>2]=0;J[c+1044>>2]=1073741824;J[c+1024>>2]=0;J[c+1028>>2]=1075052544;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1075314688;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+556>>2]=14;J[c+552>>2]=c+ -976;b=J[c+556>>2];J[c+512>>2]=J[c+552>>2];J[c+516>>2]=b;Ia:{d=jd(c+1584|0,c+512|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break Ia;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 52:J[c+1E3>>2]=0;J[c+1004>>2]=1075445760;J[c+548>>2]=2;J[c+992>>2]=0;J[c+996>>2]=1074266112;J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=1074266112;J[c+544>>2]=c+976;b=J[c+548>> -2];J[c+528>>2]=J[c+544>>2];J[c+532>>2]=b;d=jd(c+1584|0,c+528|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;$(3134,a|0,b|0);f=J[195395];J[195395]=0;if((f|0)==1)break b;b=b+16|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(b){J[d+4>>2]=b;Kb(b)}b=c+1128|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1120|0;J[b>>2]=0;J[b+4>>2]=1075052544;b=c+1112|0;J[b>>2]=0;J[b+4>>2]=1075183616;b=c+1096|0;J[b>>2]=0;J[b+4>>2]=1074921472;b=c+1088|0;J[b>>2]=0;J[b+4>>2]=1075314688;b=c+1080|0;J[b>>2]=0;J[b+4>>2]=1074921472; -b=c+1064|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1056|0;J[b>>2]=0;J[b+4>>2]=1075576832;b=c+1048|0;J[b>>2]=0;J[b+4>>2]=1074528256;b=c+1032|0;J[b>>2]=0;J[b+4>>2]=1074003968;b=c+1024|0;J[b>>2]=0;J[b+4>>2]=1075314688;J[c+1016>>2]=0;J[c+1020>>2]=1074003968;J[c+1E3>>2]=0;J[c+1004>>2]=1073217536;J[c+1104>>2]=0;J[c+1108>>2]=1073741824;J[c+1072>>2]=0;J[c+1076>>2]=1072693248;J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+1008>>2]=0;J[c+1012>>2]=1072693248;J[c+992>>2]=0;J[c+996>>2]=1075052544;J[c+984>>2]=0;J[c+988>>2]=1073217536; -J[c+976>>2]=0;J[c+980>>2]=1073741824;J[c+540>>2]=5;J[c+536>>2]=c+976;b=J[c+540>>2];J[c+520>>2]=J[c+536>>2];J[c+524>>2]=b;Ja:{d=xd(c+1584|0,c+520|0);b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){J[195395]=0;fa(3135,a|0,b|0,b+16|0);f=J[195395];J[195395]=0;if((f|0)==1)break Ja;b=b+32|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}if(!b)break L;J[d+4>>2]=b;Kb(b);break L}break b;case 0:break M;default:break d}J[c+984>>2]=0;J[c+988>>2]=1071644672;J[c+976>>2]=0;J[c+980>>2]=0;J[c+1592>>2]=0;J[c+1596>>2]=1071644672; -J[c+1584>>2]=0;J[c+1588>>2]=1075838976;ln(a,c+976|0,c+1584|0)}b=Pb(32);J[c+976>>2]=b;J[c+980>>2]=7;J[c+984>>2]=-2147483640;J[b+24>>2]=J[106197];d=J[106196];J[b+16>>2]=J[106195];J[b+20>>2]=d;d=J[106194];J[b+8>>2]=J[106193];J[b+12>>2]=d;d=J[106192];J[b>>2]=J[106191];J[b+4>>2]=d;J[b+28>>2]=0;J[195395]=0;ia(3136,a+48|0,c+976|0,0,1);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+987|0]<0)Kb(J[c+976>>2]);b=1}xb=c+1600|0;return b|0}a=Z()|0;if(H[c+987|0]>=0)break a;Kb(J[c+976>>2]);break a}a=Z()|0;c=J[d>> -2];if(!c)break a;J[d+4>>2]=c;Kb(c)}ba(a|0);B()}function KI(){var a=0,b=0,c=0,d=0,e=0,f=0;a=xb-16|0;xb=a;a:{if(hb(a+12|0,a+8|0)|0)break a;b=Qb((J[a+12>>2]<<2)+4|0);J[194956]=b;if(!b)break a;b=Qb(J[a+8>>2]);if(b){J[J[194956]+(J[a+12>>2]<<2)>>2]=0;if(!(gb(J[194956],b|0)|0))break a}J[194956]=0}xb=a+16|0;b=xb-880|0;xb=b;I[b+8>>1]=16437;a=Pb(80);J[b+16>>2]=18;J[b+20>>2]=-2147483628;J[b+12>>2]=a;e=Mb(a,393288,72),f=0,J[e+72>>2]=f;J[195395]=0;I[b+24>>1]=16433;a=_(1078,80)|0;c=J[195395];J[195395]=0;b:{c:{d:{if((c| -0)!=1){J[b+28>>2]=a;J[b+32>>2]=17;J[b+36>>2]=-2147483628;e=Mb(a,395700,68),f=0,J[e+68>>2]=f;J[195395]=0;I[b+40>>1]=16435;a=_(1078,80)|0;c=J[195395];J[195395]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{if((c|0)!=1){J[b+44>>2]=a;J[b+48>>2]=19;J[b+52>>2]=-2147483628;e=Mb(a,395948,76),f=0,J[e+76>>2]=f;J[195395]=0;I[b+56>>1]=16434;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ba; -J[b+60>>2]=a;c=b- -64|0;J[c>>2]=19;J[c+4>>2]=-2147483628;e=Mb(a,396176,76),f=0,J[e+76>>2]=f;J[195395]=0;I[b+72>>1]=16436;a=_(1078,96)|0;c=J[195395];J[195395]=0;if((c|0)==1)break aa;J[b+76>>2]=a;J[b+80>>2]=21;J[b+84>>2]=-2147483624;e=Mb(a,396448,84),f=0,J[e+84>>2]=f;J[195395]=0;I[b+88>>1]=16387;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break $;J[b+92>>2]=a;J[b+96>>2]=15;J[b+100>>2]=-2147483632;J[a+56>>2]=J[99169];c=J[99168];J[a+48>>2]=J[99167];J[a+52>>2]=c;c=J[99166];J[a+40>>2]=J[99165];J[a+ -44>>2]=c;c=J[99164];J[a+32>>2]=J[99163];J[a+36>>2]=c;c=J[99162];J[a+24>>2]=J[99161];J[a+28>>2]=c;c=J[99160];J[a+16>>2]=J[99159];J[a+20>>2]=c;c=J[99158];J[a+8>>2]=J[99157];J[a+12>>2]=c;c=J[99156];J[a>>2]=J[99155];J[a+4>>2]=c;J[a+60>>2]=0;J[195395]=0;I[b+104>>1]=16386;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break _;J[b+108>>2]=a;J[b+112>>2]=17;J[b+116>>2]=-2147483628;e=Mb(a,396788,68),f=0,J[e+68>>2]=f;J[195395]=0;I[b+120>>1]=16388;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Z; -J[b+124>>2]=a;J[b+128>>2]=13;J[b+132>>2]=-2147483632;J[a+48>>2]=J[99249];c=J[99248];J[a+40>>2]=J[99247];J[a+44>>2]=c;c=J[99246];J[a+32>>2]=J[99245];J[a+36>>2]=c;c=J[99244];J[a+24>>2]=J[99243];J[a+28>>2]=c;c=J[99242];J[a+16>>2]=J[99241];J[a+20>>2]=c;c=J[99240];J[a+8>>2]=J[99239];J[a+12>>2]=c;c=J[99238];J[a>>2]=J[99237];J[a+4>>2]=c;J[a+52>>2]=0;J[195395]=0;I[b+136>>1]=16385;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Y;J[b+140>>2]=a;J[b+144>>2]=14;J[b+148>>2]=-2147483632;c=J[99296];J[a+ -48>>2]=J[99295];J[a+52>>2]=c;c=J[99294];J[a+40>>2]=J[99293];J[a+44>>2]=c;c=J[99292];J[a+32>>2]=J[99291];J[a+36>>2]=c;c=J[99290];J[a+24>>2]=J[99289];J[a+28>>2]=c;c=J[99288];J[a+16>>2]=J[99287];J[a+20>>2]=c;c=J[99286];J[a+8>>2]=J[99285];J[a+12>>2]=c;c=J[99284];J[a>>2]=J[99283];J[a+4>>2]=c;J[a+56>>2]=0;J[195395]=0;I[b+152>>1]=16393;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break X;J[b+156>>2]=a;J[b+160>>2]=13;J[b+164>>2]=-2147483632;J[a+48>>2]=J[99340];c=J[99339];J[a+40>>2]=J[99338];J[a+44>> -2]=c;c=J[99337];J[a+32>>2]=J[99336];J[a+36>>2]=c;c=J[99335];J[a+24>>2]=J[99334];J[a+28>>2]=c;c=J[99333];J[a+16>>2]=J[99332];J[a+20>>2]=c;c=J[99331];J[a+8>>2]=J[99330];J[a+12>>2]=c;c=J[99329];J[a>>2]=J[99328];J[a+4>>2]=c;J[a+52>>2]=0;J[195395]=0;I[b+168>>1]=16402;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break W;J[b+172>>2]=a;J[b+176>>2]=15;J[b+180>>2]=-2147483632;J[a+56>>2]=J[99389];c=J[99388];J[a+48>>2]=J[99387];J[a+52>>2]=c;c=J[99386];J[a+40>>2]=J[99385];J[a+44>>2]=c;c=J[99384];J[a+32>> -2]=J[99383];J[a+36>>2]=c;c=J[99382];J[a+24>>2]=J[99381];J[a+28>>2]=c;c=J[99380];J[a+16>>2]=J[99379];J[a+20>>2]=c;c=J[99378];J[a+8>>2]=J[99377];J[a+12>>2]=c;c=J[99376];J[a>>2]=J[99375];J[a+4>>2]=c;J[a+60>>2]=0;J[195395]=0;I[b+184>>1]=16409;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break V;J[b+188>>2]=a;J[b+192>>2]=19;J[b+196>>2]=-2147483628;e=Mb(a,397696,76),f=0,J[e+76>>2]=f;J[195395]=0;I[b+200>>1]=16407;a=_(1078,96)|0;c=J[195395];J[195395]=0;if((c|0)==1)break U;J[b+204>>2]=a;J[b+208>>2]= -23;J[b+212>>2]=-2147483624;e=Mb(a,397908,92),f=0,J[e+92>>2]=f;J[195395]=0;I[b+216>>1]=16408;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break T;J[b+220>>2]=a;J[b+224>>2]=17;J[b+228>>2]=-2147483628;e=Mb(a,398128,68),f=0,J[e+68>>2]=f;J[195395]=0;I[b+232>>1]=16438;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break S;J[b+236>>2]=a;J[b+240>>2]=24;J[b+244>>2]=-2147483620;e=Mb(a,408864,96),f=0,J[e+96>>2]=f;J[195395]=0;I[b+248>>1]=16399;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break R; -J[b+252>>2]=a;J[b+256>>2]=19;J[b+260>>2]=-2147483628;e=Mb(a,398308,76),f=0,J[e+76>>2]=f;J[195395]=0;I[b+264>>1]=16410;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Q;J[b+268>>2]=a;J[b+272>>2]=17;J[b+276>>2]=-2147483628;e=Mb(a,398484,68),f=0,J[e+68>>2]=f;J[195395]=0;I[b+280>>1]=16411;a=_(1078,96)|0;c=J[195395];J[195395]=0;if((c|0)==1)break P;J[b+284>>2]=a;J[b+288>>2]=23;J[b+292>>2]=-2147483624;e=Mb(a,398668,92),f=0,J[e+92>>2]=f;J[195395]=0;I[b+296>>1]=16397;a=_(1078,80)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break O;J[b+300>>2]=a;J[b+304>>2]=17;J[b+308>>2]=-2147483628;e=Mb(a,398856,68),f=0,J[e+68>>2]=f;J[195395]=0;I[b+312>>1]=16405;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break N;J[b+316>>2]=a;J[b+320>>2]=16;J[b+324>>2]=-2147483628;c=J[99769];J[a+56>>2]=J[99768];J[a+60>>2]=c;c=J[99767];J[a+48>>2]=J[99766];J[a+52>>2]=c;c=J[99765];J[a+40>>2]=J[99764];J[a+44>>2]=c;c=J[99763];J[a+32>>2]=J[99762];J[a+36>>2]=c;c=J[99761];J[a+24>>2]=J[99760];J[a+28>>2]=c;c=J[99759];J[a+16>>2]=J[99758]; -J[a+20>>2]=c;c=J[99757];J[a+8>>2]=J[99756];J[a+12>>2]=c;c=J[99755];J[a>>2]=J[99754];J[a+4>>2]=c;J[a+64>>2]=0;J[195395]=0;I[b+328>>1]=16401;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break M;J[b+332>>2]=a;J[b+336>>2]=15;J[b+340>>2]=-2147483632;J[a+56>>2]=J[99814];c=J[99813];J[a+48>>2]=J[99812];J[a+52>>2]=c;c=J[99811];J[a+40>>2]=J[99810];J[a+44>>2]=c;c=J[99809];J[a+32>>2]=J[99808];J[a+36>>2]=c;c=J[99807];J[a+24>>2]=J[99806];J[a+28>>2]=c;c=J[99805];J[a+16>>2]=J[99804];J[a+20>>2]=c;c=J[99803]; -J[a+8>>2]=J[99802];J[a+12>>2]=c;c=J[99801];J[a>>2]=J[99800];J[a+4>>2]=c;J[a+60>>2]=0;J[195395]=0;I[b+344>>1]=16395;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break L;J[b+348>>2]=a;J[b+352>>2]=17;J[b+356>>2]=-2147483628;e=Mb(a,399348,68),f=0,J[e+68>>2]=f;J[195395]=0;I[b+360>>1]=16412;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break K;J[b+364>>2]=a;J[b+368>>2]=18;J[b+372>>2]=-2147483628;e=Mb(a,399544,72),f=0,J[e+72>>2]=f;J[195395]=0;I[b+376>>1]=16406;a=_(1078,96)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break J;J[b+380>>2]=a;J[b+384>>2]=23;J[b+388>>2]=-2147483624;e=Mb(a,399724,92),f=0,J[e+92>>2]=f;J[195395]=0;I[b+392>>1]=16398;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break I;J[b+396>>2]=a;J[b+400>>2]=19;J[b+404>>2]=-2147483628;e=Mb(a,399968,76),f=0,J[e+76>>2]=f;J[195395]=0;I[b+408>>1]=16404;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break H;J[b+412>>2]=a;J[b+416>>2]=16;J[b+420>>2]=-2147483628;c=J[100056];J[a+56>>2]=J[100055];J[a+60>>2]=c;c=J[100054];J[a+48>>2]=J[100053]; -J[a+52>>2]=c;c=J[100052];J[a+40>>2]=J[100051];J[a+44>>2]=c;c=J[100050];J[a+32>>2]=J[100049];J[a+36>>2]=c;c=J[100048];J[a+24>>2]=J[100047];J[a+28>>2]=c;c=J[100046];J[a+16>>2]=J[100045];J[a+20>>2]=c;c=J[100044];J[a+8>>2]=J[100043];J[a+12>>2]=c;c=J[100042];J[a>>2]=J[100041];J[a+4>>2]=c;J[a+64>>2]=0;J[195395]=0;I[b+424>>1]=16400;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break G;J[b+428>>2]=a;J[b+432>>2]=15;J[b+436>>2]=-2147483632;J[a+56>>2]=J[100099];c=J[100098];J[a+48>>2]=J[100097];J[a+52>> -2]=c;c=J[100096];J[a+40>>2]=J[100095];J[a+44>>2]=c;c=J[100094];J[a+32>>2]=J[100093];J[a+36>>2]=c;c=J[100092];J[a+24>>2]=J[100091];J[a+28>>2]=c;c=J[100090];J[a+16>>2]=J[100089];J[a+20>>2]=c;c=J[100088];J[a+8>>2]=J[100087];J[a+12>>2]=c;c=J[100086];J[a>>2]=J[100085];J[a+4>>2]=c;J[a+60>>2]=0;J[195395]=0;I[b+440>>1]=16396;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break F;J[b+444>>2]=a;J[b+448>>2]=19;J[b+452>>2]=-2147483628;e=Mb(a,400524,76),f=0,J[e+76>>2]=f;J[195395]=0;I[b+456>>1]=16394;a=_(1078, -80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break E;J[b+460>>2]=a;J[b+464>>2]=17;J[b+468>>2]=-2147483628;e=Mb(a,400704,68),f=0,J[e+68>>2]=f;J[195395]=0;I[b+472>>1]=16403;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break D;J[b+476>>2]=a;J[b+480>>2]=18;J[b+484>>2]=-2147483628;e=Mb(a,400892,72),f=0,J[e+72>>2]=f;J[195395]=0;I[b+488>>1]=16392;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break C;J[b+492>>2]=a;J[b+496>>2]=14;J[b+500>>2]=-2147483632;c=J[100295];J[a+48>>2]=J[100294];J[a+52>>2]= -c;c=J[100293];J[a+40>>2]=J[100292];J[a+44>>2]=c;c=J[100291];J[a+32>>2]=J[100290];J[a+36>>2]=c;c=J[100289];J[a+24>>2]=J[100288];J[a+28>>2]=c;c=J[100287];J[a+16>>2]=J[100286];J[a+20>>2]=c;c=J[100285];J[a+8>>2]=J[100284];J[a+12>>2]=c;c=J[100283];J[a>>2]=J[100282];J[a+4>>2]=c;J[a+56>>2]=0;J[195395]=0;I[b+504>>1]=16440;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break B;J[b+508>>2]=a;J[b+512>>2]=26;J[b+516>>2]=-2147483620;e=Mb(a,401316,104),f=0,J[e+104>>2]=f;J[195395]=0;I[b+520>>1]=16414;a=_(1078, -112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break A;J[b+524>>2]=a;J[b+528>>2]=24;J[b+532>>2]=-2147483620;e=Mb(a,401560,96),f=0,J[e+96>>2]=f;J[195395]=0;I[b+536>>1]=16419;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break z;J[b+540>>2]=a;J[b+544>>2]=26;J[b+548>>2]=-2147483620;e=Mb(a,401792,104),f=0,J[e+104>>2]=f;J[195395]=0;I[b+552>>1]=16420;a=_(1078,128)|0;c=J[195395];J[195395]=0;if((c|0)==1)break y;J[b+556>>2]=a;J[b+560>>2]=29;J[b+564>>2]=-2147483616;e=Mb(a,401992,116),f=0,J[e+116>>2]=f;J[195395]= -0;I[b+568>>1]=16417;a=_(1078,128)|0;c=J[195395];J[195395]=0;if((c|0)==1)break x;J[b+572>>2]=a;J[b+576>>2]=28;J[b+580>>2]=-2147483616;e=Mb(a,402224,112),f=0,J[e+112>>2]=f;J[195395]=0;I[b+584>>1]=16418;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break w;J[b+588>>2]=a;J[b+592>>2]=26;J[b+596>>2]=-2147483620;e=Mb(a,402488,104),f=0,J[e+104>>2]=f;J[195395]=0;I[b+600>>1]=16413;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break v;J[b+604>>2]=a;J[b+608>>2]=26;J[b+612>>2]=-2147483620;e=Mb(a,402776, -104),f=0,J[e+104>>2]=f;J[195395]=0;I[b+616>>1]=16416;a=_(1078,96)|0;c=J[195395];J[195395]=0;if((c|0)==1)break u;J[b+620>>2]=a;J[b+624>>2]=23;J[b+628>>2]=-2147483624;e=Mb(a,403036,92),f=0,J[e+92>>2]=f;J[195395]=0;I[b+632>>1]=16415;a=_(1078,128)|0;c=J[195395];J[195395]=0;if((c|0)==1)break t;J[b+636>>2]=a;J[b+640>>2]=28;J[b+644>>2]=-2147483616;e=Mb(a,403256,112),f=0,J[e+112>>2]=f;J[195395]=0;I[b+648>>1]=16423;a=_(1078,96)|0;c=J[195395];J[195395]=0;if((c|0)==1)break s;J[b+652>>2]=a;J[b+656>>2]=22;J[b+ -660>>2]=-2147483624;e=Mb(a,403512,88),f=0,J[e+88>>2]=f;J[195395]=0;I[b+664>>1]=16424;a=_(1078,128)|0;c=J[195395];J[195395]=0;if((c|0)==1)break r;J[b+668>>2]=a;J[b+672>>2]=30;J[b+676>>2]=-2147483616;e=Mb(a,403724,120),f=0,J[e+120>>2]=f;J[195395]=0;I[b+680>>1]=16425;a=_(1078,96)|0;c=J[195395];J[195395]=0;if((c|0)==1)break q;J[b+684>>2]=a;J[b+688>>2]=20;J[b+692>>2]=-2147483624;e=Mb(a,403964,80),f=0,J[e+80>>2]=f;J[195395]=0;I[b+696>>1]=16422;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break p; -J[b+700>>2]=a;J[b+704>>2]=15;J[b+708>>2]=-2147483632;J[a+56>>2]=J[101048];c=J[101047];J[a+48>>2]=J[101046];J[a+52>>2]=c;c=J[101045];J[a+40>>2]=J[101044];J[a+44>>2]=c;c=J[101043];J[a+32>>2]=J[101042];J[a+36>>2]=c;c=J[101041];J[a+24>>2]=J[101040];J[a+28>>2]=c;c=J[101039];J[a+16>>2]=J[101038];J[a+20>>2]=c;c=J[101037];J[a+8>>2]=J[101036];J[a+12>>2]=c;c=J[101035];J[a>>2]=J[101034];J[a+4>>2]=c;J[a+60>>2]=0;J[195395]=0;I[b+712>>1]=16421;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break o;J[b+716>> -2]=a;J[b+720>>2]=12;J[b+724>>2]=-2147483632;c=J[101085];J[a+40>>2]=J[101084];J[a+44>>2]=c;c=J[101083];J[a+32>>2]=J[101082];J[a+36>>2]=c;c=J[101081];J[a+24>>2]=J[101080];J[a+28>>2]=c;c=J[101079];J[a+16>>2]=J[101078];J[a+20>>2]=c;c=J[101077];J[a+8>>2]=J[101076];J[a+12>>2]=c;c=J[101075];J[a>>2]=J[101074];J[a+4>>2]=c;J[a+48>>2]=0;J[195395]=0;I[b+728>>1]=16442;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break n;J[b+732>>2]=a;J[b+736>>2]=17;J[b+740>>2]=-2147483628;e=Mb(a,404484,68),f=0,J[e+68>>2]= -f;J[195395]=0;I[b+744>>1]=16441;a=_(1078,96)|0;c=J[195395];J[195395]=0;if((c|0)==1)break m;J[b+748>>2]=a;J[b+752>>2]=21;J[b+756>>2]=-2147483624;e=Mb(a,404676,84),f=0,J[e+84>>2]=f;J[195395]=0;I[b+760>>1]=16428;a=_(1078,128)|0;c=J[195395];J[195395]=0;if((c|0)==1)break l;J[b+764>>2]=a;J[b+768>>2]=30;J[b+772>>2]=-2147483616;e=Mb(a,404876,120),f=0,J[e+120>>2]=f;J[195395]=0;I[b+776>>1]=16427;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[b+780>>2]=a;J[b+784>>2]=27;J[b+788>>2]=-2147483620; -e=Mb(a,405076,108),f=0,J[e+108>>2]=f;J[195395]=0;I[b+792>>1]=16431;a=_(1078,128)|0;c=J[195395];J[195395]=0;if((c|0)==1)break j;J[b+796>>2]=a;J[b+800>>2]=28;J[b+804>>2]=-2147483616;e=Mb(a,405328,112),f=0,J[e+112>>2]=f;J[195395]=0;I[b+808>>1]=16430;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break i;J[b+812>>2]=a;J[b+816>>2]=27;J[b+820>>2]=-2147483620;e=Mb(a,405576,108),f=0,J[e+108>>2]=f;J[195395]=0;I[b+824>>1]=16432;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break h;J[b+828>>2]=a; -J[b+832>>2]=24;J[b+836>>2]=-2147483620;e=Mb(a,405872,96),f=0,J[e+96>>2]=f;J[195395]=0;I[b+840>>1]=16426;a=_(1078,112)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;J[b+844>>2]=a;J[b+848>>2]=25;J[b+852>>2]=-2147483620;e=Mb(a,406168,100),f=0,J[e+100>>2]=f;J[195395]=0;I[b+856>>1]=16429;a=_(1078,128)|0;c=J[195395];J[195395]=0;if((c|0)==1)break f;J[b+860>>2]=a;J[b+864>>2]=31;J[b+868>>2]=-2147483616;e=Mb(a,406420,124),f=0,J[e+124>>2]=f;J[194417]=777672;J[194418]=0;J[194419]=0;a=b+872|0;c=0;while(1){J[195395]= -0;d=(b+8|0)+(c<<4)|0;ma(2123,b+872|0,777668,777672,d|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break e;c=c+1|0;if((c|0)!=54)continue;break}while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);a=a-16|0;if((a|0)!=(b+8|0))continue;break}xb=b+880|0;break c}c=Z()|0;a=b+40|0;break d}c=Z()|0;a=b+56|0;break d}c=Z()|0;a=b+72|0;break d}c=Z()|0;a=b+88|0;break d}c=Z()|0;a=b+104|0;break d}c=Z()|0;a=b+120|0;break d}c=Z()|0;a=b+136|0;break d}c=Z()|0;a=b+152|0;break d}c=Z()|0;a=b+168|0;break d}c=Z()|0;a=b+184|0;break d}c=Z()| -0;a=b+200|0;break d}c=Z()|0;a=b+216|0;break d}c=Z()|0;a=b+232|0;break d}c=Z()|0;a=b+248|0;break d}c=Z()|0;a=b+264|0;break d}c=Z()|0;a=b+280|0;break d}c=Z()|0;a=b+296|0;break d}c=Z()|0;a=b+312|0;break d}c=Z()|0;a=b+328|0;break d}c=Z()|0;a=b+344|0;break d}c=Z()|0;a=b+360|0;break d}c=Z()|0;a=b+376|0;break d}c=Z()|0;a=b+392|0;break d}c=Z()|0;a=b+408|0;break d}c=Z()|0;a=b+424|0;break d}c=Z()|0;a=b+440|0;break d}c=Z()|0;a=b+456|0;break d}c=Z()|0;a=b+472|0;break d}c=Z()|0;a=b+488|0;break d}c=Z()|0;a=b+504| -0;break d}c=Z()|0;a=b+520|0;break d}c=Z()|0;a=b+536|0;break d}c=Z()|0;a=b+552|0;break d}c=Z()|0;a=b+568|0;break d}c=Z()|0;a=b+584|0;break d}c=Z()|0;a=b+600|0;break d}c=Z()|0;a=b+616|0;break d}c=Z()|0;a=b+632|0;break d}c=Z()|0;a=b+648|0;break d}c=Z()|0;a=b+664|0;break d}c=Z()|0;a=b+680|0;break d}c=Z()|0;a=b+696|0;break d}c=Z()|0;a=b+712|0;break d}c=Z()|0;a=b+728|0;break d}c=Z()|0;a=b+744|0;break d}c=Z()|0;a=b+760|0;break d}c=Z()|0;a=b+776|0;break d}c=Z()|0;a=b+792|0;break d}c=Z()|0;a=b+808|0;break d}c= -Z()|0;a=b+824|0;break d}c=Z()|0;a=b+840|0;break d}c=Z()|0;a=b+856|0;break d}c=Z()|0;zn(777668,J[194418]);break b}c=Z()|0;a=b+24|0}break b}J[194420]=0;a=Pb(32);J[194421]=a;J[194422]=7;J[194423]=-2147483640;J[a+24>>2]=J[98347];b=J[98346];J[a+16>>2]=J[98345];J[a+20>>2]=b;b=J[98344];J[a+8>>2]=J[98343];J[a+12>>2]=b;b=J[98342];J[a>>2]=J[98341];J[a+4>>2]=b;J[a+28>>2]=0;J[194424]=1;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;ca:{b=777696;da:{if((c|0)==1)break da;J[194425]=a;J[194426]=10;J[194427]= --2147483636;b=J[98956];J[a+32>>2]=J[98955];J[a+36>>2]=b;b=J[98954];J[a+24>>2]=J[98953];J[a+28>>2]=b;b=J[98952];J[a+16>>2]=J[98951];J[a+20>>2]=b;b=J[98950];J[a+8>>2]=J[98949];J[a+12>>2]=b;b=J[98948];J[a>>2]=J[98947];J[a+4>>2]=b;J[a+40>>2]=0;J[194428]=2;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=777712;if((c|0)==1)break da;J[194429]=a;J[194430]=14;J[194431]=-2147483632;b=J[99020];J[a+48>>2]=J[99019];J[a+52>>2]=b;b=J[99018];J[a+40>>2]=J[99017];J[a+44>>2]=b;b=J[99016];J[a+32>>2]=J[99015];J[a+ -36>>2]=b;b=J[99014];J[a+24>>2]=J[99013];J[a+28>>2]=b;b=J[99012];J[a+16>>2]=J[99011];J[a+20>>2]=b;b=J[99010];J[a+8>>2]=J[99009];J[a+12>>2]=b;b=J[99008];J[a>>2]=J[99007];J[a+4>>2]=b;J[a+56>>2]=0;J[194432]=3;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=777728;if((c|0)==1)break da;J[194433]=a;J[194434]=11;J[194435]=-2147483636;J[a+40>>2]=J[99074];b=J[99073];J[a+32>>2]=J[99072];J[a+36>>2]=b;b=J[99071];J[a+24>>2]=J[99070];J[a+28>>2]=b;b=J[99069];J[a+16>>2]=J[99068];J[a+20>>2]=b;b=J[99067];J[a+8>> -2]=J[99066];J[a+12>>2]=b;b=J[99065];J[a>>2]=J[99064];J[a+4>>2]=b;J[a+44>>2]=0;J[194436]=4;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=777744;if((c|0)==1)break da;J[194437]=a;J[194438]=12;J[194439]=-2147483632;b=J[99145];J[a+40>>2]=J[99144];J[a+44>>2]=b;b=J[99143];J[a+32>>2]=J[99142];J[a+36>>2]=b;b=J[99141];J[a+24>>2]=J[99140];J[a+28>>2]=b;b=J[99139];J[a+16>>2]=J[99138];J[a+20>>2]=b;b=J[99137];J[a+8>>2]=J[99136];J[a+12>>2]=b;b=J[99135];J[a>>2]=J[99134];J[a+4>>2]=b;J[a+48>>2]=0;J[194440]=5; -J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=777760;if((c|0)==1)break da;J[194441]=a;J[194442]=16;J[194443]=-2147483628;b=J[99186];J[a+56>>2]=J[99185];J[a+60>>2]=b;b=J[99184];J[a+48>>2]=J[99183];J[a+52>>2]=b;b=J[99182];J[a+40>>2]=J[99181];J[a+44>>2]=b;b=J[99180];J[a+32>>2]=J[99179];J[a+36>>2]=b;b=J[99178];J[a+24>>2]=J[99177];J[a+28>>2]=b;b=J[99176];J[a+16>>2]=J[99175];J[a+20>>2]=b;b=J[99174];J[a+8>>2]=J[99173];J[a+12>>2]=b;b=J[99172];J[a>>2]=J[99171];J[a+4>>2]=b;J[a+64>>2]=0;J[194444]=6;J[195395]= -0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=777776;if((c|0)==1)break da;J[194445]=a;J[194446]=14;J[194447]=-2147483632;b=J[99228];J[a+48>>2]=J[99227];J[a+52>>2]=b;b=J[99226];J[a+40>>2]=J[99225];J[a+44>>2]=b;b=J[99224];J[a+32>>2]=J[99223];J[a+36>>2]=b;b=J[99222];J[a+24>>2]=J[99221];J[a+28>>2]=b;b=J[99220];J[a+16>>2]=J[99219];J[a+20>>2]=b;b=J[99218];J[a+8>>2]=J[99217];J[a+12>>2]=b;b=J[99216];J[a>>2]=J[99215];J[a+4>>2]=b;J[a+56>>2]=0;J[194448]=7;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=777792; -if((c|0)==1)break da;J[194449]=a;J[194450]=16;J[194451]=-2147483628;b=J[99266];J[a+56>>2]=J[99265];J[a+60>>2]=b;b=J[99264];J[a+48>>2]=J[99263];J[a+52>>2]=b;b=J[99262];J[a+40>>2]=J[99261];J[a+44>>2]=b;b=J[99260];J[a+32>>2]=J[99259];J[a+36>>2]=b;b=J[99258];J[a+24>>2]=J[99257];J[a+28>>2]=b;b=J[99256];J[a+16>>2]=J[99255];J[a+20>>2]=b;b=J[99254];J[a+8>>2]=J[99253];J[a+12>>2]=b;b=J[99252];J[a>>2]=J[99251];J[a+4>>2]=b;J[a+64>>2]=0;J[194452]=8;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=777808;if((c| -0)==1)break da;J[194453]=a;J[194454]=15;J[194455]=-2147483632;J[a+56>>2]=J[99312];b=J[99311];J[a+48>>2]=J[99310];J[a+52>>2]=b;b=J[99309];J[a+40>>2]=J[99308];J[a+44>>2]=b;b=J[99307];J[a+32>>2]=J[99306];J[a+36>>2]=b;b=J[99305];J[a+24>>2]=J[99304];J[a+28>>2]=b;b=J[99303];J[a+16>>2]=J[99302];J[a+20>>2]=b;b=J[99301];J[a+8>>2]=J[99300];J[a+12>>2]=b;b=J[99299];J[a>>2]=J[99298];J[a+4>>2]=b;J[a+60>>2]=0;J[194456]=9;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=777824;if((c|0)==1)break da;J[194457]= -a;J[194458]=18;J[194459]=-2147483628;e=Mb(a,397368,72),f=0,J[e+72>>2]=f;J[194460]=10;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=777840;if((c|0)==1)break da;J[194461]=a;J[194462]=18;J[194463]=-2147483628;e=Mb(a,397564,72),f=0,J[e+72>>2]=f;J[194464]=11;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=777856;if((c|0)==1)break da;J[194465]=a;J[194466]=20;J[194467]=-2147483624;e=Mb(a,397776,80),f=0,J[e+80>>2]=f;J[194468]=12;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=777872;if((c| -0)==1)break da;J[194469]=a;J[194470]=20;J[194471]=-2147483624;e=Mb(a,398004,80),f=0,J[e+80>>2]=f;J[194472]=13;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=777888;if((c|0)==1)break da;J[194473]=a;J[194474]=17;J[194475]=-2147483628;e=Mb(a,398200,68),f=0,J[e+68>>2]=f;J[194476]=14;J[195395]=0;a=_(1078,32)|0;c=J[195395];J[195395]=0;b=777904;if((c|0)==1)break da;J[194477]=a;J[194478]=7;J[194479]=-2147483640;J[a+24>>2]=J[102247];b=J[102246];J[a+16>>2]=J[102245];J[a+20>>2]=b;b=J[102244];J[a+8>>2]= -J[102243];J[a+12>>2]=b;b=J[102242];J[a>>2]=J[102241];J[a+4>>2]=b;J[a+28>>2]=0;J[194480]=15;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=777920;if((c|0)==1)break da;J[194481]=a;J[194482]=13;J[194483]=-2147483632;J[a+48>>2]=J[99609];b=J[99608];J[a+40>>2]=J[99607];J[a+44>>2]=b;b=J[99606];J[a+32>>2]=J[99605];J[a+36>>2]=b;b=J[99604];J[a+24>>2]=J[99603];J[a+28>>2]=b;b=J[99602];J[a+16>>2]=J[99601];J[a+20>>2]=b;b=J[99600];J[a+8>>2]=J[99599];J[a+12>>2]=b;b=J[99598];J[a>>2]=J[99597];J[a+4>>2]=b;J[a+ -52>>2]=0;J[194484]=16;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=777936;if((c|0)==1)break da;J[194485]=a;J[194486]=18;J[194487]=-2147483628;e=Mb(a,398556,72),f=0,J[e+72>>2]=f;J[194488]=17;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=777952;if((c|0)==1)break da;J[194489]=a;J[194490]=14;J[194491]=-2147483632;b=J[99704];J[a+48>>2]=J[99703];J[a+52>>2]=b;b=J[99702];J[a+40>>2]=J[99701];J[a+44>>2]=b;b=J[99700];J[a+32>>2]=J[99699];J[a+36>>2]=b;b=J[99698];J[a+24>>2]=J[99697];J[a+28>>2]=b; -b=J[99696];J[a+16>>2]=J[99695];J[a+20>>2]=b;b=J[99694];J[a+8>>2]=J[99693];J[a+12>>2]=b;b=J[99692];J[a>>2]=J[99691];J[a+4>>2]=b;J[a+56>>2]=0;J[194492]=18;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=777968;if((c|0)==1)break da;J[194493]=a;J[194494]=13;J[194495]=-2147483632;J[a+48>>2]=J[99744];b=J[99743];J[a+40>>2]=J[99742];J[a+44>>2]=b;b=J[99741];J[a+32>>2]=J[99740];J[a+36>>2]=b;b=J[99739];J[a+24>>2]=J[99738];J[a+28>>2]=b;b=J[99737];J[a+16>>2]=J[99736];J[a+20>>2]=b;b=J[99735];J[a+8>>2]=J[99734]; -J[a+12>>2]=b;b=J[99733];J[a>>2]=J[99732];J[a+4>>2]=b;J[a+52>>2]=0;J[194496]=19;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=777984;if((c|0)==1)break da;J[194497]=a;J[194498]=19;J[194499]=-2147483628;e=Mb(a,399084,76),f=0,J[e+76>>2]=f;J[194500]=20;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778E3;if((c|0)==1)break da;J[194501]=a;J[194502]=11;J[194503]=-2147483636;J[a+40>>2]=J[99826];b=J[99825];J[a+32>>2]=J[99824];J[a+36>>2]=b;b=J[99823];J[a+24>>2]=J[99822];J[a+28>>2]=b;b=J[99821]; -J[a+16>>2]=J[99820];J[a+20>>2]=b;b=J[99819];J[a+8>>2]=J[99818];J[a+12>>2]=b;b=J[99817];J[a>>2]=J[99816];J[a+4>>2]=b;J[a+44>>2]=0;J[194504]=21;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778016;if((c|0)==1)break da;J[194505]=a;J[194506]=21;J[194507]=-2147483624;e=Mb(a,399420,84),f=0,J[e+84>>2]=f;J[194508]=22;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778032;if((c|0)==1)break da;J[194509]=a;J[194510]=16;J[194511]=-2147483628;b=J[99920];J[a+56>>2]=J[99919];J[a+60>>2]=b;b=J[99918]; -J[a+48>>2]=J[99917];J[a+52>>2]=b;b=J[99916];J[a+40>>2]=J[99915];J[a+44>>2]=b;b=J[99914];J[a+32>>2]=J[99913];J[a+36>>2]=b;b=J[99912];J[a+24>>2]=J[99911];J[a+28>>2]=b;b=J[99910];J[a+16>>2]=J[99909];J[a+20>>2]=b;b=J[99908];J[a+8>>2]=J[99907];J[a+12>>2]=b;b=J[99906];J[a>>2]=J[99905];J[a+4>>2]=b;J[a+64>>2]=0;J[194512]=23;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778048;if((c|0)==1)break da;J[194513]=a;J[194514]=22;J[194515]=-2147483624;e=Mb(a,399820,88),f=0,J[e+88>>2]=f;J[194516]=24;J[195395]= -0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778064;if((c|0)==1)break da;J[194517]=a;J[194518]=16;J[194519]=-2147483628;b=J[100027];J[a+56>>2]=J[100026];J[a+60>>2]=b;b=J[100025];J[a+48>>2]=J[100024];J[a+52>>2]=b;b=J[100023];J[a+40>>2]=J[100022];J[a+44>>2]=b;b=J[100021];J[a+32>>2]=J[100020];J[a+36>>2]=b;b=J[100019];J[a+24>>2]=J[100018];J[a+28>>2]=b;b=J[100017];J[a+16>>2]=J[100016];J[a+20>>2]=b;b=J[100015];J[a+8>>2]=J[100014];J[a+12>>2]=b;b=J[100013];J[a>>2]=J[100012];J[a+4>>2]=b;J[a+64>>2]=0;J[194520]= -25;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778080;if((c|0)==1)break da;J[194521]=a;J[194522]=14;J[194523]=-2147483632;b=J[100071];J[a+48>>2]=J[100070];J[a+52>>2]=b;b=J[100069];J[a+40>>2]=J[100068];J[a+44>>2]=b;b=J[100067];J[a+32>>2]=J[100066];J[a+36>>2]=b;b=J[100065];J[a+24>>2]=J[100064];J[a+28>>2]=b;b=J[100063];J[a+16>>2]=J[100062];J[a+20>>2]=b;b=J[100061];J[a+8>>2]=J[100060];J[a+12>>2]=b;b=J[100059];J[a>>2]=J[100058];J[a+4>>2]=b;J[a+56>>2]=0;J[194524]=26;J[195395]=0;a=_(1078,80)|0; -c=J[195395];J[195395]=0;b=778096;if((c|0)==1)break da;J[194525]=a;J[194526]=17;J[194527]=-2147483628;e=Mb(a,400404,68),f=0,J[e+68>>2]=f;J[194528]=27;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778112;if((c|0)==1)break da;J[194529]=a;J[194530]=12;J[194531]=-2147483632;b=J[100162];J[a+40>>2]=J[100161];J[a+44>>2]=b;b=J[100160];J[a+32>>2]=J[100159];J[a+36>>2]=b;b=J[100158];J[a+24>>2]=J[100157];J[a+28>>2]=b;b=J[100156];J[a+16>>2]=J[100155];J[a+20>>2]=b;b=J[100154];J[a+8>>2]=J[100153];J[a+12>> -2]=b;b=J[100152];J[a>>2]=J[100151];J[a+4>>2]=b;J[a+48>>2]=0;J[194532]=28;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778128;if((c|0)==1)break da;J[194533]=a;J[194534]=14;J[194535]=-2147483632;b=J[100207];J[a+48>>2]=J[100206];J[a+52>>2]=b;b=J[100205];J[a+40>>2]=J[100204];J[a+44>>2]=b;b=J[100203];J[a+32>>2]=J[100202];J[a+36>>2]=b;b=J[100201];J[a+24>>2]=J[100200];J[a+28>>2]=b;b=J[100199];J[a+16>>2]=J[100198];J[a+20>>2]=b;b=J[100197];J[a+8>>2]=J[100196];J[a+12>>2]=b;b=J[100195];J[a>>2]=J[100194]; -J[a+4>>2]=b;J[a+56>>2]=0;J[194536]=29;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778144;if((c|0)==1)break da;J[194537]=a;J[194538]=19;J[194539]=-2147483628;e=Mb(a,400968,76),f=0,J[e+76>>2]=f;J[194540]=30;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778160;if((c|0)==1)break da;J[194541]=a;J[194542]=21;J[194543]=-2147483624;e=Mb(a,401188,84),f=0,J[e+84>>2]=f;J[194544]=31;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778176;if((c|0)==1)break da;J[194545]=a;J[194546]=22;J[194547]= --2147483624;e=Mb(a,401424,88),f=0,J[e+88>>2]=f;J[194548]=32;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778192;if((c|0)==1)break da;J[194549]=a;J[194550]=20;J[194551]=-2147483624;e=Mb(a,401660,80),f=0,J[e+80>>2]=f;J[194552]=33;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778208;if((c|0)==1)break da;J[194553]=a;J[194554]=10;J[194555]=-2147483636;b=J[100484];J[a+32>>2]=J[100483];J[a+36>>2]=b;b=J[100482];J[a+24>>2]=J[100481];J[a+28>>2]=b;b=J[100480];J[a+16>>2]=J[100479];J[a+20>>2]=b; -b=J[100478];J[a+8>>2]=J[100477];J[a+12>>2]=b;b=J[100476];J[a>>2]=J[100475];J[a+4>>2]=b;J[a+40>>2]=0;J[194556]=34;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778224;if((c|0)==1)break da;J[194557]=a;J[194558]=13;J[194559]=-2147483632;J[a+48>>2]=J[100540];b=J[100539];J[a+40>>2]=J[100538];J[a+44>>2]=b;b=J[100537];J[a+32>>2]=J[100536];J[a+36>>2]=b;b=J[100535];J[a+24>>2]=J[100534];J[a+28>>2]=b;b=J[100533];J[a+16>>2]=J[100532];J[a+20>>2]=b;b=J[100531];J[a+8>>2]=J[100530];J[a+12>>2]=b;b=J[100529]; -J[a>>2]=J[100528];J[a+4>>2]=b;J[a+52>>2]=0;J[194560]=35;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778240;if((c|0)==1)break da;J[194561]=a;J[194562]=21;J[194563]=-2147483624;e=Mb(a,402340,84),f=0,J[e+84>>2]=f;J[194564]=36;J[195395]=0;a=_(1078,112)|0;c=J[195395];J[195395]=0;b=778256;if((c|0)==1)break da;J[194565]=a;J[194566]=24;J[194567]=-2147483620;e=Mb(a,402596,96),f=0,J[e+96>>2]=f;J[194568]=37;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778272;if((c|0)==1)break da;J[194569]=a; -J[194570]=16;J[194571]=-2147483628;b=J[100736];J[a+56>>2]=J[100735];J[a+60>>2]=b;b=J[100734];J[a+48>>2]=J[100733];J[a+52>>2]=b;b=J[100732];J[a+40>>2]=J[100731];J[a+44>>2]=b;b=J[100730];J[a+32>>2]=J[100729];J[a+36>>2]=b;b=J[100728];J[a+24>>2]=J[100727];J[a+28>>2]=b;b=J[100726];J[a+16>>2]=J[100725];J[a+20>>2]=b;b=J[100724];J[a+8>>2]=J[100723];J[a+12>>2]=b;b=J[100722];J[a>>2]=J[100721];J[a+4>>2]=b;J[a+64>>2]=0;J[194572]=38;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778288;if((c|0)==1)break da; -J[194573]=a;J[194574]=13;J[194575]=-2147483632;J[a+48>>2]=J[100795];b=J[100794];J[a+40>>2]=J[100793];J[a+44>>2]=b;b=J[100792];J[a+32>>2]=J[100791];J[a+36>>2]=b;b=J[100790];J[a+24>>2]=J[100789];J[a+28>>2]=b;b=J[100788];J[a+16>>2]=J[100787];J[a+20>>2]=b;b=J[100786];J[a+8>>2]=J[100785];J[a+12>>2]=b;b=J[100784];J[a>>2]=J[100783];J[a+4>>2]=b;J[a+52>>2]=0;J[194576]=39;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778304;if((c|0)==1)break da;J[194577]=a;J[194578]=23;J[194579]=-2147483624;e=Mb(a,403372, -92),f=0,J[e+92>>2]=f;J[194580]=40;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778320;if((c|0)==1)break da;J[194581]=a;J[194582]=16;J[194583]=-2147483628;b=J[100916];J[a+56>>2]=J[100915];J[a+60>>2]=b;b=J[100914];J[a+48>>2]=J[100913];J[a+52>>2]=b;b=J[100912];J[a+40>>2]=J[100911];J[a+44>>2]=b;b=J[100910];J[a+32>>2]=J[100909];J[a+36>>2]=b;b=J[100908];J[a+24>>2]=J[100907];J[a+28>>2]=b;b=J[100906];J[a+16>>2]=J[100905];J[a+20>>2]=b;b=J[100904];J[a+8>>2]=J[100903];J[a+12>>2]=b;b=J[100902];J[a>>2]= -J[100901];J[a+4>>2]=b;J[a+64>>2]=0;J[194584]=41;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778336;if((c|0)==1)break da;J[194585]=a;J[194586]=12;J[194587]=-2147483632;b=J[100973];J[a+40>>2]=J[100972];J[a+44>>2]=b;b=J[100971];J[a+32>>2]=J[100970];J[a+36>>2]=b;b=J[100969];J[a+24>>2]=J[100968];J[a+28>>2]=b;b=J[100967];J[a+16>>2]=J[100966];J[a+20>>2]=b;b=J[100965];J[a+8>>2]=J[100964];J[a+12>>2]=b;b=J[100963];J[a>>2]=J[100962];J[a+4>>2]=b;J[a+48>>2]=0;J[194588]=42;J[195395]=0;a=_(1078,48)|0;c= -J[195395];J[195395]=0;b=778352;if((c|0)==1)break da;J[194589]=a;J[194590]=11;J[194591]=-2147483636;J[a+40>>2]=J[101022];b=J[101021];J[a+32>>2]=J[101020];J[a+36>>2]=b;b=J[101019];J[a+24>>2]=J[101018];J[a+28>>2]=b;b=J[101017];J[a+16>>2]=J[101016];J[a+20>>2]=b;b=J[101015];J[a+8>>2]=J[101014];J[a+12>>2]=b;b=J[101013];J[a>>2]=J[101012];J[a+4>>2]=b;J[a+44>>2]=0;J[194592]=43;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778368;if((c|0)==1)break da;J[194593]=a;J[194594]=13;J[194595]=-2147483632;J[a+ -48>>2]=J[101062];b=J[101061];J[a+40>>2]=J[101060];J[a+44>>2]=b;b=J[101059];J[a+32>>2]=J[101058];J[a+36>>2]=b;b=J[101057];J[a+24>>2]=J[101056];J[a+28>>2]=b;b=J[101055];J[a+16>>2]=J[101054];J[a+20>>2]=b;b=J[101053];J[a+8>>2]=J[101052];J[a+12>>2]=b;b=J[101051];J[a>>2]=J[101050];J[a+4>>2]=b;J[a+52>>2]=0;J[194596]=44;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778384;if((c|0)==1)break da;J[194597]=a;J[194598]=13;J[194599]=-2147483632;J[a+48>>2]=J[101099];b=J[101098];J[a+40>>2]=J[101097];J[a+44>> -2]=b;b=J[101096];J[a+32>>2]=J[101095];J[a+36>>2]=b;b=J[101094];J[a+24>>2]=J[101093];J[a+28>>2]=b;b=J[101092];J[a+16>>2]=J[101091];J[a+20>>2]=b;b=J[101090];J[a+8>>2]=J[101089];J[a+12>>2]=b;b=J[101088];J[a>>2]=J[101087];J[a+4>>2]=b;J[a+52>>2]=0;J[194600]=45;J[195395]=0;a=_(1078,32)|0;c=J[195395];J[195395]=0;b=778400;if((c|0)==1)break da;J[194601]=a;J[194602]=7;J[194603]=-2147483640;J[a+24>>2]=J[101145];b=J[101144];J[a+16>>2]=J[101143];J[a+20>>2]=b;b=J[101142];J[a+8>>2]=J[101141];J[a+12>>2]=b;b=J[101140]; -J[a>>2]=J[101139];J[a+4>>2]=b;J[a+28>>2]=0;J[194604]=46;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778416;if((c|0)==1)break da;J[194605]=a;J[194606]=9;J[194607]=-2147483636;J[a+32>>2]=J[101199];b=J[101198];J[a+24>>2]=J[101197];J[a+28>>2]=b;b=J[101196];J[a+16>>2]=J[101195];J[a+20>>2]=b;b=J[101194];J[a+8>>2]=J[101193];J[a+12>>2]=b;b=J[101192];J[a>>2]=J[101191];J[a+4>>2]=b;J[a+36>>2]=0;J[194608]=47;J[195395]=0;a=_(1078,32)|0;c=J[195395];J[195395]=0;b=778432;if((c|0)==1)break da;J[194609]=a; -J[194610]=7;J[194611]=-2147483640;J[a+24>>2]=J[101256];b=J[101255];J[a+16>>2]=J[101254];J[a+20>>2]=b;b=J[101253];J[a+8>>2]=J[101252];J[a+12>>2]=b;b=J[101251];J[a>>2]=J[101250];J[a+4>>2]=b;J[a+28>>2]=0;J[194612]=48;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778448;if((c|0)==1)break da;J[194613]=a;J[194614]=17;J[194615]=-2147483628;e=Mb(a,405188,68),f=0,J[e+68>>2]=f;J[194616]=49;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778464;if((c|0)==1)break da;J[194617]=a;J[194618]=17;J[194619]= --2147483628;e=Mb(a,405444,68),f=0,J[e+68>>2]=f;J[194620]=50;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778480;if((c|0)==1)break da;J[194621]=a;J[194622]=21;J[194623]=-2147483624;e=Mb(a,405688,84),f=0,J[e+84>>2]=f;J[194624]=51;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778496;if((c|0)==1)break da;J[194625]=a;J[194626]=17;J[194627]=-2147483628;e=Mb(a,405972,68),f=0,J[e+68>>2]=f;J[194628]=52;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778512;if((c|0)==1)break da;J[194629]= -a;J[194630]=18;J[194631]=-2147483628;e=Mb(a,406272,72),f=0,J[e+72>>2]=f;J[194632]=53;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778528;if((c|0)==1)break da;J[194633]=a;J[194634]=16;J[194635]=-2147483628;b=J[101652];J[a+56>>2]=J[101651];J[a+60>>2]=b;b=J[101650];J[a+48>>2]=J[101649];J[a+52>>2]=b;b=J[101648];J[a+40>>2]=J[101647];J[a+44>>2]=b;b=J[101646];J[a+32>>2]=J[101645];J[a+36>>2]=b;b=J[101644];J[a+24>>2]=J[101643];J[a+28>>2]=b;b=J[101642];J[a+16>>2]=J[101641];J[a+20>>2]=b;b=J[101640]; -J[a+8>>2]=J[101639];J[a+12>>2]=b;b=J[101638];J[a>>2]=J[101637];J[a+4>>2]=b;J[a+64>>2]=0;J[194636]=54;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778544;if((c|0)==1)break da;J[194637]=a;J[194638]=10;J[194639]=-2147483636;b=J[101689];J[a+32>>2]=J[101688];J[a+36>>2]=b;b=J[101687];J[a+24>>2]=J[101686];J[a+28>>2]=b;b=J[101685];J[a+16>>2]=J[101684];J[a+20>>2]=b;b=J[101683];J[a+8>>2]=J[101682];J[a+12>>2]=b;b=J[101681];J[a>>2]=J[101680];J[a+4>>2]=b;J[a+40>>2]=0;J[194640]=55;J[195395]=0;a=_(1078, -48)|0;c=J[195395];J[195395]=0;b=778560;if((c|0)==1)break da;J[194641]=a;J[194642]=9;J[194643]=-2147483636;J[a+32>>2]=J[101716];b=J[101715];J[a+24>>2]=J[101714];J[a+28>>2]=b;b=J[101713];J[a+16>>2]=J[101712];J[a+20>>2]=b;b=J[101711];J[a+8>>2]=J[101710];J[a+12>>2]=b;b=J[101709];J[a>>2]=J[101708];J[a+4>>2]=b;J[a+36>>2]=0;J[194644]=56;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778576;if((c|0)==1)break da;J[194645]=a;J[194646]=12;J[194647]=-2147483632;b=J[101931];J[a+40>>2]=J[101930];J[a+44>> -2]=b;b=J[101929];J[a+32>>2]=J[101928];J[a+36>>2]=b;b=J[101927];J[a+24>>2]=J[101926];J[a+28>>2]=b;b=J[101925];J[a+16>>2]=J[101924];J[a+20>>2]=b;b=J[101923];J[a+8>>2]=J[101922];J[a+12>>2]=b;b=J[101921];J[a>>2]=J[101920];J[a+4>>2]=b;J[a+48>>2]=0;J[194648]=57;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778592;if((c|0)==1)break da;J[194649]=a;J[194650]=19;J[194651]=-2147483628;e=Mb(a,407772,76),f=0,J[e+76>>2]=f;J[194652]=58;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778608;if((c|0)== -1)break da;J[194653]=a;J[194654]=17;J[194655]=-2147483628;e=Mb(a,409040,68),f=0,J[e+68>>2]=f;J[194656]=59;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778624;if((c|0)==1)break da;J[194657]=a;J[194658]=13;J[194659]=-2147483632;J[a+48>>2]=J[102305];b=J[102304];J[a+40>>2]=J[102303];J[a+44>>2]=b;b=J[102302];J[a+32>>2]=J[102301];J[a+36>>2]=b;b=J[102300];J[a+24>>2]=J[102299];J[a+28>>2]=b;b=J[102298];J[a+16>>2]=J[102297];J[a+20>>2]=b;b=J[102296];J[a+8>>2]=J[102295];J[a+12>>2]=b;b=J[102294];J[a>> -2]=J[102293];J[a+4>>2]=b;J[a+52>>2]=0;J[194660]=60;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778640;if((c|0)==1)break da;J[194661]=a;J[194662]=11;J[194663]=-2147483636;J[a+40>>2]=J[102598];b=J[102597];J[a+32>>2]=J[102596];J[a+36>>2]=b;b=J[102595];J[a+24>>2]=J[102594];J[a+28>>2]=b;b=J[102593];J[a+16>>2]=J[102592];J[a+20>>2]=b;b=J[102591];J[a+8>>2]=J[102590];J[a+12>>2]=b;b=J[102589];J[a>>2]=J[102588];J[a+4>>2]=b;J[a+44>>2]=0;J[194664]=61;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0; -b=778656;if((c|0)==1)break da;J[194665]=a;J[194666]=15;J[194667]=-2147483632;J[a+56>>2]=J[102332];b=J[102331];J[a+48>>2]=J[102330];J[a+52>>2]=b;b=J[102329];J[a+40>>2]=J[102328];J[a+44>>2]=b;b=J[102327];J[a+32>>2]=J[102326];J[a+36>>2]=b;b=J[102325];J[a+24>>2]=J[102324];J[a+28>>2]=b;b=J[102323];J[a+16>>2]=J[102322];J[a+20>>2]=b;b=J[102321];J[a+8>>2]=J[102320];J[a+12>>2]=b;b=J[102319];J[a>>2]=J[102318];J[a+4>>2]=b;J[a+60>>2]=0;J[194668]=62;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778672; -if((c|0)==1)break da;J[194669]=a;J[194670]=12;J[194671]=-2147483632;b=J[102618];J[a+40>>2]=J[102617];J[a+44>>2]=b;b=J[102616];J[a+32>>2]=J[102615];J[a+36>>2]=b;b=J[102614];J[a+24>>2]=J[102613];J[a+28>>2]=b;b=J[102612];J[a+16>>2]=J[102611];J[a+20>>2]=b;b=J[102610];J[a+8>>2]=J[102609];J[a+12>>2]=b;b=J[102608];J[a>>2]=J[102607];J[a+4>>2]=b;J[a+48>>2]=0;J[194672]=63;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778688;if((c|0)==1)break da;J[194673]=a;J[194674]=21;J[194675]=-2147483624;e=Mb(a,410504, -84),f=0,J[e+84>>2]=f;J[194676]=64;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778704;if((c|0)==1)break da;J[194677]=a;J[194678]=14;J[194679]=-2147483632;b=J[102671];J[a+48>>2]=J[102670];J[a+52>>2]=b;b=J[102669];J[a+40>>2]=J[102668];J[a+44>>2]=b;b=J[102667];J[a+32>>2]=J[102666];J[a+36>>2]=b;b=J[102665];J[a+24>>2]=J[102664];J[a+28>>2]=b;b=J[102663];J[a+16>>2]=J[102662];J[a+20>>2]=b;b=J[102661];J[a+8>>2]=J[102660];J[a+12>>2]=b;b=J[102659];J[a>>2]=J[102658];J[a+4>>2]=b;J[a+56>>2]=0;J[194680]= -65;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778720;if((c|0)==1)break da;J[194681]=a;J[194682]=15;J[194683]=-2147483632;J[a+56>>2]=J[102692];b=J[102691];J[a+48>>2]=J[102690];J[a+52>>2]=b;b=J[102689];J[a+40>>2]=J[102688];J[a+44>>2]=b;b=J[102687];J[a+32>>2]=J[102686];J[a+36>>2]=b;b=J[102685];J[a+24>>2]=J[102684];J[a+28>>2]=b;b=J[102683];J[a+16>>2]=J[102682];J[a+20>>2]=b;b=J[102681];J[a+8>>2]=J[102680];J[a+12>>2]=b;b=J[102679];J[a>>2]=J[102678];J[a+4>>2]=b;J[a+60>>2]=0;J[194684]=66;J[195395]= -0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778736;if((c|0)==1)break da;J[194685]=a;J[194686]=13;J[194687]=-2147483632;J[a+48>>2]=J[102712];b=J[102711];J[a+40>>2]=J[102710];J[a+44>>2]=b;b=J[102709];J[a+32>>2]=J[102708];J[a+36>>2]=b;b=J[102707];J[a+24>>2]=J[102706];J[a+28>>2]=b;b=J[102705];J[a+16>>2]=J[102704];J[a+20>>2]=b;b=J[102703];J[a+8>>2]=J[102702];J[a+12>>2]=b;b=J[102701];J[a>>2]=J[102700];J[a+4>>2]=b;J[a+52>>2]=0;J[194688]=67;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=778752;if((c| -0)==1)break da;J[194689]=a;J[194690]=18;J[194691]=-2147483628;e=Mb(a,410880,72),f=0,J[e+72>>2]=f;J[194692]=68;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778768;if((c|0)==1)break da;J[194693]=a;J[194694]=13;J[194695]=-2147483632;J[a+48>>2]=J[102757];b=J[102756];J[a+40>>2]=J[102755];J[a+44>>2]=b;b=J[102754];J[a+32>>2]=J[102753];J[a+36>>2]=b;b=J[102752];J[a+24>>2]=J[102751];J[a+28>>2]=b;b=J[102750];J[a+16>>2]=J[102749];J[a+20>>2]=b;b=J[102748];J[a+8>>2]=J[102747];J[a+12>>2]=b;b=J[102746];J[a>> -2]=J[102745];J[a+4>>2]=b;J[a+52>>2]=0;J[194696]=69;J[195395]=0;a=_(1078,32)|0;c=J[195395];J[195395]=0;b=778784;if((c|0)==1)break da;J[194697]=a;J[194698]=7;J[194699]=-2147483640;J[a+24>>2]=J[98347];b=J[98346];J[a+16>>2]=J[98345];J[a+20>>2]=b;b=J[98344];J[a+8>>2]=J[98343];J[a+12>>2]=b;b=J[98342];J[a>>2]=J[98341];J[a+4>>2]=b;J[a+28>>2]=0;J[194700]=70;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778800;if((c|0)==1)break da;J[194701]=a;J[194702]=14;J[194703]=-2147483632;b=J[102778];J[a+48>>2]= -J[102777];J[a+52>>2]=b;b=J[102776];J[a+40>>2]=J[102775];J[a+44>>2]=b;b=J[102774];J[a+32>>2]=J[102773];J[a+36>>2]=b;b=J[102772];J[a+24>>2]=J[102771];J[a+28>>2]=b;b=J[102770];J[a+16>>2]=J[102769];J[a+20>>2]=b;b=J[102768];J[a+8>>2]=J[102767];J[a+12>>2]=b;b=J[102766];J[a>>2]=J[102765];J[a+4>>2]=b;J[a+56>>2]=0;J[194704]=71;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778816;if((c|0)==1)break da;J[194705]=a;J[194706]=11;J[194707]=-2147483636;J[a+40>>2]=J[102796];b=J[102795];J[a+32>>2]=J[102794]; -J[a+36>>2]=b;b=J[102793];J[a+24>>2]=J[102792];J[a+28>>2]=b;b=J[102791];J[a+16>>2]=J[102790];J[a+20>>2]=b;b=J[102789];J[a+8>>2]=J[102788];J[a+12>>2]=b;b=J[102787];J[a>>2]=J[102786];J[a+4>>2]=b;J[a+44>>2]=0;J[194708]=72;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778832;if((c|0)==1)break da;J[194709]=a;J[194710]=12;J[194711]=-2147483632;b=J[102815];J[a+40>>2]=J[102814];J[a+44>>2]=b;b=J[102813];J[a+32>>2]=J[102812];J[a+36>>2]=b;b=J[102811];J[a+24>>2]=J[102810];J[a+28>>2]=b;b=J[102809];J[a+16>> -2]=J[102808];J[a+20>>2]=b;b=J[102807];J[a+8>>2]=J[102806];J[a+12>>2]=b;b=J[102805];J[a>>2]=J[102804];J[a+4>>2]=b;J[a+48>>2]=0;J[194712]=73;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778848;if((c|0)==1)break da;J[194713]=a;J[194714]=13;J[194715]=-2147483632;J[a+48>>2]=J[102835];b=J[102834];J[a+40>>2]=J[102833];J[a+44>>2]=b;b=J[102832];J[a+32>>2]=J[102831];J[a+36>>2]=b;b=J[102830];J[a+24>>2]=J[102829];J[a+28>>2]=b;b=J[102828];J[a+16>>2]=J[102827];J[a+20>>2]=b;b=J[102826];J[a+8>>2]=J[102825]; -J[a+12>>2]=b;b=J[102824];J[a>>2]=J[102823];J[a+4>>2]=b;J[a+52>>2]=0;J[194716]=74;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778864;if((c|0)==1)break da;J[194717]=a;J[194718]=12;J[194719]=-2147483632;b=J[102854];J[a+40>>2]=J[102853];J[a+44>>2]=b;b=J[102852];J[a+32>>2]=J[102851];J[a+36>>2]=b;b=J[102850];J[a+24>>2]=J[102849];J[a+28>>2]=b;b=J[102848];J[a+16>>2]=J[102847];J[a+20>>2]=b;b=J[102846];J[a+8>>2]=J[102845];J[a+12>>2]=b;b=J[102844];J[a>>2]=J[102843];J[a+4>>2]=b;J[a+48>>2]=0;J[194720]= -75;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778880;if((c|0)==1)break da;J[194721]=a;J[194722]=20;J[194723]=-2147483624;e=Mb(a,411448,80),f=0,J[e+80>>2]=f;J[194724]=76;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778896;if((c|0)==1)break da;J[194725]=a;J[194726]=10;J[194727]=-2147483636;b=J[102898];J[a+32>>2]=J[102897];J[a+36>>2]=b;b=J[102896];J[a+24>>2]=J[102895];J[a+28>>2]=b;b=J[102894];J[a+16>>2]=J[102893];J[a+20>>2]=b;b=J[102892];J[a+8>>2]=J[102891];J[a+12>>2]=b;b=J[102890]; -J[a>>2]=J[102889];J[a+4>>2]=b;J[a+40>>2]=0;J[194728]=77;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=778912;if((c|0)==1)break da;J[194729]=a;J[194730]=14;J[194731]=-2147483632;b=J[102919];J[a+48>>2]=J[102918];J[a+52>>2]=b;b=J[102917];J[a+40>>2]=J[102916];J[a+44>>2]=b;b=J[102915];J[a+32>>2]=J[102914];J[a+36>>2]=b;b=J[102913];J[a+24>>2]=J[102912];J[a+28>>2]=b;b=J[102911];J[a+16>>2]=J[102910];J[a+20>>2]=b;b=J[102909];J[a+8>>2]=J[102908];J[a+12>>2]=b;b=J[102907];J[a>>2]=J[102906];J[a+4>>2]=b; -J[a+56>>2]=0;J[194732]=78;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778928;if((c|0)==1)break da;J[194733]=a;J[194734]=11;J[194735]=-2147483636;J[a+40>>2]=J[102940];b=J[102939];J[a+32>>2]=J[102938];J[a+36>>2]=b;b=J[102937];J[a+24>>2]=J[102936];J[a+28>>2]=b;b=J[102935];J[a+16>>2]=J[102934];J[a+20>>2]=b;b=J[102933];J[a+8>>2]=J[102932];J[a+12>>2]=b;b=J[102931];J[a>>2]=J[102930];J[a+4>>2]=b;J[a+44>>2]=0;J[194736]=79;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;b=778944;if((c|0)==1)break da; -J[194737]=a;J[194738]=10;J[194739]=-2147483636;b=J[102960];J[a+32>>2]=J[102959];J[a+36>>2]=b;b=J[102958];J[a+24>>2]=J[102957];J[a+28>>2]=b;b=J[102956];J[a+16>>2]=J[102955];J[a+20>>2]=b;b=J[102954];J[a+8>>2]=J[102953];J[a+12>>2]=b;b=J[102952];J[a>>2]=J[102951];J[a+4>>2]=b;J[a+40>>2]=0;J[194740]=80;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=778960;if((c|0)==1)break da;J[194741]=a;J[194742]=21;J[194743]=-2147483624;e=Mb(a,411884,84),f=0,J[e+84>>2]=f;J[194744]=81;J[195395]=0;a=_(1078,80)|0; -c=J[195395];J[195395]=0;b=778976;if((c|0)==1)break da;J[194745]=a;J[194746]=17;J[194747]=-2147483628;e=Mb(a,412008,68),f=0,J[e+68>>2]=f;J[194748]=82;J[195395]=0;a=_(1078,112)|0;c=J[195395];J[195395]=0;b=778992;if((c|0)==1)break da;J[194749]=a;J[194750]=26;J[194751]=-2147483620;e=Mb(a,412116,104),f=0,J[e+104>>2]=f;J[194752]=83;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779008;if((c|0)==1)break da;J[194753]=a;J[194754]=15;J[194755]=-2147483632;J[a+56>>2]=J[103079];b=J[103078];J[a+48>>2]=J[103077]; -J[a+52>>2]=b;b=J[103076];J[a+40>>2]=J[103075];J[a+44>>2]=b;b=J[103074];J[a+32>>2]=J[103073];J[a+36>>2]=b;b=J[103072];J[a+24>>2]=J[103071];J[a+28>>2]=b;b=J[103070];J[a+16>>2]=J[103069];J[a+20>>2]=b;b=J[103068];J[a+8>>2]=J[103067];J[a+12>>2]=b;b=J[103066];J[a>>2]=J[103065];J[a+4>>2]=b;J[a+60>>2]=0;J[194756]=84;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779024;if((c|0)==1)break da;J[194757]=a;J[194758]=15;J[194759]=-2147483632;J[a+56>>2]=J[103102];b=J[103101];J[a+48>>2]=J[103100];J[a+52>>2]= -b;b=J[103099];J[a+40>>2]=J[103098];J[a+44>>2]=b;b=J[103097];J[a+32>>2]=J[103096];J[a+36>>2]=b;b=J[103095];J[a+24>>2]=J[103094];J[a+28>>2]=b;b=J[103093];J[a+16>>2]=J[103092];J[a+20>>2]=b;b=J[103091];J[a+8>>2]=J[103090];J[a+12>>2]=b;b=J[103089];J[a>>2]=J[103088];J[a+4>>2]=b;J[a+60>>2]=0;J[194760]=85;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779040;if((c|0)==1)break da;J[194761]=a;J[194762]=16;J[194763]=-2147483628;b=J[103126];J[a+56>>2]=J[103125];J[a+60>>2]=b;b=J[103124];J[a+48>>2]=J[103123]; -J[a+52>>2]=b;b=J[103122];J[a+40>>2]=J[103121];J[a+44>>2]=b;b=J[103120];J[a+32>>2]=J[103119];J[a+36>>2]=b;b=J[103118];J[a+24>>2]=J[103117];J[a+28>>2]=b;b=J[103116];J[a+16>>2]=J[103115];J[a+20>>2]=b;b=J[103114];J[a+8>>2]=J[103113];J[a+12>>2]=b;b=J[103112];J[a>>2]=J[103111];J[a+4>>2]=b;J[a+64>>2]=0;J[194764]=86;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779056;if((c|0)==1)break da;J[194765]=a;J[194766]=13;J[194767]=-2147483632;J[a+48>>2]=J[103148];b=J[103147];J[a+40>>2]=J[103146];J[a+44>>2]= -b;b=J[103145];J[a+32>>2]=J[103144];J[a+36>>2]=b;b=J[103143];J[a+24>>2]=J[103142];J[a+28>>2]=b;b=J[103141];J[a+16>>2]=J[103140];J[a+20>>2]=b;b=J[103139];J[a+8>>2]=J[103138];J[a+12>>2]=b;b=J[103137];J[a>>2]=J[103136];J[a+4>>2]=b;J[a+52>>2]=0;J[194768]=87;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779072;if((c|0)==1)break da;J[194769]=a;J[194770]=14;J[194771]=-2147483632;b=J[103171];J[a+48>>2]=J[103170];J[a+52>>2]=b;b=J[103169];J[a+40>>2]=J[103168];J[a+44>>2]=b;b=J[103167];J[a+32>>2]=J[103166]; -J[a+36>>2]=b;b=J[103165];J[a+24>>2]=J[103164];J[a+28>>2]=b;b=J[103163];J[a+16>>2]=J[103162];J[a+20>>2]=b;b=J[103161];J[a+8>>2]=J[103160];J[a+12>>2]=b;b=J[103159];J[a>>2]=J[103158];J[a+4>>2]=b;J[a+56>>2]=0;J[194772]=88;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779088;if((c|0)==1)break da;J[194773]=a;J[194774]=18;J[194775]=-2147483628;e=Mb(a,412720,72),f=0,J[e+72>>2]=f;J[194776]=89;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779104;if((c|0)==1)break da;J[194777]=a;J[194778]=16;J[194779]= --2147483628;b=J[103221];J[a+56>>2]=J[103220];J[a+60>>2]=b;b=J[103219];J[a+48>>2]=J[103218];J[a+52>>2]=b;b=J[103217];J[a+40>>2]=J[103216];J[a+44>>2]=b;b=J[103215];J[a+32>>2]=J[103214];J[a+36>>2]=b;b=J[103213];J[a+24>>2]=J[103212];J[a+28>>2]=b;b=J[103211];J[a+16>>2]=J[103210];J[a+20>>2]=b;b=J[103209];J[a+8>>2]=J[103208];J[a+12>>2]=b;b=J[103207];J[a>>2]=J[103206];J[a+4>>2]=b;J[a+64>>2]=0;J[194780]=90;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779120;if((c|0)==1)break da;J[194781]=a;J[194782]= -18;J[194783]=-2147483628;e=Mb(a,412936,72),f=0,J[e+72>>2]=f;J[194784]=91;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779136;if((c|0)==1)break da;J[194785]=a;J[194786]=17;J[194787]=-2147483628;e=Mb(a,413056,68),f=0,J[e+68>>2]=f;J[194788]=92;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779152;if((c|0)==1)break da;J[194789]=a;J[194790]=14;J[194791]=-2147483632;b=J[103304];J[a+48>>2]=J[103303];J[a+52>>2]=b;b=J[103302];J[a+40>>2]=J[103301];J[a+44>>2]=b;b=J[103300];J[a+32>>2]=J[103299]; -J[a+36>>2]=b;b=J[103298];J[a+24>>2]=J[103297];J[a+28>>2]=b;b=J[103296];J[a+16>>2]=J[103295];J[a+20>>2]=b;b=J[103294];J[a+8>>2]=J[103293];J[a+12>>2]=b;b=J[103292];J[a>>2]=J[103291];J[a+4>>2]=b;J[a+56>>2]=0;J[194792]=93;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779168;if((c|0)==1)break da;J[194793]=a;J[194794]=19;J[194795]=-2147483628;e=Mb(a,413260,76),f=0,J[e+76>>2]=f;J[194796]=94;J[195395]=0;a=_(1078,112)|0;c=J[195395];J[195395]=0;b=779184;if((c|0)==1)break da;J[194797]=a;J[194798]=27; -J[194799]=-2147483620;e=Mb(a,413384,108),f=0,J[e+108>>2]=f;J[194800]=95;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779200;if((c|0)==1)break da;J[194801]=a;J[194802]=16;J[194803]=-2147483628;b=J[103400];J[a+56>>2]=J[103399];J[a+60>>2]=b;b=J[103398];J[a+48>>2]=J[103397];J[a+52>>2]=b;b=J[103396];J[a+40>>2]=J[103395];J[a+44>>2]=b;b=J[103394];J[a+32>>2]=J[103393];J[a+36>>2]=b;b=J[103392];J[a+24>>2]=J[103391];J[a+28>>2]=b;b=J[103390];J[a+16>>2]=J[103389];J[a+20>>2]=b;b=J[103388];J[a+8>>2]=J[103387]; -J[a+12>>2]=b;b=J[103386];J[a>>2]=J[103385];J[a+4>>2]=b;J[a+64>>2]=0;J[194804]=96;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779216;if((c|0)==1)break da;J[194805]=a;J[194806]=16;J[194807]=-2147483628;b=J[103424];J[a+56>>2]=J[103423];J[a+60>>2]=b;b=J[103422];J[a+48>>2]=J[103421];J[a+52>>2]=b;b=J[103420];J[a+40>>2]=J[103419];J[a+44>>2]=b;b=J[103418];J[a+32>>2]=J[103417];J[a+36>>2]=b;b=J[103416];J[a+24>>2]=J[103415];J[a+28>>2]=b;b=J[103414];J[a+16>>2]=J[103413];J[a+20>>2]=b;b=J[103412];J[a+ -8>>2]=J[103411];J[a+12>>2]=b;b=J[103410];J[a>>2]=J[103409];J[a+4>>2]=b;J[a+64>>2]=0;J[194808]=97;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779232;if((c|0)==1)break da;J[194809]=a;J[194810]=16;J[194811]=-2147483628;b=J[103446];J[a+56>>2]=J[103445];J[a+60>>2]=b;b=J[103444];J[a+48>>2]=J[103443];J[a+52>>2]=b;b=J[103442];J[a+40>>2]=J[103441];J[a+44>>2]=b;b=J[103440];J[a+32>>2]=J[103439];J[a+36>>2]=b;b=J[103438];J[a+24>>2]=J[103437];J[a+28>>2]=b;b=J[103436];J[a+16>>2]=J[103435];J[a+20>>2]=b; -b=J[103434];J[a+8>>2]=J[103433];J[a+12>>2]=b;b=J[103432];J[a>>2]=J[103431];J[a+4>>2]=b;J[a+64>>2]=0;J[194812]=98;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779248;if((c|0)==1)break da;J[194813]=a;J[194814]=14;J[194815]=-2147483632;b=J[103471];J[a+48>>2]=J[103470];J[a+52>>2]=b;b=J[103469];J[a+40>>2]=J[103468];J[a+44>>2]=b;b=J[103467];J[a+32>>2]=J[103466];J[a+36>>2]=b;b=J[103465];J[a+24>>2]=J[103464];J[a+28>>2]=b;b=J[103463];J[a+16>>2]=J[103462];J[a+20>>2]=b;b=J[103461];J[a+8>>2]=J[103460]; -J[a+12>>2]=b;b=J[103459];J[a>>2]=J[103458];J[a+4>>2]=b;J[a+56>>2]=0;J[194816]=99;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=779264;if((c|0)==1)break da;J[194817]=a;J[194818]=20;J[194819]=-2147483624;e=Mb(a,413932,80),f=0,J[e+80>>2]=f;J[194820]=100;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779280;if((c|0)==1)break da;J[194821]=a;J[194822]=17;J[194823]=-2147483628;e=Mb(a,414040,68),f=0,J[e+68>>2]=f;J[194824]=101;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=779296;if((c| -0)==1)break da;J[194825]=a;J[194826]=20;J[194827]=-2147483624;e=Mb(a,414136,80),f=0,J[e+80>>2]=f;J[194828]=102;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779312;if((c|0)==1)break da;J[194829]=a;J[194830]=13;J[194831]=-2147483632;J[a+48>>2]=J[103573];b=J[103572];J[a+40>>2]=J[103571];J[a+44>>2]=b;b=J[103570];J[a+32>>2]=J[103569];J[a+36>>2]=b;b=J[103568];J[a+24>>2]=J[103567];J[a+28>>2]=b;b=J[103566];J[a+16>>2]=J[103565];J[a+20>>2]=b;b=J[103564];J[a+8>>2]=J[103563];J[a+12>>2]=b;b=J[103562]; -J[a>>2]=J[103561];J[a+4>>2]=b;J[a+52>>2]=0;J[194832]=103;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=779328;if((c|0)==1)break da;J[194833]=a;J[194834]=20;J[194835]=-2147483624;e=Mb(a,414332,80),f=0,J[e+80>>2]=f;J[194836]=104;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779344;if((c|0)==1)break da;J[194837]=a;J[194838]=15;J[194839]=-2147483632;J[a+56>>2]=J[103626];b=J[103625];J[a+48>>2]=J[103624];J[a+52>>2]=b;b=J[103623];J[a+40>>2]=J[103622];J[a+44>>2]=b;b=J[103621];J[a+32>>2]=J[103620]; -J[a+36>>2]=b;b=J[103619];J[a+24>>2]=J[103618];J[a+28>>2]=b;b=J[103617];J[a+16>>2]=J[103616];J[a+20>>2]=b;b=J[103615];J[a+8>>2]=J[103614];J[a+12>>2]=b;b=J[103613];J[a>>2]=J[103612];J[a+4>>2]=b;J[a+60>>2]=0;J[194840]=105;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779360;if((c|0)==1)break da;J[194841]=a;J[194842]=16;J[194843]=-2147483628;b=J[103651];J[a+56>>2]=J[103650];J[a+60>>2]=b;b=J[103649];J[a+48>>2]=J[103648];J[a+52>>2]=b;b=J[103647];J[a+40>>2]=J[103646];J[a+44>>2]=b;b=J[103645];J[a+ -32>>2]=J[103644];J[a+36>>2]=b;b=J[103643];J[a+24>>2]=J[103642];J[a+28>>2]=b;b=J[103641];J[a+16>>2]=J[103640];J[a+20>>2]=b;b=J[103639];J[a+8>>2]=J[103638];J[a+12>>2]=b;b=J[103637];J[a>>2]=J[103636];J[a+4>>2]=b;J[a+64>>2]=0;J[194844]=106;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779376;if((c|0)==1)break da;J[194845]=a;J[194846]=16;J[194847]=-2147483628;b=J[103676];J[a+56>>2]=J[103675];J[a+60>>2]=b;b=J[103674];J[a+48>>2]=J[103673];J[a+52>>2]=b;b=J[103672];J[a+40>>2]=J[103671];J[a+44>>2]=b; -b=J[103670];J[a+32>>2]=J[103669];J[a+36>>2]=b;b=J[103668];J[a+24>>2]=J[103667];J[a+28>>2]=b;b=J[103666];J[a+16>>2]=J[103665];J[a+20>>2]=b;b=J[103664];J[a+8>>2]=J[103663];J[a+12>>2]=b;b=J[103662];J[a>>2]=J[103661];J[a+4>>2]=b;J[a+64>>2]=0;J[194848]=107;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779392;if((c|0)==1)break da;J[194849]=a;J[194850]=16;J[194851]=-2147483628;b=J[103700];J[a+56>>2]=J[103699];J[a+60>>2]=b;b=J[103698];J[a+48>>2]=J[103697];J[a+52>>2]=b;b=J[103696];J[a+40>>2]=J[103695]; -J[a+44>>2]=b;b=J[103694];J[a+32>>2]=J[103693];J[a+36>>2]=b;b=J[103692];J[a+24>>2]=J[103691];J[a+28>>2]=b;b=J[103690];J[a+16>>2]=J[103689];J[a+20>>2]=b;b=J[103688];J[a+8>>2]=J[103687];J[a+12>>2]=b;b=J[103686];J[a>>2]=J[103685];J[a+4>>2]=b;J[a+64>>2]=0;J[194852]=108;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779408;if((c|0)==1)break da;J[194853]=a;J[194854]=16;J[194855]=-2147483628;b=J[103724];J[a+56>>2]=J[103723];J[a+60>>2]=b;b=J[103722];J[a+48>>2]=J[103721];J[a+52>>2]=b;b=J[103720];J[a+ -40>>2]=J[103719];J[a+44>>2]=b;b=J[103718];J[a+32>>2]=J[103717];J[a+36>>2]=b;b=J[103716];J[a+24>>2]=J[103715];J[a+28>>2]=b;b=J[103714];J[a+16>>2]=J[103713];J[a+20>>2]=b;b=J[103712];J[a+8>>2]=J[103711];J[a+12>>2]=b;b=J[103710];J[a>>2]=J[103709];J[a+4>>2]=b;J[a+64>>2]=0;J[194856]=109;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779424;if((c|0)==1)break da;J[194857]=a;J[194858]=16;J[194859]=-2147483628;b=J[103749];J[a+56>>2]=J[103748];J[a+60>>2]=b;b=J[103747];J[a+48>>2]=J[103746];J[a+52>>2]=b; -b=J[103745];J[a+40>>2]=J[103744];J[a+44>>2]=b;b=J[103743];J[a+32>>2]=J[103742];J[a+36>>2]=b;b=J[103741];J[a+24>>2]=J[103740];J[a+28>>2]=b;b=J[103739];J[a+16>>2]=J[103738];J[a+20>>2]=b;b=J[103737];J[a+8>>2]=J[103736];J[a+12>>2]=b;b=J[103735];J[a>>2]=J[103734];J[a+4>>2]=b;J[a+64>>2]=0;J[194860]=110;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779440;if((c|0)==1)break da;J[194861]=a;J[194862]=16;J[194863]=-2147483628;b=J[103774];J[a+56>>2]=J[103773];J[a+60>>2]=b;b=J[103772];J[a+48>>2]=J[103771]; -J[a+52>>2]=b;b=J[103770];J[a+40>>2]=J[103769];J[a+44>>2]=b;b=J[103768];J[a+32>>2]=J[103767];J[a+36>>2]=b;b=J[103766];J[a+24>>2]=J[103765];J[a+28>>2]=b;b=J[103764];J[a+16>>2]=J[103763];J[a+20>>2]=b;b=J[103762];J[a+8>>2]=J[103761];J[a+12>>2]=b;b=J[103760];J[a>>2]=J[103759];J[a+4>>2]=b;J[a+64>>2]=0;J[194864]=111;J[195395]=0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=779456;if((c|0)==1)break da;J[194865]=a;J[194866]=23;J[194867]=-2147483624;e=Mb(a,415140,92),f=0,J[e+92>>2]=f;J[194868]=112;J[195395]=0;a= -_(1078,80)|0;c=J[195395];J[195395]=0;b=779472;if((c|0)==1)break da;J[194869]=a;J[194870]=18;J[194871]=-2147483628;e=Mb(a,415276,72),f=0,J[e+72>>2]=f;J[194872]=113;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779488;if((c|0)==1)break da;J[194873]=a;J[194874]=18;J[194875]=-2147483628;e=Mb(a,417472,72),f=0,J[e+72>>2]=f;J[194876]=114;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779504;if((c|0)==1)break da;J[194877]=a;J[194878]=14;J[194879]=-2147483632;b=J[104400];J[a+48>>2]=J[104399]; -J[a+52>>2]=b;b=J[104398];J[a+40>>2]=J[104397];J[a+44>>2]=b;b=J[104396];J[a+32>>2]=J[104395];J[a+36>>2]=b;b=J[104394];J[a+24>>2]=J[104393];J[a+28>>2]=b;b=J[104392];J[a+16>>2]=J[104391];J[a+20>>2]=b;b=J[104390];J[a+8>>2]=J[104389];J[a+12>>2]=b;b=J[104388];J[a>>2]=J[104387];J[a+4>>2]=b;J[a+56>>2]=0;J[194880]=115;J[195395]=0;a=_(1078,64)|0;c=J[195395];J[195395]=0;b=779520;if((c|0)==1)break da;J[194881]=a;J[194882]=13;J[194883]=-2147483632;J[a+48>>2]=J[104414];b=J[104413];J[a+40>>2]=J[104412];J[a+44>> -2]=b;b=J[104411];J[a+32>>2]=J[104410];J[a+36>>2]=b;b=J[104409];J[a+24>>2]=J[104408];J[a+28>>2]=b;b=J[104407];J[a+16>>2]=J[104406];J[a+20>>2]=b;b=J[104405];J[a+8>>2]=J[104404];J[a+12>>2]=b;b=J[104403];J[a>>2]=J[104402];J[a+4>>2]=b;J[a+52>>2]=0;J[194884]=116;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779536;if((c|0)==1)break da;J[194885]=a;J[194886]=18;J[194887]=-2147483628;e=Mb(a,417664,72),f=0,J[e+72>>2]=f;J[194888]=117;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b=779552;if((c|0)== -1)break da;J[194889]=a;J[194890]=16;J[194891]=-2147483628;b=J[104450];J[a+56>>2]=J[104449];J[a+60>>2]=b;b=J[104448];J[a+48>>2]=J[104447];J[a+52>>2]=b;b=J[104446];J[a+40>>2]=J[104445];J[a+44>>2]=b;b=J[104444];J[a+32>>2]=J[104443];J[a+36>>2]=b;b=J[104442];J[a+24>>2]=J[104441];J[a+28>>2]=b;b=J[104440];J[a+16>>2]=J[104439];J[a+20>>2]=b;b=J[104438];J[a+8>>2]=J[104437];J[a+12>>2]=b;b=J[104436];J[a>>2]=J[104435];J[a+4>>2]=b;J[a+64>>2]=0;J[194892]=118;J[195395]=0;a=_(1078,80)|0;c=J[195395];J[195395]=0;b= -779568;if((c|0)==1)break da;J[194893]=a;J[194894]=16;J[194895]=-2147483628;b=J[104467];J[a+56>>2]=J[104466];J[a+60>>2]=b;b=J[104465];J[a+48>>2]=J[104464];J[a+52>>2]=b;b=J[104463];J[a+40>>2]=J[104462];J[a+44>>2]=b;b=J[104461];J[a+32>>2]=J[104460];J[a+36>>2]=b;b=J[104459];J[a+24>>2]=J[104458];J[a+28>>2]=b;b=J[104457];J[a+16>>2]=J[104456];J[a+20>>2]=b;b=J[104455];J[a+8>>2]=J[104454];J[a+12>>2]=b;b=J[104453];J[a>>2]=J[104452];J[a+4>>2]=b;J[a+64>>2]=0;J[194896]=119;J[195395]=0;a=_(1078,80)|0;c=J[195395]; -J[195395]=0;b=779584;if((c|0)==1)break da;J[194897]=a;J[194898]=16;J[194899]=-2147483628;b=J[104484];J[a+56>>2]=J[104483];J[a+60>>2]=b;b=J[104482];J[a+48>>2]=J[104481];J[a+52>>2]=b;b=J[104480];J[a+40>>2]=J[104479];J[a+44>>2]=b;b=J[104478];J[a+32>>2]=J[104477];J[a+36>>2]=b;b=J[104476];J[a+24>>2]=J[104475];J[a+28>>2]=b;b=J[104474];J[a+16>>2]=J[104473];J[a+20>>2]=b;b=J[104472];J[a+8>>2]=J[104471];J[a+12>>2]=b;b=J[104470];J[a>>2]=J[104469];J[a+4>>2]=b;J[a+64>>2]=0;J[194900]=120;J[195395]=0;a=_(1078,80)| -0;c=J[195395];J[195395]=0;b=779600;if((c|0)==1)break da;J[194901]=a;J[194902]=16;J[194903]=-2147483628;b=J[104501];J[a+56>>2]=J[104500];J[a+60>>2]=b;b=J[104499];J[a+48>>2]=J[104498];J[a+52>>2]=b;b=J[104497];J[a+40>>2]=J[104496];J[a+44>>2]=b;b=J[104495];J[a+32>>2]=J[104494];J[a+36>>2]=b;b=J[104493];J[a+24>>2]=J[104492];J[a+28>>2]=b;b=J[104491];J[a+16>>2]=J[104490];J[a+20>>2]=b;b=J[104489];J[a+8>>2]=J[104488];J[a+12>>2]=b;b=J[104487];J[a>>2]=J[104486];J[a+4>>2]=b;J[a+64>>2]=0;J[194904]=121;J[195395]= -0;a=_(1078,96)|0;c=J[195395];J[195395]=0;b=779616;if((c|0)==1)break da;J[194905]=a;J[194906]=23;J[194907]=-2147483624;e=Mb(a,418012,92),f=0,J[e+92>>2]=f;J[194908]=122;J[195395]=0;a=_(1078,96)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break ca;b=779632}a=Z()|0;while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);b=b-16|0;if((b|0)!=777680)continue;break}ba(a|0);B()}J[194909]=a;J[194910]=22;J[194911]=-2147483624;e=Mb(a,418108,88),f=0,J[e+88>>2]=f;b=xb-864|0;xb=b;J[b+8>>2]=0;a=Pb(48);J[b+16>>2]=10;J[b+20>>2]=-2147483636; -J[b+12>>2]=a;c=J[104559];J[a+32>>2]=J[104558];J[a+36>>2]=c;c=J[104557];J[a+24>>2]=J[104556];J[a+28>>2]=c;c=J[104555];J[a+16>>2]=J[104554];J[a+20>>2]=c;c=J[104553];J[a+8>>2]=J[104552];J[a+12>>2]=c;c=J[104551];J[a>>2]=J[104550];J[a+4>>2]=c;J[a+40>>2]=0;J[195395]=0;J[b+24>>2]=1;a=_(1078,48)|0;c=J[195395];J[195395]=0;ea:{fa:{if((c|0)!=1){J[b+28>>2]=a;J[b+32>>2]=8;J[b+36>>2]=-2147483636;c=J[104568];J[a+24>>2]=J[104567];J[a+28>>2]=c;c=J[104566];J[a+16>>2]=J[104565];J[a+20>>2]=c;c=J[104564];J[a+8>>2]=J[104563]; -J[a+12>>2]=c;c=J[104562];J[a>>2]=J[104561];J[a+4>>2]=c;J[a+32>>2]=0;J[195395]=0;J[b+40>>2]=2;a=_(1078,48)|0;c=J[195395];J[195395]=0;ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{_a:{$a:{ab:{bb:{cb:{if((c|0)!=1){J[b+44>>2]=a;J[b+48>>2]=9;J[b+52>>2]=-2147483636;J[a+32>>2]=J[104578];c=J[104577];J[a+24>>2]=J[104576];J[a+28>>2]=c;c=J[104575];J[a+16>>2]=J[104574];J[a+ -20>>2]=c;c=J[104573];J[a+8>>2]=J[104572];J[a+12>>2]=c;c=J[104571];J[a>>2]=J[104570];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+56>>2]=3;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break cb;J[b+60>>2]=a;c=b- -64|0;J[c>>2]=9;J[c+4>>2]=-2147483636;J[a+32>>2]=J[104588];c=J[104587];J[a+24>>2]=J[104586];J[a+28>>2]=c;c=J[104585];J[a+16>>2]=J[104584];J[a+20>>2]=c;c=J[104583];J[a+8>>2]=J[104582];J[a+12>>2]=c;c=J[104581];J[a>>2]=J[104580];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+72>>2]=4;a=_(1078,32)| -0;c=J[195395];J[195395]=0;if((c|0)==1)break bb;J[b+76>>2]=a;J[b+80>>2]=5;J[b+84>>2]=-2147483640;J[a+16>>2]=J[104594];c=J[104593];J[a+8>>2]=J[104592];J[a+12>>2]=c;c=J[104591];J[a>>2]=J[104590];J[a+4>>2]=c;J[a+20>>2]=0;J[195395]=0;J[b+88>>2]=5;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ab;J[b+92>>2]=a;J[b+96>>2]=9;J[b+100>>2]=-2147483636;J[a+32>>2]=J[104604];c=J[104603];J[a+24>>2]=J[104602];J[a+28>>2]=c;c=J[104601];J[a+16>>2]=J[104600];J[a+20>>2]=c;c=J[104599];J[a+8>>2]=J[104598];J[a+ -12>>2]=c;c=J[104597];J[a>>2]=J[104596];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+104>>2]=6;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break $a;J[b+108>>2]=a;J[b+112>>2]=9;J[b+116>>2]=-2147483636;J[a+32>>2]=J[104614];c=J[104613];J[a+24>>2]=J[104612];J[a+28>>2]=c;c=J[104611];J[a+16>>2]=J[104610];J[a+20>>2]=c;c=J[104609];J[a+8>>2]=J[104608];J[a+12>>2]=c;c=J[104607];J[a>>2]=J[104606];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+120>>2]=7;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break _a; -J[b+124>>2]=a;J[b+128>>2]=9;J[b+132>>2]=-2147483636;J[a+32>>2]=J[104624];c=J[104623];J[a+24>>2]=J[104622];J[a+28>>2]=c;c=J[104621];J[a+16>>2]=J[104620];J[a+20>>2]=c;c=J[104619];J[a+8>>2]=J[104618];J[a+12>>2]=c;c=J[104617];J[a>>2]=J[104616];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+136>>2]=8;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Za;J[b+140>>2]=a;J[b+144>>2]=9;J[b+148>>2]=-2147483636;J[a+32>>2]=J[104634];c=J[104633];J[a+24>>2]=J[104632];J[a+28>>2]=c;c=J[104631];J[a+16>>2]=J[104630]; -J[a+20>>2]=c;c=J[104629];J[a+8>>2]=J[104628];J[a+12>>2]=c;c=J[104627];J[a>>2]=J[104626];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+152>>2]=9;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ya;J[b+156>>2]=a;J[b+160>>2]=9;J[b+164>>2]=-2147483636;J[a+32>>2]=J[104644];c=J[104643];J[a+24>>2]=J[104642];J[a+28>>2]=c;c=J[104641];J[a+16>>2]=J[104640];J[a+20>>2]=c;c=J[104639];J[a+8>>2]=J[104638];J[a+12>>2]=c;c=J[104637];J[a>>2]=J[104636];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+168>>2]=10;a=_(1078,48)| -0;c=J[195395];J[195395]=0;if((c|0)==1)break Xa;J[b+172>>2]=a;J[b+176>>2]=9;J[b+180>>2]=-2147483636;J[a+32>>2]=J[104654];c=J[104653];J[a+24>>2]=J[104652];J[a+28>>2]=c;c=J[104651];J[a+16>>2]=J[104650];J[a+20>>2]=c;c=J[104649];J[a+8>>2]=J[104648];J[a+12>>2]=c;c=J[104647];J[a>>2]=J[104646];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+184>>2]=11;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Wa;J[b+188>>2]=a;J[b+192>>2]=9;J[b+196>>2]=-2147483636;J[a+32>>2]=J[104664];c=J[104663];J[a+24>>2]=J[104662]; -J[a+28>>2]=c;c=J[104661];J[a+16>>2]=J[104660];J[a+20>>2]=c;c=J[104659];J[a+8>>2]=J[104658];J[a+12>>2]=c;c=J[104657];J[a>>2]=J[104656];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+200>>2]=12;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Va;J[b+204>>2]=a;J[b+208>>2]=9;J[b+212>>2]=-2147483636;J[a+32>>2]=J[104674];c=J[104673];J[a+24>>2]=J[104672];J[a+28>>2]=c;c=J[104671];J[a+16>>2]=J[104670];J[a+20>>2]=c;c=J[104669];J[a+8>>2]=J[104668];J[a+12>>2]=c;c=J[104667];J[a>>2]=J[104666];J[a+4>>2]=c;J[a+ -36>>2]=0;J[195395]=0;J[b+216>>2]=13;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ua;J[b+220>>2]=a;J[b+224>>2]=9;J[b+228>>2]=-2147483636;J[a+32>>2]=J[104684];c=J[104683];J[a+24>>2]=J[104682];J[a+28>>2]=c;c=J[104681];J[a+16>>2]=J[104680];J[a+20>>2]=c;c=J[104679];J[a+8>>2]=J[104678];J[a+12>>2]=c;c=J[104677];J[a>>2]=J[104676];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+232>>2]=14;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ta;J[b+236>>2]=a;J[b+240>>2]=9;J[b+244>>2]=-2147483636;J[a+ -32>>2]=J[104694];c=J[104693];J[a+24>>2]=J[104692];J[a+28>>2]=c;c=J[104691];J[a+16>>2]=J[104690];J[a+20>>2]=c;c=J[104689];J[a+8>>2]=J[104688];J[a+12>>2]=c;c=J[104687];J[a>>2]=J[104686];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+248>>2]=15;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Sa;J[b+252>>2]=a;J[b+256>>2]=9;J[b+260>>2]=-2147483636;J[a+32>>2]=J[104704];c=J[104703];J[a+24>>2]=J[104702];J[a+28>>2]=c;c=J[104701];J[a+16>>2]=J[104700];J[a+20>>2]=c;c=J[104699];J[a+8>>2]=J[104698];J[a+12>> -2]=c;c=J[104697];J[a>>2]=J[104696];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+264>>2]=16;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ra;J[b+268>>2]=a;J[b+272>>2]=9;J[b+276>>2]=-2147483636;J[a+32>>2]=J[104714];c=J[104713];J[a+24>>2]=J[104712];J[a+28>>2]=c;c=J[104711];J[a+16>>2]=J[104710];J[a+20>>2]=c;c=J[104709];J[a+8>>2]=J[104708];J[a+12>>2]=c;c=J[104707];J[a>>2]=J[104706];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+280>>2]=17;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Qa;J[b+ -284>>2]=a;J[b+288>>2]=9;J[b+292>>2]=-2147483636;J[a+32>>2]=J[104724];c=J[104723];J[a+24>>2]=J[104722];J[a+28>>2]=c;c=J[104721];J[a+16>>2]=J[104720];J[a+20>>2]=c;c=J[104719];J[a+8>>2]=J[104718];J[a+12>>2]=c;c=J[104717];J[a>>2]=J[104716];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+296>>2]=18;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Pa;J[b+300>>2]=a;J[b+304>>2]=14;J[b+308>>2]=-2147483632;c=J[104739];J[a+48>>2]=J[104738];J[a+52>>2]=c;c=J[104737];J[a+40>>2]=J[104736];J[a+44>>2]=c;c=J[104735]; -J[a+32>>2]=J[104734];J[a+36>>2]=c;c=J[104733];J[a+24>>2]=J[104732];J[a+28>>2]=c;c=J[104731];J[a+16>>2]=J[104730];J[a+20>>2]=c;c=J[104729];J[a+8>>2]=J[104728];J[a+12>>2]=c;c=J[104727];J[a>>2]=J[104726];J[a+4>>2]=c;J[a+56>>2]=0;J[195395]=0;J[b+312>>2]=19;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Oa;J[b+316>>2]=a;J[b+320>>2]=12;J[b+324>>2]=-2147483632;c=J[104752];J[a+40>>2]=J[104751];J[a+44>>2]=c;c=J[104750];J[a+32>>2]=J[104749];J[a+36>>2]=c;c=J[104748];J[a+24>>2]=J[104747];J[a+28>>2]= -c;c=J[104746];J[a+16>>2]=J[104745];J[a+20>>2]=c;c=J[104744];J[a+8>>2]=J[104743];J[a+12>>2]=c;c=J[104742];J[a>>2]=J[104741];J[a+4>>2]=c;J[a+48>>2]=0;J[195395]=0;J[b+328>>2]=20;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Na;J[b+332>>2]=a;J[b+336>>2]=14;J[b+340>>2]=-2147483632;c=J[104767];J[a+48>>2]=J[104766];J[a+52>>2]=c;c=J[104765];J[a+40>>2]=J[104764];J[a+44>>2]=c;c=J[104763];J[a+32>>2]=J[104762];J[a+36>>2]=c;c=J[104761];J[a+24>>2]=J[104760];J[a+28>>2]=c;c=J[104759];J[a+16>>2]=J[104758]; -J[a+20>>2]=c;c=J[104757];J[a+8>>2]=J[104756];J[a+12>>2]=c;c=J[104755];J[a>>2]=J[104754];J[a+4>>2]=c;J[a+56>>2]=0;J[195395]=0;J[b+344>>2]=21;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ma;J[b+348>>2]=a;J[b+352>>2]=12;J[b+356>>2]=-2147483632;c=J[104780];J[a+40>>2]=J[104779];J[a+44>>2]=c;c=J[104778];J[a+32>>2]=J[104777];J[a+36>>2]=c;c=J[104776];J[a+24>>2]=J[104775];J[a+28>>2]=c;c=J[104774];J[a+16>>2]=J[104773];J[a+20>>2]=c;c=J[104772];J[a+8>>2]=J[104771];J[a+12>>2]=c;c=J[104770];J[a>>2]= -J[104769];J[a+4>>2]=c;J[a+48>>2]=0;J[195395]=0;J[b+360>>2]=22;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break La;J[b+364>>2]=a;J[b+368>>2]=13;J[b+372>>2]=-2147483632;J[a+48>>2]=J[104794];c=J[104793];J[a+40>>2]=J[104792];J[a+44>>2]=c;c=J[104791];J[a+32>>2]=J[104790];J[a+36>>2]=c;c=J[104789];J[a+24>>2]=J[104788];J[a+28>>2]=c;c=J[104787];J[a+16>>2]=J[104786];J[a+20>>2]=c;c=J[104785];J[a+8>>2]=J[104784];J[a+12>>2]=c;c=J[104783];J[a>>2]=J[104782];J[a+4>>2]=c;J[a+52>>2]=0;J[195395]=0;J[b+376>> -2]=23;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ka;J[b+380>>2]=a;J[b+384>>2]=11;J[b+388>>2]=-2147483636;J[a+40>>2]=J[104806];c=J[104805];J[a+32>>2]=J[104804];J[a+36>>2]=c;c=J[104803];J[a+24>>2]=J[104802];J[a+28>>2]=c;c=J[104801];J[a+16>>2]=J[104800];J[a+20>>2]=c;c=J[104799];J[a+8>>2]=J[104798];J[a+12>>2]=c;c=J[104797];J[a>>2]=J[104796];J[a+4>>2]=c;J[a+44>>2]=0;J[195395]=0;J[b+392>>2]=24;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ja;J[b+396>>2]=a;J[b+400>>2]=10;J[b+404>> -2]=-2147483636;c=J[104817];J[a+32>>2]=J[104816];J[a+36>>2]=c;c=J[104815];J[a+24>>2]=J[104814];J[a+28>>2]=c;c=J[104813];J[a+16>>2]=J[104812];J[a+20>>2]=c;c=J[104811];J[a+8>>2]=J[104810];J[a+12>>2]=c;c=J[104809];J[a>>2]=J[104808];J[a+4>>2]=c;J[a+40>>2]=0;J[195395]=0;J[b+408>>2]=25;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ia;J[b+412>>2]=a;J[b+416>>2]=12;J[b+420>>2]=-2147483632;c=J[104830];J[a+40>>2]=J[104829];J[a+44>>2]=c;c=J[104828];J[a+32>>2]=J[104827];J[a+36>>2]=c;c=J[104826];J[a+ -24>>2]=J[104825];J[a+28>>2]=c;c=J[104824];J[a+16>>2]=J[104823];J[a+20>>2]=c;c=J[104822];J[a+8>>2]=J[104821];J[a+12>>2]=c;c=J[104820];J[a>>2]=J[104819];J[a+4>>2]=c;J[a+48>>2]=0;J[195395]=0;J[b+424>>2]=26;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ha;J[b+428>>2]=a;J[b+432>>2]=9;J[b+436>>2]=-2147483636;J[a+32>>2]=J[104840];c=J[104839];J[a+24>>2]=J[104838];J[a+28>>2]=c;c=J[104837];J[a+16>>2]=J[104836];J[a+20>>2]=c;c=J[104835];J[a+8>>2]=J[104834];J[a+12>>2]=c;c=J[104833];J[a>>2]=J[104832]; -J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+440>>2]=27;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ga;J[b+444>>2]=a;J[b+448>>2]=11;J[b+452>>2]=-2147483636;J[a+40>>2]=J[104852];c=J[104851];J[a+32>>2]=J[104850];J[a+36>>2]=c;c=J[104849];J[a+24>>2]=J[104848];J[a+28>>2]=c;c=J[104847];J[a+16>>2]=J[104846];J[a+20>>2]=c;c=J[104845];J[a+8>>2]=J[104844];J[a+12>>2]=c;c=J[104843];J[a>>2]=J[104842];J[a+4>>2]=c;J[a+44>>2]=0;J[195395]=0;J[b+456>>2]=28;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Fa; -J[b+460>>2]=a;J[b+464>>2]=10;J[b+468>>2]=-2147483636;c=J[104863];J[a+32>>2]=J[104862];J[a+36>>2]=c;c=J[104861];J[a+24>>2]=J[104860];J[a+28>>2]=c;c=J[104859];J[a+16>>2]=J[104858];J[a+20>>2]=c;c=J[104857];J[a+8>>2]=J[104856];J[a+12>>2]=c;c=J[104855];J[a>>2]=J[104854];J[a+4>>2]=c;J[a+40>>2]=0;J[195395]=0;J[b+472>>2]=29;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ea;J[b+476>>2]=a;J[b+480>>2]=12;J[b+484>>2]=-2147483632;c=J[104876];J[a+40>>2]=J[104875];J[a+44>>2]=c;c=J[104874];J[a+32>>2]=J[104873]; -J[a+36>>2]=c;c=J[104872];J[a+24>>2]=J[104871];J[a+28>>2]=c;c=J[104870];J[a+16>>2]=J[104869];J[a+20>>2]=c;c=J[104868];J[a+8>>2]=J[104867];J[a+12>>2]=c;c=J[104866];J[a>>2]=J[104865];J[a+4>>2]=c;J[a+48>>2]=0;J[195395]=0;J[b+488>>2]=30;a=_(1078,80)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Da;J[b+492>>2]=a;J[b+496>>2]=16;J[b+500>>2]=-2147483628;c=J[104893];J[a+56>>2]=J[104892];J[a+60>>2]=c;c=J[104891];J[a+48>>2]=J[104890];J[a+52>>2]=c;c=J[104889];J[a+40>>2]=J[104888];J[a+44>>2]=c;c=J[104887];J[a+32>> -2]=J[104886];J[a+36>>2]=c;c=J[104885];J[a+24>>2]=J[104884];J[a+28>>2]=c;c=J[104883];J[a+16>>2]=J[104882];J[a+20>>2]=c;c=J[104881];J[a+8>>2]=J[104880];J[a+12>>2]=c;c=J[104879];J[a>>2]=J[104878];J[a+4>>2]=c;J[a+64>>2]=0;J[195395]=0;J[b+504>>2]=31;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ca;J[b+508>>2]=a;J[b+512>>2]=14;J[b+516>>2]=-2147483632;c=J[104908];J[a+48>>2]=J[104907];J[a+52>>2]=c;c=J[104906];J[a+40>>2]=J[104905];J[a+44>>2]=c;c=J[104904];J[a+32>>2]=J[104903];J[a+36>>2]=c;c=J[104902]; -J[a+24>>2]=J[104901];J[a+28>>2]=c;c=J[104900];J[a+16>>2]=J[104899];J[a+20>>2]=c;c=J[104898];J[a+8>>2]=J[104897];J[a+12>>2]=c;c=J[104896];J[a>>2]=J[104895];J[a+4>>2]=c;J[a+56>>2]=0;J[195395]=0;J[b+520>>2]=32;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ba;J[b+524>>2]=a;J[b+528>>2]=14;J[b+532>>2]=-2147483632;c=J[104923];J[a+48>>2]=J[104922];J[a+52>>2]=c;c=J[104921];J[a+40>>2]=J[104920];J[a+44>>2]=c;c=J[104919];J[a+32>>2]=J[104918];J[a+36>>2]=c;c=J[104917];J[a+24>>2]=J[104916];J[a+28>>2]= -c;c=J[104915];J[a+16>>2]=J[104914];J[a+20>>2]=c;c=J[104913];J[a+8>>2]=J[104912];J[a+12>>2]=c;c=J[104911];J[a>>2]=J[104910];J[a+4>>2]=c;J[a+56>>2]=0;J[195395]=0;J[b+536>>2]=33;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Aa;J[b+540>>2]=a;J[b+544>>2]=12;J[b+548>>2]=-2147483632;c=J[104936];J[a+40>>2]=J[104935];J[a+44>>2]=c;c=J[104934];J[a+32>>2]=J[104933];J[a+36>>2]=c;c=J[104932];J[a+24>>2]=J[104931];J[a+28>>2]=c;c=J[104930];J[a+16>>2]=J[104929];J[a+20>>2]=c;c=J[104928];J[a+8>>2]=J[104927]; -J[a+12>>2]=c;c=J[104926];J[a>>2]=J[104925];J[a+4>>2]=c;J[a+48>>2]=0;J[195395]=0;J[b+552>>2]=34;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break za;J[b+556>>2]=a;J[b+560>>2]=13;J[b+564>>2]=-2147483632;J[a+48>>2]=J[104950];c=J[104949];J[a+40>>2]=J[104948];J[a+44>>2]=c;c=J[104947];J[a+32>>2]=J[104946];J[a+36>>2]=c;c=J[104945];J[a+24>>2]=J[104944];J[a+28>>2]=c;c=J[104943];J[a+16>>2]=J[104942];J[a+20>>2]=c;c=J[104941];J[a+8>>2]=J[104940];J[a+12>>2]=c;c=J[104939];J[a>>2]=J[104938];J[a+4>>2]=c;J[a+ -52>>2]=0;J[195395]=0;J[b+568>>2]=35;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ya;J[b+572>>2]=a;J[b+576>>2]=13;J[b+580>>2]=-2147483632;J[a+48>>2]=J[104964];c=J[104963];J[a+40>>2]=J[104962];J[a+44>>2]=c;c=J[104961];J[a+32>>2]=J[104960];J[a+36>>2]=c;c=J[104959];J[a+24>>2]=J[104958];J[a+28>>2]=c;c=J[104957];J[a+16>>2]=J[104956];J[a+20>>2]=c;c=J[104955];J[a+8>>2]=J[104954];J[a+12>>2]=c;c=J[104953];J[a>>2]=J[104952];J[a+4>>2]=c;J[a+52>>2]=0;J[195395]=0;J[b+584>>2]=36;a=_(1078,32)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break xa;J[b+588>>2]=a;J[b+592>>2]=6;J[b+596>>2]=-2147483640;c=J[104971];J[a+16>>2]=J[104970];J[a+20>>2]=c;c=J[104969];J[a+8>>2]=J[104968];J[a+12>>2]=c;c=J[104967];J[a>>2]=J[104966];J[a+4>>2]=c;J[a+24>>2]=0;J[195395]=0;J[b+600>>2]=37;a=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break wa;J[b+604>>2]=a;J[b+608>>2]=4;J[b+612>>2]=-2147483640;c=J[104976];J[a+8>>2]=J[104975];J[a+12>>2]=c;c=J[104974];J[a>>2]=J[104973];J[a+4>>2]=c;J[a+16>>2]=0;J[195395]=0;J[b+616>>2]=38;a=_(1078, -48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break va;J[b+620>>2]=a;J[b+624>>2]=9;J[b+628>>2]=-2147483636;J[a+32>>2]=J[104986];c=J[104985];J[a+24>>2]=J[104984];J[a+28>>2]=c;c=J[104983];J[a+16>>2]=J[104982];J[a+20>>2]=c;c=J[104981];J[a+8>>2]=J[104980];J[a+12>>2]=c;c=J[104979];J[a>>2]=J[104978];J[a+4>>2]=c;J[a+36>>2]=0;J[195395]=0;J[b+632>>2]=39;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ua;J[b+636>>2]=a;J[b+640>>2]=10;J[b+644>>2]=-2147483636;c=J[104997];J[a+32>>2]=J[104996];J[a+36>>2]=c; -c=J[104995];J[a+24>>2]=J[104994];J[a+28>>2]=c;c=J[104993];J[a+16>>2]=J[104992];J[a+20>>2]=c;c=J[104991];J[a+8>>2]=J[104990];J[a+12>>2]=c;c=J[104989];J[a>>2]=J[104988];J[a+4>>2]=c;J[a+40>>2]=0;J[195395]=0;J[b+648>>2]=40;a=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ta;J[b+652>>2]=a;J[b+656>>2]=5;J[b+660>>2]=-2147483640;J[a+16>>2]=J[105003];c=J[105002];J[a+8>>2]=J[105001];J[a+12>>2]=c;c=J[105E3];J[a>>2]=J[104999];J[a+4>>2]=c;J[a+20>>2]=0;J[195395]=0;J[b+664>>2]=41;a=_(1078,32)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break sa;J[b+668>>2]=a;J[b+672>>2]=5;J[b+676>>2]=-2147483640;J[a+16>>2]=J[105009];c=J[105008];J[a+8>>2]=J[105007];J[a+12>>2]=c;c=J[105006];J[a>>2]=J[105005];J[a+4>>2]=c;J[a+20>>2]=0;J[195395]=0;J[b+680>>2]=42;a=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ra;J[b+684>>2]=a;J[b+688>>2]=5;J[b+692>>2]=-2147483640;J[a+16>>2]=J[105015];c=J[105014];J[a+8>>2]=J[105013];J[a+12>>2]=c;c=J[105012];J[a>>2]=J[105011];J[a+4>>2]=c;J[a+20>>2]=0;J[195395]=0;J[b+696>>2]=43;a=_(1078, -32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break qa;J[b+700>>2]=a;J[b+704>>2]=7;J[b+708>>2]=-2147483640;J[a+24>>2]=J[105023];c=J[105022];J[a+16>>2]=J[105021];J[a+20>>2]=c;c=J[105020];J[a+8>>2]=J[105019];J[a+12>>2]=c;c=J[105018];J[a>>2]=J[105017];J[a+4>>2]=c;J[a+28>>2]=0;J[195395]=0;J[b+712>>2]=44;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break pa;J[b+716>>2]=a;J[b+720>>2]=10;J[b+724>>2]=-2147483636;c=J[105034];J[a+32>>2]=J[105033];J[a+36>>2]=c;c=J[105032];J[a+24>>2]=J[105031];J[a+28>>2]=c; -c=J[105030];J[a+16>>2]=J[105029];J[a+20>>2]=c;c=J[105028];J[a+8>>2]=J[105027];J[a+12>>2]=c;c=J[105026];J[a>>2]=J[105025];J[a+4>>2]=c;J[a+40>>2]=0;J[195395]=0;J[b+728>>2]=45;a=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break oa;J[b+732>>2]=a;J[b+736>>2]=7;J[b+740>>2]=-2147483640;J[a+24>>2]=J[105042];c=J[105041];J[a+16>>2]=J[105040];J[a+20>>2]=c;c=J[105039];J[a+8>>2]=J[105038];J[a+12>>2]=c;c=J[105037];J[a>>2]=J[105036];J[a+4>>2]=c;J[a+28>>2]=0;J[195395]=0;J[b+744>>2]=46;a=_(1078,32)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break na;J[b+748>>2]=a;J[b+752>>2]=7;J[b+756>>2]=-2147483640;J[a+24>>2]=J[105050];c=J[105049];J[a+16>>2]=J[105048];J[a+20>>2]=c;c=J[105047];J[a+8>>2]=J[105046];J[a+12>>2]=c;c=J[105045];J[a>>2]=J[105044];J[a+4>>2]=c;J[a+28>>2]=0;J[195395]=0;J[b+760>>2]=47;a=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ma;J[b+764>>2]=a;J[b+768>>2]=6;J[b+772>>2]=-2147483640;c=J[105057];J[a+16>>2]=J[105056];J[a+20>>2]=c;c=J[105055];J[a+8>>2]=J[105054];J[a+12>>2]=c;c=J[105053];J[a>>2]= -J[105052];J[a+4>>2]=c;J[a+24>>2]=0;J[195395]=0;J[b+776>>2]=48;a=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break la;J[b+780>>2]=a;J[b+784>>2]=5;J[b+788>>2]=-2147483640;J[a+16>>2]=J[105063];c=J[105062];J[a+8>>2]=J[105061];J[a+12>>2]=c;c=J[105060];J[a>>2]=J[105059];J[a+4>>2]=c;J[a+20>>2]=0;J[195395]=0;J[b+792>>2]=49;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ka;J[b+796>>2]=a;J[b+800>>2]=13;J[b+804>>2]=-2147483632;J[a+48>>2]=J[105077];c=J[105076];J[a+40>>2]=J[105075];J[a+44>>2]=c; -c=J[105074];J[a+32>>2]=J[105073];J[a+36>>2]=c;c=J[105072];J[a+24>>2]=J[105071];J[a+28>>2]=c;c=J[105070];J[a+16>>2]=J[105069];J[a+20>>2]=c;c=J[105068];J[a+8>>2]=J[105067];J[a+12>>2]=c;c=J[105066];J[a>>2]=J[105065];J[a+4>>2]=c;J[a+52>>2]=0;J[195395]=0;J[b+808>>2]=50;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ja;J[b+812>>2]=a;J[b+816>>2]=13;J[b+820>>2]=-2147483632;J[a+48>>2]=J[105091];c=J[105090];J[a+40>>2]=J[105089];J[a+44>>2]=c;c=J[105088];J[a+32>>2]=J[105087];J[a+36>>2]=c;c=J[105086]; -J[a+24>>2]=J[105085];J[a+28>>2]=c;c=J[105084];J[a+16>>2]=J[105083];J[a+20>>2]=c;c=J[105082];J[a+8>>2]=J[105081];J[a+12>>2]=c;c=J[105080];J[a>>2]=J[105079];J[a+4>>2]=c;J[a+52>>2]=0;J[195395]=0;J[b+824>>2]=51;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ia;J[b+828>>2]=a;J[b+832>>2]=15;J[b+836>>2]=-2147483632;J[a+56>>2]=J[105107];c=J[105106];J[a+48>>2]=J[105105];J[a+52>>2]=c;c=J[105104];J[a+40>>2]=J[105103];J[a+44>>2]=c;c=J[105102];J[a+32>>2]=J[105101];J[a+36>>2]=c;c=J[105100];J[a+24>>2]= -J[105099];J[a+28>>2]=c;c=J[105098];J[a+16>>2]=J[105097];J[a+20>>2]=c;c=J[105096];J[a+8>>2]=J[105095];J[a+12>>2]=c;c=J[105094];J[a>>2]=J[105093];J[a+4>>2]=c;J[a+60>>2]=0;J[195395]=0;J[b+840>>2]=52;a=_(1078,64)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ha;J[b+844>>2]=a;J[b+848>>2]=12;J[b+852>>2]=-2147483632;c=J[105120];J[a+40>>2]=J[105119];J[a+44>>2]=c;c=J[105118];J[a+32>>2]=J[105117];J[a+36>>2]=c;c=J[105116];J[a+24>>2]=J[105115];J[a+28>>2]=c;c=J[105114];J[a+16>>2]=J[105113];J[a+20>>2]=c;c=J[105112]; -J[a+8>>2]=J[105111];J[a+12>>2]=c;c=J[105110];J[a>>2]=J[105109];J[a+4>>2]=c;J[a+48>>2]=0;J[194913]=0;J[194914]=0;J[194912]=779652;a=b+856|0;c=0;while(1){J[195395]=0;d=(b+8|0)+(c<<4)|0;ma(3142,b+856|0,779648,779652,d|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break ga;c=c+1|0;if((c|0)!=53)continue;break}while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);a=a-16|0;if((a|0)!=(b+8|0))continue;break}xb=b+864|0;break ea}c=Z()|0;a=b+40|0;break fa}c=Z()|0;a=b+56|0;break fa}c=Z()|0;a=b+72|0;break fa}c=Z()|0;a=b+88|0;break fa}c= -Z()|0;a=b+104|0;break fa}c=Z()|0;a=b+120|0;break fa}c=Z()|0;a=b+136|0;break fa}c=Z()|0;a=b+152|0;break fa}c=Z()|0;a=b+168|0;break fa}c=Z()|0;a=b+184|0;break fa}c=Z()|0;a=b+200|0;break fa}c=Z()|0;a=b+216|0;break fa}c=Z()|0;a=b+232|0;break fa}c=Z()|0;a=b+248|0;break fa}c=Z()|0;a=b+264|0;break fa}c=Z()|0;a=b+280|0;break fa}c=Z()|0;a=b+296|0;break fa}c=Z()|0;a=b+312|0;break fa}c=Z()|0;a=b+328|0;break fa}c=Z()|0;a=b+344|0;break fa}c=Z()|0;a=b+360|0;break fa}c=Z()|0;a=b+376|0;break fa}c=Z()|0;a=b+392|0; -break fa}c=Z()|0;a=b+408|0;break fa}c=Z()|0;a=b+424|0;break fa}c=Z()|0;a=b+440|0;break fa}c=Z()|0;a=b+456|0;break fa}c=Z()|0;a=b+472|0;break fa}c=Z()|0;a=b+488|0;break fa}c=Z()|0;a=b+504|0;break fa}c=Z()|0;a=b+520|0;break fa}c=Z()|0;a=b+536|0;break fa}c=Z()|0;a=b+552|0;break fa}c=Z()|0;a=b+568|0;break fa}c=Z()|0;a=b+584|0;break fa}c=Z()|0;a=b+600|0;break fa}c=Z()|0;a=b+616|0;break fa}c=Z()|0;a=b+632|0;break fa}c=Z()|0;a=b+648|0;break fa}c=Z()|0;a=b+664|0;break fa}c=Z()|0;a=b+680|0;break fa}c=Z()| -0;a=b+696|0;break fa}c=Z()|0;a=b+712|0;break fa}c=Z()|0;a=b+728|0;break fa}c=Z()|0;a=b+744|0;break fa}c=Z()|0;a=b+760|0;break fa}c=Z()|0;a=b+776|0;break fa}c=Z()|0;a=b+792|0;break fa}c=Z()|0;a=b+808|0;break fa}c=Z()|0;a=b+824|0;break fa}c=Z()|0;a=b+840|0;break fa}c=Z()|0;rn(779648,J[194913]);break b}c=Z()|0;a=b+24|0}break b}J[194915]=0;H[779671]=0;J[194918]=60;J[194919]=0;H[779683]=1;J[194921]=62;J[194922]=0;H[779695]=1;a=Pb(16);J[194924]=a;J[194925]=2;J[194926]=-2147483644;J[a+8>>2]=0;J[a>>2]=60; -J[a+4>>2]=47;a=Pb(16);J[194927]=a;J[194928]=2;J[194929]=-2147483644;J[a+8>>2]=0;J[a>>2]=47;J[a+4>>2]=62;J[194930]=32;J[194931]=0;H[779731]=1;J[194933]=61;J[194934]=0;H[779743]=1;J[194936]=34;J[194937]=0;H[779755]=1;a=Pb(32);J[194939]=a;J[194940]=4;J[194941]=-2147483640;b=J[185962];J[a+8>>2]=J[185961];J[a+12>>2]=b;b=J[185960];J[a>>2]=J[185959];J[a+4>>2]=b;J[a+16>>2]=0;a=Pb(32);J[194942]=a;J[194943]=5;J[194944]=-2147483640;J[a+16>>2]=J[185968];b=J[185967];J[a+8>>2]=J[185966];J[a+12>>2]=b;b=J[185965]; -J[a>>2]=J[185964];J[a+4>>2]=b;J[a+20>>2]=0;J[194945]=49;J[194946]=0;H[779791]=1;J[194948]=48;J[194949]=0;H[779803]=1;J[194951]=0;H[779815]=0;J[194998]=779860;J[194980]=42;return}while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);a=a-16|0;if((a|0)!=(b+8|0))continue;break}ba(c|0);B()}function RY(a){a=a|0;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,C=0,D=0,E=0;p=xb-32|0;xb=p;if(!J[a+4>>2])H[a+33|0]=1;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+8>>2]](b);a:{b:{f= -J[a+16>>2];e=J[a+12>>2];if(f>>>0<=e+3>>>0)break b;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[a+44>>2]=c;b=e+4|0;J[a+12>>2]=b;if((c|0)!=-1698247209)break b;c=0;if(e+5>>>0>>0){c=K[e+4|0]|K[e+5|0]<<8;b=e+6|0;J[a+12>>2]=b}I[a+48>>1]=c;c:{if(b+1>>>0>=f>>>0){c=b;break c}g=K[b|0]|K[b+1|0]<<8;c=b+2|0;J[a+12>>2]=c}I[a+50>>1]=g;b=0;d:{if(c+1>>>0>=f>>>0){g=0;break d}g=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[a+52>>1]=g;if(c+1>>>0>>0){b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[a+54>>1]=b;b=0; -e:{if(c+1>>>0>=f>>>0){g=0;break e}g=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[a+56>>1]=g;if(c+1>>>0>>0){b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[a+58>>1]=b;b=0;f:{if(c+3>>>0>=f>>>0){g=0;break f}g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+12>>2]=c}J[a+60>>2]=g;if(c+1>>>0>>0){b=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}I[a+64>>1]=b;b=J[a+12>>2];f=J[a+16>>2];while(1){c=0;if(b>>>0>>0){c=K[b|0];b=b+1|0;J[a+12>>2]=b}if(!c)continue;break}J[a+12>>2]=b-1;f=J[a+16>>2];c=J[a+12>>2];break a}c= -J[a+4>>2];J[a+12>>2]=c;I[a+58>>1]=0;I[a+60>>1]=0;I[a+62>>1]=0;I[a+64>>1]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0}b=0;g:{if(c+1>>>0>=f>>>0){g=0;break g}g=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[a+68>>1]=g;if(c+1>>>0>>0){b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[a+70>>1]=b;b=0;h:{if(c+1>>>0>=f>>>0){g=0;break h}g=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[a+72>>1]=g;if(c+3>>>0>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+12>>2]=c}J[a+76>>2]=b;b=0;i:{if(c+1>>> -0>=f>>>0){g=0;break i}g=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[a+80>>1]=g;if(c+3>>>0>>0){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+12>>2]=c}J[a+84>>2]=b;b=0;if(c+1>>>0>>0){b=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}I[a+88>>1]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+100>>2]](b,a+44|0,a+68|0);j:{if(!(L[a+70>>1]!=9|(L[a+68>>1]-1&65535)>>>0>=2|(L[a+72>>1]|512)!=768)){Kz(J[a+172>>2],8);k:{if(J[a+248>>2]){l:{if(J[a+44>>2]==-1698247209){f=I[a+56>>1];c=I[a+54>>1];g=I[a+52>>1];b=I[a+50>>1]; -e=Ab[J[J[a>>2]+100>>2]](a)|0;m:{if(!e|(e|0)==96)break m;n=96/+(e>>>0);q=Mh(n*+(f|0));n:{if(R(q)<2147483648){f=~~q;break n}f=-2147483648}q=Mh(n*+(c|0));o:{if(R(q)<2147483648){c=~~q;break o}c=-2147483648}q=Mh(n*+(g|0));p:{if(R(q)<2147483648){g=~~q;break p}g=-2147483648}n=Mh(n*+(b|0));if(R(n)<2147483648){b=~~n;break m}b=-2147483648}d=c-b|0;e=d>>31;e=(d^e)-e>>>0<2;b=e?J[a+176>>2]:b;c=e?J[a+184>>2]:c;d=f-g|0;e=d>>31;if((d^e)-e>>>0>1)break l;f=J[a+188>>2];g=J[a+180>>2];break l}f=J[a+188>>2];c=J[a+184>> -2];g=J[a+180>>2];b=J[a+176>>2]}J[a+92>>2]=b;J[a+104>>2]=f;J[a+100>>2]=c;J[a+96>>2]=g;Jz(J[a+172>>2],b<<16>>16,g<<16>>16);Iz(J[a+172>>2],J[a+100>>2]-J[a+92>>2]<<16>>16,J[a+104>>2]-J[a+96>>2]<<16>>16);Gz(J[a+172>>2],I[a+92>>1],I[a+96>>1]);Fz(J[a+172>>2],J[a+100>>2]-J[a+92>>2]<<16>>16,J[a+104>>2]-J[a+96>>2]<<16>>16);q:{if(J[a+44>>2]!=-1698247209)break q;b=L[a+58>>1];if(!b)break q;n=1440/+(b>>>0);Hz(J[a+172>>2],n,n)}if(J[a+248>>2])break k}H[a+192|0]=1}break j}H[a+33|0]=1}r:{s:{t:{u:{v:{w:{if(!K[a+33| -0]){l=a+4|0;b=J[a+12>>2];d=J[a+16>>2];while(1){j=d-b|0;if(j>>>0<=5){H[a+33|0]=1;break t}J[a+40>>2]=b-J[a+4>>2];c=0;if(b+3>>>0>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[a+12>>2]=b;j=d-b|0}if(j>>>0>>0){H[a+33|0]=1;break t}x:{y:{if(b+1>>>0>=d>>>0){c=c<<1;J[a+36>>2]=c;b=b+c|0;c=J[a+8>>2];J[a+16>>2]=b>>>0>>0?b:c;break y}f=K[b|0]|K[b+1|0]<<8;g=c<<1;J[a+36>>2]=g;c=b+2|0;J[a+12>>2]=c;g=c+g|0;e=J[a+8>>2];g=e>>>0>g>>>0?g:e;J[a+16>>2]=g;z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{if(f>>> -0<=761){if(f>>>0<=495){va:switch(f-247|0){case 52:break qa;case 51:break sa;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 14:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 49:case 50:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 76:case 77:case 78:case 79:case 80:case 81:break x; -case 17:break H;case 55:break I;case 16:break J;case 13:break K;case 15:break L;case 12:break M;case 82:break N;case 11:break O;case 48:break S;case 54:break _;case 53:break $;case 75:break aa;case 0:break fa;default:break va}if(!f)break y;if((f|0)!=30)break x;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+276>>2]](b);wa:{e=a+124|0;c=J[e>>2];if(!c){H[J[e+16>>2]+33|0]=1;b=0;break wa}f=Pb(304);J[195395]=0;b=_(3482,f|0)|0;g=J[195395];J[195395]=0;if((g|0)==1){a=Z()|0;Kb(f);break r}wf(b);f=J[c+72>>2];J[b+72>>2]=(f|0)== -(c+12|0)?b+12|0:f;f=J[c+76>>2];J[b+76>>2]=(f|0)==(c+52|0)?b+52|0:f;J[b+80>>2]=J[c+80>>2];J[b+84>>2]=J[c+84>>2];J[b+88>>2]=J[c+88>>2];I[b+92>>1]=L[c+92>>1];O[b+96>>3]=O[c+96>>3];O[b+104>>3]=O[c+104>>3];I[b+112>>1]=L[c+112>>1];I[b+114>>1]=L[c+114>>1];I[b+116>>1]=L[c+116>>1];I[b+118>>1]=L[c+118>>1];H[b+120|0]=K[c+120|0];H[b+121|0]=K[c+121|0];I[b+122>>1]=L[c+122>>1];I[b+124>>1]=L[c+124>>1];I[b+126>>1]=L[c+126>>1];I[b+128>>1]=L[c+128>>1];H[b+130|0]=K[c+130|0];H[b+131|0]=K[c+131|0];J[b+132>>2]=J[c+132>> -2];J[b+136>>2]=J[c+136>>2];J[b+140>>2]=J[c+140>>2];I[b+144>>1]=L[c+144>>1];I[b+146>>1]=L[c+146>>1];I[b+148>>1]=L[c+148>>1];I[b+150>>1]=L[c+150>>1];I[b+152>>1]=L[c+152>>1];I[b+154>>1]=L[c+154>>1];I[b+156>>1]=L[c+156>>1];J[b+168>>2]=0;J[b+172>>2]=0;J[b+160>>2]=0;J[b+164>>2]=1072693248;J[b+192>>2]=0;J[b+196>>2]=0;J[b+184>>2]=0;J[b+188>>2]=1072693248;J[b+176>>2]=0;J[b+180>>2]=0;J[b+200>>2]=0;J[b+204>>2]=0;Rd(b+208|0,c+208|0);Rd(b+256|0,c+256|0);c=J[e+8>>2];if((c|0)!=J[e+12>>2]){J[c>>2]=b;J[e+8>>2]=c+ -4;J[e>>2]=b;break wa}xa:{i=e+4|0;h=J[i>>2];f=c-h|0;j=f>>2;g=j+1|0;if(g>>>0<1073741824){d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>g>>>0?d:g;if(d){if(d>>>0>=1073741824)break xa;g=Pb(d<<2)}else g=0;f=g+(j<<2)|0;J[f>>2]=b;j=f+4|0;if((c|0)!=(h|0)){while(1){f=f-4|0;c=c-4|0;J[f>>2]=J[c>>2];if((c|0)!=(h|0))continue;break}c=J[i>>2]}J[e+12>>2]=g+(d<<2);J[e+8>>2]=j;J[e+4>>2]=f;if(c)Kb(c);J[e>>2]=b;break wa}Ve(i);B()}zd();B()}J[a+172>>2]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}switch(f-496|0){case 35:break ra; -case 56:break ua;case 27:break B;case 28:break C;case 29:break D;case 30:break E;case 26:break F;case 25:break G;case 17:break P;case 31:break T;case 33:break U;case 48:break V;case 36:break W;case 68:break Z;case 0:break ba;case 9:break ea;default:break x}}ya:{if(f>>>0<=1563){if(f>>>0<=1039)switch(f-762|0){case 42:break ma;case 43:break na;case 0:break da;case 1:break ga;case 2:break ha;default:break x}za:switch(f-1040|0){case 25:break ta;case 8:break ya;case 1:case 3:case 4:case 7:case 9:case 10:case 12:case 13:case 14:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break x; -case 0:break Q;case 2:break R;case 6:break X;case 5:break Y;case 15:break ja;case 11:break la;default:break za}if((f|0)==1313)break ia;if((f|0)!=1336)break x;d=xb-32|0;xb=d;Aa:{Ba:{b=J[a+12>>2];Ca:{if(M[a+16>>2]<=b+1>>>0)break Ca;g=K[b|0]|K[b+1|0]<<8;J[a+12>>2]=b+2;if(!g)break Ca;J[d+20>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[195395]=0;H[d+28|0]=0;J[d+24>>2]=d+12;c=P(g,12);b=_(1078,c|0)|0;f=J[195395];J[195395]=0;if((f|0)==1){a=Z()|0;Da:{if(K[d+28|0])break Da;e=J[d+24>>2];b=J[e>>2];if(!b)break Da;c=J[e+ -4>>2];g=b;if((c|0)!=(b|0)){while(1){f=c-12|0;g=J[f>>2];if(g){J[c-8>>2]=g;Kb(g)}c=f;if((c|0)!=(b|0))continue;break}g=J[J[d+24>>2]>>2]}J[e+4>>2]=b;Kb(g)}break r}J[d+12>>2]=b;J[d+20>>2]=b+c;f=b;b=c-12|0;b=(b-((b>>>0)%12|0)|0)+12|0;D=d,E=Nb(f,0,b)+b|0,J[D+16>>2]=E;f=0;while(1){b=0;c=J[a+12>>2];if(M[a+16>>2]>c+1>>>0){b=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}c=J[d+12>>2]+P(f,12)|0;e=J[c>>2];i=J[c+4>>2]-e>>2;Ea:{if(i>>>0>>0){J[195395]=0;$(2010,c|0,b-i|0);b=J[195395];J[195395]=0;if((b|0)!=1)break Ea;break Ba}if(b>>> -0>=i>>>0)break Ea;J[c+4>>2]=e+(b<<2)}f=f+1|0;if((g|0)!=(f|0))continue;break}h=J[a+16>>2];b=J[a+12>>2];i=0;o=J[d+12>>2];while(1){c=o+P(i,12)|0;j=J[c>>2];k=J[c+4>>2]-j>>>2&65535;Fa:{if(!k)break Fa;f=0;Ga:{if(h>>>0<=b+1>>>0){c=0;break Ga}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[a+12>>2]=b}I[j>>1]=c;if(h>>>0>b+1>>>0){f=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[a+12>>2]=b}I[j+2>>1]=f;f=1;if(k>>>0<2)break Fa;while(1){m=j+(f<<2)|0;e=0;Ha:{if(h>>>0<=b+1>>>0){c=0;break Ha}c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[a+12>>2]=b}I[m>>1]=c;if(h>>> -0>b+1>>>0){e=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[a+12>>2]=b}I[m+2>>1]=e;f=f+1|0;if((k|0)!=(f|0))continue;break}}i=i+1|0;if((g|0)!=(i|0))continue;break}J[195395]=0;$(3359,a|0,d+12|0);b=J[195395];J[195395]=0;if((b|0)==1)break Ba;c=J[d+12>>2];if(!c)break Ca;b=c;f=J[d+16>>2];if((b|0)!=(f|0)){while(1){b=f-12|0;g=J[b>>2];if(g){J[f-8>>2]=g;Kb(g)}f=b;if((b|0)!=(c|0))continue;break}b=J[d+12>>2]}J[d+16>>2]=c;Kb(b)}xb=d+32|0;break Aa}a=Z()|0;aB(d+12|0);break r}break x}Ia:{Ja:{if(f>>>0<=2337){Ka:switch(f-1564|0){case 1:break pa; -case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break x;case 10:break A;case 0:break ka;default:break Ka}switch(f-2071|0){case 3:break oa;case 25:break Ia;case 0:break Ja;case 1:case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:break x;default:break ca}}La:{Ma:{Na:{Oa:{if(f>>>0<=2850){if((f|0)==2338)break Oa;if((f|0)==2368)break Na;if((f|0)!=2610)break x;d=0;o=0;g=0;h=0;t= -0;i=0;j=0;e=xb-16|0;xb=e;J[e+8>>2]=0;J[e+12>>2]=0;f=J[a+16>>2];c=J[a+12>>2];if(f>>>0>c+1>>>0){j=(K[c|0]|K[c+1|0]<<8)<<16>>16;c=c+2|0;J[a+12>>2]=c}if(f>>>0>c+1>>>0){i=(K[c|0]|K[c+1|0]<<8)<<16>>16;c=c+2|0;J[a+12>>2]=c}if(f>>>0>c+1>>>0){g=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}Pa:{if(f>>>0<=c+1>>>0){b=c;break Pa}t=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}u=g<<16>>16;Qa:{if((u|0)<=0)break Qa;if(t&6){Ra:{if(f>>>0<=b+1>>>0){c=b;break Ra}o=K[b|0]|K[b+1|0]<<8;c=b+2|0;J[a+12>>2]=c}I[e+8>>1]=o;if(f>>>0>c+1>>> -0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[e+10>>1]=d;d=0;Sa:{if(f>>>0<=c+1>>>0){b=0;break Sa}b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[e+12>>1]=b;Ta:{if(f>>>0<=c+1>>>0){b=c;break Ta}d=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}I[e+14>>1]=d}c=0;k=g&65535;r=Pb(k+1|0);H[k+r|0]=0;Ua:{if((b|0)==(f|0))break Ua;d=f-b|0;d=d>>>0>>0?d:k;m=d&1;if((d|0)!=1){o=d&65534;while(1){Va:{if(b>>>0>=f>>>0){d=0;break Va}d=K[b|0];b=b+1|0;J[a+12>>2]=b}H[c+r|0]=d;d=0;if(b>>>0>>0){d=K[b|0];b=b+1|0;J[a+12>>2]=b}H[r+ -(c|1)|0]=d;c=c+2|0;h=h+2|0;if((o|0)!=(h|0))continue;break}}if(!m)break Ua;d=0;if(b>>>0>>0){d=K[b|0];J[a+12>>2]=b+1}H[c+r|0]=d}d=t&8192;h=!d;c=J[a+36>>2]+(J[a+40>>2]+(J[a+4>>2]-J[a+12>>2]|0)|0)|0;f=k<<1;Wa:{if(!(h&(c|0)>=(f|0))){b=0;if(h|(c|0)>2]+1|0;c=J[a+16>>2];J[a+12>>2]=b>>>0>>0?b:c}b=Pb(f);if(d){if((u|0)<=0)break Wa;m=J[a+16>>2];f=J[a+12>>2];d=0;if((g&65535)!=1){w=k&65534;o=0;while(1){x=d<<1;h=x+b|0;Xa:{if(m>>>0<=f+1>>>0){g=f;c=0;break Xa}g=f+2|0;c=K[f|0]| -K[f+1|0]<<8}I[h>>1]=c;c=g+2|0;c=c>>>0>>0?c:m;J[a+12>>2]=c;h=0;if(m>>>0>c+1>>>0){h=K[c|0]|K[c+1|0]<<8;c=c+2|0}I[(x|2)+b>>1]=h;c=c+2|0;f=c>>>0>>0?c:m;J[a+12>>2]=f;d=d+2|0;o=o+2|0;if((w|0)!=(o|0))continue;break}}if(!(k&1))break Wa;c=(d<<1)+b|0;d=0;if(m>>>0>f+1>>>0){d=K[f|0]|K[f+1|0]<<8;f=f+2|0}I[c>>1]=d;c=f+2|0;J[a+12>>2]=c>>>0>>0?c:m;break Wa}if((u|0)<=0)break Wa;h=J[a+16>>2];c=J[a+12>>2];f=0;if((g&65535)!=1){m=k&65534;o=0;while(1){w=f<<1;d=w+b|0;Ya:{if(h>>>0<=c+1>>>0){g=0;break Ya}g=K[c|0]| -K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[d>>1]=g;d=0;if(h>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[(w|2)+b>>1]=d;f=f+2|0;o=o+2|0;if((m|0)!=(o|0))continue;break}}if(!(k&1))break Wa;g=(f<<1)+b|0;f=0;if(h>>>0>c+1>>>0){f=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}I[g>>1]=f}f=j<<16>>16;g=i<<16>>16;c=xb-16|0;xb=c;d=J[a+248>>2];if(d){J[c>>2]=I[e+8>>1];J[c+4>>2]=I[e+10>>1];J[c+8>>2]=I[e+12>>1];J[c+12>>2]=I[e+14>>1];Ab[J[J[d>>2]+144>>2]](d,f,g,u,t,c,r,b)}Xz(a,r,u,g,f,b);xb=c+16|0;Kb(r);if(!b)break Qa;Kb(b)}xb= -e+16|0;break x}if(f>>>0<=3378){if((f|0)==2851)break La;if((f|0)!=2881)break x;c=p+8|0;Zz(l,c);b=xb-16|0;xb=b;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+112>>2]](f,c,l);Za:{if((J[a+36>>2]&-2)==28){c=J[a+12>>2]+2|0;f=J[a+16>>2];J[a+12>>2]=c>>>0>>0?c:f;break Za}g=I[c+14>>1];e=I[c+12>>1];f=I[c+18>>1];d=I[c+16>>1];J[b+4>>2]=d;J[b>>2]=f;J[b+12>>2]=d+e;J[b+8>>2]=g+f;hn(a,b,b,0,J[c>>2])}xb=b+16|0;break x}if((f|0)==3379)break Ma;if((f|0)!=3907)break x;g=0;f=0;c=J[l+12>>2];e=J[l+8>>2];if(c>>>0>e+3>>>0){g=K[e|0]|K[e+ -1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[l+8>>2]=e}b=p+8|0;J[b>>2]=g;if(c>>>0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+4>>1]=f;f=0;_a:{if(c>>>0<=e+1>>>0){g=0;break _a}g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+6>>1]=g;if(c>>>0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+8>>1]=f;f=0;$a:{if(c>>>0<=e+1>>>0){g=0;break $a}g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+10>>1]=g;if(c>>>0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+12>>1]=f;f=0;ab:{if(c>>>0<=e+1>>>0){g= -0;break ab}g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+14>>1]=g;if(c>>>0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+16>>1]=f;f=0;bb:{if(c>>>0<=e+1>>>0){g=0;break bb}g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+18>>1]=g;if(c>>>0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;J[l+8>>2]=e+2}I[b+20>>1]=f;c=xb-32|0;xb=c;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+124>>2]](f,b,l);g=I[b+16>>1];e=I[b+14>>1];f=I[b+20>>1];d=I[b+18>>1];J[c+20>>2]=d;J[c+16>>2]=f;J[c+28>>2]=d+e;J[c+24>>2]=g+f;g=I[b+8>>1];e=I[b+6>>1];f=I[b+12>> -1];d=I[b+10>>1];J[c+4>>2]=d;J[c>>2]=f;J[c+12>>2]=d+e;J[c+8>>2]=g+f;hn(a,c+16|0,c,L[b+4>>1],J[b>>2]);xb=c+32|0;break x}g=0;f=0;c=0;b=0;i=xb-16|0;xb=i;d=J[a+16>>2];e=J[a+12>>2];if(d>>>0>e+3>>>0){f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[a+12>>2]=e}J[i>>2]=f;if(d>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[i+4>>1]=g;cb:{if(d>>>0<=e+1>>>0){g=0;break cb}g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[i+6>>1]=g;if(d>>>0>e+1>>>0){c=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[i+8>> -1]=c;g=0;if(d>>>0>e+1>>>0){b=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[i+10>>1]=b;if(d>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[i+12>>1]=g;f=0;if(d>>>0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[i+14>>1]=f;db:{eb:{if((J[a+36>>2]&-2)==24){b=e+2|0;J[a+12>>2]=b>>>0>>0?b:d;break eb}fb:{if(J[a+20>>2]){j=d>>>0>e+1>>>0;f=(j<<1)+e|0;h=d>>>0>f+1>>>0;b=(h<<1)+f|0;k=d>>>0>b+1>>>0;b=(k<<1)+b|0;m=b+2|0;g=d>>>0>b+1>>>0;c=g?m:b;h=h|k;gb:{if(!(g|(h|j)))if(c>>>0>=d>>>0)break gb;e=c>>> -0>>0?c+1|0:g?m:h?b:f;J[a+12>>2]=e}if(d>>>0<=e>>>0)break fb;J[a+12>>2]=e+1;break fb}jn(a,f<<16>>16,g<<16>>16);jn(a,b+f<<16>>16,c+g<<16>>16)}if((J[a+36>>2]+(J[a+40>>2]+(J[a+4>>2]-J[a+12>>2]|0)|0)|0)>=0)break eb;H[a+33|0]=1;break db}b=J[a+248>>2];if(b)Ab[J[J[b>>2]+104>>2]](b,i,a+4|0)}xb=i+16|0;break x}g=0;c=0;b=xb-16|0;xb=b;f=J[a+16>>2];e=J[a+12>>2];if(f>>>0>e+3>>>0){c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[a+12>>2]=e}J[b>>2]=c;if(f>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+ -12>>2]=e}I[b+4>>1]=g;g=0;hb:{if(f>>>0<=e+1>>>0){c=0;break hb}c=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[b+6>>1]=c;if(f>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[b+8>>1]=g;g=0;ib:{if(f>>>0<=e+1>>>0){c=0;break ib}c=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[b+10>>1]=c;if(f>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+12>>2]=e}I[b+12>>1]=g;g=0;if(f>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;J[a+12>>2]=e+2}I[b+14>>1]=g;e=0;c=xb-16|0;xb=c;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+108>>2]](f,b,a+4|0);jb:{if((J[a+ -36>>2]&-2)==24){g=J[a+16>>2];f=J[a+12>>2];if(J[b>>2]==15728673){if(g>>>0>f+1>>>0){e=K[f|0]|K[f+1|0]<<8;J[a+12>>2]=f+2}Wz(a,15728673,I[b+10>>1],I[b+12>>1],I[b+14>>1],L[b+4>>1]+e<<16>>16);break jb}f=f+2|0;J[a+12>>2]=g>>>0>f>>>0?f:g;break jb}g=I[b+10>>1];e=I[b+8>>1];f=I[b+14>>1];d=I[b+12>>1];J[c+4>>2]=d;J[c>>2]=f;J[c+12>>2]=d+e;J[c+8>>2]=g+f;hn(a,c,c,0,J[b>>2])}xb=c+16|0;xb=b+16|0;break x}g=0;f=0;c=J[l+12>>2];e=J[l+8>>2];if(c>>>0>e+1>>>0){f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}b=p+8|0;I[b>>1]=f;if(c>>> -0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+2>>1]=g;g=0;kb:{if(c>>>0<=e+1>>>0){f=0;break kb}f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+4>>1]=f;if(c>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+6>>1]=g;g=0;lb:{if(c>>>0<=e+1>>>0){f=0;break lb}f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+8>>1]=f;if(c>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+10>>1]=g;g=0;mb:{if(c>>>0<=e+1>>>0){f=0;break mb}f=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+12>>1]=f;if(c>>>0>e+1>>> -0){g=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[l+8>>2]=e}I[b+14>>1]=g;g=0;if(c>>>0>e+1>>>0){g=K[e|0]|K[e+1|0]<<8;J[l+8>>2]=e+2}I[b+16>>1]=g;c=xb-16|0;xb=c;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+116>>2]](f,b,l);g=L[b+12>>1];e=L[b+10>>1];f=L[b+16>>1];d=L[b+14>>1];J[c+4>>2]=d;J[c>>2]=f;J[c+12>>2]=d+e;J[c+8>>2]=g+f;hn(a,c,c,L[b>>1],0);xb=c+16|0;break x}b=xb-32|0;xb=b;k=a+4|0;Zz(k,b+12|0);nb:{ob:{if((J[a+36>>2]&-2)==28){c=J[a+12>>2]+2|0;f=J[a+16>>2];J[a+12>>2]=c>>>0>>0?c:f;break ob}pb:{if(J[a+20>>2]){c=J[a+16>>2];d=J[a+ -12>>2];e=c>>>0>d+1>>>0;i=(e<<1)+d|0;j=c>>>0>i+1>>>0;f=(j<<1)+i|0;m=c>>>0>f+1>>>0;f=(m<<1)+f|0;o=f+2|0;h=c>>>0>f+1>>>0;g=h?o:f;j=j|m;qb:{if(!(h|(j|e)))if(c>>>0<=g>>>0)break qb;d=c>>>0>g>>>0?g+1|0:h?o:j?f:i;J[a+12>>2]=d}if(c>>>0<=d>>>0)break pb;J[a+12>>2]=d+1;break pb}jn(a,I[b+30>>1],I[b+28>>1]);jn(a,L[b+26>>1]+L[b+30>>1]<<16>>16,L[b+24>>1]+L[b+28>>1]<<16>>16)}if((J[a+36>>2]+(J[a+40>>2]+(J[a+4>>2]-J[a+12>>2]|0)|0)|0)>=0)break ob;H[a+33|0]=1;break nb}c=J[a+248>>2];if(c)Ab[J[J[c>>2]+120>>2]](c,b+12|0, -k)}xb=b+32|0;break x}j=0;h=0;i=0;e=0;g=0;f=0;c=0;b=0;k=J[a+16>>2];d=J[a+12>>2];if(k>>>0>d+1>>>0){h=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){j=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){e=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){i=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){f=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){g=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>> -0>d+1>>>0){b=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){c=(K[d|0]|K[d+1|0]<<8)<<16>>16;J[a+12>>2]=d+2}d=h<<16>>16;j=j<<16>>16;k=e<<16>>16;m=i<<16>>16;i=f<<16>>16;h=g<<16>>16;g=b<<16>>16;c=c<<16>>16;b=J[a+248>>2];if(b){Ab[J[J[b>>2]+132>>2]](b,d,j,k,m,i,h,g,c);e=J[a+248>>2]}else e=0;n=+(g+i|0)*.5;v=+(k|0)-n;q=+(c+h|0)*.5;y=+(m|0)-q;s=Pi(v,y);z=+(d|0)-n;A=+(j|0)-q;C=Pi(z,A);s=s*180/3.141592653589793;s=v<0?y<0?s+360:s:s;v=s*3.141592653589793/180;n=ue(v)*(R(+(i-g|0))*.5)+n;rb:{if(R(n)< -2147483648){b=~~n;break rb}b=-2147483648}n=Fe(v)*(R(+(h-c|0))*.5)+q;sb:{if(R(n)<2147483648){f=~~n;break sb}f=-2147483648}tb:{if(e){Ab[J[J[e>>2]+32>>2]](e,+(f|0),+(b|0));break tb}if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=b;J[a+180>>2]=b;break tb}d=a+176|0;ub:{if((f|0)>=J[d>>2]){d=a+184|0;if((f|0)<=J[d>>2])break ub}J[d>>2]=f}if((b|0)>2]){J[a+180>>2]=b;break tb}if((b|0)<=J[a+188>>2])break tb;J[a+188>>2]=b}e=J[a+172>>2];I[e+140>>1]=f;I[e+142>>1]=b;b=J[a+248>>2];vb:{if(!b){f= -a+176|0;wb:{if(K[a+192|0]){J[a+176>>2]=c;H[a+192|0]=0;J[a+184>>2]=c;J[a+188>>2]=g;J[a+180>>2]=g;b=g;break wb}b=f;xb:{if(J[b>>2]<=(c|0)){b=a+184|0;if(J[b>>2]>=(c|0))break xb}J[b>>2]=c}d=a+180|0;b=J[d>>2];c=g;yb:{if((b|0)<=(c|0)){c=b;d=a+188|0;if((g|0)<=J[d>>2])break yb}J[d>>2]=g;b=c}c=J[f>>2]}zb:{if((c|0)<=(h|0)){f=a+184|0;if((h|0)<=J[f>>2])break zb}J[f>>2]=h}if((b|0)>(i|0)){J[a+180>>2]=i;break vb}if((i|0)<=J[a+188>>2])break vb;J[a+188>>2]=i;break vb}n=C*180/3.141592653589793;Ab[J[J[b>>2]+44>>2]](b, -+(c|0),+(g|0),+(h|0),+(i|0),s,(z<0?A<0?n+360:n:n)-s);b=J[a+248>>2];if(!b)break vb;Ab[J[J[b>>2]+52>>2]](b,1);b=J[a+248>>2];Ab[J[J[b>>2]+56>>2]](b)}break x}j=0;h=0;i=0;e=0;g=0;f=0;c=0;b=0;k=J[a+16>>2];d=J[a+12>>2];if(k>>>0>d+1>>>0){h=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){j=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){e=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){i=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0> -d+1>>>0){f=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){g=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){b=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){c=(K[d|0]|K[d+1|0]<<8)<<16>>16;J[a+12>>2]=d+2}k=h<<16>>16;j=j<<16>>16;e=e<<16>>16;d=i<<16>>16;i=f<<16>>16;h=g<<16>>16;g=b<<16>>16;c=c<<16>>16;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+136>>2]](b,k,j,e,d,i,h,g,c);n=we(c,g,h,i,d,e);q=we(c,g,h,i,j,k);b=J[a+248>>2];Ab:{if(b){Ab[J[J[b>>2]+32>>2]](b, -+(d|0),+(e|0));break Ab}if(K[a+192|0]){J[a+176>>2]=d;H[a+192|0]=0;J[a+184>>2]=d;J[a+188>>2]=e;J[a+180>>2]=e;break Ab}f=a+176|0;Bb:{if((d|0)>=J[f>>2]){f=a+184|0;if((d|0)<=J[f>>2])break Bb}J[f>>2]=d}if((e|0)>2]){J[a+180>>2]=e;break Ab}if((e|0)<=J[a+188>>2])break Ab;J[a+188>>2]=e}b=J[a+172>>2];I[b+140>>1]=d;I[b+142>>1]=e;Cb:{Db:{Eb:{Fb:{b=J[a+248>>2];if(!b){f=a+176|0;Gb:{if(K[a+192|0]){J[a+176>>2]=c;H[a+192|0]=0;J[a+184>>2]=c;J[a+188>>2]=g;J[a+180>>2]=g;b=g;break Gb}b=f;Hb:{if(J[b>>2]<=(c|0)){b= -a+184|0;if(J[b>>2]>=(c|0))break Hb}J[b>>2]=c}m=a+180|0;b=J[m>>2];c=g;Ib:{if((b|0)<=(c|0)){c=b;m=a+188|0;if((g|0)<=J[m>>2])break Ib}J[m>>2]=g;b=c}c=J[f>>2]}Jb:{if((c|0)<=(h|0)){f=a+184|0;if((h|0)<=J[f>>2])break Jb}J[f>>2]=h}if((b|0)<=(i|0))break Fb;c=a+180|0;break Eb}Ab[J[J[b>>2]+44>>2]](b,+(c|0),+(g|0),+(h|0),+(i|0),n,q-n);b=J[a+248>>2];if(!b)break Db;Ab[J[J[b>>2]+36>>2]](b,+(d|0),+(e|0));break Cb}c=a+188|0;if((i|0)<=J[c>>2])break Db}J[c>>2]=i}if(K[a+192|0]){J[a+176>>2]=d;H[a+192|0]=0;J[a+184>>2]= -d;J[a+188>>2]=e;J[a+180>>2]=e;break Cb}c=a+176|0;Kb:{if((d|0)>=J[c>>2]){c=a+184|0;if((d|0)<=J[c>>2])break Kb}J[c>>2]=d}if((e|0)>2]){J[a+180>>2]=e;break Cb}if((e|0)<=J[a+188>>2])break Cb;J[a+188>>2]=e}b=J[a+172>>2];I[b+140>>1]=d;I[b+142>>1]=e;b=J[a+248>>2];if(b){Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+248>>2];Ab[J[J[b>>2]+56>>2]](b)}b=J[a+172>>2];I[b+140>>1]=j;I[b+142>>1]=k;break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}Lb:{if(g>>>0<=c+1>>>0){b=c;break Lb}d=K[c|0]|K[c+ -1|0]<<8;b=c+2|0;J[a+12>>2]=b}c=0;Mb:{if(g>>>0<=b+1>>>0){j=0;break Mb}j=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[a+12>>2]=b}if(g>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[a+12>>2]=b+2}i=e<<16>>16;h=d<<16>>16;f=j<<16>>16;d=c<<16>>16;Nb:{Ob:{b=J[a+248>>2];if(b){Ab[J[J[b>>2]+140>>2]](b,i,h,f,d);b=J[a+248>>2];if(b)break Ob}g=a+176|0;Pb:{if(K[a+192|0]){J[a+176>>2]=d;H[a+192|0]=0;J[a+184>>2]=d;J[a+188>>2]=f;J[a+180>>2]=f;b=f;c=d;break Pb}b=g;Qb:{if((d|0)>=J[b>>2]){b=a+184|0;if((d|0)<=J[b>>2])break Qb}J[b>>2]=d}e= -a+180|0;b=J[e>>2];c=f;Rb:{if((b|0)<=(c|0)){c=b;e=a+188|0;if((f|0)<=J[e>>2])break Rb}J[e>>2]=f;b=c}c=J[g>>2]}Sb:{if((c|0)<=(h|0)){g=a+184|0;if((h|0)<=J[g>>2])break Sb}J[g>>2]=h}if((b|0)>(i|0)){J[a+180>>2]=i;break Nb}if((i|0)<=J[a+188>>2])break Nb;J[a+188>>2]=i;break Nb}Ab[J[J[b>>2]+44>>2]](b,+(d|0),+(f|0),+(h|0),+(i|0),0,360);b=J[a+248>>2];if(!b)break Nb;Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+248>>2];Ab[J[J[b>>2]+56>>2]](b)}b=J[a+172>>2];I[b+140>>1]=(d+h|0)/2;I[b+142>>1]=(f+i|0)/2;break x}d=0;e=0;if(g>>> -0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}i=0;c=e&65535;fn(a+124|0,c);b=J[a+248>>2];if(b)Ab[J[J[b>>2]+148>>2]](b,c,d&65535);k=J[J[a+172>>2]+88>>2];Tb:{if(!k)break Tb;b=L[k+18>>1];if(b){c=a+184|0;f=a+176|0;while(1){e=J[k+32>>2]+(i<<4)|0;if(L[e>>1]>=2){g=0;while(1){j=g<<2;h=I[j+J[e+8>>2]>>1];d=I[e+2>>1];b=J[a+248>>2];Ub:{if(b){Ab[J[J[b>>2]+32>>2]](b,+(h|0),+(d|0));break Ub}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+ -188>>2]=d;J[a+180>>2]=d;break Ub}b=f;Vb:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break Vb}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break Ub}if((d|0)<=J[a+188>>2])break Ub;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[(j+J[e+8>>2]|0)+2>>1];d=I[e+2>>1];b=J[a+248>>2];Wb:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break Wb}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break Wb}b=f;Xb:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break Xb}J[b>>2]= -h}if((d|0)>2]){J[a+180>>2]=d;break Wb}if((d|0)<=J[a+188>>2])break Wb;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[(j+J[e+8>>2]|0)+2>>1];d=I[e+4>>1];b=J[a+248>>2];Yb:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break Yb}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break Yb}b=f;Zb:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break Zb}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break Yb}if((d|0)<=J[a+188>>2])break Yb;J[a+188>>2]=d}b=J[a+172>> -2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[j+J[e+8>>2]>>1];d=I[e+4>>1];b=J[a+248>>2];_b:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break _b}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break _b}b=f;$b:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break $b}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break _b}if((d|0)<=J[a+188>>2])break _b;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[j+J[e+8>>2]>>1];d=I[e+2>>1];b=J[a+248>>2];ac:{if(b){Ab[J[J[b>>2]+36>>2]](b, -+(h|0),+(d|0));break ac}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break ac}b=f;bc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break bc}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break ac}if((d|0)<=J[a+188>>2])break ac;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;g=g+1|0;if(g>>>0>1]>>>1>>>0)continue;break}b=L[k+18>>1]}i=i+1|0;if(i>>>0>16>>>0)continue;break}}b=J[a+248>>2];if(!b)break Tb;Ab[J[J[b>>2]+52>>2]](b,2);b=J[a+248>>2];Ab[J[J[b>> -2]+56>>2]](b)}break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}cc:{if(g>>>0<=c+1>>>0){b=c;break cc}d=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}c=0;dc:{if(g>>>0<=b+1>>>0){j=0;break dc}j=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[a+12>>2]=b}if(g>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[a+12>>2]=b+2}b=e&65535;i=0;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+152>>2]](f,b,d&65535,j<<16>>16,c<<16>>16);fn(a+124|0,b);k=J[J[a+172>>2]+88>>2];ec:{if(!k)break ec;b=L[k+18>>1];if(b){c=a+184|0;f=a+176|0;while(1){e= -J[k+32>>2]+(i<<4)|0;if(L[e>>1]>=2){g=0;while(1){j=g<<2;h=I[j+J[e+8>>2]>>1];d=I[e+2>>1];b=J[a+248>>2];fc:{if(b){Ab[J[J[b>>2]+32>>2]](b,+(h|0),+(d|0));break fc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break fc}b=f;gc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break gc}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break fc}if((d|0)<=J[a+188>>2])break fc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[(j+J[e+8>>2]|0)+2>>1];d=I[e+2>>1];b=J[a+248>>2]; -hc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break hc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break hc}b=f;ic:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break ic}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break hc}if((d|0)<=J[a+188>>2])break hc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[(j+J[e+8>>2]|0)+2>>1];d=I[e+4>>1];b=J[a+248>>2];jc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break jc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h; -H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break jc}b=f;kc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break kc}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break jc}if((d|0)<=J[a+188>>2])break jc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[j+J[e+8>>2]>>1];d=I[e+4>>1];b=J[a+248>>2];lc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break lc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break lc}b=f;mc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break mc}J[b>> -2]=h}if((d|0)>2]){J[a+180>>2]=d;break lc}if((d|0)<=J[a+188>>2])break lc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[j+J[e+8>>2]>>1];d=I[e+2>>1];b=J[a+248>>2];nc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break nc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break nc}b=f;oc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break oc}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break nc}if((d|0)<=J[a+188>>2])break nc;J[a+188>>2]=d}b=J[a+172>> -2];I[b+140>>1]=h;I[b+142>>1]=d;g=g+1|0;if(g>>>0>1]>>>1>>>0)continue;break}b=L[k+18>>1]}i=i+1|0;if(i>>>0>16>>>0)continue;break}}b=J[a+248>>2];if(!b)break ec;Ab[J[J[b>>2]+52>>2]](b,1);b=J[a+248>>2];Ab[J[J[b>>2]+56>>2]](b)}break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=J[a+248>>2];if(b)Ab[J[J[b>>2]+156>>2]](b,d&65535);break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}c=e<<16>>16;f=d<< -16>>16;pc:{qc:{b=J[a+248>>2];if(!b)break qc;Ab[J[J[b>>2]+160>>2]](b,c,f);b=J[a+248>>2];if(!b)break qc;Ab[J[J[b>>2]+36>>2]](b,+(f|0),+(c|0));break pc}if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=c;J[a+180>>2]=c;break pc}b=a+176|0;rc:{if((f|0)>=J[b>>2]){b=a+184|0;if((f|0)<=J[b>>2])break rc}J[b>>2]=f}if((c|0)>2]){J[a+180>>2]=c;break pc}if((c|0)<=J[a+188>>2])break pc;J[a+188>>2]=c}b=J[a+172>>2];I[b+140>>1]=f;I[b+142>>1]=c;b=J[a+248>>2];if(b){Ab[J[J[b>>2]+52>>2]](b,1);b= -J[a+248>>2];Ab[J[J[b>>2]+56>>2]](b)}break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;i=0;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+164>>2]](c,b);fn(a+124|0,b);k=J[J[a+172>>2]+88>>2];sc:{if(!k)break sc;b=L[k+18>>1];if(b){c=a+184|0;f=a+176|0;while(1){e=J[k+32>>2]+(i<<4)|0;if(L[e>>1]>=2){g=0;while(1){j=g<<2;h=I[j+J[e+8>>2]>>1];d=I[e+2>>1];b=J[a+248>>2];tc:{if(b){Ab[J[J[b>>2]+32>>2]](b,+(h|0),+(d|0));break tc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+ -180>>2]=d;break tc}b=f;uc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break uc}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break tc}if((d|0)<=J[a+188>>2])break tc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[(j+J[e+8>>2]|0)+2>>1];d=I[e+2>>1];b=J[a+248>>2];vc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break vc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break vc}b=f;wc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break wc}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break vc}if((d|0)<=J[a+188>>2])break vc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[(j+J[e+8>>2]|0)+2>>1];d=I[e+4>>1];b=J[a+248>>2];xc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break xc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break xc}b=f;yc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break yc}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break xc}if((d|0)<=J[a+188>>2])break xc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>> -1]=h;I[b+142>>1]=d;h=I[j+J[e+8>>2]>>1];d=I[e+4>>1];b=J[a+248>>2];zc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0),+(d|0));break zc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break zc}b=f;Ac:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break Ac}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break zc}if((d|0)<=J[a+188>>2])break zc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;h=I[j+J[e+8>>2]>>1];d=I[e+2>>1];b=J[a+248>>2];Bc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(h|0), -+(d|0));break Bc}if(K[a+192|0]){J[a+184>>2]=h;J[a+176>>2]=h;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break Bc}b=f;Cc:{if((h|0)>=J[b>>2]){b=c;if((h|0)<=J[b>>2])break Cc}J[b>>2]=h}if((d|0)>2]){J[a+180>>2]=d;break Bc}if((d|0)<=J[a+188>>2])break Bc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=h;I[b+142>>1]=d;g=g+1|0;if(g>>>0>1]>>>1>>>0)continue;break}b=L[k+18>>1]}i=i+1|0;if(i>>>0>16>>>0)continue;break}}b=J[a+248>>2];if(!b)break sc;Ab[J[J[b>>2]+52>>2]](b,2);b=J[a+248>>2];Ab[J[J[b>>2]+56>> -2]](b)}break x}d=0;e=0;if(g>>>0>b+5>>>0){e=K[b+2|0]|K[b+3|0]<<8|(K[b+4|0]<<16|K[b+5|0]<<24);c=b+6|0;J[a+12>>2]=c}Dc:{if(g>>>0<=c+1>>>0){b=c;break Dc}d=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}c=0;Ec:{if(g>>>0<=b+1>>>0){f=0;break Ec}f=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[a+12>>2]=b}if(g>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[a+12>>2]=b}j=0;if(g>>>0>b+1>>>0){j=(K[b|0]|K[b+1|0]<<8)<<16>>16;J[a+12>>2]=b+2}Wz(a,e,d<<16>>16,f<<16>>16,c<<16>>16,j<<16>>16);break x}j=0;h=0;i=0;e=0;g=0;f=0;c=0;b=0;k= -J[a+16>>2];d=J[a+12>>2];if(k>>>0>d+1>>>0){h=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){j=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){e=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){i=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){f=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){g=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0;J[a+12>>2]=d}if(k>>>0>d+1>>>0){b=(K[d|0]|K[d+1|0]<<8)<<16>>16;d=d+2|0; -J[a+12>>2]=d}if(k>>>0>d+1>>>0){c=(K[d|0]|K[d+1|0]<<8)<<16>>16;J[a+12>>2]=d+2}k=i<<16>>16;d=e<<16>>16;m=j<<16>>16;o=h<<16>>16;h=f<<16>>16;j=g<<16>>16;g=b<<16>>16;c=c<<16>>16;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+172>>2]](b,k,d,m,o,h,j,g,c);q=we(c,g,j,h,k,d);n=we(c,g,j,h,m,o);e=(g+h|0)/2|0;i=(c+j|0)/2|0;b=J[a+248>>2];Fc:{if(b){Ab[J[J[b>>2]+32>>2]](b,+(i<<16>>16),+(e<<16>>16));break Fc}if(K[a+192|0]){J[a+176>>2]=i;H[a+192|0]=0;J[a+184>>2]=i;J[a+188>>2]=e;J[a+180>>2]=e;break Fc}b=a+176|0;Gc:{if((i|0)>=J[b>> -2]){b=a+184|0;if((i|0)<=J[b>>2])break Gc}J[b>>2]=i}if((e|0)>2]){J[a+180>>2]=e;break Fc}if((e|0)<=J[a+188>>2])break Fc;J[a+188>>2]=e}b=J[a+172>>2];r=i<<16>>16;I[b+140>>1]=r;t=e<<16>>16;I[b+142>>1]=t;b=J[a+248>>2];Hc:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(k|0),+(d|0));break Hc}if(K[a+192|0]){J[a+176>>2]=k;H[a+192|0]=0;J[a+184>>2]=k;J[a+188>>2]=d;J[a+180>>2]=d;break Hc}b=a+176|0;Ic:{if((k|0)>=J[b>>2]){b=a+184|0;if((k|0)<=J[b>>2])break Ic}J[b>>2]=k}if((d|0)>2]){J[a+180>>2]=d;break Hc}if((d| -0)<=J[a+188>>2])break Hc;J[a+188>>2]=d}b=J[a+172>>2];I[b+140>>1]=k;I[b+142>>1]=d;Jc:{Kc:{Lc:{Mc:{b=J[a+248>>2];if(!b){f=a+176|0;Nc:{if(K[a+192|0]){J[a+176>>2]=c;H[a+192|0]=0;J[a+184>>2]=c;J[a+188>>2]=g;J[a+180>>2]=g;b=g;break Nc}b=f;Oc:{if(J[b>>2]<=(c|0)){b=a+184|0;if(J[b>>2]>=(c|0))break Oc}J[b>>2]=c}d=a+180|0;b=J[d>>2];c=g;Pc:{if((b|0)<=(c|0)){c=b;d=a+188|0;if((g|0)<=J[d>>2])break Pc}J[d>>2]=g;b=c}c=J[f>>2]}Qc:{if((c|0)<=(j|0)){f=a+184|0;if((j|0)<=J[f>>2])break Qc}J[f>>2]=j}if((b|0)<=(h|0))break Mc; -c=a+180|0;break Lc}Ab[J[J[b>>2]+44>>2]](b,+(c|0),+(g|0),+(j|0),+(h|0),q,((i|0)>(k|0)?n:(i|0)>(m|0)?n:(e|0)<(o|0)?n:(d|0)<(e|0)?n:n+-360)-q);b=J[a+248>>2];if(!b)break Kc;Ab[J[J[b>>2]+36>>2]](b,+(r|0),+(t|0));break Jc}c=a+188|0;if((h|0)<=J[c>>2])break Kc}J[c>>2]=h}if(K[a+192|0]){J[a+176>>2]=i;H[a+192|0]=0;J[a+184>>2]=i;J[a+188>>2]=e;J[a+180>>2]=e;break Jc}c=a+176|0;Rc:{if((i|0)>=J[c>>2]){c=a+184|0;if((i|0)<=J[c>>2])break Rc}J[c>>2]=i}if((e|0)>2]){J[a+180>>2]=e;break Jc}if((e|0)<=J[a+188>>2])break Jc; -J[a+188>>2]=e}b=J[a+172>>2];I[b+140>>1]=r;I[b+142>>1]=t;b=J[a+248>>2];if(b){Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+248>>2];Ab[J[J[b>>2]+56>>2]](b)}break x}i=0;f=xb-16|0;xb=f;g=J[a+16>>2];c=J[a+12>>2];Sc:{if(g>>>0<=c+1>>>0)break Sc;e=(K[c|0]|K[c+1|0]<<8)<<16>>16;b=c+2|0;J[a+12>>2]=b;if((e|0)<=0)break Sc;j=e&65535;d=j<<2;h=Pb(d);J[f+4>>2]=h;k=d+h|0;J[f+12>>2]=k;h=Nb(h,0,d);J[f+8>>2]=k;d=0;if(g>>>0>c+3>>>0){d=K[c+2|0]|K[c+3|0]<<8;b=c+4|0;J[a+12>>2]=b}I[h>>1]=d;d=1;Tc:{if(g>>>0<=b+1>>>0){c=b;break Tc}i=K[b| -0]|K[b+1|0]<<8;c=b+2|0;J[a+12>>2]=c}I[h+2>>1]=i;if(e>>>0>1)while(1){e=h+(d<<2)|0;b=0;Uc:{if(g>>>0<=c+1>>>0){i=0;break Uc}i=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[e>>1]=i;if(g>>>0>c+1>>>0){b=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[e+2>>1]=b;d=d+1|0;if((j|0)!=(d|0))continue;break}J[195395]=0;$(3360,a|0,f+4|0);b=J[195395];J[195395]=0;if((b|0)==1){a=Z()|0;b=J[f+4>>2];if(b){J[f+8>>2]=b;Kb(b)}break r}b=J[f+4>>2];if(!b)break Sc;J[f+8>>2]=b;Kb(b)}xb=f+16|0;break x}i=0;b=xb-16|0;xb=b;Vc:{Wc:{f=J[a+16>> -2];c=J[a+12>>2];Xc:{if(f>>>0<=c+1>>>0)break Xc;g=(K[c|0]|K[c+1|0]<<8)<<16>>16;h=c+2|0;J[a+12>>2]=h;if((g|0)<=0)break Xc;e=g&65535;c=e<<2;g=Pb(c);J[b+4>>2]=g;d=c+g|0;J[b+12>>2]=d;j=Nb(g,0,c);J[b+8>>2]=d;while(1){c=j+(i<<2)|0;Yc:{if(f>>>0<=h+1>>>0){g=0;break Yc}g=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[a+12>>2]=h}I[c>>1]=g;g=0;if(f>>>0>h+1>>>0){g=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[a+12>>2]=h}I[c+2>>1]=g;i=i+1|0;if((e|0)!=(i|0))continue;break}J[195395]=0;$(3361,a|0,b+4|0);c=J[195395];J[195395]=0;if((c|0)==1)break Wc; -c=J[b+4>>2];if(!c)break Xc;J[b+8>>2]=c;Kb(c)}xb=b+16|0;break Vc}a=Z()|0;c=J[b+4>>2];if(c){J[b+8>>2]=c;Kb(c)}break r}break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}Zc:{if(g>>>0<=c+1>>>0){b=c;break Zc}d=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}c=0;_c:{if(g>>>0<=b+1>>>0){j=0;break _c}j=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[a+12>>2]=b}if(g>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[a+12>>2]=b+2}f=e<<16>>16;e=d<<16>>16;g=j<<16>>16;c=c<<16>>16;$c:{ad:{b=J[a+248>>2];if(!b)break ad; -Ab[J[J[b>>2]+188>>2]](b,f,e,g,c);b=J[a+248>>2];if(!b)break ad;Ab[J[J[b>>2]+32>>2]](b,+(c|0),+(g|0));break $c}if(K[a+192|0]){J[a+176>>2]=c;H[a+192|0]=0;J[a+184>>2]=c;J[a+188>>2]=g;J[a+180>>2]=g;break $c}b=a+176|0;bd:{if((c|0)>=J[b>>2]){b=a+184|0;if((c|0)<=J[b>>2])break bd}J[b>>2]=c}if((g|0)>2]){J[a+180>>2]=g;break $c}if((g|0)<=J[a+188>>2])break $c;J[a+188>>2]=g}b=J[a+172>>2];I[b+140>>1]=c;I[b+142>>1]=g;b=J[a+248>>2];cd:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(e|0),+(g|0));break cd}if(K[a+192|0]){J[a+ -176>>2]=e;H[a+192|0]=0;J[a+184>>2]=e;J[a+188>>2]=g;J[a+180>>2]=g;break cd}b=a+176|0;dd:{if((e|0)>=J[b>>2]){b=a+184|0;if((e|0)<=J[b>>2])break dd}J[b>>2]=e}if((g|0)>2]){J[a+180>>2]=g;break cd}if((g|0)<=J[a+188>>2])break cd;J[a+188>>2]=g}b=J[a+172>>2];I[b+140>>1]=e;I[b+142>>1]=g;b=J[a+248>>2];ed:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(e|0),+(f|0));break ed}if(K[a+192|0]){J[a+176>>2]=e;H[a+192|0]=0;J[a+184>>2]=e;J[a+188>>2]=f;J[a+180>>2]=f;break ed}b=a+176|0;fd:{if((e|0)>=J[b>>2]){b=a+184|0;if((e|0)<= -J[b>>2])break fd}J[b>>2]=e}if((f|0)>2]){J[a+180>>2]=f;break ed}if((f|0)<=J[a+188>>2])break ed;J[a+188>>2]=f}b=J[a+172>>2];I[b+140>>1]=e;I[b+142>>1]=f;b=J[a+248>>2];gd:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(c|0),+(f|0));break gd}if(K[a+192|0]){J[a+176>>2]=c;H[a+192|0]=0;J[a+184>>2]=c;J[a+188>>2]=f;J[a+180>>2]=f;break gd}b=a+176|0;hd:{if((c|0)>=J[b>>2]){b=a+184|0;if((c|0)<=J[b>>2])break hd}J[b>>2]=c}if((f|0)>2]){J[a+180>>2]=f;break gd}if((f|0)<=J[a+188>>2])break gd;J[a+188>>2]=f}b=J[a+172>> -2];I[b+140>>1]=c;I[b+142>>1]=f;b=J[a+248>>2];id:{if(!b)break id;Ab[J[J[b>>2]+48>>2]](b);b=J[a+248>>2];if(!b)break id;Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+248>>2];Ab[J[J[b>>2]+56>>2]](b)}b=J[a+172>>2];I[b+140>>1]=(c+e|0)/2;I[b+142>>1]=(g+f|0)/2;break x}i=0;e=0;g=0;f=0;c=0;b=0;d=J[a+16>>2];j=J[a+12>>2];if(d>>>0>j+1>>>0){e=(K[j|0]|K[j+1|0]<<8)<<16>>16;j=j+2|0;J[a+12>>2]=j}if(d>>>0>j+1>>>0){i=(K[j|0]|K[j+1|0]<<8)<<16>>16;j=j+2|0;J[a+12>>2]=j}if(d>>>0>j+1>>>0){f=(K[j|0]|K[j+1|0]<<8)<<16>>16;j=j+2|0;J[a+12>> -2]=j}if(d>>>0>j+1>>>0){g=(K[j|0]|K[j+1|0]<<8)<<16>>16;j=j+2|0;J[a+12>>2]=j}if(d>>>0>j+1>>>0){b=(K[j|0]|K[j+1|0]<<8)<<16>>16;j=j+2|0;J[a+12>>2]=j}if(d>>>0>j+1>>>0){c=(K[j|0]|K[j+1|0]<<8)<<16>>16;J[a+12>>2]=j+2}m=e<<16>>16;e=i<<16>>16;h=f<<16>>16;j=g<<16>>16;g=b<<16>>16;f=c<<16>>16;jd:{kd:{b=J[a+248>>2];if(!b){i=e+f|0;break kd}Ab[J[J[b>>2]+192>>2]](b,m,e,h,j,g,f);i=e+f|0;b=J[a+248>>2];if(!b)break kd;Ab[J[J[b>>2]+32>>2]](b,+(i<<16>>16),+(g|0));break jd}b=i<<16>>16;if(K[a+192|0]){J[a+176>>2]=b;H[a+192| -0]=0;J[a+184>>2]=b;J[a+188>>2]=g;J[a+180>>2]=g;break jd}c=a+176|0;ld:{if((b|0)>=J[c>>2]){c=a+184|0;if((b|0)<=J[c>>2])break ld}J[c>>2]=b}if((g|0)>2]){J[a+180>>2]=g;break jd}if((g|0)<=J[a+188>>2])break jd;J[a+188>>2]=g}b=J[a+172>>2];k=i<<16>>16;I[b+140>>1]=k;I[b+142>>1]=g;c=j-e|0;b=J[a+248>>2];md:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(c<<16>>16),+(g|0));break md}b=c<<16>>16;if(K[a+192|0]){J[a+176>>2]=b;H[a+192|0]=0;J[a+184>>2]=b;J[a+188>>2]=g;J[a+180>>2]=g;break md}e=a+176|0;nd:{if((b|0)>=J[e>>2]){e= -a+184|0;if((b|0)<=J[e>>2])break nd}J[e>>2]=b}if((g|0)>2]){J[a+180>>2]=g;break md}if((g|0)<=J[a+188>>2])break md;J[a+188>>2]=g}c=c<<16>>16;e=c;b=J[a+172>>2];I[b+140>>1]=c;I[b+142>>1]=g;o=g+m|0;od:{pd:{b=J[a+248>>2];if(!b){i=a+176|0;qd:{if(K[a+192|0]){J[a+176>>2]=c;H[a+192|0]=0;J[a+184>>2]=c;J[a+188>>2]=g;J[a+180>>2]=g;b=g;break qd}b=i;rd:{if(J[b>>2]<=(c|0)){b=a+184|0;if(J[b>>2]>=(c|0))break rd}J[b>>2]=c}d=a+180|0;b=J[d>>2];c=g;sd:{if((b|0)<=(c|0)){c=b;d=a+188|0;if((g|0)<=J[d>>2])break sd}J[d>> -2]=g;b=c}c=J[i>>2]}td:{if((c|0)<=(j|0)){i=a+184|0;if((j|0)<=J[i>>2])break td}J[i>>2]=j}c=b;b=o<<16>>16;ud:{vd:{if((c|0)>(b|0)){i=a+180|0;break vd}i=a+188|0;if((b|0)<=J[i>>2])break ud}J[i>>2]=b}m=h-m|0;break pd}n=+(j|0);Ab[J[J[b>>2]+44>>2]](b,+(e|0),+(g|0),n,+(o<<16>>16),270,90);m=h-m|0;b=J[a+248>>2];if(!b)break pd;Ab[J[J[b>>2]+36>>2]](b,n,+(m<<16>>16));break od}if(K[a+192|0]){J[a+176>>2]=j;H[a+192|0]=0;J[a+184>>2]=j;b=m<<16>>16;J[a+188>>2]=b;J[a+180>>2]=b;break od}c=a+176|0;wd:{if((j|0)>=J[c>>2]){c= -a+184|0;if((j|0)<=J[c>>2])break wd}J[c>>2]=j}b=m<<16>>16;if((b|0)>2]){J[a+180>>2]=b;break od}if((b|0)<=J[a+188>>2])break od;J[a+188>>2]=b}b=J[a+172>>2];I[b+140>>1]=j;c=m<<16>>16;I[b+142>>1]=c;xd:{yd:{zd:{Ad:{b=J[a+248>>2];if(!b){i=a+176|0;Bd:{if(K[a+192|0]){J[a+176>>2]=e;H[a+192|0]=0;J[a+184>>2]=e;b=c;J[a+188>>2]=b;J[a+180>>2]=b;break Bd}b=i;Cd:{if(J[b>>2]<=(e|0)){b=a+184|0;if(J[b>>2]>=(e|0))break Cd}J[b>>2]=e}e=a+180|0;b=J[e>>2];r=m<<16>>16;d=r;Dd:{if((b|0)<=(d|0)){d=b;e=a+188|0;if((r|0)<= -J[e>>2])break Dd}J[e>>2]=r;b=d}e=J[i>>2]}Ed:{if((e|0)<=(j|0)){i=a+184|0;if((j|0)<=J[i>>2])break Ed}J[i>>2]=j}if((b|0)<=(h|0))break Ad;b=a+180|0;break zd}n=+(h|0);Ab[J[J[b>>2]+44>>2]](b,+(e|0),+(c|0),+(j|0),n,0,90);b=J[a+248>>2];if(!b)break yd;Ab[J[J[b>>2]+36>>2]](b,+(k|0),n);break xd}b=a+188|0;if((h|0)<=J[b>>2])break yd}J[b>>2]=h}if(K[a+192|0]){J[a+176>>2]=k;H[a+192|0]=0;J[a+184>>2]=k;J[a+188>>2]=h;J[a+180>>2]=h;break xd}b=a+176|0;Fd:{if((k|0)>=J[b>>2]){b=a+184|0;if((k|0)<=J[b>>2])break Fd}J[b>>2]= -k}if((h|0)>2]){J[a+180>>2]=h;break xd}if((h|0)<=J[a+188>>2])break xd;J[a+188>>2]=h}b=J[a+172>>2];I[b+140>>1]=k;I[b+142>>1]=h;Gd:{Hd:{Id:{Jd:{b=J[a+248>>2];if(!b){b=a+176|0;Kd:{if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=c;J[a+180>>2]=c;d=f;break Kd}e=b;Ld:{if(J[b>>2]<=(f|0)){e=a+184|0;if(J[e>>2]>=(f|0))break Ld}J[e>>2]=f}i=a+180|0;c=J[i>>2];d=m<<16>>16;e=d;Md:{if((c|0)<=(d|0)){e=c;i=a+188|0;if((d|0)<=J[i>>2])break Md}J[i>>2]=d;c=e}d=J[b>>2]}Nd:{if((d|0)<=(k|0)){b= -a+184|0;if((k|0)<=J[b>>2])break Nd}J[b>>2]=k}if((c|0)<=(h|0))break Jd;b=a+180|0;break Id}n=+(f|0);Ab[J[J[b>>2]+44>>2]](b,n,+(c|0),+(k|0),+(h|0),90,90);b=J[a+248>>2];if(!b)break Hd;Ab[J[J[b>>2]+36>>2]](b,n,+(o<<16>>16));break Gd}b=a+188|0;if((h|0)<=J[b>>2])break Hd}J[b>>2]=h}if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;b=o<<16>>16;J[a+188>>2]=b;J[a+180>>2]=b;break Gd}b=a+176|0;Od:{if(J[b>>2]<=(f|0)){b=a+184|0;if(J[b>>2]>=(f|0))break Od}J[b>>2]=f}b=o<<16>>16;if((b|0)>2]){J[a+180>> -2]=b;break Gd}if((b|0)<=J[a+188>>2])break Gd;J[a+188>>2]=b}b=J[a+172>>2];I[b+140>>1]=f;e=o<<16>>16;I[b+142>>1]=e;b=J[a+248>>2];Pd:{if(!b){c=a+176|0;Qd:{if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=g;J[a+180>>2]=g;b=g;break Qd}b=c;Rd:{if(J[b>>2]<=(f|0)){b=a+184|0;if(J[b>>2]>=(f|0))break Rd}J[b>>2]=f}m=a+180|0;b=J[m>>2];f=g;Sd:{if((b|0)<=(f|0)){f=b;m=a+188|0;if((g|0)<=J[m>>2])break Sd}J[m>>2]=g;b=f}f=J[c>>2]}Td:{if((f|0)<=(k|0)){c=a+184|0;if((k|0)<=J[c>>2])break Td}J[c>>2]=k}if((b| -0)>(e|0)){J[a+180>>2]=e;break Pd}if((e|0)<=J[a+188>>2])break Pd;J[a+188>>2]=e;break Pd}Ab[J[J[b>>2]+44>>2]](b,+(f|0),+(g|0),+(k|0),+(e|0),180,90);b=J[a+248>>2];if(!b)break Pd;Ab[J[J[b>>2]+48>>2]](b);b=J[a+248>>2];if(!b)break Pd;Ab[J[J[b>>2]+52>>2]](b,3);b=J[a+248>>2];Ab[J[J[b>>2]+56>>2]](b)}break x}b=p+8|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;j=0;d=J[a+12>>2];c=J[a+16>>2];Ud:{if(d>>>0>=c>>>0){e=0;break Ud}e=K[d|0];d=d+1|0;J[a+12>>2]=d}H[b|0]=e;if(c>>>0>d>>>0){j=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+ -9|0]=j;j=0;Vd:{if(c>>>0<=d>>>0){e=0;break Vd}e=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+10|0]=e;if(c>>>0>d>>>0){j=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+11|0]=j;j=0;Wd:{if(c>>>0<=d+1>>>0){e=0;break Wd}e=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[a+12>>2]=d}if(c>>>0>d+1>>>0){j=K[d|0]|K[d+1|0]<<8;J[a+12>>2]=d+2}c=xb-16|0;xb=c;H[c+12|0]=K[b+2|0];H[c+13|0]=K[b+1|0];f=K[b|0];H[c+15|0]=255;H[c+14|0]=f;f=J[a+248>>2];if(f){d=b;b=e<<16>>16;g=j<<16>>16;Ab[J[J[f>>2]+196>>2]](f,d,b,g);f=J[a+248>>2];Ab[J[J[f>>2]+16>>2]](f,+(g|0),+(b|0),1, -1,c+12|0,1,1)}xb=c+16|0;break x}f=J[a+16>>2];b=J[a+12>>2];Xd:{if(f>>>0<=b+1>>>0)break Xd;h=K[b|0];g=K[b+1|0];c=b+2|0;J[a+12>>2]=c;i=(h|g<<8)<<16>>16;if((i|0)<=0)break Xd;g=0;d=i&65535;e=Pb(d+1|0);H[d+e|0]=0;b=f;Yd:{if((c|0)==(b|0))break Yd;b=b-c|0;b=b>>>0>>0?b:d;j=b&1;Zd:{if((b|0)==1){b=c;break Zd}k=b&65534;b=c;c=0;while(1){_d:{if(b>>>0>=f>>>0){d=0;break _d}d=K[b|0];b=b+1|0;J[a+12>>2]=b}H[e+g|0]=d;d=0;if(b>>>0>>0){d=K[b|0];b=b+1|0;J[a+12>>2]=b}H[e+(g|1)|0]=d;g=g+2|0;c=c+2|0;if((k|0)!=(c|0))continue; -break}}if(!j)break Yd;d=0;if(b>>>0>>0){d=K[b|0];b=b+1|0;J[a+12>>2]=b}H[e+g|0]=d}if(h&1){b=b+1|0;b=b>>>0>>0?b:f;J[a+12>>2]=b}d=0;$d:{if(f>>>0<=b+1>>>0){g=b;c=0;break $d}c=K[b|0]|K[b+1|0]<<8;g=b+2|0;J[a+12>>2]=g}if(f>>>0>g+1>>>0){d=K[g|0]|K[g+1|0]<<8;J[a+12>>2]=g+2}b=c<<16>>16;c=d<<16>>16;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+200>>2]](f,i,e,c,b);Xz(a,e,i,c,b,0);Kb(e)}break x}H[p+10|0]=0;H[p+11|0]=0;H[p+12|0]=0;H[p+13|0]=0;c=0;b=J[a+16>>2];d=J[a+12>>2];ae:{if(b>>>0<=d+1>>>0){e=0;break ae}e=K[d|0]|K[d+ -1|0]<<8;d=d+2|0;J[a+12>>2]=d}I[p+8>>1]=e;if(b>>>0>d>>>0){c=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+10|0]=c;c=0;be:{if(b>>>0<=d>>>0){j=0;break be}j=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+11|0]=j;if(b>>>0>d>>>0){c=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+12|0]=c;c=0;ce:{if(b>>>0<=d>>>0){j=0;break ce}j=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+13|0]=j;if(b>>>0>d+1>>>0){c=K[d|0]|K[d+1|0]<<8;J[a+12>>2]=d+2}I[p+14>>1]=c;b=p+8|0;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+204>>2]](c,b);c=Pb(40);J[195395]=0;b=Vz(c,b);f=J[195395];J[195395]=0;de:{if((f| -0)!=1){ee:switch(L[b+8>>1]-3|0){case 0:case 3:I[b+8>>1]=0;H[b+12|0]=0;H[b+11|0]=0;H[b+10|0]=0;break;default:break ee}Qi(a+124|0,b);break de}break s}break x}b=Pb(60);J[195395]=0;I[b+26>>1]=0;I[b+28>>1]=0;I[b+30>>1]=0;I[b+32>>1]=0;J[b+4>>2]=428240;J[b>>2]=428184;I[b+34>>1]=0;I[b+36>>1]=0;I[b+38>>1]=0;I[b+40>>1]=0;I[b+42>>1]=0;I[b+44>>1]=0;I[b+46>>1]=0;I[b+48>>1]=0;I[b+50>>1]=0;I[b+52>>1]=0;I[b+54>>1]=0;I[b+56>>1]=0;c=J[195395];J[195395]=0;if((c|0)==1)break z;i=0;g=0;c=J[l+12>>2];h=J[l+8>>2];if(c>>> -0>h+1>>>0){i=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[l+8>>2]=h}I[b+8>>1]=i;if(c>>>0>h+1>>>0){g=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[l+8>>2]=h}I[b+10>>1]=g;g=0;fe:{if(c>>>0<=h+1>>>0){i=0;break fe}i=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[l+8>>2]=h}I[b+12>>1]=i;if(c>>>0>h+1>>>0){g=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[l+8>>2]=h}I[b+14>>1]=g;g=0;ge:{if(c>>>0<=h+1>>>0){i=0;break ge}i=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[l+8>>2]=h}I[b+16>>1]=i;if(c>>>0>h>>>0){g=K[h|0];J[l+8>>2]=h+1}H[b+18|0]=g;i=0;h=0;c=J[l+8>>2];if(c>>>0>2]){h=K[c|0];J[l+ -8>>2]=c+1}H[b+19|0]=h;c=J[l+8>>2];if(c>>>0>2]){i=K[c|0];J[l+8>>2]=c+1}H[b+20|0]=i;i=0;h=0;c=J[l+8>>2];if(c>>>0>2]){h=K[c|0];J[l+8>>2]=c+1}H[b+21|0]=h;c=J[l+8>>2];if(c>>>0>2]){i=K[c|0];J[l+8>>2]=c+1}H[b+22|0]=i;i=0;h=0;c=J[l+8>>2];if(c>>>0>2]){h=K[c|0];J[l+8>>2]=c+1}H[b+23|0]=h;c=J[l+8>>2];if(c>>>0>2]){i=K[c|0];J[l+8>>2]=c+1}H[b+24|0]=i;i=0;c=J[l+8>>2];if(c>>>0>2]){i=K[c|0];J[l+8>>2]=c+1}H[b+25|0]=i;i=b+26|0;he:{ie:{c=J[l+8>>2];if(c>>>0>=M[l+12>>2])break ie; -f=K[c|0];J[l+8>>2]=c+1;H[b+26|0]=f;if(!f)break he;h=0;while(1){g=(h|1)+b|0;i=g+26|0;c=J[l+8>>2];if(c>>>0>=M[l+12>>2])break ie;f=K[c|0];J[l+8>>2]=c+1;H[g+26|0]=f;if(!f)break he;h=h+2|0;if((h|0)==32)break he;g=b+h|0;i=g+26|0;c=J[l+8>>2];if(c>>>0>=M[l+12>>2])break ie;f=K[c|0];J[l+8>>2]=c+1;H[g+26|0]=f;if(f)continue;break}break he}H[i|0]=0}c=J[a+248>>2];if(c)Ab[J[J[c>>2]+208>>2]](c,b);Qi(a+124|0,b);break x}b=Pb(12);J[195395]=0;J[b+8>>2]=0;I[b+6>>1]=0;J[b>>2]=428292;c=J[195395];J[195395]=0;if((c|0)==1)break z; -i=0;c=J[l+12>>2];h=J[l+8>>2];if(c>>>0>h+1>>>0){i=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[l+8>>2]=h}I[b+4>>1]=i;je:{ke:{if(c>>>0<=h+1>>>0){I[b+6>>1]=0;break ke}c=K[h|0]|K[h+1|0]<<8;J[l+8>>2]=h+2;I[b+6>>1]=c;if(!c)break ke;D=b,E=Pb(c<<2),J[D+8>>2]=E;i=0;while(1){c=J[b+8>>2]+(i<<2)|0;h=0;f=J[l+8>>2];if(f>>>0>2]){h=K[f|0];J[l+8>>2]=f+1}H[c|0]=h;h=0;g=0;f=J[l+8>>2];if(f>>>0>2]){g=K[f|0];J[l+8>>2]=f+1}H[c+1|0]=g;f=J[l+8>>2];if(f>>>0>2]){h=K[f|0];J[l+8>>2]=f+1}H[c+2|0]=h;h=0;f=J[l+8>>2];if(f>>> -0>2]){h=K[f|0];J[l+8>>2]=f+1}H[c+3|0]=h;i=i+1|0;if(i>>>0>1])continue;break}break je}J[b+8>>2]=0}c=J[a+248>>2];if(c)Ab[J[J[c>>2]+212>>2]](c,b);Qi(a+124|0,b);break x}c=Pb(40);J[195395]=0;g=gn(c);b=J[195395];J[195395]=0;le:{if((b|0)!=1){me:{if(!J[a+20>>2])break me;b=J[a+16>>2];d=J[a+12>>2];e=b>>>0>d+1>>>0;i=(e<<1)+d|0;j=b>>>0>i+1>>>0;c=(j<<1)+i|0;k=b>>>0>c+1>>>0;c=(k<<1)+c|0;m=c+2|0;h=b>>>0>c+1>>>0;f=h?m:c;j=j|k;ne:{if(!(h|(j|e)))if(b>>>0<=f>>>0)break ne;d=b>>>0>f>>>0?f+1|0:h?m:j?c:i; -J[a+12>>2]=d}if(b>>>0<=d>>>0)break me;J[a+12>>2]=d+1}b=J[a+248>>2];if(b)Ab[J[J[b>>2]+216>>2]](b,g,a+4|0);Qi(a+124|0,g);break le}break s}break x}e=0;g=0;c=Pb(20);J[195395]=0;I[c+10>>1]=0;I[c+12>>1]=0;J[c+4>>2]=428360;J[c>>2]=428312;H[c+14|0]=0;H[c+15|0]=0;H[c+16|0]=0;H[c+17|0]=0;b=c;f=J[195395];J[195395]=0;oe:{if((f|0)!=1){f=J[a+16>>2];c=J[a+12>>2];if(f>>>0>c+1>>>0){e=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[b+8>>1]=e;e=0;if(f>>>0>c+1>>>0){g=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[b+10>>1]=g;if(f>>> -0>c+1>>>0){e=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+12>>2]=c}I[b+12>>1]=e;e=0;pe:{if(c>>>0>=f>>>0){g=0;break pe}g=K[c|0];c=c+1|0;J[a+12>>2]=c}H[b+14|0]=g;if(c>>>0>>0){e=K[c|0];c=c+1|0;J[a+12>>2]=c}H[b+15|0]=e;e=0;qe:{if(c>>>0>=f>>>0){g=0;break qe}g=K[c|0];c=c+1|0;J[a+12>>2]=c}H[b+16|0]=g;if(c>>>0>>0){e=K[c|0];J[a+12>>2]=c+1}H[b+17|0]=e;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+220>>2]](c,b);Qi(a+124|0,b);break oe}break s}break x}if((f|0)!=1791)break x;b=Pb(36);J[195395]=0;J[b+32>>2]=0;I[b+22>>1]=0;I[b+24>>1]= -0;I[b+26>>1]=0;I[b+28>>1]=0;J[b+4>>2]=428424;J[b>>2]=428404;c=J[195395];J[195395]=0;if((c|0)==1)break z;g=0;i=0;f=J[l+12>>2];h=J[l+8>>2];if(f>>>0>h+1>>>0){g=K[h|0]|K[h+1|0]<<8;h=h+2|0;J[l+8>>2]=h}c=b;I[b+8>>1]=g;b=b+10|0;re:{se:{if(f>>>0>h+1>>>0){g=K[h|0]|K[h+1|0]<<8;b=h+2|0;J[l+8>>2]=b;I[c+10>>1]=g;if((g|0)!=6)break re;g=0;if(f>>>0>h+5>>>0){g=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);b=h+6|0;J[l+8>>2]=b}J[c+12>>2]=g;te:{if(f>>>0<=b+1>>>0){g=b;break te}i=K[b|0]|K[b+1|0]<<8;g=b+2|0;J[l+8>>2]= -g}I[c+16>>1]=i;i=0;ue:{if(f>>>0<=g+1>>>0){h=0;break ue}h=K[g|0]|K[g+1|0]<<8;g=g+2|0;J[l+8>>2]=g}I[c+18>>1]=h;if(f>>>0>g+1>>>0){i=K[g|0]|K[g+1|0]<<8;g=g+2|0;J[l+8>>2]=g}I[c+20>>1]=i;i=0;ve:{if(f>>>0<=g+1>>>0){b=0;break ve}b=K[g|0]|K[g+1|0]<<8;g=g+2|0;J[l+8>>2]=g}I[c+22>>1]=b;if(f>>>0>g+1>>>0){i=K[g|0]|K[g+1|0]<<8;g=g+2|0;J[l+8>>2]=g}I[c+24>>1]=i;i=0;we:{if(f>>>0<=g+1>>>0){b=0;break we}b=K[g|0]|K[g+1|0]<<8;g=g+2|0;J[l+8>>2]=g}I[c+26>>1]=b;if(f>>>0>g+1>>>0){i=K[g|0]|K[g+1|0]<<8;J[l+8>>2]=g+2}I[c+28>> -1]=i;if(h<<16>>16>0)break se;b=c+18|0}I[b>>1]=0;break re}D=c,E=Pb((h&65535)<<4),J[D+32>>2]=E;g=0;h=0;while(1){e=J[c+32>>2]+(g<<4)|0;g=0;f=0;d=J[l+12>>2];b=J[l+8>>2];if(d>>>0>b+1>>>0){g=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[l+8>>2]=b}I[e>>1]=g;if(d>>>0>b+1>>>0){f=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[l+8>>2]=b}I[e+2>>1]=f;f=0;if(d>>>0>b+1>>>0){f=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[l+8>>2]=b}I[e+4>>1]=f;f=g&65535;xe:{if(!(!f|g&1)){g=f>>>1|0;j=Pb(g<<2);J[e+8>>2]=j;if(f>>>0<2)break xe;k=g>>>0<=1?1:g;g=0;while(1){i=j+(g<<2)|0; -ye:{if(d>>>0<=b+1>>>0){f=0;break ye}f=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[l+8>>2]=b}I[i>>1]=f;f=0;if(d>>>0>b+1>>>0){f=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[l+8>>2]=b}I[i+2>>1]=f;g=g+1|0;if((k|0)!=(g|0))continue;break}break xe}J[e+8>>2]=0}g=0;if(d>>>0>b+1>>>0){g=K[b|0]|K[b+1|0]<<8;J[l+8>>2]=b+2}I[e+12>>1]=g;b=h+1|0;g=b&65535;h=b<<16>>16;if((h|0)>1])continue;break}}b=J[a+248>>2];if(b)Ab[J[J[b>>2]+224>>2]](b,c);Qi(a+124|0,c);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;c=J[a+ -248>>2];if(c)Ab[J[J[c>>2]+228>>2]](c,b);Lz(a+124|0,b);b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}g=e&65535;b=d&65535;f=xb-16|0;xb=f;c=Pb(40);J[195395]=0;e=gn(c);d=J[195395];J[195395]=0;ze:{if((d|0)!=1){c=J[a+248>>2];Ae:{if(!c)break Ae;Ab[J[J[c>>2]+232>>2]](c,g,b,e,a+4|0);J[f+12>>2]=0;J[f+8>>2]=0;J[f+4>>2]=0;c=J[a+12>>2];g=J[a+36>>2]+(J[a+40>>2]+(J[a+4>>2]-c|0)|0)|0;if(!g)break Ae; -kC(c,g,b,f+12|0,f+8|0,f+4|0);d=J[f+12>>2];i=J[f+8>>2];h=J[f+4>>2];b=xb-80|0;xb=b;J[195395]=0;J[b+16>>2]=0;H[b+27|0]=0;$(2125,b+68|0,b+16|0);c=J[195395];J[195395]=0;Be:{Ce:{if((c|0)!=1){if(H[b+27|0]<0)Kb(J[b+16>>2]);g=H[b+79|0];if((g|0)<0?J[b+72>>2]:g&255)break Ce;break Be}a=Z()|0;if(H[b+27|0]>=0)break r;Kb(J[b+16>>2]);break r}J[195395]=0;c=b+16|0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]= -0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;g=J[195395];J[195395]=0;De:{Ee:{Fe:{Ge:{He:{if((g|0)!=1){J[195395]=0;J[c+16>>2]=d;g=J[195395];J[195395]=0;if((g|0)==1)break Ee;J[195395]=0;J[b+12>>2]=i;J[c+4>>2]=J[b+12>>2];g=J[195395];J[195395]=0;if((g|0)==1)break Ee;J[195395]=0;J[b+12>>2]=h;J[c+8>>2]=J[b+12>>2];g=J[195395];J[195395]=0;if((g|0)==1)break Ee;J[195395]=0;g=b+68|0;d=aa(1801,c|0,g|0,4)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Ee;if(!d)break Fe;I[e+8>>1]=5;d=g;g=e+16| -0;if((d|0)==(g|0))break Ge;i=K[b+79|0];d=i<<24>>24;if(H[e+27|0]>=0){if((d|0)<0)break He;d=J[b+72>>2];J[g>>2]=J[b+68>>2];J[g+4>>2]=d;J[g+8>>2]=J[b+76>>2];break Ge}J[195395]=0;j=g;g=(d|0)<0;aa(2100,j|0,(g?J[b+68>>2]:b+68|0)|0,(g?J[b+72>>2]:i)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ee;break Ge}a=Z()|0;break De}J[195395]=0;aa(2101,g|0,J[b+68>>2],J[b+72>>2])|0;g=J[195395];J[195395]=0;if((g|0)!=1)break Ge;break Ee}J[b+12>>2]=0;J[195395]=0;J[b+8>>2]=0;ha(1137,c|0,b+12|0,b+8|0,4)|0;g=J[195395];J[195395]= -0;if((g|0)==1)break Ee;J[e+28>>2]=J[b+12>>2];J[195395]=0;g=J[c+4>>2];d=J[195395];J[195395]=0;if((d|0)==1)break Ee;J[e+32>>2]=g;J[195395]=0;g=J[c+8>>2];d=J[195395];J[195395]=0;if((d|0)==1)break Ee;J[e+36>>2]=g}J[195395]=0;J[c+16>>2]=0;g=J[195395];J[195395]=0;if((g|0)==1)break Ee;kd(c);g=K[b+79|0];break Be}a=Z()|0;kd(c)}if(H[b+79|0]>=0)break r;Kb(J[b+68>>2]);break r}if(g<<24>>24<0)Kb(J[b+68>>2]);xb=b+80|0}Qi(a+124|0,e);xb=f+16|0;break ze}a=Z()|0;Kb(c);break r}break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]| -K[b+3|0]<<8;J[a+12>>2]=b+4}b=J[a+248>>2];if(b)Ab[J[J[b>>2]+236>>2]](b,d&65535);wf(J[a+172>>2]);b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+240>>2]](c,b);fn(a+124|0,b);b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}g=d&65535;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+244>>2]](b,g);c=a+148|0;f=J[c>>2];Ie:{if(!f)break Ie;b=c;while(1){e=g>>> -0>M[f+16>>2];b=e?b:f;f=J[(e?f+4|0:f)>>2];if(f)continue;break}if((b|0)==(c|0)|g>>>0>2])break Ie;b=J[b+20>>2];if((Ab[J[J[b>>2]+8>>2]](b)|0)!=4)break Ie;J[J[a+124>>2]+80>>2]=b}b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}Je:{if(g>>>0<=c+1>>>0){b=c;break Je}d=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}c=0;Ke:{if(g>>>0<=b+1>>>0){j=0;break Ke}j=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[a+12>>2]=b}if(g>>>0>b+1>>>0){c=K[b|0]|K[b+ -1|0]<<8;J[a+12>>2]=b+2}b=xb+-64|0;xb=b;f=e<<16>>16;g=j<<16>>16;e=(f|0)>(g|0);i=(e?1:-1)+f<<16>>16;O[b+56>>3]=i|0;f=d<<16>>16;c=c<<16>>16;d=(f|0)>(c|0);h=(d?1:-1)+f<<16>>16;O[b+48>>3]=h|0;g=g+(e?-1:1)<<16>>16;O[b+40>>3]=g|0;e=c+(d?-1:1)<<16>>16;O[b+32>>3]=e|0;c=J[a+172>>2];f=I[c+112>>1];d=I[c+114>>1];O[b+8>>3]=d|0;O[b>>3]=f|0;j=L[c+116>>1];O[b+24>>3]=d+L[c+118>>1]<<16>>16;O[b+16>>3]=f+j<<16>>16;f=b+32|0;cC(J[a+172>>2],f,b);c=J[a+248>>2];Le:{if(!c)break Le;Ab[J[J[c>>2]+84>>2]](c);c=J[a+248>>2];if(!c)break Le; -Ab[J[J[c>>2]+248>>2]](c,i,h,g,e);c=J[a+248>>2];Ab[J[J[c>>2]+68>>2]](c,f,b)}xb=b- -64|0;break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}Me:{if(g>>>0<=c+1>>>0){b=c;break Me}d=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}c=0;Ne:{if(g>>>0<=b+1>>>0){j=0;break Ne}j=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[a+12>>2]=b}if(g>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[a+12>>2]=b+2}b=xb-32|0;xb=b;f=e<<16>>16;O[b+24>>3]=f|0;g=d<<16>>16;O[b+16>>3]=g|0;e=j<<16>>16;O[b+8>>3]=e|0;d=c<<16>>16;O[b>> -3]=d|0;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+252>>2]](c,d,e,g,f);dC(J[a+172>>2],b);c=J[a+248>>2];if(c)Ab[J[J[c>>2]+84>>2]](c);xb=b+32|0;break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}f=d<<16>>16;c=e<<16>>16;Oe:{Pe:{b=J[a+248>>2];if(!b)break Pe;Ab[J[J[b>>2]+256>>2]](b,f,c);b=J[a+248>>2];if(!b)break Pe;Ab[J[J[b>>2]+32>>2]](b,+(f|0),+(c|0));break Oe}if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=c;J[a+ -180>>2]=c;break Oe}b=a+176|0;Qe:{if((f|0)>=J[b>>2]){b=a+184|0;if((f|0)<=J[b>>2])break Qe}J[b>>2]=f}if((c|0)>2]){J[a+180>>2]=c;break Oe}if((c|0)<=J[a+188>>2])break Oe;J[a+188>>2]=c}b=J[a+172>>2];I[b+140>>1]=f;I[b+142>>1]=c;break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}c=d<<16>>16;f=e<<16>>16;b=J[a+248>>2];Re:{if(!b)break Re;Ab[J[J[b>>2]+256>>2]](b,c,f);b=J[a+248>>2];if(!b)break Re;Ab[J[J[b>>2]+84>>2]](b)}break x}d= -0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}c=d<<16>>16;f=e<<16>>16;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+264>>2]](b,c,f);b=J[a+172>>2];I[b+122>>1]=c+L[b+122>>1];I[b+124>>1]=f+L[b+124>>1];tf(b);b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}c=d<<16>>16;f=e<<16>>16;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+268>> -2]](b,c,f);b=J[a+172>>2];I[b+112>>1]=c+L[b+112>>1];I[b+114>>1]=f+L[b+114>>1];tf(b);b=J[a+248>>2];Se:{if(b){Ab[J[J[b>>2]+84>>2]](b);if(J[a+248>>2])break Se}g=a+176|0;i=J[a+172>>2];d=I[i+112>>1];f=I[i+114>>1];Te:{if(K[a+192|0]){J[a+176>>2]=d;H[a+192|0]=0;J[a+184>>2]=d;J[a+188>>2]=f;J[a+180>>2]=f;b=f;e=d;break Te}b=g;Ue:{if((d|0)>=J[b>>2]){b=a+184|0;if((d|0)<=J[b>>2])break Ue}J[b>>2]=d}e=a+180|0;b=J[e>>2];c=f;Ve:{if((b|0)<=(c|0)){c=b;e=a+188|0;if((f|0)<=J[e>>2])break Ve}J[e>>2]=f;b=c}e=J[g>>2]}f=f+L[i+ -118>>1]|0;c=d+L[i+116>>1]<<16>>16;We:{if((e|0)<=(c|0)){g=a+184|0;if((c|0)<=J[g>>2])break We}J[g>>2]=c}c=f<<16>>16;Xe:{if((c|0)<(b|0)){b=a+180|0;break Xe}b=a+188|0;if((c|0)<=J[b>>2])break Se}J[b>>2]=c}break x}b=J[a+248>>2];if(b)Ab[J[J[b>>2]+272>>2]](b);Ye:{f=J[a+132>>2];b=J[a+128>>2];c=f-b>>2;if(c>>>0<=1){H[J[a+140>>2]+33|0]=1;b=J[a+124>>2];break Ye}c=J[(b+(c<<2)|0)-4>>2];g=f-4|0;J[a+132>>2]=g;if(c){ml(c+12|0);Kb(qd(c));g=J[a+132>>2];b=J[a+128>>2]}if((b|0)!=(g|0)){b=J[g-4>>2];J[a+124>>2]=b;break Ye}Kq(225765); -B()}J[a+172>>2]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}Ze:{if(g>>>0<=c+1>>>0){b=c;break Ze}d=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}c=0;_e:{if(g>>>0<=b+1>>>0){j=0;break _e}j=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[a+12>>2]=b}if(g>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[a+12>>2]=b+2}f=e<<16>>16;g=d<<16>>16;e=j<<16>>16;c=c<<16>>16;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+280>>2]](b,f,g,e,c);b=J[a+172>>2];d=L[b+92>>1];$e:{if((d|0)!= -7&(d|0)!=8)break $e;n=+(g|0)/+(f|0);q=+I[b+126>>1]*(+(c|0)/+(e|0));af:{if(R(q)<2147483648){c=~~q;break af}c=-2147483648}I[b+126>>1]=c;n=+I[b+128>>1]*n;bf:{if(R(n)<2147483648){f=~~n;break bf}f=-2147483648}I[b+128>>1]=f;g=L[b+116>>1];e=g<<16>>16;d=e>>15;cf:{if(((d^g)-d&65535)>>>0<2)break cf;d=c<<16>>31;if(((d^c)-d&65535)>>>0<2)break cf;df:switch(L[b+92>>1]-7|0){case 0:if(!g|!c)break cf;n=+(c|0)/+(e|0);O[b+96>>3]=n;O[b+104>>3]=n;break cf;case 1:break df;default:break cf}O[b+96>>3]=+(c|0)/+(e|0);O[b+ -104>>3]=+(f|0)/+I[b+118>>1]}tf(b);b=J[a+248>>2];if(!b)break $e;Ab[J[J[b>>2]+84>>2]](b)}break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}ef:{if(g>>>0<=c+1>>>0){b=c;break ef}d=K[c|0]|K[c+1|0]<<8;b=c+2|0;J[a+12>>2]=b}c=0;ff:{if(g>>>0<=b+1>>>0){j=0;break ff}j=(K[b|0]|K[b+1|0]<<8)<<16>>16;b=b+2|0;J[a+12>>2]=b}if(g>>>0>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;J[a+12>>2]=b+2}b=e<<16>>16;f=d<<16>>16;g=j<<16>>16;c=c<<16>>16;e=J[a+248>>2];if(e)Ab[J[J[e>>2]+284>>2]](e,b,f,g,c);e=J[a+172>>2]; -d=L[e+92>>1];gf:{if((d|0)!=7&(d|0)!=8)break gf;Hz(e,+(c|0)/+(g|0),+(f|0)/+(b|0));b=J[a+248>>2];if(!b)break gf;Ab[J[J[b>>2]+84>>2]](b)}break x}b=p+8|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;j=0;d=J[a+12>>2];c=J[a+16>>2];hf:{if(d>>>0>=c>>>0){e=0;break hf}e=K[d|0];d=d+1|0;J[a+12>>2]=d}H[b|0]=e;if(c>>>0>d>>>0){j=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+9|0]=j;j=0;jf:{if(c>>>0<=d>>>0){e=0;break jf}e=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+10|0]=e;if(c>>>0>d>>>0){j=K[d|0];J[a+12>>2]=d+1}H[p+11|0]=j;c=J[a+248>>2];if(c)Ab[J[J[c>> -2]+288>>2]](c,b);J[J[a+172>>2]+136>>2]=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+292>>2]](c,b);I[J[a+172>>2]+144>>1]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0)J[a+12>>2]=c+2;b=d&65535;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+296>>2]](c,b);I[J[a+172>>2]+146>> -1]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+300>>2]](c,b);Kz(J[a+172>>2],b);b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+304>>2]](c,b);I[J[a+172>>2]+148>>1]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535; -c=J[a+248>>2];if(c)Ab[J[J[c>>2]+308>>2]](c,b);I[J[a+172>>2]+150>>1]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+312>>2]](c,b);I[J[a+172>>2]+152>>1]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+316>>2]](c,b);I[J[a+172>>2]+154>>1]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d= -0;if(g>>>0>b+3>>>0){d=K[b+2|0]|K[b+3|0]<<8;J[a+12>>2]=b+4}b=d&65535;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+320>>2]](c,b);I[J[a+172>>2]+156>>1]=b;b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}b=p+8|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;j=0;d=J[a+12>>2];c=J[a+16>>2];kf:{if(d>>>0>=c>>>0){e=0;break kf}e=K[d|0];d=d+1|0;J[a+12>>2]=d}H[b|0]=e;if(c>>>0>d>>>0){j=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+9|0]=j;j=0;lf:{if(c>>>0<=d>>>0){e=0;break lf}e=K[d|0];d=d+1|0;J[a+12>>2]=d}H[p+10|0]=e;if(c>>>0>d>>>0){j=K[d| -0];J[a+12>>2]=d+1}H[p+11|0]=j;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+324>>2]](c,b);J[J[a+172>>2]+132>>2]=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}c=e&65535;f=d&65535;b=J[a+248>>2];mf:{if(!b)break mf;Ab[J[J[b>>2]+328>>2]](b,c,f);b=J[a+248>>2];if(!b)break mf;Ab[J[J[b>>2]+84>>2]](b)}break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+ -3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}b=d<<16>>16;c=e<<16>>16;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+332>>2]](f,b,c);f=J[a+172>>2];g=L[f+92>>1];nf:{if((g|0)!=7&(g|0)!=8)break nf;Fz(f,b,c);b=J[a+248>>2];if(!b)break nf;Ab[J[J[b>>2]+84>>2]](b)}break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}b=d<<16>>16;c=e<<16>>16;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+336>>2]](f,b,c);Gz(J[a+172>>2],b,c); -b=J[a+248>>2];if(b)Ab[J[J[b>>2]+84>>2]](b);break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}b=d<<16>>16;c=e<<16>>16;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+340>>2]](f,b,c);f=J[a+172>>2];g=L[f+92>>1];of:{if((g|0)!=7&(g|0)!=8)break of;Iz(f,b,c);b=J[a+248>>2];if(b){Ab[J[J[b>>2]+84>>2]](b);if(J[a+248>>2])break of}b=J[a+172>>2];f=L[(b+112|0)+6>>1]+L[b+114>>1]|0;c=L[b+116>>1]+L[b+112>>1]<<16>>16;if(K[a+192|0]){J[a+176>>2]=c;H[a+ -192|0]=0;J[a+184>>2]=c;b=f<<16>>16;J[a+188>>2]=b;J[a+180>>2]=b;break of}b=a+176|0;pf:{if((c|0)>=J[b>>2]){b=a+184|0;if((c|0)<=J[b>>2])break pf}J[b>>2]=c}b=f<<16>>16;if((b|0)>2]){J[a+180>>2]=b;break of}if((b|0)<=J[a+188>>2])break of;J[a+188>>2]=b}break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}b=d<<16>>16;c=e<<16>>16;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+344>>2]](f,b,c);Jz(J[a+172>>2],b,c);b=J[a+248>>2];qf:{if(b){Ab[J[J[b>> -2]+84>>2]](b);if(J[a+248>>2])break qf}g=a+176|0;i=J[a+172>>2];d=I[i+112>>1];f=I[i+114>>1];rf:{if(K[a+192|0]){J[a+176>>2]=d;H[a+192|0]=0;J[a+184>>2]=d;J[a+188>>2]=f;J[a+180>>2]=f;b=f;e=d;break rf}b=g;sf:{if((d|0)>=J[b>>2]){b=a+184|0;if((d|0)<=J[b>>2])break sf}J[b>>2]=d}e=a+180|0;b=J[e>>2];c=f;tf:{if((b|0)<=(c|0)){c=b;e=a+188|0;if((f|0)<=J[e>>2])break tf}J[e>>2]=f;b=c}e=J[g>>2]}f=f+L[i+118>>1]|0;c=d+L[i+116>>1]<<16>>16;uf:{if((e|0)<=(c|0)){g=a+184|0;if((c|0)<=J[g>>2])break uf}J[g>>2]=c}c=f<<16>>16; -vf:{if((c|0)<(b|0)){b=a+180|0;break vf}b=a+188|0;if((c|0)<=J[b>>2])break qf}J[b>>2]=c}break x}d=0;e=0;if(g>>>0>b+3>>>0){e=K[b+2|0]|K[b+3|0]<<8;c=b+4|0;J[a+12>>2]=c}if(g>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+12>>2]=c+2}b=e&65535;c=d&65535;j=0;h=0;e=xb-432|0;xb=e;f=J[a+248>>2];if(f)Ab[J[J[f>>2]+348>>2]](f,b,c);wf:{xf:{yf:{zf:{if((b|0)!=15|c>>>0<34)break zf;c=0;i=J[a+16>>2];b=J[a+12>>2];if(i>>>0>b+3>>>0){j=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[a+12>>2]=b}if(b+3>>>0>>0){c=K[b|0]| -K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0;J[a+12>>2]=b}if(b+3>>>0>=i>>>0)break zf;f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=b+4|0;J[a+12>>2]=g;if((j|0)!=1128680791|(c|0)!=1|(f|0)!=65536)break zf;if(b+5>>>0>>0){g=b+6|0;J[a+12>>2]=g}Af:{if(g+3>>>0>=i>>>0){b=g;break Af}c=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);b=g+4|0;J[a+12>>2]=b;if(c)break zf}if(b+3>>>0>>0){b=b+4|0;J[a+12>>2]=b}Bf:{if(b+3>>>0>=i>>>0){j=0;break Bf}j=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0; -J[a+12>>2]=b}Cf:{if(b+3>>>0>=i>>>0){c=b;break Cf}h=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=b+4|0;J[a+12>>2]=c}b=0;Df:{if(c+3>>>0>=i>>>0){f=c;break Df}b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);f=c+4|0;J[a+12>>2]=f}c=J[a+256>>2];Ef:{if(c){g=J[a+252>>2];b=c;c=J[a+260>>2];break Ef}c=J[a+252>>2];if(c){Kb(c);J[a+252>>2]=0;i=J[a+16>>2];f=J[a+12>>2]}J[a+256>>2]=b;J[a+260>>2]=0;g=Pb(b);J[a+252>>2]=g;c=0}f=i-f|0;d=b-c|0;d=d>>>0>>0?d:j;f=d>>>0>f>>>0?f:d;if(f){i=0;c=g?b?c+g|0:0:0;if((f|0)!= -1){k=f&-2;j=0;while(1){b=0;g=J[a+12>>2];if(g>>>0>2]){b=K[g|0];J[a+12>>2]=g+1}H[c+i|0]=b;b=0;g=J[a+12>>2];if(g>>>0>2]){b=K[g|0];J[a+12>>2]=g+1}H[c+(i|1)|0]=b;i=i+2|0;j=j+2|0;if((k|0)!=(j|0))continue;break}}if(f&1){b=0;f=J[a+12>>2];if(f>>>0>2]){b=K[f|0];J[a+12>>2]=f+1}H[c+i|0]=b}c=J[a+260>>2];b=J[a+256>>2]}c=c+d|0;J[a+260>>2]=b>>>0>c>>>0?c:b;if(h)break zf;c=_q(e+176|0);J[(J[J[c>>2]-12>>2]+c|0)+24>>2]=J[a+24>>2];b=J[a+256>>2];f=J[a+252>>2];J[195395]=0;ol(c,f,b);b=J[195395];J[195395]= -0;Ff:{Gf:{Hf:{if((b|0)==1)break Hf;J[195395]=0;ea(2111,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break Hf;if(K[(c+J[J[c>>2]-12>>2]|0)+33|0])break Ff;b=J[a+248>>2];if(!b){If:{if(J[a+44>>2]==-1698247209)break If;J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break Hf;b=J[c+88>>2];J[a+176>>2]=J[c+84>>2];J[a+180>>2]=b;b=J[c+96>>2];J[a+184>>2]=J[c+92>>2];J[a+188>>2]=b;b=J[a+248>>2];if(!b)break If;f=J[J[b>>2]+128>>2];J[195395]=0;ea(f|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break Hf}H[a+264|0]=1;break Ff}f= -J[J[b>>2]+96>>2];J[195395]=0;b=_(f|0,b|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Hf;if((b|0)==2){b=J[J[c>>2]-12>>2];f=J[a+248>>2];J[195395]=0;f=J[f+4>>2];g=J[195395];J[195395]=0;Jf:{Kf:{if((g|0)==1)break Kf;J[195395]=0;f=aa(2035,e+104|0,b+c|0,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Kf;J[195395]=0;$(1804,c|0,f|0);b=J[195395];J[195395]=0;if((b|0)==1)break Jf;J[195395]=0;ea(2114,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break Jf;b=J[a+248>>2];if(b){g=J[J[b>>2]+128>>2];J[195395]=0;ea(g|0, -b|0);b=J[195395];J[195395]=0;if((b|0)==1)break Jf}H[a+264|0]=1;J[f>>2]=388672;b=J[f+68>>2];if(!b)break Ff;Kb(b);break Ff}b=Z()|0;break xf}b=Z()|0;J[f>>2]=388672;a=J[f+68>>2];if(!a)break xf;Kb(a);break xf}b=J[a+248>>2];f=J[J[b>>2]+96>>2];J[195395]=0;b=_(f|0,b|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Hf;if((b|0)!=4)break Ff;J[195395]=0;la(2118,c|0,4,0,0);b=J[195395];J[195395]=0;if((b|0)==1)break Hf;b=J[a+248>>2];J[195395]=0;f=J[b+84>>2];b=J[195395];J[195395]=0;Lf:{Mf:{Nf:{Of:{Pf:{Qf:{Rf:{Sf:{Tf:{Uf:{Vf:{Wf:{Xf:{Yf:{Zf:{_f:{$f:{ag:{bg:{cg:{dg:{if((b| -0)!=1){J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break dg;b=J[J[a>>2]+16>>2];J[195395]=0;b=_(b|0,a|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break cg;g=J[b+4>>2];d=J[b+12>>2];i=J[c+88>>2];h=J[c+96>>2];j=J[b>>2];b=J[b+8>>2];k=J[c+84>>2];m=J[c+92>>2];J[195395]=0;o=J[195395];J[195395]=0;if((o|0)==1)break yf;j=(b-j|0)/(m-k|0)|0;b=j>>31;d=(d-g|0)/(h-i|0)|0;g=d>>31;n=+((d^g)-g|0);q=+((b^j)-b|0);eg:{if(R(1-q)<=2.220446049250313E-16){b=0;J[195395]=0;g=J[195395];J[195395]=0;if((g|0)==1)break yf;if(R(1- -n)<=2.220446049250313E-16)break eg}J[195395]=0;g=ca(2040,e+104|0,427936)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bg;J[195395]=0;fa(1950,f|0,g|0,1);b=J[195395];J[195395]=0;if((b|0)==1)break ag;if(H[g+11|0]<0)Kb(J[g>>2]);J[195395]=0;g=ca(2040,e+92|0,427944)|0;b=J[195395];J[195395]=0;if((b|0)==1)break $f;J[195395]=0;b=e+20|0;da(1863,b|0,+q,-1);d=J[195395];J[195395]=0;if((d|0)==1)break _f;J[195395]=0;b=aa(1954,b|0,0,427984)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Zf;J[e+40>>2]=J[b+8>>2];d=J[b+ -4>>2];J[e+32>>2]=J[b>>2];J[e+36>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+32|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break Yf;J[e+56>>2]=J[e+40>>2];J[e+40>>2]=0;b=J[e+36>>2];J[e+48>>2]=J[e+32>>2];J[e+52>>2]=b;J[e+32>>2]=0;J[e+36>>2]=0;J[195395]=0;b=e+8|0;da(1863,b|0,+n,-1);d=J[195395];J[195395]=0;if((d|0)==1)break Xf;J[195395]=0;i=b;b=K[e+19|0];d=b<<24>>24<0;b=aa(1864,e+48|0,(d?J[e+8>>2]:i)|0,(d?J[e+12>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Wf;J[e+72>>2]=J[b+8>> -2];d=J[b+4>>2];J[e+64>>2]=J[b>>2];J[e+68>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e- -64|0,41);b=J[195395];J[195395]=0;if((b|0)==1)break Vf;J[e+88>>2]=J[e+72>>2];J[e+72>>2]=0;b=J[e+68>>2];J[e+80>>2]=J[e+64>>2];J[e+84>>2]=b;J[e+64>>2]=0;J[e+68>>2]=0;J[195395]=0;fa(1951,f|0,g|0,e+80|0);b=J[195395];J[195395]=0;if((b|0)==1)break Uf;if(H[e+91|0]<0)Kb(J[e+80>>2]);if(H[e+75|0]<0)Kb(J[e+64>>2]);if(H[e+19|0]<0)Kb(J[e+8>>2]);if(H[e+59|0]<0)Kb(J[e+48>>2]);if(H[e+43|0]<0)Kb(J[e+32>>2]);if(H[e+ -31|0]<0)Kb(J[e+20>>2]);if(H[g+11|0]<0)Kb(J[g>>2]);J[195395]=0;g=ca(2040,e+80|0,427936)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Nf;J[195395]=0;ia(1953,f|0,g|0,1,0);b=J[195395];J[195395]=0;if((b|0)==1)break Mf;if(H[g+11|0]<0)Kb(J[g>>2]);b=1}J[195395]=0;g=J[c+208>>2];d=J[195395];J[195395]=0;if((d|0)==1)break yf;J[195395]=0;$(2042,g+8|0,f|0);g=J[195395];J[195395]=0;if((g|0)==1)break yf;J[195395]=0;ea(2114,c|0);g=J[195395];J[195395]=0;if((g|0)==1)break yf;if(b)break Lf;break Gf}b=Z()|0;break xf}b= -Z()|0;break xf}b=Z()|0;break xf}b=Z()|0;break xf}b=Z()|0;if(H[g+11|0]>=0)break xf;Kb(J[g>>2]);break xf}b=Z()|0;break xf}b=Z()|0;break Of}b=Z()|0;break Pf}b=Z()|0;break Qf}b=Z()|0;break Rf}b=Z()|0;break Sf}b=Z()|0;break Tf}b=Z()|0;if(H[e+91|0]>=0)break Tf;Kb(J[e+80>>2])}if(H[e+75|0]>=0)break Sf;Kb(J[e+64>>2])}if(H[e+19|0]>=0)break Rf;Kb(J[e+8>>2])}if(H[e+59|0]>=0)break Qf;Kb(J[e+48>>2])}if(H[e+43|0]>=0)break Pf;Kb(J[e+32>>2])}if(H[e+31|0]>=0)break Of;Kb(J[e+20>>2])}if(H[g+11|0]>=0)break xf;Kb(J[g>> -2]);break xf}b=Z()|0;break xf}b=Z()|0;if(H[g+11|0]>=0)break xf;Kb(J[g>>2]);break xf}J[195395]=0;g=ca(2040,e- -64|0,427936)|0;b=J[195395];J[195395]=0;fg:{if((b|0)!=1){J[195395]=0;ia(1953,f|0,g|0,0,0);b=J[195395];J[195395]=0;if((b|0)==1)break fg;if(H[g+11|0]>=0)break Gf;Kb(J[g>>2]);break Gf}b=Z()|0;break xf}b=Z()|0;if(H[g+11|0]>=0)break xf;Kb(J[g>>2]);break xf}b=Z()|0;break xf}b=J[a+248>>2];if(b){f=J[J[b>>2]+128>>2];J[195395]=0;ea(f|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break yf}H[a+264|0]=1}b= -J[a+252>>2];if(b){Kb(b);J[a+252>>2]=0}J[a+256>>2]=0;J[a+260>>2]=0;Uh(c)}xb=e+432|0;break wf}b=Z()|0}Uh(c);ba(b|0);B()}break x}a=Z()|0;Kb(b);break r}b=J[a+248>>2];if(b)Ab[J[J[b>>2]+128>>2]](b);H[a+264|0]=1}if(K[a+264|0])break v;b=J[a+16>>2];d=J[a+8>>2];J[a+16>>2]=d;c=J[a+36>>2]+(J[a+4>>2]+J[a+40>>2]|0)|0;b=b>>>0>c>>>0?c:b;J[a+12>>2]=b;if(!K[a+33|0])continue;break}break w}if(K[a+264|0])break v}H[a+33|0]=1;break u}if(K[a+33|0])break u;b=J[a+8>>2];J[a+12>>2]=J[a+4>>2];J[a+16>>2]=b}b=J[a+248>>2];if(b)Ab[J[J[b>> -2]+12>>2]](b);Ab[J[J[a>>2]+12>>2]](a)}xb=p+32|0;return}a=Z()|0;Kb(c)}ba(a|0);B()}function Fja(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,u=0,v=0,w=Q(0),x=0,y=0,z=0;a:{b:{c:{d:{e:{f:{g:switch(c-1|0){case 0:c=Pb(944);J[195395]=0;e=Fd(c,1);f=J[195395];J[195395]=0;if((f|0)==1)break f;J[e>>2]=240372;Rg(e,a);j=xb+-64|0;xb=j;n=kh(e,b);h:{if(n)break h;c=(J[e+32>>2]+J[e+12>>2]|0)+(J[e+44>>2]<<2)|0;I[j+56>>1]=0;I[j+58>>1]=0;d=J[e+12>>2];f=J[e+44>>2]<<2; -I[j+50>>1]=K[e+462|0]?19778:5063245;c=Mf(e,c+14|0);I[j+52>>1]=c;I[j+54>>1]=c>>>16;c=Mf(e,(d+f|0)+14|0);I[j+60>>1]=c;I[j+62>>1]=c>>>16;if(!(J[e+44>>2]|!J[e+932>>2])){c=J[e+32>>2];J[j+24>>2]=J[e+28>>2];J[j+28>>2]=c;c=J[e+24>>2];d=J[e+20>>2];J[j+16>>2]=d;J[j+20>>2]=c;c=J[e+48>>2];J[j+40>>2]=J[e+44>>2];J[j+44>>2]=c;c=J[e+40>>2];J[j+32>>2]=J[e+36>>2];J[j+36>>2]=c;h=J[e+16>>2];c=J[e+12>>2];f=0;J[j+24>>2]=0;J[j+8>>2]=c;J[j+12>>2]=h;I[j+22>>1]=32;d=P(d,(J[j+12>>2]<<5|31)/32|0)<<2;J[j+28>>2]=d;c=Mf(e,(c+d| -0)+14|0);I[j+52>>1]=c;I[j+54>>1]=c>>>16;c=j+8|0;hi(e,c);Ab[J[J[b>>2]+16>>2]](b,j+50|0,14,1)|0;Ab[J[J[b>>2]+16>>2]](b,c,40,1)|0;h=TE(e);if(J[j+16>>2]<=0)break h;while(1){i=0;d=fd(e,f);if(J[j+12>>2]>0)while(1){Ab[J[J[b>>2]+16>>2]](b,d,3,1)|0;Ab[J[J[b>>2]+16>>2]](b,h,1,1)|0;h=h+1|0;d=d+3|0;i=i+1|0;if((i|0)>2])continue;break}f=f+1|0;if((f|0)>2])continue;break}break h}Ab[J[J[b>>2]+16>>2]](b,j+50|0,14,1)|0;f=K[e+16|0]|K[e+17|0]<<8|(K[e+18|0]<<16|K[e+19|0]<<24);d=J[e+4>>2];c=K[e+12|0]|K[e+ -13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;f=K[e+48|0]|K[e+49|0]<<8|(K[e+50|0]<<16|K[e+51|0]<<24);c=K[e+44|0]|K[e+45|0]<<8|(K[e+46|0]<<16|K[e+47|0]<<24);H[d+32|0]=c;H[d+33|0]=c>>>8;H[d+34|0]=c>>>16;H[d+35|0]=c>>>24;H[d+36|0]=f;H[d+37|0]=f>>>8;H[d+38|0]=f>>>16;H[d+39|0]=f>>>24;f=K[e+40|0]|K[e+41|0]<<8|(K[e+42|0]<<16|K[e+43|0]<<24);c=K[e+36|0]|K[e+37|0]<<8|(K[e+38|0]<<16|K[e+39|0]<<24);H[d+ -24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;H[d+28|0]=f;H[d+29|0]=f>>>8;H[d+30|0]=f>>>16;H[d+31|0]=f>>>24;f=K[e+32|0]|K[e+33|0]<<8|(K[e+34|0]<<16|K[e+35|0]<<24);c=K[e+28|0]|K[e+29|0]<<8|(K[e+30|0]<<16|K[e+31|0]<<24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;H[d+20|0]=f;H[d+21|0]=f>>>8;H[d+22|0]=f>>>16;H[d+23|0]=f>>>24;f=K[e+24|0]|K[e+25|0]<<8|(K[e+26|0]<<16|K[e+27|0]<<24);c=K[e+20|0]|K[e+21|0]<<8|(K[e+22|0]<<16|K[e+23|0]<<24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>> -16;H[d+11|0]=c>>>24;H[d+12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;hi(e,J[e+4>>2]);Ab[J[J[b>>2]+16>>2]](b,J[e+4>>2],(J[e+32>>2]+J[e+12>>2]|0)+(J[e+44>>2]<<2)|0,1)|0;hi(e,J[e+4>>2])}xb=j- -64|0;if(n^1)break c;break b;case 4:c=Pb(948);J[195395]=0;e=Fd(c,5);f=J[195395];J[195395]=0;if((f|0)==1)break f;J[e+944>>2]=0;J[e>>2]=240416;Rg(e,a);c=0;o=xb-1056|0;xb=o;i:{j:{k:{l:{m:{if(kh(e,b))break m;f=J[e+4>>2];n=J[e+44>>2];h=f?n?f+40|0:0:0;d=L[e+26>>1];if(!h&d>>>0<9)break m;r=J[e+20>>2];j=J[e+ -16>>2];f=J[e+32>>2];c=J[e+932>>2]!=0;I[o+1054>>1]=1;I[o+1050>>1]=0;I[o+1052>>1]=1;c=c&!n;l=c?P(j,r)<<2:f;J[e+944>>2]=22;J[o+1044>>2]=22;d=c?32:d;I[o+1038>>1]=d;I[o+1036>>1]=0;H[o+1035|0]=0;H[o+1032|0]=j;H[o+1034|0]=n;q=(j+31|0)/32<<2;t=P(q,r);f=(l+(t+(n<<2)|0)|0)+40|0;J[o+1040>>2]=f;H[o+1033|0]=r;c=o+1024|0;J[c>>2]=0;J[c+4>>2]=0;J[o+1016>>2]=0;J[o+1020>>2]=0;J[o+1012>>2]=l;J[o+1008>>2]=0;I[o+1006>>1]=d;I[o+1004>>1]=1;J[o+1E3>>2]=r<<1;J[o+996>>2]=j;J[o+992>>2]=40;v=ZE(o+48|0,e,1,1,1);J[195395]=0;s= -Pl(o+20|0,0,0);c=J[195395];J[195395]=0;n:{o:{p:{if((c|0)!=1){if(!(J[e+20>>2]<256&J[e+16>>2]<=255)){I[o+1032>>1]=0;J[195395]=0;_(1144,s|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[195395]=0;aa(1143,v|0,s|0,4)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[195395]=0;f=J[s+4>>2]?J[s+8>>2]:-1;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[o+1040>>2]=f}J[195395]=0;n=I[o+1052>>1];d=K[e+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break k;I[o+1052>>1]=(d?n:n<<8|(n&65280)>>>8)<<16>>16;J[195395]=0;n= -I[o+1054>>1];d=K[e+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break k;I[o+1054>>1]=(d?n:n<<8|(n&65280)>>>8)<<16>>16;c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,o+1050|0,6,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[195395]=0;n=I[o+1052>>1];d=K[e+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break k;I[o+1052>>1]=(d?n:n<<8|(n&65280)>>>8)<<16>>16;J[195395]=0;n=I[o+1054>>1];d=K[e+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break k;I[o+1054>>1]=(d?n:n<<8|(n&65280)>>>8)<<16>>16;J[195395]=0;n=I[o+1036>> -1];d=K[e+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break k;I[o+1036>>1]=(d?n:n<<8|(n&65280)>>>8)<<16>>16;J[195395]=0;n=I[o+1038>>1];d=K[e+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break k;I[o+1038>>1]=(d?n:n<<8|(n&65280)>>>8)<<16>>16;J[195395]=0;d=Mf(e,J[o+1040>>2]);c=J[195395];J[195395]=0;if((c|0)==1)break k;J[o+1040>>2]=d;J[195395]=0;d=Mf(e,J[o+1044>>2]);c=J[195395];J[195395]=0;if((c|0)==1)break k;J[o+1044>>2]=d;c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,o+1032|0,16,1)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break k;J[195395]=0;n=I[o+1036>>1];d=K[e+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break k;I[o+1036>>1]=(d?n:n<<8|(n&65280)>>>8)<<16>>16;J[195395]=0;n=I[o+1038>>1];d=K[e+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break k;I[o+1038>>1]=(d?n:n<<8|(n&65280)>>>8)<<16>>16;J[195395]=0;d=Mf(e,J[o+1040>>2]);c=J[195395];J[195395]=0;if((c|0)==1)break k;J[o+1040>>2]=d;J[195395]=0;d=Mf(e,J[o+1044>>2]);c=J[195395];J[195395]=0;if((c|0)==1)break k;J[o+1044>>2]=d;J[e+944>>2]=J[e+944>>2]+f;c=1;if(!(K[o+ -1032|0]|K[o+1033|0])){J[195395]=0;h=J[s+4>>2];d=J[195395];J[195395]=0;if((d|0)==1)break k;d=J[J[b>>2]+16>>2];J[195395]=0;ha(d|0,b|0,h|0,f|0,1)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k;break n}J[195395]=0;f=o+992|0;hi(e,f);c=J[195395];J[195395]=0;if((c|0)==1)break k;c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,f|0,40,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[195395]=0;hi(e,f);c=J[195395];J[195395]=0;if((c|0)==1)break k;p=J[e+336>>2];J[195395]=0;ms(o+16|0,e);c=J[195395];J[195395]=0;if((c| -0)==1)break k;q:{if(!h)break q;if((p|0)>=0){c=K[e+336|0];J[195395]=0;gi(e,c,0,0,0,0);c=J[195395];J[195395]=0;if((c|0)==1)break k}f=J[J[b>>2]+16>>2];c=J[e+44>>2];J[195395]=0;ha(f|0,b|0,h|0,c<<2,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;if((p|0)<0)break q;f=K[e+336|0];c=J[o+16>>2];J[o+12>>2]=c;J[195395]=0;J[o+4>>2]=c;Sl(e,f,o+4|0);c=J[195395];J[195395]=0;if((c|0)==1)break k}J[195395]=0;f=J[e+932>>2];c=J[195395];J[195395]=0;if((c|0)==1)break k;if(!(!J[e+44>>2]&(f|0)!=0))break p;f=Qb(l);if(J[e+ -20>>2]>0){c=f;while(1){J[195395]=0;d=fd(e,m);h=J[195395];J[195395]=0;r:{if((h|0)!=1){i=0;if(J[e+16>>2]<=0)break r;while(1){s:{H[c|0]=K[d|0];H[c+1|0]=K[d+1|0];H[c+2|0]=K[d+2|0];J[195395]=0;n=gg(e,i,m);h=J[195395];J[195395]=0;if((h|0)==1)break s;H[c+3|0]=n;c=c+4|0;d=d+3|0;i=i+1|0;if((i|0)>2])continue;break r}break}break k}break k}m=m+1|0;if((m|0)>2])continue;break}}c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,f|0,l|0,1)|0;c=J[195395];J[195395]=0;if((c|0)!=1){Kb(f);break o}break k}c=Z()| -0;break j}f=J[e+56>>2];c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,f|0,l|0,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k}u=vc(t,1);if(u){J[195395]=0;r=is(e);c=J[195395];J[195395]=0;if((c|0)==1)break k;J[195395]=0;k=J[e+932>>2]!=0;c=J[195395];J[195395]=0;t:{if((c|0)!=1){u:{if(J[e+20>>2]<=0)break u;i=J[e+16>>2];if((i|0)<=0)break u;d=0;while(1){v:{if((i|0)<=0)break v;l=u+P(d,q)|0;c=0;if(r){while(1){w:{i=0;if(k){J[195395]=0;h=gg(e,c,d);f=J[195395];J[195395]=0;if((f|0)==1)break w;i=!h}J[195395]=0;h=o+ -8|0;eg(h,e,c,d,1);f=J[195395];J[195395]=0;if((f|0)==1)break k;J[195395]=0;j=K[o+11|0];fj(h,e,c,d,0);f=J[195395];J[195395]=0;if((f|0)==1)break k;n=l+(c>>>3|0)|0;h=(c^-1)&7;f=K[n|0]&Opa(-2,h);g=f;f=j?i:1;H[n|0]=g|((p|0)>=0?J[o+8>>2]==J[o+16>>2]?1:f:f)<>2];if((c|0)<(i|0))continue;break v}break}break k}x:{while(1){i=0;if(k){J[195395]=0;h=gg(e,c,d);f=J[195395];J[195395]=0;if((f|0)==1)break x;i=!h}J[195395]=0;fj(o+8|0,e,c,d,0);f=J[195395];J[195395]=0;if((f|0)!=1){n=l+(c>>>3|0)|0;h=(c^ --1)&7;f=K[n|0]&Opa(-2,h);H[n|0]=((p|0)>=0?J[o+8>>2]==J[o+16>>2]?1:i:i)<>2];if((c|0)>=(i|0))break v;continue}break}break k}break k}d=d+1|0;if((d|0)>2])continue;break}}f=J[J[b>>2]+16>>2];J[195395]=0;c=1;ha(f|0,b|0,u|0,t|0,1)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break t}break k}Kb(u);break n}c=0}Og(s);J[v>>2]=234140;J[195395]=0;_(1097,v|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break l;J[195395]=0;_(1098,v|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break l}xb=o+1056|0;break i}ga(0)| -0;_b();B()}c=Z()|0;Og(s)}Nf(v);ba(c|0);B()}if(c)break c;break b;case 5:c=Pb(956);J[195395]=0;e=Fd(c,6);f=J[195395];J[195395]=0;if((f|0)==1)break f;J[e+952>>2]=0;H[e+948|0]=0;J[e+944>>2]=0;J[e>>2]=241660;Rg(e,a);y:{z:{A:{B:{if(!b){oc(e+72|0,240892,255);break B}if(!J[e+4>>2]){oc(e+72|0,240964,255);break B}C:{c=J[e+944>>2];if(c)break C;c=LE(b,240978);J[e+944>>2]=c;if(c)break C;oc(e+72|0,241063,255);break B}b=J[e+952>>2];if(b){H[e+948|0]=1;f=1}else f=K[e+948|0]!=0;r=b+1|0;J[e+952>>2]=r;n=c;b=0;j=xb-1456| -0;xb=j;t=J[e+16>>2];u=J[e+20>>2];l=L[e+26>>1];D:{if((l|0)==24){b=J[e+932>>2]!=0;l=b?32:24;s=b?4:3;v=(l>>>0)/(s>>>0)|0;i=2;break D}s=(l|0)==24?3:(l|0)==32?3:1;v=(l>>>0)/(s>>>0)|0;c=J[e+4>>2];c=c?J[e+44>>2]?c+40|0:0:0;E:switch(l-1|0){case 0:if((ns(c,c+4|0)|0)>=0){l=1;break D}Td(j+416|0,e,0);l=1;Td(j+1452|0,e,1);J[j+380>>2]=K[j+1452|0]|K[j+1453|0]<<8|(K[j+1454|0]<<16|K[j+1455|0]<<24);Sl(e,0,j+380|0);c=J[j+416>>2];J[j+1448>>2]=c;J[j+376>>2]=c;Sl(e,1,j+376|0);if(J[e+32>>2]){c=J[e+56>>2];while(1){H[c|0]= -K[c|0]^-1;c=c+1|0;b=b+1|0;if(b>>>0>2])continue;break}}break D;case 3:case 7:b=J[e+44>>2];if(!b){i=1;break D}while(1){i=3;d=K[c+2|0];if((d|0)!=(g|0)){g=1;break D}if((d|0)!=K[c+1|0]){g=1;break D}if((d|0)!=K[c|0]){g=1;break D}c=c+4|0;i=1;g=g+1|0;if((b|0)!=(g|0))continue;break}g=0;break D;case 31:break E;default:break D}i=2;l=32}q=(l|0)==8?J[e+932>>2]?2:s:s;c=J[e+4>>2];b=J[e+44>>2];F:{if(!(c?b?c+40|0:0:0))break F;Mb(j+416|0,c?b?c+40|0:0:0,b<<2);d=J[e+44>>2];if(!d)break F;c=0;b=0;while(1){h=(j+ -416|0)+(c<<2)|0;c=K[h+2|0];H[h+2|0]=K[h|0];H[h|0]=c;b=b+1|0;c=b&65535;if(d>>>0>c>>>0)continue;break}}J[j+368>>2]=t;xc(n,256,j+368|0);J[j+352>>2]=u;xc(n,257,j+352|0);J[j+336>>2]=q;xc(n,277,j+336|0);J[j+320>>2]=v;xc(n,258,j+320|0);J[j+304>>2]=i;xc(n,262,j+304|0);J[j+288>>2]=1;xc(n,284,j+288|0);J[j+272>>2]=1;xc(n,274,j+272|0);d=Ab[J[n+576>>2]](n,-1)|0;J[j+256>>2]=d;xc(n,278,j+256|0);J[j+240>>2]=2;xc(n,296,j+240|0);O[j+224>>3]=Q(J[e+364>>2]);xc(n,282,j+224|0);O[j+208>>3]=Q(J[e+368>>2]);xc(n,283,j+208| -0);G:{if(f){J[j+176>>2]=r;b=j+384|0;Md(b,241668,j+176|0);J[j+160>>2]=2;xc(n,254,j+160|0);J[j+148>>2]=r;J[j+144>>2]=r;xc(n,297,j+144|0);J[j+128>>2]=b;xc(n,285,j+128|0);break G}J[j+192>>2]=0;xc(n,254,j+192|0)}if(g){k=Qb(1536);r=k+1024|0;h=k+512|0;b=255;while(1){f=b<<1;c=(j+416|0)+(b<<2)|0;I[f+r>>1]=P(K[c+2|0],257);I[f+h>>1]=P(K[c+1|0],257);I[f+k>>1]=P(K[c|0],257);c=b;b=b-1|0;if(c)continue;break}J[j+120>>2]=r;J[j+116>>2]=h;J[j+112>>2]=k;xc(n,320,j+112|0);Kb(k)}H:{I:{J:{K:{L:{if(!ii(e,6)){c=4;M:switch(l- -1|0){default:c=1;break;case 3:case 7:break J;case 23:case 31:break L;case 0:break M}J[j>>2]=c;xc(n,259,j);break H}b=ii(e,6)&65535;J[j+96>>2]=b;xc(n,259,j+96|0);switch(b-5|0){case 0:break I;case 2:break K;default:break H}}J[j+80>>2]=7;xc(n,259,j+80|0)}w=Q(N[e+344>>2]+Q(.5));N:{if(w=Q(0)){b=~~w>>>0;break N}b=0}J[j+64>>2]=b;xc(n,65537,j- -64|0);J[j+48>>2]=d+7&-8;xc(n,278,j+48|0);break H}J[j+32>>2]=5;xc(n,259,j+32|0)}if(l>>>0<8)break H;J[j+16>>2]=2;xc(n,317,j+16|0)}c=1;O:{P:{Q:switch(l- -1|0){case 0:case 3:case 7:if((q|0)==1){g=Qb(J[e+52>>2]);if(!g){c=0;break O}if(!u)break P;b=0;while(1){c=J[e+52>>2];f=zl(n,Mb(g,J[e+56>>2]+P(c,u+(b^-1)|0)|0,c),b);c=(f|0)!=-1;if((f|0)==-1)break P;b=b+1|0;if((u|0)!=(b|0))continue;break}break P}g=Qb(t<<1);if(!g){c=0;break O}if(!u)break P;b=0;if(!t)while(1){f=zl(n,g,b);c=(f|0)!=-1;if((f|0)==-1)break P;b=b+1|0;if((u|0)!=(b|0))continue;break P}while(1){d=u+(b^-1)|0;c=0;while(1){f=(c<<1)+g|0;x=f,y=jh(e,c,d),H[x|0]=y;x=f,y=gg(e,c,d),H[x+1|0]=y;c=c+1|0;if((t| -0)!=(c|0))continue;break}f=zl(n,g,b);c=(f|0)!=-1;if((f|0)==-1)break P;b=b+1|0;if((u|0)!=(b|0))continue;break}break P;case 23:g=Qb(J[e+52>>2]);if(!g){c=0;break O}if(!u)break P;r=t&-4;q=t&3;h=t>>>0<4;l=0;while(1){b=J[e+52>>2];f=Mb(g,J[e+56>>2]+P(b,u+(l^-1)|0)|0,b);R:{if(!t)break R;b=0;c=f;if(!h)while(1){d=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=d;d=K[c+3|0];H[c+3|0]=K[c+5|0];H[c+5|0]=d;d=K[c+6|0];H[c+6|0]=K[c+8|0];H[c+8|0]=d;d=K[c+9|0];H[c+9|0]=K[c+11|0];H[c+11|0]=d;c=c+12|0;b=b+4|0;if((r|0)!=(b|0))continue; -break}b=0;if(!q)break R;while(1){d=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=d;c=c+3|0;b=b+1|0;if((q|0)!=(b|0))continue;break}}b=zl(n,f,l);c=(b|0)!=-1;if((b|0)==-1)break P;l=l+1|0;if((u|0)!=(l|0))continue;break}break P;case 31:break Q;default:break O}g=Qb((J[e+52>>2]<<2>>>0)/3|0);if(!g){c=0;break O}if(!u)break P;h=(t<<2)+g|0;d=P(t,3)+g|0;l=0;while(1){b=J[e+52>>2];q=u+(l^-1)|0;r=Mb(g,J[e+56>>2]+P(b,q)|0,b);c=h;b=d;s=0;if(t)while(1){x=c-1|0,y=gg(e,t+(s^-1)|0,q),H[x|0]=y;f=b-3|0;H[c-2|0]=K[f|0];H[c-3|0]=K[b-2| -0];c=c-4|0;H[c|0]=K[b-1|0];b=f;s=s+1|0;if((t|0)!=(s|0))continue;break}b=zl(n,r,l);c=(b|0)!=-1;if((b|0)==-1)break P;l=l+1|0;if((u|0)!=(l|0))continue;break}}Kb(g)}xb=j+1456|0;if(!c){oc(e+72|0,241115,255);break B}c=J[e+944>>2];break A}c=0;b=J[e+944>>2];if(!b)break y;Bl(b);H[e+948|0]=0;J[e+944>>2]=0;b=e+952|0;break z}Bl(c);H[e+948|0]=0;J[e+944>>2]=0;c=1;b=e+952|0}J[b>>2]=0}if(c)break c;break b;case 2:c=Pb(968);J[195395]=0;e=js(c);f=J[195395];J[195395]=0;if((f|0)==1)break f;Rg(e,a);p=xb-784|0;xb=p;g=Qb(40); -J[g>>2]=0;J[195395]=0;n=b;c=kh(e,b);h=J[195395];J[195395]=0;S:{T:{if((h|0)==1)break T;k=4;d=-1;U:{V:{W:{X:{if(!h)break X;b=J[195396];if(!b)break X;d=Sb(J[h>>2],g,4);if(!d)break W;yb=b}b=yb;Y:{if((d|0)==1)break Y;b=0;if(c)break U;Z:{_:{s=e+44|0;if(!J[s>>2])break _;J[195395]=0;c=ej(e);h=J[195395];J[195395]=0;if((h|0)==1)break T;d=-1;$:{if(!h)break $;b=J[195396];if(!b)break $;d=Sb(J[h>>2],g,4);if(!d)break W;yb=b}b=yb;if((d|0)==1)break Z;if(c)break _;b=K[238512]|K[238513]<<8|(K[238514]<<16|K[238515]<< -24);H[e+111|0]=b;H[e+112|0]=b>>>8;H[e+113|0]=b>>>16;H[e+114|0]=b>>>24;c=K[238509]|K[238510]<<8|(K[238511]<<16|K[238512]<<24);b=K[238505]|K[238506]<<8|(K[238507]<<16|K[238508]<<24);H[e+104|0]=b;H[e+105|0]=b>>>8;H[e+106|0]=b>>>16;H[e+107|0]=b>>>24;H[e+108|0]=c;H[e+109|0]=c>>>8;H[e+110|0]=c>>>16;H[e+111|0]=c>>>24;c=K[238501]|K[238502]<<8|(K[238503]<<16|K[238504]<<24);b=K[238497]|K[238498]<<8|(K[238499]<<16|K[238500]<<24);H[e+96|0]=b;H[e+97|0]=b>>>8;H[e+98|0]=b>>>16;H[e+99|0]=b>>>24;H[e+100|0]=c;H[e+ -101|0]=c>>>8;H[e+102|0]=c>>>16;H[e+103|0]=c>>>24;c=K[238493]|K[238494]<<8|(K[238495]<<16|K[238496]<<24);b=K[238489]|K[238490]<<8|(K[238491]<<16|K[238492]<<24);H[e+88|0]=b;H[e+89|0]=b>>>8;H[e+90|0]=b>>>16;H[e+91|0]=b>>>24;H[e+92|0]=c;H[e+93|0]=c>>>8;H[e+94|0]=c>>>16;H[e+95|0]=c>>>24;c=K[238485]|K[238486]<<8|(K[238487]<<16|K[238488]<<24);b=K[238481]|K[238482]<<8|(K[238483]<<16|K[238484]<<24);H[e+80|0]=b;H[e+81|0]=b>>>8;H[e+82|0]=b>>>16;H[e+83|0]=b>>>24;H[e+84|0]=c;H[e+85|0]=c>>>8;H[e+86|0]=c>>>16;H[e+ -87|0]=c>>>24;c=K[238477]|K[238478]<<8|(K[238479]<<16|K[238480]<<24);b=K[238473]|K[238474]<<8|(K[238475]<<16|K[238476]<<24);H[e+72|0]=b;H[e+73|0]=b>>>8;H[e+74|0]=b>>>16;H[e+75|0]=b>>>24;H[e+76|0]=c;H[e+77|0]=c>>>8;H[e+78|0]=c>>>16;H[e+79|0]=c>>>24;b=0;break U}b=J[J[n>>2]+24>>2];J[195395]=0;v=_(b|0,n|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break T;d=-1;aa:{if(!h)break aa;b=J[195396];if(!b)break aa;d=Sb(J[h>>2],g,4);if(!d)break W;yb=b}b=yb;if((d|0)==1)break Z;J[195395]=0;i=e+72|0;J[p+348>>2]=i;c=nk(p+ -60|0);h=J[195395];J[195395]=0;if((h|0)==1)break T;d=-1;ba:{if(!h)break ba;b=J[195396];if(!b)break ba;d=Sb(J[h>>2],g,4);if(!d)break W;yb=b}u=e+52|0;m=p+348|0;b=yb;if((d|0)==1)break Y;J[p+60>>2]=1153;J[p+352>>2]=c;g=wd(p+192|0,1,g,4);k=yb;b=0}}ca:while(1){f=b;if(b){b=J[m>>2];J[195395]=0;se(i,b);h=J[195395];J[195395]=0;d=-1;da:{if(!h)break da;b=J[195396];if(!b)break da;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;J[195395]=0;ea(1185,p+352|0);h=J[195395];J[195395]=0;if((h|0)==1)break T; -d=-1;ea:{if(!h)break ea;b=J[195396];if(!b)break ea;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;break V}J[195395]=0;fa(1186,p+352|0,80,432);h=J[195395];J[195395]=0;if((h|0)==1)break T;d=-1;fa:{if(!h)break fa;b=J[195396];if(!b)break fa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;J[p+44>>2]=1154;J[p+40>>2]=1155;J[p+36>>2]=1156;J[p+32>>2]=1157;J[p+28>>2]=1158;J[p+16>>2]=1159;J[p+12>>2]=1160;J[p+8>>2]=1161;J[p+48>>2]=n;J[p+20>>2]=0;J[p+24>>2]=0;J[195395]=0;c=_(1109, -4096)|0;h=J[195395];J[195395]=0;if((h|0)==1)break T;d=-1;ga:{if(!h)break ga;b=J[195396];if(!b)break ga;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;J[p+52>>2]=c;J[195395]=0;J[p+376>>2]=p;c=J[e+16>>2];h=J[195395];J[195395]=0;d=-1;ha:{if(!h)break ha;b=J[195396];if(!b)break ha;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;ia:{if((h|0)==1)break ia;J[195395]=0;J[p+380>>2]=c;c=J[e+20>>2];h=J[195395];J[195395]=0;d=-1;ja:{if(!h)break ja;b=J[195396];if(!b)break ja;d=Sb(J[h>> -2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;J[195395]=0;J[p+384>>2]=c;c=ej(e);h=J[195395];J[195395]=0;d=-1;ka:{if(!h)break ka;b=J[195396];if(!b)break ka;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;J[195395]=0;J[p+392>>2]=c?1:2;J[p+388>>2]=c?1:3;ea(1188,p+352|0);h=J[195395];J[195395]=0;d=-1;la:{if(!h)break la;b=J[195396];if(!b)break la;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;J[195395]= -0;j=ii(e,3);h=J[195395];J[195395]=0;d=-1;ma:{if(!h)break ma;b=J[195396];if(!b)break ma;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;if(j&2)J[p+564>>2]=1;if(j&8)J[p+568>>2]=1;if(j&4){J[195395]=0;$(1189,p+352|0,1);h=J[195395];J[195395]=0;d=-1;na:{if(!h)break na;b=J[195396];if(!b)break na;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia}if(j&64)J[p+580>>2]=J[e+956>>2];J[195395]=0;w=Q(N[e+344>>2]+Q(.5));oa:{if(w= -Q(0)){c=~~w>>>0;break oa}c=0}h=J[195395];J[195395]=0;d=-1;pa:{if(!h)break pa;b=J[195396];if(!b)break pa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;J[195395]=0;fa(1190,p+352|0,c|0,j&1);h=J[195395];J[195395]=0;d=-1;qa:{if(!h)break qa;b=J[195396];if(!b)break qa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;if(j&16){J[195395]=0;ea(1191,p+352|0);h=J[195395];J[195395]=0;d=-1;ra:{if(!h)break ra;b=J[195396];if(!b)break ra;d=Sb(J[h>> -2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia}b=J[p+436>>2];J[b+8>>2]=2;J[b+12>>2]=2;J[b+184>>2]=1;J[b+188>>2]=1;J[b+96>>2]=1;J[b+100>>2]=1;if(j&4096){J[b+184>>2]=1;J[b+188>>2]=1;J[b+96>>2]=1;J[b+100>>2]=1;J[b+8>>2]=2;J[b+12>>2]=1}if(j&8192){J[b+184>>2]=1;J[b+188>>2]=1;J[b+96>>2]=1;J[b+100>>2]=1;J[b+8>>2]=1;J[b+12>>2]=1}J[195395]=0;H[p+602|0]=1;c=J[e+364>>2];h=J[195395];J[195395]=0;d=-1;sa:{if(!h)break sa;b=J[195396];if(!b)break sa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b= -yb;if((d|0)==1)continue;if((h|0)==1)break ia;J[195395]=0;I[p+604>>1]=c;c=J[e+368>>2];h=J[195395];J[195395]=0;d=-1;ta:{if(!h)break ta;b=J[195396];if(!b)break ta;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;J[195395]=0;I[p+606>>1]=c;$(1193,p+352|0,1);h=J[195395];J[195395]=0;d=-1;ua:{if(!h)break ua;b=J[195396];if(!b)break ua;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;b=J[J[p+356>>2]+8>>2];t=J[u>>2];J[195395]=0;q=ha(b|0,p+ -352|0,1,t+8|0,1)|0;h=J[195395];J[195395]=0;d=-1;va:{if(!h)break va;b=J[195396];if(!b)break va;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break ia;J[195395]=0;fd(e,0);h=J[195395];J[195395]=0;d=-1;wa:{if(!h)break wa;b=J[195396];if(!b)break wa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;xa:{if((h|0)==1)break xa;J[195395]=0;o=J[e+20>>2];h=J[195395];J[195395]=0;d=-1;ya:{if(!h)break ya;b=J[195396];if(!b)break ya;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb; -if((d|0)==1)continue;if((h|0)==1)break xa;J[195395]=0;r=fd(e,0);h=J[195395];J[195395]=0;d=-1;za:{if(!h)break za;b=J[195396];if(!b)break za;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;J[195395]=0;j=J[e+52>>2];h=J[195395];J[195395]=0;d=-1;Aa:{if(!h)break Aa;b=J[195396];if(!b)break Aa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;J[195395]=0;c=J[e+20>>2];h=J[195395];J[195395]=0;d=-1;Ba:{if(!h)break Ba;b=J[195396];if(!b)break Ba; -d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;Ca:{if((t|0)>0){d=r+P(j,c-1|0)|0;while(1){if(M[p+612>>2]>=M[p+384>>2])break Ca;Da:{if(!d)break Da;c=J[q>>2];if(!c)break Da;J[195395]=0;j=J[e+52>>2];h=J[195395];J[195395]=0;r=-1;Ea:{if(!h)break Ea;b=J[195396];if(!b)break Ea;r=Sb(J[h>>2],g,k);if(!r)break W;yb=b}b=yb;if((r|0)==1)continue ca;if((h|0)==1)break xa;Mb(c,d,(j|0)<(t|0)?j:t)}if(!J[s>>2]){b=J[q>>2];J[195395]=0;qk(e,b,t);h=J[195395];J[195395]=0;l=-1;Fa:{if(!h)break Fa; -b=J[195396];if(!b)break Fa;l=Sb(J[h>>2],g,k);if(!l)break W;yb=b}b=yb;if((l|0)==1)continue ca;if((h|0)==1)break xa}o=o-1|0;if((o|0)>0){J[195395]=0;c=J[e+52>>2];h=J[195395];J[195395]=0;l=-1;Ga:{if(!h)break Ga;b=J[195396];if(!b)break Ga;l=Sb(J[h>>2],g,k);if(!l)break W;yb=b}b=yb;if((l|0)==1)continue ca;if((h|0)==1)break xa;d=d-c|0}J[195395]=0;aa(1194,p+352|0,q|0,1)|0;h=J[195395];J[195395]=0;l=-1;Ha:{if(!h)break Ha;b=J[195396];if(!b)break Ha;l=Sb(J[h>>2],g,k);if(!l)break W;yb=b}b=yb;if((l|0)==1)continue ca; -if((h|0)!=1)continue;break}break xa}while(1){if(M[p+612>>2]>=M[p+384>>2])break Ca;Ia:{if(!J[s>>2]){b=J[q>>2];J[195395]=0;qk(e,b,t);h=J[195395];J[195395]=0;d=-1;Ja:{if(!h)break Ja;b=J[195396];if(!b)break Ja;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue ca;if((h|0)==1)break Ia}o=o-1|0;if((o|0)>0){J[195395]=0;h=J[195395];J[195395]=0;d=-1;Ka:{if(!h)break Ka;b=J[195396];if(!b)break Ka;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue ca;if((h|0)==1)break Ia}J[195395]=0;aa(1194, -p+352|0,q|0,1)|0;h=J[195395];J[195395]=0;d=-1;La:{if(!h)break La;b=J[195396];if(!b)break La;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue ca;if((h|0)!=1)continue}break}break ia}J[195395]=0;ea(1195,p+352|0);h=J[195395];J[195395]=0;d=-1;Ma:{if(!h)break Ma;b=J[195396];if(!b)break Ma;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;J[195395]=0;ea(1185,p+352|0);h=J[195395];J[195395]=0;d=-1;Na:{if(!h)break Na;b=J[195396];if(!b)break Na;d=Sb(J[h>>2],g, -k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;b=J[e+944>>2];if(!(!b|!K[J[b>>2]+460|0])){J[195395]=0;_E(b);h=J[195395];J[195395]=0;d=-1;Oa:{if(!h)break Oa;b=J[195396];if(!b)break Oa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;b=J[J[n>>2]+20>>2];J[195395]=0;aa(b|0,n|0,v|0,0)|0;h=J[195395];J[195395]=0;d=-1;Pa:{if(!h)break Pa;b=J[195396];if(!b)break Pa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;b=J[e+ -944>>2];J[195395]=0;aa(1150,b|0,n|0,2)|0;h=J[195395];J[195395]=0;d=-1;Qa:{if(!h)break Qa;b=J[195396];if(!b)break Qa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;b=J[J[n>>2]+20>>2];J[195395]=0;aa(b|0,n|0,v|0,0)|0;h=J[195395];J[195395]=0;d=-1;Ra:{if(!h)break Ra;b=J[195396];if(!b)break Ra;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa;b=J[e+944>>2];J[195395]=0;ca(1197,b|0,n|0)|0;h=J[195395];J[195395]=0;d=-1;Sa:{if(!h)break Sa; -b=J[195396];if(!b)break Sa;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;if((h|0)==1)break xa}b=J[p+52>>2];if(!b)break V;J[195395]=0;Kb(b);h=J[195395];J[195395]=0;d=-1;Ta:{if(!h)break Ta;b=J[195396];if(!b)break Ta;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue;break V}}c=Z()|0;b=J[p+52>>2];if(b){J[195395]=0;Kb(b);h=J[195395];J[195395]=0;d=-1;Ua:{if(!h)break Ua;b=J[195396];if(!b)break Ua;d=Sb(J[h>>2],g,k);if(!d)break W;yb=b}b=yb;if((d|0)==1)continue}break}Kb(g);ba(c| -0);B()}Kb(g);gd(h,b);B()}b=!f}Kb(g);xb=p+784|0;break S}a=Z()|0;Kb(g);break a}if(b)break c;break b;case 1:c=Pb(1092);J[195395]=0;e=_(1142,c|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break f;Rg(e,a);c=0;Va:{if(!kh(e,b)){if(L[e+26>>1]>=9){l=xb-1136|0;xb=l;j=b;_r(e,b);c=ac(J[e+1084>>2]);if(c){Ab[J[J[b>>2]+44>>2]](b,33)|0;Ab[J[J[b>>2]+44>>2]](b,254)|0;c=c>>>0>=255?255:c;Ab[J[J[b>>2]+44>>2]](b,c)|0;Ab[J[J[b>>2]+16>>2]](b,J[e+1084>>2],c,1)|0;Ab[J[J[b>>2]+44>>2]](b,0)|0}q=_n(l+44|0);c=J[e+20>>2];b=J[e+16>> -2];J[195395]=0;ka(1170,q|0,b|0,c|0,8,0)|0;b=J[195395];J[195395]=0;Wa:{Xa:{Ya:{Za:{_a:{$a:{if((b|0)==1)break $a;J[195395]=0;J[q+336>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break $a;n=J[e+20>>2];r=J[e+16>>2];J[195395]=0;h=_(1109,P(n,r)<<2)|0;b=J[195395];J[195395]=0;if((b|0)==1)break _a;if(!(!n|!r)){b=1;d=n;f=h;while(1){c=0;m=0;if(b){while(1){J[195395]=0;fj(l+28|0,e,m,o,1);b=J[195395];J[195395]=0;if((b|0)==1)break Za;H[f|0]=K[l+28|0];H[f+1|0]=K[l+29|0];H[f+2|0]=K[l+30|0];H[f+3|0]=K[l+31|0];f=f+4|0; -c=J[e+16>>2];m=m+1|0;if(c>>>0>m>>>0)continue;break}d=J[e+20>>2]}b=c;o=o+1|0;if(o>>>0>>0)continue;break}}J[195395]=0;c=_(1078,12)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Ya;f=Z()|0;break Xa}f=Z()|0;break Xa}f=Z()|0;break Xa}f=Z()|0;break Xa}J[c+8>>2]=n;J[c+4>>2]=r;J[c>>2]=h;b=c+12|0;J[l+36>>2]=b;J[l+32>>2]=b;J[l+28>>2]=c;J[l+24>>2]=0;J[195395]=0;ia(1282,l+12|0,l+43|0,l+28|0,l+24|0);b=J[195395];J[195395]=0;ab:{bb:{if((b|0)!=1){n=J[J[l+12>>2]>>2];f=0;while(1){b=J[J[l+24>>2]+(f<<2)>>2];H[l+8|0]= -b;H[l+9|0]=b>>>8;H[l+10|0]=b>>>16;H[l+11|0]=b>>>24;J[195395]=0;J[l+4>>2]=b;Sl(q,f&255,l+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break bb;f=f+1|0;if((f|0)!=256)continue;break}d=J[e+20>>2];if(!(!d|!J[e+16>>2])){m=J[n>>2];b=1;o=0;while(1){c=0;f=0;if(b){while(1){b=K[m|0];J[195395]=0;Pg(q,f,o,b);b=J[195395];J[195395]=0;if((b|0)==1)break bb;m=m+1|0;c=J[e+16>>2];f=f+1|0;if(c>>>0>f>>>0)continue;break}d=J[e+20>>2]}b=c;o=o+1|0;if(o>>>0>>0)continue;break}}Kb(h);b=J[l+24>>2];if(b)Kb(b);b=J[n>>2];if(b)Kb(b); -Kb(n);J[195395]=0;J[q+396>>2]=0;J[q+392>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break bb;b=J[J[j>>2]+44>>2];J[195395]=0;ca(b|0,j|0,33)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bb;b=J[J[j>>2]+44>>2];J[195395]=0;ca(b|0,j|0,249)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bb;H[q+944|0]=J[q+336>>2]!=-1;J[195395]=0;c=K[q+460|0];b=J[195395];J[195395]=0;if((b|0)==1)break bb;H[q+947|0]=J[q+336>>2];f=I[q+360>>1];H[q+945|0]=f;H[q+946|0]=f>>>8;H[q+944|0]=K[q+944|0]|c<<2&28;J[195395]=0;c=K[q+462|0];b=J[195395]; -J[195395]=0;if((b|0)==1)break bb;b=(c?f:f<<8|(f&65280)>>>8)<<16>>16;H[q+945|0]=b;H[q+946|0]=b>>>8;b=J[J[j>>2]+44>>2];J[195395]=0;ca(b|0,j|0,4)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bb;b=J[J[j>>2]+16>>2];J[195395]=0;ha(b|0,j|0,q+944|0,4,1)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bb;f=(K[q+945|0]|K[q+946|0]<<8)<<16>>16;J[195395]=0;c=K[q+462|0];b=J[195395];J[195395]=0;if((b|0)==1)break bb;b=(c?f:f<<8|(f&65280)>>>8)<<16>>16;H[q+945|0]=b;H[q+946|0]=b>>>8;b=J[J[j>>2]+44>>2];J[195395]=0;ca(b|0, -j|0,0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bb;J[195395]=0;fa(1287,q|0,j|0,1);b=J[195395];J[195395]=0;if((b|0)==1)break bb;b=J[J[j>>2]+44>>2];J[195395]=0;ca(b|0,j|0,59)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bb;b=J[l+12>>2];if(b){J[l+16>>2]=b;Kb(b)}b=J[l+28>>2];if(b){J[l+32>>2]=b;Kb(b)}ih(q);xb=l+1136|0;break Wa}f=Z()|0;break ab}f=Z()|0;a=J[l+12>>2];if(!a)break ab;J[l+16>>2]=a;Kb(a)}a=J[l+28>>2];if(!a)break Xa;J[l+32>>2]=a;Kb(a)}ih(q);ba(f|0);B()}b=1;break Va}cb:{q=J[e+356>>2];if((q|0)< -2)break cb;l=J[e+940>>2];if(!l)break cb;f=0;j=xb-1104|0;xb=j;db:{eb:{fb:{gb:{hb:{if(!b){oc(e+72|0,238552,255);break hb}if(!(!J[l>>2]|(!l|(q|0)<=0))){ib:{while(1){d=l+(f<<2)|0;c=J[d>>2];if(!c){oc(e+72|0,239165,255);break hb}if(!J[c+4>>2]){oc(e+72|0,239416,255);break hb}if(J[J[d>>2]+44>>2]){f=f+1|0;if((q|0)==(f|0))break ib;continue}break}oc(e+72|0,239548,255);break hb}k=_n(j+12|0);c=J[l>>2];J[195395]=0;$(1288,k|0,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break eb;J[195395]=0;$(1289,k|0,b|0);c=J[195395]; -J[195395]=0;if((c|0)==1)break eb;c=J[e+1088>>2];if((c|0)!=1){J[k+1088>>2]=((c|0)<=1?1:c)-1;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,33)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,11)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,240244,11,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]= -0;ca(c|0,b|0,3)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];f=J[k+1088>>2];J[195395]=0;ca(c|0,b|0,f&255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,f>>>8&255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb}J[195395]=0;d=K[k+460|0];c=J[195395];J[195395]= -0;jb:{if((c|0)==1)break jb;J[195395]=0;f=K[e+460|0];c=J[195395];J[195395]=0;if((c|0)==1)break jb;J[195395]=0;H[k+460|0]=f;c=J[195395];J[195395]=0;if((c|0)==1)break jb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,33)|0;c=J[195395];J[195395]=0;if((c|0)==1)break jb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,249)|0;c=J[195395];J[195395]=0;if((c|0)==1)break jb;H[k+944|0]=J[k+336>>2]!=-1;J[195395]=0;f=K[k+460|0];c=J[195395];J[195395]=0;if((c|0)==1)break jb;H[k+947|0]=J[k+336>>2];h=I[k+360>>1];H[k+945|0]=h; -H[k+946|0]=h>>>8;H[k+944|0]=K[k+944|0]|f<<2&28;J[195395]=0;f=K[k+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break jb;c=(f?h:h<<8|(h&65280)>>>8)<<16>>16;H[k+945|0]=c;H[k+946|0]=c>>>8;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,4)|0;c=J[195395];J[195395]=0;if((c|0)==1)break jb;c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,k+944|0,4,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break jb;h=(K[k+945|0]|K[k+946|0]<<8)<<16>>16;J[195395]=0;f=K[k+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break jb;c=(f?h:h<<8|(h&65280)>>> -8)<<16>>16;H[k+945|0]=c;H[k+946|0]=c>>>8;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break jb;J[195395]=0;H[k+460|0]=d;c=J[195395];J[195395]=0;if((c|0)!=1)break gb}break eb}oc(e+72|0,239071,255)}b=0;break fb}f=ac(J[e+1084>>2]);if(f){c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,33)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,254)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;d=f>>>0>=255? -255:f;ca(c|0,b|0,d&255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;f=J[e+1084>>2];c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,f|0,d|0,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb}J[195395]=0;fa(1287,k|0,b|0,0);c=J[195395];J[195395]=0;if((c|0)==1)break eb;kb:{if((q|0)>=2){n=k+944|0;d=1;while(1){c=J[l+(d<<2)>>2];J[195395]=0;$(1288,k|0,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break kb;J[195395]=0;h=K[k+ -460|0];c=J[195395];J[195395]=0;if((c|0)==1)break eb;J[195395]=0;f=K[e+460|0];c=J[195395];J[195395]=0;if((c|0)==1)break eb;J[195395]=0;H[k+460|0]=f;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,33)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,249)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;H[k+944|0]=J[k+336>>2]!=-1;J[195395]=0;f=K[k+460|0];c=J[195395];J[195395]=0;if((c|0)==1)break eb;r=I[k+360>>1];H[k+945|0]= -r;H[k+946|0]=r>>>8;H[k+947|0]=J[k+336>>2];H[k+944|0]=K[k+944|0]|f<<2&28;J[195395]=0;f=K[k+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=(f?r:r<<8|(r&65280)>>>8)<<16>>16;H[k+945|0]=c;H[k+946|0]=c>>>8;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,4)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;c=J[J[b>>2]+16>>2];J[195395]=0;ha(c|0,b|0,n|0,4,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;r=(K[k+945|0]|K[k+946|0]<<8)<<16>>16;J[195395]=0;f=K[k+462|0];c=J[195395];J[195395]=0;if((c|0)==1)break eb; -c=(f?r:r<<8|(r&65280)>>>8)<<16>>16;H[k+945|0]=c;H[k+946|0]=c>>>8;c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break eb;J[195395]=0;H[k+460|0]=h;c=J[195395];J[195395]=0;if((c|0)==1)break eb;J[195395]=0;fa(1287,k|0,b|0,0);c=J[195395];J[195395]=0;if((c|0)==1)break kb;d=d+1|0;if((q|0)!=(d|0))continue;break}}c=J[J[b>>2]+44>>2];J[195395]=0;ca(c|0,b|0,59)|0;c=J[195395];J[195395]=0;b=1;if((c|0)==1)break eb;ih(k);break fb}break eb}xb=j+1104|0;break db}a=Z()|0;ih(k);ba(a| -0);B()}break Va}_r(e,b);Ab[J[J[b>>2]+44>>2]](b,33)|0;Ab[J[J[b>>2]+44>>2]](b,249)|0;H[e+944|0]=J[e+336>>2]!=-1;c=K[e+460|0];f=I[e+360>>1];H[e+945|0]=f;H[e+946|0]=f>>>8;H[e+947|0]=J[e+336>>2];H[e+944|0]=K[e+944|0]|c<<2&28;c=K[e+462|0]?f:f<<8|(f&65280)>>>8;H[e+945|0]=c;H[e+946|0]=c>>>8;Ab[J[J[b>>2]+44>>2]](b,4)|0;c=1;Ab[J[J[b>>2]+16>>2]](b,e+944|0,4,1)|0;f=(K[e+945|0]|K[e+946|0]<<8)<<16>>16;f=K[e+462|0]?f:f<<8|(f&65280)>>>8;H[e+945|0]=f;H[e+946|0]=f>>>8;Ab[J[J[b>>2]+44>>2]](b,0)|0;f=ac(J[e+1084>>2]); -if(f){Ab[J[J[b>>2]+44>>2]](b,33)|0;Ab[J[J[b>>2]+44>>2]](b,254)|0;f=f>>>0>=255?255:f;Ab[J[J[b>>2]+44>>2]](b,f)|0;Ab[J[J[b>>2]+16>>2]](b,J[e+1084>>2],f,1)|0;Ab[J[J[b>>2]+44>>2]](b,0)|0}GE(e,b,0);Ab[J[J[b>>2]+44>>2]](b,59)|0}b=c}if(b)break c;break b;case 3:c=Pb(944);J[195395]=0;e=Fd(c,4);f=J[195395];J[195395]=0;if((f|0)==1)break f;J[e>>2]=240460;Rg(e,a);m=xb-304|0;xb=m;k=Qb(40);J[k>>2]=0;J[195395]=0;h=b;c=kh(e,b);d=J[195395];J[195395]=0;lb:{mb:{nb:{if((d|0)==1)break nb;l=4;b=-1;ob:{if(!d)break ob;i= -J[195396];if(!i)break ob;b=Sb(J[d>>2],k,4);if(!b)break mb;yb=i}d=yb;pb:{qb:{if((b|0)==1)break qb;b=0;if(c)break pb;J[195395]=0;fd(e,0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;rb:{if(!d)break rb;i=J[195396];if(!i)break rb;b=Sb(J[d>>2],k,4);if(!b)break mb;yb=i}d=yb;if((b|0)==1)break qb;J[195395]=0;c=ha(1221,238466,0,0,0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;sb:{if(!d)break sb;i=J[195396];if(!i)break sb;b=Sb(J[d>>2],k,4);if(!b)break mb;yb=i}d=yb;if((b|0)==1)break qb;J[m+44>> -2]=c;if(!c){b=0;J[195395]=0;oc(e+72|0,238600,255);d=J[195395];J[195395]=0;c=-1;tb:{if(!d)break tb;i=J[195396];if(!i)break tb;c=Sb(J[d>>2],k,4);if(!c)break mb;yb=i}d=yb;if((c|0)==1)break qb;break pb}J[195395]=0;c=_(1200,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;ub:{if(!d)break ub;i=J[195396];if(!i)break ub;b=Sb(J[d>>2],k,4);if(!b)break mb;yb=i}d=yb;if((b|0)==1)break qb;J[m+40>>2]=c;if(!c){J[195395]=0;$(1222,m+44|0,0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;vb:{if(!d)break vb; -i=J[195396];if(!i)break vb;b=Sb(J[d>>2],k,4);if(!b)break mb;yb=i}d=yb;if((b|0)==1)break qb;J[195395]=0;oc(e+72|0,238908,255);d=J[195395];J[195395]=0;b=-1;wb:{if(!d)break wb;i=J[195396];if(!i)break wb;b=Sb(J[d>>2],k,4);if(!b)break mb;yb=i}d=yb;if((b|0)==1)break qb;b=0;break pb}k=wd(J[m+44>>2],1,k,4);l=yb;d=0}xb:while(1){if(d){b=J[J[m+40>>2]+16>>2];if(b)Kb(b);J[195395]=0;$(1222,m+44|0,m+40|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;yb:{if(!d)break yb;i=J[195396];if(!i)break yb;b=Sb(J[d>>2], -k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;J[195395]=0;oc(e+72|0,239643,255);d=J[195395];J[195395]=0;b=-1;zb:{if(!d)break zb;i=J[195396];if(!i)break zb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;b=0;break pb}J[195395]=0;ia(1223,J[m+44>>2],h|0,1224,1225);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Ab:{if(!d)break Ab;i=J[195396];if(!i)break Ab;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;J[195395]=0;c=J[e+16>>2];d=J[195395];J[195395]=0;if((d|0)== -1)break nb;b=-1;Bb:{if(!d)break Bb;i=J[195396];if(!i)break Bb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;J[J[m+40>>2]>>2]=c;J[195395]=0;c=J[e+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Cb:{if(!d)break Cb;i=J[195396];if(!i)break Cb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;J[J[m+40>>2]+4>>2]=c;J[195395]=0;c=L[e+26>>1];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Db:{if(!d)break Db;i=J[195396];if(!i)break Db;b=Sb(J[d>>2],k,l);if(!b)break mb; -yb=i}d=yb;if((b|0)==1)continue;H[J[m+40>>2]+30|0]=c;J[195395]=0;c=L[e+26>>1];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Eb:{if(!d)break Eb;i=J[195396];if(!i)break Eb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;H[J[m+40>>2]+29|0]=c>>>0>8?3:1;J[195395]=0;c=L[e+26>>1];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Fb:{if(!d)break Fb;i=J[195396];if(!i)break Fb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;b=J[m+40>>2];I[b+26>>1]=0;J[b+8>>2]=0;H[b+24|0]= -(c>>>0)/K[b+29|0];J[195395]=0;c=ii(e,4);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Gb:{if(!d)break Gb;i=J[195396];if(!i)break Gb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;H[J[m+40>>2]+28|0]=c&1;d=-1;b=(c&14)-2|0;if(b>>>0<=4)d=J[(b<<2)+241632>>2];J[195395]=0;b=J[m+44>>2];if(b){J[b+280>>2]=d;J[b+204>>2]=J[b+204>>2]|2}d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Hb:{if(!d)break Hb;i=J[195396];if(!i)break Hb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue; -J[195395]=0;q=ej(e);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Ib:{if(!d)break Ib;i=J[195396];if(!i)break Ib;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;J[195395]=0;c=J[e+44>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Jb:{if(!d)break Jb;i=J[195396];if(!i)break Jb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;H[J[m+40>>2]+25|0]=c?q?0:3:2;J[195395]=0;b=J[e+932>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=(b|0)!=0;b=-1;Kb:{if(!d)break Kb;i= -J[195396];if(!i)break Kb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;if(c){b=J[m+40>>2];H[b+24|0]=8;H[b+25|0]=K[b+25|0]|4;H[b+29|0]=K[b+29|0]+1;H[b+30|0]=K[b+30|0]+8}I[m+32>>1]=L[120814];b=L[120812]|L[120813]<<16;J[m+24>>2]=L[120810]|L[120811]<<16;J[m+28>>2]=b;J[195395]=0;ms(m+20|0,e);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Lb:{if(!d)break Lb;i=J[195396];if(!i)break Lb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;if(J[e+336>>2]>=0){I[m+30>>1]=K[m+20| -0];I[m+28>>1]=K[m+21|0];I[m+26>>1]=K[m+22|0]}J[195395]=0;Br(J[m+44>>2],J[m+40>>2],m+24|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Mb:{if(!d)break Mb;i=J[195396];if(!i)break Mb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;c=J[e+40>>2];b=J[e+36>>2];J[195395]=0;Ar(J[m+44>>2],J[m+40>>2],b,c,1);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Nb:{if(!d)break Nb;i=J[195396];if(!i)break Nb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;j=J[m+40>>2];n=K[j+28| -0];d=K[j+25|0];f=K[j+24|0];c=J[j+4>>2];b=J[j>>2];J[195395]=0;vb(1232,J[m+44>>2],j|0,b|0,c|0,f|0,d|0,n|0,0,0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Ob:{if(!d)break Ob;i=J[195396];if(!i)break Ob;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;f=J[e+336>>2];Pb:{if((f|0)<0)break Pb;d=J[m+40>>2];I[d+22>>1]=1;H[d+80|0]=f;J[d+8>>2]=J[d+8>>2]|16;J[d+76>>2]=m+48;I[d+82>>1]=K[m+22|0];I[d+84>>1]=K[m+21|0];c=K[m+20|0];b=f&255;I[d+88>>1]=b;I[d+86>>1]=c;if(!f|(q|!J[e+44>>2]))break Pb; -J[195395]=0;fs(e,0,b);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Qb:{if(!d)break Qb;i=J[195396];if(!i)break Qb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue}J[195395]=0;c=J[e+4>>2];b=J[e+44>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=c?b?c+40|0:0:0;b=-1;Rb:{if(!d)break Rb;i=J[195396];if(!i)break Rb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;Sb:{if(!c)break Sb;if(!q){b=J[m+40>>2];J[b+8>>2]=J[b+8>>2]|8}J[195395]=0;c=J[e+48>>2];d=J[195395];J[195395]= -0;if((d|0)==1)break nb;b=-1;Tb:{if(!d)break Tb;i=J[195396];if(!i)break Tb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;if(!c){J[195395]=0;c=J[e+44>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Ub:{if(!d)break Ub;i=J[195396];if(!i)break Ub;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue}Vb:{if(!K[e+389|0]){b=J[m+40>>2];break Vb}if((c|0)>0){o=0;b=0;while(1){J[195395]=0;Td(m+16|0,e,b&255);d=J[195395];J[195395]=0;if((d|0)==1)break nb;f=-1;Wb:{if(!d)break Wb; -i=J[195396];if(!i)break Wb;f=Sb(J[d>>2],k,l);if(!f)break mb;yb=i}d=yb;if((f|0)==1)continue xb;H[(m+48|0)+o|0]=K[m+19|0];b=b+1|0;o=b&65535;if((o|0)<(c|0))continue;break}}b=J[m+40>>2];I[b+22>>1]=c;J[b+8>>2]=J[b+8>>2]|16;J[b+76>>2]=m+48}J[195395]=0;f=-1;n=_(1109,(x=-1,y=Kpa(c,0,3,0),z=zb,z?x:y)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nb;Xb:{if(!d)break Xb;i=J[195396];if(!i)break Xb;f=Sb(J[d>>2],k,l);if(!f)break mb;yb=i}d=yb;if((f|0)==1)continue;I[b+20>>1]=c;J[b+16>>2]=n;b=0;if((c|0)<=0)break Sb; -while(1){f=J[J[m+40>>2]+16>>2];J[195395]=0;f=f+P(b,3)|0;QE(e,b&255,f,f+1|0,f+2|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;f=-1;Yb:{if(!d)break Yb;i=J[195396];if(!i)break Yb;f=Sb(J[d>>2],k,l);if(!f)break mb;yb=i}d=yb;if((f|0)==1)continue xb;b=b+1|0;if((c|0)!=(b|0))continue;break}}J[195395]=0;b=J[e+932>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=(b|0)!=0;b=-1;Zb:{if(!d)break Zb;i=J[195396];if(!i)break Zb;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;_b:{if(!(c&L[e+26>> -1]==24)|J[e+336>>2]<0)break _b;i=J[e+20>>2];if((i|0)<=0)break _b;f=0;d=J[e+16>>2];if((d|0)<=0)break _b;while(1){b=0;if((d|0)>0){while(1){J[195395]=0;fj(m+12|0,e,b,f,0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=-1;$b:{if(!d)break $b;i=J[195396];if(!i)break $b;c=Sb(J[d>>2],k,l);if(!c)break mb;yb=i}d=yb;if((c|0)==1)continue xb;if(J[m+12>>2]==J[m+20>>2]){J[195395]=0;ne(e,b,f,0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=-1;ac:{if(!d)break ac;i=J[195396];if(!i)break ac;c=Sb(J[d>>2],k,l);if(!c)break mb; -yb=i}d=yb;if((c|0)==1)continue xb}b=b+1|0;d=J[e+16>>2];if((b|0)<(d|0))continue;break}i=J[e+20>>2]}f=f+1|0;if((i|0)>(f|0))continue;break}}c=J[e+52>>2];f=J[m+40>>2];b=P(P(J[f>>2],K[f+29|0]),K[f+24|0]>>>3|0);t=b>>>0>>0?c:b;J[f+12>>2]=t;J[195395]=0;p=_(1109,t|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=-1;bc:{if(!d)break bc;i=J[195396];if(!i)break bc;c=Sb(J[d>>2],k,l);if(!c)break mb;yb=i}d=yb;if((c|0)==1)continue;J[195395]=0;$(1238,J[m+44>>2],f|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb; -b=-1;cc:{if(!d)break cc;i=J[195396];if(!i)break cc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;J[195395]=0;c=1;b=J[m+44>>2];if(!(!b|!K[b+398|0])){J[b+208>>2]=J[b+208>>2]|2;c=7}d=J[195395];J[195395]=0;if((d|0)==1)break nb;n=c;b=-1;dc:{if(!d)break dc;i=J[195396];if(!i)break dc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;ec:{if((n|0)<=0)break ec;s=0;r=0;if(q)while(1){J[195395]=0;u=J[e+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;fc:{if(!d)break fc; -i=J[195396];if(!i)break fc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;J[195395]=0;c=fd(e,0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;gc:{if(!d)break gc;i=J[195396];if(!i)break gc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;J[195395]=0;j=J[e+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;hc:{if(!d)break hc;i=J[195396];if(!i)break hc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;J[195395]=0;f=J[e+20>>2];d=J[195395]; -J[195395]=0;if((d|0)==1)break nb;b=-1;ic:{if(!d)break ic;i=J[195396];if(!i)break ic;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;v=J[e+20>>2]-1|0;o=P(j,f-1|0)+c|0;while(1){J[195395]=0;b=J[e+932>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=(b|0)!=0;b=-1;jc:{if(!d)break jc;i=J[195396];if(!i)break jc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;kc:{if(!c){if(!(!o|(t|0)<=0)){J[195395]=0;b=J[e+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=-1;lc:{if(!d)break lc; -i=J[195396];if(!i)break lc;c=Sb(J[d>>2],k,l);if(!c)break mb;yb=i}d=yb;if((c|0)==1)continue xb;Mb(p,o,(b|0)<(t|0)?b:t)}if(K[J[m+40>>2]+25|0]==2){J[195395]=0;qk(e,p,t);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;mc:{if(!d)break mc;i=J[195396];if(!i)break mc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb}J[195395]=0;$(1239,J[m+44>>2],p|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;nc:{if(!d)break nc;i=J[195396];if(!i)break nc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb; -if((b|0)==1)continue xb;break kc}c=J[e+16>>2];if((c|0)>0)while(1){J[195395]=0;b=-1;f=c-1|0;eg(m+8|0,e,f,v,1);d=J[195395];J[195395]=0;if((d|0)==1)break nb;oc:{if(!d)break oc;i=J[195396];if(!i)break oc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;r=p+P(f,K[J[m+40>>2]+29|0])|0;H[r|0]=K[m+8|0];J[195395]=0;j=gg(e,f,v);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;pc:{if(!d)break pc;i=J[195396];if(!i)break pc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;H[r+ -1|0]=j;b=c>>>0>1;c=f;if(b)continue;break}J[195395]=0;$(1239,J[m+44>>2],p|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;qc:{if(!d)break qc;i=J[195396];if(!i)break qc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;v=v-1|0}u=u-1|0;if((u|0)>0){J[195395]=0;c=J[e+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;rc:{if(!d)break rc;i=J[195396];if(!i)break rc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;o=o-c|0;continue}break}s=s+1|0;if((n|0)!=(s|0))continue; -break ec}while(1){J[195395]=0;u=J[e+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;sc:{if(!d)break sc;i=J[195396];if(!i)break sc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;J[195395]=0;c=fd(e,0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;tc:{if(!d)break tc;i=J[195396];if(!i)break tc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;J[195395]=0;j=J[e+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;uc:{if(!d)break uc;i=J[195396];if(!i)break uc; -b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;J[195395]=0;f=J[e+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;vc:{if(!d)break vc;i=J[195396];if(!i)break vc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;s=J[e+20>>2]-1|0;o=P(j,f-1|0)+c|0;while(1){J[195395]=0;b=J[e+932>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=(b|0)!=0;b=-1;wc:{if(!d)break wc;i=J[195396];if(!i)break wc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;xc:{yc:{if(c){b= -J[e+16>>2];if((b|0)<=0)break yc;while(1){J[195395]=0;c=-1;f=b-1|0;eg(m+8|0,e,f,s,1);d=J[195395];J[195395]=0;if((d|0)==1)break nb;zc:{if(!d)break zc;i=J[195396];if(!i)break zc;c=Sb(J[d>>2],k,l);if(!c)break mb;yb=i}d=yb;if((c|0)==1)continue xb;d=K[m+9|0];c=K[m+8|0];j=p+P(f,K[J[m+40>>2]+29|0])|0;H[j|0]=K[m+10|0];H[j+2|0]=c;H[j+1|0]=d;J[195395]=0;c=gg(e,f,s);d=J[195395];J[195395]=0;if((d|0)==1)break nb;v=-1;Ac:{if(!d)break Ac;i=J[195396];if(!i)break Ac;v=Sb(J[d>>2],k,l);if(!v)break mb;yb=i}d=yb;if((v| -0)==1)continue xb;H[j+3|0]=c;c=b>>>0>1;b=f;if(c)continue;break}break yc}if(!(!o|(t|0)<=0)){J[195395]=0;b=J[e+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=-1;Bc:{if(!d)break Bc;i=J[195396];if(!i)break Bc;c=Sb(J[d>>2],k,l);if(!c)break mb;yb=i}d=yb;if((c|0)==1)continue xb;Mb(p,o,(b|0)<(t|0)?b:t)}if(K[J[m+40>>2]+25|0]==2){J[195395]=0;qk(e,p,t);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Cc:{if(!d)break Cc;i=J[195396];if(!i)break Cc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb}J[195395]= -0;$(1239,J[m+44>>2],p|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Dc:{if(!d)break Dc;i=J[195396];if(!i)break Dc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;break xc}J[195395]=0;$(1239,J[m+44>>2],p|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Ec:{if(!d)break Ec;i=J[195396];if(!i)break Ec;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;s=s-1|0}u=u-1|0;if((u|0)>0){J[195395]=0;c=J[e+52>>2];d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Fc:{if(!d)break Fc; -i=J[195396];if(!i)break Fc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue xb;o=o-c|0;continue}break}r=r+1|0;if((n|0)!=(r|0))continue;break}}J[195395]=0;Kb(p);d=J[195395];J[195395]=0;b=-1;Gc:{if(!d)break Gc;i=J[195396];if(!i)break Gc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;Hc:{if(q|!J[e+44>>2])break Hc;b=J[e+336>>2];if((b|0)<=0)break Hc;J[195395]=0;fs(e,b&255,0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Ic:{if(!d)break Ic;i=J[195396];if(!i)break Ic; -b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue}J[195395]=0;$(1241,J[m+44>>2],J[m+40>>2]);d=J[195395];J[195395]=0;if((d|0)==1)break nb;b=-1;Jc:{if(!d)break Jc;i=J[195396];if(!i)break Jc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;b=J[J[m+40>>2]+16>>2];if(b){J[195395]=0;Kb(b);d=J[195395];J[195395]=0;b=-1;Kc:{if(!d)break Kc;i=J[195396];if(!i)break Kc;b=Sb(J[d>>2],k,l);if(!b)break mb;yb=i}d=yb;if((b|0)==1)continue;J[J[m+40>>2]+16>>2]=0}J[195395]=0;$(1222,m+44|0,m+ -40|0);d=J[195395];J[195395]=0;if((d|0)==1)break nb;c=-1;Lc:{if(!d)break Lc;i=J[195396];if(!i)break Lc;c=Sb(J[d>>2],k,l);if(!c)break mb;yb=i}b=1;d=yb;if((c|0)==1)continue;break}}Kb(k);xb=m+304|0;break lb}a=Z()|0;Kb(k);break a}Kb(k);gd(d,i);B()}if(b)break c;break b;case 6:c=Pb(944);J[195395]=0;e=Fd(c,7);f=J[195395];J[195395]=0;if((f|0)==1)break f;J[e>>2]=240504;Rg(e,a);j=xb-800|0;xb=j;c=0;Mc:{if(kh(e,b))break Mc;if(L[e+26>>1]<=7){b=K[240087]|K[240088]<<8;H[e+96|0]=b;H[e+97|0]=b>>>8;c=K[240083]|K[240084]<< -8|(K[240085]<<16|K[240086]<<24);b=K[240079]|K[240080]<<8|(K[240081]<<16|K[240082]<<24);H[e+88|0]=b;H[e+89|0]=b>>>8;H[e+90|0]=b>>>16;H[e+91|0]=b>>>24;H[e+92|0]=c;H[e+93|0]=c>>>8;H[e+94|0]=c>>>16;H[e+95|0]=c>>>24;c=K[240075]|K[240076]<<8|(K[240077]<<16|K[240078]<<24);b=K[240071]|K[240072]<<8|(K[240073]<<16|K[240074]<<24);H[e+80|0]=b;H[e+81|0]=b>>>8;H[e+82|0]=b>>>16;H[e+83|0]=b>>>24;H[e+84|0]=c;H[e+85|0]=c>>>8;H[e+86|0]=c>>>16;H[e+87|0]=c>>>24;c=K[240067]|K[240068]<<8|(K[240069]<<16|K[240070]<<24);b= -K[240063]|K[240064]<<8|(K[240065]<<16|K[240066]<<24);H[e+72|0]=b;H[e+73|0]=b>>>8;H[e+74|0]=b>>>16;H[e+75|0]=b>>>24;H[e+76|0]=c;H[e+77|0]=c>>>8;H[e+78|0]=c>>>16;H[e+79|0]=c>>>24;c=0;break Mc}H[j+782|0]=0;c=J[e+4>>2];H[j+783|0]=((c?J[e+44>>2]?c+40|0:0:0)|0)!=0;h=L[e+26>>1];c=(h|0)==8;H[j+789|0]=c?24:0;H[j+784|0]=c?1:2;d=J[e+20>>2];f=J[e+16>>2];H[j+799|0]=0;H[j+798|0]=h;c=c<<8;if(!(!J[e+932>>2]|(h|0)!=24))H[j+798|0]=32;H[j+785|0]=0;H[j+786|0]=0;c=K[e+462|0]?c:c<<8|(c&65280)>>>8;H[j+787|0]=c;H[j+788| -0]=c>>>8;H[j+790|0]=0;H[j+791|0]=0;H[j+792|0]=0;H[j+793|0]=0;c=f<<16>>16;c=K[e+462|0]?c:c<<8|(c&65280)>>>8;H[j+794|0]=c;H[j+795|0]=c>>>8;c=d<<16>>16;c=K[e+462|0]?c:c<<8|(c&65280)>>>8;H[j+796|0]=c;H[j+797|0]=c>>>8;Ab[J[J[b>>2]+16>>2]](b,j+782|0,18,1)|0;c=(K[j+785|0]|K[j+786|0]<<8)<<16>>16;c=K[e+462|0]?c:c<<8|(c&65280)>>>8;H[j+785|0]=c;H[j+786|0]=c>>>8;c=(K[j+787|0]|K[j+788|0]<<8)<<16>>16;c=K[e+462|0]?c:c<<8|(c&65280)>>>8;H[j+787|0]=c;H[j+788|0]=c>>>8;c=(K[j+790|0]|K[j+791|0]<<8)<<16>>16;c=K[e+462| -0]?c:c<<8|(c&65280)>>>8;H[j+790|0]=c;H[j+791|0]=c>>>8;c=(K[j+792|0]|K[j+793|0]<<8)<<16>>16;c=K[e+462|0]?c:c<<8|(c&65280)>>>8;H[j+792|0]=c;H[j+793|0]=c>>>8;c=(K[j+794|0]|K[j+795|0]<<8)<<16>>16;c=K[e+462|0]?c:c<<8|(c&65280)>>>8;H[j+794|0]=c;H[j+795|0]=c>>>8;c=(K[j+796|0]|K[j+797|0]<<8)<<16>>16;c=K[e+462|0]?c:c<<8|(c&65280)>>>8;H[j+796|0]=c;H[j+797|0]=c>>>8;if(L[e+26>>1]==8){f=0;c=J[e+4>>2];h=c?J[e+44>>2]?c+40|0:0:0;while(1){d=j+P(f,3)|0;c=h+(f<<2)|0;H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0]; -c=f|1;d=j+P(c,3)|0;c=h+(c<<2)|0;H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];f=f+2|0;if((f|0)!=256)continue;break}Ab[J[J[b>>2]+16>>2]](b,j,768,1)|0}f=0;h=fd(e,0);Nc:{if(!(L[e+26>>1]!=8?J[e+932>>2]:0)){if(!(K[j+796|0]|K[j+797|0]<<8))break Nc;while(1){if(J[e+20>>2]>=(f|0))h=fd(e,0)+P(J[e+52>>2],f)|0;Ab[J[J[b>>2]+16>>2]](b,h,P(K[j+794|0]|K[j+795|0]<<8,L[e+26>>1]>>>3|0),1)|0;f=f+1|0;if(f>>>0<(K[j+796|0]|K[j+797|0]<<8)>>>0)continue;break}break Nc}n=Qb((K[j+794|0]|K[j+795|0]<<8)<<2);if(K[j+796|0]| -K[j+797|0]<<8){d=0;while(1){g=0;f=0;i=0;if(K[j+794|0]|K[j+795|0]<<8)while(1){eg(j,e,i,d,1);h=K[j+2|0];c=K[j+1|0];H[f+n|0]=K[j|0];H[n+(f|1)|0]=c;H[n+(f|2)|0]=h;x=n+(f|3)|0,y=gg(e,i,d),H[x|0]=y;f=f+4|0;g=K[j+794|0]|K[j+795|0]<<8;i=i+1|0;if(g>>>0>i>>>0)continue;break}Ab[J[J[b>>2]+16>>2]](b,n,g<<2,1)|0;d=d+1|0;if(d>>>0<(K[j+796|0]|K[j+797|0]<<8)>>>0)continue;break}}Kb(n)}c=1}xb=j+800|0;if(c)break c;break b;case 7:c=Pb(944);J[195395]=0;e=Fd(c,8);f=J[195395];J[195395]=0;if((f|0)==1)break f;J[e>>2]=240548; -Rg(e,a);g=xb-160|0;xb=g;if(!kh(e,b)){q=b;Nb(g+35|0,0,125);H[g+38|0]=0;H[g+39|0]=0;H[g+34|0]=1;H[g+32|0]=10;H[g+33|0]=5;c=J[e+16>>2];b=c-1|0;H[g+40|0]=b;H[g+41|0]=b>>>8;b=L[e+20>>1]-1|0;H[g+42|0]=b;H[g+43|0]=b>>>8;b=J[e+364>>2];H[g+44|0]=b;H[g+45|0]=b>>>8;b=J[e+368>>2];H[g+46|0]=b;H[g+47|0]=b>>>8;f=J[e+44>>2];b=!f;H[g+100|0]=b;H[g+101|0]=b>>>8;b=L[e+26>>1]-8|0;Oc:{if(!((b|0)!=16?b:0)){H[g+35|0]=8;H[g+97|0]=f?1:3;if(!(J[e+44>>2]|!J[e+932>>2]))H[g+97|0]=4;d=J[e+16>>2];H[g+98|0]=d;H[g+99|0]=d>>>8;c=0; -break Oc}d=c+7>>>3|0;H[g+98|0]=d;H[g+99|0]=d>>>8;H[g+35|0]=1;b=(f|0)==16;H[g+97|0]=b?4:1;if(!b){H[g+53|0]=255;H[g+49|0]=0;H[g+51|0]=255;H[g+52|0]=255;c=0;break Oc}b=g+4|0;Td(b,e,0);H[g+50|0]=K[g+4|0];H[g+49|0]=K[g+5|0];H[g+48|0]=K[g+6|0];Td(b,e,1);H[g+53|0]=K[g+4|0];H[g+52|0]=K[g+5|0];H[g+51|0]=K[g+6|0];Td(b,e,2);H[g+56|0]=K[g+4|0];H[g+55|0]=K[g+5|0];H[g+54|0]=K[g+6|0];Td(b,e,3);H[g+59|0]=K[g+4|0];H[g+58|0]=K[g+5|0];H[g+57|0]=K[g+6|0];Td(b,e,4);H[g+62|0]=K[g+4|0];H[g+61|0]=K[g+5|0];H[g+60|0]=K[g+ -6|0];Td(b,e,5);H[g+65|0]=K[g+4|0];H[g- -64|0]=K[g+5|0];H[g+63|0]=K[g+6|0];Td(b,e,6);H[g+68|0]=K[g+4|0];H[g+67|0]=K[g+5|0];H[g+66|0]=K[g+6|0];Td(b,e,7);H[g+71|0]=K[g+4|0];H[g+70|0]=K[g+5|0];H[g+69|0]=K[g+6|0];Td(b,e,8);H[g+74|0]=K[g+4|0];H[g+73|0]=K[g+5|0];H[g+72|0]=K[g+6|0];Td(b,e,9);H[g+77|0]=K[g+4|0];H[g+76|0]=K[g+5|0];H[g+75|0]=K[g+6|0];Td(b,e,10);H[g+80|0]=K[g+4|0];H[g+79|0]=K[g+5|0];H[g+78|0]=K[g+6|0];Td(b,e,11);H[g+83|0]=K[g+4|0];H[g+82|0]=K[g+5|0];H[g+81|0]=K[g+6|0];Td(b,e,12);H[g+86|0]=K[g+ -4|0];H[g+85|0]=K[g+5|0];H[g+84|0]=K[g+6|0];Td(b,e,13);H[g+89|0]=K[g+4|0];H[g+88|0]=K[g+5|0];H[g+87|0]=K[g+6|0];Td(b,e,14);H[g+92|0]=K[g+4|0];H[g+91|0]=K[g+5|0];H[g+90|0]=K[g+6|0];Td(b,e,15);H[g+95|0]=K[g+4|0];H[g+94|0]=K[g+5|0];H[g+93|0]=K[g+6|0];d=K[g+98|0]|K[g+99|0]<<8;c=K[g+36|0]|K[g+37|0]<<8}b=d+1&65534;H[g+98|0]=b;H[g+99|0]=b>>>8;b=c<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+36|0]=b;H[g+37|0]=b>>>8;b=(K[g+38|0]|K[g+39|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+38|0]=b;H[g+39|0]= -b>>>8;b=(K[g+40|0]|K[g+41|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+40|0]=b;H[g+41|0]=b>>>8;b=(K[g+42|0]|K[g+43|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+42|0]=b;H[g+43|0]=b>>>8;b=(K[g+44|0]|K[g+45|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+44|0]=b;H[g+45|0]=b>>>8;b=(K[g+46|0]|K[g+47|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+46|0]=b;H[g+47|0]=b>>>8;b=(K[g+98|0]|K[g+99|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+98|0]=b;H[g+99|0]=b>>>8;b=(K[g+100| -0]|K[g+101|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+100|0]=b;H[g+101|0]=b>>>8;Pc:{u=Ab[J[J[q>>2]+16>>2]](q,g+32|0,128,1)|0;if(!u){oc(e+72|0,240834,255);break Pc}b=(K[g+36|0]|K[g+37|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+36|0]=b;H[g+37|0]=b>>>8;b=(K[g+38|0]|K[g+39|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+38|0]=b;H[g+39|0]=b>>>8;b=(K[g+40|0]|K[g+41|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+40|0]=b;H[g+41|0]=b>>>8;b=(K[g+42|0]|K[g+43|0]<<8)<<16>>16;b= -K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+42|0]=b;H[g+43|0]=b>>>8;b=(K[g+44|0]|K[g+45|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+44|0]=b;H[g+45|0]=b>>>8;b=(K[g+46|0]|K[g+47|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+46|0]=b;H[g+47|0]=b>>>8;b=(K[g+98|0]|K[g+99|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+98|0]=b;H[g+99|0]=b>>>8;b=(K[g+100|0]|K[g+101|0]<<8)<<16>>16;b=K[e+462|0]?b:b<<8|(b&65280)>>>8;H[g+100|0]=b;H[g+101|0]=b>>>8;m=Pl(g+4|0,0,0);J[195395]=0;_(1144,m|0)|0;b=J[195395]; -J[195395]=0;if((b|0)!=1)Qc:{Rc:{if(!J[e+44>>2]){h=J[e+20>>2];if((h|0)>0){d=K[g+97|0];while(1){n=h;h=h-1|0;k=0;Sc:{if(d<<24>>24<=0)break Sc;Tc:{while(1){Uc:{i=J[e+16>>2];Vc:{if((i|0)<=0)break Vc;d=0;b=0;o=0;f=0;Wc:{Xc:{Yc:{Zc:{_c:{c=k;switch(c|0){case 3:break Xc;case 2:break Yc;case 1:break Zc;case 0:break _c;default:break Vc}}while(1){J[195395]=0;eg(g,e,c,h,1);f=J[195395];J[195395]=0;if((f|0)==1)break Uc;j=b&255;b=K[g+2|0];$c:{ad:{bd:{if((j|0)!=(b|0)){cd:switch(d&255){case 1:if(j>>>0<192)break ad; -break;case 0:break $c;default:break cd}o=d|-64;break bd}o=255;if((d&255)!=63)break $c}f=J[J[m>>2]+44>>2];J[195395]=0;ca(f|0,m|0,o&255)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Uc}f=J[J[m>>2]+44>>2];d=0;J[195395]=0;ca(f|0,m|0,j|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Uc}d=d+1|0;c=c+1|0;i=J[e+16>>2];if((c|0)<(i|0))continue;break}break Wc}while(1){dd:{J[195395]=0;eg(g,e,o,h,1);c=J[195395];J[195395]=0;if((c|0)==1)break dd;j=b&255;b=K[g+1|0];ed:{fd:{gd:{if((j|0)!=(b|0)){hd:switch(d&255){case 1:if(j>>> -0<192)break fd;break;case 0:break ed;default:break hd}c=d|-64;break gd}c=255;if((d&255)!=63)break ed}f=J[J[m>>2]+44>>2];J[195395]=0;ca(f|0,m|0,c&255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break dd}c=J[J[m>>2]+44>>2];d=0;J[195395]=0;ca(c|0,m|0,j|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break dd}d=d+1|0;i=J[e+16>>2];o=o+1|0;if((i|0)>(o|0))continue;break Wc}break}break Qc}while(1){id:{J[195395]=0;eg(g,e,f,h,1);c=J[195395];J[195395]=0;if((c|0)==1)break id;j=b&255;b=K[g|0];jd:{kd:{ld:{if((j|0)!=(b|0)){md:switch(d& -255){case 1:if(j>>>0<192)break kd;break;case 0:break jd;default:break md}c=d|-64;break ld}c=255;if((d&255)!=63)break jd}d=J[J[m>>2]+44>>2];J[195395]=0;ca(d|0,m|0,c&255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break id}c=J[J[m>>2]+44>>2];d=0;J[195395]=0;ca(c|0,m|0,j|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break id}d=d+1|0;f=f+1|0;i=J[e+16>>2];if((f|0)<(i|0))continue;break Wc}break}break Qc}while(1){c=b;J[195395]=0;b=K[(J[e+932>>2]+P(J[e+16>>2],h)|0)+f|0];j=J[195395];J[195395]=0;if((j|0)==1)break Qc; -j=c&255;nd:{od:{pd:{if((j|0)!=(b|0)){qd:switch(d&255){case 1:if(j>>>0<192)break od;break;case 0:break nd;default:break qd}c=d|-64;break pd}c=255;if((d&255)!=63)break nd}d=J[J[m>>2]+44>>2];J[195395]=0;ca(d|0,m|0,c&255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Qc}c=J[J[m>>2]+44>>2];d=0;J[195395]=0;ca(c|0,m|0,j|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Qc}d=d+1|0;f=f+1|0;i=J[e+16>>2];if((f|0)<(i|0))continue;break}}rd:{sd:switch(d&255){case 1:if(b>>>0<192)break rd;break;case 0:break Vc;default:break sd}c= -J[J[m>>2]+44>>2];J[195395]=0;ca(c|0,m|0,(d|192)&255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Tc}c=J[J[m>>2]+44>>2];J[195395]=0;ca(c|0,m|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Tc}if(i&1){b=J[J[m>>2]+44>>2];J[195395]=0;ca(b|0,m|0,0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Tc}d=H[g+97|0];k=k+1|0;if((d|0)>(k|0))continue;break Sc}break}break Qc}break Qc}if((n|0)>=2)continue;break}}J[195395]=0;d=J[m+4>>2];b=J[195395];J[195395]=0;if((b|0)==1)break Qc;J[195395]=0;f=J[m+16>>2];c=J[m+4>> -2];b=J[195395];J[195395]=0;if((b|0)==1)break Qc;b=J[J[q>>2]+16>>2];J[195395]=0;ha(b|0,q|0,d|0,(c?f:-1)|0,1)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Rc;break Qc}if(L[e+26>>1]==8){f=J[e+20>>2];if((f|0)>0)while(1){n=f-1|0;i=0;d=0;b=0;c=J[e+16>>2];td:{if((c|0)<=0)break td;while(1){c=b;J[195395]=0;b=fg(e,i,n);h=J[195395];J[195395]=0;if((h|0)==1)break Qc;j=c&255;ud:{vd:{wd:{if((j|0)!=(b|0)){h=d;xd:switch(d&255){case 1:if(j>>>0<192)break vd;break;case 0:break ud;default:break xd}o=h|-64;break wd}o=255; -h=d;if((d&255)!=63)break ud}c=J[J[m>>2]+44>>2];J[195395]=0;ca(c|0,m|0,o&255)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Qc}c=J[J[m>>2]+44>>2];h=0;J[195395]=0;ca(c|0,m|0,j|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Qc}d=h+1|0;c=J[e+16>>2];i=i+1|0;if((c|0)>(i|0))continue;break}h=h&255;if((h|0)==255)break td;if(!(!h&b>>>0<192)){h=J[J[m>>2]+44>>2];J[195395]=0;ca(h|0,m|0,(d|192)&255)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Qc}d=J[J[m>>2]+44>>2];J[195395]=0;ca(d|0,m|0,b|0)|0;b=J[195395];J[195395]= -0;if((b|0)==1)break Qc}if(c&1){b=J[J[m>>2]+44>>2];J[195395]=0;ca(b|0,m|0,0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qc}b=(f|0)>1;f=n;if(b)continue;break}J[195395]=0;d=J[m+4>>2];b=J[195395];J[195395]=0;if((b|0)==1)break Qc;J[195395]=0;f=J[m+16>>2];c=J[m+4>>2];b=J[195395];J[195395]=0;if((b|0)==1)break Qc;b=J[J[q>>2]+16>>2];J[195395]=0;ha(b|0,q|0,d|0,(c?f:-1)|0,1)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qc;if(L[e+26>>1]!=8)break Rc;b=J[J[q>>2]+44>>2];J[195395]=0;ca(b|0,q|0,12)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break Qc;h=Qb(768);d=0;while(1){J[195395]=0;Td(g,e,d&255);b=J[195395];J[195395]=0;if((b|0)==1)break Qc;c=K[g+1|0];b=K[g|0];f=h+P(d,3)|0;H[f|0]=K[g+2|0];H[f+2|0]=b;H[f+1|0]=c;d=d+1|0;if((d|0)!=256)continue;break}b=J[J[q>>2]+16>>2];J[195395]=0;ha(b|0,q|0,h|0,768,1)|0;b=J[195395];J[195395]=0;if((b|0)!=1){Kb(h);Og(m);break Pc}break Qc}J[195395]=0;b=J[e+4>>2];c=b?J[e+44>>2]?b+40|0:0:0;b=J[195395];J[195395]=0;yd:{zd:{if((b|0)!=1){J[195395]=0;c=ns(c,c+4|0);b=J[195395];J[195395]=0; -if((b|0)==1)break Qc;b=L[e+26>>1];v=Qb(K[g+98|0]|K[g+99|0]<<8);s=Qb(J[e+16>>2]);l=J[e+20>>2];if((l|0)<=0)break yd;r=v+1|0;j=v-1|0;t=!((b|0)==1&(c|0)>0);break zd}break Qc}while(1){n=l;l=l-1|0;d=0;Ad:{if(J[e+16>>2]<=0)break Ad;while(1){J[195395]=0;c=fg(e,d,l);b=J[195395];J[195395]=0;if((b|0)==1)break Qc;H[d+s|0]=c;d=d+1|0;h=J[e+16>>2];if((d|0)<(h|0))continue;break}if(t|(h|0)<=0)break Ad;i=0;d=0;if(h>>>0>=4){f=h&-4;c=0;while(1){b=d+s|0;H[b|0]=1-K[b|0];b=s+(d|1)|0;H[b|0]=1-K[b|0];b=s+(d|2)|0;H[b|0]=1- -K[b|0];b=s+(d|3)|0;H[b|0]=1-K[b|0];d=d+4|0;c=c+4|0;if((f|0)!=(c|0))continue;break}}c=h&3;if(!c)break Ad;while(1){b=d+s|0;H[b|0]=1-K[b|0];d=d+1|0;i=i+1|0;if((c|0)!=(i|0))continue;break}}k=0;if(H[g+97|0]>0)while(1){f=J[e+16>>2];if((f|0)>0){c=1<>>0<2){c=f;break Dd}i=b+v|0;b=r;while(1){d=1;p=f&255;Ed:{while(1){h= -b+1|0;c=K[b|0];if((p|0)!=(c|0)|(d&255)>>>0>62)break Ed;d=d+1|0;b=h;if(i>>>0>b>>>0)continue;break}c=f;break Cd}if(!((d&255)>>>0<2&p>>>0<=191)){b=J[J[m>>2]+44>>2];J[195395]=0;ca(b|0,m|0,(d|192)&255)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qc}b=J[J[m>>2]+44>>2];J[195395]=0;ca(b|0,m|0,p|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qc;f=c;b=h;if(i>>>0>b>>>0)continue;break}}d=1;if((c&255)>>>0<192)break Bd}b=J[J[m>>2]+44>>2];J[195395]=0;ca(b|0,m|0,(d|192)&255)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qc}b= -J[J[m>>2]+44>>2];J[195395]=0;ca(b|0,m|0,c&255)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qc;k=k+1|0;if((k|0)=2)continue;break}}Kb(v);Kb(s);J[195395]=0;d=J[m+4>>2];b=J[195395];J[195395]=0;if((b|0)==1)break Qc;J[195395]=0;f=J[m+16>>2];c=J[m+4>>2];b=J[195395];J[195395]=0;if((b|0)==1)break Qc;b=J[J[q>>2]+16>>2];J[195395]=0;ha(b|0,q|0,d|0,(c?f:-1)|0,1)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Qc}Og(m);break Pc}a=Z()|0;Og(m);break a}d=(u|0)!=0}xb=g+160|0;if(d)break c; -break b;case 8:break g;default:break d}c=Pb(944);J[195395]=0;e=Fd(c,9);f=J[195395];J[195395]=0;if((f|0)!=1)break e}a=Z()|0;Kb(c);break a}J[e>>2]=240592;Rg(e,a);c=0;if(!kh(e,b))Fd:{f=b;if(L[e+26>>1]!=1){c=K[239735]|K[239736]<<8|(K[239737]<<16|K[239738]<<24);b=K[239731]|K[239732]<<8|(K[239733]<<16|K[239734]<<24);H[e+94|0]=b;H[e+95|0]=b>>>8;H[e+96|0]=b>>>16;H[e+97|0]=b>>>24;H[e+98|0]=c;H[e+99|0]=c>>>8;H[e+100|0]=c>>>16;H[e+101|0]=c>>>24;c=K[239729]|K[239730]<<8|(K[239731]<<16|K[239732]<<24);b=K[239725]| -K[239726]<<8|(K[239727]<<16|K[239728]<<24);H[e+88|0]=b;H[e+89|0]=b>>>8;H[e+90|0]=b>>>16;H[e+91|0]=b>>>24;H[e+92|0]=c;H[e+93|0]=c>>>8;H[e+94|0]=c>>>16;H[e+95|0]=c>>>24;c=K[239721]|K[239722]<<8|(K[239723]<<16|K[239724]<<24);b=K[239717]|K[239718]<<8|(K[239719]<<16|K[239720]<<24);H[e+80|0]=b;H[e+81|0]=b>>>8;H[e+82|0]=b>>>16;H[e+83|0]=b>>>24;H[e+84|0]=c;H[e+85|0]=c>>>8;H[e+86|0]=c>>>16;H[e+87|0]=c>>>24;c=K[239713]|K[239714]<<8|(K[239715]<<16|K[239716]<<24);b=K[239709]|K[239710]<<8|(K[239711]<<16|K[239712]<< -24);H[e+72|0]=b;H[e+73|0]=b>>>8;H[e+74|0]=b>>>16;H[e+75|0]=b>>>24;H[e+76|0]=c;H[e+77|0]=c>>>8;H[e+78|0]=c>>>16;H[e+79|0]=c>>>24;break Fd}n=J[e+20>>2];h=J[e+16>>2];Ab[J[J[f>>2]+44>>2]](f,0)|0;Ab[J[J[f>>2]+44>>2]](f,0)|0;while(1){b=c;c=b+7|0;if(h>>>c|0)continue;break}Gd:{if(b)while(1){if(!(Ab[J[J[f>>2]+44>>2]](f,(h>>>b|128)&255)|0))break Gd;c=(b|0)<8;b=b-7|0;if(!c)continue;break}Ab[J[J[f>>2]+44>>2]](f,h&127)|0}c=0;while(1){b=c;c=b+7|0;if(n>>>c|0)continue;break}Hd:{if(b)while(1){if(!(Ab[J[J[f>>2]+44>> -2]](f,(n>>>b|128)&255)|0))break Hd;c=(b|0)<8;b=b-7|0;if(!c)continue;break}Ab[J[J[f>>2]+44>>2]](f,n&127)|0}c=0;fd(e,0);i=J[e+20>>2];b=fd(e,0);d=1;if(!n)break Fd;h=h+7>>>3|0;b=P(J[e+52>>2],J[e+20>>2]-1|0)+b|0;while(1){Ab[J[J[f>>2]+16>>2]](f,b,h,1)|0;i=i-1|0;b=(i|0)>0?b-J[e+52>>2]|0:b;c=c+1|0;if((n|0)!=(c|0))continue;break}}if(d)break c;break b}c=K[239378]|K[239379]<<8|(K[239380]<<16|K[239381]<<24);b=K[239374]|K[239375]<<8|(K[239376]<<16|K[239377]<<24);H[a+87|0]=b;H[a+88|0]=b>>>8;H[a+89|0]=b>>>16;H[a+ -90|0]=b>>>24;H[a+91|0]=c;H[a+92|0]=c>>>8;H[a+93|0]=c>>>16;H[a+94|0]=c>>>24;c=K[239371]|K[239372]<<8|(K[239373]<<16|K[239374]<<24);b=K[239367]|K[239368]<<8|(K[239369]<<16|K[239370]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[239363]|K[239364]<<8|(K[239365]<<16|K[239366]<<24);b=K[239359]|K[239360]<<8|(K[239361]<<16|K[239362]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]= -c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}Ab[J[J[e>>2]+4>>2]](e);return 1}se(a+72|0,e+72|0);Ab[J[J[e>>2]+4>>2]](e);return 0}ba(a|0);B()}function lG(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,C=0,D=Q(0),E=0,F=0;t=xb-32|0;xb=t;H[c+140|0]=K[c+140|0]|48;C=J[c+40>>2];j=J[c+68>>2];if(j){h=J[a+96>>2];k=J[c+80>>2];if(j>>>0>=8){g=j&-8;while(1){J[(k+P(f,20)|0)+4>>2]=h;J[(k+P(f|1,20)|0)+4>>2]=h;J[(k+P(f|2,20)|0)+ -4>>2]=h;J[(k+P(f|3,20)|0)+4>>2]=h;J[(k+P(f|4,20)|0)+4>>2]=h;J[(k+P(f|5,20)|0)+4>>2]=h;J[(k+P(f|6,20)|0)+4>>2]=h;J[(k+P(f|7,20)|0)+4>>2]=h;f=f+8|0;o=o+8|0;if((g|0)!=(o|0))continue;break}}g=j&7;if(g)while(1){J[(k+P(f,20)|0)+4>>2]=h;f=f+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}f=0;while(1){g=k+P(f,20)|0;mj(g,c);o=g+16|0;i=L[o>>1];a:{if(1<>2]-127995>>>0<5)break b;if(!(!f|J[g>>2]-127462>>>0>25)){if(J[g-20>>2]-127462>>>0>25)break a;if(!(K[g-4|0]&128))break b; -break a}if((i&287)==257){I[g+16>>1]=i|128;g=f+1|0;if(g>>>0>=j>>>0)break a;h=k+P(g,20)|0;i=J[h>>2];if(i>>>0<=131069)i=K[((i&24|K[(i>>>5&3|K[(K[(i>>>11|0)+215920|0]>>>(i>>>8&4)<<3&120|i>>>7&7)+215984|0]<<2)+216064|0]<<5)>>>3|0)+216184|0]>>>(i&7)&1;else i=0;if(!i)break a;mj(h,c);o=h+16|0;i=L[h+16>>1];f=g;break b}g=J[g>>2];if((g&-2)==65438)break b;if(g-917536>>>0>95)break a}I[o>>1]=i|128}f=f+1|0;if(j>>>0>f>>>0)continue;break}}c:{if(!(1<>2]+16>>1]&7168)|(J[c+132>>2]|(J[c+16>>2]&17)!=1))break c; -J[t+8>>2]=0;f=J[b+116>>2];h=J[f+28>>2];i=J[b+120>>2];g=t+8|0;f=J[f+12>>2];if(f)f=J[f+8>>2];else f=0;if(!(Ab[h|0](b,i,9676,g,f)|0))break c;J[t+20>>2]=0;J[t+24>>2]=0;J[t+12>>2]=0;J[t+16>>2]=0;J[t+8>>2]=9676;mj(g,c);J[c+72>>2]=0;J[c+64>>2]=0;I[c+62>>1]=1;J[c+84>>2]=J[c+80>>2];J[c+64>>2]=0;f=J[c+80>>2];j=J[f+4>>2];h=J[f+8>>2];i=J[t+20>>2];g=J[t+24>>2];f=J[t+8>>2];if(ec(c,0,1)){k=J[c+84>>2]+P(J[c+72>>2],20)|0;J[k+12>>2]=i;J[k+16>>2]=g;J[k+8>>2]=h;J[k+4>>2]=j;J[k>>2]=f;J[c+72>>2]=J[c+72>>2]+1}hf(c)}d:{if(!(H[c+ -144|0]&1))break d;j=J[c+68>>2];if(!J[c+20>>2]){if(!j)break d;f=j-1|0;g=0;while(1){e:{if((f|0)==(g|0)){g=j;break e}g=g+1|0;if(K[(J[c+80>>2]+P(g,20)|0)+16|0]&128)continue}break}h=0;i=j;while(1){if(g-h>>>0>=2){Kd(c,h,g);i=J[c+68>>2]}f=g+1|0;h=f>>>0>>0?i:f;k=h-1|0;f=g;while(1){f:{if((f|0)==(k|0)){f=h;break f}f=f+1|0;if(K[(J[c+80>>2]+P(f,20)|0)+16|0]&128)continue}break}k=g>>>0>>0;h=g;g=f;if(k)continue;break}break d}if(!j)break d;g=j-1|0;f=0;while(1){g:{if((f|0)==(g|0)){f=j;break g}f=f+1|0;if(K[(J[c+ -80>>2]+P(f,20)|0)+16|0]&128)continue}break}g=0;while(1){i=g;g=f;Ac(c,3,i,f,1,0);h=J[c+68>>2];i=f+1|0;i=h>>>0>i>>>0?h:i;h=i-1|0;while(1){h:{if((f|0)==(h|0)){f=i;break h}f=f+1|0;if(K[(J[c+80>>2]+P(f,20)|0)+16|0]&128)continue}break}if(g>>>0>>0)continue;break}}m=J[c+40>>2];i:{j:{k:{h=Uo(J[c+44>>2]);l:{if(!((h|0)!=5|(m|0)!=4)){k=J[c+68>>2];if(!k){h=5;break l}j=J[c+80>>2];h=0;o=1;g=0;while(1){m:{i=j+P(h,20)|0;f=L[i+16>>1]&31;n:{if((f|0)==13){g=1;break n}if(1<>2]-127462>>>0<26|r}h= -h+1|0;o=k>>>0>h>>>0;if((h|0)!=(k|0))continue}break}h=(g|r)&1?o&1?5:4:5}f=m&-2;if((f|0)!=4)break k}if((h|0)==(m|0))break i;if(h)break j;break i}if((m|0)==6|(f|0)!=6)break i}k=J[c+20>>2]==1;f=0;n=xb-32|0;xb=n;o:{p:{q:{i=J[c+68>>2];g=i;switch(g|0){case 0:break o;case 1:break p;default:break q}}g=1;while(1){i=f;h=J[c+80>>2]+P(g,20)|0;r:{if(kG(h-20|0,h))break r;if(!(!k|g-f>>>0<2))Kd(c,f,g);h=J[c+68>>2];f=g>>>0>h>>>0?h:g;l=h>>>0>>0?h:i;s:{if(f>>>0>>0)break s;q=f-1|0;if(l>>>0>=q>>>0)break s;j=J[c+ -80>>2];while(1){m=j+P(q,20)|0;J[n+24>>2]=J[m+16>>2];f=J[m+12>>2];J[n+16>>2]=J[m+8>>2];J[n+20>>2]=f;f=J[m+4>>2];J[n+8>>2]=J[m>>2];J[n+12>>2]=f;f=j+P(l,20)|0;J[m+16>>2]=J[f+16>>2];h=J[f+12>>2];J[m+8>>2]=J[f+8>>2];J[m+12>>2]=h;h=J[f+4>>2];J[m>>2]=J[f>>2];J[m+4>>2]=h;J[f+16>>2]=J[n+24>>2];h=J[n+20>>2];J[f+8>>2]=J[n+16>>2];J[f+12>>2]=h;h=J[n+12>>2];J[f>>2]=J[n+8>>2];J[f+4>>2]=h;q=q-1|0;l=l+1|0;if(q>>>0>l>>>0)continue;break}}f=g;if(!K[c+63|0])break r;j=J[c+68>>2];h=f>>>0>j>>>0?j:f;l=i>>>0>j>>>0?j:i;if(h>>> -0>>0)break r;q=h-1|0;if(l>>>0>=q>>>0)break r;i=J[c+88>>2];while(1){j=i+P(q,20)|0;J[n+24>>2]=J[j+16>>2];f=J[j+12>>2];J[n+16>>2]=J[j+8>>2];J[n+20>>2]=f;f=J[j+4>>2];J[n+8>>2]=J[j>>2];J[n+12>>2]=f;h=i+P(l,20)|0;J[j+16>>2]=J[h+16>>2];f=J[h+12>>2];J[j+8>>2]=J[h+8>>2];J[j+12>>2]=f;f=J[h+4>>2];J[j>>2]=J[h>>2];J[j+4>>2]=f;J[h+16>>2]=J[n+24>>2];f=J[n+20>>2];J[h+8>>2]=J[n+16>>2];J[h+12>>2]=f;f=J[n+12>>2];J[h>>2]=J[n+8>>2];J[h+4>>2]=f;q=q-1|0;l=l+1|0;if(q>>>0>l>>>0)continue;break}f=g}g=g+1|0;i=J[c+68>>2]; -if(g>>>0>>0)continue;break}}if(!(!k|g-f>>>0<2)){Kd(c,f,g);i=J[c+68>>2]}h=g>>>0>i>>>0?i:g;l=f>>>0>i>>>0?i:f;t:{if(h>>>0>>0)break t;q=h-1|0;if(l>>>0>=q>>>0)break t;h=J[c+80>>2];while(1){k=h+P(q,20)|0;J[n+24>>2]=J[k+16>>2];i=J[k+12>>2];J[n+16>>2]=J[k+8>>2];J[n+20>>2]=i;i=J[k+4>>2];J[n+8>>2]=J[k>>2];J[n+12>>2]=i;j=h+P(l,20)|0;J[k+16>>2]=J[j+16>>2];i=J[j+12>>2];J[k+8>>2]=J[j+8>>2];J[k+12>>2]=i;i=J[j+4>>2];J[k>>2]=J[j>>2];J[k+4>>2]=i;J[j+16>>2]=J[n+24>>2];i=J[n+20>>2];J[j+8>>2]=J[n+16>>2];J[j+12>> -2]=i;i=J[n+12>>2];J[j>>2]=J[n+8>>2];J[j+4>>2]=i;q=q-1|0;l=l+1|0;if(q>>>0>l>>>0)continue;break}i=J[c+68>>2]}u:{if(!K[c+63|0])break u;l=f>>>0>i>>>0?i:f;f=g>>>0>i>>>0?i:g;if(l+2>>>0>f>>>0)break u;q=f-1|0;if(l>>>0>=q>>>0)break u;g=J[c+88>>2];while(1){h=g+P(q,20)|0;J[n+24>>2]=J[h+16>>2];f=J[h+12>>2];J[n+16>>2]=J[h+8>>2];J[n+20>>2]=f;f=J[h+4>>2];J[n+8>>2]=J[h>>2];J[n+12>>2]=f;i=g+P(l,20)|0;J[h+16>>2]=J[i+16>>2];f=J[i+12>>2];J[h+8>>2]=J[i+8>>2];J[h+12>>2]=f;f=J[i+4>>2];J[h>>2]=J[i>>2];J[h+4>>2]=f;J[i+16>> -2]=J[n+24>>2];f=J[n+20>>2];J[i+8>>2]=J[n+16>>2];J[i+12>>2]=f;f=J[n+12>>2];J[i>>2]=J[n+8>>2];J[i+4>>2]=f;q=q-1|0;l=l+1|0;if(q>>>0>l>>>0)continue;break}i=J[c+68>>2]}if(i>>>0>=2){g=J[c+80>>2];l=i-1|0;q=0;while(1){j=g+P(l,20)|0;J[n+24>>2]=J[j+16>>2];f=J[j+12>>2];J[n+16>>2]=J[j+8>>2];J[n+20>>2]=f;f=J[j+4>>2];J[n+8>>2]=J[j>>2];J[n+12>>2]=f;h=g+P(q,20)|0;J[j+16>>2]=J[h+16>>2];f=J[h+12>>2];J[j+8>>2]=J[h+8>>2];J[j+12>>2]=f;f=J[h+4>>2];J[j>>2]=J[h>>2];J[j+4>>2]=f;J[h+16>>2]=J[n+24>>2];f=J[n+20>>2];J[h+8>>2]= -J[n+16>>2];J[h+12>>2]=f;f=J[n+12>>2];J[h>>2]=J[n+8>>2];J[h+4>>2]=f;q=q+1|0;l=l-1|0;if(q>>>0>>0)continue;break}}if(!K[c+63|0])break o;f=J[c+68>>2];f=f>>>0>>0?f:i;if(f>>>0<2)break o;g=J[c+88>>2];l=f-1|0;q=0;while(1){h=g+P(l,20)|0;J[n+24>>2]=J[h+16>>2];f=J[h+12>>2];J[n+16>>2]=J[h+8>>2];J[n+20>>2]=f;f=J[h+4>>2];J[n+8>>2]=J[h>>2];J[n+12>>2]=f;i=g+P(q,20)|0;J[h+16>>2]=J[i+16>>2];f=J[i+12>>2];J[h+8>>2]=J[i+8>>2];J[h+12>>2]=f;f=J[i+4>>2];J[h>>2]=J[i>>2];J[h+4>>2]=f;J[i+16>>2]=J[n+24>>2];f=J[n+20>>2]; -J[i+8>>2]=J[n+16>>2];J[i+12>>2]=f;f=J[n+12>>2];J[i>>2]=J[n+8>>2];J[i+4>>2]=f;q=q+1|0;l=l-1|0;if(q>>>0>>0)continue;break}}xb=n+32|0;J[c+40>>2]=J[c+40>>2]^1}w=a+60|0;v:{if(!J[J[a+80>>2]+16>>2])break v;if(!nc(c,b,105407,0))break v;Ab[J[J[a+80>>2]+16>>2]](w,c,b);nc(c,b,105618,0)}l=J[c+80>>2];x=J[c+68>>2];if(!(!x|(C&-3)!=5)){m=J[a+176>>2];n=J[c+12>>2];g=0;while(1){o=l+P(g,20)|0;f=Ab[J[n+28>>2]](n,J[o>>2],J[n+60>>2])|0;w:{x:{if((f|0)==J[o>>2])break x;J[t+8>>2]=0;i=J[b+116>>2];k=J[i+28>>2];h=J[b+120>> -2];j=t+8|0;i=J[i+12>>2];if(i)i=J[i+8>>2];else i=0;if(!(Ab[k|0](b,h,f,j,i)|0))break x;J[o>>2]=f;break w}J[o+4>>2]=m|J[o+4>>2]}g=g+1|0;if((x|0)!=(g|0))continue;break}}if(!(!x|(K[a+188|0]&8|(C&-2)!=6))){f=0;while(1){y:{z:{A:{B:{C:{D:{E:{m=l+P(f,20)|0;i=J[m>>2];g=i>>>8|0;switch(g-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break y;case 16:break A;case 0:break D;default:break E}}switch(g-254|0){case 1:break B;case 0:break C;default:break y}}g= -65074;F:switch(i-8211|0){case 1:g=65073;break z;case 18:g=65072;break z;case 0:break z;case 19:break F;default:break y}g=65049;break z}g=65076;if((i|0)==65103)break z;break y}g=65045;G:switch(i-65281|0){case 7:g=65077;break z;case 8:g=65078;break z;case 11:g=65040;break z;case 25:g=65043;break z;case 26:g=65044;break z;case 30:g=65046;break z;case 58:g=65095;break z;case 60:g=65096;break z;case 62:g=65075;break z;case 90:g=65079;break z;case 0:break z;case 92:break G;default:break y}g=65080;break z}g= -i-12289|0;if(g>>>0>=23|!(7995267>>>g&1))break y;g=J[(g<<2)+130704>>2]}if((g|0)==(i|0))break y;J[t+8>>2]=0;i=J[b+116>>2];k=J[i+28>>2];h=J[b+120>>2];j=t+8|0;i=J[i+12>>2];if(i)i=J[i+8>>2];else i=0;if(!(Ab[k|0](b,h,g,j,i)|0))break y;J[m>>2]=g}f=f+1|0;if((x|0)!=(f|0))continue;break}}H[c+140|0]=K[c+140|0]|15;u=xb-48|0;xb=u;H:{if(!J[c+68>>2])break H;i=J[w+20>>2];g=J[i+44>>2];J[u+28>>2]=b;J[u+24>>2]=c;J[u+20>>2]=w;J[u+32>>2]=J[c+12>>2];J[u+36>>2]=J[c+32>>2];f=J[i+24>>2];J[u+40>>2]=f?f:883;f=J[i+28>>2];J[u+ -44>>2]=f?f:884;J[c+72>>2]=0;J[c+64>>2]=0;I[c+62>>1]=1;J[c+84>>2]=J[c+80>>2];f=0;J[c+64>>2]=0;x=(g|0)==4?2:g;o=x&-3;z=J[c+68>>2];r=1;I:{J:{K:{while(1){g=f+1|0;h=g>>>0>>0?z:g;i=f;while(1){L:{g=i;i=g+1|0;if(z>>>0<=i>>>0){g=h;break L}if(!(1<>2]+P(i,20)|0)+16>>1]&7168))continue}break}if((o|0)!=1){l=J[b+116>>2];m=J[l+32>>2];h=J[b+120>>2];j=g-f|0;f=J[c+80>>2]+P(f,20)|0;i=f;k=f+12|0;f=J[l+12>>2];if(f)f=J[f+12>>2];else f=0;f=Ab[m|0](b,h,j,i,20,k,20,f)|0;if(K[c+62|0]){M:{if(J[c+84>>2]==J[c+80>> -2]){i=J[c+72>>2];if((i|0)==J[c+64>>2])break M}if(!ec(c,f,f))break K;qc(J[c+84>>2]+P(J[c+72>>2],20)|0,J[c+80>>2]+P(J[c+64>>2],20)|0,P(f,20));i=J[c+72>>2]}J[c+72>>2]=f+i}f=f+J[c+64>>2]|0;J[c+64>>2]=f}N:{if(!K[c+60|0]|f>>>0>=g>>>0)break N;while(1){mG(u+20|0,(o|0)!=1);f=J[c+64>>2];if(g>>>0<=f>>>0)break N;if(K[c+60|0])continue;break}}if(!K[c+60|0]|(f|0)==(z|0))break K;g=f+1|0;h=g>>>0>>0?z:g;i=h-1|0;while(1){O:{g=f;f=f+1|0;if(z>>>0<=f>>>0){g=i;f=h;break O}if(1<>2]+P(f,20)|0)+16>>1]&7168)continue}break}p= -J[u+24>>2];i=J[p+64>>2];P:{if(i>>>0>=f>>>0)break P;Q:{if(!K[p+60|0])break Q;j=J[p+80>>2];while(1){h=J[j+P(i,20)>>2];if(!((h&-16)==65024|h-918E3>>>0>=4294967056)){h=(g|0)==(i|0);i=i+1|0;if(!h)continue;break Q}break}i=J[u+28>>2];A=xb-16|0;xb=A;g=J[p+64>>2];n=f-1|0;R:{if(g>>>0>=n>>>0)break R;while(1){if(!K[p+60|0])break R;m=J[p+80>>2]+P(g,20)|0;j=m+12|0;J[j>>2]=0;h=J[m>>2];g=J[i+120>>2];k=J[i+116>>2];v=J[k+12>>2];m=J[m+20>>2];S:{if(!((m&-16)!=65024&m-918E3>>>0<4294967056)){l=J[k+36>>2];T:{if(Ab[l|0](i, -g,h,m,j,v?J[v+16>>2]:0)|0){J[A+12>>2]=J[J[p+80>>2]+P(J[p+64>>2],20)>>2];if(ec(p,2,1)){g=J[p+64>>2];Kd(p,g,g+2|0);h=J[p+64>>2];U:{if(h>>>0>2]){g=J[p+72>>2];y=J[p+84>>2];h=J[p+80>>2]+P(h,20)|0;break U}y=J[p+84>>2];g=J[p+72>>2];h=g-1|0;h=y+P(g>>>0>=h>>>0?h:0,20)|0}j=P(g,20)+y|0;g=J[h+4>>2];J[j>>2]=J[h>>2];J[j+4>>2]=g;J[j+16>>2]=J[h+16>>2];g=J[h+12>>2];J[j+8>>2]=J[h+8>>2];J[j+12>>2]=g;J[j>>2]=J[A+12>>2];J[p+64>>2]=J[p+64>>2]+2;J[p+72>>2]=J[p+72>>2]+1}break T}j=J[p+80>>2]+P(J[p+64>>2],20)|0;g= -j+12|0;J[g>>2]=0;h=J[i+116>>2];m=J[h+28>>2];l=J[i+120>>2];j=J[j>>2];h=J[h+12>>2];if(h)h=J[h+8>>2];else h=0;Ab[m|0](i,l,j,g,h)|0;zk(p);j=J[p+80>>2]+P(J[p+64>>2],20)|0;g=j+12|0;J[g>>2]=0;h=J[i+116>>2];m=J[h+28>>2];l=J[i+120>>2];j=J[j>>2];h=J[h+12>>2];if(h)h=J[h+8>>2];else h=0;Ab[m|0](i,l,j,g,h)|0;zk(p)}g=J[p+64>>2];if(g>>>0>=f>>>0)break S;while(1){if(!K[p+60|0])break S;j=J[p+80>>2]+P(g,20)|0;h=J[j>>2];if((h&-16)!=65024&h-918E3>>>0<4294967056)break S;g=j+12|0;J[g>>2]=0;j=J[i+116>>2];m=J[j+28>>2];l=J[i+ -120>>2];j=J[j+12>>2];if(j)j=J[j+8>>2];else j=0;Ab[m|0](i,l,h,g,j)|0;V:{if(K[p+62|0]){W:{if(J[p+84>>2]==J[p+80>>2]){g=J[p+72>>2];if((g|0)==J[p+64>>2])break W}h=ec(p,1,1);g=J[p+64>>2];if(!h)break V;j=J[p+80>>2]+P(g,20)|0;g=J[j+4>>2];h=J[p+84>>2]+P(J[p+72>>2],20)|0;J[h>>2]=J[j>>2];J[h+4>>2]=g;J[h+16>>2]=J[j+16>>2];g=J[j+12>>2];J[h+8>>2]=J[j+8>>2];J[h+12>>2]=g;g=J[p+72>>2]}J[p+72>>2]=g+1}g=J[p+64>>2]+1|0;J[p+64>>2]=g}if(f>>>0>g>>>0)continue;break}break S}k=J[k+28>>2];Ab[k|0](i,g,h,j,v?J[v+8>>2]:0)|0; -if(K[p+62|0]){X:{if(J[p+84>>2]==J[p+80>>2]){g=J[p+72>>2];if((g|0)==J[p+64>>2])break X}h=ec(p,1,1);g=J[p+64>>2];if(!h)break S;j=J[p+80>>2]+P(g,20)|0;g=J[j+4>>2];h=J[p+84>>2]+P(J[p+72>>2],20)|0;J[h>>2]=J[j>>2];J[h+4>>2]=g;J[h+16>>2]=J[j+16>>2];g=J[j+12>>2];J[h+8>>2]=J[j+8>>2];J[h+12>>2]=g;g=J[p+72>>2]}J[p+72>>2]=g+1}g=J[p+64>>2]+1|0;J[p+64>>2]=g}if(g>>>0>>0)continue;break}}Y:{if(f>>>0<=g>>>0)break Y;h=J[p+80>>2]+P(g,20)|0;f=h+12|0;J[f>>2]=0;g=J[i+116>>2];k=J[g+28>>2];j=J[i+120>>2];h=J[h>>2];g=J[g+ -12>>2];if(g)g=J[g+8>>2];else g=0;Ab[k|0](i,j,h,f,g)|0;if(K[p+62|0]){Z:{if(J[p+84>>2]==J[p+80>>2]){g=J[p+72>>2];if((g|0)==J[p+64>>2])break Z}if(!ec(p,1,1))break Y;g=J[p+80>>2]+P(J[p+64>>2],20)|0;f=J[g+4>>2];i=J[p+84>>2]+P(J[p+72>>2],20)|0;J[i>>2]=J[g>>2];J[i+4>>2]=f;J[i+16>>2]=J[g+16>>2];f=J[g+12>>2];J[i+8>>2]=J[g+8>>2];J[i+12>>2]=f;g=J[p+72>>2]}J[p+72>>2]=g+1}J[p+64>>2]=J[p+64>>2]+1}xb=A+16|0;break P}while(1){if(!K[p+60|0])break P;mG(u+20|0,!x);if(M[p+64>>2]>>0)continue;break}}f=J[c+64>>2];if(z>>> -0>f>>>0){r=0;if(K[c+60|0])continue}break}hf(c);break J}hf(c);h=1;if(r)break I}h=0;if(!nc(c,b,105180,0))break I;k=J[c+68>>2];if(k){j=J[c+80>>2];h=0;while(1){f=L[(j+P(h,20)|0)+16>>1];_:{if(f>>>0<256){f=h;break _}if(!(1<>>0>>0?k:f;f=h;while(1){$:{f=f+1|0;if(k>>>0<=f>>>0){f=g;break $}i=L[(j+P(f,20)|0)+16>>1];if(i>>>0<256)break $;if(1<>>0>32)break _;gu(c,h,f,885);g=J[J[w+20>>2]+36>>2];if(!g)break _;Ab[g|0](w,c,h,f)}h=f+1|0;if(k>>>0>h>>> -0)continue;break}}nc(c,b,105466,0);h=0}aa:{if(!(K[c+144|0]&16))break aa;j=J[c+68>>2];if(j>>>0<3)break aa;k=J[c+80>>2];f=1;i=2;while(1){g=f;f=i;m=k+P(g,20)|0;ba:{if(J[m>>2]!=847)break ba;i=L[(k+P(f,20)|0)+16>>1];ca:{if(i>>>0<256|!(1<>1];if(g>>>8>>>0<=i>>>8>>>0)break ca;if(1<>1]=L[m+16>>1]&65471}i=f+1|0;if((j|0)!=(i|0))continue;break}}if(!K[c+60|0]|h|(x&-2)!=2)break H;J[c+72>>2]=0;J[c+64>>2]=0;I[c+62>>1]=1;J[c+84>>2]=J[c+80>>2];m=J[c+68>>2];da:{if(K[c+ -62|0]){ea:{if(J[c+84>>2]==J[c+80>>2]){f=J[c+72>>2];if((f|0)==J[c+64>>2])break ea}f=ec(c,1,1);i=J[c+64>>2];if(!f)break da;g=J[c+80>>2]+P(i,20)|0;f=J[g+4>>2];h=J[c+84>>2]+P(J[c+72>>2],20)|0;J[h>>2]=J[g>>2];J[h+4>>2]=f;J[h+16>>2]=J[g+16>>2];f=J[g+12>>2];J[h+8>>2]=J[g+8>>2];J[h+12>>2]=f;f=J[c+72>>2]}J[c+72>>2]=f+1}i=J[c+64>>2]+1|0;J[c+64>>2]=i}fa:{if(i>>>0>=m>>>0)break fa;q=0;while(1){ga:{ha:{i=J[c+80>>2]+P(i,20)|0;g=L[i+16>>1];if(!(1<>2];f=J[c+72>>2];h=f-1|0;if((h|0)!=(q|0)){f= -L[(j+P(f>>>0>=h>>>0?h:0,20)|0)+16>>1];if(g>>>8>>>0<=(1<>>8|0:0)>>>0)break ha}k=P(q,20);if(!(Ab[J[u+44>>2]](u+20|0,J[k+j>>2],J[i>>2],u+16|0)|0))break ha;J[u+12>>2]=0;f=J[b+116>>2];j=J[f+28>>2];g=J[b+120>>2];i=J[u+16>>2];h=u+12|0;f=J[f+12>>2];if(f)f=J[f+8>>2];else f=0;if(!(Ab[j|0](b,g,i,h,f)|0))break ha;ia:{if(!K[c+62|0]){f=J[c+72>>2];break ia}ja:{if(J[c+84>>2]==J[c+80>>2]){f=J[c+72>>2];if((f|0)==J[c+64>>2])break ja}if(!ec(c,1,1))break fa;g=J[c+80>>2]+P(J[c+64>>2],20)|0;f=J[g+4>>2];i=J[c+ -84>>2]+P(J[c+72>>2],20)|0;J[i>>2]=J[g>>2];J[i+4>>2]=f;J[i+16>>2]=J[g+16>>2];f=J[g+12>>2];J[i+8>>2]=J[g+8>>2];J[i+12>>2]=f;f=J[c+72>>2]}f=f+1|0;J[c+72>>2]=f}J[c+64>>2]=J[c+64>>2]+1;xh(c,q,f);J[c+72>>2]=J[c+72>>2]-1;f=k+J[c+84>>2]|0;J[f>>2]=J[u+16>>2];J[f+12>>2]=J[u+12>>2];mj(k+J[c+84>>2]|0,c);i=J[c+64>>2];break ga}g=J[c+84>>2];ka:{if(!K[c+62|0]){h=J[c+72>>2];break ka}la:{if(J[c+80>>2]==(g|0)){f=J[c+72>>2];if((f|0)==J[c+64>>2])break la}if(!ec(c,1,1))break fa;g=J[c+80>>2]+P(J[c+64>>2],20)|0;f=J[g+4>> -2];i=J[c+84>>2]+P(J[c+72>>2],20)|0;J[i>>2]=J[g>>2];J[i+4>>2]=f;J[i+16>>2]=J[g+16>>2];f=J[g+12>>2];J[i+8>>2]=J[g+8>>2];J[i+12>>2]=f;g=J[c+84>>2];f=J[c+72>>2]}h=f+1|0;J[c+72>>2]=h}i=J[c+64>>2]+1|0;J[c+64>>2]=i;f=g;g=h-1|0;f=L[(f+P(g>>>0<=h>>>0?g:0,20)|0)+16>>1];q=1<>>0<256?g:q:g}if(i>>>0>>0)continue;break}}hf(c)}xb=u+48|0;ma:{if(!(H[c+144|0]&1)|!(K[a+188|0]&4))break ma;na:{if((J[c+40>>2]&-3)==4){f=J[a+164>>2];r=f|J[a+168>>2];g=a+172|0;break na}f=J[a+164>>2];r=f|J[a+172>>2];g=a+168|0}j= -J[c+68>>2];if(!j)break ma;x=J[g>>2]|f;A=J[c+80>>2];n=A-4|0;g=0;while(1){m=P(g,20);o=m+A|0;oa:{if(J[o>>2]!=8260)break oa;i=g+1|0;pa:{f=g;qa:{ra:{sa:{ta:{if(f){ua:{while(1){if((L[n+P(f,20)>>1]&31)!=13)break ua;f=f-1|0;if(f)continue;break}f=0}if(i>>>0>>0)break ta;h=1;if((f|0)==(g|0))break sa;break qa}h=1;f=0;if(i>>>0>=j>>>0)break sa}h=i;va:{while(1){if((L[(A+P(h,20)|0)+16>>1]&31)!=13)break va;h=h+1|0;if((j|0)!=(h|0))continue;break}h=j}k=(f|0)!=(g|0);if(k&(h|0)!=(i|0))break pa;h=(h|0)==(i|0);if(k)break ra}if(!(K[c+ -16|0]&64))break ra;J[c+144>>2]=J[c+144>>2]|32;if(M[c+68>>2]<=g>>>0)break ra;f=m+J[c+80>>2]|0;J[f+4>>2]=J[f+4>>2]|2}if(!h)break oa}if(!(K[c+16|0]&64))break oa;J[c+144>>2]=J[c+144>>2]|32;if(M[c+68>>2]<=g>>>0)break oa;f=m+J[c+80>>2]|0;J[f+4>>2]=J[f+4>>2]|2;break oa}Ac(c,3,f,h,1,0);wa:{if(f>>>0>=g>>>0)break wa;l=(f^-1)+g|0;q=0;m=g-f&3;if(m)while(1){k=A+P(f,20)|0;J[k+4>>2]=J[k+4>>2]|r;f=f+1|0;q=q+1|0;if((m|0)!=(q|0))continue;break}if(l>>>0<=2)break wa;while(1){k=A+P(f,20)|0;J[k+4>>2]=J[k+4>>2]|r;J[k+24>> -2]=J[k+24>>2]|r;J[k+44>>2]=J[k+44>>2]|r;k=k- -64|0;J[k>>2]=J[k>>2]|r;f=f+4|0;if((g|0)!=(f|0))continue;break}}J[o+4>>2]=J[o+4>>2]|J[a+164>>2];xa:{if(h>>>0<=i>>>0)break xa;f=0;m=(g^-1)+h&3;if(m)while(1){k=A+P(i,20)|0;J[k+4>>2]=x|J[k+4>>2];i=i+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}if((h-g|0)-2>>>0<3)break xa;while(1){f=A+P(i,20)|0;J[f+4>>2]=x|J[f+4>>2];J[f+24>>2]=x|J[f+24>>2];J[f+44>>2]=x|J[f+44>>2];f=f- -64|0;J[f>>2]=x|J[f>>2];i=i+4|0;if((h|0)!=(i|0))continue;break}}g=h-1|0}g=g+1|0;if(j>>>0>g>>> -0)continue;break}}f=J[J[a+80>>2]+32>>2];if(f)Ab[f|0](w,c,b);if(e){g=0;while(1){x=(g<<4)+d|0;i=J[x+8>>2];if(!(!i&J[x+12>>2]==-1)){m=J[x+4>>2];ya:{za:{f=J[a+104>>2];if((f|0)<=0)break za;k=J[a+108>>2];o=J[x>>2];f=f-1|0;h=0;while(1){Aa:{n=f+h>>>1|0;l=k+P(n,36)|0;j=J[l>>2];Ba:{if(j>>>0>o>>>0){f=n-1|0;break Ba}if(j>>>0>=o>>>0)break Aa;h=n+1|0}if((f|0)>=(h|0))continue;break za}break}h=J[l+24>>2];f=J[l+20>>2];break ya}h=0;f=0}j=m<>2];v=0;Ca:{if(!h)break Ca;o=J[c+68>>2];if(!o)break Ca;n=h& -j;l=h^-1;m=J[c+80>>2];i=0;if((o|0)!=1){j=o&-2;while(1){k=m+P(i,20)|0;h=J[k+8>>2];if(!(h>>>0>>0|h>>>0>=x>>>0))J[k+4>>2]=n|l&J[k+4>>2];k=m+P(i|1,20)|0;h=J[k+8>>2];if(!(h>>>0>>0|h>>>0>=x>>>0))J[k+4>>2]=n|l&J[k+4>>2];i=i+2|0;v=v+2|0;if((j|0)!=(v|0))continue;break}}if(!(o&1))break Ca;h=f;i=m+P(i,20)|0;f=J[i+8>>2];if(h>>>0>f>>>0|f>>>0>=x>>>0)break Ca;J[i+4>>2]=n|l&J[i+4>>2]}}g=g+1|0;if((g|0)!=(e|0))continue;break}}if(K[a+188|0]&128){k=J[c+68>>2];if(k){j=J[c+80>>2];h=0;while(1){g=j+P(h,20)|0;l=L[g+ -16>>1];if((l&31)==12){i=l>>>8|0;Da:{Ea:{if(l>>>0>51199)break Ea;m=J[g>>2];if((m&-256)==3584){if(l>>>0<=255){f=0;Fa:switch(m-3633|0){case 0:case 3:case 4:case 5:case 6:case 22:case 27:case 28:case 29:f=232;break Da;case 128:case 131:case 132:case 133:case 134:case 138:case 155:case 156:f=230;break Da;case 139:break Fa;default:break Da}f=220;break Da}f=222;if((m|0)==3642)break Da}f=220;Ga:switch(i-3|0){case 10:f=214;break Da;case 7:f=232;break Da;case 8:case 11:f=228;break Da;case 23:case 24:case 25:case 26:case 28:case 29:case 31:case 32:case 33:f= -230;break Da;case 0:f=222;break Da;case 104:f=232;break Da;case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 27:case 30:case 115:case 126:case 128:break Da;case 119:case 129:break Ga;default:break Ea}f=230;break Da}f=i}I[g+16>>1]=l&255|f<<8}h=h+1|0;if((k|0)!=(h|0))continue;break}}}k=J[c+68>>2];Ha:{if(!k)break Ha;m=J[c+80>>2];g=0;f=0;if(k>>>0>=4){j=k&-4;i=0;while(1){h=m+P(f,20)|0;J[h>>2]=J[h+12>>2];h=m+P(f|1,20)|0;J[h>>2]=J[h+12>>2];h=m+P(f|2,20)|0;J[h>>2]= -J[h+12>>2];h=m+P(f|3,20)|0;J[h>>2]=J[h+12>>2];f=f+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}h=k&3;if(!h)break Ha;while(1){i=m+P(f,20)|0;J[i>>2]=J[i+12>>2];f=f+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}}J[c+36>>2]=2;H[c+140|0]=K[c+140|0]&240|7;g=J[b+24>>2];h=g+144|0;while(1){Ia:{f=J[h>>2];if(f)break Ia;if(!J[g+48>>2]){f=169776;break Ia}f=lm(h);if(!f)f=169776;i=J[h>>2];J[h>>2]=i?i:f;if(!i)break Ia;km(f);continue}break}l=J[c+68>>2];if(l){m=J[c+80>>2];k=f+16|0;h=0;while(1){n=m+P(h,20)|0;o=J[n>>2]; -j=k+((o&255)<<1)|0;g=I[j>>1];Ja:{if(!((g|0)==-1|(g>>>3|0)!=(o>>>8|0))){i=g&7;break Ja}g=J[f>>2];g=g?g:169776;i=xi(M[g+16>>2]<4?169776:J[g+12>>2],o);if(!J[f>>2]|o>>>0>2097151|i>>>0>7)break Ja;I[j>>1]=o>>>5&65528|i}I[n+12>>1]=i;H[n+14|0]=0;h=h+1|0;if((l|0)!=(h|0))continue;break}}f=L[a+188>>1];Ka:{if(!(f&64))break Ka;j=J[c+68>>2];if(!j)break Ka;h=J[c+80>>2];f=0;while(1){k=h+P(f,20)|0;i=L[k+16>>1];La:{if((i&31)==12){g=8;if(!(i&32)|L[k+12>>1]&16)break La}g=2}I[k+12>>1]=g;f=f+1|0;if((j|0)!=(f|0))continue; -break}f=L[a+188>>1]}Ma:{Na:{Oa:{if(f&8192){f=0;l=xb-160|0;xb=l;J[l+104>>2]=J[b+24>>2];g=J[w+12>>2];J[l+116>>2]=J[w+8>>2];J[l+120>>2]=g;J[l+124>>2]=J[w+16>>2];i=J[w>>2];g=J[w+4>>2];J[l+136>>2]=0;J[l+140>>2]=0;J[l+144>>2]=0;J[l+148>>2]=0;J[l+152>>2]=0;J[l+156>>2]=-1;J[l+108>>2]=i;J[l+112>>2]=g;J[l+128>>2]=0;J[l+132>>2]=0;Pa:{Qa:{Ra:{if(e)while(1){J[195395]=0;$(588,l+104|0,(f<<4)+d|0);g=J[195395];J[195395]=0;if((g|0)==1)break Ra;f=f+1|0;if((f|0)!=(e|0))continue;break}J[l+100>>2]=0;J[l+92>>2]=0;J[l+96>> -2]=0;J[195395]=0;$(589,l+104|0,l+92|0);d=J[195395];J[195395]=0;Sa:{if((d|0)!=1){Ta:{Ua:{Va:{Wa:{Xa:{e=J[b+24>>2];f=J[e+160>>2];Ya:{if(f)break Ya;while(1){d=J[e+48>>2];if(!d){J[195395]=0;f=169776;d=J[195395];J[195395]=0;if((d|0)!=1)break Ya;f=Z()|0;break Sa}J[195395]=0;f=_(591,d|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Xa;if(!f){J[195395]=0;f=169776;d=J[195395];J[195395]=0;if((d|0)==1)break Xa}d=J[e+160>>2];J[e+160>>2]=d?d:f;if(!d)break Ya;J[195395]=0;ea(592,f|0);d=J[195395];J[195395]=0;if((d| -0)==1)break Xa;f=J[e+160>>2];if(!f)continue;break}}k=M[f+16>>2]<8?169776:J[f+12>>2];if(!(K[k|0]|K[k+1|0]<<8))break Ua;J[195395]=0;m=ka(593,l+4|0,w|0,b|0,c|0,f|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Va;J[195395]=0;e=ha(594,c|0,b|0,105056,0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Wa;if(e){d=J[m+16>>2];Za:{if(!K[d+60|0])break Za;_a:{if(!(K[d+16|0]&64))break _a;J[d+144>>2]=J[d+144>>2]|32;i=J[d+68>>2];if(!i)break _a;j=J[d+80>>2];d=0;f=0;if(i>>>0>=4){g=i&-4;h=0;while(1){e=j+P(f,20)|0;J[e+4>> -2]=J[e+4>>2]|2;e=j+P(f|1,20)|0;J[e+4>>2]=J[e+4>>2]|2;e=j+P(f|2,20)|0;J[e+4>>2]=J[e+4>>2]|2;e=j+P(f|3,20)|0;J[e+4>>2]=J[e+4>>2]|2;f=f+4|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=i&3;if(!g)break _a;while(1){e=j+P(f,20)|0;J[e+4>>2]=J[e+4>>2]|2;f=f+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}J[m+84>>2]=0;d=K[k+4|0]|K[k+5|0]<<8|(K[k+6|0]<<16|K[k+7|0]<<24);if(!d)break Za;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);g=d>>>0<=1?1:d;d=k+8|0;f=0;while(1){J[m+76>>2]=M[l+96>>2]<=f>>>0?169776:J[l+100>>2]+P(f,12)| -0;J[195395]=0;$(595,d|0,m|0);e=J[195395];J[195395]=0;if((e|0)==1)break Wa;if(!K[J[m+16>>2]+60|0])break Za;e=d;d=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);d=e+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;f=f+1|0;if((g|0)!=(f|0))continue;break}}J[195395]=0;ha(594,c|0,b|0,105392,0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Wa}d=J[m+56>>2];J[195395]=0;ea(583,d|0);d=J[195395];J[195395]=0;if((d|0)!=1)break Ta;break Pa}f=Z()|0;break Sa}f=Z()|0;a=J[m+56>>2];J[195395]=0;ea(583,a|0);a=J[195395];J[195395]= -0;if((a|0)!=1)break Sa;break Pa}f=Z()|0;break Sa}$a:{ab:{bb:{e=J[b+24>>2];f=J[e+164>>2];cb:{if(f)break cb;while(1){d=J[e+48>>2];if(!d){J[195395]=0;f=169776;d=J[195395];J[195395]=0;if((d|0)!=1)break cb;f=Z()|0;break Sa}J[195395]=0;f=_(596,d|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break bb;if(!f){J[195395]=0;f=169776;d=J[195395];J[195395]=0;if((d|0)==1)break bb}d=J[e+164>>2];J[e+164>>2]=d?d:f;if(!d)break cb;J[195395]=0;ea(597,f|0);d=J[195395];J[195395]=0;if((d|0)==1)break bb;f=J[e+164>>2];if(!f)continue; -break}}k=M[f+16>>2]<8?169776:J[f+12>>2];if(!(K[k|0]|K[k+1|0]<<8))break Ta;J[195395]=0;m=ka(593,l+4|0,w|0,b|0,c|0,f|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break $a;J[195395]=0;e=ha(594,c|0,b|0,105638,0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ab;if(e){d=J[m+16>>2];db:{if(!K[d+60|0])break db;eb:{if(!(K[d+16|0]&64))break eb;J[d+144>>2]=J[d+144>>2]|32;i=J[d+68>>2];if(!i)break eb;j=J[d+80>>2];d=0;f=0;if(i>>>0>=4){g=i&-4;h=0;while(1){e=j+P(f,20)|0;J[e+4>>2]=J[e+4>>2]|2;e=j+P(f|1,20)|0;J[e+4>>2]=J[e+ -4>>2]|2;e=j+P(f|2,20)|0;J[e+4>>2]=J[e+4>>2]|2;e=j+P(f|3,20)|0;J[e+4>>2]=J[e+4>>2]|2;f=f+4|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=i&3;if(!g)break eb;while(1){e=j+P(f,20)|0;J[e+4>>2]=J[e+4>>2]|2;f=f+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}J[m+84>>2]=0;d=K[k+4|0]|K[k+5|0]<<8|(K[k+6|0]<<16|K[k+7|0]<<24);if(!d)break db;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);g=d>>>0<=1?1:d;d=k+8|0;f=0;while(1){J[m+76>>2]=M[l+96>>2]<=f>>>0?169776:J[l+100>>2]+P(f,12)|0;J[195395]=0;$(598,d|0,m|0);e=J[195395];J[195395]= -0;if((e|0)==1)break ab;if(!K[J[m+16>>2]+60|0])break db;e=d;d=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);d=e+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;f=f+1|0;if((g|0)!=(f|0))continue;break}}J[195395]=0;ha(594,c|0,b|0,105809,0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ab}d=J[m+56>>2];J[195395]=0;ea(583,d|0);d=J[195395];J[195395]=0;if((d|0)!=1)break Ta;break Pa}f=Z()|0;break Sa}f=Z()|0;a=J[m+56>>2];J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Sa;break Pa}f=Z()|0;break Sa}if(J[l+ -92>>2]){e=J[l+96>>2];if(e){d=J[l+100>>2]+P(e,12)|0;while(1){d=d-12|0;if(J[d>>2]){J[d+4>>2]=0;Kb(J[d+8>>2])}J[d+4>>2]=0;J[d>>2]=0;J[d+8>>2]=0;e=e-1|0;if(e)continue;break}}J[l+96>>2]=0;Kb(J[l+100>>2])}if(J[l+140>>2]){J[l+144>>2]=0;Kb(J[l+148>>2])}J[l+148>>2]=0;J[l+140>>2]=0;J[l+144>>2]=0;if(J[l+128>>2]){J[l+132>>2]=0;Kb(J[l+136>>2])}xb=l+160|0;break Oa}f=Z()|0}if(J[l+92>>2]){a=J[l+96>>2];if(a){d=J[l+100>>2]+P(a,12)|0;while(1){d=d-12|0;if(J[d>>2]){J[d+4>>2]=0;Kb(J[d+8>>2])}J[d+4>>2]=0;J[d>>2]=0;J[d+ -8>>2]=0;a=a-1|0;if(a)continue;break}}J[l+96>>2]=0;Kb(J[l+100>>2])}J[l+100>>2]=0;J[l+92>>2]=0;J[l+96>>2]=0;break Qa}f=Z()|0}if(J[l+140>>2]){J[l+144>>2]=0;Kb(J[l+148>>2])}J[l+140>>2]=0;J[l+144>>2]=0;J[l+148>>2]=0;if(J[l+128>>2]){J[l+132>>2]=0;Kb(J[l+136>>2])}J[l+128>>2]=0;J[l+132>>2]=0;J[l+136>>2]=0;ba(f|0);B()}break Na}v=0;y=0;m=xb-48|0;xb=m;e=J[b+24>>2];g=e+148|0;while(1){fb:{d=J[g>>2];if(d)break fb;if(!J[e+48>>2]){d=169776;break fb}d=oj(g);if(!d)d=169776;f=J[g>>2];J[g>>2]=f?f:d;if(!f)break fb;lg(d); -continue}break}J[m+44>>2]=d;gb:{if(J[c+156>>2]){d=J[a+84>>2];J[m+28>>2]=d&255;J[m+16>>2]=d>>>24;J[m+24>>2]=d>>>8&255;J[m+20>>2]=d>>>16&255;if(!nc(c,b,105766,m+16|0))break gb}n=xb-304|0;xb=n;l=Cf(n+88|0,0,b,c,J[J[m+44>>2]>>2]);J[l+140>>2]=792;hb:{ib:{jb:{e=J[a+140>>2];if(!e)break jb;while(1){g=e>>>0<=y>>>0?169776:J[a+144>>2]+(y<<3)|0;if(M[g>>2]>v>>>0)while(1){j=M[a+116>>2]<=v>>>0?169776:J[a+120>>2]+P(v,12)|0;k=L[j>>1];h=J[m+44>>2];kb:{if(k>>>0>=M[h+4>>2])break kb;e=k<<2;f=J[e+J[h+8>>2]>>2];lb:{if(f)break lb; -while(1){f=169776;d=J[h>>2];d=d?d:169776;i=M[d+16>>2]<4?169776:J[d+12>>2];mb:{if((K[i|0]|K[i+1|0]<<8)!=256)break mb;o=169776;d=K[i+8|0]|K[i+9|0]<<8;if(d)o=i+((d<<8|d>>>8)&65535)|0;d=K[o|0]|K[o+1|0]<<8;if(k>>>0>=((d<<8|d>>>8)&65535)>>>0)break mb;d=(k<<1)+o|0;d=K[d+2|0]|K[d+3|0]<<8;if(!d)break mb;f=((d<<8|d>>>8)&65535)+o|0}J[195395]=0;f=_(793,f|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ib;if(!f)break kb;d=e+J[h+8>>2]|0;i=J[d>>2];J[d>>2]=i?i:f;if(!i)break lb;Kb(f);f=J[e+J[h+8>>2]>>2];if(!f)continue; -break}}if(J[c+156>>2]){d=J[j+8>>2];J[n+80>>2]=d&255;J[n+64>>2]=k;J[195395]=0;J[n+68>>2]=d>>>24;J[n+72>>2]=d>>>16&255;J[n+76>>2]=d>>>8&255;e=ha(594,c|0,b|0,130223,n- -64|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ib;if(!e)break kb}nb:{if(!(!(J[l+168>>2]&J[f+8>>2])|(!(J[l+160>>2]&J[f>>2])|!(J[l+164>>2]&J[f+4>>2])))){J[l+180>>2]=k;d=J[j+4>>2];J[l+208>>2]=-1;J[l+212>>2]=0;J[l+176>>2]=d;H[l+194|0]=K[j+2|0]>>>1&1;H[l+193|0]=H[j+2|0]&1;H[l+196|0]=K[j+2|0]>>>2&1;H[l+195|0]=K[j+2|0]>>>3&1;q=169776;d=J[J[m+ -44>>2]>>2];d=d?d:169776;e=M[d+16>>2]<4?169776:J[d+12>>2];ob:{if((K[e|0]|K[e+1|0]<<8)!=256)break ob;o=169776;d=K[e+8|0]|K[e+9|0]<<8;if(d)o=e+((d<<8|d>>>8)&65535)|0;d=K[o|0]|K[o+1|0]<<8;if(k>>>0>=((d<<8|d>>>8)&65535)>>>0)break ob;d=(k<<1)+o|0;d=K[d+2|0]|K[d+3|0]<<8;if(!d)break ob;q=((d<<8|d>>>8)&65535)+o|0}J[195395]=0;fa(794,l|0,q|0,f|0);d=J[195395];J[195395]=0;if((d|0)!=1)break nb;break ib}if(!J[c+156>>2])break kb;d=J[j+8>>2];J[n+48>>2]=d&255;J[n+32>>2]=k;J[195395]=0;J[n+36>>2]=d>>>24;J[n+40>>2]=d>>> -16&255;J[n+44>>2]=d>>>8&255;ha(594,c|0,b|0,130266,n+32|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ib}if(!J[c+156>>2])break kb;d=J[j+8>>2];J[n+16>>2]=d&255;J[n>>2]=k;J[195395]=0;J[n+4>>2]=d>>>24;J[n+8>>2]=d>>>16&255;J[n+12>>2]=d>>>8&255;ha(594,c|0,b|0,130336,n|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ib}v=v+1|0;if(v>>>0>2])continue;break}pb:{d=J[g+4>>2];qb:{if(!d)break qb;J[195395]=0;e=aa(d|0,w|0,b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break pb;if(!e)break qb;j=J[c+68>>2];rb:{if(!j){d= -0;f=0;q=0;break rb}f=0;e=J[c+80>>2];d=e;q=0;i=j>>>0<4;if(!i){g=j&-4;r=0;while(1){q=1<<(J[d>>2]>>>4)|q|1<<(J[d+20>>2]>>>4)|1<<(J[d+40>>2]>>>4)|1<<(J[d+60>>2]>>>4);d=d+80|0;r=r+4|0;if((g|0)!=(r|0))continue;break}}h=j&3;if(h)while(1){q=1<<(J[d>>2]>>>4)|q;d=d+20|0;f=f+1|0;if((h|0)!=(f|0))continue;break}r=0;d=e;f=0;if(!i){g=j&-4;o=0;while(1){f=1<>2]|f|1<>2]|1<>2]|1<>2];d=d+80|0;o=o+4|0;if((g|0)!=(o|0))continue;break}}if(h)while(1){f=1<>2]|f;d=d+20|0;r=r+1|0;if((h|0)!= -(r|0))continue;break}r=0;sb:{if(i){d=0;break sb}g=j&-4;d=0;o=0;while(1){d=1<<(J[e>>2]>>>9)|d|1<<(J[e+20>>2]>>>9)|1<<(J[e+40>>2]>>>9)|1<<(J[e+60>>2]>>>9);e=e+80|0;o=o+4|0;if((g|0)!=(o|0))continue;break}}if(!h)break rb;while(1){d=1<<(J[e>>2]>>>9)|d;e=e+20|0;r=r+1|0;if((h|0)!=(r|0))continue;break}}J[l+168>>2]=d;J[l+164>>2]=f;J[l+160>>2]=q}e=J[a+140>>2];y=y+1|0;if(e>>>0>y>>>0)continue;break jb}break}break ib}Kb(J[l+156>>2]);tb:{d=J[l+128>>2];if(d){J[195395]=0;ea(583,d|0);d=J[195395];J[195395]=0;if((d| -0)==1)break tb}xb=n+304|0;break hb}break Na}a=Z()|0;wi(l);break Ma}if(!J[c+156>>2])break gb;d=J[a+84>>2];J[m+12>>2]=d&255;J[m>>2]=d>>>24;J[m+8>>2]=d>>>8&255;J[m+4>>2]=d>>>16&255;nc(c,b,106025,m)}xb=m+48|0}if((L[a+188>>1]&8704)==8704)Uu(c);ou(c);f=J[c+88>>2];d=J[c+80>>2];e=J[c+68>>2];ub:{if((J[c+40>>2]&-2)==4){g=J[b+116>>2];j=J[g+48>>2];h=0;i=J[b+120>>2];g=J[g+12>>2];if(g)g=J[g+28>>2];else g=0;Ab[j|0](b,i,e,d,20,f,20,g);if(!am(b,9)|!e)break ub;while(1){g=P(h,20);uj(b,J[g+d>>2],t+8|0,t+28|0);g=f+g| -0;J[g+8>>2]=J[g+8>>2]-J[t+8>>2];J[g+12>>2]=J[g+12>>2]-J[t+28>>2];h=h+1|0;if((e|0)!=(h|0))continue;break}break ub}g=J[b+116>>2];k=J[g+52>>2];h=0;i=J[b+120>>2];j=f+4|0;g=J[g+12>>2];if(g)g=J[g+32>>2];else g=0;Ab[k|0](b,i,e,d,20,j,20,g);if(!e)break ub;while(1){g=P(h,20);vu(b,J[g+d>>2],t+8|0,t+28|0);g=f+g|0;J[g+8>>2]=J[g+8>>2]-J[t+8>>2];J[g+12>>2]=J[g+12>>2]-J[t+28>>2];h=h+1|0;if((e|0)!=(h|0))continue;break}}if(K[c+144|0]&4){h=0;o=xb-16|0;xb=o;j=J[c+68>>2];if(j){n=J[c+88>>2];i=J[c+80>>2];m=(J[c+40>>2]& --2)!=4;while(1){l=P(h,20);e=l+i|0;vb:{if((L[e+16>>1]&31)!=29|K[e+12|0]&32)break vb;d=J[c+28>>2];wb:{if(!d|(d|0)!=J[e>>2])break wb;if(!m){J[l+n>>2]=J[b+28>>2]/4;break wb}J[(l+n|0)+4>>2]=J[b+32>>2]/-4}xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{d=L[e+16>>1];e=(d&31)==29?d>>>8|0:0;switch(e-1|0){case 20:break zb;case 19:break Ab;case 18:break Bb;case 16:break Cb;case 0:case 1:case 2:case 3:case 4:case 5:case 15:break Db;default:break vb}}d=e>>>1|0;if(!m){J[l+n>>2]=(d+J[b+28>>2]|0)/(e|0);break vb}J[(l+n|0)+4>>2]=0-((d+ -J[b+32>>2]|0)/(e|0)|0);break vb}if(!m){d=J[b+28>>2];e=d>>31<<2|d>>>30;E=l+n|0,F=Lpa(d<<2,e,18,0),J[E>>2]=F;break vb}d=0-J[b+32>>2]|0;e=d>>31<<2|d>>>30;E=l+n|0,F=Lpa(d<<2,e,18,0),J[E+4>>2]=F;break vb}J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(!(Ab[g|0](b,e,48,f,d)|0))break yb;break xb}J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(!(Ab[g|0](b,e,46,f,d)|0)){J[o+12>>2]=0;d=J[b+116>> -2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(!(Ab[g|0](b,e,44,f,d)|0))break vb}e=J[b+120>>2];f=J[b+116>>2];k=J[f+12>>2];d=J[o+12>>2];if(!m){g=J[f+40>>2];E=l+n|0,F=Ab[g|0](b,e,d,k?J[k+20>>2]:0)|0,J[E>>2]=F;break vb}g=J[f+44>>2];E=l+n|0,F=Ab[g|0](b,e,d,k?J[k+24>>2]:0)|0,J[E+4>>2]=F;break vb}if(!m){d=l+n|0;J[d>>2]=J[d>>2]/2;break vb}d=l+n|0;J[d+4>>2]=J[d+4>>2]/2;break vb}J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d= -0;if(Ab[g|0](b,e,49,f,d)|0)break xb;J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(Ab[g|0](b,e,50,f,d)|0)break xb;J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(Ab[g|0](b,e,51,f,d)|0)break xb;J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(Ab[g|0](b,e,52,f,d)|0)break xb;J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+ -12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(Ab[g|0](b,e,53,f,d)|0)break xb;J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(Ab[g|0](b,e,54,f,d)|0)break xb;J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(Ab[g|0](b,e,55,f,d)|0)break xb;J[o+12>>2]=0;d=J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(Ab[g|0](b,e,56,f,d)|0)break xb;J[o+12>>2]=0;d= -J[b+116>>2];g=J[d+28>>2];e=J[b+120>>2];f=o+12|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(!(Ab[g|0](b,e,57,f,d)|0))break vb}e=J[b+120>>2];f=J[b+116>>2];k=J[f+12>>2];d=J[o+12>>2];if(!m){g=J[f+40>>2];E=l+n|0,F=Ab[g|0](b,e,d,k?J[k+20>>2]:0)|0,J[E>>2]=F;break vb}g=J[f+44>>2];E=l+n|0,F=Ab[g|0](b,e,d,k?J[k+24>>2]:0)|0,J[E+4>>2]=F}h=h+1|0;if((j|0)!=(h|0))continue;break}}xb=o+16|0}h=0;q=0;q=H[a+189|0]&1?(J[c+40>>2]&-3)==4:q;n=J[c+88>>2];l=J[c+80>>2];x=J[c+68>>2];if(!(!am(b,9)|!x))while(1){d=P(h,20);uj(b, -J[d+l>>2],t+8|0,t+28|0);d=d+n|0;J[d+8>>2]=J[d+8>>2]+J[t+8>>2];J[d+12>>2]=J[d+12>>2]+J[t+28>>2];h=h+1|0;if((x|0)!=(h|0))continue;break}d=0;f=0;i=0;h=J[c+68>>2];Eb:{if(!h)break Eb;if(h>>>0>=4){g=h&-4;while(1){e=P(d,20);H[(e+J[c+88>>2]|0)+18|0]=0;I[(e+J[c+88>>2]|0)+16>>1]=0;e=P(d|1,20);H[(e+J[c+88>>2]|0)+18|0]=0;I[(e+J[c+88>>2]|0)+16>>1]=0;e=P(d|2,20);H[(e+J[c+88>>2]|0)+18|0]=0;I[(e+J[c+88>>2]|0)+16>>1]=0;e=P(d|3,20);H[(e+J[c+88>>2]|0)+18|0]=0;I[(e+J[c+88>>2]|0)+16>>1]=0;d=d+4|0;f=f+4|0;if((g|0)!=(f| -0))continue;break}}f=h&3;if(!f)break Eb;while(1){e=P(d,20);H[(e+J[c+88>>2]|0)+18|0]=0;I[(e+J[c+88>>2]|0)+16>>1]=0;d=d+1|0;i=i+1|0;if((f|0)!=(i|0))continue;break}}Fb:{if(!(K[a+188|0]&32)|J[J[a+80>>2]+48>>2]!=1)break Fb;i=J[c+68>>2];if(!i)break Fb;g=J[c+80>>2];if(q){h=0;while(1){d=P(h,20);if(K[(d+g|0)+12|0]&8){f=d+J[c+88>>2]|0;e=J[f+4>>2];J[f+4>>2]=0;d=J[f>>2];J[f>>2]=0;J[f+8>>2]=J[f+8>>2]-d;J[f+12>>2]=J[f+12>>2]-e}h=h+1|0;if((i|0)!=(h|0))continue;break}break Fb}f=0;if((i|0)!=1){e=i&-2;h=0;while(1){d= -P(f,20);if(K[(d+g|0)+12|0]&8){d=d+J[c+88>>2]|0;J[d>>2]=0;J[d+4>>2]=0}d=P(f|1,20);if(K[(d+g|0)+12|0]&8){d=d+J[c+88>>2]|0;J[d>>2]=0;J[d+4>>2]=0}f=f+2|0;h=h+2|0;if((e|0)!=(h|0))continue;break}}if(!(i&1))break Fb;d=P(f,20);if(!(K[(d+g|0)+12|0]&8))break Fb;d=d+J[c+88>>2]|0;J[d>>2]=0;J[d+4>>2]=0}i=b;h=0;A=0;o=0;d=L[w+128>>1];Gb:{if(d&512){u=xb-48|0;xb=u;d=J[b+24>>2];f=d+152|0;while(1){Hb:{b=J[f>>2];if(b)break Hb;if(!J[d+48>>2]){b=169776;break Hb}b=Fo(f);if(!b)b=169776;e=J[f>>2];J[f>>2]=e?e:b;if(!e)break Hb; -lg(b);continue}break}J[u+44>>2]=b;Ib:{if(J[c+156>>2]){b=J[w+28>>2];J[u+28>>2]=b&255;J[u+16>>2]=b>>>24;J[u+24>>2]=b>>>8&255;J[u+20>>2]=b>>>16&255;if(!nc(c,i,106164,u+16|0))break Ib}p=xb-304|0;xb=p;s=Cf(p+88|0,1,i,c,J[J[u+44>>2]>>2]);J[s+140>>2]=795;Jb:{Kb:{Lb:{d=J[w+92>>2];if(!d)break Lb;while(1){m=d>>>0<=o>>>0?169776:J[w+96>>2]+(o<<3)|0;if(M[m>>2]>A>>>0)while(1){v=M[w+68>>2]<=A>>>0?169776:J[w+72>>2]+P(A,12)|0;z=L[v>>1];g=J[u+44>>2];Mb:{if(z>>>0>=M[g+4>>2])break Mb;d=z<<2;f=J[d+J[g+8>>2]>>2];Nb:{if(f)break Nb; -while(1){f=169776;b=J[g>>2];b=b?b:169776;e=M[b+16>>2]<4?169776:J[b+12>>2];Ob:{if((K[e|0]|K[e+1|0]<<8)!=256)break Ob;y=169776;b=K[e+8|0]|K[e+9|0]<<8;if(b)y=e+((b<<8|b>>>8)&65535)|0;b=K[y|0]|K[y+1|0]<<8;if(z>>>0>=((b<<8|b>>>8)&65535)>>>0)break Ob;b=(z<<1)+y|0;b=K[b+2|0]|K[b+3|0]<<8;if(!b)break Ob;f=((b<<8|b>>>8)&65535)+y|0}J[195395]=0;f=_(796,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Kb;if(!f)break Mb;b=d+J[g+8>>2]|0;e=J[b>>2];J[b>>2]=e?e:f;if(!e)break Nb;Kb(f);f=J[d+J[g+8>>2]>>2];if(!f)continue; -break}}if(J[c+156>>2]){b=J[v+8>>2];J[p+80>>2]=b&255;J[p+64>>2]=z;J[195395]=0;J[p+68>>2]=b>>>24;J[p+72>>2]=b>>>16&255;J[p+76>>2]=b>>>8&255;d=ha(594,c|0,i|0,130223,p- -64|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Kb;if(!d)break Mb}Pb:{if(!(!(J[s+168>>2]&J[f+8>>2])|(!(J[s+160>>2]&J[f>>2])|!(J[s+164>>2]&J[f+4>>2])))){J[s+180>>2]=z;b=J[v+4>>2];J[s+208>>2]=-1;J[s+212>>2]=0;J[s+176>>2]=b;H[s+194|0]=K[v+2|0]>>>1&1;H[s+193|0]=H[v+2|0]&1;H[s+196|0]=K[v+2|0]>>>2&1;H[s+195|0]=K[v+2|0]>>>3&1;r=169776;b=J[J[u+ -44>>2]>>2];b=b?b:169776;e=M[b+16>>2]<4?169776:J[b+12>>2];Qb:{if((K[e|0]|K[e+1|0]<<8)!=256)break Qb;b=169776;d=K[e+8|0]|K[e+9|0]<<8;if(d)b=e+((d<<8|d>>>8)&65535)|0;d=K[b|0]|K[b+1|0]<<8;if(z>>>0>=((d<<8|d>>>8)&65535)>>>0)break Qb;d=(z<<1)+b|0;d=K[d+2|0]|K[d+3|0]<<8;if(!d)break Qb;r=((d<<8|d>>>8)&65535)+b|0}g=J[s+88>>2];j=J[g+68>>2];if(!j)break Pb;e=J[s+176>>2];if(!e)break Pb;b=K[r+4|0]|K[r+5|0]<<8;k=(b<<8|b>>>8)&65535;b=K[r+2|0]|K[r+3|0]<<8;d=b<<8|b>>>8;b=d&65535;if(d&16){d=b;b=(k<<1)+r|0;b=K[b+6|0]| -K[b+7|0]<<8;b=d|(b<<24|b<<8&16711680)}J[s+36>>2]=j;J[s+184>>2]=b;J[s+32>>2]=0;J[s+24>>2]=0;J[s+28>>2]=0;J[s+12>>2]=b;J[s+16>>2]=e;J[s+72>>2]=j;H[s+23|0]=0;J[s+68>>2]=0;J[s+60>>2]=0;J[s+64>>2]=0;H[s+21|0]=K[s+194|0];j=J[s+76>>2];e=(j|0)==1;H[s+20|0]=e;d=!j&K[s+195|0]!=0;H[s+22|0]=d;J[s+8>>2]=s;J[s+44>>2]=s;J[s+48>>2]=b;H[s+57|0]=1;J[s+52>>2]=-1;H[s+59|0]=0;H[s+58|0]=d&(j|0)!=1;H[s+56|0]=e?1:K[s+193|0];J[g+64>>2]=0;J[195395]=0;aa(797,s|0,f|0,k|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Pb;break Kb}if(!J[c+ -156>>2])break Mb;b=J[v+8>>2];J[p+48>>2]=b&255;J[p+32>>2]=z;J[195395]=0;J[p+36>>2]=b>>>24;J[p+40>>2]=b>>>16&255;J[p+44>>2]=b>>>8&255;ha(594,c|0,i|0,130266,p+32|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Kb}if(!J[c+156>>2])break Mb;b=J[v+8>>2];J[p+16>>2]=b&255;J[p>>2]=z;J[195395]=0;J[p+4>>2]=b>>>24;J[p+8>>2]=b>>>16&255;J[p+12>>2]=b>>>8&255;ha(594,c|0,i|0,130336,p|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Kb}A=A+1|0;if(A>>>0>2])continue;break}Rb:{b=J[m+4>>2];Sb:{if(!b)break Sb;J[195395]= -0;d=aa(b|0,w|0,i|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Rb;if(!d)break Sb;k=J[c+68>>2];Tb:{if(!k){b=0;f=0;r=0;break Tb}f=0;d=J[c+80>>2];b=d;r=0;g=k>>>0<4;if(!g){e=k&-4;v=0;while(1){r=1<<(J[b>>2]>>>4)|r|1<<(J[b+20>>2]>>>4)|1<<(J[b+40>>2]>>>4)|1<<(J[b+60>>2]>>>4);b=b+80|0;v=v+4|0;if((e|0)!=(v|0))continue;break}}j=k&3;if(j)while(1){r=1<<(J[b>>2]>>>4)|r;b=b+20|0;f=f+1|0;if((j|0)!=(f|0))continue;break}v=0;b=d;f=0;if(!g){e=k&-4;y=0;while(1){f=1<>2]|f|1<>2]|1<>2]|1<>2];b=b+80|0;y=y+4|0;if((e|0)!=(y|0))continue;break}}if(j)while(1){f=1<>2]|f;b=b+20|0;v=v+1|0;if((j|0)!=(v|0))continue;break}v=0;Ub:{if(g){b=0;break Ub}e=k&-4;b=0;y=0;while(1){b=1<<(J[d>>2]>>>9)|b|1<<(J[d+20>>2]>>>9)|1<<(J[d+40>>2]>>>9)|1<<(J[d+60>>2]>>>9);d=d+80|0;y=y+4|0;if((e|0)!=(y|0))continue;break}}if(!j)break Tb;while(1){b=1<<(J[d>>2]>>>9)|b;d=d+20|0;v=v+1|0;if((j|0)!=(v|0))continue;break}}J[s+168>>2]=b;J[s+164>>2]=f;J[s+160>>2]=r}d=J[w+92>>2];o=o+1|0;if(d>>>0>o>>>0)continue;break Lb}break}break Kb}Kb(J[s+ -156>>2]);Vb:{b=J[s+128>>2];if(b){J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break Vb}xb=p+304|0;break Jb}break Na}a=Z()|0;wi(s);break Ma}if(!J[c+156>>2])break Ib;b=J[w+28>>2];J[u+12>>2]=b&255;J[u>>2]=b>>>24;J[u+8>>2]=b>>>8&255;J[u+4>>2]=b>>>16&255;nc(c,i,106282,u)}xb=u+48|0;break Gb}if(!(d&4096))break Gb;g=xb-96|0;xb=g;e=J[i+24>>2];b=J[e+168>>2];Wb:{if(b)break Wb;while(1){b=J[e+48>>2];if(!b){b=169776;break Wb}b=Tu(b);if(!b)b=169776;d=J[e+168>>2];J[e+168>>2]=d?d:b;if(!d)break Wb;wc(b); -b=J[e+168>>2];if(!b)continue;break}}f=J[b+12>>2];e=J[b+16>>2];k=mm(g+8|0,w,i,c,b);J[195395]=0;d=ha(594,c|0,i|0,106062,0)|0;b=J[195395];J[195395]=0;Xb:{Yb:{if((b|0)==1)break Yb;Zb:{if(d){j=J[i+24>>2];b=J[j+172>>2];_b:{if(b)break _b;while(1){b=J[j+48>>2];if(!b){J[195395]=0;b=169776;d=J[195395];J[195395]=0;if((d|0)!=1)break _b;break Yb}J[195395]=0;b=_(603,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Zb;if(!b){J[195395]=0;b=169776;d=J[195395];J[195395]=0;if((d|0)==1)break Zb}d=J[j+172>>2];J[j+172>> -2]=d?d:b;if(!d)break _b;J[195395]=0;ea(604,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break Zb;b=J[j+172>>2];if(!b)continue;break}}J[k+68>>2]=M[b+16>>2]<12?169776:J[b+12>>2];J[195395]=0;ca(605,(e>>>0<8?169776:f)|0,k|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Yb;J[195395]=0;ha(594,c|0,i|0,106213,0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Yb}b=J[k+56>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)!=1){xb=g+96|0;break Xb}break Na}}a=Z()|0;b=J[k+56>>2];J[195395]=0;ea(583,b|0);b=J[195395]; -J[195395]=0;if((b|0)!=1)break Ma;break Na}}b=L[w+128>>1];$b:{if(b&1024){g=xb-96|0;xb=g;d=J[i+24>>2];f=d+140|0;while(1){ac:{b=J[f>>2];if(b)break ac;if(!J[d+48>>2]){b=169776;break ac}b=Go(f);if(!b)b=169776;e=J[f>>2];J[f>>2]=e?e:b;if(!e)break ac;wc(b);continue}break}f=J[b+12>>2];e=J[b+16>>2];h=mm(g+8|0,w,i,c,b);J[195395]=0;d=ha(594,c|0,i|0,105219,0)|0;b=J[195395];J[195395]=0;bc:{if((b|0)==1)break bc;if(d){cc:{dc:{ec:{d=e>>>0<4?169776:f;b=K[d|0]|K[d+1|0]<<8;switch((b<<8|b>>>8)&65535){case 1:break dc; -case 0:break ec;default:break cc}}J[195395]=0;ca(788,d|0,h|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break cc;break bc}J[195395]=0;ca(789,d|0,h|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bc}J[195395]=0;ha(594,c|0,i|0,105478,0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break bc}Wu(h);xb=g+96|0;break $b}a=Z()|0;Wu(h);break Ma}if(!(b&2048))break $b;k=xb-48|0;xb=k;fc:{gc:{if((J[c+40>>2]&-2)==4){if(am(i,11))break gc;break fc}if(!am(i,12))break fc}if(!nc(c,i,105684,0))break fc;b=J[c+40>>2];hc:{if((b&-3)== -5){f=J[c+68>>2];if(f>>>0>=2){e=J[c+80>>2];d=f-1|0;while(1){j=e+P(d,20)|0;J[k+40>>2]=J[j+16>>2];b=J[j+12>>2];J[k+32>>2]=J[j+8>>2];J[k+36>>2]=b;b=J[j+4>>2];J[k+24>>2]=J[j>>2];J[k+28>>2]=b;g=e+P(h,20)|0;J[j+16>>2]=J[g+16>>2];b=J[g+12>>2];J[j+8>>2]=J[g+8>>2];J[j+12>>2]=b;b=J[g+4>>2];J[j>>2]=J[g>>2];J[j+4>>2]=b;J[g+16>>2]=J[k+40>>2];b=J[k+36>>2];J[g+8>>2]=J[k+32>>2];J[g+12>>2]=b;b=J[k+28>>2];J[g>>2]=J[k+24>>2];J[g+4>>2]=b;d=d-1|0;h=h+1|0;if(d>>>0>h>>>0)continue;break}}ic:{if(!K[c+63|0])break ic;b=J[c+ -68>>2];b=b>>>0>>0?b:f;if(b>>>0<2)break ic;e=J[c+88>>2];d=b-1|0;h=0;while(1){g=e+P(d,20)|0;J[k+40>>2]=J[g+16>>2];b=J[g+12>>2];J[k+32>>2]=J[g+8>>2];J[k+36>>2]=b;b=J[g+4>>2];J[k+24>>2]=J[g>>2];J[k+28>>2]=b;f=e+P(h,20)|0;J[g+16>>2]=J[f+16>>2];b=J[f+12>>2];J[g+8>>2]=J[f+8>>2];J[g+12>>2]=b;b=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=b;J[f+16>>2]=J[k+40>>2];b=J[k+36>>2];J[f+8>>2]=J[k+32>>2];J[f+12>>2]=b;b=J[k+28>>2];J[f>>2]=J[k+24>>2];J[f+4>>2]=b;d=d-1|0;h=h+1|0;if(d>>>0>h>>>0)continue;break}}J[k+16>>2]=i; -J[k+20>>2]=J[c+40>>2];d=0;H[k+12|0]=0;J[k+8>>2]=k+16;nG(k+8|0,i,c,J[w+120>>2]);f=J[c+68>>2];if(f>>>0>=2){e=J[c+80>>2];h=f-1|0;while(1){j=e+P(h,20)|0;J[k+40>>2]=J[j+16>>2];b=J[j+12>>2];J[k+32>>2]=J[j+8>>2];J[k+36>>2]=b;b=J[j+4>>2];J[k+24>>2]=J[j>>2];J[k+28>>2]=b;g=e+P(d,20)|0;J[j+16>>2]=J[g+16>>2];b=J[g+12>>2];J[j+8>>2]=J[g+8>>2];J[j+12>>2]=b;b=J[g+4>>2];J[j>>2]=J[g>>2];J[j+4>>2]=b;J[g+16>>2]=J[k+40>>2];b=J[k+36>>2];J[g+8>>2]=J[k+32>>2];J[g+12>>2]=b;b=J[k+28>>2];J[g>>2]=J[k+24>>2];J[g+4>>2]=b;d=d+ -1|0;h=h-1|0;if(d>>>0>>0)continue;break}}if(!K[c+63|0])break hc;b=J[c+68>>2];b=b>>>0>>0?b:f;if(b>>>0<2)break hc;e=J[c+88>>2];d=b-1|0;h=0;while(1){g=e+P(d,20)|0;J[k+40>>2]=J[g+16>>2];b=J[g+12>>2];J[k+32>>2]=J[g+8>>2];J[k+36>>2]=b;b=J[g+4>>2];J[k+24>>2]=J[g>>2];J[k+28>>2]=b;f=e+P(h,20)|0;J[g+16>>2]=J[f+16>>2];b=J[f+12>>2];J[g+8>>2]=J[f+8>>2];J[g+12>>2]=b;b=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=b;J[f+16>>2]=J[k+40>>2];b=J[k+36>>2];J[f+8>>2]=J[k+32>>2];J[f+12>>2]=b;b=J[k+28>>2];J[f>>2]=J[k+24>>2]; -J[f+4>>2]=b;d=d-1|0;h=h+1|0;if(d>>>0>h>>>0)continue;break}break hc}J[k+20>>2]=b;J[k+16>>2]=i;H[k+12|0]=0;J[k+8>>2]=k+16;nG(k+8|0,i,c,J[w+120>>2])}nc(c,i,105893,0)}xb=k+48|0}if(K[w+129|0]&64)jc:{e=xb-96|0;xb=e;f=J[i+24>>2];b=J[f+176>>2];kc:{if(b)break kc;while(1){b=J[f+48>>2];if(!b){b=169776;break kc}b=Su(b);if(!b)b=169776;d=J[f+176>>2];J[f+176>>2]=d?d:b;if(!d)break kc;wc(b);b=J[f+176>>2];if(!b)continue;break}}d=J[b+12>>2];b=J[b+16>>2];f=mm(e+8|0,w,i,c,169776);J[195395]=0;Ru(b>>>0<12?169776:d,f);b= -J[195395];J[195395]=0;lc:{if((b|0)!=1){b=J[f+56>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break lc;xb=e+96|0;break jc}a=Z()|0;b=J[f+56>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break lc;break Ma}break Na}mc:{if(!(K[a+188|0]&32)|J[J[a+80>>2]+48>>2]!=2)break mc;g=J[c+68>>2];if(!g)break mc;e=J[c+80>>2];if(q){h=0;while(1){b=P(h,20);if(K[(b+e|0)+12|0]&8){f=b+J[c+88>>2]|0;d=J[f+4>>2];J[f+4>>2]=0;b=J[f>>2];J[f>>2]=0;J[f+8>>2]=J[f+8>>2]-b;J[f+12>>2]=J[f+12>>2]- -d}h=h+1|0;if((g|0)!=(h|0))continue;break}break mc}f=0;if((g|0)!=1){d=g&-2;h=0;while(1){b=P(f,20);if(K[(b+e|0)+12|0]&8){b=b+J[c+88>>2]|0;J[b>>2]=0;J[b+4>>2]=0}b=P(f|1,20);if(K[(b+e|0)+12|0]&8){b=b+J[c+88>>2]|0;J[b>>2]=0;J[b+4>>2]=0}f=f+2|0;h=h+2|0;if((d|0)!=(h|0))continue;break}}if(!(g&1))break mc;b=P(f,20);if(!(K[(b+e|0)+12|0]&8))break mc;b=b+J[c+88>>2]|0;J[b>>2]=0;J[b+4>>2]=0}nc:{if(!(K[c+144|0]&2)|K[c+16|0]&12)break nc;j=J[c+68>>2];if(!j)break nc;h=J[c+88>>2];g=J[c+80>>2];f=0;if((j|0)!=1){e=j&-2; -o=0;while(1){d=P(f,20);b=d+g|0;if(!(!(K[b+16|0]&32)|K[b+12|0]&16)){b=d+h|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0}d=P(f|1,20);b=d+g|0;if(!(!(K[b+16|0]&32)|K[b+12|0]&16)){b=d+h|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0}f=f+2|0;o=o+2|0;if((e|0)!=(o|0))continue;break}}if(!(j&1))break nc;d=P(f,20);b=d+g|0;if(!(K[b+16|0]&32)|K[b+12|0]&16)break nc;b=d+h|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0}if(K[a+189|0]&32){h=0;j=J[c+68>>2];oc:{if(!j)break oc;g=J[c+88>>2];f=J[c+80>>2];d=0;if((j| -0)!=1){e=j&-2;while(1){b=P(d,20);if(J[b+f>>2]==65535){b=b+g|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0}b=P(d|1,20);if(J[b+f>>2]==65535){b=b+g|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0}d=d+2|0;h=h+2|0;if((e|0)!=(h|0))continue;break}}if(!(j&1))break oc;b=P(d,20);if(J[b+f>>2]!=65535)break oc;b=b+g|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0}}h=xb-16|0;xb=h;g=iu(c,h+12|0);e=J[h+12>>2];if(!(!(K[c+144|0]&8)|!e)){b=J[c+40>>2];d=0;while(1){sH(g,e,d,b,64);d=d+1|0;e=J[h+12>>2];if(d>>>0>> -0)continue;break}}if(!(!e|N[i+56>>2]==Q(0))){d=0;while(1){b=g+P(d,20)|0;f=J[b+12>>2];if(f){D=Q(Q(V(Q(Q(N[i+60>>2]*Q(f|0))+Q(.5))))+Q(J[b+8>>2]));pc:{if(Q(R(D))>2]=e;e=J[h+12>>2]}d=d+1|0;if(e>>>0>d>>>0)continue;break}}xb=h+16|0;if(!(!am(i,9)|!x)){h=0;while(1){b=P(h,20);uj(i,J[b+l>>2],t+8|0,t+28|0);b=b+n|0;J[b+8>>2]=J[b+8>>2]-J[t+8>>2];J[b+12>>2]=J[b+12>>2]-J[t+28>>2];h=h+1|0;if((x|0)!=(h|0))continue;break}}if(K[a+188|0]&128){e=0;if(nc(c,i,105267,0)){d= -1;f=J[c+68>>2];if(f>>>0>1){b=J[c+80>>2];while(1){if(!(1<>1]&7168)){oG(w,i,c,e,d,q);e=d}d=d+1|0;if((f|0)!=(d|0))continue;break}}oG(w,i,c,e,f,q);nc(c,i,105498,0)}}if((J[c+40>>2]&-3)==5)Wg(c);H[c+140|0]=K[c+140|0]&248;if((L[a+188>>1]&8704)==8192)Uu(c);qc:{if(!(K[c+144|0]&2))break qc;d=J[c+16>>2];if(d&4)break qc;h=J[c+80>>2];j=J[c+68>>2];b=J[c+28>>2];J[t+8>>2]=b;rc:{if(d&8)break rc;if(!b){J[t+8>>2]=0;b=J[i+116>>2];f=J[b+28>>2];d=J[i+120>>2];e=t+8|0;b=J[b+12>>2];if(b)b=J[b+8>>2];else b= -0;if(!(Ab[f|0](i,d,32,e,b)|0))break rc}if(!j)break qc;f=0;if((j|0)!=1){b=j&-2;g=0;while(1){d=h+P(f,20)|0;if(!(!(K[d+16|0]&32)|K[d+12|0]&16))J[d>>2]=J[t+8>>2];d=h+P(f|1,20)|0;if(!(!(K[d+16|0]&32)|K[d+12|0]&16))J[d>>2]=J[t+8>>2];f=f+2|0;g=g+2|0;if((b|0)!=(g|0))continue;break}}if(!(j&1))break qc;b=h+P(f,20)|0;if(!(K[b+16|0]&32)|K[b+12|0]&16)break qc;J[b>>2]=J[t+8>>2];break qc}lu(c,893)}sc:{if(!J[J[a+80>>2]+20>>2])break sc;if(!nc(c,i,105824,0))break sc;Ab[J[J[a+80>>2]+20>>2]](w,c,i);nc(c,i,106079,0)}tc:{if(!(K[c+ -144|0]&32))break tc;d=J[c+68>>2];if(!d)break tc;a=J[c+16>>2];k=a&64;e=a&128;m=J[c+80>>2];b=d-1|0;f=0;while(1){uc:{if((b|0)==(f|0)){f=d;break uc}a=P(f,20);f=f+1|0;a=a+m|0;if(J[a+8>>2]==J[a+28>>2])continue}break}if(!e){i=0;while(1){a=f;vc:{if(f>>>0<=i>>>0)break vc;j=f-i|0;h=j&3;o=0;g=0;f=i;e=a+(f^-1)|0;if(e>>>0>=3){b=j&-4;r=0;while(1){l=g;g=m+P(f,20)|0;g=l|(J[g+4>>2]|J[g+24>>2]|J[g+44>>2]|J[g- -64>>2])&7;f=f+4|0;r=r+4|0;if((b|0)!=(r|0))continue;break}}if(h)while(1){g=J[(m+P(f,20)|0)+4>>2]&7|g;f=f+1| -0;o=o+1|0;if((h|0)!=(o|0))continue;break}f=k?g:g&-3;g=0;b=j&7;if(b)while(1){J[(m+P(i,20)|0)+4>>2]=f;i=i+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}if(e>>>0<7)break vc;while(1){b=m+P(i,20)|0;J[b+4>>2]=f;J[b+24>>2]=f;J[b+44>>2]=f;J[b- -64>>2]=f;J[b+84>>2]=f;J[b+104>>2]=f;J[b+124>>2]=f;J[b+144>>2]=f;i=i+8|0;if((a|0)!=(i|0))continue;break}}b=a+1|0;b=b>>>0>>0?d:b;g=b-1|0;f=a;while(1){wc:{if((f|0)==(g|0)){f=b;break wc}e=P(f,20);f=f+1|0;e=e+m|0;if(J[e+8>>2]==J[e+28>>2])continue}break}i=a;if(d>>>0>i>>> -0)continue;break}break tc}g=0;if(!k)while(1){i=0;a=f;e=f>>>0<=g>>>0;xc:{if(e)break xc;b=f-g|0;h=b&3;o=0;f=g;if(a+(f^-1)>>>0>=3){b=b&-4;r=0;while(1){j=i;i=m+P(f,20)|0;i=j|(J[i+4>>2]|J[i+24>>2]|J[i+44>>2]|J[i- -64>>2])&7;f=f+4|0;r=r+4|0;if((b|0)!=(r|0))continue;break}}if(!h)break xc;while(1){i=J[(m+P(f,20)|0)+4>>2]&7|i;f=f+1|0;o=o+1|0;if((h|0)!=(o|0))continue;break}}yc:{if(e)break yc;b=i&1?i&-5:i;f=b>>>2&1|b&-3;e=a+(g^-1)|0;i=0;b=a-g&7;if(b)while(1){J[(m+P(g,20)|0)+4>>2]=f;g=g+1|0;i=i+1|0;if((b|0)!= -(i|0))continue;break}if(e>>>0<7)break yc;while(1){b=m+P(g,20)|0;J[b+4>>2]=f;J[b+24>>2]=f;J[b+44>>2]=f;J[b- -64>>2]=f;J[b+84>>2]=f;J[b+104>>2]=f;J[b+124>>2]=f;J[b+144>>2]=f;g=g+8|0;if((a|0)!=(g|0))continue;break}}b=a+1|0;b=b>>>0>>0?d:b;g=b-1|0;f=a;while(1){zc:{if((f|0)==(g|0)){f=b;break zc}e=P(f,20);f=f+1|0;e=e+m|0;if(J[e+8>>2]==J[e+28>>2])continue}break}g=a;if(d>>>0>g>>>0)continue;break tc}while(1){i=0;a=f;e=f>>>0<=g>>>0;Ac:{if(e)break Ac;b=f-g|0;h=b&3;o=0;f=g;if(a+(f^-1)>>>0>=3){b=b&-4;r=0;while(1){j= -i;i=m+P(f,20)|0;i=j|(J[i+4>>2]|J[i+24>>2]|J[i+44>>2]|J[i- -64>>2])&7;f=f+4|0;r=r+4|0;if((b|0)!=(r|0))continue;break}}if(!h)break Ac;while(1){i=J[(m+P(f,20)|0)+4>>2]&7|i;f=f+1|0;o=o+1|0;if((h|0)!=(o|0))continue;break}}Bc:{if(e)break Bc;b=i&1?i&-5:i;f=b&4?b|3:b;e=a+(g^-1)|0;i=0;b=a-g&7;if(b)while(1){J[(m+P(g,20)|0)+4>>2]=f;g=g+1|0;i=i+1|0;if((b|0)!=(i|0))continue;break}if(e>>>0<7)break Bc;while(1){b=m+P(g,20)|0;J[b+4>>2]=f;J[b+24>>2]=f;J[b+44>>2]=f;J[b- -64>>2]=f;J[b+84>>2]=f;J[b+104>>2]=f;J[b+124>> -2]=f;J[b+144>>2]=f;g=g+8|0;if((a|0)!=(g|0))continue;break}}b=a+1|0;b=b>>>0>>0?d:b;g=b-1|0;f=a;while(1){Cc:{if((f|0)==(g|0)){f=b;break Cc}e=P(f,20);f=f+1|0;e=e+m|0;if(J[e+8>>2]==J[e+28>>2])continue}break}g=a;if(d>>>0>g>>>0)continue;break}}J[c+40>>2]=C;H[c+140|0]=K[c+140|0]&207;I[c+140>>1]=0;J[c+148>>2]=1073741823;J[c+152>>2]=536870911;xb=t+32|0;return 1}ga(0)|0;_b();B()}ba(a|0);B()}function Oja(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;k=xb-160|0;xb=k;a:{if(!a){a=K[225880]|K[225881]<<8;H[b+300|0]=a;H[b+301|0]=a>>>8;a=K[225876]|K[225877]<<8|(K[225878]<<16|K[225879]<<24);d=K[225872]|K[225873]<<8|(K[225874]<<16|K[225875]<<24);H[b+292|0]=d;H[b+293|0]=d>>>8;H[b+294|0]=d>>>16;H[b+295|0]=d>>>24;H[b+296|0]=a;H[b+297|0]=a>>>8;H[b+298|0]=a>>>16;H[b+299|0]=a>>>24;break a}I[k+30>>1]=0;I[k+32>>1]=0;c=b;b=xb-16|0;xb=b;b:{c:{d:{e:{if(a){Gc(b+10|0,1,4,a);d=K[b+13|0];h=K[b+12|0];if(!(K[b+10|0]!=80|K[b+ -11|0]!=73|(h|0)!=67))if((d|0)==84)break d;l=d|h<<8;I[b>>1]=l;H[b+14|0]=0;d=Gc(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<<8;o=(d|0)!=2?-1:e<<8|e>>>8;I[b+2>>1]=o;H[b+14|0]=0;d=Gc(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<<8;i=(d|0)!=2?-1:e<<8|e>>>8;I[b+4>>1]=i;H[b+14|0]=0;d=Gc(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<<8;e=(d|0)!=2?-1:e<<8|e>>>8;I[b+6>>1]=e;Gc(b+9|0,1,1,a);break e}I[b>>1]=0;I[b+2>>1]=65535;I[b+4>>1]=65535;I[b+6>>1]=65535;i=65535;o=65535;e=65535}if((ke(a)|0)==17)break d;zg(a,512,0);H[b+14|0]=0;f:{if(a){Gc(b+ -14|0,1,2,a);if(!hj(a,b))break f;Gc(b+9|0,1,1,a);break c}if(hj(0,b))break c}d=0;e=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);h=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);h=K[226013]| -K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}if((ke(a)|0)==2){d=0;if((ke(a)|0)!=255)break b;J[c+104>>2]=2;g:{h=o<<16>>16;h:{if((h|0)<0)break h;u=e<<16>>16;if((u|0)<0)break h;n=l<<16>>16;if((n|0)<0)break h;s=i<<16>>16;if((s|0)<0|(h|0)>=(u|0))break h;if((n|0)<(s|0))break g}e=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310| -0]=e>>>16;H[c+311|0]=e>>>24;e=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);h=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);h=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299| -0]=e>>>24;break b}J[c+108>>2]=(i&65535)-(l&65535);J[c+112>>2]=(e&65535)-(o&65535);d=1;break b}d=1;J[c+104>>2]=1;J[c+112>>2]=(e<<16>>16)-(o<<16>>16);J[c+108>>2]=(i<<16>>16)-(l<<16>>16);break b}if((ke(a)|0)==17){i:switch(ke(a)-1|0){case 1:d=0;if((ke(a)|0)!=255)break b;J[c+104>>2]=2;j:{e=I[b+2>>1];k:{if((e|0)<0)break k;h=I[b+6>>1];if((h|0)<0)break k;u=I[b>>1];if((u|0)<0)break k;n=I[b+4>>1];if((n|0)<0|(e|0)>=(h|0))break k;if((n|0)>(u|0))break j}e=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+ -308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);h=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);h=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297| -0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}J[c+108>>2]=(n&65535)-(u&65535);J[c+112>>2]=(h&65535)-(e&65535);d=1;break b;case 0:J[c+104>>2]=1;d=0;l:{e=I[b+2>>1];m:{if((e|0)<0)break m;h=I[b+6>>1];if((h|0)<0)break m;u=I[b>>1];if((u|0)<0)break m;n=I[b+4>>1];if((n|0)<0|(e|0)>=(h|0))break m;if((n|0)>(u|0))break l}e=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);h=K[226021]| -K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);h=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}J[c+108>>2]=(n&65535)-(u&65535);J[c+112>>2]=(h&65535)-(e&65535);d=1;break b; -default:break i}d=0;e=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);h=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);h=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292| -0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}d=0;e=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);h=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e= -K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);h=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24}xb=b+16|0;if(!d)break a;m=a;if(J[a+76>>2]<0)a=J[a>>2];else a=J[m>>2];if(a>>>4&1){H[c+292|0]=69;H[c+293|0]=79;H[c+294|0]=70;H[c+295|0]=102;H[c+296|0]=105;H[c+297|0]=108;H[c+298|0]=101;H[c+299|0]=0;break a}J[c+160>>2]=0;J[c+164>>2]=1079115776;J[c+152>>2]=0;J[c+156>> -2]=1079115776;J[c+116>>2]=8;n:{a=J[c+108>>2];if(a){b=J[c+112>>2];if(b)break n}a=K[226615]|K[226616]<<8|(K[226617]<<16|K[226618]<<24);b=K[226611]|K[226612]<<8|(K[226613]<<16|K[226614]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226607]|K[226608]<<8|(K[226609]<<16|K[226610]<<24);b=K[226603]|K[226604]<<8|(K[226605]<<16|K[226606]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296| -0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}a=P(J[c+288>>2],P(a,b));J[c+120>>2]=a;b=J[c+144>>2];o:{if(!b){a=Qb(a);break o}a=ic(b,a)}J[c+144>>2]=a;f=1;if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break a;b=0;while(1){p:{if(J[c+104>>2]!=1)if(!(Mj(m)&1))break p;b=ke(m)}if(J[c+104>>2]==2){H[k+64|0]=0;a=Gc(k- -64|0,1,2,m);b=(a|0)!=2?-1:K[k+65|0]|K[k+64|0]<<8}q:{u=b&65535;r:{if(!u){b=0;break r}s:{t:{if(u>>>0>161)break t;u:{v:{w:{x:{y:{z:switch((b&65535)-1|0){case 0:H[k+64|0]= -0;d=k- -64|0;e=Gc(d,1,2,m);a=K[k+64|0]|K[k+65|0]<<8;d=Mi(Oi(m),d);a=((e|0)!=2?-1:a<<8|a>>>8)&65535;if(a>>>0>(d?0:J[k+88>>2])>>>0){f=0;a=K[227173]|K[227174]<<8|(K[227175]<<16|K[227176]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[227169]|K[227170]<<8|(K[227171]<<16|K[227172]<<24);b=K[227165]|K[227166]<<8|(K[227167]<<16|K[227168]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[227161]| -K[227162]<<8|(K[227163]<<16|K[227164]<<24);b=K[227157]|K[227158]<<8|(K[227159]<<16|K[227160]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227153]|K[227154]<<8|(K[227155]<<16|K[227156]<<24);b=K[227149]|K[227150]<<8|(K[227151]<<16|K[227152]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if((a|0)!=10){a=a-2|0; -if(!a)break s;e=a;d=0;a=0;while(1){if((ke(m)|0)==-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break t}f=0;if(!hj(m,k+48|0))break a;a=I[k+50>>1];if((a|0)<0)break s;d=I[k+48>>1];if(d&32768)break s;J[c+108>>2]=I[k+52>>1]-d;J[c+112>>2]=I[k+54>>1]-(a&65535);A:{B:{a=J[c+108>>2];if(a){d=J[c+112>>2];if(d)break B}a=K[226615]|K[226616]<<8|(K[226617]<<16|K[226618]<<24);d=K[226611]|K[226612]<<8|(K[226613]<<16|K[226614]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24; -H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226607]|K[226608]<<8|(K[226609]<<16|K[226610]<<24);d=K[226603]|K[226604]<<8|(K[226605]<<16|K[226606]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;a=0;break A}a=P(J[c+288>>2],P(a,d));J[c+120>>2]=a;d=J[c+144>>2];C:{if(!d){a=Qb(a);break C}a=ic(d,a)}J[c+144>>2]=a;a=1}if(!a)break a;break s;case 17:case 18:case 19:H[k+64|0]=0;e=Gc(k- -64|0,1,2, -m);a=K[k+64|0]|K[k+65|0]<<8;h=a<<8|a>>>8;d=0;a=0;while(1){if((ke(m)|0)!=-1){f=!a&d>>>0<7;d=d+1|0;a=d?a:a+1|0;if(f)continue}break}d=0;a=0;D:switch((((e|0)!=2?-1:h)&65535)-1|0){case 1:while(1){if((ke(m)|0)==-1)break t;e=!a&d>>>0<4;d=d+1|0;a=d?a:a+1|0;if(e)continue;break}break t;default:a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227130]|K[227131]<<8|(K[227132]<<16|K[227133]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[227127]|K[227128]<<8|(K[227129]<< -16|K[227130]<<24);b=K[227123]|K[227124]<<8|(K[227125]<<16|K[227126]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227119]|K[227120]<<8|(K[227121]<<16|K[227122]<<24);b=K[227115]|K[227116]<<8|(K[227117]<<16|K[227118]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a;case 0:break D}H[k+64|0]=0;e=k- -64|0;h=Gc(e,1, -2,m);f=K[k+64|0];n=K[k+65|0];e=Mi(Oi(m),e);if((e?0:J[k+88>>2])>>>0<((h|0)!=2?65535:n|f<<8)>>>0){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227173]|K[227174]<<8|(K[227175]<<16|K[227176]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[227169]|K[227170]<<8|(K[227171]<<16|K[227172]<<24);b=K[227165]|K[227166]<<8|(K[227167]<<16|K[227168]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+ -315|0]=a>>>24;a=K[227161]|K[227162]<<8|(K[227163]<<16|K[227164]<<24);b=K[227157]|K[227158]<<8|(K[227159]<<16|K[227160]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227153]|K[227154]<<8|(K[227155]<<16|K[227156]<<24);b=K[227149]|K[227150]<<8|(K[227151]<<16|K[227152]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!hj(m, -k+48|0)){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<< -8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!gF(m,k+12|0)){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=b;H[c+301|0]= -b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}J[c+116>>2]=I[k+34>>1];O[c+152>>3]=M[k+20>>2];O[c+160>>3]=M[k+24>>2];hF(m);ki(m);e=ki(m);if(us(m)>>>0>>0)break q;if(e)while(1){H[k+64|0]=0;Gc(k- --64|0,1,4,m);d=d+1|0;a=d?a:a+1|0;if((d|0)!=(e|0)|a)continue;break}h=I[k+54>>1];f=I[k+50>>1];a=h-f|0;d=L[k+30>>1];e=d<<16>>16<9?e&32767:e;d=e?e:I[k+52>>1]-I[k+48>>1]<<((d|0)==16);if(d>>>0<8)break u;if((f|0)==(h|0))break t;e=a>>>0<=1?1:a;n=0;h=0;i=d>>>0<201;while(1){if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break t;E:{if(!i){a=ki(m);break E}a=ke(m)}if(us(m)>>>0>=a>>>0){F:{if(!a)break F;f=a;d=0;a=0;while(1){if((ke(m)|0)==-1)break F;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}}n=n+ -1|0;h=n?h:h+1|0;if((e|0)!=(n|0)|h)continue;break t}break}a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227173]|K[227174]<<8|(K[227175]<<16|K[227176]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[227169]|K[227170]<<8|(K[227171]<<16|K[227172]<<24);b=K[227165]|K[227166]<<8|(K[227167]<<16|K[227168]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[227161]|K[227162]<< -8|(K[227163]<<16|K[227164]<<24);b=K[227157]|K[227158]<<8|(K[227159]<<16|K[227160]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227153]|K[227154]<<8|(K[227155]<<16|K[227156]<<24);b=K[227149]|K[227150]<<8|(K[227151]<<16|K[227152]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a;case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:H[k+ -64|0]=0;a=k- -64|0;d=Gc(a,1,2,m);e=K[k+64|0];h=K[k+65|0];a=Mi(Oi(m),a);f=a?0:J[k+88>>2];a=(d|0)!=2?65535:h|e<<8;if(f>>>0>=a>>>0){a=a-2|0;if(!a)break s;e=a;d=0;a=0;while(1){if((ke(m)|0)==-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break t}a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227173]|K[227174]<<8|(K[227175]<<16|K[227176]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[227169]|K[227170]<<8|(K[227171]<<16|K[227172]<<24);b=K[227165]| -K[227166]<<8|(K[227167]<<16|K[227168]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[227161]|K[227162]<<8|(K[227163]<<16|K[227164]<<24);b=K[227157]|K[227158]<<8|(K[227159]<<16|K[227160]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227153]|K[227154]<<8|(K[227155]<<16|K[227156]<<24);b=K[227149]|K[227150]<<8|(K[227151]<< -16|K[227152]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a;case 143:case 144:case 151:case 152:case 153:case 154:s=u-156|0;e=s>>>0>4294967293;G:{if(!e){H[k+62|0]=0;d=Gc(k+62|0,1,2,m);a=K[k+62|0];h=a>>>24|0;f=K[k+63|0]|a<<8;a=(d|0)!=2;f=a?65535:f;a=a?0:h;break G}H[k+62|0]=0;Gc(k+62|0,1,2,m);H[k+62|0]=0;Gc(k+62|0,1,2,m);H[k+62|0]=0;Gc(k+62|0,1,2,m);f=0;a=0}if(!hj(m,k+48|0)){a=J[c+144>>2];if(a){Kb(a);J[c+ -120>>2]=0;J[c+144>>2]=0}a=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+ -292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}j=dF(c,I[k+54>>1]-I[k+50>>1]|0,I[k+52>>1]-I[k+48>>1]|0);if(!j){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=b; -H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}H:{I:{J:{d=J[j+108>>2];if(!d)break J;h=J[j+112>>2];if(!h)break J;d=P(J[j+288>>2],P(d,h));J[j+120>>2]=d;h=J[j+144>>2];if(h)break I; -h=Qb(d);break H}a=K[226615]|K[226616]<<8|(K[226617]<<16|K[226618]<<24);b=K[226611]|K[226612]<<8|(K[226613]<<16|K[226614]<<24);H[j+300|0]=b;H[j+301|0]=b>>>8;H[j+302|0]=b>>>16;H[j+303|0]=b>>>24;H[j+304|0]=a;H[j+305|0]=a>>>8;H[j+306|0]=a>>>16;H[j+307|0]=a>>>24;a=K[226607]|K[226608]<<8|(K[226609]<<16|K[226610]<<24);b=K[226603]|K[226604]<<8|(K[226605]<<16|K[226606]<<24);H[j+292|0]=b;H[j+293|0]=b>>>8;H[j+294|0]=b>>>16;H[j+295|0]=b>>>24;H[j+296|0]=a;H[j+297|0]=a>>>8;H[j+298|0]=a>>>16;H[j+299|0]=a>>>24;a= -J[c+144>>2];if(!a)break v;Kb(a);J[c+120>>2]=0;J[c+144>>2]=0;f=0;break a}h=ic(h,d)}J[j+144>>2]=h;q=!a&f>>>0<32768;y=q&(b&65534)!=154;K:{if(y)break K;if(!gF(m,k+12|0)){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<< -24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break v}J[j+116>>2]=I[k+34>>1];d=L[k+32>>1];J[j+268>>2]=((d|0)==4)<<2;O[j+152>>3]=M[k+20>>2];O[j+160>>3]=M[k+24>>2];if((d|0)!= -4)break K;vs(j)}L:{if(e)break L;J[j+124>>2]=2;M:{N:{if(!a&f>>>0<=32767){if(!iF(j,2))break N;e=J[j+124>>2];if(!e)break L;o=e&1;i=J[j+264>>2];d=0;a=0;if((e|0)!=1){l=e&-2;n=0;h=0;while(1){e=i+P(d,80)|0;p=255-O[e+48>>3];O[e+32>>3]=p;O[e+40>>3]=255-O[e+40>>3];O[e+48>>3]=255-p;e=i+P(d|1,80)|0;p=255-O[e+48>>3];O[e+32>>3]=p;O[e+40>>3]=255-O[e+40>>3];O[e+48>>3]=255-p;d=d+2|0;a=d>>>0<2?a+1|0:a;e=h;n=n+2|0;e=n>>>0<2?e+1|0:e;h=e;if((l|0)!=(n|0)|e)continue;break}}if(!o)break L;a=i+P(d,80)|0;p=255-O[a+48>>3];O[a+ -32>>3]=p;O[a+40>>3]=255-O[a+40>>3];O[a+48>>3]=255-p;break L}hF(m);e=ki(m);a=ki(m)+1|0;J[j+124>>2]=a;if(iF(j,a))break M}a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(!a)break v;Kb(a);J[j+120>>2]=0;J[j+144>>2]=0;f=0;break a}if(!J[j+124>>2])break L;d=0;a=0;h=e<<16>>16<0;while(1){H[k+62|0]=0;e=Gc(k+62|0,1,2,m);n=K[k+63|0];i=K[k+62|0];o=J[j+124>>2];H[k+62|0]=0;l=Gc(k+62|0,1,2,m);e=P(h?d:(((e|0)!=2?65535:n|i<<8)>>>0)%(o>>>0)|0,80);O[(e+J[j+264>>2]|0)+32>>3]=(l|0)==2?+K[k+63|0]: -255;H[k+62|0]=0;n=Gc(k+62|0,1,2,m);O[(e+J[j+264>>2]|0)+40>>3]=(n|0)==2?+K[k+63|0]:255;H[k+62|0]=0;n=Gc(k+62|0,1,2,m);O[(e+J[j+264>>2]|0)+48>>3]=(n|0)==2?+K[k+63|0]:255;d=d+1|0;a=d?a:a+1|0;if(!a&M[j+124>>2]>d>>>0)continue;break}}if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}H[c+292|0]=69;H[c+293|0]=79;H[c+294|0]=70;H[c+295|0]=102;H[c+296|0]=105;H[c+297|0]=108;H[c+298|0]=101;H[c+299|0]= -0;f=0;break a}if(!hj(m,k- -64|0)){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>> -24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}if(!hj(m,k+4|0)){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24; -a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}ki(m); -O:{if((b&65527)!=145&(u|0)!=155)break O;a=ki(m);if(us(m)>>>0>>0)break w;a=a-2|0;if(!a)break O;e=a;d=0;a=0;while(1){if((ke(m)|0)==-1)break O;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}}h=f;i=0;e=0;d=0;a=0;A=xb-2064|0;xb=A;o=1;f=J[j+112>>2];l=f;P:{Q:{n=I[k+30>>1];x=s>>>0<4294967294?q?1:n:n;n=x-16|0;if(n)if((n|0)==16)break Q;else break P;l=f<<1;o=2;break P}l=P(f,J[j+268>>2]?4:3)}g=(J[j>>2]==1?f<<2:f)|32768;n=P(g,J[j+108>>2]);f=vc(1,n);R:{if(!f){f=0;break R}J[k+56>>2]=n;S:{v=vc(1,g<<1);if(!v)break S; -r=Nb(A,0,2048);n=J[j+108>>2];T:{h=x>>>0<9?h&32767:h;h=h?h:l;U:{if(h>>>0>=8){if(!n)break U;C=h>>>0<251;while(1){V:{if(!C){H[r+2062|0]=0;q=65535;if(!m)break V;if((Gc(r+2062|0,1,2,m)|0)!=2)break V;q=K[r+2063|0]|K[r+2062|0]<<8;break V}q=ke(m)}W:{if(!q|g>>>0<=q>>>0)break W;if(m)e=Gc(v,1,q,m);else e=0;w=e;t=e>>31;if((e|0)!=(q|0)|t)break W;s=P(d,l)+f|0;n=0;h=0;while(1){q=n+v|0;i=H[q|0];e=i&255;X:{if((i|0)>=0){i=P(e+1|0,o);J[r+2056>>2]=i;q=ko(q+1|0,x,r,r+2056|0);e=J[r+2056>>2];if(M[k+56>>2]>=e+(s-f|0)>>> -0){Mb(s,q,e);e=J[r+2056>>2]}s=e+s|0;break X}J[r+2056>>2]=o;e=257-e|0;D=e&510;E=e&1;i=0;e=0;z=ko(q+1|0,x,r,r+2056|0);q=J[r+2056>>2];while(1){if(M[k+56>>2]>=(s-f|0)+q>>>0){Mb(s,z,q);q=J[r+2056>>2]}s=q+s|0;if(M[k+56>>2]>=(s-f|0)+q>>>0){Mb(s,z,q);q=J[r+2056>>2]}s=q+s|0;i=i+2|0;e=i>>>0<2?e+1|0:e;if((i|0)!=(D|0)|e)continue;break}i=o;if(E){if(M[k+56>>2]>=(s-f|0)+q>>>0){Mb(s,z,q);q=J[r+2056>>2]}s=q+s|0}}e=i+1|0;n=e+n|0;h=e>>>0>n>>>0?h+1|0:h;if((t|0)==(h|0)&n>>>0>>0|h>>>0>>0)continue;break}d=d+1|0;a= -d?a:a+1|0;if(!a&M[j+108>>2]>d>>>0)continue;break U}break}Kb(v);break S}if(!n)break U;if(m){while(1){d=J[j+288>>2];J[r+2056>>2]=h;a=Gc(v,1,h,m);if((h|0)!=(a|0)|a>>31)break T;a=ko(v,x,r,r+2056|0);d=P(d,P(i,l))+f|0;n=J[r+2056>>2];if(d+n>>>0>J[k+56>>2]+f>>>0)break T;Mb(d,a,n);i=i+1|0;e=i?e:e+1|0;if(!e&M[j+108>>2]>i>>>0)continue;break}break U}if(h)break T;while(1){a=J[j+288>>2];J[r+2056>>2]=0;d=ko(v,x,r,r+2056|0);a=P(a,P(i,l))+f|0;h=J[r+2056>>2];if(a+h>>>0>J[k+56>>2]+f>>>0)break T;Mb(a,d,h);i=i+1|0;e= -i?e:e+1|0;if(!e&M[j+108>>2]>i>>>0)continue;break}}Kb(v);break R}Kb(v);Kb(f);break R}Kb(f);f=0}xb=A+2064|0;if(!f)break x;e=f;Y:{if(!J[j+108>>2])break Y;w=I[k+32>>1]-1|0;s=J[k+56>>2]+e|0;q=L[k+30>>1];n=0;h=0;while(1){if(s+J[c+112>>2]>>>0>>0){Kb(e);a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[227886]|K[227887]<<8|(K[227888]<<16|K[227889]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[227883]|K[227884]<< -8|(K[227885]<<16|K[227886]<<24);b=K[227879]|K[227880]<<8|(K[227881]<<16|K[227882]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227875]|K[227876]<<8|(K[227877]<<16|K[227878]<<24);b=K[227871]|K[227872]<<8|(K[227873]<<16|K[227874]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}a=J[j+144>>2];if(!a)break Y; -i=J[j+112>>2];Z:{if(!i){i=0;break Z}l=a+P(J[j+288>>2],P(i,n))|0;d=0;a=0;if((q|0)==16)while(1){i=J[j+272>>2];_:{if(J[j>>2]!=2){o=K[f+1|0];r=J[i+8>>2]+l|0;i=K[f|0];H[r|0]=i<<1&248;H[J[J[j+272>>2]+24>>2]+l|0]=o>>>2&56|i<<6;f=f+1|0;i=o<<3;break _}o=K[f|0];o=o>>>0>2]?o:0;if(J[i+84>>2]){H[J[i+88>>2]+l|0]=o;i=J[j+272>>2]}r=J[i+8>>2]+l|0;i=P(o,80);p=O[(i+J[j+264>>2]|0)+32>>3];$:{if(p<4294967296&p>=0){o=~~p>>>0;break $}o=0}H[r|0]=o;r=J[J[j+272>>2]+24>>2]+l|0;p=O[(i+J[j+264>>2]|0)+40>>3];aa:{if(p< -4294967296&p>=0){o=~~p>>>0;break aa}o=0}H[r|0]=o;p=O[(i+J[j+264>>2]|0)+48>>3];if(p<4294967296&p>=0){i=~~p>>>0;break _}i=0}H[J[J[j+272>>2]+40>>2]+l|0]=i;f=f+1|0;l=J[j+288>>2]+l|0;d=d+1|0;a=d?a:a+1|0;i=J[j+112>>2];if(!a&i>>>0>d>>>0)continue;break Z}while(1){ba:{if(J[j>>2]==2){i=K[f|0];o=i>>>0>2]?i:0;i=J[j+272>>2];if(J[i+84>>2]){H[J[i+88>>2]+l|0]=o;i=J[j+272>>2]}r=J[i+8>>2]+l|0;i=P(o,80);p=O[(i+J[j+264>>2]|0)+32>>3];ca:{if(p<4294967296&p>=0){o=~~p>>>0;break ca}o=0}H[r|0]=o;r=J[J[j+272>>2]+24>> -2]+l|0;p=O[(i+J[j+264>>2]|0)+40>>3];da:{if(p<4294967296&p>=0){o=~~p>>>0;break da}o=0}H[r|0]=o;p=O[(i+J[j+264>>2]|0)+48>>3];if(p<4294967296&p>=0){i=~~p>>>0;break ba}i=0;break ba}o=J[c+112>>2];if(!J[j+268>>2]){if(s+(o<<1)>>>0>>0){Kb(e);a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[227886]|K[227887]<<8|(K[227888]<<16|K[227889]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[227883]|K[227884]<<8|(K[227885]<< -16|K[227886]<<24);b=K[227879]|K[227880]<<8|(K[227881]<<16|K[227882]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227875]|K[227876]<<8|(K[227877]<<16|K[227878]<<24);b=K[227871]|K[227872]<<8|(K[227873]<<16|K[227874]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}H[J[J[j+272>>2]+8>>2]+l|0]=K[f|0];H[J[J[j+ -272>>2]+24>>2]+l|0]=K[J[j+112>>2]+f|0];i=K[(J[j+112>>2]<<1)+f|0];break ba}if(s+P(o,3)>>>0>>0){Kb(e);a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[227886]|K[227887]<<8|(K[227888]<<16|K[227889]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[227883]|K[227884]<<8|(K[227885]<<16|K[227886]<<24);b=K[227879]|K[227880]<<8|(K[227881]<<16|K[227882]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]= -b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227875]|K[227876]<<8|(K[227877]<<16|K[227878]<<24);b=K[227871]|K[227872]<<8|(K[227873]<<16|K[227874]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}o=J[j+272>>2];if(J[o+68>>2]){H[J[o+72>>2]+l|0]=K[f|0];i=J[j+112>>2];o=J[j+272>>2]}H[J[o+8>>2]+l|0]=K[f+i|0];H[J[J[j+272>>2]+24>>2]+l|0]=K[(J[j+112>>2]<<1)+f|0];i=K[P(J[j+112>> -2],3)+f|0]}H[J[J[j+272>>2]+40>>2]+l|0]=i;f=f+1|0;l=J[j+288>>2]+l|0;d=d+1|0;a=d?a:a+1|0;i=J[j+112>>2];if(!a&i>>>0>d>>>0)continue;break}}if(!((q|0)==16|J[j>>2]!=1)){f=P(i,w)+f|0;if(e>>>0>f>>>0)break Y}a=h;n=n+1|0;h=n?a:a+1|0;if(!h&M[j+108>>2]>n>>>0)continue;break}}if(J[j+268>>2]?J[j>>2]==2|L[k+30>>1]==16:1)vs(j);Kb(e);if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(!(a>>>4&1|y))ea:{y=I[k+6>>1];r=y>>31;v=I[k+4>>1];x=v>>31;n=0;h=0;J[c>>2]=1;if(!J[c+144>>2])break ea;fa:{g=dF(j,0,0);a=J[g+108>>2];if(a){d=J[g+ -112>>2];if(d)break fa}a=K[226615]|K[226616]<<8|(K[226617]<<16|K[226618]<<24);d=K[226611]|K[226612]<<8|(K[226613]<<16|K[226614]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[226607]|K[226608]<<8|(K[226609]<<16|K[226610]<<24);d=K[226603]|K[226604]<<8|(K[226605]<<16|K[226606]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>> -24;break ea}l=P(J[g+288>>2],P(a,d));J[g+120>>2]=l;a=J[g+144>>2];ga:{if(!a){t=Qb(l);break ga}t=ic(a,l);l=J[g+120>>2]}J[g+144>>2]=t;Mb(t,J[j+144>>2],l);d=J[c+4>>2];ha:{if((d|0)==J[g+4>>2])break ha;J[g+168>>2]=-780903145;J[g+172>>2]=1071454021;J[g+4>>2]=d;Nb(g+8|0,0,96);a=J[g+176>>2];f=2;ia:{ja:{ka:{la:switch(d-3|0){case 30:J[g+168>>2]=0;J[g+172>>2]=1072693248;break ia;default:if(d-25>>>0>1)break ka;break;case 0:break ia;case 18:case 19:break la}J[g+168>>2]=0;J[g+172>>2]=1072693248;break ja}J[g+8>>2]= -1202590843;J[g+12>>2]=1071938273;J[g+96>>2]=529139971;J[g+100>>2]=1071050339;J[g+88>>2]=68719477;J[g+92>>2]=1070927446;J[g+80>>2]=-597859448;J[g+84>>2]=1070859078;J[g+72>>2]=343597384;J[g+76>>2]=1072252846;d=g- -64|0;J[d>>2]=-343597384;J[d+4>>2]=1068415057;J[g+56>>2]=858993459;J[g+60>>2]=1069757235;J[g+48>>2]=-1717986918;J[g+52>>2]=1069128089;J[g+40>>2]=858993459;J[g+44>>2]=1071854387;J[g+32>>2]=858993459;J[g+36>>2]=1070805811;J[g+24>>2]=-343597384;J[g+28>>2]=1067366481;J[g+16>>2]=1374389535;J[g+ -20>>2]=1070931640}f=a}if(!J[g+144>>2])break ha;J[g+176>>2]=f}A=1;a=J[c+132>>2];ma:{if(!a)break ma;a=qs(a,226102);if(a)na:{f=0;q=0;if(!a)break na;l=227039;i=K[a|0];oa:{if(!i)break oa;if((i|0)!=116){f=i;if(((f-65>>>0<26?f|32:f)|0)!=116)break oa}l=227040;f=K[a+1|0];if(!f)break oa;if((f|0)!=114)if(((f-65>>>0<26?f|32:f)|0)!=114)break oa;l=227041;f=K[a+2|0];if(!f)break oa;if((f|0)!=117)if(((f-65>>>0<26?f|32:f)|0)!=117)break oa;l=227042;f=K[a+3|0];if(!f)break oa;if((f|0)!=101)if(((f-65>>>0<26?f|32:f)|0)!= -101)break oa;f=K[a+4|0];l=227043}q=1;d=K[l|0];pa:{if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa;l=226384;qa:{if(!i){f=0;break qa}if((i|0)!=111){f=i;if(((f-65>>>0<26?f|32:f)|0)!=111)break qa}l=226385;f=K[a+1|0];if(!f)break qa;if((f|0)!=110)if(((f-65>>>0<26?f|32:f)|0)!=110)break qa;f=K[a+2|0];l=226386}d=K[l|0];if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa;l=225724;ra:{if(!i){f=0;break ra}if((i|0)!=121){f=i;if(((f-65>>>0<26?f|32:f)|0)!=121)break ra}l=225725;f=K[a+1| -0];if(!f)break ra;if((f|0)!=101)if(((f-65>>>0<26?f|32:f)|0)!=101)break ra;l=225726;f=K[a+2|0];if(!f)break ra;if((f|0)!=115)if(((f-65>>>0<26?f|32:f)|0)!=115)break ra;f=K[a+3|0];l=225727}d=K[l|0];if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa;f=228131;sa:{if(!i){i=0;break sa}if((i|0)!=49)if(((i-65>>>0<26?i|32:i)|0)!=49)break sa;i=K[a+1|0];f=228132}a=K[f|0];q=((i-65>>>0<26?i|32:i)|0)==((a-65>>>0<26?a|32:a)|0)}}else q=1;A=q;a=J[c+132>>2];if(!a)break ma;qs(a,227693)}a=J[c+272>>2];J[a+4>> -2]=2;J[a+68>>2]=2;J[a+36>>2]=2;J[a+20>>2]=2;a=J[g+272>>2];J[a+4>>2]=1;J[a+68>>2]=1;J[a+36>>2]=1;J[a+20>>2]=1;ta:{if((r|x)<0)break ta;d=J[c+112>>2];a=r;e=y+J[g+112>>2]|0;a=e>>>0>>0?a+1|0:a;if((a|0)>0)a=1;else a=d>>>0>>0&(a|0)>=0;if(a)break ta;d=J[c+108>>2];a=x;f=J[g+108>>2];e=v+f|0;a=e>>>0>>0?a+1|0:a;if((a|0)>0)a=1;else a=d>>>0>>0&(a|0)>=0;if(a)break ta;if(!(J[g+268>>2]|!J[c+268>>2])){vs(g);f=J[g+108>>2]}if(f){q=1;while(1){ua:{if(!q){q=0;break ua}f=J[g+112>>2];q=0;i=J[g+144>>2];va:{if(!i){i= -0;break va}if(!f){i=0;break va}a=Mpa(-1,33554431,f,0);d=zb;if((d|0)==(h|0)&a>>>0<=n>>>0|d>>>0>>0){i=0;break va}e=J[g+288>>2];d=Kpa(e,0,f,0);if(zb){i=0;a=K[226916]|K[226917]<<8|(K[226918]<<16|K[226919]<<24);d=K[226912]|K[226913]<<8|(K[226914]<<16|K[226915]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[226908]|K[226909]<<8|(K[226910]<<16|K[226911]<<24);d=K[226904]|K[226905]<<8|(K[226906]<<16|K[226907]<< -24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break va}if(d){i=i+P(e,P(f,n))|0;f=J[g+112>>2];break va}i=0;a=K[225168]|K[225169]<<8|(K[225170]<<16|K[225171]<<24);d=K[225164]|K[225165]<<8|(K[225166]<<16|K[225167]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[225160]|K[225161]<<8|(K[225162]<<16|K[225163]<<24);d=K[225156]| -K[225157]<<8|(K[225158]<<16|K[225159]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24}s=J[c+144>>2];if(!s)break ua;d=J[c+112>>2];if(!d)break ua;e=h+x|0;a=Mpa(-1,33554431,d,0);o=n+v|0;e=o>>>0>>0?e+1|0:e;w=e;l=zb;if((e|0)>=(l|0)&a>>>0<=o>>>0|(e|0)>(l|0))break ua;a=Mpa(0,33554432,d,0);l=0-a|0;a=0-(zb+((a|0)!=0)|0)|0;if((a|0)>=(e|0)&l>>>0>=o>>>0|(a|0)>(e|0))break ua;e=J[c+288>>2];f=Kpa(e,0,f,0);if(zb){a=K[226916]| -K[226917]<<8|(K[226918]<<16|K[226919]<<24);d=K[226912]|K[226913]<<8|(K[226914]<<16|K[226915]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226908]|K[226909]<<8|(K[226910]<<16|K[226911]<<24);d=K[226904]|K[226905]<<8|(K[226906]<<16|K[226907]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break ua}if(f){if(!i)break ua; -q=1;l=J[g+112>>2];if(!l)break ua;a=Kpa(o,w,d,0)+y|0;f=P(a,e)+s|0;w=0;o=0;while(1){wa:{xa:{a=J[g+272>>2];if(!(H[J[a+104>>2]+i|0]>=0?J[a+100>>2]:0)){d=0;a=0;t=J[g+288>>2];if(t)break xa;t=0;break wa}t=J[g+288>>2];break wa}while(1){e=J[g+272>>2];l=0;ya:{if(!a&d>>>0<=63){l=J[e+(d<<4)>>2];if(l>>>0>63)break ya}s=e;e=l<<4;if(!J[(s+e|0)+4>>2])break ya;e=e+J[c+272>>2]|0;if(!J[e+4>>2])break ya;H[J[e+8>>2]+f|0]=K[d+i|0];t=J[g+288>>2]}d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}l=J[g+112>>2]}i=i+t|0; -f=J[c+288>>2]+f|0;a=o;w=w+1|0;o=w?a:a+1|0;if(!o&l>>>0>w>>>0)continue;break}break ua}a=K[225168]|K[225169]<<8|(K[225170]<<16|K[225171]<<24);d=K[225164]|K[225165]<<8|(K[225166]<<16|K[225167]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[225160]|K[225161]<<8|(K[225162]<<16|K[225163]<<24);d=K[225156]|K[225157]<<8|(K[225158]<<16|K[225159]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24; -H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}a=h;n=n+1|0;h=n?a:a+1|0;if(!h&M[g+108>>2]>n>>>0)continue;break}}Kb(J[g+144>>2]);Kb(J[g+272>>2]);Kb(g);break ea}if(J[c+108>>2]){F=+(y>>>0)+ +(r|0)*4294967296;G=+(v>>>0)+ +(x|0)*4294967296;i=1;while(1){a=i;i=0;za:{if(!a)break za;i=1;a=n>>>0>>0;d=a&(h|0)<=(x|0)|(h|0)<(x|0);if(d)break za;p=+M[g+108>>2];B=+(n>>>0)+ +(h|0)*4294967296-G;if(p<=B)break za;s=0;e=0;Aa:{if(d)break Aa;e=0;if(!(p>B))break Aa;i=0;o=J[g+144>>2];if(!o)break za;d= -J[g+112>>2];if(!d)break za;f=Mpa(-1,33554431,d,0);e=n-v|0;a=h-(a+x|0)|0;l=zb;if(f>>>0<=e>>>0&(a|0)>=(l|0)|(a|0)>(l|0))break za;f=Mpa(0,33554432,d,0);l=0-f|0;f=0-(zb+((f|0)!=0)|0)|0;if(e>>>0<=l>>>0&(f|0)>=(a|0)|(a|0)<(f|0))break za;i=J[g+288>>2];f=Kpa(i,0,d,0);if(zb){i=0;a=K[226916]|K[226917]<<8|(K[226918]<<16|K[226919]<<24);d=K[226912]|K[226913]<<8|(K[226914]<<16|K[226915]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307| -0]=a>>>24;a=K[226908]|K[226909]<<8|(K[226910]<<16|K[226911]<<24);d=K[226904]|K[226905]<<8|(K[226906]<<16|K[226907]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break za}Ba:{if(f){s=o+P(i,P(d,e))|0;if((r|0)<0)break Ba;e=s;break Aa}i=0;a=K[225168]|K[225169]<<8|(K[225170]<<16|K[225171]<<24);d=K[225164]|K[225165]<<8|(K[225166]<<16|K[225167]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24; -H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[225160]|K[225161]<<8|(K[225162]<<16|K[225163]<<24);d=K[225156]|K[225157]<<8|(K[225158]<<16|K[225159]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break za}e=s-P(y,J[g+288>>2])|0}z=e;o=J[c+144>>2];if(!o){i=0;break za}e=J[c+112>>2];if(!e){i=0;break za}i=0;a=Mpa(-1,33554431,e,0);d=zb;if((h|0)==(d|0)&a>>>0<=n>>>0|d>>>0>>0)break za;f=J[c+288>> -2];d=Kpa(f,0,e,0);if(zb){a=K[226916]|K[226917]<<8|(K[226918]<<16|K[226919]<<24);d=K[226912]|K[226913]<<8|(K[226914]<<16|K[226915]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226908]|K[226909]<<8|(K[226910]<<16|K[226911]<<24);d=K[226904]|K[226905]<<8|(K[226906]<<16|K[226907]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]= -a>>>24;break za}if(d){i=1;if(!J[c+112>>2])break za;q=o+P(f,P(e,n))|0;w=0;o=0;while(1){Ca:{if(w>>>0>>0&(o|0)<=(r|0)|(o|0)<(r|0)){t=J[c+288>>2];break Ca}p=+(w>>>0)+ +(o|0)*4294967296-F;f=J[g+112>>2];if(p>=+(f>>>0))break za;if(!s|(w>>>0>>0&(o|0)<=(r|0)|(o|0)<(r|0))|p>=+(f>>>0)){d=0;a=0;t=J[c+288>>2];if(!t){t=0;break Ca}while(1){e=J[c+272>>2];l=0;Da:{if(!a&d>>>0<=63){l=J[e+(d<<4)>>2];if(l>>>0>63)break Da}f=e;e=l<<4;if(!J[(f+e|0)+4>>2]|!J[(e+J[g+272>>2]|0)+4>>2])break Da;H[d+q|0]=0;t=J[c+288>>2]}d= -d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break Ca}t=0;l=0;a=J[g+272>>2];if(J[a+68>>2])l=K[J[a+72>>2]+z|0];if(J[c+288>>2]){p=+((l&255)>>>0)*.00392156862745098;B=p==0?1:p;p=B*255;l=p>0;e=l?-1:0;f=p>=255;t=p<0;a=t?0:-1;if(p<4294967296&p>=0)d=~~p>>>0;else d=0;l=A?t?a:f?a:d:l?f?e:d:e;B=B*.00392156862745098;d=0;a=0;while(1){e=J[c+272>>2];f=0;Ea:{if(!a&d>>>0<=63){f=J[e+(d<<4)>>2];if(f>>>0>63)break Ea}t=f<<4;e=J[(t+e|0)+4>>2];if(!e)break Ea;t=t+J[g+272>>2]|0;C=J[t+4>>2];if(!(!(e&2)|(f|0)!=4)){H[d+ -q|0]=l;break Ea}if(!C|e&1)break Ea;p=B*+K[J[t+8>>2]+z|0]*255;f=d+q|0;Fa:{Ga:{if(A){e=0;if(p<0)break Fa;e=255;if(p>=255)break Fa;if(!(p<4294967296&p>=0))break Ga;e=~~p>>>0;break Fa}e=0;if(!(p>0))break Fa;e=255;if(p>=255)break Fa;if(!(p<4294967296&p>=0))break Ga;e=~~p>>>0;break Fa}e=0}H[f|0]=e}d=d+1|0;a=d?a:a+1|0;t=J[c+288>>2];if(!a&t>>>0>d>>>0)continue;break}f=J[g+112>>2]}a=J[g+288>>2];d=a+z|0;z=d>>>0>>0?d:s}q=q+t|0;a=o;w=w+1|0;o=w?a:a+1|0;if(!o&M[c+112>>2]>w>>>0)continue;break}break za}a= -K[225168]|K[225169]<<8|(K[225170]<<16|K[225171]<<24);d=K[225164]|K[225165]<<8|(K[225166]<<16|K[225167]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[225160]|K[225161]<<8|(K[225162]<<16|K[225163]<<24);d=K[225156]|K[225157]<<8|(K[225158]<<16|K[225159]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}a=h;n=n+1|0;h=n?a:a+ -1|0;if(!h&M[c+108>>2]>n>>>0)continue;break}}Kb(J[g+144>>2]);Kb(J[g+272>>2]);Kb(g)}lo(j);break t;case 160:H[k+64|0]=0;a=k- -64|0;h=Gc(a,1,2,m);e=K[k+64|0]|K[k+65|0]<<8;H[k+64|0]=0;f=Gc(a,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;a=Mi(Oi(m),a);f=(f|0)!=2?-1:d<<8|d>>>8;d=f&65535;if(d>>>0>(a?0:J[k+88>>2])>>>0){a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227173]|K[227174]<<8|(K[227175]<<16|K[227176]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[227169]|K[227170]<<8| -(K[227171]<<16|K[227172]<<24);b=K[227165]|K[227166]<<8|(K[227167]<<16|K[227168]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[227161]|K[227162]<<8|(K[227163]<<16|K[227164]<<24);b=K[227157]|K[227158]<<8|(K[227159]<<16|K[227160]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227153]|K[227154]<<8|(K[227155]<<16|K[227156]<< -24);b=K[227149]|K[227150]<<8|(K[227151]<<16|K[227152]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!d)break s;a=Qb(d);if(!a)break s;n=Gc(a,1,d,m);if((n|0)!=(f&65535)|n>>31){Kb(a);a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227908]|K[227909]<<8|(K[227910]<<16|K[227911]<<24);b=K[227904]|K[227905]<<8|(K[227906]<<16|K[227907]<<24);H[c+306|0]=b;H[c+307|0]=b>>>8;H[c+308|0]=b>>>16;H[c+ -309|0]=b>>>24;H[c+310|0]=a;H[c+311|0]=a>>>8;H[c+312|0]=a>>>16;H[c+313|0]=a>>>24;a=K[227902]|K[227903]<<8|(K[227904]<<16|K[227905]<<24);b=K[227898]|K[227899]<<8|(K[227900]<<16|K[227901]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227894]|K[227895]<<8|(K[227896]<<16|K[227897]<<24);b=K[227890]|K[227891]<<8|(K[227892]<<16|K[227893]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+ -296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}e=((h|0)!=2?-1:e<<8|e>>>8)&65535;Ha:{if((e|0)!=498){if((e|0)!=224)break Ha;d=kF(d);e=J[d+8>>2];if(e)Mb(J[d+4>>2],a,e);e=eF(c,227718,d);lF(d);if(e)break Ha;Kb(a);a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227538]|K[227539]<<8|(K[227540]<<16|K[227541]<<24);b=K[227534]|K[227535]<<8|(K[227536]<<16|K[227537]<<24);H[c+307|0]=b;H[c+308|0]=b>>>8;H[c+309|0]=b>>>16;H[c+310|0]=b>>>24;H[c+311|0]=a;H[c+312|0]=a>>>8;H[c+313| -0]=a>>>16;H[c+314|0]=a>>>24;a=K[227531]|K[227532]<<8|(K[227533]<<16|K[227534]<<24);b=K[227527]|K[227528]<<8|(K[227529]<<16|K[227530]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227523]|K[227524]<<8|(K[227525]<<16|K[227526]<<24);b=K[227519]|K[227520]<<8|(K[227521]<<16|K[227522]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299| -0]=a>>>24;break a}d=kF(d);e=J[d+8>>2];if(e)Mb(J[d+4>>2],a,e);if(!eF(c,227563,d)){Kb(a);a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227538]|K[227539]<<8|(K[227540]<<16|K[227541]<<24);b=K[227534]|K[227535]<<8|(K[227536]<<16|K[227537]<<24);H[c+307|0]=b;H[c+308|0]=b>>>8;H[c+309|0]=b>>>16;H[c+310|0]=b>>>24;H[c+311|0]=a;H[c+312|0]=a>>>8;H[c+313|0]=a>>>16;H[c+314|0]=a>>>24;a=K[227531]|K[227532]<<8|(K[227533]<<16|K[227534]<<24);b=K[227527]|K[227528]<<8|(K[227529]<<16|K[227530]<<24);H[c+ -300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227523]|K[227524]<<8|(K[227525]<<16|K[227526]<<24);b=K[227519]|K[227520]<<8|(K[227521]<<16|K[227522]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}lF(d)}Kb(a);break s;default:a=P(u,24)+234200|0;h=J[a>>2];e=J[a+4>>2];f=e;if((e&h)==-1)break y;d=0;a=0;if(!h&(e|0)<=0|(e|0)< -0)break s;while(1){if((ke(m)|0)==-1)break t;d=d+1|0;e=d?a:a+1|0;a=e;if(d>>>0>>0&(f|0)>=(a|0)|(a|0)<(f|0))continue;break}break t;case 26:break z}H[k+64|0]=0;a=Gc(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+216>>3]=(a|0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495;H[k+64|0]=0;a=Gc(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+224>>3]=(a|0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495;H[k+64|0]=0;a=Gc(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+232>>3]=(a|0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495; -break s}ki(m);break s}a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[227224]|K[227225]<<8|(K[227226]<<16|K[227227]<<24);b=K[227220]|K[227221]<<8|(K[227222]<<16|K[227223]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[227216]|K[227217]<<8|(K[227218]<<16|K[227219]<<24);b=K[227212]|K[227213]<<8|(K[227214]<<16|K[227215]<<24);H[c+300|0]=b;H[c+301| -0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227208]|K[227209]<<8|(K[227210]<<16|K[227211]<<24);b=K[227204]|K[227205]<<8|(K[227206]<<16|K[227207]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){Kb(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[227173]|K[227174]<<8|(K[227175]<< -16|K[227176]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[227169]|K[227170]<<8|(K[227171]<<16|K[227172]<<24);b=K[227165]|K[227166]<<8|(K[227167]<<16|K[227168]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[227161]|K[227162]<<8|(K[227163]<<16|K[227164]<<24);b=K[227157]|K[227158]<<8|(K[227159]<<16|K[227160]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24; -H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227153]|K[227154]<<8|(K[227155]<<16|K[227156]<<24);b=K[227149]|K[227150]<<8|(K[227151]<<16|K[227152]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}f=0;break a}a=P(a,d);if(!a)break t;e=a;d=0;a=0;while(1){if((ke(m)|0)==-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}}d=0;a=0;if((u|0)!=3072)break s;while(1){b=3072; -if((ke(m)|0)==-1)break r;e=!a&d>>>0<23;d=d+1|0;a=d?a:a+1|0;if(e)continue;break}break r}if((b&65280)==32768){b=u;break r}if(u-176>>>0<32){b=u;break r}a=b&65535;if((a|0)==255){b=u;break r}if((a|0)==65535){b=u;break r}if(!(u>>>0<=33023&u-208>>>0>46)){H[k+64|0]=0;b=k- -64|0;d=Gc(b,1,2,m);a=K[k+64|0]|K[k+65|0]<<8;b=Mi(Oi(m),b);Ia:{e=b?0:J[k+88>>2];a=(d|0)!=2?-1:a<<8|a>>>8;b=a&65535;if(e>>>0>=b>>>0){if(b)break Ia;b=u;break r}a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[226029]|K[226030]<< -8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+ -295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}b=a&65535;d=0;a=0;while(1){if((ke(m)|0)==-1){b=u;break r}d=d+1|0;a=d?a:a+1|0;if(!a&b>>>0>d>>>0)continue;break}b=u;break r}if(u-256>>>0>32511){b=u;break r}a=Mi(Oi(m),k- -64|0);Ja:{e=a?0:J[k+88>>2];a=b>>>7&255;if(e>>>0>=a>>>0){if(a)break Ja;b=u;break r}a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[226029]|K[226030]<<8|(K[226031]<<16|K[226032]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+ -311|0]=a>>>24;a=K[226025]|K[226026]<<8|(K[226027]<<16|K[226028]<<24);b=K[226021]|K[226022]<<8|(K[226023]<<16|K[226024]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[226017]|K[226018]<<8|(K[226019]<<16|K[226020]<<24);b=K[226013]|K[226014]<<8|(K[226015]<<16|K[226016]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}b= -a;d=0;a=0;while(1){if((ke(m)|0)==-1){b=u;break r}d=d+1|0;a=d?a:a+1|0;if(!a&b>>>0>d>>>0)continue;break}b=u}f=1;if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break a;continue}break}a=J[c+144>>2];if(a){Kb(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[227173]|K[227174]<<8|(K[227175]<<16|K[227176]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[227169]|K[227170]<<8|(K[227171]<<16|K[227172]<<24);b=K[227165]|K[227166]<<8|(K[227167]<<16|K[227168]<<24);H[c+308|0]=b;H[c+309|0]=b>>> -8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[227161]|K[227162]<<8|(K[227163]<<16|K[227164]<<24);b=K[227157]|K[227158]<<8|(K[227159]<<16|K[227160]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[227153]|K[227154]<<8|(K[227155]<<16|K[227156]<<24);b=K[227149]|K[227150]<<8|(K[227151]<<16|K[227152]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>> -16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}xb=k+160|0;return f|0}function xZ(a,b,c,d){a=a|0;b=b|0;c=+c;d=+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;h=xb+-64|0;xb=h;a:{b:{c:{d:{e:{f:{g:{e=J[a+72>>2];if(!e){a=He(h+40|0,420840,420888);e=J[b+4>>2];if(e>>>0>2]){if(H[a+11|0]>=0){f=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=f;J[e+8>>2]=J[a+8>>2];break g}f=J[a+4>>2];j=J[a>>2];J[195395]=0;fa(1808,e|0,j|0,f|0);f=J[195395];J[195395]=0;if((f|0)!=1)break g; -break d}J[195395]=0;$(1971,b|0,a|0);b=J[195395];J[195395]=0;if((b|0)!=1){if(H[a+23|0]>=0)break f;Kb(J[a+12>>2]);break f}break c}h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{if(!(Ab[J[J[e>>2]+44>>2]](e)|0))break B;e=J[a+72>>2];e=Ab[J[J[e>>2]+44>>2]](e)|0;if(!e)break B;e=Bh(e,416016,416840,4);if(!e)break B;e=J[e+28>>2];if(!e)break B;j=e+4|0;break A}e=J[a+72>>2];j=Ab[J[J[e>>2]+40>>2]](e)|0}switch(Ab[J[J[j>>2]+16>>2]](j)|0){case 10:case 11:case 12:case 13:case 14:break u;case 3:break v; -case 5:break w;case 2:break x;case 0:break y;case 1:break z;default:break t}}a=He(h+40|0,420840,420888);e=J[b+4>>2];if(e>>>0>2]){if(H[a+11|0]>=0){f=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=f;J[e+8>>2]=J[a+8>>2];break i}f=J[a+4>>2];j=J[a>>2];J[195395]=0;fa(1808,e|0,j|0,f|0);f=J[195395];J[195395]=0;if((f|0)!=1)break i;break d}J[195395]=0;$(1971,b|0,a|0);b=J[195395];J[195395]=0;if((b|0)!=1){if(H[a+23|0]>=0)break h;Kb(J[a+12>>2]);break h}break c}pn(h+28|0,Ab[J[J[j>>2]+8>>2]](j)|0,Ab[J[J[j>>2]+28>>2]](j)& -255);J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)!=1){J[h+40>>2]=a;J[h+44>>2]=4;J[h+48>>2]=-2147483640;e=J[105213];J[a+8>>2]=J[105212];J[a+12>>2]=e;e=J[105211];J[a>>2]=J[105210];J[a+4>>2]=e;J[a+16>>2]=0;J[h+60>>2]=J[h+36>>2];e=J[h+32>>2];J[h+52>>2]=J[h+28>>2];J[h+56>>2]=e;C:{D:{e=J[b+4>>2];E:{if(e>>>0>2]){J[195395]=0;fa(1808,e|0,a|0,4);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[b+4>>2]=e;break C}a=J[h+56>>2];J[e+12>>2]=J[h+52>>2];J[e+16>>2]=a;J[e+20>>2]=J[h+60>>2];J[h+52>> -2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[b+4>>2]=e+24;break E}J[195395]=0;$(1971,b|0,h+40|0);a=J[195395];J[195395]=0;if((a|0)==1)break D;if(H[h+63|0]>=0)break E;Kb(J[h+52>>2])}if(H[h+51|0]>=0)break e;Kb(J[h+40>>2]);break e}a=Z()|0}Vb(h+40|0);break a}a=Z()|0;break b}f=h+28|0;i=Ab[J[J[j>>2]+24>>2]](j)|0;e=xb-112|0;xb=e;F:{G:{H:{I:{J:{K:{j=J[a+72>>2];if(j)if(Ab[J[J[j>>2]+40>>2]](j)|0)break K;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;break J}j=J[a+72>>2];n=O[Ab[J[J[j>>2]+72>>2]](j,2)>>3];j=J[a+72>>2];L:{if(!(Ab[J[J[j>> -2]+44>>2]](j)|0)){n=1/n;break L}j=J[a+72>>2];j=Ab[J[J[j>>2]+44>>2]](j)|0;n=R(+Ab[J[J[j>>2]+16>>2]](j));if(!(R(0-n)<=2.220446049250313E-16)){j=J[a+72>>2];j=Ab[J[J[j>>2]+44>>2]](j)|0;if(Ab[J[J[j>>2]+12>>2]](j)&983040)break L}n=1}j=J[a+72>>2];j=Ab[J[J[j>>2]+40>>2]](j)|0;g=Ab[J[J[j>>2]+8>>2]](j)|0;j=J[a+72>>2];j=Ab[J[J[j>>2]+40>>2]](j)|0;pn(e+100|0,g,Ab[J[J[j>>2]+28>>2]](j)&255);J[195395]=0;H[e+68|0]=255;J[e+64>>2]=-1;H[e+44|0]=255;J[e+24>>2]=-1;J[e+28>>2]=0;j=e+72|0;J[j+4>>2]=0;J[j+8>>2]=0;J[j>>2]=743888; -J[j+12>>2]=0;J[j+16>>2]=0;g=J[195395];J[195395]=0;if((g|0)==1)break I;O[e+56>>3]=d;O[e+48>>3]=c;g=J[a+56>>2]+1|0;J[a+56>>2]=g;J[e+28>>2]=g;J[e+24>>2]=i;i=J[a+72>>2];g=J[J[i>>2]+40>>2];J[195395]=0;i=_(g|0,i|0)|0;g=J[195395];J[195395]=0;M:{N:{O:{P:{Q:{if((g|0)==1)break Q;g=J[J[i>>2]+8>>2];J[195395]=0;g=_(g|0,i|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Q;i=J[a+72>>2];k=J[J[i>>2]+40>>2];J[195395]=0;i=_(k|0,i|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break Q;k=J[J[i>>2]+28>>2];J[195395]=0;i=_(k|0, -i|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break Q;H[e+44|0]=i;J[e+40>>2]=g;O[e+32>>3]=n;i=J[a+72>>2];g=J[J[i>>2]+52>>2];J[195395]=0;i=_(g|0,i|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Q;if((i|0)!=1){i=J[a+72>>2];g=J[J[i>>2]+56>>2];J[195395]=0;i=_(g|0,i|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Q;H[e+68|0]=255;J[e+64>>2]=i}J[195395]=0;i=_(3128,e+24|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Q;if(!i)break N;J[195395]=0;i=e+12|0;$(3129,i|0,j|0);g=J[195395];J[195395]=0;if((g|0)==1)break P; -J[195395]=0;k=a+60|0;g=i;a=K[e+23|0];i=a<<24>>24<0;aa(1864,k|0,(i?J[e+12>>2]:g)|0,(i?J[e+16>>2]:a)|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break O;if(H[e+23|0]<0)Kb(J[e+12>>2]);J[195395]=0;$(3130,f|0,e+24|0);a=J[195395];J[195395]=0;if((a|0)!=1)break M}a=Z()|0;break H}a=Z()|0;break H}a=Z()|0;if(H[e+23|0]>=0)break H;Kb(J[e+12>>2]);break H}J[a+56>>2]=J[a+56>>2]-1;J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0}ll(j);if(H[e+111|0]>=0)break J;Kb(J[e+100>>2])}xb=e+112|0;break F}a=Z()|0;break G}ll(j)}if(H[e+111|0]<0)Kb(J[e+ -100>>2]);break a}a=K[h+39|0];f=a<<24>>24;j=(f|0)<0?J[h+32>>2]:a;if(!j)break s;e=j+5|0;if(e>>>0>=1073741808){J[195395]=0;ea(1800,h+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break k;break j}R:{if(e>>>0<=1){J[h+16>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;H[h+19|0]=e;a=h+8|0;break R}a=e|3;if(a>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break j;break k}J[195395]=0;i=a+1|0;a=_(1078,i<<2)|0;g=J[195395];J[195395]=0;if((g|0)==1)break k;J[h+12>>2]=e;J[h+8>>2]=a;J[h+16>>2]=i|-2147483648}J[a+ -16>>2]=J[105778];e=J[105777];J[a+8>>2]=J[105776];J[a+12>>2]=e;e=J[105775];J[a>>2]=J[105774];J[a+4>>2]=e;i=a+20|0;a=j<<2;p=qc(i,(f|0)<0?J[h+28>>2]:h+28|0,a)+a|0,q=0,J[p>>2]=q;J[195395]=0;a=ca(1858,h+8|0,423120)|0;e=J[195395];J[195395]=0;S:{T:{U:{V:{if((e|0)!=1){f=J[a>>2];J[h+20>>2]=J[a+4>>2];e=K[a+7|0]|K[a+8|0]<<8|(K[a+9|0]<<16|K[a+10|0]<<24);H[h+23|0]=e;H[h+24|0]=e>>>8;H[h+25|0]=e>>>16;H[h+26|0]=e>>>24;J[a>>2]=0;J[a+4>>2]=0;j=H[a+11|0];J[a+8>>2]=0;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]= -0;if((e|0)==1)break T;J[h+40>>2]=a;J[h+44>>2]=4;J[h+48>>2]=-2147483640;e=J[105213];J[a+8>>2]=J[105212];J[a+12>>2]=e;e=J[105211];J[a>>2]=J[105210];J[a+4>>2]=e;J[a+16>>2]=0;e=K[h+23|0]|K[h+24|0]<<8|(K[h+25|0]<<16|K[h+26|0]<<24);H[h+59|0]=e;H[h+60|0]=e>>>8;H[h+61|0]=e>>>16;H[h+62|0]=e>>>24;J[h+56>>2]=J[h+20>>2];J[h+52>>2]=f;H[h+63|0]=j;e=J[b+4>>2];W:{if(e>>>0>2]){J[195395]=0;fa(1808,e|0,a|0,4);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[b+4>>2]=e;break U}a=J[h+56>>2];J[e+12>>2]=J[h+52>>2]; -J[e+16>>2]=a;J[e+20>>2]=J[h+60>>2];J[h+52>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[b+4>>2]=e+24;break W}J[195395]=0;$(1971,b|0,h+40|0);a=J[195395];J[195395]=0;if((a|0)==1)break V;if(H[h+63|0]>=0)break W;Kb(J[h+52>>2])}if(H[h+51|0]<0)Kb(J[h+40>>2]);if(H[h+19|0]<0)Kb(J[h+8>>2]);if(H[h+39|0]>=0)break e;Kb(J[h+28>>2]);break e}a=Z()|0;break S}a=Z()|0}Vb(h+40|0);break S}a=Z()|0;if((j|0)>=0)break S;Kb(f)}if(H[h+19|0]>=0)break b;Kb(J[h+8>>2]);break b}e=xb-368|0;xb=e;X:{if(!(J[a+72>>2]?j:0)){J[h+28>>2]=0;J[h+32>> -2]=0;J[h+36>>2]=0;break X}i=e+320|0;f=i;J[f>>2]=0;J[f+4>>2]=0;H[f+40|0]=0;J[f+32>>2]=0;J[f+36>>2]=-1074790400;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[e+316>>2]=0;J[e+312>>2]=0;f=J[J[j>>2]+36>>2];J[195395]=0;$(f|0,e+296|0,j|0);f=J[195395];J[195395]=0;Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{if((f|0)!=1){g=K[e+307|0];f=g<<24>>24;f=(f|0)<0;g=f?J[e+300>>2]:g;if(f)Kb(J[e+296>>2]);ga:{ha:{ia:{ja:{ka:{la:{if(!g){J[e+ -296>>2]=0;f=J[J[j>>2]+48>>2];J[195395]=0;ia(f|0,j|0,e+296|0,e+316|0,e+312|0);f=J[195395];J[195395]=0;if((f|0)==1)break _;f=J[e+296>>2];if(J[e+312>>2]?!f|!J[e+316>>2]:1){J[h+28>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;break Y}J[195395]=0;J[i+16>>2]=f;f=J[195395];J[195395]=0;if((f|0)==1)break _;J[e+264>>2]=J[e+316>>2];J[195395]=0;J[i+4>>2]=J[e+264>>2];f=J[195395];J[195395]=0;ma:{if((f|0)!=1){J[195395]=0;J[e+264>>2]=J[e+312>>2];J[i+8>>2]=J[e+264>>2];f=J[195395];J[195395]=0;if((f|0)==1)break ma;J[195395]=0;J[e+ -264>>2]=J[e+316>>2]<<2;J[i+12>>2]=J[e+264>>2];f=J[195395];J[195395]=0;if((f|0)!=1)break la;f=Z()|0;break Z}f=Z()|0;break Z}f=Z()|0;break Z}f=J[J[j>>2]+36>>2];J[195395]=0;g=f;f=e+296|0;$(g|0,f|0,j|0);g=J[195395];J[195395]=0;if((g|0)==1)break ka;J[195395]=0;H[e+264|0]=0;ha(3131,i|0,f|0,0,e+264|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ja;if(H[e+307|0]<0)Kb(J[e+296>>2]);J[195395]=0;f=J[i+4>>2];g=J[195395];J[195395]=0;if((g|0)==1)break ia;J[195395]=0;J[e+316>>2]=f;f=J[i+8>>2];g=J[195395];J[195395]= -0;if((g|0)==1)break ia;J[e+312>>2]=f}J[e+292>>2]=0;J[e+304>>2]=0;J[195395]=0;J[e+296>>2]=0;J[e+300>>2]=0;ha(1137,i|0,e+292|0,e+288|0,4)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ga;J[195395]=0;J[i+16>>2]=0;f=J[195395];J[195395]=0;if((f|0)==1)break ga;f=J[e+292>>2];if(f){g=J[e+288>>2];if(g)break ha}J[h+28>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;break $}f=Z()|0;break Z}f=Z()|0;if(H[e+307|0]>=0)break Z;Kb(J[e+296>>2]);break Z}f=Z()|0;break Z}J[e+284>>2]=0;J[195395]=0;J[e+280>>2]=0;ka(3132,f|0,g|0,e+284|0, -e+280|0,2)|0;f=J[195395];J[195395]=0;na:{if((f|0)!=1){f=J[e+292>>2];if(f)Kb(f);if(J[e+280>>2]?J[e+284>>2]:0)break na;J[h+28>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;break $}f=Z()|0;break ba}f=J[a+56>>2]+1|0;J[a+56>>2]=f;J[195395]=0;g=e+252|0;da(1863,g|0,+(f>>>0),0);f=J[195395];J[195395]=0;oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{if((f|0)!=1){J[195395]=0;f=aa(1954,g|0,0,423360)|0;g=J[195395];J[195395]= -0;if((g|0)==1)break Ya;J[e+272>>2]=J[f+8>>2];g=J[f+4>>2];J[e+264>>2]=J[f>>2];J[e+268>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+275|0];g=f<<24>>24<0;aa(1864,e+296|0,(g?J[e+264>>2]:e+264|0)|0,(g?J[e+268>>2]:f)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Xa;if(H[e+275|0]<0)Kb(J[e+264>>2]);if(H[e+263|0]<0)Kb(J[e+252>>2]);J[195395]=0;ia(3133,e+264|0,J[e+284>>2],J[e+280>>2],0);f=J[195395];J[195395]=0;if((f|0)==1)break Va;f=J[a+72>>2];g=J[J[f>>2]+72>>2];J[195395]=0;f=ca(g|0,f|0,2)|0;g= -J[195395];J[195395]=0;if((g|0)==1)break Ua;c=O[f>>3];f=J[a+72>>2];g=J[J[f>>2]+44>>2];J[195395]=0;f=_(g|0,f|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ua;Za:{if(!f){c=1/c;break Za}f=J[a+72>>2];g=J[J[f>>2]+44>>2];J[195395]=0;f=_(g|0,f|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ua;g=J[J[f>>2]+16>>2];J[195395]=0;c=+va(g|0,f|0);f=J[195395];J[195395]=0;if((f|0)==1)break Ua;J[195395]=0;c=R(c);f=J[195395];J[195395]=0;if((f|0)==1)break Ua;if(!(R(0-c)<=2.220446049250313E-16)){f=J[a+72>>2];g=J[J[f>> -2]+44>>2];J[195395]=0;f=_(g|0,f|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ua;g=J[J[f>>2]+12>>2];J[195395]=0;f=_(g|0,f|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ua;if(f&983040)break Za}c=1}J[195395]=0;da(1863,e+252|0,+(c*+M[e+316>>2]),-1);f=J[195395];J[195395]=0;if((f|0)==1)break Sa;J[195395]=0;da(1863,e+240|0,+(c*+M[e+312>>2]),-1);f=J[195395];J[195395]=0;if((f|0)==1)break Ra;k=H[e+307|0];l=(k|0)<0?J[e+300>>2]:k&255;g=l+13|0;if(g>>>0<1073741808)break Ta;J[195395]=0;ea(1800,e|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break fa;break aa}f=Z()|0;break ba}f=Z()|0;break Wa}f=Z()|0;if(H[e+275|0]>=0)break Wa;Kb(J[e+264>>2])}if(H[e+263|0]>=0)break ba;Kb(J[e+252>>2]);break ba}f=Z()|0;break ba}f=Z()|0;break ca}_a:{if(g>>>0<=1){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;H[e+11|0]=g;f=e;break _a}f=g|3;if(f>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break aa;break fa}J[195395]=0;m=f+1|0;f=_(1078,m<<2)|0;o=J[195395];J[195395]=0;if((o|0)==1)break fa;J[e+4>>2]=g;J[e>>2]=f;J[e+8>> -2]=m|-2147483648}J[f+48>>2]=J[105864];g=J[105863];J[f+40>>2]=J[105862];J[f+44>>2]=g;g=J[105861];J[f+32>>2]=J[105860];J[f+36>>2]=g;g=J[105859];J[f+24>>2]=J[105858];J[f+28>>2]=g;g=J[105857];J[f+16>>2]=J[105856];J[f+20>>2]=g;g=J[105855];J[f+8>>2]=J[105854];J[f+12>>2]=g;g=J[105853];J[f>>2]=J[105852];J[f+4>>2]=g;g=f+52|0;f=l<<2;p=qc(g,(k|0)<0?J[e+296>>2]:e+296|0,f)+f|0,q=0,J[p>>2]=q;J[195395]=0;f=ca(1858,e|0,420632)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Qa;J[e+24>>2]=J[f+8>>2];g=J[f+4>>2];J[e+16>> -2]=J[f>>2];J[e+20>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+16|0,420644)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Pa;J[e+40>>2]=J[f+8>>2];g=J[f+4>>2];J[e+32>>2]=J[f>>2];J[e+36>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+263|0];g=f<<24>>24<0;f=aa(1864,e+32|0,(g?J[e+252>>2]:e+252|0)|0,(g?J[e+256>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Oa;J[e+56>>2]=J[f+8>>2];g=J[f+4>>2];J[e+48>>2]=J[f>>2];J[e+52>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0; -f=ca(1858,e+48|0,420676)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Na;J[e+72>>2]=J[f+8>>2];g=J[f+4>>2];J[e+64>>2]=J[f>>2];J[e+68>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+251|0];g=f<<24>>24<0;f=aa(1864,e- -64|0,(g?J[e+240>>2]:e+240|0)|0,(g?J[e+244>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ma;J[e+88>>2]=J[f+8>>2];g=J[f+4>>2];J[e+80>>2]=J[f>>2];J[e+84>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+80|0,423464)|0;g=J[195395];J[195395]=0;if((g|0)==1)break La; -J[e+104>>2]=J[f+8>>2];g=J[f+4>>2];J[e+96>>2]=J[f>>2];J[e+100>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+96|0,423596)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ka;J[e+120>>2]=J[f+8>>2];g=J[f+4>>2];J[e+112>>2]=J[f>>2];J[e+116>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+275|0];g=f<<24>>24<0;f=aa(1864,e+112|0,(g?J[e+264>>2]:e+264|0)|0,(g?J[e+268>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ja;J[e+136>>2]=J[f+8>>2];g=J[f+4>>2];J[e+128>>2]=J[f>>2];J[e+132>> -2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+128|0,423764)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ia;J[e+152>>2]=J[f+8>>2];g=J[f+4>>2];J[e+144>>2]=J[f>>2];J[e+148>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+263|0];g=f<<24>>24<0;f=aa(1864,e+144|0,(g?J[e+252>>2]:e+252|0)|0,(g?J[e+256>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ha;J[e+168>>2]=J[f+8>>2];g=J[f+4>>2];J[e+160>>2]=J[f>>2];J[e+164>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858, -e+160|0,420676)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ga;J[e+184>>2]=J[f+8>>2];g=J[f+4>>2];J[e+176>>2]=J[f>>2];J[e+180>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+251|0];g=f<<24>>24<0;f=aa(1864,e+176|0,(g?J[e+240>>2]:e+240|0)|0,(g?J[e+244>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Fa;J[e+200>>2]=J[f+8>>2];g=J[f+4>>2];J[e+192>>2]=J[f>>2];J[e+196>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+192|0,422068)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ea; -J[e+216>>2]=J[f+8>>2];g=J[f+4>>2];J[e+208>>2]=J[f>>2];J[e+212>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+208|0,423852)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Da;J[e+232>>2]=J[f+8>>2];g=J[f+4>>2];J[e+224>>2]=J[f>>2];J[e+228>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+235|0];g=f<<24>>24<0;aa(1864,a+60|0,(g?J[e+224>>2]:e+224|0)|0,(g?J[e+228>>2]:f)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Ca;if(H[e+235|0]<0)Kb(J[e+224>>2]);if(H[e+219|0]<0)Kb(J[e+208>>2]); -if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);if(H[e+139|0]<0)Kb(J[e+128>>2]);if(H[e+123|0]<0)Kb(J[e+112>>2]);if(H[e+107|0]<0)Kb(J[e+96>>2]);if(H[e+91|0]<0)Kb(J[e+80>>2]);if(H[e+75|0]<0)Kb(J[e+64>>2]);if(H[e+59|0]<0)Kb(J[e+48>>2]);if(H[e+43|0]<0)Kb(J[e+32>>2]);if(H[e+27|0]<0)Kb(J[e+16>>2]);if(H[e+11|0]<0)Kb(J[e>>2]);f=J[e+284>>2];if(f)Kb(f);f=J[e+300>>2];J[h+28>>2]=J[e+296>>2];J[h+32>>2]=f;J[h+36>>2]=J[e+304>>2];J[e+ -304>>2]=0;J[e+296>>2]=0;J[e+300>>2]=0;if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+263|0]<0)Kb(J[e+252>>2]);if(H[e+275|0]>=0)break $;Kb(J[e+264>>2]);break $}f=Z()|0;break ca}f=Z()|0;break da}f=Z()|0;break oa}f=Z()|0;break pa}f=Z()|0;break qa}f=Z()|0;break ra}f=Z()|0;break sa}f=Z()|0;break ta}f=Z()|0;break ua}f=Z()|0;break va}f=Z()|0;break wa}f=Z()|0;break xa}f=Z()|0;break ya}f=Z()|0;break za}f=Z()|0;break Aa}f=Z()|0;break Ba}f=Z()|0;if(H[e+235|0]>=0)break Ba;Kb(J[e+224>>2])}if(H[e+219|0]>=0)break Aa;Kb(J[e+ -208>>2])}if(H[e+203|0]>=0)break za;Kb(J[e+192>>2])}if(H[e+187|0]>=0)break ya;Kb(J[e+176>>2])}if(H[e+171|0]>=0)break xa;Kb(J[e+160>>2])}if(H[e+155|0]>=0)break wa;Kb(J[e+144>>2])}if(H[e+139|0]>=0)break va;Kb(J[e+128>>2])}if(H[e+123|0]>=0)break ua;Kb(J[e+112>>2])}if(H[e+107|0]>=0)break ta;Kb(J[e+96>>2])}if(H[e+91|0]>=0)break sa;Kb(J[e+80>>2])}if(H[e+75|0]>=0)break ra;Kb(J[e+64>>2])}if(H[e+59|0]>=0)break qa;Kb(J[e+48>>2])}if(H[e+43|0]>=0)break pa;Kb(J[e+32>>2])}if(H[e+27|0]>=0)break oa;Kb(J[e+16>>2])}if(H[e+ -11|0]>=0)break ea;Kb(J[e>>2]);break ea}f=Z()|0;break ba}f=Z()|0;break Z}f=Z()|0}if(H[e+251|0]>=0)break da;Kb(J[e+240>>2])}if(H[e+263|0]>=0)break ca;Kb(J[e+252>>2])}if(H[e+275|0]>=0)break ba;Kb(J[e+264>>2])}if(H[e+307|0]>=0)break Z;Kb(J[e+296>>2]);break Z}B()}if(H[e+307|0]>=0)break Y;Kb(J[e+296>>2]);break Y}f=Z()|0}kd(i);ba(f|0);B()}kd(i)}xb=e+368|0;e=K[h+39|0];f=e<<24>>24;i=(f|0)<0?J[h+32>>2]:e;if(i){e=i+5|0;if(e>>>0>=1073741808){J[195395]=0;ea(1800,h+8|0);a=J[195395];J[195395]=0;if((a|0)!=1)break j; -break l}$a:{if(e>>>0<=1){J[h+16>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;H[h+19|0]=e;a=h+8|0;break $a}a=e|3;if(a>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break j;break l}J[195395]=0;j=a+1|0;a=_(1078,j<<2)|0;g=J[195395];J[195395]=0;if((g|0)==1)break l;J[h+12>>2]=e;J[h+8>>2]=a;J[h+16>>2]=j|-2147483648}J[a+16>>2]=J[105778];e=J[105777];J[a+8>>2]=J[105776];J[a+12>>2]=e;e=J[105775];J[a>>2]=J[105774];J[a+4>>2]=e;e=a+20|0;a=i<<2;p=qc(e,(f|0)<0?J[h+28>>2]:h+28|0,a)+a|0,q=0,J[p>>2]=q; -J[195395]=0;a=ca(1858,h+8|0,423120)|0;e=J[195395];J[195395]=0;ab:{bb:{cb:{db:{if((e|0)!=1){f=J[a>>2];J[h+20>>2]=J[a+4>>2];e=K[a+7|0]|K[a+8|0]<<8|(K[a+9|0]<<16|K[a+10|0]<<24);H[h+23|0]=e;H[h+24|0]=e>>>8;H[h+25|0]=e>>>16;H[h+26|0]=e>>>24;J[a>>2]=0;J[a+4>>2]=0;j=H[a+11|0];J[a+8>>2]=0;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break bb;J[h+40>>2]=a;J[h+44>>2]=4;J[h+48>>2]=-2147483640;e=J[105213];J[a+8>>2]=J[105212];J[a+12>>2]=e;e=J[105211];J[a>>2]=J[105210];J[a+4>>2]=e;J[a+16>>2]= -0;e=K[h+23|0]|K[h+24|0]<<8|(K[h+25|0]<<16|K[h+26|0]<<24);H[h+59|0]=e;H[h+60|0]=e>>>8;H[h+61|0]=e>>>16;H[h+62|0]=e>>>24;J[h+56>>2]=J[h+20>>2];J[h+52>>2]=f;H[h+63|0]=j;e=J[b+4>>2];eb:{if(e>>>0>2]){J[195395]=0;fa(1808,e|0,a|0,4);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[b+4>>2]=e;break cb}a=J[h+56>>2];J[e+12>>2]=J[h+52>>2];J[e+16>>2]=a;J[e+20>>2]=J[h+60>>2];J[h+52>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[b+4>>2]=e+24;break eb}J[195395]=0;$(1971,b|0,h+40|0);a=J[195395];J[195395]=0;if((a|0)==1)break db; -if(H[h+63|0]>=0)break eb;Kb(J[h+52>>2])}if(H[h+51|0]<0)Kb(J[h+40>>2]);if(H[h+19|0]<0)Kb(J[h+8>>2]);if(H[h+39|0]>=0)break e;Kb(J[h+28>>2]);break e}a=Z()|0;break ab}a=Z()|0}Vb(h+40|0);break ab}a=Z()|0;if((j|0)>=0)break ab;Kb(f)}if(H[h+19|0]>=0)break b;Kb(J[h+8>>2]);break b}if((f|0)>=0)break v;Kb(J[h+28>>2])}e=xb-384|0;xb=e;fb:{if(!(J[a+72>>2]?j:0)){J[h+28>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;break fb}Ab[J[J[j>>2]+36>>2]](e+372|0,j);i=K[e+383|0];f=i<<24>>24;gb:{if(!((f|0)<0?J[e+376>>2]:i)){J[h+28>>2]=0;J[h+ -32>>2]=0;J[h+36>>2]=0;break gb}J[195395]=0;i=e+320|0;J[i>>2]=0;J[i+4>>2]=0;H[i+40|0]=0;J[i+32>>2]=0;J[i+36>>2]=-1074790400;H[i+21|0]=0;H[i+22|0]=0;H[i+23|0]=0;H[i+24|0]=0;H[i+25|0]=0;H[i+26|0]=0;H[i+27|0]=0;H[i+28|0]=0;J[i+16>>2]=0;J[i+20>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0;f=J[195395];J[195395]=0;hb:{ib:{jb:{kb:{lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:{if((f|0)!=1){J[195395]=0;H[e+296|0]=0;ha(3131,i|0,e+372|0,0,e+296|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break sb;J[e+316>>2]=0;J[e+304>>2]=0;J[195395]=0;J[e+ -296>>2]=0;J[e+300>>2]=0;ha(1137,i|0,e+316|0,e+312|0,4)|0;f=J[195395];J[195395]=0;if((f|0)==1)break qb;f=J[e+316>>2];if(f){g=J[e+312>>2];if(g)break rb}J[h+28>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;break hb}a=Z()|0;break jb}a=Z()|0;break kb}J[e+292>>2]=0;J[195395]=0;J[e+288>>2]=0;ka(3132,f|0,g|0,e+292|0,e+288|0,2)|0;f=J[195395];J[195395]=0;tb:{if((f|0)!=1){f=J[e+316>>2];if(f)Kb(f);if(J[e+288>>2]?J[e+292>>2]:0)break tb;J[h+28>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;break hb}a=Z()|0;break lb}f=J[a+56>>2]+1|0;J[a+56>> -2]=f;J[195395]=0;g=e+260|0;da(1863,g|0,+(f>>>0),0);f=J[195395];J[195395]=0;ub:{vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{Tb:{Ub:{Vb:{Wb:{Xb:{Yb:{Zb:{_b:{$b:{ac:{if((f|0)!=1){J[195395]=0;f=aa(1954,g|0,0,423900)|0;g=J[195395];J[195395]=0;if((g|0)==1)break ac;J[e+280>>2]=J[f+8>>2];g=J[f+4>>2];J[e+272>>2]=J[f>>2];J[e+276>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+283|0];g=f<<24>>24<0;aa(1864,e+296|0,(g?J[e+272>>2]:e+272|0)|0,(g?J[e+ -276>>2]:f)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break $b;if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+271|0]<0)Kb(J[e+260>>2]);J[195395]=0;ia(3133,e+272|0,J[e+292>>2],J[e+288>>2],0);f=J[195395];J[195395]=0;if((f|0)==1)break Zb;J[195395]=0;f=J[i+4>>2];g=J[195395];J[195395]=0;if((g|0)==1)break Yb;J[195395]=0;da(1863,e+260|0,+(f|0),-1);f=J[195395];J[195395]=0;if((f|0)==1)break Yb;J[195395]=0;f=J[i+8>>2];g=J[195395];J[195395]=0;if((g|0)==1)break Xb;J[195395]=0;da(1863,e+248|0,+(f|0),-1);f=J[195395];J[195395]= -0;if((f|0)==1)break Xb;k=H[e+307|0];l=(k|0)<0?J[e+300>>2]:k&255;g=l+13|0;if(g>>>0>=1073741808){J[195395]=0;ea(1800,e+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break pb;break ib}bc:{if(g>>>0<=1){J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;H[e+19|0]=g;f=e+8|0;break bc}f=g|3;if(f>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break ib;break pb}J[195395]=0;m=f+1|0;f=_(1078,m<<2)|0;o=J[195395];J[195395]=0;if((o|0)==1)break pb;J[e+12>>2]=g;J[e+8>>2]=f;J[e+16>>2]=m|-2147483648}J[f+48>> -2]=J[105864];g=J[105863];J[f+40>>2]=J[105862];J[f+44>>2]=g;g=J[105861];J[f+32>>2]=J[105860];J[f+36>>2]=g;g=J[105859];J[f+24>>2]=J[105858];J[f+28>>2]=g;g=J[105857];J[f+16>>2]=J[105856];J[f+20>>2]=g;g=J[105855];J[f+8>>2]=J[105854];J[f+12>>2]=g;g=J[105853];J[f>>2]=J[105852];J[f+4>>2]=g;g=f+52|0;f=l<<2;p=qc(g,(k|0)<0?J[e+296>>2]:e+296|0,f)+f|0,q=0,J[p>>2]=q;J[195395]=0;f=ca(1858,e+8|0,420632)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Wb;J[e+32>>2]=J[f+8>>2];g=J[f+4>>2];J[e+24>>2]=J[f>>2];J[e+28>>2]= -g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+24|0,420644)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Vb;J[e+48>>2]=J[f+8>>2];g=J[f+4>>2];J[e+40>>2]=J[f>>2];J[e+44>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+271|0];g=f<<24>>24<0;f=aa(1864,e+40|0,(g?J[e+260>>2]:e+260|0)|0,(g?J[e+264>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ub;J[e- -64>>2]=J[f+8>>2];g=J[f+4>>2];J[e+56>>2]=J[f>>2];J[e+60>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+56|0,420676)| -0;g=J[195395];J[195395]=0;if((g|0)==1)break Tb;J[e+80>>2]=J[f+8>>2];g=J[f+4>>2];J[e+72>>2]=J[f>>2];J[e+76>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+259|0];g=f<<24>>24<0;f=aa(1864,e+72|0,(g?J[e+248>>2]:e+248|0)|0,(g?J[e+252>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Sb;J[e+96>>2]=J[f+8>>2];g=J[f+4>>2];J[e+88>>2]=J[f>>2];J[e+92>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+88|0,423936)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Rb;J[e+112>>2]=J[f+8>>2]; -g=J[f+4>>2];J[e+104>>2]=J[f>>2];J[e+108>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+104|0,423596)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Qb;J[e+128>>2]=J[f+8>>2];g=J[f+4>>2];J[e+120>>2]=J[f>>2];J[e+124>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+283|0];g=f<<24>>24<0;f=aa(1864,e+120|0,(g?J[e+272>>2]:e+272|0)|0,(g?J[e+276>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Pb;J[e+144>>2]=J[f+8>>2];g=J[f+4>>2];J[e+136>>2]=J[f>>2];J[e+140>>2]=g;J[f>>2]=0;J[f+4>> -2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+136|0,423764)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ob;J[e+160>>2]=J[f+8>>2];g=J[f+4>>2];J[e+152>>2]=J[f>>2];J[e+156>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+271|0];g=f<<24>>24<0;f=aa(1864,e+152|0,(g?J[e+260>>2]:e+260|0)|0,(g?J[e+264>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Nb;J[e+176>>2]=J[f+8>>2];g=J[f+4>>2];J[e+168>>2]=J[f>>2];J[e+172>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+168|0,420676)|0;g=J[195395]; -J[195395]=0;if((g|0)==1)break Mb;J[e+192>>2]=J[f+8>>2];g=J[f+4>>2];J[e+184>>2]=J[f>>2];J[e+188>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+259|0];g=f<<24>>24<0;f=aa(1864,e+184|0,(g?J[e+248>>2]:e+248|0)|0,(g?J[e+252>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Lb;J[e+208>>2]=J[f+8>>2];g=J[f+4>>2];J[e+200>>2]=J[f>>2];J[e+204>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+200|0,422068)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Kb;J[e+224>>2]=J[f+8>>2];g=J[f+ -4>>2];J[e+216>>2]=J[f>>2];J[e+220>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+216|0,423852)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Jb;J[e+240>>2]=J[f+8>>2];g=J[f+4>>2];J[e+232>>2]=J[f>>2];J[e+236>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+243|0];g=f<<24>>24<0;aa(1864,a+60|0,(g?J[e+232>>2]:e+232|0)|0,(g?J[e+236>>2]:f)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Ib;if(H[e+243|0]<0)Kb(J[e+232>>2]);if(H[e+227|0]<0)Kb(J[e+216>>2]);if(H[e+211|0]<0)Kb(J[e+200>> -2]);if(H[e+195|0]<0)Kb(J[e+184>>2]);if(H[e+179|0]<0)Kb(J[e+168>>2]);if(H[e+163|0]<0)Kb(J[e+152>>2]);if(H[e+147|0]<0)Kb(J[e+136>>2]);if(H[e+131|0]<0)Kb(J[e+120>>2]);if(H[e+115|0]<0)Kb(J[e+104>>2]);if(H[e+99|0]<0)Kb(J[e+88>>2]);if(H[e+83|0]<0)Kb(J[e+72>>2]);if(H[e+67|0]<0)Kb(J[e+56>>2]);if(H[e+51|0]<0)Kb(J[e+40>>2]);if(H[e+35|0]<0)Kb(J[e+24>>2]);if(H[e+19|0]<0)Kb(J[e+8>>2]);f=J[e+292>>2];if(f)Kb(f);f=J[e+300>>2];J[h+28>>2]=J[e+296>>2];J[h+32>>2]=f;J[h+36>>2]=J[e+304>>2];J[e+304>>2]=0;J[e+296>>2]=0; -J[e+300>>2]=0;if(H[e+259|0]<0)Kb(J[e+248>>2]);if(H[e+271|0]<0)Kb(J[e+260>>2]);if(H[e+283|0]>=0)break hb;Kb(J[e+272>>2]);break hb}a=Z()|0;break lb}a=Z()|0;break _b}a=Z()|0;if(H[e+283|0]>=0)break _b;Kb(J[e+272>>2])}if(H[e+271|0]>=0)break lb;Kb(J[e+260>>2]);break lb}a=Z()|0;break lb}a=Z()|0;break mb}a=Z()|0;break nb}a=Z()|0;break ub}a=Z()|0;break vb}a=Z()|0;break wb}a=Z()|0;break xb}a=Z()|0;break yb}a=Z()|0;break zb}a=Z()|0;break Ab}a=Z()|0;break Bb}a=Z()|0;break Cb}a=Z()|0;break Db}a=Z()|0;break Eb}a= -Z()|0;break Fb}a=Z()|0;break Gb}a=Z()|0;break Hb}a=Z()|0;if(H[e+243|0]>=0)break Hb;Kb(J[e+232>>2])}if(H[e+227|0]>=0)break Gb;Kb(J[e+216>>2])}if(H[e+211|0]>=0)break Fb;Kb(J[e+200>>2])}if(H[e+195|0]>=0)break Eb;Kb(J[e+184>>2])}if(H[e+179|0]>=0)break Db;Kb(J[e+168>>2])}if(H[e+163|0]>=0)break Cb;Kb(J[e+152>>2])}if(H[e+147|0]>=0)break Bb;Kb(J[e+136>>2])}if(H[e+131|0]>=0)break Ab;Kb(J[e+120>>2])}if(H[e+115|0]>=0)break zb;Kb(J[e+104>>2])}if(H[e+99|0]>=0)break yb;Kb(J[e+88>>2])}if(H[e+83|0]>=0)break xb;Kb(J[e+ -72>>2])}if(H[e+67|0]>=0)break wb;Kb(J[e+56>>2])}if(H[e+51|0]>=0)break vb;Kb(J[e+40>>2])}if(H[e+35|0]>=0)break ub;Kb(J[e+24>>2])}if(H[e+19|0]>=0)break ob;Kb(J[e+8>>2]);break ob}a=Z()|0;break lb}a=Z()|0}if(H[e+259|0]>=0)break nb;Kb(J[e+248>>2])}if(H[e+271|0]>=0)break mb;Kb(J[e+260>>2])}if(H[e+283|0]>=0)break lb;Kb(J[e+272>>2])}if(H[e+307|0]>=0)break kb;Kb(J[e+296>>2])}kd(i)}if(H[e+383|0]<0)Kb(J[e+372>>2]);break a}B()}if(H[e+307|0]<0)Kb(J[e+296>>2]);kd(i);f=K[e+383|0]}if(f<<24>>24>=0)break fb;Kb(J[e+ -372>>2])}xb=e+384|0;e=K[h+39|0];f=e<<24>>24;i=(f|0)<0?J[h+32>>2]:e;if(i){e=i+5|0;if(e>>>0>=1073741808){J[195395]=0;ea(1800,h+8|0);a=J[195395];J[195395]=0;if((a|0)!=1)break j;break m}cc:{if(e>>>0<=1){J[h+16>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;H[h+19|0]=e;a=h+8|0;break cc}a=e|3;if(a>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break j;break m}J[195395]=0;j=a+1|0;a=_(1078,j<<2)|0;g=J[195395];J[195395]=0;if((g|0)==1)break m;J[h+12>>2]=e;J[h+8>>2]=a;J[h+16>>2]=j|-2147483648}J[a+ -16>>2]=J[105778];e=J[105777];J[a+8>>2]=J[105776];J[a+12>>2]=e;e=J[105775];J[a>>2]=J[105774];J[a+4>>2]=e;e=a+20|0;a=i<<2;p=qc(e,(f|0)<0?J[h+28>>2]:h+28|0,a)+a|0,q=0,J[p>>2]=q;J[195395]=0;a=ca(1858,h+8|0,423120)|0;e=J[195395];J[195395]=0;dc:{ec:{fc:{gc:{if((e|0)!=1){f=J[a>>2];J[h+20>>2]=J[a+4>>2];e=K[a+7|0]|K[a+8|0]<<8|(K[a+9|0]<<16|K[a+10|0]<<24);H[h+23|0]=e;H[h+24|0]=e>>>8;H[h+25|0]=e>>>16;H[h+26|0]=e>>>24;J[a>>2]=0;J[a+4>>2]=0;j=H[a+11|0];J[a+8>>2]=0;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]= -0;if((e|0)==1)break ec;J[h+40>>2]=a;J[h+44>>2]=4;J[h+48>>2]=-2147483640;e=J[105213];J[a+8>>2]=J[105212];J[a+12>>2]=e;e=J[105211];J[a>>2]=J[105210];J[a+4>>2]=e;J[a+16>>2]=0;e=K[h+23|0]|K[h+24|0]<<8|(K[h+25|0]<<16|K[h+26|0]<<24);H[h+59|0]=e;H[h+60|0]=e>>>8;H[h+61|0]=e>>>16;H[h+62|0]=e>>>24;J[h+56>>2]=J[h+20>>2];J[h+52>>2]=f;H[h+63|0]=j;e=J[b+4>>2];hc:{if(e>>>0>2]){J[195395]=0;fa(1808,e|0,a|0,4);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[b+4>>2]=e;break fc}a=J[h+56>>2];J[e+12>>2]=J[h+52>> -2];J[e+16>>2]=a;J[e+20>>2]=J[h+60>>2];J[h+52>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[b+4>>2]=e+24;break hc}J[195395]=0;$(1971,b|0,h+40|0);a=J[195395];J[195395]=0;if((a|0)==1)break gc;if(H[h+63|0]>=0)break hc;Kb(J[h+52>>2])}if(H[h+51|0]<0)Kb(J[h+40>>2]);if(H[h+19|0]<0)Kb(J[h+8>>2]);if(H[h+39|0]>=0)break e;Kb(J[h+28>>2]);break e}a=Z()|0;break dc}a=Z()|0}Vb(h+40|0);break dc}a=Z()|0;if((j|0)>=0)break dc;Kb(f)}if(H[h+19|0]>=0)break b;Kb(J[h+8>>2]);break b}if((f|0)>=0)break u;Kb(J[h+28>>2])}e=xb-256|0;xb=e;ic:{if(!j){J[h+ -28>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;break ic}J[e+248>>2]=0;J[e+240>>2]=0;J[e+244>>2]=0;f=J[J[j>>2]+16>>2];J[195395]=0;f=_(f|0,j|0)|0;i=J[195395];J[195395]=0;jc:{kc:{lc:{mc:{nc:{oc:{if((i|0)==1)break oc;pc:{qc:{rc:{if((f|0)==10)break rc;f=J[J[j>>2]+16>>2];J[195395]=0;f=_(f|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break oc;if((f|0)==13)break rc;f=J[J[j>>2]+16>>2];J[195395]=0;f=_(f|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break oc;if((f|0)!=14)break qc}f=J[a+56>>2]+1|0;J[a+56>>2]=f;J[195395]= -0;i=e+224|0;da(1863,i|0,+(f>>>0),0);f=J[195395];J[195395]=0;sc:{tc:{uc:{vc:{wc:{xc:{yc:{zc:{Ac:{Bc:{Cc:{Dc:{Ec:{Fc:{Gc:{Hc:{Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{if((f|0)!=1){J[195395]=0;i=aa(1954,i|0,0,423948)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Nc;g=J[i>>2];J[e+208>>2]=J[i+4>>2];f=K[i+7|0]|K[i+8|0]<<8|(K[i+9|0]<<16|K[i+10|0]<<24);H[e+211|0]=f;H[e+212|0]=f>>>8;H[e+213|0]=f>>>16;H[e+214|0]=f>>>24;J[i>>2]=0;J[i+4>>2]=0;f=K[i+11|0];J[i+8>>2]=0;if(H[e+251|0]<0)Kb(J[e+240>>2]);J[e+240>>2]=g;J[e+244>>2]=J[e+ -208>>2];i=K[e+211|0]|K[e+212|0]<<8|(K[e+213|0]<<16|K[e+214|0]<<24);H[e+247|0]=i;H[e+248|0]=i>>>8;H[e+249|0]=i>>>16;H[e+250|0]=i>>>24;H[e+251|0]=f;if(H[e+235|0]<0){Kb(J[e+224>>2]);f=K[e+251|0]}g=f<<24>>24;k=(g|0)<0?J[e+244>>2]:f&255;i=k+20|0;if(i>>>0>=1073741808){J[195395]=0;ea(1800,e+96|0);a=J[195395];J[195395]=0;if((a|0)==1)break lc;break jc}Oc:{if(i>>>0<=1){J[e+104>>2]=0;J[e+96>>2]=0;J[e+100>>2]=0;H[e+107|0]=i;f=e+96|0;break Oc}f=i|3;if(f>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]= -0;if((a|0)!=1)break jc;break lc}J[195395]=0;l=f+1|0;f=_(1078,l<<2)|0;m=J[195395];J[195395]=0;if((m|0)==1)break lc;J[e+100>>2]=i;J[e+96>>2]=f;J[e+104>>2]=l|-2147483648}i=Mb(f,424012,80)+80|0;f=k<<2;p=qc(i,(g|0)<0?J[e+240>>2]:e+240|0,f)+f|0,q=0,J[p>>2]=q;J[195395]=0;f=ca(1858,e+96|0,423936)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Mc;J[e+120>>2]=J[f+8>>2];i=J[f+4>>2];J[e+112>>2]=J[f>>2];J[e+116>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+112|0,424096)|0;i=J[195395];J[195395]= -0;if((i|0)==1)break Lc;J[e+136>>2]=J[f+8>>2];i=J[f+4>>2];J[e+128>>2]=J[f>>2];J[e+132>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;f=J[J[j>>2]+8>>2];J[195395]=0;f=_(f|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Kc;i=J[J[j>>2]+28>>2];J[195395]=0;i=_(i|0,j|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Kc;J[195395]=0;g=e+80|0;fa(1975,g|0,f|0,i&255);f=J[195395];J[195395]=0;if((f|0)==1)break Kc;J[195395]=0;f=K[e+91|0];i=f<<24>>24<0;f=aa(1864,e+128|0,(i?J[e+80>>2]:g)|0,(i?J[e+84>>2]:f)|0)|0;i=J[195395]; -J[195395]=0;if((i|0)==1)break Jc;J[e+152>>2]=J[f+8>>2];i=J[f+4>>2];J[e+144>>2]=J[f>>2];J[e+148>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+144|0,422068)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Ic;J[e+168>>2]=J[f+8>>2];i=J[f+4>>2];J[e+160>>2]=J[f>>2];J[e+164>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+160|0,424220)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Hc;J[e+184>>2]=J[f+8>>2];i=J[f+4>>2];J[e+176>>2]=J[f>>2];J[e+180>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+ -8>>2]=0;f=J[J[j>>2]+12>>2];J[195395]=0;f=_(f|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Gc;i=J[J[j>>2]+32>>2];J[195395]=0;j=_(i|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Gc;J[195395]=0;i=e- -64|0;fa(1975,i|0,f|0,j&255);f=J[195395];J[195395]=0;if((f|0)==1)break Gc;J[195395]=0;f=K[e+75|0];j=f<<24>>24<0;f=aa(1864,e+176|0,(j?J[e+64>>2]:i)|0,(j?J[e+68>>2]:f)|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break Fc;J[e+200>>2]=J[f+8>>2];j=J[f+4>>2];J[e+192>>2]=J[f>>2];J[e+196>>2]=j;J[f>>2]=0; -J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+192|0,422068)|0;j=J[195395];J[195395]=0;if((j|0)==1)break Ec;J[e+216>>2]=J[f+8>>2];j=J[f+4>>2];J[e+208>>2]=J[f>>2];J[e+212>>2]=j;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+208|0,424352)|0;j=J[195395];J[195395]=0;if((j|0)==1)break Dc;J[e+232>>2]=J[f+8>>2];j=J[f+4>>2];J[e+224>>2]=J[f>>2];J[e+228>>2]=j;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;i=a+60|0;a=K[e+235|0];f=a<<24>>24<0;aa(1864,i|0,(f?J[e+224>>2]:e+224|0)|0,(f?J[e+228>>2]:a)| -0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break Cc;if(H[e+235|0]<0)Kb(J[e+224>>2]);if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+75|0]<0)Kb(J[e+64>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);if(H[e+91|0]<0)Kb(J[e+80>>2]);if(H[e+139|0]<0)Kb(J[e+128>>2]);if(H[e+123|0]<0)Kb(J[e+112>>2]);if(H[e+107|0]<0)Kb(J[e+96>>2]);J[h+36>>2]=J[e+248>>2];a=J[e+244>>2];J[h+28>>2]=J[e+240>>2];J[h+32>>2]=a;J[e+248>>2]=0;J[e+240>>2]=0;J[e+ -244>>2]=0;break pc}a=Z()|0;break kc}a=Z()|0;if(H[e+235|0]>=0)break kc;Kb(J[e+224>>2]);break kc}a=Z()|0;break sc}a=Z()|0;break tc}a=Z()|0;break uc}a=Z()|0;break vc}a=Z()|0;break wc}a=Z()|0;break xc}a=Z()|0;break yc}a=Z()|0;break zc}a=Z()|0;break Ac}a=Z()|0;break Bc}a=Z()|0;if(H[e+235|0]>=0)break Bc;Kb(J[e+224>>2])}if(H[e+219|0]>=0)break Ac;Kb(J[e+208>>2])}if(H[e+203|0]>=0)break zc;Kb(J[e+192>>2])}if(H[e+75|0]>=0)break yc;Kb(J[e+64>>2])}if(H[e+187|0]>=0)break xc;Kb(J[e+176>>2])}if(H[e+171|0]>=0)break wc; -Kb(J[e+160>>2])}if(H[e+155|0]>=0)break vc;Kb(J[e+144>>2])}if(H[e+91|0]>=0)break uc;Kb(J[e+80>>2])}if(H[e+139|0]>=0)break tc;Kb(J[e+128>>2])}if(H[e+123|0]>=0)break sc;Kb(J[e+112>>2])}if(H[e+107|0]>=0)break kc;Kb(J[e+96>>2]);break kc}f=J[J[j>>2]+16>>2];J[195395]=0;f=_(f|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break oc;Pc:{if((f|0)!=11){f=J[J[j>>2]+16>>2];J[195395]=0;f=_(f|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break oc;if((f|0)!=12)break Pc}f=J[a+56>>2]+1|0;J[a+56>>2]=f;J[195395]=0;i=e+224| -0;da(1863,i|0,+(f>>>0),0);f=J[195395];J[195395]=0;Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{Yc:{Zc:{_c:{$c:{ad:{bd:{if((f|0)!=1){J[195395]=0;f=aa(1954,i|0,0,424424)|0;i=J[195395];J[195395]=0;if((i|0)==1)break bd;g=J[f>>2];J[e+208>>2]=J[f+4>>2];i=K[f+7|0]|K[f+8|0]<<8|(K[f+9|0]<<16|K[f+10|0]<<24);H[e+211|0]=i;H[e+212|0]=i>>>8;H[e+213|0]=i>>>16;H[e+214|0]=i>>>24;J[f>>2]=0;J[f+4>>2]=0;i=K[f+11|0];J[f+8>>2]=0;if(H[e+251|0]<0)Kb(J[e+240>>2]);J[e+240>>2]=g;J[e+244>>2]=J[e+208>>2];f=K[e+211|0]|K[e+212|0]<<8|(K[e+213| -0]<<16|K[e+214|0]<<24);H[e+247|0]=f;H[e+248|0]=f>>>8;H[e+249|0]=f>>>16;H[e+250|0]=f>>>24;H[e+251|0]=i;if(H[e+235|0]<0)Kb(J[e+224>>2]);J[e+56>>2]=0;J[e+60>>2]=-1042284544;J[e+48>>2]=0;J[e+52>>2]=-1042284544;f=J[J[j>>2]+44>>2];J[195395]=0;fa(f|0,j|0,e+56|0,e+48|0);f=J[195395];J[195395]=0;if((f|0)==1)break ad;J[e+232>>2]=0;J[e+224>>2]=0;J[e+228>>2]=0;cd:{if(O[e+56>>3]==-2147483648&O[e+48>>3]==-2147483648)break cd;f=J[J[j>>2]+40>>2];J[195395]=0;ma(f|0,j|0,e+128|0,e+112|0,e+96|0,e+80|0);f=J[195395];J[195395]= -0;if((f|0)==1)break $c;c=O[e+96>>3];if(c==0)break cd;d=O[e+80>>3];if(d==0)break cd;c=(O[e+56>>3]-O[e+128>>3])/c;O[e+56>>3]=c;O[e+48>>3]=(O[e+48>>3]-O[e+112>>3])/d;J[195395]=0;f=e+160|0;da(1863,f|0,+c,-1);i=J[195395];J[195395]=0;if((i|0)==1)break _c;J[195395]=0;f=aa(1954,f|0,0,424488)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Zc;J[e+184>>2]=J[f+8>>2];i=J[f+4>>2];J[e+176>>2]=J[f>>2];J[e+180>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+176|0,424512)|0;i=J[195395];J[195395]=0;if((i| -0)==1)break Yc;J[e+200>>2]=J[f+8>>2];i=J[f+4>>2];J[e+192>>2]=J[f>>2];J[e+196>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=e+144|0;da(1863,f|0,+O[e+48>>3],-1);i=J[195395];J[195395]=0;if((i|0)==1)break Xc;J[195395]=0;g=f;f=K[e+155|0];i=f<<24>>24<0;f=aa(1864,e+192|0,(i?J[e+144>>2]:g)|0,(i?J[e+148>>2]:f)|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Wc;J[e+216>>2]=J[f+8>>2];i=J[f+4>>2];J[e+208>>2]=J[f>>2];J[e+212>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+208|0,424540)| -0;i=J[195395];J[195395]=0;if((i|0)==1)break Vc;g=J[f>>2];J[e+64>>2]=J[f+4>>2];i=K[f+7|0]|K[f+8|0]<<8|(K[f+9|0]<<16|K[f+10|0]<<24);H[e+67|0]=i;H[e+68|0]=i>>>8;H[e+69|0]=i>>>16;H[e+70|0]=i>>>24;J[f>>2]=0;J[f+4>>2]=0;i=K[f+11|0];J[f+8>>2]=0;if(H[e+235|0]<0)Kb(J[e+224>>2]);J[e+224>>2]=g;J[e+228>>2]=J[e+64>>2];f=K[e+67|0]|K[e+68|0]<<8|(K[e+69|0]<<16|K[e+70|0]<<24);H[e+231|0]=f;H[e+232|0]=f>>>8;H[e+233|0]=f>>>16;H[e+234|0]=f>>>24;H[e+235|0]=i;if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+155|0]<0)Kb(J[e+144>> -2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+171|0]>=0)break cd;Kb(J[e+160>>2])}g=H[e+251|0];k=(g|0)<0?J[e+244>>2]:g&255;f=k+20|0;if(f>>>0<1073741808)break Qc;J[195395]=0;ea(1800,e+32|0);a=J[195395];J[195395]=0;if((a|0)!=1)break jc;break nc}a=Z()|0;break kc}a=Z()|0;if(H[e+235|0]>=0)break kc;Kb(J[e+224>>2]);break kc}a=Z()|0;break kc}a=Z()|0;break mc}a=Z()|0;break mc}a=Z()|0;break Rc}a=Z()|0;break Sc}a=Z()|0;break Tc}a=Z()|0;break Uc}a=Z()|0;if(H[e+219|0]>=0)break Uc;Kb(J[e+ -208>>2])}if(H[e+155|0]>=0)break Tc;Kb(J[e+144>>2])}if(H[e+203|0]>=0)break Sc;Kb(J[e+192>>2])}if(H[e+187|0]>=0)break Rc;Kb(J[e+176>>2])}if(H[e+171|0]>=0)break mc;Kb(J[e+160>>2]);break mc}dd:{if(f>>>0<=1){J[e+40>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;H[e+43|0]=f;i=e+32|0;break dd}i=f|3;if(i>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break jc;break nc}J[195395]=0;l=i+1|0;i=_(1078,l<<2)|0;m=J[195395];J[195395]=0;if((m|0)==1)break nc;J[e+36>>2]=f;J[e+32>>2]=i;J[e+40>>2]=l|-2147483648}f= -k<<2;p=qc(Mb(i,424572,80)+80|0,(g|0)<0?J[e+240>>2]:e+240|0,f)+f|0,q=0,J[p>>2]=q;J[195395]=0;f=ca(1858,e+32|0,424656)|0;i=J[195395];J[195395]=0;ed:{fd:{gd:{hd:{id:{jd:{kd:{ld:{md:{nd:{od:{pd:{qd:{rd:{sd:{td:{ud:{vd:{wd:{xd:{yd:{zd:{Ad:{Bd:{if((i|0)!=1){J[e+72>>2]=J[f+8>>2];i=J[f+4>>2];J[e+64>>2]=J[f>>2];J[e+68>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=K[e+235|0];i=f<<24>>24<0;f=aa(1864,e- -64|0,(i?J[e+224>>2]:e+224|0)|0,(i?J[e+228>>2]:f)|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Bd; -J[e+88>>2]=J[f+8>>2];i=J[f+4>>2];J[e+80>>2]=J[f>>2];J[e+84>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+80|0,424664)|0;i=J[195395];J[195395]=0;if((i|0)==1)break Ad;J[e+104>>2]=J[f+8>>2];i=J[f+4>>2];J[e+96>>2]=J[f>>2];J[e+100>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+96|0,424096)|0;i=J[195395];J[195395]=0;if((i|0)==1)break zd;J[e+120>>2]=J[f+8>>2];i=J[f+4>>2];J[e+112>>2]=J[f>>2];J[e+116>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;f=J[J[j>>2]+8>>2];J[195395]=0;f= -_(f|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break yd;i=J[J[j>>2]+28>>2];J[195395]=0;i=_(i|0,j|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break yd;J[195395]=0;g=e+20|0;fa(1975,g|0,f|0,i&255);f=J[195395];J[195395]=0;if((f|0)==1)break yd;J[195395]=0;f=K[e+31|0];i=f<<24>>24<0;f=aa(1864,e+112|0,(i?J[e+20>>2]:g)|0,(i?J[e+24>>2]:f)|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break xd;J[e+136>>2]=J[f+8>>2];i=J[f+4>>2];J[e+128>>2]=J[f>>2];J[e+132>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858, -e+128|0,422068)|0;i=J[195395];J[195395]=0;if((i|0)==1)break wd;J[e+152>>2]=J[f+8>>2];i=J[f+4>>2];J[e+144>>2]=J[f>>2];J[e+148>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+144|0,424220)|0;i=J[195395];J[195395]=0;if((i|0)==1)break vd;J[e+168>>2]=J[f+8>>2];i=J[f+4>>2];J[e+160>>2]=J[f>>2];J[e+164>>2]=i;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;f=J[J[j>>2]+12>>2];J[195395]=0;f=_(f|0,j|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break ud;i=J[J[j>>2]+32>>2];J[195395]=0;j=_(i|0,j|0)|0;i=J[195395]; -J[195395]=0;if((i|0)==1)break ud;J[195395]=0;i=e+8|0;fa(1975,i|0,f|0,j&255);f=J[195395];J[195395]=0;if((f|0)==1)break ud;J[195395]=0;f=K[e+19|0];j=f<<24>>24<0;f=aa(1864,e+160|0,(j?J[e+8>>2]:i)|0,(j?J[e+12>>2]:f)|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break td;J[e+184>>2]=J[f+8>>2];j=J[f+4>>2];J[e+176>>2]=J[f>>2];J[e+180>>2]=j;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+176|0,422068)|0;j=J[195395];J[195395]=0;if((j|0)==1)break sd;J[e+200>>2]=J[f+8>>2];j=J[f+4>>2];J[e+192>>2]=J[f>>2]; -J[e+196>>2]=j;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;f=ca(1858,e+192|0,424672)|0;j=J[195395];J[195395]=0;if((j|0)==1)break rd;J[e+216>>2]=J[f+8>>2];j=J[f+4>>2];J[e+208>>2]=J[f>>2];J[e+212>>2]=j;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;i=a+60|0;a=K[e+219|0];f=a<<24>>24<0;aa(1864,i|0,(f?J[e+208>>2]:e+208|0)|0,(f?J[e+212>>2]:a)|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break qd;if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+19|0]<0)Kb(J[e+ -8>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);if(H[e+139|0]<0)Kb(J[e+128>>2]);if(H[e+31|0]<0)Kb(J[e+20>>2]);if(H[e+123|0]<0)Kb(J[e+112>>2]);if(H[e+107|0]<0)Kb(J[e+96>>2]);if(H[e+91|0]<0)Kb(J[e+80>>2]);if(H[e+75|0]<0)Kb(J[e+64>>2]);if(H[e+43|0]<0)Kb(J[e+32>>2]);J[h+36>>2]=J[e+248>>2];a=J[e+244>>2];J[h+28>>2]=J[e+240>>2];J[h+32>>2]=a;J[e+248>>2]=0;J[e+240>>2]=0;J[e+244>>2]=0;if(H[e+235|0]>=0)break pc;Kb(J[e+224>>2]);break pc}a=Z()|0;break ed}a=Z()|0;break fd}a=Z()|0;break gd}a= -Z()|0;break hd}a=Z()|0;break id}a=Z()|0;break jd}a=Z()|0;break kd}a=Z()|0;break ld}a=Z()|0;break md}a=Z()|0;break nd}a=Z()|0;break od}a=Z()|0;break pd}a=Z()|0;if(H[e+219|0]>=0)break pd;Kb(J[e+208>>2])}if(H[e+203|0]>=0)break od;Kb(J[e+192>>2])}if(H[e+187|0]>=0)break nd;Kb(J[e+176>>2])}if(H[e+19|0]>=0)break md;Kb(J[e+8>>2])}if(H[e+171|0]>=0)break ld;Kb(J[e+160>>2])}if(H[e+155|0]>=0)break kd;Kb(J[e+144>>2])}if(H[e+139|0]>=0)break jd;Kb(J[e+128>>2])}if(H[e+31|0]>=0)break id;Kb(J[e+20>>2])}if(H[e+123| -0]>=0)break hd;Kb(J[e+112>>2])}if(H[e+107|0]>=0)break gd;Kb(J[e+96>>2])}if(H[e+91|0]>=0)break fd;Kb(J[e+80>>2])}if(H[e+75|0]>=0)break ed;Kb(J[e+64>>2])}if(H[e+43|0]>=0)break mc;Kb(J[e+32>>2]);break mc}J[h+28>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0}if(H[e+251|0]>=0)break ic;Kb(J[e+240>>2]);break ic}a=Z()|0;break kc}a=Z()|0}if(H[e+235|0]>=0)break kc;Kb(J[e+224>>2]);break kc}a=Z()|0}if(H[e+251|0]<0)Kb(J[e+240>>2]);break a}B()}xb=e+256|0;a=K[h+39|0];f=a<<24>>24;j=(f|0)<0?J[h+32>>2]:a;if(j){e=j+5|0;if(e>>>0>= -1073741808){J[195395]=0;ea(1800,h+8|0);a=J[195395];J[195395]=0;if((a|0)!=1)break j;break n}Cd:{if(e>>>0<=1){J[h+16>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;H[h+19|0]=e;a=h+8|0;break Cd}a=e|3;if(a>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break j;break n}J[195395]=0;i=a+1|0;a=_(1078,i<<2)|0;g=J[195395];J[195395]=0;if((g|0)==1)break n;J[h+12>>2]=e;J[h+8>>2]=a;J[h+16>>2]=i|-2147483648}J[a+16>>2]=J[105778];e=J[105777];J[a+8>>2]=J[105776];J[a+12>>2]=e;e=J[105775];J[a>>2]=J[105774]; -J[a+4>>2]=e;i=a+20|0;a=j<<2;p=qc(i,(f|0)<0?J[h+28>>2]:h+28|0,a)+a|0,q=0,J[p>>2]=q;J[195395]=0;a=ca(1858,h+8|0,423120)|0;e=J[195395];J[195395]=0;Dd:{Ed:{Fd:{Gd:{if((e|0)!=1){f=J[a>>2];J[h+20>>2]=J[a+4>>2];e=K[a+7|0]|K[a+8|0]<<8|(K[a+9|0]<<16|K[a+10|0]<<24);H[h+23|0]=e;H[h+24|0]=e>>>8;H[h+25|0]=e>>>16;H[h+26|0]=e>>>24;J[a>>2]=0;J[a+4>>2]=0;j=H[a+11|0];J[a+8>>2]=0;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Ed;J[h+40>>2]=a;J[h+44>>2]=4;J[h+48>>2]=-2147483640;e=J[105213];J[a+ -8>>2]=J[105212];J[a+12>>2]=e;e=J[105211];J[a>>2]=J[105210];J[a+4>>2]=e;J[a+16>>2]=0;e=K[h+23|0]|K[h+24|0]<<8|(K[h+25|0]<<16|K[h+26|0]<<24);H[h+59|0]=e;H[h+60|0]=e>>>8;H[h+61|0]=e>>>16;H[h+62|0]=e>>>24;J[h+56>>2]=J[h+20>>2];J[h+52>>2]=f;H[h+63|0]=j;e=J[b+4>>2];Hd:{if(e>>>0>2]){J[195395]=0;fa(1808,e|0,a|0,4);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[b+4>>2]=e;break Fd}a=J[h+56>>2];J[e+12>>2]=J[h+52>>2];J[e+16>>2]=a;J[e+20>>2]=J[h+60>>2];J[h+52>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[b+4>>2]=e+ -24;break Hd}J[195395]=0;$(1971,b|0,h+40|0);a=J[195395];J[195395]=0;if((a|0)==1)break Gd;if(H[h+63|0]>=0)break Hd;Kb(J[h+52>>2])}if(H[h+51|0]<0)Kb(J[h+40>>2]);if(H[h+19|0]<0)Kb(J[h+8>>2]);if(H[h+39|0]>=0)break e;Kb(J[h+28>>2]);break e}a=Z()|0;break Dd}a=Z()|0}Vb(h+40|0);break Dd}a=Z()|0;if((j|0)>=0)break Dd;Kb(f)}if(H[h+19|0]>=0)break b;Kb(J[h+8>>2]);break b}if((f|0)>=0)break t;Kb(J[h+28>>2])}e=He(h+40|0,420840,420888);f=J[b+4>>2];if(f>>>0>2]){if(H[e+11|0]>=0){a=J[e+4>>2];J[f>>2]=J[e>>2];J[f+ -4>>2]=a;J[f+8>>2]=J[e+8>>2];break p}a=J[e+4>>2];j=J[e>>2];J[195395]=0;fa(1808,f|0,j|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break p;a=Z()|0;J[b+4>>2]=f;break q}J[195395]=0;$(1971,b|0,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break r;if(H[e+23|0]>=0)break o;Kb(J[e+12>>2]);break o}if((f|0)>=0)break e;Kb(J[h+28>>2]);break e}a=Z()|0}Vb(e);break a}a=J[e+16>>2];J[f+12>>2]=J[e+12>>2];J[f+16>>2]=a;J[f+20>>2]=J[e+20>>2];J[e+12>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[b+4>>2]=f+24}if(H[e+11|0]>=0)break e;Kb(J[e>> -2]);break e}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}B()}f=J[a+16>>2];J[e+12>>2]=J[a+12>>2];J[e+16>>2]=f;J[e+20>>2]=J[a+20>>2];J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[b+4>>2]=e+24}if(H[a+11|0]>=0)break e;Kb(J[a>>2]);break e}f=J[a+16>>2];J[e+12>>2]=J[a+12>>2];J[e+16>>2]=f;J[e+20>>2]=J[a+20>>2];J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[b+4>>2]=e+24}if(H[a+11|0]>=0)break e;Kb(J[a>>2])}xb=h- -64|0;return}f=Z()|0;J[b+4>>2]=e;Vb(a);ba(f|0);B()}b=Z()|0;Vb(a);ba(b|0);B()}if(H[h+39| -0]>=0)break a;Kb(J[h+28>>2])}ba(a|0);B()}function qM(a){a=a|0;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,G=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0;k=xb-48|0;xb=k;d=J[a>>2];b=0;a:{if(J[J[d+96>>2]+64>>2]!=40)break a;b=0;if(!K[a+613|0])break a;b=0;if(K[d+9|0]&32)break a;b=(K[a+340|0]^-1)>>>2&1}I[a+616>>1]=0;H[a+615|0]=b;b=J[a+384>>2];c=L[a+152>>1];f=b+c<<1;f=f>>>0<=30?30:f;if(f>>>0>1])I[a+188>>1]=f;J[a+628>>2]=0; -J[a+620>>2]=0;if(c)b=(c>>>0<5?50:P(c,10))+(b>>>0<500?50:(b>>>0)/10|0)|0;else b=P(b,22)+300|0;J[a+624>>2]=b;c=J[d+16>>2];J[a+260>>2]=0;c=P(c,100);b=b>>>0>>0?b:c;J[a+632>>2]=b;J[a+624>>2]=b;b:{if(L[a+220>>1]!=L[a+222>>1]){c=83;f=84;d=85;b=82;break b}c=87;f=88;d=89;b=86}J[a+608>>2]=b;J[a+604>>2]=c;J[a+600>>2]=f;J[a+596>>2]=d;d=I[a+302>>1];c:{if((d&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;c=b;break c}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;c=L[a+298>>1];break c}c=I[a+298>>1];b= -P(b,I[a+300>>1])+P(d,c)>>14;J[a+568>>2]=b}d:{if((c&65535)==16384){J[a+576>>2]=90;break d}if(L[a+300>>1]==16384){J[a+576>>2]=91;break d}J[a+576>>2]=92}e:{if(L[a+294>>1]==16384){J[a+580>>2]=90;break e}if(L[a+296>>1]==16384){J[a+580>>2]=91;break e}J[a+580>>2]=93}J[a+592>>2]=94;J[a+588>>2]=95;f:{if((b|0)!=16384)break f;g:{if((d|0)==16384){f=97;c=96;break g}if(L[a+304>>1]!=16384)break f;f=99;c=98}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;b=J[a+316>>2]; -if(!(b&248))J[a+572>>2]=J[(b<<24>>24<<2)+98184>>2];x=a+180|0;y=a+144|0;o=a+72|0;m=a+36|0;p=a+108|0;d=J[a+368>>2];c=J[a+364>>2];h:{i:{while(1){i=J[a+360>>2];h=K[i+c|0];H[a+372|0]=h;f=H[h+96160|0];J[a+376>>2]=f;if((h&254)==64){b=c+1|0;if((b|0)>=(d|0)){d=131;break i}f=2-P(K[b+i|0],f)|0;J[a+376>>2]=f}if((c+f|0)>(d|0)){d=131;break i}b=K[h+96416|0];d=b>>>4|0;c=J[a+16>>2]-d|0;J[a+28>>2]=c;if((c|0)<0){if(K[a+565|0]){d=129;break i}if(b>>>0>=16)Nb(J[a+24>>2],0,(d>>>0<=1?1:d)<<2);J[a+28>>2]=0;c=0}j:{k:{if((h| -0)==145){b=J[J[a>>2]+736>>2];if(!b){g=J[a+32>>2];break j}g=J[b>>2]+c|0;break k}g=(b&15)+c|0}J[a+32>>2]=g}d=130;b=J[a+20>>2];if((b|0)<(g|0))break i;J[a+12>>2]=0;H[a+380|0]=1;j=J[a+24>>2];e=j+(c<<2)|0;d=135;l:{m:{n:{o:{p:{q:switch(h|0){case 0:case 1:case 2:case 3:case 4:case 5:c=h<<14&16384;b=c^16384;if(h>>>0<=3){I[a+296>>1]=b;I[a+294>>1]=c;I[a+300>>1]=b;I[a+298>>1]=c}r:{if(h&2){c=L[a+302>>1];break r}I[a+302>>1]=c;I[a+304>>1]=b}s:{if((c&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break s}b=I[a+304>> -1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break s}g=I[a+298>>1];b=P(b,I[a+300>>1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=90;J[a+576>>2]=(g&65535)==16384?90:L[a+300>>1]==16384?91:92;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?91:93:f;J[a+592>>2]=94;J[a+588>>2]=95;J[a+580>>2]=f;t:{if((b|0)!=16384)break t;u:{if((c&65535)==16384){f=97;c=96;break u}if(L[a+304>>1]!=16384)break t;f=99;c=98}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 6:case 7:v:{b= -L[e+4>>1];if(b>>>0>1]){c=L[e>>1];if(c>>>0>1])break v}if(!K[a+565|0])break p;d=134;break i}c=J[a+88>>2]+(c<<3)|0;d=J[c+4>>2];f=J[a+124>>2]+(b<<3)|0;g=J[f+4>>2];b=d-g|0;e=J[c>>2];f=J[f>>2];c=(e|0)==(f|0)&(d|0)==(g|0);d=c?16384:e-f|0;c=c|!(h&1);f=c?b:d;b=c?d:0-b|0;if(f|b){J[k+16>>2]=f;J[k+12>>2]=b;tk(k+12|0);I[a+298>>1]=J[k+12>>2]/4;I[a+300>>1]=J[k+16>>2]/4}c=L[a+298>>1]|L[a+300>>1]<<16;I[a+294>>1]=c;I[a+296>>1]=c>>>16;f=c<<16>>16;d=I[a+302>>1];b=f;w:{if((d&65535)==16384)break w;b=c>> -16;g=I[a+304>>1];if((g|0)==16384)break w;b=P(b,g)+P(d,f)>>14}J[a+592>>2]=94;J[a+588>>2]=95;J[a+568>>2]=b;f=(c&-65536)==1073741824;c=(c&65535)==16384;J[a+580>>2]=c?90:f?91:93;J[a+576>>2]=c?90:f?91:92;x:{if((b|0)!=16384)break x;y:{if((d|0)==16384){f=97;c=96;break y}if(L[a+304>>1]!=16384)break x;f=99;c=98}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 8:case 9:z:{b=L[e+4>>1];if(b>>>0>1]){c=L[e>>1];if(c>>>0>1])break z}if(!K[a+ -565|0])break p;d=134;break i}c=J[a+88>>2]+(c<<3)|0;d=J[c+4>>2];f=J[a+124>>2]+(b<<3)|0;g=J[f+4>>2];b=d-g|0;e=J[c>>2];f=J[f>>2];c=(e|0)==(f|0)&(d|0)==(g|0);d=c?16384:e-f|0;c=c|!(h&1);f=c?b:d;b=c?d:0-b|0;A:{if(!(f|b)){c=L[a+302>>1];break A}J[k+16>>2]=f;J[k+12>>2]=b;tk(k+12|0);c=J[k+12>>2]/4|0;I[a+302>>1]=c;I[a+304>>1]=J[k+16>>2]/4}B:{if((c&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break B}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break B}g=I[a+298>>1];b=P(b,I[a+300>> -1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=90;J[a+576>>2]=(g&65535)==16384?90:L[a+300>>1]==16384?91:92;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?91:93:f;J[a+592>>2]=94;J[a+588>>2]=95;J[a+580>>2]=f;C:{if((b|0)!=16384)break C;D:{if((c&65535)==16384){f=97;c=96;break D}if(L[a+304>>1]!=16384)break C;f=99;c=98}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 10:b=I[e+4>>1];c=I[e>>1];if(b|c){J[k+16>>2]=b;J[k+12>>2]=c;tk(k+12|0);I[a+298>>1]=J[k+12>>2]/4; -I[a+300>>1]=J[k+16>>2]/4}c=L[a+298>>1]|L[a+300>>1]<<16;I[a+294>>1]=c;I[a+296>>1]=c>>>16;f=c<<16>>16;d=I[a+302>>1];b=f;E:{if((d&65535)==16384)break E;b=c>>16;g=I[a+304>>1];if((g|0)==16384)break E;b=P(b,g)+P(d,f)>>14}J[a+592>>2]=94;J[a+588>>2]=95;J[a+568>>2]=b;f=(c&-65536)==1073741824;c=(c&65535)==16384;J[a+580>>2]=c?90:f?91:93;J[a+576>>2]=c?90:f?91:92;F:{if((b|0)!=16384)break F;G:{if((d|0)==16384){f=97;c=96;break G}if(L[a+304>>1]!=16384)break F;f=99;c=98}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^ -b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 11:b=I[e+4>>1];c=I[e>>1];H:{if(!(b|c)){c=L[a+302>>1];break H}J[k+16>>2]=b;J[k+12>>2]=c;tk(k+12|0);c=J[k+12>>2]/4|0;I[a+302>>1]=c;I[a+304>>1]=J[k+16>>2]/4}I:{if((c&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break I}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break I}g=I[a+298>>1];b=P(b,I[a+300>>1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=90;J[a+576>>2]=(g&65535)==16384?90:L[a+300>>1]==16384?91:92;f=L[a+294>>1]!= -16384?L[a+296>>1]==16384?91:93:f;J[a+592>>2]=94;J[a+588>>2]=95;J[a+580>>2]=f;J:{if((b|0)!=16384)break J;K:{if((c&65535)==16384){f=97;c=96;break K}if(L[a+304>>1]!=16384)break J;f=99;c=98}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 12:b=I[a+298>>1];J[e+4>>2]=I[a+300>>1];J[e>>2]=b;break p;case 13:b=I[a+302>>1];J[e+4>>2]=I[a+304>>1];J[e>>2]=b;break p;case 14:g=L[a+298>>1]|L[a+300>>1]<<16;I[a+302>>1]=g;e=g>>>16|0;I[a+304>>1]=e;c=g<<16>>16;f= -90;h=g&65535;L:{if((h|0)==16384){d=90;b=c;break L}d=91;b=16384;if((e|0)==16384)break L;d=92;b=g>>16;b=P(c,c)+P(b,b)>>>14|0}J[a+576>>2]=d;J[a+568>>2]=b;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?91:93:f;J[a+592>>2]=94;J[a+588>>2]=95;J[a+580>>2]=f;M:{if((b|0)!=16384)break M;N:{if((h|0)==16384){f=97;c=96;break N}if((e|0)!=16384)break M;f=99;c=98}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 15:O:{c=L[e+12>>1];b=L[a+44>>1];P:{if(c>>>0>=b>>>0)break P; -f=L[e+16>>1];if(f>>>0>=b>>>0)break P;g=L[e+4>>1];b=L[a+80>>1];if(g>>>0>=b>>>0)break P;h=L[e+8>>1];if(h>>>0>=b>>>0)break P;b=L[e>>1];if(b>>>0>1])break O}if(!K[a+565|0])break p;d=134;break i}e=J[a+52>>2];n=c<<3;c=e+n|0;d=J[c>>2];q=f<<3;i=q+e|0;j=J[i>>2];e=J[a+88>>2];f=g<<3;l=e+f|0;g=J[l+4>>2];r=h<<3;e=r+e|0;h=J[e+4>>2];s=J[l>>2];e=J[e>>2]-s|0;u=J[c+4>>2];l=J[i+4>>2]-u|0;w=0-l|0;h=h-g|0;i=j-d|0;c=hc(e,w,64)+hc(h,i,64)|0;j=c>>31;v=hc(e,i,64)+hc(h,l,64)|0;l=v>>31;Q:{if(((l^v)-l|0)<(P((c^j)-j| -0,19)|0)){d=hc(d-s|0,w,64)+hc(u-g|0,i,64)|0;g=hc(d,e,c);d=hc(d,h,c);c=J[a+124>>2];f=f+J[a+88>>2]|0;J[c+(b<<3)>>2]=g+J[f>>2];d=J[f+4>>2]+d|0;break Q}c=J[a+124>>2];d=J[a+52>>2];g=d+n|0;e=J[a+88>>2];h=e+r|0;f=e+f|0;d=d+q|0;J[c+(b<<3)>>2]=((J[g>>2]+(J[h>>2]+J[f>>2]|0)|0)+J[d>>2]|0)/4;d=(J[d+4>>2]+(J[g+4>>2]+(J[h+4>>2]+J[f+4>>2]|0)|0)|0)/4|0}J[((b<<3)+c|0)+4>>2]=d;b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|24;break p;case 16:I[a+288>>1]=J[e>>2];break p;case 17:I[a+290>>1]=J[e>>2];break p;case 18:I[a+292>>1]=J[e>> -2];break p;case 19:b=x;R:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break R}c=J[b+4>>2];J[m>>2]=J[b>>2];J[m+4>>2]=c;J[m+32>>2]=J[b+32>>2];c=J[b+28>>2];J[m+24>>2]=J[b+24>>2];J[m+28>>2]=c;c=J[b+20>>2];J[m+16>>2]=J[b+16>>2];J[m+20>>2]=c;c=J[b+12>>2];J[m+8>>2]=J[b+8>>2];J[m+12>>2]=c;I[a+348>>1]=J[e>>2];break p;case 20:b=x;S:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break S}c=J[b+4>>2];J[o>>2]=J[b>>2];J[o+4>>2]=c;J[o+ -32>>2]=J[b+32>>2];c=J[b+28>>2];J[o+24>>2]=J[b+24>>2];J[o+28>>2]=c;c=J[b+20>>2];J[o+16>>2]=J[b+16>>2];J[o+20>>2]=c;c=J[b+12>>2];J[o+8>>2]=J[b+8>>2];J[o+12>>2]=c;I[a+350>>1]=J[e>>2];break p;case 21:b=x;T:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break T}c=J[b+4>>2];J[p>>2]=J[b>>2];J[p+4>>2]=c;J[p+32>>2]=J[b+32>>2];c=J[b+28>>2];J[p+24>>2]=J[b+24>>2];J[p+28>>2]=c;c=J[b+20>>2];J[p+16>>2]=J[b+16>>2];J[p+20>>2]=c;c=J[b+12>>2];J[p+8>>2]=J[b+8>>2];J[p+12>>2]=c;I[a+ -352>>1]=J[e>>2];break p;case 22:b=x;U:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break U}g=J[b+4>>2];c=J[b>>2];J[m>>2]=c;J[m+4>>2]=g;l=J[b+32>>2];J[m+32>>2]=l;h=J[b+28>>2];d=J[b+24>>2];J[m+24>>2]=d;J[m+28>>2]=h;i=J[b+20>>2];f=J[b+16>>2];J[m+16>>2]=f;J[m+20>>2]=i;j=J[b+12>>2];b=J[b+8>>2];J[m+8>>2]=b;J[m+12>>2]=j;J[o+32>>2]=l;J[o+24>>2]=d;J[o+28>>2]=h;J[o+16>>2]=f;J[o+20>>2]=i;J[o+8>>2]=b;J[o+12>>2]=j;J[o>>2]=c;J[o+4>>2]=g;J[p+32>>2]=J[m+32>>2];b=J[m+28>>2]; -J[p+24>>2]=J[m+24>>2];J[p+28>>2]=b;b=J[m+20>>2];J[p+16>>2]=J[m+16>>2];J[p+20>>2]=b;b=J[m+12>>2];J[p+8>>2]=J[m+8>>2];J[p+12>>2]=b;b=J[m+4>>2];J[p>>2]=J[m>>2];J[p+4>>2]=b;b=L[e>>1];I[a+352>>1]=b;I[a+350>>1]=b;I[a+348>>1]=b;break p;case 23:b=J[e>>2];if((b|0)<0){d=132;break i}J[a+308>>2]=b>>>0>=65535?65535:b;break p;case 24:J[a+572>>2]=100;J[a+316>>2]=1;break p;case 25:J[a+572>>2]=101;J[a+316>>2]=0;break p;case 26:J[a+312>>2]=J[e>>2];break p;case 27:b=J[a+364>>2];c=J[a+368>>2];g=1;while(1){b=b+f|0;J[a+ -364>>2]=b;if((b|0)>=(c|0)){d=131;break i}d=K[b+i|0];H[a+372|0]=d;f=H[d+96160|0];J[a+376>>2]=f;if((d&254)==64){e=b+1|0;if((e|0)>=(c|0)){d=131;break i}f=2-P(K[e+i|0],f)|0;J[a+376>>2]=f}if((c|0)<(b+f|0)){d=131;break i}V:switch(d-88|0){case 0:g=g+1|0;if(g)continue;break p;case 1:g=g-1|0;break;default:break V}if(g)continue;break}break p;case 28:b=132;d=c;c=J[e>>2];W:{if(!(d|c))break W;c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break W;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+ -8>>2])break W;H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>>2])break p}J[a+12>>2]=b;break o;case 29:J[a+324>>2]=J[e>>2];break p;case 30:J[a+328>>2]=J[e>>2];break p;case 31:R=a,S=Rb(J[e>>2],J[a+264>>2]),J[R+332>>2]=S;break p;case 32:J[e+4>>2]=J[e>>2];break p;case 34:J[a+32>>2]=0;break p;case 35:R=e,S=Ppa(J[e>>2],J[e+4>>2]),J[R>>2]=S;J[e+4>>2]=zb;break p;case 36:J[e>>2]=J[a+16>>2];break p;case 37:b=J[e>>2];X:{if(!((b|0)>0&(b|0)<=(c|0))){b=0;if(!K[a+565| -0])break X;J[a+12>>2]=134;J[e>>2]=0;break p}b=J[j+(c-b<<2)>>2]}J[e>>2]=b;break p;case 38:b=J[e>>2];if(!((b|0)>0&(b|0)<=(c|0))){if(!K[a+565|0])break p;d=134;break i}c=j+(c-b<<2)|0;d=J[c>>2];qc(c,c+4|0,(b<<2)-4|0);J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2]=d;break p;case 39:Y:{b=L[e>>1];if(b>>>0>1]){c=L[e+4>>1];if(c>>>0>1])break Y}if(!K[a+565|0])break p;d=134;break i}e=b;d=J[a+52>>2]+(c<<3)|0;b=J[a+88>>2]+(b<<3)|0;b=(Ab[J[a+576>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0)/2|0;Ab[J[a+ -588>>2]](a,o,e,b);Ab[J[a+588>>2]](a,m,c,0-b|0);break p;case 40:Ai(a);break p;case 41:b=L[e>>1];if(b>>>0>=L[a+44>>1]){if(!K[a+565|0])break p;d=134;break i}b=b+J[a+60>>2]|0;c=b;d=K[b|0];b=L[a+302>>1]?-9:-1;H[c|0]=d&(L[a+304>>1]?b&239:b);break p;case 42:b=134;f=J[e+4>>2];c=J[a+424>>2]+1|0;Z:{if(f>>>0>=c>>>0)break Z;d=J[a+408>>2];g=J[a+400>>2];_:{if((g|0)==(c|0)){c=d+P(f,24)|0;if((f|0)==J[(d?c:0)+12>>2])break _}c=d;d=c?c+P(g,24)|0:0;$:{if(c>>>0>=d>>>0)break $;while(1){if((f|0)==J[c+12>>2])break $;c=c+ -24|0;if(d>>>0>c>>>0)continue;break}}if((c|0)==(d|0))break Z}if(!K[c+16|0])break Z;b=130;f=J[a+432>>2];if((f|0)>=J[a+436>>2])break Z;if(J[e>>2]<=0)break p;b=J[a+440>>2]+(f<<4)|0;J[b>>2]=J[a+356>>2];J[b+4>>2]=J[a+364>>2]+1;d=J[e>>2];J[b+12>>2]=c;J[b+8>>2]=d;J[a+432>>2]=f+1;b=J[c>>2];aa:{if(b-4>>>0<=4294967292){J[a+12>>2]=132;break aa}f=(b-1<<3)+a|0;g=J[f+448>>2];if(!g){J[a+12>>2]=138;break aa}f=J[f+452>>2];c=J[c+4>>2];if((f|0)<(c|0)){J[a+12>>2]=131;break aa}J[a+368>>2]=f;J[a+360>>2]=g;J[a+364>>2]=c; -J[a+356>>2]=b;d=J[e>>2]}H[a+380|0]=0;c=J[a+620>>2]+d|0;J[a+620>>2]=c;b=139;if(c>>>0<=M[a+624>>2])break p}J[a+12>>2]=b;break o;case 43:d=134;b=J[a+424>>2]+1|0;f=J[e>>2];if(b>>>0<=f>>>0)break i;c=J[a+408>>2];if(!c)break i;g=J[a+400>>2];ba:{if((g|0)==(b|0)){b=c+P(f,24)|0;if((f|0)==J[b+12>>2])break ba}e=c+P(g,24)|0;b=c;ca:{if((g|0)<=0)break ca;while(1){if((f|0)==J[b+12>>2])break ca;b=b+24|0;if(e>>>0>b>>>0)continue;break}}if((b|0)==(e|0))break i}if(!K[b+16|0])break i;d=130;f=J[a+432>>2];if((f|0)>=J[a+ -436>>2])break i;c=J[a+440>>2]+(f<<4)|0;J[c>>2]=J[a+356>>2];d=J[a+364>>2];J[c+12>>2]=b;J[c+8>>2]=1;J[c+4>>2]=d+1;J[a+432>>2]=f+1;c=J[b>>2];da:{if(c-4>>>0<=4294967292){J[a+12>>2]=132;break da}d=(c-1<<3)+a|0;f=J[d+448>>2];if(!f){J[a+12>>2]=138;break da}d=J[d+452>>2];b=J[b+4>>2];if((d|0)<(b|0)){J[a+12>>2]=131;break da}J[a+368>>2]=d;J[a+360>>2]=f;J[a+364>>2]=b;J[a+356>>2]=c}H[a+380|0]=0;break p;case 44:h=J[a+356>>2];if((h|0)==3){d=156;break i}b=J[a+408>>2];ea:{fa:{if(!b){g=J[a+400>>2];d=J[e>>2];c=0;break fa}g= -J[a+400>>2];c=P(g,24)+b|0;d=J[e>>2];ga:{if((g|0)<=0)break ga;while(1){if(J[b+12>>2]==(d|0))break ga;b=b+24|0;if(c>>>0>b>>>0)continue;break}}if((b|0)!=(c|0))break ea}if(M[a+404>>2]<=g>>>0){d=140;break i}J[a+400>>2]=g+1;b=c}if(d>>>0>65535){d=140;break i}J[b+12>>2]=d;J[b>>2]=h;c=J[a+364>>2];J[b+20>>2]=0;I[b+16>>1]=1;J[b+4>>2]=c+1;if(M[a+424>>2]>>0)J[a+424>>2]=d;e=J[a+368>>2];while(1){c=c+f|0;J[a+364>>2]=c;if((c|0)>=(e|0)){d=131;break i}g=K[c+i|0];H[a+372|0]=g;f=H[g+96160|0];J[a+376>>2]=f;if((g&254)== -64){d=c+1|0;if((d|0)>=(e|0)){d=131;break i}f=2-P(K[d+i|0],f)|0;J[a+376>>2]=f}if((e|0)<(c+f|0)){d=131;break i}d=137;ha:switch(g-44|0){case 1:J[b+8>>2]=c;break p;case 0:break i;default:break ha}if((g|0)!=137)continue;break}break i;case 33:case 89:case 126:case 127:J[a+16>>2]=g;break n;default:if(h>>>0>=224){d=J[e+4>>2];c=0;ia:{ja:{f=J[e>>2];g=f&65535;ka:{if(g>>>0>=L[a+80>>1])break ka;e=d+1|0;if(e>>>0>=J[a+384>>2]+1>>>0)break ka;b=L[a+288>>1];if(b>>>0>1])break ja}if(!K[a+565|0])break ia;J[a+ -12>>2]=134;break ia}if(e){c=Ab[J[a+600>>2]](a,d)|0;b=L[a+288>>1]}d=J[a+332>>2];h=c-d|0;e=h>>31;c=J[a+328>>2]>((e^h)-e|0)?(c|0)<0?0-d|0:d:c;if(!L[a+350>>1]){e=I[a+302>>1];d=e>>31;i=(d^e)-d|0;d=c>>31;j=(d^c)-d|0;l=j>>>16|0;n=P(i,l);h=n<<16|8192;q=g<<3;d=q+J[a+84>>2]|0;r=J[a+48>>2]+(b<<3)|0;b=i;i=j&65535;b=h+P(b,i)|0;b=(n>>>16|0)+(b>>>0>>0)<<18|b>>>14;J[d>>2]=J[r>>2]+((c^e)<0?0-b|0:b);b=I[a+304>>1];e=b>>31;h=(b^e)-e|0;j=P(h,l);e=j<<16|8192;n=e;e=e+P(h,i)|0;e=(j>>>16|0)+(n>>>0>e>>>0)<<18|e>>>14;J[d+ -4>>2]=J[r+4>>2]+((b^c)<0?0-e|0:e);e=J[d+4>>2];b=q+J[a+88>>2]|0;J[b>>2]=J[d>>2];J[b+4>>2]=e;b=L[a+288>>1]}g=g<<3;d=g+J[a+84>>2]|0;b=J[a+48>>2]+(b<<3)|0;d=Ab[J[a+580>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0;b=g+J[a+88>>2]|0;g=J[a+52>>2]+(L[a+288>>1]<<3)|0;e=Ab[J[a+576>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[g+4>>2]|0)|0;b=K[a+320|0]?(c^d)<0?0-c|0:c:c;c=K[a+372|0];la:{if(c&4){if(L[a+348>>1]==L[a+350>>1]){h=b-d|0;g=h>>31;b=J[a+324>>2]<((g^h)-g|0)?d:b}b=Ab[J[a+572>>2]](a,b,c&3)|0;c=K[a+372|0];break la}g= -J[(((c&3)<<2)+a|0)+268>>2];if((b|0)>=0){b=b+g|0;b=(b|0)>0?b:0;break la}b=b-g|0;b=b>>31&b}g=a+72|0;ma:{if(!(c&8))break ma;c=J[a+312>>2];if((d|0)>=0){b=(b|0)>(c|0)?b:c;break ma}c=0-c|0;b=(b|0)<(c|0)?b:c}Ab[J[a+588>>2]](a,g,f&65535,b-e|0)}I[a+290>>1]=L[a+288>>1];if(K[a+372|0]&16)I[a+288>>1]=f;I[a+292>>1]=f;break p}if(h>>>0>=192){na:{oa:{f=J[e>>2];g=f&65535;if(g>>>0>1]){b=L[a+288>>1];if(b>>>0>1])break oa}if(!K[a+565|0])break na;J[a+12>>2]=134;break na}pa:{if(!(L[a+350>>1]?L[a+348>>1]: -0)){c=J[a+84>>2]+(g<<3)|0;b=J[a+48>>2]+(b<<3)|0;b=Ab[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0;break pa}b=J[a+56>>2]+(b<<3)|0;c=J[a+92>>2]+(g<<3)|0;d=J[a+224>>2];if((d|0)==J[a+228>>2]){b=Rb(Ab[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[a+224>>2]);break pa}b=(S=a,T=Rb(J[c>>2]-J[b>>2]|0,d),U=Rb(J[c+4>>2]-J[b+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],Ab[R](S|0,T|0,U|0)|0)}d=J[a+328>>2];qa:{if((d|0)<=0)break qa;c=J[a+332>>2];if((c+d|0)<=(b|0)|(c-d|0)>=(b|0))break qa;b=(b|0)< -0?0-c|0:c}d=K[a+372|0];ra:{if(d&4){c=Ab[J[a+572>>2]](a,b,d&3)|0;d=K[a+372|0];break ra}c=J[(((d&3)<<2)+a|0)+268>>2];if((b|0)>=0){c=b+c|0;c=(c|0)>0?c:0;break ra}c=b-c|0;c=c>>31&c}e=a+72|0;sa:{if(!(d&8))break sa;d=J[a+312>>2];if((b|0)>=0){c=(c|0)>(d|0)?c:d;break sa}b=0-d|0;c=(b|0)>(c|0)?c:b}d=c;b=J[a+88>>2]+(g<<3)|0;c=J[a+52>>2]+(L[a+288>>1]<<3)|0;U=a,T=e,S=f&65535,V=d-(Ab[J[a+576>>2]](a,J[b>>2]-J[c>>2]|0,J[b+4>>2]-J[c+4>>2]|0)|0)|0,R=J[a+588>>2],Ab[R](U|0,T|0,S|0,V|0)}I[a+292>>1]=f;I[a+290>>1]=L[a+ -288>>1];if(K[a+372|0]&16)I[a+288>>1]=f;break p}if(h>>>0>=184){b=K[a+372|0]+65353|0;c=b&65535;if(c>>>0>=(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){J[a+12>>2]=130;break p}J[a+364>>2]=J[a+364>>2]+1;ta:{if(!c)break ta;f=b&1;d=J[a+360>>2];b=0;if((c|0)!=1){g=c-f|0;c=0;while(1){h=J[a+364>>2];J[a+364>>2]=h+2;i=b<<2;h=d+h|0;h=K[h|0]|K[h+1|0]<<8;J[i+e>>2]=(h<<8|h>>>8)<<16>>16;h=J[a+364>>2];J[a+364>>2]=h+2;h=d+h|0;h=K[h|0]|K[h+1|0]<<8;J[e+(i|4)>>2]=(h<<8|h>>>8)<<16>>16;b=b+2|0;c=c+2|0;if((g|0)!=(c|0))continue;break}}if(!f)break ta; -c=J[a+364>>2];J[a+364>>2]=c+2;e=e+(b<<2)|0;b=c+d|0;b=K[b|0]|K[b+1|0]<<8;J[e>>2]=(b<<8|b>>>8)<<16>>16}H[a+380|0]=0;break p}if(h>>>0>=176){d=K[a+372|0]+65361|0;b=d&65535;if(b>>>0<(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){if(b){f=e-4|0;g=J[a+360>>2];b=1;c=1;while(1){J[f+(b<<2)>>2]=K[(g+J[a+364>>2]|0)+b|0];c=c+1|0;b=c&65535;if(b>>>0<=(d&65535)>>>0)continue;break}}break p}J[a+12>>2]=130;break p}Ai(a);break p;case 146:if(J[J[a>>2]+736>>2]){J[e>>2]=17;break p}Ai(a);break p;case 145:c=J[J[a>>2]+736>>2];if(c){f=0; -h=0;b=J[c>>2];if(b>>>0>=(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){J[a+12>>2]=130;break p}d=J[c+8>>2];ua:{if(d){if(!b)break ua;c=0;if(b>>>0>=4){i=b&-4;while(1){g=c<<2;J[g+e>>2]=J[d+g>>2]>>2;j=g|4;J[j+e>>2]=J[d+j>>2]>>2;j=g|8;J[j+e>>2]=J[d+j>>2]>>2;g=g|12;J[g+e>>2]=J[d+g>>2]>>2;c=c+4|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}b=b&3;if(!b)break ua;while(1){g=c<<2;J[g+e>>2]=J[d+g>>2]>>2;c=c+1|0;f=f+1|0;if((b|0)!=(f|0))continue;break}break ua}if(!b)break ua;Nb(e,0,b<<2)}break p}Ai(a);break p;case 143:case 144:Ai(a); -break p;case 142:c=J[e+4>>2];if(c-4>>>0<=4294967292){if(!K[a+565|0])break p;d=134;break i}b=J[e>>2];d=1<>2]+96>>2]+64>>2]!=40)break p;H[a+615|0]=(b|0)!=4;break p;case 141:b=J[e>>2];if((b|0)<0)break p;J[a+344>>2]=b&65535;break p;case 140:b=J[e+4>>2];if((b|0)>=J[e>>2])break p;J[e>>2]=b;break p;case 139:b=J[e+4>>2];if((b|0)<=J[e>>2])break p;J[e>>2]=b;break p;case 138:b=J[e+4>>2];c=J[e+ -8>>2];J[e+8>>2]=J[e>>2];J[e>>2]=b;J[e+4>>2]=c;break p;case 137:g=J[a+356>>2];if((g|0)==3){d=156;break i}d=J[a+412>>2];b=J[a+420>>2];va:{wa:{if(!b){c=0;break wa}c=P(d,24)+b|0;xa:{if((d|0)<=0)break xa;h=J[e>>2];while(1){if((h|0)==J[b+12>>2])break xa;b=b+24|0;if(c>>>0>b>>>0)continue;break}}if((b|0)!=(c|0))break va}if(d>>>0>=M[a+416>>2]){d=141;break i}J[a+412>>2]=d+1;b=c}c=J[e>>2];if(c>>>0>255){d=141;break i}J[b+12>>2]=c;c=J[a+364>>2];H[b+16|0]=1;J[b>>2]=g;J[b+4>>2]=c+1;d=J[e>>2];if(d>>>0>M[a+428>>2])J[a+ -428>>2]=d&255;e=J[a+368>>2];while(1){c=c+f|0;J[a+364>>2]=c;if((c|0)>=(e|0)){d=131;break i}g=K[c+i|0];H[a+372|0]=g;f=H[g+96160|0];J[a+376>>2]=f;if((g&254)==64){d=c+1|0;if((d|0)>=(e|0)){d=131;break i}f=2-P(K[d+i|0],f)|0;J[a+376>>2]=f}if((e|0)<(c+f|0)){d=131;break i}d=137;ya:switch(g-44|0){default:if((g|0)!=137)continue;break i;case 0:break i;case 1:break ya}break}J[b+8>>2]=c;break p;case 136:b=0;c=J[e>>2];b=c&1?J[J[J[a>>2]+96>>2]+64>>2]:b;b=c&2?K[a+285|0]?b|256:b:b;b=c&4?K[a+286|0]?b|512:b:b;b=c&8? -J[J[a>>2]+736>>2]?b|1024:b:b;b=c&32?K[a+612|0]?b|4096:b:b;za:{if(!K[a+613|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)break za;d=c<<7;b=d&8192|b;if(c&256)b=K[a+614|0]?b|32768:b;b=d&393216|b;if(!(c&4096))break za;b=K[a+618|0]?b|524288:b}J[e>>2]=b;break p;case 134:case 135:Aa:{b=L[e>>1];if(b>>>0>1]){c=L[e+4>>1];if(c>>>0>1])break Aa}if(!K[a+565|0])break p;d=134;break i}d=b<<3;f=d+J[a+84>>2]|0;g=J[f+4>>2];e=c<<3;c=e+J[a+120>>2]|0;i=J[c+4>>2];b=g-i|0;f=J[f>>2];j=J[c>>2];c=(f|0)==(j|0)&(g|0)==(i| -0);f=c?16384:f-j|0;c=c|!(h&1);g=c?b:f;b=c?f:0-b|0;if(g|b){J[k+16>>2]=g;J[k+12>>2]=b;tk(k+12|0);I[a+294>>1]=J[k+12>>2]/4;I[a+296>>1]=J[k+16>>2]/4}d=d+J[a+88>>2]|0;f=J[d+4>>2];g=e+J[a+124>>2]|0;e=J[g+4>>2];b=f-e|0;h=J[d>>2];g=J[g>>2];d=(h|0)==(g|0)&(e|0)==(f|0);f=d?16384:h-g|0;c=c|d;d=c?b:f;b=c?f:0-b|0;if(d|b){J[k+16>>2]=d;J[k+12>>2]=b;tk(k+12|0);I[a+298>>1]=J[k+12>>2]/4;I[a+300>>1]=J[k+16>>2]/4}f=L[a+302>>1];Ba:{if((f|0)==16384){b=I[a+298>>1];J[a+568>>2]=b;d=b;break Ba}b=I[a+304>>1];if((b|0)==16384){b= -I[a+300>>1];J[a+568>>2]=b;d=L[a+298>>1];break Ba}d=I[a+298>>1];b=P(b,I[a+300>>1])+P(d,f<<16>>16)>>14;J[a+568>>2]=b}c=90;J[a+576>>2]=(d&65535)==16384?90:L[a+300>>1]==16384?91:92;c=L[a+294>>1]!=16384?L[a+296>>1]==16384?91:93:c;J[a+592>>2]=94;J[a+588>>2]=95;J[a+580>>2]=c;Ca:{if((b|0)!=16384)break Ca;Da:{if((f|0)==16384){f=97;c=96;break Da}if(L[a+304>>1]!=16384)break Ca;f=99;c=98}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 133:b=J[e>>2];c= -b&255;if((c|0)==255){H[a+341|0]=1;break p}if(!c){H[a+341|0]=0;break p}if(!(!(b&256)|c>>>0>1]))H[a+341|0]=1;if(!(!(b&512)|!K[a+285|0]))H[a+341|0]=1;if(!(!(b&1024)|!K[a+286|0]))H[a+341|0]=1;if(!(!(b&2048)|c>>>0>=L[a+256>>1]))H[a+341|0]=0;if(!(!(b&4096)|!K[a+285|0]))H[a+341|0]=0;if(!(b&8192)|!K[a+286|0])break p;H[a+341|0]=0;break p;case 131:case 132:Ai(a);break p;case 130:if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break p;Ea:{d=L[e+4>>1];c=L[a+152>>1];if(d>>> -0>=c>>>0)break Ea;b=L[e>>1];if(c>>>0<=b>>>0)break Ea;if(b>>>0>d>>>0)break p;c=b;while(1){b=J[a+168>>2]+b|0;H[b|0]=K[b|0]&254;c=c+1|0;b=c&65535;if(d>>>0>=b>>>0)continue;break}break p}if(!K[a+565|0])break p;d=134;break i;case 129:if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break p;Fa:{d=L[e+4>>1];c=L[a+152>>1];if(d>>>0>=c>>>0)break Fa;b=L[e>>1];if(c>>>0<=b>>>0)break Fa;if(b>>>0>d>>>0)break p;c=b;while(1){b=J[a+168>>2]+b|0;H[b|0]=K[b|0]|1;c=c+1|0;b=c&65535;if(d>>>0>=b>>> -0)continue;break}break p}if(!K[a+565|0])break p;d=134;break i;case 128:Ga:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Ga;f=J[a+308>>2];if((f|0)<=J[a+16>>2]){if((f|0)<=0)break Ga;while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];Ha:{if(b>>>0>=L[a+152>>1]){b=f;if(!K[a+565|0])break Ha;d=134;break i}b=b+J[a+168>>2]|0;H[b|0]=K[b|0]^1;b=J[a+308>>2]}f=b-1|0;J[a+308>>2]=f;if((b|0)>1)continue;break}c=J[a+28>>2];break Ga}if(!K[a+565|0])break Ga;J[a+12>> -2]=129}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 125:J[a+572>>2]=102;J[a+316>>2]=3;break p;case 124:J[a+572>>2]=103;J[a+316>>2]=4;break p;case 123:Ai(a);break p;case 122:J[a+572>>2]=104;J[a+316>>2]=5;break p;case 121:if(J[e+4>>2])break p;b=132;d=c;c=J[e>>2];Ia:{if(!(d|c))break Ia;c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break Ia;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+8>>2])break Ia;H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>> -2])break p}J[a+12>>2]=b;break o;case 120:if(!J[e+4>>2])break p;b=132;d=c;c=J[e>>2];Ja:{if(!(d|c))break Ja;c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break Ja;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+8>>2])break Ja;H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>>2])break p}J[a+12>>2]=b;break o;case 119:d=J[e>>2];c=d>>>4|0;b=J[(c&12)+98232>>2];Ka:{La:{Ma:{Na:{c=c&3;switch(c-1|0){case 2:break La;case 1:break Ma;case 0:break Na;default:break Ka}}c= -b>>>10|0;break Ka}c=b>>>9|0;break Ka}c=P(b,3)>>>10|0}J[a+484>>2]=c;J[a+572>>2]=105;J[a+316>>2]=7;c=d&15;if(c)c=(P(b,c-4|0)|0)/8|0;else c=b-1|0;J[a+488>>2]=c>>8;J[a+480>>2]=b>>>8;break p;case 118:d=J[e>>2];c=d>>>4|0;b=J[(c&12)+98216>>2];Oa:{Pa:{Qa:{Ra:{c=c&3;switch(c-1|0){case 2:break Pa;case 1:break Qa;case 0:break Ra;default:break Oa}}c=b>>>10|0;break Oa}c=b>>>9|0;break Oa}c=P(b,3)>>>10|0}J[a+484>>2]=c;J[a+572>>2]=106;J[a+316>>2]=6;J[a+480>>2]=b>>>8;c=d&15;J[a+488>>2]=(c?P(b,c-4|0)>>3:b-1|0)>>8; -break p;case 115:case 116:case 117:d=Ab[J[a+596>>2]](a)|0;c=1;f=J[e>>2];Sa:{if(!f)break Sa;while(1){b=J[a+28>>2];if((b|0)<=1){if(K[a+565|0])J[a+12>>2]=129;J[a+28>>2]=0;break Sa}g=b-2|0;J[a+28>>2]=g;e=b<<2;b=J[a+24>>2];e=J[(e+b|0)-4>>2];Ta:{if(e>>>0>=M[a+384>>2]){if(!K[a+565|0])break Ta;d=134;break i}g=J[b+(g<<2)>>2];b=g>>>4&15;Ua:{Va:switch(K[a+372|0]-116|0){case 0:b=b|16;break Ua;case 1:break Va;default:break Ua}b=b|32}if((d|0)!=(L[a+336>>1]+b|0))break Ta;b=g&15;Ab[J[a+608>>2]](a,e,(b>>>0>7?-7:-8)+ -b<<6-L[a+338>>1])}c=c+1|0;if(f>>>0>=c>>>0)continue;break}}J[a+32>>2]=J[a+28>>2];break p;case 113:case 114:tv(a,e);break p;case 112:b=J[e>>2];if(b>>>0>=M[a+384>>2]){if(!K[a+565|0])break p;d=134;break i}c=Rb(J[e+4>>2],J[a+264>>2]);J[J[a+388>>2]+(b<<2)>>2]=c;break p;case 108:case 109:case 110:case 111:b=J[(((h&3)<<2)+a|0)+268>>2];c=J[e>>2];if((c|0)>=0){b=b+c|0;J[e>>2]=(b|0)>0?b:0;break p}b=c-b|0;J[e>>2]=b>>31&b;break p;case 104:case 105:case 106:case 107:R=e,V=Ab[J[a+572>>2]](a,J[e>>2],h&3)|0,J[R>>2]= -V;break p;case 103:J[e>>2]=J[e>>2]+63&-64;break p;case 102:J[e>>2]=J[e>>2]&-64;break p;case 101:J[e>>2]=0-J[e>>2];break p;case 100:b=J[e>>2];if((b|0)>=0)break p;J[e>>2]=0-b;break p;case 99:R=e,V=hc(J[e>>2],J[e+4>>2],64),J[R>>2]=V;break p;case 98:b=J[e+4>>2];if(!b){d=133;break i}R=e,V=Fs(J[e>>2],64,b),J[R>>2]=V;break p;case 97:J[e>>2]=J[e>>2]-J[e+4>>2];break p;case 96:J[e>>2]=J[e+4>>2]+J[e>>2];break p;case 95:b=J[e>>2];if(b>>>0>6){d=132;break i}I[a+338>>1]=b;break p;case 94:I[a+336>>1]=J[e>>2];break p; -case 93:tv(a,e);break p;case 92:J[e>>2]=!J[e>>2];break p;case 91:J[e>>2]=J[e>>2]?1:J[e+4>>2]!=0;break p;case 90:if(!J[e>>2]){J[e>>2]=0;break p}J[e>>2]=J[e+4>>2]!=0;break p;case 88:if(J[e>>2])break p;c=J[a+364>>2];g=J[a+368>>2];d=1;Wa:while(1){c=c+f|0;J[a+364>>2]=c;Xa:{if((d|0)==1){if((c|0)>=(g|0)){d=131;break i}b=K[c+i|0];H[a+372|0]=b;f=H[b+96160|0];J[a+376>>2]=f;if((b&254)==64){e=c+1|0;if((e|0)>=(g|0)){d=131;break i}f=2-P(K[e+i|0],f)|0;J[a+376>>2]=f}if((g|0)<(c+f|0)){d=131;break i}Ya:switch(b-88| -0){case 1:break p;case 0:break Xa;default:break Ya}d=1;if((b|0)!=27)continue;break p}if((c|0)>=(g|0)){d=131;break i}Za:{while(1){e=K[c+i|0];H[a+372|0]=e;f=H[e+96160|0];J[a+376>>2]=f;if((e&254)==64){b=c+1|0;if((b|0)>=(g|0)){d=131;break i}f=2-P(K[b+i|0],f)|0;J[a+376>>2]=f}b=c+f|0;if((b|0)>(g|0)){d=131;break i}if((e|0)!=27)switch(e-88|0){case 0:break Xa;case 1:break Za;default:continue Wa}J[a+364>>2]=b;c=b;if((b|0)<(g|0))continue;break}d=131;break i}d=d-1|0;if(d)continue;break p}d=d+1|0;continue}case 87:R= -e,V=!(Ab[J[a+572>>2]](a,J[e>>2],3)&127),J[R>>2]=V;break p;case 86:R=e,V=(Ab[J[a+572>>2]](a,J[e>>2],3)&127)==64,J[R>>2]=V;break p;case 85:J[e>>2]=J[e>>2]!=J[e+4>>2];break p;case 84:J[e>>2]=J[e>>2]==J[e+4>>2];break p;case 83:J[e>>2]=J[e>>2]>=J[e+4>>2];break p;case 82:J[e>>2]=J[e>>2]>J[e+4>>2];break p;case 81:J[e>>2]=J[e>>2]<=J[e+4>>2];break p;case 80:J[e>>2]=J[e>>2]>2];break p;case 78:H[a+320|0]=0;break p;case 77:H[a+320|0]=1;break p;case 76:if(J[J[J[a>>2]+96>>2]+64>>2]==35){R=e,V=Ab[J[a+596>> -2]](a)|0,J[R>>2]=V;break p}J[e>>2]=J[a+216>>2];break p;case 75:R=e,V=Ab[J[a+596>>2]](a)|0,J[R>>2]=V;break p;case 73:case 74:_a:{$a:{c=L[e>>1];if(c>>>0>1]){b=L[e+4>>1];if(b>>>0>1])break $a}b=0;if(!K[a+565|0])break _a;J[a+12>>2]=134;J[e>>2]=0;break p}if(h&1){c=J[a+52>>2]+(c<<3)|0;b=J[a+88>>2]+(b<<3)|0;R=e,V=Ab[J[a+576>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[R>>2]=V;break p}if(!(L[a+350>>1]?L[a+348>>1]:0)){c=J[a+48>>2]+(c<<3)|0;b=J[a+84>>2]+(b<<3)|0;R=e,V=Ab[J[a+580>>2]](a, -J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[R>>2]=V;break p}b=J[a+92>>2]+(b<<3)|0;c=J[a+56>>2]+(c<<3)|0;d=J[a+224>>2];if((d|0)==J[a+228>>2]){R=e,V=Rb(Ab[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[a+224>>2]),J[R>>2]=V;break p}b=(V=a,S=Rb(J[c>>2]-J[b>>2]|0,d),T=Rb(J[c+4>>2]-J[b+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],Ab[R](V|0,S|0,T|0)|0)}J[e>>2]=b;break p;case 72:b=L[e>>1];if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break p;d=134;break i}c=b<<3;d=c+J[a+124>>2]|0;d=Ab[J[a+576>>2]](a,J[d>>2], -J[d+4>>2])|0;Ab[J[a+588>>2]](a,p,b,J[e+4>>2]-d|0);if(L[a+352>>1])break p;b=c+J[a+120>>2]|0;c=c+J[a+124>>2]|0;d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;break p;case 70:case 71:b=J[e>>2];ab:{if(b>>>0>=L[a+116>>1]){b=0;if(!K[a+565|0])break ab;J[a+12>>2]=134;J[e>>2]=0;break p}if(h&1){b=J[a+120>>2]+(b<<3)|0;R=e,T=Ab[J[a+580>>2]](a,J[b>>2],J[b+4>>2])|0,J[R>>2]=T;break p}b=J[a+124>>2]+(b<<3)|0;b=Ab[J[a+576>>2]](a,J[b>>2],J[b+4>>2])|0}J[e>>2]=b;break p;case 69:b=J[e>>2];bb:{if(b>>>0>=M[a+384>>2]){b=0;if(!K[a+ -565|0])break bb;d=134;break i}b=Ab[J[a+600>>2]](a,b)|0}J[e>>2]=b;break p;case 68:b=J[e>>2];if(b>>>0>=M[a+384>>2]){if(!K[a+565|0])break p;d=134;break i}Ab[J[a+604>>2]](a,b,J[e+4>>2]);break p;case 67:b=J[e>>2];cb:{if(b>>>0>=L[a+472>>1]){b=0;if(!K[a+565|0])break cb;d=134;break i}b=J[J[a+476>>2]+(b<<2)>>2]}J[e>>2]=b;break p;case 66:b=J[e>>2];if(b>>>0>=L[a+472>>1]){if(!K[a+565|0])break p;d=134;break i}J[J[a+476>>2]+(b<<2)>>2]=J[e+4>>2];break p;case 65:d=130;c=(b-J[a+16>>2]|0)+1|0;b=J[a+364>>2];f=K[(b+ -i|0)+1|0];if(c>>>0<=f>>>0)break i;J[a+364>>2]=b+2;if(f){b=0;if((f|0)!=1){d=f&254;c=0;while(1){g=J[a+364>>2];J[a+364>>2]=g+2;h=b<<2;g=g+i|0;g=K[g|0]|K[g+1|0]<<8;J[h+e>>2]=(g<<8|g>>>8)<<16>>16;g=J[a+364>>2];J[a+364>>2]=g+2;g=g+i|0;g=K[g|0]|K[g+1|0]<<8;J[e+(h|4)>>2]=(g<<8|g>>>8)<<16>>16;b=b+2|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(f&1){c=J[a+364>>2];J[a+364>>2]=c+2;d=e+(b<<2)|0;b=c+i|0;b=K[b|0]|K[b+1|0]<<8;J[d>>2]=(b<<8|b>>>8)<<16>>16}g=J[a+32>>2]}H[a+380|0]=0;J[a+32>>2]=f+g;break p;case 64:d= -130;c=K[(i+J[a+364>>2]|0)+1|0];if(c>>>0>=(b-J[a+16>>2]|0)+1>>>0)break i;if(c){d=e-4|0;b=1;if(c>>>0>=4){g=c&252;f=0;while(1){h=b<<2;J[h+d>>2]=K[((i+J[a+364>>2]|0)+b|0)+1|0];J[e+h>>2]=K[((i+J[a+364>>2]|0)+b|0)+2|0];h=b+2|0;J[d+(h<<2)>>2]=K[(h+(i+J[a+364>>2]|0)|0)+1|0];h=b+3|0;J[d+(h<<2)>>2]=K[(h+(i+J[a+364>>2]|0)|0)+1|0];b=b+4|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}f=0;g=c&3;if(g)while(1){J[d+(b<<2)>>2]=K[((i+J[a+364>>2]|0)+b|0)+1|0];b=b+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}g=J[a+32>>2]}J[a+ -32>>2]=c+g;break p;case 62:case 63:db:{eb:{c=L[e>>1];if(c>>>0>1]){b=J[e+4>>2];if(b>>>0>2])break eb}if(!K[a+565|0])break db;J[a+12>>2]=134;break db}b=Ab[J[a+600>>2]](a,b)|0;if(!L[a+348>>1]){f=I[a+302>>1];d=f>>31;e=(d^f)-d|0;d=b>>31;h=(d^b)-d|0;i=h>>>16|0;j=P(e,i);g=j<<16|8192;l=c<<3;d=l+J[a+48>>2]|0;n=g;q=e;e=h&65535;g=g+P(q,e)|0;g=(j>>>16|0)+(n>>>0>g>>>0)<<18|g>>>14;J[d>>2]=(b^f)<0?0-g|0:g;f=I[a+304>>1];g=f>>31;h=(f^g)-g|0;i=P(h,i);g=i<<16|8192;n=g;g=g+P(e,h)|0;g=(i>>>16|0)+(n>>> -0>g>>>0)<<18|g>>>14;J[d+4>>2]=(b^f)<0?0-g|0:g;g=J[d+4>>2];f=l+J[a+52>>2]|0;J[f>>2]=J[d>>2];J[f+4>>2]=g}d=J[a+52>>2]+(c<<3)|0;d=Ab[J[a+576>>2]](a,J[d>>2],J[d+4>>2])|0;if(H[a+372|0]&1){g=b-d|0;f=g>>31;b=Ab[J[a+572>>2]](a,J[a+324>>2]<((f^g)-f|0)?d:b,3)|0}Ab[J[a+588>>2]](a,m,c,b-d|0)}I[a+290>>1]=c;I[a+288>>1]=c;break p;case 61:J[a+572>>2]=107;J[a+316>>2]=2;break p;case 60:f=J[a+308>>2];fb:{if(!(L[a+288>>1]>1]&(f|0)<=J[a+16>>2])){if(!K[a+565|0])break fb;J[a+12>>2]=134;break fb}if((f|0)<=0)break fb; -while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];gb:{if(b>>>0>=L[a+80>>1]){b=f;if(!K[a+565|0])break gb;d=134;break i}d=b;b=J[a+88>>2]+(b<<3)|0;c=J[a+52>>2]+(L[a+288>>1]<<3)|0;T=a,S=o,V=d,U=0-(Ab[J[a+576>>2]](a,J[b>>2]-J[c>>2]|0,J[b+4>>2]-J[c+4>>2]|0)|0)|0,R=J[a+588>>2],Ab[R](T|0,S|0,V|0,U|0);b=J[a+308>>2]}f=b-1|0;J[a+308>>2]=f;if((b|0)>1)continue;break}c=J[a+28>>2]}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 58:case 59:hb:{b=L[e>>1];if(b>>>0>1]){c=L[a+288>>1];if(c>>>0> -1])break hb}if(!K[a+565|0])break p;d=134;break i}if(!L[a+350>>1]){c=J[a+48>>2]+(c<<3)|0;g=J[c+4>>2];d=b<<3;f=d+J[a+84>>2]|0;J[f>>2]=J[c>>2];J[f+4>>2]=g;Ab[J[a+592>>2]](a,o,b,J[e+4>>2]);c=d+J[a+88>>2]|0;d=d+J[a+84>>2]|0;f=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=f;c=L[a+288>>1]}d=J[a+88>>2]+(b<<3)|0;c=J[a+52>>2]+(c<<3)|0;c=Ab[J[a+576>>2]](a,J[d>>2]-J[c>>2]|0,J[d+4>>2]-J[c+4>>2]|0)|0;Ab[J[a+588>>2]](a,o,b,J[e+4>>2]-c|0);I[a+292>>1]=b;I[a+290>>1]=L[a+288>>1];if(!(H[a+372|0]&1))break p;I[a+288>>1]=b;break p; -case 57:ib:{jb:{b=J[a+308>>2];kb:{if((b|0)>J[a+16>>2]){if(K[a+565|0])break kb;break ib}c=1;c=!L[a+348>>1]|!L[a+350>>1]?c:!L[a+352>>1];e=L[a+290>>1];if(e>>>0>1])break jb;if(!K[a+565|0])break ib}J[a+12>>2]=134;break ib}h=J[(c?48:56)+a>>2];n=e<<3;d=n;g=h+d|0;l=J[a+52>>2];i=l+d|0;d=0;f=0;j=L[a+292>>1];if(j>>>0>1]){lb:{if(c){b=J[a+84>>2]+(j<<3)|0;f=Ab[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[(h+n|0)+4>>2]|0)|0;break lb}b=J[a+224>>2];if((b|0)==J[a+228>>2]){b=J[a+92>>2]+(j<<3)|0;f=Ab[J[a+ -580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[(h+(e<<3)|0)+4>>2]|0)|0;break lb}f=(U=a,V=Rb(J[J[a+92>>2]+(j<<3)>>2]-J[g>>2]|0,b),S=Rb(J[(J[a+92>>2]+(L[a+292>>1]<<3)|0)+4>>2]-J[(h+(e<<3)|0)+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],Ab[R](U|0,V|0,S|0)|0)}b=J[a+88>>2]+(L[a+292>>1]<<3)|0;d=Ab[J[a+576>>2]](a,J[b>>2]-J[i>>2]|0,J[b+4>>2]-J[(l+(e<<3)|0)+4>>2]|0)|0;b=J[a+308>>2]}if((b|0)<=0)break ib;e=e<<3;j=e+l|0;e=e+h|0;if(c)while(1){c=J[a+28>>2]-1|0;J[a+28>>2]=c;c=J[J[a+24>>2]+(c<<2)>>2];mb:{if(c>>>0>=L[a+116>>1]){if(!K[a+ -565|0])break mb;d=134;break i}h=c<<3;b=h+J[a+120>>2]|0;b=Ab[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[e+4>>2]|0)|0;h=h+J[a+124>>2]|0;h=Ab[J[a+576>>2]](a,J[h>>2]-J[i>>2]|0,J[h+4>>2]-J[j+4>>2]|0)|0;n=a;c=c&65535;if(!(!b|!f))b=hc(b,d,f);Ab[J[a+588>>2]](n,p,c,b-h|0);b=J[a+308>>2]}c=b;b=c-1|0;J[a+308>>2]=b;if((c|0)>1)continue;break ib}while(1){c=J[a+28>>2]-1|0;J[a+28>>2]=c;c=J[J[a+24>>2]+(c<<2)>>2];nb:{if(c>>>0>=L[a+116>>1]){if(!K[a+565|0])break nb;d=134;break i}b=J[a+224>>2];ob:{if((b|0)==J[a+228>> -2]){b=J[a+128>>2]+(c<<3)|0;b=Ab[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[e+4>>2]|0)|0;break ob}h=c<<3;b=(S=a,V=Rb(J[h+J[a+128>>2]>>2]-J[g>>2]|0,b),U=Rb(J[(h+J[a+128>>2]|0)+4>>2]-J[e+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],Ab[R](S|0,V|0,U|0)|0)}h=J[a+124>>2]+(c<<3)|0;h=Ab[J[a+576>>2]](a,J[h>>2]-J[i>>2]|0,J[h+4>>2]-J[j+4>>2]|0)|0;n=a;c=c&65535;if(!(!b|!f))b=hc(b,d,f);Ab[J[a+588>>2]](n,p,c,b-h|0);b=J[a+308>>2]}c=b;b=c-1|0;J[a+308>>2]=b;if((c|0)>1)continue;break}}J[a+308>>2]=1;J[a+32>>2]=J[a+28>>2];break p; -case 56:f=0;f=!L[a+348>>1]|!L[a+350>>1]?f:L[a+352>>1]!=0;b=J[a+308>>2];pb:{if((b|0)>=J[a+16>>2]){if(!K[a+565|0])break pb;J[a+12>>2]=134;break pb}if((b|0)<=0)break pb;c=I[a+304>>1];d=c>>31;b=J[e>>2];g=b>>31;e=(c^d)-d|0;g=(b^g)-g|0;h=g>>>16|0;i=P(e,h);d=i<<16|8192;n=d;g=g&65535;d=d+P(g,e)|0;d=(i>>>16|0)+(n>>>0>d>>>0)<<18|d>>>14;e=(b^c)<0?0-d|0:d;c=I[a+302>>1];d=c>>31;i=h;h=(c^d)-d|0;i=P(i,h);d=i<<16|8192;n=d;d=d+P(g,h)|0;d=(i>>>16|0)+(n>>>0>d>>>0)<<18|d>>>14;c=(b^c)<0?0-d|0:d;while(1){b=J[a+28>>2]- -1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];qb:{if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break qb;d=134;break i}rb:{sb:{tb:{ub:{if(J[J[J[a>>2]+96>>2]+64>>2]==40){if(K[a+615|0]){vb:{if(!f)break vb;if(K[a+617|0]?K[a+616|0]:0)break qb;if(L[a+304>>1]?K[a+564|0]:0)break vb;if(!(K[b+J[a+132>>2]|0]&16))break qb}if(L[a+302>>1]){d=b+J[a+132>>2]|0;H[d|0]=K[d|0]|8}if(!L[a+304>>1])break qb;if(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40|(!K[a+616|0]|!K[a+617|0]))break sb;break rb}if(L[a+302>>1])break ub;break tb}if(!L[a+ -302>>1])break tb}d=J[a+124>>2]+(b<<3)|0;J[d>>2]=c+J[d>>2];d=b+J[a+132>>2]|0;H[d|0]=K[d|0]|8}if(!L[a+304>>1])break qb;if(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40))break sb;if(K[a+617|0])break rb}d=J[a+124>>2]+(b<<3)|0;J[d+4>>2]=e+J[d+4>>2]}b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|16}b=J[a+308>>2];J[a+308>>2]=b-1;if((b|0)>1)continue;break}c=J[a+28>>2]}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 54:case 55:if(M[e>>2]>=2){if(!K[a+565|0])break p;J[a+12>>2]=134;break p}if(pp(a,k+4|0,k,k+12|0,k+10|0))break p; -wb:{xb:switch(L[a+352>>1]){case 0:c=L[a+116>>1];break wb;case 1:break xb;default:break p}b=I[a+118>>1];if((b|0)<=0)break p;c=L[(J[a+136>>2]+((b&65535)<<1)|0)-2>>1]+1|0}d=c&65535;if(!d)break p;e=J[k>>2];h=J[k+4>>2];f=J[a+124>>2];if((f|0)==J[k+28>>2]){b=0;c=L[k+10>>1];while(1){yb:{if((b|0)==(c|0))break yb;if(!(!L[a+302>>1]|(K[a+615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0))){g=f+(b<<3)|0;J[g>>2]=h+J[g>>2]}if(!L[a+304>>1])break yb;if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break yb; -g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2]}b=b+1|0;if((d|0)!=(b|0))continue;break}break p}b=L[a+302>>1];if(!L[a+304>>1]){if(!b)break p;g=J[J[J[a>>2]+96>>2]+64>>2];b=0;d=c&65535;if((d|0)!=1){e=d&65534;d=0;while(1){if(!(K[a+615|0]?(g|0)==40:0)){i=f+(b<<3)|0;J[i>>2]=h+J[i>>2]}if(!(K[a+615|0]?(g|0)==40:0)){i=f+((b|1)<<3)|0;J[i>>2]=h+J[i>>2]}b=b+2|0;d=d+2|0;if((e|0)!=(d|0))continue;break}}if(!(c&1)|(K[a+615|0]?(g|0)==40:0))break p;b=f+(b<<3)|0;J[b>>2]=h+J[b>>2];break p}d=J[J[J[a>>2]+96>>2]+64>>2];if(!b){if((d| -0)!=40){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if(!K[a+615|0]){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+ -J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if(!K[a+616|0]){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c= -c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if(K[a+617|0])break p;d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if((d| -0)==40){c=c&65535;d=K[a+615|0];b=0;while(1){zb:{Ab:{if(!d){g=f+(b<<3)|0;J[g>>2]=h+J[g>>2];break Ab}if(!K[a+616|0])break Ab;if(K[a+617|0])break zb}g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2]}b=b+1|0;if((c|0)!=(b|0))continue;break}break p}d=0;b=c&65535;if((b|0)!=1){i=b&65534;g=0;while(1){j=d<<3;b=j+f|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>>2];b=f+(j|8)|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>>2];d=d+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break p;b=f+(d<<3)|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>> -2];break p;case 52:case 53:b=J[e>>2];c=b<<16>>16;if(c>>>0>=(L[a+352>>1]?I[a+118>>1]:1)>>>0){if(!K[a+565|0])break p;J[a+12>>2]=134;break p}if(pp(a,k+4|0,k,k+12|0,k+10|0))break p;if(b<<16)b=(L[(J[a+136>>2]+(c<<1)|0)-2>>1]-L[a+140>>1]|0)+1|0;else b=0;b=b&65535;if(L[a+352>>1])c=(L[J[a+136>>2]+(c<<1)>>1]-L[a+140>>1]|0)+1|0;else c=L[a+116>>1];c=c&65535;if(b>>>0>=c>>>0)break p;d=L[k+10>>1];f=J[k>>2];g=J[k+4>>2];e=J[k+28>>2];while(1){h=J[a+124>>2];Bb:{if((h|0)==(e|0)&(b|0)==(d|0))break Bb;if(L[a+302>>1]){if(!(K[a+ -615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0)){h=h+(b<<3)|0;J[h>>2]=g+J[h>>2]}h=J[a+132>>2]+b|0;H[h|0]=K[h|0]|8}if(!L[a+304>>1])break Bb;Cb:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Cb;h=J[a+124>>2]+(b<<3)|0;J[h+4>>2]=f+J[h+4>>2]}h=J[a+132>>2]+b|0;H[h|0]=K[h|0]|16}b=b+1|0;if((c|0)!=(b|0))continue;break}break p;case 50:case 51:Db:{if(J[a+16>>2]>2]){if(!K[a+565|0])break Db;J[a+12>>2]=134;break Db}if(pp(a,k+4|0,k,k+12|0,k+10|0))break p;if(J[a+308>>2]<=0)break Db; -c=J[k>>2];d=J[k+4>>2];while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];Eb:{if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break Eb;J[a+12>>2]=134;break p}if(L[a+302>>1]){if(!(K[a+615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0)){f=J[a+124>>2]+(b<<3)|0;J[f>>2]=d+J[f>>2]}f=b+J[a+132>>2]|0;H[f|0]=K[f|0]|8}if(!L[a+304>>1])break Eb;Fb:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Fb;f=J[a+124>>2]+(b<<3)|0;J[f+4>>2]=c+J[f+4>>2]}b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|16}b=J[a+ -308>>2];J[a+308>>2]=b-1;if((b|0)>1)continue;break}}J[a+308>>2]=1;J[a+32>>2]=J[a+28>>2];break p;case 48:case 49:Gb:{if(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)break Gb;if(K[a+617|0]?K[a+616|0]:0)break p;if(h&1){H[a+616|0]=1;break Gb}H[a+617|0]=1}if(!L[a+154>>1])break p;q=J[a+156>>2];Hb:{if(h&1){r=J[a+164>>2];w=8;j=J[a+160>>2];break Hb}q=q+4|0;r=J[a+164>>2]+4|0;w=16;j=J[a+160>>2]+4|0}J[k+20>>2]=r;J[k+16>>2]=j;J[k+12>>2]=q;A=L[a+152>>1];J[k+24>>2]=A;v=0;f=0;while(1){l=f;b=L[J[a+172>>2]+(v<<1)>>1]- -L[a+176>>1]|0;c=L[a+152>>1];s=b>>>0>>0?b:c-1|0;Ib:{if(s>>>0>>0)break Ib;b=J[a+168>>2];u=0;g=f;Jb:{while(1){Kb:{f=g+1|0;if(K[b+g|0]&w){d=g;c=d;Lb:{Mb:{b=f;D=s>>>0>>0;if(!D){while(1){e=c;n=d;d=b;Nb:{if(!(K[J[a+168>>2]+b|0]&w))break Nb;c=b;b=e+1|0;if(n>>>0>>0|c>>>0>=A>>>0|e>>>0>=A>>>0)break Nb;h=J[(c<<3)+r>>2];i=J[(e<<3)+r>>2];Ob:{if((h|0)>=(i|0)){c=h;h=i;i=d;break Ob}c=i;i=e;e=d}t=i<<3;i=J[t+j>>2];B=J[q+t>>2];E=i-B|0;t=e<<3;e=J[t+j>>2];C=J[q+t>>2];F=e-C|0;Pb:{if(!((c|0)==(h|0)|(e|0)==(i| -0))){N=c-h|0;O=i-e|0;i=0;t=0;while(1){c=b<<3;Q=c+j|0;c=J[c+q>>2];Qb:{if((c|0)<=(C|0)){z=c+F|0;break Qb}z=c+E|0;if((c|0)>=(B|0))break Qb;if(!i)t=dc(O,N);i=1;z=Rb(J[(b<<3)+r>>2]-h|0,t)+e|0}J[Q>>2]=z;b=b+1|0;if(n>>>0>=b>>>0)continue;break}break Pb}while(1){h=b<<3;c=J[h+q>>2];J[h+j>>2]=(c|0)>(C|0)?(c|0)<(B|0)?e:c+E|0:c+F|0;b=b+1|0;if(n>>>0>=b>>>0)continue;break}}c=d}b=d+1|0;if(s>>>0>=b>>>0)continue;break}if((c|0)!=(g|0))break Mb}c=g<<3;d=J[c+j>>2];c=J[c+q>>2];if((d|0)==(c|0))break Jb;e=d-c|0;if(g>>>0<= -l>>>0)break Kb;d=0;c=u&3;if(c)while(1){h=j+(l<<3)|0;J[h>>2]=e+J[h>>2];l=l+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}if(u-1>>>0>2)break Lb;break Kb}d=k+12|0;sv(d,c+1&65535,s,c,g);if(!g)break Jb;sv(d,l,g-1|0,c,g);break Jb}while(1){c=j+(l<<3)|0;J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];J[c+16>>2]=e+J[c+16>>2];J[c+24>>2]=e+J[c+24>>2];l=l+4|0;if((l|0)!=(g|0))continue;break}break Kb}u=u+1|0;g=f;if(s>>>0>=f>>>0)continue;break Ib}break}if(D)break Jb;while(1){c=j+(f<<3)|0;J[c>>2]=e+J[c>>2];f=f+1|0;if(s>>>0>= -f>>>0)continue;break}}f=b}v=v+1|0;if((v|0)>1])continue;break}break p;case 46:case 47:b=L[e>>1];if(b>>>0>=L[a+44>>1]){if(!K[a+565|0])break p;d=134;break i}if(h&1){c=J[a+52>>2]+(b<<3)|0;c=Ab[J[a+576>>2]](a,J[c>>2],J[c+4>>2])|0;c=(Ab[J[a+572>>2]](a,c,3)|0)-c|0}else c=0;Ab[J[a+588>>2]](a,m,b,c);I[a+290>>1]=b;I[a+288>>1]=b;break p;case 79:break i;case 45:break q}c=J[a+432>>2];if((c|0)<=0){d=136;break i}b=c-1|0;J[a+432>>2]=b;b=J[a+440>>2]+(b<<4)|0;d=J[b+8>>2];J[b+8>>2]=d-1;H[a+380|0]=0;if((d|0)>= -2){J[a+432>>2]=c;J[a+364>>2]=J[J[b+12>>2]+4>>2];break p}c=J[b>>2];if(c-4>>>0<4294967293){d=132;break i}d=(c-1<<3)+a|0;f=J[d+448>>2];if(!f){d=138;break i}d=J[d+452>>2];b=J[b+4>>2];if((d|0)<(b|0)){d=131;break i}J[a+368>>2]=d;J[a+360>>2]=f;J[a+364>>2]=b;J[a+356>>2]=c}b=J[a+12>>2]}if(b){d=128;if((b|0)!=128)break h;b=J[a+420>>2];if(!b)break i;c=J[a+412>>2];if((c|0)<=0)break i;c=P(c,24)+b|0;while(1){Rb:{if(!(!K[b+16|0]|K[a+372|0]!=K[b+12|0])){c=J[a+432>>2];if((c|0)>=J[a+436>>2]){d=134;break i}c=J[a+440>> -2]+(c<<4)|0;J[c>>2]=J[a+356>>2];d=J[a+364>>2];J[c+12>>2]=b;J[c+8>>2]=1;J[c+4>>2]=d+1;f=J[b>>2];if(f-4>>>0<4294967293){d=132;break i}d=(f-1<<3)+a|0;g=J[d+448>>2];if(!g){d=138;break i}c=J[b+4>>2];d=J[d+452>>2];if((c|0)<=(d|0))break Rb;d=131;break i}b=b+24|0;if(c>>>0>b>>>0)continue;break i}break}J[a+368>>2]=d;J[a+360>>2]=g;J[a+364>>2]=c;J[a+356>>2]=f;break l}J[a+16>>2]=J[a+32>>2];if(!K[a+380|0])break m}J[a+364>>2]=J[a+364>>2]+J[a+376>>2]}G=G+1|0;if(G>>>0>1E6){b=139;break h}d=J[a+368>>2];c=J[a+364>>2]}if((c| -0)>=(d|0)){b=0;d=131;if(J[a+432>>2]>0)break i;break h}if(!K[a+492|0])continue;break}b=0;break h}J[a+12>>2]=d;b=d}xb=k+48|0;return b|0}function Kda(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,u=0,v=0,w=0,x=0,y=0,z=0;s=xb-16|0;xb=s;a:{b:{c:{d:{if(!a)break d;if(!(K[a+204|0]&64)){J[a+216>>2]=0;m=xb-16|0;xb=m;d=J[a+464>>2];e:{f:{g:{g=J[a+460>>2];if(g){if(!d)break g;if(x=Un(m+12|0,g,d),y=0,z=J[m+12>>2]-105001>>>0>=4294957295,z?x:y)break f;d=J[a+208>> -2]|8192;break e}if(d){x=a,y=El(d),J[x+460>>2]=y;break f}J[a+460>>2]=1E5;J[a+464>>2]=1E5;break f}x=a,y=El(g),J[x+464>>2]=y}d=J[a+208>>2]&-8193}J[a+208>>2]=d;if((d&262272)==262144){I[a+394>>1]=0;d=d&-41943297;J[a+208>>2]=d;J[a+204>>2]=J[a+204>>2]&-8193}h:{if(d&256){if(K[a+401|0]&2)break h;J[a+200>>2]=J[a+200>>2]|2048;break h}if((d&16512)!=16512)break h;g=L[a+426>>1];if((g|0)!=L[a+428>>1]|(g|0)!=L[a+430>>1])break h;I[a+432>>1]=g;J[a+200>>2]=J[a+200>>2]|2048}f=L[a+394>>1];i:{j:{k:{l:{g=K[a+401|0];if((g| -0)==3){if(!f)break l;h=J[a+504>>2];g=0;while(1){i=K[g+h|0];if((i|0)!=255){if(i)break j;e=1}g=g+1|0;if((f|0)!=(g|0))continue;break}d=d&-8388609;J[a+208>>2]=d;J[a+204>>2]=J[a+204>>2]&-8193;if(e)break j;break k}if(!(f|g&4)){d=d&-385;J[a+208>>2]=d}if(g&2|(d&4352)!=4352)break i;e=L[a+516>>1];g=L[a+432>>1];m:{n:switch(K[a+402|0]-1|0){case 0:e=P(e,255);g=P(g,255);break m;case 1:e=P(e,85);g=P(g,85);break m;case 3:break n;default:break m}e=P(e,17);g=P(g,17)}I[a+428>>1]=g;I[a+430>>1]=g;I[a+426>>1]=g;if(d&33554432)break i; -I[a+512>>1]=e;I[a+514>>1]=e;I[a+510>>1]=e;break i}J[a+204>>2]=J[a+204>>2]&-8193;d=d&-8388609}d=d&-8388993;J[a+208>>2]=d}if((d&4352)!=4352)break i;e=J[a+388>>2]+P(K[a+424|0],3)|0;I[a+426>>1]=K[e|0];I[a+428>>1]=K[e+1|0];I[a+430>>1]=K[e+2|0];if(!f|(d&34078720)!=524288)break i;d=0;g=0;if(f>>>0>=4){h=f&65532;e=0;while(1){i=J[a+504>>2]+g|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|1)|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|2)|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|3)|0;H[i|0]=K[i|0]^-1;g=g+4|0;e=e+4|0;if((h|0)!=(e|0))continue; -break}}e=f&3;if(e)while(1){f=J[a+504>>2]+g|0;H[f|0]=K[f|0]^-1;g=g+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}d=J[a+208>>2]}e=L[a+428>>1]|L[a+430>>1]<<16;g=L[a+424>>1]|L[a+426>>1]<<16;I[a+434>>1]=g;I[a+436>>1]=g>>>16;I[a+438>>1]=e;I[a+440>>1]=e>>>16;I[a+442>>1]=L[a+432>>1];o:{p:{q:{if(d&8192)break q;if(d&6291456){if(J[a+460>>2]-105001>>>0<4294957295|J[a+464>>2]-105001>>>0<4294957295)break q;d=J[a+208>>2]}r:{if(!(d&128))break r;if(J[a+460>>2]-105001>>>0<4294957295|J[a+464>>2]-105001>>>0<4294957295)break q; -if(K[a+418|0]!=3)break r;if(J[a+420>>2]-105001>>>0<4294957295)break q}d=J[a+208>>2];if(J[a+464>>2]-105001>>>0<4294957295?d&8388608:0)break q;if(!(d&128)|K[a+401|0]!=3)break o;l=L[a+394>>1];if(l){f=K[a+430|0];h=K[a+428|0];i=K[a+426|0];k=J[a+388>>2];g=0;while(1){j=J[a+504>>2]+g|0;e=K[j|0];s:{if((e|0)==255)break s;if(!e){d=k+P(g,3)|0;H[d+2|0]=f;H[d+1|0]=h;H[d|0]=i;break s}d=k+P(g,3)|0;e=(P(i,e^255)+P(e,K[d|0])|0)+128|0;H[d|0]=e+((e&65280)>>>8|0)>>>8;e=K[j|0];e=(P(h,e^255)+P(e,K[d+1|0])|0)+128|0;H[d+ -1|0]=((e&65280)>>>8|0)+e>>>8;o=d;e=K[j|0];d=(P(f,e^255)+P(e,K[d+2|0])|0)+128|0;H[o+2|0]=((d&65280)>>>8|0)+d>>>8}g=g+1|0;if((l|0)!=(g|0))continue;break}d=J[a+208>>2]}d=d&-129;break p}d=K[a+402|0];if(J[a+468>>2]|J[a+472>>2]){Wb(a,257807);VD(a)}t:{if(d>>>0<=8){d=J[a+464>>2];u:{if((d|0)<=0){g=1E5;break u}e=J[a+460>>2];v:{if(!e)break v;p=V(1E15/+(e|0)/+(d|0)+.5);d=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!d)break v;if(p>=-2147483648)break u}g=0}e=Zd(a,256);J[a+468>>2]=e;w:{if(g-95E3>>> -0<10001){g=0;while(1){H[e+g|0]=g;d=g|1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]=d;g=g+8|0;if((g|0)!=256)continue;break}break w}v=+(g|0)*1E-5;g=0;while(1){f=e+g|0;x:{if(g-1>>>0<=253){p=V(Qd(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break x}d=0;break x}d=g}H[f|0]=d;g=g+1|0;if((g|0)!=256)continue;break}}if(!(J[a+208>>2]&6291584))break t;d=J[a+460>>2];y:{z:{if(!d)break z;p=V(1E10/+(d|0)+.5);d=p<=2147483647;if(R(p)<2147483648)g= -~~p;else g=-2147483648;if(!d)break z;if(p>=-2147483648)break y}g=0}e=Zd(a,256);J[a+480>>2]=e;A:{if(g-95E3>>>0<10001){g=0;while(1){H[e+g|0]=g;d=g|1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]=d;g=g+8|0;if((g|0)!=256)continue;break}break A}v=+(g|0)*1E-5;g=0;while(1){f=e+g|0;B:{if(g-1>>>0<=253){p=V(Qd(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break B}d=0;break B}d=g}H[f|0]=d;g=g+1|0;if((g|0)!=256)continue;break}}d=J[a+464>> -2];C:{if((d|0)>0){p=V(1E10/+(d|0)+.5);e=p>=-2147483648;if(R(p)<2147483648)d=~~p;else d=-2147483648;d=p<=2147483647?e?d:0:0;break C}d=J[a+460>>2]}e=Zd(a,256);J[a+476>>2]=e;if(d-95E3>>>0<10001){g=0;while(1){H[e+g|0]=g;d=g|1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]=d;g=g+8|0;if((g|0)!=256)continue;break}break t}v=+(d|0)*1E-5;g=0;while(1){f=e+g|0;D:{if(g-1>>>0<=253){p=V(Qd(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break D}d= -0;break D}d=g}H[f|0]=d;g=g+1|0;if((g|0)!=256)continue;break}break t}d=a;i=d;E:{if(K[d+401|0]&2){e=K[d+494|0];g=K[d+493|0];f=K[d+492|0];g=f>>>0>>0?g:f;e=e>>>0>g>>>0?e:g;break E}e=K[a+495|0]}d=(e-1&255)>>>0<15?16-e|0:0;e=d&255;g=J[a+208>>2]&67109888;d=(g?e>>>0<=5?5:e:d)&255;d=d>>>0>=8?8:d;J[i+456>>2]=d;e=J[a+464>>2];F:{G:{if(g){if((e|0)<=0)p=1;else{p=V(+J[a+460>>2]*1E-5*+(e|0)+.5);g=p>=-2147483648;if(R(p)<2147483648)e=~~p;else e=-2147483648;p=p<=2147483647?g?+(e|0)*1E-5:0:0}e=8-d|0;h=Hl(a,4<>2]=h;g=0;while(1){x=h+(g<<2)|0,y=Zd(a,512),J[x>>2]=y;g=g+1|0;if(!(g>>>e|0))continue;break}i=255>>>d|0;n=16-d|0;g=0;while(1){k=P(j,257);v=V(Qd(+((k&65535)+128>>>0)/65535,p)*65535+.5);H:{if(v<4294967296&v>=0){f=~~v>>>0;break H}f=0}f=f&65535;l=(((f<>>0)/65535|0;if(l>>>0>=g>>>0){f=0;q=l-g|0;r=q+1&3;if(r)while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=k;g=g+1|0;f=f+1|0;if((r|0)!=(f|0))continue;break}if(q>>>0>=3)while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=k;f=g+1|0;I[J[h+((f&i)<<2)>> -2]+(f>>>e<<1)>>1]=k;f=g+2|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=k;f=g+3|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=k;g=g+4|0;if((f|0)!=(l|0))continue;break}g=l+1|0}j=j+1|0;if((j|0)!=255)continue;break}break G}f=a+472|0;I:{if((e|0)<=0){g=1E5;break I}g=J[a+460>>2];J:{if(!g)break J;p=V(1E15/+(g|0)/+(e|0)+.5);e=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!e)break J;if(p>=-2147483648)break I}g=0}Er(a,f,d,g);break F}k=256<>>0<=g>>>0)break F;f=0;j=k+(g^-1)|0;l=0-g&3;if(l)while(1){I[J[h+ -((g&i)<<2)>>2]+(g>>>e<<1)>>1]=65535;g=g+1|0;f=f+1|0;if((l|0)!=(f|0))continue;break}if(j>>>0<3)break F;while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=65535;f=g+1|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;f=g+2|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;f=g+3|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;g=g+4|0;if((k|0)!=(g|0))continue;break}}if(!(J[a+208>>2]&6291584))break t;e=a+488|0;g=J[a+460>>2];K:{L:{if(!g)break L;p=V(1E10/+(g|0)+.5);f=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648; -if(!f)break L;if(p>=-2147483648)break K}g=0}Er(a,e,d,g);e=a;f=a+484|0;g=J[a+464>>2];M:{if((g|0)>0){p=V(1E10/+(g|0)+.5);h=p>=-2147483648;if(R(p)<2147483648)g=~~p;else g=-2147483648;g=p<=2147483647?h?g:0:0;break M}g=J[a+460>>2]}Er(e,f,d,g)}d=J[a+208>>2];if(d&128){if(d&6291456)Wb(a,253082);if(K[a+401|0]==3){j=L[a+392>>1];k=J[a+388>>2];d=1E5;g=1E5;N:{O:{P:switch(K[a+418|0]-1|0){case 1:d=J[a+480>>2];f=L[a+430>>1];g=K[d+f|0];l=L[a+428>>1];e=K[l+d|0];n=L[a+426>>1];d=K[n+d|0];h=J[a+468>>2];i=K[h+f|0];f=K[h+ -l|0];h=K[h+n|0];break N;case 0:g=J[a+464>>2];break O;case 2:break P;default:break O}g=El(J[a+420>>2]);d=Fr(J[a+420>>2],J[a+464>>2])}h=L[a+426>>1];Q:{if(d-105001>>>0<4294957295){h=jk(h,d);f=jk(L[a+428>>1],d);i=jk(L[a+430>>1],d);break Q}f=K[a+428|0];i=K[a+430|0]}d=L[a+426>>1];if(g-105001>>>0<4294957295){d=jk(d,g);e=jk(L[a+428>>1],g);g=jk(L[a+430>>1],g);break N}g=K[a+430|0];e=K[a+428|0]}if(j){q=g&255;r=e&255;t=d&255;g=0;while(1){R:{S:{if(L[a+394>>1]<=g>>>0)break S;l=J[a+504>>2]+g|0;e=K[l|0];if((e|0)== -255)break S;if(!e){d=k+P(g,3)|0;H[d+2|0]=i;H[d+1|0]=f;H[d|0]=h;break R}n=J[a+480>>2];d=k+P(g,3)|0;e=(P(t,e^255)+P(e,K[n+K[d|0]|0])|0)+128|0;o=e+(e>>>8&255)>>>8&255;e=J[a+476>>2];H[d|0]=K[o+e|0];o=K[l|0];o=(P(r,o^255)+P(o,K[n+K[d+1|0]|0])|0)+128|0;H[d+1|0]=K[e+((o>>>8&255)+o>>>8&255)|0];o=d;l=K[l|0];d=(P(q,l^255)+P(l,K[n+K[d+2|0]|0])|0)+128|0;H[o+2|0]=K[e+((d>>>8&255)+d>>>8&255)|0];break R}d=k+P(g,3)|0;e=J[a+468>>2];H[d|0]=K[e+K[d|0]|0];H[d+1|0]=K[e+K[d+1|0]|0];H[d+2|0]=K[e+K[d+2|0]|0]}g=g+1|0;if((j| -0)!=(g|0))continue;break}}d=J[a+208>>2]&-8321;break p}T:{U:switch(K[a+418|0]-1|0){case 1:g=El(J[a+460>>2]);d=Fr(J[a+460>>2],J[a+464>>2]);break T;case 2:g=El(J[a+420>>2]);d=Fr(J[a+420>>2],J[a+464>>2]);break T;default:gc(a,253287);B();case 0:break U}g=J[a+464>>2];d=1E5}f=d-105001>>>0<4294957295;h=g-105001>>>0<4294957295;if(h)x=a,y=ai(a,L[a+432>>1],g),I[x+442>>1]=y;if(f)x=a,y=ai(a,L[a+432>>1],d),I[x+432>>1]=y;e=L[a+426>>1];V:{if(!(!((e|0)!=L[a+428>>1]|(e|0)!=L[a+430>>1])&(e|0)==L[a+432>>1])){if(h){x= -a,y=ai(a,e,g),I[x+436>>1]=y;x=a,y=ai(a,L[a+428>>1],g),I[x+438>>1]=y;x=a,y=ai(a,L[a+430>>1],g),I[x+440>>1]=y}if(!f)break V;x=a,y=ai(a,L[a+426>>1],d),I[x+426>>1]=y;x=a,y=ai(a,L[a+428>>1],d),I[x+428>>1]=y;x=a,y=ai(a,L[a+430>>1],d),I[x+430>>1]=y;break V}I[a+430>>1]=e;I[a+428>>1]=e;I[a+426>>1]=e;d=L[a+442>>1];I[a+440>>1]=d;I[a+438>>1]=d;I[a+436>>1]=d}H[a+418|0]=1;d=J[a+208>>2];break o}if(K[a+401|0]!=3|(d&6291456?d&4096:0))break o;h=L[a+392>>1];if(h){i=J[a+388>>2];f=J[a+468>>2];e=0;while(1){g=i+P(e,3)| -0;H[g|0]=K[f+K[g|0]|0];H[g+1|0]=K[f+K[g+1|0]|0];H[g+2|0]=K[f+K[g+2|0]|0];e=e+1|0;if((h|0)!=(e|0))continue;break}}d=d&-8193}J[a+208>>2]=d}W:{if((d&4104)!=8|K[a+401|0]!=3)break W;J[a+208>>2]=d&-9;f=L[a+392>>1];d=K[a+492|0];X:{if(!f|(d-1&255)>>>0>6)break X;e=8-d|0;h=J[a+388>>2];d=0;g=0;if(f>>>0>=4){k=f&65532;i=0;while(1){j=h+P(g,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|1,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|2,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|3,3)|0;H[j|0]=K[j|0]>>>e;g=g+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}i=f& -3;if(!i)break X;while(1){k=h+P(g,3)|0;H[k|0]=K[k|0]>>>e;g=g+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}d=K[a+493|0];Y:{if(!f|(d-1&255)>>>0>6)break Y;e=8-d|0;h=J[a+388>>2];d=0;g=0;if(f>>>0>=4){k=f&65532;i=0;while(1){j=h+P(g,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|1,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|2,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|3,3)|0;H[j+1|0]=K[j+1|0]>>>e;g=g+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}i=f&3;if(!i)break Y;while(1){k=h+P(g,3)|0;H[k+1|0]=K[k+1|0]>>>e;g=g+1|0;d=d+1|0;if((i|0)!=(d| -0))continue;break}}d=K[a+494|0];if(!f|(d-1&255)>>>0>6)break W;h=8-d|0;i=J[a+388>>2];e=0;g=0;if(f>>>0>=4){k=f&65532;d=0;while(1){j=i+P(g,3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|1,3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|2,3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|3,3)|0;H[j+2|0]=K[j+2|0]>>>h;g=g+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}d=f&3;if(!d)break W;while(1){f=i+P(g,3)|0;H[f+2|0]=K[f+2|0]>>>h;g=g+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}xb=m+16|0;Z:{if(K[a+398|0]){d=J[a+324>>2];g=J[a+208>>2];J[a+328>>2]= -g&2?d:d+7>>>3|0;h=J[a+320>>2];d=K[a+399|0];e=K[d+262648|0];J[a+340>>2]=((h+e|0)+(K[d+262641|0]^-1)>>>0)/(e>>>0);break Z}J[a+328>>2]=J[a+324>>2];h=J[a+320>>2];J[a+340>>2]=h;g=J[a+208>>2]}e=K[a+404|0];e=g&4?K[a+402|0]<8?8:e:e;d=e&255;f=g&4096;_:{if(!f)break _;$:switch(K[a+401|0]){case 3:d=L[a+394>>1]?32:24;break _;case 0:d=(d>>>0<=8?8:d)<<(L[a+394>>1]!=0);break _;case 2:break $;default:break _}if(!L[a+394>>1])break _;d=((e&255)<<2>>>0)/3|0}e=g&32768;aa:{if(!e)break aa;ba:switch(K[a+401|0]){case 0:d= -d>>>0<9?16:32;break aa;case 2:case 3:break ba;default:break aa}d=d>>>0>32?64:32}ca:{if(!(g&16384))break ca;da:{if(!((f|0)!=0&L[a+394>>1]!=0|e)){e=K[a+401|0];if((e|0)!=4)break da}d=d>>>0<17?32:64;break ca}if(d>>>0<=8){d=(e|0)==6?32:24;break ca}d=(e|0)==6?64:48}if(g&1048576){e=P(K[a+197|0],K[a+196|0]);d=d>>>0>>0?e:d}H[a+409|0]=0;H[a+408|0]=d;e=h+7&-8;d=((d+7>>>3|0)+(d>>>0>7?P(e,d>>>3|0):P(d,e)>>>3|0)|0)+49|0;if(d>>>0>M[a+736>>2]){cc(a,J[a+680>>2]);cc(a,J[a+748>>2]);ea:{if(K[a+398|0]){e=Hl(a,d);break ea}e= -Zd(a,d)}J[a+680>>2]=e;e=Zd(a,d);J[a+748>>2]=e;J[a+736>>2]=d;J[a+352>>2]=e+31;J[a+356>>2]=J[a+680>>2]+31}d=J[a+336>>2];if((d|0)==-1){gc(a,262655);B()}Nb(J[a+352>>2],0,d+1|0);J[a+204>>2]=J[a+204>>2]|64}g=J[a+340>>2];J[s+4>>2]=g;H[s+12|0]=K[a+401|0];H[s+13|0]=K[a+402|0];H[s+14|0]=K[a+405|0];e=K[a+404|0];H[s+15|0]=e;h=e>>>0>=8?P(g,e>>>3|0):P(e,g)+7>>>3|0;J[s+8>>2]=h;fa:{if(!K[a+398|0]|!(K[a+208|0]&2))break fa;d=J[a+344>>2];ga:switch(K[a+399|0]){case 0:if(!(d&7))break fa;if(c)Ig(a,c,1);$h(a);break d;case 1:if(!(d& -7)&M[a+320>>2]>4)break fa;if(c)Ig(a,c,1);$h(a);break d;case 2:if((d&7)==4)break fa;if(!(!c|!(d&4)))Ig(a,c,1);$h(a);break d;case 3:if(!(d&3)&M[a+320>>2]>2)break fa;if(c)Ig(a,c,1);$h(a);break d;case 4:if((d&3)==2)break fa;if(!(!c|!(d&2)))Ig(a,c,1);$h(a);break d;case 5:if(!(d&1)&M[a+320>>2]>1)break fa;if(c)Ig(a,c,1);$h(a);break d;default:break ga}if(d&1)break fa;$h(a);break d}if(!(K[a+200|0]&4))break c;J[a+224>>2]=J[a+356>>2];f=a+212|0;J[a+228>>2]=(e>>>0>=8?P(g,e>>>3|0):P(e,g)+7>>>3|0)+1;while(1){if(!J[a+ -216>>2]){g=J[a+380>>2];ha:{while(1){if(g)break ha;mc(a,0);g=Tn(a);J[a+380>>2]=g;if(J[a+348>>2]==1229209940)continue;break}gc(a,253350);B()}d=J[a+272>>2];J[a+216>>2]=d;e=J[a+268>>2];J[a+212>>2]=e;if(d>>>0>g>>>0){J[a+216>>2]=g;d=g}if(a){Gd(a,e,d);Fc(a,e,d)}J[a+380>>2]=J[a+380>>2]-J[a+216>>2]}d=ni(f,1);ia:{if(d){if((d|0)==1){if(J[a+228>>2]|J[a+216>>2]|J[a+380>>2])Lr(a,253683);J[a+200>>2]=J[a+200>>2]|8;J[a+204>>2]=J[a+204>>2]|32;break ia}b=a;a=J[a+236>>2];gc(b,a?a:253779);B()}if(J[a+228>>2])continue}break}g= -J[a+356>>2];d=K[g|0];if(d){if(d>>>0>4)break b;e=J[a+352>>2]+1|0;d=d-1|0;if(d>>>0<=3){if(!J[a+752>>2]){J[a+752>>2]=1567;J[a+760>>2]=1568;J[a+756>>2]=1569;J[a+764>>2]=(K[a+404|0]+7&504)==8?1570:1571}Ab[J[((d<<2)+a|0)+752>>2]](s+4|0,g+1|0,e)}h=J[s+8>>2];g=J[a+356>>2]}Mb(J[a+352>>2],g,h+1|0);if(!(!(K[a+660|0]&4)|K[a+664|0]!=64)){d=J[a+356>>2]+1|0;h=K[s+12|0];ja:{if(!(h&2))break ja;g=J[s+4>>2];ka:switch(K[s+13|0]-8|0){case 0:e=3;la:switch(h-2|0){case 4:e=4;break;case 0:break la;default:break ja}if(!g)break ja; -if((g|0)!=1){i=g&-2;h=0;while(1){f=K[d+1|0];H[d|0]=f+K[d|0];H[d+2|0]=f+K[d+2|0];d=d+e|0;f=K[d+1|0];H[d+2|0]=f+K[d+2|0];H[d|0]=f+K[d|0];d=d+e|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(g&1))break ja;e=K[d+1|0];H[d|0]=e+K[d|0];H[d+2|0]=e+K[d+2|0];break ja;case 8:break ka;default:break ja}f=6;ma:switch(h-2|0){case 4:f=8;break;case 0:break ma;default:break ja}if(!g)break ja;e=0;while(1){h=K[d+3|0]|K[d+2|0]<<8;i=h+(K[d+5|0]|K[d+4|0]<<8)|0;H[d+5|0]=i;h=h+(K[d+1|0]|K[d|0]<<8)|0;H[d+1|0]=h;H[d+4|0]=i>>> -8;H[d|0]=h>>>8;d=d+f|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}}d=J[a+208>>2];if(d)na:{g=s+4|0;oa:{pa:{qa:{e=J[a+356>>2];if(e){if((J[a+204>>2]&16448)==16384)break qa;ra:{if(!(d&4096))break ra;f=K[g+8|0];if((f|0)==3){k=e+1|0;j=J[a+388>>2];t=J[a+504>>2];n=L[a+394>>1];sa:{if((f|0)!=3)break sa;e=J[g>>2];d=K[g+9|0];ta:{if(d>>>0<=7){ua:{va:switch(d-1|0){case 0:if(!e)break ua;h=e+k|0;d=0-e&7;i=e-1|0;f=k+(i>>>3|0)|0;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&1;h=h-2|0;o=f;f=(d|0)==7;l=o-f|0;d=f?0:d+1| -0;H[h|0]=K[l|0]>>>d&1;f=(d|0)==7;d=f?0:d+1|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&1;break ua;case 1:if(!e)break ua;h=e+k|0;i=e-1|0;f=k+(i>>>2|0)|0;d=((e<<1)+6^-1)&6;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&3;h=h-2|0;o=f;f=(d|0)==6;l=o-f|0;d=f?0:d+2|0;H[h|0]=K[l|0]>>>d&3;f=(d|0)==6;d=f?0:d+2|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&3;break ua;case 3:break va;default:break ua}if(!e)break ua;h=e+k| -0;d=e<<2&4;i=e-1|0;f=k+(i>>>1|0)|0;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&15;h=h-2|0;o=f;f=(d|0)==4;l=o-f|0;d=f?0:d+4|0;H[h|0]=K[l|0]>>>d&15;f=(d|0)==4;d=f?0:d+4|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&15}H[g+11|0]=8;H[g+9|0]=8;J[g+4>>2]=e;break ta}if((d|0)!=8)break sa}wa:{if(n){m=e<<2;q=4;r=6;l=32;if(!e)break wa;d=e+k|0;h=k+m|0;i=0;while(1){o=h-1|0;d=d-1|0;f=K[d|0];if((f|0)<(n|0))f=K[f+t|0];else f=255;H[o|0]=f;H[h-2|0]=K[(j+P(K[d|0],3)|0)+2| -0];H[h-3|0]=K[(j+P(K[d|0],3)|0)+1|0];h=h-4|0;H[h|0]=K[j+P(K[d|0],3)|0];i=i+1|0;if((e|0)!=(i|0))continue;break}break wa}q=3;m=P(e,3);r=2;l=24;if(!e)break wa;d=e+k|0;h=k+m|0;f=0;while(1){d=d-1|0;H[h-1|0]=K[(j+P(K[d|0],3)|0)+2|0];H[h-2|0]=K[(j+P(K[d|0],3)|0)+1|0];h=h-3|0;H[h|0]=K[j+P(K[d|0],3)|0];f=f+1|0;if((e|0)!=(f|0))continue;break}}H[g+11|0]=l;H[g+9|0]=8;H[g+10|0]=q;H[g+8|0]=r;J[g+4>>2]=m}break ra}e=e+1|0;if(!(!(d&33554432)|!L[a+394>>1])){sD(g,e,a+508|0);break ra}sD(g,e,0)}d=J[a+208>>2];xa:{if((d& -262272)!=262144)break xa;ya:switch(K[g+8|0]-4|0){case 0:case 2:break ya;default:break xa}Dr(g,J[a+356>>2]+1|0,0);d=J[a+208>>2]}za:{if(!(d&6291456))break za;d=J[a+356>>2]+1|0;f=0;e=0;k=0;l=0;h=K[g+8|0];if((h&3)==2){q=h&4;j=L[a+656>>1];m=L[a+658>>1];n=32768-(j+m|0)|0;i=J[g>>2];Aa:{if(K[g+9|0]==8){if(!(!J[a+476>>2]|!J[a+480>>2])){if(!i)break Aa;f=d;while(1){h=K[d|0];l=K[d+1|0];r=K[d+2|0];Ba:{Ca:{if(!((h|0)==(l|0)&(r|0)==(h|0))){k=1;o=h;h=J[a+480>>2];h=J[a+476>>2]+(((P(j,K[o+h|0])+P(m,K[h+l|0])|0)+P(n, -K[h+r|0])|0)+16384>>>15|0)|0;break Ca}l=J[a+468>>2];if(!l)break Ba;h=h+l|0}h=K[h|0]}H[f|0]=h;Da:{if(!q){f=f+1|0;d=d+3|0;break Da}H[f+1|0]=K[d+3|0];f=f+2|0;d=d+4|0}e=e+1|0;if((i|0)!=(e|0))continue;break}break Aa}if(!i)break Aa;if(!q){h=d;while(1){e=K[d|0];l=K[d+1|0];q=K[d+2|0];if(!((e|0)==(l|0)&(q|0)==(e|0))){k=1;e=(P(l,m)+P(e,j)|0)+P(n,q)>>>15|0}d=d+3|0;H[h|0]=e;h=h+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}break Aa}e=d;while(1){h=K[d|0];l=K[d+1|0];q=K[d+2|0];if(!((h|0)==(l|0)&(q|0)==(h|0))){k=1; -h=(P(l,m)+P(h,j)|0)+P(n,q)>>>15|0}H[e|0]=h;H[e+1|0]=K[d+3|0];e=e+2|0;d=d+4|0;f=f+1|0;if((i|0)!=(f|0))continue;break}break Aa}if(!(!J[a+488>>2]|!J[a+484>>2])){if(!i)break Aa;h=d;while(1){f=K[d+1|0];w=K[d|0];r=f|w<<8;o=K[d+3|0];t=K[d+2|0];e=K[d+4|0]|K[d+5|0]<<8;e=e<<8|e>>>8;Ea:{Fa:{if(!((r|0)!=(o|t<<8)|(r|0)!=(e&65535))){e=J[a+472>>2];if(!e)break Ea;f=L[J[e+(o>>>J[a+456>>2]<<2)>>2]+(t<<1)>>1];break Fa}k=1;w=J[a+488>>2];f=J[a+456>>2];e=((P(j,L[J[w+((r&255)>>>f<<2)>>2]+(r>>>7&510)>>1])+P(m,L[J[w+(o>>> -f<<2)>>2]+(t<<1)>>1])|0)+P(n,L[J[w+((e&255)>>>f<<2)>>2]+(e>>>7&510)>>1])|0)+16384|0;f=L[J[J[a+484>>2]+((e>>>15&255)>>>f<<2)>>2]+(e>>>22&510)>>1]}w=f>>>8|0}H[h+1|0]=f;H[h|0]=w;Ga:{if(!q){h=h+2|0;d=d+6|0;break Ga}H[h+2|0]=K[d+6|0];H[h+3|0]=K[d+7|0];h=h+4|0;d=d+8|0}l=l+1|0;if((i|0)!=(l|0))continue;break}break Aa}if(!i)break Aa;e=d;while(1){h=K[e+1|0]|K[e|0]<<8;l=K[e+3|0]|K[e+2|0]<<8;r=K[e+5|0]|K[e+4|0]<<8;t=((P(h,j)+P(l,m)|0)+P(r,n)|0)+16384|0;H[d+1|0]=t>>>15;H[d|0]=t>>>23;k=(h|0)!=(r|0)?1:k;h=(h|0)== -(l|0);Ha:{if(!q){e=e+6|0;d=d+2|0;break Ha}H[d+2|0]=K[e+6|0];H[d+3|0]=K[e+7|0];e=e+8|0;d=d+4|0}k=h?k:1;f=f+1|0;if((i|0)!=(f|0))continue;break}}d=K[g+10|0]-2|0;H[g+10|0]=d;H[g+8|0]=K[g+8|0]&253;d=P(d,K[g+9|0]);H[g+11|0]=d;d=d&255;Ia:{if(d>>>0>=8){d=P(i,d>>>3|0);break Ia}d=P(d,i)+7>>>3|0}J[g+4>>2]=d}d=J[a+208>>2];if(!k)break za;H[a+653|0]=1;if((d&6291456)==4194304){Wb(a,254177);d=J[a+208>>2]}if((d&6291456)==2097152)break pa}if(!(!(d&16384)|K[a+201|0]&8)){rD(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&128){d= -J[a+356>>2]+1|0;m=J[a+204>>2]&8192;k=J[g>>2];e=J[a+456>>2];l=J[a+488>>2];n=J[a+484>>2];i=J[a+472>>2];h=J[a+480>>2];j=J[a+476>>2];f=J[a+468>>2];Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:switch(K[g+8|0]){case 0:Wa:switch(K[g+9|0]-1|0){case 0:if(!k)break Ja;f=0;h=7;while(1){e=K[d|0];if(L[a+516>>1]==(e>>>h&1)){e=e&32639>>>7-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>> -h&3;Xa:{if((m|0)==L[a+516>>1]){j=e&16191>>>6-h;H[d|0]=j;e=L[a+432>>1];break Xa}j=e&16191>>>6-h;e=K[f+P(m,85)|0]>>>6|0}H[d|0]=e<>>h&15;Ya:{if((m|0)==L[a+516>>1]){j=e&3855>>>4-h;H[d|0]=j;e=L[a+432>>1];break Ya}j=e&3855>>>4-h;e=K[f+P(m,17)|0]>>>4|0}H[d|0]=e<>1])e=K[a+432|0];else e=K[e+f|0];H[d|0]=e;e=K[d+1|0];Za:{if((e|0)!=L[a+516>>1]){e=K[e+f|0];break Za}e=K[a+432|0]}H[d+1|0]=e;d=d+2|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(k&1))break Ja;e=K[d|0];if((e|0)==L[a+516>>1])break Ua;H[d|0]=K[e+f|0];break Ja;case 15:break Wa;default:break Ja}if(!i)break Na;if(!k)break Ja;f=0;while(1){j=K[d+1|0];h=K[d|0];_a:{if(L[a+516>>1]==(j|h<<8)){H[d|0]=K[a+433|0];j=K[a+432|0];break _a}j=L[J[i+(j>>>e<<2)>> -2]+(h<<1)>>1];H[d|0]=j>>>8}H[d+1|0]=j;d=d+2|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja;case 2:if(K[g+9|0]==8){if(!f)break Oa;if(!k)break Ja;i=0;while(1){h=K[d|0];e=K[d+1|0];$a:{if(!((h|0)!=L[a+510>>1]|(e|0)!=L[a+512>>1]|L[a+514>>1]!=K[d+2|0])){H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0];break $a}H[d|0]=K[f+h|0];H[d+1|0]=K[e+f|0];H[d+2|0]=K[f+K[d+2|0]|0]}d=d+3|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!i)break Pa;if(!k)break Ja;h=0;while(1){f=K[d+4|0];j=K[d+5|0];q=K[d+ -1|0];n=K[d|0];l=K[d+3|0];m=K[d+2|0];ab:{if(!(L[a+510>>1]!=(q|n<<8)|L[a+512>>1]!=(l|m<<8)|L[a+514>>1]!=(j|f<<8))){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];f=K[a+430|0];break ab}n=L[J[i+(q>>>e<<2)>>2]+(n<<1)>>1];n=n<<8|n>>>8;H[d|0]=n;H[d+1|0]=n>>>8;m=L[J[i+(l>>>e<<2)>>2]+(m<<1)>>1];m=m<<8|m>>>8;H[d+2|0]=m;H[d+3|0]=m>>>8;f=L[J[i+(j>>>e<<2)>>2]+(f<<1)>>1];H[d+4|0]=f>>>8}H[d+5|0]=f;d=d+6|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja;case 4:if(K[g+ -9|0]==8){if(!(f?!h|!j:1))break Qa;if(!k)break Ja;f=0;while(1){e=K[d+1|0];if((e|0)!=255){if(e){e=(P(L[a+432>>1],e^255)+P(e,K[d|0])|0)+128&65535;e=(e>>>8|0)+e>>>8|0}else e=K[a+432|0];H[d|0]=e}d=d+2|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja}if(!(l?!i|!n:1))break Ra;if(!k)break Ja;f=0;while(1){e=K[d+3|0]|K[d+2|0]<<8;bb:{if((e|0)==65535)break bb;if(!e){H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break bb}e=(P(L[a+432>>1],e^65535)+P(e,K[d+1|0]|K[d|0]<<8)|0)+32768|0;e=(e>>>16|0)+e|0;H[d+1|0]=e>>>16;H[d| -0]=e>>>24}d=d+4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja;case 6:break Va;default:break Ja}if(K[g+9|0]==8){if(!(f?!h|!j:1))break Sa;if(!k)break Ja;f=0;while(1){e=K[d+3|0];cb:{if((e|0)==255)break cb;if(!e){H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0];break cb}h=e^255;i=(P(e,K[d|0])+P(h,L[a+426>>1])|0)+128|0;H[d|0]=(i>>>8&255)+i>>>8;i=(P(e,K[d+1|0])+P(h,L[a+428>>1])|0)+128|0;H[d+1|0]=(i>>>8&255)+i>>>8;e=(P(e,K[d+2|0])+P(h,L[a+430>>1])|0)+128|0;H[d+2|0]=(e>>>8&255)+e>>>8}d=d+4|0; -f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja}if(!(l?!i|!n:1))break Ta;if(!k)break Ja;f=0;while(1){e=K[d+7|0]|K[d+6|0]<<8;db:{if((e|0)==65535)break db;if(!e){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0];break db}h=e^65535;i=(P(e,K[d+1|0]|K[d|0]<<8)+P(h,L[a+426>>1])|0)+32768|0;i=(i>>>16|0)+i|0;H[d+1|0]=i>>>16;H[d|0]=i>>>24;i=(P(e,K[d+3|0]|K[d+2|0]<<8)+P(h,L[a+428>>1])|0)+32768|0;i=(i>>>16|0)+i|0;H[d+2|0]=i>>>24;H[d+3|0]=i>>> -16;e=(P(e,K[d+5|0]|K[d+4|0]<<8)+P(h,L[a+430>>1])|0)+32768|0;e=(e>>>16|0)+e|0;H[d+4|0]=e>>>24;H[d+5|0]=e>>>16}d=d+8|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja}H[d|0]=K[a+432|0];break Ja}if(!k)break Ja;h=0;while(1){eb:{fb:{q=K[d+7|0]|K[d+6|0]<<8;if(q){if((q|0)!=65535)break fb;f=L[J[i+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+(K[d+3|0]>>>e<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>e<<2)>>2]+(K[d+4|0]<<1)>>1];f= -f<<8|f>>>8;H[d+4|0]=f;H[d+5|0]=f>>>8;break eb}H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0];break eb}r=q^65535;f=(P(q,L[J[l+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1])+P(r,L[a+436>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j=L[J[n+((j&255)>>>e<<2)>>2]+(f<<1)>>1];f=j>>>8|0}H[d+1|0]=j;H[d|0]=f;f=(P(q,L[J[l+(K[d+3|0]>>>e<<2)>>2]+(K[d+2|0]<<1)>>1])+P(r,L[a+438>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j= -L[J[n+((j&255)>>>e<<2)>>2]+(f<<1)>>1];f=j>>>8|0}H[d+3|0]=j;H[d+2|0]=f;f=(P(q,L[J[l+(K[d+5|0]>>>e<<2)>>2]+(K[d+4|0]<<1)>>1])+P(r,L[a+440>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j=L[J[n+((j&255)>>>e<<2)>>2]+(f<<1)>>1];f=j>>>8|0}H[d+5|0]=j;H[d+4|0]=f}d=d+8|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;i=0;while(1){gb:{hb:{l=K[d+3|0];if(l){if((l|0)!=255)break hb;H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];break gb}H[d|0]=K[a+426|0];H[d+ -1|0]=K[a+428|0];H[d+2|0]=K[a+430|0];break gb}n=l^255;e=(P(l,K[h+K[d|0]|0])+P(n,L[a+436>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!m)e=K[j+(e&255)|0];H[d|0]=e;e=(P(l,K[h+K[d+1|0]|0])+P(n,L[a+438>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!m)e=K[j+(e&255)|0];H[d+1|0]=e;e=(P(l,K[h+K[d+2|0]|0])+P(n,L[a+440>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!m)e=K[j+(e&255)|0];H[d+2|0]=e}d=d+4|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!k)break Ja;h=0;while(1){ib:{jb:{f=K[d+3|0]|K[d+2|0]<<8;if(f){if((f|0)!=65535)break jb; -f=L[J[i+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;break ib}H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break ib}f=(P(f,L[J[l+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1])+P(L[a+442>>1],f^65535)|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>16|0;if(m)j=j>>>24|0;else{f=L[J[n+((f&255)>>>e<<2)>>2]+(j>>>23&510)>>1];j=f>>>8|0}H[d+1|0]=f;H[d|0]=j}d=d+4|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;i=0;while(1){kb:{lb:{e=K[d+1|0];if(e){if((e|0)!=255)break lb;e=K[f+K[d|0]|0];break kb}e= -K[a+432|0];break kb}e=(P(L[a+442>>1],e^255)+P(e,K[h+K[d|0]|0])|0)+128&65535;e=(e>>>8|0)+e>>>8|0;if(m)break kb;e=K[j+(e&255)|0]}H[d|0]=e;d=d+2|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!k)break Ja;h=0;while(1){if(!(L[a+510>>1]!=(K[d+1|0]|K[d|0]<<8)|L[a+512>>1]!=(K[d+3|0]|K[d+2|0]<<8)|L[a+514>>1]!=(K[d+5|0]|K[d+4|0]<<8))){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0]}d=d+6|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja; -h=0;while(1){if(!(L[a+510>>1]!=K[d|0]|L[a+512>>1]!=K[d+1|0]|L[a+514>>1]!=K[d+2|0])){H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0]}d=d+3|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;if((k|0)!=1){e=k&-2;h=0;while(1){if(L[a+516>>1]==(K[d+1|0]|K[d|0]<<8)){H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0]}if(L[a+516>>1]==(K[d+3|0]|K[d+2|0]<<8)){H[d+2|0]=K[a+433|0];H[d+3|0]=K[a+432|0]}d=d+4|0;h=h+2|0;if((e|0)!=(h|0))continue;break}}if(!(k&1)|L[a+516>>1]!=(K[d+1|0]|K[d|0]<<8))break Ja; -H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break Ja}if(!k)break Ja;if((k|0)!=1){e=k&-2;h=0;while(1){if(L[a+516>>1]==K[d|0])H[d|0]=K[a+432|0];if(L[a+516>>1]==K[d+1|0])H[d+1|0]=K[a+432|0];d=d+2|0;h=h+2|0;if((e|0)!=(h|0))continue;break}}if(!(k&1)|L[a+516>>1]!=K[d|0])break Ja;H[d|0]=K[a+432|0];break Ja}if(!k)break Ja;f=0;h=4;while(1){e=K[d|0];if(L[a+516>>1]==(e>>>h&15)){e=e&3855>>>4-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>1]==(e>>>h&3)){e=e&16191>>>6-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>2]}mb:{if((d&6299648)!=8192)break mb;nb:{if(!(d&128)){e=K[a+401|0];break nb}if(L[a+394>>1])break mb;e=K[a+401|0];if(e&4)break mb}if((e|0)==3)break mb;d=J[a+356>>2]+1|0;l=0;h=J[g>>2];k=J[a+456>>2];i=J[a+472>>2];e=K[g+9|0];f=J[a+468>>2];ob:{if(!(f?e>>>0<=8:0)&(!i|(e|0)!=16))break ob;pb:{qb:{rb:switch(K[g+8|0]){case 2:if((e|0)!=8){if(!h)break ob; -e=0;while(1){f=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>k<<2)>>2]+(K[d+4|0]<<1)>>1];f=f<<8|f>>>8;H[d+4|0]=f;H[d+5|0]=f>>>8;d=d+6|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob}if(!h)break ob;if((h|0)!=1){i=h&-2;e=0;while(1){H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+3|0]=K[f+K[d+3|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+5| -0]=K[f+K[d+5|0]|0];d=d+6|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}break qb;case 6:if((e|0)!=8){if(!h)break ob;e=0;while(1){f=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>k<<2)>>2]+(K[d+4|0]<<1)>>1];f=f<<8|f>>>8;H[d+4|0]=f;H[d+5|0]=f>>>8;d=d+8|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob}if(!h)break ob;if((h|0)!=1){i=h&-2;e=0;while(1){H[d|0]=K[f+K[d|0]| -0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+5|0]=K[f+K[d+5|0]|0];H[d+6|0]=K[f+K[d+6|0]|0];d=d+8|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}break qb;case 4:if((e|0)!=8){if(!h)break ob;if((h|0)!=1){f=h&-2;e=0;while(1){j=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];j=j<<8|j>>>8;H[d|0]=j;H[d+1|0]=j>>>8;j=L[J[i+(K[d+5|0]>>>k<<2)>>2]+(K[d+4|0]<<1)>>1];j=j<<8|j>>>8;H[d+4|0]=j;H[d+5|0]=j>>>8;d=d+8|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}break pb}if(!h)break ob;if(h-1>>> -0>=3){i=h&-4;e=0;while(1){H[d|0]=K[f+K[d|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+6|0]=K[f+K[d+6|0]|0];d=d+8|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}h=h&3;if(!h)break ob;e=0;while(1){H[d|0]=K[f+K[d|0]|0];d=d+2|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob;case 0:break rb;default:break ob}sb:{tb:{ub:{if(!(!h|(e|0)!=2)){e=d;while(1){j=K[e|0];m=j&48;o=K[f+(m<<2|m>>>2|m>>>4|m)|0]>>>2&48;m=j&192;o=o|K[f+(j>>>6|m>>>4|m>>>2|m)|0]&192;m=j&12;H[e|0]=o|K[f+(P(m,20)|m>>>2|m)|0]>>>4& -12|K[f+P(j&3,85)|0]>>>6;e=e+1|0;l=l+4|0;if(h>>>0>l>>>0)continue;break}e=K[g+9|0]}switch(e-4|0){case 0:break sb;case 4:break tb;case 12:break ub;default:break ob}}if(!h)break ob;if((h|0)!=1){f=h&-2;e=0;while(1){j=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];j=j<<8|j>>>8;H[d|0]=j;H[d+1|0]=j>>>8;j=L[J[i+(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];j=j<<8|j>>>8;H[d+2|0]=j;H[d+3|0]=j>>>8;d=d+4|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}break pb}if(!h)break ob;if(h-1>>>0>=3){i=h&-4;e=0;while(1){H[d|0]=K[f+K[d| -0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+3|0]=K[f+K[d+3|0]|0];d=d+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}h=h&3;if(!h)break ob;e=0;while(1){H[d|0]=K[f+K[d|0]|0];d=d+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob}if(!h)break ob;e=0;while(1){i=K[d|0];H[d|0]=K[f+P(i&15,17)|0]>>>4|K[f+(i&240|i>>>4)|0]&240;d=d+1|0;e=e+2|0;if(h>>>0>e>>>0)continue;break}break ob}if(!(h&1))break ob;H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];break ob}if(!(h&1))break ob; -e=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];e=e<<8|e>>>8;H[d|0]=e;H[d+1|0]=e>>>8}d=J[a+208>>2]}vb:{if((d&262272)!=262272)break vb;wb:switch(K[g+8|0]-4|0){case 0:case 2:break wb;default:break vb}Dr(g,J[a+356>>2]+1|0,0);d=J[a+208>>2]}if(d&64){d=J[a+356>>2]+1|0;i=J[a+588>>2];e=J[a+592>>2];xb:{if(K[g+9|0]!=8)break xb;h=J[g>>2];yb:{zb:{Ab:{Bb:{Cb:{f=K[g+8|0];if(!(!i|(f|0)!=2)){if(!h)break Cb;f=0;e=d;while(1){H[e|0]=K[i+(K[d+1|0]<<2&992|K[d|0]<<7&31744|K[d+2|0]>>>3)|0];e=e+1|0;d=d+3|0;f=f+1|0;if((h|0)!= -(f|0))continue;break}H[g+10|0]=1;H[g+8|0]=3;d=K[g+9|0];H[g+11|0]=d;if(d>>>0>=8)break zb;break yb}if(!(!i|(f|0)!=6)){if(!h)break Bb;f=0;e=d;while(1){H[e|0]=K[i+(K[d+1|0]<<2&992|K[d|0]<<7&31744|K[d+2|0]>>>3)|0];e=e+1|0;d=d+4|0;f=f+1|0;if((h|0)!=(f|0))continue;break}H[g+10|0]=1;H[g+8|0]=3;d=K[g+9|0];H[g+11|0]=d;if(d>>>0>=8)break Ab;break yb}if(!h|(!e|(f|0)!=3))break xb;if(h>>>0>=4){i=h&-4;f=0;while(1){H[d|0]=K[e+K[d|0]|0];H[d+1|0]=K[e+K[d+1|0]|0];H[d+2|0]=K[e+K[d+2|0]|0];H[d+3|0]=K[e+K[d+3|0]|0];d=d+ -4|0;f=f+4|0;if((i|0)!=(f|0))continue;break}}h=h&3;if(!h)break xb;f=0;while(1){H[d|0]=K[e+K[d|0]|0];d=d+1|0;f=f+1|0;if((h|0)!=(f|0))continue;break}break xb}I[g+10>>1]=2049;H[g+8|0]=3;d=8;break zb}I[g+10>>1]=2049;H[g+8|0]=3;d=8}J[g+4>>2]=P(h,d>>>3|0);break xb}J[g+4>>2]=P(h,d>>>3|0);break xb}J[g+4>>2]=P(d,h)+7>>>3}if(!J[g+4>>2])break oa;d=J[a+208>>2]}if(!(!(d&16384)|!(K[a+201|0]&8))){rD(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&32){UD(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&8){d=J[a+356>>2]+1|0;e=xb-16|0; -i=K[g+8|0];Db:{if((i|0)==3)break Db;h=K[g+9|0];Eb:{if(i&2){k=K[a+497|0];J[e+4>>2]=h-K[a+498|0];J[e+8>>2]=h-K[a+499|0];f=3;break Eb}k=K[a+500|0];f=1}J[e>>2]=h-k;if(i&4){J[(e|f<<2)>>2]=h-K[a+501|0];f=f+1|0}k=J[e>>2];i=(k|0)<(h|0)&(k|0)>0;J[e>>2]=i?k:0;Fb:{if((f|0)==1)break Fb;k=J[e+4>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+4>>2]=j?k:0;i=j?1:i;if((f|0)==2)break Fb;k=J[e+8>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+8>>2]=j?k:0;i=j?1:i;if((f|0)==3)break Fb;k=J[e+12>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+12>>2]=j?k:0;i=j?1:i}if(!i)break Db; -Gb:switch(h<<31|h-2>>>1){case 0:e=J[g+4>>2];if((e|0)<=0)break Db;e=d+e|0;while(1){H[d|0]=K[d|0]>>>1&85;d=d+1|0;if(e>>>0>d>>>0)continue;break}break Db;case 1:f=J[g+4>>2];if((f|0)<=0)break Db;e=J[e>>2];h=P(15>>>e|0,17);f=d+f|0;while(1){H[d|0]=h&K[d|0]>>>e;d=d+1|0;if(f>>>0>d>>>0)continue;break}break Db;case 3:h=J[g+4>>2];if((h|0)<=0)break Db;i=d+h|0;h=0;while(1){H[d|0]=K[d|0]>>>J[e+(h<<2)>>2];h=h+1|0;h=(f|0)>(h|0)?h:0;d=d+1|0;if(i>>>0>d>>>0)continue;break}break Db;case 7:break Gb;default:break Db}h= -J[g+4>>2];if((h|0)<=0)break Db;i=d+h|0;h=0;while(1){k=(K[d+1|0]|K[d|0]<<8)>>>J[e+(h<<2)>>2]|0;k=k<<8|k>>>8;H[d|0]=k;H[d+1|0]=k>>>8;h=h+1|0;h=(f|0)>(h|0)?h:0;d=d+2|0;if(i>>>0>d>>>0)continue;break}}d=J[a+208>>2]}if(d&4){f=J[a+356>>2]+1|0;e=K[g+9|0];if(e>>>0<=7){d=J[g>>2];Hb:{Ib:switch(e-1|0){case 0:if(!d)break Hb;h=d+f|0;e=0-d&7;i=d-1|0;f=f+(i>>>3|0)|0;if(i){k=d&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>e&1;h=h-2|0;j=f;f=(e|0)==7;j=j-f|0;e=f?0:e+1|0;H[h|0]=K[j|0]>>>e&1;f=(e|0)==7;e=f?0:e+1|0;f=j-f|0;i=i+2| -0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&1;break Hb;case 1:if(!d)break Hb;h=d+f|0;i=d-1|0;f=f+(i>>>2|0)|0;e=((d<<1)+6^-1)&6;if(i){k=d&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>e&3;h=h-2|0;j=f;f=(e|0)==6;j=j-f|0;e=f?0:e+2|0;H[h|0]=K[j|0]>>>e&3;f=(e|0)==6;e=f?0:e+2|0;f=j-f|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&3;break Hb;case 3:break Ib;default:break Hb}if(!d)break Hb;h=d+f|0;e=d<<2&4;i=d-1|0;f=f+(i>>>1|0)|0;if(i){k=d&-2;i=0;while(1){H[h- -1|0]=K[f|0]>>>e&15;h=h-2|0;j=f;f=(e|0)!=0;j=j-f|0;m=!e;H[h|0]=K[j|0]>>>(m<<2)&15;e=f<<2;f=j-m|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&15}H[g+9|0]=8;e=K[g+10|0];H[g+11|0]=e<<3;J[g+4>>2]=P(d,e)}d=J[a+208>>2]}if(d&1){RD(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&65536){SD(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&32768){d=J[a+356>>2]+1|0;f=J[a+204>>2];h=0;k=L[a+416>>1];e=k>>>8|0;i=J[g>>2];Jb:{Kb:{Lb:switch(K[g+8|0]){case 0:Mb:switch(K[g+9|0]-8|0){case 0:if(f&128){f=d+ -i|0;d=i+f|0;m=2;Nb:{if(i>>>0<2)break Nb;e=i-1|0;h=e&3;if(i-2>>>0>=3){j=e&-4;e=0;while(1){H[d-1|0]=k;l=K[f-1|0];H[d-3|0]=k;H[d-2|0]=l;l=K[f-2|0];H[d-5|0]=k;H[d-4|0]=l;l=K[f-3|0];H[d-7|0]=k;H[d-6|0]=l;d=d-8|0;f=f-4|0;H[d|0]=K[f|0];e=e+4|0;if((j|0)!=(e|0))continue;break}}if(!h)break Nb;e=0;while(1){H[d-1|0]=k;d=d-2|0;f=f-1|0;H[d|0]=K[f|0];e=e+1|0;if((h|0)!=(e|0))continue;break}}H[d-1|0]=k;j=1;l=16;break Kb}j=1;l=16;m=2;if(!i)break Kb;n=i&3;f=d+i|0;d=i+f|0;Ob:{if(i>>>0<4){e=d;break Ob}q=i&-4;while(1){e= -K[f-1|0];H[d-2|0]=k;H[d-1|0]=e;e=K[f-2|0];H[d-4|0]=k;H[d-3|0]=e;e=K[f-3|0];H[d-6|0]=k;H[d-5|0]=e;f=f-4|0;r=K[f|0];e=d-8|0;H[e|0]=k;H[d-7|0]=r;d=e;h=h+4|0;if((q|0)!=(h|0))continue;break}}if(!n)break Kb;d=0;while(1){f=f-1|0;j=K[f|0];h=e-2|0;H[h|0]=k;H[e-1|0]=j;j=1;e=h;d=d+1|0;if((n|0)!=(d|0))continue;break}break Kb;case 8:break Mb;default:break Jb}if(f&128){f=d;d=i<<1;f=f+d|0;d=f+d|0;m=2;Pb:{if(i>>>0<2)break Pb;h=i-1|0;j=h&1;if((i|0)!=2){l=h&-2;h=0;while(1){H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];n= -K[f-2|0];H[d-5|0]=k;H[d-4|0]=n;H[d-6|0]=e;H[d-7|0]=K[f-3|0];d=d-8|0;f=f-4|0;H[d|0]=K[f|0];h=h+2|0;if((l|0)!=(h|0))continue;break}}if(!j)break Pb;H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];d=d-4|0;H[d|0]=K[f-2|0]}H[d-2|0]=e;H[d-1|0]=k;l=32;j=2;break Kb}l=32;if(i)Qb:{f=d;d=i<<1;f=f+d|0;d=f+d|0;if((i|0)!=1){j=i&-2;while(1){H[d-1|0]=K[f-1|0];m=K[f-2|0];H[d-3|0]=k;H[d-2|0]=m;H[d-4|0]=e;H[d-5|0]=K[f-3|0];f=f-4|0;m=K[f|0];H[d-7|0]=k;H[d-6|0]=m;d=d-8|0;H[d|0]=e;h=h+2|0;if((j|0)!=(h|0))continue;break}}if(!(i& -1))break Qb;H[d-1|0]=K[f-1|0];f=K[f-2|0];H[d-3|0]=k;H[d-2|0]=f;H[d-4|0]=e}m=2;j=2;break Kb;case 2:break Lb;default:break Jb}Rb:switch(K[g+9|0]-8|0){case 0:if(f&128){f=d+P(i,3)|0;d=i+f|0;j=2;if(i>>>0>=2){e=1;while(1){H[d-1|0]=k;H[d-2|0]=K[f-1|0];H[d-3|0]=K[f-2|0];d=d-4|0;f=f-3|0;H[d|0]=K[f|0];e=e+1|0;if((i|0)!=(e|0))continue;break}}H[d-1|0]=k;l=32;m=4;break Kb}j=2;l=32;m=4;if(!i)break Kb;f=d+P(i,3)|0;d=i+f|0;e=0;while(1){H[d-1|0]=K[f-1|0];H[d-2|0]=K[f-2|0];f=f-3|0;n=K[f|0];h=d-4|0;H[h|0]=k;H[d-3|0]= -n;d=h;e=e+1|0;if((i|0)!=(e|0))continue;break}break Kb;case 8:break Rb;default:break Jb}if(f&128){h=1;f=d+P(i,6)|0;d=f+(i<<1)|0;if(i>>>0>=2)while(1){H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];H[d-4|0]=K[f-2|0];H[d-5|0]=K[f-3|0];H[d-6|0]=K[f-4|0];H[d-7|0]=K[f-5|0];d=d-8|0;f=f-6|0;H[d|0]=K[f|0];h=h+1|0;if((i|0)!=(h|0))continue;break}H[d-2|0]=e;H[d-1|0]=k;j=3;l=64;m=4;break Kb}j=3;l=64;m=4;if(!i)break Kb;f=d+P(i,6)|0;d=f+(i<<1)|0;while(1){H[d-1|0]=K[f-1|0];H[d-2|0]=K[f-2|0];H[d-3|0]=K[f-3|0];H[d-4|0]=K[f- -4|0];H[d-5|0]=K[f-5|0];f=f-6|0;n=K[f|0];H[d-7|0]=k;H[d-6|0]=n;d=d-8|0;H[d|0]=e;h=h+1|0;if((i|0)!=(h|0))continue;break}}H[g+11|0]=l;H[g+10|0]=m;J[g+4>>2]=i<>2]}if(d&524288){d=J[a+356>>2]+1|0;f=J[g>>2];Sb:{Tb:switch(K[g+8|0]-4|0){case 2:if(K[g+9|0]==8){if(!f)break Sb;d=d+J[g+4>>2]|0;if(f>>>0>=4){h=f&-4;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-9|0;H[i|0]=K[i|0]^-1;i=d-13|0;H[i|0]=K[i|0]^-1;d=d-16|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}f=f&3;if(!f)break Sb;e= -0;while(1){h=d-1|0;H[h|0]=K[h|0]^-1;d=d-4|0;e=e+1|0;if((f|0)!=(e|0))continue;break}break Sb}if(!f)break Sb;d=d+J[g+4>>2]|0;if((f|0)!=1){h=f&-2;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-2|0;H[i|0]=K[i|0]^-1;i=d-9|0;H[i|0]=K[i|0]^-1;i=d-10|0;H[i|0]=K[i|0]^-1;d=d-16|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!(f&1))break Sb;e=d-1|0;H[e|0]=K[e|0]^-1;d=d-2|0;H[d|0]=K[d|0]^-1;break Sb;case 0:break Tb;default:break Sb}if(K[g+9|0]==8){if(!f)break Sb;d=d+J[g+4>>2]|0;if(f>>>0>=4){h=f&-4;e=0;while(1){i=d- -1|0;H[i|0]=K[i|0]^-1;i=d-3|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-7|0;H[i|0]=K[i|0]^-1;d=d-8|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}f=f&3;if(!f)break Sb;e=0;while(1){h=d-1|0;H[h|0]=K[h|0]^-1;d=d-2|0;e=e+1|0;if((f|0)!=(e|0))continue;break}break Sb}if(!f)break Sb;d=d+J[g+4>>2]|0;if((f|0)!=1){h=f&-2;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-2|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-6|0;H[i|0]=K[i|0]^-1;d=d-8|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!(f&1))break Sb;e=d-1|0;H[e| -0]=K[e|0]^-1;d=d-2|0;H[d|0]=K[d|0]^-1}d=J[a+208>>2]}if(d&131072){d=J[a+356>>2]+1|0;e=J[g>>2];Ub:{Vb:switch(K[g+8|0]-4|0){case 2:if(K[g+9|0]==8){if(!e)break Ub;d=d+J[g+4>>2]|0;if((e|0)!=1){f=e&-2;h=0;while(1){i=d-1|0;k=K[i|0];j=i;i=d-2|0;H[j|0]=K[i|0];j=d-3|0;m=K[j|0];o=j;j=d-4|0;H[o|0]=K[j|0];H[i|0]=m;H[j|0]=k;i=d-5|0;k=K[i|0];j=i;i=d-6|0;H[j|0]=K[i|0];j=i;i=d-7|0;H[j|0]=K[i|0];d=d-8|0;H[i|0]=K[d|0];H[d|0]=k;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(e&1))break Ub;e=d-1|0;f=K[e|0];i=e;e=d-2|0;H[i| -0]=K[e|0];h=d-3|0;i=K[h|0];d=d-4|0;H[h|0]=K[d|0];H[e|0]=i;H[d|0]=f;break Ub}if(!e)break Ub;d=d+J[g+4>>2]|0;h=0;while(1){f=d-2|0;k=K[f|0]|K[f+1|0]<<8;i=d-4|0;j=K[i|0]|K[i+1|0]<<8;H[f|0]=j;H[f+1|0]=j>>>8;f=d-6|0;j=K[f|0]|K[f+1|0]<<8;H[i|0]=j;H[i+1|0]=j>>>8;d=d-8|0;i=K[d|0]|K[d+1|0]<<8;H[f|0]=i;H[f+1|0]=i>>>8;H[d|0]=k;H[d+1|0]=k>>>8;h=h+1|0;if((e|0)!=(h|0))continue;break}break Ub;case 0:break Vb;default:break Ub}if(K[g+9|0]==8){if(!e)break Ub;d=d+J[g+4>>2]|0;if(e>>>0>=4){f=e&-4;h=0;while(1){i=d-1|0; -k=K[i|0];j=i;i=d-2|0;H[j|0]=K[i|0];H[i|0]=k;i=d-3|0;k=K[i|0];j=i;i=d-4|0;H[j|0]=K[i|0];H[i|0]=k;i=d-5|0;k=K[i|0];j=i;i=d-6|0;H[j|0]=K[i|0];H[i|0]=k;i=d-7|0;k=K[i|0];d=d-8|0;H[i|0]=K[d|0];H[d|0]=k;h=h+4|0;if((f|0)!=(h|0))continue;break}}e=e&3;if(!e)break Ub;h=0;while(1){f=d-1|0;i=K[f|0];d=d-2|0;H[f|0]=K[d|0];H[d|0]=i;h=h+1|0;if((e|0)!=(h|0))continue;break}break Ub}if(!e)break Ub;d=d+J[g+4>>2]|0;if((e|0)!=1){k=e&-2;h=0;while(1){f=d-4|0;i=Opa(K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24),16);H[f|0]= -i;H[f+1|0]=i>>>8;H[f+2|0]=i>>>16;H[f+3|0]=i>>>24;d=d-8|0;f=Opa(K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),16);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(e&1))break Ub;d=d-4|0;e=Opa(K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),16);H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=e>>>16;H[d+3|0]=e>>>24}d=J[a+208>>2]}if(d&16){TD(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&1048576){d=J[a+184>>2];if(d)Ab[d|0](a,g,J[a+356>>2]+1|0);d=K[a+196|0];if(d)H[g+9|0]=d;d= -K[a+197|0];Wb:{if(!d){d=K[g+10|0];break Wb}H[g+10|0]=d}e=P(K[g+9|0],d);H[g+11|0]=e;d=J[g>>2];e=e&255;Xb:{if(e>>>0>=8){d=P(d,e>>>3|0);break Xb}d=P(d,e)+7>>>3|0}J[g+4>>2]=d}break na}gc(a,253799);B()}gc(a,253955);B()}gc(a,254177);B()}gc(a,254566);B()}d=K[s+15|0];e=K[a+409|0];Yb:{if(!e){H[a+409|0]=d;if(d>>>0<=K[a+408|0])break Yb;gc(a,254130);B()}if((d|0)!=(e|0))break a}Zb:{_b:{if(!K[a+398|0])break _b;g=J[a+208>>2];if(!(g&2))break _b;l=K[a+399|0];if(l>>>0<=5){h=0;n=xb-16|0;xb=n;j=J[a+356>>2]+1|0;if(!(!j| -(s|0)==-4)){m=J[(l<<2)+262512>>2];d=J[s+4>>2];k=P(m,d);$b:{ac:{bc:{cc:{dc:{ec:{e=K[s+15|0];switch(e-1|0){case 3:break cc;case 1:break dc;case 0:break ec;default:break bc}}i=7;q=d-1|0;h=q&7;fc:{if(g&65536){f=-1;e=k-1&7;break fc}u=7;h=h^7;i=0;f=1;e=0-k&7}if(!d)break ac;g=j+(k-1>>>3|0)|0;j=j+(q>>>3|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&1;d=0;if(!t)while(1){H[g|0]=K[g|0]&32639>>>7-e|l<>>7-e|l<>>7-e|l<>>0>2])continue;break}break ac}i=6;h=(d<<1)+6&6;gc:{if(g&65536){f=-2;e=(k<<1)+6&6;break gc}u=6;h=h^6;f=2;i=0;e=((k<<1)+6^-1)&6}if(!d)break ac;g=j+(k-1>>>2|0)|0;j=j+(d-1>>>2|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&3;d=0;if(!t)while(1){H[g|0]=K[g|0]&16191>>>6-e|l<>>6-e|l<>>6-e|l<>>0>2])continue;break}break ac}i=4;h=d<<2&4;hc:{if(g&65536){h=h^4;f=-4;e=(k^-1)<<2&4;break hc}u=4;i=0;f=4;e=k<<2&4}if(!d)break ac;g=j+(k-1>>>1|0)|0;j=j+(d-1>>>1|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&15;d= -0;if(!t)while(1){H[g|0]=K[g|0]&3855>>>4-e|l<>>4-e|l<>>4-e|l<>>0>2])continue;break}break ac}if(!d)break $b;e=e>>>3|0;g=0-e|0;f=(m|0)<=1?1:m;u=f&2147483644;m=f&3;d=j+P(e,d-1|0)|0;i=j+P(e,k-1|0)|0;j=f>>>0<4;while(1){Mb(n+8|0,d,e);f=0;if(!j)while(1){o=i; -i=n+8|0;i=Mb(Mb(Mb(Mb(o,i,e)+g|0,i,e)+g|0,i,e)+g|0,i,e)+g|0;f=f+4|0;if((u|0)!=(f|0))continue;break}f=0;if(m)while(1){i=Mb(i,n+8|0,e)+g|0;f=f+1|0;if((m|0)!=(f|0))continue;break}d=d+g|0;h=h+1|0;if(h>>>0>2])continue;break}}e=K[s+15|0]}J[s+4>>2]=k;d=e&255;ic:{if(d>>>0>=8){d=P(k,d>>>3|0);break ic}d=P(d,k)+7>>>3|0}J[s+8>>2]=d}xb=n+16|0}if(c)Ig(a,c,1);if(!b)break Zb;Ig(a,b,0);break Zb}if(b)Ig(a,b,-1);if(!c)break Zb;Ig(a,c,-1)}$h(a);b=J[a+520>>2];if(!b)break d;Ab[b|0](a,J[a+344>>2],K[a+399|0])}xb= -s+16|0;return}gc(a,253203);B()}gc(a,253998);B()}gc(a,254386);B()}function zt(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,p=0,q=0,r=0,s=0,t=Q(0),u=Q(0),v=0,w=0,y=0,A=0,B=0,C=0,D=0,E=0;l=xb-4464|0;xb=l;a:{if(!J[a+48>>2]|M[a+220>>2]<=c>>>0)break a;j=J[a+84>>2];b:{if((j|0)==169776)break b;c:{d:switch(K[j|0]){case 0:i=(c+j|0)+1|0;break c;case 3:break d;default:break b}e:{if(!(K[j+1|0]|K[j+2|0]<<8)){o=169776;h=0;break e}o=j+3|0;h=K[j+1|0]|K[j+2|0]<<8}p=(h<<8|(h&65280)>>>8)&65535;f:{if(p>>>0>=2){i= -p-2|0;while(1){r=i+n>>>1|0;g=P(r,3)+o|0;v=K[g|0]|K[g+1|0]<<8;g:{if(((v<<8|v>>>8)&65535)>>>0<=c>>>0){n=K[g+3|0]|K[g+4|0]<<8;if(((n<<8|n>>>8)&65535)>>>0>c>>>0)break f;n=r+1|0;break g}i=r-1|0}if((i|0)>=(n|0))continue;break}}if(!h){g=169776;break f}g=j+P(p,3)|0}i=g+2|0}i=K[i|0]}mg(l+4448|0,J[a+76>>2],c);g=J[(M[a+212>>2]<=i>>>0?169776:J[a+216>>2]+P(i,24)|0)+20>>2];j=J[a+72>>2];H[l+32|0]=0;Nb(l+36|0,0,4108);c=l+4208|0;J[c>>2]=0;J[c+4>>2]=0;J[l+4216>>2]=0;c=l+4228|0;J[c>>2]=0;J[c+4>>2]=0;J[l+4236>>2]=0; -c=l+4248|0;J[c>>2]=0;J[c+4>>2]=0;J[l+4256>>2]=0;c=l+4268|0;J[c>>2]=0;J[c+4>>2]=0;J[l+4276>>2]=0;c=l+4288|0;J[c>>2]=0;J[c+4>>2]=0;J[l+4296>>2]=0;c=l+4308|0;J[c>>2]=0;J[c+4>>2]=0;J[l+4316>>2]=0;J[l+4336>>2]=0;c=l+4328|0;J[c>>2]=0;J[c+4>>2]=0;J[l+4356>>2]=0;c=l+4348|0;J[c>>2]=0;J[c+4>>2]=0;H[l+4180|0]=0;J[l+24>>2]=0;c=J[l+4452>>2];i=J[l+4448>>2];J[l+16>>2]=i;J[l+20>>2]=c;J[l+4376>>2]=0;h=l+4368|0;J[h>>2]=0;J[h+4>>2]=0;h=l+4192|0;J[h>>2]=0;J[h+4>>2]=0;h=l+4184|0;J[h>>2]=0;J[h+4>>2]=0;J[l+4160>>2]=0;h= -l+4152|0;J[h>>2]=0;J[h+4>>2]=0;h=l+4416|0;J[h>>2]=0;J[h+4>>2]=0;J[l+4392>>2]=j;J[l+4144>>2]=i;J[l+4148>>2]=c;J[l+4176>>2]=0;J[l+4168>>2]=0;J[l+4172>>2]=0;H[l+4165|0]=1;H[l+4166|0]=0;J[l+4408>>2]=0;J[l+4412>>2]=0;h=107;i=107;h:{if(!j)break h;j=K[j|0]|K[j+1|0]<<8;j=(j<<8|j>>>8)&65535;i=107;if(j>>>0<1240)break h;i=j>>>0<33900?1131:32768}J[l+4400>>2]=g;J[l+4388>>2]=i;i:{if(!g)break i;i=K[g|0]|K[g+1|0]<<8;i=(i<<8|i>>>8)&65535;if(i>>>0<1240)break i;h=i>>>0<33900?1131:32768}i=c;J[l+4432>>2]=0;J[l+4436>> -2]=0;J[l+4396>>2]=h;H[l+4440|0]=e;J[l+4428>>2]=0;I[l+4424>>1]=0;H[l+4164|0]=0;J[l+12>>2]=a;J[l+4>>2]=d;J[l+8>>2]=f;J[l>>2]=b;b=1E4;c=0;while(1){h=65535;j:{k:{l:{d=c+1|0;if(d>>>0>i>>>0)break l;e=J[l+16>>2];a=K[e+c|0];J[l+24>>2]=d;if((a|0)==12){a=c+2|0;if(a>>>0>i>>>0)break l;c=K[d+e|0];J[l+24>>2]=a;a=c|256}if((a|0)!=14){h=a;if((a|0)!=256)break l;break k}a=J[l+36>>2];if(!K[l+4424|0]){if(a&1){c=J[l+44>>2];J[l+4432>>2]=J[l+40>>2];J[l+4436>>2]=c;J[l+4428>>2]=1;H[l+4425|0]=1}H[l+4424|0]=1}if(a>>>0>=4){e= -xb-16|0;xb=e;f=J[l+4>>2];a=f+16|0;if(J[f+16>>2]){d=J[f+12>>2];c=J[f+8>>2];t=N[f+20>>2];u=N[f+24>>2];if(!(t==N[f+28>>2]&u==N[f+32>>2])){i=J[c+16>>2];f=J[c+32>>2];if(f)f=J[f+4>>2];else f=0;Ab[i|0](c,d,a,t,u,f)}i=J[c+28>>2];f=J[c+32>>2];if(f)f=J[f+16>>2];else f=0;Ab[i|0](c,d,a,f)}J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;g=l+16|0;a=J[g+20>>2];J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;f=g+16|0;h=0;m:{n:{o:{p:{if(a>>>0>=4){c=(f+(a<<3)|0)-24|0;d=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]= -d;break p}H[f|0]=1;d=J[42445];c=J[42444];J[194120]=c;J[194121]=d;J[e>>2]=c;J[e+4>>2]=d;if((a|0)!=3)break o}c=(f+(a<<3)|0)-16|0;d=J[c+4>>2];J[e+8>>2]=J[c>>2];J[e+12>>2]=d;i=l+12|0;d=J[l+12>>2];break n}j=J[42445];c=J[42444];J[194120]=c;J[194121]=j;J[e+8>>2]=c;J[e+12>>2]=j;i=l+12|0;d=J[l+12>>2];if(a>>>0>1)break n;J[194120]=c;J[194121]=j;x(0,c|0);x(1,j|0);m=+z();break m}m=O[(f+(a<<3)|0)-8>>3]}q:{if(R(m)<2147483648){c=~~m;break q}c=-2147483648}r:{if(c>>>0<=255){h=K[c+118288|0];j=J[d+56>>2];if((j|0)!=169776){h= -$l(j,h,J[d+220>>2]);d=J[i>>2];c=J[g+20>>2];break r}h=c>>>0<229?J[d+176>>2]?0:h:0}c=a}a=a-1|0;s:{if(c>>>0<=a>>>0){H[f|0]=1;c=J[42445];a=J[42444];J[194120]=a;J[194121]=c;x(0,a|0);x(1,c|0);m=+z();break s}m=O[(f+(a<<3)|0)+8>>3]}t:{if(R(m)<2147483648){a=~~m;break t}a=-2147483648}u:{v:{if(a>>>0>255)break v;c=K[a+118288|0];f=J[d+56>>2];w:{if((f|0)!=169776){a=$l(f,c,J[d+220>>2]);break w}a=a>>>0<229?J[d+176>>2]?0:c:0}if(!a|!h|K[g+4424|0])break v;if(!zt(J[l+12>>2],J[l>>2],h,J[l+4>>2],1,0))break v;if(zt(J[l+ -12>>2],J[l>>2],a,J[l+4>>2],1,e))break u}J[g+8>>2]=J[g+4>>2]+1}xb=e+16|0}H[l+4164|0]=1;break k}f=l+16|0;d=xb-16|0;xb=d;x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:switch(h-1|0){default:switch(h-255|0){case 38:break E;case 37:break F;case 36:break G;case 35:break H;case 0:break _;default:break D}case 10:a=J[f+4>>2];if(a>>>0>2])J[f+8>>2]=a+1;a=f+4164|0;c=J[f+4168>>2];aa:{if(c){c=c-1|0;J[f+4168>>2]=c;a=(a+P(c,20)|0)+8|0;break aa}H[a|0]=1;J[194124]= -J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480}c=J[a+4>>2];J[f+4128>>2]=J[a>>2];J[f+4132>>2]=c;J[f+4144>>2]=J[a+16>>2];e=J[a+12>>2];c=f+4136|0;J[c>>2]=J[a+8>>2];J[c+4>>2]=e;c=J[a>>2];e=J[a+4>>2];J[f+8>>2]=J[a+8>>2];J[f>>2]=c;J[f+4>>2]=e;break x;case 1:case 8:case 11:case 12:case 14:case 15:case 16:case 27:break D;case 30:break I;case 29:break J;case 26:break K;case 25:break L;case 24:break M;case 23:break N;case 7:break O;case 6:break P;case 5:break Q; -case 4:break R;case 3:break S;case 21:break T;case 20:break U;case 18:case 19:break V;case 2:case 22:break W;case 0:case 17:break X;case 28:break Y;case 9:break Z;case 13:break $}if(!K[f+4408|0]){if(H[f+20|0]&1){H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}J[f+4412>>2]=0;H[f+4148|0]=1;J[f+20>>2]=0;break x}c=J[f+4>>2];a=J[f+8>>2];if(c>>>0>>0)break x;e=f+16|0;ba:{if(a>>>0>=c>>>0){a=c+1|0;c=169776;break ba}c=J[f>>2]+a|0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3| -0]<<24);i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=J[f+20>>2];ca:{if(c>>>0<=512){J[f+20>>2]=c+1;c=(e+(c<<3)|0)+8|0;break ca}H[e|0]=1;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480}O[c>>3]=+(i|0)*1.52587890625E-5;J[f+8>>2]=a+4;break x}a=f+16|0;da:{c=J[f+20>>2];ea:{if(c){c=c-1|0;J[f+20>>2]=c;m=O[(a+(c<<3)|0)+8>>3];break ea}H[a|0]=1;c=J[42445];a=J[42444];J[194120]=a;J[194121]=c;x(0,a|0);x(1,c|0);m=+z()}fa:{if(R(m)<2147483648){a=~~m;break fa}a=-2147483648}e=a+J[f+4380>>2]|0;ga:{if((e|0)<0)break ga; -a=J[f+4384>>2];if(!a)break ga;a=K[a|0]|K[a+1|0]<<8;if(e>>>0>=((a<<8|a>>>8)&65535)>>>0)break ga;a=J[f+4168>>2];if(a>>>0<10)break da}J[f+8>>2]=J[f+4>>2]+1;break x}h=J[f+4>>2];c=J[f>>2];J[f+4128>>2]=c;J[f+4132>>2]=h;J[f+4168>>2]=a+1;i=f+4136|0;J[i>>2]=J[f+8>>2];a=f+P(a,20)|0;j=f+4144|0;J[a+4188>>2]=J[j>>2];g=a+4172|0;J[g>>2]=c;J[g+4>>2]=h;c=J[i+4>>2];a=a+4180|0;J[a>>2]=J[i>>2];J[a+4>>2]=c;h=f+4128|0;a=0;c=0;g=J[f+4384>>2];ha:{if(!g)break ha;n=K[g|0]|K[g+1|0]<<8;if(e>>>0>=((n<<8|n>>>8)&65535)>>>0)break ha; -mg(d,g,e);a=J[d>>2];c=J[d+4>>2]}J[f+4128>>2]=a;J[f+4132>>2]=c;J[j>>2]=e;J[i>>2]=0;J[i+4>>2]=2;J[f+8>>2]=J[h+8>>2];a=J[h+4>>2];J[f>>2]=J[h>>2];J[f+4>>2]=a;break x}a=f+16|0;ia:{c=J[f+20>>2];ja:{if(c){c=c-1|0;J[f+20>>2]=c;m=O[(a+(c<<3)|0)+8>>3];break ja}H[a|0]=1;c=J[42445];a=J[42444];J[194120]=a;J[194121]=c;x(0,a|0);x(1,c|0);m=+z()}ka:{if(R(m)<2147483648){a=~~m;break ka}a=-2147483648}e=a+J[f+4372>>2]|0;la:{if((e|0)<0)break la;a=J[f+4376>>2];if(!a)break la;a=K[a|0]|K[a+1|0]<<8;if(e>>>0>=((a<<8|a>>>8)& -65535)>>>0)break la;a=J[f+4168>>2];if(a>>>0<10)break ia}J[f+8>>2]=J[f+4>>2]+1;break x}h=J[f+4>>2];c=J[f>>2];J[f+4128>>2]=c;J[f+4132>>2]=h;J[f+4168>>2]=a+1;i=f+4136|0;J[i>>2]=J[f+8>>2];a=f+P(a,20)|0;j=f+4144|0;J[a+4188>>2]=J[j>>2];g=a+4172|0;J[g>>2]=c;J[g+4>>2]=h;c=J[i+4>>2];a=a+4180|0;J[a>>2]=J[i>>2];J[a+4>>2]=c;h=f+4128|0;a=0;c=0;g=J[f+4376>>2];ma:{if(!g)break ma;n=K[g|0]|K[g+1|0]<<8;if(e>>>0>=((n<<8|n>>>8)&65535)>>>0)break ma;mg(d,g,e);a=J[d>>2];c=J[d+4>>2]}J[f+4128>>2]=a;J[f+4132>>2]=c;J[j>>2]= -e;J[i>>2]=0;J[i+4>>2]=1;J[f+8>>2]=J[h+8>>2];a=J[h+4>>2];J[f>>2]=J[h>>2];J[f+4>>2]=a;break x}if(K[f+4408|0]|h>>>0>18)break y;if(1<>2];a=c>>>0>1;break z}na:{if(K[f+4408|0]|h>>>0>23)break na;oa:{pa:{a=1<>2];a=c>>>0>2;break oa}c=J[f+20>>2];a=c&1;break oa}c=J[f+20>>2];a=c>>>0>1}if(!(!a|!c)){H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}J[f+4412>>2]= -0;a=J[f+20>>2];J[f+20>>2]=0;J[f+4156>>2]=J[f+4156>>2]+(a>>>1|0);break x}if(!K[f+4408|0]){if(H[f+20|0]&1){J[f+4412>>2]=1;H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}qa:{if(K[f+4150|0]){a=J[f+4160>>2];break qa}H[f+4150|0]=1;a=J[f+4156>>2]+(J[f+20>>2]>>>1|0)|0;J[f+4156>>2]=a;a=(a+J[f+4152>>2]|0)+7>>>3|0;J[f+4160>>2]=a}a=J[f+8>>2]+a|0;if(a>>>0>M[f+4>>2])break x;J[f+4412>>2]=0;J[f+8>>2]=a;J[f+20>>2]=0;break x}a=J[f+20>>2];if(!K[f+4408|0]){if(a>>>0>=3){J[f+4412>>2]=1; -H[f+4409|0]=1;c=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=c}H[f+4408|0]=1}c=f+4400|0;e=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=e;c=J[f+4396>>2];J[d>>2]=J[f+4392>>2];J[d+4>>2]=c;i=f+16|0;e=f+4392|0;if(!a){c=776480;break B}h=a-1|0;J[f+20>>2]=h;c=(i+(h<<3)|0)+8|0;if(!h)break B;a=a-2|0;J[f+20>>2]=a;m=O[(i+(a<<3)|0)+8>>3];break A}c=J[f+20>>2];if(!K[f+4408|0]){if(c>>>0>=2){J[f+4412>>2]=1;H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}a=f+4400|0;e=J[a+4>>2];J[d+8>>2]= -J[a>>2];J[d+12>>2]=e;a=J[f+4396>>2];J[d>>2]=J[f+4392>>2];J[d+4>>2]=a;e=f+16|0;a=f+4392|0;ra:{if(c){c=c-1|0;J[f+20>>2]=c;m=O[(e+(c<<3)|0)+8>>3];break ra}H[e|0]=1;e=J[42445];c=J[42444];J[194120]=c;J[194121]=e;x(0,c|0);x(1,e|0);m=+z()}O[d>>3]=m+O[d>>3];yt(l,d);c=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=c;c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;if(!K[f+4149|0]){if(!K[f+4150|0]){H[f+4150|0]=1;a=J[f+4156>>2]+(J[f+20>>2]>>>1|0)|0;J[f+4156>>2]=a;J[f+4160>>2]=(a+J[f+4152>>2]|0)+7>>>3}H[f+4149|0]=1}J[f+20>> -2]=0;J[f+4412>>2]=0;break x}c=J[f+20>>2];if(!K[f+4408|0]){if(c>>>0>=2){J[f+4412>>2]=1;H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}a=f+4400|0;e=J[a+4>>2];J[d+8>>2]=J[a>>2];J[d+12>>2]=e;a=J[f+4396>>2];J[d>>2]=J[f+4392>>2];J[d+4>>2]=a;e=f+16|0;a=f+4392|0;sa:{if(c){c=c-1|0;J[f+20>>2]=c;m=O[(e+(c<<3)|0)+8>>3];break sa}H[e|0]=1;e=J[42445];c=J[42444];J[194120]=c;J[194121]=e;x(0,c|0);x(1,e|0);m=+z()}O[d+8>>3]=m+O[d+8>>3];yt(l,d);c=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>> -2]=c;c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;if(!K[f+4149|0]){if(!K[f+4150|0]){H[f+4150|0]=1;a=J[f+4156>>2]+(J[f+20>>2]>>>1|0)|0;J[f+4156>>2]=a;J[f+4160>>2]=(a+J[f+4152>>2]|0)+7>>>3}H[f+4149|0]=1}J[f+20>>2]=0;J[f+4412>>2]=0;break x}i=J[f+20>>2];if(i>>>0>=2){j=f+16|0;g=f+4392|0;a=J[42445];n=a;e=J[42444];x(0,e|0);x(1,a|0);k=+z();c=2;a=0;while(1){h=J[g+12>>2];J[d+8>>2]=J[g+8>>2];J[d+12>>2]=h;h=J[g+4>>2];J[d>>2]=J[g>>2];J[d+4>>2]=h;ta:{if(a>>>0>=i>>>0){H[j|0]=1;J[194120]=e;J[194121]=n;h=776480;break ta}h= -(j+(a<<3)|0)+8|0}a=a|1;ua:{if(a>>>0>=i>>>0){H[j|0]=1;J[194120]=e;J[194121]=n;m=k;break ua}m=O[(j+(a<<3)|0)+8>>3]}q=O[h>>3];O[d+8>>3]=m+O[d+8>>3];O[d>>3]=q+O[d>>3];uh(l,d);a=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=a;a=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=a;a=c;c=a+2|0;i=J[f+20>>2];if(c>>>0<=i>>>0)continue;break}}J[f+20>>2]=0;J[f+4412>>2]=0;break x}c=0;a=0;h=xb-16|0;xb=h;n=f+16|0;g=J[f+20>>2];if(g>>>0>=2){j=f+4392|0;a=J[42445];o=a;i=J[42444];x(0,i|0);x(1,a|0);m=+z();e=2;while(1){a=e;e=J[j+12>>2];J[h+ -8>>2]=J[j+8>>2];J[h+12>>2]=e;e=J[j+4>>2];J[h>>2]=J[j>>2];J[h+4>>2]=e;va:{if(c>>>0>=g>>>0){H[n|0]=1;J[194120]=i;J[194121]=o;k=m;break va}k=O[(n+(c<<3)|0)+8>>3]}O[h>>3]=O[h>>3]+k;uh(l,h);e=J[h+12>>2];J[j+8>>2]=J[h+8>>2];J[j+12>>2]=e;e=J[h+4>>2];J[j>>2]=J[h>>2];J[j+4>>2]=e;c=c|1;wa:{if(c>>>0>=M[f+20>>2]){H[n|0]=1;J[194120]=i;J[194121]=o;k=m;break wa}k=O[(n+(c<<3)|0)+8>>3]}O[h+8>>3]=O[h+8>>3]+k;uh(l,h);c=J[h+12>>2];J[j+8>>2]=J[h+8>>2];J[j+12>>2]=c;c=J[h+4>>2];J[j>>2]=J[h>>2];J[j+4>>2]=c;c=a;e=a+2|0;g= -J[f+20>>2];if(e>>>0<=g>>>0)continue;break}}if(a>>>0>>0){c=f+4400|0;e=J[c+4>>2];J[h+8>>2]=J[c>>2];J[h+12>>2]=e;e=J[f+4396>>2];J[h>>2]=J[f+4392>>2];J[h+4>>2]=e;O[h>>3]=O[h>>3]+O[(n+(a<<3)|0)+8>>3];uh(l,h);a=J[h+12>>2];J[c>>2]=J[h+8>>2];J[c+4>>2]=a;a=J[h+4>>2];J[f+4392>>2]=J[h>>2];J[f+4396>>2]=a}xb=h+16|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}c=0;a=0;h=xb-16|0;xb=h;n=f+16|0;g=J[f+20>>2];if(g>>>0>=2){j=f+4392|0;a=J[42445];o=a;i=J[42444];x(0,i|0);x(1,a|0);m=+z();e=2;while(1){a=e;e=J[j+12>>2];J[h+8>>2]= -J[j+8>>2];J[h+12>>2]=e;e=J[j+4>>2];J[h>>2]=J[j>>2];J[h+4>>2]=e;xa:{if(c>>>0>=g>>>0){H[n|0]=1;J[194120]=i;J[194121]=o;k=m;break xa}k=O[(n+(c<<3)|0)+8>>3]}O[h+8>>3]=O[h+8>>3]+k;uh(l,h);e=J[h+12>>2];J[j+8>>2]=J[h+8>>2];J[j+12>>2]=e;e=J[h+4>>2];J[j>>2]=J[h>>2];J[j+4>>2]=e;c=c|1;ya:{if(c>>>0>=M[f+20>>2]){H[n|0]=1;J[194120]=i;J[194121]=o;k=m;break ya}k=O[(n+(c<<3)|0)+8>>3]}O[h>>3]=O[h>>3]+k;uh(l,h);c=J[h+12>>2];J[j+8>>2]=J[h+8>>2];J[j+12>>2]=c;c=J[h+4>>2];J[j>>2]=J[h>>2];J[j+4>>2]=c;c=a;e=a+2|0;g=J[f+20>> -2];if(e>>>0<=g>>>0)continue;break}}if(a>>>0>>0){c=f+4400|0;e=J[c+4>>2];J[h+8>>2]=J[c>>2];J[h+12>>2]=e;e=J[f+4396>>2];J[h>>2]=J[f+4392>>2];J[h+4>>2]=e;O[h+8>>3]=O[h+8>>3]+O[(n+(a<<3)|0)+8>>3];uh(l,h);a=J[h+12>>2];J[c>>2]=J[h+8>>2];J[c+4>>2]=a;a=J[h+4>>2];J[f+4392>>2]=J[h>>2];J[f+4396>>2]=a}xb=h+16|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}c=0;g=xb-48|0;xb=g;h=J[f+20>>2];if(h>>>0>=6){j=f+16|0;n=f+4392|0;a=J[42445];o=a;e=J[42444];x(0,e|0);x(1,a|0);m=+z();a=6;while(1){i=J[n+12>>2];J[g+40>>2]=J[n+8>>2]; -J[g+44>>2]=i;i=J[n+4>>2];J[g+32>>2]=J[n>>2];J[g+36>>2]=i;za:{if(c>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;i=776480;break za}i=(j+(c<<3)|0)+8|0}p=c|1;Aa:{if(p>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;k=m;break Aa}k=O[(j+(p<<3)|0)+8>>3]}q=O[i>>3];O[g+40>>3]=O[g+40>>3]+k;O[g+32>>3]=q+O[g+32>>3];i=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=i;i=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=i;i=c+2|0;Ba:{if(i>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;i=776480;break Ba}i=(j+(i<<3)|0)+8|0}p=c+ -3|0;Ca:{if(p>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;k=m;break Ca}k=O[(j+(p<<3)|0)+8>>3]}q=O[i>>3];O[g+24>>3]=O[g+24>>3]+k;O[g+16>>3]=q+O[g+16>>3];i=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=i;i=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=i;i=c+4|0;Da:{if(i>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;i=776480;break Da}i=(j+(i<<3)|0)+8|0}c=c+5|0;Ea:{if(c>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;k=m;break Ea}k=O[(j+(c<<3)|0)+8>>3]}q=O[i>>3];O[g+8>>3]=O[g+8>>3]+k;O[g>>3]=q+O[g>>3];fe(l,g+32|0, -g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=a;a=a+6|0;h=J[f+20>>2];if(a>>>0<=h>>>0)continue;break}}xb=g+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}a=0;h=xb-48|0;xb=h;c=J[f+20>>2];if(c>>>0>=8){g=f+16|0;j=f+4392|0;p=c-2|0;c=J[42445];n=c;e=J[42444];x(0,e|0);x(1,c|0);m=+z();c=6;while(1){i=J[j+12>>2];J[h+40>>2]=J[j+8>>2];J[h+44>>2]=i;i=J[j+4>>2];J[h+32>>2]=J[j>>2];J[h+36>>2]=i;o=J[f+20>>2];Fa:{if(o>>>0<=a>>>0){H[g|0]=1;J[194120]=e;J[194121]=n;i=776480; -break Fa}i=(g+(a<<3)|0)+8|0}r=a|1;Ga:{if(r>>>0>=o>>>0){H[g|0]=1;J[194120]=e;J[194121]=n;k=m;break Ga}k=O[(g+(r<<3)|0)+8>>3]}q=O[i>>3];O[h+40>>3]=O[h+40>>3]+k;O[h+32>>3]=q+O[h+32>>3];i=J[h+44>>2];J[h+24>>2]=J[h+40>>2];J[h+28>>2]=i;i=J[h+36>>2];J[h+16>>2]=J[h+32>>2];J[h+20>>2]=i;i=a+2|0;Ha:{if(i>>>0>=o>>>0){H[g|0]=1;J[194120]=e;J[194121]=n;i=776480;break Ha}i=(g+(i<<3)|0)+8|0}r=a+3|0;Ia:{if(r>>>0>=o>>>0){H[g|0]=1;J[194120]=e;J[194121]=n;k=m;break Ia}k=O[(g+(r<<3)|0)+8>>3]}q=O[i>>3];O[h+24>>3]=O[h+24>> -3]+k;O[h+16>>3]=q+O[h+16>>3];i=J[h+28>>2];J[h+8>>2]=J[h+24>>2];J[h+12>>2]=i;i=J[h+20>>2];J[h>>2]=J[h+16>>2];J[h+4>>2]=i;i=a+4|0;Ja:{if(i>>>0>=o>>>0){H[g|0]=1;J[194120]=e;J[194121]=n;i=776480;break Ja}i=(g+(i<<3)|0)+8|0}a=a+5|0;Ka:{if(a>>>0>=o>>>0){H[g|0]=1;J[194120]=e;J[194121]=n;k=m;break Ka}k=O[(g+(a<<3)|0)+8>>3]}q=O[i>>3];O[h+8>>3]=O[h+8>>3]+k;O[h>>3]=q+O[h>>3];fe(l,h+32|0,h+16|0,h);a=J[h+12>>2];J[j+8>>2]=J[h+8>>2];J[j+12>>2]=a;a=J[h+4>>2];J[j>>2]=J[h>>2];J[j+4>>2]=a;a=c;c=a+6|0;if(p>>>0>=c>>> -0)continue;break}i=J[f+20>>2];c=f+4400|0;e=J[c+4>>2];J[h+40>>2]=J[c>>2];J[h+44>>2]=e;c=J[f+4396>>2];J[h+32>>2]=J[f+4392>>2];J[h+36>>2]=c;La:{if(a>>>0>=i>>>0){H[g|0]=1;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480;break La}c=(g+(a<<3)|0)+8|0}e=f+4392|0;a=a|1;Ma:{if(a>>>0>=i>>>0){H[g|0]=1;i=J[42445];a=J[42444];J[194120]=a;J[194121]=i;x(0,a|0);x(1,i|0);m=+z();break Ma}m=O[(g+(a<<3)|0)+8>>3]}k=O[c>>3];O[h+40>>3]=O[h+40>>3]+m;O[h+32>>3]=k+O[h+32>>3];uh(l,h+32|0);a=J[h+44>>2];J[e+8>>2]=J[h+40>>2]; -J[e+12>>2]=a;a=J[h+36>>2];J[e>>2]=J[h+32>>2];J[e+4>>2]=a}xb=h+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}a=0;h=xb-48|0;xb=h;c=J[f+20>>2];if(c>>>0>=8){g=f+16|0;j=f+4392|0;o=c-6|0;c=J[42445];n=c;e=J[42444];x(0,e|0);x(1,c|0);k=+z();c=2;while(1){i=J[j+12>>2];J[h+40>>2]=J[j+8>>2];J[h+44>>2]=i;i=J[j+4>>2];J[h+32>>2]=J[j>>2];J[h+36>>2]=i;p=J[f+20>>2];Na:{if(p>>>0<=a>>>0){H[g|0]=1;J[194120]=e;J[194121]=n;i=776480;break Na}i=(g+(a<<3)|0)+8|0}a=a|1;Oa:{if(a>>>0>=p>>>0){H[g|0]=1;J[194120]=e;J[194121]=n;m=k;break Oa}m= -O[(g+(a<<3)|0)+8>>3]}q=O[i>>3];O[h+40>>3]=O[h+40>>3]+m;O[h+32>>3]=q+O[h+32>>3];uh(l,h+32|0);a=J[h+44>>2];J[j+8>>2]=J[h+40>>2];J[j+12>>2]=a;a=J[h+36>>2];J[j>>2]=J[h+32>>2];J[j+4>>2]=a;a=c;c=a+2|0;if(o>>>0>=c>>>0)continue;break}i=J[f+20>>2];e=f+4400|0;j=J[e+4>>2];J[h+40>>2]=J[e>>2];J[h+44>>2]=j;e=J[f+4396>>2];J[h+32>>2]=J[f+4392>>2];J[h+36>>2]=e;Pa:{if(a>>>0>=i>>>0){H[g|0]=1;e=J[42445];J[194120]=J[42444];J[194121]=e;e=776480;break Pa}e=(g+(a<<3)|0)+8|0}j=a|1;Qa:{if(j>>>0>=i>>>0){H[g|0]=1;n=J[42445]; -j=J[42444];J[194120]=j;J[194121]=n;x(0,j|0);x(1,n|0);m=+z();break Qa}m=O[(g+(j<<3)|0)+8>>3]}k=O[e>>3];O[h+40>>3]=O[h+40>>3]+m;O[h+32>>3]=k+O[h+32>>3];e=J[h+44>>2];J[h+24>>2]=J[h+40>>2];J[h+28>>2]=e;e=J[h+36>>2];J[h+16>>2]=J[h+32>>2];J[h+20>>2]=e;Ra:{if(c>>>0>=i>>>0){H[g|0]=1;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480;break Ra}c=(g+(c<<3)|0)+8|0}e=a+3|0;Sa:{if(e>>>0>=i>>>0){H[g|0]=1;j=J[42445];e=J[42444];J[194120]=e;J[194121]=j;x(0,e|0);x(1,j|0);m=+z();break Sa}m=O[(g+(e<<3)|0)+8>>3]}k=O[c>> -3];O[h+24>>3]=O[h+24>>3]+m;O[h+16>>3]=k+O[h+16>>3];c=J[h+28>>2];J[h+8>>2]=J[h+24>>2];J[h+12>>2]=c;c=J[h+20>>2];J[h>>2]=J[h+16>>2];J[h+4>>2]=c;c=a+4|0;Ta:{if(c>>>0>=i>>>0){H[g|0]=1;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480;break Ta}c=(g+(c<<3)|0)+8|0}e=f+4392|0;a=a+5|0;Ua:{if(a>>>0>=i>>>0){H[g|0]=1;i=J[42445];a=J[42444];J[194120]=a;J[194121]=i;x(0,a|0);x(1,i|0);m=+z();break Ua}m=O[(g+(a<<3)|0)+8>>3]}k=O[c>>3];O[h+8>>3]=O[h+8>>3]+m;O[h>>3]=k+O[h>>3];fe(l,h+32|0,h+16|0,h);a=J[h+12>>2];J[e+8>> -2]=J[h+8>>2];J[e+12>>2]=a;a=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=a}xb=h+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}c=0;g=xb-48|0;xb=g;a=f+4400|0;e=J[a+4>>2];J[g+40>>2]=J[a>>2];J[g+44>>2]=e;a=J[f+4396>>2];J[g+32>>2]=J[f+4392>>2];J[g+36>>2]=a;h=J[f+20>>2];if(h&1){O[g+32>>3]=O[g+32>>3]+O[f+24>>3];c=1}a=c|4;if(h>>>0>=a>>>0){j=f+16|0;n=f+4392|0;i=J[42445];o=i;e=J[42444];x(0,e|0);x(1,i|0);m=+z();while(1){Va:{if(c>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;k=m;break Va}k=O[(j+(c<<3)|0)+8>>3]}O[g+40>>3]=O[g+ -40>>3]+k;i=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=i;i=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=i;i=c+1|0;Wa:{if(i>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;i=776480;break Wa}i=(j+(i<<3)|0)+8|0}p=c+2|0;Xa:{if(p>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;k=m;break Xa}k=O[(j+(p<<3)|0)+8>>3]}q=O[i>>3];O[g+24>>3]=O[g+24>>3]+k;O[g+16>>3]=q+O[g+16>>3];i=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=i;i=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=i;c=c+3|0;Ya:{if(c>>>0>=h>>>0){H[j|0]=1;J[194120]=e; -J[194121]=o;k=m;break Ya}k=O[(j+(c<<3)|0)+8>>3]}O[g+8>>3]=O[g+8>>3]+k;fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=J[g+12>>2];J[g+40>>2]=J[g+8>>2];J[g+44>>2]=c;c=J[g+4>>2];J[g+32>>2]=J[g>>2];J[g+36>>2]=c;c=a;a=a+4|0;h=J[f+20>>2];if(a>>>0<=h>>>0)continue;break}}xb=g+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}a=0;g=xb-48|0;xb=g;c=f+4400|0;e=J[c+4>>2];J[g+40>>2]=J[c>>2];J[g+44>>2]=e;c=J[f+4396>>2];J[g+32>>2]=J[f+4392>>2];J[g+36>>2]=c;h=J[f+ -20>>2];if(h&1){O[g+40>>3]=O[g+40>>3]+O[f+24>>3];a=1}c=a|4;if(h>>>0>=c>>>0){j=f+16|0;n=f+4392|0;i=J[42445];o=i;e=J[42444];x(0,e|0);x(1,i|0);m=+z();while(1){Za:{if(a>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;k=m;break Za}k=O[(j+(a<<3)|0)+8>>3]}O[g+32>>3]=O[g+32>>3]+k;i=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=i;i=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=i;i=a+1|0;_a:{if(i>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;i=776480;break _a}i=(j+(i<<3)|0)+8|0}p=a+2|0;$a:{if(p>>>0>=h>>>0){H[j|0]=1; -J[194120]=e;J[194121]=o;k=m;break $a}k=O[(j+(p<<3)|0)+8>>3]}q=O[i>>3];O[g+24>>3]=O[g+24>>3]+k;O[g+16>>3]=q+O[g+16>>3];i=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=i;i=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=i;a=a+3|0;ab:{if(a>>>0>=h>>>0){H[j|0]=1;J[194120]=e;J[194121]=o;k=m;break ab}k=O[(j+(a<<3)|0)+8>>3]}O[g>>3]=O[g>>3]+k;fe(l,g+32|0,g+16|0,g);a=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=a;a=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=a;a=J[g+12>>2];J[g+40>>2]=J[g+8>>2];J[g+44>>2]=a;a=J[g+4>>2];J[g+32>>2]= -J[g>>2];J[g+36>>2]=a;a=c;c=a+4|0;h=J[f+20>>2];if(c>>>0<=h>>>0)continue;break}}xb=g+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}g=xb-48|0;xb=g;j=f+16|0;a=4;i=J[f+20>>2];bb:{if(!(i&4)){if(i>>>0<8)break bb;n=f+4392|0;a=J[42445];o=a;h=J[42444];x(0,h|0);x(1,a|0);m=+z();c=8;a=0;while(1){e=a;a=c;c=J[n+12>>2];J[g+40>>2]=J[n+8>>2];J[g+44>>2]=c;c=J[n+4>>2];J[g+32>>2]=J[n>>2];J[g+36>>2]=c;cb:{if(e>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break cb}k=O[(j+(e<<3)|0)+8>>3]}O[g+40>>3]=O[g+40>>3]+k;c=J[g+44>> -2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=c;c=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=c;c=e|1;db:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;c=776480;break db}c=(j+(c<<3)|0)+8|0}p=e|2;eb:{if(p>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break eb}k=O[(j+(p<<3)|0)+8>>3]}q=O[c>>3];O[g+24>>3]=O[g+24>>3]+k;c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;O[g+16>>3]=q+O[g+16>>3];c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;c=e|3;fb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break fb}k= -O[(j+(c<<3)|0)+8>>3]}O[g>>3]=O[g>>3]+k;fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=J[g+12>>2];J[g+40>>2]=J[g+8>>2];J[g+44>>2]=c;c=J[g+4>>2];J[g+32>>2]=J[g>>2];J[g+36>>2]=c;i=J[f+20>>2];c=e|4;gb:{if(i>>>0<=c>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break gb}k=O[(j+(c<<3)|0)+8>>3]}c=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=c;O[g+32>>3]=O[g+32>>3]+k;c=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=c;c=e|5;hb:{if(c>>>0>=i>>>0){H[j|0]= -1;J[194120]=h;J[194121]=o;c=776480;break hb}c=(j+(c<<3)|0)+8|0}p=e|6;ib:{if(p>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break ib}k=O[(j+(p<<3)|0)+8>>3]}q=O[c>>3];O[g+24>>3]=O[g+24>>3]+k;c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;O[g+16>>3]=q+O[g+16>>3];c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;c=e|7;jb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break jb}k=O[(j+(c<<3)|0)+8>>3]}O[g+8>>3]=O[g+8>>3]+k;if(!(!(i&1)|i-e>>>0>15)){kb:{if(a>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]= -o;k=m;break kb}k=O[(j+(a<<3)|0)+8>>3]}O[g>>3]=O[g>>3]+k}fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=a+8|0;i=J[f+20>>2];if(c>>>0<=i>>>0)continue;break}break bb}c=f+4400|0;e=J[c+4>>2];J[g+40>>2]=J[c>>2];J[g+44>>2]=e;c=J[f+4396>>2];e=J[f+4392>>2];J[g+32>>2]=e;J[g+36>>2]=c;O[g+40>>3]=O[g+40>>3]+O[f+24>>3];h=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=h;J[g+16>>2]=e;J[g+20>>2]=c;m=O[f+32>>3];O[g+24>>3]=O[g+24>>3]+O[f+40>>3];O[g+16>>3]=m+ -O[g+16>>3];c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;O[g>>3]=O[g>>3]+O[f+48>>3];n=f+4392|0;c=12;if(i>>>0>=12){a=J[42445];o=a;h=J[42444];x(0,h|0);x(1,a|0);m=+z();e=4;while(1){a=c;fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=J[g+12>>2];J[g+40>>2]=J[g+8>>2];J[g+44>>2]=c;c=J[g+4>>2];J[g+32>>2]=J[g>>2];J[g+36>>2]=c;i=J[f+20>>2];lb:{if(i>>>0<=e>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break lb}k= -O[(j+(e<<3)|0)+8>>3]}c=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=c;O[g+32>>3]=O[g+32>>3]+k;c=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=c;c=e|1;mb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;c=776480;break mb}c=(j+(c<<3)|0)+8|0}p=e|2;nb:{if(p>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break nb}k=O[(j+(p<<3)|0)+8>>3]}q=O[c>>3];O[g+24>>3]=O[g+24>>3]+k;c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;O[g+16>>3]=q+O[g+16>>3];c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;c=e|3;ob:{if(c>>>0>= -i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break ob}k=O[(j+(c<<3)|0)+8>>3]}O[g+8>>3]=O[g+8>>3]+k;fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=J[g+12>>2];J[g+40>>2]=J[g+8>>2];J[g+44>>2]=c;c=J[g+4>>2];J[g+32>>2]=J[g>>2];J[g+36>>2]=c;i=J[f+20>>2];c=e+4|0;pb:{if(i>>>0<=c>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break pb}k=O[(j+(c<<3)|0)+8>>3]}O[g+40>>3]=O[g+40>>3]+k;c=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=c;c=J[g+36>>2];J[g+16>> -2]=J[g+32>>2];J[g+20>>2]=c;c=e+5|0;qb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;c=776480;break qb}c=(j+(c<<3)|0)+8|0}p=e+6|0;rb:{if(p>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break rb}k=O[(j+(p<<3)|0)+8>>3]}q=O[c>>3];O[g+24>>3]=O[g+24>>3]+k;c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;O[g+16>>3]=q+O[g+16>>3];c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;c=e+7|0;sb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break sb}k=O[(j+(c<<3)|0)+8>>3]}O[g>>3]=O[g>>3]+k;e=a;c=a+8|0; -if(i>>>0>=c>>>0)continue;break}}if(a>>>0>>0)O[g+8>>3]=O[g+8>>3]+O[(j+(a<<3)|0)+8>>3];fe(l,g+32|0,g+16|0,g);a=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=a;a=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=a}xb=g+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}g=xb-48|0;xb=g;j=f+16|0;a=4;i=J[f+20>>2];tb:{if(!(i&4)){if(i>>>0<8)break tb;n=f+4392|0;a=J[42445];o=a;h=J[42444];x(0,h|0);x(1,a|0);m=+z();c=8;a=0;while(1){e=a;a=c;c=J[n+12>>2];J[g+40>>2]=J[n+8>>2];J[g+44>>2]=c;c=J[n+4>>2];J[g+32>>2]=J[n>>2];J[g+36>>2]=c;ub:{if(e>>> -0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break ub}k=O[(j+(e<<3)|0)+8>>3]}c=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=c;O[g+32>>3]=O[g+32>>3]+k;c=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=c;c=e|1;vb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;c=776480;break vb}c=(j+(c<<3)|0)+8|0}p=e|2;wb:{if(p>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break wb}k=O[(j+(p<<3)|0)+8>>3]}q=O[c>>3];O[g+24>>3]=O[g+24>>3]+k;c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;O[g+16>>3]=q+O[g+16>>3];c=J[g+ -20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;c=e|3;xb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break xb}k=O[(j+(c<<3)|0)+8>>3]}O[g+8>>3]=O[g+8>>3]+k;fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=J[g+12>>2];J[g+40>>2]=J[g+8>>2];J[g+44>>2]=c;c=J[g+4>>2];J[g+32>>2]=J[g>>2];J[g+36>>2]=c;i=J[f+20>>2];c=e|4;yb:{if(i>>>0<=c>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break yb}k=O[(j+(c<<3)|0)+8>>3]}O[g+40>>3]=O[g+40>>3]+k;c=J[g+44>>2]; -J[g+24>>2]=J[g+40>>2];J[g+28>>2]=c;c=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=c;c=e|5;zb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;c=776480;break zb}c=(j+(c<<3)|0)+8|0}p=e|6;Ab:{if(p>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Ab}k=O[(j+(p<<3)|0)+8>>3]}q=O[c>>3];O[g+24>>3]=O[g+24>>3]+k;c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;O[g+16>>3]=q+O[g+16>>3];c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;c=e|7;Bb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Bb}k=O[(j+ -(c<<3)|0)+8>>3]}O[g>>3]=O[g>>3]+k;if(!(!(i&1)|i-e>>>0>15)){Cb:{if(a>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Cb}k=O[(j+(a<<3)|0)+8>>3]}O[g+8>>3]=O[g+8>>3]+k}fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=a+8|0;i=J[f+20>>2];if(c>>>0<=i>>>0)continue;break}break tb}e=f+4400|0;c=J[e>>2];e=J[e+4>>2];J[g+40>>2]=c;J[g+44>>2]=e;h=J[f+4396>>2];J[g+32>>2]=J[f+4392>>2];J[g+36>>2]=h;O[g+32>>3]=O[g+32>>3]+O[f+24>>3];J[g+24>>2]=c;J[g+ -28>>2]=e;c=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=c;m=O[f+32>>3];O[g+24>>3]=O[g+24>>3]+O[f+40>>3];O[g+16>>3]=m+O[g+16>>3];c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;O[g+8>>3]=O[g+8>>3]+O[f+48>>3];n=f+4392|0;c=12;if(i>>>0>=12){a=J[42445];o=a;h=J[42444];x(0,h|0);x(1,a|0);m=+z();e=4;while(1){a=c;fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=J[g+12>>2];J[g+40>>2]=J[g+8>>2];J[g+44>>2]=c; -c=J[g+4>>2];J[g+32>>2]=J[g>>2];J[g+36>>2]=c;i=J[f+20>>2];Db:{if(i>>>0<=e>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Db}k=O[(j+(e<<3)|0)+8>>3]}O[g+40>>3]=O[g+40>>3]+k;c=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=c;c=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=c;c=e|1;Eb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;c=776480;break Eb}c=(j+(c<<3)|0)+8|0}p=e|2;Fb:{if(p>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Fb}k=O[(j+(p<<3)|0)+8>>3]}q=O[c>>3];O[g+24>>3]=O[g+24>>3]+k;c=J[g+28>> -2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;O[g+16>>3]=q+O[g+16>>3];c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;c=e|3;Gb:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Gb}k=O[(j+(c<<3)|0)+8>>3]}O[g>>3]=O[g>>3]+k;fe(l,g+32|0,g+16|0,g);c=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=c;c=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=c;c=J[g+12>>2];J[g+40>>2]=J[g+8>>2];J[g+44>>2]=c;c=J[g+4>>2];J[g+32>>2]=J[g>>2];J[g+36>>2]=c;i=J[f+20>>2];c=e+4|0;Hb:{if(i>>>0<=c>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Hb}k= -O[(j+(c<<3)|0)+8>>3]}c=J[g+44>>2];J[g+24>>2]=J[g+40>>2];J[g+28>>2]=c;O[g+32>>3]=O[g+32>>3]+k;c=J[g+36>>2];J[g+16>>2]=J[g+32>>2];J[g+20>>2]=c;c=e+5|0;Ib:{if(c>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;c=776480;break Ib}c=(j+(c<<3)|0)+8|0}p=e+6|0;Jb:{if(p>>>0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Jb}k=O[(j+(p<<3)|0)+8>>3]}q=O[c>>3];O[g+24>>3]=O[g+24>>3]+k;c=J[g+28>>2];J[g+8>>2]=J[g+24>>2];J[g+12>>2]=c;O[g+16>>3]=q+O[g+16>>3];c=J[g+20>>2];J[g>>2]=J[g+16>>2];J[g+4>>2]=c;c=e+7|0;Kb:{if(c>>> -0>=i>>>0){H[j|0]=1;J[194120]=h;J[194121]=o;k=m;break Kb}k=O[(j+(c<<3)|0)+8>>3]}O[g+8>>3]=O[g+8>>3]+k;e=a;c=a+8|0;if(i>>>0>=c>>>0)continue;break}}if(a>>>0>>0)O[g>>3]=O[g>>3]+O[(j+(a<<3)|0)+8>>3];fe(l,g+32|0,g+16|0,g);a=J[g+12>>2];J[n+8>>2]=J[g+8>>2];J[n+12>>2]=a;a=J[g+4>>2];J[n>>2]=J[g>>2];J[n+4>>2]=a}xb=g+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}a=xb-96|0;xb=a;Lb:{if(J[f+20>>2]==7){e=f+4400|0;c=J[e>>2];i=J[e+4>>2];J[a+88>>2]=c;J[a+92>>2]=i;h=J[f+4396>>2];J[a+80>>2]=J[f+4392>>2];J[a+84>>2]=h;O[a+ -80>>3]=O[a+80>>3]+O[f+24>>3];J[a+72>>2]=c;J[a+76>>2]=i;c=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=c;m=O[f+32>>3];O[a+72>>3]=O[a+72>>3]+O[f+40>>3];O[a+64>>3]=m+O[a+64>>3];i=J[a+76>>2];c=J[a+72>>2];J[a+56>>2]=c;J[a+60>>2]=i;h=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=h;O[a+48>>3]=O[a+48>>3]+O[f+48>>3];J[a+40>>2]=c;J[a+44>>2]=i;h=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=h;O[a+32>>3]=O[a+32>>3]+O[f+56>>3];J[a+24>>2]=c;J[a+28>>2]=i;c=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=c;O[a+16>>3]=O[a+ -16>>3]+O[f- -64>>3];i=J[a+92>>2];c=J[a+88>>2];J[a+24>>2]=c;J[a+28>>2]=i;J[a+8>>2]=c;J[a+12>>2]=i;c=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=c;O[a>>3]=O[a>>3]+O[f+72>>3];fe(l,a+80|0,a- -64|0,a+48|0);c=J[a+60>>2];J[e>>2]=J[a+56>>2];J[e+4>>2]=c;c=J[a+52>>2];J[f+4392>>2]=J[a+48>>2];J[f+4396>>2]=c;fe(l,a+32|0,a+16|0,a);c=J[a+12>>2];J[e>>2]=J[a+8>>2];J[e+4>>2]=c;c=J[a+4>>2];J[f+4392>>2]=J[a>>2];J[f+4396>>2]=c;break Lb}J[f+8>>2]=J[f+4>>2]+1}xb=a+96|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}a=xb-96|0;xb=a;Mb:{if(J[f+ -20>>2]==13){c=f+4400|0;e=J[c+4>>2];J[a+88>>2]=J[c>>2];J[a+92>>2]=e;e=J[f+4396>>2];J[a+80>>2]=J[f+4392>>2];J[a+84>>2]=e;m=O[f+24>>3];O[a+88>>3]=O[a+88>>3]+O[f+32>>3];O[a+80>>3]=m+O[a+80>>3];e=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=e;e=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=e;m=O[f+40>>3];O[a+72>>3]=O[a+72>>3]+O[f+48>>3];O[a+64>>3]=m+O[a+64>>3];e=J[a+76>>2];J[a+56>>2]=J[a+72>>2];J[a+60>>2]=e;e=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=e;m=O[f+56>>3];O[a+56>>3]=O[a+56>>3]+O[f- -64>>3];O[a+ -48>>3]=m+O[a+48>>3];e=J[a+60>>2];J[a+40>>2]=J[a+56>>2];J[a+44>>2]=e;e=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=e;m=O[f+72>>3];O[a+40>>3]=O[a+40>>3]+O[f+80>>3];O[a+32>>3]=m+O[a+32>>3];e=J[a+44>>2];J[a+24>>2]=J[a+40>>2];J[a+28>>2]=e;e=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=e;m=O[f+88>>3];O[a+24>>3]=O[a+24>>3]+O[f+96>>3];O[a+16>>3]=m+O[a+16>>3];e=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=e;e=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=e;m=O[f+104>>3];O[a+8>>3]=O[a+8>>3]+O[f+112>>3];O[a>>3]=m+O[a>> -3];fe(l,a+80|0,a- -64|0,a+48|0);e=J[a+60>>2];J[c>>2]=J[a+56>>2];J[c+4>>2]=e;e=J[a+52>>2];J[f+4392>>2]=J[a+48>>2];J[f+4396>>2]=e;fe(l,a+32|0,a+16|0,a);e=J[a+12>>2];J[c>>2]=J[a+8>>2];J[c+4>>2]=e;c=J[a+4>>2];J[f+4392>>2]=J[a>>2];J[f+4396>>2]=c;break Mb}J[f+8>>2]=J[f+4>>2]+1}xb=a+96|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}a=xb-96|0;xb=a;Nb:{if(J[f+20>>2]==9){e=f+4400|0;c=e;i=J[c+4>>2];J[a+88>>2]=J[c>>2];J[a+92>>2]=i;c=J[f+4396>>2];J[a+80>>2]=J[f+4392>>2];J[a+84>>2]=c;m=O[f+24>>3];O[a+88>>3]=O[a+88>>3]+ -O[f+32>>3];O[a+80>>3]=m+O[a+80>>3];c=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=c;c=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=c;m=O[f+40>>3];O[a+72>>3]=O[a+72>>3]+O[f+48>>3];O[a+64>>3]=m+O[a+64>>3];i=J[a+76>>2];c=J[a+72>>2];J[a+56>>2]=c;J[a+60>>2]=i;h=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=h;O[a+48>>3]=O[a+48>>3]+O[f+56>>3];J[a+40>>2]=c;J[a+44>>2]=i;h=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=h;O[a+32>>3]=O[a+32>>3]+O[f- -64>>3];J[a+24>>2]=c;J[a+28>>2]=i;c=J[a+36>>2];J[a+16>>2]=J[a+32>> -2];J[a+20>>2]=c;m=O[f+72>>3];O[a+24>>3]=O[a+24>>3]+O[f+80>>3];O[a+16>>3]=m+O[a+16>>3];c=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=c;c=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=c;O[a>>3]=O[a>>3]+O[f+88>>3];c=J[e+4>>2];J[a+8>>2]=J[e>>2];J[a+12>>2]=c;fe(l,a+80|0,a- -64|0,a+48|0);c=J[a+60>>2];J[e>>2]=J[a+56>>2];J[e+4>>2]=c;c=J[a+52>>2];J[f+4392>>2]=J[a+48>>2];J[f+4396>>2]=c;fe(l,a+32|0,a+16|0,a);c=J[a+12>>2];J[e>>2]=J[a+8>>2];J[e+4>>2]=c;c=J[a+4>>2];J[f+4392>>2]=J[a>>2];J[f+4396>>2]=c;break Nb}J[f+8>> -2]=J[f+4>>2]+1}xb=a+96|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}a=xb-96|0;xb=a;Ob:{if(J[f+20>>2]==11){m=O[f+88>>3];k=O[f+72>>3];q=O[f+56>>3];w=O[f+40>>3];y=O[f+24>>3];A=O[f+96>>3];B=O[f+80>>3];c=f- -64|0;C=O[c>>3];D=O[f+48>>3];E=O[f+32>>3];e=f+4400|0;i=J[e+4>>2];J[a+88>>2]=J[e>>2];J[a+92>>2]=i;i=J[f+4396>>2];J[a+80>>2]=J[f+4392>>2];J[a+84>>2]=i;s=O[f+24>>3];O[a+88>>3]=O[a+88>>3]+O[f+32>>3];O[a+80>>3]=s+O[a+80>>3];i=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=i;i=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+ -68>>2]=i;s=O[f+40>>3];O[a+72>>3]=O[a+72>>3]+O[f+48>>3];O[a+64>>3]=s+O[a+64>>3];i=J[a+76>>2];J[a+56>>2]=J[a+72>>2];J[a+60>>2]=i;i=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=i;s=O[f+56>>3];O[a+56>>3]=O[a+56>>3]+O[c>>3];O[a+48>>3]=s+O[a+48>>3];c=J[a+60>>2];J[a+40>>2]=J[a+56>>2];J[a+44>>2]=c;c=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=c;s=O[f+72>>3];O[a+40>>3]=O[a+40>>3]+O[f+80>>3];O[a+32>>3]=s+O[a+32>>3];c=J[a+44>>2];J[a+24>>2]=J[a+40>>2];J[a+28>>2]=c;c=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]= -c;s=O[f+88>>3];O[a+24>>3]=O[a+24>>3]+O[f+96>>3];O[a+16>>3]=s+O[a+16>>3];c=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=c;c=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=c;c=f+4392|0;Pb:{if(R(m+(k+(q+(w+(y+0)))))>R(A+(B+(C+(D+(E+0)))))){O[a>>3]=O[a>>3]+O[f+104>>3];i=J[e+4>>2];J[a+8>>2]=J[e>>2];J[a+12>>2]=i;break Pb}e=J[f+4396>>2];J[a>>2]=J[f+4392>>2];J[a+4>>2]=e;O[a+8>>3]=O[a+8>>3]+O[f+104>>3]}fe(l,a+80|0,a- -64|0,a+48|0);e=J[a+60>>2];J[c+8>>2]=J[a+56>>2];J[c+12>>2]=e;e=J[a+52>>2];J[c>>2]=J[a+48>>2];J[c+4>> -2]=e;fe(l,a+32|0,a+16|0,a);e=J[a+12>>2];J[c+8>>2]=J[a+8>>2];J[c+12>>2]=e;e=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=e;break Ob}J[f+8>>2]=J[f+4>>2]+1}xb=a+96|0;J[f+20>>2]=0;J[f+4412>>2]=0;break x}_l(h,f);break x}c=J[f+20>>2];a=c&1;break z}H[i|0]=1;i=J[42445];a=J[42444];J[194120]=a;J[194121]=i;x(0,a|0);x(1,i|0);m=+z()}O[d>>3]=m+O[d>>3];O[d+8>>3]=O[d+8>>3]+O[c>>3];yt(l,d);a=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=a;a=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=a;if(!K[f+4149|0]){if(!K[f+4150|0]){H[f+4150|0]=1; -a=J[f+4156>>2]+(J[f+20>>2]>>>1|0)|0;J[f+4156>>2]=a;J[f+4160>>2]=(a+J[f+4152>>2]|0)+7>>>3}H[f+4149|0]=1}J[f+20>>2]=0;J[f+4412>>2]=0;break x}if(!(!a|!c)){H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}J[f+4412>>2]=0;a=J[f+20>>2];J[f+20>>2]=0;J[f+4152>>2]=J[f+4152>>2]+(a>>>1|0)}xb=d+16|0;break j}J[l+36>>2]=0;J[l+4428>>2]=0}if(K[l+4180|0]){n=0;break a}n=0;c=J[l+24>>2];i=J[l+20>>2];if(K[l+32|0]|c>>>0>i>>>0)break a;b=b-1|0;if(!b)break a;if(!K[l+4164|0])continue;break}d= -J[l+4>>2];a=d+16|0;if(J[d+16>>2]){c=J[d+12>>2];b=J[d+8>>2];t=N[d+20>>2];u=N[d+24>>2];if(!(t==N[d+28>>2]&u==N[d+32>>2])){e=J[b+16>>2];d=J[b+32>>2];if(d)d=J[d+4>>2];else d=0;Ab[e|0](b,c,a,t,u,d)}e=J[b+28>>2];d=J[b+32>>2];if(d)d=J[d+16>>2];else d=0;Ab[e|0](b,c,a,d)}J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;n=1}xb=l+4464|0;return n}function At(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,y=0,A=0,B=0,C=0;h=xb-4496|0;xb=h;J[c+16>>2]=0;J[c+20>> -2]=-1042284544;J[c+8>>2]=-4194304;J[c+12>>2]=1105199103;J[c>>2]=-4194304;J[c+4>>2]=1105199103;J[c+24>>2]=0;J[c+28>>2]=-1042284544;a:{if(!J[a+48>>2]|M[a+220>>2]<=b>>>0)break a;e=J[a+84>>2];b:{if((e|0)==169776)break b;c:{d:switch(K[e|0]){case 0:g=(b+e|0)+1|0;break c;case 3:break d;default:break b}e:{if(!(K[e+1|0]|K[e+2|0]<<8)){A=169776;m=0;break e}A=e+3|0;m=K[e+1|0]|K[e+2|0]<<8}l=(m<<8|(m&65280)>>>8)&65535;f:{if(l>>>0>=2){f=l-2|0;while(1){o=f+g>>>1|0;k=P(o,3)+A|0;v=K[k|0]|K[k+1|0]<<8;g:{if(((v<<8|v>>> -8)&65535)>>>0<=b>>>0){g=K[k+3|0]|K[k+4|0]<<8;if(((g<<8|g>>>8)&65535)>>>0>b>>>0)break f;g=o+1|0;break g}f=o-1|0}if((f|0)>=(g|0))continue;break}}if(!m){k=169776;break f}k=e+P(l,3)|0}g=k+2|0}f=K[g|0]}mg(h+4480|0,J[a+76>>2],b);m=J[(M[a+212>>2]<=f>>>0?169776:J[a+216>>2]+P(f,24)|0)+20>>2];e=J[a+72>>2];H[h+64|0]=0;Nb(h+68|0,0,4108);b=h+4240|0;J[b>>2]=0;J[b+4>>2]=0;J[h+4248>>2]=0;b=h+4260|0;J[b>>2]=0;J[b+4>>2]=0;J[h+4268>>2]=0;b=h+4280|0;J[b>>2]=0;J[b+4>>2]=0;J[h+4288>>2]=0;b=h+4300|0;J[b>>2]=0;J[b+4>>2]= -0;J[h+4308>>2]=0;b=h+4320|0;J[b>>2]=0;J[b+4>>2]=0;J[h+4328>>2]=0;b=h+4340|0;J[b>>2]=0;J[b+4>>2]=0;J[h+4348>>2]=0;J[h+4368>>2]=0;b=h+4360|0;J[b>>2]=0;J[b+4>>2]=0;J[h+4388>>2]=0;b=h+4380|0;J[b>>2]=0;J[b+4>>2]=0;H[h+4212|0]=0;J[h+56>>2]=0;b=J[h+4484>>2];f=J[h+4480>>2];J[h+48>>2]=f;J[h+52>>2]=b;J[h+4408>>2]=0;g=h+4400|0;J[g>>2]=0;J[g+4>>2]=0;g=h+4224|0;J[g>>2]=0;J[g+4>>2]=0;g=h+4216|0;J[g>>2]=0;J[g+4>>2]=0;J[h+4192>>2]=0;g=h+4184|0;J[g>>2]=0;J[g+4>>2]=0;g=h+4448|0;J[g>>2]=0;J[g+4>>2]=0;J[h+4424>>2]=e; -J[h+4176>>2]=f;J[h+4180>>2]=b;J[h+4208>>2]=0;J[h+4200>>2]=0;J[h+4204>>2]=0;H[h+4197|0]=1;H[h+4198|0]=0;J[h+4440>>2]=0;J[h+4444>>2]=0;g=107;f=107;h:{if(!e)break h;e=K[e|0]|K[e+1|0]<<8;e=(e<<8|e>>>8)&65535;f=107;if(e>>>0<1240)break h;f=e>>>0<33900?1131:32768}J[h+4432>>2]=m;J[h+4420>>2]=f;i:{if(!m)break i;f=K[m|0]|K[m+1|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0<1240)break i;g=f>>>0<33900?1131:32768}f=b;J[h+4464>>2]=0;J[h+4468>>2]=0;J[h+4428>>2]=g;H[h+4472|0]=d;J[h+4460>>2]=0;I[h+4456>>1]=0;J[h+32>>2]=0;J[h+ -36>>2]=-1042284544;J[h+24>>2]=0;J[h+28>>2]=-1042284544;J[h+16>>2]=-4194304;J[h+20>>2]=1105199103;H[h+4196|0]=0;J[h+40>>2]=a;H[h|0]=0;J[h+8>>2]=-4194304;J[h+12>>2]=1105199103;A=1E4;b=0;while(1){g=65535;j:{k:{l:{d=b+1|0;if(d>>>0>f>>>0)break l;m=J[h+48>>2];a=K[m+b|0];J[h+56>>2]=d;if((a|0)==12){a=b+2|0;if(a>>>0>f>>>0)break l;b=K[d+m|0];J[h+56>>2]=a;a=b|256}if((a|0)!=14){g=a;if((a|0)!=256)break l;break k}a=J[h+68>>2];if(!K[h+4456|0]){if(a&1){b=J[h+76>>2];J[h+4464>>2]=J[h+72>>2];J[h+4468>>2]=b;J[h+4460>> -2]=1;H[h+4457|0]=1}H[h+4456|0]=1}if(a>>>0>=4){g=0;f=xb+-64|0;xb=f;l=h+48|0;m=l+16|0;m:{n:{o:{a=J[h+68>>2];p:{if(a>>>0>=4){r=O[(m+(a<<3)|0)-24>>3];break p}H[m|0]=1;d=J[42445];b=J[42444];J[194120]=b;J[194121]=d;x(0,b|0);x(1,d|0);r=+z();if((a|0)!=3)break o}k=h+40|0;t=O[(m+(a<<3)|0)-16>>3];b=J[h+40>>2];break n}J[194120]=b;J[194121]=d;k=h+40|0;x(0,b|0);x(1,d|0);t=+z();b=J[h+40>>2];if(a>>>0>1)break n;e=J[42445];d=J[42444];J[194120]=d;J[194121]=e;x(0,d|0);x(1,e|0);i=+z();break m}i=O[(m+(a<<3)|0)-8>>3]}q:{if(R(i)< -2147483648){d=~~i;break q}d=-2147483648}r:{if(d>>>0<=255){g=K[d+118288|0];e=J[b+56>>2];if((e|0)!=169776){g=$l(e,g,J[b+220>>2]);b=J[k>>2];d=J[h+68>>2];break r}g=d>>>0<229?J[b+176>>2]?0:g:0}d=a}a=a-1|0;s:{if(d>>>0<=a>>>0){H[m|0]=1;d=J[42445];a=J[42444];J[194120]=a;J[194121]=d;x(0,a|0);x(1,d|0);i=+z();break s}i=O[(m+(a<<3)|0)+8>>3]}t:{if(R(i)<2147483648){a=~~i;break t}a=-2147483648}d=0;u:{if(a>>>0>255)break u;d=K[a+118288|0];m=J[b+56>>2];if((m|0)!=169776){d=$l(m,d,J[b+220>>2]);break u}d=a>>>0<229?J[b+ -176>>2]?0:d:0}J[f+56>>2]=0;J[f+60>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;v:{w:{if(K[l+4424|0]|(!d|!g))break w;if(!At(J[k>>2],g,f+32|0,1))break w;if(!At(J[k>>2],d,f,1))break w;x:{y:{u=O[h+24>>3];n=O[h+8>>3];if(u>n){y=O[h+32>>3];C=O[h+16>>3];if(y>C)break y}a=J[f+36>>2];J[h+8>>2]=J[f+32>>2];J[h+12>>2]=a;a=J[f+60>>2];J[h+32>>2]=J[f+56>>2];J[h+36>>2]=a;a=J[f+52>> -2];J[h+24>>2]=J[f+48>>2];J[h+28>>2]=a;a=J[f+44>>2];J[h+16>>2]=J[f+40>>2];J[h+20>>2]=a;break x}i=O[f+48>>3];j=O[f+32>>3];if(!(i>j))break x;p=O[f+56>>3];s=O[f+40>>3];if(!(p>s))break x;if(j>3]=j;if(i>u)O[h+24>>3]=i;if(s>3]=s;if(!(p>y))break x;O[h+32>>3]=p}j=O[f+16>>3];p=O[f>>3];i=O[f+24>>3];n=O[f+8>>3];if(!(!(j>p)|!(i>n))){i=t+i;O[f+24>>3]=i;j=r+j;O[f+16>>3]=j;n=t+n;O[f+8>>3]=n;p=r+p;O[f>>3]=p}z:{r=O[h+24>>3];t=O[h+8>>3];if(r>t){s=O[h+32>>3];u=O[h+16>>3];if(s>u)break z}a=J[f+4>>2]; -J[h+8>>2]=J[f>>2];J[h+12>>2]=a;a=J[f+28>>2];J[h+32>>2]=J[f+24>>2];J[h+36>>2]=a;a=J[f+20>>2];J[h+24>>2]=J[f+16>>2];J[h+28>>2]=a;a=J[f+12>>2];J[h+16>>2]=J[f+8>>2];J[h+20>>2]=a;break v}if(!(j>p)|!(i>n))break v;if(p>3]=p;if(j>r)O[h+24>>3]=j;if(n>3]=n;if(!(i>s))break v;O[h+32>>3]=i;break v}J[h+56>>2]=J[h+52>>2]+1}xb=f- -64|0}H[h+4196|0]=1;break k}f=h+48|0;v=xb-16|0;xb=v;A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:switch(g-1|0){default:switch(g- -255|0){case 38:break H;case 37:break I;case 36:break J;case 35:break K;case 0:break ba;default:break G}case 10:a=J[f+4>>2];if(a>>>0>2])J[f+8>>2]=a+1;a=f+4164|0;b=J[f+4168>>2];da:{if(b){b=b-1|0;J[f+4168>>2]=b;a=(a+P(b,20)|0)+8|0;break da}H[a|0]=1;J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480}b=J[a+4>>2];J[f+4128>>2]=J[a>>2];J[f+4132>>2]=b;J[f+4144>>2]=J[a+16>>2];d=J[a+12>>2];b=f+4136|0;J[b>>2]=J[a+8>>2];J[b+4>>2]=d;b=J[a>>2]; -d=J[a+4>>2];J[f+8>>2]=J[a+8>>2];J[f>>2]=b;J[f+4>>2]=d;break A;case 1:case 8:case 11:case 12:case 14:case 15:case 16:case 27:break G;case 30:break L;case 29:break M;case 26:break N;case 25:break O;case 24:break P;case 23:break Q;case 7:break R;case 6:break S;case 5:break T;case 4:break U;case 3:break V;case 21:break W;case 20:break X;case 18:case 19:break Y;case 2:case 22:break Z;case 0:case 17:break _;case 28:break $;case 9:break aa;case 13:break ca}if(!K[f+4408|0]){if(H[f+20|0]&1){H[f+4409|0]=1; -a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}J[f+4412>>2]=0;H[f+4148|0]=1;J[f+20>>2]=0;break A}a=J[f+4>>2];b=J[f+8>>2];if(a>>>0>>0)break A;d=f+16|0;ea:{if(a>>>0<=b>>>0){b=a+1|0;a=169776;break ea}a=J[f>>2]+b|0}a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);g=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=J[f+20>>2];fa:{if(a>>>0<=512){J[f+20>>2]=a+1;a=(d+(a<<3)|0)+8|0;break fa}H[d|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480}O[a>>3]=+(g|0)*1.52587890625E-5;J[f+8>>2]= -b+4;break A}a=f+16|0;ga:{b=J[f+20>>2];ha:{if(b){b=b-1|0;J[f+20>>2]=b;i=O[(a+(b<<3)|0)+8>>3];break ha}H[a|0]=1;b=J[42445];a=J[42444];J[194120]=a;J[194121]=b;x(0,a|0);x(1,b|0);i=+z()}ia:{if(R(i)<2147483648){a=~~i;break ia}a=-2147483648}d=a+J[f+4380>>2]|0;ja:{if((d|0)<0)break ja;a=J[f+4384>>2];if(!a)break ja;a=K[a|0]|K[a+1|0]<<8;if(d>>>0>=((a<<8|a>>>8)&65535)>>>0)break ja;a=J[f+4168>>2];if(a>>>0<10)break ga}J[f+8>>2]=J[f+4>>2]+1;break A}m=J[f+4>>2];b=J[f>>2];J[f+4128>>2]=b;J[f+4132>>2]=m;J[f+4168>>2]= -a+1;g=f+4136|0;J[g>>2]=J[f+8>>2];a=f+P(a,20)|0;k=f+4144|0;J[a+4188>>2]=J[k>>2];e=a+4172|0;J[e>>2]=b;J[e+4>>2]=m;b=J[g+4>>2];a=a+4180|0;J[a>>2]=J[g>>2];J[a+4>>2]=b;m=f+4128|0;a=0;b=0;e=J[f+4384>>2];ka:{if(!e)break ka;l=K[e|0]|K[e+1|0]<<8;if(d>>>0>=((l<<8|l>>>8)&65535)>>>0)break ka;mg(v,e,d);a=J[v>>2];b=J[v+4>>2]}J[f+4128>>2]=a;J[f+4132>>2]=b;J[k>>2]=d;J[g>>2]=0;J[g+4>>2]=2;J[f+8>>2]=J[m+8>>2];a=J[m+4>>2];J[f>>2]=J[m>>2];J[f+4>>2]=a;break A}a=f+16|0;la:{b=J[f+20>>2];ma:{if(b){b=b-1|0;J[f+20>>2]=b;i= -O[(a+(b<<3)|0)+8>>3];break ma}H[a|0]=1;b=J[42445];a=J[42444];J[194120]=a;J[194121]=b;x(0,a|0);x(1,b|0);i=+z()}na:{if(R(i)<2147483648){a=~~i;break na}a=-2147483648}d=a+J[f+4372>>2]|0;oa:{if((d|0)<0)break oa;a=J[f+4376>>2];if(!a)break oa;a=K[a|0]|K[a+1|0]<<8;if(d>>>0>=((a<<8|a>>>8)&65535)>>>0)break oa;a=J[f+4168>>2];if(a>>>0<10)break la}J[f+8>>2]=J[f+4>>2]+1;break A}m=J[f+4>>2];b=J[f>>2];J[f+4128>>2]=b;J[f+4132>>2]=m;J[f+4168>>2]=a+1;g=f+4136|0;J[g>>2]=J[f+8>>2];a=f+P(a,20)|0;k=f+4144|0;J[a+4188>>2]= -J[k>>2];e=a+4172|0;J[e>>2]=b;J[e+4>>2]=m;b=J[g+4>>2];a=a+4180|0;J[a>>2]=J[g>>2];J[a+4>>2]=b;m=f+4128|0;a=0;b=0;e=J[f+4376>>2];pa:{if(!e)break pa;l=K[e|0]|K[e+1|0]<<8;if(d>>>0>=((l<<8|l>>>8)&65535)>>>0)break pa;mg(v,e,d);a=J[v>>2];b=J[v+4>>2]}J[f+4128>>2]=a;J[f+4132>>2]=b;J[k>>2]=d;J[g>>2]=0;J[g+4>>2]=1;J[f+8>>2]=J[m+8>>2];a=J[m+4>>2];J[f>>2]=J[m>>2];J[f+4>>2]=a;break A}if(K[f+4408|0]|g>>>0>18)break B;if(1<>2];b=d>>>0>1;break C}qa:{if(K[f+4408|0]|g>>> -0>23)break qa;ra:{sa:{a=1<>2];a=d>>>0>2;break ra}d=J[f+20>>2];a=d&1;break ra}d=J[f+20>>2];a=d>>>0>1}if(!(!a|!d)){H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}J[f+4412>>2]=0;a=J[f+20>>2];J[f+20>>2]=0;J[f+4156>>2]=J[f+4156>>2]+(a>>>1|0);break A}if(!K[f+4408|0]){if(H[f+20|0]&1){J[f+4412>>2]=1;H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}ta:{if(K[f+4150|0]){b= -J[f+4160>>2];break ta}H[f+4150|0]=1;a=J[f+4156>>2]+(J[f+20>>2]>>>1|0)|0;J[f+4156>>2]=a;b=(a+J[f+4152>>2]|0)+7>>>3|0;J[f+4160>>2]=b}a=J[f+8>>2]+b|0;if(a>>>0>M[f+4>>2])break A;J[f+4412>>2]=0;J[f+8>>2]=a;J[f+20>>2]=0;break A}a=J[f+20>>2];if(!K[f+4408|0]){if(a>>>0>=3){J[f+4412>>2]=1;H[f+4409|0]=1;b=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=b}H[f+4408|0]=1}d=f+16|0;j=O[f+4400>>3];p=O[f+4392>>3];if(!a){g=776480;break E}b=a-1|0;J[f+20>>2]=b;g=(d+(b<<3)|0)+8|0;if(!b)break E;a=a-2|0;b=a>>>1|0;i=O[(d+ -(a<<3)|0)+8>>3];break D}a=J[f+20>>2];if(!K[f+4408|0]){if(a>>>0>=2){J[f+4412>>2]=1;H[f+4409|0]=1;b=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=b}H[f+4408|0]=1}d=f+16|0;j=O[f+4400>>3];p=O[f+4392>>3];ua:{if(a){a=a-1|0;b=a>>>1|0;i=O[(d+(a<<3)|0)+8>>3];break ua}H[d|0]=1;b=0;d=J[42445];a=J[42444];J[194120]=a;J[194121]=d;x(0,a|0);x(1,d|0);i=+z()}H[h|0]=0;O[f+4400>>3]=j;O[f+4392>>3]=p+i;if(!K[f+4149|0]){if(!K[f+4150|0]){H[f+4150|0]=1;a=J[f+4156>>2]+b|0;J[f+4156>>2]=a;J[f+4160>>2]=(a+J[f+4152>>2]|0)+7>>> -3}H[f+4149|0]=1}J[f+20>>2]=0;J[f+4412>>2]=0;break A}a=J[f+20>>2];if(!K[f+4408|0]){if(a>>>0>=2){J[f+4412>>2]=1;H[f+4409|0]=1;b=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=b}H[f+4408|0]=1}d=f+16|0;j=O[f+4400>>3];p=O[f+4392>>3];va:{if(a){a=a-1|0;b=a>>>1|0;i=O[(d+(a<<3)|0)+8>>3];break va}H[d|0]=1;b=0;d=J[42445];a=J[42444];J[194120]=a;J[194121]=d;x(0,a|0);x(1,d|0);i=+z()}H[h|0]=0;O[f+4400>>3]=j+i;O[f+4392>>3]=p;if(!K[f+4149|0]){if(!K[f+4150|0]){H[f+4150|0]=1;a=J[f+4156>>2]+b|0;J[f+4156>>2]=a;J[f+4160>> -2]=(a+J[f+4152>>2]|0)+7>>>3}H[f+4149|0]=1}J[f+20>>2]=0;J[f+4412>>2]=0;break A}vI(f,h);J[f+20>>2]=0;J[f+4412>>2]=0;break A}d=0;b=0;m=f+16|0;e=J[f+20>>2];if(e>>>0>=2){b=J[42445];k=b;a=J[42444];x(0,a|0);x(1,b|0);s=+z();g=2;while(1){b=g;wa:{if(d>>>0>=e>>>0){H[m|0]=1;J[194120]=a;J[194121]=k;i=s;break wa}i=O[(m+(d<<3)|0)+8>>3]}u=O[f+4400>>3];n=O[f+4392>>3]+i;xa:{if(K[h|0])break xa;H[h|0]=1;i=O[f+4392>>3];if(i>3]){O[h+8>>3]=i;i=O[f+4392>>3]}if(O[h+24>>3]>3]=i;i=O[f+4400>>3];if(i> -3]){O[h+16>>3]=i;i=O[f+4400>>3]}if(!(O[h+32>>3]>3]=i}O[f+4400>>3]=u;O[f+4392>>3]=n;i=n;j=O[h+8>>3];if(i>3]=i;j=i;i=O[f+4392>>3]}p=O[h+24>>3];if(p>3]=i;p=i}r=O[h+16>>3];i=O[f+4400>>3];if(r>i){O[h+16>>3]=i;r=i;i=O[f+4400>>3]}t=O[h+32>>3];if(i>t){O[h+32>>3]=i;t=i}d=d|1;ya:{if(d>>>0>=e>>>0){H[m|0]=1;J[194120]=a;J[194121]=k;i=s;break ya}i=O[(m+(d<<3)|0)+8>>3]}u=u+i;za:{if(K[h|0])break za;H[h|0]=1;i=O[f+4392>>3];if(j>i){O[h+8>>3]=i;i=O[f+4392>>3]}if(i>p)O[h+24>> -3]=i;i=O[f+4400>>3];if(r>i){O[h+16>>3]=i;i=O[f+4400>>3]}if(!(i>t))break za;O[h+32>>3]=i}O[f+4400>>3]=u;O[f+4392>>3]=n;if(O[h+8>>3]>n){O[h+8>>3]=n;n=O[f+4392>>3]}if(O[h+24>>3]>3]=n;n=O[f+4400>>3];if(n>3]){O[h+16>>3]=n;n=O[f+4400>>3]}if(O[h+32>>3]>3]=n;d=b;g=b+2|0;if(e>>>0>=g>>>0)continue;break}}Aa:{if(b>>>0>=e>>>0)break Aa;n=O[f+4392>>3]+O[(m+(b<<3)|0)+8>>3];j=O[f+4400>>3];Ba:{if(K[h|0])break Ba;H[h|0]=1;i=O[f+4392>>3];if(i>3]){O[h+8>>3]=i;i=O[f+4392>>3]}if(O[h+24>> -3]>3]=i;i=O[f+4400>>3];if(i>3]){O[h+16>>3]=i;i=O[f+4400>>3]}if(!(O[h+32>>3]>3]=i}O[f+4400>>3]=j;O[f+4392>>3]=n;if(O[h+8>>3]>n){O[h+8>>3]=n;n=O[f+4392>>3]}if(O[h+24>>3]>3]=n;n=O[f+4400>>3];if(n>3]){O[h+16>>3]=n;n=O[f+4400>>3]}if(!(O[h+32>>3]>3]=n}J[f+20>>2]=0;J[f+4412>>2]=0;break A}d=0;b=0;m=f+16|0;e=J[f+20>>2];if(e>>>0>=2){b=J[42445];k=b;a=J[42444];x(0,a|0);x(1,b|0);u=+z();g=2;while(1){b=g;Ca:{if(d>>>0>=e>>>0){H[m|0]=1;J[194120]= -a;J[194121]=k;i=u;break Ca}i=O[(m+(d<<3)|0)+8>>3]}s=O[f+4392>>3];y=O[f+4400>>3]+i;Da:{if(K[h|0])break Da;H[h|0]=1;i=O[f+4392>>3];if(i>3]){O[h+8>>3]=i;i=O[f+4392>>3]}if(O[h+24>>3]>3]=i;i=O[f+4400>>3];if(i>3]){O[h+16>>3]=i;i=O[f+4400>>3]}if(!(O[h+32>>3]>3]=i}O[f+4400>>3]=y;O[f+4392>>3]=s;i=s;j=O[h+8>>3];if(i>3]=i;j=i;i=O[f+4392>>3]}p=O[h+24>>3];if(p>3]=i;p=i}r=O[h+16>>3];i=O[f+4400>>3];if(r>i){O[h+16>>3]=i;r=i;i=O[f+4400>>3]}t=O[h+32>> -3];if(i>t){O[h+32>>3]=i;t=i}d=d|1;Ea:{if(d>>>0>=e>>>0){H[m|0]=1;J[194120]=a;J[194121]=k;i=u;break Ea}i=O[(m+(d<<3)|0)+8>>3]}n=s+i;Fa:{if(K[h|0])break Fa;H[h|0]=1;i=O[f+4392>>3];if(j>i){O[h+8>>3]=i;i=O[f+4392>>3]}if(i>p)O[h+24>>3]=i;i=O[f+4400>>3];if(r>i){O[h+16>>3]=i;i=O[f+4400>>3]}if(!(i>t))break Fa;O[h+32>>3]=i}O[f+4400>>3]=y;O[f+4392>>3]=n;if(O[h+8>>3]>n){O[h+8>>3]=n;n=O[f+4392>>3]}if(O[h+24>>3]>3]=n;n=O[f+4400>>3];if(n>3]){O[h+16>>3]=n;n=O[f+4400>>3]}if(O[h+32>>3]> -3]=n;d=b;g=b+2|0;if(e>>>0>=g>>>0)continue;break}}Ga:{if(b>>>0>=e>>>0)break Ga;j=O[f+4400>>3]+O[(m+(b<<3)|0)+8>>3];n=O[f+4392>>3];Ha:{if(K[h|0])break Ha;H[h|0]=1;i=O[f+4392>>3];if(i>3]){O[h+8>>3]=i;i=O[f+4392>>3]}if(O[h+24>>3]>3]=i;i=O[f+4400>>3];if(i>3]){O[h+16>>3]=i;i=O[f+4400>>3]}if(!(O[h+32>>3]>3]=i}O[f+4400>>3]=j;O[f+4392>>3]=n;if(O[h+8>>3]>n){O[h+8>>3]=n;n=O[f+4392>>3]}if(O[h+24>>3]>3]=n;n=O[f+4400>>3];if(n>3]){O[h+16>>3]=n;n=O[f+ -4400>>3]}if(!(O[h+32>>3]>3]=n}J[f+20>>2]=0;J[f+4412>>2]=0;break A}b=0;e=xb-48|0;xb=e;k=J[f+20>>2];if(k>>>0>=6){l=f+16|0;m=f+4392|0;a=J[42445];o=a;d=J[42444];x(0,d|0);x(1,a|0);i=+z();a=6;while(1){g=m;q=J[g+12>>2];J[e+40>>2]=J[g+8>>2];J[e+44>>2]=q;q=J[g+4>>2];J[e+32>>2]=J[g>>2];J[e+36>>2]=q;Ia:{if(b>>>0>=k>>>0){H[l|0]=1;J[194120]=d;J[194121]=o;g=776480;break Ia}g=(l+(b<<3)|0)+8|0}q=b|1;Ja:{if(q>>>0>=k>>>0){H[l|0]=1;J[194120]=d;J[194121]=o;j=i;break Ja}j=O[(l+(q<<3)|0)+8>>3]}p=O[g>> -3];O[e+40>>3]=O[e+40>>3]+j;O[e+32>>3]=p+O[e+32>>3];g=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=g;g=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=g;g=b+2|0;Ka:{if(g>>>0>=k>>>0){H[l|0]=1;J[194120]=d;J[194121]=o;g=776480;break Ka}g=(l+(g<<3)|0)+8|0}q=b+3|0;La:{if(q>>>0>=k>>>0){H[l|0]=1;J[194120]=d;J[194121]=o;j=i;break La}j=O[(l+(q<<3)|0)+8>>3]}p=O[g>>3];O[e+24>>3]=O[e+24>>3]+j;O[e+16>>3]=p+O[e+16>>3];g=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=g;g=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=g;g=b+4|0; -Ma:{if(g>>>0>=k>>>0){H[l|0]=1;J[194120]=d;J[194121]=o;g=776480;break Ma}g=(l+(g<<3)|0)+8|0}b=b+5|0;Na:{if(b>>>0>=k>>>0){H[l|0]=1;J[194120]=d;J[194121]=o;j=i;break Na}j=O[(l+(b<<3)|0)+8>>3]}p=O[g>>3];O[e+8>>3]=O[e+8>>3]+j;O[e>>3]=p+O[e>>3];Vc(f,h,e+32|0,e+16|0,e);b=a;a=a+6|0;k=J[f+20>>2];if(a>>>0<=k>>>0)continue;break}}xb=e+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}b=0;e=xb-48|0;xb=e;a=J[f+20>>2];Oa:{if(a>>>0<8)break Oa;k=f+16|0;m=f+4392|0;q=a-2|0;d=J[42445];l=d;a=J[42444];x(0,a|0);x(1,d|0);i=+z(); -d=6;while(1){g=m;o=J[g+12>>2];J[e+40>>2]=J[g+8>>2];J[e+44>>2]=o;o=J[g+4>>2];J[e+32>>2]=J[g>>2];J[e+36>>2]=o;o=J[f+20>>2];Pa:{if(o>>>0<=b>>>0){H[k|0]=1;J[194120]=a;J[194121]=l;g=776480;break Pa}g=(k+(b<<3)|0)+8|0}B=b|1;Qa:{if(B>>>0>=o>>>0){H[k|0]=1;J[194120]=a;J[194121]=l;j=i;break Qa}j=O[(k+(B<<3)|0)+8>>3]}p=O[g>>3];O[e+40>>3]=O[e+40>>3]+j;O[e+32>>3]=p+O[e+32>>3];g=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=g;g=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=g;g=b+2|0;Ra:{if(g>>>0>=o>>>0){H[k|0]=1;J[194120]= -a;J[194121]=l;g=776480;break Ra}g=(k+(g<<3)|0)+8|0}B=b+3|0;Sa:{if(B>>>0>=o>>>0){H[k|0]=1;J[194120]=a;J[194121]=l;j=i;break Sa}j=O[(k+(B<<3)|0)+8>>3]}p=O[g>>3];O[e+24>>3]=O[e+24>>3]+j;O[e+16>>3]=p+O[e+16>>3];g=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=g;g=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=g;g=b+4|0;Ta:{if(g>>>0>=o>>>0){H[k|0]=1;J[194120]=a;J[194121]=l;g=776480;break Ta}g=(k+(g<<3)|0)+8|0}b=b+5|0;Ua:{if(b>>>0>=o>>>0){H[k|0]=1;J[194120]=a;J[194121]=l;j=i;break Ua}j=O[(k+(b<<3)|0)+8>>3]}p=O[g>> -3];O[e+8>>3]=O[e+8>>3]+j;O[e>>3]=p+O[e>>3];Vc(f,h,e+32|0,e+16|0,e);b=d;d=b+6|0;if(q>>>0>=d>>>0)continue;break}d=f+4400|0;g=J[f+20>>2];Va:{if(g>>>0<=b>>>0){H[k|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break Va}a=(k+(b<<3)|0)+8|0}j=O[f+4392>>3];s=O[d>>3];b=b|1;Wa:{if(b>>>0>=g>>>0){H[k|0]=1;d=J[42445];b=J[42444];J[194120]=b;J[194121]=d;x(0,b|0);x(1,d|0);i=+z();break Wa}i=O[(k+(b<<3)|0)+8>>3]}p=s+i;i=j+O[a>>3];Xa:{if(K[h|0])break Xa;H[h|0]=1;n=O[f+4392>>3];if(n>3]){O[h+8>>3]=n;n= -O[f+4392>>3]}if(O[h+24>>3]>3]=n;n=O[f+4400>>3];if(n>3]){O[h+16>>3]=n;n=O[f+4400>>3]}if(!(O[h+32>>3]>3]=n}O[f+4400>>3]=p;O[f+4392>>3]=i;if(O[h+8>>3]>i){O[h+8>>3]=i;i=O[f+4392>>3]}if(O[h+24>>3]>3]=i;i=O[f+4400>>3];if(i>3]){O[h+16>>3]=i;i=O[f+4400>>3]}if(!(O[h+32>>3]>3]=i}xb=e+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}d=0;m=xb-48|0;xb=m;k=J[f+20>>2];if(k>>>0>=8){e=f+16|0;o=k-6|0;a=J[42445];l=a;b=J[42444];x(0,b|0);x(1,a|0);j=+z(); -a=2;while(1){Ya:{if(d>>>0>=k>>>0){H[e|0]=1;J[194120]=b;J[194121]=l;g=776480;break Ya}g=(e+(d<<3)|0)+8|0}d=d|1;Za:{if(d>>>0>=k>>>0){H[e|0]=1;J[194120]=b;J[194121]=l;i=j;break Za}i=O[(e+(d<<3)|0)+8>>3]}p=O[f+4400>>3]+i;i=O[f+4392>>3]+O[g>>3];_a:{if(K[h|0])break _a;H[h|0]=1;n=O[f+4392>>3];if(n>3]){O[h+8>>3]=n;n=O[f+4392>>3]}if(O[h+24>>3]>3]=n;n=O[f+4400>>3];if(n>3]){O[h+16>>3]=n;n=O[f+4400>>3]}if(!(O[h+32>>3]>3]=n}O[f+4400>>3]=p;O[f+4392>>3]=i;if(O[h+8>>3]> -i){O[h+8>>3]=i;i=O[f+4392>>3]}if(O[h+24>>3]>3]=i;i=O[f+4400>>3];if(i>3]){O[h+16>>3]=i;i=O[f+4400>>3]}if(O[h+32>>3]>3]=i;d=a;a=a+2|0;if(o>>>0>=a>>>0)continue;break}b=f+4400|0;g=J[b+4>>2];J[m+40>>2]=J[b>>2];J[m+44>>2]=g;b=J[f+4396>>2];J[m+32>>2]=J[f+4392>>2];J[m+36>>2]=b;$a:{if(d>>>0>=k>>>0){H[e|0]=1;b=J[42445];J[194120]=J[42444];J[194121]=b;b=776480;break $a}b=(e+(d<<3)|0)+8|0}g=d|1;ab:{if(g>>>0>=k>>>0){H[e|0]=1;l=J[42445];g=J[42444];J[194120]=g;J[194121]=l;x(0,g|0);x(1, -l|0);i=+z();break ab}i=O[(e+(g<<3)|0)+8>>3]}j=O[b>>3];O[m+40>>3]=O[m+40>>3]+i;O[m+32>>3]=j+O[m+32>>3];b=J[m+44>>2];J[m+24>>2]=J[m+40>>2];J[m+28>>2]=b;b=J[m+36>>2];J[m+16>>2]=J[m+32>>2];J[m+20>>2]=b;bb:{if(a>>>0>=k>>>0){H[e|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break bb}a=(e+(a<<3)|0)+8|0}b=d+3|0;cb:{if(b>>>0>=k>>>0){H[e|0]=1;g=J[42445];b=J[42444];J[194120]=b;J[194121]=g;x(0,b|0);x(1,g|0);i=+z();break cb}i=O[(e+(b<<3)|0)+8>>3]}j=O[a>>3];O[m+24>>3]=O[m+24>>3]+i;O[m+16>>3]=j+O[m+16>> -3];a=J[m+28>>2];J[m+8>>2]=J[m+24>>2];J[m+12>>2]=a;a=J[m+20>>2];J[m>>2]=J[m+16>>2];J[m+4>>2]=a;a=d+4|0;db:{if(a>>>0>=k>>>0){H[e|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break db}a=(e+(a<<3)|0)+8|0}b=d+5|0;eb:{if(b>>>0>=k>>>0){H[e|0]=1;d=J[42445];b=J[42444];J[194120]=b;J[194121]=d;x(0,b|0);x(1,d|0);i=+z();break eb}i=O[(e+(b<<3)|0)+8>>3]}j=O[a>>3];O[m+8>>3]=O[m+8>>3]+i;O[m>>3]=j+O[m>>3];Vc(f,h,m+32|0,m+16|0,m)}xb=m+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}b=0;e=xb-48|0;xb=e;a=f+4400|0; -d=J[a+4>>2];J[e+40>>2]=J[a>>2];J[e+44>>2]=d;a=J[f+4396>>2];J[e+32>>2]=J[f+4392>>2];J[e+36>>2]=a;k=J[f+20>>2];if(k&1){O[e+32>>3]=O[e+32>>3]+O[f+24>>3];b=1}d=b|4;if(k>>>0>=d>>>0){l=f+16|0;m=f+4392|0;g=J[42445];o=g;a=J[42444];x(0,a|0);x(1,g|0);i=+z();while(1){fb:{if(b>>>0>=k>>>0){H[l|0]=1;J[194120]=a;J[194121]=o;j=i;break fb}j=O[(l+(b<<3)|0)+8>>3]}O[e+40>>3]=O[e+40>>3]+j;g=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=g;g=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=g;g=b+1|0;gb:{if(g>>>0>=k>>>0){H[l|0]= -1;J[194120]=a;J[194121]=o;g=776480;break gb}g=(l+(g<<3)|0)+8|0}q=b+2|0;hb:{if(q>>>0>=k>>>0){H[l|0]=1;J[194120]=a;J[194121]=o;j=i;break hb}j=O[(l+(q<<3)|0)+8>>3]}p=O[g>>3];O[e+24>>3]=O[e+24>>3]+j;O[e+16>>3]=p+O[e+16>>3];g=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=g;g=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=g;b=b+3|0;ib:{if(b>>>0>=k>>>0){H[l|0]=1;J[194120]=a;J[194121]=o;j=i;break ib}j=O[(l+(b<<3)|0)+8>>3]}O[e+8>>3]=O[e+8>>3]+j;Vc(f,h,e+32|0,e+16|0,e);b=m;g=J[b+12>>2];J[e+40>>2]=J[b+8>>2];J[e+44>>2]= -g;g=J[b+4>>2];J[e+32>>2]=J[b>>2];J[e+36>>2]=g;b=d;d=b+4|0;k=J[f+20>>2];if(d>>>0<=k>>>0)continue;break}}xb=e+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}b=0;e=xb-48|0;xb=e;a=f+4400|0;d=J[a+4>>2];J[e+40>>2]=J[a>>2];J[e+44>>2]=d;a=J[f+4396>>2];J[e+32>>2]=J[f+4392>>2];J[e+36>>2]=a;k=J[f+20>>2];if(k&1){O[e+40>>3]=O[e+40>>3]+O[f+24>>3];b=1}d=b|4;if(k>>>0>=d>>>0){l=f+16|0;m=f+4392|0;g=J[42445];o=g;a=J[42444];x(0,a|0);x(1,g|0);i=+z();while(1){jb:{if(b>>>0>=k>>>0){H[l|0]=1;J[194120]=a;J[194121]=o;j=i;break jb}j= -O[(l+(b<<3)|0)+8>>3]}O[e+32>>3]=O[e+32>>3]+j;g=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=g;g=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=g;g=b+1|0;kb:{if(g>>>0>=k>>>0){H[l|0]=1;J[194120]=a;J[194121]=o;g=776480;break kb}g=(l+(g<<3)|0)+8|0}q=b+2|0;lb:{if(q>>>0>=k>>>0){H[l|0]=1;J[194120]=a;J[194121]=o;j=i;break lb}j=O[(l+(q<<3)|0)+8>>3]}p=O[g>>3];O[e+24>>3]=O[e+24>>3]+j;O[e+16>>3]=p+O[e+16>>3];g=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=g;g=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=g;b=b+3|0;mb:{if(b>>> -0>=k>>>0){H[l|0]=1;J[194120]=a;J[194121]=o;j=i;break mb}j=O[(l+(b<<3)|0)+8>>3]}O[e>>3]=O[e>>3]+j;Vc(f,h,e+32|0,e+16|0,e);b=m;g=J[b+12>>2];J[e+40>>2]=J[b+8>>2];J[e+44>>2]=g;g=J[b+4>>2];J[e+32>>2]=J[b>>2];J[e+36>>2]=g;b=d;d=b+4|0;k=J[f+20>>2];if(d>>>0<=k>>>0)continue;break}}xb=e+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}b=0;e=xb-48|0;xb=e;k=f+16|0;a=4;l=J[f+20>>2];nb:{if(!(l&4)){if(l>>>0<8)break nb;m=f+4392|0;a=J[42445];o=a;g=J[42444];x(0,g|0);x(1,a|0);i=+z();a=8;while(1){d=b;b=a;a=m;q=J[a+12>>2];J[e+ -40>>2]=J[a+8>>2];J[e+44>>2]=q;q=J[a+4>>2];J[e+32>>2]=J[a>>2];J[e+36>>2]=q;ob:{if(d>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break ob}j=O[(k+(d<<3)|0)+8>>3]}O[e+40>>3]=O[e+40>>3]+j;a=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=a;a=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=a;a=d|1;pb:{if(a>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;a=776480;break pb}a=(k+(a<<3)|0)+8|0}q=d|2;qb:{if(q>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break qb}j=O[(k+(q<<3)|0)+8>>3]}p=O[a>>3];O[e+24>>3]=O[e+ -24>>3]+j;a=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=a;O[e+16>>3]=p+O[e+16>>3];a=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=a;a=d|3;rb:{if(a>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break rb}j=O[(k+(a<<3)|0)+8>>3]}O[e>>3]=O[e>>3]+j;Vc(f,h,e+32|0,e+16|0,e);a=J[e+12>>2];J[e+40>>2]=J[e+8>>2];J[e+44>>2]=a;a=J[e+4>>2];J[e+32>>2]=J[e>>2];J[e+36>>2]=a;l=J[f+20>>2];a=d|4;sb:{if(l>>>0<=a>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break sb}j=O[(k+(a<<3)|0)+8>>3]}a=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+ -28>>2]=a;O[e+32>>3]=O[e+32>>3]+j;a=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=a;a=d|5;tb:{if(a>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;a=776480;break tb}a=(k+(a<<3)|0)+8|0}q=d|6;ub:{if(q>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break ub}j=O[(k+(q<<3)|0)+8>>3]}p=O[a>>3];O[e+24>>3]=O[e+24>>3]+j;a=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=a;O[e+16>>3]=p+O[e+16>>3];a=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=a;a=d|7;vb:{if(a>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break vb}j=O[(k+ -(a<<3)|0)+8>>3]}O[e+8>>3]=O[e+8>>3]+j;if(!(!(l&1)|l-d>>>0>15)){wb:{if(b>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break wb}j=O[(k+(b<<3)|0)+8>>3]}O[e>>3]=O[e>>3]+j}Vc(f,h,e+32|0,e+16|0,e);a=b+8|0;l=J[f+20>>2];if(a>>>0<=l>>>0)continue;break}break nb}b=f+4400|0;d=J[b+4>>2];J[e+40>>2]=J[b>>2];J[e+44>>2]=d;b=J[f+4396>>2];d=J[f+4392>>2];J[e+32>>2]=d;J[e+36>>2]=b;O[e+40>>3]=O[e+40>>3]+O[f+24>>3];g=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=g;J[e+16>>2]=d;J[e+20>>2]=b;i=O[f+32>>3];O[e+24>>3]=O[e+ -24>>3]+O[f+40>>3];O[e+16>>3]=i+O[e+16>>3];b=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=b;b=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=b;O[e>>3]=O[e>>3]+O[f+48>>3];g=12;if(l>>>0>=12){m=f+4392|0;a=J[42445];o=a;d=J[42444];x(0,d|0);x(1,a|0);i=+z();b=4;while(1){a=g;Vc(f,h,e+32|0,e+16|0,e);g=m;l=J[g+12>>2];J[e+40>>2]=J[g+8>>2];J[e+44>>2]=l;l=J[g+4>>2];J[e+32>>2]=J[g>>2];J[e+36>>2]=l;l=J[f+20>>2];xb:{if(l>>>0<=b>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break xb}j=O[(k+(b<<3)|0)+8>>3]}g=J[e+44>>2];J[e+24>> -2]=J[e+40>>2];J[e+28>>2]=g;O[e+32>>3]=O[e+32>>3]+j;g=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=g;g=b|1;yb:{if(g>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;g=776480;break yb}g=(k+(g<<3)|0)+8|0}q=b|2;zb:{if(q>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break zb}j=O[(k+(q<<3)|0)+8>>3]}p=O[g>>3];O[e+24>>3]=O[e+24>>3]+j;g=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=g;O[e+16>>3]=p+O[e+16>>3];g=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=g;g=b|3;Ab:{if(g>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o; -j=i;break Ab}j=O[(k+(g<<3)|0)+8>>3]}O[e+8>>3]=O[e+8>>3]+j;Vc(f,h,e+32|0,e+16|0,e);g=J[e+12>>2];J[e+40>>2]=J[e+8>>2];J[e+44>>2]=g;g=J[e+4>>2];J[e+32>>2]=J[e>>2];J[e+36>>2]=g;l=J[f+20>>2];g=b+4|0;Bb:{if(l>>>0<=g>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break Bb}j=O[(k+(g<<3)|0)+8>>3]}O[e+40>>3]=O[e+40>>3]+j;g=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=g;g=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=g;g=b+5|0;Cb:{if(g>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;g=776480;break Cb}g=(k+(g<<3)|0)+8| -0}q=b+6|0;Db:{if(q>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break Db}j=O[(k+(q<<3)|0)+8>>3]}p=O[g>>3];O[e+24>>3]=O[e+24>>3]+j;g=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=g;O[e+16>>3]=p+O[e+16>>3];g=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=g;b=b+7|0;Eb:{if(b>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break Eb}j=O[(k+(b<<3)|0)+8>>3]}O[e>>3]=O[e>>3]+j;b=a;g=a+8|0;if(l>>>0>=g>>>0)continue;break}}if(a>>>0>>0)O[e+8>>3]=O[e+8>>3]+O[(k+(a<<3)|0)+8>>3];Vc(f,h,e+32|0,e+16|0,e)}xb=e+48|0;J[f+ -20>>2]=0;J[f+4412>>2]=0;break A}b=0;e=xb-48|0;xb=e;k=f+16|0;a=4;l=J[f+20>>2];Fb:{if(!(l&4)){if(l>>>0<8)break Fb;m=f+4392|0;a=J[42445];o=a;g=J[42444];x(0,g|0);x(1,a|0);i=+z();a=8;while(1){d=b;b=a;a=m;q=J[a+12>>2];J[e+40>>2]=J[a+8>>2];J[e+44>>2]=q;q=J[a+4>>2];J[e+32>>2]=J[a>>2];J[e+36>>2]=q;Gb:{if(d>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break Gb}j=O[(k+(d<<3)|0)+8>>3]}a=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=a;O[e+32>>3]=O[e+32>>3]+j;a=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=a;a= -d|1;Hb:{if(a>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;a=776480;break Hb}a=(k+(a<<3)|0)+8|0}q=d|2;Ib:{if(q>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break Ib}j=O[(k+(q<<3)|0)+8>>3]}p=O[a>>3];O[e+24>>3]=O[e+24>>3]+j;a=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=a;O[e+16>>3]=p+O[e+16>>3];a=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=a;a=d|3;Jb:{if(a>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break Jb}j=O[(k+(a<<3)|0)+8>>3]}O[e+8>>3]=O[e+8>>3]+j;Vc(f,h,e+32|0,e+16|0,e);a=J[e+12>>2];J[e+40>> -2]=J[e+8>>2];J[e+44>>2]=a;a=J[e+4>>2];J[e+32>>2]=J[e>>2];J[e+36>>2]=a;l=J[f+20>>2];a=d|4;Kb:{if(l>>>0<=a>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break Kb}j=O[(k+(a<<3)|0)+8>>3]}O[e+40>>3]=O[e+40>>3]+j;a=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=a;a=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=a;a=d|5;Lb:{if(a>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;a=776480;break Lb}a=(k+(a<<3)|0)+8|0}q=d|6;Mb:{if(q>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break Mb}j=O[(k+(q<<3)|0)+8>>3]}p=O[a>>3]; -O[e+24>>3]=O[e+24>>3]+j;a=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=a;O[e+16>>3]=p+O[e+16>>3];a=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=a;a=d|7;Nb:{if(a>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break Nb}j=O[(k+(a<<3)|0)+8>>3]}O[e>>3]=O[e>>3]+j;if(!(!(l&1)|l-d>>>0>15)){Ob:{if(b>>>0>=l>>>0){H[k|0]=1;J[194120]=g;J[194121]=o;j=i;break Ob}j=O[(k+(b<<3)|0)+8>>3]}O[e+8>>3]=O[e+8>>3]+j}Vc(f,h,e+32|0,e+16|0,e);a=b+8|0;l=J[f+20>>2];if(a>>>0<=l>>>0)continue;break}break Fb}d=f+4400|0;b=J[d>>2];d=J[d+ -4>>2];J[e+40>>2]=b;J[e+44>>2]=d;g=J[f+4396>>2];J[e+32>>2]=J[f+4392>>2];J[e+36>>2]=g;O[e+32>>3]=O[e+32>>3]+O[f+24>>3];J[e+24>>2]=b;J[e+28>>2]=d;b=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=b;i=O[f+32>>3];O[e+24>>3]=O[e+24>>3]+O[f+40>>3];O[e+16>>3]=i+O[e+16>>3];b=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=b;b=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=b;O[e+8>>3]=O[e+8>>3]+O[f+48>>3];g=12;if(l>>>0>=12){m=f+4392|0;a=J[42445];o=a;d=J[42444];x(0,d|0);x(1,a|0);i=+z();b=4;while(1){a=g;Vc(f,h,e+32|0,e+16|0, -e);g=m;l=J[g+12>>2];J[e+40>>2]=J[g+8>>2];J[e+44>>2]=l;l=J[g+4>>2];J[e+32>>2]=J[g>>2];J[e+36>>2]=l;l=J[f+20>>2];Pb:{if(l>>>0<=b>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break Pb}j=O[(k+(b<<3)|0)+8>>3]}O[e+40>>3]=O[e+40>>3]+j;g=J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=g;g=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=g;g=b|1;Qb:{if(g>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;g=776480;break Qb}g=(k+(g<<3)|0)+8|0}q=b|2;Rb:{if(q>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break Rb}j=O[(k+(q<< -3)|0)+8>>3]}p=O[g>>3];O[e+24>>3]=O[e+24>>3]+j;g=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=g;O[e+16>>3]=p+O[e+16>>3];g=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=g;g=b|3;Sb:{if(g>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break Sb}j=O[(k+(g<<3)|0)+8>>3]}O[e>>3]=O[e>>3]+j;Vc(f,h,e+32|0,e+16|0,e);g=J[e+12>>2];J[e+40>>2]=J[e+8>>2];J[e+44>>2]=g;g=J[e+4>>2];J[e+32>>2]=J[e>>2];J[e+36>>2]=g;l=J[f+20>>2];g=b+4|0;Tb:{if(l>>>0<=g>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break Tb}j=O[(k+(g<<3)|0)+8>>3]}g= -J[e+44>>2];J[e+24>>2]=J[e+40>>2];J[e+28>>2]=g;O[e+32>>3]=O[e+32>>3]+j;g=J[e+36>>2];J[e+16>>2]=J[e+32>>2];J[e+20>>2]=g;g=b+5|0;Ub:{if(g>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;g=776480;break Ub}g=(k+(g<<3)|0)+8|0}q=b+6|0;Vb:{if(q>>>0>=l>>>0){H[k|0]=1;J[194120]=d;J[194121]=o;j=i;break Vb}j=O[(k+(q<<3)|0)+8>>3]}p=O[g>>3];O[e+24>>3]=O[e+24>>3]+j;g=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=g;O[e+16>>3]=p+O[e+16>>3];g=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=g;b=b+7|0;Wb:{if(b>>>0>=l>>>0){H[k|0]=1; -J[194120]=d;J[194121]=o;j=i;break Wb}j=O[(k+(b<<3)|0)+8>>3]}O[e+8>>3]=O[e+8>>3]+j;b=a;g=a+8|0;if(l>>>0>=g>>>0)continue;break}}if(a>>>0>>0)O[e>>3]=O[e>>3]+O[(k+(a<<3)|0)+8>>3];Vc(f,h,e+32|0,e+16|0,e)}xb=e+48|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}a=xb-96|0;xb=a;Xb:{if(J[f+20>>2]==7){d=f+4400|0;b=J[d>>2];d=J[d+4>>2];J[a+88>>2]=b;J[a+92>>2]=d;g=J[f+4396>>2];J[a+80>>2]=J[f+4392>>2];J[a+84>>2]=g;O[a+80>>3]=O[a+80>>3]+O[f+24>>3];J[a+72>>2]=b;J[a+76>>2]=d;b=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]= -b;i=O[f+32>>3];O[a+72>>3]=O[a+72>>3]+O[f+40>>3];O[a+64>>3]=i+O[a+64>>3];d=J[a+76>>2];b=J[a+72>>2];J[a+56>>2]=b;J[a+60>>2]=d;g=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=g;O[a+48>>3]=O[a+48>>3]+O[f+48>>3];J[a+40>>2]=b;J[a+44>>2]=d;g=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=g;O[a+32>>3]=O[a+32>>3]+O[f+56>>3];J[a+24>>2]=b;J[a+28>>2]=d;b=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=b;O[a+16>>3]=O[a+16>>3]+O[f- -64>>3];d=J[a+92>>2];b=J[a+88>>2];J[a+24>>2]=b;J[a+28>>2]=d;J[a+8>>2]=b;J[a+12>>2]=d;b=J[a+ -20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=b;O[a>>3]=O[a>>3]+O[f+72>>3];Vc(f,h,a+80|0,a- -64|0,a+48|0);Vc(f,h,a+32|0,a+16|0,a);break Xb}J[f+8>>2]=J[f+4>>2]+1}xb=a+96|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}a=xb-96|0;xb=a;Yb:{if(J[f+20>>2]==13){b=f+4400|0;d=J[b+4>>2];J[a+88>>2]=J[b>>2];J[a+92>>2]=d;b=J[f+4396>>2];J[a+80>>2]=J[f+4392>>2];J[a+84>>2]=b;i=O[f+24>>3];O[a+88>>3]=O[a+88>>3]+O[f+32>>3];O[a+80>>3]=i+O[a+80>>3];b=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=b;b=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>> -2]=b;i=O[f+40>>3];O[a+72>>3]=O[a+72>>3]+O[f+48>>3];O[a+64>>3]=i+O[a+64>>3];b=J[a+76>>2];J[a+56>>2]=J[a+72>>2];J[a+60>>2]=b;b=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=b;i=O[f+56>>3];O[a+56>>3]=O[a+56>>3]+O[f- -64>>3];O[a+48>>3]=i+O[a+48>>3];b=J[a+60>>2];J[a+40>>2]=J[a+56>>2];J[a+44>>2]=b;b=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=b;i=O[f+72>>3];O[a+40>>3]=O[a+40>>3]+O[f+80>>3];O[a+32>>3]=i+O[a+32>>3];b=J[a+44>>2];J[a+24>>2]=J[a+40>>2];J[a+28>>2]=b;b=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]= -b;i=O[f+88>>3];O[a+24>>3]=O[a+24>>3]+O[f+96>>3];O[a+16>>3]=i+O[a+16>>3];b=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=b;b=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=b;i=O[f+104>>3];O[a+8>>3]=O[a+8>>3]+O[f+112>>3];O[a>>3]=i+O[a>>3];Vc(f,h,a+80|0,a- -64|0,a+48|0);Vc(f,h,a+32|0,a+16|0,a);break Yb}J[f+8>>2]=J[f+4>>2]+1}xb=a+96|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}a=xb-96|0;xb=a;Zb:{if(J[f+20>>2]==9){d=f+4400|0;b=d;g=J[b+4>>2];J[a+88>>2]=J[b>>2];J[a+92>>2]=g;b=J[f+4396>>2];J[a+80>>2]=J[f+4392>>2];J[a+84>> -2]=b;i=O[f+24>>3];O[a+88>>3]=O[a+88>>3]+O[f+32>>3];O[a+80>>3]=i+O[a+80>>3];b=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=b;b=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=b;i=O[f+40>>3];O[a+72>>3]=O[a+72>>3]+O[f+48>>3];O[a+64>>3]=i+O[a+64>>3];g=J[a+76>>2];b=J[a+72>>2];J[a+56>>2]=b;J[a+60>>2]=g;m=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=m;O[a+48>>3]=O[a+48>>3]+O[f+56>>3];J[a+40>>2]=b;J[a+44>>2]=g;m=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=m;O[a+32>>3]=O[a+32>>3]+O[f- -64>>3];J[a+24>>2]=b;J[a+28>> -2]=g;b=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=b;i=O[f+72>>3];O[a+24>>3]=O[a+24>>3]+O[f+80>>3];O[a+16>>3]=i+O[a+16>>3];b=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=b;b=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=b;O[a>>3]=O[a>>3]+O[f+88>>3];b=J[d+4>>2];J[a+8>>2]=J[d>>2];J[a+12>>2]=b;Vc(f,h,a+80|0,a- -64|0,a+48|0);Vc(f,h,a+32|0,a+16|0,a);break Zb}J[f+8>>2]=J[f+4>>2]+1}xb=a+96|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}a=xb-96|0;xb=a;_b:{if(J[f+20>>2]==11){i=O[f+88>>3];j=O[f+72>>3];p=O[f+56>>3];r=O[f+40>> -3];t=O[f+24>>3];s=O[f+96>>3];u=O[f+80>>3];d=f- -64|0;n=O[d>>3];y=O[f+48>>3];C=O[f+32>>3];b=f+4400|0;g=J[b+4>>2];J[a+88>>2]=J[b>>2];J[a+92>>2]=g;g=J[f+4396>>2];J[a+80>>2]=J[f+4392>>2];J[a+84>>2]=g;w=O[f+24>>3];O[a+88>>3]=O[a+88>>3]+O[f+32>>3];O[a+80>>3]=w+O[a+80>>3];g=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=g;g=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=g;w=O[f+40>>3];O[a+72>>3]=O[a+72>>3]+O[f+48>>3];O[a+64>>3]=w+O[a+64>>3];g=J[a+76>>2];J[a+56>>2]=J[a+72>>2];J[a+60>>2]=g;g=J[a+68>>2];J[a+48>> -2]=J[a+64>>2];J[a+52>>2]=g;w=O[f+56>>3];O[a+56>>3]=O[a+56>>3]+O[d>>3];O[a+48>>3]=w+O[a+48>>3];d=J[a+60>>2];J[a+40>>2]=J[a+56>>2];J[a+44>>2]=d;d=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=d;w=O[f+72>>3];O[a+40>>3]=O[a+40>>3]+O[f+80>>3];O[a+32>>3]=w+O[a+32>>3];d=J[a+44>>2];J[a+24>>2]=J[a+40>>2];J[a+28>>2]=d;d=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=d;w=O[f+88>>3];O[a+24>>3]=O[a+24>>3]+O[f+96>>3];O[a+16>>3]=w+O[a+16>>3];d=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=d;d=J[a+20>>2];J[a>>2]=J[a+16>> -2];J[a+4>>2]=d;$b:{if(R(i+(j+(p+(r+(t+0)))))>R(s+(u+(n+(y+(C+0)))))){O[a>>3]=O[a>>3]+O[f+104>>3];d=J[b+4>>2];J[a+8>>2]=J[b>>2];J[a+12>>2]=d;break $b}b=J[f+4396>>2];J[a>>2]=J[f+4392>>2];J[a+4>>2]=b;O[a+8>>3]=O[a+8>>3]+O[f+104>>3]}Vc(f,h,a+80|0,a- -64|0,a+48|0);Vc(f,h,a+32|0,a+16|0,a);break _b}J[f+8>>2]=J[f+4>>2]+1}xb=a+96|0;J[f+20>>2]=0;J[f+4412>>2]=0;break A}_l(g,f);break A}d=J[f+20>>2];b=d&1;break C}H[d|0]=1;b=0;d=J[42445];a=J[42444];J[194120]=a;J[194121]=d;x(0,a|0);x(1,d|0);i=+z()}r=O[g>>3];H[h| -0]=0;O[f+4400>>3]=j+r;O[f+4392>>3]=p+i;if(!K[f+4149|0]){if(!K[f+4150|0]){H[f+4150|0]=1;a=J[f+4156>>2]+b|0;J[f+4156>>2]=a;J[f+4160>>2]=(a+J[f+4152>>2]|0)+7>>>3}H[f+4149|0]=1}J[f+20>>2]=0;J[f+4412>>2]=0;break A}if(!(!b|!d)){H[f+4409|0]=1;a=J[f+28>>2];J[f+4416>>2]=J[f+24>>2];J[f+4420>>2]=a}H[f+4408|0]=1}J[f+4412>>2]=0;a=J[f+20>>2];J[f+20>>2]=0;J[f+4152>>2]=J[f+4152>>2]+(a>>>1|0)}xb=v+16|0;break j}J[h+68>>2]=0;J[h+4460>>2]=0}if(K[h+4212|0]){g=0;break a}g=0;b=J[h+56>>2];f=J[h+52>>2];if(K[h+64|0]|b>>>0> -f>>>0)break a;A=A-1|0;if(!A)break a;if(!K[h+4196|0])continue;break}a=J[h+12>>2];J[c>>2]=J[h+8>>2];J[c+4>>2]=a;a=J[h+36>>2];J[c+24>>2]=J[h+32>>2];J[c+28>>2]=a;a=J[h+28>>2];J[c+16>>2]=J[h+24>>2];J[c+20>>2]=a;a=J[h+20>>2];J[c+8>>2]=J[h+16>>2];J[c+12>>2]=a;g=1}xb=h+4496|0;return g}function zj(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;k=xb-15984|0;xb=k;J[k+15976>>2]=g;J[k+15980>>2]= -f;q=J[a+176>>2];j=q;p=J[J[j+536>>2]+544>>2];G=J[a+52>>2];C=J[a>>2];Nb(k+15824|0,0,128);J[k+15968>>2]=0;f=k+15808|0;J[f>>2]=0;J[f+4>>2]=0;f=k+15708|0;J[f>>2]=0;J[f+4>>2]=0;f=k+15716|0;J[f>>2]=0;J[f+4>>2]=0;J[k+15960>>2]=0;J[k+15964>>2]=0;J[k+15792>>2]=0;J[k+15796>>2]=0;J[k+15800>>2]=0;J[k+15804>>2]=0;J[k+15780>>2]=0;J[k+15784>>2]=0;J[k+15772>>2]=10;J[k+15776>>2]=0;J[k+15764>>2]=20;J[k+15768>>2]=0;E=a+4|0;J[k+15760>>2]=E;J[k+15756>>2]=C;J[k+15748>>2]=0;J[k+15752>>2]=0;J[k+15740>>2]=10;J[k+15744>>2]= -0;J[k+15732>>2]=20;J[k+15736>>2]=0;J[k+15728>>2]=E;J[k+15724>>2]=C;J[k+15700>>2]=0;J[k+15704>>2]=0;J[k+15696>>2]=E;Nb(k+15536|0,0,160);J[k+15540>>2]=10;J[k+15532>>2]=8;J[k+15528>>2]=E;J[k+15524>>2]=C;J[k+3916>>2]=c;J[k+3912>>2]=a;Nb(k+11668|0,0,3856);f=K[a+184|0];J[k+11672>>2]=G;H[k+11669|0]=f;N=k+15524|0;J[k+11664>>2]=N;O=k+11656|0;J[k+11660>>2]=O;J[k+11656>>2]=a;Nb(k+7800|0,0,3856);J[k+7804>>2]=G;H[k+7801|0]=f;J[k+7796>>2]=N;J[k+7792>>2]=O;J[k+7788>>2]=a;Nb(k+3932|0,0,3856);J[k+3936>>2]=G;H[k+3933| -0]=f;J[k+3928>>2]=N;J[k+3924>>2]=O;J[k+3920>>2]=a;J[k+15556>>2]=J[a+40>>2];L=48;f=J[a+48>>2];J[k+15564>>2]=G;J[k+15560>>2]=f;i=J[d>>2];f=J[d+4>>2];J[k+15596>>2]=a+240;J[k+15592>>2]=g;J[k+15568>>2]=i;J[k+15572>>2]=f;J[k+15588>>2]=k+15696;J[k+15584>>2]=k+15724;J[k+15580>>2]=k+15756;H[k+15578|0]=K[a+185|0];f=J[a+228>>2];J[k+15600>>2]=f;i=J[a+232>>2];J[k+15612>>2]=6554;J[k+15604>>2]=i;H[k+15577|0]=0;H[k+15579|0]=1;g=f;f=f>>31;g=(g^f)-f|0;f=i>>31;f=(f^i)-f|0;J[k+15608>>2]=((f|0)<(g|0)?g:f)<<1;f=K[a+9| -0];H[k+15791|0]=(f|0)!=0;J[h>>2]=J[J[j+536>>2]+540>>2]<<16;L=f?J[J[j+532>>2]+1556>>2]:L;J[k+40>>2]=0;g=k+40|0;f=tc(C,20,g);a:{b:{c:{d:{if(!J[k+40>>2]){J[f+4>>2]=E;J[f>>2]=C;g=Tb(C,8,0,L,0,g);J[f+8>>2]=g;if(!J[k+40>>2])break d;if(f)Ab[J[C+8>>2]](C,f)}b=64;f=0;i=1;g=0;break c}J[f+16>>2]=L;J[f+12>>2]=g;J[k+40>>2]=0;g=Tb(C,1,0,272,0,k+40|0);j=J[a+4>>2];if(J[k+40>>2]){i=0;if(j)break a;b=64;break b}i=0;if(j)break a;Q=p<<16;S=k+3920|0;A=k+15700|0;p=J[b+4>>2];J[g>>2]=J[b>>2];J[g+4>>2]=p;p=J[b+12>>2];J[g+ -8>>2]=J[b+8>>2];J[g+12>>2]=p;F=a+92|0;T=k+52|0;U=k+15616|0;R=2E7;w=g;e:while(1){B=0;while(1){p=i;b=w+12|0;i=J[b>>2];n=J[w+8>>2];f:{if(i>>>0>=n>>>0){l=z?11:14;j=i;break f}j=i+1|0;J[b>>2]=j;g:{l=K[i|0];switch(l-11|0){case 0:case 3:break g;default:break f}}l=K[a+9|0]?0:l}u=K[a+8|0];if(u){o=l&254;h:{m=l>>>0>31;if(m|(l|0)==12|((o|0)==10|(l-13&255)>>>0<2))break h;if(p&255|(l&253)==1)break h;J[f+12>>2]=J[f+8>>2];i=0;continue}i=(l|0)==12;D=i?D:D&255?m?D:0:D;x=m?x:i?x:(x|0)<=0?x:(o|0)==10?x:0}if(J[a+4>>2]){i= -0;break a}R=R-1|0;if(!R){i=0;b=18;break b}i=p;i:{j:{k:{l:{m:{n:{o:{p:switch(l|0){case 15:if(!K[a+9|0])break m;if(K[a+93|0])break i;b=J[f+12>>2];if((b|0)==J[f+8>>2]){i=0;b=J[f+4>>2];if(!b|J[b>>2])break k;J[b>>2]=161;J[a+120>>2]=0;i=p;break j}if(J[b-4>>2]!=2){i=0;b=J[f+4>>2];if(!b|J[b>>2])break k;J[b>>2]=160;break k}b=b-8|0;J[f+12>>2]=b;i=J[b>>2];if((i|0)>=0)break k;break m;case 16:if(!K[a+9|0])break m;b=18;i=0;if(!J[a+96>>2])break c;q:{if(!(Ab[J[J[a+548>>2]+12>>2]](F,J[a+120>>2],J[a+124>>2],J[a+128>> -2])|0))break q;j=Ab[J[J[a+548>>2]+16>>2]](F,J[a+120>>2],J[a+124>>2],J[a+128>>2])|0;if(!j)break q;b=j;break c}j=J[f+12>>2];r:{if((j|0)==J[f+8>>2]){l=0;b=J[f+4>>2];if(!b|J[b>>2])break r;J[b>>2]=161;break r}if(J[j-4>>2]!=2){l=0;b=J[f+4>>2];if(!b|J[b>>2])break r;J[b>>2]=160;break r}j=j-8|0;J[f+12>>2]=j;l=J[j>>2];if(L>>>0>>0)break c}n=0;j=J[f+12>>2];b=J[f+8>>2];i=j-b>>3;t=P(J[F+20>>2],l);if(l){v=i-t|0;m=v+l|0;while(1){j=J[F+24>>2];o=J[f+12>>2]-b>>3;y=n+v|0;s:{if(o>>>0<=y>>>0){i=0;r=J[f+4>>2];if(!r| -J[r>>2])break s;J[r>>2]=130;break s}r=(y<<3)+b|0;i=J[r>>2];t:switch(J[r+4>>2]-1|0){case 1:i=i<<16;break s;case 0:break t;default:break s}i=((i>>31)+i|0)- -8192>>14}r=1;if(M[F+20>>2]>=2){while(1){u=J[j+4>>2];b=J[f+8>>2];u:{if(J[f+12>>2]-b>>3>>>0<=m>>>0){b=0;o=J[f+4>>2];if(!o|J[o>>2])break u;J[o>>2]=130;break u}o=b+(m<<3)|0;b=J[o>>2];v:switch(J[o+4>>2]-1|0){case 1:b=b<<16;break u;case 0:break v;default:break u}b=((b>>31)+b|0)- -8192>>14}m=m+1|0;j=j+4|0;i=Rb(u,b)+i|0;r=r+1|0;if(r>>>0>2])continue; -break}b=J[f+8>>2];o=J[f+12>>2]-b>>3}w:{if(o>>>0>>0){i=J[f+4>>2];if(!i|J[i>>2])break w;J[i>>2]=130;break w}j=y<<3;J[j+b>>2]=i;b=J[f+8>>2];J[(j+b|0)+4>>2]=0}n=n+1|0;if((n|0)!=(l|0))continue;break}j=J[f+12>>2];i=j-b>>3}b=t-l|0;x:{if(i>>>0>>0){b=J[f+4>>2];if(!b|J[b>>2])break x;J[b>>2]=161;break x}J[f+12>>2]=j-(b<<3)}H[a+93|0]=1;i=p;continue;case 1:case 18:j=k+15756|0;m=k+15791|0;y:{if(!u){if(K[k+15700|0])break m;b=0;break y}b=J[J[q+32>>2]+4>>2]}ym(a,f,j,h,m,b);if(!K[q+548|0])break j;break l;case 3:case 23:j= -k+15724|0;m=k+15791|0;z:{if(!u){if(K[k+15700|0])break m;b=0;break z}b=J[J[q+32>>2]>>2]}ym(a,f,j,h,m,b);if(K[q+548|0])break l;break j;case 4:i=J[f+12>>2];j=J[f+8>>2];if(!(K[k+15791|0]|i-j>>>0<16)){b=J[j>>2];A:{B:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break A;case 0:break B;default:break A}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+548|0])break l;C:{if((i|0)==(j|0)){i=0;b=J[f+4>>2];if(!b|J[b>>2])break C;J[b>>2]=161;break C}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];D:switch(J[b+4>>2]-1|0){case 1:i= -i<<16;break C;case 0:break D;default:break C}i=((i>>31)+i|0)- -8192>>14}b=J[k+15976>>2]+i|0;J[k+15976>>2]=b;if(J[q+468>>2])break m;yj(k+3912|0,J[k+15980>>2],b);break m;case 5:r=J[k+15976>>2];l=J[k+15980>>2];i=J[f+8>>2];b=J[f+12>>2];if((i|0)!=(b|0)){o=b-i>>3;i=0;while(1){n=J[f+8>>2];m=J[f+12>>2]-n>>3;E:{if(m>>>0<=i>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break E;J[j>>2]=130;break E}j=n+(i<<3)|0;b=J[j>>2];F:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break E;case 0:break F;default:break E}b=((b>>31)+b|0)- -8192>> -14}l=b+l|0;b=i|1;G:{if(b>>>0>=m>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break G;J[j>>2]=130;break G}j=n+(b<<3)|0;b=J[j>>2];H:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break G;case 0:break H;default:break G}b=((b>>31)+b|0)- -8192>>14}r=b+r|0;Di(k+3912|0,l,r);i=i+2|0;if(o>>>0>i>>>0)continue;break}i=J[f+8>>2]}J[k+15976>>2]=r;J[k+15980>>2]=l;J[f+12>>2]=i;i=p;continue;case 6:case 7:r=J[k+15976>>2];s=J[k+15980>>2];i=J[f+8>>2];b=J[f+12>>2];if((i|0)!=(b|0)){b=b-i>>3;m=b>>>0<=1?1:b;b=(l|0)==6;l=0;while(1){i=J[f+8>> -2];I:{if(J[f+12>>2]-i>>3>>>0<=l>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break I;J[j>>2]=130;break I}j=i+(l<<3)|0;i=J[j>>2];J:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break I;case 0:break J;default:break I}i=((i>>31)+i|0)- -8192>>14}j=b&255;s=(j?i:0)+s|0;r=(j?0:i)+r|0;Di(k+3912|0,s,r);b=b^1;l=l+1|0;if((m|0)!=(l|0))continue;break}i=J[f+8>>2]}J[k+15976>>2]=r;J[k+15980>>2]=s;J[f+12>>2]=i;i=p;continue;case 8:case 24:b=6;m=0;r=J[k+15976>>2];s=J[k+15980>>2];i=J[f+8>>2];u=J[f+12>>2]-i>>3;if(u>>>0>=6){while(1){i=m; -m=b;y=J[f+8>>2];t=J[f+12>>2]-y>>3;K:{if(t>>>0<=i>>>0){j=0;b=J[f+4>>2];if(!b|J[b>>2])break K;J[b>>2]=130;break K}b=y+(i<<3)|0;j=J[b>>2];L:switch(J[b+4>>2]-1|0){case 1:j=j<<16;break K;case 0:break L;default:break K}j=((j>>31)+j|0)- -8192>>14}b=i|1;M:{if(b>>>0>=t>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break M;J[b>>2]=130;break M}b=y+(b<<3)|0;n=J[b>>2];N:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break M;case 0:break N;default:break M}n=((n>>31)+n|0)- -8192>>14}b=i+2|0;O:{if(b>>>0>=t>>>0){o=0;b=J[f+4>>2];if(!b| -J[b>>2])break O;J[b>>2]=130;break O}b=y+(b<<3)|0;o=J[b>>2];P:switch(J[b+4>>2]-1|0){case 1:o=o<<16;break O;case 0:break P;default:break O}o=((o>>31)+o|0)- -8192>>14}v=j+s|0;b=i+3|0;Q:{if(b>>>0>=t>>>0){s=0;b=J[f+4>>2];if(!b|J[b>>2])break Q;J[b>>2]=130;break Q}b=y+(b<<3)|0;s=J[b>>2];R:switch(J[b+4>>2]-1|0){case 1:s=s<<16;break Q;case 0:break R;default:break Q}s=((s>>31)+s|0)- -8192>>14}n=n+r|0;o=o+v|0;b=i+4|0;S:{if(b>>>0>=t>>>0){r=0;b=J[f+4>>2];if(!b|J[b>>2])break S;J[b>>2]=130;break S}b=y+(b<<3)|0; -r=J[b>>2];T:switch(J[b+4>>2]-1|0){case 1:r=r<<16;break S;case 0:break T;default:break S}r=((r>>31)+r|0)- -8192>>14}j=n+s|0;s=o+r|0;b=i+5|0;U:{if(b>>>0>=t>>>0){i=0;b=J[f+4>>2];if(!b|J[b>>2])break U;J[b>>2]=130;break U}b=y+(b<<3)|0;i=J[b>>2];V:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break U;case 0:break V;default:break U}i=((i>>31)+i|0)- -8192>>14}r=i+j|0;Ah(k+3912|0,v,n,o,j,s,r);b=m+6|0;if(u>>>0>=b>>>0)continue;break}i=J[f+8>>2]}J[k+15976>>2]=r;J[k+15980>>2]=s;if((l|0)==24){o=J[f+12>>2]-i>>3;W:{if(o>>> -0<=m>>>0){l=0;b=J[f+4>>2];if(!b|J[b>>2])break W;J[b>>2]=130;break W}b=(m<<3)+i|0;l=J[b>>2];X:switch(J[b+4>>2]-1|0){case 1:l=l<<16;break W;case 0:break X;default:break W}l=((l>>31)+l|0)- -8192>>14}j=l+s|0;J[k+15980>>2]=j;b=m|1;Y:{if(b>>>0>=o>>>0){i=0;b=J[f+4>>2];if(!b|J[b>>2])break Y;J[b>>2]=130;break Y}b=(b<<3)+i|0;i=J[b>>2];Z:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break Y;case 0:break Z;default:break Y}i=((i>>31)+i|0)- -8192>>14}b=i+r|0;J[k+15976>>2]=b;Di(k+3912|0,j,b);i=J[f+8>>2]}J[f+12>>2]=i;i=p; -continue;case 9:if(!u)break m;if(K[k+15576|0]){H[k+15577|0]=1;b=k+3912|0;Di(b,J[k+15648>>2],J[k+15652>>2]);if(K[k+15656|0])Vk(b,S,U,J[k+15624>>2],J[k+15628>>2],1);H[k+15656|0]=0;I[k+15576>>1]=0;H[k+15579|0]=1}H[k+15791|0]=1;i=p;break j;case 10:case 29:b=18;i=0;if((z|0)>16)break c;z=z+1|0;j=z;if(j>>>0>=17){J[a+4>>2]=130;j=0}m=j<<4;j=J[f+12>>2];_:{if((j|0)==J[f+8>>2]){r=0;j=J[f+4>>2];if(!j|J[j>>2])break _;J[j>>2]=161;break _}if(J[j-4>>2]!=2){r=0;j=J[f+4>>2];if(!j|J[j>>2])break _;J[j>>2]=160;break _}j= -j-8|0;J[f+12>>2]=j;r=J[j>>2]}w=g+m|0;$:{if(!u)break $;j=J[q+616>>2];if(!j)break $;j=Pe(r,j);if(!j){r=-1;break $}r=J[j>>2]}J[w>>2]=0;J[w+4>>2]=0;J[w+8>>2]=0;J[w+12>>2]=0;if((l|0)==29){j=J[q+568>>2]+r|0;if(j>>>0>=M[q+560>>2])break c;i=J[q+576>>2]+(j<<2)|0;b=J[i>>2];J[w+4>>2]=b;J[w+12>>2]=b;J[w+8>>2]=J[i+4>>2];i=p;continue}j=J[q+564>>2]+r|0;if(j>>>0>=M[q+556>>2])break c;j=j<<2;m=j+J[q+572>>2]|0;i=J[m>>2];J[w+4>>2]=i;aa:{if(K[q+48|0]){b=J[q+612>>2];if(b){if(!i){i=0;b=0;break aa}b=J[b+j>>2]+i|0;break aa}b= -J[q+608>>2];i=((b|0)>0?b:0)+i|0;J[w+4>>2]=i;b=J[m+4>>2];break aa}b=J[m+4>>2]}J[w+12>>2]=i;J[w+8>>2]=b;i=p;continue;case 11:if((z|0)<=0)break i;z=z-1|0;b=z;if(b>>>0>=17){J[a+4>>2]=130;b=0}w=(b<<4)+g|0;continue;case 12:if(j>>>0>=n>>>0){b=J[w>>2];if(b){l=0;if(J[b>>2])break n;J[b>>2]=85}l=0;break n}J[b>>2]=j+1;ba:{ca:{da:{ea:{l=K[j|0];switch(l-8|0){case 29:break ba;case 28:break ca;case 27:break da;case 26:break ea;case 0:case 5:case 11:case 17:case 23:case 24:break j;default:break n}}xm(f,k+15980|0, -k+15976|0,k+3912|0,31340,0);continue}xm(f,k+15980|0,k+15976|0,k+3912|0,31352,0);break j}xm(f,k+15980|0,k+15976|0,k+3912|0,31364,0);continue}xm(f,k+15980|0,k+15976|0,k+3912|0,31376,1);continue;case 13:if(!u)break m;i=J[f+12>>2];j=J[f+8>>2];fa:{if((i|0)==(j|0)){l=0;b=J[f+4>>2];if(!b|J[b>>2])break fa;J[b>>2]=161;break fa}i=i-8|0;J[f+12>>2]=i;l=J[i>>2];ga:switch(J[i+4>>2]-1|0){case 1:l=l<<16;break fa;case 0:break ga;default:break fa}l=((l>>31)+l|0)- -8192>>14}b=J[q+36>>2];J[b+4>>2]=0;J[b>>2]=l;ha:{if((i| -0)==(j|0)){i=0;b=J[f+4>>2];if(!b|J[b>>2])break ha;J[b>>2]=161;break ha}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];ia:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break ha;case 0:break ia;default:break ha}i=((i>>31)+i|0)- -8192>>14}b=J[q+32>>2];J[b>>2]=J[b>>2]+i;H[k+15791|0]=1;if(K[q+47|0])break l;if(!(p&255)){i=0;break j}J[k+15980>>2]=J[k+15980>>2]+i;i=p;break j;case 14:if(!(!u|p&255)){yj(k+3912|0,J[k+15980>>2],J[k+15976>>2]);J[k+15776>>2]=0;J[k+15744>>2]=0;J[A+16>>2]=0;J[A+20>>2]=0;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]= -0;J[A+4>>2]=0;J[k+15696>>2]=E;H[k+15701|0]=1;if((z|0)>0){i=z;ja:{if(!(i&1))break ja;i=i-1|0;if(z>>>0<18){b=i;break ja}b=0;if(J[a+4>>2])break ja;J[a+4>>2]=130}if((z|0)!=1)while(1){if(!(J[a+4>>2]|i>>>0<18))J[a+4>>2]=130;p=i-1|0;i=i-2|0;b=i;ka:{if(p>>>0<18)break ka;b=0;if(J[a+4>>2])break ka;J[a+4>>2]=130}if(p>>>0>1)continue;break}w=(b<<4)+g|0;z=0}J[w+12>>2]=J[w+4>>2];i=1;break j}b=J[f+12>>2]-J[f+8>>2]|0;la:{ma:{if((b|0)!=8){if((b|0)!=40)break la;if(!K[k+15791|0])break ma;break la}if(K[k+15791|0])break la}V= -h,W=Xg(f,0)+Q|0,J[V>>2]=W}H[k+15791|0]=1;i=0;if(K[q+548|0]){b=0;break c}b=k+3912|0;if(K[b+11664|0]){H[b+11665|0]=1;Di(b,J[b+11736>>2],J[b+11740>>2]);if(K[b+11744|0])Vk(b,b+8|0,b+11704|0,J[b+11712>>2],J[b+11716>>2],1);H[b+11744|0]=0;I[b+11664>>1]=0;H[b+11667|0]=1}if(K[a+9|0]){b=0;break c}if(K[a+8|0]){b=0;break c}if(J[f+12>>2]-J[f+8>>2]>>>0<9){b=0;break c}b=18;na:{if(e)break na;b=We(f);i=We(f);h=Jc(f);J[k+15976>>2]=h;e=Jc(f);J[k+15980>>2]=e;p=k+40|0;b=ow(q,b,p);if(b)break na;b=h;h=k+12|0;zj(a,p,c,d, -1,e,b,h);e=k+44|0;Ab[J[q+600>>2]](J[q+4>>2],e,J[k+48>>2]-J[k+44>>2]|0);b=ow(q,i,p);if(b)break na;b=0;zj(a,p,c,d,1,0,0,h);Ab[J[q+600>>2]](J[q+4>>2],e,J[k+48>>2]-J[k+44>>2]|0)}i=0;break c;case 19:case 20:if(K[k+15700|0]?J[f+12>>2]-J[f+8>>2]>>>0>=16:0)break m;i=0;ym(a,f,k+15724|0,h,k+15791|0,0);if(K[q+548|0]){b=0;break c}if((l|0)==19){j=J[k+15744>>2]+J[k+15776>>2]|0;if(j>>>0>=97){b=J[k+15696>>2];if(!b|J[b>>2])break m;J[b>>2]=18;i=p;break j}J[k+15704>>2]=j;I[k+15700>>1]=257;J[k+15708>>2]=j+7>>>3;if(!j)break m; -while(1){j=J[b>>2];oa:{if(j>>>0>2]){J[b>>2]=j+1;l=K[j|0];break oa}l=0;j=J[w>>2];if(!j|J[j>>2])break oa;J[j>>2]=85}H[(i+k|0)+15712|0]=l;i=i+1|0;if(i>>>0>2])continue;break}break m}Nb(T,0,3856);i=K[a+184|0];J[k+56>>2]=G;H[k+53|0]=i;J[k+48>>2]=N;J[k+44>>2]=O;J[k+40>>2]=a;J[k+32>>2]=0;J[k+36>>2]=0;J[k+24>>2]=0;J[k+28>>2]=0;J[k+16>>2]=0;J[k+20>>2]=0;J[k+12>>2]=E;j=J[k+15744>>2]+J[k+15776>>2]|0;pa:{if(j>>>0>=97){if(J[a+4>>2])break pa;J[a+4>>2]=18;break pa}J[k+20>>2]=j;I[k+16>>1]=257;J[k+ -24>>2]=j+7>>>3;i=0;if(!j)break pa;while(1){j=J[b>>2];qa:{if(j>>>0>2]){J[b>>2]=j+1;l=K[j|0];break qa}l=0;j=J[w>>2];if(!j|J[j>>2])break qa;J[j>>2]=85}H[(i+k|0)+28|0]=l;i=i+1|0;if(i>>>0>2])continue;break}}Uk(k+40|0,k+15756|0,k+15724|0,k+12|0,0,0);i=p;break j;case 21:j=J[f+12>>2];m=J[f+8>>2];if(!(K[k+15791|0]|j-m>>>0<24)){b=J[m>>2];ra:{sa:switch(J[m+4>>2]-1|0){case 1:b=b<<16;break ra;case 0:break sa;default:break ra}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+548|0])break l; -b=J[k+15976>>2];ta:{ua:{va:{if((j|0)==(m|0)){i=J[f+4>>2];if(!(!i|J[i>>2]))J[i>>2]=161;J[k+15976>>2]=b;s=J[k+15980>>2];break va}i=j-8|0;J[f+12>>2]=i;s=J[i>>2];wa:{xa:switch(J[i+4>>2]-1|0){case 0:s=((s>>31)+s|0)- -8192>>14;break wa;case 1:break xa;default:break wa}s=s<<16}b=b+s|0;J[k+15976>>2]=b;s=J[k+15980>>2];if((i|0)!=(m|0))break ua}i=0;j=J[f+4>>2];if(!j|J[j>>2])break ta;J[j>>2]=161;break ta}j=j-16|0;J[f+12>>2]=j;i=J[j>>2];ya:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break ta;case 0:break ya;default:break ta}i= -((i>>31)+i|0)- -8192>>14}i=i+s|0;J[k+15980>>2]=i;if(J[q+468>>2])break m;yj(k+3912|0,i,b);i=p;break j;case 22:i=J[f+12>>2];j=J[f+8>>2];if(!(K[k+15791|0]|i-j>>>0<16)){b=J[j>>2];za:{Aa:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break za;case 0:break Aa;default:break za}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+548|0])break l;Ba:{if((i|0)==(j|0)){i=0;b=J[f+4>>2];if(!b|J[b>>2])break Ba;J[b>>2]=161;break Ba}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];Ca:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break Ba;case 0:break Ca; -default:break Ba}i=((i>>31)+i|0)- -8192>>14}b=J[k+15980>>2]+i|0;J[k+15980>>2]=b;if(J[q+468>>2])break m;yj(k+3912|0,b,J[k+15976>>2]);i=p;break j;case 25:i=0;r=J[k+15976>>2];l=J[k+15980>>2];t=J[f+12>>2]-J[f+8>>2]>>3;if(t>>>0<=6)break o;while(1){o=J[f+8>>2];m=J[f+12>>2]-o>>3;b=i;Da:{if(m>>>0<=b>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break Da;J[j>>2]=130;break Da}j=o+(b<<3)|0;i=J[j>>2];Ea:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break Da;case 0:break Ea;default:break Da}i=((i>>31)+i|0)- -8192>>14}l=i+l|0;i=b| -1;Fa:{if(i>>>0>=m>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break Fa;J[j>>2]=130;break Fa}j=o+(i<<3)|0;i=J[j>>2];Ga:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break Fa;case 0:break Ga;default:break Fa}i=((i>>31)+i|0)- -8192>>14}r=i+r|0;Di(k+3912|0,l,r);i=b+2|0;if(t>>>0>b+8>>>0)continue;break}break o;case 26:n=J[k+15976>>2];b=J[k+15980>>2];l=J[f+8>>2];u=J[f+12>>2]-l>>3;i=u&2;o=u&-3;if(i>>>0>>0){while(1){t=J[f+8>>2];v=J[f+12>>2]-t>>3;if(u-i&1){Ha:{if(i>>>0>=v>>>0){s=0;j=J[f+4>>2];if(!j|J[j>>2])break Ha;J[j>> -2]=130;break Ha}j=t+(i<<3)|0;s=J[j>>2];Ia:switch(J[j+4>>2]-1|0){case 1:s=s<<16;break Ha;case 0:break Ia;default:break Ha}s=((s>>31)+s|0)- -8192>>14}i=i+1|0;b=b+s|0}m=b;Ja:{if(i>>>0>=v>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Ja;J[j>>2]=130;break Ja}j=t+(i<<3)|0;b=J[j>>2];Ka:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Ja;case 0:break Ka;default:break Ja}b=((b>>31)+b|0)- -8192>>14}j=i+1|0;La:{if(j>>>0>=v>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break La;J[l>>2]=130;break La}l=t+(j<<3)|0;j=J[l>>2];Ma:switch(J[l+ -4>>2]-1|0){case 1:j=j<<16;break La;case 0:break Ma;default:break La}j=((j>>31)+j|0)- -8192>>14}r=b+n|0;b=i+2|0;Na:{if(b>>>0>=v>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break Na;J[b>>2]=130;break Na}b=t+(b<<3)|0;n=J[b>>2];Oa:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break Na;case 0:break Oa;default:break Na}n=((n>>31)+n|0)- -8192>>14}b=j+m|0;n=n+r|0;j=i+3|0;Pa:{if(j>>>0>=v>>>0){l=0;j=J[f+4>>2];if(!j|J[j>>2])break Pa;J[j>>2]=130;break Pa}j=t+(j<<3)|0;l=J[j>>2];Qa:switch(J[j+4>>2]-1|0){case 1:l=l<<16;break Pa; -case 0:break Qa;default:break Pa}l=((l>>31)+l|0)- -8192>>14}j=n;n=l+n|0;Ah(k+3912|0,m,r,b,j,b,n);i=i+4|0;if(o>>>0>i>>>0)continue;break}l=J[f+8>>2]}J[k+15976>>2]=n;J[k+15980>>2]=b;J[f+12>>2]=l;i=p;continue;case 27:n=J[k+15980>>2];b=J[k+15976>>2];l=J[f+8>>2];u=J[f+12>>2]-l>>3;i=u&2;o=u&-3;if(i>>>0>>0){while(1){t=J[f+8>>2];v=J[f+12>>2]-t>>3;if(u-i&1){Ra:{if(i>>>0>=v>>>0){s=0;j=J[f+4>>2];if(!j|J[j>>2])break Ra;J[j>>2]=130;break Ra}j=t+(i<<3)|0;s=J[j>>2];Sa:switch(J[j+4>>2]-1|0){case 1:s=s<<16;break Ra; -case 0:break Sa;default:break Ra}s=((s>>31)+s|0)- -8192>>14}i=i+1|0;b=b+s|0}m=b;Ta:{if(i>>>0>=v>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Ta;J[j>>2]=130;break Ta}j=t+(i<<3)|0;b=J[j>>2];Ua:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Ta;case 0:break Ua;default:break Ta}b=((b>>31)+b|0)- -8192>>14}j=i+1|0;Va:{if(j>>>0>=v>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break Va;J[l>>2]=130;break Va}l=t+(j<<3)|0;j=J[l>>2];Wa:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break Va;case 0:break Wa;default:break Va}j=((j>>31)+j|0)- --8192>>14}r=b+n|0;b=i+2|0;Xa:{if(b>>>0>=v>>>0){b=0;l=J[f+4>>2];if(!l|J[l>>2])break Xa;J[l>>2]=130;break Xa}l=t+(b<<3)|0;b=J[l>>2];Ya:switch(J[l+4>>2]-1|0){case 1:b=b<<16;break Xa;case 0:break Ya;default:break Xa}b=((b>>31)+b|0)- -8192>>14}n=j+r|0;b=b+m|0;j=i+3|0;Za:{if(j>>>0>=v>>>0){l=0;j=J[f+4>>2];if(!j|J[j>>2])break Za;J[j>>2]=130;break Za}j=t+(j<<3)|0;l=J[j>>2];_a:switch(J[j+4>>2]-1|0){case 1:l=l<<16;break Za;case 0:break _a;default:break Za}l=((l>>31)+l|0)- -8192>>14}j=n;n=l+n|0;Ah(k+3912|0,r, -m,j,b,n,b);i=i+4|0;if(o>>>0>i>>>0)continue;break}l=J[f+8>>2]}J[k+15980>>2]=n;J[k+15976>>2]=b;J[f+12>>2]=l;i=p;continue;case 30:case 31:m=J[k+15976>>2];j=J[k+15980>>2];b=J[f+8>>2];o=J[f+12>>2]-b>>3;i=o&2;u=o&-3;if(i>>>0>>0){s=(l|0)==31;while(1){r=m;b=j;t=J[f+8>>2];v=J[f+12>>2]-t>>3;$a:{if(s){ab:{if(i>>>0>=v>>>0){m=0;j=J[f+4>>2];if(!j|J[j>>2])break ab;J[j>>2]=130;break ab}j=t+(i<<3)|0;m=J[j>>2];bb:switch(J[j+4>>2]-1|0){case 1:m=m<<16;break ab;case 0:break bb;default:break ab}m=((m>>31)+m|0)- -8192>> -14}n=i+1|0;cb:{if(v>>>0<=n>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break cb;J[l>>2]=130;break cb}l=t+(n<<3)|0;j=J[l>>2];db:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break cb;case 0:break db;default:break cb}j=((j>>31)+j|0)- -8192>>14}l=i+2|0;eb:{if(l>>>0>=v>>>0){o=0;l=J[f+4>>2];if(!l|J[l>>2])break eb;J[l>>2]=130;break eb}l=t+(l<<3)|0;o=J[l>>2];fb:switch(J[l+4>>2]-1|0){case 1:o=o<<16;break eb;case 0:break fb;default:break eb}o=((o>>31)+o|0)- -8192>>14}b=b+m|0;l=o+r|0;m=i+3|0;gb:{if(m>>>0>=v>>>0){m=0;o=J[f+4>> -2];if(!o|J[o>>2])break gb;J[o>>2]=130;break gb}o=t+(m<<3)|0;m=J[o>>2];hb:switch(J[o+4>>2]-1|0){case 1:m=m<<16;break gb;case 0:break hb;default:break gb}m=((m>>31)+m|0)- -8192>>14}o=b+j|0;m=l+m|0;s=0;if((u-i|0)!=5){n=i;j=o;break $a}i=i+4|0;ib:{if(i>>>0>=v>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break ib;J[j>>2]=130;j=o;break $a}j=t+(i<<3)|0;i=J[j>>2];jb:switch(J[j+4>>2]-1|0){case 1:j=(i<<16)+o|0;break $a;case 0:break jb;default:break ib}i=((i>>31)+i|0)- -8192>>14}j=i+o|0;break $a}kb:{if(i>>>0>=v>>>0){m= -0;j=J[f+4>>2];if(!j|J[j>>2])break kb;J[j>>2]=130;break kb}j=t+(i<<3)|0;m=J[j>>2];lb:switch(J[j+4>>2]-1|0){case 1:m=m<<16;break kb;case 0:break lb;default:break kb}m=((m>>31)+m|0)- -8192>>14}n=i+1|0;mb:{if(v>>>0<=n>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break mb;J[l>>2]=130;break mb}l=t+(n<<3)|0;j=J[l>>2];nb:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break mb;case 0:break nb;default:break mb}j=((j>>31)+j|0)- -8192>>14}l=i+2|0;ob:{if(l>>>0>=v>>>0){l=0;o=J[f+4>>2];if(!o|J[o>>2])break ob;J[o>>2]=130;break ob}o= -t+(l<<3)|0;l=J[o>>2];pb:switch(J[o+4>>2]-1|0){case 1:l=l<<16;break ob;case 0:break pb;default:break ob}l=((l>>31)+l|0)- -8192>>14}r=m+r|0;o=b+j|0;j=i+3|0;qb:{if(j>>>0>=v>>>0){m=0;j=J[f+4>>2];if(!j|J[j>>2])break qb;J[j>>2]=130;break qb}j=t+(j<<3)|0;m=J[j>>2];rb:switch(J[j+4>>2]-1|0){case 1:m=m<<16;break qb;case 0:break rb;default:break qb}m=((m>>31)+m|0)- -8192>>14}l=l+r|0;j=m+o|0;s=1;if((u-i|0)!=5){n=i;m=l;break $a}i=i+4|0;sb:{if(i>>>0>=v>>>0){i=0;m=J[f+4>>2];if(!m|J[m>>2])break sb;J[m>>2]=130;break sb}m= -t+(i<<3)|0;i=J[m>>2];tb:switch(J[m+4>>2]-1|0){case 1:i=i<<16;break sb;case 0:break tb;default:break sb}i=((i>>31)+i|0)- -8192>>14}m=i+l|0}Ah(k+3912|0,b,r,o,l,j,m);i=n+4|0;if(u>>>0>i>>>0)continue;break}b=J[f+8>>2]}J[k+15976>>2]=m;J[k+15980>>2]=j;J[f+12>>2]=b;i=p;continue;case 28:ub:{if(j>>>0>>0){i=j+1|0;J[b>>2]=i;l=K[j|0];break ub}l=0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=j}vb:{if(i>>>0>>0){J[b>>2]=i+1;b=K[i|0];break vb}b=0;i=J[w>>2];if(!i|J[i>>2])break vb;J[i>>2]=85}i=J[f+12>>2];if((i|0)== -(J[f+8>>2]+(J[f+16>>2]<<3)|0)){i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[i>>2]=(b<<16|l<<24)>>16;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;i=p;continue;case 0:case 2:case 17:break j;default:break p}if(l>>>0<=246){b=J[f+12>>2];if((b|0)==(J[f+8>>2]+(J[f+16>>2]<<3)|0)){b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[b>>2]=l-139;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;continue}if(l>>>0<=250){wb:{if(j>>>0>>0){J[b>>2]=j+1;b=K[j|0];break wb}b=0;i=J[w>>2];if(!i|J[i>>2])break wb; -J[i>>2]=85}i=J[f+12>>2];if((i|0)==(J[f+8>>2]+(J[f+16>>2]<<3)|0)){i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[i>>2]=((l<<8)+b|0)-63124;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;i=p;continue}if((l|0)!=255){xb:{if(j>>>0>>0){J[b>>2]=j+1;i=K[j|0];break xb}i=0;b=J[w>>2];if(!b|J[b>>2])break xb;J[b>>2]=85}xj(f,64148-(l<<8|i)|0);i=p;continue}yb:{if(j>>>0>>0){i=j+1|0;J[b>>2]=i;r=K[j|0];break yb}r=0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=j}zb:{if(i>>>0>>0){l=i+1|0;J[b>>2]=l;s=K[i|0]; -break zb}s=0;j=J[w>>2];if(!(!j|J[j>>2]))J[j>>2]=85;l=i}Ab:{if(l>>>0>>0){i=l+1|0;J[b>>2]=i;j=K[l|0];break Ab}j=0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=l}Bb:{if(i>>>0>>0){J[b>>2]=i+1;i=K[i|0];break Bb}i=0;b=J[w>>2];if(!b|J[b>>2])break Bb;J[b>>2]=85}b=s<<16|r<<24|j<<8|i;if(u){xj(f,b);D=b+32E3>>>0<64001?D:D&255?D:1;i=p;continue}Hd(f,b);i=p;continue}if(i>>>0>>0)while(1){s=J[f+8>>2];y=J[f+12>>2]-s>>3;Cb:{if(y>>>0<=i>>>0){m=0;b=J[f+4>>2];if(!b|J[b>>2])break Cb;J[b>>2]=130;break Cb}b=s+(i<<3)| -0;m=J[b>>2];Db:switch(J[b+4>>2]-1|0){case 1:m=m<<16;break Cb;case 0:break Db;default:break Cb}m=((m>>31)+m|0)- -8192>>14}b=i|1;Eb:{if(b>>>0>=y>>>0){j=0;b=J[f+4>>2];if(!b|J[b>>2])break Eb;J[b>>2]=130;break Eb}b=s+(b<<3)|0;j=J[b>>2];Fb:switch(J[b+4>>2]-1|0){case 1:j=j<<16;break Eb;case 0:break Fb;default:break Eb}j=((j>>31)+j|0)- -8192>>14}b=i+2|0;Gb:{if(b>>>0>=y>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break Gb;J[b>>2]=130;break Gb}b=s+(b<<3)|0;n=J[b>>2];Hb:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break Gb; -case 0:break Hb;default:break Gb}n=((n>>31)+n|0)- -8192>>14}v=l+m|0;b=i+3|0;Ib:{if(b>>>0>=y>>>0){l=0;b=J[f+4>>2];if(!b|J[b>>2])break Ib;J[b>>2]=130;break Ib}b=s+(b<<3)|0;l=J[b>>2];Jb:switch(J[b+4>>2]-1|0){case 1:l=l<<16;break Ib;case 0:break Jb;default:break Ib}l=((l>>31)+l|0)- -8192>>14}u=j+r|0;o=n+v|0;b=i+4|0;Kb:{if(b>>>0>=y>>>0){r=0;b=J[f+4>>2];if(!b|J[b>>2])break Kb;J[b>>2]=130;break Kb}b=s+(b<<3)|0;r=J[b>>2];Lb:switch(J[b+4>>2]-1|0){case 1:r=r<<16;break Kb;case 0:break Lb;default:break Kb}r= -((r>>31)+r|0)- -8192>>14}m=l+u|0;l=o+r|0;b=i+5|0;Mb:{if(b>>>0>=y>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Mb;J[j>>2]=130;break Mb}j=s+(b<<3)|0;b=J[j>>2];Nb:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Mb;case 0:break Nb;default:break Mb}b=((b>>31)+b|0)- -8192>>14}r=b+m|0;Ah(k+3912|0,v,u,o,m,l,r);i=i+6|0;if(t>>>0>i>>>0)continue;break}J[k+15976>>2]=r;J[k+15980>>2]=l;J[f+12>>2]=J[f+8>>2];i=p;continue}if(K[a+9|0]|l>>>0>37)break m;if(!(!u|(x|0)<=0|(l|0)==17)){x=0;i=p;break j}i=p;Ob:{Pb:{Qb:{Rb:switch(l- -1|0){case 0:case 1:if(!u)break m;m=Xg(f,0);o=Xg(f,2);j=Xg(f,4);i=Xg(f,1);b=J[f+8>>2];Sb:{if(J[f+12>>2]-b>>>0<=15){b=J[f+4>>2];if(!b|J[b>>2])break Sb;J[b>>2]=130;break Sb}J[b+16>>2]=o-(i+m|0);J[J[f+8>>2]+20>>2]=0}i=Xg(f,3);b=J[f+8>>2];Tb:{if(J[f+12>>2]-b>>>0<=31){b=J[f+4>>2];if(!b|J[b>>2])break Tb;J[b>>2]=130;break Tb}J[b+32>>2]=j-(i+o|0);J[J[f+8>>2]+36>>2]=0}ym(a,f,(l|0)==1?k+15724|0:k+15756|0,h,k+15791|0,J[J[q+32>>2]+(((l|0)!=1)<<2)>>2]);i=p;if(K[q+548|0])break l;break j;case 2:b=Jc(f);xj(f,(Jc(f)| -0)!=0&(b|0)!=0);continue;case 3:xj(f,(Jc(f)|Jc(f))!=0);continue;case 4:xj(f,!Jc(f));continue;case 5:if(!u)break j;i=J[q+4>>2];b=18;o=We(f);m=We(f);z=Jc(f);h=Jc(f);A=Jc(f);Ub:{if(K[q+47|0]|e)break Ub;e=J[J[i+128>>2]+52>>2];Vb:{if(!J[q+580>>2]){if(!e)break Ub;l=J[J[q+32>>2]>>2];break Vb}l=J[J[q+32>>2]>>2];if(e)break Vb;m=nw(q,m);o=nw(q,o)}if((m|o)<0)break Ub;i=h+l|0;Wb:{if(K[q+46|0]){d=J[q+8>>2];c=J[J[d+156>>2]>>2];b=bF(c,2);if(b)break Ub;e=J[c+88>>2];J[e+32>>2]=o;J[e+8>>2]=0;J[e+12>>2]=0;I[e+4>>1]= -514;J[e>>2]=m;I[e+36>>1]=2;b=i-A|0;J[e+40>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[e+44>>2]=((z+(z>>31)|0)+32768&-65536)>>16;J[d+128>>2]=2;b=J[c+52>>2];J[d+72>>2]=1668246896;J[d+132>>2]=b;J[c+84>>2]=2;break Wb}b=J[q+12>>2];J[b+56>>2]=0;J[b+84>>2]=0;e=J[b+24>>2];if(e)e=e+(I[b+22>>1]<<3)|0;else e=0;J[b+60>>2]=e;h=b- -64|0;e=J[b+28>>2];if(e)e=e+I[b+22>>1]|0;else e=0;J[h>>2]=e;e=J[b+32>>2];if(e)e=e+(I[b+20>>1]<<1)|0;else e=0;J[b+68>>2]=e;if(K[b+16|0]){e=I[b+22>>1]<<3;J[b+76>>2]=e+J[b+40>>2];J[b+80>>2]= -e+J[b+44>>2]}e=J[b+52>>2];if(e)e=e+(J[b+48>>2]<<5)|0;else e=0;J[b+88>>2]=e;e=k+40|0;b=mw(J[q+4>>2],m,e);if(b)break Ub;b=J[q+36>>2];j=J[b>>2];r=J[b+4>>2];b=J[q+32>>2];p=J[b>>2];n=J[b+4>>2];zj(a,e,c,d,1,0,0,k+3908|0);e=J[J[J[q+4>>2]+128>>2]+52>>2];b=J[k+44>>2];J[k+16>>2]=J[k+48>>2]-b;J[k+12>>2]=b;if(e)Ab[J[J[e>>2]+4>>2]](J[e+4>>2],k+12|0);e=J[q+32>>2];if(!K[k+15791|0]){n=J[e+4>>2];b=J[q+36>>2];j=J[b>>2];r=J[b+4>>2];p=J[e>>2]}J[e>>2]=0;J[e+4>>2]=0;e=k+40|0;b=mw(J[q+4>>2],o,e);if(b)break Ub;zj(a,e,c, -d,1,i-A|0,z,k+3908|0);c=J[J[J[q+4>>2]+128>>2]+52>>2];b=J[k+44>>2];J[k+16>>2]=J[k+48>>2]-b;J[k+12>>2]=b;if(c)Ab[J[J[c>>2]+4>>2]](J[c+4>>2],k+12|0);b=J[q+32>>2];J[b>>2]=p;J[b+4>>2]=n;b=J[q+36>>2];J[b>>2]=j;J[b+4>>2]=r}b=0}i=0;break c;case 6:if(!u)break m;b=Jc(f);J[J[q+36>>2]+4>>2]=b;b=Jc(f);J[J[q+36>>2]>>2]=b;i=Jc(f);b=Jc(f);j=J[q+32>>2];J[j>>2]=b+J[j>>2];J[j+4>>2]=i+J[j+4>>2];H[k+15791|0]=1;if(K[q+47|0])break l;if(!(p&255)){i=0;break j}J[k+15980>>2]=b+J[k+15980>>2];J[k+15976>>2]=i+J[k+15976>>2];i= -p;break j;case 8:b=Jc(f);if((b|0)==-2147483648){Hd(f,2147483647);continue}p=b;b=b>>31;Hd(f,(p^b)-b|0);continue;case 9:Hd(f,Jc(f)+Jc(f)|0);continue;case 10:b=Jc(f);Hd(f,Jc(f)-b|0);continue;case 11:Xb:{if(!(!u|!(D&255))){D=0;i=We(f);b=We(f);break Xb}i=Jc(f);b=Jc(f)}Hd(f,dc(b,i));i=p;continue;case 13:b=Jc(f);if((b|0)==-2147483648){Hd(f,2147483647);continue}Hd(f,0-b|0);continue;case 14:xj(f,(Jc(f)|0)==(Jc(f)|0));continue;case 15:if(!u)continue;m=We(f);n=We(f);j=J[f+8>>2];Yb:switch(m|0){case 0:b=18;i= -0;if((n|0)!=3|(!J[q+468>>2]|J[q+472>>2]!=7?p&255:0))break c;Hd(f,J[k+15980>>2]);Hd(f,J[k+15976>>2]);B=2;break Pb;case 1:if(n)break i;x=0;i=0;B=0;if(!(p&255))continue;Zb:{b=J[q+12>>2];if((I[b+22>>1]+I[b+58>>1]|0)+6>>>0<=M[b+4>>2])break Zb;if(!ie(b,6,0))break Zb;b=0;break c}J[q+468>>2]=1;J[q+472>>2]=0;break Ob;case 2:b=18;if(n){i=0;break c}x=0;i=0;B=0;if(!(p&255))continue;if(!J[q+468>>2])break c;m=J[q+472>>2];J[q+472>>2]=m+1;i=p;if(m-1>>>0>5)continue;j=J[q+12>>2];if((I[j+22>>1]+I[j+58>>1]|0)+1>>>0> -M[j+4>>2]){i=0;if(ie(j,1,0))break c}b=m<<1;b=(k+15792|0)+((m>>>0>3?b-6|0:b)<<2)|0;J[b-8>>2]=J[k+15980>>2];J[b-4>>2]=J[k+15976>>2];i=p;_b:switch(m-3|0){case 0:case 3:break _b;default:continue}Ah(k+3912|0,J[k+15792>>2],J[k+15796>>2],J[k+15800>>2],J[k+15804>>2],J[k+15808>>2],J[k+15812>>2]);continue e;case 3:B=1;if((n|0)!=1)break i;x=0;i=0;if(!(p&255))continue;J[k+15776>>2]=0;J[k+15744>>2]=0;J[A+16>>2]=0;J[A+20>>2]=0;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+4>>2]=0;H[k+15701|0]=1;J[k+15696>>2]=E;i=p;continue; -case 12:case 13:J[f+12>>2]=j;break Ob;case 14:case 15:case 16:case 17:case 18:i=0;b=18;o=J[q+644>>2];if(!o)break c;B=(m+((m|0)==18)|0)-13|0;if((n|0)!=(P(B,J[o>>2])|0))break c;s=(J[f+12>>2]-j>>3)-n|0;l=B+s|0;m=0;while(1){b=Xg(f,s);i=1;if(M[o>>2]>=2)while(1){b=Rb(Xg(f,l),J[J[o+136>>2]+(i<<2)>>2])+b|0;l=l+1|0;i=i+1|0;if(i>>>0>2])continue;break}i=J[f+8>>2];$b:{if(J[f+12>>2]-i>>3>>>0>>0){b=J[f+4>>2];if(!b|J[b>>2])break $b;J[b>>2]=130;break $b}j=i;i=s<<3;J[j+i>>2]=b;J[(i+J[f+8>>2]|0)+4>>2]=0}s= -s+1|0;m=m+1|0;if((B|0)!=(m|0))continue;break}b=n-B|0;i=J[f+12>>2];if(b>>>0>i-J[f+8>>2]>>3>>>0){x=0;i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=161;continue}J[f+12>>2]=i-(b<<3);break Pb;case 19:b=18;i=0;if((n|0)!=1)break c;l=J[q+644>>2];if(!l)break c;m=We(f);if((m|0)<0)break c;j=J[l>>2];if(M[q+652>>2]>>0)break c;Mb(J[q+648>>2]+(m<<2)|0,J[l+136>>2],j<<2);break Ob;case 20:if((n|0)!=2)break i;Hd(f,Jc(f)+Jc(f)|0);break Qb;case 21:if((n|0)!=2)break i;b=Jc(f);Hd(f,Jc(f)-b|0);break Qb;case 22:if((n| -0)!=2)break i;b=Jc(f);Hd(f,Rb(Jc(f),b));break Qb;case 23:b=18;i=0;if((n|0)!=2)break c;m=Jc(f);j=Jc(f);if(!m)break c;Hd(f,dc(j,m));break Qb;case 24:b=18;i=0;if(!J[q+644>>2]|(n|0)!=2)break c;j=We(f);if((j|0)<0|j>>>0>=M[q+652>>2])break c;b=Jc(f);J[J[q+648>>2]+(j<<2)>>2]=b;break Ob;case 25:b=18;i=0;if(!J[q+644>>2]|(n|0)!=1)break c;j=We(f);if((j|0)<0|j>>>0>=M[q+652>>2])break c;Hd(f,J[J[q+648>>2]+(j<<2)>>2]);break Qb;case 27:if((n|0)!=4)break i;i=Jc(f);b=Jc(f);Hd(f,(V=Jc(f),W=Jc(f),X=(b|0)>(i|0),X?V:W)); -break Qb;case 28:if(n)break i;i=J[q+536>>2];j=J[i+648>>2];b=j<<13^j;b=b>>>17^b;J[i+648>>2]=b^b<<5;B=1;Hd(f,(j&65535)+1|0);break Pb;default:break Yb}i=0;if((m|n)<0){b=18;break c}x=(n|0)>=3?3:n;l=1;B=0;i=p;if((n|0)<=0)continue;p=(x|0)<=1?1:x;while(1){V=(k+15960|0)+(x-l<<2)|0,W=Jc(f),J[V>>2]=W;b=(l|0)==(p|0);l=l+1|0;if(!b)continue;break}continue;case 16:if(!u)continue;if((B|0)>0){B=B-1|0;continue}if(!x)break i;x=x-1|0;Hd(f,J[(k+15960|0)+(x<<2)>>2]);continue;case 17:Jc(f);continue;case 19:p=We(f);b=Jc(f); -if(p>>>0>31)continue;J[(k+15824|0)+(p<<2)>>2]=b;continue;case 20:b=We(f);if(b>>>0>31)continue;Hd(f,J[(k+15824|0)+(b<<2)>>2]);continue;case 21:i=Jc(f);b=Jc(f);Hd(f,(V=Jc(f),W=Jc(f),X=(b|0)>(i|0),X?V:W));i=p;continue;case 22:i=J[q+536>>2];j=J[i+648>>2];b=j<<13^j;b=b>>>17^b;J[i+648>>2]=b^b<<5;Hd(f,(j&65535)+1|0);i=p;continue;case 23:b=Jc(f);Hd(f,Rb(Jc(f),b));continue;case 25:b=Jc(f);ac:{if((b|0)<=0){i=0;break ac}l=b>>>(b>>>0>9)|0;while(1){i=l;l=(i+dc(b,i)|0)+1>>1;if((i|0)!=(l|0))continue;break}}Hd(f, -i);i=p;continue;case 26:b=Jc(f);Hd(f,b);Hd(f,b);continue;case 27:i=Jc(f);b=Jc(f);Hd(f,i);Hd(f,b);i=p;continue;case 28:j=We(f);p=J[f+12>>2];b=J[f+8>>2];if((p|0)==(b|0))continue;b=p-b>>3;p=b-1|0;bc:{if((j|0)<0)break bc;p=0;if(b>>>0<=j>>>0)break bc;p=b+(j^-1)|0}Hd(f,Xg(f,p));continue;case 29:b=We(f);l=0;t=We(f);cc:{if((t|0)<2)break cc;if(t>>>0>J[f+12>>2]-J[f+8>>2]>>3>>>0){b=J[f+4>>2];if(!b|J[b>>2])break cc;J[b>>2]=130;break cc}if((b|0)<0)m=0-((0-b>>>0)%(t>>>0)|0)|0;else m=(b>>>0)%(t>>>0)|0;if(!m)break cc; -u=0-t|0;j=0;r=2;b=-1;o=-1;while(1){v=J[f+8>>2];dc:{if((b|0)!=(o|0)){p=j;n=r;break dc}o=b+1|0;b=v+(o<<3)|0;p=J[b>>2];n=J[b+4>>2];b=o}b=b+m|0;b=((b|0)<(t|0)?t&b>>31:u)+b|0;v=v+(b<<3)|0;j=J[v>>2];r=J[v+4>>2];J[v>>2]=p;J[v+4>>2]=n;l=l+1|0;if((t|0)!=(l|0))continue;break}}continue;case 32:break Rb;default:break j}if(!u|!(p&255))break m;V=k,W=Jc(f),J[V+15976>>2]=W;V=k,W=Jc(f),J[V+15980>>2]=W;J[q+468>>2]=0;break j}B=1}x=0;i=p;continue}x=0;i=p;continue e}i=p;break j}i=0;b=0;break c}J[a+120>>2]=i;i=p}J[f+12>> -2]=J[f+8>>2];continue}break}break}b=18;i=0}if(J[a+4>>2])break a}J[a+4>>2]=b}a=k+15544|0;J[a>>2]=0;J[a+4>>2]=0;J[k+15536>>2]=0;c=J[k+15524>>2];b=k+15552|0;a=J[b>>2];if(a)Ab[J[c+8>>2]](c,a);J[b>>2]=0;J[k+15744>>2]=0;J[k+15748>>2]=0;J[k+15736>>2]=0;b=J[k+15724>>2];a=J[k+15752>>2];if(a)Ab[J[b+8>>2]](b,a);J[k+15752>>2]=0;J[k+15776>>2]=0;J[k+15780>>2]=0;J[k+15768>>2]=0;b=J[k+15756>>2];a=J[k+15784>>2];if(a)Ab[J[b+8>>2]](b,a);J[k+15784>>2]=0;if(g)Ab[J[C+8>>2]](C,g);if(!i){b=J[f>>2];a=J[f+8>>2];if(a)Ab[J[b+ -8>>2]](b,a);J[f+8>>2]=0;if(f)Ab[J[b+8>>2]](b,f)}xb=k+15984|0}function Re(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=Q(0),m=0,n=Q(0),o=Q(0),p=0,q=Q(0),r=0,s=0,t=0,u=Q(0),v=Q(0),w=0;a:{b:{c:{d:{e:switch(K[a|0]-1|0){case 0:f=xb-16|0;xb=f;c=J[b+4>>2];d=K[c+18|0]|K[c+19|0]<<8|(K[c+20|0]<<16|K[c+21|0]<<24);if(d)d=c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;c=K[a+2|0]|K[a+3|0]<<8|(K[a+4|0]<<16|K[a+5|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);J[f+12>>2]=c;if(K[a+1|0]+ -c>>>0>c>>>0){g=b+68|0;while(1){h=J[b+100>>2];f:{g:{if(!h)break g;e=((P(c,506952113)&1073741823)>>>0)%M[b+92>>2]|0;j=h+P(e,12)|0;k=J[j+4>>2];if(!(k&2))break g;if(J[j>>2]!=(c|0)){i=J[b+88>>2];j=0;while(1){j=j+1|0;e=i&e+j;r=h+P(e,12)|0;k=J[r+4>>2];if(!(k&2))break g;if(J[r>>2]!=(c|0))continue;break}}if(k&1)break f}Kk(g,f+12|0,P(c,-1640531535),170452,1);j=169776;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=J[f+12>>2];if(h>>>0>c>>>0)c=(d+(c<<2)|0)+4|0;else c= -169776;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(c)j=d+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;c=J[b+8>>2];k=J[c+56>>2];i=J[b+12>>2];e=J[c+68>>2];if(e)h=J[e+44>>2];else h=0;Ab[k|0](c,i,h);c=J[b+104>>2];h:{if((c|0)<=0)break h;e=J[b+108>>2];if((e|0)<=0)break h;J[b+108>>2]=e-1;J[b+104>>2]=c-1;Re(j,b);J[b+104>>2]=J[b+104>>2]+1}c=J[b+8>>2];k=J[c+60>>2];j=J[b+12>>2];e=J[c+68>>2];if(e)h=J[e+48>>2];else h=0;Ab[k|0](c,j,3,h);c=J[f+12>>2];h=J[b+100>>2];if(!h)break f;e=((P(c,506952113)&1073741823)>>> -0)%M[b+92>>2]|0;j=h+P(e,12)|0;k=J[j+4>>2];if(!(k&2))break f;if(J[j>>2]!=(c|0)){i=J[b+88>>2];j=0;while(1){j=j+1|0;e=i&e+j;r=h+P(e,12)|0;k=J[r+4>>2];if(!(k&2))break f;if(J[r>>2]!=(c|0))continue;break}}if(!(k&1))break f;J[(h+P(e,12)|0)+4>>2]=k&-2;J[b+80>>2]=J[b+80>>2]-2;c=J[f+12>>2]}c=c+1|0;J[f+12>>2]=c;e=K[a+2|0]|K[a+3|0]<<8|(K[a+4|0]<<16|K[a+5|0]<<24);if(K[a+1|0]+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))>>>0>c>>>0)continue;break}}xb=f+16|0;return;case 1:LH(a,b,-1);return;case 2:c=a;a=K[a+5|0]|K[a+ -6|0]<<8|(K[a+7|0]<<16|K[a+8|0]<<24);LH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));return;case 3:j=xb+-64|0;xb=j;c=K[a+3|0];d=K[a+2|0];f=K[a+1|0];J[j+36>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;J[j+48>>2]=0;J[j+52>>2]=0;J[j+56>>2]=0;J[j+60>>2]=0;J[j+28>>2]=0;J[j+32>>2]=0;J[j+24>>2]=782;J[j+20>>2]=b;J[j+16>>2]=783;c=c|(d<<8|f<<16);J[j+12>>2]=c?c+a|0:169776;i=K[a+4|0]|K[a+5|0]<<8;k=J[b+12>>2];f=J[b+8>>2];e=J[b+28>>2];c=J[e+12>>2];n=Q(0);i:{if(!c)break i;g=J[e>>2];d=-1;h=J[e+4>>2];if(h){d=sc(h,-1);c=J[e+12>> -2]}r=d>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;n=Q(0);if(r>>>0>=((h<<8|h>>>8)&65535)>>>0)break i;h=J[e+8>>2];e=g+(r<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;m=d&65535;d=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;n=pc(e,m,h,c,d,0)}r=K[a+6|0]|K[a+7|0]<<8;e=J[b+28>>2];c=J[e+12>>2];j:{if(!c)break j;g=J[e>>2];d=J[e+4>>2];k:{if(d){d=sc(d,-1);c=J[e+12>>2];break k}d= -0}m=d>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;if(m>>>0>=((h<<8|h>>>8)&65535)>>>0)break j;h=J[e+8>>2];e=g+(m<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;m=d&65535;d=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;u=pc(e,m,h,c,d,0)}m=K[a+8|0]|K[a+9|0]<<8;e=J[b+28>>2];d=J[e+12>>2];o=Q(0);l:{if(!d)break l;g=J[e>>2];c=J[e+4>>2];m:{if(c){c=sc(c,-1);d=J[e+12>>2];break m}c= -1}p=c>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;o=Q(0);if(p>>>0>=((h<<8|h>>>8)&65535)>>>0)break l;h=J[e+8>>2];e=g+(p<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;p=c&65535;c=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;o=pc(e,p,h,d,c,0)}p=K[a+10|0]|K[a+11|0]<<8;e=J[b+28>>2];c=J[e+12>>2];n:{if(!c)break n;g=J[e>>2];d=J[e+4>>2];o:{if(d){d=sc(d,-1);c=J[e+12>>2];break o}d= -2}s=d>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;if(s>>>0>=((h<<8|h>>>8)&65535)>>>0)break n;h=J[e+8>>2];e=g+(s<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;s=d&65535;d=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;v=pc(e,s,h,c,d,0)}s=K[a+12|0]|K[a+13|0]<<8;e=J[b+28>>2];d=J[e+12>>2];l=Q(0);p:{if(!d)break p;g=J[e>>2];c=J[e+4>>2];q:{if(c){c=sc(c,-1);d=J[e+12>>2];break q}c= -3}t=c>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;l=Q(0);if(t>>>0>=((h<<8|h>>>8)&65535)>>>0)break p;h=J[e+8>>2];e=g+(t<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;t=c&65535;c=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;l=pc(e,t,h,d,c,0)}h=K[a+14|0]|K[a+15|0]<<8;a=J[b+28>>2];d=J[a+12>>2];r:{if(!d)break r;e=J[a>>2];b=J[a+4>>2];s:{if(b){c=sc(b,-1);d=J[a+12>>2];break s}c= -4}g=c>>>16|0;b=K[e+6|0]|K[e+7|0]<<8;if(g>>>0>=((b<<8|b>>>8)&65535)>>>0)break r;b=J[a+8>>2];a=e+(g<<2)|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);if(a)a=e+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a=169776;g=c&65535;c=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+5|0]<<24);if(c)c=e+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;q=pc(a,g,b,d,c,0)}b=J[f+44>>2];c=j+12|0;n=Q(n+Q((i<<8|(i&65280)>>>8)<<16>>16));u=Q(u+Q((r<<8|(r&65280)>>>8)<<16>>16));o=Q(o+Q((m<<8|(m&65280)>>>8)<<16>> -16));v=Q(v+Q((p<<8|(p&65280)>>>8)<<16>>16));l=Q(l+Q((s<<8|(s&65280)>>>8)<<16>>16));q=Q(q+Q((h<<8|(h&65280)>>>8)<<16>>16));a=J[f+68>>2];if(a)a=J[a+32>>2];else a=0;Ab[b|0](f,k,c,n,u,o,v,l,q,a);xb=j- -64|0;return;case 4:c=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);k=xb+-64|0;xb=k;d=K[a+3|0];f=K[a+2|0];h=K[a+1|0];c=k;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+24>>2]=784;J[c+ -20>>2]=b;J[c+16>>2]=785;c=d|(f<<8|h<<16);J[k+12>>2]=c?c+a|0:169776;r=K[a+4|0]|K[a+5|0]<<8;j=J[b+12>>2];h=J[b+8>>2];d=J[b+28>>2];c=J[d+12>>2];n=Q(0);t:{if(!c)break t;i=J[d>>2];f=e;g=J[d+4>>2];if(g){f=sc(g,e);c=J[d+12>>2]}m=f>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;n=Q(0);if(m>>>0>=((g<<8|g>>>8)&65535)>>>0)break t;g=J[d+8>>2];d=i+(m<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=i+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;m=f&65535;f=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5| -0]<<24);if(f)f=i+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;n=pc(d,m,g,c,f,0)}m=K[a+6|0]|K[a+7|0]<<8;d=J[b+28>>2];c=J[d+12>>2];u:{if(!c)break u;i=J[d>>2];f=J[d+4>>2];v:{if(f){f=sc(f,(e|0)==-1?-1:e+1|0);c=J[d+12>>2];break v}f=e+1|0}p=f>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;if(p>>>0>=((g<<8|g>>>8)&65535)>>>0)break u;g=J[d+8>>2];d=i+(p<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=i+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;p=f&65535;f=K[i+2|0]|K[i+3|0]<<8| -(K[i+4|0]<<16|K[i+5|0]<<24);if(f)f=i+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;u=pc(d,p,g,c,f,0)}p=K[a+8|0]|K[a+9|0]<<8;c=J[b+28>>2];f=J[c+12>>2];o=Q(0);w:{if(!f)break w;i=J[c>>2];d=J[c+4>>2];x:{if(d){d=sc(d,(e|0)==-1?-1:e+2|0);f=J[c+12>>2];break x}d=e+2|0}s=d>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;o=Q(0);if(s>>>0>=((g<<8|g>>>8)&65535)>>>0)break w;g=J[c+8>>2];c=i+(s<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776; -s=d&65535;d=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(d)d=i+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;o=pc(c,s,g,f,d,0)}s=K[a+10|0]|K[a+11|0]<<8;c=J[b+28>>2];d=J[c+12>>2];y:{if(!d)break y;i=J[c>>2];f=J[c+4>>2];z:{if(f){f=sc(f,(e|0)==-1?-1:e+3|0);d=J[c+12>>2];break z}f=e+3|0}t=f>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;if(t>>>0>=((g<<8|g>>>8)&65535)>>>0)break y;g=J[c+8>>2];c=i+(t<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>> -24))|0;else c=169776;t=f&65535;f=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(f)f=i+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;v=pc(c,t,g,d,f,0)}t=K[a+12|0]|K[a+13|0]<<8;d=J[b+28>>2];f=J[d+12>>2];l=Q(0);A:{if(!f)break A;i=J[d>>2];c=J[d+4>>2];B:{if(c){c=sc(c,(e|0)==-1?-1:e+4|0);f=J[d+12>>2];break B}c=e+4|0}w=c>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;l=Q(0);if(w>>>0>=((g<<8|g>>>8)&65535)>>>0)break A;g=J[d+8>>2];d=i+(w<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=i+(d<< -24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;w=c&65535;c=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;l=pc(d,w,g,f,c,0)}g=K[a+14|0]|K[a+15|0]<<8;a=J[b+28>>2];f=J[a+12>>2];C:{if(!f)break C;c=J[a>>2];b=J[a+4>>2];D:{if(b){d=sc(b,(e|0)==-1?-1:e+5|0);f=J[a+12>>2];break D}d=e+5|0}e=d>>>16|0;b=K[c+6|0]|K[c+7|0]<<8;if(e>>>0>=((b<<8|b>>>8)&65535)>>>0)break C;b=J[a+8>>2];a=c+(e<<2)|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11| -0]<<24);if(a)a=c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a=169776;e=d&65535;d=K[c+2|0]|K[c+3|0]<<8|(K[c+4|0]<<16|K[c+5|0]<<24);if(d)c=c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else c=169776;q=pc(a,e,b,f,c,0)}b=J[h+44>>2];c=k+12|0;n=Q(n+Q((r<<8|(r&65280)>>>8)<<16>>16));u=Q(u+Q((m<<8|(m&65280)>>>8)<<16>>16));o=Q(o+Q((p<<8|(p&65280)>>>8)<<16>>16));v=Q(v+Q((s<<8|(s&65280)>>>8)<<16>>16));l=Q(l+Q((t<<8|(t&65280)>>>8)<<16>>16));q=Q(q+Q((g<<8|(g&65280)>>>8)<<16>>16));a=J[h+68>>2];if(a)a=J[a+ -32>>2];else a=0;Ab[b|0](h,j,c,n,u,o,v,l,q,a);break d;case 5:j=xb+-64|0;xb=j;c=K[a+3|0];d=K[a+2|0];f=K[a+1|0];J[j+36>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;J[j+48>>2]=0;J[j+52>>2]=0;J[j+56>>2]=0;J[j+60>>2]=0;J[j+28>>2]=0;J[j+32>>2]=0;J[j+24>>2]=782;J[j+20>>2]=b;J[j+16>>2]=783;c=c|(d<<8|f<<16);J[j+12>>2]=c?c+a|0:169776;i=K[a+4|0]|K[a+5|0]<<8;k=J[b+12>>2];f=J[b+8>>2];e=J[b+28>>2];c=J[e+12>>2];n=Q(0);E:{if(!c)break E;g=J[e>>2];d=-1;h=J[e+4>>2];if(h){d=sc(h,-1);c=J[e+12>>2]}r=d>>>16|0;h=K[g+6|0]|K[g+7|0]<<8; -n=Q(0);if(r>>>0>=((h<<8|h>>>8)&65535)>>>0)break E;h=J[e+8>>2];e=g+(r<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;m=d&65535;d=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;n=pc(e,m,h,c,d,0)}r=K[a+6|0]|K[a+7|0]<<8;e=J[b+28>>2];c=J[e+12>>2];F:{if(!c)break F;g=J[e>>2];d=J[e+4>>2];G:{if(d){d=sc(d,-1);c=J[e+12>>2];break G}d=0}m=d>>>16|0;h=K[g+6|0]|K[g+7| -0]<<8;if(m>>>0>=((h<<8|h>>>8)&65535)>>>0)break F;h=J[e+8>>2];e=g+(m<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;m=d&65535;d=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;u=pc(e,m,h,c,d,0)}m=K[a+8|0]|K[a+9|0]<<8;e=J[b+28>>2];d=J[e+12>>2];o=Q(0);H:{if(!d)break H;g=J[e>>2];c=J[e+4>>2];I:{if(c){c=sc(c,-1);d=J[e+12>>2];break I}c=1}p=c>>>16|0;h=K[g+6|0]| -K[g+7|0]<<8;o=Q(0);if(p>>>0>=((h<<8|h>>>8)&65535)>>>0)break H;h=J[e+8>>2];e=g+(p<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;p=c&65535;c=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;o=pc(e,p,h,d,c,0)}p=K[a+10|0]|K[a+11|0]<<8;e=J[b+28>>2];c=J[e+12>>2];J:{if(!c)break J;g=J[e>>2];d=J[e+4>>2];K:{if(d){d=sc(d,-1);c=J[e+12>>2];break K}d=2}s=d>>>16|0;h= -K[g+6|0]|K[g+7|0]<<8;if(s>>>0>=((h<<8|h>>>8)&65535)>>>0)break J;h=J[e+8>>2];e=g+(s<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;s=d&65535;d=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;v=pc(e,s,h,c,d,0)}s=K[a+12|0]|K[a+13|0]<<8;e=J[b+28>>2];d=J[e+12>>2];l=Q(0);L:{if(!d)break L;g=J[e>>2];c=J[e+4>>2];M:{if(c){c=sc(c,-1);d=J[e+12>>2];break M}c=3}t=c>>> -16|0;h=K[g+6|0]|K[g+7|0]<<8;l=Q(0);if(t>>>0>=((h<<8|h>>>8)&65535)>>>0)break L;h=J[e+8>>2];e=g+(t<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;t=c&65535;c=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;l=pc(e,t,h,d,c,0)}h=K[a+14|0]|K[a+15|0]<<8;a=J[b+28>>2];d=J[a+12>>2];N:{if(!d)break N;e=J[a>>2];b=J[a+4>>2];O:{if(b){c=sc(b,-1);d=J[a+12>>2];break O}c= -4}g=c>>>16|0;b=K[e+6|0]|K[e+7|0]<<8;if(g>>>0>=((b<<8|b>>>8)&65535)>>>0)break N;b=J[a+8>>2];a=e+(g<<2)|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);if(a)a=e+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a=169776;g=c&65535;c=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+5|0]<<24);if(c)c=e+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;q=pc(a,g,b,d,c,0)}b=J[f+48>>2];c=j+12|0;n=Q(n+Q((i<<8|(i&65280)>>>8)<<16>>16));u=Q(u+Q((r<<8|(r&65280)>>>8)<<16>>16));o=Q(o+Q(((m<<8|(m&65280)>>>8)&65535)>>> -0));v=Q(v+Q((p<<8|(p&65280)>>>8)<<16>>16));l=Q(l+Q((s<<8|(s&65280)>>>8)<<16>>16));q=Q(q+Q(((h<<8|(h&65280)>>>8)&65535)>>>0));a=J[f+68>>2];if(a)a=J[a+36>>2];else a=0;Ab[b|0](f,k,c,n,u,o,v,l,q,a);xb=j- -64|0;return;case 6:c=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);k=xb+-64|0;xb=k;d=K[a+3|0];f=K[a+2|0];h=K[a+1|0];c=k;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+24>>2]=784; -J[c+20>>2]=b;J[c+16>>2]=785;c=d|(f<<8|h<<16);J[k+12>>2]=c?c+a|0:169776;r=K[a+4|0]|K[a+5|0]<<8;j=J[b+12>>2];h=J[b+8>>2];d=J[b+28>>2];c=J[d+12>>2];n=Q(0);P:{if(!c)break P;i=J[d>>2];f=e;g=J[d+4>>2];if(g){f=sc(g,e);c=J[d+12>>2]}m=f>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;n=Q(0);if(m>>>0>=((g<<8|g>>>8)&65535)>>>0)break P;g=J[d+8>>2];d=i+(m<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=i+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;m=f&65535;f=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+ -5|0]<<24);if(f)f=i+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;n=pc(d,m,g,c,f,0)}m=K[a+6|0]|K[a+7|0]<<8;d=J[b+28>>2];c=J[d+12>>2];Q:{if(!c)break Q;i=J[d>>2];f=J[d+4>>2];R:{if(f){f=sc(f,(e|0)==-1?-1:e+1|0);c=J[d+12>>2];break R}f=e+1|0}p=f>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;if(p>>>0>=((g<<8|g>>>8)&65535)>>>0)break Q;g=J[d+8>>2];d=i+(p<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=i+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;p=f&65535;f=K[i+2|0]|K[i+3|0]<< -8|(K[i+4|0]<<16|K[i+5|0]<<24);if(f)f=i+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;u=pc(d,p,g,c,f,0)}p=K[a+8|0]|K[a+9|0]<<8;c=J[b+28>>2];f=J[c+12>>2];o=Q(0);S:{if(!f)break S;i=J[c>>2];d=J[c+4>>2];T:{if(d){d=sc(d,(e|0)==-1?-1:e+2|0);f=J[c+12>>2];break T}d=e+2|0}s=d>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;o=Q(0);if(s>>>0>=((g<<8|g>>>8)&65535)>>>0)break S;g=J[c+8>>2];c=i+(s<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776; -s=d&65535;d=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(d)d=i+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;o=pc(c,s,g,f,d,0)}s=K[a+10|0]|K[a+11|0]<<8;c=J[b+28>>2];d=J[c+12>>2];U:{if(!d)break U;i=J[c>>2];f=J[c+4>>2];V:{if(f){f=sc(f,(e|0)==-1?-1:e+3|0);d=J[c+12>>2];break V}f=e+3|0}t=f>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;if(t>>>0>=((g<<8|g>>>8)&65535)>>>0)break U;g=J[c+8>>2];c=i+(t<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>> -24))|0;else c=169776;t=f&65535;f=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(f)f=i+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;v=pc(c,t,g,d,f,0)}t=K[a+12|0]|K[a+13|0]<<8;d=J[b+28>>2];f=J[d+12>>2];l=Q(0);W:{if(!f)break W;i=J[d>>2];c=J[d+4>>2];X:{if(c){c=sc(c,(e|0)==-1?-1:e+4|0);f=J[d+12>>2];break X}c=e+4|0}w=c>>>16|0;g=K[i+6|0]|K[i+7|0]<<8;l=Q(0);if(w>>>0>=((g<<8|g>>>8)&65535)>>>0)break W;g=J[d+8>>2];d=i+(w<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=i+(d<< -24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;w=c&65535;c=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;l=pc(d,w,g,f,c,0)}g=K[a+14|0]|K[a+15|0]<<8;a=J[b+28>>2];f=J[a+12>>2];Y:{if(!f)break Y;c=J[a>>2];b=J[a+4>>2];Z:{if(b){d=sc(b,(e|0)==-1?-1:e+5|0);f=J[a+12>>2];break Z}d=e+5|0}e=d>>>16|0;b=K[c+6|0]|K[c+7|0]<<8;if(e>>>0>=((b<<8|b>>>8)&65535)>>>0)break Y;b=J[a+8>>2];a=c+(e<<2)|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11| -0]<<24);if(a)a=c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a=169776;e=d&65535;d=K[c+2|0]|K[c+3|0]<<8|(K[c+4|0]<<16|K[c+5|0]<<24);if(d)c=c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else c=169776;q=pc(a,e,b,f,c,0)}b=J[h+48>>2];c=k+12|0;n=Q(n+Q((r<<8|(r&65280)>>>8)<<16>>16));u=Q(u+Q((m<<8|(m&65280)>>>8)<<16>>16));o=Q(o+Q(((p<<8|(p&65280)>>>8)&65535)>>>0));v=Q(v+Q((s<<8|(s&65280)>>>8)<<16>>16));l=Q(l+Q((t<<8|(t&65280)>>>8)<<16>>16));q=Q(q+Q(((g<<8|(g&65280)>>>8)&65535)>>>0));a=J[h+68>>2];if(a)a= -J[a+36>>2];else a=0;Ab[b|0](h,j,c,n,u,o,v,l,q,a);break d;case 7:d=xb+-64|0;xb=d;f=K[a+3|0];e=K[a+2|0];k=K[a+1|0];c=d;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+24>>2]=782;J[c+20>>2]=b;J[c+16>>2]=783;c=f|(e<<8|k<<16);J[d+12>>2]=c?c+a|0:169776;r=K[a+4|0]|K[a+5|0]<<8;k=J[b+12>>2];f=J[b+8>>2];e=J[b+28>>2];c=J[e+12>>2];n=Q(0);_:{if(!c)break _;i=J[e>>2];g=-1;h=J[e+4>>2];if(h){g=sc(h,-1);c=J[e+12>>2]}m=g>>>16|0;h=K[i+6|0]|K[i+ -7|0]<<8;n=Q(0);if(m>>>0>=((h<<8|h>>>8)&65535)>>>0)break _;h=J[e+8>>2];e=i+(m<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=i+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;m=g&65535;g=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(g)g=i+(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))|0;else g=169776;n=pc(e,m,h,c,g,0)}i=K[a+6|0]|K[a+7|0]<<8;e=J[b+28>>2];c=J[e+12>>2];$:{if(!c)break $;g=J[e>>2];h=J[e+4>>2];if(h){j=sc(h,-1);c=J[e+12>>2]}m=j>>>16|0;h=K[g+6|0]|K[g+7|0]<<8; -if(m>>>0>=((h<<8|h>>>8)&65535)>>>0)break $;h=J[e+8>>2];e=g+(m<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;m=j&65535;j=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(j)g=g+(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24))|0;else g=169776;q=pc(e,m,h,c,g,0)}e=J[b+28>>2];c=J[e+12>>2];l=Q(0);aa:{if(!c)break aa;g=J[e>>2];h=J[e+4>>2];ba:{if(h){j=sc(h,-1);c=J[e+12>>2];break ba}j=1}m=j>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;l=Q(0);if(m>>> -0>=((h<<8|h>>>8)&65535)>>>0)break aa;h=J[e+8>>2];e=g+(m<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;m=j&65535;j=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(j)g=g+(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24))|0;else g=169776;l=pc(e,m,h,c,g,0)}g=K[a+8|0]|K[a+9|0]<<8;b=J[b+28>>2];c=J[b+12>>2];ca:{if(!c)break ca;h=J[b>>2];e=J[b+4>>2];da:{if(e){j=sc(e,-1);c=J[b+12>>2];break da}j=2}m=j>>>16|0;e=K[h+6|0]|K[h+7|0]<<8;if(m>>> -0>=((e<<8|e>>>8)&65535)>>>0)break ca;e=J[b+8>>2];b=h+(m<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)b=h+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b=169776;m=j&65535;j=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(j)h=h+(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24))|0;else h=169776;o=pc(b,m,e,c,h,0)}b=J[f+52>>2];c=d+12|0;n=Q(n+Q((r<<8|(r&65280)>>>8)<<16>>16));q=Q(q+Q((i<<8|(i&65280)>>>8)<<16>>16));l=Q(Q(Q(Q(l+Q((g<<8|(g&65280)>>>8)<<16>>16))*Q(6.103515625E-5))+Q(1))*Q(3.1415927410125732)); -a=K[a+10|0]|K[a+11|0]<<8;o=Q(Q(Q(Q(o+Q((a<<8|(a&65280)>>>8)<<16>>16))*Q(6.103515625E-5))+Q(1))*Q(3.1415927410125732));a=J[f+68>>2];if(a)a=J[a+40>>2];else a=0;Ab[b|0](f,k,c,n,q,l,o,a);xb=d- -64|0;return;case 8:c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);g=xb+-64|0;xb=g;e=a;c=K[a+3|0];d=K[a+2|0];k=K[a+1|0];J[g+36>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;J[g+56>>2]=0;J[g+60>>2]=0;J[g+28>>2]=0;J[g+32>>2]=0;J[g+24>>2]=784;J[g+20>>2]= -b;J[g+16>>2]=785;c=c|(d<<8|k<<16);J[g+12>>2]=c?c+a|0:169776;r=K[a+4|0]|K[a+5|0]<<8;h=J[b+12>>2];k=J[b+8>>2];c=J[b+28>>2];d=J[c+12>>2];n=Q(0);ea:{if(!d)break ea;i=J[c>>2];a=f;j=J[c+4>>2];if(j){a=sc(j,a);d=J[c+12>>2]}m=a>>>16|0;j=K[i+6|0]|K[i+7|0]<<8;n=Q(0);if(m>>>0>=((j<<8|j>>>8)&65535)>>>0)break ea;j=J[c+8>>2];c=i+(m<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;m=a&65535;a=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<< -24);if(a)a=i+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a=169776;n=pc(c,m,j,d,a,0)}m=K[e+6|0]|K[e+7|0]<<8;a=J[b+28>>2];d=J[a+12>>2];fa:{if(!d)break fa;i=J[a>>2];c=J[a+4>>2];ga:{if(c){c=sc(c,(f|0)==-1?-1:f+1|0);d=J[a+12>>2];break ga}c=f+1|0}p=c>>>16|0;j=K[i+6|0]|K[i+7|0]<<8;if(p>>>0>=((j<<8|j>>>8)&65535)>>>0)break fa;j=J[a+8>>2];a=i+(p<<2)|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);if(a)a=i+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a=169776;p=c&65535;c=K[i+2|0]|K[i+3|0]<<8| -(K[i+4|0]<<16|K[i+5|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;q=pc(a,p,j,d,c,0)}a=J[b+28>>2];d=J[a+12>>2];l=Q(0);ha:{if(!d)break ha;i=J[a>>2];c=J[a+4>>2];ia:{if(c){c=sc(c,(f|0)==-1?-1:f+2|0);d=J[a+12>>2];break ia}c=f+2|0}p=c>>>16|0;j=K[i+6|0]|K[i+7|0]<<8;l=Q(0);if(p>>>0>=((j<<8|j>>>8)&65535)>>>0)break ha;j=J[a+8>>2];a=i+(p<<2)|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);if(a)a=i+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a=169776;p=c&65535;c=K[i+2| -0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;l=pc(a,p,j,d,c,0)}i=K[e+8|0]|K[e+9|0]<<8;a=J[b+28>>2];d=J[a+12>>2];ja:{if(!d)break ja;j=J[a>>2];b=J[a+4>>2];ka:{if(b){c=sc(b,(f|0)==-1?-1:f+3|0);d=J[a+12>>2];break ka}c=f+3|0}f=c>>>16|0;b=K[j+6|0]|K[j+7|0]<<8;if(f>>>0>=((b<<8|b>>>8)&65535)>>>0)break ja;b=J[a+8>>2];a=j+(f<<2)|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);if(a)a=j+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a= -169776;f=c&65535;c=K[j+2|0]|K[j+3|0]<<8|(K[j+4|0]<<16|K[j+5|0]<<24);if(c)c=j+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;o=pc(a,f,b,d,c,0)}b=J[k+52>>2];c=g+12|0;n=Q(n+Q((r<<8|(r&65280)>>>8)<<16>>16));q=Q(q+Q((m<<8|(m&65280)>>>8)<<16>>16));l=Q(Q(Q(Q(l+Q((i<<8|(i&65280)>>>8)<<16>>16))*Q(6.103515625E-5))+Q(1))*Q(3.1415927410125732));a=K[e+10|0]|K[e+11|0]<<8;o=Q(Q(Q(Q(o+Q((a<<8|(a&65280)>>>8)<<16>>16))*Q(6.103515625E-5))+Q(1))*Q(3.1415927410125732));a=J[k+68>>2];if(a)a=J[a+40>>2];else a= -0;Ab[b|0](k,h,c,n,q,l,o,a);xb=g- -64|0;return;case 9:f=J[b+12>>2];c=J[b+8>>2];k=J[b+16>>2];d=J[k+24>>2];e=J[d+28>>2];if(!e)e=oi(d);h=J[k+32>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;j=J[c+12>>2];n=N[k+60>>2];k=J[k+28>>2];l=Q(e>>>0);o=h?Q(h|0):l;la:{if(Q(R(o))>2];f=J[c+24>>2];h=J[b+12>>2];d=K[a+4|0]| -K[a+5|0]<<8;g=(d<<8|d>>>8)&65535;e=J[b+16>>2];d=J[c+68>>2];if(d)d=J[d+12>>2];else d=0;Ab[f|0](c,h,g,e,d);d=J[b+12>>2];c=J[b+8>>2];f=J[b+16>>2];e=J[f+24>>2];g=J[e+28>>2];if(!g)g=oi(e);e=J[c+12>>2];l=Q(g>>>0);n=Q(Q(J[f+28>>2])/l);o=Q(J[f+32>>2]);q=Q(Q(N[f+60>>2]*o)/l);l=Q(o/l);f=J[c+68>>2];if(f)f=J[f>>2];else f=0;Ab[e|0](c,d,n,Q(0),q,l,Q(0),Q(0),f);c=J[b+104>>2];na:{if((c|0)<=0)break na;d=J[b+108>>2];if((d|0)<=0)break na;f=K[a+3|0];e=K[a+2|0];k=K[a+1|0];J[b+108>>2]=d-1;J[b+104>>2]=c-1;c=a;a=f|(k<<16| -e<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}a=J[b+8>>2];d=J[a+16>>2];f=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[d|0](a,f,c);a=J[b+8>>2];d=J[a+32>>2];f=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+20>>2];else c=0;Ab[d|0](a,f,c);break b;case 10:k=xb+-64|0;xb=k;c=K[a+1|0]|K[a+2|0]<<8;e=(c<<8|c>>>8)&65535;h=J[b- -64>>2];oa:{pa:{if(!h)break pa;d=((P(e,506952113)&1073741823)>>>0)%M[b+56>>2]|0;j=h+P(d,12)|0;c=J[j+4>>2];if(!(c&2))break pa;if((e|0)!=J[j>>2]){j=J[b+52>>2];while(1){f=f+1|0;d=j&d+ -f;g=h+P(d,12)|0;c=J[g+4>>2];if(!(c&2))break pa;if((e|0)!=J[g>>2])continue;break}}if(c&1)break oa}J[k+40>>2]=e;Kk(b+32|0,k+40|0,P(e,-1640531535),170452,1);e=J[b+12>>2];c=J[b+8>>2];h=J[b+16>>2];f=J[h+24>>2];d=J[f+28>>2];if(!d)d=oi(f);j=J[h+32>>2];f=J[c+68>>2];if(f)f=J[f>>2];else f=0;g=J[c+12>>2];n=N[h+60>>2];h=J[h+28>>2];l=Q(d>>>0);o=j?Q(j|0):l;qa:{if(Q(R(o))>2];f=J[c+20>>2];h=J[b+12>>2];d=K[a+1|0]|K[a+2|0]<<8;g=(d<<8|d>>>8)&65535;e=J[b+16>>2];d=J[c+68>>2];if(d)d=J[d+12>>2];else d=0;h=Ab[f|0](c,h,g,e,d)|0;c=J[b+8>>2];e=J[c+16>>2];d=J[b+12>>2];f=J[c+68>>2];if(h){Ab[e|0](c,d,f?J[f+4>>2]:0);f=J[b+64>>2];if(!f)break oa;a=K[a+1|0]|K[a+2|0]<<8;a=(a<<8|a>>>8)&65535;c=((P(a,506952113)&1073741823)>>>0)%M[b+56>>2]|0;d=f+P(c,12)|0;j=J[d+4>>2];if(!(j&2))break oa;if((a|0)!=J[d>>2]){e=J[b+52>>2];d=0;while(1){d= -d+1|0;c=e&d+c;h=f+P(c,12)|0;j=J[h+4>>2];if(!(j&2))break oa;if((a|0)!=J[h>>2])continue;break}}if(!(j&1))break oa;J[(f+P(c,12)|0)+4>>2]=j&-2;J[b+44>>2]=J[b+44>>2]-2;break oa}Ab[e|0](c,d,f?J[f+4>>2]:0);f=169776;j=169776;g=K[a+1|0]|K[a+2|0]<<8;i=g>>>8|g<<8;e=J[b+4>>2];c=K[e+14|0]|K[e+15|0]<<8|(K[e+16|0]<<16|K[e+17|0]<<24);if(c)j=e+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;c=K[j|0]|K[j+1|0]<<8|(K[j+2|0]<<16|K[j+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);sa:{if((c|0)<=0)break sa;r=j+4|0;c=c- -1|0;d=0;while(1){ta:{h=c+d>>>1|0;m=r+P(h,6)|0;m=K[m|0]|K[m+1|0]<<8;m=(m<<8|m>>>8)&65535;p=i&65535;ua:{if(m>>>0>p>>>0){c=h-1|0;break ua}if(m>>>0>=p>>>0)break ta;d=h+1|0}if((c|0)>=(d|0))continue;break sa}break}f=r+P(h,6)|0}c=0;va:{if((g|0)!=(K[f|0]|K[f+1|0]<<8))break va;d=K[f+2|0]|K[f+3|0]<<8|(K[f+4|0]<<16|K[f+5|0]<<24);c=169776;if(!d)break va;c=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+j|0}g=i&65535;J[k+32>>2]=0;J[k+36>>2]=0;J[k+24>>2]=0;J[k+28>>2]=0;f=J[b+28>>2];i=J[f+16>>2];J[k+16>>2]=i;h=J[f+12>> -2];d=J[f+8>>2];J[k+8>>2]=d;J[k+12>>2]=h;j=J[f+4>>2];f=J[f>>2];J[k>>2]=f;J[k+4>>2]=j;J[k+56>>2]=i;J[k+48>>2]=d;J[k+52>>2]=h;J[k+40>>2]=f;J[k+44>>2]=j;d=K[e+22|0]|K[e+23|0]<<8|(K[e+24|0]<<16|K[e+25|0]<<24);if(d)d=e+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;e=Ho(d,g,k+24|0,k+40|0);if(e){d=J[b+8>>2];h=J[d+28>>2];j=J[b+12>>2];f=J[k+24>>2];l=Q(f|0);g=J[k+28>>2];n=Q(g+J[k+36>>2]|0);o=Q(f+J[k+32>>2]|0);q=Q(g|0);f=J[d+68>>2];if(f)f=J[f+16>>2];else f=0;Ab[h|0](d,j,l,n,o,q,f)}wa:{if(!c)break wa; -d=J[b+104>>2];if((d|0)<=0)break wa;f=J[b+108>>2];if((f|0)<=0)break wa;J[b+108>>2]=f-1;J[b+104>>2]=d-1;Re(c,b);J[b+104>>2]=J[b+104>>2]+1}if(e){c=J[b+8>>2];f=J[c+32>>2];h=J[b+12>>2];d=J[c+68>>2];if(d)d=J[d+20>>2];else d=0;Ab[f|0](c,h,d)}f=J[b+64>>2];if(!f)break oa;a=K[a+1|0]|K[a+2|0]<<8;a=(a<<8|a>>>8)&65535;c=((P(a,506952113)&1073741823)>>>0)%M[b+56>>2]|0;d=f+P(c,12)|0;j=J[d+4>>2];if(!(j&2))break oa;if((a|0)!=J[d>>2]){e=J[b+52>>2];d=0;while(1){d=d+1|0;c=e&d+c;h=f+P(c,12)|0;j=J[h+4>>2];if(!(j&2))break oa; -if((a|0)!=J[h>>2])continue;break}}if(!(j&1))break oa;J[(f+P(c,12)|0)+4>>2]=j&-2;J[b+44>>2]=J[b+44>>2]-2}break d;case 11:c=K[a+6|0]|(K[a+5|0]<<8|K[a+4|0]<<16);zH(c?c+a|0:169776,b,-1);break c;case 12:c=K[a+6|0]|(K[a+5|0]<<8|K[a+4|0]<<16);c=c?c+a|0:169776;d=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);zH(c,b,d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24));break c;case 13:KH(a,b,-1);return;case 14:c=a;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);KH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)); -return;case 15:JH(a,b,-1);return;case 16:c=a;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);JH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));return;case 17:IH(a,b,-1);return;case 18:c=a;a=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);IH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));return;case 19:HH(a,b,-1);return;case 20:c=a;a=K[a+6|0]|K[a+7|0]<<8|(K[a+8|0]<<16|K[a+9|0]<<24);HH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));return;case 21:GH(a,b,-1);return;case 22:c=a;a=K[a+10|0]|K[a+11| -0]<<8|(K[a+12|0]<<16|K[a+13|0]<<24);GH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));return;case 23:d=J[b+28>>2];c=J[d+12>>2];l=Q(0);xa:{if(!c)break xa;e=J[d>>2];f=J[d+4>>2];ya:{if(!f){g=-1;break ya}g=sc(f,-1);c=J[d+12>>2]}k=g>>>16|0;f=K[e+6|0]|K[e+7|0]<<8;l=Q(0);if(k>>>0>=((f<<8|f>>>8)&65535)>>>0)break xa;f=J[d+8>>2];d=e+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=e+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;g=g&65535;k=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+ -5|0]<<24);if(k)h=e+(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24))|0;else h=169776;l=pc(d,g,f,c,h,0)}c=K[a+4|0]|K[a+5|0]<<8;o=Q(Q(l+Q((c<<8|c>>>8)<<16>>16))*Q(6.103515625E-5));if(o!=Q(0)){d=J[b+12>>2];c=J[b+8>>2];n=Q(o*Q(3.1415927410125732));l=Ym(n);f=J[c+68>>2];e=J[c+12>>2];n=bn(n);Ab[e|0](c,d,n,l,Q(-l),n,Q(0),Q(0),f?J[f>>2]:0)}break a;case 24:d=J[b+28>>2];c=J[d+12>>2];l=Q(0);za:{if(!c)break za;f=K[a+6|0]|K[a+7|0]<<8|(K[a+8|0]<<16|K[a+9|0]<<24);g=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);e=J[d>>2];f=J[d+ -4>>2];if(f){g=sc(f,g);c=J[d+12>>2]}k=g>>>16|0;f=K[e+6|0]|K[e+7|0]<<8;l=Q(0);if(k>>>0>=((f<<8|f>>>8)&65535)>>>0)break za;f=J[d+8>>2];d=e+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=e+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;g=g&65535;k=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+5|0]<<24);if(k)h=e+(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24))|0;else h=169776;l=pc(d,g,f,c,h,0)}c=K[a+4|0]|K[a+5|0]<<8;o=Q(Q(l+Q((c<<8|c>>>8)<<16>>16))*Q(6.103515625E-5));if(o!=Q(0)){d=J[b+ -12>>2];c=J[b+8>>2];n=Q(o*Q(3.1415927410125732));l=Ym(n);f=J[c+68>>2];e=J[c+12>>2];n=bn(n);Ab[e|0](c,d,n,l,Q(-l),n,Q(0),Q(0),f?J[f>>2]:0)}break a;case 25:FH(a,b,-1);return;case 26:c=a;a=K[a+10|0]|K[a+11|0]<<8|(K[a+12|0]<<16|K[a+13|0]<<24);FH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));return;case 27:EH(a,b,-1);return;case 28:c=a;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);EH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));return;case 29:DH(a,b,-1);return;case 30:c=a;a=K[a+12|0]|K[a+13|0]<<8| -(K[a+14|0]<<16|K[a+15|0]<<24);DH(c,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));return;case 31:c=J[b+104>>2];Aa:{if((c|0)<=0)break Aa;d=J[b+108>>2];if((d|0)<=0)break Aa;f=K[a+7|0];e=K[a+6|0];k=K[a+5|0];J[b+108>>2]=d-1;J[b+104>>2]=c-1;c=f|(k<<16|e<<8);Re(c?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}c=J[b+8>>2];f=J[c+56>>2];h=J[b+12>>2];d=J[c+68>>2];if(d)d=J[d+44>>2];else d=0;Ab[f|0](c,h,d);c=J[b+104>>2];Ba:{if((c|0)<=0)break Ba;d=J[b+108>>2];if((d|0)<=0)break Ba;f=K[a+3|0];e=K[a+2|0];k=K[a+1|0];J[b+108>> -2]=d-1;J[b+104>>2]=c-1;c=f|(k<<16|e<<8);Re(c?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}c=J[b+8>>2];d=J[c+60>>2];a=K[a+4|0];b=J[b+12>>2];f=J[c+68>>2];Ca:{if(!f){Ab[d|0](c,b,a,0);break Ca}Ab[d|0](c,b,a,J[f+48>>2])}break;default:break e}return}xb=k- -64|0;return}c=J[b+104>>2];Da:{if((c|0)<=0)break Da;d=J[b+108>>2];if((d|0)<=0)break Da;f=K[a+3|0];e=K[a+2|0];k=K[a+1|0];J[b+108>>2]=d-1;J[b+104>>2]=c-1;c=a;a=f|(k<<16|e<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}}a=J[b+8>>2];c=J[a+16>>2];b=J[b+12>> -2];d=J[a+68>>2];Ea:{if(!d){Ab[c|0](a,b,0);break Ea}Ab[c|0](a,b,J[d+4>>2])}return}c=J[b+104>>2];Fa:{if((c|0)<=0)break Fa;d=J[b+108>>2];if((d|0)<=0)break Fa;f=K[a+3|0];e=K[a+2|0];k=K[a+1|0];J[b+108>>2]=d-1;J[b+104>>2]=c-1;c=a;a=f|(k<<16|e<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}if(o!=Q(0)){a=J[b+8>>2];c=J[a+16>>2];d=J[b+12>>2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,d,b)}}function Ooa(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,u=0,v=0,w=0,y=0,A=0;a:switch(a-15|0){case 1:tI(b);return;case 0:c=b+16|0;a=J[b+20>>2];b:{if(a){k=O[c+(a<<3)>>3];break b}H[c|0]=1;e=J[42445];a=J[42444];J[194120]=a;J[194121]=e;x(0,a|0);x(1,e|0);k=+z()}c:{if(R(k)<2147483648){a=~~k;break c}a=-2147483648}if((a|0)<0){H[c|0]=1;a=0}d:{if(K[b+4441|0]|K[b+4442|0]){J[b+8>>2]=J[b+4>>2]+1;break d}J[b+4424>>2]=a}J[b+20>>2]=0;H[b+4441|0]=1;return;default:break a}n=xb-16|0;xb=n;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:switch(a- -1|0){default:switch(a-255|0){case 38:break i;case 37:break j;case 36:break k;case 35:break l;case 0:break E;default:break h}case 10:a=J[b+4>>2];if(a>>>0>2])J[b+8>>2]=a+1;a=b+4164|0;c=J[b+4168>>2];G:{if(c){c=c-1|0;J[b+4168>>2]=c;a=(a+P(c,20)|0)+8|0;break G}H[a|0]=1;J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480}c=J[a+4>>2];J[b+4128>>2]=J[a>>2];J[b+4132>>2]=c;J[b+4144>>2]=J[a+16>>2];e=J[a+12>>2];c=b+4136|0;J[c>>2]=J[a+8>>2];J[c+ -4>>2]=e;c=J[a>>2];e=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b>>2]=c;J[b+4>>2]=e;break e;case 1:case 8:case 11:case 12:case 14:case 15:case 16:case 27:break h;case 30:break m;case 29:break n;case 26:break o;case 25:break p;case 24:break q;case 23:break r;case 7:break s;case 6:break t;case 5:break u;case 4:break v;case 3:break w;case 21:break x;case 20:break y;case 18:case 19:break z;case 2:case 22:break A;case 0:case 17:break B;case 28:break C;case 9:break D;case 13:break F}H[b+4148|0]=1;J[b+20>>2]=0;break e}c= -J[b+4>>2];a=J[b+8>>2];if(c>>>0>>0)break e;e=b+16|0;H:{if(a>>>0>=c>>>0){a=c+1|0;c=169776;break H}c=J[b>>2]+a|0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=J[b+20>>2];I:{if(c>>>0<=512){J[b+20>>2]=c+1;c=(e+(c<<3)|0)+8|0;break I}H[e|0]=1;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480}O[c>>3]=+(g|0)*1.52587890625E-5;J[b+8>>2]=a+4;break e}a=b+16|0;J:{c=J[b+20>>2];K:{if(c){c=c-1|0;J[b+20>>2]=c;k=O[(a+(c<<3)|0)+8>>3];break K}H[a|0]=1;c=J[42445];a= -J[42444];J[194120]=a;J[194121]=c;x(0,a|0);x(1,c|0);k=+z()}L:{if(R(k)<2147483648){a=~~k;break L}a=-2147483648}g=a+J[b+4380>>2]|0;M:{if((g|0)<0)break M;a=J[b+4384>>2];if(!a)break M;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if(g>>>0>=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0)break M;a=J[b+4168>>2];if(a>>>0<10)break J}J[b+8>>2]=J[b+4>>2]+1;break e}e=J[b+4>>2];c=J[b>>2];J[b+4128>>2]=c;J[b+4132>>2]=e;J[b+4168>>2]=a+1;f=b+4136|0;J[f>>2]=J[b+8>>2];a=b+P(a,20)|0;i=b+4144|0;J[a+4188>>2]=J[i>>2]; -d=a+4172|0;J[d>>2]=c;J[d+4>>2]=e;c=J[f+4>>2];a=a+4180|0;J[a>>2]=J[f>>2];J[a+4>>2]=c;d=b+4128|0;a=0;c=0;e=J[b+4384>>2];N:{if(!e)break N;h=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(g>>>0>=(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))>>>0)break N;qi(n,e,g);a=J[n>>2];c=J[n+4>>2]}J[b+4128>>2]=a;J[b+4132>>2]=c;J[i>>2]=g;J[f>>2]=0;J[f+4>>2]=2;J[b+8>>2]=J[d+8>>2];a=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=a;break e}a=b+16|0;O:{c=J[b+20>>2];P:{if(c){c=c-1|0;J[b+20>>2]=c;k=O[(a+(c<<3)|0)+8>>3];break P}H[a|0]= -1;c=J[42445];a=J[42444];J[194120]=a;J[194121]=c;x(0,a|0);x(1,c|0);k=+z()}Q:{if(R(k)<2147483648){a=~~k;break Q}a=-2147483648}g=a+J[b+4372>>2]|0;R:{if((g|0)<0)break R;a=J[b+4376>>2];if(!a)break R;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if(g>>>0>=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0)break R;a=J[b+4168>>2];if(a>>>0<10)break O}J[b+8>>2]=J[b+4>>2]+1;break e}e=J[b+4>>2];c=J[b>>2];J[b+4128>>2]=c;J[b+4132>>2]=e;J[b+4168>>2]=a+1;f=b+4136|0;J[f>>2]=J[b+8>>2];a=b+P(a,20)|0;i=b+4144|0;J[a+4188>> -2]=J[i>>2];d=a+4172|0;J[d>>2]=c;J[d+4>>2]=e;c=J[f+4>>2];a=a+4180|0;J[a>>2]=J[f>>2];J[a+4>>2]=c;d=b+4128|0;a=0;c=0;e=J[b+4376>>2];S:{if(!e)break S;h=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(g>>>0>=(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))>>>0)break S;qi(n,e,g);a=J[n>>2];c=J[n+4>>2]}J[b+4128>>2]=a;J[b+4132>>2]=c;J[i>>2]=g;J[f>>2]=0;J[f+4>>2]=1;J[b+8>>2]=J[d+8>>2];a=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=a;break e}a=J[b+20>>2];J[b+20>>2]=0;J[b+4152>>2]=J[b+4152>>2]+(a>>>1|0);break e}a=J[b+20>> -2];J[b+20>>2]=0;J[b+4156>>2]=J[b+4156>>2]+(a>>>1|0);break e}T:{if(K[b+4150|0]){a=J[b+4160>>2];break T}H[b+4150|0]=1;a=J[b+4156>>2]+(J[b+20>>2]>>>1|0)|0;J[b+4156>>2]=a;a=(a+J[b+4152>>2]|0)+7>>>3|0;J[b+4160>>2]=a}a=J[b+8>>2]+a|0;if(a>>>0>M[b+4>>2])break e;J[b+8>>2]=a;J[b+20>>2]=0;break e}a=b+4400|0;e=J[a+4>>2];J[n+8>>2]=J[a>>2];J[n+12>>2]=e;a=J[b+4396>>2];J[n>>2]=J[b+4392>>2];J[n+4>>2]=a;g=b+16|0;a=b+4392|0;f=J[b+20>>2];if(!f){e=776480;break g}d=f-1|0;J[b+20>>2]=d;e=(g+(d<<3)|0)+8|0;if(!d)break g;f= -f-2|0;J[b+20>>2]=f;k=O[(g+(f<<3)|0)+8>>3];break f}a=b+4400|0;e=J[a+4>>2];J[n+8>>2]=J[a>>2];J[n+12>>2]=e;a=J[b+4396>>2];J[n>>2]=J[b+4392>>2];J[n+4>>2]=a;e=b+16|0;a=b+4392|0;g=J[b+20>>2];U:{if(g){g=g-1|0;J[b+20>>2]=g;k=O[(e+(g<<3)|0)+8>>3];break U}H[e|0]=1;g=J[42445];e=J[42444];J[194120]=e;J[194121]=g;x(0,e|0);x(1,g|0);k=+z()}O[n>>3]=k+O[n>>3];xt(c,n);c=J[n+12>>2];J[a+8>>2]=J[n+8>>2];J[a+12>>2]=c;c=J[n+4>>2];J[a>>2]=J[n>>2];J[a+4>>2]=c;if(!K[b+4149|0]){if(!K[b+4150|0]){H[b+4150|0]=1;a=J[b+4156>>2]+ -(J[b+20>>2]>>>1|0)|0;J[b+4156>>2]=a;J[b+4160>>2]=(a+J[b+4152>>2]|0)+7>>>3}H[b+4149|0]=1}J[b+20>>2]=0;break e}a=b+4400|0;e=J[a+4>>2];J[n+8>>2]=J[a>>2];J[n+12>>2]=e;a=J[b+4396>>2];J[n>>2]=J[b+4392>>2];J[n+4>>2]=a;e=b+16|0;a=b+4392|0;g=J[b+20>>2];V:{if(g){g=g-1|0;J[b+20>>2]=g;k=O[(e+(g<<3)|0)+8>>3];break V}H[e|0]=1;g=J[42445];e=J[42444];J[194120]=e;J[194121]=g;x(0,e|0);x(1,g|0);k=+z()}O[n+8>>3]=k+O[n+8>>3];xt(c,n);c=J[n+12>>2];J[a+8>>2]=J[n+8>>2];J[a+12>>2]=c;c=J[n+4>>2];J[a>>2]=J[n>>2];J[a+4>>2]=c; -if(!K[b+4149|0]){if(!K[b+4150|0]){H[b+4150|0]=1;a=J[b+4156>>2]+(J[b+20>>2]>>>1|0)|0;J[b+4156>>2]=a;J[b+4160>>2]=(a+J[b+4152>>2]|0)+7>>>3}H[b+4149|0]=1}J[b+20>>2]=0;break e}i=J[b+20>>2];if(i>>>0>=2){h=b+16|0;d=b+4392|0;a=J[42445];l=a;g=J[42444];x(0,g|0);x(1,a|0);j=+z();e=2;a=0;while(1){f=J[d+12>>2];J[n+8>>2]=J[d+8>>2];J[n+12>>2]=f;f=J[d+4>>2];J[n>>2]=J[d>>2];J[n+4>>2]=f;W:{if(a>>>0>=i>>>0){H[h|0]=1;J[194120]=g;J[194121]=l;f=776480;break W}f=(h+(a<<3)|0)+8|0}a=a|1;X:{if(a>>>0>=i>>>0){H[h|0]=1;J[194120]= -g;J[194121]=l;k=j;break X}k=O[(h+(a<<3)|0)+8>>3]}p=O[f>>3];O[n+8>>3]=k+O[n+8>>3];O[n>>3]=p+O[n>>3];th(c,n);a=J[n+12>>2];J[d+8>>2]=J[n+8>>2];J[d+12>>2]=a;a=J[n+4>>2];J[d>>2]=J[n>>2];J[d+4>>2]=a;a=e;e=a+2|0;i=J[b+20>>2];if(e>>>0<=i>>>0)continue;break}}J[b+20>>2]=0;break e}a=0;d=xb-16|0;xb=d;g=b;l=b+16|0;i=J[b+20>>2];if(i>>>0>=2){h=b+4392|0;a=J[42445];m=a;f=J[42444];x(0,f|0);x(1,a|0);k=+z();b=2;while(1){a=b;b=J[h+12>>2];J[d+8>>2]=J[h+8>>2];J[d+12>>2]=b;b=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=b;Y:{if(e>>> -0>=i>>>0){H[l|0]=1;J[194120]=f;J[194121]=m;j=k;break Y}j=O[(l+(e<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+j;th(c,d);b=J[d+12>>2];J[h+8>>2]=J[d+8>>2];J[h+12>>2]=b;b=J[d+4>>2];J[h>>2]=J[d>>2];J[h+4>>2]=b;b=e|1;Z:{if(b>>>0>=M[g+20>>2]){H[l|0]=1;J[194120]=f;J[194121]=m;j=k;break Z}j=O[(l+(b<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+j;th(c,d);b=J[d+12>>2];J[h+8>>2]=J[d+8>>2];J[h+12>>2]=b;b=J[d+4>>2];J[h>>2]=J[d>>2];J[h+4>>2]=b;e=a;b=a+2|0;i=J[g+20>>2];if(b>>>0<=i>>>0)continue;break}}if(a>>>0>>0){b=g+4400|0;e=J[b+4>>2]; -J[d+8>>2]=J[b>>2];J[d+12>>2]=e;e=J[g+4396>>2];J[d>>2]=J[g+4392>>2];J[d+4>>2]=e;O[d>>3]=O[d>>3]+O[(l+(a<<3)|0)+8>>3];th(c,d);a=J[d+12>>2];J[b>>2]=J[d+8>>2];J[b+4>>2]=a;a=J[d+4>>2];J[g+4392>>2]=J[d>>2];J[g+4396>>2]=a}xb=d+16|0;J[g+20>>2]=0;break e}a=0;d=xb-16|0;xb=d;g=b;l=b+16|0;i=J[b+20>>2];if(i>>>0>=2){h=b+4392|0;a=J[42445];m=a;f=J[42444];x(0,f|0);x(1,a|0);k=+z();b=2;while(1){a=b;b=J[h+12>>2];J[d+8>>2]=J[h+8>>2];J[d+12>>2]=b;b=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=b;_:{if(e>>>0>=i>>>0){H[l|0]=1;J[194120]= -f;J[194121]=m;j=k;break _}j=O[(l+(e<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+j;th(c,d);b=J[d+12>>2];J[h+8>>2]=J[d+8>>2];J[h+12>>2]=b;b=J[d+4>>2];J[h>>2]=J[d>>2];J[h+4>>2]=b;b=e|1;$:{if(b>>>0>=M[g+20>>2]){H[l|0]=1;J[194120]=f;J[194121]=m;j=k;break $}j=O[(l+(b<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+j;th(c,d);b=J[d+12>>2];J[h+8>>2]=J[d+8>>2];J[h+12>>2]=b;b=J[d+4>>2];J[h>>2]=J[d>>2];J[h+4>>2]=b;e=a;b=a+2|0;i=J[g+20>>2];if(b>>>0<=i>>>0)continue;break}}if(a>>>0>>0){b=g+4400|0;e=J[b+4>>2];J[d+8>>2]=J[b>>2];J[d+12>>2]= -e;e=J[g+4396>>2];J[d>>2]=J[g+4392>>2];J[d+4>>2]=e;O[d+8>>3]=O[d+8>>3]+O[(l+(a<<3)|0)+8>>3];th(c,d);a=J[d+12>>2];J[b>>2]=J[d+8>>2];J[b+4>>2]=a;a=J[d+4>>2];J[g+4392>>2]=J[d>>2];J[g+4396>>2]=a}xb=d+16|0;J[g+20>>2]=0;break e}d=xb-48|0;xb=d;h=J[b+20>>2];if(h>>>0>=6){i=b+16|0;l=b+4392|0;a=J[42445];m=a;g=J[42444];x(0,g|0);x(1,a|0);k=+z();a=6;while(1){f=J[l+12>>2];J[d+40>>2]=J[l+8>>2];J[d+44>>2]=f;f=J[l+4>>2];J[d+32>>2]=J[l>>2];J[d+36>>2]=f;aa:{if(e>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;f=776480;break aa}f= -(i+(e<<3)|0)+8|0}o=e|1;ba:{if(o>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;j=k;break ba}j=O[(i+(o<<3)|0)+8>>3]}p=O[f>>3];O[d+40>>3]=O[d+40>>3]+j;O[d+32>>3]=p+O[d+32>>3];f=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=f;f=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=f;f=e+2|0;ca:{if(f>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;f=776480;break ca}f=(i+(f<<3)|0)+8|0}o=e+3|0;da:{if(o>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;j=k;break da}j=O[(i+(o<<3)|0)+8>>3]}p=O[f>>3];O[d+24>>3]=O[d+24>>3]+j;O[d+ -16>>3]=p+O[d+16>>3];f=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=f;f=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=f;f=e+4|0;ea:{if(f>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;f=776480;break ea}f=(i+(f<<3)|0)+8|0}e=e+5|0;fa:{if(e>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;j=k;break fa}j=O[(i+(e<<3)|0)+8>>3]}p=O[f>>3];O[d+8>>3]=O[d+8>>3]+j;O[d>>3]=p+O[d>>3];ee(c,d+32|0,d+16|0,d);e=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=e;e=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=e;e=a;a=a+6|0;h=J[b+20>>2];if(a>>>0<= -h>>>0)continue;break}}xb=d+48|0;J[b+20>>2]=0;break e}d=xb-48|0;xb=d;a=J[b+20>>2];if(a>>>0>=8){h=b+16|0;i=b+4392|0;o=a-2|0;a=J[42445];l=a;g=J[42444];x(0,g|0);x(1,a|0);k=+z();a=6;while(1){f=J[i+12>>2];J[d+40>>2]=J[i+8>>2];J[d+44>>2]=f;f=J[i+4>>2];J[d+32>>2]=J[i>>2];J[d+36>>2]=f;m=J[b+20>>2];ga:{if(m>>>0<=e>>>0){H[h|0]=1;J[194120]=g;J[194121]=l;f=776480;break ga}f=(h+(e<<3)|0)+8|0}r=e|1;ha:{if(r>>>0>=m>>>0){H[h|0]=1;J[194120]=g;J[194121]=l;j=k;break ha}j=O[(h+(r<<3)|0)+8>>3]}p=O[f>>3];O[d+40>>3]=O[d+ -40>>3]+j;O[d+32>>3]=p+O[d+32>>3];f=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=f;f=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=f;f=e+2|0;ia:{if(f>>>0>=m>>>0){H[h|0]=1;J[194120]=g;J[194121]=l;f=776480;break ia}f=(h+(f<<3)|0)+8|0}r=e+3|0;ja:{if(r>>>0>=m>>>0){H[h|0]=1;J[194120]=g;J[194121]=l;j=k;break ja}j=O[(h+(r<<3)|0)+8>>3]}p=O[f>>3];O[d+24>>3]=O[d+24>>3]+j;O[d+16>>3]=p+O[d+16>>3];f=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=f;f=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=f;f=e+4|0;ka:{if(f>>>0>=m>>> -0){H[h|0]=1;J[194120]=g;J[194121]=l;f=776480;break ka}f=(h+(f<<3)|0)+8|0}e=e+5|0;la:{if(e>>>0>=m>>>0){H[h|0]=1;J[194120]=g;J[194121]=l;j=k;break la}j=O[(h+(e<<3)|0)+8>>3]}p=O[f>>3];O[d+8>>3]=O[d+8>>3]+j;O[d>>3]=p+O[d>>3];ee(c,d+32|0,d+16|0,d);e=J[d+12>>2];J[i+8>>2]=J[d+8>>2];J[i+12>>2]=e;e=J[d+4>>2];J[i>>2]=J[d>>2];J[i+4>>2]=e;e=a;a=a+6|0;if(o>>>0>=a>>>0)continue;break}f=J[b+20>>2];a=b+4400|0;g=J[a+4>>2];J[d+40>>2]=J[a>>2];J[d+44>>2]=g;a=J[b+4396>>2];J[d+32>>2]=J[b+4392>>2];J[d+36>>2]=a;ma:{if(e>>> -0>=f>>>0){H[h|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break ma}a=(h+(e<<3)|0)+8|0}g=b+4392|0;e=e|1;na:{if(e>>>0>=f>>>0){H[h|0]=1;f=J[42445];e=J[42444];J[194120]=e;J[194121]=f;x(0,e|0);x(1,f|0);k=+z();break na}k=O[(h+(e<<3)|0)+8>>3]}j=O[a>>3];O[d+40>>3]=O[d+40>>3]+k;O[d+32>>3]=j+O[d+32>>3];th(c,d+32|0);a=J[d+44>>2];J[g+8>>2]=J[d+40>>2];J[g+12>>2]=a;a=J[d+36>>2];J[g>>2]=J[d+32>>2];J[g+4>>2]=a}xb=d+48|0;J[b+20>>2]=0;break e}d=xb-48|0;xb=d;a=J[b+20>>2];if(a>>>0>=8){h=b+16|0;i=b+4392|0; -m=a-6|0;a=J[42445];l=a;g=J[42444];x(0,g|0);x(1,a|0);j=+z();a=2;while(1){f=J[i+12>>2];J[d+40>>2]=J[i+8>>2];J[d+44>>2]=f;f=J[i+4>>2];J[d+32>>2]=J[i>>2];J[d+36>>2]=f;o=J[b+20>>2];oa:{if(o>>>0<=e>>>0){H[h|0]=1;J[194120]=g;J[194121]=l;f=776480;break oa}f=(h+(e<<3)|0)+8|0}e=e|1;pa:{if(e>>>0>=o>>>0){H[h|0]=1;J[194120]=g;J[194121]=l;k=j;break pa}k=O[(h+(e<<3)|0)+8>>3]}p=O[f>>3];O[d+40>>3]=O[d+40>>3]+k;O[d+32>>3]=p+O[d+32>>3];th(c,d+32|0);e=J[d+44>>2];J[i+8>>2]=J[d+40>>2];J[i+12>>2]=e;e=J[d+36>>2];J[i>>2]= -J[d+32>>2];J[i+4>>2]=e;e=a;a=a+2|0;if(m>>>0>=a>>>0)continue;break}f=J[b+20>>2];g=b+4400|0;i=J[g+4>>2];J[d+40>>2]=J[g>>2];J[d+44>>2]=i;g=J[b+4396>>2];J[d+32>>2]=J[b+4392>>2];J[d+36>>2]=g;qa:{if(e>>>0>=f>>>0){H[h|0]=1;g=J[42445];J[194120]=J[42444];J[194121]=g;g=776480;break qa}g=(h+(e<<3)|0)+8|0}i=e|1;ra:{if(i>>>0>=f>>>0){H[h|0]=1;l=J[42445];i=J[42444];J[194120]=i;J[194121]=l;x(0,i|0);x(1,l|0);k=+z();break ra}k=O[(h+(i<<3)|0)+8>>3]}j=O[g>>3];O[d+40>>3]=O[d+40>>3]+k;O[d+32>>3]=j+O[d+32>>3];g=J[d+44>> -2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=g;g=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=g;sa:{if(a>>>0>=f>>>0){H[h|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break sa}a=(h+(a<<3)|0)+8|0}g=e+3|0;ta:{if(g>>>0>=f>>>0){H[h|0]=1;i=J[42445];g=J[42444];J[194120]=g;J[194121]=i;x(0,g|0);x(1,i|0);k=+z();break ta}k=O[(h+(g<<3)|0)+8>>3]}j=O[a>>3];O[d+24>>3]=O[d+24>>3]+k;O[d+16>>3]=j+O[d+16>>3];a=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=a;a=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=a;a=e+4|0;ua:{if(a>>> -0>=f>>>0){H[h|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break ua}a=(h+(a<<3)|0)+8|0}g=b+4392|0;e=e+5|0;va:{if(e>>>0>=f>>>0){H[h|0]=1;f=J[42445];e=J[42444];J[194120]=e;J[194121]=f;x(0,e|0);x(1,f|0);k=+z();break va}k=O[(h+(e<<3)|0)+8>>3]}j=O[a>>3];O[d+8>>3]=O[d+8>>3]+k;O[d>>3]=j+O[d>>3];ee(c,d+32|0,d+16|0,d);a=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=a;a=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=a}xb=d+48|0;J[b+20>>2]=0;break e}d=xb-48|0;xb=d;a=b+4400|0;g=J[a+4>>2];J[d+40>>2]=J[a>>2];J[d+44>> -2]=g;a=J[b+4396>>2];J[d+32>>2]=J[b+4392>>2];J[d+36>>2]=a;h=J[b+20>>2];if(h&1){O[d+32>>3]=O[d+32>>3]+O[b+24>>3];e=1}a=e|4;if(h>>>0>=a>>>0){i=b+16|0;l=b+4392|0;f=J[42445];m=f;g=J[42444];x(0,g|0);x(1,f|0);k=+z();while(1){wa:{if(e>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;j=k;break wa}j=O[(i+(e<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+j;f=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=f;f=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=f;f=e+1|0;xa:{if(f>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;f=776480;break xa}f= -(i+(f<<3)|0)+8|0}o=e+2|0;ya:{if(o>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;j=k;break ya}j=O[(i+(o<<3)|0)+8>>3]}p=O[f>>3];O[d+24>>3]=O[d+24>>3]+j;O[d+16>>3]=p+O[d+16>>3];f=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=f;f=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=f;e=e+3|0;za:{if(e>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;j=k;break za}j=O[(i+(e<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+j;ee(c,d+32|0,d+16|0,d);e=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=e;e=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=e;e=J[d+12>> -2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=e;e=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=e;e=a;a=a+4|0;h=J[b+20>>2];if(a>>>0<=h>>>0)continue;break}}xb=d+48|0;J[b+20>>2]=0;break e}d=xb-48|0;xb=d;a=b+4400|0;g=J[a+4>>2];J[d+40>>2]=J[a>>2];J[d+44>>2]=g;a=J[b+4396>>2];J[d+32>>2]=J[b+4392>>2];J[d+36>>2]=a;h=J[b+20>>2];if(h&1){O[d+40>>3]=O[d+40>>3]+O[b+24>>3];e=1}a=e|4;if(h>>>0>=a>>>0){i=b+16|0;l=b+4392|0;f=J[42445];m=f;g=J[42444];x(0,g|0);x(1,f|0);k=+z();while(1){Aa:{if(e>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]= -m;j=k;break Aa}j=O[(i+(e<<3)|0)+8>>3]}O[d+32>>3]=O[d+32>>3]+j;f=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=f;f=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=f;f=e+1|0;Ba:{if(f>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;f=776480;break Ba}f=(i+(f<<3)|0)+8|0}o=e+2|0;Ca:{if(o>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;j=k;break Ca}j=O[(i+(o<<3)|0)+8>>3]}p=O[f>>3];O[d+24>>3]=O[d+24>>3]+j;O[d+16>>3]=p+O[d+16>>3];f=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=f;f=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]= -f;e=e+3|0;Da:{if(e>>>0>=h>>>0){H[i|0]=1;J[194120]=g;J[194121]=m;j=k;break Da}j=O[(i+(e<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+j;ee(c,d+32|0,d+16|0,d);e=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=e;e=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=e;e=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=e;e=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=e;e=a;a=a+4|0;h=J[b+20>>2];if(a>>>0<=h>>>0)continue;break}}xb=d+48|0;J[b+20>>2]=0;break e}d=xb-48|0;xb=d;g=b;h=b+16|0;a=4;i=J[b+20>>2];Ea:{if(!(i&4)){if(i>>>0<8)break Ea;l=b+4392|0;a=J[42445]; -m=a;f=J[42444];x(0,f|0);x(1,a|0);k=+z();b=8;a=0;while(1){e=a;a=b;b=J[l+12>>2];J[d+40>>2]=J[l+8>>2];J[d+44>>2]=b;b=J[l+4>>2];J[d+32>>2]=J[l>>2];J[d+36>>2]=b;Fa:{if(e>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Fa}j=O[(h+(e<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+j;b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e|1;Ga:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;b=776480;break Ga}b=(h+(b<<3)|0)+8|0}o=e|2;Ha:{if(o>>>0>=i>>>0){H[h|0]=1;J[194120]= -f;J[194121]=m;j=k;break Ha}j=O[(h+(o<<3)|0)+8>>3]}p=O[b>>3];O[d+24>>3]=O[d+24>>3]+j;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=p+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|3;Ia:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Ia}j=O[(h+(b<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+j;ee(c,d+32|0,d+16|0,d);b=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=b;b=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=b;b=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=b;b=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+ -36>>2]=b;i=J[g+20>>2];b=e|4;Ja:{if(i>>>0<=b>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Ja}j=O[(h+(b<<3)|0)+8>>3]}b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;O[d+32>>3]=O[d+32>>3]+j;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e|5;Ka:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;b=776480;break Ka}b=(h+(b<<3)|0)+8|0}o=e|6;La:{if(o>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break La}j=O[(h+(o<<3)|0)+8>>3]}p=O[b>>3];O[d+24>>3]=O[d+24>>3]+j;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+ -12>>2]=b;O[d+16>>3]=p+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|7;Ma:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Ma}j=O[(h+(b<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+j;if(!(!(i&1)|i-e>>>0>15)){Na:{if(a>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Na}j=O[(h+(a<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+j}ee(c,d+32|0,d+16|0,d);b=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=b;b=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=b;b=a+8|0;i=J[g+20>>2];if(b>>>0<=i>>>0)continue;break}break Ea}b=g+ -4400|0;e=J[b+4>>2];J[d+40>>2]=J[b>>2];J[d+44>>2]=e;b=J[g+4396>>2];e=J[g+4392>>2];J[d+32>>2]=e;J[d+36>>2]=b;O[d+40>>3]=O[d+40>>3]+O[g+24>>3];f=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=f;J[d+16>>2]=e;J[d+20>>2]=b;k=O[g+32>>3];O[d+24>>3]=O[d+24>>3]+O[g+40>>3];O[d+16>>3]=k+O[d+16>>3];b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;O[d>>3]=O[d>>3]+O[g+48>>3];l=g+4392|0;b=12;if(i>>>0>=12){a=J[42445];m=a;f=J[42444];x(0,f|0);x(1,a|0);k=+z();e=4;while(1){a=b;ee(c, -d+32|0,d+16|0,d);b=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=b;b=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=b;b=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=b;b=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=b;i=J[g+20>>2];Oa:{if(i>>>0<=e>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Oa}j=O[(h+(e<<3)|0)+8>>3]}b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;O[d+32>>3]=O[d+32>>3]+j;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e|1;Pa:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;b=776480;break Pa}b=(h+(b<< -3)|0)+8|0}o=e|2;Qa:{if(o>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Qa}j=O[(h+(o<<3)|0)+8>>3]}p=O[b>>3];O[d+24>>3]=O[d+24>>3]+j;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=p+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|3;Ra:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Ra}j=O[(h+(b<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+j;ee(c,d+32|0,d+16|0,d);b=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=b;b=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=b;b=J[d+12>>2];J[d+40>> -2]=J[d+8>>2];J[d+44>>2]=b;b=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=b;i=J[g+20>>2];b=e+4|0;Sa:{if(i>>>0<=b>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Sa}j=O[(h+(b<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+j;b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e+5|0;Ta:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;b=776480;break Ta}b=(h+(b<<3)|0)+8|0}o=e+6|0;Ua:{if(o>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Ua}j=O[(h+(o<<3)|0)+8>>3]}p=O[b>> -3];O[d+24>>3]=O[d+24>>3]+j;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=p+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e+7|0;Va:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Va}j=O[(h+(b<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+j;e=a;b=a+8|0;if(i>>>0>=b>>>0)continue;break}}if(a>>>0>>0)O[d+8>>3]=O[d+8>>3]+O[(h+(a<<3)|0)+8>>3];ee(c,d+32|0,d+16|0,d);a=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=a;a=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=a}xb=d+48|0;J[g+20>>2]=0;break e}d=xb- -48|0;xb=d;g=b;h=b+16|0;a=4;i=J[b+20>>2];Wa:{if(!(i&4)){if(i>>>0<8)break Wa;l=b+4392|0;a=J[42445];m=a;f=J[42444];x(0,f|0);x(1,a|0);k=+z();b=8;a=0;while(1){e=a;a=b;b=J[l+12>>2];J[d+40>>2]=J[l+8>>2];J[d+44>>2]=b;b=J[l+4>>2];J[d+32>>2]=J[l>>2];J[d+36>>2]=b;Xa:{if(e>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Xa}j=O[(h+(e<<3)|0)+8>>3]}b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;O[d+32>>3]=O[d+32>>3]+j;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e|1;Ya:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]= -f;J[194121]=m;b=776480;break Ya}b=(h+(b<<3)|0)+8|0}o=e|2;Za:{if(o>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break Za}j=O[(h+(o<<3)|0)+8>>3]}p=O[b>>3];O[d+24>>3]=O[d+24>>3]+j;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=p+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|3;_a:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break _a}j=O[(h+(b<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+j;ee(c,d+32|0,d+16|0,d);b=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=b;b=J[d+4>>2];J[l>>2]= -J[d>>2];J[l+4>>2]=b;b=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=b;b=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=b;i=J[g+20>>2];b=e|4;$a:{if(i>>>0<=b>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break $a}j=O[(h+(b<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+j;b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e|5;ab:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;b=776480;break ab}b=(h+(b<<3)|0)+8|0}o=e|6;bb:{if(o>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k; -break bb}j=O[(h+(o<<3)|0)+8>>3]}p=O[b>>3];O[d+24>>3]=O[d+24>>3]+j;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=p+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|7;cb:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break cb}j=O[(h+(b<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+j;if(!(!(i&1)|i-e>>>0>15)){db:{if(a>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break db}j=O[(h+(a<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+j}ee(c,d+32|0,d+16|0,d);b=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=b;b= -J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=b;b=a+8|0;i=J[g+20>>2];if(b>>>0<=i>>>0)continue;break}break Wa}e=g+4400|0;b=J[e>>2];e=J[e+4>>2];J[d+40>>2]=b;J[d+44>>2]=e;f=J[g+4396>>2];J[d+32>>2]=J[g+4392>>2];J[d+36>>2]=f;O[d+32>>3]=O[d+32>>3]+O[g+24>>3];J[d+24>>2]=b;J[d+28>>2]=e;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;k=O[g+32>>3];O[d+24>>3]=O[d+24>>3]+O[g+40>>3];O[d+16>>3]=k+O[d+16>>3];b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;O[d+8>>3]=O[d+8>>3]+O[g+ -48>>3];l=g+4392|0;b=12;if(i>>>0>=12){a=J[42445];m=a;f=J[42444];x(0,f|0);x(1,a|0);k=+z();e=4;while(1){a=b;ee(c,d+32|0,d+16|0,d);b=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=b;b=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=b;b=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=b;b=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=b;i=J[g+20>>2];eb:{if(i>>>0<=e>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break eb}j=O[(h+(e<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+j;b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;b=J[d+36>>2];J[d+16>>2]= -J[d+32>>2];J[d+20>>2]=b;b=e|1;fb:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;b=776480;break fb}b=(h+(b<<3)|0)+8|0}o=e|2;gb:{if(o>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break gb}j=O[(h+(o<<3)|0)+8>>3]}p=O[b>>3];O[d+24>>3]=O[d+24>>3]+j;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=p+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|3;hb:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break hb}j=O[(h+(b<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+j;ee(c,d+32|0,d+16|0,d); -b=J[d+12>>2];J[l+8>>2]=J[d+8>>2];J[l+12>>2]=b;b=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=b;b=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=b;b=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=b;i=J[g+20>>2];b=e+4|0;ib:{if(i>>>0<=b>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break ib}j=O[(h+(b<<3)|0)+8>>3]}b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;O[d+32>>3]=O[d+32>>3]+j;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e+5|0;jb:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;b=776480;break jb}b=(h+(b<<3)|0)+ -8|0}o=e+6|0;kb:{if(o>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break kb}j=O[(h+(o<<3)|0)+8>>3]}p=O[b>>3];O[d+24>>3]=O[d+24>>3]+j;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=p+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e+7|0;lb:{if(b>>>0>=i>>>0){H[h|0]=1;J[194120]=f;J[194121]=m;j=k;break lb}j=O[(h+(b<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+j;e=a;b=a+8|0;if(i>>>0>=b>>>0)continue;break}}if(a>>>0>>0)O[d>>3]=O[d>>3]+O[(h+(a<<3)|0)+8>>3];ee(c,d+32|0,d+16|0,d);a=J[d+12>>2]; -J[l+8>>2]=J[d+8>>2];J[l+12>>2]=a;a=J[d+4>>2];J[l>>2]=J[d>>2];J[l+4>>2]=a}xb=d+48|0;J[g+20>>2]=0;break e}a=xb-96|0;xb=a;mb:{if(J[b+20>>2]==7){g=b+4400|0;e=J[g>>2];f=J[g+4>>2];J[a+88>>2]=e;J[a+92>>2]=f;d=J[b+4396>>2];J[a+80>>2]=J[b+4392>>2];J[a+84>>2]=d;O[a+80>>3]=O[a+80>>3]+O[b+24>>3];J[a+72>>2]=e;J[a+76>>2]=f;e=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=e;k=O[b+32>>3];O[a+72>>3]=O[a+72>>3]+O[b+40>>3];O[a+64>>3]=k+O[a+64>>3];f=J[a+76>>2];e=J[a+72>>2];J[a+56>>2]=e;J[a+60>>2]=f;d=J[a+68>>2];J[a+48>> -2]=J[a+64>>2];J[a+52>>2]=d;O[a+48>>3]=O[a+48>>3]+O[b+48>>3];J[a+40>>2]=e;J[a+44>>2]=f;d=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=d;O[a+32>>3]=O[a+32>>3]+O[b+56>>3];J[a+24>>2]=e;J[a+28>>2]=f;e=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=e;O[a+16>>3]=O[a+16>>3]+O[b- -64>>3];f=J[a+92>>2];e=J[a+88>>2];J[a+24>>2]=e;J[a+28>>2]=f;J[a+8>>2]=e;J[a+12>>2]=f;e=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=e;O[a>>3]=O[a>>3]+O[b+72>>3];ee(c,a+80|0,a- -64|0,a+48|0);e=J[a+60>>2];J[g>>2]=J[a+56>>2];J[g+4>>2]=e;e=J[a+ -52>>2];J[b+4392>>2]=J[a+48>>2];J[b+4396>>2]=e;ee(c,a+32|0,a+16|0,a);c=J[a+12>>2];J[g>>2]=J[a+8>>2];J[g+4>>2]=c;c=J[a+4>>2];J[b+4392>>2]=J[a>>2];J[b+4396>>2]=c;break mb}J[b+8>>2]=J[b+4>>2]+1}xb=a+96|0;J[b+20>>2]=0;break e}a=xb-96|0;xb=a;nb:{if(J[b+20>>2]==13){e=b+4400|0;g=J[e+4>>2];J[a+88>>2]=J[e>>2];J[a+92>>2]=g;g=J[b+4396>>2];J[a+80>>2]=J[b+4392>>2];J[a+84>>2]=g;k=O[b+24>>3];O[a+88>>3]=O[a+88>>3]+O[b+32>>3];O[a+80>>3]=k+O[a+80>>3];g=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=g;g=J[a+84>>2];J[a+ -64>>2]=J[a+80>>2];J[a+68>>2]=g;k=O[b+40>>3];O[a+72>>3]=O[a+72>>3]+O[b+48>>3];O[a+64>>3]=k+O[a+64>>3];g=J[a+76>>2];J[a+56>>2]=J[a+72>>2];J[a+60>>2]=g;g=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=g;k=O[b+56>>3];O[a+56>>3]=O[a+56>>3]+O[b- -64>>3];O[a+48>>3]=k+O[a+48>>3];g=J[a+60>>2];J[a+40>>2]=J[a+56>>2];J[a+44>>2]=g;g=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=g;k=O[b+72>>3];O[a+40>>3]=O[a+40>>3]+O[b+80>>3];O[a+32>>3]=k+O[a+32>>3];g=J[a+44>>2];J[a+24>>2]=J[a+40>>2];J[a+28>>2]=g;g=J[a+36>>2];J[a+16>> -2]=J[a+32>>2];J[a+20>>2]=g;k=O[b+88>>3];O[a+24>>3]=O[a+24>>3]+O[b+96>>3];O[a+16>>3]=k+O[a+16>>3];g=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=g;g=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=g;k=O[b+104>>3];O[a+8>>3]=O[a+8>>3]+O[b+112>>3];O[a>>3]=k+O[a>>3];ee(c,a+80|0,a- -64|0,a+48|0);g=J[a+60>>2];J[e>>2]=J[a+56>>2];J[e+4>>2]=g;g=J[a+52>>2];J[b+4392>>2]=J[a+48>>2];J[b+4396>>2]=g;ee(c,a+32|0,a+16|0,a);c=J[a+12>>2];J[e>>2]=J[a+8>>2];J[e+4>>2]=c;c=J[a+4>>2];J[b+4392>>2]=J[a>>2];J[b+4396>>2]=c;break nb}J[b+ -8>>2]=J[b+4>>2]+1}xb=a+96|0;J[b+20>>2]=0;break e}a=xb-96|0;xb=a;ob:{if(J[b+20>>2]==9){g=b+4400|0;e=g;f=J[e+4>>2];J[a+88>>2]=J[e>>2];J[a+92>>2]=f;e=J[b+4396>>2];J[a+80>>2]=J[b+4392>>2];J[a+84>>2]=e;k=O[b+24>>3];O[a+88>>3]=O[a+88>>3]+O[b+32>>3];O[a+80>>3]=k+O[a+80>>3];e=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=e;e=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=e;k=O[b+40>>3];O[a+72>>3]=O[a+72>>3]+O[b+48>>3];O[a+64>>3]=k+O[a+64>>3];f=J[a+76>>2];e=J[a+72>>2];J[a+56>>2]=e;J[a+60>>2]=f;d=J[a+68>>2];J[a+ -48>>2]=J[a+64>>2];J[a+52>>2]=d;O[a+48>>3]=O[a+48>>3]+O[b+56>>3];J[a+40>>2]=e;J[a+44>>2]=f;d=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=d;O[a+32>>3]=O[a+32>>3]+O[b- -64>>3];J[a+24>>2]=e;J[a+28>>2]=f;e=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=e;k=O[b+72>>3];O[a+24>>3]=O[a+24>>3]+O[b+80>>3];O[a+16>>3]=k+O[a+16>>3];e=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=e;e=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=e;O[a>>3]=O[a>>3]+O[b+88>>3];e=J[g+4>>2];J[a+8>>2]=J[g>>2];J[a+12>>2]=e;ee(c,a+80|0,a- -64|0,a+ -48|0);e=J[a+60>>2];J[g>>2]=J[a+56>>2];J[g+4>>2]=e;e=J[a+52>>2];J[b+4392>>2]=J[a+48>>2];J[b+4396>>2]=e;ee(c,a+32|0,a+16|0,a);c=J[a+12>>2];J[g>>2]=J[a+8>>2];J[g+4>>2]=c;c=J[a+4>>2];J[b+4392>>2]=J[a>>2];J[b+4396>>2]=c;break ob}J[b+8>>2]=J[b+4>>2]+1}xb=a+96|0;J[b+20>>2]=0;break e}a=xb-96|0;xb=a;pb:{if(J[b+20>>2]==11){k=O[b+88>>3];j=O[b+72>>3];p=O[b+56>>3];s=O[b+40>>3];t=O[b+24>>3];u=O[b+96>>3];v=O[b+80>>3];e=b- -64|0;w=O[e>>3];y=O[b+48>>3];A=O[b+32>>3];g=b+4400|0;f=J[g+4>>2];J[a+88>>2]=J[g>>2];J[a+92>> -2]=f;f=J[b+4396>>2];J[a+80>>2]=J[b+4392>>2];J[a+84>>2]=f;q=O[b+24>>3];O[a+88>>3]=O[a+88>>3]+O[b+32>>3];O[a+80>>3]=q+O[a+80>>3];f=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=f;f=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=f;q=O[b+40>>3];O[a+72>>3]=O[a+72>>3]+O[b+48>>3];O[a+64>>3]=q+O[a+64>>3];f=J[a+76>>2];J[a+56>>2]=J[a+72>>2];J[a+60>>2]=f;f=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=f;q=O[b+56>>3];O[a+56>>3]=O[a+56>>3]+O[e>>3];O[a+48>>3]=q+O[a+48>>3];e=J[a+60>>2];J[a+40>>2]=J[a+56>>2];J[a+44>>2]= -e;e=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=e;q=O[b+72>>3];O[a+40>>3]=O[a+40>>3]+O[b+80>>3];O[a+32>>3]=q+O[a+32>>3];e=J[a+44>>2];J[a+24>>2]=J[a+40>>2];J[a+28>>2]=e;e=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=e;q=O[b+88>>3];O[a+24>>3]=O[a+24>>3]+O[b+96>>3];O[a+16>>3]=q+O[a+16>>3];e=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=e;e=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=e;e=b+4392|0;qb:{if(R(k+(j+(p+(s+(t+0)))))>R(u+(v+(w+(y+(A+0)))))){O[a>>3]=O[a>>3]+O[b+104>>3];f=J[g+4>>2];J[a+8>>2]=J[g>>2];J[a+ -12>>2]=f;break qb}g=J[b+4396>>2];J[a>>2]=J[b+4392>>2];J[a+4>>2]=g;O[a+8>>3]=O[a+8>>3]+O[b+104>>3]}ee(c,a+80|0,a- -64|0,a+48|0);g=J[a+60>>2];J[e+8>>2]=J[a+56>>2];J[e+12>>2]=g;g=J[a+52>>2];J[e>>2]=J[a+48>>2];J[e+4>>2]=g;ee(c,a+32|0,a+16|0,a);c=J[a+12>>2];J[e+8>>2]=J[a+8>>2];J[e+12>>2]=c;c=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=c;break pb}J[b+8>>2]=J[b+4>>2]+1}xb=a+96|0;J[b+20>>2]=0;break e}_l(a,b);break e}H[g|0]=1;f=J[42445];g=J[42444];J[194120]=g;J[194121]=f;x(0,g|0);x(1,f|0);k=+z()}O[n>>3]=k+O[n>>3]; -O[n+8>>3]=O[n+8>>3]+O[e>>3];xt(c,n);c=J[n+12>>2];J[a+8>>2]=J[n+8>>2];J[a+12>>2]=c;c=J[n+4>>2];J[a>>2]=J[n>>2];J[a+4>>2]=c;if(!K[b+4149|0]){if(!K[b+4150|0]){H[b+4150|0]=1;a=J[b+4156>>2]+(J[b+20>>2]>>>1|0)|0;J[b+4156>>2]=a;J[b+4160>>2]=(a+J[b+4152>>2]|0)+7>>>3}H[b+4149|0]=1}J[b+20>>2]=0}xb=n+16|0}function mN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=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=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0;h=xb-112|0;xb=h;d=J[b+96>>2];e=J[d+4>>2];D=J[b+540>>2];a:{if(!D){D=Jg(e,8760);if(!D){f=11;break a}J[b+540>>2]=D;J[b+516>>2]=J[D>>2];d=J[b+96>>2]}ra=b,sa=xf(d,10021,1),J[ra+544>>2]=sa;if(!J[b+548>>2])ra=b,sa=xf(be(e,10174),10252,0),J[ra+548>>2]=sa;if(!J[b+552>>2])ra=b,sa=xf(be(e,10174),10390,0),J[ra+552>>2]=sa;ja=J[a+28>>2];J[b+140>>2]=0;J[b+132>>2]=0;J[b+136>>2]=0;v=J[a+8>>2];d=md(a, -h);f=J[h>>2];if(f)break a;ka=b+132|0;pa=h+96|0;while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((d|0)<=1954115632){if((d|0)<=131071){if((d|0)==-1519689116|(d|0)==-1519619212)break o;f=2;if((d|0)==65536)break o;break a}if((d|0)<=1953658212){if((d|0)==131072)break o;f=2;if((d|0)==1330926671)break o;break a}if((d|0)==1953658213)break o;f=2;if((d|0)==1953784678)break o;break a}if((d|0)==2001684018)break m;if((d|0)==2001684038)break n;f=2;if((d|0)!=1954115633)break a}J[ka>>2]=1953784678;if((d|0)!= -1953784678)break k;f=Nc(a,94592,ka);J[h>>2]=f;if(f)break a;d=J[b+140>>2];if(d)break l;f=8;break a}f=bc(a,v);J[h>>2]=f;if(f)break a;t=J[a+28>>2];f=Nc(a,94608,h+40|0);J[h+16>>2]=f;if(f)break a;f=8;d=J[h+44>>2];if((d|0)==1953784678|(d|0)==2001684038)break a;d=J[h+48>>2];if((d|0)!=J[a+4>>2])break a;e=L[h+52>>1];if(!e|d>>>0<=P(e,20)+44>>>0)break a;e=e<<4|12;d=J[h+56>>2];if(e>>>0>=d>>>0|d&3)break a;d=J[h+68>>2];p:{if(!J[h+64>>2]){if(!(d|J[h+72>>2]))break p;break a}if(!d)break p;if(!J[h+72>>2])break a}if(!(J[h+ -80>>2]?J[h+76>>2]:1))break a;f=0;z=tc(t,e,h+16|0);if(J[h+16>>2]){l=0;v=0;break d}l=tc(t,40,h+16|0);if(J[h+16>>2]){v=0;break d}v=0;g=L[h+52>>1];f=g;q:{if(!f){d=-1;break q}while(1){d=v;v=d+1|0;e=f>>>0>1;f=f>>>1|0;if(e)continue;break}}H[z|0]=K[h+47|0];H[z+1|0]=L[h+46>>1];H[z+2|0]=J[h+44>>2]>>>8;H[z+3|0]=J[h+44>>2];H[z+4|0]=K[h+53|0];f=K[h+52|0];e=g<<4;g=16<>>8;H[z+9|0]=d;H[z+8|0]=d>>>8;H[z+7|0]=g;H[z+6|0]=g>>>8;H[z+5|0]=f;f=0;d=h+16|0;v=Tb(t,24,0,L[h+52>>1],0,d);if(J[h+ -16>>2])break d;f=Tb(t,4,0,L[h+52>>1],0,d);if(J[h+16>>2])break d;d=Tc(a,P(L[h+52>>1],20));J[h+16>>2]=d;if(d)break d;e=0;d=0;if(L[h+52>>1])while(1){g=P(d,24)+v|0;ra=g,sa=he(a),J[ra>>2]=sa;ra=g,sa=he(a),J[ra+4>>2]=sa;ra=g,sa=he(a),J[ra+8>>2]=sa;ra=g,sa=he(a),J[ra+12>>2]=sa;ra=g,sa=he(a),J[ra+16>>2]=sa;j=e;e=J[g>>2];if(j>>>0>=e>>>0){Ec(a);J[h+16>>2]=8;break d}J[(d<<2)+f>>2]=g;d=d+1|0;if(d>>>0>1])continue;break}Ec(a);Nh(f,L[h+52>>1],4,66);p=L[h+52>>1];g=p<<4|12;w=P(p,20)+44|0;r:{if(!p){d=g;break r}m= -0;j=J[h+56>>2];e=J[h+48>>2];d=g;while(1){s:{k=J[(m<<2)+f>>2];t:{if(J[k+4>>2]!=(w|0))break t;i=J[k+8>>2];if(i>>>0>e>>>0|e-i>>>0>>0)break t;s=J[k+12>>2];if(s>>>0>>0|j>>>0>>0)break t;if(j-s>>>0>=d>>>0)break s}J[h+16>>2]=8;break d}J[k+20>>2]=d;d=(s+3&-4)+d|0;w=(i+3&-4)+w|0;m=m+1|0;if((p|0)!=(m|0))continue;break}}u:{e=J[h+64>>2];if(!e)break u;if((e|0)==(w|0)){w=J[h+68>>2]+w|0;if(w>>>0<=M[h+48>>2])break u}J[h+16>>2]=8;break d}j=J[h+76>>2];if(!j){e=J[h+48>>2];break e}if((j|0)==(w+3&-4)){e=J[h+48>> -2];w=j+J[h+80>>2]|0;if(e>>>0>=w>>>0)break e}J[h+16>>2]=8;break d}f=bc(a,v);J[h>>2]=f;if(f)break a;n=J[a+28>>2];J[h+32>>2]=0;J[h+36>>2]=0;J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+12>>2]=0;f=Nc(a,94672,h+40|0);J[h+108>>2]=f;if(f)break a;f=8;if(J[h+44>>2]==2001684018)break a;j=J[h+48>>2];if((j|0)!=J[a+4>>2])break a;g=L[h+52>>1];if(!g|j>>>0<=P(g,20)+48>>>0)break a;w=J[h+68>>2];e=J[h+64>>2];v:{if(!e){d=J[h+72>>2]|w;w=0;if(!d)break v;break a}if(!w)break v;if(!J[h+72>>2])break a}if(j-e>>> -0>>0|e>>>0>=j>>>0)break a;e=J[h+76>>2];if(e>>>0>=j>>>0)break a;d=J[h+80>>2];if(!(!d|(e|0)!=0)|d>>>0>j-e>>>0)break a;v=0;J[h+104>>2]=0;ea=Tb(n,32,0,g,0,h+108|0);if(J[h+108>>2]){z=0;w=0;break f}w=Tb(n,4,0,L[h+52>>1],0,h+108|0);if(J[h+108>>2]){z=0;break f}z=0;l=0;m=0;f=0;if(L[h+52>>1])while(1){s=(l<<5)+ea|0;f=h+108|0;d=Nd(a,f);H[s|0]=d;if(J[h+108>>2])break f;e=d&63;w:{if((e|0)==63){v=md(a,f);J[s+4>>2]=v;if(J[h+108>>2]){v=0;break f}d=K[s|0];break w}v=J[(e<<2)+94736>>2];J[s+4>>2]=v}j=(v|0)!=1819239265; -g=(v|0)!=1735162214;e=Jv(a,s+8|0);J[h+108>>2]=e;v=0;if(e)break f;e=J[s+8>>2];J[s+12>>2]=e;x:{y:{f=d&255;g=g&j?f>>>0<64:f>>>0>63;if(!g){e=Jv(a,s+12|0);J[h+108>>2]=e;if(e)break f;f=J[s+12>>2];if(J[s+4>>2]==1819239265)break y;e=f}if((m^-1)>>>0>=e>>>0)break x;break g}e=0;if(f)break i}J[s+24>>2]=e;J[s+20>>2]=m;J[s+16>>2]=(d&192)>>>6|(g?0:256);J[(l<<2)+w>>2]=s;m=e+m|0;f=L[h+52>>1];l=l+1|0;if(f>>>0>l>>>0)continue;break}d=J[((f<<2)+w|0)-4>>2];e=J[d+24>>2];d=e+J[d+20>>2]|0;J[h+84>>2]=d;if(d>>>0>>0)break h; -J[h+92>>2]=0;I[h+96>>1]=1;z:{if(J[h+44>>2]==1953784678){e=h+108|0;d=md(a,e);J[h+92>>2]=d;if(J[h+108>>2])break f;if((d|0)!=65536&(d|0)!=131072)break h;d=wj(a,pa);J[h+108>>2]=d;if(d)break f;d=L[h+96>>1];if(!d)break h;ra=h,sa=Tb(n,12,0,d,0,e),J[ra+104>>2]=sa;if(J[h+108>>2])break f;f=0;if(!L[h+96>>1])break z;while(1){m=J[h+104>>2]+P(f,12)|0;d=wj(a,m+4|0);J[h+108>>2]=d;if(d)break f;d=h+108|0;ra=m,sa=md(a,d),J[ra>>2]=sa;if(J[h+108>>2])break f;ra=m,sa=Tb(n,2,0,L[m+4>>1],0,d),J[ra+8>>2]=sa;if(J[h+108>>2])break f; -l=0;A:{if(!L[m+4>>1]){e=0;break A}e=0;d=0;while(1){g=wj(a,h+6|0);J[h+108>>2]=g;if(g)break f;j=L[h+6>>1];if(j>>>0>=L[h+52>>1])break i;I[J[m+8>>2]+(d<<1)>>1]=j;g=J[J[(j<<2)+w>>2]+4>>2];e=(g|0)==1735162214?j:e;l=(g|0)==1819239265?j:l;d=d+1|0;if(d>>>0>1])continue;break}}if((l-e|0)!=1|e>>>0>l>>>0?e|l:0)break i;f=f+1|0;if(f>>>0>1])continue;break}break z}J[h+104>>2]=0}d=J[a+8>>2];J[h+88>>2]=d;g=(d+J[h+60>>2]|0)+3|0;f=g&-4;e=J[h+48>>2];if(f>>>0>e>>>0)break h;d=J[h+64>>2];if(d){if((d|0)!=(f| -0))break h;f=J[h+68>>2]+(g|3)&-4}d=J[h+76>>2];if(d){if((d|0)!=(f|0))break h;f=J[h+80>>2]+(f|3)&-4}if((e+3&-4)!=(f|0))break h;B:{ba=c>>31;f=ba+((c^ba)-ba&65535)|0;fa=L[h+96>>1];if((f|0)<(fa|0))break B;f=0;if((c|0)<0)break B;J[h+108>>2]=6;break f}C:{if(!J[h+92>>2]){f=L[h+52>>1];break C}s=J[h+104>>2]+P(f,12)|0;i=Tb(n,4,0,L[s+4>>1],0,h+108|0);if(J[h+108>>2])break f;j=L[s+4>>1];D:{if(!j)break D;f=0;if((j|0)!=1){g=j&65534;e=0;while(1){J[i+(f<<2)>>2]=J[(L[J[s+8>>2]+(f<<1)>>1]<<2)+w>>2];d=f|1;J[i+(d<<2)>> -2]=J[(L[J[s+8>>2]+(d<<1)>>1]<<2)+w>>2];f=f+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(!(j&1))break D;J[i+(f<<2)>>2]=J[(L[J[s+8>>2]+(f<<1)>>1]<<2)+w>>2]}w=Tb(n,4,L[h+52>>1],j,w,h+108|0);if(J[h+108>>2])break f;j=L[s+4>>1];E:{if(!j)break E;l=0;f=0;if(j>>>0>=4){g=j&65532;e=0;while(1){m=f<<2;J[m+w>>2]=J[i+m>>2];d=m|4;J[d+w>>2]=J[d+i>>2];d=m|8;J[d+w>>2]=J[d+i>>2];d=m|12;J[d+w>>2]=J[d+i>>2];f=f+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}e=j&3;if(!e)break E;while(1){d=f<<2;J[d+w>>2]=J[d+i>>2];f=f+1| -0;l=l+1|0;if((e|0)!=(l|0))continue;break}}if(i)Ab[J[n+8>>2]](n,i);J[h+44>>2]=J[s>>2];f=L[s+4>>1];I[h+52>>1]=f}e=(f&65535)<<4|12;J[h+8>>2]=e;f=J[h+56>>2];if(f>>>0>e>>>0){d=J[h+48>>2];d=d>>>0>>6>>>0?d<<6:f;e=d>>>0>=67108864?67108864:d;J[h+8>>2]=e}d=h+108|0;l=tc(n,e,d);J[h+12>>2]=l;if(J[h+108>>2])break f;v=tc(n,40,d);if(J[h+108>>2])break f;H[l|0]=K[h+47|0];H[l+1|0]=L[h+46>>1];H[l+2|0]=J[h+44>>2]>>>8;H[l+3|0]=J[h+44>>2];j=L[h+52>>1];if(j){d=0;f=j;while(1){g=d;d=d+1|0;m=f>>>0>1;f=f>>>1|0;if(m)continue; -break}H[l+4|0]=j>>>8;f=K[h+52|0];d=j<<4;j=16<>>8;H[l+9|0]=g;H[l+8|0]=g>>>8;H[l+7|0]=j;H[l+6|0]=j>>>8;H[l+5|0]=f;d=L[h+52>>1]}else d=0;ra=h,sa=up(l,12),J[ra+16>>2]=sa;Nh(w,d,4,67);d=J[h+84>>2];if(!d|d>>>0>e>>>0)break g;la=h+108|0;z=tc(n,d,la);if(J[h+108>>2])break f;d=Tc(a,J[h+60>>2]);J[h+108>>2]=d;if(d)break f;J[h+108>>2]=7;Ec(a);if(J[h+108>>2])break f;ma=J[h+84>>2];N=h+8|0;e=0;o=0;A=0;ca=0;da=0;i=xb-48|0;xb=i;J[i+16>>2]=0;d=J[h+12>>2];J[i+12>>2]=d;R=L[h+52>>1];s= -R<<4|12;J[i+8>>2]=s;J[i>>2]=0;B=h+16|0;ga=J[B>>2];F:{G:{if(R){H:{while(1){l=J[(e<<2)+w>>2];if(J[l+4>>2]==1735162214)break H;e=e+1|0;if((R|0)!=(e|0))continue;break}l=0}J[B+12>>2]=l;T=B+12|0;e=0;I:{while(1){f=J[(e<<2)+w>>2];if(J[f+4>>2]!=1819239265){e=e+1|0;if((R|0)!=(e|0))continue;break I}break}J[B+16>>2]=f;e=8;if(!l|(J[f+16>>2]^J[l+16>>2])&256)break F;e=B+16|0;break G}J[B+16>>2]=0;e=8;if(l)break F;e=B+16|0;break G}J[B+12>>2]=0;J[B+16>>2]=0;T=B+12|0;e=B+16|0}na=e;e=i+16|0;u=Tb(n,1,0,16,0,e);J:{K:{if(J[i+ -16>>2])break K;o=tc(n,40,e);if(J[i+16>>2])break K;J[o+32>>2]=0;J[o+8>>2]=0;J[o+4>>2]=ma;J[o>>2]=z;J[o+20>>2]=0;J[o+24>>2]=0;L:{M:{N:{if(!R)break N;qa=z+8|0;ha=12;while(1){g=J[(da<<2)+w>>2];e=J[g+28>>2];f=J[g+16>>2];aa=J[g+8>>2];W=J[g+4>>2];j=J[g+24>>2];g=J[g+20>>2];l=bc(o,g);J[i+16>>2]=l;if(g+j>>>0>ma>>>0|l)break L;O:{P:{if((W|0)==1751672161){e=yd(o,34);J[i+44>>2]=e;if(e)break M;ca=rc(o,i+44|0);if(J[i+44>>2])break M;I[B+6>>1]=ca;if(!(f&256))break P;break M}I[B+6>>1]=ca;J[i+4>>2]=0;if(f&256){Q:{R:{S:{T:{U:{if((W| -0)!=1819239265){if((W|0)==1752003704)break U;if((W|0)!=1735162214)break M;e=0;J[i+44>>2]=0;J[i+40>>2]=d;m=J[o+8>>2];J[i+36>>2]=s;k=i+44|0;q=Tb(n,12,0,7,0,k);if(J[i+44>>2])break S;d=yd(o,4);J[i+44>>2]=d;if(d)break S;Y=rc(o,k);if(J[i+44>>2])break S;ia=rc(o,k);l=0;r=0;C=0;if(J[i+44>>2])break R;I[B+4>>1]=Y;t=Y+1|0;V:{if(J[J[B+16>>2]+8>>2]!=t<<(ia?2:1)|M[J[T>>2]+12>>2]<36)break V;f=md(o,k);if(J[i+44>>2])break R;if(f>>>0>J[J[T>>2]+12>>2]-36>>>0)break V;J[q+8>>2]=f;d=m+36|0;J[q+4>>2]=d;J[q>>2]=d;j=md(o, -k);if(J[i+44>>2])break R;f=f+36|0;if(j>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+20>>2]=j;d=f+m|0;J[q+16>>2]=d;J[q+12>>2]=d;g=md(o,k);if(J[i+44>>2])break R;f=f+j|0;if(g>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+32>>2]=g;d=f+m|0;J[q+28>>2]=d;J[q+24>>2]=d;j=md(o,k);if(J[i+44>>2])break R;f=f+g|0;if(j>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+44>>2]=j;d=f+m|0;J[q+40>>2]=d;J[q+36>>2]=d;g=md(o,i+44|0);if(J[i+44>>2])break R;f=f+j|0;if(g>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+56>>2]=g;d=f+m|0;J[q+52>>2]=d;J[q+48>> -2]=d;j=md(o,i+44|0);if(J[i+44>>2])break R;g=f+g|0;if(j>>>0>J[J[T>>2]+12>>2]-g>>>0)break V;J[q+68>>2]=j;d=g+m|0;J[q- -64>>2]=d;J[q+60>>2]=d;f=md(o,i+44|0);if(J[i+44>>2])break R;d=g+j|0;if(f>>>0>J[J[T>>2]+12>>2]-d>>>0)break V;J[q+80>>2]=f;d=d+m|0;J[q+76>>2]=d;J[q+72>>2]=d;e=Tb(n,4,0,t,0,k);if(J[i+44>>2])break S;oa=J[q+64>>2];J[q+64>>2]=oa+(Y+31>>>3&16380);r=Tb(n,1,0,5120,0,k);if(J[i+44>>2])break R;ra=B,sa=Tb(n,2,0,Y,0,k),J[ra+8>>2]=sa;if(J[i+44>>2])break R;d=5120;Z=0;l=s;W:{if(Y){while(1){J[i+32>>2]= -0;I[i+30>>1]=0;f=bc(o,(Z>>>3|0)+oa|0);J[i+44>>2]=f;X:{Y:{if(f)break Y;j=i+44|0;g=Nd(o,j);if(J[i+44>>2])break Y;f=bc(o,J[q+4>>2]);J[i+44>>2]=f;if(f)break Y;U=rc(o,j);if(J[i+44>>2])break Y;X=128>>>(Z&7)&g;J[q+4>>2]=J[q+4>>2]+2;Z:{if(U){if((U|0)==65535){H[i+22|0]=0;I[i+28>>1]=0;if(!X)break Y;g=0;j=xb-16|0;xb=j;k=J[q+52>>2];m=bc(o,k);J[j+12>>2]=m;_:{if(m)break _;l=32;while(1){if(l&32){l=rc(o,j+12|0);m=J[j+12>>2];if(m)break _;g=l>>>8&1|g;m=l&1?6:4;f=m+2|0;$:{if(l&8)break $;f=m+4|0;if(l&64)break $;f=m| -l>>>4&8}m=yd(o,f);J[j+12>>2]=m;if(!m)continue;break _}break}J[i+24>>2]=J[o+8>>2]-k;H[i+22|0]=g;m=J[j+12>>2]}xb=j+16|0;if(m)break Y;C=0;l=0;if(K[i+22|0]){f=bc(o,J[q+40>>2]);J[i+44>>2]=f;if(f)break Y;f=wj(o,i+28|0);J[i+44>>2]=f;if(f)break Y;J[q+40>>2]=J[o+8>>2];l=L[i+28>>1]}f=(J[i+24>>2]+(l&65535)|0)+12|0;if(f>>>0>d>>>0){r=Tb(n,1,d,f,r,i+44|0);if(J[i+44>>2])break Y;C=J[i+32>>2];d=f}f=r+C|0;H[f|0]=255;H[f+1|0]=255;g=J[i+32>>2]+2|0;J[i+32>>2]=g;f=bc(o,J[q+64>>2]);J[i+44>>2]=f;if(f)break Y;ra=i,sa=rc(o, -i+44|0),I[ra+30>>1]=sa;if(J[i+44>>2])break Y;f=bc(o,J[q+64>>2]);J[i+44>>2]=f;if(f)break Y;f=Dd(o,g+r|0,8);J[i+44>>2]=f;if(f)break Y;J[q+64>>2]=J[q+64>>2]+8;g=J[i+32>>2]+8|0;J[i+32>>2]=g;f=bc(o,J[q+52>>2]);J[i+44>>2]=f;if(f)break Y;f=Dd(o,g+r|0,J[i+24>>2]);J[i+44>>2]=f;if(f)break Y;f=J[i+24>>2];J[q+52>>2]=f+J[q+52>>2];C=f+J[i+32>>2]|0;J[i+32>>2]=C;if(!K[i+22|0])break Z;f=r+C|0;H[f|0]=K[i+29|0];H[f+1|0]=K[i+28|0];g=J[i+32>>2]+2|0;J[i+32>>2]=g;f=bc(o,J[q+76>>2]);J[i+44>>2]=f;if(f)break Y;f=Dd(o,g+r| -0,L[i+28>>1]);J[i+44>>2]=f;if(f)break Y;f=L[i+28>>1];J[q+76>>2]=f+J[q+76>>2];C=f+J[i+32>>2]|0;J[i+32>>2]=C;break Z}l=0;C=Tb(n,2,0,U,0,i+44|0);if(J[i+44>>2])break V;f=bc(o,J[q+16>>2]);J[i+44>>2]=f;j=0;m=0;if(f)break V;while(1){f=wj(o,i+28|0);J[i+44>>2]=f;if(f)break V;f=L[i+28>>1];I[(j<<1)+C>>1]=f;E=f+m|0;if(E>>>0>>0)break V;m=E;j=j+1|0;if((U|0)!=(j|0))continue;break}J[q+16>>2]=J[o+8>>2];if(M[q+32>>2]>>0)break V;k=J[q+44>>2];g=J[q+40>>2];j=g-J[q+36>>2]|0;if(k>>>0>>0)break V;p=J[o>>2];f=J[q+ -28>>2];J[i+24>>2]=0;l=Tb(n,12,0,m,0,i+44|0);if(J[i+44>>2])break V;y=f+p|0;F=g+p|0;f=0;_=0;G=0;V=0;g=0;$=8;A=k-j|0;aa:{if(A>>>0>>0)break aa;if(m)while(1){j=K[y+V|0];O=j&127;k=1;ba:{if(O>>>0<84)break ba;k=2;if(O>>>0<120)break ba;k=O>>>0<124?3:4}g=k+f|0;if(A>>>0>>0|g>>>0>>0)break aa;S=j<<24>>24;ca:{if(O>>>0<=9){Q=0;f=K[f+F|0]|O<<7&1792;x=S&1?f:0-f|0;break ca}if(O>>>0<=19){x=0;f=K[f+F|0]|(O<<7)+768&1792;Q=S&1?f:0-f|0;break ca}if(O>>>0<=83){k=K[f+F|0];j=O-20|0;f=k&15|j<<2&48;x=S&2?f+1|0:f^-1; -f=j&48|k>>>4;Q=S&1?f+1|0:f^-1;break ca}if(O>>>0<=119){p=f+F|0;k=O-84|0;j=((k&255)>>>0)/12|0;f=K[p|0]|j<<8;Q=S&1?f+1|0:f^-1;f=K[p+1|0]|k+(j<<2)<<6&768;x=S&2?f+1|0:f^-1;break ca}k=f+F|0;if(O>>>0<=123){j=K[k+1|0];f=K[k|0]<<4|j>>>4;Q=S&1?f:0-f|0;f=K[k+2|0]|j<<8&3840;x=S&2?f:0-f|0;break ca}f=K[k+1|0]|K[k|0]<<8;Q=S&1?f:0-f|0;f=K[k+3|0]|K[k+2|0]<<8;x=S&2?f:0-f|0}if((G^2147483647)<(Q|0)&(G|0)>0|(G|0)<0&(-2147483648-G|0)>(Q|0)|((_^2147483647)<(x|0)&(_|0)>0|(_|0)<0&(-2147483648-_|0)>(x|0)))break aa;f=P(V,12)+ -l|0;H[f+8|0]=(S|0)>=0;_=x+_|0;J[f+4>>2]=_;G=G+Q|0;J[f>>2]=G;f=g;V=V+1|0;if((V|0)!=(m|0))continue;break}J[i+24>>2]=g;$=0}if($)break V;J[q+28>>2]=J[q+28>>2]+m;f=J[q+40>>2]+J[i+24>>2]|0;J[q+40>>2]=f;f=bc(o,f);J[i+44>>2]=f;if(f)break V;f=wj(o,i+22|0);J[i+44>>2]=f;if(f)break V;J[q+40>>2]=J[o+8>>2];if(m>>>0>134217727)break V;m=0;f=(L[i+22>>1]+(P(E,5)+(U<<1)|0)|0)+12|0;da:{if(f>>>0<=d>>>0){f=d;break da}r=Tb(n,1,d,f,r,i+44|0);if(J[i+44>>2])break V;m=J[i+32>>2]}g=m+r|0;d=U<<8|U>>>8;H[g|0]=d;H[g+1|0]=d>>>8; -g=J[i+32>>2]+2|0;J[i+32>>2]=g;ea:{if(X){d=bc(o,J[q+64>>2]);J[i+44>>2]=d;if(d)break V;ra=i,sa=rc(o,i+44|0),I[ra+30>>1]=sa;if(J[i+44>>2])break V;d=bc(o,J[q+64>>2]);J[i+44>>2]=d;if(d)break V;d=Dd(o,g+r|0,8);J[i+44>>2]=d;if(d)break V;J[q+64>>2]=J[q+64>>2]+8;break ea}g=0;d=0;m=0;F=0;fa:{if(!E){j=0;break fa}A=1;m=J[l+4>>2];d=J[l>>2];if((E|0)==1){j=m;g=d;break fa}g=E-1|0;p=g&1;ga:{if((E|0)==2){g=d;j=m;break ga}k=g&-2;g=d;j=m;while(1){x=P(A,12)+l|0;X=J[x+16>>2];$=J[x+4>>2];j=(j|0)<($|0)?$:j;j=(j|0)<(X|0)? -X:j;y=J[x+12>>2];x=J[x>>2];g=(g|0)<(x|0)?x:g;g=(g|0)<(y|0)?y:g;m=(m|0)>($|0)?$:m;m=(m|0)>(X|0)?X:m;d=(d|0)>(x|0)?x:d;d=(d|0)>(y|0)?y:d;A=A+2|0;F=F+2|0;if((k|0)!=(F|0))continue;break}}if(!p)break fa;k=P(A,12)+l|0;p=J[k+4>>2];j=(j|0)<(p|0)?p:j;k=J[k>>2];g=(g|0)<(k|0)?k:g;m=(m|0)>(p|0)?p:m;d=(d|0)>(k|0)?k:d}H[r+9|0]=j;H[r+7|0]=g;H[r+5|0]=m;H[r+3|0]=d;H[r+8|0]=j>>>8;H[r+6|0]=g>>>8;H[r+4|0]=m>>>8;H[r+2|0]=d>>>8;I[i+30>>1]=d}J[i+32>>2]=10;g=r+10|0;m=-1;j=0;while(1){d=g;m=L[(j<<1)+C>>1]+m|0;if((m|0)>65535)break V; -k=m<<8|(m&65280)>>>8;H[d|0]=k;H[d+1|0]=k>>>8;J[i+32>>2]=J[i+32>>2]+2;g=d+2|0;j=j+1|0;if((U|0)!=(j|0))continue;break}j=L[i+22>>1];g=j<<8|j>>>8;H[d+2|0]=g;H[d+3|0]=g>>>8;g=J[i+32>>2]+2|0;J[i+32>>2]=g;d=bc(o,J[q+76>>2]);J[i+44>>2]=d;if(d)break V;d=Dd(o,g+r|0,j);J[i+44>>2]=d;if(d)break V;d=L[i+22>>1];J[q+76>>2]=d+J[q+76>>2];J[i+32>>2]=d+J[i+32>>2];m=f;f=0;A=0;j=0;G=0;F=0;V=0;g=(d+(U<<1)|0)+12|0;ha:{ia:{ja:{if(E){y=r-1|0;x=255;while(1){k=P(V,12)+l|0;p=J[k+4>>2];d=K[k+8|0]!=0;k=J[k>>2];ka:{if((k|0)==(f| -0)){d=d|16;break ka}f=k-f|0;if(f+255>>>0<=510){G=G+1|0;d=((f|0)>0?18:2)|d;break ka}G=G+2|0}la:{if((p|0)==(A|0)){d=d|32;break la}f=p-A|0;if(f+255>>>0<=510){F=F+1|0;d=((f|0)>0?36:4)|d;break la}F=F+2|0}ma:{if(!((j&255)==255|(x&255)!=(d|0))){f=g+y|0;H[f|0]=K[f|0]|8;j=j+1|0;break ma}if(j&255){f=8;if(g>>>0>=m>>>0)break ha;H[g+r|0]=j;g=g+1|0}f=8;if(g>>>0>=m>>>0)break ha;H[g+r|0]=d;g=g+1|0;j=0}x=d;f=k;A=p;V=V+1|0;if((E|0)!=(V|0))continue;break}if(j&255){d=8;if(g>>>0>=m>>>0)break ia;H[g+r|0]=j;f=g+1|0}else f= -g;d=8;g=F+G|0;if(g>>>0>>0)break ia;g=f+g|0;if(g>>>0>>0|g>>>0>m>>>0)break ia;g=f+G|0;if(!E)break ja;j=0;d=0;x=0;while(1){p=d;A=P(x,12)+l|0;d=J[A+4>>2];k=j;j=J[A>>2];na:{if((k|0)==(j|0))break na;k=j-k|0;if(k+255>>>0<=510){A=k;k=k>>31;H[f+r|0]=(A^k)-k;f=f+1|0;break na}A=f+r|0;k=k<<8|(k&65280)>>>8;H[A|0]=k;H[A+1|0]=k>>>8;f=f+2|0}oa:{if((d|0)==(p|0))break oa;k=d-p|0;if(k+255>>>0<=510){p=k;k=k>>31;H[g+r|0]=(p^k)-k;g=g+1|0;break oa}p=g+r|0;k=k<<8|(k&65280)>>>8;H[p|0]=k;H[p+1|0]=k>>>8;g=g+2|0}x=x+1| -0;if((E|0)!=(x|0))continue;break}break ja}d=8;if(g>>>0>m>>>0)break ia}J[i+32>>2]=g;d=0}f=d}if(f)break V;if(l)Ab[J[n+8>>2]](n,l);if(C)Ab[J[n+8>>2]](n,C);C=J[i+32>>2];d=m;break Z}C=0;l=0;if(X)break V}J[(Z<<2)+e>>2]=J[i+36>>2]-s;g=i+40|0;f=i+36|0;if(Cv(g,N,f,r,C,n))break Y;k=xb-16|0;xb=k;y=J[g>>2];j=J[f>>2];H[k+10|0]=0;I[k+8>>1]=0;A=8;pa:{if(j>>>0>4294967292)break pa;l=j+3&-4;qa:{if((j|0)==(l|0)){l=j;break qa}J[k+12>>2]=0;if(l>>>0>31457280)break pa;m=J[N>>2];if(m>>>0>>0){y=Tb(n,1,m,l,y,k+12|0);if(J[k+ -12>>2])break pa;J[N>>2]=l}Mb(j+y|0,k+8|0,l-j|0);if(J[k+12>>2])break pa}J[g>>2]=y;J[f>>2]=l;A=0}xb=k+16|0;if(!A)break X}C=0;break W}ra=i,sa=J[i+4>>2]+up(r,C)|0,J[ra+4>>2]=sa;if(U)I[J[B+8>>2]+(Z<<1)>>1]=L[i+30>>1];Z=Z+1|0;if((Z|0)!=(Y|0))continue;break}l=J[i+36>>2]}d=J[T>>2];f=l-J[d+28>>2]|0;J[d+8>>2]=f;J[J[na>>2]+28>>2]=l;J[(Y<<2)+e>>2]=f;C=0;d=0;m=0;y=0;x=xb-16|0;xb=x;J[x+8>>2]=0;k=J[i+36>>2];A=J[i+40>>2];E=t<<(ia?2:1);g=Tb(n,1,0,E,0,x+8|0);ra:{if(J[x+8>>2])break ra;sa:{if(!t)break sa;ta:{if(ia){d= -g;if((t|0)!=1){j=t&-2;while(1){f=m<<2;l=J[f+e>>2];l=l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24);H[d|0]=l;H[d+1|0]=l>>>8;H[d+2|0]=l>>>16;H[d+3|0]=l>>>24;f=J[(f|4)+e>>2];f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;m=m+2|0;d=d+8|0;y=y+2|0;if((j|0)!=(y|0))continue;break}}if(!(t&1))break ta;f=J[(m<<2)+e>>2];f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;break ta}d=g;if(t>>>0>=4){j=t&-4;l=0;while(1){p= -m<<2;f=J[p+e>>2];H[d+1|0]=f>>>1;H[d|0]=f>>>9;f=J[(p|4)+e>>2];H[d+3|0]=f>>>1;H[d+2|0]=f>>>9;f=J[(p|8)+e>>2];H[d+5|0]=f>>>1;H[d+4|0]=f>>>9;f=J[(p|12)+e>>2];H[d+7|0]=f>>>1;H[d+6|0]=f>>>9;m=m+4|0;d=d+8|0;l=l+4|0;if((j|0)!=(l|0))continue;break}}j=t&3;if(!j)break ta;while(1){f=J[(m<<2)+e>>2];H[d+1|0]=f>>>1;H[d|0]=f>>>9;m=m+1|0;d=d+2|0;y=y+1|0;if((j|0)!=(y|0))continue;break}}d=0;f=E&-4;if(!f){m=0;break sa}m=0;while(1){m=(K[g+(d|3)|0]|(K[g+(d|1)|0]<<16|K[d+g|0]<<24|K[g+(d|2)|0]<<8))+m|0;d=d+4|0;if(f>>>0> -d>>>0)continue;break}d=f}if((d|0)!=(E|0)){f=0;while(1){f=K[d+g|0]<<((d^-1)<<3)|f;d=d+1|0;if(E>>>0>d>>>0)continue;break}m=f+m|0}J[i>>2]=m;J[x+12>>2]=0;ua:{f=k+E|0;if(f>>>0>31457280)break ua;d=J[N>>2];if(d>>>0>>0){A=Tb(n,1,d,f,A,x+12|0);if(J[x+12>>2])break ua;J[N>>2]=f}Mb(k+A|0,g,E);if(J[x+12>>2])break ua;J[i+40>>2]=A;J[i+36>>2]=f;break ra}if(J[x+8>>2])break ra;J[x+8>>2]=8}if(g)Ab[J[n+8>>2]](n,g);xb=x+16|0;if(!J[x+8>>2])break T}l=0}if(J[i+44>>2])break R;J[i+44>>2]=8;break R}J[i+4>>2]=J[i>>2];s=e; -break O}e=ca;if(!A){l=0;k=xb-16|0;xb=k;d=8;va:{if(!R)break va;wa:{while(1){f=J[(l<<2)+w>>2];if(J[f+4>>2]==1835104368)break wa;l=l+1|0;if((R|0)!=(l|0))continue;break}f=0}l=0;while(1){e=J[(l<<2)+w>>2];if(J[e+4>>2]!=1751474532){l=l+1|0;if((R|0)!=(l|0))continue;break va}break}if(!f|!J[B+16>>2])break va;d=bc(o,J[f+20>>2]);if(d)break va;d=yd(o,8);J[k+12>>2]=d;if(d)break va;f=k+12|0;m=rc(o,f);d=J[k+12>>2];if(d)break va;I[B+4>>1]=m;d=bc(o,J[e+20>>2]);J[k+12>>2]=d;if(d)break va;d=yd(o,50);J[k+12>>2]=d;if(d)break va; -e=rc(o,f);d=J[k+12>>2];if(d)break va;ra=B,sa=Tb(n,2,0,m,0,f),J[ra+8>>2]=sa;d=J[k+12>>2];if(d)break va;d=0;if(!m)break va;d=e&65535;j=d?4:2;l=J[J[B+16>>2]+20>>2];f=0;if(!d)while(1){d=bc(o,l);J[k+12>>2]=d;if(d)break va;e=rc(o,k+12|0);d=J[k+12>>2];if(d)break va;d=bc(o,J[J[B+12>>2]+20>>2]+(e<<1)|0);J[k+12>>2]=d;if(d)break va;d=yd(o,2);J[k+12>>2]=d;if(d)break va;d=rc(o,k+12|0);I[J[B+8>>2]+(f<<1)>>1]=d;d=J[k+12>>2];if(d)break va;l=j+l|0;d=0;f=f+1|0;if((m|0)!=(f|0))continue;break va}while(1){d=bc(o,l);J[k+ -12>>2]=d;if(d)break va;g=k+12|0;e=md(o,g);d=J[k+12>>2];if(d)break va;d=bc(o,e+J[J[B+12>>2]+20>>2]|0);J[k+12>>2]=d;if(d)break va;d=yd(o,2);J[k+12>>2]=d;if(d)break va;d=rc(o,g);I[J[B+8>>2]+(f<<1)>>1]=d;d=J[k+12>>2];if(d)break va;l=j+l|0;d=0;f=f+1|0;if((m|0)!=(f|0))continue;break}}xb=k+16|0;if(d)break M;e=L[B+6>>1]}p=L[B+4>>1];e=e&65535;k=J[B+8>>2];l=0;m=0;r=0;t=xb-16|0;xb=t;J[t+12>>2]=0;J[t+8>>2]=J[i+12>>2];J[t+4>>2]=J[i+8>>2];d=t+12|0;f=Nd(o,d);xa:{ya:{za:{if(!(f&3)|(J[t+12>>2]|f>>>0>3))break za;if(p>>> -0<=(e-1&65535)>>>0)break ya;r=Tb(n,2,0,e,0,d);if(J[t+12>>2])break za;m=Tb(n,2,0,p,0,d);if(J[t+12>>2])break ya;g=f&2;f=f&1;y=0;while(1){d=rc(o,t+12|0);if(J[t+12>>2])break ya;I[(y<<1)+r>>1]=d;y=y+1|0;if((e|0)!=(y|0))continue;break}Aa:{if(!f){while(1){d=rc(o,t+12|0);if(J[t+12>>2])break za;I[(l<<1)+m>>1]=d;l=l+1|0;if((e|0)!=(l|0))continue;break}break Aa}y=0;if(e-1>>>0>=3){f=e&65532;Q=0;while(1){j=l<<1;I[j+m>>1]=L[j+k>>1];d=j|2;I[d+m>>1]=L[d+k>>1];d=j|4;I[d+m>>1]=L[d+k>>1];d=j|6;I[d+m>>1]=L[d+k>>1];l= -l+4|0;Q=Q+4|0;if((f|0)!=(Q|0))continue;break}}f=e&3;if(!f)break Aa;while(1){d=l<<1;I[d+m>>1]=L[d+k>>1];l=l+1|0;y=y+1|0;if((f|0)!=(y|0))continue;break}}Ba:{if(e>>>0>=p>>>0)break Ba;if(!g){l=e;while(1){d=rc(o,t+12|0);if(J[t+12>>2])break za;I[(l<<1)+m>>1]=d;l=l+1|0;if((p|0)!=(l|0))continue;break}break Ba}j=p+(e^-1)|0;g=p-e&3;Ca:{if(!g){d=e;break Ca}l=0;d=e;while(1){f=d<<1;I[f+m>>1]=L[f+k>>1];d=d+1|0;l=l+1|0;if((g|0)!=(l|0))continue;break}}if(j>>>0<3)break Ba;while(1){g=d<<1;I[g+m>>1]=L[g+k>>1];f=g+2| -0;I[f+m>>1]=L[f+k>>1];f=g+4|0;I[f+m>>1]=L[f+k>>1];f=g+6|0;I[f+m>>1]=L[f+k>>1];d=d+4|0;if((p|0)!=(d|0))continue;break}}y=0;j=e+p<<1;l=Tb(n,1,0,j,0,t+12|0);if(J[t+12>>2])break ya;g=p>>>0<=1?1:p;d=l;while(1){if(e>>>0>y>>>0){f=(y<<1)+r|0;H[d|0]=K[f+1|0];H[d+1|0]=K[f|0];d=d+2|0}f=(y<<1)+m|0;H[d|0]=K[f+1|0];H[d+1|0]=K[f|0];d=d+2|0;y=y+1|0;if((g|0)!=(y|0))continue;break}ra=i,sa=up(l,j),J[ra+4>>2]=sa;if(Cv(t+8|0,N,t+4|0,l,j,n))break ya;J[i+12>>2]=J[t+8>>2];J[i+8>>2]=J[t+4>>2];if(r)Ab[J[n+8>>2]](n,r);if(m)Ab[J[n+ -8>>2]](n,m);if(l)Ab[J[n+8>>2]](n,l);d=J[t+12>>2];break xa}l=0}if(r)Ab[J[n+8>>2]](n,r);if(m)Ab[J[n+8>>2]](n,m);if(l)Ab[J[n+8>>2]](n,l);d=J[t+12>>2];d=d?d:8}xb=t+16|0;if(d)break M;break O}f=J[na>>2];d=J[i+36>>2];J[f+8>>2]=d-J[f+28>>2];J[i+8>>2]=d;J[i+12>>2]=J[i+40>>2];if(q)Ab[J[n+8>>2]](n,q);if(e)Ab[J[n+8>>2]](n,e);l=0;break Q}l=0;r=0;C=0}J[i+12>>2]=J[i+40>>2];if(q)Ab[J[n+8>>2]](n,q);if(e)Ab[J[n+8>>2]](n,e)}if(C)Ab[J[n+8>>2]](n,C);if(r)Ab[J[n+8>>2]](n,r);if(l)Ab[J[n+8>>2]](n,l);A=1;if(!J[i+44>>2])break O; -break M}if((W|0)!=1751474532)break P;if(j>>>0<12)break M;e=g+qa|0;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0}g=g+z|0;m=0;e=0;C=0;r=j&-4;if(r)while(1){C=(K[g+(e|3)|0]|(K[g+(e|1)|0]<<16|K[e+g|0]<<24|K[g+(e|2)|0]<<8))+C|0;e=e+4|0;if(r>>>0>e>>>0)continue;break}if((j|0)!=(r|0)){while(1){m=K[g+r|0]<<((r^-1)<<3)|m;r=r+1|0;if(j>>>0>r>>>0)continue;break}C=m+C|0}J[i+4>>2]=C;J[i+44>>2]=0;f=j+s|0;if(f>>>0>31457280)break M;e=J[N>>2];if(e>>>0>>0){d=Tb(n,1,e,f,d,i+44|0);if(J[i+44>>2])break M;J[N>>2]=f}Mb(d+s| -0,g,j);J[i+12>>2]=d;J[i+8>>2]=f;if(J[i+44>>2])break M}p=J[i+4>>2];H[u+15|0]=aa;H[u+11|0]=s;H[u+7|0]=p;H[u+3|0]=W;H[u+14|0]=aa>>>8;H[u+13|0]=aa>>>16;H[u+12|0]=aa>>>24;H[u+10|0]=s>>>8;H[u+9|0]=s>>>16;H[u+8|0]=s>>>24;H[u+6|0]=p>>>8;H[u+5|0]=p>>>16;H[u+4|0]=p>>>24;H[u+2|0]=W>>>8;H[u+1|0]=W>>>16;H[u|0]=W>>>24;J[i+44>>2]=0;e=J[i+12>>2];f=ha+16|0;Da:{if(f>>>0>31457280){d=e;break Da}d=J[N>>2];Ea:{if(d>>>0>=f>>>0){d=e;break Ea}d=Tb(n,1,d,f,e,i+44|0);if(J[i+44>>2]){d=e;break Da}J[N>>2]=f}g=K[u+4|0]|K[u+5|0]<< -8|(K[u+6|0]<<16|K[u+7|0]<<24);j=d+ha|0;e=K[u|0]|K[u+1|0]<<8|(K[u+2|0]<<16|K[u+3|0]<<24);H[j|0]=e;H[j+1|0]=e>>>8;H[j+2|0]=e>>>16;H[j+3|0]=e>>>24;H[j+4|0]=g;H[j+5|0]=g>>>8;H[j+6|0]=g>>>16;H[j+7|0]=g>>>24;g=K[u+12|0]|K[u+13|0]<<8|(K[u+14|0]<<16|K[u+15|0]<<24);e=K[u+8|0]|K[u+9|0]<<8|(K[u+10|0]<<16|K[u+11|0]<<24);H[j+8|0]=e;H[j+9|0]=e>>>8;H[j+10|0]=e>>>16;H[j+11|0]=e>>>24;H[j+12|0]=g;H[j+13|0]=g>>>8;H[j+14|0]=g>>>16;H[j+15|0]=g>>>24;J[i+12>>2]=d;ha=f}k=K[u+12|0]|K[u+13|0]<<8|(K[u+14|0]<<16|K[u+15|0]<< -24);l=K[u+8|0]|K[u+9|0]<<8|(K[u+10|0]<<16|K[u+11|0]<<24);m=K[u+4|0]|K[u+5|0]<<8|(K[u+6|0]<<16|K[u+7|0]<<24);j=K[u|0]|K[u+1|0]<<8|(K[u+2|0]<<16|K[u+3|0]<<24);f=J[i+8>>2];H[i+42|0]=0;I[i+40>>1]=0;if(f>>>0>4294967292)break M;e=f+3&-4;Fa:{if((f|0)==(e|0)){e=f;break Fa}J[i+44>>2]=0;if(e>>>0>31457280)break M;g=J[N>>2];if(g>>>0>>0){d=Tb(n,1,g,e,d,i+44|0);if(J[i+44>>2])break M;J[N>>2]=e}Mb(d+f|0,i+40|0,e-f|0);if(J[i+44>>2])break M}J[i+12>>2]=d;J[i+8>>2]=e;if(s+aa>>>0>e>>>0)break M;ga=p+ga+((((m<<24|(m& -65280)<<8|(m>>>8&65280|m>>>24))+(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24))|0)+(l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24))|0)+(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24)))|0;s=e;da=da+1|0;if((da|0)!=(R|0))continue;break}if(!R)break N;e=0;while(1){f=J[(e<<2)+w>>2];if(J[f+4>>2]!=1751474532){e=e+1|0;if((R|0)!=(e|0))continue;break N}break}J[B+20>>2]=f;if(M[f+8>>2]<12)break M;f=J[f+28>>2]+d|0;e=-1313820742-ga|0;e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[f+8|0]=e;H[f+9|0]=e>>>8;H[f+10|0]=e>>>16;H[f+11|0]=e>>> -24;J[h+100>>2]=J[i+8>>2];J[h+12>>2]=d;break J}J[B+20>>2]=0}l=J[i+16>>2]}if(l)break K;J[i+16>>2]=8}J[h+12>>2]=J[i+12>>2]}if(u)Ab[J[n+8>>2]](n,u);Ga:{if(!o)break Ga;d=J[o+24>>2];if(!d)break Ga;Ab[d|0](o)}if(o)Ab[J[n+8>>2]](n,o);e=J[i+16>>2]}xb=i+48|0;J[h+108>>2]=e;if(e)break f;f=J[h+12>>2];d=J[h+100>>2];e=J[h+8>>2];if(d>>>0>>0){f=Tb(n,1,e,d,f,la);J[h+12>>2]=f;if(J[h+108>>2])break f;d=J[h+100>>2]}J[v+32>>2]=0;J[v+8>>2]=0;J[v+4>>2]=d;J[v>>2]=f;J[v+20>>2]=0;J[v+24>>2]=0;a=J[a+28>>2];J[v+24>>2]=68;J[v+ -28>>2]=a;OE(J[b+104>>2],J[b+8>>2]>>>10&1);J[b+104>>2]=v;J[b+8>>2]=J[b+8>>2]&-1025;c=ba;break f}f=10;if(d>>>0>J[a+4>>2]>>>5>>>0)break a;ra=b,sa=Tb(ja,4,0,d,0,h),J[ra+144>>2]=sa;f=J[h>>2];if(f)break a;f=Tc(a,J[b+140>>2]<<2);J[h>>2]=f;if(f)break a;if(J[b+140>>2]>0){f=0;while(1){d=he(a);J[J[b+144>>2]+(f<<2)>>2]=d;f=f+1|0;if((f|0)>2])continue;break}}Ec(a);f=J[h>>2];J[h+40>>2]=f;if(!f)break j;break a}J[b+136>>2]=65536;J[b+140>>2]=1;a=tc(ja,4,h);J[b+144>>2]=a;f=J[h>>2];if(f)break a;J[a>>2]=v;J[h+ -40>>2]=0}k=J[b+104>>2];d=J[b+144>>2];a=c>>31;g=(a^c)-a|0;a=(g&65535)+a|0;if((a|0)>=J[b+140>>2]){f=6;if((c|0)>=0)break a;a=0}f=bc(k,J[d+(a<<2)>>2]);J[h+40>>2]=f;if(f)break a;f=Ab[J[D+88>>2]](b,k)|0;J[h+40>>2]=f;if(f)break a;i=J[b+100>>2];Ha:{Ia:{if(Ab[J[b+516>>2]](b,1719034226,k,h+16|0)|M[h+16>>2]<20)break Ia;d=h+40|0;D=md(k,d);if(J[h+40>>2])break Ia;v=rc(k,d);if(J[h+40>>2])break Ia;a=yd(k,2);J[h+40>>2]=a;if(a)break Ia;f=rc(k,d);if(J[h+40>>2])break Ia;s=rc(k,d);if(J[h+40>>2])break Ia;d=rc(k,d);if(J[h+ -40>>2])break Ia;l=rc(k,h+40|0);if(!J[h+40>>2])break Ha}D=0;v=0;f=0;s=0;d=0;l=0}w=0;a=0;Ja:{if((D|0)!=65536|(s|0)!=20|(!f|f>>>0>16382))break Ja;e=f<<2;Ka:{if((e+4|0)!=(l|0)){if((e+6|0)!=(l|0))break Ja;if(d>>>0<=32511)break Ka;break Ja}if(d>>>0>32511)break Ja}if(M[h+16>>2]<(P(f,20)+v|0)+P(d,l)>>>0)break Ja;J[b+740>>2]=J[b+740>>2]|1;a=d}La:{if(!(H[b+740|0]&1)){e=0;break La}m=f<<2;d=h+40|0;e=tc(i,m,d);if(J[h+40>>2])break La;w=tc(i,m,d);if(J[h+40>>2])break La;j=(J[k+8>>2]+v|0)-16|0;if(f){D=j+8|0;v=0;d= -e;while(1){ra=h,sa=Mn(k,D,d,4),J[ra+40>>2]=sa;d=d+4|0;D=s+D|0;v=v+1|0;if((v|0)!=(f|0))continue;break}}Ma:{if(!a){D=0;break Ma}f=(j+P(f,s)|0)+4|0;D=0;while(1){ra=h,sa=Mn(k,f,w,m),J[ra+40>>2]=sa;if(!cd(e,w,m))break Ma;f=f+l|0;D=D+1|0;if((D|0)!=(a|0))continue;break}D=a}a=((a|0)==(D|0))+a|0}if(e)Ab[J[i+8>>2]](i,e);if(w)Ab[J[i+8>>2]](i,w);d=g>>>16|0;Na:{if(!(Ab[J[b+516>>2]](b,1735162214,k,0)|0))break Na;if(!(Ab[J[b+516>>2]](b,1128678962,k,0)|0))break Na;a=Ab[J[b+516>>2]](b,1128678944,k,0)|0?a:0}Oa:{if(d>>> -0>(a&65535)>>>0){if((c|0)>=0)break Oa;a=0}J[b+12>>2]=a<<16;J[b+4>>2]=c;J[b>>2]=J[b+140>>2];if(fa)J[b>>2]=fa;f=J[h+40>>2];break a}f=6;break a}J[h+108>>2]=8;break f}J[h+108>>2]=8;break f}J[h+108>>2]=8}if(ea)Ab[J[n+8>>2]](n,ea);if(w)Ab[J[n+8>>2]](n,w);if(z)Ab[J[n+8>>2]](n,z);a=J[h+24>>2];if(a)Ab[J[n+8>>2]](n,a);a=J[h+104>>2];if(a){f=0;if(L[h+96>>1]){while(1){d=J[a+8>>2];if(d)Ab[J[n+8>>2]](n,d);J[a+8>>2]=0;a=a+12|0;f=f+1|0;if(f>>>0>1])continue;break}a=J[h+104>>2]}if(a)Ab[J[n+8>>2]](n,a);J[h+104>> -2]=0}if(!J[h+108>>2]){J[h>>2]=0;break b}a=J[h+12>>2];if(a)Ab[J[n+8>>2]](n,a);if(v){Pa:{if(!v)break Pa;a=J[v+24>>2];if(!a)break Pa;Ab[a|0](v)}if(v)Ab[J[n+8>>2]](n,v)}f=J[h+108>>2];break c}if(!(J[h+56>>2]==(d|0)&(e|0)==(w|0))){J[h+16>>2]=8;break d}z=Tb(t,1,g,d,z,h+16|0);if(J[h+16>>2])break d;if(L[h+52>>1]){d=z+12|0;e=0;while(1){p=P(e,24)+v|0;H[d|0]=K[p+3|0];H[d+1|0]=L[p+2>>1];H[d+2|0]=J[p>>2]>>>8;H[d+3|0]=J[p>>2];H[d+4|0]=K[p+19|0];H[d+5|0]=L[p+18>>1];H[d+6|0]=J[p+16>>2]>>>8;H[d+7|0]=J[p+16>>2];H[d+ -8|0]=K[p+23|0];H[d+9|0]=L[p+22>>1];H[d+10|0]=J[p+20>>2]>>>8;H[d+11|0]=J[p+20>>2];H[d+12|0]=K[p+15|0];H[d+13|0]=L[p+14>>1];H[d+14|0]=J[p+12>>2]>>>8;H[d+15|0]=J[p+12>>2];g=bc(a,J[p+4>>2]);J[h+16>>2]=g;if(g)break d;g=Tc(a,J[p+8>>2]);J[h+16>>2]=g;if(g)break d;Qa:{s=J[p+8>>2];g=J[p+12>>2];if((s|0)==(g|0)){Mb(J[p+20>>2]+z|0,J[a+32>>2],s);break Qa}J[h+108>>2]=g;i=h+108|0;j=J[a+32>>2];k=xb+-64|0;xb=k;m=6;g=J[p+20>>2]+z|0;Ra:{if(!i|(!g|!t))break Ra;J[k+20>>2]=g;J[k+12>>2]=s;J[k+8>>2]=j;g=J[i>>2];J[k+48>>2]= -t;J[k+44>>2]=16;J[k+40>>2]=17;J[k+24>>2]=g;g=k+8|0;if(Ms(g,47,8969))break Ra;j=ni(g,4);Sa:{if((j|0)!=1){Tg(g);if(j)break Sa;m=10;break Ra}J[i>>2]=J[k+28>>2];j=Tg(k+8|0)}m=0;g=j+5|0;if(g>>>0>2)break Ra;m=J[(g<<2)+29288>>2]}xb=k- -64|0;J[h+16>>2]=m;if(!m){if(J[h+108>>2]==J[p+12>>2])break Qa;J[h+16>>2]=8}Ec(a);break d}Ec(a);m=J[p+12>>2];j=J[p+20>>2];g=m+j|0;if(g&3)Nb(g+z|0,0,((m^-1)-j&3)+1|0);d=d+16|0;e=e+1|0;if(e>>>0>1])continue;break}}d=J[h+56>>2];J[l+32>>2]=0;J[l+8>>2]=0;J[l+4>>2]=d;J[l>> -2]=z;J[l+20>>2]=0;J[l+24>>2]=0;a=J[a+28>>2];J[l+24>>2]=69;J[l+28>>2]=a;OE(J[b+104>>2],J[b+8>>2]>>>10&1);J[b+104>>2]=l;J[b+8>>2]=J[b+8>>2]&-1025}if(v)Ab[J[t+8>>2]](t,v);if(f)Ab[J[t+8>>2]](t,f);if(!J[h+16>>2]){J[h>>2]=0;break b}if(z)Ab[J[t+8>>2]](t,z);Ta:{if(!l)break Ta;a=J[l+24>>2];if(!a)break Ta;Ab[a|0](l)}if(l)Ab[J[t+8>>2]](t,l);f=J[h+16>>2]}J[h>>2]=f;if(f)break a}a=J[b+104>>2];v=J[a+8>>2];d=md(a,h);f=J[h>>2];if(!f)continue;break}}xb=h+112|0;return f|0}function Qoa(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,u=0,v=0,w=0,y=0,A=0;a:switch(a-15|0){case 1:tI(b);return;case 0:c=b+16|0;a=J[b+20>>2];b:{if(a){f=O[c+(a<<3)>>3];break b}H[c|0]=1;e=J[42445];a=J[42444];J[194120]=a;J[194121]=e;x(0,a|0);x(1,e|0);f=+z()}c:{if(R(f)<2147483648){a=~~f;break c}a=-2147483648}if((a|0)<0){H[c|0]=1;a=0}d:{if(K[b+4441|0]|K[b+4442|0]){J[b+8>>2]=J[b+4>>2]+1;break d}J[b+4424>>2]=a}J[b+20>>2]=0;H[b+4441|0]=1;return;default:break a}v=xb-16|0;xb=v;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:switch(a- -1|0){default:switch(a-255|0){case 38:break i;case 37:break j;case 36:break k;case 35:break l;case 0:break E;default:break h}case 10:a=J[b+4>>2];if(a>>>0>2])J[b+8>>2]=a+1;a=b+4164|0;c=J[b+4168>>2];G:{if(c){c=c-1|0;J[b+4168>>2]=c;a=(a+P(c,20)|0)+8|0;break G}H[a|0]=1;J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480}c=J[a+4>>2];J[b+4128>>2]=J[a>>2];J[b+4132>>2]=c;J[b+4144>>2]=J[a+16>>2];e=J[a+12>>2];c=b+4136|0;J[c>>2]=J[a+8>>2];J[c+ -4>>2]=e;c=J[a>>2];e=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b>>2]=c;J[b+4>>2]=e;break e;case 1:case 8:case 11:case 12:case 14:case 15:case 16:case 27:break h;case 30:break m;case 29:break n;case 26:break o;case 25:break p;case 24:break q;case 23:break r;case 7:break s;case 6:break t;case 5:break u;case 4:break v;case 3:break w;case 21:break x;case 20:break y;case 18:case 19:break z;case 2:case 22:break A;case 0:case 17:break B;case 28:break C;case 9:break D;case 13:break F}H[b+4148|0]=1;J[b+20>>2]=0;break e}c= -J[b+4>>2];a=J[b+8>>2];if(c>>>0>>0)break e;e=b+16|0;H:{if(a>>>0>=c>>>0){a=c+1|0;c=169776;break H}c=J[b>>2]+a|0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=J[b+20>>2];I:{if(c>>>0<=512){J[b+20>>2]=c+1;c=(e+(c<<3)|0)+8|0;break I}H[e|0]=1;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480}O[c>>3]=+(g|0)*1.52587890625E-5;J[b+8>>2]=a+4;break e}a=b+16|0;J:{c=J[b+20>>2];K:{if(c){c=c-1|0;J[b+20>>2]=c;f=O[(a+(c<<3)|0)+8>>3];break K}H[a|0]=1;c=J[42445];a= -J[42444];J[194120]=a;J[194121]=c;x(0,a|0);x(1,c|0);f=+z()}L:{if(R(f)<2147483648){a=~~f;break L}a=-2147483648}g=a+J[b+4380>>2]|0;M:{if((g|0)<0)break M;a=J[b+4384>>2];if(!a)break M;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if(g>>>0>=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0)break M;a=J[b+4168>>2];if(a>>>0<10)break J}J[b+8>>2]=J[b+4>>2]+1;break e}e=J[b+4>>2];c=J[b>>2];J[b+4128>>2]=c;J[b+4132>>2]=e;J[b+4168>>2]=a+1;j=b+4136|0;J[j>>2]=J[b+8>>2];a=b+P(a,20)|0;i=b+4144|0;J[a+4188>>2]=J[i>>2]; -l=a+4172|0;J[l>>2]=c;J[l+4>>2]=e;c=J[j+4>>2];a=a+4180|0;J[a>>2]=J[j>>2];J[a+4>>2]=c;l=b+4128|0;a=0;c=0;e=J[b+4384>>2];N:{if(!e)break N;d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(g>>>0>=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)break N;qi(v,e,g);a=J[v>>2];c=J[v+4>>2]}J[b+4128>>2]=a;J[b+4132>>2]=c;J[i>>2]=g;J[j>>2]=0;J[j+4>>2]=2;J[b+8>>2]=J[l+8>>2];a=J[l+4>>2];J[b>>2]=J[l>>2];J[b+4>>2]=a;break e}a=b+16|0;O:{c=J[b+20>>2];P:{if(c){c=c-1|0;J[b+20>>2]=c;f=O[(a+(c<<3)|0)+8>>3];break P}H[a|0]= -1;c=J[42445];a=J[42444];J[194120]=a;J[194121]=c;x(0,a|0);x(1,c|0);f=+z()}Q:{if(R(f)<2147483648){a=~~f;break Q}a=-2147483648}g=a+J[b+4372>>2]|0;R:{if((g|0)<0)break R;a=J[b+4376>>2];if(!a)break R;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if(g>>>0>=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0)break R;a=J[b+4168>>2];if(a>>>0<10)break O}J[b+8>>2]=J[b+4>>2]+1;break e}e=J[b+4>>2];c=J[b>>2];J[b+4128>>2]=c;J[b+4132>>2]=e;J[b+4168>>2]=a+1;j=b+4136|0;J[j>>2]=J[b+8>>2];a=b+P(a,20)|0;i=b+4144|0;J[a+4188>> -2]=J[i>>2];l=a+4172|0;J[l>>2]=c;J[l+4>>2]=e;c=J[j+4>>2];a=a+4180|0;J[a>>2]=J[j>>2];J[a+4>>2]=c;l=b+4128|0;a=0;c=0;e=J[b+4376>>2];S:{if(!e)break S;d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(g>>>0>=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)break S;qi(v,e,g);a=J[v>>2];c=J[v+4>>2]}J[b+4128>>2]=a;J[b+4132>>2]=c;J[i>>2]=g;J[j>>2]=0;J[j+4>>2]=1;J[b+8>>2]=J[l+8>>2];a=J[l+4>>2];J[b>>2]=J[l>>2];J[b+4>>2]=a;break e}a=J[b+20>>2];J[b+20>>2]=0;J[b+4152>>2]=J[b+4152>>2]+(a>>>1|0);break e}a=J[b+20>> -2];J[b+20>>2]=0;J[b+4156>>2]=J[b+4156>>2]+(a>>>1|0);break e}T:{if(K[b+4150|0]){a=J[b+4160>>2];break T}H[b+4150|0]=1;a=J[b+4156>>2]+(J[b+20>>2]>>>1|0)|0;J[b+4156>>2]=a;a=(a+J[b+4152>>2]|0)+7>>>3|0;J[b+4160>>2]=a}a=J[b+8>>2]+a|0;if(a>>>0>M[b+4>>2])break e;J[b+8>>2]=a;J[b+20>>2]=0;break e}e=b+16|0;h=O[b+4400>>3];o=O[b+4392>>3];a=J[b+20>>2];if(!a){g=776480;break g}j=a-1|0;J[b+20>>2]=j;g=(e+(j<<3)|0)+8|0;if(!j)break g;j=a-2|0;a=j>>>1|0;f=O[(e+(j<<3)|0)+8>>3];break f}e=b+16|0;h=O[b+4400>>3];o=O[b+4392>> -3];a=J[b+20>>2];U:{if(a){g=a-1|0;a=g>>>1|0;f=O[(e+(g<<3)|0)+8>>3];break U}H[e|0]=1;a=0;g=J[42445];e=J[42444];J[194120]=e;J[194121]=g;x(0,e|0);x(1,g|0);f=+z()}H[c|0]=0;O[b+4400>>3]=h;O[b+4392>>3]=o+f;if(!K[b+4149|0]){if(!K[b+4150|0]){H[b+4150|0]=1;a=J[b+4156>>2]+a|0;J[b+4156>>2]=a;J[b+4160>>2]=(a+J[b+4152>>2]|0)+7>>>3}H[b+4149|0]=1}J[b+20>>2]=0;break e}e=b+16|0;h=O[b+4400>>3];o=O[b+4392>>3];a=J[b+20>>2];V:{if(a){g=a-1|0;a=g>>>1|0;f=O[(e+(g<<3)|0)+8>>3];break V}H[e|0]=1;a=0;g=J[42445];e=J[42444];J[194120]= -e;J[194121]=g;x(0,e|0);x(1,g|0);f=+z()}H[c|0]=0;O[b+4400>>3]=h+f;O[b+4392>>3]=o;if(!K[b+4149|0]){if(!K[b+4150|0]){H[b+4150|0]=1;a=J[b+4156>>2]+a|0;J[b+4156>>2]=a;J[b+4160>>2]=(a+J[b+4152>>2]|0)+7>>>3}H[b+4149|0]=1}J[b+20>>2]=0;break e}vI(b,c);J[b+20>>2]=0;break e}a=0;l=b+16|0;d=J[b+20>>2];if(d>>>0>=2){a=J[42445];i=a;j=J[42444];x(0,j|0);x(1,a|0);r=+z();g=2;while(1){a=g;W:{if(d>>>0<=e>>>0){H[l|0]=1;J[194120]=j;J[194121]=i;f=r;break W}f=O[(l+(e<<3)|0)+8>>3]}s=O[b+4400>>3];m=O[b+4392>>3]+f;X:{if(K[c| -0])break X;H[c|0]=1;f=O[b+4392>>3];if(f>3]){O[c+8>>3]=f;f=O[b+4392>>3]}if(O[c+24>>3]>3]=f;f=O[b+4400>>3];if(f>3]){O[c+16>>3]=f;f=O[b+4400>>3]}if(!(O[c+32>>3]>3]=f}O[b+4400>>3]=s;O[b+4392>>3]=m;f=m;h=O[c+8>>3];if(f>3]=f;h=f;f=O[b+4392>>3]}o=O[c+24>>3];if(o>3]=f;o=f}q=O[c+16>>3];f=O[b+4400>>3];if(q>f){O[c+16>>3]=f;q=f;f=O[b+4400>>3]}t=O[c+32>>3];if(f>t){O[c+32>>3]=f;t=f}e=e|1;Y:{if(e>>>0>=d>>>0){H[l|0]=1;J[194120]=j;J[194121]=i;f=r;break Y}f= -O[(l+(e<<3)|0)+8>>3]}s=s+f;Z:{if(K[c|0])break Z;H[c|0]=1;f=O[b+4392>>3];if(h>f){O[c+8>>3]=f;f=O[b+4392>>3]}if(f>o)O[c+24>>3]=f;f=O[b+4400>>3];if(q>f){O[c+16>>3]=f;f=O[b+4400>>3]}if(!(f>t))break Z;O[c+32>>3]=f}O[b+4400>>3]=s;O[b+4392>>3]=m;if(O[c+8>>3]>m){O[c+8>>3]=m;m=O[b+4392>>3]}if(O[c+24>>3]>3]=m;m=O[b+4400>>3];if(m>3]){O[c+16>>3]=m;m=O[b+4400>>3]}if(O[c+32>>3]>3]=m;e=a;g=a+2|0;if(d>>>0>=g>>>0)continue;break}}_:{if(a>>>0>=d>>>0)break _;m=O[b+4392>>3]+O[(l+(a<<3)|0)+ -8>>3];h=O[b+4400>>3];$:{if(K[c|0])break $;H[c|0]=1;f=O[b+4392>>3];if(f>3]){O[c+8>>3]=f;f=O[b+4392>>3]}if(O[c+24>>3]>3]=f;f=O[b+4400>>3];if(f>3]){O[c+16>>3]=f;f=O[b+4400>>3]}if(!(O[c+32>>3]>3]=f}O[b+4400>>3]=h;O[b+4392>>3]=m;if(O[c+8>>3]>m){O[c+8>>3]=m;m=O[b+4392>>3]}if(O[c+24>>3]>3]=m;m=O[b+4400>>3];if(m>3]){O[c+16>>3]=m;m=O[b+4400>>3]}if(!(O[c+32>>3]>3]=m}J[b+20>>2]=0;break e}a=0;l=b+16|0;d=J[b+20>>2];if(d>>>0>=2){a= -J[42445];i=a;j=J[42444];x(0,j|0);x(1,a|0);s=+z();g=2;while(1){a=g;aa:{if(d>>>0<=e>>>0){H[l|0]=1;J[194120]=j;J[194121]=i;f=s;break aa}f=O[(l+(e<<3)|0)+8>>3]}r=O[b+4392>>3];y=O[b+4400>>3]+f;ba:{if(K[c|0])break ba;H[c|0]=1;f=O[b+4392>>3];if(f>3]){O[c+8>>3]=f;f=O[b+4392>>3]}if(O[c+24>>3]>3]=f;f=O[b+4400>>3];if(f>3]){O[c+16>>3]=f;f=O[b+4400>>3]}if(!(O[c+32>>3]>3]=f}O[b+4400>>3]=y;O[b+4392>>3]=r;f=r;h=O[c+8>>3];if(f>3]=f;h=f;f=O[b+4392>>3]}o=O[c+24>> -3];if(o>3]=f;o=f}q=O[c+16>>3];f=O[b+4400>>3];if(q>f){O[c+16>>3]=f;q=f;f=O[b+4400>>3]}t=O[c+32>>3];if(f>t){O[c+32>>3]=f;t=f}e=e|1;ca:{if(e>>>0>=d>>>0){H[l|0]=1;J[194120]=j;J[194121]=i;f=s;break ca}f=O[(l+(e<<3)|0)+8>>3]}m=r+f;da:{if(K[c|0])break da;H[c|0]=1;f=O[b+4392>>3];if(h>f){O[c+8>>3]=f;f=O[b+4392>>3]}if(f>o)O[c+24>>3]=f;f=O[b+4400>>3];if(q>f){O[c+16>>3]=f;f=O[b+4400>>3]}if(!(f>t))break da;O[c+32>>3]=f}O[b+4400>>3]=y;O[b+4392>>3]=m;if(O[c+8>>3]>m){O[c+8>>3]=m;m=O[b+4392>>3]}if(O[c+ -24>>3]>3]=m;m=O[b+4400>>3];if(m>3]){O[c+16>>3]=m;m=O[b+4400>>3]}if(O[c+32>>3]>3]=m;e=a;g=a+2|0;if(d>>>0>=g>>>0)continue;break}}ea:{if(a>>>0>=d>>>0)break ea;h=O[b+4400>>3]+O[(l+(a<<3)|0)+8>>3];m=O[b+4392>>3];fa:{if(K[c|0])break fa;H[c|0]=1;f=O[b+4392>>3];if(f>3]){O[c+8>>3]=f;f=O[b+4392>>3]}if(O[c+24>>3]>3]=f;f=O[b+4400>>3];if(f>3]){O[c+16>>3]=f;f=O[b+4400>>3]}if(!(O[c+32>>3]>3]=f}O[b+4400>>3]=h;O[b+4392>>3]=m;if(O[c+8>>3]>m){O[c+ -8>>3]=m;m=O[b+4392>>3]}if(O[c+24>>3]>3]=m;m=O[b+4400>>3];if(m>3]){O[c+16>>3]=m;m=O[b+4400>>3]}if(!(O[c+32>>3]>3]=m}J[b+20>>2]=0;break e}j=c;c=0;d=xb-48|0;xb=d;i=J[b+20>>2];if(i>>>0>=6){k=b+16|0;l=b+4392|0;a=J[42445];n=a;e=J[42444];x(0,e|0);x(1,a|0);f=+z();a=6;while(1){g=l;p=J[g+12>>2];J[d+40>>2]=J[g+8>>2];J[d+44>>2]=p;p=J[g+4>>2];J[d+32>>2]=J[g>>2];J[d+36>>2]=p;ga:{if(c>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;g=776480;break ga}g=(k+(c<<3)|0)+8|0}p=c|1;ha:{if(p>>> -0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;h=f;break ha}h=O[(k+(p<<3)|0)+8>>3]}o=O[g>>3];O[d+40>>3]=O[d+40>>3]+h;O[d+32>>3]=o+O[d+32>>3];g=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=g;g=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=g;g=c+2|0;ia:{if(g>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;g=776480;break ia}g=(k+(g<<3)|0)+8|0}p=c+3|0;ja:{if(p>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;h=f;break ja}h=O[(k+(p<<3)|0)+8>>3]}o=O[g>>3];O[d+24>>3]=O[d+24>>3]+h;O[d+16>>3]=o+O[d+16>>3];g=J[d+28>>2]; -J[d+8>>2]=J[d+24>>2];J[d+12>>2]=g;g=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=g;g=c+4|0;ka:{if(g>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;g=776480;break ka}g=(k+(g<<3)|0)+8|0}c=c+5|0;la:{if(c>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;h=f;break la}h=O[(k+(c<<3)|0)+8>>3]}o=O[g>>3];O[d+8>>3]=O[d+8>>3]+h;O[d>>3]=o+O[d>>3];Vc(b,j,d+32|0,d+16|0,d);c=a;a=a+6|0;i=J[b+20>>2];if(a>>>0<=i>>>0)continue;break}}xb=d+48|0;J[b+20>>2]=0;break e}a=0;d=xb-48|0;xb=d;e=J[b+20>>2];ma:{if(e>>>0<8)break ma;i=b+16|0; -l=b+4392|0;p=e-2|0;e=J[42445];k=e;g=J[42444];x(0,g|0);x(1,e|0);f=+z();e=6;while(1){n=J[l+12>>2];J[d+40>>2]=J[l+8>>2];J[d+44>>2]=n;n=J[l+4>>2];J[d+32>>2]=J[l>>2];J[d+36>>2]=n;n=J[b+20>>2];na:{if(n>>>0<=a>>>0){H[i|0]=1;J[194120]=g;J[194121]=k;j=776480;break na}j=(i+(a<<3)|0)+8|0}w=a|1;oa:{if(w>>>0>=n>>>0){H[i|0]=1;J[194120]=g;J[194121]=k;h=f;break oa}h=O[(i+(w<<3)|0)+8>>3]}o=O[j>>3];O[d+40>>3]=O[d+40>>3]+h;O[d+32>>3]=o+O[d+32>>3];j=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=j;j=J[d+36>>2];J[d+16>> -2]=J[d+32>>2];J[d+20>>2]=j;j=a+2|0;pa:{if(j>>>0>=n>>>0){H[i|0]=1;J[194120]=g;J[194121]=k;j=776480;break pa}j=(i+(j<<3)|0)+8|0}w=a+3|0;qa:{if(w>>>0>=n>>>0){H[i|0]=1;J[194120]=g;J[194121]=k;h=f;break qa}h=O[(i+(w<<3)|0)+8>>3]}o=O[j>>3];O[d+24>>3]=O[d+24>>3]+h;O[d+16>>3]=o+O[d+16>>3];j=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=j;j=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=j;j=a+4|0;ra:{if(j>>>0>=n>>>0){H[i|0]=1;J[194120]=g;J[194121]=k;j=776480;break ra}j=(i+(j<<3)|0)+8|0}a=a+5|0;sa:{if(a>>>0>=n>>>0){H[i| -0]=1;J[194120]=g;J[194121]=k;h=f;break sa}h=O[(i+(a<<3)|0)+8>>3]}o=O[j>>3];O[d+8>>3]=O[d+8>>3]+h;O[d>>3]=o+O[d>>3];Vc(b,c,d+32|0,d+16|0,d);a=e;e=a+6|0;if(p>>>0>=e>>>0)continue;break}g=b+4400|0;j=J[b+20>>2];ta:{if(j>>>0<=a>>>0){H[i|0]=1;e=J[42445];J[194120]=J[42444];J[194121]=e;e=776480;break ta}e=(i+(a<<3)|0)+8|0}h=O[b+4392>>3];r=O[g>>3];a=a|1;ua:{if(a>>>0>=j>>>0){H[i|0]=1;g=J[42445];a=J[42444];J[194120]=a;J[194121]=g;x(0,a|0);x(1,g|0);f=+z();break ua}f=O[(i+(a<<3)|0)+8>>3]}o=r+f;f=h+O[e>>3];va:{if(K[c| -0])break va;H[c|0]=1;m=O[b+4392>>3];if(m>3]){O[c+8>>3]=m;m=O[b+4392>>3]}if(O[c+24>>3]>3]=m;m=O[b+4400>>3];if(m>3]){O[c+16>>3]=m;m=O[b+4400>>3]}if(!(O[c+32>>3]>3]=m}O[b+4400>>3]=o;O[b+4392>>3]=f;if(O[c+8>>3]>f){O[c+8>>3]=f;f=O[b+4392>>3]}if(O[c+24>>3]>3]=f;f=O[b+4400>>3];if(f>3]){O[c+16>>3]=f;f=O[b+4400>>3]}if(!(O[c+32>>3]>3]=f}xb=d+48|0;J[b+20>>2]=0;break e}l=xb-48|0;xb=l;i=J[b+20>>2];if(i>>>0>=8){d=b+16|0;n=i-6|0; -a=J[42445];k=a;g=J[42444];x(0,g|0);x(1,a|0);h=+z();a=2;while(1){wa:{if(e>>>0>=i>>>0){H[d|0]=1;J[194120]=g;J[194121]=k;j=776480;break wa}j=(d+(e<<3)|0)+8|0}e=e|1;xa:{if(e>>>0>=i>>>0){H[d|0]=1;J[194120]=g;J[194121]=k;f=h;break xa}f=O[(d+(e<<3)|0)+8>>3]}o=O[b+4400>>3]+f;f=O[b+4392>>3]+O[j>>3];ya:{if(K[c|0])break ya;H[c|0]=1;m=O[b+4392>>3];if(m>3]){O[c+8>>3]=m;m=O[b+4392>>3]}if(O[c+24>>3]>3]=m;m=O[b+4400>>3];if(m>3]){O[c+16>>3]=m;m=O[b+4400>>3]}if(!(O[c+32>>3]>3]=m}O[b+4400>>3]=o;O[b+4392>>3]=f;if(O[c+8>>3]>f){O[c+8>>3]=f;f=O[b+4392>>3]}if(O[c+24>>3]>3]=f;f=O[b+4400>>3];if(f>3]){O[c+16>>3]=f;f=O[b+4400>>3]}if(O[c+32>>3]>3]=f;e=a;a=a+2|0;if(n>>>0>=a>>>0)continue;break}g=b+4400|0;j=J[g+4>>2];J[l+40>>2]=J[g>>2];J[l+44>>2]=j;g=J[b+4396>>2];J[l+32>>2]=J[b+4392>>2];J[l+36>>2]=g;za:{if(e>>>0>=i>>>0){H[d|0]=1;g=J[42445];J[194120]=J[42444];J[194121]=g;g=776480;break za}g=(d+(e<<3)|0)+8|0}j=e|1;Aa:{if(j>>>0>=i>>>0){H[d|0]=1;k=J[42445]; -j=J[42444];J[194120]=j;J[194121]=k;x(0,j|0);x(1,k|0);f=+z();break Aa}f=O[(d+(j<<3)|0)+8>>3]}h=O[g>>3];O[l+40>>3]=O[l+40>>3]+f;O[l+32>>3]=h+O[l+32>>3];g=J[l+44>>2];J[l+24>>2]=J[l+40>>2];J[l+28>>2]=g;g=J[l+36>>2];J[l+16>>2]=J[l+32>>2];J[l+20>>2]=g;Ba:{if(a>>>0>=i>>>0){H[d|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break Ba}a=(d+(a<<3)|0)+8|0}g=e+3|0;Ca:{if(g>>>0>=i>>>0){H[d|0]=1;j=J[42445];g=J[42444];J[194120]=g;J[194121]=j;x(0,g|0);x(1,j|0);f=+z();break Ca}f=O[(d+(g<<3)|0)+8>>3]}h=O[a>> -3];O[l+24>>3]=O[l+24>>3]+f;O[l+16>>3]=h+O[l+16>>3];a=J[l+28>>2];J[l+8>>2]=J[l+24>>2];J[l+12>>2]=a;a=J[l+20>>2];J[l>>2]=J[l+16>>2];J[l+4>>2]=a;a=e+4|0;Da:{if(a>>>0>=i>>>0){H[d|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break Da}a=(d+(a<<3)|0)+8|0}e=e+5|0;Ea:{if(e>>>0>=i>>>0){H[d|0]=1;g=J[42445];e=J[42444];J[194120]=e;J[194121]=g;x(0,e|0);x(1,g|0);f=+z();break Ea}f=O[(d+(e<<3)|0)+8>>3]}h=O[a>>3];O[l+8>>3]=O[l+8>>3]+f;O[l>>3]=h+O[l>>3];Vc(b,c,l+32|0,l+16|0,l)}xb=l+48|0;J[b+20>>2]=0;break e}j= -c;a=0;d=xb-48|0;xb=d;c=b+4400|0;e=J[c+4>>2];J[d+40>>2]=J[c>>2];J[d+44>>2]=e;c=J[b+4396>>2];J[d+32>>2]=J[b+4392>>2];J[d+36>>2]=c;i=J[b+20>>2];if(i&1){O[d+32>>3]=O[d+32>>3]+O[b+24>>3];a=1}c=a|4;if(i>>>0>=c>>>0){k=b+16|0;l=b+4392|0;g=J[42445];n=g;e=J[42444];x(0,e|0);x(1,g|0);f=+z();while(1){Fa:{if(a>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;h=f;break Fa}h=O[(k+(a<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+h;g=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=g;g=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=g;g= -a+1|0;Ga:{if(g>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;g=776480;break Ga}g=(k+(g<<3)|0)+8|0}p=a+2|0;Ha:{if(p>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;h=f;break Ha}h=O[(k+(p<<3)|0)+8>>3]}o=O[g>>3];O[d+24>>3]=O[d+24>>3]+h;O[d+16>>3]=o+O[d+16>>3];g=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=g;g=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=g;a=a+3|0;Ia:{if(a>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;h=f;break Ia}h=O[(k+(a<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+h;Vc(b,j,d+32|0,d+16|0,d);a=l;g=J[a+12>> -2];J[d+40>>2]=J[a+8>>2];J[d+44>>2]=g;g=J[a+4>>2];J[d+32>>2]=J[a>>2];J[d+36>>2]=g;a=c;c=a+4|0;i=J[b+20>>2];if(c>>>0<=i>>>0)continue;break}}xb=d+48|0;J[b+20>>2]=0;break e}j=c;a=0;d=xb-48|0;xb=d;c=b+4400|0;e=J[c+4>>2];J[d+40>>2]=J[c>>2];J[d+44>>2]=e;c=J[b+4396>>2];J[d+32>>2]=J[b+4392>>2];J[d+36>>2]=c;i=J[b+20>>2];if(i&1){O[d+40>>3]=O[d+40>>3]+O[b+24>>3];a=1}c=a|4;if(i>>>0>=c>>>0){k=b+16|0;l=b+4392|0;g=J[42445];n=g;e=J[42444];x(0,e|0);x(1,g|0);f=+z();while(1){Ja:{if(a>>>0>=i>>>0){H[k|0]=1;J[194120]=e; -J[194121]=n;h=f;break Ja}h=O[(k+(a<<3)|0)+8>>3]}O[d+32>>3]=O[d+32>>3]+h;g=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=g;g=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=g;g=a+1|0;Ka:{if(g>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;g=776480;break Ka}g=(k+(g<<3)|0)+8|0}p=a+2|0;La:{if(p>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;h=f;break La}h=O[(k+(p<<3)|0)+8>>3]}o=O[g>>3];O[d+24>>3]=O[d+24>>3]+h;O[d+16>>3]=o+O[d+16>>3];g=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=g;g=J[d+20>>2];J[d>>2]=J[d+16>>2]; -J[d+4>>2]=g;a=a+3|0;Ma:{if(a>>>0>=i>>>0){H[k|0]=1;J[194120]=e;J[194121]=n;h=f;break Ma}h=O[(k+(a<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+h;Vc(b,j,d+32|0,d+16|0,d);a=l;g=J[a+12>>2];J[d+40>>2]=J[a+8>>2];J[d+44>>2]=g;g=J[a+4>>2];J[d+32>>2]=J[a>>2];J[d+36>>2]=g;a=c;c=a+4|0;i=J[b+20>>2];if(c>>>0<=i>>>0)continue;break}}xb=d+48|0;J[b+20>>2]=0;break e}j=c;a=0;d=xb-48|0;xb=d;c=b;i=b+16|0;b=4;k=J[c+20>>2];Na:{if(!(k&4)){if(k>>>0<8)break Na;l=c+4392|0;b=J[42445];n=b;g=J[42444];x(0,g|0);x(1,b|0);f=+z();b=8;while(1){e=a; -a=b;b=l;p=J[b+12>>2];J[d+40>>2]=J[b+8>>2];J[d+44>>2]=p;p=J[b+4>>2];J[d+32>>2]=J[b>>2];J[d+36>>2]=p;Oa:{if(e>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break Oa}h=O[(i+(e<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+h;b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e|1;Pa:{if(b>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;b=776480;break Pa}b=(i+(b<<3)|0)+8|0}p=e|2;Qa:{if(p>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break Qa}h=O[(i+(p<<3)|0)+8>>3]}o= -O[b>>3];O[d+24>>3]=O[d+24>>3]+h;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=o+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|3;Ra:{if(b>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break Ra}h=O[(i+(b<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+h;Vc(c,j,d+32|0,d+16|0,d);b=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=b;b=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=b;k=J[c+20>>2];b=e|4;Sa:{if(k>>>0<=b>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break Sa}h=O[(i+(b<<3)|0)+8>>3]}b=J[d+44>>2];J[d+ -24>>2]=J[d+40>>2];J[d+28>>2]=b;O[d+32>>3]=O[d+32>>3]+h;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e|5;Ta:{if(b>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;b=776480;break Ta}b=(i+(b<<3)|0)+8|0}p=e|6;Ua:{if(p>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break Ua}h=O[(i+(p<<3)|0)+8>>3]}o=O[b>>3];O[d+24>>3]=O[d+24>>3]+h;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=o+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|7;Va:{if(b>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]= -n;h=f;break Va}h=O[(i+(b<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+h;if(!(!(k&1)|k-e>>>0>15)){Wa:{if(a>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break Wa}h=O[(i+(a<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+h}Vc(c,j,d+32|0,d+16|0,d);b=a+8|0;k=J[c+20>>2];if(b>>>0<=k>>>0)continue;break}break Na}a=c+4400|0;e=J[a+4>>2];J[d+40>>2]=J[a>>2];J[d+44>>2]=e;a=J[c+4396>>2];e=J[c+4392>>2];J[d+32>>2]=e;J[d+36>>2]=a;O[d+40>>3]=O[d+40>>3]+O[c+24>>3];g=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=g;J[d+16>>2]=e;J[d+20>>2]=a;f=O[c+ -32>>3];O[d+24>>3]=O[d+24>>3]+O[c+40>>3];O[d+16>>3]=f+O[d+16>>3];a=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=a;a=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=a;O[d>>3]=O[d>>3]+O[c+48>>3];e=12;if(k>>>0>=12){l=c+4392|0;a=J[42445];n=a;g=J[42444];x(0,g|0);x(1,a|0);f=+z();a=4;while(1){b=e;Vc(c,j,d+32|0,d+16|0,d);e=l;k=J[e+12>>2];J[d+40>>2]=J[e+8>>2];J[d+44>>2]=k;k=J[e+4>>2];J[d+32>>2]=J[e>>2];J[d+36>>2]=k;k=J[c+20>>2];Xa:{if(k>>>0<=a>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break Xa}h=O[(i+(a<<3)|0)+8>>3]}e= -J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=e;O[d+32>>3]=O[d+32>>3]+h;e=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=e;e=a|1;Ya:{if(e>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;e=776480;break Ya}e=(i+(e<<3)|0)+8|0}p=a|2;Za:{if(p>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break Za}h=O[(i+(p<<3)|0)+8>>3]}o=O[e>>3];O[d+24>>3]=O[d+24>>3]+h;e=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=e;O[d+16>>3]=o+O[d+16>>3];e=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=e;e=a|3;_a:{if(e>>>0>=k>>>0){H[i|0]=1;J[194120]= -g;J[194121]=n;h=f;break _a}h=O[(i+(e<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+h;Vc(c,j,d+32|0,d+16|0,d);e=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=e;e=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=e;k=J[c+20>>2];e=a+4|0;$a:{if(k>>>0<=e>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break $a}h=O[(i+(e<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+h;e=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=e;e=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=e;e=a+5|0;ab:{if(e>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;e=776480;break ab}e=(i+ -(e<<3)|0)+8|0}p=a+6|0;bb:{if(p>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break bb}h=O[(i+(p<<3)|0)+8>>3]}o=O[e>>3];O[d+24>>3]=O[d+24>>3]+h;e=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=e;O[d+16>>3]=o+O[d+16>>3];e=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=e;a=a+7|0;cb:{if(a>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break cb}h=O[(i+(a<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+h;a=b;e=a+8|0;if(k>>>0>=e>>>0)continue;break}}if(b>>>0>>0)O[d+8>>3]=O[d+8>>3]+O[(i+(b<<3)|0)+8>>3];Vc(c,j,d+32|0,d+16|0,d)}xb= -d+48|0;J[c+20>>2]=0;break e}j=c;a=0;d=xb-48|0;xb=d;c=b;i=b+16|0;b=4;k=J[c+20>>2];db:{if(!(k&4)){if(k>>>0<8)break db;l=c+4392|0;b=J[42445];n=b;g=J[42444];x(0,g|0);x(1,b|0);f=+z();b=8;while(1){e=a;a=b;b=l;p=J[b+12>>2];J[d+40>>2]=J[b+8>>2];J[d+44>>2]=p;p=J[b+4>>2];J[d+32>>2]=J[b>>2];J[d+36>>2]=p;eb:{if(e>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break eb}h=O[(i+(e<<3)|0)+8>>3]}b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;O[d+32>>3]=O[d+32>>3]+h;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]= -b;b=e|1;fb:{if(b>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;b=776480;break fb}b=(i+(b<<3)|0)+8|0}p=e|2;gb:{if(p>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break gb}h=O[(i+(p<<3)|0)+8>>3]}o=O[b>>3];O[d+24>>3]=O[d+24>>3]+h;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=o+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|3;hb:{if(b>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break hb}h=O[(i+(b<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+h;Vc(c,j,d+32|0,d+16|0,d);b=J[d+12>>2];J[d+ -40>>2]=J[d+8>>2];J[d+44>>2]=b;b=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=b;k=J[c+20>>2];b=e|4;ib:{if(k>>>0<=b>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break ib}h=O[(i+(b<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+h;b=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=b;b=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=b;b=e|5;jb:{if(b>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;b=776480;break jb}b=(i+(b<<3)|0)+8|0}p=e|6;kb:{if(p>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break kb}h=O[(i+(p<<3)|0)+8>>3]}o=O[b>> -3];O[d+24>>3]=O[d+24>>3]+h;b=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=b;O[d+16>>3]=o+O[d+16>>3];b=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=b;b=e|7;lb:{if(b>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break lb}h=O[(i+(b<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+h;if(!(!(k&1)|k-e>>>0>15)){mb:{if(a>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break mb}h=O[(i+(a<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+h}Vc(c,j,d+32|0,d+16|0,d);b=a+8|0;k=J[c+20>>2];if(b>>>0<=k>>>0)continue;break}break db}e=c+4400|0;a=J[e>>2];e= -J[e+4>>2];J[d+40>>2]=a;J[d+44>>2]=e;g=J[c+4396>>2];J[d+32>>2]=J[c+4392>>2];J[d+36>>2]=g;O[d+32>>3]=O[d+32>>3]+O[c+24>>3];J[d+24>>2]=a;J[d+28>>2]=e;a=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=a;f=O[c+32>>3];O[d+24>>3]=O[d+24>>3]+O[c+40>>3];O[d+16>>3]=f+O[d+16>>3];a=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=a;a=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=a;O[d+8>>3]=O[d+8>>3]+O[c+48>>3];e=12;if(k>>>0>=12){l=c+4392|0;a=J[42445];n=a;g=J[42444];x(0,g|0);x(1,a|0);f=+z();a=4;while(1){b=e;Vc(c,j,d+32|0,d+ -16|0,d);e=l;k=J[e+12>>2];J[d+40>>2]=J[e+8>>2];J[d+44>>2]=k;k=J[e+4>>2];J[d+32>>2]=J[e>>2];J[d+36>>2]=k;k=J[c+20>>2];nb:{if(k>>>0<=a>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break nb}h=O[(i+(a<<3)|0)+8>>3]}O[d+40>>3]=O[d+40>>3]+h;e=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=e;e=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=e;e=a|1;ob:{if(e>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;e=776480;break ob}e=(i+(e<<3)|0)+8|0}p=a|2;pb:{if(p>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break pb}h=O[(i+ -(p<<3)|0)+8>>3]}o=O[e>>3];O[d+24>>3]=O[d+24>>3]+h;e=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=e;O[d+16>>3]=o+O[d+16>>3];e=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=e;e=a|3;qb:{if(e>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break qb}h=O[(i+(e<<3)|0)+8>>3]}O[d>>3]=O[d>>3]+h;Vc(c,j,d+32|0,d+16|0,d);e=J[d+12>>2];J[d+40>>2]=J[d+8>>2];J[d+44>>2]=e;e=J[d+4>>2];J[d+32>>2]=J[d>>2];J[d+36>>2]=e;k=J[c+20>>2];e=a+4|0;rb:{if(k>>>0<=e>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break rb}h=O[(i+(e<<3)|0)+8>> -3]}e=J[d+44>>2];J[d+24>>2]=J[d+40>>2];J[d+28>>2]=e;O[d+32>>3]=O[d+32>>3]+h;e=J[d+36>>2];J[d+16>>2]=J[d+32>>2];J[d+20>>2]=e;e=a+5|0;sb:{if(e>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;e=776480;break sb}e=(i+(e<<3)|0)+8|0}p=a+6|0;tb:{if(p>>>0>=k>>>0){H[i|0]=1;J[194120]=g;J[194121]=n;h=f;break tb}h=O[(i+(p<<3)|0)+8>>3]}o=O[e>>3];O[d+24>>3]=O[d+24>>3]+h;e=J[d+28>>2];J[d+8>>2]=J[d+24>>2];J[d+12>>2]=e;O[d+16>>3]=o+O[d+16>>3];e=J[d+20>>2];J[d>>2]=J[d+16>>2];J[d+4>>2]=e;a=a+7|0;ub:{if(a>>>0>=k>>>0){H[i| -0]=1;J[194120]=g;J[194121]=n;h=f;break ub}h=O[(i+(a<<3)|0)+8>>3]}O[d+8>>3]=O[d+8>>3]+h;a=b;e=a+8|0;if(k>>>0>=e>>>0)continue;break}}if(b>>>0>>0)O[d>>3]=O[d>>3]+O[(i+(b<<3)|0)+8>>3];Vc(c,j,d+32|0,d+16|0,d)}xb=d+48|0;J[c+20>>2]=0;break e}a=xb-96|0;xb=a;vb:{if(J[b+20>>2]==7){g=b+4400|0;e=J[g>>2];g=J[g+4>>2];J[a+88>>2]=e;J[a+92>>2]=g;j=J[b+4396>>2];J[a+80>>2]=J[b+4392>>2];J[a+84>>2]=j;O[a+80>>3]=O[a+80>>3]+O[b+24>>3];J[a+72>>2]=e;J[a+76>>2]=g;e=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=e;f=O[b+32>> -3];O[a+72>>3]=O[a+72>>3]+O[b+40>>3];O[a+64>>3]=f+O[a+64>>3];g=J[a+76>>2];e=J[a+72>>2];J[a+56>>2]=e;J[a+60>>2]=g;j=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=j;O[a+48>>3]=O[a+48>>3]+O[b+48>>3];J[a+40>>2]=e;J[a+44>>2]=g;j=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=j;O[a+32>>3]=O[a+32>>3]+O[b+56>>3];J[a+24>>2]=e;J[a+28>>2]=g;e=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=e;O[a+16>>3]=O[a+16>>3]+O[b- -64>>3];g=J[a+92>>2];e=J[a+88>>2];J[a+24>>2]=e;J[a+28>>2]=g;J[a+8>>2]=e;J[a+12>>2]=g;e=J[a+20>>2];J[a>> -2]=J[a+16>>2];J[a+4>>2]=e;O[a>>3]=O[a>>3]+O[b+72>>3];Vc(b,c,a+80|0,a- -64|0,a+48|0);Vc(b,c,a+32|0,a+16|0,a);break vb}J[b+8>>2]=J[b+4>>2]+1}xb=a+96|0;J[b+20>>2]=0;break e}a=xb-96|0;xb=a;wb:{if(J[b+20>>2]==13){e=b+4400|0;g=J[e+4>>2];J[a+88>>2]=J[e>>2];J[a+92>>2]=g;e=J[b+4396>>2];J[a+80>>2]=J[b+4392>>2];J[a+84>>2]=e;f=O[b+24>>3];O[a+88>>3]=O[a+88>>3]+O[b+32>>3];O[a+80>>3]=f+O[a+80>>3];e=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=e;e=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=e;f=O[b+40>>3];O[a+72>> -3]=O[a+72>>3]+O[b+48>>3];O[a+64>>3]=f+O[a+64>>3];e=J[a+76>>2];J[a+56>>2]=J[a+72>>2];J[a+60>>2]=e;e=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=e;f=O[b+56>>3];O[a+56>>3]=O[a+56>>3]+O[b- -64>>3];O[a+48>>3]=f+O[a+48>>3];e=J[a+60>>2];J[a+40>>2]=J[a+56>>2];J[a+44>>2]=e;e=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=e;f=O[b+72>>3];O[a+40>>3]=O[a+40>>3]+O[b+80>>3];O[a+32>>3]=f+O[a+32>>3];e=J[a+44>>2];J[a+24>>2]=J[a+40>>2];J[a+28>>2]=e;e=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=e;f=O[b+88>>3];O[a+24>>3]= -O[a+24>>3]+O[b+96>>3];O[a+16>>3]=f+O[a+16>>3];e=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=e;e=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=e;f=O[b+104>>3];O[a+8>>3]=O[a+8>>3]+O[b+112>>3];O[a>>3]=f+O[a>>3];Vc(b,c,a+80|0,a- -64|0,a+48|0);Vc(b,c,a+32|0,a+16|0,a);break wb}J[b+8>>2]=J[b+4>>2]+1}xb=a+96|0;J[b+20>>2]=0;break e}a=xb-96|0;xb=a;xb:{if(J[b+20>>2]==9){g=b+4400|0;e=g;j=J[e+4>>2];J[a+88>>2]=J[e>>2];J[a+92>>2]=j;e=J[b+4396>>2];J[a+80>>2]=J[b+4392>>2];J[a+84>>2]=e;f=O[b+24>>3];O[a+88>>3]=O[a+88>>3]+ -O[b+32>>3];O[a+80>>3]=f+O[a+80>>3];e=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=e;e=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=e;f=O[b+40>>3];O[a+72>>3]=O[a+72>>3]+O[b+48>>3];O[a+64>>3]=f+O[a+64>>3];j=J[a+76>>2];e=J[a+72>>2];J[a+56>>2]=e;J[a+60>>2]=j;l=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=l;O[a+48>>3]=O[a+48>>3]+O[b+56>>3];J[a+40>>2]=e;J[a+44>>2]=j;l=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=l;O[a+32>>3]=O[a+32>>3]+O[b- -64>>3];J[a+24>>2]=e;J[a+28>>2]=j;e=J[a+36>>2];J[a+16>>2]=J[a+32>> -2];J[a+20>>2]=e;f=O[b+72>>3];O[a+24>>3]=O[a+24>>3]+O[b+80>>3];O[a+16>>3]=f+O[a+16>>3];e=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=e;e=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=e;O[a>>3]=O[a>>3]+O[b+88>>3];e=J[g+4>>2];J[a+8>>2]=J[g>>2];J[a+12>>2]=e;Vc(b,c,a+80|0,a- -64|0,a+48|0);Vc(b,c,a+32|0,a+16|0,a);break xb}J[b+8>>2]=J[b+4>>2]+1}xb=a+96|0;J[b+20>>2]=0;break e}a=xb-96|0;xb=a;yb:{if(J[b+20>>2]==11){f=O[b+88>>3];h=O[b+72>>3];o=O[b+56>>3];q=O[b+40>>3];t=O[b+24>>3];r=O[b+96>>3];s=O[b+80>>3];g=b- -64| -0;m=O[g>>3];y=O[b+48>>3];A=O[b+32>>3];e=b+4400|0;j=J[e+4>>2];J[a+88>>2]=J[e>>2];J[a+92>>2]=j;j=J[b+4396>>2];J[a+80>>2]=J[b+4392>>2];J[a+84>>2]=j;u=O[b+24>>3];O[a+88>>3]=O[a+88>>3]+O[b+32>>3];O[a+80>>3]=u+O[a+80>>3];j=J[a+92>>2];J[a+72>>2]=J[a+88>>2];J[a+76>>2]=j;j=J[a+84>>2];J[a+64>>2]=J[a+80>>2];J[a+68>>2]=j;u=O[b+40>>3];O[a+72>>3]=O[a+72>>3]+O[b+48>>3];O[a+64>>3]=u+O[a+64>>3];j=J[a+76>>2];J[a+56>>2]=J[a+72>>2];J[a+60>>2]=j;j=J[a+68>>2];J[a+48>>2]=J[a+64>>2];J[a+52>>2]=j;u=O[b+56>>3];O[a+56>>3]= -O[a+56>>3]+O[g>>3];O[a+48>>3]=u+O[a+48>>3];g=J[a+60>>2];J[a+40>>2]=J[a+56>>2];J[a+44>>2]=g;g=J[a+52>>2];J[a+32>>2]=J[a+48>>2];J[a+36>>2]=g;u=O[b+72>>3];O[a+40>>3]=O[a+40>>3]+O[b+80>>3];O[a+32>>3]=u+O[a+32>>3];g=J[a+44>>2];J[a+24>>2]=J[a+40>>2];J[a+28>>2]=g;g=J[a+36>>2];J[a+16>>2]=J[a+32>>2];J[a+20>>2]=g;u=O[b+88>>3];O[a+24>>3]=O[a+24>>3]+O[b+96>>3];O[a+16>>3]=u+O[a+16>>3];g=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=g;g=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=g;zb:{if(R(f+(h+(o+(q+(t+0)))))>R(r+(s+ -(m+(y+(A+0)))))){O[a>>3]=O[a>>3]+O[b+104>>3];g=J[e+4>>2];J[a+8>>2]=J[e>>2];J[a+12>>2]=g;break zb}e=J[b+4396>>2];J[a>>2]=J[b+4392>>2];J[a+4>>2]=e;O[a+8>>3]=O[a+8>>3]+O[b+104>>3]}Vc(b,c,a+80|0,a- -64|0,a+48|0);Vc(b,c,a+32|0,a+16|0,a);break yb}J[b+8>>2]=J[b+4>>2]+1}xb=a+96|0;J[b+20>>2]=0;break e}_l(a,b);break e}H[e|0]=1;a=0;j=J[42445];e=J[42444];J[194120]=e;J[194121]=j;x(0,e|0);x(1,j|0);f=+z()}q=O[g>>3];H[c|0]=0;O[b+4400>>3]=h+q;O[b+4392>>3]=o+f;if(!K[b+4149|0]){if(!K[b+4150|0]){H[b+4150|0]=1;a=J[b+ -4156>>2]+a|0;J[b+4156>>2]=a;J[b+4160>>2]=(a+J[b+4152>>2]|0)+7>>>3}H[b+4149|0]=1}J[b+20>>2]=0}xb=v+16|0}function Wla(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;d=xb-240|0;xb=d;H[c+140|0]=K[c+140|0]|8;J[d+236>>2]=c;j=J[c+80>>2];J[d+232>>2]=j;f=j;a:{b:{k=J[c+68>>2];if(k){f=P(k,20)+f|0;b=j;h=k;while(1){g=K[b+18|0];if((g|0)!=6)break b;b=b+20|0;m=m+1|0;h=h-1|0;if(h)continue;break}}o=d+236|0;e=d+232|0;h=0;m=k;g=k;break a}e=d+232|0;o=d+236|0;if((g|0)!=14){f= -b;g=m;break a}g=m;c:{while(1){f=g;while(1){f=f+1|0;if(k>>>0<=f>>>0){f=b;break a}n=j+P(f,20)|0;if(K[n+18|0]==6)continue;break}i=b;q=m;p=h;r=g;if(!(1<>1]&7168)){f=b;break a}while(1){p=p-1|0;if(!p)break c;r=r+1|0;q=q+1|0;n=i;f=i+20|0;i=f;n=K[n+38|0];if((n|0)==6)continue;break}b=f;h=p;m=q;g=r;if((n|0)==14)continue;break}break a}m=h+m|0;g=g+h|0;f=P(h,20)+b|0;h=0}q=0;H[d+224|0]=0;J[d+220>>2]=116475;J[d+212>>2]=o;J[d+216>>2]=e;J[d+208>>2]=129422;J[d+200>>2]=m;J[d+196>>2]=h;J[d+192>>2]=f;J[d+176>> -2]=0;J[d+180>>2]=1;J[d+184>>2]=g;J[d+188>>2]=1;d:{e:{if(h){p=g;e=f;i=h;while(1){i=i-1|0;if(i){m=e;e=e+20|0;p=p+1|0;b=p;f:{g:switch(K[m+38|0]-6|0){case 0:continue;case 8:break g;default:break f}while(1){b=b+1|0;if(k>>>0<=b>>>0)break f;m=j+P(b,20)|0;if(K[m+18|0]==6)continue;break}if(1<>1]&7168)continue}q=q+1|0;continue}break}h:{m=q+1|0;if(m){i=m;e=h;while(1){i=i-1|0;while(1){e=e-1|0;if(!e)break h;p=f;f=f+20|0;g=g+1|0;b=g;i:{j:switch(K[p+38|0]-6|0){case 0:continue;case 8:break j;default:break i}while(1){b= -b+1|0;if(k>>>0<=b>>>0)break i;p=j+P(b,20)|0;if(K[p+18|0]==6)continue;break}if(1<>1]&7168)continue}break}if(i)continue;break}}q=J[d+220>>2];b=J[d+216>>2];J[d+160>>2]=b;J[d+164>>2]=q;r=J[d+212>>2];e=J[d+208>>2];J[d+152>>2]=e;J[d+156>>2]=r;k=J[d+204>>2];f=J[d+200>>2];J[d+144>>2]=f;J[d+148>>2]=k;j=J[d+196>>2];g=J[d+192>>2];J[d+136>>2]=g;J[d+140>>2]=j;n=J[d+188>>2];i=J[d+184>>2];J[d+128>>2]=i;J[d+132>>2]=n;o=J[d+180>>2];p=J[d+176>>2];J[d+120>>2]=p;J[d+124>>2]=o;J[d+104>>2]=b;J[d+108>>2]=q;J[d+ -96>>2]=e;J[d+100>>2]=r;J[d+88>>2]=f;J[d+92>>2]=k;J[d+80>>2]=g;J[d+84>>2]=j;J[d+72>>2]=i;J[d+76>>2]=n;J[d+64>>2]=p;J[d+68>>2]=o;H[d+112|0]=1;H[d+168|0]=1;r=0;break d}b=J[d+220>>2];J[d+160>>2]=J[d+216>>2];J[d+164>>2]=b;b=J[d+212>>2];J[d+152>>2]=J[d+208>>2];J[d+156>>2]=b;b=J[d+204>>2];J[d+144>>2]=J[d+200>>2];J[d+148>>2]=b;b=J[d+196>>2];J[d+136>>2]=J[d+192>>2];J[d+140>>2]=b;b=J[d+188>>2];J[d+128>>2]=J[d+184>>2];J[d+132>>2]=b;b=J[d+180>>2];J[d+120>>2]=J[d+176>>2];J[d+124>>2]=b;break e}b=J[d+220>>2];J[d+ -160>>2]=J[d+216>>2];J[d+164>>2]=b;b=J[d+212>>2];J[d+152>>2]=J[d+208>>2];J[d+156>>2]=b;b=J[d+204>>2];J[d+144>>2]=J[d+200>>2];J[d+148>>2]=b;b=J[d+196>>2];J[d+136>>2]=J[d+192>>2];J[d+140>>2]=b;b=J[d+188>>2];J[d+128>>2]=J[d+184>>2];J[d+132>>2]=b;b=J[d+180>>2];J[d+120>>2]=J[d+176>>2];J[d+124>>2]=b;m=0}b=J[42445];J[194120]=J[42444];J[194121]=b;b=J[42447];J[194122]=J[42446];J[194123]=b;J[194124]=J[42448];b=J[d+220>>2];J[d+104>>2]=J[d+216>>2];J[d+108>>2]=b;b=J[d+212>>2];J[d+96>>2]=J[d+208>>2];J[d+100>>2]= -b;b=J[d+204>>2];J[d+88>>2]=J[d+200>>2];J[d+92>>2]=b;b=J[d+196>>2];J[d+80>>2]=J[d+192>>2];J[d+84>>2]=b;b=J[d+188>>2];J[d+72>>2]=J[d+184>>2];J[d+76>>2]=b;b=J[d+180>>2];J[d+64>>2]=J[d+176>>2];J[d+68>>2]=b;H[d+168|0]=1;H[d+112|0]=1;r=1}j=1;q=1;p=1;b=!m;while(1){k:{l:{m:{if(!b){if(K[q+152976|0]==3){pe(d+120|0,d+176|0);h=J[d+196>>2]}b=q<<1;g=I[b+152048>>1]+147632|0;i=H[q+152304|0];e=K[b+147376|0];n:{o:{if(!h){J[194124]=J[42448];f=J[42447];J[194122]=J[42446];J[194123]=f;f=J[42445];J[194120]=J[42444];J[194121]= -f;f=K[776498];if(e>>>0>f>>>0)break n;if(K[b+147377|0]>=f>>>0)break o;break n}f=K[J[d+192>>2]+18|0];if(e>>>0>f>>>0|K[b+147377|0]>>0)break n}i=f-e|0}b=K[g+i|0];break m}if(!h){J[194124]=J[42448];b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b}if(r){J[194124]=J[42448];b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b}if((p|0)==1)break l;b=I[(p<<1)+152720>>1]-1|0}q=H[b+152432|0];b=H[b+152576|0];if(!b)break k;p:switch(b-1|0){case 5:b= -J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){q:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break q; -i=b;b=e;r:switch(K[i+38|0]-6|0){case 0:continue;case 8:break r;default:break q}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break q;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0);break k;case 13:b=J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+ -200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){s:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break s;i=b;b=e;t:switch(K[i+38|0]-6|0){case 0:continue;case 8:break t;default:break s}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break s;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]== -6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b= -b+1|0;continue}}case 11:b=J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){u:{e=b+20|0;g=g+1|0;f=f+ -o|0;h=h-1|0;if(!h)break u;i=b;b=e;v:switch(K[i+38|0]-6|0){case 0:continue;case 8:break v;default:break u}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break u;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|1;while(1){f=J[d+72>>2];if(!J[d+ -84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 9:b=J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2]; -J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){w:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break w;i=b;b=e;x:switch(K[i+38|0]-6|0){case 0:continue;case 8:break x;default:break w}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break w;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+ -24>>2]=e}pe(d- -64|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|2;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 17:b=J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]= -J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){y:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break y;i=b;b=e;z:switch(K[i+38|0]-6|0){case 0:continue;case 8:break z;default:break y}i= -J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break y;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|3;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]= -g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 15:b=J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+ -32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){A:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break A;i=b;b=e;B:switch(K[i+38|0]-6|0){case 0:continue;case 8:break B;default:break A}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break A;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446]; -J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|4;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 7:b=J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>> -2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){C:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break C;i=b;b=e;D:switch(K[i+38|0]-6|0){case 0:continue;case 8:break D;default:break C}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break C;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue; -break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|5;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 21:b= -J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){E:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break E; -i=b;b=e;F:switch(K[i+38|0]-6|0){case 0:continue;case 8:break F;default:break E}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break E;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|6;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448]; -g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 4:b=J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2];J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+ -56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){G:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break G;i=b;b=e;H:switch(K[i+38|0]-6|0){case 0:continue;case 8:break H;default:break G}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break G;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0); -b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|7;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=J[d+236>>2];J[b+144>>2]=J[b+144>>2]|64;b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 3:b=J[d+196>>2];J[d+24>>2]=J[d+192>>2];J[d+28>>2]=b;b=J[d+220>>2]; -J[d+48>>2]=J[d+216>>2];J[d+52>>2]=b;b=J[d+212>>2];J[d+40>>2]=J[d+208>>2];J[d+44>>2]=b;b=J[d+204>>2];J[d+32>>2]=J[d+200>>2];J[d+36>>2]=b;b=J[d+188>>2];J[d+16>>2]=J[d+184>>2];J[d+20>>2]=b;e=J[d+180>>2];b=J[d+176>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+224|0];J[d+8>>2]=b+J[d+12>>2];h=J[d+28>>2];if(h){b=J[d+24>>2];g=J[d+32>>2];k=J[d+44>>2];n=J[d+48>>2];o=J[d+20>>2];f=J[d+16>>2];while(1){I:{e=b+20|0;g=g+1|0;f=f+o|0;h=h-1|0;if(!h)break I;i=b;b=e;J:switch(K[i+38|0]-6|0){case 0:continue;case 8:break J; -default:break I}i=J[J[k>>2]+68>>2];b=f;while(1){b=b+1|0;if(i>>>0<=b>>>0)break I;l=J[n>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=g;J[d+28>>2]=h;J[d+16>>2]=f;J[d+24>>2]=e}pe(d- -64|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|8;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]= -J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 12:pe(d- -64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2];h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e=b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f;h=h-20|0;J[d+192>>2]=h;b=e}else b=0;if(K[h+18|0]==6?f:0)continue;K:{if(!f|K[h+18|0]!=14)break K;o=J[J[i>>2]+68>>2];b=g;while(1){b= -b+1|0;if(o>>>0<=b>>>0)break K;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 10:pe(d- --64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2];h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e=b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f;h=h-20|0;J[d+192>>2]=h;b=e}else b=0;if(K[h+18|0]==6?f:0)continue;L:{if(!f|K[h+18|0]!=14)break L;o=J[J[i>>2]+68>>2];b=g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break L;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}b=J[d+128>>2];if(!J[d+ -140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|1;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 8:pe(d- -64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2];h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2]; -n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e=b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f;h=h-20|0;J[d+192>>2]=h;b=e}else b=0;if(K[h+18|0]==6?f:0)continue;M:{if(!f|K[h+18|0]!=14)break M;o=J[J[i>>2]+68>>2];b=g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break M;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e= -j<<4|2;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 16:pe(d- -64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2];h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e=b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f; -h=h-20|0;J[d+192>>2]=h;b=e}else b=0;if(K[h+18|0]==6?f:0)continue;N:{if(!f|K[h+18|0]!=14)break N;o=J[J[i>>2]+68>>2];b=g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break N;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|3;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445]; -J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 14:pe(d- -64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2];h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e=b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f;h=h-20|0;J[d+192>>2]=h;b=e}else b=0;if(K[h+18|0]==6?f:0)continue;O:{if(!f|K[h+18|0]!=14)break O;o=J[J[i>>2]+68>>2];b= -g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break O;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|4;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15| -0]=e;b=b+1|0;continue}}case 6:pe(d- -64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2];h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e=b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f;h=h-20|0;J[d+192>>2]=h;b=e}else b=0;if(K[h+18|0]==6?f:0)continue;P:{if(!f|K[h+18|0]!=14)break P;o=J[J[i>>2]+68>>2];b=g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break P;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]& -7168)continue}break}b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|5;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 20:pe(d- -64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2]; -h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e=b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f;h=h-20|0;J[d+192>>2]=h;b=e}else b=0;if(K[h+18|0]==6?f:0)continue;Q:{if(!f|K[h+18|0]!=14)break Q;o=J[J[i>>2]+68>>2];b=g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break Q;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e= -J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|6;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 18:pe(d- -64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2];h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e= -b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f;h=h-20|0;J[d+192>>2]=h;b=e}else b=0;if(K[h+18|0]==6?f:0)continue;R:{if(!f|K[h+18|0]!=14)break R;o=J[J[i>>2]+68>>2];b=g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break R;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|7;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447]; -J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=J[d+236>>2];J[b+144>>2]=J[b+144>>2]|64;b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 19:pe(d- -64|0,d+176|0);J[d+176>>2]=J[d+176>>2]-J[d+180>>2];i=J[d+212>>2];k=J[d+216>>2];h=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];n=J[d+188>>2];e=J[d+200>>2];b=e;while(1){g=g-n|0;J[d+184>>2]=g;if(b){e=b-1|0;J[d+200>>2]=e;f=f+1|0;J[d+196>>2]=f;h=h-20|0;J[d+192>>2]=h;b=e}else b= -0;if(K[h+18|0]==6?f:0)continue;S:{if(!f|K[h+18|0]!=14)break S;o=J[J[i>>2]+68>>2];b=g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break S;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|8;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>> -0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}case 0:break p;default:break k}b=J[d+84>>2];J[d+24>>2]=J[d+80>>2];J[d+28>>2]=b;b=J[d+108>>2];J[d+48>>2]=J[d+104>>2];J[d+52>>2]=b;b=J[d+100>>2];J[d+40>>2]=J[d+96>>2];J[d+44>>2]=b;b=J[d+92>>2];J[d+32>>2]=J[d+88>>2];J[d+36>>2]=b;b=J[d+76>>2];J[d+16>>2]=J[d+72>>2];J[d+20>>2]=b;e=J[d+68>>2];b=J[d+64>>2];J[d+8>>2]=b;J[d+12>>2]=e;H[d+56|0]=K[d+112|0];J[d+8>>2]=b-J[d+12>>2];f=J[d+28>>2];if(f){h=J[d+24>>2];i= -J[d+44>>2];k=J[d+48>>2];n=J[d+20>>2];g=J[d+16>>2];e=J[d+32>>2];b=e;while(1){if(b){h=h-20|0;f=f+1|0;e=b-1|0;b=e}else b=0;g=g-n|0;if(K[h+18|0]==6?f:0)continue;T:{if(!f|K[h+18|0]!=14)break T;o=J[J[i>>2]+68>>2];b=g;while(1){b=b+1|0;if(o>>>0<=b>>>0)break T;l=J[k>>2]+P(b,20)|0;if(K[l+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}J[d+32>>2]=e;J[d+28>>2]=f;J[d+24>>2]=h;J[d+16>>2]=g}pe(d+176|0,d+8|0);b=J[d+128>>2];if(!J[d+140>>2]){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]= -e;e=J[42445];J[194120]=J[42444];J[194121]=e}e=j<<4|5;while(1){f=J[d+72>>2];if(!J[d+84>>2]){J[194124]=J[42448];g=J[42447];J[194122]=J[42446];J[194123]=g;g=J[42445];J[194120]=J[42444];J[194121]=g}if(b>>>0>=f>>>0){b=j+1|0;j=(b|0)==16?1:b;break k}else{H[(J[d+232>>2]+P(b,20)|0)+15|0]=e;b=b+1|0;continue}}}U:{V:{e=J[c+68>>2];if(e){f=e-1|0;g=J[c+80>>2];i=g+3|0;b=0;g=K[g+15|0];while(1){W:{if((b|0)==(f|0)){b=e;break W}b=b+1|0;if((g|0)==K[(i+P(b,20)|0)+12|0])continue}break}f=0;if(e)break V}p=0;break U}while(1){g= -f;f=b;Ac(c,3,g,b,1,0);p=J[c+68>>2];g=b+1|0;g=g>>>0

>>0?p:g;i=g-1|0;h=J[c+80>>2];m=h+3|0;h=K[(h+P(b,20)|0)+15|0];while(1){X:{if((b|0)==(i|0)){b=g;break X}b=b+1|0;if((h|0)==K[(m+P(b,20)|0)+12|0])continue}break}if(e>>>0>f>>>0)continue;break}}q=J[a+100>>2];g=J[q>>2];if(!(!g|!p)){b=p-1|0;h=J[c+80>>2];m=h+3|0;i=0;e=K[h+15|0];while(1){Y:{if((b|0)==(i|0)){i=p;break Y}i=i+1|0;if((e|0)==K[(m+P(i,20)|0)+12|0])continue}break}r=h+2|0;b=0;while(1){e=i;f=e-b|0;f=K[(r+P(b,20)|0)+16|0]==18?1:f>>>0>=3?3:f;k=f+b| -0;Z:{if(k>>>0<=b>>>0)break Z;i=0;if(f)while(1){j=h+P(b,20)|0;J[j+4>>2]=g|J[j+4>>2];b=b+1|0;i=i+1|0;if((f|0)!=(i|0))continue;break}if(f-1>>>0<=2)break Z;while(1){f=h+P(b,20)|0;J[f+4>>2]=g|J[f+4>>2];J[f+24>>2]=g|J[f+24>>2];J[f+44>>2]=g|J[f+44>>2];f=f- -64|0;J[f>>2]=g|J[f>>2];b=b+4|0;if((k|0)!=(b|0))continue;break}}b=e+1|0;b=b>>>0

>>0?p:b;f=b-1|0;k=K[(m+P(e,20)|0)+12|0];i=e;while(1){_:{if((f|0)==(i|0)){i=b;break _}i=i+1|0;if((k|0)==K[(m+P(i,20)|0)+12|0])continue}break}b=e;if(p>>>0>b>>>0)continue;break}}$:{if(J[q+ -4>>2])break $;f=J[a+44>>2];if((f|0)<=0)break $;e=J[a+36>>2];b=J[a+48>>2];m=0;i=f-1|0;a=i;aa:{while(1){f=a+m>>>1|0;g=J[b+P(f,36)>>2];ba:{if(g>>>0<=1769172844){h=J[(b+P(f,36)|0)+28>>2];if((g|0)==1769172844)break aa;m=f+1|0;break ba}a=f-1|0}if((a|0)>=(m|0))continue;break}h=0}a=h;m=0;g=(a|0)!=(e|0)?a:0;J[d+176>>2]=g;a=i;ca:{while(1){f=a+m>>>1|0;h=J[b+P(f,36)>>2];da:{if(h>>>0<=1768843636){m=J[(b+P(f,36)|0)+28>>2];if((h|0)==1768843636)break ca;m=f+1|0;break da}a=f-1|0}if((a|0)>=(m|0))continue;break}m=0}a= -m;m=0;a=(a|0)!=(e|0)?a:0;J[d+180>>2]=a;g=a|g;a=i;ea:{while(1){f=a+m>>>1|0;h=J[b+P(f,36)>>2];fa:{if(h>>>0<=1835361385){m=J[(b+P(f,36)|0)+28>>2];if((h|0)==1835361385)break ea;m=f+1|0;break fa}a=f-1|0}if((a|0)>=(m|0))continue;break}m=0}f=m;a=0;f=(e|0)!=(f|0)?f:0;J[d+184>>2]=f;g=f|g;ga:{while(1){f=a+i>>>1|0;h=J[b+P(f,36)>>2];ha:{if(h>>>0<=1718185569){a=J[(b+P(f,36)|0)+28>>2];if((h|0)==1718185569)break ga;a=f+1|0;break ha}i=f-1|0}if((a|0)<=(i|0))continue;break}a=0}a=(a|0)!=(e|0)?a:0;J[d+188>>2]=a;a=a| -g;if(!a|!p)break $;f=a^-1;a=p-1|0;h=J[c+80>>2];k=h+3|0;i=0;g=K[h+15|0];b=g;while(1){ia:{if((a|0)==(i|0)){i=p;break ia}i=i+1|0;if((b|0)==K[(k+P(i,20)|0)+12|0])continue}break}e=0;a=0;q=4;while(1){b=e;e=i;c=g&15;ja:{if(c>>>0>8)break ja;if(!(1<>>0>=b>>>0)break ka;c=b+(a^-1)|0;g=J[(d+176|((q|0)==3?8:4))>>2];m=0;i=b-a&3;if(i)while(1){q=h+P(a,20)|0;J[q+4>>2]=g|f&J[q+4>>2];a=a+1|0;m=m+1|0;if((i|0)!=(m|0))continue; -break}if(c>>>0<3)break ka;while(1){c=h+P(a,20)|0;J[c+4>>2]=g|f&J[c+4>>2];J[c+24>>2]=g|f&J[c+24>>2];J[c+44>>2]=g|f&J[c+44>>2];c=c- -64|0;J[c>>2]=g|f&J[c>>2];a=a+4|0;if((b|0)!=(a|0))continue;break}}ma:{if(b>>>0>=e>>>0)break ma;c=J[(d+176|r<<2)>>2];m=0;i=b;a=e-b&3;if(a)while(1){g=h+P(i,20)|0;J[g+4>>2]=c|f&J[g+4>>2];i=i+1|0;m=m+1|0;if((a|0)!=(m|0))continue;break}if((b^-1)+e>>>0<3)break ma;while(1){a=h+P(i,20)|0;J[a+4>>2]=c|f&J[a+4>>2];J[a+24>>2]=c|f&J[a+24>>2];J[a+44>>2]=c|f&J[a+44>>2];a=a- -64|0;J[a>> -2]=c|f&J[a>>2];i=i+4|0;if((i|0)!=(e|0))continue;break}}q=r}a=e+1|0;a=a>>>0

>>0?p:a;c=a-1|0;g=K[(k+P(e,20)|0)+12|0];i=e;while(1){na:{if((c|0)==(i|0)){i=a;break na}i=i+1|0;if(K[(k+P(i,20)|0)+12|0]==(g|0))continue}break}a=b;if(e>>>0

>>0)continue;break}}xb=d+240|0;return 0}if(K[q+153104|0]==2)H[d+168|0]=1;n=J[d+176>>2]+J[d+180>>2]|0;J[d+176>>2]=n;o=J[d+212>>2];l=J[d+216>>2];e=J[d+200>>2];b=J[d+192>>2];f=J[d+196>>2];g=J[d+184>>2];s=J[d+188>>2];while(1){oa:{g=g+s|0;J[d+184>>2]=g;h=0;if(!f)break oa; -e=e+1|0;J[d+200>>2]=e;f=f-1|0;J[d+196>>2]=f;i=b+20|0;J[d+192>>2]=i;if(!f)break oa;k=b;b=i;h=f;pa:switch(K[k+38|0]-6|0){case 0:continue;case 8:break pa;default:break oa}h=J[J[o>>2]+68>>2];b=g;while(1){b=b+1|0;if(h>>>0<=b>>>0){h=f;break oa}k=J[l>>2]+P(b,20)|0;if(K[k+18|0]==6)continue;break}b=i;h=f;if(1<>1]&7168)continue}break}qa:{if(K[d+224|0])break qa;if(!h){J[194124]=J[42448];b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b}if(r){J[194124]=J[42448];b=J[42447]; -J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b}p=q;if((n|0)!=(m|0))break qa;b=1;continue}b=0;continue}}function FZ(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;g=xb-528|0;xb=g;a:{b:{c:{d:{k=J[a+72>>2];e:{if(!k)break e;if(!(Ab[J[J[k>>2]+36>>2]](k)|0))break e;iC(g+516|0,b);k=K[g+527|0];b=k<<24>>24;if((b|0)<0?J[g+520>>2]:k){f:{g:{h:{i:{j:{k:{if(K[a+81|0])break k;J[195395]=0;b=_(3106,a|0)|0;k=J[195395];J[195395]= -0;if((k|0)==1)break j;if(!b)break k;H[a+81|0]=1}J[g+512>>2]=0;J[g+504>>2]=0;J[g+508>>2]=0;m=O[c+8>>3];j=O[c>>3];b=J[a+72>>2];k=J[J[b>>2]+48>>2];J[195395]=0;b=_(k|0,b|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break i;if(!(!(b&1)|O[c>>3]!=0|O[c+8>>3]!=0)){b=J[a+72>>2];c=J[J[b>>2]+64>>2];J[195395]=0;k=c;c=g+312|0;$(k|0,c|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break h;j=O[g+312>>3];b=J[a+72>>2];k=J[J[b>>2]+64>>2];J[195395]=0;$(k|0,c|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break g;m=O[g+320>>3]}J[195395]= -0;b=g+456|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;k=b;c=J[195395];J[195395]=0;l:{if((c|0)==1)break l;c=J[a+72>>2];i=J[J[c>>2]+72>>2];J[195395]=0;c=ca(i|0,c|0,2)|0;i=J[195395];J[195395]=0;if((i|0)==1)break l;J[195395]=0;Rd(b,c);b=J[195395];J[195395]=0;if((b|0)!=1)break f}f=Z()|0;break b}f=Z()|0;break a}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break b}b=J[a+72>>2];c=J[J[b>> -2]+52>>2];J[195395]=0;q=_(c|0,b|0)|0;b=J[195395];J[195395]=0;m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{if((b|0)!=1){ba:{if((q|0)!=2)break ba;b=J[a+72>>2];c=J[J[b>>2]+56>>2];J[195395]=0;b=_(c|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break aa;J[195395]=0;fa(1975,g+272|0,b|0,255);b=J[195395];J[195395]=0;if((b|0)==1)break aa;J[g+312>>2]=103;J[g+316>>2]=0;H[g+323|0]=1;J[g+256>>2]=0;J[g+248>>2]=0;J[g+252>>2]=0;b= -J[a+76>>2];J[195395]=0;fa(1950,b|0,g+312|0,0);b=J[195395];J[195395]=0;if((b|0)==1)break $;if(H[g+323|0]<0)Kb(J[g+312>>2]);J[195395]=0;b=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break _;J[g+248>>2]=b;J[g+252>>2]=4;J[g+256>>2]=-2147483640;c=J[105193];J[b+8>>2]=J[105192];J[b+12>>2]=c;c=J[105191];J[b>>2]=J[105190];J[b+4>>2]=c;J[b+16>>2]=0;b=J[d>>2];J[195395]=0;da(1863,g+200|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break Z;b=J[g+208>>2];J[g+208>>2]=0;J[g+332>>2]=b;J[g+312>>2]=120;J[g+316>> -2]=0;b=J[g+200>>2];c=J[g+204>>2];J[g+200>>2]=0;J[g+204>>2]=0;J[g+324>>2]=b;J[g+328>>2]=c;H[g+323|0]=1;b=J[d+4>>2];J[195395]=0;da(1863,g+176|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break Y;b=J[g+180>>2];J[g+348>>2]=J[g+176>>2];J[g+352>>2]=b;b=J[g+184>>2];J[g+184>>2]=0;J[g+356>>2]=b;J[g+336>>2]=121;J[g+340>>2]=0;J[g+176>>2]=0;J[g+180>>2]=0;H[g+347|0]=1;b=J[d>>2];c=J[d+8>>2];J[195395]=0;da(1863,g+152|0,+(c-b|0),-1);c=J[195395];J[195395]=0;b=g+360|0;if((c|0)==1)break X;J[195395]=0;c=_(1078,32)| -0;i=J[195395];J[195395]=0;if((i|0)==1)break W;J[g+364>>2]=5;J[g+368>>2]=-2147483640;J[g+360>>2]=c;J[c+16>>2]=J[105201];b=J[105200];J[c+8>>2]=J[105199];J[c+12>>2]=b;b=J[105198];J[c>>2]=J[105197];J[c+4>>2]=b;J[c+20>>2]=0;J[g+380>>2]=J[g+160>>2];J[g+160>>2]=0;b=J[g+156>>2];J[g+372>>2]=J[g+152>>2];J[g+376>>2]=b;J[g+152>>2]=0;J[g+156>>2]=0;b=J[d+4>>2];c=J[d+12>>2];J[195395]=0;da(1863,g+32|0,+(c-b|0),-1);c=J[195395];J[195395]=0;b=g+384|0;if((c|0)==1)break V;J[195395]=0;c=_(1078,32)|0;d=J[195395];J[195395]= -0;if((d|0)==1)break U;J[g+388>>2]=6;J[g+392>>2]=-2147483640;J[g+384>>2]=c;b=J[105208];J[c+16>>2]=J[105207];J[c+20>>2]=b;b=J[105206];J[c+8>>2]=J[105205];J[c+12>>2]=b;b=J[105204];J[c>>2]=J[105203];J[c+4>>2]=b;J[c+24>>2]=0;J[g+404>>2]=J[g+40>>2];J[g+40>>2]=0;b=J[g+36>>2];J[g+396>>2]=J[g+32>>2];J[g+400>>2]=b;J[195395]=0;J[g+32>>2]=0;J[g+36>>2]=0;b=g+408|0;aa(3107,b|0,420840,g+272|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break U;J[195395]=0;b=g+432|0;c=aa(3108,b|0,420860,420888)|0;d=J[195395];J[195395]= -0;if((d|0)==1)break U;J[g+232>>2]=0;J[g+224>>2]=0;J[g+228>>2]=0;J[195395]=0;H[g+12|0]=0;J[g+8>>2]=g+224;b=_(1078,144)|0;d=J[195395];J[195395]=0;ca:{da:{if((d|0)!=1){J[g+228>>2]=b;J[g+224>>2]=b;J[195395]=0;J[g+232>>2]=b+144;d=ha(1957,g+232|0,g+312|0,g+456|0,b|0)|0;h=J[195395];J[195395]=0;if((h|0)!=1)break ca;f=Z()|0;J[g+228>>2]=b;break da}f=Z()|0}Kc(g+8|0);break S}J[g+228>>2]=d;J[195395]=0;J[g+8>>2]=0;H[g+19|0]=0;ia(1961,a|0,g+248|0,g+224|0,g+8|0);b=J[195395];J[195395]=0;if((b|0)==1)break T;if(H[g+ -19|0]<0)Kb(J[g+8>>2]);d=J[g+224>>2];if(d){b=J[g+228>>2];c=d;if((b|0)!=(d|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((d|0)!=(b|0))continue;break}c=J[g+224>>2]}J[g+228>>2]=d;Kb(c)}if(H[g+455|0]<0)Kb(J[g+444>>2]);if(H[g+443|0]<0)Kb(J[g+432>>2]);if(H[g+431|0]<0)Kb(J[g+420>>2]);if(H[g+419|0]<0)Kb(J[g+408>>2]);if(H[g+407|0]<0)Kb(J[g+396>>2]);if(H[g+395|0]<0)Kb(J[g+384>>2]);if(H[g+383|0]<0)Kb(J[g+372>>2]);if(H[g+371|0]<0)Kb(J[g+360>>2]);if(H[g+359|0]<0)Kb(J[g+348>> -2]);if(H[g+347|0]<0)Kb(J[g+336>>2]);if(H[g+335|0]<0)Kb(J[g+324>>2]);if(H[g+323|0]<0)Kb(J[g+312>>2]);if(H[g+43|0]<0)Kb(J[g+32>>2]);if(H[g+163|0]<0)Kb(J[g+152>>2]);if(H[g+187|0]<0)Kb(J[g+176>>2]);if(H[g+211|0]<0)Kb(J[g+200>>2]);if(H[g+259|0]<0)Kb(J[g+248>>2]);if(H[g+283|0]>=0)break ba;Kb(J[g+272>>2])}b=J[a+72>>2];c=J[J[b>>2]+32>>2];J[195395]=0;b=_(c|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break H;if(!b)break I;J[195395]=0;fa(1975,g+272|0,b|0,255);b=J[195395];J[195395]=0;if((b|0)==1)break G;J[195395]= -0;b=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break D;J[g+312>>2]=b;J[g+316>>2]=4;J[g+320>>2]=-2147483640;c=J[105213];J[b+8>>2]=J[105212];J[b+12>>2]=c;c=J[105211];J[b>>2]=J[105210];J[b+4>>2]=c;J[b+16>>2]=0;J[g+332>>2]=J[g+280>>2];c=J[g+276>>2];J[g+324>>2]=J[g+272>>2];J[g+328>>2]=c;c=J[g+508>>2];if(c>>>0>=M[g+512>>2])break K;J[195395]=0;fa(1808,c|0,b|0,4);b=J[195395];J[195395]=0;if((b|0)!=1)break L;f=Z()|0;J[g+508>>2]=c;break E}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;Hc(g+248|0);if(H[g+323| -0]>=0)break M;Kb(J[g+312>>2]);break M}f=Z()|0;break M}f=Z()|0;break N}b=g+336|0;f=Z()|0;break O}f=Z()|0;break P}f=Z()|0;break Q}f=Z()|0;break Q}f=Z()|0;break R}f=Z()|0;if(H[g+19|0]<0)Kb(J[g+8>>2]);Hc(g+224|0)}Vb(g+432|0);Vb(g+408|0);Vb(g+384|0);Vb(g+360|0);Vb(g+336|0);Vb(g+312|0);h=1;b=c}if(H[g+43|0]>=0)break Q;Kb(J[g+32>>2])}if(H[g+163|0]>=0)break P;Kb(J[g+152>>2])}if(H[g+187|0]>=0)break O;Kb(J[g+176>>2])}if(H[g+211|0]<0)Kb(J[g+200>>2]);if((g+312|0)==(b|0)|h)break N;while(1){b=Vb(b-24|0);if((b|0)!= -(g+312|0))continue;break}}if(H[g+259|0]>=0)break M;Kb(J[g+248>>2])}if(H[g+283|0]>=0)break b;Kb(J[g+272>>2]);break b}b=J[g+328>>2];J[c+12>>2]=J[g+324>>2];J[c+16>>2]=b;J[c+20>>2]=J[g+332>>2];J[g+324>>2]=0;J[g+328>>2]=0;J[g+332>>2]=0;J[g+508>>2]=c+24;break J}J[195395]=0;$(1971,g+504|0,g+312|0);b=J[195395];J[195395]=0;if((b|0)==1)break F;if(H[g+335|0]>=0)break J;Kb(J[g+324>>2])}if(H[g+323|0]>=0)break I;Kb(J[g+312>>2])}b=J[a+72>>2];c=J[J[b>>2]+36>>2];J[195395]=0;c=_(c|0,b|0)|0;b=J[195395];J[195395]=0; -if((b|0)==1)break r;if(!c)break m;b=J[J[c>>2]+8>>2];J[195395]=0;l=+va(b|0,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break q;J[195395]=0;l=R(l);o=l<.01?18:l;da(1863,g+272|0,+o,-1);b=J[195395];J[195395]=0;if((b|0)==1)break z;J[195395]=0;b=_(1078,48)|0;d=J[195395];J[195395]=0;if((d|0)==1)break y;J[g+312>>2]=b;J[g+316>>2]=9;J[g+320>>2]=-2147483636;J[b+32>>2]=J[105235];d=J[105234];J[b+24>>2]=J[105233];J[b+28>>2]=d;d=J[105232];J[b+16>>2]=J[105231];J[b+20>>2]=d;d=J[105230];J[b+8>>2]=J[105229];J[b+12>>2]= -d;d=J[105228];J[b>>2]=J[105227];J[b+4>>2]=d;J[b+36>>2]=0;J[g+332>>2]=J[g+280>>2];J[g+280>>2]=0;d=J[g+276>>2];J[g+324>>2]=J[g+272>>2];J[g+328>>2]=d;J[g+272>>2]=0;J[g+276>>2]=0;d=J[g+508>>2];if(d>>>0>=M[g+512>>2])break B;J[195395]=0;fa(1808,d|0,b|0,9);b=J[195395];J[195395]=0;if((b|0)!=1)break C;f=Z()|0;J[g+508>>2]=d;break w}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0}Vb(g+312|0);break b}f=Z()|0;if(H[g+283|0]>=0)break b;Kb(J[g+272>>2]);break b}b=J[g+328>>2];J[d+12>>2]=J[g+324>>2];J[d+16>>2]=b;J[d+20>>2]= -J[g+332>>2];J[g+324>>2]=0;J[g+328>>2]=0;J[g+332>>2]=0;J[g+508>>2]=d+24;break A}J[195395]=0;$(1971,g+504|0,g+312|0);b=J[195395];J[195395]=0;if((b|0)==1)break x;if(H[g+335|0]>=0)break A;Kb(J[g+324>>2])}if(H[g+323|0]<0)Kb(J[g+312>>2]);if(H[g+283|0]<0)Kb(J[g+272>>2]);b=J[J[c>>2]+12>>2];J[195395]=0;d=b;b=g+300|0;$(d|0,b|0,c|0);d=J[195395];J[195395]=0;if((d|0)==1)break u;d=K[g+311|0];if(!(d<<24>>24<0?J[g+304>>2]:d))break n;J[195395]=0;b=aa(1976,g+272|0,420948,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break t; -d=J[g+508>>2];if(d>>>0>2]){if(H[b+11|0]>=0){h=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=h;J[d+8>>2]=J[b+8>>2];break p}h=J[b+4>>2];i=J[b>>2];J[195395]=0;fa(1808,d|0,i|0,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break p;f=Z()|0;J[g+508>>2]=d;Vb(b);break c}J[195395]=0;$(1971,g+504|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break s;if(H[b+23|0]>=0)break o;Kb(J[b+12>>2]);break o}f=Z()|0;break b}f=Z()|0;break v}f=Z()|0}Vb(g+312|0)}if(H[g+283|0]>=0)break b;Kb(J[g+272>>2]);break b}f=Z()|0;break b}f=Z()| -0;break c}f=Z()|0;Vb(b);break c}f=Z()|0;break b}f=Z()|0;break b}h=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=h;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=d+24}if(H[b+11|0]>=0)break n;Kb(J[b>>2])}b=J[J[c>>2]+16>>2];J[195395]=0;b=_(b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;ea:{if((b|0)<551)break ea;J[195395]=0;b=aa(1977,g+248|0,420996,421044)|0;d=J[195395];J[195395]=0;fa:{ga:{ha:{if((d|0)!=1){d=J[g+508>>2];if(d>>>0>2]){if(H[b+11|0]>=0){h=J[b+4>>2]; -J[d>>2]=J[b>>2];J[d+4>>2]=h;J[d+8>>2]=J[b+8>>2];break ga}h=J[b+4>>2];i=J[b>>2];J[195395]=0;fa(1808,d|0,i|0,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break ga;f=Z()|0;J[g+508>>2]=d;Vb(b);break c}J[195395]=0;$(1971,g+504|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break ha;if(H[b+23|0]>=0)break fa;Kb(J[b+12>>2]);break fa}f=Z()|0;break c}f=Z()|0;Vb(b);break c}h=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=h;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=d+24}if(H[b+11|0]>=0)break ea; -Kb(J[b>>2])}b=J[J[c>>2]+20>>2];J[195395]=0;b=_(b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;ia:{if(!b)break ia;J[195395]=0;b=aa(1978,g+224|0,421064,421108)|0;d=J[195395];J[195395]=0;ja:{ka:{la:{if((d|0)!=1){d=J[g+508>>2];if(d>>>0>2]){if(H[b+11|0]>=0){h=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=h;J[d+8>>2]=J[b+8>>2];break ka}h=J[b+4>>2];i=J[b>>2];J[195395]=0;fa(1808,d|0,i|0,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break ka;f=Z()|0;J[g+508>>2]=d;Vb(b);break c}J[195395]=0;$(1971,g+504|0, -b|0);d=J[195395];J[195395]=0;if((d|0)==1)break la;if(H[b+23|0]>=0)break ja;Kb(J[b+12>>2]);break ja}f=Z()|0;break c}f=Z()|0;Vb(b);break c}h=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=h;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=d+24}if(H[b+11|0]>=0)break ia;Kb(J[b>>2])}b=J[J[c>>2]+28>>2];J[195395]=0;b=_(b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;ma:{na:{oa:{pa:{qa:{if(b){b=J[J[c>>2]+24>>2];J[195395]=0;b=_(b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d; -if(b)break qa}b=J[J[c>>2]+28>>2];J[195395]=0;b=_(b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break pa;break d}J[195395]=0;b=aa(1979,g+200|0,421136,421200)|0;d=J[195395];J[195395]=0;ra:{if((d|0)!=1){d=J[g+508>>2];if(d>>>0>2]){if(H[b+11|0]>=0){h=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=h;J[d+8>>2]=J[b+8>>2];break oa}h=J[b+4>>2];i=J[b>>2];J[195395]=0;fa(1808,d|0,i|0,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break oa;f=Z()|0;J[g+508>>2]=d;Vb(b);break c}J[195395]=0;$(1971,g+504|0,b|0);d=J[195395]; -J[195395]=0;if((d|0)==1)break ra;if(H[b+23|0]>=0)break na;Kb(J[b+12>>2]);break na}f=Z()|0;break c}f=Z()|0;Vb(b);break c}sa:{ta:{if(b){J[195395]=0;b=aa(1980,g+200|0,421136,421292)|0;d=J[195395];J[195395]=0;ua:{if((d|0)!=1){d=J[g+508>>2];if(d>>>0>2]){if(H[b+11|0]>=0){h=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=h;J[d+8>>2]=J[b+8>>2];break ta}h=J[b+4>>2];i=J[b>>2];J[195395]=0;fa(1808,d|0,i|0,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break ta;f=Z()|0;J[g+508>>2]=d;Vb(b);break c}J[195395]=0;$(1971,g+ -504|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break ua;if(H[b+23|0]>=0)break sa;Kb(J[b+12>>2]);break sa}f=Z()|0;break c}f=Z()|0;Vb(b);break c}b=J[J[c>>2]+24>>2];J[195395]=0;b=_(b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;if(!b)break ma;J[195395]=0;b=aa(1981,g+200|0,421136,421332)|0;d=J[195395];J[195395]=0;va:{wa:{xa:{if((d|0)!=1){d=J[g+508>>2];if(d>>>0>2]){if(H[b+11|0]>=0){h=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=h;J[d+8>>2]=J[b+8>>2];break wa}h=J[b+4>>2];i=J[b>>2];J[195395]=0;fa(1808, -d|0,i|0,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break wa;f=Z()|0;J[g+508>>2]=d;Vb(b);break c}J[195395]=0;$(1971,g+504|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break xa;if(H[b+23|0]>=0)break va;Kb(J[b+12>>2]);break va}f=Z()|0;break c}f=Z()|0;Vb(b);break c}h=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=h;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=d+24}if(H[b+11|0]>=0)break ma;Kb(J[b>>2]);break ma}h=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=h;J[d+20>>2]=J[b+20>>2];J[b+ -12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=d+24}if(H[b+11|0]>=0)break ma;Kb(J[b>>2]);break ma}h=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=h;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=d+24}if(H[b+11|0]>=0)break ma;Kb(J[b>>2])}b=J[a+72>>2];d=J[J[b>>2]+48>>2];J[195395]=0;b=_(d|0,b|0)|0;d=J[195395];J[195395]=0;ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{if((d|0)!=1){d=J[a+72>>2];h=J[J[d>>2]+48>>2];J[195395]= -0;d=_(h|0,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break Wa;b=(b&31)-(b&1)|0;if(!(b&24))break Ya;b=b-24|0;break Xa}f=Z()|0;break c}Za:{_a:{i=d>>>8|0;if(!(!(b&8)&(i|0)!=2)){J[195395]=0;d=aa(3109,g+176|0,421384,421456)|0;h=J[195395];J[195395]=0;$a:{if((h|0)!=1){h=J[g+508>>2];if(h>>>0>2]){if(H[d+11|0]>=0){n=J[d+4>>2];J[h>>2]=J[d>>2];J[h+4>>2]=n;J[h+8>>2]=J[d+8>>2];break _a}n=J[d+4>>2];p=J[d>>2];J[195395]=0;fa(1808,h|0,p|0,n|0);n=J[195395];J[195395]=0;if((n|0)!=1)break _a;f=Z()|0;J[g+508>> -2]=h;Vb(d);break c}J[195395]=0;$(1971,g+504|0,d|0);h=J[195395];J[195395]=0;if((h|0)==1)break $a;if(H[d+23|0]>=0)break Za;Kb(J[d+12>>2]);break Za}f=Z()|0;break c}f=Z()|0;Vb(d);break c}if((i|0)==6){J[195395]=0;d=aa(3110,g+176|0,421384,421476)|0;h=J[195395];J[195395]=0;ab:{if((h|0)!=1){J[195395]=0;$(1982,g+504|0,d|0);h=J[195395];J[195395]=0;if((h|0)==1)break ab;Vb(d);break Xa}f=Z()|0;break c}f=Z()|0;Vb(d);break c}m=m+o;break Xa}n=J[d+16>>2];J[h+12>>2]=J[d+12>>2];J[h+16>>2]=n;J[h+20>>2]=J[d+20>>2];J[d+ -12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[g+508>>2]=h+24}if(H[d+11|0]<0)Kb(J[d>>2]);b=(i|0)==2?b:b-8|0}bb:{cb:{db:{eb:switch(b-2|0){case 0:b=J[f>>2];d=J[f+4>>2];if((b|0)!=(d|0)){l=0;while(1){l=l+O[b>>3];b=b+8|0;if((d|0)!=(b|0))continue;break}j=j-l;break bb}J[195395]=0;b=aa(3111,g+152|0,421504,421552)|0;d=J[195395];J[195395]=0;fb:{if((d|0)!=1){d=J[g+508>>2];if(d>>>0>2]){if(H[b+11|0]>=0){h=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=h;J[d+8>>2]=J[b+8>>2];break db}h=J[b+4>>2];i=J[b>>2];J[195395]=0;fa(1808, -d|0,i|0,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break db;f=Z()|0;J[g+508>>2]=d;Vb(b);break c}J[195395]=0;$(1971,g+504|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break fb;if(H[b+23|0]>=0)break cb;Kb(J[b+12>>2]);break cb}f=Z()|0;break c}f=Z()|0;Vb(b);break c;case 4:break eb;default:break bb}b=J[f>>2];d=J[f+4>>2];if((b|0)!=(d|0)){l=0;while(1){l=l+O[b>>3];b=b+8|0;if((d|0)!=(b|0))continue;break}j=j+l*-.5;break bb}J[195395]=0;b=aa(3112,g+152|0,421504,421476)|0;d=J[195395];J[195395]=0;gb:{hb:{ib:{if((d| -0)!=1){d=J[g+508>>2];if(d>>>0>2]){if(H[b+11|0]>=0){h=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=h;J[d+8>>2]=J[b+8>>2];break hb}h=J[b+4>>2];i=J[b>>2];J[195395]=0;fa(1808,d|0,i|0,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break hb;f=Z()|0;J[g+508>>2]=d;Vb(b);break c}J[195395]=0;$(1971,g+504|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break ib;if(H[b+23|0]>=0)break gb;Kb(J[b+12>>2]);break gb}f=Z()|0;break c}f=Z()|0;Vb(b);break c}h=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=h;J[d+20>>2]=J[b+20>>2];J[b+ -12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=d+24}if(H[b+11|0]>=0)break bb;Kb(J[b>>2]);break bb}h=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=h;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=d+24}if(H[b+11|0]>=0)break bb;Kb(J[b>>2])}if(O[e+8>>3]<-1E-5){l=O[k+24>>3];O[k+24>>3]=R(l);m=o+m;O[k+40>>3]=l*(m+m-o)+O[k+40>>3]}b=J[J[c>>2]+32>>2];J[195395]=0;b=_(b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Wa;if(b){b=J[J[c>>2]+32>>2];J[195395]=0;b=_(b|0,c|0)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break Aa;c=J[a+72>>2];d=J[J[c>>2]+72>>2];J[195395]=0;c=ca(d|0,c|0,2)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Aa;t=O[e+8>>3];l=O[c+24>>3];J[195395]=0;c=g+84|0;r=+((b|0)/-10|0);l=l<0?-r:r;da(1863,c|0,+l,-1);b=J[195395];J[195395]=0;l=ue(l*3.141592653589793/180);if((b|0)==1)break Va;J[195395]=0;b=aa(1954,c|0,0,421608)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ua;J[g+104>>2]=J[b+8>>2];c=J[b+4>>2];J[g+96>>2]=J[b>>2];J[g+100>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]= -0;$(1811,g+96|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break Ta;J[g+120>>2]=J[g+104>>2];J[g+104>>2]=0;b=J[g+100>>2];J[g+112>>2]=J[g+96>>2];J[g+116>>2]=b;J[g+96>>2]=0;J[g+100>>2]=0;J[195395]=0;b=g+72|0;l=-o*l;j=t<-1E-5?l+j:j;da(1863,b|0,+j,-1);c=J[195395];J[195395]=0;if((c|0)==1)break Sa;J[195395]=0;d=b;b=K[g+83|0];c=b<<24>>24<0;b=aa(1864,g+112|0,(c?J[g+72>>2]:d)|0,(c?J[g+76>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ra;J[g+136>>2]=J[b+8>>2];c=J[b+4>>2];J[g+128>>2]=J[b>>2];J[g+132>>2]= -c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,g+128|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break Qa;J[g+16>>2]=J[g+136>>2];J[g+136>>2]=0;b=J[g+132>>2];J[g+8>>2]=J[g+128>>2];J[g+12>>2]=b;J[g+128>>2]=0;J[g+132>>2]=0;J[195395]=0;b=g+60|0;m=l+m;da(1863,b|0,+m,-1);c=J[195395];J[195395]=0;if((c|0)==1)break Pa;J[195395]=0;d=b;b=K[g+71|0];c=b<<24>>24<0;b=aa(1864,g+8|0,(c?J[g+60>>2]:d)|0,(c?J[g+64>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Oa;J[g+40>>2]=J[b+8>>2];c=J[b+4>>2];J[g+32>> -2]=J[b>>2];J[g+36>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,g+32|0,41);b=J[195395];J[195395]=0;if((b|0)==1)break Na;d=H[g+43|0];b=K[g+39|0]|K[g+40|0]<<8|(K[g+41|0]<<16|K[g+42|0]<<24);J[g+40>>2]=0;h=J[g+32>>2];c=J[g+36>>2];J[g+32>>2]=0;J[g+36>>2]=0;J[g+144>>2]=c;H[g+147|0]=b;H[g+148|0]=b>>>8;H[g+149|0]=b>>>16;H[g+150|0]=b>>>24;J[195395]=0;b=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ka;J[g+312>>2]=b;J[g+316>>2]=9;J[g+320>>2]=-2147483636;J[b+32>>2]=J[105400];c=J[105399]; -J[b+24>>2]=J[105398];J[b+28>>2]=c;c=J[105397];J[b+16>>2]=J[105396];J[b+20>>2]=c;c=J[105395];J[b+8>>2]=J[105394];J[b+12>>2]=c;c=J[105393];J[b>>2]=J[105392];J[b+4>>2]=c;J[b+36>>2]=0;J[g+328>>2]=J[g+144>>2];c=K[g+147|0]|K[g+148|0]<<8|(K[g+149|0]<<16|K[g+150|0]<<24);H[g+331|0]=c;H[g+332|0]=c>>>8;H[g+333|0]=c>>>16;H[g+334|0]=c>>>24;H[g+335|0]=d;J[g+324>>2]=h;J[g+144>>2]=0;H[g+147|0]=0;H[g+148|0]=0;H[g+149|0]=0;H[g+150|0]=0;c=J[g+508>>2];jb:{if(c>>>0>2]){J[195395]=0;fa(1808,c|0,b|0,9);b=J[195395]; -J[195395]=0;if((b|0)==1){f=Z()|0;J[g+508>>2]=c;break La}b=J[g+328>>2];J[c+12>>2]=J[g+324>>2];J[c+16>>2]=b;J[c+20>>2]=J[g+332>>2];J[g+324>>2]=0;J[g+328>>2]=0;J[g+332>>2]=0;J[g+508>>2]=c+24;break jb}J[195395]=0;$(1971,g+504|0,g+312|0);b=J[195395];J[195395]=0;if((b|0)==1)break Ma;if(H[g+335|0]>=0)break jb;Kb(J[g+324>>2])}if(H[g+323|0]<0)Kb(J[g+312>>2]);if(H[g+43|0]<0)Kb(J[g+32>>2]);if(H[g+71|0]<0)Kb(J[g+60>>2]);if(H[g+19|0]<0)Kb(J[g+8>>2]);if(H[g+139|0]<0)Kb(J[g+128>>2]);if(H[g+83|0]<0)Kb(J[g+72>>2]); -if(H[g+123|0]<0)Kb(J[g+112>>2]);if(H[g+107|0]<0)Kb(J[g+96>>2]);if(H[g+95|0]<0)Kb(J[g+84>>2]);j=O[e+8>>3]>1E-5?l+j:j}J[195395]=0;fa(1960,a|0,g+504|0,k|0);b=J[195395];J[195395]=0;if((b|0)!=1)break Ba}f=Z()|0;break c}f=Z()|0;break c}f=Z()|0;break Ca}f=Z()|0;break Da}f=Z()|0;break Ea}f=Z()|0;break Fa}f=Z()|0;break Ga}f=Z()|0;break Ha}f=Z()|0;break Ia}f=Z()|0;break Ja}f=Z()|0}Vb(g+312|0);break Ja}f=Z()|0;if((d|0)>=0)break Ja;Kb(h)}if(H[g+43|0]>=0)break Ia;Kb(J[g+32>>2])}if(H[g+71|0]>=0)break Ha;Kb(J[g+ -60>>2])}if(H[g+19|0]>=0)break Ga;Kb(J[g+8>>2])}if(H[g+139|0]>=0)break Fa;Kb(J[g+128>>2])}if(H[g+83|0]>=0)break Ea;Kb(J[g+72>>2])}if(H[g+123|0]>=0)break Da;Kb(J[g+112>>2])}if(H[g+107|0]>=0)break Ca;Kb(J[g+96>>2])}if(H[g+95|0]>=0)break c;Kb(J[g+84>>2]);break c}J[195395]=0;b=aa(3113,g+32|0,421640,421680)|0;c=J[195395];J[195395]=0;kb:{if((c|0)!=1){c=J[g+508>>2];if(c>>>0>2]){if(H[b+11|0]>=0){d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break za}d=J[b+4>>2];e=J[b>>2];J[195395]=0; -fa(1808,c|0,e|0,d|0);d=J[195395];J[195395]=0;if((d|0)!=1)break za;f=Z()|0;J[g+508>>2]=c;Vb(b);break c}J[195395]=0;$(1971,g+504|0,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break kb;if(H[b+23|0]>=0)break ya;Kb(J[b+12>>2]);break ya}f=Z()|0;break c}f=Z()|0;Vb(b);break c}f=Z()|0;break c}d=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=d;J[c+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=c+24}if(H[b+11|0]<0)Kb(J[b>>2]);b=K[g+527|0];c=b<<24>>24<0;e=c?J[g+516>>2]:g+516|0;b=c?J[g+520>>2]: -b;k=e+(b<<2)|0;lb:{mb:{if((b|0)<=0)break mb;c=e;while(1){b=ah(c,10,b);if(!b)break mb;if(!Ki(b,421716,1))break lb;c=b+4|0;b=k-c>>2;if((b|0)>0)continue;break}}b=k}J[g+136>>2]=0;J[g+128>>2]=0;J[g+132>>2]=0;nb:{ob:{pb:{qb:{rb:{n=J[f>>2];c=J[f+4>>2];if((n|0)!=(c|0)){f=c-n>>3;c=K[g+527|0];d=c<<24>>24<0?J[g+520>>2]:c;if(f>>>0>=d>>>0)break rb}J[195395]=0;da(1863,g+312|0,+j,-1);c=J[195395];J[195395]=0;if((c|0)==1)break qb;if(H[g+139|0]<0)Kb(J[g+128>>2]);J[g+136>>2]=J[g+320>>2];c=J[g+316>>2];J[g+128>>2]=J[g+ -312>>2];J[g+132>>2]=c;break pb}J[g+320>>2]=0;J[g+312>>2]=0;J[g+316>>2]=0;sb:{if(d>>>0>=536870912){J[195395]=0;ea(1815,g+312|0);a=J[195395];J[195395]=0;if((a|0)==1)break sb;B()}J[195395]=0;f=d<<3;c=_(1078,f|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break sb;J[g+312>>2]=c;h=c+f|0;J[g+320>>2]=h;f=Nb(c,0,f);J[g+316>>2]=h;O[f>>3]=j;tb:{if(d>>>0<2)break tb;i=n-8|0;h=d-1|0;p=h&3;c=1;if(d-2>>>0>=3){u=f+8|0;v=h&-4;h=0;while(1){d=c<<3;j=O[d+i>>3]+j;O[d+f>>3]=j;j=O[d+n>>3]+j;O[d+u>>3]=j;s=d+16|0;j=O[i+s>>3]+ -j;O[f+s>>3]=j;d=d+24|0;j=O[d+i>>3]+j;O[d+f>>3]=j;c=c+4|0;h=h+4|0;if((v|0)!=(h|0))continue;break}}if(!p)break tb;d=0;while(1){h=c<<3;j=O[h+i>>3]+j;O[f+h>>3]=j;c=c+1|0;d=d+1|0;if((p|0)!=(d|0))continue;break}}J[195395]=0;fa(3114,g+8|0,g+312|0,-1);c=J[195395];J[195395]=0;if((c|0)!=1){if(H[g+139|0]<0)Kb(J[g+128>>2]);J[g+136>>2]=J[g+16>>2];c=J[g+12>>2];J[g+128>>2]=J[g+8>>2];J[g+132>>2]=c;c=J[g+312>>2];if(!c)break pb;J[g+316>>2]=c;Kb(c);break pb}}f=Z()|0;a=J[g+312>>2];if(!a)break ob;J[g+316>>2]=a;Kb(a); -break ob}f=Z()|0;break ob}ub:{vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{f=(b|0)==(k|0)?-1:b-e>>2;if((f|0)==-1){J[195395]=0;b=aa(1962,g+312|0,420780,g+128|0)|0;c=J[195395];J[195395]=0;Cb:{if((c|0)!=1){c=J[g+508>>2];if(c>>>0>2]){if(H[b+11|0]>=0){d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break Bb}d=J[b+4>>2];e=J[b>>2];J[195395]=0;fa(1808,c|0,e|0,d|0);d=J[195395];J[195395]=0;if((d|0)!=1)break Bb;f=Z()|0;J[g+508>>2]=c;Vb(b);break ob}J[195395]=0;$(1971,g+504|0,b|0);c=J[195395];J[195395]=0; -if((c|0)==1)break Cb;if(H[b+23|0]>=0)break Ab;Kb(J[b+12>>2]);break Ab}f=Z()|0;break ob}f=Z()|0;Vb(b);break ob}J[195395]=0;b=_(1078,32)|0;c=J[195395];J[195395]=0;Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{if((c|0)!=1){J[g+312>>2]=b;J[g+316>>2]=4;J[g+320>>2]=-2147483640;c=J[105434];J[b+8>>2]=J[105433];J[b+12>>2]=c;c=J[105432];J[b>>2]=J[105431];J[b+4>>2]=c;J[b+16>>2]=0;b=J[a+76>>2];J[195395]=0;fa(1950,b|0,g+312|0,J[g+504>>2]!=J[g+508>>2]|0);b=J[195395];J[195395]=0;if((b|0)==1)break Nb;b=J[g+504>>2]; -c=J[g+508>>2];if((b|0)!=(c|0)){while(1){d=J[a+76>>2];J[195395]=0;fa(1951,d|0,b|0,b+12|0);d=J[195395];J[195395]=0;if((d|0)==1)break Nb;b=b+24|0;if((c|0)!=(b|0))continue;break}b=J[a+76>>2];J[195395]=0;ia(1953,b|0,g+312|0,1,0);b=J[195395];J[195395]=0;if((b|0)==1)break Nb}if(H[g+323|0]<0)Kb(J[g+312>>2]);k=g+360|0;h=g+120|0;j=o*1.6;d=0;while(1){J[195395]=0;b=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Mb;J[g+8>>2]=b;J[g+12>>2]=5;J[g+16>>2]=-2147483640;J[b+16>>2]=J[105440];c=J[105439];J[b+8>> -2]=J[105438];J[b+12>>2]=c;c=J[105437];J[b>>2]=J[105436];J[b+4>>2]=c;J[b+20>>2]=0;J[195395]=0;e=aa(1962,g+312|0,420780,g+128|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break Lb;J[195395]=0;da(1863,g+96|0,+m,-1);b=J[195395];J[195395]=0;if((b|0)==1)break Gb;J[g+336>>2]=121;J[g+340>>2]=0;H[g+347|0]=1;b=J[g+100>>2];J[g+348>>2]=J[g+96>>2];J[g+352>>2]=b;J[g+356>>2]=J[g+104>>2];J[g+104>>2]=0;J[g+96>>2]=0;J[g+100>>2]=0;J[g+120>>2]=0;J[g+112>>2]=0;J[g+116>>2]=0;J[195395]=0;H[g+76|0]=0;J[g+72>>2]=g+112;b=_(1078, -48)|0;c=J[195395];J[195395]=0;Ob:{Pb:{if((c|0)!=1){J[g+116>>2]=b;J[g+112>>2]=b;J[195395]=0;J[g+120>>2]=b+48;c=ha(1957,h|0,e|0,k|0,b|0)|0;i=J[195395];J[195395]=0;if((i|0)!=1)break Ob;f=Z()|0;J[g+116>>2]=b;break Pb}f=Z()|0}Kc(g+72|0);break Hb}J[g+116>>2]=c;J[195395]=0;b=ka(1806,g+84|0,g+516|0,d|0,f-d|0,g+72|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Kb;J[195395]=0;ia(1961,a|0,g+8|0,g+112|0,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break Jb;if(H[g+95|0]<0)Kb(J[b>>2]);d=J[g+112>>2];if(d){b=J[g+116>> -2];c=d;if((b|0)!=(d|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((d|0)!=(b|0))continue;break}c=J[g+112>>2]}J[g+116>>2]=d;Kb(c)}if(H[g+359|0]<0)Kb(J[g+348>>2]);if(H[g+347|0]<0)Kb(J[g+336>>2]);if(H[g+335|0]<0)Kb(J[g+324>>2]);if(H[g+323|0]<0)Kb(J[e>>2]);if(H[g+107|0]<0)Kb(J[g+96>>2]);if(H[g+19|0]<0)Kb(J[g+8>>2]);c=H[g+527|0];b=(c|0)<0;e=b?J[g+520>>2]:c&255;d=-1;Qb:{if(e>>>0<=f>>>0)break Qb;c=b?J[g+516>>2]:g+516|0;b=c+(f<<2)|0;d=c+(e<<2)|0;Rb:{while(1){if(!ah(421716, -J[b>>2],1))break Rb;b=b+4|0;if((d|0)!=(b|0))continue;break}d=-1;break Qb}d=b-c>>2}m=j+m;c=K[g+527|0];b=c<<24>>24<0;c=b?J[g+520>>2]:c;if(c>>>0>=d>>>0){f=b?J[g+516>>2]:g+516|0;e=f+(c<<2)|0;b=f+(d<<2)|0;c=e-b>>2;Sb:{Tb:{if((c|0)<=0)break Tb;while(1){b=ah(b,10,c);if(!b)break Tb;if(!Ki(b,421716,1))break Sb;b=b+4|0;c=e-b>>2;if((c|0)>0)continue;break}}b=e}f=(b|0)==(e|0)?-1:b-f>>2}else f=-1;if((d|0)!=-1)continue;break}J[195395]=0;b=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Eb;J[g+8>>2]=b;J[g+ -12>>2]=4;J[g+16>>2]=-2147483640;c=J[105434];J[b+8>>2]=J[105433];J[b+12>>2]=c;c=J[105432];J[b>>2]=J[105431];J[b+4>>2]=c;J[b+16>>2]=0;b=J[a+76>>2];J[195395]=0;ia(1953,b|0,g+8|0,0,0);b=J[195395];J[195395]=0;if((b|0)==1)break Db;if(H[g+19|0]>=0)break zb;Kb(J[g+8>>2]);break zb}f=Z()|0;break ob}f=Z()|0;if(H[g+323|0]>=0)break ob;Kb(J[g+312>>2]);break ob}f=Z()|0;break ob}f=Z()|0;break Fb}f=Z()|0;break Ib}f=Z()|0;if(H[g+95|0]>=0)break Ib;Kb(J[b>>2])}Hc(g+112|0)}Vb(e+24|0);Vb(e);if(H[g+107|0]>=0)break Fb;Kb(J[g+ -96>>2]);break Fb}f=Z()|0;Vb(e)}if(H[g+19|0]>=0)break ob;Kb(J[g+8>>2]);break ob}f=Z()|0;break ob}f=Z()|0;if(H[g+19|0]>=0)break ob;Kb(J[g+8>>2]);break ob}d=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=d;J[c+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[g+508>>2]=c+24}if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;da(1863,g+112|0,+m,-1);b=J[195395];J[195395]=0;if((b|0)==1)break yb;b=J[g+120>>2];J[g+120>>2]=0;J[g+28>>2]=b;J[g+8>>2]=121;J[g+12>>2]=0;H[g+19|0]=1;b=J[g+112>>2];c=J[g+116>>2];J[g+112>> -2]=0;J[g+116>>2]=0;J[g+20>>2]=b;J[g+24>>2]=c;b=J[g+508>>2];Ub:{if(b>>>0>2]){c=J[g+12>>2];J[b>>2]=J[g+8>>2];J[b+4>>2]=c;J[b+8>>2]=J[g+16>>2];J[b+20>>2]=J[g+28>>2];c=J[g+24>>2];J[b+12>>2]=J[g+20>>2];J[b+16>>2]=c;J[g+20>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+508>>2]=b+24;break Ub}J[195395]=0;$(1971,g+504|0,g+8|0);b=J[195395];J[195395]=0;if((b|0)==1)break xb;if(H[g+31|0]>=0)break Ub;Kb(J[g+20>>2])}if(H[g+19|0]<0)Kb(J[g+8>>2]);if(H[g+123|0]<0)Kb(J[g+112>>2]);J[195395]=0;b=_(1078,32)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break wb;J[g+8>>2]=b;J[g+12>>2]=4;J[g+16>>2]=-2147483640;c=J[105434];J[b+8>>2]=J[105433];J[b+12>>2]=c;c=J[105432];J[b>>2]=J[105431];J[b+4>>2]=c;J[b+16>>2]=0;J[195395]=0;ia(1961,a|0,g+8|0,g+504|0,g+516|0);b=J[195395];J[195395]=0;if((b|0)==1)break vb;if(H[g+19|0]>=0)break zb;Kb(J[g+8>>2])}if((q|0)==2)break ub;break nb}f=Z()|0;break ob}f=Z()|0;Vb(g+8|0);if(H[g+123|0]>=0)break ob;Kb(J[g+112>>2]);break ob}f=Z()|0;break ob}f=Z()|0;if(H[g+19|0]>=0)break ob;Kb(J[g+8>>2]);break ob}a= -J[a+76>>2];J[195395]=0;J[g+8>>2]=103;J[g+12>>2]=0;H[g+19|0]=1;ia(1953,a|0,g+8|0,0,1);a=J[195395];J[195395]=0;if((a|0)!=1){if(H[g+19|0]>=0)break nb;Kb(J[g+8>>2]);break nb}f=Z()|0;if(H[g+19|0]>=0)break ob;Kb(J[g+8>>2])}if(H[g+139|0]>=0)break c;Kb(J[g+128>>2]);break c}if(H[g+139|0]<0)Kb(J[g+128>>2]);if(H[g+311|0]>=0)break m;Kb(J[g+300>>2])}a=J[g+504>>2];if(a){b=J[g+508>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((a|0)!=(b|0))continue;break}c= -J[g+504>>2]}J[g+508>>2]=a;Kb(c)}b=K[g+527|0]}if(b<<24>>24>=0)break e;Kb(J[g+516>>2])}xb=g+528|0;return}f=Z()|0}if(H[g+311|0]>=0)break b;Kb(J[g+300>>2])}Hc(g+504|0)}if(H[g+527|0]<0)Kb(J[g+516>>2]);ba(f|0);B()}function iD(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;c=J[a+8>>2];if(c)a:{if(!c)break a;c=J[a+12>>2];if(!(c&64))break a;if(c&4096){J[a+12>>2]=c&-4097;if(!(Ab[J[a+536>>2]](a)|0))break a}if(!Xc(a)|!(K[a+12|0]&8))break a; -e=xb-784|0;xb=e;c=1;b:{if(!J[a+8>>2])break b;c:{c=J[a+12>>2];if(!(c&4096))break c;J[a+12>>2]=c&-4097;if(Ab[J[a+536>>2]](a)|0)break c;Ob(J[a+628>>2],J[a>>2],265754,0);c=0;break b}Ab[J[a+564>>2]](a);d:{d=J[a+12>>2];if(!(!(d&64)|J[a+608>>2]<=0)){if(!Xc(a))break d;d=J[a+12>>2]}e:{if(!(d&512))break e;c=J[a+596>>2];if(!c)break e;Kb(c);J[a+608>>2]=0;J[a+596>>2]=0;J[a+600>>2]=0;d=J[a+12>>2]}J[a+12>>2]=d&-81;c=J[a+40>>2];c=(c>>>3&2)+((((c&2)+(c<<1&2)|0)+(c>>>1&2)|0)+(c>>>2&2)|0)|0;f=a+40|0;d=5;while(1){c= -(J[f+(d>>>3&536870908)>>2]>>>d&(d|0)!=65)+c|0;b=d+1|0;if((b|0)!=128){c=c+(J[f+(b>>>3&536870908)>>2]>>>b&(b|0)!=65)|0;d=d+2|0;continue}break}r=c+J[a+236>>2]|0;s=P(r,12);q=Qb(s);if(!q){Ob(J[a+628>>2],J[a>>2],266861,0);c=0;break b}f:{d=J[a+16>>2];if(!d){c=(Ab[J[a+640>>2]](J[a+628>>2],0,2)|0)+1&-2;J[a+16>>2]=c;J[e+624>>2]=c;c=J[a+12>>2];if(c&128){_h(e+624|0);c=J[a+12>>2]}g:{h:{if(c&8192){Ab[J[a+640>>2]](J[a+628>>2],J[a+496>>2],0)|0;if((Ab[J[a+636>>2]](J[a+628>>2],e+624|0,4)|0)!=4){c=J[a+628>>2];J[e+576>> -2]=J[a>>2];Ob(c,285600,268532,e+576|0);break f}c=L[a+492>>1]-1|0;I[a+492>>1]=c;if(!(c&65535))break h;J[a+496>>2]=J[a+496>>2]+4;break g}d=J[a+460>>2];if(!d){J[a+460>>2]=J[a+16>>2];Ab[J[a+640>>2]](J[a+628>>2],4,0)|0;if((Ab[J[a+636>>2]](J[a+628>>2],e+624|0,4)|0)==4)break g;Ob(J[a+628>>2],J[a>>2],269049,0);break f}J[e+704>>2]=d;while(1){c=263784;i:{j:{if((Ab[J[a+640>>2]](J[a+628>>2],d,0)|0)!=J[e+704>>2])break j;b=e+592|0;if((Ab[J[a+632>>2]](J[a+628>>2],b,2)|0)!=2)break j;if(K[a+12|0]&128){c=K[b+1|0]; -H[b+1|0]=K[b|0];H[b|0]=c}Ab[J[a+640>>2]](J[a+628>>2],P(L[e+592>>1],12),1)|0;if((Ab[J[a+632>>2]](J[a+628>>2],e+704|0,4)|0)==4)break i;c=264573}Ob(J[a+628>>2],285600,c,0);break f}if(K[a+12|0]&128)_h(e+704|0);d=J[e+704>>2];if(d)continue;break}c=Ab[J[a+640>>2]](J[a+628>>2],0,1)|0;Ab[J[a+640>>2]](J[a+628>>2],c-4|0,0)|0;if((Ab[J[a+636>>2]](J[a+628>>2],e+624|0,4)|0)==4)break g;Ob(J[a+628>>2],285600,265162,0);break f}J[a+12>>2]=J[a+12>>2]&-8193}d=J[a+16>>2]}c=(((s|2)+d|0)+(d&1)|0)+4|0;J[a+488>>2]=c;Ab[J[a+ -640>>2]](J[a+628>>2],c,0)|0;I[a+476>>1]=L[a+476>>1]+1;Pc(e+592|0,f,16);c=J[e+592>>2];if(!(L[a+168>>1]|(c|0)>=0)){J[e+592>>2]=c&2147483647;r=r-1|0;s=s-12|0}u=J[a+660>>2];if((u|0)>0){w=a+144|0;x=a+140|0;y=a+132|0;z=a+128|0;A=a+216|0;v=e+706|0;c=q;while(1){o=J[J[a+656>>2]+(t<<2)>>2];n=L[o+12>>1];k:{l:{if((n|0)==65){f=J[a+236>>2];if((f|0)<=0)break k;h=J[a+240>>2];k=0;i=0;d=0;if(f>>>0>=4){b=f&-4;p=0;while(1){i=J[h+P(d,12)>>2]==(o|0)|i|J[h+P(d|1,12)>>2]==(o|0)|J[h+P(d|2,12)>>2]==(o|0)|J[h+P(d|3,12)>>2]== -(o|0);d=d+4|0;p=p+4|0;if((b|0)!=(p|0))continue;break}}b=f&3;if(b)while(1){i=J[h+P(d,12)>>2]==(o|0)|i;d=d+1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}if(i)break l;break k}if(!(J[(e+592|0)+(n>>>3&8188)>>2]>>>n&1))break k}m:{n:{o:{p:{q:{r:{s:switch(n-1|0){case 24:b=K[a+13|0]&4?324:273;if((b|0)!=J[o>>2])break k;I[c+2>>1]=4;I[c>>1]=b;b=J[a+180>>2];J[c+4>>2]=b;d=J[a+184>>2];if((b|0)!=1)break r;J[c+8>>2]=J[d>>2];break m;case 23:b=K[a+13|0]&4?325:279;if((b|0)!=J[o>>2])break k;I[c+2>>1]=4;I[c>>1]=b;b=J[a+180>> -2];J[c+4>>2]=b;d=J[a+188>>2];if((b|0)==1){J[c+8>>2]=J[d>>2];break m}if(sd(a,c,d))break m;break f;case 16:b=J[a+100>>2];J[c+4>>2]=1;I[c>>1]=278;if(b>>>0>=65536){I[c+2>>1]=4;J[c+8>>2]=b;break m}I[c+2>>1]=3;b=b&J[J[a+468>>2]+12>>2];if(L[a+456>>1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 25:J[c>>2]=196928;J[c+4>>2]=1<>1];b=J[a+488>>2];if(!sd(a,c,J[a+152>>2]))break f;if(!sd(a,c,J[a+156>>2]))break f;if(!sd(a,c,J[a+160>>2]))break f;J[c+8>>2]=b;J[c+4>>2]=P(J[c+4>>2],3);break m;case 0:d= -J[a+56>>2];J[c+4>>2]=1;I[c>>1]=256;t:{if(d>>>0>=65536){I[c+2>>1]=4;break t}I[c+2>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break t;d=d<>2]+12>>2]}J[c+8>>2]=d;d=J[a+60>>2];J[c+16>>2]=1;I[c+12>>1]=257;u:{if(d>>>0>=65536){I[c+14>>1]=4;break u}I[c+14>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break u;d=d<>2]+12>>2]}J[c+20>>2]=d;c=c+12|0;break m;case 1:d=J[a+68>>2];J[c+4>>2]=1;I[c>>1]=322;v:{if(d>>>0>=65536){I[c+2>>1]=4;break v}I[c+2>>1]=3;d=J[J[a+468>>2]+12>> -2]&d;if(L[a+456>>1]!=19789)break v;d=d<>2]+12>>2]}J[c+8>>2]=d;d=J[a+72>>2];J[c+16>>2]=1;I[c+12>>1]=323;w:{if(d>>>0>=65536){I[c+14>>1]=4;break w}I[c+14>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break w;d=d<>2]+12>>2]}J[c+20>>2]=d;c=c+12|0;break m;case 6:b=L[a+88>>1];J[c>>2]=196867;J[c+4>>2]=1;b=J[J[a+468>>2]+12>>2]&b;if(L[a+456>>1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 7:b=L[a+90>>1];J[c>>2]=196870;J[c+4>>2]=1;b=J[J[a+468>>2]+12>>2]&b;if(L[a+456>> -1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 3:J[c>>2]=327966;J[c+4>>2]=1;if(!Xi(a,c,x))break f;J[c+12>>2]=327967;J[c+16>>2]=1;c=c+12|0;if(Xi(a,c,w))break m;break f;case 2:J[c>>2]=327962;J[c+4>>2]=1;if(!Xi(a,c,z))break f;J[c+12>>2]=327963;J[c+16>>2]=1;c=c+12|0;if(Xi(a,c,y))break m;break f;case 5:case 17:case 18:case 31:f=J[o>>2];j=L[a+98>>1];x:{if(j>>>0>=11){d=Qb(j<<1);if(d){J[e+496>>2]=e+624;zc(a,f,e+496|0);break x}Ob(J[a+628>>2],J[a>>2],271279,0);break f}J[e+512>>2]=e+624;zc(a,f, -e+512|0);d=e+704|0;if(!j)break q}p=0;h=L[e+624>>1];k=0;if(j-1>>>0>=7){b=j&65528;l=0;while(1){n=k<<1;I[n+d>>1]=h;I[(n|2)+d>>1]=h;I[(n|4)+d>>1]=h;I[(n|6)+d>>1]=h;I[(n|8)+d>>1]=h;I[(n|10)+d>>1]=h;I[(n|12)+d>>1]=h;I[(n|14)+d>>1]=h;k=k+8|0;l=l+8|0;if((b|0)!=(l|0))continue;break}}b=j&7;if(b)while(1){I[(k<<1)+d>>1]=h;k=k+1|0;p=p+1|0;if((b|0)!=(p|0))continue;break}J[c+4>>2]=j;I[c+2>>1]=3;I[c>>1]=f;y:{if(j>>>0<=2){b=L[d>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;h=1;if((j|0)!=2)break y;J[c+8>>2]=b|L[d+ -2>>1];break y}J[c+8>>2]=b;h=1;if((j|0)!=2)break y;J[c+8>>2]=b|L[d+2>>1]<<16;break y}h=sd(a,c,d)}if((e+704|0)!=(d|0))Kb(d);if(h)break m;break f;case 32:case 33:b=7;d=L[a+84>>1];d=(d>>>3|0)+((d&7)!=0)|0;z:{A:switch(L[a+86>>1]-1|0){case 2:b=(d|0)==4?11:12;break z;case 1:b=d>>>0<2?6:(d|0)==2?8:9;break z;case 0:break A;default:break z}b=d>>>0<=1?1:(d|0)==2?3:4}n=J[o>>2];j=L[a+98>>1];if(j>>>0>=11){d=Qb(j<<3);if(d){J[e+528>>2]=e+616;zc(a,n,e+528|0);break o}Ob(J[a+628>>2],J[a>>2],271647,0);break f}J[e+544>> -2]=e+616;zc(a,n,e+544|0);d=e+624|0;if(j)break o;k=1;break n;case 22:case 36:case 38:b=J[o>>2];J[e+564>>2]=v;J[e+560>>2]=e+704;zc(a,b,e+560|0);J[c+4>>2]=2;I[c+2>>1]=3;I[c>>1]=b;b=L[e+704>>1];if(L[a+456>>1]==19789){J[c+8>>2]=L[e+706>>1]|b<<16;break m}J[c+8>>2]=b|L[e+706>>1]<<16;break m;case 45:J[c>>2]=131405;d=J[a+228>>2];J[c+4>>2]=d;f=J[a+232>>2];if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+ -8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(sd(a,c,f))break m;break f;case 43:d=2<>1];B:{C:switch(L[a+98>>1]-L[a+168>>1]|0){default:b=3;if(KE(J[a+216>>2],J[a+224>>2],d))break B;case 2:b=3;if(KE(J[a+216>>2],J[a+220>>2],d))break B;break;case 0:case 1:break C}b=1}J[c>>2]=196909;J[c+4>>2]=1<>1];f=J[a+488>>2];d= -0;while(1){if(!sd(a,c,J[(d<<2)+A>>2]))break f;d=d+1|0;if((b|0)!=(d|0))continue;break}J[c+8>>2]=f;J[c+4>>2]=P(b,J[c+4>>2]);break m;case 48:b=J[o>>2];I[c+2>>1]=4;I[c>>1]=b;d=L[a+196>>1];J[c+4>>2]=d;b=J[a+200>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];I[a+492>>1]=d;J[a+12>>2]=J[a+12>>2]|8192;break p}if(!sd(a,c,b))break f;b=J[c+4>>2];if(!b)break m;I[a+492>>1]=b;J[a+12>>2]=J[a+12>>2]|8192;if((b|0)==1)break p;J[a+496>>2]=J[c+8>>2];break m;default:break s}f=J[o>>2];if((f|0)==336){J[e+4>>2]=v;J[e>>2]=e+704;zc(a, -336,e);J[c>>2]=196944;J[c+4>>2]=2;b=L[e+704>>1];if(L[a+456>>1]==19789){J[c+8>>2]=L[e+706>>1]|b<<16;break m}J[c+8>>2]=b|L[e+706>>1]<<16;break m}d=L[o+6>>1];I[e+616>>1]=d;I[c>>1]=f;b=J[o+8>>2];J[c+4>>2]=d;I[c+2>>1]=b;D:{E:switch(b-1|0){case 2:case 7:if(K[o+15|0]){F:{if((d|0)==65533){J[e+52>>2]=e+704;J[e+48>>2]=e+624;zc(a,f,e+48|0);b=J[e+624>>2];break F}J[e+68>>2]=e+704;J[e+64>>2]=e+616;zc(a,f,e- -64|0);b=L[e+616>>1]}J[c+4>>2]=b;f=J[e+704>>2];if(b>>>0>2)break D;d=L[f>>1];if(L[a+456>>1]==19789){d=d<< -16;J[c+8>>2]=d;if((b|0)!=2)break m;J[c+8>>2]=d|L[f+2>>1];break m}J[c+8>>2]=d;if((b|0)!=2)break m;J[c+8>>2]=d|L[f+2>>1]<<16;break m}if((d|0)==1){J[e+16>>2]=e+704;zc(a,f,e+16|0);d=L[c+2>>1]<<2;b=J[d+J[a+468>>2]>>2]&L[e+704>>1];if(L[a+456>>1]==19789)b=b<>2]>>2];J[c+8>>2]=b;break m}J[e+32>>2]=e+704;zc(a,f,e+32|0);f=J[e+704>>2];d=J[c+4>>2];if(d>>>0<=2){b=L[f>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;if((d|0)!=2)break m;J[c+8>>2]=b|L[f+2>>1];break m}J[c+8>>2]=b;if((d|0)!=2)break m;J[c+ -8>>2]=b|L[f+2>>1]<<16;break m}if(sd(a,c,f))break m;break f;case 3:case 8:case 12:if(K[o+15|0]){G:{if((d|0)==65533){J[e+116>>2]=e+704;J[e+112>>2]=e+624;zc(a,f,e+112|0);d=J[e+624>>2];break G}J[e+132>>2]=e+704;J[e+128>>2]=e+616;zc(a,f,e+128|0);d=L[e+616>>1]}J[c+4>>2]=d;b=J[e+704>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];break m}if(sd(a,c,b))break m;break f}if((d|0)==1){J[e+80>>2]=c+8;zc(a,f,e+80|0);break m}J[e+96>>2]=e+704;zc(a,f,e+96|0);b=J[e+704>>2];if(J[c+4>>2]==1){J[c+8>>2]=J[b>>2];break m}if(sd(a,c,b))break m; -break f;case 4:case 9:if(K[o+15|0]){H:{if((d|0)==65533){J[e+180>>2]=e+704;J[e+176>>2]=e+624;zc(a,f,e+176|0);b=J[e+624>>2];break H}J[e+196>>2]=e+704;J[e+192>>2]=e+616;zc(a,f,e+192|0);b=L[e+616>>1]}J[c+4>>2]=b;if(Xi(a,c,J[e+704>>2]))break m;break f}if((d|0)==1){b=e+704|0;J[e+144>>2]=b;zc(a,f,e+144|0);if(Xi(a,c,b))break m;break f}J[e+160>>2]=e+704;zc(a,f,e+160|0);if(Xi(a,c,J[e+704>>2]))break m;break f;case 10:if(K[o+15|0]){I:{if((d|0)==65533){J[e+244>>2]=e+704;J[e+240>>2]=e+624;zc(a,f,e+240|0);d=J[e+ -624>>2];break I}J[e+260>>2]=e+704;J[e+256>>2]=e+616;zc(a,f,e+256|0);d=L[e+616>>1]}J[c+4>>2]=d;b=J[e+704>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];break m}if(sd(a,c,b))break m;break f}if((d|0)==1){J[e+208>>2]=e+704;zc(a,f,e+208|0);if(J[c+4>>2]==1){J[c+8>>2]=J[e+704>>2];break m}if(sd(a,c,e+704|0))break m;break f}J[e+224>>2]=e+704;zc(a,f,e+224|0);b=J[e+704>>2];if(J[c+4>>2]==1){J[c+8>>2]=J[b>>2];break m}if(sd(a,c,b))break m;break f;case 11:if(K[o+15|0]){J:{if((d|0)==65533){J[e+308>>2]=e+704;J[e+304>>2]=e+624; -zc(a,f,e+304|0);b=J[e+624>>2];break J}J[e+324>>2]=e+704;J[e+320>>2]=e+616;zc(a,f,e+320|0);b=L[e+616>>1]}J[c+4>>2]=b;if(sd(a,c,J[e+704>>2]))break m;break f}if((d|0)==1){b=e+704|0;J[e+272>>2]=b;zc(a,f,e+272|0);if(sd(a,c,b))break m;break f}J[e+288>>2]=e+704;zc(a,f,e+288|0);if(sd(a,c,J[e+704>>2]))break m;break f;case 1:K:{if(K[o+15|0]){if((d|0)==65533){J[e+356>>2]=e+704;J[e+352>>2]=e+624;zc(a,f,e+352|0);break K}J[e+372>>2]=e+704;J[e+368>>2]=e+616;zc(a,f,e+368|0);break K}J[e+336>>2]=e+704;zc(a,f,e+336| -0)}f=J[e+704>>2];d=ac(f)+1|0;J[c+4>>2]=d;if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(sd(a,c,f))break m;break f;case 0:case 5:if(K[o+15|0]){L:{if((d|0)==65533){J[e+420>>2]= -e+704;J[e+416>>2]=e+624;zc(a,f,e+416|0);b=J[e+624>>2];break L}J[e+436>>2]=e+704;J[e+432>>2]=e+616;zc(a,f,e+432|0);b=L[e+616>>1]}J[c+4>>2]=b;f=J[e+704>>2];if(b>>>0<=4){d=H[f|0];if(L[a+456>>1]==19789){d=d<<24;J[c+8>>2]=d;if(b>>>0<2)break m;d=d|H[f+1|0]<<16;J[c+8>>2]=d;if((b|0)==2)break m;d=d|H[f+2|0]<<8;J[c+8>>2]=d;if((b|0)!=4)break m;J[c+8>>2]=d|H[f+3|0];break m}J[c+8>>2]=d;if(b>>>0<2)break m;d=d|H[f+1|0]<<8;J[c+8>>2]=d;if((b|0)==2)break m;d=d|H[f+2|0]<<16;J[c+8>>2]=d;if((b|0)!=4)break m;J[c+8>>2]= -d|K[f+3|0]<<24;break m}if(sd(a,c,f))break m;break f}if((d|0)==1){J[e+384>>2]=e+704;zc(a,f,e+384|0);d=J[c+4>>2];if(d>>>0<=4){b=H[e+704|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[e+705|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[e+706|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[e+707|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[e+705|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[e+706|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[e+707|0]<<24;break m}if(sd(a, -c,e+704|0))break m;break f}J[e+400>>2]=e+704;zc(a,f,e+400|0);f=J[e+704>>2];d=J[c+4>>2];if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(sd(a,c,f))break m;break f;case 6:break E; -default:break m}M:{N:switch(d-65533|0){case 2:J[e+468>>2]=e+704;J[e+464>>2]=e+616;zc(a,f,e+464|0);d=L[e+616>>1];J[c+4>>2]=d;break M;case 0:J[e+484>>2]=e+704;J[e+480>>2]=e+624;zc(a,f,e+480|0);d=J[e+624>>2];J[c+4>>2]=d;break M;default:break N}J[e+448>>2]=e+704;zc(a,f,e+448|0);d=J[c+4>>2]}f=J[e+704>>2];if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0]; -break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(sd(a,c,f))break m;break f}if(!sd(a,c,f))break f;break m}if(sd(a,c,d))break m;break f}J[c+4>>2]=j;I[c+2>>1]=3;I[c>>1]=f;b=L[e+704>>1];J[c+8>>2]=L[a+456>>1]==19789?b<<16:b;break m}J[a+496>>2]=(J[a+16>>2]+(c-q|0)|0)+10;break m}k=0;g=O[e+616>>3];i=0;if(j-1>>>0>=7){f=j&65528;p=0;while(1){h=i<<3;O[h+d>>3]=g;O[(h|8)+d>>3]=g;O[(h|16)+d>> -3]=g;O[(h|24)+d>>3]=g;O[(h|32)+d>>3]=g;O[(h|40)+d>>3]=g;O[(h|48)+d>>3]=g;O[(h|56)+d>>3]=g;i=i+8|0;p=p+8|0;if((f|0)!=(p|0))continue;break}}f=j&7;if(!f)break n;while(1){O[(i<<3)+d>>3]=g;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}k=0}h=e+704|0;O:{P:{if(P(b>>>0<=13?J[(b<<2)+283312>>2]:0,j)>>>0<81)break P;h=Qb(P(b>>>0<=13?J[(b<<2)+283312>>2]:0,j));if(h)break P;p=0;Ob(J[a+628>>2],J[a>>2],271895,0);break O}J[c+4>>2]=j;I[c+2>>1]=b;I[c>>1]=n;p=0;Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:switch(b-1|0){case 10:if(k)break Y; -k=0;i=0;if(j-1>>>0>=3){f=j&65532;l=0;while(1){N[(i<<2)+h>>2]=O[(i<<3)+d>>3];b=i|1;N[(b<<2)+h>>2]=O[(b<<3)+d>>3];b=i|2;N[(b<<2)+h>>2]=O[(b<<3)+d>>3];b=i|3;N[(b<<2)+h>>2]=O[(b<<3)+d>>3];i=i+4|0;l=l+4|0;if((f|0)!=(l|0))continue;break}}b=j&3;if(b)while(1){N[(i<<2)+h>>2]=O[(i<<3)+d>>3];i=i+1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}if((j|0)!=1)break Y;J[c+8>>2]=J[h>>2];break R;case 3:break S;case 7:break T;case 2:break U;case 5:break V;case 0:break W;case 11:break X;case 8:break Z;default:break Q}_:{if(k)break _; -k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<2)+h|0;g=O[(i<<3)+d>>3];$:{if(R(g)<2147483648){b=~~g;break $}b=-2147483648}J[f>>2]=b;f=i|1;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];aa:{if(R(g)<2147483648){b=~~g;break aa}b=-2147483648}J[m>>2]=b;f=i|2;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];ba:{if(R(g)<2147483648){b=~~g;break ba}b=-2147483648}J[m>>2]=b;f=i|3;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];ca:{if(R(g)<2147483648){b=~~g;break ca}b=-2147483648}J[m>>2]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j= -(i<<2)+h|0;g=O[(i<<3)+d>>3];da:{if(R(g)<2147483648){b=~~g;break da}b=-2147483648}J[j>>2]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}if(J[c+4>>2]!=1)break _;J[c+8>>2]=J[h>>2];break R}if(sd(a,c,h))break R;break Q}if(sd(a,c,h))break R;break Q}if(!sd(a,c,d))break Q;break R}if(!k){k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=h+i|0;g=O[(i<<3)+d>>3];ea:{if(g<4294967296&g>=0){b=~~g>>>0;break ea}b=0}H[f|0]=b;f=i|1;m=f+h|0;g=O[(f<<3)+d>>3];fa:{if(g<4294967296&g>=0){b=~~g>>>0;break fa}b=0}H[m|0]=b; -f=i|2;m=f+h|0;g=O[(f<<3)+d>>3];ga:{if(g<4294967296&g>=0){b=~~g>>>0;break ga}b=0}H[m|0]=b;f=i|3;m=f+h|0;g=O[(f<<3)+d>>3];ha:{if(g<4294967296&g>=0){b=~~g>>>0;break ha}b=0}H[m|0]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=h+i|0;g=O[(i<<3)+d>>3];ia:{if(g<4294967296&g>=0){b=~~g>>>0;break ia}b=0}H[j|0]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}j=J[c+4>>2]}if(j>>>0<=4){b=H[h|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<16;J[c+8>>2]=b; -if((j|0)==2)break R;b=b|H[h+2|0]<<8;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|H[h+3|0];break R}J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<8;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<16;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|K[h+3|0]<<24;break R}if(sd(a,c,h))break R;break Q}if(!k){k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=h+i|0;g=O[(i<<3)+d>>3];ja:{if(R(g)<2147483648){b=~~g;break ja}b=-2147483648}H[f|0]=b;f=i|1;m=f+h|0;g=O[(f<<3)+d>>3];ka:{if(R(g)<2147483648){b=~~g;break ka}b=-2147483648}H[m| -0]=b;f=i|2;m=f+h|0;g=O[(f<<3)+d>>3];la:{if(R(g)<2147483648){b=~~g;break la}b=-2147483648}H[m|0]=b;f=i|3;m=f+h|0;g=O[(f<<3)+d>>3];ma:{if(R(g)<2147483648){b=~~g;break ma}b=-2147483648}H[m|0]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=h+i|0;g=O[(i<<3)+d>>3];na:{if(R(g)<2147483648){b=~~g;break na}b=-2147483648}H[j|0]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}j=J[c+4>>2]}if(j>>>0<=4){b=H[h|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<< -16;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<8;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|H[h+3|0];break R}J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<8;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<16;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|K[h+3|0]<<24;break R}if(sd(a,c,h))break R;break Q}oa:{if(k)break oa;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<1)+h|0;g=O[(i<<3)+d>>3];pa:{if(g<4294967296&g>=0){b=~~g>>>0;break pa}b=0}I[f>>1]=b;f=i|1;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];qa:{if(g<4294967296& -g>=0){b=~~g>>>0;break qa}b=0}I[m>>1]=b;f=i|2;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];ra:{if(g<4294967296&g>=0){b=~~g>>>0;break ra}b=0}I[m>>1]=b;f=i|3;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];sa:{if(g<4294967296&g>=0){b=~~g>>>0;break sa}b=0}I[m>>1]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(!f)break oa;while(1){l=(i<<1)+h|0;g=O[(i<<3)+d>>3];ta:{if(g<4294967296&g>=0){b=~~g>>>0;break ta}b=0}I[l>>1]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}if(j>>>0<=2){b=L[h>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+ -8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1];break R}J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1]<<16;break R}if(sd(a,c,h))break R;break Q}ua:{if(k)break ua;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<1)+h|0;g=O[(i<<3)+d>>3];va:{if(R(g)<2147483648){b=~~g;break va}b=-2147483648}I[f>>1]=b;f=i|1;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];wa:{if(R(g)<2147483648){b=~~g;break wa}b=-2147483648}I[m>>1]=b;f=i|2;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];xa:{if(R(g)<2147483648){b=~~g;break xa}b=-2147483648}I[m>> -1]=b;f=i|3;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];ya:{if(R(g)<2147483648){b=~~g;break ya}b=-2147483648}I[m>>1]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(!f)break ua;while(1){l=(i<<1)+h|0;g=O[(i<<3)+d>>3];za:{if(R(g)<2147483648){b=~~g;break za}b=-2147483648}I[l>>1]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}if(j>>>0<=2){b=L[h>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1];break R}J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1]<<16;break R}if(sd(a, -c,h))break R;break Q}Aa:{if(k)break Aa;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<2)+h|0;g=O[(i<<3)+d>>3];Ba:{if(g<4294967296&g>=0){b=~~g>>>0;break Ba}b=0}J[f>>2]=b;f=i|1;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Ca:{if(g<4294967296&g>=0){b=~~g>>>0;break Ca}b=0}J[m>>2]=b;f=i|2;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Da:{if(g<4294967296&g>=0){b=~~g>>>0;break Da}b=0}J[m>>2]=b;f=i|3;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Ea:{if(g<4294967296&g>=0){b=~~g>>>0;break Ea}b=0}J[m>>2]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f= -j&3;if(f)while(1){j=(i<<2)+h|0;g=O[(i<<3)+d>>3];Fa:{if(g<4294967296&g>=0){b=~~g>>>0;break Fa}b=0}J[j>>2]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}if(J[c+4>>2]!=1)break Aa;J[c+8>>2]=J[h>>2];break R}if(!sd(a,c,h))break Q}p=1}if((e+704|0)==(h|0))break O;Kb(h)}if((e+624|0)!=(d|0))Kb(d);if(!p)break f}c=c+12|0;f=L[o+12>>1];if((f|0)==65)break k;d=(e+592|0)+(f>>>3&8188)|0;b=J[d>>2];B=d,C=Opa(-2,f)&b,J[B>>2]=C}t=t+1|0;if((u|0)!=(t|0))continue;break}}I[e+624>>1]=r;J[e+704>>2]=J[a+20>>2];if(K[a+12|0]& -128){if(r&65535){d=q;while(1){dk(d,2);Zh(d+4|0,2);d=d+12|0;c=L[e+624>>1]-1|0;I[e+624>>1]=c;if(c&65535)continue;break}}I[e+624>>1]=r;c=K[e+625|0];H[e+625|0]=K[e+624|0];H[e+624|0]=c;_h(e+704|0)}Ab[J[a+640>>2]](J[a+628>>2],J[a+16>>2],0)|0;if((Ab[J[a+636>>2]](J[a+628>>2],e+624|0,2)|0)!=2){Ob(J[a+628>>2],J[a>>2],267196,0);break f}if((Ab[J[a+636>>2]](J[a+628>>2],q,s)|0)!=(s|0)){Ob(J[a+628>>2],J[a>>2],267811,0);break f}if((Ab[J[a+636>>2]](J[a+628>>2],e+704|0,4)|0)!=4){Ob(J[a+628>>2],J[a>>2],265162,0);break f}wr(a); -J[a+12>>2]=J[a+12>>2]&-9;Ab[J[a+572>>2]](a);Qn(a);J[a+16>>2]=0;J[a+20>>2]=0;J[a+480>>2]=-1;J[a+484>>2]=0;J[a+472>>2]=-1;Kb(q);c=1;break b}Kb(q);c=0;break b}Ob(J[a+628>>2],J[a>>2],266187,0);c=0}xb=e+784|0;if(!c)break a}Ab[J[a+572>>2]](a);wr(a);c=J[a+24>>2];if(c)Kb(c);while(1){c=J[a+680>>2];if(c){J[a+680>>2]=J[c>>2];Kb(J[c+8>>2]);Kb(c);continue}break}c=J[a+596>>2];if(!(!c|!(K[a+13|0]&2)))Kb(c);if(K[a+13|0]&8)Ab[J[a+624>>2]](J[a+628>>2],J[a+612>>2],J[a+616>>2]);c=J[a+660>>2];if(c){b=0;while(1){d=J[J[a+ -656>>2]+(b<<2)>>2];Ga:{if(L[d+12>>1]!=65)break Ga;q=J[d+16>>2];if(Zb(263687,q,4))break Ga;Kb(q);Kb(d);c=J[a+660>>2]}b=b+1|0;if(b>>>0>>0)continue;break}Kb(J[a+656>>2])}Kb(a)}function ni(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=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;s=xb-16|0;xb=s;y=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a;g=J[a+28>>2];if(!g|J[g>>2]!=(a|0))break a;f=J[g+4>>2];if(f-16180>>>0> -31)break a;q=J[a+12>>2];if(!q)break a;d=J[a>>2];if(!(J[a+4>>2]?d:1))break a;if((f|0)==16191){J[g+4>>2]=16192;f=16192}P=b-5|0;Q=g+92|0;A=g+756|0;B=g+116|0;E=g+88|0;C=g+112|0;z=g+1332|0;c=J[g+64>>2];i=J[g+60>>2];D=J[a+4>>2];j=D;n=J[a+16>>2];t=n;b:{c:{d:while(1){e:{e=-3;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:switch(f-16180|0){case 23:k=J[g+76>>2];break C; -case 21:k=J[g+76>>2];break E;case 18:k=J[g+108>>2];break H;case 27:f=J[g+12>>2];break h;case 16:if(c>>>0>=14)break Q;if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0<=5)break R;d=f;j=k;c=e;break Q;case 9:if(c>>>0>=32)break Y;if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0<=23)break Z;d=e;j=f;break Y;case 1:if(c>>>0>=16)break ha;if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0<=7)break ia;d=f;j=k;c=e;break ha;case 8:break j;case 7:break k;case 6:break l;case 5:break m; -case 24:break B;case 22:break D;case 20:break F;case 19:break G;case 30:break b;case 26:break N;case 25:break O;case 17:break P;case 15:break S;case 14:break T;case 13:break U;case 29:break c;case 12:break V;case 11:break W;case 10:break X;case 4:break aa;case 3:break da;case 2:break ga;case 0:break ja;case 28:break g;default:break a}l=J[g+12>>2];if(!l)break M;ka:{if(c>>>0>=16){f=i;break ka}if(!j)break e;e=c+8|0;k=d+1|0;h=j-1|0;f=(K[d|0]<>>0>7){d=k;j=h;c=e;break ka}if(!h){d=k;j=0;i=f; -c=e;e=o;break c}c=c+16|0;j=j-2|0;f=(K[d+1|0]<>2])J[g+40>>2]=15;i=0;e=Ad(0,0,0);J[g+28>>2]=e;H[s+12|0]=f;H[s+13|0]=f>>>8;e=Ad(e,s+12|0,2);J[g+4>>2]=16181;J[g+28>>2]=e;c=0;f=J[g+4>>2];continue}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;j=j-2|0;i=(K[d+1|0]<>2]=i;if((i&255)!=8){J[a+24>>2]=227310;J[g+4>>2]=16209;f=J[g+4>>2];continue}if(i&57344){J[a+24>>2]=225250;J[g+ -4>>2]=16209;f=J[g+4>>2];continue}e=J[g+36>>2];if(e)J[e>>2]=i>>>8&1;if(!(!(i&512)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=Ad(J[g+28>>2],s+12|0,2),J[X+28>>2]=Y}J[g+4>>2]=16182;c=0;i=0;break fa}if(c>>>0>31)break ea}if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0>23){d=e;j=f;break ea}k=c+8|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+2|0;f=j-2|0;i=(K[d+1|0]<>>0>15){d=e;j=f;break ea}k=c+16|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+3|0;f=j-3|0;i=(K[d+2|0]<>>0>7){d=e;j=f; -break ea}c=c+24|0;if(!f){d=e;break e}j=j-4|0;i=(K[d+3|0]<>2];if(e)J[e+4>>2]=i;if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;H[s+14|0]=i>>>16;H[s+15|0]=i>>>24;X=g,Y=Ad(J[g+28>>2],s+12|0,4),J[X+28>>2]=Y}J[g+4>>2]=16183;c=0;i=0;break ca}if(c>>>0>15)break ba}if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0>7){d=e;j=f;break ba}c=c+8|0;if(!f){d=e;break e}j=j-2|0;i=(K[d+1|0]<>2];if(e){J[e+12>>2]=i>>>8;J[e+8>>2]=i&255}if(!(!(K[g+ -21|0]&2)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=Ad(J[g+28>>2],s+12|0,2),J[X+28>>2]=Y}J[g+4>>2]=16184;f=0;c=0;i=0;e=J[g+20>>2];if(e&1024)break $;break o}e=J[g+20>>2];if(!(e&1024)){f=c;break o}f=i;if(c>>>0>15)break _}if(!j){j=0;i=f;e=o;break c}k=d+1|0;h=j-1|0;i=(K[d|0]<>>0>7){d=k;j=h;break _}c=c+8|0;if(!h){d=k;break e}j=j-2|0;i=(K[d+1|0]<>2]=i;c=J[g+36>>2];if(c)J[c+20>>2]=i;c=0;if(!(!(e&512)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=Ad(J[g+28>> -2],s+12|0,2),J[X+28>>2]=Y}i=0;break n}k=c+8|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+2|0;f=j-2|0;i=(K[d+1|0]<>>0>15){d=e;j=f;break Y}k=c+16|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+3|0;f=j-3|0;i=(K[d+2|0]<>>0>7){d=e;j=f;break Y}c=c+24|0;if(!f){d=e;break e}j=j-4|0;i=(K[d+3|0]<>>8&65280|i>>>24);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16190;i=0;c=0}if(!J[g+16>>2]){J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+64>>2]=c;J[g+60>>2]=i;y=2;break a}e= -oh(0,0,0);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16191}if(P>>>0>=2)break V;e=o;break c}ma:{na:{if(!J[g+8>>2]){if(c>>>0<3)break na;break ma}J[g+4>>2]=16206;i=i>>>(c&7)|0;c=c&-8;f=J[g+4>>2];continue}if(!j)break e;j=j-1|0;i=(K[d|0]<>2]=i&1;f=16193;oa:{pa:{qa:switch((i>>>1&3)-1|0){case 0:J[g+80>>2]=228816;J[g+88>>2]=9;J[g+92>>2]=5;J[g+84>>2]=230864;J[g+4>>2]=16199;if((b|0)!=6)break oa;c=c-3|0;i=i>>>3|0;e=o;break c;case 1:f=16196;break pa;case 2:break qa;default:break pa}J[a+ -24>>2]=227096;f=16209}J[g+4>>2]=f}c=c-3|0;i=i>>>3|0;f=J[g+4>>2];continue}i=i>>>(c&7)|0;c=c&-8;ra:{if(c>>>0>31)break ra;if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0>23){d=f;j=k;c=e;break ra}if(!k){d=f;j=0;c=e;e=o;break c}f=c+16|0;k=d+2|0;h=j-2|0;i=(K[d+1|0]<>>0>15){d=k;j=h;c=f;break ra}if(!h){d=k;j=0;c=f;e=o;break c}e=c+24|0;k=d+3|0;h=j-3|0;i=(K[d+2|0]<>>16|0)){J[a+24>>2]=225695;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16194;J[g+68>>2]=e;i=0;c=0;if((b|0)!=6)break T;e=o;break c}J[g+4>>2]=16195}e=J[g+68>>2];if(e){e=e>>>0>>0?e:j;e=e>>>0>>0?e:n;if(!e){e=o;break c}f=Mb(q,d,e);J[g+68>>2]=J[g+68>>2]-e;q=e+f|0;n=n-e|0;d=d+e|0;j=j-e|0;f=J[g+4>>2];continue}J[g+4>>2]=16191;f=J[g+4>>2];continue}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;j=j-2|0;i=(K[d+1|0]<>2]=e+257;f=i>>>5&31;J[g+104>>2]=f+1; -h=(i>>>10&15)+4|0;J[g+96>>2]=h;c=c-14|0;i=i>>>14|0;if(!(f>>>0<30&e>>>0<=29)){J[a+24>>2]=225659;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16197;f=0;J[g+108>>2]=0;break J}f=J[g+108>>2];h=J[g+96>>2];if(f>>>0>>0)break J;break I}if(!n)break A;H[q|0]=J[g+68>>2];J[g+4>>2]=16200;n=n-1|0;q=q+1|0;f=J[g+4>>2];continue}f=J[g+12>>2];if(!f){f=0;break K}sa:{if(c>>>0>31){k=d;break sa}if(!j)break e;e=c+8|0;k=d+1|0;h=j-1|0;i=(K[d|0]<>>0>23){j=h;c=e;break sa}if(!h){d=k;j=0;c=e;e=o;break c}h=c+16| -0;k=d+2|0;l=j-2|0;i=(K[d+1|0]<>>0>15){j=l;c=h;break sa}if(!l){d=k;j=0;c=h;e=o;break c}e=c+24|0;k=d+3|0;l=j-3|0;i=(K[d+2|0]<>>0>7){j=l;c=e;break sa}if(!l){d=k;j=0;c=e;e=o;break c}c=c+32|0;k=d+4|0;j=j-4|0;i=(K[d+3|0]<>2]=d+J[a+20>>2];J[g+32>>2]=d+J[g+32>>2];e=f&4;if(!(!e|(n|0)==(t|0))){e=q-d|0;f=J[g+28>>2];ta:{if(J[g+20>>2]){d=Ad(f,e,d);break ta}d=oh(f,e,d)}J[g+28>>2]=d;J[a+48>>2]=d;f=J[g+12>>2];e=f&4}if(!e|J[g+28>>2]==((J[g+20>>2]?i:i<<24|(i&65280)<< -8|(i>>>8&65280|i>>>24))|0))break L;J[a+24>>2]=226828;J[g+4>>2]=16209;d=k;t=n;f=J[g+4>>2];continue}J[g+4>>2]=16192;break q}d=k;i=0;c=0;t=n}J[g+4>>2]=16207;break h}while(1){if(c>>>0<=2){if(!j)break e;j=j-1|0;i=(K[d|0]<>2]=e;I[((L[(f<<1)+228768>>1]<<1)+g|0)+116>>1]=i&7;c=c-3|0;i=i>>>3|0;f=e;if((e|0)!=(h|0))continue;break}f=h}if(f>>>0<=18){k=0;e=f;o=3-e&3;if(o)while(1){I[((L[(e<<1)+228768>>1]<<1)+g|0)+116>>1]=0;e=e+1|0;k=k+1|0;if((o|0)!=(k|0))continue;break}if(f- -16>>>0>=3)while(1){o=g+116|0;f=e<<1;I[o+(L[f+228768>>1]<<1)>>1]=0;I[o+(L[f+228770>>1]<<1)>>1]=0;I[o+(L[f+228772>>1]<<1)>>1]=0;I[o+(L[f+228774>>1]<<1)>>1]=0;e=e+4|0;if((e|0)!=19)continue;break}J[g+108>>2]=19}J[g+88>>2]=7;J[g+80>>2]=z;J[g+112>>2]=z;k=0;o=Ls(0,B,19,C,E,A);if(o){J[a+24>>2]=225225;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16198;J[g+108>>2]=0;o=0}w=J[g+100>>2];u=w+J[g+104>>2]|0;if(u>>>0>k>>>0){x=-1<>2]^-1;r=J[g+80>>2];while(1){m=c;f=j;e=d;ua:{va:{wa:{xa:{ya:{p=i&x;l=K[(r+(p<< -2)|0)+1|0];za:{if(l>>>0<=c>>>0){h=c;break za}while(1){if(!f)break ya;l=K[e|0]<>>0>h>>>0)continue;break}}c=L[(r+(p<<2)|0)+2>>1];if(c>>>0<=15){d=k+1|0;J[g+108>>2]=d;I[((k<<1)+g|0)+116>>1]=c;c=h-l|0;i=i>>>l|0;k=d;break ua}Aa:{Ba:{Ca:switch(c-16|0){case 0:d=l+2|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f-1|0;i=(K[e|0]<>>0>h>>>0)continue;break}c=h-l|0;h=i>>>l|0;if(!k){J[a+24>>2]=225580;J[g+4>>2]=16209; -d=e;j=f;i=h;f=J[g+4>>2];continue d}c=c-2|0;i=h>>>2|0;l=(h&3)+3|0;j=L[((k<<1)+g|0)+114>>1];break Aa;case 1:d=l+3|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f-1|0;i=(K[e|0]<>>0>h>>>0)continue;break}c=(h-l|0)-3|0;d=i>>>l|0;i=d>>>3|0;l=(d&7)+3|0;break Ba;default:break Ca}d=l+7|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f-1|0;i=(K[e|0]<>>0>h>>>0)continue;break}c=(h-l|0)-7|0;d=i>>>l|0;i=d>>>7|0;l=(d&127)+11|0}j=0}if(u>>>0>>0)break wa;h=0;m=l& -3;if(!m)break xa;d=l;while(1){I[((k<<1)+g|0)+116>>1]=j;k=k+1|0;d=d-1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}break va}d=d+j|0;c=(j<<3)+c|0;break e}d=l;break va}J[a+24>>2]=225580;J[g+4>>2]=16209;d=e;j=f;f=J[g+4>>2];continue d}if(l>>>0>=4)while(1){h=(k<<1)+g|0;I[h+118>>1]=j;I[h+116>>1]=j;I[h+120>>1]=j;I[h+122>>1]=j;k=k+4|0;d=d-4|0;if(d)continue;break}J[g+108>>2]=k}d=e;j=f;if(k>>>0>>0)continue;break}}if(!L[g+628>>1]){J[a+24>>2]=226745;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+88>>2]=9;J[g+80>>2]= -z;J[g+112>>2]=z;o=Ls(1,B,w,C,E,A);if(o){J[a+24>>2]=225197;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+92>>2]=6;J[g+84>>2]=J[g+112>>2];o=Ls(2,(J[g+100>>2]<<1)+B|0,J[g+104>>2],C,Q,A);if(o){J[a+24>>2]=225275;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16199;o=0;if((b|0)!=6)break G;e=0;break c}J[g+4>>2]=16200}if(!(j>>>0<6|n>>>0<258)){J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+64>>2]=c;J[g+60>>2]=i;h=J[a+12>>2];e=J[a+16>>2];d=h+e|0;u=d+(t^-1)|0;l=J[a+28>>2];q=J[l+52>>2];R=(d+(q^-1)|0)-t|0;x=q& -7;F=J[l+44>>2];S=q+F|0;w=d-257|0;T=(e-t|0)+h|0;j=J[a>>2];G=(j+J[a+4>>2]|0)-5|0;U=-1<>2]^-1;V=-1<>2]^-1;N=J[l+84>>2];O=J[l+80>>2];f=J[l+64>>2];n=J[l+60>>2];i=J[l+56>>2];W=J[l+48>>2];while(1){if(f>>>0<=14){n=((K[j|0]<>>e|0;m=L[d+2>>1];Da:{Ea:{Fa:{c=K[d|0];if(!c)break Fa;Ga:{Ha:{Ia:{while(1){d=c&255;if(c&16){m=m&65535;d=d&15;Ja:{if(!d){e=j;c=n;break Ja}Ka:{if(d>>>0<=f>>>0){c=f;e=j;break Ka}c=f+8|0;n=(K[j| -0]<>>d|0}if(f>>>0<=14){c=((K[e|0]<>>d|0;d=L[j+2>>1];c=K[j|0];if(c&16)break Ia;while(1){if(!(c&64)){c=(((-1<>>d|0;d=L[c+2>>1];c=K[c|0];if(!(c&16))continue;break Ia}break}m=227256;j=e;break Ha}if(!(d&64)){d=(((-1<>>e|0;m=L[d+2>>1];c=K[d|0];if(!c)break Fa;continue}break}m= -227228;e=16191;if(d&32)break Ga;break Ha}p=d&65535;c=c&15;La:{if(c>>>0<=f>>>0){d=f;j=e;break La}n=(K[e|0]<>>0<=d>>>0)break La;n=(K[e+1|0]<>>c|0;Ma:{r=e+p|0;d=h-T|0;if(r>>>0>d>>>0){k=r-d|0;if(!(!J[l+7108>>2]|k>>>0<=W>>>0)){m=226849;break Ha}Na:{Oa:{if(!q){c=i+(F-k|0)|0;if(k>>>0>=m>>>0)break Na;p=(p+(e+u|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>> -0<7)break Oa;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}break Oa}if(k>>>0>q>>>0){c=i+(S-k|0)|0;k=k-q|0;if(k>>>0>=m>>>0)break Na;p=(p+(e+R|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>>0>=7)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]= -K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}m=m-k|0;if(q>>>0>=m>>>0){c=i;break Na}e=0;d=q;c=i;if(x)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((x|0)!=(e|0))continue;break}if(q>>>0>=8)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}c=h-r|0;m=m-q|0;break Na}c=i+(q-k|0)|0;if(k>>>0>= -m>>>0)break Na;p=(p+(e+u|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>>0<7)break Oa;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}}c=h-r|0;m=m-k|0}Pa:{if(m>>>0<3)break Pa;d=0;e=m-3|0;k=((e>>>0)/3|0)+1&3;if(k)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];m=m-3|0;h=h+ -3|0;c=c+3|0;d=d+1|0;if((k|0)!=(d|0))continue;break}if(e>>>0<9)break Pa;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];H[h+8|0]=K[c+8|0];H[h+9|0]=K[c+9|0];H[h+10|0]=K[c+10|0];H[h+11|0]=K[c+11|0];h=h+12|0;c=c+12|0;m=m-12|0;if(m>>>0>2)continue;break}}if(!m)break Ea;H[h|0]=K[c|0];if((m|0)!=1)break Ma;h=h+1|0;break Ea}e=h-r|0;while(1){d=h;c=e;H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];h=d+3|0;e= -c+3|0;m=m-3|0;if(m>>>0>2)continue;break}if(!m)break Ea;H[d+3|0]=K[e|0];if((m|0)==1){h=d+4|0;break Ea}H[d+4|0]=K[c+4|0];h=d+5|0;break Ea}H[h+1|0]=K[c+1|0];h=h+2|0;break Ea}J[a+24>>2]=m;e=16209}J[l+4>>2]=e;break Da}H[h|0]=m;h=h+1|0}if(j>>>0>=G>>>0)break Da;if(h>>>0>>0)continue}break}J[a+12>>2]=h;d=j-(f>>>3|0)|0;J[a>>2]=d;J[a+16>>2]=(w-h|0)+257;J[a+4>>2]=(G-d|0)+5;d=f&7;J[l+64>>2]=d;J[l+60>>2]=(-1<>2];i=J[g+60>>2];j=J[a+4>>2];d=J[a>>2];n=J[a+16>>2];q=J[a+12>>2];if(J[g+4>>2]!=16191)break q; -J[g+7112>>2]=-1;f=J[g+4>>2];continue}J[g+7112>>2]=0;k=c;f=j;e=d;r=J[g+80>>2];p=-1<>2]^-1;l=r+((p&i)<<2)|0;m=K[l+1|0];Qa:{if(m>>>0<=c>>>0){h=c;break Qa}while(1){if(!f)break t;l=K[e|0]<>>0>h>>>0)continue;break}}c=m;p=L[l+2>>1];l=K[l|0];Ra:{if((l-1&255)>>>0>14){c=0;d=e;j=f;break Ra}j=f;d=e;k=h;r=r+(p<<2)|0;u=-1<>>c<<2)|0;m=K[p+1|0];Sa:{if(m+c>>>0<=h>>>0){l=h;break Sa}while(1){if(!j)break u;m=K[d|0]<>>c<<2)|0;m=K[p+1|0];if(k>>>0>>0)continue;break}}h=l-c|0;i=i>>>c|0;l=K[p|0];p=L[p+2>>1]}J[g+68>>2]=p&65535;J[g+7112>>2]=c+m;c=h-m|0;i=i>>>m|0;e=l&255;if(!e){J[g+4>>2]=16205;f=J[g+4>>2];continue}if(e&32){J[g+4>>2]=16191;J[g+7112>>2]=-1;f=J[g+4>>2];continue}if(e&64){J[a+24>>2]=227228;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16201;k=e&15;J[g+76>>2]=k}l=d;h=j;Ta:{if(!k){e=J[g+68>>2];break Ta}e=d;f=c;if(c>>>0>>0)while(1){if(!j)break v;j=j-1| -0;i=(K[e|0]<>>0>f>>>0)continue;break}J[g+7112>>2]=J[g+7112>>2]+k;e=J[g+68>>2]+((-1<>2]=e;c=f-k|0;i=i>>>k|0}J[g+4>>2]=16202;J[g+7116>>2]=e}k=c;f=j;e=d;r=J[g+84>>2];p=-1<>2]^-1;l=r+((p&i)<<2)|0;m=K[l+1|0];Ua:{if(m>>>0<=c>>>0){h=c;break Ua}while(1){if(!f)break w;l=K[e|0]<>>0>h>>>0)continue;break}}p=L[l+2>>1];k=K[l|0];Va:{if(k>>>0>=16){d=e;j=f;l=m;e=J[g+7112>>2];break Va}j= -f;d=e;c=h;r=r+(p<<2)|0;u=-1<>>m<<2)|0;l=K[p+1|0];Wa:{if(c>>>0>=m+l>>>0){k=c;break Wa}while(1){if(!j)break x;l=K[d|0]<>>m<<2)|0;l=K[p+1|0];if(c>>>0>>0)continue;break}}h=k-m|0;i=i>>>m|0;k=K[p|0];p=L[p+2>>1];e=J[g+7112>>2]+m|0}J[g+7112>>2]=e+l;c=h-l|0;i=i>>>l|0;if(k&64){J[a+24>>2]=227256;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16203;k=k&15;J[g+76>>2]=k;J[g+72>>2]=p&65535}l=d;h=j;if(k){e=d;f=c;if(c>>>0>>0)while(1){if(!j)break y; -j=j-1|0;i=(K[e|0]<>>0>f>>>0)continue;break}J[g+7112>>2]=J[g+7112>>2]+k;J[g+72>>2]=J[g+72>>2]+((-1<>>k|0;c=f-k|0}J[g+4>>2]=16204}if(n)break z}n=0;e=o;break c}e=J[g+72>>2];f=t-n|0;Xa:{if(e>>>0>f>>>0){e=e-f|0;if(!(!J[g+7108>>2]|e>>>0<=M[g+48>>2])){J[a+24>>2]=226849;J[g+4>>2]=16209;f=J[g+4>>2];continue}f=J[g+52>>2];Ya:{if(f>>>0>>0){e=e-f|0;f=J[g+56>>2]+(J[g+44>>2]-e|0)|0;break Ya}f=J[g+56>>2]+(f-e|0)|0}k=J[g+68>>2];e=e>>>0>>0?e:k;break Xa}f=q-e|0;k= -J[g+68>>2];e=k}h=e>>>0>>0?e:n;J[g+68>>2]=k-h;l=h-1|0;k=0;m=h&7;if(!m)break s;e=h;while(1){H[q|0]=K[f|0];e=e-1|0;q=q+1|0;f=f+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}break r}d=h+l|0;c=(h<<3)+c|0;break e}d=e+f|0;c=(f<<3)+h|0;break e}d=d+j|0;c=(j<<3)+c|0;break e}d=h+l|0;c=(h<<3)+c|0;break e}d=e+f|0;c=(f<<3)+h|0;break e}d=d+j|0;c=(j<<3)+c|0;break e}e=h}if(l>>>0>=7)while(1){H[q|0]=K[f|0];H[q+1|0]=K[f+1|0];H[q+2|0]=K[f+2|0];H[q+3|0]=K[f+3|0];H[q+4|0]=K[f+4|0];H[q+5|0]=K[f+5|0];H[q+6|0]=K[f+6|0];H[q+ -7|0]=K[f+7|0];q=q+8|0;f=f+8|0;e=e-8|0;if(e)continue;break}n=n-h|0;if(J[g+68>>2])break q;J[g+4>>2]=16200;f=J[g+4>>2];continue}f=J[g+4>>2];continue}j=0;d=e;c=h;e=o;break c}e=J[g+36>>2];if(e)J[e+16>>2]=0;c=f}J[g+4>>2]=16185}Za:{k=J[g+20>>2];if(!(k&1024))break Za;f=J[g+68>>2];e=f>>>0>>0?f:j;if(e){h=J[g+36>>2];_a:{if(!h)break _a;l=J[h+16>>2];if(!l)break _a;f=J[h+20>>2]-f|0;k=J[h+24>>2];Mb(f+l|0,d,k>>>0>>0?k-f|0:e);k=J[g+20>>2]}if(!(!(k&512)|!(K[g+12|0]&4)))X=g,Y=Ad(J[g+28>>2],d,e),J[X+28>>2]=Y; -f=J[g+68>>2]-e|0;J[g+68>>2]=f;j=j-e|0;d=d+e|0}if(!f)break Za;e=o;break c}J[g+4>>2]=16186;J[g+68>>2]=0}$a:{if(K[g+21|0]&8){f=0;if(!j)break e;while(1){e=K[d+f|0];k=J[g+36>>2];ab:{if(!k)break ab;h=J[k+28>>2];if(!h)break ab;l=J[k+32>>2];k=J[g+68>>2];if(l>>>0<=k>>>0)break ab;J[g+68>>2]=k+1;H[h+k|0]=e}f=f+1|0;if(j>>>0>f>>>0?e:0)continue;break}if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4)))X=g,Y=Ad(J[g+28>>2],d,f),J[X+28>>2]=Y;d=d+f|0;j=j-f|0;if(!e)break $a;e=o;break c}e=J[g+36>>2];if(!e)break $a;J[e+28>>2]=0}J[g+ -4>>2]=16187;J[g+68>>2]=0}bb:{if(K[g+21|0]&16){f=0;if(!j)break e;while(1){e=K[d+f|0];k=J[g+36>>2];cb:{if(!k)break cb;h=J[k+36>>2];if(!h)break cb;l=J[k+40>>2];k=J[g+68>>2];if(l>>>0<=k>>>0)break cb;J[g+68>>2]=k+1;H[h+k|0]=e}f=f+1|0;if(j>>>0>f>>>0?e:0)continue;break}if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4)))X=g,Y=Ad(J[g+28>>2],d,f),J[X+28>>2]=Y;d=d+f|0;j=j-f|0;if(!e)break bb;e=o;break c}e=J[g+36>>2];if(!e)break bb;J[e+36>>2]=0}J[g+4>>2]=16188}h=J[g+20>>2];if(h&512){db:{if(c>>>0>15){f=d;break db}if(!j)break e; -e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0>7){j=k;c=e;break db}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;f=d+2|0;j=j-2|0;i=(K[d+1|0]<>1]==(i|0))){J[a+24>>2]=226920;J[g+4>>2]=16209;d=f;f=J[g+4>>2];continue}i=0;c=0;d=f}e=J[g+36>>2];if(e){J[e+48>>2]=1;J[e+44>>2]=h>>>9&1}e=Ad(0,0,0);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16191;f=J[g+4>>2];continue}J[g+20>>2]=0;e=J[g+36>>2];if(e)J[e+48>>2]=-1;eb:{if(l&1)if(!(((f<<8&65280)+(f>>>8|0)>>>0)%31|0))break eb;J[a+24>>2]=226782; -J[g+4>>2]=16209;i=f;f=J[g+4>>2];continue}if((f&15)!=8){J[a+24>>2]=227310;J[g+4>>2]=16209;i=f;f=J[g+4>>2];continue}i=f>>>4|0;h=i&15;k=h+8|0;l=h>>>0<=7;e=J[g+40>>2];if(!e){J[g+40>>2]=k;e=k}if(!(e>>>0>=k>>>0&l)){c=c-4|0;J[a+24>>2]=226998;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+24>>2]=256<>2]=e;J[a+48>>2]=e;J[g+4>>2]=f&8192?16189:16191;c=0;f=J[g+4>>2];continue}if(!(!f|!J[g+20>>2])){fb:{if(c>>>0>31){f=d;break fb}if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>> -0>23){j=k;c=e;break fb}if(!k){d=f;j=0;c=e;e=o;break c}k=c+16|0;f=d+2|0;h=j-2|0;i=(K[d+1|0]<>>0>15){j=h;c=k;break fb}if(!h){d=f;j=0;c=k;e=o;break c}e=c+24|0;f=d+3|0;h=j-3|0;i=(K[d+2|0]<>>0>7){j=h;c=e;break fb}if(!h){d=f;j=0;c=e;e=o;break c}c=c+32|0;f=d+4|0;j=j-4|0;i=(K[d+3|0]<>2]!=(i|0))break f;i=0;c=0;d=f}J[g+4>>2]=16208}e=1;break c}J[a+24>>2]=226805;J[g+4>>2]=16209;d=f;f=J[g+4>>2];continue}break}j=0;e=o}J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+ -64>>2]=c;J[g+60>>2]=i;gb:{hb:{ib:{if(J[g+44>>2])break ib;if((n|0)==(t|0))break hb;d=J[g+4>>2];if(d>>>0>16208)break hb;if((b|0)!=4)break ib;if(d>>>0>16205)break hb}c=t-n|0;d=J[a+28>>2];j=J[d+56>>2];jb:{if(!j){o=1;j=Ab[J[a+32>>2]](J[a+40>>2],1<>2],1)|0;J[d+56>>2]=j;if(!j)break jb}f=J[d+44>>2];if(!f){J[d+48>>2]=0;J[d+52>>2]=0;f=1<>2];J[d+44>>2]=f}kb:{if(c>>>0>=f>>>0){Mb(j,q-f|0,f);J[d+52>>2]=0;break kb}k=f;f=J[d+52>>2];k=k-f|0;o=k>>>0>>0;j=f+j|0;f=o?k:c;Mb(j,q-c|0,f);if(o){c=c-f|0; -Mb(J[d+56>>2],q-c|0,c);J[d+52>>2]=c;break kb}o=0;c=f+J[d+52>>2]|0;j=c;c=J[d+44>>2];J[d+52>>2]=(j|0)!=(c|0)?j:0;j=c;c=J[d+48>>2];if(j>>>0<=c>>>0)break jb;J[d+48>>2]=c+f;break jb}J[d+48>>2]=J[d+44>>2];o=0}if(o)break gb;n=J[a+16>>2];j=J[a+4>>2]}J[a+8>>2]=J[a+8>>2]+(D-j|0);d=t-n|0;J[a+20>>2]=d+J[a+20>>2];J[g+32>>2]=d+J[g+32>>2];if(!(!(K[g+12|0]&4)|(n|0)==(t|0))){c=J[a+12>>2]-d|0;f=J[g+28>>2];lb:{if(J[g+20>>2]){d=Ad(f,c,d);break lb}d=oh(f,c,d)}J[g+28>>2]=d;J[a+48>>2]=d}d=a;a=J[g+4>>2];J[d+44>>2]=((J[g+ -64>>2]+((J[g+8>>2]!=0)<<6)|0)+(((a|0)==16191)<<7)|0)+((a|0)==16199?256:((a|0)==16194)<<8);a=e?e:-5;y=(b|0)==4?a:(j|0)==(D|0)?(n|0)==(t|0)?a:e:e;break a}J[g+4>>2]=16210}y=-4}xb=s+16|0;return y}function zZ(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;c=xb-384|0;xb=c;a:{b:{c:{d:{e:{f:{d=J[a+72>>2];g:{if(!d)break g;h=Ab[J[J[d>>2]+44>>2]](d)|0;if(!h)break g;if((Ab[J[J[h>>2]+12>>2]](h)|0)==5)break g;h:{i:{j:{k:{l:{m:{n:{o:{d=J[a+72>>2];switch((Ab[J[J[d>>2]+80>>2]](d)|0)-1|0){case 15:break n; -case 0:break o;case 10:break g;default:break m}}d=He(c+360|0,420860,422400);e=J[b+4>>2];if(e>>>0>2]){if(H[d+11|0]>=0){f=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=f;J[e+8>>2]=J[d+8>>2];break j}f=J[d+4>>2];j=J[d>>2];J[195395]=0;fa(1808,e|0,j|0,f|0);f=J[195395];J[195395]=0;if((f|0)!=1)break j;break d}J[195395]=0;$(1971,b|0,d|0);e=J[195395];J[195395]=0;if((e|0)!=1){if(H[d+23|0]>=0)break i;Kb(J[d+12>>2]);break i}break c}d=He(c+360|0,420860,422452);e=J[b+4>>2];if(e>>>0>2]){if(H[d+11|0]>=0){f=J[d+ -4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=f;J[e+8>>2]=J[d+8>>2];break l}f=J[d+4>>2];j=J[d>>2];J[195395]=0;fa(1808,e|0,j|0,f|0);f=J[195395];J[195395]=0;if((f|0)!=1)break l;break d}J[195395]=0;$(1971,b|0,d|0);e=J[195395];J[195395]=0;if((e|0)!=1){if(H[d+23|0]>=0)break k;Kb(J[d+12>>2]);break k}break c}pn(c+304|0,Ab[J[J[h>>2]+8>>2]](h)|0,Ab[J[J[h>>2]+20>>2]](h)&255);J[195395]=0;d=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)!=1){J[c+360>>2]=d;J[c+364>>2]=6;J[c+368>>2]=-2147483640;e=J[105220];J[d+16>>2]=J[105219]; -J[d+20>>2]=e;e=J[105218];J[d+8>>2]=J[105217];J[d+12>>2]=e;e=J[105216];J[d>>2]=J[105215];J[d+4>>2]=e;J[d+24>>2]=0;J[c+380>>2]=J[c+312>>2];e=J[c+308>>2];J[c+372>>2]=J[c+304>>2];J[c+376>>2]=e;p:{q:{e=J[b+4>>2];r:{if(e>>>0>2]){J[195395]=0;fa(1808,e|0,d|0,6);d=J[195395];J[195395]=0;if((d|0)==1){a=Z()|0;J[b+4>>2]=e;break p}d=J[c+376>>2];J[e+12>>2]=J[c+372>>2];J[e+16>>2]=d;J[e+20>>2]=J[c+380>>2];J[c+372>>2]=0;J[c+376>>2]=0;J[c+380>>2]=0;J[b+4>>2]=e+24;break r}J[195395]=0;$(1971,b|0,c+360|0);d=J[195395]; -J[195395]=0;if((d|0)==1)break q;if(H[c+383|0]>=0)break r;Kb(J[c+372>>2])}if(H[c+371|0]>=0)break h;Kb(J[c+360>>2]);break h}a=Z()|0}Vb(c+360|0);break a}a=Z()|0;if(H[c+315|0]>=0)break a;Kb(J[c+304>>2]);break a}f=J[d+16>>2];J[e+12>>2]=J[d+12>>2];J[e+16>>2]=f;J[e+20>>2]=J[d+20>>2];J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[b+4>>2]=e+24}if(H[d+11|0]>=0)break h;Kb(J[d>>2]);break h}f=J[d+16>>2];J[e+12>>2]=J[d+12>>2];J[e+16>>2]=f;J[e+20>>2]=J[d+20>>2];J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[b+4>>2]=e+24}if(H[d+ -11|0]>=0)break h;Kb(J[d>>2])}f=Ab[J[J[h>>2]+12>>2]](h)|0;J[c+352>>2]=0;J[c+344>>2]=0;J[c+348>>2]=0;J[c+336>>2]=0;J[c+328>>2]=0;J[c+332>>2]=0;d=f&3840;s:{t:{if((d|0)!=512){if((d|0)==256){e=422552;d=6;break t}if(d)break s;e=422528;d=5;break t}e=422580;d=4}J[195395]=0;aa(1814,c+344|0,e|0,d|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f}d=4;e=422580;u:{v:{w:{x:{j=f&240;switch(j-80|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break u; -case 16:break v;case 0:break x;default:break w}}d=6;e=422552;break v}if((j|0)!=64)break u;d=5;e=422528}J[195395]=0;aa(1814,c+344|0,e|0,d|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f}e=f&61440;y:{z:{if(e){d=422600;if((e|0)==8192)break z;if((e|0)!=4096)break y;d=422624;break z}d=422528}J[195395]=0;aa(1814,c+328|0,d|0,5)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f}d=J[a+72>>2];e=J[J[d>>2]+44>>2];J[195395]=0;d=_(e|0,d|0)|0;e=J[195395];J[195395]=0;A:{B:{if((e|0)==1)break B;e=J[J[d>>2]+16>>2];J[195395]= -0;g=+va(e|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break B;J[195395]=0;g=R(g);d=J[195395];J[195395]=0;if((d|0)==1)break B;if(!(R(0-g)<=2.220446049250313E-16)){J[195395]=0;d=J[195395];J[195395]=0;if((d|0)==1)break B;if(!(R(1-g)<=2.220446049250313E-16))break A;a=J[a+72>>2];d=J[J[a>>2]+44>>2];J[195395]=0;a=_(d|0,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break B;d=J[J[a>>2]+12>>2];J[195395]=0;a=_(d|0,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break B;if(a&983040)break A}J[195395]=0;d=aa(3122,c+360| -0,422648,422704)|0;a=J[195395];J[195395]=0;C:{D:{E:{if((a|0)!=1){e=J[b+4>>2];if(e>>>0>2]){if(H[d+11|0]>=0){a=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+8>>2]=J[d+8>>2];break D}a=J[d+4>>2];k=J[d>>2];J[195395]=0;fa(1808,e|0,k|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break D;a=Z()|0;J[b+4>>2]=e;Vb(d);break e}J[195395]=0;$(1971,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break E;if(H[d+23|0]>=0)break C;Kb(J[d+12>>2]);break C}a=Z()|0;break e}a=Z()|0;Vb(d);break e}a=J[d+16>>2];J[e+12>>2]=J[d+12>> -2];J[e+16>>2]=a;J[e+20>>2]=J[d+20>>2];J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[b+4>>2]=e+24}if(H[d+11|0]<0)Kb(J[d>>2]);J[195395]=0;aa(1814,c+344|0,422580,4)|0;a=J[195395];J[195395]=0;if((a|0)==1)break B;J[195395]=0;aa(1814,c+328|0,422600,5)|0;a=J[195395];J[195395]=0;g=1;if((a|0)!=1)break A}a=Z()|0;break e}J[195395]=0;da(1863,c+280|0,+g,-1);a=J[195395];J[195395]=0;F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{if((a|0)!=1){J[195395]=0;a=_(1078,64)|0;d=J[195395];J[195395]=0;if((d|0)==1)break R;J[c+304>>2]= -a;J[c+308>>2]=12;J[c+312>>2]=-2147483632;d=J[105706];J[a+40>>2]=J[105705];J[a+44>>2]=d;d=J[105704];J[a+32>>2]=J[105703];J[a+36>>2]=d;d=J[105702];J[a+24>>2]=J[105701];J[a+28>>2]=d;d=J[105700];J[a+16>>2]=J[105699];J[a+20>>2]=d;d=J[105698];J[a+8>>2]=J[105697];J[a+12>>2]=d;d=J[105696];J[a>>2]=J[105695];J[a+4>>2]=d;J[a+48>>2]=0;J[c+324>>2]=J[c+288>>2];J[c+288>>2]=0;d=J[c+284>>2];J[c+316>>2]=J[c+280>>2];J[c+320>>2]=d;J[c+280>>2]=0;J[c+284>>2]=0;d=J[b+4>>2];S:{if(d>>>0>2]){J[195395]=0;fa(1808,d|0, -a|0,12);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[b+4>>2]=d;break P}a=J[c+320>>2];J[d+12>>2]=J[c+316>>2];J[d+16>>2]=a;J[d+20>>2]=J[c+324>>2];J[c+316>>2]=0;J[c+320>>2]=0;J[c+324>>2]=0;J[b+4>>2]=d+24;break S}J[195395]=0;$(1971,b|0,c+304|0);a=J[195395];J[195395]=0;if((a|0)==1)break Q;if(H[c+327|0]>=0)break S;Kb(J[c+316>>2])}if(H[c+315|0]<0)Kb(J[c+304>>2]);if(H[c+291|0]<0)Kb(J[c+280>>2]);a=J[J[h>>2]+24>>2];J[195395]=0;i=+va(a|0,h|0);a=J[195395];J[195395]=0;if((a|0)==1)break N;J[195395]=0;da(1863, -c+280|0,+i,-1);a=J[195395];J[195395]=0;if((a|0)==1)break N;J[195395]=0;a=_(1078,80)|0;d=J[195395];J[195395]=0;if((d|0)==1)break M;J[c+304>>2]=a;J[c+308>>2]=17;J[c+312>>2]=-2147483628;a=Mb(a,422832,68);J[a+68>>2]=0;J[c+324>>2]=J[c+288>>2];J[c+288>>2]=0;d=J[c+284>>2];J[c+316>>2]=J[c+280>>2];J[c+320>>2]=d;J[c+280>>2]=0;J[c+284>>2]=0;d=J[b+4>>2];T:{if(d>>>0>2]){J[195395]=0;fa(1808,d|0,a|0,17);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[b+4>>2]=d;break K}a=J[c+320>>2];J[d+12>>2]=J[c+316>>2]; -J[d+16>>2]=a;J[d+20>>2]=J[c+324>>2];J[c+316>>2]=0;J[c+320>>2]=0;J[c+324>>2]=0;J[b+4>>2]=d+24;break T}J[195395]=0;$(1971,b|0,c+304|0);a=J[195395];J[195395]=0;if((a|0)==1)break L;if(H[c+327|0]>=0)break T;Kb(J[c+316>>2])}if(H[c+315|0]<0)Kb(J[c+304>>2]);if(H[c+291|0]<0)Kb(J[c+280>>2]);J[195395]=0;d=aa(3123,c+304|0,422904,c+344|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break I;e=J[b+4>>2];if(e>>>0>2]){if(H[d+11|0]>=0){a=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+8>>2]=J[d+8>>2];break G}a=J[d+4>>2]; -k=J[d>>2];J[195395]=0;fa(1808,e|0,k|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break G;a=Z()|0;J[b+4>>2]=e;Vb(d);break e}J[195395]=0;$(1971,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break H;if(H[d+23|0]>=0)break F;Kb(J[d+12>>2]);break F}a=Z()|0;break e}a=Z()|0;break O}a=Z()|0}Vb(c+304|0)}if(H[c+291|0]>=0)break e;Kb(J[c+280>>2]);break e}a=Z()|0;break e}a=Z()|0;break J}a=Z()|0}Vb(c+304|0)}if(H[c+291|0]>=0)break e;Kb(J[c+280>>2]);break e}a=Z()|0;break e}a=Z()|0;Vb(d);break e}a=J[d+16>>2];J[e+12>> -2]=J[d+12>>2];J[e+16>>2]=a;J[e+20>>2]=J[d+20>>2];J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[b+4>>2]=e+24}if(H[d+11|0]<0)Kb(J[d>>2]);J[195395]=0;d=aa(3124,c+280|0,422964,c+328|0)|0;a=J[195395];J[195395]=0;U:{V:{W:{if((a|0)!=1){e=J[b+4>>2];if(e>>>0>2]){if(H[d+11|0]>=0){a=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+8>>2]=J[d+8>>2];break V}a=J[d+4>>2];k=J[d>>2];J[195395]=0;fa(1808,e|0,k|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break V;a=Z()|0;J[b+4>>2]=e;Vb(d);break e}J[195395]=0;$(1971,b|0,d|0); -a=J[195395];J[195395]=0;if((a|0)==1)break W;if(H[d+23|0]>=0)break U;Kb(J[d+12>>2]);break U}a=Z()|0;break e}a=Z()|0;Vb(d);break e}a=J[d+16>>2];J[e+12>>2]=J[d+12>>2];J[e+16>>2]=a;J[e+20>>2]=J[d+20>>2];J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[b+4>>2]=e+24}if(H[d+11|0]<0)Kb(J[d>>2]);J[c+276>>2]=0;J[c+272>>2]=0;a=J[J[h>>2]+32>>2];J[195395]=0;fa(a|0,h|0,c+276|0,c+272|0);a=J[195395];J[195395]=0;X:{Y:{Z:{_:{$:{if((a|0)!=1){if(!(!J[c+276>>2]|!J[c+272>>2])){a=0;J[c+264>>2]=0;J[c+256>>2]=0;J[c+260>>2]=0;if((j| -0)==64){aa:{ba:{ca:{while(1){da:{i=O[J[c+276>>2]+(a<<3)>>3];J[195395]=0;d=c+240|0;da(1863,d|0,+(g*(i-+((a&1?-1:1)|0))),-1);e=J[195395];J[195395]=0;if((e|0)==1)break da;J[195395]=0;$(1811,d|0,32);d=J[195395];J[195395]=0;if((d|0)==1)break ca;J[c+224>>2]=J[c+248>>2];J[c+248>>2]=0;e=J[c+244>>2];d=J[c+240>>2];J[c+216>>2]=d;J[c+220>>2]=e;J[c+240>>2]=0;J[c+244>>2]=0;J[195395]=0;f=d;d=H[c+227|0];e=(d|0)<0;aa(1864,c+256|0,(e?f:c+216|0)|0,(e?J[c+220>>2]:d&255)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ba; -if(H[c+227|0]<0)Kb(J[c+216>>2]);if(H[c+251|0]<0)Kb(J[c+240>>2]);a=a+1|0;if(a>>>0>2])continue;break $}break}a=Z()|0;break _}a=Z()|0;break aa}a=Z()|0;if(H[c+227|0]>=0)break aa;Kb(J[c+216>>2])}if(H[c+251|0]>=0)break _;Kb(J[c+240>>2]);break _}ea:{fa:{ga:{while(1){ha:{i=O[J[c+276>>2]+(a<<3)>>3];J[195395]=0;d=c+240|0;da(1863,d|0,+(g*i),-1);e=J[195395];J[195395]=0;if((e|0)==1)break ha;J[195395]=0;$(1811,d|0,32);d=J[195395];J[195395]=0;if((d|0)==1)break ga;J[c+224>>2]=J[c+248>>2];J[c+248>>2]=0;e= -J[c+244>>2];d=J[c+240>>2];J[c+216>>2]=d;J[c+220>>2]=e;J[c+240>>2]=0;J[c+244>>2]=0;J[195395]=0;f=d;d=H[c+227|0];e=(d|0)<0;aa(1864,c+256|0,(e?f:c+216|0)|0,(e?J[c+220>>2]:d&255)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break fa;if(H[c+227|0]<0)Kb(J[c+216>>2]);if(H[c+251|0]<0)Kb(J[c+240>>2]);a=a+1|0;if(a>>>0>2])continue;break $}break}a=Z()|0;break _}a=Z()|0;break ea}a=Z()|0;if(H[c+227|0]>=0)break ea;Kb(J[c+216>>2])}if(H[c+251|0]>=0)break _;Kb(J[c+240>>2]);break _}ia:switch((f&15)-1|0){case 0:J[195395]= -0;a=c+200|0;da(1863,a|0,+(g*4),-1);d=J[195395];J[195395]=0;ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{if((d|0)!=1){J[195395]=0;$(1811,a|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break ra;J[c+248>>2]=J[c+208>>2];J[c+208>>2]=0;a=J[c+204>>2];J[c+240>>2]=J[c+200>>2];J[c+244>>2]=a;J[c+200>>2]=0;J[c+204>>2]=0;J[195395]=0;a=c+184|0;da(1863,a|0,+(g+g),-1);d=J[195395];J[195395]=0;if((d|0)==1)break qa;J[195395]=0;f=a;a=K[c+195|0];d=a<<24>>24<0;a=aa(1864,c+240|0,(d?J[c+184>>2]:f)|0,(d?J[c+188>>2]:a)|0)|0;d=J[195395]; -J[195395]=0;if((d|0)==1)break pa;J[c+264>>2]=J[a+8>>2];d=J[a+4>>2];J[c+256>>2]=J[a>>2];J[c+260>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;d=aa(3125,c+216|0,423028,c+256|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break oa;J[195395]=0;$(1982,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break na;Vb(d);if(H[c+267|0]<0)Kb(J[c+256>>2]);if(H[c+195|0]<0)Kb(J[c+184>>2]);if(H[c+251|0]<0)Kb(J[c+240>>2]);if(H[c+211|0]>=0)break X;Kb(J[c+200>>2]);break X}a=Z()|0;break e}a=Z()|0;break ja}a=Z()|0;break ka}a= -Z()|0;break la}a=Z()|0;break ma}a=Z()|0;Vb(d)}if(H[c+267|0]>=0)break la;Kb(J[c+256>>2])}if(H[c+195|0]>=0)break ka;Kb(J[c+184>>2])}if(H[c+251|0]>=0)break ja;Kb(J[c+240>>2])}if(H[c+211|0]>=0)break e;Kb(J[c+200>>2]);break e;case 1:J[195395]=0;a=c+200|0;da(1863,a|0,+g,-1);d=J[195395];J[195395]=0;sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{if((d|0)!=1){J[195395]=0;$(1811,a|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break Aa;J[c+248>>2]=J[c+208>>2];J[c+208>>2]=0;a=J[c+204>>2];J[c+240>>2]=J[c+200>>2];J[c+244>>2]= -a;J[c+200>>2]=0;J[c+204>>2]=0;J[195395]=0;a=c+184|0;da(1863,a|0,+g,-1);d=J[195395];J[195395]=0;if((d|0)==1)break za;J[195395]=0;f=a;a=K[c+195|0];d=a<<24>>24<0;a=aa(1864,c+240|0,(d?J[c+184>>2]:f)|0,(d?J[c+188>>2]:a)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ya;J[c+264>>2]=J[a+8>>2];d=J[a+4>>2];J[c+256>>2]=J[a>>2];J[c+260>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;d=aa(3125,c+216|0,423028,c+256|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break xa;J[195395]=0;$(1982,b|0,d|0);a=J[195395];J[195395]= -0;if((a|0)==1)break wa;Vb(d);if(H[c+267|0]<0)Kb(J[c+256>>2]);if(H[c+195|0]<0)Kb(J[c+184>>2]);if(H[c+251|0]<0)Kb(J[c+240>>2]);if(H[c+211|0]>=0)break X;Kb(J[c+200>>2]);break X}a=Z()|0;break e}a=Z()|0;break sa}a=Z()|0;break ta}a=Z()|0;break ua}a=Z()|0;break va}a=Z()|0;Vb(d)}if(H[c+267|0]>=0)break ua;Kb(J[c+256>>2])}if(H[c+195|0]>=0)break ta;Kb(J[c+184>>2])}if(H[c+251|0]>=0)break sa;Kb(J[c+240>>2])}if(H[c+211|0]>=0)break e;Kb(J[c+200>>2]);break e;case 2:J[195395]=0;a=c+136|0;da(1863,a|0,+(g*4),-1);d= -J[195395];J[195395]=0;Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{if((d|0)!=1){J[195395]=0;$(1811,a|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break Va;J[c+160>>2]=J[c+144>>2];J[c+144>>2]=0;a=J[c+140>>2];J[c+152>>2]=J[c+136>>2];J[c+156>>2]=a;J[c+136>>2]=0;J[c+140>>2]=0;J[195395]=0;a=c+120|0;i=g+g;da(1863,a|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break Ua;J[195395]=0;f=a;a=K[c+131|0];d=a<<24>>24<0;a=aa(1864,c+152|0,(d?J[c+120>>2]:f)|0,(d?J[c+124>>2]:a)|0)| -0;d=J[195395];J[195395]=0;if((d|0)==1)break Ta;J[c+176>>2]=J[a+8>>2];d=J[a+4>>2];J[c+168>>2]=J[a>>2];J[c+172>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,c+168|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break Sa;J[c+192>>2]=J[c+176>>2];J[c+176>>2]=0;a=J[c+172>>2];J[c+184>>2]=J[c+168>>2];J[c+188>>2]=a;J[c+168>>2]=0;J[c+172>>2]=0;J[195395]=0;a=c+104|0;da(1863,a|0,+g,-1);d=J[195395];J[195395]=0;if((d|0)==1)break Ra;J[195395]=0;f=a;a=K[c+115|0];d=a<<24>>24<0;a=aa(1864,c+184|0,(d?J[c+104>> -2]:f)|0,(d?J[c+108>>2]:a)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Qa;J[c+208>>2]=J[a+8>>2];d=J[a+4>>2];J[c+200>>2]=J[a>>2];J[c+204>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,c+200|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break Pa;J[c+248>>2]=J[c+208>>2];J[c+208>>2]=0;a=J[c+204>>2];J[c+240>>2]=J[c+200>>2];J[c+244>>2]=a;J[c+200>>2]=0;J[c+204>>2]=0;J[195395]=0;a=c+88|0;da(1863,a|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break Oa;J[195395]=0;f=a;a=K[c+99|0];d=a<<24>>24<0;a= -aa(1864,c+240|0,(d?J[c+88>>2]:f)|0,(d?J[c+92>>2]:a)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Na;J[c+264>>2]=J[a+8>>2];d=J[a+4>>2];J[c+256>>2]=J[a>>2];J[c+260>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;d=aa(3125,c+216|0,423028,c+256|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break Ma;J[195395]=0;$(1982,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break La;Vb(d);if(H[c+267|0]<0)Kb(J[c+256>>2]);if(H[c+99|0]<0)Kb(J[c+88>>2]);if(H[c+251|0]<0)Kb(J[c+240>>2]);if(H[c+211|0]<0)Kb(J[c+200>>2]); -if(H[c+115|0]<0)Kb(J[c+104>>2]);if(H[c+195|0]<0)Kb(J[c+184>>2]);if(H[c+179|0]<0)Kb(J[c+168>>2]);if(H[c+131|0]<0)Kb(J[c+120>>2]);if(H[c+163|0]<0)Kb(J[c+152>>2]);if(H[c+147|0]>=0)break X;Kb(J[c+136>>2]);break X}a=Z()|0;break e}a=Z()|0;break Ba}a=Z()|0;break Ca}a=Z()|0;break Da}a=Z()|0;break Ea}a=Z()|0;break Fa}a=Z()|0;break Ga}a=Z()|0;break Ha}a=Z()|0;break Ia}a=Z()|0;break Ja}a=Z()|0;break Ka}a=Z()|0;Vb(d)}if(H[c+267|0]>=0)break Ja;Kb(J[c+256>>2])}if(H[c+99|0]>=0)break Ia;Kb(J[c+88>>2])}if(H[c+251| -0]>=0)break Ha;Kb(J[c+240>>2])}if(H[c+211|0]>=0)break Ga;Kb(J[c+200>>2])}if(H[c+115|0]>=0)break Fa;Kb(J[c+104>>2])}if(H[c+195|0]>=0)break Ea;Kb(J[c+184>>2])}if(H[c+179|0]>=0)break Da;Kb(J[c+168>>2])}if(H[c+131|0]>=0)break Ca;Kb(J[c+120>>2])}if(H[c+163|0]>=0)break Ba;Kb(J[c+152>>2])}if(H[c+147|0]>=0)break e;Kb(J[c+136>>2]);break e;case 3:break ia;default:break X}J[195395]=0;a=c+72|0;da(1863,a|0,+(g*4),-1);d=J[195395];J[195395]=0;Wa:{Xa:{Ya:{Za:{_a:{$a:{ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{ib:{jb:{kb:{lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{yb:{zb:{Ab:{if((d| -0)!=1){J[195395]=0;$(1811,a|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break Ab;J[c+96>>2]=J[c+80>>2];J[c+80>>2]=0;a=J[c+76>>2];J[c+88>>2]=J[c+72>>2];J[c+92>>2]=a;J[c+72>>2]=0;J[c+76>>2]=0;J[195395]=0;a=c+60|0;i=g+g;da(1863,a|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break zb;J[195395]=0;f=a;a=K[c+71|0];d=a<<24>>24<0;a=aa(1864,c+88|0,(d?J[c+60>>2]:f)|0,(d?J[c+64>>2]:a)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break yb;J[c+112>>2]=J[a+8>>2];d=J[a+4>>2];J[c+104>>2]=J[a>>2];J[c+108>>2]=d;J[a>>2]=0; -J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,c+104|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break xb;J[c+128>>2]=J[c+112>>2];J[c+112>>2]=0;a=J[c+108>>2];J[c+120>>2]=J[c+104>>2];J[c+124>>2]=a;J[c+104>>2]=0;J[c+108>>2]=0;J[195395]=0;a=c+48|0;da(1863,a|0,+g,-1);d=J[195395];J[195395]=0;if((d|0)==1)break wb;J[195395]=0;f=a;a=K[c+59|0];d=a<<24>>24<0;a=aa(1864,c+120|0,(d?J[c+48>>2]:f)|0,(d?J[c+52>>2]:a)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break vb;J[c+144>>2]=J[a+8>>2];d=J[a+4>>2];J[c+136>>2]=J[a>>2]; -J[c+140>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,c+136|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break ub;J[c+160>>2]=J[c+144>>2];J[c+144>>2]=0;a=J[c+140>>2];J[c+152>>2]=J[c+136>>2];J[c+156>>2]=a;J[c+136>>2]=0;J[c+140>>2]=0;J[195395]=0;a=c+36|0;da(1863,a|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break tb;J[195395]=0;f=a;a=K[c+47|0];d=a<<24>>24<0;a=aa(1864,c+152|0,(d?J[c+36>>2]:f)|0,(d?J[c+40>>2]:a)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break sb;J[c+176>>2]=J[a+8>>2];d=J[a+ -4>>2];J[c+168>>2]=J[a>>2];J[c+172>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,c+168|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break rb;J[c+192>>2]=J[c+176>>2];J[c+176>>2]=0;a=J[c+172>>2];J[c+184>>2]=J[c+168>>2];J[c+188>>2]=a;J[c+168>>2]=0;J[c+172>>2]=0;J[195395]=0;a=c+24|0;da(1863,a|0,+g,-1);d=J[195395];J[195395]=0;if((d|0)==1)break qb;J[195395]=0;f=a;a=K[c+35|0];d=a<<24>>24<0;a=aa(1864,c+184|0,(d?J[c+24>>2]:f)|0,(d?J[c+28>>2]:a)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break pb;J[c+ -208>>2]=J[a+8>>2];d=J[a+4>>2];J[c+200>>2]=J[a>>2];J[c+204>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,c+200|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break ob;J[c+248>>2]=J[c+208>>2];J[c+208>>2]=0;a=J[c+204>>2];J[c+240>>2]=J[c+200>>2];J[c+244>>2]=a;J[c+200>>2]=0;J[c+204>>2]=0;J[195395]=0;a=c+12|0;da(1863,a|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break nb;J[195395]=0;f=a;a=K[c+23|0];d=a<<24>>24<0;a=aa(1864,c+240|0,(d?J[c+12>>2]:f)|0,(d?J[c+16>>2]:a)|0)|0;d=J[195395];J[195395]=0; -if((d|0)==1)break mb;J[c+264>>2]=J[a+8>>2];d=J[a+4>>2];J[c+256>>2]=J[a>>2];J[c+260>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;d=aa(3125,c+216|0,423028,c+256|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break lb;J[195395]=0;$(1982,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break kb;Vb(d);if(H[c+267|0]<0)Kb(J[c+256>>2]);if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+251|0]<0)Kb(J[c+240>>2]);if(H[c+211|0]<0)Kb(J[c+200>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);if(H[c+195|0]<0)Kb(J[c+184>>2]);if(H[c+179|0]<0)Kb(J[c+ -168>>2]);if(H[c+47|0]<0)Kb(J[c+36>>2]);if(H[c+163|0]<0)Kb(J[c+152>>2]);if(H[c+147|0]<0)Kb(J[c+136>>2]);if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+131|0]<0)Kb(J[c+120>>2]);if(H[c+115|0]<0)Kb(J[c+104>>2]);if(H[c+71|0]<0)Kb(J[c+60>>2]);if(H[c+99|0]<0)Kb(J[c+88>>2]);if(H[c+83|0]>=0)break X;Kb(J[c+72>>2]);break X}a=Z()|0;break e}a=Z()|0;break Wa}a=Z()|0;break Xa}a=Z()|0;break Ya}a=Z()|0;break Za}a=Z()|0;break _a}a=Z()|0;break $a}a=Z()|0;break ab}a=Z()|0;break bb}a=Z()|0;break cb}a=Z()|0;break db}a=Z()|0;break eb}a= -Z()|0;break fb}a=Z()|0;break gb}a=Z()|0;break hb}a=Z()|0;break ib}a=Z()|0;break jb}a=Z()|0;Vb(d)}if(H[c+267|0]>=0)break ib;Kb(J[c+256>>2])}if(H[c+23|0]>=0)break hb;Kb(J[c+12>>2])}if(H[c+251|0]>=0)break gb;Kb(J[c+240>>2])}if(H[c+211|0]>=0)break fb;Kb(J[c+200>>2])}if(H[c+35|0]>=0)break eb;Kb(J[c+24>>2])}if(H[c+195|0]>=0)break db;Kb(J[c+184>>2])}if(H[c+179|0]>=0)break cb;Kb(J[c+168>>2])}if(H[c+47|0]>=0)break bb;Kb(J[c+36>>2])}if(H[c+163|0]>=0)break ab;Kb(J[c+152>>2])}if(H[c+147|0]>=0)break $a;Kb(J[c+ -136>>2])}if(H[c+59|0]>=0)break _a;Kb(J[c+48>>2])}if(H[c+131|0]>=0)break Za;Kb(J[c+120>>2])}if(H[c+115|0]>=0)break Ya;Kb(J[c+104>>2])}if(H[c+71|0]>=0)break Xa;Kb(J[c+60>>2])}if(H[c+99|0]>=0)break Wa;Kb(J[c+88>>2])}if(H[c+83|0]>=0)break e;Kb(J[c+72>>2]);break e}a=Z()|0;break e}d=K[c+267|0];a=d<<24>>24;a=(a|0)<0;d=(a?J[c+260>>2]:d)-1|0;f=d<<2;Bb:{if(a){J[c+260>>2]=d;a=J[c+256>>2];break Bb}H[c+267|0]=d;a=c+256|0}J[f+a>>2]=0;J[195395]=0;d=aa(3126,c+216|0,423028,c+256|0)|0;a=J[195395];J[195395]=0;Cb:{Db:{if((a| -0)!=1){e=J[b+4>>2];if(e>>>0>2]){if(H[d+11|0]>=0){a=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+8>>2]=J[d+8>>2];break Z}a=J[d+4>>2];h=J[d>>2];J[195395]=0;fa(1808,e|0,h|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break Z;a=Z()|0;J[b+4>>2]=e;break Cb}J[195395]=0;$(1971,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break Db;if(H[d+23|0]>=0)break Y;Kb(J[d+12>>2]);break Y}a=Z()|0;break _}a=Z()|0}Vb(d)}if(H[c+267|0]>=0)break e;Kb(J[c+256>>2]);break e}a=J[d+16>>2];J[e+12>>2]=J[d+12>>2];J[e+16>>2]=a;J[e+ -20>>2]=J[d+20>>2];J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[b+4>>2]=e+24}if(H[d+11|0]<0)Kb(J[d>>2]);if(H[c+267|0]>=0)break X;Kb(J[c+256>>2])}if(H[c+339|0]<0)Kb(J[c+328>>2]);if(H[c+355|0]>=0)break g;Kb(J[c+344>>2])}xb=c+384|0;return}a=Z()|0}if(H[c+339|0]<0)Kb(J[c+328>>2]);if(H[c+355|0]>=0)break a;Kb(J[c+344>>2]);break a}a=Z()|0;J[b+4>>2]=e;break b}a=Z()|0}Vb(d)}ba(a|0);B()}function bG(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;q=xb-16|0;xb=q;a:{b:{if(!b){m=1;if(!J[e>>2]|(!e|!f))break a;break b}j=b;h=K[b+1|0];c:{if(K[b|0]==120){l=b;k=0;if((h&255)==45)break c}g=j+1|0;l=0;d:{if(!(h&255))break d;while(1){k=b;b=g;e:{if(K[k|0]!=45|K[k+2|0]!=45)break e;m=m?m:k;if((h&255)!=120)break e;l=b;break d}g=b+1|0;h=K[b+1|0];if(h)continue;break}}k=m?m:g}g=0;b=0;f:{if(!c|!d|(!l|!J[c>>2]))break f;p=Mc(l,105287);if(!p)break f;g:{h:{h=K[p+5|0];if((h|0)!=45){if((h-58&255)>>>0<=245)if(((h&223)-91&255)>>>0<230)break f;b=(h-65&255)>>>0<26?h+32| -0:h;H[q+8|0]=b;i=K[p+6|0];if((i-48&255)>>>0>=10){h=1;if(((i&-33)-65&255)>>>0>25)break h}m=(i-65&255)>>>0<26?i+32|0:i;H[q+9|0]=m;i=K[p+7|0];if((i-48&255)>>>0>=10){h=2;if(((i&-33)-65&255)>>>0>25)break h}o=(i-65&255)>>>0<26?i+32|0:i;H[q+10|0]=o;i=K[p+8|0];if((i-48&255)>>>0>=10){h=3;if(((i&-33)-65&255)>>>0>25)break h}h=(i-65&255)>>>0<26?i+32|0:i;break g}i=K[p+6|0];h=i-48|0;b=(h&255)>>>0<10;i:{j:{if(!(b|(i-97&255)>>>0<6)){b=0;h=i-65|0;if((h&255)>>>0<6)break j;break f}if(b)break i;h=i-65|0}h=((h&255)>>> -0<26?i+32|0:i)-87|0}i=K[p+7|0];o=i-48|0;b=(o&255)>>>0<10;k:{l:{if(!(b|(i-97&255)>>>0<6)){b=0;o=i-65|0;if((o&255)>>>0<6)break l;break f}if(b)break k;o=i-65|0}o=((o&255)>>>0<26?i+32|0:i)-87|0}i=K[p+8|0];m=i-48|0;b=(m&255)>>>0<10;m:{n:{if(!(b|(i-97&255)>>>0<6)){b=0;m=i-65|0;if((m&255)>>>0<6)break n;break f}if(b)break m;m=i-65|0}m=((m&255)>>>0<26?i+32|0:i)-87|0}i=K[p+9|0];r=i-48|0;b=(r&255)>>>0<10;o:{p:{if(!(b|(i-97&255)>>>0<6)){b=0;if((i-65&255)>>>0>5)break f;b=i+32|0;break p}if(b)break o;b=(i-65&255)>>> -0<26?i+32|0:i}r=b-87|0}i=K[p+10|0];s=i-48|0;b=(s&255)>>>0<10;q:{r:{if(!(b|(i-97&255)>>>0<6)){b=0;if((i-65&255)>>>0>5)break f;b=i+32|0;break r}if(b)break q;b=(i-65&255)>>>0<26?i+32|0:i}s=b-87|0}i=K[p+11|0];t=i-48|0;b=(t&255)>>>0<10;s:{t:{if(!(b|(i-97&255)>>>0<6)){b=0;if((i-65&255)>>>0>5)break f;b=i+32|0;break t}if(b)break s;b=(i-65&255)>>>0<26?i+32|0:i}t=b-87|0}i=K[p+12|0];n=i-48|0;b=(n&255)>>>0<10;u:{v:{if(!(b|(i-97&255)>>>0<6)){b=0;if((i-65&255)>>>0>5)break f;b=i+32|0;break v}if(b)break u;b=(i-65& -255)>>>0<26?i+32|0:i}n=b-87|0}p=K[p+13|0];i=p-48|0;b=(i&255)>>>0<10;w:{x:{if(!(b|(p-97&255)>>>0<6)){b=0;if((p-65&255)>>>0>5)break f;b=p+32|0;break x}if(b)break w;b=(p-65&255)>>>0<26?p+32|0:p}i=b-87|0}b=(h<<4)+o|0;m=(m<<4)+r|0;o=(s<<4)+t|0;h=(n<<4)+i|0;break g}Nb((q+8|0)+h|0,32,4-h|0);o=K[q+10|0];m=K[q+9|0];b=K[q+8|0];h=K[q+11|0]}b=h&255|(b<<24|(m&255)<<16|(o&255)<<8);J[d>>2]=(b&-538976289)==1145457748?b^538976288:b;b=1;J[c>>2]=1}y:{if(!f|!e|(!l|!J[e>>2]))break y;n=Mc(l,105429);if(!n)break y;z:{A:{h= -K[n+5|0];if((h|0)!=45){if((h-58&255)>>>0<=245)if(((h&223)-91&255)>>>0<230)break y;g=(h-97&255)>>>0<26?h-32|0:h;H[q+12|0]=g;h=K[n+6|0];if((h-48&255)>>>0>=10){l=1;if(((h&-33)-65&255)>>>0>25)break A}m=(h-97&255)>>>0<26?h-32|0:h;H[q+13|0]=m;h=K[n+7|0];if((h-48&255)>>>0>=10){l=2;if(((h&-33)-65&255)>>>0>25)break A}h=(h-97&255)>>>0<26?h-32|0:h;H[q+14|0]=h;i=K[n+8|0];if((i-48&255)>>>0>=10){l=3;if(((i&-33)-65&255)>>>0>25)break A}l=(i-97&255)>>>0<26?i-32|0:i;break z}h=K[n+6|0];l=h-48|0;g=(l&255)>>>0<10;B:{C:{if(!(g| -(h-97&255)>>>0<6)){g=0;l=h-65|0;if((l&255)>>>0<6)break C;break y}if(g)break B;l=h-65|0}l=((l&255)>>>0<26?h+32|0:h)-87|0}i=K[n+7|0];h=i-48|0;g=(h&255)>>>0<10;D:{E:{if(!(g|(i-97&255)>>>0<6)){g=0;h=i-65|0;if((h&255)>>>0<6)break E;break y}if(g)break D;h=i-65|0}h=((h&255)>>>0<26?i+32|0:i)-87|0}i=K[n+8|0];o=i-48|0;g=(o&255)>>>0<10;F:{G:{if(!(g|(i-97&255)>>>0<6)){g=0;o=i-65|0;if((o&255)>>>0<6)break G;break y}if(g)break F;o=i-65|0}o=((o&255)>>>0<26?i+32|0:i)-87|0}i=K[n+9|0];m=i-48|0;g=(m&255)>>>0<10;H:{I:{if(!(g| -(i-97&255)>>>0<6)){g=0;if((i-65&255)>>>0>5)break y;g=i+32|0;break I}if(g)break H;g=(i-65&255)>>>0<26?i+32|0:i}m=g-87|0}i=K[n+10|0];r=i-48|0;g=(r&255)>>>0<10;J:{K:{if(!(g|(i-97&255)>>>0<6)){g=0;if((i-65&255)>>>0>5)break y;g=i+32|0;break K}if(g)break J;g=(i-65&255)>>>0<26?i+32|0:i}r=g-87|0}i=K[n+11|0];s=i-48|0;g=(s&255)>>>0<10;L:{M:{if(!(g|(i-97&255)>>>0<6)){g=0;if((i-65&255)>>>0>5)break y;g=i+32|0;break M}if(g)break L;g=(i-65&255)>>>0<26?i+32|0:i}s=g-87|0}i=K[n+12|0];t=i-48|0;g=(t&255)>>>0<10;N:{O:{if(!(g| -(i-97&255)>>>0<6)){g=0;if((i-65&255)>>>0>5)break y;g=i+32|0;break O}if(g)break N;g=(i-65&255)>>>0<26?i+32|0:i}t=g-87|0}i=K[n+13|0];n=i-48|0;g=(n&255)>>>0<10;P:{Q:{if(!(g|(i-97&255)>>>0<6)){g=0;if((i-65&255)>>>0>5)break y;g=i+32|0;break Q}if(g)break P;g=(i-65&255)>>>0<26?i+32|0:i}n=g-87|0}g=(l<<4)+h|0;m=(o<<4)+m|0;h=(r<<4)+s|0;l=(t<<4)+n|0;break z}Nb((q+12|0)+l|0,32,4-l|0);h=K[q+14|0];m=K[q+13|0];g=K[q+12|0];l=K[q+15|0]}g=l&255|(g<<24|(m&255)<<16|(h&255)<<8);J[f>>2]=(g&-538976289)==1145457748?g^538976288: -g;g=1;J[e>>2]=1}m=b^1;if(!f|!e|(!J[e>>2]|g))break a;R:{S:{i=k-j|0;if((i|0)<7)break S;b=te(j,45);if(!b|b>>>0>=k>>>0)break S;l=k-b|0;if((l|0)<5)break S;T:{if(l>>>0<8)break T;h=b;U:{while(1){g=Mc(h,105944);if(!g|g>>>0>=k>>>0)break U;h=g+8|0;g=K[g+8|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1095782472;break R}h=b;V:{while(1){g=Mc(h,106113);if(!g|g>>>0>=k>>>0)break V;h=g+8|0;g=K[g+8|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1346851360;break R}h= -b;W:{while(1){g=Mc(h,106273);if(!g|g>>>0>=k>>>0)break W;h=g+8|0;g=K[g+8|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1213809952;break R}h=b;while(1){g=Mc(h,106686);if(!g|g>>>0>=k>>>0)break T;h=g+8|0;g=K[g+8|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1347571488;break R}g=b;if(l>>>0>6){X:{while(1){h=Mc(g,106755);if(!h|h>>>0>=k>>>0)break X;g=h+7|0;h=K[h+7|0];if((h-48&255)>>>0<10|((h&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1230000200;break R}g= -b}Y:{while(1){h=Mc(g,106821);if(!h|h>>>0>=k>>>0)break Y;g=h+5|0;h=K[h+5|0];if((h-48&255)>>>0<10|((h&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1262961952;break R}g=b;Z:{while(1){h=Mc(g,106896);if(!h|h>>>0>=k>>>0)break Z;g=h+5|0;h=K[h+5|0];if((h-48&255)>>>0<10|((h&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1398362693;break R}g=b;_:{while(1){h=Mc(g,106961);if(!h|h>>>0>=k>>>0)break _;g=h+5|0;h=K[h+5|0];if((h-48&255)>>>0<10|((h&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1398362698;break R}if(!$c(b,k, -107012,5))break S;J[f>>2]=1398362702;break R}$:{aa:switch(H[j|0]-97|0){case 0:h=1;if(fc(j+1|0,107103))break $;J[f>>2]=1245859616;break b;case 2:ba:{g=j+1|0;b=k-g|0;ca:{if(b>>>0>=10){da:{if(Zb(g,107142,10))break da;b=K[j+11|0];if(b?(b|0)!=45:0)break da;J[f>>2]=1514686496;break R}ea:{if(Zb(g,107177,10))break ea;b=K[j+11|0];if(b?(b|0)!=45:0)break ea;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}fa:{if(Zb(g,107205,10))break fa;b=K[j+11|0];if(b?(b|0)!=45:0)break fa;J[f>>2]=1514686496; -break R}ga:{if(Zb(g,107278,10))break ga;b=K[j+11|0];if(b?(b|0)!=45:0)break ga;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}ha:{if(Zb(g,129344,10))break ha;b=K[j+11|0];if(b?(b|0)!=45:0)break ha;J[f>>2]=1514686496;break R}ia:{if(Zb(g,135050,10))break ia;b=K[j+11|0];if(b?(b|0)!=45:0)break ia;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}ja:{if(Zb(g,135090,10))break ja;b=K[j+11|0];if(b?(b|0)!=45:0)break ja;J[f>>2]=1514686496;break R}ka:{if(Zb(g,106364, -10))break ka;b=K[j+11|0];if(b?(b|0)!=45:0)break ka;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}la:{if(Zb(g,135101,10))break la;b=K[j+11|0];if(b?(b|0)!=45:0)break la;J[f>>2]=1514686496;break R}ma:{if(Zb(g,169376,10))break ma;b=K[j+11|0];if(b?(b|0)!=45:0)break ma;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}na:{if(Zb(g,169387,10))break na;b=K[j+11|0];if(b?(b|0)!=45:0)break na;J[f>>2]=1514686496;break R}oa:{if(Zb(g,169398,10))break oa;b=K[j+11| -0];if(b?(b|0)!=45:0)break oa;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}pa:{if(Zb(g,129429,10))break pa;b=K[j+11|0];if(b?(b|0)!=45:0)break pa;J[f>>2]=1514686496;break R}qa:{if(Zb(g,129484,10))break qa;b=K[j+11|0];if(b?(b|0)!=45:0)break qa;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}ra:{if(Zb(g,129584,10))break ra;b=K[j+11|0];if(b?(b|0)!=45:0)break ra;J[f>>2]=1514686496;break R}if(Zb(g,129640,10))break ca;b=K[j+11|0];if(b?(b|0)!=45:0)break ca; -J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(b>>>0<7)break ba}sa:{if(Zb(g,106522,7))break sa;b=K[j+8|0];if(b?(b|0)!=45:0)break sa;J[f>>2]=1514689312;break R}ta:{if(Zb(g,106546,7))break ta;b=K[j+8|0];if(b?(b|0)!=45:0)break ta;J[f>>2]=1514689568;break R}ua:{if(Zb(g,106554,7))break ua;b=K[j+8|0];if(b?(b|0)!=45:0)break ua;J[f>>2]=1514689312;break R}va:{if(Zb(g,106597,7))break va;b=K[j+8|0];if(b?(b|0)!=45:0)break va;J[f>>2]=1514689568;break R}wa:{if(Zb(g,129740,7))break wa; -b=K[j+8|0];if(b?(b|0)!=45:0)break wa;J[f>>2]=1514689312;break R}xa:{if(Zb(g,129794,7))break xa;b=K[j+8|0];if(b?(b|0)!=45:0)break xa;J[f>>2]=1514689568;break R}ya:{if(Zb(g,129848,7))break ya;b=K[j+8|0];if(b?(b|0)!=45:0)break ya;J[f>>2]=1514689312;break R}za:{if(Zb(g,129901,7))break za;b=K[j+8|0];if(b?(b|0)!=45:0)break za;J[f>>2]=1514689568;break R}Aa:{if(Zb(g,129951,7))break Aa;b=K[j+8|0];if(b?(b|0)!=45:0)break Aa;J[f>>2]=1514689312;break R}Ba:{if(Zb(g,130005,7))break Ba;b=K[j+8|0];if(b?(b|0)!=45: -0)break Ba;J[f>>2]=1514689568;break R}Ca:{if(Zb(g,130035,7))break Ca;b=K[j+8|0];if(b?(b|0)!=45:0)break Ca;J[f>>2]=1514689312;break R}Da:{if(Zb(g,130092,7))break Da;b=K[j+8|0];if(b?(b|0)!=45:0)break Da;J[f>>2]=1514689568;break R}Ea:{if(Zb(g,130154,7))break Ea;b=K[j+8|0];if(b?(b|0)!=45:0)break Ea;J[f>>2]=1514689312;break R}Fa:{if(Zb(g,130215,7))break Fa;b=K[j+8|0];if(b?(b|0)!=45:0)break Fa;J[f>>2]=1514689568;break R}Ga:{if(Zb(g,130258,7))break Ga;b=K[j+8|0];if(b?(b|0)!=45:0)break Ga;J[f>>2]=1514689312; -break R}if(Zb(g,130328,7))break ba;b=K[j+8|0];if(b?(b|0)!=45:0)break ba;J[f>>2]=1514689568;break R}Ha:{if(Zb(g,130393,3))break Ha;Ia:{if(i>>>0<3)break Ia;h=j;while(1){b=Mc(h,130420);if(!b|b>>>0>=k>>>0)break Ia;h=b+3|0;b=K[b+3|0];if((b-48&255)>>>0<10|((b&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break Ha;J[f>>2]=1514689568;break R}Ja:{if(Zb(g,130558,3))break Ja;if($c(j, -k,130420,3)){J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break Ja;J[f>>2]=1514689568;break R}Ka:{if(Zb(g,130648,3))break Ka;if($c(j,k,130420,3)){J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break Ka;J[f>>2]=1514689568;break R}La:{if(Zb(g,169409,3))break La;if($c(j,k,130420,3)){J[f>>2]=1514686496;break R}if($c(j, -k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break La;J[f>>2]=1514689568;break R}Ma:{if(Zb(g,169413,3))break Ma;if($c(j,k,130420,3)){J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break Ma;J[f>>2]=1514689568;break R}Na:{if(Zb(g,169417,3))break Na;if($c(j,k,130420,3)){J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>> -2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break Na;J[f>>2]=1514689568;break R}Oa:{if(Zb(g,169421,3))break Oa;if($c(j,k,130420,3)){J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break Oa;J[f>>2]=1514689568;break R}if(Zb(g,169425,3))break $;if($c(j,k,130420,3)){J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j, -k,130479,3))break $;J[f>>2]=1514689568;break R;case 6:Pa:{Qa:{Ra:{g=j+1|0;b=k-g|0;Sa:{if(b>>>0>=10){Ta:{if(Zb(g,169429,10))break Ta;b=K[j+11|0];if(b?(b|0)!=45:0)break Ta;J[f>>2]=1514686496;break R}if(Zb(g,169440,10))break Sa;b=K[j+11|0];if(b?(b|0)!=45:0)break Sa;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(b>>>0<7)break Ra}Ua:{if(Zb(g,169451,7))break Ua;b=K[j+8|0];if(b?(b|0)!=45:0)break Ua;J[f>>2]=1514689312;break R}if(Zb(g,169459,7))break Qa;b=K[j+8|0];if(b?(b|0)!= -45:0)break Qa;J[f>>2]=1514689568;break R}if((b|0)!=6)break Pa}if(Zb(g,169467,6))break Pa;b=K[j+7|0];if(b?(b|0)!=45:0)break Pa;J[f>>2]=1230132256;break R}if(Zb(g,169491,3))break $;Va:{if(i>>>0<3)break Va;g=j;while(1){b=Mc(g,130420);if(!b|b>>>0>=k>>>0)break Va;g=b+3|0;b=K[b+3|0];if((b-48&255)>>>0<10|((b&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break $;J[f>>2]=1514689568; -break R;case 7:Wa:{g=j+1|0;b=k-g|0;Xa:{if(b>>>0>=10){Ya:{if(Zb(g,169495,10))break Ya;b=K[j+11|0];if(b?(b|0)!=45:0)break Ya;J[f>>2]=1514686496;break R}Za:{if(Zb(g,169506,10))break Za;b=K[j+11|0];if(b?(b|0)!=45:0)break Za;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}_a:{if(Zb(g,169517,10))break _a;b=K[j+11|0];if(b?(b|0)!=45:0)break _a;J[f>>2]=1514686496;break R}if(Zb(g,169528,10))break Xa;b=K[j+11|0];if(b?(b|0)!=45:0)break Xa;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+ -4>>2]=1514686496;break b}if(b>>>0<7)break Wa}$a:{if(Zb(g,169539,7))break $a;b=K[j+8|0];if(b?(b|0)!=45:0)break $a;J[f>>2]=1514689312;break R}ab:{if(Zb(g,169547,7))break ab;b=K[j+8|0];if(b?(b|0)!=45:0)break ab;J[f>>2]=1514689568;break R}bb:{if(Zb(g,169555,7))break bb;b=K[j+8|0];if(b?(b|0)!=45:0)break bb;J[f>>2]=1514689312;break R}if(Zb(g,169563,7))break Wa;b=K[j+8|0];if(b?(b|0)!=45:0)break Wa;J[f>>2]=1514689568;break R}cb:{if(Zb(g,169571,3))break cb;db:{if(i>>>0<3)break db;h=j;while(1){b=Mc(h,130420); -if(!b|b>>>0>=k>>>0)break db;h=b+3|0;b=K[b+3|0];if((b-48&255)>>>0<10|((b&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break cb;J[f>>2]=1514689568;break R}if(Zb(g,169575,3))break $;if($c(j,k,130420,3)){J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break $;J[f>>2]=1514689568; -break R;case 8:b=j+1|0;if(!fc(b,169579)){J[f>>2]=1312904736;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1096042528;break b}if(!fc(b,169587)){J[f>>2]=1514689312;break R}if(fc(b,169592))break $;J[f>>2]=1280596512;break R;case 11:b=j+1|0;if(k-b>>>0<7)break $;if(Zb(b,130154,7))break $;b=K[j+8|0];if(b?(b|0)!=45:0)break $;J[f>>2]=1514689312;break R;case 12:eb:{g=j+1|0;b=k-g|0;fb:{if(b>>>0>=10){gb:{if(Zb(g,135090,10))break gb;b=K[j+11|0];if(b?(b|0)!=45:0)break gb;J[f>>2]=1514686496;break R}if(Zb(g,106364,10))break fb; -b=K[j+11|0];if(b?(b|0)!=45:0)break fb;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(b>>>0<7)break eb}hb:{if(Zb(g,129848,7))break hb;b=K[j+8|0];if(b?(b|0)!=45:0)break hb;J[f>>2]=1514689312;break R}if(Zb(g,129901,7))break eb;b=K[j+8|0];if(b?(b|0)!=45:0)break eb;J[f>>2]=1514689568;break R}ib:{if(Zb(g,169409,3))break ib;jb:{if(i>>>0<3)break jb;h=j;while(1){b=Mc(h,130420);if(!b|b>>>0>=k>>>0)break jb;h=b+3|0;b=K[b+3|0];if((b-48&255)>>>0<10|((b&-33)-65&255)>>>0<26)continue; -break}J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break ib;J[f>>2]=1514689568;break R}if(Zb(g,169597,3))break $;if(!$c(j,k,169601,3))break $;J[f>>2]=1297043028;break R;case 13:kb:{g=j+1|0;b=k-g|0;lb:{if(b>>>0>=10){mb:{if(Zb(g,169429,10))break mb;b=K[j+11|0];if(b?(b|0)!=45:0)break mb;J[f>>2]=1514686496;break R}if(Zb(g,169440,10))break lb;b=K[j+11|0];if(b?(b|0)!=45:0)break lb;J[f>>2]=1514689613;h=2;if(M[e>> -2]<2)break R;J[f+4>>2]=1514686496;break b}if(b>>>0<7)break kb}nb:{if(Zb(g,169451,7))break nb;b=K[j+8|0];if(b?(b|0)!=45:0)break nb;J[f>>2]=1514689312;break R}if(Zb(g,169459,7))break kb;b=K[j+8|0];if(b?(b|0)!=45:0)break kb;J[f>>2]=1514689568;break R}ob:{if(Zb(g,169491,3))break ob;pb:{if(i>>>0<3)break pb;h=j;while(1){b=Mc(h,130420);if(!b|b>>>0>=k>>>0)break pb;h=b+3|0;b=K[b+3|0];if((b-48&255)>>>0<10|((b&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613; -h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break ob;J[f>>2]=1514689568;break R}if(!fc(g,169605)){J[f>>2]=1313821216;break R}if(fc(g,169611))break $;J[f>>2]=1314475552;break R;case 17:if(Zb(j+1|0,169617,2)|i>>>0<3)break $;g=j;while(1){b=Mc(g,169620);if(!b|b>>>0>=k>>>0)break $;g=b+3|0;b=K[b+3|0];if((b-48&255)>>>0<10|((b&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1297042464;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1380928800;break b;case 22:qb:{g=j+1|0;b=k-g|0;rb:{if(b>>>0>= -10){sb:{if(Zb(g,169624,10))break sb;b=K[j+11|0];if(b?(b|0)!=45:0)break sb;J[f>>2]=1514686496;break R}if(Zb(g,169635,10))break rb;b=K[j+11|0];if(b?(b|0)!=45:0)break rb;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(b>>>0<7)break qb}tb:{if(Zb(g,169646,7))break tb;b=K[j+8|0];if(b?(b|0)!=45:0)break tb;J[f>>2]=1514689312;break R}if(Zb(g,169654,7))break qb;b=K[j+8|0];if(b?(b|0)!=45:0)break qb;J[f>>2]=1514689568;break R}if(Zb(g,169662,3))break $;ub:{if(i>>>0<3)break ub;g=j;while(1){b= -Mc(g,130420);if(!b|b>>>0>=k>>>0)break ub;g=b+3|0;b=K[b+3|0];if((b-48&255)>>>0<10|((b&-33)-65&255)>>>0<26)continue;break}J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break $;J[f>>2]=1514689568;break R;case 24:b=j+1|0;if(k-b>>>0<7)break $;if(Zb(b,169666,7))break $;b=K[j+8|0];if(b?(b|0)!=45:0)break $;J[f>>2]=1514689312;break R;case 25:break aa;default:break $}vb:{h=j+1|0;g=k-h|0;if(g>>>0<9)break vb;wb:{if(Zb(h, -169674,9))break wb;b=K[j+10|0];if(b?(b|0)!=45:0)break wb;J[f>>2]=1514686496;break R}if(Zb(h,169684,9))break vb;b=K[j+10|0];if(b?(b|0)!=45:0)break vb;J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!fc(h,169694)){J[f>>2]=1514689312;break R}xb:{if(g>>>0<6)break xb;yb:{if(Zb(h,169704,6))break yb;b=K[j+7|0];if(b?(b|0)!=45:0)break yb;J[f>>2]=1514689312;break R}if(Zb(h,169711,6))break xb;b=K[j+7|0];if(b?(b|0)!=45:0)break xb;J[f>>2]=1514689568;break R}if(!fc(h,169718)){J[f>>2]= -1514689312;break R}if(Zb(h,169724,2))break $;if($c(j,k,130420,3)){J[f>>2]=1514686496;break R}if($c(j,k,130452,3)){J[f>>2]=1514689613;h=2;if(M[e>>2]<2)break R;J[f+4>>2]=1514686496;break b}if(!$c(j,k,130479,3))break $;J[f>>2]=1514689568;break R}b=te(j,45);zb:{if(!b|(i|0)<6)break zb;h=b+1|0;g=te(h,45);Ab:{if(g){g=g+(b^-1)|0;break Ab}g=ac(h)}if((g|0)!=3)break zb;j=((K[h|0]&223)-65&255)>>>0<26?h:j}l=203;g=158048;Bb:{Cb:{Db:{Eb:{h=te(j,45);k=(h?h:k)-j|0;switch(k-2|0){case 0:break Db;case 1:break Eb;default:break Cb}}l= -1212;g=159680}h=0;n=Xo(j,k);Fb:{k=J[194115];if(l>>>0>k>>>0&(n|0)==J[(k<<3)+g>>2])break Fb;o=l-1|0;while(1){k=h+o>>>1|0;i=J[(k<<3)+g>>2];Gb:{if(i>>>0>n>>>0){o=k-1|0;break Gb}if(i>>>0>=n>>>0)break Fb;h=k+1|0}if((h|0)<=(o|0))continue;break}break Bb}J[194115]=k;while(1){b=k;if(b){k=b-1|0;if(J[(b<<3)+g>>2]==J[(k<<3)+g>>2])continue}break}if(!J[e>>2]){h=0;break b}i=(b<<3)+g|0;h=0;while(1){j=b+h|0;if(j>>>0>=l>>>0)break b;k=(j<<3)+g|0;j=J[k+4>>2];if(!j|J[k>>2]!=J[i>>2])break b;J[(h<<2)+f>>2]=j;h=h+1|0;if(h>>> -0>2])continue;break}break b}Xo(j,k)}h=0;if(!b)b=ac(j)+j|0;if((b-j|0)!=3)break b;u=f,v=Xo(j,3)&-538976257,J[u>>2]=v}h=1}J[e>>2]=h}if(!(!d|!c|(!m|!J[c>>2]))){b=0;Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{if((a|0)<=1298954604){if((a|0)<=1198877297){k=1651402546;if((a|0)==1113943655)break Kb;if((a|0)!=1147500129)break Ib;k=1684370994;break Kb}if((a|0)==1198877298)break Pb;if((a|0)==1198879349)break Ob;if((a|0)!=1265525857)break Ib;k=1802396722;break Kb}if((a|0)<=1332902240){if((a|0)==1298954605)break Nb; -k=1836674354;if((a|0)==1299803506)break Jb;break Ib}if((a|0)==1332902241)break Mb;if((a|0)==1415671148)break Lb;if((a|0)!=1415933045)break Ib;k=1952803890;break Kb}k=1735029298;break Kb}k=1735750194;break Kb}k=1835822386;break Kb}k=1869773106;break Kb}k=1953328178}J[d>>2]=k|51;b=1;if(M[c>>2]<2)break Hb}J[(b<<2)+d>>2]=k;b=b+1|0;if(b>>>0>=M[c>>2])break Hb}d=(b<<2)+d|0;Qb:{Rb:{Sb:{Tb:{Ub:{if((a|0)<=1315663726){if(!a)break Hb;if((a|0)==1214870113)break Tb;if((a|0)!=1281453935)break Ub;e=1818324768;break Qb}if((a| -0)<=1500080488){if((a|0)==1315663727)break Rb;if((a|0)!=1449224553)break Ub;e=1986095392;break Qb}if((a|0)==1500080489)break Sb;e=1835103336;if((a|0)==1517122664)break Qb}e=a|536870912;break Qb}e=1801547361;break Qb}e=2036932640;break Qb}e=1852534560}J[d>>2]=e;b=b+1|0}J[c>>2]=b}xb=q+16|0}function QJ(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;h=xb+-64|0;xb=h;a:{b:{c:{d:{e:{f:{g:{h:{d=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);switch(d>>>24|0){case 6:break d; -case 4:break e;case 2:break f;case 1:break g;case 0:break h;default:break c}}c=J[b+4>>2];if(!(H[c+128|0]&1))break c;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(d&268435456)break c;J[h>>2]=a;k=1;J[h+4>>2]=b;H[h+56|0]=d>>>30&1;J[h+52>>2]=h;n=J[c+120>>2];a=0;c=0;q=xb-224|0;xb=q;i:{i=J[b+16>>2];j=J[b+8>>2];if(!nc(i,j,106586,0))break i;j:{if(!(K[i+16|0]&64))break j;J[i+144>>2]=J[i+144>>2]|32;d=J[i+68>>2];if(!d)break j;b=J[i+80>>2];if(d>>>0>=4){f=d&-4;while(1){g=b+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a| -1,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|2,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|3,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+4|0;c=c+4|0;if((f|0)!=(c|0))continue;break}}d=d&3;if(!d)break j;while(1){c=b+P(a,20)|0;J[c+4>>2]=J[c+4>>2]|2;a=a+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}d=Cf(q+8|0,1,j,i,169776);J[d+208>>2]=-1;J[d+212>>2]=0;J[d+176>>2]=n;a=J[J[d+88>>2]+68>>2];J[d+184>>2]=8;J[d+36>>2]=a;J[d+8>>2]=d;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;H[d+21|0]=K[d+194|0];b=J[d+76>>2];c=(b|0)==1;H[d+20|0]=c;J[d+12>>2]= -8;J[d+72>>2]=a;J[d+44>>2]=d;H[d+23|0]=0;J[d+16>>2]=n;a=!b&K[d+195|0]!=0;H[d+22|0]=a;e=K[d+193|0];J[d+60>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;H[d+57|0]=1;H[d+56|0]=c?1:e;H[d+58|0]=a&(b|0)!=1;J[d+48>>2]=8;J[d+52>>2]=-1;H[d+59|0]=0;r=J[i+68>>2];if(r){l=J[i+88>>2];s=J[i+80>>2];t=(J[i+40>>2]&-2)!=4;b=0;while(1){k:{l:{p=P(b,20);m=p+s|0;if(!(n&J[m+4>>2]))break l;J[d+4>>2]=b;a=J[J[d+8>>2]+88>>2];c=J[a+68>>2];J[d+36>>2]=c;H[d+23|0]=K[d+22|0]?J[a+64>>2]==(b|0)?K[(p+J[a+80>>2]|0)+15|0]:0:0;a=b;g=c-1|0;if((a|0)>= -(g|0))break l;m:{while(1){n:{c=a+1|0;J[d+4>>2]=c;o:{a=J[d+12>>2];e=J[d+8>>2];f=J[J[e+88>>2]+80>>2]+P(c,20)|0;c=L[f+12>>1];p:{if(a&c&14)break p;q:{if(!(c&8))break q;if(a&16){c=J[e+148>>2];e=J[f>>2];J[195395]=0;a=jf(c,a>>>16|0,e);c=J[195395];J[195395]=0;if((c|0)==1)break n;if(a)break q;break p}a=a&65280;if(!a)break q;if((a|0)!=(c&65280))break p}e=1;a=L[f+16>>1];if(!(K[f+12|0]&16|(a&96)!=32|!K[d+20|0]&(a&543)==513))e=!K[d+21|0]&(a&287)==257;c=J[d+32>>2];if(c){a=K[c|0]|K[c+1|0]<<8;a=(a<<8|a>>>8)&65535}else a= -0;if(!(J[d+16>>2]&J[f+4>>2]))break o;o=K[d+23|0];if((o|0)!=K[f+15|0]?o:0)break o;o=J[d+24>>2];if(o){c=J[d+28>>2];J[195395]=0;a=aa(o|0,f|0,a|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break n;if(!a)break o;c=J[d+32>>2];break m}if(e)break m}a=J[d+4>>2];if((g|0)<=(a|0))break l;continue}a=J[d+4>>2];if(!((g|0)<=(a|0)|e))continue;break l}break}break a}if(c)J[d+32>>2]=c+2;o=J[d+4>>2];a=P(o,20);c=J[a+s>>2];e=J[m>>2];f=J[h+52>>2];J[195395]=0;c=Au(f,e,c);e=J[195395];J[195395]=0;r:{if((e|0)==1)break r;if(c){s:{if(!t){g= -c<<16;f=g>>31;c=Kpa(J[j+72>>2],J[j+76>>2],g>>16,f);e=zb;c=c+32768|0;c=((c>>>0<32768?e+1|0:e)&65535)<<16|c>>>16;if(K[h+56|0]){J[(a+l|0)+12>>2]=c;J[i+144>>2]=J[i+144>>2]|8;break s}e=l+p|0;m=e;f=J[e>>2];e=c>>1;J[m>>2]=f+e;a=a+l|0;c=c-e|0;J[a>>2]=c+J[a>>2];J[a+8>>2]=c+J[a+8>>2];break s}g=c<<16;e=g>>31;c=Kpa(J[j+80>>2],J[j+84>>2],g>>16,e);g=zb;c=c+32768|0;c=((c>>>0<32768?g+1|0:g)&65535)<<16|c>>>16;if(K[h+56|0]){J[(a+l|0)+8>>2]=c;J[i+144>>2]=J[i+144>>2]|8;break s}e=l+p|0;m=e;f=J[e+4>>2];e=c>>1;J[m+4>>2]= -f+e;a=a+l|0;c=c-e|0;J[a+4>>2]=c+J[a+4>>2];J[a+12>>2]=c+J[a+12>>2]}J[195395]=0;Ac(i,3,b,o+1|0,1,0);a=J[195395];J[195395]=0;if((a|0)==1)break r}b=J[d+4>>2];break k}break a}b=b+1|0}if(r>>>0>b>>>0)continue;break}}J[195395]=0;ha(594,i|0,j|0,106605,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(J[d+156>>2]);a=J[d+128>>2];if(!a)break i;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break i;break b}xb=q+224|0;break c}if(!(d&64|I[J[b+4>>2]+128>>1]&1))break c;J[h>>2]=b;J[h+4>>2]=a;c=K[a+28| -0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);H[h+48|0]=d>>>6&1;J[h+44>>2]=0;a=a+12|0;J[h+8>>2]=a+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24));d=J[J[b+8>>2]+24>>2];J[h+56>>2]=J[b+16>>2];J[h+52>>2]=a;a=J[d+32>>2];if((a|0)==-1)a=Qe(d);J[h+60>>2]=a;n=h+52|0;i=b;b=J[b+76>>2];a=0;t:{if(!b)break t;a=0;if(M[b+4>>2]<2)break t;a=J[b+8>>2]}e=J[n+4>>2];J[e+64>>2]=0;u:{if(!K[e+60|0])break u;while(1){f=J[e+68>>2];c=J[e+64>>2];d=0;v:{w:{x:{y:{z:{A:{B:{if(a){if(c>>>0>>0){d=J[(J[e+80>>2]+P(c,20)|0)+8>>2];while(1){b= -a;a=a-12|0;if(d>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(d>>>0>M[a+8>>2])continue;break}}if(!(J[i+80>>2]&J[a>>2]))break B;d=a}a=0;if(c>>>0>=f>>>0)break z;e=J[J[e+80>>2]+P(c,20)>>2];if((e|0)!=65535)break A;a=2;break z}if((c|0)==(f|0))break u;f=e- -64|0;if(!K[e+62|0]){k=0;break w}C:{if(J[e+84>>2]!=J[e+80>>2])break C;k=0;if(J[e+72>>2]!=(c|0))break C;b=c;break x}k=0;break y}b=J[n>>2];c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);b=bf((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+b|0,e,J[n+ -8>>2]);a=1;if(!b)break z;a=K[b|0]|K[b+1|0]<<8;a=(a<<8|a>>>8)&65535}e=J[n+4>>2];b=J[n>>2];f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);j=a>>>0>>0;if(j)m=a;else m=1;r=P(g,k)<<1;c=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);g=b+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;l=r+g|0;c=(m<<1)+l|0;c=K[c|0]|K[c+1|0]<<8;m=P((c<<8|c>>>8)&65535,6);c=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);b=b+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;c=m+b| -0;p=K[c|0]|K[c+1|0]<<8;D:{E:{if((K[c+4|0]|K[c+5|0]<<8)!=65535)break E;F:{if(!k)break F;k=K[c+2|0]|K[c+3|0]<<8;if(!(k&64?p:1))break F;a=g+((j?a:1)<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=b+P((a<<8|a>>>8)&65535,6)|0;if((K[a+4|0]|K[a+5|0]<<8)!=65535|(p|0)!=(K[a|0]|K[a+1|0]<<8)|(k^(K[a+2|0]|K[a+3|0]<<8))&64)break E}a=l+(!f<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=b+P((a<<8|a>>>8)&65535,6)|0;if((K[a+4|0]|K[a+5|0]<<8)==65535)break D}a=J[e+64>>2];b=K[e+62|0]?J[e+72>>2]:a;if(!b|a>>>0>=M[e+68>>2])break D;Ac(e,3,b-1|0,a+1|0,1,1)}a= -K[c+2|0]|K[c+3|0]<<8;a=a<<8|a>>>8;b=a<<16>>16;l=J[n+4>>2];if(a&8192)J[h+44>>2]=0;G:{if((b|0)>=0)break G;a=J[h+44>>2];if(a>>>0<=7){b=J[l+64>>2];J[h+44>>2]=a+1;J[((a<<2)+h|0)+12>>2]=b;break G}J[h+44>>2]=0}b=K[c+4|0]|K[c+5|0]<<8;H:{if((b|0)==65535)break H;a=J[h+44>>2];if(!a)break H;I:{J:{if((a|0)<0)break J;m=a<<1;a=J[h+4>>2];a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);e=a>>>0<=1?1:a;a=Kpa(m,0,e,0);if(zb)break J;k=J[h+8>>2]+((b<<8|b>>>8)&65534)|0;b=J[h>> -2];if(k-J[b+24>>2]>>>0>M[b+32>>2]|a>>>0>J[b+28>>2]-k>>>0)break J;a=J[b+36>>2]-a|0;J[b+36>>2]=a;if((a|0)>0)break I}J[h+44>>2]=0;break H}b=J[h+44>>2];if(!b)break H;q=J[J[J[h>>2]+4>>2]+120>>2];s=e<<1;while(1){a=b-1|0;J[h+44>>2]=a;a=J[((a<<2)+h|0)+12>>2];if(a>>>0>2]){b=K[k|0]|K[k+1|0]<<8;r=(b<<8|b>>>8)<<16>>16;b=r&-2;e=P(a,20);a=e+J[l+88>>2]|0;f=K[h+48|0];K:{if((J[l+40>>2]&-2)==4){if(f){if((b|0)==-32768){I[a+16>>1]=0;H[a+18|0]=0;J[a+12>>2]=0;break K}if(!K[a+18|0])break K;e=J[a+12>>2];f=J[J[h>> -2]+8>>2];b=Kpa(J[f+80>>2],J[f+84>>2],b,b>>31);j=zb;b=b+32768|0;J[a+12>>2]=(((b>>>0<32768?j+1|0:j)&65535)<<16|b>>>16)+e;J[l+144>>2]=J[l+144>>2]|8;break K}if(!(q&J[(e+J[l+80>>2]|0)+4>>2]))break K;e=J[J[h>>2]+8>>2];b=Kpa(J[e+72>>2],J[e+76>>2],b,b>>31);f=zb;b=b+32768|0;b=((b>>>0<32768?f+1|0:f)&65535)<<16|b>>>16;J[a>>2]=b+J[a>>2];J[a+8>>2]=b+J[a+8>>2];break K}if(f){if((b|0)==-32768){I[a+16>>1]=0;H[a+18|0]=0;J[a+8>>2]=0;break K}if(!K[a+18|0])break K;f=J[a+8>>2];e=J[J[h>>2]+8>>2];b=Kpa(J[e+72>>2],J[e+76>> -2],b,b>>31);e=zb;b=b+32768|0;J[a+8>>2]=(((b>>>0<32768?e+1|0:e)&65535)<<16|b>>>16)+f;J[l+144>>2]=J[l+144>>2]|8;break K}if(!(q&J[(e+J[l+80>>2]|0)+4>>2]))break K;e=J[J[h>>2]+8>>2];b=Kpa(J[e+80>>2],J[e+84>>2],b,b>>31);g=zb;b=b+32768|0;b=((b>>>0<32768?g+1|0:g)&65535)<<16|b>>>16;J[a+4>>2]=b+J[a+4>>2];J[a+12>>2]=b+J[a+12>>2]}if(r&1)break H}k=k+s|0;b=J[h+44>>2];if(b)continue;break}}e=J[n+4>>2];b=J[e+64>>2];if((b|0)==J[e+68>>2]|!K[e+60|0])break u;k=p<<8|p>>>8;L:{if(!(K[c+2|0]&64))break L;a=J[e+152>>2];J[e+ -152>>2]=a-1;if((a|0)<=0)break L;a=d;break v}f=e- -64|0;if(!K[e+62|0]){c=b;a=d;break w}if(!(J[e+84>>2]!=J[e+80>>2]|J[e+72>>2]!=(b|0))){c=b;a=d;break x}a=d}if(!ec(e,1,1))break v;d=J[e+80>>2]+P(J[e+64>>2],20)|0;c=J[d+4>>2];b=J[e+84>>2]+P(J[e+72>>2],20)|0;J[b>>2]=J[d>>2];J[b+4>>2]=c;J[b+16>>2]=J[d+16>>2];c=J[d+12>>2];J[b+8>>2]=J[d+8>>2];J[b+12>>2]=c;c=J[e+64>>2];b=J[e+72>>2]}J[e+72>>2]=b+1}J[f>>2]=c+1}k=k&65535;e=J[n+4>>2];if(K[e+60|0])continue;break}}k=1;break c}c=J[b+4>>2];if(!(H[c+128|0]&1))break c; -d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(d&268435456)break c;J[h>>2]=a;k=1;J[h+4>>2]=b;H[h+56|0]=d>>>30&1;J[h+52>>2]=h;p=J[c+120>>2];a=0;c=0;s=xb-224|0;xb=s;M:{i=J[b+16>>2];l=J[b+8>>2];if(!nc(i,l,106586,0))break M;N:{if(!(K[i+16|0]&64))break N;J[i+144>>2]=J[i+144>>2]|32;d=J[i+68>>2];if(!d)break N;b=J[i+80>>2];if(d>>>0>=4){f=d&-4;while(1){g=b+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|1,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|2,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|3,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+4|0; -c=c+4|0;if((f|0)!=(c|0))continue;break}}d=d&3;if(!d)break N;while(1){c=b+P(a,20)|0;J[c+4>>2]=J[c+4>>2]|2;a=a+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}d=Cf(s+8|0,1,l,i,169776);J[d+208>>2]=-1;J[d+212>>2]=0;J[d+176>>2]=p;a=J[J[d+88>>2]+68>>2];J[d+184>>2]=8;J[d+36>>2]=a;J[d+8>>2]=d;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;H[d+21|0]=K[d+194|0];b=J[d+76>>2];c=(b|0)==1;H[d+20|0]=c;J[d+12>>2]=8;J[d+72>>2]=a;J[d+44>>2]=d;H[d+23|0]=0;J[d+16>>2]=p;a=!b&K[d+195|0]!=0;H[d+22|0]=a;e=K[d+193|0];J[d+60>>2]=0;J[d+ -64>>2]=0;J[d+68>>2]=0;H[d+57|0]=1;H[d+56|0]=c?1:e;H[d+58|0]=a&(b|0)!=1;J[d+48>>2]=8;J[d+52>>2]=-1;H[d+59|0]=0;t=J[i+68>>2];if(t){n=J[i+88>>2];r=J[i+80>>2];m=(J[i+40>>2]&-2)!=4;b=0;while(1){O:{P:{q=P(b,20);j=q+r|0;if(!(p&J[j+4>>2]))break P;J[d+4>>2]=b;a=J[J[d+8>>2]+88>>2];c=J[a+68>>2];J[d+36>>2]=c;H[d+23|0]=K[d+22|0]?J[a+64>>2]==(b|0)?K[(q+J[a+80>>2]|0)+15|0]:0:0;a=b;g=c-1|0;if((a|0)>=(g|0))break P;Q:{while(1){R:{c=a+1|0;J[d+4>>2]=c;S:{a=J[d+12>>2];e=J[d+8>>2];f=J[J[e+88>>2]+80>>2]+P(c,20)|0;c=L[f+ -12>>1];T:{if(a&c&14)break T;U:{if(!(c&8))break U;if(a&16){c=J[e+148>>2];e=J[f>>2];J[195395]=0;a=jf(c,a>>>16|0,e);c=J[195395];J[195395]=0;if((c|0)==1)break R;if(a)break U;break T}a=a&65280;if(!a)break U;if((a|0)!=(c&65280))break T}e=1;a=L[f+16>>1];if(!(K[f+12|0]&16|(a&96)!=32|!K[d+20|0]&(a&543)==513))e=!K[d+21|0]&(a&287)==257;c=J[d+32>>2];if(c){a=K[c|0]|K[c+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;if(!(J[d+16>>2]&J[f+4>>2]))break S;o=K[d+23|0];if((o|0)!=K[f+15|0]?o:0)break S;o=J[d+24>>2];if(o){c=J[d+ -28>>2];J[195395]=0;a=aa(o|0,f|0,a|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break R;if(!a)break S;c=J[d+32>>2];break Q}if(e)break Q}a=J[d+4>>2];if((g|0)<=(a|0))break P;continue}a=J[d+4>>2];if(!((g|0)<=(a|0)|e))continue;break P}break}break a}if(c)J[d+32>>2]=c+2;o=J[d+4>>2];c=P(o,20);a=J[c+r>>2];e=J[j>>2];f=J[h+52>>2];g=J[f+4>>2];f=J[f>>2];J[195395]=0;a=zu(f,e,a,g);e=J[195395];J[195395]=0;V:{if((e|0)==1)break V;if(a){W:{if(!m){e=a<<16;g=e>>31;a=Kpa(J[l+72>>2],J[l+76>>2],e>>16,g);j=zb;a=a+32768|0; -a=((a>>>0<32768?j+1|0:j)&65535)<<16|a>>>16;if(K[h+56|0]){J[(c+n|0)+12>>2]=a;J[i+144>>2]=J[i+144>>2]|8;break W}e=n+q|0;f=e;g=J[e>>2];e=a>>1;J[f>>2]=g+e;c=c+n|0;a=a-e|0;J[c>>2]=a+J[c>>2];J[c+8>>2]=a+J[c+8>>2];break W}e=a<<16;j=e>>31;a=Kpa(J[l+80>>2],J[l+84>>2],e>>16,j);f=zb;a=a+32768|0;a=((a>>>0<32768?f+1|0:f)&65535)<<16|a>>>16;if(K[h+56|0]){J[(c+n|0)+8>>2]=a;J[i+144>>2]=J[i+144>>2]|8;break W}e=n+q|0;f=e;g=J[e+4>>2];e=a>>1;J[f+4>>2]=g+e;c=c+n|0;a=a-e|0;J[c+4>>2]=a+J[c+4>>2];J[c+12>>2]=a+J[c+12>>2]}J[195395]= -0;Ac(i,3,b,o+1|0,1,0);a=J[195395];J[195395]=0;if((a|0)==1)break V}b=J[d+4>>2];break O}break a}b=b+1|0}if(t>>>0>b>>>0)continue;break}}J[195395]=0;ha(594,i|0,l|0,106605,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(J[d+156>>2]);a=J[d+128>>2];if(!a)break M;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break M;break b}xb=s+224|0;break c}J[h>>2]=b;d=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);J[h+16>>2]=0;H[h+12|0]=0;J[h+4>>2]=d<<24>>>30;a=a+12|0;J[h+8>>2]=a+(d>>>8&65280|d>>> -24|(d&65280)<<8);d=J[J[b+8>>2]+24>>2];J[h+56>>2]=J[b+16>>2];J[h+52>>2]=a;a=J[d+32>>2];if((a|0)==-1)a=Qe(d);J[h+60>>2]=a;n=h+52|0;i=b;b=J[b+76>>2];a=0;X:{if(!b)break X;a=0;if(M[b+4>>2]<2)break X;a=J[b+8>>2]}e=J[n+4>>2];J[e+64>>2]=0;Y:{if(!K[e+60|0])break Y;while(1){f=J[e+68>>2];c=J[e+64>>2];d=0;Z:{_:{$:{aa:{ba:{ca:{da:{if(a){if(c>>>0>>0){d=J[(J[e+80>>2]+P(c,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(d>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(d>>>0>M[a+8>>2])continue;break}}if(!(J[i+80>> -2]&J[a>>2]))break da;d=a}a=0;if(c>>>0>=f>>>0)break ba;e=J[J[e+80>>2]+P(c,20)>>2];if((e|0)!=65535)break ca;a=2;break ba}if((c|0)==(f|0))break Y;f=e- -64|0;if(!K[e+62|0]){k=0;break _}ea:{if(J[e+84>>2]!=J[e+80>>2])break ea;k=0;if(J[e+72>>2]!=(c|0))break ea;b=c;break $}k=0;break aa}b=J[n>>2];c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);b=bf((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+b|0,e,J[n+8>>2]);a=1;if(!b)break ba;a=K[b|0]|K[b+1|0]<<8;a=(a<<8|a>>>8)&65535}e=J[n+4>>2];b=J[n>>2];f=K[b|0]|K[b+1| -0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);j=a>>>0>>0;if(j)m=a;else m=1;r=P(g,k)<<1;c=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);g=b+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;p=r+g|0;c=(m<<1)+p|0;c=K[c|0]|K[c+1|0]<<8;m=P((c<<8|c>>>8)&65535,6);c=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);b=b+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;l=m+b|0;q=K[l|0]|K[l+1|0]<<8;fa:{ga:{if((K[l+4|0]|K[l+5|0]<<8)!=65535)break ga;ha:{if(!k)break ha;c=K[l+2|0]| -K[l+3|0]<<8;if(!(c&64?q:1))break ha;a=g+((j?a:1)<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=b+P((a<<8|a>>>8)&65535,6)|0;if((K[a+4|0]|K[a+5|0]<<8)!=65535|(q|0)!=(K[a|0]|K[a+1|0]<<8)|(c^(K[a+2|0]|K[a+3|0]<<8))&64)break ga}a=p+(!f<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=b+P((a<<8|a>>>8)&65535,6)|0;if((K[a+4|0]|K[a+5|0]<<8)==65535)break fa}a=J[e+64>>2];b=K[e+62|0]?J[e+72>>2]:a;if(!b|a>>>0>=M[e+68>>2])break fa;Ac(e,3,b-1|0,a+1|0,1,1)}k=xb-16|0;xb=k;p=J[n+4>>2];ia:{ja:{if(!K[h+12|0])break ja;a=K[l+4|0]|K[l+5|0]<<8;if((a|0)==65535)break ja; -s=J[p+64>>2];if(s>>>0>=M[p+68>>2])break ja;a=(a<<8|a>>>8)&65535;r=J[p+88>>2];ka:{la:switch(J[h+4>>2]){case 0:a=J[h+8>>2]+(a<<2)|0;b=J[h>>2];if(a-J[b+24>>2]>>>0>M[b+32>>2]|J[b+28>>2]-a>>>0<4)break ia;c=b;b=J[b+36>>2]-4|0;J[c+36>>2]=b;if((b|0)<=0)break ia;b=K[a+2|0]|K[a+3|0]<<8;a=K[a|0]|K[a+1|0]<<8;J[k+12>>2]=0;J[k+8>>2]=0;J[k+4>>2]=0;J[k>>2]=0;c=J[h>>2];if(!xu(J[c+8>>2],J[J[J[c+16>>2]+80>>2]+P(J[h+16>>2],20)>>2],(a<<8|a>>>8)&65535,k+12|0,k+8|0))break ia;c=J[h>>2];a=J[c+16>>2];if(!xu(J[c+8>>2],J[J[a+ -80>>2]+P(J[a+64>>2],20)>>2],(b<<8|(b&65280)>>>8)&65535,k+4|0,k))break ia;a=r+P(s,20)|0;J[a+8>>2]=J[k+12>>2]-J[k+4>>2];J[a+12>>2]=J[k+8>>2]-J[k>>2];break ka;case 1:a=J[h+8>>2]+(a<<2)|0;b=J[h>>2];if(a-J[b+24>>2]>>>0>M[b+32>>2]|J[b+28>>2]-a>>>0<4)break ia;c=b;b=J[b+36>>2]-4|0;J[c+36>>2]=b;if((b|0)<=0)break ia;b=K[a+2|0]|K[a+3|0]<<8;c=J[h>>2];a=K[a|0]|K[a+1|0]<<8;j=wu(J[c+68>>2],J[J[J[c+16>>2]+80>>2]+P(J[h+16>>2],20)>>2],(a<<8|a>>>8)&65535,J[c+60>>2]);a=J[h>>2];c=J[a+16>>2];t=wu(J[a+68>>2],J[J[c+80>> -2]+P(J[c+64>>2],20)>>2],(b<<8|b>>>8)&65535,J[a+60>>2]);b=r+P(s,20)|0;e=K[j|0]|K[j+1|0]<<8;e=(e<<8|e>>>8)<<16;f=e>>31;m=J[J[h>>2]+8>>2];c=m;a=J[c+72>>2];c=J[c+76>>2];e=Kpa(a,c,e>>16,f);g=zb;e=e+32768|0;o=((e>>>0<32768?g+1|0:g)&65535)<<16|e>>>16;e=K[t|0]|K[t+1|0]<<8;f=(e<<8|e>>>8)<<16;g=f>>31;a=Kpa(a,c,f>>16,g);g=zb;a=a+32768|0;J[b+8>>2]=o-(((a>>>0<32768?g+1|0:g)&65535)<<16|a>>>16);e=K[j+2|0]|K[j+3|0]<<8;f=(e<<8|e>>>8)<<16;g=f>>31;a=J[m+80>>2];c=J[m+84>>2];e=Kpa(a,c,f>>16,g);j=zb;e=e+32768|0;f=((e>>> -0<32768?j+1|0:j)&65535)<<16|e>>>16;e=K[t+2|0]|K[t+3|0]<<8;g=(e<<8|e>>>8)<<16;j=g>>31;a=Kpa(a,c,g>>16,j);e=zb;a=a+32768|0;J[b+12>>2]=f-(((a>>>0<32768?e+1|0:e)&65535)<<16|a>>>16);break ka;case 2:break la;default:break ka}f=J[h+8>>2]+(a<<3)|0;a=J[h>>2];if(f-J[a+24>>2]>>>0>M[a+32>>2]|J[a+28>>2]-f>>>0<8)break ia;b=a;a=J[a+36>>2]-8|0;J[b+36>>2]=a;if((a|0)<=0)break ia;j=K[f+2|0]|K[f+3|0]<<8;t=K[f+6|0]|K[f+7|0]<<8;b=r+P(s,20)|0;e=K[f|0]|K[f+1|0]<<8;g=(e<<8|e>>>8)<<16;e=g>>31;m=J[J[h>>2]+8>>2];c=m;a=J[c+72>> -2];c=J[c+76>>2];e=Kpa(a,c,g>>16,e);g=zb;e=e+32768|0;o=((e>>>0<32768?g+1|0:g)&65535)<<16|e>>>16;e=K[f+4|0]|K[f+5|0]<<8;e=(e<<8|e>>>8)<<16;g=e>>31;a=Kpa(a,c,e>>16,g);f=zb;a=a+32768|0;J[b+8>>2]=o-(((a>>>0<32768?f+1|0:f)&65535)<<16|a>>>16);e=(j<<8|j>>>8)<<16;f=e>>31;a=J[m+80>>2];c=J[m+84>>2];e=Kpa(a,c,e>>16,f);j=zb;e=e+32768|0;m=((e>>>0<32768?j+1|0:j)&65535)<<16|e>>>16;f=(t<<8|t>>>8)<<16;j=f>>31;a=Kpa(a,c,f>>16,j);g=zb;a=a+32768|0;J[b+12>>2]=m-(((a>>>0<32768?g+1|0:g)&65535)<<16|a>>>16)}a=r+P(s,20)|0; -H[a+18|0]=1;I[a+16>>1]=J[h+16>>2]-J[p+64>>2];J[p+144>>2]=J[p+144>>2]|8}if(!(K[l+2|0]&128))break ia;H[h+12|0]=1;J[h+16>>2]=J[p+64>>2]}xb=k+16|0;e=J[n+4>>2];b=J[e+64>>2];if((b|0)==J[e+68>>2]|!K[e+60|0])break Y;k=q<<8|q>>>8;ma:{if(!(K[l+2|0]&64))break ma;a=J[e+152>>2];J[e+152>>2]=a-1;if((a|0)<=0)break ma;a=d;break Z}f=e- -64|0;if(!K[e+62|0]){c=b;a=d;break _}if(!(J[e+84>>2]!=J[e+80>>2]|J[e+72>>2]!=(b|0))){c=b;a=d;break $}a=d}if(!ec(e,1,1))break Z;d=J[e+80>>2]+P(J[e+64>>2],20)|0;c=J[d+4>>2];b=J[e+84>> -2]+P(J[e+72>>2],20)|0;J[b>>2]=J[d>>2];J[b+4>>2]=c;J[b+16>>2]=J[d+16>>2];c=J[d+12>>2];J[b+8>>2]=J[d+8>>2];J[b+12>>2]=c;c=J[e+64>>2];b=J[e+72>>2]}J[e+72>>2]=b+1}J[f>>2]=c+1}k=k&65535;e=J[n+4>>2];if(K[e+60|0])continue;break}}k=1;break c}c=J[b+4>>2];if(!(H[c+128|0]&1))break c;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(d&268435456)break c;J[h>>2]=a;k=1;J[h+4>>2]=b;H[h+56|0]=d>>>30&1;J[h+52>>2]=h;n=J[c+120>>2];a=0;c=0;q=xb-224|0;xb=q;na:{i=J[b+16>>2];j=J[b+8>>2];if(!nc(i,j,106586,0))break na;oa:{if(!(K[i+ -16|0]&64))break oa;J[i+144>>2]=J[i+144>>2]|32;d=J[i+68>>2];if(!d)break oa;b=J[i+80>>2];if(d>>>0>=4){f=d&-4;while(1){g=b+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|1,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|2,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|3,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+4|0;c=c+4|0;if((f|0)!=(c|0))continue;break}}d=d&3;if(!d)break oa;while(1){c=b+P(a,20)|0;J[c+4>>2]=J[c+4>>2]|2;a=a+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}d=Cf(q+8|0,1,j,i,169776);J[d+208>>2]=-1;J[d+212>>2]=0;J[d+176>>2]=n;a=J[J[d+ -88>>2]+68>>2];J[d+184>>2]=8;J[d+36>>2]=a;J[d+8>>2]=d;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;H[d+21|0]=K[d+194|0];b=J[d+76>>2];c=(b|0)==1;H[d+20|0]=c;J[d+12>>2]=8;J[d+72>>2]=a;J[d+44>>2]=d;H[d+23|0]=0;J[d+16>>2]=n;a=!b&K[d+195|0]!=0;H[d+22|0]=a;e=K[d+193|0];J[d+60>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;H[d+57|0]=1;H[d+56|0]=c?1:e;H[d+58|0]=a&(b|0)!=1;J[d+48>>2]=8;J[d+52>>2]=-1;H[d+59|0]=0;r=J[i+68>>2];if(r){l=J[i+88>>2];s=J[i+80>>2];t=(J[i+40>>2]&-2)!=4;b=0;while(1){pa:{qa:{p=P(b,20);m=p+s|0;if(!(n&J[m+4>> -2]))break qa;J[d+4>>2]=b;a=J[J[d+8>>2]+88>>2];c=J[a+68>>2];J[d+36>>2]=c;H[d+23|0]=K[d+22|0]?J[a+64>>2]==(b|0)?K[(p+J[a+80>>2]|0)+15|0]:0:0;a=b;g=c-1|0;if((a|0)>=(g|0))break qa;ra:{while(1){sa:{c=a+1|0;J[d+4>>2]=c;ta:{a=J[d+12>>2];e=J[d+8>>2];f=J[J[e+88>>2]+80>>2]+P(c,20)|0;c=L[f+12>>1];ua:{if(a&c&14)break ua;va:{if(!(c&8))break va;if(a&16){c=J[e+148>>2];e=J[f>>2];J[195395]=0;a=jf(c,a>>>16|0,e);c=J[195395];J[195395]=0;if((c|0)==1)break sa;if(a)break va;break ua}a=a&65280;if(!a)break va;if((a|0)!=(c& -65280))break ua}e=1;a=L[f+16>>1];if(!(K[f+12|0]&16|(a&96)!=32|!K[d+20|0]&(a&543)==513))e=!K[d+21|0]&(a&287)==257;c=J[d+32>>2];if(c){a=K[c|0]|K[c+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;if(!(J[d+16>>2]&J[f+4>>2]))break ta;o=K[d+23|0];if((o|0)!=K[f+15|0]?o:0)break ta;o=J[d+24>>2];if(o){c=J[d+28>>2];J[195395]=0;a=aa(o|0,f|0,a|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break sa;if(!a)break ta;c=J[d+32>>2];break ra}if(e)break ra}a=J[d+4>>2];if((g|0)<=(a|0))break qa;continue}a=J[d+4>>2];if(!((g|0)<=(a| -0)|e))continue;break qa}break}break a}if(c)J[d+32>>2]=c+2;o=J[d+4>>2];a=P(o,20);c=J[a+s>>2];e=J[m>>2];f=J[h+52>>2];g=J[f+4>>2];f=J[f>>2];J[195395]=0;c=uu(f,e,c,g);e=J[195395];J[195395]=0;wa:{if((e|0)==1)break wa;if(c){xa:{if(!t){f=c<<16;g=f>>31;c=Kpa(J[j+72>>2],J[j+76>>2],f>>16,g);g=zb;c=c+32768|0;c=((c>>>0<32768?g+1|0:g)&65535)<<16|c>>>16;if(K[h+56|0]){J[(a+l|0)+12>>2]=c;J[i+144>>2]=J[i+144>>2]|8;break xa}e=l+p|0;m=e;f=J[e>>2];e=c>>1;J[m>>2]=f+e;a=a+l|0;c=c-e|0;J[a>>2]=c+J[a>>2];J[a+8>>2]=c+J[a+ -8>>2];break xa}f=c<<16;g=f>>31;c=Kpa(J[j+80>>2],J[j+84>>2],f>>16,g);e=zb;c=c+32768|0;c=((c>>>0<32768?e+1|0:e)&65535)<<16|c>>>16;if(K[h+56|0]){J[(a+l|0)+8>>2]=c;J[i+144>>2]=J[i+144>>2]|8;break xa}e=l+p|0;m=e;f=J[e+4>>2];e=c>>1;J[m+4>>2]=f+e;a=a+l|0;c=c-e|0;J[a+4>>2]=c+J[a+4>>2];J[a+12>>2]=c+J[a+12>>2]}J[195395]=0;Ac(i,3,b,o+1|0,1,0);a=J[195395];J[195395]=0;if((a|0)==1)break wa}b=J[d+4>>2];break pa}break a}b=b+1|0}if(r>>>0>b>>>0)continue;break}}J[195395]=0;ha(594,i|0,j|0,106605,0)|0;a=J[195395];J[195395]= -0;if((a|0)==1)break a;Kb(J[d+156>>2]);a=J[d+128>>2];if(!a)break na;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break na;break b}xb=q+224|0}xb=h- -64|0;return k|0}ga(0)|0;_b();B()}a=Z()|0;wi(d);ba(a|0);B()}function Ri(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;e=xb-384|0;xb=e;a:{if(!(J[c>>2]!=J[c+4>>2]?J[b+72>>2]:0)){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break a}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[e+376>>2]=0;J[e+ -368>>2]=0;J[e+372>>2]=0;J[195395]=0;l=e+320|0;i=l;J[i+8>>2]=0;J[i+12>>2]=0;J[i>>2]=0;J[i+4>>2]=1072693248;J[i+32>>2]=0;J[i+36>>2]=0;J[i+24>>2]=0;J[i+28>>2]=1072693248;J[i+16>>2]=0;J[i+20>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0;f=J[195395];J[195395]=0;b:{c:{if((f|0)!=1){if(!d)break c;J[195395]=0;Rd(i,d);d=J[195395];J[195395]=0;if((d|0)!=1)break c}c=Z()|0;break b}J[195395]=0;$(3121,e+304|0,c|0);c=J[195395];J[195395]=0;d:{e:{f:{g:{if((c|0)!=1){d=J[e+304>>2];u=J[e+308>>2];if((d|0)==(u|0))break f;o=e+296|0;m= -e+216|0;n=e+232|0;i=e+368|4;f=0;while(1){c=J[d>>2];g=J[J[c>>2]+8>>2];J[195395]=0;g=_(g|0,c|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break e;h:{if((g|0)==1)break h;h=K[e+379|0];g=h<<24>>24<0;h=g?J[e+372>>2]:h;if(!h)break h;J[195395]=0;aa(1864,a|0,(g?J[e+368>>2]:e+368|0)|0,h|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break e;if(H[e+379|0]<0){J[J[e+368>>2]>>2]=0;J[e+372>>2]=0;break h}H[e+379|0]=0;J[e+368>>2]=0}g=J[J[c>>2]+8>>2];J[195395]=0;g=_(g|0,c|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break e;i:{j:{k:switch(g- -1|0){case 0:J[195395]=0;j=O[c+8>>3];f=J[195395];J[195395]=0;if((f|0)==1)break i;J[195395]=0;k=O[c+16>>3];c=J[195395];J[195395]=0;if((c|0)==1)break i;O[e+296>>3]=k;O[e+288>>3]=j;J[195395]=0;Yd(l,e+288|0,o);c=J[195395];J[195395]=0;if((c|0)==1)break i;J[195395]=0;c=e+256|0;da(1863,c|0,+O[e+288>>3],-1);f=J[195395];J[195395]=0;l:{m:{n:{o:{p:{q:{r:{s:{t:{if((f|0)!=1){J[195395]=0;c=aa(1954,c|0,0,423272)|0;f=J[195395];J[195395]=0;if((f|0)==1)break t;J[e+280>>2]=J[c+8>>2];f=J[c+4>>2];J[e+272>>2]=J[c>>2];J[e+ -276>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+272|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break s;J[m>>2]=J[e+280>>2];J[e+280>>2]=0;c=J[e+276>>2];J[e+208>>2]=J[e+272>>2];J[e+212>>2]=c;J[e+272>>2]=0;J[e+276>>2]=0;J[195395]=0;c=e+240|0;da(1863,c|0,+O[e+296>>3],-1);f=J[195395];J[195395]=0;if((f|0)==1)break r;J[195395]=0;h=c;c=K[e+251|0];f=c<<24>>24<0;c=aa(1864,e+208|0,(f?J[e+240>>2]:h)|0,(f?J[e+244>>2]:c)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break q;J[n>>2]=J[c+8>>2];f=J[c+4>> -2];J[e+224>>2]=J[c>>2];J[e+228>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+224|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break p;c=K[e+231|0]|K[e+232|0]<<8|(K[e+233|0]<<16|K[e+234|0]<<24);g=J[e+228>>2];f=K[e+235|0];J[n>>2]=0;J[e+192>>2]=g;g=J[e+224>>2];J[e+224>>2]=0;J[e+228>>2]=0;H[e+195|0]=c;H[e+196|0]=c>>>8;H[e+197|0]=c>>>16;H[e+198|0]=c>>>24;u:{if(H[e+379|0]>=0){J[e+368>>2]=g;c=K[e+195|0]|K[e+196|0]<<8|(K[e+197|0]<<16|K[e+198|0]<<24);H[i+3|0]=c;H[i+4|0]=c>>>8;H[i+5|0]=c>>>16;H[i+ -6|0]=c>>>24;J[i>>2]=J[e+192>>2];H[e+379|0]=f;break u}Kb(J[e+368>>2]);J[e+368>>2]=g;g=H[e+235|0];c=K[e+195|0]|K[e+196|0]<<8|(K[e+197|0]<<16|K[e+198|0]<<24);H[i+3|0]=c;H[i+4|0]=c>>>8;H[i+5|0]=c>>>16;H[i+6|0]=c>>>24;J[i>>2]=J[e+192>>2];H[e+379|0]=f;if((g|0)>=0)break u;Kb(J[e+224>>2])}if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);f=1;break j}c=Z()|0;break d}c=Z()|0;break l}c=Z()|0;break m}c=Z()|0;break n}c=Z()|0;break o}c= -Z()|0;if(H[e+235|0]>=0)break o;Kb(J[e+224>>2])}if(H[e+251|0]>=0)break n;Kb(J[e+240>>2])}if(H[e+219|0]>=0)break m;Kb(J[e+208>>2])}if(H[e+283|0]>=0)break l;Kb(J[e+272>>2])}if(H[e+267|0]>=0)break d;Kb(J[e+256>>2]);break d;case 1:J[195395]=0;j=O[c+8>>3];g=J[195395];J[195395]=0;v:{w:{if((g|0)==1)break w;J[195395]=0;k=O[c+16>>3];c=J[195395];J[195395]=0;if((c|0)==1)break w;O[e+296>>3]=k;O[e+288>>3]=j;J[195395]=0;Yd(l,e+288|0,o);c=J[195395];J[195395]=0;if((c|0)==1)break w;if((f|0)==2)break v;J[195395]=0; -ca(1858,a|0,423284)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break v}c=Z()|0;break d}J[195395]=0;c=e+256|0;da(1863,c|0,+O[e+288>>3],-1);f=J[195395];J[195395]=0;x:{y:{z:{A:{B:{C:{D:{E:{F:{if((f|0)!=1){J[195395]=0;$(1811,c|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break F;J[e+280>>2]=J[e+264>>2];J[e+264>>2]=0;c=J[e+260>>2];J[e+272>>2]=J[e+256>>2];J[e+276>>2]=c;J[e+256>>2]=0;J[e+260>>2]=0;J[195395]=0;c=e+240|0;da(1863,c|0,+O[e+296>>3],-1);f=J[195395];J[195395]=0;if((f|0)==1)break E;J[195395]=0;h=c;c=K[e+ -251|0];f=c<<24>>24<0;c=aa(1864,e+272|0,(f?J[e+240>>2]:h)|0,(f?J[e+244>>2]:c)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break D;J[m>>2]=J[c+8>>2];f=J[c+4>>2];J[e+208>>2]=J[c>>2];J[e+212>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+208|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break C;J[n>>2]=J[m>>2];J[m>>2]=0;f=J[e+212>>2];c=J[e+208>>2];J[e+224>>2]=c;J[e+228>>2]=f;J[e+208>>2]=0;J[e+212>>2]=0;J[195395]=0;h=c;c=H[e+235|0];f=(c|0)<0;aa(1864,a|0,(f?h:e+224|0)|0,(f?J[e+228>>2]:c&255)|0)| -0;c=J[195395];J[195395]=0;if((c|0)==1)break B;if(H[e+235|0]<0)Kb(J[e+224>>2]);if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);f=2;break j}c=Z()|0;break d}c=Z()|0;break x}c=Z()|0;break y}c=Z()|0;break z}c=Z()|0;break A}c=Z()|0;if(H[e+235|0]>=0)break A;Kb(J[e+224>>2])}if(H[e+219|0]>=0)break z;Kb(J[e+208>>2])}if(H[e+251|0]>=0)break y;Kb(J[e+240>>2])}if(H[e+283|0]>=0)break x;Kb(J[e+272>>2])}if(H[e+267|0]>=0)break d;Kb(J[e+ -256>>2]);break d;case 2:G:{if((f|0)==3)break G;J[195395]=0;ca(1858,a|0,423296)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break G;c=Z()|0;break d}J[195395]=0;j=O[c+8>>3];f=J[195395];J[195395]=0;H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{if((f|0)==1)break pa;J[195395]=0;k=O[c+16>>3];f=J[195395];J[195395]=0;if((f|0)==1)break pa;O[e+296>>3]=k;O[e+288>>3]=j;J[195395]=0;j=O[c+24>>3];f=J[195395];J[195395]=0;if((f|0)==1)break oa; -J[195395]=0;k=O[c+32>>3];f=J[195395];J[195395]=0;if((f|0)==1)break oa;O[e+232>>3]=k;O[e+224>>3]=j;J[195395]=0;j=O[c+40>>3];f=J[195395];J[195395]=0;if((f|0)==1)break na;J[195395]=0;k=O[c+48>>3];c=J[195395];J[195395]=0;if((c|0)==1)break na;O[e+216>>3]=k;O[e+208>>3]=j;J[195395]=0;Yd(l,e+288|0,o);c=J[195395];J[195395]=0;if((c|0)==1)break na;J[195395]=0;Yd(l,e+224|0,n);c=J[195395];J[195395]=0;if((c|0)==1)break na;J[195395]=0;Yd(l,e+208|0,m);c=J[195395];J[195395]=0;if((c|0)==1)break na;J[195395]=0;c=e- --64|0;da(1863,c|0,+O[e+288>>3],-1);f=J[195395];J[195395]=0;if((f|0)==1)break ma;J[195395]=0;$(1811,c|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break la;J[e+88>>2]=J[e+72>>2];J[e+72>>2]=0;c=J[e+68>>2];J[e+80>>2]=J[e+64>>2];J[e+84>>2]=c;J[e+64>>2]=0;J[e+68>>2]=0;J[195395]=0;c=e+52|0;da(1863,c|0,+O[e+296>>3],-1);f=J[195395];J[195395]=0;if((f|0)==1)break ka;J[195395]=0;h=c;c=K[e+63|0];f=c<<24>>24<0;c=aa(1864,e+80|0,(f?J[e+52>>2]:h)|0,(f?J[e+56>>2]:c)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ja; -J[e+104>>2]=J[c+8>>2];f=J[c+4>>2];J[e+96>>2]=J[c>>2];J[e+100>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+96|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break ia;J[e+120>>2]=J[e+104>>2];J[e+104>>2]=0;c=J[e+100>>2];J[e+112>>2]=J[e+96>>2];J[e+116>>2]=c;J[e+96>>2]=0;J[e+100>>2]=0;J[195395]=0;c=e+40|0;da(1863,c|0,+O[e+224>>3],-1);f=J[195395];J[195395]=0;if((f|0)==1)break ha;J[195395]=0;h=c;c=K[e+51|0];f=c<<24>>24<0;c=aa(1864,e+112|0,(f?J[e+40>>2]:h)|0,(f?J[e+44>>2]:c)|0)|0;f=J[195395];J[195395]= -0;if((f|0)==1)break ga;J[e+136>>2]=J[c+8>>2];f=J[c+4>>2];J[e+128>>2]=J[c>>2];J[e+132>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+128|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break fa;J[e+152>>2]=J[e+136>>2];J[e+136>>2]=0;c=J[e+132>>2];J[e+144>>2]=J[e+128>>2];J[e+148>>2]=c;J[e+128>>2]=0;J[e+132>>2]=0;J[195395]=0;c=e+28|0;da(1863,c|0,+O[e+232>>3],-1);f=J[195395];J[195395]=0;if((f|0)==1)break ea;J[195395]=0;h=c;c=K[e+39|0];f=c<<24>>24<0;c=aa(1864,e+144|0,(f?J[e+28>>2]:h)|0,(f?J[e+32>> -2]:c)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break da;J[e+168>>2]=J[c+8>>2];f=J[c+4>>2];J[e+160>>2]=J[c>>2];J[e+164>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+160|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break ca;J[e+184>>2]=J[e+168>>2];J[e+168>>2]=0;c=J[e+164>>2];J[e+176>>2]=J[e+160>>2];J[e+180>>2]=c;J[e+160>>2]=0;J[e+164>>2]=0;J[195395]=0;c=e+16|0;da(1863,c|0,+O[e+208>>3],-1);f=J[195395];J[195395]=0;if((f|0)==1)break ba;J[195395]=0;h=c;c=K[e+27|0];f=c<<24>>24<0;c=aa(1864,e+ -176|0,(f?J[e+16>>2]:h)|0,(f?J[e+20>>2]:c)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break aa;J[e+200>>2]=J[c+8>>2];f=J[c+4>>2];J[e+192>>2]=J[c>>2];J[e+196>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+192|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break $;J[e+248>>2]=J[e+200>>2];J[e+200>>2]=0;c=J[e+196>>2];J[e+240>>2]=J[e+192>>2];J[e+244>>2]=c;J[e+192>>2]=0;J[e+196>>2]=0;J[195395]=0;c=e+4|0;da(1863,c|0,+O[e+216>>3],-1);f=J[195395];J[195395]=0;if((f|0)==1)break _;J[195395]=0;h=c;c=K[e+ -15|0];f=c<<24>>24<0;c=aa(1864,e+240|0,(f?J[e+4>>2]:h)|0,(f?J[e+8>>2]:c)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Z;J[e+264>>2]=J[c+8>>2];f=J[c+4>>2];J[e+256>>2]=J[c>>2];J[e+260>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+256|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break Y;J[e+280>>2]=J[e+264>>2];J[e+264>>2]=0;f=J[e+260>>2];c=J[e+256>>2];J[e+272>>2]=c;J[e+276>>2]=f;J[e+256>>2]=0;J[e+260>>2]=0;J[195395]=0;h=c;c=H[e+283|0];f=(c|0)<0;aa(1864,a|0,(f?h:e+272|0)|0,(f?J[e+276>>2]: -c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break X;if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);if(H[e+15|0]<0)Kb(J[e+4>>2]);if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+27|0]<0)Kb(J[e+16>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+39|0]<0)Kb(J[e+28>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);if(H[e+139|0]<0)Kb(J[e+128>>2]);if(H[e+51|0]<0)Kb(J[e+40>>2]);if(H[e+123|0]<0)Kb(J[e+112>>2]);if(H[e+107|0]<0)Kb(J[e+96>>2]);if(H[e+ -63|0]<0)Kb(J[e+52>>2]);if(H[e+91|0]<0)Kb(J[e+80>>2]);if(H[e+75|0]<0)Kb(J[e+64>>2]);f=3;break j}c=Z()|0;break d}c=Z()|0;break d}c=Z()|0;break d}c=Z()|0;break d}c=Z()|0;break H}c=Z()|0;break I}c=Z()|0;break J}c=Z()|0;break K}c=Z()|0;break L}c=Z()|0;break M}c=Z()|0;break N}c=Z()|0;break O}c=Z()|0;break P}c=Z()|0;break Q}c=Z()|0;break R}c=Z()|0;break S}c=Z()|0;break T}c=Z()|0;break U}c=Z()|0;break V}c=Z()|0;break W}c=Z()|0;if(H[e+283|0]>=0)break W;Kb(J[e+272>>2])}if(H[e+267|0]>=0)break V;Kb(J[e+256>> -2])}if(H[e+15|0]>=0)break U;Kb(J[e+4>>2])}if(H[e+251|0]>=0)break T;Kb(J[e+240>>2])}if(H[e+203|0]>=0)break S;Kb(J[e+192>>2])}if(H[e+27|0]>=0)break R;Kb(J[e+16>>2])}if(H[e+187|0]>=0)break Q;Kb(J[e+176>>2])}if(H[e+171|0]>=0)break P;Kb(J[e+160>>2])}if(H[e+39|0]>=0)break O;Kb(J[e+28>>2])}if(H[e+155|0]>=0)break N;Kb(J[e+144>>2])}if(H[e+139|0]>=0)break M;Kb(J[e+128>>2])}if(H[e+51|0]>=0)break L;Kb(J[e+40>>2])}if(H[e+123|0]>=0)break K;Kb(J[e+112>>2])}if(H[e+107|0]>=0)break J;Kb(J[e+96>>2])}if(H[e+63|0]>=0)break I; -Kb(J[e+52>>2])}if(H[e+91|0]>=0)break H;Kb(J[e+80>>2])}if(H[e+75|0]>=0)break d;Kb(J[e+64>>2]);break d;case 3:J[195395]=0;j=O[c+8>>3];f=J[195395];J[195395]=0;qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{_a:{$a:{if((f|0)==1)break $a;J[195395]=0;k=O[c+16>>3];f=J[195395];J[195395]=0;if((f|0)==1)break $a;O[e+296>>3]=k;O[e+288>>3]=j;J[195395]=0;j=O[c+24>>3];f=J[195395];J[195395]=0;if((f|0)==1)break _a;J[195395]= -0;k=O[c+32>>3];f=J[195395];J[195395]=0;if((f|0)==1)break _a;O[e+232>>3]=k;O[e+224>>3]=j;J[195395]=0;Yd(l,e+288|0,o);f=J[195395];J[195395]=0;if((f|0)==1)break _a;J[195395]=0;Yd(l,e+224|0,n);f=J[195395];J[195395]=0;if((f|0)==1)break _a;J[195395]=0;k=O[e+224>>3];p=O[e+232>>3];j=O[e+288>>3];q=O[c+48>>3];f=J[195395];J[195395]=0;if((f|0)==1)break Za;J[195395]=0;w=O[e+288>>3];x=O[e+232>>3];r=O[c+48>>3];f=J[195395];J[195395]=0;q=Fe(q*3.141592653589793/180);if((f|0)==1)break Ya;J[195395]=0;f=e+52|0;v=R(k- -j)*.5;da(1863,f|0,+v,-1);g=J[195395];J[195395]=0;r=ue(r*3.141592653589793/180);if((g|0)==1)break Xa;J[195395]=0;f=aa(1954,f|0,0,423308)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Wa;J[e+72>>2]=J[f+8>>2];g=J[f+4>>2];J[e+64>>2]=J[f>>2];J[e+68>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;$(1811,e- -64|0,32);f=J[195395];J[195395]=0;if((f|0)==1)break Va;J[e+88>>2]=J[e+72>>2];J[e+72>>2]=0;f=J[e+68>>2];J[e+80>>2]=J[e+64>>2];J[e+84>>2]=f;J[e+64>>2]=0;J[e+68>>2]=0;J[195395]=0;f=e+40|0;p=R(p-j)*.5; -da(1863,f|0,+p,-1);g=J[195395];J[195395]=0;if((g|0)==1)break Ua;J[195395]=0;h=f;f=K[e+51|0];g=f<<24>>24<0;f=aa(1864,e+80|0,(g?J[e+40>>2]:h)|0,(g?J[e+44>>2]:f)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ta;J[e+104>>2]=J[f+8>>2];g=J[f+4>>2];J[e+96>>2]=J[f>>2];J[e+100>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;$(1811,e+96|0,32);f=J[195395];J[195395]=0;if((f|0)==1)break Sa;J[e+120>>2]=J[e+104>>2];J[e+104>>2]=0;f=J[e+100>>2];J[e+112>>2]=J[e+96>>2];J[e+116>>2]=f;J[e+96>>2]=0;J[e+100>>2]=0; -J[195395]=0;f=ca(1858,e+112|0,423320)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Ra;J[e+136>>2]=J[f+8>>2];g=J[f+4>>2];J[e+128>>2]=J[f>>2];J[e+132>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;s=O[c+48>>3];f=J[195395];J[195395]=0;if((f|0)==1)break Qa;J[195395]=0;t=O[c+40>>3];f=J[195395];J[195395]=0;if((f|0)==1)break Qa;J[195395]=0;f=ca(1858,e+128|0,(R(s-t)<=180?423332:423340)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Qa;J[e+152>>2]=J[f+8>>2];g=J[f+4>>2];J[e+144>>2]=J[f>>2];J[e+148>>2]= -g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;$(1811,e+144|0,32);f=J[195395];J[195395]=0;if((f|0)==1)break Pa;J[e+168>>2]=J[e+152>>2];J[e+152>>2]=0;f=J[e+148>>2];J[e+160>>2]=J[e+144>>2];J[e+164>>2]=f;J[e+144>>2]=0;J[e+148>>2]=0;J[195395]=0;s=O[c+48>>3];f=J[195395];J[195395]=0;if((f|0)==1)break Oa;J[195395]=0;t=O[c+40>>3];c=J[195395];J[195395]=0;if((c|0)==1)break Oa;J[195395]=0;c=ca(1858,e+160|0,(R(s-t)<=180?423340:423332)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Oa;J[e+184>>2]=J[c+8>>2];f= -J[c+4>>2];J[e+176>>2]=J[c>>2];J[e+180>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+176|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break Na;J[e+200>>2]=J[e+184>>2];J[e+184>>2]=0;c=J[e+180>>2];J[e+192>>2]=J[e+176>>2];J[e+196>>2]=c;J[e+176>>2]=0;J[e+180>>2]=0;J[195395]=0;c=e+28|0;da(1863,c|0,+(v*q+(k+j)*.5),-1);f=J[195395];J[195395]=0;if((f|0)==1)break Ma;J[195395]=0;h=c;c=K[e+39|0];f=c<<24>>24<0;c=aa(1864,e+192|0,(f?J[e+28>>2]:h)|0,(f?J[e+32>>2]:c)|0)|0;f=J[195395];J[195395]=0;if((f| -0)==1)break La;J[e+248>>2]=J[c+8>>2];f=J[c+4>>2];J[e+240>>2]=J[c>>2];J[e+244>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+240|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break Ka;J[e+264>>2]=J[e+248>>2];J[e+248>>2]=0;c=J[e+244>>2];J[e+256>>2]=J[e+240>>2];J[e+260>>2]=c;J[e+240>>2]=0;J[e+244>>2]=0;J[195395]=0;c=e+16|0;da(1863,c|0,+(p*r+(x+w)*.5),-1);f=J[195395];J[195395]=0;if((f|0)==1)break Ja;J[195395]=0;h=c;c=K[e+27|0];f=c<<24>>24<0;c=aa(1864,e+256|0,(f?J[e+16>>2]:h)|0,(f?J[e+20>>2]: -c)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break Ia;J[e+280>>2]=J[c+8>>2];f=J[c+4>>2];J[e+272>>2]=J[c>>2];J[e+276>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+272|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break Ha;J[m>>2]=J[e+280>>2];J[e+280>>2]=0;f=J[e+276>>2];c=J[e+272>>2];J[e+208>>2]=c;J[e+212>>2]=f;J[e+272>>2]=0;J[e+276>>2]=0;J[195395]=0;h=c;c=H[e+219|0];f=(c|0)<0;aa(1864,a|0,(f?h:e+208|0)|0,(f?J[e+212>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ga;if(H[e+219|0]< -0)Kb(J[e+208>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+27|0]<0)Kb(J[e+16>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+39|0]<0)Kb(J[e+28>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);if(H[e+139|0]<0)Kb(J[e+128>>2]);if(H[e+123|0]<0)Kb(J[e+112>>2]);if(H[e+107|0]<0)Kb(J[e+96>>2]);if(H[e+51|0]<0)Kb(J[e+40>>2]);if(H[e+91|0]<0)Kb(J[e+80>>2]);if(H[e+75|0]<0)Kb(J[e+64>>2]);if(H[e+63|0]<0)Kb(J[e+ -52>>2]);f=4;break j}c=Z()|0;break d}c=Z()|0;break d}c=Z()|0;break d}c=Z()|0;break d}c=Z()|0;break d}c=Z()|0;break qa}c=Z()|0;break ra}c=Z()|0;break sa}c=Z()|0;break ta}c=Z()|0;break ua}c=Z()|0;break va}c=Z()|0;break wa}c=Z()|0;break xa}c=Z()|0;break ya}c=Z()|0;break za}c=Z()|0;break Aa}c=Z()|0;break Ba}c=Z()|0;break Ca}c=Z()|0;break Da}c=Z()|0;break Ea}c=Z()|0;break Fa}c=Z()|0;if(H[e+219|0]>=0)break Fa;Kb(J[e+208>>2])}if(H[e+283|0]>=0)break Ea;Kb(J[e+272>>2])}if(H[e+27|0]>=0)break Da;Kb(J[e+16>>2])}if(H[e+ -267|0]>=0)break Ca;Kb(J[e+256>>2])}if(H[e+251|0]>=0)break Ba;Kb(J[e+240>>2])}if(H[e+39|0]>=0)break Aa;Kb(J[e+28>>2])}if(H[e+203|0]>=0)break za;Kb(J[e+192>>2])}if(H[e+187|0]>=0)break ya;Kb(J[e+176>>2])}if(H[e+171|0]>=0)break xa;Kb(J[e+160>>2])}if(H[e+155|0]>=0)break wa;Kb(J[e+144>>2])}if(H[e+139|0]>=0)break va;Kb(J[e+128>>2])}if(H[e+123|0]>=0)break ua;Kb(J[e+112>>2])}if(H[e+107|0]>=0)break ta;Kb(J[e+96>>2])}if(H[e+51|0]>=0)break sa;Kb(J[e+40>>2])}if(H[e+91|0]>=0)break ra;Kb(J[e+80>>2])}if(H[e+75|0]>= -0)break qa;Kb(J[e+64>>2])}if(H[e+63|0]>=0)break d;Kb(J[e+52>>2]);break d;case 4:break k;default:break j}J[195395]=0;ca(1858,a|0,423348)|0;c=J[195395];J[195395]=0;f=5;if((c|0)==1)break e}d=d+4|0;if((u|0)==(d|0))break g;continue}break}c=Z()|0;break d}c=Z()|0;break b}d=J[e+304>>2]}if(d){J[e+308>>2]=d;Kb(d)}d=K[a+11|0];c=d<<24>>24<0;ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{ib:{jb:{kb:{lb:{if(!(c?J[a+4>>2]:d)|J[(c?J[a>>2]:a)>>2]==77)break lb;c=J[b+72>>2];d=J[J[c>>2]+64>>2];J[195395]=0;$(d|0,e+288|0,c|0);c=J[195395]; -J[195395]=0;mb:{if((c|0)!=1){J[195395]=0;da(1863,e+240|0,+O[e+288>>3],-1);c=J[195395];J[195395]=0;if((c|0)!=1)break mb}c=Z()|0;break b}J[195395]=0;c=aa(1954,e+240|0,0,423272)|0;d=J[195395];J[195395]=0;if((d|0)==1)break kb;J[e+264>>2]=J[c+8>>2];d=J[c+4>>2];J[e+256>>2]=J[c>>2];J[e+260>>2]=d;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,e+256|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break jb;J[e+280>>2]=J[e+264>>2];J[e+264>>2]=0;c=J[e+260>>2];J[e+272>>2]=J[e+256>>2];J[e+276>>2]=c;J[e+256>>2]= -0;J[e+260>>2]=0;b=J[b+72>>2];c=J[J[b>>2]+64>>2];J[195395]=0;$(c|0,e+224|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break ib;J[195395]=0;b=e+192|0;da(1863,b|0,+O[e+232>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break ib;J[195395]=0;d=b;b=K[e+203|0];c=b<<24>>24<0;b=aa(1864,e+272|0,(c?J[e+192>>2]:d)|0,(c?J[e+196>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break hb;J[e+312>>2]=J[b+8>>2];c=J[b+4>>2];J[e+304>>2]=J[b>>2];J[e+308>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+304|0,32); -b=J[195395];J[195395]=0;if((b|0)==1)break gb;J[e+216>>2]=J[e+312>>2];J[e+312>>2]=0;c=J[e+308>>2];b=J[e+304>>2];J[e+208>>2]=b;J[e+212>>2]=c;J[e+304>>2]=0;J[e+308>>2]=0;J[195395]=0;d=b;b=H[e+219|0];c=(b|0)<0;ha(3104,a|0,0,(c?d:e+208|0)|0,(c?J[e+212>>2]:b&255)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break fb;if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+315|0]<0)Kb(J[e+304>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);if(H[e+251|0]>=0)break lb;Kb(J[e+ -240>>2])}if(H[e+379|0]>=0)break a;Kb(J[e+368>>2]);break a}c=Z()|0;break ab}c=Z()|0;break bb}c=Z()|0;break cb}c=Z()|0;break db}c=Z()|0;break eb}c=Z()|0;if(H[e+219|0]>=0)break eb;Kb(J[e+208>>2])}if(H[e+315|0]>=0)break db;Kb(J[e+304>>2])}if(H[e+203|0]>=0)break cb;Kb(J[e+192>>2])}if(H[e+283|0]>=0)break bb;Kb(J[e+272>>2])}if(H[e+267|0]>=0)break ab;Kb(J[e+256>>2])}if(H[e+251|0]>=0)break b;Kb(J[e+240>>2]);break b}c=Z()|0}b=J[e+304>>2];if(!b)break b;J[e+308>>2]=b;Kb(b)}if(H[e+379|0]<0)Kb(J[e+368>>2]);if(H[a+ -11|0]<0)Kb(J[a>>2]);ba(c|0);B()}xb=e+384|0}function cG(a){var b=0,c=0,d=0,e=0,f=0,g=0;if(!(K[a+16|0]&16)){J[a+72>>2]=0;J[a+64>>2]=0;I[a+62>>1]=1;J[a+84>>2]=J[a+80>>2];f=J[a+68>>2];a:{b:{c:{b=J[a+44>>2];if((b|0)<=1299145832){if((b|0)>1198879348)break c;if((b|0)>1147500128)break b;if((b|0)!=1113943655){if((b|0)!=1114792296)break a;b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;g=69688;d:{e:{f:{g:{h:{e=J[a+80>>2];c=e+P(b,20)|0;switch(J[c>>2]-69637|0){case 0:break f;case 10:break g; -case 6:break h;default:break e}}g=69694;break f}g=69698}d=J[c+20>>2];i:{if(K[a+62|0]){j:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break j}if(!ec(a,1,1))break i;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[c>>2];J[e+4>>2]=b;J[e+16>>2]=J[c+16>>2];b=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}if((d|0)!=(g|0))break d;ze(a);break d}if(K[a+62|0]){k:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break k}if(!ec(a, -1,1))break d;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;g=2494;l:{m:{n:{o:{p:{e=J[a+80>>2];c=e+P(b,20)|0;switch(J[c>>2]-2437|0){case 0:break n;case 7:break o;case 6:break p;default:break m}}g=2499; -break n}g=2530}d=J[c+20>>2];q:{if(K[a+62|0]){r:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break r}if(!ec(a,1,1))break q;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[c>>2];J[e+4>>2]=b;J[e+16>>2]=J[c+16>>2];b=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}if((d|0)!=(g|0))break l;ze(a);break l}if(K[a+62|0]){s:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break s}if(!ec(a,1,1))break l;c=J[a+80>>2]+P(J[a+ -64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}if((b|0)<=1415670641){t:{u:switch(b-1399418468|0){default:if((b|0)==1299145833)break t;if((b|0)!=1332902241)break a;b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;g=2878;v:{w:{x:{y:{e=J[a+80>>2];c=e+P(b,20)|0;switch(J[c>> -2]-2821|0){case 0:break x;case 10:case 14:break y;default:break w}}g=2903}d=J[c+20>>2];z:{if(K[a+62|0]){A:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break A}if(!ec(a,1,1))break z;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[c>>2];J[e+4>>2]=b;J[e+16>>2]=J[c+16>>2];b=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}if((d|0)!=(g|0))break v;ze(a);break v}if(K[a+62|0]){B:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>> -2]==(b|0))break B}if(!ec(a,1,1))break v;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a;case 4:b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;C:{D:{E:{F:{G:{H:{I:{J:{d=J[a+80>>2];c=d+P(b,20)|0;switch(J[c>>2]-3461|0){case 0:break G;case 12:break H;case 8:break I; -case 6:case 10:case 15:break J;default:break D}}c=J[c+20>>2]==3551;break F}c=J[c+20>>2]==3544;break F}c=J[c+20>>2]-3530|0;if(c>>>0>20|!(1<>2]){c=b;if(J[a+72>>2]==(b|0))break K}if(!ec(a,1,1))break E;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1;ze(a);break C}c=J[c+20>> -2]-3535>>>0<3}L:{if(K[a+62|0]){M:{if((d|0)==J[a+84>>2]){d=b;if(J[a+72>>2]==(b|0))break M}if(!ec(a,1,1))break L;d=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[d+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=b;J[e+16>>2]=J[d+16>>2];b=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=b;b=J[a+64>>2];d=J[a+72>>2]}J[a+72>>2]=d+1}J[a+64>>2]=b+1}if(!c)break C}ze(a);break C}if(K[a+62|0]){N:{if((d|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break N}if(!ec(a,1,1))break C;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>> -2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a;case 1:case 2:case 3:break a;case 0:break u}b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;O:{P:{d=J[a+80>>2];c=d+P(b,20)|0;if(J[c>>2]!=70320)break P;c=J[c+20>>2];if(c-70373>>>0>=4&(c|0)!=70368)break P;Q:{if(K[a+62|0]){R:{if((d|0)==J[a+84>>2]){c= -b;if(J[a+72>>2]==(b|0))break R}if(!ec(a,1,1))break Q;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}ze(a);b=J[a+64>>2];break O}if(K[a+62|0]){S:{if((d|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break S}c=ec(a,1,1);b=J[a+64>>2];if(!c)break O;c=J[a+80>>2]+P(b,20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2]; -J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}b=b+1|0;J[a+64>>2]=b}if(b+1>>>0>>0)continue;break}break a}b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;e=J[a+80>>2];c=e+P(b,20)|0;T:{if((J[c>>2]&-2)==71168){d=J[c+20>>2]-71225|0;U:{if(K[a+62|0]){V:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break V}if(!ec(a,1,1))break U;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>> -2]=J[c>>2];J[e+4>>2]=b;J[e+16>>2]=J[c+16>>2];b=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}if(d>>>0>1)break T;ze(a);break T}if(K[a+62|0]){W:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break W}if(!ec(a,1,1))break T;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b= -J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}if((b|0)<=1415933044){if((b|0)!=1415670642){if((b|0)!=1415671148)break a;b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;e=J[a+80>>2];c=e+P(b,20)|0;X:{if(J[c>>2]==2949){d=J[c+20>>2];Y:{if(K[a+62|0]){Z:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break Z}if(!ec(a,1,1))break Y;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[c>>2];J[e+4>>2]=b;J[e+16>>2]=J[c+16>>2];b=J[c+12>>2];J[e+8>>2]=J[c+ -8>>2];J[e+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}if((d|0)!=3010)break X;ze(a);break X}if(K[a+62|0]){_:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break _}if(!ec(a,1,1))break X;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}b=0;J[a+64>>2]= -0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;$:{aa:{ba:{ca:{da:{e=J[a+80>>2];c=e+P(b,20)|0;switch(J[c>>2]-71296|0){case 6:break ca;case 0:break da;default:break aa}}c=J[c+20>>2]-71341|0;if(c>>>0>8|!(1<>2]){c=b;if(J[a+72>>2]==(b|0))break ea}if(!ec(a,1,1))break ba;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>> -2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1;ze(a);break $}d=J[c+20>>2];fa:{if(K[a+62|0]){ga:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break ga}if(!ec(a,1,1))break fa;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[c>>2];J[e+4>>2]=b;J[e+16>>2]=J[c+16>>2];b=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}if((d|0)!=71346)break $}ze(a);break $}if(K[a+62|0]){ha:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b| -0))break ha}if(!ec(a,1,1))break $;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}if((b|0)!=1415933045){if((b|0)!=1416196712)break a;b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;ia:{ja:{ka:{la:{ma:{na:{oa:{d=J[a+80>>2];e=d+P(b,20)|0;c=J[e>>2];switch(c- -70785|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 11:break la;case 10:case 12:break na;case 0:break oa;default:break ma}}c=J[e+20>>2]==70832;break ja}c=J[e+20>>2]==70842;break ja}if((c|0)==70826)break ka}if(K[a+62|0]){pa:{if((d|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break pa}if(!ec(a,1,1))break ia;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b= -J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1;break ia}c=J[e+20>>2]-70837>>>0<2}qa:{if(K[a+62|0]){ra:{if((d|0)==J[a+84>>2]){d=b;if(J[a+72>>2]==(b|0))break ra}if(!ec(a,1,1))break qa;d=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[d+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=b;J[e+16>>2]=J[d+16>>2];b=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=b;b=J[a+64>>2];d=J[a+72>>2]}J[a+72>>2]=d+1}J[a+64>>2]=b+1}if(!c)break ia;ze(a)}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}b=0;J[a+64>> -2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;sa:{ta:{g=J[a+80>>2];e=g+P(b,20)|0;d=J[e>>2];c=d-3135|0;ua:{if(!(c>>>0>11|!(1<>2]==3157;break ua}if((d|0)!=3090)break ta;c=J[e+20>>2];c=(c|0)==3148|(c|0)==3157}va:{if(K[a+62|0]){wa:{if((g|0)==J[a+84>>2]){d=b;if(J[a+72>>2]==(b|0))break wa}if(!ec(a,1,1))break va;d=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[d+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=b;J[e+16>>2]=J[d+16>>2];b=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>> -2]=b;b=J[a+64>>2];d=J[a+72>>2]}J[a+72>>2]=d+1}J[a+64>>2]=b+1}if(!c)break sa;ze(a);break sa}if(K[a+62|0]){xa:{if((g|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break xa}if(!ec(a,1,1))break sa;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}if((b|0)<=1265525856){if((b|0)!= -1198879349){if((b|0)!=1265135466)break a;b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{d=J[a+80>>2];e=d+P(b,20)|0;c=J[e>>2];switch(c-70144|0){case 1:case 2:case 3:case 4:case 5:break za;case 6:break Da;case 0:break Ea;default:break Fa}}if((c|0)==70188)break Ca;if((c|0)!=70208)break za;c=J[e+20>>2]==70190;break Ba}c=J[e+20>>2]-70188|0;if(c>>>0>7|!(1<>2]){c=b;if(J[a+72>>2]==(b|0))break Ga}if(!ec(a, -1,1))break Aa;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1;ze(a);break ya}c=J[e+20>>2]==70188;break Ba}c=(J[e+20>>2]&-2)==70192}Ha:{if(K[a+62|0]){Ia:{if((d|0)==J[a+84>>2]){d=b;if(J[a+72>>2]==(b|0))break Ia}if(!ec(a,1,1))break Ha;d=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[d+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[d>> -2];J[e+4>>2]=b;J[e+16>>2]=J[d+16>>2];b=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=b;b=J[a+64>>2];d=J[a+72>>2]}J[a+72>>2]=d+1}J[a+64>>2]=b+1}if(!c)break ya}ze(a);break ya}if(K[a+62|0]){Ja:{if((d|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break Ja}if(!ec(a,1,1))break ya;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>> -2];if(b+1>>>0>>0)continue;break}break a}b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;Ka:{La:{Ma:{Na:{Oa:{Pa:{d=J[a+80>>2];e=d+P(b,20)|0;c=J[e>>2];switch(c-2674|0){case 1:break Na;case 0:break Oa;default:break Pa}}if((c|0)!=2565)break La;c=J[e+20>>2]-2622|0;if(c>>>0>14|!(1<>2]-2623|0;if(c>>>0>8)break La;if(1<>2]-2625|0;if(c>>>0>10|!(1<>2]){c=b;if(J[a+ -72>>2]==(b|0))break Ra}if(!ec(a,1,1))break Qa;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}ze(a);b=J[a+64>>2];break Ka}if(K[a+62|0]){Sa:{if((d|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break Sa}c=ec(a,1,1);b=J[a+64>>2];if(!c)break Ka;c=J[a+80>>2]+P(b,20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+ -4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}b=b+1|0;J[a+64>>2]=b}if(b+1>>>0>>0)continue;break}break a}if((b|0)!=1265525857){if((b|0)!=1298954605)break a;b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;Ta:{Ua:{Va:{Wa:{Xa:{Ya:{d=J[a+80>>2];c=d+P(b,20)|0;switch(J[c>>2]-3335|0){case 11:break Wa;case 7:break Xa;case 0:case 2:break Ya;default:break Ua}}c=J[c+20>>2]==3415;break Va}c=J[c+20>>2]==3398;break Va}c= -J[c+20>>2];c=(c|0)==3390|(c|0)==3415}Za:{if(K[a+62|0]){_a:{if((d|0)==J[a+84>>2]){d=b;if(J[a+72>>2]==(b|0))break _a}if(!ec(a,1,1))break Za;d=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[d+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=b;J[e+16>>2]=J[d+16>>2];b=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=b;b=J[a+64>>2];d=J[a+72>>2]}J[a+72>>2]=d+1}J[a+64>>2]=b+1}if(!c)break Ta;ze(a);break Ta}if(K[a+62|0]){$a:{if((d|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break $a}if(!ec(a,1,1))break Ta;c=J[a+80>> -2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;g=3262;ab:{bb:{cb:{db:{e=J[a+80>>2];c=e+P(b,20)|0;switch(J[c>>2]-3209|0){case 0:case 2:break cb;case 9:break db;default:break bb}}g=3276}d=J[c+20>>2];eb:{if(K[a+62| -0]){fb:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break fb}if(!ec(a,1,1))break eb;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[c>>2];J[e+4>>2]=b;J[e+16>>2]=J[c+16>>2];b=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}if((d|0)!=(g|0))break ab;ze(a);break ab}if(K[a+62|0]){gb:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break gb}if(!ec(a,1,1))break ab;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+ -84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}if((b|0)!=1147500129){if((b|0)!=1198877298)break a;b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;hb:{ib:{e=J[a+80>>2];d=e+P(b,20)|0;c=J[d>>2];jb:{if((c|0)!=2757){if((c|0)!=2693)break ib;c=J[d+20>>2]-2750|0;if(c>>>0>14|!(1<>2]){c=b;if(J[a+72>>2]==(b|0))break kb}if(!ec(a,1,1))break jb;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1;ze(a);break hb}d=J[d+20>>2];lb:{if(K[a+62|0]){mb:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break mb}if(!ec(a,1,1))break lb;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];e=J[a+84>>2]+ -P(J[a+72>>2],20)|0;J[e>>2]=J[c>>2];J[e+4>>2]=b;J[e+16>>2]=J[c+16>>2];b=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}if((d|0)!=2750)break hb}ze(a);break hb}if(K[a+62|0]){nb:{if((e|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break nb}if(!ec(a,1,1))break hb;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>> -2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}break a}b=0;J[a+64>>2]=0;if(f>>>0<2)break a;while(1){if(!K[a+60|0])break a;ob:{pb:{qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{d=J[a+80>>2];c=d+P(b,20)|0;switch(J[c>>2]-2309|0){case 4:break sb;case 43:break ub;case 10:break vb;case 1:break wb;case 0:break xb;default:break pb}}c=J[c+20>>2]-2362|0;if(c>>>0>29|!(1<>2];if(c-2373>>>0<4|(c|0)==2362)break tb;break pb}c=J[c+20>>2]-2373>>>0<3;break rb}if(J[c+ -20>>2]!=2381|b+2>>>0>=f>>>0|J[c+40>>2]!=2311)break pb;zk(a)}if(K[a+62|0]){yb:{if(J[a+84>>2]==J[a+80>>2]){b=J[a+72>>2];if((b|0)==J[a+64>>2])break yb}if(!ec(a,1,1))break qb;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+72>>2]}J[a+72>>2]=b+1}J[a+64>>2]=J[a+64>>2]+1;break qb}c=J[c+20>>2]==2369}zb:{if(K[a+62|0]){Ab:{if((d|0)==J[a+84>>2]){d=b;if(J[a+72>>2]==(b|0))break Ab}if(!ec(a, -1,1))break zb;d=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[d+4>>2];e=J[a+84>>2]+P(J[a+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=b;J[e+16>>2]=J[d+16>>2];b=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=b;b=J[a+64>>2];d=J[a+72>>2]}J[a+72>>2]=d+1}J[a+64>>2]=b+1}if(!c)break ob}ze(a);break ob}if(K[a+62|0]){Bb:{if((d|0)==J[a+84>>2]){c=b;if(J[a+72>>2]==(b|0))break Bb}if(!ec(a,1,1))break ob;c=J[a+80>>2]+P(J[a+64>>2],20)|0;b=J[c+4>>2];d=J[a+84>>2]+P(J[a+72>>2],20)|0;J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+16>>2]=J[c+16>>2];b=J[c+ -12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=b;b=J[a+64>>2];c=J[a+72>>2]}J[a+72>>2]=c+1}J[a+64>>2]=b+1}b=J[a+64>>2];if(b+1>>>0>>0)continue;break}}hf(a)}}function JJ(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;i=xb-304|0;xb=i;a:{b:switch((K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))>>>24|0){case 0:J[i+12>>2]=0;J[i+16>>2]=0;H[i+8|0]=0;g=J[b+12>>2];J[i+296>>2]=J[b+16>>2];J[i+292>>2]=a+12;a=J[g+32>>2];if((a|0)==-1)a=Qe(g);J[i+300>>2]=a;p=i+292| -0;f=xb+-64|0;xb=f;J[f+60>>2]=i+8;J[f+56>>2]=0;o=b;b=J[b+76>>2];a=0;c:{if(!b)break c;a=0;if(M[b+4>>2]<2)break c;a=J[b+8>>2]}c=J[p+4>>2];J[c+64>>2]=0;d:{if(!K[c+60|0])break d;while(1){e=J[c+68>>2];d=J[c+64>>2];g=0;e:{f:{g:{h:{if(a){if(d>>>0>>0){g=J[(J[c+80>>2]+P(d,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(g>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(g>>>0>M[a+8>>2])continue;break}}if(!(J[o+80>>2]&J[a>>2]))break h;g=a}a=0;if(d>>>0>=e>>>0)break f;b=J[J[c+80>>2]+P(d,20)>>2];if((b|0)!=65535)break g; -a=2;break f}if((d|0)==(e|0))break d;J[f+56>>2]=0;if(K[c+62|0]){i:{if(J[c+84>>2]==J[c+80>>2]){b=d;if(J[c+72>>2]==(b|0))break i}if(!ec(c,1,1))break e;g=J[c+80>>2]+P(J[c+64>>2],20)|0;b=J[g+4>>2];d=J[c+84>>2]+P(J[c+72>>2],20)|0;J[d>>2]=J[g>>2];J[d+4>>2]=b;J[d+16>>2]=J[g+16>>2];b=J[g+12>>2];J[d+8>>2]=J[g+8>>2];J[d+12>>2]=b;d=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=d+1;break e}c=J[p>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);b=bf((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+c|0,b,J[p+ -8>>2]);a=1;if(!b)break f;a=K[b|0]|K[b+1|0]<<8;a=(a<<8|a>>>8)&65535}J[f+52>>2]=a;c=J[p>>2];b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);e=c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;d=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);a=((c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0)+(P(b,J[f+56>>2])<<1)|0)+((a>>>0>=b>>>0?1:a)<<1)|0;a=K[a|0]|K[a+1|0]<<8;r=e+(((a<<8|a>>>8)&65535)<<2)|0;a=K[r|0]|K[r+ -1|0]<<8;J[f+48>>2]=(a<<8|a>>>8)&65535;J[f+44>>2]=r;J[f+28>>2]=p;b=f+48|0;J[f+40>>2]=b;a=f+60|0;J[f+36>>2]=a;J[f+32>>2]=f+52;J[f+12>>2]=r;J[f+8>>2]=p;J[f+24>>2]=f+28;J[f+20>>2]=b;J[f+16>>2]=f+56;J[f+4>>2]=a;d=0;l=J[f+8>>2];a=J[f+12>>2];b=K[a+2|0]|K[a+3|0]<<8;a=J[J[f+4>>2]>>2];j=J[a+8>>2];e=J[a+4>>2];j:{if(j>>>0>e>>>0?b&3840:0)break j;c=J[J[f+16>>2]>>2];if(!(!c|(J[J[f+20>>2]>>2]?0:b&64))){k=J[f+24>>2];b=J[J[k>>2]>>2];a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);q=J[J[k+4>>2]>>2];if(q>>>0>=(a<<24| -(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0)q=1;a=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);h=b+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;a=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);a=(b+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0)+(q<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=h+(((a<<8|a>>>8)&65535)<<2)|0;n=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);b=n>>>16|0;if(b&3840){a=J[J[k+8>>2]>>2];if(M[a+4>>2]>2])break j}if(J[J[k+12>>2]>>2]!=((n<<8|(n&65280)>>>8)&65535))break j;a=J[k+16>>2]; -if((b^(K[a+2|0]|K[a+3|0]<<8))&64)break j}d=J[l>>2];b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);a=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);h=d+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;a=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);a=((d+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0)+(P(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24),c)<<1)|0)+(!b<<1)|0;a=K[a|0]|K[a+1|0]<<8;d=!(K[(h+(((a<<8|a>>>8)&65535)<<2)|0)+3|0]&15)|e>>>0>=j>>>0}k:{if(d)break k;d=J[p+4>>2];b=J[d+64>>2];a=K[d+62| -0]?J[d+72>>2]:b;if(!a|b>>>0>=M[d+68>>2])break k;Ac(d,3,a-1|0,b+1|0,1,1)}Fu(J[f+60>>2],p,r);J[f+56>>2]=J[f+48>>2];c=J[p+4>>2];a=J[c+64>>2];if((a|0)==J[c+68>>2]|!K[c+60|0])break d;l:{if(K[r+2|0]&64){b=J[c+152>>2];J[c+152>>2]=b-1;if((b|0)>0)break l}if(K[c+62|0]){m:{if(J[c+84>>2]==J[c+80>>2]){b=a;if(J[c+72>>2]==(a|0))break m}if(!ec(c,1,1))break l;b=J[c+80>>2]+P(J[c+64>>2],20)|0;a=J[b+4>>2];d=J[c+84>>2]+P(J[c+72>>2],20)|0;J[d>>2]=J[b>>2];J[d+4>>2]=a;J[d+16>>2]=J[b+16>>2];a=J[b+12>>2];J[d+8>>2]=J[b+8>> -2];J[d+12>>2]=a;a=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=a+1}a=g}c=J[p+4>>2];if(K[c+60|0])continue;break}}xb=f- -64|0;g=K[i+8|0]!=0;break a;case 1:H[i+8|0]=0;J[i+12>>2]=b;g=J[b+72>>2];H[i+20|0]=0;J[i+16>>2]=g;d=K[g|0]|K[g+1|0]<<8;g=K[g+4|0]|K[g+5|0]<<8;c=a+12|0;J[i+28>>2]=c;J[i+24>>2]=0;H[i+21|0]=(d|0)==256&(g|0)!=0;a=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);J[i+32>>2]=c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));g=J[b+12>>2];J[i+296>>2]=J[b+16>>2];J[i+292>>2]=c;a=J[g+32>>2]; -if((a|0)==-1)a=Qe(g);J[i+300>>2]=a;k=i+292|0;f=xb+-64|0;xb=f;J[f+60>>2]=i+8;J[f+56>>2]=0;o=b;b=J[b+76>>2];a=0;n:{if(!b)break n;a=0;if(M[b+4>>2]<2)break n;a=J[b+8>>2]}c=J[k+4>>2];J[c+64>>2]=0;o:{if(!K[c+60|0])break o;while(1){e=J[c+68>>2];d=J[c+64>>2];g=0;p:{q:{r:{s:{if(a){if(d>>>0>>0){g=J[(J[c+80>>2]+P(d,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(g>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(g>>>0>M[a+8>>2])continue;break}}if(!(J[o+80>>2]&J[a>>2]))break s;g=a}a=0;if(d>>>0>=e>>>0)break q;b= -J[J[c+80>>2]+P(d,20)>>2];if((b|0)!=65535)break r;a=2;break q}if((d|0)==(e|0))break o;J[f+56>>2]=0;if(K[c+62|0]){t:{if(J[c+84>>2]==J[c+80>>2]){b=d;if(J[c+72>>2]==(b|0))break t}if(!ec(c,1,1))break p;g=J[c+80>>2]+P(J[c+64>>2],20)|0;b=J[g+4>>2];d=J[c+84>>2]+P(J[c+72>>2],20)|0;J[d>>2]=J[g>>2];J[d+4>>2]=b;J[d+16>>2]=J[g+16>>2];b=J[g+12>>2];J[d+8>>2]=J[g+8>>2];J[d+12>>2]=b;d=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=d+1;break p}c=J[k>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);b=bf((d<< -24|(d&65280)<<8|(d>>>8&65280|d>>>24))+c|0,b,J[k+8>>2]);a=1;if(!b)break q;a=K[b|0]|K[b+1|0]<<8;a=(a<<8|a>>>8)&65535}J[f+52>>2]=a;c=J[k>>2];b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);e=c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;d=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);a=((c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0)+(P(b,J[f+56>>2])<<1)|0)+((a>>>0>=b>>>0?1:a)<<1)|0;a=K[a|0]|K[a+1| -0]<<8;c=e+(((a<<8|a>>>8)&65535)<<3)|0;a=K[c|0]|K[c+1|0]<<8;J[f+48>>2]=(a<<8|a>>>8)&65535;J[f+44>>2]=c;J[f+28>>2]=k;b=f+48|0;J[f+40>>2]=b;a=f+60|0;J[f+36>>2]=a;J[f+32>>2]=f+52;J[f+12>>2]=c;J[f+8>>2]=k;J[f+24>>2]=f+28;J[f+20>>2]=b;J[f+16>>2]=f+56;J[f+4>>2]=a;d=J[f+12>>2];n=J[f+8>>2];a=J[n+4>>2];l=!K[J[J[f+4>>2]>>2]+12|0]&J[a+64>>2]==J[a+68>>2];u:{if(!l){b=0;if((K[d+4|0]|K[d+5|0]<<8)!=65535|(K[d+6|0]|K[d+7|0]<<8)!=65535)break u}j=J[J[f+16>>2]>>2];if(!(!j|(J[J[f+20>>2]>>2]?0:K[d+2|0]&64))){e=J[f+24>> -2];b=J[e>>2];d=J[b>>2];a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);m=J[J[e+4>>2]>>2];if(m>>>0>=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0)m=1;a=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);h=d+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;a=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);a=(d+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0)+(m<<1)|0;a=K[a|0]|K[a+1|0]<<8;d=h+(((a<<8|a>>>8)&65535)<<3)|0;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<< -16|K[d+7|0]<<24);b=J[b+4>>2];if(!(!K[J[J[e+8>>2]>>2]+12|0]&J[b+64>>2]==J[b+68>>2])){b=0;if((d&65535)!=65535|d>>>0<4294901760)break u}b=0;if(J[J[e+12>>2]>>2]!=((a<<8|(a&65280)>>>8)&65535))break u;e=J[e+16>>2];if(((K[e+2|0]|K[e+3|0]<<8)^((d&65535)<<16|a>>>16))&64)break u}b=1;if(l)break u;e=J[n>>2];d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);b=0;a=K[e+12|0]|K[e+13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);h=e+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;a=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<< -24);a=((e+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0)+(P(j,d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))<<1)|0)+(!d<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=h+(((a<<8|a>>>8)&65535)<<3)|0;if((K[a+4|0]|K[a+5|0]<<8)!=65535)break u;b=(K[a+6|0]|K[a+7|0]<<8)==65535}v:{if(b)break v;d=J[k+4>>2];b=J[d+64>>2];a=K[d+62|0]?J[d+72>>2]:b;if(!a|b>>>0>=M[d+68>>2])break v;Ac(d,3,a-1|0,b+1|0,1,1)}l=J[f+60>>2];j=J[k+4>>2];d=J[j+64>>2];m=J[j+68>>2];w:{if(!K[l+12|0]&(d|0)==(m|0))break w;a=K[c+4|0]|K[c+5|0]<<8;x:{if((a|0)==65535)break x; -b=((a<<8|a>>>8)&65535)<<2;a=J[l+24>>2];b=b+a|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);e=bf((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+a|0,J[J[j+80>>2]+P(J[l+16>>2],20)>>2],J[k+8>>2]);d=J[j+64>>2];m=J[j+68>>2];if(!e)break x;a=d+1|0;Ac(j,3,J[l+16>>2],a>>>0>>0?a:m,1,0);b=J[j+80>>2];d=J[l+16>>2];a=K[e|0]|K[e+1|0]<<8;a=(a<<8|a>>>8)&65535;J[b+P(d,20)>>2]=a;if(K[l+13|0])u=b+P(d,20)|0,v=xi(J[l+8>>2],a),I[u+12>>1]=v;H[l|0]=1;d=J[j+64>>2];m=J[j+68>>2]}a=K[c+6|0]|K[c+7|0]<<8;y:{if((a|0)==65535)break y; -b=((a<<8|a>>>8)&65535)<<2;a=J[l+24>>2];b=b+a|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+a|0;a=m-1|0;d=a>>>0>d>>>0?d:a;a=P(d,20);e=bf(b,J[a+J[j+80>>2]>>2],J[k+8>>2]);if(!e)break y;b=J[j+80>>2];h=b+a|0;a=K[e|0]|K[e+1|0]<<8;a=(a<<8|a>>>8)&65535;J[h>>2]=a;if(K[l+13|0])u=b+P(d,20)|0,v=xi(J[l+8>>2],a),I[u+12>>1]=v;H[l|0]=1}if(!(K[c+2|0]&128))break w;H[l+12|0]=1;J[l+16>>2]=J[j+64>>2]}J[f+56>>2]=J[f+48>>2];e=J[k+4>>2];a=J[e+64>>2];if((a|0)==J[e+68>>2]|!K[e+ -60|0])break o;z:{if(K[c+2|0]&64){b=J[e+152>>2];J[e+152>>2]=b-1;if((b|0)>0)break z}if(K[e+62|0]){A:{if(J[e+84>>2]==J[e+80>>2]){b=a;if(J[e+72>>2]==(a|0))break A}if(!ec(e,1,1))break z;b=J[e+80>>2]+P(J[e+64>>2],20)|0;a=J[b+4>>2];d=J[e+84>>2]+P(J[e+72>>2],20)|0;J[d>>2]=J[b>>2];J[d+4>>2]=a;J[d+16>>2]=J[b+16>>2];a=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=a;a=J[e+64>>2];b=J[e+72>>2]}J[e+72>>2]=b+1}J[e+64>>2]=a+1}a=g}c=J[k+4>>2];if(K[c+60|0])continue;break}}xb=f- -64|0;g=K[i+8|0]!=0;break a;case 2:H[i+8| -0]=0;d=a+12|0;J[i+16>>2]=d;J[i+12>>2]=b;g=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);J[i+20>>2]=d+(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24));g=K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24);J[i+24>>2]=d+(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24));a=K[a+36|0]|K[a+37|0]<<8|(K[a+38|0]<<16|K[a+39|0]<<24);J[i+32>>2]=0;J[i+28>>2]=d+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));g=J[b+12>>2];J[i+296>>2]=J[b+16>>2];J[i+292>>2]=d;a=J[g+32>>2];if((a|0)==-1)a=Qe(g);J[i+300>>2]=a;o=i+8|0;s=i+292|0;a= -J[s+4>>2];J[a+72>>2]=0;J[a+64>>2]=0;I[a+62>>1]=1;J[a+84>>2]=J[a+80>>2];f=b;b=J[b+76>>2];a=0;B:{if(!b)break B;a=0;if(M[b+4>>2]<2)break B;a=J[b+8>>2]}c=J[s+4>>2];J[c+64>>2]=0;C:{if(!K[c+60|0])break C;while(1){e=J[c+68>>2];d=J[c+64>>2];g=0;D:{E:{F:{G:{H:{I:{J:{if(a){if(d>>>0>>0){g=J[(J[c+80>>2]+P(d,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(g>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(g>>>0>M[a+8>>2])continue;break}}if(!(J[f+80>>2]&J[a>>2]))break J;g=a}a=0;if(d>>>0>=e>>>0)break H;b=J[J[c+80>> -2]+P(d,20)>>2];if((b|0)!=65535)break I;a=2;break H}if((d|0)==(e|0))break C;q=c- -64|0;if(!K[c+62|0]){m=0;break E}K:{if(J[c+84>>2]!=J[c+80>>2])break K;m=0;if(J[c+72>>2]!=(d|0))break K;b=d;break F}m=0;break G}c=J[s>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);b=bf((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+c|0,b,J[s+8>>2]);a=1;if(!b)break H;a=K[b|0]|K[b+1|0]<<8;a=(a<<8|a>>>8)&65535}n=J[s+4>>2];j=J[s>>2];l=K[j|0]|K[j+1|0]<<8|(K[j+2|0]<<16|K[j+3|0]<<24);b=l<<24|(l&65280)<<8|(l>>>8&65280|l>>> -24);e=a>>>0>>0;if(e)h=a;else h=1;d=P(b,m)<<1;b=K[j+8|0]|K[j+9|0]<<8|(K[j+10|0]<<16|K[j+11|0]<<24);c=j+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;d=d+c|0;b=(h<<1)+d|0;b=K[b|0]|K[b+1|0]<<8;h=P((b<<8|b>>>8)&65535,6);b=K[j+12|0]|K[j+13|0]<<8|(K[j+14|0]<<16|K[j+15|0]<<24);j=j+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;t=h+j|0;p=K[t|0]|K[t+1|0]<<8;b=K[t+2|0]|K[t+3|0]<<8;L:{M:{if(b&32)break M;if(!(!m|!(b&64?p:1))){a=c+((e?a:1)<<1)|0;a=K[a|0]|K[a+1|0]<<8;c=j+P((a<<8|a>>>8)&65535,6)|0;a=K[c+2|0]|K[c+ -3|0]<<8;if(a&32|(p|0)!=(K[c|0]|K[c+1|0]<<8)|(a^b)&64)break M}a=d+(!l<<1)|0;a=K[a|0]|K[a+1|0]<<8;if(!(K[(j+P((a<<8|a>>>8)&65535,6)|0)+2|0]&32))break L}b=J[n+64>>2];a=K[n+62|0]?J[n+72>>2]:b;if(!a|b>>>0>=M[n+68>>2])break L;Ac(n,3,a-1|0,b+1|0,1,1)}k=0;h=J[s+4>>2];b=K[t+2|0]|K[t+3|0]<<8;if(b&128){a=o;c=J[a+24>>2];N:{if(!c){d=J[h+72>>2];c=0;break N}d=J[h+72>>2];c=c-((d|0)==J[(o+((c-1&63)<<2)|0)+28>>2])|0}J[a+24>>2]=c+1;J[(o+((c&63)<<2)|0)+28>>2]=d}O:{if(!(b&32))break O;d=J[o+24>>2];if(!d|M[h+64>>2]>=M[h+ -68>>2])break O;l=J[h+72>>2];a=K[t+4|0]|K[t+5|0]<<8;m=J[o+12>>2]+(((a<<8|a>>>8)&65535)<<2)|0;while(1){P:{if(!d){J[o+24>>2]=0;break P}d=d-1|0;j=o+((d&63)<<2)|0;if(!pf(h,J[j+28>>2]))break O;r=J[o+4>>2];e=J[r+32>>2];if(e>>>0>2]>>>0)break P;a=J[r+28>>2];if(a-m>>>0<4)break P;b=K[m|0]|K[m+1|0]<<8|(K[m+2|0]<<16|K[m+3|0]<<24);n=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);c=J[o+16>>2]+((J[J[h+80>>2]+P(J[h+64>>2],20)>>2]+(n&1073741823)|0)+(b<<25&1073741824)<<1)|0;b=J[r+24>>2];if(e>>>0>>0|a-c>>>0< -2)break P;a=K[c|0]|K[c+1|0]<<8;k=((a<<8|a>>>8)&65535)+k|0;if(n>>>0>=1073741824){a=J[o+20>>2]+(k<<1)|0;if(e>>>0>>0|J[r+28>>2]-a>>>0<2)break P;a=K[a|0]|K[a+1|0]<<8;if(!ec(h,1,1))break O;e=(a<<8|a>>>8)&65535;a=J[h+64>>2];Q:{if(a>>>0>2]){c=J[h+72>>2];q=J[h+84>>2];a=J[h+80>>2]+P(a,20)|0;break Q}q=J[h+84>>2];c=J[h+72>>2];a=c-1|0;a=q+P(a>>>0<=c>>>0?a:0,20)|0}b=J[a+4>>2];c=P(c,20)+q|0;J[c>>2]=J[a>>2];J[c+4>>2]=b;J[c+16>>2]=J[a+16>>2];b=J[a+12>>2];J[c+8>>2]=J[a+8>>2];J[c+12>>2]=b;J[c>>2]=e;J[h+ -64>>2]=J[h+64>>2]+1;J[h+72>>2]=J[h+72>>2]+1;c=J[o+24>>2]-1|0;e=J[(o+((c&63)<<2)|0)+28>>2];if(c>>>0>d>>>0)while(1){J[o+24>>2]=c;if(!pf(h,J[(o+((c&63)<<2)|0)+28>>2]))break O;if(!ec(h,1,1))break O;a=J[h+64>>2];R:{if(a>>>0>2]){c=J[h+72>>2];q=J[h+84>>2];a=J[h+80>>2]+P(a,20)|0;break R}q=J[h+84>>2];c=J[h+72>>2];a=c-1|0;a=q+P(a>>>0<=c>>>0?a:0,20)|0}b=J[a+4>>2];c=P(c,20)+q|0;J[c>>2]=J[a>>2];J[c+4>>2]=b;J[c+16>>2]=J[a+16>>2];b=J[a+12>>2];J[c+8>>2]=J[a+8>>2];J[c+12>>2]=b;J[c>>2]=65535;J[h+64>>2]=J[h+ -64>>2]+1;J[h+72>>2]=J[h+72>>2]+1;c=J[o+24>>2]-1|0;if(d>>>0>>0)continue;break}if(!pf(h,e+1|0))break O;xh(h,J[j+28>>2],J[h+72>>2])}m=m+4|0;if((n|0)>=0)continue}break}pf(h,l)}c=J[s+4>>2];b=J[c+64>>2];if((b|0)==J[c+68>>2]|!K[c+60|0])break C;m=p<<8|p>>>8;S:{if(!(K[t+2|0]&64))break S;a=J[c+152>>2];J[c+152>>2]=a-1;if((a|0)<=0)break S;a=g;break D}q=c- -64|0;if(!K[c+62|0]){d=b;a=g;break E}if(!(J[c+84>>2]!=J[c+80>>2]|J[c+72>>2]!=(b|0))){d=b;a=g;break F}a=g}if(!ec(c,1,1))break D;g=J[c+80>>2]+P(J[c+64>>2], -20)|0;b=J[g+4>>2];d=J[c+84>>2]+P(J[c+72>>2],20)|0;J[d>>2]=J[g>>2];J[d+4>>2]=b;J[d+16>>2]=J[g+16>>2];b=J[g+12>>2];J[d+8>>2]=J[g+8>>2];J[d+12>>2]=b;d=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[q>>2]=d+1}m=m&65535;c=J[s+4>>2];if(K[c+60|0])continue;break}}hf(c);g=K[i+8|0]!=0;break a;case 4:g=Gu(a+12|0,b);break a;case 5:break b;default:break a}J[i+16>>2]=0;H[i+8|0]=0;J[i+12>>2]=b;g=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);a=a+12|0;J[i+20>>2]=(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))+a;g=J[b+ -12>>2];J[i+296>>2]=J[b+16>>2];J[i+292>>2]=a;a=J[g+32>>2];if((a|0)==-1)a=Qe(g);J[i+300>>2]=a;f=xb+-64|0;xb=f;J[f+60>>2]=i+8;k=i+292|0;a=J[k+4>>2];J[a+72>>2]=0;J[a+64>>2]=0;I[a+62>>1]=1;J[a+84>>2]=J[a+80>>2];J[f+56>>2]=0;o=b;b=J[b+76>>2];a=0;T:{if(!b)break T;a=0;if(M[b+4>>2]<2)break T;a=J[b+8>>2]}c=J[k+4>>2];J[c+64>>2]=0;U:{if(!K[c+60|0])break U;while(1){e=J[c+68>>2];d=J[c+64>>2];g=0;V:{W:{X:{Y:{if(a){if(d>>>0>>0){g=J[(J[c+80>>2]+P(d,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(g>>>0>2])continue; -break}while(1){a=b;b=a+12|0;if(g>>>0>M[a+8>>2])continue;break}}if(!(J[o+80>>2]&J[a>>2]))break Y;g=a}a=0;if(d>>>0>=e>>>0)break W;b=J[J[c+80>>2]+P(d,20)>>2];if((b|0)!=65535)break X;a=2;break W}if((d|0)==(e|0))break U;J[f+56>>2]=0;if(K[c+62|0]){Z:{if(J[c+84>>2]==J[c+80>>2]){b=d;if((b|0)==J[c+72>>2])break Z}if(!ec(c,1,1))break V;g=J[c+80>>2]+P(J[c+64>>2],20)|0;b=J[g+4>>2];d=J[c+84>>2]+P(J[c+72>>2],20)|0;J[d>>2]=J[g>>2];J[d+4>>2]=b;J[d+16>>2]=J[g+16>>2];b=J[g+12>>2];J[d+8>>2]=J[g+8>>2];J[d+12>>2]=b;d= -J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=d+1;break V}c=J[k>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);b=bf((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+c|0,b,J[k+8>>2]);a=1;if(!b)break W;a=K[b|0]|K[b+1|0]<<8;a=(a<<8|a>>>8)&65535}J[f+52>>2]=a;c=J[k>>2];b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);e=c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;d=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16| -K[c+11|0]<<24);a=((c+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0)+(P(b,J[f+56>>2])<<1)|0)+((a>>>0>=b>>>0?1:a)<<1)|0;a=K[a|0]|K[a+1|0]<<8;n=e+(((a<<8|a>>>8)&65535)<<3)|0;a=K[n|0]|K[n+1|0]<<8;J[f+48>>2]=(a<<8|a>>>8)&65535;J[f+44>>2]=n;J[f+28>>2]=k;b=f+48|0;J[f+40>>2]=b;a=f+60|0;J[f+36>>2]=a;J[f+32>>2]=f+52;J[f+12>>2]=n;J[f+8>>2]=k;J[f+24>>2]=f+28;J[f+20>>2]=b;J[f+16>>2]=f+56;J[f+4>>2]=a;a=0;e=J[f+8>>2];d=J[f+12>>2];b=K[d+2|0]|K[d+3|0]<<8;_:{if(b&65283)if((K[d+4|0]|K[d+5|0]<<8)!=65535|(K[d+6|0]|K[d+ -7|0]<<8)!=65535)break _;c=J[J[f+16>>2]>>2];if(!(!c|(J[J[f+20>>2]>>2]?0:b&64))){l=J[f+24>>2];b=J[J[l>>2]>>2];a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);m=J[J[l+4>>2]>>2];if(m>>>0>=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0)m=1;a=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);d=b+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;a=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);a=(b+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0)+(m<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=d+(((a<<8|a>>>8)&65535)<<3)| -0;b=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);j=a;d=(a&65535)<<16|b>>>16;if(d&65283){a=0;if((j&65535)!=65535|j>>>0<4294901760)break _}a=0;if(J[J[l+12>>2]>>2]!=((b<<8|(b&65280)>>>8)&65535))break _;b=J[l+16>>2];if((d^(K[b+2|0]|K[b+3|0]<<8))&64)break _}e=J[e>>2];d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);a=1;b=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);b=((e+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0)+(P(d<<24|(d&65280)<<8|(d>>>8& -65280|d>>>24),c)<<1)|0)+(!d<<1)|0;b=K[b|0]|K[b+1|0]<<8;d=(b<<8|b>>>8)&65535;b=K[e+12|0]|K[e+13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);b=e+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;c=(d<<3)+b|0;if(!((K[c+2|0]|K[c+3|0]<<8)&65283))break _;a=0;if((K[c+4|0]|K[c+5|0]<<8)!=65535)break _;a=b+(d<<3)|0;a=(K[a+6|0]|K[a+7|0]<<8)==65535}$:{if(a)break $;d=J[k+4>>2];b=J[d+64>>2];a=K[d+62|0]?J[d+72>>2]:b;if(!a|b>>>0>=M[d+68>>2])break $;Ac(d,3,a-1|0,b+1|0,1,1)}Eu(J[f+60>>2],k,n);J[f+56>>2]=J[f+48>>2];c=J[k+4>>2];b= -J[c+64>>2];if((b|0)==J[c+68>>2]|!K[c+60|0])break U;aa:{if(K[n+2|0]&64){a=J[c+152>>2];J[c+152>>2]=a-1;if((a|0)>0)break aa}if(K[c+62|0]){ba:{if(J[c+84>>2]==J[c+80>>2]){a=b;if(J[c+72>>2]==(a|0))break ba}if(!ec(c,1,1))break aa;b=J[c+80>>2]+P(J[c+64>>2],20)|0;a=J[b+4>>2];d=J[c+84>>2]+P(J[c+72>>2],20)|0;J[d>>2]=J[b>>2];J[d+4>>2]=a;J[d+16>>2]=J[b+16>>2];a=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=a;b=J[c+64>>2];a=J[c+72>>2]}J[c+72>>2]=a+1}J[c+64>>2]=b+1}a=g}c=J[k+4>>2];if(K[c+60|0])continue;break}}hf(c); -xb=f- -64|0;g=K[i+8|0]!=0}xb=i+304|0;return g|0}function VC(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;e=xb-784|0;xb=e;J[e+700>>2]=0;d=J[a+20>>2];J[a+16>>2]=d;a:{if(!d)break a;c=J[a+24>>2];b:{g=L[a+32>>1];if(!g)break b;if(!c){c=0;break b}while(1){if((d|0)!=J[(b<<2)+c>>2]){b=b+1|0;if((g|0)!=(b|0))continue;break b}break}break a}b=g+1|0;I[a+32>>1]=b;b=b&65535;if((b|0)>J[a+28>>2]){c=eD(a,c,b,8,275571);if(!c)break a;J[a+24>>2]=c;b=L[a+32>>1];J[a+28>>2]=b<<1}J[((b<< -2)+c|0)-4>>2]=d;Ab[J[a+572>>2]](a);I[a+476>>1]=L[a+476>>1]+1;b=xb-80|0;xb=b;J[a+16>>2]=J[a+20>>2];c=a+20|0;if(c)J[c>>2]=0;c:{d:{e:{if(!(K[a+13|0]&8)){d=0;if((Ab[J[a+640>>2]](J[a+628>>2],J[a+16>>2],0)|0)!=J[a+16>>2]){c=J[a+628>>2];J[b+32>>2]=J[a>>2];Ob(c,283984,279797,b+32|0);break c}if((Ab[J[a+632>>2]](J[a+628>>2],b+78|0,2)|0)!=2){c=J[a+628>>2];J[b+16>>2]=J[a>>2];Ob(c,283984,279929,b+16|0);break c}if(K[a+12|0]&128){g=K[b+79|0];H[b+79|0]=K[b+78|0];H[b+78|0]=g}g=Sd(a,L[b+78>>1],12,280103);if(!g)break c; -if((Ab[J[a+632>>2]](J[a+628>>2],g,P(L[b+78>>1],12))|0)!=(P(L[b+78>>1],12)|0)){c=J[a+628>>2];J[b>>2]=J[a>>2];Ob(c,283984,280244,b);Kb(g);break c}if(!c)break d;Ab[J[a+632>>2]](J[a+628>>2],c,4)|0;break e}f:{d=J[a+616>>2];if(d>>>0>=2){f=J[a+16>>2];if(f>>>0<=d-2>>>0)break f}c=J[a+628>>2];J[b+48>>2]=J[a>>2];Ob(c,283984,279929,b+48|0);d=0;break c}d=b+78|0;Pc(d,f+J[a+612>>2]|0,2);if(K[a+12|0]&128){g=K[d+1|0];H[d+1|0]=K[d|0];H[d|0]=g}d=0;g=Sd(a,L[b+78>>1],12,280103);if(!g)break c;k=P(L[b+78>>1],12);f=f+2| -0;if(M[a+616>>2]>>0){c=J[a+628>>2];J[b+64>>2]=J[a>>2];Ob(c,283984,280353,b- -64|0);Kb(g);break c}Pc(g,f+J[a+612>>2]|0,k);if(!c)break d;d=f+P(L[b+78>>1],12)|0;if(M[a+616>>2]>>0)break e;Pc(c,d+J[a+612>>2]|0,4)}if(!(K[a+12|0]&128))break d;_h(c)}J[e+700>>2]=g;d=L[b+78>>1]}xb=b+80|0;n=d;if(!d){b=J[a+628>>2];c=J[a>>2];J[e+4>>2]=J[a+20>>2];J[e>>2]=c;Ob(b,266528,262941,e);break a}J[a+12>>2]=J[a+12>>2]&-65;wr(a);Qn(a);J[e+688>>2]=1;xc(a,284,e+688|0);o=a+40|0;k=n;g=k;f=J[e+700>>2];b=f;g:{h:{while(1){if(K[a+ -12|0]&128){dk(b,2);Zh(b+4|0,2)}if(L[b>>1]==277){if(!On(a,b))break h;I[b>>1]=0}b=b+12|0;c=(g|0)>1;g=g-1|0;if(c)continue;break}b=k;i=f;d=0;while(1){h=b;c=L[i>>1];i:{if(!c)break i;g=J[a+660>>2];b=g>>>0>d>>>0?d:0;if(c>>>0>2]+(b<<2)>>2]>>2]){b=0;if(!l){c=J[a+628>>2];J[e+672>>2]=J[a>>2];yc(c,266528,263883,e+672|0);g=J[a+660>>2]}l=1}j:{if(b>>>0>=g>>>0)break j;j=L[i>>1];p=J[a+656>>2];k:{while(1){c=J[p+(b<<2)>>2];d=J[c>>2];if(d>>>0>=j>>>0)break k;b=b+1|0;if((g|0)!=(b|0))continue;break}d=g;m=1; -break i}if((d|0)!=(j|0))break j;if(!L[c+12>>1]){d=b;I[i>>1]=0;break i}q=L[i+2>>1];l:{while(1){d=b;s=J[c+8>>2];if((q|0)==(s&65535)|b>>>0>=g>>>0|!s)break l;b=b+1|0;if(g>>>0>b>>>0){c=J[p+(b<<2)>>2];if(J[c>>2]==(j|0))continue}break}c=J[a+628>>2];g=J[a>>2];J[e+664>>2]=J[J[p+(d<<2)>>2]+16>>2];J[e+660>>2]=q;J[e+656>>2]=g;yc(c,266528,264708,e+656|0);d=b;I[i>>1]=0;break i}g=L[c+4>>1];b=g<<16>>16;m:{n:{o:switch(g-65533|0){case 1:b=L[a+98>>1];break;case 0:case 2:break n;default:break o}g=J[i+4>>2];if(g>>>0< -b>>>0)break m;if(b>>>0>=g>>>0)break n;g=J[a+628>>2];p=J[a>>2];j=J[nd(a,j)+16>>2];q=J[i+4>>2];J[e+648>>2]=b;J[e+644>>2]=q;J[e+640>>2]=j;yc(g,p,276005,e+640|0);j=L[i>>1]}p:{q:{r:{s:{t:{b=j&65535;switch(b-256|0){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:case 21:case 24:case 25:case 26:case 27:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:break i; -case 17:case 23:case 68:case 69:break q;case 3:break r;case 0:case 1:case 22:case 28:case 66:case 67:case 82:break s;default:break t}}if(b-32997>>>0>=2)break i}if(!On(a,i))break h;break p}if(J[i+4>>2]==1){c=L[i+2>>1];b=J[i+8>>2];if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(c<<2)>>2]|0;b=J[J[a+468>>2]+(c<<2)>>2]&b;J[e+692>>2]=b;J[e+592>>2]=b&65535;if(xc(a,259,e+592|0))break i;break h}if(L[i+2>>1]==4){if(!UC(a,i,e+692|0))break h;b=L[i>>1];J[e+608>>2]=L[e+692>>1];if(xc(a,b,e+608|0))break p;break h}if(!TC(a, -i,e+698|0))break h;b=L[i>>1];J[e+624>>2]=L[e+698>>1];if(xc(a,b,e+624|0))break p;break h}b=L[c+12>>1];c=(b>>>3&8188)+o|0;J[c>>2]=J[c>>2]|1<>1]=0;break i}c=J[a+628>>2];g=J[a>>2];j=J[nd(a,j)+16>>2];p=J[i+4>>2];J[e+584>>2]=b;J[e+580>>2]=p;J[e+576>>2]=j;yc(c,g,275793,e+576|0);I[i>>1]=0;break i}d=b;m=1}i=i+12|0;b=h-1|0;if((h|0)>1)continue;break}if(m){b=0;g=k;h=f;while(1){i=g;d=L[h>>1];u:{if(!d)break u;g=J[a+660>>2];b=g>>>0>b>>>0&d>>>0>=M[J[J[a+656>>2]+(b<<2)>>2]>>2]?b:0;v:{w:{x:{if(b>>>0>= -g>>>0)break x;c=J[a+656>>2];y:{while(1){j=J[J[(b<<2)+c>>2]>>2];if(j>>>0>=d>>>0)break y;b=b+1|0;if((g|0)!=(b|0))continue;break}b=g;break x}if((d|0)==(j|0))break w}c=J[a+628>>2];g=J[a>>2];J[e+568>>2]=d;J[e+564>>2]=d;J[e+560>>2]=g;yc(c,266528,265288,e+560|0);j=L[h>>1];l=L[h+2>>1];d=0;g=xb-16|0;xb=g;c=Qb(20);z:{if(!c)break z;Pd(c,0,20);J[c+12>>2]=16842817;J[c+8>>2]=l;J[c+4>>2]=-131075;J[c>>2]=j;l=Qb(32);J[c+16>>2]=l;if(!l){Kb(c);break z}J[g>>2]=j;Md(l,271426,g);d=c}xb=g+16|0;A:{if(Gg(a,d,1)){c=J[a+656>> -2];g=J[a+660>>2];if(g)break A;g=0;b=0;break w}c=J[a+628>>2];d=L[h>>1];J[e+532>>2]=d;J[e+528>>2]=d;yc(c,266528,265865,e+528|0);break v}d=L[h>>1];b=0;while(1){if(d>>>0<=M[J[(b<<2)+c>>2]>>2])break w;b=b+1|0;if((g|0)!=(b|0))continue;break}b=g}d=J[(b<<2)+c>>2];l=L[h+2>>1];while(1){j=b;d=J[d+8>>2];if((l|0)==(d&65535)|!d|b>>>0>=g>>>0)break u;b=b+1|0;if(g>>>0>b>>>0){d=J[(b<<2)+c>>2];if(J[d>>2]==L[h>>1])continue}break}d=J[a+628>>2];g=J[a>>2];J[e+552>>2]=J[J[(j<<2)+c>>2]+16>>2];J[e+548>>2]=l;J[e+544>>2]=g; -yc(d,266528,264708,e+544|0)}I[h>>1]=0}h=h+12|0;g=i-1|0;if((i|0)>1)continue;break}}B:{if(L[a+88>>1]!=6|L[a+138>>1]!=2)break B;g=0;b=f;while(1){if(L[b>>1]!=273){b=b+12|0;g=g+1|0;if(n>>>0>(g&65535)>>>0)continue;break B}break}if(J[b+4>>2]!=1)break B;g=0;b=f;while(1){if(L[b>>1]!=279){b=b+12|0;g=g+1|0;if(n>>>0>(g&65535)>>>0)continue;break B}break}if(J[b+4>>2]!=1)break B;I[a+138>>1]=1;yc(J[a+628>>2],266528,266546,0)}b=J[o>>2];if(!(b&2)){b=J[a+628>>2];a=J[a>>2];J[e+20>>2]=267249;J[e+16>>2]=a;Ob(b,283968, -275448,e+16|0);break h}C:{if(!(b&4)){b=cD(a);J[a+68>>2]=J[a+56>>2];J[a+72>>2]=J[a+100>>2];J[a+76>>2]=J[a- -64>>2];c=J[a+12>>2]&-1025;break C}b=$C(a);c=J[a+12>>2]|1024}J[a+12>>2]=c;J[a+180>>2]=b;if(!b){b=J[a+628>>2];a=J[a>>2];J[e+36>>2]=c&1024?268450:269008;J[e+32>>2]=a;Ob(b,266528,267944,e+32|0);break h}J[a+176>>2]=b;if(L[a+138>>1]==2)J[a+176>>2]=(b>>>0)/L[a+98>>1];D:{E:{F:{d=J[o>>2];if(!(d&33554432)){c=c&1024;if(c|((b|0)!=1|L[a+88>>1]!=6))break F;J[o>>2]=d|33554432}p=a+184|0;m=a+188|0;while(1){g= -k;G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{d=L[f>>1];R:{if(d>>>0<=529)switch(d-255|0){case 1:case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 19:case 20:case 21:case 22:case 23:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 67:case 68:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 82:case 83:break I; -case 0:break K;case 42:case 66:case 81:break M;case 46:case 65:break N;case 24:case 70:break O;case 18:case 69:break P;case 85:case 86:break Q;case 3:case 25:case 26:case 84:break R;default:break J}S:switch(d-530|0){case 1:break I;case 2:break L;case 0:break M;default:break S}if((d|0)!=32996)break I}if(J[f+4>>2]==1){c=L[f+2>>1];b=J[f+8>>2];if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(c<<2)>>2]|0;b=J[J[a+468>>2]+(c<<2)>>2]&b;J[e+692>>2]=b;J[e+256>>2]=b&65535;if(xc(a,d,e+256|0))break G;break h}if(!((d| -0)!=258|L[f+2>>1]!=4)){if(!UC(a,f,e+692|0))break h;b=L[f>>1];J[e+272>>2]=L[e+692>>1];if(xc(a,b,e+272|0))break G;break h}if(!TC(a,f,e+698|0))break h;b=L[f>>1];J[e+288>>2]=L[e+698>>1];if(xc(a,b,e+288|0))break G;break h}c=J[f+4>>2];k=L[a+98>>1];if(c>>>0>>0)break E;if(c>>>0>k>>>0){b=J[a+628>>2];c=J[a>>2];d=J[nd(a,d)+16>>2];i=J[f+4>>2];J[e+376>>2]=k;J[e+372>>2]=i;J[e+368>>2]=d;yc(b,c,276005,e+368|0);c=J[f+4>>2]}b=e+704|0;if(c>>>0>=11){b=Sd(a,c,8,280789);if(!b)break h}T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{c= -L[f+2>>1];switch(c-1|0){case 11:break W;case 10:break Y;case 4:case 9:break Z;case 3:case 8:break _;case 2:case 7:break $;case 0:case 5:break aa;default:break X}}if(!tr(a,f,b))break U;i=J[f+4>>2];d=i-1|0;if(L[f+2>>1]==1){if((d|0)<0)break V;h=0;c=d;j=i&3;if(j)while(1){O[(c<<3)+b>>3]=K[b+c|0];c=c-1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(d>>>0<3)break V;while(1){O[(c<<3)+b>>3]=K[b+c|0];d=c-1|0;O[(d<<3)+b>>3]=K[b+d|0];d=c-2|0;O[(d<<3)+b>>3]=K[b+d|0];d=c-3|0;O[(d<<3)+b>>3]=K[b+d|0];c=c-4|0;if(d)continue; -break}break V}if((d|0)<0)break V;h=0;c=d;j=i&3;if(j)while(1){O[(c<<3)+b>>3]=H[b+c|0];c=c-1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(d>>>0<3)break V;while(1){O[(c<<3)+b>>3]=H[b+c|0];d=c-1|0;O[(d<<3)+b>>3]=H[b+d|0];d=c-2|0;O[(d<<3)+b>>3]=H[b+d|0];d=c-3|0;O[(d<<3)+b>>3]=H[b+d|0];c=c-4|0;if(d)continue;break}break V}ba:{ca:{da:{c=J[f+4>>2];if(c>>>0<=2){if(L[a+456>>1]==19789){i=0;ea:switch(c-1|0){case 0:h=J[f+8>>2]>>>16|0;break ca;case 1:break ea;default:break ba}d=J[f+8>>2];I[b+2>>1]=d;h=d>>>16|0;break ca}i= -0;fa:switch(c-1|0){case 0:break da;case 1:break fa;default:break ba}h=J[f+8>>2];I[b+2>>1]=h>>>16;break ca}if(!xe(a,f,b))break U;i=J[f+4>>2];break ba}h=J[f+8>>2]}I[b>>1]=h;i=c}d=i-1|0;if(L[f+2>>1]==3){if((d|0)<0)break V;h=0;c=d;j=i&3;if(j)while(1){O[(c<<3)+b>>3]=L[(c<<1)+b>>1];c=c-1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(d>>>0<3)break V;while(1){O[(c<<3)+b>>3]=L[(c<<1)+b>>1];d=c-1|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];d=c-2|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];d=c-3|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];c=c-4| -0;if(d)continue;break}break V}if((d|0)<0)break V;h=0;c=d;j=i&3;if(j)while(1){O[(c<<3)+b>>3]=I[(c<<1)+b>>1];c=c-1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(d>>>0<3)break V;while(1){O[(c<<3)+b>>3]=I[(c<<1)+b>>1];d=c-1|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];d=c-2|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];d=c-3|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];c=c-4|0;if(d)continue;break}break V}ga:{if(J[f+4>>2]==1){J[b>>2]=J[f+8>>2];break ga}if(!xe(a,f,b))break U;c=L[f+2>>1]}i=J[f+4>>2];d=i-1|0;if((c&65535)==4){if((d|0)<0)break V;h= -0;c=d;j=i&3;if(j)while(1){O[(c<<3)+b>>3]=M[(c<<2)+b>>2];c=c-1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(d>>>0<3)break V;while(1){O[(c<<3)+b>>3]=M[(c<<2)+b>>2];d=c-1|0;O[(d<<3)+b>>3]=M[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=M[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=M[(d<<2)+b>>2];c=c-4|0;if(d)continue;break}break V}if((d|0)<0)break V;h=0;c=d;j=i&3;if(j)while(1){O[(c<<3)+b>>3]=J[(c<<2)+b>>2];c=c-1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(d>>>0<3)break V;while(1){O[(c<<3)+b>>3]=J[(c<<2)+b>>2];d=c-1|0; -O[(d<<3)+b>>3]=J[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=J[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=J[(d<<2)+b>>2];c=c-4|0;if(d)continue;break}break V}if(!SC(a,f,b))break U;i=J[f+4>>2];d=i-1|0;if((d|0)<0)break V;h=0;c=d;j=i&3;if(j)while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];c=c-1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(d>>>0<3)break V;while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];d=c-1|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];c=c-4|0;if(d)continue; -break}break V}ha:{if(J[f+4>>2]==1){N[b>>2]=N[f+8>>2];l=0;i=1;break ha}if(!xe(a,f,b))break U;i=J[f+4>>2];l=i-1|0;if((l|0)<0)break V}h=0;c=l;d=c+1&3;if(d)while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];c=c-1|0;h=h+1|0;if((d|0)!=(h|0))continue;break}if(l>>>0<3)break V;while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];d=c-1|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];c=c-4|0;if(d)continue;break}break V}d=J[a+628>>2];k=J[a>>2];t=e,u=J[nd(a,L[f>>1])+16>>2],J[t+ -340>>2]=u;J[e+336>>2]=c;Ob(d,k,281200,e+336|0);break U}if(!xe(a,f,b))break U;i=J[f+4>>2]}r=O[b>>3];h=0;c=(i|0)<(k|0)?i:k;if((c|0)<2)break T;c=c&65535;d=c>>>0<=2?2:c;c=1;while(1){if(O[(c<<3)+b>>3]==r){c=c+1|0;if((d|0)!=(c|0))continue;break T}break}c=J[a+628>>2];d=J[a>>2];t=e,u=J[nd(a,L[f>>1])+16>>2],J[t+352>>2]=u;Ob(c,d,280941,e+352|0)}h=1;r=0}if((e+704|0)!=(b|0))Kb(b);if(h)break h;b=L[f>>1];O[e+320>>3]=r;if(xc(a,b,e+320|0))break G;break h}if(RC(a,f,J[a+180>>2],p))break G;break h}if(RC(a,f,J[a+180>> -2],m))break G;break h}i=L[a+84>>1];c=1<>2]=c;b=J[f+4>>2];ia:{if((b|0)==(c|0)&(d|0)!=320)break ia;k=3<>>0>b>>>0)break H;c=b;if(k>>>0>=b>>>0)break ia;b=J[a+628>>2];c=J[a>>2];d=J[nd(a,d)+16>>2];h=J[f+4>>2];J[e+424>>2]=k;J[e+420>>2]=h;J[e+416>>2]=d;yc(b,c,276005,e+416|0);c=J[f+4>>2]}j=2<>2]=j;b=Sd(a,c,2,270997);if(!b)break G;if(xe(a,f,b)){if(J[f+4>>2]==1<>1]){J[e+692>>2]=0;j=0}c=L[f>>1];J[e+384>>2]=b;J[e+392>>2]=b+(j<<1);J[e+388>>2]=b+j;xc(a,c,e+384|0)}Kb(b);break G}b= -J[f+4>>2];if(b>>>0>=3){b=J[a+628>>2];c=J[a>>2];d=J[nd(a,d)+16>>2];J[e+436>>2]=J[f+4>>2];J[e+432>>2]=d;yc(b,c,280538,e+432|0);break G}ja:switch(L[f+2>>1]-1|0){case 0:case 5:if(!tr(a,f,e+704|0))break G;b=L[f>>1];J[e+448>>2]=K[e+704|0];J[e+452>>2]=K[e+705|0];xc(a,b,e+448|0);break G;case 2:case 7:break ja;default:break G}ka:{if(L[a+456>>1]==19789){j=0;h=0;la:switch(b-1|0){case 0:h=J[f+8>>2]>>>16|0;break ka;case 1:break la;default:break ka}j=J[f+8>>2];h=j>>>16|0;break ka}j=0;h=0;ma:{na:switch(b-1|0){case 0:c= -L[f+8>>1];j=0;break ma;case 1:break na;default:break ka}c=J[f+8>>2];j=c>>>16|0}h=c&65535}J[e+464>>2]=h;J[e+468>>2]=j&65535;xc(a,d,e+464|0);break G}if(L[f+2>>1]==5){On(a,f);break G}c=Sd(a,J[f+4>>2],4,284048);if(!c)break G;oa:{pa:{if(J[f+4>>2]==1){J[c>>2]=J[f+8>>2];break pa}if(!xe(a,f,c))break oa}d=Sd(a,J[f+4>>2],4,284048);if(!d)break oa;h=J[f+4>>2];qa:{if(!h)break qa;i=0;b=0;if(h>>>0>=4){j=h&-4;l=0;while(1){k=b<<2;N[k+d>>2]=M[c+k>>2];q=k|4;N[q+d>>2]=M[c+q>>2];q=k|8;N[q+d>>2]=M[c+q>>2];k=k|12;N[k+d>> -2]=M[c+k>>2];b=b+4|0;l=l+4|0;if((j|0)!=(l|0))continue;break}}k=h&3;if(!k)break qa;while(1){h=b<<2;N[h+d>>2]=M[c+h>>2];b=b+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}}b=L[f>>1];J[e+480>>2]=d;xc(a,b,e+480|0);Kb(d)}Kb(c);break G}J[e+692>>2]=0;d=L[f+2>>1];b=J[f+8>>2];c=1;if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(d<<2)>>2]|0;ra:switch((J[J[a+468>>2]+(d<<2)>>2]&b)-2|0){case 1:c=2;break;case 0:break ra;default:break G}J[e+496>>2]=c;J[e+692>>2]=c;xc(a,254,e+496|0);break G}if(!d)break G}On(a,f);break G}b= -J[a+628>>2];c=J[a>>2];d=J[nd(a,d)+16>>2];i=J[f+4>>2];J[e+408>>2]=k;J[e+404>>2]=i;J[e+400>>2]=d;yc(b,c,275793,e+400|0)}f=f+12|0;k=g-1|0;if((g|0)>1)continue;break}sa:{if(L[a+88>>1]!=6)break sa;ta:{if(!(H[o+1|0]&1)){yc(J[a+628>>2],266528,271315,0);J[e+240>>2]=6;if(xc(a,262,e+240|0))break ta;break h}if(L[a+90>>1]!=2)break ta;I[a+90>>1]=6;yc(J[a+628>>2],266528,271769,0)}b=J[o>>2];if(!(b&64)){yc(J[a+628>>2],266528,272081,0);J[e+224>>2]=8;if(!xc(a,258,e+224|0))break h;b=J[o>>2]}if(b&65536)break sa;ua:switch(L[a+ -90>>1]){case 2:case 6:yc(J[a+628>>2],266528,272429,0);J[e+192>>2]=3;if(xc(a,277,e+192|0))break sa;break h;case 0:case 1:break ua;default:break sa}yc(J[a+628>>2],266528,272811,0);J[e+208>>2]=1;if(!xc(a,277,e+208|0))break h}if(!(K[o+3|0]&4|L[a+90>>1]!=3)){b=J[a+628>>2];a=J[a>>2];J[e+52>>2]=273023;J[e+48>>2]=a;Ob(b,283968,275448,e+48|0);break h}va:{wa:{b=L[a+88>>1];if((b|0)==6)break wa;if(!(H[o+3|0]&1)){xa:{ya:switch(L[a+138>>1]-1|0){case 1:if(J[a+180>>2]==L[a+98>>1])break xa;break D;case 0:break ya; -default:break xa}if(M[a+180>>2]>1)break D}b=J[a+628>>2];c=J[a>>2];t=e,u=J[nd(a,279)+16>>2],J[t+132>>2]=u;J[e+128>>2]=c;yc(b,266528,273461,e+128|0);b=J[e+700>>2];if((sr(a,b,n)|0)>=0)break va;break g}za:{if(!J[J[p>>2]>>2]|J[a+180>>2]!=1)break za;c=J[J[m>>2]>>2];Aa:{if(!c)break Aa;if((b|0)==1)if(c>>>0>(Ab[J[a+648>>2]](J[a+628>>2])|0)-J[J[a+184>>2]>>2]>>>0)break Aa;if(J[a+8>>2]|L[a+88>>1]!=1)break za;if(M[J[a+188>>2]>>2]>=P(Ye(a),J[a+60>>2])>>>0)break za}b=J[a+628>>2];c=J[a>>2];t=e,u=J[nd(a,279)+16>> -2],J[t+180>>2]=u;J[e+176>>2]=c;yc(b,266528,273690,e+176|0);b=J[e+700>>2];if((sr(a,b,n)|0)>=0)break va;break g}if(L[a+138>>1]!=1|M[a+180>>2]<3|L[a+88>>1]!=1)break wa;b=J[m>>2];c=J[b+4>>2];if(!c)break wa;b=J[b>>2];if(!b|(b|0)==(c|0))break wa;b=J[a+628>>2];c=J[a>>2];t=e,u=J[nd(a,279)+16>>2],J[t+164>>2]=u;J[e+160>>2]=c;yc(b,266528,274041,e+160|0);b=J[e+700>>2];if((sr(a,b,n)|0)>=0)break va;break g}b=J[e+700>>2]}if(b)Kb(b);d=J[o>>2];if(!(d&524288))I[a+106>>1]=-1<>1]^-1;c=J[a+180>>2];Ba:{if(c>>> -0<2)break Ba;J[a+192>>2]=1;g=J[a+184>>2];b=1;while(1){f=g+(b<<2)|0;if(M[f-4>>2]<=M[f>>2]){b=b+1|0;if((c|0)!=(b|0))continue;break Ba}break}J[a+192>>2]=0}if(!(d&128)){J[e+112>>2]=1;xc(a,259,e+112|0);c=J[a+180>>2]}if(!((c|0)!=1|L[a+88>>1]!=1|(J[a+12>>2]&33792)!=32768)){l=0;k=0;h=xb-16|0;xb=h;i=J[J[a+184>>2]>>2];g=J[J[a+188>>2]>>2];f=1;m=_C(a,1);Ca:{if((m|0)<=8192){if((m|0)<=0)break Ca;f=8192/((m&65535)>>>0)|0;m=P(m,f)}if(M[a+100>>2]<=f>>>0|0-m>>>0<=g>>>0)break Ca;c=g-1|0;b=c+m|0;if(b>>>0>>0)break Ca; -d=(b>>>0)/(m>>>0)|0;b=Sd(a,d,4,281597);c=Sd(a,d,4,281668);if(!(!b|!c)){n=d>>>0<=1?1:d;o=n&1;if(d>>>0>=2){p=n&-2;while(1){j=l<<2;n=g>>>0>m>>>0?m:g;J[j+b>>2]=n;J[c+j>>2]=i;j=j|4;g=g-n|0;m=g>>>0>n>>>0?n:g;J[j+b>>2]=m;i=i+n|0;J[c+j>>2]=i;g=g-m|0;i=i+m|0;l=l+2|0;k=k+2|0;if((p|0)!=(k|0))continue;break}}if(o){k=l<<2;J[k+b>>2]=g>>>0>m>>>0?m:g;J[c+k>>2]=i}J[a+176>>2]=d;J[a+180>>2]=d;J[h>>2]=f;xc(a,278,h);Kb(J[a+188>>2]);Kb(J[a+184>>2]);J[a+192>>2]=1;J[a+184>>2]=c;J[a+188>>2]=b;break Ca}if(b)Kb(b);if(!c)break Ca; -Kb(c)}xb=h+16|0}J[a+508>>2]=-1;J[a+500>>2]=-1;J[a+504>>2]=-1;J[a+480>>2]=-1;J[a+472>>2]=-1;b=Ye(a);J[a+588>>2]=b;if(!b){b=J[a+628>>2];J[e+64>>2]=J[a>>2];Ob(b,266528,274256,e- -64|0);h=0;break a}if(K[a+13|0]&4){b=cg(a);J[a+508>>2]=b;h=1;if(b)break a;b=J[a+628>>2];J[e+96>>2]=J[a>>2];Ob(b,266528,274617,e+96|0);h=0;break a}h=1;if(hk(a))break a;b=J[a+628>>2];J[e+80>>2]=J[a>>2];Ob(b,266528,274724,e+80|0);h=0;break a}b=J[a+628>>2];a=J[a>>2];J[e+516>>2]=c?269556:270076;J[e+512>>2]=a;Ob(b,283968,275448,e+ -512|0);break h}b=J[a+628>>2];c=J[a>>2];a=J[nd(a,d)+16>>2];d=J[f+4>>2];J[e+312>>2]=k;J[e+308>>2]=d;J[e+304>>2]=a;yc(b,c,275793,e+304|0);break h}b=J[a+628>>2];a=J[a>>2];J[e+148>>2]=273300;J[e+144>>2]=a;Ob(b,283968,275448,e+144|0)}b=J[e+700>>2]}h=0;if(!b)break a;Kb(b)}xb=e+784|0;return h}function Mka(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=Q(0),r=0,s=0,t=0,u=0,v=0,w=Q(0),x=Q(0),y=Q(0),z=0,A=0,C=0,D=0,E=0;z=xb-16|0;xb=z;if(!K[777216]){J[194302]= -0;J[194303]=-1;J[194300]=1801810542;J[194301]=0;J[194298]=0;J[194299]=-1;J[194296]=1684826471;J[194297]=0;J[194294]=0;J[194295]=-1;J[194292]=1751935335;J[194293]=0;J[194290]=0;J[194291]=-1;J[194288]=1668049255;J[194289]=0;J[194286]=0;J[194287]=-1;J[194284]=1818847073;J[194285]=0;H[777216]=1}if(!b){b=J[a+104>>2];a:{if(!J[b+20>>2]){k=pu(J[b>>2],J[b+4>>2],1,a,0);h=k;j=J[a+4>>2];b=xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]= -0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[195395]=0;h=h?h:169776;b:{if(!h)break b;i=J[h>>2];if(!i)break b;J[h>>2]=i+1}i=J[195395];J[195395]=0;c:{d:{e:{f:{g:{if((i|0)==1)break g;J[195395]=0;i=ca(638,b|0,h|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break g;h=J[b+36>>2];if(h){J[195395]=0;ea(583,h|0);h=J[195395];J[195395]=0;if((h|0)==1)break d}h=vc(1,8);if(h)break f;Ub(i);n=774884;break e}a=Z()|0;ed(b);ba(a|0);B()}I[h+4>>1]=j;J[h>> -2]=i;n=vc(1,216);h:{if(!n){Ub(i);Kb(h);n=774884;break h}J[n+8>>2]=0;J[n>>2]=1;J[n+4>>2]=1;J[n+32>>2]=-1;J[n+20>>2]=639;J[n+16>>2]=h;J[n+12>>2]=640;J[n+36>>2]=n;J[n+48>>2]=n}J[n+24>>2]=j}xb=b+48|0;break c}ga(0)|0;_b();B()}Ub(k);break a}n=vc(1,216);i:{if(!n){n=774884;break i}J[n+8>>2]=0;J[n>>2]=1;J[n+4>>2]=1;J[n+32>>2]=-1;J[n+20>>2]=0;J[n+16>>2]=a;J[n+12>>2]=667;J[n+36>>2]=n;J[n+48>>2]=n}}b=J[a+4>>2];if(J[n+4>>2])J[n+24>>2]=b;b=L[a+68>>1];if(J[n+4>>2])J[n+28>>2]=b;b=0;k=0;h=n;if(!h)h=774884;j=vc(1, -144);i=775296;j:{if(!j)break j;J[j+8>>2]=0;J[j>>2]=1;J[j+4>>2]=1;if(J[h+4>>2])J[h+4>>2]=0;J[j+20>>2]=775296;k:{if(!h)break k;i=J[h>>2];if(!i)break k;J[h>>2]=i+1}J[j+116>>2]=775196;J[j+24>>2]=h;J[j+128>>2]=j;i=J[h+28>>2];if(!i)i=oi(h);H[j+44|0]=1;J[j+28>>2]=i;J[j+32>>2]=i;J[j+80>>2]=65536;J[j+84>>2]=0;J[j+64>>2]=1065353216;J[j+68>>2]=1065353216;J[j+100>>2]=-1;J[j+72>>2]=65536;J[j+76>>2]=0;i=j}o=i;p=vc(1,16);if(p){h=J[o+24>>2];J[p>>2]=h+48;l:{if(!h|!J[h>>2])break l;j=J[h+8>>2];if(!j)break l;l=J[j+28>> -2];m:{if(!l)break m;h=J[j+32>>2];n:{if(J[h>>2]==776452){i=h;break n}while(1){k=k+1|0;if((l|0)==(k|0))break m;i=h+P(k,12)|0;if(J[i>>2]!=776452)continue;break}if(l>>>0<=k>>>0)break m}b=J[i+4>>2]}td()}h=b;o:{if(b)break o;l=vc(1,1024);if(!l)break o;h=0;while(1){b=h<<2;J[b+l>>2]=-1;J[l+(b|4)>>2]=-1;J[l+(b|8)>>2]=-1;J[l+(b|12)>>2]=-1;J[l+(b|16)>>2]=-1;J[l+(b|20)>>2]=-1;J[l+(b|24)>>2]=-1;J[l+(b|28)>>2]=-1;h=h+8|0;if((h|0)!=256)continue;break}h=0;k=0;i=J[o+24>>2];p:{if(!i|!J[i>>2])break p;b=J[i+8>>2];q:{if(b)break q; -while(1){b=vc(36,1);if(!b)break p;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;j=b+24|0;J[j>>2]=0;J[j+4>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;m=J[i+8>>2];J[i+8>>2]=m?m:b;if(!m)break q;af(j,b);Kb(Ud(b));b=J[i+8>>2];if(!b)continue;break}}m=xb-32|0;xb=m;J[m+28>>2]=627;J[m+16>>2]=627;J[m+24>>2]=l;J[m+20>>2]=776452;i=J[m+24>>2];J[m+8>>2]=J[m+20>>2];J[m+12>>2]=i;i=0;j=b;b=J[b+32>>2];r:{s:{k=J[j+28>>2];if(!k)break s;r=J[m+8>>2];if((r|0)!=J[b>>2]){while(1){i=i+1|0;if((k|0)==(i|0))break s;if((r|0)!= -J[P(i,12)+b>>2])continue;break}if(i>>>0>=k>>>0)break s}td();k=0;break r}i=J[j+24>>2];t:{u:{if((k|0)<(i|0))break u;v:{if((i|0)>=0){r=k+1|0;if(r>>>0<=i>>>0)break u;k=i;while(1){k=((k>>>1|0)+k|0)+8|0;if(r>>>0>k>>>0)continue;break}w:{if(k>>>0>357913941)break w;b=ic(b,P(k,12));if(b)break v;i=J[j+24>>2];if(k>>>0>i>>>0)break w;b=J[j+32>>2];break u}J[j+24>>2]=i^-1}J[194122]=J[42446];b=J[42445];J[194120]=J[42444];J[194121]=b;k=776480;break t}J[j+24>>2]=k;J[j+32>>2]=b}i=J[j+28>>2];J[j+28>>2]=i+1;k=P(i,12)+ -b|0;J[k+8>>2]=J[m+16>>2];b=J[m+12>>2];J[k>>2]=J[m+8>>2];J[k+4>>2]=b}td()}k=((J[j+24>>2]>=0?k:0)|0)!=0;xb=m+32|0}if(k){h=l;break o}Kb(l)}J[p+4>>2]=h;while(1){x:{h=J[194114];if(h)break x;b=Lt();It(b,707);Ht(b,708);Gt(b,709);Kt(b,710);Ft(b,711);y:{if(!J[b+4>>2])break y;h=J[b+16>>2];z:{if(!h)break z;i=J[h+4>>2];if(!i)break z;h=J[b+12>>2];if(h)h=J[h+4>>2];else h=0;Ab[i|0](h)}J[b+24>>2]=712;h=J[b+12>>2];if(h)J[h+4>>2]=0;h=J[b+16>>2];if(!h)break y;J[h+4>>2]=0}A:{if(!J[b+4>>2])break A;h=J[b+16>>2];B:{if(!h)break B; -i=J[h+32>>2];if(!i)break B;h=J[b+12>>2];if(h)h=J[h+32>>2];else h=0;Ab[i|0](h)}J[b+52>>2]=713;h=J[b+12>>2];if(h)J[h+32>>2]=0;h=J[b+16>>2];if(!h)break A;J[h+32>>2]=0}II(b,714);EI(b,715);C:{if(!J[b+4>>2])break C;h=J[b+16>>2];D:{if(!h)break D;i=J[h+72>>2];if(!i)break D;h=J[b+12>>2];if(h)h=J[h+72>>2];else h=0;Ab[i|0](h)}J[b+92>>2]=716;h=J[b+12>>2];if(h)J[h+72>>2]=0;h=J[b+16>>2];if(!h)break C;J[h+72>>2]=0}HI(b,717);GI(b,718);FI(b,719);if(J[b+4>>2])J[b+4>>2]=0;i=J[194114];h=b?b:775196;J[194114]=i?i:h;if(!i)break x; -xI(h);continue}break}AI(o,h,p,706)}E:{if(!n)break E;b=J[n+24>>2];if(!J[o+4>>2]|b>>>0<65536)break E;b=(b>>>16|0)-1|0;if((b|0)==J[o+100>>2])break E;J[o+100>>2]=b;b=J[o+12>>2]+1|0;J[o+16>>2]=b;J[o+12>>2]=b;k=0;C=xb-16|0;xb=C;F:{if(!J[o+4>>2])break F;b=J[o+12>>2]+1|0;J[o+16>>2]=b;J[o+12>>2]=b;if(J[o+100>>2]==-1){if(J[o+4>>2]){b=J[o+12>>2]+1|0;J[o+16>>2]=b;J[o+12>>2]=b;j=J[o+24>>2];b=j+124|0;G:{if(J[b>>2])break G;while(1){if(!J[j+48>>2])break G;h=zI(b);if(!h)h=169776;i=J[b>>2];J[b>>2]=i?i:h;if(!i)break G; -wc(h);if(!J[b>>2])continue;break}}Kb(0);Kb(J[o+108>>2]);Kb(J[o+112>>2]);J[o+112>>2]=0;J[o+108>>2]=0;J[o+104>>2]=0;Et(o)}break F}j=J[o+24>>2];b=j+120|0;while(1){H:{h=J[b>>2];if(h)break H;if(!J[j+48>>2]){h=169776;break H}h=Dt(b);if(!h)h=169776;i=J[b>>2];J[b>>2]=i?i:h;if(!i)break H;wc(h);continue}break}i=169776;b=M[h+16>>2]<16?169776:J[h+12>>2];h=K[b+4|0]|K[b+5|0]<<8;if(h)i=b+((h<<8|h>>>8)&65535)|0;b=K[b+8|0]|K[b+9|0]<<8;j=b<<8|b>>>8;t=j&65535;I:{if(!b)break I;u=vc(t,4);v=vc(t,4);if(!(v?u:0)){Kb(u); -Kb(v);break F}b=t>>>0<=1?1:t;l=b&1;h=0;if((j&65535)>>>0>=2){j=b&65534;while(1){b=P(h,20)+i|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);N[(h<<2)+v>>2]=Q(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))*Q(1.52587890625E-5);m=h|1;b=P(m,20)+i|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);N[(m<<2)+v>>2]=Q(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))*Q(1.52587890625E-5);h=h+2|0;k=k+2|0;if((j|0)!=(k|0))continue;break}}if(!l)break I;b=P(h,20)+i|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24); -N[(h<<2)+v>>2]=Q(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))*Q(1.52587890625E-5)}j=J[o+100>>2];if((j|0)!=-1){J[C+12>>2]=t;h=C+12|0;l=J[o+24>>2];b=l+120|0;while(1){J:{i=J[b>>2];if(i)break J;if(!J[l+48>>2]){i=169776;break J}i=Dt(b);if(!i)i=169776;k=J[b>>2];J[b>>2]=k?k:i;if(!k)break J;wc(i);continue}break}k=169776;b=M[i+16>>2]<16?169776:J[i+12>>2];i=K[b+12|0]|K[b+13|0]<<8;K:{if(j>>>0<((i<<8|i>>>8)&65535)>>>0){i=K[b+4|0]|K[b+5|0]<<8;if(i)k=b+((i<<8|i>>>8)&65535)|0;if(!h)break K;i=J[h>>2];if(!i)break K;l= -K[b+14|0]|K[b+15|0]<<8;r=h;h=K[b+8|0]|K[b+9|0]<<8;m=(h<<8|h>>>8)&65535;b=i>>>0>m>>>0?m:i;J[r>>2]=b;if(!h)break K;i=((P(m,20)+k|0)+P(j,(l<<8|l>>>8)&65535)|0)+4|0;j=b>>>0<=1?1:b;l=j&1;h=0;if(b>>>0>=2){m=j&65534;k=0;while(1){j=h<<2;b=j+i|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);N[j+v>>2]=Q(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))*Q(1.52587890625E-5);j=j|4;b=j+i|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);N[j+v>>2]=Q(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))*Q(1.52587890625E-5);h=h+2| -0;k=k+2|0;if((m|0)!=(k|0))continue;break}}if(!l)break K;h=h<<2;b=h+i|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);N[h+v>>2]=Q(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))*Q(1.52587890625E-5);break K}if(!h)break K;J[h>>2]=0}}i=J[o+24>>2];b=i+120|0;while(1){L:{h=J[b>>2];if(h)break L;if(!J[i+48>>2]){h=169776;break L}h=Dt(b);if(!h)h=169776;j=J[b>>2];J[b>>2]=j?j:h;if(!j)break L;wc(h);continue}break}if(t){b=M[h+16>>2]<16?169776:J[h+12>>2];h=K[b+4|0]|K[b+5|0]<<8;l=h?((h<<8|h>>>8)&65535)+b|0:169776;b=K[b+ -8|0]|K[b+9|0]<<8;m=(b<<8|b>>>8)&65535;h=0;while(1){b=h>>>0>=m>>>0?169776:l+P(h,20)|0;k=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);q=Q(Q(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24))*Q(1.52587890625E-5));p=h<<2;w=N[p+v>>2];k=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);x=Q(Q(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24))*Q(1.52587890625E-5));x=q<=x?q:x;y=w>=x?w:x;b=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);w=Q(Q(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))*Q(1.52587890625E-5));w=q>=w?q:w;y= -w>=y?y:w;j=0;M:{if(q==y)break M;q=Q(V(Q(Q(Q(Q(y-q)/(q>y?Q(q-x):Q(w-q)))*Q(16384))+Q(.5))));if(Q(R(q))>2]=j;h=h+1|0;if((t|0)!=(h|0))continue;break}}b=i+124|0;while(1){N:{h=J[b>>2];if(h)break N;if(!J[i+48>>2]){h=169776;break N}h=zI(b);if(!h)h=169776;j=J[b>>2];J[b>>2]=j?j:h;if(!j)break N;wc(h);continue}break}i=0;k=M[h+16>>2]<8?169776:J[h+12>>2];l=k+8|0;b=K[k+6|0]|K[k+7|0]<<8;b=(b<<8|b>>>8)&65535;s=b>>>0>>0?b:t;if(s)while(1){b=(i<<2)+u|0;r=b;b=J[b>> -2];h=K[l|0]|K[l+1|0]<<8;j=(h<<8|h>>>8)&65535;O:{if(j>>>0<=1){if(!h)break O;h=b;b=K[l+2|0]|K[l+3|0]<<8;h=h-((b<<8|b>>>8)<<16>>16)|0;b=K[l+4|0]|K[l+5|0]<<8;b=h+((b<<8|b>>>8)<<16>>16)|0;break O}h=K[l+2|0]|K[l+3|0]<<8;h=(h<<8|h>>>8)<<16>>16;if((h|0)>=(b|0)){h=b-h|0;b=K[l+4|0]|K[l+5|0]<<8;b=h+((b<<8|b>>>8)<<16>>16)|0;break O}h=1;j=j-1|0;P:{if(j>>>0<2)break P;while(1){m=(h<<2)+l|0;m=K[m+2|0]|K[m+3|0]<<8;if((m<<8|m>>>8)<<16>>16>=(b|0))break P;h=h+1|0;if((j|0)!=(h|0))continue;break}h=j}h=(h<<2)+l|0;j=K[h+ -2|0]|K[h+3|0]<<8;m=(j<<8|j>>>8)<<16>>16;if((m|0)<=(b|0)){j=b-m|0;b=K[h+4|0]|K[h+5|0]<<8;b=j+((b<<8|b>>>8)<<16>>16)|0;break O}A=j;j=h-2|0;p=K[j|0]|K[j+1|0]<<8;if((A|0)==(p|0)){b=K[j+2|0]|K[j+3|0]<<8;b=(b<<8|b>>>8)<<16>>16;break O}A=b;b=(p<<8|p>>>8)<<16>>16;h=K[h+4|0]|K[h+5|0]<<8;p=(h<<8|h>>>8)<<16>>16;h=K[j+2|0]|K[j+3|0]<<8;h=(h<<8|h>>>8)<<16>>16;q=Q(V(Q(Q(Q(Q(Q(A-b|0)*Q(p-h|0))/Q(m-b|0))+Q(h|0))+Q(.5))));if(Q(R(q))>2]=b;b=K[l|0]|K[l+1|0]<<8;l=((((b<< -8|b>>>8)&65535)<<2)+l|0)+2|0;i=i+1|0;if((s|0)!=(i|0))continue;break}b=K[k|0]|K[k+1|0]<<8;Q:{if(((b<<8|b>>>8)&65535)>>>0<2)break Q;b=K[k+6|0]|K[k+7|0]<<8;b=(b<<8|b>>>8)&65535;R:{if(b>>>0<=s>>>0)break R;h=b+(s^-1)|0;j=b-s&3;if(j){i=0;while(1){m=l;l=K[l|0]|K[l+1|0]<<8;l=(m+(((l<<8|l>>>8)&65535)<<2)|0)+2|0;s=s+1|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}if(h>>>0<3)break R;while(1){h=K[l|0]|K[l+1|0]<<8;h=(((h<<8|h>>>8)&65535)<<2)+l|0;i=K[h+2|0]|K[h+3|0]<<8;h=(h+2|0)+(((i<<8|i>>>8)&65535)<<2)|0;i=K[h+2| -0]|K[h+3|0]<<8;h=(h+2|0)+(((i<<8|i>>>8)&65535)<<2)|0;i=K[h+2|0]|K[h+3|0]<<8;l=((((i<<8|i>>>8)&65535)<<2)+h|0)+4|0;s=s+4|0;if((b|0)!=(s|0))continue;break}}m=169776;D=169776;b=K[l|0]|K[l+1|0]<<8|(K[l+2|0]<<16|K[l+3|0]<<24);if(b)D=k+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;b=K[l+4|0]|K[l+5|0]<<8|(K[l+6|0]<<16|K[l+7|0]<<24);if(b)m=k+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;b=K[m+2|0]|K[m+3|0]<<8|(K[m+4|0]<<16|K[m+5|0]<<24);if(b)b=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+m|0;else b=169776;b=K[b+ -2|0]|K[b+3|0]<<8;i=b<<8|b>>>8;h=i&65535;p=Qb(h<<2);S:{if(!b|!p)break S;b=h>>>0<=1?1:h;h=b&7;s=0;j=0;if((i&65535)>>>0>=8){i=b&65528;k=0;while(1){b=j<<2;J[b+p>>2]=1073741824;J[p+(b|4)>>2]=1073741824;J[p+(b|8)>>2]=1073741824;J[p+(b|12)>>2]=1073741824;J[p+(b|16)>>2]=1073741824;J[p+(b|20)>>2]=1073741824;J[p+(b|24)>>2]=1073741824;J[p+(b|28)>>2]=1073741824;j=j+8|0;k=k+8|0;if((i|0)!=(k|0))continue;break}}if(!h)break S;while(1){J[p+(j<<2)>>2]=1073741824;j=j+1|0;s=s+1|0;if((h|0)!=(s|0))continue;break}}T:{if(!t){i= -p;break T}i=0;while(1){i=((i>>>1|0)+i|0)+8|0;if(t>>>0>i>>>0)continue;break}j=-1;h=0;if(i>>>0<=1073741823){h=Qb(i<<2);j=h?i:-1}E=J[42444];s=0;k=0;while(1){A=J[(s<<2)+u>>2];J[195395]=0;r=sc(D,s);b=J[195395];J[195395]=0;U:{V:{W:{if((b|0)!=1)X:{i=r>>>16|0;b=K[m+6|0]|K[m+7|0]<<8;Y:{if(i>>>0>=((b<<8|b>>>8)&65535)>>>0){q=Q(0);break Y}l=169776;b=169776;i=(i<<2)+m|0;i=K[i+8|0]|K[i+9|0]<<8|(K[i+10|0]<<16|K[i+11|0]<<24);if(i)b=(i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24))+m|0;i=K[m+2|0]|K[m+3|0]<<8|(K[m+4|0]<<16| -K[m+5|0]<<24);if(i)l=(i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24))+m|0;J[195395]=0;q=pc(b,r&65535,u,t,l,p);b=J[195395];J[195395]=0;if((b|0)==1)break X}q=Q(Q(V(Q(q+Q(.5))))+Q(A|0));Z:{if(Q(R(q))(k|0))break W;if((j|0)<0)b=j;else{b=j;if(l>>>0<=b>>>0)break W;while(1){b=((b>>>1|0)+b|0)+8|0;if(l>>>0>b>>>0)continue;break}if(b>>>0<=1073741823){i=ic(h,b<<2);if(i)break V}b=j^-1}J[194120]=E;l=k;i=h;break U}a=Z()|0;if(j)Kb(h);ba(a|0);B()}b=j;i=h}h=(r|0)<= --16384?-16384:r;J[(k<<2)+i>>2]=(h|0)>=16384?16384:h;h=i;k=l}j=b;s=s+1|0;if((s|0)!=(t|0))continue;break}_:{if(!t)break _;j=0;m=J[42444];if((t|0)!=1){s=t&-2;k=0;while(1){r=(j<<2)+u|0;$:{if(j>>>0>=l>>>0){J[194120]=m;h=m;break $}h=J[(j<<2)+i>>2]}J[r>>2]=h;r=j|1;aa:{if(r>>>0>=l>>>0){J[194120]=m;h=m;break aa}h=J[(r<<2)+i>>2]}J[(r<<2)+u>>2]=h;j=j+2|0;k=k+2|0;if((s|0)!=(k|0))continue;break}}if(!(t&1))break _;ba:{if(j>>>0>=l>>>0){J[194120]=m;break ba}m=J[(j<<2)+i>>2]}J[(j<<2)+u>>2]=m}Kb(p);if(!b)break Q}Kb(i)}Kb(J[o+ -108>>2]);Kb(J[o+112>>2]);J[o+112>>2]=v;J[o+108>>2]=u;J[o+104>>2]=t;Et(o)}xb=C+16|0}St(n);b=o;yI(b,a,0);if(J[b+124>>2]==668){i=J[b+120>>2];h=J[i+32>>2];a=L[h+68>>1];j=J[h+88>>2];h=J[j+16>>2];n=Kpa(a,0,h,h>>31);h=zb;j=J[j+20>>2];j=Kpa(j,j>>31,a,0);a=zb;n=n+32768|0;h=((n>>>0<32768?h+1|0:h)&65535)<<16|n>>>16;j=j+32768|0;a=((j>>>0<32768?a+1|0:a)&65535)<<16|j>>>16;if(!(!J[b+4>>2]|(h|0)==J[b+28>>2]&(a|0)==J[b+32>>2])){J[b+32>>2]=a;J[b+28>>2]=h;J[b+12>>2]=J[b+12>>2]+1;Et(b)}Nb(i+40|0,255,1024);J[i+36>>2]= -J[b+12>>2]}h=xb-32|0;xb=h;a=J[b+24>>2];i=J[a+12>>2];ca:{if(i){a=Ab[i|0](a,0,J[a+16>>2])|0;if(a)break ca}a=169776}if(h+12|0)J[h+12>>2]=J[a+16>>2];j=J[a+12>>2];J[h+8>>2]=0;while(1){da:{l=J[194112];if(l)break da;ea:{if(XB(h+16|0))break ea;l=J[h+16>>2];if(!l)break ea;i=J[194112];J[194112]=i?i:l;if(!i)break da;WB(l);continue}l=0;i=J[194112];J[194112]=i;if(i)continue}break}n=J[h+12>>2];k=J[J[b+24>>2]+24>>2];o=h+8|0;i=xb-32|0;xb=i;if(j){J[i+16>>2]=0;J[i+8>>2]=n;J[i+4>>2]=j;J[i>>2]=1;j=Wr(l,i,k,o,1)}else j= -6;xb=i+32|0;fa:{if(j){Ub(a);break fa}if(di(J[h+8>>2],1937337698))di(J[h+8>>2],1970170211);i=J[h+8>>2];J[i+44>>2]=a;J[i+48>>2]=682;yI(b,i,1);if(!(!J[b+4>>2]|J[b+124>>2]!=668))J[J[b+120>>2]>>2]=2;k=J[b+120>>2];a=J[b+28>>2];j=a>>31;i=J[b+32>>2];n=i>>31;l=J[h+8>>2];mE(l,(a^j)-j|0,(i^n)-n|0,0,0);if((a|i)>=0)break fa;J[h+20>>2]=0;J[h+24>>2]=0;q=Q(V((i|0)<0?Q(-65535.5):Q(65536.5)));ga:{if(Q(R(q))>2]=j;q=Q(V((a|0)<0?Q(-65535.5):Q(65536.5)));ha:{if(Q(R(q))< -Q(2147483648)){a=~~q;break ha}a=-2147483648}J[h+16>>2]=a;FE(l,h+16|0);H[k+6|0]=1}xb=h+32|0}a=0;J[194285]=d&1;J[194301]=d>>>4&1;J[194297]=d>>>3&1;J[194293]=d>>>2&1;J[194289]=d>>>1&1;d=ku();if(J[d+4>>2])J[d+40>>2]=f;if(J[d+4>>2])J[d+44>>2]=e;if(J[d+4>>2])J[d+48>>2]=g;if(J[d+4>>2])J[d+20>>2]=0;e=ac(c);n=e;h=xb-16|0;xb=h;f=d;ia:{if(!J[d+4>>2])break ia;j=J[d+24>>2];if((e|0)==-1)n=ac(c);e=(e|0)==-1?n:e;if(e>>>0>268435455)break ia;d=J[f+68>>2]+(e>>>2|0)|0;if(!(!d|d>>>0>2]))if(!yh(f,d))break ia;d= -c;ja:{if((e|0)<=0){e=c;break ja}k=d+e|0;while(1){e=hu(d,k,h+8|0,j);l=J[h+8>>2];i=J[f+68>>2];g=i+1|0;ka:{if(!(!g|g>>>0>2])){if(!yh(f,g))break ka;i=J[f+68>>2]}g=J[f+80>>2]+P(i,20)|0;H[g+4|0]=0;H[g+5|0]=0;H[g+6|0]=0;H[g+7|0]=0;H[g+8|0]=0;H[g+9|0]=0;H[g+10|0]=0;H[g+11|0]=0;J[g>>2]=l;H[g+12|0]=0;H[g+13|0]=0;H[g+14|0]=0;H[g+15|0]=0;H[g+16|0]=0;H[g+17|0]=0;H[g+18|0]=0;H[g+19|0]=0;J[g+8>>2]=d-c;J[g+4>>2]=0;J[f+68>>2]=J[f+68>>2]+1}d=e;if(k>>>0>d>>>0)continue;break}}J[f+136>>2]=0;c=c+n|0;la:{if(c>>> -0<=e>>>0)break la;while(1){e=hu(e,c,h+4|0,j);d=J[h+4>>2];g=J[f+136>>2];J[f+136>>2]=g+1;J[(f+(g<<2)|0)+112>>2]=d;if(c>>>0<=e>>>0)break la;if(M[f+136>>2]<=4)continue;break}}J[f+36>>2]=1}xb=h+16|0;c=0;ma:{if(J[f+44>>2]|!J[f+68>>2])break ma;while(1){d=J[f+12>>2];d=Ab[J[d+32>>2]](d,J[J[f+80>>2]+P(c,20)>>2],J[d- -64>>2])|0;if(!((d|0)==1516858984|(d|0)==1517910393|(d|0)==1517976186)){J[f+44>>2]=d;break ma}c=c+1|0;if(c>>>0>2])continue;break}}if(!J[f+40>>2]){c=Uo(J[f+44>>2]);J[f+40>>2]=c?c:4}if(!J[f+ -48>>2]){c=0;d=J[194109];if(d)c=d;else{d=Vo(105972);if(d)c=J[d+4>>2];d=J[194109];J[194109]=d?d:c}J[f+48>>2]=c}to(b,f,777136,5,0);c=z+12|0;if(c)J[c>>2]=J[f+68>>2];l=J[f+80>>2];o=iu(f,c);e=J[z+12>>2];d=P(e,26)+12|0;m=vc(1,d);c=m;H[c+4|0]=b;H[c+5|0]=b>>>8;H[c+6|0]=b>>>16;H[c+7|0]=b>>>24;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;if(e){d=c+12|0;while(1){p=P(a,20);g=p+l|0;h=J[g>>2];j=J[b+24>>2];e=j+144|0;while(1){na:{c=J[e>>2];if(c)break na;if(!J[j+ -48>>2]){c=169776;break na}c=lm(e);if(!c)c=169776;i=J[e>>2];J[e>>2]=i?i:c;if(!i)break na;km(c);continue}break}e=169776;c=J[c>>2];c=c?c:169776;c=M[c+16>>2]<4?169776:J[c+12>>2];oa:{if((K[c|0]|K[c+1|0]<<8)!=256)break oa;i=K[c+4|0]|K[c+5|0]<<8;if(!i)break oa;e=c+((i<<8|i>>>8)&65535)|0}c=0;pa:{qa:{ra:{sa:{i=K[e|0]|K[e+1|0]<<8;switch(((i<<8|i>>>8)&65535)-1|0){case 1:break ra;case 0:break sa;default:break pa}}c=h;h=K[e+2|0]|K[e+3|0]<<8;h=c-((h<<8|h>>>8)&65535)|0;i=K[e+4|0]|K[e+5|0]<<8;c=169776;if(h>>>0>= -((i<<8|i>>>8)&65535)>>>0)break qa;c=((h<<1)+e|0)+6|0;break qa}n=170426;i=K[e+2|0]|K[e+3|0]<<8;ta:{if(!i)break ta;k=e+4|0;e=((i<<8|i>>>8)&65535)-1|0;while(1){i=c+e>>>1|0;j=k+P(i,6)|0;r=K[j|0]|K[j+1|0]<<8;ua:{if(h>>>0>=((r<<8|r>>>8)&65535)>>>0){c=K[j+2|0]|K[j+3|0]<<8;if(h>>>0>((c<<8|c>>>8)&65535)>>>0){c=i+1|0;break ua}n=k+P(i,6)|0;break ta}e=i-1|0}if((c|0)<=(e|0))continue;break}}c=n+4|0}c=K[c|0]|K[c+1|0]<<8;c=(c<<8|c>>>8)&65535}e=J[g+4>>2];c=c&255;H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>> -24;c=e&7;H[d+1|0]=c;H[d+2|0]=c>>>8;H[d+3|0]=c>>>16;H[d+4|0]=c>>>24;c=J[g>>2];H[d+2|0]=c;H[d+3|0]=c>>>8;H[d+4|0]=c>>>16;H[d+5|0]=c>>>24;c=J[g+8>>2];H[d+6|0]=c;H[d+7|0]=c>>>8;H[d+8|0]=c>>>16;H[d+9|0]=c>>>24;c=o+p|0;e=J[c>>2];H[d+10|0]=e;H[d+11|0]=e>>>8;H[d+12|0]=e>>>16;H[d+13|0]=e>>>24;e=J[c+4>>2];H[d+14|0]=e;H[d+15|0]=e>>>8;H[d+16|0]=e>>>16;H[d+17|0]=e>>>24;e=J[c+8>>2];H[d+18|0]=e;H[d+19|0]=e>>>8;H[d+20|0]=e>>>16;H[d+21|0]=e>>>24;c=J[c+12>>2];H[d+22|0]=c;H[d+23|0]=c>>>8;H[d+24|0]=c>>>16;H[d+25|0]= -c>>>24;d=d+26|0;a=a+1|0;if(a>>>0>2])continue;break}}wh(f);xb=z+16|0;return m|0}function Tma(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=0,R=0;e=J[a+8>>2];J[b>>2]=J[a+4>>2];J[b+4>>2]=e;J[b+16>>2]=J[a+20>>2];e=J[a+16>>2];J[b+8>>2]=J[a+12>>2];J[b+12>>2]=e;J[b+20>>2]=J[a+128>>2];p=c;h=xb-240|0;xb=h;q=b+24|0;J[q+12>>2]=-2147483648;J[h+80>>2]=0;J[h+84>>2]=0;k=a+24|0;J[q>>2]=J[k+28>>2]; -H[q+8|0]=K[k+36|0];wH(J[k>>2],1196643650,J[k+40>>2],J[k+48>>2],h+100|0,h+92|0);J[q+4>>2]=J[k+32>>2];H[q+9|0]=K[k+37|0];wH(J[k>>2],1196445523,J[k+44>>2],J[k+52>>2],h+104|0,h+96|0);l=J[k+68>>2];a:{if(!l)break a;j=1;if(!K[k+24|0]){Ys(J[k+72>>2],l,28,874);l=J[k+68>>2]}if(l>>>0>1){g=J[k+72>>2];while(1){n=g+P(j,28)|0;i=g+P(d,28)|0;b:{if(J[n>>2]!=J[i>>2]){c=J[n+4>>2];d=d+1|0;e=g+P(d,28)|0;J[e>>2]=J[n>>2];J[e+4>>2]=c;J[e+24>>2]=J[n+24>>2];c=J[n+20>>2];J[e+16>>2]=J[n+16>>2];J[e+20>>2]=c;c=J[n+12>>2];J[e+8>> -2]=J[n+8>>2];J[e+12>>2]=c;break b}f=J[i+12>>2];c:{if(H[n+12|0]&1){f=f|1;J[i+12>>2]=f;J[i+8>>2]=J[n+8>>2];J[i+16>>2]=J[n+16>>2];break c}if(f&1){f=f^1;J[i+12>>2]=f}e=J[i+8>>2];c=J[n+8>>2];J[i+8>>2]=c>>>0>>0?e:c}J[i+12>>2]=J[n+12>>2]&2|f;e=J[i+20>>2];c=J[n+20>>2];J[i+20>>2]=c>>>0>e>>>0?e:c;e=J[i+24>>2];c=J[n+24>>2];J[i+24>>2]=c>>>0>e>>>0?e:c}j=j+1|0;if((l|0)!=(j|0))continue;break}l=J[k+68>>2]}c=d+1|0;e=(c|0)>0?c:0;if(e>>>0>=l>>>0)break a;J[k+68>>2]=e;c=J[k+64>>2];if((c|0)<0|c>>>0>=e>>>0&e>>>0>=c>>> -2>>>0)break a;if(e>>>0>=153391690){J[k+64>>2]=c^-1;break a}c=J[k+72>>2];d:{if(d>>>0>=2147483647){Kb(c);c=0;break d}c=ic(c,P(e,28));if(c)break d;c=J[k+64>>2];if(c>>>0>=e>>>0)break a;J[k+64>>2]=c^-1;break a}J[k+72>>2]=c;J[k+64>>2]=e}J[h+28>>2]=0;J[h+32>>2]=0;J[h+52>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[h+44>>2]=0;J[h+48>>2]=1;c=h- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[h+16>>2]=0;J[h>>2]=1;J[h+4>>2]=1;J[h+20>>2]=0;J[h+24>>2]=0;J[h+8>>2]=0;J[h+12>>2]=1;J[h+36>>2]=1;J[h+40>>2]=1;d=J[k+48>>2];e=J[k+40>>2];c=J[k>>2]; -J[195395]=0;ma(875,c|0,1196643650,e|0,d|0,h|0);c=J[195395];J[195395]=0;e:{f:{g:{h:{i:{j:{k:{if((c|0)==1)break k;d=J[k+52>>2];e=J[k+44>>2];c=J[k>>2];J[195395]=0;ma(875,c|0,1196445523,e|0,d|0,h+36|0);c=J[195395];J[195395]=0;if((c|0)==1)break k;x=J[k+68>>2];if(!x)break h;u=h+116|0;y=J[h+84>>2];t=J[h+80>>2];f=4;j=0;while(1){l:{if(M[k+68>>2]<=j>>>0){J[194126]=J[42450];c=J[42449];J[194124]=J[42448];J[194125]=c;c=J[42447];J[194122]=J[42446];J[194123]=c;c=J[42445];J[194120]=J[42444];J[194121]=c;i=776480; -break l}i=J[k+72>>2]+P(j,28)|0}e=J[i+8>>2];l=J[i+12>>2];m:{n:{if(l&1){c=0;if((e|0)==1)break n}if(!e)break m;c=32-S(e)|0;c=c>>>0>=8?8:c}g=c+f|0;if(g>>>0>30)break m;z=J[i>>2];t=(z|0)==J[h+92>>2]?J[i+20>>2]:t;w=0;v=65535;s=J[h+32>>2];o:{if(!s)break o;c=((P(z,506952113)&1073741823)>>>0)%M[h+24>>2]|0;e=s+P(c,12)|0;r=J[e+4>>2];if(!(r&2))break o;if((z|0)!=J[e>>2]){n=J[h+20>>2];e=0;while(1){e=e+1|0;c=n&e+c;d=s+P(c,12)|0;r=J[d+4>>2];if(!(r&2))break o;if((z|0)!=J[d>>2])continue;break}}if(!(r&1))break o;v=J[(s+ -P(c,12)|0)+8>>2];w=1}J[h+112>>2]=v;s=J[i>>2];y=(s|0)==J[h+96>>2]?J[i+24>>2]:y;p:{q:{v=J[h+68>>2];if(!v)break q;c=((P(s,506952113)&1073741823)>>>0)%M[h+60>>2]|0;e=v+P(c,12)|0;r=J[e+4>>2];if(!(r&2))break q;if((s|0)!=J[e>>2]){e=0;n=J[h+56>>2];while(1){e=e+1|0;c=n&e+c;d=v+P(c,12)|0;r=J[d+4>>2];if(!(r&2))break q;if((s|0)!=J[d>>2])continue;break}}if(!(r&1))break q;J[h+116>>2]=J[(v+P(c,12)|0)+8>>2];d=0;break p}J[h+116>>2]=65535;d=0;if(w)break p;if(l&16){e=J[i>>2];c=J[k>>2];J[195395]=0;l=ha(876,c|0,1196643650, -e|0,h+112|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break j;e=J[i>>2];c=J[k>>2];J[195395]=0;e=ha(876,c|0,1196445523,e|0,u|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break j;if(e|l)break p;l=J[i+12>>2]}d=1;if(!(l&2))break m}r:{s:{t:{e=J[q+16>>2];if((e|0)>=0){l=e;c=J[q+20>>2]+1|0;n=(c|0)>0?c:0;if(n>>>0<=e>>>0)break s;while(1){l=((l>>>1|0)+l|0)+8|0;if(n>>>0>l>>>0)continue;break}if(l>>>0<=119304647){c=ic(J[q+24>>2],P(l,36));if(c)break t;e=J[q+16>>2];if(l>>>0<=e>>>0)break s}J[q+16>>2]=e^-1}J[194128]=J[42452]; -c=J[42451];J[194126]=J[42450];J[194127]=c;c=J[42449];J[194124]=J[42448];J[194125]=c;c=J[42447];J[194122]=J[42446];J[194123]=c;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480;break r}J[q+16>>2]=l;J[q+24>>2]=c}e=J[q+20>>2];u:{if(e>>>0>=n>>>0)break u;c=P(n-e|0,36);if(!c)break u;Nb(J[q+24>>2]+P(e,36)|0,0,c)}J[q+20>>2]=n;c=(J[q+24>>2]+P(n,36)|0)-36|0}J[c>>2]=J[i>>2];J[c+4>>2]=J[h+112>>2];J[c+8>>2]=J[h+116>>2];J[c+12>>2]=J[i+20>>2];J[c+16>>2]=J[i+24>>2];e=(K[i+12|0]>>>1&2|K[c+32|0]&-3)^2;H[c+32|0]=e; -e=(K[i+12|0]>>>1&4|e&-5)^4;H[c+32|0]=e;e=e&-9|K[i+12|0]>>>2&8;H[c+32|0]=e;l=e&-17|K[i+12|0]>>>2&16;H[c+32|0]=l;v:{if(!(!(H[i+12|0]&1)|J[i+8>>2]!=1)){e=-2147483648;g=f;f=31;break v}e=(1<>2]=J[q+12>>2]|e&J[i+16>>2]<>2]=e;J[c+20>>2]=f;H[c+32|0]=l&254|d;J[c+28>>2]=1<>2]=y;J[h+80>>2]=t;break g}J[h+84>>2]=y;J[h+80>>2]=t}w:{if(!K[k+24|0])break w;e=J[q+20>>2];if(!e)break w;c=J[q+ -24>>2];J[195395]=0;ia(877,c|0,e|0,36,878);c=J[195395];J[195395]=0;if((c|0)!=1)break w;c=Z()|0;break g}x:{y:{z:{c=J[k+76>>2];if((c|0)>=0){e=J[k+80>>2]+1|0;d=(e|0)>0?e:0;if(d>>>0<=c>>>0)break y;j=c;while(1){j=((j>>>1|0)+j|0)+8|0;if(d>>>0>j>>>0)continue;break}if(j>>>0<=536870911){c=ic(J[k+84>>2],j<<3);if(c)break z;c=J[k+76>>2];if(j>>>0<=c>>>0)break y}J[k+76>>2]=c^-1}c=J[42445];J[194120]=J[42444];J[194121]=c;e=776480;break x}J[k+76>>2]=j;J[k+84>>2]=c}e=J[k+80>>2];A:{if(e>>>0>=d>>>0)break A;c=d-e<<3;if(!c)break A; -Nb(J[k+84>>2]+(e<<3)|0,0,c)}J[k+80>>2]=d;e=(J[k+84>>2]+(d<<3)|0)-8|0}c=J[k+56>>2];J[e+4>>2]=0;J[e>>2]=c;J[k+56>>2]=c+1;B:{C:{D:{c=J[k+88>>2];if((c|0)>=0){e=J[k+92>>2]+1|0;d=(e|0)>0?e:0;if(d>>>0<=c>>>0)break C;j=c;while(1){j=((j>>>1|0)+j|0)+8|0;if(d>>>0>j>>>0)continue;break}if(j>>>0<=536870911){c=ic(J[k+96>>2],j<<3);if(c)break D;c=J[k+88>>2];if(j>>>0<=c>>>0)break C}J[k+88>>2]=c^-1}c=J[42445];g=c;j=J[42444];J[194120]=j;J[194121]=c;e=776480;break B}J[k+88>>2]=j;J[k+96>>2]=c}e=J[k+92>>2];E:{if(e>>>0>= -d>>>0)break E;c=d-e<<3;if(!c)break E;Nb(J[k+96>>2]+(e<<3)|0,0,c)}J[k+92>>2]=d;j=J[42444];g=J[42445];e=(J[k+96>>2]+(d<<3)|0)-8|0}c=J[k+60>>2];J[e+4>>2]=0;J[e>>2]=c;J[k+60>>2]=c+1;f=1;e=0;while(1){F:{A=e<<2;E=A+k|0;if(!J[E+56>>2])break F;c=P(e,12);m=c+q|0;F=A+130696|0;G=p+A|0;D=c+k|0;N=A+(h+80|0)|0;O=A+(h+100|0)|0;w=0;l=0;C=0;while(1){G:{s=J[O>>2];H:{if((s|0)==65535|J[N>>2]!=(w|0))break H;v=J[G>>2];c=J[k>>2];r=0;J[195395]=0;x=J[F>>2];u=ca(879,c|0,x|0)|0;c=J[195395];J[195395]=0;if((c|0)==1){c=Z()|0; -break g}while(1){J[h+108>>2]=32;c=J[k>>2];J[195395]=0;ya(880,c|0,x|0,s|0,v|0,r|0,h+108|0,h+112|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break G;e=0;c=J[h+108>>2];if(!c)break H;while(1){n=(h+112|0)+(e<<2)|0;if(u>>>0>M[n>>2]){I:{J:{K:{d=J[m+28>>2];if((d|0)>=0){c=d;i=J[m+32>>2]+1|0;i=(i|0)>0?i:0;if(c>>>0>=i>>>0)break J;while(1){c=((c>>>1|0)+c|0)+8|0;if(i>>>0>c>>>0)continue;break}if(c>>>0<=357913941){d=ic(J[m+36>>2],P(c,12));if(d)break K;d=J[m+28>>2];if(d>>>0>=c>>>0)break J}J[m+28>>2]=d^-1}J[194122]= -J[42446];c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480;break I}J[m+36>>2]=d;J[m+28>>2]=c}d=J[m+32>>2];L:{if(d>>>0>=i>>>0)break L;c=P(i-d|0,12);if(!c)break L;Nb(J[m+36>>2]+P(d,12)|0,0,c)}J[m+32>>2]=i;c=(J[m+36>>2]+P(i,12)|0)-12|0}J[c+4>>2]=-2147483648;I[c>>1]=J[n>>2];J[c+8>>2]=538976288;H[c+2|0]=K[c+2|0]&240|3;c=J[h+108>>2]}e=e+1|0;if(e>>>0>>0)continue;break}r=c+r|0;if((c|0)==32)continue;break}}c=J[q+20>>2];if(c){t=J[q+24>>2];Q=t+P(c,36)|0;while(1){M:{c=t+A|0;if(J[c+12>>2]!=(w|0))break M;R= -J[c+4>>2];y=J[t>>2];e=K[t+32|0];z=J[t+24>>2];s=J[G>>2];c=J[k>>2];J[195395]=0;v=J[F>>2];x=ca(879,c|0,v|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){u=e>>>1&15;r=0;while(1){N:{J[h+108>>2]=32;c=J[k>>2];J[195395]=0;ya(880,c|0,v|0,R|0,s|0,r|0,h+108|0,h+112|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break N;e=0;c=J[h+108>>2];if(!c)break M;while(1){n=(h+112|0)+(e<<2)|0;if(M[n>>2]>>0){O:{P:{Q:{d=J[m+28>>2];if((d|0)>=0){c=d;i=J[m+32>>2]+1|0;i=(i|0)>0?i:0;if(c>>>0>=i>>>0)break P;while(1){c=((c>>>1|0)+c|0)+8| -0;if(i>>>0>c>>>0)continue;break}if(c>>>0<=357913941){d=ic(J[m+36>>2],P(c,12));if(d)break Q;d=J[m+28>>2];if(d>>>0>=c>>>0)break P}J[m+28>>2]=d^-1}J[194122]=J[42446];c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480;break O}J[m+36>>2]=d;J[m+28>>2]=c}d=J[m+32>>2];R:{if(d>>>0>=i>>>0)break R;c=P(i-d|0,12);if(!c)break R;Nb(J[m+36>>2]+P(d,12)|0,0,c)}J[m+32>>2]=i;c=(J[m+36>>2]+P(i,12)|0)-12|0}J[c+4>>2]=z;I[c>>1]=J[n>>2];J[c+8>>2]=y;H[c+2|0]=K[c+2|0]&240|u;c=J[h+108>>2]}e=e+1|0;if(e>>>0>>0)continue;break}r= -c+r|0;if((c|0)==32)continue;break M}break}c=Z()|0;break g}c=Z()|0;break g}t=t+36|0;if((Q|0)!=(t|0))continue;break}}c=J[m+32>>2];e=l+1|0;S:{if(c>>>0<=e>>>0)break S;T:{U:{V:{i=c-l|0;d=c>>>0>=i>>>0?i:0;d=d>>>0>>0?d:i;if(d){c=J[m+36>>2];J[195395]=0;ia(877,c+P(l,12)|0,d|0,12,881);c=J[195395];J[195395]=0;if((c|0)==1)break V;c=J[m+32>>2]}if(c>>>0<=e>>>0)break T;while(1){d=J[m+36>>2];i=P(e,12);u=d+i|0;c=P(l,12);n=c+d|0;W:{if(L[u>>1]!=L[n>>1]){c=J[u+4>>2];l=l+1|0;d=d+P(l,12)|0;J[d>>2]=J[u>>2];J[d+4>>2]= -c;J[d+8>>2]=J[u+8>>2];break W}J[n+4>>2]=J[n+4>>2]|J[u+4>>2];H[n+2|0]=K[n+2|0]&(K[u+2|0]|254);d=J[m+36>>2];c=d+c|0;H[c+2|0]=K[c+2|0]&(K[(d+i|0)+2|0]|253)}c=J[m+32>>2];e=e+1|0;if(c>>>0>e>>>0)continue;break}break U}c=Z()|0;break g}e=l+1|0}e=(e|0)>0?e:0;if(e>>>0>=c>>>0)break S;J[m+32>>2]=e;c=J[m+28>>2];if((c|0)<0|c>>>0>=e>>>0&e>>>0>=c>>>2>>>0)break S;if(e>>>0>=357913942){J[m+28>>2]=c^-1;break S}c=J[m+36>>2];X:{if(l>>>0>=2147483647){Kb(c);c=0;break X}c=ic(c,P(e,12));if(c)break X;c=J[m+28>>2];if(c>>>0>= -e>>>0)break S;J[m+28>>2]=c^-1;break S}J[m+36>>2]=c;J[m+28>>2]=e}l=J[m+32>>2];Y:{if(M[D+80>>2]<=C>>>0)break Y;i=C<<3;if(J[i+J[D+84>>2]>>2]!=(w|0))break Y;Z:{_:{$:{e=J[m+52>>2];if((e|0)>=0){d=e;c=J[m+56>>2]+1|0;n=(c|0)>0?c:0;if(d>>>0>=n>>>0)break _;while(1){d=((d>>>1|0)+d|0)+8|0;if(n>>>0>d>>>0)continue;break}if(d>>>0<=536870911){c=ic(J[m+60>>2],d<<3);if(c)break $;e=J[m+52>>2];if(e>>>0>=d>>>0)break _}J[m+52>>2]=e^-1}J[194120]=j;J[194121]=g;c=776480;break Z}J[m+60>>2]=c;J[m+52>>2]=d}e=J[m+56>>2];aa:{if(e>>> -0>=n>>>0)break aa;c=n-e<<3;if(!c)break aa;Nb(J[m+60>>2]+(e<<3)|0,0,c)}J[m+56>>2]=n;c=(J[m+60>>2]+(n<<3)|0)-8|0}J[c>>2]=l;d=c;ba:{if(M[D+80>>2]<=C>>>0){J[194120]=j;J[194121]=g;c=g;break ba}c=J[(i+J[D+84>>2]|0)+4>>2]}J[d+4>>2]=c;C=C+1|0}w=w+1|0;if(w>>>0>2])continue;break F}break}c=Z()|0;break g}e=1;c=f;f=0;if(c)continue;break}J[h+36>>2]=-57005;ca:{e=J[h+44>>2];if(e){J[195395]=0;$(636,e+24|0,e|0);c=J[195395];J[195395]=0;if((c|0)==1)break ca;Kb(Ud(e));J[h+44>>2]=0}c=J[h+68>>2];if(c){Kb(c);J[h+ -68>>2]=0}J[h+52>>2]=0;J[h+48>>2]=J[h+48>>2]&1;J[h>>2]=-57005;e=J[h+8>>2];if(e){J[195395]=0;$(636,e+24|0,e|0);c=J[195395];J[195395]=0;if((c|0)==1)break ca;Kb(Ud(e));J[h+8>>2]=0}c=J[h+32>>2];if(c)Kb(c);xb=h+240|0;break e}break f}J[h+36>>2]=-57005;da:{b=J[h+44>>2];if(b){J[195395]=0;$(636,b+24|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break da;Kb(Ud(b));J[h+44>>2]=0}a=J[h+68>>2];if(a){Kb(a);J[h+68>>2]=0}J[h+52>>2]=0;J[h+48>>2]=J[h+48>>2]&1;J[h>>2]=-57005;b=J[h+8>>2];if(b){J[195395]=0;$(636,b+24|0,b| -0);a=J[195395];J[195395]=0;if((a|0)==1)break da;Kb(Ud(b));J[h+8>>2]=0}a=J[h+32>>2];if(a)Kb(a);ba(c|0);B()}}ga(0)|0;_b();B()}i=J[b+48>>2];ea:{fa:{p=J[b+44>>2];ga:{if((p|0)<=0){J[b+112>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;g=L[b+128>>1]&-5;I[b+128>>1]=g;e=b+128|0;break ga}d=p-1|0;c=d;ha:{ia:{while(1){f=c+o>>>1|0;e=J[i+P(f,36)>>2];ja:{if(e>>>0>=1718772068){c=f-1|0;break ja}if((e|0)==1718772067)break ia;o=f+1|0}if((c|0)>=(o|0))continue;break}e=0;break ha}e=J[(i+P(f,36)|0)+28>>2]}J[b+104>>2]=e;c=0;o=d;ka:{la:{while(1){g= -c+o>>>1|0;f=J[i+P(g,36)>>2];ma:{if(f>>>0>=1853189491){o=g-1|0;break ma}if((f|0)==1853189490)break la;c=g+1|0}if((c|0)<=(o|0))continue;break}c=0;break ka}c=J[(i+P(g,36)|0)+28>>2]}J[b+108>>2]=c;o=0;na:{oa:{while(1){g=d+o>>>1|0;f=J[i+P(g,36)>>2];pa:{if(f>>>0>=1684959086){d=g-1|0;break pa}if((f|0)==1684959085)break oa;o=g+1|0}if((d|0)>=(o|0))continue;break}f=0;break na}f=J[(i+P(g,36)|0)+28>>2]}J[b+112>>2]=f;d=0;g=L[b+128>>1]&-5|(e?4:(c|0)!=0&(f|0)!=0?4:0);I[b+128>>1]=g;e=b+128|0;if((p|0)>0)break fa}J[b+ -116>>2]=0;c=0;break ea}o=p-1|0;c=o;qa:{ra:{while(1){j=c+d>>>1|0;f=J[i+P(j,36)>>2];sa:{if(f>>>0>=1920232558){c=j-1|0;break sa}if((f|0)==1920232557)break ra;d=j+1|0}if((c|0)>=(d|0))continue;break}c=0;break qa}c=J[(i+P(j,36)|0)+28>>2]}J[b+116>>2]=c;d=0;ta:{while(1){f=d+o>>>1|0;c=J[i+P(f,36)>>2];ua:{if(c>>>0>=1986359925){o=f-1|0;break ua}if((c|0)==1986359924)break ta;d=f+1|0}if((d|0)<=(o|0))continue;break}c=0;break ea}c=(J[(i+P(f,36)|0)+28>>2]!=0)<<3}f=c|g&-9;I[e>>1]=f;l=(J[a+4>>2]&-2)==4?1801810542: -1986753134;o=0;va:{wa:{xa:{if((p|0)<=0){J[b+120>>2]=0;d=f&65534;break xa}c=p-1|0;j=c;ya:{za:{while(1){g=j+o>>>1|0;d=J[i+P(g,36)>>2];Aa:{if(d>>>0>l>>>0){j=g-1|0;break Aa}if(d>>>0>=l>>>0)break za;o=g+1|0}if((j|0)>=(o|0))continue;break}d=0;break ya}d=J[(i+P(g,36)|0)+24>>2]}J[b+120>>2]=d;o=0;d=f&-2|(d|0)!=0;I[b+128>>1]=d;while(1){g=c+o>>>1|0;f=J[i+P(g,36)>>2];Ba:{if(f>>>0>=1953653100){c=g-1|0;break Ba}if((f|0)==1953653099)break wa;o=g+1|0}if((c|0)>=(o|0))continue;break}}J[b+124>>2]=0;c=0;break va}c=J[(i+ -P(g,36)|0)+24>>2];J[b+124>>2]=c;c=((c|0)!=0)<<1}I[e>>1]=c|d&65533;f=1;Ca:{if((p|0)<=0)break Ca;o=p-1|0;c=0;Da:{while(1){f=c+o>>>1|0;d=J[i+P(f,36)>>2];Ea:{if(d>>>0>l>>>0){o=f-1|0;break Ea}if(d>>>0>=l>>>0)break Da;c=f+1|0}if((c|0)<=(o|0))continue;break}f=1;break Ca}f=J[(i+P(f,36)|0)+8>>2]==65535}l=J[J[b+20>>2]+40>>2];g=(l|0)!=J[b+28>>2];c=J[a>>2];p=c+144|0;while(1){Fa:{d=J[p>>2];if(d)break Fa;if(!J[c+48>>2]){d=169776;break Fa}d=lm(p);if(!d)d=169776;j=J[p>>2];J[p>>2]=j?j:d;if(!j)break Fa;km(d);continue}break}c= -L[b+128>>1];d=J[d>>2];d=d?d:169776;d=M[d+16>>2]<4?169776:J[d+12>>2];if(!((K[d|0]|K[d+1|0]<<8)==256&(K[d+4|0]|K[d+5|0]<<8)!=0)){c=c|64;I[e>>1]=c}j=1;I[e>>1]=c&57343|(H[a+124|0]&1)<<13;p=J[a>>2];c=J[p+168>>2];Ga:{if(c)break Ga;while(1){c=J[p+48>>2];if(!c){c=169776;break Ga}c=Tu(c);if(!c)c=169776;d=J[p+168>>2];J[p+168>>2]=d?d:c;if(!d)break Ga;wc(c);c=J[p+168>>2];if(!c)continue;break}}c=M[c+16>>2]<8?169776:J[c+12>>2];p=(K[c|0]|K[c+1|0]<<8)!=0;if(!(H[a+124|0]&1))j=!tH(J[a>>2]);Ha:{Ia:{Ja:{Ka:{if(!(g&(l| -0)!=0)){c=J[a>>2];l=c+152|0;while(1){La:{g=J[l>>2];if(g)break La;if(!J[c+48>>2]){g=169776;break La}g=Fo(l);if(!g)g=169776;d=J[l>>2];J[l>>2]=d?d:g;if(!d)break La;lg(g);continue}break}c=J[g>>2];c=c?c:169776;c=M[c+16>>2]<4?169776:J[c+12>>2];d=(K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))!=0;if(!p|!(!d|j))break Ka;break Ja}if(p)break Ja;c=L[e>>1];break Ha}c=L[e>>1];if(!d)break Ha;c=c|512;break Ia}c=L[e>>1]|4096}I[e>>1]=c}Ma:{if(c&4096|(f^-1)&(c&512)>>>9)break Ma;if(p){c=c|4096;break Ma}d=J[a>>2];g= -d+140|0;while(1){Na:{c=J[g>>2];if(c)break Na;if(!J[d+48>>2]){c=169776;break Na}c=Go(g);if(!c)c=169776;f=J[g>>2];J[g>>2]=f?f:c;if(!f)break Na;wc(c);continue}break}d=L[e>>1];c=M[c+16>>2]<4?169776:J[c+12>>2];c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24)?d|1024:d}j=c&-2049|(c&4608?0:(c^-1)<<1&2048);I[e>>1]=j;d=0;Oa:{if(!(K[a+124|0]&2)|c&4096)break Oa;d=32;if(!(c&1024))break Oa;c=J[a>>2];g=c+140|0;while(1){Pa:{f=J[g>>2];if(f)break Pa;if(!J[c+48>>2]){f=169776;break Pa}f=Go(g);if(!f)f=169776;d=J[g>>2]; -J[g>>2]=d?d:f;if(!d)break Pa;wc(f);continue}break}c=0;Qa:{Ra:{Sa:{j=M[f+16>>2]<4?169776:J[f+12>>2];d=K[j|0]|K[j+1|0]<<8;switch((d<<8|d>>>8)&65535){case 1:break Ra;case 0:break Sa;default:break Qa}}d=K[j+2|0]|K[j+3|0]<<8;if(!d)break Qa;c=1;if(K[j+8|0]==1)break Qa;g=(d<<8|d>>>8)&65535;d=g>>>0<=1?1:g;f=j+4|0;c=0;Ta:{while(1){c=c+1|0;if((d|0)!=(c|0)){j=f;f=K[f+2|0]|K[f+3|0]<<8;f=j+((f<<8|f>>>8)&65535)|0;if(K[f+4|0]!=1)continue;break Ta}break}c=d}c=c>>>0>>0;break Qa}d=K[j+4|0]|K[j+5|0]<<8|(K[j+6|0]<< -16|K[j+7|0]<<24);if(!d)break Qa;c=1;if(K[j+13|0]==1)break Qa;g=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);f=g>>>0<=1?1:g;c=j+8|0;d=0;Ua:{while(1){d=d+1|0;if((f|0)!=(d|0)){j=c;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=j+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;if(K[c+5|0]!=1)continue;break Ua}break}d=f}c=d>>>0>>0}j=L[e>>1];d=c?0:32}f=d|j&-33;I[b+128>>1]=f;c=J[b+44>>2];Va:{Wa:{if((c|0)<=0)break Wa;g=J[b+48>>2];c=c-1|0;d=0;while(1){Xa:{l=c+d>>>1|0;b=J[g+P(l,36)>>2];Ya:{if(b>>>0>=1835102828){c= -l-1|0;break Ya}if((b|0)==1835102827)break Xa;d=l+1|0}if((c|0)>=(d|0))continue;break Wa}break}b=16;if(J[(g+P(l,36)|0)+28>>2])break Va}b=0}c=b|f&-17;I[e>>1]=c;o=0;d=0;Za:{if(j&4608)break Za;d=256;if(!(j&1024))break Za;b=J[a>>2];f=b+140|0;while(1){_a:{d=J[f>>2];if(d)break _a;if(!J[b+48>>2]){d=169776;break _a}d=Go(f);if(!d)d=169776;c=J[f>>2];J[f>>2]=c?c:d;if(!c)break _a;wc(d);continue}break}b=0;$a:{ab:{bb:{g=M[d+16>>2]<4?169776:J[d+12>>2];c=K[g|0]|K[g+1|0]<<8;switch((c<<8|c>>>8)&65535){case 1:break ab; -case 0:break bb;default:break $a}}c=K[g+2|0]|K[g+3|0]<<8;if(!c)break $a;b=1;if(K[g+9|0]&4)break $a;f=(c<<8|c>>>8)&65535;c=f>>>0<=1?1:f;d=g+4|0;b=0;cb:{while(1){b=b+1|0;if((c|0)!=(b|0)){g=d;d=K[d+2|0]|K[d+3|0]<<8;d=g+((d<<8|d>>>8)&65535)|0;if(!(K[d+5|0]&4))continue;break cb}break}b=c}b=b>>>0>>0;break $a}c=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);if(!c)break $a;b=1;if(K[g+12|0]&64)break $a;f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=f>>>0<=1?1:f;b=g+8|0;c=0;db:{while(1){c=c+1|0;if((d|0)!= -(c|0)){g=b;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=g+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;if(!(K[b+4|0]&64))continue;break db}break}c=d}b=c>>>0>>0}c=L[e>>1];d=b?0:256}b=d|c&-257;I[e>>1]=b;b=b&-129|(d?K[a+124|0]<<5&128:0);c=c&8192?b&-257:b;I[e>>1]=c;if(c&2){c=J[a>>2];a=J[c+176>>2];eb:{if(a)break eb;while(1){a=J[c+48>>2];if(!a){a=169776;break eb}a=Su(a);if(!a)a=169776;b=J[c+176>>2];J[c+176>>2]=b?b:a;if(!b)break eb;wc(a);a=J[c+176>>2];if(!a)continue;break}}a=M[a+16>>2]<12?169776: -J[a+12>>2];o=((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=0)<<14;c=L[e>>1]}I[e>>1]=c&49151|o}function oda(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,y=0,z=0;o=xb-16|0;xb=o;a:{b:{c:{if(!a)break c;if(!(J[a+344>>2]|K[a+399|0])){if(!(K[a+201|0]&4))break b;g=J[a+320>>2];c=P(K[a+403|0],K[a+406|0]);d:{if(c>>>0>=8){g=P(g,c>>>3|0);break d}g=P(c,g)+7>>>3|0}H[a+408|0]=c;H[a+409|0]=K[a+404|0];g=g+1|0;c=Zd(a,g);J[a+356>>2]=c;H[c|0]=0;c=K[a+ -400|0];if(c&16){c=Zd(a,J[a+336>>2]+1|0);J[a+360>>2]=c;H[c|0]=1;c=K[a+400|0]}e:{if((c&255)>>>0<32)break e;y=a,z=Hl(a,g),J[y+352>>2]=z;c=K[a+400|0];if(c&32){c=Zd(a,J[a+336>>2]+1|0);J[a+364>>2]=c;H[c|0]=2;c=K[a+400|0]}if(c&64){c=Zd(a,J[a+336>>2]+1|0);J[a+368>>2]=c;H[c|0]=3;c=K[a+400|0]}if(c<<24>>24>=0)break e;c=Zd(a,J[a+336>>2]+1|0);J[a+372>>2]=c;H[c|0]=4}f:{g:{if(K[a+398|0]){c=J[a+324>>2];if(!(K[a+208|0]&2)){J[a+328>>2]=c+7>>>3;c=J[a+320>>2]+7>>>3|0;break f}J[a+328>>2]=c;break g}J[a+328>>2]=J[a+324>> -2]}c=J[a+320>>2]}J[a+332>>2]=c;nD(a,1);c=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=c}h:{if(!K[a+398|0]|!(K[a+208|0]&2))break h;i:switch(K[a+399|0]){case 0:if(!(K[a+344|0]&7))break h;hh(a);break c;case 1:if(!(K[a+344|0]&7)&M[a+320>>2]>4)break h;hh(a);break c;case 2:if((J[a+344>>2]&7)==4)break h;hh(a);break c;case 3:if(!(K[a+344|0]&3)&M[a+320>>2]>2)break h;hh(a);break c;case 4:if((J[a+344>>2]&3)==2)break h;hh(a);break c;case 5:if(!(H[a+344|0]&1)&M[a+320>>2]>1)break h;hh(a);break c;case 6:break i; -default:break h}if(H[a+344|0]&1)break h;hh(a);break c}H[o+12|0]=K[a+401|0];c=J[a+332>>2];J[o+4>>2]=c;g=K[a+406|0];H[o+14|0]=g;d=K[a+403|0];H[o+13|0]=d;g=P(d,g);H[o+15|0]=g;g=g&255;j:{if(g>>>0>=8){c=P(c,g>>>3|0);break j}c=P(c,g)+7>>>3|0}J[o+8>>2]=c;Mb(J[a+356>>2]+1|0,b,c);k:{if(!K[a+398|0])break k;j=K[a+399|0];if(!(K[a+208|0]&2)|j>>>0>5)break k;b=J[a+356>>2]+1|0;if(j>>>0<=5){f=J[o+4>>2];l:{m:{n:{o:{p:{q:{r:{c=K[o+15|0];switch(c-1|0){case 3:break p;case 1:break q;case 0:break r;default:break o}}g=K[j+ -262821|0];if(f>>>0<=g>>>0)break l;h=K[j+262828|0];c=b;e=g;while(1){d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<7&128;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<6&64|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<5&32|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<4&16|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<3&8|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<2&4|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+ -(e>>>3|0)|0]>>>((e^-1)&7)<<1&2|d;e=e+h|0;if(e>>>0>=f>>>0)break m;H[c|0]=K[b+(e>>>3|0)|0]>>>((e^-1)&7)&1|d;c=c+1|0;e=e+h|0;if(f>>>0>e>>>0)continue;break}break l}g=K[j+262821|0];if(f>>>0<=g>>>0)break l;h=K[j+262828|0];c=b;e=g;while(1){d=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)<<6&192;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)<<4&48|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)<<2&12|d;e=e+h|0;if(e>>>0>=f>>>0)break m;H[c|0]=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)&3|d; -c=c+1|0;e=e+h|0;if(f>>>0>e>>>0)continue;break}break l}g=K[j+262821|0];if(f>>>0<=g>>>0)break l;e=K[j+262828|0];d=g;c=b;while(1){h=K[b+(d>>>1|0)|0]>>>((d^-1)<<2&4)<<4;d=d+e|0;if(d>>>0>=f>>>0)break n;H[c|0]=h|K[b+(d>>>1|0)|0]>>>((d^-1)<<2&4)&15;c=c+1|0;d=d+e|0;if(f>>>0>d>>>0)continue;break}break l}g=K[j+262821|0];if(f>>>0<=g>>>0)break l;e=c>>>3|0;h=K[j+262828|0];c=g;d=b;while(1){k=b+P(c,e)|0;if((k|0)!=(d|0))Mb(d,k,e);d=d+e|0;c=c+h|0;if(f>>>0>c>>>0)continue;break}break l}d=h&240}H[c|0]=d}b=K[j+262828| -0];b=((b+J[o+4>>2]|0)+(g^-1)>>>0)/(b>>>0)|0;J[o+4>>2]=b;c=K[o+15|0];s:{if(c>>>0>=8){b=P(b,c>>>3|0);break s}b=P(b,c)+7>>>3|0}J[o+8>>2]=b}if(J[o+4>>2])break k;hh(a);break c}b=J[a+208>>2];if(b){g=o+4|0;t:{if(!a)break t;u:{if(!(b&1048576))break u;c=J[a+188>>2];if(!c)break u;Ab[c|0](a,g,J[a+356>>2]+1|0);b=J[a+208>>2]}v:{if(!(b&32768))break v;if(K[a+401|0]&5){Wb(a,251769);b=J[a+208>>2]&-32769;J[a+208>>2]=b;break v}Dr(g,J[a+356>>2]+1|0,(J[a+204>>2]^-1)>>>7&1);b=J[a+208>>2]}if(b&65536){SD(g,J[a+356>>2]+1| -0);b=J[a+208>>2]}if(b&4){b=J[a+356>>2]+1|0;j=K[a+402|0];e=0;c=0;if(!(K[g+9|0]!=8|K[g+10|0]!=1)){w:{x:{y:switch(j-1|0){case 0:f=J[g>>2];if(!f)break w;c=b;while(1){d=(K[b|0]!=0)<<7;if((f|0)==(e+1|0)){b=c;break x}d=(K[b+1|0]!=0)<<6|d;if((f|0)==(e+2|0)){b=c;break x}d=(K[b+2|0]!=0)<<5|d;if((f|0)==(e+3|0)){b=c;break x}d=(K[b+3|0]!=0)<<4|d;if((f|0)==(e+4|0)){b=c;break x}d=(K[b+4|0]!=0)<<3|d;if((f|0)==(e+5|0)){b=c;break x}d=(K[b+5|0]!=0)<<2|d;if((f|0)==(e+6|0)){b=c;break x}d=(K[b+6|0]!=0)<<1|d;if((f|0)== -(e|7)){b=c;break x}H[c|0]=K[b+7|0]!=0|d;c=c+1|0;b=b+8|0;e=e+8|0;if((f|0)!=(e|0))continue;break}break w;case 1:f=J[g>>2];if(!f)break w;e=b;while(1){z:{d=K[e|0]<<6;if((f|0)==(c+1|0))break z;d=K[e+1|0]<<4&48|d;if((f|0)==(c+2|0))break z;d=K[e+2|0]<<2&12|d;if((f|0)==(c|3))break z;H[b|0]=K[e+3|0]&3|d;e=e+4|0;b=b+1|0;c=c+4|0;if((f|0)!=(c|0))continue;break w}break}d=d&255;break x;case 3:break y;default:break w}c=J[g>>2];if(!c)break w;d=b;while(1){A:{f=K[d|0]<<4;if((c|0)==(e|1))break A;H[b|0]=f|K[d+1|0]&15; -d=d+2|0;b=b+1|0;e=e+2|0;if((c|0)!=(e|0))continue;break w}break}d=f&255}H[b|0]=d}H[g+9|0]=j;c=P(j,K[g+10|0]);H[g+11|0]=c;b=J[g>>2];c=c&255;B:{if(c>>>0>=8){b=P(b,c>>>3|0);break B}b=P(b,c)+7>>>3|0}J[g+4>>2]=b}b=J[a+208>>2]}if(b&16){TD(g,J[a+356>>2]+1|0);b=J[a+208>>2]}if(b&8){d=J[a+356>>2]+1|0;j=xb-32|0;xb=j;f=K[g+8|0];C:{if((f|0)==3)break C;b=K[g+9|0];D:{if(f&2){h=K[a+497|0];c=K[a+498|0];J[j+4>>2]=c;J[j+20>>2]=b-c;c=K[a+499|0];J[j+8>>2]=c;J[j+24>>2]=b-c;c=3;break D}h=K[a+500|0];c=1}J[j>>2]=h;e=b-h|0; -J[j+16>>2]=e;if(f&4){f=c<<2;k=K[a+501|0];J[(f|j)>>2]=k;J[(f|j+16)>>2]=b-k;c=c+1|0}E:{if(b>>>0<=7){c=J[g+4>>2];if(!c)break C;if(!b)break E;f=K[a+500|0];k=(b|0)!=4?255:(f|0)==3?17:255;m=(b|0)==2?(f|0)==1?85:k:k;n=(e|0)<=0;k=0;while(1){i=K[d|0];b=e;f=0;if(!n)while(1){f=i<0)continue;break}H[d|0]=m&i>>>0-b|f;d=d+1|0;k=k+1|0;if((c|0)!=(k|0))continue;break}break C}e=P(J[g>>2],c);if((b|0)==8){if(!e)break C;k=0;while(1){h=K[d|0];H[d|0]=0;f=(k>>>0)%(c>>>0)<<2;b=J[f+(j+16|0)>>2];i=J[f+ -j>>2];if((b|0)>(0-i|0)){f=0;if((b|0)>0)while(1){f=h<0)continue;break}H[d|0]=h>>>0-b|f}d=d+1|0;k=k+1|0;if((e|0)!=(k|0))continue;break}break C}if(!e)break C;h=0;while(1){f=0;k=0;i=(h>>>0)%(c>>>0)<<2;b=J[i+(j+16|0)>>2];i=J[i+j>>2];if((b|0)>(0-i|0)){k=K[d+1|0]|K[d|0]<<8;while(1){m=(b|0)>0;f=(m?k<>>0-b|0)|f;b=b-i|0;if(m)continue;break}k=(f&65280)>>>8|0}H[d+1|0]=f;H[d|0]=k;d=d+2|0;h=h+1|0;if((e|0)!=(h|0))continue;break}break C}Nb(d,0,c)}xb=j+32|0;b=J[a+208>>2]}if(b&131072){b= -J[a+356>>2]+1|0;F:{G:switch(K[g+8|0]-4|0){case 2:d=J[g>>2];if(K[g+9|0]==8){if(!d)break F;if((d|0)!=1){e=d&-2;c=0;while(1){f=K[b|0];H[b|0]=K[b+1|0];j=K[b+2|0]|K[b+3|0]<<8;H[b+1|0]=j;H[b+2|0]=j>>>8;H[b+3|0]=f;f=K[b+4|0];H[b+4|0]=K[b+5|0];j=K[b+6|0]|K[b+7|0]<<8;H[b+5|0]=j;H[b+6|0]=j>>>8;H[b+7|0]=f;b=b+8|0;c=c+2|0;if((e|0)!=(c|0))continue;break}}if(!(d&1))break F;c=K[b|0];H[b|0]=K[b+1|0];d=K[b+2|0]|K[b+3|0]<<8;H[b+1|0]=d;H[b+2|0]=d>>>8;H[b+3|0]=c;break F}if(!d)break F;c=0;while(1){e=K[b|0]|K[b+1|0]<< -8;H[b|0]=K[b+2|0];f=K[b+3|0]|K[b+4|0]<<8;H[b+3|0]=K[b+5|0];H[b+1|0]=f;H[b+2|0]=f>>>8;f=K[b+6|0]|K[b+7|0]<<8;H[b+4|0]=f;H[b+5|0]=f>>>8;H[b+6|0]=e;H[b+7|0]=e>>>8;b=b+8|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break F;case 0:break G;default:break F}d=J[g>>2];if(K[g+9|0]==8){if(!d)break F;if(d>>>0>=4){e=d&-4;c=0;while(1){f=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=f;f=K[b+2|0];H[b+2|0]=K[b+3|0];H[b+3|0]=f;f=K[b+4|0];H[b+4|0]=K[b+5|0];H[b+5|0]=f;f=K[b+6|0];H[b+6|0]=K[b+7|0];H[b+7|0]=f;b=b+8|0;c=c+4|0;if((e|0)!= -(c|0))continue;break}}d=d&3;if(!d)break F;c=0;while(1){e=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=e;b=b+2|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break F}if(!d)break F;if((d|0)!=1){f=d&-2;c=0;while(1){e=Opa(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24),16);H[b|0]=e;H[b+1|0]=e>>>8;H[b+2|0]=e>>>16;H[b+3|0]=e>>>24;e=Opa(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24),16);H[b+4|0]=e;H[b+5|0]=e>>>8;H[b+6|0]=e>>>16;H[b+7|0]=e>>>24;b=b+8|0;c=c+2|0;if((f|0)!=(c|0))continue;break}}if(!(d&1))break F;c=Opa(K[b|0]| -K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24),16);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24}b=J[a+208>>2]}H:{if(!(b&524288))break H;b=J[a+356>>2]+1|0;I:switch(K[g+8|0]-4|0){case 2:d=J[g>>2];if(K[g+9|0]==8){if(!d)break H;if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+3|0]=K[b+3|0]^-1;H[b+7|0]=K[b+7|0]^-1;H[b+11|0]=K[b+11|0]^-1;H[b+15|0]=K[b+15|0]^-1;b=b+16|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+3|0]=K[b+3|0]^-1;b=b+4|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break H}if(!d)break H; -if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+6|0]=K[b+6|0]^-1;H[b+7|0]=K[b+7|0]^-1;H[b+14|0]=K[b+14|0]^-1;H[b+15|0]=K[b+15|0]^-1;H[b+22|0]=K[b+22|0]^-1;H[b+23|0]=K[b+23|0]^-1;H[b+30|0]=K[b+30|0]^-1;H[b+31|0]=K[b+31|0]^-1;b=b+32|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+6|0]=K[b+6|0]^-1;H[b+7|0]=K[b+7|0]^-1;b=b+8|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break H;case 0:break I;default:break H}d=J[g>>2];if(K[g+9|0]==8){if(!d)break H;if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+1| -0]=K[b+1|0]^-1;H[b+3|0]=K[b+3|0]^-1;H[b+5|0]=K[b+5|0]^-1;H[b+7|0]=K[b+7|0]^-1;b=b+8|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+1|0]=K[b+1|0]^-1;b=b+2|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break H}if(!d)break H;if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+2|0]=K[b+2|0]^-1;H[b+3|0]=K[b+3|0]^-1;H[b+6|0]=K[b+6|0]^-1;H[b+7|0]=K[b+7|0]^-1;H[b+10|0]=K[b+10|0]^-1;H[b+11|0]=K[b+11|0]^-1;H[b+14|0]=K[b+14|0]^-1;H[b+15|0]=K[b+15|0]^-1;b=b+16|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d= -d&3;if(!d)break H;c=0;while(1){H[b+2|0]=K[b+2|0]^-1;H[b+3|0]=K[b+3|0]^-1;b=b+4|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}b=J[a+208>>2];if(b&1){RD(g,J[a+356>>2]+1|0);b=J[a+208>>2]}if(!(b&32))break t;UD(g,J[a+356>>2]+1|0)}}b=K[o+15|0];if((b|0)!=K[a+404|0]|(b|0)!=K[a+409|0])break a;if(!(!(K[a+660|0]&4)|K[a+664|0]!=64)){b=J[a+356>>2]+1|0;d=K[o+12|0];J:{if(!(d&2))break J;c=J[o+4>>2];K:switch(K[o+13|0]-8|0){case 0:g=3;L:switch(d-2|0){case 4:g=4;break;case 0:break L;default:break J}if(!c)break J;if((c|0)!= -1){f=c&-2;d=0;while(1){e=K[b+1|0];H[b|0]=K[b|0]-e;H[b+2|0]=K[b+2|0]-e;b=b+g|0;e=K[b+1|0];H[b+2|0]=K[b+2|0]-e;H[b|0]=K[b|0]-e;b=b+g|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}if(!(c&1))break J;c=K[b+1|0];H[b|0]=K[b|0]-c;H[b+2|0]=K[b+2|0]-c;break J;case 8:break K;default:break J}e=6;M:switch(d-2|0){case 4:e=8;break;case 0:break M;default:break J}if(!c)break J;g=0;while(1){d=K[b+3|0]|K[b+2|0]<<8;f=(K[b+5|0]|K[b+4|0]<<8)-d|0;H[b+5|0]=f;d=(K[b+1|0]|K[b|0]<<8)-d|0;H[b+1|0]=d;H[b+4|0]=f>>>8;H[b|0]=d>>>8; -b=b+e|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}}b=0;c=0;i=0;n=K[o+15|0];g=n+7|0;k=a;e=J[a+356>>2];m=J[o+8>>2];r=K[a+400|0];t=r<<24>>24;d=2147483647;N:{if(!(r&8)|(r|0)==8)break N;if(!m){d=0;break N}h=e;d=0;if(m>>>0>=4){a=m&-4;while(1){j=d;d=H[h+1|0];f=d&255;j=j+((d|0)<0?256-f|0:f)|0;d=H[h+2|0];f=d&255;j=j+((d|0)<0?256-f|0:f)|0;d=H[h+3|0];f=d&255;j=j+((d|0)<0?256-f|0:f)|0;d=H[h+4|0];f=d&255;d=j+((d|0)<0?256-f|0:f)|0;h=h+4|0;b=b+4|0;if((a|0)!=(b|0))continue;break}}a=m&3;if(!a)break N;while(1){j=d;b= -H[h+1|0];d=b&255;d=j+((b|0)<0?256-d|0:d)|0;h=h+1|0;c=c+1|0;if((a|0)!=(c|0))continue;break}}q=g>>>3|0;j=J[k+352>>2];O:{P:{Q:{R:{if((t|0)==16){b=e+1|0;h=J[k+360>>2]+1|0;if(!n){a=0;c=b;break Q}a=q>>>0<=1?1:q;g=a&7;if(n>>>0<57){c=b;break R}f=a&56;c=b;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;i=i+8|0;if((f|0)!=(i|0))continue;break}break R}a=e;if(!(r&16))break O;a=a+1|0;h=J[k+360>> -2]+1|0;S:{if(!n){g=0;b=0;c=a;break S}g=q>>>0<=1?1:q;f=g&3;T:{if(n>>>0<25){c=a;b=0;break T}x=g&60;c=a;b=0;while(1){i=H[c|0];H[h|0]=i;u=H[c+1|0];H[h+1|0]=u;v=H[c+2|0];H[h+2|0]=v;w=H[c+3|0];H[h+3|0]=w;p=b;b=i&255;i=p+((i|0)<0?256-b|0:b)|0;b=u&255;i=i+((u|0)<0?256-b|0:b)|0;b=v&255;i=i+((v|0)<0?256-b|0:b)|0;b=w&255;b=i+((w|0)<0?256-b|0:b)|0;h=h+4|0;c=c+4|0;s=s+4|0;if((x|0)!=(s|0))continue;break}}if(!f)break S;while(1){i=H[c|0];H[h|0]=i;p=b;b=i&255;b=p+((i|0)<0?256-b|0:b)|0;h=h+1|0;c=c+1|0;l=l+1|0;if((f| -0)!=(l|0))continue;break}}U:{if(g>>>0>=m>>>0)break U;while(1){f=K[c|0]-K[a|0]|0;H[h|0]=f;i=b;b=f&255;b=i+(f<<24>>24<0?256-b|0:b)|0;if(d>>>0>>0)break U;h=h+1|0;a=a+1|0;c=c+1|0;g=g+1|0;if(m>>>0>g>>>0)continue;break}}a=e;if(b>>>0>=d>>>0)break O;f=k+360|0;d=b;break P}if(!g)break Q;i=0;while(1){H[h|0]=K[c|0];h=h+1|0;c=c+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}f=k+360|0;if(a>>>0>=m>>>0)break P;g=m+(a^-1)|0;l=m-a&3;if(l){i=0;while(1){H[h|0]=K[c|0]-K[b|0];h=h+1|0;b=b+1|0;c=c+1|0;a=a+1|0;i=i+1|0;if((l| -0)!=(i|0))continue;break}}if(g>>>0<3)break P;while(1){H[h|0]=K[c|0]-K[b|0];H[h+1|0]=K[c+1|0]-K[b+1|0];H[h+2|0]=K[c+2|0]-K[b+2|0];H[h+3|0]=K[c+3|0]-K[b+3|0];h=h+4|0;b=b+4|0;c=c+4|0;a=a+4|0;if((m|0)!=(a|0))continue;break}}a=J[f>>2]}h=a;V:{W:{X:{if((t|0)==32){h=J[k+364>>2];if(!m)break V;g=m&3;Y:{if(m>>>0<4){c=j;b=e;break Y}f=m&-4;a=0;c=j;b=e;while(1){H[h+1|0]=K[b+1|0]-K[c+1|0];H[h+2|0]=K[b+2|0]-K[c+2|0];H[h+3|0]=K[b+3|0]-K[c+3|0];H[h+4|0]=K[b+4|0]-K[c+4|0];b=b+4|0;h=h+4|0;c=c+4|0;a=a+4|0;if((f|0)!=(a| -0))continue;break}}i=k+364|0;if(g){a=0;while(1){H[h+1|0]=K[b+1|0]-K[c+1|0];b=b+1|0;h=h+1|0;c=c+1|0;a=a+1|0;if((g|0)!=(a|0))continue;break}}g=d;break X}if(!(r&32))break W;i=k+364|0;Z:{if(!m){g=0;break Z}c=J[k+364>>2];b=e;a=j;f=0;g=0;while(1){l=K[b+1|0]-K[a+1|0]|0;H[c+1|0]=l;p=g;g=l&255;g=p+(l<<24>>24<0?256-g|0:g)|0;if(g>>>0>d>>>0)break Z;b=b+1|0;c=c+1|0;a=a+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}if(d>>>0<=g>>>0)break W}h=J[i>>2];d=g}_:{$:{aa:{ba:{if((t|0)==64){h=j+1|0;a=e+1|0;c=J[k+368>>2]+1| -0;if(!n){g=0;b=a;break aa}g=q>>>0<=1?1:q;f=g&3;if(n>>>0<25){b=a;break ba}l=g&60;i=0;b=a;while(1){H[c|0]=K[b|0]-(K[h|0]>>>1|0);H[c+1|0]=K[b+1|0]-(K[h+1|0]>>>1|0);H[c+2|0]=K[b+2|0]-(K[h+2|0]>>>1|0);H[c+3|0]=K[b+3|0]-(K[h+3|0]>>>1|0);c=c+4|0;h=h+4|0;b=b+4|0;i=i+4|0;if((l|0)!=(i|0))continue;break}break ba}if(!(r&64))break _;c=j+1|0;g=e+1|0;b=J[k+368>>2]+1|0;ca:{if(!n){i=0;a=g;f=0;break ca}f=q>>>0<=1?1:q;u=f&1;da:{if(n>>>0<9){i=0;a=g;break da}v=f&62;i=0;a=g;l=0;while(1){r=K[a|0]-(K[c|0]>>>1|0)|0;H[b|0]= -r;s=K[a+1|0]-(K[c+1|0]>>>1|0)|0;H[b+1|0]=s;p=i;i=r&255;p=p+(r<<24>>24<0?256-i|0:i)|0;i=s&255;i=p+(s<<24>>24<0?256-i|0:i)|0;b=b+2|0;c=c+2|0;a=a+2|0;l=l+2|0;if((v|0)!=(l|0))continue;break}}if(!u)break ca;l=K[a|0]-(K[c|0]>>>1|0)|0;H[b|0]=l;p=i;i=l&255;i=p+(l<<24>>24<0?256-i|0:i)|0;b=b+1|0;c=c+1|0;a=a+1|0}ea:{if(f>>>0>=m>>>0)break ea;while(1){l=K[a|0]-(K[g|0]+K[c|0]>>>1|0)|0;H[b|0]=l;p=i;i=l&255;i=p+(l<<24>>24<0?256-i|0:i)|0;if(i>>>0>d>>>0)break ea;a=a+1|0;c=c+1|0;g=g+1|0;b=b+1|0;f=f+1|0;if(m>>>0>f>>> -0)continue;break}}if(d>>>0<=i>>>0)break _;f=k+368|0;d=i;break $}if(!f)break aa;i=0;while(1){H[c|0]=K[b|0]-(K[h|0]>>>1|0);c=c+1|0;h=h+1|0;b=b+1|0;i=i+1|0;if((f|0)!=(i|0))continue;break}}f=k+368|0;if(g>>>0>=m>>>0)break $;i=g+1|0;if(m-g&1){H[c|0]=K[b|0]-(K[e+1|0]+K[h|0]>>>1|0);c=c+1|0;h=h+1|0;g=i;b=b+1|0;a=e+2|0}if((i|0)==(m|0))break $;while(1){H[c|0]=K[b|0]-(K[a|0]+K[h|0]>>>1|0);H[c+1|0]=K[b+1|0]-(K[a+1|0]+K[h+1|0]>>>1|0);c=c+2|0;a=a+2|0;h=h+2|0;b=b+2|0;g=g+2|0;if((m|0)!=(g|0))continue;break}}h=J[f>> -2]}fa:{ga:{ha:{if((t|0)==-128){d=j+1|0;a=e+1|0;h=J[k+372>>2]+1|0;if(!n){f=0;c=a;b=d;break ga}f=q>>>0<=1?1:q;g=f&3;if(n>>>0<25){b=d;c=a;break ha}e=f&60;i=0;b=d;c=a;while(1){H[h|0]=K[c|0]-K[b|0];H[h+1|0]=K[c+1|0]-K[b+1|0];H[h+2|0]=K[c+2|0]-K[b+2|0];H[h+3|0]=K[c+3|0]-K[b+3|0];h=h+4|0;b=b+4|0;c=c+4|0;i=i+4|0;if((e|0)!=(i|0))continue;break}break ha}if((t|0)>=0)break V;g=j+1|0;f=e+1|0;c=J[k+372>>2]+1|0;ia:{if(!n){i=0;b=f;a=g;l=0;break ia}l=q>>>0<=1?1:q;q=l&1;ja:{if(n>>>0<9){i=0;a=g;b=f;break ja}n=l&62; -i=0;a=g;b=f;s=0;while(1){e=K[b|0]-K[a|0]|0;H[c|0]=e;j=K[b+1|0]-K[a+1|0]|0;H[c+1|0]=j;p=i;i=e&255;i=p+(e<<24>>24<0?256-i|0:i)|0;e=j&255;i=i+(j<<24>>24<0?256-e|0:e)|0;c=c+2|0;a=a+2|0;b=b+2|0;s=s+2|0;if((n|0)!=(s|0))continue;break}}if(!q)break ia;e=K[b|0]-K[a|0]|0;H[c|0]=e;j=e&255;i=(e<<24>>24<0?256-j|0:j)+i|0;c=c+1|0;a=a+1|0;b=b+1|0}ka:{if(m>>>0<=l>>>0)break ka;while(1){t=K[f|0];e=K[g|0];j=t-e|0;n=j>>31;s=K[a|0];q=s-e|0;u=q+j|0;r=u>>31;p=e;e=(j^n)-n|0;j=(r^u)-r|0;n=e>>>0>j>>>0?p:s;p=j;j=q>>31;j=(j^ -q)-j|0;e=K[b|0]-(e>>>0>>0?n:p>>>0>>0?n:t)|0;H[c|0]=e;j=e&255;i=(e<<24>>24<0?256-j|0:j)+i|0;if(i>>>0>d>>>0)break ka;a=a+1|0;g=g+1|0;f=f+1|0;b=b+1|0;c=c+1|0;l=l+1|0;if(m>>>0>l>>>0)continue;break}}if(d>>>0<=i>>>0)break V;g=k+372|0;break fa}if(!g)break ga;i=0;while(1){H[h|0]=K[c|0]-K[b|0];h=h+1|0;b=b+1|0;c=c+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}g=k+372|0;if(f>>>0>=m>>>0)break fa;while(1){l=K[a|0];e=K[d|0];j=l-e|0;i=j>>31;r=K[b|0];n=r-e|0;t=n+j|0;q=t>>31;p=e;e=(i^j)-i|0;j=(q^t)-q|0;i=e>>> -0>j>>>0?p:r;p=j;j=n>>31;j=(j^n)-j|0;H[h|0]=K[c|0]-(e>>>0>>0?i:p>>>0>>0?i:l);h=h+1|0;c=c+1|0;a=a+1|0;d=d+1|0;b=b+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}h=J[g>>2]}a=J[o+8>>2];J[k+216>>2]=0;J[k+212>>2]=h;b=k+212|0;c=a+1|0;h=0;la:{ma:{while(1){if(!h){J[k+216>>2]=c;c=0}if(jg(b,0)){a=J[k+236>>2];if(a)break ma;gc(k,257218);B()}if(!J[k+228>>2]){ye(k,1229209940,J[k+268>>2],J[k+272>>2]);a=J[k+272>>2];J[k+224>>2]=J[k+268>>2];J[k+228>>2]=a;J[k+200>>2]=J[k+200>>2]|4}h=J[k+216>>2];if(h|c)continue;break}a= -J[k+352>>2];if(a){b=J[k+356>>2];J[k+356>>2]=a;J[k+352>>2]=b}hh(k);a=J[k+452>>2]+1|0;J[k+452>>2]=a;if(a>>>0>J[k+448>>2]-1>>>0)na:{if(!k|M[k+344>>2]>=M[k+328>>2])break na;oa:{b=k+212|0;if(jg(b,2))break oa;while(1){a=J[k+228>>2];if(!a){oD(k,J[k+268>>2],J[k+272>>2]);if(!jg(b,2))continue;break oa}break}b=J[k+272>>2];if((b|0)!=(a|0))oD(k,J[k+268>>2],b-a|0);J[k+452>>2]=0;a=J[k+444>>2];if(a)Ab[a|0](k);break na}a=J[k+236>>2];if(!a){gc(k,252970);B()}gc(k,a);B()}break la}gc(k,a);B()}a=J[k+524>>2];if(!a)break c; -Ab[a|0](k,J[k+344>>2],K[k+399|0])}xb=o+16|0;return}gc(a,252492);B()}gc(a,252722);B()}function NJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;t=xb-16|0;xb=t;f=11;k=J[J[b+96>>2]+4>>2];o=Jg(k,9005);a:{if(!o)break a;y=xf(J[b+96>>2],10901,1);D=Jg(k,11010);g=Jg(k,11108);if(!g)break a;J[b+556>>2]=g;E=xf(J[b+96>>2],10595,1);f=bc(a,0);if(f)break a;C=Ab[J[o+4>>2]](a,b,c,d,e)|0;b:{if(!C){f=2;if(J[b+ -148>>2]!=1330926671)break a;f=0;if((c|0)<0)break a;g=0;c:{if(!(Ab[J[b+516>>2]](b,1751474532,a,0)|0)){f=Ab[J[o+8>>2]](a,b,c,d,e)|0;if(!f)break c;break a}f=Ab[J[o+32>>2]](b,a)|0;if(f)break a;g=1}f=Ab[J[b+516>>2]](b,1128678962,a,0)|0;J[t+12>>2]=f;if(!f){e=1;H[b+732|0]=1;break b}if((f&255)!=142)break a;e=0;f=Ab[J[b+516>>2]](b,1128678944,a,0)|0;J[t+12>>2]=f;if(!f)break b;break a}e=0;f=bc(a,0);if(f)break a;J[t+12>>2]=0;g=1}z=J[b+100>>2];m=tc(z,3136,t+12|0);f=J[t+12>>2];if(f)break a;J[b+712>>2]=m;o=b;b= -g;l=xb-80|0;xb=l;q=J[a+28>>2];j=Nb(m,0,3136);J[l+72>>2]=0;d=l- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[l+56>>2]=0;J[l+60>>2]=0;J[l+48>>2]=0;J[l+52>>2]=0;J[l+40>>2]=0;J[l+44>>2]=0;s=J[a+8>>2];H[j+32|0]=e;J[j+8>>2]=q;J[j+4>>2]=a;J[j>>2]=k;J[j+12>>2]=s;d=Nc(a,27632,j);J[l+76>>2]=d;d:{if(d)break d;e:{if(e){if(!(K[j+24|0]==2&K[j+26|0]>4)){J[l+76>>2]=2;break d}F=j,G=rc(a,l+76|0),J[F+28>>2]=G;if(J[l+76>>2])break d;d=K[j+26|0];break e}f=Nd(a,l+76|0);if(J[l+76>>2])break d;f:{if(K[j+24|0]!=1)break f;d=K[j+26|0];if(d>>> -0<4)break f;if(f>>>0<5)break e}J[l+76>>2]=2;break d}d=bc(a,d+s|0);J[l+76>>2]=d;if(d){if(!b)break d;J[l+76>>2]=2;break d}g:{if(e){J[j+1240>>2]=0;J[j+1244>>2]=0;J[j+1272>>2]=0;d=j+1264|0;J[d>>2]=0;J[d+4>>2]=0;f=j+1256|0;J[f>>2]=0;J[f+4>>2]=0;f=j+1248|0;J[f>>2]=0;J[f+4>>2]=0;J[j+1260>>2]=J[a+8>>2];f=d;d=J[j+28>>2];J[f>>2]=d;d=yd(a,d);J[l+76>>2]=d;if(d)break d;d=pi(j+108|0,a,1,1);J[l+76>>2]=d;if(d)break d;break g}d=pi(j+36|0,a,0,0);J[l+76>>2]=d;if(d){if(!b)break d;J[l+76>>2]=2;break d}d=J[j+48>>2];if(!(d>>> -0<2|d>>>0<=M[j+60>>2])){J[l+76>>2]=b?2:3;break d}d=pi(j+1240|0,a,0,0);J[l+76>>2]=d;if(d)break d;d=l+40|0;f=pi(d,a,1,0);J[l+76>>2]=f;if(f)break d;f=pi(j+108|0,a,1,0);J[l+76>>2]=f;if(f)break d;d=Qs(d,j+1360|0,j+1364|0,j+1368|0);J[l+76>>2]=d;if(d)break d;if(M[j+48>>2]<=M[j+1252>>2])break g;J[l+76>>2]=3;break d}J[j+1356>>2]=J[l+52>>2];h:{i:{if(b){A=c&65535;d=J[j+48>>2];if(A>>>0>>0|(c|0)<=0)break i;J[l+76>>2]=6;break d}if(M[j+48>>2]<2)break h;J[l+76>>2]=3;break d}J[j+16>>2]=d}if((c|0)<0)break d;d=YF(j+ -1372|0,j+1240|0,A,a,s,e?12288:4096,j,o);J[l+76>>2]=d;if(d)break d;d=bc(a,s+J[j+1484>>2]|0);J[l+76>>2]=d;if(d)break d;d=pi(j+1204|0,a,0,e);J[l+76>>2]=d;if(d)break d;j:{if(!(!e&J[j+1504>>2]==65535)){f=j+3112|0;d=xb-16|0;xb=d;k=J[a+28>>2];g=J[j+1552>>2];k:{l:{if(!g)break l;g=bc(a,g+s|0);J[d+12>>2]=g;if(g)break k;g=yd(a,2);J[d+12>>2]=g;if(g)break k;p=J[a+8>>2];g=rc(a,d+12|0);if(J[d+12>>2])break k;if((g|0)!=1){J[d+12>>2]=3;break k}h=d+12|0;n=md(a,h);if(J[d+12>>2])break k;r=rc(a,h);J[f>>2]=r;if(J[d+12>> -2])break k;g=0;i=Tb(k,4,0,r,0,h);if(J[d+12>>2])break k;if(J[f>>2])while(1){F=(g<<2)+i|0,G=md(a,d+12|0),J[F>>2]=G;if(J[d+12>>2])break k;g=g+1|0;if(g>>>0>2])continue;break}g=bc(a,n+p|0);J[d+12>>2]=g;if(g)break k;g=d+12|0;F=f,G=rc(a,g),I[F+8>>1]=G;if(J[d+12>>2])break k;h=rc(a,g);J[f+12>>2]=h;if(J[d+12>>2])break k;F=f,G=Tb(k,4,0,h,0,g),J[F+16>>2]=G;if(J[d+12>>2])break k;if(J[f+12>>2]){h=L[f+8>>1];n=0;while(1){r=J[f+16>>2]+(n<<2)|0;F=r,G=Tb(k,12,0,h,0,d+12|0),J[F>>2]=G;if(J[d+12>>2])break k;h=0;if(L[f+ -8>>1]){g=0;while(1){h=J[r>>2];u=rc(a,d+12|0);if(J[d+12>>2])break k;v=rc(a,d+12|0);if(J[d+12>>2])break k;x=rc(a,d+12|0);if(J[d+12>>2])break k;h=P(g,12)+h|0;J[h>>2]=u<<16>>16<<2;J[h+8>>2]=x<<16>>16<<2;J[h+4>>2]=v<<16>>16<<2;g=g+1|0;h=L[f+8>>1];if(g>>>0>>0)continue;break}}n=n+1|0;if(n>>>0>2])continue;break}}h=0;F=f,G=Tb(k,8,0,J[f>>2],0,d+12|0),J[F+4>>2]=G;if(J[d+12>>2])break k;if(!J[f>>2])break l;while(1){g=J[f+4>>2];n=bc(a,p+J[(h<<2)+i>>2]|0);J[d+12>>2]=n;if(n)break k;n=yd(a,4);J[d+12>>2]= -n;if(n)break k;n=(h<<3)+g|0;g=d+12|0;r=rc(a,g);J[n>>2]=r;if(J[d+12>>2])break k;F=n,G=Tb(k,4,0,r,0,g),J[F+4>>2]=G;if(J[d+12>>2])break k;if(J[n>>2]){g=0;while(1){r=rc(a,d+12|0);J[J[n+4>>2]+(g<<2)>>2]=r;if(J[d+12>>2])break k;g=g+1|0;if(g>>>0>2])continue;break}}h=h+1|0;if(h>>>0>2])continue;break}}J[d+12>>2]=0}if(i)Ab[J[k+8>>2]](k,i);if(J[d+12>>2]){ru(f,k);f=J[d+12>>2]}else f=0;xb=d+16|0;J[l+76>>2]=f;if(f)break d;d=bc(a,s+J[j+1536>>2]|0);J[l+76>>2]=d;if(d)break d;d=pi(l+4|0,a,0,e);J[l+76>>2]= -d;if(d)break d;f=J[l+16>>2];m:{if(f>>>0>256)break m;J[j+2024>>2]=f;d=0;f=Tb(q,652,0,f,0,l+76|0);if(J[l+76>>2])break m;g=J[l+16>>2];n:{if(!g)break n;if(g>>>0>=4){k=g&-4;i=j+2028|0;while(1){J[i+(d<<2)>>2]=f+P(d,652);h=d|1;J[i+(h<<2)>>2]=f+P(h,652);h=d|2;J[i+(h<<2)>>2]=f+P(h,652);h=d|3;J[i+(h<<2)>>2]=f+P(h,652);d=d+4|0;w=w+4|0;if((k|0)!=(w|0))continue;break}}i=g&3;if(i)while(1){J[(j+(d<<2)|0)+2028>>2]=f+P(d,652);d=d+1|0;B=B+1|0;if((i|0)!=(B|0))continue;break}if(!g){d=0;break n}f=e?16384:4096;d=0;while(1){g= -YF(J[(j+(d<<2)|0)+2028>>2],l+4|0,d,a,s,f,j,o);J[l+76>>2]=g;if(g)break m;d=d+1|0;g=J[l+16>>2];if(d>>>0>>0)continue;break}d=g>>>0>1}if(d?0:e)break m;i=j+3052|0;f=J[j+1216>>2];g=xb-16|0;xb=g;d=bc(a,s+J[j+1540>>2]|0);J[g+12>>2]=d;o:{if(d)break o;k=Nd(a,g+12|0);d=J[g+12>>2];if(d)break o;J[i+20>>2]=0;H[i|0]=k;d=3;p:switch(k&255){case 3:f=rc(a,g+12|0);d=J[g+12>>2];if(d)break o;d=3;if(!f)break o;f=P(f,3)+2|0;break;case 0:break p;default:break o}J[i+12>>2]=f;d=Ne(a,f,i+8|0)}xb=g+16|0;J[l+76>>2]=d}d=l+4| -0;f=J[d>>2];if(f){g=d+32|0;i=J[f+28>>2];if(J[d+32>>2])rd(f,g);f=J[d+28>>2];if(f)Ab[J[i+8>>2]](i,f);J[g>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0}if(!J[l+76>>2])break j;break d}J[j+2024>>2]=0}if(!J[j+1484>>2]){J[l+76>>2]=3;break d}J[j+20>>2]=J[j+1216>>2];d=Qs(j+108|0,j+1352|0,0,0);J[l+76>>2]=d;if(d)break d;q:{if(e)break q;d=J[j+20>>2];if(!d)break q;g=j+1180|0;f=J[j+1476>>2];q=(b|0)!=0&J[j+1504>>2]!=65535;k=xb-16|0;xb=k;n=J[a+28>>2];J[k+ -8>>2]=0;r:{s:{t:{u:{if(f>>>0>=3){f=f+s|0;J[g+4>>2]=f;f=bc(a,f);J[k+8>>2]=f;if(f)break s;f=k+8|0;F=g,G=Nd(a,f)&255,J[F>>2]=G;if(J[k+8>>2])break s;f=Tb(n,2,0,d,0,f);J[g+8>>2]=f;if(J[k+8>>2])break s;I[f>>1]=0;v:switch(J[g>>2]){case 0:f=1;i=Tc(a,(d<<1)-2|0);J[k+8>>2]=i;if(i)break s;if(d>>>0>=2)while(1){i=Zc(a);I[J[g+8>>2]+(f<<1)>>1]=i;f=f+1|0;if((d|0)!=(f|0))continue;break}Ec(a);break u;case 1:case 2:f=1;if(d>>>0<=1)break u;while(1){i=rc(a,k+8|0);if(J[k+8>>2])break s;w:{if(J[g>>2]==2){h=rc(a,k+8|0);if(!J[k+ -8>>2])break w;break s}h=Nd(a,k+8|0);if(J[k+8>>2])break s;h=h&255}x:{if(d>>>0<=f>>>0)break x;p=(h^65535)>>>0>>0?i^65535:h;r=J[g+8>>2];h=0;while(1){I[r+(f<<1)>>1]=i;f=f+1|0;if(d>>>0<=f>>>0)break x;i=i+1|0;u=h>>>0

>>0;h=h+1|0;if(u)continue;break}}if(d>>>0>f>>>0)continue;break}break u;default:break v}J[k+8>>2]=3;break s}J[g+4>>2]=f;y:switch(f|0){case 0:if(d>>>0>=230){J[k+8>>2]=3;break s}f=Tb(n,2,0,d,0,k+8|0);J[g+8>>2]=f;if(J[k+8>>2])break s;Mb(f,27664,d<<1);break u;case 1:if(d>>>0>=167){J[k+8>>2]= -3;break s}f=Tb(n,2,0,d,0,k+8|0);J[g+8>>2]=f;if(J[k+8>>2])break s;Mb(f,28128,d<<1);break u;case 2:break y;default:break t}if(d>>>0>=88){J[k+8>>2]=3;break s}f=Tb(n,2,0,d,0,k+8|0);J[g+8>>2]=f;if(J[k+8>>2])break s;Mb(f,28464,d<<1)}z:{if(!q){f=J[k+8>>2];break z}f=0;J[k+12>>2]=0;A:{if(J[g+16>>2])break A;i=0;if(d){r=d&3;q=J[g+8>>2];u=0;B:{if(d>>>0<4){h=0;break B}v=d&-4;h=0;while(1){p=f<<1;x=L[q+(p|6)>>1];w=L[q+(p|4)>>1];B=L[q+(p|2)>>1];p=L[q+p>>1];h=h&65535;h=h>>>0

>>0?p:h;h=h>>>0>>0?B:h;h=h>>>0>> -0?w:h;h=h>>>0>>0?x:h;f=f+4|0;i=i+4|0;if((v|0)!=(i|0))continue;break}}if(r)while(1){i=L[q+(f<<1)>>1];h=h&65535;h=h>>>0>>0?i:h;f=f+1|0;u=u+1|0;if((r|0)!=(u|0))continue;break}i=h&65535}h=Tb(n,2,0,i+1|0,0,k+12|0);J[g+12>>2]=h;f=J[k+12>>2];if(f)break A;C:{if((d|0)<=0)break C;q=J[g+8>>2];f=d;r=d&3;if(r){p=0;while(1){f=f-1|0;I[h+(L[q+(f<<1)>>1]<<1)>>1]=f;p=p+1|0;if((r|0)!=(p|0))continue;break}}if(d>>>0<4)break C;while(1){p=f-1|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;p=f-2|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;p= -f-3|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;f=f-4|0;I[h+(L[q+(f<<1)>>1]<<1)>>1]=f;if(p>>>0>1)continue;break}}J[g+20>>2]=d;J[g+16>>2]=i;f=0}J[k+8>>2]=f}if(f)break s;d=0;break r}J[k+8>>2]=3}d=J[g+8>>2];if(d)Ab[J[n+8>>2]](n,d);J[g+8>>2]=0;d=J[g+12>>2];if(d)Ab[J[n+8>>2]](n,d);J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;d=J[k+8>>2]}xb=k+16|0;J[l+76>>2]=d;if(d)break d;if(J[j+1504>>2]!=65535)break q;n=j+144|0;k=J[j+20>>2];h=a;d=J[j+1480>>2];p=0;q=xb-16|0;xb=q;a=3;D:{if(!J[g+8>>2])break D;f=Nb(n+12|0,0,1024); -if(d>>>0>=2){a=d+s|0;J[n+4>>2]=a;a=bc(h,a);J[q+8>>2]=a;if(a)break D;F=n,G=Nd(h,q+8|0)&255,J[F>>2]=G;a=J[q+8>>2];if(a)break D;f=Nd(h,q+8|0);a=J[q+8>>2];if(a)break D;s=f&255;a=3;E:{F:switch(J[n>>2]&127){case 0:J[n+8>>2]=s+1;a=Tc(h,s);J[q+8>>2]=a;if(a)break D;G:{if(!f)break G;a=1;d=J[h+32>>2];if((f|0)!=1){p=s&254;f=0;while(1){if(a>>>0>>0){i=n+(K[d|0]<<1)|0;I[i+524>>1]=a;I[i+12>>1]=L[J[g+8>>2]+(a<<1)>>1]}i=a+1|0;if(i>>>0>>0){r=n+(K[d+1|0]<<1)|0;I[r+524>>1]=i;I[r+12>>1]=L[J[g+8>>2]+(i<<1)>>1]}d= -d+2|0;a=a+2|0;f=f+2|0;if((p|0)!=(f|0))continue;break}}if(!(s&1)|a>>>0>=k>>>0)break G;d=n+(K[d|0]<<1)|0;I[d+524>>1]=a;I[d+12>>1]=L[J[g+8>>2]+(a<<1)>>1]}Ec(h);break E;case 1:break F;default:break D}J[n+8>>2]=0;if(!f)break E;f=1;while(1){d=f;v=Nd(h,q+8|0);a=J[q+8>>2];if(a)break D;r=Nd(h,q+8|0);a=J[q+8>>2];if(a)break D;u=r&255;a=u+1|0;i=J[n+8>>2];if(u>>>0>=i>>>0){J[n+8>>2]=a;i=a}f=a+d|0;H:{if(f>>>0<=d>>>0)break H;a=v&255;if(!(u&1)){if(d>>>0>>0){u=n+(a<<1)|0;I[u+524>>1]=d;I[u+12>>1]=L[J[g+8>>2]+(d<< -1)>>1]}d=d+1|0;a=a+1|0}if(!r)break H;while(1){if(!(a>>>0>255|d>>>0>=k>>>0)){r=n+(a<<1)|0;I[r+524>>1]=d;I[r+12>>1]=L[J[g+8>>2]+(d<<1)>>1]}r=d+1|0;I:{if(r>>>0>=k>>>0)break I;u=a+1|0;if(u>>>0>255)break I;u=n+(u<<1)|0;I[u+524>>1]=r;I[u+12>>1]=L[J[g+8>>2]+(r<<1)>>1]}a=a+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}p=p+1|0;if((s|0)!=(p|0))continue;break}if(i>>>0<257)break E;J[n+8>>2]=256}if(!(K[n|0]&128)){a=J[q+8>>2];break D}d=Nd(h,q+8|0);a=J[q+8>>2];if(a|!d)break D;i=d&255;d=0;while(1){f=q+8|0;s=Nd(h,f); -a=J[q+8>>2];if(a)break D;f=rc(h,f);a=J[q+8>>2];if(a)break D;s=n+((s&255)<<1)|0;I[s+12>>1]=f;J:{if(!k)break J;p=J[g+8>>2];a=0;while(1){if((f|0)==L[p+(a<<1)>>1]){I[s+524>>1]=a;break J}a=a+1|0;if((k|0)!=(a|0))continue;break}}a=0;d=d+1|0;if((i|0)!=(d|0))continue;break}break D}K:{L:switch(d|0){case 0:Mb(f,24864,512);break K;case 1:break L;default:break D}Mb(f,28640,512)}J[n+8>>2]=0;a=J[h+28>>2];J[q+12>>2]=0;d=J[g+16>>2];if(!d){d=0;i=a;if(k){r=k&3;s=J[g+8>>2];M:{if(k>>>0<4){h=0;a=0;break M}u=k&-4;h=0;a= -0;f=0;while(1){p=a<<1;v=L[s+(p|6)>>1];x=L[s+(p|4)>>1];w=L[s+(p|2)>>1];p=L[p+s>>1];h=h&65535;h=h>>>0

>>0?p:h;h=h>>>0>>0?w:h;h=h>>>0>>0?x:h;h=h>>>0>>0?v:h;a=a+4|0;f=f+4|0;if((u|0)!=(f|0))continue;break}}if(r)while(1){f=L[s+(a<<1)>>1];h=h&65535;h=f>>>0>h>>>0?f:h;a=a+1|0;d=d+1|0;if((r|0)!=(d|0))continue;break}d=h&65535}i=Tb(i,2,0,d+1|0,0,q+12|0);J[g+12>>2]=i;a=J[q+12>>2];if(a)break D;N:{if((k|0)<=0)break N;h=J[g+8>>2];a=k;s=a&3;if(s){f=0;while(1){a=a-1|0;I[i+(L[h+(a<<1)>>1]<<1)>>1]=a;f=f+1| -0;if((s|0)!=(f|0))continue;break}}if(k>>>0<4)break N;while(1){f=a-1|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;f=a-2|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;f=a-3|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;a=a-4|0;I[i+(L[h+(a<<1)>>1]<<1)>>1]=a;if(f>>>0>1)continue;break}}J[g+20>>2]=k;J[g+16>>2]=d}a=0;while(1){O:{P:{f=n+(a<<1)|0;i=L[f+12>>1];if(!i|d>>>0>>0)break P;i=L[J[g+12>>2]+(i<<1)>>1];if(!i)break P;I[f+524>>1]=i;a=a+1|0;J[n+8>>2]=a;break O}I[f+524>>1]=0;I[f+12>>1]=0;a=a+1|0}if((a|0)!=256)continue;break}a=0}xb=q+16|0;J[l+ -76>>2]=a;if(a)break d}F=j,G=Hu(j,A),J[F+1348>>2]=G}a=J[l+40>>2];if(a){d=J[a+28>>2];if(J[l+72>>2])rd(a,l+72|0);a=J[l+68>>2];if(a)Ab[J[d+8>>2]](d,a)}xb=l+80|0;f=J[l+76>>2];J[t+12>>2]=f;if(f)break a;if((c|0)<0){J[o>>2]=J[m+16>>2];f=0;break a}J[m+3088>>2]=E;J[m+3084>>2]=y;J[m+3080>>2]=D;k=c&65535;J[o+4>>2]=k;J[o+16>>2]=J[m+20>>2];if(J[m+1504>>2]==65535){f=11;if(!y)break a}Q:{if(!(J[o+8>>2]&256)|c>>>0<65536)break Q;d=J[o+548>>2];if(!d)break Q;a=J[o+552>>2];f=Ab[J[d+28>>2]](o,c>>>16|0)|0;J[t+12>>2]=f;if(f)break a; -if(!a)break Q;Ab[J[a+28>>2]](o)}if(!K[m+1436|0])J[m+1440>>2]=b?1E3:L[o+68>>1];f=J[m+1432>>2];if(!f)f=J[m+1428>>2];c=m+1448|0;a=f>>31;a=(a^f)-a|0;if((a|0)==65536)a=J[m+1448>>2];else{F=m,G=dc(J[m+1440>>2],a),J[F+1440>>2]=G;F=m,G=dc(J[m+1420>>2],a),J[F+1420>>2]=G;d=m+1428|0;F=d,G=dc(J[d>>2],a),J[F>>2]=G;d=m+1424|0;F=d,G=dc(J[d>>2],a),J[F>>2]=G;F=m,G=dc(J[m+1432>>2],a),J[F+1432>>2]=G;F=m,G=dc(J[m+1444>>2],a),J[F+1444>>2]=G;a=dc(J[m+1448>>2],a)}J[c>>2]=a>>16;J[m+1444>>2]=I[m+1446>>1];a=J[m+2024>>2];if(a){f= -m+1420|0;while(1){a=a-1|0;d=J[((a<<2)+m|0)+2028>>2];R:{if(K[d+64|0]){if(!K[m+1436|0])break R;c=1;g=J[m+1440>>2];if(g>>>0>=2){c=J[d+68>>2];c=c>>>0<=1?1:c>>>0>g>>>0?g:c}g=d+48|0;if(!(!f|!g)){h=J[f>>2];j=J[g>>2];i=c<<16;l=hc(h,j,i);n=J[f+4>>2];q=J[g+8>>2];s=hc(n,q,i);r=h;h=J[g+4>>2];p=hc(r,h,i);r=n;n=J[g+12>>2];A=hc(r,n,i);y=J[f+8>>2];r=hc(y,j,i);j=J[f+12>>2];F=g,G=r+hc(j,q,i)|0,J[F+8>>2]=G;J[g+4>>2]=p+A;J[g>>2]=l+s;F=g,G=hc(y,h,i)+hc(j,n,i)|0,J[F+12>>2]=G}if(!(!f|(d|0)==-72)){i=J[f+8>>2];h=J[f+12>> -2];j=J[d+72>>2];g=c<<16;n=hc(j,J[f>>2],g);l=J[d+76>>2];F=d,G=n+hc(l,J[f+4>>2],g)|0,J[F+72>>2]=G;F=d,G=hc(j,i,g)+hc(l,h,g)|0,J[F+76>>2]=G}F=d,G=hc(J[d+68>>2],J[m+1440>>2],c),J[F+68>>2]=G;break R}c=J[f+4>>2];J[d+48>>2]=J[f>>2];J[d+52>>2]=c;c=J[f+12>>2];J[d+56>>2]=J[f+8>>2];J[d+60>>2]=c;c=J[m+1448>>2];J[d+72>>2]=J[m+1444>>2];J[d+76>>2]=c;J[d+68>>2]=J[m+1440>>2]}c=J[d+60>>2];if(!c)c=J[d+56>>2];g=c;c=c>>31;c=(g^c)-c|0;if((c|0)==65536)c=J[d+76>>2];else{F=d,G=dc(J[d+68>>2],c),J[F+68>>2]=G;F=d,G=dc(J[d+48>> -2],c),J[F+48>>2]=G;F=d,G=dc(J[d+56>>2],c),J[F+56>>2]=G;F=d,G=dc(J[d+52>>2],c),J[F+52>>2]=G;F=d,G=dc(J[d+60>>2],c),J[F+60>>2]=G;F=d,G=dc(J[d+72>>2],c),J[F+72>>2]=G;c=dc(J[d+76>>2],c)}J[d+76>>2]=c>>16;J[d+72>>2]=I[d+74>>1];if(a)continue;break}}g=J[m+1504>>2];if(b){J[o>>2]=J[m+16>>2];if((g|0)!=65535)a=J[m+1196>>2]+1|0;else a=J[m+1216>>2];J[o+16>>2]=a;J[o+52>>2]=I[m+1458>>1];a=I[m+1462>>1];J[o+56>>2]=a;J[o+60>>2]=J[m+1464>>2]+65535>>16;c=J[m+1468>>2]+65535>>16;J[o- -64>>2]=c;d=J[m+1440>>2];I[o+72>>1]= -a;I[o+70>>1]=c;I[o+68>>1]=d;a=c-a|0;c=(P(d&65535,12)>>>0)/10|0;I[o+74>>1]=(a|0)>c<<16>>16?a:c;I[o+80>>1]=L[m+1406>>1];I[o+82>>1]=L[m+1410>>1];a=J[m+1388>>2];S:{if(!a)break S;a=im(m,a);if(!a)break S;F=o,G=of(z,a,t),J[F+20>>2]=G}T:{U:{V:{if(!J[o+20>>2]){d=Hu(m,k);J[o+20>>2]=d;if(!d)break V;a=ac(d);W:{if((a|0)<6)break W;f=d+7|0;c=a+1|0;while(1){if(K[d+6|0]!=43|(K[d+5|0]-91&255)>>>0<230|((K[d+4|0]-91&255)>>>0<230|(K[d+3|0]-91&255)>>>0<230))break W;if((K[d+2|0]-91&255)>>>0<230|(K[d+1|0]-91&255)>>>0<230| -(K[d|0]-91&255)>>>0<230)break W;a=c-7|0;if((c|0)>=8)qc(d,f,a);g=(c|0)>13;c=a;if(g)continue;break}}if(!J[o+20>>2])break V}g=im(m,J[m+1384>>2]);if(!g)break U;a=J[o+20>>2];if(!a)break U;f=K[g|0];if(!f)break U;while(1){X:{Y:{d=f&255;c=d-32|0;if(!((c|0)!=13?c:0)){if((d|0)==K[a|0])break Y;break X}c=a;f=K[a|0];if((d|0)==(f|0))break Y;while(1){Z:{_:{a=f&255;switch(a-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break U;case 0:case 13:break _;default:break Z}}f= -K[c+1|0];a=c+1|0;c=a;if((d|0)!=(f|0))continue;break Y}break}if(a)break U;f=of(z,g,t);if(!f)break U;d=J[o+20>>2];g=ac(d);c=ac(f);$:{if((g|0)<=(c|0))break $;a=1;if((c|0)>0)while(1){if(K[d+(g-a|0)|0]!=K[(c-a|0)+f|0])break $;i=(a|0)==(c|0);a=a+1|0;if(!i)continue;break}a=g+(c^-1)|0;if((a|0)<=0)break $;while(1){c=a+d|0;g=K[c|0];i=g-32|0;if(!((1<>>0<=13:0)|(g|0)==95)){H[c+1|0]=0;break $}c=(a|0)>1;a=a-1|0;if(c)continue;break}}break T}a=a+1|0}f=K[g+1|0];g=g+1|0;if(f)continue;break}break U}a=im(m, -J[m+1544>>2]);if(!a)break U;F=o,G=of(z,a,t),J[F+20>>2]=G}f=of(z,11235,t)}J[o+24>>2]=f;a=C?2065:2073;J[o+8>>2]=J[o+8>>2]|(K[m+1396|0]?a|4:a);f=J[m+1400>>2]!=0;a=im(m,J[m+1392>>2]);aa:{if(!a)break aa;if(fc(a,11389))if(fc(a,11470))break aa;f=f|2}ba:{if(f&2)break ba;a=J[o+24>>2];if(!a)break ba;if(Zb(a,11389,4))if(Zb(a,11470,5))break ba;f=f|2}J[o+12>>2]=f;g=J[m+1504>>2]}ca:{if(!((g|0)!=65535|e)){J[o+8>>2]=J[o+8>>2]|512;e=b;break ca}e=b;if(!b|(g|0)==65535)break ca;J[o+8>>2]=J[o+8>>2]|4096;e=1}a=J[o+36>> -2];da:{ea:{if(a){b=J[o+40>>2];f=0;while(1){fa:{ga:{c=J[b+(f<<2)>>2];switch(L[c+8>>1]){case 0:break ea;case 3:break ga;default:break fa}}if(L[c+10>>1]==1)break ea}f=f+1|0;if((a|0)!=(f|0))continue;break}}if((g|0)!=65535&e)break da;J[t>>2]=o;J[t+4>>2]=1970170211;J[t+8>>2]=65539;b=zf(24468,0,t,0);J[t+12>>2]=b;ha:{if(!b)break ha;b=b&255;if((b|0)==163)break ha;if((b|0)!=7)break da}J[t+12>>2]=0;if(J[o+92>>2]|(a|0)==J[o+36>>2])break ea;J[o+92>>2]=J[J[o+40>>2]+(a<<2)>>2]}if(!J[m+152>>2])break da;I[t+8>>1]= -7;J[t>>2]=o;b=1094995778;f=0;ia:{ja:switch(J[m+148>>2]){case 1:b=1094992453;f=1;break ia;case 0:break ia;default:break ja}b=1094992451;f=2}J[t+4>>2]=b;I[t+10>>1]=f;F=t,G=zf(24428,0,t,0),J[F+12>>2]=G}f=J[t+12>>2]}xb=t+16|0;return f|0}function b0(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,L=0;t=xb-16|0;xb=t;a:{if(!J[a+208>>2])break a;f=a+236|0;i=J[f>>2];if(!i)break a;c=f;while(1){l=M[i+16>> -2]>>0;c=l?c:i;i=J[(l?i+4|0:i)>>2];if(i)continue;break}if((c|0)==(f|0)|M[c+16>>2]>b>>>0)break a;b=J[c+20>>2];if((Ab[J[J[b>>2]+12>>2]](b)|0)!=5)break a;b=J[c+20>>2];if(!b)break a;J[t+12>>2]=J[b+4>>2];J[t+8>>2]=J[b+8>>2];if(!J[t+12>>2]|!J[t+8>>2]|(J[e+4>>2]-J[e>>2]|0)!=48)break a;if(J[b+16>>2]==1){J[t+4>>2]=J[b+24>>2];J[t>>2]=J[b+28>>2];i=J[t+4>>2];f=J[t>>2];c=xb-48|0;xb=c;b:{c:{b=J[t+12>>2];l=J[t+8>>2];d:{if(!b|!l)break d;o=!i|!f;e:{if(!o)break e;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+ -36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[195395]=0;b=ha(1139,c|0,b|0,l|0,0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break c;if(!b){kd(c);break d}J[195395]=0;i=J[c+4>>2];b=J[195395];J[195395]=0;if((b|0)==1)break c;J[195395]=0;f=J[c+8>>2];b=J[195395];J[195395]=0;if((b|0)==1)break c;J[195395]=0;b=J[c+16>>2];l=J[195395];J[195395]=0;if((l|0)==1)break c;J[195395]=0;J[c+16>>2]=0;l= -J[195395];J[195395]=0;if((l|0)==1)break c;if(!(!f|!i|(!b|f+1>>>0<3))){q=(f|0)/2<<2;r=i<<2;u=(f<<2)-4|0;while(1){v=P(i,k);w=P(u-k|0,i);l=0;while(1){j=l+v|0;C=(j|3)+b|0;E=K[C|0];x=(j|2)+b|0;F=K[x|0];y=(j|1)+b|0;G=K[y|0];j=b+j|0;L=K[j|0];s=j;j=l+w|0;D=j+b|0;H[s|0]=K[D|0];s=y;y=(j|1)+b|0;H[s|0]=K[y|0];s=x;x=(j|2)+b|0;H[s|0]=K[x|0];j=(j|3)+b|0;H[C|0]=K[j|0];H[D|0]=L;H[y|0]=G;H[x|0]=F;H[j|0]=E;l=l+4|0;if(r>>>0>l>>>0)continue;break}k=k+4|0;if(q>>>0>k>>>0)continue;break}kd(c);break e}kd(c)}h=O[d>>3];f:{if(R(h)< -2147483648){s=~~h;break f}s=-2147483648}J[c>>2]=s;g=O[d+8>>3];g:{if(R(g)<2147483648){s=~~g;break g}s=-2147483648}J[c+4>>2]=s;h=h+O[d+16>>3];h:{if(R(h)<2147483648){s=~~h;break h}s=-2147483648}J[c+8>>2]=s;h=g+O[d+24>>3];i:{if(R(h)<2147483648){d=~~h;break i}d=-2147483648}J[c+12>>2]=d;f=GA(b,i,f,c);d=J[e>>2];h=O[d>>3];m=O[d+16>>3];p=O[d+40>>3];g=O[d+8>>3];n=R(+(J[c+12>>2]-J[c+4>>2]|0));j:{if(n<4294967296&n>=0){d=~~n>>>0;break j}d=0}e=J[a+208>>2];z=m-h;A=p-g;a=f?f:b;n=R(+(J[c+8>>2]-J[c>>2]|0));k:{if(n< -4294967296&n>=0){s=~~n>>>0;break k}s=0}Ab[J[J[e>>2]+16>>2]](e,h,g,z,A,a,s,d);if(!(!o|!b))Kb(b);if(!f)break d;Kb(f)}xb=c+48|0;break b}a=Z()|0;kd(c);ba(a|0);B()}break a}if(J[b+16>>2]!=2)break a;l:switch(J[b+20>>2]-1|0){case 2:case 3:case 4:b=xb-448|0;xb=b;m:{n:{o:{f=J[t+12>>2];c=J[t+8>>2];if(!(!f|!c|(J[e+4>>2]-J[e>>2]|0)!=48)){i=_q(b+192|0);J[195395]=0;ol(i,f,c);c=J[195395];J[195395]=0;p:{q:{if((c|0)==1)break q;J[(i+J[J[i>>2]-12>>2]|0)+24>>2]=J[(J[J[a>>2]-12>>2]+a|0)+24>>2];J[195395]=0;ea(2111,i|0); -c=J[195395];J[195395]=0;if((c|0)==1)break q;if(K[(i+J[J[i>>2]-12>>2]|0)+33|0])break p;J[195395]=0;c=J[195395];J[195395]=0;r:{s:{t:{u:{v:{w:{if((c|0)!=1){f=J[i+84>>2];k=J[i+92>>2];l=J[i+88>>2];j=J[i+96>>2];c=J[J[a>>2]+36>>2];J[195395]=0;c=_(c|0,a|0)|0;o=J[195395];J[195395]=0;if((o|0)==1)break w;o=J[c>>2];q=J[c+8>>2];r=J[c+4>>2];u=J[c+12>>2];c=J[a+208>>2];v=J[J[c>>2]+96>>2];J[195395]=0;v=_(v|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break o;l=j-l|0;c=l>>31;h=+((c^l)-c|0);f=k-f|0;c=f>>31;g=+((c^f)- -c|0);if((v|0)!=2)break r;J[195395]=0;c=J[195395];J[195395]=0;if((c|0)==1)break v;c=J[(J[J[a>>2]-12>>2]+a|0)+24>>2];f=J[J[0]+460>>2];J[195395]=0;$(f|0,0,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break v;c=J[a+208>>2];J[195395]=0;f=J[c+4>>2];c=J[195395];J[195395]=0;if((c|0)==1)break u;k=q-o|0;c=k>>31;m=+((c^k)-c|0);n=O[f+32>>3]*96/25.4/m;f=u-r|0;c=f>>31;m=m>2E3?m:2E3;p=+((c^f)-c|0);p=p>2E3?p:2E3;if(mp?p:m)*n}g=n*g;if(!(R(g)<2147483648))break t;c=~~g;break s}a=Z()|0;break n}a= -Z()|0;break n}a=Z()|0;break n}a=Z()|0;break n}c=-2147483648}J[b+188>>2]=c;h=n*h;x:{if(R(h)<2147483648){f=~~h;break x}f=-2147483648}J[b+184>>2]=f;r=P(c,f);j=Mp(r<<2);if(!j)break p;y:{if((r|0)<=0)break y;q=0;k=0;if(r>>>0>=8){u=r&-8;l=0;while(1){o=k<<2;J[o+j>>2]=16777215;J[j+(o|4)>>2]=16777215;J[j+(o|8)>>2]=16777215;J[j+(o|12)>>2]=16777215;J[j+(o|16)>>2]=16777215;J[j+(o|20)>>2]=16777215;J[j+(o|24)>>2]=16777215;J[j+(o|28)>>2]=16777215;k=k+8|0;l=l+8|0;if((u|0)!=(l|0))continue;break}}l=r&7;if(!l)break y; -while(1){J[j+(k<<2)>>2]=16777215;k=k+1|0;q=q+1|0;if((l|0)!=(q|0))continue;break}}O[b+8>>3]=+(c|0)*25.4/96;O[b+176>>3]=+(f|0)*25.4/96;J[195395]=0;f=b+128|0;J[f>>2]=0;J[f+4>>2]=0;H[f+40|0]=0;J[f+32>>2]=0;J[f+36>>2]=-1074790400;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;c=J[195395];J[195395]=0;z:{A:{B:{C:{D:{E:{if((c|0)!=1){J[195395]=0;J[f+16>>2]=j;c=J[195395];J[195395]=0;if((c|0)==1)break E;J[195395]= -0;J[f+4>>2]=J[b+188>>2];c=J[195395];J[195395]=0;if((c|0)==1)break E;J[195395]=0;J[f+8>>2]=J[b+184>>2];c=J[195395];J[195395]=0;if((c|0)==1)break E;J[195395]=0;J[b+56>>2]=J[b+188>>2]<<2;k=b+56|0;J[f+12>>2]=J[k>>2];c=J[195395];J[195395]=0;if((c|0)==1)break D;c=J[J[0]+488>>2];J[195395]=0;$(c|0,0,f|0);c=J[195395];J[195395]=0;if((c|0)==1)break E;c=J[J[0]+480>>2];J[195395]=0;$(c|0,0,0);c=J[195395];J[195395]=0;if((c|0)==1)break E;c=J[J[0]+36>>2];J[195395]=0;ca(c|0,0,b+8|0)|0;c=J[195395];J[195395]=0;if((c| -0)==1)break E;c=J[J[0]+28>>2];J[195395]=0;ca(c|0,0,b+176|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break E;J[b+56>>2]=3;c=J[J[0]+308>>2];J[195395]=0;ca(c|0,0,k|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break C;c=J[J[i>>2]-12>>2];J[b+80>>2]=0;J[b+84>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+56>>2]=388672;J[b+124>>2]=0;h=O[b+176>>3];O[b+96>>3]=h;g=O[b+8>>3];O[b+88>>3]=g;J[b+60>>2]=0;c=c+i|0;J[b+64>>2]=c;l=J[J[c>>2]+16>>2];J[195395]=0;c=_(l|0,c|0)|0;l=J[195395];J[195395]=0;if((l|0)==1)break B;l=J[c+8>>2];j= -J[c>>2];o=J[c+12>>2];c=J[c+4>>2];I[b+120>>1]=256;J[195395]=0;O[b+112>>3]=h/R(+(o-c|0));O[b+104>>3]=g/R(+(l-j|0));$(1804,i|0,k|0);c=J[195395];J[195395]=0;if((c|0)==1)break z;J[195395]=0;ea(2114,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break z;J[b+24>>2]=3;c=J[J[0]+312>>2];J[195395]=0;ca(c|0,0,b+24|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break z;J[195395]=0;l=J[f+16>>2];c=J[195395];J[195395]=0;if((c|0)==1)break z;h=O[d>>3];g=n*h;F:{if(R(g)<2147483648){c=~~g;break F}c=-2147483648}J[b+24>>2]=c;g=O[d+ -8>>3];m=n*g;G:{if(R(m)<2147483648){c=~~m;break G}c=-2147483648}J[b+28>>2]=c;h=n*(h+O[d+16>>3]);H:{if(R(h)<2147483648){c=~~h;break H}c=-2147483648}J[b+32>>2]=c;h=O[d+24>>3];J[195395]=0;h=n*(g+h);I:{if(R(h)<2147483648){c=~~h;break I}c=-2147483648}J[b+36>>2]=c;k=ha(2115,l|0,J[b+188>>2],J[b+184>>2],b+24|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break z;j=J[a+208>>2];c=J[e>>2];n=O[c+16>>3];m=O[c+8>>3];h=O[c>>3];c=J[a+120>>2];J[195395]=0;o=J[b+188>>2];d=J[b+24>>2];r=J[b+32>>2];q=J[b+184>>2];u=J[b+28>>2]; -v=J[b+36>>2];p=O[c+632>>3];w=J[195395];J[195395]=0;g=R(+(v-u|0));J:{if(g<4294967296&g>=0){c=~~g>>>0;break J}c=0}g=R(+(r-d|0));K:{if(g<4294967296&g>=0){d=~~g>>>0;break K}d=0}L:{if((w|0)==1)break L;e=J[e>>2];g=O[e+40>>3];z=O[e+8>>3];a=J[a+120>>2];J[195395]=0;A=O[a+640>>3];a=J[195395];J[195395]=0;if((a|0)==1)break L;a=J[J[j>>2]+16>>2];J[195395]=0;Va(a|0,j|0,+h,+m,+(n-h-p),+(g-z-A),(k?k:l)|0,(d>>>0>o>>>0?o:d)|0,(c>>>0>q>>>0?q:c)|0);a=J[195395];J[195395]=0;if((a|0)==1)break L;a=J[J[0]+12>>2];J[195395]= -0;_(a|0,0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break A}break z}a=Z()|0;break n}a=Z()|0;kd(f);break n}a=Z()|0;kd(f);break n}a=Z()|0;kd(f);break n}a=Z()|0;kd(f);break n}if(k)Kb(k);J[b+56>>2]=388672;a=J[b+124>>2];if(a)Kb(a);kd(f);break p}a=Z()|0;J[b+56>>2]=388672;b=J[b+124>>2];if(b)Kb(b);kd(f);break n}c=J[a+208>>2];f=J[J[c>>2]+96>>2];J[195395]=0;c=_(f|0,c|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break o;if((c|0)!=4)break p;J[195395]=0;la(2118,i|0,4,0,0);c=J[195395];J[195395]=0;if((c|0)==1)break o; -J[195395]=0;ea(2114,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break o;c=J[a+120>>2];J[195395]=0;f=c+408|0;c=J[195395];J[195395]=0;M:{N:{O:{P:{Q:{R:{if((c|0)!=1){c=J[e>>2];O[b+128>>3]=O[c>>3];O[b+136>>3]=O[c+8>>3];n=O[c+16>>3];c=J[a+120>>2];J[195395]=0;m=O[c+632>>3];c=J[195395];J[195395]=0;if((c|0)==1)break R;O[b+144>>3]=n-m;n=O[J[e>>2]+40>>3];c=J[a+120>>2];J[195395]=0;m=O[c+640>>3];c=J[195395];J[195395]=0;if((c|0)==1)break R;O[b+152>>3]=n-m;n=O[d>>3]-+J[i+84>>2];O[b+24>>3]=n;m=O[d+8>>3]-+J[i+88>>2]; -O[b+32>>3]=m;p=O[d+16>>3];if(p>2]+48>>2];J[195395]=0;g=+va(c|0,a|0);c=J[195395];J[195395]=0;if((c|0)==1)break Q;g=p-g}O[b+40>>3]=n+g;g=O[d+24>>3];if(g>2]+44>>2];J[195395]=0;h=+va(c|0,a|0);c=J[195395];J[195395]=0;if((c|0)==1)break Q;h=g-h}O[b+48>>3]=m+h;J[195395]=0;c=b+56|0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;d=J[195395];J[195395]=0;if((d|0)== -1)break P;J[195395]=0;Rd(c,f);d=J[195395];J[195395]=0;if((d|0)==1)break P;O[c+32>>3]=O[c+32>>3]-+J[a+100>>2];O[c+40>>3]=O[c+40>>3]-+J[a+104>>2];d=0;J[195395]=0;e=J[i+208>>2];f=J[195395];J[195395]=0;if((f|0)==1)break O;if(e)d=Bh(e,393228,425108,-2);a=J[a+208>>2];if(!a)break p;a=Bh(a,393228,425108,-2);if(!d|!a)break p;J[195395]=0;e=b+8|0;$(2121,e|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break N;J[195395]=0;ma(2122,a|0,e|0,b+128|0,b+24|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break M;if(H[b+19|0]>= -0)break p;Kb(J[b+8>>2]);break p}a=Z()|0;break n}a=Z()|0;break n}a=Z()|0;break n}a=Z()|0;break n}a=Z()|0;break n}a=Z()|0;break n}a=Z()|0;if(H[b+19|0]>=0)break n;Kb(J[b+8>>2]);break n}a=Z()|0;break n}Uh(i)}xb=b+448|0;break m}a=Z()|0}Uh(i);ba(a|0);B()}break a;case 0:case 1:break l;default:break a}b=xb-464|0;xb=b;S:{T:{U:{c=J[t+12>>2];f=J[t+8>>2];if(!(!c|!f|(J[e+4>>2]-J[e>>2]|0)!=48)){i=_z(b+192|0);J[195395]=0;J[i+4>>2]=c;J[i+12>>2]=c;c=c+f|0;J[i+16>>2]=c;J[i+8>>2]=c;c=J[195395];J[195395]=0;V:{W:{if((c| -0)==1)break W;J[i+24>>2]=J[(J[J[a>>2]-12>>2]+a|0)+24>>2];J[195395]=0;ea(2032,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break W;if(K[i+33|0])break V;J[195395]=0;c=_(2039,i|0)|0;f=J[195395];J[195395]=0;X:{Y:{Z:{_:{$:{aa:{if((f|0)!=1){k=J[c>>2];l=J[c+8>>2];j=J[c+4>>2];o=J[c+12>>2];f=J[J[a>>2]+36>>2];J[195395]=0;f=_(f|0,a|0)|0;q=J[195395];J[195395]=0;if((q|0)==1)break aa;q=J[f>>2];r=J[f+8>>2];u=J[f+4>>2];v=J[f+12>>2];f=J[a+208>>2];w=J[J[f>>2]+96>>2];J[195395]=0;w=_(w|0,f|0)|0;f=J[195395];J[195395]=0;if((f| -0)==1)break U;j=o-j|0;f=j>>31;h=+((f^j)-f|0);k=l-k|0;f=k>>31;g=+((f^k)-f|0);if((w|0)!=2)break X;J[195395]=0;c=J[195395];J[195395]=0;if((c|0)==1)break $;c=J[(J[J[a>>2]-12>>2]+a|0)+24>>2];f=J[J[0]+460>>2];J[195395]=0;$(f|0,0,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break $;c=J[a+208>>2];J[195395]=0;f=J[c+4>>2];c=J[195395];J[195395]=0;if((c|0)==1)break _;k=r-q|0;c=k>>31;m=+((c^k)-c|0);n=O[f+32>>3]*96/25.4/m;f=v-u|0;c=f>>31;m=m>2E3?m:2E3;p=+((c^f)-c|0);p=p>2E3?p:2E3;if(mp?p:m)* -n}g=n*g;if(!(R(g)<2147483648))break Z;c=~~g;break Y}a=Z()|0;break T}a=Z()|0;break T}a=Z()|0;break T}a=Z()|0;break T}c=-2147483648}J[b+188>>2]=c;h=n*h;ba:{if(R(h)<2147483648){f=~~h;break ba}f=-2147483648}J[b+184>>2]=f;r=P(c,f);j=Mp(r<<2);if(!j)break V;ca:{if((r|0)<=0)break ca;q=0;k=0;if(r>>>0>=8){u=r&-8;l=0;while(1){o=k<<2;J[o+j>>2]=16777215;J[j+(o|4)>>2]=16777215;J[j+(o|8)>>2]=16777215;J[j+(o|12)>>2]=16777215;J[j+(o|16)>>2]=16777215;J[j+(o|20)>>2]=16777215;J[j+(o|24)>>2]=16777215;J[j+(o|28)>>2]=16777215; -k=k+8|0;l=l+8|0;if((u|0)!=(l|0))continue;break}}l=r&7;if(!l)break ca;while(1){J[j+(k<<2)>>2]=16777215;k=k+1|0;q=q+1|0;if((l|0)!=(q|0))continue;break}}O[b+8>>3]=+(c|0)*25.4/96;O[b+176>>3]=+(f|0)*25.4/96;J[195395]=0;f=b+128|0;J[f>>2]=0;J[f+4>>2]=0;H[f+40|0]=0;J[f+32>>2]=0;J[f+36>>2]=-1074790400;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;c=J[195395];J[195395]=0;da:{ea:{fa:{ga:{ha:{ia:{if((c|0)!=1){J[195395]= -0;J[f+16>>2]=j;c=J[195395];J[195395]=0;if((c|0)==1)break ia;J[195395]=0;J[f+4>>2]=J[b+188>>2];c=J[195395];J[195395]=0;if((c|0)==1)break ia;J[195395]=0;J[f+8>>2]=J[b+184>>2];c=J[195395];J[195395]=0;if((c|0)==1)break ia;J[195395]=0;J[b+56>>2]=J[b+188>>2]<<2;k=b+56|0;J[f+12>>2]=J[k>>2];c=J[195395];J[195395]=0;if((c|0)==1)break ha;c=J[J[0]+488>>2];J[195395]=0;$(c|0,0,f|0);c=J[195395];J[195395]=0;if((c|0)==1)break ia;c=J[J[0]+480>>2];J[195395]=0;$(c|0,0,0);c=J[195395];J[195395]=0;if((c|0)==1)break ia; -c=J[J[0]+36>>2];J[195395]=0;ca(c|0,0,b+8|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ia;c=J[J[0]+28>>2];J[195395]=0;ca(c|0,0,b+176|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ia;J[b+56>>2]=3;c=J[J[0]+308>>2];J[195395]=0;ca(c|0,0,k|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ga;J[b+80>>2]=0;J[b+84>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+64>>2]=i;J[b+56>>2]=388672;J[b+124>>2]=0;h=O[b+176>>3];O[b+96>>3]=h;g=O[b+8>>3];O[b+88>>3]=g;J[b+60>>2]=0;c=J[J[i>>2]+16>>2];J[195395]=0;c=_(c|0,i|0)|0;l=J[195395]; -J[195395]=0;if((l|0)==1)break fa;l=J[c+8>>2];j=J[c>>2];o=J[c+12>>2];c=J[c+4>>2];I[b+120>>1]=256;J[195395]=0;O[b+112>>3]=h/R(+(o-c|0));O[b+104>>3]=g/R(+(l-j|0));$(1802,i|0,k|0);c=J[195395];J[195395]=0;if((c|0)==1)break da;J[195395]=0;ea(2036,i|0);c=J[195395];J[195395]=0;if((c|0)==1)break da;J[b+24>>2]=3;c=J[J[0]+312>>2];J[195395]=0;ca(c|0,0,b+24|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break da;J[195395]=0;l=J[f+16>>2];c=J[195395];J[195395]=0;if((c|0)==1)break da;h=O[d>>3];g=n*h;ja:{if(R(g)<2147483648){c= -~~g;break ja}c=-2147483648}J[b+24>>2]=c;g=O[d+8>>3];m=n*g;ka:{if(R(m)<2147483648){c=~~m;break ka}c=-2147483648}J[b+28>>2]=c;h=n*(h+O[d+16>>3]);la:{if(R(h)<2147483648){c=~~h;break la}c=-2147483648}J[b+32>>2]=c;h=O[d+24>>3];J[195395]=0;h=n*(g+h);ma:{if(R(h)<2147483648){c=~~h;break ma}c=-2147483648}J[b+36>>2]=c;k=ha(2115,l|0,J[b+188>>2],J[b+184>>2],b+24|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break da;j=J[a+208>>2];c=J[e>>2];n=O[c+16>>3];m=O[c+8>>3];h=O[c>>3];c=J[a+120>>2];J[195395]=0;o=J[b+188>>2]; -d=J[b+24>>2];r=J[b+32>>2];q=J[b+184>>2];u=J[b+28>>2];v=J[b+36>>2];p=O[c+632>>3];w=J[195395];J[195395]=0;g=R(+(v-u|0));na:{if(g<4294967296&g>=0){c=~~g>>>0;break na}c=0}g=R(+(r-d|0));oa:{if(g<4294967296&g>=0){d=~~g>>>0;break oa}d=0}pa:{if((w|0)==1)break pa;e=J[e>>2];g=O[e+40>>3];z=O[e+8>>3];a=J[a+120>>2];J[195395]=0;A=O[a+640>>3];a=J[195395];J[195395]=0;if((a|0)==1)break pa;a=J[J[j>>2]+16>>2];J[195395]=0;Va(a|0,j|0,+h,+m,+(n-h-p),+(g-z-A),(k?k:l)|0,(d>>>0>o>>>0?o:d)|0,(c>>>0>q>>>0?q:c)|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break pa;a=J[J[0]+12>>2];J[195395]=0;_(a|0,0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break ea}break da}a=Z()|0;break T}a=Z()|0;kd(f);break T}a=Z()|0;kd(f);break T}a=Z()|0;kd(f);break T}a=Z()|0;kd(f);break T}if(k)Kb(k);J[b+56>>2]=388672;a=J[b+124>>2];if(a)Kb(a);kd(f);break V}a=Z()|0;J[b+56>>2]=388672;b=J[b+124>>2];if(b)Kb(b);kd(f);break T}f=J[a+208>>2];k=J[J[f>>2]+96>>2];J[195395]=0;f=_(k|0,f|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break U;if((f|0)!=4)break V;J[195395]=0;ia(2037, -i|0,4,0,0);f=J[195395];J[195395]=0;if((f|0)==1)break U;J[195395]=0;ea(2036,i|0);f=J[195395];J[195395]=0;if((f|0)==1)break U;f=J[a+120>>2];J[195395]=0;k=f+408|0;f=J[195395];J[195395]=0;qa:{ra:{sa:{ta:{ua:{va:{if((f|0)!=1){f=J[e>>2];O[b+128>>3]=O[f>>3];O[b+136>>3]=O[f+8>>3];n=O[f+16>>3];f=J[a+120>>2];J[195395]=0;m=O[f+632>>3];f=J[195395];J[195395]=0;if((f|0)==1)break va;O[b+144>>3]=n-m;n=O[J[e>>2]+40>>3];e=J[a+120>>2];J[195395]=0;m=O[e+640>>3];e=J[195395];J[195395]=0;if((e|0)==1)break va;O[b+152>>3]= -n-m;n=O[d>>3]-+J[c>>2];O[b+24>>3]=n;m=O[d+8>>3]-+J[c+4>>2];O[b+32>>3]=m;p=O[d+16>>3];if(p>2]+48>>2];J[195395]=0;g=+va(c|0,a|0);c=J[195395];J[195395]=0;if((c|0)==1)break ua;g=p-g}O[b+40>>3]=n+g;g=O[d+24>>3];if(g>2]+44>>2];J[195395]=0;h=+va(c|0,a|0);c=J[195395];J[195395]=0;if((c|0)==1)break ua;h=g-h}O[b+48>>3]=m+h;J[195395]=0;c=b+56|0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0; -J[c+40>>2]=0;J[c+44>>2]=0;d=J[195395];J[195395]=0;if((d|0)==1)break ta;J[195395]=0;Rd(c,k);d=J[195395];J[195395]=0;if((d|0)==1)break ta;O[c+32>>3]=O[c+32>>3]-+J[a+100>>2];O[c+40>>3]=O[c+40>>3]-+J[a+104>>2];d=0;J[195395]=0;e=J[i+248>>2];f=J[195395];J[195395]=0;if((f|0)==1)break sa;if(e)d=Bh(e,415388,425108,-2);a=J[a+208>>2];if(!a)break V;a=Bh(a,393228,425108,-2);if(!d|!a)break V;J[195395]=0;e=b+8|0;$(2121,e|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break ra;J[195395]=0;ma(2122,a|0,e|0,b+128|0,b+24| -0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break qa;if(H[b+19|0]>=0)break V;Kb(J[b+8>>2]);break V}a=Z()|0;break T}a=Z()|0;break T}a=Z()|0;break T}a=Z()|0;break T}a=Z()|0;break T}a=Z()|0;break T}a=Z()|0;if(H[b+19|0]>=0)break T;Kb(J[b+8>>2]);break T}a=Z()|0;break T}ve(i)}xb=b+464|0;break S}a=Z()|0}ve(i);ba(a|0);B()}}xb=t+16|0}function IJ(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;j=xb-304|0;xb=j;a:{b:switch(K[a+3|0]){case 0:J[j+12>>2]=0; -J[j+16>>2]=0;H[j+8|0]=0;g=J[b+12>>2];J[j+296>>2]=J[b+16>>2];J[j+292>>2]=a+8;a=J[g+32>>2];if((a|0)==-1)a=Qe(g);J[j+300>>2]=a;h=j+292|0;e=xb+-64|0;xb=e;J[e+60>>2]=j+8;J[e+56>>2]=0;q=b;b=J[b+76>>2];a=0;c:{if(!b)break c;a=0;if(M[b+4>>2]<2)break c;a=J[b+8>>2]}c=J[h+4>>2];J[c+64>>2]=0;d:{if(!K[c+60|0])break d;while(1){f=J[c+68>>2];d=J[c+64>>2];g=0;e:{f:{g:{h:{if(a){if(d>>>0>>0){g=J[(J[c+80>>2]+P(d,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(g>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(g>>>0>M[a+ -8>>2])continue;break}}if(!(J[q+80>>2]&J[a>>2]))break h;g=a}if(d>>>0>>0)break g;a=J[h>>2];i=0;break f}if((d|0)==(f|0))break d;J[e+56>>2]=0;if(K[c+62|0]){i:{if(J[c+84>>2]==J[c+80>>2]){b=d;if(J[c+72>>2]==(b|0))break i}if(!ec(c,1,1))break e;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];g=J[c+84>>2]+P(J[c+72>>2],20)|0;J[g>>2]=J[b>>2];J[g+4>>2]=d;J[g+16>>2]=J[b+16>>2];d=J[b+12>>2];J[g+8>>2]=J[b+8>>2];J[g+12>>2]=d;d=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=d+1;break e}a=J[h>>2];c=J[J[c+80>>2]+ -P(d,20)>>2];i=2;if((c|0)==65535)break f;d=c;b=K[a+2|0]|K[a+3|0]<<8;c=((b<<8|b>>>8)&65535)+a|0;b=K[c|0]|K[c+1|0]<<8;d=d-((b<<8|b>>>8)&65535)|0;f=K[c+2|0]|K[c+3|0]<<8;i=1;if(d>>>0>=((f<<8|f>>>8)&65535)>>>0)break f;i=K[(c+d|0)+4|0]}b=i;J[e+52>>2]=b;c=K[a+6|0]|K[a+7|0]<<8;d=((c<<8|c>>>8)&65535)+a|0;b=K[a|0]|K[a+1|0]<<8;b=(b<<8|b>>>8)&65535;c=a;a=K[a+4|0]|K[a+5|0]<<8;a=(a<<8|a>>>8)&65535;d=d+(K[(i>>>0>=b>>>0?1:i)+((c+a|0)+P(b,J[e+56>>2])|0)|0]<<2)|0;c=K[d|0]|K[d+1|0]<<8;J[e+48>>2]=(((c<<8|c>>>8)&65535)- -a|0)/(b|0);J[e+44>>2]=d;J[e+28>>2]=h;a=e+48|0;J[e+40>>2]=a;b=e+60|0;J[e+36>>2]=b;J[e+32>>2]=e+52;J[e+12>>2]=d;J[e+8>>2]=h;J[e+24>>2]=e+28;J[e+20>>2]=a;J[e+16>>2]=e+56;J[e+4>>2]=b;m=0;f=J[e+8>>2];a=J[e+12>>2];a=K[a+2|0]|K[a+3|0]<<8;b=J[J[e+4>>2]>>2];k=J[b+8>>2];l=J[b+4>>2];j:{if(k>>>0>l>>>0?a&3840:0)break j;n=J[J[e+16>>2]>>2];if(!(!n|(J[J[e+20>>2]>>2]?0:a&64))){c=J[e+24>>2];b=J[J[c+4>>2]>>2];a=J[J[c>>2]>>2];o=K[a|0]|K[a+1|0]<<8;o=(o<<8|o>>>8)&65535;if(b>>>0>=o>>>0)b=1;i=K[a+6|0]|K[a+7|0]<<8;r=a+((i<< -8|i>>>8)&65535)|0;i=b;p=a;a=K[a+4|0]|K[a+5|0]<<8;b=(a<<8|a>>>8)&65535;a=r+(K[i+(p+b|0)|0]<<2)|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);i=a>>>16|0;if(i&3840){r=J[J[c+8>>2]>>2];if(M[r+4>>2]>2])break j}if(J[J[c+12>>2]>>2]!=((((a<<8|(a&65280)>>>8)&65535)-b|0)/(o|0)|0))break j;a=J[c+16>>2];if((i^(K[a+2|0]|K[a+3|0]<<8))&64)break j}a=J[f>>2];b=K[a|0]|K[a+1|0]<<8;c=K[a+6|0]|K[a+7|0]<<8;i=a+((c<<8|c>>>8)&65535)|0;c=K[a+4|0]|K[a+5|0]<<8;m=!(K[(i+(K[!b+((a+((c<<8|c>>>8)&65535)|0)+P((b<<8|b>>> -8)&65535,n)|0)|0]<<2)|0)+3|0]&15)|k>>>0<=l>>>0}k:{if(m)break k;a=J[h+4>>2];b=J[a+64>>2];c=K[a+62|0]?J[a+72>>2]:b;if(!c|b>>>0>=M[a+68>>2])break k;Ac(a,3,c-1|0,b+1|0,1,1)}Fu(J[e+60>>2],h,d);J[e+56>>2]=J[e+48>>2];c=J[h+4>>2];a=J[c+64>>2];if((a|0)==J[c+68>>2]|!K[c+60|0])break d;l:{if(K[d+2|0]&64){b=J[c+152>>2];J[c+152>>2]=b-1;if((b|0)>0)break l}if(K[c+62|0]){m:{if(J[c+84>>2]==J[c+80>>2]){b=a;if(J[c+72>>2]==(a|0))break m}if(!ec(c,1,1))break l;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];a=J[c+84>>2]+P(J[c+ -72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;a=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=a+1}a=g}c=J[h+4>>2];if(K[c+60|0])continue;break}}xb=e- -64|0;g=K[j+8|0]!=0;break a;case 1:H[j+8|0]=0;J[j+12>>2]=b;g=J[b+72>>2];H[j+20|0]=0;J[j+16>>2]=g;c=K[g|0]|K[g+1|0]<<8;d=K[g+4|0]|K[g+5|0]<<8;g=a+8|0;J[j+28>>2]=g;J[j+24>>2]=0;H[j+21|0]=(c|0)==256&(d|0)!=0;a=K[a+16|0]|K[a+17|0]<<8;J[j+32>>2]=g+((a<<8|a>>>8)&65535);c=J[b+12>>2];J[j+296>> -2]=J[b+16>>2];J[j+292>>2]=g;a=J[c+32>>2];if((a|0)==-1)a=Qe(c);J[j+300>>2]=a;h=j+292|0;e=xb+-64|0;xb=e;J[e+60>>2]=j+8;J[e+56>>2]=0;q=b;b=J[b+76>>2];a=0;n:{if(!b)break n;a=0;if(M[b+4>>2]<2)break n;a=J[b+8>>2]}c=J[h+4>>2];J[c+64>>2]=0;o:{if(!K[c+60|0])break o;while(1){f=J[c+68>>2];d=J[c+64>>2];g=0;p:{q:{r:{s:{if(a){if(d>>>0>>0){g=J[(J[c+80>>2]+P(d,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(g>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(g>>>0>M[a+8>>2])continue;break}}if(!(J[q+80>>2]&J[a>>2]))break s; -g=a}if(d>>>0>>0)break r;a=J[h>>2];i=0;break q}if((d|0)==(f|0))break o;J[e+56>>2]=0;if(K[c+62|0]){t:{if(J[c+84>>2]==J[c+80>>2]){b=d;if(J[c+72>>2]==(b|0))break t}if(!ec(c,1,1))break p;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];g=J[c+84>>2]+P(J[c+72>>2],20)|0;J[g>>2]=J[b>>2];J[g+4>>2]=d;J[g+16>>2]=J[b+16>>2];d=J[b+12>>2];J[g+8>>2]=J[b+8>>2];J[g+12>>2]=d;d=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=d+1;break p}a=J[h>>2];c=J[J[c+80>>2]+P(d,20)>>2];i=2;if((c|0)==65535)break q;d=c;b=K[a+2|0]| -K[a+3|0]<<8;c=((b<<8|b>>>8)&65535)+a|0;b=K[c|0]|K[c+1|0]<<8;d=d-((b<<8|b>>>8)&65535)|0;f=K[c+2|0]|K[c+3|0]<<8;i=1;if(d>>>0>=((f<<8|f>>>8)&65535)>>>0)break q;i=K[(c+d|0)+4|0]}b=i;J[e+52>>2]=b;c=K[a+6|0]|K[a+7|0]<<8;d=((c<<8|c>>>8)&65535)+a|0;b=K[a|0]|K[a+1|0]<<8;b=(b<<8|b>>>8)&65535;c=a;a=K[a+4|0]|K[a+5|0]<<8;a=(a<<8|a>>>8)&65535;d=d+(K[(i>>>0>=b>>>0?1:i)+((c+a|0)+P(b,J[e+56>>2])|0)|0]<<3)|0;c=K[d|0]|K[d+1|0]<<8;J[e+48>>2]=(((c<<8|c>>>8)&65535)-a|0)/(b|0);J[e+44>>2]=d;J[e+28>>2]=h;a=e+48|0;J[e+40>> -2]=a;b=e+60|0;J[e+36>>2]=b;J[e+32>>2]=e+52;J[e+12>>2]=d;J[e+8>>2]=h;J[e+24>>2]=e+28;J[e+20>>2]=a;J[e+16>>2]=e+56;J[e+4>>2]=b;a=J[e+12>>2];k=J[e+8>>2];b=J[k+4>>2];m=!K[J[J[e+4>>2]>>2]+12|0]&J[b+64>>2]==J[b+68>>2];u:{if(!m){f=0;if((K[a+4|0]|K[a+5|0]<<8)!=65535|(K[a+6|0]|K[a+7|0]<<8)!=65535)break u}l=J[J[e+16>>2]>>2];if(!(!l|(J[J[e+20>>2]>>2]?0:K[a+2|0]&64))){c=J[e+24>>2];f=J[J[c+4>>2]>>2];n=J[c>>2];a=J[n>>2];b=K[a|0]|K[a+1|0]<<8;o=(b<<8|b>>>8)&65535;if(f>>>0>=o>>>0)f=1;b=K[a+6|0]|K[a+7|0]<<8;p=a+((b<< -8|b>>>8)&65535)|0;b=a;a=K[a+4|0]|K[a+5|0]<<8;i=(a<<8|a>>>8)&65535;b=p+(K[(b+i|0)+f|0]<<3)|0;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);f=J[n+4>>2];if(!(!K[J[J[c+8>>2]>>2]+12|0]&J[f+64>>2]==J[f+68>>2])){f=0;if((b&65535)!=65535|b>>>0<4294901760)break u}f=0;if(J[J[c+12>>2]>>2]!=((((a<<8|(a&65280)>>>8)&65535)-i|0)/(o|0)|0))break u;c=J[c+16>>2];if(((K[c+2|0]|K[c+3|0]<<8)^((b&65535)<<16|a>>>16))&64)break u}f=1;if(m)break u;a=J[k>>2];b=K[a|0]|K[a+ -1|0]<<8;f=0;c=K[a+6|0]|K[a+7|0]<<8;i=a+((c<<8|c>>>8)&65535)|0;c=K[a+4|0]|K[a+5|0]<<8;a=i+(K[!b+((a+((c<<8|c>>>8)&65535)|0)+P(l,(b<<8|b>>>8)&65535)|0)|0]<<3)|0;if((K[a+4|0]|K[a+5|0]<<8)!=65535)break u;f=(K[a+6|0]|K[a+7|0]<<8)==65535}v:{if(f)break v;a=J[h+4>>2];b=J[a+64>>2];c=K[a+62|0]?J[a+72>>2]:b;if(!c|b>>>0>=M[a+68>>2])break v;Ac(a,3,c-1|0,b+1|0,1,1)}a=J[e+60>>2];b=J[h+4>>2];c=J[b+64>>2];f=J[b+68>>2];w:{if(!K[a+12|0]&(c|0)==(f|0))break w;l=J[a+16>>2];k=K[d+4|0]|K[d+5|0]<<8;k=J[J[b+80>>2]+P(l,20)>> -2]+((k<<8|k>>>8)&65535)<<1;m=J[a+24>>2];n=m-J[a+20>>2]|0;k=((k>>>0>>0?1073741823:k-n>>>1|0)<<1)+m|0;m=J[a+4>>2];x:{if(k-J[m+24>>2]>>>0>M[m+32>>2]|J[m+28>>2]-k>>>0<2)break x;c=J[b+64>>2];f=J[b+68>>2];if(!(K[k|0]|K[k+1|0]<<8))break x;c=c+1|0;Ac(b,3,l,c>>>0>>0?c:f,1,0);c=J[b+80>>2]+P(J[a+16>>2],20)|0;f=K[k|0]|K[k+1|0]<<8;f=(f<<8|f>>>8)&65535;J[c>>2]=f;if(K[a+13|0])v=c,w=xi(J[a+8>>2],f),I[v+12>>1]=w;H[a|0]=1;c=J[b+64>>2];f=J[b+68>>2]}m=J[b+80>>2];f=f-1|0;k=c>>>0>>0?c:f;c=K[d+6|0]|K[d+7|0]<<8; -c=J[m+P(k,20)>>2]+((c<<8|c>>>8)&65535)<<1;f=J[a+24>>2];l=f-J[a+20>>2]|0;c=((c>>>0>>0?1073741823:c-l>>>1|0)<<1)+f|0;f=J[a+4>>2];y:{if(c-J[f+24>>2]>>>0>M[f+32>>2]|J[f+28>>2]-c>>>0<2)break y;c=K[c|0]|K[c+1|0]<<8;if(!c)break y;f=m+P(k,20)|0;c=(c<<8|c>>>8)&65535;J[f>>2]=c;if(K[a+13|0])v=f,w=xi(J[a+8>>2],c),I[v+12>>1]=w;H[a|0]=1}if(!(K[d+2|0]&128))break w;H[a+12|0]=1;J[a+16>>2]=J[b+64>>2]}J[e+56>>2]=J[e+48>>2];c=J[h+4>>2];a=J[c+64>>2];if((a|0)==J[c+68>>2]|!K[c+60|0])break o;z:{if(K[d+2|0]&64){b=J[c+ -152>>2];J[c+152>>2]=b-1;if((b|0)>0)break z}if(K[c+62|0]){A:{if(J[c+84>>2]==J[c+80>>2]){b=a;if(J[c+72>>2]==(a|0))break A}if(!ec(c,1,1))break z;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];a=J[c+84>>2]+P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;a=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=a+1}a=g}c=J[h+4>>2];if(K[c+60|0])continue;break}}xb=e- -64|0;g=K[j+8|0]!=0;break a;case 2:H[j+8|0]=0;g=a+8|0;J[j+16>>2]=g;J[j+12>>2]=b; -c=K[a+16|0]|K[a+17|0]<<8;J[j+20>>2]=g+((c<<8|c>>>8)&65535);c=K[a+18|0]|K[a+19|0]<<8;J[j+24>>2]=g+((c<<8|c>>>8)&65535);a=K[a+20|0]|K[a+21|0]<<8;J[j+32>>2]=0;J[j+28>>2]=g+((a<<8|a>>>8)&65535);c=J[b+12>>2];J[j+296>>2]=J[b+16>>2];J[j+292>>2]=g;a=J[c+32>>2];if((a|0)==-1)a=Qe(c);J[j+300>>2]=a;e=xb+-64|0;xb=e;J[e+60>>2]=j+8;k=j+292|0;a=J[k+4>>2];J[a+72>>2]=0;J[a+64>>2]=0;I[a+62>>1]=1;J[a+84>>2]=J[a+80>>2];J[e+56>>2]=0;q=b;b=J[b+76>>2];a=0;B:{if(!b)break B;a=0;if(M[b+4>>2]<2)break B;a=J[b+8>>2]}c=J[k+4>> -2];J[c+64>>2]=0;C:{if(!K[c+60|0])break C;while(1){h=J[c+68>>2];d=J[c+64>>2];g=0;D:{E:{F:{G:{if(a){if(d>>>0>>0){g=J[(J[c+80>>2]+P(d,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(g>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(g>>>0>M[a+8>>2])continue;break}}if(!(J[q+80>>2]&J[a>>2]))break G;g=a}if(d>>>0>>0)break F;a=J[k>>2];i=0;break E}if((d|0)==(h|0))break C;J[e+56>>2]=0;if(K[c+62|0]){H:{if(J[c+84>>2]==J[c+80>>2]){b=d;if((b|0)==J[c+72>>2])break H}if(!ec(c,1,1))break D;b=J[c+80>>2]+P(J[c+64>> -2],20)|0;d=J[b+4>>2];g=J[c+84>>2]+P(J[c+72>>2],20)|0;J[g>>2]=J[b>>2];J[g+4>>2]=d;J[g+16>>2]=J[b+16>>2];d=J[b+12>>2];J[g+8>>2]=J[b+8>>2];J[g+12>>2]=d;d=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=d+1;break D}a=J[k>>2];c=J[J[c+80>>2]+P(d,20)>>2];i=2;if((c|0)==65535)break E;d=c;b=K[a+2|0]|K[a+3|0]<<8;c=((b<<8|b>>>8)&65535)+a|0;b=K[c|0]|K[c+1|0]<<8;d=d-((b<<8|b>>>8)&65535)|0;h=K[c+2|0]|K[c+3|0]<<8;i=1;if(d>>>0>=((h<<8|h>>>8)&65535)>>>0)break E;i=K[(c+d|0)+4|0]}b=i;J[e+52>>2]=b;c=K[a+6|0]|K[a+7| -0]<<8;d=((c<<8|c>>>8)&65535)+a|0;b=K[a|0]|K[a+1|0]<<8;b=(b<<8|b>>>8)&65535;c=a;a=K[a+4|0]|K[a+5|0]<<8;a=(a<<8|a>>>8)&65535;n=d+(K[(i>>>0>=b>>>0?1:i)+((c+a|0)+P(b,J[e+56>>2])|0)|0]<<2)|0;c=K[n|0]|K[n+1|0]<<8;J[e+48>>2]=(((c<<8|c>>>8)&65535)-a|0)/(b|0);J[e+44>>2]=n;J[e+28>>2]=k;a=e+48|0;J[e+40>>2]=a;b=e+60|0;J[e+36>>2]=b;J[e+32>>2]=e+52;J[e+12>>2]=n;J[e+8>>2]=k;J[e+24>>2]=e+28;J[e+20>>2]=a;J[e+16>>2]=e+56;J[e+4>>2]=b;I:{if(Du(e+4|0))break I;a=J[k+4>>2];b=J[a+64>>2];c=K[a+62|0]?J[a+72>>2]:b;if(!c|b>>> -0>=M[a+68>>2])break I;Ac(a,3,c-1|0,b+1|0,1,1)}b=J[e+60>>2];f=0;h=J[k+4>>2];c=K[n+2|0]|K[n+3|0]<<8;if(c&128){a=J[b+24>>2];J:{if(!a){l=J[h+72>>2];a=0;break J}l=J[h+72>>2];a=a-((l|0)==J[(b+((a-1&63)<<2)|0)+28>>2])|0}J[b+24>>2]=a+1;J[(b+((a&63)<<2)|0)+28>>2]=l}a=c&65343;K:{if(!a)break K;m=J[b+24>>2];if(!m|M[h+64>>2]>=M[h+68>>2])break K;r=J[h+72>>2];d=J[b+12>>2];c=d-J[b+8>>2]|0;a=(a<<8|a>>>8)&65535;c=((a>>>0>>0?536870911:a-c>>>2|0)<<2)+d|0;while(1){L:{if(!m){J[b+24>>2]=0;break L}m=m-1|0;s=b+((m&63)<< -2)|0;if(!pf(h,J[s+28>>2]))break K;a=J[b+4>>2];l=J[a+32>>2];if(l>>>0>2]>>>0)break L;p=J[a+28>>2];if(p-c>>>0<4)break L;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);o=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);t=J[b+16>>2];u=J[b+8>>2];i=t-u|0;d=J[J[h+80>>2]+P(J[h+64>>2],20)>>2]+(d<<25&1073741824|o&1073741823)<<1;d=((d>>>0>>0?1073741823:d-i>>>1|0)<<1)+t|0;i=J[a+24>>2];if(l>>>0>>0|p-d>>>0<2)break L;d=K[d|0]|K[d+1|0]<<8;f=((d<<8|d>>>8)&65535)+f|0;if(o>>>0>=1073741824){d=J[b+20>>2];p= -d-u|0;f=f>>>0

>>0?1073741823:f-p>>>1|0;d=(f<<1)+d|0;if(l>>>0>>0|J[a+28>>2]-d>>>0<2)break L;a=K[d|0]|K[d+1|0]<<8;if(!ec(h,1,1))break K;i=(a<<8|a>>>8)&65535;a=J[h+64>>2];M:{if(a>>>0>2]){d=J[h+72>>2];l=J[h+84>>2];a=J[h+80>>2]+P(a,20)|0;break M}l=J[h+84>>2];d=J[h+72>>2];a=d-1|0;a=l+P(a>>>0<=d>>>0?a:0,20)|0}d=P(d,20)+l|0;l=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=l;J[d+16>>2]=J[a+16>>2];l=J[a+12>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=l;J[d>>2]=i;J[h+64>>2]=J[h+64>>2]+1;J[h+72>>2]=J[h+72>>2]+1;a= -J[b+24>>2]-1|0;i=J[(b+((a&63)<<2)|0)+28>>2];if(a>>>0>m>>>0)while(1){J[b+24>>2]=a;if(!pf(h,J[(b+((a&63)<<2)|0)+28>>2]))break K;if(!ec(h,1,1))break K;a=J[h+64>>2];N:{if(a>>>0>2]){d=J[h+72>>2];l=J[h+84>>2];a=J[h+80>>2]+P(a,20)|0;break N}l=J[h+84>>2];d=J[h+72>>2];a=d-1|0;a=l+P(a>>>0<=d>>>0?a:0,20)|0}d=P(d,20)+l|0;l=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=l;J[d+16>>2]=J[a+16>>2];l=J[a+12>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=l;J[d>>2]=65535;J[h+64>>2]=J[h+64>>2]+1;J[h+72>>2]=J[h+72>>2]+1;a=J[b+24>>2]- -1|0;if(m>>>0>>0)continue;break}if(!pf(h,i+1|0))break K;xh(h,J[s+28>>2],J[h+72>>2])}c=c+4|0;if((o|0)>=0)continue}break}pf(h,r)}J[e+56>>2]=J[e+48>>2];c=J[k+4>>2];b=J[c+64>>2];if((b|0)==J[c+68>>2]|!K[c+60|0])break C;O:{if(K[n+2|0]&64){a=J[c+152>>2];J[c+152>>2]=a-1;if((a|0)>0)break O}if(K[c+62|0]){P:{if(J[c+84>>2]==J[c+80>>2]){a=b;if((a|0)==J[c+72>>2])break P}if(!ec(c,1,1))break O;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];a=J[c+84>>2]+P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+ -16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;b=J[c+64>>2];a=J[c+72>>2]}J[c+72>>2]=a+1}J[c+64>>2]=b+1}a=g}c=J[k+4>>2];if(K[c+60|0])continue;break}}hf(c);xb=e- -64|0;g=K[j+8|0]!=0;break a;case 4:g=Gu(a+8|0,b);break a;case 5:break b;default:break a}J[j+16>>2]=0;H[j+8|0]=0;J[j+12>>2]=b;g=K[a+16|0]|K[a+17|0]<<8;a=a+8|0;J[j+20>>2]=((g<<8|g>>>8)&65535)+a;g=J[b+12>>2];J[j+296>>2]=J[b+16>>2];J[j+292>>2]=a;a=J[g+32>>2];if((a|0)==-1)a=Qe(g);J[j+300>>2]=a;e=xb+-64|0;xb=e;J[e+60>>2]=j+8;h=j+292|0;a=J[h+ -4>>2];J[a+72>>2]=0;J[a+64>>2]=0;I[a+62>>1]=1;J[a+84>>2]=J[a+80>>2];J[e+56>>2]=0;q=b;b=J[b+76>>2];a=0;Q:{if(!b)break Q;a=0;if(M[b+4>>2]<2)break Q;a=J[b+8>>2]}c=J[h+4>>2];J[c+64>>2]=0;R:{if(!K[c+60|0])break R;while(1){f=J[c+68>>2];d=J[c+64>>2];g=0;S:{T:{U:{V:{if(a){if(d>>>0>>0){g=J[(J[c+80>>2]+P(d,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(g>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(g>>>0>M[a+8>>2])continue;break}}if(!(J[q+80>>2]&J[a>>2]))break V;g=a}if(d>>>0>>0)break U;a=J[h>>2];i=0;break T}if((d| -0)==(f|0))break R;J[e+56>>2]=0;if(K[c+62|0]){W:{if(J[c+84>>2]==J[c+80>>2]){b=d;if((b|0)==J[c+72>>2])break W}if(!ec(c,1,1))break S;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];g=J[c+84>>2]+P(J[c+72>>2],20)|0;J[g>>2]=J[b>>2];J[g+4>>2]=d;J[g+16>>2]=J[b+16>>2];d=J[b+12>>2];J[g+8>>2]=J[b+8>>2];J[g+12>>2]=d;d=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=d+1;break S}a=J[h>>2];c=J[J[c+80>>2]+P(d,20)>>2];i=2;if((c|0)==65535)break T;d=c;b=K[a+2|0]|K[a+3|0]<<8;c=((b<<8|b>>>8)&65535)+a|0;b=K[c|0]|K[c+1|0]<< -8;d=d-((b<<8|b>>>8)&65535)|0;f=K[c+2|0]|K[c+3|0]<<8;i=1;if(d>>>0>=((f<<8|f>>>8)&65535)>>>0)break T;i=K[(c+d|0)+4|0]}b=i;J[e+52>>2]=b;c=K[a+6|0]|K[a+7|0]<<8;d=((c<<8|c>>>8)&65535)+a|0;b=K[a|0]|K[a+1|0]<<8;b=(b<<8|b>>>8)&65535;c=a;a=K[a+4|0]|K[a+5|0]<<8;a=(a<<8|a>>>8)&65535;d=d+(K[(i>>>0>=b>>>0?1:i)+((c+a|0)+P(b,J[e+56>>2])|0)|0]<<3)|0;c=K[d|0]|K[d+1|0]<<8;J[e+48>>2]=(((c<<8|c>>>8)&65535)-a|0)/(b|0);J[e+44>>2]=d;J[e+28>>2]=h;a=e+48|0;J[e+40>>2]=a;b=e+60|0;J[e+36>>2]=b;J[e+32>>2]=e+52;J[e+12>>2]=d;J[e+ -8>>2]=h;J[e+24>>2]=e+28;J[e+20>>2]=a;J[e+16>>2]=e+56;J[e+4>>2]=b;c=0;k=J[e+8>>2];a=J[e+12>>2];b=K[a+2|0]|K[a+3|0]<<8;X:{Y:{if(b&65283)if((K[a+4|0]|K[a+5|0]<<8)!=65535|(K[a+6|0]|K[a+7|0]<<8)!=65535)break Y;m=J[J[e+16>>2]>>2];if(!(!m|(J[J[e+20>>2]>>2]?0:b&64))){f=J[e+24>>2];c=J[J[f+4>>2]>>2];a=J[J[f>>2]>>2];b=K[a|0]|K[a+1|0]<<8;l=(b<<8|b>>>8)&65535;if(c>>>0>=l>>>0)c=1;b=K[a+6|0]|K[a+7|0]<<8;i=a+((b<<8|b>>>8)&65535)|0;b=a;a=K[a+4|0]|K[a+5|0]<<8;n=(a<<8|a>>>8)&65535;b=i+(K[(b+n|0)+c|0]<<3)|0;a=K[b|0]| -K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);i=b&65535;o=i<<16|a>>>16;if(o&65283){c=0;if((i|0)!=65535|b>>>0<4294901760)break Y}c=0;if(J[J[f+12>>2]>>2]!=((((a<<8|(a&65280)>>>8)&65535)-n|0)/(l|0)|0))break Y;a=J[f+16>>2];if((o^(K[a+2|0]|K[a+3|0]<<8))&64)break Y}b=J[k>>2];f=K[b|0]|K[b+1|0]<<8;k=K[b+4|0]|K[b+5|0]<<8;f=K[!f+((b+((k<<8|k>>>8)&65535)|0)+P((f<<8|f>>>8)&65535,m)|0)|0];k=K[b+6|0]|K[b+7|0]<<8;k=b+((k<<8|k>>>8)&65535)|0;b=(f<<3)+k|0;a=1;if(!((K[b+ -2|0]|K[b+3|0]<<8)&65283))break X;if((K[b+4|0]|K[b+5|0]<<8)!=65535)break Y;a=k+(f<<3)|0;c=(K[a+6|0]|K[a+7|0]<<8)==65535}a=c}Z:{if(a)break Z;a=J[h+4>>2];b=J[a+64>>2];c=K[a+62|0]?J[a+72>>2]:b;if(!c|b>>>0>=M[a+68>>2])break Z;Ac(a,3,c-1|0,b+1|0,1,1)}Eu(J[e+60>>2],h,d);J[e+56>>2]=J[e+48>>2];c=J[h+4>>2];b=J[c+64>>2];if((b|0)==J[c+68>>2]|!K[c+60|0])break R;_:{if(K[d+2|0]&64){a=J[c+152>>2];J[c+152>>2]=a-1;if((a|0)>0)break _}if(K[c+62|0]){$:{if(J[c+84>>2]==J[c+80>>2]){a=b;if((a|0)==J[c+72>>2])break $}if(!ec(c, -1,1))break _;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];a=J[c+84>>2]+P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;b=J[c+64>>2];a=J[c+72>>2]}J[c+72>>2]=a+1}J[c+64>>2]=b+1}a=g}c=J[h+4>>2];if(K[c+60|0])continue;break}}hf(c);xb=e- -64|0;g=K[j+8|0]!=0}xb=j+304|0;return g|0}function _8(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=+h;i=+i;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=Q(0),u=0,v=0,w=0,x=0,y=Q(0),z=0,A= -Q(0),C=0,D=Q(0),E=Q(0),F=0,G=0,I=0,L=0,P=0,S=0,T=0,U=0,V=0,W=0;k=xb-240|0;xb=k;if(K[a+64|0]){Ab[J[J[a>>2]+52>>2]](a,0);Ab[J[J[a>>2]+56>>2]](a)}j=J[a+8>>2];r=Ab[J[J[j>>2]+36>>2]](j)|0;a:{if(!r)break a;p=O[a+48>>3];o=O[a+56>>3];j=k+192|0;J[j+8>>2]=0;J[j+12>>2]=0;J[j>>2]=0;J[j+4>>2]=1072693248;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=1072693248;J[j+16>>2]=0;J[j+20>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;m=J[a+8>>2];Rd(j,Ab[J[J[m>>2]+72>>2]](m,g)|0);m=J[a+4>>2];Ab[J[J[m>>2]+404>>2]](m)|0;m=J[a+4>>2]; -O[k+120>>3]=o*O[j+8>>3]/p;O[k+72>>3]=p*O[j+16>>3]/o;O[k+56>>3]=p*O[j+32>>3];O[k+24>>3]=o*O[j+40>>3];Ab[J[J[m>>2]+396>>2]](m,j,k+120|0,k+72|0,j+24|0,k+56|0,k+24|0)|0;b:{if(K[a+65|0])break b;j=J[a+8>>2];j=Ab[J[J[j>>2]+20>>2]](j)|0;if(!j)break b;ul(j,a);H[a+65|0]=1}w=1;z=R(+Ab[J[J[r>>2]+8>>2]](r));if(z<5){j=J[a+4>>2];m=k+176|0;n=k+168|0;s=k+152|0;l=k+144|0;Ab[J[J[j>>2]+400>>2]](j,k+184|0,m,n,k+160|0,s,l)|0;j=J[a+4>>2];w=O[k+160>>3];p=O[k+184>>3];O[k+192>>3]=p/R(p);O[k+120>>3]=w/R(w);Ab[J[J[j>>2]+396>> -2]](j,k+192|0,m,n,k+120|0,s,l)|0;z=z*w}O[k+136>>3]=R(z*O[a+56>>3]/25.4*72);j=k+120|0;Ab[J[J[r>>2]+12>>2]](j,r);m=J[a+4>>2];n=J[J[m>>2]+236>>2];J[195395]=0;ca(n|0,m|0,j|0)|0;j=J[195395];J[195395]=0;c:{d:{e:{f:{g:{h:{i:{j:{if((j|0)==1)break j;j=J[a+4>>2];m=J[J[j>>2]+252>>2];J[195395]=0;ca(m|0,j|0,k+136|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break j;J[k+116>>2]=0;j=J[J[r>>2]+16>>2];J[195395]=0;j=_(j|0,r|0)|0;m=J[195395];J[195395]=0;k:{if((m|0)==1)break k;if((j|0)>=551)J[k+116>>2]=J[k+116>>2]|1;j=J[J[r>> -2]+20>>2];J[195395]=0;j=_(j|0,r|0)|0;m=J[195395];J[195395]=0;if((m|0)==1)break k;if(j)J[k+116>>2]=J[k+116>>2]|2;j=J[J[r>>2]+28>>2];J[195395]=0;j=_(j|0,r|0)|0;m=J[195395];J[195395]=0;if((m|0)==1)break k;if(j)J[k+116>>2]=J[k+116>>2]|4;j=J[J[r>>2]+24>>2];J[195395]=0;m=_(j|0,r|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break k;j=J[k+116>>2];if(m){j=j|128;J[k+116>>2]=j}m=J[a+4>>2];J[k+192>>2]=j;j=J[J[m>>2]+260>>2];J[195395]=0;ca(j|0,m|0,k+192|0)|0;j=J[195395];J[195395]=0;if((j|0)!=1){j=J[J[r>>2]+32>>2]; -J[195395]=0;j=_(j|0,r|0)|0;m=J[195395];J[195395]=0;if((m|0)!=1){m=J[a+8>>2];n=J[J[m>>2]+84>>2];J[195395]=0;m=_(n|0,m|0)|0;n=J[195395];J[195395]=0;t=Q(+(j|0)/10*3.141592653589793/180);y=Ym(t);t=bn(t);l:{m:{n:{if((n|0)==1)break n;p=O[a+48>>3];j=J[a+8>>2];n=J[J[j>>2]+28>>2];J[195395]=0;o=+va(n|0,j|0);j=J[195395];J[195395]=0;if((j|0)==1)break n;O[k+104>>3]=w*(p*+(m|0)*o);j=J[a+4>>2];m=J[J[j>>2]+276>>2];J[195395]=0;ca(m|0,j|0,k+104|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break n;J[k+100>>2]=0;J[k+96>> -2]=0;J[k+92>>2]=0;J[k+88>>2]=0;J[k+84>>2]=1065353216;s=J[J[a+8>>2]+24>>2];J[k+80>>2]=0;J[k+72>>2]=0;J[k+76>>2]=0;j=K[b+11|0];m=j<<24>>24;n=(m|0)<0;j=n?J[b+4>>2]:j;if((j|0)<=0)break h;n=n?J[b>>2]:b;l=n+(j<<2)|0;m=n;while(1){j=ah(m,10,j);if(!j)break i;if(Ki(j,388848,1)){m=j+4|0;j=l-m>>2;if((j|0)>0)continue;break i}break}q=K[b+11|0];m=q<<24>>24;if((j|0)==(l|0)|(j-n|0)==-4)break h;j=(m|0)<0;m=j?J[b+4>>2]:q;if(!m)break g;l=j?J[b>>2]:b;j=0;while(1){j=(j<<2)+l|0;m=(m<<2)+l|0;while(1){if(ah(388848,J[j>>2], -1)){j=j+4|0;if((m|0)!=(j|0))continue;break g}break}n=j-l|0;if((n|0)==-4)break g;j=-1;l=K[b+11|0];m=l<<24>>24<0;q=m?J[b+4>>2]:l;l=n>>2;if(q>>>0>=l>>>0){j=q<<2;q=m?J[b>>2]:b;n=j+q|0;j=q+(l<<2)|0;m=n-j>>2;o:{p:{if((m|0)<=0)break p;while(1){j=ah(j,10,m);if(!j)break p;if(!Ki(j,388848,1))break o;j=j+4|0;m=n-j>>2;if((m|0)>0)continue;break}}j=n}j=(j|0)==(n|0)?-1:j-q>>2}J[195395]=0;m=ka(1806,k+56|0,b|0,l|0,j-l|0,k+192|0)|0;n=J[195395];J[195395]=0;if((n|0)==1)break m;n=J[k+76>>2];q:{if(n>>>0>2]){l= -J[m+4>>2];J[n>>2]=J[m>>2];J[n+4>>2]=l;J[n+8>>2]=J[m+8>>2];J[k+76>>2]=n+12;break q}J[195395]=0;$(1807,k+72|0,m|0);n=J[195395];J[195395]=0;if((n|0)==1)break l;if(H[k+67|0]>=0)break q;Kb(J[m>>2])}m=K[b+11|0];n=m<<24>>24<0;l=n?J[b>>2]:b;m=n?J[b+4>>2]:m;if(m>>>0>j>>>0)continue;break}break g}f=Z()|0;break e}f=Z()|0;break f}f=Z()|0;if(H[k+67|0]>=0)break f;Kb(J[m>>2]);break f}f=Z()|0;break e}f=Z()|0;break e}f=Z()|0;break e}f=Z()|0;break e}m=K[b+11|0]}r:{s:{t:{if(m<<24>>24>=0){J[k+200>>2]=J[b+8>>2];j=J[b+ -4>>2];J[k+192>>2]=J[b>>2];J[k+196>>2]=j;break t}j=J[b+4>>2];b=J[b>>2];J[195395]=0;fa(1808,k+192|0,b|0,j|0);b=J[195395];J[195395]=0;if((b|0)==1)break s}J[195395]=0;fa(1809,k+72|0,k+192|0,k+204|0);b=J[195395];J[195395]=0;if((b|0)==1)break r;if(H[k+203|0]>=0)break g;Kb(J[k+192>>2]);break g}f=Z()|0;break f}f=Z()|0;if(H[k+203|0]>=0)break f;Kb(J[k+192>>2]);break f}m=J[k+72>>2];F=J[k+76>>2];if((m|0)==(F|0))break c;u=+t;L=(f|0)!=0&c>>>0>1;n=(g|0)==1;P=w*e;S=w*d;b=c-1|0;T=b&-4;G=b&3;d=+y;v=i>0?-d:d;U=-v;d= -0;y=Q(0);V=c-2>>>0>2;u:{v:{w:{x:{y:{while(1){z:{A:{B:{if(!s){j=K[m+11|0];l=j<<24>>24;if(!f){b=J[m+4>>2];break B}b=J[m+4>>2];c=(l|0)<0?b:j;if(!c)break B;x=c-1|0;C:{if(!x){o=0;break C}o=0;b=0;j=0;if(c-2>>>0>=3){W=x&-4;l=0;while(1){q=j<<3;o=o+O[q+f>>3]+O[(q|8)+f>>3]+O[(q|16)+f>>3]+O[(q|24)+f>>3];j=j+4|0;l=l+4|0;if((W|0)!=(l|0))continue;break}}l=x&3;if(!l)break C;while(1){o=o+O[(j<<3)+f>>3];j=j+1|0;b=b+1|0;if((l|0)!=(b|0))continue;break}}e=O[k+136>>3];o=e*+(c>>>0)+o;break A}b=J[a+4>>2];c=J[J[b>>2]+40>> -2];J[195395]=0;j=b;b=k+48|0;ca(c|0,j|0,b|0)|0;c=J[195395];J[195395]=0;D:{E:{F:{G:{if((c|0)==1)break G;c=J[a+4>>2];j=J[J[c>>2]+44>>2];J[195395]=0;l=c;c=k+40|0;ca(j|0,l|0,c|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break G;j=J[J[s>>2]+144>>2];J[195395]=0;pa(j|0,s|0,k+120|0,k+136|0,k+116|0,b|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break G;O[k+192>>3]=O[k+104>>3]*72/25.4;b=J[J[s>>2]+32>>2];J[195395]=0;$(b|0,s|0,k+192|0);b=J[195395];J[195395]=0;H:{I:{if((b|0)!=1){b=J[J[s>>2]+24>>2];J[195395]=0;e=O[k+ -136>>3];b=_(b|0,s|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break I;J:{if(!b){p=e;break J}c=J[J[b>>2]+36>>2];J[195395]=0;c=_(c|0,b|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break I;j=J[J[b>>2]+40>>2];J[195395]=0;j=_(j|0,b|0)|0;l=J[195395];J[195395]=0;if((l|0)==1)break I;l=J[J[b>>2]+32>>2];J[195395]=0;l=_(l|0,b|0)|0;q=J[195395];J[195395]=0;if((q|0)==1)break I;q=J[J[b>>2]+40>>2];J[195395]=0;b=_(q|0,b|0)|0;q=J[195395];J[195395]=0;if((q|0)==1)break I;p=e*(+((c|0)/(j|0)|0)*.35277777777777775);e=e*(+((l| -0)/(b|0)|0)*.35277777777777775)}if(!L)break H;o=0;b=0;j=0;l=0;if(V)break F;break E}f=Z()|0;break f}f=Z()|0;break f}J[k+192>>2]=0;J[k+24>>2]=0;b=J[J[s>>2]+84>>2];J[195395]=0;c=b;b=k+192|0;ha(c|0,s|0,m|0,b|0,k+24|0)|0;c=J[195395];J[195395]=0;K:{if((c|0)!=1){c=J[J[s>>2]+120>>2];J[195395]=0;$(c|0,b|0,s|0);b=J[195395];J[195395]=0;if((b|0)==1)break K;t=N[k+192>>2];y=Q(t*Q(.35277777910232544));t=Q(Q(N[k+196>>2]-t)*Q(.35277777910232544));break D}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}while(1){c= -j<<3;o=o+O[c+f>>3]+O[(c|8)+f>>3]+O[(c|16)+f>>3]+O[(c|24)+f>>3];j=j+4|0;l=l+4|0;if((T|0)!=(l|0))continue;break}}if(G)while(1){o=o+O[(j<<3)+f>>3];j=j+1|0;b=b+1|0;if((G|0)!=(b|0))continue;break}C=O[a+48>>3];J[k+32>>2]=0;J[k+24>>2]=0;J[k+28>>2]=0;c=J[m+4>>2];b=K[m+11|0];J[195395]=0;b=ca(1810,m|0,(b<<24>>24<0?c:b)-1|0)|0;c=J[195395];J[195395]=0;L:{if((c|0)==1)break L;b=J[b>>2];J[195395]=0;c=k+24|0;$(1811,c|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break L;J[k+192>>2]=0;J[k+16>>2]=0;b=J[J[s>>2]+84>>2]; -J[195395]=0;j=b;b=k+192|0;ha(j|0,s|0,c|0,b|0,k+16|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break L;c=J[J[s>>2]+120>>2];J[195395]=0;$(c|0,b|0,s|0);b=J[195395];J[195395]=0;if((b|0)==1)break L;o=+Q(N[k+196>>2]-N[k+192>>2])*.35277777777777775+o*C;if(H[k+35|0]<0)Kb(J[k+24>>2]);t=Q(o);y=Q(0);break D}f=Z()|0;if(H[k+35|0]>=0)break f;Kb(J[k+24>>2]);break f}b=J[J[s>>2]+184>>2];J[195395]=0;pa(b|0,s|0,k+100|0,k+96|0,k+92|0,k+88|0,k+84|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){N[k+96>>2]=N[k+96>>2]*Q(.35277777910232544); -N[k+88>>2]=N[k+88>>2]*Q(.35277777910232544);N[k+84>>2]=N[k+84>>2]*Q(.17638888955116272);N[k+100>>2]=y;N[k+92>>2]=t+y;D=Q(-Q(p-R(e)));break z}f=Z()|0;break f}e=O[k+136>>3];o=e*+(((l|0)<0?b:j)>>>0)}p=e*1.2;t=Q(o)}e=O[a+24>>3];C=O[a+56>>3];O[k+192>>3]=O[a+48>>3]*S+O[a+16>>3];O[k+24>>3]=d+(e+C*P);b=J[a+8>>2];c=J[J[b>>2]+48>>2];J[195395]=0;b=_(c|0,b|0)|0;c=J[195395];J[195395]=0;M:{N:{if((c|0)!=1){c=J[a+8>>2];j=J[J[c>>2]+48>>2];J[195395]=0;c=_(j|0,c|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break u;E=Q(p); -j=(b&31)-(b&1)|0;if(!(j&24))break N;j=j-24|0;break M}f=Z()|0;break f}b=c>>>8|0;if(!(!(j&8)&(b|0)!=2)){e=+Q(Q(D*Q(.5))+E);O[k+192>>3]=e*v+O[k+192>>3];O[k+24>>3]=O[k+24>>3]-e*u;j=(b|0)==2?j:j-8|0;break M}if((b|0)==6){e=+Q(Q(Q(D*Q(.5))+E)*Q(.5));O[k+192>>3]=O[k+192>>3]-e*v;O[k+24>>3]=e*u+O[k+24>>3];break M}e=+D;O[k+192>>3]=e*v+O[k+192>>3];O[k+24>>3]=O[k+24>>3]-e*u}O:{P:switch(j-2|0){case 0:e=+Q(-t);O[k+192>>3]=e*u+O[k+192>>3];O[k+24>>3]=e*v+O[k+24>>3];break O;case 4:break P;default:break O}e=+Q(t*Q(-.5)); -O[k+192>>3]=e*u+O[k+192>>3];O[k+24>>3]=e*v+O[k+24>>3]}b=J[J[r>>2]+28>>2];J[195395]=0;b=_(b|0,r|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break u;if(b){A=Q(O[k+192>>3]);N[k+100>>2]=N[k+100>>2]+A;N[k+92>>2]=N[k+92>>2]+A;A=Q(O[k+24>>3]);N[k+96>>2]=N[k+96>>2]+A;N[k+88>>2]=N[k+88>>2]+A}Q:{if((g|0)!=1)break Q;b=J[a+4>>2];c=J[J[b>>2]+400>>2];J[195395]=0;ya(c|0,b|0,k+184|0,k+176|0,k+168|0,k+160|0,k+152|0,k+144|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break v;o=0;e=0;if(h<-1E-5){p=+Q(R(t));O[k+192>>3]=O[k+ -192>>3]+p;b=J[a+8>>2];c=J[J[b>>2]+92>>2];J[195395]=0;b=_(c|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break v;e=O[k+192>>3];R:{if(b){e=e+e-p;p=O[k+184>>3];e=e*p;break R}e=e+e+p;p=O[k+184>>3];e=e*p}O[k+184>>3]=R(p)}if(i<-1E-5){o=O[k+160>>3];O[k+160>>3]=R(o);I=+Q(R(E));p=O[k+24>>3]+I;O[k+24>>3]=p;o=o*(p+p-I)}b=J[a+4>>2];c=J[J[b>>2]+404>>2];J[195395]=0;_(c|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break v;b=J[a+4>>2];O[k+48>>3]=e+O[k+152>>3];O[k+40>>3]=o+O[k+144>>3];c=J[J[b>>2]+396>>2];J[195395]= -0;ya(c|0,b|0,k+184|0,k+176|0,k+168|0,k+160|0,k+48|0,k+40|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break Q;f=Z()|0;break f}b=J[J[r>>2]+32>>2];J[195395]=0;b=_(b|0,r|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break w;c=n;S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{if(b){b=J[a+4>>2];c=J[J[b>>2]+400>>2];J[195395]=0;l=c;c=k+152|0;j=k+144|0;ya(l|0,b|0,k+184|0,k+176|0,k+168|0,k+160|0,c|0,j|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w;e=O[k+192>>3];p=O[k+24>>3];O[k+192>>3]=e*u+v*p;O[k+24>>3]=p*u-v*e;b=J[a+4>>2];l= -J[J[b>>2]+404>>2];J[195395]=0;_(l|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break aa;b=J[a+4>>2];e=O[k+184>>3];O[k+48>>3]=e*u;p=O[k+160>>3];O[k+40>>3]=v*p;O[k+16>>3]=e*U;O[k+8>>3]=p*u;l=J[J[b>>2]+396>>2];J[195395]=0;ya(l|0,b|0,k+48|0,k+40|0,k+16|0,k+8|0,c|0,j|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break $;c=1}b=J[a+8>>2];j=J[J[b>>2]+52>>2];J[195395]=0;b=_(j|0,b|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break w;if((b|0)!=2)break S;b=J[a+4>>2];j=J[J[b>>2]+136>>2];J[195395]=0;ca(j|0,b|0,388856)| -0;b=J[195395];J[195395]=0;if((b|0)==1)break w;b=J[a+4>>2];J[k+48>>2]=255;j=J[J[b>>2]+152>>2];J[195395]=0;l=b;b=k+48|0;ca(j|0,l|0,b|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break _;j=J[a+4>>2];l=J[a+8>>2];q=J[J[l>>2]+56>>2];J[195395]=0;l=_(q|0,l|0)|0;q=J[195395];J[195395]=0;if((q|0)==1)break Z;J[k+48>>2]=l;l=J[J[j>>2]+144>>2];J[195395]=0;ca(l|0,j|0,b|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break Z;j=J[a+4>>2];J[k+48>>2]=4;l=J[J[j>>2]+308>>2];J[195395]=0;ca(l|0,j|0,b|0)|0;j=J[195395];J[195395]=0;if((j| -0)==1)break Y;j=J[a+4>>2];l=J[J[j>>2]+352>>2];J[195395]=0;_(l|0,j|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break w;j=J[a+4>>2];e=+y;O[k+48>>3]=O[k+192>>3]+e;p=+D;O[k+40>>3]=O[k+24>>3]+p;l=J[J[j>>2]+316>>2];J[195395]=0;q=j;x=k+40|0;j=x;aa(l|0,q|0,b|0,j|0)|0;l=J[195395];J[195395]=0;if((l|0)==1)break X;l=J[a+4>>2];o=+t;O[k+48>>3]=O[k+192>>3]+e+o;O[k+40>>3]=O[k+24>>3]+p;q=J[J[l>>2]+320>>2];J[195395]=0;aa(q|0,l|0,b|0,j|0)|0;l=J[195395];J[195395]=0;if((l|0)==1)break W;l=J[a+4>>2];O[k+48>>3]=O[k+192>>3]+ -e+o;o=+E;O[k+40>>3]=O[k+24>>3]+p+o;q=J[J[l>>2]+320>>2];J[195395]=0;aa(q|0,l|0,b|0,j|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break V;j=J[a+4>>2];O[k+48>>3]=O[k+192>>3]+e;O[k+40>>3]=O[k+24>>3]+p+o;l=J[J[j>>2]+320>>2];J[195395]=0;aa(l|0,j|0,b|0,x|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break U;j=J[a+4>>2];l=J[J[j>>2]+348>>2];J[195395]=0;ca(l|0,j|0,388860)|0;j=J[195395];J[195395]=0;if((j|0)==1)break w;j=J[a+4>>2];J[k+48>>2]=4;l=J[J[j>>2]+312>>2];J[195395]=0;ca(l|0,j|0,b|0)|0;b=J[195395];J[195395]=0; -if((b|0)==1)break T;b=J[a+4>>2];j=J[J[b>>2]+344>>2];J[195395]=0;_(j|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break S;break w}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}b=J[J[r>>2]+28>>2];J[195395]=0;b=_(b|0,r|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break w;ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{if(b){b=J[a+4>>2];O[k+48>>3]=N[k+84>>2];j=J[J[b>>2]+68>>2];J[195395]=0;l=b;b=k+48|0;ca(j|0, -l|0,b|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break ia;j=J[a+4>>2];H[k+48|0]=0;l=J[J[j>>2]+92>>2];J[195395]=0;ca(l|0,j|0,b|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break ha;j=J[a+4>>2];H[k+48|0]=0;l=J[J[j>>2]+84>>2];J[195395]=0;ca(l|0,j|0,b|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break ga;j=J[a+4>>2];J[k+48>>2]=4;l=J[J[j>>2]+308>>2];J[195395]=0;ca(l|0,j|0,b|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break fa;j=J[a+4>>2];l=J[J[j>>2]+352>>2];J[195395]=0;_(l|0,j|0)|0;j=J[195395];J[195395]=0;if((j|0)== -1)break w;j=J[a+4>>2];O[k+48>>3]=N[k+100>>2];O[k+40>>3]=N[k+96>>2];l=J[J[j>>2]+316>>2];J[195395]=0;x=l;l=k+40|0;aa(x|0,j|0,b|0,l|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break ea;j=J[a+4>>2];O[k+48>>3]=N[k+92>>2];O[k+40>>3]=N[k+88>>2];q=J[J[j>>2]+320>>2];J[195395]=0;aa(q|0,j|0,b|0,l|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break da;j=J[a+4>>2];l=J[J[j>>2]+348>>2];J[195395]=0;ca(l|0,j|0,388864)|0;j=J[195395];J[195395]=0;if((j|0)==1)break w;j=J[a+4>>2];J[k+48>>2]=4;l=J[J[j>>2]+312>>2];J[195395]=0;ca(l| -0,j|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break ca;b=J[a+4>>2];j=J[J[b>>2]+344>>2];J[195395]=0;_(j|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w}b=J[a+4>>2];j=J[J[b>>2]+136>>2];J[195395]=0;ca(j|0,b|0,388856)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w;b=J[a+4>>2];j=J[a+8>>2];l=J[J[j>>2]+32>>2];J[195395]=0;j=_(l|0,j|0)|0;l=J[195395];J[195395]=0;if((l|0)!=1){J[k+48>>2]=j;j=J[J[b>>2]+144>>2];J[195395]=0;ca(j|0,b|0,k+48|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break ba}f=Z()|0;break f}f= -Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}b=J[a+4>>2];J[k+48>>2]=255;j=J[J[b>>2]+152>>2];J[195395]=0;l=j;j=k+48|0;ca(l|0,b|0,j|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){ja:{if(!f){b=J[a+4>>2];J[k+48>>2]=0;J[k+52>>2]=0;J[k+40>>2]=0;J[k+44>>2]=0;l=J[J[b>>2]+292>>2];J[195395]=0;pa(l|0,b|0,m|0,k+192|0,k+24|0,j|0,k+40|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break ja;f=Z()|0;break f}J[195395]=0;J[k+8>>2]=0;b=ca(1812,m|0,k+8|0)|0;j=J[195395]; -J[195395]=0;if((j|0)==1)break y;if(!b|!J[k+8>>2])break ja;e=w*O[a+48>>3];o=0;j=0;while(1){l=J[a+4>>2];J[k+4>>2]=J[b+(j<<2)>>2];O[k+48>>3]=o+O[k+192>>3];J[k+40>>2]=0;J[k+44>>2]=0;J[k+16>>2]=0;J[k+20>>2]=0;q=J[J[l>>2]+288>>2];J[195395]=0;pa(q|0,l|0,k+4|0,k+48|0,k+24|0,k+40|0,k+16|0)|0;l=J[195395];J[195395]=0;if((l|0)==1)break x;o=O[(j<<3)+f>>3]*e+o;j=j+1|0;if(j>>>0>2])continue;break}Kb(b)}if(c){b=J[a+4>>2];c=J[J[b>>2]+404>>2];J[195395]=0;_(c|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w}d= -z*C*1.5+d;m=m+12|0;if((F|0)==(m|0))break d;continue}break}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0}Bs(k+72|0)}if(H[k+131|0]<0)Kb(J[k+120>>2]);ba(f|0);B()}m=J[k+72>>2]}if(m){f=m;j=J[k+76>>2];if((m|0)!=(j|0)){while(1){a=j-12|0;if(H[j-1|0]<0)Kb(J[a>>2]);j=a;if((m|0)!=(j|0))continue;break}f=J[k+72>>2]}J[k+76>>2]=m;Kb(f)}if(H[k+131|0]>=0)break a;Kb(J[k+120>>2])}xb=k+240|0}function rna(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;j=xb+-64|0;xb=j;a:{b:{c:{d:{e:switch(K[a+5|0]){case 0:d=J[b+4>>2];if(!(H[d+128|0]&1))break c;e=K[a+4|0];J[j+12>>2]=a;J[j+16>>2]=b;H[j+4|0]=e>>>6&1;J[j>>2]=j+12;i=J[b+8>>2];h=J[b+16>>2];o=J[d+120>>2];b=0;a=0;r=xb-224|0;xb=r;f:{if(!nc(h,i,106810,0))break f;g:{if(!(K[h+16|0]&64))break g;J[h+144>>2]=J[h+144>>2]|32;e=J[h+68>>2];if(!e)break g;d=J[h+80>>2];if(e>>>0>=4){c=e&-4;while(1){g=d+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=d+P(a|1,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=d+P(a|2,20)|0; -J[g+4>>2]=J[g+4>>2]|2;g=d+P(a|3,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}}b=e&3;if(!b)break g;while(1){e=d+P(a,20)|0;J[e+4>>2]=J[e+4>>2]|2;a=a+1|0;f=f+1|0;if((b|0)!=(f|0))continue;break}}d=Cf(r+8|0,1,i,h,169776);J[d+208>>2]=-1;J[d+212>>2]=0;J[d+176>>2]=o;a=J[J[d+88>>2]+68>>2];J[d+184>>2]=8;J[d+36>>2]=a;J[d+8>>2]=d;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;H[d+21|0]=K[d+194|0];b=J[d+76>>2];e=(b|0)==1;H[d+20|0]=e;J[d+12>>2]=8;J[d+72>>2]=a;J[d+44>>2]=d;H[d+23|0]=0;J[d+ -16>>2]=o;a=!b&K[d+195|0]!=0;H[d+22|0]=a;c=K[d+193|0];J[d+60>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;H[d+57|0]=1;H[d+56|0]=e?1:c;H[d+58|0]=a&(b|0)!=1;J[d+48>>2]=8;J[d+52>>2]=-1;H[d+59|0]=0;l=J[h+68>>2];if(l){g=J[h+88>>2];s=J[h+80>>2];v=(J[h+40>>2]&-2)!=4;a=0;while(1){h:{i:{m=P(a,20);t=m+s|0;if(!(o&J[t+4>>2]))break i;J[d+4>>2]=a;b=J[J[d+8>>2]+88>>2];e=J[b+68>>2];J[d+36>>2]=e;H[d+23|0]=K[d+22|0]?J[b+64>>2]==(a|0)?K[(m+J[b+80>>2]|0)+15|0]:0:0;b=a;k=e-1|0;if((k|0)<=(a|0))break i;j:{while(1){k:{e=b+1|0;J[d+4>> -2]=e;l:{b=J[d+12>>2];f=J[d+8>>2];c=J[J[f+88>>2]+80>>2]+P(e,20)|0;e=L[c+12>>1];m:{if(b&e&14)break m;n:{if(!(e&8))break n;if(b&16){e=J[f+148>>2];f=J[c>>2];J[195395]=0;b=jf(e,b>>>16|0,f);e=J[195395];J[195395]=0;if((e|0)==1)break k;if(b)break n;break m}b=b&65280;if(!b)break n;if((b|0)!=(e&65280))break m}f=1;b=L[c+16>>1];if(!(K[c+12|0]&16|(b&96)!=32|!K[d+20|0]&(b&543)==513))f=!K[d+21|0]&(b&287)==257;b=J[d+32>>2];if(b){e=K[b|0]|K[b+1|0]<<8;e=(e<<8|e>>>8)&65535}else e=0;if(!(J[d+16>>2]&J[c+4>>2]))break l; -p=K[d+23|0];if((p|0)!=K[c+15|0]?p:0)break l;p=J[d+24>>2];if(p){b=J[d+28>>2];J[195395]=0;b=aa(p|0,c|0,e|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break k;if(!b)break l;b=J[d+32>>2];break j}if(f)break j}b=J[d+4>>2];if((k|0)<=(b|0))break i;continue}b=J[d+4>>2];if(!((k|0)<=(b|0)|f))continue;break i}break}break a}if(b)J[d+32>>2]=b+2;e=J[d+4>>2];k=P(e,20);b=J[J[j>>2]>>2];c=K[b+8|0]|K[b+9|0]<<8;o:{if(c){u=b+16|0;p=J[k+s>>2];t=J[t>>2];b=((c<<8|c>>>8)&65535)-1|0;f=0;while(1){p:{q:{q=b+f>>>1|0;c=u+P(q,6)| -0;n=K[c|0]|K[c+1|0]<<8;n=(n<<8|n>>>8)&65535;r:{if((n|0)==(t|0)){n=K[c+2|0]|K[c+3|0]<<8;n=(n<<8|n>>>8)&65535;if(n>>>0>p>>>0)break r;if((n|0)==(p|0))break o;break q}if(n>>>0<=t>>>0)break q}b=q-1|0;break p}f=q+1|0}if((b|0)>=(f|0))continue;break}}c=169776}c=K[c+4|0]|K[c+5|0]<<8;if(!c)break h;b=c<<8|c>>>8;s:{if(!v){c=b<<16;f=c>>31;b=Kpa(J[i+72>>2],J[i+76>>2],c>>16,f);f=zb;b=b+32768|0;b=((b>>>0<32768?f+1|0:f)&65535)<<16|b>>>16;if(K[j+4|0]){J[(g+k|0)+12>>2]=b;J[h+144>>2]=J[h+144>>2]|8;break s}c=g+m|0;f= -b>>1;J[c>>2]=f+J[c>>2];c=g+k|0;b=b-f|0;J[c>>2]=b+J[c>>2];J[c+8>>2]=b+J[c+8>>2];break s}c=b<<16;f=c>>31;b=Kpa(J[i+80>>2],J[i+84>>2],c>>16,f);f=zb;b=b+32768|0;b=((b>>>0<32768?f+1|0:f)&65535)<<16|b>>>16;if(K[j+4|0]){J[(g+k|0)+8>>2]=b;J[h+144>>2]=J[h+144>>2]|8;break s}c=g+m|0;f=b>>1;J[c+4>>2]=f+J[c+4>>2];c=g+k|0;b=b-f|0;J[c+4>>2]=b+J[c+4>>2];J[c+12>>2]=b+J[c+12>>2]}J[195395]=0;Ac(h,3,a,e+1|0,1,0);a=J[195395];J[195395]=0;e=J[d+4>>2];if((a|0)!=1)break h;break a}e=a+1|0}a=e;if(l>>>0>a>>>0)continue;break}}J[195395]= -0;ha(594,h|0,i|0,106887,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(J[d+156>>2]);a=J[d+128>>2];if(!a)break f;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break f;break b}xb=r+224|0;break d;case 1:e=K[a+4|0];if(!(H[J[b+4>>2]+128|0]&1|e&64))break c;J[j+12>>2]=b;J[j+16>>2]=a;d=K[a+16|0]|K[a+17|0]<<8;H[j+60|0]=e>>>6&1;J[j+56>>2]=0;a=a+8|0;J[j+20>>2]=a+((d<<8|d>>>8)&65535);d=J[J[b+8>>2]+24>>2];J[j+4>>2]=J[b+16>>2];J[j>>2]=a;a=J[d+32>>2];if((a|0)==-1)a=Qe(d);J[j+8>>2]=a;e=xb+-64| -0;xb=e;J[e+60>>2]=j+12;J[e+56>>2]=0;h=b;b=J[b+76>>2];a=0;t:{if(!b)break t;a=0;if(M[b+4>>2]<2)break t;a=J[b+8>>2]}c=J[j+4>>2];J[c+64>>2]=0;u:{if(!K[c+60|0])break u;while(1){i=J[c+68>>2];f=J[c+64>>2];d=0;v:{w:{x:{y:{if(a){if(f>>>0>>0){d=J[(J[c+80>>2]+P(f,20)|0)+8>>2];while(1){b=a;a=a-12|0;if(d>>>0>2])continue;break}while(1){a=b;b=a+12|0;if(d>>>0>M[a+8>>2])continue;break}}if(!(J[h+80>>2]&J[a>>2]))break y;d=a}if(f>>>0>>0)break x;a=J[j>>2];l=0;break w}if((f|0)==(i|0))break u;J[e+56>>2]=0; -if(K[c+62|0]){z:{if(J[c+84>>2]==J[c+80>>2]){b=f;if(J[c+72>>2]==(b|0))break z}if(!ec(c,1,1))break v;d=J[c+80>>2]+P(J[c+64>>2],20)|0;f=J[d+4>>2];b=J[c+84>>2]+P(J[c+72>>2],20)|0;J[b>>2]=J[d>>2];J[b+4>>2]=f;J[b+16>>2]=J[d+16>>2];f=J[d+12>>2];J[b+8>>2]=J[d+8>>2];J[b+12>>2]=f;f=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=f+1;break v}a=J[j>>2];c=J[J[c+80>>2]+P(f,20)>>2];l=2;if((c|0)==65535)break w;f=c;b=K[a+2|0]|K[a+3|0]<<8;c=((b<<8|b>>>8)&65535)+a|0;b=K[c|0]|K[c+1|0]<<8;f=f-((b<<8|b>>>8)&65535)|0; -i=K[c+2|0]|K[c+3|0]<<8;l=1;if(f>>>0>=((i<<8|i>>>8)&65535)>>>0)break w;l=K[(c+f|0)+4|0]}b=l;J[e+52>>2]=b;c=K[a+6|0]|K[a+7|0]<<8;f=((c<<8|c>>>8)&65535)+a|0;b=K[a|0]|K[a+1|0]<<8;b=(b<<8|b>>>8)&65535;c=a;a=K[a+4|0]|K[a+5|0]<<8;a=(a<<8|a>>>8)&65535;g=f+(K[(l>>>0>=b>>>0?1:l)+((c+a|0)+P(b,J[e+56>>2])|0)|0]<<2)|0;c=K[g|0]|K[g+1|0]<<8;J[e+48>>2]=(((c<<8|c>>>8)&65535)-a|0)/(b|0);J[e+44>>2]=g;J[e+28>>2]=j;a=e+48|0;J[e+40>>2]=a;b=e+60|0;J[e+36>>2]=b;J[e+32>>2]=e+52;J[e+12>>2]=g;J[e+8>>2]=j;J[e+24>>2]=e+28;J[e+ -20>>2]=a;J[e+16>>2]=e+56;J[e+4>>2]=b;A:{if(Du(e+4|0))break A;a=J[j+4>>2];b=J[a+64>>2];c=K[a+62|0]?J[a+72>>2]:b;if(!c|b>>>0>=M[a+68>>2])break A;Ac(a,3,c-1|0,b+1|0,1,1)}b=J[e+60>>2];i=J[j+4>>2];c=K[g+2|0]|K[g+3|0]<<8;B:{if(!(c&128))break B;a=J[b+44>>2];if(a>>>0<=7){f=J[i+64>>2];J[b+44>>2]=a+1;J[(b+(a<<2)|0)+12>>2]=f;break B}J[b+44>>2]=0}a=c&65343;C:{if(!a)break C;c=J[b+44>>2];if(!c)break C;D:{E:{if((c|0)<0)break E;k=J[b+8>>2];f=(k-J[b+4>>2]|0)-8|0;a=(a<<8|a>>>8)&65535;k=((a>>>0>>0?1073741823:a-f>>> -1|0)<<1)+k|0;a=J[b>>2];if(k-J[a+24>>2]>>>0>M[a+32>>2])break E;c=c<<1;if(c>>>0>J[a+28>>2]-k>>>0)break E;f=a;a=J[a+36>>2]-c|0;J[f+36>>2]=a;if((a|0)>0)break D}J[b+44>>2]=0;break C}a=J[b+44>>2];if(!a)break C;o=J[J[J[b>>2]+4>>2]+120>>2];while(1){a=a-1|0;J[b+44>>2]=a;a=J[(b+(a<<2)|0)+12>>2];if(a>>>0>2]){c=K[k|0]|K[k+1|0]<<8;r=(c<<8|c>>>8)<<16>>16;c=r&-2;f=P(a,20);a=f+J[i+88>>2]|0;m=K[b+48|0];F:{if((J[i+40>>2]&-2)==4){if(m){if((c|0)==-32768){I[a+16>>1]=0;H[a+18|0]=0;J[a+12>>2]=0;break F}if(!K[a+ -18|0])break F;m=J[a+12>>2];f=J[J[b>>2]+8>>2];c=Kpa(J[f+80>>2],J[f+84>>2],c,c>>31);f=zb;c=c+32768|0;J[a+12>>2]=(((c>>>0<32768?f+1|0:f)&65535)<<16|c>>>16)+m;J[i+144>>2]=J[i+144>>2]|8;break F}if(!(o&J[(f+J[i+80>>2]|0)+4>>2]))break F;f=J[J[b>>2]+8>>2];c=Kpa(J[f+72>>2],J[f+76>>2],c,c>>31);f=zb;c=c+32768|0;c=((c>>>0<32768?f+1|0:f)&65535)<<16|c>>>16;J[a>>2]=c+J[a>>2];J[a+8>>2]=c+J[a+8>>2];break F}if(m){if((c|0)==-32768){I[a+16>>1]=0;H[a+18|0]=0;J[a+8>>2]=0;break F}if(!K[a+18|0])break F;f=J[a+8>>2];m=J[J[b>> -2]+8>>2];m=Kpa(J[m+72>>2],J[m+76>>2],c,c>>31);c=zb;m=m+32768|0;J[a+8>>2]=(((m>>>0<32768?c+1|0:c)&65535)<<16|m>>>16)+f;J[i+144>>2]=J[i+144>>2]|8;break F}if(!(o&J[(f+J[i+80>>2]|0)+4>>2]))break F;f=J[J[b>>2]+8>>2];c=Kpa(J[f+80>>2],J[f+84>>2],c,c>>31);f=zb;c=c+32768|0;c=((c>>>0<32768?f+1|0:f)&65535)<<16|c>>>16;J[a+4>>2]=c+J[a+4>>2];J[a+12>>2]=c+J[a+12>>2]}if(r&1)break C}k=k+2|0;a=J[b+44>>2];if(a)continue;break}}J[e+56>>2]=J[e+48>>2];c=J[j+4>>2];a=J[c+64>>2];if((a|0)==J[c+68>>2]|!K[c+60|0])break u;G:{if(K[g+ -2|0]&64){b=J[c+152>>2];J[c+152>>2]=b-1;if((b|0)>0)break G}if(K[c+62|0]){H:{if(J[c+84>>2]==J[c+80>>2]){b=a;if(J[c+72>>2]==(a|0))break H}if(!ec(c,1,1))break G;b=J[c+80>>2]+P(J[c+64>>2],20)|0;f=J[b+4>>2];a=J[c+84>>2]+P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=f;J[a+16>>2]=J[b+16>>2];f=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=f;a=J[c+64>>2];b=J[c+72>>2]}J[c+72>>2]=b+1}J[c+64>>2]=a+1}a=d}c=J[j+4>>2];if(K[c+60|0])continue;break}}xb=e- -64|0;break d;case 2:d=J[b+4>>2];if(!(H[d+128|0]&1))break c;e=K[a+ -4|0];J[j+12>>2]=a;J[j+16>>2]=b;H[j+4|0]=e>>>6&1;J[j>>2]=j+12;k=J[d+120>>2];a=0;m=xb-224|0;xb=m;I:{e=J[b+16>>2];h=J[b+8>>2];if(!nc(e,h,106810,0))break I;J:{if(!(K[e+16|0]&64))break J;J[e+144>>2]=J[e+144>>2]|32;d=J[e+68>>2];if(!d)break J;b=J[e+80>>2];if(d>>>0>=4){i=d&-4;while(1){g=b+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|1,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|2,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|3,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+4|0;f=f+4|0;if((i|0)!=(f|0))continue;break}}d=d&3;if(!d)break J;while(1){f= -b+P(a,20)|0;J[f+4>>2]=J[f+4>>2]|2;a=a+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}d=Cf(m+8|0,1,h,e,169776);J[d+208>>2]=-1;J[d+212>>2]=0;J[d+176>>2]=k;a=J[J[d+88>>2]+68>>2];J[d+184>>2]=8;J[d+36>>2]=a;J[d+8>>2]=d;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;H[d+21|0]=K[d+194|0];b=J[d+76>>2];c=(b|0)==1;H[d+20|0]=c;J[d+12>>2]=8;J[d+72>>2]=a;J[d+44>>2]=d;H[d+23|0]=0;J[d+16>>2]=k;a=!b&K[d+195|0]!=0;H[d+22|0]=a;f=K[d+193|0];J[d+60>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;H[d+57|0]=1;H[d+56|0]=c?1:f;H[d+58|0]=a&(b|0)!= -1;J[d+48>>2]=8;J[d+52>>2]=-1;H[d+59|0]=0;p=J[e+68>>2];if(p){i=J[e+88>>2];r=J[e+80>>2];t=(J[e+40>>2]&-2)!=4;b=0;while(1){K:{L:{o=P(b,20);q=o+r|0;if(!(k&J[q+4>>2]))break L;J[d+4>>2]=b;a=J[J[d+8>>2]+88>>2];c=J[a+68>>2];J[d+36>>2]=c;H[d+23|0]=K[d+22|0]?J[a+64>>2]==(b|0)?K[(o+J[a+80>>2]|0)+15|0]:0:0;a=b;s=c-1|0;if((a|0)>=(s|0))break L;M:{while(1){N:{c=a+1|0;J[d+4>>2]=c;O:{a=J[d+12>>2];f=J[d+8>>2];g=J[J[f+88>>2]+80>>2]+P(c,20)|0;c=L[g+12>>1];P:{if(a&c&14)break P;Q:{if(!(c&8))break Q;if(a&16){c=J[f+148>> -2];f=J[g>>2];J[195395]=0;a=jf(c,a>>>16|0,f);c=J[195395];J[195395]=0;if((c|0)==1)break N;if(a)break Q;break P}a=a&65280;if(!a)break Q;if((a|0)!=(c&65280))break P}c=1;a=L[g+16>>1];if(!(K[g+12|0]&16|(a&96)!=32|!K[d+20|0]&(a&543)==513))c=!K[d+21|0]&(a&287)==257;f=J[d+32>>2];if(f){a=K[f|0]|K[f+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;if(!(J[d+16>>2]&J[g+4>>2]))break O;l=K[d+23|0];if((l|0)!=K[g+15|0]?l:0)break O;l=J[d+24>>2];if(l){f=J[d+28>>2];J[195395]=0;a=aa(l|0,g|0,a|0,f|0)|0;f=J[195395];J[195395]=0;if((f| -0)==1)break N;if(!a)break O;f=J[d+32>>2];break M}if(c)break M}a=J[d+4>>2];if((s|0)<=(a|0))break L;continue}a=J[d+4>>2];if(!((s|0)<=(a|0)|c))continue;break L}break}break a}if(f)J[d+32>>2]=f+2;g=J[d+4>>2];a=P(g,20);c=J[a+r>>2];f=J[q>>2];s=J[j>>2];J[195395]=0;c=lH(s,f,c);f=J[195395];J[195395]=0;R:{if((f|0)==1)break R;if(c){S:{if(!t){c=c<<16;f=c>>31;c=Kpa(J[h+72>>2],J[h+76>>2],c>>16,f);f=zb;c=c+32768|0;c=((c>>>0<32768?f+1|0:f)&65535)<<16|c>>>16;if(K[j+4|0]){J[(a+i|0)+12>>2]=c;J[e+144>>2]=J[e+144>>2]| -8;break S}f=i+o|0;l=f;n=J[f>>2];f=c>>1;J[l>>2]=n+f;a=a+i|0;c=c-f|0;J[a>>2]=c+J[a>>2];J[a+8>>2]=c+J[a+8>>2];break S}c=c<<16;f=c>>31;c=Kpa(J[h+80>>2],J[h+84>>2],c>>16,f);f=zb;c=c+32768|0;c=((c>>>0<32768?f+1|0:f)&65535)<<16|c>>>16;if(K[j+4|0]){J[(a+i|0)+8>>2]=c;J[e+144>>2]=J[e+144>>2]|8;break S}f=i+o|0;l=f;n=J[f+4>>2];f=c>>1;J[l+4>>2]=n+f;a=a+i|0;c=c-f|0;J[a+4>>2]=c+J[a+4>>2];J[a+12>>2]=c+J[a+12>>2]}J[195395]=0;Ac(e,3,b,g+1|0,1,0);a=J[195395];J[195395]=0;if((a|0)==1)break R}b=J[d+4>>2];break K}break a}b= -b+1|0}if(p>>>0>b>>>0)continue;break}}J[195395]=0;ha(594,e|0,h|0,106887,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(J[d+156>>2]);a=J[d+128>>2];if(!a)break I;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break I;break b}xb=m+224|0;break d;case 3:break e;default:break c}d=J[b+4>>2];if(!(H[d+128|0]&1))break c;e=K[a+4|0];J[j+12>>2]=a;H[j+16|0]=e>>>6&1;i=J[b+8>>2];h=J[b+16>>2];o=J[d+120>>2];b=0;a=0;r=xb-224|0;xb=r;T:{if(!nc(h,i,106810,0))break T;U:{if(!(K[h+16|0]&64))break U;J[h+144>> -2]=J[h+144>>2]|32;e=J[h+68>>2];if(!e)break U;d=J[h+80>>2];if(e>>>0>=4){c=e&-4;while(1){g=d+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=d+P(a|1,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=d+P(a|2,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=d+P(a|3,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}}b=e&3;if(!b)break U;while(1){e=d+P(a,20)|0;J[e+4>>2]=J[e+4>>2]|2;a=a+1|0;f=f+1|0;if((b|0)!=(f|0))continue;break}}d=Cf(r+8|0,1,i,h,169776);J[d+208>>2]=-1;J[d+212>>2]=0;J[d+176>>2]=o;a=J[J[d+88>>2]+68>>2];J[d+184>>2]=8; -J[d+36>>2]=a;J[d+8>>2]=d;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;H[d+21|0]=K[d+194|0];b=J[d+76>>2];e=(b|0)==1;H[d+20|0]=e;J[d+12>>2]=8;J[d+72>>2]=a;J[d+44>>2]=d;H[d+23|0]=0;J[d+16>>2]=o;a=!b&K[d+195|0]!=0;H[d+22|0]=a;c=K[d+193|0];J[d+60>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;H[d+57|0]=1;H[d+56|0]=e?1:c;H[d+58|0]=a&(b|0)!=1;J[d+48>>2]=8;J[d+52>>2]=-1;H[d+59|0]=0;p=J[h+68>>2];if(p){g=J[h+88>>2];s=J[h+80>>2];t=(J[h+40>>2]&-2)!=4;a=0;while(1){V:{W:{m=P(a,20);q=m+s|0;if(!(o&J[q+4>>2]))break W;J[d+4>>2]=a;b=J[J[d+ -8>>2]+88>>2];e=J[b+68>>2];J[d+36>>2]=e;H[d+23|0]=K[d+22|0]?J[b+64>>2]==(a|0)?K[(m+J[b+80>>2]|0)+15|0]:0:0;b=a;k=e-1|0;if((k|0)<=(a|0))break W;X:{while(1){Y:{e=b+1|0;J[d+4>>2]=e;Z:{b=J[d+12>>2];f=J[d+8>>2];c=J[J[f+88>>2]+80>>2]+P(e,20)|0;e=L[c+12>>1];_:{if(b&e&14)break _;$:{if(!(e&8))break $;if(b&16){e=J[f+148>>2];f=J[c>>2];J[195395]=0;b=jf(e,b>>>16|0,f);e=J[195395];J[195395]=0;if((e|0)==1)break Y;if(b)break $;break _}b=b&65280;if(!b)break $;if((b|0)!=(e&65280))break _}f=1;b=L[c+16>>1];if(!(K[c+12| -0]&16|(b&96)!=32|!K[d+20|0]&(b&543)==513))f=!K[d+21|0]&(b&287)==257;b=J[d+32>>2];if(b){e=K[b|0]|K[b+1|0]<<8;e=(e<<8|e>>>8)&65535}else e=0;if(!(J[d+16>>2]&J[c+4>>2]))break Z;l=K[d+23|0];if((l|0)!=K[c+15|0]?l:0)break Z;l=J[d+24>>2];if(l){b=J[d+28>>2];J[195395]=0;b=aa(l|0,c|0,e|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Y;if(!b)break Z;b=J[d+32>>2];break X}if(f)break X}b=J[d+4>>2];if((k|0)<=(b|0))break W;continue}b=J[d+4>>2];if(!((k|0)<=(b|0)|f))continue;break W}break}break a}if(b)J[d+32>>2]= -b+2;e=J[j+12>>2];f=e+14|0;b=J[d+4>>2];l=K[e+10|0];k=f+(l<<1)|0;c=J[q>>2];q=k+c|0;n=c;c=K[e+8|0]|K[e+9|0]<<8;c=(c<<8|c>>>8)&65535;q=K[(n>>>0>=c>>>0?169776:q)|0];v=K[e+11|0];if(q>>>0>=v>>>0)break V;u=c+k|0;k=P(b,20);n=J[k+s>>2];n=K[(c>>>0<=n>>>0?169776:u+n|0)|0];e=K[e+12|0];if(n>>>0>=e>>>0)break V;u=c+u|0;c=n+P(e,q)|0;e=K[(c>>>0>=P(e,v)>>>0?169776:u+c|0)|0];e=e>>>0>=l>>>0?169776:f+(e<<1)|0;e=K[e|0]|K[e+1|0]<<8;if(!e)break V;e=e<<8|e>>>8;aa:{if(!t){c=e<<16;f=c>>31;e=Kpa(J[i+72>>2],J[i+76>>2],c>>16,f); -f=zb;e=e+32768|0;e=((e>>>0<32768?f+1|0:f)&65535)<<16|e>>>16;if(K[j+16|0]){J[(g+k|0)+12>>2]=e;J[h+144>>2]=J[h+144>>2]|8;break aa}c=g+m|0;f=e>>1;J[c>>2]=f+J[c>>2];c=g+k|0;e=e-f|0;J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];break aa}c=e<<16;f=c>>31;e=Kpa(J[i+80>>2],J[i+84>>2],c>>16,f);f=zb;e=e+32768|0;e=((e>>>0<32768?f+1|0:f)&65535)<<16|e>>>16;if(K[j+16|0]){J[(g+k|0)+8>>2]=e;J[h+144>>2]=J[h+144>>2]|8;break aa}c=g+m|0;f=e>>1;J[c+4>>2]=f+J[c+4>>2];c=g+k|0;e=e-f|0;J[c+4>>2]=e+J[c+4>>2];J[c+12>>2]=e+J[c+12>> -2]}J[195395]=0;Ac(h,3,a,b+1|0,1,0);a=J[195395];J[195395]=0;if((a|0)!=1){b=J[d+4>>2];break V}break a}b=a+1|0}a=b;if(p>>>0>a>>>0)continue;break}}J[195395]=0;ha(594,h|0,i|0,106887,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(J[d+156>>2]);a=J[d+128>>2];if(!a)break T;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break T;break b}xb=r+224|0}f=1}xb=j- -64|0;return f|0}ga(0)|0;_b();B()}a=Z()|0;wi(d);ba(a|0);B()}function dt(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;a:{c=a+4|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;e=K[c|0]|K[c+1|0]<<8;b:{if(!e)break b;if(jH(((e<<8|e>>>8)&65535)+a|0,b))break b;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}c=a+6|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;e=K[c|0]|K[c+1|0]<<8;c:{if(!e)break c;if(iH(((e<<8|e>>>8)&65535)+a|0,b))break c;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+ -28|0])break a;H[c|0]=0;H[c+1|0]=0}e=J[b+12>>2];r=a+8|0;c=J[b+4>>2];if(e>>>0>>0)break a;f=J[b+8>>2];if(f-r>>>0<2)break a;g=K[r|0]|K[r+1|0]<<8;d:{if(!g)break d;p=((g<<8|g>>>8)&65535)+a|0;e:{if(e>>>0>>0|f-p>>>0<2)break e;g=p+2|0;if(e>>>0>>0)break e;c=K[p|0]|K[p+1|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>f-g>>>0)break e;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break e;d=1;c=K[p|0]|K[p+1|0]<<8;if(!c)break e;d=(c<<8|c>>>8)&65535;B=d>>>0<=1?1:d;while(1){d=0;e=J[b+12>>2];s=((v<<1)+p|0)+2| -0;c=J[b+4>>2];if(e>>>0>>0)break e;f=J[b+8>>2];if(f-s>>>0<2)break e;d=K[s|0]|K[s+1|0]<<8;f:{if(!d)break f;n=0;w=0;m=((d<<8|d>>>8)&65535)+p|0;g:{if(e>>>0>>0|f-m>>>0<6)break g;l=m+4|0;if(e>>>0>>0|f-l>>>0<2)break g;u=m+6|0;if(e>>>0>>0)break g;d=K[m+4|0]|K[m+5|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>f-u>>>0)break g;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break g;d=K[l|0]|K[l+1|0]<<8;z=d<<8|d>>>8;x=z&65535;d=x+J[b+20>>2]|0;J[b+20>>2]=d;if((d|0)>16383)break g;d=J[b+8>>2];c=J[b+12>> -2];e=J[b+4>>2];if(K[m+3|0]&16){f=(l+(x<<1)|0)+2|0;if(c>>>0>>0|d-f>>>0<2)break g}if(c>>>0>>0|d-l>>>0<2|M[b+12>>2]>2]>>>0)break g;d=K[l|0]|K[l+1|0]<<8;c=((d<<8|d>>>8)&65535)<<1;if(c>>>0>J[b+8>>2]-u>>>0)break g;d=K[m|0]|K[m+1|0]<<8;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break g;c=K[l|0]|K[l+1|0]<<8;if(c){C=(d<<8|d>>>8)&65535;d=(c<<8|c>>>8)&65535;D=d>>>0<=1?1:d;while(1){t=(l+(n<<1)|0)+2|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-t>>>0<2)break g;d=K[t|0]|K[t+1|0]<<8;h:{if(!d)break h; -e=((d<<8|d>>>8)&65535)+m|0;d=C;i:{j:{while(1){k:{if((d|0)!=9){c=1;l:switch(d-1|0){case 0:c=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;c=1;m:{d=K[e|0]|K[e+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 0:break k;case 1:break m;default:break j}}c=0;g=J[b+12>>2];f=J[b+4>>2];n:{if(g>>>0>>0)break n;h=J[b+8>>2];if(h-e>>>0<8)break n;d=e+2|0;if(g>>>0>>0|h-d>>>0<2)break n;f=K[d|0]|K[d+1|0]<<8;o:{if(!f)break o;if(Ld(b,((f<<8|f>>>8)&65535)+e|0))break o;f=J[b+32>>2];if(f>>>0>31)break n; -J[b+32>>2]=f+1;if(!K[b+28|0])break n;H[d|0]=0;H[d+1|0]=0}d=e+8|0;if(M[b+12>>2]>2]>>>0)break n;g=Npa(K[e+4|0]|K[e+5|0]<<8)<<1;f=K[e+6|0]|K[e+7|0]<<8;i=(f<<8|f>>>8)&65535;h=P(i,g);if(h>>>0>J[b+8>>2]-d>>>0)break n;h=J[b+16>>2]-h|0;J[b+16>>2]=h;if((h|0)<=0)break n;c=1;if(K[b+45|0])break n;if(!f)break n;h=e+4|0;if((K[h|0]|K[h+1|0]<<8)>>>0<4096)break n;f=0;while(1){c=Dk(h,b,e,d);if(!c)break n;d=d+g|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}d=c;break i;case 1:c=0;if(M[b+12>>2]>2]>>>0|J[b+ -8>>2]-e>>>0<2)break j;c=1;p:{q:{d=K[e|0]|K[e+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break p;case 0:break q;default:break j}}d=0;g=xb-16|0;xb=g;r:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<10)break r;d=K[e+6|0]|K[e+7|0]<<8;c=K[e+4|0]|K[e+5|0]<<8;J[g+4>>2]=e+4;c=Npa(c);J[g+8>>2]=c;F=g,G=(Npa(d)+c<<1)+2|0,J[F+12>>2]=G;d=0;c=e+2|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break r;f=K[c|0]|K[c+1|0]<<8;s:{if(!f)break s;if(Ld(b,((f<<8|f>>>8)&65535)+e|0))break s;f=J[b+32>>2];if(f>>>0>31)break r; -J[b+32>>2]=f+1;if(!K[b+28|0])break r;H[c|0]=0;H[c+1|0]=0}h=J[b+12>>2];c=e+8|0;f=J[b+4>>2];if(h>>>0>>0)break r;i=J[b+8>>2];if(i-c>>>0<2)break r;j=e+10|0;if(h>>>0>>0)break r;f=K[e+8|0]|K[e+9|0]<<8;f=((f<<8|f>>>8)&65535)<<1;if(f>>>0>i-j>>>0)break r;f=J[b+16>>2]-f|0;J[b+16>>2]=f;if((f|0)<=0)break r;d=1;c=K[c|0]|K[c+1|0]<<8;if(!c)break r;d=(c<<8|c>>>8)&65535;E=d>>>0<=1?1:d;q=0;while(1){j=((q<<1)+e|0)+10|0;if(M[b+12>>2]>2]>>>0){d=0;break r}if(J[b+8>>2]-j>>>0<2){d=0;break r}c=K[j|0]|K[j+ -1|0]<<8;t:{if(!c)break t;d=0;h=J[b+12>>2];i=((c<<8|c>>>8)&65535)+e|0;f=J[b+4>>2];u:{v:{if(h>>>0>>0)break v;k=J[b+8>>2];if(k-i>>>0<2)break v;o=K[i|0]|K[i+1|0]<<8;c=Kpa(J[g+12>>2],0,(o<<8|o>>>8)&65535,0);if(zb)break v;o=i+2|0;if(h>>>0>>0|c>>>0>k-o>>>0)break v;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break v;c=1;if(K[b+45|0])break u;o=K[i|0]|K[i+1|0]<<8;A=(o<<8|o>>>8)&65535;f=i+4|0;y=J[g+12>>2];h=J[g+4>>2];if(!(!o|(K[h|0]|K[h+1|0]<<8)>>>0<4096)){k=0;d=f;while(1){c=0;if(!Dk(h,b,i,d))break u; -d=d+y|0;k=k+1|0;if((A|0)!=(k|0))continue;break}y=J[g+12>>2];h=J[g+4>>2]}c=1;if(!o)break u;d=1;if((K[h+2|0]|K[h+3|0]<<8)>>>0<4096)break v;h=h+2|0;c=f+(J[g+8>>2]<<1)|0;k=0;while(1){d=Dk(h,b,i,c);if(!d)break v;c=c+y|0;k=k+1|0;if((A|0)!=(k|0))continue;break}}c=d}if(c)break t;d=J[b+32>>2];if(d>>>0>31){d=0;break r}J[b+32>>2]=d+1;if(!K[b+28|0]){d=0;break r}H[j|0]=0;H[j+1|0]=0}d=1;q=q+1|0;if((E|0)!=(q|0))continue;break}}xb=g+16|0;break i}d=0;g=J[b+12>>2];f=J[b+4>>2];w:{x:{if(g>>>0>>0)break x;h=J[b+8>> -2];if(h-e>>>0<16)break x;c=e+2|0;if(g>>>0>>0|h-c>>>0<2)break x;f=K[c|0]|K[c+1|0]<<8;y:{if(!f)break y;if(Ld(b,((f<<8|f>>>8)&65535)+e|0))break y;f=J[b+32>>2];if(f>>>0>31)break x;J[b+32>>2]=f+1;if(!K[b+28|0])break x;H[c|0]=0;H[c+1|0]=0}c=e+8|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break x;f=K[c|0]|K[c+1|0]<<8;z:{if(!f)break z;if(zh(((f<<8|f>>>8)&65535)+e|0,b))break z;f=J[b+32>>2];if(f>>>0>31)break x;J[b+32>>2]=f+1;if(!K[b+28|0])break x;H[c|0]=0;H[c+1|0]=0}c=e+10|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break x;f=K[c|0]|K[c+1|0]<<8;A:{if(!f)break A;if(zh(((f<<8|f>>>8)&65535)+e|0,b))break A;f=J[b+32>>2];if(f>>>0>31)break x;J[b+32>>2]=f+1;if(!K[b+28|0])break x;H[c|0]=0;H[c+1|0]=0}c=K[e+14|0]|K[e+15|0]<<8;f=(c<<8|c>>>8)&65535;c=K[e+12|0]|K[e+13|0]<<8;i=P(f,(c<<8|c>>>8)&65535);f=K[e+4|0]|K[e+5|0]<<8;q=Npa(f);g=K[e+6|0]|K[e+7|0]<<8;j=Npa(g)+q<<1;c=Kpa(i,0,j,0);if(zb)break x;h=e+16|0;if(M[b+12>>2]>2]>>>0|c>>>0>J[b+8>>2]-h>>>0)break x;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c| -0)<=0)break x;c=1;if(K[b+45|0])break w;k=e+6|0;if(!(!i|f>>>0<4096)){g=e+4|0;f=0;d=h;while(1){c=0;if(!Dk(g,b,e,d))break w;d=d+j|0;f=f+1|0;if((i|0)!=(f|0))continue;break}g=K[k|0]|K[k+1|0]<<8}c=1;if(!i)break w;d=1;if((g&65535)>>>0<4096)break x;f=h+(q<<1)|0;g=0;while(1){d=Dk(k,b,e,f);if(!d)break x;f=f+j|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}c=d}d=c;break i;case 2:c=0;g=J[b+12>>2];f=J[b+4>>2];if(g>>>0>>0)break j;h=J[b+8>>2];if(h-e>>>0<2)break j;c=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;d=0;c=e+ -2|0;B:{if(g>>>0>>0|h-c>>>0<2)break B;f=K[c|0]|K[c+1|0]<<8;C:{if(!f)break C;if(Ld(b,((f<<8|f>>>8)&65535)+e|0))break C;f=J[b+32>>2];if(f>>>0>31)break B;J[b+32>>2]=f+1;if(!K[b+28|0])break B;H[c|0]=0;H[c+1|0]=0}h=J[b+12>>2];c=e+4|0;g=J[b+4>>2];f=h>>>0>=c-g>>>0&J[b+8>>2]-c>>>0>1;if(K[b+45|0]){if(!f)break B;c=e+6|0;if(h>>>0>>0)break B;f=J[b+8>>2]-c|0;c=K[e+4|0]|K[e+5|0]<<8;c=((c<<8|c>>>8)&65535)<<2;if(f>>>0>>0)break B;d=J[b+16>>2]-c|0;J[b+16>>2]=d;d=(d|0)>0;break B}if(!f)break B;f=e+6|0;if(M[b+ -12>>2]>2]>>>0)break B;h=J[b+8>>2]-f|0;f=K[e+4|0]|K[e+5|0]<<8;f=((f<<8|f>>>8)&65535)<<2;if(h>>>0>>0)break B;f=J[b+16>>2]-f|0;J[b+16>>2]=f;if((f|0)<=0)break B;d=1;c=K[c|0]|K[c+1|0]<<8;if(!c)break B;d=(c<<8|c>>>8)&65535;h=d>>>0<=1?1:d;f=0;while(1){D:{E:{i=J[b+12>>2];c=((f<<2)+e|0)+6|0;g=J[b+4>>2];if(i>>>0>>0)break E;j=J[b+8>>2];if(j-c>>>0<2)break E;d=K[c|0]|K[c+1|0]<<8;F:{if(!d)break F;d=((d<<8|d>>>8)&65535)+e|0;G:{if(i>>>0>>0|j-d>>>0<2)break G;H:{I:{J:{g=K[d|0]|K[d+1|0]<<8;switch(((g<< -8|g>>>8)&65535)-1|0){case 0:break H;case 2:break I;case 1:break J;default:break F}}if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<=7)break G;break F}if(!nj(d,b))break G;break F}if(M[b+12>>2]>2]>>>0)break G;if(J[b+8>>2]-d>>>0>5)break F}d=J[b+32>>2];if(d>>>0>31)break E;J[b+32>>2]=d+1;if(!K[b+28|0])break E;H[c|0]=0;H[c+1|0]=0}j=J[b+12>>2];g=c+2|0;i=J[b+4>>2];if(j>>>0>>0)break E;k=J[b+8>>2];if(k-g>>>0<2)break E;d=1;c=K[g|0]|K[g+1|0]<<8;K:{if(!c)break K;c=((c<<8|c>>>8)&65535)+e|0;L:{if(j>>> -0>>0|k-c>>>0<2)break L;M:{N:{O:{i=K[c|0]|K[c+1|0]<<8;switch(((i<<8|i>>>8)&65535)-1|0){case 0:break M;case 2:break N;case 1:break O;default:break K}}if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<=7)break L;break K}if(!nj(c,b))break L;break K}if(M[b+12>>2]>2]>>>0)break L;if(J[b+8>>2]-c>>>0>5)break K}d=J[b+32>>2];if(d>>>0>31)break E;J[b+32>>2]=d+1;d=0;if(!K[b+28|0])break K;H[g|0]=0;H[g+1|0]=0;d=1}break D}d=0}if(!d)break B;f=f+1|0;if((h|0)!=(f|0))continue;break}}break i;case 3:c=0;if(M[b+ -12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;c=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;d=XG(e,b);break i;case 4:c=0;g=J[b+12>>2];f=J[b+4>>2];if(g>>>0>>0)break j;h=J[b+8>>2];if(h-e>>>0<2)break j;c=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;d=0;i=xb-16|0;xb=i;P:{if(g>>>0>>0|h-e>>>0<12)break P;d=e+2|0;if(g>>>0>>0){d=0;break P}if(h-d>>>0<2){d=0;break P}c=K[d|0]|K[d+1|0]<<8;Q:{if(!c)break Q;if(Ld(b,((c<<8|c>>>8)&65535)+e|0))break Q;c=J[b+32>>2];if(c>>>0>31){d=0;break P}J[b+32>>2]=c+1;if(!K[b+ -28|0]){d=0;break P}H[d|0]=0;H[d+1|0]=0}d=e+4|0;if(M[b+12>>2]>2]>>>0){d=0;break P}if(J[b+8>>2]-d>>>0<2){d=0;break P}c=K[d|0]|K[d+1|0]<<8;R:{if(!c)break R;if(Ld(b,((c<<8|c>>>8)&65535)+e|0))break R;c=J[b+32>>2];if(c>>>0>31){d=0;break P}J[b+32>>2]=c+1;if(!K[b+28|0]){d=0;break P}H[d|0]=0;H[d+1|0]=0}f=e+8|0;if(M[b+12>>2]>2]>>>0){d=0;break P}if(J[b+8>>2]-f>>>0<2){d=0;break P}d=K[f|0]|K[f+1|0]<<8;S:{if(!d)break S;T:{g=J[b+12>>2];c=((d<<8|d>>>8)&65535)+e|0;d=J[b+4>>2];if(g>>>0>>0)break T; -h=J[b+8>>2];if(h-c>>>0<2)break T;j=c+2|0;if(g>>>0>>0)break T;d=K[c|0]|K[c+1|0]<<8;d=((d<<8|d>>>8)&65535)<<2;if(d>>>0>h-j>>>0)break T;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break T;d=K[c|0]|K[c+1|0]<<8;if(!d)break S;d=(d<<8|d>>>8)&65535;g=d>>>0<=1?1:d;d=0;while(1){if(!WG((c+(d<<2)|0)+2|0,b,c))break T;d=d+1|0;if((g|0)!=(d|0))continue;break}break S}d=J[b+32>>2];if(d>>>0>31){d=0;break P}J[b+32>>2]=d+1;if(!K[b+28|0]){d=0;break P}H[f|0]=0;H[f+1|0]=0}d=K[e+6|0]|K[e+7|0]<<8;J[i+12>>2]=(d<<8|d>>>8)& -65535;f=e+10|0;if(M[b+12>>2]>2]>>>0){d=0;break P}if(J[b+8>>2]-f>>>0<2){d=0;break P}d=1;c=K[f|0]|K[f+1|0]<<8;if(!c)break P;g=0;h=J[b+12>>2];c=((c<<8|c>>>8)&65535)+e|0;e=J[b+4>>2];U:{if(h>>>0>>0)break U;j=J[b+8>>2];if(j-c>>>0<2)break U;k=c+2|0;if(h>>>0>>0)break U;e=K[c|0]|K[c+1|0]<<8;e=((e<<8|e>>>8)&65535)<<1;if(e>>>0>j-k>>>0)break U;e=J[b+16>>2]-e|0;J[b+16>>2]=e;if((e|0)<=0)break U;g=1;e=K[c|0]|K[c+1|0]<<8;if(!e)break U;e=(e<<8|e>>>8)&65535;j=e>>>0<=1?1:e;h=0;while(1){g=0;e=(c+(h<< -1)|0)+2|0;if(M[b+12>>2]>2]>>>0)break U;if(J[b+8>>2]-e>>>0<2)break U;g=K[e|0]|K[e+1|0]<<8;V:{if(!g)break V;if(VG(c+((g<<8|g>>>8)&65535)|0,b,J[i+12>>2]))break V;g=0;k=J[b+32>>2];if(k>>>0>31)break U;J[b+32>>2]=k+1;if(!K[b+28|0])break U;H[e|0]=0;H[e+1|0]=0}g=1;h=h+1|0;if((j|0)!=(h|0))continue;break}}if(g)break P;d=J[b+32>>2];if(d>>>0>31){d=0;break P}J[b+32>>2]=d+1;d=0;if(!K[b+28|0])break P;H[f|0]=0;H[f+1|0]=0;d=1}xb=i+16|0;break i;case 5:c=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j; -c=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;d=XG(e,b);break i;case 6:c=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;c=1;W:{X:{Y:{d=K[e|0]|K[e+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 0:break Y;case 2:break W;case 1:break X;default:break j}}d=dH(e,b);break i}d=cH(e,b);break i}d=bH(e,b);break i;case 7:break l;default:break j}c=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;c=1;Z:{_:{$:{d=K[e|0]|K[e+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 2:break Z;case 1:break _;case 0:break $; -default:break j}}d=aH(e,b);break i}d=$G(e,b);break i}d=_G(e,b);break i}d=0;h=M[b+12>>2]>2]>>>0;if(h)break i;f=J[b+8>>2]-e|0;if(f>>>0<2)break i;c=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;if(h)break i;if(f>>>0<8)break i;c=0;d=K[e+2|0]|K[e+3|0]<<8;if((d|0)==2304)break j;d=(d<<8|d>>>8)&65535;c=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);if(c)e=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+e|0;else e=169776;continue}break}g=0;f=0;h=J[b+12>>2];d=J[b+4>>2];aa:{ba:{if(h>>>0>>0)break ba;i=J[b+ -8>>2];if(i-e>>>0<6)break ba;c=e+2|0;if(h>>>0>>0|i-c>>>0<2)break ba;d=K[c|0]|K[c+1|0]<<8;ca:{if(!d)break ca;if(Ld(b,((d<<8|d>>>8)&65535)+e|0))break ca;d=J[b+32>>2];if(d>>>0>31)break ba;J[b+32>>2]=d+1;if(!K[b+28|0])break ba;H[c|0]=0;H[c+1|0]=0}d=-1;da:{ea:{fa:{c=K[c|0]|K[c+1|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+e|0;else c=169776;h=K[c|0]|K[c+1|0]<<8;switch(((h<<8|h>>>8)&65535)-1|0){case 1:break ea;case 0:break fa;default:break da}}d=K[c+2|0]|K[c+3|0]<<8;d=(d<<8|d>>>8)&65535;break da}d=K[c+2|0]|K[c+ -3|0]<<8;if(!d){d=0;break da}c=c+4|0;d=P((d<<8|d>>>8)&65535,6)-6|0;h=(d>>>0)/6|0;ga:{if(d>>>0<6){d=0;break ga}i=h+1&2147483646;d=0;while(1){k=d;d=K[c+2|0]|K[c+3|0]<<8;d=(d<<8|d>>>8)&65535;j=K[c|0]|K[c+1|0]<<8;j=(j<<8|j>>>8)&65535;k=k+(d>>>0>=j>>>0?(d-j|0)+1|0:0)|0;d=K[c+8|0]|K[c+9|0]<<8;d=(d<<8|d>>>8)&65535;j=K[c+6|0]|K[c+7|0]<<8;j=(j<<8|j>>>8)&65535;d=k+(d>>>0>=j>>>0?(d-j|0)+1|0:0)|0;c=c+12|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(h&1)break da;h=d;d=K[c+2|0]|K[c+3|0]<<8;d=(d<<8|d>>>8)&65535;c= -K[c|0]|K[c+1|0]<<8;c=(c<<8|c>>>8)&65535;d=h+(c>>>0<=d>>>0?(d-c|0)+1|0:0)|0}c=J[b+16>>2];d=d>>>1|0;g=c-d|0;d=c>>>0>d>>>0&(c|0)>=0;J[b+16>>2]=d?g:-1;if(!d)break ba;d=e+6|0;if(M[b+12>>2]>2]>>>0)break ba;h=K[e+4|0]|K[e+5|0]<<8;c=Npa(h)<<1;if(c>>>0>J[b+8>>2]-d>>>0)break ba;c=g-c|0;J[b+16>>2]=c;if((c|0)<=0)break ba;c=1;if(K[b+45|0])break aa;f=1;if(h>>>0<4096)break ba;f=Dk(e+4|0,b,e,d)}c=f}}d=c}if(d)break h;d=J[b+32>>2];if(d>>>0>31)break g;J[b+32>>2]=d+1;if(!K[b+28|0])break g;H[t|0]=0;H[t+1|0]= -0}n=n+1|0;if((D|0)!=(n|0))continue;break}}w=1;if(J[b+32>>2]|(K[m|0]|K[m+1|0]<<8)!=2304)break g;c=169776;d=0;e=K[l|0]|K[l+1|0]<<8?u:169776;e=K[e|0]|K[e+1|0]<<8;if(e)c=((e<<8|e>>>8)&65535)+m|0;if((K[c|0]|K[c+1|0]<<8)==256){d=K[c+2|0]|K[c+3|0]<<8;d=(d<<8|d>>>8)&65535}c=1;if((z&65535)>>>0<2)break g;while(1){n=169776;e=K[l|0]|K[l+1|0]<<8;e=((e<<8|e>>>8)&65535)>>>0<=c>>>0?169776:(l+(c<<1)|0)+2|0;e=K[e|0]|K[e+1|0]<<8;if(e)n=((e<<8|e>>>8)&65535)+m|0;e=0;if((K[n|0]|K[n+1|0]<<8)==256){e=K[n+2|0]|K[n+3|0]<< -8;e=(e<<8|e>>>8)&65535}w=(d|0)==(e|0);if((d|0)!=(e|0))break g;c=c+1|0;if((x|0)!=(c|0))continue;break}}if(w)break f;d=0;c=J[b+32>>2];if(c>>>0>31)break e;J[b+32>>2]=c+1;if(!K[b+28|0])break e;H[s|0]=0;H[s+1|0]=0}d=1;v=v+1|0;if((B|0)!=(v|0))continue;break}}if(d)break d;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[r|0]=0;H[r+1|0]=0}d=1;c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);ha:{if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0<65537)break ha;c=a+10|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break a;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(!e)break ha;if(hH((e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))+a|0,b))break ha;a=J[b+32>>2];if(a>>>0>31)break a;J[b+32>>2]=a+1;d=0;if(!K[b+28|0])break ha;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;d=1}return d}return 0}function Zy(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0;q=xb-48|0;xb=q;a:{if(c>>>0<=2){c=c<<2;A=J[c+758028>> -2];B=J[c+758016>>2];while(1){c=J[b+4>>2];b:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break b}c=_c(b)}if((c|0)==32|c-9>>>0<5)continue;break}t=1;c:{d:switch(c-43|0){case 0:case 2:break d;default:break c}t=(c|0)==45?-1:1;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break c}c=_c(b)}e:{f:{while(1){if(H[g+224696|0]==(c|32)){g:{if(g>>>0>6)break g;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break g}c=_c(b)}g=g+1|0;if((g|0)!=8)continue;break f}break}if((g|0)!=3){f=(g|0)==8; -if(f)break f;if(!d|g>>>0<4)break e;if(f)break f}c=J[b+116>>2];if((c|0)>=0|(c|0)>0)J[b+4>>2]=J[b+4>>2]-1;if(!d|g>>>0<4)break f;c=(c|0)<0;while(1){if(!c)J[b+4>>2]=J[b+4>>2]-1;g=g-1|0;if(g>>>0>3)continue;break}}k=xb-16|0;xb=k;j=(D(Q(Q(t|0)*Q(Infinity))),v(2));b=j&2147483647;h:{if(b-8388608>>>0<=2130706431){c=b;b=b>>>7|0;c=c<<25;d=b+1065353216|0;break h}c=j<<25;d=j>>>7|2147418112;if(b>>>0>=2139095040)break h;c=0;d=0;if(!b)break h;c=b;b=S(b);Ke(k,c,0,0,0,b+81|0);i=J[k>>2];h=J[k+4>>2];c=J[k+8>>2];d=J[k+ -12>>2]^65536|16265-b<<16}J[q>>2]=i;J[q+4>>2]=h;J[q+8>>2]=c;J[q+12>>2]=j&-2147483648|d;xb=k+16|0;i=J[q+8>>2];h=J[q+12>>2];j=J[q>>2];l=J[q+4>>2];break a}i:{j:{k:{if(g)break k;g=0;while(1){if(H[g+226538|0]!=(c|32))break k;l:{if(g>>>0>1)break l;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break l}c=_c(b)}g=g+1|0;if((g|0)!=3)continue;break}break j}m:switch(g|0){case 0:n:{if((c|0)!=48)break n;g=J[b+4>>2];o:{if((g|0)!=J[b+104>>2]){J[b+4>>2]=g+1;g=K[g|0];break o}g=_c(b)}if((g&-33)==88){f=xb- -432|0;xb=f;c=J[b+4>>2];p:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0];break p}g=_c(b)}q:{r:{while(1){if((g|0)!=48)s:{if((g|0)!=46)break q;c=J[b+4>>2];if((c|0)==J[b+104>>2])break s;J[b+4>>2]=c+1;g=K[c|0];break r}else{c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0]}else g=_c(b);C=1;continue}break}g=_c(b)}p=1;if((g|0)!=48)break q;while(1){c=r;r=c-1|0;s=s-!c|0;c=J[b+4>>2];t:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0];break t}g=_c(b)}if((g|0)==48)continue;break}C=1}l=1073676288;while(1){u:{c= -g|32;v:{w:{u=g-48|0;if(u>>>0<10)break w;E=(g|0)!=46;if(E&c-97>>>0>5)break u;if(E)break w;if(p)break u;p=1;r=i;s=h;break v}c=(g|0)>57?c-87|0:u;x:{if((h|0)<=0&i>>>0<=7|(h|0)<0){m=c+(m<<4)|0;break x}if(!h&i>>>0<=28){nf(f+48|0,c);pd(f+32|0,y,z,j,l,0,0,0,1073414144);y=J[f+32>>2];z=J[f+36>>2];j=J[f+40>>2];l=J[f+44>>2];pd(f+16|0,J[f+48>>2],J[f+52>>2],J[f+56>>2],J[f+60>>2],y,z,j,l);df(f,J[f+16>>2],J[f+20>>2],J[f+24>>2],J[f+28>>2],k,o,w,x);w=J[f+8>>2];x=J[f+12>>2];k=J[f>>2];o=J[f+4>>2];break x}if(F|!c)break x; -pd(f+80|0,y,z,j,l,0,0,0,1073610752);df(f- -64|0,J[f+80>>2],J[f+84>>2],J[f+88>>2],J[f+92>>2],k,o,w,x);w=J[f+72>>2];x=J[f+76>>2];F=1;k=J[f+64>>2];o=J[f+68>>2]}i=i+1|0;h=i?h:h+1|0;C=1}c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0]}else g=_c(b);continue}break}y:{if(!C){c=J[b+116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;z:{A:{if(c){c=J[b+4>>2];J[b+4>>2]=c-1;if(!d)break A;J[b+4>>2]=c-2;if(!p)break z;J[b+4>>2]=c-3;break z}if(d)break z}Vf(b,0,0)}xg(f+96|0,+(t|0)*0);k=J[f+96>>2];o=J[f+100>>2];c=J[f+108>> -2];b=J[f+104>>2];break y}if((h|0)<=0&i>>>0<=7|(h|0)<0){j=i;l=h;while(1){m=m<<4;j=j+1|0;l=j?l:l+1|0;if((j|0)!=8|l)continue;break}}B:{C:{D:{if((g&-33)==80){j=Yy(b,d);c=zb;l=c;if(j|(c|0)!=-2147483648)break B;if(d){c=J[b+116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;if(c)break D;break C}k=0;o=0;Vf(b,0,0);c=0;b=0;break y}j=0;l=0;if(J[b+116>>2]<0)break B}J[b+4>>2]=J[b+4>>2]-1}j=0;l=0}if(!m){xg(f+112|0,+(t|0)*0);k=J[f+112>>2];o=J[f+116>>2];c=J[f+124>>2];b=J[f+120>>2];break y}b=p?r:i;d=j+(b<<2)|0;b=l+((p?s:h)<< -2|b>>>30)|0;i=d-32|0;c=0-A|0;h=(d>>>0>>0?b+1|0:b)-(d>>>0<32)|0;b=h;if((b|0)>0)b=1;else b=c>>>0>>0&(b|0)>=0;if(b){J[194954]=68;nf(f+160|0,t);pd(f+144|0,J[f+160>>2],J[f+164>>2],J[f+168>>2],J[f+172>>2],-1,-1,-1,2147418111);pd(f+128|0,J[f+144>>2],J[f+148>>2],J[f+152>>2],J[f+156>>2],-1,-1,-1,2147418111);k=J[f+128>>2];o=J[f+132>>2];c=J[f+140>>2];b=J[f+136>>2];break y}b=A-226|0;c=b>>31;if((h|0)>=(c|0)&b>>>0<=i>>>0|(c|0)<(h|0)){if((m|0)>=0)while(1){df(f+416|0,k,o,w,x,0,0,0,-1073807360);b=My(k,o,w,x, -1073610752);c=(b|0)>=0;b=c;df(f+400|0,k,o,w,x,b?J[f+416>>2]:k,b?J[f+420>>2]:o,b?J[f+424>>2]:w,b?J[f+428>>2]:x);b=i;i=b-1|0;h=h-!b|0;w=J[f+408>>2];x=J[f+412>>2];k=J[f+400>>2];o=J[f+404>>2];m=c|m<<1;if((m|0)>=0)continue;break}h=h-((A>>31)+(i>>>0>>0)|0)|0;b=(i-A|0)+32|0;h=b>>>0<32?h+1|0:h;c=b>>>0>>0&(h|0)<=0|(h|0)<0?(b|0)>0?b:0:B;E:{if((c|0)>=113){nf(f+384|0,t);r=J[f+392>>2];s=J[f+396>>2];y=J[f+384>>2];z=J[f+388>>2];j=0;b=0;break E}xg(f+352|0,Lh(1,144-c|0));nf(f+336|0,t);y=J[f+336>>2];z=J[f+340>> -2];r=J[f+344>>2];s=J[f+348>>2];az(f+368|0,J[f+352>>2],J[f+356>>2],J[f+360>>2],J[f+364>>2],y,z,r,s);n=J[f+376>>2];e=J[f+380>>2];j=J[f+372>>2];b=J[f+368>>2]}d=!(m&1)&((Ji(k,o,w,x,0,0,0,0)|0)!=0&(c|0)<32);Ij(f+320|0,d+m|0);pd(f+304|0,y,z,r,s,J[f+320>>2],J[f+324>>2],J[f+328>>2],J[f+332>>2]);c=b;df(f+272|0,J[f+304>>2],J[f+308>>2],J[f+312>>2],J[f+316>>2],b,j,n,e);b=d;pd(f+288|0,y,z,r,s,b?0:k,b?0:o,b?0:w,b?0:x);df(f+256|0,J[f+288>>2],J[f+292>>2],J[f+296>>2],J[f+300>>2],J[f+272>>2],J[f+276>>2],J[f+280>>2], -J[f+284>>2]);oq(f+240|0,J[f+256>>2],J[f+260>>2],J[f+264>>2],J[f+268>>2],c,j,n,e);b=J[f+240>>2];d=J[f+244>>2];c=J[f+248>>2];j=J[f+252>>2];if(!Ji(b,d,c,j,0,0,0,0))J[194954]=68;$y(f+224|0,b,d,c,j,i);k=J[f+224>>2];o=J[f+228>>2];c=J[f+236>>2];b=J[f+232>>2];break y}J[194954]=68;nf(f+208|0,t);pd(f+192|0,J[f+208>>2],J[f+212>>2],J[f+216>>2],J[f+220>>2],0,0,0,65536);pd(f+176|0,J[f+192>>2],J[f+196>>2],J[f+200>>2],J[f+204>>2],0,0,0,65536);k=J[f+176>>2];o=J[f+180>>2];c=J[f+188>>2];b=J[f+184>>2]}J[q+16>>2]=k;J[q+ -20>>2]=o;J[q+24>>2]=b;J[q+28>>2]=c;xb=f+432|0;i=J[q+24>>2];h=J[q+28>>2];j=J[q+16>>2];l=J[q+20>>2];break a}if(J[b+116>>2]<0)break n;J[b+4>>2]=J[b+4>>2]-1}g=b;m=c;f=d;d=0;e=xb-8976|0;xb=e;F=0-A|0;E=F-B|0;F:{G:{while(1){if((m|0)!=48)H:{if((m|0)!=46)break F;b=J[g+4>>2];if((b|0)==J[g+104>>2])break H;J[g+4>>2]=b+1;m=K[b|0];break G}else{b=J[g+4>>2];if((b|0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0]}else m=_c(g);d=1;continue}break}m=_c(g)}C=1;if((m|0)!=48)break F;while(1){b=i;i=b-1|0;h=h-!b|0;b=J[g+4>>2];I:{if((b| -0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0];break I}m=_c(g)}if((m|0)==48)continue;break}d=1}J[e+784>>2]=0;J:{K:{b=(m|0)==46;c=m-48|0;L:{M:{N:{if(b|c>>>0<=9)while(1){O:{if(b&1){if(!C){i=j;h=l;C=1;break O}b=!d;break N}j=j+1|0;l=j?l:l+1|0;if((p|0)<=2044){u=(m|0)==48?u:j;b=(e+784|0)+(p<<2)|0;if(n)c=(P(J[b>>2],10)+m|0)-48|0;J[b>>2]=c;d=1;c=n+1|0;b=(c|0)==9;n=b?0:c;p=b+p|0;break O}if((m|0)==48)break O;J[e+8960>>2]=J[e+8960>>2]|1;u=18396}b=J[g+4>>2];P:{if((b|0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0];break P}m= -_c(g)}b=(m|0)==46;c=m-48|0;if(b|c>>>0<10)continue;break}i=C?i:j;h=C?h:l;if(!(!d|(m&-33)!=69)){k=Yy(g,f);b=zb;o=b;Q:{if(k|(b|0)!=-2147483648)break Q;if(!f)break L;k=0;o=0;if(J[g+116>>2]<0)break Q;J[g+4>>2]=J[g+4>>2]-1}h=h+o|0;i=i+k|0;h=i>>>0>>0?h+1|0:h;break K}b=!d;if((m|0)<0)break M}if(J[g+116>>2]<0)break M;J[g+4>>2]=J[g+4>>2]-1}if(!b)break K;J[194954]=28}Vf(g,0,0);i=0;h=0;c=0;b=0;break J}b=J[e+784>>2];if(!b){xg(e,+(t|0)*0);i=J[e+8>>2];h=J[e+12>>2];c=J[e+4>>2];b=J[e>>2];break J}if(!(j>>>0>9&(l| -0)>=0|(l|0)>0|((i|0)!=(j|0)|(h|0)!=(l|0))|(b>>>B|0?(B|0)<=30:0))){nf(e+48|0,t);Ij(e+32|0,b);pd(e+16|0,J[e+48>>2],J[e+52>>2],J[e+56>>2],J[e+60>>2],J[e+32>>2],J[e+36>>2],J[e+40>>2],J[e+44>>2]);i=J[e+24>>2];h=J[e+28>>2];c=J[e+20>>2];b=J[e+16>>2];break J}b=F>>>1|0;if(b>>>0>>0&(h|0)>=0|(h|0)>0){J[194954]=68;nf(e+96|0,t);pd(e+80|0,J[e+96>>2],J[e+100>>2],J[e+104>>2],J[e+108>>2],-1,-1,-1,2147418111);pd(e- -64|0,J[e+80>>2],J[e+84>>2],J[e+88>>2],J[e+92>>2],-1,-1,-1,2147418111);i=J[e+72>>2];h=J[e+76>>2]; -c=J[e+68>>2];b=J[e+64>>2];break J}b=A-226|0;c=i>>>0>>0;b=b>>31;if(c&(h|0)<=(b|0)|(b|0)>(h|0)){J[194954]=68;nf(e+144|0,t);pd(e+128|0,J[e+144>>2],J[e+148>>2],J[e+152>>2],J[e+156>>2],0,0,0,65536);pd(e+112|0,J[e+128>>2],J[e+132>>2],J[e+136>>2],J[e+140>>2],0,0,0,65536);i=J[e+120>>2];h=J[e+124>>2];c=J[e+116>>2];b=J[e+112>>2];break J}if(n){if((n|0)<=8){b=(e+784|0)+(p<<2)|0;g=J[b>>2];while(1){g=P(g,10);n=n+1|0;if((n|0)!=9)continue;break}J[b>>2]=g}p=p+1|0}n=i;R:{if((i|0)<(u|0)|(u|0)>=9|(i|0)>17)break R; -if((i|0)==9){nf(e+192|0,t);Ij(e+176|0,J[e+784>>2]);pd(e+160|0,J[e+192>>2],J[e+196>>2],J[e+200>>2],J[e+204>>2],J[e+176>>2],J[e+180>>2],J[e+184>>2],J[e+188>>2]);i=J[e+168>>2];h=J[e+172>>2];c=J[e+164>>2];b=J[e+160>>2];break J}if((n|0)<=8){nf(e+272|0,t);Ij(e+256|0,J[e+784>>2]);pd(e+240|0,J[e+272>>2],J[e+276>>2],J[e+280>>2],J[e+284>>2],J[e+256>>2],J[e+260>>2],J[e+264>>2],J[e+268>>2]);nf(e+224|0,J[(0-n<<2)+758016>>2]);Ky(e+208|0,J[e+240>>2],J[e+244>>2],J[e+248>>2],J[e+252>>2],J[e+224>>2],J[e+228>>2],J[e+ -232>>2],J[e+236>>2]);i=J[e+216>>2];h=J[e+220>>2];c=J[e+212>>2];b=J[e+208>>2];break J}b=(P(n,-3)+B|0)+27|0;c=J[e+784>>2];if(c>>>b|0?(b|0)<=30:0)break R;nf(e+352|0,t);Ij(e+336|0,c);pd(e+320|0,J[e+352>>2],J[e+356>>2],J[e+360>>2],J[e+364>>2],J[e+336>>2],J[e+340>>2],J[e+344>>2],J[e+348>>2]);nf(e+304|0,J[(n<<2)+757944>>2]);pd(e+288|0,J[e+320>>2],J[e+324>>2],J[e+328>>2],J[e+332>>2],J[e+304>>2],J[e+308>>2],J[e+312>>2],J[e+316>>2]);i=J[e+296>>2];h=J[e+300>>2];c=J[e+292>>2];b=J[e+288>>2];break J}while(1){b= -p;p=b-1|0;if(!J[(e+784|0)+(p<<2)>>2])continue;break}u=0;d=(n|0)%9|0;S:{if(!d){c=0;break S}c=0;d=(n|0)<0?d+9|0:d;T:{if(!b){b=0;break T}i=J[(0-d<<2)+758016>>2];k=1E9/(i|0)|0;m=0;g=0;while(1){j=m;h=e+784|0;l=h+(g<<2)|0;m=J[l>>2];p=(m>>>0)/(i>>>0)|0;j=j+p|0;J[l>>2]=j;j=!j&(c|0)==(g|0);c=j?c+1&2047:c;n=j?n-9|0:n;m=P(k,m-P(i,p)|0);g=g+1|0;if((g|0)!=(b|0))continue;break}if(!m)break T;J[h+(b<<2)>>2]=m;b=b+1|0}n=(n-d|0)+9|0}while(1){g=(e+784|0)+(c<<2)|0;m=(n|0)<36;U:{while(1){if(!m&((n|0)!=36|M[g>>2]>=10384593))break U; -p=b+2047|0;d=0;while(1){j=b;k=p&2047;p=(e+784|0)+(k<<2)|0;b=J[p>>2];l=b>>>3|0;b=b<<29;i=b+d|0;h=b>>>0>i>>>0?l+1|0:l;if(!h&i>>>0<1000000001)d=0;else{b=i;d=Mpa(b,h,1E9,0);i=b-Kpa(d,zb,1E9,0)|0}J[p>>2]=i;b=(c|0)==(k|0)?j:i?j:k;i=j-1&2047;b=(i|0)!=(k|0)?j:b;p=k-1|0;if((c|0)!=(k|0))continue;break}u=u-29|0;b=j;if(!d)continue;break}c=c-1&2047;if((c|0)==(b|0)){g=(b+2046&2047)<<2;b=e+784|0;j=g+b|0;J[j>>2]=J[j>>2]|J[b+(i<<2)>>2];b=i}n=n+9|0;J[(e+784|0)+(c<<2)>>2]=d;continue}break}V:{W:while(1){i=b+1&2047;k= -(e+784|0)+((b-1&2047)<<2)|0;while(1){j=(n|0)>45?9:1;X:{while(1){d=c;g=0;Y:{while(1){Z:{c=d+g&2047;if((c|0)==(b|0))break Z;c=J[(e+784|0)+(c<<2)>>2];h=J[(g<<2)+757968>>2];if(c>>>0>>0)break Z;if(c>>>0>h>>>0)break Y;g=g+1|0;if((g|0)!=4)continue}break}if((n|0)!=36)break Y;i=0;h=0;g=0;j=0;l=0;while(1){c=d+g&2047;if((c|0)==(b|0)){b=b+1&2047;J[((b<<2)+e|0)+780>>2]=0}Ij(e+768|0,J[(e+784|0)+(c<<2)>>2]);pd(e+752|0,i,h,j,l,0,0,1342177280,1075633366);df(e+736|0,J[e+752>>2],J[e+756>>2],J[e+760>>2],J[e+764>> -2],J[e+768>>2],J[e+772>>2],J[e+776>>2],J[e+780>>2]);j=J[e+744>>2];l=J[e+748>>2];i=J[e+736>>2];h=J[e+740>>2];g=g+1|0;if((g|0)!=4)continue;break}nf(e+720|0,t);pd(e+704|0,i,h,j,l,J[e+720>>2],J[e+724>>2],J[e+728>>2],J[e+732>>2]);j=J[e+712>>2];l=J[e+716>>2];i=0;h=0;k=J[e+704>>2];o=J[e+708>>2];p=u+113|0;g=p-A|0;m=(g|0)<(B|0);c=m?(g|0)>0?g:0:B;if((c|0)<=112)break X;break V}u=j+u|0;c=b;if((b|0)==(d|0))continue;break}l=1E9>>>j|0;m=-1<>2];h=h+(f>>>j|0)| -0;J[g>>2]=h;h=!h&(c|0)==(d|0);c=h?c+1&2047:c;n=h?n-9|0:n;g=P(l,f&m);d=d+1&2047;if((d|0)!=(b|0))continue;break}if(!g)continue;if((c|0)!=(i|0)){J[p+(b<<2)>>2]=g;b=i;continue W}J[k>>2]=J[k>>2]|1;continue}break}break}xg(e+656|0,Lh(1,225-c|0));az(e+688|0,J[e+656>>2],J[e+660>>2],J[e+664>>2],J[e+668>>2],k,o,j,l);y=J[e+696>>2];z=J[e+700>>2];w=J[e+688>>2];x=J[e+692>>2];xg(e+640|0,Lh(1,113-c|0));_y(e+672|0,k,o,j,l,J[e+640>>2],J[e+644>>2],J[e+648>>2],J[e+652>>2]);i=J[e+672>>2];h=J[e+676>>2];r=J[e+680>>2];s= -J[e+684>>2];oq(e+624|0,k,o,j,l,i,h,r,s);df(e+608|0,w,x,y,z,J[e+624>>2],J[e+628>>2],J[e+632>>2],J[e+636>>2]);j=J[e+616>>2];l=J[e+620>>2];k=J[e+608>>2];o=J[e+612>>2]}n=d+4&2047;_:{if((n|0)==(b|0))break _;n=J[(e+784|0)+(n<<2)>>2];$:{if(n>>>0<=499999999){if(!n&(d+5&2047)==(b|0))break $;xg(e+496|0,+(t|0)*.25);df(e+480|0,i,h,r,s,J[e+496>>2],J[e+500>>2],J[e+504>>2],J[e+508>>2]);r=J[e+488>>2];s=J[e+492>>2];i=J[e+480>>2];h=J[e+484>>2];break $}if((n|0)!=5E8){xg(e+592|0,+(t|0)*.75);df(e+576|0,i,h,r,s,J[e+592>> -2],J[e+596>>2],J[e+600>>2],J[e+604>>2]);r=J[e+584>>2];s=J[e+588>>2];i=J[e+576>>2];h=J[e+580>>2];break $}G=+(t|0);if((d+5&2047)==(b|0)){xg(e+528|0,G*.5);df(e+512|0,i,h,r,s,J[e+528>>2],J[e+532>>2],J[e+536>>2],J[e+540>>2]);r=J[e+520>>2];s=J[e+524>>2];i=J[e+512>>2];h=J[e+516>>2];break $}xg(e+560|0,G*.75);df(e+544|0,i,h,r,s,J[e+560>>2],J[e+564>>2],J[e+568>>2],J[e+572>>2]);r=J[e+552>>2];s=J[e+556>>2];i=J[e+544>>2];h=J[e+548>>2]}if((c|0)>111)break _;_y(e+464|0,i,h,r,s,0,0,0,1073676288);if(Ji(J[e+464>>2], -J[e+468>>2],J[e+472>>2],J[e+476>>2],0,0,0,0))break _;df(e+448|0,i,h,r,s,0,0,0,1073676288);r=J[e+456>>2];s=J[e+460>>2];i=J[e+448>>2];h=J[e+452>>2]}df(e+432|0,k,o,j,l,i,h,r,s);oq(e+416|0,J[e+432>>2],J[e+436>>2],J[e+440>>2],J[e+444>>2],w,x,y,z);j=J[e+424>>2];l=J[e+428>>2];k=J[e+416>>2];o=J[e+420>>2];aa:{if((E-2|0)>=(p&2147483647))break aa;J[e+408>>2]=j;J[e+412>>2]=l&2147483647;J[e+400>>2]=k;J[e+404>>2]=o;pd(e+384|0,k,o,j,l,0,0,0,1073610752);d=My(J[e+400>>2],J[e+404>>2],J[e+408>>2],J[e+412>>2],1081081856); -b=(d|0)>=0;j=b?J[e+392>>2]:j;l=b?J[e+396>>2]:l;k=b?J[e+384>>2]:k;o=b?J[e+388>>2]:o;i=Ji(i,h,r,s,0,0,0,0);u=b+u|0;if((u+110|0)<=(E|0))if(!(m&((c|0)!=(g|0)|(d|0)<0)&(i|0)!=0))break aa;J[194954]=68}$y(e+368|0,k,o,j,l,u);i=J[e+376>>2];h=J[e+380>>2];c=J[e+372>>2];b=J[e+368>>2]}J[q+40>>2]=i;J[q+44>>2]=h;J[q+32>>2]=b;J[q+36>>2]=c;xb=e+8976|0;i=J[q+40>>2];h=J[q+44>>2];j=J[q+32>>2];l=J[q+36>>2];break a;case 3:break j;default:break m}c=J[b+116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;if(c)J[b+4>>2]=J[b+4>>2]-1;break i}ba:{c= -J[b+4>>2];ca:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break ca}c=_c(b)}if((c|0)==40){g=1;break ba}h=2147450880;if(J[b+116>>2]<0)break a;J[b+4>>2]=J[b+4>>2]-1;break a}while(1){da:{c=J[b+4>>2];ea:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break ea}c=_c(b)}if(!(c-48>>>0<10|c-65>>>0<26|(c|0)==95))if(c-97>>>0>=26)break da;g=g+1|0;continue}break}h=2147450880;if((c|0)==41)break a;c=J[b+116>>2];if((c|0)>=0|(c|0)>0)J[b+4>>2]=J[b+4>>2]-1;fa:{if(d){if(g)break fa;break a}break i}while(1){if((c|0)>0| -(c|0)>=0)J[b+4>>2]=J[b+4>>2]-1;g=g-1|0;if(g)continue;break}break a}J[194954]=28;Vf(b,0,0)}h=0}J[a>>2]=j;J[a+4>>2]=l;J[a+8>>2]=i;J[a+12>>2]=h;xb=q+48|0}function coa(a,b,c,d,e,f,g,h,i,j,k,l,m,n){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;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=Q(0),v=0,w=0,x=0,y=0,z=0,A=Q(0),C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0,O=0,S=0,T=0,U=0,V=0;q=xb-176|0;xb=q;a:{b:{if(m>>>0>64)break b;J[q+172>>2]=0;S=n?n:q+172|0;n=J[S>>2];if(n>>>0>1024)break b;J[S>>2]= -n+1;J[q+164>>2]=0;J[q+168>>2]=0;J[q+152>>2]=0;J[q+136>>2]=1;J[q+140>>2]=1;J[q+156>>2]=0;J[q+160>>2]=0;J[q+144>>2]=0;J[q+148>>2]=1;if(f){n=J[f+36>>2];J[f+36>>2]=m>>>0>>0?n:m}if(!J[k+4>>2]){o=J[b+108>>2];n=J[b+104>>2];J[k+8>>2]=0;U=k,V=Ppa(n,o),J[U>>2]=V;J[k+4>>2]=zb}J[q+132>>2]=0;J[q+124>>2]=0;J[q+128>>2]=0;t=J[a+20>>2];v=(t|0)==1;C=v?d:q+124|0;H=J[C+4>>2];c:{d:{e:{f:{g:{h:switch(t-1|0){case 0:i:{if(!(m|!f)){p=J[f+20>>2];o=J[a+12>>2];n=K[o|0]|K[o+1|0]<<8;n=(n<<8|n>>>8)<<16>>16;J[f+20>>2]=n>>>0< -p>>>0?p:n;break i}o=J[a+12>>2];if(!g|!m)break i;n=K[o|0]|K[o+1|0]<<8;J[g>>2]=J[g>>2]+((n<<8|n>>>8)<<16>>16)}J[q+80>>2]=o;J[q+92>>2]=J[a+8>>2];n=J[a+4>>2];J[q+84>>2]=J[a>>2];J[q+88>>2]=n;o=0;J[195395]=0;p=aa(753,q+80|0,d|0,j|0)|0;n=J[195395];J[195395]=0;if((n|0)==1)break f;if(p)break g;break c;case 1:break h;default:break g}o=J[a+12>>2]+10|0;G=J[a>>2];if(o>>>0>>0)break g;r=G+J[a+4>>2]|0;if(r>>>0>>0)break g;n=r-o|0;if(n>>>0<4)break g;p=K[o|0]|K[o+1|0]<<8;w=p<<8|p>>>8;x=w&65535;s=x&1?8:6;p=2;j:{if(w& -8)break j;p=4;if(x&64)break j;p=x>>>4&8}w=s+p|0;if(n>>>0>>0)break g;while(1){J[195395]=0;p=ca(754,o|0,C|0)|0;n=J[195395];J[195395]=0;if((n|0)==1)break f;if(!p){o=0;break c}if(!(K[o+1|0]&32))break g;o=o+w|0;if(G>>>0>o>>>0|o>>>0>r>>>0)break g;n=r-o|0;if(n>>>0<4)break g;p=K[o|0]|K[o+1|0]<<8;w=p<<8|p>>>8;x=w&65535;s=x&1?8:6;p=2;k:{if(w&8)break k;p=4;if(x&64)break k;p=x>>>4&8}w=s+p|0;if(n>>>0>=w>>>0)continue;break}}o=J[C>>2];if((o|0)<0){o=0;break c}L=v?d+4|0:q+128|0;n=J[L>>2]+4|0;D=(n|0)>0?n:0;l:{if(D>>> -0<=o>>>0)break l;p=o;while(1){p=((p>>>1|0)+p|0)+8|0;if(D>>>0>p>>>0)continue;break}m:{if(p>>>0<=357913941){o=(t|0)==1?d:q+124|0;n=ic(J[o+8>>2],P(p,12));if(n)break m;o=J[C>>2];if(p>>>0<=o>>>0)break l}J[C>>2]=o^-1;o=0;break c}J[o+8>>2]=n;J[C>>2]=p}o=J[L>>2];n:{if(o>>>0>=D>>>0)break n;n=P(D-o|0,12);if(!n)break n;Nb(J[((t|0)==1?d:q+124|0)+8>>2]+P(o,12)|0,0,n)}J[C+4>>2]=D;y=J[a+16>>2];E=J[c+4>>2];s=J[E>>2];o:{p:{if(y>>>0>>0){n=J[E+20>>2];o=(J[(n?n:169776)+12>>2]+(y<<2)|0)+2|0;break p}if(y>>>0>=M[E+4>> -2]){p=J[a+12>>2];v=0;break o}n=J[E+20>>2];o=(J[(n?n:169776)+12>>2]+(s<<2)|0)+(y-s<<1)|0}p=J[a+12>>2];n=K[p+2|0]|K[p+3|0]<<8;v=(n<<8|n>>>8)<<16>>16;n=K[o|0]|K[o+1|0]<<8;v=v-((n<<8|n>>>8)<<16>>16)|0}G=D-4|0;t=(t|0)==1;n=K[p+8|0]|K[p+9|0]<<8;x=n>>>8|0;p=n<<8;F=J[c+8>>2];C=J[F>>2];q:{r:{if(C>>>0>y>>>0){n=J[F+20>>2];n=(J[(n?n:169776)+12>>2]+(y<<2)|0)+2|0;break r}o=0;if(y>>>0>=M[F+4>>2])break q;n=J[F+20>>2];n=(J[(n?n:169776)+12>>2]+(C<<2)|0)+(y-C<<1)|0}n=K[n|0]|K[n+1|0]<<8;o=(n<<8|n>>>8)<<16>>16}r=D-G| -0;w=t?d:q+124|0;x=p|x;s:{if(y>>>0>2]){n=J[E+20>>2];p=J[(n?n:169776)+12>>2];n=s-1|0;n=p+((n>>>0>>0?n:y)<<2)|0;n=K[n|0]|K[n+1|0]<<8;p=(n<<8|n>>>8)&65535;break s}p=0;if(J[E+8>>2])break s;p=J[E+16>>2]}s=r>>>0>D>>>0;G=P(G,12);w=J[w+8>>2];x=x<<16>>16;t:{if(y>>>0>2]){n=J[F+20>>2];z=J[(n?n:169776)+12>>2];n=C-1|0;n=z+((n>>>0>>0?n:y)<<2)|0;n=K[n|0]|K[n+1|0]<<8;n=(n<<8|n>>>8)&65535;break t}n=0;if(J[F+8>>2])break t;n=J[F+16>>2]}I=s?0:r;w=w+G|0;x=o+x|0;T=t?d+8|0:q+132|0;u:{v:{w:{x:{y:{z:{A:{if(D>>> -0<=3){o=J[42445];J[194120]=J[42444];J[194121]=o;J[194122]=J[42446];N[194120]=v|0;break A}N[w>>2]=v|0;if(I>>>0>1)break z}o=J[42445];J[194120]=J[42444];J[194121]=o;J[194122]=J[42446];N[194120]=p+v|0;break y}N[w+12>>2]=p+v|0;if((I|0)!=2)break x}o=J[42445];J[194120]=J[42444];J[194121]=o;J[194122]=J[42446];N[194121]=x|0;break w}N[w+28>>2]=x|0;if(I>>>0>3)break v}J[194122]=J[42446];o=J[42445];J[194120]=J[42444];J[194121]=o;o=776480;break u}o=w+36|0}N[o+4>>2]=x-n|0;B:{if(!J[k+4>>2])break B;o=J[L>>2];n=J[T>> -2];v=J[c>>2];C:{if(!H){J[q+116>>2]=o;J[q+112>>2]=n;break C}J[q+112>>2]=n+P(H,12);n=o-H|0;J[q+116>>2]=n>>>0<=o>>>0?n:0}J[q+120>>2]=0;p=J[a+20>>2];J[195395]=0;J[q- -64>>2]=J[k+8>>2];o=J[k+4>>2];n=J[k>>2];J[q+48>>2]=0;J[q+56>>2]=n;J[q+60>>2]=o;n=J[q+116>>2];J[q+40>>2]=J[q+112>>2];J[q+44>>2]=n;ka(755,v|0,y|0,q+56|0,q+40|0,(p|0)==1&j)|0;n=J[195395];J[195395]=0;if((n|0)!=1)break B;break f}o=J[a+20>>2];if(!(m|!e|(o|0)!=2)){o=0;n=J[e>>2];if((n|0)<0)break c;p=J[L>>2];v=(p|0)>0?p:0;D:{if(v>>>0<=n>>>0)break D; -p=n;while(1){p=((p>>>1|0)+p|0)+8|0;if(v>>>0>p>>>0)continue;break}E:{if(p>>>0<=357913941){n=ic(J[e+8>>2],P(p,12));if(n)break E;n=J[e>>2];if(p>>>0<=n>>>0)break D}J[e>>2]=n^-1;break c}J[e>>2]=p;J[e+8>>2]=n;n=p}p=J[e+4>>2];F:{if(p>>>0>=v>>>0)break F;o=P(v-p|0,12);if(!o)break F;Nb(J[e+8>>2]+P(p,12)|0,0,o);n=J[e>>2]}J[e+4>>2]=v;if((n|0)<0){n=n^-1;J[e>>2]=n}J[e+4>>2]=0;o=J[L>>2];G:{if(!(o>>>0<=n>>>0&n>>>2>>>0<=o>>>0)){H:{I:{if(o>>>0>=357913942){o=n^-1;break I}n=J[e+8>>2];J:{if(!o){Kb(n);n=0;break J}n=ic(n, -P(o,12));if(n)break J;n=o;o=J[e>>2];if(n>>>0<=o>>>0)break H;o=o^-1;break I}J[e+8>>2]=n}J[e>>2]=o}if((o|0)<0)break G;o=J[L>>2]}p=J[T>>2];J[e+4>>2]=o;if(!o)break G;o=0;while(1){n=P(o,12);x=n+p|0;v=n+J[e+8>>2]|0;n=J[x+4>>2];J[v>>2]=J[x>>2];J[v+4>>2]=n;J[v+8>>2]=J[x+8>>2];o=o+1|0;if(o>>>0>2])continue;break}}o=J[a+20>>2]}y=I>>>0>=4?4:I;K:switch(o|0){case 1:if(m|!f)break d;b=J[f+16>>2];a=(J[d+4>>2]-H|0)-4|0;J[f+16>>2]=a>>>0>>0?b:a;break d;case 2:break K;case 0:break e;default:break d}L:{n=J[a+ -12>>2]+10|0;F=J[a>>2];M:{if(n>>>0>>0)break M;E=J[a+4>>2]+F|0;if(E>>>0>>0)break M;a=E-n|0;if(a>>>0<4)break M;o=K[n|0]|K[n+1|0]<<8;p=o<<8|o>>>8;v=p&65535;s=v&1?8:6;o=2;N:{if(p&8)break N;o=4;if(v&64)break N;o=v>>>4&8}H=s+o|0;if(a>>>0>>0)break M;z=l?l:q+136|0;G=w+36|0;x=w+24|0;v=w+12|0;C=m+1|0;while(1){a=K[n+2|0]|K[n+3|0]<<8;r=(a<<8|a>>>8)&65535;J[q+108>>2]=r;s=J[z+32>>2];O:{P:{if(!s)break P;o=((P(r,506952113)&1073741823)>>>0)%M[z+24>>2]|0;a=s+P(o,12)|0;t=J[a+4>>2];if(!(t&2))break P;if((r|0)!= -J[a>>2]){p=J[z+20>>2];a=0;while(1){a=a+1|0;o=p&o+a;l=s+P(o,12)|0;t=J[l+4>>2];if(!(t&2))break P;if((r|0)!=J[l>>2])continue;break}}if(t&1)break O}J[195395]=0;ka(735,z|0,q+108|0,P(r,-1640531535)|0,170452,1)|0;a=J[195395];J[195395]=0;Q:{R:{S:{T:{U:{if((a|0)!=1){s=J[d+4>>2];if(!(!i|!(K[n|0]&2)?j:0)){t=J[q+108>>2];if(t>>>0>=M[c+16>>2])break U;a=J[c+20>>2];a=J[(a?a:169776)+12>>2];V:{if(K[c+12|0]){l=a+(t<<1)|0;a=K[l|0]|K[l+1|0]<<8;a=((a<<8|a>>>8)&65535)<<1;l=K[l+2|0]|K[l+3|0]<<8;l=((l<<8|l>>>8)&65535)<<1; -break V}l=a+(t<<2)|0;a=K[l|0]|K[l+1|0]<<8|(K[l+2|0]<<16|K[l+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);l=K[l+4|0]|K[l+5|0]<<8|(K[l+6|0]<<16|K[l+7|0]<<24);l=l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24)}W:{if(a>>>0<=l>>>0){o=J[c+24>>2];p=o?o:169776;if(l>>>0<=M[p+16>>2])break W}break U}r=J[p+12>>2]+a|0;l=l-a|0;p=l>>>0<10?169776:r;a=K[p|0]|K[p+1|0]<<8;o=0;X:{if(!a)break X;o=1;if((a<<8|a>>>8)<<16>>16>0)break X;o=((a|0)==65535)<<1}a=o;J[q+88>>2]=0;J[q+84>>2]=l;J[q+80>>2]=r;break T}o=s;break S}break f}a= -0;J[q+88>>2]=0;J[q+80>>2]=0;J[q+84>>2]=0;t=-1;p=169776}J[q+100>>2]=a;J[q+96>>2]=t;J[q+92>>2]=p;J[195395]=0;J[q+32>>2]=J[k+8>>2];a=J[k+4>>2];J[q+24>>2]=J[k>>2];J[q+28>>2]=a;l=La(733,q+80|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,q+24|0,z|0,C|0,S|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1){if(l){o=J[d+4>>2];break S}J[195395]=0;XH(z,q+108|0);a=J[195395];J[195395]=0;if((a|0)!=1)break R;break f}break f}a=o-s|0;r=s?a>>>0<=o>>>0?a:0:o;a=J[d+8>>2]+P(s,12)|0;o=K[n|0]|K[n+1|0]<<8;if(!(!i|!(o&2))){Y:{if(r>>>0<=3){J[194122]= -J[42446];l=J[42445];J[194120]=J[42444];J[194121]=l;l=776480;break Y}l=(a+P(r,12)|0)-48|0}o=w;if(D>>>0<=3){J[194122]=J[42446];o=J[42445];J[194120]=J[42444];J[194121]=o;o=776480}p=J[l+4>>2];J[o>>2]=J[l>>2];J[o+4>>2]=p;J[o+8>>2]=J[l+8>>2];Z:{if(r>>>0<=2){J[194122]=J[42446];l=J[42445];J[194120]=J[42444];J[194121]=l;l=776480;break Z}l=(a+P(r,12)|0)-36|0}o=v;if(I>>>0<=1){J[194122]=J[42446];o=J[42445];J[194120]=J[42444];J[194121]=o;o=776480}p=J[l+4>>2];J[o>>2]=J[l>>2];J[o+4>>2]=p;J[o+8>>2]=J[l+8>>2];_:{if(r>>> -0<=1){J[194122]=J[42446];l=J[42445];J[194120]=J[42444];J[194121]=l;l=776480;break _}l=(a+P(r,12)|0)-24|0}o=x;if(I>>>0<=2){J[194122]=J[42446];o=J[42445];J[194120]=J[42444];J[194121]=o;o=776480}p=J[l+4>>2];J[o>>2]=J[l>>2];J[o+4>>2]=p;J[o+8>>2]=J[l+8>>2];$:{if(!r){J[194122]=J[42446];l=J[42445];J[194120]=J[42444];J[194121]=l;l=776480;break $}l=(a+P(r,12)|0)-12|0}o=G;if(I>>>0<=3){J[194122]=J[42446];o=J[42445];J[194120]=J[42444];J[194121]=o;o=776480}p=J[l+4>>2];J[o>>2]=J[l>>2];J[o+4>>2]=p;J[o+8>>2]=J[l+ -8>>2];o=K[n|0]|K[n+1|0]<<8}if(r){J[q+88>>2]=0;J[q+92>>2]=1065353216;J[q+80>>2]=1065353216;J[q+84>>2]=0;l=o<<8|(o&65280)>>>8;o=(l&1?8:6)+n|0;aa:{if(l&8){l=K[o|0]|K[o+1|0]<<8;u=Q(Q((l<<8|l>>>8)<<16>>16)*Q(6.103515625E-5));N[q+80>>2]=u;N[q+92>>2]=u;break aa}l=l&65535;if(l&64){l=K[o|0]|K[o+1|0]<<8;N[q+80>>2]=Q((l<<8|l>>>8)<<16>>16)*Q(6.103515625E-5);l=K[o+2|0]|K[o+3|0]<<8;N[q+92>>2]=Q((l<<8|l>>>8)<<16>>16)*Q(6.103515625E-5);break aa}if(!(l&128))break aa;l=K[o|0]|K[o+1|0]<<8;N[q+80>>2]=Q((l<<8|l>>>8)<< -16>>16)*Q(6.103515625E-5);l=K[o+2|0]|K[o+3|0]<<8;N[q+84>>2]=Q((l<<8|l>>>8)<<16>>16)*Q(6.103515625E-5);l=K[o+4|0]|K[o+5|0]<<8;N[q+88>>2]=Q((l<<8|l>>>8)<<16>>16)*Q(6.103515625E-5);l=K[o+6|0]|K[o+7|0]<<8;N[q+92>>2]=Q((l<<8|l>>>8)<<16>>16)*Q(6.103515625E-5)}J[q+76>>2]=0;J[q+72>>2]=r;J[q+68>>2]=a;ba:{if(M[L>>2]<=O>>>0){J[194122]=J[42446];l=J[42445];J[194120]=J[42444];J[194121]=l;o=776480;break ba}o=J[T>>2]+P(O,12)|0}J[q+16>>2]=J[q+76>>2];J[195395]=0;l=J[q+72>>2];J[q+8>>2]=J[q+68>>2];J[q+12>>2]=l;WH(n, -q+8|0,q+80|0,o);l=J[195395];J[195395]=0;if((l|0)==1)break L;o=K[n|0]|K[n+1|0]<<8}ca:{if(o&512|j){p=J[d+4>>2];break ca}da:{if(o&256){l=K[n+4|0]|K[n+5|0]<<8;o=(l<<8|l>>>8)&65535;l=K[n+6|0]|K[n+7|0]<<8;l=(l<<8|l>>>8)&65535;break da}o=K[n+4|0];l=K[n+5|0]}p=J[d+4>>2];if(p>>>0<=o>>>0|l>>>0>=r>>>0)break ca;o=J[d+8>>2]+P(o,12)|0;l=a+P(l,12)|0;A=Q(N[o+4>>2]-N[l+4>>2]);u=Q(N[o>>2]-N[l>>2]);l=u==Q(0);if(!(l|A==Q(0))){l=0;o=a;t=P(r,12);r=t-12|0;s=((r>>>0)/12|0)+1&3;if(s)while(1){N[o>>2]=u+N[o>>2];N[o+4>>2]=A+ -N[o+4>>2];o=o+12|0;l=l+1|0;if((s|0)!=(l|0))continue;break}if(r>>>0<36)break ca;a=a+t|0;while(1){N[o>>2]=u+N[o>>2];N[o+4>>2]=A+N[o+4>>2];N[o+12>>2]=u+N[o+12>>2];N[o+24>>2]=u+N[o+24>>2];N[o+36>>2]=u+N[o+36>>2];N[o+16>>2]=A+N[o+16>>2];N[o+28>>2]=A+N[o+28>>2];N[o+40>>2]=A+N[o+40>>2];o=o+48|0;if((a|0)!=(o|0))continue;break}break ca}if(!l){l=0;o=a;t=P(r,12);r=t-12|0;s=((r>>>0)/12|0)+1&7;if(s)while(1){N[o>>2]=u+N[o>>2];o=o+12|0;l=l+1|0;if((s|0)!=(l|0))continue;break}if(r>>>0<84)break ca;a=a+t|0;while(1){N[o>> -2]=u+N[o>>2];N[o+12>>2]=u+N[o+12>>2];N[o+24>>2]=u+N[o+24>>2];N[o+36>>2]=u+N[o+36>>2];N[o+48>>2]=u+N[o+48>>2];N[o+60>>2]=u+N[o+60>>2];N[o+72>>2]=u+N[o+72>>2];N[o+84>>2]=u+N[o+84>>2];o=o+96|0;if((a|0)!=(o|0))continue;break}break ca}if(A==Q(0))break ca;l=0;o=a;t=P(r,12);r=t-12|0;s=((r>>>0)/12|0)+1&7;if(s)while(1){N[o+4>>2]=A+N[o+4>>2];o=o+12|0;l=l+1|0;if((s|0)!=(l|0))continue;break}if(r>>>0<84)break ca;l=a+t|0;while(1){N[o+4>>2]=A+N[o+4>>2];N[o+16>>2]=A+N[o+16>>2];N[o+28>>2]=A+N[o+28>>2];N[o+40>>2]= -A+N[o+40>>2];N[o+52>>2]=A+N[o+52>>2];a=o- -64|0;N[a>>2]=A+N[a>>2];N[o+76>>2]=A+N[o+76>>2];N[o+88>>2]=A+N[o+88>>2];o=o+96|0;if((l|0)!=(o|0))continue;break}}l=J[d>>2];ea:{if((l|0)<0){o=p;break ea}a=l;o=p-4|0;o=(o|0)>0?o:0;fa:{if(a>>>0>=o>>>0)break fa;while(1){a=((a>>>1|0)+a|0)+8|0;if(o>>>0>a>>>0)continue;break}ga:{if(a>>>0<=357913941){l=ic(J[d+8>>2],P(a,12));if(l)break ga;l=J[d>>2];if(l>>>0>=a>>>0)break fa;p=J[d+4>>2]}J[d>>2]=l^-1;o=p;break ea}J[d>>2]=a;J[d+8>>2]=l}l=J[d+4>>2];ha:{if(l>>>0>=o>>>0)break ha; -a=P(o-l|0,12);if(!a)break ha;Nb(J[d+8>>2]+P(l,12)|0,0,a)}J[d+4>>2]=o}if(o>>>0<20001)break Q;d=J[z+32>>2];if(!d)break R;c=J[q+108>>2];o=((P(c,506952113)&1073741823)>>>0)%M[z+24>>2]|0;a=d+P(o,12)|0;p=J[a+4>>2];if(!(p&2))break R;if((c|0)!=J[a>>2]){b=J[z+20>>2];e=0;while(1){e=e+1|0;o=b&o+e;a=d+P(o,12)|0;p=J[a+4>>2];if(!(p&2))break R;if((c|0)!=J[a>>2])continue;break}}if(!(p&1))break R;J[(d+P(o,12)|0)+4>>2]=p&-2;J[z+12>>2]=J[z+12>>2]-2}o=0;break c}O=O+1|0;t=J[z+32>>2];if(!t)break O;r=J[q+108>>2];o=((P(r, -506952113)&1073741823)>>>0)%M[z+24>>2]|0;a=t+P(o,12)|0;p=J[a+4>>2];if(!(p&2))break O;if((r|0)!=J[a>>2]){s=J[z+20>>2];l=0;while(1){l=l+1|0;o=s&o+l;a=t+P(o,12)|0;p=J[a+4>>2];if(!(p&2))break O;if((r|0)!=J[a>>2])continue;break}}if(!(p&1))break O;J[(t+P(o,12)|0)+4>>2]=p&-2;J[z+12>>2]=J[z+12>>2]-2}if(!(K[n+1|0]&32))break M;n=n+H|0;if(F>>>0>n>>>0|n>>>0>E>>>0)break M;a=E-n|0;if(a>>>0<4)break M;l=K[n|0]|K[n+1|0]<<8;o=l<<8|l>>>8;p=o&65535;s=p&1?8:6;l=2;ia:{if(o&8)break ia;l=4;if(p&64)break ia;l=p>>>4&8}H=s+ -l|0;if(a>>>0>=H>>>0)continue;break}}if(!(m|!f)){if(g){b=J[f+28>>2];a=J[g>>2];J[f+28>>2]=a>>>0>>0?b:a}b=J[f+24>>2];a=J[d+4>>2];J[f+24>>2]=a>>>0>>0?b:a;a=J[f+32>>2];J[f+32>>2]=a>>>0>O>>>0?a:O}e=J[d>>2];if((e|0)<0)break d;b=J[d+4>>2];a=b+y|0;c=(a|0)>0?a:0;ja:{if(c>>>0<=e>>>0)break ja;l=e;while(1){l=((l>>>1|0)+l|0)+8|0;if(c>>>0>l>>>0)continue;break}ka:{if(l>>>0<=357913941){a=ic(J[d+8>>2],P(l,12));if(a)break ka;e=J[d>>2];if(l>>>0<=e>>>0)break ja}J[d>>2]=e^-1;break d}J[d>>2]=l;J[d+8>>2]=a}J[d+4>> -2]=c;if(D>>>0<4)break d;Mb(J[d+8>>2]+P(b,12)|0,w,P(y,12));break d}}a=Z()|0;if(J[q+124>>2]){J[q+128>>2]=0;Kb(J[q+132>>2])}gm(q+136|0);ba(a|0);B()}e=J[d>>2];if((e|0)<0)break d;b=J[d+4>>2];a=b+y|0;c=(a|0)>0?a:0;la:{if(c>>>0<=e>>>0)break la;l=e;while(1){l=((l>>>1|0)+l|0)+8|0;if(c>>>0>l>>>0)continue;break}ma:{if(l>>>0<=357913941){a=ic(J[d+8>>2],P(l,12));if(a)break ma;e=J[d>>2];if(l>>>0<=e>>>0)break la}J[d>>2]=e^-1;break d}J[d>>2]=l;J[d+8>>2]=a}J[d+4>>2]=c;if(D>>>0<4)break d;Mb(J[d+8>>2]+P(b,12)|0,w,P(y, -12))}na:{if(!h|m)break na;if(D>>>0<=3){J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;w=776480}u=Q(-N[w>>2]);oa:{if(Q(R(u))>2];if(!a)break na;u=Q(b|0);f=J[d+8>>2];o=f;c=P(a,12);b=c-12|0;a=((b>>>0)/12|0)+1&7;if(a){e=0;while(1){N[o>>2]=N[o>>2]+u;o=o+12|0;e=e+1|0;if((a|0)!=(e|0))continue;break}}if(b>>>0<84)break na;a=c+f|0;while(1){N[o>>2]=N[o>>2]+u;N[o+12>>2]=N[o+12>>2]+u;N[o+24>>2]=N[o+24>>2]+u;N[o+36>>2]=N[o+36>>2]+ -u;N[o+48>>2]=N[o+48>>2]+u;N[o+60>>2]=N[o+60>>2]+u;N[o+72>>2]=N[o+72>>2]+u;N[o+84>>2]=N[o+84>>2]+u;o=o+96|0;if((a|0)!=(o|0))continue;break}}o=J[d>>2]>=0}if(J[q+124>>2]){J[q+128>>2]=0;Kb(J[q+132>>2])}J[q+136>>2]=-57005;b=J[q+144>>2];if(b){J[195395]=0;$(636,b+24|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(Ud(b));J[q+144>>2]=0}a=J[q+168>>2];if(!a)break b;Kb(a)}xb=q+176|0;return o|0}ga(0)|0;_b();B()}function Mq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-784|0;xb=d;e=J[a+72>>2];e=Ab[J[J[e>> -2]+72>>2]](e,2)|0;O[d+776>>3]=O[b>>3];O[d+768>>3]=O[b+8>>3];O[d+760>>3]=O[b+16>>3];O[d+752>>3]=O[b+24>>3];Yd(e,d+776|0,d+768|0);Yd(e,d+760|0,d+752|0);O[d+744>>3]=O[c>>3];O[d+736>>3]=O[c+8>>3];O[d+728>>3]=O[c+16>>3];O[d+720>>3]=O[c+24>>3];Yd(e,d+744|0,d+736|0);Yd(e,d+728|0,d+720|0);b=J[a+56>>2]+1|0;J[a+56>>2]=b;c=d+688|0;ff(c,+(b>>>0),0);J[195395]=0;b=aa(1954,c|0,0,422084)|0;c=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{if((c| -0)!=1){J[d+712>>2]=J[b+8>>2];c=J[b+4>>2];J[d+704>>2]=J[b>>2];J[d+708>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[d+699|0]<0)Kb(J[d+688>>2]);f=O[d+744>>3];J[195395]=0;b=d+180|0;da(1863,b|0,+f,-1);c=J[195395];J[195395]=0;if((c|0)==1)break Qa;J[195395]=0;b=aa(1954,b|0,0,422136)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Pa;J[d+200>>2]=J[b+8>>2];c=J[b+4>>2];J[d+192>>2]=J[b>>2];J[d+196>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+192|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break Oa; -J[d+216>>2]=J[d+200>>2];J[d+200>>2]=0;b=J[d+196>>2];J[d+208>>2]=J[d+192>>2];J[d+212>>2]=b;J[d+192>>2]=0;J[d+196>>2]=0;J[195395]=0;b=d+168|0;da(1863,b|0,+O[d+736>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break Na;J[195395]=0;e=b;b=K[d+179|0];c=b<<24>>24<0;b=aa(1864,d+208|0,(c?J[d+168>>2]:e)|0,(c?J[d+172>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ma;J[d+232>>2]=J[b+8>>2];c=J[b+4>>2];J[d+224>>2]=J[b>>2];J[d+228>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+224|0,422180)| -0;c=J[195395];J[195395]=0;if((c|0)==1)break La;J[d+248>>2]=J[b+8>>2];c=J[b+4>>2];J[d+240>>2]=J[b>>2];J[d+244>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=d+156|0;da(1863,b|0,+O[d+728>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break Ka;J[195395]=0;e=b;b=K[d+167|0];c=b<<24>>24<0;b=aa(1864,d+240|0,(c?J[d+156>>2]:e)|0,(c?J[d+160>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ja;J[d+264>>2]=J[b+8>>2];c=J[b+4>>2];J[d+256>>2]=J[b>>2];J[d+260>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]= -0;$(1811,d+256|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break Ia;J[d+280>>2]=J[d+264>>2];J[d+264>>2]=0;b=J[d+260>>2];J[d+272>>2]=J[d+256>>2];J[d+276>>2]=b;J[d+256>>2]=0;J[d+260>>2]=0;J[195395]=0;b=d+144|0;da(1863,b|0,+O[d+736>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break Ha;J[195395]=0;e=b;b=K[d+155|0];c=b<<24>>24<0;b=aa(1864,d+272|0,(c?J[d+144>>2]:e)|0,(c?J[d+148>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Ga;J[d+296>>2]=J[b+8>>2];c=J[b+4>>2];J[d+288>>2]=J[b>>2];J[d+292>>2]=c;J[b>> -2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+288|0,422196)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Fa;J[d+312>>2]=J[b+8>>2];c=J[b+4>>2];J[d+304>>2]=J[b>>2];J[d+308>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=d+132|0;da(1863,b|0,+O[d+728>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break Ea;J[195395]=0;e=b;b=K[d+143|0];c=b<<24>>24<0;b=aa(1864,d+304|0,(c?J[d+132>>2]:e)|0,(c?J[d+136>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Da;J[d+328>>2]=J[b+8>>2];c=J[b+4>>2];J[d+320>> -2]=J[b>>2];J[d+324>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+320|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break Ca;J[d+344>>2]=J[d+328>>2];J[d+328>>2]=0;b=J[d+324>>2];J[d+336>>2]=J[d+320>>2];J[d+340>>2]=b;J[d+320>>2]=0;J[d+324>>2]=0;J[195395]=0;b=d+120|0;da(1863,b|0,+O[d+720>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break Ba;J[195395]=0;e=b;b=K[d+131|0];c=b<<24>>24<0;b=aa(1864,d+336|0,(c?J[d+120>>2]:e)|0,(c?J[d+124>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Aa;J[d+ -360>>2]=J[b+8>>2];c=J[b+4>>2];J[d+352>>2]=J[b>>2];J[d+356>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+352|0,422196)|0;c=J[195395];J[195395]=0;if((c|0)==1)break za;J[d+376>>2]=J[b+8>>2];c=J[b+4>>2];J[d+368>>2]=J[b>>2];J[d+372>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=d+108|0;da(1863,b|0,+O[d+744>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break ya;J[195395]=0;e=b;b=K[d+119|0];c=b<<24>>24<0;b=aa(1864,d+368|0,(c?J[d+108>>2]:e)|0,(c?J[d+112>>2]:b)|0)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break xa;J[d+392>>2]=J[b+8>>2];c=J[b+4>>2];J[d+384>>2]=J[b>>2];J[d+388>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+384|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break wa;J[d+408>>2]=J[d+392>>2];J[d+392>>2]=0;b=J[d+388>>2];J[d+400>>2]=J[d+384>>2];J[d+404>>2]=b;J[d+384>>2]=0;J[d+388>>2]=0;J[195395]=0;b=d+96|0;da(1863,b|0,+O[d+720>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break va;J[195395]=0;e=b;b=K[d+107|0];c=b<<24>>24<0;b=aa(1864,d+400|0,(c?J[d+96>>2]:e)|0,(c?J[d+ -100>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ua;J[d+424>>2]=J[b+8>>2];c=J[b+4>>2];J[d+416>>2]=J[b>>2];J[d+420>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+416|0,422208)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ta;J[d+440>>2]=J[b+8>>2];c=J[b+4>>2];J[d+432>>2]=J[b>>2];J[d+436>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=d+84|0;da(1863,b|0,+O[d+776>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break sa;J[195395]=0;e=b;b=K[d+95|0];c=b<<24>>24<0;b=aa(1864,d+432| -0,(c?J[d+84>>2]:e)|0,(c?J[d+88>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ra;J[d+456>>2]=J[b+8>>2];c=J[b+4>>2];J[d+448>>2]=J[b>>2];J[d+452>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+448|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break qa;J[d+472>>2]=J[d+456>>2];J[d+456>>2]=0;b=J[d+452>>2];J[d+464>>2]=J[d+448>>2];J[d+468>>2]=b;J[d+448>>2]=0;J[d+452>>2]=0;J[195395]=0;b=d+72|0;da(1863,b|0,+O[d+768>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break pa;J[195395]=0;e=b;b=K[d+ -83|0];c=b<<24>>24<0;b=aa(1864,d+464|0,(c?J[d+72>>2]:e)|0,(c?J[d+76>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break oa;J[d+488>>2]=J[b+8>>2];c=J[b+4>>2];J[d+480>>2]=J[b>>2];J[d+484>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+480|0,422180)|0;c=J[195395];J[195395]=0;if((c|0)==1)break na;J[d+504>>2]=J[b+8>>2];c=J[b+4>>2];J[d+496>>2]=J[b>>2];J[d+500>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=d+60|0;da(1863,b|0,+O[d+760>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break ma; -J[195395]=0;e=b;b=K[d+71|0];c=b<<24>>24<0;b=aa(1864,d+496|0,(c?J[d+60>>2]:e)|0,(c?J[d+64>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break la;J[d+520>>2]=J[b+8>>2];c=J[b+4>>2];J[d+512>>2]=J[b>>2];J[d+516>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+512|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ka;J[d+536>>2]=J[d+520>>2];J[d+520>>2]=0;b=J[d+516>>2];J[d+528>>2]=J[d+512>>2];J[d+532>>2]=b;J[d+512>>2]=0;J[d+516>>2]=0;J[195395]=0;b=d+48|0;da(1863,b|0,+O[d+768>>3],-1);c=J[195395]; -J[195395]=0;if((c|0)==1)break ja;J[195395]=0;e=b;b=K[d+59|0];c=b<<24>>24<0;b=aa(1864,d+528|0,(c?J[d+48>>2]:e)|0,(c?J[d+52>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ia;J[d+552>>2]=J[b+8>>2];c=J[b+4>>2];J[d+544>>2]=J[b>>2];J[d+548>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+544|0,422196)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ha;J[d+568>>2]=J[b+8>>2];c=J[b+4>>2];J[d+560>>2]=J[b>>2];J[d+564>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=d+36|0;da(1863,b|0, -+O[d+760>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break ga;J[195395]=0;e=b;b=K[d+47|0];c=b<<24>>24<0;b=aa(1864,d+560|0,(c?J[d+36>>2]:e)|0,(c?J[d+40>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break fa;J[d+584>>2]=J[b+8>>2];c=J[b+4>>2];J[d+576>>2]=J[b>>2];J[d+580>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+576|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ea;J[d+600>>2]=J[d+584>>2];J[d+584>>2]=0;b=J[d+580>>2];J[d+592>>2]=J[d+576>>2];J[d+596>>2]=b;J[d+576>>2]=0;J[d+580>>2]= -0;J[195395]=0;b=d+24|0;da(1863,b|0,+O[d+752>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break da;J[195395]=0;e=b;b=K[d+35|0];c=b<<24>>24<0;b=aa(1864,d+592|0,(c?J[d+24>>2]:e)|0,(c?J[d+28>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ca;J[d+616>>2]=J[b+8>>2];c=J[b+4>>2];J[d+608>>2]=J[b>>2];J[d+612>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+608|0,422196)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ba;J[d+632>>2]=J[b+8>>2];c=J[b+4>>2];J[d+624>>2]=J[b>>2];J[d+628>>2]=c;J[b>> -2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=d+12|0;da(1863,b|0,+O[d+776>>3],-1);c=J[195395];J[195395]=0;if((c|0)==1)break aa;J[195395]=0;e=b;b=K[d+23|0];c=b<<24>>24<0;b=aa(1864,d+624|0,(c?J[d+12>>2]:e)|0,(c?J[d+16>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break $;J[d+648>>2]=J[b+8>>2];c=J[b+4>>2];J[d+640>>2]=J[b>>2];J[d+644>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+640|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break _;J[d+664>>2]=J[d+648>>2];J[d+648>>2]=0;b=J[d+644>>2];J[d+ -656>>2]=J[d+640>>2];J[d+660>>2]=b;J[d+640>>2]=0;J[d+644>>2]=0;J[195395]=0;da(1863,d|0,+O[d+776>>3],-1);b=J[195395];J[195395]=0;if((b|0)==1)break Z;J[195395]=0;b=K[d+11|0];c=b<<24>>24<0;b=aa(1864,d+656|0,(c?J[d>>2]:d)|0,(c?J[d+4>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Y;J[d+680>>2]=J[b+8>>2];c=J[b+4>>2];J[d+672>>2]=J[b>>2];J[d+676>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+672|0,422224)|0;c=J[195395];J[195395]=0;if((c|0)==1)break X;J[d+696>>2]=J[b+8>>2];c=J[b+4>> -2];J[d+688>>2]=J[b>>2];J[d+692>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[d+683|0]<0)Kb(J[d+672>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+667|0]<0)Kb(J[d+656>>2]);if(H[d+651|0]<0)Kb(J[d+640>>2]);if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+635|0]<0)Kb(J[d+624>>2]);if(H[d+619|0]<0)Kb(J[d+608>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);if(H[d+603|0]<0)Kb(J[d+592>>2]);if(H[d+587|0]<0)Kb(J[d+576>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+571|0]<0)Kb(J[d+560>>2]);if(H[d+555|0]<0)Kb(J[d+544>>2]);if(H[d+59|0]<0)Kb(J[d+48>> -2]);if(H[d+539|0]<0)Kb(J[d+528>>2]);if(H[d+523|0]<0)Kb(J[d+512>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+507|0]<0)Kb(J[d+496>>2]);if(H[d+491|0]<0)Kb(J[d+480>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+475|0]<0)Kb(J[d+464>>2]);if(H[d+459|0]<0)Kb(J[d+448>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+443|0]<0)Kb(J[d+432>>2]);if(H[d+427|0]<0)Kb(J[d+416>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+411|0]<0)Kb(J[d+400>>2]);if(H[d+395|0]<0)Kb(J[d+384>>2]);if(H[d+119|0]<0)Kb(J[d+108>>2]);if(H[d+379|0]<0)Kb(J[d+368>> -2]);if(H[d+363|0]<0)Kb(J[d+352>>2]);if(H[d+131|0]<0)Kb(J[d+120>>2]);if(H[d+347|0]<0)Kb(J[d+336>>2]);if(H[d+331|0]<0)Kb(J[d+320>>2]);if(H[d+143|0]<0)Kb(J[d+132>>2]);if(H[d+315|0]<0)Kb(J[d+304>>2]);if(H[d+299|0]<0)Kb(J[d+288>>2]);if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+283|0]<0)Kb(J[d+272>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+167|0]<0)Kb(J[d+156>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+179|0]<0)Kb(J[d+168>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+203|0]<0)Kb(J[d+ -192>>2]);if(H[d+191|0]<0)Kb(J[d+180>>2]);J[195395]=0;ia(3119,a+84|0,d+704|0,d+688|0,1);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+699|0]<0)Kb(J[d+688>>2]);if(H[d+715|0]<0)Kb(J[d+704>>2]);xb=d+784|0;return}b=Z()|0;if(H[d+699|0]>=0)break a;Kb(J[d+688>>2]);ba(b|0);B()}b=Z()|0;break b}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;break k}b=Z()|0;break l}b=Z()|0;break m}b=Z()|0;break n}b=Z()|0;break o}b=Z()|0;break p}b=Z()| -0;break q}b=Z()|0;break r}b=Z()|0;break s}b=Z()|0;break t}b=Z()|0;break u}b=Z()|0;break v}b=Z()|0;break w}b=Z()|0;break x}b=Z()|0;break y}b=Z()|0;break z}b=Z()|0;break A}b=Z()|0;break B}b=Z()|0;break C}b=Z()|0;break D}b=Z()|0;break E}b=Z()|0;break F}b=Z()|0;break G}b=Z()|0;break H}b=Z()|0;break I}b=Z()|0;break J}b=Z()|0;break K}b=Z()|0;break L}b=Z()|0;break M}b=Z()|0;break N}b=Z()|0;break O}b=Z()|0;break P}b=Z()|0;break Q}b=Z()|0;break R}b=Z()|0;break S}b=Z()|0;break T}b=Z()|0;break U}b=Z()|0;break V}b= -Z()|0;break W}b=Z()|0;if(H[d+683|0]>=0)break W;Kb(J[d+672>>2])}if(H[d+11|0]>=0)break V;Kb(J[d>>2])}if(H[d+667|0]>=0)break U;Kb(J[d+656>>2])}if(H[d+651|0]>=0)break T;Kb(J[d+640>>2])}if(H[d+23|0]>=0)break S;Kb(J[d+12>>2])}if(H[d+635|0]>=0)break R;Kb(J[d+624>>2])}if(H[d+619|0]>=0)break Q;Kb(J[d+608>>2])}if(H[d+35|0]>=0)break P;Kb(J[d+24>>2])}if(H[d+603|0]>=0)break O;Kb(J[d+592>>2])}if(H[d+587|0]>=0)break N;Kb(J[d+576>>2])}if(H[d+47|0]>=0)break M;Kb(J[d+36>>2])}if(H[d+571|0]>=0)break L;Kb(J[d+560>>2])}if(H[d+ -555|0]>=0)break K;Kb(J[d+544>>2])}if(H[d+59|0]>=0)break J;Kb(J[d+48>>2])}if(H[d+539|0]>=0)break I;Kb(J[d+528>>2])}if(H[d+523|0]>=0)break H;Kb(J[d+512>>2])}if(H[d+71|0]>=0)break G;Kb(J[d+60>>2])}if(H[d+507|0]>=0)break F;Kb(J[d+496>>2])}if(H[d+491|0]>=0)break E;Kb(J[d+480>>2])}if(H[d+83|0]>=0)break D;Kb(J[d+72>>2])}if(H[d+475|0]>=0)break C;Kb(J[d+464>>2])}if(H[d+459|0]>=0)break B;Kb(J[d+448>>2])}if(H[d+95|0]>=0)break A;Kb(J[d+84>>2])}if(H[d+443|0]>=0)break z;Kb(J[d+432>>2])}if(H[d+427|0]>=0)break y; -Kb(J[d+416>>2])}if(H[d+107|0]>=0)break x;Kb(J[d+96>>2])}if(H[d+411|0]>=0)break w;Kb(J[d+400>>2])}if(H[d+395|0]>=0)break v;Kb(J[d+384>>2])}if(H[d+119|0]>=0)break u;Kb(J[d+108>>2])}if(H[d+379|0]>=0)break t;Kb(J[d+368>>2])}if(H[d+363|0]>=0)break s;Kb(J[d+352>>2])}if(H[d+131|0]>=0)break r;Kb(J[d+120>>2])}if(H[d+347|0]>=0)break q;Kb(J[d+336>>2])}if(H[d+331|0]>=0)break p;Kb(J[d+320>>2])}if(H[d+143|0]>=0)break o;Kb(J[d+132>>2])}if(H[d+315|0]>=0)break n;Kb(J[d+304>>2])}if(H[d+299|0]>=0)break m;Kb(J[d+288>> -2])}if(H[d+155|0]>=0)break l;Kb(J[d+144>>2])}if(H[d+283|0]>=0)break k;Kb(J[d+272>>2])}if(H[d+267|0]>=0)break j;Kb(J[d+256>>2])}if(H[d+167|0]>=0)break i;Kb(J[d+156>>2])}if(H[d+251|0]>=0)break h;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break g;Kb(J[d+224>>2])}if(H[d+179|0]>=0)break f;Kb(J[d+168>>2])}if(H[d+219|0]>=0)break e;Kb(J[d+208>>2])}if(H[d+203|0]>=0)break d;Kb(J[d+192>>2])}if(H[d+191|0]>=0)break b;Kb(J[d+180>>2]);break b}b=Z()|0;if(H[d+699|0]>=0)break b;Kb(J[d+688>>2])}if(H[d+715|0]>=0)break a;Kb(J[d+ -704>>2])}ba(b|0);B()}function Mma(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0;z=xb-224|0;xb=z;a:{b:{c:{x=J[a+100>>2];A=H[x+36|0]&1;d:{if(!A)break d;while(1){e:{f=J[x+32>>2];if(f)break e;q=0;v=0;d=xb-6816|0;xb=d;w=169776;f:{g:{h:{i:{u=vc(1,92);j:{if(!u)break j;k:{g=J[a+44>>2];if((g|0)<=0)break k;C=L[84888];s=d+4656|0;D=d+4636|0;E=d+1260|0;F=d+5086|0;p=d+5168|0;G=d+5148|0; -n=d+5116|0;N=d+592|0;O=d+380|0;r=d+348|0;Q=d+4576|0;R=d+6766|0;S=d+624|0;i=d+4604|0;while(1){l:{m:{n:{o:{if((g|0)>0){l=J[(q<<2)+132512>>2];j=J[a+48>>2];g=g-1|0;e=0;while(1){k=e+g>>>1|0;h=j+P(k,36)|0;f=J[h>>2];p:{if(f>>>0>l>>>0){g=k-1|0;break p}if(f>>>0>=l>>>0)break o;e=k+1|0}if((e|0)<=(g|0))continue;break}}J[(u+(v<<2)|0)+8>>2]=0;break n}y=u+(v<<2)|0;e=J[h+28>>2];J[y+8>>2]=e;if(!e)break n;q:{r:{s:{t:{u:{v:{w:{x:{if(q>>>0<=3){g=1569;m=0;while(1){e=L[((g<<3)+(q<<1)|0)+119992>>1];y:{if(!e)break y;if(!Ae(b, -g,d+416|0))break y;if(!Ae(b,e,d+4576|0))break y;h=J[d+416>>2];f=J[d+4576>>2];if((h|0)==(f|0)|(f|h)>>>0>65535)break y;e=m<<1;I[e+(d+6096|0)>>1]=f<<8|(f&65280)>>>8;I[e+(d+5088|0)>>1]=h<<8|(h&65280)>>>8;m=m+1|0}g=g+1|0;if((g|0)!=1748)continue;break}e=1;f=0;z:switch(m|0){default:while(1){j=e<<1;t=L[j+(d+5088|0)>>1];f=(t<<8|t>>>8)&65535;g=e;A:{while(1){h=L[(g<<1)+F>>1];if(f>>>0>((h<<8|h>>>8)&65535)>>>0|(h|0)==(t|0))break A;g=g-1|0;if(g)continue;break}g=0}if((e|0)!=(g|0)){o=g<<1;l=o+2|0;f=d+5088|0;k=f+ -o|0;h=e-g<<1;qc(f+l|0,k,h);I[k>>1]=t;f=d+6096|0;g=L[f+j>>1];j=f+l|0;f=f+o|0;qc(j,f,h);I[f>>1]=g}e=e+1|0;if((m|0)!=(e|0))continue;break}break;case 0:break q;case 1:break z}J[d+4588>>2]=E;J[d+4576>>2]=d+416;J[i+24>>2]=0;J[i+28>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0;J[i>>2]=0;J[i+4>>2]=0;J[d+4652>>2]=0;J[d+4636>>2]=1;J[d+4640>>2]=1;J[d+4644>>2]=0;J[d+4648>>2]=1;J[s+8>>2]=0;J[s+12>>2]=0;J[s>>2]=0;J[s+4>>2]=0;J[195395]=0;ea(898,d+4576|0);e=J[195395];J[195395]=0;if((e|0)==1){a=Z()|0;gm(D); -if(J[d+4624>>2]){J[d+4628>>2]=0;Kb(J[d+4632>>2])}J[d+4632>>2]=0;J[d+4624>>2]=0;J[d+4628>>2]=0;So(i);break a}J[195395]=0;f=d+4576|0;h=_(899,f|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1){J[195395]=0;f=Ts(h,f,1,8,1);e=J[195395];J[195395]=0;if((e|0)==1)break i;B:{if(!f){e=1;break B}J[195395]=0;g=d+4576|0;f=_(901,g|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break i;J[d+328>>2]=0;J[d+336>>2]=m;J[d+332>>2]=d+6096;e=J[d+332>>2];J[d+8>>2]=J[d+328>>2];J[d+12>>2]=e;J[d+340>>2]=0;e=J[d+340>>2];J[d+16>>2]=J[d+336>> -2];J[d+20>>2]=e;J[d+324>>2]=m;J[195395]=0;J[d+320>>2]=d+5088;e=J[d+324>>2];J[d>>2]=J[d+320>>2];J[d+4>>2]=e;f=aa(902,f|0,g|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break i;if(f){C:{if(!(K[h+4|0]|K[h+5|0]<<8)){I[388240]=C;h=776480;break C}h=h+6|0}J[195395]=0;g=d+4576|0;f=ca(903,g|0,1)|0;e=J[195395];J[195395]=0;if((e|0)==1)break i;e=0;J[195395]=0;ma(904,g|0,h|0,f|0,0,0);f=J[195395];J[195395]=0;if((f|0)!=1)break B;break i}J[195395]=0;kj(d+4576|0);f=J[195395];J[195395]=0;e=1;if((f|0)==1)break i}g= -J[d+4600>>2];if(!g&J[d+4624>>2]<0)break x;if(!g){if(!(H[d+4648|0]&1))break x;f=0;j=0;D:{if(!J[d+4620>>2])break D;j=0;if(M[d+4628>>2]<2)break D;J[195395]=0;h=d+4576|0;ca(903,h|0,0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break i;J[195395]=0;Lk(h);g=J[195395];J[195395]=0;if((g|0)==1)break i;j=J[d+4600>>2]}if(j|e)break r;j=J[d+4588>>2];o=J[d+4584>>2];h=j-o|0;g=J[d+4580>>2];l=J[d+4576>>2];k=g-l|0;e=h+k|0;if(!e)break r;e=Qb(e);if(!e)break r;if((g|0)!=(l|0))Mb(e,l,k);if((j|0)!=(o|0))Mb(e+k|0,o,h);f=e;break r}f= -0;if(!(g&2)|!J[d+4620>>2])break r;J[d+4600>>2]=g|1;break r}break i}E:switch(q-4|0){default:J[y+36>>2]=0;q=q+1|0;break m;case 0:if(!Ae(b,65247,d+416|0)){f=0;break q}g=0;J[d+284>>2]=0;e=L[d+416>>1];I[d+272>>1]=e<<8|e>>>8;e=0;F:{if(!Ae(b,64904,d+416|0))break F;f=d+5088|0;e=0;if(!Qf(b,65252,f))break F;e=L[d+5088>>1];I[d+4576>>1]=e<<8|e>>>8;e=1;if(!Qf(b,65188,f))break F;e=L[d+5088>>1];I[d+4578>>1]=e<<8|e>>>8;J[d+6096>>2]=3;g=1;J[d+284>>2]=1;e=L[d+416>>1];I[d+296>>1]=e<<8|e>>>8;e=2}if(!Ae(b,61953,d+416| -0))break s;h=d+5088|0;if(!Qf(b,65248,h))break s;f=L[d+5088>>1];I[(d+4576|0)+(e<<1)>>1]=f<<8|f>>>8;f=e+1|0;if(Qf(b,65258,h))break w;e=f;break s;case 1:m=0;g=0;while(1){if(Ae(b,L[P(g,58)+133984>>1],d+416|0)){e=L[d+416>>1];I[(d+6768|0)+(m<<1)>>1]=e<<8|e>>>8;e=m<<2;J[e+(d+6608|0)>>2]=0;J[e+(d+6688|0)>>2]=g;m=m+1|0}g=g+1|0;if((g|0)!=18)continue;break}break t;case 2:break E}if(!Ae(b,1617,d+416|0)){f=0;break q}g=0;J[d+284>>2]=0;e=L[d+416>>1];I[d+272>>1]=e<<8|e>>>8;G:{if(!Ae(b,64606,d+416|0))break G;if(!Qf(b, -1612,d+5088|0))break G;e=L[d+5088>>1];I[d+296>>1]=e<<8|e>>>8;J[d+6096>>2]=2;g=1;J[d+284>>2]=1;e=L[d+416>>1];I[d+308>>1]=e<<8|e>>>8}H:{if(!Ae(b,64608,d+416|0))break H;if(!Qf(b,1614,d+5088|0))break H;f=g<<1;e=L[d+5088>>1];I[f+(d+296|0)>>1]=e<<8|e>>>8;J[(d+6096|g<<2)>>2]=2;e=L[d+416>>1];I[f+(d+308|0)>>1]=e<<8|e>>>8;g=g+1|0;J[d+284>>2]=g}I:{if(!Ae(b,64609,d+416|0))break I;if(!Qf(b,1615,d+5088|0))break I;f=g<<1;e=L[d+5088>>1];I[f+(d+296|0)>>1]=e<<8|e>>>8;J[(d+6096|g<<2)>>2]=2;e=L[d+416>>1];I[f+(d+308| -0)>>1]=e<<8|e>>>8;g=g+1|0;J[d+284>>2]=g}J:{if(!Ae(b,64610,d+416|0))break J;if(!Qf(b,1616,d+5088|0))break J;f=g<<1;e=L[d+5088>>1];I[f+(d+296|0)>>1]=e<<8|e>>>8;J[(d+6096|0)+(g<<2)>>2]=2;e=L[d+416>>1];I[f+(d+308|0)>>1]=e<<8|e>>>8;g=g+1|0;J[d+284>>2]=g}if(!Ae(b,62190,d+416|0))break v;if(!Qf(b,1611,d+5088|0))break v;f=g<<1;e=L[d+5088>>1];I[f+(d+296|0)>>1]=e<<8|e>>>8;J[(d+6096|0)+(g<<2)>>2]=2;e=L[d+416>>1];I[f+(d+308|0)>>1]=e<<8|e>>>8;g=g+1|0;J[d+284>>2]=g;break u}J[d+4600>>2]=1;f=0;break r}j=(d+4576|0)+ -(f<<1)|0;f=L[d+5088>>1];I[j>>1]=f<<8|f>>>8;J[(d+6096|0)+(g<<2)>>2]=3;f=L[d+416>>1];I[(d+296|0)+(g<<1)>>1]=f<<8|f>>>8;g=g+1|0;J[d+284>>2]=g;e=e+2|0;break s}if(g)break u;f=0;break q}J[d+5100>>2]=S;J[d+5088>>2]=d+416;J[n+24>>2]=0;J[n+28>>2]=0;J[n+16>>2]=0;J[n+20>>2]=0;J[n+8>>2]=0;J[n+12>>2]=0;J[n>>2]=0;J[n+4>>2]=0;J[d+5164>>2]=0;J[d+5148>>2]=1;J[d+5152>>2]=1;J[d+5156>>2]=0;J[d+5160>>2]=1;J[p+8>>2]=0;J[p+12>>2]=0;J[p>>2]=0;J[p+4>>2]=0;J[195395]=0;m=d+5088|0;j=m;ea(898,j|0);e=J[195395];J[195395]=0;if((e| -0)==1)break h;J[195395]=0;h=_(899,j|0)|0;e=J[195395];J[195395]=0;K:{L:{if((e|0)!=1)M:{J[d+6696>>2]=0;J[d+6616>>2]=0;f=d+6776|0;J[f>>2]=0;J[d+256>>2]=0;J[195395]=0;J[d+240>>2]=0;J[d+4580>>2]=1;J[d+4584>>2]=0;J[d+324>>2]=1;J[d+328>>2]=0;J[d+6692>>2]=g;J[d+6612>>2]=g;J[d+6772>>2]=g;J[d+4576>>2]=d+272;e=J[d+4580>>2];J[d+248>>2]=J[d+4576>>2];J[d+252>>2]=e;J[d+320>>2]=d+284;e=J[d+324>>2];J[d+232>>2]=J[d+320>>2];J[d+236>>2]=e;J[d+6688>>2]=d+308;J[d+6608>>2]=d+6096;J[d+6768>>2]=d+296;J[d+224>>2]=0;e=J[d+ -6692>>2];J[d+216>>2]=J[d+6688>>2];J[d+220>>2]=e;J[d+208>>2]=0;e=J[d+6612>>2];J[d+200>>2]=J[d+6608>>2];J[d+204>>2]=e;J[d+192>>2]=J[f>>2];e=J[d+6772>>2];J[d+184>>2]=J[d+6768>>2];J[d+188>>2]=e;h=Ba(907,h|0,j|0,0,d+248|0,d+232|0,d+216|0,d+200|0,d+184|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break M;e=J[d+5112>>2];if(!e&J[d+5136>>2]<0)break L;if(!e){if(!(H[d+5160|0]&1))break L;g=1;if(!(!J[d+5132>>2]|M[d+5140>>2]<2)){J[195395]=0;f=j;ca(903,f|0,0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break M;J[195395]= -0;Lk(f);e=J[195395];J[195395]=0;if((e|0)==1)break M;g=!J[d+5112>>2]}f=0;if((g&h)!=1)break K;j=J[d+5100>>2];o=J[d+5096>>2];h=j-o|0;g=J[d+5092>>2];l=J[d+5088>>2];k=g-l|0;e=h+k|0;if(!e)break K;e=Qb(e);if(!e)break K;if((g|0)!=(l|0))Mb(e,l,k);if((j|0)!=(o|0))Mb(e+k|0,o,h);f=e;break K}f=0;if(!(e&2)|!J[d+5132>>2])break K;J[d+5112>>2]=e|1;break K}break g}J[d+5112>>2]=1;f=0}ui(d+5088|0);break q}e=1;if(m>>>0>=2)while(1){l=L[(d+6768|0)+(e<<1)>>1];f=(l<<8|l>>>8)&65535;g=e;N:{while(1){h=L[(g<<1)+R>>1];if(f>>> -0>((h<<8|h>>>8)&65535)>>>0|(h|0)==(l|0))break N;g=g-1|0;if(g)continue;break}g=0}if((e|0)!=(g|0)){h=d+6768|0;k=h+(g<<1)|0;f=g+1|0;j=e-g|0;qc(h+(f<<1)|0,k,j<<1);I[k>>1]=l;k=d+6688|0;h=J[k+(e<<2)>>2];t=k+(f<<2)|0;f=k+(g<<2)|0;qc(t,f,j<<2);J[f>>2]=h}e=e+1|0;if((m|0)!=(e|0))continue;break}f=0;e=0;l=0;if(!m)break q;while(1){g=l<<2;k=g+(d+6608|0)|0;j=J[g+(d+6688|0)>>2];g=0;while(1){h=P(j,58)+(g<<2)|0;O:{if(!Ae(b,L[h+133988>>1],d+416|0))break O;h=L[h+133986>>1];if(!h)break O;if(!Qf(b,h,d+320|0))break O;h= -L[d+320>>1];I[(d+4576|0)+(e<<1)>>1]=h<<8|h>>>8;J[(d+5088|0)+(f<<2)>>2]=2;h=L[d+416>>1];I[(d+6096|0)+(f<<1)>>1]=h<<8|h>>>8;J[k>>2]=J[k>>2]+1;f=f+1|0;e=e+1|0}g=g+1|0;if((g|0)!=14)continue;break}l=l+1|0;if((l|0)!=(m|0))continue;break}if(!f){f=0;break q}J[d+332>>2]=Q;J[d+320>>2]=d+416;J[r+24>>2]=0;J[r+28>>2]=0;J[r+16>>2]=0;J[r+20>>2]=0;J[r+8>>2]=0;J[r+12>>2]=0;J[r>>2]=0;J[r+4>>2]=0;J[d+396>>2]=0;J[d+380>>2]=1;J[d+384>>2]=1;J[d+388>>2]=0;J[d+392>>2]=1;J[d+408>>2]=0;J[d+412>>2]=0;J[d+400>>2]=0;J[d+404>> -2]=0;J[195395]=0;ea(898,d+320|0);g=J[195395];J[195395]=0;if((g|0)==1){a=Z()|0;gm(O);if(J[d+368>>2]){J[d+372>>2]=0;Kb(J[d+376>>2])}J[d+376>>2]=0;J[d+368>>2]=0;J[d+372>>2]=0;So(r);break a}J[195395]=0;t=d+320|0;j=t;h=_(899,j|0)|0;g=J[195395];J[195395]=0;P:{Q:{if((g|0)!=1)R:{J[d+316>>2]=0;J[d+304>>2]=0;J[d+292>>2]=0;J[d+280>>2]=0;J[d+268>>2]=0;J[d+176>>2]=0;J[d+312>>2]=m;J[d+300>>2]=m;J[d+288>>2]=f;J[d+276>>2]=f;J[d+264>>2]=e;J[195395]=0;J[d+308>>2]=d+6768;e=J[d+312>>2];J[d+168>>2]=J[d+308>>2];J[d+172>> -2]=e;J[d+296>>2]=d+6608;J[d+284>>2]=d+6096;J[d+272>>2]=d+5088;J[d+260>>2]=d+4576;J[d+160>>2]=0;J[d+144>>2]=0;J[d+128>>2]=0;e=J[d+300>>2];J[d+152>>2]=J[d+296>>2];J[d+156>>2]=e;e=J[d+288>>2];J[d+136>>2]=J[d+284>>2];J[d+140>>2]=e;e=J[d+276>>2];J[d+120>>2]=J[d+272>>2];J[d+124>>2]=e;J[d+112>>2]=J[d+268>>2];e=J[d+264>>2];J[d+104>>2]=J[d+260>>2];J[d+108>>2]=e;h=Ba(907,h|0,j|0,8,d+168|0,d+152|0,d+136|0,d+120|0,d+104|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break R;e=J[d+344>>2];if(!e&J[d+368>>2]<0)break Q; -if(!e){if(!(H[d+392|0]&1))break Q;g=1;if(!(!J[d+364>>2]|M[d+372>>2]<2)){J[195395]=0;f=j;ca(903,f|0,0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break R;J[195395]=0;Lk(f);e=J[195395];J[195395]=0;if((e|0)==1)break R;g=!J[d+344>>2]}f=0;if((g&h)!=1)break P;j=J[d+332>>2];o=J[d+328>>2];h=j-o|0;g=J[d+324>>2];l=J[d+320>>2];k=g-l|0;e=h+k|0;if(!e)break P;e=Qb(e);if(!e)break P;if((g|0)!=(l|0))Mb(e,l,k);if((j|0)!=(o|0))Mb(e+k|0,o,h);f=e;break P}f=0;if(!(e&2)|!J[d+364>>2])break P;J[d+344>>2]=e|1;break P}a=Z()|0;ui(d+ -320|0);break a}J[d+344>>2]=1;f=0}ui(d+320|0);break q}S:{T:{if(!Ae(b,61969,d+416|0))break T;h=d+5088|0;if(!Qf(b,65252,h))break T;f=L[d+5088>>1];I[(d+4576|0)+(e<<1)>>1]=f<<8|f>>>8;f=e+1|0;if(!Qf(b,65184,h)){e=f;break T}j=(d+4576|0)+(f<<1)|0;f=L[d+5088>>1];I[j>>1]=f<<8|f>>>8;J[(d+6096|0)+(g<<2)>>2]=3;f=L[d+416>>1];I[(d+296|0)+(g<<1)>>1]=f<<8|f>>>8;g=g+1|0;J[d+284>>2]=g;e=e+2|0;break S}if(g)break S;f=0;break q}J[d+5100>>2]=N;J[d+5088>>2]=d+416;J[n+24>>2]=0;J[n+28>>2]=0;J[n+16>>2]=0;J[n+20>>2]=0;J[n+8>> -2]=0;J[n+12>>2]=0;J[n>>2]=0;J[n+4>>2]=0;J[d+5164>>2]=0;J[d+5148>>2]=1;J[d+5152>>2]=1;J[d+5156>>2]=0;J[d+5160>>2]=1;J[p+8>>2]=0;J[p+12>>2]=0;J[p>>2]=0;J[p+4>>2]=0;J[195395]=0;m=d+5088|0;j=m;ea(898,j|0);f=J[195395];J[195395]=0;if((f|0)==1)break h;J[195395]=0;h=_(899,j|0)|0;f=J[195395];J[195395]=0;U:{V:{if((f|0)!=1)W:{J[d+6616>>2]=0;J[d+6776>>2]=0;J[d+316>>2]=0;J[d+96>>2]=0;J[195395]=0;J[d+80>>2]=0;J[d+324>>2]=1;J[d+328>>2]=0;J[d+6692>>2]=1;J[d+6696>>2]=0;J[d+6612>>2]=g;J[d+6772>>2]=g;J[d+312>>2]=e; -J[d+320>>2]=d+272;e=J[d+324>>2];J[d+88>>2]=J[d+320>>2];J[d+92>>2]=e;J[d+6688>>2]=d+284;e=J[d+6692>>2];J[d+72>>2]=J[d+6688>>2];J[d+76>>2]=e;J[d+6608>>2]=d+296;J[d+6768>>2]=d+6096;J[d+308>>2]=d+4576;J[d- -64>>2]=0;e=J[d+6612>>2];J[d+56>>2]=J[d+6608>>2];J[d+60>>2]=e;J[d+48>>2]=0;e=J[d+6772>>2];J[d+40>>2]=J[d+6768>>2];J[d+44>>2]=e;J[d+32>>2]=J[d+316>>2];e=J[d+312>>2];J[d+24>>2]=J[d+308>>2];J[d+28>>2]=e;h=Ba(907,h|0,j|0,8,d+88|0,d+72|0,d+56|0,d+40|0,d+24|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break W; -e=J[d+5112>>2];if(!e&J[d+5136>>2]<0)break V;if(!e){if(!(H[d+5160|0]&1))break V;g=1;if(!(!J[d+5132>>2]|M[d+5140>>2]<2)){J[195395]=0;f=j;ca(903,f|0,0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break W;J[195395]=0;Lk(f);e=J[195395];J[195395]=0;if((e|0)==1)break W;g=!J[d+5112>>2]}f=0;if((g&h)!=1)break U;j=J[d+5100>>2];o=J[d+5096>>2];h=j-o|0;g=J[d+5092>>2];l=J[d+5088>>2];k=g-l|0;e=h+k|0;if(!e)break U;e=Qb(e);if(!e)break U;if((g|0)!=(l|0))Mb(e,l,k);if((j|0)!=(o|0))Mb(e+k|0,o,h);f=e;break U}f=0;if(!(e&2)|!J[d+ -5132>>2])break U;J[d+5112>>2]=e|1;break U}break g}J[d+5112>>2]=1;f=0}ui(d+5088|0);break q}ui(d+4576|0)}J[y+36>>2]=f;if(!f)break n;T=y- -64|0,U=Eo(f),J[T>>2]=U;v=v+1|0}q=q+1|0;if((q|0)==7)break l}g=J[a+44>>2];continue}break}H[u+4|0]=1;J[u>>2]=v;if(!v)break k;w=u;break j}Kb(u)}xb=d+6816|0;f=w;break f}a=Z()|0;ui(d+4576|0);break a}a=Z()|0;gm(G);if(J[d+5136>>2]){J[d+5140>>2]=0;Kb(J[d+5144>>2])}J[d+5144>>2]=0;J[d+5136>>2]=0;J[d+5140>>2]=0;So(n);break a}a=Z()|0;ui(d+5088|0);ba(a|0);B()}e=J[x+32>>2];J[x+ -32>>2]=e?e:f;if(!e)break e;g=0;if(!(!f|!J[f>>2])){while(1){e=(g<<2)+f|0;X:{if(!J[e+36>>2])break X;Kb(J[e- -64>>2]);if(!K[f+4|0])break X;Kb(J[e+36>>2])}g=g+1|0;if(g>>>0>2])continue;break}Kb(f)}continue}break}i=Cf(z+8|0,0,b,c,169776);c=J[f>>2];if(c){b=0;while(1){s=(b<<2)+f|0;w=J[s+36>>2];Y:{if(!w)break Y;g=J[s+8>>2];J[i+208>>2]=-1;J[i+212>>2]=0;J[i+176>>2]=g;J[i+8>>2]=i;a=J[J[i+88>>2]+68>>2];J[i+36>>2]=a;J[i+32>>2]=0;J[i+24>>2]=0;J[i+28>>2]=0;p=J[i+184>>2];J[i+12>>2]=p;n=J[i+76>>2];e=(n|0)==1; -H[i+20|0]=e;H[i+21|0]=K[i+194|0];J[i+16>>2]=g;J[i+72>>2]=a;H[i+23|0]=0;a=!n&K[i+195|0]!=0;H[i+22|0]=a;J[i+68>>2]=0;J[i+44>>2]=i;J[i+48>>2]=p;J[i+60>>2]=0;J[i+64>>2]=0;H[i+57|0]=1;J[i+52>>2]=-1;H[i+59|0]=0;H[i+58|0]=a&(n|0)!=1;H[i+56|0]=e?1:K[i+193|0];a=J[s- -64>>2];if(!a)break Y;J[195395]=0;fa(897,i|0,w|0,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;c=J[f>>2]}b=b+1|0;if(c>>>0>b>>>0)continue;break}}Kb(J[i+156>>2]);a=J[i+128>>2];if(!a)break d;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a| -0)==1)break b}xb=z+224|0;return A|0}a=Z()|0;wi(i);break a}ga(0)|0;_b();B()}ba(a|0);B()}function ufa(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;c=J[a+20>>2];if((c|0)!=100){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}if(b)Qr(a,0);Ab[J[J[a>>2]+16>>2]](a);Ab[J[J[a+24>>2]+8>>2]](a);m=xb-2608|0;xb=m;k=Ab[J[J[a+4>>2]>>2]](a,1,36)|0;J[a+388>>2]=k;J[k+16>>2]=0;J[k+8>>2]=1464;J[k+4>>2]=1465;J[k>>2]=1466;if(!(M[a+32>>2]<16777216&M[a+28>> -2]<=16777215)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;Ab[J[J[a>>2]>>2]](a)}c=J[a+56>>2];b=J[a+376>>2];d=P(b,J[a+60>>2]);a:{if(c>>>0>=d>>>0){J[a+276>>2]=1;J[a+280>>2]=1;J[a+64>>2]=P(b,J[a+28>>2]);J[a+68>>2]=P(b,J[a+32>>2]);break a}b:{if(d>>>0<=c<<1>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+1|0)/2;b=(P(J[a+376>>2],J[a+32>>2])+1|0)/2|0;J[a+276>>2]=2;J[a+280>>2]=2;break b}if(d>>>0<=P(c,3)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+2|0)/3;b=(P(J[a+376>>2],J[a+32>>2])+2|0)/3|0;J[a+276>>2]=3;J[a+280>>2]=3;break b}if(d>>> -0<=c<<2>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+3|0)/4;b=(P(J[a+376>>2],J[a+32>>2])+3|0)/4|0;J[a+276>>2]=4;J[a+280>>2]=4;break b}if(d>>>0<=P(c,5)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+4|0)/5;b=(P(J[a+376>>2],J[a+32>>2])+4|0)/5|0;J[a+276>>2]=5;J[a+280>>2]=5;break b}if(d>>>0<=P(c,6)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+5|0)/6;b=(P(J[a+376>>2],J[a+32>>2])+5|0)/6|0;J[a+276>>2]=6;J[a+280>>2]=6;break b}if(d>>>0<=P(c,7)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+6|0)/7;b=(P(J[a+376>>2],J[a+32>>2])+6|0)/7|0;J[a+276>>2]=7;J[a+280>> -2]=7;break b}if(d>>>0<=c<<3>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+7|0)/8;b=(P(J[a+376>>2],J[a+32>>2])+7|0)/8|0;J[a+276>>2]=8;J[a+280>>2]=8;break b}if(d>>>0<=P(c,9)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+8|0)/9;b=(P(J[a+376>>2],J[a+32>>2])+8|0)/9|0;J[a+276>>2]=9;J[a+280>>2]=9;break b}if(d>>>0<=P(c,10)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+9|0)/10;b=(P(J[a+376>>2],J[a+32>>2])+9|0)/10|0;J[a+276>>2]=10;J[a+280>>2]=10;break b}if(d>>>0<=P(c,11)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+10|0)/11;b=(P(J[a+376>>2],J[a+32>>2])+10| -0)/11|0;J[a+276>>2]=11;J[a+280>>2]=11;break b}if(d>>>0<=P(c,12)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+11|0)/12;b=(P(J[a+376>>2],J[a+32>>2])+11|0)/12|0;J[a+276>>2]=12;J[a+280>>2]=12;break b}if(d>>>0<=P(c,13)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+12|0)/13;b=(P(J[a+376>>2],J[a+32>>2])+12|0)/13|0;J[a+276>>2]=13;J[a+280>>2]=13;break b}if(d>>>0<=P(c,14)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+13|0)/14;b=(P(J[a+376>>2],J[a+32>>2])+13|0)/14|0;J[a+276>>2]=14;J[a+280>>2]=14;break b}b=P(b,J[a+28>>2]);if(d>>>0<=P(c,15)>>>0){J[a+ -64>>2]=(b+14|0)/15;b=(P(J[a+376>>2],J[a+32>>2])+14|0)/15|0;J[a+276>>2]=15;J[a+280>>2]=15;break b}J[a+64>>2]=(b+15|0)/16;b=(P(J[a+376>>2],J[a+32>>2])+15|0)/16|0;J[a+276>>2]=16;J[a+280>>2]=16;J[a+68>>2]=b;break a}J[a+68>>2]=b}b=J[a+376>>2];if(b-17>>>0<=4294967279){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=7;J[J[a>>2]+28>>2]=J[a+376>>2];Ab[J[J[a>>2]>>2]](a);b=J[a+376>>2]}c=b-2|0;if(c>>>0<=5)d=J[(c<<2)+251236>>2];else d=247088;J[a+380>>2]=d;J[a+384>>2]=(b|0)>=8?63:P(b,b)-1|0;b=J[a+68>>2];c:{if(!(!b|!J[a+64>> -2]|J[a+76>>2]<=0))if(J[a+36>>2]>0)break c;b=J[a>>2];J[b+20>>2]=33;Ab[J[b>>2]](a);b=J[a+68>>2]}if(!(J[a+64>>2]<65501&(b|0)<=65500)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;Ab[J[J[a>>2]>>2]](a)}b=J[a+72>>2];if((b|0)!=8){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=16;Ab[J[J[a>>2]>>2]](a)}f=J[a+76>>2];if((f|0)>=11){b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=27;J[J[a>>2]+28>>2]=10;Ab[J[J[a>>2]>>2]](a);f=J[a+76>>2]}J[a+268>>2]=1;J[a+272>>2]=1;e=1;d:{if((f|0)<=0)break d;b=J[a+84>>2];g=1;while(1){c=J[b+8>>2];e:{if(c-5>>>0>= -4294967292){d=J[b+12>>2];if(d-5>>>0>4294967291)break e}c=J[a>>2];J[c+20>>2]=19;Ab[J[c>>2]](a);f=J[a+76>>2];d=J[b+12>>2];e=J[a+272>>2];c=J[b+8>>2];g=J[a+268>>2]}e=(d|0)<(e|0)?e:d;J[a+272>>2]=e;g=(c|0)<(g|0)?g:c;J[a+268>>2]=g;b=b+88|0;h=h+1|0;if((h|0)<(f|0))continue;break}if((f|0)<=0)break d;b=J[a+84>>2];g=0;while(1){J[b+4>>2]=g;d=J[a+276>>2];h=J[a+224>>2]?8:4;f:{if((d|0)>(h|0)){c=d;break f}f=J[a+268>>2];j=J[b+8>>2];if((f|0)%(j<<1)|0){c=d;break f}e=2;while(1){c=P(d,e);if((h|0)<(c|0))break f;e=e<<1; -if(!((f|0)%(P(j,e)|0)|0))continue;break}}J[b+36>>2]=c;f=J[a+280>>2];g:{if((f|0)>(h|0)){d=f;break g}j=J[a+272>>2];n=J[b+12>>2];if((j|0)%(n<<1)|0){d=f;break g}e=2;while(1){d=P(e,f);if((h|0)<(d|0))break g;e=e<<1;if(!((j|0)%(P(n,e)|0)|0))continue;break}}J[b+40>>2]=d;f=d<<1;h:{if((f|0)<(c|0)){J[b+36>>2]=f;break h}c=c<<1;if((c|0)>=(d|0))break h;J[b+40>>2]=c}c=P(J[a+376>>2],J[a+268>>2]);J[b+28>>2]=((c+P(J[b+8>>2],J[a+64>>2])|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+272>>2]);J[b+32>>2]=((c+P(J[b+12>>2],J[a+68>> -2])|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+268>>2]);J[b+44>>2]=((c+P(J[b+36>>2],P(J[b+8>>2],J[a+64>>2]))|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+272>>2]);c=((c+P(J[b+40>>2],P(J[b+12>>2],J[a+68>>2]))|0)-1|0)/(c|0)|0;J[b+52>>2]=1;J[b+48>>2]=c;b=b+88|0;g=g+1|0;if((g|0)>2])continue;break}e=J[a+272>>2]}b=P(J[a+376>>2],e);J[a+284>>2]=((b+J[a+68>>2]|0)-1|0)/(b|0);g=J[a+204>>2];i:{j:{if(g){if(J[a+200>>2]<=0){b=J[a>>2];J[b+20>>2]=20;J[b+24>>2]=0;Ab[J[J[a>>2]>>2]](a);g=J[a+204>>2]}k:{if(!(!J[g+20>>2]&J[g+24>> -2]==63)){b=1;J[a+264>>2]=1;e=J[a+76>>2];if((e|0)<=0)break k;Nb(m,255,e<<8);break k}b=0;J[a+264>>2]=0;e=J[a+76>>2];if((e|0)<=0)break k;Nb(m+2560|0,0,e<<2)}if(J[a+200>>2]>0){b=1;while(1){d=b;l:{m:{n=J[g>>2];if(n-5>>>0>4294967291)break m;b=J[a>>2];J[b+24>>2]=n;J[b+20>>2]=27;J[J[a>>2]+28>>2]=4;Ab[J[J[a>>2]>>2]](a);if((n|0)>0)break m;e=0;break l}b=J[g+4>>2];if(!((b|0)>=0&(b|0)>2])){b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=20;Ab[J[J[a>>2]>>2]](a)}b=1;e=1;if((n|0)==1)break l;while(1){f=(b<<2)+g|0;c=J[f+ -4>>2];if(!((c|0)>=0&(c|0)>2])){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=20;Ab[J[J[a>>2]>>2]](a)}if((c|0)<=J[f>>2]){c=J[a>>2];J[c+24>>2]=d;J[c+20>>2]=20;Ab[J[J[a>>2]>>2]](a)}e=1;b=b+1|0;if((n|0)!=(b|0))continue;break}}h=J[g+32>>2];j=J[g+24>>2];f=J[g+20>>2];q=J[g+28>>2];n:{if(J[a+264>>2]){o:{p:{if((f|0)>(j|0)|f>>>0>63|((j|0)>63|q>>>0>10))break p;if((h|0)<0)break p;if((h|0)<11)break o}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}q:{r:{if(!f){if(j)break r;break q}if((n|0)==1)break q}b=J[a>> -2];J[b+24>>2]=d;J[b+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}if(!e)break n;c=f+1|0;p=(j-f|0)+1|0;s=p&1;t=(h|0)==(q-1|0);o=0;while(1){e=m+(J[((o<<2)+g|0)+4>>2]<<8)|0;if(!(!f|J[e>>2]>=0)){b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}s:{if((f|0)>(j|0))break s;b=f;if(!q){if(!t){if(s){b=e+(b<<2)|0;if(J[b>>2]>=0){i=J[a>>2];J[i+24>>2]=d;J[i+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}J[b>>2]=h;b=c}if((p|0)==1)break s;while(1){i=e+(b<<2)|0;if(J[i>>2]>=0){l=J[a>>2];J[l+24>>2]=d;J[l+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}J[i>> -2]=h;i=b+1|0;l=e+(i<<2)|0;if(J[l>>2]>=0){r=J[a>>2];J[r+24>>2]=d;J[r+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}J[l>>2]=h;b=b+2|0;if((j|0)!=(i|0))continue;break}break s}if(s){b=e+(b<<2)|0;if(J[b>>2]>0){i=J[a>>2];J[i+24>>2]=d;J[i+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}J[b>>2]=h;b=c}if((p|0)==1)break s;while(1){i=e+(b<<2)|0;if(J[i>>2]>0){l=J[a>>2];J[l+24>>2]=d;J[l+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}J[i>>2]=h;i=b+1|0;l=e+(i<<2)|0;if(J[l>>2]>0){r=J[a>>2];J[r+24>>2]=d;J[r+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}J[l>>2]=h;b=b+2|0;if((j| -0)!=(i|0))continue;break}break s}while(1){i=e+(b<<2)|0;l=J[i>>2];if(!(t&((l|0)==(q|0)&(l|0)>=0))){l=J[a>>2];J[l+24>>2]=d;J[l+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}J[i>>2]=h;i=(b|0)!=(j|0);b=b+1|0;if(i)continue;break}}o=o+1|0;if((n|0)!=(o|0))continue;break}break n}if(f|q|(j|0)!=63|h){b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;Ab[J[J[a>>2]>>2]](a)}b=0;if(!e)break n;while(1){c=(m+2560|0)+(J[((b<<2)+g|0)+4>>2]<<2)|0;if(J[c>>2]){f=J[a>>2];J[f+24>>2]=d;J[f+20>>2]=20;Ab[J[J[a>>2]>>2]](a)}J[c>>2]=1;b=b+1|0;if((n|0)!= -(b|0))continue;break}}b=d+1|0;g=g+36|0;if((d|0)>2])continue;break}e=J[a+76>>2];b=J[a+264>>2]}t:{if(b){b=0;if((e|0)<=0)break t;while(1){if(J[m+(b<<8)>>2]<0){c=J[a>>2];J[c+20>>2]=46;Ab[J[c>>2]](a);e=J[a+76>>2]}b=b+1|0;if((e|0)>(b|0))continue;break}break t}b=0;if((e|0)<=0)break t;while(1){if(!J[(m+2560|0)+(b<<2)>>2]){c=J[a>>2];J[c+20>>2]=46;Ab[J[c>>2]](a);e=J[a+76>>2]}b=b+1|0;if((e|0)>(b|0))continue;break}}if(J[a+376>>2]>7)break i;e=0;if(J[a+200>>2]<=0){b=0;break j}f=J[a+204>>2];b=0;while(1){if((b| -0)!=(e|0)){d=f+P(e,36)|0;g=J[d+4>>2];c=f+P(b,36)|0;J[c>>2]=J[d>>2];J[c+4>>2]=g;J[c+32>>2]=J[d+32>>2];g=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=g;g=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=g;g=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=g}d=J[a+384>>2];c=f+P(b,36)|0;if((d|0)>=J[c+20>>2]){if((d|0)>2])J[c+24>>2]=d;b=b+1|0}e=e+1|0;if((e|0)>2])continue;break}break j}J[a+264>>2]=0;b=1}J[a+200>>2]=b}if(!(J[a+212>>2]|!J[a+264>>2]&J[a+376>>2]>7))J[a+216>>2]=1;J[k+20>>2]=0;b=J[a+216>> -2];J[k+24>>2]=0;J[k+32>>2]=0;d=J[a+200>>2]<<1;u:{if(b)break u;d=J[a+200>>2]}J[k+28>>2]=d;xb=m+2608|0;if(!J[a+208>>2]){b=Ab[J[J[a+4>>2]>>2]](a,1,12)|0;J[a+408>>2]=b;J[b>>2]=1467;v:{w:{x:switch(J[a+40>>2]-1|0){case 0:if(J[a+36>>2]!=1)break w;break v;case 1:case 2:if(J[a+36>>2]!=3)break w;break v;case 3:case 4:if(J[a+36>>2]!=4)break w;break v;default:break x}if(J[a+36>>2]>0)break v}c=J[a>>2];J[c+20>>2]=10;Ab[J[c>>2]](a)}y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{c=J[a+80>>2];switch(c-1|0){case 4:break D;case 3:break E; -case 2:break F;case 1:break G;case 0:break H;default:break C}}if(J[a+76>>2]!=1){c=J[a>>2];J[c+20>>2]=11;Ab[J[c>>2]](a)}I:switch(J[a+40>>2]-1|0){case 0:J[b+4>>2]=1468;break y;case 1:J[b+4>>2]=1469;break B;case 2:J[b+4>>2]=1468;break y;default:break I}break A}if(J[a+76>>2]!=3){c=J[a>>2];J[c+20>>2]=11;Ab[J[c>>2]](a)}if(J[a+40>>2]==2)break z;break A}if(J[a+76>>2]!=3){c=J[a>>2];J[c+20>>2]=11;Ab[J[c>>2]](a)}J:switch(J[a+40>>2]-2|0){case 0:J[b+4>>2]=1472;break B;case 1:break z;default:break J}break A}if(J[a+ -76>>2]!=4){c=J[a>>2];J[c+20>>2]=11;Ab[J[c>>2]](a)}if(J[a+40>>2]==4)break z;break A}if(J[a+76>>2]!=4){c=J[a>>2];J[c+20>>2]=11;Ab[J[c>>2]](a)}K:switch(J[a+40>>2]-4|0){case 0:J[b+4>>2]=1473;break B;case 1:break z;default:break K}break A}if(!((c|0)==J[a+40>>2]&J[a+76>>2]==J[a+36>>2])){c=J[a>>2];J[c+20>>2]=28;Ab[J[c>>2]](a)}J[b+4>>2]=1471;break y}J[b>>2]=1470;break y}b=J[a>>2];J[b+20>>2]=28;Ab[J[b>>2]](a);break y}J[b+4>>2]=1471}h=0;b=Ab[J[J[a+4>>2]>>2]](a,1,112)|0;J[a+412>>2]=b;J[b+8>>2]=0;J[b+4>>2]=1481; -J[b>>2]=1482;if(J[a+220>>2]){c=J[a>>2];J[c+20>>2]=26;Ab[J[c>>2]](a)}L:{if(J[a+76>>2]<=0)break L;d=J[a+84>>2];k=1;while(1){f=J[a+272>>2];g=J[a+268>>2];j=J[a+276>>2];m=J[d+36>>2];n=J[d+8>>2];c=b+(h<<2)|0;e=(P(J[d+40>>2],J[d+12>>2])|0)/J[a+280>>2]|0;J[c+52>>2]=e;j=(P(m,n)|0)/(j|0)|0;M:{if(!((j|0)!=(g|0)|(e|0)!=(f|0))){if(J[a+228>>2]){J[c+12>>2]=1483;J[b+8>>2]=1;break M}J[c+12>>2]=1484;break M}m=(g|0)!=j<<1;if(!(m|(e|0)!=(f|0))){J[c+12>>2]=1485;k=0;break M}if(!((f|0)!=e<<1|m)){if(J[a+228>>2]){J[c+12>> -2]=1486;J[b+8>>2]=1;break M}J[c+12>>2]=1487;break M}N:{i=g;g=(g|0)/(j|0)|0;if(i-P(g,j)|0)break N;i=f;f=(f|0)/(e|0)|0;if(i-P(f,e)|0)break N;J[c+12>>2]=1488;c=b+h|0;H[c+102|0]=f;H[c+92|0]=g;k=0;break M}c=J[a>>2];J[c+20>>2]=39;Ab[J[c>>2]](a)}d=d+88|0;h=h+1|0;if((h|0)>2])continue;break}if(k|!J[a+228>>2])break L;b=J[a>>2];J[b+20>>2]=101;Ab[J[b+4>>2]](a,0)}c=0;d=0;k=0;e=Ab[J[J[a+4>>2]>>2]](a,1,64)|0;J[a+396>>2]=e;J[e>>2]=1489;O:{if(J[J[a+412>>2]+8>>2]){J[e+4>>2]=1490;b=J[a+272>>2];d=Ab[J[J[a+4>> -2]>>2]](a,1,P(P(b,J[a+76>>2]),20))|0;if(J[a+76>>2]<=0)break O;m=P(b,5);g=b<<2;n=P(b,12);q=P(b,3);f=J[a+84>>2];if((b|0)<=0){while(1){u=e+(c<<2)|0,v=Mb(d+g|0,Ab[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[f+28>>2]))|0)/J[f+8>>2]|0,q)|0,n),J[u+8>>2]=v;f=f+88|0;d=(m<<2)+d|0;c=c+1|0;if((c|0)>2])continue;break}break O}s=b&-2;t=b&1;i=b<<3;while(1){h=Ab[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[f+28>>2]))|0)/J[f+8>>2]|0,q)|0;l=Mb(d+g|0,h,n);j=h+i|0;c=0;o=0;if((b|0)!=1)while(1){p= -c<<2;J[p+d>>2]=J[j+p>>2];J[(c+g<<2)+d>>2]=J[h+p>>2];r=c|1;p=r<<2;J[p+d>>2]=J[j+p>>2];J[(g+r<<2)+d>>2]=J[h+p>>2];c=c+2|0;o=o+2|0;if((s|0)!=(o|0))continue;break}if(t){o=c<<2;J[o+d>>2]=J[j+o>>2];J[(c+g<<2)+d>>2]=J[h+o>>2]}J[(e+(k<<2)|0)+8>>2]=l;f=f+88|0;d=(m<<2)+d|0;k=k+1|0;if((k|0)>2])continue;break}break O}J[e+4>>2]=1491;if(J[a+76>>2]<=0)break O;c=J[a+84>>2];while(1){u=e+(d<<2)|0,v=Ab[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[c+28>>2]))|0)/J[c+8>>2]|0,J[a+272>>2])|0,J[u+8>>2]=v; -c=c+88|0;d=d+1|0;if((d|0)>2])continue;break}}}b=Ab[J[J[a+4>>2]>>2]](a,1,156)|0;J[a+416>>2]=b;J[b+84>>2]=0;J[b+88>>2]=0;J[b>>2]=1492;J[b+92>>2]=0;J[b+96>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+152>>2]=0;P:{if(J[a+212>>2]){b=Ab[J[J[a+4>>2]>>2]](a,1,208)|0;J[a+420>>2]=b;J[b+8>>2]=1529;J[b>>2]=1530;Nb(b+76|0,0,128);H[b+204|0]=113;break P}b=Ab[J[J[a+4>>2]>>2]](a,1,140)|0;J[a+420>>2]=b;J[b+44>>2]=0;J[b+48>>2]=0;J[b>>2]=1536;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+68>> -2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;if(J[a+264>>2])J[b+136>>2]=0}c=J[a+216>>2]!=0|J[a+200>>2]>1;d=0;b=Ab[J[J[a+4>>2]>>2]](a,1,104)|0;J[a+400>>2]=b;J[b>>2]=1545;Q:{if(c){if(J[a+76>>2]<=0)break Q;c=J[a+84>>2];while(1){f=J[c+8>>2];k=(f+J[c+28>>2]|0)-1|0;g=k-((k|0)%(f|0)|0)|0;f=J[c+12>>2];k=(f+J[c+32>>2]|0)-1|0;u=(b+(d<<2)|0)- -64|0,v=Ab[J[J[a+4>>2]+20>>2]](a,1,0,g,k-((k|0)%(f|0)|0)|0,f)|0,J[u>>2]=v;c=c+88|0;d=d+1| -0;if((d|0)>2])continue;break}break Q}c=Ab[J[J[a+4>>2]+4>>2]](a,1,1280)|0;J[b+64>>2]=0;J[b+24>>2]=c;J[b+60>>2]=c+1152;J[b+56>>2]=c+1024;J[b+52>>2]=c+896;J[b+48>>2]=c+768;J[b+44>>2]=c+640;J[b+40>>2]=c+512;J[b+36>>2]=c+384;J[b+32>>2]=c+256;J[b+28>>2]=c+128}c=0;d=Ab[J[J[a+4>>2]>>2]](a,1,64)|0;J[a+392>>2]=d;J[d>>2]=1549;if(!(J[a+208>>2]|J[a+76>>2]<=0)){b=J[a+84>>2];while(1){u=d+(c<<2)|0,v=Ab[J[J[a+4>>2]+8>>2]](a,1,P(J[b+36>>2],J[b+28>>2]),P(J[b+40>>2],J[b+12>>2]))|0,J[u+24>>2]=v;b=b+88|0;c=c+1| -0;if((c|0)>2])continue;break}}nE(a);Ab[J[J[a+4>>2]+24>>2]](a);Ab[J[J[a+404>>2]>>2]](a);Ab[J[J[a+388>>2]>>2]](a);J[a+260>>2]=0;J[a+20>>2]=J[a+208>>2]?102:101}function jg(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;e=-2;a:{b:{c:{d:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break d;d=J[a+28>>2];if(!d|J[d>>2]!=(a|0))break d;e:{f:{c=J[d+4>>2];switch(c-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break d; -case 0:case 12:case 16:case 34:case 46:case 56:break e;default:break f}}if((c|0)==666)break e;if((c|0)!=42)break d}if(b>>>0>5)break d;g:{h:{if(!J[a+12>>2])break h;f=J[a+4>>2];if(J[a>>2]?0:f)break h;if((b|0)==4|(c|0)!=666)break g}J[a+24>>2]=J[58500];return-2}if(!J[a+16>>2])break b;e=J[d+40>>2];J[d+40>>2]=b;i:{if(J[d+20>>2]){oe(d);g=J[d+20>>2];c=J[a+16>>2];e=c>>>0>g>>>0?g:c;j:{if(!e)break j;Mb(J[a+12>>2],J[d+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[d+16>>2]=e+J[d+16>>2];J[a+20>>2]=e+J[a+20>>2];c=J[a+16>> -2]-e|0;J[a+16>>2]=c;f=J[d+20>>2];g=f-e|0;J[d+20>>2]=g;if((e|0)!=(f|0))break j;J[d+16>>2]=J[d+8>>2]}if(c){c=J[d+4>>2];break i}break a}if((b|0)==4|f|((b<<1)+(b>>>0>4?-9:0)|0)>((e<<1)+((e|0)>4?-9:0)|0))break i;break b}k:{l:{m:{n:{if((c|0)!=42){if((c|0)!=666)break n;if(!J[a+4>>2])break m;break b}f=(J[d+48>>2]<<12)-30720|0;e=0;o:{if(J[d+136>>2]>1)break o;c=J[d+132>>2];if((c|0)<2)break o;e=64;if(c>>>0<6)break o;e=(c|0)==6?128:192}J[d+20>>2]=g+1;c=e|f;c=J[d+108>>2]?c|32:c;H[J[d+8>>2]+g|0]=c>>>8;e=J[d+20>> -2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=(c|(c>>>0)%31)^31;if(J[d+108>>2]){c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>24;e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>16;c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c}l=a,m=oh(0,0,0),J[l+48>>2]=m;J[d+4>>2]=113;vk(a);if(J[d+20>>2])break a;c=J[d+4>>2]}p:{q:{r:{s:{t:{u:{if((c|0)==57){l=a,m=Ad(0,0,0),J[l+48>>2]=m;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=31;c=J[d+20>>2]; -J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=139;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=8;c=J[d+28>>2];if(c)break u;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;e=2;c=J[d+132>>2];if((c|0)!=9)e=(c|0)<2?4:(J[d+136>>2]>1)<<2;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=3;J[d+ -4>>2]=113;vk(a);if(J[d+20>>2])break a;c=J[d+4>>2]}switch(c-69|0){case 34:break q;case 22:break r;case 4:break s;case 0:break t;default:break p}}f=J[c+36>>2];g=J[c+28>>2];h=J[c+16>>2];j=J[c+44>>2];c=J[c>>2];i=J[d+20>>2];J[d+20>>2]=i+1;e=2;H[i+J[d+8>>2]|0]=((j|0)!=0)<<1|(c|0)!=0|((h|0)!=0)<<2|((g|0)!=0)<<3|((f|0)!=0)<<4;c=J[J[d+28>>2]+4>>2];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c;c=J[J[d+28>>2]+4>>2];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c>>>8;c=L[J[d+28>>2]+6>>1];f=J[d+20>>2];J[d+20>> -2]=f+1;H[f+J[d+8>>2]|0]=c;c=K[J[d+28>>2]+7|0];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c;c=J[d+132>>2];if((c|0)!=9)e=(c|0)<2?4:(J[d+136>>2]>1)<<2;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[J[d+28>>2]+12>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c;c=J[d+28>>2];if(J[c+16>>2]){c=J[c+20>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c;c=J[J[d+28>>2]+20>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;c=J[d+28>>2]}if(J[c+44>>2])l=a,m=Ad(J[a+48>>2],J[d+8>>2],J[d+20>>2]),J[l+48>> -2]=m;J[d+4>>2]=69;J[d+32>>2]=0}f=J[d+28>>2];c=J[f+16>>2];if(c){h=J[d+12>>2];e=J[d+20>>2];g=J[d+32>>2];f=L[f+20>>1]-g|0;if(h>>>0>>0){c=c+g|0;g=h-e|0;Mb(J[d+8>>2]+e|0,c,g);c=J[d+12>>2];J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|c>>>0<=e>>>0))l=a,m=Ad(J[a+48>>2],J[d+8>>2]+e|0,c-e|0),J[l+48>>2]=m;J[d+32>>2]=g+J[d+32>>2];c=J[a+28>>2];oe(c);e=J[c+20>>2];h=J[a+16>>2];e=e>>>0>>0?e:h;v:{if(!e)break v;Mb(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+20>>2];J[a+ -16>>2]=J[a+16>>2]-e;h=J[c+20>>2];J[c+20>>2]=h-e;if((e|0)!=(h|0))break v;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break c;f=f-g|0;g=J[d+12>>2];if(f>>>0>g>>>0)while(1){Mb(J[d+8>>2],J[J[d+28>>2]+16>>2]+J[d+32>>2]|0,g);c=J[d+12>>2];J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|!c))l=a,m=Ad(J[a+48>>2],J[d+8>>2],c),J[l+48>>2]=m;J[d+32>>2]=J[d+32>>2]+g;c=J[a+28>>2];oe(c);e=J[c+20>>2];h=J[a+16>>2];e=e>>>0>>0?e:h;w:{if(!e)break w;Mb(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]= -e+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-e;h=J[c+20>>2];J[c+20>>2]=h-e;if((e|0)!=(h|0))break w;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break c;f=f-g|0;g=J[d+12>>2];if(f>>>0>g>>>0)continue;break}g=J[d+32>>2];e=0;c=J[J[d+28>>2]+16>>2]}Mb(J[d+8>>2]+e|0,c+g|0,f);c=J[d+20>>2]+f|0;J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|c>>>0<=e>>>0))l=a,m=Ad(J[a+48>>2],J[d+8>>2]+e|0,c-e|0),J[l+48>>2]=m;J[d+32>>2]=0}J[d+4>>2]=73}if(J[J[d+28>>2]+28>>2]){f=J[d+20>>2];while(1){c=J[d+28>>2];e=J[d+20>>2];if((e|0)==J[d+12>>2]){if(!(!J[c+ -44>>2]|e>>>0<=f>>>0))l=a,m=Ad(J[a+48>>2],J[d+8>>2]+f|0,e-f|0),J[l+48>>2]=m;c=J[a+28>>2];oe(c);e=J[c+20>>2];f=J[a+16>>2];e=e>>>0>>0?e:f;x:{if(!e)break x;Mb(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-e;f=J[c+20>>2];J[c+20>>2]=f-e;if((e|0)!=(f|0))break x;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break a;f=0;e=0;c=J[d+28>>2]}c=J[c+28>>2];g=J[d+32>>2];J[d+32>>2]=g+1;c=K[c+g|0];J[d+20>>2]=e+1;H[J[d+8>>2]+e|0]=c;if(c)continue;break}y:{if(!J[J[d+ -28>>2]+44>>2])break y;c=J[d+20>>2];if(c>>>0<=f>>>0)break y;l=a,m=Ad(J[a+48>>2],J[d+8>>2]+f|0,c-f|0),J[l+48>>2]=m}J[d+32>>2]=0}J[d+4>>2]=91}z:{if(!J[J[d+28>>2]+36>>2])break z;f=J[d+20>>2];while(1){c=J[d+28>>2];e=J[d+20>>2];if((e|0)==J[d+12>>2]){if(!(!J[c+44>>2]|e>>>0<=f>>>0))l=a,m=Ad(J[a+48>>2],J[d+8>>2]+f|0,e-f|0),J[l+48>>2]=m;c=J[a+28>>2];oe(c);e=J[c+20>>2];f=J[a+16>>2];e=e>>>0>>0?e:f;A:{if(!e)break A;Mb(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+ -20>>2];J[a+16>>2]=J[a+16>>2]-e;f=J[c+20>>2];J[c+20>>2]=f-e;if((e|0)!=(f|0))break A;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break a;f=0;e=0;c=J[d+28>>2]}c=J[c+36>>2];g=J[d+32>>2];J[d+32>>2]=g+1;c=K[c+g|0];J[d+20>>2]=e+1;H[J[d+8>>2]+e|0]=c;if(c)continue;break}if(!J[J[d+28>>2]+44>>2])break z;c=J[d+20>>2];if(c>>>0<=f>>>0)break z;l=a,m=Ad(J[a+48>>2],J[d+8>>2]+f|0,c-f|0),J[l+48>>2]=m}J[d+4>>2]=103}if(J[J[d+28>>2]+44>>2]){e=J[d+20>>2];if(M[d+12>>2]>>0){vk(a);if(J[d+20>>2])break a;e=0}c=J[a+48>>2];J[d+20>> -2]=e+1;H[J[d+8>>2]+e|0]=c;c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;l=a,m=Ad(0,0,0),J[l+48>>2]=m}J[d+4>>2]=113;vk(a);if(!J[d+20>>2])break p;break a}if(J[a+4>>2])break l}if(J[d+116>>2])break l;if(!b)return 0;if(J[d+4>>2]==666)break k}c=J[d+132>>2];B:{if(!c){c=RF(d,b);break B}C:switch(J[d+136>>2]-2|0){case 0:D:{E:{while(1){F:{if(J[d+116>>2])break F;ro(d);if(J[d+116>>2])break F;if(b)break E;c=0;break D}J[d+96>>2]=0;c=K[J[d+56>>2]+J[d+108>>2]|0];e=J[d+5792>>2];I[J[d+5796>>2]+(e<< -1)>>1]=0;J[d+5792>>2]=e+1;H[e+J[d+5784>>2]|0]=c;c=(c<<2)+d|0;I[c+148>>1]=L[c+148>>1]+1;J[d+116>>2]=J[d+116>>2]-1;f=J[d+108>>2]+1|0;J[d+108>>2]=f;if(J[d+5792>>2]!=(J[d+5788>>2]-1|0))continue;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Bf(d,e,f-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];oe(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;G:{if(!f)break G;Mb(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>> -2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break G;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])continue;break}c=0;break D}J[d+5812>>2]=0;if((b|0)==4){c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Bf(d,e,J[d+108>>2]-c|0,1);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];oe(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;H:{if(!f)break H;Mb(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break H; -J[e+16>>2]=J[e+8>>2]}c=J[J[d>>2]+16>>2]?3:2;break D}I:{if(!J[d+5792>>2])break I;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Bf(d,e,J[d+108>>2]-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];oe(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;J:{if(!f)break J;Mb(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break J;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])break I;c=0;break D}c= -1}break B;case 1:K:{L:{while(1){M:{N:{O:{f=J[d+116>>2];P:{if(f>>>0>=259){J[d+96>>2]=0;j=J[d+108>>2];break P}ro(d);f=J[d+116>>2];c=0;if(!(f>>>0>=259|b))break K;if(!f)break L;J[d+96>>2]=0;j=J[d+108>>2];if(f>>>0<3)break O}if(!j)break O;h=J[d+56>>2]+j|0;g=K[h-1|0];if((g|0)!=K[h|0]|(g|0)!=K[h+1|0]|(g|0)!=K[h+2|0])break O;k=h+258|0;i=2;Q:{R:{S:{T:{U:{V:{W:{while(1){c=h+i|0;if((g|0)!=K[c+1|0])break R;if((g|0)!=K[c+2|0])break S;if((g|0)!=K[c+3|0])break T;if((g|0)!=K[c+4|0])break U;if((g|0)!=K[c+5|0])break V; -if((g|0)!=K[c+6|0])break W;if((g|0)==K[c+7|0]){c=i>>>0>249;i=i+8|0;e=h+i|0;if(c)break Q;if((g|0)==K[e|0])continue;break Q}break}e=c+7|0;break Q}e=c+6|0;break Q}e=c+5|0;break Q}e=c+4|0;break Q}e=c+3|0;break Q}e=c+2|0;break Q}e=c+1|0}c=(e-k|0)+258|0;e=c>>>0>>0?c:f;J[d+96>>2]=e;c=J[d+5792>>2];if(e>>>0<3)break N;I[J[d+5796>>2]+(c<<1)>>1]=1;J[d+5792>>2]=c+1;f=c+J[d+5784>>2]|0;c=e-3|0;H[f|0]=c;c=((K[(c&255)+231760|0]<<2)+d|0)+1176|0;I[c>>1]=L[c>>1]+1;c=((K[231248]<<2)+d|0)+2440|0;I[c>>1]=L[c>>1]+1;c= -J[d+96>>2];J[d+96>>2]=0;J[d+116>>2]=J[d+116>>2]-c;f=c+J[d+108>>2]|0;J[d+108>>2]=f;break M}c=J[d+5792>>2]}e=K[J[d+56>>2]+j|0];I[J[d+5796>>2]+(c<<1)>>1]=0;J[d+5792>>2]=c+1;H[c+J[d+5784>>2]|0]=e;c=(e<<2)+d|0;I[c+148>>1]=L[c+148>>1]+1;J[d+116>>2]=J[d+116>>2]-1;f=J[d+108>>2]+1|0;J[d+108>>2]=f}if(J[d+5792>>2]!=(J[d+5788>>2]-1|0))continue;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Bf(d,e,f-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];oe(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;X:{if(!f)break X; -Mb(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break X;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])continue;break}c=0;break K}J[d+5812>>2]=0;if((b|0)==4){c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Bf(d,e,J[d+108>>2]-c|0,1);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];oe(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;Y:{if(!f)break Y;Mb(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]= -f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break Y;J[e+16>>2]=J[e+8>>2]}c=J[J[d>>2]+16>>2]?3:2;break K}Z:{if(!J[d+5792>>2])break Z;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Bf(d,e,J[d+108>>2]-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];oe(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;_:{if(!f)break _;Mb(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>> -2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break _;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])break Z;c=0;break K}c=1}break B;default:break C}c=Ab[J[P(c,12)+224584>>2]](d,b)|0}if((c&-2)==2)J[d+4>>2]=666;if(!(c&-3)){e=0;if(J[a+16>>2])break d;break a}if((c|0)!=1)break k;$:{aa:switch(b-1|0){case 0:c=J[d+5820>>2];e=L[d+5816>>1]|2<>1]=e;ba:{if((c|0)>=14){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=K[d+5817|0];c=J[d+5820>> -2];e=2>>>16-c|0;I[d+5816>>1]=e;c=c-13|0;break ba}c=c+3|0}J[d+5820>>2]=c;ca:{if((c|0)>=10){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=K[d+5817|0];e=0;I[d+5816>>1]=0;c=J[d+5820>>2]-9|0;break ca}c=c+7|0}J[d+5820>>2]=c;da:{ea:{if((c|0)==16){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=K[d+5817|0];I[d+5816>>1]=0;c=0;break ea}if((c|0)<8)break da;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;I[d+5816>>1]=K[d+ -5817|0];c=J[d+5820>>2]-8|0}J[d+5820>>2]=c}break $;case 4:break $;default:break aa}qo(d,0,0,0);if((b|0)!=3)break $;c=(J[d+76>>2]<<1)-2|0;e=J[d+68>>2];I[c+e>>1]=0;Nb(e,0,c);if(J[d+116>>2])break $;J[d+5812>>2]=0;J[d+92>>2]=0;J[d+108>>2]=0}vk(a);if(J[a+16>>2])break k;break a}e=0;if((b|0)!=4)break d;e=1;c=J[d+24>>2];if((c|0)<=0)break d;b=J[a+48>>2];fa:{if((c|0)==2){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=J[a+48>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>8;b=L[a+50>>1];c=J[d+20>>2];J[d+ -20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=K[a+51|0];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=J[a+8>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=J[a+8>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>8;b=L[a+10>>1];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=K[a+11|0];break fa}c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>24;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>16;b=J[a+48>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>8}c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]| -0]=b;vk(a);a=J[d+24>>2];if((a|0)>0)J[d+24>>2]=0-a;e=!J[d+20>>2]}return e}J[d+40>>2]=-1;return 0}J[a+24>>2]=J[58503];return-5}J[d+40>>2]=-1;return 0}function Hha(a){a=a|0;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;r=xb-256|0;xb=r;b=J[a+436>>2];while(1){a:{b:{if(b)break b;if(!J[J[a+460>>2]+12>>2]){h=J[a+24>>2];b=J[h+4>>2];if(!b){if(!(Ab[J[h+12>>2]](a)|0)){b=0;break a}b=J[h+4>>2]}c=J[h>>2];g=K[c|0];m=b-1|0;if(m)c=c+1|0;else{if(!(Ab[J[h+ -12>>2]](a)|0)){b=0;break a}m=J[h+4>>2];c=J[h>>2]}i=c+1|0;b=K[c|0];if(!((g|0)==255&(b|0)==216)){c=J[a>>2];J[c+24>>2]=g;J[c+20>>2]=55;J[J[a>>2]+28>>2]=b;Ab[J[J[a>>2]>>2]](a)}J[a+436>>2]=b;J[h+4>>2]=m-1;J[h>>2]=i;break b}if(!Yr(a)){b=0;break a}b=J[a+436>>2]}c:{d:{e:{f:{g:{h:{i:{j:{k:{l:switch(b-1|0){case 215:c=J[a>>2];J[c+20>>2]=104;Ab[J[c+4>>2]](a,1);b=J[a+460>>2];if(J[b+12>>2]){c=J[a>>2];J[c+20>>2]=63;Ab[J[c>>2]](a);b=J[a+460>>2]}H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+ -237|0]=0;H[a+238|0]=0;H[a+239|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+242|0]=0;H[a+243|0]=0;H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+256|0]=1;H[a+257|0]=1;H[a+258|0]=1;H[a+259|0]=1;H[a+260|0]=1;H[a+261|0]=1;H[a+262|0]=1;H[a+263|0]=1;H[a+248|0]=1;H[a+249|0]=1;H[a+250|0]=1;H[a+251|0]=1;H[a+252|0]=1;H[a+253|0]=1;H[a+254|0]=1;H[a+255|0]=1;H[a+272|0]=5;H[a+273|0]=5;H[a+274|0]=5;H[a+275|0]=5;H[a+276|0]=5;H[a+277|0]=5;H[a+278|0]=5;H[a+279|0]=5;H[a+264|0]=5;H[a+265|0]=5;H[a+266|0]=5;H[a+267|0]= -5;H[a+268|0]=5;H[a+269|0]=5;H[a+270|0]=5;H[a+271|0]=5;J[a+304>>2]=0;J[a+40>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;H[a+300|0]=0;J[a+292>>2]=65537;J[a+296>>2]=0;H[a+290|0]=0;I[a+288>>1]=257;J[b+12>>2]=1;break c;case 192:b=0;if(Ml(a,0,0,0))break c;break a;case 193:b=0;if(Ml(a,0,1,0))break c;break a;case 200:b=0;if(Ml(a,0,0,1))break c;break a;case 201:b=0;if(Ml(a,0,1,1))break c;break a;case 194:case 196:case 197:case 198:case 199:case 202:case 204:case 205:case 206:c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=62;Ab[J[J[a>> -2]>>2]](a);break c;case 217:l=J[a+24>>2];b=J[l+4>>2];d=J[l>>2];if(!J[J[a+460>>2]+16>>2]){c=J[a>>2];J[c+20>>2]=64;Ab[J[c>>2]](a)}if(!b){if(!(Ab[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}g=K[d|0];e=b-1|0;if(e)c=d+1|0;else{if(!(Ab[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}i=K[c|0];e=e-1|0;if(e)c=c+1|0;else{if(!(Ab[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}b=J[a>>2];k=K[c|0];J[b+24>>2]=k;J[b+20>>2]=105;n=1;Ab[J[J[a>>2]+4>>2]](a,1);m:{n:{o:{if(((k<<1)+6|0)!=(i|g<<8)|k>>> -0>4)break o;if(k){J[a+336>>2]=k;d=c+1|0;b=e-1|0;break n}if(!J[a+224>>2])break o;J[a+336>>2]=k;d=c+1|0;b=e-1|0;break m}b=J[a>>2];J[b+20>>2]=12;Ab[J[b>>2]](a);J[a+336>>2]=k;d=c+1|0;b=e-1|0;if(!k)break m}n=0;while(1){if(!b){if(!(Ab[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}o=K[d|0];j=b-1|0;if(j)i=d+1|0;else{if(!(Ab[J[l+12>>2]](a)|0)){b=0;break a}j=J[l+4>>2];i=J[l>>2]}b=J[a+216>>2];h=K[i|0];g=J[a+36>>2];p:{if((g|0)>0){c=P(g,88)+b|0;d=0;while(1){if((o|0)==J[b>>2])break p;b=b+88|0;d=d+1|0;if((g| -0)!=(d|0))continue;break}b=c}c=J[a>>2];J[c+24>>2]=o;J[c+20>>2]=4;Ab[J[J[a>>2]>>2]](a)}J[((n<<2)+a|0)+340>>2]=b;J[b+24>>2]=h&15;J[b+20>>2]=h>>>4;g=J[a>>2];J[g+24>>2]=o;J[g+28>>2]=J[b+20>>2];c=J[b+24>>2];J[g+20>>2]=106;J[g+32>>2]=c;Ab[J[g+4>>2]](a,1);d=i+1|0;b=j-1|0;n=n+1|0;if((k|0)!=(n|0))continue;break}n=0}if(!b){if(!(Ab[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}J[a+408>>2]=K[d|0];e=b-1|0;if(e)c=d+1|0;else{if(!(Ab[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}J[a+412>>2]=K[c|0]; -m=e-1|0;if(m)c=c+1|0;else{if(!(Ab[J[l+12>>2]](a)|0)){b=0;break a}m=J[l+4>>2];c=J[l>>2]}b=K[c|0];J[a+420>>2]=b&15;J[a+416>>2]=b>>>4;i=J[a>>2];J[i+24>>2]=J[a+408>>2];J[i+28>>2]=J[a+412>>2];J[i+32>>2]=J[a+416>>2];J[i+36>>2]=J[a+420>>2];J[i+20>>2]=107;b=1;Ab[J[i+4>>2]](a,1);J[J[a+460>>2]+20>>2]=0;if(!n)J[a+144>>2]=J[a+144>>2]+1;J[l+4>>2]=m-1;J[l>>2]=c+1;J[a+436>>2]=0;break a;case 216:c=J[a>>2];J[c+20>>2]=87;Ab[J[c+4>>2]](a,1);J[a+436>>2]=0;b=2;break a;case 203:j=J[a+24>>2];b=J[j+4>>2];if(!b){if(!(Ab[J[j+ -12>>2]](a)|0)){b=0;break a}b=J[j+4>>2]}i=J[j>>2];c=K[i|0];d=b-1|0;if(d)b=i+1|0;else{if(!(Ab[J[j+12>>2]](a)|0)){b=0;break a}d=J[j+4>>2];b=J[j>>2]}e=b+1|0;d=d-1|0;c=K[b|0]|c<<8;b=c-2|0;if(c>>>0>=3)while(1){i=b;if(!d){if(!(Ab[J[j+12>>2]](a)|0)){b=0;break a}d=J[j+4>>2];e=J[j>>2]}g=K[e|0];o=d-1|0;if(o)c=e+1|0;else{if(!(Ab[J[j+12>>2]](a)|0)){b=0;break a}o=J[j+4>>2];c=J[j>>2]}h=K[c|0];b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=81;J[J[a>>2]+28>>2]=h;Ab[J[J[a>>2]+4>>2]](a,1);q:{r:{s:{if(g>>>0>=32){b=J[a>>2];J[b+24>> -2]=g;J[b+20>>2]=29;Ab[J[J[a>>2]>>2]](a);break s}if(g>>>0<16)break r}H[(a+g|0)+248|0]=h;break q}b=a+g|0;g=h>>>4|0;H[b+248|0]=g;d=b;b=h&15;H[d+232|0]=b;if(b>>>0<=g>>>0)break q;b=J[a>>2];J[b+24>>2]=h;J[b+20>>2]=30;Ab[J[J[a>>2]>>2]](a)}e=c+1|0;d=o-1|0;b=i-2|0;if(i>>>0>2)continue;break}if(b){c=J[a>>2];J[c+20>>2]=12;Ab[J[c>>2]](a)}J[j+4>>2]=d;J[j>>2]=e;break c;case 195:f=J[a+24>>2];b=J[f+4>>2];if(!b){if(!(Ab[J[f+12>>2]](a)|0))break k;b=J[f+4>>2]}i=J[f>>2];c=K[i|0];b=b-1|0;if(b)i=i+1|0;else{if(!(Ab[J[f+ -12>>2]](a)|0))break k;b=J[f+4>>2];i=J[f>>2]}d=i+1|0;b=b-1|0;c=K[i|0]|c<<8;n=c-2|0;if(c>>>0>=19)while(1){if(!b){if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f>>2];b=J[f+4>>2]}c=J[a>>2];p=K[d|0];J[c+24>>2]=p;J[c+20>>2]=82;Ab[J[J[a>>2]+4>>2]](a,1);e=b-1|0;if(e)c=d+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;e=J[f+4>>2];c=J[f>>2]}s=K[c|0];d=e-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}t=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}u= -K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}v=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}w=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}x=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}y=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}z=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>> -2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}A=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}B=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}C=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}l=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}m=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}k=K[c| -0];d=d-1|0;if(d)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}o=K[c|0];e=d-1|0;if(e)c=c+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break k;e=J[f+4>>2];c=J[f>>2]}j=K[c|0];b=J[a>>2];J[b+24>>2]=s;J[b+20>>2]=88;J[b+52>>2]=z;J[b+48>>2]=y;J[b+44>>2]=x;J[b+40>>2]=w;J[b+36>>2]=v;J[b+32>>2]=u;J[b+28>>2]=t;Ab[J[b+4>>2]](a,2);b=J[a>>2];J[b+24>>2]=A;J[b+20>>2]=88;J[b+52>>2]=j;J[b+48>>2]=o;J[b+44>>2]=k;J[b+40>>2]=m;J[b+36>>2]=l;J[b+32>>2]=C;J[b+28>>2]=B;Ab[J[b+4>>2]](a,2);d=c+1|0;b=e-1|0;q=((((((((((((v+ -(u+(s+t|0)|0)|0)+w|0)+x|0)+y|0)+z|0)+A|0)+B|0)+C|0)+l|0)+m|0)+k|0)+o|0)+j|0;g=n-17|0;t:{u:{if(!(q>>>0<=256&g>>>0>=q>>>0)){c=J[a>>2];J[c+20>>2]=9;Ab[J[c>>2]](a);break u}if(!q)break t}e=0;while(1){if(!b){if(!(Ab[J[f+12>>2]](a)|0))break k;d=J[f>>2];b=J[f+4>>2]}H[e+r|0]=K[d|0];d=d+1|0;b=b-1|0;e=e+1|0;if(q>>>0>e>>>0)continue;break}}i=p-16|0;c=p&16;h=c?((i<<2)+a|0)+196|0:((p<<2)+a|0)+180|0;i=c?i:p;if(i>>>0>=4){c=J[a>>2];J[c+24>>2]=i;J[c+20>>2]=31;Ab[J[J[a>>2]>>2]](a)}n=g-q|0;e=J[h>>2];if(!e){e=Ab[J[J[a+ -4>>2]>>2]](a,0,280)|0;J[e+276>>2]=0;J[h>>2]=e}H[e+16|0]=j;H[e+15|0]=o;H[e+14|0]=k;H[e+13|0]=m;H[e+12|0]=l;H[e+11|0]=C;H[e+10|0]=B;H[e+9|0]=A;H[e+8|0]=z;H[e+7|0]=y;H[e+6|0]=x;H[e+5|0]=w;H[e+4|0]=v;H[e+3|0]=u;H[e+2|0]=t;H[e+1|0]=s;H[e|0]=0;Mb(J[h>>2]+17|0,r,256);if((n|0)>16)continue;break}if(n){c=J[a>>2];J[c+20>>2]=12;Ab[J[c>>2]](a)}J[f+4>>2]=b;J[f>>2]=d;break c;case 220:break d;case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:break e; -case 253:break f;case 0:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:break g;case 219:break h;case 191:break j;case 218:break l;default:break i}k=J[a+24>>2];b=J[k+4>>2];if(!b){if(!(Ab[J[k+12>>2]](a)|0)){b=0;break a}b=J[k+4>>2]}i=J[k>>2];c=K[i|0];d=b-1|0;if(d)b=i+1|0;else{if(!(Ab[J[k+12>>2]](a)|0)){b=0;break a}d=J[k+4>>2];b=J[k>>2]}n=b+1|0;m=d-1|0;c=K[b|0]|c<<8;d=c-2|0;if(c>>>0>=3)while(1){if(!m){if(!(Ab[J[k+12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}g=K[n|0];c=J[a>> -2];J[c+20>>2]=83;b=g&15;J[c+24>>2]=b;J[J[a>>2]+28>>2]=g>>>4;Ab[J[J[a>>2]+4>>2]](a,1);if(b>>>0>=4){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=32;Ab[J[J[a>>2]>>2]](a)}c=(b<<2)+a|0;b=J[c+164>>2];if(!b){b=Ab[J[J[a+4>>2]>>2]](a,0,132)|0;J[b+128>>2]=0;J[c+164>>2]=b}i=d-1|0;v:{w:{x:{h=g>>>0<16;y:{z:{if(!h){if(d>>>0>128){o=247088;c=64;break y}I[b+120>>1]=1;I[b+122>>1]=1;I[b+124>>1]=1;I[b+126>>1]=1;I[b+112>>1]=1;I[b+114>>1]=1;I[b+116>>1]=1;I[b+118>>1]=1;I[b+104>>1]=1;I[b+106>>1]=1;I[b+108>>1]=1;I[b+110>>1]=1;I[b+96>> -1]=1;I[b+98>>1]=1;I[b+100>>1]=1;I[b+102>>1]=1;I[b+88>>1]=1;I[b+90>>1]=1;I[b+92>>1]=1;I[b+94>>1]=1;I[b+80>>1]=1;I[b+82>>1]=1;I[b+84>>1]=1;I[b+86>>1]=1;I[b+72>>1]=1;I[b+74>>1]=1;I[b+76>>1]=1;I[b+78>>1]=1;I[b+64>>1]=1;I[b+66>>1]=1;I[b+68>>1]=1;I[b+70>>1]=1;I[b+56>>1]=1;I[b+58>>1]=1;I[b+60>>1]=1;I[b+62>>1]=1;I[b+48>>1]=1;I[b+50>>1]=1;I[b+52>>1]=1;I[b+54>>1]=1;I[b+40>>1]=1;I[b+42>>1]=1;I[b+44>>1]=1;I[b+46>>1]=1;I[b+32>>1]=1;I[b+34>>1]=1;I[b+36>>1]=1;I[b+38>>1]=1;I[b+24>>1]=1;I[b+26>>1]=1;I[b+28>>1]=1; -I[b+30>>1]=1;I[b+16>>1]=1;I[b+18>>1]=1;I[b+20>>1]=1;I[b+22>>1]=1;I[b+8>>1]=1;I[b+10>>1]=1;I[b+12>>1]=1;I[b+14>>1]=1;I[b>>1]=1;I[b+2>>1]=1;I[b+4>>1]=1;I[b+6>>1]=1;c=i>>>1|0;break z}c=64;o=247088;if(d>>>0>64)break y;I[b+120>>1]=1;I[b+122>>1]=1;I[b+124>>1]=1;I[b+126>>1]=1;I[b+112>>1]=1;I[b+114>>1]=1;I[b+116>>1]=1;I[b+118>>1]=1;I[b+104>>1]=1;I[b+106>>1]=1;I[b+108>>1]=1;I[b+110>>1]=1;I[b+96>>1]=1;I[b+98>>1]=1;I[b+100>>1]=1;I[b+102>>1]=1;I[b+88>>1]=1;I[b+90>>1]=1;I[b+92>>1]=1;I[b+94>>1]=1;I[b+80>>1]=1; -I[b+82>>1]=1;I[b+84>>1]=1;I[b+86>>1]=1;I[b+72>>1]=1;I[b+74>>1]=1;I[b+76>>1]=1;I[b+78>>1]=1;I[b+64>>1]=1;I[b+66>>1]=1;I[b+68>>1]=1;I[b+70>>1]=1;I[b+56>>1]=1;I[b+58>>1]=1;I[b+60>>1]=1;I[b+62>>1]=1;I[b+48>>1]=1;I[b+50>>1]=1;I[b+52>>1]=1;I[b+54>>1]=1;I[b+40>>1]=1;I[b+42>>1]=1;I[b+44>>1]=1;I[b+46>>1]=1;I[b+32>>1]=1;I[b+34>>1]=1;I[b+36>>1]=1;I[b+38>>1]=1;I[b+24>>1]=1;I[b+26>>1]=1;I[b+28>>1]=1;I[b+30>>1]=1;I[b+16>>1]=1;I[b+18>>1]=1;I[b+20>>1]=1;I[b+22>>1]=1;I[b+8>>1]=1;I[b+10>>1]=1;I[b+12>>1]=1;I[b+14>> -1]=1;I[b>>1]=1;I[b+2>>1]=1;I[b+4>>1]=1;I[b+6>>1]=1;c=i}o=248304;A:switch(c-4|0){case 5:o=248192;break y;case 12:o=248064;break y;case 21:o=247888;break y;case 32:o=247680;break y;case 0:break y;case 45:break A;default:break x}o=247408}n=n+1|0;m=m-1|0;break w}n=n+1|0;m=m-1|0;o=247088;if(c)break w;c=0;break v}d=0;if(g>>>0<=15)while(1){if(!m){if(!(Ab[J[k+12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}I[(J[(d<<2)+o>>2]<<1)+b>>1]=K[n|0];n=n+1|0;m=m-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break v}while(1){if(!m){if(!(Ab[J[k+ -12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}g=K[n|0];m=m-1|0;if(m)j=n+1|0;else{if(!(Ab[J[k+12>>2]](a)|0)){b=0;break a}m=J[k+4>>2];j=J[k>>2]}I[(J[(d<<2)+o>>2]<<1)+b>>1]=K[j|0]|g<<8;n=j+1|0;m=m-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}o=0;if(J[J[a>>2]+104>>2]>=2)while(1){j=J[a>>2];g=o<<1;J[j+24>>2]=L[g+b>>1];J[j+28>>2]=L[(g|2)+b>>1];J[j+32>>2]=L[(g|4)+b>>1];J[j+36>>2]=L[(g|6)+b>>1];J[j+40>>2]=L[(g|8)+b>>1];J[j+44>>2]=L[(g|10)+b>>1];J[j+48>>2]=L[(g|12)+b>>1];g=L[(g|14)+b>>1];J[j+20>>2]=95;J[j+ -52>>2]=g;Ab[J[j+4>>2]](a,2);g=o>>>0<56;o=o+8|0;if(g)continue;break}d=i-((h?0:c)+c|0)|0;if((d|0)>0)continue;break}if(d){c=J[a>>2];J[c+20>>2]=12;Ab[J[c>>2]](a)}J[k+4>>2]=m;J[k>>2]=n;break c}b=0;break a}b=0;if(Ml(a,1,0,0))break c;break a}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=70;Ab[J[J[a>>2]>>2]](a);break c}h=J[a+24>>2];d=J[h+4>>2];if(!d){if(!(Ab[J[h+12>>2]](a)|0)){b=0;break a}d=J[h+4>>2]}c=J[h>>2];i=K[c|0];e=d-1|0;if(e)g=c+1|0;else{if(!(Ab[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];g=J[h>>2]}b=K[g|0];c= -J[a>>2];J[c+20>>2]=93;J[c+24>>2]=J[a+436>>2];b=b|i<<8;c=b-2|0;J[J[a>>2]+28>>2]=c;Ab[J[J[a>>2]+4>>2]](a,1);J[h+4>>2]=e-1;J[h>>2]=g+1;if(b>>>0<3)break c;Ab[J[J[a+24>>2]+16>>2]](a,c);break c}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=94;Ab[J[J[a>>2]+4>>2]](a,1);break c}if(Ab[J[J[a+460>>2]+28>>2]](a)|0)break c;b=0;break a}if(Ab[J[(J[a+460>>2]+(b<<2)|0)-864>>2]](a)|0)break c;b=0;break a}h=J[a+24>>2];d=J[h+4>>2];if(!d){if(!(Ab[J[h+12>>2]](a)|0)){b=0;break a}d=J[h+4>>2]}c=J[h>>2];b=K[c|0];e=d-1|0;if(e)c=c+1|0;else{if(!(Ab[J[h+ -12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];c=J[h>>2]}if((K[c|0]|b<<8)!=4){b=J[a>>2];J[b+20>>2]=12;Ab[J[b>>2]](a)}e=e-1|0;if(e)c=c+1|0;else{if(!(Ab[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];c=J[h>>2]}i=K[c|0];e=e-1|0;if(e)g=c+1|0;else{if(!(Ab[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];g=J[h>>2]}b=K[g|0];c=J[a>>2];J[c+20>>2]=84;j=c;c=b|i<<8;J[j+24>>2]=c;Ab[J[J[a>>2]+4>>2]](a,1);J[a+280>>2]=c;J[h+4>>2]=e-1;J[h>>2]=g+1}b=0;J[a+436>>2]=0;continue}break}xb=r+256|0;return b|0}function moa(a,b,c,d){a=a|0;b= -b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=Q(0),i=0,j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=0,o=0,p=Q(0),q=Q(0),r=0,s=0,t=0;n=xb-80|0;xb=n;a:{b:{if(M[a+16>>2]<=c>>>0)break b;J[n+76>>2]=0;J[n+68>>2]=0;J[n+72>>2]=0;f=J[a+20>>2];f=J[(f?f:169776)+12>>2];c:{if(K[a+12|0]){f=f+(c<<1)|0;o=K[f|0]|K[f+1|0]<<8;o=((o<<8|o>>>8)&65535)<<1;f=K[f+2|0]|K[f+3|0]<<8;f=((f<<8|f>>>8)&65535)<<1;break c}f=f+(c<<2)|0;o=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);o=o<<24|(o&65280)<<8|(o>>>8&65280|o>>>24);f=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<< -16|K[f+7|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24)}d:{e:{if(f>>>0>=o>>>0){g=J[a+24>>2];r=g?g:169776;if(f>>>0<=M[r+16>>2])break e}J[n+48>>2]=0;J[n+40>>2]=0;J[n+44>>2]=0;J[n+56>>2]=-1;J[n+60>>2]=0;J[n+52>>2]=169776;break d}r=J[r+12>>2]+o|0;s=f-o|0;o=s>>>0<10?169776:r;f=K[o|0]|K[o+1|0]<<8;e=0;f:{if(!f)break f;e=1;if((f<<8|f>>>8)<<16>>16>0)break f;e=((f|0)==65535)<<1}J[n+60>>2]=e;J[n+56>>2]=c;J[n+52>>2]=o;J[n+48>>2]=0;J[n+44>>2]=s;J[n+40>>2]=r}J[n+32>>2]=0;J[n+16>>2]=0;J[n+24>>2]=0;J[n+28>>2]= -0;J[195395]=0;J[n+8>>2]=0;J[n+12>>2]=0;r=La(733,n+40|0,b|0,a|0,n+68|0,0,0,0,1,1,0,n+8|0,0,0,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;g:{if(!r)break g;a=J[n+72>>2];b=a-4|0;b=a>>>0>>0?a:b;if(!b)break g;a=J[n+76>>2];t=a+P(b,12)|0;s=d+32|0;o=d+20|0;b=d;while(1){c=H[a+8|0]&1;d=J[b>>2];h=Q(N[a+4>>2]*N[d+68>>2]);j=Q(N[a>>2]*N[d+64>>2]);h:{if(!K[b+8|0]){if(c){N[b+16>>2]=h;N[b+12>>2]=j;H[b+8|0]=1;c=J[b+4>>2];d=c+16|0;g=J[c+12>>2];f=J[c+8>>2];if(K[c+4|0]){if(J[d>>2]){l=N[c+20>>2];k=N[c+24>>2];if(!(l== -N[c+28>>2]&k==N[c+32>>2])){i=J[f+16>>2];e=J[f+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,f|0,g|0,d|0,Q(l),Q(k),e|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[f+28>>2];e=J[f+32>>2];if(e)e=J[e+16>>2];else e=0;J[195395]=0;ia(i|0,f|0,g|0,d|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break a;J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0}N[c+32>>2]=h;N[c+28>>2]=j;break h}l=N[c>>2];if(J[c+16>>2]){m=N[c+20>>2];k=N[c+24>>2];if(!(m==N[c+28>>2]&k==N[c+32>>2])){i=J[f+16>>2];e=J[f+ -32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,f|0,g|0,d|0,Q(m),Q(k),e|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[f+28>>2];e=J[f+32>>2];if(e)e=J[e+16>>2];else e=0;J[195395]=0;ia(i|0,f|0,g|0,d|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break a;J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0}N[c+32>>2]=h;N[c+28>>2]=Q(h*l)+j;break h}if(K[o|0]){N[b+52>>2]=h;N[b+48>>2]=j;H[b+44|0]=1;H[b+8|0]=1;k=Q(Q(h+N[b+28>>2])*Q(.5));N[b+16>>2]=k;h=Q(Q(j+N[b+24>>2])*Q(.5));N[b+12>>2]=h;c=J[b+ -4>>2];f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];i:{j:{if(K[c+4|0]){if(!J[f>>2])break i;l=N[c+20>>2];j=N[c+24>>2];if(!(l==N[c+28>>2]&j==N[c+32>>2])){i=J[d+16>>2];e=J[d+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,d|0,g|0,f|0,Q(l),Q(j),e|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+28>>2];e=J[d+32>>2];if(e)e=J[e+16>>2];else e=0;J[195395]=0;ia(i|0,d|0,g|0,f|0,e|0);d=J[195395];J[195395]=0;if((d|0)!=1)break j;break a}h=Q(Q(k*N[c>>2])+h);if(!J[c+16>>2])break i;l=N[c+20>>2];j=N[c+24>>2];if(!(l==N[c+ -28>>2]&j==N[c+32>>2])){i=J[d+16>>2];e=J[d+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,d|0,g|0,f|0,Q(l),Q(j),e|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+28>>2];e=J[d+32>>2];if(e)e=J[e+16>>2];else e=0;J[195395]=0;ia(i|0,d|0,g|0,f|0,e|0);d=J[195395];J[195395]=0;if((d|0)==1)break a}J[f>>2]=0;J[f+4>>2]=0;J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0}N[c+32>>2]=k;N[c+28>>2]=h;break h}N[b+28>>2]=h;N[b+24>>2]=j;H[b+20|0]=1;break h}k:{if(K[b+44|0]){if(c){c=J[b+4>>2];if(K[b+56|0]){f=c+16|0;g=J[c+ -12>>2];d=J[c+8>>2];k=N[b+52>>2];p=N[b+48>>2];l=N[b+64>>2];q=N[b+60>>2];l:{if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+24>>2];e=J[d+32>>2];if(e)e=J[e+12>>2];else e=0;J[195395]=0;Aa(i|0,d|0,g|0,f|0,Q(q),Q(l),Q(p),Q(k),Q(j),Q(h),e|0);d=J[195395];J[195395]=0;if((d|0)!=1)break l;break a}m=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}j=Q(Q(h*m)+j);p=Q(Q(k*m)+p);m=Q(Q(l*m)+q);i=J[d+24>> -2];e=J[d+32>>2];if(e)e=J[e+12>>2];else e=0;J[195395]=0;Aa(i|0,d|0,g|0,f|0,Q(m),Q(l),Q(p),Q(k),Q(j),Q(h),e|0);d=J[195395];J[195395]=0;if((d|0)==1)break a}N[c+32>>2]=h;N[c+28>>2]=j;H[b+56|0]=0;H[b+44|0]=0;break h}f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];k=N[b+52>>2];l=N[b+48>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(l),Q(k),Q(j),Q(h),e|0);d=J[195395];J[195395]= -0;if((d|0)==1)break a;N[c+32>>2]=h;N[c+28>>2]=j;H[b+44|0]=0;break h}m=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}j=Q(Q(h*m)+j);l=Q(Q(k*m)+l);i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(l),Q(k),Q(j),Q(h),e|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;N[c+32>>2]=h;N[c+28>>2]=j;H[b+44|0]=0;break h}c=J[b+4>>2];f=c+16|0;p=N[b+52>>2];l=Q(Q(h+p)*Q(.5));m=N[b+48>>2];k=Q(Q(j+m)*Q(.5));g=J[c+12>>2];d=J[c+8>> -2];m:{if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}break m}q=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}k=Q(Q(l*q)+k);m=Q(Q(p*q)+m)}i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(m),Q(p),Q(k),Q(l),e|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;N[c+32>>2]=l;N[c+28>>2]=k;break k}if(!c)break k;c=J[b+4>>2];f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];if(K[c+4| -0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+16>>2];e=J[d+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,d|0,g|0,f|0,Q(j),Q(h),e|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;N[c+32>>2]=h;N[c+28>>2]=j;break h}k=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}k=Q(Q(h*k)+j);i=J[d+16>>2];e=J[d+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,d|0,g|0,f|0,Q(k),Q(h),e|0);d=J[195395];J[195395]= -0;if((d|0)==1)break a;N[c+32>>2]=h;N[c+28>>2]=k;break h}N[b+52>>2]=h;N[b+48>>2]=j;H[b+44|0]=1}if(K[a+9|0]){c=K[b+44|0];n:{o:{p:{q:{if(K[o|0]){if(c){c=K[b+32|0]?s:o;j=N[b+52>>2];k=Q(Q(N[c+8>>2]+j)*Q(.5));l=N[b+48>>2];h=Q(Q(N[c+4>>2]+l)*Q(.5));c=J[b+4>>2];r:{if(K[b+56|0]){f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];m=N[b+64>>2];q=N[b+60>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+24>>2];e=J[d+32>>2];if(e)e=J[e+12>>2];else e=0;J[195395]=0;Aa(i| -0,d|0,g|0,f|0,Q(q),Q(m),Q(l),Q(j),Q(h),Q(k),e|0);break r}p=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}h=Q(Q(k*p)+h);l=Q(Q(j*p)+l);p=Q(Q(m*p)+q);i=J[d+24>>2];e=J[d+32>>2];if(e)e=J[e+12>>2];else e=0;J[195395]=0;Aa(i|0,d|0,g|0,f|0,Q(p),Q(m),Q(l),Q(j),Q(h),Q(k),e|0);break r}f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+ -8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(l),Q(j),Q(h),Q(k),e|0);break r}m=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}h=Q(Q(k*m)+h);l=Q(Q(j*m)+l);i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(l),Q(j),Q(h),Q(k),e|0)}d=J[195395];J[195395]=0;if((d|0)==1)break a;N[c+32>>2]=k;N[c+28>>2]=h;H[b+44|0]=0;if(!K[o|0])break q}c=J[b+4>>2];if(!K[b+8|0])break p;if(K[s|0]){f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];j=N[b+ -16>>2];h=N[b+12>>2];k=N[b+28>>2];p=N[b+24>>2];l=N[b+40>>2];q=N[b+36>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+24>>2];e=J[d+32>>2];if(e)e=J[e+12>>2];else e=0;J[195395]=0;Aa(i|0,d|0,g|0,f|0,Q(q),Q(l),Q(p),Q(k),Q(h),Q(j),e|0);break o}m=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}h=Q(Q(j*m)+h);p=Q(Q(k*m)+p);m=Q(Q(l*m)+q);i=J[d+24>>2];e=J[d+32>>2];if(e)e=J[e+12>>2];else e=0;J[195395]= -0;Aa(i|0,d|0,g|0,f|0,Q(m),Q(l),Q(p),Q(k),Q(h),Q(j),e|0);break o}f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];j=N[b+16>>2];h=N[b+12>>2];k=N[b+28>>2];l=N[b+24>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(l),Q(k),Q(h),Q(j),e|0);break o}m=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}h=Q(Q(j*m)+h);l=Q(Q(k*m)+l);i=J[d+ -20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(l),Q(k),Q(h),Q(j),e|0);break o}if(!c)break q;if(!K[b+8|0])break n;c=J[b+4>>2];if(K[b+56|0]){f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];j=N[b+16>>2];h=N[b+12>>2];k=N[b+52>>2];p=N[b+48>>2];l=N[b+64>>2];q=N[b+60>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+24>>2];e=J[d+32>>2];if(e)e=J[e+12>>2];else e=0;J[195395]=0;Aa(i|0,d|0,g|0,f|0,Q(q),Q(l),Q(p),Q(k),Q(h),Q(j),e| -0);break o}m=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}h=Q(Q(j*m)+h);p=Q(Q(k*m)+p);m=Q(Q(l*m)+q);i=J[d+24>>2];e=J[d+32>>2];if(e)e=J[e+12>>2];else e=0;J[195395]=0;Aa(i|0,d|0,g|0,f|0,Q(m),Q(l),Q(p),Q(k),Q(h),Q(j),e|0);break o}f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];j=N[b+16>>2];h=N[b+12>>2];k=N[b+52>>2];l=N[b+48>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+20>>2];e=J[d+32>>2];if(e)e= -J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(l),Q(k),Q(h),Q(j),e|0);break o}m=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}h=Q(Q(j*m)+h);l=Q(Q(k*m)+l);i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(l),Q(k),Q(h),Q(j),e|0);break o}if(!K[b+8|0])break n;c=J[b+4>>2];f=c+16|0;j=N[b+16>>2];h=N[b+12>>2];g=J[c+12>>2];d=J[c+8>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]= -0;if((e|0)==1)break a}i=J[d+16>>2];e=J[d+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,d|0,g|0,f|0,Q(h),Q(j),e|0);break o}k=N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}h=Q(Q(j*k)+h);i=J[d+16>>2];e=J[d+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,d|0,g|0,f|0,Q(h),Q(j),e|0);break o}f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];j=N[b+28>>2];h=N[b+24>>2];s:{t:{if(K[c+4|0]){k=h;if(!J[f>>2])break s;l=N[c+20>>2];k=N[c+24>>2];if(!(l==N[c+28>>2]&k== -N[c+32>>2])){i=J[d+16>>2];e=J[d+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,d|0,g|0,f|0,Q(l),Q(k),e|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+28>>2];e=J[d+32>>2];if(e)e=J[e+16>>2];else e=0;J[195395]=0;ia(i|0,d|0,g|0,f|0,e|0);d=J[195395];J[195395]=0;k=h;break t}k=Q(Q(j*N[c>>2])+h);if(!J[c+16>>2])break s;m=N[c+20>>2];l=N[c+24>>2];if(!(m==N[c+28>>2]&l==N[c+32>>2])){i=J[d+16>>2];e=J[d+32>>2];if(e)e=J[e+4>>2];else e=0;J[195395]=0;ta(i|0,d|0,g|0,f|0,Q(m),Q(l),e|0);e=J[195395];J[195395]= -0;if((e|0)==1)break a}i=J[d+28>>2];e=J[d+32>>2];if(e)e=J[e+16>>2];else e=0;J[195395]=0;ia(i|0,d|0,g|0,f|0,e|0);d=J[195395];J[195395]=0}if((d|0)==1)break a;J[f>>2]=0;J[f+4>>2]=0;J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0}N[c+32>>2]=j;N[c+28>>2]=k;c=J[b+4>>2];f=c+16|0;g=J[c+12>>2];d=J[c+8>>2];if(K[c+4|0]){if(!J[f>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(h),Q(j),Q(h),Q(j),e|0);break o}k= -N[c>>2];if(!J[c+16>>2]){J[195395]=0;fa(734,d|0,g|0,f|0);e=J[195395];J[195395]=0;if((e|0)==1)break a}h=Q(Q(j*k)+h);i=J[d+20>>2];e=J[d+32>>2];if(e)e=J[e+8>>2];else e=0;J[195395]=0;wa(i|0,d|0,g|0,f|0,Q(h),Q(j),Q(h),Q(j),e|0)}d=J[195395];J[195395]=0;if((d|0)==1)break a;N[c+32>>2]=j;N[c+28>>2]=h}H[b+56|0]=0;J[b+52>>2]=J[b+64>>2];c=J[b+60>>2];J[b+44>>2]=J[b+56>>2];J[b+48>>2]=c;J[o+8>>2]=J[b+64>>2];c=J[b+60>>2];J[o>>2]=J[b+56>>2];J[o+4>>2]=c;J[b+16>>2]=J[b+64>>2];c=J[b+60>>2];J[b+8>>2]=J[b+56>>2];J[b+12>> -2]=c;c=J[b+4>>2];d=c+16|0;if(J[c+16>>2]){g=J[c+12>>2];f=J[c+8>>2];k=N[c+20>>2];h=N[c+24>>2];if(!(k==N[c+28>>2]&h==N[c+32>>2])){e=J[f+16>>2];c=J[f+32>>2];if(c)c=J[c+4>>2];else c=0;J[195395]=0;ta(e|0,f|0,g|0,d|0,Q(k),Q(h),c|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}e=J[f+28>>2];c=J[f+32>>2];if(c)c=J[c+16>>2];else c=0;J[195395]=0;ia(e|0,f|0,g|0,d|0,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0}a=a+12|0;if((t|0)!=(a|0))continue;break}}if(!J[n+ -68>>2])break b;J[n+72>>2]=0;Kb(J[n+76>>2])}xb=n+80|0;return r|0}a=Z()|0;if(J[n+68>>2]){J[n+72>>2]=0;Kb(J[n+76>>2])}ba(a|0);B()}function zha(a){a=a|0;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;a:{b:{c:{d:{e:{f:{g:{c=J[a+20>>2];switch(c-202|0){case 2:break c;case 1:break f;case 0:break g;default:break e}}m=Ab[J[J[a+4>>2]>>2]](a,1,28)|0;J[a+440>>2]=m;J[m+8>>2]=0;J[m+4>>2]=1354;J[m>>2]=1355;CE(a);b=Ab[J[J[a+4>>2]>>2]](a,1,1408)|0;d=b+256|0;J[a+332>>2]= -d;c=Nb(b,0,256);while(1){H[e+d|0]=e;b=e|1;H[b+d|0]=b;b=e|2;H[b+d|0]=b;b=e|3;H[b+d|0]=b;b=e|4;H[b+d|0]=b;b=e|5;H[b+d|0]=b;b=e|6;H[b+d|0]=b;b=e|7;H[b+d|0]=b;e=e+8|0;if((e|0)!=256)continue;break}Nb(c+512|0,255,384);Nb(c+896|0,0,384);Mb(c+1280|0,J[a+332>>2],128);J[m+12>>2]=0;b=BE(a);J[m+20>>2]=0;J[m+24>>2]=0;J[m+16>>2]=b;h:{if(!J[a+84>>2]){J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;break h}if(!J[a+64>>2]){J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0}if(J[a+68>>2]){b=J[a>>2];J[b+20>>2]=48;Ab[J[b>>2]](a)}i:{if(J[a+ -120>>2]!=3){J[a+136>>2]=0;J[a+108>>2]=0;J[a+100>>2]=1;J[a+104>>2]=0;break i}if(J[a+136>>2]){J[a+104>>2]=1;break i}if(J[a+92>>2]){J[a+108>>2]=1;break i}J[a+100>>2]=1}if(J[a+100>>2]){b=Ab[J[J[a+4>>2]>>2]](a,1,88)|0;J[a+480>>2]=b;J[b+68>>2]=0;J[b+12>>2]=1375;J[b+8>>2]=1376;J[b>>2]=1377;J[b+52>>2]=0;if(J[a+120>>2]>=5){b=J[a>>2];J[b+20>>2]=57;J[b+24>>2]=4;Ab[J[J[a>>2]>>2]](a)}k=J[a+96>>2];if((k|0)>=257){b=J[a>>2];J[b+20>>2]=59;J[b+24>>2]=256;Ab[J[J[a>>2]>>2]](a);k=J[a+96>>2]}j=J[a+120>>2];j:{if((j|0)>= -2){b=j-1|0;c=b&-8;e=b&7;b=j-2>>>0<7;d=1;while(1){g=0;h=d;d=d+1|0;i=d;if(!b)while(1){i=P(P(P(P(P(P(P(P(d,i),d),d),d),d),d),d),d);g=g+8|0;if((c|0)!=(g|0))continue;break}g=0;if(e)while(1){i=P(d,i);g=g+1|0;if((e|0)!=(g|0))continue;break}if((i|0)<=(k|0))continue;break}break j}h=(k|0)<=1?1:k;i=h+1|0}n=J[a+480>>2];c=1;if(h>>>0<=1){b=J[a>>2];J[b+24>>2]=i;J[b+20>>2]=58;Ab[J[J[a>>2]>>2]](a)}k:{if((j|0)<=0)break k;f=n+32|0;l=j&3;d=0;l:{if(j>>>0<4){i=0;break l}e=j&-4;i=0;b=0;while(1){g=i<<2;J[g+f>>2]=h;J[f+(g| -4)>>2]=h;J[f+(g|8)>>2]=h;J[f+(g|12)>>2]=h;i=i+4|0;c=P(P(P(P(c,h),h),h),h);b=b+4|0;if((e|0)!=(b|0))continue;break}}if(l)while(1){J[f+(i<<2)>>2]=h;i=i+1|0;c=P(c,h);d=d+1|0;if((l|0)!=(d|0))continue;break}l=j-1|0;m:{if(J[a+44>>2]!=2){b=J[f>>2];g=b+1|0;d=P(g,(c|0)/(b|0)|0);if((k|0)<(d|0))break k;i=0;b=f;break m}e=n+36|0;b=J[e>>2];g=b+1|0;d=P(g,(c|0)/(b|0)|0);if((k|0)<(d|0))break k;i=0;b=e;while(1){c=d;J[b>>2]=g;if((i|0)!=(l|0)){i=i+1|0;b=f+(J[(i<<2)+248656>>2]<<2)|0;h=J[b>>2];g=h+1|0;d=P(g,(c|0)/(h|0)| -0);if((k|0)>=(d|0))continue}i=0;b=e;d=J[b>>2];g=d+1|0;d=P(g,(c|0)/(d|0)|0);if((k|0)>=(d|0))continue;break}break k}while(1){c=d;J[b>>2]=g;if((i|0)!=(l|0)){i=i+1|0;b=f+(i<<2)|0;e=J[b>>2];g=e+1|0;d=P(g,(c|0)/(e|0)|0);if((k|0)>=(d|0))continue}i=0;b=f;e=J[b>>2];g=e+1|0;d=P(g,(c|0)/(e|0)|0);if((k|0)>=(d|0))continue;break}}b=J[a+120>>2];e=J[a>>2];J[e+24>>2]=c;n:{if((b|0)==3){J[e+28>>2]=J[n+32>>2];J[e+32>>2]=J[n+36>>2];J[e+36>>2]=J[n+40>>2];i=96;b=e;break n}i=97;b=J[a>>2]}J[e+20>>2]=i;Ab[J[b+4>>2]](a,1); -t=Ab[J[J[a+4>>2]+8>>2]](a,1,c,J[a+120>>2])|0;d=J[a+120>>2];if((d|0)>0){e=c;while(1){f=e;b=s<<2;r=J[(b+n|0)+32>>2];e=(e|0)/(r|0)|0;if(!((r|0)<=0|(e|0)<=0)){o=b+t|0;k=r-1|0;j=k>>>1|0;g=e&-4;u=e&3;p=0;l=e>>>0<4;while(1){i=P(e,p);if((i|0)<(c|0)){q=(j+P(p,255)|0)/(k|0)|0;while(1){b=0;d=0;h=0;if(!l)while(1){H[(J[o>>2]+i|0)+d|0]=q;H[(J[o>>2]+i|0)+(d|1)|0]=q;H[(J[o>>2]+i|0)+(d|2)|0]=q;H[(J[o>>2]+i|0)+(d|3)|0]=q;d=d+4|0;h=h+4|0;if((g|0)!=(h|0))continue;break}if(u)while(1){H[(J[o>>2]+i|0)+d|0]=q;d=d+1|0;b= -b+1|0;if((u|0)!=(b|0))continue;break}i=f+i|0;if((i|0)<(c|0))continue;break}}p=p+1|0;if((r|0)!=(p|0))continue;break}d=J[a+120>>2]}s=s+1|0;if((s|0)<(d|0))continue;break}}J[n+20>>2]=c;J[n+16>>2]=t;uE(a);if(!(J[a+88>>2]!=2|J[a+120>>2]<=0)){c=(J[a+112>>2]<<1)+4|0;b=J[a+480>>2];d=0;while(1){v=b+(d<<2)|0,w=Ab[J[J[a+4>>2]+4>>2]](a,1,c)|0,J[v+68>>2]=w;d=d+1|0;if((d|0)>2])continue;break}}J[m+20>>2]=J[a+480>>2]}if(!(J[a+108>>2]|J[a+104>>2]))break h;d=0;f=Ab[J[J[a+4>>2]>>2]](a,1,44)|0;J[a+480>>2]=f; -J[f+40>>2]=0;J[f+32>>2]=0;J[f+12>>2]=1383;J[f>>2]=1384;if(J[a+120>>2]!=3){b=J[a>>2];J[b+20>>2]=48;Ab[J[b>>2]](a)}v=f,w=Ab[J[J[a+4>>2]>>2]](a,1,128)|0,J[v+24>>2]=w;while(1){b=Ab[J[J[a+4>>2]+4>>2]](a,1,4096)|0;c=d<<2;J[c+J[f+24>>2]>>2]=b;b=Ab[J[J[a+4>>2]+4>>2]](a,1,4096)|0;J[J[f+24>>2]+(c|4)>>2]=b;d=d+2|0;if((d|0)!=32)continue;break}J[f+28>>2]=1;o:{if(J[a+108>>2]){d=8;c=58;e=J[a+96>>2];p:{if((e|0)>=8){if(e>>>0<257)break p;d=256;c=59}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=c;Ab[J[J[a>>2]>>2]](a)}b=Ab[J[J[a+ -4>>2]+8>>2]](a,1,e,3)|0;J[f+20>>2]=e;J[f+16>>2]=b;break o}J[f+16>>2]=0}if(J[a+88>>2]){J[a+88>>2]=2;v=f,w=Ab[J[J[a+4>>2]+4>>2]](a,1,P(J[a+112>>2],6)+12|0)|0,J[v+32>>2]=w;tE(a)}J[m+24>>2]=J[a+480>>2]}if(!J[a+68>>2]){q:{if(J[m+16>>2]){g=0;c=Ab[J[J[a+4>>2]>>2]](a,1,48)|0;J[a+472>>2]=c;J[c+8>>2]=0;J[c>>2]=1390;b=P(J[a+120>>2],J[a+112>>2]);J[c+40>>2]=b;r:{if(J[a+316>>2]==2){J[c+12>>2]=1391;J[c+4>>2]=1392;g=Ab[J[J[a+4>>2]+4>>2]](a,1,b)|0;break r}J[c+12>>2]=1393;J[c+4>>2]=1394}J[c+32>>2]=g;b=J[a+472>>2]; -v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+20>>2]=w;v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+24>>2]=w;d=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+28>>2]=d;e=J[b+24>>2];c=J[b+20>>2];b=J[b+16>>2];g=0;h=-128;while(1){f=g<<2;J[f+b>>2]=P(h,91881)+32768>>16;J[c+f>>2]=P(h,116130)+32768>>16;J[e+f>>2]=P(h,-46802);J[d+f>>2]=P(h,-22554)+32768;h=h+1|0;g=g+1|0;if((g|0)!=256)continue;break}break q}c=Ab[J[J[a+4>>2]>>2]](a,1,24)|0;J[a+476>>2]=c;J[c>>2]=1395;s:{t:{u:switch(J[a+ -40>>2]-1|0){case 0:if(J[a+36>>2]!=1)break t;break s;case 1:case 2:if(J[a+36>>2]!=3)break t;break s;case 3:case 4:if(J[a+36>>2]!=4)break t;break s;default:break u}if(J[a+36>>2]>0)break s}b=J[a>>2];J[b+20>>2]=11;Ab[J[b>>2]](a)}v:{w:{x:{y:{z:{b=J[a+44>>2];switch(b-1|0){case 3:break x;case 1:break y;case 0:break z;default:break w}}J[a+120>>2]=1;A:switch(J[a+40>>2]-1|0){case 0:case 2:J[c+4>>2]=1396;c=J[a+36>>2];if((c|0)<2)break v;b=c-1|0;d=b&7;e=J[a+216>>2];h=1;if(c-2>>>0>=7){b=b&-8;c=0;while(1){f=e+P(h, -88)|0;J[f+52>>2]=0;J[f+140>>2]=0;J[f+228>>2]=0;J[f+316>>2]=0;J[f+404>>2]=0;J[f+492>>2]=0;J[f+580>>2]=0;J[f+668>>2]=0;h=h+8|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}if(!d)break v;g=0;while(1){J[(e+P(h,88)|0)+52>>2]=0;h=h+1|0;g=g+1|0;if((d|0)!=(g|0))continue;break}break v;default:break A}b=J[a>>2];J[b+20>>2]=28;Ab[J[b>>2]](a);break v}J[a+120>>2]=3;B:switch(J[a+40>>2]-1|0){case 2:J[c+4>>2]=1397;b=J[a+476>>2];v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+8>>2]=w;v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+ -12>>2]=w;v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;d=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+20>>2]=d;e=J[b+16>>2];c=J[b+12>>2];b=J[b+8>>2];h=0;g=-128;while(1){f=h<<2;J[f+b>>2]=P(g,91881)+32768>>16;J[c+f>>2]=P(g,116130)+32768>>16;J[e+f>>2]=P(g,-46802);J[d+f>>2]=P(g,-22554)+32768;g=g+1|0;h=h+1|0;if((h|0)!=256)continue;break}break v;case 0:J[c+4>>2]=1398;break v;case 1:J[c+4>>2]=1399;break v;default:break B}b=J[a>>2];J[b+20>>2]=28;Ab[J[b>>2]](a);break v}J[a+120>>2]=4;C:switch(J[a+40>>2]-4|0){case 1:J[c+ -4>>2]=1400;b=J[a+476>>2];v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+8>>2]=w;v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+12>>2]=w;v=b,w=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;d=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+20>>2]=d;e=J[b+16>>2];c=J[b+12>>2];b=J[b+8>>2];h=0;g=-128;while(1){f=h<<2;J[f+b>>2]=P(g,91881)+32768>>16;J[c+f>>2]=P(g,116130)+32768>>16;J[e+f>>2]=P(g,-46802);J[d+f>>2]=P(g,-22554)+32768;g=g+1|0;h=h+1|0;if((h|0)!=256)continue;break}break v;case 0:J[c+4>>2]=1399;break v;default:break C}b= -J[a>>2];J[b+20>>2]=28;Ab[J[b>>2]](a);break v}if((b|0)==J[a+40>>2]){J[a+120>>2]=J[a+36>>2];J[c+4>>2]=1399;break v}b=J[a>>2];J[b+20>>2]=28;Ab[J[b>>2]](a)}J[a+124>>2]=J[a+84>>2]?1:J[a+120>>2];d=0;g=Ab[J[J[a+4>>2]>>2]](a,1,160)|0;J[a+472>>2]=g;J[g+8>>2]=0;J[g+4>>2]=1401;J[g>>2]=1402;if(J[a+304>>2]){b=J[a>>2];J[b+20>>2]=26;Ab[J[b>>2]](a)}if(J[a+36>>2]>0){k=J[a+216>>2];while(1){l=J[a+316>>2];f=J[a+312>>2];e=J[a+320>>2];c=J[k+36>>2];b=J[k+8>>2];j=g+(d<<2)|0;h=(P(J[k+40>>2],J[k+12>>2])|0)/J[a+324>>2]|0;J[j+ -100>>2]=h;c=(P(b,c)|0)/(e|0)|0;D:{if(!J[k+52>>2]){J[j+52>>2]=1403;break D}if(!((c|0)!=(f|0)|(h|0)!=(l|0))){J[j+52>>2]=1404;break D}b=(f|0)!=c<<1;E:{if(!(b|(h|0)!=(l|0))){J[j+52>>2]=1405;break E}if(!((l|0)!=h<<1|b)){J[j+52>>2]=1406;break E}F:{e=(f|0)/(c|0)|0;if(f-P(e,c)|0)break F;c=(l|0)/(h|0)|0;if(l-P(c,h)|0)break F;J[j+52>>2]=1407;b=d+g|0;H[b+150|0]=c;H[b+140|0]=e;break E}b=J[a>>2];J[b+20>>2]=39;Ab[J[b>>2]](a)}c=J[a+312>>2];b=(c+J[a+112>>2]|0)-1|0;v=j,w=Ab[J[J[a+4>>2]+8>>2]](a,1,b-((b|0)%(c|0)|0)| -0,J[a+316>>2])|0,J[v+12>>2]=w}k=k+88|0;d=d+1|0;if((d|0)>2])continue;break}}}b=J[a+108>>2];f=Ab[J[J[a+4>>2]>>2]](a,1,28)|0;J[a+452>>2]=f;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=1408;if(J[a+84>>2])G:{d=J[a+316>>2];J[f+16>>2]=d;e=P(J[a+120>>2],J[a+112>>2]);c=J[a+4>>2];if(b){b=(d+J[a+116>>2]|0)-1|0;v=f,w=Ab[J[c+16>>2]](a,1,0,e,b-((b|0)%(d|0)|0)|0,J[f+16>>2])|0,J[v+8>>2]=w;break G}v=f,w=Ab[J[c+8>>2]](a,1,e,d)|0,J[v+12>>2]=w}}e=0;c=Ab[J[J[a+4>>2]>>2]](a,1,84)|0;J[a+468>>2]=c;J[c>>2]=1412;if(J[a+36>>2]> -0){d=J[a+216>>2];while(1){b=Ab[J[J[a+4>>2]>>2]](a,1,256)|0;J[d+84>>2]=b;Nb(b,0,256);J[(c+(e<<2)|0)+44>>2]=-1;d=d+88|0;e=e+1|0;if((e|0)>2])continue;break}}H:{if(J[a+228>>2]){c=0;b=Ab[J[J[a+4>>2]>>2]](a,1,188)|0;J[a+464>>2]=b;J[b>>2]=1444;Nb(b+56|0,0,128);H[b+184|0]=113;I:{if(!J[a+224>>2])break I;b=Ab[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<8)|0;J[a+160>>2]=b;if(J[a+36>>2]<=0)break I;while(1){b=Nb(b,255,256)+256|0;c=c+1|0;if((c|0)>2])continue;break}}break H}c=0;e=Ab[J[J[a+4>>2]>>2]](a,1,216)| -0;J[a+464>>2]=e;J[e>>2]=1450;J:{if(!J[a+224>>2]){J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;b=e- -64|0;J[b>>2]=0;J[b+4>>2]=0;break J}b=Ab[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<8)|0;J[a+160>>2]=b;if(J[a+36>>2]>0)while(1){b=Nb(b,255,256)+256|0;c=c+1|0;if((c|0)>2])continue;break}J[e+52>>2]=0;J[e+56>>2]=0;J[e+44>>2]=0;J[e+48>>2]=0}}b=J[J[a+456>>2]+16>>2]?1:J[a+64>>2]!=0;e=0;f=Ab[J[J[a+4>>2]>>2]](a,1,116)|0;J[a+448>>2]=f;J[f+112>>2]=0;J[f+8>>2]=1457;J[f>>2]=1458;K:{if(b){if(J[a+ -36>>2]>0){d=J[a+216>>2];while(1){c=J[d+8>>2];b=(c+J[d+28>>2]|0)-1|0;h=b-((b|0)%(c|0)|0)|0;c=J[d+12>>2];b=(c+J[d+32>>2]|0)-1|0;v=f+(e<<2)|0,w=Ab[J[J[a+4>>2]+20>>2]](a,1,1,h,b-((b|0)%(c|0)|0)|0,J[a+224>>2]?P(c,3):c)|0,J[v+72>>2]=w;d=d+88|0;e=e+1|0;if((e|0)>2])continue;break}}J[f+12>>2]=1459;J[f+4>>2]=1460;J[f+16>>2]=f+72;break K}b=Ab[J[J[a+4>>2]+4>>2]](a,1,1280)|0;J[f+32>>2]=b;J[f+12>>2]=1461;J[f+4>>2]=1462;J[f+68>>2]=b+1152;J[f- -64>>2]=b+1024;J[f+60>>2]=b+896;J[f+56>>2]=b+768;J[f+52>>2]=b+ -640;J[f+48>>2]=b+512;J[f+44>>2]=b+384;J[f+40>>2]=b+256;J[f+36>>2]=b+128;J[f+16>>2]=0}if(!J[a+68>>2]){e=0;g=Ab[J[J[a+4>>2]>>2]](a,1,80)|0;J[a+444>>2]=g;J[g>>2]=1360;d=J[a+324>>2];L:{if(J[J[a+472>>2]+8>>2]){if((d|0)<=1){b=J[a>>2];J[b+20>>2]=48;Ab[J[b>>2]](a);d=J[a+324>>2]}j=J[a+444>>2];b=Ab[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<3)|0;J[j+56>>2]=b;c=J[a+36>>2];J[j+60>>2]=b+(c<<2);if((c|0)>0){l=d+4|0;b=J[a+216>>2];while(1){h=(P(J[b+40>>2],J[b+12>>2])|0)/J[a+324>>2]|0;f=P(h,l);c=Ab[J[J[a+4>>2]>>2]](a,1,f<<3)| -0;d=e<<2;c=c+(h<<2)|0;J[d+J[j+56>>2]>>2]=c;J[d+J[j+60>>2]>>2]=c+(f<<2);b=b+88|0;c=J[a+36>>2];e=e+1|0;if((c|0)>(e|0))continue;break}}d=J[a+324>>2]+2|0;break L}c=J[a+36>>2]}if((c|0)>0){b=J[a+216>>2];e=0;while(1){v=g+(e<<2)|0,w=Ab[J[J[a+4>>2]+8>>2]](a,1,P(J[b+36>>2],J[b+28>>2]),P((P(J[b+40>>2],J[b+12>>2])|0)/J[a+324>>2]|0,d))|0,J[v+8>>2]=w;b=b+88|0;e=e+1|0;if((e|0)>2])continue;break}}}Ab[J[J[a+4>>2]+24>>2]](a);Ab[J[J[a+456>>2]+8>>2]](a);d=J[a+8>>2];if(!(!J[J[a+456>>2]+16>>2]|(J[a+64>>2]|!d))){c= -J[a+224>>2];e=J[a+36>>2];J[d+4>>2]=0;b=J[a+328>>2];J[d+12>>2]=0;J[d+8>>2]=P(b,c?P(e,3)+2|0:e);J[d+16>>2]=J[a+108>>2]?3:2;J[m+12>>2]=J[m+12>>2]+1}b=207;if(J[a+64>>2])break b;J[a+20>>2]=203}M:{if(!J[J[a+456>>2]+16>>2])break M;e=J[a+8>>2];while(1){if(e)Ab[J[e>>2]](a);N:{b=Ab[J[J[a+456>>2]>>2]](a)|0;switch(b|0){case 0:break a;case 2:break M;default:break N}}e=J[a+8>>2];if(!e|(b&-3)!=1)continue;b=J[e+4>>2]+1|0;J[e+4>>2]=b;c=b;b=J[e+8>>2];if((c|0)<(b|0))continue;J[e+8>>2]=b+J[a+328>>2];continue}}J[a+152>> -2]=J[a+144>>2];break d}b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}if(J[a+20>>2]==204)break c;Ab[J[J[a+440>>2]>>2]](a);J[a+20>>2]=204;J[a+140>>2]=0}if(J[J[a+440>>2]+8>>2]){d=a+140|0;e=J[a+140>>2];while(1){b=J[a+116>>2];if(b>>>0>e>>>0){c=J[a+8>>2];if(c){J[c+8>>2]=b;J[c+4>>2]=e;Ab[J[c>>2]](a);e=J[a+140>>2]}b=0;Ab[J[J[a+444>>2]+4>>2]](a,0,d,0);c=e;e=J[a+140>>2];if((c|0)!=(e|0))continue;break a}Ab[J[J[a+440>>2]+4>>2]](a);Ab[J[J[a+440>>2]>>2]](a);e=0;J[a+140>>2]=0;if(J[J[a+440>>2]+8>>2])continue; -break}}b=J[a+68>>2]?206:205}J[a+20>>2]=b;b=1}return b|0}function jo(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,B=Q(0);k=xb-48|0;xb=k;a:{if((g|0)>=5){H[a+60|0]=K[241036];b=K[241032]|K[241033]<<8|(K[241034]<<16|K[241035]<<24);c=K[241028]|K[241029]<<8|(K[241030]<<16|K[241031]<<24);H[a+52|0]=c;H[a+53|0]=c>>>8;H[a+54|0]=c>>>16;H[a+55|0]=c>>>24;H[a+56|0]=b;H[a+57|0]=b>>>8;H[a+58|0]=b>>>16;H[a+59|0]=b>>>24;b=K[241024]|K[241025]<<8|(K[241026]<<16|K[241027]<< -24);c=K[241020]|K[241021]<<8|(K[241022]<<16|K[241023]<<24);H[a+44|0]=c;H[a+45|0]=c>>>8;H[a+46|0]=c>>>16;H[a+47|0]=c>>>24;H[a+48|0]=b;H[a+49|0]=b>>>8;H[a+50|0]=b>>>16;H[a+51|0]=b>>>24;b=K[241016]|K[241017]<<8|(K[241018]<<16|K[241019]<<24);c=K[241012]|K[241013]<<8|(K[241014]<<16|K[241015]<<24);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;H[a+40|0]=b;H[a+41|0]=b>>>8;H[a+42|0]=b>>>16;H[a+43|0]=b>>>24;b=K[241008]|K[241009]<<8|(K[241010]<<16|K[241011]<<24);c=K[241004]|K[241005]<<8|(K[241006]<< -16|K[241007]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[241E3]|K[241001]<<8|(K[241002]<<16|K[241003]<<24);c=K[240996]|K[240997]<<8|(K[240998]<<16|K[240999]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[240992]|K[240993]<<8|(K[240994]<<16|K[240995]<<24);c=K[240988]|K[240989]<<8|(K[240990]<<16|K[240991]<<24);H[a+12|0]=c;H[a+ -13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[240984]|K[240985]<<8|(K[240986]<<16|K[240987]<<24);c=K[240980]|K[240981]<<8|(K[240982]<<16|K[240983]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}i=J[b>>2];j=J[b+4>>2];if(j>>>0>=2){h=J[a+264>>2];s=K[i+!h|0]<<8|K[i+((h|0)!=0)|0]}b:{c:{t=P(s,12);if((i+t|0)+4>>>0<=J[c>>2]+d>>>0){if(s)break c;break b}b=K[241061]| -K[241062]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[241057]|K[241058]<<8|(K[241059]<<16|K[241060]<<24);c=K[241053]|K[241054]<<8|(K[241055]<<16|K[241056]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[241049]|K[241050]<<8|(K[241051]<<16|K[241052]<<24);c=K[241045]|K[241046]<<8|(K[241047]<<16|K[241048]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]= -b>>>24;b=K[241041]|K[241042]<<8|(K[241043]<<16|K[241044]<<24);c=K[241037]|K[241038]<<8|(K[241039]<<16|K[241040]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}w=g+1|0;x=e+5|0;y=e+37|0;z=e+77|0;v=e+196|0;h=a+4|0;while(1){n=J[b+4>>2];j=P(u,12)|2;p=j>>>0>n>>>0?n:j;j=p+J[b>>2]|0;m=0;o=0;i=0;d:{p=n-p|0;if(p>>>0<2)break d;n=J[a+264>>2];o=K[j+!n|0]<<8|K[j+((n|0)!=0)|0];if(p>>>0<4)break d;i=K[j+(n?3:2)|0]|K[j+(n?2:3)|0]<< -8;if(p>>>0>=8){e:{if(n){n=j+7|0;m=K[j+5|0]<<16|K[j+4|0]<<24|K[j+6|0]<<8;break e}n=j+4|0;m=K[j+6|0]<<16|K[j+7|0]<<24|K[j+5|0]<<8}m=m|K[n|0]}if(i>>>0<13)break d;o=0;a=K[241111]|K[241112]<<8|(K[241113]<<16|K[241114]<<24);b=K[241107]|K[241108]<<8|(K[241109]<<16|K[241110]<<24);H[h+24|0]=b;H[h+25|0]=b>>>8;H[h+26|0]=b>>>16;H[h+27|0]=b>>>24;H[h+28|0]=a;H[h+29|0]=a>>>8;H[h+30|0]=a>>>16;H[h+31|0]=a>>>24;a=K[241103]|K[241104]<<8|(K[241105]<<16|K[241106]<<24);b=K[241099]|K[241100]<<8|(K[241101]<<16|K[241102]<< -24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;a=K[241095]|K[241096]<<8|(K[241097]<<16|K[241098]<<24);b=K[241091]|K[241092]<<8|(K[241093]<<16|K[241094]<<24);H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[241087]|K[241088]<<8|(K[241089]<<16|K[241090]<<24);b=K[241083]|K[241084]<<8|(K[241085]<<16|K[241086]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]= -b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}m=P(J[(i<<2)+241152>>2],m);f:{if((m|0)>=5){n=0;if(p>>>0>=12){g:{if(J[a+264>>2]){n=j+11|0;j=K[j+9|0]<<16|K[j+8|0]<<24|K[j+10|0]<<8;break g}n=j+8|0;j=K[j+10|0]<<16|K[j+11|0]<<24|K[j+9|0]<<8}n=j|K[n|0]}if(n+m>>>0>d>>>0){o=0;a=K[241266]|K[241267]<<8|(K[241268]<<16|K[241269]<<24);b=K[241262]|K[241263]<<8|(K[241264]<<16|K[241265]<<24);H[h+30|0]=b;H[h+31|0]=b>>>8;H[h+32|0]=b>>>16;H[h+33|0]=b>>>24;H[h+34|0]=a;H[h+35| -0]=a>>>8;H[h+36|0]=a>>>16;H[h+37|0]=a>>>24;a=K[241260]|K[241261]<<8|(K[241262]<<16|K[241263]<<24);b=K[241256]|K[241257]<<8|(K[241258]<<16|K[241259]<<24);H[h+24|0]=b;H[h+25|0]=b>>>8;H[h+26|0]=b>>>16;H[h+27|0]=b>>>24;H[h+28|0]=a;H[h+29|0]=a>>>8;H[h+30|0]=a>>>16;H[h+31|0]=a>>>24;a=K[241252]|K[241253]<<8|(K[241254]<<16|K[241255]<<24);b=K[241248]|K[241249]<<8|(K[241250]<<16|K[241251]<<24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23| -0]=a>>>24;a=K[241244]|K[241245]<<8|(K[241246]<<16|K[241247]<<24);b=K[241240]|K[241241]<<8|(K[241242]<<16|K[241243]<<24);H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[241236]|K[241237]<<8|(K[241238]<<16|K[241239]<<24);b=K[241232]|K[241233]<<8|(K[241234]<<16|K[241235]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}j=J[c+4>>2];p=j>>>0>>0?j: -n;n=j-p|0;j=p+J[c>>2]|0;break f}n=p;p=p>>>0>=8?8:p;n=n-p|0;j=j+p|0}J[k+44>>2]=n;J[k+40>>2]=j;p=j+m|0;if(p>>>0>M[f>>2])J[f>>2]=p;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((o|0)<=37376){if((o|0)<=33433){N:switch(o-271|0){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break h;case 12:break l;case 11:break m;case 25:break u;case 3:break y;case 1:break L; -case 0:break M;default:break N}switch(o-513|0){case 1:break j;case 0:break k;default:break h}}if((o|0)<=36863){O:switch(o-33434|0){case 1:case 2:break h;case 0:break B;case 3:break G;default:break O}switch(o-34850|0){case 5:break o;case 0:break p;default:break h}}P:switch(o-36864|0){case 1:case 2:break h;case 3:break J;case 0:break K;default:break P}if((o|0)!=37122)break h;l=_d(a,k+40|0,i);if(!(R(l)<2147483648))break n;J[e+164>>2]=~~l;break h}if((o|0)<=37509)switch(o-37377|0){case 6:break q;case 7:break r; -case 3:break s;case 8:break z;case 0:break A;case 5:break C;case 9:break D;case 2:break E;case 1:case 4:break F;default:break h}Q:switch(o-41486|0){case 2:break t;case 1:break v;case 0:break w;default:break Q}if(o-40962>>>0<2)break x;if((o|0)!=37510)break h;R:{if(n>>>0>>0|(m|0)<=0)break R;while(1){m=m-1|0;i=m+j|0;if(K[i|0]!=32)break R;H[i|0]=0;if(m)continue;break}}if(n>>>0<5)break h;if(cd(j,241291,5))break H;if(!(K[j+5|0]&223))break I;m=j+5|0;i=204;break i}if(n>>>0<31)break h;oc(x,j,31);break h}if(n>>> -0<39)break h;oc(y,j,39);break h}if(n>>>0<4)break h;oc(e,j,4);break h}if(n>>>0<19)break h;oc(z,j,19);break h}if(K[j+6|0]&223){m=j+6|0;i=205;break i}if(K[j+7|0]&223){m=j+7|0;i=206;break i}if(K[j+8|0]&223){m=j+8|0;i=207;break i}if(!(K[j+9|0]&223))break h;m=j+9|0;i=208;break i}if(n>>>0<199)break h;oc(v,j,199);break h}A=e,B=Q(_d(a,k+40|0,i)),N[A+132>>2]=B;break h}if(N[e+132>>2]!=Q(0))break h;A=e,B=Q(Oh(_d(a,k+40|0,i)*.6931471824645996*.5)),N[A+132>>2]=B;break h}A=e,B=Q(_d(a,k+40|0,i)),N[A+192>>2]=B;break h}A= -e,B=Q(_d(a,k+40|0,i)),N[A+124>>2]=B;break h}A=e,B=Q(_d(a,k+40|0,i)),N[A+136>>2]=B;break h}A=e,B=Q(_d(a,k+40|0,i)),N[A+128>>2]=B;break h}if(N[e+128>>2]!=Q(0))break h;A=e,B=Q(1/Oh(_d(a,k+40|0,i)*.6931471824645996)),N[A+128>>2]=B;break h}l=_d(a,k+40|0,i);S:{if(R(l)<2147483648){i=~~l;break S}i=-2147483648}if(i&7){J[e+120>>2]=1;break h}J[e+120>>2]=0;break h}l=_d(a,k+40|0,i);T:{if(R(l)<2147483648){i=~~l;break T}i=-2147483648}J[e+108>>2]=i;if(i-9>>>0>4294967287)break h;H[h+24|0]=K[241321];i=K[241317]|K[241318]<< -8|(K[241319]<<16|K[241320]<<24);m=K[241313]|K[241314]<<8|(K[241315]<<16|K[241316]<<24);H[h+16|0]=m;H[h+17|0]=m>>>8;H[h+18|0]=m>>>16;H[h+19|0]=m>>>24;H[h+20|0]=i;H[h+21|0]=i>>>8;H[h+22|0]=i>>>16;H[h+23|0]=i>>>24;i=K[241309]|K[241310]<<8|(K[241311]<<16|K[241312]<<24);m=K[241305]|K[241306]<<8|(K[241307]<<16|K[241308]<<24);H[h+8|0]=m;H[h+9|0]=m>>>8;H[h+10|0]=m>>>16;H[h+11|0]=m>>>24;H[h+12|0]=i;H[h+13|0]=i>>>8;H[h+14|0]=i>>>16;H[h+15|0]=i>>>24;i=K[241301]|K[241302]<<8|(K[241303]<<16|K[241304]<<24);m=K[241297]| -K[241298]<<8|(K[241299]<<16|K[241300]<<24);H[h|0]=m;H[h+1|0]=m>>>8;H[h+2|0]=m>>>16;H[h+3|0]=m>>>24;H[h+4|0]=i;H[h+5|0]=i>>>8;H[h+6|0]=i>>>16;H[h+7|0]=i>>>24;J[e+108>>2]=0;break h}l=_d(a,k+40|0,i);U:{if(R(l)<2147483648){i=~~l;break U}i=-2147483648}if((i|0)<=J[a+260>>2])break h;J[a+260>>2]=i;break h}A=e,B=Q(_d(a,k+40|0,i)),N[A+168>>2]=B;break h}A=e,B=Q(_d(a,k+40|0,i)),N[A+172>>2]=B;break h}V:{W:{X:{Y:{l=_d(a,k+40|0,i);Z:{if(R(l)<2147483648){i=~~l;break Z}i=-2147483648}switch(i-1|0){case 4:break V;case 3:break W; -case 2:break X;case 0:case 1:break Y;default:break h}}J[e+188>>2]=1065353216;break h}J[e+188>>2]=1053397798;break h}J[e+188>>2]=1025589893;break h}J[e+188>>2]=941957453;break h}_:{$:{aa:{ba:{l=_d(a,k+40|0,i);ca:{if(R(l)<2147483648){i=~~l;break ca}i=-2147483648}switch(i-1|0){case 4:break _;case 3:break $;case 2:break aa;case 0:case 1:break ba;default:break h}}J[e+176>>2]=1065353216;break h}J[e+176>>2]=1053397798;break h}J[e+176>>2]=1025589893;break h}J[e+176>>2]=941957453;break h}A=e,B=Q(_d(a,k+40| -0,i)),N[A+144>>2]=B;break h}l=_d(a,k+40|0,i);if(R(l)<2147483648){J[e+148>>2]=~~l;break h}J[e+148>>2]=-2147483648;break h}l=_d(a,k+40|0,i);if(R(l)<2147483648){J[e+152>>2]=~~l;break h}J[e+152>>2]=-2147483648;break h}l=_d(a,k+40|0,i);if(R(l)<2147483648){J[e+156>>2]=~~l;break h}J[e+156>>2]=-2147483648;break h}l=_d(a,k+40|0,i);da:{if(R(l)<2147483648){i=~~l;break da}i=-2147483648}J[e+160>>2]=i;if((i|0)>49)break h;J[e+160>>2]=P(i,200);break h}J[e+164>>2]=-2147483648;break h}A=e,B=Q(_d(a,k+40|0,i)),N[A+180>> -2]=B;break h}A=e,B=Q(_d(a,k+40|0,i)),N[A+184>>2]=B;break h}l=_d(a,k+40|0,i);if(l<4294967296&l>=0){q=~~l>>>0;break h}q=0;break h}l=_d(a,k+40|0,i);if(l<4294967296&l>=0){r=~~l>>>0;break h}r=0;break h}if(i>>>0>n>>>0)break h;oc(v,m,199)}ea:{if((o|0)!=40965&(o|0)!=34665|n>>>0<4)break ea;fa:{if(J[a+264>>2]){o=K[j+1|0]<<16|K[j|0]<<24|K[j+2|0]<<8;j=j+3|0;break fa}o=K[j+2|0]<<16|K[j+3|0]<<24|K[j+1|0]<<8}j=K[j|0]|o;if(j>>>0<9)break ea;i=J[c+4>>2];if(i>>>0>>0){o=0;a=K[241391]|K[241392]<<8;H[h+24|0]=a;H[h+ -25|0]=a>>>8;a=K[241387]|K[241388]<<8|(K[241389]<<16|K[241390]<<24);b=K[241383]|K[241384]<<8|(K[241385]<<16|K[241386]<<24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;a=K[241379]|K[241380]<<8|(K[241381]<<16|K[241382]<<24);b=K[241375]|K[241376]<<8|(K[241377]<<16|K[241378]<<24);H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[241371]|K[241372]<< -8|(K[241373]<<16|K[241374]<<24);b=K[241367]|K[241368]<<8|(K[241369]<<16|K[241370]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}o=J[c>>2];J[k+24>>2]=o;J[k+32>>2]=j+o;J[k+28>>2]=i;J[k+36>>2]=i-j;jo(a,k+32|0,k+24|0,d,e,f,w)}u=u+1|0;if((u|0)!=(s|0))continue;break}j=J[b+4>>2]}ga:{if(t+4>>>0>j>>>0)break ga;b=J[b>>2]+(t|2)|0;j=J[a+264>>2];b=K[b+!j|0]<<8|K[b+((j|0)!=0)|0];if(!b)break ga;j=J[c+4>>2];if(j>>>0>>0){o=0;b=K[241391]| -K[241392]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[241387]|K[241388]<<8|(K[241389]<<16|K[241390]<<24);c=K[241383]|K[241384]<<8|(K[241385]<<16|K[241386]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[241379]|K[241380]<<8|(K[241381]<<16|K[241382]<<24);c=K[241375]|K[241376]<<8|(K[241377]<<16|K[241378]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]= -b>>>24;b=K[241371]|K[241372]<<8|(K[241373]<<16|K[241374]<<24);c=K[241367]|K[241368]<<8|(K[241369]<<16|K[241370]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}i=J[c>>2];J[k+8>>2]=i;J[k+16>>2]=b+i;J[k+12>>2]=j;J[k+20>>2]=j-b;jo(a,k+16|0,k+8|0,d,e,f,g+1|0)}o=1;if(!r|!q|q+r>>>0>d>>>0)break a;a=J[c>>2];J[e+456>>2]=r;J[e+452>>2]=a+q}xb=k+48|0;return o}function nn(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;j=xb-16|0;xb=j;a:{b:{c:{d:{if(!K[a+96|0])break d;J[j+4>>2]=103;J[j+8>>2]=0;H[j+15|0]=1;b=J[a+76>>2];J[195395]=0;ia(1953,b|0,j+4|0,0,0);b=J[195395];J[195395]=0;if((b|0)==1)break c;if(H[j+15|0]<0)Kb(J[j+4>>2]);H[a+96|0]=0;d=xb+-64|0;xb=d;l=J[a+88>>2];f=J[a+84>>2];i=j+4|0;J[i+8>>2]=0;J[i>>2]=0;J[i+4>>2]=0;e:{f:{if((f|0)!=(l|0))while(1){g:{h:{i:{j:{k:{l:switch(J[f+24>>2]-1|0){case 0:c=K[i+11|0];e=c<<24>>24<0;h=e?J[i>>2]:i;b=h;k=e?J[i+4>>2]:c;g=b+(k<<2)|0;e=g;c=b;if(k){m:while(1){c=b;while(1){n:{b= -c+4|0;if(J[c>>2]==60){if((b|0)==(g|0))break n;if(J[b>>2]!=99)continue m;if((g|0)==(c+8|0))break n;if(J[c+8>>2]!=108)continue m;if((g|0)==(c+12|0))break n;if(J[c+12>>2]!=105)continue m;if((g|0)==(c+16|0))break n;if(J[c+16>>2]!=112)continue m;if((g|0)==(c+20|0))break n;if(J[c+20>>2]!=80)continue m;if((g|0)==(c+24|0))break n;if(J[c+24>>2]!=97)continue m;if((g|0)==(c+28|0))break n;if(J[c+28>>2]!=116)continue m;if((g|0)==(c+32|0))break n;e=J[c+32>>2]==104?c:e;continue m}c=b;if((g|0)!=(b|0))continue}break}break}c= -e}b=(c|0)==(g|0)?-1:c-h>>2;if(b>>>0>k>>>0)break i;b=h+(b<<2)|0;c=g-b>>2;if((c|0)<=0)break i;while(1){b=ah(b,62,c);if(!b)break i;if(Ki(b,424664,1)){b=b+4|0;c=g-b>>2;if((c|0)>0)continue;break i}break}if((b|0)==(g|0))break i;g=b-h|0;if((g|0)==-4)break i;b=K[f+11|0];e=b<<24>>24<0;o:{p:{q:{r:{s:{t:{h=e?J[f+4>>2]:b;b=h+17|0;u:{if(b>>>0>=1073741808){J[195395]=0;ea(1800,d+32|0);a=J[195395];J[195395]=0;if((a|0)==1)break u;break f}if(b>>>0<=1){J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;H[d+43|0]=b;c=d+32|0;break s}c= -b|3;if(c>>>0<1073741823)break t;J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break f}b=Z()|0;break h}J[195395]=0;k=c+1|0;c=_(1078,k<<2)|0;m=J[195395];J[195395]=0;if((m|0)==1)break r;J[d+36>>2]=b;J[d+32>>2]=c;J[d+40>>2]=k|-2147483648}b=h<<2;n=qc(Mb(c,425120,68)+68|0,e?J[f>>2]:f,b)+b|0,o=0,J[n>>2]=o;J[195395]=0;b=ca(1858,d+32|0,425192)|0;c=J[195395];J[195395]=0;if((c|0)==1)break q;J[d+56>>2]=J[b+8>>2];c=J[b+4>>2];J[d+48>>2]=J[b>>2];J[d+52>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]= -0;b=K[d+59|0];c=b<<24>>24<0;ha(3104,i|0,g>>2,(c?J[d+48>>2]:d+48|0)|0,(c?J[d+52>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break p;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+43|0]>=0)break i;Kb(J[d+32>>2]);break i}b=Z()|0;break h}b=Z()|0;break o}b=Z()|0;if(H[d+59|0]>=0)break o;Kb(J[d+48>>2])}if(H[d+43|0]>=0)break h;Kb(J[d+32>>2]);break h;case 1:b=K[i+11|0];c=b<<24>>24<0?J[i+4>>2]:b;if(!c){b=K[f+11|0];e=b<<24>>24<0;v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{g=e?J[f+4>>2]:b;c=g+14|0;F:{if(c>>>0>=1073741808){J[195395]= -0;ea(1800,d|0);break F}if(c>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=c;b=d;break D}b=c|3;if(b>>>0<1073741823)break E;J[195395]=0;ja(1292)}a=J[195395];J[195395]=0;if((a|0)!=1)break f;b=Z()|0;break h}J[195395]=0;h=b+1|0;b=_(1078,h<<2)|0;k=J[195395];J[195395]=0;if((k|0)==1)break C;J[d+4>>2]=c;J[d>>2]=b;J[d+8>>2]=h|-2147483648}c=J[106314];J[b+48>>2]=J[106313];J[b+52>>2]=c;c=J[106312];J[b+40>>2]=J[106311];J[b+44>>2]=c;c=J[106310];J[b+32>>2]=J[106309];J[b+36>>2]=c;c=J[106308];J[b+24>>2]=J[106307]; -J[b+28>>2]=c;c=J[106306];J[b+16>>2]=J[106305];J[b+20>>2]=c;c=J[106304];J[b+8>>2]=J[106303];J[b+12>>2]=c;c=J[106302];J[b>>2]=J[106301];J[b+4>>2]=c;c=b+56|0;b=g<<2;n=qc(c,e?J[f>>2]:f,b)+b|0,o=0,J[n>>2]=o;J[195395]=0;b=ca(1858,d|0,423936)|0;c=J[195395];J[195395]=0;if((c|0)==1)break B;J[d+24>>2]=J[b+8>>2];c=J[b+4>>2];J[d+16>>2]=J[b>>2];J[d+20>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;c=J[f+16>>2];e=J[f+12>>2];b=K[f+23|0];J[195395]=0;h=e;e=b<<24>>24<0;b=aa(1864,d+16|0,(e?h:f+12|0)|0,(e?c:b)|0)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break A;J[d+40>>2]=J[b+8>>2];c=J[b+4>>2];J[d+32>>2]=J[b>>2];J[d+36>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+32|0,425264)|0;c=J[195395];J[195395]=0;if((c|0)==1)break z;J[d+56>>2]=J[b+8>>2];c=J[b+4>>2];J[d+48>>2]=J[b>>2];J[d+52>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[d+59|0];c=b<<24>>24<0;aa(1864,i|0,(c?J[d+48>>2]:d+48|0)|0,(c?J[d+52>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break y;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+43|0]<0)Kb(J[d+ -32>>2]);if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+11|0]>=0)break g;Kb(J[d>>2]);break g}b=Z()|0;break h}b=Z()|0;break v}b=Z()|0;break w}b=Z()|0;break x}b=Z()|0;if(H[d+59|0]>=0)break x;Kb(J[d+48>>2])}if(H[d+43|0]>=0)break w;Kb(J[d+32>>2])}if(H[d+27|0]>=0)break v;Kb(J[d+16>>2])}if(H[d+11|0]>=0)break h;Kb(J[d>>2]);break h}e=J[f+16>>2];g=J[f+12>>2];b=K[f+23|0];J[195395]=0;h=c-11|0;c=b<<24>>24<0;ha(3104,i|0,h|0,(c?g:f+12|0)|0,(c?e:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break g;b=Z()|0;break h;case 2:c= -K[i+11|0];e=c<<24>>24<0;h=e?J[i>>2]:i;b=h;k=e?J[i+4>>2]:c;g=b+(k<<2)|0;e=g;c=b;if(k){G:while(1){c=b;while(1){H:{b=c+4|0;if(J[c>>2]==60){if((b|0)==(g|0))break H;if(J[b>>2]!=99)continue G;if((g|0)==(c+8|0))break H;if(J[c+8>>2]!=108)continue G;if((g|0)==(c+12|0))break H;if(J[c+12>>2]!=105)continue G;if((g|0)==(c+16|0))break H;if(J[c+16>>2]!=112)continue G;if((g|0)==(c+20|0))break H;if(J[c+20>>2]!=80)continue G;if((g|0)==(c+24|0))break H;if(J[c+24>>2]!=97)continue G;if((g|0)==(c+28|0))break H;if(J[c+ -28>>2]!=116)continue G;if((g|0)==(c+32|0))break H;e=J[c+32>>2]==104?c:e;continue G}c=b;if((g|0)!=(b|0))continue}break}break}c=e}b=(c|0)==(g|0)?-1:c-h>>2;if(b>>>0>k>>>0)break k;b=h+(b<<2)|0;c=g-b>>2;if((c|0)<=0)break k;while(1){b=ah(b,62,c);if(!b)break k;if(Ki(b,424664,1)){b=b+4|0;c=g-b>>2;if((c|0)>0)continue;break k}break}if((b|0)==(g|0))break k;b=b-h|0;if((b|0)==-4)break k;J[195395]=0;aa(1954,i|0,b>>2,425312)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break k;break j;case 4:break l;default:break g}b= -K[f+11|0];e=b<<24>>24<0;I:{J:{K:{L:{M:{N:{O:{P:{g=e?J[f+4>>2]:b;c=g+14|0;Q:{if(c>>>0>=1073741808){J[195395]=0;ea(1800,d+16|0);break Q}if(c>>>0<=1){J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;H[d+27|0]=c;b=d+16|0;break O}b=c|3;if(b>>>0<1073741823)break P;J[195395]=0;ja(1292)}a=J[195395];J[195395]=0;if((a|0)!=1)break f;b=Z()|0;break h}J[195395]=0;h=b+1|0;b=_(1078,h<<2)|0;k=J[195395];J[195395]=0;if((k|0)==1)break N;J[d+20>>2]=c;J[d+16>>2]=b;J[d+24>>2]=h|-2147483648}c=J[106314];J[b+48>>2]=J[106313];J[b+52>> -2]=c;c=J[106312];J[b+40>>2]=J[106311];J[b+44>>2]=c;c=J[106310];J[b+32>>2]=J[106309];J[b+36>>2]=c;c=J[106308];J[b+24>>2]=J[106307];J[b+28>>2]=c;c=J[106306];J[b+16>>2]=J[106305];J[b+20>>2]=c;c=J[106304];J[b+8>>2]=J[106303];J[b+12>>2]=c;c=J[106302];J[b>>2]=J[106301];J[b+4>>2]=c;c=b+56|0;b=g<<2;n=qc(c,e?J[f>>2]:f,b)+b|0,o=0,J[n>>2]=o;J[195395]=0;b=ca(1858,d+16|0,423936)|0;c=J[195395];J[195395]=0;if((c|0)==1)break M;J[d+40>>2]=J[b+8>>2];c=J[b+4>>2];J[d+32>>2]=J[b>>2];J[d+36>>2]=c;J[b>>2]=0;J[b+4>>2]=0; -J[b+8>>2]=0;c=J[f+16>>2];e=J[f+12>>2];b=K[f+23|0];J[195395]=0;h=e;e=b<<24>>24<0;b=aa(1864,d+32|0,(e?h:f+12|0)|0,(e?c:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break L;J[d+56>>2]=J[b+8>>2];c=J[b+4>>2];J[d+48>>2]=J[b>>2];J[d+52>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+48|0,425264)|0;c=J[195395];J[195395]=0;if((c|0)==1)break K;e=J[b>>2];J[d>>2]=J[b+4>>2];c=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[d+3|0]=c;H[d+4|0]=c>>>8;H[d+5|0]=c>>>16;H[d+6|0]=c>>>24;J[b>>2]=0;J[b+ -4>>2]=0;c=K[b+11|0];J[b+8>>2]=0;if(H[i+11|0]<0)Kb(J[i>>2]);J[i>>2]=e;b=K[d+3|0]|K[d+4|0]<<8|(K[d+5|0]<<16|K[d+6|0]<<24);H[i+7|0]=b;H[i+8|0]=b>>>8;H[i+9|0]=b>>>16;H[i+10|0]=b>>>24;J[i+4>>2]=J[d>>2];H[i+11|0]=c;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+27|0]>=0)break g;Kb(J[d+16>>2]);break g}b=Z()|0;break h}b=Z()|0;break I}b=Z()|0;break J}b=Z()|0;if(H[d+59|0]>=0)break J;Kb(J[d+48>>2])}if(H[d+43|0]>=0)break I;Kb(J[d+32>>2])}if(H[d+27|0]>=0)break h;Kb(J[d+16>>2]);break h}b=K[i+ -11|0];c=b<<24>>24<0?J[i+4>>2]:b;if(!c){b=K[f+11|0];e=b<<24>>24<0;R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{g=e?J[f+4>>2]:b;c=g+14|0;$:{if(c>>>0>=1073741808){J[195395]=0;ea(1800,d|0);break $}if(c>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=c;b=d;break Z}b=c|3;if(b>>>0<1073741823)break _;J[195395]=0;ja(1292)}a=J[195395];J[195395]=0;if((a|0)!=1)break f;b=Z()|0;break h}J[195395]=0;h=b+1|0;b=_(1078,h<<2)|0;k=J[195395];J[195395]=0;if((k|0)==1)break Y;J[d+4>>2]=c;J[d>>2]=b;J[d+8>>2]=h|-2147483648}c=J[106314]; -J[b+48>>2]=J[106313];J[b+52>>2]=c;c=J[106312];J[b+40>>2]=J[106311];J[b+44>>2]=c;c=J[106310];J[b+32>>2]=J[106309];J[b+36>>2]=c;c=J[106308];J[b+24>>2]=J[106307];J[b+28>>2]=c;c=J[106306];J[b+16>>2]=J[106305];J[b+20>>2]=c;c=J[106304];J[b+8>>2]=J[106303];J[b+12>>2]=c;c=J[106302];J[b>>2]=J[106301];J[b+4>>2]=c;c=b+56|0;b=g<<2;n=qc(c,e?J[f>>2]:f,b)+b|0,o=0,J[n>>2]=o;J[195395]=0;b=ca(1858,d|0,423936)|0;c=J[195395];J[195395]=0;if((c|0)==1)break X;J[d+24>>2]=J[b+8>>2];c=J[b+4>>2];J[d+16>>2]=J[b>>2];J[d+20>> -2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;c=J[f+16>>2];e=J[f+12>>2];b=K[f+23|0];J[195395]=0;h=e;e=b<<24>>24<0;b=aa(1864,d+16|0,(e?h:f+12|0)|0,(e?c:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break W;J[d+40>>2]=J[b+8>>2];c=J[b+4>>2];J[d+32>>2]=J[b>>2];J[d+36>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+32|0,425264)|0;c=J[195395];J[195395]=0;if((c|0)==1)break V;J[d+56>>2]=J[b+8>>2];c=J[b+4>>2];J[d+48>>2]=J[b>>2];J[d+52>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[d+59|0]; -c=b<<24>>24<0;aa(1864,i|0,(c?J[d+48>>2]:d+48|0)|0,(c?J[d+52>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break U;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+11|0]>=0)break g;Kb(J[d>>2]);break g}b=Z()|0;break h}b=Z()|0;break R}b=Z()|0;break S}b=Z()|0;break T}b=Z()|0;if(H[d+59|0]>=0)break T;Kb(J[d+48>>2])}if(H[d+43|0]>=0)break S;Kb(J[d+32>>2])}if(H[d+27|0]>=0)break R;Kb(J[d+16>>2])}if(H[d+11|0]>=0)break h;Kb(J[d>>2]);break h}e=J[f+16>>2];g=J[f+ -12>>2];b=K[f+23|0];J[195395]=0;h=c-11|0;c=b<<24>>24<0;ha(3104,i|0,h|0,(c?g:f+12|0)|0,(c?e:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break g}b=Z()|0;break h}b=K[f+11|0];e=b<<24>>24<0;aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{g=e?J[f+4>>2]:b;c=g+14|0;ka:{if(c>>>0>=1073741808){J[195395]=0;ea(1800,d|0);break ka}if(c>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=c;b=d;break ia}b=c|3;if(b>>>0<1073741823)break ja;J[195395]=0;ja(1292)}a=J[195395];J[195395]=0;if((a|0)!=1)break f;b=Z()|0;break h}J[195395]= -0;h=b+1|0;b=_(1078,h<<2)|0;k=J[195395];J[195395]=0;if((k|0)==1)break ha;J[d+4>>2]=c;J[d>>2]=b;J[d+8>>2]=h|-2147483648}c=J[106314];J[b+48>>2]=J[106313];J[b+52>>2]=c;c=J[106312];J[b+40>>2]=J[106311];J[b+44>>2]=c;c=J[106310];J[b+32>>2]=J[106309];J[b+36>>2]=c;c=J[106308];J[b+24>>2]=J[106307];J[b+28>>2]=c;c=J[106306];J[b+16>>2]=J[106305];J[b+20>>2]=c;c=J[106304];J[b+8>>2]=J[106303];J[b+12>>2]=c;c=J[106302];J[b>>2]=J[106301];J[b+4>>2]=c;c=b+56|0;b=g<<2;n=qc(c,e?J[f>>2]:f,b)+b|0,o=0,J[n>>2]=o;J[195395]= -0;b=ca(1858,d|0,423936)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ga;J[d+24>>2]=J[b+8>>2];c=J[b+4>>2];J[d+16>>2]=J[b>>2];J[d+20>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;c=J[f+16>>2];e=J[f+12>>2];b=K[f+23|0];J[195395]=0;h=e;e=b<<24>>24<0;b=aa(1864,d+16|0,(e?h:f+12|0)|0,(e?c:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break fa;J[d+40>>2]=J[b+8>>2];c=J[b+4>>2];J[d+32>>2]=J[b>>2];J[d+36>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+32|0,425264)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ea; -J[d+56>>2]=J[b+8>>2];c=J[b+4>>2];J[d+48>>2]=J[b>>2];J[d+52>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[d+59|0];c=b<<24>>24<0;aa(1864,i|0,(c?J[d+48>>2]:d+48|0)|0,(c?J[d+52>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break da;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+11|0]>=0)break g;Kb(J[d>>2]);break g}b=Z()|0;break h}b=Z()|0;break aa}b=Z()|0;break ba}b=Z()|0;break ca}b=Z()|0;if(H[d+59|0]>=0)break ca;Kb(J[d+48>>2])}if(H[d+43|0]>= -0)break ba;Kb(J[d+32>>2])}if(H[d+27|0]>=0)break aa;Kb(J[d+16>>2])}if(H[d+11|0]>=0)break h;Kb(J[d>>2])}if(H[i+11|0]<0)Kb(J[i>>2]);ba(b|0);B()}f=f+28|0;if((l|0)!=(f|0))continue;break}xb=d- -64|0;break e}B()}J[195395]=0;e=a+60|0;a=K[j+15|0];b=a<<24>>24<0;aa(1864,e|0,(b?J[j+4>>2]:i)|0,(b?J[j+8>>2]:a)|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;if(H[j+15|0]>=0)break d;Kb(J[j+4>>2])}xb=j+16|0;return}a=Z()|0;if(H[j+15|0]>=0)break a;Kb(J[j+4>>2]);ba(a|0);B()}a=Z()|0;if(H[j+15|0]>=0)break a;Kb(J[j+4>> -2])}ba(a|0);B()}function rda(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;a:{b:{if(!a|!b)break b;c=a;f=b;if(!(K[a+201|0]&4|(!a|!b))){a=xb-16|0;xb=a;J[a+8>>2]=1196314761;J[a+12>>2]=169478669;J[c+744>>2]=18;b=K[c+407|0];Wc(c,b+(a+8|0)|0,8-b|0);if(K[c+407|0]<=2)J[c+200>>2]=J[c+200>>2]|4096;xb=a+16|0;if(!(!(K[c+201|0]&16)|!J[c+660>>2])){Wb(c,251566);J[c+660>>2]=0}d=J[f>>2];g=J[f+4>>2];b=K[f+24|0];l=K[f+26|0];e=K[f+27|0];k=K[f+28|0];a=xb-16|0;xb=a;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m= -K[f+25|0];switch(m|0){case 6:break h;case 4:break i;case 3:break j;case 2:break k;case 0:break l;default:break g}}if(b>>>0<=16){i=1;if(1<>>0<8)break f;break d}i=2;n:switch(b-8|0){case 0:case 8:break e;default:break n}gc(c,252406);B()}i=4;o:switch(b-8|0){case 0:case 8:break e;default:break o}gc(c,252631);B()}gc(c,252843);B()}i=1;if(!(139>>>o&1))break d}H[c+405|0]=i;if(l)Wb(c,253009); -p:{q:{r:{if(!(!(K[c+660|0]&4)|K[c+201|0]&16)){if(!e)break p;if((m&-5)!=2|(e|0)!=64)break r;break p}if(!e)break q}Wb(c,253173)}e=0}if(k>>>0>=2){Wb(c,253317);k=1}H[c+401|0]=m;H[c+402|0]=b;H[c+696|0]=0;H[c+664|0]=e;H[c+398|0]=k;J[c+324>>2]=g;J[c+320>>2]=d;i=K[c+405|0];l=P(i,b);H[c+404|0]=l;H[c+406|0]=i;H[c+403|0]=b;J[c+332>>2]=d;i=l&255;s:{if(i>>>0>=8){i=P(d,i>>>3|0);break s}i=P(d,i)+7>>>3|0}J[c+336>>2]=i;H[a+15|0]=k;H[a+14|0]=e;H[a+13|0]=0;H[a+12|0]=m;H[a+11|0]=b;H[a+6|0]=d;H[a+5|0]=d>>>8;H[a+4|0]= -d>>>16;H[a+3|0]=d>>>24;H[a+10|0]=g;H[a+9|0]=g>>>8;H[a+8|0]=g>>>16;H[a+7|0]=g>>>24;ye(c,1229472850,a+3|0,13);J[c+252>>2]=c;J[c+248>>2]=1561;J[c+244>>2]=1560;t:{u:{v:{b=K[c+400|0];if(!b){if(K[c+401|0]!=3&K[c+402|0]>7)break v;H[c+400|0]=8;b=8}d=J[c+204>>2];if(d&1)break t;b=(b|0)!=8;break u}H[c+400|0]=248;b=1;d=J[c+204>>2];if(d&1)break t}J[c+296>>2]=b}if(!(d&2))J[c+280>>2]=-1;if(!(d&4))J[c+292>>2]=8;if(!(d&8))J[c+288>>2]=15;if(d&16)b=J[c+284>>2];else{J[c+284>>2]=8;b=8}J[c+316>>2]=0;J[c+304>>2]=b;J[c+ -276>>2]=0;J[c+200>>2]=1;J[c+300>>2]=J[c+280>>2];b=J[c+292>>2];J[c+308>>2]=J[c+288>>2];J[c+312>>2]=b;xb=a+16|0;break c}gc(c,252238);B()}a=J[f+8>>2];if(a&1){a=xb-16|0;xb=a;b=J[f+40>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;ye(c,1732332865,a+12|0,4);xb=a+16|0;a=J[f+8>>2]}if(a&2048){a=xb-16|0;xb=a;b=K[f+44|0];if(b>>>0>=4)Wb(c,254053);H[a+15|0]=b;ye(c,1934772034,a+15|0,1);xb=a+16|0;a=J[f+8>>2]}if(a&4096){g=J[f+196>>2];e=J[f+200>>2];a=J[f+ -204>>2];b=0;d=xb-32|0;xb=d;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;i=ac(g);w:{x:{a=e?a:0;if((a|0)<4)break x;b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if((b|0)>=0)break x;Wb(c,254454);break w}if((a|0)<(b|0)){Wb(c,254626);break w}if((a|0)>(b|0)){Wb(c,254897);a=b}if(a)a=Sn(c,e,a,0,d);else a=0;if(c){J[c+744>>2]=34;H[d+28|0]=105;H[d+29|0]=67;H[d+30|0]=67;H[d+31|0]=80;b=(a+i|0)+2|0;H[d+27|0]=b;H[d+26|0]=b>>>8;H[d+25|0]=b>>>16;H[d+24|0]= -b>>>24;Wc(c,d+24|0,8);J[c+348>>2]=1766015824;dg(c);Fc(c,d+28|0,4);J[c+744>>2]=66;if(!(!g|!i)){Wc(c,g,i);Fc(c,g,i)}H[d+25|0]=0;H[d+24|0]=0;b=d+24|0;Wc(c,b,2);Fc(c,b,2)}if(a)Cl(c,d,a);if(!c)break w;J[c+744>>2]=130;a=J[c+384>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[d+24|0]=a;H[d+25|0]=a>>>8;H[d+26|0]=a>>>16;H[d+27|0]=a>>>24;Wc(c,d+24|0,4)}xb=d+32|0;a=J[f+8>>2]}if(a&2){d=xb-16|0;xb=d;e=K[f+25|0];y:{z:{if(e&2){b=8;A:{a=K[f+68|0];b=(e|0)!=3?K[c+403|0]:b;B:{if(!a|a>>>0>b>>>0)break B;g=K[f+69|0];if(!g| -b>>>0>>0)break B;i=K[f+70|0];if(!i)break B;if(b>>>0>=i>>>0)break A}Wb(c,255241);break y}H[d+14|0]=i;H[d+13|0]=g;H[d+12|0]=a;a=3;break z}a=K[f+71|0];if(!(a>>>0<=K[c+403|0]?a:0)){Wb(c,255241);break y}H[d+12|0]=a;a=1}g=d+12|0;if(e&4){b=K[f+72|0];if(!(b>>>0<=K[c+403|0]?b:0)){Wb(c,255241);break y}H[a+(d+12|0)|0]=b;a=a+1|0}ye(c,1933723988,g,a)}xb=d+16|0;a=J[f+8>>2]}if(a&4){a=xb-32|0;xb=a;b=J[f+128>>2];d=J[f+132>>2];e=J[f+136>>2];g=J[f+140>>2];i=J[f+144>>2];k=J[f+148>>2];m=J[f+152>>2];l=J[f+156>>2];if(Ir(c, -b,d,e,g,i,k,m,l)){H[a+31|0]=l;H[a+30|0]=l>>>8;H[a+29|0]=l>>>16;H[a+28|0]=l>>>24;H[a+27|0]=m;H[a+26|0]=m>>>8;H[a+25|0]=m>>>16;H[a+24|0]=m>>>24;H[a+23|0]=k;H[a+22|0]=k>>>8;H[a+21|0]=k>>>16;H[a+20|0]=k>>>24;H[a+19|0]=i;H[a+18|0]=i>>>8;H[a+17|0]=i>>>16;H[a+16|0]=i>>>24;H[a+15|0]=g;H[a+14|0]=g>>>8;H[a+13|0]=g>>>16;H[a+12|0]=g>>>24;H[a+11|0]=e;H[a+10|0]=e>>>8;H[a+9|0]=e>>>16;H[a+8|0]=e>>>24;H[a+7|0]=d;H[a+6|0]=d>>>8;H[a+5|0]=d>>>16;H[a+4|0]=d>>>24;H[a+3|0]=b;H[a+2|0]=b>>>8;H[a+1|0]=b>>>16;H[a|0]=b>>>24; -ye(c,1665684045,a,32)}xb=a+32|0}a=J[f+192>>2];if(!(!a|(a|0)<=0)){a=J[f+188>>2];while(1){b=Jr(c,a);C:{if((b|0)==1)break C;d=K[a+16|0];if(!(K[a+3|0]&32|(b|0)==3|H[c+206|0]&1)|(!d|d&14))break C;b=J[a+12>>2];if(!b){Wb(c,251892);b=J[a+12>>2]}yr(c,a,J[a+8>>2],b)}a=a+20|0;if(a>>>0>2]+P(J[f+192>>2],20)>>>0)continue;break}}J[c+200>>2]=J[c+200>>2]|1024}e=J[f+8>>2];D:{if(e&8){b=J[f+16>>2];e=L[f+20>>1];a=xb-16|0;xb=a;E:{F:{d=K[c+401|0];if((d|0)==3){if(e>>>0<=1<>>0?e|J[c+660>>2]&1:0)break F; -gc(c,253614);B()}if(!(e|J[c+660>>2]&1?e>>>0<=256:0)){Wb(c,253614);break E}if(d&2)break F;Wb(c,253899);break E}I[c+392>>1]=e;J[c+744>>2]=34;H[a+8|0]=80;H[a+9|0]=76;H[a+10|0]=84;H[a+11|0]=69;d=P(e,3);H[a+7|0]=d;H[a+6|0]=d>>>8;H[a+5|0]=d>>>16;H[a+4|0]=d>>>24;Wc(c,a+4|0,8);J[c+348>>2]=1347179589;dg(c);Fc(c,a+8|0,4);J[c+744>>2]=66;if(e){d=0;while(1){H[a+1|0]=K[b|0];H[a+2|0]=K[b+1|0];H[a+3|0]=K[b+2|0];g=a+1|0;Wc(c,g,3);Fc(c,g,3);b=b+3|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}J[c+744>>2]=130;b=J[c+384>> -2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;Wc(c,a+12|0,4);J[c+200>>2]=J[c+200>>2]|2}xb=a+16|0;e=J[f+8>>2];break D}if(K[f+25|0]==3)break a}if(e&16){if(!(!L[f+22>>1]|(!(K[c+210|0]&8)|K[f+25|0]!=3))){e=0;while(1){a=J[f+76>>2]+e|0;H[a|0]=K[a|0]^-1;e=e+1|0;if(e>>>0>1])continue;break}}d=J[f+76>>2];b=L[f+22>>1];a=xb-16|0;xb=a;G:{H:switch(K[f+25|0]){case 3:if(!(b>>>0<=L[c+392>>1]?b:0)){Wb(c,255489);break G}ye(c,1951551059,d,b);break G; -case 0:b=L[f+88>>1];if((b|0)>=1<>>8;H[a+10|0]=b;H[a+11|0]=b>>>8;ye(c,1951551059,a+10|0,2);break G;case 2:d=L[f+82>>1];b=d>>>8|0;d=b|d<<8;H[a+10|0]=d;H[a+11|0]=d>>>8;e=L[f+84>>1];d=e>>>8|0;e=d|e<<8;H[a+12|0]=e;H[a+13|0]=e>>>8;g=L[f+86>>1];e=g>>>8|0;g=e|g<<8;H[a+14|0]=g;H[a+15|0]=g>>>8;if(!(!(e|(b|d))|K[c+402|0]!=8)){Wb(c,255772);break G}ye(c,1951551059,a+10|0,6);break G;default:break H}Wb(c,255871)}xb=a+16|0;e=J[f+8>>2]}if(e&32){b=xb-16|0;xb=b;I:{J:{a=K[f+ -25|0];if((a|0)==3){d=L[c+392>>1];if(!(d|!(H[c+660|0]&1))){a=K[f+90|0];break J}a=K[f+90|0];if(d>>>0>a>>>0)break J;Wb(c,255982);break I}if(a&2){d=L[f+92>>1];a=d>>>8|0;d=a|d<<8;H[b+10|0]=d;H[b+11|0]=d>>>8;e=L[f+94>>1];d=e>>>8|0;e=d|e<<8;H[b+12|0]=e;H[b+13|0]=e>>>8;g=L[f+96>>1];e=g>>>8|0;g=e|g<<8;H[b+14|0]=g;H[b+15|0]=g>>>8;if(!(!(e|(a|d))|K[c+402|0]!=8)){Wb(c,256206);break I}ye(c,1649100612,b+10|0,6);break I}a=L[f+98>>1];if((a|0)>=1<>>8;H[b+10|0]=a;H[b+11|0]= -a>>>8;ye(c,1649100612,b+10|0,2);break I}H[b+10|0]=a;ye(c,1649100612,b+10|0,1)}xb=b+16|0;e=J[f+8>>2]}if(e&64){e=J[f+124>>2];b=0;a=xb-16|0;xb=a;d=L[f+20>>1];K:{if((d|0)>L[c+392>>1]){Wb(c,256449);break K}J[c+744>>2]=34;H[a+8|0]=104;H[a+9|0]=73;H[a+10|0]=83;H[a+11|0]=84;H[a+7|0]=d<<1;H[a+6|0]=d>>>7;H[a+5|0]=d>>>15;H[a+4|0]=d>>>23;Wc(c,a+4|0,8);J[c+348>>2]=1749635924;dg(c);Fc(c,a+8|0,4);J[c+744>>2]=66;if(d)while(1){g=L[e+(b<<1)>>1];g=g<<8|g>>>8;H[a+1|0]=g;H[a+2|0]=g>>>8;g=a+1|0;Wc(c,g,2);Fc(c,g,2);b=b+ -1|0;if((d|0)!=(b|0))continue;break}J[c+744>>2]=130;b=J[c+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;Wc(c,a+12|0,4)}xb=a+16|0;e=J[f+8>>2]}if(e&256){b=J[f+100>>2];d=J[f+104>>2];a=xb-16|0;xb=a;e=K[f+108|0];if(e>>>0>=2)Wb(c,256555);H[a+15|0]=e;H[a+14|0]=d;H[a+13|0]=d>>>8;H[a+12|0]=d>>>16;H[a+11|0]=d>>>24;H[a+10|0]=b;H[a+9|0]=b>>>8;H[a+8|0]=b>>>16;H[a+7|0]=b>>>24;ye(c,1866876531,a+7|0,9);xb=a+16|0;e=J[f+8>>2]}if(e&1024){g=J[f+160>>2]; -i=J[f+164>>2];k=J[f+168>>2];e=K[f+181|0];m=J[f+172>>2];h=J[f+176>>2];b=0;a=xb-16|0;xb=a;n=K[f+180|0];if(n>>>0>=4)Wb(c,256722);p=ac(g);o=ac(m)+((e|0)!=0)|0;d=(p+o|0)+11|0;l=Zd(c,e<<2);if(e){r=e-1|0;while(1){q=b<<2;j=ac(J[q+h>>2])+((b|0)!=(r|0))|0;J[l+q>>2]=j;d=d+j|0;b=b+1|0;if((e|0)!=(b|0))continue;break}}L:{if(!c)break L;J[c+744>>2]=34;H[a+6|0]=112;H[a+7|0]=67;H[a+8|0]=65;H[a+9|0]=76;H[a+5|0]=d;H[a+4|0]=d>>>8;H[a+3|0]=d>>>16;H[a+2|0]=d>>>24;Wc(c,a+2|0,8);J[c+348>>2]=1883455820;dg(c);Fc(c,a+6|0,4); -J[c+744>>2]=66;if(!g)break L;b=p+1|0;if(!b)break L;Wc(c,g,b);Fc(c,g,b)}H[a+11|0]=e;H[a+10|0]=n;H[a+9|0]=k;H[a+8|0]=k>>>8;H[a+7|0]=k>>>16;H[a+6|0]=k>>>24;H[a+5|0]=i;H[a+4|0]=i>>>8;H[a+3|0]=i>>>16;H[a+2|0]=i>>>24;M:{N:{if(!c)break N;b=a+2|0;Wc(c,b,10);Fc(c,b,10);if(!(!m|!o)){Wc(c,m,o);Fc(c,m,o)}if(e){if(!c)break N;b=0;while(1){g=b<<2;d=J[g+h>>2];O:{if(!d)break O;g=J[g+l>>2];if(!g)break O;Wc(c,d,g);Fc(c,d,g)}b=b+1|0;if((e|0)!=(b|0))continue;break}}cc(c,l);if(!c)break M;J[c+744>>2]=130;b=J[c+384>>2]; -b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;Wc(c,a+12|0,4);break M}cc(c,l)}xb=a+16|0;e=J[f+8>>2]}if(e&16384){e=K[f+220|0];b=J[f+228>>2];a=xb+-64|0;xb=a;g=J[f+224>>2];d=ac(g);i=ac(b);k=(d+i|0)+2|0;P:{if(k>>>0>=65){Wb(c,256939);break P}H[a|0]=e;Mb(a|1,g,d+1|0);Mb((a+d|0)+2|0,b,i);ye(c,1933787468,a,k)}xb=a- -64|0;e=J[f+8>>2]}if(e&128){b=J[f+112>>2];d=J[f+116>>2];a=xb-16|0;xb=a;e=K[f+120|0];if(e>>>0>=2)Wb(c,256975);H[a+15|0]=e;H[a+14|0]=d;H[a+ -13|0]=d>>>8;H[a+12|0]=d>>>16;H[a+11|0]=d>>>24;H[a+10|0]=b;H[a+9|0]=b>>>8;H[a+8|0]=b>>>16;H[a+7|0]=b>>>24;ye(c,1883789683,a+7|0,9);xb=a+16|0;e=J[f+8>>2]}if(e&512){jD(c,f+60|0);J[c+200>>2]=J[c+200>>2]|512;e=J[f+8>>2]}if(!(!(e&8192)|J[f+216>>2]<=0)){e=0;while(1){h=xb-16|0;xb=h;n=J[f+212>>2]+(e<<4)|0;a=K[n+4|0];d=J[n+12>>2];b=ac(J[n>>2]);Q:{R:{S:{if(c){p=n+4|0;J[c+744>>2]=34;H[h+6|0]=115;H[h+7|0]=80;H[h+8|0]=76;H[h+9|0]=84;r=(a|0)==8?6:10;a=(b+P(r,d)|0)+2|0;H[h+5|0]=a;H[h+4|0]=a>>>8;H[h+3|0]=a>>>16;H[h+ -2|0]=a>>>24;Wc(c,h+2|0,8);J[c+348>>2]=1934642260;dg(c);Fc(c,h+6|0,4);J[c+744>>2]=66;a=b+1|0;T:{if(!a)break T;b=J[n>>2];if(!b)break T;Wc(c,b,a);Fc(c,b,a)}Wc(c,p,1);Fc(c,p,1);if(J[n+12>>2]<=0)break R;g=h+11|0;i=h+10|0;k=h+9|0;m=h+7|0;l=h+6|0;o=h+5|0;j=J[n+8>>2];while(1){a=L[j>>1];U:{if(K[p|0]!=8){a=a<<8|(a&65280)>>>8;H[h+2|0]=a;H[h+3|0]=a>>>8;a=L[j+2>>1];a=a<<8|a>>>8;H[h+4|0]=a;H[h+5|0]=a>>>8;a=L[j+4>>1];a=a<<8|a>>>8;H[h+6|0]=a;H[h+7|0]=a>>>8;q=L[j+6>>1];H[h+8|0]=q>>>8;b=i;d=k;a=g;break U}H[h+2|0]= -a;H[h+3|0]=K[j+2|0];H[h+4|0]=K[j+4|0];q=K[j+6|0];b=l;d=o;a=m}H[d|0]=q;d=b;b=L[j+8>>1];H[d|0]=b>>>8;H[a|0]=b;a=h+2|0;Wc(c,a,r);Fc(c,a,r);j=j+10|0;if(j>>>0>2]+P(J[n+12>>2],10)>>>0)continue;break}break S}a=J[n+12>>2];if((a|0)<=0)break Q;j=J[n+8>>2];a=j+P(a,10)|0;if(K[n+4|0]==8)while(1){H[h+2|0]=K[j|0];H[h+3|0]=K[j+2|0];H[h+4|0]=K[j+4|0];H[h+5|0]=K[j+6|0];b=L[j+8>>1];b=b<<8|b>>>8;H[h+6|0]=b;H[h+7|0]=b>>>8;j=j+10|0;if(a>>>0>j>>>0)continue;break S}while(1){b=L[j>>1];b=b<<8|b>>>8;H[h+2|0]=b;H[h+3| -0]=b>>>8;b=L[j+2>>1];b=b<<8|b>>>8;H[h+4|0]=b;H[h+5|0]=b>>>8;b=L[j+4>>1];b=b<<8|b>>>8;H[h+6|0]=b;H[h+7|0]=b>>>8;b=L[j+6>>1];b=b<<8|b>>>8;H[h+8|0]=b;H[h+9|0]=b>>>8;b=L[j+8>>1];b=b<<8|b>>>8;H[h+10|0]=b;H[h+11|0]=b>>>8;j=j+10|0;if(a>>>0>j>>>0)continue;break}}if(!c)break Q}J[c+744>>2]=130;a=J[c+384>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;Wc(c,h+12|0,4)}xb=h+16|0;e=e+1|0;if((e|0)>2])continue;break}}if(J[f+48>>2]>0){a=J[f+56>>2]; -while(1){d=P(s,28);b=d+a|0;e=J[b>>2];V:{if((e|0)>0){kD(c,e,J[b+4>>2],J[b+20>>2],J[b+24>>2],J[b+8>>2]);a=J[f+56>>2];b=d+a|0;if(J[b>>2]==-1){J[b>>2]=-3;break V}J[b>>2]=-2;break V}W:switch(e+1|0){case 1:lD(c,J[b+4>>2],J[b+8>>2]);a=J[f+56>>2];J[d+a>>2]=-2;break V;case 0:break W;default:break V}Rn(c,J[b+4>>2],J[b+8>>2]);a=J[f+56>>2];J[d+a>>2]=-3}s=s+1|0;if((s|0)>2])continue;break}}a=J[f+192>>2];if(!a|(a|0)<=0)break b;e=J[f+188>>2];while(1){a=Jr(c,e);if(!((a|0)==1|(K[e+16|0]&14)!=2|!(K[e+3|0]&32| -(a|0)==3|H[c+206|0]&1)))yr(c,e,J[e+8>>2],J[e+12>>2]);e=e+20|0;if(e>>>0>2]+P(J[f+192>>2],20)>>>0)continue;break}}return}gc(c,252070);B()}function GE(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;J[a+948>>2]=0;e=J[a+20>>2];J[a+952>>2]=e-1;J[a+956>>2]=P(e,J[a+16>>2]);Ab[J[J[b>>2]+44>>2]](b,44)|0;e=J[a+392>>2];Ab[J[J[b>>2]+44>>2]](b,e&255)|0;Ab[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;e=J[a+396>>2];Ab[J[J[b>>2]+44>>2]](b,e&255)|0;Ab[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;e=J[a+ -16>>2];Ab[J[J[b>>2]+44>>2]](b,e&255)|0;Ab[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;e=J[a+20>>2];Ab[J[J[b>>2]+44>>2]](b,e&255)|0;Ab[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;Ab[J[J[b>>2]+44>>2]](b,(c?K[a+26|0]-1|128:0)&255)|0;a:{if(!c)break a;c=J[a+44>>2];if(!c)break a;e=J[a+4>>2];e=e?c?e+40|0:0:0;while(1){c=e+(j<<2)|0;Ab[J[J[b>>2]+44>>2]](b,K[c+2|0])|0;Ab[J[J[b>>2]+44>>2]](b,K[c+1|0])|0;Ab[J[J[b>>2]+44>>2]](b,K[c|0])|0;j=j+1|0;if(j>>>0>2])continue;break}}c=L[a+26>>1];c=c>>>0<=2?2:c;Ab[J[J[b>>2]+44>>2]](b, -c&255)|0;c=c+1|0;b:{c:switch(ii(a,2)-1|0){case 0:J[a+1064>>2]=b;J[a+1060>>2]=c;J[a+1056>>2]=0;J[a+1048>>2]=c;J[a+960>>2]=0;J[a+964>>2]=0;J[a+1076>>2]=0;e=1<>2]=e;I[a+1052>>1]=-1<>2]=e+1;I[a+1054>>1]=e+2;c=J[a+956>>2];d:{if(c){J[a+956>>2]=c-1;c=fg(a,J[a+948>>2],J[a+952>>2]);e=J[a+948>>2]+1|0;J[a+948>>2]=e;if((e|0)==J[a+16>>2]){J[a+948>>2]=0;J[a+952>>2]=J[a+952>>2]-1}Ng(a,I[a+1068>>1]);while(1){j=-1;e=J[a+956>>2];e:{if(!e)break e;J[a+956>>2]=e-1;j=fg(a,J[a+948>>2],J[a+952>> -2]);e=J[a+948>>2]+1|0;J[a+948>>2]=e;if((e|0)!=J[a+16>>2])break e;J[a+948>>2]=0;J[a+952>>2]=J[a+952>>2]-1}Ng(a,c<<16>>16);c=I[a+1054>>1];f:{if((c|0)<=4095){I[a+1054>>1]=c+1;break f}J[a+1056>>2]=1;c=I[a+1068>>1];I[a+1054>>1]=c+2;Ng(a,c)}c=j;if((c|0)!=-1)continue;break}break d}Ng(a,I[a+1068>>1])}Ng(a,I[a+1072>>1]);break b;case 1:h=xb-336|0;xb=h;J[a+1064>>2]=b;J[a+1060>>2]=c;g=1<>2]=g;J[h+32>>2]=c;J[h+28>>2]=c;J[h+12>>2]=0;J[h+36>>2]=0;J[h+332>>2]=0;J[h+20>>2]=0;J[h+24>>2]=1;J[h+72>>2]=c; -J[h+68>>2]=g;J[h+64>>2]=g+1;e=g-1|0;J[h+44>>2]=e;J[h+8>>2]=g+2;J[h+56>>2]=4093-g;J[h+40>>2]=e;e=(c|0)<4?9:g-2|0;J[h+52>>2]=e;J[h+48>>2]=e;if((c|0)>=8){c=h+76|0;j=0;while(1){J[h+332>>2]=j+1;H[(h+j|0)+76|0]=g;j=J[h+332>>2];if((j|0)>=255){e=J[a+1064>>2];Ab[J[J[e>>2]+44>>2]](e,j&255)|0;e=J[a+1064>>2];Ab[J[J[e>>2]+16>>2]](e,c,1,J[h+332>>2])|0;J[h+332>>2]=0;j=0}g=J[h+68>>2]>>>8|0;J[h+68>>2]=g;e=J[h+72>>2];J[h+72>>2]=e-8;if((e|0)>15)continue;break}}while(1){c=J[a+956>>2];g:{if(!c){j=-1;break g}J[a+956>> -2]=c-1;j=fg(a,J[a+948>>2],J[a+952>>2]);c=J[a+948>>2]+1|0;J[a+948>>2]=c;if((c|0)!=J[a+16>>2])break g;J[a+948>>2]=0;J[a+952>>2]=J[a+952>>2]-1}g=J[h+12>>2];h:{if((g|0)<=0)break h;c=J[h+4>>2];if((c|0)==(j|0))break h;i:{if((g|0)==1){ei(a,c,h+4|0);break i}if(J[h+24>>2]){Zn(a,g,h+4|0);break i}if(!((c|0)==J[h+16>>2]&J[h+20>>2]>=2)){k=0;i=1;f=h+4|0;e=K[f+52|0]|K[f+53|0]<<8|(K[f+54|0]<<16|K[f+55|0]<<24);d=P(e+1|0,e)>>>1|0;j:{if(d>>>0>g>>>0){c=g;break j}c=g;while(1){k=e+k|0;c=c-d|0;if(d>>>0<=c>>>0)continue; -break}}e=c;k:{l:{m:switch(c|0){case 0:break k;case 1:break l;default:break m}while(1){i=i<<1;d=e>>>0>3;e=e>>>2|0;if(d)continue;break}while(1){e=i;i=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(i|0))break l;if((e+1|0)!=(i|0))continue;break}}i=c<<1;while(1){c=e;e=c-1|0;if(i>>>0<=P(c+1|0,c)>>>0)continue;break}while(1){e=c;c=c+1|0;if(i>>>0>P(e,c)>>>0)continue;break}k=e+k|0}n:{if((k+1|0)>=(g|0)){if((g|0)<=0)break n;while(1){ei(a,K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24),f);c=g>>>0>1;g=g-1|0;if(c)continue; -break}break n}e=K[f+68|0]|K[f+69|0]<<8|(K[f+70|0]<<16|K[f+71|0]<<24);c=e+(K[f+24|0]|K[f+25|0]<<8|(K[f+26|0]<<16|K[f+27|0]<<24))|0;H[f+68|0]=c;H[f+69|0]=c>>>8;H[f+70|0]=c>>>16;H[f+71|0]=c>>>24;e=K[f+64|0]|K[f+65|0]<<8|(K[f+66|0]<<16|K[f+67|0]<<24)|(K[f+56|0]|K[f+57|0]<<8|(K[f+58|0]<<16|K[f+59|0]<<24))<>>8;H[f+66|0]=e>>>16;H[f+67|0]=e>>>24;if((c|0)>=8){d=f+72|0;c=K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<<16|K[f+331|0]<<24);while(1){i=c+1|0;H[f+328|0]=i;H[f+329|0]=i>>>8;H[f+330| -0]=i>>>16;H[f+331|0]=i>>>24;H[(c+f|0)+72|0]=e;c=K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<<16|K[f+331|0]<<24);if((c|0)>=255){e=J[a+1064>>2];Ab[J[J[e>>2]+44>>2]](e,c&255)|0;c=J[a+1064>>2];Ab[J[J[c>>2]+16>>2]](c,d,1,K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<<16|K[f+331|0]<<24))|0;H[f+328|0]=0;H[f+329|0]=0;H[f+330|0]=0;H[f+331|0]=0;c=0}e=(K[f+64|0]|K[f+65|0]<<8|(K[f+66|0]<<16|K[f+67|0]<<24))>>>8|0;H[f+64|0]=e;H[f+65|0]=e>>>8;H[f+66|0]=e>>>16;H[f+67|0]=e>>>24;k=K[f+68|0]|K[f+69|0]<<8|(K[f+70|0]<<16|K[f+71|0]<< -24);i=k-8|0;H[f+68|0]=i;H[f+69|0]=i>>>8;H[f+70|0]=i>>>16;H[f+71|0]=i>>>24;if((k|0)>15)continue;break}}H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=1;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;c=K[f+28|0]|K[f+29|0]<<8|(K[f+30|0]<<16|K[f+31|0]<<24);H[f+24|0]=c;H[f+25|0]=c>>>8;H[f+26|0]=c>>>16;H[f+27|0]=c>>>24;c=K[f+40|0]|K[f+41|0]<<8|(K[f+42|0]<<16|K[f+43|0]<<24);H[f+36|0]=c;H[f+37|0]=c>>>8;H[f+38|0]=c>>>16;H[f+39|0]=c>>>24;c=K[f+48|0]|K[f+49|0]<< -8|(K[f+50|0]<<16|K[f+51|0]<<24);H[f+44|0]=c;H[f+45|0]=c>>>8;H[f+46|0]=c>>>16;H[f+47|0]=c>>>24;Zn(a,g,f)}break i}m=0;i=g;d=h+4|0;l=K[d+52|0]|K[d+53|0]<<8|(K[d+54|0]<<16|K[d+55|0]<<24);c=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);n=(g|0)/(c|0)|0;f=g-P(n,c)|0;o=(f|0)!=0;e=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);o:{if((l|0)>=(o+(e+n|0)|0)){g=P(l+1|0,l)>>>1|0;break o}k=1;g=P(l+1|0,l)>>>1|0;n=l-e|0;f=i-P(c,n)|0;p:{if(g>>>0>f>>>0){c=f;break p}c=f;while(1){m=l+m|0;c=c-g|0;if(g>>>0<= -c>>>0)continue;break}}o=c;e=c;q:{r:{s:switch(c|0){case 0:break q;case 1:break r;default:break s}while(1){k=k<<1;e=o>>>0>3;o=o>>>2|0;if(e)continue;break}while(1){e=k;k=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(k|0))break r;if((e+1|0)!=(k|0))continue;break}}k=c<<1;while(1){c=e;e=c-1|0;if(k>>>0<=P(c+1|0,c)>>>0)continue;break}while(1){e=c;c=c+1|0;if(k>>>0>P(e,c)>>>0)continue;break}m=e+m|0}o=m+1|0}k=0;t:{if(g>>>0>i>>>0){e=i;break t}e=i;while(1){k=k+l|0;e=e-g|0;if(g>>>0<=e>>>0)continue;break}}g=1;m=e;u:{v:{w:{c= -e;switch(c|0){case 0:break u;case 1:break v;default:break w}}while(1){g=g<<1;c=m>>>0>3;m=m>>>2|0;if(c)continue;break}while(1){c=g;g=c+((e>>>0)/(c>>>0)|0)>>>1|0;if((c|0)==(g|0))break v;if((c+1|0)!=(g|0))continue;break}}e=e<<1;while(1){g=c;c=c-1|0;if(e>>>0<=P(g+1|0,g)>>>0)continue;break}while(1){c=g;g=c+1|0;if(e>>>0>P(g,c)>>>0)continue;break}k=c+k|0}x:{if(k+1>>>0>>0){c=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);e=c+(K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24))|0;H[d+68|0]=e; -H[d+69|0]=e>>>8;H[d+70|0]=e>>>16;H[d+71|0]=e>>>24;c=K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24)|(K[d+56|0]|K[d+57|0]<<8|(K[d+58|0]<<16|K[d+59|0]<<24))<>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;if((e|0)>=8){f=d+72|0;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);while(1){e=g+1|0;H[d+328|0]=e;H[d+329|0]=e>>>8;H[d+330|0]=e>>>16;H[d+331|0]=e>>>24;H[(d+g|0)+72|0]=c;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);if((g|0)>=255){c=J[a+1064>>2];Ab[J[J[c>> -2]+44>>2]](c,g&255)|0;c=J[a+1064>>2];Ab[J[J[c>>2]+16>>2]](c,f,1,K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24))|0;H[d+328|0]=0;H[d+329|0]=0;H[d+330|0]=0;H[d+331|0]=0;g=0}c=(K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24))>>>8|0;H[d+64|0]=c;H[d+65|0]=c>>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;k=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);e=k-8|0;H[d+68|0]=e;H[d+69|0]=e>>>8;H[d+70|0]=e>>>16;H[d+71|0]=e>>>24;if((k|0)>15)continue;break}}H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35| -0]=0;H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=1;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;c=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[d+36|0]=c;H[d+37|0]=c>>>8;H[d+38|0]=c>>>16;H[d+39|0]=c>>>24;c=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<<24);H[d+44|0]=c;H[d+45|0]=c>>>8;H[d+46|0]=c>>>16;H[d+47|0]=c>>>24;Zn(a,i,d);break x}H[d+44|0]=l;H[d+45|0]=l>>>8;H[d+ -46|0]=l>>>16;H[d+47|0]=l>>>24;if((n|0)>0)while(1){ei(a,((K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24))+(K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24))|0)-2|0,d);c=n>>>0>1;n=n-1|0;if(c)continue;break}y:{if(!f)break y;if(K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24)){Zn(a,f,d);break y}if((f|0)==1){ei(a,K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),d);break y}ei(a,((K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24))+f|0)-2|0,d)}g=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<<24); -H[d+44|0]=g;H[d+45|0]=g>>>8;H[d+46|0]=g>>>16;H[d+47|0]=g>>>24;if((g|0)<=(K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24))){c=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);i=c+(K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24))|0;H[d+68|0]=i;H[d+69|0]=i>>>8;H[d+70|0]=i>>>16;H[d+71|0]=i>>>24;c=K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24)|(K[d+56|0]|K[d+57|0]<<8|(K[d+58|0]<<16|K[d+59|0]<<24))<>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;e=d;if((i|0)>=8){f=d+ -72|0;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);while(1){i=g+1|0;H[d+328|0]=i;H[d+329|0]=i>>>8;H[d+330|0]=i>>>16;H[d+331|0]=i>>>24;H[(d+g|0)+72|0]=c;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);if((g|0)>=255){c=J[a+1064>>2];Ab[J[J[c>>2]+44>>2]](c,g&255)|0;c=J[a+1064>>2];Ab[J[J[c>>2]+16>>2]](c,f,1,K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24))|0;H[d+328|0]=0;H[d+329|0]=0;H[d+330|0]=0;H[d+331|0]=0;g=0}c=(K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24))>>> -8|0;H[d+64|0]=c;H[d+65|0]=c>>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;k=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);i=k-8|0;H[d+68|0]=i;H[d+69|0]=i>>>8;H[d+70|0]=i>>>16;H[d+71|0]=i>>>24;if((k|0)>15)continue;break}c=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<<24)}else c=g;H[d+44|0]=c;H[e+45|0]=c>>>8;H[e+46|0]=c>>>16;H[e+47|0]=c>>>24;H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35|0]=0;H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=1;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;c=K[d+28|0]|K[d+ -29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[d+36|0]=c;H[d+37|0]=c>>>8;H[d+38|0]=c>>>16;H[d+39|0]=c>>>24}}}g=0;J[h+12>>2]=0}if((j|0)!=-1){if(J[h+4>>2]==(j|0)){J[h+12>>2]=g+1;continue}J[h+4>>2]=j;J[h+12>>2]=1;continue}break}e=J[h+72>>2];c=e+J[h+28>>2]|0;J[h+72>>2]=c;g=J[h+68>>2]|J[h+64>>2]<>2]=g;if((c|0)>=8){e=h+76|0;j=J[h+332>>2];while(1){J[h+332>>2]=j+1;H[(h+j|0)+76|0]=g;j=J[h+ -332>>2];if((j|0)>=255){c=J[a+1064>>2];Ab[J[J[c>>2]+44>>2]](c,j&255)|0;c=J[a+1064>>2];Ab[J[J[c>>2]+16>>2]](c,e,1,J[h+332>>2])|0;J[h+332>>2]=0;j=0}g=J[h+68>>2]>>>8|0;J[h+68>>2]=g;i=J[h+72>>2];c=i-8|0;J[h+72>>2]=c;if((i|0)>15)continue;break}}z:{A:{B:{if((c|0)<=0){j=J[h+332>>2];break B}c=J[h+332>>2];J[h+332>>2]=c+1;H[(c+h|0)+76|0]=g;j=J[h+332>>2];if((j|0)>254)break A}if((j|0)<=0)break z}c=J[a+1064>>2];Ab[J[J[c>>2]+44>>2]](c,j&255)|0;a=J[a+1064>>2];Ab[J[J[a>>2]+16>>2]](a,h+76|0,1,J[h+332>>2])|0}xb=h+336| -0;break b;default:break c}J[a+1064>>2]=b;J[a+1060>>2]=c;J[a+1056>>2]=0;J[a+1048>>2]=c;J[a+960>>2]=0;J[a+964>>2]=0;J[a+1076>>2]=0;g=-1;e=1<>2]=e;I[a+1052>>1]=-1<>2]=e+1;I[a+1054>>1]=e+2;c=J[a+956>>2];C:{if(!c)break C;J[a+956>>2]=c-1;g=fg(a,J[a+948>>2],J[a+952>>2]);c=J[a+948>>2]+1|0;J[a+948>>2]=c;if((c|0)!=J[a+16>>2])break C;J[a+948>>2]=0;J[a+952>>2]=J[a+952>>2]-1}Nb(J[a+1040>>2],255,20012);Ng(a,I[a+1068>>1]);c=J[a+956>>2];if(c)while(1){J[a+956>>2]=c-1;e=fg(a,J[a+948>>2], -J[a+952>>2]);c=J[a+948>>2]+1|0;J[a+948>>2]=c;if((c|0)==J[a+16>>2]){J[a+948>>2]=0;J[a+952>>2]=J[a+952>>2]-1}f=J[a+1040>>2];c=e<<4^g;d=J[f+(c<<2)>>2];i=(e<<12)+g|0;D:{if((d|0)==(i|0)){e=L[J[a+1044>>2]+(c<<1)>>1];break D}if((d|0)>=0){d=c?c-5003|0:-1;while(1){c=c+d|0;c=(c|0)<0?c+5003|0:c;j=J[f+(c<<2)>>2];if((j|0)==(i|0)){e=L[J[a+1044>>2]+(c<<1)>>1];break D}if((j|0)>0)continue;break}}Ng(a,g<<16>>16);g=I[a+1054>>1];if((g|0)<=4095){I[a+1054>>1]=g+1;I[J[a+1044>>2]+(c<<1)>>1]=g;J[J[a+1040>>2]+(c<<2)>>2]=i; -break D}Nb(J[a+1040>>2],255,20012);J[a+1056>>2]=1;c=I[a+1068>>1];I[a+1054>>1]=c+2;Ng(a,c)}g=e;c=J[a+956>>2];if(c)continue;break}Ng(a,g<<16>>16);Ng(a,I[a+1072>>1])}Ab[J[J[b>>2]+44>>2]](b,0)|0}function wA(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;g=xb-32|0;xb=g;r=J[b+100>>2];a:{b:{if(bc(a,0))break b;d=Nc(a,29600,b+184|0);J[g+28>>2]=d;if(J[b+184>>2]!=1885562369|d)break b;d=J[b+188>>2];if(!d)break b;h=J[a+4>>2];if(h>>>0<16)break b;e=h>>>4|0;if(!(d>>> -0<=9&e>>>0>=d>>>0)){d=h>>>0>=144?9:e;J[b+188>>2]=d}d=Tb(r,16,0,d,0,g+28|0);J[b+192>>2]=d;if(J[g+28>>2])break b;c:{d:{e:{f:{if(J[b+188>>2]){while(1){e=Nc(a,29616,d);J[g+28>>2]=e;if(e)break d;d=d+16|0;f=f+1|0;e=J[b+188>>2];if(f>>>0>>0)continue;break}d=J[b+192>>2];if((e|0)==1)break f;f=e}h=0;g:{h:{while(1){m=h+1|0;if((m|0)==(f|0)){i=f-1|0;h=J[a+4>>2];d=J[b+192>>2];break h}l=h^-1;e=J[d+12>>2];k=0;i=0;while(1){j=(i<<4)+d|0;i=i+1|0;f=(i<<4)+d|0;h=J[f+12>>2];if(e>>>0>h>>>0){e=J[j+12>>2];J[g+16>>2]=J[j+ -8>>2];J[g+20>>2]=e;e=J[j+4>>2];J[g+8>>2]=J[j>>2];J[g+12>>2]=e;e=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=e;e=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=e;e=J[g+20>>2];J[f+8>>2]=J[g+16>>2];J[f+12>>2]=e;e=J[g+12>>2];J[f>>2]=J[g+8>>2];J[f+4>>2]=e;k=1;h=J[f+12>>2]}e=J[j+8>>2];if(e>>>0>h>>>0|M[j+12>>2]>h-e>>>0)break g;e=h;f=J[b+188>>2];if(l+f>>>0>i>>>0)continue;break}i=f-1|0;if(k){h=m;if(i>>>0>h>>>0)continue}break}h=J[a+4>>2];d=J[b+192>>2];m=d;if(!i)break e}m=((f<<4)+d|0)-16|0;e=0;f=d;while(1){k=J[f+8>>2];if(!(k>>> -0<=h>>>0&M[f+12>>2]<=h-k>>>0)){J[g+28>>2]=8;break d}f=f+16|0;e=e+1|0;if((i|0)!=(e|0))continue;break}break e}J[g+28>>2]=9;break d}h=J[a+4>>2];m=d}e=J[m+12>>2];if(e>>>0>h>>>0){J[g+28>>2]=8;break d}e=h-e|0;if(e>>>0>2])J[m+8>>2]=e;J[g+4>>2]=0;break c}d=J[b+192>>2];if(d)Ab[J[r+8>>2]](r,d);d=0;J[b+192>>2]=0;e=J[g+28>>2];J[g+4>>2]=e;if(e)break b}J[b>>2]=1;J[b+4>>2]=0;e=0;if((c|0)<0)break a;p=J[b+100>>2];i=3;i:{j:{c=J[b+188>>2];k:{if(!c)break k;f=0;while(1){e=(f<<4)+d|0;if(J[e>>2]==1){i=83;d=J[e+12>> -2];c=J[a+8>>2];if(d>>>0>>0)break k;if(yd(a,d-c|0))break k;k=J[e+8>>2];c=0;J[g+8>>2]=0;d=Te(a,g+8|0);if(!J[g+8>>2])break j;f=0;break i}f=f+1|0;if((c|0)!=(f|0))continue;break}}J[g+8>>2]=i;c=0;f=0;break i}if(d>>>0>255){f=0;break i}m=d&4;l:{if(m){e=md(a,g+8|0);break l}e=Te(a,g+8|0)}if(J[g+8>>2]){f=0;break i}if(e>>>0>(k>>>0)/9>>>0){J[g+8>>2]=8;f=0;break i}n=e>>>0>=256?256:e;J[b+280>>2]=n;f=Tb(p,12,0,n,0,g+8|0);if(J[g+8>>2])break i;m:{if(!e)break m;h=n>>>0<=1?1:n;i=0;if(!m)while(1){d=Nc(a,29680,P(i, -12)+f|0);J[g+8>>2]=d;if(d)break i;i=i+1|0;if((h|0)!=(i|0))continue;break m}while(1){d=Nc(a,29648,P(i,12)+f|0);J[g+8>>2]=d;if(d)break i;i=i+1|0;if((h|0)!=(i|0))continue;break}}d=yd(a,P(e-n|0,9));J[g+8>>2]=d;if(d){J[g+8>>2]=83;break i}n:{d=e&3;if(!d)break n;d=yd(a,4-d|0);J[g+8>>2]=d;if(!d)break n;J[g+8>>2]=83;break i}o:{if(m){d=md(a,g+8|0);break o}d=Te(a,g+8|0)}if(J[g+8>>2])break i;if(d>>>0>k+P(e,-9)>>>0){J[g+8>>2]=8;break i}j=d>>>0>=16777472?16777472:d;h=g+8|0;c=Tb(p,1,0,j+1|0,0,h);if(J[g+8>>2])break i; -d=Dd(a,c,j);J[g+8>>2]=d;if(d)break i;l=Tb(p,12,0,n,0,h);if(J[g+8>>2])break i;J[b+284>>2]=l;if(e){h=n>>>0<=1?1:n;d=0;while(1){e=P(d,12);k=e+f|0;m=J[k>>2];if(!((m|0)>=0&j>>>0>=m>>>0)){J[g+8>>2]=9;break i}i=e+l|0;w=i,x=of(p,c+m|0,g+8|0),J[w>>2]=x;if(J[g+8>>2])break i;e=K[k+4|0];H[i+4|0]=e;m=J[k+8>>2];p:{if(e){if(!((m|0)>=0&j>>>0>=m>>>0)){J[g+8>>2]=9;break i}w=i,x=of(p,c+m|0,g+8|0),J[w+8>>2]=x;if(!J[g+8>>2])break p;break i}J[i+8>>2]=m}d=d+1|0;if((h|0)!=(d|0))continue;break}}J[g+8>>2]=0}if(f)Ab[J[p+8>> -2]](p,f);if(c)Ab[J[p+8>>2]](p,c);c=J[g+8>>2];J[g+4>>2]=c;if(c)break b;q:{r:{c=J[b+188>>2];if(!c)break r;d=J[b+192>>2];f=0;while(1){if(J[(f<<4)+d>>2]!=256){f=f+1|0;if((f|0)!=(c|0))continue;break r}break}m=0;break q}c=dA(a,b,2);J[g+4>>2]=c;if(c)break b;c=J[b+188>>2];d=J[b+192>>2];m=1}if(!c)break b;i=J[b+100>>2];f=0;s:{t:{while(1){u:{e=(f<<4)+d|0;if(J[e>>2]==4){d=J[e+12>>2];c=J[a+8>>2];if(d>>>0>>0)break b;if(yd(a,d-c|0))break b;e=J[e+8>>2];J[g+28>>2]=0;c=g+28|0;f=Te(a,c);if(J[g+28>>2]|((f|256)&-256)!= -256)break b;h=f&4;v:{if(f>>>0<=255){if(h){c=md(a,c);break v}c=Te(a,g+28|0);break v}if(h){c=rc(a,g+28|0);break v}c=tC(a,g+28|0)}if(J[g+28>>2])break b;d=c-1|0;w:{if(f>>>0<=255){if(d>>>0<(e>>>0)/12>>>0)break w;break b}if(d>>>0>=(e>>>0)/5>>>0)break b}c=c>>>0>=65535?65535:c+1|0;J[b+288>>2]=c;c=Tb(i,16,0,c,0,g+28|0);J[b+292>>2]=c;if(J[g+28>>2])break b;x:{if(M[b+288>>2]<2)break x;d=c+16|0;e=1;if(f>>>0<=255){f=h?29840:29872;while(1){h=Nc(a,f,d);J[g+28>>2]=h;J[c+28>>2]=0;if(h)break t;h=d;if(!(I[c+18>>1]>= -I[d>>1]&I[c+22>>1]>=(0-I[c+24>>1]|0))){I[c+20>>1]=0;I[d>>1]=0;I[c+22>>1]=0;I[c+24>>1]=0;I[c+18>>1]=0}d=h+16|0;c=h;e=e+1|0;if(e>>>0>2])continue;break}break x}while(1){h=Nc(a,29904,g+8|0);if(h)break u;I[d>>1]=K[g+8|0]-128;k=K[g+9|0]-128|0;I[c+18>>1]=k;I[c+20>>1]=K[g+10|0]-128;f=K[g+11|0]-128|0;I[c+22>>1]=f;l=K[g+12|0];I[c+26>>1]=0;I[c+24>>1]=l-128;J[g+28>>2]=0;J[c+28>>2]=0;h=d;if(!((k|0)>=I[d>>1]&(f|0)>=(128-l|0))){I[c+20>>1]=0;I[d>>1]=0;I[c+22>>1]=0;I[c+24>>1]=0;I[c+18>>1]=0}d=h+16|0;c=h; -e=e+1|0;if(e>>>0>2])continue;break}}J[g+4>>2]=0;break s}f=f+1|0;if((f|0)!=(c|0))continue;break b}break}J[g+28>>2]=h;J[c+28>>2]=0}c=J[b+292>>2];if(c)Ab[J[i+8>>2]](i,c);J[b+292>>2]=0;c=J[g+28>>2];J[g+4>>2]=c;if(c)break b}d=J[b+188>>2];if(!d)break b;c=J[b+192>>2];f=0;while(1){e=c+(f<<4)|0;if(J[e>>2]==8){d=J[e+12>>2];c=J[a+8>>2];if(d>>>0>>0)break b;if(yd(a,d-c|0))break b;l=J[e+8>>2];c=Tc(a,8);J[g+8>>2]=c;if(c)break b;k=vC(a);h=k&4;y:{if(h){c=he(a);break y}c=vC(a)}Ec(a);if(k>>>0>255)break b; -d=c>>>0>=65534?65534:c;if((d|0)!=(J[b+288>>2]-1|0))break b;z:{if(!c)break z;e=(J[a+8>>2]+(d<<2)|0)+16|0;f=1;d=d>>>0<=1?1:d;if(!h)while(1){c=Te(a,g+8|0);J[(J[b+292>>2]+(f<<4)|0)+12>>2]=e+(c>>>0<=l>>>0?c:0);c=(d|0)==(f|0);f=f+1|0;if(!c)continue;break z}while(1){c=md(a,g+8|0);J[(J[b+292>>2]+(f<<4)|0)+12>>2]=e+(c>>>0<=l>>>0?c:0);c=(d|0)!=(f|0);f=f+1|0;if(c)continue;break}}if(J[g+8>>2])break b;A:{if(h){md(a,g+8|0);if(J[g+8>>2])break b;md(a,g+8|0);if(J[g+8>>2])break b;md(a,g+8|0);if(J[g+8>>2])break b;md(a, -g+8|0);if(!J[g+8>>2])break A;break b}Te(a,g+8|0);if(J[g+8>>2])break b;Te(a,g+8|0);if(J[g+8>>2])break b;Te(a,g+8|0);if(J[g+8>>2])break b;Te(a,g+8|0);if(J[g+8>>2])break b}J[b+312>>2]=k;J[g+4>>2]=0;i=a;a=0;l=xb-16|0;xb=l;e=3;h=J[b+188>>2];B:{if(!h)break B;n=b+296|0;d=J[b+192>>2];f=J[b+100>>2];while(1){c=d+(a<<4)|0;if(J[c>>2]==32){e=83;c=J[c+12>>2];a=J[i+8>>2];if(c>>>0>>0)break B;if(yd(i,c-a|0))break B;J[l+12>>2]=0;c=Te(i,l+12|0);e=J[l+12>>2];if(e)break B;e=3;if(c>>>0>255)break B;j=c&4;C:{if(j){e= -Nc(i,29936,n);break C}e=Nc(i,29968,n)}J[l+12>>2]=e;if(e)break B;e=8;c=L[b+296>>1];h=L[b+298>>1];if(c>>>0>h>>>0|h>>>0>255)break B;a=L[b+300>>1];d=L[b+302>>1];if(a>>>0>d>>>0|d>>>0>255)break B;a=P((d-a|0)+1|0,(h-c|0)+1|0);w=b,x=Tb(f,2,0,a,0,l+12|0),J[w+308>>2]=x;e=J[l+12>>2];if(e)break B;a=Tc(i,a<<1);J[l+12>>2]=a;D:{if(!a){e=L[b+304>>1];d=e>>>8|0;c=L[b+300>>1];E:{F:{if(d>>>0>>0){a=L[n>>1];break F}a=L[b+296>>1];if(L[b+302>>1]>>0)break F;h=e&255;if(h>>>0<(a&65535)>>>0)break F;k=L[b+298>>1];if(k>>> -0>=h>>>0)break E}I[b+304>>1]=(c<<8)+a;k=L[b+298>>1];d=c;h=a}e=1;a=a&65535;a=J[i+32>>2]+(((h&65535)-a|0)+P((k-a|0)+1|0,d-c|0)<<1)|0;a=K[a+!j|0]<<8|K[a+((j|0)!=0)|0];if((a|0)!=65535){a=a+1&65535;e=a>>>0>=M[b+288>>2]?1:a}d=J[b+292>>2];c=(e<<4)+d|0;a=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=a;a=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=a;e=L[b+300>>1];G:{if(e>>>0>L[b+302>>1])break G;d=L[b+298>>1];if(d>>>0>1])break G;a=J[b+308>>2];while(1){f=L[n>>1];H:{if(f>>>0>(d&65535)>>>0)break H;if(!j)while(1){c= -Vi(i)+1|0;I[a>>1]=(c|0)!=(c&65535)?-1:c;a=a+2|0;d=L[b+298>>1];f=f+1|0;if(d>>>0>=(f&65535)>>>0)continue;break H}while(1){c=Zc(i)+1|0;I[a>>1]=(c|0)!=(c&65535)?-1:c;a=a+2|0;d=L[b+298>>1];f=f+1|0;if(d>>>0>=(f&65535)>>>0)continue;break}}e=e+1|0;if(L[b+302>>1]>=(e&65535)>>>0)continue;break}}Ec(i);break D}a=J[b+308>>2];if(a)Ab[J[f+8>>2]](f,a);J[b+308>>2]=0}e=J[l+12>>2];break B}a=a+1|0;if((h|0)!=(a|0))continue;break}}xb=l+16|0;J[g+4>>2]=e;if(e)break b;if(!m){a=dA(i,b,256);J[g+4>>2]=a;if(a)break b}a=J[b+8>> -2];J[b+8>>2]=a|18;if(K[b+199|0])J[b+8>>2]=a|22;a=0;m=0;c=0;s=xb-16|0;xb=s;J[s+12>>2]=0;j=b;J[b+12>>2]=0;l=1;n=J[b+100>>2];h=8;f=7;i=11981;k=J[b+280>>2];I:{if((k|0)<=0){t=1;p=1;break I}o=J[j+284>>2];while(1){J:{b=a;d=fc(J[o+P(a,12)>>2],11280);a=a+1|0;if((k|0)<=(a|0))break J;if(d)continue}break}e=2;K:{if(d){l=0;break K}if(!K[(o+P(b,12)|0)+4|0]){l=0;break K}l=0;L:{a=(o+P(a,12)|0)-4|0;switch(K[J[a>>2]]-73|0){case 0:case 6:case 32:case 38:break L;default:break K}}J[j+12>>2]=1;l=(K[J[a>>2]]&223)==79?11357: -11500;e=3}while(1){M:{b=c;d=fc(J[o+P(b,12)>>2],11622);c=b+1|0;if((k|0)<=(c|0))break M;if(d)continue}break}a=0;t=1;q=0;N:{if(d)break N;q=0;if(!K[(o+P(b,12)|0)+4|0])break N;q=0;if((K[J[(o+P(c,12)|0)-4>>2]]|32)!=98)break N;J[j+12>>2]=e;t=0;q=11719}while(1){O:{b=a;d=fc(J[o+P(a,12)>>2],11814);a=a+1|0;if((k|0)<=(a|0))break O;if(d)continue}break}c=0;e=0;P:{if(d)break P;e=0;if(!K[(o+P(b,12)|0)+4|0])break P;a=J[(o+P(a,12)|0)-4>>2];b=K[a|0];e=0;if(!b)break P;e=0;if((b|0)==78)break P;e=0;if((b|0)==110)break P; -e=a}while(1){Q:{a=c;m=fc(J[o+P(a,12)>>2],11907);c=a+1|0;if((k|0)<=(c|0))break Q;if(m)continue}break}b=0;k=0;d=0;R:{if(m)break R;S:{if(!K[(o+P(a,12)|0)+4|0])break S;a=J[(o+P(c,12)|0)-4>>2];c=K[a|0];if(!c|(c|0)==78)break S;d=0;if((c|0)==110)break R;b=a;k=ac(a);d=k+1|0;break R}d=0}T:{if(t){q=0;break T}u=ac(q);d=(u+d|0)+1|0}m=0;if(l){v=ac(l);d=(v+d|0)+1|0;a=l}else a=0;o=a;U:{if(!e){a=0;break U}a=ac(e);d=(d+a|0)+1|0;m=e}l=!l;p=!e;if(!d)break I;i=b;f=k;h=d}e=tc(n,h,s+12|0);J[j+24>>2]=e;d=J[s+12>>2];if(!d){if(i){k= -Mb(e,i,f);V:{if(!f)break V;c=0;e=0;if(f>>>0>=4){h=f&-4;d=0;while(1){b=e+k|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|1)|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|2)|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|3)|0;if(K[b|0]==32)H[b|0]=45;e=e+4|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}d=f&3;if(!d)break V;while(1){b=e+k|0;if(K[b|0]==32)H[b|0]=45;e=e+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}e=f+k|0}if(!t){if(J[j+24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}e=Mb(e,q,u)+u|0}if(!l){if(J[j+24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}e=Mb(e,o,v)+v|0}if(!p){if(J[j+ -24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}f=Mb(e,m,a);W:{if(!a)break W;c=0;e=0;if(a>>>0>=4){h=a&-4;d=0;while(1){b=e+f|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|1)|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|2)|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|3)|0;if(K[b|0]==32)H[b|0]=45;e=e+4|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}d=a&3;if(!d)break W;while(1){b=e+f|0;if(K[b|0]==32)H[b|0]=45;e=e+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}e=a+f|0}H[e|0]=0;d=J[s+12>>2]}xb=s+16|0;J[g+4>>2]=d;if(d)break b;a=Ph(j,10323);X:{if(!(!a|!K[a+4|0])){w= -j,x=of(r,J[a+8>>2],g+4|0),J[w+20>>2]=x;if(!J[g+4>>2])break X;break b}J[j+20>>2]=0}J[j+28>>2]=1;J[j+16>>2]=J[j+288>>2];a=Tb(r,16,0,1,0,g+4|0);J[j+32>>2]=a;if(J[g+4>>2])break b;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;f=32767;c=J[j+208>>2]+J[j+204>>2]|0;b=c>>31;if((b^c)-b>>>0<=32767){b=c<<16>>16;c=b>>31;f=(b^c)-c|0}I[a>>1]=f;b=Ph(j,10453);Y:{if(b){c=J[b+8>>2];b=c>>31;d=32767;if((b^c)-b>>>0>327665)break Y;b=(c+5|0)/10<<16>>16;c=b>>31;d=(b^c)-c|0;break Y}d=hc(f<<16>>16,2,3)}I[a+2>>1]=d;b=Ph(j,10604); -if(b){b=J[b+8>>2];c=b>>31;b=(b^c)-c|0;if(b>>>0<=328898)b=hc(b,460800,72270);else b=32767;J[a+4>>2]=b}b=Ph(j,10739);if(b){c=J[b+8>>2];b=c>>31;if((b^c)-b>>>0<=32767){b=c<<16>>16;c=b>>31;b=(b^c)-c<<6}else b=2097088;J[a+12>>2]=b}c=Ph(j,10842);b=0;Z:{if(!c)break Z;d=J[c+8>>2];c=d>>31;b=32767;if((c^d)-c>>>0>32767)break Z;b=d<<16;b=((b|0)<0?0-b|0:b)>>16}_:{$:{aa:{ba:{c=Ph(j,10937);if(c){d=32767;e=J[c+8>>2];c=e>>31;if((c^e)-c>>>0>32767)break ba;c=e<<16>>16;d=c>>31;d=(c^d)-d|0;f=J[a+12>>2];if(f)break $;f= -J[a+4>>2];J[a+12>>2]=f;if(!(d&65535))break _;c=a+12|0;break aa}f=J[a+12>>2];if(f)break _;f=J[a+4>>2];J[a+12>>2]=f;break _}f=J[a+12>>2];if(f)break $;f=J[a+4>>2];J[a+12>>2]=f;c=a+12|0}f=hc(f,d<<16>>16,72);J[c>>2]=f}if(!b|!(d&65535))break _;f=hc(f,b,d<<16>>16)}J[a+8>>2]=f;b=Ph(j,11043);a=Ph(j,11171);if(!(!b|!K[b+4|0]|(!a|!K[a+4|0]))){c=J[a+8>>2];a=g+4|0;w=j,x=of(r,c,a),J[w+176>>2]=x;if(J[g+4>>2])break b;w=j,x=of(r,J[b+8>>2],a),J[w+180>>2]=x}if(J[g+4>>2])break b;e=0;break a}f=f+1|0;if((d|0)!=(f|0))continue; -break}}e=3}xb=g+32|0;return e}function Oq(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;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,u=0,v=0,w=0,x=0;i=xb-352|0;xb=i;a:{if(!f|R(0-d)<=2.220446049250313E-16|(!h|!g))break a;if(R(0-e)<=2.220446049250313E-16)break a;l=i+296|0;j=l;J[j+8>>2]=0;J[j+12>>2]=0;J[j>>2]=0;J[j+4>>2]=1072693248;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=1072693248;J[j+16>>2]=0;J[j+20>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;j=J[a+72>>2];Rd(l,Ab[J[J[j>>2]+72>> -2]](j,2)|0);j=d<0;b:{if(!(j|e<0)){q=c;r=b;break b}o=1;c:{if(!j){r=b;s=1;break c}r=b+d;t=b+b+d;d=-d;s=-1}b=0;d:{if(!(e<0)){q=c;break d}q=c+e;b=c+c+e;e=-e;o=-1}u=O[l+8>>3];O[l+8>>3]=s*u;v=O[l+24>>3];O[l+24>>3]=o*v;c=o;o=O[l+16>>3];O[l+16>>3]=c*o;c=O[l>>3];O[l>>3]=s*c;O[l+32>>3]=O[l+32>>3]+(t*c+b*o);O[l+40>>3]=O[l+40>>3]+(t*u+b*v)}e:{if(!((g|0)!=1|(h|0)!=1)){J[195395]=0;da(1863,i+160|0,+r,-1);g=J[195395];J[195395]=0;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{if((g|0)!=1){g=J[i+168>>2];J[i+168>> -2]=0;J[i+196>>2]=g;J[i+176>>2]=120;J[i+180>>2]=0;h=J[i+160>>2];g=J[i+164>>2];J[i+160>>2]=0;J[i+164>>2]=0;J[i+188>>2]=h;J[i+192>>2]=g;J[195395]=0;H[i+187|0]=1;da(1863,i+144|0,+q,-1);g=J[195395];J[195395]=0;if((g|0)==1)break u;g=J[i+148>>2];J[i+212>>2]=J[i+144>>2];J[i+216>>2]=g;h=J[i+152>>2];g=0;J[i+152>>2]=0;J[i+220>>2]=h;J[i+200>>2]=121;J[i+204>>2]=0;J[i+144>>2]=0;J[i+148>>2]=0;J[195395]=0;H[i+211|0]=1;da(1863,i+128|0,+d,-1);j=J[195395];J[195395]=0;h=i+224|0;if((j|0)==1)break t;J[195395]=0;j=_(1078, -32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break s;J[i+228>>2]=5;J[i+232>>2]=-2147483640;J[i+224>>2]=j;g=0;J[j+16>>2]=J[105201];h=J[105200];J[j+8>>2]=J[105199];J[j+12>>2]=h;h=J[105198];J[j>>2]=J[105197];J[j+4>>2]=h;J[j+20>>2]=0;J[i+244>>2]=J[i+136>>2];J[i+136>>2]=0;h=J[i+132>>2];J[i+236>>2]=J[i+128>>2];J[i+240>>2]=h;J[i+128>>2]=0;J[i+132>>2]=0;J[195395]=0;da(1863,i+112|0,+e,-1);j=J[195395];J[195395]=0;h=i+248|0;if((j|0)==1)break r;J[195395]=0;j=_(1078,32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break q; -J[i+252>>2]=6;J[i+256>>2]=-2147483640;J[i+248>>2]=j;g=0;h=J[105208];J[j+16>>2]=J[105207];J[j+20>>2]=h;h=J[105206];J[j+8>>2]=J[105205];J[j+12>>2]=h;h=J[105204];J[j>>2]=J[105203];J[j+4>>2]=h;J[j+24>>2]=0;J[i+268>>2]=J[i+120>>2];J[i+120>>2]=0;h=J[i+116>>2];J[i+260>>2]=J[i+112>>2];J[i+264>>2]=h;J[i+112>>2]=0;J[i+116>>2]=0;j=K[f|0];h=K[f+1|0];f=K[f+2|0];J[195395]=0;ma(3115,i+96|0,f|0,h|0,j|0,255);f=J[195395];J[195395]=0;if((f|0)==1)break p;J[195395]=0;g=_(1078,32)|0;f=J[195395];J[195395]=0;if((f|0)==1)break o; -J[i+276>>2]=4;J[i+280>>2]=-2147483640;J[i+272>>2]=g;f=J[105213];J[g+8>>2]=J[105212];J[g+12>>2]=f;f=J[105211];J[g>>2]=J[105210];J[g+4>>2]=f;J[g+16>>2]=0;J[i+292>>2]=J[i+104>>2];J[i+104>>2]=0;f=J[i+100>>2];J[i+284>>2]=J[i+96>>2];J[i+288>>2]=f;J[i+48>>2]=0;J[i+52>>2]=0;J[i+56>>2]=0;J[i+96>>2]=0;J[i+100>>2]=0;J[195395]=0;H[i+28|0]=0;J[i+24>>2]=i+48;h=_(1078,120)|0;f=J[195395];J[195395]=0;v:{w:{if((f|0)!=1){J[i+52>>2]=h;J[i+48>>2]=h;J[195395]=0;J[i+56>>2]=h+120;g=ha(1957,i+56|0,i+176|0,i+296|0,h|0)|0; -f=J[195395];J[195395]=0;if((f|0)!=1)break v;a=Z()|0;J[i+52>>2]=h;break w}a=Z()|0}Kc(i+24|0);Vb(i+272|0);Vb(i+248|0);Vb(i+224|0);Vb(i+200|0);Vb(i+176|0);g=1;break n}J[i+52>>2]=g;if(H[i+295|0]<0)Kb(J[i+284>>2]);if(H[i+283|0]<0)Kb(J[i+272>>2]);if(H[i+271|0]<0)Kb(J[i+260>>2]);if(H[i+259|0]<0)Kb(J[i+248>>2]);if(H[i+247|0]<0)Kb(J[i+236>>2]);if(H[i+235|0]<0)Kb(J[i+224>>2]);if(H[i+223|0]<0)Kb(J[i+212>>2]);if(H[i+211|0]<0)Kb(J[i+200>>2]);if(H[i+199|0]<0)Kb(J[i+188>>2]);if(H[i+187|0]<0)Kb(J[i+176>>2]);if(H[i+ -123|0]<0)Kb(J[i+112>>2]);if(H[i+139|0]<0)Kb(J[i+128>>2]);if(H[i+155|0]<0)Kb(J[i+144>>2]);if(H[i+171|0]<0)Kb(J[i+160>>2]);J[195395]=0;g=i+48|0;fa(1960,a|0,g|0,l|0);f=J[195395];J[195395]=0;if((f|0)==1)break i;J[195395]=0;h=_(1078,32)|0;f=J[195395];J[195395]=0;if((f|0)==1)break h;J[i+176>>2]=h;J[i+180>>2]=4;J[i+184>>2]=-2147483640;f=J[105193];J[h+8>>2]=J[105192];J[h+12>>2]=f;f=J[105191];J[h>>2]=J[105190];J[h+4>>2]=f;J[h+16>>2]=0;J[195395]=0;J[i+160>>2]=0;H[i+171|0]=0;ia(1961,a|0,i+176|0,g|0,i+160|0); -a=J[195395];J[195395]=0;if((a|0)==1)break g;if(H[i+171|0]<0)Kb(J[i+160>>2]);if(H[i+187|0]<0)Kb(J[i+176>>2]);g=J[i+48>>2];if(!g)break a;f=J[i+52>>2];h=g;if((f|0)!=(h|0)){while(1){if(H[f-1|0]<0)Kb(J[f-12>>2]);a=f-24|0;if(H[f-13|0]<0)Kb(J[a>>2]);f=a;if((g|0)!=(f|0))continue;break}h=J[i+48>>2]}J[i+52>>2]=g;Kb(h);break a}ba(Z()|0);B()}h=i+200|0;a=Z()|0;g=0;break j}a=Z()|0;break k}a=Z()|0;g=0;break l}a=Z()|0;break l}a=Z()|0;g=0;break m}a=Z()|0;break n}a=Z()|0;g=0;if(H[i+107|0]>=0)break n;Kb(J[i+96>>2])}h= -i+272|0}if(H[i+123|0]>=0)break l;Kb(J[i+112>>2])}if(H[i+139|0]>=0)break k;Kb(J[i+128>>2])}if(H[i+155|0]>=0)break j;Kb(J[i+144>>2])}if(H[i+171|0]<0)Kb(J[i+160>>2]);if((i+176|0)==(h|0)|g)break e;while(1){h=Vb(h-24|0);if((h|0)!=(i+176|0))continue;break}break e}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;if(H[i+171|0]<0)Kb(J[i+160>>2]);if(H[i+187|0]>=0)break f;Kb(J[i+176>>2])}Hc(i+48|0);ba(f|0);B()}k=i+48|0;J[k>>2]=0;J[k+4>>2]=0;H[k+40|0]=0;J[k+32>>2]=0;J[k+36>>2]=-1074790400;H[k+21|0]=0;H[k+22|0]=0;H[k+ -23|0]=0;H[k+24|0]=0;H[k+25|0]=0;H[k+26|0]=0;H[k+27|0]=0;H[k+28|0]=0;J[k+16>>2]=0;J[k+20>>2]=0;J[k+8>>2]=0;J[k+12>>2]=0;J[195395]=0;J[k+16>>2]=f;f=J[195395];J[195395]=0;x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{if((f|0)!=1){J[195395]=0;J[i+176>>2]=g;J[k+4>>2]=J[i+176>>2];f=J[195395];J[195395]=0;if((f|0)==1)break Z;J[195395]=0;J[i+176>>2]=h;J[k+8>>2]=J[i+176>>2];f=J[195395];J[195395]=0;if((f|0)==1)break Y;J[i+44>>2]=0;J[195395]=0;J[i+40>>2]=0;g=ha(1137,k| -0,i+44|0,i+40|0,4)|0;f=J[195395];J[195395]=0;if((f|0)==1)break y;if(g)break X;J[195395]=0;J[k+16>>2]=0;a=J[195395];J[195395]=0;if((a|0)!=1)break W;break y}a=Z()|0;break x}a=Z()|0;break x}a=Z()|0;break x}J[195395]=0;J[k+16>>2]=0;f=J[195395];J[195395]=0;if((f|0)==1)break y;f=J[i+40>>2];_:{if((f|0)<=0)break _;J[195395]=0;g=Hq(f,0);f=J[195395];J[195395]=0;if((f|0)==1)break J;J[195395]=0;J[i+36>>2]=g;j=_(1109,g|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break z;J[195395]=0;Gq(J[i+44>>2],J[i+40>>2],j,i+36| -0,0);f=J[195395];J[195395]=0;if((f|0)==1)break z;m=J[i+36>>2];if(m>>>0>=1073741808){J[195395]=0;ea(1800,i+160|0);a=J[195395];J[195395]=0;if((a|0)==1)break B;break A}$:{aa:{if(m>>>0>=2){f=m|3;if(f>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break A;break B}J[195395]=0;h=f+1|0;f=_(1078,h<<2)|0;g=J[195395];J[195395]=0;if((g|0)==1)break B;J[i+160>>2]=f;J[i+164>>2]=m;J[i+168>>2]=h|-2147483648;break aa}H[i+171|0]=m;f=i+160|0;if(!m)break $}n=m-1|0;p=m&7;ba:{if(!p){h=j;break ba}g= -0;h=j;while(1){J[f>>2]=K[h|0];f=f+4|0;h=h+1|0;g=g+1|0;if((p|0)!=(g|0))continue;break}}if(n>>>0<7)break $;g=j+m|0;while(1){J[f>>2]=K[h|0];J[f+4>>2]=K[h+1|0];J[f+8>>2]=K[h+2|0];J[f+12>>2]=K[h+3|0];J[f+16>>2]=K[h+4|0];J[f+20>>2]=K[h+5|0];J[f+24>>2]=K[h+6|0];J[f+28>>2]=K[h+7|0];f=f+32|0;h=h+8|0;if((g|0)!=(h|0))continue;break}}J[f>>2]=0;Kb(j);J[195395]=0;da(1863,i+128|0,+r,-1);f=J[195395];J[195395]=0;if((f|0)==1)break V;f=J[i+136>>2];J[i+136>>2]=0;J[i+196>>2]=f;J[i+176>>2]=120;J[i+180>>2]=0;g=J[i+128>> -2];f=J[i+132>>2];J[i+128>>2]=0;J[i+132>>2]=0;J[i+188>>2]=g;J[i+192>>2]=f;J[195395]=0;H[i+187|0]=1;da(1863,i+112|0,+q,-1);f=J[195395];J[195395]=0;if((f|0)==1)break U;f=J[i+116>>2];J[i+212>>2]=J[i+112>>2];J[i+216>>2]=f;f=J[i+120>>2];g=0;J[i+120>>2]=0;J[i+220>>2]=f;J[i+200>>2]=121;J[i+204>>2]=0;J[i+112>>2]=0;J[i+116>>2]=0;J[195395]=0;H[i+211|0]=1;da(1863,i+96|0,+d,-1);h=J[195395];J[195395]=0;f=i+224|0;if((h|0)==1)break T;J[195395]=0;h=_(1078,32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break S;J[i+228>> -2]=5;J[i+232>>2]=-2147483640;J[i+224>>2]=h;g=0;J[h+16>>2]=J[105201];f=J[105200];J[h+8>>2]=J[105199];J[h+12>>2]=f;f=J[105198];J[h>>2]=J[105197];J[h+4>>2]=f;J[h+20>>2]=0;J[i+244>>2]=J[i+104>>2];J[i+104>>2]=0;f=J[i+100>>2];J[i+236>>2]=J[i+96>>2];J[i+240>>2]=f;J[i+96>>2]=0;J[i+100>>2]=0;J[195395]=0;da(1863,i+24|0,+e,-1);h=J[195395];J[195395]=0;f=i+248|0;if((h|0)==1)break R;J[195395]=0;h=_(1078,32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Q;J[i+252>>2]=6;J[i+256>>2]=-2147483640;J[i+248>>2]=h;f=J[105208]; -J[h+16>>2]=J[105207];J[h+20>>2]=f;f=J[105206];J[h+8>>2]=J[105205];J[h+12>>2]=f;f=J[105204];J[h>>2]=J[105203];J[h+4>>2]=f;J[h+24>>2]=0;J[i+268>>2]=J[i+32>>2];J[i+32>>2]=0;f=J[i+28>>2];J[i+260>>2]=J[i+24>>2];J[i+264>>2]=f;J[i+24>>2]=0;J[i+28>>2]=0;f=K[i+171|0];p=f<<24>>24;j=(p|0)<0?J[i+164>>2]:f;n=j+22|0;if(n>>>0>=1073741808){J[195395]=0;ea(1800,i+8|0);a=J[195395];J[195395]=0;if((a|0)!=1)break A;break I}ca:{if(n>>>0<=1){J[i+16>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0;H[i+19|0]=n;h=i+8|0;break ca}f=n|3;if(f>>> -0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break A;break I}J[195395]=0;g=f+1|0;h=_(1078,g<<2)|0;f=J[195395];J[195395]=0;if((f|0)==1)break I;J[i+12>>2]=n;J[i+8>>2]=h;J[i+16>>2]=g|-2147483648}g=0;f=j<<2;w=qc(Mb(h,421812,88)+88|0,(p|0)<0?J[i+160>>2]:i+160|0,f)+f|0,x=0,J[w>>2]=x;J[195395]=0;h=_(1078,48)|0;f=J[195395];J[195395]=0;if((f|0)==1)break P;J[i+276>>2]=10;J[i+280>>2]=-2147483636;J[i+272>>2]=h;f=J[105451];J[h+32>>2]=J[105450];J[h+36>>2]=f;f=J[105449];J[h+24>>2]=J[105448]; -J[h+28>>2]=f;f=J[105447];J[h+16>>2]=J[105446];J[h+20>>2]=f;f=J[105445];J[h+8>>2]=J[105444];J[h+12>>2]=f;f=J[105443];J[h>>2]=J[105442];J[h+4>>2]=f;J[h+40>>2]=0;J[i+292>>2]=J[i+16>>2];J[i+16>>2]=0;f=J[i+12>>2];J[i+284>>2]=J[i+8>>2];J[i+288>>2]=f;J[i+144>>2]=0;J[i+148>>2]=0;J[i+152>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0;J[195395]=0;H[i+348|0]=0;J[i+344>>2]=i+144;h=_(1078,120)|0;f=J[195395];J[195395]=0;da:{ea:{if((f|0)!=1){J[i+148>>2]=h;J[i+144>>2]=h;J[195395]=0;J[i+152>>2]=h+120;g=ha(1957,i+152|0,i+176|0,i+ -296|0,h|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break da;a=Z()|0;J[i+148>>2]=h;break ea}a=Z()|0}Kc(i+344|0);Vb(i+272|0);Vb(i+248|0);Vb(i+224|0);Vb(i+200|0);Vb(i+176|0);g=1;break O}J[i+148>>2]=g;if(H[i+295|0]<0)Kb(J[i+284>>2]);if(H[i+283|0]<0)Kb(J[i+272>>2]);if(H[i+271|0]<0)Kb(J[i+260>>2]);if(H[i+259|0]<0)Kb(J[i+248>>2]);if(H[i+247|0]<0)Kb(J[i+236>>2]);if(H[i+235|0]<0)Kb(J[i+224>>2]);if(H[i+223|0]<0)Kb(J[i+212>>2]);if(H[i+211|0]<0)Kb(J[i+200>>2]);if(H[i+199|0]<0)Kb(J[i+188>>2]);if(H[i+187|0]<0)Kb(J[i+ -176>>2]);if(H[i+19|0]<0)Kb(J[i+8>>2]);if(H[i+35|0]<0)Kb(J[i+24>>2]);if(H[i+107|0]<0)Kb(J[i+96>>2]);if(H[i+123|0]<0)Kb(J[i+112>>2]);if(H[i+139|0]<0)Kb(J[i+128>>2]);J[195395]=0;fa(1960,a|0,i+144|0,l|0);f=J[195395];J[195395]=0;if((f|0)==1)break N;fa:{if(K[a+81|0])break fa;J[195395]=0;g=_(3106,a|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break N;if(!g)break fa;H[a+81|0]=1}J[195395]=0;g=_(1078,32)|0;f=J[195395];J[195395]=0;if((f|0)==1)break M;J[i+176>>2]=g;J[i+180>>2]=5;J[i+184>>2]=-2147483640;J[g+16>>2]= -J[105480];f=J[105479];J[g+8>>2]=J[105478];J[g+12>>2]=f;f=J[105477];J[g>>2]=J[105476];J[g+4>>2]=f;J[g+20>>2]=0;J[195395]=0;J[i+128>>2]=0;H[i+139|0]=0;ia(1961,a|0,i+176|0,i+144|0,i+128|0);a=J[195395];J[195395]=0;if((a|0)==1)break L;if(H[i+139|0]<0)Kb(J[i+128>>2]);if(H[i+187|0]<0)Kb(J[i+176>>2]);g=J[i+144>>2];if(g){f=J[i+148>>2];h=g;if((f|0)!=(h|0)){while(1){if(H[f-1|0]<0)Kb(J[f-12>>2]);a=f-24|0;if(H[f-13|0]<0)Kb(J[a>>2]);f=a;if((g|0)!=(f|0))continue;break}h=J[i+144>>2]}J[i+148>>2]=g;Kb(h)}if(H[i+171| -0]>=0)break _;Kb(J[i+160>>2])}a=J[i+44>>2];if(!a)break W;Kb(a)}kd(k);break a}a=Z()|0;break C}f=i+200|0;a=Z()|0;g=0;break D}a=Z()|0;break E}a=Z()|0;g=0;break F}a=Z()|0;break F}a=Z()|0;g=0;break G}a=Z()|0}if(H[i+19|0]>=0)break H;Kb(J[i+8>>2]);break H}a=Z()|0;break K}a=Z()|0;break K}a=Z()|0;if(H[i+139|0]<0)Kb(J[i+128>>2]);if(H[i+187|0]>=0)break K;Kb(J[i+176>>2])}Hc(i+144|0);break C}a=Z()|0;break x}a=Z()|0;g=0}f=i+272|0}if(H[i+35|0]>=0)break F;Kb(J[i+24>>2])}if(H[i+107|0]>=0)break E;Kb(J[i+96>>2])}if(H[i+ -123|0]>=0)break D;Kb(J[i+112>>2])}if(H[i+139|0]<0)Kb(J[i+128>>2]);if((i+176|0)==(f|0)|g)break C;while(1){f=Vb(f-24|0);if((f|0)!=(i+176|0))continue;break}}if(H[i+171|0]>=0)break x;Kb(J[i+160>>2]);break x}a=Z()|0;break x}B()}a=Z()|0;break x}a=Z()|0}kd(k)}ba(a|0);B()}xb=i+352|0}function KC(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=xb-32|0;xb=i;h=J[a+584>>2];b=J[h+168>>2];if(!b){b=Ab[J[a+648>>2]](J[a+628>>2])|0;J[h+168>>2]=b}c=J[h+196>>2];a:{if(!c)break a;if(b>>>0<=c>>>0){J[h+196>>2]=0;J[h+ -200>>2]=0;break a}d=J[h+200>>2];if(c+d>>>0<=b>>>0?d:0)break a;J[h+200>>2]=b-c}J[h+1124>>2]=0;J[h+1128>>2]=0;c=J[a+180>>2];I[h+1148>>1]=0;J[h+1144>>2]=0;J[h+1132>>2]=c;b=0;b:{c:{d:{e:{f:{while(1){g:{if(b&65535)break g;if(Jd(h))break g;b=0;break b}h:{i:{j:{k:{c=J[h+1152>>2];if(K[c|0]!=255)break k;c=c+1|0;J[h+1152>>2]=c;b=L[h+1148>>1]-1|0;I[h+1148>>1]=b;l:{m:{n:{o:{p:{q:{while(1){if(!(b&65535)){if(!Jd(h)){b=0;break b}b=L[h+1148>>1];c=J[h+1152>>2]}d=K[c|0];b=b-1|0;I[h+1148>>1]=b;c=c+1|0;J[h+1152>>2]= -c;r:switch(d-192|0){case 24:break i;case 26:break m;case 0:case 1:case 3:break n;case 4:break o;case 27:break p;case 29:break q;case 63:continue;case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 62:break r;default:break l}break}if(!(b&65535)){if(!Jd(h)){b=0;break b}b=L[h+1148>>1];c=J[h+1152>>2]}d=K[c|0];b=b-1|0;I[h+1148>>1]=b;c=c+1|0;J[h+1152>>2]=c;if(!(b&65535)){if(!Jd(h)){b=0;break b}b=L[h+1148>>1];c=J[h+1152>>2]}e= -K[c|0];b=b-1|0;I[h+1148>>1]=b;f=c+1|0;J[h+1152>>2]=f;d=d<<8|e;c=d;if(c>>>0<=1){b=0;if(K[h+205|0])break b;Ob(J[a+628>>2],288112,271751,0);break b}if((c|0)==2)break i;k=b;c=b&65535;e=d-2|0;b=e&65535;d=b>>>0>c>>>0?c:b;I[h+1148>>1]=k-d;J[h+1152>>2]=d+f;if(b>>>0<=c>>>0)break i;H[h+1140|0]=0;c=J[h+1144>>2];b=e-d|0;b=(c>>>0<(b&65535)>>>0?c:b)&65535;J[h+1144>>2]=c-b;J[h+1136>>2]=b+J[h+1136>>2];break i}b=J[a+584>>2];c=L[b+1148>>1];if(!c){if(!Jd(b)){b=0;break b}c=L[b+1148>>1]}d=J[b+1152>>2];e=K[d|0];c=c-1| -0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;if(!(c&65535)){if(!Jd(b)){b=0;break b}d=J[b+1152>>2];c=L[b+1148>>1]}f=K[d|0];c=c-1|0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;if((f|e<<8)!=4){b=0;Ob(J[a+628>>2],288144,272779,0);break b}if(!(c&65535)){if(!Jd(b)){b=0;break b}d=J[b+1152>>2];c=L[b+1148>>1]}e=K[d|0];c=c-1|0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;if(!(c&65535)){if(!Jd(b)){b=0;break b}d=J[b+1152>>2];c=L[b+1148>>1]}f=K[d|0];I[b+1148>>1]=c-1;J[b+1152>>2]=d+1;I[b+300>>1]=f|e<<8;break i}b=J[a+584>>2];c=L[b+ -1148>>1];if(!c){if(!Jd(b)){b=0;break b}c=L[b+1148>>1]}d=J[b+1152>>2];e=K[d|0];c=c-1|0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;if(!(c&65535)){if(!Jd(b)){b=0;break b}d=J[b+1152>>2];c=L[b+1148>>1]}f=K[d|0];c=c-1|0;I[b+1148>>1]=c;g=d+1|0;J[b+1152>>2]=g;d=K[b+205|0];e=e<<8|f;if(e>>>0<=2){b=0;if(d)break b;Ob(J[a+628>>2],288176,273137,0);break b}f=e-2|0;if(d){k=c;c=c&65535;d=f&65535;e=c>>>0>>0?c:d;I[b+1148>>1]=k-e;J[b+1152>>2]=e+g;if(c>>>0>=d>>>0)break i;H[b+1140|0]=0;c=J[b+1144>>2];d=f-e|0;d=(c>>>0<(d& -65535)>>>0?c:d)&65535;J[b+1144>>2]=c-d;J[b+1136>>2]=d+J[b+1136>>2];break i}while(1){if((f&65535)>>>0<=64){b=0;Ob(J[a+628>>2],288176,273137,0);break b}c=Qb(73);if(!c){b=0;Ob(J[a+628>>2],288176,273221,0);break b}J[c>>2]=73;J[c+4>>2]=1124129791;d=L[b+1148>>1];e=65;g=c+8|0;while(1){if(!(d&65535)){if(!Jd(b)){b=0;break b}d=L[b+1148>>1]}j=e&65535;d=d&65535;j=d>>>0>j>>>0?j:d;Pc(g,J[b+1152>>2],j);J[b+1152>>2]=j+J[b+1152>>2];d=L[b+1148>>1]-j|0;I[b+1148>>1]=d;g=g+j|0;e=e-j|0;if(e&65535)continue;break}d=K[c+ -8|0]&15;if(d>>>0>=4){b=0;Ob(J[a+628>>2],288176,273137,0);break b}d=b+(d<<2)|0;e=J[d+252>>2];if(e)Kb(e);J[d+252>>2]=c;f=f-65|0;if(f&65535)continue;break}break i}b=J[a+584>>2];c=L[b+1148>>1];if(!c){if(!Jd(b)){b=0;break b}c=L[b+1148>>1]}d=J[b+1152>>2];e=K[d|0];c=c-1|0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;if(!(c&65535)){if(!Jd(b)){b=0;break b}d=J[b+1152>>2];c=L[b+1148>>1]}f=K[d|0];c=c-1|0;I[b+1148>>1]=c;j=d+1|0;J[b+1152>>2]=j;g=K[b+205|0];d=f|e<<8;if(d>>>0<=2){b=0;if(g)break b;Ob(J[a+628>>2],288208, -273582,0);break b}if(g){k=c;c=c&65535;f=d-2|0;d=f&65535;e=c>>>0>>0?c:d;I[b+1148>>1]=k-e;J[b+1152>>2]=e+j;if(c>>>0>=d>>>0)break i;H[b+1140|0]=0;c=J[b+1144>>2];d=f-e|0;d=(c>>>0<(d&65535)>>>0?c:d)&65535;J[b+1144>>2]=c-d;J[b+1136>>2]=d+J[b+1136>>2];break i}g=d+6|0;c=Qb(g);if(!c){b=0;Ob(J[a+628>>2],288208,273221,0);break b}H[c+7|0]=f;H[c+6|0]=e;H[c+4|0]=255;H[c+5|0]=196;J[c>>2]=g;e=d-2|0;d=L[b+1148>>1];g=c+8|0;while(1){if(!(d&65535)){if(!Jd(b)){b=0;break b}d=L[b+1148>>1]}f=e&65535;d=d&65535;f=d>>>0> -f>>>0?f:d;Pc(g,J[b+1152>>2],f);J[b+1152>>2]=f+J[b+1152>>2];d=L[b+1148>>1]-f|0;I[b+1148>>1]=d;g=f+g|0;e=e-f|0;if(e&65535)continue;break}s:{t:{d=K[c+8|0];e=d&240;if(e)if((e|0)==16)break s;else break t;if(d>>>0>=4){b=0;Ob(J[a+628>>2],288208,273582,0);break b}b=b+(d<<2)|0;d=J[b+268>>2];if(d)Kb(d);J[b+268>>2]=c;break i}b=0;Ob(J[a+628>>2],288208,273582,0);break b}d=d&15;if(d>>>0>=4){b=0;Ob(J[a+628>>2],288208,273582,0);break b}b=b+(d<<2)|0;d=J[b+284>>2];if(d)Kb(d);J[b+284>>2]=c;break i}b=J[a+584>>2];k=271751; -if(K[b+303|0])break d;if(!K[b+205|0])H[b+304|0]=d;c=L[b+1148>>1];if(!c){if(!Jd(b))break c;c=L[b+1148>>1]}e=J[b+1152>>2];f=K[e|0];c=c-1|0;I[b+1148>>1]=c;e=e+1|0;J[b+1152>>2]=e;if(!(c&65535)){if(!Jd(b))break c;e=J[b+1152>>2];c=L[b+1148>>1]}g=K[e|0];c=c-1|0;I[b+1148>>1]=c;e=e+1|0;J[b+1152>>2]=e;f=f<<8|g;if(f>>>0<=10){if(K[b+205|0])break c;k=273824;break d}f=f-8|0;j=f&65535;g=(j>>>0)/3|0;if(f-P(g,3)&65535){if(K[b+205|0])break c;k=273824;break d}f=K[b+205|0];k=273981;if(!(f|(g|0)==K[b+192|0]))break d; -if(!(c&65535)){if(!Jd(b))break c;f=K[b+205|0];e=J[b+1152>>2];c=L[b+1148>>1]}l=K[e|0];H[i+15|0]=l;I[b+1148>>1]=c-1;J[b+1152>>2]=e+1;if((l|0)!=8){if(f&255)break c;k=274293;break d}u:{if(f&255){c=L[b+1148>>1];e=c>>>0<4;f=e?c:4;J[b+1152>>2]=f+J[b+1152>>2];I[b+1148>>1]=c-f;if(e){H[b+1140|0]=0;c=J[b+1144>>2];e=4-f|0;e=(c>>>0<(e&65535)>>>0?c:e)&65535;J[b+1144>>2]=c-e;J[b+1136>>2]=e+J[b+1136>>2]}break u}if(!HC(b,i+16|0))break c;c=L[i+16>>1];k=274495;if(!(c>>>0>=M[b+176>>2]|c>>>0>=M[b+188>>2]))break d;J[b+ -312>>2]=c;if(!HC(b,i+16|0))break c;c=L[i+16>>1];k=274676;if(!(c>>>0>=M[b+172>>2]|c>>>0>=M[b+180>>2]))break d;J[b+308>>2]=c}if(!Wi(b,i+15|0))break c;if((g|0)==K[i+15|0]){if(!Wi(b,i+15|0))break c;if(!K[b+205|0])H[b+316|0]=K[i+15|0];if(!Wi(b,i+15|0))break c;c=K[i+15|0];if(K[b+205|0]){e=c&15;H[b+209|0]=e;c=c>>>4|0;H[b+208|0]=c;if(!(!(1<>>0>4|e>>>0>4))if(1<>2];J[i>>2]=d;Ob(a,288112,272154,i);b=0;break b}b=1;if(K[h+205|0])break b;break f}if(!Wi(b,i+15|0))break c;e=K[b+205|0];if(!e)H[b+322|0]=K[i+15|0];c=1;if(j>>>0>=6)while(1){if(!Wi(b,i+15|0))break c;if(!K[b+205|0])H[(b+c|0)+316|0]=K[i+15|0];if(!Wi(b,i+15|0))break c;e=K[i+15|0];v:{if(K[b+205|0]){if((e|0)==17)break v;H[b+210|0]=1;break v}H[(b+c|0)+319|0]=e;if(K[b+210|0])break v;if((e|0)!=17)break e}if(!Wi(b,i+15|0))break c;e=K[b+ -205|0];if(!e)H[(b+c|0)+322|0]=K[i+15|0];c=c+1|0;if((g|0)!=(c|0))continue;break}if(!e)H[b+303|0]=1;if(K[h+205|0])break h;if((d|0)==218)break f}b=L[h+1148>>1];continue}break}b=1;break b}b=1;if(K[h+303|0])break b;w:{d=J[a+584>>2];if(!J[d+216>>2]){g=a+628|0;c=275202;break w}c=0;H[d+1140|0]=0;b=K[d+192|0];if(b){g=a+628|0;j=d+322|0;e=-1;while(1){x:{y:{l=d+(c<<2)|0;f=J[l+216>>2];if(!f){k=c-1|0;break y}z:{if(!c)break z;k=c-1|0;if((f|0)==J[(d+(k<<2)|0)+216>>2])break y;b=0;if(c>>>0<=1)break z;while(1){if((f| -0)!=J[(d+(b<<2)|0)+216>>2]){b=b+1|0;if((e|0)!=(b|0))continue;break z}break}c=275383;break w}f=Qb(73);if(!f){c=273221;break w}H[f+8|0]=c;J[f>>2]=73;J[f+4>>2]=1124129791;b=0;Ab[J[a+640>>2]](J[a+628>>2],J[l+216>>2],0)|0;if((Ab[J[a+632>>2]](J[a+628>>2],f+9|0,64)|0)!=64)break b;J[l+252>>2]=f;H[(c+d|0)+322|0]=c;b=K[d+192|0];break x}H[c+j|0]=K[j+k|0]}e=e+1|0;c=c+1|0;if(c>>>0<(b&255)>>>0)continue;break}}H[h+304|0]=192;f=K[h+192|0];A:{if(!f){H[h+319|0]=K[h+209|0]|K[h+208|0]<<4;break A}d=0;b=0;if(f>>>0>=8){g= -f&248;c=h+316|0;e=0;while(1){H[b+c|0]=b;j=b|1;H[j+c|0]=j;j=b|2;H[j+c|0]=j;j=b|3;H[j+c|0]=j;j=b|4;H[j+c|0]=j;j=b|5;H[j+c|0]=j;j=b|6;H[j+c|0]=j;j=b|7;H[j+c|0]=j;b=b+8|0;e=e+8|0;if((g|0)!=(e|0))continue;break}}c=f&7;if(c)while(1){H[(b+h|0)+316|0]=b;b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}H[h+319|0]=K[h+209|0]|K[h+208|0]<<4;if(f>>>0<2)break A;c=f-1|0;e=c&7;b=1;if(f-2>>>0>=7){f=c&-8;c=0;while(1){d=b+h|0;H[d+319|0]=17;H[d+320|0]=17;H[d+321|0]=17;H[d+322|0]=17;H[d+323|0]=17;H[d+324|0]=17;H[d+325| -0]=17;H[d+326|0]=17;b=b+8|0;c=c+8|0;if((f|0)!=(c|0))continue;break}}if(!e)break A;c=0;while(1){H[(b+h|0)+319|0]=17;b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}H[h+303|0]=1;J[h+308>>2]=J[h+180>>2];J[h+312>>2]=J[h+188>>2];d=J[a+584>>2];if(!J[d+228>>2]){Ob(J[a+628>>2],288352,275202,0);b=0;break b}H[d+1140|0]=0;b=K[d+192|0];if(b){j=d+328|0;e=-1;c=0;while(1){B:{C:{l=d+(c<<2)|0;g=J[l+228>>2];if(!g){f=c-1|0;break C}D:{E:{if(!c)break E;f=c-1|0;if((g|0)==J[(d+(f<<2)|0)+228>>2])break C;b=0;if(c>>>0<=1)break E; -while(1){if((g|0)!=J[(d+(b<<2)|0)+228>>2]){b=b+1|0;if((e|0)!=(b|0))continue;break E}break}Ob(J[a+628>>2],288352,275596,0);break D}Ab[J[a+640>>2]](J[a+628>>2],g,0)|0;if((Ab[J[a+632>>2]](J[a+628>>2],i+16|0,16)|0)!=16)break D;f=K[i+31|0]+(K[i+30|0]+(K[i+29|0]+(K[i+28|0]+(K[i+27|0]+(K[i+26|0]+(K[i+25|0]+(K[i+24|0]+(K[i+23|0]+(K[i+22|0]+(K[i+21|0]+(K[i+20|0]+(K[i+19|0]+(K[i+18|0]+(K[i+17|0]+K[i+16|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;g=f+25|0;b=Qb(g);if(!b){Ob(J[a+628>>2],288352,273221,0);b= -0;break b}H[b+8|0]=c;H[b+4|0]=255;H[b+5|0]=196;J[b>>2]=g;g=f+19|0;H[b+7|0]=g;H[b+6|0]=g>>>8;H[b+9|0]=K[i+16|0];H[b+10|0]=K[i+17|0];H[b+11|0]=K[i+18|0];H[b+12|0]=K[i+19|0];H[b+13|0]=K[i+20|0];H[b+14|0]=K[i+21|0];H[b+15|0]=K[i+22|0];H[b+16|0]=K[i+23|0];H[b+17|0]=K[i+24|0];H[b+18|0]=K[i+25|0];H[b+19|0]=K[i+26|0];H[b+20|0]=K[i+27|0];H[b+21|0]=K[i+28|0];H[b+22|0]=K[i+29|0];H[b+23|0]=K[i+30|0];H[b+24|0]=K[i+31|0];if((Ab[J[a+632>>2]](J[a+628>>2],b+25|0,f)|0)!=(f|0))break D;J[l+268>>2]=b;H[(c+d|0)+328|0]= -c<<4;b=K[d+192|0];break B}b=0;break b}H[c+j|0]=K[f+j|0]}e=e+1|0;c=c+1|0;if(c>>>0<(b&255)>>>0)continue;break}}e=0;d=0;c=xb-16|0;xb=c;g=J[a+584>>2];F:{if(!J[g+240>>2]){Ob(J[a+628>>2],288400,275202,0);break F}H[g+1140|0]=0;b=K[g+192|0];if(!b){e=1;break F}l=g+328|0;while(1){G:{H:{k=g+(d<<2)|0;j=J[k+240>>2];if(!j){f=d-1|0;break H}I:{if(!d)break I;f=d-1|0;if((j|0)==J[(g+(f<<2)|0)+240>>2])break H;e=0;b=0;if(d>>>0<=1)break I;while(1){if((j|0)!=J[(g+(e<<2)|0)+240>>2]){b=b+1|0;e=b&255;if((f|0)>(e|0))continue; -break I}break}e=0;Ob(J[a+628>>2],288400,275762,0);break F}e=0;Ab[J[a+640>>2]](J[a+628>>2],j,0)|0;if((Ab[J[a+632>>2]](J[a+628>>2],c,16)|0)!=16)break F;f=K[c+15|0]+(K[c+14|0]+(K[c+13|0]+(K[c+12|0]+(K[c+11|0]+(K[c+10|0]+(K[c+9|0]+(K[c+8|0]+(K[c+7|0]+(K[c+6|0]+(K[c+5|0]+(K[c+4|0]+(K[c+3|0]+(K[c+2|0]+(K[c|0]+K[c+1|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;j=f+25|0;b=Qb(j);if(!b){Ob(J[a+628>>2],288400,273221,0);break F}H[b+4|0]=255;H[b+5|0]=196;J[b>>2]=j;H[b+8|0]=d|16;j=f+19|0;H[b+7|0]=j;H[b+6|0]= -j>>>8;H[b+9|0]=K[c|0];H[b+10|0]=K[c+1|0];H[b+11|0]=K[c+2|0];H[b+12|0]=K[c+3|0];H[b+13|0]=K[c+4|0];H[b+14|0]=K[c+5|0];H[b+15|0]=K[c+6|0];H[b+16|0]=K[c+7|0];H[b+17|0]=K[c+8|0];H[b+18|0]=K[c+9|0];H[b+19|0]=K[c+10|0];H[b+20|0]=K[c+11|0];H[b+21|0]=K[c+12|0];H[b+22|0]=K[c+13|0];H[b+23|0]=K[c+14|0];H[b+24|0]=K[c+15|0];if((Ab[J[a+632>>2]](J[a+628>>2],b+25|0,f)|0)!=(f|0))break F;J[k+284>>2]=b;b=d+g|0;H[b+328|0]=K[b+328|0]|d;b=K[g+192|0];break G}e=d+l|0;H[e|0]=K[e|0]|K[f+l|0]&15}e=1;d=d+1|0;if(d>>>0<(b&255)>>> -0)continue;break}}xb=c+16|0;if(!e){b=0;break b}b=1;a=K[h+192|0];if(a>>>0<2)break b;d=a-1|0;f=d&7;c=1;if(a-2>>>0>=7){d=d&-8;e=0;a=h+325|0;while(1){g=c+7|0;H[g+a|0]=g;g=c+6|0;H[g+a|0]=g;g=c+5|0;H[g+a|0]=g;g=c+4|0;H[g+a|0]=g;g=c+3|0;H[g+a|0]=g;g=c+2|0;H[g+a|0]=g;g=c+1|0;H[g+a|0]=g;H[a+c|0]=c;c=c+8|0;e=e+8|0;if((d|0)!=(e|0))continue;break}}if(!f)break b;d=0;while(1){H[(c+h|0)+325|0]=c;c=c+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}break b}b=0;Ob(J[g>>2],288304,c,0);break b}k=274891}c=k;Ob(J[a+628>>2], -288240,c,0)}b=0}xb=i+32|0;return b}function sp(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,z=0,A=0,B=0,C=0,D=0;f=xb-176|0;xb=f;J[f+172>>2]=0;q=J[a+12>>2];m=J[a>>2];if(L[m+290>>1]>>0)I[m+290>>1]=c;J[a+20>>2]=b;t=65536;s=65536;if(!(H[a+16|0]&1)){e=J[J[a+4>>2]+44>>2];t=J[e+8>>2];s=J[e+4>>2]}v=J[J[m+128>>2]+52>>2];a:{b:{if(v){e=Ab[J[J[v>>2]>>2]](J[v+4>>2],b,f+120|0)|0;J[f+172>>2]=e;if(e)break a;k=J[f+124>>2];J[a+28>>2]=k;J[f+160>>2]=0;J[f+164>>2]= -0;J[f+152>>2]=0;J[f+156>>2]=0;J[f+144>>2]=0;J[f+148>>2]=0;J[f+136>>2]=0;J[f+140>>2]=0;J[f+128>>2]=0;J[f+132>>2]=0;h=J[f+120>>2];e=f+128|0;J[e+32>>2]=0;J[f+136>>2]=0;J[f+132>>2]=k;J[f+128>>2]=h;J[f+148>>2]=0;J[f+152>>2]=0;J[a+24>>2]=e;h=0;break b}h=om(m,b,a+28|0)}e=J[a+28>>2];c:{if((e|0)>0){k=J[m+728>>2];if(!(k|J[J[m+128>>2]+52>>2])){J[f+172>>2]=8;break c}e=Ab[J[m+520>>2]](a,b,h+k|0,e)|0;J[f+172>>2]=e;if(e)break c;C=f,D=Ab[J[m+528>>2]](a)|0,J[C+172>>2]=D;Ab[J[m+524>>2]](a);if(J[f+172>>2])break c;e= -J[a+28>>2]}if(!(L[a+32>>1]?e:0)){J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0}i=J[a>>2];l=J[a+24>>2];I[f+80>>1]=0;I[f>>1]=0;I[f+44>>1]=0;I[f+64>>1]=0;k=J[l+8>>2];Ab[J[J[i+540>>2]+140>>2]](i,0,b,f+80|0,f+44|0);d:{if(K[i+292|0]){Ab[J[J[i+540>>2]+140>>2]](i,1,b,f,f- -64|0);break d}n=J[a+48>>2];if(L[i+372>>1]!=65535){e=I[i+442>>1];I[f>>1]=e-n;e=e-I[i+444>>1]|0;n=e>>31;I[f+64>>1]=(e^n)-n;break d}e=I[i+220>>1];I[f>>1]=e-n;e=e-I[i+222>>1]|0;n=e>>31;I[f+64>>1]=(e^n)-n}e=bc(l,k);if(e){J[f+172>>2]=e; -break c}j=I[f+80>>1];J[a+52>>2]=j;o=L[f+44>>1];J[a+56>>2]=o;g=I[f>>1];J[a+172>>2]=g;i=L[f+64>>1];J[a+176>>2]=i;if(!K[a+64|0]){J[a+60>>2]=o;H[a+64|0]=1}J[f+172>>2]=0;if(d)break c;d=J[a+28>>2];if(!(L[a+32>>1]?d:0)){e=J[a>>2];d=1;e:{if(J[J[e+96>>2]+64>>2]!=40)break e;c=J[a+156>>2];d=1;if(!c)break e;d=!K[c+613|0]|!K[c+618|0]}J[a+80>>2]=0;J[a+72>>2]=0;c=d&1?0:o>>>1|0;J[a+188>>2]=c;J[a+180>>2]=c;d=J[a+36>>2]-j|0;J[a+68>>2]=d;c=g+J[a+48>>2]|0;J[a+184>>2]=c;J[a+76>>2]=d+o;J[a+192>>2]=c-i;d=J[J[e+128>>2]+ -52>>2];f:{if(!d)break f;c=J[J[d>>2]+8>>2];if(!c)break f;J[f+92>>2]=0;J[f+88>>2]=o;J[f+84>>2]=0;J[f+80>>2]=j;if(Ab[c|0](J[d+4>>2],b,0,f+80|0)|0)break f;c=I[f+80>>1];d=L[f+88>>1];J[a+172>>2]=0;J[a+176>>2]=0;J[a+56>>2]=d;J[a+52>>2]=c;if(K[a+64|0])break f;J[a+60>>2]=d;H[a+64|0]=1}g:{if(!(L[m+6>>1]&32767|K[m+9|0]&128))break g;J[f+76>>2]=16843009;J[f+64>>2]=65536;J[f+68>>2]=196610;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+80>>2]=J[a+68>>2];J[f+ -84>>2]=J[a+72>>2];J[f+88>>2]=J[a+76>>2];J[f+92>>2]=J[a+80>>2];J[f+96>>2]=J[a+180>>2];J[f+100>>2]=J[a+184>>2];J[f+104>>2]=J[a+188>>2];J[f+108>>2]=J[a+192>>2];J[f+44>>2]=262148;J[f+56>>2]=f- -64;J[f+52>>2]=f+76;J[f+48>>2]=f+80;b=kp(J[a>>2],b,f+44|0,f,4);J[f+172>>2]=b;if(b)break c;J[a+68>>2]=J[f+80>>2];J[a+72>>2]=J[f+84>>2];J[a+76>>2]=J[f+88>>2];J[a+80>>2]=J[f+92>>2];J[a+180>>2]=J[f+96>>2];J[a+184>>2]=J[f+100>>2];J[a+188>>2]=J[f+104>>2];J[a+192>>2]=J[f+108>>2];b=J[J[a>>2]+740>>2];if(!(b&2))J[a+60>>2]= -(J[f+8>>2]-J[f>>2]|0)+32>>6;if(b&16)break g;J[a+176>>2]=(J[f+24>>2]-J[f+16>>2]|0)+32>>6}if(!(H[a+16|0]&1)){C=a,D=Rb(J[a+68>>2],s),J[C+68>>2]=D;C=a,D=Rb(J[a+76>>2],s),J[C+76>>2]=D;C=a,D=Rb(J[a+180>>2],s),J[C+180>>2]=D;C=a,D=Rb(J[a+184>>2],t),J[C+184>>2]=D;C=a,D=Rb(J[a+188>>2],s),J[C+188>>2]=D;C=a,D=Rb(J[a+192>>2],t),J[C+192>>2]=D}J[f+172>>2]=0;break c}l=J[a>>2];k=1;h:{if(J[J[l+96>>2]+64>>2]!=40)break h;e=J[a+156>>2];k=1;if(!e)break h;k=!K[e+613|0]|!K[e+618|0]}J[a+80>>2]=0;J[a+72>>2]=0;n=J[a+36>>2]- -j|0;J[a+68>>2]=n;k=k&1?0:o>>>1|0;J[a+188>>2]=k;e=g+J[a+48>>2]|0;J[a+184>>2]=e;J[a+180>>2]=k;J[a+76>>2]=n+o;J[a+192>>2]=e-i;k=J[J[l+128>>2]+52>>2];i:{if(!k)break i;e=J[J[k>>2]+8>>2];if(!e)break i;J[f+92>>2]=0;J[f+88>>2]=o;J[f+84>>2]=0;J[f+80>>2]=j;j:{if(Ab[e|0](J[k+4>>2],b,0,f+80|0)|0)break j;d=I[f+80>>1];e=L[f+88>>1];J[a+172>>2]=0;J[a+176>>2]=0;J[a+56>>2]=e;J[a+52>>2]=d;if(K[a+64|0])break j;J[a+60>>2]=e;H[a+64|0]=1}d=J[a+28>>2]}d=Ab[J[m+520>>2]](a,b,(h+J[m+728>>2]|0)+10|0,d-10|0)|0;J[f+172>>2]=d; -if(d)break c;k:{d=I[a+32>>1];if((d|0)>0){b=Ab[J[m+532>>2]](a)|0;J[f+172>>2]=b;if(b)break k;Ab[J[m+524>>2]](a);b=0;l=xb-16|0;xb=l;j=J[a+12>>2];J[l+12>>2]=0;n=J[J[a>>2]+100>>2];c=J[a+72>>2];g=I[j+58>>1];d=J[j+60>>2]+(g<<3)|0;J[d>>2]=J[a+68>>2];J[d+4>>2]=c;c=J[a+80>>2];k=g+1|0;d=J[j+60>>2]+(k<<3)|0;J[d>>2]=J[a+76>>2];J[d+4>>2]=c;c=J[a+184>>2];h=g+2|0;d=J[j+60>>2]+(h<<3)|0;J[d>>2]=J[a+180>>2];J[d+4>>2]=c;c=J[a+192>>2];e=g+3|0;d=J[j+60>>2]+(e<<3)|0;J[d>>2]=J[a+188>>2];J[d+4>>2]=c;c=j- -64|0;H[g+J[c>>2]| -0]=0;H[k+J[c>>2]|0]=0;H[h+J[c>>2]|0]=0;H[e+J[c>>2]|0]=0;k=g+4|0;c=J[a>>2];l:{if(L[c+6>>1]&32767|K[c+9|0]&128){b=Tb(n,8,0,k,0,l+12|0);if(J[l+12>>2])break l;e=kp(J[a>>2],J[a+20>>2],j+56|0,b,k);J[l+12>>2]=e;d=J[J[a>>2]+740>>2];if(!(d&2)){c=(g<<3)+b|0;J[a+60>>2]=(J[c+8>>2]-J[c>>2]|0)+32>>6}if(!(d&16)){c=(g<<3)+b|0;J[a+176>>2]=(J[c+24>>2]-J[c+16>>2]|0)+32>>6}if(e)break l}i=0;c=J[a+16>>2];if(!(c&2)){h=L[j+58>>1];I[a+128>>1]=h;I[a+130>>1]=L[j+56>>1];J[a+132>>2]=J[j+76>>2];e=J[j+60>>2];J[a+136>>2]=e;d=J[j+ -80>>2];J[a+140>>2]=d;J[a+144>>2]=J[j+64>>2];c=J[j+68>>2];I[a+152>>1]=0;J[a+148>>2]=c;Mb(d,e,(h<<3)+32|0);c=J[a+16>>2]}m:{if(c&1)break m;e=J[j+60>>2];d=e+(k<<3)|0;c=J[J[a+4>>2]+44>>2];p=J[c+8>>2];i=J[c+4>>2];c=J[a>>2];if(!(L[c+6>>1]&32767|K[c+9|0]&128)){if((g|0)<=-4)break m;while(1){C=e,D=Rb(J[e>>2],i),J[C>>2]=D;C=e,D=Rb(J[e+4>>2],p),J[C+4>>2]=D;e=e+8|0;if(d>>>0>e>>>0)continue;break}break m}if((g|0)<-3)break m;c=b;while(1){C=e,D=Rb(J[c>>2],i)+32>>6,J[C>>2]=D;C=e,D=Rb(J[c+4>>2],p)+32>>6,J[C+4>>2]=D; -c=c+8|0;e=e+8|0;if(d>>>0>e>>>0)continue;break}}e=J[a>>2];n:{if(!(!(K[e+740|0]&2)|K[a+16|0]&2)){C=a,D=Rb(J[a+68>>2],i),J[C+68>>2]=D;C=a,D=Rb(J[a+76>>2],i),J[C+76>>2]=D;e=J[a>>2];break n}h=g<<3;d=h+J[j+60>>2]|0;c=J[d+4>>2];J[a+68>>2]=J[d>>2];J[a+72>>2]=c;d=h+J[j+60>>2]|0;c=J[d+12>>2];J[a+76>>2]=J[d+8>>2];J[a+80>>2]=c}o:{if(!(!(K[e+740|0]&16)|K[a+16|0]&2)){C=a,D=Rb(J[a+180>>2],i),J[C+180>>2]=D;C=a,D=Rb(J[a+184>>2],p),J[C+184>>2]=D;C=a,D=Rb(J[a+188>>2],i),J[C+188>>2]=D;C=a,D=Rb(J[a+192>>2],p),J[C+192>> -2]=D;break o}e=g<<3;d=e+J[j+60>>2]|0;c=J[d+20>>2];J[a+180>>2]=J[d+16>>2];J[a+184>>2]=c;d=e+J[j+60>>2]|0;c=J[d+28>>2];J[a+188>>2]=J[d+24>>2];J[a+192>>2]=c}if(K[a+16|0]&2)break l;I[a+128>>1]=L[a+128>>1]+4;C=l,D=hv(a,0),J[C+12>>2]=D}if(b)Ab[J[n+8>>2]](n,b);xb=l+16|0;a=J[l+12>>2];J[f+172>>2]=a;if(a)break c;Vl(q);break c}if((d|0)>=0)break k;r=J[m+100>>2];I[a+32>>1]=65535;h=a+204|0;p:{q:{d=J[a+204>>2];r:{if(d){e=c;while(1){if(!e){e=d;while(1){J[e+8>>2]=-1;e=J[e+4>>2];if(e)continue;break}if(Sr(h,b))break r; -J[d+8>>2]=b;break p}e=e-1|0;d=J[d+4>>2];if(d)continue;break}}if(!Sr(h,b))break q}J[f+172>>2]=21;break k}e=tc(r,12,f+172|0);if(J[f+172>>2])break k;J[e+8>>2]=b;if(!(!h|!e)){d=J[h+4>>2];J[e>>2]=d;J[e+4>>2]=0;J[(d?d+4|0:h)>>2]=e;J[h+4>>2]=e}}n=I[q+22>>1];w=I[q+20>>1];d=Ab[J[m+536>>2]](a)|0;J[f+172>>2]=d;if(d)break k;y=J[a+164>>2];Ab[J[m+524>>2]](a);if(L[m+6>>1]&32767|K[m+9|0]&128){j=J[q+84>>2];d=j+4|0;I[f+80>>1]=d;I[f+82>>1]=d;g=0;p=d<<16>>16;o=f+172|0;l=Tb(r,8,0,p,0,o);i=0;e=0;d=0;s:{if(J[f+172>>2])break s; -k=Tb(r,1,0,p,0,o);d=0;if(J[f+172>>2])break s;h=Tb(r,2,0,p,0,o);d=0;if(J[f+172>>2])break s;e=Tb(r,8,0,p,0,o);d=0;if(J[f+172>>2])break s;o=j<<16>>16;if((o|0)>0){d=J[q+88>>2];while(1){j=l+(g<<3)|0;J[j>>2]=J[d+8>>2];J[j+4>>2]=J[d+12>>2];H[g+k|0]=1;I[h+(g<<1)>>1]=i;d=d+32|0;i=i+1|0;g=i<<16>>16;if((o|0)>(g|0))continue;break}}d=l+(g<<3)|0;J[d>>2]=J[a+68>>2];J[d+4>>2]=J[a+72>>2];H[g+k|0]=1;I[h+(g<<1)>>1]=i;g=i+1|0;j=g<<16>>16;d=l+(j<<3)|0;J[d>>2]=J[a+76>>2];J[d+4>>2]=J[a+80>>2];H[j+k|0]=1;I[h+(j<<1)>>1]= -g;g=i+2|0;j=g<<16>>16;d=l+(j<<3)|0;J[d>>2]=J[a+180>>2];J[d+4>>2]=J[a+184>>2];H[j+k|0]=1;I[h+(j<<1)>>1]=g;i=i+3|0;g=i<<16>>16;d=l+(g<<3)|0;J[d>>2]=J[a+188>>2];J[d+4>>2]=J[a+192>>2];H[g+k|0]=1;I[h+(g<<1)>>1]=i;J[f+92>>2]=h;J[f+88>>2]=k;J[f+84>>2]=l;b=kp(m,b,f+80|0,e,p);J[f+172>>2]=b;t:{if(b)break t;u:{if((o|0)<=0){d=0;break u}b=J[q+88>>2];d=0;g=0;while(1){if(K[b+4|0]&2){d=l+(d<<3)|0;J[b+8>>2]=I[d>>1];J[b+12>>2]=I[d+4>>1]}b=b+32|0;g=g+1|0;d=g<<16>>16;if((o|0)>(d|0))continue;break}}b=l+(d<<3)|0;J[a+68>> -2]=J[b>>2];J[a+72>>2]=J[b+4>>2];J[a+76>>2]=J[b+8>>2];J[a+80>>2]=J[b+12>>2];J[a+180>>2]=J[b+16>>2];J[a+184>>2]=J[b+20>>2];J[a+188>>2]=J[b+24>>2];J[a+192>>2]=J[b+28>>2];d=J[m+740>>2];if(!(d&2)){b=(p<<3)+e|0;J[a+60>>2]=(J[b-24>>2]-J[b-32>>2]|0)+32>>6}if(d&16)break t;b=(p<<3)+e|0;J[a+176>>2]=(J[b-8>>2]-J[b-16>>2]|0)+32>>6}g=h;i=l;d=k}if(i)Ab[J[r+8>>2]](r,i);if(d)Ab[J[r+8>>2]](r,d);if(g)Ab[J[r+8>>2]](r,g);if(e)Ab[J[r+8>>2]](r,e);if(J[f+172>>2])break c}b=J[a+16>>2];if(!(b&1)){C=a,D=Rb(J[a+68>>2],s),J[C+ -68>>2]=D;C=a,D=Rb(J[a+76>>2],s),J[C+76>>2]=D;C=a,D=Rb(J[a+180>>2],s),J[C+180>>2]=D;C=a,D=Rb(J[a+184>>2],t),J[C+184>>2]=D;C=a,D=Rb(J[a+188>>2],s),J[C+188>>2]=D;C=a,D=Rb(J[a+192>>2],t),J[C+192>>2]=D;b=J[a+16>>2]}if(b&1024){Vl(q);J[J[a+8>>2]+72>>2]=1668246896;break c}z=J[q+48>>2];x=J[q+84>>2];A=J[a+28>>2];B=J[a+24>>2];Vl(q);v:{if(!x){e=0;b=n;break v}r=c+1|0;b=0;while(1){u=I[q+22>>1];s=J[a+176>>2];p=J[a+60>>2];k=J[a+188>>2];t=J[a+192>>2];h=J[a+180>>2];o=J[a+184>>2];d=J[a+76>>2];j=J[a+80>>2];c=J[a+68>> -2];g=J[a+72>>2];l=b<<5;i=z<<5;e=sp(a,J[l+(i+J[q+52>>2]|0)>>2],r,0);J[f+172>>2]=e;if(e)break c;e=l+(i+J[q+52>>2]|0)|0;if(!(K[e+5|0]&2)){J[a+188>>2]=k;J[a+192>>2]=t;J[a+180>>2]=h;J[a+184>>2]=o;J[a+76>>2]=d;J[a+80>>2]=j;J[a+68>>2]=c;J[a+72>>2]=g;J[a+176>>2]=s;J[a+60>>2]=p}k=L[q+22>>1];if((k|0)!=(u&65535)){p=0;i=xb-32|0;xb=i;l=J[a+12>>2];J[i+16>>2]=J[l+24>>2]+(u<<3);I[i+14>>1]=L[l+22>>1]-u;h=L[e+4>>1];c=h&200;if(c){nh(i+12|0,e+16|0);h=L[e+4>>1]}g=J[e+12>>2];d=J[e+8>>2];w:{x:{if(!(h&2)){p=21;c=d+n|0;if(c>>> -0>=u>>>0)break w;h=g+u|0;if(h>>>0>=I[l+22>>1]>>>0)break w;d=c<<3;c=J[l+24>>2];d=d+c|0;c=c+(h<<3)|0;g=J[d+4>>2]-J[c+4>>2]|0;d=J[d>>2]-J[c>>2]|0;break x}if(!(d|g))break w;if(!(!c|!(h&2048))){h=Hs(J[e+16>>2],J[e+20>>2]);c=Hs(J[e+28>>2],J[e+24>>2]);d=Rb(d,h);g=Rb(g,c)}if(H[a+16|0]&1)break x;h=J[J[a+4>>2]+44>>2];c=J[h+8>>2];d=Rb(d,J[h+4>>2]);g=Rb(g,c);if(!(K[e+4|0]&4)|K[a+16|0]&2)break x;d=J[J[J[a>>2]+96>>2]+64>>2]==35?d+32&-64:d;g=g+32&-64}p=0;if(!(d|g))break w;me(i+12|0,d,g)}xb=i+32|0;J[f+172>>2]=p; -if(p)break c}b=b+1|0;if((x|0)!=(b|0))continue;break}b=k<<16>>16}J[a+164>>2]=y;J[a+28>>2]=A;J[a+24>>2]=B;if(!(!e|J[a+16>>2]&2|(!(H[e+5|0]&1)|b>>>0<=n>>>0))){h=xb-16|0;xb=h;e=J[a+12>>2];d=I[e+22>>1];b=d+4|0;y:{if(!(!b|M[e+4>>2]>=I[e+58>>1]+(b+d|0)>>>0)){d=ie(e,b,0);if(d)break y;d=I[e+22>>1]}b=J[a+72>>2];c=J[e+24>>2]+(d<<3)|0;J[c>>2]=J[a+68>>2];J[c+4>>2]=b;b=J[a+80>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+8>>2]=J[a+76>>2];J[c+12>>2]=b;b=J[a+184>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+16>>2]=J[a+180>>2]; -J[c+20>>2]=b;b=J[a+192>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+24>>2]=J[a+188>>2];J[c+28>>2]=b;H[J[e+28>>2]+I[e+22>>1]|0]=0;H[(J[e+28>>2]+I[e+22>>1]|0)+1|0]=0;H[(J[e+28>>2]+I[e+22>>1]|0)+2|0]=0;H[(J[e+28>>2]+I[e+22>>1]|0)+3|0]=0;c=J[a+24>>2];d=bc(c,J[a+164>>2]);J[h+12>>2]=d;if(d)break y;e=rc(c,h+12|0);d=J[h+12>>2];if(d)break y;z:{if(e>>>0>L[J[a>>2]+286>>1]){d=22;if((e|0)>J[a+28>>2])break y;b=J[a+156>>2];J[h+8>>2]=J[b+392>>2];d=iv(J[b+8>>2],h+8|0,b+396|0,e);J[h+12>>2]=d;i=J[a+156>>2];J[i+392>>2]=L[h+ -8>>1];if(!d)break z;break y}if(!e){d=0;break y}i=J[a+156>>2]}d=Dd(c,J[i+396>>2],e);J[h+12>>2]=d;if(d)break y;c=J[J[a+156>>2]+396>>2];b=J[a+8>>2];J[b+140>>2]=e;J[b+136>>2]=c;d=J[a+12>>2];c=L[d+22>>1];I[a+128>>1]=c-n;I[a+130>>1]=L[d+20>>1]-w;b=n<<3;J[a+132>>2]=b+J[d+40>>2];J[a+136>>2]=b+J[d+24>>2];J[a+140>>2]=b+J[d+44>>2];J[a+144>>2]=J[d+28>>2]+n;b=J[d+32>>2];I[a+152>>1]=n;J[a+148>>2]=b+(w<<1);if((c|0)!=(n&65535)){b=0;while(1){c=J[a+144>>2]+b|0;H[c|0]=K[c|0]&231;b=b+1|0;c=L[a+128>>1];if(b>>>0>>0)continue; -break}b=c+4|0}else b=4;I[a+128>>1]=b;d=hv(a,1)}xb=h+16|0;J[f+172>>2]=d;if(d)break c}if(!J[q+48>>2]|!(K[J[q+52>>2]+5|0]&4))break c;J[q+36>>2]=J[q+36>>2]|64;break c}Ab[J[m+524>>2]](a)}if(!v)break a;a=J[J[m+128>>2]+52>>2];Ab[J[J[a>>2]+4>>2]](J[a+4>>2],f+120|0)}xb=f+176|0;return J[f+172>>2]}function p2(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;c=xb-288|0;xb=c;a:{b:{c:{d:{e:{f:{b=J[a+80>>2];g:{if(!b)break g;d=K[g+11|0];if(J[h+4>>2]-J[h>>2]>>4!=((d<<24>>24<0?J[g+4>>2]:d)| -0))break g;d=Ab[J[J[b>>2]+36>>2]](b)|0;if(!d)break g;iC(c+276|0,g);e=K[c+287|0];b=e<<24>>24;if((b|0)<0?J[c+280>>2]:e){J[c+272>>2]=0;J[c+264>>2]=0;J[c+268>>2]=0;J[195395]=0;b=c+216|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;e=J[195395];J[195395]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{if((e|0)==1)break C;e=J[a+80>>2];f=J[J[e>>2]+72>>2];J[195395]= -0;e=ca(f|0,e|0,2)|0;f=J[195395];J[195395]=0;if((f|0)==1)break C;J[195395]=0;Rd(b,e);b=J[195395];J[195395]=0;if((b|0)==1)break C;b=J[a+80>>2];e=J[J[b>>2]+32>>2];J[195395]=0;b=_(e|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break B;D:{if(!b)break D;J[195395]=0;fa(1975,c+152|0,b|0,255);b=J[195395];J[195395]=0;if((b|0)==1)break A;J[195395]=0;b=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break z;J[c+192>>2]=b;J[c+196>>2]=4;J[c+200>>2]=-2147483640;e=J[101067];J[b+8>>2]=J[101066];J[b+12>>2]=e;e=J[101065]; -J[b>>2]=J[101064];J[b+4>>2]=e;J[b+16>>2]=0;J[c+212>>2]=J[c+160>>2];J[c+160>>2]=0;e=J[c+156>>2];J[c+204>>2]=J[c+152>>2];J[c+208>>2]=e;J[c+152>>2]=0;J[c+156>>2]=0;e=J[c+268>>2];E:{if(e>>>0>2]){J[195395]=0;fa(1808,e|0,b|0,4);b=J[195395];J[195395]=0;if((b|0)==1){a=Z()|0;J[c+268>>2]=e;break x}b=J[c+208>>2];J[e+12>>2]=J[c+204>>2];J[e+16>>2]=b;J[e+20>>2]=J[c+212>>2];J[c+204>>2]=0;J[c+208>>2]=0;J[c+212>>2]=0;J[c+268>>2]=e+24;break E}J[195395]=0;$(1971,c+264|0,c+192|0);b=J[195395];J[195395]=0;if((b| -0)==1)break y;if(H[c+215|0]>=0)break E;Kb(J[c+204>>2])}if(H[c+203|0]<0)Kb(J[c+192>>2]);if(H[c+163|0]>=0)break D;Kb(J[c+152>>2])}b=J[J[d>>2]+8>>2];J[195395]=0;i=+va(b|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break k;J[195395]=0;i=R(i);da(1863,c+152|0,+(i<.01?18:i),-1);b=J[195395];J[195395]=0;if((b|0)==1)break s;J[195395]=0;b=_(1078,48)|0;e=J[195395];J[195395]=0;if((e|0)==1)break r;J[c+192>>2]=b;J[c+196>>2]=9;J[c+200>>2]=-2147483636;J[b+32>>2]=J[101109];e=J[101108];J[b+24>>2]=J[101107];J[b+28>>2]= -e;e=J[101106];J[b+16>>2]=J[101105];J[b+20>>2]=e;e=J[101104];J[b+8>>2]=J[101103];J[b+12>>2]=e;e=J[101102];J[b>>2]=J[101101];J[b+4>>2]=e;J[b+36>>2]=0;J[c+212>>2]=J[c+160>>2];J[c+160>>2]=0;e=J[c+156>>2];J[c+204>>2]=J[c+152>>2];J[c+208>>2]=e;J[c+152>>2]=0;J[c+156>>2]=0;e=J[c+268>>2];if(e>>>0>=M[c+272>>2])break u;J[195395]=0;fa(1808,e|0,b|0,9);b=J[195395];J[195395]=0;if((b|0)!=1)break v;a=Z()|0;J[c+268>>2]=e;break p}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break w}a=Z()|0}Vb(c+192|0)}if(H[c+ -163|0]>=0)break a;Kb(J[c+152>>2]);break a}b=J[c+208>>2];J[e+12>>2]=J[c+204>>2];J[e+16>>2]=b;J[e+20>>2]=J[c+212>>2];J[c+204>>2]=0;J[c+208>>2]=0;J[c+212>>2]=0;J[c+268>>2]=e+24;break t}J[195395]=0;$(1971,c+264|0,c+192|0);b=J[195395];J[195395]=0;if((b|0)==1)break q;if(H[c+215|0]>=0)break t;Kb(J[c+204>>2])}if(H[c+203|0]<0)Kb(J[c+192>>2]);if(H[c+163|0]<0)Kb(J[c+152>>2]);b=J[J[d>>2]+12>>2];J[195395]=0;e=b;b=c+180|0;$(e|0,b|0,d|0);e=J[195395];J[195395]=0;if((e|0)==1)break n;e=K[c+191|0];if(!(e<<24>>24<0? -J[c+184>>2]:e))break h;J[195395]=0;b=aa(1976,c+192|0,404588,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break m;e=J[c+268>>2];if(e>>>0>2]){if(H[b+11|0]>=0){f=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=f;J[e+8>>2]=J[b+8>>2];break j}f=J[b+4>>2];g=J[b>>2];J[195395]=0;fa(1808,e|0,g|0,f|0);f=J[195395];J[195395]=0;if((f|0)!=1)break j;a=Z()|0;J[c+268>>2]=e;Vb(b);break b}J[195395]=0;$(1971,c+264|0,b|0);e=J[195395];J[195395]=0;if((e|0)==1)break l;if(H[b+23|0]>=0)break i;Kb(J[b+12>>2]);break i}a=Z()|0;break a}a= -Z()|0;break o}a=Z()|0}Vb(c+192|0)}if(H[c+163|0]>=0)break a;Kb(J[c+152>>2]);break a}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;Vb(b);break b}a=Z()|0;break a}f=J[b+16>>2];J[e+12>>2]=J[b+12>>2];J[e+16>>2]=f;J[e+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+268>>2]=e+24}if(H[b+11|0]>=0)break h;Kb(J[b>>2])}b=J[J[d>>2]+16>>2];J[195395]=0;b=_(b|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;F:{if((b|0)<551)break F;J[195395]=0;b=aa(1977,c+152|0,404804,405032)|0;e=J[195395];J[195395]=0;G:{H:{I:{if((e| -0)!=1){e=J[c+268>>2];if(e>>>0>2]){if(H[b+11|0]>=0){f=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=f;J[e+8>>2]=J[b+8>>2];break H}f=J[b+4>>2];g=J[b>>2];J[195395]=0;fa(1808,e|0,g|0,f|0);f=J[195395];J[195395]=0;if((f|0)!=1)break H;a=Z()|0;J[c+268>>2]=e;Vb(b);break b}J[195395]=0;$(1971,c+264|0,b|0);e=J[195395];J[195395]=0;if((e|0)==1)break I;if(H[b+23|0]>=0)break G;Kb(J[b+12>>2]);break G}a=Z()|0;break b}a=Z()|0;Vb(b);break b}f=J[b+16>>2];J[e+12>>2]=J[b+12>>2];J[e+16>>2]=f;J[e+20>>2]=J[b+20>>2];J[b+12>> -2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+268>>2]=e+24}if(H[b+11|0]>=0)break F;Kb(J[b>>2])}b=J[J[d>>2]+20>>2];J[195395]=0;b=_(b|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;J:{if(!b)break J;J[195395]=0;b=aa(1978,c+128|0,405260,405516)|0;e=J[195395];J[195395]=0;K:{L:{M:{if((e|0)!=1){e=J[c+268>>2];if(e>>>0>2]){if(H[b+11|0]>=0){f=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=f;J[e+8>>2]=J[b+8>>2];break L}f=J[b+4>>2];g=J[b>>2];J[195395]=0;fa(1808,e|0,g|0,f|0);f=J[195395];J[195395]=0;if((f|0)!=1)break L; -a=Z()|0;J[c+268>>2]=e;Vb(b);break b}J[195395]=0;$(1971,c+264|0,b|0);e=J[195395];J[195395]=0;if((e|0)==1)break M;if(H[b+23|0]>=0)break K;Kb(J[b+12>>2]);break K}a=Z()|0;break b}a=Z()|0;Vb(b);break b}f=J[b+16>>2];J[e+12>>2]=J[b+12>>2];J[e+16>>2]=f;J[e+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+268>>2]=e+24}if(H[b+11|0]>=0)break J;Kb(J[b>>2])}b=J[J[d>>2]+28>>2];J[195395]=0;b=_(b|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;N:{O:{P:{Q:{R:{if(b){b=J[J[d>>2]+24>>2];J[195395]=0; -b=_(b|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;if(b)break R}b=J[J[d>>2]+28>>2];J[195395]=0;b=_(b|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break Q;break c}J[195395]=0;b=aa(1979,c+104|0,405776,406044)|0;d=J[195395];J[195395]=0;S:{if((d|0)!=1){d=J[c+268>>2];if(d>>>0>2]){if(H[b+11|0]>=0){e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;J[d+8>>2]=J[b+8>>2];break P}e=J[b+4>>2];f=J[b>>2];J[195395]=0;fa(1808,d|0,f|0,e|0);e=J[195395];J[195395]=0;if((e|0)!=1)break P;a=Z()|0;J[c+268>>2]=d;Vb(b); -break b}J[195395]=0;$(1971,c+264|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break S;if(H[b+23|0]>=0)break O;Kb(J[b+12>>2]);break O}a=Z()|0;break b}a=Z()|0;Vb(b);break b}T:{U:{if(b){J[195395]=0;b=aa(1980,c+104|0,405776,406348)|0;d=J[195395];J[195395]=0;V:{if((d|0)!=1){d=J[c+268>>2];if(d>>>0>2]){if(H[b+11|0]>=0){e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;J[d+8>>2]=J[b+8>>2];break U}e=J[b+4>>2];f=J[b>>2];J[195395]=0;fa(1808,d|0,f|0,e|0);e=J[195395];J[195395]=0;if((e|0)!=1)break U;a=Z()|0;J[c+268>> -2]=d;Vb(b);break b}J[195395]=0;$(1971,c+264|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break V;if(H[b+23|0]>=0)break T;Kb(J[b+12>>2]);break T}a=Z()|0;break b}a=Z()|0;Vb(b);break b}b=J[J[d>>2]+24>>2];J[195395]=0;b=_(b|0,d|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break c;if(!b)break N;J[195395]=0;b=aa(1981,c+104|0,405776,406616)|0;d=J[195395];J[195395]=0;W:{if((d|0)!=1){J[195395]=0;$(1982,c+264|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break W;Vb(b);break N}a=Z()|0;break b}a=Z()|0;Vb(b);break b}e= -J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=e;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+268>>2]=d+24}if(H[b+11|0]>=0)break N;Kb(J[b>>2]);break N}e=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=e;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+268>>2]=d+24}if(H[b+11|0]>=0)break N;Kb(J[b>>2])}J[195395]=0;e=a+8|0;fa(1960,e|0,c+264|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break c;J[195395]=0;ea(1958,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;J[c+96>>2]=0;J[c+ -88>>2]=0;J[c+92>>2]=0;J[c+80>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{g=J[h>>2];b=J[h+4>>2];ea:{if((g|0)!=(b|0)){while(1){i=O[g>>3];J[195395]=0;a=c+24|0;da(1863,a|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break da;J[195395]=0;$(1811,a|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break ca;J[c+56>>2]=J[c+32>>2];J[c+32>>2]=0;d=J[c+28>>2];a=J[c+24>>2];J[c+48>>2]=a;J[c+52>>2]=d;J[c+24>>2]=0;J[c+28>>2]=0;J[195395]=0;f=a;a=H[c+59|0];d=(a|0)<0;aa(1864,c+88|0,(d?f:c+48|0)|0,(d?J[c+52>> -2]:a&255)|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break ba;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);i=O[g+8>>3];J[195395]=0;a=c+24|0;da(1863,a|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break $;J[195395]=0;$(1811,a|0,32);a=J[195395];J[195395]=0;if((a|0)==1)break _;J[c+56>>2]=J[c+32>>2];J[c+32>>2]=0;d=J[c+28>>2];a=J[c+24>>2];J[c+48>>2]=a;J[c+52>>2]=d;J[c+24>>2]=0;J[c+28>>2]=0;J[195395]=0;f=a;a=H[c+59|0];d=(a|0)<0;aa(1864,c+72|0,(d?f:c+48|0)|0,(d?J[c+52>>2]:a&255)|0)|0;a=J[195395]; -J[195395]=0;if((a|0)==1)break Z;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);g=g+16|0;if((b|0)!=(g|0))continue;break}b=K[c+99|0];a=b<<24>>24;g=((a|0)<0?J[c+92>>2]:b)-1|0;if((a|0)>=0)break ea;J[c+92>>2]=g;h=J[c+88>>2];break X}g=-1}H[c+99|0]=g;h=c+88|0;break X}a=Z()|0;break d}a=Z()|0;break aa}a=Z()|0;if(H[c+59|0]>=0)break aa;Kb(J[c+48>>2])}if(H[c+35|0]>=0)break d;Kb(J[c+24>>2]);break d}a=Z()|0;break d}a=Z()|0;break Y}a=Z()|0;if(H[c+59|0]>=0)break Y;Kb(J[c+48>>2])}if(H[c+35|0]>=0)break d; -Kb(J[c+24>>2]);break d}J[(g<<2)+h>>2]=0;b=K[c+83|0];a=b<<24>>24;a=(a|0)<0;b=(a?J[c+76>>2]:b)-1|0;d=b<<2;fa:{if(a){J[c+76>>2]=b;a=J[c+72>>2];break fa}H[c+83|0]=b;a=c+72|0}J[d+a>>2]=0;J[195395]=0;b=aa(1962,c+48|0,403468,c+88|0)|0;a=J[195395];J[195395]=0;ga:{ha:{ia:{if((a|0)!=1){d=J[c+268>>2];if(d>>>0>2]){if(H[b+11|0]>=0){a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;J[d+8>>2]=J[b+8>>2];break ha}a=J[b+4>>2];f=J[b>>2];J[195395]=0;fa(1808,d|0,f|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break ha;a= -Z()|0;J[c+268>>2]=d;Vb(b);break d}J[195395]=0;$(1971,c+264|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break ia;if(H[b+23|0]>=0)break ga;Kb(J[b+12>>2]);break ga}a=Z()|0;break d}a=Z()|0;Vb(b);break d}a=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=a;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+268>>2]=d+24}if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=aa(1962,c+24|0,403672,c+72|0)|0;a=J[195395];J[195395]=0;ja:{ka:{la:{if((a|0)!=1){d=J[c+268>>2];if(d>>>0>2]){if(H[b+11|0]>=0){a= -J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;J[d+8>>2]=J[b+8>>2];break ka}a=J[b+4>>2];f=J[b>>2];J[195395]=0;fa(1808,d|0,f|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break ka;a=Z()|0;J[c+268>>2]=d;Vb(b);break d}J[195395]=0;$(1971,c+264|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break la;if(H[b+23|0]>=0)break ja;Kb(J[b+12>>2]);break ja}a=Z()|0;break d}a=Z()|0;Vb(b);break d}a=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=a;J[d+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+268>>2]=d+24}if(H[b+11| -0]<0)Kb(J[b>>2]);J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;J[c+12>>2]=a;J[c+16>>2]=4;J[c+20>>2]=-2147483640;b=J[101694];J[a+8>>2]=J[101693];J[a+12>>2]=b;b=J[101692];J[a>>2]=J[101691];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;ia(1961,e|0,c+12|0,c+264|0,c+276|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+99|0]<0)Kb(J[c+88>>2]);if(H[c+191|0]<0)Kb(J[c+180>>2]);a=J[c+264>>2];if(a){g=J[c+268>>2];h=a;if((g|0)!=(a| -0)){while(1){if(H[g-1|0]<0)Kb(J[g-12>>2]);b=g-24|0;if(H[g-13|0]<0)Kb(J[b>>2]);g=b;if((b|0)!=(a|0))continue;break}h=J[c+264>>2]}J[c+268>>2]=a;Kb(h)}b=K[c+287|0]}if(b<<24>>24>=0)break g;Kb(J[c+276>>2])}xb=c+288|0;return}a=Z()|0;break d}a=Z()|0;if(H[c+23|0]>=0)break d;Kb(J[c+12>>2])}if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+99|0]>=0)break b;Kb(J[c+88>>2]);break b}a=Z()|0}if(H[c+191|0]>=0)break a;Kb(J[c+180>>2])}Hc(c+264|0);if(H[c+287|0]<0)Kb(J[c+276>>2]);ba(a|0);B()}function Xz(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,p=0,q=0,r=0,s=0,t=Q(0),u=0,v=Q(0),w=Q(0),x=Q(0),y=Q(0);g=xb-176|0;xb=g;h=J[a+172>>2];if(!(!(I[h+154>>1]&1)|(d|e))){e=L[h+142>>1];d=L[h+140>>1]}h=d<<16>>16;a:{b:{c:{d:{j=g;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{p=Ab[J[J[a>>2]+36>>2]](a)|0;o:{if(p){k=1;p:{q:{r:{l=Ab[J[J[p>>2]+36>>2]](p)|0;switch(l-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:break p; -case 0:case 1:case 2:case 6:case 8:case 33:case 34:case 35:case 49:case 50:case 58:case 76:case 94:case 110:break q;default:break r}}if(l)break p}k=l}Qj(g+164|0,b,c,k);l=J[a+248>>2];if(l)break o;b=J[J[p>>2]+8>>2];o=J[a+24>>2];if(!o)break l;J[195395]=0;m=+va(b|0,p|0);b=J[195395];J[195395]=0;if((b|0)==1)break i;if(!(R(m)<2147483648))break n;b=~~m;break m}Qj(g+164|0,b,c,1);l=J[a+248>>2];if(!l)break k}i=+(d<<16>>16);j=0;s:{if(!f)break s;J[195395]=0;j=_(1109,(c>>>0>536870911?-1:c<<3)|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break j;if(!c)break s;b=0;k=d;n=i;if((c|0)!=1){p=c&-2;k=0;while(1){h=L[(b<<1)+f>>1]+h|0;m=+(h<<16>>16);O[(b<<3)+j>>3]=m-n;o=b|1;h=h+L[(o<<1)+f>>1]|0;n=+(h<<16>>16);O[(o<<3)+j>>3]=n-m;b=b+2|0;k=k+2|0;if((p|0)!=(k|0))continue;break}k=h}if(!(c&1))break s;O[(b<<3)+j>>3]=+(L[(b<<1)+f>>1]+k<<16>>16)-n}b=J[J[a>>2]+72>>2];J[195395]=0;h=ca(b|0,a|0,2)|0;b=J[195395];J[195395]=0;if((b|0)==1)break j;n=O[h>>3];b=J[J[a>>2]+72>>2];J[195395]=0;h=ca(b|0,a|0,2)|0;b=J[195395];J[195395]=0;if((b| -0)==1)break j;m=O[h+24>>3];b=J[J[l>>2]+20>>2];J[195395]=0;Ka(b|0,l|0,g+164|0,c|0,+i,+(e<<16>>16),j|0,1,+n,+m);b=J[195395];J[195395]=0;if((b|0)==1)break j;if(!j)break b;Kb(j);break b}b=-2147483648}h=b>>31;O[j+152>>3]=(b?(h^b)-h|0:18)|0;b=J[J[p>>2]+12>>2];J[195395]=0;$(b|0,g+136|0,p|0);b=J[195395];J[195395]=0;t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{if((b|0)!=1){J[g+132>>2]=0;b=J[J[p>>2]+16>>2];J[195395]=0;j=_(b|0,p|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break D;if((j|0)>=551)J[g+132>>2]=J[g+132>>2]|1;b= -J[J[p>>2]+20>>2];J[195395]=0;j=_(b|0,p|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break D;if(j)J[g+132>>2]=J[g+132>>2]|2;J[g>>2]=0;J[g+4>>2]=1079115776;J[g+112>>2]=0;J[g+116>>2]=1079115776;b=J[J[o>>2]+144>>2];J[195395]=0;pa(b|0,o|0,g+136|0,g+152|0,g+132|0,g|0,g+112|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break A;b=J[J[a>>2]+84>>2];J[195395]=0;j=_(b|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break z;O[g>>3]=j|0;b=J[J[o>>2]+32>>2];J[195395]=0;$(b|0,o|0,g|0);b=J[195395];J[195395]=0;if((b|0)==1)break z; -b=J[J[o>>2]+24>>2];J[195395]=0;j=_(b|0,o|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break y;if(j)break C;m=0;break B}f=Z()|0;break a}f=Z()|0;break c}b=J[J[j>>2]+36>>2];J[195395]=0;m=O[g+152>>3];k=_(b|0,j|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break x;b=J[J[j>>2]+40>>2];J[195395]=0;l=_(b|0,j|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break x;b=J[J[j>>2]+32>>2];J[195395]=0;i=O[g+152>>3];h=_(b|0,j|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w;b=J[J[j>>2]+40>>2];J[195395]=0;j=_(b|0,j|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break w;i=i*+(h|0)/+(j|0);m=m*+(k|0)/+(l|0)}if(!f|c>>>0<2)break t;J[g+120>>2]=0;J[g+112>>2]=0;J[g+116>>2]=0;J[195395]=0;b=H[g+175|0];j=ca(3398,g+164|0,((b|0)<0?J[g+168>>2]:b&255)-1|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){b=J[j>>2];J[195395]=0;$(1811,g+112|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)break v}break u}f=Z()|0;break c}f=Z()|0;break c}f=Z()|0;break c}f=Z()|0;break c}f=Z()|0;break c}J[g>>2]=0;J[g+104>>2]=0;b=J[J[o>>2]+84>>2];J[195395]=0;ha(b|0,o|0,g+112|0,g|0,g+ -104|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)E:{b=J[J[o>>2]+120>>2];J[195395]=0;$(b|0,g|0,o|0);b=J[195395];J[195395]=0;if((b|0)==1)break E;if(H[g+123|0]>=0)break d;Kb(J[g+112>>2]);break d}}f=Z()|0;if(H[g+123|0]>=0)break c;Kb(J[g+112>>2]);break c}J[g>>2]=0;J[g+112>>2]=0;b=J[J[o>>2]+84>>2];J[195395]=0;ha(b|0,o|0,g+164|0,g|0,g+112|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break h;b=J[J[o>>2]+120>>2];J[195395]=0;$(b|0,g|0,o|0);b=J[195395];J[195395]=0;if((b|0)!=1)break d;f=Z()|0;break c}J[195395]=0;i=+va(b| -0,p|0);b=J[195395];J[195395]=0;if((b|0)==1)break g;if(R(i)<2147483648)b=~~i;else b=-2147483648;j=b>>31;q=+((b?(b^j)-j|0:18)|0);if(!(!f|c>>>0<2)){b=c-1|0;h=b&3;k=0;if(c-2>>>0<3){b=0;break f}j=b&-4;b=0;l=0;while(1){o=b<<1;n=n+ +I[o+f>>1]+ +I[(o|2)+f>>1]+ +I[(o|4)+f>>1]+ +I[(o|6)+f>>1];b=b+4|0;l=l+4|0;if((j|0)!=(l|0))continue;break}break f}b=K[g+175|0];m=q*+((b<<24>>24<0?J[g+168>>2]:b)>>>0);break e}if(K[a+192|0]){J[a+176>>2]=h;H[a+192|0]=0;J[a+184>>2]=h;b=e<<16>>16;J[a+188>>2]=b;J[a+180>>2]=b;break b}b= -a+176|0;F:{if(J[b>>2]<=(h|0)){b=a+184|0;if(J[b>>2]>=(h|0))break F}J[b>>2]=h}b=e<<16>>16;if((b|0)>2]){J[a+180>>2]=b;break b}if((b|0)<=J[a+188>>2])break b;J[a+188>>2]=b;break b}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;break c}f=Z()|0;break a}if(h)while(1){n=n+ +I[(b<<1)+f>>1];b=b+1|0;k=k+1|0;if((h|0)!=(k|0))continue;break}b=K[g+175|0];m=q*+((b<<24>>24<0?J[g+168>>2]:b)>>>0)+n}b=J[J[p>>2]+32>>2];J[195395]=0;j=_(b|0,p|0)|0;b=J[195395];J[195395]=0;G:{H:{I:{if((b|0)!=1){b=J[J[a>>2]+48>>2];J[195395]= -0;h=_(b|0,a|0)|0;b=J[195395];J[195395]=0;i=+(j|0)/10*3.141592653589793/-180;n=ue(i);i=Fe(i);if((b|0)==1)break I;t=Q(q*1.2);r=+Q(n);s=+Q(i);n=+(e<<16>>16);q=+(d<<16>>16);i=q;if(h&24)break G;if(!(h&8))break H;i=+t;n=n-i*s;i=i*r+q;break G}f=Z()|0;break a}f=Z()|0;break a}n=s*-0+n;i=r*0+q}v=Q(m);J:{if(h&6){m=+Q(v*Q(-.5));n=m*r+n;i=m*s+i;break J}if(!(h&2))break J;m=+Q(-v);n=m*r+n;i=m*s+i}u=i+0;O[g+112>>3]=u;q=n+0;O[g+136>>3]=q;m=u+ +v;O[g+152>>3]=m;O[g+104>>3]=q;O[g+96>>3]=m;m=q+ +t;O[g+88>>3]=m;O[g+80>> -3]=u;O[g+72>>3]=m;b=J[J[p>>2]+32>>2];J[195395]=0;j=_(b|0,p|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){K:{if(!j)break K;J[195395]=0;O[g+40>>3]=n-i*r-n*s;O[g+32>>3]=n*r+(i-i*s);O[g+24>>3]=s;O[g+16>>3]=-r;O[g+8>>3]=r;O[g>>3]=s;b=J[195395];J[195395]=0;L:{if((b|0)==1)break L;J[195395]=0;Yd(g,g+112|0,g+136|0);b=J[195395];J[195395]=0;if((b|0)==1)break L;J[195395]=0;Yd(g,g+152|0,g+104|0);b=J[195395];J[195395]=0;if((b|0)==1)break L;J[195395]=0;Yd(g,g+96|0,g+88|0);b=J[195395];J[195395]=0;if((b|0)==1)break L; -J[195395]=0;Yd(g,g+80|0,g+72|0);b=J[195395];J[195395]=0;if((b|0)!=1)break K}f=Z()|0;break a}i=O[g+112>>3];M:{if(R(i)<2147483648){h=~~i;break M}h=-2147483648}i=O[g+136>>3];N:{if(R(i)<2147483648){k=~~i;break N}k=-2147483648}b=a+176|0;O:{if(K[a+192|0]){J[a+176>>2]=h;H[a+192|0]=0;J[a+184>>2]=h;J[a+188>>2]=k;J[a+180>>2]=k;j=k;break O}j=b;P:{if(J[b>>2]<=(h|0)){j=a+184|0;if(J[j>>2]>=(h|0))break P}J[j>>2]=h}l=a+180|0;j=J[l>>2];h=k;Q:{if((j|0)<=(h|0)){h=j;l=a+188|0;if((k|0)<=J[l>>2])break Q}J[l>>2]=k;j=h}h= -J[b>>2]}i=O[g+152>>3];R:{if(R(i)<2147483648){k=~~i;break R}k=-2147483648}o=(k|0)<(h|0);i=O[g+104>>3];S:{if(R(i)<2147483648){h=~~i;break S}h=-2147483648}l=b;T:{if(!o){l=a+184|0;if((k|0)<=J[l>>2])break T}J[l>>2]=k}U:{V:{if((h|0)<(j|0)){k=a+180|0;j=h;break V}k=a+188|0;if((h|0)<=J[k>>2])break U}J[k>>2]=h}i=O[g+96>>3];W:{if(R(i)<2147483648){k=~~i;break W}k=-2147483648}o=(k|0)>2];i=O[g+88>>3];X:{if(R(i)<2147483648){h=~~i;break X}h=-2147483648}l=b;Y:{if(!o){l=a+184|0;if((k|0)<=J[l>>2])break Y}J[l>> -2]=k}Z:{_:{if((h|0)<(j|0)){k=a+180|0;j=h;break _}k=a+188|0;if((h|0)<=J[k>>2])break Z}J[k>>2]=h}i=O[g+80>>3];$:{if(R(i)<2147483648){l=~~i;break $}l=-2147483648}k=(l|0)>2];i=O[g+72>>3];aa:{if(R(i)<2147483648){h=~~i;break aa}h=-2147483648}ba:{if(!k){b=a+184|0;if((l|0)<=J[b>>2])break ba}J[b>>2]=l}if((h|0)<(j|0)){J[a+180>>2]=h;break b}if((h|0)<=J[a+188>>2])break b;J[a+188>>2]=h;break b}f=Z()|0;break a}J[g>>2]=0;J[g+112>>2]=0;b=J[J[o>>2]+84>>2];J[195395]=0;j=g+112|0;ha(b|0,o|0,g+164|0,g|0,j|0)|0;b= -J[195395];J[195395]=0;ca:{da:{ea:{fa:{ga:{if((b|0)!=1){b=J[J[o>>2]+120>>2];J[195395]=0;$(b|0,j|0,o|0);b=J[195395];J[195395]=0;if((b|0)==1)break ga;b=J[J[p>>2]+32>>2];J[195395]=0;t=N[g+116>>2];x=N[g+112>>2];j=_(b|0,p|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break fa;b=J[J[a>>2]+48>>2];J[195395]=0;h=_(b|0,a|0)|0;b=J[195395];J[195395]=0;n=+(j|0)/10*3.141592653589793/-180;q=ue(n);n=Fe(n);if((b|0)==1)break ea;y=Q(m);w=Q(m-R(i));v=Q(-w);r=+Q(q);s=+Q(n);n=+(e<<16>>16);m=+(d<<16>>16);i=m;if(h&24)break ca; -if(!(h&8))break da;i=+Q(y+w);n=n-i*s;i=i*r+m;break ca}f=Z()|0;break c}f=Z()|0;break c}f=Z()|0;break c}f=Z()|0;break c}n=+w*s+n;i=+v*r+m}t=Q(t-x);ha:{if(h&6){m=+Q(t*Q(-.5));n=m*r+n;i=m*s+i;break ha}if(!(h&2))break ha;m=+Q(-t);n=m*r+n;i=m*s+i}u=i+ +x;O[g+104>>3]=u;q=n+ +v;O[g+96>>3]=q;m=u+ +t;O[g+88>>3]=m;O[g+80>>3]=q;O[g+72>>3]=m;m=q+ +y;O[g+64>>3]=m;O[g+56>>3]=u;O[g+48>>3]=m;b=J[J[p>>2]+32>>2];J[195395]=0;j=_(b|0,p|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){ia:{if(!j)break ia;J[195395]=0;O[g+40>>3]= -n-i*r-n*s;O[g+32>>3]=n*r+(i-i*s);O[g+24>>3]=s;O[g+16>>3]=-r;O[g+8>>3]=r;O[g>>3]=s;b=J[195395];J[195395]=0;ja:{if((b|0)==1)break ja;J[195395]=0;Yd(g,g+104|0,g+96|0);b=J[195395];J[195395]=0;if((b|0)==1)break ja;J[195395]=0;Yd(g,g+88|0,g+80|0);b=J[195395];J[195395]=0;if((b|0)==1)break ja;J[195395]=0;Yd(g,g+72|0,g- -64|0);b=J[195395];J[195395]=0;if((b|0)==1)break ja;J[195395]=0;Yd(g,g+56|0,g+48|0);b=J[195395];J[195395]=0;if((b|0)!=1)break ia}f=Z()|0;break c}i=O[g+104>>3];ka:{if(R(i)<2147483648){h=~~i; -break ka}h=-2147483648}i=O[g+96>>3];la:{if(R(i)<2147483648){k=~~i;break la}k=-2147483648}b=a+176|0;ma:{if(K[a+192|0]){J[a+176>>2]=h;H[a+192|0]=0;J[a+184>>2]=h;J[a+188>>2]=k;J[a+180>>2]=k;j=k;break ma}j=b;na:{if(J[b>>2]<=(h|0)){j=a+184|0;if(J[j>>2]>=(h|0))break na}J[j>>2]=h}l=a+180|0;j=J[l>>2];h=k;oa:{if((j|0)<=(h|0)){h=j;l=a+188|0;if((k|0)<=J[l>>2])break oa}J[l>>2]=k;j=h}h=J[b>>2]}i=O[g+88>>3];pa:{if(R(i)<2147483648){k=~~i;break pa}k=-2147483648}o=(k|0)<(h|0);i=O[g+80>>3];qa:{if(R(i)<2147483648){h= -~~i;break qa}h=-2147483648}l=b;ra:{if(!o){l=a+184|0;if((k|0)<=J[l>>2])break ra}J[l>>2]=k}sa:{ta:{if((h|0)<(j|0)){k=a+180|0;j=h;break ta}k=a+188|0;if((h|0)<=J[k>>2])break sa}J[k>>2]=h}i=O[g+72>>3];ua:{if(R(i)<2147483648){k=~~i;break ua}k=-2147483648}o=(k|0)>2];i=O[g+64>>3];va:{if(R(i)<2147483648){h=~~i;break va}h=-2147483648}l=b;wa:{if(!o){l=a+184|0;if((k|0)<=J[l>>2])break wa}J[l>>2]=k}xa:{ya:{if((h|0)<(j|0)){k=a+180|0;j=h;break ya}k=a+188|0;if((h|0)<=J[k>>2])break xa}J[k>>2]=h}i=O[g+56>>3];za:{if(R(i)< -2147483648){l=~~i;break za}l=-2147483648}k=(l|0)>2];i=O[g+48>>3];Aa:{if(R(i)<2147483648){h=~~i;break Aa}h=-2147483648}Ba:{if(!k){b=a+184|0;if((l|0)<=J[b>>2])break Ba}J[b>>2]=l}Ca:{Da:{if((h|0)<(j|0)){b=a+180|0;break Da}b=a+188|0;if((h|0)<=J[b>>2])break Ca}J[b>>2]=h}if(H[g+147|0]>=0)break b;Kb(J[g+136>>2]);break b}f=Z()|0}if(H[g+147|0]>=0)break a;Kb(J[g+136>>2]);break a}Ea:{Fa:{if(f){j=0;Ga:{if(!c)break Ga;k=0;b=0;if(c>>>0>=4){h=c&-4;l=0;while(1){o=j;j=b<<1;j=(((o+L[j+f>>1]|0)+L[(j|2)+f>>1]|0)+ -L[(j|4)+f>>1]|0)+L[(j|6)+f>>1]|0;b=b+4|0;l=l+4|0;if((h|0)!=(l|0))continue;break}}c=c&3;if(!c)break Ga;while(1){j=L[(b<<1)+f>>1]+j|0;b=b+1|0;k=k+1|0;if((c|0)!=(k|0))continue;break}}a=J[a+172>>2];J[195395]=0;I[a+140>>1]=d+j;I[a+142>>1]=e;a=J[195395];J[195395]=0;if((a|0)!=1)break Fa;f=Z()|0;break a}a=J[a+172>>2];J[195395]=0;I[a+140>>1]=d;I[a+142>>1]=e;a=J[195395];J[195395]=0;if((a|0)==1)break Ea}if(H[g+175|0]<0)Kb(J[g+164>>2]);xb=g+176|0;return}f=Z()|0}if(H[g+175|0]<0)Kb(J[g+164>>2]);ba(f|0);B()}function HZ(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=xb-336|0;xb=d;a:{b:{c:{d:{if(!J[a+72>>2])break d;e=d+288|0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=1072693248;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=1072693248;J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;e:{if(c){Rd(e,c);break e}a=J[a+72>>2];Rd(e,Ab[J[J[a>>2]+72>>2]](a,2)|0)}f=O[e+32>>3]!=0|O[e+40>>3]!=0;g=O[e>>3]!=1|O[e+24>>3]!=1;a=J[b>>2];i=J[b+4>>2];c=0;f:{if((a|0)==(i|0))break f;while(1){j=K[a+11|0];c=j<<24>>24<0; -g:{if(((c?J[a+4>>2]:j)|0)!=9)break g;if(Ki(c?J[a>>2]:a,421568,9))break g;c=a;break f}a=a+24|0;if((i|0)!=(a|0))continue;break}c=0}J[d+280>>2]=0;J[d+272>>2]=0;J[d+276>>2]=0;h:{i:{a=!g;if(!(a|f)){h=O[e>>3];J[195395]=0;a=d+224|0;da(1863,a|0,+h,-1);f=J[195395];J[195395]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{if((f|0)!=1){J[195395]=0;a=aa(1954,a|0,0,423128)|0;f=J[195395];J[195395]=0;if((f|0)==1)break r;J[d+248>>2]=J[a+8>>2];f=J[a+4>>2];J[d+240>>2]=J[a>>2];J[d+244>>2]=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]= -0;$(1811,d+240|0,44);a=J[195395];J[195395]=0;if((a|0)==1)break q;J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0;a=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=a;J[d+240>>2]=0;J[d+244>>2]=0;h=O[e+24>>3];J[195395]=0;a=d+208|0;da(1863,a|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break p;J[195395]=0;g=a;a=K[d+219|0];e=a<<24>>24<0;a=aa(1864,d+256|0,(e?J[d+208>>2]:g)|0,(e?J[d+212>>2]:a)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break o;J[d+16>>2]=J[a+8>>2];e=J[a+4>>2];J[d+8>>2]=J[a>>2];J[d+12>>2]=e;J[a>>2]= -0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,d+8|0,41);a=J[195395];J[195395]=0;if((a|0)==1)break n;e=K[d+19|0];a=K[d+15|0]|K[d+16|0]<<8|(K[d+17|0]<<16|K[d+18|0]<<24);J[d+16>>2]=0;f=J[d+8>>2];g=J[d+12>>2];J[d+8>>2]=0;J[d+12>>2]=0;J[d+184>>2]=g;H[d+187|0]=a;H[d+188|0]=a>>>8;H[d+189|0]=a>>>16;H[d+190|0]=a>>>24;s:{if(H[d+283|0]>=0){J[d+272>>2]=f;J[d+276>>2]=J[d+184>>2];a=K[d+187|0]|K[d+188|0]<<8|(K[d+189|0]<<16|K[d+190|0]<<24);H[d+279|0]=a;H[d+280|0]=a>>>8;H[d+281|0]=a>>>16;H[d+282|0]=a>>>24;H[d+283| -0]=e;break s}Kb(J[d+272>>2]);J[d+272>>2]=f;H[d+283|0]=e;J[d+276>>2]=J[d+184>>2];a=K[d+187|0]|K[d+188|0]<<8|(K[d+189|0]<<16|K[d+190|0]<<24);H[d+279|0]=a;H[d+280|0]=a>>>8;H[d+281|0]=a>>>16;H[d+282|0]=a>>>24;if(H[d+19|0]>=0)break s;Kb(J[d+8>>2])}if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235|0]>=0)break i;Kb(J[d+224>>2]);break i}a=Z()|0;break b}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;if(H[d+19|0]>=0)break m;Kb(J[d+ -8>>2])}if(H[d+219|0]>=0)break l;Kb(J[d+208>>2])}if(H[d+267|0]>=0)break k;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break j;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break b;Kb(J[d+224>>2]);break b}f=!f;if(!(f|g)){h=O[e+32>>3];J[195395]=0;a=d+224|0;da(1863,a|0,+h,-1);f=J[195395];J[195395]=0;t:{u:{v:{w:{x:{y:{z:{A:{B:{if((f|0)!=1){J[195395]=0;a=aa(1954,a|0,0,423156)|0;f=J[195395];J[195395]=0;if((f|0)==1)break B;J[d+248>>2]=J[a+8>>2];f=J[a+4>>2];J[d+240>>2]=J[a>>2];J[d+244>>2]=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]= -0;$(1811,d+240|0,44);a=J[195395];J[195395]=0;if((a|0)==1)break A;J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0;a=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=a;J[d+240>>2]=0;J[d+244>>2]=0;h=O[e+40>>3];J[195395]=0;a=d+208|0;da(1863,a|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break z;J[195395]=0;g=a;a=K[d+219|0];e=a<<24>>24<0;a=aa(1864,d+256|0,(e?J[d+208>>2]:g)|0,(e?J[d+212>>2]:a)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break y;J[d+16>>2]=J[a+8>>2];e=J[a+4>>2];J[d+8>>2]=J[a>>2];J[d+12>>2]=e;J[a>>2]= -0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,d+8|0,41);a=J[195395];J[195395]=0;if((a|0)==1)break x;e=K[d+19|0];a=K[d+15|0]|K[d+16|0]<<8|(K[d+17|0]<<16|K[d+18|0]<<24);J[d+16>>2]=0;f=J[d+8>>2];g=J[d+12>>2];J[d+8>>2]=0;J[d+12>>2]=0;J[d+184>>2]=g;H[d+187|0]=a;H[d+188|0]=a>>>8;H[d+189|0]=a>>>16;H[d+190|0]=a>>>24;C:{if(H[d+283|0]>=0){J[d+272>>2]=f;J[d+276>>2]=J[d+184>>2];a=K[d+187|0]|K[d+188|0]<<8|(K[d+189|0]<<16|K[d+190|0]<<24);H[d+279|0]=a;H[d+280|0]=a>>>8;H[d+281|0]=a>>>16;H[d+282|0]=a>>>24;H[d+283| -0]=e;break C}Kb(J[d+272>>2]);J[d+272>>2]=f;H[d+283|0]=e;J[d+276>>2]=J[d+184>>2];a=K[d+187|0]|K[d+188|0]<<8|(K[d+189|0]<<16|K[d+190|0]<<24);H[d+279|0]=a;H[d+280|0]=a>>>8;H[d+281|0]=a>>>16;H[d+282|0]=a>>>24;if(H[d+19|0]>=0)break C;Kb(J[d+8>>2])}if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235|0]>=0)break i;Kb(J[d+224>>2]);break i}a=Z()|0;break b}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;break w}a=Z()|0;if(H[d+19|0]>=0)break w;Kb(J[d+ -8>>2])}if(H[d+219|0]>=0)break v;Kb(J[d+208>>2])}if(H[d+267|0]>=0)break u;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break t;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break b;Kb(J[d+224>>2]);break b}if(a|f)break h;h=O[e>>3];J[195395]=0;a=d+92|0;da(1863,a|0,+h,-1);f=J[195395];J[195395]=0;D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{if((f|0)!=1){J[195395]=0;a=aa(1954,a|0,0,423200)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ha;J[d+112>>2]=J[a+8>>2];f=J[a+4>> -2];J[d+104>>2]=J[a>>2];J[d+108>>2]=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,d+104|0,44);a=J[195395];J[195395]=0;if((a|0)==1)break ga;J[d+128>>2]=J[d+112>>2];J[d+112>>2]=0;a=J[d+108>>2];J[d+120>>2]=J[d+104>>2];J[d+124>>2]=a;J[d+104>>2]=0;J[d+108>>2]=0;h=O[e+8>>3];J[195395]=0;a=d+80|0;da(1863,a|0,+h,-1);f=J[195395];J[195395]=0;if((f|0)==1)break fa;J[195395]=0;g=a;a=K[d+91|0];f=a<<24>>24<0;a=aa(1864,d+120|0,(f?J[d+80>>2]:g)|0,(f?J[d+84>>2]:a)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ea; -J[d+144>>2]=J[a+8>>2];f=J[a+4>>2];J[d+136>>2]=J[a>>2];J[d+140>>2]=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,d+136|0,44);a=J[195395];J[195395]=0;if((a|0)==1)break da;J[d+160>>2]=J[d+144>>2];J[d+144>>2]=0;a=J[d+140>>2];J[d+152>>2]=J[d+136>>2];J[d+156>>2]=a;J[d+136>>2]=0;J[d+140>>2]=0;h=O[e+16>>3];J[195395]=0;a=d+68|0;da(1863,a|0,+h,-1);f=J[195395];J[195395]=0;if((f|0)==1)break ca;J[195395]=0;g=a;a=K[d+79|0];f=a<<24>>24<0;a=aa(1864,d+152|0,(f?J[d+68>>2]:g)|0,(f?J[d+72>>2]:a)|0)|0;f=J[195395]; -J[195395]=0;if((f|0)==1)break ba;J[d+176>>2]=J[a+8>>2];f=J[a+4>>2];J[d+168>>2]=J[a>>2];J[d+172>>2]=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,d+168|0,44);a=J[195395];J[195395]=0;if((a|0)==1)break aa;J[d+192>>2]=J[d+176>>2];J[d+176>>2]=0;a=J[d+172>>2];J[d+184>>2]=J[d+168>>2];J[d+188>>2]=a;J[d+168>>2]=0;J[d+172>>2]=0;h=O[e+24>>3];J[195395]=0;a=d+56|0;da(1863,a|0,+h,-1);f=J[195395];J[195395]=0;if((f|0)==1)break $;J[195395]=0;g=a;a=K[d+67|0];f=a<<24>>24<0;a=aa(1864,d+184|0,(f?J[d+56>>2]:g)| -0,(f?J[d+60>>2]:a)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break _;J[d+216>>2]=J[a+8>>2];f=J[a+4>>2];J[d+208>>2]=J[a>>2];J[d+212>>2]=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,d+208|0,44);a=J[195395];J[195395]=0;if((a|0)==1)break Z;J[d+232>>2]=J[d+216>>2];J[d+216>>2]=0;a=J[d+212>>2];J[d+224>>2]=J[d+208>>2];J[d+228>>2]=a;J[d+208>>2]=0;J[d+212>>2]=0;h=O[e+32>>3];J[195395]=0;a=d+44|0;da(1863,a|0,+h,-1);f=J[195395];J[195395]=0;if((f|0)==1)break Y;J[195395]=0;g=a;a=K[d+55|0];f=a<<24>>24<0; -a=aa(1864,d+224|0,(f?J[d+44>>2]:g)|0,(f?J[d+48>>2]:a)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break X;J[d+248>>2]=J[a+8>>2];f=J[a+4>>2];J[d+240>>2]=J[a>>2];J[d+244>>2]=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,d+240|0,44);a=J[195395];J[195395]=0;if((a|0)==1)break W;J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0;a=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=a;J[d+240>>2]=0;J[d+244>>2]=0;h=O[e+40>>3];J[195395]=0;a=d+32|0;da(1863,a|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break V;J[195395]= -0;g=a;a=K[d+43|0];e=a<<24>>24<0;a=aa(1864,d+256|0,(e?J[d+32>>2]:g)|0,(e?J[d+36>>2]:a)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break U;J[d+16>>2]=J[a+8>>2];e=J[a+4>>2];J[d+8>>2]=J[a>>2];J[d+12>>2]=e;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;$(1811,d+8|0,41);a=J[195395];J[195395]=0;if((a|0)==1)break T;e=K[d+19|0];a=K[d+15|0]|K[d+16|0]<<8|(K[d+17|0]<<16|K[d+18|0]<<24);J[d+16>>2]=0;f=J[d+8>>2];g=J[d+12>>2];J[d+8>>2]=0;J[d+12>>2]=0;J[d+200>>2]=g;H[d+203|0]=a;H[d+204|0]=a>>>8;H[d+205|0]=a>>>16;H[d+ -206|0]=a>>>24;ia:{if(H[d+283|0]>=0){J[d+272>>2]=f;J[d+276>>2]=J[d+200>>2];a=K[d+203|0]|K[d+204|0]<<8|(K[d+205|0]<<16|K[d+206|0]<<24);H[d+279|0]=a;H[d+280|0]=a>>>8;H[d+281|0]=a>>>16;H[d+282|0]=a>>>24;H[d+283|0]=e;break ia}Kb(J[d+272>>2]);J[d+272>>2]=f;H[d+283|0]=e;J[d+276>>2]=J[d+200>>2];a=K[d+203|0]|K[d+204|0]<<8|(K[d+205|0]<<16|K[d+206|0]<<24);H[d+279|0]=a;H[d+280|0]=a>>>8;H[d+281|0]=a>>>16;H[d+282|0]=a>>>24;if(H[d+19|0]>=0)break ia;Kb(J[d+8>>2])}if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+267|0]<0)Kb(J[d+ -256>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+55|0]<0)Kb(J[d+44>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+67|0]<0)Kb(J[d+56>>2]);if(H[d+195|0]<0)Kb(J[d+184>>2]);if(H[d+179|0]<0)Kb(J[d+168>>2]);if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+163|0]<0)Kb(J[d+152>>2]);if(H[d+147|0]<0)Kb(J[d+136>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+131|0]<0)Kb(J[d+120>>2]);if(H[d+115|0]<0)Kb(J[d+104>>2]);if(H[d+103|0]>=0)break i;Kb(J[d+92>>2]);break i}a=Z()|0;break b}a=Z()|0;break D}a=Z()| -0;break E}a=Z()|0;break F}a=Z()|0;break G}a=Z()|0;break H}a=Z()|0;break I}a=Z()|0;break J}a=Z()|0;break K}a=Z()|0;break L}a=Z()|0;break M}a=Z()|0;break N}a=Z()|0;break O}a=Z()|0;break P}a=Z()|0;break Q}a=Z()|0;break R}a=Z()|0;break S}a=Z()|0;if(H[d+19|0]>=0)break S;Kb(J[d+8>>2])}if(H[d+43|0]>=0)break R;Kb(J[d+32>>2])}if(H[d+267|0]>=0)break Q;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break P;Kb(J[d+240>>2])}if(H[d+55|0]>=0)break O;Kb(J[d+44>>2])}if(H[d+235|0]>=0)break N;Kb(J[d+224>>2])}if(H[d+219|0]>=0)break M; -Kb(J[d+208>>2])}if(H[d+67|0]>=0)break L;Kb(J[d+56>>2])}if(H[d+195|0]>=0)break K;Kb(J[d+184>>2])}if(H[d+179|0]>=0)break J;Kb(J[d+168>>2])}if(H[d+79|0]>=0)break I;Kb(J[d+68>>2])}if(H[d+163|0]>=0)break H;Kb(J[d+152>>2])}if(H[d+147|0]>=0)break G;Kb(J[d+136>>2])}if(H[d+91|0]>=0)break F;Kb(J[d+80>>2])}if(H[d+131|0]>=0)break E;Kb(J[d+120>>2])}if(H[d+115|0]>=0)break D;Kb(J[d+104>>2])}if(H[d+103|0]>=0)break b;Kb(J[d+92>>2]);break b}if(c){e=H[d+283|0];f=(e|0)<0?J[d+276>>2]:e&255;a=f+1|0;if(a>>>0>=1073741808){J[195395]= -0;ea(1800,d+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;break a}ja:{if(a>>>0<=1){J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;H[d+19|0]=a;b=d+8|0;break ja}b=a|3;if(b>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break c}J[195395]=0;g=b+1|0;b=_(1078,g<<2)|0;i=J[195395];J[195395]=0;if((i|0)==1)break c;J[d+12>>2]=a;J[d+8>>2]=b;J[d+16>>2]=g|-2147483648}a=f<<2;a=qc(b,(e|0)<0?J[d+272>>2]:d+272|0,a)+a|0;J[a>>2]=32;J[a+4>>2]=0;J[195395]=0;a=K[d+19|0];b=a<<24>>24<0;ha(3104, -c+12|0,0,(b?J[d+8>>2]:d+8|0)|0,(b?J[d+12>>2]:a)|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1){if(H[d+19|0]>=0)break h;Kb(J[d+8>>2]);break h}a=Z()|0;if(H[d+19|0]>=0)break b;Kb(J[d+8>>2]);break b}J[195395]=0;c=aa(3105,d+8|0,421568,d+272|0)|0;a=J[195395];J[195395]=0;ka:{la:{if((a|0)!=1){e=J[b+4>>2];if(e>>>0>2]){if(H[c+11|0]>=0){a=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=a;J[e+8>>2]=J[c+8>>2];break la}a=J[c+4>>2];f=J[c>>2];J[195395]=0;fa(1808,e|0,f|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break la;a= -Z()|0;J[b+4>>2]=e;Vb(c);break b}J[195395]=0;$(1971,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)!=1){if(H[c+23|0]>=0)break ka;Kb(J[c+12>>2]);break ka}a=Z()|0;Vb(c);break b}a=Z()|0;break b}a=J[c+16>>2];J[e+12>>2]=J[c+12>>2];J[e+16>>2]=a;J[e+20>>2]=J[c+20>>2];J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[b+4>>2]=e+24}if(H[c+11|0]>=0)break h;Kb(J[c>>2])}if(H[d+283|0]>=0)break d;Kb(J[d+272>>2])}xb=d+336|0;return}a=Z()|0}if(H[d+283|0]<0)Kb(J[d+272>>2]);ba(a|0);B()}B()}function gda(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;d=xb-160|0;xb=d;J[d+156>>2]=c;k=a+40|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:switch(b-254|0){default:switch(b-32995|0){case 2:break r;case 1:break t;case 3:break u;case 0:break x;default:break j}case 0:J[d+156>>2]=c+4;J[a+80>>2]=J[c>>2];e=1;break i;case 2:J[d+156>>2]=c+4;J[a+56>>2]=J[c>>2];e=1;break i;case 3:J[d+156>>2]=c+4;J[a+60>>2]=J[c>>2];e=1;break i;case 4:J[d+156>>2]=c+4;c=J[c>>2];I[a+84>>1]=c;e=1;if(!(K[a+12|0]&128))break i; -z:{A:{B:{C:{D:{c=c&65535;switch(c-16|0){case 16:break A;case 8:break B;case 0:break C;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break i;default:break D}}if((c|0)==64)break z;if((c|0)!=128)break i;J[a+652>>2]=1577;break i}J[a+652>>2]=1578;break i}J[a+652>>2]=1579;break i}J[a+652>>2]=1580;break i}J[a+652>>2]=1577;break i;case 5:J[d+156>>2]=c+4;c=L[c>>1];if(K[k|0]&128){e=1;if((c|0)==L[a+88>>1])break i;Ab[J[a+572>>2]](a);J[a+12>>2]=J[a+12>> -2]&-33}f=777244;while(1){E:{f=J[f>>2];if(!f){e=0;if(!J[193972])break E;f=775888;while(1){if((c|0)==L[f+4>>1]){e=f;break E}h=J[f+12>>2];f=f+12|0;if(h)continue;break}break E}e=J[f+4>>2];if((c|0)!=L[e+4>>1])continue}break}J[a+556>>2]=1620;J[a+548>>2]=1621;J[a+540>>2]=1622;J[a+520>>2]=1623;J[a+516>>2]=1624;J[a+512>>2]=1;J[a+528>>2]=1;J[a+580>>2]=1625;J[a+576>>2]=1626;J[a+572>>2]=1627;J[a+568>>2]=1628;J[a+564>>2]=1627;J[a+560>>2]=1629;J[a+552>>2]=1630;J[a+544>>2]=1631;J[a+536>>2]=1624;J[a+532>>2]=1623; -J[a+524>>2]=1624;J[a+12>>2]=J[a+12>>2]&-131329;if(e)e=Ab[J[e+8>>2]](a,c)|0;else e=1;if(!e)break c;I[a+88>>1]=c;break i;case 8:J[d+156>>2]=c+4;I[a+90>>1]=J[c>>2];e=1;break i;case 9:J[d+156>>2]=c+4;I[a+92>>1]=J[c>>2];e=1;break i;case 12:J[d+156>>2]=c+4;g=J[c>>2];if(g-3>>>0<4294967294)break b;I[a+94>>1]=g;e=1;break i;case 20:J[d+156>>2]=c+4;g=J[c>>2];if(g-9>>>0<4294967288)break b;I[a+96>>1]=g;e=1;break i;case 23:J[d+156>>2]=c+4;c=J[c>>2];if(!c)break b;I[a+98>>1]=c;e=1;break i;case 24:J[d+156>>2]=c+4; -c=J[c>>2];if(!c)break e;J[a+100>>2]=c;e=1;if(K[a+40|0]&4)break i;J[a+72>>2]=c;J[a+68>>2]=J[a+56>>2];break i;case 26:J[d+156>>2]=c+4;I[a+104>>1]=J[c>>2];e=1;break i;case 27:J[d+156>>2]=c+4;I[a+106>>1]=J[c>>2];e=1;break i;case 86:c=c+7&-8;J[d+156>>2]=c+8;O[a+112>>3]=O[c>>3];e=1;break i;case 87:c=c+7&-8;J[d+156>>2]=c+8;O[a+120>>3]=O[c>>3];e=1;break i;case 28:c=c+7&-8;J[d+156>>2]=c+8;N[a+128>>2]=O[c>>3];e=1;break i;case 29:c=c+7&-8;J[d+156>>2]=c+8;N[a+132>>2]=O[c>>3];e=1;break i;case 30:J[d+156>>2]=c+ -4;g=J[c>>2];if(g-3>>>0<4294967294)break b;I[a+138>>1]=g;e=1;break i;case 32:c=c+7&-8;J[d+156>>2]=c+8;N[a+140>>2]=O[c>>3];e=1;break i;case 33:c=c+7&-8;J[d+156>>2]=c+8;N[a+144>>2]=O[c>>3];e=1;break i;case 42:J[d+156>>2]=c+4;g=J[c>>2];if(g-4>>>0<4294967293)break b;I[a+136>>1]=g;e=1;break i;case 43:I[a+148>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+150>>1]=J[c+4>>2];e=1;break i;case 67:I[a+164>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+166>>1]=J[c+4>>2];e=1;break i;case 66:f=L[a+84>>1];J[d+156>>2]=c+4;e=J[c>>2];h=J[a+152>> -2];if(h){Kb(h);J[a+152>>2]=0}F:{if(!e|(f|0)==31)break F;g=2<>2]=h;if(!h)break F;Pc(h,e,g)}e=J[c+4>>2];h=J[a+156>>2];if(h){Kb(h);J[a+156>>2]=0}G:{if(!e|(f|0)==31)break G;g=2<>2]=h;if(!h)break G;Pc(h,e,g)}J[d+156>>2]=c+12;c=J[c+8>>2];e=J[a+160>>2];if(e){Kb(e);J[a+160>>2]=0}e=1;if(!c|(f|0)==31)break i;h=2<>2]=f;if(!f)break i;Pc(f,c,h);break i;case 1:case 6:case 7:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 22:case 25:case 31:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 80:case 81:case 82:case 83:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 217:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 240:case 241:case 242:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:case 275:break j; -case 79:break k;case 278:break l;case 47:break n;case 276:break o;case 277:break p;case 76:break q;case 85:break s;case 69:break v;case 68:break w;case 84:break y}g=J[c>>2];h=g&65535;if(h>>>0>L[a+98>>1])break b;f=J[c+4>>2];if(f?0:g)break b;if(g){c=0;while(1){j=f+(c<<1)|0;i=L[j>>1];if(i>>>0>=3){if((i|0)!=999)break b;I[j>>1]=2}c=c+1|0;if((g|0)!=(c|0))continue;break}}I[a+168>>1]=g;c=J[a+172>>2];if(c){Kb(c);J[a+172>>2]=0}if(!f)break m;e=1;h=h<<1;c=Qb(h);J[a+172>>2]=c;if(!c)break i;Pc(c,f,h);break i}J[d+ -156>>2]=c+4;c=J[c>>2];I[a+168>>1]=(c|0)!=0;if(!c)break m;e=1;I[d+144>>1]=1;c=d+144|0;f=J[a+172>>2];if(f){Kb(f);J[a+172>>2]=0}H:{if(!c)break H;f=Qb(2);J[a+172>>2]=f;if(!f)break H;Pc(f,c,2)}break i}J[d+156>>2]=c+4;c=J[c>>2];if(c&15){if(J[a+8>>2])break d;e=J[a>>2];f=J[a+628>>2];J[d+80>>2]=c;yc(f,e,268065,d+80|0)}J[a+68>>2]=c;J[a+12>>2]=J[a+12>>2]|1024;e=1;break i}J[d+156>>2]=c+4;c=J[c>>2];if(c&15){if(J[a+8>>2])break d;e=J[a>>2];f=J[a+628>>2];J[d+96>>2]=c;yc(f,e,268572,d+96|0)}J[a+72>>2]=c;J[a+12>>2]= -J[a+12>>2]|1024;e=1;break i}J[d+156>>2]=c+4;c=J[c>>2];if(!c)break e;J[a+76>>2]=c;e=1;break i}J[d+156>>2]=c+4;g=J[c>>2];if(g>>>0>3)break b;e=g<<4;c=e&31;if((e&63)>>>0>=32)c=196609>>>c|0;else c=((1<>>c;I[a+86>>1]=c;e=1;break i}J[d+156>>2]=c+4;g=J[c>>2];if(g-7>>>0<4294967290)break b;I[a+86>>1]=g;I:{if((g|0)==5){if(L[a+84>>1]!=32|J[a+652>>2]!=1580)break I;J[a+652>>2]=1578;e=1;break i}e=1;if((g-5&65535)>>>0>1)break i}e=1;if(L[a+84>>1]!=64|J[a+652>>2]!=1577)break i;J[a+652>>2]= -1580;break i}J[d+156>>2]=c+4;J[a- -64>>2]=J[c>>2];e=1;break i}if(!(K[a+13|0]&32)){e=J[c>>2];I[a+196>>1]=e;J[d+156>>2]=c+8;c=J[c+4>>2];e=e&65535;f=J[a+200>>2];if(f){Kb(f);J[a+200>>2]=0}J:{if(!c)break J;f=e<<2;e=Qb(f);J[a+200>>2]=e;if(!e)break J;Pc(e,c,f)}e=1;break i}b=J[a+628>>2];J[d+112>>2]=J[a>>2];Ob(b,267757,269015,d+112|0);break a}J[d+156>>2]=c+4;I[a+208>>1]=J[c>>2];e=1;break i}I[a+204>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+206>>1]=J[c+4>>2];e=1;break i}j=(L[a+98>>1]-L[a+168>>1]|0)<2;while(1){f=L[a+84>> -1];h=J[c>>2];g=(e<<2)+a|0;i=J[g+216>>2];if(i){Kb(i);J[g+216>>2]=0}K:{if(!h|(f|0)==31)break K;i=g;g=2<>2]=f;if(!f)break K;Pc(f,h,g)}c=c+4|0;if(!j){f=e>>>0<2;e=e+1|0;if(f)continue}break}J[d+156>>2]=c}e=1;break i}J[d+156>>2]=c+4;c=J[c>>2];e=J[a+212>>2];if(e){Kb(e);J[a+212>>2]=0}e=1;if(!c)break i;f=Qb(24);J[a+212>>2]=f;if(!f)break i;Pc(f,c,24);break i}f=J[c>>2];J[d+156>>2]=c+8;h=L[a+98>>1];g=h;if(!f)break h;if(!g)break a;i=f;f=J[c+4>>2];j=i+f|0;c=f;while(1){if(K[c|0])while(1){if(c>>> -0>=j>>>0)break h;i=K[c+1|0];c=c+1|0;if(i)continue;break}c=c+1|0;g=g-1|0;if(g&65535)continue;break}if((c|0)==(f|0))break a;c=c-f|0;gD(a+232|0,f,c);J[a+228>>2]=c;e=1;break i}j=ek(a,b);if(!j){c=b>>>0>65535?266449:267142;b=270134;break f}if(L[j+12>>1]!=65)break g;c=0;f=J[a+240>>2];h=J[a+236>>2];L:{if((h|0)>0)while(1){g=f+P(c,12)|0;if(J[J[g>>2]>>2]==(b|0)){c=J[g+8>>2];if(!c)break L;Kb(c);J[g+8>>2]=0;break L}c=c+1|0;if((h|0)!=(c|0))continue;break}c=h+1|0;J[a+236>>2]=c;c=ok(f,P(c,12));if(!c){b=J[a+628>> -2];J[d+32>>2]=J[a>>2];Ob(b,267757,270683,d+32|0);break a}J[a+240>>2]=c;g=(c+P(J[a+236>>2],12)|0)-12|0;J[g>>2]=j;J[g+4>>2]=0;J[g+8>>2]=0}c=J[j+8>>2]-1|0;if(c>>>0<=12)h=J[(c<<2)+283368>>2];else h=0;if(!h){b=J[a+628>>2];a=J[a>>2];c=J[j+8>>2];J[d+24>>2]=J[j+16>>2];J[d+20>>2]=c;J[d+16>>2]=a;Ob(b,267757,271489,d+16|0);break a}M:{if(K[j+15|0]){c=J[d+156>>2];J[d+156>>2]=c+4;c=J[c>>2];break M}c=1;N:{O:{e=I[j+6>>1];switch((e&65535)-65533|0){case 1:break O;case 0:case 2:break M;default:break N}}c=L[a+98>>1]; -break M}c=e}J[g+4>>2]=c;if(J[j+8>>2]==2){c=J[d+156>>2];J[d+156>>2]=c+4;Al(g+8|0,J[c>>2]);e=1;break i}c=Sd(a,h,c,271729);J[g+8>>2]=c;if(!c)break c;P:{if(!(K[j+15|0]|L[j+6>>1]>65532)){f=J[g+4>>2];if((f|0)<2)break P}Q:{R:{S:{e=J[j>>2];switch(e-321|0){case 0:case 15:break Q;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break R;default:break S}}if((e|0)==297|(e|0)==530)break Q}e=J[d+156>>2];J[d+156>>2]=e+4;Pc(c,J[e>>2],P(h,J[g+4>>2]));e=1;break i}f= -J[g+4>>2]}e=1;if((f|0)<=0)break i;f=0;while(1){T:{U:switch(J[j+8>>2]-1|0){case 0:case 6:i=J[d+156>>2];J[d+156>>2]=i+4;H[d+144|0]=J[i>>2];Pc(c,d+144|0,h);break T;case 5:i=J[d+156>>2];J[d+156>>2]=i+4;H[d+144|0]=J[i>>2];Pc(c,d+144|0,h);break T;case 2:i=J[d+156>>2];J[d+156>>2]=i+4;I[d+144>>1]=J[i>>2];Pc(c,d+144|0,h);break T;case 7:i=J[d+156>>2];J[d+156>>2]=i+4;I[d+144>>1]=J[i>>2];Pc(c,d+144|0,h);break T;case 3:case 12:i=J[d+156>>2];J[d+156>>2]=i+4;J[d+144>>2]=J[i>>2];Pc(c,d+144|0,h);break T;case 8:i= -J[d+156>>2];J[d+156>>2]=i+4;J[d+144>>2]=J[i>>2];Pc(c,d+144|0,h);break T;case 4:case 9:case 10:i=J[d+156>>2]+7&-8;J[d+156>>2]=i+8;N[d+144>>2]=O[i>>3];Pc(c,d+144|0,h);break T;case 11:i=J[d+156>>2]+7&-8;J[d+156>>2]=i+8;O[d+144>>3]=O[i>>3];Pc(c,d+144|0,h);break T;default:break U}e=0;Pd(c,0,h)}c=c+h|0;f=f+1|0;if((f|0)>2])continue;break}if(!e)break c}c=L[nd(a,b)+12>>1];b=(L[nd(a,b)+12>>1]>>>3&8188)+k|0;J[b>>2]=J[b>>2]|1<>2]=J[a+12>>2]|8;break a}b=J[a+628>>2];J[d+128>>2]=J[a>>2];J[d+132>> -2]=h;J[d+136>>2]=h-(g&65535);Ob(b,265275,272702,d+128|0);break a}c=b>>>0>65535?266449:267142;b=J[j+16>>2]}f=J[a+628>>2];a=J[a>>2];J[d+8>>2]=b;J[d+4>>2]=c;J[d>>2]=a;Ob(f,267757,269902,d);break a}c=0}e=J[a+628>>2];f=J[a>>2];l=d,m=J[nd(a,b)+16>>2],J[l+72>>2]=m;J[d+68>>2]=c;J[d+64>>2]=f;Ob(e,267757,272281,d- -64|0)}e=0;break a}c=J[a+628>>2];f=J[a>>2];l=d,m=J[nd(a,b)+16>>2],J[l+56>>2]=m;J[d+52>>2]=g;J[d+48>>2]=f;Ob(c,267757,272036,d+48|0)}xb=d+160|0;return e|0}function N2(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;e=xb-512|0;xb=e;g=J[b+12>>2];i=J[b+4>>2];f=e+144|0;j=J[b+8>>2];k=J[b>>2];l=+((j+k|0)/2<<16>>16);ff(f,l,-1);J[195395]=0;aa(1968,f|0,(H[e+155|0]<0?J[e+144>>2]:f)|0,77)|0;b=J[195395];J[195395]=0;f=(g+i|0)/2|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{if((b|0)!=1){J[e+168>>2]=J[e+ -152>>2];J[e+152>>2]=0;b=J[e+148>>2];J[e+160>>2]=J[e+144>>2];J[e+164>>2]=b;J[e+144>>2]=0;J[e+148>>2]=0;J[195395]=0;$(1811,e+160|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break oa;J[e+184>>2]=J[e+168>>2];J[e+168>>2]=0;b=J[e+164>>2];J[e+176>>2]=J[e+160>>2];J[e+180>>2]=b;J[e+160>>2]=0;J[e+164>>2]=0;J[195395]=0;b=e+132|0;m=+(f<<16>>16);da(1863,b|0,+m,-1);f=J[195395];J[195395]=0;if((f|0)==1)break na;J[195395]=0;h=b;b=K[e+143|0];f=b<<24>>24<0;b=aa(1864,e+176|0,(f?J[e+132>>2]:h)|0,(f?J[e+136>>2]:b)|0)|0; -f=J[195395];J[195395]=0;if((f|0)==1)break ma;J[e+200>>2]=J[b+8>>2];f=J[b+4>>2];J[e+192>>2]=J[b>>2];J[e+196>>2]=f;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+192|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break la;J[e+216>>2]=J[e+200>>2];J[e+200>>2]=0;b=J[e+196>>2];J[e+208>>2]=J[e+192>>2];J[e+212>>2]=b;J[e+192>>2]=0;J[e+196>>2]=0;J[195395]=0;$(1811,e+208|0,76);b=J[195395];J[195395]=0;if((b|0)==1)break ka;J[e+232>>2]=J[e+216>>2];J[e+216>>2]=0;b=J[e+212>>2];J[e+224>>2]=J[e+208>>2];J[e+228>> -2]=b;J[e+208>>2]=0;J[e+212>>2]=0;b=J[c>>2];J[195395]=0;f=e+120|0;da(1863,f|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break ja;J[195395]=0;h=f;b=K[e+131|0];f=b<<24>>24<0;b=aa(1864,e+224|0,(f?J[e+120>>2]:h)|0,(f?J[e+124>>2]:b)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ia;J[e+248>>2]=J[b+8>>2];f=J[b+4>>2];J[e+240>>2]=J[b>>2];J[e+244>>2]=f;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ha;J[e+264>>2]=J[e+248>>2];J[e+248>>2]=0;b=J[e+ -244>>2];J[e+256>>2]=J[e+240>>2];J[e+260>>2]=b;J[e+240>>2]=0;J[e+244>>2]=0;b=J[c+4>>2];J[195395]=0;c=e+108|0;da(1863,c|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break ga;J[195395]=0;f=c;b=K[e+119|0];c=b<<24>>24<0;b=aa(1864,e+256|0,(c?J[e+108>>2]:f)|0,(c?J[e+112>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break fa;J[e+280>>2]=J[b+8>>2];c=J[b+4>>2];J[e+272>>2]=J[b>>2];J[e+276>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+272|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ea; -J[e+296>>2]=J[e+280>>2];J[e+280>>2]=0;b=J[e+276>>2];J[e+288>>2]=J[e+272>>2];J[e+292>>2]=b;J[e+272>>2]=0;J[e+276>>2]=0;J[195395]=0;$(1811,e+288|0,65);b=J[195395];J[195395]=0;if((b|0)==1)break da;J[e+312>>2]=J[e+296>>2];J[e+296>>2]=0;b=J[e+292>>2];J[e+304>>2]=J[e+288>>2];J[e+308>>2]=b;J[e+288>>2]=0;J[e+292>>2]=0;J[195395]=0;c=j-k|0;b=c>>31;f=e+96|0;da(1863,f|0,+((b^c)-b>>>1<<16>>16),-1);b=J[195395];J[195395]=0;if((b|0)==1)break ca;J[195395]=0;b=K[e+107|0];c=b<<24>>24<0;b=aa(1864,e+304|0,(c?J[e+96>> -2]:f)|0,(c?J[e+100>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ba;J[e+328>>2]=J[b+8>>2];c=J[b+4>>2];J[e+320>>2]=J[b>>2];J[e+324>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+320|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break aa;J[e+344>>2]=J[e+328>>2];J[e+328>>2]=0;b=J[e+324>>2];J[e+336>>2]=J[e+320>>2];J[e+340>>2]=b;J[e+320>>2]=0;J[e+324>>2]=0;J[195395]=0;c=g-i|0;b=c>>31;g=e+84|0;da(1863,g|0,+((b^c)-b>>>1<<16>>16),-1);b=J[195395];J[195395]=0;if((b|0)==1)break $;J[195395]= -0;b=K[e+95|0];c=b<<24>>24<0;b=aa(1864,e+336|0,(c?J[e+84>>2]:g)|0,(c?J[e+88>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break _;J[e+360>>2]=J[b+8>>2];c=J[b+4>>2];J[e+352>>2]=J[b>>2];J[e+356>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,e+352|0,401048)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Z;J[e+376>>2]=J[b+8>>2];c=J[b+4>>2];J[e+368>>2]=J[b>>2];J[e+372>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;b=J[d>>2];J[195395]=0;c=e+72|0;da(1863,c|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b| -0)==1)break Y;J[195395]=0;f=c;b=K[e+83|0];c=b<<24>>24<0;b=aa(1864,e+368|0,(c?J[e+72>>2]:f)|0,(c?J[e+76>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break X;J[e+392>>2]=J[b+8>>2];c=J[b+4>>2];J[e+384>>2]=J[b>>2];J[e+388>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+384|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break W;J[e+408>>2]=J[e+392>>2];J[e+392>>2]=0;b=J[e+388>>2];J[e+400>>2]=J[e+384>>2];J[e+404>>2]=b;J[e+384>>2]=0;J[e+388>>2]=0;b=J[d+4>>2];J[195395]=0;c=e+60|0;da(1863,c|0,+(b| -0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break V;J[195395]=0;d=c;b=K[e+71|0];c=b<<24>>24<0;b=aa(1864,e+400|0,(c?J[e+60>>2]:d)|0,(c?J[e+64>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break U;J[e+424>>2]=J[b+8>>2];c=J[b+4>>2];J[e+416>>2]=J[b>>2];J[e+420>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+416|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break T;J[e+440>>2]=J[e+424>>2];J[e+424>>2]=0;b=J[e+420>>2];J[e+432>>2]=J[e+416>>2];J[e+436>>2]=b;J[e+416>>2]=0;J[e+420>>2]=0;J[195395]= -0;$(1811,e+432|0,76);b=J[195395];J[195395]=0;if((b|0)==1)break S;J[e+456>>2]=J[e+440>>2];J[e+440>>2]=0;b=J[e+436>>2];J[e+448>>2]=J[e+432>>2];J[e+452>>2]=b;J[e+432>>2]=0;J[e+436>>2]=0;J[195395]=0;b=e+48|0;da(1863,b|0,+l,-1);c=J[195395];J[195395]=0;if((c|0)==1)break R;J[195395]=0;d=b;b=K[e+59|0];c=b<<24>>24<0;b=aa(1864,e+448|0,(c?J[e+48>>2]:d)|0,(c?J[e+52>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Q;J[e+472>>2]=J[b+8>>2];c=J[b+4>>2];J[e+464>>2]=J[b>>2];J[e+468>>2]=c;J[b>>2]=0;J[b+4>>2]=0; -J[b+8>>2]=0;J[195395]=0;$(1811,e+464|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break P;J[e+488>>2]=J[e+472>>2];J[e+472>>2]=0;b=J[e+468>>2];J[e+480>>2]=J[e+464>>2];J[e+484>>2]=b;J[e+464>>2]=0;J[e+468>>2]=0;J[195395]=0;b=e+36|0;da(1863,b|0,+m,-1);c=J[195395];J[195395]=0;if((c|0)==1)break O;J[195395]=0;d=b;b=K[e+47|0];c=b<<24>>24<0;b=aa(1864,e+480|0,(c?J[e+36>>2]:d)|0,(c?J[e+40>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break N;J[e+16>>2]=J[b+8>>2];c=J[b+4>>2];J[e+8>>2]=J[b>>2];J[e+12>>2]=c;J[b>> -2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,e+8|0,401276)|0;c=J[195395];J[195395]=0;if((c|0)==1)break M;J[e+504>>2]=J[b+8>>2];c=J[b+4>>2];J[e+496>>2]=J[b>>2];J[e+500>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[e+19|0]<0)Kb(J[e+8>>2]);if(H[e+47|0]<0)Kb(J[e+36>>2]);if(H[e+491|0]<0)Kb(J[e+480>>2]);if(H[e+475|0]<0)Kb(J[e+464>>2]);if(H[e+59|0]<0)Kb(J[e+48>>2]);if(H[e+459|0]<0)Kb(J[e+448>>2]);if(H[e+443|0]<0)Kb(J[e+432>>2]);if(H[e+427|0]<0)Kb(J[e+416>>2]);if(H[e+71|0]<0)Kb(J[e+60>>2]);if(H[e+411| -0]<0)Kb(J[e+400>>2]);if(H[e+395|0]<0)Kb(J[e+384>>2]);if(H[e+83|0]<0)Kb(J[e+72>>2]);if(H[e+379|0]<0)Kb(J[e+368>>2]);if(H[e+363|0]<0)Kb(J[e+352>>2]);if(H[e+95|0]<0)Kb(J[e+84>>2]);if(H[e+347|0]<0)Kb(J[e+336>>2]);if(H[e+331|0]<0)Kb(J[e+320>>2]);if(H[e+107|0]<0)Kb(J[e+96>>2]);if(H[e+315|0]<0)Kb(J[e+304>>2]);if(H[e+299|0]<0)Kb(J[e+288>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+119|0]<0)Kb(J[e+108>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+131|0]<0)Kb(J[e+120>>2]);if(H[e+ -235|0]<0)Kb(J[e+224>>2]);if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+143|0]<0)Kb(J[e+132>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);J[195395]=0;b=aa(1962,e+8|0,397860,e+496|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;J[e+488>>2]=0;J[e+480>>2]=0;J[e+484>>2]=0;J[195395]=0;H[e+468|0]=0;J[e+464>>2]=e+480;d=_(1078,24)|0;c=J[195395];J[195395]=0;pa:{qa:{if((c|0)!=1){J[e+484>>2]=d;J[e+480>>2]=d;J[195395]=0;J[e+488>> -2]=d+24;c=ha(1957,e+488|0,b|0,b+24|0,d|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break pa;c=Z()|0;J[e+484>>2]=d;break qa}c=Z()|0}Kc(e+464|0);Vb(b);break b}J[e+484>>2]=c;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=e+480|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,b|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break e;J[e+464>>2]=a;J[e+468>>2]=4;J[e+472>>2]=-2147483640;d=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=d;d=J[99523];J[a>>2]=J[99522];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[e+448>>2]=0;H[e+459|0]=0;ia(1961,b|0,e+464|0,c|0,e+448|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[e+459|0]<0)Kb(J[e+448>>2]);if(H[e+475|0]<0)Kb(J[e+464>>2]);a=J[e+480>>2];if(a){b=J[e+484>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b- -1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((a|0)!=(b|0))continue;break}c=J[e+480>>2]}J[e+484>>2]=a;Kb(c)}if(H[e+507|0]<0)Kb(J[e+496>>2]);xb=e+512|0;return}c=Z()|0;break h}c=Z()|0;break i}c=Z()|0;break j}c=Z()|0;break k}c=Z()|0;break l}c=Z()|0;break m}c=Z()|0;break n}c=Z()|0;break o}c=Z()|0;break p}c=Z()|0;break q}c=Z()|0;break r}c=Z()|0;break s}c=Z()|0;break t}c=Z()|0;break u}c=Z()|0;break v}c=Z()|0;break w}c=Z()|0;break x}c=Z()|0;break y}c=Z()|0;break z}c=Z()|0;break A}c=Z()| -0;break B}c=Z()|0;break C}c=Z()|0;break D}c=Z()|0;break E}c=Z()|0;break F}c=Z()|0;break G}c=Z()|0;break H}c=Z()|0;break I}c=Z()|0;break J}c=Z()|0;break K}c=Z()|0;break L}c=Z()|0;if(H[e+19|0]>=0)break L;Kb(J[e+8>>2])}if(H[e+47|0]>=0)break K;Kb(J[e+36>>2])}if(H[e+491|0]>=0)break J;Kb(J[e+480>>2])}if(H[e+475|0]>=0)break I;Kb(J[e+464>>2])}if(H[e+59|0]>=0)break H;Kb(J[e+48>>2])}if(H[e+459|0]>=0)break G;Kb(J[e+448>>2])}if(H[e+443|0]>=0)break F;Kb(J[e+432>>2])}if(H[e+427|0]>=0)break E;Kb(J[e+416>>2])}if(H[e+ -71|0]>=0)break D;Kb(J[e+60>>2])}if(H[e+411|0]>=0)break C;Kb(J[e+400>>2])}if(H[e+395|0]>=0)break B;Kb(J[e+384>>2])}if(H[e+83|0]>=0)break A;Kb(J[e+72>>2])}if(H[e+379|0]>=0)break z;Kb(J[e+368>>2])}if(H[e+363|0]>=0)break y;Kb(J[e+352>>2])}if(H[e+95|0]>=0)break x;Kb(J[e+84>>2])}if(H[e+347|0]>=0)break w;Kb(J[e+336>>2])}if(H[e+331|0]>=0)break v;Kb(J[e+320>>2])}if(H[e+107|0]>=0)break u;Kb(J[e+96>>2])}if(H[e+315|0]>=0)break t;Kb(J[e+304>>2])}if(H[e+299|0]>=0)break s;Kb(J[e+288>>2])}if(H[e+283|0]>=0)break r; -Kb(J[e+272>>2])}if(H[e+119|0]>=0)break q;Kb(J[e+108>>2])}if(H[e+267|0]>=0)break p;Kb(J[e+256>>2])}if(H[e+251|0]>=0)break o;Kb(J[e+240>>2])}if(H[e+131|0]>=0)break n;Kb(J[e+120>>2])}if(H[e+235|0]>=0)break m;Kb(J[e+224>>2])}if(H[e+219|0]>=0)break l;Kb(J[e+208>>2])}if(H[e+203|0]>=0)break k;Kb(J[e+192>>2])}if(H[e+143|0]>=0)break j;Kb(J[e+132>>2])}if(H[e+187|0]>=0)break i;Kb(J[e+176>>2])}if(H[e+171|0]>=0)break h;Kb(J[e+160>>2])}if(H[e+155|0]>=0)break a;Kb(J[e+144>>2]);ba(c|0);B()}c=Z()|0;break b}c=Z()| -0;break c}c=Z()|0;break c}c=Z()|0;if(H[e+459|0]<0)Kb(J[e+448>>2]);if(H[e+475|0]>=0)break c;Kb(J[e+464>>2])}Hc(e+480|0)}if(H[e+507|0]>=0)break a;Kb(J[e+496>>2])}ba(c|0);B()}function cZ(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;j=xb-512|0;xb=j;k=j+144|0;l=+((g+i|0)/2<<16>>16);ff(k,l,-1);J[195395]=0;aa(1968,k|0,(H[j+155|0]<0?J[j+144>>2]:k)|0,77)|0;k=J[195395];J[195395]=0;n=(f-h|0)/2|0;g=(g-i|0)/2|0;f=(f+h|0)/2|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{if((k| -0)!=1){J[j+168>>2]=J[j+152>>2];J[j+152>>2]=0;h=J[j+148>>2];J[j+160>>2]=J[j+144>>2];J[j+164>>2]=h;J[j+144>>2]=0;J[j+148>>2]=0;J[195395]=0;$(1811,j+160|0,32);h=J[195395];J[195395]=0;if((h|0)==1)break oa;J[j+184>>2]=J[j+168>>2];J[j+168>>2]=0;h=J[j+164>>2];J[j+176>>2]=J[j+160>>2];J[j+180>>2]=h;J[j+160>>2]=0;J[j+164>>2]=0;J[195395]=0;h=j+132|0;m=+(f<<16>>16);da(1863,h|0,+m,-1);f=J[195395];J[195395]=0;if((f|0)==1)break na;J[195395]=0;i=h;f=K[j+143|0];h=f<<24>>24<0;f=aa(1864,j+176|0,(h?J[j+132>>2]:i)|0, -(h?J[j+136>>2]:f)|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break ma;J[j+200>>2]=J[f+8>>2];h=J[f+4>>2];J[j+192>>2]=J[f>>2];J[j+196>>2]=h;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[195395]=0;$(1811,j+192|0,32);f=J[195395];J[195395]=0;if((f|0)==1)break la;J[j+216>>2]=J[j+200>>2];J[j+200>>2]=0;f=J[j+196>>2];J[j+208>>2]=J[j+192>>2];J[j+212>>2]=f;J[j+192>>2]=0;J[j+196>>2]=0;J[195395]=0;$(1811,j+208|0,76);f=J[195395];J[195395]=0;if((f|0)==1)break ka;J[j+232>>2]=J[j+216>>2];J[j+216>>2]=0;f=J[j+212>>2];J[j+224>> -2]=J[j+208>>2];J[j+228>>2]=f;J[j+208>>2]=0;J[j+212>>2]=0;J[195395]=0;f=j+120|0;da(1863,f|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break ja;J[195395]=0;h=f;b=K[j+131|0];f=b<<24>>24<0;b=aa(1864,j+224|0,(f?J[j+120>>2]:h)|0,(f?J[j+124>>2]:b)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break ia;J[j+248>>2]=J[b+8>>2];f=J[b+4>>2];J[j+240>>2]=J[b>>2];J[j+244>>2]=f;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ha;J[j+264>>2]=J[j+248>>2];J[j+ -248>>2]=0;b=J[j+244>>2];J[j+256>>2]=J[j+240>>2];J[j+260>>2]=b;J[j+240>>2]=0;J[j+244>>2]=0;J[195395]=0;b=j+108|0;da(1863,b|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break ga;J[195395]=0;f=b;b=K[j+119|0];c=b<<24>>24<0;b=aa(1864,j+256|0,(c?J[j+108>>2]:f)|0,(c?J[j+112>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break fa;J[j+280>>2]=J[b+8>>2];c=J[b+4>>2];J[j+272>>2]=J[b>>2];J[j+276>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+272|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ea; -J[j+296>>2]=J[j+280>>2];J[j+280>>2]=0;b=J[j+276>>2];J[j+288>>2]=J[j+272>>2];J[j+292>>2]=b;J[j+272>>2]=0;J[j+276>>2]=0;J[195395]=0;$(1811,j+288|0,65);b=J[195395];J[195395]=0;if((b|0)==1)break da;J[j+312>>2]=J[j+296>>2];J[j+296>>2]=0;b=J[j+292>>2];J[j+304>>2]=J[j+288>>2];J[j+308>>2]=b;J[j+288>>2]=0;J[j+292>>2]=0;J[195395]=0;b=j+96|0;da(1863,b|0,+(g<<16>>16),-1);c=J[195395];J[195395]=0;if((c|0)==1)break ca;J[195395]=0;f=b;b=K[j+107|0];c=b<<24>>24<0;b=aa(1864,j+304|0,(c?J[j+96>>2]:f)|0,(c?J[j+100>>2]: -b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break ba;J[j+328>>2]=J[b+8>>2];c=J[b+4>>2];J[j+320>>2]=J[b>>2];J[j+324>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+320|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break aa;J[j+344>>2]=J[j+328>>2];J[j+328>>2]=0;b=J[j+324>>2];J[j+336>>2]=J[j+320>>2];J[j+340>>2]=b;J[j+320>>2]=0;J[j+324>>2]=0;J[195395]=0;b=j+84|0;da(1863,b|0,+(n<<16>>16),-1);c=J[195395];J[195395]=0;if((c|0)==1)break $;J[195395]=0;f=b;b=K[j+95|0];c=b<<24>>24<0;b=aa(1864,j+336| -0,(c?J[j+84>>2]:f)|0,(c?J[j+88>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break _;J[j+360>>2]=J[b+8>>2];c=J[b+4>>2];J[j+352>>2]=J[b>>2];J[j+356>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,j+352|0,426540)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Z;J[j+376>>2]=J[b+8>>2];c=J[b+4>>2];J[j+368>>2]=J[b>>2];J[j+372>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=j+72|0;da(1863,b|0,+(d|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break Y;J[195395]=0;d=b;b=K[j+83|0];c=b<<24>>24< -0;b=aa(1864,j+368|0,(c?J[j+72>>2]:d)|0,(c?J[j+76>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break X;J[j+392>>2]=J[b+8>>2];c=J[b+4>>2];J[j+384>>2]=J[b>>2];J[j+388>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+384|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break W;J[j+408>>2]=J[j+392>>2];J[j+392>>2]=0;b=J[j+388>>2];J[j+400>>2]=J[j+384>>2];J[j+404>>2]=b;J[j+384>>2]=0;J[j+388>>2]=0;J[195395]=0;b=j+60|0;da(1863,b|0,+(e|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break V;J[195395]=0;d= -b;b=K[j+71|0];c=b<<24>>24<0;b=aa(1864,j+400|0,(c?J[j+60>>2]:d)|0,(c?J[j+64>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break U;J[j+424>>2]=J[b+8>>2];c=J[b+4>>2];J[j+416>>2]=J[b>>2];J[j+420>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+416|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break T;J[j+440>>2]=J[j+424>>2];J[j+424>>2]=0;b=J[j+420>>2];J[j+432>>2]=J[j+416>>2];J[j+436>>2]=b;J[j+416>>2]=0;J[j+420>>2]=0;J[195395]=0;$(1811,j+432|0,76);b=J[195395];J[195395]=0;if((b|0)==1)break S; -J[j+456>>2]=J[j+440>>2];J[j+440>>2]=0;b=J[j+436>>2];J[j+448>>2]=J[j+432>>2];J[j+452>>2]=b;J[j+432>>2]=0;J[j+436>>2]=0;J[195395]=0;b=j+48|0;da(1863,b|0,+l,-1);c=J[195395];J[195395]=0;if((c|0)==1)break R;J[195395]=0;d=b;b=K[j+59|0];c=b<<24>>24<0;b=aa(1864,j+448|0,(c?J[j+48>>2]:d)|0,(c?J[j+52>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break Q;J[j+472>>2]=J[b+8>>2];c=J[b+4>>2];J[j+464>>2]=J[b>>2];J[j+468>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+464|0,32);b=J[195395];J[195395]= -0;if((b|0)==1)break P;J[j+488>>2]=J[j+472>>2];J[j+472>>2]=0;b=J[j+468>>2];J[j+480>>2]=J[j+464>>2];J[j+484>>2]=b;J[j+464>>2]=0;J[j+468>>2]=0;J[195395]=0;b=j+36|0;da(1863,b|0,+m,-1);c=J[195395];J[195395]=0;if((c|0)==1)break O;J[195395]=0;d=b;b=K[j+47|0];c=b<<24>>24<0;b=aa(1864,j+480|0,(c?J[j+36>>2]:d)|0,(c?J[j+40>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break N;J[j+16>>2]=J[b+8>>2];c=J[b+4>>2];J[j+8>>2]=J[b>>2];J[j+12>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,j+8|0,426584)| -0;c=J[195395];J[195395]=0;if((c|0)==1)break M;J[j+504>>2]=J[b+8>>2];c=J[b+4>>2];J[j+496>>2]=J[b>>2];J[j+500>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[j+19|0]<0)Kb(J[j+8>>2]);if(H[j+47|0]<0)Kb(J[j+36>>2]);if(H[j+491|0]<0)Kb(J[j+480>>2]);if(H[j+475|0]<0)Kb(J[j+464>>2]);if(H[j+59|0]<0)Kb(J[j+48>>2]);if(H[j+459|0]<0)Kb(J[j+448>>2]);if(H[j+443|0]<0)Kb(J[j+432>>2]);if(H[j+427|0]<0)Kb(J[j+416>>2]);if(H[j+71|0]<0)Kb(J[j+60>>2]);if(H[j+411|0]<0)Kb(J[j+400>>2]);if(H[j+395|0]<0)Kb(J[j+384>>2]);if(H[j+83| -0]<0)Kb(J[j+72>>2]);if(H[j+379|0]<0)Kb(J[j+368>>2]);if(H[j+363|0]<0)Kb(J[j+352>>2]);if(H[j+95|0]<0)Kb(J[j+84>>2]);if(H[j+347|0]<0)Kb(J[j+336>>2]);if(H[j+331|0]<0)Kb(J[j+320>>2]);if(H[j+107|0]<0)Kb(J[j+96>>2]);if(H[j+315|0]<0)Kb(J[j+304>>2]);if(H[j+299|0]<0)Kb(J[j+288>>2]);if(H[j+283|0]<0)Kb(J[j+272>>2]);if(H[j+119|0]<0)Kb(J[j+108>>2]);if(H[j+267|0]<0)Kb(J[j+256>>2]);if(H[j+251|0]<0)Kb(J[j+240>>2]);if(H[j+131|0]<0)Kb(J[j+120>>2]);if(H[j+235|0]<0)Kb(J[j+224>>2]);if(H[j+219|0]<0)Kb(J[j+208>>2]);if(H[j+ -203|0]<0)Kb(J[j+192>>2]);if(H[j+143|0]<0)Kb(J[j+132>>2]);if(H[j+187|0]<0)Kb(J[j+176>>2]);if(H[j+171|0]<0)Kb(J[j+160>>2]);if(H[j+155|0]<0)Kb(J[j+144>>2]);J[195395]=0;b=aa(1962,j+8|0,426412,j+496|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;J[j+488>>2]=0;J[j+480>>2]=0;J[j+484>>2]=0;J[195395]=0;H[j+468|0]=0;J[j+464>>2]=j+480;c=_(1078,24)|0;d=J[195395];J[195395]=0;pa:{qa:{if((d|0)!=1){J[j+484>>2]=c;J[j+480>>2]=c;J[195395]=0;J[j+488>>2]=c+24;d=ha(1957,j+488|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]= -0;if((e|0)!=1)break pa;h=Z()|0;J[j+484>>2]=c;break qa}h=Z()|0}Kc(j+464|0);Vb(b);break b}J[j+484>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=j+480|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;d=J[195395]; -J[195395]=0;if((d|0)==1)break e;J[j+464>>2]=a;J[j+468>>2]=4;J[j+472>>2]=-2147483640;d=J[106608];J[a+8>>2]=J[106607];J[a+12>>2]=d;d=J[106606];J[a>>2]=J[106605];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[j+448>>2]=0;H[j+459|0]=0;ia(1961,b|0,j+464|0,c|0,j+448|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[j+459|0]<0)Kb(J[j+448>>2]);if(H[j+475|0]<0)Kb(J[j+464>>2]);a=J[j+480>>2];if(a){i=a;g=J[j+484>>2];if((a|0)!=(g|0)){while(1){if(H[g-1|0]<0)Kb(J[g-12>>2]);b=g-24|0;if(H[g-13|0]<0)Kb(J[b>>2]);g=b;if((b| -0)!=(a|0))continue;break}i=J[j+480>>2]}J[j+484>>2]=a;Kb(i)}if(H[j+507|0]<0)Kb(J[j+496>>2]);xb=j+512|0;return}h=Z()|0;break h}h=Z()|0;break i}h=Z()|0;break j}h=Z()|0;break k}h=Z()|0;break l}h=Z()|0;break m}h=Z()|0;break n}h=Z()|0;break o}h=Z()|0;break p}h=Z()|0;break q}h=Z()|0;break r}h=Z()|0;break s}h=Z()|0;break t}h=Z()|0;break u}h=Z()|0;break v}h=Z()|0;break w}h=Z()|0;break x}h=Z()|0;break y}h=Z()|0;break z}h=Z()|0;break A}h=Z()|0;break B}h=Z()|0;break C}h=Z()|0;break D}h=Z()|0;break E}h=Z()|0; -break F}h=Z()|0;break G}h=Z()|0;break H}h=Z()|0;break I}h=Z()|0;break J}h=Z()|0;break K}h=Z()|0;break L}h=Z()|0;if(H[j+19|0]>=0)break L;Kb(J[j+8>>2])}if(H[j+47|0]>=0)break K;Kb(J[j+36>>2])}if(H[j+491|0]>=0)break J;Kb(J[j+480>>2])}if(H[j+475|0]>=0)break I;Kb(J[j+464>>2])}if(H[j+59|0]>=0)break H;Kb(J[j+48>>2])}if(H[j+459|0]>=0)break G;Kb(J[j+448>>2])}if(H[j+443|0]>=0)break F;Kb(J[j+432>>2])}if(H[j+427|0]>=0)break E;Kb(J[j+416>>2])}if(H[j+71|0]>=0)break D;Kb(J[j+60>>2])}if(H[j+411|0]>=0)break C;Kb(J[j+ -400>>2])}if(H[j+395|0]>=0)break B;Kb(J[j+384>>2])}if(H[j+83|0]>=0)break A;Kb(J[j+72>>2])}if(H[j+379|0]>=0)break z;Kb(J[j+368>>2])}if(H[j+363|0]>=0)break y;Kb(J[j+352>>2])}if(H[j+95|0]>=0)break x;Kb(J[j+84>>2])}if(H[j+347|0]>=0)break w;Kb(J[j+336>>2])}if(H[j+331|0]>=0)break v;Kb(J[j+320>>2])}if(H[j+107|0]>=0)break u;Kb(J[j+96>>2])}if(H[j+315|0]>=0)break t;Kb(J[j+304>>2])}if(H[j+299|0]>=0)break s;Kb(J[j+288>>2])}if(H[j+283|0]>=0)break r;Kb(J[j+272>>2])}if(H[j+119|0]>=0)break q;Kb(J[j+108>>2])}if(H[j+ -267|0]>=0)break p;Kb(J[j+256>>2])}if(H[j+251|0]>=0)break o;Kb(J[j+240>>2])}if(H[j+131|0]>=0)break n;Kb(J[j+120>>2])}if(H[j+235|0]>=0)break m;Kb(J[j+224>>2])}if(H[j+219|0]>=0)break l;Kb(J[j+208>>2])}if(H[j+203|0]>=0)break k;Kb(J[j+192>>2])}if(H[j+143|0]>=0)break j;Kb(J[j+132>>2])}if(H[j+187|0]>=0)break i;Kb(J[j+176>>2])}if(H[j+171|0]>=0)break h;Kb(J[j+160>>2])}if(H[j+155|0]>=0)break a;Kb(J[j+144>>2]);ba(h|0);B()}h=Z()|0;break b}h=Z()|0;break c}h=Z()|0;break c}h=Z()|0;if(H[j+459|0]<0)Kb(J[j+448>>2]); -if(H[j+475|0]>=0)break c;Kb(J[j+464>>2])}Hc(j+480|0)}if(H[j+507|0]>=0)break a;Kb(J[j+496>>2])}ba(h|0);B()}function fZ(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=xb-464|0;xb=d;a:{b:{c:{d:{e:{f:{b=J[a+80>>2];b=Ab[J[J[b>>2]+104>>2]](b)|0;g:{if(!b)break g;c=Bh(b,426492,428696,4);if(!c)break g;J[d+456>>2]=0;J[d+448>>2]=0;J[d+452>>2]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{b= -L[c+18>>1];if(b)while(1){h=J[c+32>>2]+(j<<4)|0;if(L[h>>1]>=2){i=0;while(1){f=i<<2;b=I[f+J[h+8>>2]>>1];e=I[c+22>>1];J[195395]=0;g=d+132|0;da(1863,g|0,+(((b|0)>(e|0)?b:e)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break pa;J[195395]=0;b=aa(1954,g|0,0,426356)|0;e=J[195395];J[195395]=0;if((e|0)==1)break oa;J[d+152>>2]=J[b+8>>2];e=J[b+4>>2];J[d+144>>2]=J[b>>2];J[d+148>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+144|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break na;J[d+168>>2]=J[d+152>> -2];J[d+152>>2]=0;b=J[d+148>>2];J[d+160>>2]=J[d+144>>2];J[d+164>>2]=b;J[d+144>>2]=0;J[d+148>>2]=0;b=I[c+24>>1];e=I[h+2>>1];J[195395]=0;g=d+120|0;da(1863,g|0,+(((b|0)<(e|0)?e:b)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break ma;J[195395]=0;b=K[d+131|0];e=b<<24>>24<0;b=aa(1864,d+160|0,(e?J[d+120>>2]:g)|0,(e?J[d+124>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break la;J[d+184>>2]=J[b+8>>2];e=J[b+4>>2];J[d+176>>2]=J[b>>2];J[d+180>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+176|0, -32);b=J[195395];J[195395]=0;if((b|0)==1)break ka;J[d+200>>2]=J[d+184>>2];J[d+184>>2]=0;b=J[d+180>>2];J[d+192>>2]=J[d+176>>2];J[d+196>>2]=b;J[d+176>>2]=0;J[d+180>>2]=0;b=I[(f+J[h+8>>2]|0)+2>>1];e=I[c+26>>1];J[195395]=0;g=d+108|0;da(1863,g|0,+(((b|0)>(e|0)?e:b)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break ja;J[195395]=0;b=K[d+119|0];e=b<<24>>24<0;b=aa(1864,d+192|0,(e?J[d+108>>2]:g)|0,(e?J[d+112>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break ia;J[d+216>>2]=J[b+8>>2];e=J[b+4>>2];J[d+208>>2]= -J[b>>2];J[d+212>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+208|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break ha;J[d+232>>2]=J[d+216>>2];J[d+216>>2]=0;b=J[d+212>>2];J[d+224>>2]=J[d+208>>2];J[d+228>>2]=b;J[d+208>>2]=0;J[d+212>>2]=0;b=I[c+24>>1];e=I[h+2>>1];J[195395]=0;g=d+96|0;da(1863,g|0,+(((b|0)<(e|0)?e:b)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break ga;J[195395]=0;b=K[d+107|0];e=b<<24>>24<0;b=aa(1864,d+224|0,(e?J[d+96>>2]:g)|0,(e?J[d+100>>2]:b)|0)|0;e=J[195395];J[195395]= -0;if((e|0)==1)break fa;J[d+248>>2]=J[b+8>>2];e=J[b+4>>2];J[d+240>>2]=J[b>>2];J[d+244>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ea;J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0;b=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=b;J[d+240>>2]=0;J[d+244>>2]=0;b=I[(f+J[h+8>>2]|0)+2>>1];e=I[c+26>>1];J[195395]=0;g=d+84|0;da(1863,g|0,+(((b|0)>(e|0)?e:b)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break da;J[195395]=0;b=K[d+95|0];e=b<<24>>24<0; -b=aa(1864,d+256|0,(e?J[d+84>>2]:g)|0,(e?J[d+88>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break ca;J[d+280>>2]=J[b+8>>2];e=J[b+4>>2];J[d+272>>2]=J[b>>2];J[d+276>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+272|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break ba;J[d+296>>2]=J[d+280>>2];J[d+280>>2]=0;b=J[d+276>>2];J[d+288>>2]=J[d+272>>2];J[d+292>>2]=b;J[d+272>>2]=0;J[d+276>>2]=0;b=I[c+28>>1];e=I[h+4>>1];J[195395]=0;g=d+72|0;da(1863,g|0,+(((b|0)<(e|0)?b:e)|0),-1);b=J[195395];J[195395]= -0;if((b|0)==1)break aa;J[195395]=0;b=K[d+83|0];e=b<<24>>24<0;b=aa(1864,d+288|0,(e?J[d+72>>2]:g)|0,(e?J[d+76>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break $;J[d+312>>2]=J[b+8>>2];e=J[b+4>>2];J[d+304>>2]=J[b>>2];J[d+308>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+304|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break _;J[d+328>>2]=J[d+312>>2];J[d+312>>2]=0;b=J[d+308>>2];J[d+320>>2]=J[d+304>>2];J[d+324>>2]=b;J[d+304>>2]=0;J[d+308>>2]=0;b=I[f+J[h+8>>2]>>1];e=I[c+22>>1];J[195395]= -0;g=d+60|0;da(1863,g|0,+(((b|0)>(e|0)?b:e)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break Z;J[195395]=0;b=K[d+71|0];e=b<<24>>24<0;b=aa(1864,d+320|0,(e?J[d+60>>2]:g)|0,(e?J[d+64>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Y;J[d+344>>2]=J[b+8>>2];e=J[b+4>>2];J[d+336>>2]=J[b>>2];J[d+340>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+336|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break X;J[d+360>>2]=J[d+344>>2];J[d+344>>2]=0;b=J[d+340>>2];J[d+352>>2]=J[d+336>>2];J[d+356>>2]=b; -J[d+336>>2]=0;J[d+340>>2]=0;b=I[c+28>>1];e=I[h+4>>1];J[195395]=0;g=d+48|0;da(1863,g|0,+(((b|0)<(e|0)?b:e)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break W;J[195395]=0;b=K[d+59|0];e=b<<24>>24<0;b=aa(1864,d+352|0,(e?J[d+48>>2]:g)|0,(e?J[d+52>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break V;J[d+376>>2]=J[b+8>>2];e=J[b+4>>2];J[d+368>>2]=J[b>>2];J[d+372>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+368|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break U;J[d+392>>2]=J[d+376>>2];J[d+ -376>>2]=0;b=J[d+372>>2];J[d+384>>2]=J[d+368>>2];J[d+388>>2]=b;J[d+368>>2]=0;J[d+372>>2]=0;b=I[f+J[h+8>>2]>>1];f=I[c+22>>1];J[195395]=0;e=d+36|0;da(1863,e|0,+(((b|0)>(f|0)?b:f)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break T;J[195395]=0;b=K[d+47|0];f=b<<24>>24<0;b=aa(1864,d+384|0,(f?J[d+36>>2]:e)|0,(f?J[d+40>>2]:b)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break S;J[d+408>>2]=J[b+8>>2];f=J[b+4>>2];J[d+400>>2]=J[b>>2];J[d+404>>2]=f;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+400|0,44); -b=J[195395];J[195395]=0;if((b|0)==1)break R;J[d+424>>2]=J[d+408>>2];J[d+408>>2]=0;b=J[d+404>>2];J[d+416>>2]=J[d+400>>2];J[d+420>>2]=b;J[d+400>>2]=0;J[d+404>>2]=0;b=I[c+24>>1];f=I[h+2>>1];J[195395]=0;e=d+24|0;da(1863,e|0,+(((b|0)<(f|0)?f:b)|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break Q;J[195395]=0;b=K[d+35|0];f=b<<24>>24<0;b=aa(1864,d+416|0,(f?J[d+24>>2]:e)|0,(f?J[d+28>>2]:b)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break P;J[d+440>>2]=J[b+8>>2];f=J[b+4>>2];J[d+432>>2]=J[b>>2];J[d+436>>2]=f;J[b>> -2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+432|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break O;J[d+8>>2]=J[d+440>>2];J[d+440>>2]=0;f=J[d+436>>2];b=J[d+432>>2];J[d>>2]=b;J[d+4>>2]=f;J[d+432>>2]=0;J[d+436>>2]=0;J[195395]=0;e=b;b=H[d+11|0];f=(b|0)<0;aa(1864,d+448|0,(f?e:d)|0,(f?J[d+4>>2]:b&255)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break N;if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+443|0]<0)Kb(J[d+432>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);if(H[d+427|0]<0)Kb(J[d+416>>2]);if(H[d+411|0]<0)Kb(J[d+400>>2]); -if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+395|0]<0)Kb(J[d+384>>2]);if(H[d+379|0]<0)Kb(J[d+368>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+363|0]<0)Kb(J[d+352>>2]);if(H[d+347|0]<0)Kb(J[d+336>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+331|0]<0)Kb(J[d+320>>2]);if(H[d+315|0]<0)Kb(J[d+304>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+299|0]<0)Kb(J[d+288>>2]);if(H[d+283|0]<0)Kb(J[d+272>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]); -if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+119|0]<0)Kb(J[d+108>>2]);if(H[d+203|0]<0)Kb(J[d+192>>2]);if(H[d+187|0]<0)Kb(J[d+176>>2]);if(H[d+131|0]<0)Kb(J[d+120>>2]);if(H[d+171|0]<0)Kb(J[d+160>>2]);if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+143|0]<0)Kb(J[d+132>>2]);i=i+1|0;if(i>>>0>1]>>>1>>>0)continue;break}b=L[c+18>>1]}j=j+1|0;if(j>>>0>16>>>0)continue;break}J[195395]=0;b=aa(1962,d|0,426412,d+448|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break f;J[d+440>>2]=0;J[d+ -432>>2]=0;J[d+436>>2]=0;J[195395]=0;H[d+420|0]=0;J[d+416>>2]=d+432;c=_(1078,24)|0;h=J[195395];J[195395]=0;if((h|0)==1)break j;J[d+436>>2]=c;J[d+432>>2]=c;J[195395]=0;J[d+440>>2]=c+24;h=ha(1957,d+440|0,b|0,b+24|0,c|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break h;a=Z()|0;J[d+436>>2]=c;break i}a=Z()|0;break a}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a= -Z()|0;break w}a=Z()|0;break x}a=Z()|0;break y}a=Z()|0;break z}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;break C}a=Z()|0;break D}a=Z()|0;break E}a=Z()|0;break F}a=Z()|0;break G}a=Z()|0;break H}a=Z()|0;break I}a=Z()|0;break J}a=Z()|0;break K}a=Z()|0;break L}a=Z()|0;break M}a=Z()|0;if(H[d+11|0]>=0)break M;Kb(J[d>>2])}if(H[d+443|0]>=0)break L;Kb(J[d+432>>2])}if(H[d+35|0]>=0)break K;Kb(J[d+24>>2])}if(H[d+427|0]>=0)break J;Kb(J[d+416>>2])}if(H[d+411|0]>=0)break I;Kb(J[d+400>>2])}if(H[d+47|0]>=0)break H;Kb(J[d+ -36>>2])}if(H[d+395|0]>=0)break G;Kb(J[d+384>>2])}if(H[d+379|0]>=0)break F;Kb(J[d+368>>2])}if(H[d+59|0]>=0)break E;Kb(J[d+48>>2])}if(H[d+363|0]>=0)break D;Kb(J[d+352>>2])}if(H[d+347|0]>=0)break C;Kb(J[d+336>>2])}if(H[d+71|0]>=0)break B;Kb(J[d+60>>2])}if(H[d+331|0]>=0)break A;Kb(J[d+320>>2])}if(H[d+315|0]>=0)break z;Kb(J[d+304>>2])}if(H[d+83|0]>=0)break y;Kb(J[d+72>>2])}if(H[d+299|0]>=0)break x;Kb(J[d+288>>2])}if(H[d+283|0]>=0)break w;Kb(J[d+272>>2])}if(H[d+95|0]>=0)break v;Kb(J[d+84>>2])}if(H[d+267| -0]>=0)break u;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break t;Kb(J[d+240>>2])}if(H[d+107|0]>=0)break s;Kb(J[d+96>>2])}if(H[d+235|0]>=0)break r;Kb(J[d+224>>2])}if(H[d+219|0]>=0)break q;Kb(J[d+208>>2])}if(H[d+119|0]>=0)break p;Kb(J[d+108>>2])}if(H[d+203|0]>=0)break o;Kb(J[d+192>>2])}if(H[d+187|0]>=0)break n;Kb(J[d+176>>2])}if(H[d+131|0]>=0)break m;Kb(J[d+120>>2])}if(H[d+171|0]>=0)break l;Kb(J[d+160>>2])}if(H[d+155|0]>=0)break k;Kb(J[d+144>>2])}if(H[d+143|0]>=0)break a;Kb(J[d+132>>2]);break a}a=Z()|0}Kc(d+ -416|0);Vb(b);break a}J[d+436>>2]=h;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+432|0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[d+416>>2]=a;J[d+420>>2]=4;J[d+424>>2]=-2147483640;h=J[106608];J[a+8>>2]=J[106607];J[a+12>>2]=h;h= -J[106606];J[a>>2]=J[106605];J[a+4>>2]=h;J[a+16>>2]=0;J[195395]=0;J[d+400>>2]=0;H[d+411|0]=0;ia(1961,b|0,d+416|0,c|0,d+400|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+411|0]<0)Kb(J[d+400>>2]);if(H[d+427|0]<0)Kb(J[d+416>>2]);c=J[d+432>>2];if(c){a=J[d+436>>2];b=c;if((a|0)!=(b|0)){while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);b=a-24|0;if(H[a-13|0]<0)Kb(J[b>>2]);a=b;if((b|0)!=(c|0))continue;break}b=J[d+432>>2]}J[d+436>>2]=c;Kb(b)}if(H[d+459|0]>=0)break g;Kb(J[d+448>>2])}xb=d+464|0;return}a=Z()|0;break a}a= -Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+411|0]<0)Kb(J[d+400>>2]);if(H[d+427|0]>=0)break b;Kb(J[d+416>>2])}Hc(d+432|0)}if(H[d+459|0]<0)Kb(J[d+448>>2]);ba(a|0);B()}function et(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0;a:{d=a+4|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<2)break a;e=K[d|0]|K[d+1|0]<<8;b:{if(!e)break b;if(jH(((e<<8|e>>>8)&65535)+a|0,b))break b;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>> -2]=e+1;if(!K[b+28|0])break a;H[d|0]=0;H[d+1|0]=0}d=a+6|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<2)break a;e=K[d|0]|K[d+1|0]<<8;c:{if(!e)break c;if(iH(((e<<8|e>>>8)&65535)+a|0,b))break c;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[d|0]=0;H[d+1|0]=0}e=J[b+12>>2];t=a+8|0;d=J[b+4>>2];if(e>>>0>>0)break a;s=J[b+8>>2];if(s-t>>>0<2)break a;k=K[t|0]|K[t+1|0]<<8;d:{if(!k)break d;q=((k<<8|k>>>8)&65535)+a|0;e:{if(e>>>0>>0|s-q>>>0<2)break e;k=q+2|0;if(e>>>0>>0)break e; -d=K[q|0]|K[q+1|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>s-k>>>0)break e;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break e;c=1;d=K[q|0]|K[q+1|0]<<8;if(!d)break e;c=(d<<8|d>>>8)&65535;E=c>>>0<=1?1:c;while(1){c=0;e=J[b+12>>2];u=((B<<1)+q|0)+2|0;d=J[b+4>>2];if(e>>>0>>0)break e;k=J[b+8>>2];if(k-u>>>0<2)break e;c=K[u|0]|K[u+1|0]<<8;f:{if(!c)break f;n=0;s=0;l=((c<<8|c>>>8)&65535)+q|0;g:{if(e>>>0>>0|k-l>>>0<6)break g;j=l+4|0;if(e>>>0>>0|k-j>>>0<2)break g;w=l+6|0;if(e>>>0>>0)break g;c= -K[l+4|0]|K[l+5|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>k-w>>>0)break g;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break g;c=K[j|0]|K[j+1|0]<<8;D=c<<8|c>>>8;C=D&65535;c=C+J[b+20>>2]|0;J[b+20>>2]=c;if((c|0)>16383)break g;c=J[b+8>>2];d=J[b+12>>2];e=J[b+4>>2];if(K[l+3|0]&16){k=(j+(C<<1)|0)+2|0;if(d>>>0>>0|c-k>>>0<2)break g}if(d>>>0>>0|c-j>>>0<2|M[b+12>>2]>2]>>>0)break g;c=K[j|0]|K[j+1|0]<<8;d=((c<<8|c>>>8)&65535)<<1;if(d>>>0>J[b+8>>2]-w>>>0)break g;c=K[l|0]|K[l+1|0]<<8;d=J[b+16>>2]- -d|0;J[b+16>>2]=d;if((d|0)<=0)break g;d=K[j|0]|K[j+1|0]<<8;if(d){k=(c<<8|c>>>8)&65535;c=(d<<8|d>>>8)&65535;F=c>>>0<=1?1:c;while(1){v=(j+(n<<1)|0)+2|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-v>>>0<2)break g;c=K[v|0]|K[v+1|0]<<8;h:{if(!c)break h;e=((c<<8|c>>>8)&65535)+l|0;c=k;i:{j:{while(1){k:{if((c|0)!=7){d=1;l:switch(c-1|0){case 0:d=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;d=1;m:{n:{c=K[e|0]|K[e+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break m;case 0:break n;default:break j}}c= -0;g=J[b+12>>2];d=J[b+4>>2];o:{if(g>>>0>>0)break o;h=J[b+8>>2];if(h-e>>>0<6)break o;f=e+2|0;if(g>>>0>>0|h-f>>>0<2)break o;d=169776;g=K[f|0]|K[f+1|0]<<8;p:{if(!g)break p;if(!Ld(b,((g<<8|g>>>8)&65535)+e|0)){e=J[b+32>>2];if(e>>>0>31)break o;J[b+32>>2]=e+1;if(!K[b+28|0])break o;H[f|0]=0;H[f+1|0]=0;break p}c=K[f|0]|K[f+1|0]<<8;if(!c)break p;d=((c<<8|c>>>8)&65535)+e|0}c=-1;q:{r:{s:{e=K[d|0]|K[d+1|0]<<8;switch(((e<<8|e>>>8)&65535)-1|0){case 1:break r;case 0:break s;default:break q}}c=K[d+2|0]|K[d+ -3|0]<<8;c=(c<<8|c>>>8)&65535;break q}c=K[d+2|0]|K[d+3|0]<<8;if(!c){c=0;break q}e=d+4|0;c=P((c<<8|c>>>8)&65535,6)-6|0;f=(c>>>0)/6|0;t:{if(c>>>0<6){c=0;break t}g=f+1&2147483646;c=0;d=0;while(1){i=c;c=K[e+2|0]|K[e+3|0]<<8;c=(c<<8|c>>>8)&65535;h=K[e|0]|K[e+1|0]<<8;h=(h<<8|h>>>8)&65535;i=i+(c>>>0>=h>>>0?(c-h|0)+1|0:0)|0;c=K[e+8|0]|K[e+9|0]<<8;c=(c<<8|c>>>8)&65535;h=K[e+6|0]|K[e+7|0]<<8;h=(h<<8|h>>>8)&65535;c=i+(c>>>0>=h>>>0?(c-h|0)+1|0:0)|0;e=e+12|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(f&1)break q; -i=c;c=K[e+2|0]|K[e+3|0]<<8;c=(c<<8|c>>>8)&65535;d=K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535;c=i+(c>>>0>=d>>>0?(c-d|0)+1|0:0)|0}d=J[b+16>>2];e=c>>>1|0;c=d>>>0>e>>>0&(d|0)>=0;J[b+16>>2]=c?d-e|0:-1}break i}d=0;c=e+2|0;u:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break u;f=K[c|0]|K[c+1|0]<<8;v:{if(!f)break v;if(Ld(b,((f<<8|f>>>8)&65535)+e|0))break v;f=J[b+32>>2];if(f>>>0>31)break u;J[b+32>>2]=f+1;if(!K[b+28|0])break u;H[c|0]=0;H[c+1|0]=0}g=J[b+12>>2];c=e+4|0;f=J[b+4>>2];if(g>>>0>>0)break u;h= -J[b+8>>2];if(h-c>>>0<2)break u;c=e+6|0;if(c-f>>>0>g>>>0)break u;i=h-c|0;c=K[e+4|0]|K[e+5|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(i>>>0>>0)break u;c=J[b+16>>2]-c|0;J[b+16>>2]=c;d=(c|0)>0}c=d;break i;case 1:d=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;d=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;c=eH(e,b);break i;case 2:d=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;d=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;c=eH(e,b);break i;case 3:d=0;c=J[b+12>>2];f=J[b+4>>2];if(c>>>0>>0)break j; -g=J[b+8>>2];if(g-e>>>0<2)break j;d=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;i=xb-16|0;xb=i;w:{x:{d=c;c=e+2|0;if(d>>>0>>0|g-c>>>0<2)break x;d=K[c|0]|K[c+1|0]<<8;y:{if(!d)break y;if(Ld(b,((d<<8|d>>>8)&65535)+e|0))break y;d=J[b+32>>2];if(d>>>0>31)break x;J[b+32>>2]=d+1;if(!K[b+28|0])break x;H[c|0]=0;H[c+1|0]=0}J[i+12>>2]=e;c=0;g=J[b+12>>2];d=e+4|0;f=J[b+4>>2];if(g>>>0>>0)break w;h=J[b+8>>2];if(h-d>>>0<2)break w;o=e+6|0;if(g>>>0>>0)break w;f=K[e+4|0]|K[e+5|0]<<8;f=((f<<8|f>>>8)&65535)<<1; -if(f>>>0>h-o>>>0)break w;f=J[b+16>>2]-f|0;J[b+16>>2]=f;if((f|0)<=0)break w;c=1;d=K[d|0]|K[d+1|0]<<8;if(!d)break w;c=(d<<8|d>>>8)&65535;G=c>>>0<=1?1:c;o=0;while(1){c=0;x=xb-16|0;xb=x;g=((o<<1)+e|0)+6|0;z:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-g>>>0<2)break z;f=J[i+12>>2];d=K[g|0]|K[g+1|0]<<8;A:{if(!d)break A;f=f+((d<<8|d>>>8)&65535)|0;J[x+12>>2]=f;B:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-f>>>0<2)break B;d=f+2|0;if(M[b+12>>2]>2]>>>0)break B;h=J[b+8>>2]-d|0;d=K[f|0]|K[f+1|0]<<8;d=((d<<8| -d>>>8)&65535)<<1;if(h>>>0>>0)break B;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break B;d=K[f|0]|K[f+1|0]<<8;if(!d)break A;d=(d<<8|d>>>8)&65535;I=d>>>0<=1?1:d;y=0;while(1){d=0;z=J[b+12>>2];h=(f+(y<<1)|0)+2|0;m=J[b+4>>2];C:{if(z>>>0>>0)break C;A=J[b+8>>2];if(A-h>>>0<2)break C;p=J[x+12>>2];d=1;r=K[h|0]|K[h+1|0]<<8;D:{if(!r)break D;r=p+((r<<8|r>>>8)&65535)|0;E:{if(z>>>0>>0|A-r>>>0<2)break E;p=r+2|0;if(z>>>0>>0|A-p>>>0<2)break E;p=K[p|0]|K[p+1|0]<<8;if(!p)break D;d=r+4|0;if(z>>>0>> -0)break E;m=A-d|0;d=(((p<<8|p>>>8)&65535)<<1)-2|0;if(m>>>0>>0)break E;m=J[b+16>>2]-d|0;J[b+16>>2]=m;d=1;if((m|0)>0)break D}d=0;m=J[b+32>>2];if(m>>>0>31)break C;J[b+32>>2]=m+1;if(!K[b+28|0])break D;H[h|0]=0;H[h+1|0]=0;d=1}}if(!d)break B;y=y+1|0;if((I|0)!=(y|0))continue;break}break A}d=J[b+32>>2];if(d>>>0>31)break z;J[b+32>>2]=d+1;if(!K[b+28|0])break z;H[g|0]=0;H[g+1|0]=0}c=1}xb=x+16|0;if(!c)break w;o=o+1|0;if((G|0)!=(o|0))continue;break}break w}c=0}xb=i+16|0;break i;case 4:d=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;d=1;F:{G:{H:{c=K[e|0]|K[e+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break F;case 1:break G;case 0:break H;default:break j}}c=dH(e,b);break i}c=cH(e,b);break i}c=bH(e,b);break i;case 7:break k;case 5:break l;default:break j}d=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break j;d=1;I:{J:{K:{c=K[e|0]|K[e+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break I;case 1:break J;case 0:break K;default:break j}}c=aH(e,b);break i}c=$G(e,b);break i}c=_G(e,b);break i}c= -0;g=M[b+12>>2]>2]>>>0;if(g)break i;f=J[b+8>>2]-e|0;if(f>>>0<2)break i;d=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;if(g)break i;if(f>>>0<8)break i;d=0;c=K[e+2|0]|K[e+3|0]<<8;if((c|0)==1792)break j;c=(c<<8|c>>>8)&65535;d=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);if(d)e=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+e|0;else e=169776;continue}break}d=0;c=J[b+12>>2];f=J[b+4>>2];if(c>>>0>>0)break j;g=J[b+8>>2];if(g-e>>>0<2)break j;d=1;if((K[e|0]|K[e+1|0]<<8)!=256)break j;d=0;i=c;c=e+2|0;L:{if(i>>> -0>>0|g-c>>>0<2)break L;f=K[c|0]|K[c+1|0]<<8;M:{if(!f)break M;if(Ld(b,((f<<8|f>>>8)&65535)+e|0))break M;f=J[b+32>>2];if(f>>>0>31)break L;J[b+32>>2]=f+1;if(!K[b+28|0])break L;H[c|0]=0;H[c+1|0]=0}g=J[b+12>>2];f=e+4|0;c=J[b+4>>2];if(g>>>0>>0)break L;h=J[b+8>>2];if(h-f>>>0<2)break L;i=e+6|0;if(g>>>0>>0)break L;c=K[e+4|0]|K[e+5|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>h-i>>>0)break L;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break L;N:{c=K[f|0]|K[f+1|0]<<8;if(c){c=(c<<8|c>>>8)&65535;i=c>>> -0<=1?1:c;c=0;while(1){g=((c<<1)+e|0)+6|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-g>>>0<2)break N;h=K[g|0]|K[g+1|0]<<8;O:{if(!h)break O;if(Ld(b,((h<<8|h>>>8)&65535)+e|0))break O;h=J[b+32>>2];if(h>>>0>31)break N;J[b+32>>2]=h+1;if(!K[b+28|0])break N;H[g|0]=0;H[g+1|0]=0}c=c+1|0;if((i|0)!=(c|0))continue;break}}h=J[b+12>>2];c=K[f|0]|K[f+1|0]<<8;c=f+(((c<<8|c>>>8)&65535)<<1)|0;f=c+2|0;g=J[b+4>>2];if(h>>>0>>0)break L;i=J[b+8>>2];if(i-f>>>0<2)break L;o=c+4|0;if(h>>>0>>0)break L;c=K[c+2|0]|K[c+3| -0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>i-o>>>0)break L;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break L;c=K[f|0]|K[f+1|0]<<8;if(c){c=(c<<8|c>>>8)&65535;i=c>>>0<=1?1:c;c=0;while(1){g=(f+(c<<1)|0)+2|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-g>>>0<2)break N;h=K[g|0]|K[g+1|0]<<8;P:{if(!h)break P;if(Ld(b,((h<<8|h>>>8)&65535)+e|0))break P;h=J[b+32>>2];if(h>>>0>31)break N;J[b+32>>2]=h+1;if(!K[b+28|0])break N;H[g|0]=0;H[g+1|0]=0}c=c+1|0;if((i|0)!=(c|0))continue;break}}g=J[b+12>>2];c=K[f|0]|K[f+1|0]<<8; -c=f+(((c<<8|c>>>8)&65535)<<1)|0;e=c+2|0;f=J[b+4>>2];if(g>>>0>>0)break L;h=J[b+8>>2];if(h-e>>>0<2)break L;e=c+4|0;if(e-f>>>0>g>>>0)break L;c=K[c+2|0]|K[c+3|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>h-e>>>0)break L;c=J[b+16>>2]-c|0;J[b+16>>2]=c;d=(c|0)>0;break L}}}c=d}if(c)break h;c=J[b+32>>2];if(c>>>0>31)break g;J[b+32>>2]=c+1;if(!K[b+28|0])break g;H[v|0]=0;H[v+1|0]=0}n=n+1|0;if((F|0)!=(n|0))continue;break}}s=1;if(J[b+32>>2]|(K[l|0]|K[l+1|0]<<8)!=1792)break g;d=169776;c=0;e=K[j|0]|K[j+1|0]<<8? -w:169776;e=K[e|0]|K[e+1|0]<<8;if(e)d=((e<<8|e>>>8)&65535)+l|0;if((K[d|0]|K[d+1|0]<<8)==256){c=K[d+2|0]|K[d+3|0]<<8;c=(c<<8|c>>>8)&65535}d=1;if((D&65535)>>>0<2)break g;while(1){n=169776;e=K[j|0]|K[j+1|0]<<8;e=((e<<8|e>>>8)&65535)>>>0<=d>>>0?169776:(j+(d<<1)|0)+2|0;e=K[e|0]|K[e+1|0]<<8;if(e)n=((e<<8|e>>>8)&65535)+l|0;e=0;if((K[n|0]|K[n+1|0]<<8)==256){e=K[n+2|0]|K[n+3|0]<<8;e=(e<<8|e>>>8)&65535}s=(c|0)==(e|0);if((c|0)!=(e|0))break g;d=d+1|0;if((C|0)!=(d|0))continue;break}}if(s)break f;c=0;d=J[b+32>> -2];if(d>>>0>31)break e;J[b+32>>2]=d+1;if(!K[b+28|0])break e;H[u|0]=0;H[u+1|0]=0}c=1;B=B+1|0;if((E|0)!=(B|0))continue;break}}if(c)break d;c=J[b+32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;if(!K[b+28|0])break a;H[t|0]=0;H[t+1|0]=0}c=1;d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);Q:{if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0<65537)break Q;d=a+10|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<4|K[d|0]&128)break a;e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!e)break Q;if(hH((e<<24|(e& -65280)<<8|(e>>>8&65280|e>>>24))+a|0,b))break Q;a=J[b+32>>2];if(a>>>0>31)break a;J[b+32>>2]=a+1;c=0;if(!K[b+28|0])break Q;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;c=1}return c}return 0}function f2(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;d=xb-496|0;xb=d;J[d+488>>2]=0;J[d+480>>2]=0;J[d+484>>2]=0;g=d+472|0;b=g;J[b>>2]=0;J[b+4>>2]=0;h=d+464|0;b=h;J[b>>2]=0;J[b+4>>2]=0;j=d+456|0;b=j;J[b>>2]=0;J[b+4>>2]=0;J[d+448>>2]=0;J[d+452>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{b= -J[c>>2];k=J[c+4>>2];if((b|0)!=(k|0))while(1){m=O[b+16>>3];n=O[b+24>>3];i=O[b>>3];l=O[b+8>>3];O[d+456>>3]=l;O[d+448>>3]=i;O[d+472>>3]=l+n;O[d+464>>3]=i+m;c=J[a+80>>2];e=J[J[c>>2]+72>>2];J[195395]=0;c=ca(e|0,c|0,2)|0;e=J[195395];J[195395]=0;if((e|0)==1)break ia;J[195395]=0;Yd(c,d+448|0,j);c=J[195395];J[195395]=0;if((c|0)==1)break ia;c=J[a+80>>2];e=J[J[c>>2]+72>>2];J[195395]=0;c=ca(e|0,c|0,2)|0;e=J[195395];J[195395]=0;if((e|0)==1)break ia;J[195395]=0;Yd(c,h,g);c=J[195395];J[195395]=0;if((c|0)==1)break ia; -i=O[d+448>>3];J[195395]=0;c=d+132|0;da(1863,c|0,+i,-1);e=J[195395];J[195395]=0;if((e|0)==1)break ha;J[195395]=0;c=aa(1954,c|0,0,398272)|0;e=J[195395];J[195395]=0;if((e|0)==1)break ga;J[d+152>>2]=J[c+8>>2];e=J[c+4>>2];J[d+144>>2]=J[c>>2];J[d+148>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+144|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break fa;J[d+168>>2]=J[d+152>>2];J[d+152>>2]=0;c=J[d+148>>2];J[d+160>>2]=J[d+144>>2];J[d+164>>2]=c;J[d+144>>2]=0;J[d+148>>2]=0;J[195395]=0;c=d+120|0; -da(1863,c|0,+O[d+456>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break ea;J[195395]=0;f=c;c=K[d+131|0];e=c<<24>>24<0;c=aa(1864,d+160|0,(e?J[d+120>>2]:f)|0,(e?J[d+124>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break da;J[d+184>>2]=J[c+8>>2];e=J[c+4>>2];J[d+176>>2]=J[c>>2];J[d+180>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=ca(1858,d+176|0,401744)|0;e=J[195395];J[195395]=0;if((e|0)==1)break ca;J[d+200>>2]=J[c+8>>2];e=J[c+4>>2];J[d+192>>2]=J[c>>2];J[d+196>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+ -8>>2]=0;J[195395]=0;c=d+108|0;da(1863,c|0,+O[d+464>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break ba;J[195395]=0;f=c;c=K[d+119|0];e=c<<24>>24<0;c=aa(1864,d+192|0,(e?J[d+108>>2]:f)|0,(e?J[d+112>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break aa;J[d+216>>2]=J[c+8>>2];e=J[c+4>>2];J[d+208>>2]=J[c>>2];J[d+212>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+208|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break $;J[d+232>>2]=J[d+216>>2];J[d+216>>2]=0;c=J[d+212>>2];J[d+224>>2]=J[d+208>> -2];J[d+228>>2]=c;J[d+208>>2]=0;J[d+212>>2]=0;J[195395]=0;c=d+96|0;da(1863,c|0,+O[d+456>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break _;J[195395]=0;f=c;c=K[d+107|0];e=c<<24>>24<0;c=aa(1864,d+224|0,(e?J[d+96>>2]:f)|0,(e?J[d+100>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Z;J[d+248>>2]=J[c+8>>2];e=J[c+4>>2];J[d+240>>2]=J[c>>2];J[d+244>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+240|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break Y;J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0; -c=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=c;J[d+240>>2]=0;J[d+244>>2]=0;J[195395]=0;c=d+84|0;da(1863,c|0,+O[d+464>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break X;J[195395]=0;f=c;c=K[d+95|0];e=c<<24>>24<0;c=aa(1864,d+256|0,(e?J[d+84>>2]:f)|0,(e?J[d+88>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break W;J[d+280>>2]=J[c+8>>2];e=J[c+4>>2];J[d+272>>2]=J[c>>2];J[d+276>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+272|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break V;J[d+296>> -2]=J[d+280>>2];J[d+280>>2]=0;c=J[d+276>>2];J[d+288>>2]=J[d+272>>2];J[d+292>>2]=c;J[d+272>>2]=0;J[d+276>>2]=0;J[195395]=0;c=d+72|0;da(1863,c|0,+O[d+472>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break U;J[195395]=0;f=c;c=K[d+83|0];e=c<<24>>24<0;c=aa(1864,d+288|0,(e?J[d+72>>2]:f)|0,(e?J[d+76>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break T;J[d+312>>2]=J[c+8>>2];e=J[c+4>>2];J[d+304>>2]=J[c>>2];J[d+308>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+304|0,32);c=J[195395];J[195395]= -0;if((c|0)==1)break S;J[d+328>>2]=J[d+312>>2];J[d+312>>2]=0;c=J[d+308>>2];J[d+320>>2]=J[d+304>>2];J[d+324>>2]=c;J[d+304>>2]=0;J[d+308>>2]=0;J[195395]=0;c=d+60|0;da(1863,c|0,+O[d+448>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break R;J[195395]=0;f=c;c=K[d+71|0];e=c<<24>>24<0;c=aa(1864,d+320|0,(e?J[d+60>>2]:f)|0,(e?J[d+64>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Q;J[d+344>>2]=J[c+8>>2];e=J[c+4>>2];J[d+336>>2]=J[c>>2];J[d+340>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+ -336|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break P;J[d+360>>2]=J[d+344>>2];J[d+344>>2]=0;c=J[d+340>>2];J[d+352>>2]=J[d+336>>2];J[d+356>>2]=c;J[d+336>>2]=0;J[d+340>>2]=0;J[195395]=0;c=d+48|0;da(1863,c|0,+O[d+472>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break O;J[195395]=0;f=c;c=K[d+59|0];e=c<<24>>24<0;c=aa(1864,d+352|0,(e?J[d+48>>2]:f)|0,(e?J[d+52>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break N;J[d+376>>2]=J[c+8>>2];e=J[c+4>>2];J[d+368>>2]=J[c>>2];J[d+372>>2]=e;J[c>>2]=0;J[c+4>>2]=0; -J[c+8>>2]=0;J[195395]=0;$(1811,d+368|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break M;J[d+392>>2]=J[d+376>>2];J[d+376>>2]=0;c=J[d+372>>2];J[d+384>>2]=J[d+368>>2];J[d+388>>2]=c;J[d+368>>2]=0;J[d+372>>2]=0;J[195395]=0;c=d+36|0;da(1863,c|0,+O[d+448>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break L;J[195395]=0;f=c;c=K[d+47|0];e=c<<24>>24<0;c=aa(1864,d+384|0,(e?J[d+36>>2]:f)|0,(e?J[d+40>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break K;J[d+408>>2]=J[c+8>>2];e=J[c+4>>2];J[d+400>>2]=J[c>>2];J[d+ -404>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+400|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break J;J[d+424>>2]=J[d+408>>2];J[d+408>>2]=0;c=J[d+404>>2];J[d+416>>2]=J[d+400>>2];J[d+420>>2]=c;J[d+400>>2]=0;J[d+404>>2]=0;J[195395]=0;c=d+24|0;da(1863,c|0,+O[d+456>>3],-1);e=J[195395];J[195395]=0;if((e|0)==1)break I;J[195395]=0;f=c;c=K[d+35|0];e=c<<24>>24<0;c=aa(1864,d+416|0,(e?J[d+24>>2]:f)|0,(e?J[d+28>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break H;J[d+440>>2]=J[c+8>>2];e=J[c+ -4>>2];J[d+432>>2]=J[c>>2];J[d+436>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+432|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break G;J[d+8>>2]=J[d+440>>2];J[d+440>>2]=0;e=J[d+436>>2];c=J[d+432>>2];J[d>>2]=c;J[d+4>>2]=e;J[d+432>>2]=0;J[d+436>>2]=0;J[195395]=0;f=c;c=H[d+11|0];e=(c|0)<0;aa(1864,d+480|0,(e?f:d)|0,(e?J[d+4>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break F;if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+443|0]<0)Kb(J[d+432>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);if(H[d+427|0]<0)Kb(J[d+ -416>>2]);if(H[d+411|0]<0)Kb(J[d+400>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+395|0]<0)Kb(J[d+384>>2]);if(H[d+379|0]<0)Kb(J[d+368>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+363|0]<0)Kb(J[d+352>>2]);if(H[d+347|0]<0)Kb(J[d+336>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+331|0]<0)Kb(J[d+320>>2]);if(H[d+315|0]<0)Kb(J[d+304>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+299|0]<0)Kb(J[d+288>>2]);if(H[d+283|0]<0)Kb(J[d+272>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+251|0]<0)Kb(J[d+ -240>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+119|0]<0)Kb(J[d+108>>2]);if(H[d+203|0]<0)Kb(J[d+192>>2]);if(H[d+187|0]<0)Kb(J[d+176>>2]);if(H[d+131|0]<0)Kb(J[d+120>>2]);if(H[d+171|0]<0)Kb(J[d+160>>2]);if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+143|0]<0)Kb(J[d+132>>2]);b=b+32|0;if((k|0)!=(b|0))continue;break}J[195395]=0;b=aa(1962,d|0,397860,d+480|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break b;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a= -Z()|0;break c}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}a=Z()|0;break g}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;break w}a=Z()|0;break x}a=Z()|0;break y}a=Z()|0;break z}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;break C}a=Z()|0;break D}a=Z()|0;break E}a=Z()|0;if(H[d+11|0]>=0)break E;Kb(J[d>> -2])}if(H[d+443|0]>=0)break D;Kb(J[d+432>>2])}if(H[d+35|0]>=0)break C;Kb(J[d+24>>2])}if(H[d+427|0]>=0)break B;Kb(J[d+416>>2])}if(H[d+411|0]>=0)break A;Kb(J[d+400>>2])}if(H[d+47|0]>=0)break z;Kb(J[d+36>>2])}if(H[d+395|0]>=0)break y;Kb(J[d+384>>2])}if(H[d+379|0]>=0)break x;Kb(J[d+368>>2])}if(H[d+59|0]>=0)break w;Kb(J[d+48>>2])}if(H[d+363|0]>=0)break v;Kb(J[d+352>>2])}if(H[d+347|0]>=0)break u;Kb(J[d+336>>2])}if(H[d+71|0]>=0)break t;Kb(J[d+60>>2])}if(H[d+331|0]>=0)break s;Kb(J[d+320>>2])}if(H[d+315|0]>= -0)break r;Kb(J[d+304>>2])}if(H[d+83|0]>=0)break q;Kb(J[d+72>>2])}if(H[d+299|0]>=0)break p;Kb(J[d+288>>2])}if(H[d+283|0]>=0)break o;Kb(J[d+272>>2])}if(H[d+95|0]>=0)break n;Kb(J[d+84>>2])}if(H[d+267|0]>=0)break m;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break l;Kb(J[d+240>>2])}if(H[d+107|0]>=0)break k;Kb(J[d+96>>2])}if(H[d+235|0]>=0)break j;Kb(J[d+224>>2])}if(H[d+219|0]>=0)break i;Kb(J[d+208>>2])}if(H[d+119|0]>=0)break h;Kb(J[d+108>>2])}if(H[d+203|0]>=0)break g;Kb(J[d+192>>2])}if(H[d+187|0]>=0)break f;Kb(J[d+ -176>>2])}if(H[d+131|0]>=0)break e;Kb(J[d+120>>2])}if(H[d+171|0]>=0)break d;Kb(J[d+160>>2])}if(H[d+155|0]>=0)break c;Kb(J[d+144>>2])}if(H[d+143|0]>=0)break a;Kb(J[d+132>>2]);break a}J[d+440>>2]=0;J[d+432>>2]=0;J[d+436>>2]=0;J[195395]=0;H[d+420|0]=0;J[d+416>>2]=d+432;c=_(1078,24)|0;g=J[195395];J[195395]=0;ja:{ka:{if((g|0)!=1){J[d+436>>2]=c;J[d+432>>2]=c;J[195395]=0;J[d+440>>2]=c+24;g=ha(1957,d+440|0,b|0,b+24|0,c|0)|0;h=J[195395];J[195395]=0;if((h|0)!=1)break ja;a=Z()|0;J[d+436>>2]=c;break ka}a=Z()| -0}Kc(d+416|0);Vb(b);break a}J[d+436>>2]=g;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+432|0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;la:{ma:{na:{oa:{if((a|0)==1)break oa;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break oa;J[195395]=0;a=_(1078,32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break na;J[d+416>>2]=a;J[d+420>>2]=4;J[d+424>>2]=-2147483640;g=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=g;g=J[99523];J[a>>2]=J[99522];J[a+4>>2]=g;J[a+16>>2]=0; -J[195395]=0;J[d+400>>2]=0;H[d+411|0]=0;ia(1961,b|0,d+416|0,c|0,d+400|0);a=J[195395];J[195395]=0;if((a|0)==1)break ma;if(H[d+411|0]<0)Kb(J[d+400>>2]);if(H[d+427|0]<0)Kb(J[d+416>>2]);a=J[d+432>>2];if(a){b=J[d+436>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}c=J[d+432>>2]}J[d+436>>2]=a;Kb(c)}if(H[d+491|0]<0)Kb(J[d+480>>2]);xb=d+496|0;return}a=Z()|0;break la}a=Z()|0;break la}a=Z()|0;if(H[d+411|0]<0)Kb(J[d+400>>2]); -if(H[d+427|0]>=0)break la;Kb(J[d+416>>2])}Hc(d+432|0)}if(H[d+491|0]<0)Kb(J[d+480>>2]);ba(a|0);B()}function ija(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=Q(0),o=0;a:{b:{c:{if((Ab[J[J[b>>2]+48>>2]](b)|0)!=255)break c;if((Ab[J[J[b>>2]+48>>2]](b)|0)!=216)break c;if(J[a+508>>2]<=19){m=c&1;while(1){d=Ab[J[J[b>>2]+48>>2]](b)|0;f=J[b>>2];d:{if((d|0)!=255)break d;d=Ab[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=Ab[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=Ab[J[f+ -48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=Ab[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=Ab[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=Ab[J[f+48>>2]](b)|0;if((d|0)==255)break b;f=J[b>>2]}J[(P(J[a+508>>2],12)+a|0)+272>>2]=d;e=Ab[J[f+48>>2]](b)|0;h=Ab[J[J[b>>2]+48>>2]](b)|0;i=e<<8|h;if((i|0)<=1){b=K[239194]|K[239195]<<8|(K[239196]<<16|K[239197]<<24);c=K[239190]|K[239191]<<8|(K[239192]<<16|K[239193]<<24);H[a+11|0]=c;H[a+12|0]=c>>>8;H[a+13|0]=c>>>16;H[a+14|0]=c>>>24;H[a+15|0]=b;H[a+ -16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[239187]|K[239188]<<8|(K[239189]<<16|K[239190]<<24);c=K[239183]|K[239184]<<8|(K[239185]<<16|K[239186]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}g=P(J[a+508>>2],12)+a|0;J[g+276>>2]=i;f=Qb(i);if(!f){b=K[239335]|K[239336]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[239331]|K[239332]<<8|(K[239333]<<16|K[239334]<<24);c=K[239327]|K[239328]<<8|(K[239329]<<16|K[239330]<<24);H[a+ -20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[239323]|K[239324]<<8|(K[239325]<<16|K[239326]<<24);c=K[239319]|K[239320]<<8|(K[239321]<<16|K[239322]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[239315]|K[239316]<<8|(K[239317]<<16|K[239318]<<24);c=K[239311]|K[239312]<<8|(K[239313]<<16|K[239314]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>> -16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}J[g+268>>2]=f;H[f+1|0]=h;H[f|0]=e;e=f+2|0;h=i-2|0;if((Ab[J[J[b>>2]+12>>2]](b,e,1,h,0,0)|0)!=(h|0)){b=K[239772]|K[239773]<<8|(K[239774]<<16|K[239775]<<24);c=K[239768]|K[239769]<<8|(K[239770]<<16|K[239771]<<24);H[a+19|0]=c;H[a+20|0]=c>>>8;H[a+21|0]=c>>>16;H[a+22|0]=c>>>24;H[a+23|0]=b;H[a+24|0]=b>>>8;H[a+25|0]=b>>>16;H[a+26|0]=b>>>24;b=K[239765]|K[239766]<<8|(K[239767]<<16|K[239768]<<24);c=K[239761]|K[239762]<<8|(K[239763]<< -16|K[239764]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[239757]|K[239758]<<8|(K[239759]<<16|K[239760]<<24);c=K[239753]|K[239754]<<8|(K[239755]<<16|K[239756]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}j=J[a+508>>2];g=j+1|0;J[a+508>>2]=g;e:{f:{g:switch(d-192|0){case 26:d=1;if(!(c&2))break c;c=Ab[J[J[b>>2]+24>>2]](b)|0;Ab[J[J[b>> -2]+20>>2]](b,0,2)|0;d=Ab[J[J[b>>2]+24>>2]](b)|0;Ab[J[J[b>>2]+20>>2]](b,c,0)|0;c=d-c|0;d=Qb(c);if(!d){H[a+44|0]=K[239912];b=K[239908]|K[239909]<<8|(K[239910]<<16|K[239911]<<24);c=K[239904]|K[239905]<<8|(K[239906]<<16|K[239907]<<24);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;H[a+40|0]=b;H[a+41|0]=b>>>8;H[a+42|0]=b>>>16;H[a+43|0]=b>>>24;b=K[239900]|K[239901]<<8|(K[239902]<<16|K[239903]<<24);c=K[239896]|K[239897]<<8|(K[239898]<<16|K[239899]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]= -c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[239892]|K[239893]<<8|(K[239894]<<16|K[239895]<<24);c=K[239888]|K[239889]<<8|(K[239890]<<16|K[239891]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[239884]|K[239885]<<8|(K[239886]<<16|K[239887]<<24);c=K[239880]|K[239881]<<8|(K[239882]<<16|K[239883]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]= -b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[239876]|K[239877]<<8|(K[239878]<<16|K[239879]<<24);c=K[239872]|K[239873]<<8|(K[239874]<<16|K[239875]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}if((Ab[J[J[b>>2]+12>>2]](b,d,1,c,0,0)|0)!=(c|0)){b=K[240052]|K[240053]<<8|(K[240054]<<16|K[240055]<<24);c=K[240048]|K[240049]<<8|(K[240050]<<16|K[240051]<<24);H[a+33|0]=c;H[a+34|0]=c>>>8;H[a+35|0]=c>>>16;H[a+36|0]= -c>>>24;H[a+37|0]=b;H[a+38|0]=b>>>8;H[a+39|0]=b>>>16;H[a+40|0]=b>>>24;b=K[240047]|K[240048]<<8|(K[240049]<<16|K[240050]<<24);c=K[240043]|K[240044]<<8|(K[240045]<<16|K[240046]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[240039]|K[240040]<<8|(K[240041]<<16|K[240042]<<24);c=K[240035]|K[240036]<<8|(K[240037]<<16|K[240038]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>> -8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[240031]|K[240032]<<8|(K[240033]<<16|K[240034]<<24);c=K[240027]|K[240028]<<8|(K[240029]<<16|K[240030]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[240023]|K[240024]<<8|(K[240025]<<16|K[240026]<<24);c=K[240019]|K[240020]<<8|(K[240021]<<16|K[240022]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}f= -J[a+508>>2];b=P(f,12)+a|0;J[b+276>>2]=c;J[b+268>>2]=d;J[b+272>>2]=291;J[a+508>>2]=f+1;return 1;case 25:gz(241463);break a;case 62:if(!(!l&m)){J[a+508>>2]=j;d=a+268|0;Kb(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>>2]=0;break e}d=0;e=xb-256|0;xb=e;if((i|0)>=3){g=(i|0)>=255?255:i;j=g-1|0;h=2;while(1){l=f+h|0;i=K[l|0];if(!(!((i|0)!=13|(h|0)>=(j|0))&K[l+1|0]==10)){H[d+e|0]=(i-9&255)>>>0<2?i:i-32>>>0>=95?63:i;d=d+1|0}h=h+1|0;if((g|0)!=(h|0))continue;break}}H[d+e|0]=0;se(J[a>>2]+196|0,e);xb=e+256|0;l=1; -break f;case 32:J[a+508>>2]=j;d=a+268|0;Kb(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>>2]=0;break e;case 33:if(!(!m|i>>>0<6|(K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24))!=1718188101)){i=0;f=xb-48|0;xb=f;d=J[a>>2];H[d+196|0]=0;J[d+120>>2]=0;h:{if(h>>>0<6)break h;J[a+260>>2]=0;if(cd(e,240761,6)){d=K[240830]|K[240831]<<8|(K[240832]<<16|K[240833]<<24);e=K[240826]|K[240827]<<8|(K[240828]<<16|K[240829]<<24);H[a+18|0]=e;H[a+19|0]=e>>>8;H[a+20|0]=e>>>16;H[a+21|0]=e>>>24;H[a+22|0]=d;H[a+23|0]=d>>>8;H[a+ -24|0]=d>>>16;H[a+25|0]=d>>>24;d=K[240824]|K[240825]<<8|(K[240826]<<16|K[240827]<<24);e=K[240820]|K[240821]<<8|(K[240822]<<16|K[240823]<<24);H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[240816]|K[240817]<<8|(K[240818]<<16|K[240819]<<24);e=K[240812]|K[240813]<<8|(K[240814]<<16|K[240815]<<24);H[a+4|0]=e;H[a+5|0]=e>>>8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;break h}if(h>>> -0<8)break h;j=e+6|0;i:{d=K[e+6|0]|K[e+7|0]<<8;if((d|0)!=18761){if((d|0)!=19789)break i;g=1}else g=0;J[a+264>>2]=g;if(h>>>0<14)break h;d=(d|0)!=18761;if((K[e+(d?8:9)|0]<<8|K[e+(d?9:8)|0])!=42){d=K[240960]|K[240961]<<8|(K[240962]<<16|K[240963]<<24);e=K[240956]|K[240957]<<8|(K[240958]<<16|K[240959]<<24);H[a+19|0]=e;H[a+20|0]=e>>>8;H[a+21|0]=e>>>16;H[a+22|0]=e>>>24;H[a+23|0]=d;H[a+24|0]=d>>>8;H[a+25|0]=d>>>16;H[a+26|0]=d>>>24;d=K[240953]|K[240954]<<8|(K[240955]<<16|K[240956]<<24);e=K[240949]|K[240950]<< -8|(K[240951]<<16|K[240952]<<24);H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[240945]|K[240946]<<8|(K[240947]<<16|K[240948]<<24);e=K[240941]|K[240942]<<8|(K[240943]<<16|K[240944]<<24);H[a+4|0]=e;H[a+5|0]=e>>>8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;break h}d=e+10|0;j:{if(J[a+264>>2]){g=K[d+1|0]<<16|K[d|0]<<24|K[d+2|0]<<8;d=d+3|0;break j}g=K[d+2|0]<<16|K[d+3|0]<<24| -K[d+1|0]<<8}o=K[d|0];d=h-6|0;J[f+32>>2]=d;J[f+28>>2]=j;k=h>>>0>=14?14:h;J[f+40>>2]=h-k;J[f+36>>2]=e+k;J[f+44>>2]=e;k=f+44|0;if(!jo(a,f+36|0,f+28|0,d,J[a>>2],k,0))break h;g=g|o;if((g|0)>=9){J[f+16>>2]=d;J[f+12>>2]=j;j=h;g=g+6|0;h=h>>>0>>0?h:g;J[f+24>>2]=j-h;J[f+20>>2]=e+h;if(!jo(a,f+20|0,f+12|0,d,J[a>>2],k,0))break h}i=1;d=J[a>>2];n=N[d+168>>2];if(n==Q(0))break h;N[d+140>>2]=Q(N[d+176>>2]*Q(J[a+260>>2]))/n;break h}d=K[240937]|K[240938]<<8|(K[240939]<<16|K[240940]<<24);e=K[240933]|K[240934]<<8|(K[240935]<< -16|K[240936]<<24);H[a+27|0]=e;H[a+28|0]=e>>>8;H[a+29|0]=e>>>16;H[a+30|0]=e>>>24;H[a+31|0]=d;H[a+32|0]=d>>>8;H[a+33|0]=d>>>16;H[a+34|0]=d>>>24;d=K[240930]|K[240931]<<8|(K[240932]<<16|K[240933]<<24);e=K[240926]|K[240927]<<8|(K[240928]<<16|K[240929]<<24);H[a+20|0]=e;H[a+21|0]=e>>>8;H[a+22|0]=e>>>16;H[a+23|0]=e>>>24;H[a+24|0]=d;H[a+25|0]=d>>>8;H[a+26|0]=d>>>16;H[a+27|0]=d>>>24;d=K[240922]|K[240923]<<8|(K[240924]<<16|K[240925]<<24);e=K[240918]|K[240919]<<8|(K[240920]<<16|K[240921]<<24);H[a+12|0]=e;H[a+ -13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[240914]|K[240915]<<8|(K[240916]<<16|K[240917]<<24);e=K[240910]|K[240911]<<8|(K[240912]<<16|K[240913]<<24);H[a+4|0]=e;H[a+5|0]=e>>>8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24}xb=f+48|0;H[J[a>>2]+460|0]=i;break f}J[a+508>>2]=j;d=a+268|0;Kb(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>>2]=0;break e;case 0:case 1:case 2:case 3:case 5:case 6:case 7:case 9:case 10:case 11:case 13:case 14:case 15:break g; -default:break e}if(i>>>0<8)break a;e=J[a>>2];J[e+100>>2]=K[f+4|0]|K[f+3|0]<<8;J[e+104>>2]=K[f+6|0]|K[f+5|0]<<8;f=K[f+7|0];J[e+116>>2]=d;J[e+112>>2]=(f|0)==3}g=J[a+508>>2]}if((g|0)<=19)continue;break}}d=0;b=K[238270]|K[238271]<<8|(K[238272]<<16|K[238273]<<24);c=K[238266]|K[238267]<<8|(K[238268]<<16|K[238269]<<24);H[a+26|0]=c;H[a+27|0]=c>>>8;H[a+28|0]=c>>>16;H[a+29|0]=c>>>24;H[a+30|0]=b;H[a+31|0]=b>>>8;H[a+32|0]=b>>>16;H[a+33|0]=b>>>24;b=K[238264]|K[238265]<<8|(K[238266]<<16|K[238267]<<24);c=K[238260]| -K[238261]<<8|(K[238262]<<16|K[238263]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[238256]|K[238257]<<8|(K[238258]<<16|K[238259]<<24);c=K[238252]|K[238253]<<8|(K[238254]<<16|K[238255]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[238248]|K[238249]<<8|(K[238250]<<16|K[238251]<<24);c=K[238244]|K[238245]<<8|(K[238246]<<16|K[238247]<< -24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24}return d|0}gz(241440);return 0}return 0}function fG(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,w=0;l=xb-32|0;xb=l;n=J[c+80>>2];g=d+3|0;a:{if(J[c+44>>2]!=1265525857|g>>>0>e>>>0)break a;f=P(d,20)+n|0;if(K[f+12|0]&32|K[f+18|0]!=15)break a;h=d+1|0;i=P(h,20)+n|0;if(K[i+12|0]&32|K[i+18|0]!=4|(K[f+52|0]&32|K[f+58|0]!=6))break a;Kd(c,h,g);J[l+24>> -2]=J[i+16>>2];h=J[i+12>>2];J[l+16>>2]=J[i+8>>2];J[l+20>>2]=h;h=J[i+4>>2];J[l+8>>2]=J[i>>2];J[l+12>>2]=h;f=f+40|0;J[i+16>>2]=J[f+16>>2];h=J[f+12>>2];J[i+8>>2]=J[f+8>>2];J[i+12>>2]=h;h=J[f+4>>2];J[i>>2]=J[f>>2];J[i+4>>2]=h;J[f+16>>2]=J[l+24>>2];i=J[l+20>>2];J[f+8>>2]=J[l+16>>2];J[f+12>>2]=i;i=J[l+12>>2];J[f>>2]=J[l+8>>2];J[f+4>>2]=i}h=J[J[a>>2]+16>>2];b:{c:{d:{e:{if(!(!J[a+100>>2]|e>>>0>>0)){i=e;g=d;f:{g:switch(h|0){case 0:f=P(d,20)+n|0;h:{if(K[f+52|0]&32)break h;j=K[f+58|0];if(j>>>0>31)break h; -if(1<>2]=J[f>>2];J[l+12>>2]=J[f+20>>2];f=0;break f;case 2:break e;case 1:break g;default:break b}f=P(d,20)+n|0;if(K[f+58|0]!=6)break b;J[l+8>>2]=J[f>>2];J[l+12>>2]=J[f+20>>2];f=J[f+40>>2]}J[l+16>>2]=f;i=J[a+16>>2];if(i){f=J[a+12>>2];i=f+P(i,12)|0;while(1){if(kg(b,L[f>>1],l+8|0,2,K[a+24|0]))break d;f=f+12|0;if((i|0)!=(f|0))continue;break}h=J[J[a>>2]+16>>2]}i:{if((h|0)!=1)break i;i=J[a+16>>2];if(!i)break i;f=J[a+12>>2];i=f+P(i,12)|0;while(1){if(kg(b,L[f>>1],l+8|0,3,K[a+24|0]))break d; -f=f+12|0;if((i|0)!=(f|0))continue;break}}i=e;break b}i=e;g=d;if((h|0)!=2)break b}if(K[(P(d,20)+n|0)+18|0]!=14)break b;m=1;f=g+1|0;g=f>>>0>>0?i:f;f=d;while(1){f=f+1|0;if(f>>>0>=e>>>0){i=d;break b}i=P(f,20)+n|0;if(K[i+12|0]&32){i=d;g=f;break b}i=K[i+18|0];if(1<>>0<=31:0)continue;break}g=f;break c}m=1;g=d+2|0;if(g>>>0>=e>>>0){i=d;break b}j:{while(1){f=P(g,20)+n|0;if(K[f+12|0]&32){i=d;break b}f=K[f+18|0];if(f>>>0>31|!(1<>>0>31|!(1<>>0>=f>>>0)break l;if(K[p+P(h,20)|0]==4)break k}if(f>>>0>g>>>0)continue}break}j=0;j=m?(d|0)!=(i|0)|g-i>>>0>2:j;p:{if(d>>>0>=i>>>0)break p;f=d;m=i-f&3;if(m){h=0;while(1){k=P(f,20)+q|0;g=K[k+16|0];H[k+ -16|0]=g>>>0>=3?3:g;f=f+1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}}if((d^-1)+i>>>0<=2)break p;while(1){g=P(f,20)+q|0;h=K[g+16|0];H[g+16|0]=h>>>0>=3?3:h;h=K[g+36|0];H[g+36|0]=h>>>0>=3?3:h;h=K[g+56|0];H[g+56|0]=h>>>0>=3?3:h;h=g;g=K[g+76|0];H[h+76|0]=g>>>0>=3?3:g;f=f+4|0;if((i|0)!=(f|0))continue;break}}if(e>>>0>i>>>0)H[(P(i,20)+n|0)+19|0]=4;if(j)H[(P(d,20)+n|0)+19|0]=1;q:{if(!K[a+4|0])break q;m=J[c+44>>2];f=i;while(1){h=f;f=f+1|0;if(f>>>0>=e>>>0)break q;j=P(f,20);if(K[(j+s|0)+16|0]!=4)continue;break}g= -e-1|0;if(g>>>0<=f>>>0)break q;j=j+n|0;p=(m|0)!=1265525857;while(1){r:{o=P(g,20);m=o+n|0;s:{if(K[m+12|0]&32)break s;k=K[m+18|0];if(k>>>0>31)break s;if(1<>>0>f>>>0)continue;break q}g=g-1|0;if(g>>>0>f>>>0)continue;break q}break}if((k|0)==4)break q;J[l+24>>2]=J[j+16>>2];k=J[j+12>>2];J[l+16>>2]=J[j+8>>2];J[l+20>>2]=k;k=J[j+4>>2];J[l+8>>2]=J[j>>2];J[l+12>>2]=k;qc(j,(P(h,20)+n|0)+40|0,P(g-f|0,20));J[m+16>>2]=J[l+24>>2];f=J[l+20>>2];J[m+ -8>>2]=J[l+16>>2];J[m+12>>2]=f;f=J[l+12>>2];J[m>>2]=J[l+8>>2];J[m+4>>2]=f}v=d>>>0>=e>>>0;if(!v){k=n-1|0;g=0;f=d;while(1){j=P(f,20)+n|0;m=K[j+18|0];t:{if(!(m>>>0>31|!(1<>>0>=f>>>0)break t;while(1){m=K[k+P(h,20)|0];if((m|0)==2){h=h-1|0;if(h>>>0>d>>>0)continue;break t}break}H[j+19|0]=m;break t}h=K[j+19|0];if((h|0)==13)break t;if(!((m|0)!=13|d>>>0>=f>>>0|K[j-2|0]!=8))H[j-1|0]=h;g=h}f=f+1|0;if((f|0)!=(e|0))continue;break}}f=i+1|0;if(f>>>0< -e>>>0){p=i-1|0;g=0;j=i;while(1){m=j;u:{v:{k=P(f,20);h=k+n|0;if(K[h+12|0]&32){h=K[(k+s|0)+16|0];j=1<>>0>31)break v;h=m+1|0;j=f;if(h>>>0>=f>>>0)break u;k=k+q|0;if((g+i|0)-m&1){h=P(h,20)+q|0;if(K[h+16|0]<=12)H[h+16|0]=K[k+16|0];h=m+2|0}j=f;if((m|0)==(g+p|0))break u;while(1){j=P(h,20)+q|0;if(K[j+16|0]<=12)H[j+16|0]=K[k+16|0];if(K[j+36|0]<=12)H[j+36|0]=K[k+16|0];h=h+2|0;if(h>>>0>>0)continue;break}j=f;break u}j=h>>>0>31?m:j&8320?f:m}g=g+1|0;f=f+1|0;if((f| -0)!=(e|0))continue;break}}g=P(d,20)+n|0;p=K[g+15|0];w:{if(v)break w;f=d;i=e-f&3;if(i){h=0;while(1){H[(P(f,20)+q|0)+12|0]=f-d;f=f+1|0;h=h+1|0;if((i|0)!=(h|0))continue;break}}if((d^-1)+e>>>0<3)break w;while(1){i=P(f,20)+q|0;h=f-d|0;H[i+32|0]=h+1;H[i+12|0]=h;H[i+52|0]=h+2;H[i+72|0]=h+3;f=f+4|0;if((f|0)!=(e|0))continue;break}}u=e-d|0;if(u>>>0>=2){h=g+19|0;m=g-1|0;j=1;while(1){i=P(j,20);k=K[i+h|0];f=j;x:{while(1){if(k>>>0>=K[m+P(f,20)|0])break x;f=f-1|0;if(f)continue;break}f=0}if((f|0)!=(j|0)){i=g+i|0; -J[l+24>>2]=J[i+16>>2];k=J[i+12>>2];J[l+16>>2]=J[i+8>>2];J[l+20>>2]=k;k=J[i+4>>2];J[l+8>>2]=J[i>>2];J[l+12>>2]=k;i=g+P(f,20)|0;qc(i+20|0,i,P(j-f|0,20));J[i+16>>2]=J[l+24>>2];f=J[l+20>>2];J[i+8>>2]=J[l+16>>2];J[i+12>>2]=f;f=J[l+12>>2];J[i>>2]=J[l+8>>2];J[i+4>>2]=f}j=j+1|0;if((u|0)!=(j|0))continue;break}}i=e;w=i>>>0>d>>>0;y:{if(!w)break y;i=d;m=e;h=e;z:{while(1){A:switch(K[(P(i,20)+q|0)+16|0]-2|0){case 0:h=(e|0)==(h|0)?i:h;m=i;break;case 2:break z;default:break A}i=i+1|0;if((i|0)!=(e|0))continue;break}i= -e}if(h>>>0>=m>>>0)break y;f=J[c+68>>2];o=m+1|0;j=f>>>0>>0?f:o;g=f>>>0>>0?f:h;B:{if(j>>>0>>0)break B;j=j-1|0;if(j>>>0<=g>>>0)break B;r=J[c+80>>2];while(1){k=r+P(j,20)|0;J[l+24>>2]=J[k+16>>2];f=J[k+12>>2];J[l+16>>2]=J[k+8>>2];J[l+20>>2]=f;f=J[k+4>>2];J[l+8>>2]=J[k>>2];J[l+12>>2]=f;f=r+P(g,20)|0;J[k+16>>2]=J[f+16>>2];t=J[f+12>>2];J[k+8>>2]=J[f+8>>2];J[k+12>>2]=t;t=J[f+4>>2];J[k>>2]=J[f>>2];J[k+4>>2]=t;J[f+16>>2]=J[l+24>>2];k=J[l+20>>2];J[f+8>>2]=J[l+16>>2];J[f+12>>2]=k;k=J[l+12>>2];J[f>>2]= -J[l+8>>2];J[f+4>>2]=k;g=g+1|0;j=j-1|0;if(g>>>0>>0)continue;break}}C:{if(!K[c+63|0])break C;f=J[c+68>>2];j=f>>>0>>0?f:o;g=f>>>0>>0?f:h;if(j>>>0>>0)break C;j=j-1|0;if(j>>>0<=g>>>0)break C;o=J[c+88>>2];while(1){k=o+P(j,20)|0;J[l+24>>2]=J[k+16>>2];f=J[k+12>>2];J[l+16>>2]=J[k+8>>2];J[l+20>>2]=f;f=J[k+4>>2];J[l+8>>2]=J[k>>2];J[l+12>>2]=f;f=o+P(g,20)|0;J[k+16>>2]=J[f+16>>2];r=J[f+12>>2];J[k+8>>2]=J[f+8>>2];J[k+12>>2]=r;r=J[f+4>>2];J[k>>2]=J[f>>2];J[k+4>>2]=r;J[f+16>>2]=J[l+24>>2];k=J[l+20>> -2];J[f+8>>2]=J[l+16>>2];J[f+12>>2]=k;k=J[l+12>>2];J[f>>2]=J[l+8>>2];J[f+4>>2]=k;g=g+1|0;j=j-1|0;if(g>>>0>>0)continue;break}}if(h>>>0>m>>>0)break y;f=h;while(1){k=f;g=h;h=g+1|0;g=K[(P(g,20)+s|0)+16|0];D:{if(g>>>0>31|!(1<>2];j=g>>>0>>0?g:h;g=f>>>0>g>>>0?g:f;E:{if(j>>>0>>0)break E;j=j-1|0;if(j>>>0<=g>>>0)break E;r=J[c+80>>2];while(1){o=r+P(j,20)|0;J[l+24>>2]=J[o+16>>2];f=J[o+12>>2];J[l+16>>2]=J[o+8>>2];J[l+20>>2]=f;f=J[o+4>>2];J[l+8>>2]=J[o>>2];J[l+12>>2]=f;f=r+P(g, -20)|0;J[o+16>>2]=J[f+16>>2];t=J[f+12>>2];J[o+8>>2]=J[f+8>>2];J[o+12>>2]=t;t=J[f+4>>2];J[o>>2]=J[f>>2];J[o+4>>2]=t;J[f+16>>2]=J[l+24>>2];o=J[l+20>>2];J[f+8>>2]=J[l+16>>2];J[f+12>>2]=o;o=J[l+12>>2];J[f>>2]=J[l+8>>2];J[f+4>>2]=o;g=g+1|0;j=j-1|0;if(g>>>0>>0)continue;break}}f=h;if(!K[c+63|0])break D;g=J[c+68>>2];j=f>>>0>g>>>0?g:f;g=g>>>0>>0?g:k;if(j>>>0>>0)break D;j=j-1|0;if(j>>>0<=g>>>0)break D;o=J[c+88>>2];while(1){k=o+P(j,20)|0;J[l+24>>2]=J[k+16>>2];f=J[k+12>>2];J[l+16>>2]=J[k+8>>2];J[l+ -20>>2]=f;f=J[k+4>>2];J[l+8>>2]=J[k>>2];J[l+12>>2]=f;f=o+P(g,20)|0;J[k+16>>2]=J[f+16>>2];r=J[f+12>>2];J[k+8>>2]=J[f+8>>2];J[k+12>>2]=r;r=J[f+4>>2];J[k>>2]=J[f>>2];J[k+4>>2]=r;J[f+16>>2]=J[l+24>>2];k=J[l+20>>2];J[f+8>>2]=J[l+16>>2];J[f+12>>2]=k;k=J[l+12>>2];J[f>>2]=J[l+8>>2];J[f+4>>2]=k;g=g+1|0;j=j-1|0;if(g>>>0>>0)continue;break}f=h}if(h>>>0<=m>>>0)continue;break}}F:{if(!(K[a+4|0]|u>>>0>127)){if(e>>>0<=i>>>0)break F;j=i;while(1){f=K[(P(j,20)+q|0)+12|0];G:{if((f|0)==255)break G;f=d+f|0;g=j;h=g;if((f| -0)!=(g|0))while(1){m=P(f,20)+q|0;k=K[m+12|0];H[m+12|0]=255;g=f>>>0>>0?g:f;h=f>>>0>h>>>0?h:f;f=d+k|0;if((j|0)!=(f|0))continue;break}f=g+1|0;g=h>>>0>>0?i:h;if(f-g>>>0<2)break G;Kd(c,g,f)}j=j+1|0;if((j|0)!=(e|0))continue;break}break F}if(e-i>>>0<2)break F;Kd(c,i,e)}H:{if(v)break H;h=d;g=u&7;if(g){f=0;while(1){H[(P(h,20)+q|0)+12|0]=p;h=h+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}}if((d^-1)+e>>>0>6)while(1){f=P(h,20)+q|0;H[f+32|0]=p;H[f+12|0]=p;H[f+52|0]=p;H[f+72|0]=p;H[f+92|0]=p;H[f+112|0]=p;H[f+ -132|0]=p;H[f+152|0]=p;h=h+8|0;if((h|0)!=(e|0))continue;break}if(!w)break H;f=d;while(1){g=P(f,20);if(K[(g+q|0)+16|0]!=1)break H;g=g+n|0;J[g+4>>2]=J[g+4>>2]|J[a+100>>2];f=f+1|0;if((f|0)!=(e|0))continue;break}}h=J[a+120>>2];j=K[a+4|0];h=j|J[J[a>>2]+20>>2]?h:J[a+112>>2]|h;I:{if(d>>>0>=i>>>0)break I;f=d;m=i-f&3;if(m){g=0;while(1){k=P(f,20)+n|0;J[k+4>>2]=J[k+4>>2]|h;f=f+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}if((d^-1)+i>>>0<=2)break I;while(1){g=P(f,20)+n|0;J[g+4>>2]=J[g+4>>2]|h;J[g+24>>2]=J[g+24>> -2]|h;J[g+44>>2]=J[g+44>>2]|h;g=g- -64|0;J[g>>2]=J[g>>2]|h;f=f+4|0;if((i|0)!=(f|0))continue;break}}f=i+1|0;J:{if(f>>>0>=e>>>0)break J;h=J[a+124>>2]|(J[a+116>>2]|J[a+112>>2]);m=(i^-1)+e&3;if(m){g=0;while(1){k=P(f,20)+n|0;J[k+4>>2]=h|J[k+4>>2];f=f+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}if((e-i|0)-2>>>0<3)break J;while(1){g=P(f,20)+n|0;J[g+4>>2]=h|J[g+4>>2];J[g+24>>2]=h|J[g+24>>2];J[g+44>>2]=h|J[g+44>>2];g=g- -64|0;J[g>>2]=h|J[g>>2];f=f+4|0;if((f|0)!=(e|0))continue;break}}K:{if(!j|J[c+44>>2]!=1147500129)break K; -g=d+1|0;if(i>>>0<=g>>>0)break K;f=d;while(1){c=f;f=g;g=P(c,20);L:{if(K[(g+s|0)+16|0]!=15)break L;h=P(f,20);if(K[(h+s|0)+16|0]!=4)break L;c=c+2|0;if((c|0)!=(i|0)&K[(P(c,20)+s|0)+16|0]==6)break L;c=g+n|0;J[c+4>>2]=J[c+4>>2]|J[a+112>>2];c=h+n|0;J[c+4>>2]=J[c+4>>2]|J[a+112>>2]}g=f+1|0;if((i|0)!=(g|0))continue;break}}M:{if(!J[a+108>>2]|i+2>>>0>=e>>>0)break M;while(1){c=i+1|0;f=P(c,20)+n|0;J[l+8>>2]=J[f>>2];J[l+12>>2]=J[f+20>>2];N:{g=J[a+32>>2];if(!g)break N;f=J[a+28>>2];g=f+P(g,12)|0;while(1){if(!kg(b, -L[f>>1],l+8|0,2,K[a+40|0])){f=f+12|0;if((g|0)!=(f|0))continue;break N}break}b=P(c,20)+n|0;J[b+4>>2]=J[b+4>>2]|J[a+108>>2];b=P(i,20)+n|0;J[b+44>>2]=J[b+44>>2]|J[a+108>>2];break M}f=i+3|0;i=c;if(e>>>0>f>>>0)continue;break}}h=d+1|0;if(h>>>0>>0){g=d;while(1){f=g;g=h;b=P(g,20)+n|0;O:{if(K[b+12|0]&32)break O;b=K[b+18|0];if((b|0)!=5|!(1<>2]=J[b+4>>2]&(J[a+120>>2]^-1);if(d>>>0>=f>>>0)break O;while(1){b=P(f,20)+n|0;P:{if(K[b+12|0]&32)break P;b=K[b+18|0];if(b>>>0>31)break P; -if(1<>2]=J[b+4>>2]&(J[a+120>>2]^-1);if(d>>>0>>0)continue;break}}h=g+1|0;if((h|0)!=(e|0))continue;break}}xb=l+32|0}function w2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;c=xb-480|0;xb=c;a:{b:{c:{d:{e:{f:{if(J[d>>2]!=32|J[d+4>>2]!=1)break f;d=J[e>>2];o=J[e+4>>2];if((d|0)==(o|0))break f;J[c+472>>2]=0;J[c+464>>2]=0;J[c+468>>2]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{while(1){i= -J[d+12>>2];g=J[d+4>>2];b=J[d+8>>2];e=J[d>>2];J[195395]=0;h=+(e|0);j=+(b|0);e=h>j;b=c+132|0;k=e?j:h;da(1863,b|0,+k,-1);f=J[195395];J[195395]=0;if((f|0)==1)break oa;J[195395]=0;b=aa(1954,b|0,0,398272)|0;f=J[195395];J[195395]=0;if((f|0)==1)break na;J[c+152>>2]=J[b+8>>2];f=J[b+4>>2];J[c+144>>2]=J[b>>2];J[c+148>>2]=f;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+144|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break ma;J[c+168>>2]=J[c+152>>2];J[c+152>>2]=0;b=J[c+148>>2];J[c+160>>2]=J[c+144>>2];J[c+ -164>>2]=b;J[c+144>>2]=0;J[c+148>>2]=0;J[195395]=0;l=+(i|0);m=+(g|0);i=l>24<0;b=aa(1864,c+160|0,(g?J[c+120>>2]:f)|0,(g?J[c+124>>2]:b)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break ka;J[c+184>>2]=J[b+8>>2];g=J[b+4>>2];J[c+176>>2]=J[b>>2];J[c+180>>2]=g;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+176|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ja;J[c+200>>2]=J[c+184>> -2];J[c+184>>2]=0;b=J[c+180>>2];J[c+192>>2]=J[c+176>>2];J[c+196>>2]=b;J[c+176>>2]=0;J[c+180>>2]=0;J[195395]=0;b=ca(1858,c+192|0,404096)|0;g=J[195395];J[195395]=0;if((g|0)==1)break ia;J[c+216>>2]=J[b+8>>2];g=J[b+4>>2];J[c+208>>2]=J[b>>2];J[c+212>>2]=g;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=c+108|0;h=e?h:j;da(1863,b|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break ha;J[195395]=0;f=b;b=K[c+119|0];e=b<<24>>24<0;b=aa(1864,c+208|0,(e?J[c+108>>2]:f)|0,(e?J[c+112>>2]:b)|0)|0;e=J[195395];J[195395]= -0;if((e|0)==1)break ga;J[c+232>>2]=J[b+8>>2];e=J[b+4>>2];J[c+224>>2]=J[b>>2];J[c+228>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+224|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break fa;J[c+248>>2]=J[c+232>>2];J[c+232>>2]=0;b=J[c+228>>2];J[c+240>>2]=J[c+224>>2];J[c+244>>2]=b;J[c+224>>2]=0;J[c+228>>2]=0;J[195395]=0;b=c+96|0;da(1863,b|0,+n,-1);e=J[195395];J[195395]=0;if((e|0)==1)break ea;J[195395]=0;f=b;b=K[c+107|0];e=b<<24>>24<0;b=aa(1864,c+240|0,(e?J[c+96>>2]:f)|0,(e?J[c+100>>2]:b)| -0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break da;J[c+264>>2]=J[b+8>>2];e=J[b+4>>2];J[c+256>>2]=J[b>>2];J[c+260>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+256|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ca;J[c+280>>2]=J[c+264>>2];J[c+264>>2]=0;b=J[c+260>>2];J[c+272>>2]=J[c+256>>2];J[c+276>>2]=b;J[c+256>>2]=0;J[c+260>>2]=0;J[195395]=0;b=c+84|0;da(1863,b|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break ba;J[195395]=0;f=b;b=K[c+95|0];e=b<<24>>24<0;b=aa(1864,c+272|0,(e?J[c+84>> -2]:f)|0,(e?J[c+88>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break aa;J[c+296>>2]=J[b+8>>2];e=J[b+4>>2];J[c+288>>2]=J[b>>2];J[c+292>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+288|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break $;J[c+312>>2]=J[c+296>>2];J[c+296>>2]=0;b=J[c+292>>2];J[c+304>>2]=J[c+288>>2];J[c+308>>2]=b;J[c+288>>2]=0;J[c+292>>2]=0;J[195395]=0;b=c+72|0;h=i?m:l;da(1863,b|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break _;J[195395]=0;f=b;b=K[c+83|0];e=b<<24>>24< -0;b=aa(1864,c+304|0,(e?J[c+72>>2]:f)|0,(e?J[c+76>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Z;J[c+328>>2]=J[b+8>>2];e=J[b+4>>2];J[c+320>>2]=J[b>>2];J[c+324>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+320|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break Y;J[c+344>>2]=J[c+328>>2];J[c+328>>2]=0;b=J[c+324>>2];J[c+336>>2]=J[c+320>>2];J[c+340>>2]=b;J[c+320>>2]=0;J[c+324>>2]=0;J[195395]=0;b=c+60|0;da(1863,b|0,+k,-1);e=J[195395];J[195395]=0;if((e|0)==1)break X;J[195395]=0;f=b;b= -K[c+71|0];e=b<<24>>24<0;b=aa(1864,c+336|0,(e?J[c+60>>2]:f)|0,(e?J[c+64>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break W;J[c+360>>2]=J[b+8>>2];e=J[b+4>>2];J[c+352>>2]=J[b>>2];J[c+356>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+352|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break V;J[c+376>>2]=J[c+360>>2];J[c+360>>2]=0;b=J[c+356>>2];J[c+368>>2]=J[c+352>>2];J[c+372>>2]=b;J[c+352>>2]=0;J[c+356>>2]=0;J[195395]=0;b=c+48|0;da(1863,b|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break U; -J[195395]=0;f=b;b=K[c+59|0];e=b<<24>>24<0;b=aa(1864,c+368|0,(e?J[c+48>>2]:f)|0,(e?J[c+52>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break T;J[c+392>>2]=J[b+8>>2];e=J[b+4>>2];J[c+384>>2]=J[b>>2];J[c+388>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+384|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break S;J[c+408>>2]=J[c+392>>2];J[c+392>>2]=0;b=J[c+388>>2];J[c+400>>2]=J[c+384>>2];J[c+404>>2]=b;J[c+384>>2]=0;J[c+388>>2]=0;J[195395]=0;b=c+36|0;da(1863,b|0,+k,-1);e=J[195395];J[195395]= -0;if((e|0)==1)break R;J[195395]=0;f=b;b=K[c+47|0];e=b<<24>>24<0;b=aa(1864,c+400|0,(e?J[c+36>>2]:f)|0,(e?J[c+40>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Q;J[c+424>>2]=J[b+8>>2];e=J[b+4>>2];J[c+416>>2]=J[b>>2];J[c+420>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+416|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break P;J[c+440>>2]=J[c+424>>2];J[c+424>>2]=0;b=J[c+420>>2];J[c+432>>2]=J[c+416>>2];J[c+436>>2]=b;J[c+416>>2]=0;J[c+420>>2]=0;J[195395]=0;b=c+24|0;da(1863,b|0,+n,-1); -e=J[195395];J[195395]=0;if((e|0)==1)break O;J[195395]=0;f=b;b=K[c+35|0];e=b<<24>>24<0;b=aa(1864,c+432|0,(e?J[c+24>>2]:f)|0,(e?J[c+28>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break N;J[c+456>>2]=J[b+8>>2];e=J[b+4>>2];J[c+448>>2]=J[b>>2];J[c+452>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+448|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break M;J[c+8>>2]=J[c+456>>2];J[c+456>>2]=0;e=J[c+452>>2];b=J[c+448>>2];J[c>>2]=b;J[c+4>>2]=e;J[c+448>>2]=0;J[c+452>>2]=0;J[195395]=0;f=b;b=H[c+ -11|0];e=(b|0)<0;aa(1864,c+464|0,(e?f:c)|0,(e?J[c+4>>2]:b&255)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break L;if(H[c+11|0]<0)Kb(J[c>>2]);if(H[c+459|0]<0)Kb(J[c+448>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);if(H[c+443|0]<0)Kb(J[c+432>>2]);if(H[c+427|0]<0)Kb(J[c+416>>2]);if(H[c+47|0]<0)Kb(J[c+36>>2]);if(H[c+411|0]<0)Kb(J[c+400>>2]);if(H[c+395|0]<0)Kb(J[c+384>>2]);if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+379|0]<0)Kb(J[c+368>>2]);if(H[c+363|0]<0)Kb(J[c+352>>2]);if(H[c+71|0]<0)Kb(J[c+60>>2]);if(H[c+347|0]<0)Kb(J[c+ -336>>2]);if(H[c+331|0]<0)Kb(J[c+320>>2]);if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+315|0]<0)Kb(J[c+304>>2]);if(H[c+299|0]<0)Kb(J[c+288>>2]);if(H[c+95|0]<0)Kb(J[c+84>>2]);if(H[c+283|0]<0)Kb(J[c+272>>2]);if(H[c+267|0]<0)Kb(J[c+256>>2]);if(H[c+107|0]<0)Kb(J[c+96>>2]);if(H[c+251|0]<0)Kb(J[c+240>>2]);if(H[c+235|0]<0)Kb(J[c+224>>2]);if(H[c+119|0]<0)Kb(J[c+108>>2]);if(H[c+219|0]<0)Kb(J[c+208>>2]);if(H[c+203|0]<0)Kb(J[c+192>>2]);if(H[c+187|0]<0)Kb(J[c+176>>2]);if(H[c+131|0]<0)Kb(J[c+120>>2]);if(H[c+171|0]<0)Kb(J[c+ -160>>2]);if(H[c+155|0]<0)Kb(J[c+144>>2]);if(H[c+143|0]<0)Kb(J[c+132>>2]);d=d+16|0;if((o|0)!=(d|0))continue;break}J[195395]=0;b=aa(1962,c|0,397860,c+464|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break g;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;break w}a=Z()|0;break x}a= -Z()|0;break y}a=Z()|0;break z}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;break C}a=Z()|0;break D}a=Z()|0;break E}a=Z()|0;break F}a=Z()|0;break G}a=Z()|0;break H}a=Z()|0;break I}a=Z()|0;break J}a=Z()|0;break K}a=Z()|0;if(H[c+11|0]>=0)break K;Kb(J[c>>2])}if(H[c+459|0]>=0)break J;Kb(J[c+448>>2])}if(H[c+35|0]>=0)break I;Kb(J[c+24>>2])}if(H[c+443|0]>=0)break H;Kb(J[c+432>>2])}if(H[c+427|0]>=0)break G;Kb(J[c+416>>2])}if(H[c+47|0]>=0)break F;Kb(J[c+36>>2])}if(H[c+411|0]>=0)break E;Kb(J[c+400>>2])}if(H[c+395| -0]>=0)break D;Kb(J[c+384>>2])}if(H[c+59|0]>=0)break C;Kb(J[c+48>>2])}if(H[c+379|0]>=0)break B;Kb(J[c+368>>2])}if(H[c+363|0]>=0)break A;Kb(J[c+352>>2])}if(H[c+71|0]>=0)break z;Kb(J[c+60>>2])}if(H[c+347|0]>=0)break y;Kb(J[c+336>>2])}if(H[c+331|0]>=0)break x;Kb(J[c+320>>2])}if(H[c+83|0]>=0)break w;Kb(J[c+72>>2])}if(H[c+315|0]>=0)break v;Kb(J[c+304>>2])}if(H[c+299|0]>=0)break u;Kb(J[c+288>>2])}if(H[c+95|0]>=0)break t;Kb(J[c+84>>2])}if(H[c+283|0]>=0)break s;Kb(J[c+272>>2])}if(H[c+267|0]>=0)break r;Kb(J[c+ -256>>2])}if(H[c+107|0]>=0)break q;Kb(J[c+96>>2])}if(H[c+251|0]>=0)break p;Kb(J[c+240>>2])}if(H[c+235|0]>=0)break o;Kb(J[c+224>>2])}if(H[c+119|0]>=0)break n;Kb(J[c+108>>2])}if(H[c+219|0]>=0)break m;Kb(J[c+208>>2])}if(H[c+203|0]>=0)break l;Kb(J[c+192>>2])}if(H[c+187|0]>=0)break k;Kb(J[c+176>>2])}if(H[c+131|0]>=0)break j;Kb(J[c+120>>2])}if(H[c+171|0]>=0)break i;Kb(J[c+160>>2])}if(H[c+155|0]>=0)break h;Kb(J[c+144>>2])}if(H[c+143|0]>=0)break a;Kb(J[c+132>>2]);break a}J[c+456>>2]=0;J[c+448>>2]=0;J[c+452>> -2]=0;J[195395]=0;H[c+436|0]=0;J[c+432>>2]=c+448;d=_(1078,24)|0;e=J[195395];J[195395]=0;pa:{qa:{if((e|0)!=1){J[c+452>>2]=d;J[c+448>>2]=d;J[195395]=0;J[c+456>>2]=d+24;e=ha(1957,c+456|0,b|0,b+24|0,d|0)|0;i=J[195395];J[195395]=0;if((i|0)!=1)break pa;a=Z()|0;J[c+452>>2]=d;break qa}a=Z()|0}Kc(c+432|0);Vb(b);break a}J[c+452>>2]=e;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;d=c+448|0;la(1959,b|0,d|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0, -d|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[c+432>>2]=a;J[c+436>>2]=4;J[c+440>>2]=-2147483640;e=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=e;e=J[99523];J[a>>2]=J[99522];J[a+4>>2]=e;J[a+16>>2]=0;J[195395]=0;J[c+416>>2]=0;H[c+427|0]=0;ia(1961,b|0,c+432|0,d|0,c+416|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+427|0]<0)Kb(J[c+416>>2]);if(H[c+443|0]< -0)Kb(J[c+432>>2]);a=J[c+448>>2];if(a){d=J[c+452>>2];e=a;if((d|0)!=(e|0)){while(1){if(H[d-1|0]<0)Kb(J[d-12>>2]);b=d-24|0;if(H[d-13|0]<0)Kb(J[b>>2]);d=b;if((b|0)!=(a|0))continue;break}e=J[c+448>>2]}J[c+452>>2]=a;Kb(e)}if(H[c+475|0]>=0)break f;Kb(J[c+464>>2])}xb=c+480|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[c+427|0]<0)Kb(J[c+416>>2]);if(H[c+443|0]>=0)break b;Kb(J[c+432>>2])}Hc(c+448|0)}if(H[c+475|0]<0)Kb(J[c+464>>2]);ba(a|0);B()}function v2(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;e=xb-480|0;xb=e;a:{b:{c:{d:{e:{f:{if(J[c>>2]!=32|J[c+4>>2]!=1)break f;c=J[d>>2];o=J[d+4>>2];if((c|0)==(o|0))break f;J[e+472>>2]=0;J[e+464>>2]=0;J[e+468>>2]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{while(1){i=J[c+12>>2];g=J[c+4>>2];b=J[c+8>>2];d=J[c>>2];J[195395]=0;h=+(d|0);j=+(b|0);d=h>j;b=e+132|0;k= -d?j:h;da(1863,b|0,+k,-1);f=J[195395];J[195395]=0;if((f|0)==1)break oa;J[195395]=0;b=aa(1954,b|0,0,398272)|0;f=J[195395];J[195395]=0;if((f|0)==1)break na;J[e+152>>2]=J[b+8>>2];f=J[b+4>>2];J[e+144>>2]=J[b>>2];J[e+148>>2]=f;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+144|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break ma;J[e+168>>2]=J[e+152>>2];J[e+152>>2]=0;b=J[e+148>>2];J[e+160>>2]=J[e+144>>2];J[e+164>>2]=b;J[e+144>>2]=0;J[e+148>>2]=0;J[195395]=0;l=+(i|0);m=+(g|0);i=l>24<0;b=aa(1864,e+160|0,(g?J[e+120>>2]:f)|0,(g?J[e+124>>2]:b)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break ka;J[e+184>>2]=J[b+8>>2];g=J[b+4>>2];J[e+176>>2]=J[b>>2];J[e+180>>2]=g;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+176|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ja;J[e+200>>2]=J[e+184>>2];J[e+184>>2]=0;b=J[e+180>>2];J[e+192>>2]=J[e+176>>2];J[e+196>>2]=b;J[e+176>>2]=0;J[e+ -180>>2]=0;J[195395]=0;b=ca(1858,e+192|0,404096)|0;g=J[195395];J[195395]=0;if((g|0)==1)break ia;J[e+216>>2]=J[b+8>>2];g=J[b+4>>2];J[e+208>>2]=J[b>>2];J[e+212>>2]=g;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=e+108|0;h=d?h:j;da(1863,b|0,+h,-1);d=J[195395];J[195395]=0;if((d|0)==1)break ha;J[195395]=0;f=b;b=K[e+119|0];d=b<<24>>24<0;b=aa(1864,e+208|0,(d?J[e+108>>2]:f)|0,(d?J[e+112>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ga;J[e+232>>2]=J[b+8>>2];d=J[b+4>>2];J[e+224>>2]=J[b>>2];J[e+228>> -2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+224|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break fa;J[e+248>>2]=J[e+232>>2];J[e+232>>2]=0;b=J[e+228>>2];J[e+240>>2]=J[e+224>>2];J[e+244>>2]=b;J[e+224>>2]=0;J[e+228>>2]=0;J[195395]=0;b=e+96|0;da(1863,b|0,+n,-1);d=J[195395];J[195395]=0;if((d|0)==1)break ea;J[195395]=0;f=b;b=K[e+107|0];d=b<<24>>24<0;b=aa(1864,e+240|0,(d?J[e+96>>2]:f)|0,(d?J[e+100>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break da;J[e+264>>2]=J[b+8>>2];d=J[b+4>>2];J[e+ -256>>2]=J[b>>2];J[e+260>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+256|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break ca;J[e+280>>2]=J[e+264>>2];J[e+264>>2]=0;b=J[e+260>>2];J[e+272>>2]=J[e+256>>2];J[e+276>>2]=b;J[e+256>>2]=0;J[e+260>>2]=0;J[195395]=0;b=e+84|0;da(1863,b|0,+h,-1);d=J[195395];J[195395]=0;if((d|0)==1)break ba;J[195395]=0;f=b;b=K[e+95|0];d=b<<24>>24<0;b=aa(1864,e+272|0,(d?J[e+84>>2]:f)|0,(d?J[e+88>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break aa;J[e+296>>2]= -J[b+8>>2];d=J[b+4>>2];J[e+288>>2]=J[b>>2];J[e+292>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+288|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break $;J[e+312>>2]=J[e+296>>2];J[e+296>>2]=0;b=J[e+292>>2];J[e+304>>2]=J[e+288>>2];J[e+308>>2]=b;J[e+288>>2]=0;J[e+292>>2]=0;J[195395]=0;b=e+72|0;h=i?m:l;da(1863,b|0,+h,-1);d=J[195395];J[195395]=0;if((d|0)==1)break _;J[195395]=0;f=b;b=K[e+83|0];d=b<<24>>24<0;b=aa(1864,e+304|0,(d?J[e+72>>2]:f)|0,(d?J[e+76>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d| -0)==1)break Z;J[e+328>>2]=J[b+8>>2];d=J[b+4>>2];J[e+320>>2]=J[b>>2];J[e+324>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+320|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break Y;J[e+344>>2]=J[e+328>>2];J[e+328>>2]=0;b=J[e+324>>2];J[e+336>>2]=J[e+320>>2];J[e+340>>2]=b;J[e+320>>2]=0;J[e+324>>2]=0;J[195395]=0;b=e+60|0;da(1863,b|0,+k,-1);d=J[195395];J[195395]=0;if((d|0)==1)break X;J[195395]=0;f=b;b=K[e+71|0];d=b<<24>>24<0;b=aa(1864,e+336|0,(d?J[e+60>>2]:f)|0,(d?J[e+64>>2]:b)|0)|0;d=J[195395]; -J[195395]=0;if((d|0)==1)break W;J[e+360>>2]=J[b+8>>2];d=J[b+4>>2];J[e+352>>2]=J[b>>2];J[e+356>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+352|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break V;J[e+376>>2]=J[e+360>>2];J[e+360>>2]=0;b=J[e+356>>2];J[e+368>>2]=J[e+352>>2];J[e+372>>2]=b;J[e+352>>2]=0;J[e+356>>2]=0;J[195395]=0;b=e+48|0;da(1863,b|0,+h,-1);d=J[195395];J[195395]=0;if((d|0)==1)break U;J[195395]=0;f=b;b=K[e+59|0];d=b<<24>>24<0;b=aa(1864,e+368|0,(d?J[e+48>>2]:f)|0,(d?J[e+52>> -2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break T;J[e+392>>2]=J[b+8>>2];d=J[b+4>>2];J[e+384>>2]=J[b>>2];J[e+388>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+384|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break S;J[e+408>>2]=J[e+392>>2];J[e+392>>2]=0;b=J[e+388>>2];J[e+400>>2]=J[e+384>>2];J[e+404>>2]=b;J[e+384>>2]=0;J[e+388>>2]=0;J[195395]=0;b=e+36|0;da(1863,b|0,+k,-1);d=J[195395];J[195395]=0;if((d|0)==1)break R;J[195395]=0;f=b;b=K[e+47|0];d=b<<24>>24<0;b=aa(1864,e+400|0,(d?J[e+ -36>>2]:f)|0,(d?J[e+40>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Q;J[e+424>>2]=J[b+8>>2];d=J[b+4>>2];J[e+416>>2]=J[b>>2];J[e+420>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+416|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break P;J[e+440>>2]=J[e+424>>2];J[e+424>>2]=0;b=J[e+420>>2];J[e+432>>2]=J[e+416>>2];J[e+436>>2]=b;J[e+416>>2]=0;J[e+420>>2]=0;J[195395]=0;b=e+24|0;da(1863,b|0,+n,-1);d=J[195395];J[195395]=0;if((d|0)==1)break O;J[195395]=0;f=b;b=K[e+35|0];d=b<<24>>24<0;b= -aa(1864,e+432|0,(d?J[e+24>>2]:f)|0,(d?J[e+28>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break N;J[e+456>>2]=J[b+8>>2];d=J[b+4>>2];J[e+448>>2]=J[b>>2];J[e+452>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+448|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break M;J[e+8>>2]=J[e+456>>2];J[e+456>>2]=0;d=J[e+452>>2];b=J[e+448>>2];J[e>>2]=b;J[e+4>>2]=d;J[e+448>>2]=0;J[e+452>>2]=0;J[195395]=0;f=b;b=H[e+11|0];d=(b|0)<0;aa(1864,e+464|0,(d?f:e)|0,(d?J[e+4>>2]:b&255)|0)|0;b=J[195395];J[195395]= -0;if((b|0)==1)break L;if(H[e+11|0]<0)Kb(J[e>>2]);if(H[e+459|0]<0)Kb(J[e+448>>2]);if(H[e+35|0]<0)Kb(J[e+24>>2]);if(H[e+443|0]<0)Kb(J[e+432>>2]);if(H[e+427|0]<0)Kb(J[e+416>>2]);if(H[e+47|0]<0)Kb(J[e+36>>2]);if(H[e+411|0]<0)Kb(J[e+400>>2]);if(H[e+395|0]<0)Kb(J[e+384>>2]);if(H[e+59|0]<0)Kb(J[e+48>>2]);if(H[e+379|0]<0)Kb(J[e+368>>2]);if(H[e+363|0]<0)Kb(J[e+352>>2]);if(H[e+71|0]<0)Kb(J[e+60>>2]);if(H[e+347|0]<0)Kb(J[e+336>>2]);if(H[e+331|0]<0)Kb(J[e+320>>2]);if(H[e+83|0]<0)Kb(J[e+72>>2]);if(H[e+315|0]< -0)Kb(J[e+304>>2]);if(H[e+299|0]<0)Kb(J[e+288>>2]);if(H[e+95|0]<0)Kb(J[e+84>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);if(H[e+107|0]<0)Kb(J[e+96>>2]);if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+235|0]<0)Kb(J[e+224>>2]);if(H[e+119|0]<0)Kb(J[e+108>>2]);if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+131|0]<0)Kb(J[e+120>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);if(H[e+143|0]<0)Kb(J[e+132>>2]);c=c+16| -0;if((o|0)!=(c|0))continue;break}J[195395]=0;b=aa(1962,e|0,397860,e+464|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break g;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;break w}a=Z()|0;break x}a=Z()|0;break y}a=Z()|0;break z}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;break C}a= -Z()|0;break D}a=Z()|0;break E}a=Z()|0;break F}a=Z()|0;break G}a=Z()|0;break H}a=Z()|0;break I}a=Z()|0;break J}a=Z()|0;break K}a=Z()|0;if(H[e+11|0]>=0)break K;Kb(J[e>>2])}if(H[e+459|0]>=0)break J;Kb(J[e+448>>2])}if(H[e+35|0]>=0)break I;Kb(J[e+24>>2])}if(H[e+443|0]>=0)break H;Kb(J[e+432>>2])}if(H[e+427|0]>=0)break G;Kb(J[e+416>>2])}if(H[e+47|0]>=0)break F;Kb(J[e+36>>2])}if(H[e+411|0]>=0)break E;Kb(J[e+400>>2])}if(H[e+395|0]>=0)break D;Kb(J[e+384>>2])}if(H[e+59|0]>=0)break C;Kb(J[e+48>>2])}if(H[e+379| -0]>=0)break B;Kb(J[e+368>>2])}if(H[e+363|0]>=0)break A;Kb(J[e+352>>2])}if(H[e+71|0]>=0)break z;Kb(J[e+60>>2])}if(H[e+347|0]>=0)break y;Kb(J[e+336>>2])}if(H[e+331|0]>=0)break x;Kb(J[e+320>>2])}if(H[e+83|0]>=0)break w;Kb(J[e+72>>2])}if(H[e+315|0]>=0)break v;Kb(J[e+304>>2])}if(H[e+299|0]>=0)break u;Kb(J[e+288>>2])}if(H[e+95|0]>=0)break t;Kb(J[e+84>>2])}if(H[e+283|0]>=0)break s;Kb(J[e+272>>2])}if(H[e+267|0]>=0)break r;Kb(J[e+256>>2])}if(H[e+107|0]>=0)break q;Kb(J[e+96>>2])}if(H[e+251|0]>=0)break p;Kb(J[e+ -240>>2])}if(H[e+235|0]>=0)break o;Kb(J[e+224>>2])}if(H[e+119|0]>=0)break n;Kb(J[e+108>>2])}if(H[e+219|0]>=0)break m;Kb(J[e+208>>2])}if(H[e+203|0]>=0)break l;Kb(J[e+192>>2])}if(H[e+187|0]>=0)break k;Kb(J[e+176>>2])}if(H[e+131|0]>=0)break j;Kb(J[e+120>>2])}if(H[e+171|0]>=0)break i;Kb(J[e+160>>2])}if(H[e+155|0]>=0)break h;Kb(J[e+144>>2])}if(H[e+143|0]>=0)break a;Kb(J[e+132>>2]);break a}J[e+456>>2]=0;J[e+448>>2]=0;J[e+452>>2]=0;J[195395]=0;H[e+436|0]=0;J[e+432>>2]=e+448;c=_(1078,24)|0;d=J[195395];J[195395]= -0;pa:{qa:{if((d|0)!=1){J[e+452>>2]=c;J[e+448>>2]=c;J[195395]=0;J[e+456>>2]=c+24;d=ha(1957,e+456|0,b|0,b+24|0,c|0)|0;i=J[195395];J[195395]=0;if((i|0)!=1)break pa;a=Z()|0;J[e+452>>2]=c;break qa}a=Z()|0}Kc(e+432|0);Vb(b);break a}J[e+452>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=e+448|0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;J[e+432>>2]=a;J[e+436>>2]=4;J[e+440>>2]=-2147483640;d=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=d;d=J[99523];J[a>>2]=J[99522];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[e+416>>2]=0;H[e+427|0]=0;ia(1961,b|0,e+432|0,c|0,e+416|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[e+427|0]<0)Kb(J[e+416>>2]);if(H[e+443|0]<0)Kb(J[e+432>>2]);a=J[e+448>>2];if(a){c=J[e+452>>2];d=a;if((c|0)!=(d|0)){while(1){if(H[c- -1|0]<0)Kb(J[c-12>>2]);b=c-24|0;if(H[c-13|0]<0)Kb(J[b>>2]);c=b;if((b|0)!=(a|0))continue;break}d=J[e+448>>2]}J[e+452>>2]=a;Kb(d)}if(H[e+475|0]>=0)break f;Kb(J[e+464>>2])}xb=e+480|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[e+427|0]<0)Kb(J[e+416>>2]);if(H[e+443|0]>=0)break b;Kb(J[e+432>>2])}Hc(e+448|0)}if(H[e+475|0]<0)Kb(J[e+464>>2]);ba(a|0);B()}function eba(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;k=xb-416|0;xb=k;g=J[a+ -608>>2];d=J[a+604>>2];w=1;q=J[a+584>>2];m=J[q+72>>2];e=J[q+68>>2];l=J[q+64>>2];a:{b:{c:{if((c|0)<=0)b=d;else{t=d+g|0;u=J[q+60>>2];o=J[q+12>>2];r=J[q+88>>2];while(1){d:{e:{f:{g:{h:{i:{if(m)break i;while(1){j:{k:{l:{if((e|0)>10){g=d;break l}if(d>>>0>=t>>>0){if(!e)break k;e=11;g=d;break l}h=e+8|0;g=d+1|0;l=K[K[d|0]+u|0]<2){e=h;break l}if(g>>>0>=t>>>0){e=11;break l}e=e+16|0;g=d+2|0;l=K[K[d+1|0]+u|0]<>>1|0;e=e-1|0;d=g;continue}}while(1){g= -e;m:{if((e|0)>7)break m;if(d>>>0>=t>>>0){g=8;if(e)break m;break h}l=K[K[d|0]+u|0]<>>1|0;if(!h)continue;break}f=l>>>1|0;h=g-1|0;e=h;n:{if((g|0)>1)break n;if(d>>>0>=t>>>0){e=1;if(h)break n;m=0;l=f;break h}f=K[K[d|0]+u|0]<>>1|0;e=e-1|0;g=0;if(!(f&1))break f;h=r;o:{p:{while(1){p=0;q:{while(1){r:{if((e|0)>11){f=e;break r}if(d>>>0>=t>>>0){f=12;if(e)break r;break g}j=e+8|0;i=d+1|0;l=K[K[d|0]+u|0]<3){f=j;d=i;break r}f=12;if(i>>>0>=t>>>0){d=i;break r}f=e+16|0;l=K[K[d+1|0]+u|0]<>>e|0;e=f-e|0;m=1;f=h;s:{t:switch(K[i|0]-7|0){case 0:i=J[i+4>>2];s=i+p|0;J[h>>2]=s;f=h+4|0;p=0;g=g+i|0;if((o|0)>(g|0))break s;m=0;break o;case 5:break p;case 2:case 4:break t;default:break q}f=J[i+4>>2];p=f+p|0;g=f+g|0;continue}break}while(1){u:{if((e|0)>12){i=e;break u}if(d>>>0>=t>>>0){i=13;if(e)break u;h=f;break g}n=e+8|0;j=d+1|0;l=K[K[d|0]+u|0]<4){i= -n;d=j;break u}i=13;if(j>>>0>=t>>>0){d=j;break u}i=e+16|0;l=K[K[d+1|0]+u|0]<>>e|0;e=i-e|0;i=K[j|0];if(i-10>>>0<2){i=J[j+4>>2];p=i+p|0;g=g+i|0;continue}break}v:{w:switch(i-8|0){case 0:i=J[j+4>>2];j=i+p|0;J[h+4>>2]=j;f=h+8|0;g=g+i|0;if((o|0)>(g|0))break v;m=0;break o;case 4:break p;default:break w}h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+304>>2]=g;J[k+300>>2]=i;J[k+296>>2]=h?280678:280699;J[k+292>>2]=m;J[k+ -288>>2]=n;Ob(j,287244,280595,k+288|0);m=0;break p}h=j|s?f:h;continue}break}f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+272>>2]=g;J[k+268>>2]=i;J[k+264>>2]=f?280678:280699;J[k+260>>2]=m;J[k+256>>2]=n;Ob(j,287244,280595,k+256|0);m=0;f=h}if(!p)break o;J[f>>2]=p;f=f+4|0}if((g|0)==(o|0))break d;h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];s=J[q+108>>2];J[k+248>>2]=o;J[k+244>>2]=g;J[k+240>>2]=i;J[k+236>>2]=h?280678:280699;J[k+232>>2]=s;J[k+228>>2]= -g>>>0>>0?281186:281260;J[k+224>>2]=n;yc(j,287244,280892,k+224|0);n=(g|0)>(o|0);x:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break x;while(1){f=f-4|0;g=g-J[f>>2]|0;n=(o|0)<(g|0);if((g|0)<=(o|0))break x;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f-r&4){J[f>>2]=0;f=f+4|0}J[f>>2]=o-((g|0)>0?g:0);f=f+4|0;break d}if(n)break e;break d}else{l=l>>>8|0;e=g-8|0;continue}}}if(!o){h=r;break b}c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];f=J[a+628>>2];e=J[a>>2];i=J[q+108>>2];J[k+408>>2]=o;J[k+404>>2]=0;J[k+400>>2]=h;J[k+ -396>>2]=c?280678:280699;J[k+392>>2]=i;J[k+388>>2]=281186;J[k+384>>2]=e;yc(f,287244,280892,k+384|0);J[r>>2]=o;if((o|0)>0){h=r+4|0;break b}J[r+4>>2]=0;h=r+8|0;break b}c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+368>>2]=g;J[k+364>>2]=f;J[k+360>>2]=c?280678:280699;J[k+356>>2]=j;J[k+352>>2]=i;yc(e,287244,280816,k+352|0);if(p){J[h>>2]=p;h=h+4|0}m=0;if((g|0)==(o|0))break b;c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+344>>2]=o;J[k+ -340>>2]=g;J[k+336>>2]=f;J[k+332>>2]=c?280678:280699;J[k+328>>2]=j;J[k+324>>2]=g>>>0>>0?281186:281260;J[k+320>>2]=i;yc(e,287244,280892,k+320|0);e=(g|0)>(o|0);y:{if((g|0)<=(o|0)|h>>>0<=r>>>0)break y;while(1){h=h-4|0;g=g-J[h>>2]|0;e=(o|0)<(g|0);if((g|0)<=(o|0))break y;if(h>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(h-r&4){J[h>>2]=0;h=h+4|0}J[h>>2]=o-((g|0)>0?g:0);h=h+4|0;break b}if(!e)break b;J[h+4>>2]=0;J[h>>2]=o;h=h+8|0;break b}z:{if((o|0)<=0){m=0;f=r;break z}f=J[q+84>>2];d=f+4|0;n=J[f>>2];i= -0;f=r;p=0;A:{B:{C:{D:{E:{F:{G:{H:{I:{while(1){j=e;J:{if((e|0)>6)break J;if(h>>>0>=t>>>0){j=7;if(e)break J;break c}l=K[K[h|0]+u|0]<>>e|0;e=j-e|0;K:{L:{M:{N:{O:{P:switch(K[m|0]-1|0){case 0:Q:{if((f|0)==(r|0)){j=d;break Q}j=d;if((g|0)<(n|0))break Q;while(1){m=J[d>>2];s=J[d+4>>2];j=d+8|0;d=j;n=(m+n|0)+s|0;if((n|0)<=(g|0))continue;break}}g=J[j>>2]+n|0;p=g+(i+p|0)|0;d=j+8|0;n=J[j+4>>2]+g|0;break K;case 1:if(!(f-r&4))break M;while(1){R:{if((e|0)> -12){i=e;break R}if(h>>>0>=t>>>0){i=13;if(!e)break c;break R}m=e+8|0;j=h+1|0;l=K[K[h|0]+u|0]<4){i=m;h=j;break R}i=13;if(j>>>0>=t>>>0){h=j;break R}i=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=i-e|0;i=K[j|0];if(i-10>>>0>=2){if((i|0)!=8)break D;j=J[j+4>>2];J[f>>2]=j+p;i=f+4|0;g=g+j|0;p=0;while(1){S:{if((e|0)>11){j=e;break S}if(h>>>0>=t>>>0){j=12;if(e)break S;f=i;break c}s=e+8|0;m=h+1|0;l=K[K[h|0]+u|0]<3){j=s;h=m;break S}j=12;if(m>>> -0>=t>>>0){h=m;break S}j=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=j-e|0;T:switch(K[m|0]-7|0){case 2:case 4:j=J[m+4>>2];p=j+p|0;g=g+j|0;continue;case 0:break T;default:break I}break}j=i;i=J[m+4>>2];J[j>>2]=i+p;g=g+i|0;break L}else{i=J[j+4>>2];p=i+p|0;g=g+i|0;continue}}case 5:J[f>>2]=o-g;d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+208>>2]=g;J[k+204>>2]=i;J[k+200>>2]=d?280678:280699;J[k+196>>2]=m;J[k+192>>2]=n;Ob(j,287244, -281456,k+192|0);f=f+4|0;break C;case 11:J[f>>2]=o-g;f=f+4|0;U:{if((e|0)>3){d=e;break U}if(h>>>0>=t>>>0){d=4;if(!e)break c;break U}d=e+8|0;l=K[K[h|0]+u|0]<>2];e=xb-32|0;xb=e;j=J[a+12>>2]&1024;n=J[(j?504:480)+a>>2];m=J[a+628>>2];s=J[a>>2];J[e+16>>2]=g;J[e+12>>2]=n;J[e+8>>2]=j?280678:280699;J[e+4>>2]=i;J[e>>2]=s;Ob(m,287244,280595,e);xb=e+32|0}l=l>>>4|0;e=d-4|0;m=1;break B;case 4:V:{if((f|0)==(r|0)){j=d;break V}j=d;if((g|0)<(n|0))break V;while(1){s=J[d>>2];v=J[d+4>>2]; -j=d+8|0;d=j;n=(n+s|0)+v|0;if((n|0)<=(g|0))continue;break}}d=(i+n|0)-J[m+4>>2]|0;J[f>>2]=d+p;g=d+g|0;d=j-4|0;n=n-J[d>>2]|0;f=f+4|0;break O;case 2:break N;case 3:break P;default:break G}W:{if((f|0)==(r|0)){j=d;break W}j=d;if((g|0)<(n|0))break W;while(1){s=J[d>>2];v=J[d+4>>2];j=d+8|0;d=j;n=(n+s|0)+v|0;if((n|0)<=(g|0))continue;break}}d=(i+p|0)+n|0;i=J[m+4>>2];J[f>>2]=d+i;d=j+4|0;g=i+n|0;n=J[j>>2]+n|0;f=f+4|0}p=0;break K}X:{if((f|0)==(r|0)){m=n;j=d;break X}j=d;m=n;if((g|0)<(n|0))break X;while(1){n=J[d>> -2];s=J[d+4>>2];j=d+8|0;d=j;m=(m+n|0)+s|0;if((m|0)<=(g|0))continue;break}}J[f>>2]=(i+p|0)+m;d=j+4|0;f=f+4|0;n=J[j>>2]+m|0;p=0;g=m;break K}while(1){Y:{if((e|0)>11){i=e;break Y}if(h>>>0>=t>>>0){i=12;if(!e)break c;break Y}m=e+8|0;j=h+1|0;l=K[K[h|0]+u|0]<3){i=m;h=j;break Y}i=12;if(j>>>0>=t>>>0){h=j;break Y}i=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=i-e|0;i=f;Z:switch(K[j|0]-7|0){case 2:case 4:i=J[j+4>>2];p=i+p|0;g=g+i|0;continue;case 0:break Z; -default:break I}break}i=J[j+4>>2];J[f>>2]=i+p;j=f+4|0;g=g+i|0;p=0;while(1){_:{if((e|0)>12){i=e;break _}if(h>>>0>=t>>>0){i=13;if(e)break _;f=j;break c}s=e+8|0;m=h+1|0;l=K[K[h|0]+u|0]<4){i=s;h=m;break _}i=13;if(m>>>0>=t>>>0){h=m;break _}i=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=i-e|0;i=K[m|0];if(i-10>>>0>=2){if((i|0)!=8){f=j;break D}i=J[m+4>>2];J[j>>2]=i+p;g=g+i|0}else{i=J[m+4>>2];p=i+p|0;g=g+i|0;continue}break}}p=0;f=f+8|0;if((r|0)==(f|0)){f= -r;break K}if((g|0)<(n|0)|(n|0)>=(o|0))break K;while(1){i=d+8|0;n=J[d+4>>2]+(J[d>>2]+n|0)|0;if((n|0)>(g|0)){d=i;break K}d=i;if((n|0)<(o|0))continue;break}}i=0-g|0;if((g|0)<(o|0))continue;break}m=0;if(!p)break A;if((g+p|0)<(o|0))break H;d=h;break E}d=J[a+12>>2]&1024;f=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+144>>2]=g;J[k+140>>2]=f;J[k+136>>2]=d?280678:280699;J[k+132>>2]=m;J[k+128>>2]=n;Ob(j,287244,280595,k+128|0);f=i;m=0;break B}$:{if((e|0)>0){n=e;break $}if(h>>>0>=t>>>0){n=1; -if(!e)break c;break $}n=e+8|0;l=K[K[h|0]+u|0]<>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+48>>2]=g;J[k+44>>2]=i;J[k+40>>2]=d?280678:280699;J[k+36>>2]=m;J[k+32>>2]=n;Ob(j,287244,280595,k+32|0);break C}l=l>>>1|0;e=n-1|0}J[f>>2]=p;f=f+4|0;break z}d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+176>>2]=g;J[k+172>>2]=i;J[k+168>>2]=d?280678:280699;J[k+164>>2]=m;J[k+160>>2]=n;Ob(j,287244,280595,k+ -160|0)}m=0}if(!p)break A;J[f>>2]=p;f=f+4|0}d=h}if((g|0)==(o|0))break d;h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];s=J[q+108>>2];J[k+24>>2]=o;J[k+20>>2]=g;J[k+16>>2]=i;J[k+12>>2]=h?280678:280699;J[k+8>>2]=s;J[k+4>>2]=g>>>0>>0?281186:281260;J[k>>2]=n;yc(j,287244,280892,k);n=(g|0)>(o|0);aa:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break aa;while(1){f=f-4|0;g=g-J[f>>2]|0;n=(o|0)<(g|0);if((g|0)<=(o|0))break aa;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f-r&4){J[f>>2]=0;f=f+4|0}J[f>> -2]=o-((g|0)>0?g:0);f=f+4|0;break d}if(!n)break d}J[f+4>>2]=0;J[f>>2]=o;f=f+8|0}Ab[J[q+76>>2]](b,r,f,o);J[f>>2]=0;h=J[q+88>>2];r=J[q+84>>2];J[q+88>>2]=r;J[q+84>>2]=h;J[q+108>>2]=J[q+108>>2]+1;h=J[q+8>>2];b=h+b|0;c=c-h|0;if((c|0)>0)continue;break}g=J[a+608>>2];b=J[a+604>>2]}J[q+72>>2]=m;J[q+64>>2]=l;J[q+68>>2]=e;b=(b-d|0)+g|0;break a}d=h;c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+112>>2]=g;J[k+108>>2]=h;J[k+104>>2]=c?280678:280699;J[k+100>>2]=j;J[k+96>>2]=i;yc(e, -287244,280816,k+96|0);if(p){J[f>>2]=p;f=f+4|0}m=0;if((g|0)==(o|0)){h=f;break b}c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+88>>2]=o;J[k+84>>2]=g;J[k+80>>2]=h;J[k+76>>2]=c?280678:280699;J[k+72>>2]=j;J[k+68>>2]=g>>>0>>0?281186:281260;J[k+64>>2]=i;yc(e,287244,280892,k- -64|0);e=(g|0)>(o|0);ba:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break ba;while(1){f=f-4|0;g=g-J[f>>2]|0;e=(o|0)<(g|0);if((g|0)<=(o|0))break ba;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f-r&4){J[f>> -2]=0;f=f+4|0}J[f>>2]=o-((g|0)>0?g:0);h=f+4|0;break b}if(!e){h=f;break b}J[f+4>>2]=0;J[f>>2]=o;h=f+8|0}Ab[J[q+76>>2]](b,r,h,o);J[q+72>>2]=m;J[q+64>>2]=l;J[q+68>>2]=0;w=-1;b=J[a+608>>2]+(J[a+604>>2]-d|0)|0}J[a+604>>2]=d;J[a+608>>2]=b;xb=k+416|0;return w|0}function $na(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=Q(0),m=0,n=0,o=0,p=0,q=0,r=0,s=Q(0),t=0,u=0,v=0,w=Q(0),x=0,y=0,z=0,A=Q(0),C=0,D=0,E=0,F=0,G=0,I=Q(0),L=0,O=0,R=0,S=Q(0),T=0,U=0,V=0,W=0,X=0,Y=0,_=0,$=0,ca=0,da=0,ea= -0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0;i=xb-80|0;xb=i;a:{b:{if(M[a+4>>2]<=b>>>0)break b;p=J[a>>2];f=p?p:169776;g=M[f+16>>2]<20?169776:J[f+12>>2];h=g+20|0;c:{if(H[g+15|0]&1){f=h+(b<<2)|0;f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);break c}f=h+(b<<1)|0;f=K[f|0]|K[f+1|0]<<8;f=((f<<8|f>>>8)&65535)<<1}b=b+1|0;t=169776;d:{if(H[g+15|0]&1){b=h+(b<<2)|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b<< -24|(b&65280)<<8|(b>>>8&65280|b>>>24);break d}b=h+(b<<1)|0;b=K[b|0]|K[b+1|0]<<8;b=((b<<8|b>>>8)&65535)<<1}e:{if(b>>>0>>0){f=0;break e}h=J[p+16>>2];g=K[g+16|0]|K[g+17|0]<<8|(K[g+18|0]<<16|K[g+19|0]<<24);g=f+(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))|0;n=h-g|0;h=h>>>0>=n>>>0?n:0;b=b-f|0;f=b>>>0>h>>>0?h:b;if(f>>>0<4){f=0;break e}L=g+J[p+12>>2]|0;t=L}b=K[t|0]|K[t+1|0]<<8;if(!b)break b;J[i+76>>2]=0;J[i+68>>2]=0;J[i+72>>2]=0;g=169776;h=J[a>>2];h=h?h:169776;h=M[h+16>>2]<20?169776:J[h+12>>2];h=K[h+4|0]| -K[h+5|0]<<8;f:{g:{h:{i:{j:{k:{l:{m:{if(b&128){b=K[t+2|0]|K[t+3|0]<<8;if(b)g=((b<<8|b>>>8)&65535)+L|0;J[195395]=0;J[i+56>>2]=g;b=aa(758,i+56|0,i+68|0,f+L|0)|0;p=J[195395];J[195395]=0;if((p|0)==1)break m;if(!b)break k;ca=J[i+56>>2]-g|0;b=K[t|0]|K[t+1|0]<<8}g=1;if(!(b&65295))break f;y=t+4|0;if(L>>>0>y>>>0)break f;T=f+L|0;if(T>>>0>>0)break f;b=T-y|0;if(b>>>0<4)break f;da=((h<<8|h>>>8)&65535)<<1;f=K[t+6|0]|K[t+7|0]<<8;f=P(da,f>>>5&2|f>>>7&1)+4|0;h=K[t+4|0]|K[t+5|0]<<8;h=(h<<8|h>>>8)&65535;if(b>>>0< -(f>>>0>h>>>0?f:h)>>>0)break f;na=i- -64|0;oa=i+60|0;pa=i+76|0;qa=i+72|0;b=J[a>>2];b=b?b:169776;b=M[b+16>>2]<20?169776:J[b+12>>2];f=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);g=K[b+6|0]|K[b+7|0]<<8;h=K[b+4|0]|K[b+5|0]<<8;J[i+64>>2]=0;J[i+56>>2]=0;J[i+60>>2]=0;ia=(h<<8|h>>>8)&65535;ra=P(ia,(g<<8|g>>>8)&65535);sa=b+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;u=J[d+4>>2];_=e?48:P(u,12);ea=(u|0)>0?u:0;ta=a+8|0;fa=u-4|0;n=e?fa:0;ua=n+1|0;ja=u-n|0;va=ja&1;ka=(n^-1)+u|0;W=J[42444];p=0;while(1){J[i+ -52>>2]=0;J[i+48>>2]=ra;J[i+44>>2]=sa;J[195395]=0;a=J[c+8>>2];b=J[c>>2];f=J[c+4>>2];J[i+16>>2]=0;J[i+32>>2]=a;a=J[i+48>>2];J[i+8>>2]=J[i+44>>2];J[i+12>>2]=a;J[i+24>>2]=b;J[i+28>>2]=f;l=VH(y,i+24|0,ia,i+8|0,ta);a=J[195395];J[195395]=0;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{if((a|0)!=1){if(l==Q(0))break n;a=K[t+2|0]|K[t+3|0]<<8;if(a)a=((a<<8|a>>>8)&65535)+L|0;else a=169776;a=a+ca|0;J[i+40>>2]=a;if(a>>>0>>0|a>>>0>T>>>0)break i;b=T-a|0;a=K[y|0]|K[y+1|0]<<8;a=(a<<8|a>>>8)&65535;if(b>>>0>>0)break i;if(ga)break v; -if((U|0)<0)break i;g=U;if(ea>>>0<=g>>>0){m=$;break w}while(1){g=((g>>>1|0)+g|0)+8|0;if(ea>>>0>g>>>0)continue;break}if(g>>>0<=357913941){m=ic($,P(g,12));if(m)break w}U=U^-1;g=0;break g}break u}if(_)Nb(P(n,12)+m|0,0,_);U=g;$=m;ga=ea}x=a+J[i+40>>2]|0;b=pa;g=qa;x:{if(K[y+2|0]&32){J[195395]=0;a=aa(758,i+40|0,i+56|0,x|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break x;b=na;g=oa;if(!a)break i}if((j|0)<0)break i;E=J[b>>2];h=j;z=J[g>>2];C=z?z:J[d+4>>2];v=(C|0)>0?C:0;y:{z:{if(h>>>0>>0){while(1){h=((h>>>1| -0)+h|0)+8|0;if(v>>>0>h>>>0)continue;break}if(h>>>0<=1073741823){f=ic(q,h<<2);if(f)break z}j=j^-1;g=0;break g}f=q;if((C|0)<=0)break y}g=0;a=J[i+40>>2];b=a+1|0;if(x>>>0>>0)break h;while(1){a=K[a|0];o=a&63;j=o+1|0;q=j+g|0;if(q>>>0>v>>>0)break h;A:{B:{if(a<<24>>24<0){if(g>>>0>=q>>>0)break A;Nb((g<<2)+f|0,0,(o<<2)+4|0);break B}if(a&64){if(x>>>0<(j<<1)+b>>>0)break h;if(g>>>0>=q>>>0)break A;a=0;j=j&3;if(j)while(1){D=K[b|0]|K[b+1|0]<<8;J[(g<<2)+f>>2]=(D<<8|D>>>8)<<16>>16;g=g+1|0;b=b+2|0;a=a+1|0;if((j| -0)!=(a|0))continue;break}if(o>>>0<3)break B;while(1){a=(g<<2)+f|0;j=K[b|0]|K[b+1|0]<<8;J[a>>2]=(j<<8|j>>>8)<<16>>16;j=K[b+2|0]|K[b+3|0]<<8;J[a+4>>2]=(j<<8|j>>>8)<<16>>16;j=K[b+4|0]|K[b+5|0]<<8;J[a+8>>2]=(j<<8|j>>>8)<<16>>16;j=a;a=K[b+6|0]|K[b+7|0]<<8;J[j+12>>2]=(a<<8|a>>>8)<<16>>16;b=b+8|0;g=g+4|0;if((q|0)!=(g|0))continue;break}break B}if(x>>>0>>0)break h;if(g>>>0>=q>>>0)break A;a=0;j=j&3;if(j)while(1){J[(g<<2)+f>>2]=H[b|0];g=g+1|0;b=b+1|0;a=a+1|0;if((j|0)!=(a|0))continue;break}if(o>>>0<3)break B; -while(1){a=(g<<2)+f|0;J[a>>2]=H[b|0];J[a+4>>2]=H[b+1|0];J[a+8>>2]=H[b+2|0];J[a+12>>2]=H[b+3|0];b=b+4|0;g=g+4|0;if((q|0)!=(g|0))continue;break}}g=q}a=b;if(g>>>0>>0){b=b+1|0;if(x>>>0>>0)break h;continue}break}J[i+40>>2]=a;j=h;q=f}if((k|0)<0)break i;h=k;C:{D:{if(v>>>0>h>>>0){while(1){h=((h>>>1|0)+h|0)+8|0;if(v>>>0>h>>>0)continue;break}if(h>>>0<=1073741823){f=ic(r,h<<2);if(f)break D}k=k^-1;break i}f=r;if((C|0)<=0)break C}g=0;a=J[i+40>>2];b=a+1|0;if(x>>>0>>0)break j;while(1){a=K[a|0];o=a&63;k= -o+1|0;r=k+g|0;if(r>>>0>v>>>0)break j;E:{F:{if(a<<24>>24<0){if(g>>>0>=r>>>0)break E;Nb((g<<2)+f|0,0,(o<<2)+4|0);break F}if(a&64){if(x>>>0<(k<<1)+b>>>0)break j;if(g>>>0>=r>>>0)break E;a=0;k=k&3;if(k)while(1){D=K[b|0]|K[b+1|0]<<8;J[(g<<2)+f>>2]=(D<<8|D>>>8)<<16>>16;g=g+1|0;b=b+2|0;a=a+1|0;if((k|0)!=(a|0))continue;break}if(o>>>0<3)break F;while(1){a=(g<<2)+f|0;k=K[b|0]|K[b+1|0]<<8;J[a>>2]=(k<<8|k>>>8)<<16>>16;k=K[b+2|0]|K[b+3|0]<<8;J[a+4>>2]=(k<<8|k>>>8)<<16>>16;k=K[b+4|0]|K[b+5|0]<<8;J[a+8>>2]=(k<<8| -k>>>8)<<16>>16;k=a;a=K[b+6|0]|K[b+7|0]<<8;J[k+12>>2]=(a<<8|a>>>8)<<16>>16;b=b+8|0;g=g+4|0;if((r|0)!=(g|0))continue;break}break F}if(x>>>0>>0)break j;if(g>>>0>=r>>>0)break E;a=0;k=k&3;if(k)while(1){J[(g<<2)+f>>2]=H[b|0];g=g+1|0;b=b+1|0;a=a+1|0;if((k|0)!=(a|0))continue;break}if(o>>>0<3)break F;while(1){a=(g<<2)+f|0;J[a>>2]=H[b|0];J[a+4>>2]=H[b+1|0];J[a+8>>2]=H[b+2|0];J[a+12>>2]=H[b+3|0];b=b+4|0;g=g+4|0;if((r|0)!=(g|0))continue;break}}g=r}a=b;if(g>>>0>>0){b=b+1|0;if(x>>>0>>0)break j;continue}break}J[i+ -40>>2]=a;k=h;r=f}if(z){if(e|X)break r;if((p|0)<0)break i;G:{a=p;b=J[d+4>>2];f=ha+b|0;X=(f|0)>0?f:0;H:{if(a>>>0>=X>>>0){O=Y;break H}while(1){a=((a>>>1|0)+a|0)+8|0;if(X>>>0>a>>>0)continue;break}if(a>>>0>357913941)break G;O=ic(Y,P(a,12));if(!O)break G;b=J[d+4>>2]}b=P(b,12);if(!b)break s;Mb(P(ha,12)+O|0,J[d>>2],b);break s}a=p^-1;O=Y;X=ha;if((p|0)<0)break q;p=a;g=0;break g}if(l!=Q(1))break t;b=n;if(u>>>0<=b>>>0)break o;while(1){a=P(b,12)+m|0;f=b<<2;N[a>>2]=N[a>>2]+Q(J[f+q>>2]);N[a+4>>2]=N[a+4>>2]+Q(J[f+ -r>>2]);b=b+1|0;if((u|0)!=(b|0))continue;break}break p}}b=Z()|0;if(k)Kb(r);if(j)Kb(q);if(J[i+56>>2]){J[i+60>>2]=0;Kb(J[i+64>>2])}if(F)Kb(V);if(U)Kb($);if(!p)break l;Kb(Y);break l}b=n;if(u>>>0<=b>>>0)break o;while(1){a=P(b,12)+m|0;f=b<<2;N[a>>2]=Q(Q(J[f+q>>2])*l)+N[a>>2];N[a+4>>2]=Q(Q(J[f+r>>2])*l)+N[a+4>>2];b=b+1|0;if((u|0)!=(b|0))continue;break}break p}ha=X;Y=O;break q}a=p}I:{if(!(n>>>0>>0&R))break I;b=J[d>>2];g=n;if(va){g=P(g,12);f=g+b|0;g=g+m|0;N[f>>2]=N[g>>2]+N[f>>2];N[f+4>>2]=N[g+4>>2]+N[f+ -4>>2];g=ua}if(!ka)break I;while(1){h=P(g,12);f=h+b|0;p=h+m|0;N[f>>2]=N[p>>2]+N[f>>2];N[f+4>>2]=N[p+4>>2]+N[f+4>>2];h=h+12|0;f=h+b|0;h=h+m|0;N[f>>2]=N[h>>2]+N[f>>2];N[f+4>>2]=N[h+4>>2]+N[f+4>>2];g=g+2|0;if((u|0)!=(g|0))continue;break}}if(_)Nb(P(n,12)+m|0,0,_);J:{if(l!=Q(1)){b=0;if(!C)break J;while(1){K:{if(b>>>0>=z>>>0){J[194120]=W;f=W;break K}f=J[E+(b<<2)>>2]}if(!(f>>>0>=ga>>>0|f>>>0>>0&e)){f=P(f,12)+m|0;H[f+8|0]=1;g=b<<2;N[f>>2]=Q(Q(J[g+q>>2])*l)+N[f>>2];N[f+4>>2]=Q(Q(J[g+r>>2])*l)+N[f+4>>2]}b= -b+1|0;if((C|0)!=(b|0))continue;break}break J}b=0;if(!C)break J;while(1){L:{if(b>>>0>=z>>>0){J[194120]=W;f=W;break L}f=J[E+(b<<2)>>2]}if(!(f>>>0>=ga>>>0|f>>>0>>0&e)){f=P(f,12)+m|0;H[f+8|0]=1;g=b<<2;N[f>>2]=N[f>>2]+Q(J[g+q>>2]);N[f+4>>2]=N[f+4>>2]+Q(J[g+r>>2])}b=b+1|0;if((C|0)!=(b|0))continue;break}}p=a}if(e|!z)break o;M:{if(G)break M;N:{if(!u){G=0;break N}h=J[d>>2];b=0;G=0;while(1){O:{if(!K[(P(b,12)+h|0)+9|0])break O;a=G+1|0;P:{Q:{if((F|0)>(G|0))break Q;if((F|0)>=0){f=F;if(a>>>0<=f>>>0)break Q; -while(1){f=((f>>>1|0)+f|0)+8|0;if(a>>>0>f>>>0)continue;break}if(f>>>0<=1073741823){g=ic(V,f<<2);h=J[d>>2];if(g)break P}F=F^-1}J[194120]=W;break O}g=V;f=F}J[(G<<2)+g>>2]=b;V=g;G=a;F=f}b=b+1|0;if((u|0)!=(b|0))continue;break}}if((F|0)<0)break i;if(G)break M;G=0;break o}wa=(G<<2)+V|0;h=0;x=V;while(1){g=0;v=J[x>>2];C=v+1|0;R:{if(C>>>0<=h>>>0)break R;f=v-h|0;o=f+1|0;z=o&3;a=0;b=h;if(f>>>0>=3){E=o&-4;o=0;while(1){f=P(b,12)+m|0;g=(((K[f+8|0]+g|0)+K[f+20|0]|0)+K[f+32|0]|0)+K[f+44|0]|0;b=b+4|0;o=o+4|0;if((E| -0)!=(o|0))continue;break}}if(!z)break R;while(1){g=K[(P(b,12)+m|0)+8|0]+g|0;b=b+1|0;a=a+1|0;if((z|0)!=(a|0))continue;break}}b=v-h|0;a=b-g|0;if(a>>>0>>0){a=a+1|0;b=h;S:while(1){f=b;b=b>>>0>>0?b+1|0:h;R=P(f,12);z=R+m|0;if(!K[z+8|0])continue;g=1;if(K[(P(b,12)+m|0)+8|0])continue;b=f;while(1){E=g&255;b=b>>>0>>0?b+1|0:h;D=P(b,12);o=D+m|0;la=K[o+8|0];g=la;if(E)continue;g=0;if(!la)continue;break}E=D+O|0;R=O+R|0;while(1){f=f>>>0>>0?f+1|0:h;if((f|0)==(b|0))continue S;g=P(f,12);D=g+O|0;g=g+m|0;A= -N[z>>2];I=N[o>>2];l=N[R>>2];s=N[E>>2];w=I==A?A:Q(0);T:{if(l==s)break T;S=N[D>>2];w=ls?A:I;if(S>=(l>=s?l:s))break T;w=Q(Q(Q(Q(S-l)/Q(s-l))*Q(I-A))+A)}N[g>>2]=w;A=N[z+4>>2];I=N[o+4>>2];l=N[R+4>>2];s=N[E+4>>2];w=I==A?A:Q(0);U:{if(l==s)break U;S=N[D+4>>2];w=ls?A:I;if(S>=(l>=s?l:s))break U;w=Q(Q(Q(Q(S-l)/Q(s-l))*Q(I-A))+A)}N[g+4>>2]=w;a=a-1|0;if(a)continue;break}break}}h=C;x=x+4|0;if((wa|0)!=(x|0))continue;break}}R=1}ma=ma+1|0;a=K[t| -0]|K[t+1|0]<<8;V:{if(ma>>>0>=((a<<8|a>>>8)&4095)>>>0)break V;a=K[y+2|0]|K[y+3|0]<<8;b=P(a>>>5&2|a>>>7&1,da)+y|0;a=b+4|0;if(a>>>0>>0|a>>>0>T>>>0)break V;f=T-a|0;if(f>>>0<4)break V;g=K[y|0]|K[y+1|0]<<8;ca=((g<<8|g>>>8)&65535)+ca|0;y=a;a=K[b+6|0]|K[b+7|0]<<8;a=P(a>>>5&2|a>>>7&1,da)+4|0;b=K[b+4|0]|K[b+5|0]<<8;b=(b<<8|b>>>8)&65535;if(f>>>0>=(a>>>0>b>>>0?a:b)>>>0)continue}break}g=1;if(!R|n>>>0>=u>>>0)break g;a=J[d>>2];if(ja&1){c=P(n,12);b=c+a|0;c=c+m|0;N[b>>2]=N[c>>2]+N[b>>2];N[b+4>>2]=N[c+4>>2]+N[b+ -4>>2];n=n+1|0}if(!ka)break g;while(1){c=P(n,12);b=c+a|0;d=c+m|0;N[b>>2]=N[d>>2]+N[b>>2];N[b+4>>2]=N[d+4>>2]+N[b+4>>2];c=c+12|0;b=c+a|0;c=c+m|0;N[b>>2]=N[c>>2]+N[b>>2];N[b+4>>2]=N[c+4>>2]+N[b+4>>2];n=n+2|0;if((u|0)!=(n|0))continue;break}break g}b=Z()|0}if(J[i+68>>2]){J[i+72>>2]=0;Kb(J[i+76>>2])}ba(b|0);B()}g=1;break f}r=f;k=h;g=0;break g}g=0;break g}q=f;j=h;g=0}if(k)Kb(r);if(j)Kb(q);if(J[i+56>>2]){J[i+60>>2]=0;Kb(J[i+64>>2])}if(F)Kb(V);if(U)Kb($);if(!p)break f;Kb(Y)}if(!J[i+68>>2])break a;J[i+72>> -2]=0;Kb(J[i+76>>2]);break a}g=1}xb=i+80|0;return g|0}function L2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-288|0;xb=f;a:{b:{c:{d:{e:{f:{g:{h:{if(!e|!c)break h;g=J[d>>2];if(!g)break h;J[f+280>>2]=0;J[f+272>>2]=0;J[f+276>>2]=0;b=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{while(1){x:{y:switch(K[b+e|0]-2|0){case 0:if((h&255)!=2){J[195395]=0;ca(1858,f+272|0,401744)|0;g=J[195395];J[195395]=0;if((g|0)==1)break b}g=(b<<3)+c|0;h=J[g>>2];J[195395]=0;i=f+224|0;da(1863, -i|0,+(h|0),-1);h=J[195395];J[195395]=0;z:{A:{B:{C:{D:{E:{F:{G:{H:{if((h|0)!=1){J[195395]=0;$(1811,i|0,44);h=J[195395];J[195395]=0;if((h|0)==1)break H;J[f+248>>2]=J[f+232>>2];J[f+232>>2]=0;h=J[f+228>>2];J[f+240>>2]=J[f+224>>2];J[f+244>>2]=h;J[f+224>>2]=0;J[f+228>>2]=0;g=J[g+4>>2];J[195395]=0;h=f+208|0;da(1863,h|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break G;J[195395]=0;j=h;g=K[f+219|0];h=g<<24>>24<0;g=aa(1864,f+240|0,(h?J[f+208>>2]:j)|0,(h?J[f+212>>2]:g)|0)|0;h=J[195395];J[195395]=0;if((h| -0)==1)break F;J[f+264>>2]=J[g+8>>2];h=J[g+4>>2];J[f+256>>2]=J[g>>2];J[f+260>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+256|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break E;J[f+16>>2]=J[f+264>>2];J[f+264>>2]=0;h=J[f+260>>2];g=J[f+256>>2];J[f+8>>2]=g;J[f+12>>2]=h;J[f+256>>2]=0;J[f+260>>2]=0;J[195395]=0;j=g;g=H[f+19|0];h=(g|0)<0;aa(1864,f+272|0,(h?j:f+8|0)|0,(h?J[f+12>>2]:g&255)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break D;if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+267|0]<0)Kb(J[f+256>> -2]);if(H[f+219|0]<0)Kb(J[f+208>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+224>>2]);h=2;break x}h=Z()|0;break a}h=Z()|0;break z}h=Z()|0;break A}h=Z()|0;break B}h=Z()|0;break C}h=Z()|0;if(H[f+19|0]>=0)break C;Kb(J[f+8>>2])}if(H[f+267|0]>=0)break B;Kb(J[f+256>>2])}if(H[f+219|0]>=0)break A;Kb(J[f+208>>2])}if(H[f+251|0]>=0)break z;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break a;Kb(J[f+224>>2]);break a;case 2:k=b+2|0;if(k>>>0>=g>>>0)break x;g=h&255;h=2;if((g|0)!=2){J[195395]=0;ca(1858,f+272|0, -401516)|0;g=J[195395];J[195395]=0;h=4;if((g|0)==1)break b}i=(b<<3)+c|0;g=J[i>>2];J[195395]=0;j=f+96|0;da(1863,j|0,+(g|0),-1);g=J[195395];J[195395]=0;I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{if((g|0)!=1){J[195395]=0;$(1811,j|0,44);g=J[195395];J[195395]=0;if((g|0)==1)break ma;J[f+120>>2]=J[f+104>>2];J[f+104>>2]=0;g=J[f+100>>2];J[f+112>>2]=J[f+96>>2];J[f+116>>2]=g;J[f+96>>2]=0;J[f+100>>2]=0;g=J[i+4>>2];J[195395]=0;j=f+84|0;da(1863, -j|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break la;J[195395]=0;l=j;g=K[f+95|0];j=g<<24>>24<0;g=aa(1864,f+112|0,(j?J[f+84>>2]:l)|0,(j?J[f+88>>2]:g)|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break ka;J[f+136>>2]=J[g+8>>2];j=J[g+4>>2];J[f+128>>2]=J[g>>2];J[f+132>>2]=j;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+128|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break ja;J[f+152>>2]=J[f+136>>2];J[f+136>>2]=0;g=J[f+132>>2];J[f+144>>2]=J[f+128>>2];J[f+148>>2]=g;J[f+128>>2]=0;J[f+132>>2]=0; -g=J[i+8>>2];J[195395]=0;j=f+72|0;da(1863,j|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break ia;J[195395]=0;l=j;g=K[f+83|0];j=g<<24>>24<0;g=aa(1864,f+144|0,(j?J[f+72>>2]:l)|0,(j?J[f+76>>2]:g)|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break ha;J[f+168>>2]=J[g+8>>2];j=J[g+4>>2];J[f+160>>2]=J[g>>2];J[f+164>>2]=j;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+160|0,44);g=J[195395];J[195395]=0;if((g|0)==1)break ga;J[f+184>>2]=J[f+168>>2];J[f+168>>2]=0;g=J[f+164>>2];J[f+176>>2]=J[f+160>>2]; -J[f+180>>2]=g;J[f+160>>2]=0;J[f+164>>2]=0;g=J[i+12>>2];J[195395]=0;i=f+60|0;da(1863,i|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break fa;J[195395]=0;j=i;g=K[f+71|0];i=g<<24>>24<0;g=aa(1864,f+176|0,(i?J[f+60>>2]:j)|0,(i?J[f+64>>2]:g)|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break ea;J[f+200>>2]=J[g+8>>2];i=J[g+4>>2];J[f+192>>2]=J[g>>2];J[f+196>>2]=i;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+192|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break da;J[f+216>>2]=J[f+200>>2];J[f+200>> -2]=0;g=J[f+196>>2];J[f+208>>2]=J[f+192>>2];J[f+212>>2]=g;J[f+192>>2]=0;J[f+196>>2]=0;i=(k<<3)+c|0;g=J[i>>2];J[195395]=0;k=f+48|0;da(1863,k|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break ca;J[195395]=0;j=k;g=K[f+59|0];k=g<<24>>24<0;g=aa(1864,f+208|0,(k?J[f+48>>2]:j)|0,(k?J[f+52>>2]:g)|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break ba;J[f+232>>2]=J[g+8>>2];k=J[g+4>>2];J[f+224>>2]=J[g>>2];J[f+228>>2]=k;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+224|0,44);g=J[195395];J[195395]=0;if((g| -0)==1)break aa;J[f+248>>2]=J[f+232>>2];J[f+232>>2]=0;g=J[f+228>>2];J[f+240>>2]=J[f+224>>2];J[f+244>>2]=g;J[f+224>>2]=0;J[f+228>>2]=0;g=J[i+4>>2];J[195395]=0;i=f+36|0;da(1863,i|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break $;J[195395]=0;j=i;g=K[f+47|0];i=g<<24>>24<0;g=aa(1864,f+240|0,(i?J[f+36>>2]:j)|0,(i?J[f+40>>2]:g)|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break _;J[f+264>>2]=J[g+8>>2];i=J[g+4>>2];J[f+256>>2]=J[g>>2];J[f+260>>2]=i;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+ -256|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break Z;J[f+16>>2]=J[f+264>>2];J[f+264>>2]=0;i=J[f+260>>2];g=J[f+256>>2];J[f+8>>2]=g;J[f+12>>2]=i;J[f+256>>2]=0;J[f+260>>2]=0;J[195395]=0;j=g;g=H[f+19|0];i=(g|0)<0;aa(1864,f+272|0,(i?j:f+8|0)|0,(i?J[f+12>>2]:g&255)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Y;if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+47|0]<0)Kb(J[f+36>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+ -219|0]<0)Kb(J[f+208>>2]);if(H[f+203|0]<0)Kb(J[f+192>>2]);if(H[f+71|0]<0)Kb(J[f+60>>2]);if(H[f+187|0]<0)Kb(J[f+176>>2]);if(H[f+171|0]<0)Kb(J[f+160>>2]);if(H[f+83|0]<0)Kb(J[f+72>>2]);if(H[f+155|0]<0)Kb(J[f+144>>2]);if(H[f+139|0]<0)Kb(J[f+128>>2]);if(H[f+95|0]<0)Kb(J[f+84>>2]);if(H[f+123|0]<0)Kb(J[f+112>>2]);if(H[f+107|0]<0)Kb(J[f+96>>2]);b=b+3|0;break x}h=Z()|0;break a}h=Z()|0;break I}h=Z()|0;break J}h=Z()|0;break K}h=Z()|0;break L}h=Z()|0;break M}h=Z()|0;break N}h=Z()|0;break O}h=Z()|0;break P}h=Z()| -0;break Q}h=Z()|0;break R}h=Z()|0;break S}h=Z()|0;break T}h=Z()|0;break U}h=Z()|0;break V}h=Z()|0;break W}h=Z()|0;break X}h=Z()|0;if(H[f+19|0]>=0)break X;Kb(J[f+8>>2])}if(H[f+267|0]>=0)break W;Kb(J[f+256>>2])}if(H[f+47|0]>=0)break V;Kb(J[f+36>>2])}if(H[f+251|0]>=0)break U;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break T;Kb(J[f+224>>2])}if(H[f+59|0]>=0)break S;Kb(J[f+48>>2])}if(H[f+219|0]>=0)break R;Kb(J[f+208>>2])}if(H[f+203|0]>=0)break Q;Kb(J[f+192>>2])}if(H[f+71|0]>=0)break P;Kb(J[f+60>>2])}if(H[f+187| -0]>=0)break O;Kb(J[f+176>>2])}if(H[f+171|0]>=0)break N;Kb(J[f+160>>2])}if(H[f+83|0]>=0)break M;Kb(J[f+72>>2])}if(H[f+155|0]>=0)break L;Kb(J[f+144>>2])}if(H[f+139|0]>=0)break K;Kb(J[f+128>>2])}if(H[f+95|0]>=0)break J;Kb(J[f+84>>2])}if(H[f+123|0]>=0)break I;Kb(J[f+112>>2])}if(H[f+107|0]>=0)break a;Kb(J[f+96>>2]);break a;case 4:break y;default:break x}h=(b<<3)+c|0;g=J[h>>2];J[195395]=0;i=f+208|0;da(1863,i|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break w;J[195395]=0;g=aa(1954,i|0,0,401944)|0; -i=J[195395];J[195395]=0;if((i|0)==1)break v;J[f+232>>2]=J[g+8>>2];i=J[g+4>>2];J[f+224>>2]=J[g>>2];J[f+228>>2]=i;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+224|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break u;J[f+248>>2]=J[f+232>>2];J[f+232>>2]=0;g=J[f+228>>2];J[f+240>>2]=J[f+224>>2];J[f+244>>2]=g;J[f+224>>2]=0;J[f+228>>2]=0;g=J[h+4>>2];J[195395]=0;h=f+192|0;da(1863,h|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break t;J[195395]=0;j=h;g=K[f+203|0];h=g<<24>>24<0;g=aa(1864,f+240|0, -(h?J[f+192>>2]:j)|0,(h?J[f+196>>2]:g)|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break s;J[f+264>>2]=J[g+8>>2];h=J[g+4>>2];J[f+256>>2]=J[g>>2];J[f+260>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+256|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break r;J[f+16>>2]=J[f+264>>2];J[f+264>>2]=0;h=J[f+260>>2];g=J[f+256>>2];J[f+8>>2]=g;J[f+12>>2]=h;J[f+256>>2]=0;J[f+260>>2]=0;J[195395]=0;j=g;g=H[f+19|0];h=(g|0)<0;aa(1864,f+272|0,(h?j:f+8|0)|0,(h?J[f+12>>2]:g&255)|0)|0;g=J[195395];J[195395]=0;if((g| -0)==1)break q;if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+203|0]<0)Kb(J[f+192>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+219|0]<0)Kb(J[f+208>>2]);h=6}b=b+1|0;g=J[d>>2];if(b>>>0>>0)continue;break}J[195395]=0;b=aa(1962,f+8|0,397860,f+272|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;J[f+264>>2]=0;J[f+256>>2]=0;J[f+260>>2]=0;J[195395]=0;H[f+244|0]=0;J[f+240>>2]=f+256;c=_(1078,24)|0;d=J[195395];J[195395]=0;if((d|0)==1)break k;J[f+260>>2]= -c;J[f+256>>2]=c;J[195395]=0;J[f+264>>2]=c+24;d=ha(1957,f+264|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break i;h=Z()|0;J[f+260>>2]=c;break j}h=Z()|0;break a}h=Z()|0;break l}h=Z()|0;break m}h=Z()|0;break n}h=Z()|0;break o}h=Z()|0;break p}h=Z()|0;if(H[f+19|0]>=0)break p;Kb(J[f+8>>2])}if(H[f+267|0]>=0)break o;Kb(J[f+256>>2])}if(H[f+203|0]>=0)break n;Kb(J[f+192>>2])}if(H[f+251|0]>=0)break m;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break l;Kb(J[f+224>>2])}if(H[f+219|0]>=0)break a;Kb(J[f+208>>2]); -break a}h=Z()|0}Kc(f+240|0);Vb(b);break a}J[f+260>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=f+256|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;$(1964,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break e;J[f+240>>2]= -a;J[f+244>>2]=4;J[f+248>>2]=-2147483640;d=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=d;d=J[99523];J[a>>2]=J[99522];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[f+224>>2]=0;H[f+235|0]=0;ia(1961,b|0,f+240|0,c|0,f+224|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);a=J[f+256>>2];if(a){b=J[f+260>>2];g=a;if((b|0)!=(g|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((a|0)!=(b|0))continue;break}g=J[f+256>>2]}J[f+260>> -2]=a;Kb(g)}if(H[f+283|0]>=0)break h;Kb(J[f+272>>2])}xb=f+288|0;return}h=Z()|0;break a}h=Z()|0;break c}h=Z()|0;break c}h=Z()|0;if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+251|0]>=0)break c;Kb(J[f+240>>2])}Hc(f+256|0);break a}h=Z()|0}if(H[f+283|0]<0)Kb(J[f+272>>2]);ba(h|0);B()}function K2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-288|0;xb=f;a:{b:{c:{d:{e:{f:{g:{h:{if(!e|!c)break h;g=J[d>>2];if(!g)break h;J[f+280>>2]=0;J[f+272>>2]=0;J[f+276>>2]=0;b=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{while(1){x:{y:switch(K[b+ -e|0]-2|0){case 0:if((h&255)!=2){J[195395]=0;ca(1858,f+272|0,401744)|0;g=J[195395];J[195395]=0;if((g|0)==1)break b}g=(b<<2)+c|0;h=I[g>>1];J[195395]=0;i=f+224|0;da(1863,i|0,+(h|0),-1);h=J[195395];J[195395]=0;z:{A:{B:{C:{D:{E:{F:{G:{H:{if((h|0)!=1){J[195395]=0;$(1811,i|0,44);h=J[195395];J[195395]=0;if((h|0)==1)break H;J[f+248>>2]=J[f+232>>2];J[f+232>>2]=0;h=J[f+228>>2];J[f+240>>2]=J[f+224>>2];J[f+244>>2]=h;J[f+224>>2]=0;J[f+228>>2]=0;g=I[g+2>>1];J[195395]=0;h=f+208|0;da(1863,h|0,+(g|0),-1);g=J[195395]; -J[195395]=0;if((g|0)==1)break G;J[195395]=0;j=h;g=K[f+219|0];h=g<<24>>24<0;g=aa(1864,f+240|0,(h?J[f+208>>2]:j)|0,(h?J[f+212>>2]:g)|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break F;J[f+264>>2]=J[g+8>>2];h=J[g+4>>2];J[f+256>>2]=J[g>>2];J[f+260>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+256|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break E;J[f+16>>2]=J[f+264>>2];J[f+264>>2]=0;h=J[f+260>>2];g=J[f+256>>2];J[f+8>>2]=g;J[f+12>>2]=h;J[f+256>>2]=0;J[f+260>>2]=0;J[195395]=0;j=g;g=H[f+19|0]; -h=(g|0)<0;aa(1864,f+272|0,(h?j:f+8|0)|0,(h?J[f+12>>2]:g&255)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break D;if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+219|0]<0)Kb(J[f+208>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+224>>2]);h=2;break x}h=Z()|0;break a}h=Z()|0;break z}h=Z()|0;break A}h=Z()|0;break B}h=Z()|0;break C}h=Z()|0;if(H[f+19|0]>=0)break C;Kb(J[f+8>>2])}if(H[f+267|0]>=0)break B;Kb(J[f+256>>2])}if(H[f+219|0]>=0)break A;Kb(J[f+208>>2])}if(H[f+251|0]>= -0)break z;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break a;Kb(J[f+224>>2]);break a;case 2:k=b+2|0;if(k>>>0>=g>>>0)break x;g=h&255;h=2;if((g|0)!=2){J[195395]=0;ca(1858,f+272|0,401516)|0;g=J[195395];J[195395]=0;h=4;if((g|0)==1)break b}i=(b<<2)+c|0;g=I[i>>1];J[195395]=0;j=f+96|0;da(1863,j|0,+(g|0),-1);g=J[195395];J[195395]=0;I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{if((g|0)!=1){J[195395]=0;$(1811,j|0,44);g=J[195395];J[195395]=0;if((g|0)== -1)break ma;J[f+120>>2]=J[f+104>>2];J[f+104>>2]=0;g=J[f+100>>2];J[f+112>>2]=J[f+96>>2];J[f+116>>2]=g;J[f+96>>2]=0;J[f+100>>2]=0;g=I[i+2>>1];J[195395]=0;j=f+84|0;da(1863,j|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break la;J[195395]=0;l=j;g=K[f+95|0];j=g<<24>>24<0;g=aa(1864,f+112|0,(j?J[f+84>>2]:l)|0,(j?J[f+88>>2]:g)|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break ka;J[f+136>>2]=J[g+8>>2];j=J[g+4>>2];J[f+128>>2]=J[g>>2];J[f+132>>2]=j;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+128| -0,32);g=J[195395];J[195395]=0;if((g|0)==1)break ja;J[f+152>>2]=J[f+136>>2];J[f+136>>2]=0;g=J[f+132>>2];J[f+144>>2]=J[f+128>>2];J[f+148>>2]=g;J[f+128>>2]=0;J[f+132>>2]=0;g=I[i+4>>1];J[195395]=0;j=f+72|0;da(1863,j|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break ia;J[195395]=0;l=j;g=K[f+83|0];j=g<<24>>24<0;g=aa(1864,f+144|0,(j?J[f+72>>2]:l)|0,(j?J[f+76>>2]:g)|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break ha;J[f+168>>2]=J[g+8>>2];j=J[g+4>>2];J[f+160>>2]=J[g>>2];J[f+164>>2]=j;J[g>>2]=0;J[g+4>> -2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+160|0,44);g=J[195395];J[195395]=0;if((g|0)==1)break ga;J[f+184>>2]=J[f+168>>2];J[f+168>>2]=0;g=J[f+164>>2];J[f+176>>2]=J[f+160>>2];J[f+180>>2]=g;J[f+160>>2]=0;J[f+164>>2]=0;g=I[i+6>>1];J[195395]=0;i=f+60|0;da(1863,i|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break fa;J[195395]=0;j=i;g=K[f+71|0];i=g<<24>>24<0;g=aa(1864,f+176|0,(i?J[f+60>>2]:j)|0,(i?J[f+64>>2]:g)|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break ea;J[f+200>>2]=J[g+8>>2];i=J[g+4>>2];J[f+192>> -2]=J[g>>2];J[f+196>>2]=i;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+192|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break da;J[f+216>>2]=J[f+200>>2];J[f+200>>2]=0;g=J[f+196>>2];J[f+208>>2]=J[f+192>>2];J[f+212>>2]=g;J[f+192>>2]=0;J[f+196>>2]=0;i=(k<<2)+c|0;g=I[i>>1];J[195395]=0;k=f+48|0;da(1863,k|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break ca;J[195395]=0;j=k;g=K[f+59|0];k=g<<24>>24<0;g=aa(1864,f+208|0,(k?J[f+48>>2]:j)|0,(k?J[f+52>>2]:g)|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break ba; -J[f+232>>2]=J[g+8>>2];k=J[g+4>>2];J[f+224>>2]=J[g>>2];J[f+228>>2]=k;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+224|0,44);g=J[195395];J[195395]=0;if((g|0)==1)break aa;J[f+248>>2]=J[f+232>>2];J[f+232>>2]=0;g=J[f+228>>2];J[f+240>>2]=J[f+224>>2];J[f+244>>2]=g;J[f+224>>2]=0;J[f+228>>2]=0;g=I[i+2>>1];J[195395]=0;i=f+36|0;da(1863,i|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break $;J[195395]=0;j=i;g=K[f+47|0];i=g<<24>>24<0;g=aa(1864,f+240|0,(i?J[f+36>>2]:j)|0,(i?J[f+40>>2]:g)|0)|0;i=J[195395]; -J[195395]=0;if((i|0)==1)break _;J[f+264>>2]=J[g+8>>2];i=J[g+4>>2];J[f+256>>2]=J[g>>2];J[f+260>>2]=i;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+256|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break Z;J[f+16>>2]=J[f+264>>2];J[f+264>>2]=0;i=J[f+260>>2];g=J[f+256>>2];J[f+8>>2]=g;J[f+12>>2]=i;J[f+256>>2]=0;J[f+260>>2]=0;J[195395]=0;j=g;g=H[f+19|0];i=(g|0)<0;aa(1864,f+272|0,(i?j:f+8|0)|0,(i?J[f+12>>2]:g&255)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break Y;if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+ -267|0]<0)Kb(J[f+256>>2]);if(H[f+47|0]<0)Kb(J[f+36>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+219|0]<0)Kb(J[f+208>>2]);if(H[f+203|0]<0)Kb(J[f+192>>2]);if(H[f+71|0]<0)Kb(J[f+60>>2]);if(H[f+187|0]<0)Kb(J[f+176>>2]);if(H[f+171|0]<0)Kb(J[f+160>>2]);if(H[f+83|0]<0)Kb(J[f+72>>2]);if(H[f+155|0]<0)Kb(J[f+144>>2]);if(H[f+139|0]<0)Kb(J[f+128>>2]);if(H[f+95|0]<0)Kb(J[f+84>>2]);if(H[f+123|0]<0)Kb(J[f+112>>2]);if(H[f+107|0]<0)Kb(J[f+96>>2]);b=b+3|0; -break x}h=Z()|0;break a}h=Z()|0;break I}h=Z()|0;break J}h=Z()|0;break K}h=Z()|0;break L}h=Z()|0;break M}h=Z()|0;break N}h=Z()|0;break O}h=Z()|0;break P}h=Z()|0;break Q}h=Z()|0;break R}h=Z()|0;break S}h=Z()|0;break T}h=Z()|0;break U}h=Z()|0;break V}h=Z()|0;break W}h=Z()|0;break X}h=Z()|0;if(H[f+19|0]>=0)break X;Kb(J[f+8>>2])}if(H[f+267|0]>=0)break W;Kb(J[f+256>>2])}if(H[f+47|0]>=0)break V;Kb(J[f+36>>2])}if(H[f+251|0]>=0)break U;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break T;Kb(J[f+224>>2])}if(H[f+59|0]>= -0)break S;Kb(J[f+48>>2])}if(H[f+219|0]>=0)break R;Kb(J[f+208>>2])}if(H[f+203|0]>=0)break Q;Kb(J[f+192>>2])}if(H[f+71|0]>=0)break P;Kb(J[f+60>>2])}if(H[f+187|0]>=0)break O;Kb(J[f+176>>2])}if(H[f+171|0]>=0)break N;Kb(J[f+160>>2])}if(H[f+83|0]>=0)break M;Kb(J[f+72>>2])}if(H[f+155|0]>=0)break L;Kb(J[f+144>>2])}if(H[f+139|0]>=0)break K;Kb(J[f+128>>2])}if(H[f+95|0]>=0)break J;Kb(J[f+84>>2])}if(H[f+123|0]>=0)break I;Kb(J[f+112>>2])}if(H[f+107|0]>=0)break a;Kb(J[f+96>>2]);break a;case 4:break y;default:break x}h= -(b<<2)+c|0;g=I[h>>1];J[195395]=0;i=f+208|0;da(1863,i|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break w;J[195395]=0;g=aa(1954,i|0,0,401944)|0;i=J[195395];J[195395]=0;if((i|0)==1)break v;J[f+232>>2]=J[g+8>>2];i=J[g+4>>2];J[f+224>>2]=J[g>>2];J[f+228>>2]=i;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+224|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break u;J[f+248>>2]=J[f+232>>2];J[f+232>>2]=0;g=J[f+228>>2];J[f+240>>2]=J[f+224>>2];J[f+244>>2]=g;J[f+224>>2]=0;J[f+228>>2]=0;g=I[h+2>>1];J[195395]= -0;h=f+192|0;da(1863,h|0,+(g|0),-1);g=J[195395];J[195395]=0;if((g|0)==1)break t;J[195395]=0;j=h;g=K[f+203|0];h=g<<24>>24<0;g=aa(1864,f+240|0,(h?J[f+192>>2]:j)|0,(h?J[f+196>>2]:g)|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break s;J[f+264>>2]=J[g+8>>2];h=J[g+4>>2];J[f+256>>2]=J[g>>2];J[f+260>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[195395]=0;$(1811,f+256|0,32);g=J[195395];J[195395]=0;if((g|0)==1)break r;J[f+16>>2]=J[f+264>>2];J[f+264>>2]=0;h=J[f+260>>2];g=J[f+256>>2];J[f+8>>2]=g;J[f+12>>2]=h;J[f+256>> -2]=0;J[f+260>>2]=0;J[195395]=0;j=g;g=H[f+19|0];h=(g|0)<0;aa(1864,f+272|0,(h?j:f+8|0)|0,(h?J[f+12>>2]:g&255)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break q;if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+203|0]<0)Kb(J[f+192>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+219|0]<0)Kb(J[f+208>>2]);h=6}b=b+1|0;g=J[d>>2];if(b>>>0>>0)continue;break}J[195395]=0;b=aa(1962,f+8|0,397860,f+272|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;J[f+264>>2]=0; -J[f+256>>2]=0;J[f+260>>2]=0;J[195395]=0;H[f+244|0]=0;J[f+240>>2]=f+256;c=_(1078,24)|0;d=J[195395];J[195395]=0;if((d|0)==1)break k;J[f+260>>2]=c;J[f+256>>2]=c;J[195395]=0;J[f+264>>2]=c+24;d=ha(1957,f+264|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break i;h=Z()|0;J[f+260>>2]=c;break j}h=Z()|0;break a}h=Z()|0;break l}h=Z()|0;break m}h=Z()|0;break n}h=Z()|0;break o}h=Z()|0;break p}h=Z()|0;if(H[f+19|0]>=0)break p;Kb(J[f+8>>2])}if(H[f+267|0]>=0)break o;Kb(J[f+256>>2])}if(H[f+203|0]>=0)break n; -Kb(J[f+192>>2])}if(H[f+251|0]>=0)break m;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break l;Kb(J[f+224>>2])}if(H[f+219|0]>=0)break a;Kb(J[f+208>>2]);break a}h=Z()|0}Kc(f+240|0);Vb(b);break a}J[f+260>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=f+256|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;$(1964,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0; -ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break e;J[f+240>>2]=a;J[f+244>>2]=4;J[f+248>>2]=-2147483640;d=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=d;d=J[99523];J[a>>2]=J[99522];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[f+224>>2]=0;H[f+235|0]=0;ia(1961,b|0,f+240|0,c|0,f+224|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);a=J[f+256>>2];if(a){b=J[f+260>>2];g=a;if((b|0)!= -(g|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((a|0)!=(b|0))continue;break}g=J[f+256>>2]}J[f+260>>2]=a;Kb(g)}if(H[f+283|0]>=0)break h;Kb(J[f+272>>2])}xb=f+288|0;return}h=Z()|0;break a}h=Z()|0;break c}h=Z()|0;break c}h=Z()|0;if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+251|0]>=0)break c;Kb(J[f+240>>2])}Hc(f+256|0);break a}h=Z()|0}if(H[f+283|0]<0)Kb(J[f+272>>2]);ba(h|0);B()}function kg(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,w=0,x=0;o=xb-32|0;xb=o;g=a+148|0;while(1){a:{f=J[g>>2];if(f)break a;if(!J[a+48>>2]){f=169776;break a}f=oj(g);if(!f)f=169776;i=J[g>>2];J[g>>2]=i?i:f;if(!i)break a;lg(f);continue}break}b:{if(M[f+4>>2]<=b>>>0){a=0;break b}J[o+24>>2]=d;J[o+20>>2]=c;J[o+12>>2]=0;H[o+28|0]=(e|0)!=0;J[o+16>>2]=a;f=J[a+148>>2];c:{if(f)break c;while(1){if(!J[a+48>>2]){f=169776;break c}f=oj(g);if(!f)f=169776;c=J[g>>2];J[g>>2]=c?c:f;if(!c)break c;lg(f);f=J[g>>2];if(!f)continue;break}}e=169776;c=J[f>>2];c=c?c:169776;c=M[c+ -16>>2]<4?169776:J[c+12>>2];d:{if((K[c|0]|K[c+1|0]<<8)!=256)break d;f=169776;d=K[c+8|0]|K[c+9|0]<<8;if(d)f=c+((d<<8|d>>>8)&65535)|0;c=K[f|0]|K[f+1|0]<<8;if(((c<<8|c>>>8)&65535)>>>0<=b>>>0)break d;c=(b<<1)+f|0;c=K[c+2|0]|K[c+3|0]<<8;if(!c)break d;e=((c<<8|c>>>8)&65535)+f|0}while(1){e:{f=J[g>>2];if(f)break e;if(!J[a+48>>2]){f=169776;break e}f=oj(g);if(!f)f=169776;c=J[g>>2];J[g>>2]=c?c:f;if(!c)break e;lg(f);continue}break}a=0;if(M[f+4>>2]<=b>>>0)break b;g=b<<2;c=J[g+J[f+8>>2]>>2];f:{if(c)break f;while(1){c= -J[f>>2];c=c?c:169776;c=Eo(ht(M[c+16>>2]<4?169776:J[c+12>>2],b));if(!c)break b;i=g+J[f+8>>2]|0;d=J[i>>2];J[i>>2]=d?d:c;if(!d)break f;Kb(c);c=J[g+J[f+8>>2]>>2];if(!c)continue;break}}b=0;k=o+12|0;g:{if(!J[k+12>>2])break g;a=J[J[k+8>>2]>>2];if(!(J[c>>2]>>>(a>>>4)&1)|!(J[c+4>>2]>>>a&1)|!(J[c+8>>2]>>>(a>>>9)&1))break g;a=K[e+4|0]|K[e+5|0]<<8;if(!a)break g;b=K[e|0]|K[e+1|0]<<8;w=(b<<8|b>>>8)&65535;s=e+4|0;t=(a<<8|a>>>8)&65535;x=t>>>0<=1?1:t;a=0;b=1;while(1){c=K[s|0]|K[s+1|0]<<8;c=((c<<8|c>>>8)&65535)>>> -0<=a>>>0?169776:((a<<1)+s|0)+2|0;c=K[c|0]|K[c+1|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+e|0;else c=169776;f=w;h:{i:{j:{while(1){k:{d=0;if((f|0)!=7){l:switch(f-1|0){case 0:m:{n:{o:{f=K[c|0]|K[c+1|0]<<8;switch(((f<<8|f>>>8)&65535)-1|0){case 1:break n;case 0:break o;default:break j}}if(J[k+12>>2]!=1)break j;f=K[c+2|0]|K[c+3|0]<<8;d=169776;if(!f)break m;d=((f<<8|f>>>8)&65535)+c|0;break m}if(J[k+12>>2]!=1)break j;f=K[c+2|0]|K[c+3|0]<<8;d=169776;if(!f)break m;d=((f<<8|f>>>8)&65535)+c|0}d=(ld(d,J[J[k+8>>2]>>2])| -0)!=-1;break h;case 1:if((K[c|0]|K[c+1|0]<<8)!=256|J[k+12>>2]!=1)break j;break i;case 2:if((K[c|0]|K[c+1|0]<<8)!=256|J[k+12>>2]!=1)break j;break i;case 3:if((K[c|0]|K[c+1|0]<<8)!=256)break j;f=K[c+2|0]|K[c+3|0]<<8;if(f)f=((f<<8|f>>>8)&65535)+c|0;else f=169776;f=ld(f,J[J[k+8>>2]>>2]);if((f|0)==-1)break j;d=K[c+4|0]|K[c+5|0]<<8;d=f>>>0>=((d<<8|d>>>8)&65535)>>>0?169776:((f<<1)+c|0)+6|0;d=K[d|0]|K[d+1|0]<<8;if(d)i=((d<<8|d>>>8)&65535)+c|0;else i=169776;c=K[i|0]|K[i+1|0]<<8;p:{q:{if(c){h=(c<<8|c>>>8)& -65535;f=i+2|0;while(1){r:{d=J[k+12>>2];c=K[f|0]|K[f+1|0]<<8;if(c)g=i+((c<<8|c>>>8)&65535)|0;else g=169776;c=K[g+2|0]|K[g+3|0]<<8;if((d|0)!=((c<<8|c>>>8)&65535))break r;c=1;if(d>>>0<2)break p;while(1){d=K[g+2|0]|K[g+3|0]<<8;d=((d<<8|d>>>8)&65535)>>>0<=c>>>0?169776:(g+(c<<1)|0)+2|0;d=K[d|0]|K[d+1|0]<<8;if(J[J[k+8>>2]+(c<<2)>>2]!=((d<<8|d>>>8)&65535))break r;d=1;c=c+1|0;if(c>>>0>2])continue;break}break q}f=f+2|0;h=h-1|0;if(h)continue;break}}d=0}c=d}d=c;break h;case 4:s:{t:{u:{f=K[c|0]|K[c+1| -0]<<8;switch(((f<<8|f>>>8)&65535)-1|0){case 2:break s;case 1:break t;case 0:break u;default:break j}}d=K[c+2|0]|K[c+3|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+c|0;else d=169776;d=ld(d,J[J[k+8>>2]>>2]);f=K[c+4|0]|K[c+5|0]<<8;d=d>>>0>=((f<<8|f>>>8)&65535)>>>0?169776:((d<<1)+c|0)+6|0;d=K[d|0]|K[d+1|0]<<8;if(d)g=((d<<8|d>>>8)&65535)+c|0;else g=169776;c=K[g|0]|K[g+1|0]<<8;v:{w:{if(c){h=(c<<8|c>>>8)&65535;f=g+2|0;i=J[k+12>>2];while(1){x:{c=K[f|0]|K[f+1|0]<<8;if(c)d=g+((c<<8|c>>>8)&65535)|0;else d=169776;c=K[d| -0]|K[d+1|0]<<8;j=(c<<8|c>>>8)&65535;if((j|0)!=(i|0))break x;c=1;if(j>>>0<2)break v;j=d+2|0;l=J[k+8>>2];c=1;while(1){d=j+(c<<1)|0;d=K[d|0]|K[d+1|0]<<8;if(J[l+(c<<2)>>2]!=((d<<8|d>>>8)&65535))break x;d=1;c=c+1|0;if((i|0)!=(c|0))continue;break}break w}f=f+2|0;h=h-1|0;if(h)continue;break}}d=0}c=d}d=c;break h}i=J[J[k+8>>2]>>2];f=0;y:{z:{A:{B:{d=K[c+4|0]|K[c+5|0]<<8;if(d)g=((d<<8|d>>>8)&65535)+c|0;else g=169776;d=K[g|0]|K[g+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break A;case 0:break B;default:break y}}f= -K[g+4|0]|K[g+5|0]<<8;h=(f<<8|f>>>8)&65535;f=K[g+2|0]|K[g+3|0]<<8;f=i-((f<<8|f>>>8)&65535)|0;d=169776;if(h>>>0<=f>>>0)break z;d=(g+(f<<1)|0)+6|0;break z}d=170426;f=K[g+2|0]|K[g+3|0]<<8;C:{if(!f)break C;m=g+4|0;f=((f<<8|f>>>8)&65535)-1|0;h=0;while(1){j=f+h>>>1|0;l=m+P(j,6)|0;n=K[l|0]|K[l+1|0]<<8;D:{if(i>>>0>=((n<<8|n>>>8)&65535)>>>0){h=K[l+2|0]|K[l+3|0]<<8;if(i>>>0>((h<<8|h>>>8)&65535)>>>0){h=j+1|0;break D}d=m+P(j,6)|0;break C}f=j-1|0}if((f|0)>=(h|0))continue;break}}d=d+4|0}d=K[d|0]|K[d+1|0]<<8;f=(d<< -8|d>>>8)&65535}i=169776;d=K[c+6|0]|K[c+7|0]<<8;d=((d<<8|d>>>8)&65535)>>>0<=f>>>0?169776:((f<<1)+c|0)+8|0;d=K[d|0]|K[d+1|0]<<8;if(d)i=((d<<8|d>>>8)&65535)+c|0;c=K[i|0]|K[i+1|0]<<8;E:{F:{if(c){j=(c<<8|c>>>8)&65535;q=g+4|0;d=i+2|0;while(1){G:{c=K[d|0]|K[d+1|0]<<8;if(c)f=((c<<8|c>>>8)&65535)+i|0;else f=169776;c=K[f|0]|K[f+1|0]<<8;n=(c<<8|c>>>8)&65535;if((n|0)!=J[k+12>>2])break G;c=1;H:{if(n>>>0>=2){u=f+2|0;break H}d=1;break E}while(1){f=u+(c<<1)|0;f=K[f|0]|K[f+1|0]<<8;v=(f<<8|f>>>8)&65535;m=J[J[k+8>> -2]+(c<<2)>>2];f=0;I:{J:{K:{L:{h=K[g|0]|K[g+1|0]<<8;switch(((h<<8|h>>>8)&65535)-1|0){case 0:break L;case 1:break K;default:break I}}h=K[g+4|0]|K[g+5|0]<<8;l=(h<<8|h>>>8)&65535;h=K[g+2|0]|K[g+3|0]<<8;h=m-((h<<8|h>>>8)&65535)|0;f=169776;if(l>>>0<=h>>>0)break J;f=(g+(h<<1)|0)+6|0;break J}f=K[g+2|0]|K[g+3|0]<<8;M:{if(f){f=((f<<8|f>>>8)&65535)-1|0;h=0;while(1){p=f+h>>>1|0;l=q+P(p,6)|0;r=K[l|0]|K[l+1|0]<<8;N:{if(m>>>0>=((r<<8|r>>>8)&65535)>>>0){h=K[l+2|0]|K[l+3|0]<<8;if(m>>>0<=((h<<8|h>>>8)&65535)>>>0)break M; -h=p+1|0;break N}f=p-1|0}if((f|0)>=(h|0))continue;break}}l=170426}f=l+4|0}f=K[f|0]|K[f+1|0]<<8;f=(f<<8|f>>>8)&65535}if((f|0)!=(v|0))break G;f=1;c=c+1|0;if((n|0)!=(c|0))continue;break}break F}d=d+2|0;j=j-1|0;if(j)continue;break}}f=0}d=f}break h}f=K[c+2|0]|K[c+3|0]<<8;f=f<<8|f>>>8;g=f&65535;if((g|0)!=J[k+12>>2])break j;d=1;if((f&65535)>>>0<2)break j;i=c+6|0;f=1;while(1){d=i+(f<<1)|0;d=K[d|0]|K[d+1|0]<<8;h=ld(d?((d<<8|d>>>8)&65535)+c|0:169776,J[J[k+8>>2]+(f<<2)>>2]);d=(h|0)!=-1;if((h|0)==-1)break j;f= -f+1|0;if((g|0)!=(f|0))continue;break}break j;case 7:break k;case 5:break l;default:break j}O:P:{Q:{R:{S:{f=K[c|0]|K[c+1|0]<<8;switch(((f<<8|f>>>8)&65535)-1|0){case 2:break Q;case 1:break R;case 0:break S;default:break P}}d=K[c+2|0]|K[c+3|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+c|0;else d=169776;d=ld(d,J[J[k+8>>2]>>2]);f=K[c+4|0]|K[c+5|0]<<8;d=d>>>0>=((f<<8|f>>>8)&65535)>>>0?169776:((d<<1)+c|0)+6|0;d=K[d|0]|K[d+1|0]<<8;if(d)g=((d<<8|d>>>8)&65535)+c|0;else g=169776;c=K[g|0]|K[g+1|0]<<8;T:U:{if(c){d=(c<<8| -c>>>8)&65535;h=g+2|0;m=K[k+16|0];while(1){c=K[h|0]|K[h+1|0]<<8;if(c)c=g+((c<<8|c>>>8)&65535)|0;else c=169776;f=K[c|0]|K[c+1|0]<<8;l=((((f<<8|f>>>8)&65535)<<1)+c|0)+2|0;c=K[l|0]|K[l+1|0]<<8;j=(c<<8|c>>>8)&65535;V:{if(m){c=l+(c?j<<1:2)|0;if(f|(K[c|0]|K[c+1|0]<<8))break V}if((j|0)!=J[k+12>>2])break V;i=1;if(j>>>0<2)break T;c=J[k+8>>2];f=1;while(1){i=l+(f<<1)|0;i=K[i|0]|K[i+1|0]<<8;if(J[c+(f<<2)>>2]!=((i<<8|i>>>8)&65535))break V;i=1;f=f+1|0;if((j|0)!=(f|0))continue;break}break U}h=h+2|0;d=d-1|0;if(d)continue; -break}}i=0}d=i;break O}j=J[J[k+8>>2]>>2];f=0;W:{X:{Y:{Z:{d=K[c+6|0]|K[c+7|0]<<8;if(d)g=((d<<8|d>>>8)&65535)+c|0;else g=169776;d=K[g|0]|K[g+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break Y;case 0:break Z;default:break W}}f=K[g+4|0]|K[g+5|0]<<8;i=(f<<8|f>>>8)&65535;f=K[g+2|0]|K[g+3|0]<<8;f=j-((f<<8|f>>>8)&65535)|0;d=169776;if(i>>>0<=f>>>0)break X;d=(g+(f<<1)|0)+6|0;break X}i=170426;d=K[g+2|0]|K[g+3|0]<<8;_:{if(!d)break _;m=g+4|0;f=((d<<8|d>>>8)&65535)-1|0;h=0;while(1){d=f+h>>>1|0;l=m+P(d,6)| -0;n=K[l|0]|K[l+1|0]<<8;$:{if(j>>>0>=((n<<8|n>>>8)&65535)>>>0){h=K[l+2|0]|K[l+3|0]<<8;if(j>>>0>((h<<8|h>>>8)&65535)>>>0){h=d+1|0;break $}i=m+P(d,6)|0;break _}f=d-1|0}if((f|0)>=(h|0))continue;break}}d=i+4|0}d=K[d|0]|K[d+1|0]<<8;f=(d<<8|d>>>8)&65535}d=169776;i=K[c+10|0]|K[c+11|0]<<8;f=((i<<8|i>>>8)&65535)>>>0<=f>>>0?169776:((f<<1)+c|0)+12|0;f=K[f|0]|K[f+1|0]<<8;if(f)d=((f<<8|f>>>8)&65535)+c|0;c=K[d|0]|K[d+1|0]<<8;aa:{ba:{if(c){p=(c<<8|c>>>8)&65535;u=g+4|0;i=d+2|0;while(1){ca:{c=K[i|0]|K[i+1|0]<<8;if(c)c= -((c<<8|c>>>8)&65535)+d|0;else c=169776;f=K[c|0]|K[c+1|0]<<8;l=((((f<<8|f>>>8)&65535)<<1)+c|0)+2|0;c=K[l|0]|K[l+1|0]<<8;m=(c<<8|c>>>8)&65535;c=(c?m<<1:2)+l|0;if((K[k+16|0]?K[c|0]|K[c+1|0]<<8|f:0)|(m|0)!=J[k+12>>2])break ca;c=1;if(m>>>0<2)break aa;while(1){f=l+(c<<1)|0;f=K[f|0]|K[f+1|0]<<8;v=(f<<8|f>>>8)&65535;n=J[J[k+8>>2]+(c<<2)>>2];f=0;da:{ea:{fa:{ga:{h=K[g|0]|K[g+1|0]<<8;switch(((h<<8|h>>>8)&65535)-1|0){case 1:break fa;case 0:break ga;default:break da}}h=K[g+4|0]|K[g+5|0]<<8;j=(h<<8|h>>>8)&65535; -h=K[g+2|0]|K[g+3|0]<<8;h=n-((h<<8|h>>>8)&65535)|0;f=169776;if(j>>>0<=h>>>0)break ea;f=(g+(h<<1)|0)+6|0;break ea}f=K[g+2|0]|K[g+3|0]<<8;ha:{if(f){f=((f<<8|f>>>8)&65535)-1|0;h=0;while(1){q=f+h>>>1|0;j=u+P(q,6)|0;r=K[j|0]|K[j+1|0]<<8;ia:{if(n>>>0>=((r<<8|r>>>8)&65535)>>>0){h=K[j+2|0]|K[j+3|0]<<8;if(n>>>0<=((h<<8|h>>>8)&65535)>>>0)break ha;h=q+1|0;break ia}f=q-1|0}if((f|0)>=(h|0))continue;break}}j=170426}f=j+4|0}f=K[f|0]|K[f+1|0]<<8;f=(f<<8|f>>>8)&65535}if((f|0)!=(v|0))break ca;f=1;c=c+1|0;if((m|0)!= -(c|0))continue;break}break ba}i=i+2|0;p=p-1|0;if(p)continue;break}}f=0}c=f}d=c;break O}f=K[c+2|0]|K[c+3|0]<<8;i=(c+2|0)+(((f<<8|f>>>8)&65535)<<1)|0;g=K[i+2|0]|K[i+3|0]<<8;h=g<<8|g>>>8;g=h&65535;j=(i+2|0)+(g<<1)|0;if((f|(K[j+2|0]|K[j+3|0]<<8))!=0&K[k+16|0]!=0|(g|0)!=J[k+12>>2])break P;d=1;if((h&65535)>>>0<2)break P;i=i+4|0;f=1;while(1){d=i+(f<<1)|0;d=K[d|0]|K[d+1|0]<<8;h=ld(d?((d<<8|d>>>8)&65535)+c|0:169776,J[J[k+8>>2]+(f<<2)>>2]);d=(h|0)!=-1;if((h|0)==-1)break P;f=f+1|0;if((g|0)!=(f|0))continue;break}}break h}if((K[c| -0]|K[c+1|0]<<8)!=256)break j;d=K[c+2|0]|K[c+3|0]<<8;f=(d<<8|d>>>8)&65535;d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if(d)c=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+c|0;else c=169776;continue}break}if((K[c|0]|K[c+1|0]<<8)!=256|J[k+12>>2]!=1)break j;d=K[c+2|0]|K[c+3|0]<<8;if(d)c=((d<<8|d>>>8)&65535)+c|0;else c=169776;d=(ld(c,J[J[k+8>>2]>>2])|0)!=-1}break h}d=K[c+2|0]|K[c+3|0]<<8;if(d)c=((d<<8|d>>>8)&65535)+c|0;else c=169776;d=(ld(c,J[J[k+8>>2]>>2])|0)!=-1}if(d)break g;a=a+1|0;b=t>>>0>a>>>0; -if((a|0)!=(x|0))continue;break}}a=b}xb=o+32|0;return a}function l2(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;d=xb-464|0;xb=d;J[d+456>>2]=0;J[d+448>>2]=0;J[d+452>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{b=J[c>>2];g=J[c+4>>2];if((b|0)!=(g|0))while(1){h=O[b+16>>3];k=O[b+24>>3];i=O[b+8>>3];j=O[b>>3];J[195395]=0;c=d+132|0;da(1863, -c|0,+j,-1);e=J[195395];J[195395]=0;if((e|0)==1)break ha;J[195395]=0;c=aa(1954,c|0,0,398272)|0;e=J[195395];J[195395]=0;if((e|0)==1)break ga;J[d+152>>2]=J[c+8>>2];e=J[c+4>>2];J[d+144>>2]=J[c>>2];J[d+148>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+144|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break fa;J[d+168>>2]=J[d+152>>2];J[d+152>>2]=0;c=J[d+148>>2];J[d+160>>2]=J[d+144>>2];J[d+164>>2]=c;J[d+144>>2]=0;J[d+148>>2]=0;J[195395]=0;c=d+120|0;da(1863,c|0,+i,-1);e=J[195395];J[195395]=0;if((e| -0)==1)break ea;J[195395]=0;f=c;c=K[d+131|0];e=c<<24>>24<0;c=aa(1864,d+160|0,(e?J[d+120>>2]:f)|0,(e?J[d+124>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break da;J[d+184>>2]=J[c+8>>2];e=J[c+4>>2];J[d+176>>2]=J[c>>2];J[d+180>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=ca(1858,d+176|0,401744)|0;e=J[195395];J[195395]=0;if((e|0)==1)break ca;J[d+200>>2]=J[c+8>>2];e=J[c+4>>2];J[d+192>>2]=J[c>>2];J[d+196>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=d+108|0;h=j+h;da(1863,c|0,+h,-1);e= -J[195395];J[195395]=0;if((e|0)==1)break ba;J[195395]=0;f=c;c=K[d+119|0];e=c<<24>>24<0;c=aa(1864,d+192|0,(e?J[d+108>>2]:f)|0,(e?J[d+112>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break aa;J[d+216>>2]=J[c+8>>2];e=J[c+4>>2];J[d+208>>2]=J[c>>2];J[d+212>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+208|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break $;J[d+232>>2]=J[d+216>>2];J[d+216>>2]=0;c=J[d+212>>2];J[d+224>>2]=J[d+208>>2];J[d+228>>2]=c;J[d+208>>2]=0;J[d+212>>2]=0;J[195395]=0;c= -d+96|0;da(1863,c|0,+i,-1);e=J[195395];J[195395]=0;if((e|0)==1)break _;J[195395]=0;f=c;c=K[d+107|0];e=c<<24>>24<0;c=aa(1864,d+224|0,(e?J[d+96>>2]:f)|0,(e?J[d+100>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Z;J[d+248>>2]=J[c+8>>2];e=J[c+4>>2];J[d+240>>2]=J[c>>2];J[d+244>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+240|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break Y;J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0;c=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=c;J[d+240>>2]=0;J[d+ -244>>2]=0;J[195395]=0;c=d+84|0;da(1863,c|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break X;J[195395]=0;f=c;c=K[d+95|0];e=c<<24>>24<0;c=aa(1864,d+256|0,(e?J[d+84>>2]:f)|0,(e?J[d+88>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break W;J[d+280>>2]=J[c+8>>2];e=J[c+4>>2];J[d+272>>2]=J[c>>2];J[d+276>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+272|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break V;J[d+296>>2]=J[d+280>>2];J[d+280>>2]=0;c=J[d+276>>2];J[d+288>>2]=J[d+272>>2];J[d+292>> -2]=c;J[d+272>>2]=0;J[d+276>>2]=0;J[195395]=0;c=d+72|0;h=i+k;da(1863,c|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break U;J[195395]=0;f=c;c=K[d+83|0];e=c<<24>>24<0;c=aa(1864,d+288|0,(e?J[d+72>>2]:f)|0,(e?J[d+76>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break T;J[d+312>>2]=J[c+8>>2];e=J[c+4>>2];J[d+304>>2]=J[c>>2];J[d+308>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+304|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break S;J[d+328>>2]=J[d+312>>2];J[d+312>>2]=0;c=J[d+308>>2];J[d+ -320>>2]=J[d+304>>2];J[d+324>>2]=c;J[d+304>>2]=0;J[d+308>>2]=0;J[195395]=0;c=d+60|0;da(1863,c|0,+j,-1);e=J[195395];J[195395]=0;if((e|0)==1)break R;J[195395]=0;f=c;c=K[d+71|0];e=c<<24>>24<0;c=aa(1864,d+320|0,(e?J[d+60>>2]:f)|0,(e?J[d+64>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break Q;J[d+344>>2]=J[c+8>>2];e=J[c+4>>2];J[d+336>>2]=J[c>>2];J[d+340>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+336|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break P;J[d+360>>2]=J[d+344>>2];J[d+344>> -2]=0;c=J[d+340>>2];J[d+352>>2]=J[d+336>>2];J[d+356>>2]=c;J[d+336>>2]=0;J[d+340>>2]=0;J[195395]=0;c=d+48|0;da(1863,c|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break O;J[195395]=0;f=c;c=K[d+59|0];e=c<<24>>24<0;c=aa(1864,d+352|0,(e?J[d+48>>2]:f)|0,(e?J[d+52>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break N;J[d+376>>2]=J[c+8>>2];e=J[c+4>>2];J[d+368>>2]=J[c>>2];J[d+372>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+368|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break M;J[d+392>>2]= -J[d+376>>2];J[d+376>>2]=0;c=J[d+372>>2];J[d+384>>2]=J[d+368>>2];J[d+388>>2]=c;J[d+368>>2]=0;J[d+372>>2]=0;J[195395]=0;c=d+36|0;da(1863,c|0,+j,-1);e=J[195395];J[195395]=0;if((e|0)==1)break L;J[195395]=0;f=c;c=K[d+47|0];e=c<<24>>24<0;c=aa(1864,d+384|0,(e?J[d+36>>2]:f)|0,(e?J[d+40>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break K;J[d+408>>2]=J[c+8>>2];e=J[c+4>>2];J[d+400>>2]=J[c>>2];J[d+404>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+400|0,44);c=J[195395];J[195395]=0;if((c|0)== -1)break J;J[d+424>>2]=J[d+408>>2];J[d+408>>2]=0;c=J[d+404>>2];J[d+416>>2]=J[d+400>>2];J[d+420>>2]=c;J[d+400>>2]=0;J[d+404>>2]=0;J[195395]=0;c=d+24|0;da(1863,c|0,+i,-1);e=J[195395];J[195395]=0;if((e|0)==1)break I;J[195395]=0;f=c;c=K[d+35|0];e=c<<24>>24<0;c=aa(1864,d+416|0,(e?J[d+24>>2]:f)|0,(e?J[d+28>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break H;J[d+440>>2]=J[c+8>>2];e=J[c+4>>2];J[d+432>>2]=J[c>>2];J[d+436>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+432|0,32);c=J[195395]; -J[195395]=0;if((c|0)==1)break G;J[d+8>>2]=J[d+440>>2];J[d+440>>2]=0;e=J[d+436>>2];c=J[d+432>>2];J[d>>2]=c;J[d+4>>2]=e;J[d+432>>2]=0;J[d+436>>2]=0;J[195395]=0;f=c;c=H[d+11|0];e=(c|0)<0;aa(1864,d+448|0,(e?f:d)|0,(e?J[d+4>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break F;if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+443|0]<0)Kb(J[d+432>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);if(H[d+427|0]<0)Kb(J[d+416>>2]);if(H[d+411|0]<0)Kb(J[d+400>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+395|0]<0)Kb(J[d+384>>2]);if(H[d+ -379|0]<0)Kb(J[d+368>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+363|0]<0)Kb(J[d+352>>2]);if(H[d+347|0]<0)Kb(J[d+336>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+331|0]<0)Kb(J[d+320>>2]);if(H[d+315|0]<0)Kb(J[d+304>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+299|0]<0)Kb(J[d+288>>2]);if(H[d+283|0]<0)Kb(J[d+272>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+ -119|0]<0)Kb(J[d+108>>2]);if(H[d+203|0]<0)Kb(J[d+192>>2]);if(H[d+187|0]<0)Kb(J[d+176>>2]);if(H[d+131|0]<0)Kb(J[d+120>>2]);if(H[d+171|0]<0)Kb(J[d+160>>2]);if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+143|0]<0)Kb(J[d+132>>2]);b=b+32|0;if((g|0)!=(b|0))continue;break}J[195395]=0;b=aa(1962,d|0,397860,d+448|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break b;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}a=Z()|0;break g}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a= -Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;break w}a=Z()|0;break x}a=Z()|0;break y}a=Z()|0;break z}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;break C}a=Z()|0;break D}a=Z()|0;break E}a=Z()|0;if(H[d+11|0]>=0)break E;Kb(J[d>>2])}if(H[d+443|0]>=0)break D;Kb(J[d+432>>2])}if(H[d+35|0]>=0)break C;Kb(J[d+24>>2])}if(H[d+427|0]>=0)break B;Kb(J[d+416>>2])}if(H[d+ -411|0]>=0)break A;Kb(J[d+400>>2])}if(H[d+47|0]>=0)break z;Kb(J[d+36>>2])}if(H[d+395|0]>=0)break y;Kb(J[d+384>>2])}if(H[d+379|0]>=0)break x;Kb(J[d+368>>2])}if(H[d+59|0]>=0)break w;Kb(J[d+48>>2])}if(H[d+363|0]>=0)break v;Kb(J[d+352>>2])}if(H[d+347|0]>=0)break u;Kb(J[d+336>>2])}if(H[d+71|0]>=0)break t;Kb(J[d+60>>2])}if(H[d+331|0]>=0)break s;Kb(J[d+320>>2])}if(H[d+315|0]>=0)break r;Kb(J[d+304>>2])}if(H[d+83|0]>=0)break q;Kb(J[d+72>>2])}if(H[d+299|0]>=0)break p;Kb(J[d+288>>2])}if(H[d+283|0]>=0)break o; -Kb(J[d+272>>2])}if(H[d+95|0]>=0)break n;Kb(J[d+84>>2])}if(H[d+267|0]>=0)break m;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break l;Kb(J[d+240>>2])}if(H[d+107|0]>=0)break k;Kb(J[d+96>>2])}if(H[d+235|0]>=0)break j;Kb(J[d+224>>2])}if(H[d+219|0]>=0)break i;Kb(J[d+208>>2])}if(H[d+119|0]>=0)break h;Kb(J[d+108>>2])}if(H[d+203|0]>=0)break g;Kb(J[d+192>>2])}if(H[d+187|0]>=0)break f;Kb(J[d+176>>2])}if(H[d+131|0]>=0)break e;Kb(J[d+120>>2])}if(H[d+171|0]>=0)break d;Kb(J[d+160>>2])}if(H[d+155|0]>=0)break c;Kb(J[d+144>> -2])}if(H[d+143|0]>=0)break a;Kb(J[d+132>>2]);break a}J[d+440>>2]=0;J[d+432>>2]=0;J[d+436>>2]=0;J[195395]=0;H[d+420|0]=0;J[d+416>>2]=d+432;c=_(1078,24)|0;g=J[195395];J[195395]=0;ia:{ja:{if((g|0)!=1){J[d+436>>2]=c;J[d+432>>2]=c;J[195395]=0;J[d+440>>2]=c+24;g=ha(1957,d+440|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break ia;a=Z()|0;J[d+436>>2]=c;break ja}a=Z()|0}Kc(d+416|0);Vb(b);break a}J[d+436>>2]=g;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+432|0; -$(1963,b|0,c|0);a=J[195395];J[195395]=0;ka:{la:{ma:{na:{if((a|0)==1)break na;J[195395]=0;$(1964,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break na;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break na;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break na;J[195395]=0;a=_(1078,32)|0;g=J[195395];J[195395]=0;if((g|0)==1)break ma;J[d+416>>2]=a;J[d+420>>2]=4;J[d+424>>2]=-2147483640;g=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=g;g=J[99523];J[a>>2]=J[99522];J[a+4>>2]= -g;J[a+16>>2]=0;J[195395]=0;J[d+400>>2]=0;H[d+411|0]=0;ia(1961,b|0,d+416|0,c|0,d+400|0);a=J[195395];J[195395]=0;if((a|0)==1)break la;if(H[d+411|0]<0)Kb(J[d+400>>2]);if(H[d+427|0]<0)Kb(J[d+416>>2]);a=J[d+432>>2];if(a){b=J[d+436>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}c=J[d+432>>2]}J[d+436>>2]=a;Kb(c)}if(H[d+459|0]<0)Kb(J[d+448>>2]);xb=d+464|0;return}a=Z()|0;break ka}a=Z()|0;break ka}a=Z()|0;if(H[d+411|0]<0)Kb(J[d+ -400>>2]);if(H[d+427|0]>=0)break ka;Kb(J[d+416>>2])}Hc(d+432|0)}if(H[d+459|0]<0)Kb(J[d+448>>2]);ba(a|0);B()}function VF(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{if(!J[b>>2])break b;k=vc(1,192);if(!k)break b;J[k+8>>2]=0;J[k>>2]=1;J[k+4>>2]=1;j=a?a:774884;if(J[j+4>>2])J[j+4>>2]=0;J[k+12>>2]=j;i=k+16|0;if(WF(i,1,j,b,c,d,e,f,g)){g=xb-144|0;xb=g;f=k+60|0;m=Nb(f+24|0,0,76);e=0;b=g+12|0;J[b>>2]=j;a=J[i+4>>2];J[b+4>>2]=J[i>>2];J[b+8>>2]=a;a=J[i+12>>2];J[b+12>>2]=J[i+8>>2];J[b+16>>2]=a;J[b+20>>2]=J[i+ -16>>2];c=xb-32|0;xb=c;a=b+24|0;Nb(a+4|0,0,96);J[a>>2]=j;d=J[i+4>>2];J[a+4>>2]=J[i>>2];J[a+8>>2]=d;d=J[i+12>>2];J[a+12>>2]=J[i+8>>2];J[a+16>>2]=d;J[a+20>>2]=J[i+16>>2];J[c+28>>2]=3;J[c+24>>2]=3;d=J[a+12>>2];h=J[a+8>>2];J[195395]=0;l=d;d=c+12|0;bG(h,l,c+28|0,d,c+24|0,c);h=J[195395];J[195395]=0;c:{d:{e:{if((h|0)!=1){h=J[a>>2];J[195395]=0;h=pa(872,h|0,1196643650,J[c+28>>2],d|0,a+40|0,a+28|0)|0;l=J[195395];J[195395]=0;f:{if((l|0)==1)break f;H[a+36|0]=(h|0)!=0;h=J[a>>2];l=J[a+40>>2];J[195395]=0;pa(873, -h|0,1196643650,l|0,J[c+24>>2],c|0,a+48|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break f;h=J[a>>2];J[195395]=0;d=pa(872,h|0,1196445523,J[c+28>>2],d|0,a+44|0,a+32|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break f;H[a+37|0]=(d|0)!=0;d=J[a>>2];h=J[a+44>>2];J[195395]=0;pa(873,d|0,1196445523,h|0,J[c+24>>2],c|0,a+52|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break e}break d}break d}xb=c+32|0;break c}b=Z()|0;if(J[a+88>>2]){J[a+92>>2]=0;Kb(J[a+96>>2])}J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;if(J[a+76>>2]){J[a+ -80>>2]=0;Kb(J[a+84>>2])}J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;if(J[a+64>>2]){J[a+68>>2]=0;Kb(J[a+72>>2])}J[a+72>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;ba(b|0);B()}J[195395]=0;c=_(886,j|0)|0;d=J[195395];J[195395]=0;g:{h:{if((d|0)==1)break a;i:{if(!c)break i;e=1;if((J[i>>2]&-2)==4)break i;J[195395]=0;c=_(887,j|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;e=!c}d=K[b+124|0]&-2|e;H[b+124|0]=d;j:{k:{l:{m:{n:{o:{p:{q:{a=J[b+8>>2];if((a|0)<=1298231906){if((a|0)<=1198877297){if((a|0)<=1130918514){if((a|0)<= -1114139506){if((a|0)<=1113681E3){if((a|0)==1097100397|(a|0)==1097363309)break j;if((a|0)==1098015074)break q;c=135168;break g}if((a|0)==1113681001|(a|0)==1113683051)break j;if((a|0)==1113943655)break n;c=135168;break g}if((a|0)<=1114990691){if((a|0)==1114139507|(a|0)==1114792296)break j;c=135168;if((a|0)==1114990441)break j;break g}if((a|0)==1114990692|(a|0)==1130457965)break j;c=135168;if((a|0)==1130914157)break j;break g}if((a|0)<=1164409199){if((a|0)<=1147756906){if((a|0)==1130918515|(a|0)==1131441518)break j; -if((a|0)==1147500129)break n;c=135168;break g}if((a|0)==1147756907|(a|0)==1148151666)break j;c=135168;if((a|0)==1148547180)break j;break g}if((a|0)<=1198485094){if((a|0)==1164409200)break j;c=135168;if((a|0)==1164736877)break j;break g}c=135168;switch(a-1198485095|0){case 1:case 2:case 3:case 4:case 5:break g;case 0:case 6:break j;default:break k}}if((a|0)<=1265135465){if((a|0)<=1247901280){if((a|0)<=1214603889){c=135168;r:switch(a-1214344807|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:break g; -case 8:break j;case 0:break p;default:break r}if((a|0)==1198877298|(a|0)==1198879349)break n;break g}c=135168;switch(a-1215131239|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break g;case 0:case 9:break j;default:break o}}if((a|0)<=1264678760){if((a|0)==1247901281)break j;c=135168;if((a|0)==1264675945)break j;break g}if((a|0)==1264678761|(a|0)==1265131890)break j;c=135168;if((a|0)!=1265134962)break g;c=142464;break g}if((a|0)<=1281716322){if((a|0)<=1265920104){if((a|0)==1265135466|(a| -0)==1265202291)break j;if((a|0)==1265525857)break n;c=135168;break g}if((a|0)==1265920105|(a|0)==1281453665)break j;c=135168;if((a|0)!=1281453935)break g;break h}if((a|0)<=1298230112){if((a|0)==1281716323|(a|0)==1281977698)break j;c=135168;if((a|0)==1298229354)break j;break g}c=135168;s:switch(a-1298230884|0){case 1:case 2:case 3:case 4:break g;case 0:case 5:break j;default:break s}if((a|0)==1298230113)break j;break g}if((a|0)<=1399809891){if((a|0)<=1333094257){if((a|0)<=1299541107){if((a|0)<=1299145832){if((a| -0)==1298231907|(a|0)==1298490470)break j;if((a|0)==1298954605)break n;c=135168;break g}if((a|0)==1299145833|(a|0)==1299148391)break j;c=135168;if((a|0)==1299473769)break j;break g}if((a|0)<=1315008099){if((a|0)==1299541108)break j;if((a|0)==1299803506)break m;c=135168;if((a|0)==1315006317)break j;break g}if((a|0)<=1315663726){if((a|0)==1315008100)break j;c=135168;if((a|0)==1315272545)break j;break g}if((a|0)==1315663727)break j;if((a|0)==1332902241)break n;c=135168;break g}if((a|0)<=1383032934){if((a| -0)<=1349284451){if((a|0)==1333094258|(a|0)==1349017959)break j;c=135168;if((a|0)==1349020784)break j;break g}if((a|0)==1349284452)break j;if((a|0)==1365336423)break l;c=135168;if((a|0)==1382706791)break j;break g}if((a|0)<=1399415907){if((a|0)==1383032935|(a|0)==1398895986)break j;c=135168;if((a|0)==1399353956)break j;break g}c=135168;t:switch(a-1399418468|0){case 1:case 2:case 3:break g;case 0:case 4:break j;default:break t}if((a|0)==1399415908)break j;break g}if((a|0)<=1415999078){if((a|0)<=1415669601){if((a| -0)<=1400204899){c=135168;u:switch(a-1399809892|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:break g;case 0:case 11:break j;default:break u}if((a|0)==1399814511)break j;break g}if((a|0)==1400204900|(a|0)==1400466543)break j;if((a|0)==1400468067)break q;c=135168;break g}if((a|0)<=1415671147){if((a|0)==1415669602|(a|0)==1415670642)break j;c=135168;if((a|0)==1415670885)break j;break g}if((a|0)==1415671148)break n;if((a|0)==1415673460)break j;if((a|0)==1415933045)break n;c= -135168;break g}if((a|0)<=1416524640){if((a|0)<=1416126824){if((a|0)==1415999079)break j;c=135168;if((a|0)==1416064103)break j;break g}if((a|0)==1416126825)break h;if((a|0)==1416192628)break j;c=135168;if((a|0)==1416196712)break j;break g}if((a|0)<=1466132590){if((a|0)==1416524641|(a|0)==1416590447)break j;c=135168;if((a|0)==1449751656)break j;break g}if((a|0)==1466132591|(a|0)==1499822697)break j;c=135168;if((a|0)==1516334690)break j;break g}if(!(J[b+52>>2]==1145457748&(a|0)!=1098015074)){c=130832; -if((J[b+4>>2]&-2)==4)break g}c=135168;break g}c=135280;break g}if((a|0)!=1214603890)break g;c=135336;break g}a=J[b+52>>2];if((a|0)==1145457748){c=135168;break g}c=135168;if((a|0)==1818326126)break g;c=(a&255)==51?147316:138960;break g}a=J[b+52>>2];if((a|0)==1145457748){c=135168;break g}if((a|0)==1818326126){c=135168;break g}c=135168;if((a|0)==1836674418)break g;c=144044;break g}c=144100;break g}if((a|0)!=1198678382)break g}a=J[b+52>>2];c=(a|0)==1145457748?135168:(a|0)==1818326126?135168:147316;break g}c= -146808}J[b+128>>2]=c;a=d&-3|(J[c+48>>2]!=0)<<1;H[b+124|0]=a;H[b+124|0]=a&251|K[c+52|0]<<2;if(!(!e|(c|0)==135168))J[b+128>>2]=135224;j=J[i+24>>2];h=J[i+20>>2];H[b+48|0]=1;J[195395]=0;a=b+24|0;ia(888,a|0,1920365166,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;fa(889,a|0,0,0);c=J[195395];J[195395]=0;if((c|0)==1)break a;v:{w:{x:switch(J[b+4>>2]-4|0){case 0:J[195395]=0;ia(888,a|0,1819570785,1,1);e=J[195395];J[195395]=0;d=1819570797;c=1;break w;case 1:break x;default:break v}J[195395]=0; -ia(888,a|0,1920232545,1,1);e=J[195395];J[195395]=0;d=1920232557;c=0}if((e|0)==1)break a;J[195395]=0;ia(888,a|0,d|0,c|0,1);c=J[195395];J[195395]=0;if((c|0)==1)break a}J[195395]=0;ia(888,a|0,1718772067,0,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1853189490,0,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1684959085,0,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1918987876,33,255);c=J[195395];J[195395]=0;if((c|0)==1)break a; -J[195395]=0;ia(888,a|0,1953653099,3,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1214345830,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1212240454,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;c=J[J[b+128>>2]>>2];if(c){H[b+48|0]=0;J[195395]=0;ea(c|0,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}J[195395]=0;ia(888,a|0,1114995322,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1112889946,1,1);c=J[195395];J[195395]=0; -if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1633842797,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1651275629,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1667460464,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1819239276,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1835102827,13,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1835756907,13,1);c=J[195395];J[195395]=0;if((c| -0)==1)break a;J[195395]=0;ia(888,a|0,1919707495,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;y:{if((J[b+4>>2]&-2)!=4){e=17;d=1986359924;break y}J[195395]=0;ia(888,a|0,1667329140,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1668049255,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1668641395,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1684632436,1,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;e=1;ia(888, -a|0,1801810542,3,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;ia(888,a|0,1818847073,1,1);c=J[195395];J[195395]=0;d=1919118452;if((c|0)==1)break a}J[195395]=0;ia(888,a|0,d|0,e|0,1);c=J[195395];J[195395]=0;if((c|0)==1)break a;z:{A:{if(j){H[b+48|0]=0;d=0;while(1){c=h+(d<<4)|0;l=J[c>>2];e=0;e=J[c+8>>2]?e:J[c+12>>2]==-1;c=J[c+4>>2];J[195395]=0;ia(888,a|0,l|0,e|0,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break A;d=d+1|0;if((j|0)!=(d|0))continue;break}}c=J[J[b+128>>2]+4>>2];if(c){J[195395]= -0;ea(c|0,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}J[195395]=0;fa(890,b|0,f|0,i+28|0);b=J[195395];J[195395]=0;e=1;if((b|0)==1)break a;b=J[J[f+20>>2]+8>>2];B:{if(!b)break B;J[195395]=0;b=_(b|0,f|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[f+100>>2]=b;if(b)break B;e=0;J[195395]=0;Vs(m);b=J[195395];J[195395]=0;if((b|0)==1)break a}Zs(a);xb=g+144|0;break z}break a}if(e)return k;Kb(J[k+36>>2])}Kb(k)}return 169776}b=Z()|0;Zs(a);ba(b|0);B()}function Wr(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;l=xb-240|0;xb=l;J[l+8>>2]=0;i=6;a:{if(!b|!((d|0)!=0|(c|0)<0))break a;r=K[b|0]&2?J[b+16>>2]!=0:r;J[l+12>>2]=0;b:{if(!a){i=33;break b}c:{h=J[a>>2];f=Ab[J[h+4>>2]](h,40)|0;d:{if(!f){i=64;break d}H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;H[f+29|0]=0;H[f+30|0]=0;H[f+31|0]=0;H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;H[f+4|0]=0;H[f+5|0]=0;H[f+6|0]=0;H[f+7|0]=0;H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+36|0]=0;H[f+37|0]=0;H[f+38|0]=0; -H[f+39|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+8|0]=0;H[f+9|0]=0;H[f+10|0]=0;H[f+11|0]=0;H[f+12|0]=0;H[f+13|0]=0;H[f+14|0]=0;H[f+15|0]=0;J[f+28>>2]=h;e:{f:{g:{h:{i:{j:{k:{l:{n=J[b>>2];if(n&1){i=J[b+8>>2];n=J[b+4>>2];J[f+32>>2]=0;J[f+8>>2]=0;J[f>>2]=n;J[f+4>>2]=i;J[f+20>>2]=0;J[f+24>>2]=0;break l}m:{if(!(n&4)){if(!(n&2)|!J[b+16>>2])break m;Ab[J[h+8>>2]](h,f);f=J[b+16>>2];break l}i=pl(f,J[b+12>>2]);J[f+16>>2]=J[b+12>>2];if(!i)break l}Ab[J[h+ -8>>2]](h,f);J[l+12>>2]=0;break k}J[f+28>>2]=h;J[l+12>>2]=f;s=J[a>>2];n:{n=J[b>>2];if(!(n&8))break n;h=J[b+20>>2];if(!h)break n;i=32;if(H[J[h>>2]]&1){f=0;e=l+12|0;if(n&16){f=J[b+28>>2];a=J[b+24>>2]}else a=0;i=zE(h,e,r,c,a,f,l+8|0);if(!i)break c;f=J[l+12>>2];if(!f)break b}a=J[f+28>>2];b=J[f+24>>2];if(b)Ab[b|0](f);if(r)break b;Ab[J[a+8>>2]](a,f);break b}h=J[a+16>>2];if((h|0)<=0){i=11;break d}f=a+20|0;n=f+(h<<2)|0;i=11;h=0;while(1){p=J[f>>2];if(H[J[p>>2]]&1){i=0;h=0;if(K[b|0]&16){i=J[b+24>>2];h=J[b+28>> -2]}i=zE(p,l+12|0,r,c,i,h,l+8|0);if(!i){h=p;break c}o:{if(!e)break o;if(fc(J[J[J[f>>2]>>2]+8>>2],10087)|(i&255)!=142)break o;h=J[l+12>>2];i=J[h+20>>2];if(i)if(Ab[i|0](h,0,0,0)|0)break j;J[h+8>>2]=0;i=xE(a,h,c,d);if(i)break o;a=J[h+28>>2];b=J[h+24>>2];if(b)Ab[b|0](h);i=0;if(r)break a;Ab[J[a+8>>2]](a,h);break a}h=p;if((i&255)!=2)break k}f=f+4|0;if(n>>>0>f>>>0)continue;break}p=h}p:{q:{h=i&255;switch(h-81|0){case 0:case 4:break p;case 1:case 2:case 3:break d;default:break q}}if((h|0)!=2)break d}if(!e)break e; -h=J[l+12>>2];if(h)break j;h=0;t=1;break i}e=J[h+20>>2];if(e)if(Ab[e|0](h,0,0,0)|0)break i;J[h+8>>2]=0;e=J[h+4>>2];if(!e)break i;f=J[h+20>>2];r:{if(f){i=Ab[f|0](h,0,l+112|0,128)|0;break r}i=e>>>0>=128?128:e;Mb(l+112|0,J[h>>2],i)}J[h+8>>2]=i;if(i>>>0<128)break i;s:{t:{if(K[l+194|0]|(K[l+112|0]|K[l+186|0]))break t;e=K[l+113|0];if(!e|e>>>0>33|(K[l+175|0]|K[(e+l|0)+114|0]))break t;e=H[l+195|0];if((e|0)<0)break t;i=Ur(a,h,((K[l+198|0]|(K[l+196|0]<<16|(e&255)<<24|K[l+197|0]<<8))+127&2147483520)+128|0,c, -d);if((i&255)!=2)break s}i=Ur(a,h,0,c,d)}e=i&255;if((e|0)==85)break h;if((e|0)!=2)break g;break h}i=85}if(!(K[b|0]&4))break g;n=J[a>>2];i=J[b+12>>2];o=l- -64|0;e=l+16|0;f=l+112|0;J[f>>2]=0;u:{v:{w:{if(h){j=J[h+20>>2];x:{if(j){k=85;if(Ab[j|0](h,0,0,0)|0)break x}J[h+8>>2]=0;J[e>>2]=0;J[f>>2]=0;k=Yi(h,333319,o)}J[e>>2]=k;J[f+4>>2]=0;k=J[h+20>>2];if(!k)break w;if(!(Ab[k|0](h,0,0,0)|0))break w;J[e+4>>2]=85;break v}J[e>>2]=81;J[f+4>>2]=0;J[e+4>>2]=81;J[f+8>>2]=0;J[e+8>>2]=0;u=e,v=rr(a,e,i,f+8|0,o+8|0), -J[u+8>>2]=v;J[f+12>>2]=0;J[e+12>>2]=0;j=ac(i);m=j+18|0;y:{z:{if((j|0)<=-18){q=6;if(m)break y;break z}g=J[a>>2];g=Ab[J[g+4>>2]](g,m)|0;q=64;if(!g)break y;Nb(g,0,m)}q=Mb(g,i,j);g=q+j|0;j=K[11598]|K[11599]<<8;H[g+16|0]=j;H[g+17|0]=j>>>8;j=K[11594]|K[11595]<<8|(K[11596]<<16|K[11597]<<24);m=K[11590]|K[11591]<<8|(K[11592]<<16|K[11593]<<24);H[g+8|0]=m;H[g+9|0]=m>>>8;H[g+10|0]=m>>>16;H[g+11|0]=m>>>24;H[g+12|0]=j;H[g+13|0]=j>>>8;H[g+14|0]=j>>>16;H[g+15|0]=j>>>24;j=K[11586]|K[11587]<<8|(K[11588]<<16|K[11589]<< -24);m=K[11582]|K[11583]<<8|(K[11584]<<16|K[11585]<<24);H[g|0]=m;H[g+1|0]=m>>>8;H[g+2|0]=m>>>16;H[g+3|0]=m>>>24;H[g+4|0]=j;H[g+5|0]=j>>>8;H[g+6|0]=j>>>16;H[g+7|0]=j>>>24;J[f+12>>2]=q;J[o+12>>2]=0;q=0}J[e+12>>2]=q;J[f+16>>2]=0;J[e+16>>2]=0;g=6;j=ac(i);m=j+6|0;A:{B:{if((j|0)<=-6){if(!m)break B;break A}g=J[a>>2];k=Ab[J[g+4>>2]](g,m)|0;if(!k){g=64;break A}Nb(k,0,m)}g=0;m=Mb(k,i,j);k=m+j|0;j=K[11728]|K[11729]<<8;H[k+4|0]=j;H[k+5|0]=j>>>8;j=K[11724]|K[11725]<<8|(K[11726]<<16|K[11727]<<24);H[k|0]=j;H[k+1| -0]=j>>>8;H[k+2|0]=j>>>16;H[k+3|0]=j>>>24;J[f+16>>2]=m;J[o+16>>2]=0}J[e+16>>2]=g;J[f+20>>2]=0;J[e+20>>2]=0;g=gh(J[a>>2],i,11828);if(g){J[f+20>>2]=g;J[o+20>>2]=0;g=0}else g=64;J[e+20>>2]=g;J[f+24>>2]=0;J[e+24>>2]=0;g=gh(J[a>>2],i,11927);if(g){J[f+24>>2]=g;J[o+24>>2]=0;g=0}else g=64;J[e+24>>2]=g;J[f+28>>2]=0;J[e+28>>2]=0;u=e,v=qr(a,e,i,f+28|0,o+28|0),J[u+28>>2]=v;J[f+32>>2]=0;J[e+32>>2]=0;u=e,v=pr(a,e,i,f+32|0,o+32|0),J[u+32>>2]=v;break u}J[h+8>>2]=0;J[e+4>>2]=0;J[f+4>>2]=0;u=e,v=Yi(h,333312,o+4|0), -J[u+4>>2]=v}J[f+8>>2]=0;C:{D:{k=J[h+20>>2];if(!k)break D;if(!(Ab[k|0](h,0,0,0)|0))break D;J[e+8>>2]=85;break C}J[h+8>>2]=0;J[e+8>>2]=0;u=e,v=rr(a,e,i,f+8|0,o+8|0),J[u+8>>2]=v}J[f+12>>2]=0;E:{F:{k=J[h+20>>2];if(!k)break F;if(!(Ab[k|0](h,0,0,0)|0))break F;J[e+12>>2]=85;break E}J[h+8>>2]=0;J[e+12>>2]=0;k=ac(i);j=k+18|0;G:{H:{if((k|0)<=-18){m=6;if(j)break G;break H}g=J[a>>2];g=Ab[J[g+4>>2]](g,j)|0;m=64;if(!g)break G;Nb(g,0,j)}m=Mb(g,i,k);g=m+k|0;k=K[11598]|K[11599]<<8;H[g+16|0]=k;H[g+17|0]=k>>>8;k=K[11594]| -K[11595]<<8|(K[11596]<<16|K[11597]<<24);j=K[11590]|K[11591]<<8|(K[11592]<<16|K[11593]<<24);H[g+8|0]=j;H[g+9|0]=j>>>8;H[g+10|0]=j>>>16;H[g+11|0]=j>>>24;H[g+12|0]=k;H[g+13|0]=k>>>8;H[g+14|0]=k>>>16;H[g+15|0]=k>>>24;k=K[11586]|K[11587]<<8|(K[11588]<<16|K[11589]<<24);j=K[11582]|K[11583]<<8|(K[11584]<<16|K[11585]<<24);H[g|0]=j;H[g+1|0]=j>>>8;H[g+2|0]=j>>>16;H[g+3|0]=j>>>24;H[g+4|0]=k;H[g+5|0]=k>>>8;H[g+6|0]=k>>>16;H[g+7|0]=k>>>24;J[f+12>>2]=m;J[o+12>>2]=0;m=0}J[e+12>>2]=m}J[f+16>>2]=0;I:{J:{g=J[h+20>> -2];if(!g)break J;if(!(Ab[g|0](h,0,0,0)|0))break J;J[e+16>>2]=85;break I}J[h+8>>2]=0;J[e+16>>2]=0;k=6;j=ac(i);m=j+6|0;K:{L:{if((j|0)<=-6){if(m)break K;g=0;break L}g=J[a>>2];g=Ab[J[g+4>>2]](g,m)|0;if(!g){k=64;break K}Nb(g,0,m)}k=0;m=Mb(g,i,j);g=m+j|0;j=K[11728]|K[11729]<<8;H[g+4|0]=j;H[g+5|0]=j>>>8;j=K[11724]|K[11725]<<8|(K[11726]<<16|K[11727]<<24);H[g|0]=j;H[g+1|0]=j>>>8;H[g+2|0]=j>>>16;H[g+3|0]=j>>>24;J[f+16>>2]=m;J[o+16>>2]=0}J[e+16>>2]=k}J[f+20>>2]=0;M:{N:{g=J[h+20>>2];if(!g)break N;if(!(Ab[g|0](h, -0,0,0)|0))break N;J[e+20>>2]=85;break M}J[h+8>>2]=0;J[e+20>>2]=0;g=gh(J[a>>2],i,11828);if(g){J[f+20>>2]=g;J[o+20>>2]=0;g=0}else g=64;J[e+20>>2]=g}J[f+24>>2]=0;O:{P:{g=J[h+20>>2];if(!g)break P;if(!(Ab[g|0](h,0,0,0)|0))break P;J[e+24>>2]=85;break O}J[h+8>>2]=0;J[e+24>>2]=0;g=gh(J[a>>2],i,11927);if(g){J[f+24>>2]=g;J[o+24>>2]=0;g=0}else g=64;J[e+24>>2]=g}J[f+28>>2]=0;Q:{R:{g=J[h+20>>2];if(!g)break R;if(!(Ab[g|0](h,0,0,0)|0))break R;J[e+28>>2]=85;break Q}J[h+8>>2]=0;J[e+28>>2]=0;u=e,v=qr(a,e,i,f+28|0, -o+28|0),J[u+28>>2]=v}J[f+32>>2]=0;S:{g=J[h+20>>2];if(!g)break S;if(!(Ab[g|0](h,0,0,0)|0))break S;J[e+32>>2]=85;break u}J[h+8>>2]=0;J[e+32>>2]=0;u=e,v=pr(a,e,i,f+32|0,o+32|0),J[u+32>>2]=v}e=0;g=2;i=0;while(1){T:{j=J[(i<<3)+29156>>2]-3|0;U:{if(e&255?j>>>0<=1:0)break U;m=i<<2;if(J[m+(l+16|0)>>2])break U;k=J[m+(l+112|0)>>2];if(!k)k=J[b+12>>2];V:{o=J[a>>2];f=Ab[J[o+4>>2]](o,40)|0;W:{if(!f){g=64;break W}H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;H[f+29|0]=0;H[f+30|0]=0;H[f+31|0]=0;H[f| -0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;H[f+4|0]=0;H[f+5|0]=0;H[f+6|0]=0;H[f+7|0]=0;H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+36|0]=0;H[f+37|0]=0;H[f+38|0]=0;H[f+39|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+8|0]=0;H[f+9|0]=0;H[f+10|0]=0;H[f+11|0]=0;H[f+12|0]=0;H[f+13|0]=0;H[f+14|0]=0;H[f+15|0]=0;J[f+28>>2]=o;g=pl(f,k);J[f+16>>2]=k;if(!g)break V;Ab[J[o+8>>2]](o,f)}e=j>>>0<2?(g&255)==81?1:e:e;break U}J[f+28>>2]=o;g=Ur(a,f,J[m+(l- --64|0)>>2],c,d);o=J[f+28>>2];k=J[f+24>>2];if(k)Ab[k|0](f);Ab[J[o+8>>2]](o,f);if(!g){g=0;break T}e=j>>>0<2?1:e}i=i+1|0;if((i|0)!=9)continue}break}a=J[l+112>>2];if(a){Ab[J[n+8>>2]](n,a);J[l+112>>2]=0}a=J[l+116>>2];if(a){Ab[J[n+8>>2]](n,a);J[l+116>>2]=0}a=J[l+120>>2];if(a){Ab[J[n+8>>2]](n,a);J[l+120>>2]=0}a=J[l+124>>2];if(a){Ab[J[n+8>>2]](n,a);J[l+124>>2]=0}a=J[l+128>>2];if(a)Ab[J[n+8>>2]](n,a);a=J[l+132>>2];if(a)Ab[J[n+8>>2]](n,a);a=J[l+136>>2];if(a)Ab[J[n+8>>2]](n,a);a=J[l+140>>2];if(a)Ab[J[n+8>>2]](n, -a);a=J[l+144>>2];if(a)Ab[J[n+8>>2]](n,a);i=2;if(!g)break f;break d}if(i)break e}i=0;if(t)break a;a=J[h+28>>2];b=J[h+24>>2];if(b)Ab[b|0](h);if(r)break a;Ab[J[a+8>>2]](a,h);break a}i=(i&255)==2?2:i}a=J[l+12>>2];X:{if(!a)break X;b=J[a+28>>2];c=J[a+24>>2];if(c)Ab[c|0](a);if(r)break X;Ab[J[b+8>>2]](b,a)}h=p;break b}a=Ab[J[s+4>>2]](s,12)|0;if(!a){i=64;break b}H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;e=J[l+8>>2];J[a+8>>2]=e;b=J[e+96>>2];h=J[b+20>>2];J[a>>2]=h; -J[(h?h+4|0:b+16|0)>>2]=a;J[b+20>>2]=a;Y:{if((c|0)>=0){i=bs(e,0);if(i)break Y;i=sE(e,l+112|0);if(i)break Y;J[e+88>>2]=J[l+112>>2]}a=J[e+8>>2];Z:{if(!(a&1))break Z;i=I[e+74>>1];if((i|0)<0){i=0-i|0;I[e+74>>1]=i}if(a&32)break Z;I[e+78>>1]=i}_:{if(!(a&2))break _;b=J[e+28>>2];if((b|0)<=0)break _;c=J[e+32>>2];i=0;while(1){a=c+(i<<4)|0;f=I[a>>1];if((f|0)<0){f=0-f|0;I[a>>1]=f}h=J[a+8>>2];if((h|0)<0)J[a+8>>2]=0-h;h=J[a+12>>2];if((h|0)<0)J[a+12>>2]=0-h;if(f<<16>>16<0){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>> -2]=0}i=i+1|0;if((b|0)!=(i|0))continue;break}}a=J[e+128>>2];J[a+64>>2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=65536;J[a>>2]=65536;J[a+4>>2]=0;H[a+56|0]=255;if(d){J[d>>2]=e;i=0;break a}Yn(e);i=0;break a}a=J[e+96>>2];if(!a)break a;c=J[e+128>>2];b=J[c+64>>2];J[c+64>>2]=b-1;if((b|0)>1)break a;b=J[a+16>>2];if(!b)break a;h=a+16|0;c=J[a+8>>2];while(1){if((e|0)!=J[b+8>>2]){b=J[b+4>>2];if(b)continue;break a}break}d=J[b>>2];p=d?d+4|0:h;h=J[b+4>>2];J[p>>2]=h;J[(h?h:a+20|0)>>2]=d;Ab[J[c+8>>2]](c,b); -mk(c,e,a);break a}a=J[l+8>>2];if(!a)break a;mk(s,a,h)}xb=l+240|0;return i}function W8(a){a=a|0;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;i=xb-80|0;xb=i;if(K[a+64|0]){Ab[J[J[a>>2]+52>>2]](a,0);Ab[J[J[a>>2]+56>>2]](a)}g=O[a+48>>3];m=O[a+56>>3];b=i+32|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;d=J[a+8>>2];Rd(b,Ab[J[J[d>>2]+72>>2]](d,2)|0);d=J[a+ -4>>2];Ab[J[J[d>>2]+404>>2]](d)|0;d=J[a+4>>2];O[i+24>>3]=m*O[b+8>>3]/g;O[i+16>>3]=g*O[b+16>>3]/m;O[i+8>>3]=g*O[b+32>>3];O[i>>3]=m*O[b+40>>3];Ab[J[J[d>>2]+396>>2]](d,b,i+24|0,i+16|0,b+24|0,i+8|0,i)|0;a:{if(K[a+65|0])break a;b=J[a+8>>2];b=Ab[J[J[b>>2]+20>>2]](b)|0;if(!b)break a;ul(b,a);H[a+65|0]=1}J[a+12>>2]=-1;b=xb+-64|0;xb=b;b:{c:{d:{e:{d=J[a+8>>2];d=Ab[J[J[d>>2]+40>>2]](d)|0;f:{if(!d)break f;g:{h:{i:{j:{k:{l:{h=Ab[J[J[d>>2]+16>>2]](d)|0;switch(h-1|0){case 1:break j;case 2:break k;case 4:break l;case 0:break f; -case 9:case 12:case 13:break h;default:break i}}c=J[a+4>>2];Ab[J[J[c>>2]+136>>2]](c,388868)|0;c=J[a+4>>2];Ab[J[J[c>>2]+192>>2]](c,388872)|0;c=J[a+4>>2];Ab[J[J[d>>2]+36>>2]](b,d);d=J[J[c>>2]+176>>2];J[195395]=0;ca(d|0,c|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){if(H[b+11|0]>=0)break g;Kb(J[b>>2]);break g}a=Z()|0;if(H[b+11|0]>=0)break d;Kb(J[b>>2]);break d}c=J[a+4>>2];Ab[J[J[c>>2]+136>>2]](c,388876)|0;c=J[a+4>>2];Ab[J[J[c>>2]+192>>2]](c,388880)|0;c=J[a+4>>2];Ab[J[J[d>>2]+36>>2]](b,d);d=J[J[c>>2]+ -176>>2];J[195395]=0;ca(d|0,c|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){if(H[b+11|0]>=0)break g;Kb(J[b>>2]);break g}a=Z()|0;if(H[b+11|0]>=0)break d;break c}c=J[a+4>>2];Ab[J[J[c>>2]+136>>2]](c,388884)|0;c=Pb(32);J[b>>2]=c;J[b+4>>2]=4;J[b+8>>2]=-2147483640;e=J[97225];J[c+8>>2]=J[97224];J[c+12>>2]=e;e=J[97223];J[c>>2]=J[97222];J[c+4>>2]=e;J[c+16>>2]=0;c=J[J[d>>2]+24>>2];J[195395]=0;c=_(c|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break e;if(c>>>0<53){J[195395]=0;c=c<<2;aa(1814,b|0,J[c+390540>>2], -J[c+390752>>2])|0;c=J[195395];J[195395]=0;if((c|0)==1)break e}c=J[a+8>>2];e=J[J[c>>2]+52>>2];J[195395]=0;e=_(e|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;c=J[a+4>>2];m:{if((e|0)==1){J[b+56>>2]=0;e=J[J[c>>2]+168>>2];J[195395]=0;ca(e|0,c|0,b+56|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break m;break e}J[b+56>>2]=255;e=J[J[c>>2]+168>>2];J[195395]=0;ca(e|0,c|0,b+56|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;c=J[a+4>>2];e=J[a+8>>2];f=J[J[e>>2]+56>>2];J[195395]=0;e=_(f|0,e|0)|0;f=J[195395]; -J[195395]=0;if((f|0)!=1){J[b+56>>2]=e;e=J[J[c>>2]+160>>2];J[195395]=0;ca(e|0,c|0,b+56|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break m}break e}c=J[a+4>>2];e=J[J[c>>2]+176>>2];J[195395]=0;ca(e|0,c|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;c=J[a+4>>2];J[b+56>>2]=255;e=J[J[c>>2]+152>>2];J[195395]=0;f=e;e=b+56|0;ca(f|0,c|0,e|0)|0;c=J[195395];J[195395]=0;n:{if((c|0)!=1){c=J[a+4>>2];f=J[J[d>>2]+8>>2];J[195395]=0;d=_(f|0,d|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break n;J[b+56>>2]=d;d=J[J[c>> -2]+144>>2];J[195395]=0;ca(d|0,c|0,e|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break n;if(H[b+11|0]>=0)break g;Kb(J[b>>2]);break g}break e}break e}c=1;e=J[a+4>>2];f=J[J[e>>2]+136>>2];if(h-11>>>0<=1){Ab[f|0](e,390500)|0;e=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+8>>2]](d)|0,J[p>>2]=q;Ab[J[J[e>>2]+144>>2]](e,b)|0;e=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+12>>2]](d)|0,J[p>>2]=q;Ab[J[J[e>>2]+160>>2]](e,b)|0;e=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+28>>2]](d)|0,J[p>>2]=q;Ab[J[J[e>>2]+152>>2]](e,b)|0;e=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+32>>2]](d)| -0,J[p>>2]=q;Ab[J[J[e>>2]+168>>2]](e,b)|0;p=b,q=(Ab[J[J[d>>2]+8>>2]](d)|0)+(Ab[J[J[d>>2]+28>>2]](d)<<24)|0,J[p+56>>2]=q;p=b,q=(Ab[J[J[d>>2]+12>>2]](d)|0)+(Ab[J[J[d>>2]+32>>2]](d)<<24)|0,J[p+60>>2]=q;d=J[97631];J[b+8>>2]=J[97630];J[b+12>>2]=d;d=J[97629];J[b>>2]=J[97628];J[b+4>>2]=d;d=J[a+4>>2];Ab[J[J[d>>2]+228>>2]](d,b+56|0,b,2)|0;break f}Ab[f|0](e,388856)|0;e=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+8>>2]](d)|0,J[p>>2]=q;Ab[J[J[e>>2]+144>>2]](e,b)|0;e=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+28>>2]](d)|0,J[p>>2]=q;Ab[J[J[e>> -2]+152>>2]](e,b)|0;break f}c=J[a+4>>2];Ab[J[J[c>>2]+136>>2]](c,390496)|0;c=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+8>>2]](d)|0,J[p>>2]=q;Ab[J[J[c>>2]+144>>2]](c,b)|0;c=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+12>>2]](d)|0,J[p>>2]=q;Ab[J[J[c>>2]+160>>2]](c,b)|0;c=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+28>>2]](d)|0,J[p>>2]=q;Ab[J[J[c>>2]+152>>2]](c,b)|0;c=J[a+4>>2];p=b,q=Ab[J[J[d>>2]+32>>2]](d)|0,J[p>>2]=q;Ab[J[J[c>>2]+168>>2]](c,b)|0;c=b+56|0;e=b+48|0;f=b+40|0;h=b+32|0;Ab[J[J[d>>2]+40>>2]](d,c,e,f,h);j=J[a+4>>2];Ab[J[J[j>>2]+224>> -2]](j,c,e,f,h)|0;c=J[a+4>>2];p=b,r=+(Ab[J[J[d>>2]+20>>2]](d)>>>0),O[p>>3]=r;Ab[J[J[c>>2]+216>>2]](c,b)|0;p=b,q=(Ab[J[J[d>>2]+8>>2]](d)|0)+(Ab[J[J[d>>2]+28>>2]](d)<<24)|0,J[p+24>>2]=q;p=b,q=(Ab[J[J[d>>2]+12>>2]](d)|0)+(Ab[J[J[d>>2]+32>>2]](d)<<24)|0,J[p+28>>2]=q;c=J[97631];J[b+8>>2]=J[97630];J[b+12>>2]=c;c=J[97629];J[b>>2]=J[97628];J[b+4>>2]=c;c=J[a+4>>2];Ab[J[J[c>>2]+228>>2]](c,b+24|0,b,2)|0}c=1}xb=b- -64|0;break b}a=Z()|0;if(H[b+11|0]>=0)break d;break c}ba(a|0);B()}Kb(J[b>>2]);ba(a|0);B()}if(c){c= -J[a+8>>2];p=a,q=(Ab[J[J[c>>2]+60>>2]](c)|0)==1?512:256,J[p+12>>2]=q}b=0;c=xb+-64|0;xb=c;o:{p:{d=J[a+8>>2];d=Ab[J[J[d>>2]+44>>2]](d)|0;q:{if(!d)break q;e=Ab[J[J[d>>2]+12>>2]](d)|0;f=e&15;if((f|0)==5)break q;H[c+63|0]=0;j=e&3840;h=1;r:{s:{t:{k=(e&240)+-64|0;if(k)if((k|0)==16)break t;else break r;H[c+63|0]=2;break s}H[c+63|0]=1}h=0}H[c+62|0]=0;u:{v:{if((j|0)!=256){if(j)break u;b=2;break v}b=1}H[c+62|0]=b}if(h)H[c+63|0]=b;H[c+61|0]=0;b=e&61440;w:{if((b|0)!=4096){if(b)break w;H[c+61|0]=2;break w}H[c+61| -0]=1}x:{y:{g=+Ab[J[J[d>>2]+16>>2]](d);if(!(R(0-g)<=2.220446049250313E-16))if(!(R(1-g)<=2.220446049250313E-16)|e&983040)break y;b=J[a+4>>2];Ab[J[J[b>>2]+40>>2]](b,c+16|0)|0;b=J[a+8>>2];b=Ab[J[J[b>>2]+100>>2]](b)|0;H[c+62|0]=0;H[c+63|0]=0;H[c+61|0]=0;g=+(b>>>0)*.26458333333333334/O[c+16>>3];break x}g=O[a+48>>3]*g}O[c+48>>3]=g;z:{if(+Ab[J[J[d>>2]+24>>2]](d)!=0){m=+Ab[J[J[d>>2]+24>>2]](d);break z}b=J[a+8>>2];b=Ab[J[J[b>>2]+76>>2]](b)|0;m=O[a+48>>3]*+(b>>>0)}O[c+40>>3]=m;H[c+39|0]=0;Ab[J[J[d>>2]+32>>2]](d, -c+32|0,c+28|0);A:{if(!(!J[c+32>>2]|!J[c+28>>2])){b=J[a+4>>2];p=c,r=+Ab[J[J[d>>2]+28>>2]](d),O[p+16>>3]=r;h=c+16|0;Ab[J[J[b>>2]+108>>2]](b,h)|0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;e=0;f=J[c+28>>2];B:{if(!f)break B;C:{D:{if(f>>>0>=536870912){J[195395]=0;ea(1815,h|0);a=J[195395];J[195395]=0;if((a|0)==1)break D;B()}b=0;J[195395]=0;h=f<<3;e=_(1078,h|0)|0;j=J[195395];J[195395]=0;if((j|0)!=1)break C}b=Z()|0;a=J[c+16>>2];if(!a)break p;J[c+20>>2]=a;Kb(a);break p}j=Nb(e,0,h);k=J[c+32>>2];if(f>>>0>=4){n= -f&-4;while(1){h=b<<3;O[h+j>>3]=O[h+k>>3]*g;l=h|8;O[l+j>>3]=O[k+l>>3]*g;l=h|16;O[l+j>>3]=O[k+l>>3]*g;h=h|24;O[h+j>>3]=O[h+k>>3]*g;b=b+4|0;o=o+4|0;if((n|0)!=(o|0))continue;break}}n=f&3;if(!n)break B;h=0;while(1){l=b<<3;O[l+j>>3]=O[k+l>>3]*g;b=b+1|0;h=h+1|0;if((n|0)!=(h|0))continue;break}}b=J[a+4>>2];h=J[J[b>>2]+128>>2];J[195395]=0;aa(h|0,b|0,e|0,f|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){H[c+39|0]=5;if(!e)break A;Kb(e);break A}b=Z()|0;if(!e)break p;Kb(e);ba(b|0);B()}if(!f)break A;J[c+24>>2]=0;J[c+ -16>>2]=0;J[c+20>>2]=0;E:{F:{G:switch(f-1|0){case 0:J[195395]=0;O[c+8>>3]=g*9;b=c+16|0;e=c+8|0;$(1816,b|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break E;J[195395]=0;O[c+8>>3]=g*3;$(1816,b|0,e|0);b=J[195395];J[195395]=0;if((b|0)!=1)break F;break E;case 1:J[195395]=0;g=g*3;O[c+8>>3]=g;b=c+16|0;e=c+8|0;$(1816,b|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break E;J[195395]=0;O[c+8>>3]=g;$(1816,b|0,e|0);b=J[195395];J[195395]=0;if((b|0)!=1)break F;break E;case 2:J[195395]=0;O[c+8>>3]=g*9;b=c+16|0;e=c+8| -0;$(1816,b|0,e|0);f=J[195395];J[195395]=0;H:{if((f|0)!=1){J[195395]=0;g=g*3;O[c+8>>3]=g;$(1816,b|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break E;J[195395]=0;O[c+8>>3]=g;$(1816,b|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break H;J[195395]=0;O[c+8>>3]=g;$(1816,b|0,e|0);b=J[195395];J[195395]=0;if((b|0)!=1)break F;break E}break E}break E;case 3:break G;default:break F}J[195395]=0;O[c+8>>3]=g*9;b=c+16|0;e=c+8|0;$(1816,b|0,e|0);f=J[195395];J[195395]=0;I:{if((f|0)!=1){J[195395]=0;g=g*3;O[c+8>>3]=g;$(1816, -b|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break E;J[195395]=0;O[c+8>>3]=g;$(1816,b|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break E;J[195395]=0;O[c+8>>3]=g;$(1816,b|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break E;J[195395]=0;O[c+8>>3]=g;$(1816,b|0,e|0);f=J[195395];J[195395]=0;if((f|0)==1)break I;J[195395]=0;O[c+8>>3]=g;$(1816,b|0,e|0);b=J[195395];J[195395]=0;if((b|0)!=1)break F;break E}break E}break E}b=J[c+16>>2];e=J[c+20>>2];if((b|0)!=(e|0)){f=J[a+4>>2];h=J[J[f>>2]+128>>2];J[195395]=0;aa(h| -0,f|0,b|0,e-b>>3)|0;b=J[195395];J[195395]=0;if((b|0)==1)break E;H[c+62|0]=0;H[c+39|0]=5;H[c+63|0]=0;H[c+61|0]=0;b=J[c+16>>2]}if(!b)break A;J[c+20>>2]=b;Kb(b);break A}b=Z()|0;a=J[c+16>>2];if(!a)break p;J[c+20>>2]=a;Kb(a);ba(b|0);B()}b=J[a+4>>2];Ab[J[J[b>>2]+76>>2]](b,c+39|0)|0;b=J[a+4>>2];Ab[J[J[b>>2]+100>>2]](b,c+61|0)|0;b=J[a+4>>2];Ab[J[J[b>>2]+84>>2]](b,c+63|0)|0;b=J[a+4>>2];Ab[J[J[b>>2]+92>>2]](b,c+62|0)|0;b=J[a+4>>2];p=c,q=Ab[J[J[d>>2]+8>>2]](d)|0,J[p+16>>2]=q;e=c+16|0;Ab[J[J[b>>2]+52>>2]](b, -e)|0;b=J[a+4>>2];Ab[J[J[b>>2]+68>>2]](b,c+48|0)|0;b=J[a+4>>2];p=c,q=Ab[J[J[d>>2]+20>>2]](d)|0,J[p+16>>2]=q;Ab[J[J[b>>2]+60>>2]](b,e)|0;b=J[a+4>>2];Ab[J[J[b>>2]+124>>2]](b,c+40|0)|0;J:{K:{L:{M:{b=J[a+8>>2];switch((Ab[J[J[b>>2]+80>>2]](b)|0)-1|0){case 15:break K;case 10:break L;case 0:break M;default:break J}}b=J[a+4>>2];J[c+16>>2]=0;Ab[J[J[b>>2]+52>>2]](b,c+16|0)|0;break J}b=J[a+4>>2];J[c+16>>2]=0;Ab[J[J[b>>2]+60>>2]](b,c+16|0)|0;break J}b=J[a+4>>2];J[c+16>>2]=16777215;Ab[J[J[b>>2]+52>>2]](b,c+16| -0)|0}b=1}xb=c- -64|0;break o}ba(b|0);B()}if(b){c=J[a+12>>2];J[a+12>>2]=(c|0)==-1?1:c|1}c=J[a+4>>2];J[i+32>>2]=4;Ab[J[J[c>>2]+308>>2]](c,i+32|0)|0;c=J[a+4>>2];Ab[J[J[c>>2]+352>>2]](c)|0;H[a+64|0]=1;xb=i+80|0}function ida(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0;m=xb-26352|0;xb=m;T=J[b+92>>2];J[a+40>>2]=L[b+68>>1];c=0;a:{if(di(b,1970170211))break a;c=J[b+100>>2];Nb(m+ -19664|4,0,2756);J[m+19664>>2]=c;J[a+9856>>2]=0;J[a+52>>2]=0;h=J[J[(J[J[a>>2]+8>>2]<<2)+16352>>2]+16>>2];c=K[h|0];b:{if(!c)break b;while(1){if((c&255)==32)while(1){c=K[h+1|0];h=h+1|0;if((c|0)==32)continue;break}i=J[J[a+36>>2]>>2];while(1){f=K[h|0];h=h+1|0;if((f|0)==32)continue;break}if(f<<24>>24<0){c=f>>>0<240;d=f>>>0<224;e=d?1:c?2:3;f=(d?31:c?15:7)&f;d=0;c=h;while(1){f=K[c|0]&63|f<<6;c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}h=e+h|0}e=0;while(1){c=K[h|0];if((c|32)!=32){h=h+1|0;e=c;if(c<<24>> -24>=0)continue;e=c>>>0<240;d=c>>>0<224;g=d?1:e?2:3;e=(d?31:e?15:7)&c;d=0;c=h;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}h=h+g|0;continue}break}c:{if(!e){c=ce(i,f);if(c)break c;c=K[h|0]}if(c&255)continue;break b}break}if(Ug(b,c,1))break b;d=J[b+84>>2];if(I[d+110>>1]<=0)break b;e=Nb(m,0,19652);c=J[a+40>>2];J[e+8>>2]=65536;J[e+12>>2]=65536;J[e+40>>2]=c;J[e+4>>2]=b;J[e+22404>>2]=0;J[e+22412>>2]=e;c=e+19664|0;if(bm(c,d+108|0))break b;if(Zi(c,0))break b;h=0;yl(c,0,0,0);d=J[e+ -19708>>2];if((d|0)>0){c=J[e+19716>>2];f=c+P(d,44)|0;while(1){d=J[c+20>>2];if(!(!d|c>>>0>=d>>>0|(J[d+20>>2]!=(c|0)|h>>>0>15))){g=I[c+2>>1]-I[d+2>>1]|0;d=g>>31;J[(P(h,12)+a|0)+56>>2]=(d^g)-d;h=h+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[e+26304>>2]=h;Kn(e+26304|0,a+56|0,M[e+40>>2]/100|0);J[a+52>>2]=J[e+26304>>2];c=e+19664|0;if(Zi(c,1))break b;h=0;yl(c,0,0,1);d=J[e+21056>>2];if((d|0)>0){c=J[e+21064>>2];f=c+P(d,44)|0;while(1){d=J[c+20>>2];if(!(!d|c>>>0>=d>>>0|(J[d+20>>2]!=(c|0)|h>>>0>15))){g=I[c+ -2>>1]-I[d+2>>1]|0;d=g>>31;J[(P(h,12)+a|0)+9860>>2]=(d^g)-d;h=h+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[e+26304>>2]=h;Kn(e+26304|0,a+9860|0,M[e+40>>2]/100|0);J[a+9856>>2]=J[e+26304>>2]}if(J[a+52>>2])c=J[a+56>>2];else c=(P(J[a+40>>2],50)|0)/2048|0;H[a+256|0]=0;J[a+252>>2]=c;J[a+248>>2]=(c|0)/5;if(J[a+9856>>2])c=J[a+9860>>2];else c=(P(J[a+40>>2],50)|0)/2048|0;H[a+10060|0]=0;J[a+10056>>2]=c;J[a+10052>>2]=(c|0)/5;dr(m+19664|0);U=M[a+40>>2]/14|0;N=J[a>>2];c=(J[N+12>>2]<<3)+6560|0;e=J[c>>2];if((e| -0)!=5531)while(1){D=c;h=e+1024|0;c=K[h|0];d:{if(!c)break d;u=0;t=0;p=0;o=0;while(1){if((c&255)==32)while(1){c=K[h+1|0];h=h+1|0;if((c|0)==32)continue;break}i=J[J[a+36>>2]>>2];while(1){f=K[h|0];h=h+1|0;if((f|0)==32)continue;break}if(f<<24>>24<0){c=f>>>0<240;d=f>>>0<224;e=d?1:c?2:3;f=(d?31:c?15:7)&f;d=0;c=h;while(1){f=K[c|0]&63|f<<6;c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}h=e+h|0}e=0;while(1){c=K[h|0];if((c|32)!=32){h=h+1|0;e=c;if(c<<24>>24>=0)continue;c=c>>>0<240;d=e>>>0<224;g=d?1:c?2:3;e=(d? -31:c?15:7)&e;d=0;c=h;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}h=h+g|0;continue}break}e:{if(e)break e;l=L[D+4>>1];O=l&1;F=O?-2147483648:2147483647;n=0;c=ce(i,f);f:{if(!c)break f;if(Ug(b,c,1))break f;c=J[b+84>>2];if(I[c+110>>1]<3)break f;r=0;z=I[c+108>>1];g:{if((z|0)<=0){j=0;break g}w=l&3;E=J[c+120>>2];x=J[c+116>>2];q=J[c+112>>2];g=-1;v=0;f=0;e=0;while(1){k=I[E+(n<<1)>>1];h:{if((k|0)<=(f|0)){d=g;break h}i:{if(w){j:{if(!((k-f|0)+1&1)){i=f;c=e;d=g;break j}i=f+1|0;c=J[((f<< -3)+q|0)+4>>2];k:{if(!((g|0)<0|(e|0)<(c|0))){o=(c|0)>(o|0)?o:c;c=e;d=g;break k}p=(c|0)<(p|0)?p:c;e=c;d=f}}if((f|0)==(k|0))break i;while(1){e=J[((i<<3)+q|0)+4>>2];l:{if(!((e|0)<=(c|0)&(d|0)>=0)){p=(e|0)<(p|0)?p:e;d=i;break l}o=(e|0)>(o|0)?o:e;e=c}j=i+1|0;c=J[((j<<3)+q|0)+4>>2];m:{if(!((d|0)<0|(e|0)<(c|0))){o=(c|0)>(o|0)?o:c;c=e;break m}p=(c|0)<(p|0)?p:c;d=j}i=i+2|0;e=c;if((j|0)!=(k|0))continue;break}break i}n:{if(!((k-f|0)+1&1)){i=f;c=e;d=g;break n}i=f+1|0;c=J[((f<<3)+q|0)+4>>2];o:{if(!((g|0)<0|(e| -0)>(c|0))){p=(c|0)<(p|0)?p:c;c=e;d=g;break o}o=(c|0)>(o|0)?o:c;e=c;d=f}}if((f|0)==(k|0))break i;while(1){e=J[((i<<3)+q|0)+4>>2];p:{if(!((d|0)>=0&(e|0)>=(c|0))){o=(e|0)>(o|0)?o:e;d=i;break p}p=(e|0)<(p|0)?p:e;e=c}j=i+1|0;c=J[((j<<3)+q|0)+4>>2];q:{if(!((d|0)<0|(e|0)>(c|0))){p=(c|0)<(p|0)?p:c;c=e;break q}o=(c|0)>(o|0)?o:c;d=j}i=i+2|0;e=c;if((j|0)!=(k|0))continue;break}}c=(d|0)==(g|0);r=c?r:f;v=c?v:k;g=d}f=k+1|0;n=n+1|0;if((z|0)!=(n|0))continue;break}if((d|0)<0){j=e;r=0;break g}E=l&4;n=l&16;z=J[(d<<3)+ -q>>2];g=d;c=(K[d+x|0]&3)!=1?-1:d;i=c;r:{while(1){f=(g|0)>(r|0)?g-1|0:v;k=(f<<3)+q|0;l=J[k+4>>2]-e|0;j=l>>31;l=(j^l)-j|0;if(l>>>0>=6){k=J[k>>2]-z|0;j=k>>31;if((j^k)-j>>>0<=P(l,20)>>>0)break r}g=(K[f+x|0]&3)==1;i=g?(i|0)<0?f:i:i;c=g?f:c;g=f;if((f|0)!=(d|0))continue;break}g=d}f=d;s:{while(1){j=(f|0)<(v|0)?f+1|0:r;G=(j<<3)+q|0;l=J[G+4>>2]-e|0;k=l>>31;l=(k^l)-k|0;if(l>>>0>=6){w=J[G>>2]-z|0;k=w>>31;if((k^w)-k>>>0<=P(l,20)>>>0)break s}f=(K[j+x|0]&3)==1;c=f?(c|0)<0?j:c:c;i=f?j:i;f=j;if((f|0)!=(d|0))continue; -break}f=d}t:{u:{if(!n)break u;k=J[(f<<3)+q>>2]-J[(g<<3)+q>>2]|0;j=k>>31;l=J[a+40>>2];Q=(l>>>0)/25|0;if(Q>>>0<=(j^k)-j>>>0)break u;j=d;if(((f-g|0)+2|0)>(v-r|0))break u;while(1){j=(j|0)>(r|0)?j-1|0:v;R=J[(j<<3)+q>>2];if((R|0)==(z|0)&(d|0)!=(j|0))continue;break}n=0;if((d|0)==(j|0))break f;V=l>>>2|0;w=0;k=f;d=f;l=0;while(1){if(!w){n=(K[d+x|0]&3)!=1?-1:d;l=n;k=d}d=(d|0)<(v|0)?d+1|0:r;w=0;y=(k<<3)+q|0;j=J[y+4>>2];s=e-j|0;A=s>>31;v:{if((s^A)-A>>>0>V>>>0)break v;s=(d<<3)+q|0;S=J[s>>2];A=J[y>>2];B=S-A|0;y= -B>>31;C=J[s+4>>2]-j|0;s=C>>31;C=(s^C)-s|0;s=P(C,20);y=(y^B)-y|0;if(C>>>0>=6&s>>>0>=y>>>0)break v;w=1;B=(K[d+x|0]&3)==1;n=B?(n|0)<0?d:n:n;l=B?d:l;if((A|0)<(S|0)^(z|0)>(R|0)|y>>>0>>0)break v;while(1){d=(d|0)<(v|0)?d+1|0:r;e=J[((d<<3)+q|0)+4>>2]-j|0;c=e>>31;w:{if((c^e)-c>>>0<6)break w;e=J[G>>2]-A|0;c=e>>31;if(s>>>0<(c^e)-c>>>0)break w;f=(d|0)>(r|0)?d-1|0:v;break t}n=(K[d+x|0]&3)==1?(n|0)<0?d:n:n;l=d;if((d|0)!=(g|0))continue;break}f=g;l=f;break t}if((d|0)!=(g|0))continue;break}}j=e;k=g;n=c;l=i}x:{if((n| -l)<0)break x;e=J[(l<<3)+q>>2]-J[(n<<3)+q>>2]|0;c=e>>31;if((c^e)-c>>>0<=U>>>0)break x;r=0;break g}if((K[k+x|0]&3)==1){c=K[f+x|0]&3;r=(c|0)!=1;if((c|0)==1)break g;n=0;if(!E)break g;break f}n=0;r=1;if(E)break f}n=O?(j|0)!=-2147483648?r:0:(j|0)!=2147483647?r:0;F=j}if(F-2147483647>>>0<2)break e;J[(n?(m+19664|0)+(t<<2)|0:(u<<2)+m|0)>>2]=F;t=n+t|0;u=!n+u|0}c=K[h|0];if(c)continue;break}if(!(t|u))break d;y:{if(t>>>0<2)break y;f=1;c=t-1|0;d=c&1;if((t|0)!=2){g=c&-2;j=0;while(1){c=f;while(1){e=(m+19664|0)+(c<< -2)|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}c=f+1|0;while(1){e=(m+19664|0)+(c<<2)|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}f=f+2|0;j=j+2|0;if((g|0)!=(j|0))continue;break}}if(!d)break y;while(1){c=(m+19664|0)+(f<<2)|0;e=J[c>>2];d=c-4|0;g=J[d>>2];if((e|0)>=(g|0))break y;J[c>>2]=g;J[d>>2]=e;f=f-1|0;if(f)continue;break}}z:{if(u>>>0<2)break z;f=1;c=u-1|0;d=c&1;if((u|0)!=2){g=c&-2;j=0;while(1){c=f; -while(1){e=(c<<2)+m|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}c=f+1|0;while(1){e=(c<<2)+m|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}f=f+2|0;j=j+2|0;if((g|0)!=(j|0))continue;break}}if(!d)break z;while(1){c=(f<<2)+m|0;e=J[c>>2];d=c-4|0;g=J[d>>2];if((e|0)>=(g|0))break z;J[c>>2]=g;J[d>>2]=e;f=f-1|0;if(f)continue;break}}c=J[a+10064>>2];J[a+10064>>2]=c+1;e=P(c,36)+a|0;c=e+10080|0;i=e+10068|0;f=L[D+4>> -1];d=J[(m+19664|0)+(t<<1&-4)>>2];A:{B:{if(!u)break B;d=J[(u<<1&-4)+m>>2];if(!t)break B;J[i>>2]=d;g=J[(m+19664|0)+(t<<1&-4)>>2];J[c>>2]=g;if((d|0)==(g|0)|((f&3)!=0|0)==((d|0)<(g|0)|0))break A;d=(d+g|0)/2|0}J[c>>2]=d;J[i>>2]=d}c=e+10100|0;d=f<<1&14;J[c>>2]=d;J[e+10096>>2]=o;J[e+10092>>2]=p;if(!(f&8))break d;J[c>>2]=d|16}c=D+8|0;e=J[D+8>>2];if((e|0)!=5531)continue;break}e=J[a+10064>>2];if(e){d=0;c=0;if(e>>>0>=4){i=e&-4;f=a+10068|0;h=0;while(1){g=m+26304|0;J[g+(c<<2)>>2]=f+P(c,36);j=c|1;J[g+(j<<2)>>2]= -f+P(j,36);j=c|2;J[g+(j<<2)>>2]=f+P(j,36);j=c|3;J[g+(j<<2)>>2]=f+P(j,36);c=c+4|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}f=e&3;if(f)while(1){J[(m+26304|0)+(c<<2)>>2]=(P(c,36)+a|0)+10068;c=c+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}if(e>>>0>=2){f=1;while(1){c=f;while(1){d=(m+26304|0)+(c<<2)|0;g=J[d>>2];j=d-4|0;i=J[j>>2];if(J[(K[g+32|0]&6?0:12)+g>>2]>2]){J[d>>2]=i;J[j>>2]=g;c=c-1|0;if(c)continue}break}f=f+1|0;if((e|0)!=(f|0))continue;break}}g=e-1|0;if(g){c=J[m+26304>>2];d=J[c+ -32>>2];e=0;while(1){f=d&6?c+12|0:c;e=e+1|0;c=J[(m+26304|0)+(e<<2)>>2];d=J[c+32>>2];i=J[(d&6?12:0)+c>>2];if((i|0)>2])J[f>>2]=i;if((e|0)!=(g|0))continue;break}}J[m>>2]=0;i=21296;c=48;o=0;j=0;C:{while(1){i=i+1|0;if((c&255)==32)while(1){c=K[i|0];i=i+1|0;if((c|0)==32)continue;break}f=c&255;if(c<<24>>24<0){c=f>>>0<240;e=f>>>0<224;d=e?1:c?2:3;f=(e?31:c?15:7)&f;e=0;c=i;while(1){f=K[c|0]&63|f<<6;c=c+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}i=d+i|0}g=J[J[a+36>>2]>>2];e=0;while(1){c=K[i|0];if((c|32)!= -32){i=i+1|0;e=c;if(c<<24>>24>=0)continue;c=c>>>0<240;d=e>>>0<224;h=d?1:c?2:3;e=(d?31:c?15:7)&e;d=0;c=i;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}i=h+i|0;continue}break}D:{if(e){Xl(g,0,2051,m);break D}c=ce(g,f);Xl(J[J[a+36>>2]>>2],c,2051,m);if(!c)break D;e=o&255;o=1;c=J[m>>2];if(!e){j=c;break D}if((c|0)==(j|0))break D;c=0;break C}c=K[i|0];if(c)continue;break}c=1}H[a+32|0]=c;c=0;break a}c=J[a+36>>2];a=J[c+4>>2];E:{if((a|0)<=0)break E;e=J[c+8>>2];d=J[N>>2];c=0;if((a|0)!= -1){f=a&-2;h=0;while(1){g=c<<1;i=g+e|0;if((d|0)==(L[i>>1]&16383))I[i>>1]=66;g=e+(g|2)|0;if((d|0)==(L[g>>1]&16383))I[g>>1]=66;c=c+2|0;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(a&1))break E;a=e+(c<<1)|0;if((d|0)!=(L[a>>1]&16383))break E;I[a>>1]=66}c=-1}ci(b,T);xb=m+26352|0;return c|0}function AL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;e=xb-1536|0;xb=e;J[b>>2]=1;n=xf(J[b+96>>2],10650,1);J[b+488>>2]=n;l=Jg(J[J[b+96>>2]+4>>2],10788);J[b+492>>2]= -l;a:{if(!l){a=11;break a}q=b,r=Jg(J[J[b+96>>2]+4>>2],10580),J[q+552>>2]=r;i=J[b+492>>2];a=e+12|0;Nb(a,0,380);J[b+544>>2]=0;J[b+536>>2]=-1;J[b+540>>2]=-1;J[b+284>>2]=1;J[b+348>>2]=3932;J[b+172>>2]=4;J[b+276>>2]=2596864;J[b+280>>2]=7;f=J[b+104>>2];g=J[b+100>>2];Ab[J[J[i+4>>2]>>2]](a,0,0,g);J[e+96>>2]=0;J[e+100>>2]=0;H[e+103|0]=0;H[e+104|0]=0;H[e+105|0]=0;H[e+106|0]=0;J[e+88>>2]=0;J[e+92>>2]=0;J[e+84>>2]=f;a=fv(f,11316,14);J[e+8>>2]=a;b:{c:{d:{if(a){if((a&255)!=2)break d;a=fv(f,11489,10);J[e+8>>2]=a; -if(a)break d}a=bc(f,0);J[e+8>>2]=a;if(a)break d;d=e+1528|0;h=rc(f,d);e:{f:{g:{h:{a=J[e+1528>>2];if(!a){if((h+32767&65535)>>>0>=2)break g;d=Te(f,d);a=J[e+1528>>2];if(!a)break h}J[e+8>>2]=a;break d}J[e+8>>2]=0;if((h|0)==32769)break f}a=bc(f,0);J[e+8>>2]=a;if(a)break d;d=J[f+4>>2];break e}H[e+104|0]=1}i:{if(!J[f+20>>2]){a=J[f+8>>2];h=J[f>>2];H[e+105|0]=1;J[e+92>>2]=d;J[e+88>>2]=a+h;a=yd(f,d);J[e+8>>2]=a;if(a)break d;d=J[e+92>>2];break i}h=tc(g,d,e+8|0);J[e+88>>2]=h;a=J[e+8>>2];if(a)break d;a=Dd(f,h, -d);J[e+8>>2]=a;if(a)break d;J[e+92>>2]=d}f=J[e+88>>2];J[e+16>>2]=f;J[e+12>>2]=f;J[e+20>>2]=d+f;break c}if(K[e+105|0]){J[e+4>>2]=a;break b}a=J[e+88>>2];if(a)Ab[J[g+8>>2]](g,a);f=0;J[e+88>>2]=0;a=J[e+8>>2];J[e+4>>2]=a;if(a)break b;d=J[e+92>>2]}a=ev(b,e+12|0,f,d);J[e+4>>2]=a;if(a)break b;j=J[e+28>>2];a=J[e+84>>2];J[e+8>>2]=0;j:{k:{l:{m:{if(K[e+104|0]){h=J[a+8>>2];J[e+100>>2]=0;while(1){d=rc(a,e+1528|0);g=J[e+1528>>2];if(g)break k;if((d+32767&65535)>>>0>=2){J[e+8>>2]=0;break m}f=Te(a,e+1528|0);g=J[e+ -1528>>2];if(g)break k;J[e+8>>2]=0;if((d|0)!=32770)break m;J[e+100>>2]=f+J[e+100>>2];g=yd(a,f);J[e+8>>2]=g;if(!g)continue;break}break k}d=J[e+88>>2];h=J[e+92>>2];f=d+h|0;a=d;while(1){n:{o:{if(K[a|0]!=101|a+9>>>0>=f>>>0|(K[a+1|0]!=101|K[a+2|0]!=120))break o;if(K[a+3|0]!=101)break o;if(K[a+4|0]==99)break n}a=a+1|0;if(f>>>0>a>>>0)continue;J[e+4>>2]=3;break b}a=a+10|0;J[e+20>>2]=a;J[e+12>>2]=d;p:{if(a>>>0>d>>>0){while(1){q:{if(K[d|0]!=101|d+5>>>0>=a>>>0|(K[d+1|0]!=101|K[d+2|0]!=120))break q;if(K[d+3|0]!= -101)break q;if(K[d+4|0]==99)break p}d=e+12|0;Ab[J[e+44>>2]](d);if(!J[e+24>>2]){Ab[J[e+40>>2]](d);d=J[e+12>>2];if(d>>>0>>0)continue}break}h=J[e+92>>2];d=J[e+88>>2]}g=3;f=d+h|0;if(f>>>0>a>>>0)continue;break k}break}J[e+20>>2]=J[e+88>>2]+J[e+92>>2];Ab[J[e+44>>2]](e+12|0);h=J[e+20>>2];a=J[e+12>>2];f=h-a|0;d=bh(a,10,f);if(d)d=bh(a,13,f)>>>0>>0;else d=1;g=3;if(a>>>0>=h>>>0)break k;k=a+f|0;while(1){r:{f=K[a|0];if(!((f|0)==9|(f|0)==32|(f|0)==10))if(!(d&(f|0)==13))break r;a=a+1|0;if((k|0)!=(a|0))continue; -break k}break}d=J[e+88>>2];f=J[e+92>>2]+(d-a|0)|0;s:{if(K[e+105|0]){d=tc(j,f+1|0,e+8|0);J[e+96>>2]=d;g=J[e+8>>2];if(g)break k;J[e+100>>2]=f;break s}J[e+100>>2]=f;J[e+96>>2]=d;H[e+106|0]=1;J[e+88>>2]=0;J[e+92>>2]=0}t:{if(h>>>0<=a+3>>>0)break t;u:{g=K[a|0];if(g-48>>>0<10)break u;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break u;default:break t}}v:{g=K[a+1|0];if(g-48>>>0<10)break v;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break v; -default:break t}}w:{g=K[a+2|0];if(g-48>>>0<10)break w;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break w;default:break t}}x:{g=K[a+3|0];if(g-48>>>0<10)break x;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break x;default:break t}}J[e+12>>2]=a;Ab[J[J[i+4>>2]+24>>2]](e+12|0,d,f,e+1528|0,0)|0;a=J[e+1528>>2];J[e+100>>2]=a;H[a+J[e+96>>2]|0]=0;break l}qc(d,a,f);break l}if(!J[e+100>>2]){J[e+ -4>>2]=3;break b}g=bc(a,h);J[e+8>>2]=g;if(g)break k;q=e,r=tc(j,J[e+100>>2],e+8|0),J[q+96>>2]=r;g=J[e+8>>2];if(g)break k;J[e+100>>2]=0;f=rc(a,e+1528|0);y:{if(J[e+1528>>2])break y;while(1){if((f+32767&65535)>>>0>1)break y;h=e+1528|0;d=Te(a,h);if(J[e+1528>>2])break y;J[e+8>>2]=0;if((f&65535)!=32770)break y;g=Dd(a,J[e+96>>2]+J[e+100>>2]|0,d);J[e+8>>2]=g;if(g)break k;J[e+100>>2]=d+J[e+100>>2];f=rc(a,h);if(!J[e+1528>>2])continue;break}}J[e+8>>2]=0}Ab[J[i+16>>2]](J[e+96>>2],J[e+100>>2],55665);g=3;if(M[e+ -100>>2]>3)break j}J[e+4>>2]=g;break b}H[J[e+96>>2]]=32;H[J[e+96>>2]+1|0]=32;H[J[e+96>>2]+2|0]=32;H[J[e+96>>2]+3|0]=32;a=J[e+96>>2];J[e+16>>2]=a;J[e+12>>2]=a;d=J[e+100>>2];J[e+20>>2]=d+a;f=J[e+8>>2];J[e+4>>2]=f;if(f)break b;a=ev(b,e+12|0,a,d);J[e+4>>2]=a;if(a)break b;H[b+176|0]=K[b+176|0]&254;z:{A:{f=J[b+532>>2];if(!f)break A;if(J[f>>2]!=1<>2]){Ok(b);f=J[b+532>>2];if(!f)break A}a=J[f+416>>2];if(!(!a|(a|0)==J[f+4>>2]))J[f+416>>2]=0;B:{C:{if(J[f>>2]){d=J[f+4>>2];if(d)break C}Ok(b);f=J[b+532>> -2];if(!f)break A;d=J[f+4>>2];if(!d)break B}a=0;while(1){if(K[(P(a,12)+f|0)+88|0]){a=a+1|0;if((d|0)!=(a|0))continue;break B}break}Ok(b);if(!J[b+532>>2])break A}a=J[b+544>>2];if(!a)break z;q=b,r=Tb(J[b+100>>2],4,0,a,0,e+4|0),J[q+548>>2]=r;if(!J[e+4>>2])break z;J[b+544>>2]=0;break b}J[b+544>>2]=0}f=J[e+164>>2];J[b+420>>2]=f;if(J[e+340>>2]){J[b+404>>2]=J[e+324>>2];J[b+392>>2]=J[e+328>>2];J[b+408>>2]=J[e+352>>2];J[b+412>>2]=J[e+356>>2];J[b+416>>2]=J[e+380>>2];J[e+380>>2]=0;J[e+340>>2]=0}if(!(J[J[b+128>> -2]+52>>2]|J[e+232>>2]))J[e+4>>2]=3;g=0;J[e+232>>2]=0;J[b+396>>2]=J[e+220>>2];J[b+428>>2]=J[e+244>>2];J[b+432>>2]=J[e+248>>2];J[b+400>>2]=J[e+168>>2];J[b+424>>2]=J[e+192>>2];J[e+192>>2]=0;J[e+168>>2]=0;if(J[b+368>>2]==1){h=0;i=J[e+128>>2];D:{if((i|0)<=0)break D;if((f|0)>0){d=0;while(1){j=d<<2;k=J[j+J[e+136>>2]>>2];o=d<<1;I[o+J[b+384>>2]>>1]=0;J[j+J[b+388>>2]>>2]=11262;E:{if(!k)break E;p=J[b+424>>2];a=0;while(1){m=J[(a<<2)+p>>2];if(fc(k,m)){a=a+1|0;if((f|0)!=(a|0))continue;break E}break}I[J[b+384>> -2]+o>>1]=a;J[j+J[b+388>>2]>>2]=m;if(!fc(11262,m))break E;h=(d|0)<(h|0)?h:d+1|0;g=(d|0)<(g|0)?d:g}d=d+1|0;if((i|0)!=(d|0))continue;break}break D}f=0;a=0;if(i>>>0>=4){g=i&-4;d=0;while(1){I[J[b+384>>2]+(a<<1)>>1]=0;J[J[b+388>>2]+(a<<2)>>2]=11262;h=a|1;I[J[b+384>>2]+(h<<1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=11262;h=a|2;I[J[b+384>>2]+(h<<1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=11262;h=a|3;I[J[b+384>>2]+(h<<1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=11262;a=a+4|0;d=d+4|0;if((g|0)!=(d|0))continue;break}}d=i&3;if(!d){g=0;h= -0;break D}while(1){g=0;I[J[b+384>>2]+(a<<1)>>1]=0;J[J[b+388>>2]+(a<<2)>>2]=11262;a=a+1|0;h=0;f=f+1|0;if((d|0)!=(f|0))continue;break}}J[b+380>>2]=h;J[b+376>>2]=g;J[b+372>>2]=J[e+108>>2]}if(M[b+280>>2]>=1001)J[b+280>>2]=7;if(M[b+284>>2]<1001)break b;J[b+284>>2]=1}a=J[e+28>>2];d=J[e+160>>2];if(d)Ab[d|0](e+112|0);d=J[e+268>>2];if(d)Ab[d|0](e+220|0);d=J[e+216>>2];if(d)Ab[d|0](e+168|0);d=J[e+320>>2];if(d)Ab[d|0](e+272|0);d=J[e+376>>2];if(d)Ab[d|0](e+328|0);ho(J[e+380>>2],a);d=J[e+380>>2];if(d)Ab[J[a+8>> -2]](a,d);J[e+380>>2]=0;a=J[e+28>>2];d=J[e+96>>2];if(d)Ab[J[a+8>>2]](a,d);J[e+96>>2]=0;if(!K[e+105|0]){d=J[e+88>>2];if(d)Ab[J[a+8>>2]](a,d);J[e+88>>2]=0}Ab[J[e+36>>2]](e+12|0);a=J[e+4>>2];if(a|(c|0)<0)break a;a=6;if(c&65535)break a;J[b+4>>2]=0;J[b+16>>2]=J[b+420>>2];c=J[b+8>>2];a=c|2577;J[b+8>>2]=a;if(K[b+156|0]){a=c|2581;J[b+8>>2]=a}g=J[b+532>>2];if(g)J[b+8>>2]=a|256;J[b+24>>2]=0;f=J[b+144>>2];J[b+20>>2]=f;F:{G:{if(f){a=J[b+140>>2];if(!a)break G;c=K[a|0];if(!c){a=10918;break F}while(1){H:{I:{d=c& -255;c=K[f|0];if((d|0)==(c|0)){a=a+1|0;break I}d=d-32|0;if(!((d|0)!=13?d:0)){a=a+1|0;break H}J:switch(c-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break G;case 0:case 13:break I;default:break J}if(c)break G;break F}f=f+1|0}c=K[a|0];if(c)continue;break}a=10918;break F}a=J[b+364>>2];if(!a)break G;J[b+20>>2]=a}a=J[b+148>>2];a=a?a:10918}J[b+24>>2]=a;c=J[b+152>>2]!=0;J[b+12>>2]=c;a=J[b+148>>2];K:{if(!a)break K;if(fc(a,11038))if(fc(a,11114))break K;J[b+12>> -2]=c|2}J[b+28>>2]=0;J[b+32>>2]=0;J[b+52>>2]=I[b+466>>1];a=I[b+470>>1];J[b+56>>2]=a;f=J[b+472>>2]+65535>>16;J[b+60>>2]=f;d=J[b+476>>2]+65535>>16;J[b- -64>>2]=d;c=L[b+68>>1];if(!c){I[b+68>>1]=1E3;c=1E3}I[b+76>>1]=f;I[b+72>>1]=a;I[b+70>>1]=d;a=d-a|0;c=(P(c,12)>>>0)/10|0;I[b+74>>1]=(a|0)>c<<16>>16?a:c;a=0;c=e+12|0;d=J[b+492>>2];if(!(Ab[J[J[d+12>>2]>>2]](c,b,0,0,J[b+424>>2],g,0,0,109)|0)){H[e+80|0]=0;H[e+82|0]=1;J[e+1376>>2]=J[b+404>>2];J[e+1380>>2]=J[b+408>>2];J[e+1384>>2]=J[b+412>>2];J[e+1388>>2]=J[b+ -416>>2];J[e+1508>>2]=J[b+548>>2];J[e+1512>>2]=J[b+544>>2];L:{if(J[b+420>>2]<=0)break L;a=c;c=e+1528|0;M:{if(Nk(a,0,c,e+8|0))break M;a=J[J[J[e+16>>2]+128>>2]+52>>2];if(!a)break M;Ab[J[J[a>>2]+4>>2]](J[a+4>>2],c)}a=J[e+52>>2];if(J[b+420>>2]<2)break L;f=1;while(1){g=e+1528|0;N:{if(Nk(e+12|0,f,g,e+8|0))break N;c=J[J[J[e+16>>2]+128>>2]+52>>2];if(!c)break N;Ab[J[J[c>>2]+4>>2]](J[c+4>>2],g)}c=J[e+52>>2];a=(a|0)<(c|0)?c:a;f=f+1|0;if((f|0)>2])continue;break}}Ab[J[J[d+12>>2]+4>>2]](e+12|0);I[b+76>> -1]=(((a>>31)+a|0)+32768&-65536)>>>16}I[b+78>>1]=L[b+74>>1];J[b+80>>2]=L[b+158>>1]|L[b+160>>1]<<16;if(!n){a=0;break a}f=J[l+32>>2];J[e+12>>2]=b;J[e+16>>2]=1970170211;J[e+20>>2]=65539;a=zf(J[f+12>>2],0,e+12|0,0);O:{if(!a)break O;c=a&255;if((c|0)==163)break O;if((c|0)!=7)break a}I[e+20>>1]=7;a=0;P:{Q:switch(J[b+368>>2]-1|0){case 1:I[e+22>>1]=0;J[e+16>>2]=1094995778;break P;case 3:I[e+22>>1]=1;J[e+16>>2]=1094992453;f=f+4|0;break P;case 0:I[e+22>>1]=2;J[e+16>>2]=1094992451;f=f+8|0;break P;case 2:break Q; -default:break a}f=f+12|0;I[e+22>>1]=3;J[e+16>>2]=1818326065}b=J[f>>2];if(!b)break a;a=zf(b,0,e+12|0,0)}xb=e+1536|0;return a|0}function Qb(a){a=a|0;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;l=xb-16|0;xb=l;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(a>>>0<=244){g=J[195271];h=a>>>0<11?16:a+11&-8;c=h>>>3|0;b=g>>>c|0;if(b&3){c=c+((b^-1)&1)|0;a=c<<3;b=a+781124|0;d=J[a+781132>>2];a=J[d+8>>2];j:{if((b|0)==(a|0)){m=781084,n=Opa(-2,c)&g,J[m>>2]=n;break j}J[a+12>>2]=b;J[b+8>>2]=a}a=d+8|0;b=c<<3;J[d+4>>2]=b| -3;b=b+d|0;J[b+4>>2]=J[b+4>>2]|1;break a}k=J[195273];if(k>>>0>=h>>>0)break i;if(b){a=2<>2];a=J[e+8>>2];k:{if((b|0)==(a|0)){g=Opa(-2,d)&g;J[195271]=g;break k}J[a+12>>2]=b;J[b+8>>2]=a}J[e+4>>2]=h|3;c=e+h|0;a=d<<3;d=a-h|0;J[c+4>>2]=d|1;J[a+e>>2]=d;if(k){b=(k&-8)+781124|0;f=J[195276];a=1<<(k>>>3);l:{if(!(a&g)){J[195271]=a|g;a=b;break l}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a}a=e+8|0;J[195276]=c;J[195273]=d;break a}j=J[195272]; -if(!j)break i;c=J[(Jpa(j)<<2)+781388>>2];e=(J[c+4>>2]&-8)-h|0;b=c;while(1){m:{a=J[b+16>>2];if(!a){a=J[b+20>>2];if(!a)break m}b=(J[a+4>>2]&-8)-h|0;d=b>>>0>>0;e=d?b:e;c=d?a:c;b=a;continue}break}i=J[c+24>>2];d=J[c+12>>2];if((d|0)!=(c|0)){a=J[c+8>>2];J[a+12>>2]=d;J[d+8>>2]=a;break b}b=c+20|0;a=J[b>>2];if(!a){a=J[c+16>>2];if(!a)break h;b=c+16|0}while(1){f=b;d=a;b=a+20|0;a=J[b>>2];if(a)continue;b=d+16|0;a=J[d+16>>2];if(a)continue;break}J[f>>2]=0;break b}h=-1;if(a>>>0>4294967231)break i;a=a+11|0;h=a& --8;j=J[195272];if(!j)break i;e=0-h|0;g=0;n:{if(h>>>0<256)break n;g=31;if(h>>>0>16777215)break n;a=S(a>>>8|0);g=((h>>>38-a&1)-(a<<1)|0)+62|0}b=J[(g<<2)+781388>>2];o:{p:{q:{if(!b){a=0;break q}a=0;c=h<<((g|0)!=31?25-(g>>>1|0)|0:0);while(1){r:{f=(J[b+4>>2]&-8)-h|0;if(f>>>0>=e>>>0)break r;d=b;e=f;if(e)break r;e=0;a=b;break p}f=J[b+20>>2];b=J[((c>>>29&4)+b|0)+16>>2];a=f?(f|0)==(b|0)?a:f:a;c=c<<1;if(b)continue;break}}if(!(a|d)){d=0;a=2<>2]}if(!a)break o}while(1){b= -(J[a+4>>2]&-8)-h|0;c=b>>>0>>0;e=c?b:e;d=c?a:d;b=J[a+16>>2];if(b)a=b;else a=J[a+20>>2];if(a)continue;break}}if(!d|J[195273]-h>>>0<=e>>>0)break i;g=J[d+24>>2];c=J[d+12>>2];if((d|0)!=(c|0)){a=J[d+8>>2];J[a+12>>2]=c;J[c+8>>2]=a;break c}b=d+20|0;a=J[b>>2];if(!a){a=J[d+16>>2];if(!a)break g;b=d+16|0}while(1){f=b;c=a;b=a+20|0;a=J[b>>2];if(a)continue;b=c+16|0;a=J[c+16>>2];if(a)continue;break}J[f>>2]=0;break c}a=J[195273];if(a>>>0>=h>>>0){d=J[195276];b=a-h|0;s:{if(b>>>0>=16){c=d+h|0;J[c+4>>2]=b|1;J[a+d>> -2]=b;J[d+4>>2]=h|3;break s}J[d+4>>2]=a|3;a=a+d|0;J[a+4>>2]=J[a+4>>2]|1;c=0;b=0}J[195273]=b;J[195276]=c;a=d+8|0;break a}i=J[195274];if(i>>>0>h>>>0){b=i-h|0;J[195274]=b;c=J[195277];a=c+h|0;J[195277]=a;J[a+4>>2]=b|1;J[c+4>>2]=h|3;a=c+8|0;break a}a=0;e=h+47|0;if(J[195389])c=J[195391];else{J[195392]=-1;J[195393]=-1;J[195390]=4096;J[195391]=4096;J[195389]=l+12&-16^1431655768;J[195394]=0;J[195382]=0;c=4096}g=e+c|0;f=0-c|0;b=g&f;if(b>>>0<=h>>>0)break a;d=J[195381];if(d){c=J[195379];j=c+b|0;if(d>>>0>>0| -c>>>0>=j>>>0)break a}t:{if(!(K[781528]&4)){u:{v:{w:{x:{d=J[195277];if(d){a=781532;while(1){c=J[a>>2];if(c>>>0<=d>>>0&d>>>0>2]>>>0)break x;a=J[a+8>>2];if(a)continue;break}}c=Jj(0);if((c|0)==-1)break u;g=b;d=J[195390];a=d-1|0;if(a&c)g=(b-c|0)+(a+c&0-d)|0;if(g>>>0<=h>>>0)break u;d=J[195381];if(d){a=J[195379];f=a+g|0;if(d>>>0>>0|a>>>0>=f>>>0)break u}a=Jj(g);if((c|0)!=(a|0))break w;break t}g=f&g-i;c=Jj(g);if((c|0)==(J[a>>2]+J[a+4>>2]|0))break v;a=c}if((a|0)==-1)break u;if(h+48>>>0<=g>>>0){c= -a;break t}c=J[195391];c=c+(e-g|0)&0-c;if((Jj(c)|0)==-1)break u;g=c+g|0;c=a;break t}if((c|0)!=-1)break t}J[195382]=J[195382]|4}c=Jj(b);a=Jj(0);if((c|0)==-1|(a|0)==-1|a>>>0<=c>>>0)break d;g=a-c|0;if(g>>>0<=h+40>>>0)break d}a=J[195379]+g|0;J[195379]=a;if(a>>>0>M[195380])J[195380]=a;y:{e=J[195277];if(e){a=781532;while(1){d=J[a>>2];b=J[a+4>>2];if((d+b|0)==(c|0))break y;a=J[a+8>>2];if(a)continue;break}break f}a=J[195275];if(!(a>>>0<=c>>>0?a:0))J[195275]=c;a=0;J[195384]=g;J[195383]=c;J[195279]=-1;J[195280]= -J[195389];J[195386]=0;while(1){d=a<<3;b=d+781124|0;J[d+781132>>2]=b;J[d+781136>>2]=b;a=a+1|0;if((a|0)!=32)continue;break}d=g-40|0;a=-8-c&7;b=d-a|0;J[195274]=b;a=a+c|0;J[195277]=a;J[a+4>>2]=b|1;J[(c+d|0)+4>>2]=40;J[195278]=J[195393];break e}if(J[a+12>>2]&8|(c>>>0<=e>>>0|d>>>0>e>>>0))break f;J[a+4>>2]=b+g;a=-8-e&7;c=a+e|0;J[195277]=c;b=J[195274]+g|0;a=b-a|0;J[195274]=a;J[c+4>>2]=a|1;J[(b+e|0)+4>>2]=40;J[195278]=J[195393];break e}d=0;break b}c=0;break c}if(M[195275]>c>>>0)J[195275]=c;b=c+g|0;a=781532; -z:{A:{B:{while(1){if((b|0)!=J[a>>2]){a=J[a+8>>2];if(a)continue;break B}break}if(!(K[a+12|0]&8))break A}a=781532;while(1){C:{b=J[a>>2];if(b>>>0<=e>>>0){f=b+J[a+4>>2]|0;if(f>>>0>e>>>0)break C}a=J[a+8>>2];continue}break}d=g-40|0;a=-8-c&7;b=d-a|0;J[195274]=b;a=a+c|0;J[195277]=a;J[a+4>>2]=b|1;J[(c+d|0)+4>>2]=40;J[195278]=J[195393];a=(f+(39-f&7)|0)-47|0;d=a>>>0>>0?e:a;J[d+4>>2]=27;a=J[195386];J[d+16>>2]=J[195385];J[d+20>>2]=a;a=J[195384];J[d+8>>2]=J[195383];J[d+12>>2]=a;J[195385]=d+8;J[195384]=g; -J[195383]=c;J[195386]=0;a=d+24|0;while(1){J[a+4>>2]=7;b=a+8|0;a=a+4|0;if(b>>>0>>0)continue;break}if((d|0)==(e|0))break e;J[d+4>>2]=J[d+4>>2]&-2;f=d-e|0;J[e+4>>2]=f|1;J[d>>2]=f;if(f>>>0<=255){b=(f&-8)+781124|0;c=J[195271];a=1<<(f>>>3);D:{if(!(c&a)){J[195271]=a|c;a=b;break D}a=J[b+8>>2]}J[b+8>>2]=e;J[a+12>>2]=e;J[e+12>>2]=b;J[e+8>>2]=a;break e}a=31;if(f>>>0<=16777215){a=S(f>>>8|0);a=((f>>>38-a&1)-(a<<1)|0)+62|0}J[e+28>>2]=a;J[e+16>>2]=0;J[e+20>>2]=0;b=(a<<2)+781388|0;d=J[195272];c=1<>2]=e;break E}a=f<<((a|0)!=31?25-(a>>>1|0)|0:0);d=J[b>>2];while(1){b=d;if((f|0)==(J[b+4>>2]&-8))break z;c=a>>>29|0;a=a<<1;c=(c&4)+b|0;d=J[c+16>>2];if(d)continue;break}J[c+16>>2]=e}J[e+24>>2]=b;J[e+12>>2]=e;J[e+8>>2]=e;break e}J[a>>2]=c;J[a+4>>2]=J[a+4>>2]+g;j=(-8-c&7)+c|0;J[j+4>>2]=h|3;e=b+(-8-b&7)|0;i=h+j|0;g=e-i|0;F:{if(J[195277]==(e|0)){J[195277]=i;a=J[195274]+g|0;J[195274]=a;J[i+4>>2]=a|1;break F}if(J[195276]==(e|0)){J[195276]=i;a=J[195273]+g|0;J[195273]=a;J[i+4>>2]=a|1; -J[a+i>>2]=a;break F}c=J[e+4>>2];if((c&3)==1){f=c&-8;G:{if(c>>>0<=255){b=J[e+12>>2];a=J[e+8>>2];if((b|0)==(a|0)){m=781084,n=J[195271]&Opa(-2,c>>>3|0),J[m>>2]=n;break G}J[a+12>>2]=b;J[b+8>>2]=a;break G}h=J[e+24>>2];a=J[e+12>>2];H:{if((e|0)!=(a|0)){b=J[e+8>>2];J[b+12>>2]=a;J[a+8>>2]=b;break H}I:{b=e+20|0;c=J[b>>2];if(!c){c=J[e+16>>2];if(!c)break I;b=e+16|0}while(1){d=b;a=c;b=a+20|0;c=J[b>>2];if(c)continue;b=a+16|0;c=J[a+16>>2];if(c)continue;break}J[d>>2]=0;break H}a=0}if(!h)break G;c=J[e+28>>2];b=(c<< -2)+781388|0;J:{if(J[b>>2]==(e|0)){J[b>>2]=a;if(a)break J;m=781088,n=J[195272]&Opa(-2,c),J[m>>2]=n;break G}J[h+(J[h+16>>2]==(e|0)?16:20)>>2]=a;if(!a)break G}J[a+24>>2]=h;b=J[e+16>>2];if(b){J[a+16>>2]=b;J[b+24>>2]=a}b=J[e+20>>2];if(!b)break G;J[a+20>>2]=b;J[b+24>>2]=a}g=f+g|0;e=e+f|0;c=J[e+4>>2]}J[e+4>>2]=c&-2;J[i+4>>2]=g|1;J[g+i>>2]=g;if(g>>>0<=255){b=(g&-8)+781124|0;c=J[195271];a=1<<(g>>>3);K:{if(!(c&a)){J[195271]=a|c;a=b;break K}a=J[b+8>>2]}J[b+8>>2]=i;J[a+12>>2]=i;J[i+12>>2]=b;J[i+8>>2]=a;break F}c= -31;if(g>>>0<=16777215){a=S(g>>>8|0);c=((g>>>38-a&1)-(a<<1)|0)+62|0}J[i+28>>2]=c;J[i+16>>2]=0;J[i+20>>2]=0;b=(c<<2)+781388|0;L:{d=J[195272];a=1<>2]=i;break M}c=g<<((c|0)!=31?25-(c>>>1|0)|0:0);a=J[b>>2];while(1){b=a;if((J[a+4>>2]&-8)==(g|0))break L;d=c>>>29|0;c=c<<1;d=(d&4)+a|0;a=J[d+16>>2];if(a)continue;break}J[d+16>>2]=i}J[i+24>>2]=b;J[i+12>>2]=i;J[i+8>>2]=i;break F}a=J[b+8>>2];J[a+12>>2]=i;J[b+8>>2]=i;J[i+24>>2]=0;J[i+12>>2]=b;J[i+8>>2]=a}a=j+8|0;break a}a=J[b+ -8>>2];J[a+12>>2]=e;J[b+8>>2]=e;J[e+24>>2]=0;J[e+12>>2]=b;J[e+8>>2]=a}a=J[195274];if(a>>>0<=h>>>0)break d;b=a-h|0;J[195274]=b;c=J[195277];a=c+h|0;J[195277]=a;J[a+4>>2]=b|1;J[c+4>>2]=h|3;a=c+8|0;break a}J[194954]=48;a=0;break a}N:{if(!g)break N;b=J[d+28>>2];a=(b<<2)+781388|0;O:{if(J[a>>2]==(d|0)){J[a>>2]=c;if(c)break O;j=Opa(-2,b)&j;J[195272]=j;break N}J[g+(J[g+16>>2]==(d|0)?16:20)>>2]=c;if(!c)break N}J[c+24>>2]=g;a=J[d+16>>2];if(a){J[c+16>>2]=a;J[a+24>>2]=c}a=J[d+20>>2];if(!a)break N;J[c+20>>2]=a; -J[a+24>>2]=c}P:{if(e>>>0<=15){a=e+h|0;J[d+4>>2]=a|3;a=a+d|0;J[a+4>>2]=J[a+4>>2]|1;break P}J[d+4>>2]=h|3;f=d+h|0;J[f+4>>2]=e|1;J[e+f>>2]=e;if(e>>>0<=255){b=(e&-8)+781124|0;c=J[195271];a=1<<(e>>>3);Q:{if(!(c&a)){J[195271]=a|c;a=b;break Q}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a;break P}a=31;if(e>>>0<=16777215){a=S(e>>>8|0);a=((e>>>38-a&1)-(a<<1)|0)+62|0}J[f+28>>2]=a;J[f+16>>2]=0;J[f+20>>2]=0;b=(a<<2)+781388|0;R:{c=1<>2]=f;break S}a=e<<((a|0)!= -31?25-(a>>>1|0)|0:0);h=J[b>>2];while(1){b=h;if((J[b+4>>2]&-8)==(e|0))break R;c=a>>>29|0;a=a<<1;c=(c&4)+b|0;h=J[c+16>>2];if(h)continue;break}J[c+16>>2]=f}J[f+24>>2]=b;J[f+12>>2]=f;J[f+8>>2]=f;break P}a=J[b+8>>2];J[a+12>>2]=f;J[b+8>>2]=f;J[f+24>>2]=0;J[f+12>>2]=b;J[f+8>>2]=a}a=d+8|0;break a}T:{if(!i)break T;b=J[c+28>>2];a=(b<<2)+781388|0;U:{if(J[a>>2]==(c|0)){J[a>>2]=d;if(d)break U;m=781088,n=Opa(-2,b)&j,J[m>>2]=n;break T}J[i+(J[i+16>>2]==(c|0)?16:20)>>2]=d;if(!d)break T}J[d+24>>2]=i;a=J[c+16>>2];if(a){J[d+ -16>>2]=a;J[a+24>>2]=d}a=J[c+20>>2];if(!a)break T;J[d+20>>2]=a;J[a+24>>2]=d}V:{if(e>>>0<=15){a=e+h|0;J[c+4>>2]=a|3;a=a+c|0;J[a+4>>2]=J[a+4>>2]|1;break V}J[c+4>>2]=h|3;d=c+h|0;J[d+4>>2]=e|1;J[d+e>>2]=e;if(k){b=(k&-8)+781124|0;f=J[195276];a=1<<(k>>>3);W:{if(!(a&g)){J[195271]=a|g;a=b;break W}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a}J[195276]=d;J[195273]=e}a=c+8|0}xb=l+16|0;return a|0}function rM(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;h=xb-256|0;xb=h;a:{if(!b){e=36;break a}i=J[a+4>>2];if(!i){e=35;break a}if(!(J[J[i+128>>2]+52>>2]|M[i+16>>2]>c>>>0)){e=6;break a}if(d&2){d=K[i+9|0]&32?d&-3:d;d=d>>>14&2|d}if(d&1025)d=(K[i+9|0]&32?9:11)|d;o=d&2;J[b+44>>2]=(o?12:48)+b;b:{if(d&8)break b;e=J[b+116>>2];if(K[i+9|0]&128|(L[i+6>>1]&32767|(e|0)==-1))break b;f=J[b+20>>2];j=J[b+16>>2];c:{k=h+12|0;e=Ab[J[J[i+540>>2]+72>>2]](i,e,c,d,J[i+104>>2],a+76|0,k)|0;if(e){i=J[a+4>>2];g=J[i+8>>2]&1;if((e&255)!=157)break c;if(g)break b; -I[h+12>>1]=0;I[h+240>>1]=0;I[h+224>>1]=0;I[h+10>>1]=0;if(!J[i+752>>2])break a;Ab[J[J[i+540>>2]+140>>2]](i,0,c,k,h+224|0);b=h+240|0;d=h+10|0;d:{if(K[i+292|0]){Ab[J[J[i+540>>2]+140>>2]](i,1,c,b,d);break d}if(L[i+372>>1]!=65535){I[b>>1]=L[i+442>>1];c=I[i+442>>1]-I[i+444>>1]|0;b=c>>31;I[d>>1]=(b^c)-b;break d}I[b>>1]=L[i+220>>1];c=I[i+220>>1]-I[i+222>>1]|0;b=c>>31;I[d>>1]=(b^c)-b}J[a+108>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;b=Rb(I[h+12>>1],j);J[a+36>>2]=0;J[a+32>>2]=b;b=Rb(L[h+224>>1],j);J[a+44>>2]=0;J[a+40>> -2]=b;t=a,u=Rb(I[h+240>>1],f),J[t+48>>2]=u;b=Rb(L[h+10>>1],f);J[a+100>>2]=0;J[a+104>>2]=0;H[a+94|0]=1;J[a+72>>2]=1651078259;J[a+52>>2]=b;e=0;break a}e=0;J[a+108>>2]=0;J[a+24>>2]=L[h+14>>1]<<6;J[a+28>>2]=L[h+12>>1]<<6;i=I[h+16>>1];J[a+32>>2]=i<<6;g=I[h+18>>1];J[a+36>>2]=g<<6;J[a+40>>2]=L[h+20>>1]<<6;k=I[h+22>>1];J[a+44>>2]=k<<6;m=I[h+24>>1];J[a+48>>2]=m<<6;l=L[h+26>>1];n=g;g=d&16;J[a+104>>2]=g?m:n;J[a+100>>2]=g?k:i;J[a+72>>2]=1651078259;J[a+52>>2]=l<<6;i=J[a+4>>2];if(!(H[i+8|0]&1))break a;g=J[i+104>> -2];Nb(h+24|0,0,192);J[h+216>>2]=0;J[h+220>>2]=0;J[h+36>>2]=g;J[h+20>>2]=a;J[h+16>>2]=b;J[h+12>>2]=i;J[h+28>>2]=d;sp(h+12|0,c,0,1);jC(h+216|0,J[J[h+12>>2]+100>>2]);b=J[h+72>>2];J[a+56>>2]=b;J[a+60>>2]=J[h+188>>2];if(!(J[a+40>>2]|!b))t=a,u=Rb(b,j),J[t+40>>2]=u;if(J[a+52>>2])break a;b=J[a+60>>2];if(!b)break a;t=a,u=Rb(b,f),J[t+52>>2]=u;break a}if(!g)break a}s=d&1;if(!(s|K[b+112|0])){e=36;break a}e=6;if(d&16384)break a;r=J[i+104>>2];p=J[i+96>>2];Nb(h+12|0,0,212);if(!o){m=(d&128)>>>7|0;e=J[b+304>>2];e:{f:{if((e| -0)>=0){f=J[b+308>>2];if((f|0)<0)break f;if(e)break a;e=f;if(!f)break e;break a}j=J[b>>2];e=J[j+100>>2];f=J[b+132>>2];if(f)Ab[J[e+8>>2]](e,f);J[b+132>>2]=0;f=J[b+144>>2];if(f)Ab[J[e+8>>2]](e,f);J[b+144>>2]=0;f=J[b+252>>2];if(f)Ab[J[e+8>>2]](e,f);J[b+252>>2]=0;f=J[b+260>>2];if(f)Ab[J[e+8>>2]](e,f);J[b+260>>2]=0;f=J[b+300>>2];if(f){J[f+444>>2]=0;g=J[f+8>>2];k=J[f+24>>2];if(k)Ab[J[g+8>>2]](g,k);J[f+20>>2]=0;J[f+24>>2]=0;k=J[f+440>>2];if(k)Ab[J[g+8>>2]](g,k);J[f+440>>2]=0;J[f+432>>2]=0;J[f+436>>2]=0;k= -J[f+396>>2];if(k)Ab[J[g+8>>2]](g,k);J[f+392>>2]=0;J[f+396>>2]=0;J[f>>2]=0;J[f+4>>2]=0;if(f)Ab[J[g+8>>2]](g,f)}f=J[b+264>>2];if(f){g=J[b+292>>2];if(g)Ab[J[f+8>>2]](f,g);J[b+292>>2]=0;g=J[b+288>>2];if(g)Ab[J[f+8>>2]](f,g);J[b+288>>2]=0;g=J[b+280>>2];if(g)Ab[J[f+8>>2]](f,g);J[b+280>>2]=0;g=J[b+276>>2];if(g)Ab[J[f+8>>2]](f,g);J[b+276>>2]=0;g=J[b+284>>2];if(g)Ab[J[f+8>>2]](f,g);J[b+284>>2]=0;J[b+272>>2]=0;J[b+264>>2]=0;J[b+268>>2]=0}J[b+304>>2]=-1;J[b+308>>2]=-1;k=xb-16|0;xb=k;f=J[j+96>>2];g:{h:{if(!f)break h; -g=J[f+8>>2];f=tc(g,636,k+8|0);if(J[k+8>>2])break h;J[f+436>>2]=32;J[f+8>>2]=g;t=f,u=Tb(g,16,0,32,0,k+12|0),J[t+440>>2]=u;if(!J[k+12>>2]){J[f+444>>2]=0;J[f+392>>2]=0;J[f+396>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f>>2]=0;J[f+4>>2]=0;break g}J[f+444>>2]=0;g=J[f+8>>2];l=J[f+24>>2];if(l)Ab[J[g+8>>2]](g,l);J[f+20>>2]=0;J[f+24>>2]=0;l=J[f+440>>2];if(l)Ab[J[g+8>>2]](g,l);J[f+440>>2]=0;J[f+432>>2]=0;J[f+436>>2]=0;l=J[f+396>>2];if(l)Ab[J[g+8>>2]](g,l);J[f+392>>2]=0;J[f+396>>2]=0;J[f>>2]=0;J[f+4>>2]=0;if(f)Ab[J[g+ -8>>2]](g,f);if(!J[k+12>>2])break g}f=0}xb=k+16|0;J[b+300>>2]=f;f=L[j+280>>1];J[b+128>>2]=f;g=L[j+282>>1];J[b+148>>2]=0;J[b+152>>2]=0;J[b+136>>2]=0;J[b+124>>2]=0;J[b+140>>2]=g;J[b+248>>2]=J[j+700>>2];g=L[j+278>>1];H[b+113|0]=0;H[b+114|0]=0;I[b+256>>1]=g;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;g=f;f=h+240|0;t=b,u=Tb(e,24,0,g,0,f),J[t+132>>2]=u;i:{if(J[h+240>>2])break i;t=b,u=Tb(e,24,0,J[b+140>>2],0,f),J[t+144>>2]=u;if(J[h+240>>2])break i;t=b,u=Tb(e,4,0,J[b+248>>2],0,f),J[t+252>>2]=u; -if(J[h+240>>2])break i;t=b,u=Tb(e,4,0,L[b+256>>1],0,f),J[t+260>>2]=u;if(J[h+240>>2])break i;q=L[j+276>>1]+4|0;k=q&65535;f=xb-16|0;xb=f;J[b+268>>2]=0;J[b+272>>2]=0;J[b+264>>2]=e;J[b+292>>2]=0;J[b+296>>2]=0;J[b+284>>2]=0;J[b+288>>2]=0;J[b+276>>2]=0;J[b+280>>2]=0;l=f+12|0;t=b,u=Tb(e,8,0,k,0,l),J[t+276>>2]=u;j:{k:{g=J[f+12>>2];l:{if(g)break l;t=b,u=Tb(e,8,0,k,0,l),J[t+280>>2]=u;g=J[f+12>>2];if(g)break l;t=b,u=Tb(e,8,0,k,0,l),J[t+284>>2]=u;g=J[f+12>>2];if(g)break l;t=b,u=Tb(e,1,0,k,0,l),J[t+288>>2]=u; -g=J[f+12>>2];if(g)break l;t=b,u=Tb(e,2,0,0,0,l),J[t+292>>2]=u;g=J[f+12>>2];if(!g)break k}e=J[b+264>>2];if(!e)break j;g=J[b+292>>2];if(g)Ab[J[e+8>>2]](e,g);J[b+292>>2]=0;g=J[b+288>>2];if(g)Ab[J[e+8>>2]](e,g);J[b+288>>2]=0;g=J[b+280>>2];if(g)Ab[J[e+8>>2]](e,g);J[b+280>>2]=0;g=J[b+276>>2];if(g)Ab[J[e+8>>2]](e,g);J[b+276>>2]=0;g=J[b+284>>2];if(g)Ab[J[e+8>>2]](e,g);J[b+264>>2]=0;J[b+268>>2]=0;J[b+284>>2]=0;J[b+272>>2]=0;g=J[f+12>>2];break j}I[b+270>>1]=0;I[b+268>>1]=k;g=0}xb=f+16|0;J[h+240>>2]=g;if(g)break i; -I[b+272>>1]=q;Mb(b+180|0,96084,68);e=J[J[J[j+96>>2]+4>>2]+164>>2];J[j+708>>2]=e?e:81;e=J[b+300>>2];j=J[b>>2];f=rp(e,j,b);m:{if(f)break m;J[e+484>>2]=0;J[e+488>>2]=0;J[e+480>>2]=64;J[e+16>>2]=0;J[e+432>>2]=0;J[e+568>>2]=16384;H[e+565|0]=m;J[e+220>>2]=0;J[e+224>>2]=0;H[e+492|0]=0;I[e+256>>1]=0;J[e+228>>2]=0;J[e+260>>2]=65536;J[e+264>>2]=0;g=J[j+688>>2];f=J[j+684>>2];J[e+456>>2]=0;J[e+460>>2]=0;J[e+452>>2]=f;J[e+448>>2]=g;J[e+464>>2]=0;J[e+468>>2]=0;n:{if(!f){J[b+304>>2]=0;break n}J[e+368>>2]=f;J[e+ -360>>2]=g;J[e+364>>2]=0;J[e+356>>2]=1;f=Ab[J[j+708>>2]](e)|0;J[b+304>>2]=f;if(f)break m}J[b+124>>2]=J[e+400>>2];J[b+136>>2]=J[e+412>>2];J[b+148>>2]=J[e+424>>2];J[b+152>>2]=J[e+428>>2];f=J[e+452>>2];J[b+156>>2]=J[e+448>>2];J[b+160>>2]=f;f=J[e+460>>2];J[b+164>>2]=J[e+456>>2];J[b+168>>2]=f;f=J[e+468>>2];J[b+172>>2]=J[e+464>>2];J[b+176>>2]=f;f=0}e=f;break f}xv(b);e=J[h+240>>2]}if(e)break a;e=J[b+308>>2];if((e|0)<0){f=L[b+272>>1];o:{if(!f)break o;j=J[b+280>>2];g=J[b+276>>2];e=0;if((f|0)!=1){q=f&65534; -k=0;while(1){l=e<<3;n=l+g|0;J[n>>2]=0;J[n+4>>2]=0;n=j+l|0;J[n>>2]=0;J[n+4>>2]=0;l=l|8;n=l+g|0;J[n>>2]=0;J[n+4>>2]=0;l=j+l|0;J[l>>2]=0;J[l+4>>2]=0;e=e+2|0;k=k+2|0;if((q|0)!=(k|0))continue;break}}if(!(f&1))break o;e=e<<3;f=e+g|0;J[f>>2]=0;J[f+4>>2]=0;e=e+j|0;J[e>>2]=0;J[e+4>>2]=0}e=L[b+256>>1];if(e)Nb(J[b+260>>2],0,e<<2);Mb(b+180|0,96084,68);e=wv(b,m)}if(e)break a}f=J[b+300>>2];if(!f){e=153;break a}e=d&983040;p:{if(J[p+64>>2]!=40){j=(e|0)!=131072;g=0;k=0;e=0;break p}k=(e|0)!=131072;g=k&!(d&458752); -j=0;e=d>>>18&1}H[f+614|0]=e;e=rp(f,i,b);if(e)break a;q:{r:{s:{t:{if(J[p+64>>2]==40){e=K[f+613|0]==(k|0);if(!e)H[f+613|0]=k;if(K[f+618|0]!=(g|0))break t;if(K[f+612|0]==(j|0))break s;H[f+612|0]=j;break r}if(K[f+612|0]==(j|0))break q;H[f+612|0]=j;break r}H[f+618|0]=g;if(K[f+612|0]==(j|0))break r;H[f+612|0]=j;break r}if(e)break q}e=wv(b,m);if(e)break a}e=K[f+340|0];j=e<<1&2;if(e&2)Mb(f+288|0,96084,68);H[f+565|0]=m;J[h+168>>2]=f;J[h+172>>2]=J[f+396>>2];d=d|j}e=J[J[a+156>>2]>>2];lh(e);J[h+28>>2]=d;J[h+ -24>>2]=e;J[h+216>>2]=0;J[h+220>>2]=0;J[h+36>>2]=r;J[h+20>>2]=a;J[h+16>>2]=b;J[h+12>>2]=i;J[a+72>>2]=1869968492;J[a+124>>2]=0;J[a+128>>2]=0;e=sp(h+12|0,c,0,0);u:{if(e)break u;d=J[h+24>>2];v:{if(J[a+72>>2]==1668246896){J[a+128>>2]=J[d+48>>2];J[a+132>>2]=J[d+52>>2];break v}i=J[d+24>>2];e=a+108|0;J[e>>2]=J[d+20>>2];J[e+4>>2]=i;J[e+16>>2]=J[d+36>>2];i=J[d+32>>2];J[e+8>>2]=J[d+28>>2];J[e+12>>2]=i;J[a+124>>2]=J[a+124>>2]&-513;d=J[h+80>>2];if(!d)break v;me(e,0-d|0,0)}w:{if(o)break w;d=8;e=J[h+168>>2];x:{if(!K[e+ -341|0])break x;d=32;y:switch(J[e+344>>2]){case 4:d=48;break x;case 5:d=16;break x;case 1:break w;case 0:break x;default:break y}d=8}J[a+124>>2]=J[a+124>>2]|d}e=J[h+12>>2];f=65536;j=J[h+16>>2];d=J[h+20>>2];f=H[h+28|0]&1?f:J[J[j+44>>2]+8>>2];i=J[e+96>>2];z:{if(J[d+72>>2]!=1668246896){fi(d+108|0,h+240|0);break z}g=J[h+60>>2];J[h+248>>2]=J[h+56>>2];J[h+252>>2]=g;g=J[h+52>>2];J[h+240>>2]=J[h+48>>2];J[h+244>>2]=g}J[d+56>>2]=J[h+72>>2];l=J[h+240>>2];J[d+32>>2]=l;g=J[h+252>>2];J[d+36>>2]=g;J[d+40>>2]=J[h+ -88>>2]-J[h+80>>2];A:{B:{if(J[i+64>>2]!=40)break B;i=J[h+168>>2];if(!i)break B;if(K[i+615|0])break A}if(J[e+488>>2]|J[h+28>>2]&2097154)break A;o=J[e+776>>2];if(!o)break A;i=0;k=J[e+768>>2];p=k?k+8|0:0;m=J[e+780>>2];r=J[e+784>>2];j=L[J[j+44>>2]>>1];while(1){if((j|0)==K[i+r|0]){j=c+2|0;if(!k|j>>>0>=m>>>0)break A;J[d+40>>2]=K[j+(p+P(i,m)|0)|0]<<6;break A}i=i+1|0;if((o|0)!=(i|0))continue;break}}J[d+24>>2]=J[h+248>>2]-l;i=g-J[h+244>>2]|0;J[d+28>>2]=i;C:{if(!(!K[e+292|0]|!L[e+330>>1])){j=dc(J[h+196>>2]- -g|0,f)<<16>>16;i=0;g=J[h+196>>2];k=J[h+204>>2];if((g|0)<=(k|0))break C;i=dc(g-k|0,f)&65535;break C}j=dc(i,f);i=L[e+372>>1]==65535;i=I[e+(i?220:442)>>1]-I[e+(i?222:444)>>1]|0;j=(i-(j<<16>>16)|0)/2|0}e=J[J[e+128>>2]+52>>2];D:{if(!e)break D;g=J[J[e>>2]+8>>2];if(!g)break D;J[h+232>>2]=i;J[h+228>>2]=j;J[h+224>>2]=0;e=Ab[g|0](J[e+4>>2],c,1,h+224|0)|0;if(e)break u;i=J[h+232>>2];j=J[h+228>>2]}J[d+60>>2]=i;if(!(H[h+28|0]&1)){j=Rb(j,f);i=Rb(i,f)}J[d+52>>2]=i;J[d+48>>2]=j;J[d+44>>2]=J[d+32>>2]+(J[d+40>>2]/-2| -0);e=0}c=h+216|0;if(!(L[J[b+44>>2]+2>>1]>23|s))J[a+124>>2]=J[a+124>>2]|256;jC(c,J[J[h+12>>2]+100>>2])}xb=h+256|0;return e|0}function IZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;f=xb-400|0;xb=f;h=K[b+11|0];g=h<<24>>24<0;o=J[b+4>>2];a:{if(!(g?o:h))break a;b:{if(!g){J[f+392>>2]=J[b+8>>2];g=J[b+4>>2];J[f+384>>2]=J[b>>2];J[f+388>>2]=g;break b}rf(f+384|0,J[b>>2],o)}b=Ew(b,62,83);c:{if((b|0)==-1)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{g= -K[f+395|0];if((g<<24>>24<0?J[f+388>>2]:g)>>>0<=82){J[195395]=0;ea(3102,f+384|0);a=J[195395];J[195395]=0;if((a|0)==1)break ha;B()}k=O[d+24>>3];l=O[d+8>>3];m=O[d+16>>3];n=O[d>>3];b=b-83|0;ia:{if((b|0)==-1){J[f+388>>2]=83;J[J[f+384>>2]+332>>2]=0;break ia}J[195395]=0;fa(3103,f+384|0,83,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break ha}i=O[c>>3];J[195395]=0;b=f+84|0;da(1863,b|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break ga;J[195395]=0;b=aa(1954,b|0,0,420592)|0;d=J[195395];J[195395]=0;if((d|0)==1)break fa; -J[f+104>>2]=J[b+8>>2];d=J[b+4>>2];J[f+96>>2]=J[b>>2];J[f+100>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+96|0,420608)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ea;J[f+120>>2]=J[b+8>>2];d=J[b+4>>2];J[f+112>>2]=J[b>>2];J[f+116>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;i=O[c+8>>3];J[195395]=0;b=f+72|0;da(1863,b|0,+i,-1);d=J[195395];J[195395]=0;if((d|0)==1)break da;J[195395]=0;h=b;b=K[f+83|0];d=b<<24>>24<0;b=aa(1864,f+112|0,(d?J[f+72>>2]:h)|0,(d?J[f+76>>2]:b)|0)|0;d=J[195395];J[195395]= -0;if((d|0)==1)break ca;J[f+136>>2]=J[b+8>>2];d=J[b+4>>2];J[f+128>>2]=J[b>>2];J[f+132>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+128|0,420632)|0;d=J[195395];J[195395]=0;if((d|0)==1)break ba;J[f+152>>2]=J[b+8>>2];d=J[b+4>>2];J[f+144>>2]=J[b>>2];J[f+148>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+144|0,420644)|0;d=J[195395];J[195395]=0;if((d|0)==1)break aa;J[f+168>>2]=J[b+8>>2];d=J[b+4>>2];J[f+160>>2]=J[b>>2];J[f+164>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;i= -O[c>>3];j=O[c+16>>3];J[195395]=0;b=f+60|0;da(1863,b|0,+(j-i),-1);d=J[195395];J[195395]=0;if((d|0)==1)break $;J[195395]=0;h=b;b=K[f+71|0];d=b<<24>>24<0;b=aa(1864,f+160|0,(d?J[f+60>>2]:h)|0,(d?J[f+64>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break _;J[f+184>>2]=J[b+8>>2];d=J[b+4>>2];J[f+176>>2]=J[b>>2];J[f+180>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+176|0,420676)|0;d=J[195395];J[195395]=0;if((d|0)==1)break Z;J[f+200>>2]=J[b+8>>2];d=J[b+4>>2];J[f+192>>2]=J[b>>2];J[f+196>> -2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;i=O[c+8>>3];j=O[c+24>>3];J[195395]=0;b=f+48|0;da(1863,b|0,+(j-i),-1);c=J[195395];J[195395]=0;if((c|0)==1)break Y;J[195395]=0;d=b;b=K[f+59|0];c=b<<24>>24<0;b=aa(1864,f+192|0,(c?J[f+48>>2]:d)|0,(c?J[f+52>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break X;J[f+216>>2]=J[b+8>>2];c=J[b+4>>2];J[f+208>>2]=J[b>>2];J[f+212>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+208|0,420632)|0;c=J[195395];J[195395]=0;if((c|0)==1)break W;J[f+232>>2]=J[b+8>> -2];c=J[b+4>>2];J[f+224>>2]=J[b>>2];J[f+228>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+224|0,420720)|0;c=J[195395];J[195395]=0;if((c|0)==1)break V;J[f+248>>2]=J[b+8>>2];c=J[b+4>>2];J[f+240>>2]=J[b>>2];J[f+244>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=f+36|0;c=m>24<0;b=aa(1864,f+240|0,(d?J[f+36>>2]:h)|0,(d?J[f+40>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)== -1)break T;J[f+264>>2]=J[b+8>>2];d=J[b+4>>2];J[f+256>>2]=J[b>>2];J[f+260>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+256|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break S;J[f+280>>2]=J[f+264>>2];J[f+264>>2]=0;b=J[f+260>>2];J[f+272>>2]=J[f+256>>2];J[f+276>>2]=b;J[f+256>>2]=0;J[f+260>>2]=0;J[195395]=0;b=f+24|0;d=k>24<0;b=aa(1864,f+272|0,(g?J[f+24>>2]:h)|0,(g?J[f+28>>2]:b)|0)| -0;g=J[195395];J[195395]=0;if((g|0)==1)break Q;J[f+296>>2]=J[b+8>>2];g=J[b+4>>2];J[f+288>>2]=J[b>>2];J[f+292>>2]=g;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+288|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break P;J[f+312>>2]=J[f+296>>2];J[f+296>>2]=0;b=J[f+292>>2];J[f+304>>2]=J[f+288>>2];J[f+308>>2]=b;J[f+288>>2]=0;J[f+292>>2]=0;J[195395]=0;b=f+12|0;da(1863,b|0,+((c?n:m)-i),-1);c=J[195395];J[195395]=0;if((c|0)==1)break O;J[195395]=0;h=b;b=K[f+23|0];c=b<<24>>24<0;b=aa(1864,f+304|0,(c?J[f+ -12>>2]:h)|0,(c?J[f+16>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break N;J[f+328>>2]=J[b+8>>2];c=J[b+4>>2];J[f+320>>2]=J[b>>2];J[f+324>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+320|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break M;J[f+344>>2]=J[f+328>>2];J[f+328>>2]=0;b=J[f+324>>2];J[f+336>>2]=J[f+320>>2];J[f+340>>2]=b;J[f+320>>2]=0;J[f+324>>2]=0;J[195395]=0;da(1863,f|0,+((d?l:k)-j),-1);b=J[195395];J[195395]=0;if((b|0)==1)break L;J[195395]=0;b=K[f+11|0];c=b<<24>>24<0;b=aa(1864, -f+336|0,(c?J[f>>2]:f)|0,(c?J[f+4>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break K;J[f+360>>2]=J[b+8>>2];c=J[b+4>>2];J[f+352>>2]=J[b>>2];J[f+356>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+352|0,34);b=J[195395];J[195395]=0;if((b|0)==1)break J;J[f+376>>2]=J[f+360>>2];J[f+360>>2]=0;b=J[f+356>>2];J[f+368>>2]=J[f+352>>2];J[f+372>>2]=b;J[f+352>>2]=0;J[f+356>>2]=0;if(H[f+11|0]<0)Kb(J[f>>2]);if(H[f+347|0]<0)Kb(J[f+336>>2]);if(H[f+331|0]<0)Kb(J[f+320>>2]);if(H[f+23|0]<0)Kb(J[f+12>> -2]);if(H[f+315|0]<0)Kb(J[f+304>>2]);if(H[f+299|0]<0)Kb(J[f+288>>2]);if(H[f+35|0]<0)Kb(J[f+24>>2]);if(H[f+283|0]<0)Kb(J[f+272>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+47|0]<0)Kb(J[f+36>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+219|0]<0)Kb(J[f+208>>2]);if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+203|0]<0)Kb(J[f+192>>2]);if(H[f+187|0]<0)Kb(J[f+176>>2]);if(H[f+71|0]<0)Kb(J[f+60>>2]);if(H[f+171|0]<0)Kb(J[f+160>>2]);if(H[f+155|0]<0)Kb(J[f+144>>2]);if(H[f+139|0]<0)Kb(J[f+128>> -2]);if(H[f+83|0]<0)Kb(J[f+72>>2]);if(H[f+123|0]<0)Kb(J[f+112>>2]);if(H[f+107|0]<0)Kb(J[f+96>>2]);if(H[f+95|0]<0)Kb(J[f+84>>2]);c=J[f+368>>2];d=J[f+372>>2];b=H[f+379|0];J[195395]=0;h=c;c=(b|0)<0;ha(3104,f+384|0,83,(c?h:f+368|0)|0,(c?d:b&255)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k;J[f+360>>2]=0;J[f+352>>2]=0;J[f+356>>2]=0;J[195395]=0;fa(1960,a|0,f+352|0,e|0);b=J[195395];J[195395]=0;if((b|0)==1)break h;ja:{if(J[f+352>>2]==J[f+356>>2])break ja;J[f+336>>2]=103;J[f+340>>2]=0;H[f+347|0]=1;b=J[a+ -76>>2];J[195395]=0;fa(1950,b|0,f+336|0,1);b=J[195395];J[195395]=0;if((b|0)==1)break j;b=J[f+352>>2];c=J[f+356>>2];if((b|0)!=(c|0)){while(1){d=J[a+76>>2];J[195395]=0;fa(1951,d|0,b|0,b+12|0);d=J[195395];J[195395]=0;if((d|0)==1)break j;b=b+24|0;if((c|0)!=(b|0))continue;break}b=J[a+76>>2];J[195395]=0;ia(1953,b|0,f+336|0,1,0);b=J[195395];J[195395]=0;if((b|0)==1)break j}if(H[f+347|0]>=0)break ja;Kb(J[f+336>>2])}b=J[a+76>>2];J[195395]=0;$(1955,b|0,f+384|0);b=J[195395];J[195395]=0;if((b|0)==1)break h;d=J[f+ -352>>2];if((d|0)!=J[f+356>>2])break i;break d}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break l}b=Z()|0;break m}b=Z()|0;break n}b=Z()|0;break o}b=Z()|0;break p}b=Z()|0;break q}b=Z()|0;break r}b=Z()|0;break s}b=Z()|0;break t}b=Z()|0;break u}b=Z()|0;break v}b=Z()|0;break w}b=Z()|0;break x}b=Z()|0;break y}b=Z()|0;break z}b=Z()|0;break A}b=Z()|0;break B}b=Z()|0;break C}b=Z()|0;break D}b=Z()|0;break E}b=Z()|0;break F}b=Z()|0;break G}b=Z()|0;break H}b=Z()|0;break I}b=Z()|0;if(H[f+363|0]>=0)break I;Kb(J[f+ -352>>2])}if(H[f+11|0]>=0)break H;Kb(J[f>>2])}if(H[f+347|0]>=0)break G;Kb(J[f+336>>2])}if(H[f+331|0]>=0)break F;Kb(J[f+320>>2])}if(H[f+23|0]>=0)break E;Kb(J[f+12>>2])}if(H[f+315|0]>=0)break D;Kb(J[f+304>>2])}if(H[f+299|0]>=0)break C;Kb(J[f+288>>2])}if(H[f+35|0]>=0)break B;Kb(J[f+24>>2])}if(H[f+283|0]>=0)break A;Kb(J[f+272>>2])}if(H[f+267|0]>=0)break z;Kb(J[f+256>>2])}if(H[f+47|0]>=0)break y;Kb(J[f+36>>2])}if(H[f+251|0]>=0)break x;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break w;Kb(J[f+224>>2])}if(H[f+219| -0]>=0)break v;Kb(J[f+208>>2])}if(H[f+59|0]>=0)break u;Kb(J[f+48>>2])}if(H[f+203|0]>=0)break t;Kb(J[f+192>>2])}if(H[f+187|0]>=0)break s;Kb(J[f+176>>2])}if(H[f+71|0]>=0)break r;Kb(J[f+60>>2])}if(H[f+171|0]>=0)break q;Kb(J[f+160>>2])}if(H[f+155|0]>=0)break p;Kb(J[f+144>>2])}if(H[f+139|0]>=0)break o;Kb(J[f+128>>2])}if(H[f+83|0]>=0)break n;Kb(J[f+72>>2])}if(H[f+123|0]>=0)break m;Kb(J[f+112>>2])}if(H[f+107|0]>=0)break l;Kb(J[f+96>>2])}if(H[f+95|0]>=0)break e;Kb(J[f+84>>2]);break e}b=Z()|0;break f}b=Z()| -0;if(H[f+347|0]>=0)break g;Kb(J[f+336>>2]);break g}J[f+336>>2]=103;J[f+340>>2]=0;H[f+347|0]=1;a=J[a+76>>2];J[195395]=0;ia(1953,a|0,f+336|0,0,0);a=J[195395];J[195395]=0;if((a|0)!=1){if(H[f+347|0]<0)Kb(J[f+336>>2]);d=J[f+352>>2];break d}b=Z()|0;if(H[f+347|0]>=0)break g;Kb(J[f+336>>2]);break g}b=Z()|0}Hc(f+352|0)}if(H[f+379|0]>=0)break e;Kb(J[f+368>>2])}if(H[f+395|0]<0)Kb(J[f+384>>2]);ba(b|0);B()}if(d){b=J[f+356>>2];c=d;if((b|0)!=(d|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);a=b-24|0;if(H[b-13|0]<0)Kb(J[a>> -2]);b=a;if((d|0)!=(b|0))continue;break}c=J[f+352>>2]}J[f+356>>2]=d;Kb(c)}if(H[f+379|0]>=0)break c;Kb(J[f+368>>2])}if(H[f+395|0]>=0)break a;Kb(J[f+384>>2])}xb=f+400|0}function Zv(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;l=xb-16|0;xb=l;c=J[a+1008>>2];d=0;a:{if((c|0)<0)break a;b:{c:{while(1){f=J[a+4>>2];c=(c<<2)+a|0;J[a+72>>2]=P(f,I[c+946>>1]);c=I[c+944>>1];J[a+40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=0;d=J[a+24>>2];J[a+36>>2]=d;I[a+78>>1]=0;J[a+80>>2]=d;e=J[a+28>>2]-32|0;J[a+ -32>>2]=e;J[a+68>>2]=P(c,f);J[d+8>>2]=d;I[a+76>>1]=0;d:{e:{f:{g:{h:{i:{if(I[a+120>>1]<=0)break i;c=J[a+8>>2];k=J[a+132>>2];h=0;o=0;while(1){J[a+88>>2]=0;J[a+92>>2]=0;f=J[a+12>>2];g=J[a+124>>2];h=h&65535;d=g+(h<<3)|0;e=P(f,J[d+4>>2])-c|0;p=P(f,J[d>>2])-c|0;r=o<<1;j=L[r+k>>1];i=g+(j<<3)|0;k=P(f,J[i+4>>2])-c|0;f=P(f,J[i>>2])-c|0;j:{if(!b){m=p;p=e;g=f;f=k;break j}m=e;g=k}e=J[a+128>>2];h=e+h|0;c=K[h|0];if(c&4){H[a+164|0]=c>>>5;c=K[h|0]}k:switch(c&3){case 0:l:{if((K[e+j|0]&3)==1){i=i-8|0;break l}g=(g+m| -0)/2|0;f=(f+p|0)/2|0}p=f;m=g;h=h-1|0;d=d-8|0;break;case 2:break b;default:break k}J[a+64>>2]=p;J[a+60>>2]=m;m:{if(d>>>0>>0)while(1){f=h+1|0;c=d+8|0;n:{o:{p:{q:switch(K[h+1|0]&3){case 1:g=J[d+8>>2];e=d;h=f;d=c;c=J[a+12>>2];f=P(c,J[e+12>>2]);e=J[a+8>>2];f=f-e|0;c=P(c,g)-e|0;if(Yv(a,b?f:c,b?c:f))break g;break n;case 0:e=J[a+12>>2];g=J[a+8>>2];k=P(e,J[d+8>>2])-g|0;e=P(e,J[d+12>>2])-g|0;if(b)break p;while(1){if(c>>>0>=i>>>0){c=k;k=e;break o}h=f+1|0;d=c+8|0;j=J[a+12>>2];n=J[a+8>>2];g=P(j,J[c+8>>2])- -n|0;j=P(j,J[c+12>>2])-n|0;c=K[f+1|0]&3;if(c){if((c|0)!=1)break b;if(!Rk(a,k,e,g,j))break n;break g}n=Rk(a,k,e,(g+k|0)/2|0,(e+j|0)/2|0);f=h;c=d;k=g;e=j;if(!n)continue;break}break g;default:break q}if((K[h+2|0]&3)!=2|d+16>>>0>i>>>0)break b;n=J[a+12>>2];q=J[a+8>>2];k=P(n,J[d+16>>2])-q|0;e=P(n,J[d+8>>2])-q|0;c=P(n,J[d+20>>2])-q|0;f=P(n,J[d+12>>2])-q|0;r:{if(!b){g=e;e=f;j=k;k=c;break r}g=f;j=c}c=d+24|0;if(c>>>0<=i>>>0){f=e;e=P(n,J[d+28>>2])-q|0;d=P(n,J[d+24>>2])-q|0;if(Xv(a,g,f,j,k,b?e:d,b?d:e))break g; -h=h+3|0;d=c;break n}if(Xv(a,g,e,j,k,m,p))break g;break m}while(1){if(c>>>0>=i>>>0){c=e;break o}h=f+1|0;d=c+8|0;j=J[a+12>>2];n=J[a+8>>2];g=P(j,J[c+8>>2])-n|0;j=P(j,J[c+12>>2])-n|0;c=K[f+1|0]&3;if(!c){n=Rk(a,e,k,(e+j|0)/2|0,(g+k|0)/2|0);f=h;c=d;e=j;k=g;if(n)break g;continue}break}if((c|0)!=1)break b;if(!Rk(a,e,k,j,g))break n;break g}if(!Rk(a,c,k,m,p))break m;break g}if(d>>>0>>0)continue;break}if(Yv(a,m,p))break g}k=J[a+132>>2];h=L[r+k>>1];j=J[a+4>>2];p=j-1|0;d=J[a+64>>2];m=p&d;s:{if(m|(d|0)>2]|(d|0)>J[a+72>>2])break s;c=J[a+88>>2];if(!c|(L[J[a+80>>2]+12>>1]^L[c+12>>1])&8)break s;J[a+36>>2]=J[a+36>>2]-4}t:{u:{v:{f=J[a+36>>2];g=J[a+80>>2];c=J[g+8>>2];i=(f|0)==(c|0);if(K[g+12|0]&8?i:1){e=f-c>>2;if((e|0)>=0)break v;break c}e=f-c>>2;if((e|0)<0)break c;c=J[a+8>>2];d=(m|0)>=(c|0);break u}c=J[a+8>>2];if(i){d=f;break t}d=((d+p&0-j)-d|0)>=(c|0)}J[g+16>>2]=e;if(d){d=L[g+12>>1];I[g+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+8>>2]=d;J[f+16>>2]=0;J[g+28>>2]=f;I[a+76>>1]=L[a+76>> -1]+1}e=J[a+32>>2];if(e>>>0<=d>>>0)break f;H[a+79|0]=0;f=J[a+88>>2];if(f)J[g+28>>2]=f;h=h+1|0;o=o+1|0;if((o|0)>1])continue;break}p=L[a+76>>1];if(p>>>0<2)break i;c=J[a+84>>2];if(!c)break i;g=J[a+44>>2];n=J[a+28>>2];while(1){w:{if((p&65535)>>>0<=1){h=J[c+16>>2];f=0;break w}h=J[c+16>>2];f=J[c+8>>2]+(h<<2)|0}J[c+4>>2]=f;d=J[c+20>>2];x:{if(K[c+12|0]&8){e=d;d=(d+h|0)-1|0;break x}e=(d-h|0)+1|0;J[c+20>>2]=e;J[c+8>>2]=(J[c+8>>2]+(h<<2)|0)-4}k=d;d=0;o=0-g|0;m=n-(g<<2)|0;c=g;y:{z:{while(1){h=d;j=c;if((c| -0)<=0){d=e;break z}d=h+1|0;c=j-1|0;i=J[m+(c<<2)>>2];if((i|0)>(e|0))continue;break}if((e|0)<=(i|0)){j=g;break y}i=0;h=g-h&3;if(h)while(1){o=m+(c<<2)|0;d=J[o>>2];J[o>>2]=e;c=c-1|0;e=d;i=i+1|0;if((h|0)!=(i|0))continue;break}if(j>>>0<4)break z;h=m-8|0;j=m-4|0;d=e;while(1){e=c<<2;i=e+m|0;o=J[i>>2];J[i>>2]=d;d=e+j|0;i=J[d>>2];J[d>>2]=o;d=e+h|0;e=J[d>>2];J[d>>2]=i;i=c-3|0;o=m+(i<<2)|0;d=J[o>>2];J[o>>2]=e;c=c-4|0;if(i)continue;break}}c=J[a+32>>2]-4|0;J[a+32>>2]=c;if(c>>>0<=M[a+36>>2])break f;j=g+1|0;J[a+ -44>>2]=j;o=g^-1;J[n+(o<<2)>>2]=d}e=k+1|0;m=n+(o<<2)|0;d=0;c=j;A:{B:{while(1){g=d;h=c;if((c|0)<=0){d=e;break B}d=g+1|0;c=h-1|0;i=J[m+(c<<2)>>2];if((i|0)>(e|0))continue;break}if((i|0)>(k|0)){g=j;break A}i=0;g=j-g&3;if(g)while(1){k=m+(c<<2)|0;d=J[k>>2];J[k>>2]=e;c=c-1|0;e=d;i=i+1|0;if((g|0)!=(i|0))continue;break}if(h>>>0<4)break B;g=m-8|0;k=m-4|0;d=e;while(1){e=c<<2;h=e+m|0;i=J[h>>2];J[h>>2]=d;d=e+k|0;h=J[d>>2];J[d>>2]=i;d=e+g|0;e=J[d>>2];J[d>>2]=h;h=c-3|0;i=m+(h<<2)|0;d=J[i>>2];J[i>>2]=e;c=c-4|0;if(h)continue; -break}}c=J[a+32>>2]-4|0;J[a+32>>2]=c;if(c>>>0<=M[a+36>>2])break f;g=j+1|0;J[a+44>>2]=g;J[n+((j^-1)<<2)>>2]=d}c=f;p=p-1|0;if(p&65535)continue;break}e=J[a+32>>2];d=J[a+36>>2];break h}J[a+84>>2]=0}if(d>>>0>>0)break e}if(J[a+40>>2]==98)break f;d=1;break a}J[a+40>>2]=0;c=J[a+1008>>2];d=(c<<2)+a|0;e=d;f=I[d+946>>1];g=I[d+944>>1];d=(f+g|0)/2|0;if(!((c|0)<=6&(d|0)>=(g|0))){J[a+40>>2]=20;J[a+1008>>2]=0;d=20;break a}c=c+1|0;g=(c<<2)+a|0;I[g+946>>1]=f;I[g+944>>1]=d;I[e+946>>1]=d-1;break d}C:{h=J[a+84>>2]; -D:{if(!h)break D;J[l+8>>2]=0;J[l+4>>2]=0;J[l>>2]=0;c=J[a>>2];f=J[a+72>>2]>>c;i=J[a+68>>2]>>c;while(1){d=h;J[d>>2]=0;k=i<<16>>16;g=J[d+20>>2];h=(g+J[d+16>>2]|0)-1<<16>>16;j=(k|0)>(h|0);p=g<<16>>16>16;e=l+8|0;c=J[l+8>>2];E:{if(!c){c=0;break E}if(J[c>>2]>0)break E;F:{while(1){e=c;c=J[c+4>>2];if(c){if(J[c>>2]<=0)continue;break F}break}c=0}e=e+4|0}i=j?k:h;f=p?g:f;h=J[d+4>>2];J[d+4>>2]=c;J[e>>2]=d;if(h)continue;break}I[l+12>>1]=i;I[l+14>>1]=f;if(!J[a+44>>2])break C;Ab[J[a+148>>2]](a,l+14|0,l+12| -0);j=I[l+14>>1];c=J[l+8>>2];if(c)while(1){J[c+24>>2]=J[c+20>>2]-j;c=J[c+4>>2];if(c)continue;break}i=J[a+44>>2];G:{if((i|0)<=0)break G;if(J[J[a+28>>2]-(i<<2)>>2]==(j|0)){i=i-1|0;J[a+44>>2]=i;if(!i)break G}c=0;while(1){d=J[l+8>>2];if(d){k=c<<16>>16;while(1){c=J[d+24>>2];J[d+24>>2]=c-k;f=J[d+4>>2];if((c|0)==(k|0)){c=J[l+8>>2];H:{if(!c)break H;if((c|0)==(d|0)){J[l+8>>2]=f;break H}while(1){e=c;c=J[c+4>>2];if(!c)break H;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f}g=J[d>>2];I:{if(K[d+12|0]&8){e=l+4|0;c=J[l+ -4>>2];if(!c){c=0;break I}if((g|0)>2])break I;J:{while(1){e=c;c=J[c+4>>2];if(c){if((g|0)>=J[c>>2])continue;break J}break}c=0}e=e+4|0;break I}e=l;c=J[e>>2];if(!c){c=0;break I}if((g|0)>2])break I;K:{while(1){e=c;c=J[c+4>>2];if(c){if((g|0)>=J[c>>2])continue;break K}break}c=0}e=e+4|0}J[d+4>>2]=c;J[e>>2]=d}d=f;if(d)continue;break}}m=j;d=J[l+4>>2];c=d;L:{if(!c)break L;while(1){e=J[c+8>>2];J[c>>2]=J[e>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=e+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}c= -J[d+4>>2];if(!c)break L;h=d+4|0;f=l+4|0;while(1){if(J[d>>2]<=J[c>>2])f=h;else{J[f>>2]=c;J[h>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[l+4>>2];f=l+4|0}d=c;h=c+4|0;c=J[c+4>>2];if(c)continue;break}}g=J[l>>2];c=g;M:{if(!c){g=0;break M}while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}d=J[g+4>>2];if(!d)break M;h=g+4|0;f=l;c=g;while(1){N:{if(J[c>>2]<=J[d>>2]){f=h;c=d;break N}J[f>>2]=d;J[h>>2]=J[d+4>>2];J[d+4>>2]=c;f=l;g=J[f>>2];c=g}h=c+4|0; -d=J[c+4>>2];if(d)continue;break}}J[a+44>>2]=i-1;O:{n=J[J[a+28>>2]-(i<<2)>>2];q=n<<16>>16;j=m;if((q|0)<=j<<16>>16)break O;while(1){k=J[l+4>>2];P:{if(!k)break P;p=0;c=k;f=g;if(!f)break P;while(1){Q:{R:{e=J[c>>2];h=J[f>>2];d=(e|0)>(h|0)?e:h;e=(e|0)<(h|0)?e:h;h=J[a+4>>2];if((d-e|0)>(h|0))break R;o=0-h|0;i=o&e;if((i|0)==(e|0))break R;o=o&(d+h|0)-1;if((o|0)==(d|0)|(o|0)!=(h+i|0)&(i|0)<=(o|0))break R;if((L[c+12>>1]&7)==2)break Q;J[c>>2]=e;J[f>>2]=d;J[c+24>>2]=1;p=p+1|0;break Q}Ab[J[a+152>>2]](a,j<<16>>16, -e,d,c,f)}c=J[c+4>>2];if(c){f=J[f+4>>2];if(f)continue}break}d=g;c=k;if(p<<16>>16<=0)break P;while(1){if(J[c+24>>2]){J[c+24>>2]=0;Ab[J[a+156>>2]](a,j<<16>>16,J[c>>2],J[d>>2],c,d)}c=J[c+4>>2];if(!c)break P;d=J[d+4>>2];if(d)continue;break}}Ab[J[a+160>>2]](a);j=j+1|0;if((q|0)<=j<<16>>16)break O;c=k;S:{if(!c)break S;while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}c=J[k+4>>2];if(!c)break S;d=k+4|0;h=l+4|0;while(1){if(!(J[k>>2]<= -J[c>>2])){J[h>>2]=c;J[d>>2]=J[c+4>>2];J[c+4>>2]=k;c=J[l+4>>2];d=l+4|0}h=d;k=c;d=c+4|0;c=J[c+4>>2];if(c)continue;break}g=J[l>>2]}e=g;g=0;c=e;if(!c)continue;while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}h=e+4|0;f=l;g=e;c=e;d=J[c+4>>2];if(!d)continue;while(1){T:{if(J[c>>2]<=J[d>>2]){f=h;c=d;break T}J[f>>2]=d;J[h>>2]=J[d+4>>2];J[d+4>>2]=c;f=l;e=J[f>>2];c=e}h=c+4|0;d=J[c+4>>2];if(d)continue;break}g=e;continue}}f=J[l+4>>2];if(f)while(1){d= -f;f=J[d+4>>2];U:{if(J[d+16>>2])break U;c=J[l+4>>2];if(!c)break U;if((c|0)==(d|0)){J[l+4>>2]=f;break U}while(1){e=c;c=J[c+4>>2];if(!c)break U;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f}if(f)continue;break}f=J[l>>2];V:{if(!f)break V;while(1){d=f;f=J[d+4>>2];W:{if(J[d+16>>2])break W;c=J[l>>2];if(!c)break W;if((c|0)==(d|0)){J[l>>2]=f;if(!f)break V;continue}while(1){e=c;c=J[c+4>>2];if(!c)break W;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f;if(!f)break V;continue}if(f)continue;break}}c=n-m|0;i=J[a+44>>2]; -if((i|0)>0)continue;break}}if(I[l+12>>1]>16)break D;while(1){Ab[J[a+160>>2]](a);j=j+1<<16>>16;if((j|0)<=I[l+12>>1])continue;break}}c=J[a+1008>>2]-1|0;break d}J[a+40>>2]=20;d=20;break a}J[a+1008>>2]=c;if((c|0)>=0)continue;break}d=0;break a}J[a+40>>2]=99;d=1;break a}J[a+40>>2]=20;d=1}xb=l+16|0;return d}function QK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;f=xb-384|0;xb=f;J[b>>2]=1;a:{if(!J[b+136>>2]){d=Jg(J[J[b+ -96>>2]+4>>2],9871);if(!d){a=11;break a}J[b+136>>2]=d}if(!J[b+320>>2])x=b,y=Jg(J[J[b+96>>2]+4>>2],10070),J[x+320>>2]=y;a=bc(a,0);if(a)break a;i=J[b+100>>2];J[f+108>>2]=0;h=J[b+104>>2];a=J[b+136>>2];d=f+8|0;Nb(d,0,100);Ab[J[J[a+4>>2]>>2]](d,0,0,i);J[f+80>>2]=h;m=J[h+8>>2];b:{c:{d:{d=Tc(h,31);e:{if(d)break e;a=Zb(J[h+32>>2],10532,31);Ec(h);if(a){J[f+4>>2]=2;break b}l=f+84|0;k=f+112|9;while(1){d=J[h+8>>2];j=d;e=0;a=f+112|0;d=J[h+4>>2]-d|0;g=d>>>0>=265?265:d;d=Dd(h,a,g);if(d)break e;while(1){f:{d=a+g| -0;H[d|0]=0;o=d-6|0;d=f+112|0;if(o>>>0>d>>>0){n=(g-6|0)+a|0;a=d;d=K[f+112|0];while(1){g:{if((d&255)!=83)break g;if(Zb(a,10729,9))break g;e=10;break f}h:{d=K[a+1|0];if((d|0)!=115)break h;if(Zb(a,10807,6))break h;e=7;break f}a=a+1|0;if((n|0)!=(a|0))continue;break}}if(e+g>>>0<9){J[f+4>>2]=3;break b}a=(e+f|0)+g|0;d=K[a+103|0]|K[a+104|0]<<8|(K[a+105|0]<<16|K[a+106|0]<<24);e=K[a+107|0]|K[a+108|0]<<8|(K[a+109|0]<<16|K[a+110|0]<<24);H[f+120|0]=K[a+111|0];J[f+112>>2]=d;J[f+116>>2]=e;j=j+256|0;e=9;a=k;d=J[h+ -4>>2]-J[h+8>>2]|0;g=d>>>0>=256?256:d;d=Dd(h,a,g);if(!d)continue;break e}break}d=bc(h,m);if(d)break e;j=((j-(f+112|0)|0)+a|0)+e|0;a=j-m|0;d=Ne(h,a,l);if(d)break e;J[f+92>>2]=j;g=J[f+84>>2];J[f+12>>2]=g;J[f+104>>2]=-1;J[f+8>>2]=g;J[f+88>>2]=a;J[f+16>>2]=a+g;d=f+8|0;Ab[J[f+40>>2]](d);Ab[J[f+36>>2]](d);a=J[f+8>>2];Ab[J[f+40>>2]](d);Ab[J[f+36>>2]](d);d=J[f+8>>2];e=J[f+16>>2];n=e-6|0;if(d>>>0<=n>>>0){p=e-9|0;while(1){e=a;a=d;d=J[f+20>>2];if(d)break e;i:{if(K[a|0]!=83|a>>>0>p>>>0)break i;if(Zb(a,10729,9))break i; -if(Zb(g,10959,5))break c;a=Wd(e,0);if((a|0)>=0)break d;J[f+4>>2]=3;break b}j:{if(K[a+1|0]!=115)break j;if(Zb(a,10807,6))break j;J[f+4>>2]=2;break b}d=f+8|0;Ab[J[f+40>>2]](d);Ab[J[f+36>>2]](d);g=e;d=J[f+8>>2];if(n>>>0>=d>>>0)continue;break}}rd(h,l);d=bc(h,j);if(!d)continue;break}}J[f+4>>2]=d;break b}J[f+96>>2]=a}J[f+4>>2]=0;J[f+20>>2]=0;a=J[f+84>>2];l=a+J[f+88>>2]|0;J[f+16>>2]=l;k=b+164|0;j=b+312|0;h=b+196|0;m=b+140|0;r=l-18|0;k:{l:{m:while(1){J[f+8>>2]=a;Ab[J[f+36>>2]](f+8|0);d=J[f+8>>2];g=d>>>0< -l>>>0?d-17|0:r;if(g>>>0>a>>>0){e=J[f+104>>2];while(1){n:{if(K[a|0]!=37)break n;if(Zb(a,10992,17)|J[b+300>>2]<=0)break n;e=e+1|0;J[f+104>>2]=e}a=a+1|0;if((g|0)!=(a|0))continue;break}}o:{if(d>>>0>=l>>>0)break o;Ab[J[f+40>>2]](f+8|0);a=J[f+8>>2];if(J[f+20>>2]|l>>>0<=a>>>0)break o;if(K[d|0]!=47|l>>>0<=d+2>>>0)continue;p=d+1|0;if((p|0)==(a|0))continue;n=a-p|0;if(n>>>0>21)continue;q=K[p|0];e=100416;d=11146;p:{if(n>>>0>=2)while(1){g=e;q:{if((q|0)!=K[d|0])break q;e=1;if((ac(d)|0)!=(n|0))break q;while(1){if(K[e+ -p|0]!=K[d+e|0])break q;e=e+1|0;if((n|0)!=(e|0))continue;break}e=g;break p}e=g+36|0;d=J[g+36>>2];if(d)continue;continue m}while(1){if((q|0)==K[d|0])if((ac(d)|0)==(n|0))break p;d=J[e+36>>2];e=e+36|0;if(d)continue;break}continue}g=J[e+8>>2];r:{if((g|0)==11){Ab[J[e+12>>2]](b,f+8|0);a=J[f+20>>2];break r}d=m;s:{t:{u:{v:switch(J[e+4>>2]){case 3:d=k;break u;case 2:d=j;break u;case 5:d=h;break u;case 0:break u;default:break v}a=J[f+104>>2];if((a|0)<0|(a|0)>=J[b+300>>2])break t;d=J[b+304>>2]+P(a,252)|0}J[f+ -112>>2]=d;if(g-9>>>0>1)break s;a=Ab[J[f+76>>2]](f+8|0,e,f+112|0,0,0)|0;break r}J[f+20>>2]=160;J[f+4>>2]=160;break b}a=Ab[J[f+72>>2]](f+8|0,e,f+112|0,0,0)|0}J[f+20>>2]=a;if(a)break l;a=J[f+8>>2];continue}break}if(J[b+300>>2])break k;a=3}J[f+4>>2]=a;break b}a=J[f+20>>2];J[f+4>>2]=a;if(a|(c|0)<0)break b;e=tc(i,40,f+4|0);J[b+328>>2]=e;if(J[f+4>>2])break b;d=J[b+104>>2];a=J[f+96>>2];w:{if(a){e=b;d=J[d+4>>2]-J[f+92>>2]|0;if(d>>>0>>0){J[f+96>>2]=d;a=d}d=e;e=tc(i,a,f+4|0);J[d+324>>2]=e;if(J[f+4>>2])break b; -a=J[f+96>>2];d=xb-256|0;xb=d;h=J[b+104>>2];j=bc(h,J[f+92>>2]);x:{if(j)break x;if((a|0)>0){n=a+e|0;k=1;a=d;m=a;while(1){y:{z:{A:{while(1){if(a>>>0>=m>>>0){a=J[h+8>>2];g=J[h+4>>2];if((a|0)==(g|0)){j=160;break x}g=g-a|0;j=Dd(h,d,g>>>0>=256?256:g);if(j)break x;m=(d+J[h+8>>2]|0)-a|0;a=d}g=K[a|0];i=g-48|0;if(i>>>0<10)break z;if((g-97&255)>>>0>=6){if((g-65&255)>>>0<6)break A;i=0;j=160;l=0;B:switch(g|0){case 62:break y;case 0:case 9:case 10:case 12:case 13:case 32:break B;default:break x}a=a+1|0;continue}break}i= -g-87|0;break z}i=g-55|0}l=1}C:{if(k&255){i=i<<4;g=e;break C}i=K[e|0]+i|0;g=e+1|0}H[e|0]=i;a=a+1|0;k=1-k|0;e=g;if(n>>>0>e>>>0&l)continue;break}}j=0}xb=d+256|0;J[f+4>>2]=j;if(j)break b;d=J[b+324>>2];e=J[f+96>>2];a=J[b+328>>2];J[a+32>>2]=0;J[a+8>>2]=0;J[a+4>>2]=e;J[a>>2]=d;J[a+20>>2]=0;J[a+24>>2]=0;a=0;break w}a=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=a;a=J[d+36>>2];J[e+32>>2]=J[d+32>>2];J[e+36>>2]=a;a=J[d+28>>2];J[e+24>>2]=J[d+24>>2];J[e+28>>2]=a;a=J[d+20>>2];J[e+16>>2]=J[d+16>>2];J[e+20>>2]=a;a=J[d+12>> -2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=a;a=J[f+92>>2]}J[b+308>>2]=a;D:{k=J[b+288>>2];if((k|0)>=0){j=J[b+292>>2];if((j|0)>0)break D}J[f+4>>2]=3;break b}if(!(j>>>0<5&k>>>0<=4)){J[f+4>>2]=3;break b}d=J[J[b+328>>2]+4>>2]-a|0;h=J[b+300>>2];if((h|0)>0){m=J[b+304>>2];e=0;while(1){a=m+P(e,252)|0;if(M[a+112>>2]>=1001)J[a+112>>2]=7;if(M[a+116>>2]>=1001)J[a+116>>2]=1;E:{g=J[a+248>>2];if((g|0)>=0){i=J[a+240>>2];if(!i|g)break E}J[f+4>>2]=3;break b}if(g>>>0>=5){J[f+4>>2]=3;break b}a=J[a+244>>2];if(a>>>0>d>>>0){J[f+ -4>>2]=3;break b}F:{if((i|0)>=0)if(!g|i>>>0<=(d-a>>>0)/(g>>>0)>>>0)break F;J[f+4>>2]=3;break b}e=e+1|0;if((h|0)!=(e|0))continue;break}}a=J[b+284>>2];if(a>>>0>d>>>0){J[f+4>>2]=3;break b}if(M[b+296>>2]>(d-a>>>0)/(j+k>>>0)>>>0){J[f+4>>2]=3;break b}i=0;g=0;r=0;h=xb-16|0;xb=h;p=J[b+328>>2];u=J[b+136>>2];m=J[b+100>>2];j=Tb(m,8,0,J[b+300>>2],0,h+12|0);J[b+316>>2]=j;G:{if(J[h+12>>2])break G;d=J[b+300>>2];if((d|0)<=0)break G;while(1){H:{e=J[b+304>>2]+P(r,252)|0;n=J[e+240>>2];if(n){v=J[e+4>>2];l=n+1|0;if(l>>> -0>g>>>0){a=(n&-4)+4|0;if(a>>>0<=g>>>0){J[h+12>>2]=160;break H}i=Tb(m,4,g,a,i,h+12|0);g=a;if(J[h+12>>2])break H}a=bc(p,J[e+244>>2]+J[b+308>>2]|0);J[h+12>>2]=a;if(a)break H;a=Tc(p,P(l,J[e+248>>2]));J[h+12>>2]=a;if(a)break H;q=K[e+248|0];I:{if(q){t=l>>>0<=1?1:l;w=q&252;s=q&3;e=J[p+32>>2];o=0;while(1){a=e;k=0;d=0;if(q>>>0>=4){while(1){d=a;a=a+4|0;k=k+4|0;if((k&255)!=(w|0))continue;break}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}k=0;if(s)while(1){d=K[a| -0]|d<<8;a=a+1|0;k=k+1|0;if((k&255)!=(s|0))continue;break}J[(o<<2)+i>>2]=d;e=e+q|0;o=o+1|0;if((t|0)!=(o|0))continue;break}break I}Nb(i,0,(l>>>0<=1?1:l)<<2)}Ec(p);d=J[i>>2];a=1;J:{while(1){e=d;d=J[(a<<2)+i>>2];if(e>>>0<=d>>>0){a=a+1|0;if(n>>>0>=a>>>0)continue;break J}break}J[h+12>>2]=3;break H}a=J[(n<<2)+i>>2];if(a>>>0>J[p+4>>2]-J[b+308>>2]>>>0){J[h+12>>2]=3;break H}d=J[i>>2];e=h+12|0;x=j,y=Tb(m,4,0,l,0,e),J[x+4>>2]=y;if(J[h+12>>2])break H;a=a-d|0;d=tc(m,a,e);J[J[j+4>>2]>>2]=d;if(J[h+12>>2])break H; -d=bc(p,J[i>>2]+J[b+308>>2]|0);J[h+12>>2]=d;if(d)break H;a=Dd(p,J[J[j+4>>2]>>2],a);J[h+12>>2]=a;if(a)break H;a=1;d=(l>>>0<=2?2:l)-1|0;q=d&1;k=J[i>>2];if(l>>>0>=3){l=d&-2;e=0;while(1){d=a<<2;o=d+J[j+4>>2]|0;s=o;t=J[o-4>>2];o=J[d+i>>2];J[s>>2]=t+(o-k|0);d=d+4|0;k=d+J[j+4>>2]|0;s=k;t=J[k-4>>2];k=J[d+i>>2];J[s>>2]=t+(k-o|0);a=a+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}}if(q){a=a<<2;d=a+J[j+4>>2]|0;J[d>>2]=J[d-4>>2]+(J[a+i>>2]-k|0)}K:{if((v|0)<0)break K;d=n>>>0<=1?1:n;l=d&1;a=0;if(n>>>0>=2){q=d&-2;k= -0;while(1){d=a<<2;o=d|4;e=o+i|0;Ab[J[u+16>>2]](J[d+J[j+4>>2]>>2],J[e>>2]-J[d+i>>2]|0,4330);a=a+2|0;Ab[J[u+16>>2]](J[o+J[j+4>>2]>>2],J[(a<<2)+i>>2]-J[e>>2]|0,4330);k=k+2|0;if((q|0)!=(k|0))continue;break}}if(!l)break K;d=a<<2;a=d+i|0;Ab[J[u+16>>2]](J[d+J[j+4>>2]>>2],J[a+4>>2]-J[a>>2]|0,4330)}J[j>>2]=n;d=J[b+300>>2]}j=j+8|0;r=r+1|0;if((r|0)<(d|0))continue;break G}break}e=J[b+316>>2];if(!e)break G;if(J[b+300>>2]>0){d=0;while(1){a=d<<3;e=J[(a+e|0)+4>>2];if(e){e=J[e>>2];if(e)Ab[J[m+8>>2]](m,e);J[J[(a+J[b+ -316>>2]|0)+4>>2]>>2]=0;e=J[(a+J[b+316>>2]|0)+4>>2]}else e=0;if(e)Ab[J[m+8>>2]](m,e);e=J[b+316>>2];J[(a+e|0)+4>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}if(e)Ab[J[m+8>>2]](m,e);J[b+316>>2]=0}if(i)Ab[J[m+8>>2]](m,i);xb=h+16|0;J[f+4>>2]=J[h+12>>2]}if(J[f+84>>2])rd(J[f+80>>2],f+84|0);Ab[J[f+32>>2]](f+8|0);a=J[f+4>>2];if(a|(c|0)<0)break a;a=6;if(c&65535)break a;J[b+36>>2]=0;J[b+4>>2]=0;J[b+16>>2]=J[b+296>>2];a=J[b+8>>2];J[b+8>>2]=a|2065;if(K[b+188|0])J[b+8>>2]=a|2069;J[b+24>>2]=10166;d=J[b+176>> -2];J[b+20>>2]=d;L:{if(d){a=J[b+172>>2];if(!a)break L;e=K[a|0];if(!e)break L;while(1){e=e&255;c=K[d|0];M:{if((e|0)==(c|0)){a=a+1|0;d=d+1|0;break M}e=e-32|0;if(!(!e|(e|0)==13)){N:switch(c-32|0){case 0:case 13:d=d+1|0;break M;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break L;default:break N}if(c)break L;J[b+24>>2]=a;break L}a=a+1|0}e=K[a|0];if(e)continue;break}break L}a=J[b+140>>2];if(!a)break L;J[b+20>>2]=a}c=J[b+184>>2]!=0;J[b+12>>2]=c;a=J[b+180>>2];O:{if(!a)break O; -if(fc(a,10301))if(fc(a,10420))break O;J[b+12>>2]=c|2}J[b+28>>2]=0;J[b+32>>2]=0;J[b+52>>2]=I[b+198>>1];a=I[b+202>>1];J[b+56>>2]=a;J[b+60>>2]=J[b+204>>2]+65535>>16;c=J[b+208>>2]+65535>>16;J[b- -64>>2]=c;e=L[b+68>>1];if(!e){I[b+68>>1]=1E3;e=1E3}I[b+72>>1]=a;I[b+70>>1]=c;J[b+80>>2]=L[b+190>>1]|L[b+192>>1]<<16;d=b;a=c-a|0;b=(P(e,12)>>>0)/10|0;I[d+74>>1]=(a|0)>b<<16>>16?a:b;a=0}xb=f+384|0;return a|0}function lC(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,C=0,D=0,E=0,F=0,G=0,I=0;p=xb-784|0;xb=p;h=a+b|0;if((b|0)>=4){l=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4|0}if(a+3>>>0>>0){i=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4|0}if(h>>>0>a+1>>>0){z=K[a|0]|K[a+1|0]<<8;a=a+2|0}if(h>>>0>a+1>>>0){v=K[a|0]|K[a+1|0]<<8;a=a+2|0}if(h>>>0>a+3>>>0){u=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4|0}a=a+((a+3>>>0>>0)<<2)|0;a=((h>>>0>a+3>>>0)<<2)+a|0;a=((h>>>0>a+3>>>0)<<2)+a|0;if(a+3>>>0>>0){j=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16| -K[a+3|0]<<24);a=a+4|0}a:{b:{if((u|0)!=0&(i|0)<0|(z|0)!=1|(l|0)<0)break b;a=a+((h>>>0>a+3>>>0)<<2)|0;J[e>>2]=0;J[f>>2]=0;J[g>>2]=0;c:{d:{e:{f:switch((v&65535)-1|0){case 0:z=255;v=0;j=255;x=255;g:{if(h-a>>>0<8)break g;z=0;if(a>>>0>>0){o=K[a|0];a=a+1|0}if(a>>>0>>0){v=K[a|0];a=a+1|0}if(a>>>0>>0){m=K[a|0];a=a+1|0}b=a;if(a+1>>>0>=h>>>0){j=0;x=0;break g}j=0;x=K[b+1|0];a=b+2|0;if(h>>>0>a>>>0){j=K[b+2|0];a=b+3|0}if(a>>>0>=h>>>0)break g;z=K[a|0]}a=i>>31;k=(a^i)-a|0;if((P(k,l+31>>>3&536870908)|0)>(d| -0))break b;C=l<<2;D=Pb(P(C,k));n=l+7>>>3|0;a=n>>>2|0;J[p>>2]=a;J[p+4>>2]=n-(a<<2);h=J[p+4>>2];a=(l|0)/8|0;J[p>>2]=a;J[p+4>>2]=l-(a<<3);d=4-h|0;b=(i|0)<0;a=J[p+4>>2];r=Lh(1,a?a-1|0:7);h:{if(R(r)<2147483648){s=~~r;break h}s=-2147483648}a=h?d:0;I=l&65535;u=k&65535;i:{if(!b){if(!i)break i;y=(a|0)>0?a:0;t=n>>>0<=1?1:n;q=n-1|0;while(1){h=i-1|0;if(l){b=P(h,C);d=0;while(1){a=(d|0)!=(q|0)?128:s;if((a|0)>0){n=K[c|0];while(1){w=b+D|0;H[w+3|0]=255;k=a&n;H[w+2|0]=k?z:m;H[w+1|0]=k?j:v;H[w|0]=k?x:o;b=b+4|0;k=a>>> -0<2;a=a>>>1|0;if(!k)continue;break}}c=c+1|0;d=d+1|0;if((t|0)!=(d|0))continue;break}}c=c+y|0;a=(i|0)>1;i=h;if(a)continue;break}break i}w=(a|0)>0?a:0;y=k>>>0<=1?1:k;t=n>>>0<=1?1:n;q=n-1|0;d=0;while(1){if(l){b=P(d,C);k=0;while(1){h=(k|0)!=(q|0);a=h?128:s;if((a|0)>0){n=h?-1:0;i=K[c|0];while(1){A=b+D|0;H[A+3|0]=n;h=a&i;H[A+2|0]=h?z:m;H[A+1|0]=h?j:v;H[A|0]=h?x:o;b=b+4|0;h=a>>>0<2;a=a>>>1|0;if(!h)continue;break}}c=c+1|0;k=k+1|0;if((t|0)!=(k|0))continue;break}}c=c+w|0;d=d+1|0;if((y|0)!=(d|0))continue;break}}J[e>> -2]=D;J[f>>2]=I;J[g>>2]=u;break b;case 3:J[p+40>>2]=0;J[p+44>>2]=0;J[p+32>>2]=0;J[p+36>>2]=0;J[p+24>>2]=0;J[p+28>>2]=0;J[p+16>>2]=0;J[p+20>>2]=0;J[p+8>>2]=0;J[p+12>>2]=0;J[p>>2]=0;J[p+4>>2]=0;b=j&255;m=j?b>>>0>=16?16:b:16;if(h-a>>>0>>0)break b;if(!m)break c;u=0;while(1){v=0;k=P(u,3)+p|0;j:{if(a>>>0>=h>>>0){b=a;a=0;break j}b=a+1|0;a=K[a|0]}H[k+2|0]=a;if(b>>>0>=h>>>0)a=b;else{v=K[b|0];a=b+1|0}H[k+1|0]=v;b=0;if(a>>>0>>0){b=K[a|0];a=a+1|0}H[k|0]=b;a=a+1|0;a=a>>>0>>0?a:h;u=u+1|0;if((m|0)!=(u| -0))continue;break}break c;case 7:t=Nb(p,0,768);b=j&65535;m=j?b>>>0>=256?256:b:256;if(h-a>>>0>>0)break b;if(m){v=0;while(1){k=t+P(v,3)|0;k:{if(a>>>0>=h>>>0){b=a;a=0;break k}b=a+1|0;a=K[a|0]}H[k+2|0]=a;o=0;l:{if(b>>>0>=h>>>0){a=b;b=0;break l}a=b+1|0;b=K[b|0]}H[k+1|0]=b;if(a>>>0>>0){o=K[a|0];a=a+1|0}H[k|0]=o;a=a+1|0;a=a>>>0>>0?a:h;v=v+1|0;if((m|0)!=(v|0))continue;break}}j=0;m:{while(1){n:{J[195395]=0;q=j+l|0;b=q;a=(b|0)/4|0;J[t+776>>2]=a;J[t+780>>2]=b-(a<<2);a=J[195395];J[195395]=0;if((a| -0)==1)break n;if(!J[t+780>>2])break m;j=j+1|0;continue}break}break a}a=i>>31;o=(a^i)-a|0;n=P(q,o);o:{if((u|0)==1){a=0;J[195395]=0;k=_(1109,n|0)|0;b=J[195395];J[195395]=0;p:{if((b|0)!=1){if((d|0)>0)break p;c=k;break o}break a}m=0;u=0;while(1){h=K[(u|1)+c|0];s=K[c+u|0];q:{if(!s){if(h){c=k;break o}if((a|0)>=(q|0)){a=0;break q}h=q-a|0;b=h+m|0;if((b|0)>(n|0)){c=k;break o}a=0;Nb(k+m|0,0,h);m=b;break q}b=a+s|0;while(1){a=b;b=a-q|0;if((a|0)>=(q|0))continue;break}b=m+s|0;if((b|0)>(n|0)){c=k;break o}Nb(k+m| -0,h,s);m=b}u=u+2|0;if((u|0)<(d|0))continue;break}c=k;break o}k=0;if((d|0)<(n|0))break b}J[195395]=0;q=_(1109,P(l,o)<<2)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;n=l&65535;s=o&65535;r:{if((i|0)>=0){if(!i)break r;m=(l|0)<=0;while(1){b=o-1|0;if(!m){h=P(b,l);a=0;while(1){i=q+(a+h<<2)|0;d=t+P(K[c|0],3)|0;H[i|0]=K[d+2|0];H[i+1|0]=K[d+1|0];d=K[d|0];H[i+3|0]=255;H[i+2|0]=d;c=c+1|0;a=a+1|0;if((l|0)!=(a|0))continue;break}}c=c+j|0;a=(o|0)>1;o=b;if(a)continue;break}break r}h=o>>>0<=1?1:o;o=0;while(1){if((l| -0)>0){d=P(l,o);a=0;while(1){m=q+(a+d<<2)|0;b=t+P(K[c|0],3)|0;H[m|0]=K[b+2|0];H[m+1|0]=K[b+1|0];b=K[b|0];H[m+3|0]=255;H[m+2|0]=b;c=c+1|0;a=a+1|0;if((l|0)!=(a|0))continue;break}}c=c+j|0;o=o+1|0;if((h|0)!=(o|0))continue;break}}J[e>>2]=q;J[f>>2]=n;J[g>>2]=s;if(k)Kb(k);break b;case 15:E=8.225806451612904;x=5;v=10;j=992;m=31744;o=31;F=8.225806451612904;G=8.225806451612904;s:switch(u|0){case 3:j=0;o=0;t:{if(h>>>0<=a+3>>>0){m=0;break t}m=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4|0}if(h>>>0>a+3>>> -0){j=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4|0}if(a+3>>>0>>0)o=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);u=ir(o);E=255/+(o>>>u>>>0);v=ir(m);F=255/+(m>>>v>>>0);x=ir(j);G=255/+(j>>>x>>>0);break;case 0:break s;default:break b}b=d;a=i>>31;d=(a^i)-a|0;if((b|0)!=(P(d,(l<<4)+31>>3&-4)|0))break b;n=l<<1;a=0;while(1){h=a+n|0;b=(h|0)/4|0;J[p>>2]=b;J[p+4>>2]=h-(b<<2);s=a;a=a+1|0;if(J[p+4>>2])continue;break}q=l&65535;n=d&65535;w=Pb(P(d,l)<<2);if((i|0)<0)break e;if(!i)break d;i=(l|0)<=0;while(1){h= -d-1|0;if(!i){k=P(h,l);b=0;while(1){y=K[c|0]|K[c+1|0]<<8;a=w+(b+k<<2)|0;H[a+3|0]=255;r=G*+((j&y)>>>x&255);u:{if(r<4294967296&r>=0){t=~~r>>>0;break u}t=0}H[a+1|0]=t;r=E*+((o&y)>>>u&255);v:{if(r<4294967296&r>=0){t=~~r>>>0;break v}t=0}H[a|0]=t;r=F*+((m&y)>>>v&255);w:{if(r<4294967296&r>=0){t=~~r>>>0;break w}t=0}H[a+2|0]=t;c=c+2|0;b=b+1|0;if((l|0)!=(b|0))continue;break}}c=c+s|0;a=(d|0)>1;d=h;if(a)continue;break}break d;case 23:if(u)break b;a=i>>31;j=(a^i)-a|0;if((P(j,P(l,24)+31>>3&-4)|0)!=(d|0))break b; -h=P(l,3);a=0;while(1){d=a+h|0;b=(d|0)/4|0;J[p>>2]=b;J[p+4>>2]=d-(b<<2);d=a;a=a+1|0;if(J[p+4>>2])continue;break}n=l&65535;s=j&65535;q=Pb(P(j,l)<<2);x:{if((i|0)>=0){if(!i)break x;m=(l|0)<=0;while(1){b=j-1|0;if(!m){k=P(b,l);a=0;while(1){i=q+(a+k<<2)|0;H[i|0]=K[c|0];H[i+1|0]=K[c+1|0];h=K[c+2|0];H[i+3|0]=255;H[i+2|0]=h;c=c+3|0;a=a+1|0;if((l|0)!=(a|0))continue;break}}c=c+d|0;a=(j|0)>1;j=b;if(a)continue;break}break x}k=j>>>0<=1?1:j;while(1){if((l|0)>0){h=P(l,o);a=0;while(1){m=q+(a+h<<2)|0;H[m|0]=K[c|0]; -H[m+1|0]=K[c+1|0];b=K[c+2|0];H[m+3|0]=255;H[m+2|0]=b;c=c+3|0;a=a+1|0;if((l|0)!=(a|0))continue;break}}c=c+d|0;o=o+1|0;if((k|0)!=(o|0))continue;break}}J[e>>2]=q;J[f>>2]=n;J[g>>2]=s;break b;case 31:break f;default:break b}y:switch(u|0){case 3:if(h-a>>>0<12)break b;break;case 0:break y;default:break b}a=i>>31;j=(a^i)-a|0;if(P(j,l)<<2!=(d|0))break b;a=0;while(1){q=a+l|0;d=q;b=(d|0)/4|0;J[p>>2]=b;J[p+4>>2]=d-(b<<2);h=a;a=a+1|0;if(J[p+4>>2])continue;break}s=d&65535;m=j&65535;n=Pb(P(j,d)<<2);z:{A:{if((i| -0)>=0){if(!i)break z;k=(l|0)<=0;break A}d=j>>>0<=1?1:j;while(1){if((l|0)>0){a=P(o,q);b=0;while(1){k=n+(a+b<<2)|0;H[k|0]=K[c|0];H[k+1|0]=K[c+1|0];H[k+2|0]=K[c+2|0];H[k+3|0]=K[c+3|0];c=c+4|0;b=b+1|0;if((l|0)!=(b|0))continue;break}}if(h){b=P(o,q);a=l;while(1){k=n+(a+b<<2)|0;H[k|0]=255;H[k+1|0]=255;H[k+2|0]=255;H[k+3|0]=0;a=a+1|0;if((q|0)>(a|0))continue;break}}o=o+1|0;if((d|0)!=(o|0))continue;break}break z}while(1){d=j;j=d-1|0;if(!k){a=P(j,q);b=0;while(1){i=n+(a+b<<2)|0;H[i|0]=K[c|0];H[i+1|0]=K[c+1|0]; -H[i+2|0]=K[c+2|0];H[i+3|0]=K[c+3|0];c=c+4|0;b=b+1|0;if((l|0)!=(b|0))continue;break}}if(h){b=P(j,q);a=l;while(1){i=n+(a+b<<2)|0;H[i|0]=255;H[i+1|0]=255;H[i+2|0]=255;H[i+3|0]=0;a=a+1|0;if((q|0)>(a|0))continue;break}}if((d|0)>=2)continue;break}}J[e>>2]=n;J[f>>2]=s;J[g>>2]=m;break b}h=d>>>0<=1?1:d;while(1){if((l|0)>0){d=P(l,k);b=0;while(1){t=K[c|0]|K[c+1|0]<<8;a=w+(b+d<<2)|0;H[a+3|0]=255;r=G*+((j&t)>>>x&255);B:{if(r<4294967296&r>=0){i=~~r>>>0;break B}i=0}H[a+1|0]=i;r=E*+((o&t)>>>u&255);C:{if(r<4294967296& -r>=0){i=~~r>>>0;break C}i=0}H[a|0]=i;r=F*+((m&t)>>>v&255);D:{if(r<4294967296&r>=0){i=~~r>>>0;break D}i=0}H[a+2|0]=i;c=c+2|0;b=b+1|0;if((l|0)!=(b|0))continue;break}}c=c+s|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}J[e>>2]=w;J[f>>2]=q;J[g>>2]=n;break b}a=i>>31;m=(a^i)-a|0;if((P(m,(l<<2)+31>>3&-4)|0)!=(d|0))break b;a=0;while(1){J[195395]=0;j=a+l|0;b=(j|0)/8|0;J[p+776>>2]=b;J[p+780>>2]=j-(b<<3);b=J[195395];J[195395]=0;if((b|0)==1)break a;a=a+1|0;if(J[p+780>>2])continue;break}o=(j|0)/2|0;if((P(o,m)|0)> -(d|0))break b;J[195395]=0;q=_(1109,P(l,m)<<2)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;k=l&65535;h=m&65535;E:{if((i|0)>=0){if(!i|(j|0)<2)break E;while(1){b=m-1|0;i=P(b,l);a=0;while(1){s=K[c|0];j=a<<1;if((j|0)<(l|0)){n=q+(j+i<<2)|0;d=P((s&240)>>>4|0,3)+p|0;H[n|0]=K[d+2|0];H[n+1|0]=K[d+1|0];d=K[d|0];H[n+3|0]=255;H[n+2|0]=d}d=j|1;if((d|0)<(l|0)){j=q+(d+i<<2)|0;d=P(s&15,3)+p|0;H[j|0]=K[d+2|0];H[j+1|0]=K[d+1|0];d=K[d|0];H[j+3|0]=255;H[j+2|0]=d}c=c+1|0;a=a+1|0;if((o|0)!=(a|0))continue;break}a=(m|0)> -1;m=b;if(a)continue;break}break E}if((j|0)<2)break E;d=m>>>0<=1?1:m;m=0;while(1){i=P(l,m);a=0;while(1){s=K[c|0];j=a<<1;if((j|0)<(l|0)){n=q+(j+i<<2)|0;b=P((s&240)>>>4|0,3)+p|0;H[n|0]=K[b+2|0];H[n+1|0]=K[b+1|0];b=K[b|0];H[n+3|0]=255;H[n+2|0]=b}b=j|1;if((b|0)<(l|0)){j=q+(b+i<<2)|0;b=P(s&15,3)+p|0;H[j|0]=K[b+2|0];H[j+1|0]=K[b+1|0];b=K[b|0];H[j+3|0]=255;H[j+2|0]=b}c=c+1|0;a=a+1|0;if((o|0)!=(a|0))continue;break}m=m+1|0;if((d|0)!=(m|0))continue;break}}J[e>>2]=q;J[f>>2]=k;J[g>>2]=h}xb=p+784|0;return}ba(Z()| -0);B()}function Ry(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=Q(0),A=0;j=xb-304|0;xb=j;a:{b:{if(!J[a+4>>2]){zq(a);if(!J[a+4>>2])break b}f=K[b|0];if(!f)break a;c:{d:{e:{f:{g:{while(1){h:{d=f&255;i:{if((d|0)==32|d-9>>>0<5){while(1){f=b;b=b+1|0;d=K[f+1|0];if((d|0)==32|d-9>>>0<5)continue;break}Vf(a,0,0);while(1){b=J[a+4>>2];j:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break j}b=_c(a)}if((b|0)==32|b-9>>>0<5)continue;break}b=J[a+4>>2];d=J[a+ -116>>2];if((d|0)>0)d=1;else d=(d|0)>=0;if(d){b=b-1|0;J[a+4>>2]=b}b=b-J[a+44>>2]|0;d=b;h=q+J[a+124>>2]|0;b=m+J[a+120>>2]|0;h=(d>>31)+(b>>>0>>0?h+1|0:h)|0;m=b+d|0;q=m>>>0>>0?h+1|0:h;break i}k:{l:{m:{if(K[b|0]==37){d=K[b+1|0];if((d|0)==42)break m;if((d|0)!=37)break l}Vf(a,0,0);n:{if(K[b|0]==37){while(1){d=J[a+4>>2];o:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;f=K[d|0];break o}f=_c(a)}if((f|0)==32|f-9>>>0<5)continue;break}b=b+1|0;break n}d=J[a+4>>2];if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;f=K[d|0];break n}f= -_c(a)}if(K[b|0]!=(f|0)){b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;if(u|(f|0)>=0)break a;break b}d=J[a+4>>2]-J[a+44>>2]|0;g=d;e=d>>31;d=q+J[a+124>>2]|0;f=m+J[a+120>>2]|0;i=(f>>>0>>0?d+1|0:d)+e|0;m=f+g|0;q=m>>>0>>0?i+1|0:i;f=b;break i}k=0;f=b+2|0;break k}if(!(K[b+2|0]!=36|d-48>>>0>=10)){d=K[b+1|0]-48|0;f=xb-16|0;J[f+12>>2]=c;d=d>>>0>1?((d<<2)+c|0)-4|0:c;J[f+8>>2]=d+4;k=J[d>>2];f=b+3|0;break k}k=J[c>>2];c=c+4|0;f=b+1|0}s=0;b=0;if(K[f|0]-48>>>0<10)while(1){b=(K[f|0]+ -P(b,10)|0)-48|0;d=K[f+1|0];f=f+1|0;if(d-48>>>0<10)continue;break}o=K[f|0];if((o|0)!=109)d=f;else{p=0;s=(k|0)!=0;o=K[f+1|0];l=0;d=f+1|0}f=d+1|0;e=3;i=s;p:{q:switch(o-65|0){case 39:g=d+2|0;d=K[d+1|0]==104;f=d?g:f;e=d?-2:-1;break p;case 43:g=d+2|0;d=K[d+1|0]==108;f=d?g:f;e=d?3:1;break p;case 51:case 57:e=1;break p;case 11:e=2;break p;case 41:break p;case 0:case 2:case 4:case 5:case 6:case 18:case 23:case 26:case 32:case 34:case 35:case 36:case 37:case 38:case 40:case 45:case 46:case 47:case 50:case 52:case 55:break q; -default:break d}e=0;f=d}d=K[f|0];g=(d&47)==3;v=g?1:e;r=g?d|32:d;r:{if((r|0)==91)break r;s:{if((r|0)!=110){if((r|0)!=99)break s;b=(b|0)<=1?1:b;break r}Py(k,v,m,q);break i}Vf(a,0,0);while(1){d=J[a+4>>2];t:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0];break t}d=_c(a)}if((d|0)==32|d-9>>>0<5)continue;break}d=J[a+4>>2];g=J[a+116>>2];if((g|0)>0)g=1;else g=(g|0)>=0;if(g){d=d-1|0;J[a+4>>2]=d}d=d-J[a+44>>2]|0;g=d;h=q+J[a+124>>2]|0;e=d>>31;d=m+J[a+120>>2]|0;q=e+(d>>>0>>0?h+1|0:h)|0;m=d+g|0;q=m>>>0>>0? -q+1|0:q}n=b;d=b>>31;o=d;Vf(a,b,d);d=J[a+4>>2];u:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;break u}if((_c(a)|0)<0)break e}d=J[a+116>>2];if((d|0)>0)d=1;else d=(d|0)>=0;if(d)J[a+4>>2]=J[a+4>>2]-1;d=16;v:{w:{x:{y:{z:switch(r-88|0){default:b=r-65|0;if(b>>>0>6|!(1<>2]-J[a+44>>2]|0;if(J[a+120>>2]!=(0-b|0)|J[a+124>>2]!=(0-((b>>31)+((b|0)!=0)|0)|0))break x;break f;case 3:case 11:case 27:if((r|16)==115){Nb(j+32|0,-1,257);H[j+32|0]=0;if((r|0)!= -115)break w;H[j+65|0]=0;H[j+46|0]=0;I[j+42>>1]=0;I[j+44>>1]=0;break w}g=K[f+1|0];e=(g|0)==94;Nb(j+32|0,e,257);H[j+32|0]=0;d=e?f+2|0:f+1|0;A:{B:{C:{f=K[(e?2:1)+f|0];if((f|0)!=45){if((f|0)==93)break C;e=(g|0)!=94;break A}e=(g|0)!=94;H[j+78|0]=e;break B}e=(g|0)!=94;H[j+126|0]=e}d=d+1|0}f=d;while(1){d=K[f|0];D:{if((d|0)!=45){if(!d)break e;if((d|0)==93)break w;break D}d=45;g=K[f+1|0];if(!g|(g|0)==93)break D;h=f+1|0;f=K[f-1|0];E:{if(g>>>0<=f>>>0){d=g;break E}while(1){f=f+1|0;H[f+(j+32|0)|0]=e;d=K[h|0]; -if(f>>>0>>0)continue;break}}f=h}H[(d+j|0)+33|0]=e;f=f+1|0;continue}case 23:d=8;break y;case 12:case 29:d=10;break y;case 1:case 2:case 4:case 5:case 6:case 7:case 8:case 10:case 16:case 18:case 19:case 20:case 21:case 22:case 25:case 26:case 28:case 30:case 31:break v;case 0:case 24:case 32:break y;case 17:break z}d=0}g=0;h=0;e=0;i=0;o=0;w=xb-16|0;xb=w;F:{if(!((d|0)!=1&d>>>0<=36)){J[194954]=28;break F}while(1){b=J[a+4>>2];G:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break G}b=_c(a)}if((b|0)== -32|b-9>>>0<5)continue;break}H:{I:switch(b-43|0){case 0:case 2:break I;default:break H}o=(b|0)==45?-1:0;b=J[a+4>>2];if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break H}b=_c(a)}J:{K:{L:{M:{if(!((d|0)!=0&(d|0)!=16|(b|0)!=48)){b=J[a+4>>2];N:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break N}b=_c(a)}if((b&-33)==88){d=16;b=J[a+4>>2];O:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break O}b=_c(a)}if(K[b+758529|0]<16)break L;b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;Vf(a, -0,0);break F}if(d)break M;d=8;break L}d=d?d:10;if(d>>>0>K[b+758529|0])break M;b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;Vf(a,0,0);J[194954]=28;break F}if((d|0)!=10)break L;e=b-48|0;if(e>>>0<=9){b=0;while(1){b=P(b,10)+e|0;g=b>>>0<429496729;d=J[a+4>>2];P:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0];break P}d=_c(a)}e=d-48|0;if(g&e>>>0<=9)continue;break}g=b}if(e>>>0>9)break J;d=Kpa(g,0,10,0);n=zb;while(1){h=n;g=d+e|0;h=g>>>0>>0?h+1|0:h;d=(h|0)==429496729&g>>>0<2576980378| -h>>>0<429496729;b=J[a+4>>2];Q:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break Q}b=_c(a)}i=b-48|0;if(!(d&i>>>0<=9)){d=10;if(i>>>0<=9)break K;break J}d=Kpa(g,h,10,0);n=zb;e=i;if((n|0)==-1&(e^-1)>>>0>=d>>>0|(n|0)!=-1)continue;break}d=10;break K}if(d-1&d){i=K[b+758529|0];if(i>>>0>>0){while(1){e=P(d,e)+i|0;g=e>>>0<119304647;b=J[a+4>>2];R:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break R}b=_c(a)}i=K[b+758529|0];if(g&i>>>0>>0)continue;break}g=e}if(d>>>0<=i>>>0)break K;while(1){e=Kpa(g,h, -d,0);n=zb;i=i&255;if((n|0)==-1&(i^-1)>>>0>>0)break K;h=n;g=e+i|0;h=g>>>0>>0?h+1|0:h;b=J[a+4>>2];S:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break S}b=_c(a)}i=K[b+758529|0];if(d>>>0<=i>>>0)break K;Ce(w,d,0,0,0,g,h,0,0);if(!(J[w+8>>2]|J[w+12>>2]))continue;break}break K}n=H[(P(d,23)>>>5&7)+758785|0];e=K[b+758529|0];if(e>>>0>>0){while(1){i=i<>>0<134217728;b=J[a+4>>2];T:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break T}b=_c(a)}e=K[b+758529|0];if(g&e>>>0>>0)continue;break}g= -i}if(d>>>0<=e>>>0)break K;t=n&31;if((n&63)>>>0>=32){i=0;t=-1>>>t|0}else{i=-1>>>t|0;t=i|(1<>>0>t>>>0)break K;while(1){x=e&255;e=g;b=n&31;if((n&63)>>>0>=32){h=e<>>32-b|h<>2];U:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break U}b=_c(a)}e=K[b+758529|0];if(d>>>0<=e>>>0)break K;if((h|0)==(i|0)&g>>>0<=t>>>0|h>>>0>>0)continue;break}}if(K[b+758529|0]>=d>>>0)break J;while(1){b=J[a+4>>2];V:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b| -0];break V}b=_c(a)}if(K[b+758529|0]>>0)continue;break}J[194954]=68;o=0;g=-1;h=-1}b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;W:if((h&g)!=-1)break W;b=g^o;g=b-o|0;d=o>>31;h=(d^h)-((b>>>0>>0)+d|0)|0}xb=w+16|0;b=J[a+4>>2]-J[a+44>>2]|0;if(J[a+120>>2]==(0-b|0)&J[a+124>>2]==(0-((b>>31)+((b|0)!=0)|0)|0))break f;if(!(!k|(r|0)!=112)){J[k>>2]=g;break v}Py(k,v,g,h);break v}if(!k)break v;b=J[j+16>>2];g=J[j+20>>2];d=J[j+8>>2];e=J[j+12>>2];X:switch(v|0){case 0:y=k,z=Jy(d,e,b,g), -N[y>>2]=z;break v;case 1:y=k,A=nq(d,e,b,g),O[y>>3]=A;break v;case 2:break X;default:break v}J[k>>2]=d;J[k+4>>2]=e;J[k+8>>2]=b;J[k+12>>2]=g;break v}g=(r|0)!=99;e=g?31:b+1|0;Y:{if((v|0)==1){d=k;if(s){d=Qb(e<<2);if(!d)break g}J[j+296>>2]=0;J[j+300>>2]=0;b=0;while(1){l=d;Z:{while(1){d=J[a+4>>2];_:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0];break _}d=_c(a)}if(!K[(d+j|0)+33|0])break Z;H[j+27|0]=d;d=fl(j+28|0,j+27|0,1,j+296|0);if((d|0)==-2)continue;if((d|0)==-1){p=0;break e}if(l){J[(b<<2)+l>>2]=J[j+28>> -2];b=b+1|0}if(!s|(b|0)!=(e|0))continue;break}i=1;p=0;e=e<<1|1;d=ic(l,e<<2);if(d)continue;break d}break}p=0;e=l;if(j+296|0?J[j+296>>2]:0)break e;break Y}if(s){b=0;d=Qb(e);if(!d)break g;while(1){l=d;while(1){d=J[a+4>>2];$:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0];break $}d=_c(a)}if(!K[(d+j|0)+33|0]){e=0;p=l;break Y}H[b+l|0]=d;b=b+1|0;if((e|0)!=(b|0))continue;break}i=1;e=e<<1|1;d=ic(l,e);if(d)continue;break}p=l;l=0;break d}b=0;if(k)while(1){d=J[a+4>>2];aa:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d= -K[d|0];break aa}d=_c(a)}if(K[(d+j|0)+33|0]){H[b+k|0]=d;b=b+1|0;continue}else{e=0;l=k;p=k;break Y}}while(1){b=J[a+4>>2];ba:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break ba}b=_c(a)}if(K[(b+j|0)+33|0])continue;break}l=0;p=0;e=0;b=0}d=J[a+4>>2];h=J[a+116>>2];if((h|0)>0)i=1;else i=(h|0)>=0;if(i){d=d-1|0;J[a+4>>2]=d}h=d-J[a+44>>2]|0;i=h;d=h+J[a+120>>2]|0;h=J[a+124>>2]+(h>>31)|0;h=d>>>0>>0?h+1|0:h;if(!(h|d)|!(g|(d|0)==(n|0)&(h|0)==(o|0)))break h;if(s)J[k>>2]=l;ca:{if((r|0)==99)break ca;if(e)J[(b<< -2)+e>>2]=0;if(!p){p=0;break ca}H[b+p|0]=0}l=e}b=J[a+4>>2]-J[a+44>>2]|0;g=b;d=q+J[a+124>>2]|0;e=b>>31;b=m+J[a+120>>2]|0;h=e+(b>>>0>>0?d+1|0:d)|0;m=b+g|0;q=m>>>0>>0?h+1|0:h;u=((k|0)!=0)+u|0}b=f+1|0;f=K[f+1|0];if(f)continue;break a}break}l=e;break f}i=1;p=0;l=0;break d}i=s;break c}i=s}u=u?u:-1}if(!i)break a;Kb(p);Kb(l);break a}u=-1}xb=j+304|0;return u}function wN(a){a=a|0;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=xb-48|0;xb=g;f=J[a+720>>2];a:{if(f)break a;b:{c:{if(!(!J[a+736>>2]| -!(L[a+6>>1]&32767|K[a+9|0]&128))){n=J[a+548>>2];e=J[a+100>>2];if(!J[a+744>>2]){J[g+16>>2]=-1;J[g+20>>2]=-1;i=L[a+340>>1];if(!i){f=0;break b}h=J[a+356>>2];while(1){f=h+P(b,20)|0;d:{if(L[f+6>>1]!=25|!L[f+8>>1])break d;e:{f:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break d;c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break e;break d;case 0:break f;default:break d}if(L[f+2>>1])break d;c=g+16|0;if(!L[f+4>>1])break e;if(J[g+16>>2]!=-1)break d}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d=J[g+16>>2]; -g:{h:{b=J[g+20>>2];if((b|0)>=0)break h;i:{if((d|0)>=0)break i;J[g+16>>2]=-1;J[g+20>>2]=-1;b=0;while(1){f=h+P(b,20)|0;j:{if(L[f+6>>1]!=16|!L[f+8>>1])break j;k:{l:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break j;c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break k;break j;case 0:break l;default:break j}if(L[f+2>>1])break j;c=g+16|0;if(!L[f+4>>1])break k;if(J[g+16>>2]!=-1)break j}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d=J[g+16>>2];b=J[g+20>>2];if((b|0)>=0)break h;if((d|0)>=0)break i;J[g+16>> -2]=-1;J[g+20>>2]=-1;b=0;while(1){f=h+P(b,20)|0;m:{if(L[f+6>>1]!=1|!L[f+8>>1])break m;n:{o:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break m;c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break n;break m;case 0:break o;default:break m}if(L[f+2>>1])break m;c=g+16|0;if(!L[f+4>>1])break n;if(J[g+16>>2]!=-1)break m}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d=J[g+16>>2];b=J[g+20>>2];if((b|0)>=0)break h;f=0;if((d|0)<0)break b}if((b|0)!=-1)break h;b=0;break g}b=Kv(e,J[a+368>>2],h+P(b,20)|0,64)}p:{if(b| -(d|0)==-1)break p;c=J[a+368>>2];h=J[a+100>>2];k=J[a+356>>2];b=0;J[g+40>>2]=0;l=k+P(d,20)|0;f=tc(h,L[l+8>>1]+1|0,g+40|0);if(J[g+40>>2])break p;b=bc(c,J[l+12>>2]);J[g+40>>2]=b;q:{if(b)break q;b=Tc(c,L[l+8>>1]);J[g+40>>2]=b;if(b)break q;b=f;r:{i=L[l+8>>1];if(i){j=J[c+32>>2];while(1){m=H[j|0];if(m-58>>>0<=4294967285&(m&-33)-91>>>0<4294967270)break r;H[b|0]=m;j=j+1|0;b=b+1|0;i=i-1|0;if(i)continue;break}}H[b|0]=0;Ec(c);b=f;break p}Ec(c)}if(f)Ab[J[h+8>>2]](h,f);b=0;J[l+12>>2]=0;I[l+8>>1]=0;f=k+P(d,20)|0; -c=J[f+16>>2];if(c)Ab[J[h+8>>2]](h,c);J[f+16>>2]=0}if(!b){f=0;break b}f=ac(b);if(f>>>0>=92){H[b+91|0]=0;f=91}J[a+748>>2]=f;J[a+744>>2]=b}f=0;Ab[J[n+40>>2]](a,g+32|0,g+28|0,0,g+24|0)|0;s:{t:{b=J[a+4>>2]&2147418112;if(!b|K[a+9|0]&128)break t;h=(b>>>16|0)-1|0;b=J[J[g+24>>2]+16>>2];c=J[(P(h,12)+b|0)+8>>2];d=J[a+540>>2];J[g+40>>2]=0;if(!((c|0)!=6&c-256>>>0>32511)){Ab[J[d+144>>2]](a,c&65535,g+40|0)|0;b=J[g+40>>2];if(b)break s;b=J[J[g+24>>2]+16>>2]}Ab[J[d+144>>2]](a,L[(P(h,12)+b|0)+4>>1],g+12|0)|0;b=J[g+ -12>>2];if(!b)break t;b=tc(e,(J[a+748>>2]+ac(b)|0)+2|0,g+36|0);if(J[g+36>>2])break b;f=se(b,J[a+744>>2]);b=f+J[a+748>>2]|0;H[b|0]=45;c=b+1|0;d=J[g+12>>2];b=K[d|0];if(b)while(1){h=b<<24>>24;if(!(!(h-48>>>0<10|h-65>>>0<26)&h-97>>>0>25)){H[c|0]=b;c=c+1|0}b=K[d+1|0];d=d+1|0;if(b)continue;break}H[c|0]=0;b=J[g+12>>2];if(b)Ab[J[e+8>>2]](e,b);d=c+1|0;break c}j=J[J[g+24>>2]+12>>2];b=tc(e,(J[a+748>>2]+P(J[g+32>>2],17)|0)+1|0,g+36|0);if(J[g+36>>2])break b;f=se(b,J[a+744>>2]);d=f+J[a+748>>2]|0;if(!J[g+32>>2])break c; -b=J[g+28>>2];k=0;while(1){u:{if(J[b>>2]==J[j+8>>2])break u;H[d|0]=95;b=J[J[g+28>>2]>>2];v:{if(!b){H[d+1|0]=48;d=d+2|0;break v}if((b|0)>=0)d=d+1|0;else{H[d+1|0]=45;b=0-b|0;d=d+2|0}l=b&65535;w:{if(b>>>0<65536)break w;e=b>>>16|0;b=g+40|0;c=0;while(1){i=(e>>>0)/10|0;H[b|0]=e-P(i,10)|48;h=c;c=c+1|0;b=b+1|0;m=e>>>0<10;e=i;if(!m)continue;break}if(g+40>>>0>=b>>>0)break w;e=0;c=h+1&7;if(c)while(1){b=b-1|0;H[d|0]=K[b|0];d=d+1|0;e=e+1|0;if((c|0)!=(e|0))continue;break}if(h>>>0<7)break w;while(1){H[d|0]=K[b-1| -0];H[d+1|0]=K[b-2|0];H[d+2|0]=K[b-3|0];H[d+3|0]=K[b-4|0];H[d+4|0]=K[b-5|0];H[d+5|0]=K[b-6|0];H[d+6|0]=K[b-7|0];b=b-8|0;H[d+7|0]=K[b|0];d=d+8|0;if(g+40>>>0>>0)continue;break}}if(!l)break v;H[d|0]=46;b=P(l,10)+5|0;H[d+1|0]=(b>>>16|0)+48;b=P(b&65535,10);H[d+2|0]=b>>>16|48;b=P(b&65534,10);e=b>>>16|48;H[d+3|0]=e;x:{y:{z:{A:{B:{C:{D:{b=b&65532;if(!b){b=d+3|0;break D}b=P(b,10);e=b>>>16|48;H[d+4|0]=e;b=b&65528;if(!b){b=d+4|0;break D}c=P(b,10);h=c>>>16|0;e=h|48;H[d+5|0]=e;b=d+5|0;c=c&65520;if(!c)break D; -if(c>>>0>=34480)break z;if((e|0)==49)break C;if((c|0)==17232){if(!(h&1))break z;e=h+47|0;break A}if(c>>>0>17231)break z;break B}if((b-d|0)!=5)break z;if((e|0)!=49)break B}H[b|0]=48;break y}if((e|0)==48)break y;e=e-1|0}H[b|0]=e}if((e|0)!=48)break x}while(1){H[b|0]=0;b=b-1|0;if(K[b|0]==48)continue;break}}d=b+1|0}b=J[j+16>>2];c=b>>24;if(!((c|0)==32|!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)){H[d|0]=b>>>24;d=d+1|0;b=J[j+16>>2]}e=b>>>16|0;c=e<<24;E:{if((c|0)==536870912)break E;c=c>>24;if(!(c-48>>>0<10|c- -65>>>0<26)&c-97>>>0>25)break E;H[d|0]=e;d=d+1|0;b=J[j+16>>2]}e=b>>>8|0;c=e<<24;F:{if((c|0)==536870912)break F;c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)break F;H[d|0]=e;d=d+1|0;b=J[j+16>>2]}c=b<<24;if((c|0)==536870912)break u;c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)break u;H[d|0]=b;d=d+1|0}b=J[g+28>>2]+4|0;J[g+28>>2]=b;j=j+24|0;k=k+1|0;if(k>>>0>2])continue;break}break c}d=(ac(b)+b|0)+1|0;f=b;break c}J[g+32>>2]=-1;J[g+36>>2]=-1;c=L[a+340>>1];if(!c){f=0;break a}e=J[a+356>> -2];while(1){f=e+P(b,20)|0;G:{if(L[f+6>>1]!=6|!L[f+8>>1])break G;H:{I:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break G;j=g+36|0;if(L[f+4>>1]==1033|J[g+36>>2]==-1)break H;break G;case 0:break I;default:break G}if(L[f+2>>1])break G;j=g+32|0;if(!L[f+4>>1])break H;if(J[g+32>>2]!=-1)break G}J[j>>2]=b}b=b+1|0;if((c|0)!=(b|0))continue;break}i=J[g+32>>2];J:{K:{b=J[g+36>>2];if((b|0)>=0)break K;f=0;if((i|0)<0)break a;if((b|0)!=-1)break K;f=0;break J}f=Kv(J[a+100>>2],J[a+368>>2],J[a+356>>2]+P(b,20)|0,65)}if(f| -(i|0)==-1)break b;e=J[a+368>>2];l=J[a+356>>2];d=J[a+100>>2];f=0;J[g+40>>2]=0;h=l+P(i,20)|0;b=tc(d,L[h+8>>1]+1|0,g+40|0);if(J[g+40>>2])break b;f=bc(e,J[h+12>>2]);J[g+40>>2]=f;L:{if(f)break L;f=Tc(e,L[h+8>>1]);J[g+40>>2]=f;if(f)break L;c=b;M:{f=L[h+8>>1];if(f){j=J[e+32>>2];while(1){k=K[j|0];m=k<<24>>24;if((m|0)<0|!(K[(k>>>3|0)+94576|0]>>>(k&7)&1))break M;H[c|0]=m;j=j+1|0;c=c+1|0;f=f-1|0;if(f)continue;break}}H[c|0]=0;Ec(e);f=b;break b}Ec(e)}if(b)Ab[J[d+8>>2]](d,b);f=0;J[h+12>>2]=0;I[h+8>>1]=0;b=l+P(i, -20)|0;c=J[b+16>>2];if(c)Ab[J[d+8>>2]](d,c);J[b+16>>2]=0;break b}l=d-f|0;if((l|0)<128)break b;e=0-(l>>>4|0)|0;h=(l&-16)+f|0;i=123456789;d=123456789;c=123456789;j=123456789;while(1){k=i;b=h+(e<<4)|0;i=J[b>>2];i=Opa(k^P(P(i,597399067)>>>17|P(i,-888307712),-1425107063),19)+d|0;k=d;d=J[b+4>>2];d=P(Opa(k^P(P(d,-1425107063)>>>16|P(d,-1752629248),951274213),17)+c|0,5)+197830471|0;k=c;c=J[b+8>>2];c=P(Opa(k^P(P(c,951274213)>>>15|P(c,-1781923840),-1578923117),15)+j|0,5)-1764942795|0;b=J[b+12>>2];i=P(i,5)+1444728091| -0;k=P(Opa(P(P(b,-1578923117)>>>14|P(b,776732672),597399067)^j,13)+i|0,5)+850148119|0;j=k;e=e+1|0;if(e)continue;break}b=0;N:switch((l&15)-1|0){case 14:b=K[h+14|0]<<16;case 13:b=K[h+13|0]<<8|b;case 12:b=K[h+12|0]^b;k=P(P(b,-1578923117)>>>14|P(b,776732672),597399067)^k;case 11:b=K[h+11|0]<<24;case 10:b=K[h+10|0]<<16|b;case 9:b=K[h+9|0]<<8^b;case 8:b=K[h+8|0]^b;c=P(P(b,951274213)>>>15|P(b,-1781923840),-1578923117)^c;case 7:b=K[h+7|0]<<24;case 6:b=K[h+6|0]<<16|b;case 5:b=K[h+5|0]<<8^b;case 4:b=K[h+4|0]^ -b;d=P(P(b,-1425107063)>>>16|P(b,-1752629248),951274213)^d;case 3:b=K[h+3|0]<<24;case 2:b=K[h+2|0]<<16|b;case 1:b=K[h+1|0]<<8^b;case 0:b=K[h|0]^b;i=P(P(b,597399067)>>>17|P(b,-888307712),-1425107063)^i;break;default:break N}b=J[a+748>>2]+f|0;H[b|0]=45;H[b+33|0]=46;H[b+34|0]=46;H[b+35|0]=46;H[b+36|0]=0;d=d^l;e=c^l;h=l^k;c=(d+(e+h|0)|0)+(i^l)|0;i=P(c>>>16^c,-2048144789);i=P(i>>>13^i,-1028477387);j=i>>>16^i;d=c+d|0;d=P(d>>>16^d,-2048144789);d=P(d>>>13^d,-1028477387);i=d>>>16^d;e=c+e|0;e=P(e>>>16^e,-2048144789); -e=P(e>>>13^e,-1028477387);d=e>>>16^e;c=c+h|0;c=P(c>>>16^c,-2048144789);c=P(c>>>13^c,-1028477387);e=c>>>16^c;c=((j+i|0)+d|0)+e|0;e=c+e|0;H[b+32|0]=K[(e&15)+94560|0];H[b+25|0]=K[(e>>>28|0)+94560|0];d=c+d|0;H[b+24|0]=K[(d&15)+94560|0];H[b+31|0]=K[(e>>>4&15)+94560|0];H[b+30|0]=K[(e>>>8&15)+94560|0];H[b+29|0]=K[(e>>>12&15)+94560|0];H[b+28|0]=K[(e>>>16&15)+94560|0];H[b+27|0]=K[(e>>>20&15)+94560|0];H[b+26|0]=K[(e>>>24&15)+94560|0];H[b+23|0]=K[(d>>>4&15)+94560|0];H[b+22|0]=K[(d>>>8&15)+94560|0];H[b+21|0]= -K[(d>>>12&15)+94560|0];H[b+20|0]=K[(d>>>16&15)+94560|0];H[b+19|0]=K[(d>>>20&15)+94560|0];H[b+18|0]=K[(d>>>24&15)+94560|0];e=c+i|0;H[b+16|0]=K[(e&15)+94560|0];H[b+17|0]=K[(d>>>28|0)+94560|0];H[b+15|0]=K[(e>>>4&15)+94560|0];H[b+14|0]=K[(e>>>8&15)+94560|0];H[b+13|0]=K[(e>>>12&15)+94560|0];H[b+12|0]=K[(e>>>16&15)+94560|0];H[b+11|0]=K[(e>>>20&15)+94560|0];H[b+10|0]=K[(e>>>24&15)+94560|0];H[b+9|0]=K[(e>>>28|0)+94560|0];H[b+8|0]=K[(c&15)+94560|0];H[b+7|0]=K[(c>>>4&15)+94560|0];H[b+6|0]=K[(c>>>8&15)+94560| -0];H[b+5|0]=K[(c>>>12&15)+94560|0];H[b+4|0]=K[(c>>>16&15)+94560|0];H[b+3|0]=K[(c>>>20&15)+94560|0];H[b+2|0]=K[(c>>>24&15)+94560|0];H[b+1|0]=K[(c>>>28|0)+94560|0]}J[a+720>>2]=f}xb=g+48|0;return f|0}function cka(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;e=xb-256|0;xb=e;a:{if(!a|!J[a+4>>2])break a;h=J[a+16>>2];d=h<<2;n=J[a+20>>2];g=Pb(P(d,n));J[b+12>>2]=0-d;J[b+8>>2]=n;J[b+4>>2]=h;J[b+16>>2]=g;j=L[a+26>>1];r=J[a+52>>2];c=fd(a,0);f=J[a+4>>2]; -f=f?J[a+44>>2]?f+40|0:0:0;u=K[a+389|0];p=K[b+40|0];b:{c:switch(j-1|0){case 0:if(!f){H[e+6|0]=255;H[e+4|0]=255;H[e+5|0]=255;H[e+2|0]=0;H[e|0]=0;H[e+1|0]=0;f=e}if((n|0)<=0)break b;j=(h|0)<=0;b=g;while(1){d:{if(j)break d;d=0;if(!p)while(1){i=((K[(d>>>3|0)+c|0]>>>((d^-1)&7)&1)<<2)+f|0;H[b|0]=K[i|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i+2|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break d}while(1){i=((K[(d>>>3|0)+c|0]>>>((d^-1)&7)&1)<<2)+f|0;H[b|0]=K[i+2|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i|0];b=b+4|0;d=d+1|0; -if((h|0)!=(d|0))continue;break}}c=c+r|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;default:a=J[b+16>>2];if(a)Kb(a);a=J[b+20>>2];if(a)Kb(a);J[b>>2]=0;J[b+4>>2]=0;H[b+40|0]=0;J[b+32>>2]=0;J[b+36>>2]=-1074790400;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;break a;case 31:if((n|0)<=0|(h|0)<=0)break b;q=r-d|0;if(p){j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b|0]=K[c+2|0];H[b+1|0]= -K[c+1|0];H[b+2|0]=K[c|0];H[b+4|0]=K[c+6|0];H[b+5|0]=K[c+5|0];H[b+6|0]=K[c+4|0];H[b+8|0]=K[c+10|0];H[b+9|0]=K[c+9|0];H[b+10|0]=K[c+8|0];H[b+12|0]=K[c+14|0];H[b+13|0]=K[c+13|0];H[b+14|0]=K[c+12|0];b=b+16|0;c=c+16|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];b=b+4|0;c=c+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b}j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b|0]=K[c|0]; -H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+4|0]=K[c+4|0];H[b+5|0]=K[c+5|0];H[b+6|0]=K[c+6|0];H[b+8|0]=K[c+8|0];H[b+9|0]=K[c+9|0];H[b+10|0]=K[c+10|0];H[b+12|0]=K[c+12|0];H[b+13|0]=K[c+13|0];H[b+14|0]=K[c+14|0];b=b+16|0;c=c+16|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];b=b+4|0;c=c+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;case 23:if((n|0)<=0|(h|0)<=0)break b;q=r+P(h,-3)|0;if(p){j=h& --4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];H[b+4|0]=K[c+5|0];H[b+5|0]=K[c+4|0];H[b+6|0]=K[c+3|0];H[b+8|0]=K[c+8|0];H[b+9|0]=K[c+7|0];H[b+10|0]=K[c+6|0];H[b+12|0]=K[c+11|0];H[b+13|0]=K[c+10|0];H[b+14|0]=K[c+9|0];b=b+16|0;c=c+12|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];b=b+4|0;c=c+3|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b}j= -h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+4|0]=K[c+3|0];H[b+5|0]=K[c+4|0];H[b+6|0]=K[c+5|0];H[b+8|0]=K[c+6|0];H[b+9|0]=K[c+7|0];H[b+10|0]=K[c+8|0];H[b+12|0]=K[c+9|0];H[b+13|0]=K[c+10|0];H[b+14|0]=K[c+11|0];b=b+16|0;c=c+12|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];b=b+4|0;c=c+3|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b; -case 7:j=r-h|0;v=J[a+336>>2];if(f){e:{if((n|0)<=0|(h|0)<=0)break e;if(u){l=h&-2;q=h&1;i=h-1|0;b=g;while(1){f:{g:{if(p){m=0;if(i){while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];H[b+3|0]=K[d+3|0];d=c;o=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[o+2|0];H[b+5|0]=K[o+1|0];H[b+6|0]=K[o|0];H[b+7|0]=K[o+3|0];b=b+8|0;c=c+2|0;m=m+2|0;if((l|0)!=(m|0))continue;break}d=d+1|0}if(!q)break f;d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];break g}m=0;if(i){while(1){d=(K[c|0]<< -2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0];H[b+3|0]=K[d+3|0];d=c;o=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[o|0];H[b+5|0]=K[o+1|0];H[b+6|0]=K[o+2|0];H[b+7|0]=K[o+3|0];b=b+8|0;c=c+2|0;m=m+2|0;if((l|0)!=(m|0))continue;break}d=d+1|0}if(!q)break f;d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0]}H[b+3|0]=K[d+3|0];b=b+4|0;d=c}c=(d+j|0)+1|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break e}s=h&-2;o=h&1;l=h-1|0;q=(v<<2)+f|0;b=g;while(1){h:{if((v|0)!=-1){k=0;while(1){i=K[c|0];r=(i<<2)+f| -0;d=r+2|0;H[b|0]=K[(p?d:r)|0];H[b+1|0]=K[r+1|0];H[b+2|0]=K[(p?r:d)|0];H[b+3|0]=(i|0)!=(v|0)?255:K[q+3|0];b=b+4|0;c=c+1|0;k=k+1|0;if((k|0)!=(h|0))continue;break}break h}i:{j:{k:{if(p){m=0;if(!l)break k;while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];d=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[d+2|0];H[b+5|0]=K[d+1|0];H[b+6|0]=K[d|0];b=b+8|0;c=c+2|0;m=m+2|0;if((s|0)!=(m|0))continue;break}break k}m=0;if(!l)break j;while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+ -2|0];d=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[d|0];H[b+5|0]=K[d+1|0];H[b+6|0]=K[d+2|0];b=b+8|0;c=c+2|0;m=m+2|0;if((s|0)!=(m|0))continue;break}break j}if(!o)break h;d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];break i}if(!o)break h;d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0]}b=b+4|0;c=c+1|0}c=c+j|0;t=t+1|0;if((t|0)!=(n|0))continue;break}}m=u|(v|0)!=-1;break b}if((n|0)<=0)break b;q=h&-4;o=h&3;i=(h|0)<=0;d=h-1>>>0>2;b=g;while(1){l:{if(i)break l;f=0;if(d)while(1){l= -K[c|0];H[b+2|0]=l;H[b+1|0]=l;H[b|0]=l;l=K[c+1|0];H[b+6|0]=l;H[b+5|0]=l;H[b+4|0]=l;l=K[c+2|0];H[b+10|0]=l;H[b+9|0]=l;H[b+8|0]=l;l=K[c+3|0];H[b+14|0]=l;H[b+13|0]=l;H[b+12|0]=l;b=b+16|0;c=c+4|0;f=f+4|0;if((q|0)!=(f|0))continue;break}f=0;if(!o)break l;while(1){l=K[c|0];H[b+2|0]=l;H[b+1|0]=l;H[b|0]=l;b=b+4|0;c=c+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}}c=c+j|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;case 3:if(!f){H[e+62|0]=255;H[e+58|0]=238;H[e+54|0]=221;H[e+50|0]=204;H[e+46|0]=187;H[e+42|0]= -170;H[e+38|0]=153;H[e+30|0]=119;H[e+26|0]=102;H[e+22|0]=85;H[e+18|0]=68;H[e+10|0]=34;H[e+34|0]=136;I[e+60>>1]=65535;I[e+56>>1]=61166;I[e+52>>1]=56797;I[e+48>>1]=52428;I[e+44>>1]=48059;I[e+40>>1]=43690;I[e+36>>1]=39321;I[e+32>>1]=34952;I[e+28>>1]=30583;I[e+24>>1]=26214;I[e+20>>1]=21845;I[e+16>>1]=17476;H[e+14|0]=51;I[e+12>>1]=13107;I[e+8>>1]=8738;H[e+6|0]=17;I[e+4>>1]=4369;H[e+2|0]=0;I[e>>1]=0;f=e}s=J[a+336>>2];if((n|0)>0){l=(s<<2)+f|0;q=(h|0)<=0;b=g;while(1){m:{if(q)break m;m=0;if(u)while(1){j=((K[(m>>> -1|0)+c|0]>>>((m^-1)<<2&4)&15)<<2)+f|0;d=j+2|0;H[b|0]=K[(p?d:j)|0];H[b+1|0]=K[j+1|0];H[b+2|0]=K[(p?j:d)|0];H[b+3|0]=K[j+3|0];b=b+4|0;m=m+1|0;if((h|0)!=(m|0))continue;break m}d=0;if((s|0)==-1)while(1){i=((K[(d>>>1|0)+c|0]>>>((d^-1)<<2&4)&15)<<2)+f|0;j=i+2|0;H[b|0]=K[(p?j:i)|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[(p?i:j)|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break m}while(1){i=K[(d>>>1|0)+c|0]>>>((d^-1)<<2&4)&15;o=(i<<2)+f|0;j=o+2|0;H[b|0]=K[(p?j:o)|0];H[b+1|0]=K[o+1|0];H[b+2|0]=K[(p?o:j)|0];H[b+3|0]= -(i|0)!=(s|0)?255:K[l+3|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=c+r|0;t=t+1|0;if((t|0)!=(n|0))continue;break}}m=u|(s|0)!=-1;break b;case 1:break c}if(!f){H[e+14|0]=255;I[e+12>>1]=65535;H[e+10|0]=170;I[e+8>>1]=43690;H[e+6|0]=85;I[e+4>>1]=21845;H[e+2|0]=0;I[e>>1]=0;f=e}if((n|0)<=0)break b;j=(h|0)<=0;b=g;while(1){n:{if(j)break n;d=0;if(!p)while(1){i=((K[(d>>>2|0)+c|0]>>>((d^-1)<<1&6)&3)<<2)+f|0;H[b|0]=K[i|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i+2|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break n}while(1){i= -((K[(d>>>2|0)+c|0]>>>((d^-1)<<1&6)&3)<<2)+f|0;H[b|0]=K[i+2|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=c+r|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}o:{if(J[a+932>>2]){b=0;c=TE(a);j=K[a+388|0];if((j|0)==255){d=P(h,n);if((d|0)<=0)break a;if(d>>>0>=8){a=d&-8;while(1){H[g+3|0]=K[c|0];H[g+7|0]=K[c+1|0];H[g+11|0]=K[c+2|0];H[g+15|0]=K[c+3|0];H[g+19|0]=K[c+4|0];H[g+23|0]=K[c+5|0];H[g+27|0]=K[c+6|0];H[g+31|0]=K[c+7|0];g=g+32|0;c=c+8|0;b=b+8|0;if((a|0)!=(b|0))continue; -break}}a=d&7;if(!a)break a;b=0;while(1){H[g+3|0]=K[c|0];g=g+4|0;c=c+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}break a}f=j>>>1|0;while(1){a=(f+P(b,255)>>>0)/(j>>>0)|0;H[b+e|0]=a>>>0>=255?255:a;a=b|1;d=(f+P(a,255)>>>0)/(j>>>0)|0;H[a+e|0]=d>>>0>=255?255:d;b=b+2|0;if((b|0)!=256)continue;break}break o}if(m)break a;b=P(h,n);if((b|0)<=0)break a;if(b>>>0>=8){a=b&-8;c=0;while(1){H[g+31|0]=255;H[g+27|0]=255;H[g+23|0]=255;H[g+19|0]=255;H[g+15|0]=255;H[g+11|0]=255;H[g+7|0]=255;H[g+3|0]=255;g=g+32|0;c=c+8|0; -if((a|0)!=(c|0))continue;break}}a=b&7;if(!a)break a;c=0;while(1){H[g+3|0]=255;g=g+4|0;c=c+1|0;if((a|0)!=(c|0))continue;break}break a}d=P(h,n);if((d|0)<=0)break a;if(d>>>0>=4){a=d&-4;b=0;while(1){H[g+3|0]=K[K[c|0]+e|0];H[g+7|0]=K[K[c+1|0]+e|0];H[g+11|0]=K[K[c+2|0]+e|0];H[g+15|0]=K[K[c+3|0]+e|0];g=g+16|0;c=c+4|0;b=b+4|0;if((a|0)!=(b|0))continue;break}}a=d&3;if(!a)break a;b=0;while(1){H[g+3|0]=K[K[c|0]+e|0];g=g+4|0;c=c+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}xb=e+256|0}function Jo(a){a=a|0;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;g=J[a+-64>>2];b=vc(1,232);if(b){d=xb-8304|0;xb=d;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[b+48>>2]=0;J[b+52>>2]=0;J[b+196>>2]=0;J[b+200>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b+104>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;a=b- -64|0;J[a>>2]=0;J[a+4>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+ -80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+204>>2]=0;J[b+208>>2]=0;J[b+212>>2]=0;J[b+216>>2]=0;J[b+220>>2]=0;J[b+224>>2]=0;a:{b:{c:{if(!g)break c;l=b+208|0;e=b+92|0;a=e;J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[b+156>>2]=-1;J[b+148>>2]=-1;J[b+152>>2]=-1;J[b+140>>2]=-1;J[b+144>>2]=-1;J[b+132>>2]=-1;J[b+136>>2]=-1;J[b+124>>2]=-1;J[b+128>>2]=-1;J[b+116>>2]=-1;J[b+120>>2]=-1;J[b+172>>2]=0;J[b+176>>2]=0;J[b+164>>2]=0;J[b+168>>2]=8720;J[b+180>>2]=0;J[b+184>>2]=0;J[b+188>>2]= -0;J[b+192>>2]=0;i=b+196|0;a=i;J[a>>2]=0;J[a+4>>2]=0;J[b+204>>2]=0;J[b+208>>2]=0;J[b+212>>2]=0;J[b+216>>2]=0;J[195395]=0;c=_(584,g|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;H[b+44|0]=1;J[b+40>>2]=c;J[195395]=0;c=ca(585,g|0,1128678944)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;J[195395]=0;c=ca(770,b|0,c|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;J[b+48>>2]=c;J[195395]=0;d:{if(!c)break d;a=J[c>>2];if(!a)break d;J[c>>2]=a+1}a=J[195395];J[195395]=0;if((a|0)==1)break b;H[b+28|0]=0;J[b+ -36>>2]=c;a=J[c+12>>2];J[b+4>>2]=a;c=J[c+16>>2];J[b+12>>2]=c;J[b+8>>2]=a+c;J[b+32>>2]=0;if(c>>>0>67108863)a=1073741823;else{a=c<<6;a=a>>>0<=16384?16384:a;a=a>>>0>=1073741823?1073741823:a}J[b+16>>2]=a;J[b+24>>2]=0;J[b>>2]=0;e:{f:{a=J[b+48>>2];if(M[a+16>>2]<4)break f;j=J[a+12>>2];if((j|0)==169776)break f;a=K[j+2|0]+j|0;J[b+60>>2]=a;if((a|0)==169776)break f;J[195395]=0;c=sh(a,b);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f;f=J[b+60>>2];a=K[f|0]|K[f+1|0]<<8;if(a){k=f+3|0;g=(a<<8|a>>>8)&65535; -a=K[f+2|0];c=P(g+1|0,a);g:{h:switch(a-1|0){case 0:h=K[g+k|0];break g;case 1:a=k+(g<<1)|0;a=K[a|0]|K[a+1|0]<<8;h=(a<<8|a>>>8)&65535;break g;case 2:a=k+P(g,3)|0;h=K[a+1|0]<<8|K[a|0]<<16|K[a+2|0];break g;case 3:break h;default:break g}a=k+(g<<2)|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);h=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}a=(c+h|0)+2|0}else a=2;a=a+f|0;J[b+64>>2]=a;if((a|0)==169776)break f;J[195395]=0;c=sh(a,b);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f;a=J[b+64>>2];if(!(K[a| -0]|K[a+1|0]<<8))break f;J[195395]=0;mg(d+16|0,a,0);a=J[195395];J[195395]=0;if((a|0)==1)break b;a=J[d+16>>2];if(M[b+12>>2]>2]>>>0)break f;c=J[b+8>>2]-a|0;a=J[d+20>>2];if(c>>>0>>0)break f;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break f;g=b+224|0;H[d+4184|0]=0;Nb(d+4188|0,0,4108);J[d+8296>>2]=0;J[d+8300>>2]=0;J[d+4176>>2]=0;c=J[d+20>>2];a=J[d+16>>2];J[d+4168>>2]=a;J[d+4172>>2]=c;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[b+156>>2]=-1;J[b+148>>2]=-1;J[b+152>> -2]=-1;J[b+140>>2]=-1;J[b+144>>2]=-1;J[b+132>>2]=-1;J[b+136>>2]=-1;J[b+124>>2]=-1;J[b+128>>2]=-1;J[b+116>>2]=-1;J[b+120>>2]=-1;J[b+164>>2]=0;J[b+168>>2]=8720;J[b+188>>2]=0;J[b+192>>2]=0;J[b+180>>2]=0;J[b+184>>2]=0;J[b+172>>2]=0;J[b+176>>2]=0;f=0;while(1){k=f+1|0;if(k>>>0<=c>>>0){a=J[d+4168>>2];h=K[a+f|0];J[d+4176>>2]=k;i:{if((h|0)!=12)break i;m=c;c=f+2|0;if(m>>>0>>0){h=65535;break i}a=K[a+k|0];J[d+4176>>2]=c;h=a|256}J[195395]=0;fa(773,h|0,d+4168|0,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break b; -f=J[d+4176>>2];c=J[d+4172>>2];if(f>>>0>c>>>0)break f;if(!K[d+4184|0])continue;break f}break}a=J[b+176>>2];j:{if(a>>>0<=2){J[b+56>>2]=169776;break j}a=a+j|0;J[b+56>>2]=a;if((a|0)==169776)break f;J[195395]=0;c=QH(a,b,g);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f}J[b+88>>2]=1;k:{l:{if(J[b+152>>2]!=-1){a=J[b+112>>2];c=a?a+j|0:169776;J[b+80>>2]=c;a=J[b+180>>2];J[b+84>>2]=a?a+j|0:169776;if((c|0)==169776)break f;J[195395]=0;c=sh(c,b);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f; -c=J[b+84>>2];if((c|0)==169776)break f;a=J[b+80>>2];a=K[a|0]|K[a+1|0]<<8;J[195395]=0;c=PH(c,b,(a<<8|a>>>8)&65535);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f;a=J[b+80>>2];a=K[a|0]|K[a+1|0]<<8;J[b+52>>2]=169776;J[b+88>>2]=(a<<8|a>>>8)&65535;if(J[b+152>>2]==-1)break l;if(J[b+56>>2]!=169776)break k;break f}J[b+84>>2]=169776;J[b+80>>2]=169776;J[b+52>>2]=169776}a=J[b+172>>2];if(a>>>0<2)break k;a=a+j|0;J[b+52>>2]=a;if((a|0)==169776)break f;J[195395]=0;c=OH(a,b);a=J[195395];J[195395]=0;if((a| -0)==1)break e;if(!c)break f}e=J[b+64>>2];J[195395]=0;c=lt(e);a=J[195395];J[195395]=0;if((a|0)==1)break e;a=c+e|0;J[b+68>>2]=a;if((a|0)==169776)break f;J[195395]=0;c=sh(a,b);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f;e=J[b+68>>2];J[195395]=0;c=lt(e);a=J[195395];J[195395]=0;if((a|0)==1)break e;a=c+e|0;J[b+72>>2]=a;if((a|0)!=169776){J[195395]=0;c=sh(a,b);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f}a=J[b+108>>2];a=a?a+j|0:169776;J[b+76>>2]=a;if((a|0)==169776)break f;J[195395]= -0;c=sh(a,b);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f;a=J[b+76>>2];a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535;J[b+220>>2]=a;if((a|0)!=J[b+40>>2])break f;a=J[b+88>>2];J[195395]=0;c=ha(778,l|0,a|0,1,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break e;if(!c)break f;m:{if(J[b+88>>2]){f=0;while(1){n:{if(M[b+212>>2]<=f>>>0){a=J[42449];J[194124]=J[42448];J[194125]=a;a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break n}a=J[b+216>>2]+P(f,24)|0}J[a>> -2]=0;J[a+4>>2]=0;J[a+20>>2]=169776;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;f=f+1|0;a=J[b+88>>2];if(f>>>0>>0)continue;break}if(J[b+152>>2]==-1)break m;if(!a)break c;k=d+36|0;g=d+4188|0;h=0;while(1){a=J[b+80>>2];J[195395]=0;mg(d+4152|0,a,h);a=J[195395];J[195395]=0;if((a|0)==1)break b;a=J[d+4152>>2];if(M[b+12>>2]>2]>>>0)break f;c=J[b+8>>2]-a|0;a=J[d+4156>>2];if(c>>>0>>0)break f;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break f;H[d+4184|0]=0;Nb(g,0,4108);J[d+8296>>2]=0;J[d+8300>>2]=0;J[d+ -4176>>2]=0;a=J[d+4156>>2];J[d+4168>>2]=J[d+4152>>2];J[d+4172>>2]=a;J[195395]=0;J[d+4148>>2]=d+4168;c=_(779,i|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;if(J[i>>2]<0)break f;J[c>>2]=0;J[c+4>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+24>>2]=0;J[c+28>>2]=-1;J[195395]=0;e=ca(780,d+4148|0,c|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;if(!e)break f;o:{if(M[b+212>>2]<=h>>>0){a=J[42449];J[194124]=J[42448];J[194125]=a;a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]= -J[42444];J[194121]=a;m=776480;break o}m=J[b+216>>2]+P(h,24)|0}a=m;f=J[c+16>>2]+j|0;if(M[b+12>>2]>2]>>>0)break f;e=J[c+20>>2];if(e>>>0>J[b+8>>2]-f>>>0)break f;c=J[b+16>>2]-e|0;J[b+16>>2]=c;if((c|0)<=0)break f;H[d+32|0]=0;Nb(k,0,4108);J[d+24>>2]=0;J[d+20>>2]=e;J[d+16>>2]=f;J[d+12>>2]=d+16;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=169776;J[195395]=0;e=ca(781,d+12|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;if(!e)break f;a=J[a+16>>2];a=a?a+f|0:169776;J[m+ -20>>2]=a;if((a|0)!=169776){J[195395]=0;c=sh(a,b);a=J[195395];J[195395]=0;if((a|0)==1)break b;if(!c)break f}h=h+1|0;if(h>>>0>2])continue;break}break c}if(J[b+152>>2]!=-1)break c}p:{if(!J[b+212>>2]){a=J[42449];J[194124]=J[42448];J[194125]=a;a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;m=776480;break p}m=J[b+216>>2]}a=m;g=J[b+184>>2]+j|0;if(M[b+12>>2]>2]>>>0)break f;e=J[b+188>>2];if(e>>>0>J[b+8>>2]-g>>>0)break f;c=J[b+16>>2]-e|0;J[b+16>>2]=c;if((c| -0)<=0)break f;H[d+4184|0]=0;Nb(d+4188|0,0,4108);J[d+4176>>2]=0;J[d+4172>>2]=e;J[d+4168>>2]=g;J[d+16>>2]=d+4168;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=169776;J[195395]=0;e=ca(781,d+16|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;if(!e)break f;a=J[a+16>>2];a=a?a+g|0:169776;J[m+20>>2]=a;if((a|0)!=169776){J[195395]=0;c=sh(a,b);a=J[195395];J[195395]=0;if((a|0)==1)break b;if(!c)break f}break c}J[195395]=0;ea(704,b|0);a=J[195395];J[195395]=0;if((a|0)!=1)break c}break b}xb= -d+8304|0;break a}e=Z()|0;if(J[l>>2]){g=J[l+4>>2];if(g){a=J[l+8>>2]+P(g,24)|0;while(1){c=a-24|0;if(J[c+4>>2]){J[c+8>>2]=0;Kb(J[c+12>>2])}a=a-24|0;J[a+8>>2]=0;J[c+4>>2]=0;J[a+12>>2]=0;a=c;g=g-1|0;if(g)continue;break}}J[l+4>>2]=0;Kb(J[l+8>>2])}J[l+8>>2]=0;J[l>>2]=0;J[l+4>>2]=0;if(J[i>>2]){f=J[i+4>>2];if(f){a=J[i+8>>2]+(f<<5)|0;while(1){c=a-32|0;if(J[c+4>>2]){J[c+8>>2]=0;Kb(J[c+12>>2])}a=a-32|0;J[a+8>>2]=0;J[c+4>>2]=0;J[a+12>>2]=0;a=c;f=f-1|0;if(f)continue;break}}J[i+4>>2]=0;Kb(J[i+8>>2])}J[i+8>>2]=0; -J[i>>2]=0;J[i+4>>2]=0;if(J[b+96>>2]){J[b+100>>2]=0;Kb(J[b+104>>2])}J[b+104>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;ed(b);ba(e|0);B()}J[b+228>>2]=0}return b|0}function R2(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;e=xb-304|0;xb=e;h=J[b>>2];n=J[b+4>>2];o=J[b+8>>2];p=J[b+12>>2];j=we(h,n,o,p,J[c>>2],J[c+4>>2]);k=we(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2],J[d>>2],J[d+4>>2]);c=J[a+80>>2];a:{if(!c)break a;if(!(O[(Ab[J[J[c>>2]+72>>2]](c,2)|0)+24>>3]<0))break a; -k=-k;j=-j}c=J[b>>2];d=J[b+8>>2];j=j*-.017453292519943295;g=Fe(j);l=e+272|0;q=J[b+4>>2];f=+(J[b+12>>2]-q|0);i=+(d-c|0);m=i*.5;g=Pi(ue(j)/f*.5,g/i*.5);i=m*Fe(g)+(m+ +(c|0));b:{if(R(i)<2147483648){b=~~i;break b}b=-2147483648}ff(l,+(b|0),-1);J[195395]=0;b=aa(1954,l|0,0,398272)|0;d=J[195395];J[195395]=0;f=f*.5;f=f+ +(q|0)-f*ue(g);c:{if(R(f)<2147483648){c=~~f;break c}c=-2147483648}f=k*3.141592653589793/180;m=ue(f);u=Fe(f);d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{if((d| -0)!=1){d=e- -64|0;J[d>>2]=J[b+8>>2];l=J[b+4>>2];J[e+56>>2]=J[b>>2];J[e+60>>2]=l;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+56|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break V;J[e+16>>2]=J[d>>2];J[d>>2]=0;b=J[e+60>>2];J[e+8>>2]=J[e+56>>2];J[e+12>>2]=b;J[e+56>>2]=0;J[e+60>>2]=0;J[195395]=0;b=e+256|0;da(1863,b|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break U;J[195395]=0;d=b;b=K[e+267|0];c=b<<24>>24<0;b=aa(1864,e+8|0,(c?J[e+256>>2]:d)|0,(c?J[e+260>>2]:b)|0)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break T;f=+(h|0);g=+(o|0);c=f>g;i=c?f:g;J[e+296>>2]=J[b+8>>2];d=J[b+4>>2];J[e+288>>2]=J[b>>2];J[e+292>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[e+267|0]<0)Kb(J[e+256>>2]);if(H[e+19|0]<0)Kb(J[e+8>>2]);if(H[e+67|0]<0)Kb(J[e+56>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);J[195395]=0;b=e+116|0;r=c?g:f;s=R(i-r)*.5;da(1863,b|0,+s,-1);c=J[195395];J[195395]=0;if((c|0)==1)break P;J[195395]=0;b=aa(1954,b|0,0,398444)|0;c=J[195395];J[195395]=0;if((c|0)==1)break O;J[e+136>>2]=J[b+8>>2];c=J[b+4>>2];J[e+ -128>>2]=J[b>>2];J[e+132>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+128|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break N;J[e+152>>2]=J[e+136>>2];J[e+136>>2]=0;b=J[e+132>>2];J[e+144>>2]=J[e+128>>2];J[e+148>>2]=b;J[e+128>>2]=0;J[e+132>>2]=0;J[195395]=0;f=+(n|0);g=+(p|0);b=f>g;c=e+104|0;t=b?f:g;f=b?g:f;g=R(t-f)*.5;da(1863,c|0,+g,-1);b=J[195395];J[195395]=0;if((b|0)==1)break M;J[195395]=0;d=c;b=K[e+115|0];c=b<<24>>24<0;b=aa(1864,e+144|0,(c?J[e+104>>2]:d)|0,(c?J[e+108>>2]:b)|0)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break L;J[e+168>>2]=J[b+8>>2];c=J[b+4>>2];J[e+160>>2]=J[b>>2];J[e+164>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+160|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break K;J[e+184>>2]=J[e+168>>2];J[e+168>>2]=0;b=J[e+164>>2];J[e+176>>2]=J[e+160>>2];J[e+180>>2]=b;J[e+160>>2]=0;J[e+164>>2]=0;J[195395]=0;b=ca(1858,e+176|0,398632)|0;c=J[195395];J[195395]=0;if((c|0)==1)break J;J[e+200>>2]=J[b+8>>2];c=J[b+4>>2];J[e+192>>2]=J[b>>2];J[e+196>>2]=c;J[b>>2]=0;J[b+4>>2]=0; -J[b+8>>2]=0;J[195395]=0;k=R(k-j);b=ca(1858,e+192|0,(k<=180?398824:398984)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break I;J[e+216>>2]=J[b+8>>2];c=J[b+4>>2];J[e+208>>2]=J[b>>2];J[e+212>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+208|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break H;J[e+232>>2]=J[e+216>>2];J[e+216>>2]=0;b=J[e+212>>2];J[e+224>>2]=J[e+208>>2];J[e+228>>2]=b;J[e+208>>2]=0;J[e+212>>2]=0;J[195395]=0;b=ca(1858,e+224|0,(k<=180?398984:398824)|0)|0;c=J[195395];J[195395]=0;if((c| -0)==1)break G;J[e+248>>2]=J[b+8>>2];c=J[b+4>>2];J[e+240>>2]=J[b>>2];J[e+244>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break F;J[e+264>>2]=J[e+248>>2];J[e+248>>2]=0;b=J[e+244>>2];J[e+256>>2]=J[e+240>>2];J[e+260>>2]=b;J[e+240>>2]=0;J[e+244>>2]=0;J[195395]=0;b=e+92|0;da(1863,b|0,+(s*u+(i+r)*.5),-1);c=J[195395];J[195395]=0;if((c|0)==1)break E;J[195395]=0;d=b;b=K[e+103|0];c=b<<24>>24<0;b=aa(1864,e+256|0,(c?J[e+92>>2]:d)|0,(c?J[e+96>>2]:b)| -0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break D;J[e+280>>2]=J[b+8>>2];c=J[b+4>>2];J[e+272>>2]=J[b>>2];J[e+276>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+272|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break C;J[e- -64>>2]=J[e+280>>2];J[e+280>>2]=0;b=J[e+276>>2];J[e+56>>2]=J[e+272>>2];J[e+60>>2]=b;J[e+272>>2]=0;J[e+276>>2]=0;J[195395]=0;b=e+80|0;da(1863,b|0,+(g*m+(t+f)*.5),-1);c=J[195395];J[195395]=0;if((c|0)==1)break B;J[195395]=0;d=b;b=K[e+91|0];c=b<<24>>24<0;b=aa(1864,e+56|0,(c? -J[e+80>>2]:d)|0,(c?J[e+84>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break A;J[e+16>>2]=J[b+8>>2];c=J[b+4>>2];J[e+8>>2]=J[b>>2];J[e+12>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[e+19|0];c=b<<24>>24<0;aa(1864,e+288|0,(c?J[e+8>>2]:e+8|0)|0,(c?J[e+12>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break z;if(H[e+19|0]<0)Kb(J[e+8>>2]);if(H[e+91|0]<0)Kb(J[e+80>>2]);if(H[e+67|0]<0)Kb(J[e+56>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+103|0]<0)Kb(J[e+92>>2]);if(H[e+267|0]<0)Kb(J[e+256>> -2]);if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+235|0]<0)Kb(J[e+224>>2]);if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+115|0]<0)Kb(J[e+104>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);if(H[e+139|0]<0)Kb(J[e+128>>2]);if(H[e+127|0]<0)Kb(J[e+116>>2]);J[195395]=0;b=aa(1962,e+56|0,397860,e+288|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break j;J[e+280>>2]=0;J[e+272>>2]=0;J[e+276>>2]=0;J[195395]=0;H[e+12|0]=0;J[e+8>>2]=e+272;c=_(1078, -24)|0;d=J[195395];J[195395]=0;W:{X:{if((d|0)!=1){J[e+276>>2]=c;J[e+272>>2]=c;J[195395]=0;J[e+280>>2]=c+24;d=ha(1957,e+280|0,b|0,b+24|0,c|0)|0;h=J[195395];J[195395]=0;if((h|0)!=1)break W;a=Z()|0;J[e+276>>2]=c;break X}a=Z()|0}Kc(e+8|0);Vb(b);break e}J[e+276>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);c=a+8|0;if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;d=e+272|0;$(1963,c|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break g;J[195395]=0;$(1964,c|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break g;b=J[a+80>>2];h=J[J[b>> -2]+108>>2];J[195395]=0;b=_(h|0,b|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break g;if((b|0)!=1)break i;J[195395]=0;b=e+8|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;h=J[195395];J[195395]=0;Y:{if((h|0)==1)break Y;a=J[a+80>>2];h=J[J[a>>2]+72>>2];J[195395]=0;a=ca(h|0,a|0,2)|0;h=J[195395];J[195395]=0;if((h|0)==1)break Y;J[195395]=0;Rd(b,a);a=J[195395];J[195395]=0;if((a|0)==1)break Y; -O[b+24>>3]=-O[b+24>>3];J[195395]=0;fa(1960,c|0,d|0,b|0);a=J[195395];J[195395]=0;if((a|0)!=1)break h}a=Z()|0;break f}a=Z()|0;break Q}a=Z()|0;break R}a=Z()|0;break S}a=Z()|0;if(H[e+267|0]>=0)break S;Kb(J[e+256>>2])}if(H[e+19|0]>=0)break R;Kb(J[e+8>>2])}if(H[e+67|0]>=0)break Q;Kb(J[e+56>>2])}if(H[e+283|0]>=0)break d;Kb(J[e+272>>2]);ba(a|0);B()}a=Z()|0;break e}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a= -Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;break w}a=Z()|0;break x}a=Z()|0;break y}a=Z()|0;if(H[e+19|0]>=0)break y;Kb(J[e+8>>2])}if(H[e+91|0]>=0)break x;Kb(J[e+80>>2])}if(H[e+67|0]>=0)break w;Kb(J[e+56>>2])}if(H[e+283|0]>=0)break v;Kb(J[e+272>>2])}if(H[e+103|0]>=0)break u;Kb(J[e+92>>2])}if(H[e+267|0]>=0)break t;Kb(J[e+256>>2])}if(H[e+251|0]>=0)break s;Kb(J[e+240>>2])}if(H[e+235|0]>=0)break r;Kb(J[e+224>>2])}if(H[e+219|0]>=0)break q;Kb(J[e+208>>2])}if(H[e+203|0]>=0)break p;Kb(J[e+192>>2])}if(H[e+ -187|0]>=0)break o;Kb(J[e+176>>2])}if(H[e+171|0]>=0)break n;Kb(J[e+160>>2])}if(H[e+115|0]>=0)break m;Kb(J[e+104>>2])}if(H[e+155|0]>=0)break l;Kb(J[e+144>>2])}if(H[e+139|0]>=0)break k;Kb(J[e+128>>2])}if(H[e+127|0]>=0)break e;Kb(J[e+116>>2]);break e}a=Z()|0;break e}J[195395]=0;fa(1960,c|0,e+272|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break g}J[195395]=0;ea(1958,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break g;J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;Z:{if((b|0)!=1){J[e+256>>2]=a;J[e+260>> -2]=4;J[e+264>>2]=-2147483640;b=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=b;b=J[99523];J[a>>2]=J[99522];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[e+240>>2]=0;H[e+251|0]=0;ia(1961,c|0,e+256|0,e+272|0,e+240|0);a=J[195395];J[195395]=0;if((a|0)==1)break Z;if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);a=J[e+272>>2];if(a){b=J[e+276>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((a|0)!=(b|0))continue;break}c=J[e+272>>2]}J[e+276>>2]=a; -Kb(c)}if(H[e+299|0]<0)Kb(J[e+288>>2]);xb=e+304|0;return}a=Z()|0;break f}a=Z()|0;if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+267|0]>=0)break f;Kb(J[e+256>>2]);break f}a=Z()|0}Hc(e+272|0)}if(H[e+299|0]>=0)break d;Kb(J[e+288>>2])}ba(a|0);B()}function jP(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;g=xb-144|0;xb=g;e=I[b+2>>1];if(!(!e|!L[b>>1])){Nb(g+12|0,0,128);t=J[c>>2];J[g+28>>2]=t;i=e;e=g+140|0;v=g,w=Tb(t,40,0,i,0,e),J[v+20>>2]=w;l=J[g+ -140>>2];a:{if(l)break a;f=Tb(t,8,0,I[b>>1],0,e);J[g+24>>2]=f;l=J[g+140>>2];if(l)break a;q=I[b+2>>1];J[g+12>>2]=q;m=I[b>>1];J[g+16>>2]=m;o=J[g+20>>2];if(m){r=J[b+12>>2];l=0;while(1){u=I[r+(l<<1)>>1];n=o+P(j,40)|0;J[f>>2]=n;p=u+1|0;h=p-j|0;J[f+4>>2]=h;if(h){J[n>>2]=o+P(u,40);J[n+8>>2]=f;i=n;b:{if((h|0)==1)break b;k=0;e=i;s=u-j&3;if(s)while(1){J[e+48>>2]=f;i=e+40|0;J[e+4>>2]=i;J[e+40>>2]=e;h=h-1|0;e=i;k=k+1|0;if((s|0)!=(k|0))continue;break}if((j^-1)+u>>>0<3)break b;while(1){J[e+48>>2]=f;i=e+40|0;J[e+ -4>>2]=i;J[e+88>>2]=f;J[e+80>>2]=i;i=e+80|0;J[e+44>>2]=i;J[e+128>>2]=f;J[e+120>>2]=i;i=e+120|0;J[e+84>>2]=i;J[e+168>>2]=f;J[e+160>>2]=i;i=e+160|0;J[e+124>>2]=i;J[e+40>>2]=e;e=i;h=h-4|0;if(h>>>0>1)continue;break}}J[i+4>>2]=n}f=f+8|0;j=p;l=l+1|0;if((m|0)!=(l|0))continue;break}}c:{if(!q){J[g+36>>2]=c;J[g+32>>2]=b;break c}q=J[b+4>>2];f=0;e=o;while(1){n=(J[e+4>>2]-o|0)/40|0;i=(J[e>>2]-o|0)/40|0;if(!(H[J[b+8>>2]+f|0]&1))J[e+12>>2]=1;h=q+(f<<3)|0;k=J[h+4>>2];i=q+(i<<3)|0;r=k-J[i+4>>2]|0;j=r>>31;p=J[h>>2]; -s=p-J[i>>2]|0;i=s>>31;i=(i^s)-i|0;j=(j^r)-j|0;h=(s|0)>=0?2:-2;d:{if(i>>>0>P(j,12)>>>0)break d;h=4;if(j>>>0<=P(i,12)>>>0)break d;h=(r|0)>=0?-1:1}H[e+20|0]=h;i=q+(n<<3)|0;n=J[i+4>>2]-k|0;j=n>>31;k=J[i>>2]-p|0;i=k>>31;i=(i^k)-i|0;p=(j^n)-j|0;j=(k|0)>=0?2:-2;e:{if(i>>>0>P(p,12)>>>0)break e;j=4;if(p>>>0<=P(i,12)>>>0)break e;j=(n|0)>=0?-1:1}H[e+21|0]=j;i=J[e+12>>2];f:{g:{if(i&1)break g;if((h|0)!=(j|0))break f;if((j|0)!=4)break g;if(!tF(s,r,k,n))break f;i=J[e+12>>2]}J[e+12>>2]=i|2}e=e+40|0;f=f+1|0;i=J[g+ -12>>2];if(f>>>0>>0)continue;break}J[g+36>>2]=c;J[g+32>>2]=b;if(!i)break c;f=J[b+4>>2];e=J[g+20>>2];b=i&3;h:{if(!b){h=i;break h}k=0;h=i;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];J[e+32>>2]=J[f+4>>2];f=f+8|0;e=e+40|0;h=h-1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}}if(i>>>0<4)break c;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];b=J[f+4>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=b;J[e+68>>2]=J[f+8>>2];b=J[f+12>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=b;J[e+108>>2]=J[f+16>>2]; -b=J[f+20>>2];J[e+144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=b;J[e+148>>2]=J[f+24>>2];J[e+152>>2]=J[f+28>>2];f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}}if(J[g+16>>2]){m=0;while(1){b=J[g+24>>2]+(m<<3)|0;i:{if(M[b+4>>2]<4)break i;b=J[b>>2];e=b;while(1){e=J[e+4>>2];if((b|0)==(e|0))break i;f=J[e+28>>2];j=J[b+28>>2];h=J[b+32>>2];i=J[e+32>>2];if((f|0)==(j|0)&(h|0)==(i|0))continue;break}n=i-h|0;k=f-j|0;j=b;while(1){p=j;j=J[j>>2];if((b|0)==(j|0))break i;f=J[p+28>>2]-J[j+28>>2]|0;h=J[p+32>>2]-J[j+32>>2]|0;if(!(f| -h))continue;i=uF(k,n,f,h);if(!i)continue;break}b=p;while(1){q=i;r=h;s=f;l=b;j=0;while(1){i=J[e+32>>2];k=J[e+28>>2];while(1){b=e;e=J[e+4>>2];o=J[e+32>>2];h=o-i|0;n=J[e+28>>2];f=n-k|0;j=(e|0)==(p|0)?1:j;i=o;k=n;if(!(f|h))continue;break}i=uF(s,r,f,h);if(!i)continue;break}if((i^q)<0){while(1){J[l+12>>2]=J[l+12>>2]|4;l=J[l+4>>2];if((l|0)!=(b|0))continue;break}J[b+12>>2]=J[b+12>>2]|4}if(!j)continue;break}}m=m+1|0;if(m>>>0>2])continue;break}}l=kw(g+40|0,a+16|0,a+28|0,t);J[g+140>>2]=l;if(l)break a; -l=kw(g+80|0,a+52|0,a- -64|0,t);if(l)break a;a=J[g+36>>2];n=J[a+200>>2];p=c+416|0;q=J[a+404>>2];i=Rb(J[p>>2],q);a=i+32&-64;r=!a|(a|0)==(i|0);if(!r){e=hc(q,a,i);xp(J[g+36>>2],(a|0)<(i|0)?n+((n|0)/-50|0)|0:n,e,0,0)}I[g+132>>1]=257;H[g+136|0]=(d|0)!=1;H[g+135|0]=(d|0)==2|(d|0)==4;H[g+134|0]=(d&-2)==2;s=c+932|0;l=1;i=0;while(1){j=J[g+12>>2];j:{if(!j)break j;f=J[J[g+32>>2]+4>>2];e=J[g+20>>2];if(!(l&1)){k=0;h=j;a=h&3;if(a)while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f+4>>2];J[e+32>>2]=J[f>>2];f=f+8|0; -e=e+40|0;h=h-1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}if(j>>>0<4)break j;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f+4>>2];a=J[f>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=a;J[e+68>>2]=J[f+12>>2];a=J[f+8>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=a;J[e+108>>2]=J[f+20>>2];a=J[f+16>>2];J[e+144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=a;J[e+148>>2]=J[f+28>>2];J[e+152>>2]=J[f+24>>2];f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}break j}k=0;h=j;a=h&3;if(a)while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>> -2];J[e+32>>2]=J[f+4>>2];f=f+8|0;e=e+40|0;h=h-1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}if(j>>>0<4)break j;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];a=J[f+4>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=a;J[e+68>>2]=J[f+8>>2];a=J[f+12>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=a;J[e+108>>2]=J[f+16>>2];a=J[f+20>>2];J[e+144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=a;J[e+148>>2]=J[f+24>>2];J[e+152>>2]=J[f+28>>2];f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}}o=J[g+16>>2];k:{if(!o){d=0;break k}b=0;k= -J[g+24>>2];while(1){l:{a=k+(b<<3)|0;if(!J[a+4>>2])break l;a=J[a>>2];f=a;while(1){f=J[f>>2];if((a|0)==(f|0)){d=b+1|0;break k}if(J[f+28>>2]==J[a+28>>2])continue;break}a=J[f+4>>2];e=a;while(1){h=e;while(1){e=J[e+4>>2];if((a|0)==(e|0))break l;d=J[e+28>>2];m=J[h+28>>2];if((d|0)==(m|0))continue;break}m:{n:{if((m|0)>J[f+28>>2]){if((d|0)<(m|0))break n;break m}if((d|0)<=(m|0))break m}while(1){J[h+16>>2]=J[h+16>>2]|64;h=J[h+4>>2];if((h|0)!=(e|0))continue;break}}f=J[e>>2];continue}}d=0;b=b+1|0;if((o|0)!=(b| -0))continue;break}}while(1){if(d>>>0>>0){e=J[g+20>>2];b=P(d,40);a=e+b|0;h=J[a+16>>2];o:{if(!(h&64))break o;b=b+e|0;e=a;while(1){e=J[e>>2];if((a|0)==(e|0))break o;f=J[e+32>>2];k=J[b+32>>2];if((f|0)==(k|0))continue;break}e=a;while(1){e=J[e+4>>2];if((a|0)==(e|0))break o;b=J[e+32>>2];if((b|0)==(k|0))continue;break}p:{if((f|0)<(k|0)){e=128;if((b|0)>(k|0))break p}if((f|0)<=(k|0))break o;e=256;if((b|0)>=(k|0))break o}J[a+16>>2]=e|h}d=d+1|0;continue}break}h=J[g+36>>2];o=(g+12|0)+P(i,40)|0;m=o+28|0;f=J[m>> -2];if(f){e=J[m+8>>2];while(1){jw(e,h,i,g+12|0);e=e+28|0;f=f-1|0;if(f)continue;break}h=J[g+36>>2]}a=J[o+60>>2];e=J[a+8>>2];k=J[a>>2];a=dc(32,J[(P(i,204)+h|0)+200>>2]);j=(a|0)>=30?30:a;h=l&1?1:2;q:{r:{s:{if(k>>>0>=2){b=J[g+12>>2];if(!b){a=0;break q}a=J[e+12>>2];f=a>>>0>>0?a:b;while(1){b=J[e+28>>2];a=J[g+12>>2];a=a>>>0>b>>>0?b:a;if(a>>>0>f>>>0){b=J[g+20>>2];iw(m,J[e+16>>2],J[e+24>>2]);hw(J[m+4>>2],J[m+12>>2],b+P(f,40)|0,a-f|0,j,h)}e=e+16|0;f=a;k=k-1|0;if(k>>>0>1)continue;break}break s}if((k|0)!=1)break r}d= -J[g+20>>2];b=J[g+12>>2];a=J[J[o+60>>2]+8>>2];iw(m,J[a>>2],J[a+8>>2]);hw(J[m+4>>2],J[m+12>>2],d,b,j,h)}a=J[g+12>>2];if(!a){a=0;break q}e=J[g+20>>2];if(a&1){t:{if(!J[e+24>>2])break t;b=J[e+16>>2];if(b&16)break t;J[e+16>>2]=b|16}e=e+40|0;f=a-1|0}else f=a;if((a|0)==1)break q;while(1){u:{if(!J[e+24>>2])break u;b=J[e+16>>2];if(b&16)break u;J[e+16>>2]=b|16}v:{if(!J[e- -64>>2])break v;b=J[e+56>>2];if(b&16)break v;J[e+56>>2]=b|16}e=e+80|0;f=f-2|0;if(f)continue;break}}w:{if(!(i&1)){a=g+12|0;gw(a,0);fw(a,0); -ew(a,0);h=J[g+12>>2];if(!h)break w;a=J[g+32>>2];d=J[a+8>>2];b=J[a+4>>2];f=0;e=J[g+20>>2];while(1){J[b+(f<<3)>>2]=J[e+36>>2];if(K[e+16|0]&16){a=d+f|0;H[a|0]=K[a|0]|32;h=J[g+12>>2]}e=e+40|0;f=f+1|0;if(h>>>0>f>>>0)continue;break}break w}if(a){h=J[g+20>>2];while(1){b=K[h+20|0];x:{y:{if((b|0)==2|(b|0)==254)break y;b=K[h+21|0];if((b|0)==254)break y;if((b|0)!=2)break x}j=J[h+16>>2];if(j&16)break x;o=J[h+28>>2];i=J[c+412>>2];z:{if(!i)break z;f=J[c+2488>>2];d=0-f|0;e=p;while(1){b=o-J[e+12>>2]|0;if((b|0)<(d| -0))break z;if(!(!K[c+2492|0]&(b|0)>J[c+2484>>2]|(o|0)>(f+J[e+8>>2]|0))){b=J[e+24>>2];j=j|48;J[h+16>>2]=j;J[h+36>>2]=b}e=e+32|0;i=i-1|0;if(i)continue;break}}i=J[c+928>>2];if(!i)break x;f=J[c+2488>>2];e=0-f|0;k=s+(i<<5)|0;while(1){b=k;k=b-32|0;d=J[k+8>>2]-o|0;if((d|0)<(e|0))break x;if(!(!K[c+2492|0]&(d|0)>=J[c+2484>>2]|(o|0)<(J[b-20>>2]-f|0))){b=J[b-4>>2];j=j|48;J[h+16>>2]=j;J[h+36>>2]=b}i=i-1|0;if(i)continue;break}}h=h+40|0;a=a-1|0;if(a)continue;break}}a=g+12|0;gw(a,1);fw(a,1);ew(a,1);h=J[g+12>>2]; -if(!h)break w;a=J[g+32>>2];d=J[a+8>>2];b=J[a+4>>2];f=0;e=J[g+20>>2];while(1){J[(b+(f<<3)|0)+4>>2]=J[e+36>>2];if(K[e+16|0]&16){a=d+f|0;H[a|0]=K[a|0]|64;h=J[g+12>>2]}e=e+40|0;f=f+1|0;if(h>>>0>f>>>0)continue;break}}if(!r)xp(J[g+36>>2],n,q,0,0);i=1;a=l&1;l=0;if(a)continue;break}}b=J[g+28>>2];a=J[g+104>>2];if(a)Ab[J[b+8>>2]](b,a);J[g+108>>2]=0;J[g+100>>2]=0;J[g+104>>2]=0;a=J[g+92>>2];if(a)Ab[J[b+8>>2]](b,a);J[g+92>>2]=0;a=J[g+88>>2];if(a)Ab[J[b+8>>2]](b,a);J[g+88>>2]=0;J[g+96>>2]=0;J[g+80>>2]=0;J[g+84>> -2]=0;a=J[g- -64>>2];if(a)Ab[J[b+8>>2]](b,a);J[g+68>>2]=0;J[g+60>>2]=0;J[g+64>>2]=0;a=J[g+52>>2];if(a)Ab[J[b+8>>2]](b,a);J[g+52>>2]=0;a=J[g+48>>2];if(a)Ab[J[b+8>>2]](b,a);J[g+48>>2]=0;J[g+56>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;a=J[g+20>>2];if(a)Ab[J[b+8>>2]](b,a);J[g+20>>2]=0;a=J[g+24>>2];if(a)Ab[J[b+8>>2]](b,a)}xb=g+144|0;return l|0}function Gma(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0, -E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;j=xb-160|0;xb=j;a:{if(!Ts(a,b,4,c,1))break a;u=lj(b);J[j+88>>2]=J[d+8>>2];c=J[d+4>>2];J[j+80>>2]=J[d>>2];J[j+84>>2]=c;J[j+104>>2]=J[e+8>>2];c=J[e+4>>2];J[j+96>>2]=J[e>>2];J[j+100>>2]=c;J[j+120>>2]=J[f+8>>2];c=J[f+4>>2];J[j+112>>2]=J[f>>2];J[j+116>>2]=c;J[j+136>>2]=J[g+8>>2];c=J[g+4>>2];J[j+128>>2]=J[g>>2];J[j+132>>2]=c;J[j+152>>2]=J[h+8>>2];c=J[h+4>>2];J[j+144>>2]=J[h>>2];J[j+148>>2]=c;b:{if(J[b+24>>2])break b;h=u+2|0;d=J[b+4>>2];c=h-d|0;if(!((c| -0)>=0&(c|0)<=(J[b+8>>2]-d|0))){J[b+24>>2]=4;break b}if((d|0)!=(h|0)){Nb(d,0,c);h=J[b+4>>2]}J[b+4>>2]=c+h;if(!h)break b;H[u|0]=0;H[u+1|0]=1;J[j+72>>2]=J[j+88>>2];J[j+56>>2]=J[j+104>>2];J[j+40>>2]=J[j+120>>2];J[j+24>>2]=J[j+136>>2];J[j+8>>2]=J[j+152>>2];c=J[j+84>>2];J[j+64>>2]=J[j+80>>2];J[j+68>>2]=c;c=J[j+100>>2];J[j+48>>2]=J[j+96>>2];J[j+52>>2]=c;c=J[j+116>>2];J[j+32>>2]=J[j+112>>2];J[j+36>>2]=c;c=J[j+132>>2];J[j+16>>2]=J[j+128>>2];J[j+20>>2]=c;c=J[j+148>>2];J[j>>2]=J[j+144>>2];J[j+4>>2]=c;B=j- -64| -0;g=0;l=xb-80|0;xb=l;c:{if(J[b+24>>2])break c;c=u+6|0;f=J[b+4>>2];e=c-f|0;if(!((e|0)>=0&(e|0)<=(J[b+8>>2]-f|0))){J[b+24>>2]=4;break c}d=c;if((c|0)!=(f|0)){Nb(f,0,e);d=J[b+4>>2]}f=d+e|0;J[b+4>>2]=f;if(J[b+24>>2]|!d)break c;d=c-f|0;if(!((d|0)>=0&(d|0)<=(J[b+8>>2]-f|0))){J[b+24>>2]=4;break c}e=J[B+4>>2];if((c|0)!=(f|0)){Nb(f,0,d);c=J[b+4>>2]}J[b+4>>2]=c+d;if(!c)break c;C=u+4|0;c=e<<8|(e&65280)>>>8;H[C|0]=c;H[C+1|0]=c>>>8;c=J[b+24>>2];if(e>>>0>=65536){J[b+24>>2]=c|16;break c}if(c)break c;c=((e<<1&131070)+ -C|0)+2|0;e=J[b+4>>2];d=c-e|0;if(!((d|0)>=0&(d|0)<=(J[b+8>>2]-e|0))){J[b+24>>2]=4;break c}if((c|0)!=(e|0)){Nb(e,0,d);c=J[b+4>>2]}J[b+4>>2]=c+d;if(!c)break c;d:{G=J[B+4>>2];if(G){h=J[j+20>>2];v=J[j+36>>2];O=L[84888];Q=J[j+48>>2];R=J[j+52>>2];d=J[j+32>>2];E=J[j+16>>2];while(1){D=J[(g>>>0>=R>>>0?169776:(g<<2)+Q|0)>>2];c=K[C|0]|K[C+1|0]<<8;e:{if(((c<<8|c>>>8)&65535)>>>0<=g>>>0){I[388240]=O;r=776480;break e}r=((g<<1)+u|0)+6|0}J[l+76>>2]=0;J[l+68>>2]=d;M=v>>>0>>0;J[l+72>>2]=M?v:D;c=l- -64|0;J[c>>2]=0; -F=h>>>0>>0?h:D;J[l+60>>2]=F;J[l+56>>2]=E;H[r|0]=0;H[r+1|0]=0;x=lj(b);J[l+48>>2]=J[l+76>>2];J[l+32>>2]=J[c>>2];c=J[l+72>>2];J[l+40>>2]=J[l+68>>2];J[l+44>>2]=c;c=J[l+60>>2];J[l+24>>2]=J[l+56>>2];J[l+28>>2]=c;p=0;s=xb-32|0;xb=s;f:{if(J[b+24>>2])break f;f=x+2|0;i=J[b+4>>2];e=f-i|0;if(!((e|0)>=0&(e|0)<=(J[b+8>>2]-i|0))){J[b+24>>2]=4;break f}c=f;if((i|0)!=(c|0)){Nb(i,0,e);c=J[b+4>>2]}e=c+e|0;J[b+4>>2]=e;if(J[b+24>>2]|!c)break f;c=f-e|0;if(!((c|0)>=0&(c|0)<=(J[b+8>>2]-e|0))){J[b+24>>2]=4;break f}y=J[l+ -44>>2];if((e|0)!=(f|0)){Nb(e,0,c);f=J[b+4>>2]}J[b+4>>2]=c+f;if(!f)break f;c=y<<8|(y&65280)>>>8;H[x|0]=c;H[x+1|0]=c>>>8;c=J[b+24>>2];if(y>>>0>=65536){J[b+24>>2]=c|16;break f}if(c)break f;f=(x+(y<<1&131070)|0)+2|0;e=J[b+4>>2];c=f-e|0;if(!((c|0)>=0&(c|0)<=(J[b+8>>2]-e|0))){J[b+24>>2]=4;break f}if((e|0)!=(f|0)){Nb(e,0,c);f=J[b+4>>2]}J[b+4>>2]=c+f;if(!f)break f;if(!y){p=1;break f}S=J[l+40>>2];T=L[84888];U=J[l+24>>2];V=J[l+28>>2];f=0;while(1){c=J[(f>>>0>=V>>>0?169776:(f<<2)+U|0)>>2];o=((c|0)<=1?1:c)-1| -0;c=K[x|0]|K[x+1|0]<<8;g:{if(((c<<8|c>>>8)&65535)>>>0<=f>>>0){I[388240]=T;q=776480;break g}q=(x+(f<<1)|0)+2|0}e=J[j+4>>2];c=J[j>>2];J[s+28>>2]=0;J[s+20>>2]=c;J[s+24>>2]=e>>>0>>0?e:o;H[q|0]=0;H[q+1|0]=0;z=lj(b);c=(f<<1)+S|0;e=K[c|0]|K[c+1|0]<<8;J[s+16>>2]=J[s+28>>2];c=J[s+24>>2];J[s+8>>2]=J[s+20>>2];J[s+12>>2]=c;t=0;h:{if(J[b+24>>2])break h;i=(e<<8|e>>>8)&65535;A=4;i:{c=z+4|0;n=J[b+4>>2];k=c-n|0;if((k|0)<0|(k|0)>(J[b+8>>2]-n|0))break i;e=c;if((c|0)!=(n|0)){Nb(n,0,k);e=J[b+4>>2]}J[b+4>>2]=e+k;j:{if(!e)break j; -e=i<<8|(i&65280)>>>8;H[z|0]=e;H[z+1|0]=e>>>8;if(J[b+24>>2])break j;k=J[b+4>>2];i=c-k|0;if((i|0)<0|(i|0)>(J[b+8>>2]-k|0))break i;e=J[s+12>>2];p=J[s+8>>2];if((c|0)!=(k|0)){Nb(k,0,i);c=J[b+4>>2]}J[b+4>>2]=c+i;if(!c)break j;i=z+2|0;k=e+1|0;c=k<<8|(k&65280)>>>8;H[i|0]=c;H[i+1|0]=c>>>8;c=J[b+24>>2];if(k>>>0>=65536){A=c|16;break i}if(c)break j;c=i+(k&65535?k<<1&131070:2)|0;i=J[b+4>>2];c=c-i|0;if((c|0)<0|(c|0)>(J[b+8>>2]-i|0))break i;J[b+4>>2]=c+i;if(!i)break h;t=1;if(!e)break j;m=e&1;c=0;if((e|0)!=1){w= -e&-2;N=z+4|0;A=0;while(1){n=c<<1;k=n+N|0;i=e?p:169776;i=K[i|0]|K[i+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;k=N+(n|2)|0;p=(((e|0)!=0)<<1)+p|0;n=e>>>0>1;i=n?p:169776;i=K[i|0]|K[i+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;k=e-2|0;i=e;e=k>>>0<=e>>>0?k:0;p=p+(n<<1)|0;c=c+2|0;A=A+2|0;if((w|0)!=(A|0))continue;break}p=i>>>0<3?169776:p}if(!m)break j;e=z+(c<<1)|0;c=K[p|0]|K[p+1|0]<<8;H[e+4|0]=c;H[e+5|0]=c>>>8}break h}J[b+24>>2]=A}if(t){yk(b,q,sj(b,1),0,0);c=J[j+4>>2];if(c>>>0>>0)o=c;J[j+4>>2]=c-o;J[j+8>>2]=J[j+8>>2]+o;p= -1;J[j>>2]=J[j>>2]+(o<<1);f=f+1|0;if((y|0)!=(f|0))continue;break f}break}kj(b);p=0}xb=s+32|0;if(!p)break d;yk(b,r,sj(b,1),0,0);c=M?v:D;v=v-c|0;d=(c<<1)+d|0;h=h-F|0;E=(F<<2)+E|0;g=g+1|0;if(G>>>0>g>>>0)continue;break}}g=0;H[u+2|0]=0;H[u+3|0]=0;e=lj(b);J[l+16>>2]=J[B+8>>2];c=J[B+4>>2];J[l+8>>2]=J[B>>2];J[l+12>>2]=c;m=0;n=0;i=0;v=0;w=xb-16|0;xb=w;k:{if(J[b+24>>2])break k;t=e+2|0;d=J[b+4>>2];c=t-d|0;if(!((c|0)>=0&(c|0)<=(J[b+8>>2]-d|0))){J[b+24>>2]=4;break k}f=t;if((d|0)!=(f|0)){Nb(d,0,c);f=J[b+4>>2]}J[b+ -4>>2]=c+f;if(!f)break k;d=J[l+8>>2];h=J[l+12>>2];if(h){o=h+2147483647|0;c=o&2147483647;l:{if(!c){f=-2;c=d;break l}r=c+1&-2;c=d;f=-2;while(1){q=K[c|0]|K[c+1|0]<<8;k=(q<<8|q>>>8)&65535;q=(f|0)!=-2?k>>>0>>0|m:m;n=((k|0)!=(f+1|0))+n|0;f=K[c+2|0]|K[c+3|0]<<8;f=(f<<8|f>>>8)&65535;n=n+((f|0)!=(k+1|0))|0;m=q|f>>>0>>0;c=c+4|0;v=v+2|0;if((r|0)!=(v|0))continue;break}}if(!(o&1)){c=K[c|0]|K[c+1|0]<<8;c=(c<<8|c>>>8)&65535;n=((c|0)!=(f+1|0))+n|0;m=(f|0)!=-2?c>>>0>>0|m:m}c=P(n,3)}else c=0;f=(c>>>0>>0| -m)&1;c=f?512:256;H[e|0]=c;H[e+1|0]=c>>>8;m:{if(!f){if(J[b+24>>2])break k;m=4;c=e+4|0;f=J[b+4>>2];e=c-f|0;if((e|0)<0|(e|0)>(J[b+8>>2]-f|0))break m;if((c|0)!=(f|0)){Nb(f,0,e);c=J[b+4>>2]}J[b+4>>2]=c+e;if(!c)break k;c=h<<8|(h&65280)>>>8;H[t|0]=c;H[t+1|0]=c>>>8;c=J[b+24>>2];if(h>>>0>=65536){m=c|16;break m}if(c)break k;e=J[b+4>>2];c=((t+(h<<1&131070)|0)-e|0)+2|0;if((c|0)<0|(c|0)>(J[b+8>>2]-e|0))break m;J[b+4>>2]=c+e;i=(e|0)!=0;if(!e|!h)break k;i=1;p=h&1;c=0;if((h|0)!=1){n=h&-2;f=0;while(1){k=t+2|0;o=c<< -1;r=k+o|0;e=h;q=e?d:169776;q=K[q|0]|K[q+1|0]<<8;H[r|0]=q;H[r+1|0]=q>>>8;o=k+(o|2)|0;r=(((e|0)!=0)<<1)+d|0;q=e>>>0>1;d=q?r:169776;d=K[d|0]|K[d+1|0]<<8;H[o|0]=d;H[o+1|0]=d>>>8;d=e-2|0;h=d>>>0<=e>>>0?d:0;d=r+(q<<1)|0;c=c+2|0;f=f+2|0;if((n|0)!=(f|0))continue;break}d=e>>>0<3?169776:d}if(!p)break k;e=t+(c<<1)|0;c=K[d|0]|K[d+1|0]<<8;H[e+2|0]=c;H[e+3|0]=c>>>8;break k}J[w+8>>2]=J[l+16>>2];c=J[l+12>>2];J[w>>2]=J[l+8>>2];J[w+4>>2]=c;m=0;h=0;t=0;i=0;n:{if(J[b+24>>2])break n;q=e;o:{f=e+4|0;e=J[b+4>>2];d=f-e|0; -if(!((d|0)>=0&(d|0)<=(J[b+8>>2]-e|0)))break o;c=f;if((e|0)!=(c|0)){Nb(e,0,d);c=J[b+4>>2]}p=c+d|0;J[b+4>>2]=p;i=0;if(!c)break n;e=J[w>>2];n=J[w+4>>2];p:{if(!n)break p;d=n-1&2147483647;c=d+1|0;k=c&3;o=0;q:{if(d>>>0<3){c=-2;d=e;break q}r=c&-4;c=-2;d=e;while(1){i=c+1|0;c=K[d|0]|K[d+1|0]<<8;c=(c<<8|c>>>8)&65535;i=((i|0)!=(c|0))+m|0;m=c+1|0;c=K[d+2|0]|K[d+3|0]<<8;c=(c<<8|c>>>8)&65535;m=i+((m|0)!=(c|0))|0;s=c+1|0;c=K[d+4|0]|K[d+5|0]<<8;i=(c<<8|c>>>8)&65535;c=K[d+6|0]|K[d+7|0]<<8;c=(c<<8|c>>>8)&65535;m=(m+ -((s|0)!=(i|0))|0)+((c|0)!=(i+1|0))|0;d=d+8|0;h=h+4|0;if((r|0)!=(h|0))continue;break}}if(!k)break p;while(1){h=c+1|0;c=K[d|0]|K[d+1|0]<<8;c=(c<<8|c>>>8)&65535;m=((h|0)!=(c|0))+m|0;d=d+2|0;o=o+1|0;if((k|0)!=(o|0))continue;break}}r:{if(J[b+24>>2])break r;d=f-p|0;if(!((d|0)>=0&(d|0)<=(J[b+8>>2]-p|0)))break o;c=f;if((p|0)!=(c|0)){Nb(p,0,d);c=J[b+4>>2]}J[b+4>>2]=c+d;if(!c)break r;o=q+2|0;c=m<<8|(m&65280)>>>8;H[o|0]=c;H[o+1|0]=c>>>8;c=J[b+24>>2];if(m>>>0>=65536){J[b+24>>2]=c|16;i=0;break n}if(c)break r; -d=(o+P(m,6)|0)+2|0;h=J[b+4>>2];c=d-h|0;if(!((c|0)>=0&(c|0)<=(J[b+8>>2]-h|0)))break o;if((d|0)!=(h|0)){Nb(h,0,c);d=J[b+4>>2]}J[b+4>>2]=c+d;i=0;if(!d)break n;t=1;if(!m|!n)break r;r=(n<<1)+e|0;c=-2;h=-1;n=0;m=0;while(1){i=c+1|0;k=K[e|0]|K[e+1|0]<<8;d=(k<<8|k>>>8)&65535;if((i|0)!=(d|0)){n=(c|0)==-2|d>>>0>=i>>>0?n:1;h=h+1|0;i=q+P(h,6)|0;c=m<<8|(m&65280)>>>8;H[i+8|0]=c;H[i+9|0]=c>>>8;H[i+4|0]=k;H[i+5|0]=k>>>8}c=q+P(h,6)|0;H[c+6|0]=k;H[c+7|0]=k>>>8;m=m+1|0;c=d;e=e+2|0;if((r|0)!=(e|0))continue;break}if(!n)break r; -c=K[o|0]|K[o+1|0]<<8;if(!c)break r;Ss(f,(c<<8|c>>>8)&65535,6,908)}i=t;break n}J[b+24>>2]=4;i=0}break k}J[b+24>>2]=m}xb=w+16|0;if(i){g=1;yk(b,u+2|0,sj(b,1),0,0);break c}kj(b);break c}kj(b);g=0}xb=l+80|0;if(!g)break b;W=1;s:{if(!(K[a+4|0]|K[a+5|0]<<8)){I[388240]=L[84888];a=776480;break s}a=a+6|0}yk(b,a,sj(b,1),0,0);break a}kj(b)}xb=j+160|0;return W|0}function Q2(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;e=xb-304|0;xb=e;k=J[b>>2];i=+(k|0);n=J[b+ -8>>2];j=+(n|0);f=i>j;g=f?i:j;h=f?j:i;q=k;f=J[b+4>>2];k=J[b+12>>2];i=we(q,f,n,k,J[c>>2],J[c+4>>2]);j=we(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2],J[d>>2],J[d+4>>2]);b=J[a+80>>2];a:{if(!b)break a;if(!(O[(Ab[J[J[b>>2]+72>>2]](b,2)|0)+24>>3]<0))break a;j=-j;i=-i}b=e+272|0;m=R(g-h)*.5;l=i*3.141592653589793/180;o=(g+h)*.5;ff(b,m*Fe(l)+o,-1);J[195395]=0;b=aa(1954,b|0,0,398272)|0;c=J[195395];J[195395]=0;g=j*3.141592653589793/180;r=ue(g);s=Fe(g);l=ue(l);b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{if((c| -0)!=1){c=e- -64|0;J[c>>2]=J[b+8>>2];d=J[b+4>>2];J[e+56>>2]=J[b>>2];J[e+60>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+56|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break T;J[e+16>>2]=J[c>>2];J[c>>2]=0;b=J[e+60>>2];J[e+8>>2]=J[e+56>>2];J[e+12>>2]=b;J[e+56>>2]=0;J[e+60>>2]=0;J[195395]=0;g=+(f|0);h=+(k|0);b=g>h;c=e+256|0;p=b?g:h;h=b?h:g;g=R(p-h)*.5;h=(p+h)*.5;da(1863,c|0,+(g*l+h),-1);b=J[195395];J[195395]=0;if((b|0)==1)break S;J[195395]=0;d=c;b=K[e+267|0];c=b<<24>>24<0;b=aa(1864,e+8| -0,(c?J[e+256>>2]:d)|0,(c?J[e+260>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break R;J[e+296>>2]=J[b+8>>2];c=J[b+4>>2];J[e+288>>2]=J[b>>2];J[e+292>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[e+267|0]<0)Kb(J[e+256>>2]);if(H[e+19|0]<0)Kb(J[e+8>>2]);if(H[e+67|0]<0)Kb(J[e+56>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);J[195395]=0;b=e+116|0;da(1863,b|0,+m,-1);c=J[195395];J[195395]=0;if((c|0)==1)break N;J[195395]=0;b=aa(1954,b|0,0,398444)|0;c=J[195395];J[195395]=0;if((c|0)==1)break M;J[e+136>>2]=J[b+8>>2]; -c=J[b+4>>2];J[e+128>>2]=J[b>>2];J[e+132>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+128|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break L;J[e+152>>2]=J[e+136>>2];J[e+136>>2]=0;b=J[e+132>>2];J[e+144>>2]=J[e+128>>2];J[e+148>>2]=b;J[e+128>>2]=0;J[e+132>>2]=0;J[195395]=0;b=e+104|0;da(1863,b|0,+g,-1);c=J[195395];J[195395]=0;if((c|0)==1)break K;J[195395]=0;d=b;b=K[e+115|0];c=b<<24>>24<0;b=aa(1864,e+144|0,(c?J[e+104>>2]:d)|0,(c?J[e+108>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break J; -J[e+168>>2]=J[b+8>>2];c=J[b+4>>2];J[e+160>>2]=J[b>>2];J[e+164>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+160|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break I;J[e+184>>2]=J[e+168>>2];J[e+168>>2]=0;b=J[e+164>>2];J[e+176>>2]=J[e+160>>2];J[e+180>>2]=b;J[e+160>>2]=0;J[e+164>>2]=0;J[195395]=0;b=ca(1858,e+176|0,398632)|0;c=J[195395];J[195395]=0;if((c|0)==1)break H;J[e+200>>2]=J[b+8>>2];c=J[b+4>>2];J[e+192>>2]=J[b>>2];J[e+196>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;i=R(j-i); -b=ca(1858,e+192|0,(i<=180?398824:398984)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break G;J[e+216>>2]=J[b+8>>2];c=J[b+4>>2];J[e+208>>2]=J[b>>2];J[e+212>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+208|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break F;J[e+232>>2]=J[e+216>>2];J[e+216>>2]=0;b=J[e+212>>2];J[e+224>>2]=J[e+208>>2];J[e+228>>2]=b;J[e+208>>2]=0;J[e+212>>2]=0;J[195395]=0;b=ca(1858,e+224|0,(i<=180?398984:398824)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break E;J[e+248>>2]=J[b+ -8>>2];c=J[b+4>>2];J[e+240>>2]=J[b>>2];J[e+244>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break D;J[e+264>>2]=J[e+248>>2];J[e+248>>2]=0;b=J[e+244>>2];J[e+256>>2]=J[e+240>>2];J[e+260>>2]=b;J[e+240>>2]=0;J[e+244>>2]=0;J[195395]=0;b=e+92|0;da(1863,b|0,+(m*s+o),-1);c=J[195395];J[195395]=0;if((c|0)==1)break C;J[195395]=0;d=b;b=K[e+103|0];c=b<<24>>24<0;b=aa(1864,e+256|0,(c?J[e+92>>2]:d)|0,(c?J[e+96>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c| -0)==1)break B;J[e+280>>2]=J[b+8>>2];c=J[b+4>>2];J[e+272>>2]=J[b>>2];J[e+276>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,e+272|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break A;J[e- -64>>2]=J[e+280>>2];J[e+280>>2]=0;b=J[e+276>>2];J[e+56>>2]=J[e+272>>2];J[e+60>>2]=b;J[e+272>>2]=0;J[e+276>>2]=0;J[195395]=0;b=e+80|0;da(1863,b|0,+(g*r+h),-1);c=J[195395];J[195395]=0;if((c|0)==1)break z;J[195395]=0;d=b;b=K[e+91|0];c=b<<24>>24<0;b=aa(1864,e+56|0,(c?J[e+80>>2]:d)|0,(c?J[e+84>>2]:b)|0)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break y;J[e+16>>2]=J[b+8>>2];c=J[b+4>>2];J[e+8>>2]=J[b>>2];J[e+12>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[e+19|0];c=b<<24>>24<0;aa(1864,e+288|0,(c?J[e+8>>2]:e+8|0)|0,(c?J[e+12>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break x;if(H[e+19|0]<0)Kb(J[e+8>>2]);if(H[e+91|0]<0)Kb(J[e+80>>2]);if(H[e+67|0]<0)Kb(J[e+56>>2]);if(H[e+283|0]<0)Kb(J[e+272>>2]);if(H[e+103|0]<0)Kb(J[e+92>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+235|0]< -0)Kb(J[e+224>>2]);if(H[e+219|0]<0)Kb(J[e+208>>2]);if(H[e+203|0]<0)Kb(J[e+192>>2]);if(H[e+187|0]<0)Kb(J[e+176>>2]);if(H[e+171|0]<0)Kb(J[e+160>>2]);if(H[e+115|0]<0)Kb(J[e+104>>2]);if(H[e+155|0]<0)Kb(J[e+144>>2]);if(H[e+139|0]<0)Kb(J[e+128>>2]);if(H[e+127|0]<0)Kb(J[e+116>>2]);J[195395]=0;b=aa(1962,e+56|0,397860,e+288|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break h;J[e+280>>2]=0;J[e+272>>2]=0;J[e+276>>2]=0;J[195395]=0;H[e+12|0]=0;J[e+8>>2]=e+272;c=_(1078,24)|0;d=J[195395];J[195395]=0;U:{V:{if((d|0)!= -1){J[e+276>>2]=c;J[e+272>>2]=c;J[195395]=0;J[e+280>>2]=c+24;d=ha(1957,e+280|0,b|0,b+24|0,c|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break U;a=Z()|0;J[e+276>>2]=c;break V}a=Z()|0}Kc(e+8|0);Vb(b);break c}J[e+276>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);c=a+8|0;if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;d=e+272|0;$(1963,c|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break e;J[195395]=0;$(1964,c|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break e;b=J[a+80>>2];f=J[J[b>>2]+108>>2];J[195395]=0;b=_(f|0,b|0)|0;f=J[195395]; -J[195395]=0;if((f|0)==1)break e;if((b|0)!=1)break g;J[195395]=0;b=e+8|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;f=J[195395];J[195395]=0;W:{if((f|0)==1)break W;a=J[a+80>>2];f=J[J[a>>2]+72>>2];J[195395]=0;a=ca(f|0,a|0,2)|0;f=J[195395];J[195395]=0;if((f|0)==1)break W;J[195395]=0;Rd(b,a);a=J[195395];J[195395]=0;if((a|0)==1)break W;O[b+24>>3]=-O[b+24>>3];J[195395]=0;fa(1960, -c|0,d|0,b|0);a=J[195395];J[195395]=0;if((a|0)!=1)break f}a=Z()|0;break d}a=Z()|0;break O}a=Z()|0;break P}a=Z()|0;break Q}a=Z()|0;if(H[e+267|0]>=0)break Q;Kb(J[e+256>>2])}if(H[e+19|0]>=0)break P;Kb(J[e+8>>2])}if(H[e+67|0]>=0)break O;Kb(J[e+56>>2])}if(H[e+283|0]>=0)break b;Kb(J[e+272>>2]);ba(a|0);B()}a=Z()|0;break c}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a= -Z()|0;break u}a=Z()|0;break v}a=Z()|0;break w}a=Z()|0;if(H[e+19|0]>=0)break w;Kb(J[e+8>>2])}if(H[e+91|0]>=0)break v;Kb(J[e+80>>2])}if(H[e+67|0]>=0)break u;Kb(J[e+56>>2])}if(H[e+283|0]>=0)break t;Kb(J[e+272>>2])}if(H[e+103|0]>=0)break s;Kb(J[e+92>>2])}if(H[e+267|0]>=0)break r;Kb(J[e+256>>2])}if(H[e+251|0]>=0)break q;Kb(J[e+240>>2])}if(H[e+235|0]>=0)break p;Kb(J[e+224>>2])}if(H[e+219|0]>=0)break o;Kb(J[e+208>>2])}if(H[e+203|0]>=0)break n;Kb(J[e+192>>2])}if(H[e+187|0]>=0)break m;Kb(J[e+176>>2])}if(H[e+ -171|0]>=0)break l;Kb(J[e+160>>2])}if(H[e+115|0]>=0)break k;Kb(J[e+104>>2])}if(H[e+155|0]>=0)break j;Kb(J[e+144>>2])}if(H[e+139|0]>=0)break i;Kb(J[e+128>>2])}if(H[e+127|0]>=0)break c;Kb(J[e+116>>2]);break c}a=Z()|0;break c}J[195395]=0;fa(1960,c|0,e+272|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e}J[195395]=0;ea(1958,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;X:{if((b|0)!=1){J[e+256>>2]=a;J[e+260>>2]=4;J[e+264>>2]=-2147483640;b=J[99525];J[a+ -8>>2]=J[99524];J[a+12>>2]=b;b=J[99523];J[a>>2]=J[99522];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[e+240>>2]=0;H[e+251|0]=0;ia(1961,c|0,e+256|0,e+272|0,e+240|0);a=J[195395];J[195395]=0;if((a|0)==1)break X;if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+267|0]<0)Kb(J[e+256>>2]);a=J[e+272>>2];if(a){b=J[e+276>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((a|0)!=(b|0))continue;break}c=J[e+272>>2]}J[e+276>>2]=a;Kb(c)}if(H[e+299|0]<0)Kb(J[e+288>>2]);xb=e+304| -0;return}a=Z()|0;break d}a=Z()|0;if(H[e+251|0]<0)Kb(J[e+240>>2]);if(H[e+267|0]>=0)break d;Kb(J[e+256>>2]);break d}a=Z()|0}Hc(e+272|0)}if(H[e+299|0]>=0)break b;Kb(J[e+288>>2])}ba(a|0);B()}function Xn(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=xb-1312|0;xb=k;if(c>>>0>=4){j=J[a>>2];J[j+24>>2]=c;J[j+20>>2]=52;Ab[J[J[a>>2]>>2]](a)}i=J[((b?180:196)+a|0)+(c<<2)>>2];if(!i){j=J[a>>2];J[j+24>>2]=c;J[j+20>>2]=52;Ab[J[J[a>>2]>>2]](a)}j=J[d>>2];if(!j){j=Ab[J[J[a+4>>2]>>2]](a,1,1424)|0;J[d>>2]= -j}J[j+140>>2]=i;c=K[i+1|0];a:{if(!c){c=0;break a}Nb(k+1040|0,1,c)}l=K[i+2|0];d=l+c|0;if(d>>>0>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}b:{if(!l){d=c;break b}Nb((k+1040|0)+c|0,2,l)}l=K[i+3|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}c:{if(!l){c=d;break c}Nb((k+1040|0)+d|0,3,l)}l=K[i+4|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}d:{if(!l){d=c;break d}Nb((k+1040|0)+c|0,4,l)}l=K[i+5|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}e:{if(!l){c= -d;break e}Nb((k+1040|0)+d|0,5,l)}l=K[i+6|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}f:{if(!l){d=c;break f}Nb((k+1040|0)+c|0,6,l)}l=K[i+7|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}g:{if(!l){c=d;break g}Nb((k+1040|0)+d|0,7,l)}l=K[i+8|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}h:{if(!l){d=c;break h}Nb((k+1040|0)+c|0,8,l)}l=K[i+9|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}i:{if(!l){c=d;break i}Nb((k+1040|0)+d|0,9,l)}l= -K[i+10|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}j:{if(!l){d=c;break j}Nb((k+1040|0)+c|0,10,l)}l=K[i+11|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}k:{if(!l){c=d;break k}Nb((k+1040|0)+d|0,11,l)}l=K[i+12|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}l:{if(!l){d=c;break l}Nb((k+1040|0)+c|0,12,l)}l=K[i+13|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}m:{if(!l){c=d;break m}Nb((k+1040|0)+d|0,13,l)}l=K[i+14|0];d=l+c|0;if((d|0)>= -257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}n:{if(!l){d=c;break n}Nb((k+1040|0)+c|0,14,l)}c=K[i+15|0];l=c+d|0;if((l|0)>=257){m=J[a>>2];J[m+20>>2]=9;Ab[J[m>>2]](a)}o:{if(!c){l=d;break o}Nb((k+1040|0)+d|0,15,c)}c=K[i+16|0];m=c+l|0;if((m|0)>=257){d=J[a>>2];J[d+20>>2]=9;Ab[J[d>>2]](a)}d=0;if(c){Nb((k+1040|0)+l|0,16,c);l=m}H[(k+1040|0)+l|0]=0;f=K[k+1040|0];if(f){h=f<<24>>24;c=0;while(1){if(f<<24>>24==(h|0))while(1){J[(d<<2)+k>>2]=c;c=c+1|0;d=d+1|0;f=H[d+(k+1040|0)|0];if((h|0)==(f|0))continue;break}if(1<< -h<=(c|0)){g=J[a>>2];J[g+20>>2]=9;Ab[J[g>>2]](a)}h=h+1|0;c=c<<1;if(f&255)continue;break}}d=-1;p:{if(!K[i+1|0]){c=0;e=-1;break p}J[j+76>>2]=0-J[k>>2];c=K[i+1|0];e=J[((c<<2)+k|0)-4>>2]}J[j+4>>2]=e;if(K[i+2|0]){J[j+80>>2]=c-J[(c<<2)+k>>2];c=K[i+2|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+8>>2]=e;if(K[i+3|0]){J[j+84>>2]=c-J[(c<<2)+k>>2];c=K[i+3|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+12>>2]=e;if(K[i+4|0]){J[j+88>>2]=c-J[(c<<2)+k>>2];c=K[i+4|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+16>>2]=e;if(K[i+ -5|0]){J[j+92>>2]=c-J[(c<<2)+k>>2];c=K[i+5|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+20>>2]=e;if(K[i+6|0]){J[j+96>>2]=c-J[(c<<2)+k>>2];c=K[i+6|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+24>>2]=e;if(K[i+7|0]){J[j+100>>2]=c-J[(c<<2)+k>>2];c=K[i+7|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+28>>2]=e;if(K[i+8|0]){J[j+104>>2]=c-J[(c<<2)+k>>2];c=K[i+8|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+32>>2]=e;if(K[i+9|0]){J[j+108>>2]=c-J[(c<<2)+k>>2];c=K[i+9|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+36>> -2]=e;if(K[i+10|0]){J[j+112>>2]=c-J[(c<<2)+k>>2];c=K[i+10|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+40>>2]=e;if(K[i+11|0]){J[j+116>>2]=c-J[(c<<2)+k>>2];c=K[i+11|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+44>>2]=e;if(K[i+12|0]){J[j+120>>2]=c-J[(c<<2)+k>>2];c=K[i+12|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+48>>2]=e;if(K[i+13|0]){J[j+124>>2]=c-J[(c<<2)+k>>2];c=K[i+13|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+52>>2]=e;if(K[i+14|0]){J[j+128>>2]=c-J[(c<<2)+k>>2];c=K[i+14|0]+c|0;e=J[((c<<2)+k|0)- -4>>2]}else e=-1;J[j+56>>2]=e;if(K[i+15|0]){J[j+132>>2]=c-J[(c<<2)+k>>2];c=K[i+15|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+60>>2]=e;if(K[i+16|0]){J[j+136>>2]=c-J[(c<<2)+k>>2];d=J[((K[i+16|0]+c<<2)+k|0)-4>>2]}J[j+68>>2]=1048575;J[j+64>>2]=d;d=0;f=Nb(j+144|0,0,1024);if(K[i+1|0]){h=1;g=j+1168|0;while(1){e=d+i|0;c=J[(d<<2)+k>>2]<<7;n=128;while(1){J[f+(c<<2)>>2]=1;H[c+g|0]=K[e+17|0];o=c|1;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+17|0];o=c|2;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+17|0];o=c|3;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+ -17|0];c=c+4|0;o=(n|0)!=4;n=n-4|0;if(o)continue;break}d=d+1|0;c=K[i+1|0]>h>>>0;h=h+1|0;if(c)continue;break}}if(K[i+2|0]){h=1;f=j+144|0;g=j+1168|0;while(1){e=d+i|0;c=J[(d<<2)+k>>2]<<6;n=64;while(1){J[f+(c<<2)>>2]=2;H[c+g|0]=K[e+17|0];o=c|1;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];o=c|2;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];o=c|3;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];c=c+4|0;o=(n|0)!=4;n=n-4|0;if(o)continue;break}d=d+1|0;c=K[i+2|0]>h>>>0;h=h+1|0;if(c)continue;break}}if(K[i+3|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f= -J[(d<<2)+k>>2];J[c+(f<<7)>>2]=3;f=f<<5;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|4;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|7;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|8;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|9;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|10;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|11;J[c+(e<< -2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|12;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|13;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|14;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|15;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|16;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|17;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|18;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|19;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|20;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|21;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|22;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0]; -e=f|23;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|24;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|25;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|26;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|27;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|28;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|29;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|30;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];f=f|31;J[c+(f<<2)>>2]=3;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+3|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+4|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>> -2];J[c+(f<<6)>>2]=4;f=f<<4;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|4;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|7;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|8;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|9;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|10;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|11;J[c+(e<<2)>>2]=4;H[e+ -h|0]=K[g+17|0];e=f|12;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|13;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|14;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];f=f|15;J[c+(f<<2)>>2]=4;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+4|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+5|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<5)>>2]=5;f=f<<3;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|4;J[c+(e<<2)>>2]= -5;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];f=f|7;J[c+(f<<2)>>2]=5;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+5|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+6|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<4)>>2]=6;f=f<<2;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=6;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=6;H[e+h|0]=K[g+17|0];f=f|3;J[c+(f<<2)>>2]=6;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+6|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+ -7|0]){c=1;h=j+144|0;f=j+1168|0;while(1){g=J[(d<<2)+k>>2];J[h+(g<<3)>>2]=7;g=g<<1;n=d+i|0;H[g+f|0]=K[n+17|0];g=g|1;J[h+(g<<2)>>2]=7;H[f+g|0]=K[n+17|0];d=d+1|0;g=K[i+7|0]>c>>>0;c=c+1|0;if(g)continue;break}}if(K[i+8|0]){c=1;while(1){h=J[(d<<2)+k>>2];J[((h<<2)+j|0)+144>>2]=8;H[(h+j|0)+1168|0]=K[(d+i|0)+17|0];d=d+1|0;h=K[i+8|0]>c>>>0;c=c+1|0;if(h)continue;break}}q:{if(!b|(l|0)<=0)break q;c=0;if((m|0)!=1){b=m&-2;d=0;while(1){if(K[(c+i|0)+17|0]>=16){j=J[a>>2];J[j+20>>2]=9;Ab[J[j>>2]](a)}if(K[((c|1)+i|0)+ -17|0]>=16){j=J[a>>2];J[j+20>>2]=9;Ab[J[j>>2]](a)}c=c+2|0;d=d+2|0;if((b|0)!=(d|0))continue;break}}if(!(m&1)|K[(c+i|0)+17|0]<16)break q;b=J[a>>2];J[b+20>>2]=9;Ab[J[b>>2]](a)}xb=k+1312|0}function LA(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;g=xb-48|0;xb=g;d=J[a>>2]-12|0;b=J[d>>2]+a|0;f=J[b+12>>2]+4|0;j=b;b=J[b+16>>2];J[j+12>>2]=b>>>0>f>>>0?f:b;b=0;d=J[d>>2]+a|0;f=J[d+12>>2];if(f+3>>>0>2]){b=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}d=Pb(88);J[195395]= -0;f=Bg(d);i=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((i|0)!=1)switch(b|0){case 4:break i;case 3:break j;case 2:break k;case 1:break l;case 0:break m;default:break h}a=Z()|0;Kb(d);break a}J[f+16>>2]=0;a=J[J[a>>2]-12>>2]+a|0;d=J[a+12>>2];e=J[a+16>>2];n:{if(d>>>0>=e>>>0){b=0;break n}b=K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+8|0]=b;if(d>>>0>>0){c=K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+9|0]=c;c=0;o:{if(d>>>0>=e>>>0){b=0;break o}b=K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+10|0]=b;if(d>>>0>>0){c=K[d| -0];J[a+12>>2]=d+1}H[f+11|0]=c;break d}J[f+16>>2]=2;b=0;i=J[a>>2]-12|0;d=J[i>>2]+a|0;c=J[d+12>>2];if(c+3>>>0>2]){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[d+12>>2]=c+4}J[f+20>>2]=b;b=J[i>>2]+a|0;c=J[b+12>>2];d=J[b+16>>2];if(c>>>0>>0){h=K[c|0];c=c+1|0;J[b+12>>2]=c}H[f+8|0]=h;h=0;if(c>>>0>>0){e=K[c|0];c=c+1|0;J[b+12>>2]=c}H[f+9|0]=e;if(c>>>0>>0){h=K[c|0];c=c+1|0;J[b+12>>2]=c}H[f+10|0]=h;h=0;e=0;if(c>>>0>>0){e=K[c|0];J[b+12>>2]=c+1}H[f+11|0]=e;a=J[i>>2]+a|0;d=J[a+12>>2];e= -J[a+16>>2];if(d>>>0>>0){h=K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+12|0]=h;c=0;p:{if(d>>>0>=e>>>0){b=0;break p}b=K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+13|0]=b;if(d>>>0>>0){c=K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+14|0]=c;c=0;if(d>>>0>>0){c=K[d|0];J[a+12>>2]=d+1}H[f+15|0]=c;break d}J[f+16>>2]=3;d=16;e=J[a>>2]-12|0;c=J[e>>2]+a|0;b=J[c+12>>2];h=J[c+16>>2];q:{if(b+3>>>0>>0){h=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4;b=J[e>>2]+a|0;c=J[b+12>>2]+4|0;j=b;b=J[b+16>>2];J[j+12>>2]=b>>>0>c>>>0?c:b; -if(!(h&2))break q;b=J[e>>2]+a|0;c=J[b+12>>2]+24|0;j=b;b=J[b+16>>2];J[j+12>>2]=b>>>0>c>>>0?c:b;d=40;break q}b=b+4|0;J[c+12>>2]=b>>>0>>0?b:h}b=J[a+116>>2];if(b>>>0<29)break d;J[a+116>>2]=b-d;b=g+16|0;J[b>>2]=415408;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=416512;J[b+24>>2]=0;J[b+28>>2]=0;h=J[a>>2]-12|0;c=J[h>>2]+a|0;e=J[c+12>>2]+4|0;j=c;c=J[c+16>>2];J[j+12>>2]=c>>>0>e>>>0?e:c;h=J[h>>2]+a|0;c=J[h+12>>2];r:{if(c+3>>>0>=M[h+16>>2]){J[195395]=0;c=J[195395];J[195395]=0;if((c| -0)!=1)break e;break r}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[h+12>>2]=c+4;J[195395]=0;if(e-1>>>0<=1)J[b+16>>2]=e;c=J[195395];J[195395]=0;if((c|0)==1)break r;s:switch(e-1|0){case 1:J[195395]=0;fa(2096,a|0,b|0,1);c=J[195395];J[195395]=0;if((c|0)==1)break r;break e;case 0:break s;default:break e}J[195395]=0;fa(2097,a|0,b|0,1);c=J[195395];J[195395]=0;if((c|0)!=1)break e}a=Z()|0;break b}J[f+16>>2]=11;i=J[a>>2]-12|0;b=J[i>>2];j=b+a|0;d=J[j+12>>2];c=J[j+16>>2];if(c>>>0>d+3>>>0){h=K[d|0]|K[d+ -1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[j+12>>2]=d+4;b=J[i>>2];d=b+a|0;c=J[d+16>>2];d=J[d+12>>2]}j=a+b|0;b=d+4|0;J[j+12>>2]=b>>>0>>0?b:c;c=J[i>>2]+a|0;b=J[c+12>>2];d=J[c+16>>2];if(b>>>0>>0){e=K[b|0];b=b+1|0;J[c+12>>2]=b}H[f+8|0]=e;e=0;if(b>>>0>>0){k=K[b|0];b=b+1|0;J[c+12>>2]=b}H[f+9|0]=k;if(b>>>0>>0){e=K[b|0];b=b+1|0;J[c+12>>2]=b}H[f+10|0]=e;e=0;if(b>>>0>>0){e=K[b|0];J[c+12>>2]=b+1}H[f+11|0]=e;b=J[i>>2]+a|0;c=J[b+12>>2];d=J[b+16>>2];if(c+3>>>0>=d>>>0)l=0;else{e=K[c|0]|K[c+1|0]<<8|(K[c+ -2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[b+12>>2]=c;l=+(x(2,e),C())}O[f+56>>3]=l;j=f- -64|0;if(d>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+12>>2]=c+4;l=+(x(2,d),C())}else l=0;O[j>>3]=l;d=0;c=J[i>>2];e=c+a|0;b=J[e+12>>2];t:{if(b+3>>>0>=M[e+16>>2])break t;d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[e+12>>2]=b+4;c=J[i>>2];if(!d){d=0;break t}k=0;b=a+c|0;e=J[b+12>>2];j=J[b+16>>2];u:{if(e>>>0>=j>>>0){c=0;break u}c=K[e|0];e=e+1|0;J[b+12>>2]=e}H[f+12|0]=c;if(e>>>0>>0){k=K[e|0];e= -e+1|0;J[b+12>>2]=e}H[f+13|0]=k;k=0;v:{if(e>>>0>=j>>>0){c=0;break v}c=K[e|0];e=e+1|0;J[b+12>>2]=e}H[f+14|0]=c;if(e>>>0>>0){k=K[e|0];J[b+12>>2]=e+1}H[f+15|0]=k;c=J[i>>2]}b=a+c|0;c=(J[b+12>>2]+(d<<2)|0)-4|0;j=b;b=J[b+16>>2];J[j+12>>2]=b>>>0>c>>>0?c:b;c=J[i>>2]+a|0;b=J[c+12>>2];d=b+3|0;i=J[c+16>>2];w:{if(h&1){if(d>>>0>=i>>>0)break w;d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4;if((d|0)<=0)break w;b=Wj(a);if(!b)break w;qA(g+16|0,b);l=O[g+16>>3];O[f+24>>3]=l;p=O[g+24>>3];O[f+32>>3]= -p;O[f+40>>3]=O[g+32>>3]-l;O[f+48>>3]=O[g+40>>3]-p;Ab[J[J[b>>2]+4>>2]](b);break w}e=0;if(d>>>0>>0){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4}Tq(g+16|0,a,e);b=J[g+16>>2];if(!b)break w;J[g+20>>2]=b;Kb(b)}if(!(h&4))break d;j=J[a>>2]-12|0;c=J[j>>2]+a|0;b=J[c+12>>2];if(b+3>>>0>=M[c+16>>2])break d;i=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4;J[g+24>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;if(!i)break d;x:{y:{if(i>>>0>=536870912){J[195395]=0;ea(1815,g+16|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break y;break f}b=0;J[195395]=0;d=i<<3;c=_(1078,d|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break x}a=Z()|0;b=J[g+16>>2];if(b){J[g+20>>2]=b;Kb(b)}break a}J[g+16>>2]=c;e=c+d|0;J[g+24>>2]=e;k=Nb(c,0,d);J[g+20>>2]=e;if((i|0)!=1){h=i&-2;c=0;while(1){m=b<<3;n=m+k|0;e=J[j>>2]+a|0;d=J[e+12>>2];if(d+3>>>0>2]){o=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;l=+(x(2,o),C())}else l=0;O[n>>3]=l;m=(m|8)+k|0;e=J[j>>2]+a|0;d=J[e+12>>2];if(d+3>>>0>2]){n=K[d| -0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e+12>>2]=d+4;l=+(x(2,n),C())}else l=0;O[m>>3]=l;b=b+2|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(i&1){d=(b<<3)+k|0;c=J[j>>2]+a|0;b=J[c+12>>2];if(b+3>>>0>2]){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+12>>2]=b+4;l=+(x(2,e),C())}else l=0;O[d>>3]=l}J[g+8>>2]=0;J[g>>2]=0;J[g+4>>2]=0;if(i>>>0>=1073741824){J[195395]=0;ea(2098,g|0);a=J[195395];J[195395]=0;if((a|0)!=1)break f;break g}J[195395]=0;b=i<<2;c=_(1078,b|0)|0;d=J[195395];J[195395]= -0;if((d|0)==1)break g;J[g>>2]=c;n=b+c|0;J[g+8>>2]=n;b=c;e=i&3;if(e){d=0;while(1){H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=255;b=b+4|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}if((i-1&1073741823)>>>0>=3)while(1){H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=255;H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=255;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=255;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=255;b=b+16|0;if((n|0)!=(b|0))continue;break}J[g+4>>2]=n;h=0;while(1){m=c+(h<<2)|0;d=J[j>>2]+a|0;b=J[d+12>>2]; -o=J[d+16>>2];z:{if(b>>>0>=o>>>0){e=0;break z}e=K[b|0];b=b+1|0;J[d+12>>2]=b}H[m|0]=e;e=0;A:{if(b>>>0>=o>>>0){q=0;break A}q=K[b|0];b=b+1|0;J[d+12>>2]=b}H[m+1|0]=q;if(b>>>0>>0){e=K[b|0];b=b+1|0;J[d+12>>2]=b}H[m+2|0]=e;e=0;if(b>>>0>>0){e=K[b|0];J[d+12>>2]=b+1}H[m+3|0]=e;h=h+1|0;if((i|0)!=(h|0))continue;break}if(i>>>0>1){J[f+12>>2]=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);a=n-4|0;J[f+8>>2]=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24)}Kb(c);Kb(k);break d}J[f+16>>2]=10;i=J[a>>2]-12|0;b=J[i>> -2]+a|0;d=J[b+12>>2]+8|0;j=b;b=J[b+16>>2];J[j+12>>2]=b>>>0>d>>>0?d:b;b=J[i>>2]+a|0;d=J[b+12>>2]+16|0;j=b;b=J[b+16>>2];J[j+12>>2]=b>>>0>d>>>0?d:b;d=J[i>>2]+a|0;b=J[d+12>>2];k=J[d+16>>2];if(b>>>0>>0){e=K[b|0];b=b+1|0;J[d+12>>2]=b}H[f+8|0]=e;if(b>>>0>>0){h=K[b|0];b=b+1|0;J[d+12>>2]=b}H[f+9|0]=h;h=0;B:{if(b>>>0>=k>>>0){e=0;break B}e=K[b|0];b=b+1|0;J[d+12>>2]=b}H[f+10|0]=e;if(b>>>0>>0){h=K[b|0];J[d+12>>2]=b+1}H[f+11|0]=h;a=J[i>>2]+a|0;d=J[a+12>>2];e=J[a+16>>2];C:{if(d>>>0>=e>>>0){b=0;break C}b= -K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+12|0]=b;if(d>>>0>>0){c=K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+13|0]=c;c=0;D:{if(d>>>0>=e>>>0){b=0;break D}b=K[d|0];d=d+1|0;J[a+12>>2]=d}H[f+14|0]=b;if(d>>>0>>0){c=K[d|0];J[a+12>>2]=d+1}H[f+15|0]=c;break d}Ab[J[J[f>>2]+4>>2]](f);f=0;break d}a=Z()|0;b=J[g>>2];if(b){J[g+4>>2]=b;Kb(b)}Kb(k);break a}B()}J[g+8>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[195395]=0;c=aa(2099,a|0,b|0,g|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;E:{if(!c)break E;c=f+76|0;h=K[g+11|0];e=h<<24>>24;F:{if(H[f+ -87|0]>=0){if((e|0)<0)break F;e=J[g+4>>2];J[c>>2]=J[g>>2];J[c+4>>2]=e;J[c+8>>2]=J[g+8>>2];break E}J[195395]=0;j=c;c=(e|0)<0;aa(2100,j|0,(c?J[g>>2]:g)|0,(c?J[g+4>>2]:h)|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break E;break c}J[195395]=0;aa(2101,c|0,J[g>>2],J[g+4>>2])|0;c=J[195395];J[195395]=0;if((c|0)==1)break c}J[a+116>>2]=J[a+116>>2]+d;if(H[g+11|0]<0)Kb(J[g>>2]);Qq(b)}xb=g+48|0;return f}a=Z()|0;if(H[g+11|0]>=0)break b;Kb(J[g>>2])}Qq(b)}ba(a|0);B()}function dP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e= -e|0;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,w=0;f=xb-48|0;xb=f;p=J[b+100>>2];e=bc(a,0);J[f+36>>2]=e;a:{if(e)break a;J[f+28>>2]=0;J[f+32>>2]=8;J[f+20>>2]=1;J[f+24>>2]=1;J[f+40>>2]=0;i=tc(p,64,f+40|0);b:{c:{d:{e:{e=J[f+40>>2];if(!e){I[i+12>>1]=32767;J[i+36>>2]=f+20;d=J[a+4>>2];J[i+56>>2]=p;J[i+60>>2]=d;J[i+40>>2]=0;J[i+44>>2]=0;J[i+48>>2]=0;J[i+52>>2]=p;r=J[a+28>>2];J[f+44>>2]=0;e=1024;h=Tb(r,1,0,1024,0,f+44|0);f:{if(J[f+44>>2])break f;J[f+8>>2]=2;H[h|0]=0;m=256;n=1; -while(1){j=e;g:while(1){g=0;d=0;while(1){if(!(g&1)){k=or(a,h+o|0,j-o|0);l=k+o|0;o=0}if((d|0)<(l|0)){e=H[d+h|0]==(m|0);m=e?256:m;d=d+e|0}h:{i:{e=d;if((l|0)>(e|0))while(1){j:{t=e+h|0;s=K[t|0];switch(s-10|0){case 0:case 3:break i;default:break j}}e=e+1|0;if((l|0)!=(e|0))continue;break}if(!k)break f;if(!d){if(j>>>0<65536)break h;J[f+44>>2]=6;break f}k=l-d|0;qc(h,d+h|0,k);o=k;l=d;continue g}H[t|0]=0;k:{l:{u=d+h|0;switch(K[u|0]-26|0){case 0:case 9:break k;default:break l}}if((d|0)>=(e|0))break k;m=e-d| -0;q=f+8|0;d=Ab[J[f+8>>2]](u,m,n,q,i)|0;J[f+44>>2]=d;if((d|0)==-1){d=Ab[J[f+8>>2]](u,m,n,q,i)|0;J[f+44>>2]=d}if(d)break f}H[t|0]=s;m=(s|0)==10?13:(s|0)==13?10:256;g=1;d=e+1|0;n=n+1|0;continue}break}break}e=j<<1;h=Tb(r,1,j,e,h,f+44|0);o=j;if(!J[f+44>>2])continue;break}}if(h)Ab[J[r+8>>2]](r,h);a=J[f+44>>2];J[f+40>>2]=a;g=J[i+32>>2];if(a)break d;m:{n:{if(g){if(J[g+28>>2]!=8)I[g+32>>1]=L[g+4>>1];o:{if(!J[J[i+36>>2]>>2]|!(J[g+52>>2]|J[g+64>>2]))break o;d=I[i+12>>1];a=I[i+16>>1]-d|0;if((a|0)!=L[g+4>>1])I[g+ -4>>1]=a;if(L[g+8>>1]!=(d&65535))I[g+8>>1]=d;d=L[i+18>>1];if((d|0)!=L[g+12>>1])I[g+12>>1]=d;e=L[i+20>>1];a=e<<16>>16;if((e|0)!=L[g+14>>1]){I[g+14>>1]=e;I[g+10>>1]=0-e}a=(d<<16>>16)+a|0;if((a|0)==L[g+6>>1])break o;I[g+6>>1]=a}e=J[i>>2];if(e&1)break n;a=J[g+88>>2];if(!a)break c;a=Tb(J[g+100>>2],1,a,a+1|0,J[g+84>>2],f+40|0);g=J[i+32>>2];J[g+84>>2]=a;if(J[f+40>>2])break d;H[a+J[g+88>>2]|0]=0;g=J[i+32>>2];break c}e=J[i>>2];if(!(e&1))break m}if(e&32)break e;J[f+40>>2]=185;break d}J[f+40>>2]=3;g=0;break c}if(!i)break b; -break c}J[f+40>>2]=186}_v(g);a=J[i+32>>2];if(a)Ab[J[p+8>>2]](p,a);g=0;J[i+32>>2]=0}d=J[i+52>>2];if(d){a=J[i+40>>2];if(a)Ab[J[d+8>>2]](d,a);J[i+48>>2]=0;J[i+52>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0}a=J[i+24>>2];if(a)Ab[J[p+8>>2]](p,a);J[i+24>>2]=0;if(i)Ab[J[p+8>>2]](p,i);e=J[f+40>>2]}J[f+36>>2]=e;p:{q:{r:{s:{t:{u:{v:{if((e&255)!=176){if(e)break a;J[b+140>>2]=g;if(!(!(c&65535)|(c|0)<=0)){wp(b);e=6;break a}J[b>>2]=1;J[b+4>>2]=0;J[b+8>>2]=J[b+8>>2]|18;w:{x:{if(!g|!J[g+72>>2])break x;c=Pe(9396,J[g+92>>2]);y:{if(!c)break y; -a=J[g+80>>2];if(!a)break y;a=a+(J[c>>2]<<4)|0;if(J[a+4>>2]!=1)break y;a=J[a+12>>2];if(!a)break y;z:{A:{a=K[a|0];switch(a-67|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break y;case 0:case 10:break z;default:break A}}switch(a-99|0){case 0:case 10:break z;default:break y}}J[b+8>>2]=J[b+8>>2]|4}if(!J[g+72>>2])break x;c=Pe(9539,J[g+92>>2]);if(!c)break x;a=J[g+80>>2];if(!a)break x;a=J[(a+(J[c>>2]<<4)|0)+12>>2];if(!a)break x;v=b,w=of(p,a,f+36|0),J[v+20>>2]=w;e=J[f+36>>2];if(!e)break w; -break a}J[b+20>>2]=0}n=0;J[f+8>>2]=0;J[b+12>>2]=0;l=J[b+100>>2];h=8;q=7;a=24420;t=1;j=J[b+140>>2];if(!j|!J[j+72>>2])break q;d=0;o=0;e=Pe(23829,J[j+92>>2]);B:{if(!e)break B;c=J[j+80>>2];if(!c)break B;e=c+(J[e>>2]<<4)|0;if(J[e+4>>2]!=1)break B;c=J[e+12>>2];if(!c)break B;C:switch(K[c|0]-73|0){case 0:case 6:case 32:case 38:break C;default:break B}J[b+12>>2]=J[b+12>>2]|1;o=(K[J[e+12>>2]]&223)==79?24400:24408}if(!J[j+72>>2]){m=0;c=0;k=0;r=0;e=0;j=1;break r}k=0;n=1;e=Pe(24015,J[j+92>>2]);c=0;D:{if(!e)break D; -d=J[j+80>>2];c=0;if(!d)break D;d=d+(J[e>>2]<<4)|0;c=0;if(J[d+4>>2]!=1)break D;d=J[d+12>>2];c=0;if(!d)break D;c=0;if((K[d|0]|32)!=98)break D;J[b+12>>2]=J[b+12>>2]|2;n=0;c=24415}if(!J[j+72>>2])break u;m=0;e=Pe(23815,J[j+92>>2]);k=0;E:{if(!e)break E;d=J[j+80>>2];k=0;if(!d)break E;d=d+(J[e>>2]<<4)|0;k=0;if(J[d+4>>2]!=1)break E;d=J[d+12>>2];k=0;if(!d)break E;e=K[d|0];k=0;if(!e)break E;k=0;if((e|0)==78)break E;k=0;if((e|0)==110)break E;k=d}if(!J[j+72>>2])break t;e=Pe(12253,J[j+92>>2]);if(!e)break u;d=J[j+ -80>>2];if(!d)break u;d=d+(J[e>>2]<<4)|0;if(J[d+4>>2]!=1)break t;m=J[d+12>>2];if(!m)break u;d=0;e=K[m|0];if(!e|(e|0)==78|(e|0)==110)break v;d=ac(m);e=d+1|0;break s}wp(b);e=2;break a}m=0;e=0;break s}m=0}d=0;e=0}if(n){c=0;r=0;j=1;break r}r=ac(c);e=(r+e|0)+1|0;j=0}n=0;F:{if(!o){s=0;break F}s=ac(o);e=(s+e|0)+1|0}t=!o;u=!k;if(k){n=ac(k);e=(n+e|0)+1|0}if(!e)break p;a=m;q=d;h=e;break p}r=0;k=0;o=0;c=0;j=1;s=0;u=1}h=tc(l,h,f+8|0);J[b+24>>2]=h;e=J[f+8>>2];if(e)break a;if(a){m=Mb(h,a,q);G:{if(!q)break G;l=0; -e=0;if(q>>>0>=4){h=q&-4;a=0;while(1){d=e+m|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|1)|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|2)|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|3)|0;if(K[d|0]==32)H[d|0]=45;e=e+4|0;a=a+4|0;if((h|0)!=(a|0))continue;break}}d=q&3;if(!d)break G;while(1){a=e+m|0;if(K[a|0]==32)H[a|0]=45;e=e+1|0;l=l+1|0;if((d|0)!=(l|0))continue;break}}h=m+q|0}if(!j){if(J[b+24>>2]!=(h|0)){H[h|0]=32;h=h+1|0}h=Mb(h,c,r)+r|0}if(!t){if(J[b+24>>2]!=(h|0)){H[h|0]=32;h=h+1|0}h=Mb(h,o,s)+s|0}if(!u){if(J[b+24>>2]!=(h|0)){H[h| -0]=32;h=h+1|0}h=Mb(h,k,n);H:{if(!n)break H;l=0;e=0;if(n>>>0>=4){d=n&-4;a=0;while(1){c=e+h|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|1)|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|2)|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|3)|0;if(K[c|0]==32)H[c|0]=45;e=e+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=n&3;if(!c)break H;while(1){a=e+h|0;if(K[a|0]==32)H[a|0]=45;e=e+1|0;l=l+1|0;if((c|0)!=(l|0))continue;break}}h=h+n|0}H[h|0]=0;e=J[f+8>>2];J[f+36>>2]=e;if(e)break a;a=J[g+48>>2];J[b+28>>2]=1;J[b+16>>2]=a+1;c=Tb(p,16,0,1,0,f+36|0); -J[b+32>>2]=c;e=J[f+36>>2];if(e)break a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;e=J[g+40>>2];if(e-32768>>>0<=4294901760){e=(e|0)<0?-32767:32767;J[g+40>>2]=e}l=J[g+44>>2];if(l-32768>>>0<=4294901760){l=(l|0)<0?-32767:32767;J[g+44>>2]=l}I[c>>1]=e+l;a=Ci(g,9648);I:{if(a){a=J[a+12>>2];d=32767;if(a-327666>>>0<4294311965)break I;a=(a+5|0)/10|0;d=a>>31;d=(a^d)-d|0;break I}d=hc(I[c>>1],2,3)}I[c+2>>1]=d;a=Ci(g,9820);J:{if(a){a=J[a+12>>2];d=32767;if(a-328899>>>0<4294309499)break J;d=a;a=a>>31;d=hc((d^ -a)-a|0,460800,72270);break J}a=J[g+16>>2];if(a){d=a>>>0>32767?32767:a<<6;break J}d=I[c+2>>1]<<6}J[c+4>>2]=d;a=Ci(g,9946);if(a){d=J[a+12>>2];a=d>>31;J[c+12>>2]=d-32768>>>0<4294901761?2097088:(a^d)-a<<6}a=Ci(g,10096);a=J[(a?a+12|0:g+20|0)>>2];d=0;K:{if(!a)break K;d=32767;if(a-32768>>>0<4294901761)break K;d=a;a=a>>31;d=(d^a)-a|0}L:{M:{N:{O:{a=Ci(g,10199);a=J[(a?a+12|0:g+24|0)>>2];if(a){if(a-32768>>>0<4294901761)break O;e=a;a=a>>31;a=(e^a)-a|0;e=J[c+12>>2];if(e)break M;e=J[c+4>>2];J[c+12>>2]=e;if(!(a& -65535))break L;j=c+12|0;break N}e=J[c+12>>2];if(e)break L;e=J[c+4>>2];J[c+12>>2]=e;break L}a=32767;e=J[c+12>>2];if(e)break M;e=J[c+4>>2];J[c+12>>2]=e;j=c+12|0}e=hc(e,a&65535,72);J[j>>2]=e}if(!d)break L;a=a&65535;if(!a)break L;e=hc(e,d,a)}J[c+8>>2]=e;q=J[g+56>>2];l=Tb(p,8,0,J[g+48>>2],0,f+36|0);J[b+144>>2]=l;e=J[f+36>>2];if(e)break a;J[b+148>>2]=0;j=J[g+48>>2];P:{if(!j)break P;k=J[g+36>>2];e=0;if((j|0)!=1){c=j&-2;o=0;while(1){d=J[(q+P(e,36)|0)+4>>2];a=l+(e<<3)|0;I[a+4>>1]=e;J[a>>2]=d;if((d|0)==(k| -0))J[b+148>>2]=e;h=e|1;d=J[(q+P(h,36)|0)+4>>2];a=l+(h<<3)|0;I[a+4>>1]=h;J[a>>2]=d;if((d|0)==(k|0))J[b+148>>2]=h;e=e+2|0;o=o+2|0;if((c|0)!=(o|0))continue;break}}if(!(j&1))break P;c=J[(q+P(e,36)|0)+4>>2];a=l+(e<<3)|0;I[a+4>>1]=e;J[a>>2]=c;if((c|0)!=(k|0))break P;J[b+148>>2]=e}Q:{c=Ci(g,10306);a=Ci(g,10470);if(!c|!a|(J[c+4>>2]!=1|J[a+4>>2]!=1))break Q;if(!J[c+12>>2])break Q;a=J[a+12>>2];if(!a)break Q;d=a;a=f+36|0;v=b,w=of(p,d,a),J[v+132>>2]=w;e=J[f+36>>2];if(e)break a;a=of(p,J[c+12>>2],a);J[b+136>>2]= -a;e=J[f+36>>2];if(e)break a;R:{S:{T:{U:{if(!((K[a|0]|32)!=105|(K[a+1|0]|32)!=115|(K[a+2|0]|32)!=111)){a=a+3|0;if(!fc(a,10615))break U;if(!fc(a,10750))if(!fc(J[b+132>>2],10855))break U;if(!fc(a,10950))break T}J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;break R}J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;break S}a=fc(J[b+132>>2],11060);J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;if(a)break R}J[f+12>>2]=1970170211;J[f+16>>2]=65539}e=zf(21632,0,f+8|0,0);break a}J[f+12>>2]=1094995778;J[f+16>>2]=7;J[f+8>>2]=b;e=zf(21632, -0,f+8|0,0);if(!J[b+36>>2])break a;J[b+92>>2]=J[J[b+40>>2]>>2]}xb=f+48|0;return e|0}function S2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;f=xb-304|0;xb=f;c=J[c>>2];i=O[d>>3]*3.141592653589793/180;g=Fe(i);n=J[b+4>>2];k=O[e>>3];h=f+272|0;j=g;g=+(c>>>0);m=+J[b>>2];ff(h,j*g+m,-1);J[195395]=0;b=aa(1954,h|0,0,398272)|0;c=J[195395];J[195395]=0;k=k*3.141592653589793/180;o=ue(k);k=Fe(k);i=ue(i);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{if((c| -0)!=1){c=f- -64|0;J[c>>2]=J[b+8>>2];h=J[b+4>>2];J[f+56>>2]=J[b>>2];J[f+60>>2]=h;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+56|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break S;J[f+16>>2]=J[c>>2];J[c>>2]=0;b=J[f+60>>2];J[f+8>>2]=J[f+56>>2];J[f+12>>2]=b;J[f+56>>2]=0;J[f+60>>2]=0;J[195395]=0;b=f+256|0;j=g*i;i=+(n|0);da(1863,b|0,+(j+i),-1);c=J[195395];J[195395]=0;if((c|0)==1)break R;J[195395]=0;h=b;b=K[f+267|0];c=b<<24>>24<0;b=aa(1864,f+8|0,(c?J[f+256>>2]:h)|0,(c?J[f+260>>2]:b)|0)|0;c=J[195395]; -J[195395]=0;if((c|0)==1)break Q;J[f+296>>2]=J[b+8>>2];c=J[b+4>>2];J[f+288>>2]=J[b>>2];J[f+292>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+67|0]<0)Kb(J[f+56>>2]);if(H[f+283|0]<0)Kb(J[f+272>>2]);J[195395]=0;b=f+116|0;da(1863,b|0,+g,-1);c=J[195395];J[195395]=0;if((c|0)==1)break M;J[195395]=0;b=aa(1954,b|0,0,398444)|0;c=J[195395];J[195395]=0;if((c|0)==1)break L;J[f+136>>2]=J[b+8>>2];c=J[b+4>>2];J[f+128>>2]=J[b>>2];J[f+132>>2]=c;J[b>>2]=0; -J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+128|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break K;J[f+152>>2]=J[f+136>>2];J[f+136>>2]=0;b=J[f+132>>2];J[f+144>>2]=J[f+128>>2];J[f+148>>2]=b;J[f+128>>2]=0;J[f+132>>2]=0;J[195395]=0;b=f+104|0;da(1863,b|0,+g,-1);c=J[195395];J[195395]=0;if((c|0)==1)break J;J[195395]=0;h=b;b=K[f+115|0];c=b<<24>>24<0;b=aa(1864,f+144|0,(c?J[f+104>>2]:h)|0,(c?J[f+108>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break I;J[f+168>>2]=J[b+8>>2];c=J[b+4>>2];J[f+160>>2]=J[b>> -2];J[f+164>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+160|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break H;J[f+184>>2]=J[f+168>>2];J[f+168>>2]=0;b=J[f+164>>2];J[f+176>>2]=J[f+160>>2];J[f+180>>2]=b;J[f+160>>2]=0;J[f+164>>2]=0;J[195395]=0;b=ca(1858,f+176|0,398632)|0;c=J[195395];J[195395]=0;if((c|0)==1)break G;J[f+200>>2]=J[b+8>>2];c=J[b+4>>2];J[f+192>>2]=J[b>>2];J[f+196>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;j=O[d>>3];l=O[e>>3];J[195395]=0;b=ca(1858,f+192|0,(R(l-j)<=180?398824:398984)| -0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break F;J[f+216>>2]=J[b+8>>2];c=J[b+4>>2];J[f+208>>2]=J[b>>2];J[f+212>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+208|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break E;J[f+232>>2]=J[f+216>>2];J[f+216>>2]=0;b=J[f+212>>2];J[f+224>>2]=J[f+208>>2];J[f+228>>2]=b;J[f+208>>2]=0;J[f+212>>2]=0;j=O[d>>3];l=O[e>>3];J[195395]=0;b=ca(1858,f+224|0,(R(l-j)<=180?398984:398824)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break D;J[f+248>>2]=J[b+8>>2];c=J[b+4>> -2];J[f+240>>2]=J[b>>2];J[f+244>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break C;J[f+264>>2]=J[f+248>>2];J[f+248>>2]=0;b=J[f+244>>2];J[f+256>>2]=J[f+240>>2];J[f+260>>2]=b;J[f+240>>2]=0;J[f+244>>2]=0;J[195395]=0;b=f+92|0;da(1863,b|0,+(g*k+m),-1);c=J[195395];J[195395]=0;if((c|0)==1)break B;J[195395]=0;d=b;b=K[f+103|0];c=b<<24>>24<0;b=aa(1864,f+256|0,(c?J[f+92>>2]:d)|0,(c?J[f+96>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break A;J[f+ -280>>2]=J[b+8>>2];c=J[b+4>>2];J[f+272>>2]=J[b>>2];J[f+276>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+272|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break z;J[f- -64>>2]=J[f+280>>2];J[f+280>>2]=0;b=J[f+276>>2];J[f+56>>2]=J[f+272>>2];J[f+60>>2]=b;J[f+272>>2]=0;J[f+276>>2]=0;J[195395]=0;b=f+80|0;da(1863,b|0,+(g*o+i),-1);c=J[195395];J[195395]=0;if((c|0)==1)break y;J[195395]=0;d=b;b=K[f+91|0];c=b<<24>>24<0;b=aa(1864,f+56|0,(c?J[f+80>>2]:d)|0,(c?J[f+84>>2]:b)|0)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break x;J[f+16>>2]=J[b+8>>2];c=J[b+4>>2];J[f+8>>2]=J[b>>2];J[f+12>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[f+19|0];c=b<<24>>24<0;aa(1864,f+288|0,(c?J[f+8>>2]:f+8|0)|0,(c?J[f+12>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w;if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+91|0]<0)Kb(J[f+80>>2]);if(H[f+67|0]<0)Kb(J[f+56>>2]);if(H[f+283|0]<0)Kb(J[f+272>>2]);if(H[f+103|0]<0)Kb(J[f+92>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+ -224>>2]);if(H[f+219|0]<0)Kb(J[f+208>>2]);if(H[f+203|0]<0)Kb(J[f+192>>2]);if(H[f+187|0]<0)Kb(J[f+176>>2]);if(H[f+171|0]<0)Kb(J[f+160>>2]);if(H[f+115|0]<0)Kb(J[f+104>>2]);if(H[f+155|0]<0)Kb(J[f+144>>2]);if(H[f+139|0]<0)Kb(J[f+128>>2]);if(H[f+127|0]<0)Kb(J[f+116>>2]);J[195395]=0;b=aa(1962,f+56|0,397860,f+288|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;J[f+280>>2]=0;J[f+272>>2]=0;J[f+276>>2]=0;J[195395]=0;H[f+12|0]=0;J[f+8>>2]=f+272;c=_(1078,24)|0;d=J[195395];J[195395]=0;T:{U:{if((d|0)!=1){J[f+276>> -2]=c;J[f+272>>2]=c;J[195395]=0;J[f+280>>2]=c+24;d=ha(1957,f+280|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break T;e=Z()|0;J[f+276>>2]=c;break U}e=Z()|0}Kc(f+8|0);Vb(b);break b}J[f+276>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;c=a+8|0;d=f+272|0;$(1963,c|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break d;J[195395]=0;$(1964,c|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break d;b=J[a+80>>2];e=J[J[b>>2]+108>>2];J[195395]=0;b=_(e|0,b|0)|0;e=J[195395];J[195395]= -0;if((e|0)==1)break d;if((b|0)!=1)break f;J[195395]=0;b=f+8|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;e=J[195395];J[195395]=0;V:{if((e|0)==1)break V;a=J[a+80>>2];e=J[J[a>>2]+72>>2];J[195395]=0;a=ca(e|0,a|0,2)|0;e=J[195395];J[195395]=0;if((e|0)==1)break V;J[195395]=0;Rd(b,a);a=J[195395];J[195395]=0;if((a|0)==1)break V;O[b+24>>3]=-O[b+24>>3];J[195395]=0;fa(1960,c|0,d|0,b| -0);a=J[195395];J[195395]=0;if((a|0)!=1)break e}e=Z()|0;break c}e=Z()|0;break N}e=Z()|0;break O}e=Z()|0;break P}e=Z()|0;if(H[f+267|0]>=0)break P;Kb(J[f+256>>2])}if(H[f+19|0]>=0)break O;Kb(J[f+8>>2])}if(H[f+67|0]>=0)break N;Kb(J[f+56>>2])}if(H[f+283|0]>=0)break a;Kb(J[f+272>>2]);ba(e|0);B()}e=Z()|0;break b}e=Z()|0;break h}e=Z()|0;break i}e=Z()|0;break j}e=Z()|0;break k}e=Z()|0;break l}e=Z()|0;break m}e=Z()|0;break n}e=Z()|0;break o}e=Z()|0;break p}e=Z()|0;break q}e=Z()|0;break r}e=Z()|0;break s}e=Z()| -0;break t}e=Z()|0;break u}e=Z()|0;break v}e=Z()|0;if(H[f+19|0]>=0)break v;Kb(J[f+8>>2])}if(H[f+91|0]>=0)break u;Kb(J[f+80>>2])}if(H[f+67|0]>=0)break t;Kb(J[f+56>>2])}if(H[f+283|0]>=0)break s;Kb(J[f+272>>2])}if(H[f+103|0]>=0)break r;Kb(J[f+92>>2])}if(H[f+267|0]>=0)break q;Kb(J[f+256>>2])}if(H[f+251|0]>=0)break p;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break o;Kb(J[f+224>>2])}if(H[f+219|0]>=0)break n;Kb(J[f+208>>2])}if(H[f+203|0]>=0)break m;Kb(J[f+192>>2])}if(H[f+187|0]>=0)break l;Kb(J[f+176>>2])}if(H[f+171| -0]>=0)break k;Kb(J[f+160>>2])}if(H[f+115|0]>=0)break j;Kb(J[f+104>>2])}if(H[f+155|0]>=0)break i;Kb(J[f+144>>2])}if(H[f+139|0]>=0)break h;Kb(J[f+128>>2])}if(H[f+127|0]>=0)break b;Kb(J[f+116>>2]);break b}e=Z()|0;break b}J[195395]=0;fa(1960,c|0,f+272|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break d}J[195395]=0;ea(1958,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;W:{if((b|0)!=1){J[f+256>>2]=a;J[f+260>>2]=4;J[f+264>>2]=-2147483640;b=J[99525];J[a+8>> -2]=J[99524];J[a+12>>2]=b;b=J[99523];J[a>>2]=J[99522];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[f+240>>2]=0;H[f+251|0]=0;ia(1961,c|0,f+256|0,f+272|0,f+240|0);a=J[195395];J[195395]=0;if((a|0)==1)break W;if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);a=J[f+272>>2];if(a){b=J[f+276>>2];d=a;if((b|0)!=(a|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((a|0)!=(b|0))continue;break}d=J[f+272>>2]}J[f+276>>2]=a;Kb(d)}if(H[f+299|0]<0)Kb(J[f+288>>2]);xb=f+304| -0;return}e=Z()|0;break c}e=Z()|0;if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+267|0]>=0)break c;Kb(J[f+256>>2]);break c}e=Z()|0}Hc(f+272|0)}if(H[f+299|0]>=0)break a;Kb(J[f+288>>2])}ba(e|0);B()}function r2(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-304|0;xb=f;l=O[e+24>>3];k=O[e+8>>3];j=O[e+16>>3];i=O[e>>3];b=J[a+80>>2];a:{if(!b)break a;if(!(O[(Ab[J[J[b>>2]+72>>2]](b,2)|0)+24>>3]<0))break a;d=-d;c=-c}b=f+272|0;ff(b,i,-1);J[195395]=0;b=aa(1954,b|0,0,398272)|0;e=J[195395];J[195395]= -0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{if((e|0)!=1){e=f- -64|0;J[e>>2]=J[b+8>>2];h=J[b+4>>2];J[f+56>>2]=J[b>>2];J[f+60>>2]=h;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+56|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break T;J[f+16>>2]=J[e>>2];J[e>>2]=0;b=J[f+60>>2];J[f+8>>2]=J[f+56>>2];J[f+12>>2]=b;J[f+56>>2]=0;J[f+60>>2]=0;J[195395]=0;b=f+256|0;da(1863,b|0,+k,-1);e=J[195395];J[195395]=0;if((e| -0)==1)break S;J[195395]=0;g=b;b=K[f+267|0];e=b<<24>>24<0;b=aa(1864,f+8|0,(e?J[f+256>>2]:g)|0,(e?J[f+260>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break R;J[f+296>>2]=J[b+8>>2];e=J[b+4>>2];J[f+288>>2]=J[b>>2];J[f+292>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+67|0]<0)Kb(J[f+56>>2]);if(H[f+283|0]<0)Kb(J[f+272>>2]);J[195395]=0;b=f+116|0;j=i+j;da(1863,b|0,+(R(j-i)*.5),-1);e=J[195395];J[195395]=0;if((e|0)==1)break N;J[195395]=0;b=aa(1954, -b|0,0,398444)|0;e=J[195395];J[195395]=0;if((e|0)==1)break M;J[f+136>>2]=J[b+8>>2];e=J[b+4>>2];J[f+128>>2]=J[b>>2];J[f+132>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+128|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break L;J[f+152>>2]=J[f+136>>2];J[f+136>>2]=0;b=J[f+132>>2];J[f+144>>2]=J[f+128>>2];J[f+148>>2]=b;J[f+128>>2]=0;J[f+132>>2]=0;J[195395]=0;b=f+104|0;i=k+l;da(1863,b|0,+(R(i-k)*.5),-1);e=J[195395];J[195395]=0;if((e|0)==1)break K;J[195395]=0;g=b;b=K[f+115|0];e=b<<24>>24<0;b= -aa(1864,f+144|0,(e?J[f+104>>2]:g)|0,(e?J[f+108>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break J;J[f+168>>2]=J[b+8>>2];e=J[b+4>>2];J[f+160>>2]=J[b>>2];J[f+164>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+160|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break I;J[f+184>>2]=J[f+168>>2];J[f+168>>2]=0;b=J[f+164>>2];J[f+176>>2]=J[f+160>>2];J[f+180>>2]=b;J[f+160>>2]=0;J[f+164>>2]=0;J[195395]=0;b=ca(1858,f+176|0,398632)|0;e=J[195395];J[195395]=0;if((e|0)==1)break H;J[f+200>>2]=J[b+8>> -2];e=J[b+4>>2];J[f+192>>2]=J[b>>2];J[f+196>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;c=R(d-c);b=ca(1858,f+192|0,(c<=180?398824:398984)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break G;J[f+216>>2]=J[b+8>>2];e=J[b+4>>2];J[f+208>>2]=J[b>>2];J[f+212>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+208|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break F;J[f+232>>2]=J[f+216>>2];J[f+216>>2]=0;b=J[f+212>>2];J[f+224>>2]=J[f+208>>2];J[f+228>>2]=b;J[f+208>>2]=0;J[f+212>>2]=0;J[195395]=0; -b=ca(1858,f+224|0,(c<=180?398984:398824)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break E;J[f+248>>2]=J[b+8>>2];e=J[b+4>>2];J[f+240>>2]=J[b>>2];J[f+244>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break D;J[f+264>>2]=J[f+248>>2];J[f+248>>2]=0;b=J[f+244>>2];J[f+256>>2]=J[f+240>>2];J[f+260>>2]=b;J[f+240>>2]=0;J[f+244>>2]=0;J[195395]=0;b=f+92|0;da(1863,b|0,+j,-1);e=J[195395];J[195395]=0;if((e|0)==1)break C;J[195395]=0;g=b;b=K[f+103|0];e=b<< -24>>24<0;b=aa(1864,f+256|0,(e?J[f+92>>2]:g)|0,(e?J[f+96>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break B;J[f+280>>2]=J[b+8>>2];e=J[b+4>>2];J[f+272>>2]=J[b>>2];J[f+276>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+272|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break A;J[f- -64>>2]=J[f+280>>2];J[f+280>>2]=0;b=J[f+276>>2];J[f+56>>2]=J[f+272>>2];J[f+60>>2]=b;J[f+272>>2]=0;J[f+276>>2]=0;J[195395]=0;b=f+80|0;da(1863,b|0,+i,-1);e=J[195395];J[195395]=0;if((e|0)==1)break z;J[195395]=0; -g=b;b=K[f+91|0];e=b<<24>>24<0;b=aa(1864,f+56|0,(e?J[f+80>>2]:g)|0,(e?J[f+84>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break y;J[f+16>>2]=J[b+8>>2];e=J[b+4>>2];J[f+8>>2]=J[b>>2];J[f+12>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[f+19|0];e=b<<24>>24<0;aa(1864,f+288|0,(e?J[f+8>>2]:f+8|0)|0,(e?J[f+12>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break x;if(H[f+19|0]<0)Kb(J[f+8>>2]);if(H[f+91|0]<0)Kb(J[f+80>>2]);if(H[f+67|0]<0)Kb(J[f+56>>2]);if(H[f+283|0]<0)Kb(J[f+272>>2]);if(H[f+103| -0]<0)Kb(J[f+92>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+235|0]<0)Kb(J[f+224>>2]);if(H[f+219|0]<0)Kb(J[f+208>>2]);if(H[f+203|0]<0)Kb(J[f+192>>2]);if(H[f+187|0]<0)Kb(J[f+176>>2]);if(H[f+171|0]<0)Kb(J[f+160>>2]);if(H[f+115|0]<0)Kb(J[f+104>>2]);if(H[f+155|0]<0)Kb(J[f+144>>2]);if(H[f+139|0]<0)Kb(J[f+128>>2]);if(H[f+127|0]<0)Kb(J[f+116>>2]);J[195395]=0;b=aa(1962,f+56|0,397860,f+288|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break h;J[f+280>>2]=0;J[f+272>>2]=0;J[f+276>>2]= -0;J[195395]=0;H[f+12|0]=0;J[f+8>>2]=f+272;e=_(1078,24)|0;h=J[195395];J[195395]=0;U:{V:{if((h|0)!=1){J[f+276>>2]=e;J[f+272>>2]=e;J[195395]=0;J[f+280>>2]=e+24;h=ha(1957,f+280|0,b|0,b+24|0,e|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break U;a=Z()|0;J[f+276>>2]=e;break V}a=Z()|0}Kc(f+8|0);Vb(b);break c}J[f+276>>2]=h;if(H[b+23|0]<0)Kb(J[b+12>>2]);e=a+8|0;if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;h=f+272|0;$(1963,e|0,h|0);b=J[195395];J[195395]=0;if((b|0)==1)break e;J[195395]=0;$(1964,e|0,h|0);b=J[195395];J[195395]= -0;if((b|0)==1)break e;b=J[a+80>>2];g=J[J[b>>2]+108>>2];J[195395]=0;b=_(g|0,b|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break e;if((b|0)!=1)break g;J[195395]=0;b=f+8|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;g=J[195395];J[195395]=0;W:{if((g|0)==1)break W;a=J[a+80>>2];g=J[J[a>>2]+72>>2];J[195395]=0;a=ca(g|0,a|0,2)|0;g=J[195395];J[195395]=0;if((g|0)==1)break W;J[195395]=0;Rd(b, -a);a=J[195395];J[195395]=0;if((a|0)==1)break W;O[b+24>>3]=-O[b+24>>3];J[195395]=0;fa(1960,e|0,h|0,b|0);a=J[195395];J[195395]=0;if((a|0)!=1)break f}a=Z()|0;break d}a=Z()|0;break O}a=Z()|0;break P}a=Z()|0;break Q}a=Z()|0;if(H[f+267|0]>=0)break Q;Kb(J[f+256>>2])}if(H[f+19|0]>=0)break P;Kb(J[f+8>>2])}if(H[f+67|0]>=0)break O;Kb(J[f+56>>2])}if(H[f+283|0]>=0)break b;Kb(J[f+272>>2]);ba(a|0);B()}a=Z()|0;break c}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n}a= -Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;break w}a=Z()|0;if(H[f+19|0]>=0)break w;Kb(J[f+8>>2])}if(H[f+91|0]>=0)break v;Kb(J[f+80>>2])}if(H[f+67|0]>=0)break u;Kb(J[f+56>>2])}if(H[f+283|0]>=0)break t;Kb(J[f+272>>2])}if(H[f+103|0]>=0)break s;Kb(J[f+92>>2])}if(H[f+267|0]>=0)break r;Kb(J[f+256>>2])}if(H[f+251|0]>=0)break q;Kb(J[f+240>>2])}if(H[f+235|0]>=0)break p;Kb(J[f+224>>2])}if(H[f+219|0]>=0)break o;Kb(J[f+ -208>>2])}if(H[f+203|0]>=0)break n;Kb(J[f+192>>2])}if(H[f+187|0]>=0)break m;Kb(J[f+176>>2])}if(H[f+171|0]>=0)break l;Kb(J[f+160>>2])}if(H[f+115|0]>=0)break k;Kb(J[f+104>>2])}if(H[f+155|0]>=0)break j;Kb(J[f+144>>2])}if(H[f+139|0]>=0)break i;Kb(J[f+128>>2])}if(H[f+127|0]>=0)break c;Kb(J[f+116>>2]);break c}a=Z()|0;break c}J[195395]=0;fa(1960,e|0,f+272|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e}J[195395]=0;ea(1958,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;b=J[195395]; -J[195395]=0;X:{if((b|0)!=1){J[f+256>>2]=a;J[f+260>>2]=4;J[f+264>>2]=-2147483640;b=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=b;b=J[99523];J[a>>2]=J[99522];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[f+240>>2]=0;H[f+251|0]=0;ia(1961,e|0,f+256|0,f+272|0,f+240|0);a=J[195395];J[195395]=0;if((a|0)==1)break X;if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+267|0]<0)Kb(J[f+256>>2]);a=J[f+272>>2];if(a){b=a;e=J[f+276>>2];if((b|0)!=(e|0)){while(1){if(H[e-1|0]<0)Kb(J[e-12>>2]);b=e-24|0;if(H[e-13|0]<0)Kb(J[b>>2]);e=b;if((b|0)!= -(a|0))continue;break}b=J[f+272>>2]}J[f+276>>2]=a;Kb(b)}if(H[f+299|0]<0)Kb(J[f+288>>2]);xb=f+304|0;return}a=Z()|0;break d}a=Z()|0;if(H[f+251|0]<0)Kb(J[f+240>>2]);if(H[f+267|0]>=0)break d;Kb(J[f+256>>2]);break d}a=Z()|0}Hc(f+272|0)}if(H[f+299|0]>=0)break b;Kb(J[f+288>>2])}ba(a|0);B()}function vB(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;d=xb-288|0;xb=d;a:{b:{c:{d:{e:{f:{b=J[c>>2];g:{if(J[c+4>>2]-b>>>0<32)break g;e=d+224|0;ff(e,+J[b>>2],-1);J[195395]=0;b=aa(1954,e|0,0,398272)|0;e=J[195395]; -J[195395]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{if((e|0)!=1){J[d+248>>2]=J[b+8>>2];e=J[b+4>>2];J[d+240>>2]=J[b>>2];J[d+244>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break X;J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0;b=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=b;J[d+240>>2]=0;J[d+244>>2]=0;b=J[J[c>>2]+4>>2];J[195395]=0;e=d+208|0;da(1863,e|0, -+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break W;J[195395]=0;f=e;b=K[d+219|0];e=b<<24>>24<0;b=aa(1864,d+256|0,(e?J[d+208>>2]:f)|0,(e?J[d+212>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break V;J[d+16>>2]=J[b+8>>2];e=J[b+4>>2];J[d+8>>2]=J[b>>2];J[d+12>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+8|0,401516)|0;e=J[195395];J[195395]=0;if((e|0)==1)break U;J[d+280>>2]=J[b+8>>2];e=J[b+4>>2];J[d+272>>2]=J[b>>2];J[d+276>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[d+19|0]<0)Kb(J[d+ -8>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);e=J[c>>2];if(J[c+4>>2]-e>>>0>=25){g=3;b=1;while(1){f=e;e=b<<3;f=J[f+e>>2];J[195395]=0;h=d+96|0;da(1863,h|0,+(f|0),-1);f=J[195395];J[195395]=0;if((f|0)==1)break P;J[195395]=0;$(1811,h|0,32);f=J[195395];J[195395]=0;if((f|0)==1)break O;J[d+120>>2]=J[d+104>>2];J[d+104>>2]=0;f=J[d+100>>2];J[d+112>>2]=J[d+96>>2];J[d+116>>2]=f;J[d+96>>2]=0;J[d+100>>2]=0;e=J[(e+J[c>>2]|0)+ -4>>2];J[195395]=0;f=d+84|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break N;J[195395]=0;h=f;e=K[d+95|0];f=e<<24>>24<0;e=aa(1864,d+112|0,(f?J[d+84>>2]:h)|0,(f?J[d+88>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break M;J[d+136>>2]=J[e+8>>2];f=J[e+4>>2];J[d+128>>2]=J[e>>2];J[d+132>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+128|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break L;J[d+152>>2]=J[d+136>>2];J[d+136>>2]=0;e=J[d+132>>2];J[d+144>>2]=J[d+128>>2];J[d+148>> -2]=e;J[d+128>>2]=0;J[d+132>>2]=0;f=b+1<<3;e=J[f+J[c>>2]>>2];J[195395]=0;h=d+72|0;da(1863,h|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break K;J[195395]=0;i=h;e=K[d+83|0];h=e<<24>>24<0;e=aa(1864,d+144|0,(h?J[d+72>>2]:i)|0,(h?J[d+76>>2]:e)|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break J;J[d+168>>2]=J[e+8>>2];h=J[e+4>>2];J[d+160>>2]=J[e>>2];J[d+164>>2]=h;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+160|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break I;J[d+184>>2]=J[d+168>>2];J[d+168>> -2]=0;e=J[d+164>>2];J[d+176>>2]=J[d+160>>2];J[d+180>>2]=e;J[d+160>>2]=0;J[d+164>>2]=0;e=J[(f+J[c>>2]|0)+4>>2];J[195395]=0;f=d+60|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break H;J[195395]=0;h=f;e=K[d+71|0];f=e<<24>>24<0;e=aa(1864,d+176|0,(f?J[d+60>>2]:h)|0,(f?J[d+64>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break G;J[d+200>>2]=J[e+8>>2];f=J[e+4>>2];J[d+192>>2]=J[e>>2];J[d+196>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+192|0,32);e=J[195395];J[195395]=0;if((e| -0)==1)break F;J[d+216>>2]=J[d+200>>2];J[d+200>>2]=0;e=J[d+196>>2];J[d+208>>2]=J[d+192>>2];J[d+212>>2]=e;J[d+192>>2]=0;J[d+196>>2]=0;g=g<<3;e=J[g+J[c>>2]>>2];J[195395]=0;f=d+48|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break E;J[195395]=0;h=f;e=K[d+59|0];f=e<<24>>24<0;e=aa(1864,d+208|0,(f?J[d+48>>2]:h)|0,(f?J[d+52>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break D;J[d+232>>2]=J[e+8>>2];f=J[e+4>>2];J[d+224>>2]=J[e>>2];J[d+228>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]= -0;$(1811,d+224|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break C;J[d+248>>2]=J[d+232>>2];J[d+232>>2]=0;e=J[d+228>>2];J[d+240>>2]=J[d+224>>2];J[d+244>>2]=e;J[d+224>>2]=0;J[d+228>>2]=0;e=J[(g+J[c>>2]|0)+4>>2];J[195395]=0;g=d+36|0;da(1863,g|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break B;J[195395]=0;f=g;e=K[d+47|0];g=e<<24>>24<0;e=aa(1864,d+240|0,(g?J[d+36>>2]:f)|0,(g?J[d+40>>2]:e)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break A;J[d+264>>2]=J[e+8>>2];g=J[e+4>>2];J[d+256>>2]=J[e>>2];J[d+260>> -2]=g;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+256|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break z;J[d+16>>2]=J[d+264>>2];J[d+264>>2]=0;g=J[d+260>>2];e=J[d+256>>2];J[d+8>>2]=e;J[d+12>>2]=g;J[d+256>>2]=0;J[d+260>>2]=0;J[195395]=0;f=e;e=H[d+19|0];g=(e|0)<0;aa(1864,d+272|0,(g?f:d+8|0)|0,(g?J[d+12>>2]:e&255)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break y;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235| -0]<0)Kb(J[d+224>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+203|0]<0)Kb(J[d+192>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+187|0]<0)Kb(J[d+176>>2]);if(H[d+171|0]<0)Kb(J[d+160>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+139|0]<0)Kb(J[d+128>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+123|0]<0)Kb(J[d+112>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);g=b+5|0;b=b+3|0;e=J[c>>2];if(J[c+4>>2]-e>>3>>>0>g>>>0)continue;break}}J[195395]=0;b=aa(1962,d+8|0,397860, -d+272|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break h;e=Z()|0;break b}e=Z()|0;break Q}e=Z()|0;break R}e=Z()|0;break S}e=Z()|0;break T}e=Z()|0;if(H[d+19|0]>=0)break T;Kb(J[d+8>>2])}if(H[d+219|0]>=0)break S;Kb(J[d+208>>2])}if(H[d+267|0]>=0)break R;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break Q;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break a;Kb(J[d+224>>2]);ba(e|0);B()}e=Z()|0;break b}e=Z()|0;break i}e=Z()|0;break j}e=Z()|0;break k}e=Z()|0;break l}e=Z()|0;break m}e=Z()|0;break n}e=Z()|0;break o}e=Z()|0;break p}e= -Z()|0;break q}e=Z()|0;break r}e=Z()|0;break s}e=Z()|0;break t}e=Z()|0;break u}e=Z()|0;break v}e=Z()|0;break w}e=Z()|0;break x}e=Z()|0;if(H[d+19|0]>=0)break x;Kb(J[d+8>>2])}if(H[d+267|0]>=0)break w;Kb(J[d+256>>2])}if(H[d+47|0]>=0)break v;Kb(J[d+36>>2])}if(H[d+251|0]>=0)break u;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break t;Kb(J[d+224>>2])}if(H[d+59|0]>=0)break s;Kb(J[d+48>>2])}if(H[d+219|0]>=0)break r;Kb(J[d+208>>2])}if(H[d+203|0]>=0)break q;Kb(J[d+192>>2])}if(H[d+71|0]>=0)break p;Kb(J[d+60>>2])}if(H[d+ -187|0]>=0)break o;Kb(J[d+176>>2])}if(H[d+171|0]>=0)break n;Kb(J[d+160>>2])}if(H[d+83|0]>=0)break m;Kb(J[d+72>>2])}if(H[d+155|0]>=0)break l;Kb(J[d+144>>2])}if(H[d+139|0]>=0)break k;Kb(J[d+128>>2])}if(H[d+95|0]>=0)break j;Kb(J[d+84>>2])}if(H[d+123|0]>=0)break i;Kb(J[d+112>>2])}if(H[d+107|0]>=0)break b;Kb(J[d+96>>2]);break b}J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;J[195395]=0;H[d+244|0]=0;J[d+240>>2]=d+256;c=_(1078,24)|0;e=J[195395];J[195395]=0;Y:{Z:{if((e|0)!=1){J[d+260>>2]=c;J[d+256>>2]=c;J[195395]= -0;J[d+264>>2]=c+24;e=ha(1957,d+264|0,b|0,b+24|0,c|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break Y;e=Z()|0;J[d+260>>2]=c;break Z}e=Z()|0}Kc(d+240|0);Vb(b);break b}J[d+260>>2]=e;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+256|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;$(1964,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,b|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break e;J[d+240>>2]=a;J[d+244>>2]=4;J[d+248>>2]=-2147483640;e=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=e;e=J[99523];J[a>>2]=J[99522];J[a+4>>2]=e;J[a+16>>2]=0;J[195395]=0;J[d+224>>2]=0;H[d+235|0]=0;ia(1961,b|0,d+240|0,c|0,d+224|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);a=J[d+256>>2];if(a){b=a;c=J[d+260>>2];if((b|0)!=(c|0)){while(1){if(H[c- -1|0]<0)Kb(J[c-12>>2]);b=c-24|0;if(H[c-13|0]<0)Kb(J[b>>2]);c=b;if((b|0)!=(a|0))continue;break}b=J[d+256>>2]}J[d+260>>2]=a;Kb(b)}if(H[d+283|0]>=0)break g;Kb(J[d+272>>2])}xb=d+288|0;return}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+251|0]>=0)break c;Kb(J[d+240>>2])}Hc(d+256|0)}if(H[d+283|0]>=0)break a;Kb(J[d+272>>2])}ba(e|0);B()}function uB(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;d=xb-288|0;xb=d;a:{b:{c:{d:{e:{f:{b=J[c>>2];g:{if(J[c+4>>2]-b>>>0<16)break g; -e=d+224|0;ff(e,+I[b>>1],-1);J[195395]=0;b=aa(1954,e|0,0,398272)|0;e=J[195395];J[195395]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{if((e|0)!=1){J[d+248>>2]=J[b+8>>2];e=J[b+4>>2];J[d+240>>2]=J[b>>2];J[d+244>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break X;J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0;b=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=b;J[d+ -240>>2]=0;J[d+244>>2]=0;b=I[J[c>>2]+2>>1];J[195395]=0;e=d+208|0;da(1863,e|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break W;J[195395]=0;f=e;b=K[d+219|0];e=b<<24>>24<0;b=aa(1864,d+256|0,(e?J[d+208>>2]:f)|0,(e?J[d+212>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break V;J[d+16>>2]=J[b+8>>2];e=J[b+4>>2];J[d+8>>2]=J[b>>2];J[d+12>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+8|0,401516)|0;e=J[195395];J[195395]=0;if((e|0)==1)break U;J[d+280>>2]=J[b+8>>2];e=J[b+4>>2];J[d+272>> -2]=J[b>>2];J[d+276>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);e=J[c>>2];if(J[c+4>>2]-e>>>0>=13){g=3;b=1;while(1){f=e;e=b<<2;f=I[f+e>>1];J[195395]=0;h=d+96|0;da(1863,h|0,+(f|0),-1);f=J[195395];J[195395]=0;if((f|0)==1)break P;J[195395]=0;$(1811,h|0,32);f=J[195395];J[195395]=0;if((f|0)==1)break O;J[d+120>>2]=J[d+104>>2];J[d+104>>2]=0;f=J[d+100>>2]; -J[d+112>>2]=J[d+96>>2];J[d+116>>2]=f;J[d+96>>2]=0;J[d+100>>2]=0;e=I[(e+J[c>>2]|0)+2>>1];J[195395]=0;f=d+84|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break N;J[195395]=0;h=f;e=K[d+95|0];f=e<<24>>24<0;e=aa(1864,d+112|0,(f?J[d+84>>2]:h)|0,(f?J[d+88>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break M;J[d+136>>2]=J[e+8>>2];f=J[e+4>>2];J[d+128>>2]=J[e>>2];J[d+132>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+128|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break L;J[d+ -152>>2]=J[d+136>>2];J[d+136>>2]=0;e=J[d+132>>2];J[d+144>>2]=J[d+128>>2];J[d+148>>2]=e;J[d+128>>2]=0;J[d+132>>2]=0;f=b+1<<2;e=I[f+J[c>>2]>>1];J[195395]=0;h=d+72|0;da(1863,h|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break K;J[195395]=0;i=h;e=K[d+83|0];h=e<<24>>24<0;e=aa(1864,d+144|0,(h?J[d+72>>2]:i)|0,(h?J[d+76>>2]:e)|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break J;J[d+168>>2]=J[e+8>>2];h=J[e+4>>2];J[d+160>>2]=J[e>>2];J[d+164>>2]=h;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+160| -0,32);e=J[195395];J[195395]=0;if((e|0)==1)break I;J[d+184>>2]=J[d+168>>2];J[d+168>>2]=0;e=J[d+164>>2];J[d+176>>2]=J[d+160>>2];J[d+180>>2]=e;J[d+160>>2]=0;J[d+164>>2]=0;e=I[(f+J[c>>2]|0)+2>>1];J[195395]=0;f=d+60|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break H;J[195395]=0;h=f;e=K[d+71|0];f=e<<24>>24<0;e=aa(1864,d+176|0,(f?J[d+60>>2]:h)|0,(f?J[d+64>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break G;J[d+200>>2]=J[e+8>>2];f=J[e+4>>2];J[d+192>>2]=J[e>>2];J[d+196>>2]=f;J[e>>2]= -0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+192|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break F;J[d+216>>2]=J[d+200>>2];J[d+200>>2]=0;e=J[d+196>>2];J[d+208>>2]=J[d+192>>2];J[d+212>>2]=e;J[d+192>>2]=0;J[d+196>>2]=0;g=g<<2;e=I[g+J[c>>2]>>1];J[195395]=0;f=d+48|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break E;J[195395]=0;h=f;e=K[d+59|0];f=e<<24>>24<0;e=aa(1864,d+208|0,(f?J[d+48>>2]:h)|0,(f?J[d+52>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break D;J[d+232>>2]=J[e+8>>2];f= -J[e+4>>2];J[d+224>>2]=J[e>>2];J[d+228>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+224|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break C;J[d+248>>2]=J[d+232>>2];J[d+232>>2]=0;e=J[d+228>>2];J[d+240>>2]=J[d+224>>2];J[d+244>>2]=e;J[d+224>>2]=0;J[d+228>>2]=0;e=I[(g+J[c>>2]|0)+2>>1];J[195395]=0;g=d+36|0;da(1863,g|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break B;J[195395]=0;f=g;e=K[d+47|0];g=e<<24>>24<0;e=aa(1864,d+240|0,(g?J[d+36>>2]:f)|0,(g?J[d+40>>2]:e)|0)|0;g=J[195395];J[195395]= -0;if((g|0)==1)break A;J[d+264>>2]=J[e+8>>2];g=J[e+4>>2];J[d+256>>2]=J[e>>2];J[d+260>>2]=g;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+256|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break z;J[d+16>>2]=J[d+264>>2];J[d+264>>2]=0;g=J[d+260>>2];e=J[d+256>>2];J[d+8>>2]=e;J[d+12>>2]=g;J[d+256>>2]=0;J[d+260>>2]=0;J[195395]=0;f=e;e=H[d+19|0];g=(e|0)<0;aa(1864,d+272|0,(g?f:d+8|0)|0,(g?J[d+12>>2]:e&255)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break y;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+267|0]<0)Kb(J[d+ -256>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+203|0]<0)Kb(J[d+192>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+187|0]<0)Kb(J[d+176>>2]);if(H[d+171|0]<0)Kb(J[d+160>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+139|0]<0)Kb(J[d+128>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+123|0]<0)Kb(J[d+112>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);g=b+5|0;b=b+3|0;e=J[c>> -2];if(J[c+4>>2]-e>>2>>>0>g>>>0)continue;break}}J[195395]=0;b=aa(1962,d+8|0,397860,d+272|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break h;e=Z()|0;break b}e=Z()|0;break Q}e=Z()|0;break R}e=Z()|0;break S}e=Z()|0;break T}e=Z()|0;if(H[d+19|0]>=0)break T;Kb(J[d+8>>2])}if(H[d+219|0]>=0)break S;Kb(J[d+208>>2])}if(H[d+267|0]>=0)break R;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break Q;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break a;Kb(J[d+224>>2]);ba(e|0);B()}e=Z()|0;break b}e=Z()|0;break i}e=Z()|0;break j}e=Z()|0;break k}e= -Z()|0;break l}e=Z()|0;break m}e=Z()|0;break n}e=Z()|0;break o}e=Z()|0;break p}e=Z()|0;break q}e=Z()|0;break r}e=Z()|0;break s}e=Z()|0;break t}e=Z()|0;break u}e=Z()|0;break v}e=Z()|0;break w}e=Z()|0;break x}e=Z()|0;if(H[d+19|0]>=0)break x;Kb(J[d+8>>2])}if(H[d+267|0]>=0)break w;Kb(J[d+256>>2])}if(H[d+47|0]>=0)break v;Kb(J[d+36>>2])}if(H[d+251|0]>=0)break u;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break t;Kb(J[d+224>>2])}if(H[d+59|0]>=0)break s;Kb(J[d+48>>2])}if(H[d+219|0]>=0)break r;Kb(J[d+208>>2])}if(H[d+ -203|0]>=0)break q;Kb(J[d+192>>2])}if(H[d+71|0]>=0)break p;Kb(J[d+60>>2])}if(H[d+187|0]>=0)break o;Kb(J[d+176>>2])}if(H[d+171|0]>=0)break n;Kb(J[d+160>>2])}if(H[d+83|0]>=0)break m;Kb(J[d+72>>2])}if(H[d+155|0]>=0)break l;Kb(J[d+144>>2])}if(H[d+139|0]>=0)break k;Kb(J[d+128>>2])}if(H[d+95|0]>=0)break j;Kb(J[d+84>>2])}if(H[d+123|0]>=0)break i;Kb(J[d+112>>2])}if(H[d+107|0]>=0)break b;Kb(J[d+96>>2]);break b}J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;J[195395]=0;H[d+244|0]=0;J[d+240>>2]=d+256;c=_(1078,24)| -0;e=J[195395];J[195395]=0;Y:{Z:{if((e|0)!=1){J[d+260>>2]=c;J[d+256>>2]=c;J[195395]=0;J[d+264>>2]=c+24;e=ha(1957,d+264|0,b|0,b+24|0,c|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break Y;e=Z()|0;J[d+260>>2]=c;break Z}e=Z()|0}Kc(d+240|0);Vb(b);break b}J[d+260>>2]=e;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+256|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;$(1964,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,b| -0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break e;J[d+240>>2]=a;J[d+244>>2]=4;J[d+248>>2]=-2147483640;e=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=e;e=J[99523];J[a>>2]=J[99522];J[a+4>>2]=e;J[a+16>>2]=0;J[195395]=0;J[d+224>>2]=0;H[d+235|0]=0;ia(1961,b|0,d+240|0,c|0,d+224|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+251|0]< -0)Kb(J[d+240>>2]);a=J[d+256>>2];if(a){b=a;c=J[d+260>>2];if((b|0)!=(c|0)){while(1){if(H[c-1|0]<0)Kb(J[c-12>>2]);b=c-24|0;if(H[c-13|0]<0)Kb(J[b>>2]);c=b;if((b|0)!=(a|0))continue;break}b=J[d+256>>2]}J[d+260>>2]=a;Kb(b)}if(H[d+283|0]>=0)break g;Kb(J[d+272>>2])}xb=d+288|0;return}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+251|0]>=0)break c;Kb(J[d+240>>2])}Hc(d+256|0)}if(H[d+283|0]>=0)break a;Kb(J[d+272>>2])}ba(e|0);B()}function q2(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=xb-288|0;xb=d;a:{b:{c:{d:{e:{f:{b=J[c>>2];g:{if(J[c+4>>2]-b>>>0<64)break g;e=d+224|0;ff(e,O[b>>3],-1);J[195395]=0;b=aa(1954,e|0,0,398272)|0;e=J[195395];J[195395]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{if((e|0)!=1){J[d+248>>2]=J[b+8>>2];e=J[b+4>>2];J[d+240>>2]=J[b>>2];J[d+244>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+240|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break X; -J[d+264>>2]=J[d+248>>2];J[d+248>>2]=0;b=J[d+244>>2];J[d+256>>2]=J[d+240>>2];J[d+260>>2]=b;J[d+240>>2]=0;J[d+244>>2]=0;i=O[J[c>>2]+8>>3];J[195395]=0;b=d+208|0;da(1863,b|0,+i,-1);e=J[195395];J[195395]=0;if((e|0)==1)break W;J[195395]=0;h=b;b=K[d+219|0];e=b<<24>>24<0;b=aa(1864,d+256|0,(e?J[d+208>>2]:h)|0,(e?J[d+212>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break V;J[d+16>>2]=J[b+8>>2];e=J[b+4>>2];J[d+8>>2]=J[b>>2];J[d+12>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+8|0,401516)| -0;e=J[195395];J[195395]=0;if((e|0)==1)break U;J[d+280>>2]=J[b+8>>2];e=J[b+4>>2];J[d+272>>2]=J[b>>2];J[d+276>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);e=J[c>>2];if(J[c+4>>2]-e>>>0>=49){g=3;b=1;while(1){h=e;e=b<<4;i=O[h+e>>3];J[195395]=0;f=d+96|0;da(1863,f|0,+i,-1);j=J[195395];J[195395]=0;if((j|0)==1)break P;J[195395]=0;$(1811,f|0,32);f=J[195395]; -J[195395]=0;if((f|0)==1)break O;J[d+120>>2]=J[d+104>>2];J[d+104>>2]=0;f=J[d+100>>2];J[d+112>>2]=J[d+96>>2];J[d+116>>2]=f;J[d+96>>2]=0;J[d+100>>2]=0;i=O[(e+J[c>>2]|0)+8>>3];J[195395]=0;e=d+84|0;da(1863,e|0,+i,-1);f=J[195395];J[195395]=0;if((f|0)==1)break N;J[195395]=0;h=e;e=K[d+95|0];f=e<<24>>24<0;e=aa(1864,d+112|0,(f?J[d+84>>2]:h)|0,(f?J[d+88>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break M;J[d+136>>2]=J[e+8>>2];f=J[e+4>>2];J[d+128>>2]=J[e>>2];J[d+132>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]= -0;J[195395]=0;$(1811,d+128|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break L;J[d+152>>2]=J[d+136>>2];J[d+136>>2]=0;e=J[d+132>>2];J[d+144>>2]=J[d+128>>2];J[d+148>>2]=e;J[d+128>>2]=0;J[d+132>>2]=0;f=b+1<<4;i=O[f+J[c>>2]>>3];J[195395]=0;e=d+72|0;da(1863,e|0,+i,-1);j=J[195395];J[195395]=0;if((j|0)==1)break K;J[195395]=0;h=e;e=K[d+83|0];j=e<<24>>24<0;e=aa(1864,d+144|0,(j?J[d+72>>2]:h)|0,(j?J[d+76>>2]:e)|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break J;J[d+168>>2]=J[e+8>>2];j=J[e+4>>2];J[d+160>>2]=J[e>> -2];J[d+164>>2]=j;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+160|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break I;J[d+184>>2]=J[d+168>>2];J[d+168>>2]=0;e=J[d+164>>2];J[d+176>>2]=J[d+160>>2];J[d+180>>2]=e;J[d+160>>2]=0;J[d+164>>2]=0;i=O[(f+J[c>>2]|0)+8>>3];J[195395]=0;e=d+60|0;da(1863,e|0,+i,-1);f=J[195395];J[195395]=0;if((f|0)==1)break H;J[195395]=0;h=e;e=K[d+71|0];f=e<<24>>24<0;e=aa(1864,d+176|0,(f?J[d+60>>2]:h)|0,(f?J[d+64>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break G;J[d+ -200>>2]=J[e+8>>2];f=J[e+4>>2];J[d+192>>2]=J[e>>2];J[d+196>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+192|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break F;J[d+216>>2]=J[d+200>>2];J[d+200>>2]=0;e=J[d+196>>2];J[d+208>>2]=J[d+192>>2];J[d+212>>2]=e;J[d+192>>2]=0;J[d+196>>2]=0;g=g<<4;i=O[g+J[c>>2]>>3];J[195395]=0;e=d+48|0;da(1863,e|0,+i,-1);f=J[195395];J[195395]=0;if((f|0)==1)break E;J[195395]=0;h=e;e=K[d+59|0];f=e<<24>>24<0;e=aa(1864,d+208|0,(f?J[d+48>>2]:h)|0,(f?J[d+52>>2]:e)|0)|0; -f=J[195395];J[195395]=0;if((f|0)==1)break D;J[d+232>>2]=J[e+8>>2];f=J[e+4>>2];J[d+224>>2]=J[e>>2];J[d+228>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+224|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break C;J[d+248>>2]=J[d+232>>2];J[d+232>>2]=0;e=J[d+228>>2];J[d+240>>2]=J[d+224>>2];J[d+244>>2]=e;J[d+224>>2]=0;J[d+228>>2]=0;i=O[(g+J[c>>2]|0)+8>>3];J[195395]=0;e=d+36|0;da(1863,e|0,+i,-1);g=J[195395];J[195395]=0;if((g|0)==1)break B;J[195395]=0;h=e;e=K[d+47|0];g=e<<24>>24<0;e=aa(1864,d+ -240|0,(g?J[d+36>>2]:h)|0,(g?J[d+40>>2]:e)|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break A;J[d+264>>2]=J[e+8>>2];g=J[e+4>>2];J[d+256>>2]=J[e>>2];J[d+260>>2]=g;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+256|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break z;J[d+16>>2]=J[d+264>>2];J[d+264>>2]=0;g=J[d+260>>2];e=J[d+256>>2];J[d+8>>2]=e;J[d+12>>2]=g;J[d+256>>2]=0;J[d+260>>2]=0;J[195395]=0;h=e;e=H[d+19|0];g=(e|0)<0;aa(1864,d+272|0,(g?h:d+8|0)|0,(g?J[d+12>>2]:e&255)|0)|0;e=J[195395];J[195395]= -0;if((e|0)==1)break y;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+267|0]<0)Kb(J[d+256>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+219|0]<0)Kb(J[d+208>>2]);if(H[d+203|0]<0)Kb(J[d+192>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+187|0]<0)Kb(J[d+176>>2]);if(H[d+171|0]<0)Kb(J[d+160>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+139|0]<0)Kb(J[d+128>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+123|0]< -0)Kb(J[d+112>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);g=b+5|0;b=b+3|0;e=J[c>>2];if(J[c+4>>2]-e>>4>>>0>g>>>0)continue;break}}J[195395]=0;b=aa(1962,d+8|0,397860,d+272|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break h;e=Z()|0;break b}e=Z()|0;break Q}e=Z()|0;break R}e=Z()|0;break S}e=Z()|0;break T}e=Z()|0;if(H[d+19|0]>=0)break T;Kb(J[d+8>>2])}if(H[d+219|0]>=0)break S;Kb(J[d+208>>2])}if(H[d+267|0]>=0)break R;Kb(J[d+256>>2])}if(H[d+251|0]>=0)break Q;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break a;Kb(J[d+224>>2]);ba(e| -0);B()}e=Z()|0;break b}e=Z()|0;break i}e=Z()|0;break j}e=Z()|0;break k}e=Z()|0;break l}e=Z()|0;break m}e=Z()|0;break n}e=Z()|0;break o}e=Z()|0;break p}e=Z()|0;break q}e=Z()|0;break r}e=Z()|0;break s}e=Z()|0;break t}e=Z()|0;break u}e=Z()|0;break v}e=Z()|0;break w}e=Z()|0;break x}e=Z()|0;if(H[d+19|0]>=0)break x;Kb(J[d+8>>2])}if(H[d+267|0]>=0)break w;Kb(J[d+256>>2])}if(H[d+47|0]>=0)break v;Kb(J[d+36>>2])}if(H[d+251|0]>=0)break u;Kb(J[d+240>>2])}if(H[d+235|0]>=0)break t;Kb(J[d+224>>2])}if(H[d+59|0]>= -0)break s;Kb(J[d+48>>2])}if(H[d+219|0]>=0)break r;Kb(J[d+208>>2])}if(H[d+203|0]>=0)break q;Kb(J[d+192>>2])}if(H[d+71|0]>=0)break p;Kb(J[d+60>>2])}if(H[d+187|0]>=0)break o;Kb(J[d+176>>2])}if(H[d+171|0]>=0)break n;Kb(J[d+160>>2])}if(H[d+83|0]>=0)break m;Kb(J[d+72>>2])}if(H[d+155|0]>=0)break l;Kb(J[d+144>>2])}if(H[d+139|0]>=0)break k;Kb(J[d+128>>2])}if(H[d+95|0]>=0)break j;Kb(J[d+84>>2])}if(H[d+123|0]>=0)break i;Kb(J[d+112>>2])}if(H[d+107|0]>=0)break b;Kb(J[d+96>>2]);break b}J[d+264>>2]=0;J[d+256>>2]= -0;J[d+260>>2]=0;J[195395]=0;H[d+244|0]=0;J[d+240>>2]=d+256;c=_(1078,24)|0;e=J[195395];J[195395]=0;Y:{Z:{if((e|0)!=1){J[d+260>>2]=c;J[d+256>>2]=c;J[195395]=0;J[d+264>>2]=c+24;e=ha(1957,d+264|0,b|0,b+24|0,c|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break Y;e=Z()|0;J[d+260>>2]=c;break Z}e=Z()|0}Kc(d+240|0);Vb(b);break b}J[d+260>>2]=e;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+256|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;$(1964,b|0, -c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break e;J[d+240>>2]=a;J[d+244>>2]=4;J[d+248>>2]=-2147483640;e=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=e;e=J[99523];J[a>>2]=J[99522];J[a+4>>2]=e;J[a+16>>2]=0;J[195395]=0;J[d+224>>2]=0;H[d+235|0]=0;ia(1961,b|0,d+240|0,c|0,d+224|0);a=J[195395];J[195395]= -0;if((a|0)==1)break d;if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+251|0]<0)Kb(J[d+240>>2]);a=J[d+256>>2];if(a){b=a;c=J[d+260>>2];if((b|0)!=(c|0)){while(1){if(H[c-1|0]<0)Kb(J[c-12>>2]);b=c-24|0;if(H[c-13|0]<0)Kb(J[b>>2]);c=b;if((b|0)!=(a|0))continue;break}b=J[d+256>>2]}J[d+260>>2]=a;Kb(b)}if(H[d+283|0]>=0)break g;Kb(J[d+272>>2])}xb=d+288|0;return}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+251|0]>=0)break c;Kb(J[d+240>>2])}Hc(d+256|0)}if(H[d+283|0]>=0)break a;Kb(J[d+272>> -2])}ba(e|0);B()}function Ak(a,b,c){var d=0,e=0,f=0,g=0,h=Q(0),i=Q(0);f=J[a+24>>2];a:{b:{c:{d:{if((b|0)<=1986098018){if((b|0)!=1751216995){if((b|0)!=1751413603){if((b|0)!=1751934832)break a;d=f+72|0;while(1){b=J[d>>2];if(b)break d;if(!J[f+48>>2]){b=169776;break d}b=vh(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b;if(!g)break d;wc(b);continue}}d=f+72|0;while(1){e:{b=J[d>>2];if(b)break e;if(!J[f+48>>2]){b=169776;break e}b=vh(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b;if(!g)break e;wc(b);continue}break}f:{g:{b= -M[b+16>>2]<78?169776:J[b+12>>2];if((K[b+62|0]|K[b+63|0]<<8)<<16>>16>=0)break g;while(1){h:{b=J[d>>2];if(b)break h;if(!J[f+48>>2]){b=169776;break h}b=vh(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b;if(!g)break h;wc(b);continue}break}b=M[b+16>>2]<78?169776:J[b+12>>2];if(!(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]|K[b+7|0]<<8)|(K[b+64|0]|K[b+65|0]<<8)))if(!(K[b+66|0]|K[b+67|0]<<8))break g;if(!c)break b;while(1){b=J[d>>2];if(b)break f;if(!J[f+48>>2]){b=169776;break f}b=vh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b; -if(!e)break f;wc(b);continue}}d=f- -64|0;while(1){i:{b=J[d>>2];if(b)break i;if(!J[f+48>>2]){b=169776;break i}b=qj(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b;if(!g)break i;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];if(!(K[b|0]|K[b+1|0]<<8))break a;if(!c)break b;while(1){j:{b=J[d>>2];if(b)break j;if(!J[f+48>>2]){b=169776;break j}b=qj(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break j;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b+6|0]|K[b+7|0]<<8;h=Q((b<<8|b>>>8)<<16>> -16);d=f+136|0;while(1){k:{b=J[d>>2];if(b)break k;if(!J[f+48>>2]){b=169776;break k}b=qh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break k;wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>>2],1751413603,J[a+108>>2],J[a+104>>2]);h=Q(Q(.5)-Q(N[a+68>>2]*Q(R(Q(i+h)))));break c}b=M[b+16>>2]<78?169776:J[b+12>>2];b=K[b+70|0]|K[b+71|0]<<8;h=Q((b<<8|b>>>8)<<16>>16);d=f+136|0;while(1){l:{b=J[d>>2];if(b)break l;if(!J[f+48>>2]){b=169776;break l}b=qh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break l; -wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>>2],1751413603,J[a+108>>2],J[a+104>>2]);h=Q(Q(.5)-Q(N[a+68>>2]*Q(R(Q(i+h)))));break c}d=f+72|0;while(1){m:{b=J[d>>2];if(b)break m;if(!J[f+48>>2]){b=169776;break m}b=vh(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b;if(!g)break m;wc(b);continue}break}n:{o:{b=M[b+16>>2]<78?169776:J[b+12>>2];if((K[b+62|0]|K[b+63|0]<<8)<<16>>16>=0)break o;while(1){p:{b=J[d>>2];if(b)break p;if(!J[f+48>>2]){b=169776;break p}b=vh(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b; -if(!g)break p;wc(b);continue}break}b=M[b+16>>2]<78?169776:J[b+12>>2];if(!(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]|K[b+7|0]<<8)|(K[b+64|0]|K[b+65|0]<<8)))if(!(K[b+66|0]|K[b+67|0]<<8))break o;if(!c)break b;while(1){b=J[d>>2];if(b)break n;if(!J[f+48>>2]){b=169776;break n}b=vh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break n;wc(b);continue}}d=f- -64|0;while(1){q:{b=J[d>>2];if(b)break q;if(!J[f+48>>2]){b=169776;break q}b=qj(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b;if(!g)break q;wc(b);continue}break}b=M[b+ -16>>2]<36?169776:J[b+12>>2];if(!(K[b|0]|K[b+1|0]<<8))break a;if(!c)break b;while(1){r:{b=J[d>>2];if(b)break r;if(!J[f+48>>2]){b=169776;break r}b=qj(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break r;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b+4|0]|K[b+5|0]<<8;h=Q((b<<8|b>>>8)<<16>>16);d=f+136|0;while(1){s:{b=J[d>>2];if(b)break s;if(!J[f+48>>2]){b=169776;break s}b=qh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break s;wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>> -2],1751216995,J[a+108>>2],J[a+104>>2]);h=Q(Q(N[a+68>>2]*Q(R(Q(i+h))))+Q(.5));break c}b=M[b+16>>2]<78?169776:J[b+12>>2];b=K[b+68|0]|K[b+69|0]<<8;h=Q((b<<8|b>>>8)<<16>>16);d=f+136|0;while(1){t:{b=J[d>>2];if(b)break t;if(!J[f+48>>2]){b=169776;break t}b=qh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break t;wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>>2],1751216995,J[a+108>>2],J[a+104>>2]);h=Q(Q(N[a+68>>2]*Q(R(Q(i+h))))+Q(.5));break c}u:{if((b|0)!=1986098019){if((b|0)!=1986294627){if((b| -0)!=1986815856)break a;d=f+92|0;while(1){b=J[d>>2];if(b)break u;if(!J[f+48>>2]){b=169776;break u}b=pj(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break u;wc(b);continue}}d=f+92|0;while(1){v:{b=J[d>>2];if(b)break v;if(!J[f+48>>2]){b=169776;break v}b=pj(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break v;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b|0]|K[b+1|0]<<8;e=(b|0)!=0;if(!c|!b)break a;while(1){w:{b=J[d>>2];if(b)break w;if(!J[f+48>>2]){b=169776;break w}b=pj(d);if(!b)b=169776; -e=J[d>>2];J[d>>2]=e?e:b;if(!e)break w;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b+6|0]|K[b+7|0]<<8;h=Q((b<<8|b>>>8)<<16>>16);d=f+136|0;while(1){x:{b=J[d>>2];if(b)break x;if(!J[f+48>>2]){b=169776;break x}b=qh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break x;wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>>2],1986294627,J[a+108>>2],J[a+104>>2]);h=Q(Q(.5)-Q(N[a+64>>2]*Q(R(Q(i+h)))));break c}d=f+92|0;while(1){y:{b=J[d>>2];if(b)break y;if(!J[f+48>>2]){b=169776;break y}b=pj(d); -if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break y;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b|0]|K[b+1|0]<<8;e=(b|0)!=0;if(!c|!b)break a;while(1){z:{b=J[d>>2];if(b)break z;if(!J[f+48>>2]){b=169776;break z}b=pj(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break z;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b+4|0]|K[b+5|0]<<8;h=Q((b<<8|b>>>8)<<16>>16);d=f+136|0;while(1){A:{b=J[d>>2];if(b)break A;if(!J[f+48>>2]){b=169776;break A}b=qh(d);if(!b)b=169776;e=J[d>>2]; -J[d>>2]=e?e:b;if(!e)break A;wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>>2],1986098019,J[a+108>>2],J[a+104>>2]);h=Q(Q(N[a+64>>2]*Q(R(Q(i+h))))+Q(.5));break c}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b|0]|K[b+1|0]<<8;e=(b|0)!=0;if(!c|!b)break a;while(1){B:{b=J[d>>2];if(b)break B;if(!J[f+48>>2]){b=169776;break B}b=pj(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break B;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b+8|0]|K[b+9|0]<<8;h=Q((b<<8|b>>>8)<<16>>16);d=f+136|0;while(1){C:{b= -J[d>>2];if(b)break C;if(!J[f+48>>2]){b=169776;break C}b=qh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break C;wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>>2],1986815856,J[a+108>>2],J[a+104>>2]);h=Q(Q(N[a+64>>2]*Q(i+h))+Q(.5));break c}D:{E:{b=M[b+16>>2]<78?169776:J[b+12>>2];if((K[b+62|0]|K[b+63|0]<<8)<<16>>16>=0)break E;while(1){F:{b=J[d>>2];if(b)break F;if(!J[f+48>>2]){b=169776;break F}b=vh(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b;if(!g)break F;wc(b);continue}break}b=M[b+16>>2]<78? -169776:J[b+12>>2];if(!(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]|K[b+7|0]<<8)|(K[b+64|0]|K[b+65|0]<<8)))if(!(K[b+66|0]|K[b+67|0]<<8))break E;if(!c)break b;while(1){b=J[d>>2];if(b)break D;if(!J[f+48>>2]){b=169776;break D}b=vh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break D;wc(b);continue}}d=f- -64|0;while(1){G:{b=J[d>>2];if(b)break G;if(!J[f+48>>2]){b=169776;break G}b=qj(d);if(!b)b=169776;g=J[d>>2];J[d>>2]=g?g:b;if(!g)break G;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];if(!(K[b|0]|K[b+1|0]<< -8))break a;if(!c)break b;while(1){H:{b=J[d>>2];if(b)break H;if(!J[f+48>>2]){b=169776;break H}b=qj(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break H;wc(b);continue}break}b=M[b+16>>2]<36?169776:J[b+12>>2];b=K[b+8|0]|K[b+9|0]<<8;h=Q((b<<8|b>>>8)<<16>>16);d=f+136|0;while(1){I:{b=J[d>>2];if(b)break I;if(!J[f+48>>2]){b=169776;break I}b=qh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break I;wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>>2],1751934832,J[a+108>>2],J[a+104>>2]);h=Q(Q(N[a+ -68>>2]*Q(i+h))+Q(.5));break c}b=M[b+16>>2]<78?169776:J[b+12>>2];b=K[b+72|0]|K[b+73|0]<<8;h=Q((b<<8|b>>>8)<<16>>16);d=f+136|0;while(1){J:{b=J[d>>2];if(b)break J;if(!J[f+48>>2]){b=169776;break J}b=qh(d);if(!b)b=169776;e=J[d>>2];J[d>>2]=e?e:b;if(!e)break J;wc(b);continue}break}i=ph(M[b+16>>2]<12?169776:J[b+12>>2],1751934832,J[a+108>>2],J[a+104>>2]);h=Q(Q(N[a+68>>2]*Q(i+h))+Q(.5))}h=Q(V(h));K:{if(Q(R(h))>2]=a}e=1}return e}function aS(a){a=a|0;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;f=xb-80|0;xb=f;j=J[a+8>>2];a:{if(!j){b=6;break a}l=J[a>>2];c=J[a+4>>2];b:{if(J[c+12>>2]>1)break b;Yg(c);if(J[c+12>>2]>1)break b;e=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=e>>>0)break b;d=b+1|0;J[c>>2]=d;g=K[b|0];b=d;if(!(1<>>0>26)continue;break}}while(1){c:{J[c+12>>2]=0;d=al(c);if(d)break c;b=2;if(J[c+12>>2]==2)continue;break a}break}b=2;if((J[c>>2]+(d^-1)|0)!=16)break a;if(Zb(d,9081,16))break a;g=160;d:{e:{f:{g:while(1){c=J[a+4>>2];h:{if(J[c+ -12>>2]>1)break h;Yg(c);if(J[c+12>>2]>1)break h;h=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=h>>>0)break h;d=b+1|0;J[c>>2]=d;e=K[b|0];b=d;if(!(1<>>0>26)continue;break}}while(1){i:{J[c+12>>2]=0;b=al(c);if(b)break i;if(J[c+12>>2]==2)continue;break d}break}h=J[c>>2]+(b^-1)|0;d=0;e=K[b|0];while(1){j:{if((e|0)==K[J[(d<<2)+30800>>2]]){c=d;break j}c=d|1;if((e|0)==K[J[(c<<2)+30800>>2]])break j;d=d+2|0;if((d|0)!=74)continue;continue g}break}d=(c|0)<=73?73:c;while(1){i=J[(c<<2)+30800>>2];if((e|0)!= -K[i|0])continue g;if(Zb(i,b,h)){i=(c|0)==(d|0);c=c+1|0;if(i)continue g;continue}break}b=0;k:{l:switch(c|0){case 40:J[f+32>>2]=3;if((qg(a,f+32|0,1)|0)!=1)break d;if(!(J[f+36>>2]&-3))continue;g=7;break d;case 30:J[f>>2]=4;if((qg(a,f,1)|0)!=1)break d;H[j|0]=K[f+4|0];continue;case 26:J[f+24>>2]=2;J[f+16>>2]=2;J[f+8>>2]=2;J[f>>2]=2;if((qg(a,f,4)|0)!=4)break d;J[j+4>>2]=J[f+4>>2];J[j+8>>2]=J[f+12>>2];J[j+12>>2]=J[f+20>>2];J[j+16>>2]=J[f+28>>2];continue;case 0:J[f>>2]=2;if((qg(a,f,1)|0)!=1)break d;J[j+20>> -2]=J[f+4>>2];continue;case 14:J[f>>2]=2;if((qg(a,f,1)|0)!=1)break d;J[j+24>>2]=J[f+4>>2];continue;case 45:J[f+32>>2]=3;if((qg(a,f+32|0,1)|0)!=1)break d;c=J[f+36>>2];if((c|0)<=0)break k;m:while(1){i=J[a+4>>2];n:{if(J[i+12>>2]>=2){d=J[i>>2];h=J[i+8>>2];break n}Yg(i);d=J[i>>2];h=J[i+8>>2];if(J[i+12>>2]>1)break n;while(1){if(d>>>0>=h>>>0)break n;b=d+1|0;J[i>>2]=b;g=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[i+12>>2]=0;if(d>>>0>=h>>>0)break f;e=c-1|0;while(1){b=d+1|0;J[i>>2]=b;o:switch(K[d| -0]-9|0){case 0:case 23:d=b;if((b|0)!=(h|0))continue;break f;default:p:{q:{r:{while(1){g=3;if(b>>>0>=h>>>0)break q;d=b;b=b+1|0;J[i>>2]=b;s:switch(K[d|0]-9|0){case 0:case 23:break p;case 17:break q;case 50:break r;case 1:case 4:break s;default:continue}break}g=2;break q}g=1}J[i+12>>2]=g}b=(c|0)>1;c=e;if(b)continue m;break k;case 50:J[i+12>>2]=1;break e;case 1:case 4:break o;case 17:break f}J[i+12>>2]=0;d=b;if(b>>>0>>0)continue;break}break}break f;case 20:break a;case 49:break l;default:continue}t:while(1){e= -J[a+4>>2];u:{if(J[e+12>>2]>=2){d=J[e>>2];h=J[e+8>>2];break u}Yg(e);d=J[e>>2];h=J[e+8>>2];if(J[e+12>>2]>1)break u;while(1){if(d>>>0>=h>>>0)break u;b=d+1|0;J[e>>2]=b;c=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[e+12>>2]=0;v:{if(d>>>0>=h>>>0)break v;while(1){w:{b=d+1|0;J[e>>2]=b;x:switch(K[d|0]-9|0){case 0:case 23:d=b;if((b|0)!=(h|0))continue;break v;default:y:{z:{A:{while(1){c=3;if(b>>>0>=h>>>0)break z;g=b;b=b+1|0;J[e>>2]=b;B:switch(K[g|0]-9|0){case 0:case 23:break y;case 17:break z; -case 50:break A;case 1:case 4:break B;default:continue}break}c=2;break z}c=1}J[e+12>>2]=c}e=(d^-1)+b|0;b=0;g=K[d|0];while(1){if((g|0)==K[J[(b<<2)+30800>>2]]){c=b;break w}c=b|1;if((g|0)==K[J[(c<<2)+30800>>2]])break w;b=b+2|0;if((b|0)!=74)continue;break}continue t;case 50:J[e+12>>2]=1;g=160;break d;case 17:break v;case 1:case 4:break x}J[e+12>>2]=0;d=b;if(b>>>0>>0)continue;break v}break}b=(c|0)<=73?73:c;while(1){h=J[(c<<2)+30800>>2];if((g|0)!=K[h|0])continue t;if(Zb(h,d,e)){h=(b|0)==(c|0);c=c+1| -0;if(h)continue t;continue}break}b=0;g=160;C:switch(c-20|0){case 33:e=J[a+8>>2];J[f+32>>2]=3;d=f+32|0;if((qg(a,d,1)|0)!=1)break d;b=J[f+36>>2];if((b|0)<0)break d;J[e+32>>2]=b;if(b){m=e,n=Tb(J[a>>2],20,0,b,0,d),J[m+28>>2]=n;g=J[f+32>>2];if(g)break d}g=-1;D:{E:while(1){c=J[a+4>>2];F:{if(J[c+12>>2]>1)break F;Yg(c);if(J[c+12>>2]>1)break F;i=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=i>>>0)break F;d=b+1|0;J[c>>2]=d;h=K[b|0];b=d;if(!(1<>>0>26)continue;break}}G:{while(1){J[c+12>>2]=0;b=al(c); -if(b)break G;if(J[c+12>>2]==2)continue;break}g=160;break d}i=J[c>>2]+(b^-1)|0;h=K[b|0];d=0;while(1){H:{if((h|0)==K[J[(d<<2)+30800>>2]]){c=d;break H}c=d|1;if((h|0)==K[J[(c<<2)+30800>>2]])break H;d=d+2|0;if((d|0)!=74)continue;continue E}break}d=(c|0)<=73?73:c;while(1){k=J[(c<<2)+30800>>2];if((h|0)!=K[k|0])continue E;if(Zb(k,b,i)){k=(c|0)==(d|0);c=c+1|0;if(k)continue E;continue}break}I:{J:switch(c-20|0){case 36:g=g+1|0;if((g|0)>=J[e+32>>2])break I;b=J[e+28>>2];J[f+64>>2]=2;J[f+56>>2]=2;J[f+48>>2]=2; -J[f+40>>2]=2;J[f+32>>2]=3;if((qg(a,f+32|0,5)|0)!=5)break I;b=P(g,20)+b|0;J[b>>2]=J[f+36>>2];J[b+4>>2]=J[f+44>>2];J[b+8>>2]=J[f+52>>2];J[b+12>>2]=J[f+60>>2];J[b+16>>2]=J[f+68>>2];continue;case 0:case 1:case 3:break D;case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:break I;default:break J}if((c| -0)==75)continue}break}g=160;break d}J[e+32>>2]=g+1;continue;case 0:case 1:break a;case 55:continue;case 30:case 31:break C;default:break d}h=J[a+8>>2];J[f+32>>2]=3;d=f+32|0;if((qg(a,d,1)|0)!=1)break d;b=J[f+36>>2];if((b|0)<0)break d;J[h+40>>2]=b;if(b){m=h,n=Tb(J[a>>2],16,0,b,0,d),J[m+36>>2]=n;g=J[f+32>>2];if(g)break d}g=-1;K:{L:while(1){c=J[a+4>>2];M:{if(J[c+12>>2]>1)break M;Yg(c);if(J[c+12>>2]>1)break M;i=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=i>>>0)break M;d=b+1|0;J[c>>2]=d;e=K[b|0];b=d;if(!(1<< -e&67118080)|e>>>0>26)continue;break}}N:{while(1){J[c+12>>2]=0;b=al(c);if(b)break N;if(J[c+12>>2]==2)continue;break}g=160;break d}i=J[c>>2]+(b^-1)|0;e=K[b|0];d=0;while(1){O:{if((e|0)==K[J[(d<<2)+30800>>2]]){c=d;break O}c=d|1;if((e|0)==K[J[(c<<2)+30800>>2]])break O;d=d+2|0;if((d|0)!=74)continue;continue L}break}d=(c|0)<=73?73:c;while(1){k=J[(c<<2)+30800>>2];if((e|0)!=K[k|0])continue L;if(Zb(k,b,i)){k=(c|0)==(d|0);c=c+1|0;if(k)continue L;continue}break}if((c|0)==75)continue;b=c-20|0;if(b>>>0>17){g=160; -break d}b=1<=J[h+40>>2])break P;b=J[h+36>>2];J[f+56>>2]=3;J[f+48>>2]=3;J[f+40>>2]=5;J[f+32>>2]=5;i=qg(a,f+32|0,4);if((i|0)<3)break P;e=(g<<4)+b|0;J[e>>2]=J[f+36>>2];J[e+4>>2]=J[f+44>>2];b=0;d=J[f+52>>2];if((c|0)!=37){b=d;d=(c|0)==34?(i|0)==4?J[f+60>>2]:0:0}J[e+12>>2]=d;J[e+8>>2]=b;continue}break}g=160;break d}b=g+1|0;J[h+40>>2]=b;Nh(J[h+36>>2],b,16,37);continue}break}J[e+12>>2]=3;g=160;break d}while(1){e=J[a+4>>2];Q:{if(J[e+12>>2]>= -2){d=J[e>>2];h=J[e+8>>2];break Q}Yg(e);d=J[e>>2];h=J[e+8>>2];if(J[e+12>>2]>1)break Q;while(1){if(d>>>0>=h>>>0)break Q;b=d+1|0;J[e>>2]=b;c=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[e+12>>2]=0;R:{if(d>>>0>=h>>>0)break R;S:{while(1){T:{b=d+1|0;J[e>>2]=b;U:switch(K[d|0]-9|0){case 50:J[e+12>>2]=1;break e;case 0:case 23:d=b;if((b|0)!=(h|0))continue;break R;default:V:{W:{X:{while(1){c=3;if(b>>>0>=h>>>0)break W;g=b;b=b+1|0;J[e>>2]=b;Y:switch(K[g|0]-9|0){case 0:case 23:break V;case 17:break W; -case 50:break X;case 1:case 4:break Y;default:continue}break}c=2;break W}c=1}J[e+12>>2]=c}e=(d^-1)+b|0;g=K[d|0];b=0;while(1){if((g|0)==K[J[(b<<2)+30800>>2]]){c=b;break T}c=b|1;if((g|0)==K[J[(c<<2)+30800>>2]])break T;b=b+2|0;if((b|0)!=74)continue;break}b=75;break S;case 17:break R;case 1:case 4:break U}J[e+12>>2]=0;d=b;if(b>>>0>>0)continue;break R}break}h=(c|0)<=73?73:c;while(1){b=75;i=J[(c<<2)+30800>>2];if((g|0)!=K[i|0])break S;if(!Zb(i,d,e)){b=c;break S}i=(c|0)==(h|0);c=c+1|0;if(!i)continue;break}}g= -0;switch(b-17|0){case 0:case 3:continue g;default:continue}}break}break}J[e+12>>2]=3;break e}J[i+12>>2]=3}b=160;break a}a=J[j+28>>2];if(a)Ab[J[l+8>>2]](l,a);J[j+28>>2]=0;J[j+32>>2]=0;a=J[j+36>>2];if(a)Ab[J[l+8>>2]](l,a);H[j|0]=0;J[j+36>>2]=0;J[j+40>>2]=0;b=g}xb=f+80|0;return b|0}function eY(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=xb-32|0;xb=g;d=bc(a,0);a:{if(d)break a;d=Nc(a,30192,b+132|0);if(d)break a;J[b+168>>2]=J[b+168>>2]+(J[b+204>>2]<<16); -d=2;if(J[b+132>>2]!=1346785840|M[b+136>>2]>4|(J[b+140>>2]!=3338|M[b+144>>2]<58))break a;i=J[b+152>>2];d=bc(a,i);J[g+12>>2]=d;if(d)break a;h=g+12|0;e=rc(a,h);d=J[g+12>>2];if(d)break a;d=8;if(e>>>0>13106)break a;f=J[a+4>>2];if(P(e,5)+2>>>0>=f-i>>>0|f>>>0<=P(e,23)+95>>>0)break a;d=0;J[g+24>>2]=0;J[b>>2]=e;if((c|0)<0)break a;d=6;p=c&65535;if(e>>>0<=p>>>0)break a;k=J[b+204>>2];d=bc(a,J[b+152>>2]);J[g+12>>2]=d;if(d)break a;c=rc(a,h);d=J[g+12>>2];if(d)break a;d=6;if(c>>>0<=p>>>0)break a;d=yd(a,P(p,5));J[g+ -12>>2]=d;if(d)break a;e=rc(a,h);d=J[g+12>>2];if(d)break a;d=0;f=xb-16|0;xb=f;J[h>>2]=0;i=a;b:{c:{d:{e:{c=J[a+4>>2];a=J[a+8>>2];if(c>>>0<=a+2>>>0)break e;j=J[i+20>>2];f:{if(j){c=f+13|0;if((Ab[j|0](i,a,c,3)|0)!=3)break e;a=J[i+8>>2];break f}c=J[i>>2];if(!c)break d;c=a+c|0}d=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);break c}J[h>>2]=85;break b}d=0}J[i+8>>2]=a+3}xb=f+16|0;a=d;d=J[g+12>>2];if(d)break a;J[b+240>>2]=e;J[b+244>>2]=a;d=bc(i,a);J[g+12>>2]=d;if(d)break a;d=Tc(i,e);J[g+12>>2]=d;if(d)break a;g:{h:{i:{if(e>>> -0<13)break i;d=J[i+32>>2];h=d+e|0;J[b+248>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[b+252>>2]=K[d+5|0]|(K[d+4|0]<<8|K[d+3|0]<<16);J[b+256>>2]=K[d+8|0]|(K[d+7|0]<<8|K[d+6|0]<<16);J[b+260>>2]=K[d+11|0]|(K[d+10|0]<<8|K[d+9|0]<<16);e=K[d+12|0];f=e&4;if(f){a=e&8?2:1;c=e&3?a:a+3|0}else c=0;a=d+13|0;j=e&32;if(h>>>0<(c+a|0)+(e<<27>>31&(j?2:1))>>>0)break i;m=e&16;j:{if(!f)break j;c=K[a|0];k:{if(e&8){c=(K[d+14|0]|c<<8)<<16>>16;a=d+15|0;break k}a=d+14|0}J[b+268>>2]=c;if(e&3)break j;J[b+276>>2]=K[a+2|0]|(K[a+1| -0]<<8|K[a|0]<<16);a=a+3|0}l:{if(!m){c=a;break l}d=K[a|0];m:{if(j){d=(K[a+1|0]|d<<8)<<16>>16;c=a+2|0;break m}c=a+1|0}J[b+272>>2]=d}n:{if(!(e&64)){d=c;break n}d=c+1|0;if(h>>>0>>0)break h;c=K[c|0];if(c)while(1){a=d+2|0;if(a>>>0>h>>>0)break h;d=a+K[d|0]|0;if(h>>>0>>0)break h;c=c-1|0;if(c)continue;break}J[g+12>>2]=0}if(h>>>0>>0)break i;a=K[d+1|0]|K[d|0]<<8;J[b+280>>2]=a;J[b+284>>2]=K[d+4|0]|(K[d+3|0]<<8|K[d+2|0]<<16);if(!k)break g;if(h>>>0>>0)break i;J[b+280>>2]=a|K[d+5|0]<<16;break g}J[g+ -12>>2]=8;break g}J[g+12>>2]=8}Ec(i);d=J[g+12>>2];J[g+24>>2]=d;if(d)break a;e=J[b+280>>2];m=J[b+284>>2];j=J[i+28>>2];J[b+428>>2]=b+424;J[b+424>>2]=0;J[b+292>>2]=m;J[b+288>>2]=j;d=bc(i,m);if(d)break a;d=Tc(i,e);J[g+12>>2]=d;if(d)break a;c=J[i+32>>2];J[b+436>>2]=c;o:{p:{if((e|0)<15)break p;J[b+296>>2]=K[c+1|0]|K[c|0]<<8;J[b+300>>2]=K[c+3|0]|K[c+2|0]<<8;J[b+304>>2]=K[c+5|0]|K[c+4|0]<<8;a=K[c+6|0]|K[c+7|0]<<8;J[b+308>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+8|0]|K[c+9|0]<<8;J[b+312>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+ -10|0]|K[c+11|0]<<8;J[b+316>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+12|0]|K[c+13|0]<<8;J[b+320>>2]=(a<<8|a>>>8)<<16>>16;a=c+15|0;J[g+28>>2]=a;k=K[c+14|0];J[b+324>>2]=k;q=k&4;if(!q){if(e>>>0<17)break p;a=c+17|0;J[g+28>>2]=a;d=K[c+15|0]|K[c+16|0]<<8;J[b+328>>2]=(d<<8|d>>>8)<<16>>16}f=c+e|0;if(k<<24>>24<0){n=b+288|0;d=8;c=J[g+28>>2];a=c+1|0;q:{r:{if(f>>>0>>0)break r;e=K[c|0];if(e)while(1){h=a;c=a+2|0;if(f>>>0>>0){J[g+28>>2]=a;d=8;break q}a=K[h|0]+c|0;if(f>>>0>>0){J[g+28>>2]=c;d=8;break q}l=J[7581];s:{if(!l)break s; -d=30320;h=K[h+1|0];if((h|0)!=J[7580])while(1){l=J[d+12>>2];if(!l)break s;o=J[d+8>>2];d=d+8|0;if((h|0)!=(o|0))continue;break}d=Ab[l|0](c,a,n)|0;if(d)break r}e=e-1|0;if(e)continue;break}c=a;d=0}J[g+28>>2]=c}J[g+12>>2]=d;if(d)break o;a=J[g+28>>2]}e=a+3|0;if(f>>>0>>0)break p;J[g+28>>2]=e;c=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);if(c){a=c+e|0;if(a>>>0>f>>>0)break p;J[g+28>>2]=a;l=b+372|0;n=b+376|0;while(1){t:{d=e+4|0;if(d>>>0>a>>>0)break t;h=K[e+1|0]|K[e|0]<<8;if(h>>>0<4|c>>>0>>0)break t;u:{v:{w:{x:{y:{o= -K[e+2|0]|K[e+3|0]<<8;switch(((o<<8|o>>>8)&65535)-1|0){case 2:break w;case 1:break x;case 0:break y;default:break u}}d=Pz(d,h-4|0,j,l);break v}if(h>>>0<36)break u;d=K[e+14|0]|K[e+15|0]<<8;J[b+332>>2]=(d<<8|d>>>8)<<16>>16;d=K[e+16|0]|K[e+17|0]<<8;J[b+336>>2]=(d<<8|d>>>8)<<16>>16;d=K[e+18|0]|K[e+19|0]<<8;J[b+340>>2]=(d<<8|d>>>8)<<16>>16;break u}d=Pz(d,h-4|0,j,n)}J[g+12>>2]=d;if(d)break a}e=e+h|0;c=c-h|0;if(c)continue}break}e=a}d=e+1|0;if(f>>>0>>0)break p;J[g+28>>2]=d;a=K[e|0];J[b+392>>2]=a;if(f>>> -0<(a<<1)+d>>>0)break p;h=Tb(j,4,0,a,0,g+12|0);J[b+396>>2]=h;if(J[g+12>>2])break o;z:{if(!a)break z;l=a&1;A:{if((a|0)==1){e=0;break A}a=a&254;e=0;c=0;while(1){n=e<<2;o=K[d|0]|K[d+1|0]<<8;J[n+h>>2]=(o<<8|o>>>8)<<16>>16;o=h+(n|4)|0;n=K[d+2|0]|K[d+3|0]<<8;J[o>>2]=(n<<8|n>>>8)<<16>>16;e=e+2|0;d=d+4|0;c=c+2|0;if((a|0)!=(c|0))continue;break}}if(!l)break z;a=K[d|0]|K[d+1|0]<<8;J[h+(e<<2)>>2]=(a<<8|a>>>8)<<16>>16;d=d+2|0}e=d+8|0;if(f>>>0>>0)break p;J[g+28>>2]=d+1;J[b+400>>2]=K[d|0];J[g+28>>2]=d+2;J[b+404>> -2]=K[d+1|0];J[g+28>>2]=d+4;J[b+356>>2]=K[d+3|0]|K[d+2|0]<<8;J[b+344>>2]=K[d+5|0]|K[d+4|0]<<8;J[g+28>>2]=e;h=K[d+7|0]|K[d+6|0]<<8;J[b+408>>2]=h;J[b+412>>2]=(e+m|0)-J[i+32>>2];m=k>>>3&1;l=k&16;a=k&32;k=k&2;if(f>>>0>>1)+(l>>>4|0)+(a>>>5)|0)+(k?5:4)|0)+e>>>0)break p;j=Tb(j,16,0,h,0,g+12|0);J[b+416>>2]=j;if(J[g+12>>2]|!h)break o;d=0;if(!a)while(1){f=j+(d<<4)|0;a=K[e|0];B:{if(k){a=K[e+1|0]|a<<8;c=e+2|0;break B}c=e+1|0}J[f>>2]=a;C:{if(q){a=K[c|0]|K[c+1|0]<<8;e=(a<<8|a>>>8)<<16>>16;c=c+2|0;break C}e= -J[b+328>>2]}J[f+4>>2]=e;a=c+m|0;e=K[a|0];D:{if(l){e=K[a+1|0]|e<<8;a=a+2|0;break D}a=a+1|0}J[f+8>>2]=e;J[f+12>>2]=K[a+1|0]|K[a|0]<<8;e=a+2|0;d=d+1|0;if((h|0)!=(d|0))continue;break o}while(1){f=j+(d<<4)|0;a=K[e|0];E:{if(k){a=K[e+1|0]|a<<8;c=e+2|0;break E}c=e+1|0}J[f>>2]=a;F:{if(q){a=K[c|0]|K[c+1|0]<<8;e=(a<<8|a>>>8)<<16>>16;c=c+2|0;break F}e=J[b+328>>2]}J[f+4>>2]=e;a=c+m|0;e=K[a|0];G:{if(l){e=K[a+1|0]|e<<8;a=a+2|0;break G}a=a+1|0}J[f+8>>2]=e;J[f+12>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);e=a+3|0;d=d+ -1|0;if((h|0)!=(d|0))continue;break}break o}J[g+12>>2]=8}Ec(i);e=0;a=J[i+8>>2];J[b+436>>2]=0;J[b+432>>2]=a;d=J[g+12>>2];J[g+24>>2]=d;if(d)break a;J[b+4>>2]=p;c=J[b+8>>2]|1;J[b+8>>2]=c;a=J[b+408>>2];J[b+16>>2]=a+1;H:{I:{J:{if(!a)break J;d=J[b+416>>2];while(1){if(J[(d+(e<<4)|0)+12>>2])break J;e=e+1|0;if((a|0)!=(e|0))continue;break}break I}if((a|0)!=(e|0))break H}c=0;if(J[b+380>>2])break H;d=3;break a}a=J[b+324>>2];d=(a^-1)&4|c|(a&1?32:16);J[b+8>>2]=d;c=J[b+380>>2];if(c){d=d|2;J[b+8>>2]=d}if(J[b+420>> -2])J[b+8>>2]=d|64;d=J[b+372>>2];J[b+20>>2]=d;if(!d)J[b+20>>2]=J[b+368>>2];J[b+28>>2]=0;J[b+32>>2]=0;J[b+24>>2]=J[b+376>>2];d=J[b+312>>2];J[b+52>>2]=J[b+308>>2];J[b+56>>2]=d;d=J[b+320>>2];J[b+60>>2]=J[b+316>>2];J[b+64>>2]=d;d=J[b+300>>2];I[b+68>>1]=d;e=J[b+320>>2];I[b+70>>1]=e;i=J[b+312>>2];I[b+72>>1]=i;e=(e<<16>>16)-(i<<16>>16)|0;d=(P(d&65535,12)>>>0)/10|0;I[b+74>>1]=(e|0)>d<<16>>16?e:d;if(c){a=Tb(J[J[b+104>>2]+28>>2],16,0,c,0,g+24|0);J[b+32>>2]=a;d=J[g+24>>2];if(d)break a;d=J[b+388>>2];if((c|0)!= -1){h=c&-2;e=0;while(1){f=J[d+4>>2];I[a>>1]=f;i=J[d>>2];f=f<<6;J[a+12>>2]=f;J[a+4>>2]=f;I[a+2>>1]=i;J[a+8>>2]=i<<6;f=J[d+40>>2];I[a+16>>1]=f;i=J[d+36>>2];f=f<<6;J[a+28>>2]=f;J[a+20>>2]=f;I[a+18>>1]=i;J[a+24>>2]=i<<6;d=d+72|0;a=a+32|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(c&1){e=J[d+4>>2];I[a>>1]=e;d=J[d>>2];e=e<<6;J[a+12>>2]=e;J[a+4>>2]=e;I[a+2>>1]=d;J[a+8>>2]=d<<6}J[b+28>>2]=c;a=J[b+324>>2]}K:{if(!(a&4)){a=J[b+328>>2];break K}a=J[b+408>>2];if(!a){a=0;break K}i=a&3;d=J[b+416>>2];c=0;L:{if(a>>> -0<4){a=0;break L}h=a&-4;a=0;e=0;while(1){f=J[d+4>>2];a=(a|0)>(f|0)?a:f;f=J[d+20>>2];a=(a|0)>(f|0)?a:f;f=J[d+36>>2];a=(a|0)>(f|0)?a:f;f=J[d+52>>2];a=(a|0)>(f|0)?a:f;d=d- -64|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!i)break K;while(1){e=J[d+4>>2];a=(a|0)>(e|0)?a:e;d=d+16|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}I[b+76>>1]=a;I[b+78>>1]=L[b+74>>1];a=L[b+68>>1];I[b+82>>1]=(a>>>0)/30;I[b+80>>1]=0-((a>>>0)/10|0);J[g+12>>2]=b;J[g+16>>2]=1970170211;J[g+20>>2]=65539;d=zf(29996,0,g+12|0,0);if(!J[b+420>> -2])break a;J[b+8>>2]=J[b+8>>2]|64}xb=g+32|0;return d|0}function Vg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{e:{f:{if(J[b+8>>2]==(a|0)|M[b+12>>2]>2]>>>0)break f;c=1;g:{h:switch(K[a|0]-1|0){case 0:return J[b+8>>2]-a>>>0>5&M[b+12>>2]>=a-J[b+4>>2]>>>0;case 1:return J[b+8>>2]-a>>>0>4&M[b+12>>2]>=a-J[b+4>>2]>>>0;case 2:return J[b+8>>2]-a>>>0>8&M[b+12>>2]>=a-J[b+4>>2]>>>0;case 3:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<16)break g;return mI(a,b);case 4:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<20)break g;return lI(a,b);case 5:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<16)break g;return mI(a,b);case 6:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<20)break g;return lI(a,b);case 7:e=J[b+12>>2];d=J[b+4>>2];if(e>>>0>>0)break f;c=0;f=J[b+8>>2];if(f-a>>>0<12)break g;g=0;i:{if(e>>>0>>0)break i;g=0;if(f-a>>>0<12)break i;h=a+1|0;g=0;if(e>>>0>>0)break i;g=0;if(f-h>>>0<3)break i;c=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<< -16);j:{if(c){c=a+c|0;k:{if(e>>>0>>0|f-c>>>0<3)break k;h=c+1|0;if(e>>>0>>0|f-h>>>0<2)break k;g=e;e=c+3|0;if(g>>>0>>0)break k;c=K[c+1|0]|K[c+2|0]<<8;c=P((c<<8|c>>>8)&65535,6);if(c>>>0>f-e>>>0)break k;d=J[b+16>>2]-c|0;J[b+16>>2]=d;g=1;if((d|0)>0)break j}d=J[b+32>>2];g=0;if(d>>>0>31)break i;J[b+32>>2]=d+1;g=0;if(!K[b+28|0])break j;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}g=1}}return g;case 8:e=J[b+12>>2];d=J[b+4>>2];if(e>>>0>>0)break f;c=0;f=J[b+8>>2];if(f-a>>>0<16)break g;g=0;l:{if(e>>>0< -a-d>>>0)break l;g=0;if(f-a>>>0<12)break l;h=a+1|0;g=0;if(e>>>0>>0)break l;g=0;if(f-h>>>0<3)break l;c=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);m:{if(c){c=a+c|0;n:{if(e>>>0>>0|f-c>>>0<3)break n;h=c+1|0;if(e>>>0>>0|f-h>>>0<2)break n;g=e;e=c+3|0;if(g>>>0>>0)break n;c=K[c+1|0]|K[c+2|0]<<8;c=P((c<<8|c>>>8)&65535,10);if(c>>>0>f-e>>>0)break n;d=J[b+16>>2]-c|0;J[b+16>>2]=d;g=1;if((d|0)>0)break m}d=J[b+32>>2];g=0;if(d>>>0>31)break l;J[b+32>>2]=d+1;g=0;if(!K[b+28|0])break m;H[a+3|0]=0;H[a+1|0]= -0;H[a+2|0]=0}g=1}}return g;case 10:return J[b+8>>2]-a>>>0>2&M[b+12>>2]>=a-J[b+4>>2]>>>0;case 11:o:{p:{d=J[b+12>>2];c=J[b+4>>2];if(d>>>0>>0)break p;e=J[b+8>>2];if(e-a>>>0<7)break p;f=a+1|0;if(d>>>0>>0|e-f>>>0<3)break p;c=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);q:{if(!c)break q;d=J[b+24>>2];r:{if((d|0)>63)break r;d=d+1|0;J[b+24>>2]=d;if(!d)break r;c=Vg(a+c|0,b);J[b+24>>2]=J[b+24>>2]-1;if(c)break q}c=J[b+32>>2];if(c>>>0>31)break p;J[b+32>>2]=c+1;if(!K[b+28|0])break p;H[a+3|0]=0;H[a+1|0]=0;H[a+ -2|0]=0}e=J[b+12>>2];c=a+4|0;d=J[b+4>>2];if(e>>>0>>0)break p;f=J[b+8>>2];if(f-c>>>0<3)break p;c=1;h=K[a+6|0]|(K[a+5|0]<<8|K[a+4|0]<<16);s:{if(!h)break s;h=a+h|0;if(e>>>0>=h-d>>>0&f-h>>>0>23)break s;c=J[b+32>>2];if(c>>>0>31)break p;J[b+32>>2]=c+1;c=0;if(!K[b+28|0])break s;H[a+6|0]=0;H[a+4|0]=0;H[a+5|0]=0;c=1}break o}c=0}break a;case 12:t:{u:{d=J[b+12>>2];c=J[b+4>>2];if(d>>>0>>0)break u;e=J[b+8>>2];if(e-a>>>0<7)break u;f=a+1|0;if(d>>>0>>0|e-f>>>0<3)break u;c=K[a+3|0]|(K[a+2|0]<<8|K[a+ -1|0]<<16);v:{if(!c)break v;d=J[b+24>>2];w:{if((d|0)>63)break w;d=d+1|0;J[b+24>>2]=d;if(!d)break w;c=Vg(a+c|0,b);J[b+24>>2]=J[b+24>>2]-1;if(c)break v}c=J[b+32>>2];if(c>>>0>31)break u;J[b+32>>2]=c+1;if(!K[b+28|0])break u;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}e=J[b+12>>2];c=a+4|0;d=J[b+4>>2];if(e>>>0>>0)break u;f=J[b+8>>2];if(f-c>>>0<3)break u;c=1;h=K[a+6|0]|(K[a+5|0]<<8|K[a+4|0]<<16);x:{if(!h)break x;h=a+h|0;if(e>>>0>=h-d>>>0&f-h>>>0>27)break x;c=J[b+32>>2];if(c>>>0>31)break u;J[b+32>>2]=c+1;c=0;if(!K[b+ -28|0])break x;H[a+6|0]=0;H[a+4|0]=0;H[a+5|0]=0;c=1}break t}c=0}break a;case 13:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<8)break g;break d;case 14:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<12)break g;break d;case 15:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<8)break g;break d;case 16:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<12)break g;break d;case 17:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<12)break g; -break c;case 18:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<16)break g;break c;case 19:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<6)break g;break e;case 20:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<10)break g;break e;case 21:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<10)break g;break b;case 22:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<14)break g;break b;case 23:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+ -8>>2]-a>>>0<6)break g;break e;case 24:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<10)break g;break e;case 25:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<10)break g;break b;case 26:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<14)break g;break b;case 27:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<8)break g;break d;case 28:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<12)break g;break d;case 29:if(M[b+12>>2]>2]>>> -0)break f;c=0;if(J[b+8>>2]-a>>>0<12)break g;break c;case 30:if(M[b+12>>2]>2]>>>0)break f;c=0;if(J[b+8>>2]-a>>>0<16)break g;break c;case 9:break e;case 31:break h;default:break g}y:{z:{e=J[b+12>>2];d=J[b+4>>2];if(e>>>0>>0)break z;f=J[b+8>>2];if(f-a>>>0<8)break z;c=J[b+16>>2];J[b+16>>2]=(c|0)<=8?-1:c-8|0;if((c|0)<9)break z;c=a+1|0;if(e>>>0>>0|f-c>>>0<3)break z;c=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);A:{if(!c)break A;d=J[b+24>>2];B:{if((d|0)>63)break B;d=d+1|0;J[b+24>>2]=d;if(!d)break B; -c=Vg(a+c|0,b);J[b+24>>2]=J[b+24>>2]-1;if(c)break A}c=J[b+32>>2];if(c>>>0>31)break z;J[b+32>>2]=c+1;if(!K[b+28|0])break z;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}c=a+5|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<3)break z;d=K[a+7|0]|(K[a+6|0]<<8|K[a+5|0]<<16);C:{if(d){e=J[b+24>>2];D:{if((e|0)>63)break D;c=1;e=e+1|0;J[b+24>>2]=e;if(!e)break D;d=Vg(a+d|0,b);J[b+24>>2]=J[b+24>>2]-1;if(d)break C}c=J[b+32>>2];if(c>>>0>31)break z;J[b+32>>2]=c+1;c=0;if(!K[b+28|0])break C;H[a+7|0]=0;H[a+5|0]=0;H[a+6|0]=0}c=1}break y}c= -0}}break a}return 0}c=0;e=J[b+12>>2];d=J[b+4>>2];E:{if(e>>>0>>0)break E;f=J[b+8>>2];if(f-a>>>0<6)break E;h=a+1|0;if(e>>>0>>0)break E;if(f-h>>>0<3)break E;d=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);F:{if(d){e=J[b+24>>2];G:{if((e|0)>63)break G;c=1;e=e+1|0;J[b+24>>2]=e;if(!e)break G;d=Vg(a+d|0,b);J[b+24>>2]=J[b+24>>2]-1;if(d)break F}c=0;d=J[b+32>>2];if(d>>>0>31)break E;J[b+32>>2]=d+1;if(!K[b+28|0])break F;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}c=1}}break a}e=J[b+12>>2];d=J[b+4>>2];H:{if(e>>>0>>0)break H; -f=J[b+8>>2];if(f-a>>>0<8)break H;h=a+1|0;if(e>>>0>>0)break H;if(f-h>>>0<3)break H;d=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);I:{if(d){e=J[b+24>>2];J:{if((e|0)>63)break J;c=1;e=e+1|0;J[b+24>>2]=e;if(!e)break J;d=Vg(a+d|0,b);J[b+24>>2]=J[b+24>>2]-1;if(d)break I}c=0;d=J[b+32>>2];if(d>>>0>31)break H;J[b+32>>2]=d+1;if(!K[b+28|0])break I;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}c=1}}break a}e=J[b+12>>2];d=J[b+4>>2];K:{if(e>>>0>>0)break K;f=J[b+8>>2];if(f-a>>>0<12)break K;h=a+1|0;if(e>>>0>>0)break K;if(f- -h>>>0<3)break K;d=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);L:{if(d){e=J[b+24>>2];M:{if((e|0)>63)break M;c=1;e=e+1|0;J[b+24>>2]=e;if(!e)break M;d=Vg(a+d|0,b);J[b+24>>2]=J[b+24>>2]-1;if(d)break L}c=0;d=J[b+32>>2];if(d>>>0>31)break K;J[b+32>>2]=d+1;if(!K[b+28|0])break L;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}c=1}}break a}e=J[b+12>>2];d=J[b+4>>2];N:{if(e>>>0>>0)break N;f=J[b+8>>2];if(f-a>>>0<10)break N;h=a+1|0;if(e>>>0>>0)break N;if(f-h>>>0<3)break N;d=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);O:{if(d){e=J[b+ -24>>2];P:{if((e|0)>63)break P;c=1;e=e+1|0;J[b+24>>2]=e;if(!e)break P;d=Vg(a+d|0,b);J[b+24>>2]=J[b+24>>2]-1;if(d)break O}c=0;d=J[b+32>>2];if(d>>>0>31)break N;J[b+32>>2]=d+1;if(!K[b+28|0])break O;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}c=1}}return c}return c}function QX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;f=xb-6752|0;xb=f;c=J[J[a+4>>2]>>2];l=f- -64|0;Nb(l|4,0,2756);J[f+16>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f+28>> -2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+56>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+64>>2]=c;J[f+8>>2]=l;k=J[b+4>>2];l=J[k+84>>2];h=J[l+156>>2];r=J[h>>2];m=J[k+88>>2];i=J[m+40>>2];g=J[i+12>>2];a:{b:{if(!g){c=e>>>16&15;break b}b=J[i+4>>2];c=e>>>16&15;if((b|0)==(c|0))break a}J[i+4>>2]=c;J[i+32>>2]=J[m+36>>2];b=J[m+32>>2];J[i+24>>2]=J[m+28>>2];J[i+28>>2]=b;b=J[m+24>>2];J[i+16>>2]=J[m+20>>2];J[i+20>>2]=b;b=J[m+16>>2];J[i+8>>2]=J[m+12>>2]; -J[i+12>>2]=b;g=J[i+12>>2];b=c}J[f+6736>>2]=0;J[f+6728>>2]=g;J[f+6724>>2]=k;c=J[i+16>>2];J[f+6748>>2]=0;J[f+6744>>2]=b;J[f+6740>>2]=0;J[f+6732>>2]=c;J[f>>2]=k;b=J[k+116>>2];J[f+4>>2]=b;c:{if(!b){g=cn(k,f|4,a);if(g)break c;b=J[f+4>>2];J[k+116>>2]=b;J[k+120>>2]=1}J[f+6704>>2]=0;g=6;if(M[b+4>>2]<=d>>>0)break c;j=d<<1;g=L[j+J[b+8>>2]>>1]&16383;c=((g<<2)+b|0)+16|0;i=J[c>>2];d:{if(i)break d;e:{f:{while(1){m=J[J[b>>2]+100>>2];n=J[(g<<2)+16608>>2];o=J[(J[n+4>>2]<<2)+16320>>2];i=tc(m,J[o+4>>2],f+6704|0);g= -J[f+6704>>2];if(g)break c;J[i+36>>2]=b;J[i>>2]=n;g=J[o+8>>2];if(!g)break f;g=Ab[g|0](i,J[b>>2])|0;J[f+6704>>2]=g;if(!g)break f;c=J[o+16>>2];if(c)Ab[c|0](i);if(i)Ab[J[m+8>>2]](m,i);g=J[f+6704>>2];if((g|0)!=-1)break e;g=L[j+J[b+8>>2]>>1]&16383;c=((g<<2)+b|0)+16|0;if(!J[c>>2])continue;break}g=-1;break c}J[c>>2]=i;break d}if(g)break c;i=0}b=J[J[i>>2]+4>>2];J[f+12>>2]=i;u=J[(b<<2)+16320>>2];b=J[u+12>>2];g:{if(b){Ab[b|0](i,f+6724|0);break g}b=J[f+6728>>2];J[i+4>>2]=J[f+6724>>2];J[i+8>>2]=b;J[i+28>>2]=J[f+ -6748>>2];b=f+6740|0;c=J[b+4>>2];J[i+20>>2]=J[b>>2];J[i+24>>2]=c;b=f+6732|0;c=J[b+4>>2];J[i+12>>2]=J[b>>2];J[i+16>>2]=c}b=J[u+24>>2];if(b){g=Ab[b|0](f- -64|0,i)|0;if(g)break c}g=Ug(k,d,e&-10246|10241);if(g)break c;h:{if(J[f+6744>>2]!=1)break h;b=H[J[k+128>>2]+56|0];if(K[a+21|0]|(b|0)>=0?b:0)break h;a=xb-32|0;xb=a;n=J[k+84>>2];c=J[J[k+88>>2]+40>>2];b=J[f+4>>2];J[a+28>>2]=0;J[a+24>>2]=0;g=L[b+364>>1];m=L[c+8>>1];o=L[k+68>>1]<<16;j=dc(65536E3,o);J[a+16>>2]=J[5331];e=J[5330];J[a+8>>2]=J[5329];J[a+12>> -2]=e;i:{if(!L[k+68>>1])break i;e=J[J[(J[J[i>>2]+4>>2]<<2)+16320>>2]+20>>2];if(!e)break i;Ab[e|0](i,a+24|0,a+28|0);e=J[a+28>>2];j:{k:{l:{if(((e|0)==J[b+368>>2]|(e|0)<=0)&(g|0)==(m|0))break l;e=dc(Rb(sw(J[J[f+4>>2]+388>>2],L[k+68>>1],L[J[k+88>>2]+12>>1],e)<<16,J[c+12>>2]),j);J[b+368>>2]=J[a+28>>2];p=L[c+8>>1];J[b+376>>2]=e+32768>>16;I[b+364>>1]=p;if((g|0)==(m|0))break l;e=J[a+24>>2];break k}e=J[a+24>>2];if((e|0)<=0|J[b+372>>2]==(e|0))break j}e=sw(J[J[f+4>>2]+388>>2],L[k+68>>1],L[J[k+88>>2]+12>>1],e)<< -16;g=dc(Rb(e,J[c+16>>2]),j);J[b+372>>2]=J[a+24>>2];c=L[c+8>>1];J[b+380>>2]=g+32768>>16;I[b+364>>1]=c;z=b,A=dc((o-e|0)-524288|0,o),J[z+384>>2]=A}c=n+108|0;xr(c,J[b+376>>2],J[b+380>>2]);J[a+20>>2]=J[b+384>>2];nh(c,a+8|0)}xb=a+32|0}a=K[h+8|0];H[f+16|0]=a;m:{if(!a)break m;c=J[h+24>>2];a=J[h+20>>2];J[f+28>>2]=a;J[f+32>>2]=c;e=J[h+16>>2];b=J[h+12>>2];J[f+20>>2]=b;J[f+24>>2]=e;g=J[h+28>>2];k=J[h+32>>2];h=f+6712|0;J[h>>2]=a;J[h+4>>2]=c;J[f+6704>>2]=b;J[f+6708>>2]=e;J[f+36>>2]=g;J[f+40>>2]=k;e=6;k=f+6704| -0;n:{if(!k)break n;b=J[k>>2];a=b>>31;p=J[k+12>>2];c=p>>31;m=(a^b)-a|0;g=(c^p)-c|0;o:{if(m+(g>>>8|0)>>>0<=8190){a=P(g,m)+32768>>>16|0;break o}a=m&65535;a=P(a,g>>>16|0)+P(g,m>>>16|0)+(P(a,g&65535)+32768>>>16)|0}v=b>>31|1;x=0-v|0;o=(((p|0)<0?x:v)|0)<0?0-a|0:a;b=J[k+4>>2];a=b>>31;s=J[k+8>>2];c=s>>31;h=(c^s)-c|0;c=(a^b)-a|0;p:{if((h>>>8|0)+c>>>0<=8190){a=P(c,h)+32768>>>16|0;break p}a=c&65535;a=P(a,h>>>16|0)+P(h,c>>>16|0)+(P(a,h&65535)+32768>>>16)|0}w=b>>31|1;y=0-w|0;a=(((s|0)<0?y:w)|0)<0?0-a|0:a;if((o| -0)==(a|0))break n;o=o-a|0;a=o>>31;a=(a^o)-a|0;t=a>>>17^65535;q:{if(c>>>0<=t>>>0){b=((c<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break q}b=2147483647;e=a>>>1|0;q=e+(c<<16)|0;c=(c>>>16|0)+(e>>>0>q>>>0)|0;if(c>>>0>=a>>>0)break q;j=S(c);e=32-j|0;c=q>>>e|c<>>0)/(a>>>0)|0;n=c-P(a,b)|0;c=q<>>31;e=n>>>0>=a>>>0;n=n-(e?a:0)|0;b=e|b<<1;e=31-j|0;c=c<<1}if((j|0)==31)break q;while(1){n=n<<1|c>>>31;j=n>>>0>=a>>>0;n=c>>>30&1|n-(j?a:0)<<1;q=n>>>0>=a>>>0;n=n-(q?a:0)|0;b=b<<2|j<<1|q;c=c<<2;e=e-2|0; -if(e)continue;break}}J[k+4>>2]=(((o|0)<0?y:w)|0)<0?b:0-b|0;r:{if(h>>>0<=t>>>0){b=((h<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break r}b=2147483647;e=a>>>1|0;c=e+(h<<16)|0;j=(h>>>16|0)+(c>>>0>>0)|0;if(j>>>0>=a>>>0)break r;h=S(j);e=32-h|0;j=c>>>e|j<>>0)/(a>>>0)|0;j=j-P(a,b)|0;c=c<>>31;e=j>>>0>=a>>>0;j=j-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break r;while(1){j=j<<1|c>>>31;h=j>>>0>=a>>>0;j=c>>>30&1|j-(h?a:0)<<1;n=j>>>0>=a>>>0;j=j-(n?a:0)|0;b=n|(b<<2|h<<1);c=c<<2;e=e-2|0; -if(e)continue;break}}c=b;e=0-b|0;b=s>>31|1;J[k+8>>2]=(((o|0)<0?0-b|0:b)|0)<0?c:e;s:{if(g>>>0<=t>>>0){b=((g<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break s}b=2147483647;e=a>>>1|0;c=e+(g<<16)|0;g=(g>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0)break s;h=S(g);e=32-h|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-P(a,b)|0;c=c<>>31;e=g>>>0>=a>>>0;g=g-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break s;while(1){g=g<<1|c>>>31;h=g>>>0>=a>>>0;g=c>>>30&1|g-(h?a:0)<<1;j=g>>>0>=a>>>0;g=g-(j?a:0)|0;b=j|(b<<2| -h<<1);c=c<<2;e=e-2|0;if(e)continue;break}}e=0-b|0;c=b;b=p>>31|1;J[k>>2]=(((o|0)<0?0-b|0:b)|0)<0?e:c;t:{if(m>>>0<=t>>>0){b=((m<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break t}b=2147483647;e=a>>>1|0;c=e+(m<<16)|0;g=(m>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0)break t;h=S(g);e=32-h|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-P(a,b)|0;c=c<>>31;e=g>>>0>=a>>>0;g=g-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break t;while(1){g=g<<1|c>>>31;h=g>>>0>=a>>>0;g=c>>>30&1|g-(h?a:0)<<1;m=g>>>0>=a>>>0;g=g- -(m?a:0)|0;b=m|(b<<2|h<<1);c=c<<2;e=e-2|0;if(e)continue;break}}e=0;J[k+12>>2]=(((o|0)<0?x:v)|0)<0?0-b|0:b}if(e)break m;po(f+36|0,k)}c=7;u:{if(J[l+72>>2]!=1869968492)break u;if(K[f+16|0])me(l+108|0,J[f+36>>2],J[f+40>>2]);J[f+48>>2]=J[f+80>>2];J[f+44>>2]=J[f+72>>2];a=Rb(J[l+40>>2],J[f+68>>2]);J[f+56>>2]=J[f+80>>2];J[f+52>>2]=a+J[f+72>>2];c=0;if(!L[l+110>>1])break u;a=J[u+28>>2];if(a){g=Ab[a|0](d,f- -64|0,r+20|0,i)|0;if(g)break c}v:{w:{if(J[f+6744>>2]!=1){a=J[f+120>>2];if((a|0)<=1){b=J[f+52>>2];break w}b= -J[f+52>>2];if(K[f+2804|0]&4)break w;e=P(a,44);a=J[f+128>>2];g=(e+a|0)-44|0;e=J[g+8>>2];k=J[g+4>>2];h=J[a+8>>2];g=J[a+4>>2];a=h-g|0;m=(g|0)<24?a-8|0:a;a=m+32&-64;J[f+44>>2]=a;k=b-k|0;b=k+e|0;o=(k|0)<24?b+8|0:b;b=o+32&-64;J[f+52>>2]=b;if(!((a|0)<(h|0)|(g|0)<=0)){a=a+-64|0;J[f+44>>2]=a}if(!((k|0)<=0|(b|0)>(e|0))){b=b- -64|0;J[f+52>>2]=b}J[l+144>>2]=a-m;a=b-o|0;break v}a=J[f+52>>2];b=a+32&-64;J[f+52>>2]=b;e=J[f+44>>2];g=e+32&-64;J[f+44>>2]=g;J[l+144>>2]=g-e;a=b-a|0;break v}a=(J[f+2820>>2]+b|0)+32&-64; -J[f+52>>2]=a;e=J[f+44>>2];g=(e+J[f+2816>>2]|0)+32&-64;J[f+44>>2]=g;J[l+144>>2]=g-e;a=a-b|0}J[l+148>>2]=a}a=J[l+36>>2];b=J[l+48>>2];z=f,A=Rb(J[l+44>>2]-J[l+32>>2]|0,J[i+8>>2]),J[z+6696>>2]=A;z=f,A=Rb(b-a|0,J[i+12>>2]),J[z+6700>>2]=A;if(K[f+16|0]){a=f+20|0;nh(r+20|0,a);po(f+6696|0,a)}a=J[f+44>>2];if(a)me(r+20|0,0-a|0,0);fi(r+20|0,f+6704|0);a=J[f+6704>>2]&-64;J[f+6704>>2]=a;b=J[f+6716>>2]+63&-64;J[f+6716>>2]=b;e=J[f+6712>>2]+63&-64;J[f+6712>>2]=e;g=J[f+6708>>2]&-64;J[f+6708>>2]=g;J[l+36>>2]=b;J[l+32>> -2]=a;J[l+28>>2]=b-g;J[l+24>>2]=e-a;J[l+44>>2]=a+J[f+6696>>2]&-64;J[l+48>>2]=b+J[f+6700>>2]&-64;x:{y:{if(J[f+6744>>2]==1)break y;if(!(K[J[l+4>>2]+8|0]&4)){a=J[f+4>>2];if(!K[i+32|0]|(M[a+4>>2]<=d>>>0|I[J[a+8>>2]+(d<<1)>>1]>=0))break y}a=Rb(J[l+40>>2],J[i+8>>2]);J[l+144>>2]=0;J[l+148>>2]=0;J[l+40>>2]=a;break x}if(!J[l+40>>2])break x;J[l+40>>2]=J[f+52>>2]-J[f+44>>2]}a=Rb(J[l+52>>2],J[i+12>>2]);J[l+72>>2]=1869968492;J[l+52>>2]=a+32&-64;J[l+40>>2]=J[l+40>>2]+32&-64;g=c}J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0; -dr(f- -64|0);xb=f+6752|0;return g|0}function Qj(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=-1;h=c+1|0;h=Pb(h>>>0>1073741823?-1:h<<2);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(d-128|0){default:switch(d|0){case 0:break n;case 2:break i;default:break h}case 35:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+433296>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+433296>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c& -1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+433296>>1];J[d>>2]=b;break a;case 58:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+432848>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+432848>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+432848>>1];J[d>>2]=b;break a;case 50:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)| -0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+432400>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+432400>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+432400>>1];J[d>>2]=b;break a;case 49:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+431952>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+431952>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue; -break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+431952>>1];J[d>>2]=b;break a;case 34:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+431504>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+431504>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+431504>>1];J[d>>2]=b;break a;case 127:break j;case 94:break k;case 110:break l;case 76:break m; -case 33:break o;case 6:break c;case 1:break d;case 8:break e;case 2:break f;case 0:break g;case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:break h}if((c| -0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+431056>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+431056>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+431056>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+430608>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+430608>>1]; -J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+430608>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+430160>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+430160>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+430160>>1];J[d>>2]=b;break a}if((c|0)<= -0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+429712>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+429712>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+429712>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+429264>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+429264>>1];J[h+ -(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+429264>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+428816>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+428816>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+428816>>1];J[d>>2]=b;break a}if((c|0)<=0)break a; -d=0;e=0;if(c-1>>>0>=3){i=c&-4;while(1){J[h+(e<<2)>>2]=K[b+e|0]|61440;f=e|1;J[h+(f<<2)>>2]=K[b+f|0]|61440;f=e|2;J[h+(f<<2)>>2]=K[b+f|0]|61440;f=e|3;J[h+(f<<2)>>2]=K[b+f|0]|61440;e=e+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=c&3;if(!g)break a;while(1){J[h+(e<<2)>>2]=K[b+e|0]|61440;e=e+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}break a}if((c|0)<=0)break a;d=0;e=0;if(c-1>>>0>=3){i=c&-4;while(1){J[h+(e<<2)>>2]=K[b+e|0];f=e|1;J[h+(f<<2)>>2]=K[b+f|0];f=e|2;J[h+(f<<2)>>2]=K[b+f|0];f=e|3;J[h+(f<<2)>>2]= -K[b+f|0];e=e+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=c&3;if(!g)break a;while(1){J[h+(e<<2)>>2]=K[b+e|0];e=e+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}break a}if((c|0)<=0)break b;while(1){d=K[b+i|0];p:{q:{r:{if((e|0)==-1){e=L[(d<<1)+433808>>1];if((e|0)!=65535)break r;break p}f=d|e<<8&65280;e=434320;d=33088;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break r}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break q}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c| -0)<=0)break b;while(1){d=K[b+i|0];s:{t:{u:{if((e|0)==-1){e=L[(d<<1)+675136>>1];if((e|0)!=65535)break u;break s}f=d|e<<8&65280;e=675648;d=33089;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break u}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break t}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];v:{w:{x:{if((e|0)==-1){e=L[(d<<1)+675136>>1];if((e|0)!=65535)break x;break v}f=d|e<<8&65280;e=621120;d=41280;while(1){if((f| -0)==(d&65535)){e=L[e+2>>1];break x}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break w}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];y:{z:{A:{if((e|0)==-1){e=L[(d<<1)+675136>>1];if((e|0)!=65535)break A;break y}f=d|e<<8&65280;e=552912;d=33089;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break A}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break z}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue; -break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];B:{C:{D:{if((e|0)==-1){e=L[(d<<1)+465232>>1];if((e|0)!=65535)break D;break B}f=d|e<<8&65280;e=465744;d=33088;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break D}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break C}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}}J[h+(g<<2)>>2]=0}J[h+(c<<2)>>2]=0;E:{c=id(h);if(c>>>0<1073741808){F:{if(c>>>0<=1){H[a+11|0]=c;break F}b=c|3;if(b>>>0>=1073741823)break E;d=b+1|0;b=Pb(d<< -2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;j=Mb(b,h,a)+a|0,k=0,J[j>>2]=k;Kb(h);return}dd(a);B()}zd();B()}function yF(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;q=xb-32|0;xb=q;a:{b:{c:{d:{k=J[a+8>>2];h=J[a+12>>2];if((k|0)==(h|0))break d;g=K[b+11|0];e=g<<24>>24;o=(e|0)<0?J[b+4>>2]:g;if((e|0)>=0)while(1){j=K[k+11|0];f=j<<24>>24;e=(f|0)<0;g=J[k+4>>2];e:{if((o|0)!=((e?g:j)|0))break e;if(!e){e=b;g=k;if(!f)break d;while(1){if(K[g| -0]!=K[e|0])break e;e=e+1|0;g=g+1|0;j=j-1|0;if(j)continue;break}break d}if(!g)break d;if(!cd(J[k>>2],b,g))break d}k=k+20|0;if((h|0)!=(k|0))continue;break c}f=J[b>>2];while(1){j=K[k+11|0];m=j<<24>>24;e=(m|0)<0;g=J[k+4>>2];f:{if((o|0)!=((e?g:j)|0))break f;if(!e){e=f;g=k;if(!m)break d;while(1){if(K[g|0]!=K[e|0])break f;e=e+1|0;g=g+1|0;j=j-1|0;if(j)continue;break}break d}if(!g)break d;if(!cd(J[k>>2],f,g))break d}k=k+20|0;if((h|0)!=(k|0))continue;break}break c}if((h|0)==(k|0))break c;e=J[k+16>>2];if(!e)break b; -J[c>>2]=J[k+12>>2];J[d>>2]=e;break a}J[c>>2]=0;J[d>>2]=0;break a}r=Pb(24);J[r>>2]=J[a>>2];J[r+4>>2]=J[a+4>>2];Cs(q,r);e=HF(q);J[c>>2]=0;J[d>>2]=0;g=H[b+11|0]<0?J[b>>2]:b;s=xb-80|0;xb=s;o=c;if(c)g:{J[c>>2]=0;while(1){b=0;a=xb-352|0;xb=a;h:{i:{c=a+96|0;if(!oo(e,a+16|0,c,256)){b=ac(c);if(b>>>0>=2147483632)break i;j:{if(b>>>0<=10){H[a+15|0]=b;h=a+4|0;break j}c=(b|15)+1|0;h=Pb(c);J[a+12>>2]=c|-2147483648;J[a+4>>2]=h;J[a+8>>2]=b}t=Mb(h,a+96|0,b)+b|0,u=0,H[t|0]=u;b=J[a+4>>2];c=H[a+15|0];f=fc(g,(c|0)<0?b: -a+4|0);if((c|0)<0)Kb(b);b=!f}xb=a+352|0;break h}dd(a+4|0);B()}if(b){oo(e,s,0,0);a=J[s+28>>2];b=J[d>>2];g=b?a>>>0>>0?a:b:a;J[d>>2]=g;p=Pb(g);J[o>>2]=p;h=0;i=xb-16|0;xb=i;a=-102;k:{if(!e|!(J[e+96>>2]|J[e+100>>2]))break k;a=J[e+224>>2];if(a){b=J[a>>2];if(b)Kb(b);J[a>>2]=0;if(J[a+72>>2]==8)Tg(a+4|0);Kb(a);J[e+224>>2]=0}a=J[e+76>>2]+J[e+220>>2]|0;b=e;j=J[b+216>>2];c=j+J[b+72>>2]|0;if(_e(b,J[b+48>>2],c,c>>>0>>0?a+1|0:a,0)){a=-103;break k}c=de(e,J[e+48>>2],i+8|0);f=J[i+8>>2];l:{m:{b=J[e+48>>2];n:{if((Ab[J[e+ -4>>2]](J[e+28>>2],b,i+15|0,1)|0)==1){a=K[i+15|0];break n}if(Ab[J[e+24>>2]](J[e+28>>2],b)|0)break m;a=0}o:{if((Ab[J[e+4>>2]](J[e+28>>2],b,i+15|0,1)|0)==1){J[i+4>>2]=a|K[i+15|0]<<8;break o}b=Ab[J[e+24>>2]](J[e+28>>2],b)|0;J[i+4>>2]=b?0:P(a,257);a=-1;if(b)break l}a=c?-1:(f|0)!=67324752?-103:0;break l}J[i+4>>2]=0;a=-1}c=J[e+48>>2];p:{q:{if((Ab[J[e+4>>2]](J[e+28>>2],c,i+15|0,1)|0)==1){h=K[i+15|0];break q}b=-1;if(Ab[J[e+24>>2]](J[e+28>>2],c)|0)break p}if((Ab[J[e+4>>2]](J[e+28>>2],c,i+15|0,1)|0)==1){b=a; -break p}b=a;a=Ab[J[e+24>>2]](J[e+28>>2],c)|0;b=a?-1:b;h=a?0:P(h,257)}r:{s:{c=J[e+48>>2];t:{if((Ab[J[e+4>>2]](J[e+28>>2],c,i+15|0,1)|0)==1){a=K[i+15|0];break t}if(Ab[J[e+24>>2]](J[e+28>>2],c)|0)break s;a=0}u:{if((Ab[J[e+4>>2]](J[e+28>>2],c,i+15|0,1)|0)==1){a=a|K[i+15|0]<<8;J[i+4>>2]=a;break u}a=P(a,257);f=Ab[J[e+24>>2]](J[e+28>>2],c)|0;J[i+4>>2]=f?0:a;c=-1;if(f)break r}c=b;if(b)break r;c=-103;if(J[e+140>>2]!=(a|0))break r;if(a>>>0<=12){c=0;if(1<>2]=0;c=-1}f=de(e, -J[e+48>>2],i+4|0);a=-1;b=-1;v:{if(de(e,J[e+48>>2],i+4|0))break v;b=f?-1:c;if(b)break v;b=0;if(J[i+4>>2]==J[e+148>>2])break v;b=h&8?0:-103}w:{if(de(e,J[e+48>>2],i+4|0))break w;if(b){a=b;break w}a=b;b=J[i+4>>2];if((b|0)==-1)break w;a=0;if(!J[e+156>>2]&J[e+152>>2]==(b|0))break w;a=h&8?0:-103}b=-1;x:{if(de(e,J[e+48>>2],i+4|0))break x;if(a){b=a;break x}b=a;a=J[i+4>>2];if((a|0)==-1)break x;b=0;if(!J[e+164>>2]&J[e+160>>2]==(a|0))break x;b=h&8?0:-103}j=J[e+48>>2];y:{z:{if((Ab[J[e+4>>2]](J[e+28>>2],j,i+15| -0,1)|0)==1){a=K[i+15|0];break z}a=0;c=0;f=0;if(Ab[J[e+24>>2]](J[e+28>>2],j)|0)break y}A:{if((Ab[J[e+4>>2]](J[e+28>>2],j,i+15|0,1)|0)==1){c=K[i+15|0]<<8|a;break A}c=0;f=0;if(Ab[J[e+24>>2]](J[e+28>>2],j)|0)break y;c=P(a,257)}f=0;if(b)break y;f=J[e+168>>2]==(c|0)}b=f;B:{C:{f=J[e+48>>2];D:{if((Ab[J[e+4>>2]](J[e+28>>2],f,i+15|0,1)|0)==1){a=K[i+15|0];break D}if(Ab[J[e+24>>2]](J[e+28>>2],f)|0)break C;a=0}E:{if((Ab[J[e+4>>2]](J[e+28>>2],f,i+15|0,1)|0)==1){f=a|K[i+15|0]<<8;break E}if(Ab[J[e+24>>2]](J[e+28>> -2],f)|0)break C;f=P(a,257)}a=-103;if(!b)break k;j=J[e+216>>2];h=J[e+220>>2];a=-104;b=Qb(208);if(!b)break k;l=Qb(16384);J[b+200>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;m=f;J[b+88>>2]=f;f=h;n=c+j|0;f=n>>>0>>0?f+1|0:f;n=n+30|0;f=n>>>0<30?f+1|0:f;J[b+80>>2]=n;J[b+84>>2]=f;J[b>>2]=l;if(!l){Kb(b);break k}J[b+72>>2]=0;a=J[e+148>>2];J[b+112>>2]=0;J[b+116>>2]=a;J[b+104>>2]=0;J[b+108>>2]=0;a=J[e+140>>2];J[b+184>>2]=a;J[b+180>>2]=J[e+48>>2];f=J[e+4>>2];J[b+136>>2]=J[e>>2];J[b+140>>2]=f;f=J[e+12>>2];J[b+144>>2]= -J[e+8>>2];J[b+148>>2]=f;f=J[e+20>>2];J[b+152>>2]=J[e+16>>2];J[b+156>>2]=f;f=J[e+28>>2];J[b+160>>2]=J[e+24>>2];J[b+164>>2]=f;f=J[e+36>>2];J[b+168>>2]=J[e+32>>2];J[b+172>>2]=f;J[b+176>>2]=J[e+40>>2];f=J[e+72>>2];l=J[e+76>>2];J[b+24>>2]=0;J[b+192>>2]=f;J[b+196>>2]=l;F:{if((a|0)==12){J[b+200>>2]=1;break F}if((a|0)!=8)break F;J[b+4>>2]=0;J[b+8>>2]=0;J[b+44>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;a=Ms(b+4|0,-15,228126);if(a)break B;J[b+72>>2]=8;j=J[e+216>>2];h=J[e+220>>2]}a=J[e+156>>2];J[b+120>>2]=J[e+152>>2]; -J[b+124>>2]=a;f=J[e+160>>2];l=J[e+164>>2];a=h;c=j+(c+m|0)|0;a=c>>>0>>0?a+1|0:a;c=c+30|0;a=c>>>0<30?a+1|0:a;J[b+64>>2]=c;J[b+68>>2]=a;J[b+128>>2]=f;J[b+132>>2]=l;a=0;J[b+8>>2]=0;J[e+228>>2]=0;J[e+224>>2]=b;break k}a=-103;break k}Kb(b)}xb=i+16|0;if(!a){G:{if(!e)break G;b=J[e+224>>2];if(!b|!J[b>>2])break G;a=0;if(!g)break G;J[b+20>>2]=g;J[b+16>>2]=p;j=g;f=J[b+132>>2];c=J[b+128>>2];if(!(J[b+200>>2]|(!f&g>>>0<=c>>>0|(f|0)!=0))){g=c;J[b+20>>2]=g}f=J[b+124>>2];h=J[b+8>>2];c=J[b+120>>2];m=c+h|0;f=h>>> -0>m>>>0?f+1|0:f;if(!(!J[b+200>>2]|(!f&j>>>0<=m>>>0|(f|0)!=0))){g=c+h|0;J[b+20>>2]=g}if(!g)break G;i=b+4|0;j=b+136|0;while(1){c=a;g=J[b+8>>2];H:{if(g)break H;a=J[b+120>>2];g=J[b+124>>2];if(!(a|g)){g=0;break H}f=J[b+196>>2]+J[b+68>>2]|0;l=J[b+64>>2];h=l+J[b+192>>2]|0;if(_e(j,J[b+180>>2],h,h>>>0>>0?f+1|0:f,0))break G;f=!g&a>>>0>=16384|(g|0)!=0;a=f?16384:a;f=f?0:g;g=a;if((Ab[J[b+140>>2]](J[b+164>>2],J[b+180>>2],J[b>>2],a)|0)!=(a|0))break G;J[b+8>>2]=a;J[b+4>>2]=J[b>>2];a=f+J[b+68>>2]|0;h=g+J[b+64>> -2]|0;a=h>>>0>>0?a+1|0:a;J[b+64>>2]=h;J[b+68>>2]=a;a=J[b+120>>2];f=J[b+124>>2]-((g>>>0>a>>>0)+f|0)|0;a=a-g|0;J[b+120>>2]=a;J[b+124>>2]=f}I:{a=J[b+184>>2];if(!(J[b+200>>2]?0:a)){if(!((J[b+120>>2]|J[b+124>>2])!=0|g))break G;a=J[b+20>>2];f=a>>>0>>0?a:g;J:{if(!f)break J;a=0;g=0;if(f>>>0>=4){m=f&-4;h=0;while(1){H[J[b+16>>2]+g|0]=K[J[b+4>>2]+g|0];l=g|1;H[l+J[b+16>>2]|0]=K[l+J[b+4>>2]|0];l=g|2;H[l+J[b+16>>2]|0]=K[l+J[b+4>>2]|0];l=g|3;H[l+J[b+16>>2]|0]=K[l+J[b+4>>2]|0];g=g+4|0;h=h+4|0;if((m|0)!=(h|0))continue; -break}}h=f&3;if(!h)break J;while(1){H[J[b+16>>2]+g|0]=K[J[b+4>>2]+g|0];g=g+1|0;a=a+1|0;if((h|0)!=(a|0))continue;break}}h=J[b+108>>2];g=J[b+104>>2];a=g+f|0;J[b+104>>2]=a;J[b+108>>2]=a>>>0>>0?h+1|0:h;t=b,u=Ad(J[b+112>>2],J[b+16>>2],f),J[t+112>>2]=u;a=J[b+128>>2];g=J[b+132>>2]-(f>>>0>a>>>0)|0;a=a-f|0;J[b+128>>2]=a;J[b+132>>2]=g;J[b+8>>2]=J[b+8>>2]-f;J[b+20>>2]=J[b+20>>2]-f;J[b+16>>2]=f+J[b+16>>2];J[b+4>>2]=f+J[b+4>>2];J[b+24>>2]=f+J[b+24>>2];a=c+f|0;break I}if((a|0)==12){a=c;break I}l=J[b+16>>2]; -f=J[b+24>>2];g=ni(i,2);if((g|0)>=0)g=J[b+28>>2]?-3:g;h=J[b+24>>2];a=h-f|0;p=J[b+104>>2];m=a+p|0;n=0-(f>>>0>h>>>0)|0;h=n+J[b+108>>2]|0;J[b+104>>2]=m;J[b+108>>2]=m>>>0

>>0?h+1|0:h;t=b,u=Ad(J[b+112>>2],l,a),J[t+112>>2]=u;f=J[b+128>>2];h=J[b+132>>2]-((f>>>0>>0)+n|0)|0;f=f-a|0;J[b+128>>2]=f;J[b+132>>2]=h;a=a+c|0;if(!g)break I;break G}if(J[b+20>>2])continue;break}}K:{if(!e)break K;a=J[e+224>>2];if(!a)break K;b=J[a>>2];if(b)Kb(b);J[a>>2]=0;if(J[a+72>>2]==8)Tg(a+4|0);Kb(a);J[e+224>>2]=0}}break g}if(!EF(e))continue; -break}}xb=s+80|0;FF(e);J[k+16>>2]=J[d>>2];J[k+12>>2]=J[o>>2];Kb(r)}xb=q+32|0}function Ama(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;i=xb-32|0;xb=i;H[b+140|0]=K[b+140|0]|128;J[b+72>>2]=0;J[b+64>>2]=0;I[b+62>>1]=1;J[b+84>>2]=J[b+80>>2];J[b+64>>2]=0;o=J[b+68>>2];while(1){a:{j=J[b+64>>2];if(!K[b+60|0]|j>>>0>=o>>>0)break a;f=J[b+80>>2]+P(j,20)|0;a=J[f>>2];b:{if((a&-2)==12334){c:{if(!(J[b+72>>2]!=(g|0)|g>>>0<=k>>>0)){Ac(b,3,k,j,1,1);if(K[b+62|0]){d:{if(J[b+84>> -2]==J[b+80>>2]){h=J[b+72>>2];if((h|0)==J[b+64>>2])break d}if(!ec(b,1,1))break a;f=J[b+80>>2]+P(J[b+64>>2],20)|0;d=J[f+4>>2];e=J[b+84>>2]+P(J[b+72>>2],20)|0;J[e>>2]=J[f>>2];J[e+4>>2]=d;J[e+16>>2]=J[f+16>>2];d=J[f+12>>2];J[e+8>>2]=J[f+8>>2];J[e+12>>2]=d;h=J[b+72>>2]}J[b+72>>2]=h+1}J[b+64>>2]=J[b+64>>2]+1;if(Ae(c,a,i+8|0))if(!DI(c,J[i+8>>2]))break c;xh(b,k,g+1|0);d=J[b+84>>2];e=d+P(g,20)|0;J[i+24>>2]=J[e+16>>2];a=J[e+12>>2];J[i+16>>2]=J[e+8>>2];J[i+20>>2]=a;a=J[e+4>>2];J[i+8>>2]=J[e>>2];J[i+12>>2]=a; -d=d+P(k,20)|0;qc(d+20|0,d,P(g-k|0,20));J[d+16>>2]=J[i+24>>2];a=J[i+20>>2];J[d+8>>2]=J[i+16>>2];J[d+12>>2]=a;a=J[i+12>>2];J[d>>2]=J[i+8>>2];J[d+4>>2]=a;break c}e:{if(K[b+16|0]&16)break e;J[i+8>>2]=0;d=J[c+116>>2];j=J[d+28>>2];f=J[c+120>>2];e=i+8|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(!(Ab[j|0](c,f,9676,e,d)|0))break e;f:{if(!Ae(c,a,e)){g=9676;break f}d=DI(c,J[i+8>>2]);g=d?9676:a;a=d?a:9676}if(!ec(b,1,2))break c;d=J[b+64>>2];g:{if(d>>>0>2]){h=J[b+72>>2];e=J[b+84>>2];d=J[b+80>>2]+P(d,20)| -0;break g}e=J[b+84>>2];h=J[b+72>>2];d=h-1|0;d=e+P(d>>>0<=h>>>0?d:0,20)|0}f=P(h,20)+e|0;e=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=e;J[f+16>>2]=J[d+16>>2];e=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=e;J[f>>2]=a;a=J[d+4>>2];J[f+20>>2]=J[d>>2];J[f+24>>2]=a;a=J[d+12>>2];J[f+28>>2]=J[d+8>>2];J[f+32>>2]=a;J[f+36>>2]=J[d+16>>2];J[f+20>>2]=g;J[b+64>>2]=J[b+64>>2]+1;J[b+72>>2]=J[b+72>>2]+2;break c}if(K[b+62|0]){h:{if(J[b+84>>2]==J[b+80>>2]){a=J[b+72>>2];if((a|0)==J[b+64>>2])break h}if(!ec(b,1,1))break c;d=J[b+ -80>>2]+P(J[b+64>>2],20)|0;a=J[d+4>>2];e=J[b+84>>2]+P(J[b+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+16>>2]=J[d+16>>2];a=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=a;a=J[b+72>>2]}J[b+72>>2]=a+1}J[b+64>>2]=J[b+64>>2]+1}a=3;g=J[b+72>>2];k=g;break b}k=J[b+72>>2];i:{d=a-4352|0;j:{if(!(d>>>0>95&a-43360>>>0>28|j+1>>>0>=o>>>0)){m=J[f+20>>2];if(m-4448>>>0>=72&m-55216>>>0>22)break j;e=0;g=0;if(j+2>>>0>>0){f=J[f+40>>2];e=f-4520>>>0<88|f-55243>>>0<49;g=e?f:0;e=e?f-4519|0:0}h=g?3:2;Ac(b,3,j,h+j|0,1,0);k:{if(d>>> -0>18|m-4449>>>0>20|(g-4520>>>0>26?g:0))break k;J[i+8>>2]=0;n=J[c+116>>2];l=J[n+28>>2];d=J[c+120>>2];f=((P(a,588)+P(m,28)|0)+e|0)-2639516|0;e=i+8|0;a=J[n+12>>2];if(a)a=J[a+8>>2];else a=0;if(!(Ab[l|0](c,d,f,e,a)|0))break k;if(!ec(b,h,1))break i;a=J[b+64>>2];Kd(b,a,a+h|0);a=J[b+64>>2];l:{if(a>>>0>2]){g=J[b+72>>2];e=J[b+84>>2];d=J[b+80>>2]+P(a,20)|0;break l}e=J[b+84>>2];g=J[b+72>>2];a=g-1|0;d=e+P(a>>>0<=g>>>0?a:0,20)|0}a=P(g,20)+e|0;e=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=e;J[a+16>>2]=J[d+16>>2]; -e=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=e;J[a>>2]=f;J[b+64>>2]=h+J[b+64>>2];J[b+72>>2]=J[b+72>>2]+1;break i}H[(J[b+80>>2]+P(J[b+64>>2],20)|0)+19|0]=1;a=J[b+80>>2];m:{if(K[b+62|0]){n:{if(J[b+84>>2]==(a|0)){h=J[b+72>>2];if((h|0)==J[b+64>>2])break n}d=ec(b,1,1);h=J[b+64>>2];a=J[b+80>>2];if(!d)break m;e=P(h,20)+a|0;a=J[e+4>>2];d=J[b+84>>2]+P(J[b+72>>2],20)|0;J[d>>2]=J[e>>2];J[d+4>>2]=a;J[d+16>>2]=J[e+16>>2];a=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=a;a=J[b+80>>2];h=J[b+72>>2]}J[b+72>>2]=h+1}h=J[b+ -64>>2]+1|0;J[b+64>>2]=h}H[(P(h,20)+a|0)+19|0]=2;o:{if(K[b+62|0]){p:{if(J[b+84>>2]==J[b+80>>2]){a=J[b+72>>2];if((a|0)==J[b+64>>2])break p}if(!ec(b,1,1))break o;d=J[b+80>>2]+P(J[b+64>>2],20)|0;a=J[d+4>>2];e=J[b+84>>2]+P(J[b+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+16>>2]=J[d+16>>2];a=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=a;a=J[b+72>>2]}J[b+72>>2]=a+1}J[b+64>>2]=J[b+64>>2]+1}if(g){H[(J[b+80>>2]+P(J[b+64>>2],20)|0)+19|0]=3;q:{if(K[b+62|0]){r:{if(J[b+84>>2]==J[b+80>>2]){a=J[b+72>>2];if((a|0)== -J[b+64>>2])break r}if(!ec(b,1,1))break q;d=J[b+80>>2]+P(J[b+64>>2],20)|0;a=J[d+4>>2];e=J[b+84>>2]+P(J[b+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+16>>2]=J[d+16>>2];a=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=a;a=J[b+72>>2]}J[b+72>>2]=a+1}J[b+64>>2]=J[b+64>>2]+1}a=3}else a=2;if(!K[b+60|0])break a;g=a+k|0;a=3;if(J[b+20>>2])break b;xh(b,k,g);break b}e=a-44032|0;if(e>>>0>11171)break j;J[i+8>>2]=0;d=J[c+116>>2];l=J[d+28>>2];j=e&65535;m=(j>>>0)/588|0;f=J[c+120>>2];e=i+8|0;d=J[d+12>>2];if(d)d=J[d+8>> -2];else d=0;q=Ab[l|0](c,f,a,e,d)|0;d=(j>>>0)%588|0;e=(d>>>0)/28|0;h=d-P(e,28)|0;p=h&65535;s:{t:{if(!p){d=J[b+64>>2];u:{if(d+1>>>0>=o>>>0)break u;d=J[(J[b+80>>2]+P(d,20)|0)+20>>2];if(d-4520>>>0>26)break u;J[i+8>>2]=0;n=J[c+116>>2];l=J[n+28>>2];j=J[c+120>>2];f=(a+d|0)-4519|0;d=i+8|0;a=J[n+12>>2];if(a)a=J[a+8>>2];else a=0;if(Ab[l|0](c,j,f,d,a)|0){if(!ec(b,2,1))break i;a=J[b+64>>2];Kd(b,a,a+2|0);a=J[b+64>>2];v:{if(a>>>0>2]){g=J[b+72>>2];e=J[b+84>>2];d=J[b+80>>2]+P(a,20)|0;break v}e=J[b+84>>2]; -g=J[b+72>>2];a=g-1|0;d=e+P(a>>>0<=g>>>0?a:0,20)|0}a=P(g,20)+e|0;e=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=e;J[a+16>>2]=J[d+16>>2];e=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=e;J[a>>2]=f;J[b+64>>2]=J[b+64>>2]+2;J[b+72>>2]=J[b+72>>2]+1;break i}a=J[b+64>>2];Ac(b,3,a,a+2|0,1,0)}if(!q)break t;a=J[b+64>>2];if(a+1>>>0>=o>>>0)break s;a=J[(J[b+80>>2]+P(a,20)|0)+20>>2];if(a-4520>>>0<88)break t;if(a-55243>>>0>48)break s;break t}if(q)break s}a=0;J[i+8>>2]=0;d=J[c+116>>2];l=J[d+28>>2];w:{f=J[c+120>>2];n=m|4352;j= -i+8|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(!(Ab[l|0](c,f,n,j,d)|0))break w;J[i+8>>2]=0;d=J[c+116>>2];l=J[d+28>>2];j=J[c+120>>2];f=e+4449|0;e=i+8|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;if(!(Ab[l|0](c,j,f,e,d)|0))break w;l=h+4519&65535;x:{if(!p){h=2;break x}J[i+8>>2]=0;d=J[c+116>>2];e=J[d+28>>2];h=3;j=J[c+120>>2];m=i+8|0;d=J[d+12>>2];if(d)a=J[d+8>>2];if(!(Ab[e|0](c,j,l,m,a)|0))break s}if(ec(b,1,h)){a=J[b+64>>2];y:{if(a>>>0>2]){e=J[b+80>>2]+P(a,20)|0;a=J[b+72>>2];j=J[b+84>>2];break y}j= -J[b+84>>2];a=J[b+72>>2];d=a-1|0;e=j+P(a>>>0>=d>>>0?d:0,20)|0}d=P(a,20)+j|0;a=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=a;J[d+16>>2]=J[e+16>>2];a=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=a;J[d>>2]=n;a=J[e+4>>2];J[d+20>>2]=J[e>>2];J[d+24>>2]=a;a=J[e+12>>2];J[d+28>>2]=J[e+8>>2];J[d+32>>2]=a;J[d+36>>2]=J[e+16>>2];J[d+20>>2]=f;if(p){a=J[e+4>>2];J[d+40>>2]=J[e>>2];J[d+44>>2]=a;J[d+56>>2]=J[e+16>>2];a=J[e+12>>2];J[d+48>>2]=J[e+8>>2];J[d+52>>2]=a;J[d+40>>2]=l}J[b+64>>2]=J[b+64>>2]+1;J[b+72>>2]=J[b+72>>2]+h}if(!(!q| -p)){z:{if(K[b+62|0]){A:{if(J[b+84>>2]==J[b+80>>2]){a=J[b+72>>2];if((a|0)==J[b+64>>2])break A}if(!ec(b,1,1))break z;d=J[b+80>>2]+P(J[b+64>>2],20)|0;a=J[d+4>>2];e=J[b+84>>2]+P(J[b+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+16>>2]=J[d+16>>2];a=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=a;a=J[b+72>>2]}J[b+72>>2]=a+1}J[b+64>>2]=J[b+64>>2]+1}h=h+1|0}if(!K[b+60|0]){a=2;break b}d=J[b+84>>2];a=d+P(k,20)|0;H[a+39|0]=2;H[a+19|0]=1;g=h+k|0;a=k+2|0;if(g>>>0>a>>>0)H[(d+P(a,20)|0)+19|0]=3;a=3;if(J[b+20>>2])break b; -xh(b,k,g);break b}if(p)break s;d=J[b+64>>2];if(d+1>>>0>=o>>>0)break s;a=J[(J[b+80>>2]+P(d,20)|0)+20>>2];if(a-4520>>>0>=88&a-55243>>>0>48)break s;Ac(b,3,d,d+2|0,1,0)}g=q?k+1|0:g}B:{if(K[b+62|0]){C:{if(J[b+84>>2]==J[b+80>>2]){a=J[b+72>>2];if((a|0)==J[b+64>>2])break C}if(!ec(b,1,1))break B;d=J[b+80>>2]+P(J[b+64>>2],20)|0;a=J[d+4>>2];e=J[b+84>>2]+P(J[b+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=a;J[e+16>>2]=J[d+16>>2];a=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=a;a=J[b+72>>2]}J[b+72>>2]=a+1}J[b+64>>2]=J[b+ -64>>2]+1}a=0;break b}g=k+1|0;a=3}if((a|0)!=2)continue}break}hf(b);xb=i+32|0}function rE(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,z=0,A=0,B=0,C=0,D=0,E=0;e=xb-1408|0;xb=e;g=d<<3;q=g&-32|4;f=c<<2;r=f&-32|2;k=b<<3;s=k&-32|4;y=J[J[a+480>>2]+24>>2];l=J[a+132>>2];a:{if((l|0)<=0){l=0;break a}m=g|28;t=m+q>>>1|0;o=f|30;u=o+r>>>1|0;p=k|28;v=p+s>>>1|0;g=J[a+136>>2];i=J[g+8>>2];w=J[g+4>>2];x=J[g>>2];f=0;h=2147483647;while(1){g=K[f+x|0];b:{if((g|0)<(s|0)){k= -g-p<<1;k=P(k,k);g=g-s<<1;n=P(g,g);break b}if((g|0)>(p|0)){k=g-s<<1;k=P(k,k);g=g-p<<1;n=P(g,g);break b}c:{if(g>>>0<=v>>>0){g=g-p<<1;k=P(g,g);break c}g=g-s<<1;k=P(g,g)}n=0}g=n;j=K[f+w|0];d:{if((j|0)<(r|0)){g=P(j-r|0,3);g=n+P(g,g)|0;j=P(j-o|0,3);n=P(j,j);break d}if((j|0)>(o|0)){n=g;g=P(j-o|0,3);g=n+P(g,g)|0;j=P(j-r|0,3);n=P(j,j);break d}if(j>>>0<=u>>>0){j=P(j-o|0,3);n=P(j,j);break d}j=P(j-r|0,3);n=P(j,j)}j=n+k|0;k=K[f+i|0];e:{if((k|0)<(q|0)){n=g;g=k-q|0;g=n+P(g,g)|0;k=k-m|0;k=P(k,k);break e}if((k|0)> -(m|0)){n=g;g=k-m|0;g=n+P(g,g)|0;k=k-q|0;k=P(k,k);break e}if(k>>>0<=t>>>0){k=k-m|0;k=P(k,k);break e}k=k-q|0;k=P(k,k)}J[(e+384|0)+(f<<2)>>2]=g;g=j+k|0;h=(g|0)<(h|0)?g:h;f=f+1|0;if((l|0)!=(f|0))continue;break}k=l&1;f:{if((l|0)==1){l=0;f=0;break f}j=l&-2;l=0;f=0;g=0;while(1){if(J[(e+384|0)+(f<<2)>>2]<=(h|0)){H[(e+128|0)+l|0]=f;l=l+1|0}m=f|1;if(J[(e+384|0)+(m<<2)>>2]<=(h|0)){H[(e+128|0)+l|0]=m;l=l+1|0}f=f+2|0;g=g+2|0;if((j|0)!=(g|0))continue;break}}if(!k|J[(e+384|0)+(f<<2)>>2]>(h|0))break a;H[(e+128|0)+ -l|0]=f;l=l+1|0}J[e+888>>2]=2147483647;J[e+892>>2]=2147483647;J[e+880>>2]=2147483647;J[e+884>>2]=2147483647;J[e+872>>2]=2147483647;J[e+876>>2]=2147483647;J[e+864>>2]=2147483647;J[e+868>>2]=2147483647;J[e+856>>2]=2147483647;J[e+860>>2]=2147483647;J[e+848>>2]=2147483647;J[e+852>>2]=2147483647;J[e+840>>2]=2147483647;J[e+844>>2]=2147483647;J[e+832>>2]=2147483647;J[e+836>>2]=2147483647;J[e+824>>2]=2147483647;J[e+828>>2]=2147483647;J[e+816>>2]=2147483647;J[e+820>>2]=2147483647;J[e+808>>2]=2147483647;J[e+ -812>>2]=2147483647;J[e+800>>2]=2147483647;J[e+804>>2]=2147483647;J[e+792>>2]=2147483647;J[e+796>>2]=2147483647;J[e+784>>2]=2147483647;J[e+788>>2]=2147483647;J[e+776>>2]=2147483647;J[e+780>>2]=2147483647;J[e+768>>2]=2147483647;J[e+772>>2]=2147483647;J[e+760>>2]=2147483647;J[e+764>>2]=2147483647;J[e+752>>2]=2147483647;J[e+756>>2]=2147483647;J[e+744>>2]=2147483647;J[e+748>>2]=2147483647;J[e+736>>2]=2147483647;J[e+740>>2]=2147483647;J[e+728>>2]=2147483647;J[e+732>>2]=2147483647;J[e+720>>2]=2147483647; -J[e+724>>2]=2147483647;J[e+712>>2]=2147483647;J[e+716>>2]=2147483647;J[e+704>>2]=2147483647;J[e+708>>2]=2147483647;J[e+696>>2]=2147483647;J[e+700>>2]=2147483647;J[e+688>>2]=2147483647;J[e+692>>2]=2147483647;J[e+680>>2]=2147483647;J[e+684>>2]=2147483647;J[e+672>>2]=2147483647;J[e+676>>2]=2147483647;J[e+664>>2]=2147483647;J[e+668>>2]=2147483647;J[e+656>>2]=2147483647;J[e+660>>2]=2147483647;J[e+648>>2]=2147483647;J[e+652>>2]=2147483647;J[e+640>>2]=2147483647;J[e+644>>2]=2147483647;J[e+632>>2]=2147483647; -J[e+636>>2]=2147483647;J[e+624>>2]=2147483647;J[e+628>>2]=2147483647;J[e+616>>2]=2147483647;J[e+620>>2]=2147483647;J[e+608>>2]=2147483647;J[e+612>>2]=2147483647;J[e+600>>2]=2147483647;J[e+604>>2]=2147483647;J[e+592>>2]=2147483647;J[e+596>>2]=2147483647;J[e+584>>2]=2147483647;J[e+588>>2]=2147483647;J[e+576>>2]=2147483647;J[e+580>>2]=2147483647;J[e+568>>2]=2147483647;J[e+572>>2]=2147483647;J[e+560>>2]=2147483647;J[e+564>>2]=2147483647;J[e+552>>2]=2147483647;J[e+556>>2]=2147483647;J[e+544>>2]=2147483647; -J[e+548>>2]=2147483647;J[e+536>>2]=2147483647;J[e+540>>2]=2147483647;J[e+528>>2]=2147483647;J[e+532>>2]=2147483647;J[e+520>>2]=2147483647;J[e+524>>2]=2147483647;J[e+512>>2]=2147483647;J[e+516>>2]=2147483647;J[e+504>>2]=2147483647;J[e+508>>2]=2147483647;J[e+496>>2]=2147483647;J[e+500>>2]=2147483647;J[e+488>>2]=2147483647;J[e+492>>2]=2147483647;J[e+480>>2]=2147483647;J[e+484>>2]=2147483647;J[e+472>>2]=2147483647;J[e+476>>2]=2147483647;J[e+464>>2]=2147483647;J[e+468>>2]=2147483647;J[e+456>>2]=2147483647; -J[e+460>>2]=2147483647;J[e+448>>2]=2147483647;J[e+452>>2]=2147483647;J[e+440>>2]=2147483647;J[e+444>>2]=2147483647;J[e+432>>2]=2147483647;J[e+436>>2]=2147483647;J[e+424>>2]=2147483647;J[e+428>>2]=2147483647;J[e+416>>2]=2147483647;J[e+420>>2]=2147483647;J[e+408>>2]=2147483647;J[e+412>>2]=2147483647;J[e+400>>2]=2147483647;J[e+404>>2]=2147483647;J[e+392>>2]=2147483647;J[e+396>>2]=2147483647;J[e+384>>2]=2147483647;J[e+388>>2]=2147483647;if((l|0)>0){v=J[a+136>>2];w=J[v+8>>2];x=J[v+4>>2];t=0;while(1){a= -3;j=K[(e+128|0)+t|0];g=r-K[j+x|0]|0;f=P(g,3);k=P(f,f);h=s-K[j+J[v>>2]|0]|0;f=h<<1;k=k+P(f,f)|0;f=q-K[j+w|0]|0;k=k+P(f,f)|0;g=P(g,72);n=g+1872|0;z=g+1584|0;A=g+1296|0;B=g+1008|0;C=g+720|0;D=g+432|0;f=f<<4;m=f+320|0;o=f+192|0;p=f- -64|0;E=g+144|0;u=(h<<6)+256|0;f=e+384|0;g=e;while(1){if(J[f>>2]>(k|0)){J[f>>2]=k;H[g|0]=j}h=k+p|0;if((h|0)>2]){J[f+4>>2]=h;H[g+1|0]=j}h=h+o|0;if((h|0)>2]){J[f+8>>2]=h;H[g+2|0]=j}h=h+m|0;if((h|0)>2]){J[f+12>>2]=h;H[g+3|0]=j}h=k+E|0;if((h|0)>2]){J[f+ -16>>2]=h;H[g+4|0]=j}i=h+p|0;if((i|0)>2]){J[f+20>>2]=i;H[g+5|0]=j}i=i+o|0;if((i|0)>2]){J[f+24>>2]=i;H[g+6|0]=j}i=i+m|0;if((i|0)>2]){J[f+28>>2]=i;H[g+7|0]=j}h=h+D|0;if((h|0)>2]){J[f+32>>2]=h;H[g+8|0]=j}i=h+p|0;if((i|0)>2]){J[f+36>>2]=i;H[g+9|0]=j}i=i+o|0;if((i|0)>2]){J[f+40>>2]=i;H[g+10|0]=j}i=i+m|0;if((i|0)>2]){J[f+44>>2]=i;H[g+11|0]=j}h=h+C|0;if((h|0)>2]){J[f+48>>2]=h;H[g+12|0]=j}i=h+p|0;if((i|0)>2]){J[f+52>>2]=i;H[g+13|0]=j}i= -i+o|0;if((i|0)>2]){J[f+56>>2]=i;H[g+14|0]=j}i=i+m|0;if((i|0)>2]){J[f+60>>2]=i;H[g+15|0]=j}h=h+B|0;if((h|0)>2]){J[f+64>>2]=h;H[g+16|0]=j}i=h+p|0;if((i|0)>2]){J[f+68>>2]=i;H[g+17|0]=j}i=i+o|0;if((i|0)>2]){J[f+72>>2]=i;H[g+18|0]=j}i=i+m|0;if((i|0)>2]){J[f+76>>2]=i;H[g+19|0]=j}h=h+A|0;if((h|0)>2]){J[f+80>>2]=h;H[g+20|0]=j}i=h+p|0;if((i|0)>2]){J[f+84>>2]=i;H[g+21|0]=j}i=i+o|0;if((i|0)>2]){J[f+88>>2]=i;H[g+22|0]=j}i=i+m|0;if((i|0)< -J[f+92>>2]){J[f+92>>2]=i;H[g+23|0]=j}h=h+z|0;if((h|0)>2]){J[f+96>>2]=h;H[g+24|0]=j}i=h+p|0;if((i|0)>2]){J[f+100>>2]=i;H[g+25|0]=j}i=i+o|0;if((i|0)>2]){J[f+104>>2]=i;H[g+26|0]=j}i=i+m|0;if((i|0)>2]){J[f+108>>2]=i;H[g+27|0]=j}h=h+n|0;if((h|0)>2]){J[f+112>>2]=h;H[g+28|0]=j}h=h+p|0;if((h|0)>2]){J[f+116>>2]=h;H[g+29|0]=j}h=h+o|0;if((h|0)>2]){J[f+120>>2]=h;H[g+30|0]=j}h=h+m|0;if((h|0)>2]){J[f+124>>2]=h;H[g+31|0]=j}h=a;a=h-1|0;k=k+u| -0;g=g+32|0;f=f+128|0;u=u+512|0;if(h)continue;break}t=t+1|0;if((t|0)!=(l|0))continue;break}}b=((b&1073741820)<<2)+y|0;h=0;f=e;c=(c&-8)<<6;d=(d&-4)<<1;while(1){a=d+(c+J[b+(h<<2)>>2]|0)|0;I[a>>1]=K[f|0]+1;I[a+2>>1]=K[f+1|0]+1;I[a+4>>1]=K[f+2|0]+1;I[a+6>>1]=K[f+3|0]+1;I[a- -64>>1]=K[f+4|0]+1;I[a+66>>1]=K[f+5|0]+1;I[a+68>>1]=K[f+6|0]+1;I[a+70>>1]=K[f+7|0]+1;I[a+128>>1]=K[f+8|0]+1;I[a+130>>1]=K[f+9|0]+1;I[a+132>>1]=K[f+10|0]+1;I[a+134>>1]=K[f+11|0]+1;I[a+192>>1]=K[f+12|0]+1;I[a+194>>1]=K[f+13|0]+1;I[a+ -196>>1]=K[f+14|0]+1;I[a+198>>1]=K[f+15|0]+1;I[a+256>>1]=K[f+16|0]+1;I[a+258>>1]=K[f+17|0]+1;I[a+260>>1]=K[f+18|0]+1;I[a+262>>1]=K[f+19|0]+1;I[a+320>>1]=K[f+20|0]+1;I[a+322>>1]=K[f+21|0]+1;I[a+324>>1]=K[f+22|0]+1;I[a+326>>1]=K[f+23|0]+1;I[a+384>>1]=K[f+24|0]+1;I[a+386>>1]=K[f+25|0]+1;I[a+388>>1]=K[f+26|0]+1;I[a+390>>1]=K[f+27|0]+1;I[a+448>>1]=K[f+28|0]+1;I[a+450>>1]=K[f+29|0]+1;I[a+452>>1]=K[f+30|0]+1;I[a+454>>1]=K[f+31|0]+1;f=f+32|0;h=h+1|0;if((h|0)!=4)continue;break}xb=e+1408|0}function sna(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;i=xb-16|0;xb=i;a:{b:{c:{d:{e:switch(K[a+4|0]){case 0:c=J[b+4>>2];if(!(H[c+128|0]&1))break c;e=K[a+5|0];J[i+8>>2]=a;J[i+12>>2]=b;H[i+4|0]=e>>>2&1;J[i>>2]=i+8;j=J[b+8>>2];h=J[b+16>>2];o=J[c+120>>2];b=0;a=0;s=xb-224|0;xb=s;f:{if(!nc(h,j,106810,0))break f;g:{if(!(K[h+16|0]&64))break g;J[h+144>>2]=J[h+144>>2]|32;e=J[h+68>>2];if(!e)break g;c=J[h+80>>2];if(e>>>0>=4){g=e&-4;while(1){f=c+P(a,20)|0;J[f+4>>2]=J[f+4>> -2]|2;f=c+P(a|1,20)|0;J[f+4>>2]=J[f+4>>2]|2;f=c+P(a|2,20)|0;J[f+4>>2]=J[f+4>>2]|2;f=c+P(a|3,20)|0;J[f+4>>2]=J[f+4>>2]|2;a=a+4|0;b=b+4|0;if((g|0)!=(b|0))continue;break}}b=e&3;if(!b)break g;while(1){e=c+P(a,20)|0;J[e+4>>2]=J[e+4>>2]|2;a=a+1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}}c=Cf(s+8|0,1,j,h,169776);J[c+208>>2]=-1;J[c+212>>2]=0;J[c+176>>2]=o;a=J[J[c+88>>2]+68>>2];J[c+184>>2]=8;J[c+36>>2]=a;J[c+8>>2]=c;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;H[c+21|0]=K[c+194|0];b=J[c+76>>2];e=(b|0)==1;H[c+20|0]= -e;J[c+12>>2]=8;J[c+72>>2]=a;J[c+44>>2]=c;H[c+23|0]=0;J[c+16>>2]=o;a=!b&K[c+195|0]!=0;H[c+22|0]=a;d=K[c+193|0];J[c+60>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;H[c+57|0]=1;H[c+56|0]=e?1:d;H[c+58|0]=a&(b|0)!=1;J[c+48>>2]=8;J[c+52>>2]=-1;H[c+59|0]=0;p=J[h+68>>2];if(p){g=J[h+88>>2];n=J[h+80>>2];u=(J[h+40>>2]&-2)!=4;a=0;while(1){h:{i:{q=P(a,20);r=q+n|0;if(!(o&J[r+4>>2]))break i;J[c+4>>2]=a;b=J[J[c+8>>2]+88>>2];e=J[b+68>>2];J[c+36>>2]=e;H[c+23|0]=K[c+22|0]?J[b+64>>2]==(a|0)?K[(q+J[b+80>>2]|0)+15|0]:0:0;b=a;k=e-1| -0;if((a|0)>=(k|0))break i;j:{while(1){k:{e=b+1|0;J[c+4>>2]=e;l:{b=J[c+12>>2];d=J[c+8>>2];f=J[J[d+88>>2]+80>>2]+P(e,20)|0;e=L[f+12>>1];m:{if(b&e&14)break m;n:{if(!(e&8))break n;if(b&16){e=J[d+148>>2];d=J[f>>2];J[195395]=0;b=jf(e,b>>>16|0,d);e=J[195395];J[195395]=0;if((e|0)==1)break k;if(b)break n;break m}b=b&65280;if(!b)break n;if((b|0)!=(e&65280))break m}d=1;b=L[f+16>>1];if(!(K[f+12|0]&16|(b&96)!=32|!K[c+20|0]&(b&543)==513))d=!K[c+21|0]&(b&287)==257;b=J[c+32>>2];if(b){e=K[b|0]|K[b+1|0]<<8;e=(e<<8| -e>>>8)&65535}else e=0;if(!(J[c+16>>2]&J[f+4>>2]))break l;l=K[c+23|0];if((l|0)!=K[f+15|0]?l:0)break l;l=J[c+24>>2];if(l){b=J[c+28>>2];J[195395]=0;b=aa(l|0,f|0,e|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break k;if(!b)break l;b=J[c+32>>2];break j}if(d)break j}b=J[c+4>>2];if((k|0)<=(b|0))break i;continue}b=J[c+4>>2];if(!((k|0)<=(b|0)|d))continue;break i}break}break a}if(b)J[c+32>>2]=b+2;e=J[c+4>>2];k=P(e,20);b=J[J[i>>2]>>2];d=K[b+6|0]|K[b+7|0]<<8;o:{if(d){v=b+14|0;l=J[k+n>>2];r=J[r>>2];b=((d<<8|d>>> -8)&65535)-1|0;d=0;while(1){p:{q:{t=b+d>>>1|0;f=P(t,6)+v|0;m=K[f|0]|K[f+1|0]<<8;m=(m<<8|m>>>8)&65535;r:{if((m|0)==(r|0)){m=K[f+2|0]|K[f+3|0]<<8;m=(m<<8|m>>>8)&65535;if(m>>>0>l>>>0)break r;if((l|0)==(m|0))break o;break q}if(m>>>0<=r>>>0)break q}b=t-1|0;break p}d=t+1|0}if((b|0)>=(d|0))continue;break}}f=169776}d=K[f+4|0]|K[f+5|0]<<8;if(!d)break h;b=d<<8|d>>>8;s:{if(!u){d=b<<16;f=d>>31;d=Kpa(J[j+72>>2],J[j+76>>2],d>>16,f);b=zb;d=d+32768|0;b=((d>>>0<32768?b+1|0:b)&65535)<<16|d>>>16;if(K[i+4|0]){J[(g+k| -0)+12>>2]=b;J[h+144>>2]=J[h+144>>2]|8;break s}d=g+q|0;f=b>>1;J[d>>2]=f+J[d>>2];d=g+k|0;b=b-f|0;J[d>>2]=b+J[d>>2];J[d+8>>2]=b+J[d+8>>2];break s}d=b<<16;b=d>>31;b=Kpa(J[j+80>>2],J[j+84>>2],d>>16,b);f=zb;b=b+32768|0;b=((b>>>0<32768?f+1|0:f)&65535)<<16|b>>>16;if(K[i+4|0]){J[(g+k|0)+8>>2]=b;J[h+144>>2]=J[h+144>>2]|8;break s}d=g+q|0;f=b>>1;J[d+4>>2]=f+J[d+4>>2];d=g+k|0;b=b-f|0;J[d+4>>2]=b+J[d+4>>2];J[d+12>>2]=b+J[d+12>>2]}J[195395]=0;Ac(h,3,a,e+1|0,1,0);a=J[195395];J[195395]=0;e=J[c+4>>2];if((a|0)!=1)break h; -break a}e=a+1|0}a=e;if(p>>>0>a>>>0)continue;break}}J[195395]=0;ha(594,h|0,j|0,106887,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(J[c+156>>2]);a=J[c+128>>2];if(!a)break f;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break f;break b}xb=s+224|0;break d;case 2:break e;default:break c}c=J[b+4>>2];if(!(H[c+128|0]&1))break c;e=K[a+5|0];J[i+8>>2]=a;J[i+12>>2]=b;H[i+4|0]=e>>>2&1;J[i>>2]=i+8;k=J[c+120>>2];a=0;q=xb-224|0;xb=q;t:{e=J[b+16>>2];h=J[b+8>>2];if(!nc(e,h,106810,0))break t;u:{if(!(K[e+ -16|0]&64))break u;J[e+144>>2]=J[e+144>>2]|32;c=J[e+68>>2];if(!c)break u;b=J[e+80>>2];if(c>>>0>=4){j=c&-4;while(1){g=b+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|1,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|2,20)|0;J[g+4>>2]=J[g+4>>2]|2;g=b+P(a|3,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}c=c&3;if(!c)break u;while(1){d=b+P(a,20)|0;J[d+4>>2]=J[d+4>>2]|2;a=a+1|0;f=f+1|0;if((c|0)!=(f|0))continue;break}}c=Cf(q+8|0,1,h,e,169776);J[c+208>>2]=-1;J[c+212>>2]=0;J[c+176>>2]=k;a=J[J[c+ -88>>2]+68>>2];J[c+184>>2]=8;J[c+36>>2]=a;J[c+8>>2]=c;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;H[c+21|0]=K[c+194|0];b=J[c+76>>2];d=(b|0)==1;H[c+20|0]=d;J[c+12>>2]=8;J[c+72>>2]=a;J[c+44>>2]=c;H[c+23|0]=0;J[c+16>>2]=k;a=!b&K[c+195|0]!=0;H[c+22|0]=a;j=K[c+193|0];J[c+60>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;H[c+57|0]=1;H[c+56|0]=d?1:j;H[c+58|0]=a&(b|0)!=1;J[c+48>>2]=8;J[c+52>>2]=-1;H[c+59|0]=0;l=J[e+68>>2];if(l){j=J[e+88>>2];s=J[e+80>>2];r=(J[e+40>>2]&-2)!=4;b=0;while(1){v:{w:{o=P(b,20);t=o+s|0;if(!(k&J[t+4>> -2]))break w;J[c+4>>2]=b;a=J[J[c+8>>2]+88>>2];d=J[a+68>>2];J[c+36>>2]=d;H[c+23|0]=K[c+22|0]?J[a+64>>2]==(b|0)?K[(o+J[a+80>>2]|0)+15|0]:0:0;a=b;n=d-1|0;if((a|0)>=(n|0))break w;x:{while(1){y:{d=a+1|0;J[c+4>>2]=d;z:{a=J[c+12>>2];f=J[c+8>>2];g=J[J[f+88>>2]+80>>2]+P(d,20)|0;d=L[g+12>>1];A:{if(a&d&14)break A;B:{if(!(d&8))break B;if(a&16){d=J[f+148>>2];f=J[g>>2];J[195395]=0;a=jf(d,a>>>16|0,f);d=J[195395];J[195395]=0;if((d|0)==1)break y;if(a)break B;break A}a=a&65280;if(!a)break B;if((a|0)!=(d&65280))break A}f= -1;a=L[g+16>>1];if(!(K[g+12|0]&16|(a&96)!=32|!K[c+20|0]&(a&543)==513))f=!K[c+21|0]&(a&287)==257;d=J[c+32>>2];if(d){a=K[d|0]|K[d+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;if(!(J[c+16>>2]&J[g+4>>2]))break z;p=K[c+23|0];if((p|0)!=K[g+15|0]?p:0)break z;p=J[c+24>>2];if(p){d=J[c+28>>2];J[195395]=0;a=aa(p|0,g|0,a|0,d|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break y;if(!a)break z;d=J[c+32>>2];break x}if(f)break x}a=J[c+4>>2];if((n|0)<=(a|0))break w;continue}a=J[c+4>>2];if(!((n|0)<=(a|0)|f))continue;break w}break}break a}if(d)J[c+ -32>>2]=d+2;n=J[c+4>>2];g=P(n,20);a=J[g+s>>2];d=J[t>>2];f=J[i>>2];J[195395]=0;a=nH(f,d,a);d=J[195395];J[195395]=0;C:{if((d|0)==1)break C;if(a){D:{if(!r){d=a<<16;f=d>>31;d=Kpa(J[h+72>>2],J[h+76>>2],d>>16,f);a=zb;d=d+32768|0;a=((d>>>0<32768?a+1|0:a)&65535)<<16|d>>>16;if(K[i+4|0]){J[(g+j|0)+12>>2]=a;J[e+144>>2]=J[e+144>>2]|8;break D}d=j+o|0;f=a>>1;J[d>>2]=f+J[d>>2];d=g+j|0;a=a-f|0;J[d>>2]=a+J[d>>2];J[d+8>>2]=a+J[d+8>>2];break D}d=a<<16;a=d>>31;a=Kpa(J[h+80>>2],J[h+84>>2],d>>16,a);f=zb;a=a+32768|0;a=((a>>> -0<32768?f+1|0:f)&65535)<<16|a>>>16;if(K[i+4|0]){J[(g+j|0)+8>>2]=a;J[e+144>>2]=J[e+144>>2]|8;break D}d=j+o|0;f=a>>1;J[d+4>>2]=f+J[d+4>>2];d=g+j|0;a=a-f|0;J[d+4>>2]=a+J[d+4>>2];J[d+12>>2]=a+J[d+12>>2]}J[195395]=0;Ac(e,3,b,n+1|0,1,0);a=J[195395];J[195395]=0;if((a|0)==1)break C}b=J[c+4>>2];break v}break a}b=b+1|0}if(l>>>0>b>>>0)continue;break}}J[195395]=0;ha(594,e|0,h|0,106887,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(J[c+156>>2]);a=J[c+128>>2];if(!a)break t;J[195395]=0;ea(583,a|0);a=J[195395]; -J[195395]=0;if((a|0)!=1)break t;break b}xb=q+224|0}e=1}xb=i+16|0;return e|0}ga(0)|0;_b();B()}a=Z()|0;wi(c);ba(a|0);B()}function tB(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;d=xb-128|0;xb=d;J[d+120>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{b=J[c>>2];g=J[c+4>>2];if((b|0)!=(g|0))while(1){c=J[b>>2];l:{if(J[b+4>>2]-c>>>0<16)break l;c=J[c>>2];J[195395]=0;e=d+68|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{if((c| -0)!=1){J[195395]=0;c=aa(1954,e|0,0,398272)|0;e=J[195395];J[195395]=0;if((e|0)==1)break H;J[d+88>>2]=J[c+8>>2];e=J[c+4>>2];J[d+80>>2]=J[c>>2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+80|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break G;J[d+104>>2]=J[d+88>>2];J[d+88>>2]=0;c=J[d+84>>2];J[d+96>>2]=J[d+80>>2];J[d+100>>2]=c;J[d+80>>2]=0;J[d+84>>2]=0;c=J[J[b>>2]+4>>2];J[195395]=0;e=d+56|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break F;J[195395]=0;f=e;c=K[d+ -67|0];e=c<<24>>24<0;c=aa(1864,d+96|0,(e?J[d+56>>2]:f)|0,(e?J[d+60>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break E;J[d+16>>2]=J[c+8>>2];e=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+8|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break D;J[d+40>>2]=J[d+16>>2];J[d+16>>2]=0;e=J[d+12>>2];c=J[d+8>>2];J[d+32>>2]=c;J[d+36>>2]=e;J[d+8>>2]=0;J[d+12>>2]=0;J[195395]=0;f=c;c=H[d+43|0];e=(c|0)<0;aa(1864,d+112|0,(e?f:d+32|0)|0,(e?J[d+36>>2]:c&255)|0)|0;c= -J[195395];J[195395]=0;if((c|0)==1)break C;if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+67|0]<0)Kb(J[d+56>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+79|0]<0)Kb(J[d+68>>2]);c=J[b>>2];i=J[b+4>>2];if((c|0)!=(i|0)){while(1){e=J[c>>2];J[195395]=0;f=d+80|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break w;J[195395]=0;$(1811,f|0,44);e=J[195395];J[195395]=0;if((e|0)==1)break v;J[d+104>>2]=J[d+88>>2];J[d+88>>2]=0;e=J[d+84>>2];J[d+96>>2]=J[d+ -80>>2];J[d+100>>2]=e;J[d+80>>2]=0;J[d+84>>2]=0;e=J[c+4>>2];J[195395]=0;f=d+68|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break u;J[195395]=0;h=f;e=K[d+79|0];f=e<<24>>24<0;e=aa(1864,d+96|0,(f?J[d+68>>2]:h)|0,(f?J[d+72>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break t;J[d+16>>2]=J[e+8>>2];f=J[e+4>>2];J[d+8>>2]=J[e>>2];J[d+12>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+8|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break s;J[d+40>>2]=J[d+16>>2];J[d+16>>2]=0;f=J[d+ -12>>2];e=J[d+8>>2];J[d+32>>2]=e;J[d+36>>2]=f;J[d+8>>2]=0;J[d+12>>2]=0;J[195395]=0;h=e;e=H[d+43|0];f=(e|0)<0;aa(1864,d+112|0,(f?h:d+32|0)|0,(f?J[d+36>>2]:e&255)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break r;if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);c=c+8|0;if((i|0)!=(c|0))continue;break}c=J[b>>2]}c=J[c>>2];J[195395]=0;da(1863,d+80|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)!=1)break m;a= -Z()|0;break a}a=Z()|0;break a}a=Z()|0;break x}a=Z()|0;break y}a=Z()|0;break z}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;if(H[d+43|0]>=0)break B;Kb(J[d+32>>2])}if(H[d+19|0]>=0)break A;Kb(J[d+8>>2])}if(H[d+67|0]>=0)break z;Kb(J[d+56>>2])}if(H[d+107|0]>=0)break y;Kb(J[d+96>>2])}if(H[d+91|0]>=0)break x;Kb(J[d+80>>2])}if(H[d+79|0]>=0)break a;Kb(J[d+68>>2]);break a}a=Z()|0;break a}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;if(H[d+43|0]>=0)break q;Kb(J[d+32>>2])}if(H[d+19|0]>= -0)break p;Kb(J[d+8>>2])}if(H[d+79|0]>=0)break o;Kb(J[d+68>>2])}if(H[d+107|0]>=0)break n;Kb(J[d+96>>2])}if(H[d+91|0]>=0)break a;Kb(J[d+80>>2]);break a}J[195395]=0;$(1811,d+80|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break k;J[d+104>>2]=J[d+88>>2];J[d+88>>2]=0;c=J[d+84>>2];J[d+96>>2]=J[d+80>>2];J[d+100>>2]=c;J[d+80>>2]=0;J[d+84>>2]=0;c=J[J[b>>2]+4>>2];J[195395]=0;e=d+68|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break j;J[195395]=0;f=e;c=K[d+79|0];e=c<<24>>24<0;c=aa(1864,d+96|0,(e? -J[d+68>>2]:f)|0,(e?J[d+72>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break i;J[d+16>>2]=J[c+8>>2];e=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+8|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break h;J[d+40>>2]=J[d+16>>2];J[d+16>>2]=0;e=J[d+12>>2];c=J[d+8>>2];J[d+32>>2]=c;J[d+36>>2]=e;J[d+8>>2]=0;J[d+12>>2]=0;J[195395]=0;f=c;c=H[d+43|0];e=(c|0)<0;aa(1864,d+112|0,(e?f:d+32|0)|0,(e?J[d+36>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g; -if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+91|0]>=0)break l;Kb(J[d+80>>2])}b=b+12|0;if((g|0)!=(b|0))continue;break}J[195395]=0;b=aa(1962,d+32|0,397860,d+112|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break b;a=Z()|0;break a}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}a=Z()|0;if(H[d+43|0]>=0)break f;Kb(J[d+32>>2])}if(H[d+19|0]>=0)break e;Kb(J[d+8>>2])}if(H[d+79|0]>=0)break d;Kb(J[d+68>>2])}if(H[d+ -107|0]>=0)break c;Kb(J[d+96>>2])}if(H[d+91|0]>=0)break a;Kb(J[d+80>>2]);break a}J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[195395]=0;H[d+12|0]=0;J[d+8>>2]=d+96;c=_(1078,24)|0;e=J[195395];J[195395]=0;I:{J:{if((e|0)!=1){J[d+100>>2]=c;J[d+96>>2]=c;J[195395]=0;J[d+104>>2]=c+24;e=ha(1957,d+104|0,b|0,b+24|0,c|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break I;a=Z()|0;J[d+100>>2]=c;break J}a=Z()|0}Kc(d+8|0);Vb(b);break a}J[d+100>>2]=e;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;e= -a+8|0;a=d+96|0;$(1963,e|0,a|0);b=J[195395];J[195395]=0;K:{L:{M:{N:{O:{P:{if((b|0)==1)break P;J[195395]=0;la(1959,e|0,a|0,0,0);b=J[195395];J[195395]=0;if((b|0)==1)break P;J[195395]=0;fa(1960,e|0,a|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break P;J[195395]=0;ea(1958,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break P;J[195395]=0;b=aa(1970,d+8|0,402952,403188)|0;a=J[195395];J[195395]=0;if((a|0)==1)break O;c=J[d+100>>2];if(c>>>0>2]){if(H[b+11|0]>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>> -2]=J[b+8>>2];break M}a=J[b+4>>2];g=J[b>>2];J[195395]=0;fa(1808,c|0,g|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break M;a=Z()|0;J[d+100>>2]=c;Vb(b);break K}J[195395]=0;$(1971,d+96|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break N;if(H[b+23|0]>=0)break L;Kb(J[b+12>>2]);break L}a=Z()|0;break K}a=Z()|0;break K}a=Z()|0;Vb(b);break K}a=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=a;J[c+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[d+100>>2]=c+24}if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;a=_(1078, -32)|0;b=J[195395];J[195395]=0;Q:{if((b|0)!=1){J[d+80>>2]=a;J[d+84>>2]=4;J[d+88>>2]=-2147483640;b=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=b;b=J[99523];J[a>>2]=J[99522];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[d+68>>2]=0;H[d+79|0]=0;ia(1961,e|0,d+80|0,d+96|0,d+68|0);a=J[195395];J[195395]=0;if((a|0)==1)break Q;if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);a=J[d+96>>2];if(a){b=a;c=J[d+100>>2];if((b|0)!=(c|0)){while(1){if(H[c-1|0]<0)Kb(J[c-12>>2]);b=c-24|0;if(H[c-13|0]<0)Kb(J[b>>2]);c=b;if((a| -0)!=(c|0))continue;break}b=J[d+96>>2]}J[d+100>>2]=a;Kb(b)}if(H[d+123|0]<0)Kb(J[d+112>>2]);xb=d+128|0;return}a=Z()|0;break K}a=Z()|0;if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+91|0]>=0)break K;Kb(J[d+80>>2])}Hc(d+96|0)}if(H[d+123|0]<0)Kb(J[d+112>>2]);ba(a|0);B()}function rB(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;d=xb-128|0;xb=d;J[d+120>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{b=J[c>>2];g=J[c+4>>2];if((b|0)!=(g|0))while(1){c=J[b>>2];l:{if(J[b+4>>2]-c>>>0<8)break l; -c=I[c>>1];J[195395]=0;e=d+68|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{if((c|0)!=1){J[195395]=0;c=aa(1954,e|0,0,398272)|0;e=J[195395];J[195395]=0;if((e|0)==1)break H;J[d+88>>2]=J[c+8>>2];e=J[c+4>>2];J[d+80>>2]=J[c>>2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+80|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break G;J[d+104>>2]=J[d+88>>2];J[d+88>>2]=0;c=J[d+84>>2];J[d+96>>2]=J[d+80>>2];J[d+100>>2]=c;J[d+ -80>>2]=0;J[d+84>>2]=0;c=I[J[b>>2]+2>>1];J[195395]=0;e=d+56|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break F;J[195395]=0;f=e;c=K[d+67|0];e=c<<24>>24<0;c=aa(1864,d+96|0,(e?J[d+56>>2]:f)|0,(e?J[d+60>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break E;J[d+16>>2]=J[c+8>>2];e=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+8|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break D;J[d+40>>2]=J[d+16>>2];J[d+16>>2]=0;e=J[d+12>>2];c=J[d+8>>2]; -J[d+32>>2]=c;J[d+36>>2]=e;J[d+8>>2]=0;J[d+12>>2]=0;J[195395]=0;f=c;c=H[d+43|0];e=(c|0)<0;aa(1864,d+112|0,(e?f:d+32|0)|0,(e?J[d+36>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break C;if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+67|0]<0)Kb(J[d+56>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+79|0]<0)Kb(J[d+68>>2]);c=J[b>>2];i=J[b+4>>2];if((c|0)!=(i|0)){while(1){e=I[c>>1];J[195395]=0;f=d+80|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e| -0)==1)break w;J[195395]=0;$(1811,f|0,44);e=J[195395];J[195395]=0;if((e|0)==1)break v;J[d+104>>2]=J[d+88>>2];J[d+88>>2]=0;e=J[d+84>>2];J[d+96>>2]=J[d+80>>2];J[d+100>>2]=e;J[d+80>>2]=0;J[d+84>>2]=0;e=I[c+2>>1];J[195395]=0;f=d+68|0;da(1863,f|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break u;J[195395]=0;h=f;e=K[d+79|0];f=e<<24>>24<0;e=aa(1864,d+96|0,(f?J[d+68>>2]:h)|0,(f?J[d+72>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break t;J[d+16>>2]=J[e+8>>2];f=J[e+4>>2];J[d+8>>2]=J[e>>2];J[d+12>>2]= -f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;$(1811,d+8|0,32);e=J[195395];J[195395]=0;if((e|0)==1)break s;J[d+40>>2]=J[d+16>>2];J[d+16>>2]=0;f=J[d+12>>2];e=J[d+8>>2];J[d+32>>2]=e;J[d+36>>2]=f;J[d+8>>2]=0;J[d+12>>2]=0;J[195395]=0;h=e;e=H[d+43|0];f=(e|0)<0;aa(1864,d+112|0,(f?h:d+32|0)|0,(f?J[d+36>>2]:e&255)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break r;if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+91|0]<0)Kb(J[d+ -80>>2]);c=c+4|0;if((i|0)!=(c|0))continue;break}c=J[b>>2]}c=I[c>>1];J[195395]=0;da(1863,d+80|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)!=1)break m;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break x}a=Z()|0;break y}a=Z()|0;break z}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;if(H[d+43|0]>=0)break B;Kb(J[d+32>>2])}if(H[d+19|0]>=0)break A;Kb(J[d+8>>2])}if(H[d+67|0]>=0)break z;Kb(J[d+56>>2])}if(H[d+107|0]>=0)break y;Kb(J[d+96>>2])}if(H[d+91|0]>=0)break x;Kb(J[d+80>>2])}if(H[d+79|0]>=0)break a;Kb(J[d+68>>2]); -break a}a=Z()|0;break a}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;if(H[d+43|0]>=0)break q;Kb(J[d+32>>2])}if(H[d+19|0]>=0)break p;Kb(J[d+8>>2])}if(H[d+79|0]>=0)break o;Kb(J[d+68>>2])}if(H[d+107|0]>=0)break n;Kb(J[d+96>>2])}if(H[d+91|0]>=0)break a;Kb(J[d+80>>2]);break a}J[195395]=0;$(1811,d+80|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break k;J[d+104>>2]=J[d+88>>2];J[d+88>>2]=0;c=J[d+84>>2];J[d+96>>2]=J[d+80>>2];J[d+100>>2]=c;J[d+80>>2]=0;J[d+84>>2]=0;c=I[J[b>>2]+2>>1]; -J[195395]=0;e=d+68|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break j;J[195395]=0;f=e;c=K[d+79|0];e=c<<24>>24<0;c=aa(1864,d+96|0,(e?J[d+68>>2]:f)|0,(e?J[d+72>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break i;J[d+16>>2]=J[c+8>>2];e=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+8|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break h;J[d+40>>2]=J[d+16>>2];J[d+16>>2]=0;e=J[d+12>>2];c=J[d+8>>2];J[d+32>>2]=c;J[d+36>>2]=e;J[d+8>>2]=0; -J[d+12>>2]=0;J[195395]=0;f=c;c=H[d+43|0];e=(c|0)<0;aa(1864,d+112|0,(e?f:d+32|0)|0,(e?J[d+36>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+91|0]>=0)break l;Kb(J[d+80>>2])}b=b+12|0;if((g|0)!=(b|0))continue;break}J[195395]=0;b=aa(1962,d+32|0,397860,d+112|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break b;a=Z()|0;break a}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;break e}a= -Z()|0;break f}a=Z()|0;if(H[d+43|0]>=0)break f;Kb(J[d+32>>2])}if(H[d+19|0]>=0)break e;Kb(J[d+8>>2])}if(H[d+79|0]>=0)break d;Kb(J[d+68>>2])}if(H[d+107|0]>=0)break c;Kb(J[d+96>>2])}if(H[d+91|0]>=0)break a;Kb(J[d+80>>2]);break a}J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[195395]=0;H[d+12|0]=0;J[d+8>>2]=d+96;c=_(1078,24)|0;e=J[195395];J[195395]=0;I:{J:{if((e|0)!=1){J[d+100>>2]=c;J[d+96>>2]=c;J[195395]=0;J[d+104>>2]=c+24;e=ha(1957,d+104|0,b|0,b+24|0,c|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break I;a= -Z()|0;J[d+100>>2]=c;break J}a=Z()|0}Kc(d+8|0);Vb(b);break a}J[d+100>>2]=e;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;e=a+8|0;a=d+96|0;$(1963,e|0,a|0);b=J[195395];J[195395]=0;K:{L:{M:{N:{O:{P:{if((b|0)==1)break P;J[195395]=0;la(1959,e|0,a|0,0,0);b=J[195395];J[195395]=0;if((b|0)==1)break P;J[195395]=0;fa(1960,e|0,a|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break P;J[195395]=0;ea(1958,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break P;J[195395]=0;b=aa(1970,d+8|0,402952,403188)| -0;a=J[195395];J[195395]=0;if((a|0)==1)break O;c=J[d+100>>2];if(c>>>0>2]){if(H[b+11|0]>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];break M}a=J[b+4>>2];g=J[b>>2];J[195395]=0;fa(1808,c|0,g|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break M;a=Z()|0;J[d+100>>2]=c;Vb(b);break K}J[195395]=0;$(1971,d+96|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break N;if(H[b+23|0]>=0)break L;Kb(J[b+12>>2]);break L}a=Z()|0;break K}a=Z()|0;break K}a=Z()|0;Vb(b);break K}a=J[b+16>>2];J[c+12>>2]= -J[b+12>>2];J[c+16>>2]=a;J[c+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[d+100>>2]=c+24}if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;Q:{if((b|0)!=1){J[d+80>>2]=a;J[d+84>>2]=4;J[d+88>>2]=-2147483640;b=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=b;b=J[99523];J[a>>2]=J[99522];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[d+68>>2]=0;H[d+79|0]=0;ia(1961,e|0,d+80|0,d+96|0,d+68|0);a=J[195395];J[195395]=0;if((a|0)==1)break Q;if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+91|0]<0)Kb(J[d+ -80>>2]);a=J[d+96>>2];if(a){b=a;c=J[d+100>>2];if((b|0)!=(c|0)){while(1){if(H[c-1|0]<0)Kb(J[c-12>>2]);b=c-24|0;if(H[c-13|0]<0)Kb(J[b>>2]);c=b;if((a|0)!=(c|0))continue;break}b=J[d+96>>2]}J[d+100>>2]=a;Kb(b)}if(H[d+123|0]<0)Kb(J[d+112>>2]);xb=d+128|0;return}a=Z()|0;break K}a=Z()|0;if(H[d+79|0]<0)Kb(J[d+68>>2]);if(H[d+91|0]>=0)break K;Kb(J[d+80>>2])}Hc(d+96|0)}if(H[d+123|0]<0)Kb(J[d+112>>2]);ba(a|0);B()}function _Y(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=xb-128|0;xb=c;J[c+120>>2]=0;J[c+112>> -2]=0;J[c+116>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{e=J[b>>2];g=J[b+4>>2];if((e|0)!=(g|0))while(1){b=J[e>>2];l:{if(J[e+4>>2]-b>>>0<8)break l;b=I[b>>1];J[195395]=0;d=c+68|0;da(1863,d|0,+(b|0),-1);b=J[195395];J[195395]=0;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{if((b|0)!=1){J[195395]=0;b=aa(1954,d|0,0,426356)|0;d=J[195395];J[195395]=0;if((d|0)==1)break H;J[c+88>>2]=J[b+8>>2];d=J[b+4>>2];J[c+80>>2]=J[b>>2];J[c+84>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+80| -0,44);b=J[195395];J[195395]=0;if((b|0)==1)break G;J[c+104>>2]=J[c+88>>2];J[c+88>>2]=0;b=J[c+84>>2];J[c+96>>2]=J[c+80>>2];J[c+100>>2]=b;J[c+80>>2]=0;J[c+84>>2]=0;b=I[J[e>>2]+2>>1];J[195395]=0;d=c+56|0;da(1863,d|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break F;J[195395]=0;f=d;b=K[c+67|0];d=b<<24>>24<0;b=aa(1864,c+96|0,(d?J[c+56>>2]:f)|0,(d?J[c+60>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break E;J[c+16>>2]=J[b+8>>2];d=J[b+4>>2];J[c+8>>2]=J[b>>2];J[c+12>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+ -8>>2]=0;J[195395]=0;$(1811,c+8|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break D;J[c+40>>2]=J[c+16>>2];J[c+16>>2]=0;d=J[c+12>>2];b=J[c+8>>2];J[c+32>>2]=b;J[c+36>>2]=d;J[c+8>>2]=0;J[c+12>>2]=0;J[195395]=0;f=b;b=H[c+43|0];d=(b|0)<0;aa(1864,c+112|0,(d?f:c+32|0)|0,(d?J[c+36>>2]:b&255)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break C;if(H[c+43|0]<0)Kb(J[c+32>>2]);if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+67|0]<0)Kb(J[c+56>>2]);if(H[c+107|0]<0)Kb(J[c+96>>2]);if(H[c+91|0]<0)Kb(J[c+80>>2]);if(H[c+79|0]<0)Kb(J[c+ -68>>2]);b=J[e>>2];i=J[e+4>>2];if((b|0)!=(i|0)){while(1){d=I[b>>1];J[195395]=0;f=c+80|0;da(1863,f|0,+(d|0),-1);d=J[195395];J[195395]=0;if((d|0)==1)break w;J[195395]=0;$(1811,f|0,44);d=J[195395];J[195395]=0;if((d|0)==1)break v;J[c+104>>2]=J[c+88>>2];J[c+88>>2]=0;d=J[c+84>>2];J[c+96>>2]=J[c+80>>2];J[c+100>>2]=d;J[c+80>>2]=0;J[c+84>>2]=0;d=I[b+2>>1];J[195395]=0;f=c+68|0;da(1863,f|0,+(d|0),-1);d=J[195395];J[195395]=0;if((d|0)==1)break u;J[195395]=0;h=f;d=K[c+79|0];f=d<<24>>24<0;d=aa(1864,c+96|0,(f?J[c+ -68>>2]:h)|0,(f?J[c+72>>2]:d)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break t;J[c+16>>2]=J[d+8>>2];f=J[d+4>>2];J[c+8>>2]=J[d>>2];J[c+12>>2]=f;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[195395]=0;$(1811,c+8|0,32);d=J[195395];J[195395]=0;if((d|0)==1)break s;J[c+40>>2]=J[c+16>>2];J[c+16>>2]=0;f=J[c+12>>2];d=J[c+8>>2];J[c+32>>2]=d;J[c+36>>2]=f;J[c+8>>2]=0;J[c+12>>2]=0;J[195395]=0;h=d;d=H[c+43|0];f=(d|0)<0;aa(1864,c+112|0,(f?h:c+32|0)|0,(f?J[c+36>>2]:d&255)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break r;if(H[c+ -43|0]<0)Kb(J[c+32>>2]);if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+79|0]<0)Kb(J[c+68>>2]);if(H[c+107|0]<0)Kb(J[c+96>>2]);if(H[c+91|0]<0)Kb(J[c+80>>2]);b=b+4|0;if((i|0)!=(b|0))continue;break}b=J[e>>2]}b=I[b>>1];J[195395]=0;da(1863,c+80|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)!=1)break m;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break x}a=Z()|0;break y}a=Z()|0;break z}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;if(H[c+43|0]>=0)break B;Kb(J[c+32>>2])}if(H[c+19|0]>=0)break A;Kb(J[c+8>>2])}if(H[c+67|0]>=0)break z; -Kb(J[c+56>>2])}if(H[c+107|0]>=0)break y;Kb(J[c+96>>2])}if(H[c+91|0]>=0)break x;Kb(J[c+80>>2])}if(H[c+79|0]>=0)break a;Kb(J[c+68>>2]);break a}a=Z()|0;break a}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;if(H[c+43|0]>=0)break q;Kb(J[c+32>>2])}if(H[c+19|0]>=0)break p;Kb(J[c+8>>2])}if(H[c+79|0]>=0)break o;Kb(J[c+68>>2])}if(H[c+107|0]>=0)break n;Kb(J[c+96>>2])}if(H[c+91|0]>=0)break a;Kb(J[c+80>>2]);break a}J[195395]=0;$(1811,c+80|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break k; -J[c+104>>2]=J[c+88>>2];J[c+88>>2]=0;b=J[c+84>>2];J[c+96>>2]=J[c+80>>2];J[c+100>>2]=b;J[c+80>>2]=0;J[c+84>>2]=0;b=I[J[e>>2]+2>>1];J[195395]=0;d=c+68|0;da(1863,d|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break j;J[195395]=0;f=d;b=K[c+79|0];d=b<<24>>24<0;b=aa(1864,c+96|0,(d?J[c+68>>2]:f)|0,(d?J[c+72>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break i;J[c+16>>2]=J[b+8>>2];d=J[b+4>>2];J[c+8>>2]=J[b>>2];J[c+12>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+8|0,32);b=J[195395];J[195395]= -0;if((b|0)==1)break h;J[c+40>>2]=J[c+16>>2];J[c+16>>2]=0;d=J[c+12>>2];b=J[c+8>>2];J[c+32>>2]=b;J[c+36>>2]=d;J[c+8>>2]=0;J[c+12>>2]=0;J[195395]=0;f=b;b=H[c+43|0];d=(b|0)<0;aa(1864,c+112|0,(d?f:c+32|0)|0,(d?J[c+36>>2]:b&255)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break g;if(H[c+43|0]<0)Kb(J[c+32>>2]);if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+79|0]<0)Kb(J[c+68>>2]);if(H[c+107|0]<0)Kb(J[c+96>>2]);if(H[c+91|0]>=0)break l;Kb(J[c+80>>2])}e=e+12|0;if((g|0)!=(e|0))continue;break}J[195395]=0;b=aa(1962,c+32|0,426412, -c+112|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break b;a=Z()|0;break a}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}a=Z()|0;if(H[c+43|0]>=0)break f;Kb(J[c+32>>2])}if(H[c+19|0]>=0)break e;Kb(J[c+8>>2])}if(H[c+79|0]>=0)break d;Kb(J[c+68>>2])}if(H[c+107|0]>=0)break c;Kb(J[c+96>>2])}if(H[c+91|0]>=0)break a;Kb(J[c+80>>2]);break a}J[c+104>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;J[195395]=0;H[c+12|0]=0;J[c+8>>2]=c+96;e=_(1078,24)|0;d=J[195395];J[195395]=0;I:{J:{if((d|0)!=1){J[c+100>>2]=e;J[c+ -96>>2]=e;J[195395]=0;J[c+104>>2]=e+24;d=ha(1957,c+104|0,b|0,b+24|0,e|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break I;a=Z()|0;J[c+100>>2]=e;break J}a=Z()|0}Kc(c+8|0);Vb(b);break a}J[c+100>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;d=a+8|0;a=c+96|0;$(1963,d|0,a|0);b=J[195395];J[195395]=0;K:{L:{M:{N:{O:{P:{if((b|0)==1)break P;J[195395]=0;la(1959,d|0,a|0,0,0);b=J[195395];J[195395]=0;if((b|0)==1)break P;J[195395]=0;fa(1960,d|0,a|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break P; -J[195395]=0;ea(1958,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break P;J[195395]=0;b=aa(1970,c+8|0,426692,426732)|0;a=J[195395];J[195395]=0;if((a|0)==1)break O;e=J[c+100>>2];if(e>>>0>2]){if(H[b+11|0]>=0){a=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=a;J[e+8>>2]=J[b+8>>2];break M}a=J[b+4>>2];g=J[b>>2];J[195395]=0;fa(1808,e|0,g|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break M;a=Z()|0;J[c+100>>2]=e;Vb(b);break K}J[195395]=0;$(1971,c+96|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break N;if(H[b+23|0]>= -0)break L;Kb(J[b+12>>2]);break L}a=Z()|0;break K}a=Z()|0;break K}a=Z()|0;Vb(b);break K}a=J[b+16>>2];J[e+12>>2]=J[b+12>>2];J[e+16>>2]=a;J[e+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+100>>2]=e+24}if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;Q:{if((b|0)!=1){J[c+80>>2]=a;J[c+84>>2]=4;J[c+88>>2]=-2147483640;b=J[106608];J[a+8>>2]=J[106607];J[a+12>>2]=b;b=J[106606];J[a>>2]=J[106605];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[c+68>>2]=0;H[c+79|0]=0;ia(1961, -d|0,c+80|0,c+96|0,c+68|0);a=J[195395];J[195395]=0;if((a|0)==1)break Q;if(H[c+79|0]<0)Kb(J[c+68>>2]);if(H[c+91|0]<0)Kb(J[c+80>>2]);a=J[c+96>>2];if(a){b=J[c+100>>2];e=a;if((b|0)!=(e|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);e=b-24|0;if(H[b-13|0]<0)Kb(J[e>>2]);b=e;if((a|0)!=(b|0))continue;break}e=J[c+96>>2]}J[c+100>>2]=a;Kb(e)}if(H[c+123|0]<0)Kb(J[c+112>>2]);xb=c+128|0;return}a=Z()|0;break K}a=Z()|0;if(H[c+79|0]<0)Kb(J[c+68>>2]);if(H[c+91|0]>=0)break K;Kb(J[c+80>>2])}Hc(c+96|0)}if(H[c+123|0]<0)Kb(J[c+ -112>>2]);ba(a|0);B()}function BJ(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;q=xb-16|0;xb=q;a:{b:{c:{d:{e:{f:{g:{e=J[a+28>>2];h:{i:{if(!e){m=1;e=0;break i}while(1){j:{if(c>>>0>=e>>>0){d=J[42449];J[194124]=J[42448];J[194125]=d;d=J[42447];J[194122]=J[42446];J[194123]=d;d=J[42445];J[194120]=J[42444];J[194121]=d;d=776480;f=776496;break j}d=J[a+32>>2]+P(c,24)|0;f=d+16|0}if(J[f>>2]!=J[d+20>>2]){k:{l:{if((i|0)<0)e=i;else{e=i;f=g+1|0;f=(f|0)>0?f:0;if(e>>>0>=f>>>0){m= -j;break l}while(1){e=((e>>>1|0)+e|0)+8|0;if(f>>>0>e>>>0)continue;break}if(e>>>0<=178956970){m=ic(j,P(e,24));if(m)break l}e=i^-1}i=J[42449];J[194124]=J[42448];J[194125]=i;i=J[42447];J[194122]=J[42446];J[194123]=i;i=J[42445];J[194120]=J[42444];J[194121]=i;m=j;f=g;i=776480;break k}m:{if(f>>>0<=g>>>0)break m;i=P(f-g|0,24);if(!i)break m;Nb(P(g,24)+m|0,0,i)}i=(P(f,24)+m|0)-24|0}n:{if(M[a+28>>2]<=c>>>0){j=J[42449];J[194124]=J[42448];J[194125]=j;j=J[42447];J[194122]=J[42446];J[194123]=j;j=J[42445];J[194120]= -J[42444];J[194121]=j;j=776480;break n}j=J[a+32>>2]+P(c,24)|0}j=J[j+16>>2];H[i+4|0]=1;J[i>>2]=j;j=J[d+4>>2];J[i+8>>2]=J[d>>2];J[i+12>>2]=j;j=J[d+12>>2];J[i+16>>2]=J[d+8>>2];J[i+20>>2]=j;o:{p:{if((e|0)>=0){i=e;j=f+1|0;g=(j|0)>0?j:0;if(g>>>0<=e>>>0){j=m;break p}while(1){i=((i>>>1|0)+i|0)+8|0;if(i>>>0>>0)continue;break}if(i>>>0<=178956970){j=ic(m,P(i,24));if(j)break p}e=e^-1}i=e;e=J[42449];J[194124]=J[42448];J[194125]=e;e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]= -e;j=m;g=f;e=776480;break o}q:{if(f>>>0>=g>>>0)break q;e=P(g-f|0,24);if(!e)break q;Nb(P(f,24)+j|0,0,e)}e=(P(g,24)+j|0)-24|0}r:{if(M[a+28>>2]<=c>>>0){f=J[42449];J[194124]=J[42448];J[194125]=f;f=J[42447];J[194122]=J[42446];J[194123]=f;f=J[42445];J[194120]=J[42444];J[194121]=f;f=776480;break r}f=J[a+32>>2]+P(c,24)|0}f=J[f+20>>2];H[e+4|0]=0;J[e>>2]=f;f=J[d+12>>2];J[e+16>>2]=J[d+8>>2];J[e+20>>2]=f;f=J[d+4>>2];J[e+8>>2]=J[d>>2];J[e+12>>2]=f;e=J[a+28>>2]}c=c+1|0;if(e>>>0>c>>>0)continue;break}d=0;if(g){J[195395]= -0;ia(623,j|0,g|0,24,624);d=J[195395];J[195395]=0;if((d|0)==1)break d;e=J[a+28>>2];d=g}if((i|0)<0)break f;c=d+1|0;m=(c|0)>0?c:0;if(m>>>0<=i>>>0)break h}c=i;while(1){c=((c>>>1|0)+c|0)+8|0;if(m>>>0>c>>>0)continue;break}if(c>>>0>178956970)break g;f=ic(j,P(c,24));if(!f)break g;j=f;i=c}s:{if(d>>>0>=m>>>0)break s;c=P(m-d|0,24);if(!c)break s;Nb(P(d,24)+j|0,0,c)}d=(P(m,24)+j|0)-24|0;break e}i=i^-1}c=J[42449];J[194124]=J[42448];J[194125]=c;c=J[42447];J[194122]=J[42446];J[194123]=c;c=J[42445];J[194120]=J[42444]; -J[194121]=c;m=d;d=776480}f=0;H[d+4|0]=0;J[d>>2]=-1;c=J[q+4>>2];J[d+8>>2]=J[q>>2];J[d+12>>2]=c;J[d+16>>2]=J[q+8>>2];J[d+20>>2]=e+1;d=1;if(!m)break a;e=0;while(1){t:{u:{v:{w:{x:{y:{k=P(r,24)+j|0;if(J[k>>2]!=(h|0)){c=J[a+36>>2];if((c|0)<0){c=c^-1;J[a+36>>2]=c}J[a+40>>2]=0;z:{A:{B:{if(c>>>2>>>0<=e>>>0&c>>>0>=e>>>0)break B;c=c^-1;C:{D:{if(e>>>0>=268435456)break D;d=J[a+44>>2];E:{if(!e){Kb(d);c=0;break E}c=ic(d,e<<4);if(c)break E;c=J[a+36>>2];if(e>>>0<=c>>>0)break C;c=c^-1;break D}J[a+44>>2]=c;c=e}J[a+ -36>>2]=c}if((c|0)>=0)break B;d=J[a+40>>2];break A}J[a+40>>2]=e;c=0;if(!e){J[a+48>>2]=h;J[a+52>>2]=J[k>>2]-1;break z}while(1){d=c<<4;g=d+J[a+44>>2]|0;d=d+f|0;l=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=l;l=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=l;c=c+1|0;d=J[a+40>>2];if(c>>>0>>0)continue;break}}J[a+48>>2]=h;J[a+52>>2]=J[k>>2]-1;if(!d)break z;c=J[a+44>>2];J[195395]=0;ia(623,c|0,d|0,16,625);d=J[195395];J[195395]=0;if((d|0)==1)break y;c=1;g=0;d=J[a+40>>2];if(d>>>0>1)while(1){l=c>>>0>>0;F:{if(!l){h= -J[42447];J[194122]=J[42446];J[194123]=h;h=J[42445];J[194120]=J[42444];J[194121]=h;h=776480;break F}h=J[a+44>>2]+(c<<4)|0}n=J[h>>2];o=d>>>0>g>>>0;G:{if(!o){h=J[42447];J[194122]=J[42446];J[194123]=h;h=J[42445];J[194120]=J[42444];J[194121]=h;h=776480;break G}h=J[a+44>>2]+(g<<4)|0}H:{if((n|0)==J[h>>2]){I:{if(c>>>0>>0){h=J[a+44>>2];n=c<<4;if(K[(h+n|0)+8|0])break H;h=h+n|0;break I}n=J[42447];h=J[42446];J[194122]=h;J[194123]=n;n=J[42445];J[194120]=J[42444];J[194121]=n;if(h&255)break H;h=776480}n=J[h+ -4>>2];J:{if(!o){h=J[42447];J[194122]=J[42446];J[194123]=h;h=J[42445];J[194120]=J[42444];J[194121]=h;h=776480;break J}h=J[a+44>>2]+(g<<4)|0}if((n^J[h+4>>2])>>>0<2)break H}K:{if(!l){h=J[42447];J[194122]=J[42446];J[194123]=h;h=J[42445];J[194120]=J[42444];J[194121]=h;h=776480;break K}h=J[a+44>>2]+(c<<4)|0}g=g+1|0;L:{if(g>>>0>=d>>>0){d=J[42447];J[194122]=J[42446];J[194123]=d;d=J[42445];J[194120]=J[42444];J[194121]=d;d=776480;break L}d=J[a+44>>2]+(g<<4)|0}l=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=l;l=J[h+12>> -2];J[d+8>>2]=J[h+8>>2];J[d+12>>2]=l;d=J[a+40>>2]}c=c+1|0;if(d>>>0>c>>>0)continue;break}h=d;d=g+1|0;c=(d|0)>0?d:0;if(h>>>0<=c>>>0)break z;J[a+40>>2]=c;d=J[a+36>>2];if((d|0)<0|c>>>0<=d>>>0&c>>>0>=d>>>2>>>0)break z;if(c>>>0>=268435456){J[a+36>>2]=d^-1;break z}d=J[a+44>>2];M:{if(g>>>0>=2147483647){Kb(d);d=0;break M}d=ic(d,c<<4);if(d)break M;d=J[a+36>>2];if(d>>>0>=c>>>0)break z;J[a+36>>2]=d^-1;break z}J[a+44>>2]=d;J[a+36>>2]=c}J[195395]=0;$(626,a|0,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break y;h=J[k>> -2]}if(!K[k+4|0])break w;g=e+1|0;if((e|0)>=(p|0))break x;break v}a=Z()|0;if(!p)break c;Kb(f);break c}if((p|0)>=0){d=p;if(g>>>0<=d>>>0)break v;while(1){d=((d>>>1|0)+d|0)+8|0;if(g>>>0>d>>>0)continue;break}if(d>>>0<=268435455){c=ic(f,d<<4);if(c)break u}p=p^-1}d=J[42447];J[194122]=J[42446];J[194123]=d;d=J[42445];J[194120]=J[42444];J[194121]=d;break t}if(!e){e=0;break t}g=J[k+12>>2];c=0;k=J[k+8>>2];N:{if((k|0)==J[f>>2]){d=f;if((g|0)==J[d+4>>2])break N}while(1){c=c+1|0;if((e|0)==(c|0))break t;d=(c<<4)+f| -0;if((k|0)!=J[d>>2]|(g|0)!=J[d+4>>2])continue;break}if(c>>>0>=e>>>0)break t}k=d-f>>4;if(k>>>0>=e>>>0)break t;d=k+1|0;O:{if(e>>>0<=d>>>0)break O;g=0;n=(k^-1)+e&3;if(n)while(1){c=(d<<4)+f|0;l=c-16|0;o=J[c+4>>2];J[l>>2]=J[c>>2];J[l+4>>2]=o;o=J[c+12>>2];J[l+8>>2]=J[c+8>>2];J[l+12>>2]=o;d=d+1|0;g=g+1|0;if((n|0)!=(g|0))continue;break}if((e-k|0)-2>>>0<3)break O;while(1){c=(d<<4)+f|0;g=c-16|0;k=J[c+4>>2];J[g>>2]=J[c>>2];J[g+4>>2]=k;k=J[c+12>>2];J[g+8>>2]=J[c+8>>2];J[g+12>>2]=k;g=J[c+24>>2];k=J[c+28>>2];l= -J[c+44>>2];J[c+24>>2]=J[c+40>>2];J[c+28>>2]=l;l=J[c+16>>2];n=J[c+20>>2];o=J[c+36>>2];J[c+16>>2]=J[c+32>>2];J[c+20>>2]=o;o=J[c+52>>2];J[c+32>>2]=J[c+48>>2];J[c+36>>2]=o;o=J[c+60>>2];J[c+40>>2]=J[c+56>>2];J[c+44>>2]=o;J[c>>2]=l;J[c+4>>2]=n;J[c+8>>2]=g;J[c+12>>2]=k;d=d+4|0;if((e|0)!=(d|0))continue;break}}e=e-1|0;break t}c=f;d=p}f=J[k+12>>2];e=(e<<4)+c|0;J[e>>2]=J[k+8>>2];J[e+4>>2]=f;f=J[k+20>>2];J[e+8>>2]=J[k+16>>2];J[e+12>>2]=f;f=c;e=g;p=d}r=r+1|0;if((r|0)!=(m|0))continue;break}break b}a=Z()|0}if(i)Kb(j); -ba(a|0);B()}d=!p}e=J[b+4>>2];P:{if(!e)break P;b=J[b+8>>2];a=b;e=P(e,12);c=e-12|0;if(!((c>>>0)/12&1)){a=J[a+4>>2];Q:{if(a){a=(J[b+8>>2]+P(a,12)|0)-12|0;break Q}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480}J[a+8>>2]=-1;a=b+12|0}if(c>>>0<12)break P;e=b+e|0;while(1){b=J[a+4>>2];R:{if(!b){J[194122]=J[42446];b=J[42445];J[194120]=J[42444];J[194121]=b;b=776480;break R}b=(J[a+8>>2]+P(b,12)|0)-12|0}J[b+8>>2]=-1;b=J[a+16>>2];S:{if(b){b=(J[a+20>>2]+P(b,12)|0)-12|0;break S}J[194122]=J[42446]; -b=J[42445];J[194120]=J[42444];J[194121]=b;b=776480}J[b+8>>2]=-1;a=a+24|0;if((e|0)!=(a|0))continue;break}}if(!d)Kb(f);if(i)Kb(j);xb=q+16|0}function _o(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;a:{i=J[b+12>>2];f=J[b+4>>2];if(i>>>0>>0)break a;e=J[b+8>>2];if(K[a|0]|K[a+1|0]<<8|e-a>>>0<12|i>>>0>>0)break a;c=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);k=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(k>>>0>e-a>>>0)break a;c=J[b+16>>2]-k|0;J[b+16>>2]=c;if((c|0)<= -0)break a;l=a+4|0;if(i>>>0>>0|e-l>>>0<4|K[l|0]&128)break a;p=1;c=K[l|0]|K[l+1|0]<<8|(K[l+2|0]<<16|K[l+3|0]<<24);b:{if(!c)break b;k=a+k|0;f=0;e=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;c:{d:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break d;e:{f:{g:{h:{i:{j:{a=K[e|0]|K[e+1|0]<<8;switch((a<<8|a>>>8)&65535){case 0:break j;case 10:break d;case 8:break f;case 6:break g;case 4:break h;case 2:break i;default:break e}}c=0;k:{l:{g=J[b+40>>2];m:{if((g|0)<0)break m;h=e+2|0;if(M[b+12>>2]>2]>>>0)break m;a=g<<1;if(a>>>0>J[b+8>>2]-h>>>0)break m;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break m;c=1;if(!g)break m;a=J[b+8>>2];i=J[b+12>>2];e=J[b+4>>2];while(1){c=h+(f<<1)|0;if(c-e>>>0>i>>>0|a-c>>>0<2)break l;i=J[b+12>>2];a=K[c|0]|K[c+1|0]<<8;c=k+((a<<8|a>>>8)&65535)|0;e=J[b+4>>2];if(i>>>0>>0)break l;a=J[b+8>>2];if(a-c>>>0<4)break l;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(d>>>0>1073741823)break l;c=c+4|0;if(c-e>>>0>i>>>0)break l; -j=a-c|0;c=d<<2;if(j>>>0>>0)break l;d=J[b+16>>2]-c|0;J[b+16>>2]=d;c=0;if((d|0)<=0)break m;c=1;f=f+1|0;if((g|0)!=(f|0))continue;break}}break k}c=0}break c}c=J[b+12>>2];f=e+2|0;a=J[b+4>>2];n:{if(c>>>0>>0)break n;d=J[b+8>>2];if(d-f>>>0<10)break n;i=K[f|0]|K[f+1|0]<<8;h=(i<<8|i>>>8)&65535;if(h>>>0<6)break n;i=e+12|0;if(i-a>>>0>c>>>0)break n;a=K[e+4|0]|K[e+5|0]<<8;a=P(h,(a<<8|a>>>8)&65535);if(a>>>0>d-i>>>0)break n;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break n;g=K[e+4|0]|K[e+5|0]<<8;d=(g<<8| -g>>>8)&65535;a=0;c=0;o:{if(!g)break o;g=K[f|0]|K[f+1|0]<<8;g=i+P(d-1|0,(g<<8|g>>>8)&65535)|0;c=0;if((K[g|0]|K[g+1|0]<<8)!=65535)break o;c=(K[g+2|0]|K[g+3|0]<<8)==65535?-1:0}g=1;m=c+d|0;if(!m)break n;while(1){h=K[e+4|0]|K[e+5|0]<<8;j=(h<<8|h>>>8)&65535;g=0;d=J[b+12>>2];c=0;p:{if(!h)break p;h=K[f|0]|K[f+1|0]<<8;h=i+P(j-1|0,(h<<8|h>>>8)&65535)|0;c=0;if((K[h|0]|K[h+1|0]<<8)!=65535)break p;c=(K[h+2|0]|K[h+3|0]<<8)==65535?-1:0}if(c+j>>>0<=a>>>0)c=169776;else{c=K[f|0]|K[f+1|0]<<8;c=i+P((c<<8|c>>>8)&65535, -a)|0}h=J[b+4>>2];if(d>>>0>>0)break n;n=J[b+8>>2];j=n;if(j-c>>>0<6)break n;c=c+4|0;if(d>>>0>>0|j-c>>>0<2)break n;c=K[c|0]|K[c+1|0]<<8;c=k+((c<<8|c>>>8)&65535)|0;if(d>>>0>>0|j-c>>>0<4)break n;j=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);j=j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24);if(j>>>0>1073741823)break n;c=c+4|0;if(d>>>0>>0)break n;d=n-c|0;c=j<<2;if(d>>>0>>0)break n;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break n;g=1;a=a+1|0;if((m|0)!=(a|0))continue;break}}c=g;break c}f= -xb-16|0;xb=f;J[f+8>>2]=k;c=0;i=J[b+12>>2];g=e+2|0;a=J[b+4>>2];q:{if(i>>>0>>0)break q;d=J[b+8>>2];if(d-g>>>0<10)break q;k=K[g|0]|K[g+1|0]<<8;h=(k<<8|k>>>8)&65535;if(h>>>0<6)break q;k=e+12|0;if(i>>>0>>0)break q;a=K[e+4|0]|K[e+5|0]<<8;a=P(h,(a<<8|a>>>8)&65535);if(a>>>0>d-k>>>0)break q;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break q;c=K[e+4|0]|K[e+5|0]<<8;d=(c<<8|c>>>8)&65535;i=0;a=0;r:{if(!c)break r;c=K[g|0]|K[g+1|0]<<8;c=k+P(d-1|0,(c<<8|c>>>8)&65535)|0;a=0;if((K[c|0]|K[c+1|0]<<8)!=65535)break r; -a=(K[c+2|0]|K[c+3|0]<<8)==65535?-1:0}q=a+d|0;if(!q){c=1;break q}while(1){c=K[e+4|0]|K[e+5|0]<<8;d=(c<<8|c>>>8)&65535;s:{j=J[b+12>>2];a=0;t:{if(!c)break t;c=K[g|0]|K[g+1|0]<<8;c=k+P(d-1|0,(c<<8|c>>>8)&65535)|0;a=0;if((K[c|0]|K[c+1|0]<<8)!=65535)break t;a=(K[c+2|0]|K[c+3|0]<<8)==65535?-1:0}if(a+d>>>0<=i>>>0)a=169776;else{a=K[g|0]|K[g+1|0]<<8;a=k+P((a<<8|a>>>8)&65535,i)|0}u:{if(j>>>0>2]>>>0|J[b+8>>2]-a>>>0<6)break u;c=K[a+2|0]|K[a+3|0]<<8;c=(c<<8|c>>>8)&65535;d=K[a|0]|K[a+1|0]<<8;d=(d<<8|d>>> -8)&65535;if(c>>>0>d>>>0)break u;J[f+12>>2]=(d-c|0)+1;a=a+4|0;if(M[b+12>>2]>2]>>>0)break u;if(J[b+8>>2]-a>>>0>1)break s}c=0;break q}c=0;h=0;j=J[f+12>>2];a=K[a|0]|K[a+1|0]<<8;d=e+((a<<8|a>>>8)&65535)|0;v:{if((j|0)<0|M[b+12>>2]>2]>>>0)break v;a=j<<1;if(a>>>0>J[b+8>>2]-d>>>0)break v;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break v;c=1;if(!j)break v;m=J[b+8>>2];n=J[b+12>>2];o=J[b+4>>2];w:{while(1){a=d+(h<<1)|0;if(a-o>>>0>n>>>0|m-a>>>0<2)break w;n=J[b+12>>2];a=K[a|0]|K[a+1|0]<<8;a=J[f+ -8>>2]+((a<<8|a>>>8)&65535)|0;o=J[b+4>>2];if(n>>>0>>0)break w;m=J[b+8>>2];if(m-a>>>0<4)break w;c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(c>>>0>1073741823)break w;a=a+4|0;if(a-o>>>0>n>>>0)break w;r=m-a|0;a=c<<2;if(r>>>0>>0)break w;a=J[b+16>>2]-a|0;J[b+16>>2]=a;c=0;if((a|0)<=0)break v;c=1;h=h+1|0;if((j|0)!=(h|0))continue;break}break v}c=0}if(!c)break q;i=i+1|0;if((q|0)!=(i|0))continue;break}}xb=f+16|0;break c}c=J[b+12>>2];f=e+2|0;a=J[b+4>>2]; -x:{if(c>>>0>>0)break x;d=J[b+8>>2];if(d-f>>>0<10)break x;i=K[f|0]|K[f+1|0]<<8;h=(i<<8|i>>>8)&65535;if(h>>>0<4)break x;i=e+12|0;if(i-a>>>0>c>>>0)break x;a=K[e+4|0]|K[e+5|0]<<8;a=P(h,(a<<8|a>>>8)&65535);if(a>>>0>d-i>>>0)break x;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break x;c=K[e+4|0]|K[e+5|0]<<8;d=(c<<8|c>>>8)&65535;a=0;g=1;if(c){c=K[f|0]|K[f+1|0]<<8;c=i+P(d-1|0,(c<<8|c>>>8)&65535)|0;c=(K[c|0]|K[c+1|0]<<8)==65535?-1:0}else c=0;m=c+d|0;if(!m)break x;while(1){c=K[e+4|0]|K[e+5|0]<<8;h=(c<<8|c>>> -8)&65535;g=0;d=J[b+12>>2];if(c){c=K[f|0]|K[f+1|0]<<8;c=i+P(h-1|0,(c<<8|c>>>8)&65535)|0;c=(K[c|0]|K[c+1|0]<<8)==65535?-1:0}else c=0;if(c+h>>>0<=a>>>0)c=169776;else{c=K[f|0]|K[f+1|0]<<8;c=i+P((c<<8|c>>>8)&65535,a)|0}h=J[b+4>>2];if(d>>>0>>0)break x;n=J[b+8>>2];j=n;if(j-c>>>0<4)break x;c=c+2|0;if(d>>>0>>0|j-c>>>0<2)break x;c=K[c|0]|K[c+1|0]<<8;c=k+((c<<8|c>>>8)&65535)|0;if(d>>>0>>0|j-c>>>0<4)break x;j=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);j=j<<24|(j&65280)<<8|(j>>>8&65280|j>>> -24);if(j>>>0>1073741823)break x;c=c+4|0;if(d>>>0>>0)break x;d=n-c|0;c=j<<2;if(d>>>0>>0)break x;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break x;g=1;a=a+1|0;if((m|0)!=(a|0))continue;break}}c=g;break c}c=0;y:{z:{g=J[b+12>>2];a=J[b+4>>2];A:{if(g>>>0>>0)break A;f=J[b+8>>2];if(f-e>>>0<6)break A;d=e+6|0;if(g>>>0>>0)break A;j=f-d|0;a=K[e+4|0]|K[e+5|0]<<8;g=(a<<8|a>>>8)&65535;f=g<<1;if(j>>>0>>0)break A;f=J[b+16>>2]-f|0;J[b+16>>2]=f;if((f|0)<=0)break A;c=1;if(!a)break A;h=g>>>0<=1?1: -g;f=J[b+8>>2];g=J[b+12>>2];i=J[b+4>>2];a=0;while(1){c=d+(a<<1)|0;if(c-i>>>0>g>>>0|f-c>>>0<2)break z;g=J[b+12>>2];c=K[c|0]|K[c+1|0]<<8;c=k+((c<<8|c>>>8)&65535)|0;i=J[b+4>>2];if(g>>>0>>0)break z;f=J[b+8>>2];if(f-c>>>0<4)break z;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(e>>>0>1073741823)break z;c=c+4|0;if(c-i>>>0>g>>>0)break z;j=f-c|0;c=e<<2;if(j>>>0>>0)break z;e=J[b+16>>2]-c|0;J[b+16>>2]=e;c=0;if((e|0)<=0)break A;c=1;a=a+1|0;if((h|0)!=(a|0))continue; -break}}break y}c=0}break c}f=1}c=f}if(c)break b;a=J[b+32>>2];if(a>>>0>31)break a;J[b+32>>2]=a+1;p=0;if(!K[b+28|0])break b;H[l|0]=0;H[l+1|0]=0;H[l+2|0]=0;H[l+3|0]=0;p=1}return p}return 0}function lZ(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;b=xb-96|0;xb=b;e=J[a+84>>2];c=Pb(16);J[b+84>>2]=c;J[b+88>>2]=3;J[b+92>>2]=-2147483644;J[c+8>>2]=J[106468];d=J[106467];J[c>>2]=J[106466];J[c+4>>2]=d;J[c+12>>2]=0;J[195395]=0;fa(1950,e|0,b+84|0,1);c=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{if((c| -0)!=1){if(H[b+95|0]<0)Kb(J[b+84>>2]);e=J[a+84>>2];c=Pb(32);J[b+84>>2]=c;J[b+88>>2]=5;J[b+92>>2]=-2147483640;J[c+16>>2]=J[106474];d=J[106473];J[c+8>>2]=J[106472];J[c+12>>2]=d;d=J[106471];J[c>>2]=J[106470];J[c+4>>2]=d;J[c+20>>2]=0;J[195395]=0;c=_(1078,112)|0;d=J[195395];J[195395]=0;if((d|0)==1)break F;J[b+72>>2]=c;J[b+76>>2]=26;J[b+80>>2]=-2147483620;m=Mb(c,425904,104),n=0,J[m+104>>2]=n;J[195395]=0;fa(1951,e|0,b+84|0,b+72|0);c=J[195395];J[195395]=0;if((c|0)==1)break E;if(H[b+83|0]<0)Kb(J[b+72>>2]); -if(H[b+95|0]<0)Kb(J[b+84>>2]);e=J[a+84>>2];c=Pb(48);J[b+84>>2]=c;J[b+88>>2]=11;J[b+92>>2]=-2147483636;J[c+40>>2]=J[106513];d=J[106512];J[c+32>>2]=J[106511];J[c+36>>2]=d;d=J[106510];J[c+24>>2]=J[106509];J[c+28>>2]=d;d=J[106508];J[c+16>>2]=J[106507];J[c+20>>2]=d;d=J[106506];J[c+8>>2]=J[106505];J[c+12>>2]=d;d=J[106504];J[c>>2]=J[106503];J[c+4>>2]=d;J[c+44>>2]=0;J[195395]=0;c=_(1078,128)|0;d=J[195395];J[195395]=0;if((d|0)==1)break C;J[b+72>>2]=c;J[b+76>>2]=28;J[b+80>>2]=-2147483616;m=Mb(c,426060,112), -n=0,J[m+112>>2]=n;J[195395]=0;fa(1951,e|0,b+84|0,b+72|0);c=J[195395];J[195395]=0;if((c|0)==1)break B;if(H[b+83|0]<0)Kb(J[b+72>>2]);if(H[b+95|0]<0)Kb(J[b+84>>2]);c=J[a+80>>2];c=Ab[J[J[c>>2]+16>>2]](c)|0;e=J[c+8>>2];d=J[c>>2];O[a+16>>3]=((d|0)>(e|0)?e:d)|0;j=J[c+12>>2];l=J[c+4>>2];O[a+24>>3]=((j|0)<(l|0)?j:l)|0;O[a+32>>3]=J[((d|0)<(e|0)?c+8|0:c)>>2];O[a+40>>3]=J[((j|0)>(l|0)?c+12|0:c+4|0)>>2];fA(a+8|0);i=1;h=1;f=O[a+48>>3];if(f!=0){g=O[a+16>>3];h=0;G:{if(R(1.7976931348623157E308-g)<=2.220446049250313E-16)break G; -k=O[a+32>>3];h=0;if(R(-1.7976931348623157E308-k)<=2.220446049250313E-16)break G;h=k-g}h=f/h}f=O[a+56>>3];if(f!=0){i=0;g=O[a+24>>3];H:{if(R(1.7976931348623157E308-g)<=2.220446049250313E-16)break H;k=O[a+40>>3];if(R(-1.7976931348623157E308-k)<=2.220446049250313E-16)break H;i=k-g}i=f/i}f=O[a+16>>3];if(R(1.7976931348623157E308-f)<=2.220446049250313E-16)break y;g=O[a+32>>3];if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16|g-f==0)break y;e=J[a+84>>2];c=Pb(32);J[b+84>>2]=c;J[b+88>>2]=5;J[b+92>>2]= --2147483640;J[c+16>>2]=J[106548];d=J[106547];J[c+8>>2]=J[106546];J[c+12>>2]=d;d=J[106545];J[c>>2]=J[106544];J[c+4>>2]=d;J[c+20>>2]=0;J[195395]=0;c=R(1.7976931348623157E308-f)<=2.220446049250313E-16;d=J[195395];J[195395]=0;I:{if((d|0)==1)break I;f=0;J:{if(c)break J;g=O[a+32>>3];J[195395]=0;c=J[195395];J[195395]=0;if((c|0)==1)break I;if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16)break J;f=O[a+32>>3]-O[a+16>>3]}J[195395]=0;da(1863,b+72|0,+(h*f),-1);c=J[195395];J[195395]=0;if((c|0)!=1)break z}a= -Z()|0;break w}a=Z()|0;if(H[b+95|0]>=0)break b;break a}a=Z()|0;break D}a=Z()|0;if(H[b+83|0]>=0)break D;Kb(J[b+72>>2])}if(H[b+95|0]>=0)break b;break a}a=Z()|0;break A}a=Z()|0;if(H[b+83|0]>=0)break A;Kb(J[b+72>>2])}if(H[b+95|0]>=0)break b;break a}J[195395]=0;fa(1951,e|0,b+84|0,b+72|0);c=J[195395];J[195395]=0;if((c|0)==1)break x;if(H[b+83|0]<0)Kb(J[b+72>>2]);if(H[b+95|0]>=0)break y;Kb(J[b+84>>2])}f=O[a+24>>3];if(R(1.7976931348623157E308-f)<=2.220446049250313E-16)break u;g=O[a+40>>3];if(R(-1.7976931348623157E308- -g)<=2.220446049250313E-16|g-f==0)break u;e=J[a+84>>2];c=Pb(32);J[b+84>>2]=c;J[b+88>>2]=6;J[b+92>>2]=-2147483640;d=J[106555];J[c+16>>2]=J[106554];J[c+20>>2]=d;d=J[106553];J[c+8>>2]=J[106552];J[c+12>>2]=d;d=J[106551];J[c>>2]=J[106550];J[c+4>>2]=d;J[c+24>>2]=0;J[195395]=0;c=R(1.7976931348623157E308-f)<=2.220446049250313E-16;d=J[195395];J[195395]=0;K:{if((d|0)==1)break K;f=0;L:{if(c)break L;g=O[a+40>>3];J[195395]=0;c=J[195395];J[195395]=0;if((c|0)==1)break K;if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16)break L; -f=O[a+40>>3]-O[a+24>>3]}J[195395]=0;da(1863,b+72|0,+(i*f),-1);c=J[195395];J[195395]=0;if((c|0)!=1)break v}a=Z()|0;break s}a=Z()|0;if(H[b+83|0]>=0)break w;Kb(J[b+72>>2])}if(H[b+95|0]>=0)break b;break a}J[195395]=0;fa(1951,e|0,b+84|0,b+72|0);c=J[195395];J[195395]=0;if((c|0)==1)break t;if(H[b+83|0]<0)Kb(J[b+72>>2]);if(H[b+95|0]>=0)break u;Kb(J[b+84>>2])}e=J[a+84>>2];c=Pb(16);J[b+84>>2]=c;J[b+88>>2]=3;J[b+92>>2]=-2147483644;J[c+8>>2]=J[106468];d=J[106467];J[c>>2]=J[106466];J[c+4>>2]=d;J[c+12>>2]=0;J[195395]= -0;ia(1953,e|0,b+84|0,1,0);c=J[195395];J[195395]=0;if((c|0)==1)break r;if(H[b+95|0]<0)Kb(J[b+84>>2]);M:{if(R(1-h)<=2.220446049250313E-16&R(1-i)<=2.220446049250313E-16)break M;c=J[a+84>>2];J[195395]=0;J[b+84>>2]=103;J[b+88>>2]=0;H[b+95|0]=1;fa(1950,c|0,b+84|0,1);c=J[195395];J[195395]=0;if((c|0)==1)break q;if(H[b+95|0]<0)Kb(J[b+84>>2]);d=J[a+84>>2];c=Pb(48);J[b+84>>2]=c;J[b+88>>2]=9;J[b+92>>2]=-2147483636;J[c+32>>2]=J[106565];e=J[106564];J[c+24>>2]=J[106563];J[c+28>>2]=e;e=J[106562];J[c+16>>2]=J[106561]; -J[c+20>>2]=e;e=J[106560];J[c+8>>2]=J[106559];J[c+12>>2]=e;e=J[106558];J[c>>2]=J[106557];J[c+4>>2]=e;J[c+36>>2]=0;J[195395]=0;c=b+12|0;da(1863,c|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break p;J[195395]=0;c=aa(1954,c|0,0,426268)|0;e=J[195395];J[195395]=0;if((e|0)==1)break o;J[b+32>>2]=J[c+8>>2];e=J[c+4>>2];J[b+24>>2]=J[c>>2];J[b+28>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,b+24|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break n;J[b+48>>2]=J[b+32>>2];J[b+32>>2]=0;c=J[b+28>>2];J[b+ -40>>2]=J[b+24>>2];J[b+44>>2]=c;J[b+24>>2]=0;J[b+28>>2]=0;J[195395]=0;da(1863,b|0,+i,-1);c=J[195395];J[195395]=0;if((c|0)==1)break m;J[195395]=0;c=K[b+11|0];e=c<<24>>24<0;c=aa(1864,b+40|0,(e?J[b>>2]:b)|0,(e?J[b+4>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break l;e=b- -64|0;J[e>>2]=J[c+8>>2];j=J[c+4>>2];J[b+56>>2]=J[c>>2];J[b+60>>2]=j;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,b+56|0,41);c=J[195395];J[195395]=0;if((c|0)==1)break k;J[b+80>>2]=J[e>>2];J[e>>2]=0;c=J[b+60>>2];J[b+72>>2]= -J[b+56>>2];J[b+76>>2]=c;J[b+56>>2]=0;J[b+60>>2]=0;J[195395]=0;fa(1951,d|0,b+84|0,b+72|0);c=J[195395];J[195395]=0;if((c|0)==1)break j;if(H[b+83|0]<0)Kb(J[b+72>>2]);if(H[b+67|0]<0)Kb(J[b+56>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);if(H[b+51|0]<0)Kb(J[b+40>>2]);if(H[b+35|0]<0)Kb(J[b+24>>2]);if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+95|0]<0)Kb(J[b+84>>2]);a=J[a+84>>2];J[195395]=0;J[b+84>>2]=103;J[b+88>>2]=0;H[b+95|0]=1;ia(1953,a|0,b+84|0,1,0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[b+95|0]>=0)break M;Kb(J[b+ -84>>2])}xb=b+96|0;return}a=Z()|0;if(H[b+83|0]>=0)break s;Kb(J[b+72>>2])}if(H[b+95|0]>=0)break b;break a}a=Z()|0;if(H[b+95|0]>=0)break b;break a}a=Z()|0;if(H[b+95|0]>=0)break b;break a}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}a=Z()|0;break g}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;if(H[b+83|0]>=0)break i;Kb(J[b+72>>2])}if(H[b+67|0]>=0)break h;Kb(J[b+56>>2])}if(H[b+11|0]>=0)break g;Kb(J[b>>2])}if(H[b+51|0]>=0)break f;Kb(J[b+40>>2])}if(H[b+35|0]>=0)break e;Kb(J[b+24>>2])}if(H[b+23|0]>=0)break d; -Kb(J[b+12>>2])}if(H[b+95|0]>=0)break b;break a}a=Z()|0;if(H[b+95|0]>=0)break b;Kb(J[b+84>>2])}ba(a|0);B()}Kb(J[b+84>>2]);ba(a|0);B()}function bI(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=0,r=0,s=Q(0),t=Q(0),u=0,v=0;i=xb-192|0;xb=i;J[i+188>>2]=c;k=169776;l=169776;j=K[a+30|0]|K[a+31|0]<<8|(K[a+32|0]<<16|K[a+33|0]<<24);if(j)l=(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24))+a|0;j=K[a+26|0]|K[a+27|0]<<8|(K[a+28|0]<<16|K[a+29|0]<<24);if(j)k= -(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24))+a|0;j=J[b+108>>2];q=J[b+104>>2];J[i+184>>2]=0;J[i+172>>2]=k;J[i+168>>2]=l;u=i,v=Ppa(q,j),J[u+176>>2]=v;J[i+180>>2]=zb;J[i+104>>2]=0;J[i+108>>2]=0;J[i+112>>2]=0;J[i+96>>2]=0;J[i+100>>2]=1;J[i+116>>2]=0;J[i+120>>2]=0;J[i+140>>2]=0;J[i+132>>2]=0;J[i+136>>2]=1;J[i+152>>2]=0;J[i+156>>2]=0;J[i+144>>2]=0;J[i+148>>2]=0;J[i+88>>2]=1;J[i+92>>2]=1;J[i+80>>2]=g;J[i+76>>2]=f;J[i+72>>2]=b;J[i+68>>2]=e;J[i+64>>2]=d;J[i+60>>2]=a;J[i+56>>2]=0;J[i+124>>2]=1;J[i+128>>2]=1;J[i+ -84>>2]=i+168;J[195395]=0;J[i+160>>2]=64;J[i+164>>2]=65536;ka(735,i+88|0,i+188|0,P(c,-1640531535)|0,170452,1)|0;c=J[195395];J[195395]=0;a:{b:{c:{d:{if((c|0)!=1){if((K[a|0]|K[a+1|0]<<8)!=256){j=J[i+188>>2];break d}q=169776;d=169776;j=J[i+188>>2];c=K[a+14|0]|K[a+15|0]<<8|(K[a+16|0]<<16|K[a+17|0]<<24);if(c)d=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e:{if((c|0)<=0)break e;l=d+4|0;c=c-1|0;k=0;while(1){f:{e=c+ -k>>>1|0;r=l+P(e,6)|0;r=K[r|0]|K[r+1|0]<<8;r=(r<<8|r>>>8)&65535;g:{if(r>>>0>j>>>0){c=e-1|0;break g}if(j>>>0<=r>>>0)break f;k=e+1|0}if((c|0)>=(k|0))continue;break e}break}q=l+P(e,6)|0}c=K[q|0]|K[q+1|0]<<8;if(((c<<8|c>>>8)&65535)!=(j|0))break d;l=169776;e=169776;c=K[q+2|0]|K[q+3|0]<<8|(K[q+4|0]<<16|K[q+5|0]<<24);if(c)e=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+d|0;c=K[a+30|0]|K[a+31|0]<<8|(K[a+32|0]<<16|K[a+33|0]<<24);if(c)l=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;c=K[a+26|0]|K[a+27|0]<<8|(K[a+ -28|0]<<16|K[a+29|0]<<24);if(c)c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;else c=169776;k=1;h:{i:{j:{k:{l:{if(!h)break l;d=J[b+108>>2];k=J[b+104>>2];J[i+16>>2]=0;u=i,v=Ppa(k,d),J[u+8>>2]=v;J[i+12>>2]=zb;J[i+4>>2]=c;J[i>>2]=l;c=K[a+22|0]|K[a+23|0]<<8|(K[a+24|0]<<16|K[a+25|0]<<24);if(c)c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;else c=169776;J[195395]=0;c=Ho(c,j,i+40|0,i);d=J[195395];J[195395]=0;m:{if((d|0)!=1){if(!c)break m;n=N[b+68>>2];a=J[i+44>>2];s=Q(n*Q(a<<16>>16));m=N[b+64>>2];c=J[i+ -40>>2];o=Q(m*Q(c<<16>>16));t=Q(n*Q(a+J[i+52>>2]<<16>>16));n=Q(m*Q(c+J[i+48>>2]<<16>>16));p=N[b+60>>2];if(p!=Q(0)){m=Q(s*p);p=Q(p*t);n=Q(n+(m>=p?m:p));o=Q(o+(m<=p?m:p))}m=Q(V(s));n:{if(Q(R(m))>2]=j;o=Q(V(o));o:{if(Q(R(o))>2]=c;o=Q(j|0);m=Q(Q(W(t))-o);p:{if(Q(R(m))>2]=k;m=Q(W(n));n=Q(c|0);m=Q(m-n);q:{if(Q(R(m))>2]=l;a=J[b+48>>2];d=J[b+52>>2];if(a|d){d=J[b+32>>2]<0?0-d|0:d;k=k-d|0;J[i+52>>2]=k;j=d+j|0;J[i+44>>2]=j;a=J[b+28>>2]<0?0-a|0:a;if(K[b+44|0]){c=((a|0)/-2|0)+c|0;J[i+40>>2]=c;n=Q(c|0)}l=a+l|0;J[i+48>>2]=l;o=Q(j|0)}a=J[i+64>>2];d=J[a+28>>2];m=Q(j+k|0);f=J[i+68>>2];j=0;g=J[a+68>>2];if(g)j=J[g+16>>2];J[195395]=0;Ya(d|0,a|0,f|0,Q(n),Q(m),Q(Q(c+l|0)),Q(o),j|0);a=J[195395];J[195395]=0;k=1;if((a|0)!=1)break l}c=Z()|0;break a}J[195395]=0;c=na(737)|0;d=J[195395];J[195395]=0;if((d|0)==1)break k;J[195395]= -0;j=_(738,i|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break j;J[195395]=0;Ba(739,a|0,b|0,J[i+188>>2],c|0,j|0,f|0,g|0,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break i;a=J[j+28>>2];r:{if(!a){J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;l=776480;k=776484;d=776492;g=776496;a=776488;break r}a=J[j+32>>2]+P(a,20)|0;l=a-20|0;g=a-4|0;d=a-8|0;k=a-16|0;a=a-12|0}c=J[i+64>>2];f=J[c+28>>2];o=N[g>>2];n=N[d>>2];m=N[a>>2];p=N[k>>2];a=J[i+68>>2];k=0;d=J[c+68>> -2];if(d)k=J[d+16>>2];d=J[l>>2];J[195395]=0;Ya(f|0,c|0,a|0,Q(p),Q(m),Q(n),Q(o),k|0);a=J[195395];J[195395]=0;if((a|0)==1)break h;if(J[j+24>>2]){J[j+28>>2]=0;Kb(J[j+32>>2])}J[j+24>>2]=0;J[j+28>>2]=0;J[j+32>>2]=0;if(J[j+12>>2]){J[j+16>>2]=0;Kb(J[j+20>>2])}k=(d|0)!=0;J[j+12>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;if(!J[j>>2])break l;J[j+4>>2]=0;Kb(J[j+8>>2])}d=J[i+68>>2];a=J[i+64>>2];c=J[b+24>>2];l=J[c+28>>2];s:{if(!l){J[195395]=0;l=_(740,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break s}f=J[a+12>>2];n=N[b+60>> -2];g=J[b+32>>2];b=J[b+28>>2];c=0;j=J[a+68>>2];if(j)c=J[j>>2];J[195395]=0;o=Q(l>>>0);m=n;n=Q(g|0);wb(f|0,a|0,d|0,Q(Q(Q(b|0)/o)),Q(Q(0)),Q(Q(Q(m*n)/o)),Q(Q(n/o)),Q(Q(0)),Q(Q(0)),c|0);a=J[195395];J[195395]=0;if((a|0)==1)break s;t:{if(!k)break t;a=J[i+160>>2];if((a|0)<=0)break t;b=J[i+164>>2];if((b|0)<=0)break t;J[195395]=0;J[i+164>>2]=b-1;J[i+160>>2]=a-1;$(741,e|0,i+56|0);a=J[195395];J[195395]=0;if((a|0)==1)break s;J[i+160>>2]=J[i+160>>2]+1}a=J[i+64>>2];b=J[a+16>>2];d=J[i+68>>2];c=0;e=J[a+68>>2];if(e)c= -J[e+4>>2];J[195395]=0;fa(b|0,a|0,d|0,c|0);a=J[195395];J[195395]=0;c=1;if((a|0)==1)break s;if(!h)break c;a=J[i+64>>2];b=J[a+32>>2];d=J[i+68>>2];c=0;e=J[a+68>>2];if(e)c=J[e+20>>2];J[195395]=0;fa(b|0,a|0,d|0,c|0);a=J[195395];J[195395]=0;c=1;if((a|0)!=1)break c}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;kt(j);break a}c=Z()|0;kt(j);break a}c=Z()|0;break a}c=K[a+2|0]|K[a+3|0]<<8;if(!c){c=0;break c}b=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);d=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+ -a|0;c=((c<<8|c>>>8)&65535)-1|0;k=0;u:{while(1){b=c+k>>>1|0;e=d+P(b,6)|0;e=K[e|0]|K[e+1|0]<<8;e=(e<<8|e>>>8)&65535;v:{if(e>>>0>j>>>0){c=b-1|0;break v}if(e>>>0>=j>>>0)break u;k=b+1|0}if((c|0)>=(k|0))continue;break}c=0;break c}c=0;b=d+P(b,6)|0;if((b|0)==169776|(e|0)!=(j|0))break c;c=K[a+12|0]|K[a+13|0]<<8;c=(c<<8|c>>>8)&65535;d=K[b+2|0]|K[b+3|0]<<8;d=(d<<8|d>>>8)&65535;e=c-d|0;c=c>>>0>=e>>>0?e:0;b=K[b+4|0]|K[b+5|0]<<8;b=(b<<8|b>>>8)&65535;b=b>>>0>c>>>0?c:b;if(b){c=a;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<< -16|K[a+11|0]<<24);j=(c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0)+(d<<2)|0;d=j+(b<<2)|0;while(1){a=K[j+2|0]|K[j+3|0]<<8;k=J[i+80>>2];J[i>>2]=k;l=1;if((a|0)!=65535){a=(a<<8|a>>>8)&65535;b=J[i+64>>2];e=J[b- -64>>2];c=J[b+68>>2];if(c)c=J[c+52>>2];else c=0;f=J[i+68>>2];J[195395]=0;b=ka(e|0,b|0,f|0,a|0,i|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;if(!b){J[195395]=0;J[i+40>>2]=1;b=J[J[i+72>>2]+24>>2];c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;ka(743,b|0,J[i+76>>2],a|0,i+40|0,i| -0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b}l=0;k=J[i>>2]}a=K[j|0]|K[j+1|0]<<8;c=(a<<8|a>>>8)&65535;a=J[i+64>>2];e=J[a+24>>2];b=J[a+68>>2];if(b)b=J[b+12>>2];else b=0;f=J[i+72>>2];g=J[i+68>>2];J[195395]=0;ma(e|0,a|0,g|0,c|0,f|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;a=J[i+64>>2];c=J[a+36>>2];b=J[a+68>>2];if(b)b=J[b+24>>2];else b=0;e=J[i+68>>2];J[195395]=0;ma(c|0,a|0,e|0,l|0,k|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;a=J[i+64>>2];c=J[a+32>>2];b=J[a+68>>2];if(b)b=J[b+20>>2]; -else b=0;e=J[i+68>>2];J[195395]=0;fa(c|0,a|0,e|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;j=j+4|0;if((d|0)!=(j|0))continue;break}}c=1}MH(i+56|0);xb=i+192|0;return c|0}c=Z()|0}MH(i+56|0);ba(c|0);B()}function vma(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;H[c+140|0]=K[c+140|0]|8;b=0;a=0;l=c;j=J[c+80>>2];m=31;g=1;n=J[c+68>>2];c=!n;while(1){a:{b:{if(!c){a=K[m+141936|0]==10?b:a;d=m<<1;h=I[d+140896>>1]+139456|0;c=H[m+141184|0];m=K[d+139168|0];e=K[(P(b,20)+j|0)+ -18|0];if(m>>>0<=e>>>0)c=e>>>0>K[d+139169|0]?c:e-m|0;c=K[c+h|0];break b}if((m|0)==31)break a;b=n;c=I[(m<<1)+141648>>1]-1|0}m=K[c+141328|0];c=H[c+141488|0];c:{if(!c)break c;d:{e:switch(c-1|0){case 1:f=b+1|0;break c;case 10:f=b+1|0;f:{if(f>>>0<=a>>>0)break f;h=j+3|0;e=g<<4|5;d=a;i=b-d|0;o=i+1&7;if(o){c=0;while(1){H[(h+P(d,20)|0)+12|0]=e;d=d+1|0;c=c+1|0;if((o|0)!=(c|0))continue;break}}if(i>>>0<=6)break f;while(1){c=h+P(d,20)|0;H[c+32|0]=e;H[c+12|0]=e;H[c+52|0]=e;H[c+72|0]=e;H[c+92|0]=e;H[c+112|0]=e;H[c+ -132|0]=e;H[c+152|0]=e;c=d+7|0;d=d+8|0;if((b|0)!=(c|0))continue;break}}c=g+1|0;g=(c|0)==16?1:c;break c;case 12:c=b-1|0;g:{if(a>>>0>=b>>>0)break g;h=j+3|0;e=g<<4;d=a;i=b-d&7;if(i){f=0;while(1){H[(h+P(d,20)|0)+12|0]=e;d=d+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if((a^-1)+b>>>0<=6)break g;while(1){f=h+P(d,20)|0;H[f+32|0]=e;H[f+12|0]=e;H[f+52|0]=e;H[f+72|0]=e;H[f+92|0]=e;H[f+112|0]=e;H[f+132|0]=e;H[f+152|0]=e;d=d+8|0;if((d|0)!=(b|0))continue;break}}d=g+1|0;g=(d|0)==16?1:d;f=b;b=c;break c;case 13:c= -b-1|0;h:{if(a>>>0>=b>>>0)break h;h=j+3|0;e=g<<4|1;d=a;i=b-d&7;if(i){f=0;while(1){H[(h+P(d,20)|0)+12|0]=e;d=d+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if((a^-1)+b>>>0<=6)break h;while(1){f=h+P(d,20)|0;H[f+32|0]=e;H[f+12|0]=e;H[f+52|0]=e;H[f+72|0]=e;H[f+92|0]=e;H[f+112|0]=e;H[f+132|0]=e;H[f+152|0]=e;d=d+8|0;if((d|0)!=(b|0))continue;break}}d=g+1|0;g=(d|0)==16?1:d;f=b;b=c;break c;case 16:c=b-1|0;i:{if(a>>>0>=b>>>0)break i;h=j+3|0;e=g<<4|2;d=a;i=b-d&7;if(i){f=0;while(1){H[(h+P(d,20)|0)+12|0]=e;d=d+ -1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if((a^-1)+b>>>0<=6)break i;while(1){f=h+P(d,20)|0;H[f+32|0]=e;H[f+12|0]=e;H[f+52|0]=e;H[f+72|0]=e;H[f+92|0]=e;H[f+112|0]=e;H[f+132|0]=e;H[f+152|0]=e;d=d+8|0;if((d|0)!=(b|0))continue;break}}d=g+1|0;g=(d|0)==16?1:d;f=b;b=c;break c;case 18:c=b-1|0;j:{if(a>>>0>=b>>>0)break j;h=j+3|0;e=g<<4|3;d=a;i=b-d&7;if(i){f=0;while(1){H[(h+P(d,20)|0)+12|0]=e;d=d+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if((a^-1)+b>>>0<=6)break j;while(1){f=h+P(d,20)|0;H[f+32|0]=e;H[f+ -12|0]=e;H[f+52|0]=e;H[f+72|0]=e;H[f+92|0]=e;H[f+112|0]=e;H[f+132|0]=e;H[f+152|0]=e;d=d+8|0;if((d|0)!=(b|0))continue;break}}d=g+1|0;g=(d|0)==16?1:d;f=b;b=c;break c;case 14:c=b-1|0;k:{if(a>>>0>=b>>>0)break k;h=j+3|0;e=g<<4|4;d=a;i=b-d&7;if(i){f=0;while(1){H[(h+P(d,20)|0)+12|0]=e;d=d+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if((a^-1)+b>>>0<=6)break k;while(1){f=h+P(d,20)|0;H[f+32|0]=e;H[f+12|0]=e;H[f+52|0]=e;H[f+72|0]=e;H[f+92|0]=e;H[f+112|0]=e;H[f+132|0]=e;H[f+152|0]=e;d=d+8|0;if((d|0)!=(b|0))continue; -break}}J[l+144>>2]=J[l+144>>2]|64;d=g+1|0;g=(d|0)==16?1:d;f=b;b=c;break c;case 15:c=b-1|0;l:{if(a>>>0>=b>>>0)break l;h=j+3|0;e=g<<4|5;d=a;i=b-d&7;if(i){f=0;while(1){H[(h+P(d,20)|0)+12|0]=e;d=d+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if((a^-1)+b>>>0<=6)break l;while(1){f=h+P(d,20)|0;H[f+32|0]=e;H[f+12|0]=e;H[f+52|0]=e;H[f+72|0]=e;H[f+92|0]=e;H[f+112|0]=e;H[f+132|0]=e;H[f+152|0]=e;d=d+8|0;if((d|0)!=(b|0))continue;break}}d=g+1|0;g=(d|0)==16?1:d;f=b;b=c;break c;case 0:b=f-1|0;m:{if(a>>>0>=f>>>0)break m; -h=j+3|0;e=g<<4;c=a;i=f-c&7;if(i){d=0;while(1){H[(h+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if((a^-1)+f>>>0<=6)break m;while(1){d=h+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=g+1|0;g=(c|0)==16?1:c;break c;case 2:b=f-1|0;n:{if(a>>>0>=f>>>0)break n;h=j+3|0;e=g<<4|1;c=a;i=f-c&7;if(i){d=0;while(1){H[(h+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if((a^ --1)+f>>>0<=6)break n;while(1){d=h+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=g+1|0;g=(c|0)==16?1:c;break c;case 6:b=f-1|0;o:{if(a>>>0>=f>>>0)break o;h=j+3|0;e=g<<4|2;c=a;i=f-c&7;if(i){d=0;while(1){H[(h+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if((a^-1)+f>>>0<=6)break o;while(1){d=h+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+ -132|0]=e;H[d+152|0]=e;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=g+1|0;g=(c|0)==16?1:c;break c;case 7:b=f-1|0;p:{if(a>>>0>=f>>>0)break p;h=j+3|0;e=g<<4|3;c=a;i=f-c&7;if(i){d=0;while(1){H[(h+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if((a^-1)+f>>>0<=6)break p;while(1){d=h+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=g+1|0;g=(c|0)==16?1:c;break c;case 3:b=f-1|0;q:{if(a>>> -0>=f>>>0)break q;h=j+3|0;e=g<<4|4;c=a;i=f-c&7;if(i){d=0;while(1){H[(h+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if((a^-1)+f>>>0<=6)break q;while(1){d=h+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;c=c+8|0;if((f|0)!=(c|0))continue;break}}J[l+144>>2]=J[l+144>>2]|64;c=g+1|0;g=(c|0)==16?1:c;break c;case 5:r:switch(k-1|0){case 0:b=f-1|0;s:{if(a>>>0>=f>>>0)break s;k=j+3|0;e=g<<4;c=a;h=f-c&7;if(h){d=0;while(1){H[(k+ -P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}if((a^-1)+f>>>0<=6)break s;while(1){d=k+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;c=c+8|0;if((f|0)!=(c|0))continue;break}}k=1;c=g+1|0;g=(c|0)==16?1:c;break c;case 4:b=f-1|0;t:{if(a>>>0>=f>>>0)break t;k=j+3|0;e=g<<4|4;c=a;h=f-c&7;if(h){d=0;while(1){H[(k+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}if((a^-1)+f>>>0<=6)break t;while(1){d=k+P(c,20)| -0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;c=c+8|0;if((f|0)!=(c|0))continue;break}}J[l+144>>2]=J[l+144>>2]|64;c=g+1|0;g=(c|0)==16?1:c;k=5;break c;case 5:break r;default:break c}b=f-1|0;u:{if(a>>>0>=f>>>0)break u;k=j+3|0;e=g<<4|5;c=a;h=f-c&7;if(h){d=0;while(1){H[(k+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}if((a^-1)+f>>>0<=6)break u;while(1){d=k+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+ -112|0]=e;H[d+132|0]=e;H[d+152|0]=e;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=g+1|0;g=(c|0)==16?1:c;break d;case 17:k=1;f=b+1|0;break c;case 4:f=b+1|0;k=5;break c;case 11:break e;default:break c}f=b+1|0}k=6}a=K[m+142080|0]!=9?a:0;b=b+1|0;if((n|0)==(b|0))c=1;else c=0;continue}break}b=J[l+68>>2];v:{if(!b)break v;c=b-1|0;d=J[l+80>>2];f=d+3|0;a=0;d=K[d+15|0];while(1){w:{if((a|0)==(c|0)){a=b;break w}a=a+1|0;if((d|0)==K[(f+P(a,20)|0)+12|0])continue}break}if(!b)break v;d=0;while(1){c=d;d=a;Ac(l,3,c,d,1,0); -c=J[l+68>>2];f=d+1|0;c=c>>>0>f>>>0?c:f;f=c-1|0;n=J[l+80>>2];g=n+3|0;n=K[(n+P(d,20)|0)+15|0];while(1){x:{if((a|0)==(f|0)){a=c;break x}a=a+1|0;if((n|0)==K[(g+P(a,20)|0)+12|0])continue}break}if(b>>>0>d>>>0)continue;break}}return 0}function Y2(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;c=xb-96|0;xb=c;m=b+104|0;e=J[m>>2];d=J[b+96>>2];O[a+16>>3]=((d|0)>(e|0)?e:d)|0;n=b+108|0;j=J[n>>2];o=b+100|0;l=J[o>>2];O[a+24>>3]=((j|0)<(l|0)?j:l)|0;O[a+32>>3]=J[((d|0)<(e|0)?m:b+ -96|0)>>2];O[a+40>>3]=J[((j|0)>(l|0)?n:o)>>2];e=J[a+84>>2];b=Pb(16);J[c+84>>2]=b;J[c+88>>2]=3;J[c+92>>2]=-2147483644;J[b+8>>2]=J[98320];d=J[98319];J[b>>2]=J[98318];J[b+4>>2]=d;J[b+12>>2]=0;J[195395]=0;fa(1950,e|0,c+84|0,1);b=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{if((b|0)!=1){if(H[c+95|0]<0)Kb(J[c+84>>2]);e=J[a+84>>2];b=Pb(32);J[c+84>>2]=b;J[c+88>>2]=5;J[c+92>>2]=-2147483640;J[b+16>>2]=J[98923];d=J[98922];J[b+8>>2]=J[98921]; -J[b+12>>2]=d;d=J[98920];J[b>>2]=J[98919];J[b+4>>2]=d;J[b+20>>2]=0;J[195395]=0;b=_(1078,112)|0;d=J[195395];J[195395]=0;if((d|0)==1)break F;J[c+72>>2]=b;J[c+76>>2]=26;J[c+80>>2]=-2147483620;p=Mb(b,395832,104),q=0,J[p+104>>2]=q;J[195395]=0;fa(1951,e|0,c+84|0,c+72|0);b=J[195395];J[195395]=0;if((b|0)==1)break E;if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+95|0]<0)Kb(J[c+84>>2]);e=J[a+84>>2];b=Pb(48);J[c+84>>2]=b;J[c+88>>2]=11;J[c+92>>2]=-2147483636;J[b+40>>2]=J[99032];d=J[99031];J[b+32>>2]=J[99030];J[b+36>>2]= -d;d=J[99029];J[b+24>>2]=J[99028];J[b+28>>2]=d;d=J[99027];J[b+16>>2]=J[99026];J[b+20>>2]=d;d=J[99025];J[b+8>>2]=J[99024];J[b+12>>2]=d;d=J[99023];J[b>>2]=J[99022];J[b+4>>2]=d;J[b+44>>2]=0;J[195395]=0;b=_(1078,128)|0;d=J[195395];J[195395]=0;if((d|0)==1)break C;J[c+72>>2]=b;J[c+76>>2]=28;J[c+80>>2]=-2147483616;p=Mb(b,396304,112),q=0,J[p+112>>2]=q;J[195395]=0;fa(1951,e|0,c+84|0,c+72|0);b=J[195395];J[195395]=0;if((b|0)==1)break B;if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+95|0]<0)Kb(J[c+84>>2]);fA(a+8|0);i=1; -h=1;f=O[a+48>>3];if(f!=0){g=O[a+16>>3];h=0;G:{if(R(1.7976931348623157E308-g)<=2.220446049250313E-16)break G;k=O[a+32>>3];h=0;if(R(-1.7976931348623157E308-k)<=2.220446049250313E-16)break G;h=k-g}h=f/h}f=O[a+56>>3];if(f!=0){i=0;g=O[a+24>>3];H:{if(R(1.7976931348623157E308-g)<=2.220446049250313E-16)break H;k=O[a+40>>3];if(R(-1.7976931348623157E308-k)<=2.220446049250313E-16)break H;i=k-g}i=f/i}f=O[a+16>>3];if(R(1.7976931348623157E308-f)<=2.220446049250313E-16)break y;g=O[a+32>>3];if(R(-1.7976931348623157E308- -g)<=2.220446049250313E-16|g-f==0)break y;e=J[a+84>>2];b=Pb(32);J[c+84>>2]=b;J[c+88>>2]=5;J[c+92>>2]=-2147483640;J[b+16>>2]=J[99151];d=J[99150];J[b+8>>2]=J[99149];J[b+12>>2]=d;d=J[99148];J[b>>2]=J[99147];J[b+4>>2]=d;J[b+20>>2]=0;J[195395]=0;b=R(1.7976931348623157E308-f)<=2.220446049250313E-16;d=J[195395];J[195395]=0;I:{if((d|0)==1)break I;f=0;J:{if(b)break J;g=O[a+32>>3];J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break I;if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16)break J;f=O[a+32>> -3]-O[a+16>>3]}J[195395]=0;da(1863,c+72|0,+(h*f),-1);b=J[195395];J[195395]=0;if((b|0)!=1)break z}a=Z()|0;break w}a=Z()|0;if(H[c+95|0]>=0)break b;break a}a=Z()|0;break D}a=Z()|0;if(H[c+83|0]>=0)break D;Kb(J[c+72>>2])}if(H[c+95|0]>=0)break b;break a}a=Z()|0;break A}a=Z()|0;if(H[c+83|0]>=0)break A;Kb(J[c+72>>2])}if(H[c+95|0]>=0)break b;break a}J[195395]=0;fa(1951,e|0,c+84|0,c+72|0);b=J[195395];J[195395]=0;if((b|0)==1)break x;if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+95|0]>=0)break y;Kb(J[c+84>>2])}f=O[a+24>> -3];if(R(1.7976931348623157E308-f)<=2.220446049250313E-16)break u;g=O[a+40>>3];if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16|g-f==0)break u;e=J[a+84>>2];b=Pb(32);J[c+84>>2]=b;J[c+88>>2]=6;J[c+92>>2]=-2147483640;d=J[99193];J[b+16>>2]=J[99192];J[b+20>>2]=d;d=J[99191];J[b+8>>2]=J[99190];J[b+12>>2]=d;d=J[99189];J[b>>2]=J[99188];J[b+4>>2]=d;J[b+24>>2]=0;J[195395]=0;b=R(1.7976931348623157E308-f)<=2.220446049250313E-16;d=J[195395];J[195395]=0;K:{if((d|0)==1)break K;f=0;L:{if(b)break L;g=O[a+40>> -3];J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break K;if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16)break L;f=O[a+40>>3]-O[a+24>>3]}J[195395]=0;da(1863,c+72|0,+(i*f),-1);b=J[195395];J[195395]=0;if((b|0)!=1)break v}a=Z()|0;break s}a=Z()|0;if(H[c+83|0]>=0)break w;Kb(J[c+72>>2])}if(H[c+95|0]>=0)break b;break a}J[195395]=0;fa(1951,e|0,c+84|0,c+72|0);b=J[195395];J[195395]=0;if((b|0)==1)break t;if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+95|0]>=0)break u;Kb(J[c+84>>2])}e=J[a+84>>2];b=Pb(16);J[c+ -84>>2]=b;J[c+88>>2]=3;J[c+92>>2]=-2147483644;J[b+8>>2]=J[98320];d=J[98319];J[b>>2]=J[98318];J[b+4>>2]=d;J[b+12>>2]=0;J[195395]=0;ia(1953,e|0,c+84|0,1,0);b=J[195395];J[195395]=0;if((b|0)==1)break r;if(H[c+95|0]<0)Kb(J[c+84>>2]);M:{if(R(1-h)<=2.220446049250313E-16&R(1-i)<=2.220446049250313E-16)break M;b=J[a+84>>2];J[195395]=0;J[c+84>>2]=103;J[c+88>>2]=0;H[c+95|0]=1;fa(1950,b|0,c+84|0,1);b=J[195395];J[195395]=0;if((b|0)==1)break q;if(H[c+95|0]<0)Kb(J[c+84>>2]);d=J[a+84>>2];b=Pb(48);J[c+84>>2]=b;J[c+ -88>>2]=9;J[c+92>>2]=-2147483636;J[b+32>>2]=J[99276];e=J[99275];J[b+24>>2]=J[99274];J[b+28>>2]=e;e=J[99273];J[b+16>>2]=J[99272];J[b+20>>2]=e;e=J[99271];J[b+8>>2]=J[99270];J[b+12>>2]=e;e=J[99269];J[b>>2]=J[99268];J[b+4>>2]=e;J[b+36>>2]=0;J[195395]=0;b=c+12|0;da(1863,b|0,+h,-1);e=J[195395];J[195395]=0;if((e|0)==1)break p;J[195395]=0;b=aa(1954,b|0,0,397256)|0;e=J[195395];J[195395]=0;if((e|0)==1)break o;J[c+32>>2]=J[b+8>>2];e=J[b+4>>2];J[c+24>>2]=J[b>>2];J[c+28>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0; -J[195395]=0;$(1811,c+24|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break n;J[c+48>>2]=J[c+32>>2];J[c+32>>2]=0;b=J[c+28>>2];J[c+40>>2]=J[c+24>>2];J[c+44>>2]=b;J[c+24>>2]=0;J[c+28>>2]=0;J[195395]=0;da(1863,c|0,+i,-1);b=J[195395];J[195395]=0;if((b|0)==1)break m;J[195395]=0;b=K[c+11|0];e=b<<24>>24<0;b=aa(1864,c+40|0,(e?J[c>>2]:c)|0,(e?J[c+4>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break l;e=c- -64|0;J[e>>2]=J[b+8>>2];j=J[b+4>>2];J[c+56>>2]=J[b>>2];J[c+60>>2]=j;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0; -J[195395]=0;$(1811,c+56|0,41);b=J[195395];J[195395]=0;if((b|0)==1)break k;J[c+80>>2]=J[e>>2];J[e>>2]=0;b=J[c+60>>2];J[c+72>>2]=J[c+56>>2];J[c+76>>2]=b;J[c+56>>2]=0;J[c+60>>2]=0;J[195395]=0;fa(1951,d|0,c+84|0,c+72|0);b=J[195395];J[195395]=0;if((b|0)==1)break j;if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+67|0]<0)Kb(J[c+56>>2]);if(H[c+11|0]<0)Kb(J[c>>2]);if(H[c+51|0]<0)Kb(J[c+40>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+95|0]<0)Kb(J[c+84>>2]);a=J[a+84>>2];J[195395]=0;J[c+84>>2]= -103;J[c+88>>2]=0;H[c+95|0]=1;ia(1953,a|0,c+84|0,1,0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+95|0]>=0)break M;Kb(J[c+84>>2])}xb=c+96|0;return}a=Z()|0;if(H[c+83|0]>=0)break s;Kb(J[c+72>>2])}if(H[c+95|0]>=0)break b;break a}a=Z()|0;if(H[c+95|0]>=0)break b;break a}a=Z()|0;if(H[c+95|0]>=0)break b;break a}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}a=Z()|0;break g}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;if(H[c+83|0]>=0)break i;Kb(J[c+72>>2])}if(H[c+67|0]>=0)break h;Kb(J[c+56>>2])}if(H[c+ -11|0]>=0)break g;Kb(J[c>>2])}if(H[c+51|0]>=0)break f;Kb(J[c+40>>2])}if(H[c+35|0]>=0)break e;Kb(J[c+24>>2])}if(H[c+23|0]>=0)break d;Kb(J[c+12>>2])}if(H[c+95|0]>=0)break b;break a}a=Z()|0;if(H[c+95|0]>=0)break b;Kb(J[c+84>>2])}ba(a|0);B()}Kb(J[c+84>>2]);ba(a|0);B()}function kp(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=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=0,ha=0,ia= -0,ja=0,ka=0,la=0;o=xb-16|0;xb=o;p=J[a+736>>2];l=J[a+104>>2];m=J[l+28>>2];J[o+4>>2]=0;r=6;a:{if(!K[a+733|0]|!p)break a;b:{if(!e)break b;f=J[c+4>>2];r=0;if((e|0)!=1){i=e&-2;while(1){h=r<<3;g=h+d|0;k=f+h|0;J[g>>2]=J[k>>2]<<6;J[g+4>>2]=J[k+4>>2]<<6;h=h|8;g=h+d|0;h=f+h|0;J[g>>2]=J[h>>2]<<6;J[g+4>>2]=J[h+4>>2]<<6;r=r+2|0;x=x+2|0;if((i|0)!=(x|0))continue;break}}if(!(e&1))break b;h=r<<3;i=h+d|0;f=f+h|0;J[i>>2]=J[f>>2]<<6;J[i+4>>2]=J[f+4>>2]<<6}r=0;if(M[p+68>>2]<=b>>>0)break a;f=J[p+72>>2];h=b<<2;i=b+1|0; -if(J[f+h>>2]==J[f+(i<<2)>>2])break a;b=o+12|0;q=Tb(m,8,0,e,0,b);c:{if(J[o+12>>2])break c;s=Tb(m,8,0,e,0,b);if(J[o+12>>2])break c;r=Tb(m,1,0,e,0,b);if(J[o+12>>2])break c;f=J[p+72>>2];i=J[f+(i<<2)>>2];f=J[f+h>>2];h=bc(l,f);J[o+12>>2]=h;if(h)break c;f=i-f|0;h=Tc(l,f);J[o+12>>2]=h;if(h)break c;h=J[l>>2];i=J[l+32>>2];C=Tb(m,4,0,J[p>>2],0,b);x=0;d:{e:{if(J[o+12>>2])break e;Q=Tb(m,4,0,J[p>>2],0,b);if(J[o+12>>2])break e;R=Tb(m,4,0,J[p>>2],0,b);if(J[o+12>>2])break e;b=Zc(l);f:{g=Zc(l);if(g>>>0<=f>>>0){b=b<< -16>>16;V=b&4095;if(f>>>0>=V<<2>>>0)break f}J[o+12>>2]=8;break e}z=g+(i-h|0)|0;if((b|0)<0){h=J[l+32>>2];b=J[l>>2];f=J[l+36>>2];J[l+32>>2]=f-b>>>0>z>>>0?b+z|0:f;x=pm(l,J[p+76>>2],o+4|0);i=J[l+32>>2];f=J[l>>2];b=h-b|0;h=J[l+36>>2];J[l+32>>2]=b>>>0>>0?f+b|0:h;z=i-f|0}D=Tb(m,4,0,e,0,o+12|0);g:{if(J[o+12>>2])break g;E=Tb(m,4,0,e,0,o+12|0);if(J[o+12>>2])break g;h:{if(!e)break h;f=J[c+4>>2];g=0;if((e|0)!=1){i=e&-2;b=0;while(1){h=g<<3;k=h+q|0;y=f+h|0;J[k>>2]=J[y>>2]<<16;J[k+4>>2]=J[y+4>>2]<<16;h=h|8; -k=h+q|0;h=f+h|0;J[k>>2]=J[h>>2]<<16;J[k+4>>2]=J[h+4>>2]<<16;g=g+2|0;b=b+2|0;if((i|0)!=(b|0))continue;break}}if(!(e&1))break h;b=g<<3;h=b+q|0;b=b+f|0;J[h>>2]=J[b>>2]<<16;J[h+4>>2]=J[b+4>>2]<<16}if(V){fa=e&-4;Z=e&3;_=e-1|0;$=e-2|0;aa=e-3|0;S=e-4|0;b=0;while(1){ga=Zc(l);i:{j:{k:{l:{m:{f=Zc(l);h=f<<16>>16;n:{if((h|0)<0){g=0;if(!J[p>>2])break n;while(1){ka=(g<<2)+C|0,la=Zc(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;if(g>>>0>2])continue;break}break n}i=f&4095;if(i>>>0>=M[p+60>>2])break m;g=i;i=J[p>>2];Mb(C, -J[p+64>>2]+(P(g,i)<<2)|0,i<<2)}o:{if(!(f&16384))break o;g=0;if(!J[p>>2])break o;while(1){ka=(g<<2)+Q|0,la=Zc(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;i=J[p>>2];if(g>>>0>>0)continue;break}g=0;if(!i)break o;while(1){ka=(g<<2)+R|0,la=Zc(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;if(g>>>0>2])continue;break}}h=nv(p,h&65535,C,Q,R);if(!h)break i;ha=J[l+32>>2];W=J[l>>2];i=J[l+36>>2];J[l+32>>2]=i-W>>>0>z>>>0?W+z|0:i;p:{if(f&8192){y=pm(l,J[p+76>>2],o+8|0);k=J[o+8>>2];b=y;break p}k=J[o+4>>2];J[o+8>>2]=k;y=b;b=x}f=k? -k:e;F=mp(l,J[p+76>>2],f);G=mp(l,J[p+76>>2],f);f=b;if(!F|(!f|!G))break j;q:{if((f|0)!=-1){if(!e)break k;b=0;g=0;i=0;if(e>>>0>=4)break q;break l}g=0;if(!e)break j;while(1){b=g<<2;f=b+E|0;i=J[f>>2];k=b+D|0;j=J[k>>2];n=Rb(J[b+F>>2],h);b=Rb(J[b+G>>2],h);r:{if(g>>>0>>0){J[k>>2]=j+n;J[f>>2]=b+i;break r}if(!(K[a+740|0]&4|(g|0)!=(S|0))){J[k>>2]=j+n;break r}if(!(K[a+740|0]&2|(g|0)!=(aa|0))){J[k>>2]=j+n;break r}if(!(K[a+740|0]&32|(g|0)!=($|0))){J[f>>2]=b+i;break r}if(K[a+740|0]&16|(g|0)!=(_|0))break r;J[f>> -2]=b+i}g=g+1|0;if((g|0)!=(e|0))continue;break}break j}while(1){H[g+r|0]=0;j=g<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|1;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|2;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|3;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;g=g+4|0;i=i+4|0;if((fa|0)!=(i|0))continue;break}break l}J[o+12>>2]=8;break g}if(!Z)break k;while(1){H[g+r|0]=0;i=g<<3;j=i+s| -0;i=i+q|0;n=J[i+4>>2];J[j>>2]=J[i>>2];J[j+4>>2]=n;g=g+1|0;b=b+1|0;if((Z|0)!=(b|0))continue;break}}g=0;if(k)while(1){b=L[f+(g<<1)>>1];if(b>>>0>>0){H[b+r|0]=1;b=(b<<3)+s|0;i=g<<2;ka=b,la=Rb(J[i+F>>2],h)+J[b>>2]|0,J[ka>>2]=la;ka=b,la=Rb(J[i+G>>2],h)+J[b+4>>2]|0,J[ka+4>>2]=la}g=g+1|0;if((k|0)!=(g|0))continue;break}k=0;T=0;if(L[c>>1]){X=s+4|0;u=q+4|0;while(1){n=I[J[c+12>>2]+(T<<1)>>1];s:{if((n|0)<(k|0))break s;f=n+1|0;U=0;g=k;while(1){b=g+1|0;if(K[g+r|0]){h=g;t:{u:{v:{w:{f=g;ba=(n|0)>(f|0);if(ba){while(1){j= -h;h=b;i=f;x:{if(!K[h+r|0])break x;i=h;if((f|0)>=(j|0))break x;b=f+1|0;t=J[q+(f<<3)>>2]>J[q+(h<<3)>>2];N=t?f:h;O=N<<3;i=J[O+s>>2];B=t?h:f;Y=B<<3;w=J[Y+s>>2];v=J[q+O>>2];t=J[q+Y>>2];if(!((v|0)==(t|0)&(i|0)!=(w|0))){ca=0;if((t|0)!=(v|0))ca=dc(i-w|0,v-t|0);ia=i-v|0;ja=w-t|0;f=b;while(1){i=f;da=f<<3;f=J[q+da>>2];y:{if((f|0)<=(t|0)){A=f+ja|0;break y}A=f+ia|0;if((f|0)>=(v|0))break y;A=Rb(f-t|0,ca)+w|0}J[s+da>>2]=A;f=i+1|0;if((i|0)!=(j|0))continue;break}}i=J[u+Y>>2]>J[u+O>>2];t=(i?B:N)<<3;f=J[t+X>>2];i=(i? -N:B)<<3;w=J[i+X>>2];v=J[t+u>>2];t=J[i+u>>2];if((v|0)==(t|0)){i=h;if((f|0)!=(w|0))break x}A=0;if((t|0)!=(v|0))A=dc(f-w|0,v-t|0);N=f-v|0;O=w-t|0;while(1){f=b;B=f<<3;b=J[B+u>>2];z:{if((b|0)<=(t|0)){i=b+O|0;break z}i=b+N|0;if((b|0)>=(v|0))break z;i=Rb(b-t|0,A)+w|0}J[B+X>>2]=i;b=f+1|0;if((f|0)!=(j|0))continue;break}i=h}f=i;b=h+1|0;if((h|0)<(n|0))continue;break}if((f|0)!=(g|0))break w}h=g<<3;i=h+q|0;f=J[i+4>>2];j=h+s|0;h=J[j+4>>2];j=J[j>>2];i=J[i>>2];if((j|0)==(i|0)&(f|0)==(h|0))break t;h=h-f|0;i=j-i|0; -if((g|0)<=(k|0))break u;if(U&1){f=(k<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];k=k+1|0}if((U|0)!=1)break v;break u}gv(f+1|0,n,f,g,q,s);if((g|0)<=0)break t;gv(k,g-1|0,f,g,q,s);break t}while(1){f=(k<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];J[f+8>>2]=i+J[f+8>>2];J[f+12>>2]=h+J[f+12>>2];k=k+2|0;if((k|0)!=(g|0))continue;break}}if(!ba)break t;while(1){g=g+1|0;f=(g<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];if((g|0)!=(n|0))continue;break}}k=b;break s}U=U+1|0;h=(g|0)==(n|0);g=b;if(!h)continue; -break}k=f}T=T+1|0;if((T|0)>1])continue;break}}g=0;if(!e)break j;while(1){b=g<<3;f=b+s|0;h=b+q|0;b=J[f+4>>2]-J[h+4>>2]|0;f=J[f>>2]-J[h>>2]|0;k=g<<2;h=k+E|0;i=J[h>>2];k=k+D|0;j=J[k>>2];A:{if(g>>>0>>0){J[k>>2]=f+j;J[h>>2]=b+i;break A}if(!(K[a+740|0]&4|(g|0)!=(S|0))){J[k>>2]=f+j;break A}if(!(K[a+740|0]&2|(g|0)!=(aa|0))){J[k>>2]=f+j;break A}if(!(K[a+740|0]&32|(g|0)!=($|0))){J[h>>2]=b+i;break A}if(K[a+740|0]&16|(g|0)!=(_|0))break A;J[h>>2]=b+i}g=g+1|0;if((g|0)!=(e|0))continue;break}}b=-1;if((y| -0)!=-1){if(y)Ab[J[m+8>>2]](m,y);b=0}if(F)Ab[J[m+8>>2]](m,F);if(G)Ab[J[m+8>>2]](m,G);f=ha-W|0;h=J[l>>2];i=J[l+36>>2];J[l+32>>2]=f>>>0>>0?f+h|0:i}z=z+ga|0;ea=ea+1|0;if((ea|0)!=(V|0))continue;break}}if(!e)break g;b=J[c+4>>2];g=0;while(1){c=g<<3;a=c+d|0;f=g<<2;h=f+D|0;J[a>>2]=J[a>>2]+(J[h>>2]+512>>10);f=f+E|0;J[a+4>>2]=J[a+4>>2]+(J[f>>2]+512>>10);a=b+c|0;J[a>>2]=J[a>>2]+(J[h>>2]+32768>>16);J[a+4>>2]=J[a+4>>2]+(J[f>>2]+32768>>16);g=g+1|0;if((g|0)!=(e|0))continue;break}}if(D)Ab[J[m+8>>2]](m,D);if(E)Ab[J[m+ -8>>2]](m,E);if((x|0)==-1)break d}if(x)Ab[J[m+8>>2]](m,x)}if(C)Ab[J[m+8>>2]](m,C);if(Q)Ab[J[m+8>>2]](m,Q);if(R)Ab[J[m+8>>2]](m,R);Ec(l)}if(q)Ab[J[m+8>>2]](m,q);if(s)Ab[J[m+8>>2]](m,s);if(r)Ab[J[m+8>>2]](m,r);r=J[o+12>>2]}xb=o+16|0;return r}function to(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,w=0,x=0,y=0;if(!J[b+68>>2])return 1;J[b+144>>2]=0;H[b+61|0]=0;I[b+140>>1]=0;h=J[b+68>>2];a:{if(h>>>0>67108863)break a;n=h<<6;J[b+148>>2]=n>>>0<=16384?16384:n;if(h>>>0> -4194303)break a;h=h<<10;J[b+152>>2]=h>>>0<=16384?16384:h}if(K[b+16|0]&32){r=ku();vi(r,b,0,-1)}g=b+40|0;j=J[a+108>>2];m=J[a+104>>2];i=xb-48|0;xb=i;s=J[a+24>>2];b:{if(J[s>>2]>0){n=J[s+212>>2];while(1){if(!WF(i+4|0,0,s,g,c,d,j,m,e)){h=169776;break b}h=n;if(h)while(1){o=0;k=J[h>>2];if(!(J[k+16>>2]!=J[i+4>>2]|J[k+20>>2]!=J[i+8>>2]|(J[k+24>>2]!=J[i+12>>2]|J[k+28>>2]!=J[i+16>>2])))o=J[k+32>>2]==J[i+20>>2];c:{if(!o)break c;q=J[k+40>>2];if((q|0)!=J[i+28>>2])break c;if(q){p=J[k+36>>2];o=0;t=J[i+24>>2];while(1){f= -o<<4;l=f+p|0;f=f+t|0;if(J[l>>2]!=J[f>>2]|J[l+4>>2]!=J[f+4>>2])break c;d:{e:{if(!J[l+8>>2]){l=J[l+12>>2];if(!J[f+8>>2])break e;if((l|0)==-1)break c;break d}if(J[f+8>>2]|J[f+12>>2]!=-1)break d;break c}if((l|0)==-1^J[f+12>>2]==-1)break c}o=o+1|0;if((q|0)!=(o|0))continue;break}}if((K[i+32|0]|K[i+33|0]<<8|(K[i+34|0]<<16|K[i+35|0]<<24))!=(K[k+44|0]|K[k+45|0]<<8|(K[k+46|0]<<16|K[k+47|0]<<24))|(K[k+48|0]|K[k+49|0]<<8|(K[k+50|0]<<16|K[k+51|0]<<24))!=(K[i+36|0]|K[i+37|0]<<8|(K[i+38|0]<<16|K[i+39|0]<<24))|J[k+ -52>>2]!=J[i+40>>2])break c;h=J[h>>2];if(!h){h=0;break b}n=J[h>>2];if(!n)break b;J[h>>2]=n+1;break b}h=J[h+4>>2];if(h)continue;break}h=VF(s,g,c,d,j,m,e);k=vc(1,8);if(!k)break b;J[k+4>>2]=n;J[k>>2]=h;f=J[s+212>>2];n=(f|0)==(n|0);J[s+212>>2]=n?k:f;if(n){if(!h){h=0;break b}n=J[h>>2];if(!n)break b;J[h>>2]=n+1;break b}Os(h);Kb(k);n=J[s+212>>2];if(J[s>>2]>0)continue;break}}h=VF(s,g,c,d,j,m,e)}xb=i+48|0;k=h;f:{g:{h:{if(!J[b+68>>2])break h;i=0;if(J[h>>2]<=0)break f;h=J[h+52>>2];if((h|0)==958){i:{if(J[a+132>> -2])break i;while(1){i=0;if(!J[a+128>>2])break f;h=J[a+132>>2];J[a+132>>2]=h?h:1;if(!h)break i;if(!J[a+132>>2])continue;break}}h=0;if(lG(k,a,b,c,d))break h;break g}i=0;if((h|0)!=959)break f;j:{if(J[a+136>>2])break j;while(1){i=0;if(!J[a+128>>2])break f;h=J[a+136>>2];J[a+136>>2]=h?h:1;if(!h)break j;if(!J[a+136>>2])continue;break}}h=0;if(!Pt(k,a,b,c,d))break g}h=1;if(J[b+36>>2]!=1)break g;J[b+36>>2]=2}i=h}h=i;if(J[b+152>>2]<=0)H[b+61|0]=1;Os(k);if(r){k:{if(!h){h=0;break k}if(!K[r+60|0]|(K[b+61|0]|!K[b+ -60|0]))break k;s=h;k=a;n=c;f=xb-80|0;xb=f;h=1;c=1;l:{if(M[b+20>>2]>1)break l;h=J[b+40>>2];if(f+52|0)J[f+52>>2]=J[b+68>>2];a=J[b+80>>2];i=J[f+52>>2];m:{if(i>>>0>1){g=a-12|0;h=(h&-3)==4;while(1){j=P(c,20);m=J[j+g>>2];j=J[(a+j|0)+8>>2];if(!((m|0)==(j|0)|h^j>>>0<=m>>>0)){hm(b,k,105555,0);h=0;break m}c=c+1|0;if((i|0)!=(c|0))continue;break}}h=1}c=1;if(M[b+20>>2]>1)break l;g=Mk(b);a=J[g+16>>2]&-33;if(J[g+4>>2])J[g+16>>2]=a;j=Mk(b);a=j;c=J[a+16>>2]&-33;if(J[a+4>>2])J[a+16>>2]=c;if(f+52|0)J[f+52>>2]=J[b+68>> -2];o=J[b+80>>2];if(f+72|0)J[f+72>>2]=J[r+68>>2];q=J[r+80>>2];a=J[b+40>>2];n:{o:{i=J[f+52>>2];if(i-1>>>0<=4294967293){t=o-12|0;u=q-12|0;l=(a&-3)!=4;v=P(l?-1:0,20);m=1;c=l?J[f+72>>2]:0;a=c;while(1){p:{if(i>>>0>m>>>0){p=o+P(m,20)|0;if(J[p+8>>2]==J[p-12>>2]|H[(p+v|0)+4|0]&1)break p}q:{if((i|0)==(m|0)){c=l?0:c;a=l?a:J[f+72>>2];break q}if(!l){i=J[f+72>>2];if(i>>>0<=a>>>0)break q;p=J[(o+P(m,20)|0)+8>>2];while(1){if(p>>>0<=M[(q+P(a,20)|0)+8>>2])break q;a=a+1|0;if((i|0)!=(a|0))continue;break}a=i;break q}if(c){i= -J[t+P(m,20)>>2];while(1){if(i>>>0>M[u+P(c,20)>>2])break q;c=c-1|0;if(c)continue;break}}c=0}if(J[g+4>>2]){J[g+36>>2]=0;J[g+40>>2]=0;H[g+61|0]=0;H[g+62|0]=0;H[g+63|0]=0;H[g+64|0]=0;H[g+65|0]=0;H[g+66|0]=0;H[g+67|0]=0;H[g+68|0]=0;H[g+60|0]=1;J[g+144>>2]=0;J[g+92>>2]=0;J[g+96>>2]=0;J[g+52>>2]=0;J[g+56>>2]=0;J[g+44>>2]=0;J[g+48>>2]=0;H[g+68|0]=0;H[g+69|0]=0;H[g+70|0]=0;H[g+71|0]=0;H[g+72|0]=0;H[g+73|0]=0;H[g+74|0]=0;H[g+75|0]=0;J[g+84>>2]=J[g+80>>2];J[g+100>>2]=0;J[g+104>>2]=0;J[g+108>>2]=0;J[g+112>>2]= -0;J[g+116>>2]=0;J[g+120>>2]=0;J[g+124>>2]=0;J[g+128>>2]=0;J[g+132>>2]=0;J[g+136>>2]=0;I[g+140>>1]=0}i=J[g+16>>2];i=c?i&-2:i;i=M[f+72>>2]>a>>>0?i&-3:i;if(J[g+4>>2])J[g+16>>2]=i;vi(g,r,c,a);if(!to(k,g,n,d,e)|K[g+60|0]|K[g+61|0])break o;vi(j,g,0,-1);i=J[f+52>>2];a=l?c:a;c=a}m=m+1|0;if(m>>>0>>0)continue;break}}c=1;r:{if(!K[j+60|0])break r;if(!(fu(j,b)&-65))break r;hm(b,k,105716,0);ju(b);vi(b,j,0,-1);c=0}wh(j);break n}wh(j);c=1}wh(g)}t=c&h;s:{t:{u:{v:{if(K[b+16|0]&64){o=1;i=1;if(M[b+20>>2]>1)break u; -g=Mk(b);J[f+72>>2]=g;j=Mk(b);J[f+76>>2]=j;a=J[g+16>>2]&-33;if(J[g+4>>2])J[g+16>>2]=a;a=J[j+16>>2]&-33;if(J[j+4>>2])J[j+16>>2]=a;l=Mk(b);a=l;c=J[a+16>>2]&-33;if(J[a+4>>2])J[a+16>>2]=c;a=J[b+44>>2];J[f+52>>2]=J[b+40>>2];J[f+56>>2]=a;J[f+68>>2]=J[b+56>>2];a=J[b+52>>2];J[f+60>>2]=J[b+48>>2];J[f+64>>2]=a;if(J[g+4>>2]){a=J[f+56>>2];J[g+40>>2]=J[f+52>>2];J[g+44>>2]=a;J[g+56>>2]=J[f+68>>2];a=J[f+64>>2];J[g+48>>2]=J[f+60>>2];J[g+52>>2]=a}if(J[j+4>>2]){a=J[f+56>>2];J[j+40>>2]=J[f+52>>2];J[j+44>>2]=a;J[j+56>> -2]=J[f+68>>2];a=J[f+64>>2];J[j+48>>2]=J[f+60>>2];J[j+52>>2]=a}if(J[l+4>>2]){a=J[f+56>>2];J[l+40>>2]=J[f+52>>2];J[l+44>>2]=a;J[l+56>>2]=J[f+68>>2];a=J[f+64>>2];J[l+48>>2]=J[f+60>>2];J[l+52>>2]=a}if(f+48|0)J[f+48>>2]=J[b+68>>2];q=J[b+80>>2];if(f+44|0)J[f+44>>2]=J[r+68>>2];v=J[r+80>>2];u=J[b+40>>2]&-3;if((u|0)!=4)Wg(b);m=J[f+48>>2];if(m-1>>>0>=4294967294)break v;y=q-12|0;h=1;p=0;c=0;a=0;while(1){i=a;w:{x:{if(h>>>0>=m>>>0)break x;w=P(h,20);x=q+w|0;if(J[x+8>>2]==J[y+w>>2])break w;if(!(K[x+4|0]&2))break x; -break w}y:{if((h|0)==(m|0)){a=J[f+44>>2];break y}a=J[f+44>>2];if(c>>>0>=a>>>0){a=c;break y}m=J[(q+P(h,20)|0)+8>>2];while(1){if(m>>>0<=M[(v+P(c,20)|0)+8>>2]){a=c;break y}c=c+1|0;if((c|0)!=(a|0))continue;break}}vi(J[(f+72|0)+(p<<2)>>2],r,i,a);p=1-p|0;m=J[f+48>>2];c=a}h=h+1|0;if(h>>>0>>0)continue;break}break v}o=1;if(t)break s;break t}i=1;z:{if(!to(k,g,n,d,e)|!K[g+60|0]|K[g+61|0])break z;if(!to(k,j,n,d,e)|!K[j+60|0]|K[j+61|0])break z;if((u|0)!=4){Wg(g);Wg(j)}J[f+32>>2]=0;J[f+36>>2]=0;if(f+24|0)J[f+ -24>>2]=J[g+68>>2];J[f+16>>2]=J[g+80>>2];if(f+28|0)J[f+28>>2]=J[j+68>>2];J[f+20>>2]=J[j+80>>2];if(J[f+24>>2]|J[f+28>>2]){n=0;while(1){e=n<<2;m=e+(f+32|0)|0;h=J[m>>2];c=h+1|0;d=J[e+(f+24|0)>>2];A:{if(c>>>0>=d>>>0)break A;q=J[e+(f+16|0)>>2];a=J[(q+P(h,20)|0)+8>>2];while(1){v=a;p=q+P(c,20)|0;a=J[p+8>>2];if((v|0)!=(a|0)&!(K[p+4|0]&2))break A;c=c+1|0;if((d|0)!=(c|0))continue;break}c=d}vi(l,J[e+(f+72|0)>>2],h,c);J[m>>2]=c;n=1-n|0;if(M[f+32>>2]>2]|M[f+36>>2]>2])continue;break}}if((u|0)!=4){Wg(b); -Wg(l)}if(!K[l+60|0])break z;if(!(fu(l,b)&-65))break z;hm(b,k,105974,0);ju(b);vi(b,l,0,-1);i=0}wh(l);wh(g);wh(j)}if(i&t)break s}e=J[r+68>>2];J[f+52>>2]=e;c=0;d=P(e,10)+16|0;a=(d|0)>0;d=a?d:0;i=1;B:{C:{if(a){a=0;while(1){a=((a>>>1|0)+a|0)+8|0;if(d>>>0>a>>>0)continue;break}D:{if(!a)break D;c=Qb(a);if(c)break D;c=0;break C}Nb(c,0,d);i=!a}J[195395]=0;Ba(629,r|0,0,e|0,c|0,d|0,f+52|0,1413830740,1)|0;a=J[195395];J[195395]=0;E:{if((a|0)!=1){J[f>>2]=c;J[195395]=0;ia(630,b|0,k|0,105357,f|0);a=J[195395];J[195395]= -0;if((a|0)!=1)break E}a=Z()|0;if(!i)Kb(c);ba(a|0);B()}if(i)break B}Kb(c)}o=0}xb=f+80|0;h=o?s:0}wh(r)}I[b+140>>1]=0;J[b+148>>2]=1073741823;J[b+152>>2]=536870911;return h}function lN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=xb-224|0;xb=f;n=1;j=J[b+540>>2];a:{if((d|0)<=0){c=0;break a}m=d&3;b:{if(d>>>0<4){c=0;d=0;break b}o=d&-4;c=0;d=0;while(1){i=1;l=d<<3;g=J[l+e>>2]-1768386662|0;if(g){if((g|0)==13)k=1}else c=1;g=c;c=J[(l|8)+e>>2]-1768386662|0; -if(c){if((c|0)==13)k=1;i=g}c=1;g=J[(l|16)+e>>2]-1768386662|0;if(g){if((g|0)==13)k=1;g=i}else g=1;i=J[(l|24)+e>>2]-1768386662|0;if(i){if((i|0)==13)k=1;c=g}d=d+4|0;p=p+4|0;if((o|0)!=(p|0))continue;break}}if(!m)break a;g=c;while(1){i=J[(d<<3)+e>>2]-1768386662|0;if(i){if((i|0)==13)k=1;c=g}else c=1;d=d+1|0;g=c;h=h+1|0;if((m|0)!=(h|0))continue;break}}c:{if(J[J[b+128>>2]+52>>2])break c;d=L[b+152>>1];if(d){g=J[b+156>>2];e=g+(d<<4)|0;d=g;while(1){if(J[d+12>>2]?J[d>>2]==1735162214:0)break c;d=d+16|0;if(e>>> -0>d>>>0)continue;break}d=g;while(1){if(J[d+12>>2]?J[d>>2]==1128678944:0)break c;d=d+16|0;if(e>>>0>d>>>0)continue;break}while(1){if(J[g+12>>2]?J[g>>2]==1128678962:0)break c;g=g+16|0;if(e>>>0>g>>>0)continue;break}}n=0}d=1;e=Ab[J[b+516>>2]](b,1935829368,a,0)|0;i=(e|0)!=0&n;d:{e:{f:{if(i)break f;h=J[j+68>>2];if(!h)break f;g=0;h=Ab[h|0](b,a)|0;d=(h|0)!=0;if(!e)break f;if(!h)break e}e=Ab[J[j+24>>2]](b,a)|0;J[f>>2]=e;g=d;if(e)break d}d=Ab[J[b+516>>2]](b,1128418371,a,0)|0;e=Ab[J[b+516>>2]](b,1128416340,a, -0)|0;if((L[b+178>>1]-16385&65535)>>>0<=49166){J[f>>2]=8;break d}d=i&((d|0)!=0&(e|0)!=0);Ab[J[j+36>>2]](b,a)|0;Ab[J[j+32>>2]](b,a)|0;Ab[J[j+48>>2]](b,a)|0;h=Ab[J[j+44>>2]](b,a)|0;g:{if(!g){e=d;break g}e=Ab[J[j+28>>2]](b,a,0)|0;J[f>>2]=e;h:{i:{j:{if(!e){g=Ab[J[j+92>>2]](b,a,0)|0;J[f>>2]=g;if((g&255)!=142)break i;J[f>>2]=147;e=J[J[b+128>>2]+52>>2];if(!e)break d;if(J[J[e>>2]+8>>2])break j;break d}if((e&255)!=142)break d;e=0;if(J[b+148>>2]==1953658213)break h;J[f>>2]=143;e=J[J[b+128>>2]+52>>2];if(!e|!J[J[e>> -2]+8>>2])break d}I[b+250>>1]=0;e=d;break h}e=d;if(g)break d}d=Ab[J[j+28>>2]](b,a,1)|0;J[f>>2]=d;k:{l:{if(d)break l;d=Ab[J[j+92>>2]](b,a,1)|0;J[f>>2]=d;if(d)break l;H[b+292|0]=1;break k}if((d&255)!=142)break d}d=Ab[J[j+40>>2]](b,a)|0;J[f>>2]=d;if(!d)break g;I[b+372>>1]=65535}d=J[j+96>>2];if(d)Ab[d|0](b,a)|0;d=J[j+112>>2];if(d){Ab[d|0](b,a)|0;Ab[J[j+116>>2]](b,a)|0}Ab[J[j+64>>2]](b,a)|0;Ab[J[j+60>>2]](b,a)|0;Ab[J[j+56>>2]](b,a)|0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+16>>2]=L[b+264>>1];a=b+24|0;d=b+20|0;m:{if(!(!(H[b+ -437|0]&1)|L[b+372>>1]==65535)){n:{if(!(c&255)){c=Rf(b,16,d);J[f>>2]=c;if(c)break d;if(J[d>>2])break n}c=Rf(b,1,d);J[f>>2]=c;if(c)break d}if(!(k&255)){c=Rf(b,17,a);J[f>>2]=c;if(c)break d}if(J[a>>2])break m;a=Rf(b,2,a);J[f>>2]=a;if(!a)break m;break d}g=Rf(b,21,d);J[f>>2]=g;if(g)break d;i=J[d>>2];if(!(i|c&255)){c=Rf(b,16,d);J[f>>2]=c;if(c)break d;i=J[d>>2]}if(!i){c=Rf(b,1,d);J[f>>2]=c;if(c)break d}c=Rf(b,22,a);J[f>>2]=c;if(c)break d;d=J[a>>2];if(!(d|k&255)){c=Rf(b,17,a);J[f>>2]=c;if(c)break d;d=J[a>> -2]}if(d)break m;a=Rf(b,2,a);J[f>>2]=a;if(a)break d}d=J[b+8>>2];a=e|(!J[b+872>>2]&(J[b+796>>2]&-2)!=2?d:d|16384);d=a|24;d=h?d:J[b+476>>2]==196608?d:a|536;a=J[b+488>>2]?d|4:d;a=K[b+292|0]?a|32:a;h=J[b+820>>2]?a|64:a;o:{if(!(H[b+740|0]&1))break o;a=L[b+152>>1];if(!a)break o;d=J[b+156>>2];a=d+(a<<4)|0;c=d;p:{while(1){q:{if(!(!J[c+12>>2]|J[c>>2]!=1735162214)){c=d;while(1){if(J[c+12>>2]?J[c>>2]==1735811442:0)break q;c=c+16|0;if(a>>>0>c>>>0)continue;break}break p}c=c+16|0;if(a>>>0>c>>>0)continue;break p}break}h= -h|256}while(1){if(!(J[d+12>>2]?J[d>>2]==1128678962:0)){d=d+16|0;if(a>>>0>d>>>0)continue;break o}break}h=h|256}J[b+8>>2]=h;r:{if(!(!e|L[b+372>>1]==65535)){a=L[b+436>>1];a=a>>>4&2|(a&513)!=0;break r}a=L[b+204>>1];a=(a<<1|(a&2)>>>1)&3}J[b+12>>2]=a|J[b+12>>2];c=J[b+508>>2];J[f+216>>2]=c;a=J[f+216>>2];s:{if(!a)break s;d=J[b+512>>2];if(d>>>0<4)break s;J[f+216>>2]=a+2;J[f+216>>2]=J[f+216>>2]+2;J[f+220>>2]=K[J[f+216>>2]-1|0]|K[J[f+216>>2]-2|0]<<8;if(!J[f+220>>2])break s;d=c+d|0;while(1){a=J[f+216>>2];if(d>>> -0>>0)break s;J[f+216>>2]=a+2;a=K[J[f+216>>2]-2|0];e=K[J[f+216>>2]-1|0];J[f+216>>2]=J[f+216>>2]+2;I[f+212>>1]=e|a<<8;a=K[J[f+216>>2]-2|0];e=K[J[f+216>>2]-1|0];J[f+216>>2]=J[f+216>>2]+4;J[f+204>>2]=b;J[f+208>>2]=0;I[f+214>>1]=e|a<<8;a=K[J[f+216>>2]-1|0]|(K[J[f+216>>2]-3|0]<<16|K[J[f+216>>2]-4|0]<<24|K[J[f+216>>2]-2|0]<<8);if(!(!a|a>>>0>J[b+512>>2]-2>>>0)){J[f+200>>2]=a+c;a=J[f+200>>2];J[f+196>>2]=K[a+1|0]|K[a|0]<<8;J[f+192>>2]=94992;t:{if(!J[J[f+192>>2]>>2])break t;while(1){J[f+188>>2]=J[J[f+192>> -2]>>2];if(J[J[f+188>>2]+40>>2]==J[f+196>>2]){J[f+8>>2]=0;a=f+12|0;J[a+156>>2]=J[f+200>>2];J[a+160>>2]=d;J[a+164>>2]=0;J[a+168>>2]=0;J[f+184>>2]=L[b+264>>1];e=J[J[f+188>>2]+44>>2];J[195395]=0;a=ca(e|0,J[f+200>>2],a|0)|0;e=J[195395];J[195395]=0;u:{v:{if((e|0)!=1){J[f+8>>2]=a;break v}a=ga(774020)|0;if((yb|0)!=(Xa(774020)|0))break u;sa(a|0)|0;ua()}if(J[f+180>>2])break t;if(zf(J[f+188>>2],J[f+200>>2],f+204|0,f+4|0))break t;J[J[f+4>>2]+20>>2]=J[f+8>>2];break t}ba(a|0);B()}J[f+192>>2]=J[f+192>>2]+4;if(J[J[f+ -192>>2]>>2])continue;break}}}J[f+220>>2]=J[f+220>>2]-1;if(J[f+220>>2])continue;break}}g=J[b+36>>2];w:{if((g|0)>0){h=J[b+40>>2];i=1;d=0;while(1){c=J[h+(d<<2)>>2];a=I[c+10>>1];e=95040;x:{y:{z:{A:switch(L[c+8>>1]){case 0:e=95052;break z;case 1:if(a)break y;e=95064;break z;case 2:break z;case 3:break A;default:break y}if(!(1151>>>a&1)|a>>>0>=11)break y;e=J[(a<<2)+95944>>2]}a=J[e+8>>2];J[c+4>>2]=a;if((a|0)!=1937337698&(a|0)!=1970170211)break x;i=0;d=d+1|0;if((g|0)!=(d|0))continue;break w}J[c+4>>2]=0}d= -d+1|0;if((g|0)!=(d|0))continue;break}if(!(i&1))break w}J[f+12>>2]=b;J[f+16>>2]=1970170211;J[f+20>>2]=65539;a=zf(94464,0,f+12|0,0);J[f>>2]=a;B:{if(!a)break B;a=a&255;if((a|0)==163)break B;if((a|0)!=7)break d}J[f>>2]=0}a=J[b+800>>2];C:{if(!a)break C;e=J[J[b+104>>2]+28>>2];k=L[b+178>>1];if(!k|L[b+372>>1]==65535){k=1;c=1}else c=L[b+374>>1];q=b,r=Tb(e,16,0,a,0,f),J[q+32>>2]=r;if(J[f>>2])break d;g=Tb(e,4,0,a,0,f);if(J[f>>2])break d;l=k>>>1|0;n=c<<16>>16;h=0;d=0;while(1){c=J[b+32>>2];i=Ab[J[j+108>>2]](b, -d,f+12|0)|0;J[f>>2]=i;D:{if(i)break D;c=c+(h<<4)|0;I[c>>1]=J[f+32>>2]>>>6;i=L[f+12>>1];J[c+8>>2]=i<<6;I[c+2>>1]=(l+P(i,n)|0)/(k|0);m=L[f+14>>1];o=m<<6;J[c+4>>2]=o;J[c+12>>2]=o;if(!i|!m)break D;J[g+(h<<2)>>2]=d;h=h+1|0}d=d+1|0;if((a|0)!=(d|0))continue;break}a=Tb(e,4,a,h,g,f);if(!h)break C;J[b+804>>2]=a;J[b+28>>2]=h;J[b+8>>2]=J[b+8>>2]|2}d=J[b+8>>2];if(!(d&3)){d=d|1;J[b+8>>2]=d}if(!(d&1))break d;I[b+68>>1]=L[b+178>>1];J[b+52>>2]=I[b+196>>1];J[b+56>>2]=I[b+198>>1];J[b+60>>2]=I[b+200>>1];J[b- -64>>2]= -I[b+202>>1];d=L[b+372>>1]==65535;E:{if(!(d|!(K[b+436|0]&128))){a=L[b+442>>1];I[b+70>>1]=a;c=L[b+444>>1];I[b+72>>1]=c;I[b+74>>1]=L[b+446>>1]+(a-c|0);break E}a=L[b+220>>1];I[b+70>>1]=a;c=L[b+222>>1];I[b+72>>1]=c;I[b+74>>1]=L[b+224>>1]+(a-c|0);if(c|(a|d))break E;a=L[b+442>>1];c=L[b+444>>1];if(a|c){I[b+72>>1]=c;I[b+70>>1]=a;I[b+74>>1]=L[b+446>>1]+(a-c|0);break E}a=L[b+448>>1];I[b+70>>1]=a;c=a;a=L[b+450>>1];I[b+74>>1]=c+a;I[b+72>>1]=0-a}I[b+76>>1]=L[b+226>>1];I[b+78>>1]=L[(K[b+292|0]?306:74)+b>>1];a=I[b+ -486>>1];I[b+82>>1]=a;I[b+80>>1]=L[b+484>>1]+((a|0)/-2|0)}xb=f+224|0;return J[f>>2]}function Ky(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,N=0,O=0,P=0,Q=0,R=0;k=xb-336|0;xb=k;m=h;n=i&65535;o=d;p=e&65535;s=(e^i)&-2147483648;x=i>>>16&32767;u=e>>>16&32767;a:{b:{if(x-32767>>>0>4294934529&u-32767>>>0>=4294934530)break b;j=e&2147483647;if(!(!d&(j|0)==2147418112?!(b|c):j>>>0<2147418112)){r=d;s=e|32768;break a}e=i& -2147483647;if(!(!h&(e|0)==2147418112?!(f|g):e>>>0<2147418112)){r=h;s=i|32768;b=f;c=g;break a}if(!(b|d|(j^2147418112|c))){if(!(f|h|(e^2147418112|g))){b=0;c=0;s=2147450880;break a}s=s|2147418112;b=0;c=0;break a}if(!(f|h|(e^2147418112|g))){b=0;c=0;break a}if(!(b|d|(c|j))){b=!(f|h|(e|g));r=b?0:r;s=b?2147450880:s;b=0;c=0;break a}if(!(f|h|(e|g))){s=s|2147418112;b=0;c=0;break a}if((j|0)==65535|j>>>0<65535){d=!(o|p);i=d;j=d?b:o;d=d<<6;i=S(i?c:p);d=d+((i|0)==32?S(j)+32|0:i)|0;Ke(k+320|0,b,c,o,p,d-15|0);q= -16-d|0;o=J[k+328>>2];p=J[k+332>>2];c=J[k+324>>2];b=J[k+320>>2]}if(e>>>0>65535)break b;d=!(n|m);h=d;i=d?f:m;d=d<<6;h=S(h?g:n);d=d+((h|0)==32?S(i)+32|0:h)|0;Ke(k+304|0,f,g,m,n,d-15|0);q=(d+q|0)-16|0;m=J[k+312>>2];n=J[k+316>>2];f=J[k+304>>2];g=J[k+308>>2]}e=n|65536;y=e;z=m;d=m;j=e<<15|d>>>17;e=d<<15|g>>>17;d=e;i=0-d|0;h=j;j=1963258675-(j+((d|0)!=0)|0)|0;Ce(k+288|0,d,h,0,0,i,j,0,0);d=J[k+296>>2];Ce(k+272|0,0-d|0,0-(J[k+300>>2]+((d|0)!=0)|0)|0,0,0,i,j,0,0);d=J[k+280>>2];i=d<<1|J[k+276>>2]>>>31;d=J[k+284>> -2]<<1|d>>>31;Ce(k+256|0,i,d,0,0,e,h,0,0);j=J[k+264>>2];Ce(k+240|0,i,d,0,0,0-j|0,0-(J[k+268>>2]+((j|0)!=0)|0)|0,0,0);i=J[k+248>>2];j=i<<1|J[k+244>>2]>>>31;d=J[k+252>>2]<<1|i>>>31;Ce(k+224|0,j,d,0,0,e,h,0,0);i=J[k+232>>2];Ce(k+208|0,j,d,0,0,0-i|0,0-(J[k+236>>2]+((i|0)!=0)|0)|0,0,0);d=J[k+216>>2];i=d<<1|J[k+212>>2]>>>31;d=J[k+220>>2]<<1|d>>>31;Ce(k+192|0,i,d,0,0,e,h,0,0);j=J[k+200>>2];Ce(k+176|0,i,d,0,0,0-j|0,0-(J[k+204>>2]+((j|0)!=0)|0)|0,0,0);i=e;e=J[k+184>>2];d=h;m=e<<1|J[k+180>>2]>>>31;h=m-1|0;e= -(J[k+188>>2]<<1|e>>>31)-!m|0;Ce(k+160|0,i,d,0,0,h,e,0,0);d=h;Ce(k+144|0,f<<15,g<<15|f>>>17,0,0,d,e,0,0);v=k+112|0;A=J[k+168>>2];h=J[k+172>>2];m=J[k+160>>2];i=J[k+152>>2];l=m+i|0;n=J[k+164>>2];j=n+J[k+156>>2]|0;j=i>>>0>l>>>0?j+1|0:j;i=j;j=(n|0)==(j|0)&l>>>0>>0|j>>>0>>0;n=j+A|0;j=j>>>0>n>>>0?h+1|0:h;m=!i&l>>>0>1|(i|0)!=0;h=n+m|0;j=m>>>0>h>>>0?j+1|0:j;Ce(v,d,e,0,0,0-h|0,0-(((h|0)!=0)+j|0)|0,0,0);Ce(k+128|0,1-l|0,0-((l>>>0>1)+i|0)|0,0,0,d,e,0,0);K=(u-x|0)+q|0;e=J[k+116>>2];u=e;d=J[k+112>>2];j=e<< -1|d>>>31;i=d<<1;n=j;d=j;h=J[k+140>>2];w=h;e=J[k+136>>2];j=h<<1|e>>>31;l=e<<1|J[k+132>>2]>>>31;h=l+i|0;d=d+j|0;d=h>>>0>>0?d+1|0:d;e=d;d=d-(h>>>0<13927)|0;t=d;v=d;l=0;j=p|65536;L=j;N=o;d=o;j=j<<1|d>>>31;P=d<<1;Q=j;E=j;d=Kpa(t,l,j,0);j=zb;B=d;C=j;G=b<<1;d=c<<1|b>>>31;x=d;A=d;j=0;q=j;m=h-13927|0;t=(e|0)==(t|0)&m>>>0>>0|e>>>0>t>>>0;e=(e|0)==(n|0)&h>>>0>>0|e>>>0>>0;d=J[k+120>>2];h=J[k+124>>2]<<1|d>>>31;d=d<<1|u>>>31;l=w>>>31|0;d=l+d|0;j=h;j=d>>>0>>0?j+1|0:j;h=d;d=d+e|0;j=h>>>0>d>>>0?j+1| -0:j;e=d;d=d+t|0;l=e>>>0>d>>>0?j+1|0:j;e=d-1|0;D=l-!d|0;w=0;i=Kpa(A,q,D,w);d=i+B|0;h=zb+C|0;h=d>>>0>>0?h+1|0:h;n=(C|0)==(h|0)&d>>>0>>0|h>>>0>>0;B=e;O=c>>>31|0;F=O|o<<1;t=0;e=Kpa(e,0,F,t);o=e+d|0;j=zb+h|0;l=0;j=e>>>0>o>>>0?j+1|0:j;p=j;d=(j|0)==(h|0)&d>>>0>o>>>0|h>>>0>j>>>0;e=d;d=d+n|0;l=e>>>0>d>>>0?1:l;e=Kpa(E,q,D,w);d=e+d|0;j=zb+l|0;n=d;d=d>>>0>>0?j+1|0:j;e=Kpa(E,q,B,t);l=zb;h=e;e=Kpa(F,t,D,w);i=h+e|0;j=zb+l|0;j=e>>>0>i>>>0?j+1|0:j;e=j;j=(l|0)==(j|0)&h>>>0>i>>>0|j>>>0>>0;l=n+e|0;d=d+ -j|0;d=l>>>0>>0?d+1|0:d;n=l;l=d;e=0;d=e+o|0;j=i+p|0;j=d>>>0>>0?j+1|0:j;e=j;h=(j|0)==(p|0)&d>>>0>>0|j>>>0

>>0;j=l;i=h;h=h+n|0;j=i>>>0>h>>>0?j+1|0:j;u=h;l=j;o=d;C=m;d=Kpa(m,0,F,t);i=zb;h=d;m=Kpa(v,r,A,r);d=d+m|0;j=zb+i|0;j=d>>>0>>0?j+1|0:j;m=(i|0)==(j|0)&d>>>0>>0|i>>>0>j>>>0;h=j;H=G&-2;i=Kpa(B,t,H,0);p=i+d|0;j=zb+j|0;j=i>>>0>p>>>0?j+1|0:j;i=j;d=(j|0)==(h|0)&d>>>0>p>>>0|h>>>0>j>>>0;h=0;j=d+m|0;d=(j>>>0>>0?1:h)+e|0;n=j+o|0;d=n>>>0>>0?d+1|0:d;j=l;m=d;d=(d|0)==(e|0)&n>>>0>>0|d>>> -0>>0;e=d;d=d+u|0;j=e>>>0>d>>>0?j+1|0:j;R=d;u=j;d=Kpa(E,q,C,r);I=zb;E=d;e=Kpa(D,w,H,r);d=d+e|0;j=zb+I|0;j=d>>>0>>0?j+1|0:j;o=d;l=Kpa(v,r,F,t);e=d+l|0;h=j;d=j+zb|0;d=e>>>0>>0?d+1|0:d;q=e;j=Kpa(A,r,B,t);e=e+j|0;l=zb+d|0;l=e>>>0>>0?l+1|0:l;D=(d|0)==(l|0)&e>>>0>>0|d>>>0>l>>>0;j=(h|0)==(I|0)&o>>>0>>0|h>>>0>>0;d=(d|0)==(h|0)&o>>>0>q>>>0|d>>>0>>0;d=d+j|0;d=d+D|0;h=l;q=h+n|0;j=(d|w)+m|0;j=h>>>0>q>>>0?j+1|0:j;o=j;d=(m|0)==(j|0)&n>>>0>q>>>0|j>>>0>>0;j=u;h=d;d=d+R|0;j=h>>>0>d>>>0?j+ -1|0:j;w=d;m=j;d=Kpa(v,r,H,r);v=zb;n=d;h=Kpa(A,r,C,r);d=d+h|0;j=zb+v|0;j=d>>>0>>0?j+1|0:j;u=0;h=(j|0)==(v|0)&d>>>0>>0|j>>>0>>0;n=j;d=j+p|0;j=(h|u)+i|0;j=d>>>0>>0?j+1|0:j;i=(i|0)==(j|0)&d>>>0

>>0|i>>>0>j>>>0;h=j;j=e;p=0;e=p+d|0;l=h+j|0;j=0;l=e>>>0

>>0?l+1|0:l;d=(h|0)==(l|0)&d>>>0>e>>>0|h>>>0>l>>>0;e=d;d=d+i|0;j=(e>>>0>d>>>0?1:j)+o|0;l=m;e=d;d=d+q|0;j=e>>>0>d>>>0?j+1|0:j;e=j;h=(o|0)==(j|0)&d>>>0>>0|j>>>0>>0;i=h;h=h+w|0;l=i>>>0>h>>>0?l+1|0:l;i=l;c:{if((l|0)==131071|l>>>0<131071){N= -P|O;L=t|Q;Ce(k+80|0,d,j,h,l,f,g,z,y);l=J[k+84>>2];q=l;j=b<<17;o=0;p=J[k+88>>2];c=o-p|0;b=J[k+80>>2];l=(l|b)!=0;m=c-l|0;n=(j-(J[k+92>>2]+(o>>>0

>>0)|0)|0)-(c>>>0>>0)|0;p=0-(((b|0)!=0)+q|0)|0;q=K+16382|0;o=0-b|0;break c}d=(e&1)<<31|d>>>1;e=h<<31|e>>>1;h=(i&1)<<31|h>>>1;i=i>>>1|0;Ce(k+96|0,d,e,h,i,f,g,z,y);m=J[k+100>>2];x=m;n=0;q=J[k+104>>2];o=n-q|0;l=J[k+96>>2];p=(m|l)!=0;m=o-p|0;n=((b<<16)-(J[k+108>>2]+(n>>>0>>0)|0)|0)-(o>>>0

>>0)|0;p=0-(((l|0)!=0)+x|0)|0;G=b;x=c;q=K+16383|0;o=0-l|0}if((q| -0)>=32767){s=s|2147418112;b=0;c=0;break a}d:{if((q|0)>0){b=m<<1|p>>>31;c=n<<1|m>>>31;m=h;n=i&65535|q<<16;l=p<<1|o>>>31;h=o<<1;break d}if((q|0)<=-113){b=0;c=0;break a}Ii(k- -64|0,d,e,h,i,1-q|0);Ke(k+48|0,G,x,N,L,q+112|0);d=J[k+64>>2];e=J[k+68>>2];m=J[k+72>>2];n=J[k+76>>2];Ce(k+32|0,f,g,z,y,d,e,m,n);b=J[k+40>>2];c=J[k+56>>2];i=J[k+36>>2];p=b<<1|i>>>31;l=c-p|0;p=J[k+60>>2]-((J[k+44>>2]<<1|b>>>31)+(c>>>0

>>0)|0)|0;c=J[k+52>>2];q=c;b=J[k+32>>2];h=i<<1|b>>>31;o=b<<1;b=o;j=J[k+48>>2];c=(c|0)==(h|0)&b>>> -0>j>>>0|c>>>0>>0;b=l-c|0;c=p-(c>>>0>l>>>0)|0;l=q-((j>>>0>>0)+h|0)|0;h=j-o|0}Ce(k+16|0,f,g,z,y,3,0,0,0);Ce(k,f,g,z,y,5,0,0,0);o=d;p=d&1;i=p;d=h+i|0;j=0;h=j+l|0;h=d>>>0>>0?h+1|0:h;i=d;g=(g|0)==(h|0)&d>>>0>f>>>0|g>>>0>>0;l=c;d=(h|0)==(j|0)&d>>>0

>>0|h>>>0>>0;f=b+d|0;l=d>>>0>f>>>0?l+1|0:l;j=e;b=(l|0)==(y|0);b=b&(f|0)==(z|0)?g:b&f>>>0>z>>>0|l>>>0>y>>>0;c=b;b=b+o|0;j=c>>>0>b>>>0?j+1|0:j;c=j;d=(e|0)==(j|0)&b>>>0>>0|e>>>0>j>>>0;j=n;e=d;d=d+m|0;j=e>>>0>d>>>0?j+1|0:j;g=d;e=J[k+20>>2];m= -(e|0)==(h|0)&M[k+16>>2]>>0|e>>>0>>0;e=J[k+28>>2];d=J[k+24>>2];e=j>>>0<2147418112&((d|0)==(f|0)&(e|0)==(l|0)?m:(e|0)==(l|0)&d>>>0>>0|e>>>0>>0);d=c;m=e;e=b+e|0;d=m>>>0>e>>>0?d+1|0:d;b=(c|0)==(d|0)&b>>>0>e>>>0|c>>>0>d>>>0;c=b;b=b+g|0;j=c>>>0>b>>>0?j+1|0:j;g=b;c=J[k+4>>2];h=(c|0)==(h|0)&M[k>>2]>>0|c>>>0>>0;c=J[k+12>>2];b=J[k+8>>2];b=j>>>0<2147418112&((b|0)==(f|0)&(c|0)==(l|0)?h:(c|0)==(l|0)&b>>>0>>0|c>>>0>>0);c=b;b=b+e|0;l=c>>>0>b>>>0?d+1|0:d;c=l;e=(d|0)==(l|0)&b>>>0>>0|d>>> -0>l>>>0;d=j;f=e;e=e+g|0;d=f>>>0>e>>>0?d+1|0:d;r=e|r;s=d|s}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=r;J[a+12>>2]=s;xb=k+336|0}function Ez(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;l=xb-48|0;xb=l;d=bc(b,c+d|0);a:{if(d)break a;d=Tc(b,e);if(d)break a;b:{c:{if(!e)break c;g=J[b+32>>2];k=g+e|0;if(H[g|0]<0){m=J[a+16>>2];p=J[a+28>>2];J[l>>2]=0;d=8;if((e|0)<=0)break b;h=H[g|0];if((h|0)>=0)break b;f=g+1|0;i=J[p>>2];j=h&255;d:{if(!(j&64)){e=f;break d}if(e>>>0<2)break b;e=g+2|0;h=K[f| -0];if(!h)break d;while(1){f=e+2|0;if(f>>>0>k>>>0)break b;e=f+K[e|0]|0;if(k>>>0>>0)break b;h=h-1|0;if(h)continue;break}}q=j&63;f=q+m|0;h=J[a+20>>2];e:{if(f>>>0<=h>>>0){h=J[a+24>>2];break e}f=f+3&-4;if(f>>>0>64)break b;h=Tb(i,24,h,f,J[a+24>>2],l);J[a+24>>2]=h;d=J[l>>2];if(d)break b;J[a+20>>2]=f}if(q){h=P(m,24)+h|0;d=8;while(1){i=e+1|0;if(k>>>0>>0)break b;g=K[e|0];J[h>>2]=65536;if(g&16){i=e+3|0;if(k>>>0>>0)break b;e=K[e+1|0]|K[e+2|0]<<8;J[h>>2]=(e<<8|e>>>8)<<16>>16<<4}J[h+4>>2]=65536;f:{if(!(g& -32)){e=i;break f}e=i+2|0;if(k>>>0>>0)break b;f=K[i|0]|K[i+1|0]<<8;J[h+4>>2]=(f<<8|f>>>8)<<16>>16<<4}j=0;i=0;g:{h:switch((g&3)-1|0){case 0:f=e+2|0;if(f>>>0>k>>>0)break b;e=K[e|0]|K[e+1|0]<<8;i=(e<<8|e>>>8)<<16>>16;e=f;break g;case 1:break h;default:break g}f=e+1|0;if(f>>>0>k>>>0)break b;i=H[e|0];e=f}i:{j:switch((g>>>2&3)-1|0){case 0:f=e+2|0;if(f>>>0>k>>>0)break b;e=K[e|0]|K[e+1|0]<<8;j=(e<<8|e>>>8)<<16>>16;e=f;break i;case 1:break j;default:break i}f=e+1|0;if(f>>>0>k>>>0)break b;j=H[e|0];e=f}J[h+ -12>>2]=j;J[h+8>>2]=i;k:{if(g&64){i=e+2|0;if(k>>>0>>0)break b;e=K[e+1|0]|K[e|0]<<8;break k}i=e+1|0;if(k>>>0>>0)break b;e=K[e|0]}J[h+20>>2]=e;l:{if(g<<24>>24<0){e=i+3|0;if(k>>>0>>0)break b;j=2;f=K[i+1|0]<<8|K[i|0]<<16;break l}e=i+2|0;if(k>>>0>>0)break b;j=1;f=K[i|0]<<8}J[h+16>>2]=f|K[i+j|0];J[a+16>>2]=J[a+16>>2]+1;h=h+24|0;n=n+1|0;if((q|0)!=(n|0))continue;break}}Ec(b);d=0;e=J[a+16>>2];if((e|0)==(m|0))break a;i=e-m|0;n=0;while(1){h=I[p+22>>1];f=P(n,24);e=P(m,24);d=f+(e+J[a+24>>2]|0)|0;d= -Ez(a,b,c,J[d+16>>2],J[d+20>>2]);if(d)break a;k=I[p+22>>1];g=k-h|0;f=f+(e+J[a+24>>2]|0)|0;m:{if(!(J[f>>2]==65536&J[f+4>>2]==65536)){if((g|0)<=0)break m;d=J[p+24>>2]+(h<<3)|0;e=0;while(1){t=d,u=Rb(J[d>>2],J[f>>2])+J[f+8>>2]|0,J[t>>2]=u;t=d,u=Rb(J[d+4>>2],J[f+4>>2])+J[f+12>>2]|0,J[t+4>>2]=u;d=d+8|0;e=e+1|0;if((g|0)!=(e|0))continue;break}break m}if((g|0)<=0)break m;d=J[p+24>>2]+(h<<3)|0;e=J[f+12>>2];f=J[f+8>>2];if(k+(h^-1)>>>0>=3){k=g&-4;h=0;while(1){J[d>>2]=f+J[d>>2];J[d+4>>2]=e+J[d+4>>2];J[d+8>>2]= -f+J[d+8>>2];J[d+16>>2]=f+J[d+16>>2];J[d+24>>2]=f+J[d+24>>2];J[d+12>>2]=e+J[d+12>>2];J[d+20>>2]=e+J[d+20>>2];J[d+28>>2]=e+J[d+28>>2];d=d+32|0;h=h+4|0;if((k|0)!=(h|0))continue;break}}h=0;g=g&3;if(!g)break m;while(1){J[d>>2]=f+J[d>>2];J[d+4>>2]=e+J[d+4>>2];d=d+8|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}d=0;n=n+1|0;if((i|0)!=(n|0))continue;break}break a}J[l+44>>2]=0;d=8;if((e|0)<=0)break b;c=H[g|0];if((c|0)<0)break b;j=J[J[a+28>>2]>>2];i=c&255;n:{if(i&4){if(e>>>0<2)break b;f=g+2|0;c=K[g+1|0];n=c>>>4| -0;m=c&15;break n}if(i&2){if(e>>>0<2)break b;m=K[g+1|0];c=g+2|0}else c=g+1|0;if(!(i&1)){f=c;break n}f=c+1|0;if(k>>>0>>0)break b;n=K[c|0]}g=m+n|0;c=J[a+4>>2];o:{p:{if(g>>>0>c>>>0){d=c;c=g+7&1016;j=Tb(j,4,d,c,J[a+8>>2],l+44|0);J[a+8>>2]=j;d=J[l+44>>2];if(d)break b;J[a+4>>2]=c;J[a+12>>2]=(m<<2)+j;p=a+12|0;break p}j=J[a+8>>2];J[a+12>>2]=j+(m<<2);p=a+12|0;if(!g)break o}c=0;d=0;while(1){q:{if(d&7){e=f;break q}e=f+1|0;if(k>>>0>>0)break c;c=K[f|0]}o=(d<<2)+j|0;r:{if(c&1){f=e+2|0;if(k>>>0>>0)break c; -e=K[e|0]|K[e+1|0]<<8;h=(e<<8|e>>>8)<<16>>16;break r}f=e+1|0;if(k>>>0>>0)break c;h=K[e|0]+h|0}J[o>>2]=h;c=c>>>1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}d=8;s:{if(!(i&8)){c=f;break s}c=f+1|0;if(k>>>0>>0)break b;e=K[f|0];if(e)while(1){f=c+2|0;if(f>>>0>k>>>0)break b;c=f+K[c|0]|0;if(k>>>0>>0)break b;e=e-1|0;if(e)continue;break}J[l+44>>2]=0}H[a+32|0]=0;J[l+24>>2]=0;J[l+28>>2]=0;J[l>>2]=0;J[l+4>>2]=0;q=l+16|0;r=l|8;f=0;h=0;while(1){g=c+1|0;if(g>>>0>k>>>0)break c;c=K[c|0];e=c&15;j=1;t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{o= -c>>>4|0;switch(o|0){case 0:break w;case 1:case 4:case 5:break x;case 7:break z;case 6:break A;case 3:break C;case 2:break D;default:break y}}if(e>>>0>=m>>>0)break c;J[l>>2]=J[J[a+8>>2]+(e<<2)>>2];break B}if(e>>>0>=n>>>0)break c;J[l>>2]=h;f=J[J[p>>2]+(e<<2)>>2]}J[l+4>>2]=f;f=J[l+4>>2];h=J[l>>2];J[l+24>>2]=h;J[l+28>>2]=f;c=g;break v}e=2958;j=3;break x}e=3627;j=3;break x}j=4}d=l;i=0;c=g;while(1){E:{F:switch(e&3){case 0:g=c+1|0;if(g>>>0>k>>>0)break c;c=K[c|0];if(c>>>0>=m>>>0)break c;h=J[J[a+8>>2]+(c<< -2)>>2];c=g;break E;case 1:g=c+2|0;if(g>>>0>k>>>0)break c;c=K[c|0]|K[c+1|0]<<8;h=(c<<8|c>>>8)<<16>>16;c=g;break E;case 2:break F;default:break E}g=c+1|0;if(g>>>0>k>>>0)break c;h=H[c|0]+h|0;c=g}J[d>>2]=h;G:{H:switch(e>>>2&3){case 0:h=c+1|0;if(h>>>0>k>>>0)break c;c=K[c|0];if(c>>>0>=n>>>0)break c;f=J[J[p>>2]+(c<<2)>>2];c=h;break G;case 1:h=c+2|0;if(h>>>0>k>>>0)break c;c=K[c|0]|K[c+1|0]<<8;f=(c<<8|c>>>8)<<16>>16;c=h;break G;case 2:break H;default:break G}h=c+1|0;if(h>>>0>k>>>0)break c;f=H[c|0]+f|0;c=h}J[d+ -4>>2]=f;I:{if(!((j|0)!=4|i)){f=c+1|0;if(f>>>0>k>>>0)break c;e=K[c|0];j=3;c=f;break I}e=e>>>4|0}f=J[d+4>>2];h=J[d>>2];J[l+24>>2]=h;J[l+28>>2]=f;d=d+8|0;i=i+1|0;if(j>>>0>i>>>0)continue;break}J:switch(o|0){case 4:case 5:e=J[a+28>>2];K:{if(!K[a+32|0])break K;i=I[e+58>>1];d=i-1|0;g=L[e+56>>1];j=g<<16>>16;if((j|0)<=0)g=0;else g=I[(J[e+68>>2]+(g<<1)|0)-2>>1];L:{if((d|0)<=(g|0))break L;o=J[e+60>>2];s=o+(g<<3)|0;o=o+(d<<3)|0;if(J[s>>2]!=J[o>>2]|J[s+4>>2]!=J[o+4>>2])break L;I[e+58>>1]=i-1;d=i-2|0}if((d|0)< -(g|0))break K;I[e+56>>1]=j+1;I[J[e+68>>2]+(j<<1)>>1]=d}H[a+32|0]=1;d=I[e+58>>1];i=(d+I[e+22>>1]|0)+1|0;j=J[e+4>>2];if(!(i>>>0<=j>>>0&M[e+8>>2]>=(I[e+20>>1]+I[e+56>>1]|0)+1>>>0)){d=ie(e,1,1);if(d)break t;if(!K[a+32|0]){d=8;break t}e=J[a+28>>2];d=I[e+58>>1];i=(d+I[e+22>>1]|0)+1|0;j=J[e+4>>2]}if(i>>>0>j>>>0){d=ie(e,1,0);if(d)break t;d=I[e+58>>1]}break u;case 1:case 2:case 3:break v;case 0:break w;default:break J}if(K[a+32|0]){d=J[a+28>>2];e=I[d+58>>1];M:{if(M[d+4>>2]<(I[d+22>>1]+e|0)+3>>>0){e=ie(d,3, -0);if(e)break M;e=I[d+58>>1]}i=J[d- -64>>2];j=J[l+4>>2];g=J[d+60>>2]+(e<<3)|0;J[g>>2]=J[l>>2];J[g+4>>2]=j;j=J[r+4>>2];J[g+8>>2]=J[r>>2];J[g+12>>2]=j;j=J[q+4>>2];J[g+16>>2]=J[q>>2];J[g+20>>2]=j;e=e+i|0;H[e+2|0]=1;H[e|0]=2;H[e+1|0]=2;I[d+58>>1]=L[d+58>>1]+3;e=0}d=e}else d=8;break t}e=J[a+28>>2];if(K[a+32|0]){f=I[e+58>>1];d=f-1|0;c=L[e+56>>1];h=c<<16>>16;if((h|0)<=0)c=0;else c=I[(J[e+68>>2]+(c<<1)|0)-2>>1];N:{if((d|0)<=(c|0))break N;g=J[e+60>>2];i=g+(c<<3)|0;g=g+(d<<3)|0;if(J[i>>2]!=J[g>>2]|J[i+4>>2]!= -J[g+4>>2])break N;I[e+58>>1]=f-1;d=f-2|0}if((c|0)<=(d|0)){I[e+56>>1]=h+1;I[J[e+68>>2]+(h<<1)>>1]=d}H[a+32|0]=0}Vl(e);d=J[l+44>>2];break b}if(!K[a+32|0]){d=8;break t}e=J[a+28>>2];d=I[e+58>>1];if(M[e+4>>2]<(d+I[e+22>>1]|0)+1>>>0){d=ie(e,1,0);if(d)break t;d=I[e+58>>1]}}i=J[l+4>>2];g=J[e+60>>2]+(d<<3)|0;J[g>>2]=J[l>>2];J[g+4>>2]=i;H[d+J[e- -64>>2]|0]=1;I[e+58>>1]=L[e+58>>1]+1;d=0}J[l+44>>2]=d;if(!d)continue;break}break b}d=8}Ec(b)}xb=l+48|0;return d}function kT(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,u=0,v=0;l=xb-528|0;xb=l;J[l+520>>2]=k;J[l+524>>2]=b;a:{b:{if(mf(a,l+524|0)){J[f>>2]=J[f>>2]|4;a=0;break b}J[l+76>>2]=3689;b=l+76|0;q=Id(l+104|0,l+112|0,b);k=J[q>>2];J[l+100>>2]=k;J[l+96>>2]=k+400;r=Rc(b);o=Rc(l- -64|0);n=Rc(l+52|0);m=Rc(l+40|0);p=Rc(l+28|0);J[195395]=0;Ca(3692,c|0,d|0,l+92|0,l+91|0,l+90|0,r|0,o|0,n|0,m|0,l+24|0);b=J[195395];J[195395]=0;if((b|0)!=1){J[j>>2]=J[i>>2];s=e&512;e=0;k=0;while(1){c= -k;c:{d:{e:{f:{if((e|0)==4)break f;J[195395]=0;b=ca(3629,a|0,l+524|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;if(b)break f;b=0;g:{h:{i:{j:{k:switch(H[(l+92|0)+e|0]){case 1:if((e|0)==3)break d;J[195395]=0;b=_(3630,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[195395]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b&255)<<2)>>2]&1;else b=0;d=J[195395];J[195395]=0;if((d|0)==1)break a;if(b){J[195395]=0;fa(3694,l+16|0,a|0,0);b=J[195395];J[195395]=0;if((b|0)!=1){b=H[l+16|0];J[195395]=0;$(3557,p|0,b|0);b=J[195395]; -J[195395]=0;if((b|0)!=1)break j}break a}J[f>>2]=J[f>>2]|4;a=0;break e;case 4:break g;case 2:break h;case 3:break i;case 0:break k;default:break c}if((e|0)==3)break d}while(1){J[195395]=0;b=ca(3629,a|0,l+524|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;if(b)break d;J[195395]=0;b=_(3630,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[195395]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b&255)<<2)>>2]&1;else b=0;d=J[195395];J[195395]=0;if((d|0)==1)break a;if(!b)break d;J[195395]=0;fa(3694,l+16|0,a|0,0);b= -J[195395];J[195395]=0;if((b|0)!=1){b=H[l+16|0];J[195395]=0;$(3557,p|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)continue}break}break a}l:{if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b)break l;J[195395]=0;d=_(3630,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;if(K[n+11|0]>>>7|0)b=J[n>>2];else b=n;if(K[b|0]!=(d&255))break l;J[195395]=0;_(3632,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;H[g|0]=0;if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;k=b>>>0>1?n:c;break c}m:{if(K[m+ -11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break m;J[195395]=0;d=_(3630,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;if(K[m+11|0]>>>7|0)b=J[m>>2];else b=m;if(K[b|0]!=(d&255))break m;J[195395]=0;_(3632,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;H[g|0]=1;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;k=b>>>0>1?m:c;break c}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;d=!b;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!(d|!b)){J[f>>2]=J[f>>2]|4;a=0;break e}if(K[n+ -11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b){if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break d}if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;H[g|0]=!b;break d}if(!(s|(c|e>>>0<2))){k=0;if(!((e|0)==2&K[l+95|0]!=0))break c}u=l,v=Xe(o),J[u+12>>2]=v;J[l+16>>2]=J[l+12>>2];n:{if(!e|K[(e+l|0)+91|0]>1)break n;o:{while(1){u=l,v=Gh(o),J[u+12>>2]=v;b=J[l+16>>2];if((b|0)==J[l+12>>2])break o;b=H[b|0];J[195395]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b&255)<<2)>>2]&1;else b=0;d=J[195395];J[195395]= -0;if((d|0)!=1){if(!b)break o;J[l+16>>2]=J[l+16>>2]+1;continue}break}break a}u=l,v=Xe(o),J[u+12>>2]=v;if(K[p+11|0]>>>7|0)k=J[p+4>>2];else k=K[p+11|0]&127;b=l+12|0;d=J[l+16>>2]-J[b>>2]|0;if(k>>>0>=d>>>0){u=l,v=Gh(p),J[u+12>>2]=v;b=Tp(b,0-d|0);d=Gh(p);k=Xe(o);J[195395]=0;b=Jx(b,d,k);d=J[195395];J[195395]=0;if((d|0)==1)break a;if(b)break n}u=l,v=Xe(o),J[u+8>>2]=v;J[l+12>>2]=J[l+8>>2];J[l+16>>2]=J[l+12>>2]}J[l+12>>2]=J[l+16>>2];p:{while(1){u=l,v=Gh(o),J[u+8>>2]=v;if(J[l+12>>2]==J[l+8>>2])break p;J[195395]= -0;b=ca(3629,a|0,l+524|0)|0;d=J[195395];J[195395]=0;q:{if((d|0)==1)break q;if(b)break p;J[195395]=0;b=_(3630,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break q;if(K[J[l+12>>2]]!=(b&255))break p;J[195395]=0;_(3632,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[l+12>>2]=J[l+12>>2]+1;continue}break}break a}if(!s)break d;u=l,v=Gh(o),J[u+8>>2]=v;if(J[l+12>>2]==J[l+8>>2])break d;J[f>>2]=J[f>>2]|4;a=0;break e}r:{while(1){s:{J[195395]=0;d=ca(3629,a|0,l+524|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break s; -if(d)break r;J[195395]=0;k=_(3630,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[195395]=0;if((k|0)>=0)d=(J[J[h+8>>2]+((k&255)<<2)>>2]&64)!=0;else d=0;t=J[195395];J[195395]=0;if((t|0)==1)break a;t:{if(d){d=J[j>>2];if((d|0)==J[l+520>>2]){J[195395]=0;fa(3696,i|0,j|0,l+520|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;d=J[j>>2]}J[j>>2]=d+1;H[d|0]=k;b=b+1|0;break t}if(K[r+11|0]>>>7|0)d=J[r+4>>2];else d=K[r+11|0]&127;if(!d|!b|K[l+90|0]!=(k&255))break r;k=J[l+100>>2];if((k|0)==J[l+96>>2]){J[195395]= -0;fa(3697,q|0,l+100|0,l+96|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b;b=0}J[195395]=0;_(3632,a|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break a}k=J[l+100>>2];if(!(!b|(k|0)==J[q>>2])){if(J[l+96>>2]==(k|0)){J[195395]=0;fa(3697,q|0,l+100|0,l+96|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b}u:{if(J[l+24>>2]<=0)break u;J[195395]=0;b=ca(3629,a|0,l+524|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;v:{if(!b){J[195395]= -0;b=_(3630,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;if(K[l+91|0]==(b&255))break v}J[f>>2]=J[f>>2]|4;a=0;break e}J[195395]=0;_(3632,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;while(1){if(J[l+24>>2]<=0)break u;J[195395]=0;b=ca(3629,a|0,l+524|0)|0;d=J[195395];J[195395]=0;w:{if((d|0)==1)break w;x:{if(!b){J[195395]=0;b=_(3630,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break w;J[195395]=0;if((b|0)>=0)b=(J[J[h+8>>2]+((b&255)<<2)>>2]&64)!=0;else b=0;d=J[195395];J[195395]=0;if((d|0)==1)break w; -if(b)break x}J[f>>2]=J[f>>2]|4;a=0;break e}if(J[j>>2]==J[l+520>>2]){J[195395]=0;fa(3696,i|0,j|0,l+520|0);b=J[195395];J[195395]=0;if((b|0)==1)break w}J[195395]=0;b=_(3630,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break w;d=J[j>>2];J[j>>2]=d+1;H[d|0]=b;J[195395]=0;J[l+24>>2]=J[l+24>>2]-1;_(3632,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)continue}break}break a}k=c;if(J[i>>2]!=J[j>>2])break c;J[f>>2]=J[f>>2]|4;a=0;break e}y:{if(!c)break y;k=1;while(1){if(K[c+11|0]>>>7|0)b=J[c+4>>2];else b=K[c+11|0]& -127;if(b>>>0<=k>>>0)break y;J[195395]=0;b=ca(3629,a|0,l+524|0)|0;d=J[195395];J[195395]=0;z:{if((d|0)==1)break z;A:{if(!b){J[195395]=0;d=_(3630,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break z;if(K[c+11|0]>>>7|0)b=J[c>>2];else b=c;if(K[b+k|0]==(d&255))break A}J[f>>2]=J[f>>2]|4;a=0;break e}J[195395]=0;_(3632,a|0)|0;b=J[195395];J[195395]=0;k=k+1|0;if((b|0)!=1)continue}break}break a}B:{if(J[q>>2]==J[l+100>>2])break B;J[l+16>>2]=0;a=J[q>>2];J[195395]=0;je(r,a,J[l+100>>2],l+16|0);a=J[195395];J[195395]= -0;if((a|0)!=1){if(!J[l+16>>2])break B;J[f>>2]=J[f>>2]|4;a=0;break e}break a}a=1}Yb(p);Yb(m);Yb(n);Yb(o);Yb(r);Ic(q);break b}k=c}e=e+1|0;continue}}break a}xb=l+528|0;return a|0}a=Z()|0;Yb(p);Yb(m);Yb(n);Yb(o);Yb(r);Ic(q);ba(a|0);B()}function x2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;d=xb-96|0;xb=d;a:{b:{c:{d:{e:{if(J[b>>2]==J[b+4>>2])break e;J[d+92>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0;J[195395]=0;f=a+8|0;a=d+84|0;la(1959,f|0,a|0,0,0);c=J[195395];J[195395]=0;f:{g:{h:{i:{j:{if((c|0)==1)break j; -J[195395]=0;fa(1960,f|0,a|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break j;J[195395]=0;ea(1958,f|0);a=J[195395];J[195395]=0;if((a|0)==1)break j;k:{l:{a=J[b>>2];switch((J[b+4>>2]-a>>4)-3|0){case 0:break k;case 1:break l;default:break f}}c=J[a>>2];a=J[a+16>>2];J[195395]=0;da(1863,d+48|0,+(((a|0)<(c|0)?a:c)|0),-1);a=J[195395];J[195395]=0;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((a|0)!=1){a=J[d+56>>2];J[d+56>>2]=0;J[d+80>>2]=a;J[d+60>>2]=120;J[d+64>>2]=0;H[d+71|0]=1;a=J[d+48>>2];c=J[d+52>>2];J[d+ -48>>2]=0;J[d+52>>2]=0;J[d+72>>2]=a;J[d+76>>2]=c;a=J[d+88>>2];B:{if(a>>>0>2]){c=J[d+64>>2];J[a>>2]=J[d+60>>2];J[a+4>>2]=c;J[a+8>>2]=J[d+68>>2];J[a+20>>2]=J[d+80>>2];c=J[d+76>>2];J[a+12>>2]=J[d+72>>2];J[a+16>>2]=c;J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+88>>2]=a+24;break B}J[195395]=0;$(1971,d+84|0,d+60|0);a=J[195395];J[195395]=0;if((a|0)==1)break A;if(H[d+83|0]>=0)break B;Kb(J[d+72>>2])}if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);c=J[b>>2];a=J[c+36>>2];c=J[c+4>>2];J[195395]= -0;da(1863,d+48|0,+(((a|0)<(c|0)?a:c)|0),-1);a=J[195395];J[195395]=0;if((a|0)==1)break z;a=J[d+56>>2];J[d+56>>2]=0;J[d+80>>2]=a;J[d+60>>2]=121;J[d+64>>2]=0;H[d+71|0]=1;a=J[d+48>>2];c=J[d+52>>2];J[d+48>>2]=0;J[d+52>>2]=0;J[d+72>>2]=a;J[d+76>>2]=c;a=J[d+88>>2];C:{if(a>>>0>2]){c=J[d+64>>2];J[a>>2]=J[d+60>>2];J[a+4>>2]=c;J[a+8>>2]=J[d+68>>2];J[a+20>>2]=J[d+80>>2];c=J[d+76>>2];J[a+12>>2]=J[d+72>>2];J[a+16>>2]=c;J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+88>>2]=a+24;break C}J[195395]=0;$(1971,d+ -84|0,d+60|0);a=J[195395];J[195395]=0;if((a|0)==1)break y;if(H[d+83|0]>=0)break C;Kb(J[d+72>>2])}if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);a=J[b>>2];c=J[a>>2];a=J[a+16>>2];J[195395]=0;c=a-c|0;a=c>>31;da(1863,d+48|0,+((a^c)-a|0),-1);a=J[195395];J[195395]=0;if((a|0)==1)break x;J[195395]=0;a=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break w;J[d+60>>2]=a;J[d+64>>2]=5;J[d+68>>2]=-2147483640;J[a+16>>2]=J[99151];c=J[99150];J[a+8>>2]=J[99149];J[a+12>>2]=c;c=J[99148];J[a>>2]=J[99147]; -J[a+4>>2]=c;J[a+20>>2]=0;J[d+80>>2]=J[d+56>>2];J[d+56>>2]=0;c=J[d+52>>2];J[d+72>>2]=J[d+48>>2];J[d+76>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;c=J[d+88>>2];D:{if(c>>>0>2]){J[195395]=0;fa(1808,c|0,a|0,5);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[d+88>>2]=c;break u}a=J[d+76>>2];J[c+12>>2]=J[d+72>>2];J[c+16>>2]=a;J[c+20>>2]=J[d+80>>2];J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+88>>2]=c+24;break D}J[195395]=0;$(1971,d+84|0,d+60|0);a=J[195395];J[195395]=0;if((a|0)==1)break v;if(H[d+83|0]>=0)break D; -Kb(J[d+72>>2])}if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);a=J[b>>2];b=J[a+36>>2];a=J[a+4>>2];J[195395]=0;b=b-a|0;a=b>>31;da(1863,d+48|0,+((a^b)-a|0),-1);a=J[195395];J[195395]=0;if((a|0)==1)break s;J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break r;J[d+60>>2]=a;J[d+64>>2]=6;J[d+68>>2]=-2147483640;b=J[99193];J[a+16>>2]=J[99192];J[a+20>>2]=b;b=J[99191];J[a+8>>2]=J[99190];J[a+12>>2]=b;b=J[99189];J[a>>2]=J[99188];J[a+4>>2]=b;J[a+24>>2]=0;J[d+80>>2]=J[d+56>>2];J[d+56>> -2]=0;b=J[d+52>>2];J[d+72>>2]=J[d+48>>2];J[d+76>>2]=b;J[d+48>>2]=0;J[d+52>>2]=0;b=J[d+88>>2];E:{if(b>>>0>2]){J[195395]=0;fa(1808,b|0,a|0,6);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;J[d+88>>2]=b;break p}a=J[d+76>>2];J[b+12>>2]=J[d+72>>2];J[b+16>>2]=a;J[b+20>>2]=J[d+80>>2];J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+88>>2]=b+24;break E}J[195395]=0;$(1971,d+84|0,d+60|0);a=J[195395];J[195395]=0;if((a|0)==1)break q;if(H[d+83|0]>=0)break E;Kb(J[d+72>>2])}if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+59| -0]<0)Kb(J[d+48>>2]);J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break n;J[d+60>>2]=a;J[d+64>>2]=4;J[d+68>>2]=-2147483640;b=J[100978];J[a+8>>2]=J[100977];J[a+12>>2]=b;b=J[100976];J[a>>2]=J[100975];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,f|0,d+60|0,d+84|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break m;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+71|0]>=0)break f;Kb(J[d+60>>2]);break f}a=Z()|0;break a}a=Z()|0;Vb(d+60|0);if(H[d+59|0]>=0)break a;Kb(J[d+48>> -2]);break a}a=Z()|0;break a}a=Z()|0;Vb(d+60|0);if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}a=Z()|0;break a}a=Z()|0;break t}a=Z()|0}Vb(d+60|0)}if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}a=Z()|0;break a}a=Z()|0;break o}a=Z()|0}Vb(d+60|0)}if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}a=Z()|0;break a}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+71|0]>=0)break a;Kb(J[d+60>>2]);break a}J[195395]=0;a=d+48|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;c=a;e=J[195395];J[195395]=0;F:{G:{H:{I:{if((e|0)!=1){e= -J[b>>2];g=J[e>>2];e=J[e+4>>2];J[195395]=0;ra(1902,a|0,+(g|0),+(e|0))|0;e=J[195395];J[195395]=0;if((e|0)==1)break I;e=J[b>>2];g=J[e+20>>2];e=J[e+16>>2];J[195395]=0;ra(1906,a|0,+(e|0),+(g|0))|0;e=J[195395];J[195395]=0;if((e|0)==1)break I;b=J[b>>2];e=J[b+36>>2];b=J[b+32>>2];J[195395]=0;ra(1906,a|0,+(b|0),+(e|0))|0;b=J[195395];J[195395]=0;if((b|0)==1)break I;J[195395]=0;_(1921,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break I;J[195395]=0;b=d+36|0;ia(1974,b|0,f|0,a|0,0);a=J[195395];J[195395]=0;if((a| -0)==1)break H;a=K[d+47|0];if(!(a<<24>>24<0?J[d+40>>2]:a))break g;J[195395]=0;b=aa(1962,d+60|0,397860,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break G;e=J[d+88>>2];if(e>>>0>2]){if(H[b+11|0]>=0){a=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=a;J[e+8>>2]=J[b+8>>2];break i}a=J[b+4>>2];g=J[b>>2];J[195395]=0;fa(1808,e|0,g|0,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break i;a=Z()|0;J[d+88>>2]=e;Vb(b);break b}J[195395]=0;$(1971,d+84|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break F;if(H[b+23|0]>=0)break h; -Kb(J[b+12>>2]);break h}a=Z()|0;break a}a=Z()|0;qd(c);break a}a=Z()|0;qd(c);break a}a=Z()|0;break b}a=Z()|0;Vb(b);break b}a=Z()|0;break a}a=J[b+16>>2];J[e+12>>2]=J[b+12>>2];J[e+16>>2]=a;J[e+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[d+88>>2]=e+24}if(H[b+11|0]>=0)break g;Kb(J[b>>2])}J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break d;J[d+24>>2]=a;J[d+28>>2]=4;J[d+32>>2]=-2147483640;b=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=b;b=J[99523];J[a>>2]=J[99522];J[a+4>>2]=b; -J[a+16>>2]=0;J[195395]=0;J[d+12>>2]=0;H[d+23|0]=0;ia(1961,f|0,d+24|0,d+84|0,d+12|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);qd(c)}c=J[d+84>>2];if(!c)break e;a=c;b=J[d+88>>2];if((a|0)!=(b|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);a=b-24|0;if(H[b-13|0]<0)Kb(J[a>>2]);b=a;if((a|0)!=(c|0))continue;break}a=J[d+84>>2]}J[d+88>>2]=c;Kb(a)}xb=d+96|0;return}a=Z()|0;break b}a=Z()|0;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+ -35|0]>=0)break b;Kb(J[d+24>>2])}if(H[d+47|0]<0)Kb(J[d+36>>2]);qd(c)}Hc(d+84|0);ba(a|0);B()}function kba(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;k=xb-256|0;xb=k;f=J[a+608>>2];d=J[a+604>>2];x=1;o=J[a+584>>2];v=J[o+72>>2];g=J[o+68>>2];l=J[o+64>>2];a:{b:{c:{d:{if((c|0)<=0)b=d;else{t=d+f|0;u=J[o+60>>2];r=J[o+88>>2];p=J[o+12>>2];y=(p|0)<=0;while(1){e:{if(y){j=0;i=r;break e}e=J[o+84>>2];f=e+4|0;m=J[e>>2];n=0;i=r;j=0;q=0;f:{g:{h:{i:{j:{k:{l:{m:{while(1){e= -g;n:{if((g|0)>6)break n;if(d>>>0>=t>>>0){e=7;if(g)break n;break c}l=K[K[d|0]+u|0]<>>h|0;g=e-h|0;o:{p:{q:{r:{s:{t:switch(K[s|0]-1|0){case 0:u:{if((i|0)==(r|0)){h=f;break u}h=f;if((j|0)<(m|0))break u;while(1){e=J[f>>2];s=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+s|0;if((m|0)<=(j|0))continue;break}}j=J[h>>2]+m|0;q=j+(n+q|0)|0;f=h+8|0;m=J[h+4>>2]+j|0;break o;case 1:if(!(i-r&4))break q;while(1){v:{if((g|0)>12){e=g;break v}if(d>>>0>=t>>>0){e=13;if(g)break v; -break c}n=g+8|0;h=d+1|0;l=K[K[d|0]+u|0]<4){e=n;d=h;break v}e=13;if(h>>>0>=t>>>0){d=h;break v}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=K[h|0];if(e-10>>>0>=2){if((e|0)!=8)break h;h=J[h+4>>2];J[i>>2]=h+q;e=i+4|0;j=h+j|0;q=0;while(1){w:{if((g|0)>11){h=g;break w}if(d>>>0>=t>>>0){h=12;if(g)break w;i=e;break c}s=g+8|0;n=d+1|0;l=K[K[d|0]+u|0]<3){h=s;d=n;break w}h=12;if(n>>>0>=t>>>0){d=n;break w}h=g+16|0;l=K[K[d+1|0]+u|0]<< -s|l;d=d+2|0}n=((l&4095)<<3)+290144|0;g=K[n+1|0];l=l>>>g|0;g=h-g|0;x:switch(K[n|0]-7|0){case 2:case 4:h=J[n+4>>2];q=h+q|0;j=h+j|0;continue;case 0:break x;default:break m}break}h=e;e=J[n+4>>2];J[h>>2]=e+q;j=e+j|0;break p}else{e=J[h+4>>2];q=e+q|0;j=e+j|0;continue}}case 5:J[i>>2]=p-j;f=J[a+12>>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+208>>2]=j;J[k+204>>2]=e;J[k+200>>2]=f?280678:280699;J[k+196>>2]=n;J[k+192>>2]=m;Ob(h,287882,281456,k+192|0);i=i+4|0;break g;case 11:J[i>>2]= -p-j;i=i+4|0;y:{if((g|0)>3){f=g;break y}if(d>>>0>=t>>>0){f=4;if(!g)break c;break y}f=g+8|0;l=K[K[d|0]+u|0]<>2]&1024;h=J[(e?504:480)+a>>2];g=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+240>>2]=j;J[k+236>>2]=h;J[k+232>>2]=e?280678:280699;J[k+228>>2]=n;J[k+224>>2]=m;Ob(g,287882,280595,k+224|0)}l=l>>>4|0;g=f-4|0;v=1;break g;case 4:z:{if((i|0)==(r|0)){h=f;break z}h=f;if((j|0)<(m|0))break z;while(1){e=J[f>>2];w=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+w|0;if((m|0)<=(j|0))continue;break}}f= -(m+n|0)-J[s+4>>2]|0;J[i>>2]=f+q;j=f+j|0;f=h-4|0;m=m-J[f>>2]|0;i=i+4|0;break s;case 2:break r;case 3:break t;default:break j}A:{if((i|0)==(r|0)){h=f;break A}h=f;if((j|0)<(m|0))break A;while(1){e=J[f>>2];w=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+w|0;if((m|0)<=(j|0))continue;break}}e=J[s+4>>2];J[i>>2]=e+((n+q|0)+m|0);f=h+4|0;j=e+m|0;m=J[h>>2]+m|0;i=i+4|0}q=0;break o}B:{if((i|0)==(r|0)){e=m;h=f;break B}h=f;e=m;if((e|0)>(j|0))break B;while(1){m=J[f>>2];s=J[f+4>>2];h=f+8|0;f=h;e=(e+m|0)+s|0;if((e|0)<=(j|0))continue; -break}}J[i>>2]=(n+q|0)+e;f=h+4|0;i=i+4|0;m=J[h>>2]+e|0;q=0;j=e;break o}while(1){C:{if((g|0)>11){e=g;break C}if(d>>>0>=t>>>0){e=12;if(!g)break c;break C}n=g+8|0;h=d+1|0;l=K[K[d|0]+u|0]<3){e=n;d=h;break C}e=12;if(h>>>0>=t>>>0){d=h;break C}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=i;D:switch(K[h|0]-7|0){case 2:case 4:e=J[h+4>>2];q=e+q|0;j=e+j|0;continue;case 0:break D;default:break m}break}e=J[h+4>>2];J[i>>2]=e+q;h=i+4|0;j=e+j|0;q=0; -while(1){E:{if((g|0)>12){e=g;break E}if(d>>>0>=t>>>0){e=13;if(g)break E;i=h;break c}s=g+8|0;n=d+1|0;l=K[K[d|0]+u|0]<4){e=s;d=n;break E}e=13;if(n>>>0>=t>>>0){d=n;break E}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=K[n|0];if(e-10>>>0>=2){if((e|0)!=8){i=h;break h}e=J[n+4>>2];J[h>>2]=e+q;j=e+j|0}else{e=J[n+4>>2];q=e+q|0;j=e+j|0;continue}break}}q=0;i=i+8|0;if((r|0)==(i|0)){i=r;break o}if((j|0)<(m|0)|(m|0)>=(p|0))break o;while(1){e=f+8|0; -m=J[f+4>>2]+(J[f>>2]+m|0)|0;if((m|0)>(j|0)){f=e;break o}f=e;if((m|0)<(p|0))continue;break}}n=0-j|0;if((j|0)<(p|0))continue;break}if(!q)break e;if((j+q|0)>=(p|0))break f;if((g|0)<=0)break l;f=g;break k}f=J[a+12>>2]&1024;h=J[(f?504:480)+a>>2];i=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+144>>2]=j;J[k+140>>2]=h;J[k+136>>2]=f?280678:280699;J[k+132>>2]=n;J[k+128>>2]=m;Ob(i,287882,280595,k+128|0);i=e;break g}if(d>>>0>=t>>>0){f=1;if(!g)break c;break k}f=g+8|0;l=K[K[d|0]+u|0]<>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+48>>2]=j;J[k+44>>2]=e;J[k+40>>2]=f?280678:280699;J[k+36>>2]=n;J[k+32>>2]=m;Ob(h,287882,280595,k+32|0);break g}l=l>>>1|0;g=f-1|0;break f}f=J[a+12>>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+176>>2]=j;J[k+172>>2]=e;J[k+168>>2]=f?280678:280699;J[k+164>>2]=n;J[k+160>>2]=m;Ob(h,287882,280595,k+160|0)}if(!q)break e}J[i>>2]=q;i=i+4|0}F:{if((j|0)==(p|0))break F;f=J[a+12>>2]&1024;e=J[(f?504:480)+a>> -2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+24>>2]=p;J[k+20>>2]=j;J[k+16>>2]=e;J[k+12>>2]=f?280678:280699;J[k+8>>2]=n;J[k+4>>2]=j>>>0

>>0?281186:281260;J[k>>2]=m;yc(h,287882,280892,k);f=(j|0)>(p|0);G:{if((j|0)<=(p|0)|i>>>0<=r>>>0)break G;while(1){i=i-4|0;j=j-J[i>>2]|0;f=(p|0)<(j|0);if((j|0)<=(p|0))break G;if(i>>>0>r>>>0)continue;break}}if((j|0)<(p|0)){if(i-r&4){J[i>>2]=0;i=i+4|0}J[i>>2]=p-((j|0)>0?j:0);i=i+4|0;break F}if(!f)break F;J[i+4>>2]=0;J[i>>2]=p;i=i+8|0}if(v)break d;Ab[J[o+76>>2]](b,r, -i,p);v=0;J[i>>2]=0;f=J[o+88>>2];r=J[o+84>>2];J[o+88>>2]=r;J[o+84>>2]=f;J[o+108>>2]=J[o+108>>2]+1;f=J[o+8>>2];b=f+b|0;c=c-f|0;if((c|0)>0)continue;break}f=J[a+608>>2];b=J[a+604>>2]}J[o+72>>2]=v;J[o+64>>2]=l;J[o+68>>2]=g;J[a+604>>2]=d;J[a+608>>2]=(b-d|0)+f;break a}if((g|0)>12)break b;if(d>>>0>=t>>>0){g=g?13:0;break b}f=g+8|0;c=d+1|0;l=K[K[d|0]+u|0]<4){g=f;d=c;break b}if(c>>>0>=t>>>0){g=13;d=c;break b}g=g+16|0;l=K[K[d+1|0]+u|0]<>2]&1024;f=J[(c?504:480)+a>>2]; -e=J[a+628>>2];h=J[a>>2];g=J[o+108>>2];J[k+112>>2]=j;J[k+108>>2]=f;J[k+104>>2]=c?280678:280699;J[k+100>>2]=g;J[k+96>>2]=h;yc(e,287882,280816,k+96|0);if(q){J[i>>2]=q;i=i+4|0}g=0;if((j|0)==(p|0))break b;c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];h=J[a>>2];m=J[o+108>>2];J[k+88>>2]=p;J[k+84>>2]=j;J[k+80>>2]=f;J[k+76>>2]=c?280678:280699;J[k+72>>2]=m;J[k+68>>2]=j>>>0

>>0?281186:281260;J[k+64>>2]=h;yc(e,287882,280892,k- -64|0);f=(j|0)>(p|0);H:{if((j|0)<=(p|0)|i>>>0<=r>>>0)break H;while(1){i= -i-4|0;j=j-J[i>>2]|0;f=(p|0)<(j|0);if((j|0)<=(p|0))break H;if(i>>>0>r>>>0)continue;break}}if((j|0)<(p|0)){if(i-r&4){J[i>>2]=0;i=i+4|0}J[i>>2]=p-((j|0)>0?j:0);i=i+4|0;break b}if(!f)break b;J[i+4>>2]=0;J[i>>2]=p;i=i+8|0}Ab[J[o+76>>2]](b,r,i,p);J[o+72>>2]=v;J[o+64>>2]=l>>>13;J[o+68>>2]=g-13;b=J[a+604>>2];J[a+604>>2]=d;J[a+608>>2]=J[a+608>>2]+(b-d|0);x=J[o+108>>2]?1:-1}xb=k+256|0;return x|0}function dI(a){a=a|0;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; -e=J[a-68>>2];b=vc(1,136);if(b)a:{c=xb-8288|0;xb=c;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+48>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b- -64>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+92>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;n=b+108|0;a=n;J[a>>2]=0;J[a+4>>2]=0;J[b+116>>2]=0;J[b+120>>2]=0;J[b+124>>2]=0;J[b+128>>2]=0; -J[b+132>>2]=0;b:{c:{if(!e)break c;t=b+120|0;d=b+52|0;a=d;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a=n;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[195395]=0;a=_(584,e|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break b;H[b+44|0]=1;J[b+40>>2]=a;J[195395]=0;a=ca(585,e|0,1128678962)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;J[195395]=0;a=ca(760,b|0,a|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;J[b+48>>2]=a; -J[195395]=0;d:{if(!a)break d;e=J[a>>2];if(!e)break d;J[a>>2]=e+1}e=J[195395];J[195395]=0;if((e|0)==1)break b;H[b+28|0]=0;J[b+36>>2]=a;g=J[a+12>>2];J[b+4>>2]=g;a=J[a+16>>2];J[b+12>>2]=a;f=a+g|0;J[b+8>>2]=f;J[b+32>>2]=0;if(a>>>0>67108863)e=1073741823;else{e=a<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}J[b+16>>2]=e;J[b+24>>2]=0;J[b>>2]=0;e:{f:{h=J[b+48>>2];if(M[h+16>>2]<5)break f;j=J[h+12>>2];if((j|0)==169776)break f;h=K[j+2|0]+j|0;if(a>>>0>>0)break f;a=K[j+3|0]|K[j+4|0]<<8;i=(a<< -8|a>>>8)&65535;if(i>>>0>f-h>>>0)break f;a=e-i|0;J[b+16>>2]=a;if((a|0)<=0)break f;H[c+24|0]=0;Nb(c+28|0,0,4108);J[c+16>>2]=0;J[c+12>>2]=i;J[c+8>>2]=h;a=d;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a=0;g:{while(1){e=a+1|0;if(e>>>0>i>>>0)break g;g=J[c+8>>2];f=K[g+a|0];J[c+16>>2]=e;h:{if((f|0)!=12)break h;a=a+2|0;if(a>>>0>i>>>0){f=65535;break h}e=K[e+g|0];J[c+16>>2]=a;f=e|256}J[195395]=0;fa(761,f|0,c+8|0,d|0);a=J[195395];J[195395]=0;if((a|0)!=1){a= -J[c+16>>2];i=J[c+12>>2];if(a>>>0>i>>>0)break f;if(!K[c+24|0])continue;break f}break}break b}e=K[j+2|0];d=K[j+3|0]|K[j+4|0]<<8;a=J[b+76>>2];a=a?a+j|0:169776;J[b+88>>2]=a;g=J[b+68>>2];f=g?g+j|0:169776;J[b+92>>2]=f;g=J[b+72>>2];J[b+96>>2]=g?g+j|0:169776;g=J[b+80>>2];J[b+100>>2]=g?g+j|0:169776;J[b+84>>2]=(e+j|0)+((d<<8|d>>>8)&65535);if((a|0)!=169776){g=J[b+12>>2];e=J[b+4>>2];if(g>>>0>>0)break f;h=J[b+8>>2];if(h-a>>>0<10)break f;d=a+2|0;if(g>>>0>>0)break f;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)& -65535;if(a>>>0>h-d>>>0)break f;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break f;J[195395]=0;a=yi(d,b);d=J[195395];J[195395]=0;if((d|0)==1)break e;if(!a)break f;f=J[b+92>>2]}if((f|0)==169776)break f;J[195395]=0;a=Zl(f,b);d=J[195395];J[195395]=0;if((d|0)==1)break e;if(!a)break f;a=J[b+84>>2];if((a|0)==169776)break f;J[195395]=0;a=Zl(a,b);d=J[195395];J[195395]=0;if((d|0)==1)break e;if(!a)break f;a=J[b+96>>2];if((a|0)==169776)break f;J[195395]=0;a=Zl(a,b);d=J[195395];J[195395]=0;if((d|0)==1)break e; -if(!a)break f;d=J[b+100>>2];if((d|0)!=169776){a=J[b+96>>2];a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);J[195395]=0;a=UH(d,b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24));d=J[195395];J[195395]=0;if((d|0)==1)break e;if(!a)break f}a=J[b+92>>2];a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);J[b+132>>2]=a;if((a|0)!=J[b+40>>2])break f;a=J[b+96>>2];a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);J[b+104>>2]=a;J[195395]= -0;a=ha(765,t|0,a|0,1,0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break e;if(!a)break f;if(!J[b+104>>2])break c;v=c+28|0;w=c+4164|0;while(1){a=J[b+96>>2];J[195395]=0;qi(c+8272|0,a,k);a=J[195395];J[195395]=0;i:{j:{if((a|0)!=1){a=J[c+8272>>2];if(M[b+12>>2]>2]>>>0)break f;d=J[b+8>>2]-a|0;a=J[c+8276>>2];if(d>>>0>>0)break f;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break f;H[c+4160|0]=0;Nb(w,0,4108);J[c+4152>>2]=0;a=J[c+8276>>2];J[c+4144>>2]=J[c+8272>>2];J[c+4148>>2]=a;a=J[b+112>>2];J[195395]= -0;a=ha(767,n|0,a+1|0,1,0)|0;d=J[195395];J[195395]=0;k:{if((d|0)!=1){if(a)break k;J[194126]=J[42450];a=J[42449];J[194124]=J[42448];J[194125]=a;a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;break f}break b}a=J[b+116>>2];d=J[b+112>>2];o=J[42450];J[194126]=o;g=J[42449];p=g;e=J[42448];J[194124]=e;J[194125]=g;h=J[42447];q=h;g=J[42446];J[194122]=g;J[194123]=h;f=J[42445];r=f;h=J[42444];J[194120]=h;J[194121]=f;d=(P(d,28)+a|0)-28|0;if((d|0)==776480)break f;a=d;J[a>>2]= -0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;i=J[c+4148>>2];a=J[c+4152>>2];while(1){l=a+1|0;if(l>>>0<=i>>>0){m=J[c+4144>>2];f=K[m+a|0];J[c+4152>>2]=l;l:{if((f|0)!=12)break l;a=a+2|0;if(a>>>0>i>>>0){f=65535;break l}f=K[l+m|0];J[c+4152>>2]=a;f=f|256}J[195395]=0;fa(768,f|0,c+4144|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;a=J[c+4152>>2];i=J[c+4148>>2];if(a>>>0>i>>>0)break f;if(!K[c+4160|0])continue;break f}break}a=J[d+16>>2];l=a?a+j|0:169776;if(M[b+12>>2]>2]>>>0)break f;m=J[d+20>>2];if(m>>>0>J[b+8>>2]-l>>>0)break f;a=J[b+16>>2]-m|0;J[b+16>>2]=a;if((a|0)<=0)break f;H[c+24|0]=0;Nb(v,0,4108);H[c+4140|0]=0;J[c+4136>>2]=0;J[c+16>>2]=0;J[c+12>>2]=m;J[c+8>>2]=l;m:{if(M[b+124>>2]<=k>>>0){J[194126]=o;J[194124]=e;J[194125]=p;J[194122]=g;J[194123]=q;J[194120]=h;J[194121]=r;a=776480;break m}a=J[b+128>>2]+P(k,28)|0}J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+20>>2]=169776;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;n:{if(M[b+124>>2]<=k>>>0){J[194126]=o;J[194124]=e;J[194125]= -p;J[194122]=g;J[194123]=q;J[194120]=h;J[194121]=r;a=776480;break n}a=J[b+128>>2]+P(k,28)|0}d=a;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+20>>2]=169776;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;i=J[c+12>>2];a=J[c+16>>2];o:{while(1){s=a+1|0;if(s>>>0>i>>>0)break o;u=J[c+8>>2];f=K[u+a|0];J[c+16>>2]=s;p:{if((f|0)!=12)break p;a=a+2|0;if(a>>>0>i>>>0){f=65535;break p}f=K[s+u|0];J[c+16>>2]=a;f=f|256}J[195395]=0;fa(769,f|0,c+8|0,d|0);a=J[195395];J[195395]=0;if((a|0)!=1){a=J[c+16>>2];i=J[c+12>>2];if(K[c+24|0]|a>>> -0>i>>>0)break f;continue}break}break b}if(M[b+124>>2]>k>>>0){a=J[b+128>>2]+P(k,28)|0;d=J[a+16>>2];d=d?d+(m?l:169776)|0:169776;J[a+20>>2]=d;if((d|0)==169776)break i;break j}J[194124]=e;J[194125]=p;J[194126]=o;J[194122]=g;J[194123]=q;J[194120]=h;J[194121]=r;a=776480;if(J[194125]!=169776)break j;break i}break b}a=J[a+20>>2];J[195395]=0;a=Zl(a,b);d=J[195395];J[195395]=0;if((d|0)==1)break b;if(!a)break f}k=k+1|0;if(k>>>0>2])continue;break}break c}J[195395]=0;ea(705,b|0);a=J[195395];J[195395]= -0;if((a|0)!=1)break c}break b}xb=c+8288|0;break a}a=Z()|0;SH(t);SH(n);if(J[b+56>>2]){J[b+60>>2]=0;Kb(J[b+64>>2])}J[b+64>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;ed(b);ba(a|0);B()}return b|0}function efa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-32|0;xb=e;k=J[a+404>>2];a:{if(!J[a+212>>2]){if(J[a+288>>2]<=0)break a;while(1){c=J[((b<<2)+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2]))Kg(a,J[c+20>>2],0);if(J[a+364>>2])Kg(a,J[c+24>>2],1);b=b+1|0;if((b|0)>2])continue;break}break a}J[e+16>>2]= -0;J[e+20>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;c=J[a+288>>2];b:{if((c|0)<=0)break b;b=J[a+364>>2];if(!J[a+360>>2]){if(!J[a+368>>2]){if(b){b=0;if((c|0)!=1){f=c&-2;g=a+292|0;while(1){j=e+16|0;h=b<<2;i=J[h+g>>2];H[j+J[i+20>>2]|0]=1;H[J[i+24>>2]+e|0]=1;h=J[g+(h|4)>>2];H[j+J[h+20>>2]|0]=1;H[J[h+24>>2]+e|0]=1;b=b+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}if(!(c&1))break b;b=J[((b<<2)+a|0)+292>>2];H[J[b+20>>2]+(e+16|0)|0]=1;H[J[b+24>>2]+e|0]=1;break b}b=0;if(c>>> -0>=4){j=c&-4;f=a+292|0;while(1){i=e+16|0;h=b<<2;H[i+J[J[h+f>>2]+20>>2]|0]=1;H[i+J[J[f+(h|4)>>2]+20>>2]|0]=1;H[i+J[J[f+(h|8)>>2]+20>>2]|0]=1;H[i+J[J[f+(h|12)>>2]+20>>2]|0]=1;b=b+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}c=c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>>2]+20>>2]+(e+16|0)|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}break b}if(!b)break b;b=0;if(c>>>0>=4){i=c&-4;f=a+292|0;while(1){h=b<<2;H[J[J[h+f>>2]+24>>2]+e|0]=1;H[J[J[f+(h|4)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|8)>>2]+24>>2]+ -e|0]=1;H[J[J[f+(h|12)>>2]+24>>2]+e|0]=1;b=b+4|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}c=c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>>2]+24>>2]+e|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}break b}if(!b)break b;b=0;if(c>>>0>=4){i=c&-4;f=a+292|0;while(1){h=b<<2;H[J[J[h+f>>2]+24>>2]+e|0]=1;H[J[J[f+(h|4)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|8)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|12)>>2]+24>>2]+e|0]=1;b=b+4|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}c=c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>> -2]+24>>2]+e|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}d=H[e+15|0]+(H[e+31|0]+(H[e+14|0]+(H[e+30|0]+(H[e+13|0]+(H[e+29|0]+(H[e+12|0]+(H[e+28|0]+(H[e+11|0]+(H[e+27|0]+(H[e+10|0]+(H[e+26|0]+(H[e+9|0]+(H[e+25|0]+(H[e+8|0]+(H[e+24|0]+(H[e+7|0]+(H[e+23|0]+(H[e+6|0]+(H[e+22|0]+(H[e+5|0]+(H[e+21|0]+(H[e+4|0]+(H[e+20|0]+(H[e+3|0]+(H[e+19|0]+(H[e+2|0]+(H[e+18|0]+(H[e+1|0]+(H[e+17|0]+(H[e|0]+H[e+16|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;if(!d)break a; -b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(Ab[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=204;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(Ab[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=(d<<1)+2|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(Ab[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+ -24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(Ab[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=0;while(1){g:{if(!K[(e+16|0)+b|0])break g;c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h:{if(d)break h;if(Ab[J[c+12>>2]](a)|0)break h;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=a+b|0;g=K[c+152|0];f=K[c+168|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g+(f<<4);d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(d)break g;if(Ab[J[c+12>>2]](a)| -0)break g;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}i:{if(!K[b+e|0])break i;c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b+16;d=J[c+4>>2]-1|0;J[c+4>>2]=d;j:{if(d)break j;if(Ab[J[c+12>>2]](a)|0)break j;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}g=K[(a+b|0)+184|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(d)break i;if(Ab[J[c+12>>2]](a)|0)break i;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}b=b+1|0;if((b|0)!=16)continue;break}}if(J[a+236>>2]!=J[k+28>>2]){b=J[a+24>>2];c=J[b>>2];J[b>> -2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(Ab[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=221;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(Ab[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;m:{if(c)break m;if(Ab[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=4;c=J[b+4>> -2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(Ab[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}c=J[a+236>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;o:{if(d)break o;if(Ab[J[b+12>>2]](a)|0)break o;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;p:{if(c)break p;if(Ab[J[b+12>>2]](a)|0)break p;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}J[k+28>>2]=J[a+236>>2]}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c| -0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;q:{if(c)break q;if(Ab[J[b+12>>2]](a)|0)break q;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=218;c=J[b+4>>2]-1|0;J[b+4>>2]=c;r:{if(c)break r;if(Ab[J[b+12>>2]](a)|0)break r;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=J[a+288>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=(d<<1)+6|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;s:{if(c)break s;if(Ab[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]= -c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(Ab[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=J[a+288>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;u:{if(c)break u;if(Ab[J[b+12>>2]](a)|0)break u;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(J[a+288>>2]>0){g=0;while(1){c=J[((g<<2)+a|0)+292>>2];f=J[c>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=f;d=J[b+4>>2]-1|0;J[b+4>>2]=d;v:{if(d)break v;if(Ab[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>> -2]=25;Ab[J[b>>2]](a)}d=0;b=0;w:{if(J[a+360>>2])break w;b=0;if(J[a+368>>2])break w;b=J[c+20>>2]}d=J[a+364>>2]?J[c+24>>2]:d;c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=(b<<4)+d;b=J[c+4>>2]-1|0;J[c+4>>2]=b;x:{if(b)break x;if(Ab[J[c+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}g=g+1|0;if((g|0)>2])continue;break}}d=J[a+360>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;y:{if(c)break y;if(Ab[J[b+12>>2]](a)|0)break y;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d= -J[a+364>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(Ab[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=J[a+372>>2];g=J[a+368>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d+(g<<4);c=J[b+4>>2]-1|0;J[b+4>>2]=c;A:{if(c)break A;if(Ab[J[b+12>>2]](a)|0)break A;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}xb=e+32|0}function cT(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,u=0,v=0;l=xb-528|0;xb=l;J[l+520>>2]=k;J[l+524>>2]=b;a:{b:{if(Gf(a,l+524|0)){J[f>>2]=J[f>>2]|4;a=0;break b}J[l+72>>2]=3689;k=l+72|0;q=Id(l+104|0,l+112|0,k);b=J[q>>2];J[l+100>>2]=b;J[l+96>>2]=b+400;r=Rc(k);o=Rc(l+60|0);n=Rc(l+48|0);m=Rc(l+36|0);p=Rc(l+24|0);J[195395]=0;Ca(3702,c|0,d|0,l+92|0,l+88|0,l+84|0,r|0,o|0,n|0,m|0,l+20|0);b=J[195395];J[195395]=0;if((b|0)!=1){J[j>>2]=J[i>>2];t=e&512;e=0;k=0;while(1){c=k;c:{d:{e:{f:{if((e|0)==4)break f;J[195395]=0;d=ca(3657,a|0,l+524|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break a;if(d)break f;b=0;g:{h:{i:{j:{k:switch(H[(l+92|0)+e|0]){case 1:if((e|0)==3)break d;J[195395]=0;d=_(3658,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[195395]=0;d=aa(3703,h|0,1,d|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;if(d){J[195395]=0;fa(3704,l+12|0,a|0,0);b=J[195395];J[195395]=0;if((b|0)!=1){b=J[l+12>>2];J[195395]=0;$(1811,p|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)break j}break a}J[f>>2]=J[f>>2]|4;a=0;break e;case 4:break g;case 2:break h;case 3:break i; -case 0:break k;default:break c}if((e|0)==3)break d}while(1){J[195395]=0;d=ca(3657,a|0,l+524|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;if(d)break d;J[195395]=0;d=_(3658,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[195395]=0;d=aa(3703,h|0,1,d|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;if(!d)break d;J[195395]=0;fa(3704,l+12|0,a|0,0);b=J[195395];J[195395]=0;if((b|0)!=1){b=J[l+12>>2];J[195395]=0;$(1811,p|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)continue}break}break a}l:{if(K[n+11| -0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b)break l;J[195395]=0;b=_(3658,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;if(K[n+11|0]>>>7|0)d=J[n>>2];else d=n;if(J[d>>2]!=(b|0))break l;J[195395]=0;_(3660,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;H[g|0]=0;if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;k=b>>>0>1?n:c;break c}m:{if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break m;J[195395]=0;b=_(3658,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;if(K[m+11|0]>>> -7|0)d=J[m>>2];else d=m;if(J[d>>2]!=(b|0))break m;J[195395]=0;_(3660,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;H[g|0]=1;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;k=b>>>0>1?m:c;break c}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;d=!b;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!(d|!b)){J[f>>2]=J[f>>2]|4;a=0;break e}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b){if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break d}if(K[m+11|0]>>>7|0)b=J[m+ -4>>2];else b=K[m+11|0]&127;H[g|0]=!b;break d}if(!(t|(c|e>>>0<2))){k=0;if(!((e|0)==2&K[l+95|0]!=0))break c}u=l,v=Xe(o),J[u+8>>2]=v;J[l+12>>2]=J[l+8>>2];n:{if(!e|K[(e+l|0)+91|0]>1)break n;o:{while(1){u=l,v=Eh(o),J[u+8>>2]=v;b=J[l+12>>2];if((b|0)==J[l+8>>2])break o;b=J[b>>2];J[195395]=0;d=aa(3703,h|0,1,b|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){if(!d)break o;J[l+12>>2]=J[l+12>>2]+4;continue}break}break a}u=l,v=Xe(o),J[u+8>>2]=v;if(K[p+11|0]>>>7|0)k=J[p+4>>2];else k=K[p+11|0]&127;d=l+8|0;b=J[l+12>>2]- -J[d>>2]>>2;if(k>>>0>=b>>>0){u=l,v=Eh(p),J[u+8>>2]=v;k=Fm(d,0-b|0);d=Eh(p);b=Xe(o);J[195395]=0;d=Ex(k,d,b);b=J[195395];J[195395]=0;if((b|0)==1)break a;if(d)break n}u=l,v=Xe(o),J[u+4>>2]=v;J[l+8>>2]=J[l+4>>2];J[l+12>>2]=J[l+8>>2]}J[l+8>>2]=J[l+12>>2];p:{while(1){u=l,v=Eh(o),J[u+4>>2]=v;if(J[l+8>>2]==J[l+4>>2])break p;J[195395]=0;d=ca(3657,a|0,l+524|0)|0;b=J[195395];J[195395]=0;q:{if((b|0)==1)break q;if(d)break p;J[195395]=0;d=_(3658,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break q;if(J[J[l+8>>2]>> -2]!=(d|0))break p;J[195395]=0;_(3660,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[l+8>>2]=J[l+8>>2]+4;continue}break}break a}if(!t)break d;u=l,v=Eh(o),J[u+4>>2]=v;if(J[l+8>>2]==J[l+4>>2])break d;J[f>>2]=J[f>>2]|4;a=0;break e}r:{while(1){s:{J[195395]=0;k=ca(3657,a|0,l+524|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break s;if(k)break r;J[195395]=0;s=_(3658,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[195395]=0;k=aa(3703,h|0,64,s|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;t:{if(k){d= -J[j>>2];if((d|0)==J[l+520>>2]){J[195395]=0;fa(3706,i|0,j|0,l+520|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;d=J[j>>2]}J[j>>2]=d+4;J[d>>2]=s;b=b+1|0;break t}if(K[r+11|0]>>>7|0)d=J[r+4>>2];else d=K[r+11|0]&127;if(!d|!b|(s|0)!=J[l+84>>2])break r;k=J[l+100>>2];if((k|0)==J[l+96>>2]){J[195395]=0;fa(3697,q|0,l+100|0,l+96|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b;b=0}J[195395]=0;_(3660,a|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break a}k=J[l+ -100>>2];if(!(!b|(k|0)==J[q>>2])){if(J[l+96>>2]==(k|0)){J[195395]=0;fa(3697,q|0,l+100|0,l+96|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b}u:{if(J[l+20>>2]<=0)break u;J[195395]=0;d=ca(3657,a|0,l+524|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;v:{if(!d){J[195395]=0;d=_(3658,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;if(J[l+88>>2]==(d|0))break v}J[f>>2]=J[f>>2]|4;a=0;break e}J[195395]=0;_(3660,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;while(1){if(J[l+ -20>>2]<=0)break u;J[195395]=0;d=ca(3657,a|0,l+524|0)|0;b=J[195395];J[195395]=0;w:{if((b|0)==1)break w;x:{if(!d){J[195395]=0;d=_(3658,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w;J[195395]=0;d=aa(3703,h|0,64,d|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w;if(d)break x}J[f>>2]=J[f>>2]|4;a=0;break e}if(J[j>>2]==J[l+520>>2]){J[195395]=0;fa(3706,i|0,j|0,l+520|0);b=J[195395];J[195395]=0;if((b|0)==1)break w}J[195395]=0;d=_(3658,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break w;b=J[j>>2];J[j>>2]= -b+4;J[b>>2]=d;J[195395]=0;J[l+20>>2]=J[l+20>>2]-1;_(3660,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)continue}break}break a}k=c;if(J[i>>2]!=J[j>>2])break c;J[f>>2]=J[f>>2]|4;a=0;break e}y:{if(!c)break y;k=1;while(1){if(K[c+11|0]>>>7|0)b=J[c+4>>2];else b=K[c+11|0]&127;if(b>>>0<=k>>>0)break y;J[195395]=0;d=ca(3657,a|0,l+524|0)|0;b=J[195395];J[195395]=0;z:{if((b|0)==1)break z;A:{if(!d){J[195395]=0;b=_(3658,a|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break z;if(K[c+11|0]>>>7|0)d=J[c>>2];else d=c;if(J[d+ -(k<<2)>>2]==(b|0))break A}J[f>>2]=J[f>>2]|4;a=0;break e}J[195395]=0;_(3660,a|0)|0;b=J[195395];J[195395]=0;k=k+1|0;if((b|0)!=1)continue}break}break a}B:{if(J[q>>2]==J[l+100>>2])break B;J[l+12>>2]=0;a=J[q>>2];J[195395]=0;je(r,a,J[l+100>>2],l+12|0);a=J[195395];J[195395]=0;if((a|0)!=1){if(!J[l+12>>2])break B;J[f>>2]=J[f>>2]|4;a=0;break e}break a}a=1}Yc(p);Yc(m);Yc(n);Yc(o);Yb(r);Ic(q);break b}k=c}e=e+1|0;continue}}break a}xb=l+528|0;return a|0}a=Z()|0;Yc(p);Yc(m);Yc(n);Yc(o);Yb(r);Ic(q);ba(a|0);B()}function bba(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;m=xb-16|0;xb=m;h=J[a+584>>2];if(!K[h+206|0])LC(a);a:{b:{c:{if(!K[h+392|0]){f=J[a+584>>2];g=J[a+56>>2];J[f+172>>2]=g;c=J[a+60>>2];J[f+176>>2]=c;d:{if(K[a+13|0]&4){g=J[a+68>>2];d=J[a+72>>2];e=(c+d|0)-1|0;e=e-((e>>>0)%(d>>>0)|0)|0;break d}d=J[a+100>>2];e=c}J[f+188>>2]=e;J[f+184>>2]=d;J[f+180>>2]=g;e=L[a+98>>1];H[f+192|0]=e;e:{f:{g:{h:{e=e&255;switch(e-1|0){case 0:break h;case 2:break f;default:break g}}I[f+208>>1]=257;H[f+193|0]= -0;H[f+194|0]=1;break e}a=J[a+628>>2];J[m>>2]=e;Ob(a,288496,281299,m);f=0;break c}H[f+193|0]=0;if(L[a+138>>1]==1){H[f+194|0]=3;break e}H[f+194|0]=1}if(c>>>0>d>>>0){e=K[f+209|0]<<3;c=(d>>>0)/(e>>>0)|0;if((P(c,e)|0)!=(d|0)){f=0;Ob(J[a+628>>2],288496,281375,0);break c}e=K[f+208|0]<<3;I[f+300>>1]=P(c,((e+g|0)-1>>>0)/(e>>>0)|0)}if(!KC(a)){f=0;break c}H[f+332|0]=1;H[f+392|0]=1;c=J[f+1128>>2];J[f+336>>2]=J[f+1124>>2];J[f+340>>2]=c;c=L[f+1148>>1];J[f+344>>2]=J[f+1136>>2]-c;J[f+348>>2]=c+J[f+1144>>2]}i:{if(K[(P(b, -20)+h|0)+332|0])break i;c=J[a+584>>2];f=b;while(1){f=f-1|0;e=f&255;if(!K[(c+P(e,20)|0)+332|0])continue;break}H[c+193|0]=f;e=c+P(e,20)|0;J[c+1124>>2]=J[e+336>>2];J[c+1128>>2]=J[e+340>>2];g=J[e+344>>2];d=0;H[c+1140|0]=0;J[c+1136>>2]=g;e=J[e+348>>2];J[c+1152>>2]=0;I[c+1148>>1]=0;J[c+1144>>2]=e;if((f&255)>>>0>=b>>>0)break i;while(1){if(!(d&65535)){if(!Jd(c)){f=0;break c}d=L[c+1148>>1]}f=J[c+1152>>2];e=K[f|0];d=d-1|0;I[c+1148>>1]=d;f=f+1|0;J[c+1152>>2]=f;if((e|0)!=255)continue;while(1){if(!(d&65535)){if(!Jd(c)){f= -0;break c}d=L[c+1148>>1];f=J[c+1152>>2]}e=K[f|0];d=d-1|0;I[c+1148>>1]=d;f=f+1|0;J[c+1152>>2]=f;if((e|0)==255)continue;break}if((e|0)!=218)continue;H[c+193|0]=K[c+193|0]+1;if(!JC(a)){f=0;break c}e=K[c+193|0];f=c+P(e,20)|0;H[f+332|0]=1;J[f+336>>2]=J[c+1124>>2];J[f+340>>2]=J[c+1128>>2];d=L[c+1148>>1];J[f+344>>2]=J[c+1136>>2]-d;J[f+348>>2]=J[c+1144>>2]+d;if(b>>>0>e>>>0)continue;break}}n=J[(K[a+13|0]&4?504:480)+a>>2];j:{if(K[h+393|0]){if(L[h+394>>1]==(b|0)){c=J[h+396>>2];if(n>>>0>=c>>>0)break j}if(K[h+ -400|0]){c=J[a+584>>2];f=c+536|0;e=J[f+4>>2];if(e)Ab[J[e+40>>2]](f);J[f+20>>2]=0;J[f+4>>2]=0;H[c+400|0]=0}H[h+393|0]=0}I[h+394>>1]=b;H[h+193|0]=b;J[h+396>>2]=P(J[a+176>>2],b);k:{l:{if(!K[h+1140|0]){d=J[(P(b,20)+h|0)+344>>2];break l}d=J[(P(b,20)+h|0)+344>>2];if((d|0)==(J[h+1136>>2]-L[h+1148>>1]|0))break k}b=P(b,20)+h|0;J[h+1124>>2]=J[b+336>>2];f=J[b+340>>2];H[h+1140|0]=0;J[h+1136>>2]=d;J[h+1128>>2]=f;b=J[b+348>>2];J[h+1152>>2]=0;I[h+1148>>1]=0;J[h+1144>>2]=b}f=0;c=J[a+584>>2];H[c+302|0]=0;J[c+3204>> -2]=0;b=c+404|0;nk(b);J[c+548>>2]=a;J[c+536>>2]=b;J[c+404>>2]=1695;J[c+412>>2]=1696;o=c+536|0;g=0;b=Qb(40);J[b>>2]=0;b=wd(c+4|0,1,b,4);l=yb;d=0;m:{n:{while(1){if(d)break m;J[195395]=0;fa(1163,o|0,80,488);d=J[195395];J[195395]=0;if((d|0)==1)break b;e=-1;o:{p:{if(!d)break p;i=J[195396];if(!i)break p;e=Sb(J[d>>2],b,l);if(!e)break o;yb=i}d=yb;if((e|0)!=1)break n;continue}break}break a}g=1}Kb(b);if(!g)break c;H[c+400|0]=1;J[c+1048>>2]=1697;J[c+1044>>2]=1698;J[c+1040>>2]=1699;J[c+1036>>2]=1700;J[c+1032>> -2]=1701;J[c+1028>>2]=0;J[c+560>>2]=c+1024;g=0;b=Qb(40);J[b>>2]=0;b=wd(c+4|0,1,b,4);l=yb;d=0;q:{r:{while(1){if(d)break q;J[195395]=0;ca(1164,o|0,1)|0;d=J[195395];J[195395]=0;if((d|0)==1)break b;e=-1;s:{t:{if(!d)break t;i=J[195396];if(!i)break t;e=Sb(J[d>>2],b,l);if(!e)break s;yb=i}d=yb;if((e|0)!=1)break r;continue}break}break a}g=1}Kb(b);if(!g)break c;u:{v:{w:{b=K[c+194|0];if(!(K[c+210|0]|b>>>0<2)){H[c+401|0]=0;J[c+612>>2]=0;J[c+604>>2]=1;if(K[c+1052|0])break u;J[c+1068>>2]=8;e=K[c+209|0]<<3;J[c+1060>> -2]=e;d=K[c+208|0];b=d<<3;g=(b+J[c+180>>2]|0)-1|0;b=g-((g>>>0)%(b>>>0)|0)|0;J[c+1056>>2]=b;e=P(b,e);J[c+1072>>2]=e;b=(b>>>0)/(d>>>0)|0;J[c+1064>>2]=b;J[c+1076>>2]=b<<3;b=e+(b<<4)|0;J[c+1080>>2]=b;b=Qb(b);J[c+1084>>2]=b;if(!b){Ob(J[a+628>>2],288528,273221,0);break c}J[c+1088>>2]=b;b=b+J[c+1072>>2]|0;J[c+1092>>2]=b;J[c+1096>>2]=b+J[c+1076>>2];b=(J[c+1060>>2]+(J[c+1068>>2]<<1)|0)+3|0;J[c+1100>>2]=b;b=Qb(b<<2);J[c+1104>>2]=b;if(!b){Ob(J[a+628>>2],288528,273221,0);break c}d=b+12|0;J[b>>2]=d;e=J[c+1060>> -2];g=e<<2;J[b+4>>2]=(g+J[c+1104>>2]|0)+12;i=J[c+1068>>2];J[b+8>>2]=((g+J[c+1104>>2]|0)+(i<<2)|0)+12;if(!e)break v;l=e&3;b=J[c+1056>>2];if(e>>>0<4){g=0;break w}e=e&-4;g=0;while(1){J[d>>2]=J[c+1088>>2]+P(b,g);J[d+4>>2]=J[c+1088>>2]+P(b,g|1);J[d+8>>2]=J[c+1088>>2]+P(b,g|2);J[d+12>>2]=J[c+1088>>2]+P(b,g|3);g=g+4|0;d=d+16|0;j=j+4|0;if((e|0)!=(j|0))continue;break}break w}H[c+401|0]=1;J[c+576>>2]=0;J[c+580>>2]=0;J[c+1120>>2]=J[c+184>>2];J[c+1116>>2]=P(b,J[c+180>>2]);break u}if(!l)break v;while(1){J[d>>2]= -J[c+1088>>2]+P(b,g);g=g+1|0;d=d+4|0;k=k+1|0;if((l|0)!=(k|0))continue;break}}x:{if(!i)break x;g=i&3;e=J[c+1064>>2];k=0;y:{if(i>>>0<4){b=0;break y}l=i&-4;b=0;j=0;while(1){J[d>>2]=J[c+1092>>2]+P(b,e);J[d+4>>2]=J[c+1092>>2]+P(e,b|1);J[d+8>>2]=J[c+1092>>2]+P(e,b|2);J[d+12>>2]=J[c+1092>>2]+P(e,b|3);b=b+4|0;d=d+16|0;j=j+4|0;if((l|0)!=(j|0))continue;break}}if(g)while(1){J[d>>2]=J[c+1092>>2]+P(b,e);b=b+1|0;d=d+4|0;k=k+1|0;if((g|0)!=(k|0))continue;break}g=i&3;k=0;z:{if(i>>>0<4){b=0;break z}i=i&-4;b=0;j=0;while(1){J[d>> -2]=J[c+1096>>2]+P(b,e);J[d+4>>2]=J[c+1096>>2]+P(e,b|1);J[d+8>>2]=J[c+1096>>2]+P(e,b|2);J[d+12>>2]=J[c+1096>>2]+P(e,b|3);b=b+4|0;d=d+16|0;j=j+4|0;if((i|0)!=(j|0))continue;break}}if(!g)break x;while(1){J[d>>2]=J[c+1096>>2]+P(b,e);b=b+1|0;d=d+4|0;k=k+1|0;if((g|0)!=(k|0))continue;break}}J[c+1112>>2]=0;H[c+1052|0]=1;b=K[c+208|0];d=((b+J[c+180>>2]|0)-1>>>0)/(b>>>0)|0;J[c+1108>>2]=d;e=K[c+209|0];J[c+1120>>2]=((e+J[c+184>>2]|0)-1>>>0)/(e>>>0);J[c+1116>>2]=P(d,P(b,e)+2|0)}g=0;b=Qb(40);J[b>>2]=0;b=wd(c+4|0, -1,b,4);j=yb;d=0;A:{B:{while(1){if(d)break A;J[195395]=0;_(1169,o|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break b;e=-1;C:{D:{if(!d)break D;i=J[195396];if(!i)break D;e=Sb(J[d>>2],b,j);if(!e)break C;yb=i}d=yb;if((e|0)!=1)break B;continue}break}break a}g=1}Kb(b);if(!g)break c;H[c+393|0]=1;c=J[h+396>>2]}f=1;if(c>>>0>=n>>>0)break c;while(1){b=J[a+584>>2];E:{F:{if(!K[h+401|0]){f=J[b+1068>>2];d=J[b+1120>>2];c=J[b+1112>>2];if(c){e=f-c|0;if(e>>>0>=d>>>0){c=c+d|0;d=(c|0)!=(f|0)?c:0;break F}J[b+1112>>2]=0;d= -d-e|0}if(d>>>0>=f>>>0){f=b+536|0;while(1){if(!nr(b,f,J[b+1104>>2],K[b+209|0]<<3)){f=0;break c}c=J[b+1068>>2];d=d-c|0;if(d>>>0>=c>>>0)continue;break}}if(!d)break E;if(nr(b,b+536|0,J[b+1104>>2],K[b+209|0]<<3))break F;f=0;break c}G:{if(J[b+5256>>2])break G;f=Qb(J[b+1116>>2]);J[b+5256>>2]=f;if(f)break G;f=0;Ob(J[a+628>>2],288560,273221,0);break c}if(!J[b+1120>>2])break E;c=b+5256|0;e=b+536|0;f=0;d=0;while(1){if(!IC(b,e,c))break c;d=d+1|0;if(d>>>0>2])continue;break}break E}J[b+1112>>2]=d}f=1; -b=J[h+396>>2]+1|0;J[h+396>>2]=b;if(b>>>0>>0)continue;break}}xb=m+16|0;return f|0}a=Z()|0;Kb(b);ba(a|0);B()}Kb(b);gd(d,i);B()}function JD(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,L=0,M=0,N=0,O=0;f=xb-368|0;xb=f;a:{b:{e=J[a+200>>2];if(e&1){c:{if(e&4){Wb(a,257600);mc(a,c);break c}if(e&2)Wb(a,257679);if(!(!b|(J[b+8>>2]&2052)!=4)){Wb(a,257707);mc(a,c);break c}if((c|0)!=32){Wb(a,257833);mc(a,c);break c}c=f+336| -0;Gd(a,c,32);Fc(a,c,32);if(mc(a,0))break c;d:{c=J[f+336>>2];o=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e:{if((o|0)<0)break e;c=J[f+340>>2];l=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((l|0)<0)break e;c=J[f+344>>2];m=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((m|0)<0)break e;c=J[f+348>>2];i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((i|0)<0)break e;c=J[f+352>>2];h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((h|0)<0)break e;c=J[f+356>>2];g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((g|0)<0)break e;c= -J[f+360>>2];e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((e|0)<0)break e;c=J[f+364>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((c|0)>=0)break d}Wb(a,258656);break c}t=(c|0)<0?-1:c;u=(e|0)<0?-1:e;v=(g|0)<0?-1:g;w=(h|0)<0?-1:h;x=(i|0)<0?-1:i;y=(m|0)<0?-1:m;z=(l|0)<0?-1:l;A=(o|0)<0?-1:o;if(!(!b|!(K[b+9|0]&8))){f:{if(A-32271>>>0<4294965295|z>>>0<31900|(y>>>0<63E3|z>>>0>33900))break f;if(x>>>0<32E3|y>>>0>65E3|(w>>>0<29E3|x>>>0>34E3))break f;if(v>>>0<59E3|w>>>0>31E3|(u>>>0<14E3|v>>>0>61E3))break f; -if(t>>>0<5E3|u>>>0>16E3)break f;if(t>>>0<7001)break c}b=f+80|0;yf(b,1,5,A);yf(b,2,5,z);yf(b,3,5,y);yf(b,4,5,x);yf(b,5,5,w);yf(b,6,5,v);yf(b,7,5,u);yf(b,8,5,t);$i(a,b,258738);break c}g:{if(K[a+654|0])break g;J[f+56>>2]=w;e=f- -64|0;J[e>>2]=u;J[f+72>>2]=A;J[f+60>>2]=v;c=J[f+60>>2];J[f+8>>2]=J[f+56>>2];J[f+12>>2]=c;J[f+68>>2]=t;c=J[e+4>>2];J[f+16>>2]=J[e>>2];J[f+20>>2]=c;J[f+76>>2]=z;c=J[f+76>>2];J[f+24>>2]=J[f+72>>2];J[f+28>>2]=c;J[f+52>>2]=x;J[f+48>>2]=y;c=J[f+52>>2];J[f>>2]=J[f+48>>2];J[f+4>>2]=c; -c=0;j=xb-32|0;xb=j;e=J[f+28>>2];J[j+24>>2]=J[f+24>>2];J[j+28>>2]=e;e=J[f+20>>2];J[j+16>>2]=J[f+16>>2];J[j+20>>2]=e;e=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=e;e=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=e;L=1;h:{i:{j:{k:{l:{r=J[j>>2];if(r>>>0>1E5)break l;p=J[j+4>>2];if((p|0)<0|(p|0)>(1E5-r|0))break l;s=J[j+8>>2];if(s>>>0>1E5)break l;q=J[j+12>>2];if((q|0)<0|(q|0)>(1E5-s|0))break l;n=J[j+16>>2];if(n>>>0>1E5)break l;k=J[j+20>>2];if((k|0)<0|(k|0)>(1E5-n|0))break l;C=J[j+24>>2];if(C>>>0>1E5)break l;m=J[j+ -28>>2];if((m|0)<5|(m|0)>(1E5-C|0))break l;M=p-k|0;D=s-n|0;e=(n|0)==(s|0);h=0;m:{n:{if(e)break n;h=0;if((k|0)==(p|0))break n;i=2;d=V(+(D|0)*+(M|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;h=~~d;if(R(d)<2147483648)break n;h=-2147483648}N=r-n|0;o=q-k|0;l=(n|0)==(r|0);o:{if(l|(k|0)==(q|0))break o;i=2;d=V(+(N|0)*+(o|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break o}c=-2147483648}O=m-k|0;g=0;p:{if(e)break p;g=0;if((k|0)==(m|0))break p;i=2;d=V(+(D|0)*+(O| -0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break p;g=-2147483648}D=C-n|0;q:{if((k|0)==(q|0)|(n|0)==(C|0))break q;i=2;d=V(+(o|0)*+(D|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){H=~~d;break q}H=-2147483648}if((g|0)==(H|0))break l;o=h-c|0;e=m;i=e;h=(c|0)==(h|0);c=0;r:{if(h)break r;d=V(+(e|0)*+(o|0)/+(g-H|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648))break l;c=~~d;if(R(d)<2147483648)break r;c=-2147483648}e=c;if((i|0)>=(e|0))break l;c= -0;g=0;s:{if((k|0)==(p|0))break s;g=0;if((n|0)==(C|0))break s;i=2;d=V(+(M|0)*+(D|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break s;g=-2147483648}t:{if((k|0)==(m|0)|l)break t;i=2;d=V(+(N|0)*+(O|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break t}c=-2147483648}if((c|0)==(g|0))break l;l=0;u:{if(h)break u;d=V(+(m|0)*+(o|0)/+(g-c|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648))break l;l=~~d;if(R(d)<2147483648)break u;l=-2147483648}i= -1;if((m|0)>=(l|0))break m;E=+(l|0);F=V(1E10/E+.5);c=F>=-2147483648;G=+(e|0);d=V(1E10/G+.5);e=d>=-2147483648;if(R(F)<2147483648)g=~~F;else g=-2147483648;g=F<=2147483647?c?g:0:0;if(R(d)<2147483648)c=~~d;else c=-2147483648;e=g+(d<=2147483647?e?c:0:0)|0;d=V(1E10/+(m|0)+.5);c=d>=-2147483648;if(R(d)<2147483648)g=~~d;else g=-2147483648;h=(d<=2147483647?c?g:0:0)-e|0;if((h|0)<=0)break m;c=0;e=0;v:{if(!r)break v;d=V(+(r|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break v; -e=-2147483648}J[f+80>>2]=e;w:{if(!p)break w;d=V(+(p|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break w}c=-2147483648}J[f+84>>2]=c;c=0;e=p+r|0;g=0;x:{if((e|0)==1E5)break x;d=V(+(1E5-e|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break x;g=-2147483648}J[f+88>>2]=g;y:{if(!s)break y;d=V(+(s|0)*1E5/E+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break y}c=-2147483648}J[f+92>>2]=c;c=0;e=0;z:{if(!q)break z; -d=V(+(q|0)*1E5/E+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break z;e=-2147483648}J[f+96>>2]=e;e=q+s|0;A:{if((e|0)==1E5)break A;d=V(+(1E5-e|0)*1E5/E+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break A}c=-2147483648}J[f+100>>2]=c;c=0;e=0;B:{if(!n)break B;d=V(+(n|0)*+(h|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break B;e=-2147483648}J[f+104>>2]=e;C:{if(!k)break C;d=V(+(k|0)*+(h|0)/1E5+.5);if(!(d<= -2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break C}c=-2147483648}J[f+108>>2]=c;c=k+n|0;e=0;D:{if((c|0)==1E5)break D;d=V(+(1E5-c|0)*+(h|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break D;e=-2147483648}J[f+112>>2]=e;i=0}break k}i=1}switch(i|0){case 0:break h;case 1:break i;default:break j}}gc(a,255384);B()}Wb(a,255111);L=0}xb=j+32|0;if(!L)break g;if(!Un(f+44|0,J[f+84>>2],32768))break a;c=J[f+44>>2];if((c|0)<0|(c|0)>32768)break a;if(!Un(f+40| -0,J[f+96>>2],32768))break a;c=J[f+40>>2];if((c|0)<0|(c|0)>32768)break a;if(!Un(f+36|0,J[f+108>>2],32768))break a;c=J[f+36>>2];if((c|0)<0|(c|0)>32768)break a;i=J[f+40>>2];h=J[f+44>>2];e=i+(h+c|0)|0;if((e|0)>32769)break a;g=-1;E:{if((e|0)!=32769){g=1;if((e|0)>32767)break E}if(!((i|0)<(h|0)|(c|0)>(i|0))){i=i+g|0;J[f+40>>2]=i;break E}if(!((i|0)>(h|0)|(c|0)>(h|0))){h=h+g|0;J[f+44>>2]=h;break E}c=c+g|0;J[f+36>>2]=c}if(((i+h|0)+c|0)!=32768)break b;I[a+658>>1]=i;I[a+656>>1]=h}F:{if(!a|!b)break F;if(!Ir(a, -A,z,y,x,w,v,u,t))break F;J[b+156>>2]=t;J[b+152>>2]=u;J[b+148>>2]=v;J[b+144>>2]=w;J[b+140>>2]=x;J[b+136>>2]=y;J[b+132>>2]=z;J[b+128>>2]=A;J[b+8>>2]=J[b+8>>2]|4}}xb=f+368|0;return}gc(a,257495);B()}gc(a,258878);B()}gc(a,259053);B()}function rT(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,u=0,v=0,w=0,x=0;g=xb+-64|0;xb=g;J[g+40>>2]=0;f=K[a+48|0];a:{if(!(J[a+536>>2]|!f)){e=8;break a}e=J[a+540>>2];d=J[e>>2];if(!d){h=J[a>>2];J[e+4>>2]=33;d=tc(h,552,g+40| -0);J[J[a+540>>2]>>2]=d;e=64;if(J[g+40>>2])break a;J[d>>2]=h;if(!f)J[d+548>>2]=J[J[a+532>>2]+3088>>2];e=d+168|0;J[e>>2]=0;J[e+4>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;J[d+152>>2]=0;J[d+156>>2]=0;J[d+144>>2]=34;J[d+148>>2]=35;J[d+168>>2]=d+4;J[d+164>>2]=h;J[d+156>>2]=36}J[d+176>>2]=a;J[d+172>>2]=a;h=J[a+4>>2];m=H[J[h+128>>2]+56|0];e=J[h+96>>2];n=K[e+32|0];J[g+12>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+36>>2]=b;J[g+24>>2]=0;J[g+32>>2]=b?b+c|0:0;J[g+28>>2]=b;J[g+4>>2]=0;J[g+8>>2]=0;b=J[a+8>>2];j=K[b+161|0];l= -K[b+160|0];b:{if(!l){c=1024;b=1024;break b}c=(J[b+168>>2]+32|0)/64|0;b=(J[b+164>>2]+32|0)/64|0}J[g+12>>2]=c;J[g>>2]=b;i=f?i:K[h+732|0];H[d+8|0]=f;H[d+9|0]=i;f=(l|0)!=0;J[d+12>>2]=f;if(!(!j|(n|(m|0)>=0?m:0)))J[d+12>>2]=f|2;J[d+188>>2]=J[e+36>>2];J[d+192>>2]=J[e+40>>2];J[d+196>>2]=J[e+44>>2];J[d+200>>2]=J[e+48>>2];J[d+204>>2]=J[e+52>>2];J[d+208>>2]=J[e+56>>2];J[d+212>>2]=J[e+60>>2];J[d+216>>2]=J[e- -64>>2];f=L[J[a+4>>2]+68>>1];J[d+132>>2]=f;if(j){e=36;if((b|0)<=0|(c|0)<=0)break a;e=164;a=f<<16;if(a>> -16<0)break a;a=dc(131072E3,a);if((a|0)<(b|0)|(a|0)<(c|0))break a;a=J[d+176>>2]}J[g+48>>2]=0;J[g+52>>2]=0;e=0;J[g+44>>2]=0;j=J[d+140>>2];b=J[d+136>>2];J[g+60>>2]=0;J[g+56>>2]=0;J[d+4>>2]=0;c=J[a+536>>2];if((c|0)!=J[d+180>>2]){J[d+180>>2]=c;e=1}c:{d:{if(!(K[d+8|0]|!J[J[a+532>>2]+3112>>2])){f=J[d+548>>2];h=J[a+4>>2];h=Ab[J[J[h+548>>2]+40>>2]](h,g+60|0,0,g+56|0,0)|0;J[d+4>>2]=h;if(h)break d;if(Ab[J[f+12>>2]](c+556|0,J[c+548>>2],J[g+60>>2],J[g+56>>2])|0){Ab[J[f+4>>2]](J[a+532>>2],c,J[g+60>>2],J[g+56>> -2])|0;e=1}f=J[c+560>>2];H[d+93|0]=0;J[d+96>>2]=f;J[d+120>>2]=J[c+548>>2];J[d+124>>2]=J[g+60>>2];J[d+128>>2]=J[g+56>>2]}f=L[J[J[a+4>>2]+88>>2]+14>>1]<<16;if((f|0)!=J[d+88>>2]){J[d+88>>2]=f;e=1}c=J[d+12>>2];H[d+184|0]=c&1;e:{f:{g:{if(!cd(g,d+16|0,16)){m=d+186|0;c=c&2;if((c|0)!=K[d+186|0])break g;if(e)break f;break e}e=J[g+4>>2];J[d+16>>2]=J[g>>2];J[d+20>>2]=e;e=J[g+12>>2];J[d+24>>2]=J[g+8>>2];J[d+28>>2]=e;J[d+32>>2]=0;J[d+36>>2]=0;e=J[g+4>>2];J[d+40>>2]=J[g>>2];J[d+44>>2]=e;e=J[g+12>>2];J[d+48>>2]= -J[g+8>>2];J[d+52>>2]=e;e=J[g+20>>2];J[d+56>>2]=J[g+16>>2];J[d+60>>2]=e;J[d+72>>2]=0;J[d+76>>2]=65536;J[d+64>>2]=65536;J[d+68>>2]=0;m=d+186|0;c=c&2;if((c|0)==K[d+186|0])break f}H[m|0]=c>>>1}c=J[J[a+536>>2]+400>>2]<<16;J[d+220>>2]=c;e=J[d+132>>2];n=e?e:1E3;e=65536E3/(n|0)|0;if((c|0)<=0){c=dc(4915200,e);J[d+220>>2]=c}h=d+188|0;f=(f|0)<=262144?262144:f;h:{if((b|0)>0){c=n<<16;if((dc(c,f)|0)>=(b|0))b=dc(c,f);J[d+228>>2]=0;if(!b|(e|0)<655)break h;J[d+228>>2]=(b|0)/2;break h}yx(e,f,c,d+228|0,0,K[d+186|0], -h)}b=J[J[a+536>>2]+396>>2];i:{if(b<<16>0){a=4915200;if(J[d+220>>2]>b<<17)break i}a=7208960}a=dc(a,e);J[d+224>>2]=a;yx(e,f,a,d+232|0,j,K[d+186|0],h);a=1;a=J[d+228>>2]?a:J[d+232>>2]!=0;h=0;H[d+236|0]=0;H[d+185|0]=a;a=J[d+176>>2];q=Nb(d+244|0,0,304);J[d+240>>2]=J[d+52>>2];w=d,x=dc(J[J[a+536>>2]+384>>2],65536E3),J[w+252>>2]=x;f=J[a+536>>2];J[d+256>>2]=J[f+388>>2]<<16;J[d+260>>2]=J[f+392>>2]<<16;j=f+192|0;r=K[f+191|0];n=K[f+190|0];l=K[f+189|0];b=K[f+188|0];j:{k:{if(J[f+524>>2]==1){l:switch(b|0){case 4:if(J[j>> -2]<<16>-7864321|J[f+196>>2]<<16>-7864321|(J[f+200>>2]<<16<57671681|J[f+204>>2]<<16<57671681))break k;break;case 0:break l;default:break k}J[d+296>>2]=-7864321;a=Rb(-7864321,J[d+240>>2]);J[d+288>>2]=49;b=J[d+240>>2];J[d+304>>2]=b;J[d+300>>2]=(a+32768&-65536)-32768;a=(J[d+232>>2]<<1)+57671681|0;J[d+276>>2]=a;a=Rb(a,b);J[d+268>>2]=50;H[d+249|0]=1;J[d+284>>2]=J[d+240>>2];J[d+280>>2]=a+32768&-65536|32768;break e}if(!b)break j}c=J[d+244>>2];a=P(c,20)+d|0;h=J[f+192>>2]<<16;J[a+308>>2]=h;e=J[f+196>>2]<<16; -J[a+312>>2]=e;h=e-h|0;m:{if((h|0)<0){h=0;break m}J[a+316>>2]=e;H[a+324|0]=1;c=c+1|0;J[d+244>>2]=c}e=2;if(b>>>0<=2)break j;while(1){a=P(c,20)+d|0;k=e<<2;i=J[k+j>>2]<<16;J[a+308>>2]=i;k=J[j+(k|4)>>2]<<16;J[a+312>>2]=k;o=k-i|0;if((o|0)>=0){p=k;k=J[d+232>>2]<<1;J[a+312>>2]=p+k;i=i+k|0;J[a+308>>2]=i;J[a+316>>2]=i;H[a+324|0]=0;c=c+1|0;J[d+244>>2]=c;h=(h|0)<(o|0)?o:h}e=e+2|0;if(b>>>0>e>>>0)continue;break}}if(l){c=f+248|0;b=J[q>>2];e=0;while(1){a=P(b,20)+d|0;j=e<<2;i=J[j+c>>2]<<16;J[a+308>>2]=i;j=J[c+(j| -4)>>2]<<16;J[a+312>>2]=j;i=j-i|0;if((i|0)>=0){J[a+316>>2]=j;H[a+324|0]=1;b=b+1|0;J[d+244>>2]=b;h=(h|0)<(i|0)?i:h}e=e+2|0;if(l>>>0>e>>>0)continue;break}}j=dc(65536,J[d+240>>2]);o=J[d+244>>2];if(o){t=f+344|0;u=f+288|0;l=0;v=n>>>0<3;while(1){a=P(l,20)+d|0;i=a;e=J[a+316>>2];n:{if(K[a+324|0]){a=0;c=2147483647;o:{if(!r)break o;while(1){k=J[(a<<2|4)+t>>2]<<16;p=e-k|0;b=p>>31;p:{b=(b^p)-b|0;if((b|0)>=(c|0)|(b|0)>=(j|0))break p;J[i+316>>2]=k;c=b;if((e|0)!=(k|0))break p;c=0;break o}a=a+2|0;if(r>>>0>a>>>0)continue; -break}}if(n>>>0<2)break n;b=J[f+292>>2]<<16;e=e-b|0;a=e>>31;a=(a^e)-a|0;if((a|0)>=(c|0)|(a|0)>=(j|0))break n;J[i+316>>2]=b;break n}if(v)break n;p=J[d+232>>2]<<1;a=2;c=2147483647;while(1){k=(J[(a<<2)+u>>2]<<16)+p|0;s=e-k|0;b=s>>31;b=(b^s)-b|0;if(!((b|0)>=(c|0)|(b|0)>=(j|0))){J[i+316>>2]=k;c=b;if((e|0)==(k|0))break n}a=a+2|0;if(n>>>0>a>>>0)continue;break}}l=l+1|0;if((o|0)!=(l|0))continue;break}}a=J[d+252>>2];q:{if((h|0)<=0)break q;if((dc(65536,h)|0)>=(a|0)){a=J[d+252>>2];break q}a=dc(65536,h);J[d+252>> -2]=a}b=J[d+240>>2];if((b|0)<(a|0)){H[d+248|0]=1;a=hc(39322,b,a);J[d+264>>2]=(a|0)<6555?32767:39322-a|0}if(K[m|0])J[d+264>>2]=0;if(!J[q>>2])break e;c=d+240|0;a=0;while(1){b=c+P(a,20)|0;e=K[b+84|0];i=b;k=Rb(J[b+76>>2],J[d+240>>2]);b=J[d+264>>2];J[i+80>>2]=(k+(e?0-b|0:b)|0)+32768&-65536;a=a+1|0;if(a>>>0>2])continue;break}}if(J[d+4>>2])break d;H[d+236|0]=0;J[d+160>>2]=0;a=K[d+185|0];lh(J[J[d+172>>2]+12>>2]);b=g+24|0;c=d+144|0;e=g+48|0;f=g+44|0;zj(d,b,c,e,0,0,0,f);if(J[d+4>>2])break d;if(!(!a| -J[d+160>>2]>=0)){H[d+236|0]=1;J[d+160>>2]=0;lh(J[J[d+172>>2]+12>>2]);zj(d,b,c,e,0,0,0,f);if(J[d+4>>2])break d}f=J[d+172>>2];a=J[f+20>>2];r:{if(!a)break r;s:{t:{b=L[a>>1];e=b<<16>>16;if((e|0)>=2){b=I[(J[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break t}b=0;if(e)break t;c=L[a+2>>1];break s}c=I[a+2>>1];if((c|0)!=(b|0))break s;I[a>>1]=e-1;break r}u:{if(c<<16>>16<2)break u;h=J[a+4>>2];m=h+(b<<3)|0;j=c&65535;h=h+(j<<3)|0;if(J[m>>2]!=J[h-8>>2]|J[m+4>>2]!=J[h-4>>2]|K[(j+J[a+8>>2]|0)-1|0]!=1)break u;c=c-1|0;I[a+2>>1]= -c}if((e|0)<=0)break r;i=b;b=(c<<16>>16)-1|0;if((i|0)==(b|0)){I[a+2>>1]=c-1;I[a>>1]=e-1;break r}I[(J[a+12>>2]+(e<<1)|0)-2>>1]=b}Vl(J[f+12>>2]);if(!J[d+4>>2])break c}e=3;break a}a=J[g+44>>2];e=0;J[d+4>>2]=0;b=J[d+172>>2];if(K[b+48|0])break a;J[J[b+544>>2]>>2]=a+32768>>16}xb=g- -64|0;return e|0}function tma(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;l=xb-32|0;xb=l;if(J[c+68>>2]){if(nc(c,b,106122,0)){q=J[c+68>>2];a:{if(!q)break a;e=q-1|0;i=J[c+80>>2]; -f=i+3|0;i=K[i+15|0];while(1){b:{if((d|0)==(e|0)){d=q;break b}d=d+1|0;if((i|0)==K[(f+P(d,20)|0)+12|0])continue}break}if(!q)break a;j=J[c+80>>2];i=0;while(1){h=d;p=J[a+100>>2];m=J[p+8>>2];c:{if(!m|d>>>0<=i>>>0)break c;g=j+2|0;f=i+1|0;d=i;if(h-d&1){e=P(d,20);k=e+j|0;d:{if((m|0)!=J[k>>2])break d;d=L[k+12>>1];if((d&96)!=96)break d;H[(e+g|0)+16|0]=4;I[k+12>>1]=d&65439}d=f}if((f|0)==(h|0))break c;while(1){e=P(d,20);k=e+j|0;e:{if((m|0)!=J[k>>2])break e;f=L[k+12>>1];if((f&96)!=96)break e;H[(e+g|0)+16|0]=4; -I[k+12>>1]=f&65439}e=P(d+1|0,20);k=e+j|0;f:{if((m|0)!=J[k>>2])break f;f=L[k+12>>1];if((f&96)!=96)break f;H[(e+g|0)+16|0]=4;I[k+12>>1]=f&65439}d=d+2|0;if((h|0)!=(d|0))continue;break}}o=j+3|0;k=J[p+108>>2];r=(k|0)!=0;f=i;g:{h:{if(h>>>0<=f>>>0){k=f+1|0;if(k>>>0>>0)break h;break g}i:{j:{while(1){k:{d=f+1|0;if(K[(P(f,20)+o|0)+16|0]>=4){if(!(!k|d>>>0>=h>>>0)){while(1){l:{e=P(d,20)+j|0;if(k&J[e+4>>2]){r=1;if((L[e+12>>1]&112)==48)break l;m:{while(1){f=P(d,20)+j|0;if(K[f+12|0]&32|K[f+18|0]!=4)break m;d= -d+1|0;if(h>>>0>d>>>0)continue;break}r=0;break k}H[f+19|0]=4;r=0;f=d;break l}r=1;d=d+1|0;if(h>>>0>d>>>0)continue}break}if((f|0)==(h|0))break k;d=f+1|0}n:{if(J[c+44>>2]!=1298954605|d>>>0>=h>>>0)break n;while(1){e=d+1|0;e=e>>>0>>0?h:e;o:{while(1){k=P(d,20)+j|0;if(K[k+12|0]&32)break o;k=K[k+18|0];if(k>>>0>31|!(1<>>0>d>>>0)continue;break}d=e}if((d|0)==(h|0))break n;e=P(d,20)+j|0;if(K[e+12|0]&32|K[e+18|0]!=4)break n;e=d+1|0;k=(e>>>0>>0?h:e)-1|0;p:{while(1){e=d;d=d+1|0; -if(h>>>0<=d>>>0){e=k;break p}m=P(d,20);g=m+j|0;if(K[g+12|0]&32)break p;g=K[g+18|0];n=1<>>0>31;if(!(n&96?g:1))continue;break}if(!(n&363526)|g)break p;k=m+o|0;if(K[k+16|0]!=8)break p;H[k+16|0]=4;f=d}d=e+2|0;if(h>>>0>d>>>0)continue;break}}if(f>>>0>i>>>0)f=f-(K[(P(f,20)+j|0)+19|0]>4)|0;if((f|0)==(h|0))break k;break j}f=d;if((d|0)!=(h|0))continue}break}d=P(h,20)+j|0;if(K[d-8|0]&32){f=h;break i}f=h-(K[d-2|0]==6)|0}if(f>>>0<=i>>>0|f>>>0>=h>>>0)break i;while(1){d=P(f,20)+j|0;if(K[d+12|0]&32)break i; -d=K[d+18|0];if(d>>>0>31|!(1<>>0>>0)continue;break}k=i+1|0;f=i;break h}k=i+1|0;s=k>>>0>=h>>>0;q:{if(s|f>>>0<=i>>>0)break q;d=((f|0)==(h|0)?-2:-1)+f|0;r:{s:{e=J[c+44>>2];if((e|0)==1298954605|(e|0)==1415671148)break s;n=j+2|0;while(1){m=1;t:{if(d>>>0<=i>>>0)break t;while(1){u:{e=P(d,20)+j|0;if(K[e+12|0]&32)break u;e=K[e+18|0];if(e>>>0>31|!(1<>>0>>0)continue;break}d=i}g=P(d,20);e=g+j|0;if(K[e+12|0]&32|K[e+18|0]!=4|K[(g+o|0)+16| -0]==2)break r;e=d+1|0;if(e>>>0>=h>>>0|(K[(n+P(e,20)|0)+16|0]!=6|m))break s;d=d-1|0;continue}}if(K[(P(d,20)+j|0)+19|0]==2|d>>>0<=i>>>0)break r;m=d;while(1){g=d-1|0;e=P(g,20);if(K[(e+o|0)+16|0]==2){e=e+j|0;J[l+24>>2]=J[e+16>>2];n=J[e+12>>2];J[l+16>>2]=J[e+8>>2];J[l+20>>2]=n;n=J[e+4>>2];J[l+8>>2]=J[e>>2];J[l+12>>2]=n;qc(e,P(d,20)+j|0,P(m-g|0,20));e=P(m,20)+j|0;J[e+16>>2]=J[l+24>>2];d=J[l+20>>2];J[e+8>>2]=J[l+16>>2];J[e+12>>2]=d;d=J[l+12>>2];J[e>>2]=J[l+8>>2];J[e+4>>2]=d;f=f-(f>>>0<=m>>>0&f>>>0>g>>>0)| -0;d=f+1|0;d=d>>>0>>0?d:h;if(d-m>>>0>=2)Kd(c,m,d);m=m-1|0}d=g;if(i>>>0>>0)continue;break}break q}e=i;while(1){if(K[(P(e,20)+o|0)+16|0]==2){d=f+1|0;d=d>>>0>>0?d:h;if(d-e>>>0<2)break q;Kd(c,e,d);break h}e=e+1|0;if((f|0)!=(e|0))continue;break}}if(s)break g}n=P(i,20)+j|0;if(K[n+19|0]!=1|(K[n+18|0]==14|0)==((L[n+12>>1]&96)==32|0))break g;m=J[J[p>>2]+12>>2];v:{w:{if((m|0)==12)break w;x:{y:{z:{d=k;if(f>>>0>d>>>0)while(1){e=d+1|0;g=P(d,20)+j|0;if(!(K[g+12|0]&32)&K[g+18|0]==4)break z;d=e;if((f|0)!= -(d|0))continue;break}switch(m-5|0){case 4:break x;case 0:break y;default:break w}}if(e>>>0>=f>>>0)break v;g=P(e,20)+j|0;if(K[g+12|0]&32)break v;m=d;d=K[g+18|0];d=d>>>0<32&(1<>>0>>0?h:d)-1|0;e=f;while(1){A:{d=e;e=d+1|0;if(h>>>0<=e>>>0){d=g;break A}if(K[(P(e,20)+o|0)+16|0]<6)continue}break}if(d>>>0>=h>>>0)break w;break v}d=f+1|0;g=(d>>>0>>0?h:d)-1|0;e=f;while(1){B:{d=e;e=d+1|0;if(h>>>0<=e>>>0){d=g;break B}m=K[(P(e,20)+o|0)+16|0];if(m>>>0>31|!(1<>> -0>>0)break v}C:{d=k;if(f>>>0<=d>>>0)break C;while(1){D:{e=d+1|0;g=P(d,20)+j|0;if(!(K[g+12|0]&32)&K[g+18|0]==4)break D;d=e;if((f|0)!=(d|0))continue;break C}break}if(e>>>0>=f>>>0)break v;g=P(e,20)+j|0;if(K[g+12|0]&32)break v;m=d;d=K[g+18|0];d=d>>>0<32&(1<>>0>i>>>0?i:d;d=h;while(1){E:{d=d-1|0;if(i>>>0>=d>>>0){d=e;break E}if(K[(P(d,20)+o|0)+16|0]==13)continue}break}if(K[p+5|0])break v;e=P(d,20)+j|0;if(K[e+12|0]&32|K[e+18|0]!=4)break v;e=f+1|0;if(e>>>0>=d>>>0)break v; -g=j+2|0;while(1){m=d;d=K[(P(e,20)+g|0)+16|0];d=m-(d>>>0<32&(1<>>0>e>>>0)continue;break}}e=d+1|0;if(e-i>>>0>=2)Kd(c,i,e);J[l+24>>2]=J[n+16>>2];e=J[n+12>>2];J[l+16>>2]=J[n+8>>2];J[l+20>>2]=e;e=J[n+4>>2];J[l+8>>2]=J[n>>2];J[l+12>>2]=e;qc(n,P(k,20)+j|0,P(d-i|0,20));g=P(d,20)+j|0;J[g+16>>2]=J[l+24>>2];e=J[l+20>>2];J[g+8>>2]=J[l+16>>2];J[g+12>>2]=e;e=J[l+12>>2];J[g>>2]=J[l+8>>2];J[g+4>>2]=e;f=f-(f>>>0>i>>>0&d>>>0>=f>>>0)|0}F:{if(!r)break F;d=f+1|0;if(h>>>0<=d>>>0)break F;e=J[p+ -108>>2];while(1){g=P(d,20)+j|0;if(e&J[g+4>>2]){if((L[g+12>>1]&96)!=32)break F;G:{H:{e=J[c+44>>2];if((e|0)==1298954605|(e|0)==1415671148|f>>>0<=i>>>0)break H;while(1){e=P(f,20)+j|0;I:{if(K[e-8|0]&32)break I;e=K[e-2|0];if(e>>>0>31)break I;if(1<>>0>>0)continue;break}f=i;break G}if(f>>>0<=i>>>0|f>>>0>=h>>>0)break G;e=P(f,20)+j|0;if(L[e-8>>1]&32|K[e-2|0]!=4|K[e+12|0]&32)break G;m=f;f=K[e+18|0];f=m+(f>>>0<32&(1<>>0>=2)Kd(c,f,e);J[l+24>>2]=J[g+ -16>>2];e=J[g+12>>2];J[l+16>>2]=J[g+8>>2];J[l+20>>2]=e;e=J[g+4>>2];J[l+8>>2]=J[g>>2];J[l+12>>2]=e;e=P(f,20)+j|0;qc(e+20|0,e,P(d-f|0,20));J[e+16>>2]=J[l+24>>2];d=J[l+20>>2];J[e+8>>2]=J[l+16>>2];J[e+12>>2]=d;d=J[l+12>>2];J[e>>2]=J[l+8>>2];J[e+4>>2]=d;break F}d=d+1|0;if((h|0)!=(d|0))continue;break}}f=P(i,20)+j|0;J:{if(K[f+19|0]!=2)break J;K:{if(i){d=i-1|0;if(1<>1]&8190)break K}J[f+4>>2]=J[f+4>>2]|J[p+136>>2];break J}Ac(c,3,d,k,1,0)}if(!(!K[p+5|0]|h-i>>>0<2|J[a+4>>2]==1415671148))Kd(c, -i,h);i=J[c+68>>2];d=h+1|0;i=d>>>0>>0?i:d;k=i-1|0;j=J[c+80>>2];e=j+3|0;f=K[(P(h,20)+j|0)+15|0];d=h;while(1){L:{if((d|0)==(k|0)){d=i;break L}d=d+1|0;if((f|0)==K[(e+P(d,20)|0)+12|0])continue}break}i=h;if(h>>>0>>0)continue;break}}nc(c,b,106240,0)}H[c+140|0]=K[c+140|0]&63}xb=l+32|0;return 0}function cp(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,w=0;a:{c=J[b+12>>2];e=J[b+4>>2];if(c>>>0>>0)break a;d=J[b+8>>2];if(d-a>>>0<4)break a;f=a+4|0;if(c>>>0< -f-e>>>0|d-f>>>0<2)break a;d=K[f|0]|K[f+1|0]<<8;b:{if(!d)break b;if(zh(((d<<8|d>>>8)&65535)+a|0,b))break b;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[f|0]=0;H[f+1|0]=0}e=J[b+12>>2];j=a+6|0;f=J[b+4>>2];if(e>>>0>>0)break a;c=J[b+8>>2];if(c-j>>>0<2)break a;g=K[j|0]|K[j+1|0]<<8;c:{if(!g)break c;d=0;i=((g<<8|g>>>8)&65535)+a|0;d:{if(e>>>0>>0|c-i>>>0<2)break d;c=K[i|0]|K[i+1|0]<<8;e:{if(!c)break e;if(Ld(b,i+((c<<8|c>>>8)&65535)|0))break e;c=J[b+32>>2];if(c>>>0>31)break d; -J[b+32>>2]=c+1;if(!K[b+28|0])break d;H[i|0]=0;H[i+1|0]=0}f=J[b+12>>2];k=i+2|0;g=J[b+4>>2];if(f>>>0>>0)break d;e=J[b+8>>2];if(e-k>>>0<2)break d;c=i+4|0;if(f>>>0>>0)break d;e=e-c|0;c=K[i+2|0]|K[i+3|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(e>>>0>>0)break d;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break d;d=1;c=K[k|0]|K[k+1|0]<<8;if(!c)break d;d=(c<<8|c>>>8)&65535;e=d>>>0<=1?1:d;while(1){d=0;f=J[b+12>>2];l=(i+(h<<1)|0)+4|0;g=J[b+4>>2];if(f>>>0>>0)break d;c=J[b+8>>2];if(c-l>>>0<2)break d; -d=K[l|0]|K[l+1|0]<<8;f:{if(!d)break f;k=i+((d<<8|d>>>8)&65535)|0;g:{if(f>>>0>>0|c-k>>>0<2)break g;d=k+2|0;if(f>>>0>>0)break g;c=c-d|0;d=K[k|0]|K[k+1|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(c>>>0>>0)break g;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)>0)break f}d=0;c=J[b+32>>2];if(c>>>0>31)break d;J[b+32>>2]=c+1;if(!K[b+28|0])break d;H[l|0]=0;H[l+1|0]=0}d=1;h=h+1|0;if((e|0)!=(h|0))continue;break}}if(d)break c;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[j|0]=0;H[j+1|0]= -0}c=J[b+12>>2];p=a+8|0;e=J[b+4>>2];if(c>>>0>>0)break a;d=J[b+8>>2];if(d-p>>>0<2)break a;f=K[p|0]|K[p+1|0]<<8;h:{if(!f)break h;t=xb-16|0;xb=t;i:{j:{m=((f<<8|f>>>8)&65535)+a|0;if(c>>>0>>0|d-m>>>0<2)break j;d=K[m|0]|K[m+1|0]<<8;k:{if(!d)break k;if(Ld(b,((d<<8|d>>>8)&65535)+m|0))break k;d=J[b+32>>2];if(d>>>0>31)break j;J[b+32>>2]=d+1;if(!K[b+28|0])break j;H[m|0]=0;H[m+1|0]=0}J[t+12>>2]=m;d=0;f=J[b+12>>2];h=m+2|0;g=J[b+4>>2];if(f>>>0>>0)break i;e=J[b+8>>2];if(e-h>>>0<2)break i;c=m+4|0;if(f>>> -0>>0)break i;j=e-c|0;c=K[m+2|0]|K[m+3|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(j>>>0>>0)break i;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break i;d=1;c=K[h|0]|K[h+1|0]<<8;if(!c)break i;d=(c<<8|c>>>8)&65535;l=d>>>0<=1?1:d;while(1){d=0;u=xb-16|0;xb=u;q=((w<<1)+m|0)+4|0;l:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-q>>>0<2)break l;c=J[t+12>>2];e=K[q|0]|K[q+1|0]<<8;m:{if(!e)break m;n=c+((e<<8|e>>>8)&65535)|0;J[u+12>>2]=n;n:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-n>>>0<2)break n;c=n+2|0;if(M[b+12>>2]< -c-J[b+4>>2]>>>0)break n;h=J[b+8>>2]-c|0;c=K[n|0]|K[n+1|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(h>>>0>>0)break n;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break n;c=K[n|0]|K[n+1|0]<<8;if(!c)break m;c=(c<<8|c>>>8)&65535;k=c>>>0<=1?1:c;v=0;while(1){g=0;f=J[b+12>>2];r=((v<<1)+n|0)+2|0;h=J[b+4>>2];o:{if(f>>>0>>0)break o;e=J[b+8>>2];if(e-r>>>0<2)break o;c=J[u+12>>2];g=1;j=K[r|0]|K[r+1|0]<<8;p:{if(!j)break p;i=c+((j<<8|j>>>8)&65535)|0;q:{if(f>>>0>>0|e-i>>>0<2)break q;r:{s:{t:{c=K[i|0]|K[i+1|0]<< -8;switch(((c<<8|c>>>8)&65535)-1|0){case 0:break r;case 2:break s;case 1:break t;default:break p}}if(M[b+12>>2]>2]>>>0|J[b+8>>2]-i>>>0<=3)break q;break p}f=0;j=J[b+12>>2];h=j;c=J[b+4>>2];u:{if(h>>>0>>0)break u;e=J[b+8>>2];if(e-i>>>0<6)break u;s=i+4|0;if(h>>>0>>0)break u;if(e-s>>>0<2)break u;f=1;h=K[s|0]|K[s+1|0]<<8;v:{if(!h)break v;o=i+((h<<8|h>>>8)&65535)|0;h=o+4|0;w:{if(j>>>0>>0|e-h>>>0<2)break w;h=K[h|0]|K[h+1|0]<<8;i=(h<<8|h>>>8)&65535;if(i-1>>>0>=3){if((i|0)!=32768)break v; -if(j>>>0>>0|e-o>>>0<=5)break w;break v}if(j>>>0>>0)break w;j=6;h=e-o|0;if(h>>>0<6)break w;c=K[o|0]|K[o+1|0]<<8;e=(c<<8|c>>>8)&65535;c=K[o+2|0]|K[o+3|0]<<8;c=(c<<8|c>>>8)&65535;if(e>>>0<=c>>>0){j=(c-e>>>4-i<<1)+8|0;if(h>>>0>>0)break w}c=J[b+16>>2]-j|0;J[b+16>>2]=c;if((c|0)>0)break v}f=0;c=J[b+32>>2];if(c>>>0>31)break u;J[b+32>>2]=c+1;if(!K[b+28|0])break v;H[s|0]=0;H[s+1|0]=0;f=1}}if(!f)break q;break p}if(M[b+12>>2]>2]>>>0)break q;if(J[b+8>>2]-i>>>0>3)break p}g=0;c=J[b+32>>2]; -if(c>>>0>31)break o;J[b+32>>2]=c+1;if(!K[b+28|0])break p;H[r|0]=0;H[r+1|0]=0;g=1}}if(!g)break n;v=v+1|0;if((k|0)!=(v|0))continue;break}break m}c=J[b+32>>2];if(c>>>0>31)break l;J[b+32>>2]=c+1;if(!K[b+28|0])break l;H[q|0]=0;H[q+1|0]=0}d=1}xb=u+16|0;if(!d)break i;w=w+1|0;if((l|0)!=(w|0))continue;break}break i}d=0}xb=t+16|0;if(d)break h;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[p|0]=0;H[p+1|0]=0}c=a+10|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[c|0]|K[c+ -1|0]<<8;x:{if(!d)break x;if(zh(((d<<8|d>>>8)&65535)+a|0,b))break x;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);y:{if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0<65538)break y;h=J[b+12>>2];c=h;k=a+12|0;f=J[b+4>>2];if(c>>>0>>0)break a;e=J[b+8>>2];if(e-k>>>0<2)break a;g=K[k|0]|K[k+1|0]<<8;if(!g)break y;d=0;l=((g<<8|g>>>8)&65535)+a|0;z:{if(c>>>0>>0|e-l>>>0<2)break z;d=1;if((K[l|0]|K[l+1|0]<<8)!= -256)break z;d=0;g=l+2|0;A:{if(c>>>0>>0|e-g>>>0<2)break A;c=l+4|0;if(h>>>0>>0)break A;h=e-c|0;c=K[l+2|0]|K[l+3|0]<<8;c=((c<<8|c>>>8)&65535)<<2;if(h>>>0>>0)break A;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break A;d=1;c=K[g|0]|K[g+1|0]<<8;if(!c)break A;d=(c<<8|c>>>8)&65535;e=d>>>0<=1?1:d;f=0;while(1){d=0;g=(l+(f<<2)|0)+4|0;if(M[b+12>>2]>2]>>>0)break A;if(J[b+8>>2]-g>>>0<4)break A;if(K[g|0]&128)break A;d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);B:{if(!d)break B;if(Ld(b,l+ -(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0))break B;d=0;c=J[b+32>>2];if(c>>>0>31)break A;J[b+32>>2]=c+1;if(!K[b+28|0])break A;H[g|0]=0;H[g+1|0]=0;H[g+2|0]=0;H[g+3|0]=0}d=1;f=f+1|0;if((e|0)!=(f|0))continue;break}}}if(d)break y;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[k|0]=0;H[k+1|0]=0}d=1;c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);C:{if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0<65539)break C;e=a+14|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<4|K[e|0]&128)break a; -c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(!c)break C;if(yi((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0,b))break C;a=J[b+32>>2];if(a>>>0>31)break a;J[b+32>>2]=a+1;d=0;if(!K[b+28|0])break C;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0;d=1}return d}return 0}function vfa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=J[a+76>>2];b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}b=J[a+424>>2];a:{b:{if((d|0)==3){c=10;if(J[a+80>>2]==3)break a;break b}if((d|0)< -5)break b;c=P(d,6);break a}c=d<<2|2}if(!((c|0)<=J[a+428>>2]?b:0)){b=(c|0)<=10?10:c;J[a+428>>2]=b;b=Ab[J[J[a+4>>2]>>2]](a,0,P(b,36))|0;J[a+424>>2]=b}J[a+200>>2]=c;J[a+204>>2]=b;c:{d:{e:{f:{if((d|0)!=3){g:{h:{i:{if((d|0)>=5){g=d&3;c=0;if(d-1>>>0>=3)break i;a=0;break h}J[b>>2]=d;j:{if((d|0)<=0)break j;J[b+4>>2]=0;if((d|0)==1)break j;J[b+8>>2]=1;if((d|0)==2)break j;J[b+12>>2]=2;if((d|0)==3)break j;J[b+16>>2]=3}J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;b=b+36|0;break g}h=d&-4;a=0;while(1){J[b+ -108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=1;J[b+128>>2]=0;J[b+132>>2]=0;J[b+112>>2]=a|3;J[b+100>>2]=0;J[b+104>>2]=1;J[b+92>>2]=0;J[b+96>>2]=0;J[b+76>>2]=a|2;i=b- -64|0;J[i>>2]=0;J[i+4>>2]=1;J[b+56>>2]=0;J[b+60>>2]=0;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!g)break g;while(1){J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+ -1|0;if((g|0)!=(c|0))continue;break}}if((d|0)<=0)break f;g=d&3;c=0;h=d-1|0;k:{if(h>>>0<3){a=0;break k}i=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=1;J[b+24>>2]=5;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=1;J[b+132>>2]=5;J[b+112>>2]=a|3;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=1;J[b+96>>2]=5;J[b+76>>2]=a|2;f=b- -64|0;J[f>>2]=0;J[f+4>>2]=2;J[b+56>>2]=1;J[b+60>>2]=5;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((i|0)!=(e|0))continue; -break}}if(g)while(1){J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=1;J[b+24>>2]=5;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}g=d&3;c=0;l:{if(h>>>0<3){a=0;break l}i=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=6;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=6;J[b+132>>2]=63;J[b+112>>2]=a|3;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=6;J[b+96>>2]=63;J[b+76>>2]=a|2;f=b- -64|0;J[f>>2]=0;J[f+4>>2]= -2;J[b+56>>2]=6;J[b+60>>2]=63;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(g)while(1){J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=6;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}i=d&3;g=0;m:{if(h>>>0<3){c=0;break m}f=d&-4;c=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=2;J[b+32>>2]=1;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=c;J[b>>2]=1;J[b+136>>2]=2;J[b+140>>2]=1;J[b+128>>2]=1;J[b+132>>2]=63;J[b+112>>2]=c|3;J[b+100>> -2]=2;J[b+104>>2]=1;J[b+92>>2]=1;J[b+96>>2]=63;J[b+76>>2]=c|2;a=b- -64|0;J[a>>2]=2;J[a+4>>2]=1;a=b;J[b+56>>2]=1;J[b+60>>2]=63;J[b+40>>2]=c|1;c=c+4|0;b=b+144|0;e=e+4|0;if((f|0)!=(e|0))continue;break}e=a+108|0}if(i)while(1){e=b;J[b+28>>2]=2;J[b+32>>2]=1;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=c;J[b>>2]=1;c=c+1|0;b=b+36|0;g=g+1|0;if((i|0)!=(g|0))continue;break}n:{o:{if((d|0)>=5){g=d&3;c=0;if(h>>>0>=3)break o;a=0;break n}J[b>>2]=d;g=0;a=0;if(h>>>0>=7){i=d&-8;c=e+40|0;h=0;while(1){J[c+(a<<2)>>2]=a;f=a|1;J[c+ -(f<<2)>>2]=f;f=a|2;J[c+(f<<2)>>2]=f;f=a|3;J[c+(f<<2)>>2]=f;f=a|4;J[c+(f<<2)>>2]=f;f=a|5;J[c+(f<<2)>>2]=f;f=a|6;J[c+(f<<2)>>2]=f;f=a|7;J[c+(f<<2)>>2]=f;a=a+8|0;h=h+8|0;if((i|0)!=(h|0))continue;break}}c=d&7;if(!c)break e;while(1){J[((a<<2)+e|0)+40>>2]=a;a=a+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}break e}h=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=1;J[b+140>>2]=0;J[b+128>>2]=0;J[b+132>>2]=0; -J[b+112>>2]=a|3;J[b+100>>2]=1;J[b+104>>2]=0;J[b+92>>2]=0;J[b+96>>2]=0;J[b+76>>2]=a|2;i=b- -64|0;J[i>>2]=1;J[i+4>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!g)break d;while(1){J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}break d}c=8;a=J[a+80>>2];J[b+8>>2]=1;J[b+12>>2]=2;J[b>>2]=3;J[b+4>>2]=0;J[b+72>>2]=1;d=b- -64|0;J[d>>2]=0;J[d+4>>2]=2;J[b+56>>2]=1; -J[b+60>>2]=5;J[b+36>>2]=1;J[b+40>>2]=0;J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;p:{if((a|0)!=3){J[b+360>>2]=3;J[b+324>>2]=1;J[b+328>>2]=2;J[b+288>>2]=1;J[b+292>>2]=1;J[b+252>>2]=1;J[b+256>>2]=0;J[b+216>>2]=1;J[b+220>>2]=2;J[b+200>>2]=6;J[b+204>>2]=63;J[b+180>>2]=1;J[b+184>>2]=1;J[b+172>>2]=0;J[b+176>>2]=2;J[b+164>>2]=6;J[b+168>>2]=63;J[b+144>>2]=1;J[b+148>>2]=0;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=1;J[b+132>>2]=5;J[b+108>>2]=1;J[b+112>>2]=2;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=1;J[b+ -96>>2]=5;J[b+76>>2]=1;J[b+352>>2]=2;J[b+356>>2]=1;J[b+344>>2]=1;J[b+348>>2]=63;J[b+316>>2]=2;J[b+320>>2]=1;J[b+308>>2]=1;J[b+312>>2]=63;J[b+280>>2]=2;J[b+284>>2]=1;J[b+272>>2]=1;J[b+276>>2]=63;J[b+244>>2]=0;J[b+248>>2]=2;J[b+236>>2]=6;J[b+240>>2]=63;J[b+208>>2]=0;J[b+212>>2]=2;e=2;g=13;c=12;d=0;h=11;i=b+364|0;a=10;break p}J[b+216>>2]=3;J[b+200>>2]=1;J[b+204>>2]=63;J[b+180>>2]=1;J[b+184>>2]=0;J[b+172>>2]=0;J[b+176>>2]=2;J[b+164>>2]=6;J[b+168>>2]=63;J[b+144>>2]=1;J[b+148>>2]=0;J[b+136>>2]=0;J[b+140>> -2]=1;J[b+128>>2]=1;J[b+132>>2]=63;J[b+108>>2]=1;J[b+112>>2]=1;J[b+100>>2]=0;J[b+104>>2]=1;J[b+92>>2]=1;J[b+96>>2]=63;d=2;J[b+76>>2]=2;J[b+208>>2]=2;J[b+212>>2]=1;g=9;h=7;i=b+220|0;a=6}J[i>>2]=0;a=P(a,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+8>>2]=1;J[a+12>>2]=2;a=P(h,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=1;J[a+24>>2]=63;J[a+4>>2]=d;J[a>>2]=1;a=P(c,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=1;J[a+24>>2]=63;J[a>>2]=1;J[a+4>>2]=1;a=P(g,36)+b|0;J[a+28>>2]=1;J[a+32>>2]= -0;J[a+20>>2]=1;J[a+24>>2]=63;J[a+4>>2]=e;J[a>>2]=1;break c}J[b>>2]=d}J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;b=b+36|0}if((d|0)<=0)break c;g=d&3;c=0;q:{if(d-1>>>0<3){a=0;break q}d=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=1;J[b+140>>2]=0;J[b+128>>2]=1;J[b+132>>2]=63;J[b+112>>2]=a|3;J[b+100>>2]=1;J[b+104>>2]=0;J[b+92>>2]=1;J[b+96>>2]=63;J[b+76>>2]=a|2;h=b- -64|0;J[h>>2]=1;J[h+4>>2]= -0;J[b+56>>2]=1;J[b+60>>2]=63;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((d|0)!=(e|0))continue;break}}if(!g)break c;while(1){J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}}}function Uk(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;g=xb-80|0;xb=g;o=J[a>>2];a:{if(f)break a;h=J[a+4>>2];if(K[h+12|0])break a;i=J[d>>2];J[g+68>>2]=0;J[g+72>>2]=0;J[g+60>>2]=0;J[g+64>>2]= -0;J[g+52>>2]=0;J[g+56>>2]=0;J[g+48>>2]=i;Uk(h,b,c,g+48|0,e,1)}b:{c:{d:{if(K[d+4|0])break d;h=J[c+20>>2]+J[b+20>>2]|0;e:{if(h>>>0>=97){b=J[d>>2];if(!b|J[b>>2])break e;J[b>>2]=18;break e}J[d+8>>2]=h;I[d+4>>1]=257;J[d+12>>2]=h+7>>>3;if(!h)break d;c=0;h=-1<<(0-h&7);while(1){H[(c+d|0)+16|0]=255;c=c+1|0;i=J[d+12>>2];if(c>>>0>>0)continue;break}c=d+i|0;H[c+15|0]=h&K[c+15|0];if(K[d+4|0])break d}if(!K[o+8|0])break b;J[J[d>>2]>>2]=0;a=a+13|0;break c}J[a+20>>2]=0;J[a+24>>2]=0;J[g+72>>2]=J[d+24>>2];h=J[d+20>> -2];s=g- -64|0;c=s;J[c>>2]=J[d+16>>2];J[c+4>>2]=h;c=J[d+12>>2];J[g+56>>2]=J[d+8>>2];J[g+60>>2]=c;c=J[d+4>>2];J[g+48>>2]=J[d>>2];J[g+52>>2]=c;t=J[b+20>>2];if(t>>>0>M[d+8>>2])break b;if(K[o+249|0]){J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;c=g+24|0;Tk(a,o+288|0,c);Tk(a,c,o+268|0)}f:{g:{if(t){j=s;u=128;while(1){h:{if(!(K[j|0]&u))break h;n=J[a+16>>2];J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;c=m;i=J[b+20>>2];i:{if(c>>>0>>0)break i;c=0;h=J[b+4>>2];if(!h| -J[h>>2])break i;J[h>>2]=130}j:{k:{c=J[b+28>>2]+P(J[b+8>>2],c)|0;h=J[c+8>>2];k=J[c+4>>2];l=h-k|0;if((l|0)==-1376256)k=1;else{if((l|0)==-1310720){J[g+40>>2]=n;J[g+32>>2]=e;k=0;J[g+24>>2]=0;J[g+28>>2]=m;l=e;break k}h=(l|0)<0?h:k;k=4}J[g+40>>2]=n;J[g+24>>2]=k;J[g+28>>2]=m;l=e+h|0;J[g+32>>2]=l;if(!K[c|0])break k;r=J[c+12>>2];k=k|16;J[g+24>>2]=k;J[g+36>>2]=r;break j}r=Rb(l,n);J[g+36>>2]=r;i=J[b+20>>2]}h=J[a+16>>2];J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;c=m;l:{if(i>>>0>c>>>0)break l; -c=0;i=J[b+4>>2];if(!i|J[i>>2])break l;J[i>>2]=130}m:{n:{c=J[b+28>>2]+P(J[b+8>>2],c)|0;p=J[c+8>>2];i=J[c+4>>2];n=p-i|0;if((n|0)==-1310720)n=2;else{if((n|0)==-1376256){J[g+16>>2]=h;J[g+8>>2]=e;n=0;J[g>>2]=0;J[g+4>>2]=m;i=e;break n}i=(n|0)<0?i:p;n=8}J[g>>2]=n;p=J[o+232>>2];J[g+16>>2]=h;J[g+4>>2]=m;i=(e+i|0)+(p<<1)|0;J[g+8>>2]=i;if(!K[c|0])break n;p=J[c+16>>2];n=n|16;J[g>>2]=n;break m}p=Rb(i,h)}J[g+12>>2]=p;o:{if((k|n)&16)break o;v=J[o+244>>2];if(!v)break h;q=J[o+260>>2];h=n&10;p:{q:{r:{if(!(k&5)){c= -0;if(!h)break h;while(1){h=P(c,20)+o|0;s:{if(K[h+324|0])break s;w=J[h+308>>2];if((w-q|0)>(i|0))break s;if((J[h+312>>2]+q|0)>=(i|0))break r}c=c+1|0;if((v|0)!=(c|0))continue;break}break h}c=0;if(!h)while(1){h=P(c,20)+o|0;if(!(!K[h+324|0]|(J[h+308>>2]-q|0)>(l|0))){h=J[h+312>>2];if((q+h|0)>=(l|0))break q}c=c+1|0;if((v|0)!=(c|0))continue;break h}while(1){h=P(c,20)+o|0;w=J[h+308>>2];x=w-q|0;t:{if(K[h+324|0]){if((l|0)<(x|0))break t;h=J[h+312>>2];if((q+h|0)<(l|0))break t;break q}if((i|0)<(x|0))break t;if((J[h+ -312>>2]+q|0)>=(i|0))break r}c=c+1|0;if((v|0)!=(c|0))continue;break}break h}h=J[(P(c,20)+o|0)+320>>2];u:{if(K[o+248|0])break u;h=p+32768&-65536;if(J[o+256>>2]>(i-w|0))break u;c=J[(P(c,20)+o|0)+320>>2]+65536|0;h=(c|0)<(h|0)?h:c}c=h-p|0;if(!k)break p;J[g+24>>2]=k|16;J[g+36>>2]=c+r;break p}i=J[(P(c,20)+o|0)+320>>2];v:{if(K[o+248|0])break v;i=r+32768&-65536;if(J[o+256>>2]>(h-l|0))break v;c=J[(P(c,20)+o|0)+320>>2]-65536|0;i=(c|0)>(i|0)?i:c}J[g+24>>2]=k|16;J[g+36>>2]=i;if(!n)break o;c=i-r|0}J[g>>2]=n|16; -J[g+12>>2]=c+p}Tk(a,g+24|0,g);H[j|0]=K[j|0]&(u^-1)}c=(m&7)==7;u=c?128:u>>>1&127;j=c+j|0;m=m+1|0;if((t|0)!=(m|0))continue;break}if(f)break g;if(!t)break f;m=128;c=0;while(1){if(K[s|0]&m){l=J[a+16>>2];J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;i=c;h=J[b+20>>2];w:{if(h>>>0>c>>>0)break w;i=0;j=J[b+4>>2];if(!j|J[j>>2])break w;J[j>>2]=130}x:{y:{i=J[b+28>>2]+P(J[b+8>>2],i)|0;j=J[i+8>>2];n=J[i+4>>2];k=j-n|0;if((k|0)==-1376256)k=1;else{if((k|0)==-1310720){J[g+40>>2]=l;J[g+32>>2]=e;J[g+ -24>>2]=0;J[g+28>>2]=c;j=e;break y}j=(k|0)<0?j:n;k=4}J[g+40>>2]=l;J[g+24>>2]=k;J[g+28>>2]=c;j=e+j|0;J[g+32>>2]=j;if(!K[i|0])break y;i=J[i+12>>2];J[g+24>>2]=k|16;J[g+36>>2]=i;break x}y=g,z=Rb(j,l),J[y+36>>2]=z;h=J[b+20>>2]}j=J[a+16>>2];J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;i=c;z:{if(c>>>0>>0)break z;i=0;h=J[b+4>>2];if(!h|J[h>>2])break z;J[h>>2]=130}A:{B:{i=J[b+28>>2]+P(J[b+8>>2],i)|0;k=J[i+8>>2];h=J[i+4>>2];l=k-h|0;if((l|0)==-1310720)l=2;else{if((l|0)==-1376256){J[g+16>>2]= -j;J[g+8>>2]=e;J[g>>2]=0;J[g+4>>2]=c;h=e;break B}h=(l|0)<0?h:k;l=8}J[g>>2]=l;k=J[o+232>>2];J[g+16>>2]=j;J[g+4>>2]=c;h=(e+h|0)+(k<<1)|0;J[g+8>>2]=h;if(!K[i|0])break B;h=J[i+16>>2];J[g>>2]=l|16;J[g+12>>2]=h;break A}y=g,z=Rb(h,j),J[y+12>>2]=z}Tk(a,g+24|0,g)}h=(c&7)==7;m=h?128:m>>>1&127;s=h+s|0;c=c+1|0;if((t|0)!=(c|0))continue;break}break f}if(!f)break f}c=J[a+20>>2];if(!(!c|J[a+36>>2]>0)&J[(P(c,20)+a|0)+16>>2]>=0)break f;J[g+36>>2]=0;J[g+28>>2]=0;J[g+32>>2]=0;J[g+24>>2]=49;c=J[a+16>>2];J[g+8>>2]=0;J[g+ -12>>2]=0;J[g+16>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[g+40>>2]=c;Tk(a,g+24|0,g)}i=0;m=J[a+8>>2];J[m+20>>2]=0;l=J[a+20>>2];if(l){c=0;while(1){i=c+1|0;n=P(c,20);j=n+a|0;e=J[j+28>>2];s=e&12;C:{if(e&16)break C;e=a+28|0;q=e+n|0;p=J[q+12>>2];h=p&65535;k=h?65536-h|0:0;o=s?i:c;r=e+P(o,20)|0;t=J[r+12>>2];m=t&65535;e=m?65536-m|0:0;e=e>>>0>k>>>0?k:e;k=(h|0)<(m|0)?h:m;m=0-k|0;D:{E:{if(o>>>0>>0){l=P(o+1|0,20)+a|0;if(J[l+40>>2]<((e+t|0)+32768|0))break E}if(!(!c|J[j+20>>2]<=((p-k|0)-32768|0))){h=e;break D}h=e>>>0> -k>>>0?m:e;break D}F:{if(c){h=0;if(J[j+20>>2]>((p-k|0)-32768|0))break F}h=m;if(e>>>0>>0)break F;break D}if(K[l+28|0]&16)break D;J[g+24>>2]=o;J[g+28>>2]=e-h;lw(J[a+8>>2],g+24|0);p=J[q+12>>2]}J[q+12>>2]=h+p;if(!s)break C;J[r+12>>2]=J[r+12>>2]+h}G:{if(!c)break G;e=J[j+36>>2];h=J[j+16>>2];if((e|0)==(h|0))break G;m=a+28|0;j=m+P(c-1|0,20)|0;y=j,z=dc(J[(m+n|0)+12>>2]-J[j+12>>2]|0,e-h|0),J[y+16>>2]=z}if(s){c=a+28|0;e=c+P(i,20)|0;h=J[e+8>>2];c=c+n|0;m=J[c+8>>2];if((h|0)!=(m|0))y=c,z=dc(J[e+12>>2]-J[c+12>> -2]|0,h-m|0),J[y+16>>2]=z;c=i}c=c+1|0;l=J[a+20>>2];if(c>>>0>>0)continue;break}m=J[a+8>>2];i=l}c=J[m+20>>2];if(c){h=J[m+8>>2];m=J[m+28>>2];while(1){c=c-1|0;j=m+P(h,c)|0;e=P(J[j>>2],20)+a|0;j=J[j+4>>2];l=j+J[e+40>>2]|0;H:{if(J[e+60>>2]<(l+32768|0))break H;J[e+40>>2]=l;if(!(K[e+28|0]&12))break H;J[e+20>>2]=j+J[e+20>>2]}if(c)continue;break}}if(!(!i|f)){c=0;while(1){e=P(c,20)+a|0;h=J[e+28>>2];if(!(h&32)){i=J[e+32>>2];I:{if(i>>>0>2])break I;i=0;f=J[b+4>>2];if(!f|J[f>>2])break I;J[f>>2]=130;h= -J[e+28>>2]}f=J[b+28>>2]+P(J[b+8>>2],i)|0;J[f+(h&10?16:12)>>2]=J[e+40>>2];H[f|0]=1;i=J[a+20>>2]}c=c+1|0;if(i>>>0>c>>>0)continue;break}}H[a+12|0]=1;a=d+5|0}H[a|0]=0}xb=g+80|0}function roa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=Q(0),q=0,r=0,s=0,t=0;i=J[a+24>>2];b=i+188|0;while(1){a:{h=J[b>>2];if(h)break a;if(!J[i+48>>2]){h=169776;break a}h=sI(b);if(!h)h=169776;k=J[b>>2];J[b>>2]=k?k:h;if(!k)break a;wc(h);continue}break}b:{if(bI(M[h+16>>2]<14? -169776:J[h+12>>2],a,c,d,e,f,g,1))break b;i=J[a+24>>2];h=i+204|0;while(1){c:{b=J[h>>2];if(b)break c;if(!J[i+48>>2]){b=169776;break c}k=J[h-156>>2];b=vc(1,4);if(b)d:{f=xb-48|0;xb=f;J[b>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;J[195395]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;I[f+44>>1]=0;J[f+40>>2]=65536;j=_(584,k|0)|0;l=J[195395];J[195395]=0;e:{f:{if((l|0)==1)break f;J[f+40>>2]= -j;J[195395]=0;H[f+44|0]=1;k=ca(585,k|0,1398163232)|0;j=J[195395];J[195395]=0;if((j|0)==1)break f;J[195395]=0;k=ca(700,f|0,k|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break f;J[b>>2]=k;k=J[f+36>>2];if(k){J[195395]=0;ea(583,k|0);k=J[195395];J[195395]=0;if((k|0)==1)break e}xb=f+48|0;break d}a=Z()|0;ed(f);ba(a|0);B()}ga(0)|0;_b();B()}f=J[h>>2];b=b?b:169776;J[h>>2]=f?f:b;if(!f)break c;vt(b);continue}break}f=169776;j=J[b>>2];b=j?j:169776;b=M[b+16>>2]<10?169776:J[b+12>>2];h=K[b+2|0]|K[b+3|0]<<8|(K[b+4|0]<< -16|K[b+5|0]<<24);g:{if(!h)break g;o=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);b=o+b|0;h=K[b|0]|K[b+1|0]<<8;h:{if(!h)break h;l=b+2|0;b=((h<<8|h>>>8)&65535)-1|0;h=0;while(1){k=b+h>>>1|0;i=l+P(k,12)|0;n=K[i|0]|K[i+1|0]<<8;i:{if(((n<<8|n>>>8)&65535)>>>0<=c>>>0){h=K[i+2|0]|K[i+3|0]<<8;if(((h<<8|h>>>8)&65535)>>>0>>0){h=k+1|0;break i}f=l+P(k,12)|0;break h}b=k-1|0}if((b|0)>=(h|0))continue;break}}b=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);h=o+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;b=K[f+8|0]| -K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);b=tj(j,h,b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24));if((b|0)==169776)break g;h=J[d+40>>2];p=N[a+60>>2];f=J[d+68>>2];if(f)f=J[f+28>>2];else f=0;Ab[h|0](d,e,b,0,0,1937139488,p,0,f)|0;Ub(b);m=1}if(m)break b;k=J[a+24>>2];f=k+196|0;while(1){j:{b=J[f>>2];if(b)break j;if(!J[k+48>>2]){b=169776;break j}b=rI(f);if(!b)b=169776;h=J[f>>2];J[f>>2]=h?h:b;if(!h)break j;qI(b);continue}break}h=0;o=xb-32|0;xb=o;k=c;f=0;k:{l:{i=J[b>>2];i=i?i:169776;l=M[i+16>>2]<8?169776:J[i+12>> -2];m=K[l+5|0]<<8;n=K[l+6|0]<<16|K[l+7|0]<<24;i=K[l+4|0]|m|n;c=169776;m:{if(!i)break m;c=J[a+92>>2];j=J[a+88>>2];m=n|(m|K[l+4|0])?l+8|0:169776;q=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);if(q>>>0>=2){c=c>>>0>>0?j:c;r=c?c:1073741824;c=K[l+52|0];i=K[m+45|0];i=c>>>0>i>>>0?c:i;c=1;while(1){m=169776;s=169776;n=K[l+4|0]|K[l+5|0]<<8|(K[l+6|0]<<16|K[l+7|0]<<24);j=(n&65280)<<8;t=n>>>8&65280|n>>>24;n=n<<24|j;j=t|n;if(j>>>0>c>>>0){s=(l+P(c,48)|0)+8|0;j=n|t}m=c>>>0>>0?(l+P(c,48)|0)+8|0:m;j=K[s+44|0];m=K[m+ -45|0];j=j>>>0>m>>>0?j:m;if(!(!(j>>>0>=r>>>0&i>>>0>j>>>0)&(i>>>0>=r>>>0|i>>>0>=j>>>0))){f=c;i=j}c=c+1|0;if((q|0)!=(c|0))continue;break}}i=K[l+4|0]|K[l+5|0]<<8|(K[l+6|0]<<16|K[l+7|0]<<24);c=169776;if((i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24))>>>0<=f>>>0)break m;c=(l+P(f,48)|0)+8|0}f=c;c=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);if(!c)break l;l=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=J[b>>2];c=c?c:169776; -i=i+(M[c+16>>2]<8?169776:J[c+12>>2])|0;c=0;while(1){n:{j=i+(c<<3)|0;m=K[j|0]|K[j+1|0]<<8;n=(m<<8|m>>>8)&65535;if(n>>>0<=k>>>0){j=K[j+2|0]|K[j+3|0]<<8;if(k>>>0<=((j<<8|j>>>8)&65535)>>>0)break n}c=c+1|0;if((l|0)!=(c|0))continue;break l}break}if(!K[f+44|0]|!K[f+45|0])break l;c=i+(c<<3)|0;c=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if(c)c=i+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;m=K[c+2|0]|K[c+3|0]<<8;f=k-n|0;o:{p:{q:{i=K[c|0]|K[c+1|0]<<8;switch(((i<<8|i>>>8)&65535)-1|0){case 2:break p; -case 0:break q;default:break l}}f=c+(f<<2)|0;i=K[f+12|0]|K[f+13|0]<<8|(K[f+14|0]<<16|K[f+15|0]<<24);i=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);f=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(i>>>0<=f>>>0)break l;c=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);c=f+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;f=i-f|0;break o}f=c+(f<<1)|0;i=K[f+10|0]|K[f+11|0]<<8;i=i<<8|i>>>8;f=K[f+8|0]|K[f+9|0]<<8;f=f<<8|f>>>8;if((i&65535)>>>0<=(f&65535)>>>0)break l; -f=f&65535;c=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);c=f+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;f=(i&65535)-f|0}i=J[b+4>>2];l=i?i:169776;j=J[l+16>>2];if(j>>>0>>0|f>>>0>j-c>>>0)break l;r:switch(((m<<8|m>>>8)&65535)-17|0){case 0:if(f>>>0<=8)break l;f=c+9|0;c=(j>>>0<4?169776:J[l+12>>2])+c|0;c=K[c+5|0]|K[c+6|0]<<8|(K[c+7|0]<<16|K[c+8|0]<<24);c=tj(i,f,c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24));break k;case 1:if(f>>>0<=11)break l;f=c+12|0;c=(j>>>0<4?169776:J[l+12>>2])+c|0;c=K[c+8|0]|K[c+9| -0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);c=tj(i,f,c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24));break k;case 2:break r;default:break l}if(f>>>0<=3)break l;f=c+4|0;c=(j>>>0<4?169776:J[l+12>>2])+c|0;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=tj(i,f,c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24));break k}c=169776}s:{if((c|0)==169776)break s;f=o+16|0;if(!CI(a,k,f))break s;if(!$H(b,a,k,o,0))break s;h=J[d+40>>2];i=J[o+8>>2];j=0-J[o+12>>2]|0;p=N[a+60>>2];b=J[d+68>>2];if(b)b=J[b+28>>2];else b=0;b=Ab[h|0](d,e,c,i, -j,1886283552,p,f,b)|0;Ub(c);h=(b|0)!=0}xb=o+32|0;if(h)break b;h=J[a+24>>2];c=h+200|0;while(1){t:{b=J[c>>2];if(b)break t;if(!J[h+48>>2]){b=169776;break t}b=pI(c);if(!b)b=169776;f=J[c>>2];J[c>>2]=f?f:b;if(!f)break t;vt(b);continue}break}i=xb-48|0;xb=i;c=J[b>>2];c=c?c:169776;c=M[c+16>>2]<8?169776:J[c+12>>2];u:{if(!(K[c|0]|K[c+1|0]<<8)){h=0;break u}h=0;J[i+44>>2]=0;J[i+40>>2]=0;J[i+36>>2]=0;c=nI(oI(b,a),k,J[b>>2],i+44|0,i+40|0,J[b+4>>2],i+36|0);if((c|0)==169776)break u;f=i+20|0;if(!CI(a,k,f))break u; -if(!aI(b,a,k,i+4|0,0))break u;h=J[d+40>>2];j=J[i+12>>2];l=0-J[i+16>>2]|0;p=N[a+60>>2];b=J[d+68>>2];if(b)b=J[b+28>>2];else b=0;b=Ab[h|0](d,e,c,j,l,1886283552,p,f,b)|0;Ub(c);h=(b|0)!=0}xb=i+48|0;if(h)break b;h=J[a+24>>2];b=h+108|0;v:{if(J[b>>2])break v;while(1){if(!J[h+48>>2])break v;f=Hk(b);if(!f)f=169776;c=J[b>>2];J[b>>2]=c?c:f;if(!c)break v;Gk(f);if(!J[b>>2])continue;break}}c=J[d+24>>2];b=J[d+68>>2];if(b)b=J[b+12>>2];else b=0;Ab[c|0](d,e,k,a,b);b=J[d+36>>2];a=J[d+68>>2];if(a)a=J[a+24>>2];else a= -0;Ab[b|0](d,e,1,g,a);b=J[d+32>>2];a=J[d+68>>2];if(a)a=J[a+20>>2];else a=0;Ab[b|0](d,e,a)}}function qoa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=Q(0),l=0,m=0,n=0,o=0,p=0,q=Q(0),r=Q(0),s=Q(0),t=0,u=0,v=0,w=0;m=J[b>>2];e=J[m+152>>2];a:{if(e)break a;b=m+152|0;while(1){if(!J[m>>2]){e=169776;break a}e=pI(b);if(!e)e=169776;i=J[b>>2];J[b>>2]=i?i:e;if(!i)break a;vt(e);e=J[b>>2];if(!e)continue;break}}b=1;b:{if(aI(e,a,c,d,1))break b;e=J[m+148>>2];c:{if(e)break c;b=m+148|0;while(1){if(!J[m>> -2]){e=169776;break c}e=rI(b);if(!e)e=169776;i=J[b>>2];J[b>>2]=i?i:e;if(!i)break c;qI(e);e=J[b>>2];if(!e)continue;break}}b=1;if($H(e,a,c,d,1))break b;e=J[m+140>>2];d:{if(e)break d;i=m+140|0;while(1){if(!J[m>>2]){e=169776;break d}e=sI(i);if(!e)e=169776;h=J[i>>2];J[i>>2]=h?h:e;if(!h)break d;wc(e);e=J[i>>2];if(!e)continue;break}}l=xb-48|0;xb=l;e:{f:{e=M[e+16>>2]<14?169776:J[e+12>>2];g:{if((K[e|0]|K[e+1|0]<<8)!=256)break g;g=169776;i=169776;h=K[e+30|0]|K[e+31|0]<<8|(K[e+32|0]<<16|K[e+33|0]<<24);if(h)i= -e+(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))|0;h=K[e+26|0]|K[e+27|0]<<8|(K[e+28|0]<<16|K[e+29|0]<<24);if(h)g=e+(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))|0;h=J[a+104>>2];p=J[a+108>>2];J[l+24>>2]=0;v=l,w=Ppa(h,p),J[v+16>>2]=w;J[l+20>>2]=zb;J[l+12>>2]=g;J[l+8>>2]=i;g=K[e+22|0]|K[e+23|0]<<8|(K[e+24|0]<<16|K[e+25|0]<<24);if(g)g=e+(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))|0;else g=169776;if(Ho(g,c,d,l+8|0)){ri(a,d);g=1;break g}g=_F();h=NH(l+8|0);J[195395]=0;g=Ba(739,e|0,a|0,c|0,g|0,h|0,0,0,1)|0;e=J[195395]; -J[195395]=0;if((e|0)==1)break f;i=0;e=J[h+28>>2];h:{if(!e){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445];J[194120]=J[42444];J[194121]=e;e=776480;break h}e=(J[h+32>>2]+P(e,20)|0)-20|0}k=N[e+4>>2];q=N[e+12>>2];p=0;i:{if(k>q)break i;r=N[e+16>>2];s=Q(N[e+8>>2]-r);j:{if(Q(R(s))>2]=f;J[d+8>>2]=i;J[d+4>>2]=j;J[d>>2]=p;if(J[h+24>>2]){J[h+28>>2]=0;Kb(J[h+32>>2])}J[h+24>>2]=0;J[h+28>>2]=0;J[h+32>>2]=0;if(J[h+12>>2]){J[h+16>>2]=0;Kb(J[h+20>>2])}J[h+12>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;if(!J[h>>2])break g;J[h+4>>2]=0;Kb(J[h+8>>2])}xb=l+48|0;break e}a=Z()|0;kt(h);ba(a|0);B()}if(g)break b;e=J[m+60>>2];l:{if(e)break l;g=m+60|0;while(1){if(!J[m>>2]){e=169776;break l}e=Hk(g);if(!e)e=169776;f=J[g>>2];J[g>>2]=f?f:e;if(!f)break l;Gk(e);e=J[g>>2];if(!e)continue;break}}if(eI(e,a,c,d))break b; -e=J[m+68>>2];m:{if(e)break m;g=m+68|0;while(1){if(!J[m>>2]){e=169776;break m}e=dI(g);if(!e)e=169776;f=J[g>>2];J[g>>2]=f?f:e;if(!f)break m;cI(e);e=J[g>>2];if(!e)continue;break}}g=0;f=xb-4512|0;xb=f;n:{if(!J[e+48>>2]|M[e+132>>2]<=c>>>0)break n;g=uI(J[e+100>>2],c);qi(f+4496|0,J[e+92>>2],c);t=g>>>0>=M[e+124>>2]?169776:J[e+128>>2]+P(g,28)|0;h=J[t+20>>2];p=J[a+104>>2];u=J[a+108>>2];l=J[e+84>>2];H[f+64|0]=0;Nb(f+68|0,0,4108);g=f+4240|0;J[g>>2]=0;J[g+4>>2]=0;J[f+4248>>2]=0;g=f+4260|0;J[g>>2]=0;J[g+4>>2]= -0;J[f+4268>>2]=0;g=f+4280|0;J[g>>2]=0;J[g+4>>2]=0;J[f+4288>>2]=0;g=f+4300|0;J[g>>2]=0;J[g+4>>2]=0;J[f+4308>>2]=0;g=f+4320|0;J[g>>2]=0;J[g+4>>2]=0;J[f+4328>>2]=0;g=f+4340|0;J[g>>2]=0;J[g+4>>2]=0;J[f+4348>>2]=0;J[f+4368>>2]=0;g=f+4360|0;J[g>>2]=0;J[g+4>>2]=0;J[f+4388>>2]=0;g=f+4380|0;J[g>>2]=0;J[g+4>>2]=0;H[f+4212|0]=0;J[f+56>>2]=0;g=J[f+4500>>2];i=J[f+4496>>2];J[f+48>>2]=i;J[f+52>>2]=g;J[f+4408>>2]=0;j=f+4400|0;J[j>>2]=0;J[j+4>>2]=0;j=f+4224|0;J[j>>2]=0;J[j+4>>2]=0;j=f+4216|0;J[j>>2]=0;J[j+4>>2]=0; -J[f+4192>>2]=0;j=f+4184|0;J[j>>2]=0;J[j+4>>2]=0;j=f+4448|0;J[j>>2]=0;J[j+4>>2]=0;J[f+4424>>2]=l;J[f+4176>>2]=i;J[f+4180>>2]=g;J[f+4208>>2]=0;J[f+4200>>2]=0;J[f+4204>>2]=0;H[f+4197|0]=1;H[f+4198|0]=0;J[f+4440>>2]=0;J[f+4444>>2]=0;j=107;i=107;o:{if(!l)break o;l=K[l|0]|K[l+1|0]<<8|(K[l+2|0]<<16|K[l+3|0]<<24);l=l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24);i=107;if(l>>>0<1240)break o;i=l>>>0<33900?1131:32768}J[f+4432>>2]=h;J[f+4420>>2]=i;p:{if(!h)break p;i=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);i=i<< -24|(i&65280)<<8|(i>>>8&65280|i>>>24);if(i>>>0<1240)break p;j=i>>>0<33900?1131:32768}J[f+4460>>2]=p;J[f+4456>>2]=u;J[f+4428>>2]=j;e=J[e+88>>2];J[f+4484>>2]=0;J[f+4464>>2]=e;H[f+4489|0]=0;H[f+4490|0]=0;J[f+4476>>2]=0;J[f+4480>>2]=0;i=0;q:{if(!u)break q;i=0;if(!p)break q;i=(K[e|0]|K[e+1|0]<<8)!=0}H[f+4488|0]=i;J[f+4472>>2]=J[t+24>>2];H[f+4196|0]=0;J[f+40>>2]=0;J[f+44>>2]=-1042284544;J[f+32>>2]=0;J[f+36>>2]=-1042284544;J[f+24>>2]=-4194304;J[f+28>>2]=1105199103;J[f+16>>2]=-4194304;J[f+20>>2]=1105199103; -H[f+8|0]=0;i=1E4;e=0;r:{s:{t:{while(1){h=e+1|0;u:{if(h>>>0<=g>>>0){l=J[f+48>>2];j=K[l+e|0];J[f+56>>2]=h;if((j|0)!=12)break u;e=e+2|0;if(e>>>0>g>>>0){j=65535;break u}g=K[h+l|0];J[f+56>>2]=e;j=g|256;break u}j=J[f+4216>>2]?11:14}J[195395]=0;fa(695,j|0,f+48|0,f+8|0);e=J[195395];J[195395]=0;if((e|0)==1)break t;if(K[f+4212|0]){g=J[f+52>>2];break s}e=J[f+56>>2];g=J[f+52>>2];if(K[f+64|0]|e>>>0>g>>>0)break s;i=i-1|0;if(!i)break s;if(!K[f+4196|0])continue;break}j=0;e=0;n=O[f+32>>3];o=O[f+16>>3];g=0;v:{if(!(n> -o))break v;k=Q(V(Q(Q(o)+Q(.5))));w:{if(Q(R(k))>2]=e;J[d+8>>2]=g;e=0;o=O[f+40>>3];n=O[f+24>>3];x:{if(!(o>n))break x;k=Q(V(Q(Q(o)+Q(.5))));y:{if(Q(R(k))>2]=e;J[d+12>>2]=j;J[195395]=0;ri(a,d);e=J[195395];J[195395]=0;g=1;if((e|0)!=1)break r}a= -Z()|0;if(J[f+4476>>2]){J[f+4480>>2]=0;Kb(J[f+4484>>2])}ba(a|0);B()}J[f+56>>2]=g+1;g=0}if(!J[f+4476>>2])break n;J[f+4480>>2]=0;Kb(J[f+4484>>2])}xb=f+4512|0;if(g)break b;b=J[m+64>>2];z:{if(b)break z;e=m- -64|0;while(1){if(!J[m>>2]){b=169776;break z}b=Jo(e);if(!b)b=169776;g=J[e>>2];J[e>>2]=g?g:b;if(!g)break z;Io(b);b=J[e>>2];if(!b)continue;break}}g=0;e=xb-32|0;xb=e;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;c=At(b,c,e,0);if(c){b=0;n=O[e+16>>3]; -o=O[e>>3];A:{if(!(n>o))break A;k=Q(V(Q(Q(o)+Q(.5))));B:{if(Q(R(k))>2]=b;J[d+8>>2]=g;b=0;o=O[e+24>>3];n=O[e+8>>3];g=0;C:{if(!(o>n))break C;k=Q(V(Q(Q(o)+Q(.5))));D:{if(Q(R(k))>2]=b;J[d+12>>2]=g;ri(a,d)}xb=e+32|0;b=c}return b|0}function CE(a){a= -a|0;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;c=J[a+20>>2];if((c|0)!=202){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}b=a;c=J[b+424>>2];d=P(c,J[b+48>>2]);e=J[b+52>>2];a:{if(d>>>0<=e>>>0){J[b+112>>2]=((c+J[b+28>>2]|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+J[b+32>>2]|0)-1|0)/(a|0)|0;J[b+320>>2]=1;J[b+324>>2]=1;J[b+116>>2]=a;a=1;break a}if(d>>>0<=e<<1>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<1)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<1)|0)-1|0)/(a|0)|0;J[b+320>>2]=2;J[b+324>>2]= -2;J[b+116>>2]=a;a=2;break a}a=3;if(d>>>0<=P(e,3)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],3)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],3)|0)-1|0)/(c|0)|0;J[b+320>>2]=3;J[b+324>>2]=3;J[b+116>>2]=c;break a}if(d>>>0<=e<<2>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<2)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<2)|0)-1|0)/(a|0)|0;J[b+320>>2]=4;J[b+324>>2]=4;J[b+116>>2]=a;a=4;break a}a=5;if(d>>>0<=P(e,5)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],5)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],5)|0)-1|0)/(c|0)|0;J[b+ -320>>2]=5;J[b+324>>2]=5;J[b+116>>2]=c;break a}a=6;if(d>>>0<=P(e,6)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],6)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],6)|0)-1|0)/(c|0)|0;J[b+320>>2]=6;J[b+324>>2]=6;J[b+116>>2]=c;break a}a=7;if(d>>>0<=P(e,7)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],7)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],7)|0)-1|0)/(c|0)|0;J[b+320>>2]=7;J[b+324>>2]=7;J[b+116>>2]=c;break a}if(d>>>0<=e<<3>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<3)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<3)|0)-1| -0)/(a|0)|0;J[b+320>>2]=8;J[b+324>>2]=8;J[b+116>>2]=a;a=8;break a}a=9;if(d>>>0<=P(e,9)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],9)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],9)|0)-1|0)/(c|0)|0;J[b+320>>2]=9;J[b+324>>2]=9;J[b+116>>2]=c;break a}a=10;if(d>>>0<=P(e,10)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],10)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],10)|0)-1|0)/(c|0)|0;J[b+320>>2]=10;J[b+324>>2]=10;J[b+116>>2]=c;break a}a=11;if(d>>>0<=P(e,11)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],11)|0)-1|0)/(c|0);c=J[b+424>> -2];c=((c+P(J[b+32>>2],11)|0)-1|0)/(c|0)|0;J[b+320>>2]=11;J[b+324>>2]=11;J[b+116>>2]=c;break a}a=12;if(d>>>0<=P(e,12)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],12)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],12)|0)-1|0)/(c|0)|0;J[b+320>>2]=12;J[b+324>>2]=12;J[b+116>>2]=c;break a}a=13;if(d>>>0<=P(e,13)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],13)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],13)|0)-1|0)/(c|0)|0;J[b+320>>2]=13;J[b+324>>2]=13;J[b+116>>2]=c;break a}a=14;if(d>>>0<=P(e,14)>>>0){J[b+112>>2]=((c+P(J[b+ -28>>2],14)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],14)|0)-1|0)/(c|0)|0;J[b+320>>2]=14;J[b+324>>2]=14;J[b+116>>2]=c;break a}a=15;f=J[b+28>>2];if(d>>>0<=P(e,15)>>>0){J[b+112>>2]=((c+P(f,15)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],15)|0)-1|0)/(c|0)|0;J[b+320>>2]=15;J[b+324>>2]=15;J[b+116>>2]=c;break a}J[b+112>>2]=((c+(f<<4)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<4)|0)-1|0)/(a|0)|0;J[b+320>>2]=16;J[b+324>>2]=16;J[b+116>>2]=a;a=16}e=J[b+36>>2];b:{if((e|0)<=0)break b;c=J[b+216>>2]; -if(e>>>0>=8){f=e&-8;d=0;while(1){J[c+40>>2]=a;J[c+36>>2]=a;J[c+656>>2]=a;J[c+652>>2]=a;J[c+568>>2]=a;J[c+564>>2]=a;J[c+480>>2]=a;J[c+476>>2]=a;J[c+392>>2]=a;J[c+388>>2]=a;J[c+304>>2]=a;J[c+300>>2]=a;J[c+216>>2]=a;J[c+212>>2]=a;J[c+128>>2]=a;J[c+124>>2]=a;c=c+704|0;d=d+8|0;if((f|0)!=(d|0))continue;break}}e=e&7;if(!e)break b;d=0;while(1){J[c+40>>2]=a;J[c+36>>2]=a;c=c+88|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}i=J[b+36>>2];c:{if((i|0)<=0)break c;c=J[b+216>>2];e=J[b+324>>2];l=J[b+76>>2]?8:4;f=J[b+320>> -2];d:{if((l|0)<(f|0)){h=f<<1;if((e|0)>(l|0)){d=e<<1;if((d|0)<(f|0)){a=c;if(i>>>0>=8){h=i&-8;f=0;while(1){J[a+36>>2]=d;J[a+40>>2]=e;J[a+128>>2]=e;J[a+216>>2]=e;J[a+124>>2]=d;J[a+304>>2]=e;J[a+212>>2]=d;J[a+392>>2]=e;J[a+300>>2]=d;J[a+480>>2]=e;J[a+388>>2]=d;J[a+568>>2]=e;J[a+476>>2]=d;J[a+656>>2]=e;J[a+564>>2]=d;J[a+652>>2]=d;a=a+704|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}h=i&7;if(!h)break d;f=0;while(1){J[a+36>>2]=d;J[a+40>>2]=e;a=a+88|0;f=f+1|0;if((h|0)!=(f|0))continue;break}break d}if((e|0)<= -(h|0)){a=c;if(i>>>0>=8){d=i&-8;while(1){J[a+40>>2]=e;J[a+36>>2]=f;J[a+656>>2]=e;J[a+652>>2]=f;J[a+568>>2]=e;J[a+564>>2]=f;J[a+480>>2]=e;J[a+476>>2]=f;J[a+392>>2]=e;J[a+388>>2]=f;J[a+304>>2]=e;J[a+300>>2]=f;J[a+216>>2]=e;J[a+212>>2]=f;J[a+128>>2]=e;J[a+124>>2]=f;a=a+704|0;g=g+8|0;if((d|0)!=(g|0))continue;break}}d=i&7;if(!d)break d;g=0;while(1){J[a+40>>2]=e;J[a+36>>2]=f;a=a+88|0;g=g+1|0;if((d|0)!=(g|0))continue;break}break d}a=c;if(i>>>0>=8){e=i&-8;d=0;while(1){J[a+40>>2]=h;J[a+36>>2]=f;J[a+656>>2]= -h;J[a+652>>2]=f;J[a+568>>2]=h;J[a+564>>2]=f;J[a+480>>2]=h;J[a+476>>2]=f;J[a+392>>2]=h;J[a+388>>2]=f;J[a+304>>2]=h;J[a+300>>2]=f;J[a+216>>2]=h;J[a+212>>2]=f;J[a+128>>2]=h;J[a+124>>2]=f;a=a+704|0;d=d+8|0;if((e|0)!=(d|0))continue;break}}e=i&7;if(!e)break d;d=0;while(1){J[a+40>>2]=h;J[a+36>>2]=f;a=a+88|0;d=d+1|0;if((e|0)!=(d|0))continue;break}break d}m=J[b+316>>2];a=c;while(1){J[a+36>>2]=f;d=e;j=J[a+12>>2];e:{if((m|0)%(j<<1)|0)break e;g=2;while(1){d=P(e,g);if((l|0)<(d|0))break e;g=g<<1;if(!((m|0)%(P(j, -g)|0)|0))continue;break}}J[a+40>>2]=d;g=d<<1;f:{if((g|0)>=(f|0)){if((d|0)<=(h|0))break f;J[a+40>>2]=h;break f}J[a+36>>2]=g}a=a+88|0;k=k+1|0;if((k|0)!=(i|0))continue;break}break d}m=J[b+312>>2];if((e|0)>(l|0)){h=e<<1;a=c;while(1){d=f;j=J[a+8>>2];g:{if((m|0)%(j<<1)|0)break g;g=2;while(1){d=P(f,g);if((l|0)<(d|0))break g;g=g<<1;if(!((m|0)%(P(j,g)|0)|0))continue;break}}J[a+40>>2]=e;J[a+36>>2]=d;h:{if((d|0)<=(h|0)){d=d<<1;if((d|0)>=(e|0))break h;J[a+40>>2]=d;break h}J[a+36>>2]=h}a=a+88|0;k=k+1|0;if((k| -0)!=(i|0))continue;break}break d}k=J[b+316>>2];a=c;while(1){d=f;h=J[a+8>>2];i:{if((m|0)%(h<<1)|0)break i;g=2;while(1){d=P(f,g);if((l|0)<(d|0))break i;g=g<<1;if(!((m|0)%(P(h,g)|0)|0))continue;break}}J[a+36>>2]=d;h=e;j=J[a+12>>2];j:{if((k|0)%(j<<1)|0)break j;g=2;while(1){h=P(e,g);if((l|0)<(h|0))break j;g=g<<1;if(!((k|0)%(P(j,g)|0)|0))continue;break}}J[a+40>>2]=h;g=h<<1;k:{if((g|0)<(d|0)){J[a+36>>2]=g;break k}d=d<<1;if((d|0)>=(h|0))break k;J[a+40>>2]=d}a=a+88|0;n=n+1|0;if((n|0)!=(i|0))continue;break}}if((i| -0)<=0)break c;a=0;while(1){d=P(J[b+424>>2],J[b+312>>2]);J[c+44>>2]=((d+P(J[c+36>>2],P(J[c+8>>2],J[b+28>>2]))|0)-1|0)/(d|0);d=P(J[b+424>>2],J[b+316>>2]);J[c+48>>2]=((d+P(J[c+40>>2],P(J[c+12>>2],J[b+32>>2]))|0)-1|0)/(d|0);c=c+88|0;a=a+1|0;i=J[b+36>>2];if((a|0)<(i|0))continue;break}}a=J[b+44>>2]-1|0;if(a>>>0<=4)i=J[(a<<2)+247060>>2];J[b+120>>2]=i;J[b+124>>2]=J[b+84>>2]?1:i;if(BE(b))a=J[b+316>>2];else a=1;J[b+128>>2]=a}function Bea(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;n=xb-256|0;xb=n;c=J[a+420>>2];f=J[a+24>>2];J[c+112>>2]=J[f>>2];J[c+116>>2]=J[f+4>>2];if(!(J[c+36>>2]|!J[a+236>>2]))Wn(c,J[c+40>>2]);a:{b:{c:{d=J[a+360>>2];q=J[a+364>>2];k=(d|0)>(q|0);if(!k){r=J[b>>2];s=J[a+380>>2];b=J[a+372>>2];f=(q-d|0)+1|0;h=f&1;if((d|0)!=(q|0))break c;f=d;break b}b=0;break a}l=f&-2;f=d;while(1){g=f<<2;m=I[(J[g+s>>2]<<1)+r>>1];j=m>>31;i=g+n|0;g=(j^m)-j>>>b|0;J[i>>2]=g;m=f+1|0;i=m<<2;o=I[(J[i+s>>2]<<1)+r>>1];j=o>>31;j=(j^o)-j>>>b|0;J[i+n>>2]=j;t=(j|0)==1? -m:(g|0)==1?f:t;f=f+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}}if(h){j=f<<2;h=I[(J[j+s>>2]<<1)+r>>1];e=h>>31;b=(e^h)-e>>>b|0;J[j+n>>2]=b;t=(b|0)==1?f:t}h=0;b=0;if(k)break a;l=J[c+136>>2]+J[c+132>>2]|0;f=0;while(1){j=d;o=d<<2;m=J[o+n>>2];d:{if(m){if(!((f|0)<16|(d|0)>(t|0)))while(1){k=f;f=0;e:{f:{g:{d=J[c+128>>2];switch(d|0){case 0:break e;case 1:break f;default:break g}}while(1){b=f;f=b+1|0;d=d>>1;if(d>>>0>1)continue;break}if(b>>>0<14)break f;b=J[c+120>>2];d=J[b>>2];J[d+20>>2]=41;Ab[J[d>>2]](b)}b= -f<<4;d=J[c+124>>2];g=J[c+108>>2];h:{if(g){b=J[((d<<2)+c|0)+92>>2]+(b<<2)|0;J[b>>2]=J[b>>2]+1;break h}d=J[((d<<2)+c|0)+60>>2];e=J[d+(b<<2)>>2];i=J[c+16>>2];b=H[(b+d|0)+1024|0];if(!b){d=J[c+120>>2];g=J[d>>2];J[g+20>>2]=41;Ab[J[g>>2]](d);g=J[c+108>>2];if(g)break h}d=e&(-1<>2]|d<<24-e;g=0;if((e|0)>=8){while(1){b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=d>>>16;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(!b){g=J[c+120>>2];b=J[g+24>>2];if(!(Ab[J[b+12>>2]](g)|0)){g=J[c+120>>2];i=J[g>>2];J[i+20>> -2]=25;Ab[J[i>>2]](g)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=e;i:{if((d&16711680)!=16711680)break i;e=J[c+112>>2];J[c+112>>2]=e+1;H[e|0]=0;e=J[c+116>>2]-1|0;J[c+116>>2]=e;if(e)break i;g=J[c+120>>2];e=J[g+24>>2];if(!(Ab[J[e+12>>2]](g)|0)){g=J[c+120>>2];i=J[g>>2];J[i+20>>2]=25;Ab[J[i>>2]](g)}J[c+112>>2]=J[e>>2];J[c+116>>2]=J[e+4>>2]}e=b-8|0;d=d<<8;if((b|0)>15)continue;break}g=J[c+108>>2]}J[c+16>>2]=e;J[c+12>>2]=d}j:{if(f){if(g){J[c+128>>2]=0;break j}b=J[c+16>>2]+f|0;f=J[c+12>>2]|(J[c+128>>2]&(-1<< -f^-1))<<24-b;g=0;if((b|0)>=8){while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(Ab[J[d+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;Ab[J[g>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;k:{if((f&16711680)!=16711680)break k;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break k;e=J[c+120>>2];b=J[e+24>>2];if(!(Ab[J[b+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;Ab[J[g>>2]](e)}J[c+ -112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}g=J[c+108>>2]}J[c+16>>2]=b;J[c+12>>2]=f}J[c+128>>2]=0;i=J[c+132>>2];if(g|!i)break j;e=J[c+136>>2];while(1){if(!J[c+108>>2]){d=J[c+16>>2];f=J[c+12>>2]|(H[e|0]&1)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){g=J[c+120>>2];d=J[g+24>>2];if(!(Ab[J[d+12>>2]](g)|0)){g=J[c+120>>2];p=J[g>>2];J[p+20>>2]=25;Ab[J[p>>2]](g)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+ -4>>2]}d=b;l:{if((f&16711680)!=16711680)break l;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break l;g=J[c+120>>2];b=J[g+24>>2];if(!(Ab[J[b+12>>2]](g)|0)){g=J[c+120>>2];p=J[g>>2];J[p+20>>2]=25;Ab[J[p>>2]](g)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}e=e+1|0;i=i-1|0;if(i)continue;break}}J[c+132>>2]=0}b=J[c+124>>2];m:{if(J[c+108>>2]){b=J[((b<<2)+c|0)+92>>2];J[b+960>>2]=J[b+960>>2]+1;break m}b=J[((b<<2)+ -c|0)+60>>2];f=J[b+960>>2];d=J[c+16>>2];b=H[b+1264|0];if(!b){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=41;Ab[J[g>>2]](e);if(J[c+108>>2])break m}f=f&(-1<>2]|f<<24-b;d=0;if((b|0)>=8){while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(Ab[J[d+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;Ab[J[g>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;n:{if((f&16711680)!=16711680)break n;b=J[c+112>>2];J[c+112>> -2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break n;e=J[c+120>>2];b=J[e+24>>2];if(!(Ab[J[b+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;Ab[J[g>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}d=J[c+108>>2]}J[c+16>>2]=b;J[c+12>>2]=f;if(d|!h)break m;while(1){if(!J[c+108>>2]){d=J[c+16>>2];f=J[c+12>>2]|(H[l|0]&1)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2]; -d=J[e+24>>2];if(!(Ab[J[d+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;Ab[J[g>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;o:{if((f&16711680)!=16711680)break o;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break o;e=J[c+120>>2];b=J[e+24>>2];if(!(Ab[J[b+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;Ab[J[g>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}l=l+1|0;h=h-1|0;if(h)continue; -break}}f=k-16|0;l=J[c+136>>2];h=0;if((k|0)>31)continue;break}if((m|0)>=2){H[h+l|0]=m&1;h=h+1|0;break d}b=f<<4|1;cj(c);f=J[c+124>>2];p:{if(J[c+108>>2]){b=J[((f<<2)+c|0)+92>>2]+(b<<2)|0;J[b>>2]=J[b>>2]+1;break p}f=J[((f<<2)+c|0)+60>>2];bj(c,J[f+(b<<2)>>2],H[(b+f|0)+1024|0]);if(J[c+108>>2])break p;d=J[c+16>>2];f=J[c+12>>2]|(I[(J[s+o>>2]<<1)+r>>1]>=0)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(Ab[J[d+ -12>>2]](e)|0)){e=J[c+120>>2];k=J[e>>2];J[k+20>>2]=25;Ab[J[k>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;q:{if((f&16711680)!=16711680)break q;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break q;e=J[c+120>>2];b=J[e+24>>2];if(!(Ab[J[b+12>>2]](e)|0)){e=J[c+120>>2];k=J[e>>2];J[k+20>>2]=25;Ab[J[k>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}gE(c,l,h);l=J[c+136>>2];h=0;f=0;break d}f=f+1|0}d= -j+1|0;if((j|0)!=(q|0))continue;break}b=(f|0)>0}r:{if(!(b|h))break r;b=J[c+128>>2]+1|0;J[c+128>>2]=b;f=J[c+132>>2]+h|0;J[c+132>>2]=f;if((b|0)!=32767&f>>>0<938)break r;cj(c)}b=J[a+24>>2];J[b>>2]=J[c+112>>2];J[b+4>>2]=J[c+116>>2];a=J[a+236>>2];if(a){b=J[c+36>>2];if(b)a=b;else J[c+40>>2]=J[c+40>>2]+1&7;J[c+36>>2]=a-1}xb=n+256|0;return 1}function iZ(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=xb-208|0;xb=j;k=we(i,h,g,f,e,d)/180*3.141592653589793; -l=Fe(k);m=we(i,h,g,f,c,b);b=j+160|0;o=+(g+i|0)*.5;n=l;l=R(+(g|0)-+(i|0))*.5;ff(b,o+n*l,-1);J[195395]=0;b=aa(1954,b|0,0,426356)|0;c=J[195395];J[195395]=0;k=ue(k);m=m/180*3.141592653589793;p=ue(m);m=Fe(m);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{if((c|0)!=1){J[j+184>>2]=J[b+8>>2];c=J[b+4>>2];J[j+176>>2]=J[b>>2];J[j+180>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+176|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break K; -J[j+16>>2]=J[j+184>>2];J[j+184>>2]=0;b=J[j+180>>2];J[j+8>>2]=J[j+176>>2];J[j+12>>2]=b;J[j+176>>2]=0;J[j+180>>2]=0;J[195395]=0;b=j+144|0;n=+(f+h|0)*.5;da(1863,b|0,+(n+l*k),-1);c=J[195395];J[195395]=0;if((c|0)==1)break J;J[195395]=0;d=b;b=K[j+155|0];c=b<<24>>24<0;b=aa(1864,j+8|0,(c?J[j+144>>2]:d)|0,(c?J[j+148>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break I;J[j+200>>2]=J[b+8>>2];c=J[b+4>>2];J[j+192>>2]=J[b>>2];J[j+196>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[j+155|0]<0)Kb(J[j+144>>2]);if(H[j+ -19|0]<0)Kb(J[j+8>>2]);if(H[j+187|0]<0)Kb(J[j+176>>2]);if(H[j+171|0]<0)Kb(J[j+160>>2]);J[195395]=0;b=j+68|0;da(1863,b|0,+l,-1);c=J[195395];J[195395]=0;if((c|0)==1)break E;J[195395]=0;b=aa(1954,b|0,0,426368)|0;c=J[195395];J[195395]=0;if((c|0)==1)break D;J[j+88>>2]=J[b+8>>2];c=J[b+4>>2];J[j+80>>2]=J[b>>2];J[j+84>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+80|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break C;J[j+104>>2]=J[j+88>>2];J[j+88>>2]=0;b=J[j+84>>2];J[j+96>>2]=J[j+80>>2];J[j+100>> -2]=b;J[j+80>>2]=0;J[j+84>>2]=0;J[195395]=0;b=j+56|0;k=R(+(f|0)-+(h|0))*.5;da(1863,b|0,+k,-1);c=J[195395];J[195395]=0;if((c|0)==1)break B;J[195395]=0;d=b;b=K[j+67|0];c=b<<24>>24<0;b=aa(1864,j+96|0,(c?J[j+56>>2]:d)|0,(c?J[j+60>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break A;J[j+120>>2]=J[b+8>>2];c=J[b+4>>2];J[j+112>>2]=J[b>>2];J[j+116>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+112|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break z;J[j+136>>2]=J[j+120>>2];J[j+120>>2]=0;b=J[j+ -116>>2];J[j+128>>2]=J[j+112>>2];J[j+132>>2]=b;J[j+112>>2]=0;J[j+116>>2]=0;J[195395]=0;b=ca(1858,j+128|0,426384)|0;c=J[195395];J[195395]=0;if((c|0)==1)break y;J[j+152>>2]=J[b+8>>2];c=J[b+4>>2];J[j+144>>2]=J[b>>2];J[j+148>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=j+44|0;da(1863,b|0,+(o+l*m),-1);c=J[195395];J[195395]=0;if((c|0)==1)break x;J[195395]=0;d=b;b=K[j+55|0];c=b<<24>>24<0;b=aa(1864,j+144|0,(c?J[j+44>>2]:d)|0,(c?J[j+48>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break w;J[j+168>> -2]=J[b+8>>2];c=J[b+4>>2];J[j+160>>2]=J[b>>2];J[j+164>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,j+160|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break v;J[j+184>>2]=J[j+168>>2];J[j+168>>2]=0;b=J[j+164>>2];J[j+176>>2]=J[j+160>>2];J[j+180>>2]=b;J[j+160>>2]=0;J[j+164>>2]=0;J[195395]=0;b=j+32|0;da(1863,b|0,+(n+k*p),-1);c=J[195395];J[195395]=0;if((c|0)==1)break u;J[195395]=0;d=b;b=K[j+43|0];c=b<<24>>24<0;b=aa(1864,j+176|0,(c?J[j+32>>2]:d)|0,(c?J[j+36>>2]:b)|0)|0;c=J[195395];J[195395]=0; -if((c|0)==1)break t;J[j+16>>2]=J[b+8>>2];c=J[b+4>>2];J[j+8>>2]=J[b>>2];J[j+12>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[j+19|0];c=b<<24>>24<0;aa(1864,j+192|0,(c?J[j+8>>2]:j+8|0)|0,(c?J[j+12>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break s;if(H[j+19|0]<0)Kb(J[j+8>>2]);if(H[j+43|0]<0)Kb(J[j+32>>2]);if(H[j+187|0]<0)Kb(J[j+176>>2]);if(H[j+171|0]<0)Kb(J[j+160>>2]);if(H[j+55|0]<0)Kb(J[j+44>>2]);if(H[j+155|0]<0)Kb(J[j+144>>2]);if(H[j+139|0]<0)Kb(J[j+128>>2]);if(H[j+123|0]<0)Kb(J[j+112>> -2]);if(H[j+67|0]<0)Kb(J[j+56>>2]);if(H[j+107|0]<0)Kb(J[j+96>>2]);if(H[j+91|0]<0)Kb(J[j+80>>2]);if(H[j+79|0]<0)Kb(J[j+68>>2]);J[195395]=0;b=aa(1962,j+8|0,426412,j+192|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;J[j+184>>2]=0;J[j+176>>2]=0;J[j+180>>2]=0;J[195395]=0;H[j+164|0]=0;J[j+160>>2]=j+176;c=_(1078,24)|0;d=J[195395];J[195395]=0;L:{M:{if((d|0)!=1){J[j+180>>2]=c;J[j+176>>2]=c;J[195395]=0;J[j+184>>2]=c+24;d=ha(1957,j+184|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break L;f=Z()| -0;J[j+180>>2]=c;break M}f=Z()|0}Kc(j+160|0);Vb(b);break b}J[j+180>>2]=d;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=j+176|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;$(1964,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break e; -J[j+160>>2]=a;J[j+164>>2]=4;J[j+168>>2]=-2147483640;d=J[106608];J[a+8>>2]=J[106607];J[a+12>>2]=d;d=J[106606];J[a>>2]=J[106605];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[j+144>>2]=0;H[j+155|0]=0;ia(1961,b|0,j+160|0,c|0,j+144|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[j+155|0]<0)Kb(J[j+144>>2]);if(H[j+171|0]<0)Kb(J[j+160>>2]);a=J[j+176>>2];if(a){g=J[j+180>>2];i=a;if((g|0)!=(a|0)){while(1){if(H[g-1|0]<0)Kb(J[g-12>>2]);b=g-24|0;if(H[g-13|0]<0)Kb(J[b>>2]);g=b;if((b|0)!=(a|0))continue;break}i=J[j+ -176>>2]}J[j+180>>2]=a;Kb(i)}if(H[j+203|0]<0)Kb(J[j+192>>2]);xb=j+208|0;return}f=Z()|0;break F}f=Z()|0;break G}f=Z()|0;break H}f=Z()|0;if(H[j+155|0]>=0)break H;Kb(J[j+144>>2])}if(H[j+19|0]>=0)break G;Kb(J[j+8>>2])}if(H[j+187|0]>=0)break F;Kb(J[j+176>>2])}if(H[j+171|0]>=0)break a;Kb(J[j+160>>2]);ba(f|0);B()}f=Z()|0;break b}f=Z()|0;break h}f=Z()|0;break i}f=Z()|0;break j}f=Z()|0;break k}f=Z()|0;break l}f=Z()|0;break m}f=Z()|0;break n}f=Z()|0;break o}f=Z()|0;break p}f=Z()|0;break q}f=Z()|0;break r}f= -Z()|0;if(H[j+19|0]>=0)break r;Kb(J[j+8>>2])}if(H[j+43|0]>=0)break q;Kb(J[j+32>>2])}if(H[j+187|0]>=0)break p;Kb(J[j+176>>2])}if(H[j+171|0]>=0)break o;Kb(J[j+160>>2])}if(H[j+55|0]>=0)break n;Kb(J[j+44>>2])}if(H[j+155|0]>=0)break m;Kb(J[j+144>>2])}if(H[j+139|0]>=0)break l;Kb(J[j+128>>2])}if(H[j+123|0]>=0)break k;Kb(J[j+112>>2])}if(H[j+67|0]>=0)break j;Kb(J[j+56>>2])}if(H[j+107|0]>=0)break i;Kb(J[j+96>>2])}if(H[j+91|0]>=0)break h;Kb(J[j+80>>2])}if(H[j+79|0]>=0)break b;Kb(J[j+68>>2]);break b}f=Z()|0;break b}f= -Z()|0;break c}f=Z()|0;break c}f=Z()|0;if(H[j+155|0]<0)Kb(J[j+144>>2]);if(H[j+171|0]>=0)break c;Kb(J[j+160>>2])}Hc(j+176|0)}if(H[j+203|0]>=0)break a;Kb(J[j+192>>2])}ba(f|0);B()}function uX(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;k=xb-48|0;xb=k;u=6;o=J[a+4>>2];a:{if(!o)break a;g=c-1|0;s=c>>>0>=g>>>0?g:0;if(s>>>0>=M[o+408>>2])break a;b:{c:{if(d&9)break c;h=J[o+380>>2];if(!h)break c;p=J[o+416>>2];i=p+(s<<4)|0;q=J[o+104>>2];c=J[o+ -388>>2];g=L[b+12>>1];while(1){if(!((g|0)==J[c>>2]&J[c+4>>2]==L[b+14>>1])){c=c+36|0;f=f+1|0;if((h|0)!=(f|0))continue;break c}break}h=J[c+8>>2];if(bc(q,J[c+24>>2]+J[o+432>>2]|0))break c;g=h&1;if(Tc(q,P(J[c+28>>2],(h>>>2&1)+(h&2?g+5|0:g|4)|0)))break c;h=J[c+8>>2];l=h&1;t=(h&2?l+5|0:l|4)+(h>>>2&1)|0;r=J[i>>2];f=J[c+28>>2];e=J[q+32>>2];if(!(h&64)){i=J[q+36>>2];n=h|128;J[c+8>>2]=n;d:{e:{f:{g=P(f,t);m=g+e|0;if(i>>>0>=m>>>0){if((g|0)<=0)break d;g=-1;if(l)break f;i=e;while(1){j=g;g=K[i|0];if((j|0)>=(g|0))break e; -i=i+t|0;if(m>>>0>i>>>0)continue;break}break d}n=h&-129;break d}i=e;while(1){j=g;g=K[i+1|0]|K[i|0]<<8;if((j|0)>=(g|0))break e;i=i+t|0;if(m>>>0>i>>>0)continue;break}break d}n=h&-129}h=n|64;J[c+8>>2]=h}g:{if(!(h&128))break g;c=0;h:{if(!l){while(1){if(c>>>0>=f>>>0)break g;m=c+f>>>1|0;g=e+P(m,t)|0;j=K[g|0];i=j>>>0>r>>>0;f=i?m:f;c=i?c:j>>>0>>0?m+1|0:c;if((j|0)!=(r|0))continue;break}c=g+1|0;break h}while(1){if(c>>>0>=f>>>0)break g;m=c+f>>>1|0;j=e+P(m,t)|0;i=K[j|0]<<8|K[j+1|0];g=i>>>0>r>>>0;c=g?c:i>>> -0>>0?m+1|0:c;f=g?m:f;if((i|0)!=(r|0))continue;break}c=j+2|0}i=K[c|0];i:{if(h&2){i=K[c+1|0]|i<<8;c=c+2|0;break i}c=c+1|0}e=K[c+1|0];g=K[c|0];if(h&4)h=K[c+2|0]|(e<<8|g<<16);else h=e|g<<8;Ec(q);if(!i)break c;J[k+8>>2]=0;J[k+44>>2]=0;J[k+36>>2]=0;J[k+32>>2]=0;J[k+28>>2]=0;e=(s<<4)+p|0;c=J[e+4>>2];f=J[o+304>>2];g=J[o+300>>2];j:{if((f|0)==(g|0)){g=c;break j}g=hc(c,g,f);f=J[o+304>>2];c=J[e+4>>2]}J[a+56>>2]=g;g=hc(L[b+12>>1]<<8,c,f);J[k+40>>2]=g;if(bc(q,h+J[o+188>>2]|0))break c;if(Tc(q,i))break c;J[k+ -24>>2]=J[q+32>>2];j=8;m=J[q+36>>2];e=J[k+24>>2];k:{if(m>>>0>>0)break k;l:{m:{n:{o:{p:{f=K[e|0];switch((f&3)-1|0){case 2:break m;case 1:break n;case 0:break o;default:break p}}c=e+2|0;if(m>>>0>>0)break k;e=H[e+1|0];h=e>>4;n=e<<28>>28;break l}c=e+3|0;if(m>>>0>>0)break k;n=H[e+2|0];h=H[e+1|0];break l}c=e+5|0;if(m>>>0>>0)break k;h=K[e+3|0]|K[e+4|0]<<8;n=(h<<8|h>>>8)<<16>>16;h=K[e+1|0]|K[e+2|0]<<8;h=(h<<8|h>>>8)<<16>>16;break l}c=e+7|0;if(m>>>0>>0)break k;n=K[e+6|0]|(K[e+5|0]<<8|K[e+4| -0]<<16);h=K[e+3|0]|(K[e+2|0]<<8|K[e+1|0]<<16)}l=f>>>2&3;p=l;q:{r:switch(l-1|0){case 0:e=c+1|0;if(e>>>0>m>>>0)break k;c=K[c|0];p=c&15;l=c>>>4|0;c=e;break q;case 1:e=c+2|0;if(e>>>0>m>>>0)break k;p=K[c+1|0];l=K[c|0];c=e;break q;case 2:break r;default:break q}e=c+4|0;if(e>>>0>m>>>0)break k;p=K[c+3|0]|K[c+2|0]<<8;l=K[c+1|0]|K[c|0]<<8;c=e}s:{t:{u:{v:{f=f>>>4|0;switch((f&3)-1|0){case 2:break t;case 1:break u;case 0:break v;default:break s}}e=c+1|0;if(e>>>0>m>>>0)break k;g=H[c|0]<<8;c=e;break s}e=c+2|0;if(e>>> -0>m>>>0)break k;c=K[c|0]|K[c+1|0]<<8;g=(c<<8|c>>>8)<<16>>16;c=e;break s}e=c+3|0;if(e>>>0>m>>>0)break k;g=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);c=e}J[k+8>>2]=h;J[k+44>>2]=n;J[k+36>>2]=l;J[k+32>>2]=p;J[k+40>>2]=g;J[k+28>>2]=f>>>2;J[k+24>>2]=c;j=0}if(j)break g;w:{x:{y:{z:{e=J[k+28>>2];switch(e|0){case 0:break x;case 2:break y;case 1:break z;default:break g}}c=J[k+32>>2];f=J[k+36>>2];if(P(c,f)>>>0<=P(i,15)>>>0)break w;break g}c=J[k+32>>2];f=J[k+36>>2];if(P(c,f)>>>0>P(i+1>>>1|0,255)>>>0)break g;break w}c= -J[k+32>>2];f=J[k+36>>2];if(P(c,f)+7>>>3>>>0>i>>>0)break g}if((c|0)<0)break g;j=J[k+44>>2];if((j|0)>(c^2147483647))break g;J[a+72>>2]=1651078259;J[a+76>>2]=c;J[a+80>>2]=f;H[a+94|0]=1;J[a+28>>2]=c<<6;h=f<<6;J[a+24>>2]=h;i=f+7>>3;J[a+84>>2]=i;f=J[k+8>>2];J[a+36>>2]=j<<6;J[a+32>>2]=f<<6;g=J[k+40>>2];J[a+48>>2]=0;J[a+44>>2]=0-h>>1;J[a+40>>2]=(g>>2)+32&-64;g=J[b+32>>2];J[a+104>>2]=c+j;J[a+100>>2]=f;J[a+52>>2]=g;if(!(d&4194304)){if(ao(a,P(c,i)))break g;d=J[k+24>>2];p=J[q+36>>2];i=K[o+208|0]>>>1&1;l=0;g= -J[a+76>>2];A:{if(!g)break A;b=J[a+80>>2];if(!b)break A;c=J[a+84>>2];m=i?c:0-c|0;n=P(b,g);g=J[a+88>>2]+(i?0:P(c,g-1|0))|0;B:{C:switch(e|0){case 0:a=p-d<<3;h=a>>>0>>0?a:n;if(!h)break A;e=128;j=0;i=g;a=b;c=h;while(1){if(!((c^h)&7)){j=K[d|0];d=d+1|0}l=j<<24>>31&e|l;a=a-1|0;D:{if(!a){H[i|0]=l;l=0;a=b;g=g+m|0;i=g;f=128;break D}f=e>>>1|0;if(e>>>0>1)break D;H[i|0]=l;i=i+1|0;l=0;f=128}e=f;j=j<<1;c=c-1|0;if(c)continue;break}if((e|0)!=128)break B;break A;case 1:if(!n)break A;f=1;h=128;i=g;c=b;a=0;j=0;e=1; -while(1){E:{F:{if(!f)break F;G:{if(!e){j=a;e=1;break G}e=1;f=h;if(d>>>0>=p>>>0)break E;e=K[d|0];a=e&15;j=e>>>4|0;d=d+1|0;e=0}if(j)break F;while(1){H:{if(!e){j=a;e=1;break H}if(d>>>0>=p>>>0){e=1;j=0;f=h;break E}e=K[d|0];a=e&15;j=e>>>4|0;d=d+1|0;e=0}if(!j)continue;break}}f=e?h:0}l=f|l;c=c-1|0;I:{if(!c){H[i|0]=l;l=0;c=b;g=g+m|0;i=g;f=128;break I}f=h>>>1|0;if(h>>>0>1)break I;H[i|0]=l;i=i+1|0;l=0;f=128}h=f;f=(j|0)<2;j=j-1|0;n=n-1|0;if(n)continue;break}if((h|0)!=128)break B;break A;case 2:break C;default:break A}if(!n)break A; -j=1;h=128;i=g;c=b;a=0;e=1;while(1){J:{if(!(j&1)|d>>>0>=p>>>0)break J;K:{while(1){e=e^1;f=d+1|0;a=K[d|0];if(a)break K;d=f;if((f|0)!=(p|0))continue;break}a=0;d=p;break J}d=f}l=(e?h:0)|l;c=c-1|0;L:{if(!c){H[i|0]=l;l=0;c=b;g=g+m|0;i=g;f=128;break L}f=h>>>1|0;if(h>>>0>1)break L;H[i|0]=l;i=i+1|0;l=0;f=128}h=f;j=(a|0)<2;a=a-1|0;n=n-1|0;if(n)continue;break}if((h|0)==128)break A}H[i|0]=l}}Ec(q);break b}Ec(q)}if(d&16384)break a;e=J[o+416>>2];J[a+72>>2]=1869968492;J[a+108>>2]=0;c=e+(s<<4)|0;h=J[c+8>>2];i=J[c+ -12>>2];g=J[o+188>>2];c=J[o+104>>2];lh(J[a+188>>2]);J[a+176>>2]=0;u=Ez(a+160|0,c,g,i,h);if(u)break a;g=J[a+188>>2];c=J[g+24>>2];h=a+108|0;J[h>>2]=J[g+20>>2];J[h+4>>2]=c;J[h+16>>2]=J[g+36>>2];c=J[g+32>>2];J[h+8>>2]=J[g+28>>2];J[h+12>>2]=c;c=J[a+124>>2]&-6;J[a+124>>2]=c|4;if(L[b+14>>1]<=23)J[a+124>>2]=c|260;J[a+52>>2]=0;J[a+40>>2]=0;c=J[(e+(s<<4)|0)+4>>2];i=J[o+304>>2];g=J[o+300>>2];if((i|0)!=(g|0))c=hc(c,g,i);M:{if(H[o+324|0]&1){J[a+52>>2]=c;f=J[a+40>>2];break M}J[a+40>>2]=c;f=c;c=J[a+52>>2]}J[a+60>> -2]=c;J[a+56>>2]=f;J[a+44>>2]=0;J[a+48>>2]=0;if(!(d&1)){d=J[b+20>>2];b=J[b+16>>2];if(I[a+110>>1]>0){c=J[a+112>>2];f=0;while(1){v=c,w=Rb(J[c>>2],b),J[v>>2]=w;v=c,w=Rb(J[c+4>>2],d),J[v+4>>2]=w;c=c+8|0;f=f+1|0;if((f|0)>1])continue;break}f=J[a+40>>2]}v=a,w=Rb(f,b),J[v+40>>2]=w;v=a,w=Rb(J[a+52>>2],d),J[v+52>>2]=w}fi(h,k+8|0);d=J[k+8>>2];J[a+24>>2]=J[k+16>>2]-d;c=J[k+20>>2];b=J[k+12>>2];J[a+36>>2]=b;J[a+32>>2]=d;J[a+28>>2]=c-b}u=0}xb=k+48|0;return u|0}function Hk(a){a=a|0;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;i=J[a-60>>2];h=vc(1,28);if(h){d=xb-48|0;xb=d;J[h>>2]=0;J[h+4>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;H[h+5|0]=0;H[h+6|0]=0;H[h+7|0]=0;H[h+8|0]=0;H[h+9|0]=0;H[h+10|0]=0;H[h+11|0]=0;H[h+12|0]=0;J[h+24>>2]=0;e=i+52|0;while(1){a:{a=J[e>>2];if(a)break a;if(!J[i+48>>2]){a=169776;break a}a=nt(e);if(!a)a=169776;b=J[e>>2];J[e>>2]=b?b:a;if(!b)break a;wc(a);continue}break}c=J[a+16>>2];b=J[a+12>>2];while(1){b:{a=J[e>>2];if(a)break b;if(!J[i+48>>2]){a=169776;break b}a= -nt(e);if(!a)a=169776;f=J[e>>2];J[e>>2]=f?f:a;if(!f)break b;wc(a);continue}break}f=M[a+16>>2]<54?169776:J[a+12>>2];a=K[f+50|0]|K[f+51|0]<<8;c:{if(((a<<8|a>>>8)&65535)>>>0>1)break c;a=K[f+52|0]|K[f+53|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>1)break c;a=c>>>0<54?169776:b;H[h+12|0]=!(K[a+50|0]|K[a+51|0]<<8);c=J[i+104>>2];d:{if(c)break d;while(1){b=J[i+48>>2];if(!b){c=169776;break d}a=xb-48|0;xb=a;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0; -H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[195395]=0;I[a+44>>1]=1;c=ca(585,b|0,1819239265)|0;b=J[195395];J[195395]=0;e:{f:{if((b|0)==1)break f;J[195395]=0;g:{if(!c)break g;b=J[c>>2];if(!b)break g;J[c>>2]=b+1}b=J[195395];J[195395]=0;if((b|0)==1)break f;H[a+28|0]=0;J[a+36>>2]=c;f=J[c+12>>2];J[a+4>>2]=f;b=J[c+16>>2];J[a+12>>2]=b;J[a+8>>2]=b+f;J[a+32>>2]=0;if(b>>>0>67108863)b=1073741823;else{b=b<<6;b=b>>>0<=16384?16384:b;b=b>>>0>=1073741823?1073741823: -b}J[a+16>>2]=b;J[a+24>>2]=0;J[a>>2]=0;J[195395]=0;ea(583,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break f;J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(f){J[195395]=0;if(J[c+4>>2])J[c+4>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break f}xb=a+48|0;break e}b=Z()|0;ed(a);ba(b|0);B()}a=J[i+104>>2];c=c?c:169776;J[i+104>>2]=a?a:c;if(!a)break d;wc(c);c=J[i+104>>2];if(!c)continue;break}}J[h+20>>2]=c;J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;H[d+24|0]=0;H[d+ -25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+28|0]=0;J[195395]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;I[d+44>>1]=0;J[d+40>>2]=65536;b=_(584,i|0)|0;a=J[195395];J[195395]=0;h:{i:{if((a|0)==1)break i;J[d+40>>2]=b;J[195395]=0;H[d+44|0]=1;c=ca(585,i|0,1735162214)|0;a=J[195395];J[195395]=0;if((a|0)==1)break i;J[195395]=0;j:{if(!c)break j;a=J[c>>2];if(!a)break j;J[c>>2]=a+1}a=J[195395];J[195395]=0;if((a|0)==1)break i;H[d+28|0]=0;J[d+36>>2]=c;b=J[c+12>>2];J[d+4>>2]=b;a=J[c+16>>2];J[d+12>>2]=a;J[d+8>>2]= -a+b;J[d+32>>2]=0;if(a>>>0>67108863)a=1073741823;else{a=a<<6;a=a>>>0<=16384?16384:a;a=a>>>0>=1073741823?1073741823:a}J[d+16>>2]=a;J[d+24>>2]=0;J[d>>2]=0;J[195395]=0;ea(583,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break i;J[d+36>>2]=0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;if(b){J[195395]=0;if(J[c+4>>2])J[c+4>>2]=0;a=J[195395];J[195395]=0;if((a|0)==1)break i}J[h+24>>2]=c;n=i+132|0;while(1){a=J[n>>2];if(a)break h;if(!J[i+48>>2]){a=169776;break h}j=J[n-84>>2];g=vc(1,20);if(g){e=xb-48|0;xb=e;J[g+8>>2]=0; -J[g+12>>2]=0;J[g>>2]=0;J[g+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;H[e+21|0]=0;H[e+22|0]=0;H[e+23|0]=0;H[e+24|0]=0;H[e+25|0]=0;H[e+26|0]=0;H[e+27|0]=0;H[e+28|0]=0;J[195395]=0;J[e>>2]=0;J[e+4>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;I[e+44>>1]=0;J[e+40>>2]=65536;b=_(584,j|0)|0;a=J[195395];J[195395]=0;k:{l:{m:{n:{if((a|0)==1)break n;J[e+40>>2]=b;J[195395]=0;H[e+44|0]=1;b=ca(585,j|0,1735811442)|0;a=J[195395];J[195395]=0;if((a|0)==1)break n;J[195395]=0;c=ca(752,e|0,b|0)|0;a=J[195395];J[195395]= -0;if((a|0)==1)break n;J[g>>2]=c;o:{a=J[e+36>>2];if(a){J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break o;c=J[g>>2]}p:{q:{r:{a=c?c:169776;a=M[a+16>>2]<20?169776:J[a+12>>2];s:{if(!(K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))){f=0;break s}f=J[j+32>>2];if((f|0)!=-1)break s;J[195395]=0;f=_(582,j|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break r;c=J[g>>2]}J[g+4>>2]=f;b=J[g+8>>2];if((b|0)<0)break k;a=c?c:169776;k=M[a+16>>2]<20?169776:J[a+12>>2];f=K[k+8|0]|K[k+9|0]<<8|(K[k+10|0]<<16|K[k+ -11|0]<<24);c=K[k+6|0]|K[k+7|0]<<8;j=c<<8|c>>>8;l=j&65535;if(l>>>0<=b>>>0)break p;a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(l>>>0>a>>>0)continue;break}if(a>>>0<=536870911){b=ic(J[g+16>>2],a<<3);if(b)break q;b=J[g+8>>2];if(b>>>0>=a>>>0)break p}J[g+8>>2]=b^-1;break k}c=Z()|0;break m}J[g+8>>2]=a;J[g+16>>2]=b}J[g+12>>2]=l;if(!c)break k;a=J[g>>2];a=a?a:169776;a=M[a+16>>2]<20?169776:J[a+12>>2];a=K[a+4|0]|K[a+5|0]<<8;if(!a)break l;p=k+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;q=l>>>0<=1?1:l;o=(a<<8|a>>>8)& -65535;r=o>>>0<=1?1:o;m=0;while(1){k=(P(m,o)<<1)+p|0;c=0;f=-1;a=-1;while(1){t:{b=(c<<1)+k|0;u:{if(!(K[b|0]|K[b+1|0]<<8))break u;if((a|0)==-1){a=c;break u}j=-1;l=(f|0)==-1;b=-1;f=c;if(!l)break t}j=a;b=f;c=c+1|0;if((r|0)!=(c|0))continue}break}a=J[g+16>>2]+(m<<3)|0;J[a>>2]=j;J[a+4>>2]=b;m=m+1|0;if((q|0)!=(m|0))continue;break}break k}ga(0)|0;_b();B()}c=Z()|0;ed(e)}if(J[g+8>>2]){J[g+12>>2]=0;Kb(J[g+16>>2])}J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;ba(c|0);B()}a=l>>>0<=1?1:l;l=a&3;f=0;c=0;if((j&65535)>>>0>= -4){b=a&65532;j=0;while(1){k=c<<3;a=k+J[g+16>>2]|0;J[a>>2]=-1;J[a+4>>2]=-1;a=J[g+16>>2]+(k|8)|0;J[a>>2]=-1;J[a+4>>2]=-1;a=J[g+16>>2]+(k|16)|0;J[a>>2]=-1;J[a+4>>2]=-1;a=J[g+16>>2]+(k|24)|0;J[a>>2]=-1;J[a+4>>2]=-1;c=c+4|0;j=j+4|0;if((b|0)!=(j|0))continue;break}}if(!l)break k;while(1){a=J[g+16>>2]+(c<<3)|0;J[a>>2]=-1;J[a+4>>2]=-1;c=c+1|0;f=f+1|0;if((l|0)!=(f|0))continue;break}}xb=e+48|0}a=g;if(!a)a=169776;b=J[n>>2];J[n>>2]=b?b:a;if(!b)break h;v:{if(!a|(a|0)==169776)break v;b=J[a>>2];J[195395]=0;ea(583, -b|0);b=J[195395];J[195395]=0;if((b|0)!=1){J[a>>2]=0;if(J[a+8>>2]){J[a+12>>2]=0;Kb(J[a+16>>2])}Kb(a);break v}ga(0)|0;_b();B()}continue}}a=Z()|0;ed(d);ba(a|0);B()}J[h>>2]=a;c=i+68|0;while(1){w:{a=J[c>>2];if(a)break w;if(!J[i+48>>2]){a=169776;break w}a=gI(c);if(!a)a=169776;b=J[c>>2];J[c>>2]=b?b:a;if(!b)break w;Ik(a);continue}break}J[h+4>>2]=a;c=i+96|0;while(1){x:{a=J[c>>2];if(a)break x;if(!J[i+48>>2]){a=169776;break x}a=Ko(c);if(!a)a=169776;b=J[c>>2];J[c>>2]=b?b:a;if(!b)break x;Ik(a);continue}break}J[h+ -8>>2]=a;a=J[h+20>>2];a=J[(a?a:169776)+16>>2]>>>(K[h+12|0]?1:2)|0;c=(a>>>0<=1?1:a)-1|0;J[h+16>>2]=c;a=J[i+32>>2];if((a|0)==-1){a=Qe(i);c=J[h+16>>2]}J[h+16>>2]=a>>>0>c>>>0?c:a}xb=d+48|0}return h|0}function GW(a){a=a|0;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;g=xb-176|0;xb=g;p=a+16|0;q=a+12|0;m=J[189490];l=1;while(1){a:{b:{h=vc(1,126508);if(h){uz(h,228753,0);c=Qb(48);if(c){J[(g+168|0)+(b<<2)>>2]=c;J[c+12>>2]=1;b=Qb(24);if(b){J[c+40>>2]=b;J[b+20>>2]=0;J[b+12>>2]=-1; -J[b+16>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+44>>2]=0;J[c+8>>2]=0;c:{if(l){H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;b=c+16|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;e=J[J[J[a>>2]-12>>2]+q>>2];j=(e|0)<=0?2147483646:e;f=0;k=xb-16|0;xb=k;d:{e:{f:{if(K[lq(k+15|0,a,0)|0]){d=J[J[a>>2]-12>>2];J[195395]=0;e=k+8|0;d=J[(a+d|0)+28>>2];J[e>>2]=d; -J[d+4>>2]=J[d+4>>2]+1;d=J[195395];J[195395]=0;g:{h:{i:{if((d|0)!=1){J[195395]=0;n=ca(3514,e|0,781864)|0;d=J[195395];J[195395]=0;if((d|0)==1)break i;e=J[e>>2];d=J[e+4>>2]-1|0;J[e+4>>2]=d;if((d|0)==-1)Ab[J[J[e>>2]+8>>2]](e);e=b;d=(j+b|0)-1|0;j:{if((d|0)==(b|0))break j;j=a+24|0;while(1){f=J[j+J[J[a>>2]-12>>2]>>2];i=J[f+12>>2];k:{if((i|0)==J[f+16>>2]){i=J[J[f>>2]+36>>2];J[195395]=0;f=_(i|0,f|0)|0;i=J[195395];J[195395]=0;if((i|0)!=1){if((f|0)!=-1)break k;f=2;break j}f=ga(0)|0;break h}f=K[i|0]}if(!(!(H[J[n+ -8>>2]+((f&255)<<2)|0]&1)|f<<24>>24<0)){f=0;break j}H[e|0]=f;f=J[j+J[J[a>>2]-12>>2]>>2];i=J[f+12>>2];l:{if((i|0)==J[f+16>>2]){i=J[J[f>>2]+40>>2];J[195395]=0;_(i|0,f|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break l;f=ga(0)|0;break h}J[f+12>>2]=i+1}e=e+1|0;if((d|0)!=(e|0))continue;break}f=0;e=d}H[e|0]=0;d=J[a>>2];J[(J[d-12>>2]+a|0)+12>>2]=0;f=(b|0)==(e|0)?f|4:f;break g}f=ga(0)|0;break h}f=ga(0)|0;e=J[k+8>>2];d=J[e+4>>2]-1|0;J[e+4>>2]=d;if((d|0)==-1)Ab[J[J[e>>2]+8>>2]](e)}sa(f|0)|0;f=1;e=J[a>>2]-12|0; -d=J[e>>2]+a|0;J[d+16>>2]=J[d+16>>2]|1;if(H[(J[e>>2]+a|0)+20|0]&1){J[195395]=0;ja(3515);a=J[195395];J[195395]=0;if((a|0)!=1)break e;a=Z()|0;J[195395]=0;ja(3516);b=J[195395];J[195395]=0;if((b|0)==1)break f;ba(a|0);B()}ua();d=J[a>>2]}e=J[d-12>>2]+a|0;iy(e,J[e+16>>2]|f)}xb=k+16|0;break d}ga(0)|0;_b()}B()}m:{if(!(K[(a+J[J[a>>2]-12>>2]|0)+16|0]&5)){n:switch(K[b|0]-10|0){case 0:case 3:H[b|0]=0;break;default:break n}o:switch(K[c+17|0]-10|0){case 0:case 3:H[c+17|0]=0;break;default:break o}p:switch(K[c+18| -0]-10|0){case 0:case 3:H[c+18|0]=0;break;default:break p}q:switch(K[c+19|0]-10|0){case 0:case 3:H[c+19|0]=0;break;default:break q}r:switch(K[c+20|0]-10|0){case 0:case 3:H[c+20|0]=0;break;default:break r}s:switch(K[c+21|0]-10|0){case 0:case 3:H[c+21|0]=0;break;default:break s}t:switch(K[c+22|0]-10|0){case 0:case 3:H[c+22|0]=0;break;default:break t}u:switch(K[c+23|0]-10|0){case 0:case 3:H[c+23|0]=0;break;default:break u}v:switch(K[c+24|0]-10|0){case 0:case 3:H[c+24|0]=0;break;default:break v}w:switch(K[c+ -25|0]-10|0){case 0:case 3:H[c+25|0]=0;break;default:break w}x:switch(K[c+26|0]-10|0){case 0:case 3:H[c+26|0]=0;break;default:break x}y:switch(K[c+27|0]-10|0){case 0:case 3:H[c+27|0]=0;break;default:break y}z:switch(K[c+28|0]-10|0){case 0:case 3:H[c+28|0]=0;break;default:break z}A:switch(K[c+29|0]-10|0){case 0:case 3:H[c+29|0]=0;break;default:break A}B:switch(K[c+30|0]-10|0){case 0:case 3:H[c+30|0]=0;break;default:break B}C:switch(K[c+31|0]-10|0){case 0:case 3:H[c+31|0]=0;break;default:break C}D:switch(K[c+ -32|0]-10|0){case 0:case 3:H[c+32|0]=0;break;default:break D}E:switch(K[c+33|0]-10|0){case 0:case 3:H[c+33|0]=0;break;default:break E}F:switch(K[c+34|0]-10|0){case 0:case 3:H[c+34|0]=0;break;default:break F}G:switch(K[c+35|0]-10|0){case 0:case 3:break G;default:break m}H[c+35|0]=0;break m}H[b|0]=0}r=c,s=!fc(b,228120),J[r+36>>2]=s;break c}b=J[g+168>>2];oc(c+16|0,b+16|0,19);H[c+35|0]=0;J[c+36>>2]=J[b+36>>2];if(!o)break b}b=yy(a,g- -64|0);if(K[(J[J[b>>2]-12>>2]+b|0)+16|0]&5)break a;while(1){b=g- -64| -0;if(ac(b)>>>0<=99){b=ac(b)+b|0;H[b|0]=10;H[b+1|0]=0}H:{I:{if(K[J[J[a>>2]-12>>2]+p|0]&2)break I;if(te(g- -64|0,10))break I;while(1){J:{e=xb-16|0;xb=e;J[a+4>>2]=0;lq(e+15|0,a,1);K:{L:{M:{N:{if(!K[e+15|0]){b=-1;break N}b=J[J[a>>2]-12>>2];J[195395]=0;b=J[(a+b|0)+24>>2];d=J[195395];J[195395]=0;O:{P:{if((d|0)==1)break P;J[195395]=0;b=_(3541,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break P;d=6;if((b|0)==-1)break O;J[a+4>>2]=1;d=0;break O}sa(ga(0)|0)|0;b=J[J[a>>2]-12>>2];J[195395]=0;b=a+b|0;d=J[b+16>> -2];f=J[195395];J[195395]=0;Q:{R:{if((f|0)==1)break R;J[b+16>>2]=!J[b+24>>2]|(J[b+16>>2]|(d|1));b=J[J[a>>2]-12>>2];J[195395]=0;b=J[(a+b|0)+20>>2];d=J[195395];J[195395]=0;if((d|0)==1)break R;if(!(b&1))break Q;J[195395]=0;ja(3515);a=J[195395];J[195395]=0;if((a|0)!=1)break L}a=Z()|0;J[195395]=0;ja(3516);b=J[195395];J[195395]=0;if((b|0)==1)break M;ba(a|0);B()}ua();b=-1;d=0}Hj(J[J[a>>2]-12>>2]+a|0,d)}xb=e+16|0;break K}ga(0)|0;_b()}B()}switch(b+1|0){case 0:case 11:break J;default:continue}}break}if(K[g+ -64|0]==37)break H;J[g+48>>2]=100;Sc(m,228696,g+48|0);break H}if(!cd(g- -64|0,228081,9)){o=1;break a}if(K[g+64|0]==37)break H;Pj(g- -64|0,c,h)}b=yy(a,g- -64|0);if(!(K[(J[J[b>>2]-12>>2]+b|0)+16|0]&5))continue;break}break a}J[g+32>>2]=24;Sc(m,228582,g+32|0);za(1);B()}J[g+16>>2]=48;Sc(m,228582,g+16|0);za(1);B()}J[g>>2]=126508;Sc(m,228582,g);za(1);B()}b=J[g+168>>2];Pj(J[b+36>>2]?228660:228682,c,h);e=g- -64|0;Mb(e,744108,99);o=0;H[g+163|0]=0;Pj(e,c,h);Pj(228655,c,h);if(!J[b+36>>2])break a;Pj(228648,c,h); -Pj(228641,c,h)}b=0;f=0;while(1){e=J[(f<<2)+h>>2];if(e)while(1){k=1;S:{i=J[e+4>>2];if(!K[i|0])break S;while(1){d=0;n=i+k|0;b=n;j=K[b|0];if(j){while(1){d=(j<<24>>24)+(d<<4)|0;d=d>>>24&240^d&268435455;j=K[b+1|0];b=b+1|0;if(j)continue;break}b=(d>>>0)%31627|0}else b=0;b=(b<<2)+h|0;T:{while(1){b=J[b>>2];if(!b)break T;if(fc(n,J[b+4>>2]))continue;break}b=J[b+8>>2];if((b|0)>=0)break S}k=k+1|0;continue}}d=J[e+8>>2];if(d)J[(J[c+40>>2]+P(d,24)|0)+12>>2]=b;e=J[e>>2];if(e)continue;break}f=f+1|0;if((f|0)!=31627)continue; -break}d=0;while(1){b=J[(d<<2)+h>>2];if(b)while(1){e=J[b>>2];Kb(J[b+4>>2]);Kb(b);b=e;if(b)continue;break}d=d+1|0;if((d|0)!=31627)continue;break}Kb(h);b=1;e=l;l=0;if(e)continue;break}U:{if(o){b=J[g+168>>2];J[b+44>>2]=J[g+172>>2];break U}b=J[g+172>>2];a=J[g+168>>2];J[b+44>>2]=a;e=K[a|0];H[b|0]=e;h=K[a+1|0];H[b+1|0]=h;l=K[a+2|0];H[b+2|0]=l?l:e?e:3;a=K[a+3|0];H[b+3|0]=a?a:h?h:3}xb=g+176|0;return b|0}function Gea(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;c=xb-48|0;xb=c;k=J[a+420>>2];d=J[a+24>>2];h=J[d>>2];J[c+12>>2]=h;f=J[d+4>>2];J[c+16>>2]=f;d=J[k+24>>2];J[c+28>>2]=J[k+20>>2];J[c+32>>2]=d;d=J[k+32>>2];J[c+36>>2]=J[k+28>>2];J[c+40>>2]=d;d=J[k+16>>2];J[c+20>>2]=J[k+12>>2];J[c+24>>2]=d;J[c+44>>2]=a;a:{b:{if(J[k+36>>2]|!J[a+236>>2])break b;e=J[k+40>>2];g=J[c+24>>2];if((g|0)>0){d=g+7|0;f=J[c+20>>2]|127<<17-g;while(1){g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=f>>>16;g=J[c+16>>2]-1|0;J[c+16>>2]=g;if(!g){i=J[c+44>>2];g=J[i+24>>2];if(!(Ab[J[g+12>>2]](i)| -0))break a;J[c+12>>2]=J[g>>2];J[c+16>>2]=J[g+4>>2]}g=d;c:{if((f&16711680)!=16711680)break c;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;d=J[c+16>>2]-1|0;J[c+16>>2]=d;if(d)break c;i=J[c+44>>2];d=J[i+24>>2];if(!(Ab[J[d+12>>2]](i)|0))break a;J[c+12>>2]=J[d>>2];J[c+16>>2]=J[d+4>>2]}d=g-8|0;f=f<<8;if((g|0)>15)continue;break}h=J[c+12>>2]}J[c+20>>2]=0;J[c+24>>2]=0;J[c+12>>2]=h+1;H[h|0]=255;d=J[c+16>>2]-1|0;J[c+16>>2]=d;d:{if(d){f=J[c+12>>2];break d}g=J[c+44>>2];d=J[g+24>>2];if(!(Ab[J[d+12>>2]](g)|0))break a;f= -J[d>>2];J[c+16>>2]=J[d+4>>2]}J[c+12>>2]=f+1;H[f|0]=e-48;f=J[c+16>>2]-1|0;J[c+16>>2]=f;d=J[c+44>>2];if(!f){g=J[d+24>>2];if(!(Ab[J[g+12>>2]](d)|0))break a;J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}if(J[d+288>>2]<=0)break b;h=0;while(1){J[((h<<2)+c|0)+28>>2]=0;h=h+1|0;if((h|0)>2])continue;break}}n=1;if(J[a+316>>2]>0)while(1){d=q<<2;s=d+b|0;t=J[s>>2];h=I[t>>1];d=J[(a+d|0)+320>>2]<<2;u=d+c|0;m=J[u+28>>2];j=h-m|0;i=j>>31;d=J[(a+d|0)+292>>2];p=J[((J[d+24>>2]<<2)+k|0)+60>>2];l=J[((J[d+20>>2]<< -2)+k|0)+44>>2];e=J[c+44>>2];v=J[e+380>>2];r=J[e+384>>2];g=0;e:{if((h|0)==(m|0))break e;h=(i^j)-i|0;while(1){d=g;g=d+1|0;m=h>>>0>1;h=h>>>1|0;if(m)continue;break}if(d>>>0<11)break e;d=J[e>>2];J[d+20>>2]=6;Ab[J[d>>2]](e)}h=J[l+(g<<2)>>2];m=J[c+24>>2];d=H[(g+l|0)+1024|0];if(!d){l=J[e>>2];J[l+20>>2]=41;Ab[J[l>>2]](e)}e=h&(-1<>2]|e<<24-d;if((d|0)>=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){f=J[c+44>>2];e=J[f+24>>2];if(!(Ab[J[e+12>>2]](f)| -0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d;f:{if((h&16711680)!=16711680)break f;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break f;f=J[c+44>>2];d=J[f+24>>2];if(!(Ab[J[d+12>>2]](f)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8;if((e|0)>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h;if(g){d=d+g|0;h=(i+j&(-1<=8)while(1){g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){e= -J[c+44>>2];g=J[e+24>>2];if(!(Ab[J[g+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}g=d;g:{if((h&16711680)!=16711680)break g;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break g;e=J[c+44>>2];d=J[e+24>>2];if(!(Ab[J[d+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=g-8|0;h=h<<8;if((g|0)>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h}h:{if((r|0)<=0)break h;e=1;i:while(1){l=0;g=e;while(1){j=L[(J[(g<<2)+v>>2]<<1)+t>>1];if(j){if(l>>> -0>=16)while(1){i=J[p+960>>2];e=H[p+1264|0];if(!e){m=J[c+44>>2];o=J[m>>2];J[o+20>>2]=41;Ab[J[o>>2]](m)}d=d+e|0;h=(i&(-1<=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){i=J[c+44>>2];e=J[i+24>>2];if(!(Ab[J[e+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d;j:{if((h&16711680)!=16711680)break j;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break j;i=J[c+44>>2];d=J[i+24>>2];if(!(Ab[J[d+ -12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8;if(e>>>0>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h;e=(l|0)>31;l=l-16|0;if(e)continue;break}i=1;m=j<<16>>16;e=m>>31;e=(e^m)-e|0;k:{if(e>>>0<2)break k;while(1){j=i;i=i+1|0;o=e>>>0>3;e=e>>>1|0;if(o)continue;break}if(j>>>0<10)break k;e=J[c+44>>2];j=J[e>>2];J[j+20>>2]=6;Ab[J[j>>2]](e)}e=(l<<4)+i|0;j=J[(e<<2)+p>>2];e=H[(e+p|0)+1024|0];if(!e){l=J[c+44>>2];o=J[l>>2];J[o+20>>2]=41;Ab[J[o>>2]](l)}j=j&(-1<=8)while(1){d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){j=J[c+44>>2];d=J[j+24>>2];if(!(Ab[J[d+12>>2]](j)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e;l:{if((h&16711680)!=16711680)break l;e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break l;j=J[c+44>>2];e=J[j+24>>2];if(!(Ab[J[e+12>>2]](j)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d-8|0;h=h<<8;if((d|0)>15)continue;break}d=e+i|0; -h=(m+(m>>15)&(-1<=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){i=J[c+44>>2];e=J[i+24>>2];if(!(Ab[J[e+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d;m:{if((h&16711680)!=16711680)break m;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break m;i=J[c+44>>2];d=J[i+24>>2];if(!(Ab[J[d+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8;if((e|0)>15)continue; -break}J[c+24>>2]=d;J[c+20>>2]=h;e=g+1|0;if((g|0)!=(r|0))continue i;break h}l=l+1|0;e=(g|0)==(r|0);g=g+1|0;if(!e)continue;break}break}e=J[p>>2];g=H[p+1024|0];if(!g){i=J[c+44>>2];j=J[i>>2];J[j+20>>2]=41;Ab[J[j>>2]](i)}e=e&(-1<=8)while(1){d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){e=J[c+44>>2];d=J[e+24>>2];if(!(Ab[J[d+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=g;n:{if((h&16711680)!=16711680)break n; -g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break n;e=J[c+44>>2];g=J[e+24>>2];if(!(Ab[J[g+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}g=d-8|0;h=h<<8;if((d|0)>15)continue;break}J[c+24>>2]=g;J[c+20>>2]=h}J[u+28>>2]=I[J[s>>2]>>1];q=q+1|0;if((q|0)>2])continue;break}b=J[c+12>>2];d=J[a+24>>2];J[d+4>>2]=f;J[d>>2]=b;b=J[c+40>>2];J[k+28>>2]=J[c+36>>2];J[k+32>>2]=b;b=J[c+32>>2];J[k+20>>2]=J[c+28>>2];J[k+24>>2]=b;b=J[c+24>>2];J[k+12>>2]=J[c+20>> -2];J[k+16>>2]=b;a=J[a+236>>2];if(!a)break a;b=J[k+36>>2];if(b)a=b;else J[k+40>>2]=J[k+40>>2]+1&7;J[k+36>>2]=a-1}xb=c+48|0;return n|0}function afa(a){a=a|0;var b=0,c=0,d=0;d=J[a+404>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a:{if(c)break a;if(Ab[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=216;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(Ab[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}J[d+ -28>>2]=0;c:{if(!J[a+244>>2])break c;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(Ab[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=224;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(Ab[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(Ab[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>> -2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=16;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g:{if(c)break g;if(Ab[J[b+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=74;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(Ab[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=70;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(Ab[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>> -2];J[b>>2]=c+1;H[c|0]=73;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(Ab[J[b+12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=70;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(Ab[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(Ab[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=K[a+248|0];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+ -1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;m:{if(c)break m;if(Ab[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=K[a+249|0];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(Ab[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=K[a+250|0];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;o:{if(c)break o;if(Ab[J[b+12>>2]](a)|0)break o;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}c=L[a+252>>1];b=J[a+24>>2];d=J[b>> -2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;p:{if(d)break p;if(Ab[J[b+12>>2]](a)|0)break p;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;q:{if(c)break q;if(Ab[J[b+12>>2]](a)|0)break q;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}c=L[a+254>>1];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;r:{if(d)break r;if(Ab[J[b+12>>2]](a)|0)break r;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>> -2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;s:{if(c)break s;if(Ab[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(Ab[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break c;if(Ab[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}u:{if(!J[a+256>>2])break u;b=J[a+24>>2];c=J[b>>2];J[b>>2]= -c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;v:{if(c)break v;if(Ab[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=238;c=J[b+4>>2]-1|0;J[b+4>>2]=c;w:{if(c)break w;if(Ab[J[b+12>>2]](a)|0)break w;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;x:{if(c)break x;if(Ab[J[b+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=14;c=J[b+4>> -2]-1|0;J[b+4>>2]=c;y:{if(c)break y;if(Ab[J[b+12>>2]](a)|0)break y;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=65;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(Ab[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=100;c=J[b+4>>2]-1|0;J[b+4>>2]=c;A:{if(c)break A;if(Ab[J[b+12>>2]](a)|0)break A;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=111;c=J[b+4>>2]-1|0;J[b+4>>2]=c;B:{if(c)break B; -if(Ab[J[b+12>>2]](a)|0)break B;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=98;c=J[b+4>>2]-1|0;J[b+4>>2]=c;C:{if(c)break C;if(Ab[J[b+12>>2]](a)|0)break C;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=101;c=J[b+4>>2]-1|0;J[b+4>>2]=c;D:{if(c)break D;if(Ab[J[b+12>>2]](a)|0)break D;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;E:{if(c)break E;if(Ab[J[b+12>>2]](a)|0)break E; -b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=100;c=J[b+4>>2]-1|0;J[b+4>>2]=c;F:{if(c)break F;if(Ab[J[b+12>>2]](a)|0)break F;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;G:{if(c)break G;if(Ab[J[b+12>>2]](a)|0)break G;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;H:{if(c)break H;if(Ab[J[b+12>>2]](a)|0)break H;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>> -2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;I:{if(c)break I;if(Ab[J[b+12>>2]](a)|0)break I;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;J:{if(c)break J;if(Ab[J[b+12>>2]](a)|0)break J;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=J[a+80>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;K:{L:switch(d-3|0){case 0:H[c|0]=1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break u;if(!(Ab[J[b+12>>2]](a)|0))break K;break u;case 2:H[c|0]= -2;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break u;if(!(Ab[J[b+12>>2]](a)|0))break K;break u;default:break L}H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break u;if(Ab[J[b+12>>2]](a)|0)break u}b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}}function hda(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;h=xb-16|0;xb=h;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:switch(b-254|0){default:switch(b-32995|0){case 1:break k;case 3:break l;case 0:break p;case 2:break i;default:break b}case 0:J[J[c>>2]>>2]=J[a+80>>2]; -d=1;break a;case 2:J[J[c>>2]>>2]=J[a+56>>2];d=1;break a;case 3:J[J[c>>2]>>2]=J[a+60>>2];d=1;break a;case 4:I[J[c>>2]>>1]=L[a+84>>1];d=1;break a;case 5:I[J[c>>2]>>1]=L[a+88>>1];d=1;break a;case 8:I[J[c>>2]>>1]=L[a+90>>1];d=1;break a;case 9:I[J[c>>2]>>1]=L[a+92>>1];d=1;break a;case 12:I[J[c>>2]>>1]=L[a+94>>1];d=1;break a;case 20:I[J[c>>2]>>1]=L[a+96>>1];d=1;break a;case 23:I[J[c>>2]>>1]=L[a+98>>1];d=1;break a;case 24:J[J[c>>2]>>2]=J[a+100>>2];d=1;break a;case 26:I[J[c>>2]>>1]=L[a+104>>1];d=1;break a; -case 27:I[J[c>>2]>>1]=L[a+106>>1];d=1;break a;case 86:O[J[c>>2]>>3]=O[a+112>>3];d=1;break a;case 87:O[J[c>>2]>>3]=O[a+120>>3];d=1;break a;case 28:N[J[c>>2]>>2]=N[a+128>>2];d=1;break a;case 29:N[J[c>>2]>>2]=N[a+132>>2];d=1;break a;case 30:I[J[c>>2]>>1]=L[a+138>>1];d=1;break a;case 32:N[J[c>>2]>>2]=N[a+140>>2];d=1;break a;case 33:N[J[c>>2]>>2]=N[a+144>>2];d=1;break a;case 42:I[J[c>>2]>>1]=L[a+136>>1];d=1;break a;case 43:I[J[c>>2]>>1]=L[a+148>>1];I[J[c+4>>2]>>1]=L[a+150>>1];d=1;break a;case 67:I[J[c>> -2]>>1]=L[a+164>>1];I[J[c+4>>2]>>1]=L[a+166>>1];d=1;break a;case 66:J[J[c>>2]>>2]=J[a+152>>2];J[J[c+4>>2]>>2]=J[a+156>>2];J[J[c+8>>2]>>2]=J[a+160>>2];d=1;break a;case 19:case 70:J[J[c>>2]>>2]=J[a+184>>2];d=1;break a;case 85:break j;case 69:break m;case 68:break n;case 84:break o;case 25:case 71:break q;case 1:case 6:case 7:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 21:case 22:case 31:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 72:case 73:case 74:case 75:case 77:case 78:case 80:case 81:case 82:case 83:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 217:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 240:case 241:case 242:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:case 275:break b; -case 79:break c;case 278:break d;case 47:break e;case 276:break f;case 277:break g;case 76:break h}J[J[c>>2]>>2]=J[a+188>>2];d=1;break a}d=1;I[J[c>>2]>>1]=L[J[a+172>>2]>>1]==1&L[a+168>>1]==1;break a}I[J[c>>2]>>1]=L[a+168>>1];J[J[c+4>>2]>>2]=J[a+172>>2];d=1;break a}J[J[c>>2]>>2]=J[a+68>>2];d=1;break a}J[J[c>>2]>>2]=J[a+72>>2];d=1;break a}J[J[c>>2]>>2]=J[a+76>>2];d=1;break a}d=1;r:switch(L[a+86>>1]-1|0){case 0:I[J[c>>2]>>1]=2;break a;case 1:I[J[c>>2]>>1]=1;break a;case 2:I[J[c>>2]>>1]=3;break a;case 3:break r; -default:break a}I[J[c>>2]>>1]=0;break a}I[J[c>>2]>>1]=L[a+86>>1];d=1;break a}J[J[c>>2]>>2]=J[a- -64>>2];d=1;break a}I[J[c>>2]>>1]=L[a+196>>1];J[J[c+4>>2]>>2]=J[a+200>>2];d=1;break a}I[J[c>>2]>>1]=L[a+208>>1];d=1;break a}I[J[c>>2]>>1]=L[a+204>>1];I[J[c+4>>2]>>1]=L[a+206>>1];d=1;break a}J[J[c>>2]>>2]=J[a+216>>2];d=1;if((L[a+98>>1]-L[a+168>>1]|0)<2)break a;J[J[c+4>>2]>>2]=J[a+220>>2];J[J[c+8>>2]>>2]=J[a+224>>2];break a}J[J[c>>2]>>2]=J[a+212>>2];d=1;break a}J[J[c>>2]>>2]=J[a+232>>2];d=1;break a}s:{e= -ek(a,b);t:{if(!e){c=270134;b=b>>>0>65535?266449:267142;break t}if(L[e+12>>1]==65){g=J[a+236>>2];if((g|0)>0)break s;break a}c=J[e+16>>2];b=b>>>0>65535?266449:267142}i=J[a+628>>2];a=J[a>>2];J[h+8>>2]=c;J[h+4>>2]=b;J[h>>2]=a;Ob(i,273046,269902,h);break a}f=J[a+240>>2];a=0;while(1){i=f+P(a,12)|0;if(J[J[i>>2]>>2]==(b|0)){if(K[e+15|0]){b=J[i+4>>2];u:{if(L[e+4>>1]==65533){J[J[c>>2]>>2]=b;break u}I[J[c>>2]>>1]=b}J[J[c+4>>2]>>2]=J[(f+P(a,12)|0)+8>>2];d=1;break a}v:{if(!(J[e+8>>2]==2|L[e+4>>1]>65532)&J[(f+ -P(a,12)|0)+4>>2]<2)break v;w:{x:{b=J[e>>2];switch(b-321|0){case 0:case 15:break v;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break w;default:break x}}if((b|0)==297|(b|0)==530)break v}J[J[c>>2]>>2]=J[(f+P(a,12)|0)+8>>2];d=1;break a}f=f+P(a,12)|0;if(J[f+4>>2]<=0)break a;a=J[f+8>>2];b=0;while(1){d=0;y:{z:{A:switch(J[e+8>>2]-1|0){case 0:case 6:H[J[c>>2]]=K[a|0];break z;case 5:H[J[c>>2]]=K[a|0];break z;case 2:I[J[c>>2]>>1]=L[a>>1];break z;case 7:I[J[c>> -2]>>1]=L[a>>1];break z;case 3:case 12:J[J[c>>2]>>2]=J[a>>2];break z;case 8:J[J[c>>2]>>2]=J[a>>2];break z;case 4:case 9:case 10:N[J[c>>2]>>2]=N[a>>2];break z;case 11:break A;default:break y}O[J[c>>2]>>3]=O[a>>3]}c=c+4|0;d=1}g=J[J[i>>2]+8>>2]-1|0;if(g>>>0<=12)g=J[(g<<2)+283368>>2];else g=0;a=g+a|0;b=b+1|0;if((b|0)>2])continue;break}break a}a=a+1|0;if((g|0)!=(a|0))continue;break}}xb=h+16|0;return d|0}function GG(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;i=xb-1376|0;xb=i;a:{b:{c:{n=K[a+2|0]|K[a+3|0]<<8;q=n<<8|n>>>8;k=q&65535;switch(k|0){case 0:break a;case 1:break c;default:break b}}c=J[b+88>>2];if(J[c+156>>2]){qf(c);c=J[b+80>>2];d=J[b+88>>2];J[i+80>>2]=J[d+64>>2];nc(d,c,129802,i+80|0)}a=K[a|0]|K[a+1|0]<<8;Co(b,(a<<8|a>>>8)&65535);o=1;a=J[b+88>>2];if(!J[a+156>>2])break a;b=J[b+80>>2];J[i+64>>2]=J[a+64>>2]-1;nc(a,b,129856,i- -64|0);break a}d:{if(k>>>0>64)break d;h=J[b+88>>2];e=J[h+64>>2];J[b+4>>2]=e;c=J[J[b+8>>2]+88>>2];J[b+36>>2]=J[c+68>>2];f= -J[c+64>>2]==(e|0)?K[(J[c+80>>2]+P(e,20)|0)+15|0]:f;J[b+32>>2]=a+4;J[b+28>>2]=0;J[b+24>>2]=839;H[b+23|0]=K[b+22|0]?f:0;c=K[(J[h+80>>2]+P(e,20)|0)+14|0];m=c&16?0:c&15;u=(m|0)!=0&c>>>0>31;p=c>>>5|0;j=1;while(1){c=J[b+36>>2];g=c-1|0;if((g|0)<=(e|0))break d;e:{f:{g:{h:{while(1){d=e+1|0;J[b+4>>2]=d;c=J[b+12>>2];f=J[b+8>>2];e=J[J[f+88>>2]+80>>2]+P(d,20)|0;d=L[e+12>>1];i:{if(c&d&14)break i;j:{if(!(d&8))break j;if(c&16){if(jf(J[f+148>>2],c>>>16|0,J[e>>2]))break j;break i}c=c&65280;if(!c)break j;if((c|0)!= -(d&65280))break i}c=1;d=L[e+16>>1];if(!(K[e+12|0]&16|(d&96)!=32|!K[b+20|0]&(d&543)==513))c=!K[b+21|0]&(d&287)==257;f=J[b+32>>2];if(f){d=K[f|0]|K[f+1|0]<<8;d=(d<<8|d>>>8)&65535}else d=0;k:{if(!(J[b+16>>2]&J[e+4>>2]))break k;l=K[b+23|0];if((l|0)!=K[e+15|0]?l:0)break k;l=J[b+24>>2];l:{if(l){if(!(Ab[l|0](e,d,J[b+28>>2])|0))break k;f=J[b+32>>2];break l}if(!c)break i}if(f)J[b+32>>2]=f+2;e=J[b+4>>2];J[(i+1120|0)+(j<<2)>>2]=e;g=J[h+80>>2];c=K[(g+P(e,20)|0)+14|0];d=c&16?0:c&15;f=c>>>5|0;if(!u)break g;if((f| -0)==(p|0)&(d|0)==(m|0))break e;c=0;switch(s|0){case 0:break h;case 1:break d;default:break e}}if(c)break f}e=J[b+4>>2];if((g|0)>(e|0))continue;break}c=J[b+36>>2];break d}f=J[h+72>>2];if(!f)break d;l=J[h+84>>2];s=l-6|0;while(1){t=P(f,20);d=K[s+t|0];if((p|0)!=(d>>>5|0))break d;if(!(!(d&15)|d&16)){f=f-1|0;if(f)continue;break d}break}s=2;f=J[b+12>>2];l=(l+t|0)-20|0;d=L[l+12>>1];if(f&d&14)break e;if(!(d&8))break d;if(Bd(J[b+8>>2],J[l>>2],d,f))break d;e=J[b+4>>2];g=J[h+80>>2];break e}if(!d|((f|0)==(p|0)| -c>>>0<32))break e;c=0;break d}c=J[b+4>>2]+1|0;break d}c=1;d=P(e,20)+g|0;m:{if(!(K[d+12|0]&4))break m;d=K[d+14|0];if(!(d&16))break m;c=d&15}r=c+r|0;j=j+1|0;if((k|0)!=(j|0))continue;break}j=J[h+64>>2];d=P(j,20)+g|0;c=1;n:{if(!(K[d+12|0]&4))break n;d=K[d+14|0];c=1;if(!(d&16))break n;c=d&15}g=e+1|0;J[i+1120>>2]=j;d=c+r|0;c=J[b+88>>2];o:{if(!J[c+156>>2]){r=0;break o}f=qf(c);e=J[b+88>>2];r=J[e+64>>2];c=i+96|0;Nb(c,0,1024);if(n){e=f+j|0;J[i+48>>2]=e;J[i+1120>>2]=e;Jf(c,1024,106543,i+48|0);if((q&65535)>>> -0>=2){o=i+1120|0;e=ac(c)+c|0;c=1;while(1){h=(i+1120|0)+(c<<2)|0;j=f+J[h>>2]|0;J[h>>2]=j;H[e|0]=44;J[i+32>>2]=j;e=e+1|0;Jf(e,o-e|0,106543,i+32|0);e=ac(e)+e|0;c=c+1|0;if((k|0)!=(c|0))continue;break}}e=J[b+88>>2]}g=f+g|0;c=J[b+80>>2];J[i+16>>2]=i+96;nc(e,c,129909,i+16|0)}p=i+1120|0;a=K[a|0]|K[a+1|0]<<8;m=(a<<8|a>>>8)&65535;a=d;j=0;e=b;d=J[b+88>>2];b=J[d+64>>2];if(g-b>>>0>=2)Kd(d,b,g);c=1;b=J[d+80>>2];g=L[(b+P(J[p>>2],20)|0)+12>>1];o=!(g&8);g=!(g&2);p:{if(k>>>0<=1)break p;while(1){if(K[(b+P(J[p+(c<<2)>> -2],20)|0)+12|0]&8){c=c+1|0;if((k|0)!=(c|0))continue;break p}break}o=1;g=1}n=g&o;if(n){c=K[d+141|0];while(1){c=c+1&255;c=c>>>0<=1?1:c;if(!(c&7))continue;break}H[d+141|0]=c;j=c<<5&224}c=n?4:0;b=b+P(J[d+64>>2],20)|0;g=K[b+14|0];f=g&16?g&15:1;h=K[b+12|0]&4;q:{if(!n)break q;H[b+14|0]=a&15|j|16;a=J[d+80>>2]+P(J[d+64>>2],20)|0;b=L[a+16>>1];if((b&31)!=12)break q;I[a+16>>1]=b&224|7}b=h?f:1;Yl(e,m,c,1,0);c=J[e+88>>2];if(ec(c,1,1)){a=J[c+64>>2];r:{if(a>>>0>2]){f=J[c+72>>2];h=J[c+84>>2];a=J[c+80>>2]+ -P(a,20)|0;break r}h=J[c+84>>2];f=J[c+72>>2];a=f-1|0;a=h+P(a>>>0<=f>>>0?a:0,20)|0}f=P(f,20)+h|0;h=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=h;J[f+16>>2]=J[a+16>>2];h=J[a+12>>2];J[f+8>>2]=J[a+8>>2];J[f+12>>2]=h;J[f>>2]=m;J[c+64>>2]=J[c+64>>2]+1;J[c+72>>2]=J[c+72>>2]+1}f=0-b|0;s:{if(k>>>0<2){a=b;break s}c=J[d+64>>2];h=1;a=b;while(1){t:{m=p+(h<<2)|0;if(M[m>>2]<=c>>>0)break t;if(n){f=b+f|0;while(1){if(!K[d+60|0])break t;g=J[d+80>>2]+P(c,20)|0;c=K[g+14|0];c=c&16?0:c&15;c=c?c:a;H[g+14|0]=f+(a>>>0>c>>>0?c:a)&15| -j;u:{if(K[d+62|0]){v:{if(J[d+84>>2]==J[d+80>>2]){c=J[d+72>>2];if((c|0)==J[d+64>>2])break v}g=ec(d,1,1);c=J[d+64>>2];if(!g)break u;c=J[d+80>>2]+P(c,20)|0;q=J[c+4>>2];g=J[d+84>>2]+P(J[d+72>>2],20)|0;J[g>>2]=J[c>>2];J[g+4>>2]=q;J[g+16>>2]=J[c+16>>2];q=J[c+12>>2];J[g+8>>2]=J[c+8>>2];J[g+12>>2]=q;c=J[d+72>>2]}J[d+72>>2]=c+1}c=J[d+64>>2]+1|0;J[d+64>>2]=c}if(M[m>>2]>c>>>0)continue;break}break t}if(!K[d+60|0])break t;a=1;if(!K[d+62|0])while(1){c=c+1|0;J[d+64>>2]=c;if(M[m>>2]>c>>>0)continue;break t}while(1){w:{if(a& -255){x:{if(J[d+84>>2]==J[d+80>>2]){a=c;if(J[d+72>>2]==(c|0))break x}a=ec(d,1,1);c=J[d+64>>2];if(!a)break w;c=J[d+80>>2]+P(c,20)|0;g=J[c+4>>2];a=J[d+84>>2]+P(J[d+72>>2],20)|0;J[a>>2]=J[c>>2];J[a+4>>2]=g;J[a+16>>2]=J[c+16>>2];g=J[c+12>>2];J[a+8>>2]=J[c+8>>2];J[a+12>>2]=g;c=J[d+64>>2];a=J[d+72>>2]}J[d+72>>2]=a+1}c=c+1|0;J[d+64>>2]=c}if(!K[d+60|0]|M[m>>2]<=c>>>0)break t;a=K[d+62|0];continue}}a=J[d+80>>2]+P(c,20)|0;f=L[a+12>>1];g=K[a+14|0];c=c+1|0;J[d+64>>2]=c;a=f&4?g&16?g&15:1:1;f=0-a|0;b=a+b|0;h=h+1| -0;if((k|0)!=(h|0))continue;break}}y:{if(!(g>>>0>31&o))break y;c=J[d+64>>2];if(c>>>0>=M[d+68>>2])break y;f=b+f|0;while(1){k=J[d+80>>2]+P(c,20)|0;b=K[k+14|0];if((b^g)>>>0>31|b&16)break y;b=b&15;if(!b)break y;H[k+14|0]=f+(a>>>0>>0?a:b)&15|j;c=c+1|0;if(c>>>0>2])continue;break}}o=1;a=J[e+88>>2];if(!J[a+156>>2])break a;qf(a);a=J[e+80>>2];b=J[e+88>>2];J[i>>2]=r;nc(b,a,129931,i);break a}a=J[b+88>>2];if(!(K[a+16|0]&64))break a;e=J[a+64>>2];J[a+144>>2]=J[a+144>>2]|32;b=J[a+68>>2];c=b>>>0>>0?b: -c;if(c>>>0<=e>>>0)break a;g=c+(e^-1)|0;d=J[a+80>>2];a=c-e&3;if(a){b=0;while(1){f=d+P(e,20)|0;J[f+4>>2]=J[f+4>>2]|2;e=e+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}if(g>>>0<3)break a;while(1){a=d+P(e,20)|0;J[a+4>>2]=J[a+4>>2]|2;J[a+24>>2]=J[a+24>>2]|2;J[a+44>>2]=J[a+44>>2]|2;a=a- -64|0;J[a>>2]=J[a>>2]|2;e=e+4|0;if((c|0)!=(e|0))continue;break}}xb=i+1376|0;return o}function vj(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,y=0,z=0,A=0,B=0; -g=xb-48|0;xb=g;r=J[a+100>>2];f=J[a+104>>2];J[g+40>>2]=0;e=J[a+736>>2];a:{b:{if(!e){c=g+44|0;i=Ab[J[a+516>>2]](a,1735811442,f,c)|0;J[g+40>>2]=i;if(i){c=Ab[J[a+516>>2]](a,1128678962,f,c)|0;J[g+40>>2]=c;if(c)break a}c=Ab[J[a+516>>2]](a,1719034226,f,g+44|0)|0;J[g+40>>2]=c;if(c)break a;o=J[f+8>>2];c=Nc(f,96880,g+24|0);J[g+40>>2]=c;if(c)break a;l=L[g+30>>1];j=L[g+36>>1];c=tc(r,80,g+40|0);J[a+736>>2]=c;if(J[g+40>>2])break a;i=L[g+30>>1];J[c>>2]=i;x=(j|0)==((l<<2)+6|0);break b}i=J[e>>2];c=e}t=P(i,24);q=J[a+ -12>>2];p=q>>>16|0;u=P(p,12);v=(i<<1)+3&-4;y=P(i,p);w=y<<2;if(!e){e=c;c=((((P(i,5)+t|0)+v|0)+u|0)+w|0)+20|0;J[e+16>>2]=c;l=tc(r,c,g+40|0);if(J[g+40>>2])break a;J[J[a+736>>2]+12>>2]=l;s=l+20|0;j=s+v|0;J[l+12>>2]=j;J[l+8>>2]=p;J[l+4>>2]=-1;J[l>>2]=i;n=j+t|0;J[l+16>>2]=n;e=n+u|0;c:{if(q>>>0<65536)break c;m=p>>>0<=1?1:p;z=m&3;c=e;if(q>>>0>=262144){q=m&65532;while(1){J[P(d,12)+n>>2]=c;m=c;c=i<<2;m=m+c|0;J[P(d|1,12)+n>>2]=m;m=c+m|0;J[P(d|2,12)+n>>2]=m;m=c+m|0;J[P(d|3,12)+n>>2]=m;c=c+m|0;d=d+4|0;k=k+4|0; -if((q|0)!=(k|0))continue;break}}if(!z)break c;k=i<<2;while(1){J[P(d,12)+n>>2]=c;d=d+1|0;c=c+k|0;h=h+1|0;if((z|0)!=(h|0))continue;break}}d:{if(!i)break d;n=i&7;d=e+w|0;k=0;e:{if(i-1>>>0<7){c=0;break e}e=i&-8;c=0;h=0;while(1){J[P(c,24)+j>>2]=d;J[P(c|1,24)+j>>2]=d+5;J[P(c|2,24)+j>>2]=d+10;J[P(c|3,24)+j>>2]=d+15;J[P(c|4,24)+j>>2]=d+20;J[P(c|5,24)+j>>2]=d+25;J[P(c|6,24)+j>>2]=d+30;J[P(c|7,24)+j>>2]=d+35;c=c+8|0;d=d+40|0;h=h+8|0;if((e|0)!=(h|0))continue;break}}if(!n)break d;while(1){J[P(c,24)+j>>2]=d;c= -c+1|0;d=d+5|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}c=bc(f,L[g+28>>1]+o|0);J[g+40>>2]=c;if(c)break a;if(i){d=J[l+12>>2];e=0;while(1){c=Nc(f,96928,g+4|0);J[g+40>>2]=c;if(c)break a;c=J[g+4>>2];J[d+16>>2]=c;J[d+4>>2]=J[g+8>>2];J[d+8>>2]=J[g+12>>2];J[d+12>>2]=J[g+16>>2];J[d+20>>2]=L[g+22>>1];H[J[d>>2]]=c>>>24;H[J[d>>2]+1|0]=L[d+18>>1];H[J[d>>2]+2|0]=J[d+16>>2]>>>8;H[J[d>>2]+3|0]=J[d+16>>2];H[J[d>>2]+4|0]=0;I[s>>1]=L[g+20>>1];c=J[d+8>>2];if(!((c|0)>=J[d+4>>2]&(c|0)<=J[d+12>>2])){J[d+12>>2]=c;J[d+4>> -2]=c}s=s+2|0;d=d+24|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}d=0;c=Tb(r,4,0,y,0,g+40|0);e=J[a+736>>2];J[e+20>>2]=c;if(J[g+40>>2])break a;f:{if(!L[g+34>>1])break f;if(!K[e+24|0]){c=J[f+8>>2];rv(a);c=bc(f,c);J[g+40>>2]=c;if(c)break a;if(!L[g+34>>1])break f}j=i<<2;o=j+(x?6:4)|0;e=J[l+16>>2];k=J[J[a+736>>2]+20>>2];h=0;while(1){c=Tc(f,o);J[g+40>>2]=c;if(c)break a;A=e,B=Zc(f),J[A+4>>2]=B;Zc(f);if(i){d=J[e>>2];c=0;while(1){A=d,B=he(f),J[A>>2]=B;d=d+4|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if(x)c=Zc(f); -else c=65535;J[e+8>>2]=c;qv(J[a+736>>2],i,J[e>>2],k);Ec(f);e=e+12|0;k=j+k|0;d=L[g+34>>1];h=h+1|0;if(d>>>0>h>>>0)continue;break}}g:{if((d|0)==(p|0))break g;c=17;d=g+4|0;e=J[a+540>>2];if(!(Ab[J[e+148>>2]](a,17,d,g)|0)){c=2;if(!(Ab[J[e+148>>2]](a,2,d,g)|0))break g}if(!(Ab[J[e+148>>2]](a,6,g+4|0,g)|0))break g;e=J[l+16>>2]+P(L[g+34>>1],12)|0;J[e+8>>2]=6;J[e+4>>2]=c;if(!i)break g;d=J[e>>2];c=J[l+12>>2];if(i-1>>>0>=7){f=i&-8;e=0;while(1){J[d>>2]=J[c+8>>2];J[d+4>>2]=J[c+32>>2];J[d+8>>2]=J[c+56>>2];J[d+12>> -2]=J[c+80>>2];J[d+16>>2]=J[c+104>>2];J[d+20>>2]=J[c+128>>2];J[d+24>>2]=J[c+152>>2];J[d+28>>2]=J[c+176>>2];d=d+32|0;c=c+192|0;e=e+8|0;if((f|0)!=(e|0))continue;break}}f=i&7;if(!f)break g;e=0;while(1){J[d>>2]=J[c+8>>2];d=d+4|0;c=c+24|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}c=xb-16|0;xb=c;d=J[a+736>>2];e=J[a+104>>2];h=J[e+28>>2];f=Ab[J[a+516>>2]](a,1297498450,e,c+8|0)|0;J[c+12>>2]=f;h:{if(f)break h;l=J[e+8>>2];f=c+12|0;k=rc(e,f);if(J[c+12>>2])break h;j=yd(e,2);J[c+12>>2]=j;if((k|0)!=1|j)break h;A=d, -B=tc(h,28,f),J[A+56>>2]=B;if(J[c+12>>2])break h;k=yd(e,4);J[c+12>>2]=k;if(k)break h;k=rc(e,f);I[J[d+56>>2]>>1]=k;if(J[c+12>>2])break h;k=rc(e,f);if(J[c+12>>2])break h;j=J[e+8>>2];l=mv(J[a+104>>2],J[a+736>>2],l+k|0,J[d+56>>2]+4|0);J[c+12>>2]=l;if(l)break h;f=Tb(h,12,0,L[J[d+56>>2]>>1],0,f);J[J[d+56>>2]+24>>2]=f;if(J[c+12>>2])break h;f=bc(e,j);J[c+12>>2]=f;if(f)break h;f=Tc(e,L[J[d+56>>2]>>1]<<3);J[c+12>>2]=f;if(f)break h;f=J[d+56>>2];h=L[f>>1];i:{if(!h)break i;o=J[f+24>>2];h=o+P(h,12)|0;while(1){j:{A= -o,B=he(e),J[A>>2]=B;A=o,B=Zc(e),I[A+4>>1]=B;l=Zc(e);I[o+6>>1]=l;k=L[o+4>>1];if(k>>>0>=M[f+4>>2]|l>>>0>=M[J[f+8>>2]+(k<<4)>>2])break j;o=o+12|0;if(h>>>0>o>>>0)continue;break i}break}J[c+12>>2]=8}Ec(e);if(J[c+12>>2])break h;e=J[d+56>>2];d=L[e>>1];if(d){h=J[e+24>>2];e=h+P(d,12)|0;while(1){d=lv(a,J[h>>2]);if(d)I[h+8>>1]=L[d>>1];h=h+12|0;if(e>>>0>h>>>0)continue;break}}J[a+740>>2]=J[a+740>>2]|256}xb=c+16|0}if(!b)break a;c=tc(r,J[J[a+736>>2]+16>>2],g+40|0);if(J[g+40>>2])break a;a=J[a+736>>2];l=Mb(c,J[a+ -12>>2],J[a+16>>2]);c=(l+v|0)+20|0;f=t+c|0;J[l+16>>2]=f;J[l+12>>2]=c;a=f+u|0;j=J[l+8>>2];k:{if(!j)break k;k=0;d=0;e=a;if(j>>>0>=4){o=j&-4;h=0;while(1){J[f+P(d,12)>>2]=e;m=e;e=i<<2;n=m+e|0;J[f+P(d|1,12)>>2]=n;n=e+n|0;J[f+P(d|2,12)>>2]=n;n=e+n|0;J[f+P(d|3,12)>>2]=n;e=e+n|0;d=d+4|0;h=h+4|0;if((o|0)!=(h|0))continue;break}}h=j&3;if(!h)break k;j=i<<2;while(1){J[f+P(d,12)>>2]=e;d=d+1|0;e=e+j|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}l:{if(!i)break l;d=a+w|0;if((i|0)!=1){h=i&-2;a=0;while(1){J[c>>2]=d;m:{n:{o:{e= -J[c+16>>2];if((e|0)<=2003072103){if((e|0)==1869640570)break o;if((e|0)!=1936486004)break m;m=10564;break n}m=10150;if((e|0)==2003265652)break n;if((e|0)!=2003072104)break m;m=10287;break n}m=10426}J[c>>2]=m}J[c+24>>2]=d+5;p:{q:{r:{s:{e=J[c+40>>2];if((e|0)<=2003072103){if((e|0)==1869640570)break s;if((e|0)!=1936486004)break p;m=10564;break q}if((e|0)==2003072104)break r;m=10150;if((e|0)==2003265652)break q;break p}m=10426;break q}m=10287}J[c+24>>2]=m}c=c+48|0;d=d+10|0;a=a+2|0;if((h|0)!=(a|0))continue; -break}}if(!(i&1))break l;J[c>>2]=d;t:{u:{v:{a=J[c+16>>2];if((a|0)<=2003072103){if((a|0)==1869640570)break v;if((a|0)!=1936486004)break l;e=10564;break t}if((a|0)==2003072104)break u;e=10150;if((a|0)==2003265652)break t;break l}e=10426;break t}e=10287}J[c>>2]=e}J[b>>2]=l}xb=g+48|0;return J[g+40>>2]}function Af(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=Q(0);if(os(a)){if(!(c?b:0)){c=K[238240]|K[238241]<<8|(K[238242]<<16|K[238243]<<24);b=K[238236]|K[238237]<<8|(K[238238]<<16|K[238239]<<24);H[a+ -125|0]=b;H[a+126|0]=b>>>8;H[a+127|0]=b>>>16;H[a+128|0]=b>>>24;H[a+129|0]=c;H[a+130|0]=c>>>8;H[a+131|0]=c>>>16;H[a+132|0]=c>>>24;c=K[238235]|K[238236]<<8|(K[238237]<<16|K[238238]<<24);b=K[238231]|K[238232]<<8|(K[238233]<<16|K[238234]<<24);H[a+120|0]=b;H[a+121|0]=b>>>8;H[a+122|0]=b>>>16;H[a+123|0]=b>>>24;H[a+124|0]=c;H[a+125|0]=c>>>8;H[a+126|0]=c>>>16;H[a+127|0]=c>>>24;c=K[238227]|K[238228]<<8|(K[238229]<<16|K[238230]<<24);b=K[238223]|K[238224]<<8|(K[238225]<<16|K[238226]<<24);H[a+112|0]=b;H[a+113| -0]=b>>>8;H[a+114|0]=b>>>16;H[a+115|0]=b>>>24;H[a+116|0]=c;H[a+117|0]=c>>>8;H[a+118|0]=c>>>16;H[a+119|0]=c>>>24;c=K[238219]|K[238220]<<8|(K[238221]<<16|K[238222]<<24);b=K[238215]|K[238216]<<8|(K[238217]<<16|K[238218]<<24);H[a+104|0]=b;H[a+105|0]=b>>>8;H[a+106|0]=b>>>16;H[a+107|0]=b>>>24;H[a+108|0]=c;H[a+109|0]=c>>>8;H[a+110|0]=c>>>16;H[a+111|0]=c>>>24;c=K[238211]|K[238212]<<8|(K[238213]<<16|K[238214]<<24);b=K[238207]|K[238208]<<8|(K[238209]<<16|K[238210]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]= -b>>>16;H[a+99|0]=b>>>24;H[a+100|0]=c;H[a+101|0]=c>>>8;H[a+102|0]=c>>>16;H[a+103|0]=c>>>24;c=K[238203]|K[238204]<<8|(K[238205]<<16|K[238206]<<24);b=K[238199]|K[238200]<<8|(K[238201]<<16|K[238202]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[238195]|K[238196]<<8|(K[238197]<<16|K[238198]<<24);b=K[238191]|K[238192]<<8|(K[238193]<<16|K[238194]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84| -0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[238187]|K[238188]<<8|(K[238189]<<16|K[238190]<<24);b=K[238183]|K[238184]<<8|(K[238185]<<16|K[238186]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}g=Q(Q(b>>>0)*Q(c>>>0));f=1;a:{if(d>>>0<2)break a;f=4;if(d>>>0<5)break a;f=d>>>0>8?24:8}if(Q(Q(g*Q(f>>>0))*Q(.125))>Q(1073741824)){b=K[238793]|K[238794]<<8|(K[238795]<<16|K[238796]<<24);H[a+96|0]=b;H[a+97| -0]=b>>>8;H[a+98|0]=b>>>16;H[a+99|0]=b>>>24;c=K[238789]|K[238790]<<8|(K[238791]<<16|K[238792]<<24);b=K[238785]|K[238786]<<8|(K[238787]<<16|K[238788]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[238781]|K[238782]<<8|(K[238783]<<16|K[238784]<<24);b=K[238777]|K[238778]<<8|(K[238779]<<16|K[238780]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87| -0]=c>>>24;c=K[238773]|K[238774]<<8|(K[238775]<<16|K[238776]<<24);b=K[238769]|K[238770]<<8|(K[238771]<<16|K[238772]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}d=2;b:{c:switch(f-1|0){case 3:d=16;break b;case 7:d=256;break b;case 0:break b;default:break c}d=0}J[a+44>>2]=d;J[a+12>>2]=40;J[a+68>>2]=e;J[a+28>>2]=0;I[a+26>>1]=f;I[a+24>>1]=1;J[a+20>>2]=c;J[a+16>>2]=b;b=P(b,f)+31>>>3&536870908;J[a+52>>2]=b;b=P(b, -c);J[a+32>>2]=b;b=Qb((b+(J[a+44>>2]<<2)|0)+40|0);J[a+4>>2]=b;if(!b){c=K[238871]|K[238872]<<8|(K[238873]<<16|K[238874]<<24);b=K[238867]|K[238868]<<8|(K[238869]<<16|K[238870]<<24);H[a+102|0]=b;H[a+103|0]=b>>>8;H[a+104|0]=b>>>16;H[a+105|0]=b>>>24;H[a+106|0]=c;H[a+107|0]=c>>>8;H[a+108|0]=c>>>16;H[a+109|0]=c>>>24;c=K[238865]|K[238866]<<8|(K[238867]<<16|K[238868]<<24);b=K[238861]|K[238862]<<8|(K[238863]<<16|K[238864]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]=b>>>16;H[a+99|0]=b>>>24;H[a+100|0]=c;H[a+101| -0]=c>>>8;H[a+102|0]=c>>>16;H[a+103|0]=c>>>24;c=K[238857]|K[238858]<<8|(K[238859]<<16|K[238860]<<24);b=K[238853]|K[238854]<<8|(K[238855]<<16|K[238856]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[238849]|K[238850]<<8|(K[238851]<<16|K[238852]<<24);b=K[238845]|K[238846]<<8|(K[238847]<<16|K[238848]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87| -0]=c>>>24;c=K[238841]|K[238842]<<8|(K[238843]<<16|K[238844]<<24);b=K[238837]|K[238838]<<8|(K[238839]<<16|K[238840]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}J[a+8>>2]=(J[a+12>>2]+(b+J[a+32>>2]|0)|0)+(J[a+44>>2]<<2);b=J[a+4>>2];b=b?J[a+44>>2]?b+40|0:0:0;if(b)Nb(b,0,J[a+44>>2]<<2);b=J[a+928>>2];if(b){if(b){Kb(b);J[a+928>>2]=0}J[a+376>>2]=0;J[a+380>>2]=0;J[a+372>>2]=J[a+16>>2];J[a+384>>2]=J[a+20>>2]}if(J[a+ -932>>2])fo(a);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);b=J[a+4>>2];c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24;d=K[a+48|0]|K[a+49|0]<<8|(K[a+50|0]<<16|K[a+51|0]<<24);c=K[a+44|0]|K[a+45|0]<<8|(K[a+46|0]<<16|K[a+47|0]<<24);H[b+32|0]=c;H[b+33|0]=c>>>8;H[b+34|0]=c>>>16;H[b+35|0]=c>>>24;H[b+36|0]=d;H[b+37|0]=d>>>8;H[b+38|0]=d>>>16;H[b+39|0]=d>>>24;d=K[a+40|0]|K[a+41| -0]<<8|(K[a+42|0]<<16|K[a+43|0]<<24);c=K[a+36|0]|K[a+37|0]<<8|(K[a+38|0]<<16|K[a+39|0]<<24);H[b+24|0]=c;H[b+25|0]=c>>>8;H[b+26|0]=c>>>16;H[b+27|0]=c>>>24;H[b+28|0]=d;H[b+29|0]=d>>>8;H[b+30|0]=d>>>16;H[b+31|0]=d>>>24;d=K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24);c=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);H[b+16|0]=c;H[b+17|0]=c>>>8;H[b+18|0]=c>>>16;H[b+19|0]=c>>>24;H[b+20|0]=d;H[b+21|0]=d>>>8;H[b+22|0]=d>>>16;H[b+23|0]=d>>>24;d=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24); -c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]=c>>>16;H[b+11|0]=c>>>24;H[b+12|0]=d;H[b+13|0]=d>>>8;H[b+14|0]=d>>>16;H[b+15|0]=d>>>24;b=J[a+4>>2];d:{if(!b){f=0;b=0;break d}f=J[a+4>>2];b=(b+J[b>>2]|0)+(J[a+44>>2]<<2)|0}J[a+56>>2]=b}return f|0}function wK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a=xb-320|0;xb=a;J[b>>2]=1;J[b+504>>2]=0;q=xf(J[b+96>>2],9721,1);J[b+488>>2]=q;n=Jg(J[J[b+96>>2]+4>> -2],9871);J[b+492>>2]=n;a:{if(!n){f=11;break a}h=J[b+100>>2];g=a+4|0;Nb(g,0,304);s=b,t=tc(h,12,a),J[s+496>>2]=t;b:{if(J[a>>2])break b;J[b+500>>2]=12;f=J[b+104>>2];Ab[J[J[n+4>>2]>>2]](g,0,0,h);H[a+88|0]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+76>>2]=f;g=bc(f,0);J[a+308>>2]=g;c:{d:{if(g)break d;g=Tc(f,17);J[a+308>>2]=g;if(g)break d;if(cd(J[f+32>>2],10372,17)){g=2;J[a+308>>2]=2;Ec(f);break d}Ec(f);g=bc(f,0);J[a+308>>2]=g;if(g)break d;i=J[f+4>>2];e:{if(!J[f+20>>2]){g=J[f+8>>2];j=J[f>>2];H[a+88|0]=1;J[a+84>>2]= -i;J[a+80>>2]=g+j;g=yd(f,i);J[a+308>>2]=g;if(g)break d;i=J[a+84>>2];break e}j=tc(h,i,a+308|0);J[a+80>>2]=j;g=J[a+308>>2];if(g)break d;g=Dd(f,j,i);J[a+308>>2]=g;if(g)break d;J[a+84>>2]=i}h=J[a+80>>2];J[a+8>>2]=h;J[a>>2]=0;break c}if(K[a+88|0]){J[a>>2]=g;break b}f=J[a+80>>2];if(f)Ab[J[h+8>>2]](h,f);h=0;J[a+80>>2]=0;f=J[a+308>>2];J[a>>2]=f;if(f)break b;i=J[a+84>>2]}J[a+16>>2]=0;J[a+4>>2]=h;g=i+h|0;J[a+12>>2]=g;Ab[J[a+32>>2]](a+4|0);f:{g:{h:{f=J[a+4>>2];if(g>>>0>f>>>0){o=b+132|0;m=b+164|0;p=b+464|0;while(1){i:{j:{i= -K[f|0];if(!((i|0)!=70|g>>>0<=f+25>>>0)){if(Zb(f,10518,13))break j;f=a+4|0;Ab[J[a+36>>2]](f);Ab[J[a+32>>2]](f);h=J[a+4>>2];f=h;k:{if(g>>>0<=f>>>0)break k;while(1){l:{if(!(K[f|0]!=107|g>>>0<=f+5>>>0))if(!Zb(f,10667,5))break l;i=a+4|0;Ab[J[a+36>>2]](i);f=J[a+16>>2];if(f)break h;Ab[J[a+32>>2]](i);f=J[a+4>>2];if(g>>>0>f>>>0)continue;break k}break}f=a+4|0;Ab[J[a+36>>2]](f);Ab[J[a+60>>2]](f,a+308|0);h=J[a+316>>2]==3?J[a+4>>2]:h}J[a+4>>2]=h;break i}if((i|0)!=47|g>>>0<=f+2>>>0)break j;i=f+1|0;J[a+4>>2]=i; -Ab[J[a+36>>2]](a+4|0);f=J[a+16>>2];if(f)break h;h=J[a+4>>2];if((h|0)==(i|0))break i;k=h-i|0;if(k>>>0>21)break i;f=0;if(g>>>0<=h>>>0)break i;while(1){m:{h=P(f,36);l=h+102512|0;j=J[l>>2];if(!j|K[i|0]!=K[j|0])break m;if((ac(j)|0)!=(k|0))break m;if(cd(i,j,k))break m;n:{if(f-15>>>0<=3){Ab[J[h+102524>>2]](b,a+4|0);f=J[a+16>>2];break n}f=J[h+102520>>2];o:{p:switch(J[h+102516>>2]-2|0){case 0:J[a+308>>2]=m;break o;case 3:J[a+308>>2]=p;break o;default:break p}J[a+308>>2]=o}if(f-9>>>0<=1){f=Ab[J[a+72>>2]](a+ -4|0,l,a+308|0,0,0)|0;break n}f=Ab[J[a+68>>2]](a+4|0,l,a+308|0,0,0)|0}J[a+16>>2]=f;if(!f)break i;J[a>>2]=f;break b}f=f+1|0;if((f|0)!=20)continue;break}break i}Ab[J[a+36>>2]](a+4|0);f=J[a+16>>2];if(f)break h}Ab[J[a+32>>2]](a+4|0);f=J[a+4>>2];if(g>>>0>f>>>0)continue;break}}f=J[a+16>>2];J[a>>2]=f;if(f)break b;if(K[b+437|0]!=42){J[a>>2]=2;break b}h=J[a+148>>2];J[b+420>>2]=h;if(!J[a+216>>2])J[a>>2]=3;i=0;J[a+216>>2]=0;J[b+396>>2]=J[a+204>>2];J[b+428>>2]=J[a+228>>2];J[b+432>>2]=J[a+232>>2];J[b+400>>2]=J[a+ -152>>2];J[b+424>>2]=J[a+176>>2];J[a+176>>2]=0;J[a+152>>2]=0;if(J[b+368>>2]!=1)break b;j=0;k=J[a+112>>2];if((k|0)<=0)break f;g=0;if((h|0)<=0)break g;while(1){l=g<<2;o=J[l+J[a+120>>2]>>2];p=g<<1;I[p+J[b+384>>2]>>1]=0;J[l+J[b+388>>2]>>2]=10293;q:{if(!o)break q;r=J[b+424>>2];f=0;while(1){m=J[(f<<2)+r>>2];if(fc(o,m)){f=f+1|0;if((h|0)!=(f|0))continue;break q}break}I[p+J[b+384>>2]>>1]=f;J[l+J[b+388>>2]>>2]=m;if(!fc(10293,m))break q;j=(g|0)<(j|0)?j:g+1|0;i=(g|0)<(i|0)?g:i}g=g+1|0;if((k|0)!=(g|0))continue; -break}break f}J[a>>2]=f;break b}h=0;f=0;if(k>>>0>=4){i=k&-4;while(1){I[J[b+384>>2]+(f<<1)>>1]=0;J[J[b+388>>2]+(f<<2)>>2]=10293;j=f|1;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=10293;j=f|2;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=10293;j=f|3;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=10293;f=f+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=k&3;if(!g){i=0;j=0;break f}while(1){i=0;I[J[b+384>>2]+(f<<1)>>1]=0;J[J[b+388>>2]+(f<<2)>>2]=10293;f=f+1|0;j=0;h=h+1|0;if((g|0)!=(h|0))continue; -break}}J[b+380>>2]=j;J[b+376>>2]=i;J[b+372>>2]=J[a+92>>2]}f=J[a+144>>2];if(f)Ab[f|0](a+96|0);f=J[a+252>>2];if(f)Ab[f|0](a+204|0);f=J[a+200>>2];if(f)Ab[f|0](a+152|0);f=J[a+304>>2];if(f)Ab[f|0](a+256|0);if(!K[a+88|0]){f=J[a+20>>2];g=J[a+80>>2];if(g)Ab[J[f+8>>2]](f,g);J[a+80>>2]=0}f=J[a+28>>2];if(f)Ab[f|0](a+4|0);f=J[a>>2];if(f|(c|0)<0)break a;f=6;if(c&65535)break a;J[b+36>>2]=0;J[b+4>>2]=0;J[b+24>>2]=10079;J[b+16>>2]=J[b+420>>2];c=J[b+144>>2];J[b+20>>2]=c;J[b+8>>2]=J[b+8>>2]|(K[b+156|0]?533:529)|2048; -r:{if(c){f=J[b+140>>2];if(!f)break r;h=K[f|0];if(!h)break r;while(1){i=h&255;g=K[c|0];s:{if((i|0)==(g|0)){f=f+1|0;c=c+1|0;break s}i=i-32|0;if(!(!i|(i|0)==13)){t:switch(g-32|0){case 0:case 13:c=c+1|0;break s;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break r;default:break t}if(g)break r;J[b+24>>2]=f;break r}f=f+1|0}h=K[f|0];if(h)continue;break}break r}c=J[b+364>>2];if(!c)break r;J[b+20>>2]=c}J[b+28>>2]=0;J[b+32>>2]=0;J[a+4>>2]=9;s=a,t=be(J[J[b+96>>2]+4>> -2],10174),J[s+24>>2]=t;J[a+8>>2]=J[b+496>>2];J[a+12>>2]=J[b+500>>2];if(d){J[a+32>>2]=e;J[a+28>>2]=d;J[a+4>>2]=25}f=qE(J[J[b+96>>2]+4>>2],a+4|0,0,b+504|0);if(f)break a;pE(J[J[b+504>>2]+88>>2]);c=J[b+504>>2];d=J[c+56>>2];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=d;d=J[c+64>>2];J[b+60>>2]=J[c+60>>2];J[b+64>>2]=d;I[b+68>>1]=L[c+68>>1];I[b+70>>1]=L[c+70>>1];I[b+72>>1]=L[c+72>>1];I[b+74>>1]=L[c+74>>1];I[b+76>>1]=L[c+76>>1];I[b+78>>1]=L[c+78>>1];I[b+80>>1]=L[b+158>>1];I[b+82>>1]=L[b+160>>1];d=J[b+152>>2]!=0;J[b+ -12>>2]=d;if(K[c+12|0]&2)J[b+12>>2]=d|2;if(K[c+8|0]&32)J[b+8>>2]=J[b+8>>2]|32;if(!q){f=0;break a}c=J[n+32>>2];J[a+4>>2]=b;J[a+8>>2]=1970170211;J[a+12>>2]=65539;f=zf(J[c+12>>2],0,a+4|0,0);u:{if(!f)break u;d=f&255;if((d|0)==163)break u;if((d|0)!=7)break a}I[a+12>>1]=7;f=0;v:{w:switch(J[b+368>>2]-1|0){case 1:I[a+14>>1]=0;J[a+8>>2]=1094995778;break v;case 3:I[a+14>>1]=1;J[a+8>>2]=1094992453;c=c+4|0;break v;case 0:I[a+14>>1]=2;J[a+8>>2]=1094992451;c=c+8|0;break v;case 2:break w;default:break a}c=c+12|0; -I[a+14>>1]=3;J[a+8>>2]=1818326065}b=J[c>>2];if(!b)break a;f=zf(b,0,a+4|0,0)}xb=a+320|0;return f|0}function toa(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=Q(0),m=0,n=0,o=Q(0),p=0,q=0;f=xb-80|0;xb=f;g=J[a+116>>2];i=J[g+40>>2];j=J[b>>2];h=J[a+120>>2];b=J[g+12>>2];if(b)b=J[b+20>>2];else b=0;p=d,q=(Ab[i|0](a,h,c,b)|0)/2|0,J[p>>2]=q;d=J[j+52>>2];a:{if(d)break a;g=j+52|0;while(1){if(!J[j>>2]){d=169776;break a}b=xb-48|0;xb=b;d=J[g-52>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]= -0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;d=ca(585,d|0,1448038983)|0;i=J[195395];J[195395]=0;b:{c:{if((i|0)==1)break c;J[195395]=0;d=ca(732,b|0,d|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break c;i=J[b+36>>2];if(!i)break b;J[195395]=0;ea(583,i|0);i=J[195395];J[195395]=0;if((i|0)!=1)break b;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;b=J[g>> -2];d=d?d:169776;J[g>>2]=b?b:d;if(!b)break a;wc(d);d=J[g>>2];if(!d)continue;break}}i=M[d+16>>2]<8?169776:J[d+12>>2];d:{if(K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24)){d=J[j+48>>2];e:{if(d)break e;b=j+48|0;while(1){if(!J[j>>2]){d=169776;break e}d=Ko(b);if(!d)d=169776;g=J[b>>2];J[b>>2]=g?g:d;if(!g)break e;Ik(d);d=J[b>>2];if(!d)continue;break}}j=J[a+104>>2];f:{if(!j)break f;b=J[d+24>>2];b=b?b:169776;b=M[b+16>>2]<24?169776:J[b+12>>2];d=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);if(!d)break f; -g=J[a+108>>2];k=sc(b+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0,c);h=k>>>16|0;d=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(d)b=b+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else b=169776;d=K[b+6|0]|K[b+7|0]<<8;if(h>>>0>=((d<<8|d>>>8)&65535)>>>0)break f;d=b+(h<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=b+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;h=k&65535;k=K[b+2|0]|K[b+3|0]<<8|(K[b+4|0]<<16|K[b+5|0]<<24);if(k)b=b+(k<<24|(k&65280)<<8|(k>>>8&65280|k>>> -24))|0;else b=169776;l=pc(d,h,g,j,b,0)}o=N[a+68>>2];g:{h:{a=K[i+6|0]|K[i+7|0]<<8;if(a){j=i+8|0;g=i+6|0;k=(a<<8|a>>>8)&65535;b=k-1|0;d=0;while(1){a=b+d>>>1|0;h=j+(a<<2)|0;h=K[h|0]|K[h+1|0]<<8;h=(h<<8|h>>>8)&65535;i:{if(h>>>0>c>>>0){b=a-1|0;break i}if((c|0)==(h|0))break h;d=a+1|0}if((b|0)>=(d|0))continue;break}}a=i+4|0;break g}a=(a>>>0>=k>>>0?169776:(g+(a<<2)|0)+2|0)+2|0}a=K[a|0]|K[a+1|0]<<8;l=Q(V(Q(Q(o*Q(l+Q((a<<8|a>>>8)<<16>>16)))+Q(.5))));if(Q(R(l))>2]=~~l;break d}J[e>>2]=-2147483648; -break d}J[f+72>>2]=0;J[f+76>>2]=0;J[f+64>>2]=0;J[f+68>>2]=0;d=J[j+60>>2];j:{if(d)break j;b=j+60|0;while(1){if(!J[j>>2]){d=169776;break j}d=Hk(b);if(!d)d=169776;g=J[b>>2];J[b>>2]=g?g:d;if(!g)break j;Gk(d);d=J[b>>2];if(!d)continue;break}}if(eI(d,a,c,f- -64|0)){d=J[j+48>>2];k:{if(d)break k;b=j+48|0;while(1){if(!J[j>>2]){d=169776;break k}d=Ko(b);if(!d)d=169776;g=J[b>>2];J[b>>2]=g?g:d;if(!g)break k;Ik(d);d=J[b>>2];if(!d)continue;break}}J[f+60>>2]=0;j=f+60|0;i=J[a+104>>2];l:{if(!i){g=J[d>>2];m:{if(g>>> -0>c>>>0){b=J[d+20>>2];b=(J[(b?b:169776)+12>>2]+(c<<2)|0)+2|0;break m}b=0;if(M[d+4>>2]<=c>>>0)break l;b=J[d+20>>2];b=(J[(b?b:169776)+12>>2]+(g<<2)|0)+(c-g<<1)|0}b=K[b|0]|K[b+1|0]<<8;J[j>>2]=(b<<8|b>>>8)<<16>>16;b=1;break l}b=169776;n:{g=J[d+24>>2];g=g?g:169776;g=M[g+16>>2]<24?169776:J[g+12>>2];h=K[g+12|0]|K[g+13|0]<<8|(K[g+14|0]<<16|K[g+15|0]<<24);if(!h)break n;k=J[a+108>>2];n=sc(g+(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))|0,c);h=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);if(h)b=g+(h<<24|(h& -65280)<<8|(h>>>8&65280|h>>>24))|0;g=K[b+6|0]|K[b+7|0]<<8;h=(g<<8|g>>>8)&65535;g=n>>>16|0;if(h>>>0<=g>>>0)l=Q(.5);else{g=(g<<2)+b|0;g=K[g+8|0]|K[g+9|0]<<8|(K[g+10|0]<<16|K[g+11|0]<<24);if(g)g=(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))+b|0;else g=169776;n=n&65535;h=K[b+2|0]|K[b+3|0]<<8|(K[b+4|0]<<16|K[b+5|0]<<24);if(h)b=(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))+b|0;else b=169776;l=Q(pc(g,n,k,i,b,0)+Q(.5))}l=Q(V(l));b=J[d>>2];o:{if(b>>>0>c>>>0){b=J[d+20>>2];b=(J[(b?b:169776)+12>>2]+(c<<2)|0)+2|0;break o}if(M[d+ -4>>2]<=c>>>0)break n;d=J[d+20>>2];b=(J[(d?d:169776)+12>>2]+(b<<2)|0)+(c-b<<1)|0}b=K[b|0]|K[b+1|0]<<8;l=Q(l+Q((b<<8|b>>>8)<<16>>16));p:{if(Q(R(l))>2]=b;b=1;break l}b=xb-128|0;xb=b;k=J[a+24>>2];g=k+108|0;while(1){q:{d=J[g>>2];if(d)break q;if(!J[k+48>>2]){d=169776;break q}d=Hk(g);if(!d)d=169776;i=J[g>>2];J[g>>2]=i?i:d;if(!i)break q;Gk(d);continue}break}r:{if(M[d+16>>2]<=c>>>0){c=0;break r}J[b+48>>2]=2139095039;J[b+52>>2]=2139095039;J[b+56>>2]=-8388609; -J[b+60>>2]=-8388609;H[b+44|0]=0;J[b+40>>2]=b- -64;g=J[b+44>>2];J[b+8>>2]=J[b+40>>2];J[b+12>>2]=g;g=J[b+52>>2];J[b+16>>2]=J[b+48>>2];J[b+20>>2]=g;g=J[b+60>>2];J[b+24>>2]=J[b+56>>2];J[b+28>>2]=g;J[b+32>>2]=a;J[b+36>>2]=b+112;g=J[b+36>>2];J[b>>2]=J[b+32>>2];J[b+4>>2]=g;c=ot(d,a,c,b);if(!c)break r;l=Q(Q(V(Q(N[b+92>>2]+Q(.5))))-Q(J[b+116>>2]));s:{if(Q(R(l))>2]=d}xb=b+128|0;b=c}if(b){b=J[f+68>>2];c=I[f+60>>1];c=Kpa(c,c>>31,J[a+80>>2],J[a+84>>2]);a=zb;c=c+ -32768|0;J[e>>2]=(((c>>>0<32768?a+1|0:a)&65535)<<16|c>>>16)+b;break d}J[f+48>>2]=0;J[f+52>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;b=J[a+116>>2];c=J[b+20>>2];d=J[a+120>>2];j=f+8|0;b=J[b+12>>2];if(b)b=J[b>>2];else b=0;t:{if(Ab[c|0](a,d,j,b)|0){b=J[f+8>>2];a=J[f+12>>2];break t}a=J[a+32>>2];m=+(a|0)*.8;u:{if(R(m)<2147483648){b=~~m;break u}b=-2147483648}a=b-a|0}J[e>>2]=J[f+68>>2]+(J[f+76>>2]+(b-a|0)>>1);break d}J[f+ -48>>2]=0;J[f+52>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;b=J[a+116>>2];c=J[b+20>>2];d=J[a+120>>2];j=f+8|0;b=J[b+12>>2];if(b)b=J[b>>2];else b=0;v:{if(Ab[c|0](a,d,j,b)|0){a=J[f+8>>2];break v}m=+J[a+32>>2]*.8;if(R(m)<2147483648){a=~~m;break v}a=-2147483648}J[e>>2]=a}xb=f+80|0;return 1}function $ka(a){a=a|0;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;j=xb-16|0;xb=j;g=!a;a:{if(g)break a; -o=-1;b:{if(!(K[a+8|0]&8)|g)break b;g=J[a+96>>2];c=J[J[g>>2]+32>>2];if(!c)break b;g=Ab[c|0](g,9632)|0;if(!g)break b;l=Ab[J[g+4>>2]](a,2)|0}c:{if(!l|L[l>>1]==65535)break c;g=J[l+80>>2];if(g|J[l+84>>2]?(g|0)>=0:0)break c;g=J[a+36>>2];if((g|0)<=0)break c;c=J[a+40>>2];while(1){d=J[c+(b<<2)>>2];if(!(L[d+10>>1]|L[d+8>>1]!=3)){o=b;break c}b=b+1|0;if((g|0)!=(b|0))continue;break}}b=J[a+8>>2]&8;r=I[(b?202:70)+a>>1];s=I[(b?198:72)+a>>1];J[j+12>>2]=0;J[j+8>>2]=0;d=0;b=0;n=xb-16|0;xb=n;g=a;h=J[a+20>>2];while(1){d:{a= -K[e+h|0];e:{if((a|0)!=63){if(a)break e;f:{g:{if(K[h|0]!=60|e>>>0<7|(K[h+1|0]!=117|K[h+2|0]!=116))break g;if(K[h+3|0]!=102|K[h+4|0]!=56|K[h+5|0]!=62)break g;J[j+8>>2]=0;a=e-5|0;f=Pb(a>>>0>1073741823?-1:a<<2);J[j+12>>2]=f;d=6;b=0;while(1){c=d+h|0;a=H[c|0];i=a&255;h:{if((a|0)>=0){a=b+1|0;J[j+8>>2]=a;J[f+(b<<2)>>2]=i;d=d+1|0;break h}if(!(i&32)){a=0;c=d+1|0;if(c>>>0>>0)a=i<<6&1984|K[c+h|0]&63;c=b+1|0;J[j+8>>2]=c;J[f+(b<<2)>>2]=a;d=d+2|0;a=c;break h}if(!(i&16)){a=0;m=d+2|0;if(m>>>0>>0)a=K[h+m|0]& -63|(i<<12&61440|(K[c+1|0]&63)<<6);c=b+1|0;J[j+8>>2]=c;J[f+(b<<2)>>2]=a;d=d+3|0;a=c;break h}if(!(i&15)){a=0;m=d+3|0;if(m>>>0>>0)a=K[h+m|0]&63|(i<<18&1835008|(K[c+1|0]&63)<<12|(K[c+2|0]&63)<<6);c=b+1|0;J[j+8>>2]=c;J[f+(b<<2)>>2]=a;d=d+4|0;a=c;break h}if(!(i&8)){a=0;m=d+3|0;if(m>>>0>>0)a=K[h+m|0]&63|(i<<18&1835008|(K[c+1|0]&63)<<12|(K[c+2|0]&63)<<6);c=b+1|0;J[j+8>>2]=c;J[f+(b<<2)>>2]=a;d=d+4|0;a=c;break h}if(!(i&4)){a=0;m=d+4|0;if(m>>>0>>0)a=K[h+m|0]&63|(i<<24&50331648|(K[c+1|0]&63)<<18|(K[c+ -2|0]&63)<<12|(K[c+3|0]&63)<<6);c=b+1|0;J[j+8>>2]=c;J[f+(b<<2)>>2]=a;d=d+5|0;a=c;break h}a=0;d=d+5|0;if(e>>>0>d>>>0)a=K[d+h|0]&63|(i<<30&1073741824|(K[c+1|0]&63)<<24|(K[c+2|0]&63)<<18|(K[c+3|0]&63)<<12|(K[c+4|0]&63)<<6);c=b+1|0;J[j+8>>2]=c;J[f+(b<<2)>>2]=a;a=c}b=a;if(d>>>0>>0)continue;break}J[f+(b<<2)>>2]=0;break f}if(!(b&1)){J[j+8>>2]=e;a=e+1|0;c=Pb(a>>>0>1073741823?-1:a<<2);J[j+12>>2]=c;i:{if(!e)break i;b=0;if(e>>>0>=4){i=e&-4;a=0;while(1){J[c+(d<<2)>>2]=H[d+h|0];f=d|1;J[c+(f<<2)>>2]=H[h+f|0]; -f=d|2;J[c+(f<<2)>>2]=H[h+f|0];f=d|3;J[c+(f<<2)>>2]=H[h+f|0];d=d+4|0;a=a+4|0;if((i|0)!=(a|0))continue;break}}a=e&3;if(!a)break i;while(1){J[c+(d<<2)>>2]=H[d+h|0];d=d+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}J[c+(e<<2)>>2]=0;break f}j:{k:{if(!g|!(K[g+8|0]&8))break k;f=L[g+340>>1];if(!f)break k;m=J[g+356>>2];while(1){a=m+P(d,20)|0;l:{if(L[a+6>>1]!=1)break l;c=L[a+8>>1];if(!c)break l;m:switch(L[a>>1]){case 3:b=L[a+2>>1];if(b>>>0>10|!(1<> -2];b=J[g+100>>2];J[n+12>>2]=0;c=Tb(b,1,0,c,0,n+12|0);J[a+16>>2]=c;n:{if(J[n+12>>2])break n;q=bc(i,J[a+12>>2]);J[n+12>>2]=q;c=J[a+16>>2];if(q)break n;i=Dd(i,c,L[a+8>>1]);J[n+12>>2]=i;c=J[a+16>>2];if(!i)break j}if(c)Ab[J[b+8>>2]](b,c);J[a+16>>2]=0;I[a+8>>1]=0}d=d+1|0;if((f|0)!=(d|0))continue;break}}J[j+8>>2]=e;a=e+1|0;c=Pb(a>>>0>1073741823?-1:a<<2);J[j+12>>2]=c;o:{if(!e)break o;b=0;d=0;if(e>>>0>=4){i=e&-4;a=0;while(1){J[c+(d<<2)>>2]=H[d+h|0];f=d|1;J[c+(f<<2)>>2]=H[h+f|0];f=d|2;J[c+(f<<2)>>2]=H[h+f| -0];f=d|3;J[c+(f<<2)>>2]=H[h+f|0];d=d+4|0;a=a+4|0;if((i|0)!=(a|0))continue;break}}a=e&3;if(!a)break o;while(1){J[c+(d<<2)>>2]=H[d+h|0];d=d+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}J[c+(e<<2)>>2]=0;break f}a=L[a+8>>1];e=0;J[j+12>>2]=0;J[j+8>>2]=0;if(a){b=a+1|0;J[j+8>>2]=b;h=Pb(b>>>0>1073741823?-1:b<<2);J[j+12>>2]=h;J[j+8>>2]=0;p:{if((a|0)==1){a=0;break p}f=a>>>1|0;b=0;while(1){a=K[c|0]<<8;d=a|K[c+1|0];q:{if(a-56320>>>0<4294966272){i=1;c=c+2|0;break q}d=(d<<10&1047552|(K[c+3|0]|K[c+2|0]<<8&768))+ -65536|0;i=2;c=c+4|0}a=b+1|0;J[j+8>>2]=a;J[h+(b<<2)>>2]=d;b=a;e=e+i|0;if(f>>>0>e>>>0)continue;break}}J[h+(a<<2)>>2]=0}}xb=n+16|0;break d}b=1}e=e+1|0;continue}break}e=J[j+8>>2];c=J[g+24>>2];i=ac(c);h=J[g+28>>2];d=Qb(((e+i|0)+h<<2)+124|0);J[d>>2]=L[g+68>>1];J[d+4>>2]=I[g+70>>1];J[d+8>>2]=I[g+72>>1];J[d+12>>2]=I[g+74>>1];J[d+16>>2]=J[g+8>>2];J[d+20>>2]=J[g>>2];J[d+24>>2]=J[g+16>>2];J[d+28>>2]=J[g+36>>2];J[d+32>>2]=J[g+12>>2];J[d+36>>2]=J[g+4>>2];b=d+40|0;r:{if(!e)break r;a=J[j+12>>2];if(e>>>0>=4){n=e& --4;while(1){f=k<<2;J[b>>2]=J[f+a>>2];J[b+4>>2]=J[a+(f|4)>>2];J[b+8>>2]=J[a+(f|8)>>2];J[b+12>>2]=J[a+(f|12)>>2];k=k+4|0;b=b+16|0;p=p+4|0;if((n|0)!=(p|0))continue;break}}f=e&3;if(!f)break r;e=0;while(1){J[b>>2]=J[a+(k<<2)>>2];k=k+1|0;b=b+4|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}k=0;J[b>>2]=0;a=b+4|0;s:{if(!i)break s;if(i>>>0>=4){f=i&-4;e=0;while(1){b=a;J[b>>2]=H[c+k|0];J[b+4>>2]=H[c+(k|1)|0];J[b+8>>2]=H[c+(k|2)|0];J[b+12>>2]=H[c+(k|3)|0];a=b+16|0;k=k+4|0;e=e+4|0;if((f|0)!=(e|0))continue;break}b= -b+12|0}i=i&3;if(!i)break s;e=0;while(1){b=a;J[b>>2]=H[c+k|0];a=b+4|0;k=k+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}k=0;J[a>>2]=0;t:{if(l){J[b+8>>2]=L[l>>1];J[b+12>>2]=L[l+4>>1];J[b+16>>2]=L[l+64>>1];J[b+20>>2]=L[l+76>>1];J[b+24>>2]=L[l+78>>1];J[b+28>>2]=L[l+92>>1];J[b+32>>2]=I[l+70>>1];J[b+36>>2]=I[l+72>>1];J[b+40>>2]=I[l+74>>1];J[b+44>>2]=J[l+44>>2];J[b+48>>2]=J[l+48>>2];J[b+52>>2]=J[l+52>>2];p=J[l+84>>2];k=J[l+56>>2];a=J[l+80>>2];break t}J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=65535;J[b+20>>2]=0; -J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;p=0;a=0}J[b+80>>2]=h;J[b+76>>2]=r;J[b+72>>2]=s;J[b+68>>2]=o;J[b+64>>2]=p;J[b+60>>2]=a;J[b+56>>2]=k;u:{if((h|0)<=0)break u;o=h&3;b=b+84|0;g=J[g+32>>2];e=0;v:{if(h>>>0<4){k=0;break v}h=h&-4;k=0;a=0;while(1){c=k<<4;J[b>>2]=J[(c+g|0)+4>>2];J[b+4>>2]=J[(g+(c|16)|0)+4>>2];J[b+8>>2]=J[(g+(c|32)|0)+4>>2];J[b+12>>2]=J[(g+(c|48)|0)+4>>2];k=k+4|0;b=b+16|0;a=a+4|0;if((h|0)!=(a|0))continue;break}}if(!o)break u; -while(1){J[b>>2]=J[(g+(k<<4)|0)+4>>2];k=k+1|0;b=b+4|0;e=e+1|0;if((o|0)!=(e|0))continue;break}}a=J[j+12>>2];if(!a)break a;Kb(a)}xb=j+16|0;return d|0}function ika(a){a=a|0;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;k=xb-16|0;xb=k;b=0;a:{if(!a)break a;n=xb-32|0;xb=n;m=Pb(24);J[m+12>>2]=0;J[m+20>>2]=1;Cs(n,m);c=xb-48|0;xb=c;b:{if(n){b=c+4|0;DF(b,n);b=BF(b);break b}b=BF(0)}xb=c+48|0;c:{d:{i=J[a+8>>2];c=J[a+12>>2];if((i|0)==(c|0))break d;while(1){if(!J[i+16>>2])yF(a,i,i+ -12|0,i+16|0);i=i+20|0;if((c|0)!=(i|0))continue;break}i=J[a+8>>2];q=J[a+12>>2];if((i|0)==(q|0))break d;while(1){e:{e=H[i+11|0]<0?J[i>>2]:i;g=0;o=xb-32|0;xb=o;c=-102;f:{if(!b)break f;if(J[b+56>>2]==1){c=Es(b);if(c)break f}j=e?e:228135;f=ac(j);J[b+65700>>2]=0;J[b+152>>2]=0;J[b+156>>2]=8;c=b+65704|0;J[c>>2]=0;J[c+4>>2]=0;J[b+160>>2]=0;J[b+120>>2]=0;J[b+124>>2]=0;c=mi(b,J[b+44>>2]);e=zb;h=e;J[b+148>>2]=32;J[b+144>>2]=f+46;J[b+128>>2]=c;J[b+132>>2]=e;d=Qb(f+78|0);J[b+140>>2]=0;J[b+136>>2]=d;H[d+5|0]=0; -H[d+4|0]=0;H[d|0]=80;H[d+1|0]=75;H[d+2|0]=1;H[d+3|0]=2;H[d+6|0]=20;H[d+7|0]=0;e=J[b+152>>2];H[d+8|0]=e;H[d+9|0]=e>>>8;if(e>>>0>=65536){H[d+8|0]=255;H[d+9|0]=255}e=J[b+156>>2];H[d+10|0]=e;H[d+11|0]=e>>>8;if(e>>>0>=65536){H[d+10|0]=255;H[d+11|0]=255}e=J[b+65700>>2];H[d+29|0]=f>>>8;H[d+28|0]=f;H[d+24|0]=0;H[d+25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=0;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;H[d+12|0]=e;H[d+15|0]=e>>>24;H[d+14|0]=e>>>16;H[d+13|0]=e>>>8;if(f>>> -0>=65536){H[d+28|0]=255;H[d+29|0]=255}H[d+30|0]=0;H[d+31|0]=0;H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35|0]=0;H[d+38|0]=0;H[d+39|0]=0;H[d+40|0]=0;H[d+41|0]=0;H[d+36|0]=0;H[d+37|0]=0;g:{if(!h&(c|0)!=-1){p=J[b+65776>>2];e=c-p|0;h=h-(J[b+65780>>2]+(c>>>0

>>0)|0)|0;H[d+42|0]=e;H[d+43|0]=e>>>8;H[d+44|0]=e>>>16;H[d+45|0]=e>>>24;if(!h)break g}H[d+42|0]=255;H[d+43|0]=255;H[d+44|0]=255;H[d+45|0]=255}h:{if(!f)break h;h=0;c=0;if(f>>>0>=4){e=f&-4;while(1){H[(J[b+136>>2]+c|0)+46|0]=K[c+j|0];d=c|1;H[(d+J[b+136>> -2]|0)+46|0]=K[d+j|0];d=c|2;H[(d+J[b+136>>2]|0)+46|0]=K[d+j|0];d=c|3;H[(d+J[b+136>>2]|0)+46|0]=K[d+j|0];c=c+4|0;g=g+4|0;if((e|0)!=(g|0))continue;break}}e=f&3;if(!e)break h;while(1){H[(J[b+136>>2]+c|0)+46|0]=K[c+j|0];c=c+1|0;h=h+1|0;if((e|0)!=(h|0))continue;break}}if(!J[b+136>>2]){c=-104;break f}c=b+65720|0;J[c>>2]=0;J[c+4>>2]=0;g=b+65712|0;J[g>>2]=0;c=b+65728|0;J[c>>2]=0;J[c+4>>2]=0;c=b+65736|0;J[c>>2]=0;J[c+4>>2]=0;e=xb-16|0;xb=e;d=ac(j);f=J[b+44>>2];H[e+8|0]=80;H[e+9|0]=75;H[e+10|0]=3;H[e+11|0]= -4;c=-1;h=e+8|0;i:{if((Ab[J[b+8>>2]](J[b+28>>2],f,h,4)|0)!=4)break i;f=J[b+44>>2];j:{if(J[g>>2]){H[e+8|0]=45;H[e+9|0]=0;g=Ab[J[b+8>>2]](J[b+28>>2],f,h,2)|0;break j}H[e+8|0]=20;H[e+9|0]=0;g=Ab[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0}if((g|0)!=2)break i;f=J[b+44>>2];g=J[b+152>>2];I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;if((Ab[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0)!=2)break i;f=J[b+44>>2];g=J[b+156>>2];I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;g=e+8|0;if((Ab[J[b+8>>2]](J[b+28>>2],f,g,2)|0)!=2)break i;h= -J[b+44>>2];f=J[b+65700>>2];H[e+8|0]=f;H[e+9|0]=f>>>8;H[e+10|0]=f>>>16;H[e+11|0]=f>>>24;if((Ab[J[b+8>>2]](J[b+28>>2],h,g,4)|0)!=4)break i;f=J[b+44>>2];J[e+8>>2]=0;if((Ab[J[b+8>>2]](J[b+28>>2],f,g,4)|0)!=4)break i;f=J[b+44>>2];k:{if(J[b+65712>>2]){J[e+8>>2]=-1;g=Ab[J[b+8>>2]](J[b+28>>2],f,g,4)|0;break k}J[e+8>>2]=0;g=Ab[J[b+8>>2]](J[b+28>>2],f,e+8|0,4)|0}if((g|0)!=4)break i;f=J[b+44>>2];l:{if(J[b+65712>>2]){J[e+8>>2]=-1;g=Ab[J[b+8>>2]](J[b+28>>2],f,e+8|0,4)|0;break l}J[e+8>>2]=0;g=Ab[J[b+8>>2]](J[b+ -28>>2],f,e+8|0,4)|0}if((g|0)!=4)break i;f=J[b+44>>2];I[e+8>>1]=d;if(d>>>0>=65536)I[e+8>>1]=65535;if((Ab[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0)!=2)break i;f=J[b+44>>2];g=J[b+65712>>2]?20:0;I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;g=(Ab[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0)!=2;if(!(g|!d))g=(Ab[J[b+8>>2]](J[b+28>>2],J[b+44>>2],j,d)|0)!=(d|0);if(g)break i;if(!J[b+65712>>2]){c=0;break i}c=b+65720|0;r=c,s=mi(b,J[b+44>>2]),J[r>>2]=s;J[c+4>>2]=zb;c=J[b+44>>2];H[e+8|0]=1;H[e+9|0]=0;d=c;c=e+8|0;Ab[J[b+8>>2]](J[b+ -28>>2],d,c,2)|0;d=J[b+44>>2];H[e+8|0]=16;H[e+9|0]=0;Ab[J[b+8>>2]](J[b+28>>2],d,c,2)|0;d=J[b+44>>2];J[e+8>>2]=0;J[e+12>>2]=0;Ab[J[b+8>>2]](J[b+28>>2],d,c,8)|0;d=J[b+44>>2];J[e+8>>2]=0;J[e+12>>2]=0;c=(Ab[J[b+8>>2]](J[b+28>>2],d,c,8)|0)!=8?-1:0}xb=e+16|0;J[b+68>>2]=0;J[b+72>>2]=0;J[b+76>>2]=b+164;J[b+108>>2]=0;J[b+80>>2]=65536;J[b+84>>2]=0;m:{if(c)break m;if(!(J[b+160>>2]|J[b+156>>2]!=8)){J[b+104>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;c=so(b- -64|0,-1,8,-15,8,0,228126);if(c)break m;J[b+120>>2]=8}J[b+65760>> -2]=0;J[b+56>>2]=1;c=0;break f}J[b+65760>>2]=0}xb=o+32|0;if(c)break e;c=J[i+12>>2];d=J[i+16>>2];e=-102;n:{if(!b|!J[b+56>>2])break n;e=b+65704|0;f=Ad(J[e>>2],c,d);J[b+68>>2]=d;J[b+64>>2]=c;J[e>>2]=f;j=b+164|0;o=b- -64|0;while(1){e=0;if(!J[b+68>>2])break n;c=J[b+80>>2];if(!c){d=Ds(b);J[b+76>>2]=j;c=65536;J[b+80>>2]=65536;e=-1;if((d|0)==-1)break n}o:{if(!(J[b+160>>2]|J[b+156>>2]!=8)){c=J[b+84>>2];e=jg(o,0);f=J[b+124>>2];c=J[b+84>>2]-c|0;break o}g=J[b+68>>2];f=c>>>0>g>>>0?g:c;e=0;h=0;d=b;if(g){g=0;c=0; -if(f>>>0>=4){p=f&-4;while(1){H[J[b+76>>2]+c|0]=K[J[b+64>>2]+c|0];l=c|1;H[l+J[b+76>>2]|0]=K[l+J[b+64>>2]|0];l=c|2;H[l+J[b+76>>2]|0]=K[l+J[b+64>>2]|0];l=c|3;H[l+J[b+76>>2]|0]=K[l+J[b+64>>2]|0];c=c+4|0;h=h+4|0;if((p|0)!=(h|0))continue;break}}h=f&3;if(h)while(1){H[J[b+76>>2]+c|0]=K[J[b+64>>2]+c|0];c=c+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}h=J[b+68>>2];c=J[b+80>>2]}J[d+80>>2]=c-f;J[b+68>>2]=h-f;J[b+64>>2]=J[b+64>>2]+f;J[b+76>>2]=J[b+76>>2]+f;J[b+72>>2]=J[b+72>>2]+f;J[b+84>>2]=J[b+84>>2]+f;c=J[b+124>> -2]}J[b+124>>2]=c+f;if(!e)continue;break}}if(e)break e;if(Es(b))break e;i=i+20|0;if((q|0)!=(i|0))continue;break d}break}AF(b);J[k+12>>2]=0;J[k+8>>2]=0;break c}AF(b);b=J[m>>2];J[a>>2]=b;J[k+12>>2]=b;b=a;a=J[m+12>>2];J[b+4>>2]=a;J[k+8>>2]=a;Kb(m)}xb=n+32|0;c=J[k+8>>2];b=0;if(!c)break a;a=Pb(20);J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=234032;J[a+12>>2]=0;J[a+16>>2]=0;As(a,J[k+12>>2],c);b=J[a+4>>2]}xb=k+16|0;return b|0}function sM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n= -0;g=xb-16|0;xb=g;J[g+4>>2]=0;f=J[e+32>>2];j=J[f+100>>2];a:{b:{c:{d:{if(Zb(a,11158,7))break d;e:{c=K[a+7|0];switch(c|0){case 0:case 9:case 10:case 13:case 32:break e;default:break d}}J[g+12>>2]=0;d=J[f+88>>2];k=d;d=(c?-8:-7)+b|0;h=d+1|0;i=Tb(j,1,k,k+h|0,J[f+84>>2],g+12|0);J[f+84>>2]=i;b=J[g+12>>2];if(!b){m=Mb(i+J[f+88>>2]|0,c?a+8|0:a+7|0,d)+d|0,n=10,H[m|0]=n;J[f+88>>2]=h+J[f+88>>2];b=J[g+12>>2]}J[g+4>>2]=b;break c}f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{h=J[e>>2];if(!(h&32)){if(Zb(a,11901,5))break o;p:switch(K[a+ -5|0]){case 0:case 9:case 10:case 13:case 32:break p;default:break o}b=Df(e+40|0,11510,a,b);J[g+4>>2]=b;if(b)break b;b=J[J[e+40>>2]+4>>2];if(!b)break i;a=H[b|0];c=a&255;if(!c|!(K[(c>>>3|0)+24096|0]>>>(a&7)&1))break i;c=0;q:{r:{while(1){if(c>>>0>=429496728){b=f+48|0;a=M[e+60>>2]/20|0;c=e+4|0;break r}c=K[a+24128|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+24096|0]>>>(a&7)&1)continue;break}J[f+48>>2]=c;J[e+4>>2]=c;b=f+48|0;a=M[e+60>>2]/20|0;if(c>>>0<=a>>>0){a=c;break q}c=e+4|0}J[b>>2]=a;J[c>> -2]=a}if(!a)break h;if(a>>>0<1114112)break g;b=6;break j}s:{t:{if(Zb(a,24294,7))break t;u:switch(K[a+7|0]){case 0:case 9:case 10:case 13:case 32:break u;default:break t}if(!(h&4032))break s;b=186;break j}v:{if(Zb(a,24302,7))break v;w:switch(K[a+7|0]){case 0:case 9:case 10:case 13:case 32:break w;default:break v}J[e+28>>2]=0;J[e>>2]=h&-4033;break f}c=h&64;if(!(!c|J[e+28>>2]!=-1|J[J[e+36>>2]+4>>2]))break f;x:{if(Zb(a,24310,9))break x;y:switch(K[a+9|0]){case 0:case 9:case 10:case 13:case 32:break y;default:break x}if(h& -4032)break k;c=J[e+24>>2];if(c)Ab[J[j+8>>2]](j,c);J[e+24>>2]=0;c=e+40|0;b=Df(c,11510,a,b);J[g+4>>2]=b;if(b)break b;Fv(c);a=Dv(c,g+8|0);if(!a)break l;c=J[g+8>>2]+1|0;d=Tb(j,1,0,c,0,g+4|0);J[e+24>>2]=d;b=J[g+4>>2];if(b)break b;Mb(d,a,c);J[e>>2]=J[e>>2]|64;break f}z:{if(Zb(a,24320,8))break z;A:switch(K[a+8|0]){case 0:case 9:case 10:case 13:case 32:break A;default:break z}if(!c)break k;b=Df(e+40|0,11510,a,b);J[g+4>>2]=b;if(b)break b;c=J[e+40>>2];a=vv(J[c+4>>2]);b=(a|0)>=0;a=b?a:-1;J[e+28>>2]=a;if(!(M[e+ -48>>2]<3|b)){a=vv(J[c+8>>2]);J[e+28>>2]=a}if(a-1114112>>>0<=4293853182){J[e+28>>2]=-1;break n}if((a|0)<0)break n;b=J[f+52>>2];B:{if((b|0)!=J[f+48>>2]){c=J[f+56>>2];break B}c=Tb(j,36,b,b- -64|0,J[f+56>>2],g+4|0);J[f+56>>2]=c;b=J[g+4>>2];if(b)break b;J[f+48>>2]=J[f+48>>2]- -64;b=J[f+52>>2];a=J[e+28>>2]}J[f+52>>2]=b+1;d=J[e+24>>2];b=P(b,36)+c|0;J[b+4>>2]=a;J[b>>2]=d;break m}if(h&128){c=J[e+28>>2]==-1;c=J[f+(c?68:56)>>2]+P(J[f+(c?64:52)>>2],36)|0;if(h&2048){b=J[e+8>>2];if(b>>>0>=L[c-22>>1]){if((h|0)< -0)break f;J[e>>2]=h|-2147483648;break f}h=c-24|0;d=c-36|0;c=J[d+28>>2];b=J[d+24>>2]+P(b,c)|0;f=0;d=c<<1;C:{if(!d){c=0;break C}D:{while(1){c=f;i=K[f+a|0];f=i<<24>>24;if(!(K[(i>>>3|0)+24368|0]>>>(f&7)&1))break D;H[b|0]=K[f+24128|0]+(K[b|0]<<4);f=c+1|0;if(!(!(c&1)|d>>>0<=f>>>0)){H[b+1|0]=0;b=b+1|0}if((d|0)!=(f|0))continue;break}c=d;break C}f=J[e>>2];if(f&1073741824)break C;J[e>>2]=f|1073741824}f=L[h>>1];if(f)H[b|0]=K[b|0]&K[(P(f,L[J[e+32>>2]+96>>1])&7)+24329|0];E:{if((c|0)!=(d|0))break E;a=K[a+d|0]; -if(!(K[(a>>>3|0)+24368|0]>>>(a&7)&1))break E;a=J[e>>2];if(a&1073741824)break E;J[e>>2]=a|1073741824}J[e+8>>2]=J[e+8>>2]+1;break f}F:{if(Zb(a,24337,6))break F;G:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break G;default:break F}b=Df(e+40|0,11510,a,b);J[g+4>>2]=b;if(b)break b;m=c-28|0,n=Pk(J[J[e+40>>2]+4>>2]),I[m>>1]=n;J[e>>2]=J[e>>2]|256;break f}H:{if(Zb(a,24344,6))break H;I:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break I;default:break H}b=Df(e+40|0,11510,a,b);J[g+4>>2]= -b;if(b)break b;b=Pk(J[J[e+40>>2]+4>>2]);I[c-26>>1]=b;a=J[e>>2];if(!(a&256)){m=c-28|0,n=hc(b&65535,72E3,P(J[f+20>>2],J[f+16>>2])),I[m>>1]=n;a=J[e>>2]}J[e>>2]=a|512;break f}J:{if(Zb(a,24351,3))break J;K:switch(K[a+3|0]){case 0:case 9:case 10:case 13:case 32:break K;default:break J}b=Df(e+40|0,11510,a,b);J[g+4>>2]=b;if(b)break b;a=c-36|0;d=J[e+40>>2];h=sm(J[d+4>>2]);I[a+12>>1]=h;i=sm(J[d+8>>2]);I[a+14>>1]=i;b=Qk(J[d+12>>2]);I[a+16>>1]=b;d=Qk(J[d+16>>2]);I[a+18>>1]=d;l=0-d|0;I[a+22>>1]=l;k=a;a=d+i|0; -I[k+20>>1]=a;d=b+h|0;I[e+22>>1]=d;a=a<<16>>16;i=I[e+18>>1];I[e+18>>1]=(a|0)>(i|0)?a:i;a=I[e+20>>1];i=l<<16>>16;I[e+20>>1]=(a|0)>(i|0)?a:i;a=d<<16>>16;d=I[e+16>>1];I[e+16>>1]=(a|0)>(d|0)?a:d;a=I[e+12>>1];I[e+12>>1]=(a|0)>(b|0)?b:a;a=I[e+14>>1];I[e+14>>1]=(a|0)<(b|0)?b:a;a=J[e>>2];if(!(a&512))I[c-26>>1]=h;L:{if(!J[J[e+36>>2]>>2])break L;b=c-36|0;c=hc(L[b+10>>1],72E3,P(J[f+20>>2],J[f+16>>2]));a=J[e>>2];if(L[b+8>>1]==(c&65535))break L;I[b+8>>1]=c;a=a|4096}J[e>>2]=a|1024;break f}if(Zb(a,24355,6))break l; -M:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break M;default:break l}b=183;if(!(h&1024))break j;a=c-36|0;d=P(L[f+96>>1],L[a+12>>1]);b=d+7>>>3|0;J[a+28>>2]=b;N:{if(d>>>0<=524280){a=P(b,L[a+14>>1]);if(a>>>0<65536)break N}b=184;break j}b=c-36|0;I[b+32>>1]=a;m=b,n=Tb(j,1,0,a,0,g+4|0),J[m+24>>2]=n;b=J[g+4>>2];if(b)break b;J[e+8>>2]=0;J[e>>2]=J[e>>2]|2048;break f}b=182;break j}Nh(J[f+56>>2],J[f+52>>2],36,5);J[e>>2]=J[e>>2]&-2;J[d>>2]=6;break f}b=180;break j}if(J[J[e+36>>2]+4>>2]){a=J[f+64>> -2];O:{if((a|0)!=J[f+60>>2]){c=J[f+68>>2];break O}c=Tb(j,36,a,a+4|0,J[f+68>>2],g+4|0);J[f+68>>2]=c;b=J[g+4>>2];if(b)break b;J[f+60>>2]=J[f+60>>2]+4;a=J[f+64>>2]}b=P(a,36)+c|0;J[b>>2]=J[e+24>>2];J[f+64>>2]=a+1;J[b+4>>2]=a;break m}a=J[e+24>>2];if(a)Ab[J[j+8>>2]](j,a)}J[e+24>>2]=0;J[e>>2]=J[e>>2]&1073741695|128;break f}b=3;break j}b=181}J[g+4>>2]=b;break b}J[f+48>>2]=0;J[e+4>>2]=0;b=f+48|0}a=64;J[b>>2]=64}m=f,n=Tb(j,36,0,a,0,g+4|0),J[m+56>>2]=n;b=J[g+4>>2];if(b)break b;J[e>>2]=J[e>>2]|32}b=J[g+4>>2]}if(b)break b; -b=0;break a}if(!(K[e|0]&64))break a;a=J[e+24>>2];if(a)Ab[J[j+8>>2]](j,a);J[e+24>>2]=0;b=J[g+4>>2]}xb=g+16|0;return b|0}function CM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;k=Jg(J[J[b+96>>2]+4>>2],9005);if(!k)return 11;f=bc(a,0);a:{if(f)break a;f=Ab[J[k+4>>2]](a,b,c,d,e)|0;if(f)break a;l=J[b+104>>2];f=2;a=J[b+148>>2];b:{if((a|0)<=65535){if((a|0)==-1519689116|(a|0)==-1519619212)break b;break a}if((a|0)==65536|(a|0)==1953658213)break b;if((a|0)!= -131072)break a}J[b+8>>2]=J[b+8>>2]|2048;f=0;if((c|0)<0)break a;f=Ab[J[k+8>>2]](l,b,c,d,e)|0;if(f)break a;p=xb-128|0;xb=p;c:{d:{if(!b)break d;a=J[b+20>>2];if(a){j=1;if(Mc(a,96960))break c;if(Mc(a,96980))break c;if(Mc(a,97E3))break c;if(Mc(a,97020))break c;if(Mc(a,97040))break c;if(Mc(a,97060))break c;if(Mc(a,97080))break c;if(Mc(a,97100))break c;if(Mc(a,97120))break c;if(Mc(a,97140))break c;if(Mc(a,97160))break c;if(Mc(a,97180))break c;if(Mc(a,97200))break c;if(Mc(a,97220))break c;if(Mc(a,97240))break c; -if(Mc(a,97260))break c;if(Mc(a,97280))break c;if(Mc(a,97300))break c;if(Mc(a,97320))break c;if(Mc(a,97340))break c;if(Mc(a,97360))break c;if(Mc(a,97380))break c;if(Mc(a,97400))break c;if(Mc(a,97420))break c;if(Mc(a,97440))break c;if(Mc(a,97460))break c}g=Nb(p,0,116);e:{f:{n=L[b+152>>1];if(!n)break f;d=0;while(1){j=0;e=1;f=0;m=i<<4;a=J[m+J[b+156>>2]>>2];g:{if((a|0)!=1668707360){h:{if((a|0)!=1886545264){if((a|0)!=1718642541)break g;f=1;break h}f=2}e=d}h=f<<3;f=0;while(1){d=J[b+156>>2]+m|0;a=P(j,24)+ -h|0;if(J[d+12>>2]==J[a+97492>>2]){k=a+97488|0;i:{if(f)break i;a=J[b+516>>2];if(!a){f=0;break i}f=0;if(Ab[a|0](b,J[d>>2],J[b+104>>2],0)|0)break i;o=J[b+104>>2];d=J[(J[b+156>>2]+m|0)+12>>2];if(Tc(o,d))break i;if(d>>>0>3)while(1){f=he(o)+f|0;d=d-4|0;if(d>>>0>3)continue;break}n=3;if(d)while(1){a=J[o+32>>2];if(a>>>0>2]){J[o+32>>2]=a+1;a=H[a|0]}else a=0;f=((a<<24>>24&255)<<(n<<3))+f|0;n=n-1|0;d=d-1|0;if(d)continue;break}Ec(o)}a=g+(j<<2)|0;d=J[a>>2];if(J[k>>2]==(f|0)){d=d+1|0;J[a>>2]=d}if((d|0)== -3)break e}j=j+1|0;if((j|0)!=29)continue;break}n=L[b+152>>1];d=e}i=i+1|0;if(i>>>0<(n&65535)>>>0)continue;break}if(!(d&255))break f;j=1;if(!(J[g>>2]!=3&J[g+4>>2]!=3&J[g+8>>2]!=3&J[g+12>>2]!=3&J[g+16>>2]!=3&J[g+20>>2]!=3&J[g+24>>2]!=3&J[g+28>>2]!=3&J[g+32>>2]!=3&J[g+36>>2]!=3&J[g+40>>2]!=3&J[g+44>>2]!=3&J[g+48>>2]!=3&J[g+52>>2]!=3&J[g+56>>2]!=3&J[g+60>>2]!=3&J[g+64>>2]!=3&J[g+68>>2]!=3&J[g+72>>2]!=3&J[g+76>>2]!=3&J[g+80>>2]!=3&J[g+84>>2]!=3&J[g+88>>2]!=3&J[g+92>>2]!=3&J[g+96>>2]!=3&J[g+100>>2]!=3&J[g+ -104>>2]!=3&J[g+108>>2]!=3&J[g+112>>2]!=3))break c;break d}j=0;while(1){a=g+(j<<2)|0;f=J[a>>2];if(j-16>>>0<=11){f=f+1|0;J[a>>2]=f}if((f|0)==3)break e;a=j|1;if((a|0)==29)break d;a=g+(a<<2)|0;f=J[a>>2];if(j-15>>>0<=11){f=f+1|0;J[a>>2]=f}if((f|0)==3)break e;j=j+2|0;continue}}j=1;break c}j=0}xb=p+128|0;if(j)J[b+8>>2]=J[b+8>>2]|8192;d=0;i=xb-16|0;xb=i;f=J[l+28>>2];j:{if(Ab[J[b+516>>2]](b,1751412088,l,i+8|0)|0)break j;a=J[i+8>>2];if(a>>>0<8)break j;k=b+768|0;a=Ne(l,a,k);J[i+12>>2]=a;k:{if(a)break k;l:{m:{m= -J[k>>2];e=K[m+2|0]<<8|K[m+3|0];if(e>>>0<=255){a=K[m+4|0]|K[m+5|0]<<8|(K[m+6|0]<<16|K[m+7|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);h=a>>>0>4294901759?a&65535:a;a=J[i+8>>2];if(!e|h-65538>>>0>4294901761)break m}J[i+12>>2]=3;break l}q=b,r=Tb(f,1,0,e,0,i+12|0),J[q+784>>2]=r;if(J[i+12>>2])break l;n:{if(!e)break n;f=m+8|0;k=a+m|0;while(1){a=f+h|0;if(a>>>0>k>>>0)break n;H[J[b+784>>2]+d|0]=K[f|0];f=a;d=d+1|0;if((e|0)!=(d|0))continue;break}d=e}J[b+776>>2]=d;a=J[i+8>>2];J[b+780>>2]=h;J[b+772>>2]=a; -break k}rd(l,k);J[b+772>>2]=0}d=J[i+12>>2]}xb=i+16|0;f=d;if(d)break a;f=0;o:{if(!(H[b+8|0]&1))break o;if(!J[J[b+128>>2]+52>>2]){i=xb-16|0;xb=i;d=Ab[J[b+516>>2]](b,1735162214,l,b+724|0)|0;p:{q:{if((d&255)==142){J[b+724>>2]=0;a=0;break q}if(d)break p;a=0;if(J[J[b+128>>2]+52>>2])break q;a=J[l+8>>2]}J[b+728>>2]=a;d=144;if(Ab[J[b+516>>2]](b,1819239265,l,i+12|0)|0)break p;f=J[i+12>>2];r:{if(L[b+210>>1]){e=2;if(f>>>0>=262144){J[i+12>>2]=262143;f=262143}break r}e=1;if(f>>>0>=131072){J[i+12>>2]=131071;f=131071}}d= -f>>>e|0;J[b+760>>2]=d;a=J[b+16>>2];s:{if(a>>>0>>0)break s;a=a+1|0;if((a|0)==(d|0))break s;f=a<>2];m=J[l+8>>2];a=L[b+152>>1];t:{if(a){k=(a<<4)+e|0;d=2147483647;j=0;while(1){h=J[e+8>>2]-m|0;a=(h|0)>0&(d|0)>(h|0);j=a?1:j;d=a?h:d;e=e+16|0;if(k>>>0>e>>>0)continue;break}if(j&255)break t}d=J[l+4>>2]-m|0}if(d>>>0>=f>>>0){J[b+760>>2]=J[b+16>>2]+1;J[i+12>>2]=f;break s}d=J[b+760>>2];a=d-1|0;J[b+16>>2]=a>>>0<=d>>>0?a:0;f=J[i+12>>2]}d=Ne(l,f,b+764|0)}xb=i+16|0;f=d;if(d)break a}f=Bv(b,l);if((f& -255)!=142?f:0)break a;d=xb-16|0;xb=d;u:{if(Ab[J[b+516>>2]](b,1718642541,l,d+12|0)|0){J[b+684>>2]=0;J[b+688>>2]=0;f=0;break u}a=J[d+12>>2];J[b+684>>2]=a;f=Ne(l,a,b+688|0)}xb=d+16|0;if((f&255)!=142?f:0)break a;d=xb-16|0;xb=d;v:{if(Ab[J[b+516>>2]](b,1886545264,l,d+12|0)|0){J[b+692>>2]=0;J[b+696>>2]=0;f=0;break v}a=J[d+12>>2];J[b+692>>2]=a;f=Ne(l,a,b+696|0)}xb=d+16|0;if((f&255)!=142?f:0)break a;if(!J[b+764>>2]|(J[J[b+128>>2]+52>>2]|!J[b+28>>2]))break o;h=xb-16|0;xb=h;a=0;k=J[b+760>>2];g=a;w:{if(!k)break w; -x:{y:{z:{while(1){om(b,a,h+12|0);e=J[h+12>>2];if(e)break z;a=a+1|0;if((k|0)!=(a|0))continue;break}a=0;break y}d=a+1|0;if((k|0)==(d|0)){d=a;break x}while(1){om(b,d,h+12|0);g=0;if(J[h+12>>2])break w;d=d+1|0;if((k|0)!=(d|0))continue;break}}d=a;if(e)break x;g=0;break w}g=1;if(!d)break w;g=0;if(dE(b,d,h+4|0,8)|K[h+4|0]!=46)break w;g=(K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24))==1953459758&(K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24))==6710628}a=g;xb=h+16|0;if(!a)break o;J[b+8>>2]=J[b+8>>2]& --2}if(!(!(J[b+8>>2]&256)|c>>>0<65536)){f=Av(b,c>>>16|0);if(f)break a;zv(b);f=0}J[b+536>>2]=75;J[b+532>>2]=76;J[b+528>>2]=77;J[b+520>>2]=78;J[b+524>>2]=79}return f|0}function CG(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,r=0,s=0,t=0;k=xb+-64|0;xb=k;J[k+60>>2]=b;d=K[a|0]|K[a+1|0]<<8;i=(d<<8|d>>>8)&65535;a:{if(i>>>0>=5){d=J[J[b+88>>2]+64>>2];J[b+4>>2]=d;e=J[J[b+8>>2]+88>>2];f=J[e+68>>2];J[b+36>>2]=f;g=J[e+64>>2]==(d|0)?K[(J[e+80>>2]+P(d,20)|0)+15|0]:g;J[b+28>>2]=0;J[b+32>>2]= -0;J[b+24>>2]=838;H[b+23|0]=K[b+22|0]?g:0;b:{o=f-1|0;if((o|0)>(d|0)){while(1){c:{d=d+1|0;J[b+4>>2]=d;f=J[b+12>>2];g=J[b+8>>2];e=J[J[g+88>>2]+80>>2]+P(d,20)|0;d=L[e+12>>1];d:{if(f&d&14)break d;if(d&8)if(!Bd(g,J[e>>2],d,f))break d;f=1;d=L[e+16>>1];if(!(K[e+12|0]&16|(d&96)!=32|!K[b+20|0]&(d&543)==513))f=!K[b+21|0]&(d&287)==257;g=J[b+32>>2];if(g){d=K[g|0]|K[g+1|0]<<8;d=(d<<8|d>>>8)&65535}else d=0;e:{if(!(J[b+16>>2]&J[e+4>>2]))break e;l=K[b+23|0];if((l|0)!=K[e+15|0]?l:0)break e;l=J[b+24>>2];f:{if(l){if(!(Ab[l| -0](e,d,J[b+28>>2])|0))break e;g=J[b+32>>2];break f}if(!f)break d}if(g)J[b+32>>2]=g+2;e=J[b+12>>2];f=J[J[b+88>>2]+80>>2];l=J[b+4>>2];o=f+P(l,20)|0;d=L[o+12>>1];if(e&d&14)break b;if(d&8)if(!Bd(J[b+8>>2],J[o>>2],d,e))break b;d=L[(f+P(l,20)|0)+16>>1];if(!(K[o+12|0]&16|(d&96)!=32|!K[b+20|0]&(d&543)==513))if(K[b+21|0]|(d&287)!=257)break b;g=0;d=J[b+4>>2];m=J[b+36>>2]-1|0;g:{if((d|0)>=(m|0))break g;h:{i:{while(1){j:{d=d+1|0;J[b+4>>2]=d;k:{h=J[b+12>>2];f=J[b+8>>2];e=J[J[f+88>>2]+80>>2]+P(d,20)|0;d=L[e+12>> -1];if(h&d&14)break k;if(d&8)if(!Bd(f,J[e>>2],d,h))break k;f=1;d=L[e+16>>1];if(!(K[e+12|0]&16|(d&96)!=32|!K[b+20|0]&(d&543)==513))f=!K[b+21|0]&(d&287)==257;h=J[b+32>>2];if(h){d=K[h|0]|K[h+1|0]<<8;d=(d<<8|d>>>8)&65535}else d=0;l:{m:{n:{if(!(J[b+16>>2]&J[e+4>>2]))break n;j=K[b+23|0];if((j|0)!=K[e+15|0]?j:0)break n;j=J[b+24>>2];if(!j)break m;if(!(Ab[j|0](e,d,J[b+28>>2])|0))break n;h=J[b+32>>2];break l}if(!f)break k;break h}if(!f)break k}if(h)J[b+32>>2]=h+2;h=0;f=J[b+12>>2];j=J[J[b+88>>2]+80>>2];m=J[b+ -4>>2];d=j+P(m,20)|0;e=L[d+12>>1];if(f&e&14)break g;if(e&8)if(!Bd(J[b+8>>2],J[d>>2],e,f))break g;e=L[(j+P(m,20)|0)+16>>1];if(K[d+12|0]&16|(e&96)!=32|!K[b+20|0]&(e&543)==513)break i;if((e&287)==257)break j;break g}d=J[b+4>>2];if((m|0)>(d|0))continue;break h}break}if(K[b+21|0])break g}d=J[b+4>>2];h=d+1|0;p=J[J[b+88>>2]+80>>2]+P(d,20)|0;break g}h=0}s=l+1|0;t=i>>>0<=1?1:i;q=J[c+20>>2];r=J[c+16>>2];l=J[c+8>>2];m=J[c+4>>2];d=-1;while(1){e=d;d=(g<<1)+a|0;d=K[d+2|0]|K[d+3|0]<<8;if(d)f=((d<<8|d>>>8)&65535)+ -a|0;else f=169776;d=K[f|0]|K[f+1|0]<<8;j=(((d<<8|d>>>8)&65535)<<1)+f|0;i=j;d=K[i+2|0]|K[i+3|0]<<8;n=(d<<8|d>>>8)&65535;i=(i+2|0)+(d?n<<1:2)|0;o:{p:{d=d?n:1;q:{if(d>>>0>=2){if(!m)break q;n=K[j+4|0]|K[j+5|0]<<8;if(Ab[m|0](o,(n<<8|n>>>8)&65535,r)|0)break q;break p}if(!(K[i|0]|K[i+1|0]<<8)|!l)break q;n=K[i+2|0]|K[i+3|0]<<8;if(!(Ab[l|0](o,(n<<8|n>>>8)&65535,q)|0))break p}r:{if(!p)break r;if(d>>>0>=3){if(!m)break r;i=K[j+6|0]|K[j+7|0]<<8;d=h;if(!(Ab[m|0](p,(i<<8|i>>>8)&65535,r)|0))break o;break r}j=K[i| -0]|K[i+1|0]<<8;n=(j<<8|j>>>8)&65535;j=2-d|0;if(!l|n>>>0<=j>>>0)break r;i=(j<<1)+i|0;i=K[i+2|0]|K[i+3|0]<<8;d=h;if(!(Ab[l|0](p,(i<<8|i>>>8)&65535,q)|0))break o}d=e;if(!bt(f,b,c))break o;f=1;if((d|0)==-1)break a;a=J[b+88>>2];if(!(K[a+16|0]&64))break a;d=J[a+64>>2];J[a+144>>2]=J[a+144>>2]|32;b=J[a+68>>2];c=b>>>0>>0?b:e;if(c>>>0<=d>>>0)break a;e=c+(d^-1)|0;h=J[a+80>>2];a=c-d&3;if(a){b=0;while(1){g=h+P(d,20)|0;J[g+4>>2]=J[g+4>>2]|2;d=d+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}if(e>>>0<3)break a; -while(1){a=h+P(d,20)|0;J[a+4>>2]=J[a+4>>2]|2;J[a+24>>2]=J[a+24>>2]|2;J[a+44>>2]=J[a+44>>2]|2;a=a- -64|0;J[a>>2]=J[a>>2]|2;d=d+4|0;if((c|0)!=(d|0))continue;break}break a}d=(e|0)==-1?s:e}g=g+1|0;if((t|0)!=(g|0))continue;break}f=0;if((d|0)==-1)break a;a=J[b+88>>2];if(!(K[a+16|0]&64))break a;g=J[a+64>>2];J[a+144>>2]=J[a+144>>2]|32;b=J[a+68>>2];c=b>>>0>>0?b:d;if(c>>>0<=g>>>0)break a;h=c+(g^-1)|0;d=J[a+80>>2];a=c-g&3;if(a){b=0;while(1){e=d+P(g,20)|0;J[e+4>>2]=J[e+4>>2]|2;g=g+1|0;b=b+1|0;if((a|0)!=(b| -0))continue;break}}if(h>>>0<3)break a;while(1){a=d+P(g,20)|0;J[a+4>>2]=J[a+4>>2]|2;J[a+24>>2]=J[a+24>>2]|2;J[a+44>>2]=J[a+44>>2]|2;a=a- -64|0;J[a>>2]=J[a>>2]|2;g=g+4|0;if((c|0)!=(g|0))continue;break}break a}if(f)break c}d=J[b+4>>2];if((o|0)>(d|0))continue}break}b=K[a|0]|K[a+1|0]<<8;i=(b<<8|b>>>8)&65535}J[k+12>>2]=0;J[k+8>>2]=i;J[k+4>>2]=a+2;J[k+16>>2]=129417;J[k+20>>2]=a;a=J[k+8>>2];b=k+24|0;J[b>>2]=J[k+4>>2];J[b+4>>2]=a;J[b+16>>2]=J[k+20>>2];a=J[k+16>>2];J[b+8>>2]=J[k+12>>2];J[b+12>>2]=a;J[b+24>> -2]=116473;f=J[b+4>>2];s:{if(!f)break s;g=J[b+16>>2];h=J[b+8>>2];d=J[b>>2];while(1){a=K[d|0]|K[d+1|0]<<8;if(a)a=g+((a<<8|a>>>8)&65535)|0;else a=169776;e=K[a|0]|K[a+1|0]<<8;a=((((e<<8|e>>>8)&65535)<<1)+a|0)+2|0;e=K[a|0]|K[a+1|0]<<8;i=(e<<8|e>>>8)&65535;if(i>>>0<=1){a=a+(e?i<<1:2)|0;if(!(K[a|0]|K[a+1|0]<<8))break s}h=h+1|0;J[b+8>>2]=h;f=f-1|0;J[b+4>>2]=f;d=d+2|0;J[b>>2]=d;if(f)continue;break}}J[k+52>>2]=k+60;J[k+56>>2]=c;d=J[b+4>>2];t:{if(d){e=J[b+32>>2];g=J[b+28>>2];c=J[b+16>>2];h=J[b>>2];f=K[h|0]| -K[h+1|0]<<8;u:while(1){if(f&65535)a=c+((f<<8|(f&65280)>>>8)&65535)|0;else a=169776;f=bt(a,J[g>>2],e);if(f)break t;d=d-1|0;if(!d)break t;while(1){f=K[h+2|0]|K[h+3|0]<<8;if(f)a=c+((f<<8|f>>>8)&65535)|0;else a=169776;h=h+2|0;b=K[a|0]|K[a+1|0]<<8;a=(a+(((b<<8|b>>>8)&65535)<<1)|0)+2|0;b=K[a|0]|K[a+1|0]<<8;i=(b<<8|b>>>8)&65535;if(i>>>0<=1){a=a+(b?i<<1:2)|0;if(!(K[a|0]|K[a+1|0]<<8))continue u}d=d-1|0;if(d)continue;break}break}}f=0}break a}d=K[a|0]|K[a+1|0]<<8}if(!(d&65535)){f=0;break a}g=(d<<8|(d&65280)>>> -8)&65535;d=a+2|0;while(1){h=K[d|0]|K[d+1|0]<<8;if(h)e=((h<<8|h>>>8)&65535)+a|0;else e=169776;f=bt(e,b,c);if(f)break a;d=d+2|0;g=g-1|0;if(g)continue;break}}xb=k- -64|0;return f}function $n(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;p=xb-960|0;xb=p;a:{b:{q=J[a+4>>2];if(q){i=J[a+20>>2];k=J[a+16>>2];e=Fd(p+16|0,0);J[195395]=0;$(1242,e|0,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;b=L[a+26>>1];c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0; -c=J[a+68>>2];h=J[195395];J[195395]=0;if((h|0)==1)break b;J[195395]=0;ka(1170,e|0,i|0,k|0,b|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;b=J[a+4>>2];c=J[a+44>>2];h=J[195395];J[195395]=0;if((h|0)==1)break b;J[195395]=0;fa(1101,e|0,(b?c?b+40|0:0:0)|0,256);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;b=J[a+932>>2];c=J[195395];J[195395]=0;if((c|0)==1)break b;if(b){J[195395]=0;_(1212,e|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b}J[195395]=0;b=J[a+928>>2];c=J[195395]; -J[195395]=0;if((c|0)==1)break b;if(b){J[195395]=0;_(1255,e|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b}c:{if(L[a+26>>1]!=1){if((i|0)<=0|(k|0)<=0)break c;h=0;while(1){l=h- -64|0;g=(i|0)<(l|0)?i:l;b=0;while(1){m=b- -64|0;n=(k|0)<(m|0)?k:m;d=h;d:{if(L[a+26>>1]==24)while(1){J[a+328>>2]=(P(d,100)|0)/(i|0);J[195395]=0;if(J[e+44>>2])c=0;else c=(J[e+56>>2]+P(J[e+52>>2],b)|0)+P(d,3)|0;f=J[195395];J[195395]=0;if((f|0)==1)break b;J[195395]=0;if(J[a+44>>2])f=0;else f=(J[a+56>>2]+P(J[a+52>>2],(d^-1)+i|0)| -0)+P(b,3)|0;o=J[195395];J[195395]=0;j=b;if((o|0)==1)break b;while(1){H[c|0]=K[f|0];H[c+1|0]=K[f+1|0];H[c+2|0]=K[f+2|0];f=f+3|0;c=J[e+52>>2]+c|0;j=j+1|0;if((n|0)>(j|0))continue;break}d=d+1|0;if((g|0)>(d|0))continue;break d}while(1){J[a+328>>2]=(P(d,100)|0)/(i|0);f=(d^-1)+i|0;c=b;while(1){J[195395]=0;j=jh(a,c,f);o=J[195395];J[195395]=0;if((o|0)==1)break b;J[195395]=0;Pg(e,d,c,j);j=J[195395];J[195395]=0;if((j|0)==1)break b;c=c+1|0;if((n|0)>(c|0))continue;break}d=d+1|0;if((g|0)>(d|0))continue;break}}J[195395]= -0;c=J[a+932>>2];d=J[195395];J[195395]=0;if((d|0)==1)break b;e:{if(!c)break e;c=b- -64|0;f=(c|0)>(k|0)?k:c;d=h;while(1){j=(d^-1)+i|0;c=b;f:{while(1){J[195395]=0;n=K[(J[a+932>>2]+P(j,J[a+16>>2])|0)+c|0];o=J[195395];J[195395]=0;if((o|0)==1)break f;J[195395]=0;ne(e,d,c,n);n=J[195395];J[195395]=0;if((n|0)==1)break f;c=c+1|0;if((f|0)>(c|0))continue;break}d=d+1|0;if((g|0)<=(d|0))break e;continue}break}break b}J[195395]=0;c=J[a+928>>2];d=J[195395];J[195395]=0;if((d|0)==1)break b;g:{if(!c)break g;J[e+372>> -2]=i-J[a+376>>2];J[e+380>>2]=i-J[a+384>>2];J[e+384>>2]=J[a+372>>2];J[e+376>>2]=J[a+380>>2];c=b- -64|0;f=(c|0)>(k|0)?k:c;d=h;while(1){j=(d^-1)+i|0;c=b;h:{while(1){J[195395]=0;n=K[(J[a+928>>2]+P(j,J[a+16>>2])|0)+c|0];o=J[195395];J[195395]=0;if((o|0)==1)break h;J[195395]=0;Ql(e,d,c,n);n=J[195395];J[195395]=0;if((n|0)==1)break h;c=c+1|0;if((f|0)>(c|0))continue;break}d=d+1|0;if((g|0)<=(d|0))break g;continue}break}break b}b=m;if((k|0)>(b|0))continue;break}h=l;if((i|0)>(h|0))continue;break}break c}J[195395]= -0;n=fd(a,0);b=J[195395];J[195395]=0;i:{if((b|0)!=1){J[195395]=0;h=fd(e,0);b=J[195395];J[195395]=0;if((b|0)==1)break b;b=J[e+32>>2];c=J[e+16>>2];d=J[e+52>>2];J[195395]=0;Tl(e,0);f=J[195395];J[195395]=0;if((f|0)==1)break b;if(J[a+20>>2]>0){o=(d<<3)-c|0;d=(b+h|0)-1|0;while(1){J[195395]=0;b=j+o|0;c=(b|0)/8|0;J[p+8>>2]=c;J[p+12>>2]=b-(c<<3);b=J[195395];J[195395]=0;if((b|0)==1)break b;b=J[a+52>>2];if((b|0)>0){r=n+P(b,j)|0;c=0;s=0-J[p+8>>2]|0;l=1<>2];while(1){f=J[e+52>>2];b=((f+(h+(P(c,f)<<3)|0)| -0)+s|0)-1|0;j:{if(b>>>0>>0|b>>>0>d>>>0)break j;m=c+r|0;if(H[m|0]<0){H[b|0]=l|K[b|0];f=J[e+52>>2]}g=b+f|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&64){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+(f<<1)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&32){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,3)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&16){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+(f<<2)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&8){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,5)|0;if(g>>>0>>0|d>>>0>>0)break j; -if(K[m|0]&4){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,6)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&2){H[g|0]=l|K[g|0];f=J[e+52>>2]}b=P(f,7)+b|0;if(!(H[m|0]&1)|(b>>>0>>0|b>>>0>d>>>0))break j;H[b|0]=l|K[b|0]}c=c+1|0;if((c|0)>2])continue;break}}j=j+1|0;if((j|0)>2])continue;break}}d=0;J[195395]=0;b=J[a+932>>2];c=J[195395];J[195395]=0;if((c|0)==1)break b;if(!(!b|(k|0)<=0|(i|0)<=0))while(1){b=(d^-1)+i|0;c=0;while(1){J[195395]=0;h=K[(J[a+932>>2]+P(b,J[a+16>>2])|0)+c|0];f=J[195395];J[195395]= -0;if((f|0)==1)break b;J[195395]=0;ne(e,d,c,h);h=J[195395];J[195395]=0;if((h|0)==1)break b;c=c+1|0;if((k|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}J[195395]=0;b=J[a+928>>2];c=J[195395];J[195395]=0;if((c|0)==1)break b;if(!b)break c;J[e+372>>2]=i-J[a+376>>2];J[e+380>>2]=i-J[a+384>>2];J[e+384>>2]=J[a+372>>2];J[e+376>>2]=J[a+380>>2];if((i|0)<=0|(k|0)<=0)break c;d=0;while(1){b=(d^-1)+i|0;c=0;while(1){J[195395]=0;h=K[(J[a+928>>2]+P(b,J[a+16>>2])|0)+c|0];f=J[195395];J[195395]=0;if((f| -0)==1)break i;J[195395]=0;Ql(e,d,c,h);h=J[195395];J[195395]=0;if((h|0)==1)break i;c=c+1|0;if((k|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}break c}break b}break b}J[195395]=0;aa(1249,a|0,e|0,1)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;J[e>>2]=234140;J[195395]=0;_(1097,e|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;_(1098,e|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a}xb=p+960|0;return(q|0)!=0}a=Z()|0;J[e>>2]=234140;J[195395]=0;_(1097,e|0)|0;b=J[195395]; -J[195395]=0;k:{if((b|0)==1)break k;J[195395]=0;_(1098,e|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k;ba(a|0);B()}}ga(0)|0;_b();B()}function xG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=Q(0),j=0,k=0,l=0,m=0;e=xb-48|0;xb=e;j=J[b+88>>2];g=169776;c=K[a+2|0]|K[a+3|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;c=ld(c,J[J[j+80>>2]+P(J[j+64>>2],20)>>2]);d=K[a+4|0]|K[a+5|0]<<8;g=c>>>0<((d<<8|d>>>8)&65535)>>>0?((c<<2)+a|0)+6|0:g;c=K[g|0]|K[g+1|0]<<8;a:{if(!c)break a;h=J[b+104>>2];d=J[b+96>>2]; -if(h>>>0>>0)break a;f=J[b+100>>2];if(f-g>>>0<2)break a;l=b+92|0;b:{if(!c)break b;c=((c<<8|c>>>8)&65535)+a|0;c:{if(h>>>0>>0|f-c>>>0<2)break c;d:{e:{f:{d=K[c|0]|K[c+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 0:break d;case 2:break e;case 1:break f;default:break b}}if(M[b+104>>2]>2]>>>0|J[b+100>>2]-c>>>0<=7)break c;break b}if(!nj(c,l))break c;break b}if(M[b+104>>2]>2]>>>0)break c;if(J[b+100>>2]-c>>>0>5)break b}c=J[b+124>>2];if(c>>>0>31)break a;J[b+124>>2]=c+1;if(!K[b+ -120|0])break a;H[g|0]=0;H[g+1|0]=0}c=J[j+64>>2];J[b+4>>2]=c;d=0;g:{if(!c)break g;while(1){c=c-1|0;J[b+4>>2]=c;h:{h=J[b+12>>2];f=J[b+8>>2];d=J[J[f+88>>2]+84>>2]+P(c,20)|0;c=L[d+12>>1];if(h&c&14)break h;if(c&8)if(!Bd(f,J[d>>2],c,h))break h;f=1;c=L[d+16>>1];if(!(K[d+12|0]&16|(c&96)!=32|!K[b+20|0]&(c&543)==513))f=!K[b+21|0]&(c&287)==257;h=J[b+32>>2];if(h){c=K[h|0]|K[h+1|0]<<8;c=(c<<8|c>>>8)&65535}else c=0;i:{j:{k:{l:{m:{n:{o:{if(!(J[b+16>>2]&J[d+4>>2]))break o;m=K[b+23|0];if((m|0)!=K[d+15|0]?m:0)break o; -m=J[b+24>>2];p:{if(m){if(!(Ab[m|0](d,c,J[b+28>>2])|0))break o;h=J[b+32>>2];break p}if(!f)break h}if(h)J[b+32>>2]=h+2;c=169776;d=K[a+2|0]|K[a+3|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+a|0;else d=169776;d=ld(d,J[J[j+80>>2]+P(J[b+4>>2],20)>>2]);h=K[a+4|0]|K[a+5|0]<<8;c=d>>>0<((h<<8|h>>>8)&65535)>>>0?((d<<2)+a|0)+6|0:c;if(!(K[c+2|0]|K[c+3|0]<<8))break j;h=J[b+104>>2];f=c+2|0;d=J[b+96>>2];if(h>>>0>>0)break j;k=J[b+100>>2];if(k-f>>>0<2)break j;c=K[f|0]|K[f+1|0]<<8;if(!c)break i;c=((c<<8|c>>>8)&65535)+a| -0;if(h>>>0>>0|k-c>>>0<2)break k;d=K[c|0]|K[c+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 2:break l;case 0:break m;case 1:break n;default:break i}}if(!f)break h;a=J[b+4>>2];d=(a>>>0<=1?1:a)-1|0;break g}if(M[b+104>>2]>2]>>>0|J[b+100>>2]-c>>>0<=7)break k;break i}if(M[b+104>>2]>2]>>>0)break k;if(J[b+100>>2]-c>>>0>5)break i;break k}if(nj(c,l))break i}c=J[b+124>>2];if(c>>>0>31)break j;J[b+124>>2]=c+1;if(!K[b+120|0])break j;H[f|0]=0;H[f+1|0]=0;break i}k=0;if(!(K[j+16|0]&64))break a; -Ac(j,2,J[b+4>>2],J[j+64>>2]+1|0,0,1);break a}d=J[j+64>>2];h=J[b+4>>2];c=J[b+88>>2];if(J[c+156>>2]){k=J[b+80>>2];J[e+20>>2]=d;J[e+16>>2]=h;nc(c,k,130513,e+16|0)}Ac(j,3,h,d+1|0,1,0);c=K[f|0]|K[f+1|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;f=J[J[j+80>>2]+P(h,20)>>2];J[e+36>>2]=0;J[e+32>>2]=0;q:{r:{s:{t:{k=K[c|0]|K[c+1|0]<<8;switch(((k<<8|k>>>8)&65535)-1|0){case 2:break r;case 1:break s;case 0:break t;default:break q}}f=J[b+80>>2];k=K[c+2|0]|K[c+3|0]<<8;N[e+36>>2]=N[f+64>>2]*Q((k<<8|k>>>8)<< -16>>16);c=K[c+4|0]|K[c+5|0]<<8;N[e+32>>2]=N[f+68>>2]*Q((c<<8|c>>>8)<<16>>16);break q}yo(c,b,f,e+36|0,e+32|0);break q}xo(c,b,e+36|0,e+32|0)}c=K[g|0]|K[g+1|0]<<8;if(c)a=((c<<8|c>>>8)&65535)+a|0;else a=169776;c=J[J[j+80>>2]+P(d,20)>>2];J[e+44>>2]=0;J[e+40>>2]=0;u:{v:{w:{x:{g=K[a|0]|K[a+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 2:break v;case 1:break w;case 0:break x;default:break u}}c=J[b+80>>2];g=K[a+2|0]|K[a+3|0]<<8;N[e+44>>2]=N[c+64>>2]*Q((g<<8|g>>>8)<<16>>16);a=K[a+4|0]|K[a+5|0]<<8;N[e+40>>2]= -N[c+68>>2]*Q((a<<8|a>>>8)<<16>>16);break u}yo(a,b,c,e+44|0,e+40|0);break u}xo(a,b,e+44|0,e+40|0)}f=J[j+88>>2];y:{z:{A:{B:{C:{l=J[b+172>>2];switch(l-4|0){case 3:break z;case 2:break A;case 1:break B;case 0:break C;default:break y}}c=f+P(h,20)|0;i=Q(Q(V(Q(N[e+36>>2]+Q(.5))))+Q(J[c+8>>2]));D:{if(Q(R(i))>2]=a;a=f+P(d,20)|0;g=J[a+8>>2];i=Q(Q(V(Q(N[e+44>>2]+Q(.5))))+Q(g|0));E:{if(Q(R(i))>2]=g-c;J[a>>2]=J[a>> -2]-c;break y}a=f+P(h,20)|0;g=J[a+8>>2];i=Q(Q(V(Q(N[e+36>>2]+Q(.5))))+Q(g|0));F:{if(Q(R(i))>2]=g-c;J[a>>2]=J[a>>2]-c;a=f+P(d,20)|0;i=Q(Q(V(Q(N[e+44>>2]+Q(.5))))+Q(J[a+8>>2]));if(Q(R(i))>2]=~~i;break y}J[a>>2]=-2147483648;break y}c=f+P(h,20)|0;i=Q(Q(V(Q(N[e+32>>2]+Q(.5))))+Q(J[c+12>>2]));G:{if(Q(R(i))>2]=a;a=f+P(d,20)|0;g=J[a+12>>2];i=Q(Q(V(Q(N[e+40>>2]+Q(.5))))+Q(g|0));H:{if(Q(R(i))< -Q(2147483648)){c=~~i;break H}c=-2147483648}J[a+12>>2]=g-c;J[a+4>>2]=J[a+4>>2]-c;break y}a=f+P(h,20)|0;g=J[a+12>>2];i=Q(Q(V(Q(N[e+32>>2]+Q(.5))))+Q(g|0));I:{if(Q(R(i))>2]=g-c;J[a+4>>2]=J[a+4>>2]-c;c=f+P(d,20)|0;i=Q(V(Q(N[e+40>>2]+Q(.5))));J:{if(Q(R(i))>2]=a}a=K[b+184|0];i=Q(V(Q(Q(N[e+40>>2]-N[e+32>>2])+Q(.5))));K:{if(Q(R(i))>2]-N[e+ -36>>2])+Q(.5))));L:{if(Q(R(i))>1]=a-c;H[l+18|0]=2;J[j+144>>2]=J[j+144>>2]|8;N:{if((J[b+172>>2]&-2)==4){J[l+12>>2]=g;break N}J[l+8>>2]=k}c=f+P(a,20)|0;if(I[c+16>>1]==(0-I[l+16>>1]|0)){I[c+16>>1]=0;J[((J[b+172>>2]&-2)==4?c+12|0:(f+P(a,20)|0)+8|0)>>2]=0}a=J[b+88>>2];if(J[a+156>>2]){b=J[b+80>>2];J[e+4>>2]=d;J[e>>2]=h;nc(a,b,130562,e)}k=1;J[j+64>>2]=J[j+64>>2]+1;break a}c=J[b+4>> -2];if(c)continue;break}d=0}if(!(K[j+16|0]&64))break a;Ac(j,2,d,J[j+64>>2]+1|0,0,1)}xb=e+48|0;return k|0}function cs(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;o=xb-960|0;xb=o;a:{b:{r=J[a+4>>2];if(r){n=J[a+20>>2];i=J[a+16>>2];f=Fd(o+16|0,0);J[195395]=0;$(1242,f|0,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;c=L[a+26>>1];b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;e=J[a+68>>2];b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;ka(1170, -f|0,n|0,i|0,c|0,e|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;c=J[a+4>>2];e=J[a+44>>2];b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;fa(1101,f|0,(c?e?c+40|0:0:0)|0,256);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;e=J[a+932>>2];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(e){J[195395]=0;_(1212,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b}J[195395]=0;e=J[a+928>>2];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(e){J[195395]=0;_(1255,f|0)|0;b=J[195395];J[195395]= -0;if((b|0)==1)break b}c:{if(L[a+26>>1]!=1){if((n|0)<=0|(i|0)<=0)break c;b=0;while(1){q=b- -64|0;k=(n|0)<(q|0)?n:q;e=0;while(1){p=e- -64|0;l=(i|0)<(p|0)?i:p;g=e;d:{if(L[a+26>>1]==24)while(1){J[a+328>>2]=(P(g,100)|0)/(i|0);J[195395]=0;if(J[f+44>>2])c=0;else c=(J[f+56>>2]+P(J[f+52>>2],g)|0)+P(b,3)|0;h=J[195395];J[195395]=0;if((h|0)==1)break b;J[195395]=0;if(J[a+44>>2])h=0;else h=(J[a+56>>2]+P(J[a+52>>2],b)|0)+P((g^-1)+i|0,3)|0;j=J[195395];J[195395]=0;d=b;if((j|0)==1)break b;while(1){H[c|0]=K[h|0];H[c+ -1|0]=K[h+1|0];H[c+2|0]=K[h+2|0];c=c+3|0;h=J[a+52>>2]+h|0;d=d+1|0;if((k|0)>(d|0))continue;break}g=g+1|0;if((l|0)>(g|0))continue;break d}while(1){J[a+328>>2]=(P(g,100)|0)/(i|0);j=(g^-1)+i|0;c=b;while(1){J[195395]=0;d=jh(a,j,c);h=J[195395];J[195395]=0;if((h|0)==1)break b;J[195395]=0;Pg(f,c,g,d);h=J[195395];J[195395]=0;if((h|0)==1)break b;c=c+1|0;if((k|0)>(c|0))continue;break}g=g+1|0;if((l|0)>(g|0))continue;break}}J[195395]=0;g=J[a+932>>2];c=J[195395];J[195395]=0;if((c|0)==1)break b;e:{if(!g)break e; -c=e- -64|0;l=(c|0)>(i|0)?i:c;g=e;while(1){j=(g^-1)+i|0;c=b;f:{while(1){J[195395]=0;d=K[j+(J[a+932>>2]+P(J[a+16>>2],c)|0)|0];h=J[195395];J[195395]=0;if((h|0)==1)break f;J[195395]=0;ne(f,c,g,d);h=J[195395];J[195395]=0;if((h|0)==1)break f;c=c+1|0;if((k|0)>(c|0))continue;break}g=g+1|0;if((l|0)<=(g|0))break e;continue}break}break b}J[195395]=0;g=J[a+928>>2];c=J[195395];J[195395]=0;if((c|0)==1)break b;g:{if(!g){e=p;break g}J[f+372>>2]=J[a+384>>2];J[f+380>>2]=J[a+376>>2];J[f+384>>2]=i-J[a+380>>2];J[f+376>> -2]=i-J[a+372>>2];g=e- -64|0;j=(g|0)>(i|0)?i:g;h:{while(1){d=(e^-1)+i|0;c=b;while(1){J[195395]=0;p=K[d+(J[a+928>>2]+P(J[a+16>>2],c)|0)|0];h=J[195395];J[195395]=0;if((h|0)==1)break h;J[195395]=0;Ql(f,c,e,p);h=J[195395];J[195395]=0;if((h|0)==1)break h;c=c+1|0;if((k|0)>(c|0))continue;break}e=e+1|0;if((j|0)>(e|0))continue;break}e=g;break g}break b}if((e|0)<(i|0))continue;break}b=q;if((n|0)>(b|0))continue;break}break c}J[195395]=0;q=fd(a,0);b=J[195395];J[195395]=0;i:{if((b|0)!=1){J[195395]=0;m=fd(f,0); -b=J[195395];J[195395]=0;if((b|0)==1)break b;e=J[f+32>>2];J[195395]=0;Tl(f,0);b=J[195395];J[195395]=0;if((b|0)==1)break b;if(J[a+20>>2]>0){k=(e+m|0)-1|0;while(1){J[195395]=0;b=(h|0)/8|0;J[o+8>>2]=b;J[o+12>>2]=h-(b<<3);b=J[195395];J[195395]=0;if((b|0)==1)break b;b=J[a+52>>2];if((b|0)>0){p=m+J[o+8>>2]|0;g=q+P(b,h)|0;l=128>>>J[o+12>>2]|0;c=0;while(1){b=J[f+52>>2];e=P(b,J[f+20>>2]+(c<<3^-1)|0)+p|0;j:{if(e>>>0>>0|e>>>0>k>>>0)break j;j=c+g|0;if(H[j|0]<0){H[e|0]=l|K[e|0];b=J[f+52>>2]}d=e-b|0;if(d>>>0< -m>>>0|d>>>0>k>>>0)break j;if(K[j|0]&64){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e-(b<<1)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&32){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e+P(b,-3)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&16){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e-(b<<2)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&8){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e+P(b,-5)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&4){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e+P(b,-6)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&2){H[d|0]= -l|K[d|0];b=J[f+52>>2]}b=P(b,-7)+e|0;if(!(H[j|0]&1)|(b>>>0>>0|b>>>0>k>>>0))break j;H[b|0]=l|K[b|0]}c=c+1|0;if((c|0)>2])continue;break}}h=h+1|0;if((h|0)>2])continue;break}}d=0;J[195395]=0;e=J[a+932>>2];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(!(!e|(n|0)<=0|(i|0)<=0))while(1){g=(d^-1)+i|0;c=0;while(1){J[195395]=0;e=K[g+(J[a+932>>2]+P(J[a+16>>2],c)|0)|0];b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;ne(f,c,d,e);b=J[195395];J[195395]=0;if((b|0)==1)break b;c=c+1|0;if((n| -0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}J[195395]=0;e=J[a+928>>2];b=J[195395];J[195395]=0;if((b|0)==1)break b;if(!e)break c;J[f+372>>2]=J[a+384>>2];J[f+380>>2]=J[a+376>>2];J[f+384>>2]=i-J[a+380>>2];J[f+376>>2]=i-J[a+372>>2];if((i|0)<=0|(n|0)<=0)break c;d=0;while(1){g=(d^-1)+i|0;c=0;while(1){J[195395]=0;e=K[g+(J[a+928>>2]+P(J[a+16>>2],c)|0)|0];b=J[195395];J[195395]=0;if((b|0)==1)break i;J[195395]=0;Ql(f,c,d,e);b=J[195395];J[195395]=0;if((b|0)==1)break i;c=c+1|0;if((n|0)!=(c| -0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}break c}break b}break b}J[195395]=0;aa(1249,a|0,f|0,1)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;J[f>>2]=234140;J[195395]=0;_(1097,f|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;_(1098,f|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a}xb=o+960|0;return(r|0)!=0}b=Z()|0;J[f>>2]=234140;J[195395]=0;_(1097,f|0)|0;a=J[195395];J[195395]=0;k:{if((a|0)==1)break k;J[195395]=0;_(1098,f|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break k; -ba(b|0);B()}}ga(0)|0;_b();B()}function fW(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,s=0,t=0,u=0,w=0,x=0,y=0,z=0,B=0,C=0;n=xb-560|0;xb=n;J[n+44>>2]=0;A(+b);g=v(1)|0;v(0)|0;a:{if((g|0)<0){t=1;x=224968;b=-b;A(+b);g=v(1)|0;v(0)|0;break a}if(e&2048){t=1;x=224971;break a}t=e&1;x=t?224974:224969;z=!t}b:{if((g&2146435072)==2146435072){g=t+3|0;Le(a,32,c,g,e&-65537);De(a,x,t);d=f&32;De(a,b!=b?d?226538:228059:d?226984:228096,3);Le(a,32,c,g,e^8192);m= -(c|0)<(g|0)?g:c;break b}u=n+16|0;c:{d:{e:{b=nz(b,n+44|0);b=b+b;if(b!=0){g=J[n+44>>2];J[n+44>>2]=g-1;w=f|32;if((w|0)!=97)break e;break c}w=f|32;if((w|0)==97)break c;k=J[n+44>>2];l=(d|0)<0?6:d;break d}k=g-29|0;J[n+44>>2]=k;b=b*268435456;l=(d|0)<0?6:d}p=(n+48|0)+((k|0)>=0?288:0)|0;h=p;while(1){if(b<4294967296&b>=0)d=~~b>>>0;else d=0;J[h>>2]=d;h=h+4|0;b=(b-+(d>>>0))*1E9;if(b!=0)continue;break}f:{if((k|0)<=0){d=k;g=h;i=p;break f}i=p;d=k;while(1){j=(d|0)>=29?29:d;g=h-4|0;g:{if(i>>>0>g>>>0)break g;o=0;while(1){d= -J[g>>2];m=j&31;y=o;if((j&63)>>>0>=32){o=d<>>32-m;d=d<>>0>m>>>0?o+1|0:o,1E9,0);B=g,C=m-Kpa(o,zb,1E9,0)|0,J[B>>2]=C;g=g-4|0;if(i>>>0<=g>>>0)continue;break}if(!o)break g;i=i-4|0;J[i>>2]=o}while(1){g=h;if(i>>>0>>0){h=g-4|0;if(!J[h>>2])continue}break}d=J[n+44>>2]-j|0;J[n+44>>2]=d;h=g;if((d|0)>0)continue;break}}if((d|0)<0){s=((l+25>>>0)/9|0)+1|0;q=(w|0)==102;while(1){d=0-d|0;m=(d|0)>=9?9:d;h:{if(g>>>0<=i>>>0){h=J[i>>2];break h}o=1E9>>>m|0;j=-1<>2];J[h>>2]=y+(d>>>m|0);d=P(o,d&j);h=h+4|0;if(h>>>0>>0)continue;break}h=J[i>>2];if(!d)break h;J[g>>2]=d;g=g+4|0}d=m+J[n+44>>2]|0;J[n+44>>2]=d;i=(!h<<2)+i|0;h=q?p:i;g=g-h>>2>(s|0)?h+(s<<2)|0:g;if((d|0)<0)continue;break}}d=0;i:{if(g>>>0<=i>>>0)break i;d=P(p-i>>2,9);h=10;j=J[i>>2];if(j>>>0<10)break i;while(1){d=d+1|0;h=P(h,10);if(j>>>0>=h>>>0)continue;break}}h=(l-((w|0)!=102?d:0)|0)-((w|0)==103&(l|0)!=0)|0;if((h|0)<(P(g-p>>2,9)-9|0)){o=h+9216|0;j=(o|0)/9|0;s=((n+48|0)+ -((k|0)<0?4:292)|0)+(j<<2)|0;k=s-4096|0;h=10;m=o-P(j,9)|0;if((m|0)<=7)while(1){h=P(h,10);m=m+1|0;if((m|0)!=8)continue;break}q=J[k>>2];o=(q>>>0)/(h>>>0)|0;m=q-P(h,o)|0;j=s-4092|0;j:{if(!m&(j|0)==(g|0))break j;k:{if(!(o&1)){b=9007199254740992;if(!(H[s-4100|0]&1)|((h|0)!=1E9|i>>>0>=k>>>0))break k}b=9007199254740994}r=(g|0)==(j|0)?1:1.5;j=h>>>1|0;r=j>>>0>m>>>0?.5:(j|0)==(m|0)?r:1.5;if(!(K[x|0]!=45|z)){r=-r;b=-b}j=q-m|0;J[k>>2]=j;if(b+r==b)break j;d=h+j|0;J[k>>2]=d;if(d>>>0>=1E9)while(1){J[k>>2]=0;k=k- -4|0;if(k>>>0>>0){i=i-4|0;J[i>>2]=0}d=J[k>>2]+1|0;J[k>>2]=d;if(d>>>0>999999999)continue;break}d=P(p-i>>2,9);h=10;j=J[i>>2];if(j>>>0<10)break j;while(1){d=d+1|0;h=P(h,10);if(j>>>0>=h>>>0)continue;break}}h=k+4|0;g=g>>>0>h>>>0?h:g}while(1){j=g;o=g>>>0<=i>>>0;if(!o){g=g-4|0;if(!J[g>>2])continue}break}l:{if((w|0)!=103){k=e&8;break l}h=l?l:1;g=(h|0)>(d|0)&(d|0)>-5;l=(g?d^-1:-1)+h|0;f=(g?-1:-2)+f|0;k=e&8;if(k)break l;g=-9;m:{if(o)break m;k=J[j-4>>2];if(!k)break m;m=10;g=0;if((k>>>0)%10|0)break m;while(1){h= -g;g=g+1|0;m=P(m,10);if(!((k>>>0)%(m>>>0)|0))continue;break}g=h^-1}h=P(j-p>>2,9);if((f&-33)==70){k=0;g=(g+h|0)-9|0;g=(g|0)>0?g:0;l=(g|0)>(l|0)?l:g;break l}k=0;g=((d+h|0)+g|0)-9|0;g=(g|0)>0?g:0;l=(g|0)>(l|0)?l:g}m=-1;o=k|l;if(((o?2147483645:2147483646)|0)<(l|0))break b;q=(((o|0)!=0)+l|0)+1|0;h=f&-33;n:{if((h|0)==70){if((q^2147483647)<(d|0))break b;g=(d|0)>0?d:0;break n}g=d>>31;g=Kj((g^d)-g|0,0,u);if((u-g|0)<=1)while(1){g=g-1|0;H[g|0]=48;if((u-g|0)<2)continue;break}s=g-2|0;H[s|0]=f;H[g-1|0]=(d|0)<0? -45:43;g=u-s|0;if((g|0)>(q^2147483647))break b}d=g+q|0;if((d|0)>(t^2147483647))break b;q=d+t|0;Le(a,32,c,q,e);De(a,x,t);Le(a,48,c,q,e^65536);o:{p:{q:{if((h|0)==70){f=n+16|0;d=f|8;k=f|9;h=i>>>0>p>>>0?p:i;i=h;while(1){g=Kj(J[i>>2],0,k);r:{if((h|0)!=(i|0)){if(n+16>>>0>=g>>>0)break r;while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}break r}if((g|0)!=(k|0))break r;H[n+24|0]=48;g=d}De(a,g,k-g|0);i=i+4|0;if(p>>>0>=i>>>0)continue;break}if(o)De(a,228133,1);if((l|0)<=0|i>>>0>=j>>>0)break q;while(1){g= -Kj(J[i>>2],0,k);if(g>>>0>n+16>>>0)while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}De(a,g,(l|0)>=9?9:l);g=l-9|0;i=i+4|0;if(j>>>0<=i>>>0)break p;d=(l|0)>9;l=g;if(d)continue;break}break p}s:{if((l|0)<0)break s;p=i>>>0>>0?j:i+4|0;f=n+16|0;d=f|8;j=f|9;h=i;while(1){g=Kj(J[h>>2],0,j);if((j|0)==(g|0)){H[n+24|0]=48;g=d}t:{if((h|0)!=(i|0)){if(n+16>>>0>=g>>>0)break t;while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}break t}De(a,g,1);g=g+1|0;if(!(k|l))break t;De(a,228133,1)}f=j-g|0; -De(a,g,(f|0)<(l|0)?f:l);l=l-f|0;h=h+4|0;if(p>>>0<=h>>>0)break s;if((l|0)>=0)continue;break}}Le(a,48,l+18|0,18,0);De(a,s,u-s|0);break o}g=l}Le(a,48,g+9|0,9,0)}Le(a,32,c,q,e^8192);m=(c|0)<(q|0)?q:c;break b}k=(f<<26>>31&9)+x|0;u:{if(d>>>0>11)break u;g=12-d|0;r=16;while(1){r=r*16;g=g-1|0;if(g)continue;break}if(K[k|0]==45){b=-(r+(-b-r));break u}b=b+r-r}g=J[n+44>>2];h=g>>31;g=Kj((g^h)-h|0,0,u);if((u|0)==(g|0)){H[n+15|0]=48;g=n+15|0}p=t|2;i=f&32;h=J[n+44>>2];l=g-2|0;H[l|0]=f+15;H[g-1|0]=(h|0)<0?45:43;g= -e&8;h=n+16|0;while(1){f=h;if(R(b)<2147483648)j=~~b;else j=-2147483648;H[h|0]=i|K[j+758512|0];b=(b-+(j|0))*16;h=f+1|0;if(!(!((d|0)>0|g)&b==0|(h-(n+16|0)|0)!=1)){H[f+1|0]=46;h=f+2|0}if(b!=0)continue;break}m=-1;g=u-l|0;f=g+p|0;if((2147483645-f|0)<(d|0))break b;j=f;f=n+16|0;i=h-f|0;d=d?(i-2|0)<(d|0)?d+2|0:i:i;h=j+d|0;Le(a,32,c,h,e);De(a,k,p);Le(a,48,c,h,e^65536);De(a,f,i);Le(a,48,d-i|0,0,0);De(a,l,g);Le(a,32,c,h,e^8192);m=(c|0)<(h|0)?h:c}xb=n+560|0;return m|0}function GF(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;b=xb-272|0;xb=b;J[b+60>>2]=0;J[b+64>>2]=0;a:{if(!a){CF(b+24|0);break a}J[b- -64>>2]=J[a+40>>2];e=J[a+36>>2];J[b+56>>2]=J[a+32>>2];J[b+60>>2]=e;e=J[a+28>>2];J[b+48>>2]=J[a+24>>2];J[b+52>>2]=e;e=J[a+20>>2];J[b+40>>2]=J[a+16>>2];J[b+44>>2]=e;e=J[a+12>>2];J[b+32>>2]=J[a+8>>2];J[b+36>>2]=e;e=J[a+4>>2];J[b+24>>2]=J[a>>2];J[b+28>>2]=e}J[b+68>>2]=0;d=b+24|0;c=J[d+28>>2];e=J[194306]&1?1:5;a=J[d>>2];if(!a)a=J[d+32>>2];j=Ab[a|0](c,0,e)|0;J[b+72>>2]=j; -b:{if(!j)break b;c:{d:{e:{f:{if(_e(d,j,0,0,2))break f;c=mi(d,j);d=zb;m=d;k=Qb(1028);if(!k)break f;g:{h:{if(!d&c>>>0<5)break h;e=!d&c>>>0>=65535|(d|0)!=0;n=e?65535:c;l=e?0:d;i=4;while(1){g=b+24|0;e=j;a=m;d=i+1024|0;f=d>>>0<1024?f+1|0:f;o=(f|0)==(l|0)&d>>>0>>0|f>>>0>>0;h=o;i=h?d:n;d=c-i|0;f=h?f:l;a=a-(f+(c>>>0>>0)|0)|0;h=a;if(_e(g,e,d,a,0))break h;e=!f&i>>>0>=1028|f?1028:i;if((Ab[J[b+28>>2]](J[b+52>>2],j,k,e)|0)!=(e|0))break h;i:{if(e>>>0<4)break i;a=e-3|0;g=e-4|0;while(1){j:{e=a;a=g;g=k+a| -0;if(!(K[g|0]!=80|K[e+k|0]!=75|K[g+2|0]!=6))if(K[g+3|0]==7)break j;g=a-1|0;if((a|0)>0)continue;break i}break}e=h;h=a;a=a+d|0;e=h>>>0>a>>>0?e+1|0:e;if(a|e)break g}if(o)continue;break}}Kb(k);break f}Kb(k);c=b+24|0;if(_e(c,j,a,e,0))break f;if(de(c,j,b))break f;if(de(c,j,b)|J[b>>2])break f;f=b+264|0;if(mh(c,j,f))break f;if(de(c,j,b)|J[b>>2]!=1)break f;a=J[b+268>>2];m=a;e=J[b+264>>2];if(_e(c,j,e,a,0))break f;if(!(a|e)|(de(c,j,b)|J[b>>2]!=101075792))break f;J[b+256>>2]=1;h=_e(c,J[b+72>>2],e,a,0);d=de(c, -J[b+72>>2],b+20|0);a=mh(c,J[b+72>>2],b);c=-1;i=J[b+72>>2];k:{if((Ab[J[b+28>>2]](J[b+52>>2],i,f,1)|0)!=1)if(Ab[J[b+48>>2]](J[b+52>>2],i)|0)break k;if((Ab[J[b+28>>2]](J[b+52>>2],i,b+264|0,1)|0)!=1)if(Ab[J[b+48>>2]](J[b+52>>2],i)|0)break k;c=h|(a|d)?-1:0}d=J[b+72>>2];l:{if((Ab[J[b+28>>2]](J[b+52>>2],d,b+264|0,1)|0)!=1){a=-1;if(Ab[J[b+48>>2]](J[b+52>>2],d)|0)break l}if((Ab[J[b+28>>2]](J[b+52>>2],d,b+264|0,1)|0)!=1){a=-1;if(Ab[J[b+48>>2]](J[b+52>>2],d)|0)break l}a=c}c=b+24|0;p=de(c,J[b+72>>2],b+16|0); -k=de(c,J[b+72>>2],b+12|0);l=mh(c,J[b+72>>2],b+80|0);o=mh(c,J[b+72>>2],b+264|0);j=J[b+80>>2];n=J[b+84>>2];g=J[b+264>>2];i=J[b+268>>2];f=J[b+16>>2];h=J[b+12>>2];d=mh(c,J[b+72>>2],b+136|0);c=mh(c,J[b+72>>2],b+144|0);J[b+88>>2]=0;g=c|d?-1:(g|0)!=(j|0)|(i|0)!=(n|0)?-103:f|h?-103:l|o|(k|p)?-1:a;break e}e=0;m=0;c=b+24|0;l=J[b+72>>2];a=-1;m:{if(_e(c,l,0,0,2))break m;h=mi(c,l);d=zb;j=d;q=Qb(1028);a=-1;if(!q)break m;n:{o:{if(!d&h>>>0<5)break o;c=!d&h>>>0>=65535|(d|0)!=0;o=c?65535:h;r=c?0:d;i=4;f=0;while(1){g= -b+24|0;c=l;a=j;d=i+1024|0;f=d>>>0<1024?f+1|0:f;i=d;k=(f|0)==(r|0)&d>>>0>>0|f>>>0>>0;d=k;i=d?i:o;n=h-i|0;f=d?f:r;a=a-(f+(i>>>0>h>>>0)|0)|0;d=a;if(_e(g,c,n,a,0))break o;c=!f&i>>>0>=1028|f?1028:i;if((Ab[J[b+28>>2]](J[b+52>>2],l,q,c)|0)!=(c|0))break o;p:{if(c>>>0<4)break p;a=c-3|0;g=c-4|0;while(1){q:{c=a;a=g;g=q+a|0;if(!(K[g|0]!=80|K[c+q|0]!=75|K[g+2|0]!=5))if(K[g+3|0]==6)break q;g=a-1|0;if((a|0)>0)continue;break p}break}c=a+n|0;d=c>>>0>>0?d+1|0:d;a=d;if(c|a)break n}if(k)continue;break}}Kb(q); -a=-1;break m}Kb(q);e=c;m=a;a=0}g=0;J[b+256>>2]=0;c=b+24|0;d=_e(c,J[b+72>>2],e,m,0);c=de(c,J[b+72>>2],b+20|0);r:{s:{h=J[b+72>>2];if((Ab[J[b+28>>2]](J[b+52>>2],h,b+264|0,1)|0)==1){g=K[b+264|0];break s}if(!(Ab[J[b+48>>2]](J[b+52>>2],h)|0))break s;J[b+16>>2]=0;c=-1;break r}c=c|d?-1:a;if((Ab[J[b+28>>2]](J[b+52>>2],h,b+264|0,1)|0)==1){p=K[b+264|0]<<8|g;J[b+16>>2]=p;break r}a=Ab[J[b+48>>2]](J[b+52>>2],h)|0;p=a?0:P(g,257);J[b+16>>2]=p;c=a?-1:c}a=J[b+72>>2];t:{u:{if((Ab[J[b+28>>2]](J[b+52>>2],a,b+264|0,1)| -0)==1){g=K[b+264|0];break u}d=-1;g=0;h=0;if(Ab[J[b+48>>2]](J[b+52>>2],a)|0)break t}if((Ab[J[b+28>>2]](J[b+52>>2],a,b+264|0,1)|0)==1){d=c;h=K[b+264|0]<<8|g;break t}a=Ab[J[b+48>>2]](J[b+52>>2],a)|0;d=a?-1:c;h=a?0:P(g,257)}f=J[b+72>>2];v:{w:{if((Ab[J[b+28>>2]](J[b+52>>2],f,b+264|0,1)|0)==1){a=K[b+264|0];break w}c=-1;a=0;if(Ab[J[b+48>>2]](J[b+52>>2],f)|0)break v}if((Ab[J[b+28>>2]](J[b+52>>2],f,b+264|0,1)|0)==1){c=d;a=K[b+264|0]<<8|a;break v}c=d;d=Ab[J[b+48>>2]](J[b+52>>2],f)|0;c=d?-1:c;a=d?0:P(a,257)}J[b+ -80>>2]=a;J[b+84>>2]=0;x:{y:{d=J[b+72>>2];z:{if((Ab[J[b+28>>2]](J[b+52>>2],d,b+264|0,1)|0)==1){a=K[b+264|0];break z}if(Ab[J[b+48>>2]](J[b+52>>2],d)|0)break y;a=0}if((Ab[J[b+28>>2]](J[b+52>>2],d,b+264|0,1)|0)==1){a=a|K[b+264|0]<<8;J[b+20>>2]=a;break x}d=Ab[J[b+48>>2]](J[b+52>>2],d)|0;a=d?0:P(a,257);J[b+20>>2]=a;c=d?-1:c;break x}a=0;J[b+20>>2]=0;c=-1}d=J[b+80>>2];n=J[b+84>>2];g=de(b+24|0,J[b+72>>2],b+20|0);J[b+136>>2]=J[b+20>>2];J[b+140>>2]=0;i=de(b+24|0,J[b+72>>2],b+20|0);J[b+144>>2]=J[b+20>>2];J[b+ -148>>2]=0;j=J[b+72>>2];A:{if((Ab[J[b+28>>2]](J[b+52>>2],j,b+264|0,1)|0)==1){f=K[b+264|0];break A}if(Ab[J[b+48>>2]](J[b+52>>2],j)|0)break d;f=0}g=g|i?-1:(a|0)!=(d|0)|n?-103:h|p?-103:c;if((Ab[J[b+28>>2]](J[b+52>>2],j,b+264|0,1)|0)==1){J[b+88>>2]=f|K[b+264|0]<<8;break e}a=Ab[J[b+48>>2]](J[b+52>>2],j)|0;J[b+88>>2]=a?0:P(f,257);if(a)break c}a=J[b+144>>2];c=a+J[b+136>>2]|0;d=J[b+140>>2]+J[b+148>>2]|0;d=a>>>0>c>>>0?d+1|0:d;a=c>>>0>e>>>0;if(g|((d|0)==(m|0)&a|d>>>0>m>>>0))break c;J[b+248>>2]=0;J[b+252>>2]= -0;J[b+128>>2]=e;J[b+132>>2]=m;J[b+96>>2]=e-c;J[b+100>>2]=m-(a+d|0);a=Qb(240);if(!a)break b;s=Mb(a,b+24|0,240);a=s;J[a+80>>2]=0;J[a+84>>2]=0;e=J[a+124>>2];J[a+88>>2]=J[a+120>>2];J[a+92>>2]=e;t=a,u=!Gs(a,a+128|0,a+216|0,0,0),J[t+96>>2]=u;J[a+100>>2]=0;break b}J[b+88>>2]=0}Ab[J[b+44>>2]](J[b+52>>2],J[b+72>>2])|0}xb=b+272|0;return s}function tt(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;a:{g=J[b+12>>2];d=J[b+4>>2];if(g>>>0>>0)break a;h=J[b+8>>2];if(h-a>>>0<14)break a;c=K[a+4|0]| -K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;if(g>>>0>>0)break a;f=h-c|0;c=K[a+2|0]|K[a+3|0]<<8;c=P((c<<8|c>>>8)&65535,6);if(f>>>0>>0)break a;e=J[b+16>>2]-c|0;J[b+16>>2]=e;if((e|0)<=0)break a;c=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;if(g>>>0>>0)break a;f=h-c|0;c=K[a+12|0]|K[a+13|0]<<8;c=((c<<8|c>>>8)&65535)<<2;if(f>>>0>>0)break a;c=e-c|0;J[b+16>>2]=c;l=1;if((c|0)<=0)break a;c=K[a| -0]|K[a+1|0]<<8;b:{if(!c)break b;if((c|0)!=256)break a;h=a+14|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-h>>>0<4|K[h|0]&128)break a;d=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);c:{if(!d)break c;c=0;j=J[b+12>>2];g=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0;e=J[b+4>>2];d:{if(j>>>0>>0)break d;f=J[b+8>>2];if(f-g>>>0<4)break d;d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);d=Kpa(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24),0,6,0);if(zb)break d;i=g+4|0;if(j>>>0>>0|d>>>0>f-i>>>0)break d;d=J[b+ -16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break d;c=1;d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);if(!d)break d;c=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);j=c>>>0<=1?1:c;d=0;e:{while(1){i=J[b+12>>2];c=g+P(d,6)|0;e=c+4|0;f=J[b+4>>2];if(i>>>0>>0)break e;k=J[b+8>>2];if(k-e>>>0<6)break e;c=c+6|0;if(i>>>0>>0|k-c>>>0<4|K[c|0]&128)break e;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);f:{if(!e)break f;f=J[b+24>>2];g:{if((f|0)>63)break g;f=f+1|0;J[b+24>>2]=f;if(!f)break g;e=Vg(g+(e<<24|(e&65280)<< -8|(e>>>8&65280|e>>>24))|0,b);J[b+24>>2]=J[b+24>>2]-1;if(e)break f}e=J[b+32>>2];if(e>>>0>31)break e;J[b+32>>2]=e+1;if(!K[b+28|0])break e;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0}c=1;d=d+1|0;if((j|0)!=(d|0))continue;break}break d}c=0}if(c)break c;c=J[b+32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;if(!K[b+28|0])break a;H[h|0]=0;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=0}j=J[b+12>>2];h=a+18|0;e=J[b+4>>2];if(j>>>0>>0)break a;f=J[b+8>>2];if(K[h|0]&128|f-h>>>0<4)break a;d=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3| -0]<<24);h:{if(!d)break h;c=0;g=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0;i:{if(j>>>0>>0|f-g>>>0<4)break i;d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(d>>>0>1073741823)break i;i=g+4|0;if(j>>>0>>0)break i;d=d<<2;if(d>>>0>f-i>>>0)break i;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break i;c=1;d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);if(!d)break i;c=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);j=c>>>0<=1?1:c;d=0;while(1){c=0;e=(g+(d<<2)| -0)+4|0;if(M[b+12>>2]>2]>>>0)break i;if(J[b+8>>2]-e>>>0<4)break i;if(K[e|0]&128)break i;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);j:{if(!c)break j;f=J[b+24>>2];k:{if((f|0)>63)break k;f=f+1|0;J[b+24>>2]=f;if(!f)break k;c=Vg(g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0,b);J[b+24>>2]=J[b+24>>2]-1;if(c)break j}c=0;f=J[b+32>>2];if(f>>>0>31)break i;J[b+32>>2]=f+1;if(!K[b+28|0])break i;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0}c=1;d=d+1|0;if((j|0)!=(d|0))continue;break}}if(c)break h;c=J[b+ -32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;if(!K[b+28|0])break a;H[h|0]=0;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=0}f=J[b+12>>2];g=a+22|0;e=J[b+4>>2];if(f>>>0>>0)break a;i=J[b+8>>2];if(K[g|0]&128|i-g>>>0<4)break a;c=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);l:{if(!c)break l;d=0;j=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;m:{if(f>>>0>>0|i-j>>>0<5)break m;h=j+1|0;if(f>>>0>>0|i-h>>>0<4)break m;c=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);c=Kpa(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24), -0,7,0);if(zb)break m;k=j+5|0;if(f>>>0>>0|c>>>0>i-k>>>0)break m;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break m;d=1;c=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);if(!c)break m;c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);k=c>>>0<=1?1:c;c=0;while(1){d=0;m=J[b+12>>2];e=(h+P(c,7)|0)+4|0;n=J[b+4>>2];f=n;n:{if(m>>>0>>0)break n;i=J[b+8>>2];if(i-e>>>0<7)break n;o=e+4|0;if(m>>>0>>0)break n;if(i-o>>>0<3)break n;d=1;f=K[e+6|0]|(K[e+5|0]<<8|K[e+4|0]<<16);o:{if(!f)break o;f=f+j|0;p:{if(f-n>>> -0>m>>>0|(f|0)==(i|0))break p;i=8;q:switch(K[f|0]-1|0){case 1:i=12;break;case 0:break q;default:break o}if(M[b+12>>2]>2]>>>0)break p;if(J[b+8>>2]-f>>>0>i>>>0)break o}d=0;f=J[b+32>>2];if(f>>>0>31)break n;J[b+32>>2]=f+1;if(!K[b+28|0])break o;H[e+6|0]=0;H[e+4|0]=0;H[e+5|0]=0;d=1}}if(!d)break m;c=c+1|0;if((k|0)!=(c|0))continue;break}}if(d)break l;c=J[b+32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;if(!K[b+28|0])break a;H[g|0]=0;H[g+1|0]=0;H[g+2|0]=0;H[g+3|0]=0}c=a+26|0;if(M[b+12>>2]>2]>>> -0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break a;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);r:{if(!d)break r;if(si((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0,b))break r;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0}c=a+30|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break a;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(!d)break b;if(yi((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0,b))break b;a=J[b+32>>2];if(a>>> -0>31)break a;J[b+32>>2]=a+1;l=0;if(!K[b+28|0])break b;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;l=1}return l}return 0}function Ac(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;h=J[a+68>>2];h=d>>>0>h>>>0?h:d;l=h-c|0;a:{if(!(!e|f)&l>>>0<2)break a;i=J[a+144>>2]|32;J[a+144>>2]=i;b:{c:{d:{e:{f:{g:{if(!(K[a+62|0]?f:0)){if(!e){if(c>>>0>=h>>>0)break a;f=(c^-1)+h|0;e=J[a+80>>2];a=l&3;if(a){d=0;while(1){g=e+P(c,20)|0;J[g+4>>2]=J[g+4>>2]|b;c=c+1|0;d=d+1|0;if((a| -0)!=(d|0))continue;break}}if(f>>>0<3)break a;while(1){a=e+P(c,20)|0;J[a+4>>2]=J[a+4>>2]|b;J[a+24>>2]=J[a+24>>2]|b;J[a+44>>2]=J[a+44>>2]|b;a=a- -64|0;J[a>>2]=J[a>>2]|b;c=c+4|0;if((h|0)!=(c|0))continue;break}break a}if((c|0)==(h|0))break a;e=J[a+80>>2];k=J[a+20>>2];if((k|0)!=2)break g;d=-1;if(c>>>0>=h>>>0)break c;f=c;if((c^-1)+h>>>0>=3){o=l&-4;while(1){j=e+P(f,20)|0;n=J[j+8>>2];d=d>>>0>>0?d:n;n=J[j+28>>2];d=d>>>0>>0?d:n;n=J[j+48>>2];d=d>>>0>>0?d:n;j=J[j+68>>2];d=d>>>0>>0?d:j;f=f+4|0;g=g+ -4|0;if((o|0)!=(g|0))continue;break}}j=l&3;if(j){g=0;while(1){o=J[(e+P(f,20)|0)+8>>2];d=d>>>0>>0?d:o;f=f+1|0;g=g+1|0;if((j|0)!=(g|0))continue;break}}if((k|0)==2)break c;break d}if(!e){e=J[a+72>>2];h:{if(e>>>0<=c>>>0)break h;g=e+(c^-1)|0;f=J[a+84>>2];i=e-c&3;if(i){d=0;while(1){l=f+P(c,20)|0;J[l+4>>2]=J[l+4>>2]|b;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if(g>>>0<=2)break h;while(1){d=f+P(c,20)|0;J[d+4>>2]=J[d+4>>2]|b;J[d+24>>2]=J[d+24>>2]|b;J[d+44>>2]=J[d+44>>2]|b;d=d- -64|0;J[d>>2]=J[d>>2]| -b;c=c+4|0;if((e|0)!=(c|0))continue;break}}c=J[a+64>>2];if(h>>>0<=c>>>0)break a;f=(c^-1)+h|0;e=J[a+80>>2];a=h-c&3;if(a){d=0;while(1){g=e+P(c,20)|0;J[g+4>>2]=J[g+4>>2]|b;c=c+1|0;d=d+1|0;if((a|0)!=(d|0))continue;break}}if(f>>>0<3)break a;while(1){a=e+P(c,20)|0;J[a+4>>2]=J[a+4>>2]|b;J[a+24>>2]=J[a+24>>2]|b;J[a+44>>2]=J[a+44>>2]|b;a=a- -64|0;J[a>>2]=J[a>>2]|b;c=c+4|0;if((h|0)!=(c|0))continue;break}break a}l=J[a+80>>2];d=-1;f=J[a+64>>2];o=(h|0)==(f|0);if(o)break e;if(J[a+20>>2]!=2)break f;if(f>>>0>=h>>> -0)break e;g=h-f|0;k=g&3;e=f;if((e^-1)+h>>>0>=3){n=g&-4;g=0;while(1){j=l+P(e,20)|0;m=J[j+8>>2];d=d>>>0>>0?d:m;m=J[j+28>>2];d=d>>>0>>0?d:m;m=J[j+48>>2];d=d>>>0>>0?d:m;j=J[j+68>>2];d=d>>>0>>0?d:j;e=e+4|0;g=g+4|0;if((n|0)!=(g|0))continue;break}}if(!k)break e;g=0;while(1){j=J[(l+P(e,20)|0)+8>>2];d=d>>>0>>0?d:j;e=e+1|0;g=g+1|0;if((k|0)!=(g|0))continue;break}break e}d=J[(e+P(c,20)|0)+8>>2];f=J[(e+P(h,20)|0)-12>>2];d=d>>>0>>0?d:f;break d}d=J[(l+P(f,20)|0)+8>>2];e=J[(l+P(h,20)|0)-12>>2]; -d=d>>>0>>0?d:e}g=J[a+72>>2];i:{if((g|0)==(c|0))break i;j=J[a+84>>2];j:{n=J[a+20>>2];k:{l:{if((n|0)==2){if(c>>>0>=g>>>0)break k;m=(c^-1)+g|0;p=g-c&3;m:{if(!p){e=c;break m}k=0;e=c;while(1){q=J[(j+P(e,20)|0)+8>>2];d=d>>>0>>0?d:q;e=e+1|0;k=k+1|0;if((p|0)!=(k|0))continue;break}}if(m>>>0>=3)while(1){k=j+P(e,20)|0;m=J[k+8>>2];d=d>>>0>>0?d:m;m=J[k+28>>2];d=d>>>0>>0?d:m;m=J[k+48>>2];d=d>>>0>>0?d:m;k=J[k+68>>2];d=d>>>0>>0?d:k;e=e+4|0;if((g|0)!=(e|0))continue;break}if((n|0)==2)break k;break l}e= -J[(j+P(c,20)|0)+8>>2];k=J[(j+P(g,20)|0)-12>>2];e=e>>>0>>0?e:k;d=d>>>0>e>>>0?e:d}k=J[(j+P(c,20)|0)+8>>2]==(d|0);e=J[(j+P(g,20)|0)-12>>2];if(k|(e|0)==(d|0))break j}if(c>>>0>=g>>>0)break i;k=c+1|0;if(g-c&1){e=j+P(c,20)|0;if(J[e+8>>2]!=(d|0)){J[a+144>>2]=i;J[e+4>>2]=J[e+4>>2]|b}c=c+1|0}if((g|0)==(k|0))break i;while(1){e=j+P(c,20)|0;if(J[e+8>>2]!=(d|0)){i=i|32;J[a+144>>2]=i;J[e+4>>2]=J[e+4>>2]|b}e=j+P(c+1|0,20)|0;if(J[e+8>>2]!=(d|0)){i=i|32;J[a+144>>2]=i;J[e+4>>2]=J[e+4>>2]|b}c=c+2|0;if((g|0)!=(c|0))continue; -break}break i}if(!k){if(c>>>0>=g>>>0)break i;while(1){k=j+P(c,20)|0;if((e|0)==J[k+8>>2])break i;J[a+144>>2]=i;J[k+4>>2]=J[k+4>>2]|b;c=c+1|0;if((g|0)!=(c|0))continue;break}break i}if(c>>>0>=g>>>0)break i;while(1){e=j+P(g,20)|0;if(J[e-12>>2]==(d|0))break i;J[a+144>>2]=i;e=e-16|0;J[e>>2]=J[e>>2]|b;g=g-1|0;if(g>>>0>c>>>0)continue;break}}if(o)break a;n:{if(J[a+20>>2]!=2){e=J[(l+P(f,20)|0)+8>>2]==(d|0);c=J[(l+P(h,20)|0)-12>>2];if(e|(c|0)==(d|0))break n}if(f>>>0>=h>>>0)break a;e=f+1|0;if(h-f&1){c=l+P(f, -20)|0;if(J[c+8>>2]!=(d|0)){i=i|32;J[a+144>>2]=i;J[c+4>>2]=J[c+4>>2]|b}f=f+1|0}if((e|0)==(h|0))break a;while(1){c=l+P(f,20)|0;if(J[c+8>>2]!=(d|0)){i=i|32;J[a+144>>2]=i;J[c+4>>2]=J[c+4>>2]|b}c=l+P(f+1|0,20)|0;if(J[c+8>>2]!=(d|0)){i=i|32;J[a+144>>2]=i;J[c+4>>2]=J[c+4>>2]|b}f=f+2|0;if((h|0)!=(f|0))continue;break}break a}if(!e){if(f>>>0>=h>>>0)break a;e=i|32;while(1){d=l+P(f,20)|0;if((c|0)==J[d+8>>2])break a;J[a+144>>2]=e;J[d+4>>2]=J[d+4>>2]|b;f=f+1|0;if((h|0)!=(f|0))continue;break}break a}if(f>>>0>=h>>> -0)break a;c=i|32;while(1){e=l+P(h,20)|0;if(J[e-12>>2]==(d|0))break a;J[a+144>>2]=c;e=e-16|0;J[e>>2]=J[e>>2]|b;h=h-1|0;if(h>>>0>f>>>0)continue;break}break a}g=J[(e+P(c,20)|0)+8>>2]==(d|0);f=J[(e+P(h,20)|0)-12>>2];if(g|(f|0)==(d|0))break b}if(c>>>0>=h>>>0)break a;g=c+1|0;if(l&1){f=e+P(c,20)|0;if(J[f+8>>2]!=(d|0)){J[a+144>>2]=i;J[f+4>>2]=J[f+4>>2]|b}c=c+1|0}if((h|0)==(g|0))break a;while(1){f=e+P(c,20)|0;if(J[f+8>>2]!=(d|0)){i=i|32;J[a+144>>2]=i;J[f+4>>2]=J[f+4>>2]|b}f=e+P(c+1|0,20)|0;if(J[f+8>>2]!=(d| -0)){i=i|32;J[a+144>>2]=i;J[f+4>>2]=J[f+4>>2]|b}c=c+2|0;if((h|0)!=(c|0))continue;break}break a}if(!g){if(c>>>0>=h>>>0)break a;while(1){d=e+P(c,20)|0;if((f|0)==J[d+8>>2])break a;J[a+144>>2]=i;J[d+4>>2]=J[d+4>>2]|b;c=c+1|0;if((h|0)!=(c|0))continue;break}break a}if(c>>>0>=h>>>0)break a;while(1){f=e+P(h,20)|0;if(J[f-12>>2]==(d|0))break a;J[a+144>>2]=i;f=f-16|0;J[f>>2]=J[f>>2]|b;h=h-1|0;if(h>>>0>c>>>0)continue;break}}}function pn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-160|0;xb=d;a:{b:{c:{if((c| -0)!=255){if(c)break c;b=Pb(32);J[a>>2]=b;J[a+4>>2]=4;J[a+8>>2]=-2147483640;a=J[105225];J[b+8>>2]=J[105224];J[b+12>>2]=a;a=J[105223];J[b>>2]=J[105222];J[b+4>>2]=a;J[b+16>>2]=0;break a}c=d- -64|0;Hp(c,b&255);J[195395]=0;c=aa(1954,c|0,0,425028)|0;e=J[195395];J[195395]=0;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((e|0)!=1){J[d+88>>2]=J[c+8>>2];e=J[c+4>>2];J[d+80>>2]=J[c>>2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=ca(1858,d+80|0,422196)|0;e=J[195395];J[195395]=0;if((e|0)==1)break q; -J[d+104>>2]=J[c+8>>2];e=J[c+4>>2];J[d+96>>2]=J[c>>2];J[d+100>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=d+48|0;$(2102,c|0,b>>>8&255);e=J[195395];J[195395]=0;if((e|0)==1)break p;J[195395]=0;g=c;c=K[d+59|0];e=c<<24>>24<0;c=aa(1864,d+96|0,(e?J[d+48>>2]:g)|0,(e?J[d+52>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break o;J[d+120>>2]=J[c+8>>2];e=J[c+4>>2];J[d+112>>2]=J[c>>2];J[d+116>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=ca(1858,d+112|0,422196)|0;e=J[195395];J[195395]=0;if((e| -0)==1)break n;J[d+136>>2]=J[c+8>>2];e=J[c+4>>2];J[d+128>>2]=J[c>>2];J[d+132>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=d+36|0;$(2102,c|0,b>>>16&255);b=J[195395];J[195395]=0;if((b|0)==1)break m;J[195395]=0;e=c;b=K[d+47|0];c=b<<24>>24<0;b=aa(1864,d+128|0,(c?J[d+36>>2]:e)|0,(c?J[d+40>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break l;J[d+152>>2]=J[b+8>>2];c=J[b+4>>2];J[d+144>>2]=J[b>>2];J[d+148>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+144|0,41);b=J[195395];J[195395]= -0;if((b|0)==1)break k;b=J[d+148>>2];J[a>>2]=J[d+144>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+152>>2];J[d+152>>2]=0;J[d+144>>2]=0;J[d+148>>2]=0;if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+139|0]<0)Kb(J[d+128>>2]);if(H[d+123|0]<0)Kb(J[d+112>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+75|0]>=0)break a;Kb(J[d+64>>2]);break a}c=Z()|0;break d}c=Z()|0;break e}c=Z()|0;break f}c=Z()|0;break g}c=Z()|0;break h}c=Z()|0;break i}c=Z()|0;break j}c=Z()|0;if(H[d+155|0]>=0)break j; -Kb(J[d+144>>2])}if(H[d+47|0]>=0)break i;Kb(J[d+36>>2])}if(H[d+139|0]>=0)break h;Kb(J[d+128>>2])}if(H[d+123|0]>=0)break g;Kb(J[d+112>>2])}if(H[d+59|0]>=0)break f;Kb(J[d+48>>2])}if(H[d+107|0]>=0)break e;Kb(J[d+96>>2])}if(H[d+91|0]>=0)break d;Kb(J[d+80>>2])}if(H[d+75|0]>=0)break b;Kb(J[d+64>>2]);ba(c|0);B()}e=d+36|0;Hp(e,b&255);J[195395]=0;e=aa(1954,e|0,0,425048)|0;f=J[195395];J[195395]=0;r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{if((f|0)!=1){J[d+56>>2]=J[e+8>>2];f=J[e+4>>2];J[d+48>> -2]=J[e>>2];J[d+52>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;e=ca(1858,d+48|0,422196)|0;f=J[195395];J[195395]=0;if((f|0)==1)break K;J[d+72>>2]=J[e+8>>2];f=J[e+4>>2];J[d+64>>2]=J[e>>2];J[d+68>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;e=d+24|0;$(2102,e|0,b>>>8&255);f=J[195395];J[195395]=0;if((f|0)==1)break J;J[195395]=0;g=e;e=K[d+35|0];f=e<<24>>24<0;e=aa(1864,d- -64|0,(f?J[d+24>>2]:g)|0,(f?J[d+28>>2]:e)|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break I;J[d+88>>2]=J[e+8>>2];f=J[e+4>> -2];J[d+80>>2]=J[e>>2];J[d+84>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;e=ca(1858,d+80|0,422196)|0;f=J[195395];J[195395]=0;if((f|0)==1)break H;J[d+104>>2]=J[e+8>>2];f=J[e+4>>2];J[d+96>>2]=J[e>>2];J[d+100>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[195395]=0;e=d+12|0;$(2102,e|0,b>>>16&255);b=J[195395];J[195395]=0;if((b|0)==1)break G;J[195395]=0;g=e;b=K[d+23|0];e=b<<24>>24<0;b=aa(1864,d+96|0,(e?J[d+12>>2]:g)|0,(e?J[d+16>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break F;J[d+120>>2]=J[b+ -8>>2];e=J[b+4>>2];J[d+112>>2]=J[b>>2];J[d+116>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,d+112|0,422196)|0;e=J[195395];J[195395]=0;if((e|0)==1)break E;J[d+136>>2]=J[b+8>>2];e=J[b+4>>2];J[d+128>>2]=J[b>>2];J[d+132>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;da(1863,d|0,+(+(c>>>0)/255),3);b=J[195395];J[195395]=0;if((b|0)==1)break D;J[195395]=0;b=K[d+11|0];c=b<<24>>24<0;b=aa(1864,d+128|0,(c?J[d>>2]:d)|0,(c?J[d+4>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break C;J[d+152>> -2]=J[b+8>>2];c=J[b+4>>2];J[d+144>>2]=J[b>>2];J[d+148>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,d+144|0,41);b=J[195395];J[195395]=0;if((b|0)==1)break B;b=J[d+148>>2];J[a>>2]=J[d+144>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+152>>2];J[d+152>>2]=0;J[d+144>>2]=0;J[d+148>>2]=0;if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+139|0]<0)Kb(J[d+128>>2]);if(H[d+123|0]<0)Kb(J[d+112>>2]);if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);if(H[d+75|0]< -0)Kb(J[d+64>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+47|0]>=0)break a;Kb(J[d+36>>2]);break a}c=Z()|0;break r}c=Z()|0;break s}c=Z()|0;break t}c=Z()|0;break u}c=Z()|0;break v}c=Z()|0;break w}c=Z()|0;break x}c=Z()|0;break y}c=Z()|0;break z}c=Z()|0;break A}c=Z()|0;if(H[d+155|0]>=0)break A;Kb(J[d+144>>2])}if(H[d+11|0]>=0)break z;Kb(J[d>>2])}if(H[d+139|0]>=0)break y;Kb(J[d+128>>2])}if(H[d+123|0]>=0)break x;Kb(J[d+112>>2])}if(H[d+23|0]>=0)break w;Kb(J[d+12>>2])}if(H[d+107|0]>=0)break v;Kb(J[d+96>>2])}if(H[d+ -91|0]>=0)break u;Kb(J[d+80>>2])}if(H[d+35|0]>=0)break t;Kb(J[d+24>>2])}if(H[d+75|0]>=0)break s;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break r;Kb(J[d+48>>2])}if(H[d+47|0]>=0)break b;Kb(J[d+36>>2])}ba(c|0);B()}xb=d+160|0}function gK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=xb-144|0;xb=f;k=J[b+100>>2];g=J[b+104>>2];d=0;J[b+132>>2]=0;e=bc(g,0);J[f+140>>2]=e;h=c>>31;l=(h^c)-h&65535;a:{if(e)break a;e=Nc(g,103408,f+136|0);J[f+140>>2]=e;if(e)break a;J[f+ -140>>2]=2;b:{c:{if(L[f+136>>1]!=23117)break c;e=bc(g,L[f+138>>1]);J[f+140>>2]=e;if(e)break a;e=Nc(g,103440,f+130|0);J[f+140>>2]=e;if(e)break a;e=L[f+130>>1];J[f+140>>2]=2;d:{e:{f:{g:switch(e-17742|0){case 0:e=bc(g,L[f+132>>1]+L[f+138>>1]|0);J[f+140>>2]=e;if(e)break a;e=Tc(g,L[f+134>>1]-L[f+132>>1]|0);J[f+140>>2]=e;if(e)break a;j=Vi(g);if(j>>>0>16)break b;i=Vi(g);h:{if(i)while(1){h=Vi(g);e=((J[g+8>>2]+J[g+32>>2]|0)-J[g+36>>2]|0)+4|0;if((i&65535)==32776)break h;J[g+32>>2]=(J[g+32>>2]+P(h,12)|0)+4;i= -Vi(g);if(i)continue;break}h=0;e=0}Ec(g);if(!(e?h:0)){J[f+140>>2]=3;break a}if(M[g+4>>2]>>0){J[f+140>>2]=3;break a}J[b>>2]=h;if((c|0)<0)break a;if(h>>>0<=l>>>0){J[f+140>>2]=6;break a}r=b,s=tc(k,172,f+140|0),J[r+132>>2]=s;if(J[f+140>>2])break a;e=bc(g,e+P(l,12)|0);J[f+140>>2]=e;if(e)break c;e=Tc(g,12);J[f+140>>2]=e;if(e)break c;e=Vi(g);J[J[b+132>>2]>>2]=e<>2]+164>>2]=e<>2]=J[g+32>>2]+8;Ec(g);e=gp(J[b+132>>2],g);J[f+140>>2]=e;i=!e;break f;case 2:break g;default:break f}e= -bc(g,L[f+138>>1]);J[f+140>>2]=e;if(e)break a;e=Nc(g,103472,f+108|0);J[f+140>>2]=e;if(e)break a;i:{if(!(J[f+108>>2]!=17744|L[f+112>>1]!=332|L[f+116>>1]!=224))if(L[f+118>>1]==267)break i;J[f+140>>2]=3;break a}h=0;J[b>>2]=0;if(!L[f+114>>1])break e;while(1){e=Nc(g,103536,f+88|0);J[f+140>>2]=e;if(e)break a;if(J[f+120>>2]!=J[f+96>>2]){h=h+1|0;if(L[f+114>>1]<=(h&65535)>>>0)break e;continue}break}e=bc(g,J[f+104>>2]);J[f+140>>2]=e;if(e)break a;e=Nc(g,103568,f+72|0);J[f+140>>2]=e;if(e)break a;if(L[f+86>>1]!= -(0-L[f+84>>1]|0)){m=J[f+104>>2];o=m+16|0;h=0;while(1){e=bc(g,(h<<3)+o|0);J[f+140>>2]=e;if(e)break a;e=Nc(g,103600,f+32|0);J[f+140>>2]=e;if(e)break a;e=J[f+36>>2];if((e|0)>=0){J[f+140>>2]=3;break a}e=e&2147483647;J[f+36>>2]=e;e=e+J[f+104>>2]|0;h=bc(g,e);J[f+140>>2]=h;if(h)break a;h=Nc(g,103568,f+56|0);J[f+140>>2]=h;if(h)break a;if(L[f+70>>1]!=(0-L[f+68>>1]|0)){p=e+16|0;h=0;j=0;while(1){e=bc(g,(h<<3)+p|0);J[f+140>>2]=e;if(e)break a;e=Nc(g,103600,f+24|0);J[f+140>>2]=e;if(e)break a;e=J[f+28>>2];if((e| -0)>=0){J[f+140>>2]=3;break a}e=e&2147483647;J[f+28>>2]=e;e=e+J[f+104>>2]|0;h=bc(g,e);J[f+140>>2]=h;if(h)break a;h=Nc(g,103568,f+40|0);J[f+140>>2]=h;if(h)break a;if(L[f+54>>1]!=(0-L[f+52>>1]|0)){q=e+16|0;h=0;i=0;while(1){e=bc(g,(h<<3)+q|0);J[f+140>>2]=e;if(e)break a;e=Nc(g,103600,f+16|0);J[f+140>>2]=e;if(e)break a;if(J[f+28>>2]<0){J[f+140>>2]=3;break a}if(J[f+32>>2]==8){e=bc(g,J[f+20>>2]+m|0);J[f+140>>2]=e;if(e)break a;e=Nc(g,103616,f);J[f+140>>2]=e;if(e)break a;e=J[b>>2];if((e|0)==(l|0)){e=tc(k,172, -f+140|0);J[b+132>>2]=e;if(J[f+140>>2])break a;J[e>>2]=(J[f>>2]+J[f+104>>2]|0)-J[f+96>>2];J[e+164>>2]=J[f+4>>2];e=gp(e,g);J[f+140>>2]=e;if(e)break c;e=J[b>>2]}J[b>>2]=e+1}i=i+1|0;h=i&65535;if(h>>>0>1]+L[f+52>>1]>>>0)continue;break}}j=j+1|0;h=j&65535;if(h>>>0>1]+L[f+68>>1]>>>0)continue;break}}n=n+1|0;h=n&65535;if(h>>>0>1]+L[f+84>>1]>>>0)continue;break}}i=1}e=J[b>>2];if(!e){J[f+140>>2]=3;break a}if((e|0)>(l|0))break d;J[f+140>>2]=6;break a}J[f+140>>2]=3;break a}if(i)break a}e= -J[b+132>>2];if(!e)break a;g=J[b+100>>2];if(J[e+160>>2])rd(J[b+104>>2],e+160|0);h=J[e+168>>2];if(h)Ab[J[g+8>>2]](g,h);J[e+168>>2]=0;if(e)Ab[J[g+8>>2]](g,e);J[b+132>>2]=0;break a}J[f+140>>2]=3;Ec(g)}e=J[f+140>>2];J[f+88>>2]=e;g=(c|0)<0;j:{if(g&!e)break j;k:{l:{m:{if((e&255)==2){c=tc(k,172,f+88|0);J[b+132>>2]=c;d=J[f+88>>2];if(d)break j;J[b>>2]=1;d=0;J[c>>2]=0;J[c+164>>2]=J[a+4>>2];a=gp(c,a);J[f+88>>2]=a;if(!(a|g)){if(!l)break m;J[f+88>>2]=6;break k}if(a)break k;break j}if(e)break l}a=J[b+132>>2];if(!L[a+ -96>>1]){J[f+88>>2]=3;break k}J[b+4>>2]=l;c=J[b+8>>2];J[b+8>>2]=c|18;if(L[a+100>>1]==L[a+102>>1])J[b+8>>2]=c|22;if(K[a+86|0])J[b+12>>2]=J[b+12>>2]|1;if(L[a+90>>1]>=800)J[b+12>>2]=J[b+12>>2]|2;c=Tb(k,16,0,1,0,f+88|0);J[b+32>>2]=c;if(J[f+88>>2])break k;J[b+28>>2]=1;I[c+2>>1]=L[a+100>>1];I[c>>1]=L[a+84>>1]+L[a+96>>1];e=L[a+74>>1]<<6;J[c+4>>2]=e;d=L[a+78>>1];g=e;e=L[a+76>>1];e=e?e:72;g=hc(g,e,72)+32&-64;J[c+12>>2]=g;i=d?d:72;d=L[a+96>>1]<<6;n:{if((d|0)>=(g|0)){h=J[c+4>>2];break n}J[c+12>>2]=d;h=hc(d,72, -e);J[c+4>>2]=h}r=c,s=hc(h,i,72)+32&-64,J[r+8>>2]=s;J[f+108>>2]=b;J[f+112>>2]=0;J[f+116>>2]=0;if(K[a+92|0]==77){I[f+116>>1]=1;J[f+112>>2]=1634889070}c=zf(103356,0,f+108|0,0);J[f+88>>2]=c;if(c)break k;c=K[a+105|0];d=K[a+104|0];if(c>>>0>>0){J[f+88>>2]=3;break k}J[b+16>>2]=(c-d|0)+2;c=J[a+8>>2];d=J[a+116>>2];if(c>>>0<=d>>>0){J[f+88>>2]=3;break k}c=c-d|0;d=f+88|0;e=tc(k,c+1|0,d);J[a+168>>2]=e;if(J[f+88>>2])break k;Mb(e,J[a+160>>2]+J[a+116>>2]|0,c);H[c+J[a+168>>2]|0]=0;e=a;a=J[a+168>>2];a=Tb(k,1,c,ac(a)+ -1|0,a,d);J[e+168>>2]=a;if(J[f+88>>2])break k;J[b+24>>2]=9328;J[b+20>>2]=a;c=J[b+12>>2];a=c&1;if(c&2){if(a){J[b+24>>2]=9527;d=0;break j}J[b+24>>2]=9643;d=0;break j}d=0;if(!a)break j;J[b+24>>2]=9796;break j}d=e;if(!b)break j}a=J[b+100>>2];c=J[b+132>>2];if(c){if(J[c+160>>2])rd(J[b+104>>2],c+160|0);d=J[c+168>>2];if(d)Ab[J[a+8>>2]](a,d);J[c+168>>2]=0;if(c)Ab[J[a+8>>2]](a,c);J[b+132>>2]=0}c=J[b+32>>2];if(c)Ab[J[a+8>>2]](a,c);J[b+28>>2]=0;J[b+32>>2]=0;d=J[f+88>>2]}xb=f+144|0;return d|0}function YJ(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;d=J[a>>2];c=J[d+160>>2];a:{if(c)break a;while(1){c=J[d+48>>2];if(!c){c=169776;break a}c=ep(c);if(!c)c=169776;e=J[d+160>>2];J[d+160>>2]=e?e:c;if(!e)break a;wc(c);c=J[d+160>>2];if(!c)continue;break}}c=M[c+16>>2]<8?169776:J[c+12>>2];if(K[c|0]|K[c+1|0]<<8){d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);e=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!(!Vu(b,e)|!d)){q=e>>>0<=1?1:e;g=c+8|0;while(1){b:{if(M[b+4>>2]<=l>>> -0){J[194122]=J[42446];c=J[42445];J[194120]=J[42444];J[194121]=c;i=776480;break b}i=J[b+8>>2]+P(l,12)|0}m=0;c=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);n=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[g+8|0]|K[g+9|0]<<8|(K[g+10|0]<<16|K[g+11|0]<<24);if(c){c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);r=c>>>0<=1?1:c;s=g+16|0;while(1){h=s+P(m,12)|0;c=K[h+2|0]|K[h+3|0]<<8;e=(c<<8|c>>>8)&65535;d=K[h|0]|K[h+1|0]<<8;f=(d<<8|d>>>8)&65535;j=J[a+40>>2];c:{d:{e:{if((j|0)>0){j=j-1|0;t=J[a+44>>2];d=f;c=e;while(1){e= -c;f=d;d=0;c=j;while(1){f:{g:{o=c+d>>>1|0;k=t+(o<<4)|0;p=J[k>>2];h:{if((p|0)!=(f|0)){if((f|0)>=(p|0))break h;break g}k=J[k+4>>2];if((k|0)==(e|0))break d;if((e|0)<(k|0))break g}d=o+1|0;break f}c=o-1|0}if((c|0)>=(d|0))continue;break}if((f|0)!=3)break e;c=1;d=37;if((e|0)==3)continue;break}break e}if((d|0)!=768)break e;if((c|0)==768)break c}if(!e|(f|0)!=39)break c;c=J[a>>2];d=J[c+180>>2];i:{if(d)break i;while(1){d=J[c+48>>2];if(!d){d=169776;break i}d=Lu(d);if(!d)d=169776;f=J[c+180>>2];J[c+180>>2]=f?f: -d;if(!f)break i;wc(d);d=J[c+180>>2];if(!d)continue;break}}c=169776;e=e-1|0;d=M[d+16>>2]<12?169776:J[d+12>>2];f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(e>>>0<(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0)c=(d+(e<<2)|0)+12|0;e=K[c|0]|K[c+1|0]<<8;c=K[c+2|0]|K[c+3|0]<<8;if(!cu(Wo(d+((e<<8|e>>>8)&65535)|0,(c<<8|c>>>8)&65535),J[a+12>>2]))break c}c=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);d=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))&n;c=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<< -24);n=d|(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))}m=m+1|0;if((r|0)!=(m|0))continue;break}}e=J[a+52>>2];f=J[a+48>>2];d=J[i>>2];j=J[i+4>>2];j:{k:{if((d|0)>(j|0))break k;l:{if((d|0)>=0){c=d;j=j+1|0;if(c>>>0>=j>>>0)break k;while(1){c=((c>>>1|0)+c|0)+8|0;if(j>>>0>c>>>0)continue;break}if(c>>>0<=357913941){d=ic(J[i+8>>2],P(c,12));if(d)break l;d=J[i>>2];if(d>>>0>=c>>>0)break k}J[i>>2]=d^-1}J[194122]=J[42446];c=J[42445];J[194120]=J[42444];J[194121]=c;break j}J[i>>2]=c;J[i+8>>2]=d}c=J[i+4>>2];J[i+4>>2]=c+1; -c=J[i+8>>2]+P(c,12)|0;J[c+8>>2]=e;J[c+4>>2]=f;J[c>>2]=n}c=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);g=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+g|0;l=l+1|0;if((q|0)!=(l|0))continue;break}}return}d=J[a>>2];c=J[d+164>>2];m:{if(c)break m;while(1){c=J[d+48>>2];if(!c){c=169776;break m}c=dp(c);if(!c)c=169776;e=J[d+164>>2];J[d+164>>2]=e?e:c;if(!e)break m;wc(c);c=J[d+164>>2];if(!c)continue;break}}c=M[c+16>>2]<8?169776:J[c+12>>2];if(K[c|0]|K[c+1|0]<<8){d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<< -24);e=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!(!Vu(b,e)|!d)){q=e>>>0<=1?1:e;g=c+8|0;while(1){n:{if(M[b+4>>2]<=l>>>0){J[194122]=J[42446];c=J[42445];J[194120]=J[42444];J[194121]=c;i=776480;break n}i=J[b+8>>2]+P(l,12)|0}m=0;c=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);n=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[g+8|0]|K[g+9|0]<<8;if(c){c=(c<<8|c>>>8)&65535;r=c>>>0<=1?1:c;s=g+12|0;while(1){h=s+P(m,12)|0;c=K[h+2|0]|K[h+3|0]<<8;e=(c<<8|c>>>8)&65535;d=K[h|0]|K[h+1|0]<<8;f=(d<<8|d>>>8)&65535;j= -J[a+40>>2];o:{p:{q:{if((j|0)>0){j=j-1|0;t=J[a+44>>2];d=f;c=e;while(1){e=c;f=d;d=0;c=j;while(1){r:{s:{o=c+d>>>1|0;k=t+(o<<4)|0;p=J[k>>2];t:{if((p|0)!=(f|0)){if((f|0)>=(p|0))break t;break s}k=J[k+4>>2];if((k|0)==(e|0))break p;if((e|0)<(k|0))break s}d=o+1|0;break r}c=o-1|0}if((c|0)>=(d|0))continue;break}if((f|0)!=3)break q;c=1;d=37;if((e|0)==3)continue;break}break q}if((d|0)!=768)break q;if((c|0)==768)break o}if(!e|(f|0)!=39)break o;c=J[a>>2];d=J[c+180>>2];u:{if(d)break u;while(1){d=J[c+48>>2];if(!d){d= -169776;break u}d=Lu(d);if(!d)d=169776;f=J[c+180>>2];J[c+180>>2]=f?f:d;if(!f)break u;wc(d);d=J[c+180>>2];if(!d)continue;break}}c=169776;e=e-1|0;d=M[d+16>>2]<12?169776:J[d+12>>2];f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(e>>>0<(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0)c=(d+(e<<2)|0)+12|0;e=K[c|0]|K[c+1|0]<<8;c=K[c+2|0]|K[c+3|0]<<8;if(!cu(Wo(d+((e<<8|e>>>8)&65535)|0,(c<<8|c>>>8)&65535),J[a+12>>2]))break o}c=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);d=(c<<24|(c&65280)<<8|(c>>> -8&65280|c>>>24))&n;c=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);n=d|(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))}m=m+1|0;if((r|0)!=(m|0))continue;break}}e=J[a+52>>2];f=J[a+48>>2];d=J[i>>2];j=J[i+4>>2];v:{w:{if((d|0)>(j|0))break w;x:{if((d|0)>=0){c=d;j=j+1|0;if(c>>>0>=j>>>0)break w;while(1){c=((c>>>1|0)+c|0)+8|0;if(j>>>0>c>>>0)continue;break}if(c>>>0<=357913941){d=ic(J[i+8>>2],P(c,12));if(d)break x;d=J[i>>2];if(d>>>0>=c>>>0)break w}J[i>>2]=d^-1}J[194122]=J[42446];c=J[42445];J[194120]=J[42444];J[194121]= -c;break v}J[i>>2]=c;J[i+8>>2]=d}c=J[i+4>>2];J[i+4>>2]=c+1;c=J[i+8>>2]+P(c,12)|0;J[c+8>>2]=e;J[c+4>>2]=f;J[c>>2]=n}c=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);g=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+g|0;l=l+1|0;if((q|0)!=(l|0))continue;break}}}}function DZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=xb-160|0;xb=f;a:{b:{c:{if((e|0)!=255){if(e)break c;b=Pb(32);J[a>>2]=b;J[a+4>>2]=4;J[a+8>>2]=-2147483640;a=J[105225];J[b+8>>2]=J[105224];J[b+12>>2]=a;a=J[105223];J[b>>2]=J[105222]; -J[b+4>>2]=a;J[b+16>>2]=0;break a}e=f- -64|0;Xk(e,b);J[195395]=0;b=aa(1954,e|0,0,425028)|0;e=J[195395];J[195395]=0;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((e|0)!=1){J[f+88>>2]=J[b+8>>2];e=J[b+4>>2];J[f+80>>2]=J[b>>2];J[f+84>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+80|0,422196)|0;e=J[195395];J[195395]=0;if((e|0)==1)break q;J[f+104>>2]=J[b+8>>2];e=J[b+4>>2];J[f+96>>2]=J[b>>2];J[f+100>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=f+48|0;$(3118,b|0,c|0);c=J[195395]; -J[195395]=0;if((c|0)==1)break p;J[195395]=0;e=b;b=K[f+59|0];c=b<<24>>24<0;b=aa(1864,f+96|0,(c?J[f+48>>2]:e)|0,(c?J[f+52>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break o;J[f+120>>2]=J[b+8>>2];c=J[b+4>>2];J[f+112>>2]=J[b>>2];J[f+116>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+112|0,422196)|0;c=J[195395];J[195395]=0;if((c|0)==1)break n;J[f+136>>2]=J[b+8>>2];c=J[b+4>>2];J[f+128>>2]=J[b>>2];J[f+132>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=f+36|0;$(3118,b|0,d|0); -c=J[195395];J[195395]=0;if((c|0)==1)break m;J[195395]=0;d=b;b=K[f+47|0];c=b<<24>>24<0;b=aa(1864,f+128|0,(c?J[f+36>>2]:d)|0,(c?J[f+40>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break l;J[f+152>>2]=J[b+8>>2];c=J[b+4>>2];J[f+144>>2]=J[b>>2];J[f+148>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+144|0,41);b=J[195395];J[195395]=0;if((b|0)==1)break k;b=J[f+148>>2];J[a>>2]=J[f+144>>2];J[a+4>>2]=b;J[a+8>>2]=J[f+152>>2];J[f+152>>2]=0;J[f+144>>2]=0;J[f+148>>2]=0;if(H[f+47|0]<0)Kb(J[f+36>> -2]);if(H[f+139|0]<0)Kb(J[f+128>>2]);if(H[f+123|0]<0)Kb(J[f+112>>2]);if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+107|0]<0)Kb(J[f+96>>2]);if(H[f+91|0]<0)Kb(J[f+80>>2]);if(H[f+75|0]>=0)break a;Kb(J[f+64>>2]);break a}e=Z()|0;break d}e=Z()|0;break e}e=Z()|0;break f}e=Z()|0;break g}e=Z()|0;break h}e=Z()|0;break i}e=Z()|0;break j}e=Z()|0;if(H[f+155|0]>=0)break j;Kb(J[f+144>>2])}if(H[f+47|0]>=0)break i;Kb(J[f+36>>2])}if(H[f+139|0]>=0)break h;Kb(J[f+128>>2])}if(H[f+123|0]>=0)break g;Kb(J[f+112>>2])}if(H[f+59|0]>= -0)break f;Kb(J[f+48>>2])}if(H[f+107|0]>=0)break e;Kb(J[f+96>>2])}if(H[f+91|0]>=0)break d;Kb(J[f+80>>2])}if(H[f+75|0]>=0)break b;Kb(J[f+64>>2]);ba(e|0);B()}g=f+36|0;Xk(g,b);J[195395]=0;b=aa(1954,g|0,0,425048)|0;g=J[195395];J[195395]=0;r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{if((g|0)!=1){J[f+56>>2]=J[b+8>>2];g=J[b+4>>2];J[f+48>>2]=J[b>>2];J[f+52>>2]=g;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+48|0,422196)|0;g=J[195395];J[195395]=0;if((g|0)==1)break K;J[f+72>>2]=J[b+ -8>>2];g=J[b+4>>2];J[f+64>>2]=J[b>>2];J[f+68>>2]=g;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=f+24|0;$(3118,b|0,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break J;J[195395]=0;g=b;b=K[f+35|0];c=b<<24>>24<0;b=aa(1864,f- -64|0,(c?J[f+24>>2]:g)|0,(c?J[f+28>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break I;J[f+88>>2]=J[b+8>>2];c=J[b+4>>2];J[f+80>>2]=J[b>>2];J[f+84>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+80|0,422196)|0;c=J[195395];J[195395]=0;if((c|0)==1)break H;J[f+104>> -2]=J[b+8>>2];c=J[b+4>>2];J[f+96>>2]=J[b>>2];J[f+100>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=f+12|0;$(3118,b|0,d|0);c=J[195395];J[195395]=0;if((c|0)==1)break G;J[195395]=0;d=b;b=K[f+23|0];c=b<<24>>24<0;b=aa(1864,f+96|0,(c?J[f+12>>2]:d)|0,(c?J[f+16>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break F;J[f+120>>2]=J[b+8>>2];c=J[b+4>>2];J[f+112>>2]=J[b>>2];J[f+116>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,f+112|0,422196)|0;c=J[195395];J[195395]=0;if((c|0)==1)break E; -J[f+136>>2]=J[b+8>>2];c=J[b+4>>2];J[f+128>>2]=J[b>>2];J[f+132>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;da(1863,f|0,+(+(e>>>0)/255),3);b=J[195395];J[195395]=0;if((b|0)==1)break D;J[195395]=0;b=K[f+11|0];c=b<<24>>24<0;b=aa(1864,f+128|0,(c?J[f>>2]:f)|0,(c?J[f+4>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break C;J[f+152>>2]=J[b+8>>2];c=J[b+4>>2];J[f+144>>2]=J[b>>2];J[f+148>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,f+144|0,41);b=J[195395];J[195395]=0;if((b|0)==1)break B; -b=J[f+148>>2];J[a>>2]=J[f+144>>2];J[a+4>>2]=b;J[a+8>>2]=J[f+152>>2];J[f+152>>2]=0;J[f+144>>2]=0;J[f+148>>2]=0;if(H[f+11|0]<0)Kb(J[f>>2]);if(H[f+139|0]<0)Kb(J[f+128>>2]);if(H[f+123|0]<0)Kb(J[f+112>>2]);if(H[f+23|0]<0)Kb(J[f+12>>2]);if(H[f+107|0]<0)Kb(J[f+96>>2]);if(H[f+91|0]<0)Kb(J[f+80>>2]);if(H[f+35|0]<0)Kb(J[f+24>>2]);if(H[f+75|0]<0)Kb(J[f+64>>2]);if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+47|0]>=0)break a;Kb(J[f+36>>2]);break a}e=Z()|0;break r}e=Z()|0;break s}e=Z()|0;break t}e=Z()|0;break u}e=Z()|0; -break v}e=Z()|0;break w}e=Z()|0;break x}e=Z()|0;break y}e=Z()|0;break z}e=Z()|0;break A}e=Z()|0;if(H[f+155|0]>=0)break A;Kb(J[f+144>>2])}if(H[f+11|0]>=0)break z;Kb(J[f>>2])}if(H[f+139|0]>=0)break y;Kb(J[f+128>>2])}if(H[f+123|0]>=0)break x;Kb(J[f+112>>2])}if(H[f+23|0]>=0)break w;Kb(J[f+12>>2])}if(H[f+107|0]>=0)break v;Kb(J[f+96>>2])}if(H[f+91|0]>=0)break u;Kb(J[f+80>>2])}if(H[f+35|0]>=0)break t;Kb(J[f+24>>2])}if(H[f+75|0]>=0)break s;Kb(J[f+64>>2])}if(H[f+59|0]>=0)break r;Kb(J[f+48>>2])}if(H[f+47|0]>= -0)break b;Kb(J[f+36>>2])}ba(e|0);B()}xb=f+160|0}function RR(){var a=0,b=0,c=0;if(K[781848])return J[195461];if(K[781836])a=J[195458];else{J[195867]=0;J[195866]=770856;J[195866]=765696;J[195866]=764216;J[195395]=0;b=ca(3713,783472,30)|0;a=J[195395];J[195395]=0;a:{b:{c:{d:{e:{if((a|0)!=1){J[195395]=0;c=ca(1113,783616,228100)|0;a=J[195395];J[195395]=0;if((a|0)==1)break e;tx(b);J[195785]=0;J[195784]=770856;J[195784]=765696;J[195784]=766804;J[195395]=0;$(3714,783464,783136);a=J[195395];J[195395]=0;if((a| -0)==1)break d;J[195787]=0;J[195786]=770856;J[195786]=765696;J[195786]=766836;J[195395]=0;$(3715,783464,783144);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;nx();a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3717,783464,783152);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195793]=0;J[195792]=770856;J[195792]=765696;J[195792]=765752;J[195395]=0;$(3718,783464,783168);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195795]=0;J[195794]=770856;J[195794]=765696;J[195794]=765900;J[195395]= -0;$(3719,783464,783176);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;ja(3720);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3721,783464,783184);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195801]=0;J[195800]=770856;J[195800]=765696;J[195800]=766048;J[195395]=0;$(3722,783464,783200);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195803]=0;J[195802]=770856;J[195802]=765696;J[195802]=766280;J[195395]=0;$(3723,783464,783208);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195805]= -0;J[195804]=770856;J[195804]=765696;J[195804]=766164;J[195395]=0;$(3724,783464,783216);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195807]=0;J[195806]=770856;J[195806]=765696;J[195806]=766396;J[195395]=0;$(3725,783464,783224);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;ja(3726);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3727,783464,783232);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;ja(3728);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3729,783464, -783256);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195823]=0;J[195822]=770856;J[195822]=765696;J[195822]=766868;J[195395]=0;$(3730,783464,783288);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195825]=0;J[195824]=770856;J[195824]=765696;J[195824]=767112;J[195395]=0;$(3731,783464,783296);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195827]=0;J[195826]=770856;J[195826]=765696;J[195826]=767324;J[195395]=0;$(3732,783464,783304);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195829]=0;J[195828]=770856; -J[195828]=765696;J[195828]=767556;J[195395]=0;$(3733,783464,783312);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;J[195831]=0;J[195830]=770856;J[195830]=765696;J[195830]=768540;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3735,783464,783320);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195833]=0;J[195832]=770856;J[195832]=765696;J[195832]=768688;J[195395]=0;$(3736,783464,783328);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195835]=0;J[195834]=770856;J[195834]=765696;J[195834]= -768804;J[195395]=0;$(3737,783464,783336);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195837]=0;J[195836]=770856;J[195836]=765696;J[195836]=768920;J[195395]=0;$(3738,783464,783344);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;J[195839]=0;J[195838]=770856;J[195838]=765696;J[195838]=769036;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3740,783464,783352);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;J[195841]=0;J[195840]=770856;J[195840]=765696;J[195840]=769200;a=J[195395]; -J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3742,783464,783360);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;J[195843]=0;J[195842]=770856;J[195842]=765696;J[195842]=769364;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3744,783464,783368);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;J[195845]=0;J[195844]=770856;J[195844]=765696;J[195844]=769528;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3746,783464,783376);a=J[195395];J[195395]=0;if((a|0)==1)break d; -J[195847]=0;J[195846]=770856;J[195846]=765696;J[195848]=770784;J[195846]=767756;J[195848]=767804;J[195395]=0;$(3747,783464,783384);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195851]=0;J[195850]=770856;J[195850]=765696;J[195852]=770820;J[195850]=768020;J[195852]=768068;J[195395]=0;$(3748,783464,783400);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;ja(3749);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3750,783464,783416);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]= -0;ja(3751);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3752,783464,783432);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;J[195863]=0;J[195862]=770856;J[195862]=765696;J[195862]=769692;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;$(3754,783464,783448);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195865]=0;J[195864]=770856;J[195864]=765696;J[195864]=769812;J[195395]=0;$(3755,783464,783456);a=J[195395];J[195395]=0;if((a|0)==1)break d;break a}a=Z()|0;break b}a=Z()| -0;break c}a=Z()|0;Yb(c)}wx(b)}ba(a|0);B()}J[195457]=783464;H[781836]=1;J[195458]=781828;a=781828}a=J[a>>2];J[195460]=a;J[a+4>>2]=J[a+4>>2]+1;H[781848]=1;J[195461]=781840;return 781840}function ZM(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=xb-48|0;xb=i;h=2;a:{b:{c:switch(J[a+796>>2]-1|0){case 0:case 1:if(!J[a+864>>2]){h=142;break a}e=J[J[a+804>>2]+(b<<2)>>2];b=J[a+104>>2];h=bc(b,J[a+860>>2]);if(h)break a;J[i+4>>2]=b;J[i>>2]=a;b=J[a+84>>2];I[i+16>> -1]=0;J[i+12>>2]=g;J[i+8>>2]=b+76;J[i+20>>2]=J[a+860>>2];J[i+24>>2]=J[a+864>>2];g=J[a+788>>2];J[i+36>>2]=g;j=J[a+792>>2];J[i+40>>2]=j+g;h=3;b=P(e,48);if(j>>>0>>0)break a;g=b+g|0;b=K[g+8|0]|K[g+9|0]<<8|(K[g+10|0]<<16|K[g+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[i+28>>2]=e;b=K[g+16|0]|K[g+17|0]<<8|(K[g+18|0]<<16|K[g+19|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[i+32>>2]=b;H[i+18|0]=K[g+54|0];if(e>>>0>j>>>0|b>>>0>j-e>>>3>>>0)break a;h=Hv(i,c,0,0,0,d>>>22&1);if(h)break a;if(!(d& -5242880))break b;h=0;break a;case 2:break c;default:break a}b=J[J[a+804>>2]+(b<<2)>>2];d=0;I[g>>1]=0;I[g+2>>1]=0;if(M[a+16>>2]>>0){h=6;break a}b=J[a+788>>2]+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);g=j+4|0;while(1){f=J[a+864>>2];if(f>>>0<=j>>>0){h=3;break a}b=c<<2;if(b+12>>>0>f-j>>>0){h=3;break a}h=bc(e,J[a+860>>2]+(b+g|0)|0);if(h)break a;h=Tc(e,8);if(h)break a;f=he(e);c=he(e);Ec(e);if((c|0)==(f|0)){h=157;break a}if(c>>>0>>0){h= -3;break a}b=c-f|0;if(b>>>0<8){h=3;break a}h=3;if(c>>>0>J[a+864>>2]-j>>>0)break a;h=bc(e,J[a+860>>2]+(f+j|0)|0);if(h)break a;h=Tc(e,b);if(h)break a;Zc(e);Zc(e);b=he(e);if((b|0)!=1685418085){d:{if(!((b|0)==1785751328|(b|0)==1919378028)){h=7;if((b|0)!=1953064550)break d}h=2}Ec(e);break a}if((d|0)==4){h=3;Ec(e);break a}c=Zc(e);Ec(e);d=d+1|0;if(M[a+16>>2]>=c>>>0)continue;break}h=6;break a}h=0;if(K[f+18|0]!=7)break a;o=J[J[a+84>>2]>>2];if(i){J[i>>2]=0;J[i+4>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;J[i+8>>2]=0;J[i+ -12>>2]=0}g=f;m=xb-16|0;xb=m;J[m+12>>2]=0;e:{if(!o){d=33;break e}d=6;if(!g|!i)break e;f:{if((K[g+18|0]-1&255)>>>0<=6){f=J[o>>2];H[i+18|0]=2;e=J[i>>2];j=J[g>>2];J[i>>2]=j;c=J[g+4>>2];J[i+4>>2]=c;h=J[i+8>>2];if((c|0)>0){Kpa(c,0,j,0);if(zb)break e}b=h>>31;b=pC(f,P(e,(b^h)-b|0),P(c,j),J[i+12>>2],m+12|0);J[i+12>>2]=b;d=J[m+12>>2];if(d)break e;J[i+8>>2]=J[i+8>>2]<0?0-c|0:c;break f}J[m+12>>2]=6;b=J[i+12>>2]}c=J[g+12>>2];f=J[g+8>>2];if((f|0)<0)c=P(1-J[g>>2]|0,f)+c|0;k=J[i+8>>2];if((k|0)<0)b=P(1-J[i>>2]|0, -k)+b|0;g:{h:switch(K[g+18|0]-1|0){case 0:I[i+16>>1]=2;k=J[g>>2];if(!k)break g;while(1){e=J[g+4>>2];i:{if(e>>>0<8){f=c;d=b;break i}l=e>>>3|0;d=b;f=c;while(1){e=K[f|0];H[d+7|0]=e&1;H[d|0]=e>>>7;H[d+6|0]=e>>>1&1;H[d+5|0]=e>>>2&1;H[d+4|0]=e>>>3&1;H[d+3|0]=e>>>4&1;H[d+2|0]=e>>>5&1;H[d+1|0]=e>>>6&1;f=f+1|0;d=d+8|0;l=l-1|0;if(l)continue;break}e=J[g+4>>2]}h=e&7;j:{if(!h)break j;e=K[f|0];H[d|0]=e>>>7;if((h|0)==1)break j;H[d+1|0]=e>>>6&1;if((h|0)==2)break j;H[d+2|0]=e>>>5&1;if((h|0)==3)break j;H[d+3|0]=e>>> -4&1;if((h|0)==4)break j;H[d+4|0]=e>>>3&1;if((h|0)==5)break j;H[d+5|0]=e>>>2&1;if((h|0)==6)break j;H[d+6|0]=e>>>1&1}b=J[i+8>>2]+b|0;c=J[g+8>>2]+c|0;k=k-1|0;if(k)continue;break}break g;case 1:case 4:case 5:f=J[g+4>>2];I[i+16>>1]=256;d=J[g>>2];if(!d)break g;if(d&1){b=Mb(b,c,f)+J[i+8>>2]|0;c=J[g+8>>2]+c|0;e=d-1|0}else e=d;if((d|0)==1)break g;while(1){b=Mb(b,c,f);c=J[g+8>>2]+c|0;b=Mb(b+J[i+8>>2]|0,c,f)+J[i+8>>2]|0;c=c+J[g+8>>2]|0;e=e-2|0;if(e)continue;break}break g;case 2:I[i+16>>1]=4;k=J[g>>2];if(!k)break g; -while(1){f=J[g+4>>2];k:{if(f>>>0<4){e=c;d=b;break k}h=f>>>2|0;l=h;d=b;e=c;if(f&4){f=K[e|0];H[d+3|0]=f&3;H[d|0]=f>>>6;H[d+2|0]=f>>>2&3;H[d+1|0]=f>>>4&3;l=h-1|0;e=e+1|0;d=d+4|0}if((h|0)!=1)while(1){f=K[e|0];H[d+3|0]=f&3;H[d|0]=f>>>6;H[d+2|0]=f>>>2&3;H[d+1|0]=f>>>4&3;f=K[e+1|0];H[d+7|0]=f&3;H[d+4|0]=f>>>6;H[d+6|0]=f>>>2&3;H[d+5|0]=f>>>4&3;d=d+8|0;e=e+2|0;l=l-2|0;if(l)continue;break}f=J[g+4>>2]}f=f&3;l:{if(!f)break l;e=K[e|0];H[d|0]=e>>>6;if((f|0)==1)break l;H[d+1|0]=e>>>4&3;if((f|0)==2)break l;H[d+2| -0]=e>>>2&3}b=J[i+8>>2]+b|0;c=J[g+8>>2]+c|0;k=k-1|0;if(k)continue;break}break g;case 3:I[i+16>>1]=16;n=J[g>>2];if(!n)break g;while(1){f=J[g+4>>2];m:{if(f>>>0<2){e=c;d=b;break m}f=f>>>1|0;k=f-1|0;l=0;d=b;e=c;j=f&3;if(j)while(1){h=K[e|0];H[d+1|0]=h&15;H[d|0]=h>>>4;f=f-1|0;d=d+2|0;e=e+1|0;l=l+1|0;if((j|0)!=(l|0))continue;break}if(k>>>0>=3)while(1){h=K[e|0];H[d+1|0]=h&15;H[d|0]=h>>>4;h=K[e+1|0];H[d+3|0]=h&15;H[d+2|0]=h>>>4;h=K[e+2|0];H[d+5|0]=h&15;H[d+4|0]=h>>>4;h=K[e+3|0];H[d+7|0]=h&15;H[d+6|0]=h>>>4; -d=d+8|0;e=e+4|0;f=f-4|0;if(f)continue;break}f=J[g+4>>2]}if(f&1)H[d|0]=K[e|0]>>>4;b=J[i+8>>2]+b|0;c=J[g+8>>2]+c|0;n=n-1|0;if(n)continue;break}break g;case 6:break h;default:break g}I[i+16>>1]=256;j=J[g>>2];if(!j)break g;l=J[g+4>>2];if(!l)break g;while(1){e=b;d=c;if(l){while(1){h=K[d+3|0];if(h){f=K[d+1|0];k=P(P(f,f),46871);f=K[d|0];k=k+P(P(f,f),4732)|0;f=K[d+2|0];f=h-((k+P(P(f,f),13933)>>>16>>>0)/(h>>>0)|0)|0}else f=0;H[e|0]=f;e=e+1|0;d=d+4|0;l=l-1|0;if(l)continue;break}k=J[i+8>>2];f=J[g+8>>2]}j=j- -1|0;if(!j)break g;c=c+f|0;b=b+k|0;l=J[g+4>>2];continue}}d=J[m+12>>2]}xb=m+16|0;h=d;if(d){aC(o,i);break a}H[g+18|0]=K[i+18|0];J[g+8>>2]=J[i+8>>2];I[g+16>>1]=L[i+16>>1];es(J[a+84>>2],J[i+12>>2]);a=J[J[a+84>>2]+156>>2];J[a+4>>2]=J[a+4>>2]|1}xb=i+48|0;return h|0}function Wy(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,B=0;j=xb-80|0;xb=j;J[j+76>>2]=b;y=e-192|0;z=d-384|0;B=j+55|0;s=j+56|0;a:{b:{c:{d:while(1){h=0;e:while(1){k=b;if((q^2147483647)<(h|0))break c; -q=h+q|0;f:{g:{h:{h=b;i=K[h|0];if(i)while(1){i:{b=i&255;j:{if(!b){b=h;break j}if((b|0)!=37)break i;i=h;while(1){if(K[i+1|0]!=37){b=i;break j}h=h+1|0;m=K[i+2|0];b=i+2|0;i=b;if((m|0)==37)continue;break}}h=h-k|0;A=q^2147483647;if((h|0)>(A|0))break c;if(a)De(a,k,h);if(h)continue e;J[j+76>>2]=b;h=b+1|0;p=-1;i=H[b+1|0]-48|0;if(!(K[b+2|0]!=36|i>>>0>=10)){p=i;t=1;h=b+3|0}J[j+76>>2]=h;n=0;i=H[h|0];b=i-32|0;k:{if(b>>>0>31){m=h;break k}m=h;b=1<>2]=m;n=b|n;i=H[h+ -1|0];b=i-32|0;if(b>>>0>=32)break k;h=m;b=1<>>0>=10)){b=H[i|0];i=m+3|0;t=1;n:{if(!a){J[(b<<2)+y>>2]=10;b=0;break n}b=J[(b<<3)+z>>2]}break m}if(t)break h;if(!a){J[j+76>>2]=i;t=0;r=0;break l}b=J[c>>2];J[c>>2]=b+4;t=0;b=J[b>>2]}J[j+76>>2]=i;r=b;if((b|0)>=0)break l;r=0-b|0;n=n|8192;break l}r=Vy(j+76|0);if((r|0)<0)break c;i=J[j+76>>2]}h=0;l=-1;o:{if(K[i|0]!=46){b=i;v=0;break o}if(K[i+1|0]==42){b=i+2|0;p:{if(!(K[i+3| -0]!=36|H[i+2|0]-48>>>0>=10)){b=H[b|0];q:{if(!a){J[(b<<2)+y>>2]=10;l=0;break q}l=J[(b<<3)+z>>2]}b=i+4|0;break p}if(t)break h;if(!a){l=0;break p}i=J[c>>2];J[c>>2]=i+4;l=J[i>>2]}J[j+76>>2]=b;v=(l|0)>=0;break o}J[j+76>>2]=i+1;l=Vy(j+76|0);b=J[j+76>>2];v=1}while(1){x=h;o=28;w=b;i=H[b|0];if(i-123>>>0<4294967238)break b;b=b+1|0;h=K[(i+P(h,58)|0)+757983|0];if(h-1>>>0<8)continue;break}J[j+76>>2]=b;r:{if((h|0)!=27){if(!h)break b;if((p|0)>=0){if(!a){J[(p<<2)+e>>2]=h;continue d}i=(p<<3)+d|0;h=J[i+4>>2];J[j+64>> -2]=J[i>>2];J[j+68>>2]=h;break r}if(!a)break f;Uy(j- -64|0,h,c,g);break r}if((p|0)>=0)break b;h=0;if(!a)continue e}o=-1;if(K[a|0]&32)break a;i=n&-65537;n=n&8192?i:n;p=0;u=224958;m=s;s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{h=H[w|0];h=x?(h&15)==3?h&-33:h:h;switch(h-88|0){case 11:break s;case 9:case 13:case 14:case 15:break t;case 27:break y;case 12:case 17:break B;case 23:break C;case 0:case 32:break D;case 24:break E;case 22:break F;case 29: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 g; -default:break H}}I:switch(h-65|0){case 0:case 4:case 5:case 6:break t;case 2:break w;case 1:case 3:break g;default:break I}if((h|0)==83)break x;break g}k=J[j+64>>2];i=J[j+68>>2];u=224958;break A}h=0;J:switch(x&255){case 0:J[J[j+64>>2]>>2]=q;continue e;case 1:J[J[j+64>>2]>>2]=q;continue e;case 2:k=J[j+64>>2];J[k>>2]=q;J[k+4>>2]=q>>31;continue e;case 3:I[J[j+64>>2]>>1]=q;continue e;case 4:H[J[j+64>>2]]=q;continue e;case 6:J[J[j+64>>2]>>2]=q;continue e;case 7:break J;default:continue e}k=J[j+64>>2]; -J[k>>2]=q;J[k+4>>2]=q>>31;continue e}l=l>>>0<=8?8:l;n=n|8;h=120}b=s;o=h&32;k=J[j+64>>2];i=J[j+68>>2];if(k|i)while(1){b=b-1|0;H[b|0]=o|K[(k&15)+758512|0];x=!i&k>>>0>15|(i|0)!=0;w=i;i=i>>>4|0;k=(w&15)<<28|k>>>4;if(x)continue;break}k=b;if(!(J[j+64>>2]|J[j+68>>2])|!(n&8))break z;u=(h>>>4|0)+224958|0;p=2;break z}b=s;h=J[j+68>>2];i=h;k=J[j+64>>2];if(h|k)while(1){b=b-1|0;H[b|0]=k&7|48;w=!i&k>>>0>7|(i|0)!=0;h=i;i=h>>>3|0;k=(h&7)<<29|k>>>3;if(w)continue;break}k=b;if(!(n&8))break z;b=s-b|0;l=(b|0)<(l|0)?l: -b+1|0;break z}k=J[j+64>>2];b=J[j+68>>2];i=b;if((b|0)<0){h=0-(b+((k|0)!=0)|0)|0;i=h;k=0-k|0;J[j+64>>2]=k;J[j+68>>2]=h;p=1;u=224958;break A}if(n&2048){p=1;u=224959;break A}p=n&1;u=p?224960:224958}k=Kj(k,i,s)}if((l|0)<0&v)break c;n=v?n&-65537:n;b=J[j+64>>2];h=J[j+68>>2];if(!(l|(b|h)!=0)){k=s;l=0;break g}b=!(b|h)+(s-k|0)|0;l=(b|0)<(l|0)?l:b;break g}b=J[j+64>>2];k=b?b:228270;h=l>>>0>=2147483647?2147483647:l;b=bh(k,0,h);b=b?b-k|0:h;m=b+k|0;if((l|0)>=0){n=i;l=b;break g}n=i;l=b;if(K[m|0])break c;break g}if(l){i= -J[j+64>>2];break v}h=0;Le(a,32,r,0,n);break u}J[j+12>>2]=0;J[j+8>>2]=J[j+64>>2];i=j+8|0;J[j+64>>2]=i;l=-1}h=0;K:{while(1){k=J[i>>2];if(!k)break K;m=Ny(j+4|0,k);k=(m|0)<0;if(!(k|m>>>0>l-h>>>0)){i=i+4|0;h=h+m|0;if(l>>>0>h>>>0)continue;break K}break}if(k)break a}o=61;if((h|0)<0)break b;Le(a,32,r,h,n);if(!h){h=0;break u}m=0;i=J[j+64>>2];while(1){k=J[i>>2];if(!k)break u;l=j+4|0;k=Ny(l,k);m=k+m|0;if(m>>>0>h>>>0)break u;De(a,l,k);i=i+4|0;if(h>>>0>m>>>0)continue;break}}Le(a,32,r,h,n^8192);h=(h|0)<(r|0)?r: -h;continue e}if((l|0)<0&v)break c;o=61;h=Ab[f|0](a,O[j+64>>3],r,l,n,h)|0;if((h|0)>=0)continue e;break b}H[j+55|0]=J[j+64>>2];l=1;k=B;n=i;break g}i=K[h+1|0];h=h+1|0;continue}o=q;if(a)break a;if(!t)break f;h=1;while(1){a=J[(h<<2)+e>>2];if(a){Uy((h<<3)+d|0,a,c,g);o=1;h=h+1|0;if((h|0)!=10)continue;break a}break}o=1;if(h>>>0>=10)break a;while(1){if(J[(h<<2)+e>>2])break h;h=h+1|0;if((h|0)!=10)continue;break}break a}o=28;break b}i=m-k|0;b=(i|0)<(l|0)?l:i;if((b|0)>(p^2147483647))break c;o=61;m=b+p|0;h=(m| -0)<(r|0)?r:m;if((A|0)<(h|0))break b;Le(a,32,h,m,n);De(a,u,p);Le(a,48,h,m,n^65536);Le(a,48,b,i,0);De(a,k,i);Le(a,32,h,m,n^8192);b=J[j+76>>2];continue}break}break}o=0;break a}o=61}J[194954]=o;o=-1}xb=j+80|0;return o}function Ur(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,w=0,x=0,y=0;l=xb-32|0;xb=l;r=J[a>>2];f=xb-48|0;xb=f;h=J[b+20>>2];a:{b:{if(h){g=85;if(Ab[h|0](b,c,0,0)|0)break a;h=J[b+4>>2];break b}g=85;h=J[b+4>>2];if(h>>>0>>0)break a}J[b+8>>2]=c;J[f+44>> -2]=0;if(c>>>0>=h>>>0)break a;i=J[b+20>>2];c:{if(i){h=Ab[i|0](b,c,f+16|0,16)|0;break c}h=h-c|0;h=h>>>0>=16?16:h;Mb(f+16|0,J[b>>2]+c|0,h)}J[b+8>>2]=c+h;if(h>>>0<16)break a;h=H[f+16|0];if((h|0)<0){g=2;break a}i=H[f+20|0];if((i|0)<0){g=2;break a}j=H[f+24|0];if((j|0)<0){g=2;break a}k=H[f+28|0];if((k|0)<0){g=2;break a}h=K[f+19|0]|(K[f+17|0]<<16|(h&255)<<24|K[f+18|0]<<8);J[l+16>>2]=h;i=K[f+23|0]|(K[f+21|0]<<16|(i&255)<<24|K[f+22|0]<<8);if(!i){g=2;break a}m=K[f+31|0];k=m|(K[f+29|0]<<16|(k&255)<<24|K[f+30| -0]<<8);j=K[f+27|0]|(K[f+25|0]<<16|(j&255)<<24|K[f+26|0]<<8);d:{if(h>>>0>>0){if((h|0)<=(i-j|0))break d;g=2;break a}if((i|0)<=(h-k|0))break d;g=2;break a}if(h>>>0>(j^2147483647)>>>0){g=2;break a}if(i>>>0>(k^2147483647)>>>0){g=2;break a}if((h+j^2147483647)<(c|0)){g=2;break a}if((i+k^2147483647)<(c|0)){g=2;break a}h=c+h|0;n=h+j|0;j=J[b+4>>2];if(n>>>0>j>>>0){g=2;break a}c=c+i|0;if(j>>>0>>0){g=2;break a}J[l+16>>2]=h;h=J[b+20>>2];e:{if(h){if(Ab[h|0](b,c,0,0)|0)break a;m=K[f+31|0];break e}if(c>>> -0>M[b+4>>2])break a}J[b+8>>2]=c;H[f+15|0]=m+1;g=Dd(b,f,16);if(g)break a;t=K[f|0];u=K[f+1|0];v=K[f+2|0];w=K[f+3|0];x=K[f+4|0];y=K[f+5|0];p=K[f+6|0];q=K[f+7|0];o=K[f+8|0];n=K[f+9|0];g=K[f+10|0];h=K[f+11|0];i=K[f+12|0];k=K[f+13|0];j=K[f+15|0];m=K[f+14|0];if(!(!(t|(u|(v|(w|(x|(y|(p|(q|(o|(n|(g|(h|(i|(k|(j|m)))))))))))))))|K[f+31|0]==(j|0)&K[f+30|0]==(m|0)&K[f+29|0]==(k|0)&K[f+28|0]==(i|0)&K[f+27|0]==(h|0)&K[f+26|0]==(g|0)&(n|0)==K[f+25|0]&(o|0)==K[f+24|0]&(q|0)==K[f+23|0]&(p|0)==K[f+22|0]&(y|0)==K[f+ -21|0]&(x|0)==K[f+20|0]&(w|0)==K[f+19|0]&(v|0)==K[f+18|0]&(u|0)==K[f+17|0]&(t|0)==K[f+16|0])){g=2;break a}g=J[b+8>>2]+8|0;i=J[b+20>>2];f:{g:{if(i){h=85;if(!(Ab[i|0](b,g,0,0)|0))break g;break f}h=85;if(g>>>0>M[b+4>>2])break f}J[b+8>>2]=g;h=0}J[f+44>>2]=h;h=rc(b,f+44|0);g=J[f+44>>2];if(g)break a;g=2;h=h<<16>>16;if((h|0)<0)break a;c=c+h|0;h=J[b+20>>2];h:{if(h){g=85;if(!(Ab[h|0](b,c,0,0)|0))break h;break a}g=85;if(c>>>0>M[b+4>>2])break a}J[b+8>>2]=c;J[l+20>>2]=c;g=0}xb=f+48|0;c=g;i:{if(c)break i;c=1;j:{k:{l:{m:{g= -J[l+20>>2];h=J[l+16>>2];if(!XC(a,b,g,h,1347375956,1,l+12|0,l+8|0)){o=J[l+12>>2];n:{o:{if(d+1>>>0>1)break o;c=10;p=J[l+8>>2];if((p|0)<=0)break o;q=J[a>>2];f=0;while(1){d=J[o+(f<<2)>>2];g=J[b+20>>2];p:{if(g){if(Ab[g|0](b,d,0,0)|0)break n;j=J[b+4>>2];break p}j=J[b+4>>2];if(j>>>0>>0)break n}J[b+8>>2]=d;if(d+3>>>0>=j>>>0)break n;q:{r:{h=J[b+20>>2];s:{if(h){g=l+28|0;if((Ab[h|0](b,d,g,4)|0)!=4)break n;d=J[b+8>>2];break s}g=J[b>>2];if(!g)break r;g=d+g|0}g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24); -J[b+8>>2]=d+4;d=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(d>>>0<=16777215)break q;c=9;break l}J[b+8>>2]=d+4;d=0}g=s+6|0;if(g>>>0>(d^16777215)>>>0){c=9;break l}s=d+g|0;f=f+1|0;if((p|0)!=(f|0))continue;break}n=s+2|0;if(n>>>0<6)break o;c=6;if((n|0)<=0)break l;d=Ab[J[q+4>>2]](q,n)|0;if(!d){c=64;break l}c=0;k=Nb(d,0,n);H[k+2|0]=0;H[k+3|0]=0;H[k+4|0]=0;H[k+5|0]=0;H[k|0]=128;H[k+1|0]=1;t:{if((p|0)<=0){d=6;m=2;break t}m=2;d=6;h=1;j=0;while(1){g=J[o+(j<<2)>>2];f=J[b+20>>2];u:{if(f){if(!(Ab[f|0](b,g,0,0)| -0))break u;break m}if(g>>>0>M[b+4>>2])break m}J[b+8>>2]=g;J[l+24>>2]=0;f=l+24|0;g=md(b,f);if(J[l+24>>2]|(g|0)<0)break m;f=rc(b,f);if(J[l+24>>2])break m;J[l+24>>2]=10;if(f>>>0>=256){i=g-2|0;g=g>>>0>=i>>>0?i:0;i=f>>>8|0;v:{if((i|0)==(h|0)){f=d;c=c+g|0;break v}f=m+3|0;if(f>>>0>n>>>0)break m;h=k+m|0;H[h|0]=c;H[h+2|0]=c>>>16;H[h+1|0]=c>>>8;H[f+k|0]=c>>>24;if((i|0)==5)break t;f=d+6|0;if(n>>>0>>0)break m;h=d+k|0;H[h|0]=128;m=d+2|0;c=k+m|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[h+1|0]=i;h=i;c=g}if(f>>> -0>s>>>0)break m;d=f+g|0;if(s>>>0>>0)break m;g=Dd(b,f+k|0,g);J[l+24>>2]=g;if(g)break m}j=j+1|0;if((p|0)!=(j|0))continue;break}}g=d+2|0;if(g>>>0>n>>>0)break m;b=d+k|0;H[b|0]=128;H[b+1|0]=3;d=m+3|0;if(d>>>0>n>>>0)break m;b=k+m|0;H[b|0]=c;H[b+2|0]=c>>>16;H[b+1|0]=c>>>8;H[d+k|0]=c>>>24;c=gr(a,k,g,0,11064,e)}if(o)break l;break k}c=85;break l}c=XC(a,b,g,h,1936092788,0,l+12|0,l+8|0);if(c)break i;f=J[l+12>>2];j=J[l+8>>2];c=(d|0)%(j|0)|0;i=c>>31^c;w:{if((i|0)<(j|0)){g=J[a>>2];h=J[f+(i<<2)>>2];d=J[b+20>> -2];x:{if(d){c=85;if(!(Ab[d|0](b,h,0,0)|0))break x;break w}c=85;if(h>>>0>M[b+4>>2])break w}J[b+8>>2]=h;J[l+28>>2]=0;d=md(b,l+28|0);c=J[l+28>>2];if(c)break w;c=1;if((d|0)<=0)break w;c=9;if(d>>>0>16777215)break w;if(!xE(a,b,i,e)){c=0;break w}h=h+4|0;i=J[b+20>>2];y:{if(i){c=85;if(!(Ab[i|0](b,h,0,0)|0))break y;break w}c=85;if(h>>>0>M[b+4>>2])break w}J[b+8>>2]=h;c=Ab[J[g+4>>2]](g,d)|0;if(!c){c=64;break w}h=b;b=Nb(c,0,d);c=Dd(h,b,d);if(c){Ab[J[g+8>>2]](g,b);break w}if(d>>>0>=5)c=(K[b|0]|K[b+1|0]<<8|(K[b+ -2|0]<<16|K[b+3|0]<<24))==1330926671?11258:10087;else c=10087;c=gr(a,b,d,0,c,e);break w}c=1;if(!f)break i}Ab[J[r+8>>2]](r,f);if(c)break i;break j}Ab[J[q+8>>2]](q,k);c=1;if(!o)break k}Ab[J[r+8>>2]](r,o)}if(c)break i;j=1}J[J[e>>2]>>2]=j;c=0}xb=l+32|0;return c}function jt(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;n=(b<<1)+a|0;if(b>>>0>=10)while(1){d=a+2|0;k=(b&-2)+a|0;f=(it(d,k,c)|0)>0;b=f?d:k;e=n-4|0;if((it(b,e,c)|0)>0){b=f?k:d;b=(it(b,e,c)|0)>0?b:e}l=n-2|0;if((l|0)!=(b|0)){d=K[b| -0];H[b|0]=K[l|0];H[l|0]=d;d=K[b+1|0];f=b;b=n-1|0;H[f+1|0]=K[b|0];H[b|0]=d}k=a;b=k;f=l;e=f;a:{if(b>>>0>=e>>>0){j=e-b|0;d=0;break a}while(1){g=L[l>>1];o=L[b>>1];i=J[c+4>>2];b:{c:{if((i|0)!=131072){j=0;d=0;if((i|0)!=65536)break b;if(g>>>0>257)break c;d=g<<2;g=J[d+122256>>2];d=J[d+122260>>2]+(g^-1)|0;j=g+118544|0;break c}j=0;d=0;h=J[c+8>>2];i=K[h|0]|K[h+1|0]<<8;if(g>>>0>=((i<<8|i>>>8)&65535)>>>0)break c;d=h+(g<<1)|0;d=K[d+2|0]|K[d+3|0]<<8;g=(d<<8|d>>>8)&65535;if(g>>>0<=257){d=g<<2;g=J[d+122256>>2];d= -J[d+122260>>2]+(g^-1)|0;j=g+118544|0;break c}d=0;g=g-258|0;if(g>>>0>=M[c+16>>2])break c;d=J[c+24>>2]+J[J[c+20>>2]+(g<<2)>>2]|0;j=d+1|0;d=K[d|0]}i=J[c+4>>2]}d:{if((i|0)!=131072){m=0;h=0;if((i|0)!=65536|o>>>0>257)break d;h=o<<2;g=J[h+122256>>2];h=J[h+122260>>2]+(g^-1)|0;m=g+118544|0;break d}m=0;h=0;g=J[c+8>>2];i=K[g|0]|K[g+1|0]<<8;if(o>>>0>=((i<<8|i>>>8)&65535)>>>0)break d;g=g+(o<<1)|0;g=K[g+2|0]|K[g+3|0]<<8;g=(g<<8|g>>>8)&65535;if(g>>>0<=257){h=g<<2;g=J[h+122256>>2];h=J[h+122260>>2]+(g^-1)|0;m=g+118544| -0;break d}g=g-258|0;if(g>>>0>=M[c+16>>2])break d;g=J[c+24>>2]+J[J[c+20>>2]+(g<<2)>>2]|0;m=g+1|0;h=K[g|0]}e:{f:{g:{if((d|0)!=(h|0))d=h-d|0;else{if(!d)break g;d=cd(m,j,d)}if((d|0)>0){h:{if(b>>>0>=e>>>0)break h;while(1){g=e;e=e-2|0;o=L[e>>1];h=L[l>>1];i=J[c+4>>2];i:{j:{if((i|0)!=131072){j=0;d=0;if((i|0)!=65536)break i;if(h>>>0>257)break j;d=h<<2;j=J[d+122256>>2];d=J[d+122260>>2]+(j^-1)|0;j=j+118544|0;break j}j=0;d=0;i=J[c+8>>2];m=K[i|0]|K[i+1|0]<<8;if(h>>>0>=((m<<8|m>>>8)&65535)>>>0)break j;d=i+(h<< -1)|0;d=K[d+2|0]|K[d+3|0]<<8;h=(d<<8|d>>>8)&65535;if(h>>>0<=257){d=h<<2;j=J[d+122256>>2];d=J[d+122260>>2]+(j^-1)|0;j=j+118544|0;break j}d=0;h=h-258|0;if(h>>>0>=M[c+16>>2])break j;d=J[c+24>>2]+J[J[c+20>>2]+(h<<2)>>2]|0;j=d+1|0;d=K[d|0]}i=J[c+4>>2]}k:{l:{m:{if((i|0)!=131072){m=0;p=0;if((i|0)!=65536|o>>>0>257)break m;h=o<<2;i=J[h+122256>>2];m=i+118544|0;p=J[h+122260>>2]+(i^-1)|0;break m}m=0;i=J[c+8>>2];h=K[i|0]|K[i+1|0]<<8;p=0;if(o>>>0>=((h<<8|h>>>8)&65535)>>>0)break m;h=i+(o<<1)|0;h=K[h+2|0]|K[h+3|0]<< -8;i=(h<<8|h>>>8)&65535;if(i>>>0<=257){h=i<<2;i=J[h+122256>>2];m=i+118544|0;p=J[h+122260>>2]+(i^-1)|0;break m}i=i-258|0;p=0;if(i>>>0>=M[c+16>>2])break m;h=J[c+24>>2]+J[J[c+20>>2]+(i<<2)>>2]|0;m=h+1|0;p=K[h|0]}h=p;n:{if((h|0)!=(d|0))d=h-d|0;else{if(!d)break n;d=cd(m,j,d)}if(d)break l}d=f-2|0;if(g>>>0>>0){j=K[e|0];H[e|0]=K[d|0];H[d|0]=j;g=g-1|0;j=K[g|0];f=f-1|0;H[g|0]=K[f|0];H[f|0]=j}f=d;break k}if((d|0)>=0)break k;if(b>>>0>>0){d=K[b|0];H[b|0]=K[e|0];H[e|0]=d;d=K[b+1|0];g=g-1|0;H[b+1|0]=K[g|0]; -H[g|0]=d}b=b+2|0;break h}if(b>>>0>>0)continue;break}}if(b>>>0>>0)continue;break e}if(d)break f}if(b>>>0>k>>>0){d=K[k|0];H[k|0]=K[b|0];H[b|0]=d;d=K[k+1|0];H[k+1|0]=K[b+1|0];H[b+1|0]=d}k=k+2|0}b=b+2|0;if(e>>>0>b>>>0)continue}break}j=e-k|0;o:{if((a|0)==(k|0)|(e|0)==(k|0))break o;b=k-a|0;if(b>>>0>j>>>0){if((j|0)<=0)break o;k=a+j|0;b=a+b|0;d=a;while(1){l=K[d|0];H[d|0]=K[b|0];H[b|0]=l;b=b+1|0;d=d+1|0;if(k>>>0>d>>>0)continue;break}break o}if((b|0)<=0)break o;k=a+b|0;b=a+j|0;d=a;while(1){l=K[d|0];H[d| -0]=K[b|0];H[b|0]=l;b=b+1|0;d=d+1|0;if(k>>>0>d>>>0)continue;break}}d=f-e|0;if((e|0)==(f|0)|(f|0)==(n|0))break a;b=n-f|0;if(b>>>0>>0){if((b|0)<=0)break a;k=b+e|0;b=d+e|0;while(1){f=K[e|0];H[e|0]=K[b|0];H[b|0]=f;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}break a}if((d|0)<=0)break a;k=d+e|0;b=b+e|0;while(1){f=K[e|0];H[e|0]=K[b|0];H[b|0]=f;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}jt(a,j>>>1|0,c);a=n-d|0;n=a+(d&-2)|0;b=d>>>1|0;if(d>>>0>=20)continue;break}k=a+2|0;if(n>>>0>k>>>0)while(1){b=k; -p:{if(b>>>0<=a>>>0)break p;while(1){d=b-2|0;f=L[d>>1];l=L[b>>1];e=J[c+4>>2];q:{r:{if((e|0)!=131072){j=0;i=0;if((e|0)!=65536)break q;if(l>>>0>257)break r;l=l<<2;e=J[l+122256>>2];i=J[l+122260>>2]+(e^-1)|0;j=e+118544|0;break r}j=0;i=0;e=J[c+8>>2];g=K[e|0]|K[e+1|0]<<8;if(l>>>0>=((g<<8|g>>>8)&65535)>>>0)break r;e=e+(l<<1)|0;e=K[e+2|0]|K[e+3|0]<<8;e=(e<<8|e>>>8)&65535;if(e>>>0<=257){l=e<<2;e=J[l+122256>>2];i=J[l+122260>>2]+(e^-1)|0;j=e+118544|0;break r}e=e-258|0;if(e>>>0>=M[c+16>>2])break r;e=J[c+24>>2]+ -J[J[c+20>>2]+(e<<2)>>2]|0;j=e+1|0;i=K[e|0]}e=J[c+4>>2]}s:{if((e|0)!=131072){m=0;h=0;if((e|0)!=65536|f>>>0>257)break s;e=f<<2;f=J[e+122256>>2];h=J[e+122260>>2]+(f^-1)|0;m=f+118544|0;break s}m=0;h=0;e=J[c+8>>2];l=K[e|0]|K[e+1|0]<<8;if(f>>>0>=((l<<8|l>>>8)&65535)>>>0)break s;f=e+(f<<1)|0;f=K[f+2|0]|K[f+3|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0<=257){e=f<<2;f=J[e+122256>>2];h=J[e+122260>>2]+(f^-1)|0;m=f+118544|0;break s}f=f-258|0;if(f>>>0>=M[c+16>>2])break s;f=J[c+24>>2]+J[J[c+20>>2]+(f<<2)>>2]|0;m=f+1|0; -h=K[f|0]}if((h|0)!=(i|0))f=h-i|0;else{if(!i)break p;f=cd(m,j,i)}if((f|0)<=0)break p;f=K[d|0];H[d|0]=K[b|0];H[b|0]=f;f=b-1|0;e=K[f|0];H[f|0]=K[b+1|0];H[b+1|0]=e;b=d;if(d>>>0>a>>>0)continue;break}}k=k+2|0;if(n>>>0>k>>>0)continue;break}}function Ks(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,w=0;m=xb-32|0;k=J[b>>2];c=J[b+8>>2];d=J[c>>2];l=J[c+12>>2];J[a+5200>>2]=0;J[a+5204>>2]=573;q=-1;c=0;a:{if((l|0)>0){while(1){e=(c<<2)+k|0;b:{if(L[e>>1]){e=J[a+5200>>2]+ -1|0;J[a+5200>>2]=e;J[((e<<2)+a|0)+2908>>2]=c;H[(a+c|0)+5208|0]=0;q=c;break b}I[e+2>>1]=0}c=c+1|0;if((l|0)!=(c|0))continue;break}c=J[a+5200>>2];if((c|0)>1)break a}while(1){c=c+1|0;J[a+5200>>2]=c;h=((c<<2)+a|0)+2908|0;e=q+1|0;f=(q|0)<2;c=f?e:0;J[h>>2]=c;h=c<<2;I[h+k>>1]=1;H[(a+c|0)+5208|0]=0;J[a+5800>>2]=J[a+5800>>2]-1;if(d)J[a+5804>>2]=J[a+5804>>2]-L[(d+h|0)+2>>1];q=f?e:q;c=J[a+5200>>2];if((c|0)<2)continue;break}}J[b+4>>2]=q;c=c>>>1|0;while(1){h=c;g=J[((c<<2)+a|0)+2908>>2];d=c<<1;f=J[a+5200>>2];c:{if((d| -0)>(f|0))break c;i=(a+g|0)+5208|0;n=(g<<2)+k|0;e=c;while(1){d:{if((d|0)>=(f|0)){c=d;break d}c=a+2908|0;f=d|1;j=J[c+(f<<2)>>2];p=L[(j<<2)+k>>1];o=J[c+(d<<2)>>2];c=L[(o<<2)+k>>1];if(p>>>0>=c>>>0){if((c|0)!=(p|0)){c=d;break d}c=d;d=a+5208|0;if(K[d+j|0]>K[d+o|0])break d}c=f}f=L[n>>1];d=J[((c<<2)+a|0)+2908>>2];j=L[(d<<2)+k>>1];if(f>>>0>>0){c=e;break c}if(!((f|0)!=(j|0)|K[i|0]>K[(a+d|0)+5208|0])){c=e;break c}J[((e<<2)+a|0)+2908>>2]=d;e=c;d=c<<1;f=J[a+5200>>2];if((d|0)<=(f|0))continue;break}}J[((c<<2)+ -a|0)+2908>>2]=g;c=h-1|0;if((h|0)>1)continue;break}d=J[a+5200>>2];while(1){h=l;f=d-1|0;J[a+5200>>2]=f;i=J[a+2912>>2];g=J[((d<<2)+a|0)+2908>>2];J[a+2912>>2]=g;c=1;e:{if((d|0)<3)break e;l=(a+g|0)+5208|0;d=2;n=(g<<2)+k|0;e=1;while(1){f:{if((d|0)>=(f|0)){c=d;break f}c=a+2908|0;f=d|1;j=J[c+(f<<2)>>2];p=L[(j<<2)+k>>1];o=J[c+(d<<2)>>2];c=L[(o<<2)+k>>1];if(p>>>0>=c>>>0){if((c|0)!=(p|0)){c=d;break f}c=d;d=a+5208|0;if(K[d+j|0]>K[d+o|0])break f}c=f}f=L[n>>1];d=J[((c<<2)+a|0)+2908>>2];j=L[(d<<2)+k>>1];if(f>>> -0>>0){c=e;break e}if(!((f|0)!=(j|0)|K[l|0]>K[(a+d|0)+5208|0])){c=e;break e}J[((e<<2)+a|0)+2908>>2]=d;e=c;d=c<<1;f=J[a+5200>>2];if((d|0)<=(f|0))continue;break}}d=2;l=a+2908|0;J[l+(c<<2)>>2]=g;e=J[a+5204>>2]-1|0;J[a+5204>>2]=e;c=J[a+2912>>2];J[l+(e<<2)>>2]=i;e=J[a+5204>>2]-1|0;J[a+5204>>2]=e;J[l+(e<<2)>>2]=c;n=(h<<2)+k|0;e=(c<<2)+k|0;f=(i<<2)+k|0;I[n>>1]=L[e>>1]+L[f>>1];g=a+5208|0;j=g+h|0;i=K[g+i|0];c=K[c+g|0];H[j|0]=(c>>>0>>0?i:c)+1;I[e+2>>1]=h;I[f+2>>1]=h;J[a+2912>>2]=h;f=1;c=1;e=J[a+5200>> -2];g:{if((e|0)<2)break g;while(1){h:{if((d|0)>=(e|0))break h;c=d|1;e=J[l+(c<<2)>>2];i=L[(e<<2)+k>>1];p=J[l+(d<<2)>>2];o=L[(p<<2)+k>>1];if(i>>>0>=o>>>0)if((i|0)!=(o|0)|K[e+g|0]>K[g+p|0])break h;d=c}e=L[n>>1];c=d;d=J[((c<<2)+a|0)+2908>>2];i=L[(d<<2)+k>>1];if(e>>>0>>0){c=f;break g}if(!((e|0)!=(i|0)|K[j|0]>K[(a+d|0)+5208|0])){c=f;break g}J[((f<<2)+a|0)+2908>>2]=d;f=c;d=c<<1;e=J[a+5200>>2];if((d|0)<=(e|0))continue;break}}l=h+1|0;J[((c<<2)+a|0)+2908>>2]=h;d=J[a+5200>>2];if((d|0)>1)continue;break}c=J[a+ -5204>>2]-1|0;J[a+5204>>2]=c;e=a+2908|0;J[e+(c<<2)>>2]=J[a+2912>>2];f=J[b+4>>2];c=J[b+8>>2];d=J[c+16>>2];i=J[c+8>>2];w=J[c+4>>2];n=J[c>>2];h=J[b>>2];r=a+2900|0;b=r;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;s=a+2892|0;b=s;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;t=a+2884|0;b=t;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;u=a+2876|0;b=u;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;l=0;I[(h+(J[e+(J[a+5204>>2]<<2)>>2]<<2)|0)+2>>1]=0;b=J[a+5204>>2];i:{if((b|0)>571)break i;c=b+1|0;e=0;while(1){b= -J[((c<<2)+a|0)+2908>>2];v=b<<2;j=h+v|0;g=L[(h+(L[j+2>>1]<<2)|0)+2>>1];p=(g|0)>=(d|0);o=p?d:g+1|0;I[j+2>>1]=o;j:{if((b|0)>(f|0))break j;g=((o<<1)+a|0)+2876|0;I[g>>1]=L[g>>1]+1;g=0;g=(b|0)>=(i|0)?J[w+(b-i<<2)>>2]:g;b=L[j>>1];J[a+5800>>2]=J[a+5800>>2]+P(o+g|0,b);if(!n)break j;J[a+5804>>2]=J[a+5804>>2]+P(b,L[(n+v|0)+2>>1]+g|0)}e=e+p|0;c=c+1|0;if((c|0)!=573)continue;break}if(!e)break i;g=((d<<1)+a|0)+2876|0;while(1){c=d;while(1){b=c;c=b-1|0;i=((c<<1)+a|0)+2876|0;n=L[i>>1];if(!n)continue;break}I[i>>1]= -n-1;b=((b<<1)+a|0)+2876|0;I[b>>1]=L[b>>1]+2;I[g>>1]=L[g>>1]-1;b=(e|0)>2;e=e-2|0;if(b)continue;break}if(!d)break i;c=573;while(1){e=L[((d<<1)+a|0)+2876>>1];if(e)while(1){c=c-1|0;b=J[((c<<2)+a|0)+2908>>2];if((b|0)>(f|0))continue;b=h+(b<<2)|0;g=L[b+2>>1];if((g|0)!=(d|0)){J[a+5800>>2]=J[a+5800>>2]+P(L[b>>1],d-g|0);I[b+2>>1]=d}e=e-1|0;if(e)continue;break}d=d-1|0;if(d)continue;break}}b=L[u>>1]<<1;I[m+2>>1]=b;b=b+L[a+2878>>1]<<1;I[m+4>>1]=b;b=b+L[a+2880>>1]<<1;I[m+6>>1]=b;b=b+L[a+2882>>1]<<1;I[m+8>>1]=b; -b=b+L[t>>1]<<1;I[m+10>>1]=b;b=b+L[a+2886>>1]<<1;I[m+12>>1]=b;b=b+L[a+2888>>1]<<1;I[m+14>>1]=b;b=b+L[a+2890>>1]<<1;I[m+16>>1]=b;b=b+L[s>>1]<<1;I[m+18>>1]=b;b=b+L[a+2894>>1]<<1;I[m+20>>1]=b;b=b+L[a+2896>>1]<<1;I[m+22>>1]=b;b=b+L[a+2898>>1]<<1;I[m+24>>1]=b;b=b+L[r>>1]<<1;I[m+26>>1]=b;b=b+L[a+2902>>1]<<1;I[m+28>>1]=b;I[m+30>>1]=b+L[a+2904>>1]<<1;if((q|0)>=0)while(1){h=(l<<2)+k|0;a=L[h+2>>1];if(a){b=(a<<1)+m|0;c=L[b>>1];I[b>>1]=c+1;b=a&3;d=0;k:{if(a>>>0<4){a=0;break k}g=a&65532;a=0;e=0;while(1){f=c>>> -3&1|(c>>>2&1|(c&2|(c&1|a)<<2))<<1;a=f<<1;c=c>>>4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}if(b)while(1){f=c&1|a;a=f<<1;c=c>>>1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}I[h>>1]=f}a=(l|0)!=(q|0);l=l+1|0;if(a)continue;break}}function A2(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;d=xb-256|0;xb=d;e=J[b+12>>2];f=J[b+4>>2];g=J[b+8>>2];b=J[b>>2];J[195395]=0;h=+(g|0);i=+(b|0);b=h>2];J[d+88>>2]=0;J[d+112>>2]=g;J[d+92>>2]=120;J[d+96>>2]=0;g=J[d+80>>2];n=J[d+84>>2];J[d+80>>2]=0;J[d+84>>2]=0;J[d+104>>2]=g;J[d+108>>2]=n;J[195395]=0;H[d+103|0]=1;j=+(e|0);k=+(f|0);g=j>2];J[d+128>>2]=J[d+64>>2];J[d+132>>2]=e;f=J[d+72>>2];e=0;J[d+72>>2]=0;J[d+136>>2]=f;J[d+116>>2]=121;J[d+120>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;J[195395]=0;H[d+127|0]=1;da(1863,d+48|0,+((b?i:h)-l),-1);f=J[195395];J[195395]= -0;b=d+140|0;if((f|0)==1)break t;J[195395]=0;f=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break s;J[d+144>>2]=5;J[d+148>>2]=-2147483640;J[d+140>>2]=f;e=0;J[f+16>>2]=J[99151];b=J[99150];J[f+8>>2]=J[99149];J[f+12>>2]=b;b=J[99148];J[f>>2]=J[99147];J[f+4>>2]=b;J[f+20>>2]=0;J[d+160>>2]=J[d+56>>2];J[d+56>>2]=0;b=J[d+52>>2];J[d+152>>2]=J[d+48>>2];J[d+156>>2]=b;J[d+48>>2]=0;J[d+52>>2]=0;J[195395]=0;da(1863,d+32|0,+((g?k:j)-m),-1);f=J[195395];J[195395]=0;b=d+164|0;if((f|0)==1)break r;J[195395]=0;f=_(1078, -32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break q;J[d+168>>2]=6;J[d+172>>2]=-2147483640;J[d+164>>2]=f;e=0;b=J[99193];J[f+16>>2]=J[99192];J[f+20>>2]=b;b=J[99191];J[f+8>>2]=J[99190];J[f+12>>2]=b;b=J[99189];J[f>>2]=J[99188];J[f+4>>2]=b;J[f+24>>2]=0;J[d+184>>2]=J[d+40>>2];J[d+40>>2]=0;b=J[d+36>>2];J[d+176>>2]=J[d+32>>2];J[d+180>>2]=b;J[d+32>>2]=0;J[d+36>>2]=0;b=J[c>>2];J[195395]=0;da(1863,d+16|0,+(+(b|0)*.5),-1);f=J[195395];J[195395]=0;b=d+188|0;if((f|0)==1)break p;J[195395]=0;f=_(1078,16)|0;e=J[195395]; -J[195395]=0;if((e|0)==1)break o;J[d+192>>2]=2;J[d+196>>2]=-2147483644;J[d+188>>2]=f;e=0;J[f+8>>2]=0;J[f>>2]=114;J[f+4>>2]=120;J[d+208>>2]=J[d+24>>2];b=J[d+20>>2];J[d+200>>2]=J[d+16>>2];J[d+204>>2]=b;J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;b=J[c+4>>2];J[195395]=0;da(1863,d|0,+(+(b|0)*.5),-1);b=J[195395];J[195395]=0;if((b|0)==1)break n;J[195395]=0;b=_(1078,16)|0;c=J[195395];J[195395]=0;if((c|0)==1)break m;J[d+216>>2]=2;J[d+220>>2]=-2147483644;J[d+212>>2]=b;J[b+8>>2]=0;J[b>>2]=114;J[b+4>>2]=121;J[d+232>> -2]=J[d+8>>2];b=J[d+4>>2];J[d+224>>2]=J[d>>2];J[d+228>>2]=b;J[d+8>>2]=0;J[d+244>>2]=0;J[d+236>>2]=0;J[d+240>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[195395]=0;H[d+252|0]=0;c=d+236|0;J[d+248>>2]=c;b=_(1078,144)|0;e=J[195395];J[195395]=0;v:{w:{if((e|0)!=1){J[d+240>>2]=b;J[d+236>>2]=b;J[195395]=0;J[d+244>>2]=b+144;c=ha(1957,d+244|0,d+92|0,c|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break v;a=Z()|0;J[d+240>>2]=b;break w}a=Z()|0}Kc(d+248|0);Vb(d+212|0);Vb(d+188|0);Vb(d+164|0);Vb(d+140|0);Vb(d+116|0);Vb(d+92|0); -e=1;break l}J[d+240>>2]=c;if(H[d+235|0]<0)Kb(J[d+224>>2]);if(H[d+223|0]<0)Kb(J[d+212>>2]);if(H[d+211|0]<0)Kb(J[d+200>>2]);if(H[d+199|0]<0)Kb(J[d+188>>2]);if(H[d+187|0]<0)Kb(J[d+176>>2]);if(H[d+175|0]<0)Kb(J[d+164>>2]);if(H[d+163|0]<0)Kb(J[d+152>>2]);if(H[d+151|0]<0)Kb(J[d+140>>2]);if(H[d+139|0]<0)Kb(J[d+128>>2]);if(H[d+127|0]<0)Kb(J[d+116>>2]);if(H[d+115|0]<0)Kb(J[d+104>>2]);if(H[d+103|0]<0)Kb(J[d+92>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+ -59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);J[195395]=0;b=a+8|0;c=d+236|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[d+92>>2]=a;J[d+96>>2]=4;J[d+100>>2]= --2147483640;e=J[100978];J[a+8>>2]=J[100977];J[a+12>>2]=e;e=J[100976];J[a>>2]=J[100975];J[a+4>>2]=e;J[a+16>>2]=0;J[195395]=0;J[d+80>>2]=0;H[d+91|0]=0;ia(1961,b|0,d+92|0,c|0,d+80|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+103|0]<0)Kb(J[d+92>>2]);c=J[d+236>>2];if(c){b=J[d+240>>2];a=c;if((b|0)!=(a|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);a=b-24|0;if(H[b-13|0]<0)Kb(J[a>>2]);b=a;if((c|0)!=(b|0))continue;break}a=J[d+236>>2]}J[d+240>>2]=c;Kb(a)}xb=d+256|0;return}ba(Z()| -0);B()}b=d+116|0;a=Z()|0;e=0;break f}a=Z()|0;break g}a=Z()|0;e=0;break h}a=Z()|0;break h}a=Z()|0;e=0;break i}a=Z()|0;break i}a=Z()|0;e=0;break j}a=Z()|0;break k}a=Z()|0;e=0}if(H[d+11|0]>=0)break k;Kb(J[d>>2])}b=d+212|0}if(H[d+27|0]>=0)break i;Kb(J[d+16>>2])}if(H[d+43|0]>=0)break h;Kb(J[d+32>>2])}if(H[d+59|0]>=0)break g;Kb(J[d+48>>2])}if(H[d+75|0]>=0)break f;Kb(J[d+64>>2])}if(H[d+91|0]<0)Kb(J[d+80>>2]);if((d+92|0)==(b|0)|e)break a;while(1){b=Vb(b-24|0);if((b|0)!=(d+92|0))continue;break}break a}a=Z()| -0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+103|0]>=0)break b;Kb(J[d+92>>2])}Hc(d+236|0)}ba(a|0);B()}function xfa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}if(!J[a+84>>2])h=a,i=Ab[J[J[a+4>>2]>>2]](a,0,880)|0,J[h+84>>2]=i;J[a+72>>2]=8;J[a+56>>2]=1;J[a+60>>2]=1;Pr(a,50,1);b=J[a+120>>2];if(!b){b=Ab[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+120>>2]=b}H[b+16|0]=K[250784];c=J[62695];J[b+ -8>>2]=J[62694];J[b+12>>2]=c;c=J[62693];J[b>>2]=J[62692];J[b+4>>2]=c;c=K[250821]|K[250822]<<8|(K[250823]<<16|K[250824]<<24);b=J[a+120>>2];d=K[250817]|K[250818]<<8|(K[250819]<<16|K[250820]<<24);H[b+17|0]=d;H[b+18|0]=d>>>8;H[b+19|0]=d>>>16;H[b+20|0]=d>>>24;H[b+21|0]=c;H[b+22|0]=c>>>8;H[b+23|0]=c>>>16;H[b+24|0]=c>>>24;c=K[250825]|K[250826]<<8|(K[250827]<<16|K[250828]<<24);H[b+25|0]=c;H[b+26|0]=c>>>8;H[b+27|0]=c>>>16;H[b+28|0]=c>>>24;J[J[a+120>>2]+276>>2]=0;b=J[a+136>>2];if(!b){b=Ab[J[J[a+4>>2]>>2]](a, -0,280)|0;J[b+276>>2]=0;J[a+136>>2]=b}H[b+16|0]=K[250848];c=J[62711];J[b+8>>2]=J[62710];J[b+12>>2]=c;c=J[62709];J[b>>2]=J[62708];J[b+4>>2]=c;Mb(J[a+136>>2]+17|0,250864,162);J[J[a+136>>2]+276>>2]=0;b=J[a+124>>2];if(!b){b=Ab[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+124>>2]=b}H[b+16|0]=K[250816];c=J[62703];J[b+8>>2]=J[62702];J[b+12>>2]=c;c=J[62701];J[b>>2]=J[62700];J[b+4>>2]=c;c=K[250821]|K[250822]<<8|(K[250823]<<16|K[250824]<<24);b=J[a+124>>2];d=K[250817]|K[250818]<<8|(K[250819]<<16|K[250820]<< -24);H[b+17|0]=d;H[b+18|0]=d>>>8;H[b+19|0]=d>>>16;H[b+20|0]=d>>>24;H[b+21|0]=c;H[b+22|0]=c>>>8;H[b+23|0]=c>>>16;H[b+24|0]=c>>>24;c=K[250825]|K[250826]<<8|(K[250827]<<16|K[250828]<<24);H[b+25|0]=c;H[b+26|0]=c>>>8;H[b+27|0]=c>>>16;H[b+28|0]=c>>>24;J[J[a+124>>2]+276>>2]=0;b=J[a+140>>2];if(!b){b=Ab[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+140>>2]=b}H[b+16|0]=K[251056];c=J[62763];J[b+8>>2]=J[62762];J[b+12>>2]=c;c=J[62761];J[b>>2]=J[62760];J[b+4>>2]=c;Mb(J[a+140>>2]+17|0,251072,162);J[J[a+140>>2]+276>> -2]=0;H[a+160|0]=0;H[a+161|0]=0;H[a+162|0]=0;H[a+163|0]=0;H[a+164|0]=0;H[a+165|0]=0;H[a+166|0]=0;H[a+167|0]=0;H[a+152|0]=0;H[a+153|0]=0;H[a+154|0]=0;H[a+155|0]=0;H[a+156|0]=0;H[a+157|0]=0;H[a+158|0]=0;H[a+159|0]=0;H[a+168|0]=1;H[a+169|0]=1;H[a+170|0]=1;H[a+171|0]=1;H[a+172|0]=1;H[a+173|0]=1;H[a+174|0]=1;H[a+175|0]=1;H[a+176|0]=1;H[a+177|0]=1;H[a+178|0]=1;H[a+179|0]=1;H[a+180|0]=1;H[a+181|0]=1;H[a+182|0]=1;H[a+183|0]=1;H[a+184|0]=5;H[a+185|0]=5;H[a+186|0]=5;H[a+187|0]=5;H[a+188|0]=5;H[a+189|0]=5;H[a+ -190|0]=5;H[a+191|0]=5;H[a+192|0]=5;H[a+193|0]=5;H[a+194|0]=5;H[a+195|0]=5;H[a+196|0]=5;H[a+197|0]=5;H[a+198|0]=5;H[a+199|0]=5;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;J[a+220>>2]=0;J[a+224>>2]=1;J[a+236>>2]=0;J[a+240>>2]=0;J[a+252>>2]=65537;H[a+250|0]=0;I[a+248>>1]=257;J[a+216>>2]=J[a+72>>2]>8;a:{b:{c:switch(J[a+40>>2]){case 1:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+76>>2]=1;J[a+80>>2]=1;J[a+ -244>>2]=1;a=J[a+84>>2];J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=1;break a;case 4:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}J[a+256>>2]=1;J[a+244>>2]=0;J[a+76>>2]=4;J[a+80>>2]=4;a=J[a+84>>2];J[a+264>>2]=75;J[a+176>>2]=89;J[a+88>>2]=77;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=67;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=1;J[a+276>>2]=1;J[a+200>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>> -2]=1;J[a+188>>2]=1;J[a+112>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=1;J[a+100>>2]=1;break a;case 5:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}J[a+256>>2]=1;J[a+244>>2]=0;J[a+76>>2]=4;J[a+80>>2]=5;a=J[a+84>>2];J[a+264>>2]=4;J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=2;J[a+276>>2]=2;break b;case 0:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>> -2]=b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}c=0;J[a+256>>2]=0;J[a+244>>2]=0;J[a+80>>2]=0;b=J[a+36>>2];J[a+76>>2]=b;d:{if(b-11>>>0<=4294967285){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=27;J[J[a>>2]+28>>2]=10;Ab[J[J[a>>2]>>2]](a);b=J[a+76>>2];if((b|0)<=0)break d}f=b&1;d=J[a+84>>2];if((b|0)!=1){g=b&-2;b=0;while(1){a=d+P(c,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=c;e=c|1;a=d+P(e,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=e;c=c+2|0;b=b+2|0;if((g| -0)!=(b|0))continue;break}}if(!f)break d;a=d+P(c,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=c}break a;default:b=J[a>>2];J[b+20>>2]=10;Ab[J[b>>2]](a);break a;case 2:case 3:break c}b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+76>>2]=3;J[a+80>>2]=3;J[a+244>>2]=1;a=J[a+84>>2];J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1}J[a+200>>2]=1;J[a+192>>2]=1;J[a+196>> -2]=1;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=1;J[a+104>>2]=1;J[a+108>>2]=1;J[a+96>>2]=1;J[a+100>>2]=1}}function Gs(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=xb-112|0;xb=g;a:{if(!a){f=-102;break a}i=-1;h=J[a+48>>2];f=J[a+76>>2]+J[a+92>>2]|0;j=J[a+88>>2];k=j+J[a+72>>2]|0;f=k>>>0>>0?f+1|0:f;b:{if(_e(a,h,k,f,0))break b;if(de(a,J[a+48>>2],g+12|0))break b;i=J[g+12>>2]!=33639248?-103:0}c:{d:{h=J[a+48>>2];e:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+24|0,1)|0)==1){f=K[g+24|0];break e}if(Ab[J[a+24>>2]](J[a+ -28>>2],h)|0)break d;f=0}f:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+24>>2]=f|K[g+16|0]<<8;break f}h=Ab[J[a+24>>2]](J[a+28>>2],h)|0;J[g+24>>2]=h?0:P(f,257);f=-1;if(h)break c}f=i;break c}J[g+24>>2]=0;f=-1}i=f;g:{h:{h=J[a+48>>2];i:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break i}if(Ab[J[a+24>>2]](J[a+28>>2],h)|0)break h;f=0}j:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+28>>2]=f|K[g+16|0]<<8;break j}h=Ab[J[a+24>>2]](J[a+28>>2],h)|0;J[g+28>>2]=h?0:P(f,257);f=-1; -if(h)break g}f=i;break g}J[g+28>>2]=0;f=-1}i=f;k:{l:{h=J[a+48>>2];m:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break m}if(Ab[J[a+24>>2]](J[a+28>>2],h)|0)break l;f=0}n:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+32>>2]=f|K[g+16|0]<<8;break n}h=Ab[J[a+24>>2]](J[a+28>>2],h)|0;J[g+32>>2]=h?0:P(f,257);f=-1;if(h)break k}f=i;break k}J[g+32>>2]=0;f=-1}i=f;o:{p:{h=J[a+48>>2];q:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break q}if(Ab[J[a+24>>2]](J[a+28>>2],h)|0)break p; -f=0}r:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+36>>2]=f|K[g+16|0]<<8;break r}h=Ab[J[a+24>>2]](J[a+28>>2],h)|0;J[g+36>>2]=h?0:P(f,257);f=-1;if(h)break o}f=i;break o}J[g+36>>2]=0;f=-1}h=f;j=de(a,J[a+48>>2],g+40|0);f=J[g+40>>2];J[g+108>>2]=(f>>>25|0)+1980;J[g+100>>2]=f>>>16&31;J[g+96>>2]=f>>>11&31;J[g+92>>2]=f>>>5&63;J[g+104>>2]=(f>>>21&15)-1;J[g+88>>2]=f<<1&62;k=de(a,J[a+48>>2],g+44|0);l=de(a,J[a+48>>2],g+8|0);J[g+48>>2]=J[g+8>>2];J[g+52>>2]=0;m=de(a,J[a+48>>2],g+8|0);J[g+56>>2]=J[g+8>> -2];J[g+60>>2]=0;s:{t:{i=J[a+48>>2];u:{if((Ab[J[a+4>>2]](J[a+28>>2],i,g+16|0,1)|0)==1){f=K[g+16|0];break u}if(Ab[J[a+24>>2]](J[a+28>>2],i)|0)break t;f=0}v:{if((Ab[J[a+4>>2]](J[a+28>>2],i,g+16|0,1)|0)==1){J[g+64>>2]=f|K[g+16|0]<<8;break v}n=P(f,257);f=Ab[J[a+24>>2]](J[a+28>>2],i)|0;J[g+64>>2]=f?0:n;i=-1;if(f)break s}i=l|m|(j|k)?-1:h;break s}J[g+64>>2]=0;i=-1}w:{x:{h=J[a+48>>2];y:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break y}if(Ab[J[a+24>>2]](J[a+28>>2],h)|0)break x;f=0}z:{if((Ab[J[a+ -4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+68>>2]=f|K[g+16|0]<<8;break z}h=Ab[J[a+24>>2]](J[a+28>>2],h)|0;J[g+68>>2]=h?0:P(f,257);f=-1;if(h)break w}f=i;break w}J[g+68>>2]=0;f=-1}i=f;A:{B:{h=J[a+48>>2];C:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break C}if(Ab[J[a+24>>2]](J[a+28>>2],h)|0)break B;f=0}D:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+72>>2]=f|K[g+16|0]<<8;break D}h=Ab[J[a+24>>2]](J[a+28>>2],h)|0;J[g+72>>2]=h?0:P(f,257);f=-1;if(h)break A}f=i;break A}J[g+72>>2]=0; -f=-1}i=f;E:{F:{h=J[a+48>>2];G:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break G}if(Ab[J[a+24>>2]](J[a+28>>2],h)|0)break F;f=0}H:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+76>>2]=f|K[g+16|0]<<8;break H}h=Ab[J[a+24>>2]](J[a+28>>2],h)|0;J[g+76>>2]=h?0:P(f,257);f=-1;if(h)break E}f=i;break E}J[g+76>>2]=0;f=-1}I:{J:{h=J[a+48>>2];K:{if((Ab[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){i=K[g+16|0];break K}if(Ab[J[a+24>>2]](J[a+28>>2],h)|0)break J;i=0}L:{if((Ab[J[a+4>>2]](J[a+28>>2], -h,g+16|0,1)|0)==1){J[g+80>>2]=i|K[g+16|0]<<8;break L}h=Ab[J[a+24>>2]](J[a+28>>2],h)|0;J[g+80>>2]=h?0:P(i,257);i=-1;if(h)break I}i=f;break I}J[g+80>>2]=0;i=-1}f=de(a,J[a+48>>2],g+84|0);h=de(a,J[a+48>>2],g+8|0);J[g+16>>2]=J[g+8>>2];J[g+20>>2]=0;f=f|h?-1:i;i=J[g+64>>2];if(!(f|!d)){h=e;if(i>>>0>>0){H[d+i|0]=0;h=i}f=0;if(!(!e|!i))f=(Ab[J[a+4>>2]](J[a+28>>2],J[a+48>>2],d,h)|0)!=(h|0)?-1:0;i=i-h|0}h=J[g+68>>2];d=i+h|0;if(!(!h|f)){f=0;if((d|0)!=(h|0)){d=d-h|0;f=_e(a,J[a+48>>2],d,d>>31,1)?-1:0}l=g+56|0; -m=g+48|0;d=0;while(1){j=J[a+48>>2];M:{N:{if((Ab[J[a+4>>2]](J[a+28>>2],j,g+4|0,1)|0)==1){i=K[g+4|0];break N}e=-1;i=0;if(Ab[J[a+24>>2]](J[a+28>>2],j)|0)break M}if((Ab[J[a+4>>2]](J[a+28>>2],j,g+4|0,1)|0)==1){e=f;i=K[g+4|0]<<8|i;break M}e=f;f=Ab[J[a+24>>2]](J[a+28>>2],j)|0;e=f?-1:e;i=f?0:P(i,257)}j=i;k=J[a+48>>2];O:{P:{if((Ab[J[a+4>>2]](J[a+28>>2],k,g+4|0,1)|0)==1){i=K[g+4|0];break P}f=-1;i=0;if(Ab[J[a+24>>2]](J[a+28>>2],k)|0)break O}if((Ab[J[a+4>>2]](J[a+28>>2],k,g+4|0,1)|0)==1){f=e;i=K[g+4|0]<<8|i; -break O}f=e;e=Ab[J[a+24>>2]](J[a+28>>2],k)|0;f=e?-1:f;i=e?0:P(i,257)}Q:{if((j|0)==1){if(!J[g+60>>2]&J[g+56>>2]==-1)f=mh(a,J[a+48>>2],l)?-1:f;if(!J[g+52>>2]&J[g+48>>2]==-1)f=mh(a,J[a+48>>2],m)?-1:f;if(!J[g+20>>2]&J[g+16>>2]==-1)f=mh(a,J[a+48>>2],g+16|0)?-1:f;if(J[g+76>>2]==-1)f=de(a,J[a+48>>2],g+4|0)?-1:f;h=J[g+68>>2];break Q}f=_e(a,J[a+48>>2],i,0,1)?-1:f}d=(d+i|0)+4|0;if(h>>>0>d>>>0)continue;break}}if(!(f|!b))Mb(b,g+24|0,88);if(f|!c)break a;a=J[g+20>>2];J[c>>2]=J[g+16>>2];J[c+4>>2]=a;f=0}xb=g+112| -0;return f}function fm(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;e=xb-1488|0;xb=e;h=J[a+4>>2];l=J[h+556>>2];p=J[l+40>>2];a:{b:{c:{i=J[h+712>>2];if(J[i+1504>>2]==65535)break c;f=J[i+1192>>2];if(!f)break c;if(!c){c=0;break b}g=6;if(M[i+1196>>2]>>0)break a;c=L[f+(c<<1)>>1];if(c)break b;break a}g=6;if(M[i+20>>2]<=c>>>0)break a}J[a+164>>2]=65536;J[a+168>>2]=65536;m=d&1024?d|3:d;d:{e:{if(!b)break e;J[a+164>>2]=J[b+16>>2];J[a+168>>2]=J[b+20>>2];k=J[b+44>>2];if(m&8|(k| -0)==-1)break e;f=J[b>>2];d=J[f+540>>2];if(!J[d+96>>2])break e;if(Ab[J[d+72>>2]](h,k,c,m,J[f+104>>2],a+76|0,e+708|0)|0)break e;J[a+108>>2]=0;J[a+24>>2]=L[e+710>>1]<<6;J[a+28>>2]=L[e+708>>1]<<6;j=I[e+712>>1];J[a+32>>2]=j<<6;k=I[e+714>>1];J[a+36>>2]=k<<6;J[a+40>>2]=L[e+716>>1]<<6;f=I[e+718>>1];J[a+44>>2]=f<<6;b=I[e+720>>1];J[a+48>>2]=b<<6;d=L[e+722>>1];g=b;b=m&16;J[a+104>>2]=b?g:k;J[a+100>>2]=b?f:j;J[a+72>>2]=1651078259;J[a+52>>2]=d<<6;d=e+32|0;b=e+52|0;Ab[J[J[h+540>>2]+140>>2]](h,0,c,d,b);J[a+56>>2]= -L[e+52>>1];if(!(!K[h+292|0]|!L[h+330>>1])){Ab[J[J[h+540>>2]+140>>2]](h,1,c,d,b);J[a+60>>2]=L[e+52>>1];break d}if(L[h+372>>1]!=65535){J[a+60>>2]=I[h+442>>1]-I[h+444>>1];break d}J[a+60>>2]=I[h+220>>1]-I[h+222>>1];break d}g=6;if(m&16384)break a;j=J[i+2024>>2];f:{if(j){g=0;f=J[i+3060>>2];g:{if(!f)break g;h:switch(K[i+3052|0]){case 0:g=K[c+f|0];break g;case 3:break h;default:break g}if(M[i+3072>>2]>c-J[i+3068>>2]>>>0){g=K[i+3076|0];break g}g=f+2|0;d=K[f+1|0]|K[f|0]<<8;k=f+J[i+3064>>2]|0;while(1){if(c>>> -0>=d>>>0){f=K[g+2|0]|K[g+1|0]<<8;if(f>>>0>c>>>0){g=K[g|0];H[i+3076|0]=g;J[i+3072>>2]=f-d;J[i+3068>>2]=d;break g}d=f;g=g+3|0;if(k>>>0>g>>>0)continue}break}g=0}j=J[(i+(((j>>>0>(g&255)>>>0?g:j-1|0)&255)<<2)|0)+2028>>2];k=J[j+68>>2];f=J[i+1440>>2];d=J[j+60>>2];J[e+40>>2]=J[j+56>>2];J[e+44>>2]=d;d=J[j+52>>2];J[e+32>>2]=J[j+48>>2];J[e+36>>2]=d;n=J[j+76>>2];o=J[j+72>>2];if((f|0)==(k|0))break f;s=a,t=hc(J[a+164>>2],f,k),J[s+164>>2]=t;s=a,t=hc(J[a+168>>2],f,k),J[s+168>>2]=t;r=1;break f}f=i+1428|0;d=J[f+4>> -2];J[e+40>>2]=J[f>>2];J[e+44>>2]=d;f=i+1420|0;d=J[f+4>>2];J[e+32>>2]=J[f>>2];J[e+36>>2]=d;n=J[i+1448>>2];o=J[i+1444>>2]}J[a+108>>2]=0;J[a+72>>2]=1869968492;j=m&1;H[a+161|0]=!j;q=!(m&2);H[a+160|0]=q;Ab[J[p>>2]](e+708|0,h,b,a,q,m>>>16&15,8,9);if(m&256)H[e+1301|0]=1;k=m&1024;H[e+774|0]=k>>>10;d=J[J[h+128>>2]+52>>2];i:{if(d){g=Ab[J[J[d>>2]>>2]](J[d+4>>2],c,e+52|0)|0;J[e+28>>2]=J[e+52>>2];J[e+24>>2]=J[e+56>>2];break i}g=uo(J[h+712>>2]+1204|0,c,e+28|0,e+24|0)}if(g)break a;d=e+708|0;g=Ab[J[p+4>>2]](d,b, -c)|0;if(g)break a;f=e+52|0;Ab[J[l+24>>2]](f,d,0);d=J[e+24>>2];g=Ab[J[p+8>>2]](f,J[e+28>>2],d)|0;if((g&255)==164){H[a+160|0]=0;q=0;g=Ab[J[p+8>>2]](f,J[e+28>>2],d)|0;r=1}f=J[J[h+128>>2]+52>>2];j:{if(f){J[e+12>>2]=d;J[e+8>>2]=J[e+28>>2];Ab[J[J[f>>2]+4>>2]](J[f+4>>2],e+8|0);break j}f=J[h+712>>2];if(J[f+1236>>2])break j;rd(J[f+1204>>2],e+28|0)}if(g)break a;g=0;k:{if(J[J[h+128>>2]+52>>2])d=0;else{f=J[i+1232>>2];if(!f)break k;g=(J[i+1236>>2]+J[f+(c<<2)>>2]|0)-1|0}J[a+140>>2]=d;J[a+136>>2]=g}Ab[J[e+788>> -2]](e+708|0);l=J[J[h+128>>2]+52>>2];l:{if(!l)break l;f=J[J[l>>2]+8>>2];if(!f)break l;J[e+12>>2]=0;J[e+8>>2]=J[e+740>>2];d=J[e+752>>2];J[e+16>>2]=J[e+748>>2];J[e+20>>2]=d;g=Ab[f|0](J[l+4>>2],c,0,e+8|0)|0;J[e+740>>2]=J[e+8>>2];d=J[e+20>>2];J[e+748>>2]=J[e+16>>2];J[e+752>>2]=d;if(g)break a}if(k){J[a+32>>2]=J[e+740>>2];J[a+40>>2]=J[e+1292>>2];f=J[e+40>>2];d=J[e+44>>2];c=J[e+32>>2];b=J[e+36>>2];a=J[a+156>>2];J[a+28>>2]=o;J[a+32>>2]=n;H[a+8|0]=1;J[a+20>>2]=f;J[a+24>>2]=d;J[a+12>>2]=c;J[a+16>>2]=b;break d}m:{if(L[h+ -250>>1]){I[e+8>>1]=0;I[e+28>>1]=0;Ab[J[J[h+540>>2]+140>>2]](h,0,c,e+8|0,e+28|0);d=L[e+28>>1];J[a+32>>2]=I[e+8>>1];break m}d=J[e+1292>>2]}J[a+56>>2]=d;J[a+40>>2]=d;H[J[a+156>>2]+8|0]=0;n:{if(!(!K[h+292|0]|!L[h+330>>1])){I[e+8>>1]=0;I[e+28>>1]=0;Ab[J[J[h+540>>2]+140>>2]](h,1,c,e+8|0,e+28|0);J[a+48>>2]=I[e+8>>1];d=L[e+28>>1];J[a+52>>2]=d;f=1;break n}if(L[h+372>>1]!=65535)d=I[h+442>>1]-I[h+444>>1]|0;else d=I[h+220>>1]-I[h+222>>1]|0;J[a+52>>2]=d;f=0}J[a+72>>2]=1869968492;J[a+60>>2]=d;l=a+108|0;J[a+124>> -2]=b?L[b+14>>1]<24?260:4:4;o:{if(!(J[e+36>>2]|(J[e+32>>2]!=65536|J[e+44>>2]!=65536)))if(!J[e+40>>2])break o;nh(l,e+32|0);s=a,t=Rb(J[a+40>>2],J[e+32>>2]),J[s+40>>2]=t;s=a,t=Rb(J[a+52>>2],J[e+44>>2]),J[s+52>>2]=t}if(n|o){me(l,o,n);J[a+40>>2]=J[a+40>>2]+o;J[a+52>>2]=J[a+52>>2]+n}if(!(!r&j)){j=J[a+168>>2];k=J[a+164>>2];p:{if(J[e+776>>2]!=0&q)break p;b=I[a+110>>1];if((b|0)<=0)break p;c=b&65535;d=J[a+112>>2];while(1){s=d,t=Rb(J[d>>2],k),J[s>>2]=t;s=d,t=Rb(J[d+4>>2],j),J[s+4>>2]=t;d=d+8|0;b=c>>>0>1;c=c- -1|0;if(b)continue;break}}s=a,t=Rb(J[a+40>>2],k),J[s+40>>2]=t;s=a,t=Rb(J[a+52>>2],j),J[s+52>>2]=t}fi(l,e+8|0);d=J[e+8>>2];J[a+24>>2]=J[e+16>>2]-d;c=J[e+12>>2];b=J[e+20>>2];J[a+36>>2]=b;J[a+32>>2]=d;J[a+28>>2]=b-c;if(f){J[a+44>>2]=d+(J[a+40>>2]/-2|0);s=a,t=Rb(J[a+48>>2],J[a+168>>2]),J[s+48>>2]=t;break d}if(!(m&16))break d;lk(a+24|0,J[a+52>>2])}g=0}xb=e+1488|0;return g}function Pn(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=1;b=L[a+32>>1];a:{if(b>>>0>6)break a;b:{c:{c=1<>1];b=1<>2];c=e;g=J[a+40>>2];d=g;h=J[a+44>>2];f=h;while(1){if((b|0)<=0)break c;if(!(L[c>>1]>255|L[d>>1]>255)){b=b-1|0;c=c+2|0;d=d+2|0;j=L[f>>1];f=f+2|0;if(j>>>0<256)continue}break}c=-1<>1]=K[d+1|0];d=b+g|0;I[d>>1]=K[d+1|0];b=b+h|0;I[b>>1]=K[b+1|0];b=-2-c|0}if(!i)break b;while(1){c=b<<1;d=c+e|0;I[d>>1]=K[d+1|0];d=c+g|0;I[d>>1]=K[d+1|0];d=c+h|0;I[d>>1]=K[d+1|0];c=c-2|0;d=c+e|0;I[d>>1]=K[d+1|0];d=c+g|0;I[d>>1]=K[d+1|0];c=c+ -h|0;I[c>>1]=K[c+1|0];c=(b|0)>1;b=b-2|0;if(c)continue;break}break b}if(L[a+24>>1]==8)break a}b=L[a+24>>1];c=(b|0)==16?255:-1<>2]=b;if(!b){a=J[a>>2];Ob(J[a+628>>2],J[a>>2],275071,0);return 0}e:{f:{g:{if(L[a+32>>1]){if(c)break g;b=0;break f}h:{if(!c){b=0;break h}g=c+1&-2;b=0;while(1){H[J[a+56>>2]+b|0]=(P(c-b|0,255)|0)/(c|0);h=b|1;H[h+J[a+56>>2]|0]=(P(c-h|0,255)|0)/(c|0);b=b+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(c&1)break e;H[J[a+56>>2]+b|0]=(P(c-b|0,255)|0)/(c|0);break e}g= -c+1&-2;b=0;while(1){H[J[a+56>>2]+b|0]=(P(b,255)>>>0)/(c>>>0);h=b|1;H[h+J[a+56>>2]|0]=(P(h,255)>>>0)/(c>>>0);b=b+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(c&1)break e;H[J[a+56>>2]+b|0]=(P(b,255)>>>0)/(c>>>0)}g=L[a+24>>1];if(g>>>0>16|L[a+32>>1]>1)break a;e=J[a+56>>2];b=Qb(g>>>0>8?2048:(8/((g&255)>>>0)<<10)+1024|0);J[a+60>>2]=b;i:{j:{if(b){b=b+1024|0;c=0;k:switch(g-1|0){case 1:while(1){J[J[a+60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[e+(c>>>6|0)|0],65793)|-16777216;J[b+4>>2]=P(K[e+(c>>>4&3)|0],65793)|-16777216; -J[b+8>>2]=P(K[e+(c>>>2&3)|0],65793)|-16777216;J[b+12>>2]=P(K[e+(c&3)|0],65793)|-16777216;b=b+16|0;c=c+1|0;if((c|0)!=256)continue;break}break i;case 3:while(1){J[J[a+60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[e+(c>>>4|0)|0],65793)|-16777216;J[b+4>>2]=P(K[e+(c&15)|0],65793)|-16777216;b=b+8|0;c=c+1|0;if((c|0)!=256)continue;break}break i;case 7:case 15:while(1){J[J[a+60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[c+e|0],65793)|-16777216;g=c|1;J[J[a+60>>2]+(g<<2)>>2]=b+4;J[b+4>>2]=P(K[e+g|0],65793)|-16777216;b=b+8|0;c=c+2|0;if((c| -0)!=256)continue;break}break i;case 0:break j;default:break k}while(1){e=c<<2;J[e+J[a+60>>2]>>2]=b;J[J[a+60>>2]+(e|4)>>2]=b;J[J[a+60>>2]+(e|8)>>2]=b;J[J[a+60>>2]+(e|12)>>2]=b;c=c+4|0;if((c|0)!=256)continue;break}break i}a=J[a>>2];Ob(J[a+628>>2],J[a>>2],275228,0);return 0}while(1){J[J[a+60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[e+(c>>>7|0)|0],65793)|-16777216;J[b+4>>2]=P(K[e+(c>>>6&1)|0],65793)|-16777216;J[b+8>>2]=P(K[e+(c>>>5&1)|0],65793)|-16777216;J[b+12>>2]=P(K[e+(c>>>4&1)|0],65793)|-16777216;J[b+16>>2]= -P(K[e+(c>>>3&1)|0],65793)|-16777216;J[b+20>>2]=P(K[e+(c>>>2&1)|0],65793)|-16777216;J[b+24>>2]=P(K[e+(c>>>1&1)|0],65793)|-16777216;J[b+28>>2]=P(K[e+(c&1)|0],65793)|-16777216;b=b+32|0;c=c+1|0;if((c|0)!=256)continue;break}}Kb(J[a+56>>2]);J[a+56>>2]=0;return 1}b=J[a>>2];yc(J[b+628>>2],J[b>>2],274952,0)}d=1;f=L[a+24>>1];if(f>>>0>8)break a;e=J[a+44>>2];g=J[a+40>>2];h=J[a+36>>2];b=Qb((8/((f&255)>>>0)<<10)+1024|0);J[a+64>>2]=b;if(b){b=b+1024|0;c=0;l:switch(f-1|0){case 0:while(1){J[J[a+64>>2]+(c<<2)>>2]=b; -d=c>>>6&67108862;J[b>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>5&2;J[b+4>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>4&2;J[b+8>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>3&2;J[b+12>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>2&2;J[b+16>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=1;f=c>>>1&2;J[b+20>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;f=c&2;J[b+24>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+ -f>>1]<<8)&65535|-16777216;f=c<<1&2;J[b+28>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;b=b+32|0;c=c+1|0;if((c|0)!=256)continue;break}break a;case 1:while(1){J[J[a+64>>2]+(c<<2)>>2]=b;d=c>>>5&134217726;J[b>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>3&6;J[b+4>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=1;f=c>>>1&6;J[b+8>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;f=c<<1&6;J[b+12>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216; -b=b+16|0;c=c+1|0;if((c|0)!=256)continue;break}break a;case 3:while(1){J[J[a+64>>2]+(c<<2)>>2]=b;d=c>>>3&536870910;J[b>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=1;f=c<<1&30;J[b+4>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;b=b+8|0;c=c+1|0;if((c|0)!=256)continue;break}break a;case 7:while(1){J[J[a+64>>2]+(c<<2)>>2]=b;f=c<<1;J[b>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;b=b+4|0;c=c+1|0;if((c|0)!=256)continue;break}break a;default:break l}while(1){e=c<< -2;J[e+J[a+64>>2]>>2]=b;J[J[a+64>>2]+(e|4)>>2]=b;J[J[a+64>>2]+(e|8)>>2]=b;J[J[a+64>>2]+(e|12)>>2]=b;c=c+4|0;if((c|0)!=256)continue;break}break a}d=0;a=J[a>>2];Ob(J[a+628>>2],J[a>>2],275413,0)}return d}function Mo(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;a:{d=J[b+12>>2];c=J[b+4>>2];b:{if(d>>>0>>0)break b;f=J[b+8>>2];if(K[a|0]|K[a+1|0]<<8|f-a>>>0<4)break b;m=a+2|0;if(d>>>0>>0|f-m>>>0<2)break b;j=a+4|0;if(d>>>0>>0)break b;c=K[a+2|0]|K[a+3|0]<<8;c=((c<<8| -c>>>8)&65535)<<3;if(c>>>0>f-j>>>0)break b;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break b;e=1;c=K[m|0]|K[m+1|0]<<8;if(!c)break b;c=(c<<8|c>>>8)&65535;p=c>>>0<=1?1:c;while(1){i=J[b+12>>2];c=(o<<3)+m|0;e=c+2|0;d=J[b+4>>2];if(i>>>0>>0)break a;f=J[b+8>>2];if(f-e>>>0<8)break a;j=c+6|0;if(i>>>0>>0|f-j>>>0<4|K[j|0]&128)break a;c=K[j|0]|K[j+1|0]<<8|(K[j+2|0]<<16|K[j+3|0]<<24);c:{if(!c)break c;d:{e:{f:{e=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;if(i>>>0>>0|f-e>>>0<2)break f;c=1;g:{h:{i:{j:{k:{l:{m:{n:{d= -K[e|0]|K[e+1|0]<<8;switch((d<<8|d>>>8)&65535){case 13:break i;case 12:break j;case 10:break k;case 6:break l;case 4:break m;case 0:break n;case 14:break h;default:break g}}c=J[b+8>>2]-e>>>0>261&M[b+12>>2]>=e-J[b+4>>2]>>>0;break d}c=M[b+12>>2]>2]>>>0;if(c)break f;d=J[b+8>>2]-e|0;if(d>>>0<14)break f;o:{p:{if(c)break p;c=K[e+2|0]|K[e+3|0]<<8;c=(c<<8|c>>>8)&65535;if(d>>>0>>0)break p;f=J[b+16>>2]-c|0;J[b+16>>2]=f;if((f|0)>0)break o}c=J[b+32>>2];if(c>>>0>31)break f;J[b+32>>2]=c+1;c=0;if(!K[b+ -28|0])break g;c=d>>>0>=65535?65535:d;d=c<<8|(c&65280)>>>8;H[e+2|0]=d;H[e+3|0]=d>>>8}g=c;c=K[e+6|0]|K[e+7|0]<<8;c=g>>>0>=(((c<<8|c>>>8)&65535)<<2)+16>>>0;break d}d=J[b+12>>2];c=J[b+4>>2];if(d>>>0>>0)break f;f=J[b+8>>2];if(f-e>>>0<10)break f;i=e+8|0;if(d>>>0>>0|f-i>>>0<2)break f;i=e+10|0;if(d>>>0>>0)break f;c=0;d=K[e+8|0]|K[e+9|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>f-i>>>0)break g;c=J[b+16>>2]-d|0;J[b+16>>2]=c;c=(c|0)>0;break d}g=J[b+12>>2];c=g;f=J[b+4>>2];if(c>>>0>>0)break f; -i=J[b+8>>2];if(i-e>>>0<20)break f;d=e+16|0;if(c>>>0>>0)break f;c=0;if(i-d>>>0<4)break g;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if((d|0)<0)break g;e=e+20|0;if(e-f>>>0>g>>>0)break g;d=d<<1;if(d>>>0>i-e>>>0)break g;break e}g=J[b+12>>2];i=J[b+4>>2];if(g>>>0>>0)break f;h=J[b+8>>2];if(h-e>>>0<16)break f;c=e+12|0;if(g>>>0>>0|h-c>>>0<4)break f;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);d=Kpa(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24),0, -12,0);if(zb)break f;f=e+16|0;if(g>>>0>>0)break f;c=0;if(h-f>>>0>>0)break g;break e}g=J[b+12>>2];i=J[b+4>>2];if(g>>>0>>0)break f;h=J[b+8>>2];if(h-e>>>0<16)break f;c=e+12|0;if(g>>>0>>0|h-c>>>0<4)break f;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);d=Kpa(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24),0,12,0);if(zb)break f;f=e+16|0;if(g>>>0>>0)break f;c=0;if(h-f>>>0>>0)break g;break e}h=J[b+12>>2];c=h;d=J[b+4>>2];if(c>>>0>>0)break f;g=J[b+8>>2];if(g-e>>>0<10)break f;i=e+6| -0;if(c>>>0>>0|g-i>>>0<4)break f;c=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);c=Kpa(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24),0,11,0);if(zb)break f;f=e+10|0;if(h>>>0>>0|c>>>0>g-f>>>0)break f;d=J[b+16>>2]-c|0;J[b+16>>2]=d;c=0;if((d|0)<=0)break g;c=1;d=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);if(!d)break g;c=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);q=c>>>0<=1?1:c;n=0;while(1){q:{r:{c=J[b+12>>2];k=(i+P(n,11)|0)+4|0;f=J[b+4>>2];if(c>>>0>>0)break r;d=J[b+8>>2];if(d-k>>>0<11)break r; -g=k+3|0;if(g-f>>>0>c>>>0|d-g>>>0<4|K[g|0]&128)break r;h=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);s:{if(!h)break s;h=e+(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))|0;t:{if(h-f>>>0>c>>>0|d-h>>>0<4)break t;l=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);l=l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24);if(l>>>0>1073741823)break t;h=h+4|0;if(h-f>>>0>c>>>0)break t;r=d-h|0;h=l<<2;if(r>>>0>>0)break t;h=J[b+16>>2]-h|0;J[b+16>>2]=h;if((h|0)>0)break s}c=J[b+32>>2];if(c>>>0>31)break r;J[b+32>>2]=c+1;if(!K[b+ -28|0])break r;H[g|0]=0;H[g+1|0]=0;H[g+2|0]=0;H[g+3|0]=0;d=J[b+8>>2];c=J[b+12>>2];f=J[b+4>>2]}g=k+7|0;if(g-f>>>0>c>>>0|d-g>>>0<4|K[g|0]&128)break r;c=1;d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);u:{if(!d)break u;k=J[b+12>>2];f=e+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;h=J[b+4>>2];v:{if(k>>>0>>0|J[b+8>>2]-f>>>0<4)break v;d=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);d=Kpa(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24),0,5,0);if(zb)break v;f=f+4|0;if(k>>>0>>0|d>>>0>J[b+8>>2]-f>>>0)break v; -d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)>0)break u}c=J[b+32>>2];if(c>>>0>31)break r;J[b+32>>2]=c+1;c=0;if(!K[b+28|0])break u;H[g|0]=0;H[g+1|0]=0;H[g+2|0]=0;H[g+3|0]=0;c=1}break q}c=0}if(!c)break g;n=n+1|0;if((q|0)!=(n|0))continue;break}}break d}c=0;break d}c=J[b+16>>2]-d|0;J[b+16>>2]=c;c=(c|0)>0}if(c)break c;c=J[b+32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;if(!K[b+28|0])break a;H[j|0]=0;H[j+1|0]=0;H[j+2|0]=0;H[j+3|0]=0}e=1;o=o+1|0;if((p|0)!=(o|0))continue;break}}return e}return 0}function YY(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;var h=0,i=0,j=0,k=0,l=0;h=xb-256|0;xb=h;J[195395]=0;i=+(g|0);da(1863,h+80|0,+i,-1);g=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{if((g|0)!=1){g=J[h+88>>2];J[h+88>>2]=0;J[h+112>>2]=g;J[h+92>>2]=120;J[h+96>>2]=0;l=J[h+80>>2];g=J[h+84>>2];J[h+80>>2]=0;J[h+84>>2]=0;J[h+104>>2]=l;J[h+108>>2]=g;J[195395]=0;H[h+103|0]=1;j=+(f|0);da(1863,h- -64|0,+j,-1);f=J[195395];J[195395]=0;if((f|0)==1)break u;f=J[h+68>>2];J[h+128>> -2]=J[h+64>>2];J[h+132>>2]=f;f=J[h+72>>2];J[h+72>>2]=0;J[h+136>>2]=f;J[h+116>>2]=121;J[h+120>>2]=0;J[h+64>>2]=0;J[h+68>>2]=0;J[195395]=0;H[h+127|0]=1;da(1863,h+48|0,+(+(e|0)-i),-1);e=J[195395];J[195395]=0;g=h+140|0;if((e|0)==1)break t;J[195395]=0;f=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break s;J[h+144>>2]=5;J[h+148>>2]=-2147483640;J[h+140>>2]=f;J[f+16>>2]=J[106548];e=J[106547];J[f+8>>2]=J[106546];J[f+12>>2]=e;e=J[106545];J[f>>2]=J[106544];J[f+4>>2]=e;J[f+20>>2]=0;J[h+160>>2]=J[h+56>>2]; -J[h+56>>2]=0;e=J[h+52>>2];J[h+152>>2]=J[h+48>>2];J[h+156>>2]=e;J[h+48>>2]=0;J[h+52>>2]=0;J[195395]=0;da(1863,h+32|0,+(+(d|0)-j),-1);d=J[195395];J[195395]=0;g=h+164|0;if((d|0)==1)break r;J[195395]=0;e=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break q;J[h+168>>2]=6;J[h+172>>2]=-2147483640;J[h+164>>2]=e;d=J[106555];J[e+16>>2]=J[106554];J[e+20>>2]=d;d=J[106553];J[e+8>>2]=J[106552];J[e+12>>2]=d;d=J[106551];J[e>>2]=J[106550];J[e+4>>2]=d;J[e+24>>2]=0;J[h+184>>2]=J[h+40>>2];J[h+40>>2]=0;d=J[h+36>> -2];J[h+176>>2]=J[h+32>>2];J[h+180>>2]=d;J[h+32>>2]=0;J[h+36>>2]=0;J[195395]=0;da(1863,h+16|0,+(+(c|0)*.5),-1);c=J[195395];J[195395]=0;g=h+188|0;if((c|0)==1)break p;J[195395]=0;d=_(1078,16)|0;c=J[195395];J[195395]=0;if((c|0)==1)break o;J[h+192>>2]=2;J[h+196>>2]=-2147483644;J[h+188>>2]=d;J[d+8>>2]=0;J[d>>2]=114;J[d+4>>2]=120;J[h+208>>2]=J[h+24>>2];c=J[h+20>>2];J[h+200>>2]=J[h+16>>2];J[h+204>>2]=c;J[h+24>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[195395]=0;da(1863,h|0,+(+(b|0)*.5),-1);b=J[195395];J[195395]=0; -if((b|0)==1)break n;J[195395]=0;c=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;J[h+216>>2]=2;J[h+220>>2]=-2147483644;J[h+212>>2]=c;J[c+8>>2]=0;J[c>>2]=114;J[c+4>>2]=121;J[h+232>>2]=J[h+8>>2];b=J[h+4>>2];J[h+224>>2]=J[h>>2];J[h+228>>2]=b;J[h+8>>2]=0;J[h+244>>2]=0;J[h+236>>2]=0;J[h+240>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[195395]=0;H[h+252|0]=0;c=h+236|0;J[h+248>>2]=c;d=_(1078,144)|0;b=J[195395];J[195395]=0;v:{w:{if((b|0)!=1){J[h+240>>2]=d;J[h+236>>2]=d;J[195395]=0;J[h+244>>2]=d+144;c=ha(1957, -h+244|0,h+92|0,c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break v;f=Z()|0;J[h+240>>2]=d;break w}f=Z()|0}Kc(h+248|0);Vb(h+212|0);Vb(h+188|0);Vb(h+164|0);Vb(h+140|0);Vb(h+116|0);Vb(h+92|0);k=1;break l}J[h+240>>2]=c;if(H[h+235|0]<0)Kb(J[h+224>>2]);if(H[h+223|0]<0)Kb(J[h+212>>2]);if(H[h+211|0]<0)Kb(J[h+200>>2]);if(H[h+199|0]<0)Kb(J[h+188>>2]);if(H[h+187|0]<0)Kb(J[h+176>>2]);if(H[h+175|0]<0)Kb(J[h+164>>2]);if(H[h+163|0]<0)Kb(J[h+152>>2]);if(H[h+151|0]<0)Kb(J[h+140>>2]);if(H[h+139|0]<0)Kb(J[h+128>> -2]);if(H[h+127|0]<0)Kb(J[h+116>>2]);if(H[h+115|0]<0)Kb(J[h+104>>2]);if(H[h+103|0]<0)Kb(J[h+92>>2]);if(H[h+11|0]<0)Kb(J[h>>2]);if(H[h+27|0]<0)Kb(J[h+16>>2]);if(H[h+43|0]<0)Kb(J[h+32>>2]);if(H[h+59|0]<0)Kb(J[h+48>>2]);if(H[h+75|0]<0)Kb(J[h+64>>2]);if(H[h+91|0]<0)Kb(J[h+80>>2]);J[195395]=0;c=a+8|0;b=h+236|0;$(1963,c|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,c|0,b|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,c|0,b|0,0);a=J[195395];J[195395]=0;if((a| -0)==1)break e;J[195395]=0;ea(1958,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;d=_(1078,32)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[h+92>>2]=d;J[h+96>>2]=4;J[h+100>>2]=-2147483640;a=J[106633];J[d+8>>2]=J[106632];J[d+12>>2]=a;a=J[106631];J[d>>2]=J[106630];J[d+4>>2]=a;J[d+16>>2]=0;J[195395]=0;J[h+80>>2]=0;H[h+91|0]=0;ia(1961,c|0,h+92|0,b|0,h+80|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[h+91|0]<0)Kb(J[h+80>>2]);if(H[h+103|0]<0)Kb(J[h+92>>2]);b=J[h+236>>2];if(b){g=J[h+ -240>>2];f=b;if((g|0)!=(b|0)){while(1){if(H[g-1|0]<0)Kb(J[g-12>>2]);a=g-24|0;if(H[g-13|0]<0)Kb(J[a>>2]);g=a;if((g|0)!=(b|0))continue;break}f=J[h+236>>2]}J[h+240>>2]=b;Kb(f)}xb=h+256|0;return}ba(Z()|0);B()}g=h+116|0;f=Z()|0;break f}f=Z()|0;break g}f=Z()|0;break h}f=Z()|0;break h}f=Z()|0;break i}f=Z()|0;break i}f=Z()|0;break j}f=Z()|0;break k}f=Z()|0;k=0}if(H[h+11|0]>=0)break k;Kb(J[h>>2])}g=h+212|0}if(H[h+27|0]>=0)break i;Kb(J[h+16>>2])}if(H[h+43|0]>=0)break h;Kb(J[h+32>>2])}if(H[h+59|0]>=0)break g; -Kb(J[h+48>>2])}if(H[h+75|0]>=0)break f;Kb(J[h+64>>2])}if(H[h+91|0]<0)Kb(J[h+80>>2]);if((h+92|0)==(g|0)|k)break a;while(1){g=Vb(g-24|0);if((g|0)!=(h+92|0))continue;break}break a}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;if(H[h+91|0]<0)Kb(J[h+80>>2]);if(H[h+103|0]>=0)break b;Kb(J[h+92>>2])}Hc(h+236|0)}ba(f|0);B()}function Wj(a){a=a|0;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;f=xb-32|0;xb=f;g=J[a>>2]-12|0;c=J[g>>2];h=c+a|0;b=J[h+12>>2];i=J[h+16>>2];if(i>>>0>b+3>>> -0){J[h+12>>2]=b+4;c=J[g>>2];b=c+a|0;i=J[b+16>>2];b=J[b+12>>2]}a:{b:{c:{d:{e:{f:{if(b+3>>>0>=i>>>0)break f;h=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[(a+c|0)+12>>2]=b+4;if(!h)break f;b=0;g=J[g>>2]+a|0;c=J[g+12>>2];if(c+3>>>0>2]){b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[g+12>>2]=c+4}c=Pb(16);J[195395]=0;p=_(2090,c|0)|0;g=J[195395];J[195395]=0;g:{h:{i:{if((g|0)!=1){if(b&1048576)break f;if(b&16384){c=0;b=f+20|0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;if(h){j:{k:{if(h>>>0>=1073741824){J[195395]= -0;ea(2054,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break k;B()}J[195395]=0;i=h<<2;g=_(1078,i|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break j}c=Z()|0;a=J[b>>2];if(a){J[b+4>>2]=a;Kb(a)}ba(c|0);B()}J[b>>2]=g;e=g+i|0;J[b+8>>2]=e;j=Nb(g,0,i);J[b+4>>2]=e;l=J[a>>2]-12|0;while(1){i=j+(c<<2)|0;e=0;g=J[l>>2]+a|0;b=J[g+12>>2];o=J[g+16>>2];l:{if(b+1>>>0>=o>>>0){d=0;break l}d=K[b|0]|K[b+1|0]<<8;b=b+2|0;J[g+12>>2]=b}I[i>>1]=d;if(o>>>0>b+1>>>0){e=K[b|0]|K[b+1|0]<<8;J[g+12>>2]=b+2}I[i+2>>1]=e;c=c+1|0;if((h|0)!= -(c|0))continue;break}}J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;m:{n:{if((h|0)<0){J[195395]=0;ea(2091,f+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break n;break a}J[195395]=0;g=_(1078,h|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break m}a=Z()|0;g=J[f+8>>2];if(!g)break c;J[f+12>>2]=g;break d}J[f+8>>2]=g;b=0;i=Nb(g,0,h);e=J[a>>2]-12|0;if((h|0)!=1){l=h&-2;while(1){c=0;j=J[e>>2]+a|0;d=J[j+12>>2];if(d>>>0>2]){c=K[d|0];J[j+12>>2]=d+1}H[b+i|0]=c;c=0;j=J[e>>2]+a|0;d=J[j+12>>2];if(d>>>0>2]){c=K[d| -0];J[j+12>>2]=d+1}H[i+(b|1)|0]=c;b=b+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(h&1){d=b+i|0;b=0;e=J[e>>2]+a|0;c=J[e+12>>2];if(c>>>0>2]){b=K[c|0];J[e+12>>2]=c+1}H[d|0]=b}b=J[f+20>>2];c=I[b>>1];b=I[b+2>>1];J[195395]=0;e=p+4|0;ra(1902,e|0,+(c|0),+(b|0))|0;c=J[195395];J[195395]=0;b=1;if((c|0)!=1){if(h>>>0>1)while(1){o:{p:switch(K[b+i|0]&15){case 0:c=J[f+20>>2]+(b<<2)|0;d=I[c>>1];c=I[c+2>>1];J[195395]=0;ra(1902,e|0,+(d|0),+(c|0))|0;c=J[195395];J[195395]=0;if((c|0)!=1)break o;break e;case 1:c= -J[f+20>>2]+(b<<2)|0;d=I[c>>1];c=I[c+2>>1];J[195395]=0;ra(1906,e|0,+(d|0),+(c|0))|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;break o;case 3:break p;default:break o}c=b+2|0;if(c>>>0>=h>>>0)break o;d=J[f+20>>2];b=d+(b<<2)|0;k=I[b+4>>1];j=I[b+6>>1];l=I[b>>1];b=I[b+2>>1];d=d+(c<<2)|0;o=I[d>>1];d=I[d+2>>1];J[195395]=0;Ga(1913,e|0,+(l|0),+(b|0),+(k|0),+(j|0),+(o|0),+(d|0))|0;d=J[195395];J[195395]=0;b=c;if((d|0)==1)break e}if((K[b+i|0]&240)==128){J[195395]=0;_(1921,e|0)|0;c=J[195395];J[195395]=0;if((c| -0)==1)break e}b=b+1|0;if(h>>>0>b>>>0)continue;break}b=h&3;if(b){a=J[J[a>>2]-12>>2]+a|0;b=(J[a+12>>2]-b|0)+4|0;c=a;a=J[a+16>>2];J[c+12>>2]=a>>>0>b>>>0?b:a}Kb(i);a=J[f+20>>2];if(!a)break f;J[f+24>>2]=a;Kb(a);break f}a=Z()|0;break d}Tq(f+20|0,a,h);J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;q:{r:{if((h|0)<0){J[195395]=0;ea(2091,f+8|0);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break r}J[195395]=0;g=_(1078,h|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break q}a=Z()|0;g=J[f+8>>2];if(!g)break g;J[f+12>>2]=g;break h}J[f+ -8>>2]=g;b=0;i=Nb(g,0,h);e=J[a>>2]-12|0;if((h|0)!=1){l=h&-2;while(1){c=0;j=J[e>>2]+a|0;d=J[j+12>>2];if(d>>>0>2]){c=K[d|0];J[j+12>>2]=d+1}H[b+i|0]=c;c=0;j=J[e>>2]+a|0;d=J[j+12>>2];if(d>>>0>2]){c=K[d|0];J[j+12>>2]=d+1}H[i+(b|1)|0]=c;b=b+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(h&1){d=b+i|0;b=0;e=J[e>>2]+a|0;c=J[e+12>>2];if(c>>>0>2]){b=K[c|0];J[e+12>>2]=c+1}H[d|0]=b}b=J[f+20>>2];m=O[b+8>>3];n=O[b>>3];J[195395]=0;e=p+4|0;ra(1902,e|0,+n,+m)|0;c=J[195395];J[195395]=0;b=1;if((c| -0)!=1){if(h>>>0>1)while(1){s:{t:switch(K[b+i|0]&15){case 0:c=J[f+20>>2]+(b<<4)|0;m=O[c+8>>3];n=O[c>>3];J[195395]=0;ra(1902,e|0,+n,+m)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break s;break i;case 1:c=J[f+20>>2]+(b<<4)|0;m=O[c+8>>3];n=O[c>>3];J[195395]=0;ra(1906,e|0,+n,+m)|0;c=J[195395];J[195395]=0;if((c|0)==1)break i;break s;case 3:break t;default:break s}c=b+2|0;if(c>>>0>=h>>>0)break s;d=J[f+20>>2];k=d+(c<<4)|0;m=O[k+8>>3];n=O[k>>3];b=d+(b<<4)|0;q=O[b+8>>3];r=O[b>>3];s=O[b+24>>3];t=O[b+16>>3];J[195395]= -0;Ga(1913,e|0,+r,+q,+t,+s,+n,+m)|0;d=J[195395];J[195395]=0;b=c;if((d|0)==1)break i}if((K[b+i|0]&240)==128){J[195395]=0;_(1921,e|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break i}b=b+1|0;if(h>>>0>b>>>0)continue;break}b=h&3;if(b){a=J[J[a>>2]-12>>2]+a|0;b=(J[a+12>>2]-b|0)+4|0;c=a;a=J[a+16>>2];J[c+12>>2]=a>>>0>b>>>0?b:a}Kb(i);a=J[f+20>>2];if(!a)break f;J[f+24>>2]=a;Kb(a);break f}a=Z()|0;break h}a=Z()|0;Kb(c);ba(a|0);B()}a=Z()|0}Kb(g)}b=J[f+20>>2];if(!b)break b;J[f+24>>2]=b;Kb(b);break b}xb=f+32|0;return p| -0}a=Z()|0}Kb(g)}b=J[f+20>>2];if(!b)break b;J[f+24>>2]=b;Kb(b);ba(a|0);B()}ba(a|0);B()}B()}function aia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=xb-960|0;xb=h;a:{b:{c:{if(!J[a+4>>2])break c;d:switch(b-4|0){case 0:f=1;b=L[a+26>>1];if((b|0)==4)break c;f=0;if(b>>>0>4)break c;c=Fd(h+16|0,0);J[195395]=0;$(1242,c|0,a|0);b=J[195395];J[195395]=0;e:{if((b|0)==1)break e;b=J[a+68>>2];d=J[a+20>>2];f=J[a+16>>2];J[195395]=0;ka(1170,c|0,f|0,d|0,4,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break e;J[195395]= -0;b=J[a+4>>2];d=J[a+44>>2];f=J[195395];J[195395]=0;if((f|0)==1)break e;J[195395]=0;f=J[a+44>>2];e=J[195395];J[195395]=0;if((e|0)==1)break e;J[195395]=0;fa(1101,c|0,(b?d?b+40|0:0:0)|0,f|0);b=J[195395];J[195395]=0;if((b|0)==1)break e;J[195395]=0;f=J[c+4>>2]!=0;b=J[195395];J[195395]=0;if((b|0)==1)break e;f:{if(!f){J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break e;se(a+72|0,c+72|0);break f}J[195395]=0;ca(1245,c|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break e;J[195395]=0;ca(1246,c|0,a|0)|0; -b=J[195395];J[195395]=0;if((b|0)==1)break e;e=J[a+20>>2];g:{if(J[a+332>>2]|(e|0)<=0)break g;g=J[a+16>>2];if((g|0)<=0)break g;d=0;while(1){b=0;if((g|0)>0){while(1){J[195395]=0;e=jh(a,b,d);g=J[195395];J[195395]=0;if((g|0)==1)break a;J[195395]=0;eo(c,b,d,e);e=J[195395];J[195395]=0;if((e|0)==1)break a;b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e=J[a+20>>2];b=J[a+332>>2]}d=d+1|0;if((e|0)<=(d|0))break g;if(!b)continue;break}}J[195395]=0;aa(1249,a|0,c|0,1)|0;a=J[195395];J[195395]=0;if((a|0)==1)break e}J[c>> -2]=234140;J[195395]=0;_(1097,c|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;J[195395]=0;_(1098,c|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;break c}break a;case 4:f=1;b=L[a+26>>1];if((b|0)==8)break c;f=0;if(b>>>0>8)break c;c=Fd(h+16|0,0);J[195395]=0;$(1242,c|0,a|0);b=J[195395];J[195395]=0;h:{if((b|0)==1)break h;b=J[a+68>>2];d=J[a+20>>2];f=J[a+16>>2];J[195395]=0;ka(1170,c|0,f|0,d|0,8,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break h;J[195395]=0;b=J[a+4>>2];d=J[a+44>>2];f=J[195395];J[195395]= -0;if((f|0)==1)break h;J[195395]=0;f=J[a+44>>2];e=J[195395];J[195395]=0;if((e|0)==1)break h;J[195395]=0;fa(1101,c|0,(b?d?b+40|0:0:0)|0,f|0);b=J[195395];J[195395]=0;if((b|0)==1)break h;J[195395]=0;f=J[c+4>>2]!=0;b=J[195395];J[195395]=0;if((b|0)==1)break h;i:{if(!f){J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break h;se(a+72|0,c+72|0);break i}J[195395]=0;ca(1245,c|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break h;J[195395]=0;ca(1246,c|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break h;e=J[a+ -20>>2];j:{if(J[a+332>>2]|(e|0)<=0)break j;g=J[a+16>>2];if((g|0)<=0)break j;d=0;while(1){b=0;if((g|0)>0){while(1){J[195395]=0;e=jh(a,b,d);g=J[195395];J[195395]=0;if((g|0)==1)break a;J[195395]=0;eo(c,b,d,e);e=J[195395];J[195395]=0;if((e|0)==1)break a;b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e=J[a+20>>2];b=J[a+332>>2]}d=d+1|0;if((e|0)<=(d|0))break j;if(!b)continue;break}}J[195395]=0;aa(1249,a|0,c|0,1)|0;a=J[195395];J[195395]=0;if((a|0)==1)break h}J[c>>2]=234140;J[195395]=0;_(1097,c|0)|0;a= -J[195395];J[195395]=0;if((a|0)!=1){J[195395]=0;_(1098,c|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break c}break b}break a;case 20:break d;default:break c}f=1;b=L[a+26>>1];if((b|0)==24)break c;f=0;if(b>>>0>24)break c;c=Fd(h+16|0,0);J[195395]=0;$(1242,c|0,a|0);b=J[195395];J[195395]=0;k:{if((b|0)==1)break k;b=J[a+68>>2];d=J[a+20>>2];f=J[a+16>>2];J[195395]=0;ka(1170,c|0,f|0,d|0,24,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k;J[195395]=0;f=J[c+4>>2]!=0;b=J[195395];J[195395]=0;if((b|0)==1)break k; -l:{if(!f){J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break k;se(a+72|0,c+72|0);break l}b=J[a+336>>2];if((b|0)>=0){J[195395]=0;Td(h+12|0,a,b&255);b=J[195395];J[195395]=0;if((b|0)==1)break k;J[c+340>>2]=J[h+12>>2]}J[195395]=0;ca(1245,c|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k;J[195395]=0;ca(1246,c|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k;J[195395]=0;b=is(a);d=J[195395];J[195395]=0;if((d|0)==1)break k;m:{if(!b)break m;J[195395]=0;b=J[a+932>>2];d=J[195395];J[195395]=0;if((d| -0)==1)break k;if(b)break m;J[195395]=0;_(1212,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k}e=J[a+20>>2];n:{if(J[a+332>>2]|(e|0)<=0)break n;g=J[a+16>>2];if((g|0)<=0)break n;d=0;while(1){b=0;if((g|0)>0){while(1){J[195395]=0;eg(h+8|0,a,b,d,1);e=J[195395];J[195395]=0;if((e|0)==1)break k;J[195395]=0;J[h+4>>2]=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);hs(c,b,d,h+4|0,1);e=J[195395];J[195395]=0;if((e|0)==1)break k;b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e=J[a+20>>2];b=J[a+332>>2]}d= -d+1|0;if((e|0)<=(d|0))break n;if(!b)continue;break}}J[195395]=0;aa(1249,a|0,c|0,1)|0;a=J[195395];J[195395]=0;if((a|0)==1)break k}J[c>>2]=234140;J[195395]=0;_(1097,c|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1){J[195395]=0;_(1098,c|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break c}break b}break a}xb=h+960|0;return f|0}ga(0)|0;_b();B()}a=Z()|0;Nf(c);ba(a|0);B()}function IG(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;l=xb-256|0;xb=l;g=a;c=a+2| -0;a=K[a+2|0]|K[a+3|0]<<8;c=c+(((a<<8|a>>>8)&65535)<<1)|0;f=c+2|0;if(K[f|0]|K[f+1|0]<<8)a=c+4|0;else a=169776;a=K[a|0]|K[a+1|0]<<8;if(a)m=g+((a<<8|a>>>8)&65535)|0;else m=169776;a=J[b+88>>2];a:{if((ld(m,J[J[a+80>>2]+P(J[a+64>>2],20)>>2])|0)==-1)break a;h=J[b+88>>2];a=J[h+64>>2];b:{e=K[c+2|0]|K[c+3|0]<<8;e=e<<8|e>>>8;p=e&65535;c:{if(p>>>0>64)break c;m=f+(p<<1)|0;f=m;q=K[f+2|0]|K[f+3|0]<<8;i=(q<<8|q>>>8)&65535;r=(f+2|0)+(i<<1)|0;u=K[r+2|0]|K[r+3|0]<<8;s=K[g+2|0]|K[g+3|0]<<8;J[b+4>>2]=a;f=J[J[b+8>>2]+ -88>>2];J[b+36>>2]=J[f+68>>2];d=J[f+64>>2]==(a|0)?K[(J[f+80>>2]+P(a,20)|0)+15|0]:d;J[b+32>>2]=c+6;J[b+28>>2]=g;J[b+24>>2]=842;H[b+23|0]=K[b+22|0]?d:0;d:{if((e&65535)>>>0<2){c=a;break d}c=K[(J[h+80>>2]+P(a,20)|0)+14|0];t=c>>>5|0;v=c&16?0:c&15;w=(v|0)!=0&c>>>0>31;j=1;e:while(1){c=J[b+4>>2];n=J[b+36>>2]-1|0;if((c|0)>=(n|0))break c;while(1){c=c+1|0;J[b+4>>2]=c;f:{d=J[b+12>>2];e=J[b+8>>2];f=J[J[e+88>>2]+80>>2]+P(c,20)|0;c=L[f+12>>1];if(d&c&14)break f;if(c&8)if(!Bd(e,J[f>>2],c,d))break f;d=1;c=L[f+16>>1]; -if(!(K[f+12|0]&16|(c&96)!=32|!K[b+20|0]&(c&543)==513))d=!K[b+21|0]&(c&287)==257;e=J[b+32>>2];if(e){c=K[e|0]|K[e+1|0]<<8;c=(c<<8|c>>>8)&65535}else c=0;g:{h:{i:{if(!(J[b+16>>2]&J[f+4>>2]))break i;o=K[b+23|0];if((o|0)!=K[f+15|0]?o:0)break i;o=J[b+24>>2];if(!o)break h;if(!(Ab[o|0](f,c,J[b+28>>2])|0))break i;e=J[b+32>>2];break g}if(d)break c;break f}if(!d)break f}if(e)J[b+32>>2]=e+2;c=J[b+4>>2];J[(j<<2)+l>>2]=c;c=K[(J[h+80>>2]+P(c,20)|0)+14|0];f=c&16?0:c&15;d=c>>>5|0;j:{if(w){if((d|0)==(t|0)&(f|0)==(v| -0))break j;k:switch(k|0){case 0:break k;case 1:break c;default:break j}c=J[h+72>>2];if(!c)break c;d=J[h+84>>2];e=d-6|0;while(1){n=P(c,20);f=K[n+e|0];if((t|0)!=(f>>>5|0))break c;if(!(!(f&15)|f&16)){c=c-1|0;if(c)continue;break c}break}k=2;f=J[b+12>>2];d=(d+n|0)-20|0;c=L[d+12>>1];if(f&c&14)break j;if(!(c&8))break c;if(!Bd(J[b+8>>2],J[d>>2],c,f))break j;break c}if((d|0)==(t|0)|c>>>0<32)break j;if(f)break c}j=j+1|0;if((p|0)!=(j|0))continue e;a=J[h+64>>2];c=J[b+4>>2];break d}c=J[b+4>>2];if((n|0)>(c|0))continue; -break}break}break c}J[l>>2]=a;a=0;f=c+1|0;if(!f)break c;J[b+40>>2]=c;d=J[J[b+44>>2]+88>>2];h=J[d+68>>2];J[b+72>>2]=h;e=0;k=J[d+64>>2];e=(k|0)==(c|0)?K[(J[d+80>>2]+P(c,20)|0)+15|0]:e;J[b+68>>2]=m+4;J[b- -64>>2]=g;J[b+60>>2]=842;H[b+59|0]=K[b+58|0]?e:0;a=f;if(!q)break b;k=i>>>0<=1?1:i;h=0;l:{m:while(1){c=J[b+40>>2];a=J[b+72>>2];j=a-1|0;if((c|0)>=(j|0))break c;while(1){a=c+1|0;J[b+40>>2]=a;d=J[b+48>>2];e=J[b+44>>2];c=J[J[e+88>>2]+80>>2]+P(a,20)|0;a=L[c+12>>1];n:{if(d&a&14)break n;if(a&8)if(!Bd(e,J[c>> -2],a,d))break n;d=1;a=L[c+16>>1];if(!(K[c+12|0]&16|(a&96)!=32|!K[b+56|0]&(a&543)==513))d=!K[b+57|0]&(a&287)==257;e=J[b+68>>2];if(e){a=K[e|0]|K[e+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;o:{if(!(J[b+52>>2]&J[c+4>>2]))break o;i=K[b+59|0];if((i|0)!=K[c+15|0]?i:0)break o;i=J[b+60>>2];p:{if(i){if(!(Ab[i|0](c,a,J[b+64>>2])|0))break o;e=J[b+68>>2];break p}if(!d)break n}if(e)J[b+68>>2]=e+2;h=h+1|0;if((k|0)!=(h|0))continue m;a=J[b+40>>2]+1|0;d=J[J[b+44>>2]+88>>2];k=J[d+64>>2];h=J[d+68>>2];break b}if(d)break l}c= -J[b+40>>2];if((j|0)>(c|0))continue;break}break}a=J[b+72>>2];break c}a=J[b+40>>2]+1|0}d=0;b=J[b+88>>2];if(!(K[b+16|0]&64))break a;c=J[b+64>>2];J[b+144>>2]=J[b+144>>2]|32;g=J[b+68>>2];g=a>>>0>g>>>0?g:a;if(g>>>0<=c>>>0)break a;f=g+(c^-1)|0;b=J[b+80>>2];d=g-c&3;if(d){a=0;while(1){e=b+P(c,20)|0;J[e+4>>2]=J[e+4>>2]|2;c=c+1|0;a=a+1|0;if((d|0)!=(a|0))continue;break}}d=0;if(f>>>0<3)break a;while(1){a=b+P(c,20)|0;J[a+4>>2]=J[a+4>>2]|2;J[a+24>>2]=J[a+24>>2]|2;J[a+44>>2]=J[a+44>>2]|2;a=a- -64|0;J[a>>2]=J[a>> -2]|2;c=c+4|0;if((g|0)!=(c|0))continue;break}break a}j=J[b+88>>2];c=J[j+(K[j+62|0]?72:64)>>2];J[b+72>>2]=h;J[b+40>>2]=c;e=0;e=(c|0)==(k|0)?K[(J[d+80>>2]+P(k,20)|0)+15|0]:e;J[b+68>>2]=g+4;J[b+64>>2]=g;J[b+60>>2]=842;H[b+59|0]=K[b+58|0]?e:0;q:{if(!s)break q;c=(s<<8|s>>>8)&65535;j=c>>>0<=1?1:c;k=0;h=0;r:{while(1){c=J[b+40>>2];if(!c)break r;c=c-1|0;J[b+40>>2]=c;g=J[b+48>>2];d=J[b+44>>2];e=J[J[d+88>>2]+84>>2]+P(c,20)|0;c=L[e+12>>1];if(g&c&14)continue;if(c&8)if(!Bd(d,J[e>>2],c,g))continue;c=1;g=L[e+16>> -1];if(!(K[e+12|0]&16|(g&96)!=32|!K[b+56|0]&(g&543)==513))c=!K[b+57|0]&(g&287)==257;d=J[b+68>>2];if(d){g=K[d|0]|K[d+1|0]<<8;g=(g<<8|g>>>8)&65535}else g=0;s:{if(!(J[b+52>>2]&J[e+4>>2]))break s;i=K[b+59|0];if((i|0)!=K[e+15|0]?i:0)break s;i=J[b+60>>2];t:{if(i){if(!(Ab[i|0](e,g,J[b+64>>2])|0))break s;d=J[b+68>>2];break t}if(!c)continue}if(d)J[b+68>>2]=d+2;h=h+1|0;if((j|0)!=(h|0))continue;j=J[b+88>>2];c=J[b+40>>2];break q}if(!c)continue;break}c=J[b+40>>2];k=(c>>>0<=1?1:c)-1|0}d=0;b=J[b+88>>2];if(!(K[b+ -16|0]&64))break a;Ac(b,2,k,a,0,1);break a}d=1;Ac(j,3,c,a,1,1);Bo(b,p,l,(u<<8|u>>>8)&65535,r+4|0,f)}xb=l+256|0;return d|0}function EG(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;i=xb-48|0;xb=i;J[i+44>>2]=b;f=K[a|0]|K[a+1|0]<<8;g=(f<<8|f>>>8)&65535;a:{if(g>>>0>=5){d=J[J[b+88>>2]+64>>2];J[b+4>>2]=d;e=J[J[b+8>>2]+88>>2];j=J[e+68>>2];J[b+36>>2]=j;h=J[e+64>>2]==(d|0)?K[(J[e+80>>2]+P(d,20)|0)+15|0]:h;J[b+28>>2]=0;J[b+32>>2]=0;J[b+24>>2]=838;H[b+23|0]=K[b+22|0]?h:0;b:{j=j-1|0;if((j|0)>(d|0)){while(1){c:{e= -d+1|0;J[b+4>>2]=e;f=J[b+12>>2];d=J[b+8>>2];h=J[J[d+88>>2]+80>>2]+P(e,20)|0;e=L[h+12>>1];d:{if(f&e&14)break d;if(e&8)if(!Bd(d,J[h>>2],e,f))break d;f=1;e=L[h+16>>1];if(!(K[h+12|0]&16|(e&96)!=32|!K[b+20|0]&(e&543)==513))f=!K[b+21|0]&(e&287)==257;e=J[b+32>>2];if(e){d=K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535}else d=0;e:{if(!(J[b+16>>2]&J[h+4>>2]))break e;l=K[b+23|0];if((l|0)!=K[h+15|0]?l:0)break e;l=J[b+24>>2];f:{if(l){if(!(Ab[l|0](h,d,J[b+28>>2])|0))break e;e=J[b+32>>2];break f}if(!f)break d}if(e)J[b+ -32>>2]=e+2;f=J[b+12>>2];d=J[J[b+88>>2]+80>>2];j=J[b+4>>2];l=d+P(j,20)|0;e=L[l+12>>1];if(f&e&14)break b;if(e&8)if(!Bd(J[b+8>>2],J[l>>2],e,f))break b;e=L[(d+P(j,20)|0)+16>>1];if(!(K[l+12|0]&16|(e&96)!=32|!K[b+20|0]&(e&543)==513))if(K[b+21|0]|(e&287)!=257)break b;h=0;d=J[b+4>>2];n=J[b+36>>2]-1|0;g:{if((d|0)>=(n|0))break g;h:{i:{while(1){j:{e=d+1|0;J[b+4>>2]=e;k:{f=J[b+12>>2];d=J[b+8>>2];k=J[J[d+88>>2]+80>>2]+P(e,20)|0;e=L[k+12>>1];if(f&e&14)break k;if(e&8)if(!Bd(d,J[k>>2],e,f))break k;f=1;e=L[k+16>> -1];if(!(K[k+12|0]&16|(e&96)!=32|!K[b+20|0]&(e&543)==513))f=!K[b+21|0]&(e&287)==257;e=J[b+32>>2];if(e){d=K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535}else d=0;l:{m:{n:{if(!(J[b+16>>2]&J[k+4>>2]))break n;m=K[b+23|0];if((m|0)!=K[k+15|0]?m:0)break n;m=J[b+24>>2];if(!m)break m;if(!(Ab[m|0](k,d,J[b+28>>2])|0))break n;e=J[b+32>>2];break l}if(!f)break k;break h}if(!f)break k}if(e)J[b+32>>2]=e+2;k=0;d=J[b+12>>2];m=J[J[b+88>>2]+80>>2];n=J[b+4>>2];e=m+P(n,20)|0;f=L[e+12>>1];if(d&f&14)break g;if(f&8)if(!Bd(J[b+8>> -2],J[e>>2],f,d))break g;f=L[(m+P(n,20)|0)+16>>1];if(K[e+12|0]&16|(f&96)!=32|!K[b+20|0]&(f&543)==513)break i;if((f&287)==257)break j;break g}d=J[b+4>>2];if((n|0)>(d|0))continue;break h}break}if(K[b+21|0])break g}e=J[b+4>>2];h=e+1|0;k=J[J[b+88>>2]+80>>2]+P(e,20)|0;break g}k=0}e=j+1|0;m=g>>>0<=1?1:g;n=J[c+4>>2];j=J[c>>2];f=0;while(1){o:{p:{o=!j;g=(f<<1)+a|0;g=K[g+2|0]|K[g+3|0]<<8;if(g)d=((g<<8|g>>>8)&65535)+a|0;else d=169776;g=K[d|0]|K[d+1|0]<<8;if(!(o|((g<<8|g>>>8)&65535)>>>0<2)){g=K[d+4|0]|K[d+5|0]<< -8;if(!(Ab[j|0](l,(g<<8|g>>>8)&65535,n)|0))break p}q:{if(!k)break q;g=K[d|0]|K[d+1|0]<<8;if(!j|((g<<8|g>>>8)&65535)>>>0<3)break q;g=K[d+6|0]|K[d+7|0]<<8;o=h;if(!(Ab[j|0](k,(g<<8|g>>>8)&65535,n)|0))break o}o=e;if(!ct(d,b,c))break o;f=1;if((e|0)==-1)break a;a=J[b+88>>2];if(!(K[a+16|0]&64))break a;d=J[a+64>>2];J[a+144>>2]=J[a+144>>2]|32;b=J[a+68>>2];c=b>>>0>>0?b:e;if(c>>>0<=d>>>0)break a;g=c+(d^-1)|0;e=J[a+80>>2];a=c-d&3;if(a){b=0;while(1){h=e+P(d,20)|0;J[h+4>>2]=J[h+4>>2]|2;d=d+1|0;b=b+1|0;if((a| -0)!=(b|0))continue;break}}if(g>>>0<3)break a;while(1){a=e+P(d,20)|0;J[a+4>>2]=J[a+4>>2]|2;J[a+24>>2]=J[a+24>>2]|2;J[a+44>>2]=J[a+44>>2]|2;a=a- -64|0;J[a>>2]=J[a>>2]|2;d=d+4|0;if((c|0)!=(d|0))continue;break}break a}o=(e|0)!=-1?e:0}e=o;f=f+1|0;if((m|0)!=(f|0))continue;break}f=0;if((e|0)==-1)break a;a=J[b+88>>2];if(!(K[a+16|0]&64))break a;d=J[a+64>>2];J[a+144>>2]=J[a+144>>2]|32;b=J[a+68>>2];c=b>>>0>>0?b:e;if(c>>>0<=d>>>0)break a;g=c+(d^-1)|0;e=J[a+80>>2];a=c-d&3;if(a){b=0;while(1){h=e+P(d,20)|0;J[h+ -4>>2]=J[h+4>>2]|2;d=d+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}if(g>>>0<3)break a;while(1){a=e+P(d,20)|0;J[a+4>>2]=J[a+4>>2]|2;J[a+24>>2]=J[a+24>>2]|2;J[a+44>>2]=J[a+44>>2]|2;a=a- -64|0;J[a>>2]=J[a>>2]|2;d=d+4|0;if((c|0)!=(d|0))continue;break}break a}if(f)break c}d=J[b+4>>2];if((j|0)>(d|0))continue}break}f=K[a|0]|K[a+1|0]<<8;g=(f<<8|f>>>8)&65535}b=a+2|0;r:{if(!f){f=0;g=0;break r}d=((g<<1)+a|0)+2|0;e=0;f=g;while(1){h=K[b|0]|K[b+1|0]<<8;if(h)h=((h<<8|h>>>8)&65535)+a|0;else h=169776;h=K[h|0]|K[h+ -1|0]<<8;if(((h<<8|h>>>8)&65535)>>>0<2){g=e;break r}b=b+2|0;e=e+1|0;f=f-1|0;if(f)continue;break}f=0;b=d}J[i+32>>2]=116473;J[i+24>>2]=a;J[i+20>>2]=129417;J[i+16>>2]=g;J[i+12>>2]=f;J[i+8>>2]=b;J[i+36>>2]=i+44;J[i+40>>2]=c;f=0;s:{b=J[i+12>>2];if(!b)break s;e=J[i+40>>2];h=J[i+36>>2];c=J[i+24>>2];g=J[i+8>>2];d=K[g|0]|K[g+1|0]<<8;while(1){if(d)a=c+((d<<8|(d&65280)>>>8)&65535)|0;else a=169776;if(ct(a,J[h>>2],e)){f=1;break s}while(1){b=b-1|0;if(!b)break s;g=g+2|0;d=K[g|0]|K[g+1|0]<<8;if(d)a=c+((d<<8|d>>>8)& -65535)|0;else a=169776;a=K[a|0]|K[a+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>=2)continue;break}continue}}break a}f=K[a|0]|K[a+1|0]<<8}if(!(f&65535)){f=0;break a}e=(f<<8|(f&65280)>>>8)&65535;d=a+2|0;while(1){g=K[d|0]|K[d+1|0]<<8;if(g)o=((g<<8|g>>>8)&65535)+a|0;else o=169776;f=ct(o,b,c);if(f)break a;d=d+2|0;e=e-1|0;if(e)continue;break}}xb=i+48|0;return f}function Eq(a,b,c,d,e,f,g,h,i,j,k){var 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,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0, -S=0;m=xb-144|0;xb=m;a:{b:{c:{d:{e:{D=c+3|0;u=Qb(D);if(u){l=D<<2;t=Qb(l);if(!t)break e;z=Qb(l);if(!z)break d;A=Qb(l);if(!A)break c;H[u|0]=46;r=1;G=(c|0)<=0;f:{if(G)break f;n=c&1;g:{if((c|0)==1){l=0;break g}o=u+1|0;q=c&-2;l=0;while(1){s=K[b+l|0];H[r+u|0]=(s-48&255)>>>0<10?46:s;s=K[(l|1)+b|0];H[o+r|0]=(s-48&255)>>>0<10?46:s;l=l+2|0;r=r+2|0;p=p+2|0;if((q|0)!=(p|0))continue;break}}if(!n)break f;l=K[b+l|0];H[r+u|0]=(l-48&255)>>>0<10?46:l;r=r+1|0}l=r+u|0;H[l|0]=46;H[l+1|0]=0;w=Nb(d,48,r+1|0);x=c<<2;l=0; -o=0;n=0;while(1){s=l;h:{if((o|0)!=-1){d=J[a+40>>2];q=K[l+u|0];while(1){o=d+P(o,24)|0;p=J[o+16>>2];if((p|0)>0){v=J[o+20>>2];l=0;while(1){y=v+(l<<3)|0;if((q|0)==K[y|0]){o=J[y+4>>2];l=d+P(o,24)|0;d=J[l>>2];if(!d)break h;q=H[l+9|0];v=H[l+8|0];y=(s-ac(d)|0)+1|0;E=J[l+4>>2];if(E){if(!(n|G)){Nb(A,0,x);Nb(z,255,x);n=c}J[(t+(y<<2)|0)+(v<<2)>>2]=q}p=K[d|0];if(!p)break h;L=(z+(y<<2)|0)+(v<<2)|0;M=q+v|0;l=0;q=d;while(1){F=l+y|0;I=F+w|0;i:{if(H[I|0]>=p<<24>>24)break i;H[I|0]=p;if(!(H[q|0]&1))break i;J[A+(F<<2)>> -2]=E;if(!E|(l|0)<(v|0)|(l|0)>(M|0))break i;J[L>>2]=F}l=l+1|0;q=d+l|0;p=K[q|0];if(p)continue;break}break h}l=l+1|0;if((p|0)!=(l|0))continue;break}}o=J[o+12>>2];if((o|0)!=-1)continue;break}}o=0}l=s+1|0;if((r|0)!=(s|0))continue;break}break b}J[m>>2]=D;Sc(J[189490],228582,m);break a}J[m+16>>2]=l;Sc(J[189490],228582,m+16|0);break a}J[m+32>>2]=l;Sc(J[189490],228582,m+32|0);break a}J[m+48>>2]=l;Sc(J[189490],228582,m+48|0);break a}l=0;if((r|0)>=3){l=r-2|0;qc(w,w+1|0,l)}if((c|0)>(l|0))Nb(l+w|0,48,(c-((r|0)<= -2?2:r)|0)+2|0);l=0;H[c+w|0]=0;j:{k:{l:{m:{n:{if(!(!n|(c|0)<=0)){r=(e|0)!=0&(f|0)!=0&(g|0)!=0;while(1){n=l<<2;o=J[n+z>>2];o:{if((o|0)<0)break o;d=o<<2;q=J[d+A>>2];if(!q)break o;p:{if(!r){p=J[n+t>>2];break p}if(!J[e>>2])R=e,S=vc(c,4),J[R>>2]=S;if(!J[f>>2])R=f,S=vc(c,4),J[R>>2]=S;if(!J[g>>2])R=g,S=vc(c,4),J[R>>2]=S;s=ac(q);p=s+1|0;v=Qb(p);if(!v)break n;q=Mb(v,q,s);H[q+s|0]=0;J[(d+J[e>>2]|0)-4>>2]=q;J[(d+J[f>>2]|0)-4>>2]=o-l;p=J[n+t>>2];J[(d+J[g>>2]|0)-4>>2]=p}l=(l+p|0)-1|0}l=l+1|0;if((l|0)<(c|0))continue; -break}}Kb(A);Kb(t);Kb(z);if(J[a+44>>2]){d=Qb(x);if(!d)break m;J[m+140>>2]=d;d=Qb(x);if(!d)break l;J[m+136>>2]=d;d=Qb(x);if(!d)break k;J[m+132>>2]=d;s=Qb(D);if(!s)break j;q:{r:{if((c|0)<=0)break r;q=0;l=0;if(c>>>0>=4){o=c&-4;n=0;while(1){d=l<<2;J[d+J[m+140>>2]>>2]=0;J[J[m+140>>2]+(d|4)>>2]=0;J[J[m+140>>2]+(d|8)>>2]=0;J[J[m+140>>2]+(d|12)>>2]=0;l=l+4|0;n=n+4|0;if((o|0)!=(n|0))continue;break}}d=c&3;if(d)while(1){J[J[m+140>>2]+(l<<2)>>2]=0;l=l+1|0;q=q+1|0;if((d|0)!=(q|0))continue;break}if((c|0)<=0)break r; -E=b+1|0;z=u+1|0;F=(g|0)!=0&(f|0)!=0&(e|0)!=0;G=c&-4;A=c&3;L=c&-2;M=c&1;I=c+1|0;v=c+u|0;d=0;o=0;while(1){s:{t:{t=H[d+w|0]&1;if(t)break t;l=d+1|0;if((o|0)<=0){d=l;break s}if((c|0)==(l|0))break t;d=l;break s}q=d-o|0;u:{if((q|0)<=0)break u;l=0;C=d+2|0;y=C+u|0;H[y|0]=0;p=0;v:{if(!e)break v;n=J[e>>2];if(!n)break v;N=J[f>>2];if(!N|!J[g>>2])break v;O=d<<2;Q=n+O|0;n=J[Q>>2];if(!n)break v;r=te(n,61);p=C;C=N+O|0;p=p-J[C>>2]|0;oc(p+u|0,n,(p^-1)+D|0);p=0;H[v+2|0]=0;if(!r)break v;p=r-(J[C>>2]+J[Q>>2]|0)|0;H[y+ -p|0]=0}Eq(a,o+z|0,(q+p|0)+1|0,s,m+140|0,m+136|0,m+132|0,h,i,(o|0)<=0?j:0,t?0:k);w:{if(!F){Mb(o+w|0,s,q);break w}while(1){C=l+o|0;H[C+w|0]=K[l+s|0];n=J[m+140>>2];p=l<<2;if(J[n+p>>2]){if(!(J[g>>2]|(J[e>>2]|J[f>>2]))){R=e,S=Qb(x),J[R>>2]=S;R=f,S=Qb(x),J[R>>2]=S;R=g,S=Qb(x),J[R>>2]=S;n=0;r=0;if((c|0)!=1)while(1){t=n<<2;J[t+J[e>>2]>>2]=0;J[t+J[f>>2]>>2]=0;J[t+J[g>>2]>>2]=0;t=t|4;J[t+J[e>>2]>>2]=0;J[t+J[f>>2]>>2]=0;J[t+J[g>>2]>>2]=0;n=n+2|0;r=r+2|0;if((L|0)!=(r|0))continue;break}if(M){n=n<<2;J[n+J[e>>2]>> -2]=0;J[n+J[f>>2]>>2]=0;J[n+J[g>>2]>>2]=0}n=J[m+140>>2]}r=C<<2;J[r+J[e>>2]>>2]=J[n+p>>2];J[r+J[f>>2]>>2]=J[p+J[m+136>>2]>>2];J[r+J[g>>2]>>2]=J[p+J[m+132>>2]>>2]}l=l+1|0;if((q|0)!=(l|0))continue;break}}H[y|0]=K[d+E|0];l=J[e>>2];if(!l|!J[f>>2]|(!J[g>>2]|!J[l+(d<<2)>>2]))break u;oc(z,b,I);H[v+2|0]=0}q=0;l=0;n=0;if(c>>>0>=4)while(1){o=l<<2;J[o+J[m+140>>2]>>2]=0;J[J[m+140>>2]+(o|4)>>2]=0;J[J[m+140>>2]+(o|8)>>2]=0;J[J[m+140>>2]+(o|12)>>2]=0;l=l+4|0;n=n+4|0;if((G|0)!=(n|0))continue;break}d=d+1|0;if(A)while(1){J[J[m+ -140>>2]+(l<<2)>>2]=0;l=l+1|0;q=q+1|0;if((A|0)!=(q|0))continue;break}o=d}if((c|0)!=(d|0))continue;break}if(o)break q}Eq(J[a+44>>2],b,c,w,e,f,g,h,i,j,k);if(!j)tz(J[a+36>>2],b,w,e,f,g,h);if(k)break q;sz(J[a+36>>2],b,c,w,e,f,g,i)}Kb(J[m+140>>2]);Kb(J[m+132>>2]);Kb(J[m+136>>2]);Kb(s)}Kb(u);xb=m+144|0;return}J[m+128>>2]=p;Sc(J[189490],228582,m+128|0);break a}J[m+64>>2]=x;Sc(J[189490],228582,m- -64|0);break a}J[m+80>>2]=x;Sc(J[189490],228582,m+80|0);break a}J[m+96>>2]=x;Sc(J[189490],228582,m+96|0);break a}J[m+ -112>>2]=D;Sc(J[189490],228582,m+112|0)}za(1);B()}function Zi(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0;g=xb-48|0;xb=g;G=J[a>>2];x=J[a+40>>2];k=J[a+36>>2];c=J[J[a+2748>>2]+40>>2];H[g+39|0]=0;H[g+40|0]=0;H[g+41|0]=0;H[g+42|0]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+8>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g>>2]=0;J[g+4>>2]=0;d=P(b,1348)+a|0;w=d;J[d+44>>2]=0;f=J[d+68>>2]; -D=(c>>>0)/14|0;e=J[a+28>>2];d=J[a+24>>2];c=e+P(d,40)|0;a:{if(!b){if((d|0)<=0)break a;while(1){J[e+24>>2]=I[e+12>>1];J[e+28>>2]=I[e+14>>1];e=e+40|0;if(c>>>0>e>>>0)continue;break}break a}if((d|0)<=0)break a;while(1){J[e+24>>2]=I[e+14>>1];J[e+28>>2]=I[e+12>>1];e=e+40|0;if(c>>>0>e>>>0)continue;break}}b:{if((k|0)>0){R=(k<<2)+x|0;u=P(b,1348)+a|0;E=u+72|0;c=f>>31;y=(c^f)-c|0;M=y;c=0;while(1){v=J[x>>2];d=H[J[v+36>>2]+3|0];f=d>>31;c:{if(((d^f)-f|0)!=(y|0))break c;e=v;d=H[e+3|0];f=d>>31;if(((d^f)-f|0)!=(y| -0))break c;while(1){e=J[e+36>>2];d=H[e+3|0];f=d>>31;if(((d^f)-f|0)!=(y|0)){v=J[e+32>>2];break c}if((e|0)!=(v|0))continue;break}}n=0;l=-32E3;h=32E3;e=v;m=32E3;k=-32E3;f=0;d=0;o=32E3;p=-32E3;N=0;j=0;s=32E3;t=-32E3;z=32E3;A=-32E3;F=0;q=0;B=32E3;C=-32E3;while(1){O=1;d:{if(!n)break d;r=J[e+28>>2];n=L[e>>1];i=n&3;p=i?p:(p|0)<(r|0)?r:p;o=i?o:(o|0)>(r|0)?r:o;i=(k|0)<(r|0);d=i?n:d;k=i?r:k;i=(m|0)>(r|0);f=i?n:f;m=i?r:m;i=J[e+24>>2];l=(l|0)<(i|0)?i:l;h=(h|0)>(i|0)?i:h;if(!((e|0)==(v|0)|H[e+3|0]!=(M|0))){O=0; -break d}e:{if(j){i=J[c+36>>2];if((i|0)==J[j+40>>2])break e}J[c+40>>2]=e;I[c+4>>1]=l-h>>>1;I[c+2>>1]=h+l>>>1;if(!(!((d|f)&3)|(p-o|0)>=(D|0)))H[c|0]=K[c|0]|1;I[c+8>>1]=k;I[c+6>>1]=m;I[c+10>>1]=k-m;j=c;s=h;t=l;z=m;A=k;F=f;q=d;B=o;C=p;c=0;break d}f:{if(K[i+2|0]==K[e+2|0]){J[j+40>>2]=e;i=(k|0)<(A|0);k=i?A:k;I[j+8>>1]=k;c=(m|0)>(z|0);m=c?z:m;I[j+6>>1]=m;I[j+10>>1]=k-m;l=(l|0)<(t|0)?t:l;h=(h|0)>(s|0)?s:h;I[j+4>>1]=l-h>>>1;I[j+2>>1]=h+l>>>1;f=c?F:f;d=i?q:d;p=(p|0)<(C|0)?C:p;o=(o|0)>(B|0)?B:o;H[j|0]=K[j|0]& -254|((f|d)&3)!=0&(p-o|0)<(D|0);break f}i=A-z|0;Q=i>>31;r=k-m|0;n=r>>31;if((i^Q)-Q>>>0>(n^r)-n>>>0){J[j+40>>2]=e;t=(l|0)>(t|0)?l:t;s=(h|0)<(s|0)?h:s;I[j+4>>1]=t-s>>>1;I[j+2>>1]=s+t>>>1;break f}J[c+40>>2]=e;l=(l|0)<(t|0)?t:l;h=(h|0)>(s|0)?s:h;I[c+4>>1]=l-h>>>1;I[c+2>>1]=h+l>>>1;if(!(!((d|f)&3)|(p-o|0)>=(D|0)))H[c|0]=K[c|0]|1;I[c+6>>1]=m;I[c+10>>1]=r;I[c+8>>1]=k;J[j+40>>2]=J[c+40>>2];q=J[c+36>>2];J[j+32>>2]=J[c+32>>2];J[j+36>>2]=q;q=J[c+28>>2];J[j+24>>2]=J[c+24>>2];J[j+28>>2]=q;q=J[c+20>>2];J[j+16>> -2]=J[c+16>>2];J[j+20>>2]=q;q=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=q;q=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=q;s=h;t=l;z=m;A=k;F=f;q=d;B=o;C=p}J[w+44>>2]=J[w+44>>2]-1;c=0}g:{if((e|0)==(v|0)){i=N;N=1;if(i)break g}n=1;if(!O){e=J[e+32>>2];continue}i=H[e+3|0];n=i>>31;h:{if(((i^n)-n|0)==(y|0))break h;n=0;if(J[e+36>>2]==(e|0))break h;e=J[e+32>>2];continue}J[g+44>>2]=0;c=J[w+44>>2];i:{if((c|0)<=17){if(J[u+52>>2])break i;J[u+52>>2]=E;J[u+48>>2]=18;break i}f=J[u+48>>2];if((f|0)>(c|0))break i;if((f|0)>48806445){h= -64;break b}c=f>>2;j:{if((c|0)>=-4){c=(c+f|0)+4|0;if((c|0)<48806447)break j}c=48806446}d=J[u+52>>2];k:{if((d|0)==(E|0)){d=Tb(G,44,0,c,0,g+44|0);J[u+52>>2]=d;h=J[g+44>>2];if(h)break b;Mb(d,E,792);break k}S=u,T=Tb(G,44,f,c,d,g+44|0),J[S+52>>2]=T;h=J[g+44>>2];if(h)break b}J[u+48>>2]=c;c=J[w+44>>2]}n=1;l=J[u+52>>2];J[w+44>>2]=c+1;k=P(c,44);c=k+l|0;H[c|0]=0;f=J[g+20>>2];d=J[g+16>>2];H[c+1|0]=d;H[c+2|0]=d>>>8;H[c+3|0]=d>>>16;H[c+4|0]=d>>>24;H[c+5|0]=f;H[c+6|0]=f>>>8;H[c+7|0]=f>>>16;H[c+8|0]=f>>>24;f=J[g+ -28>>2];d=J[g+24>>2];H[c+9|0]=d;H[c+10|0]=d>>>8;H[c+11|0]=d>>>16;H[c+12|0]=d>>>24;H[c+13|0]=f;H[c+14|0]=f>>>8;H[c+15|0]=f>>>16;H[c+16|0]=f>>>24;f=J[g+36>>2];d=J[g+32>>2];H[c+17|0]=d;H[c+18|0]=d>>>8;H[c+19|0]=d>>>16;H[c+20|0]=d>>>24;H[c+21|0]=f;H[c+22|0]=f>>>8;H[c+23|0]=f>>>16;H[c+24|0]=f>>>24;d=K[g+39|0]|K[g+40|0]<<8|(K[g+41|0]<<16|K[g+42|0]<<24);H[c+24|0]=d;H[c+25|0]=d>>>8;H[c+26|0]=d>>>16;H[c+27|0]=d>>>24;J[c+28>>2]=32E3;J[c+40>>2]=J[g+8>>2];d=J[g+4>>2];J[c+32>>2]=J[g>>2];J[c+36>>2]=d;H[c+1|0]=i; -J[c+40>>2]=e;J[c+36>>2]=e;j=j?c-44|0:0;m=J[e+28>>2];f=L[e>>1];d=f&3;p=d?-32E3:m;o=d?32E3:m;h=J[e+24>>2];if(J[e+36>>2]==(e|0)){k=k+l|0;I[k+2>>1]=h;if(d)H[c|0]=1;I[k+10>>1]=0;I[k+8>>1]=m;I[k+6>>1]=m;n=0;c=0}l=h;k=m;d=f;M=i;e=J[e+32>>2];continue}break}x=x+4|0;if(R>>>0>x>>>0)continue;break}}h=0;e=J[(P(b,1348)+a|0)+52>>2];if(!e)break b;a=J[w+44>>2];if((a|0)<=0)break b;b=P(a,44)+e|0;while(1){a=J[e+36>>2];f=J[J[a+36>>2]+28>>2];d=J[a+28>>2];a=J[e+40>>2];c=J[a+28>>2];l:{m:{if((d|0)<(c|0)){if((d|0)>(f|0))I[e+ -10>>1]=L[e+10>>1]+(d-f>>>1|0);a=J[J[a+32>>2]+28>>2];if((a|0)<=(c|0))break l;a=a-c|0;break m}if((d|0)<(f|0))I[e+10>>1]=L[e+10>>1]+(f-d>>>1|0);a=J[J[a+32>>2]+28>>2];if((a|0)>=(c|0))break l;a=c-a|0}I[e+10>>1]=L[e+10>>1]+(a>>>1|0)}e=e+44|0;if(b>>>0>e>>>0)continue;break}}xb=g+48|0;return h}function tI(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=Q(0),t=0,u=0,v=0,w=0,y=0,A=Q(0),B=0,C=Q(0),D=0,E=0;if(!K[a+4442|0]){e=J[a+4416>>2];d=K[e+8|0]|K[e+9|0]<<8;b=(d<<8|d>>>8)&65535; -d=J[a+4424>>2];if(b>>>0>d>>>0)d=(e+(d<<2)|0)+10|0;else d=169776;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(d)d=(e+2|0)+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;c=K[d+4|0]|K[d+5|0]<<8;d=(c<<8|c>>>8)&65535;J[a+4420>>2]=d;a:{if(!K[a+4440|0])break a;b:{c:{b=J[a+4428>>2];if((b|0)>=0){h=J[a+4432>>2];e=d>>>0>>0?h:d;if(e>>>0<=b>>>0&e>>>0>=b>>>2>>>0)break b;if(h>>>0<=1073741823){b=J[a+4436>>2];if(!e){Kb(b);b=0;break c}b=ic(b,e<<2);if(b)break c;b=J[a+4428>>2];if(e>>>0<=b>>>0)break b}J[a+ -4428>>2]=b^-1}J[a+8>>2]=J[a+4>>2]+1;break a}J[a+4428>>2]=e;J[a+4436>>2]=b}e=J[a+4432>>2];d:{if(e>>>0>=d>>>0)break d;b=d-e<<2;if(!b)break d;Nb(J[a+4436>>2]+(e<<2)|0,0,b)}J[a+4432>>2]=d;b=J[a+4416>>2];e=J[a+4424>>2];e:{if(!c){J[194120]=J[42444];d=776480;break e}d=J[a+4436>>2]}v=J[a+4412>>2];w=J[a+4408>>2];k=J[a+4420>>2];c=169776;h=K[b+8|0]|K[b+9|0]<<8;c=e>>>0<((h<<8|h>>>8)&65535)>>>0?(b+(e<<2)|0)+10|0:c;h=b+2|0;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280| -e>>>24))|0;else e=169776;b=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(b)b=h+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b=169776;c=0;h=K[e+4|0]|K[e+5|0]<<8;r=(h<<8|h>>>8)&65535;h=k>>>0>r>>>0?r:k;f:{if(!h)break f;f=K[b+2|0]|K[b+3|0]<<8;o=f<<8|f>>>8;f=K[b|0]|K[b+1|0]<<8;if(f){q=(f<<8|f>>>8)&65535;y=q>>>0<=1?1:q;u=b+4|0;while(1){b=e+(c<<1)|0;b=K[b+6|0]|K[b+7|0]<<8;b=(b<<8|b>>>8)&65535;g:{if(b>>>0>=(o&65535)>>>0){s=Q(0);break g}B=u+P(P(b,q),6)|0;s=Q(1);b=0;while(1){g=0;g=b>>>0>>0?J[w+ -(b<<2)>>2]:g;C=s;A=Q(1);f=B+P(b,6)|0;i=K[f+2|0]|K[f+3|0]<<8;h:{if(!i)break h;i=(i<<8|i>>>8)<<16>>16;if((i|0)==(g|0))break h;j=K[f|0]|K[f+1|0]<<8;j=(j<<8|j>>>8)<<16>>16;if((j|0)>(i|0))break h;f=K[f+4|0]|K[f+5|0]<<8;f=(f<<8|f>>>8)<<16>>16;if((f|0)<(i|0)|(j|0)<0&(f|0)>0)break h;if((g|0)<=(j|0)){s=Q(0);break g}if((g|0)>=(f|0)){s=Q(0);break g}s=Q(0);D=g-j|0;E=f-g|0;g=(g|0)<(i|0);A=Q(Q((g?D:E)|0)/Q((g?i-j|0:f-i|0)|0));if(A==Q(0))break g}s=Q(C*A);b=b+1|0;if((y|0)!=(b|0))continue;break}}N[d+(c<<2)>>2]=s; -c=c+1|0;if((h|0)!=(c|0))continue;break}break f}if((h|0)!=1){i=h&65534;b=e+6|0;while(1){j=o&65535;f=b+(g<<1)|0;f=K[f|0]|K[f+1|0]<<8;N[d+(g<<2)>>2]=j>>>0>((f<<8|f>>>8)&65535)>>>0?Q(1):Q(0);q=g|1;f=b+(q<<1)|0;f=K[f|0]|K[f+1|0]<<8;N[d+(q<<2)>>2]=j>>>0>((f<<8|f>>>8)&65535)>>>0?Q(1):Q(0);g=g+2|0;c=c+2|0;if((i|0)!=(c|0))continue;break}}if(!(h&1))break f;e=e+(g<<1)|0;e=K[e+6|0]|K[e+7|0]<<8;N[d+(g<<2)>>2]=(o&65535)>>>0>((e<<8|e>>>8)&65535)>>>0?Q(1):Q(0)}if(k>>>0>r>>>0)Nb(d+(h<<2)|0,0,k-h<<2)}H[a+4442|0]=1}g= -a+16|0;d=J[a+20>>2];i:{if(d){n=d-1|0;J[a+20>>2]=n;l=O[(g+(n<<3)|0)+8>>3];break i}H[g|0]=1;e=J[42445];d=J[42444];J[194120]=d;J[194121]=e;x(0,d|0);x(1,e|0);l=+z()}i=J[a+4420>>2];j:{k:{l:{m:{if(R(l)<2147483648)d=~~l;else d=-2147483648;if((d|0)>=0){h=P(i^-1,d)+n|0;if(h>>>0<=n>>>0){if(!d){d=0;break j}b=0;e=J[42444];c=J[42445];f=c;if(!K[a+4440|0]){x(0,e|0);x(1,c|0);l=+z();if((d|0)!=1){k=d&-2;while(1){c=b+h|0;n:{if(c>>>0>=n>>>0){H[g|0]=1;J[194120]=e;J[194121]=f;c=776480;m=l;break n}c=(g+(c<<3)|0)+8|0;m= -O[c>>3]}O[c>>3]=m+0;c=h+(b|1)|0;o:{if(c>>>0>=n>>>0){H[g|0]=1;J[194120]=e;J[194121]=f;c=776480;m=l;break o}c=(g+(c<<3)|0)+8|0;m=O[c>>3]}O[c>>3]=m+0;b=b+2|0;p=p+2|0;if((k|0)!=(p|0))continue;break}}if(!(d&1))break j;b=b+h|0;if(b>>>0>>0)break m;H[g|0]=1;J[194120]=e;J[194121]=f;b=776480;break l}x(0,e|0);x(1,f|0);l=+z();k=J[a+4432>>2];if(!k)break k;q=a+24|0;v=d+h|0;j=J[a+4436>>2];w=k&-2;y=k&1;while(1){b=v+P(i,p)|0;c=513-b|0;c=c>>>0<=513?c:0;c=c>>>0>>0?c:i;o=h+p|0;p:{if(o>>>0>=n>>>0){H[g|0]=1;J[194120]= -e;J[194121]=f;r=776480;m=l;break p}r=(g+(o<<3)|0)+8|0;m=O[r>>3]}t=0;q:{if((c|0)!=(k|0))break q;o=q+(b<<3)|0;b=0;c=0;if((k|0)!=1)while(1){u=b|1;t=+N[j+(u<<2)>>2]*O[o+(u<<3)>>3]+(+N[j+(b<<2)>>2]*O[o+(b<<3)>>3]+t);b=b+2|0;c=c+2|0;if((w|0)!=(c|0))continue;break}if(!y)break q;t=+N[j+(b<<2)>>2]*O[o+(b<<3)>>3]+t}O[r>>3]=m+t;p=p+1|0;if((p|0)!=(d|0))continue;break}break j}J[a+8>>2]=J[a+4>>2]+1;return}H[g|0]=1;d=0;break j}b=(g+(b<<3)|0)+8|0;l=O[b>>3]}O[b>>3]=l+0;break j}if((d|0)!=1){k=d&-2;while(1){c=b+h|0; -r:{if(c>>>0>=n>>>0){H[g|0]=1;J[194120]=e;J[194121]=f;c=776480;m=l;break r}c=(g+(c<<3)|0)+8|0;m=O[c>>3]}O[c>>3]=m+0;c=h+(b|1)|0;s:{if(c>>>0>=n>>>0){H[g|0]=1;J[194120]=e;J[194121]=f;c=776480;m=l;break s}c=(g+(c<<3)|0)+8|0;m=O[c>>3]}O[c>>3]=m+0;b=b+2|0;p=p+2|0;if((k|0)!=(p|0))continue;break}}if(!(d&1))break j;b=b+h|0;t:{if(b>>>0>=n>>>0){H[g|0]=1;J[194120]=e;J[194121]=f;b=776480;break t}b=(g+(b<<3)|0)+8|0;l=O[b>>3]}O[b>>3]=l+0}d=P(d,i);if(d>>>0<=n>>>0){J[a+20>>2]=n-d;return}H[g|0]=1}function bt(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;p=xb-256|0;xb=p;o=J[b+88>>2];f=J[o+64>>2];a:{b:{s=K[a|0]|K[a+1|0]<<8;t=(s<<8|s>>>8)&65535;j=(t<<1)+a|0;g=j+2|0;e=K[g|0]|K[g+1|0]<<8;d=e<<8|e>>>8;q=d&65535;c:{if(q>>>0>64)break c;r=g+(e?q<<1:2)|0;u=K[r|0]|K[r+1|0]<<8;v=(u<<8|u>>>8)&65535;w=(v<<1)+r|0;y=K[w+2|0]|K[w+3|0]<<8;g=J[c+16>>2];e=J[c+4>>2];J[b+4>>2]=f;k=J[J[b+8>>2]+88>>2];J[b+36>>2]=J[k+68>>2];h=J[k+64>>2]==(f|0)?K[(J[k+80>>2]+P(f,20)|0)+15|0]:h;J[b+32>> -2]=j+4;J[b+28>>2]=g;J[b+24>>2]=e;H[b+23|0]=K[b+22|0]?h:0;d:{if((d&65535)>>>0<2){d=f;break d}e=K[(J[o+80>>2]+P(f,20)|0)+14|0];x=e>>>5|0;z=e&16?0:e&15;k=(z|0)!=0&e>>>0>31;m=1;e:while(1){d=J[b+4>>2];j=J[b+36>>2]-1|0;if((d|0)>=(j|0))break c;while(1){g=d+1|0;J[b+4>>2]=g;f:{d=J[b+12>>2];e=J[b+8>>2];n=J[J[e+88>>2]+80>>2]+P(g,20)|0;g=L[n+12>>1];if(d&g&14)break f;g:{if(!(g&8))break g;if(d&16){if(jf(J[e+148>>2],d>>>16|0,J[n>>2]))break g;break f}e=d&65280;if(!e)break g;if((e|0)!=(g&65280))break f}h=1;e=L[n+ -16>>1];if(!(K[n+12|0]&16|(e&96)!=32|!K[b+20|0]&(e&543)==513))h=!K[b+21|0]&(e&287)==257;i=J[b+32>>2];if(i){e=K[i|0]|K[i+1|0]<<8;e=(e<<8|e>>>8)&65535}else e=0;h:{i:{j:{if(!(J[b+16>>2]&J[n+4>>2]))break j;g=K[b+23|0];if((g|0)!=K[n+15|0]?g:0)break j;g=J[b+24>>2];if(!g)break i;if(!(Ab[g|0](n,e,J[b+28>>2])|0))break j;i=J[b+32>>2];break h}if(!h)break f;break c}if(!h)break f}if(i)J[b+32>>2]=i+2;e=J[b+4>>2];J[(m<<2)+p>>2]=e;d=K[(J[o+80>>2]+P(e,20)|0)+14|0];g=d&16?0:d&15;e=d>>>5|0;k:{if(k){if((e|0)==(x|0)&(g| -0)==(z|0))break k;l:switch(l|0){case 0:break l;case 1:break c;default:break k}d=J[o+72>>2];if(!d)break c;j=J[o+84>>2];g=j-6|0;while(1){e=P(d,20);l=K[e+g|0];if((x|0)!=(l>>>5|0))break c;if(!(!(l&15)|l&16)){d=d-1|0;if(d)continue;break c}break}l=2;g=J[b+12>>2];e=(e+j|0)-20|0;d=L[e+12>>1];if(g&d&14)break k;if(!(d&8))break c;if(!Bd(J[b+8>>2],J[e>>2],d,g))break k;break c}if((e|0)==(x|0)|d>>>0<32)break k;if(g)break c}m=m+1|0;if((q|0)!=(m|0))continue e;f=J[o+64>>2];d=J[b+4>>2];break d}d=J[b+4>>2];if((j|0)> -(d|0))continue;break}break}break c}J[p>>2]=f;f=0;g=d+1|0;if(!g)break c;j=J[c+20>>2];e=J[c+8>>2];J[b+40>>2]=d;h=J[J[b+44>>2]+88>>2];m=J[h+68>>2];J[b+72>>2]=m;i=0;f=J[h+64>>2];i=(f|0)==(d|0)?K[(J[h+80>>2]+P(d,20)|0)+15|0]:i;J[b+68>>2]=r+2;J[b- -64>>2]=j;J[b+60>>2]=e;H[b+59|0]=K[b+58|0]?i:0;e=g;if(!u)break b;l=v>>>0<=1?1:v;m=0;m:{n:while(1){d=J[b+40>>2];f=J[b+72>>2];j=f-1|0;if((d|0)>=(j|0))break c;while(1){d=d+1|0;J[b+40>>2]=d;f=J[b+48>>2];e=J[b+44>>2];k=J[J[e+88>>2]+80>>2]+P(d,20)|0;d=L[k+12>>1];o:{if(f& -d&14)break o;if(d&8)if(!Bd(e,J[k>>2],d,f))break o;h=1;e=L[k+16>>1];if(!(K[k+12|0]&16|(e&96)!=32|!K[b+56|0]&(e&543)==513))h=!K[b+57|0]&(e&287)==257;i=J[b+68>>2];if(i){e=K[i|0]|K[i+1|0]<<8;e=(e<<8|e>>>8)&65535}else e=0;p:{if(!(J[b+52>>2]&J[k+4>>2]))break p;f=K[b+59|0];if((f|0)!=K[k+15|0]?f:0)break p;f=J[b+60>>2];q:{if(f){if(!(Ab[f|0](k,e,J[b+64>>2])|0))break p;i=J[b+68>>2];break q}if(!h)break o}if(i)J[b+68>>2]=i+2;m=m+1|0;if((l|0)!=(m|0))continue n;e=J[b+40>>2]+1|0;h=J[J[b+44>>2]+88>>2];f=J[h+64>>2]; -m=J[h+68>>2];break b}if(h)break m}d=J[b+40>>2];if((j|0)>(d|0))continue;break}break}f=J[b+72>>2];break c}f=J[b+40>>2]+1|0}d=0;b=J[b+88>>2];if(!(K[b+16|0]&64))break a;h=J[b+64>>2];J[b+144>>2]=J[b+144>>2]|32;a=J[b+68>>2];f=a>>>0>>0?a:f;if(f>>>0<=h>>>0)break a;e=f+(h^-1)|0;g=J[b+80>>2];c=f-h&3;if(c){b=0;while(1){a=g+P(h,20)|0;J[a+4>>2]=J[a+4>>2]|2;h=h+1|0;b=b+1|0;if((c|0)!=(b|0))continue;break}}if(e>>>0<3)break a;while(1){a=g+P(h,20)|0;J[a+4>>2]=J[a+4>>2]|2;J[a+24>>2]=J[a+24>>2]|2;J[a+44>>2]=J[a+44>> -2]|2;a=a- -64|0;J[a>>2]=J[a>>2]|2;h=h+4|0;if((f|0)!=(h|0))continue;break}break a}l=J[b+88>>2];i=J[l+(K[l+62|0]?72:64)>>2];j=J[c+12>>2];c=J[c>>2];J[b+72>>2]=m;J[b+40>>2]=i;d=0;d=(f|0)==(i|0)?K[(J[h+80>>2]+P(f,20)|0)+15|0]:d;J[b+68>>2]=a+2;J[b+64>>2]=j;J[b+60>>2]=c;H[b+59|0]=K[b+58|0]?d:0;r:{if(!s)break r;l=t>>>0<=1?1:t;f=0;c=0;s:{while(1){a=J[b+40>>2];if(!a)break s;j=a-1|0;J[b+40>>2]=j;d=J[b+48>>2];a=J[b+44>>2];k=J[J[a+88>>2]+84>>2]+P(j,20)|0;j=L[k+12>>1];if(d&j&14)continue;if(j&8)if(!Bd(a,J[k>>2], -j,d))continue;h=1;a=L[k+16>>1];if(!(K[k+12|0]&16|(a&96)!=32|!K[b+56|0]&(a&543)==513))h=!K[b+57|0]&(a&287)==257;i=J[b+68>>2];if(i){a=K[i|0]|K[i+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;t:{if(!(J[b+52>>2]&J[k+4>>2]))break t;d=K[b+59|0];if((d|0)!=K[k+15|0]?d:0)break t;d=J[b+60>>2];u:{if(d){if(!(Ab[d|0](k,a,J[b+64>>2])|0))break t;i=J[b+68>>2];break u}if(!h)continue}if(i)J[b+68>>2]=i+2;c=c+1|0;if((l|0)!=(c|0))continue;l=J[b+88>>2];i=J[b+40>>2];break r}if(!h)continue;break}a=J[b+40>>2];f=(a>>>0<=1?1:a)-1| -0}d=0;a=J[b+88>>2];if(!(K[a+16|0]&64))break a;Ac(a,2,f,e,0,1);break a}d=1;Ac(l,3,i,e,1,1);Bo(b,q,p,(y<<8|y>>>8)&65535,w+4|0,g)}xb=p+256|0;return d}function bma(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;g=xb-32|0;xb=g;if(nc(c,b,105194,0)){p=wo(b,c,1,11,-1,-1);o=J[c+68>>2];a:{if(!o)break a;d=o-1|0;f=J[c+80>>2];k=f+3|0;a=0;f=K[f+15|0];while(1){b:{if((a|0)==(d|0)){a=o;break b}a=a+1|0;if((f|0)==K[(k+P(a,20)|0)+12|0])continue}break}if(!o)break a;j=J[c+80>>2];f=K[j+ -15|0];d=0;while(1){k=a;c:{if(f&14)break c;d:{e:{a=d+3|0;if(k>>>0>>0)break e;f=P(d,20)+j|0;if(K[f+18|0]!=15|K[f+38|0]!=32|K[f+58|0]!=4)break e;m=0;e=3;break d}m=1;a=d;e=0}f=d;f:{if(a>>>0>=k>>>0)break f;while(1){g:{f=P(a,20)+j|0;if(K[f+12|0]&32)break g;f=K[f+18|0];if(f>>>0>31|!(1<>>0>a>>>0){a=0;i=d;if(!m)while(1){H[(l+P(i,20)|0)+16|0]=5;i=i+1|0;a=a+1|0;if((e|0)!=(a|0))continue;break}if(e-1>>>0>6)while(1){a= -l+P(i,20)|0;H[a+36|0]=5;H[a+16|0]=5;H[a+56|0]=5;H[a+76|0]=5;H[a+96|0]=5;H[a+116|0]=5;H[a+136|0]=5;H[a+156|0]=5;i=i+8|0;if((h|0)!=(i|0))continue;break}a=h}if(a>>>0>>0){e=f+(a^-1)|0;i=0;h=f-a&7;if(h)while(1){H[(l+P(a,20)|0)+16|0]=3;a=a+1|0;i=i+1|0;if((h|0)!=(i|0))continue;break}if(e>>>0>=7)while(1){i=l+P(a,20)|0;H[i+36|0]=3;H[i+16|0]=3;H[i+56|0]=3;H[i+76|0]=3;H[i+96|0]=3;H[i+116|0]=3;H[i+136|0]=3;H[i+156|0]=3;a=a+8|0;if((f|0)!=(a|0))continue;break}a=f}if(a>>>0>>0){H[(P(a,20)+j|0)+19|0]=4;a=a+ -1|0}if(a>>>0>>0){h=j-1|0;f=5;while(1){h:{i:{j:{k:{l:{m=P(a,20);i=m+j|0;e=K[i+18|0];switch(e-22|0){case 18:break j;case 0:break k;case 14:break l;default:break i}}H[i+19|0]=3;break h}H[i+19|0]=2;break h}H[i+19|0]=K[h+m|0];break h}m:{n:{if((f|0)==5&(e|0)==21)break n;if((f|0)!=8)break m;if((e|0)==9){H[i+19|0]=7;f=8;break h}if((e|0)==21)break n;f=9;break m}f=8}H[i+19|0]=f}a=a+1|0;if((k|0)!=(a|0))continue;break}}gu(c,d,k,917);if(d>>>0>=k>>>0)break c;a=d+1|0;o:{if(!(k-d&1)){i=k;f=i;break o}f=K[(l+P(d, -20)|0)+16|0]==2?d:k;i=f;d=a}if((a|0)!=(k|0))while(1){a=d+1|0;m=i;i=l+P(d,20)|0;e=K[i+16|0]==2;h=K[i+36|0]==2;i=h?a:e?d:m;m=a;a=e?(f|0)==(k|0)?d:f:f;f=h?(a|0)==(k|0)?m:a:a;d=d+2|0;if((k|0)!=(d|0))continue;break}if(f>>>0>=i>>>0)break c;a=J[c+68>>2];l=i+1|0;e=a>>>0>>0?a:l;d=a>>>0>>0?a:f;p:{if(e>>>0>>0)break p;h=e-1|0;if(h>>>0<=d>>>0)break p;m=J[c+80>>2];while(1){e=m+P(h,20)|0;J[g+24>>2]=J[e+16>>2];a=J[e+12>>2];J[g+16>>2]=J[e+8>>2];J[g+20>>2]=a;a=J[e+4>>2];J[g+8>>2]=J[e>>2];J[g+12>>2]=a;a= -m+P(d,20)|0;J[e+16>>2]=J[a+16>>2];n=J[a+12>>2];J[e+8>>2]=J[a+8>>2];J[e+12>>2]=n;n=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=n;J[a+16>>2]=J[g+24>>2];e=J[g+20>>2];J[a+8>>2]=J[g+16>>2];J[a+12>>2]=e;e=J[g+12>>2];J[a>>2]=J[g+8>>2];J[a+4>>2]=e;d=d+1|0;h=h-1|0;if(d>>>0>>0)continue;break}}q:{if(!K[c+63|0])break q;a=J[c+68>>2];e=a>>>0>>0?a:l;d=a>>>0>>0?a:f;if(e>>>0>>0)break q;h=e-1|0;if(h>>>0<=d>>>0)break q;l=J[c+88>>2];while(1){e=l+P(h,20)|0;J[g+24>>2]=J[e+16>>2];a=J[e+12>>2];J[g+16>>2]=J[e+8>>2]; -J[g+20>>2]=a;a=J[e+4>>2];J[g+8>>2]=J[e>>2];J[g+12>>2]=a;a=l+P(d,20)|0;J[e+16>>2]=J[a+16>>2];m=J[a+12>>2];J[e+8>>2]=J[a+8>>2];J[e+12>>2]=m;m=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=m;J[a+16>>2]=J[g+24>>2];e=J[g+20>>2];J[a+8>>2]=J[g+16>>2];J[a+12>>2]=e;e=J[g+12>>2];J[a>>2]=J[g+8>>2];J[a+4>>2]=e;d=d+1|0;h=h-1|0;if(d>>>0>>0)continue;break}}m=j+2|0;a=f;while(1){e=a;d=f;f=d+1|0;r:{if(K[(m+P(d,20)|0)+16|0]!=22)break r;d=J[c+68>>2];h=d>>>0>>0?d:f;d=a>>>0>d>>>0?d:a;s:{if(h>>>0>>0)break s;h=h-1|0;if(h>>> -0<=d>>>0)break s;l=J[c+80>>2];while(1){j=l+P(h,20)|0;J[g+24>>2]=J[j+16>>2];a=J[j+12>>2];J[g+16>>2]=J[j+8>>2];J[g+20>>2]=a;a=J[j+4>>2];J[g+8>>2]=J[j>>2];J[g+12>>2]=a;a=l+P(d,20)|0;J[j+16>>2]=J[a+16>>2];n=J[a+12>>2];J[j+8>>2]=J[a+8>>2];J[j+12>>2]=n;n=J[a+4>>2];J[j>>2]=J[a>>2];J[j+4>>2]=n;J[a+16>>2]=J[g+24>>2];j=J[g+20>>2];J[a+8>>2]=J[g+16>>2];J[a+12>>2]=j;j=J[g+12>>2];J[a>>2]=J[g+8>>2];J[a+4>>2]=j;d=d+1|0;h=h-1|0;if(d>>>0>>0)continue;break}}a=f;if(!K[c+63|0])break r;d=J[c+68>>2];h=a>>>0>d>>>0?d: -a;d=e>>>0>d>>>0?d:e;if(h>>>0>>0)break r;h=h-1|0;if(h>>>0<=d>>>0)break r;j=J[c+88>>2];while(1){e=j+P(h,20)|0;J[g+24>>2]=J[e+16>>2];a=J[e+12>>2];J[g+16>>2]=J[e+8>>2];J[g+20>>2]=a;a=J[e+4>>2];J[g+8>>2]=J[e>>2];J[g+12>>2]=a;a=j+P(d,20)|0;J[e+16>>2]=J[a+16>>2];l=J[a+12>>2];J[e+8>>2]=J[a+8>>2];J[e+12>>2]=l;l=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=l;J[a+16>>2]=J[g+24>>2];e=J[g+20>>2];J[a+8>>2]=J[g+16>>2];J[a+12>>2]=e;e=J[g+12>>2];J[a>>2]=J[g+8>>2];J[a+4>>2]=e;d=d+1|0;h=h-1|0;if(d>>>0>>0)continue;break}a= -f}if(f>>>0<=i>>>0)continue;break}}a=J[c+68>>2];d=k+1|0;d=a>>>0>d>>>0?a:d;i=d-1|0;j=J[c+80>>2];e=j+3|0;f=K[(P(k,20)+j|0)+15|0];a=k;while(1){t:{if((a|0)==(i|0)){a=d;break t}a=a+1|0;if(K[(e+P(a,20)|0)+12|0]==(f|0))continue}break}d=k;if(o>>>0>d>>>0)continue;break}}nc(c,b,105870,0)}H[c+140|0]=K[c+140|0]&63;xb=g+32|0;return p|0}function Rha(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;j=xb-3104|0;xb=j;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]= -0;b=J[c+4>>2];e=J[c>>2];o=b-e|0;i=(o|0)/12|0;a:{if(!(!d|(b|0)==(e|0))){J[195395]=0;b=_(1109,1024)|0;e=J[195395];J[195395]=0;b:{c:{d:{if((e|0)!=1){J[d>>2]=b;w=Nb(b,0,1024);if((o|0)<=0)break b;p=(i|0)<=1?1:i;d=0;while(1){b=J[c>>2]+P(h,12)|0;e=J[b+8>>2];g=J[b+4>>2];J[195395]=0;b=_(1078,12)|0;f=J[195395];J[195395]=0;if((f|0)==1)break a;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[195395]=0;n=P(e,g);f=_(1109,n|0)|0;l=J[195395];J[195395]=0;if((l|0)==1)break a;J[b+8>>2]=e;J[b+4>>2]=g;J[b>>2]=f;Nb(f,0,n);e:{if(J[a+ -8>>2]!=(d|0)){J[d>>2]=b;d=d+4|0;J[a+4>>2]=d;break e}l=J[a>>2];e=d-l|0;r=e>>2;g=r+1|0;if(g>>>0>=1073741824){J[195395]=0;ea(1291,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;break d}f=e>>1;f=e>>>0>=2147483644?1073741823:f>>>0>g>>>0?f:g;f:{if(!f){g=0;break f}if(f>>>0>=1073741824){J[195395]=0;ja(1292);b=J[195395];J[195395]=0;if((b|0)!=1)break d;break a}J[195395]=0;g=_(1078,f<<2)|0;e=J[195395];J[195395]=0;if((e|0)==1)break a}e=(r<<2)+g|0;J[e>>2]=b;b=e+4|0;if((d|0)!=(l|0)){while(1){e=e-4|0;d=d-4|0; -J[e>>2]=J[d>>2];if((d|0)!=(l|0))continue;break}d=J[a>>2]}J[a+8>>2]=(f<<2)+g;J[a+4>>2]=b;J[a>>2]=e;if(d)Kb(d);d=b}k=k+n|0;h=h+1|0;if((p|0)!=(h|0))continue;break}break c}break a}B()}f=k<<3}J[195395]=0;b=_(1109,f|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;g:{if((o|0)<=0)break g;o=(i|0)<=1?1:i;g=0;e=b;while(1){h=J[J[a>>2]+(g<<2)>>2];h:{if(!h)break h;k=P(J[h+8>>2],J[h+4>>2]);if(!k)break h;d=J[J[c>>2]+P(g,12)>>2];f=0;if((k|0)!=1){n=k&-2;i=0;while(1){if(K[d+3|0]>=5){l=J[h>>2];p=J[d>>2];J[e>>2]=p;J[e+ -4>>2]=f+l;H[e+3|0]=p>>>24|15;e=e+8|0}if(K[d+7|0]>=5){l=J[h>>2];p=J[d+4>>2];J[e>>2]=p;J[e+4>>2]=l+(f|1);H[e+3|0]=p>>>24|15;e=e+8|0}d=d+8|0;f=f+2|0;i=i+2|0;if((n|0)!=(i|0))continue;break}}if(!(k&1)|K[d+3|0]<5)break h;h=J[h>>2];d=J[d>>2];J[e>>2]=d;J[e+4>>2]=f+h;H[e+3|0]=d>>>24|15;e=e+8|0}g=g+1|0;if((o|0)!=(g|0))continue;break}if((b|0)==(e|0))break g;g=e-b|0;h=j+80|0;f=j+68|0;i=j+56|0;k=j+32|12;e=0;while(1){c=P(e,12);d=c+(j+32|0)|0;J[d>>2]=0;J[d+4>>2]=0;I[d+8>>1]=0;d=c+k|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>> -2]=0;d=c+i|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>>2]=0;d=c+f|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>>2]=0;c=c+h|0;I[c+8>>1]=0;J[c>>2]=0;J[c+4>>2]=0;e=e+5|0;if((e|0)!=255)continue;break}I[j+24>>1]=0;J[j+16>>2]=0;J[j+20>>2]=0;I[j+8>>1]=0;J[j+32>>2]=b;p=g>>>3|0;J[j+36>>2]=p;J[j>>2]=0;J[j+4>>2]=0;d=0;if(g>>>0>=16){f=K[b|0];i=f;h=K[b+1|0];o=h;l=1;d=b;n=K[d+3|0];k=n;g=K[d+2|0];c=g;while(1){e=K[d+3|0];n=(e|0)<(n|0)?n:e;k=(e|0)>(k|0)?k:e;e=K[d+2|0];g=(e|0)<(g|0)?g:e;c=(c|0)<(e|0)?c:e;e=K[d+1|0];o=(e|0)<(o|0)?o:e;h=(e|0)> -(h|0)?h:e;e=K[d|0];i=(e|0)<(i|0)?i:e;f=(e|0)>(f|0)?f:e;d=d+8|0;l=l+1|0;if((p|0)!=(l|0))continue;break}e=i-f|0;h=o-h|0;f=(e|0)>(h|0)?e:h;c=g-c|0;g=(c|0)<(f|0)?f:c;i=n-k|0;d=(g|0)>(i|0)?g:i;c=(g|0)<(i|0)?3:(c|0)>(f|0)?2:(e|0)<(h|0)}else c=0;H[j+41|0]=c;H[j+40|0]=d;c=0;g=1;while(1){o=0;i:{if(c>>>0<3){i=-1;d=j+32|0;e=0;f=0;break i}x=g&2147483644;i=-1;e=0;d=j+32|0;f=0;n=0;while(1){k=K[d+8|0];l=(f|0)>(k|0)?f:k;p=K[d+20|0];r=(l|0)>(p|0)?l:p;v=K[d+32|0];h=(r|0)>(v|0)?r:v;i=r>>>0>>0?e|2:l>>>0

>>0?e|1: -f>>>0>>0?e:i;f=K[d+44|0];i=f>>>0>h>>>0?e|3:i;f=(f|0)<(h|0)?h:f;d=d+48|0;e=e+4|0;n=n+4|0;if((x|0)!=(n|0))continue;break}}k=g&3;if(k)while(1){h=K[d+8|0];i=h>>>0>f>>>0?e:i;f=(f|0)>(h|0)?f:h;d=d+12|0;e=e+1|0;o=o+1|0;if((k|0)!=(o|0))continue;break}j:{if((i|0)<0){h=g;break j}J[195395]=0;e=j+32|0;d=e+P(i,12)|0;EE(d,j+16|0,j);h=J[195395];J[195395]=0;if((h|0)==1)break a;h=J[j+20>>2];J[d>>2]=J[j+16>>2];J[d+4>>2]=h;I[d+8>>1]=L[j+24>>1];d=e+P(g,12)|0;I[d+8>>1]=L[j+8>>1];e=J[j+4>>2];J[d>>2]=J[j>>2];J[d+4>> -2]=e;c=c+1|0;h=255;g=g+1|0;if((g|0)!=255)continue}break}d=0;while(1){g=d+1|0;i=(g<<2)+w|0;a=0;f=(j+32|0)+P(d,12)|0;d=f;c=J[d>>2];k:{if(!c)break k;if(!K[d+8|0]){a=J[c>>2];break k}m=+K[c+3|0];q=+K[c+2|0];s=+K[c+1|0];t=+K[c|0];a=J[d+4>>2];l:{if(a>>>0<2)break l;d=a-1|0;k=d&1;if((a|0)!=2){d=d&-2;e=0;while(1){m=m+ +K[c+3|0]+ +K[c+11|0];q=q+ +K[c+2|0]+ +K[c+10|0];s=s+ +K[c+1|0]+ +K[c+9|0];t=t+ +K[c|0]+ +K[c+8|0];c=c+16|0;e=e+2|0;if((d|0)!=(e|0))continue;break}}if(!k)break l;m=m+ +K[c+3|0];q=q+ +K[c+2|0]; -s=s+ +K[c+1|0];t=t+ +K[c|0]}u=q;q=+(a>>>0);u=u/q+.5;m:{if(u<4294967296&u>=0){a=~~u>>>0;break m}a=0}c=a<<16;m=m/q+.5;n:{if(m<4294967296&m>=0){a=~~m>>>0;break n}a=0}c=c|a<<24;m=s/q+.5;o:{if(m<4294967296&m>=0){a=~~m>>>0;break o}a=0}a=c|a<<8;m=t/q+.5;if(m<4294967296&m>=0)a=a|~~m>>>0}J[i>>2]=a;if(J[f+4>>2]){d=J[f>>2];e=0;while(1){H[J[d+4>>2]]=g;d=d+8|0;e=e+1|0;if(e>>>0>2])continue;break}}d=g;if((h|0)!=(d|0))continue;break}}Kb(b)}xb=j+3104|0;return}c=Z()|0;b=J[a>>2];if(b){J[a+4>>2]=b;Kb(b)}ba(c| -0);B()}function Rea(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[a+76>>2]>0){c=J[a+416>>2];k=J[a+84>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{f=J[k+36>>2];b=J[k+40>>2]+(f<<8)|0;if((b|0)<=2051){if((b|0)<=1025){J:switch(b-513|0){case 0:break n;case 1:break H;case 2:break c;case 3:break g;default:break J}K:switch(b-257|0){case 0:break I;case 1:break f;default:break K}switch(b-771|0){case 3:break h;case 0:break G; -default:break c}}if((b|0)<=1538){L:switch(b-1026|0){case 6:break i;case 0:break o;case 2:break F;case 1:case 3:case 4:case 5:break c;default:break L}switch(b-1285|0){case 5:break j;case 0:break E;default:break c}}M:switch(b-1539|0){case 9:break k;case 0:break p;case 3:break D;case 1:case 2:case 4:case 5:case 6:case 7:case 8:break c;default:break M}switch(b-1799|0){case 7:break l;case 0:break C;default:break c}}if((b|0)<=3077){if((b|0)<=2564)switch(b-2052|0){case 12:break m;case 0:break q;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break c; -case 4:break e;default:break d}switch(b-2565|0){case 0:break r;case 5:break B;case 1:case 2:case 3:case 4:break c;default:break A}}if((b|0)<=3590)switch(b-3078|0){case 0:break s;case 6:break z;case 1:case 2:case 3:case 4:case 5:break c;default:break y}N:switch(b-3591|0){case 0:break t;case 7:break x;case 1:case 2:case 3:case 4:case 5:case 6:break c;default:break N}switch(b-4104|0){case 0:break u;case 8:break v;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break c;default:break w}}J[((d<<2)+c|0)+ -44>>2]=1493;e=0;break a}J[((d<<2)+c|0)+44>>2]=1494;e=0;break a}J[((d<<2)+c|0)+44>>2]=1495;e=0;break a}J[((d<<2)+c|0)+44>>2]=1496;e=0;break a}J[((d<<2)+c|0)+44>>2]=1497;e=0;break a}J[((d<<2)+c|0)+44>>2]=1498;e=0;break a}J[((d<<2)+c|0)+44>>2]=1499;e=0;break a}J[((d<<2)+c|0)+44>>2]=1500;e=0;break a}if((b|0)!=2827)break c;J[((d<<2)+c|0)+44>>2]=1501;e=0;break a}J[((d<<2)+c|0)+44>>2]=1502;e=0;break a}if((b|0)!=3341)break c;J[((d<<2)+c|0)+44>>2]=1503;e=0;break a}J[((d<<2)+c|0)+44>>2]=1504;e=0;break a}if((b| -0)!=3855)break c;J[((d<<2)+c|0)+44>>2]=1505;e=0;break a}J[((d<<2)+c|0)+44>>2]=1506;e=0;break a}J[((d<<2)+c|0)+44>>2]=1507;e=0;break a}J[((d<<2)+c|0)+44>>2]=1508;e=0;break a}J[((d<<2)+c|0)+44>>2]=1509;e=0;break a}J[((d<<2)+c|0)+44>>2]=1510;e=0;break a}J[((d<<2)+c|0)+44>>2]=1511;e=0;break a}J[((d<<2)+c|0)+44>>2]=1512;e=0;break a}J[((d<<2)+c|0)+44>>2]=1513;e=0;break a}J[((d<<2)+c|0)+44>>2]=1514;e=0;break a}J[((d<<2)+c|0)+44>>2]=1515;e=0;break a}J[((d<<2)+c|0)+44>>2]=1516;e=0;break a}J[((d<<2)+c|0)+44>> -2]=1517;e=0;break a}J[((d<<2)+c|0)+44>>2]=1518;e=0;break a}J[((d<<2)+c|0)+44>>2]=1519;e=0;break a}J[((d<<2)+c|0)+44>>2]=1520;e=0;break a}J[((d<<2)+c|0)+44>>2]=1521;e=0;break a}J[((d<<2)+c|0)+44>>2]=1522;e=0;break a}O:switch(J[a+232>>2]){case 0:J[((d<<2)+c|0)+44>>2]=1523;e=0;break a;case 1:J[((d<<2)+c|0)+44>>2]=1524;e=1;break a;case 2:e=2;J[((d<<2)+c|0)+100>>2]=1525;break a;default:break O}b=J[a>>2];J[b+20>>2]=49;Ab[J[b>>2]](a);break a}if((b|0)==2313)break b}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=7;J[J[a>> -2]+28>>2]=J[k+40>>2];Ab[J[J[a>>2]>>2]](a);break a}J[((d<<2)+c|0)+44>>2]=1526;e=0}b=J[k+16>>2];P:{if(b>>>0<=3){i=J[((b<<2)+a|0)+88>>2];if(i)break P}f=J[a>>2];J[f+24>>2]=b;J[f+20>>2]=54;Ab[J[J[a>>2]>>2]](a);i=J[((b<<2)+a|0)+88>>2]}Q:{R:switch(e|0){case 0:b=(b<<2)+c|0;f=J[b+84>>2];if(!f){f=Ab[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+84>>2]=f}b=0;while(1){J[(b<<2)+f>>2]=L[(b<<1)+i>>1]<<3;h=b|1;J[(h<<2)+f>>2]=L[(h<<1)+i>>1]<<3;h=b|2;J[(h<<2)+f>>2]=L[(h<<1)+i>>1]<<3;h=b|3;J[(h<<2)+f>>2]=L[(h<<1)+i>>1]<<3;b=b+4| -0;if((b|0)!=64)continue;break}J[((d<<2)+c|0)+4>>2]=1527;break Q;case 1:b=(b<<2)+c|0;f=J[b+84>>2];if(!f){f=Ab[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+84>>2]=f}b=0;while(1){h=b<<1;J[(b<<2)+f>>2]=P(I[h+251264>>1],L[i+h>>1])+1024>>11;g=b|1;h=g<<1;J[(g<<2)+f>>2]=P(I[h+251264>>1],L[i+h>>1])+1024>>11;b=b+2|0;if((b|0)!=64)continue;break}J[((d<<2)+c|0)+4>>2]=1527;break Q;case 2:b=(b<<2)+c|0;f=J[b+140>>2];if(!f){f=Ab[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+140>>2]=f}h=0;b=0;while(1){j=O[(h<<3)+251392>>3];N[(b<<2)+f>>2]=1/ -(j*+L[(b<<1)+i>>1]*8);g=b|1;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*1.387039845*8);g=b|2;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*1.306562965*8);g=b|3;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*1.175875602*8);g=b|4;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*8);g=b|5;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.785694958*8);g=b|6;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.5411961*8);g=b|7;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.275899379*8);b=b+8|0;h=h+1|0;if((h|0)!=8)continue;break}J[((d<<2)+c|0)+4>>2]=1528;break Q;default:break R}b=J[a>> -2];J[b+20>>2]=49;Ab[J[b>>2]](a)}k=k+88|0;d=d+1|0;if((d|0)>2])continue;break}}}function _F(){var a=0,b=0,c=0;while(1){a:{b=J[194117];if(b)break a;b=vc(1,76);if(b){J[b+8>>2]=0;J[b>>2]=1;J[b+4>>2]=1;a=J[193874];J[b+12>>2]=J[193873];J[b+16>>2]=a;a=J[193876];J[b+20>>2]=J[193875];J[b+24>>2]=a;a=J[193878];J[b+28>>2]=J[193877];J[b+32>>2]=a;a=J[193880];J[b+36>>2]=J[193879];J[b+40>>2]=a;a=J[193882];J[b+44>>2]=J[193881];J[b+48>>2]=a;a=J[193884];J[b+52>>2]=J[193883];J[b+56>>2]=a;a=J[193886];J[b+60>>2]= -J[193885];J[b+64>>2]=a}else b=775480;b:{if(!J[b+4>>2])break b;a=J[b+72>>2];c:{if(!a)break c;c=J[a>>2];if(!c)break c;a=J[b+68>>2];if(a)a=J[a>>2];else a=0;Ab[c|0](a)}J[b+12>>2]=930;a=J[b+68>>2];if(a)J[a>>2]=0;a=J[b+72>>2];if(!a)break b;J[a>>2]=0}d:{if(!J[b+4>>2])break d;a=J[b+72>>2];e:{if(!a)break e;c=J[a+4>>2];if(!c)break e;a=J[b+68>>2];if(a)a=J[a+4>>2];else a=0;Ab[c|0](a)}J[b+16>>2]=931;a=J[b+68>>2];if(a)J[a+4>>2]=0;a=J[b+72>>2];if(!a)break d;J[a+4>>2]=0}f:{if(!J[b+4>>2])break f;a=J[b+72>>2];g:{if(!a)break g; -c=J[a+12>>2];if(!c)break g;a=J[b+68>>2];if(a)a=J[a+12>>2];else a=0;Ab[c|0](a)}J[b+24>>2]=932;a=J[b+68>>2];if(a)J[a+12>>2]=0;a=J[b+72>>2];if(!a)break f;J[a+12>>2]=0}h:{if(!J[b+4>>2])break h;a=J[b+72>>2];i:{if(!a)break i;c=J[a+16>>2];if(!c)break i;a=J[b+68>>2];if(a)a=J[a+16>>2];else a=0;Ab[c|0](a)}J[b+28>>2]=933;a=J[b+68>>2];if(a)J[a+16>>2]=0;a=J[b+72>>2];if(!a)break h;J[a+16>>2]=0}j:{if(!J[b+4>>2])break j;a=J[b+72>>2];k:{if(!a)break k;c=J[a+20>>2];if(!c)break k;a=J[b+68>>2];if(a)a=J[a+20>>2];else a= -0;Ab[c|0](a)}J[b+32>>2]=934;a=J[b+68>>2];if(a)J[a+20>>2]=0;a=J[b+72>>2];if(!a)break j;J[a+20>>2]=0}l:{if(!J[b+4>>2])break l;a=J[b+72>>2];m:{if(!a)break m;c=J[a+44>>2];if(!c)break m;a=J[b+68>>2];if(a)a=J[a+44>>2];else a=0;Ab[c|0](a)}J[b+56>>2]=935;a=J[b+68>>2];if(a)J[a+44>>2]=0;a=J[b+72>>2];if(!a)break l;J[a+44>>2]=0}n:{if(!J[b+4>>2])break n;a=J[b+72>>2];o:{if(!a)break o;c=J[a+48>>2];if(!c)break o;a=J[b+68>>2];if(a)a=J[a+48>>2];else a=0;Ab[c|0](a)}J[b+60>>2]=936;a=J[b+68>>2];if(a)J[a+48>>2]=0;a=J[b+ -72>>2];if(!a)break n;J[a+48>>2]=0}p:{if(!J[b+4>>2])break p;a=J[b+72>>2];q:{if(!a)break q;c=J[a+24>>2];if(!c)break q;a=J[b+68>>2];if(a)a=J[a+24>>2];else a=0;Ab[c|0](a)}J[b+36>>2]=937;a=J[b+68>>2];if(a)J[a+24>>2]=0;a=J[b+72>>2];if(!a)break p;J[a+24>>2]=0}r:{if(!J[b+4>>2])break r;a=J[b+72>>2];s:{if(!a)break s;c=J[a+28>>2];if(!c)break s;a=J[b+68>>2];if(a)a=J[a+28>>2];else a=0;Ab[c|0](a)}J[b+40>>2]=938;a=J[b+68>>2];if(a)J[a+28>>2]=0;a=J[b+72>>2];if(!a)break r;J[a+28>>2]=0}t:{if(!J[b+4>>2])break t;a=J[b+ -72>>2];u:{if(!a)break u;c=J[a+32>>2];if(!c)break u;a=J[b+68>>2];if(a)a=J[a+32>>2];else a=0;Ab[c|0](a)}J[b+44>>2]=939;a=J[b+68>>2];if(a)J[a+32>>2]=0;a=J[b+72>>2];if(!a)break t;J[a+32>>2]=0}v:{if(!J[b+4>>2])break v;a=J[b+72>>2];w:{if(!a)break w;c=J[a+36>>2];if(!c)break w;a=J[b+68>>2];if(a)a=J[a+36>>2];else a=0;Ab[c|0](a)}J[b+48>>2]=940;a=J[b+68>>2];if(a)J[a+36>>2]=0;a=J[b+72>>2];if(!a)break v;J[a+36>>2]=0}x:{if(!J[b+4>>2])break x;a=J[b+72>>2];y:{if(!a)break y;c=J[a+40>>2];if(!c)break y;a=J[b+68>>2]; -if(a)a=J[a+40>>2];else a=0;Ab[c|0](a)}J[b+52>>2]=941;a=J[b+68>>2];if(a)J[a+40>>2]=0;a=J[b+72>>2];if(!a)break x;J[a+40>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;a=J[194117];b=b?b:775480;J[194117]=a?a:b;if(!a)break a;a=!b;if(!(a|(b|0)==775480))z:{if(a)break z;a=J[b>>2];if(!a)break z;J[b>>2]=a-1;if((a|0)!=1)break z;J[b>>2]=-57005;a=J[b+8>>2];if(a){af(a+24|0,a);Kb(Ud(a));J[b+8>>2]=0}a=J[b+72>>2];A:{if(!a){a=0;break A}c=J[a>>2];if(c){a=J[b+68>>2];if(a)a=J[a>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+4>>2];if(c){a= -J[b+68>>2];if(a)a=J[a+4>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+8>>2];if(c){a=J[b+68>>2];if(a)a=J[a+8>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+12>>2];if(c){a=J[b+68>>2];if(a)a=J[a+12>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+16>>2];if(c){a=J[b+68>>2];if(a)a=J[a+16>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+20>>2];if(c){a=J[b+68>>2];if(a)a=J[a+20>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+24>>2];if(c){a=J[b+68>>2];if(a)a=J[a+24>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+28>>2];if(c){a=J[b+68>> -2];if(a)a=J[a+28>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+32>>2];if(c){a=J[b+68>>2];if(a)a=J[a+32>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+36>>2];if(c){a=J[b+68>>2];if(a)a=J[a+36>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+40>>2];if(c){a=J[b+68>>2];if(a)a=J[a+40>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+44>>2];if(c){a=J[b+68>>2];if(a)a=J[a+44>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+48>>2];if(c){a=J[b+68>>2];if(a)a=J[a+48>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}c=J[a+52>>2];if(!c)break A;a=J[b+ -68>>2];if(a)a=J[a+52>>2];else a=0;Ab[c|0](a);a=J[b+72>>2]}Kb(a);Kb(J[b+68>>2]);Kb(b)}continue}break}return b|0}function St(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;J[a>>2]=b-1;if((b|0)!=1)break a;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}b=J[a+212>>2];if(b)while(1){c=J[b+4>>2];Os(J[b>>2]);Kb(b);b=c;if(b)continue;break}J[a+40>>2]=0;J[a+44>>2]=0;b=J[a+52>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+52>>2]=0;b=J[a+56>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+56>>2]=0;b:{c:{b= -J[a+60>>2];if(!(!b|(b|0)==169776)){c=J[b+44>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+60>>2]=0;b=J[a+64>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+64>>2]=0;b=J[a+68>>2];if(!(!b|(b|0)==169776)){c=J[b+20>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[b+20>>2]=0;c=J[b+24>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+68>>2]=0;b=J[a+72>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+72>>2]=0;b=J[a+76>>2];if(!(!b|(b|0)== -169776)){Kb(J[b+28>>2]);c=J[b>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[b>>2]=0;if(J[b+12>>2]){J[b+16>>2]=0;Kb(J[b+20>>2])}Kb(b)}J[a+76>>2]=0;b=J[a+80>>2];if(!(!b|(b|0)==169776)){c=J[b+8>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[b+8>>2]=0;if(J[b+12>>2]){J[b+16>>2]=0;Kb(J[b+20>>2])}Kb(b)}J[a+80>>2]=0;b=J[a+84>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+84>>2]=0;b=J[a+88>>2];if(!(!b|(b|0)==169776)){c=J[b>>2];J[195395]=0;ea(583,c|0);c=J[195395]; -J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+88>>2]=0;b=J[a+92>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+92>>2]=0;b=J[a+96>>2];if(!(!b|(b|0)==169776)){c=J[b+20>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[b+20>>2]=0;c=J[b+24>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+96>>2]=0;b=J[a+100>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+100>>2]=0;b=J[a+104>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+104>>2]=0;b=J[a+108>>2];if(!(!b|(b|0)==169776)){c=J[b+24>>2]; -J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+108>>2]=0;c=J[a+112>>2];if(!(!c|(c|0)==169776)){b=J[c+228>>2];if(b){if(J[b>>2]){J[b+4>>2]=0;Kb(J[b+8>>2])}Kb(b)}Kb(jI(c))}J[a+112>>2]=0;b=J[a+116>>2];if(!(!b|(b|0)==169776))Kb(iI(b));J[a+116>>2]=0;b=J[a+120>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+120>>2]=0;b=J[a+124>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+124>>2]=0;b=J[a+128>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+128>>2]=0;b=J[a+132>>2];if(!(!b|(b|0)==169776)){c=J[b>>2];J[195395]= -0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[b>>2]=0;if(J[b+8>>2]){J[b+12>>2]=0;Kb(J[b+16>>2])}Kb(b)}J[a+132>>2]=0;b=J[a+136>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+136>>2]=0;b=J[a+140>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+140>>2]=0;b=J[a+144>>2];if(!(!b|(b|0)==169776)){c=J[b>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[b>>2]=0;if(J[b+4>>2]){J[b+8>>2]=0;Kb(J[b+12>>2])}Kb(b)}J[a+144>>2]=0;b=J[a+148>>2];if(!(!b|(b|0)==169776)){if(J[b+4>>2]){c=0;while(1){Kb(J[J[b+ -8>>2]+(c<<2)>>2]);c=c+1|0;if(c>>>0>2])continue;break}}Kb(J[b+8>>2]);c=J[b>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+148>>2]=0;b=J[a+152>>2];if(!(!b|(b|0)==169776)){if(J[b+4>>2]){c=0;while(1){Kb(J[J[b+8>>2]+(c<<2)>>2]);c=c+1|0;if(c>>>0>2])continue;break}}Kb(J[b+8>>2]);c=J[b>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+152>>2]=0;b=J[a+156>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+156>>2]=0;b=J[a+160>>2];if(!(!b|(b| -0)==169776))Ub(b);J[a+160>>2]=0;b=J[a+164>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+164>>2]=0;b=J[a+168>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+168>>2]=0;b=J[a+172>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+172>>2]=0;b=J[a+176>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+176>>2]=0;b=J[a+180>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+180>>2]=0;b=J[a+184>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+184>>2]=0;b=J[a+188>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+188>>2]=0;b=J[a+192>>2];if(!(!b|(b|0)==169776))Ub(b);J[a+192>>2]=0;b=J[a+196>>2]; -if(!(!b|(b|0)==169776)){c=J[b>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[b>>2]=0;c=J[b+4>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+196>>2]=0;b=J[a+200>>2];if(!(!b|(b|0)==169776)){c=J[b>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+200>>2]=0;b=J[a+204>>2];if(!(!b|(b|0)==169776)){c=J[b>>2];J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;Kb(b)}J[a+204>>2]=0;b=J[a+208>>2];if(!(!b| -(b|0)==169776))Ub(b);J[a+208>>2]=0;break b}ga(0)|0;_b();B()}b=J[a+20>>2];if(b)Ab[b|0](J[a+16>>2]);Kb(a)}}function Sna(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;j=J[c>>2];k=J[b+4132>>2];a:{b:{c:{d:switch(a|0){case 0:case 1:case 2:case 3:case 4:case 256:case 277:case 278:case 294:e=b+16|0;f=b+20|0;d=J[f>>2];e:{if(d){g=O[e+(d<<3)>>3];break e}H[e|0]=1;d=J[42445];h=J[42444];J[194120]=h;J[194121]=d;x(0,h|0);x(1,d|0);g=+z()}f:{if(R(g)<2147483648){d=~~g;break f}d=-2147483648}if((d|0)<0){H[e| -0]=1;d=0}h=c+24|0;g:{h:{i:{j:{k:{l:{m:{n:{o:switch(a-1|0){default:e=0;switch(a-256|0){case 22:break h;case 38:break i;case 21:break j;case 0:break n;default:break g}case 3:break k;case 2:break l;case 1:break m;case 0:break o}e=1;break g}e=2;break g}e=3;break g}e=4;break g}e=5;break g}e=6;break g}e=7;break g}e=8}J[(e<<2)+h>>2]=d;break c;case 290:e=b+16|0;f=b+20|0;d=J[f>>2];p:{if(d){g=O[e+(d<<3)>>3];break p}H[e|0]=1;d=J[42445];h=J[42444];J[194120]=h;J[194121]=d;x(0,h|0);x(1,d|0);g=+z()}q:{if(R(g)<2147483648){d= -~~g;break q}d=-2147483648}if((d|0)<0){H[e|0]=1;d=0}J[c+76>>2]=d;break c;case 286:h=b+16|0;f=b+20|0;d=J[f>>2];r:{if(d){e=d-1|0;J[b+20>>2]=e;g=O[(h+(e<<3)|0)+8>>3];break r}H[h|0]=1;d=J[42445];i=J[42444];J[194120]=i;J[194121]=d;x(0,i|0);x(1,d|0);g=+z()}s:{if(R(g)<2147483648){d=~~g;break s}d=-2147483648}if((d|0)<0){H[h|0]=1;d=0}J[c+72>>2]=d;i=c- -64|0;t:{if(e){d=e-1|0;J[b+20>>2]=d;g=O[(h+(d<<3)|0)+8>>3];break t}H[h|0]=1;d=J[42445];e=J[42444];J[194120]=e;J[194121]=d;x(0,e|0);x(1,d|0);g=+z()}u:{if(R(g)< -2147483648){d=~~g;break u}d=-2147483648}if((d|0)<0){H[h|0]=1;d=0}J[i>>2]=d;d=J[b+20>>2];v:{if(d){g=O[h+(d<<3)>>3];break v}H[h|0]=1;d=J[42445];e=J[42444];J[194120]=e;J[194121]=d;x(0,e|0);x(1,d|0);g=+z()}w:{if(R(g)<2147483648){d=~~g;break w}d=-2147483648}if((d|0)<0){H[h|0]=1;d=0}J[c+60>>2]=d;break c;case 16:d=b+16|0;f=J[b+20>>2];x:{if(f){f=f-1|0;J[b+20>>2]=f;g=O[(d+(f<<3)|0)+8>>3];break x}H[d|0]=1;d=J[42445];f=J[42444];J[194120]=f;J[194121]=d;x(0,f|0);x(1,d|0);g=+z()}y:{if(R(g)<2147483648){d=~~g;break y}d= --2147483648}if((d|0)<0){H[b+16|0]=1;J[c+80>>2]=0;J[b+20>>2]=0;return}J[c+80>>2]=d;J[b+20>>2]=0;if(d)break b;break a;case 15:d=b+16|0;f=J[b+20>>2];z:{if(f){f=f-1|0;J[b+20>>2]=f;g=O[(d+(f<<3)|0)+8>>3];break z}H[d|0]=1;d=J[42445];f=J[42444];J[194120]=f;J[194121]=d;x(0,f|0);x(1,d|0);g=+z()}A:{if(R(g)<2147483648){d=~~g;break A}d=-2147483648}if((d|0)<0){H[b+16|0]=1;J[c+84>>2]=0;J[b+20>>2]=0;return}J[c+84>>2]=d;J[b+20>>2]=0;if(d)break b;break a;case 293:e=b+16|0;f=b+20|0;d=J[f>>2];B:{if(d){g=O[e+(d<<3)>> -3];break B}H[e|0]=1;d=J[42445];h=J[42444];J[194120]=h;J[194121]=d;x(0,h|0);x(1,d|0);g=+z()}C:{if(R(g)<2147483648){d=~~g;break C}d=-2147483648}if((d|0)<0){H[e|0]=1;d=0}J[c+88>>2]=d;break c;case 18:e=b+16|0;f=b+20|0;d=J[f>>2];D:{if(d){h=d-1|0;g=O[(e+(h<<3)|0)+8>>3];break D}H[e|0]=1;d=J[42445];i=J[42444];J[194120]=i;J[194121]=d;x(0,i|0);x(1,d|0);g=+z()}E:{if(R(g)<2147483648){d=~~g;break E}d=-2147483648}if((d|0)<0){H[e|0]=1;d=0}J[c+92>>2]=d;if(h)g=O[e+(h<<3)>>3];else{H[e|0]=1;d=J[42445];h=J[42444];J[194120]= -h;J[194121]=d;x(0,h|0);x(1,d|0);g=+z()}F:{if(R(g)<2147483648){d=~~g;break F}d=-2147483648}if((d|0)<0){H[e|0]=1;d=0}J[c+96>>2]=d;break c;default:J[b+4132>>2]=J[b+8>>2];G:{H:{if((a|0)!=292){if((a|0)==263)break H;if((a|0)!=17)break G;e=b+16|0;f=b+20|0;d=J[f>>2];I:{if(d){g=O[e+(d<<3)>>3];break I}H[e|0]=1;d=J[42445];h=J[42444];J[194120]=h;J[194121]=d;x(0,h|0);x(1,d|0);g=+z()}J:{if(R(g)<2147483648){d=~~g;break J}d=-2147483648}if((d|0)<0){H[e|0]=1;d=0}J[c+16>>2]=d;break c}e=b+16|0;f=b+20|0;d=J[f>>2];K:{if(d){g= -O[e+(d<<3)>>3];break K}H[e|0]=1;d=J[42445];h=J[42444];J[194120]=h;J[194121]=d;x(0,h|0);x(1,d|0);g=+z()}L:{if(R(g)<2147483648){d=~~g;break L}d=-2147483648}if((d|0)<0){H[e|0]=1;d=0}J[c+20>>2]=d;break c}f=b+20|0;break c}Ek(a,b);if(!J[b+20>>2])break b;break a;case 5:case 13:case 14:case 257:case 258:case 259:case 260:case 261:case 262:case 264:case 276:case 279:case 287:case 288:case 289:case 291:break d}f=b+20|0}J[f>>2]=0}if(K[b+16|0]|M[b+8>>2]>M[b+4>>2])break a;f=J[c+4>>2];d=J[c+8>>2];M:{N:{if((f|0)> -(d|0))break N;O:{if((f|0)>=0){d=d+1|0;if(d>>>0<=f>>>0)break N;e=f;while(1){e=((e>>>1|0)+e|0)+8|0;if(d>>>0>e>>>0)continue;break}if(e>>>0<=268435455){d=ic(J[c+12>>2],e<<4);if(d)break O;f=J[c+4>>2];if(f>>>0>=e>>>0)break N}J[c+4>>2]=f^-1}d=J[42447];J[194122]=J[42446];J[194123]=d;d=J[42445];J[194120]=J[42444];J[194121]=d;f=776480;break M}J[c+4>>2]=e;J[c+12>>2]=d}d=J[c+8>>2];J[c+8>>2]=d+1;f=J[c+12>>2]+(d<<4)|0;J[f+12>>2]=(j^-1)+k;H[f+8|0]=0;J[f>>2]=0;J[f+4>>2]=65535}J[f+4>>2]=a;a=J[b+8>>2];d=J[b+4>>2]; -e=J[b>>2];b=J[c>>2];J[f>>2]=e+b;e=f;f=d-b|0;d=d>>>0>=f>>>0?f:0;b=a-b|0;H[e+8|0]=b>>>0>d>>>0?d:b;J[c>>2]=a}}function Ro(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;a:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<4)break a;d=1;b:{c:{d:{c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e:{if((c|0)<=1953658212){if((c|0)==256)break c;if((c|0)==65536|(c|0)==1330926671)break e;break b}if((c|0)==1954115633)break e;if((c|0)==1953784678)break d; -if((c|0)!=1953658213)break b}f=J[b+12>>2];d=J[b+4>>2];if(f>>>0>>0)break a;e=J[b+8>>2];if(e-a>>>0<12)break a;c=a+4|0;if(f>>>0>>0|e-c>>>0<8)break a;c=a+12|0;if(f>>>0>>0)break a;d=0;a=K[a+4|0]|K[a+5|0]<<8;a=((a<<8|a>>>8)&65535)<<4;if(a>>>0>e-c>>>0)break b;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0}c=0;p=xb-16|0;xb=p;e=a+4|0;f:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<4)break f;c=1;e=K[e|0]|K[e+1|0]<<8;if(((e<<8|e>>>8)&65535)-1>>>0>1)break f;J[p+12>>2]=a;c=0;d=a+8|0;if(M[b+12>>2]< -d-J[b+4>>2]>>>0|J[b+8>>2]-d>>>0<4)break f;e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(f>>>0>1073741823)break f;e=a+12|0;if(M[b+12>>2]>2]>>>0)break f;g=J[b+8>>2]-e|0;e=f<<2;if(g>>>0>>0)break f;e=J[b+16>>2]-e|0;J[b+16>>2]=e;if((e|0)<=0)break f;c=1;e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!e)break f;c=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);i=c>>>0<=1?1:c;d=0;while(1){h=J[b+12>>2];j=((d<<2)+a|0)+12|0;g=J[b+4>>2];c=0;g:{if(h>>>0< -j-g>>>0)break g;e=J[b+8>>2];c=0;if(e-j>>>0<4)break g;c=0;if(K[j|0]&128)break g;c=J[p+12>>2];f=1;k=K[j|0]|K[j+1|0]<<8|(K[j+2|0]<<16|K[j+3|0]<<24);h:{if(!k)break h;k=c+(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24))|0;i:{if(h>>>0>>0|e-k>>>0<12)break i;c=k+4|0;if(h>>>0>>0|e-c>>>0<8)break i;c=k+12|0;if(h>>>0>>0)break i;g=e-c|0;c=K[k+4|0]|K[k+5|0]<<8;c=((c<<8|c>>>8)&65535)<<4;if(g>>>0>>0)break i;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)>0)break h}e=J[b+32>>2];c=0;if(e>>>0>31)break g;J[b+32>>2]= -e+1;f=0;if(!K[b+28|0])break h;H[j|0]=0;H[j+1|0]=0;H[j+2|0]=0;H[j+3|0]=0;f=1}c=f}if(!c)break f;d=d+1|0;if((i|0)!=(d|0))continue;break}}xb=p+16|0;return c}d=0;i=J[b+12>>2];h=J[b+4>>2];e=i>>>0>>0;j:{if(e)break j;f=J[b+8>>2];c=f-a|0;if(e|c>>>0<16|(K[a|0]&128|c>>>0<4))break j;c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;if(i>>>0>>0)break j;c=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(c>>> -0>f-e>>>0)break j;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break j;c=a+4|0;if(i>>>0>>0|f-c>>>0<4|K[c|0]&128)break j;c=0;i=J[b+12>>2];d=a;a=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);g=d+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;h=J[b+4>>2];k:{if(i>>>0>>0)break k;d=J[b+8>>2];if(d-g>>>0<28)break k;a=g+24|0;if(i>>>0>>0|d-a>>>0<2)break k;f=K[g+24|0]|K[g+25|0]<<8;o=f>>>8|0;n=g+((f<<8|o)&65535)|0;if(i>>>0>>0|d-n>>>0<2)break k;a=n+2|0;if(i>>>0>>0)break k;d=d-a|0;a=K[n|0]| -K[n+1|0]<<8;a=(((a<<8|a>>>8)&65535)<<3)+8|0;if(d>>>0>>0)break k;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break k;k=g+((o|f<<8)&65535)|0;a=K[n|0]|K[n+1|0]<<8;p=(a<<8|a>>>8)&65535;a=0;while(1){o=0;c=0;d=(n+(a<<3)|0)+2|0;l:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<8)break l;if((K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24))==1953392243){f=K[d+4|0]|K[d+5|0]<<8;o=((f<<8|f>>>8)&65535)+1|0}i=J[b+12>>2];f=d+6|0;h=J[b+4>>2];if(i>>>0>>0)break l;d=J[b+8>>2];if(d-f>>>0<2)break l;f=K[f|0]|K[f+1| -0]<<8;j=((f<<8|f>>>8)&65535)+k|0;if(i>>>0>>0)break l;f=P(o,12);if(f>>>0>d-j>>>0)break l;f=J[b+16>>2]-f|0;J[b+16>>2]=f;if((f|0)<=0)break l;c=1;if(!o)break l;f=0;while(1){c=0;i=J[b+12>>2];m=j+P(f,12)|0;g=J[b+4>>2];m:{if(i>>>0>>0)break m;h=J[b+8>>2];if(h-m>>>0<12)break m;d=m+5|0;if(i>>>0>>0|h-d>>>0<3)break m;l=e+(K[m+7|0]|(K[m+6|0]<<8|K[m+5|0]<<16))|0;if(i>>>0>>0|h-l>>>0<4)break m;d=l+4|0;if(d-g>>>0>i>>>0)break m;g=h-d|0;d=K[l|0]|K[l+1|0]<<8|(K[l+2|0]<<16|K[l+3|0]<<24);d=d<<24|(d& -65280)<<8|(d>>>8&65280|d>>>24);if(g>>>0>>0)break m;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break m;d=J[b+12>>2];l=e+(K[m+7|0]|(K[m+6|0]<<8|K[m+5|0]<<16))|0;g=l+4|0;h=J[b+4>>2];if(d>>>0>>0)break m;i=J[b+8>>2];if(i-g>>>0<12)break m;g=d;d=l+8|0;if(g>>>0>>0|i-d>>>0<8)break m;d=l+16|0;if(M[b+12>>2]>2]>>>0)break m;g=J[b+8>>2]-d|0;d=K[l+8|0]|K[l+9|0]<<8;d=((d<<8|d>>>8)&65535)<<4;if(g>>>0>>0)break m;c=J[b+16>>2]-d|0;J[b+16>>2]=c;c=(c|0)>0}if(!c)break l;f=f+1|0;if((o|0)!=(f|0))continue; -break}}if((a|0)==(p|0))break k;a=a+1|0;if(c)continue;break}}d=c}}return d}return 0}function qm(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;h=xb-32|0;xb=h;J[h>>2]=0;H[a+733|0]=0;q=J[a+100>>2];l=J[a+736>>2];a:{if(!l){e=vj(a,0);J[h>>2]=e;if(e)break a;l=J[a+736>>2]}b:{j=J[l+12>>2];i=J[j>>2];b=b>>>0>i>>>0?i:b;if(!b)break b;while(1){if(J[(f<<2)+c>>2]-65537>>>0>=4294836223){f=f+1|0;if((f|0)!=(b|0))continue;break b}break}e=6;break a}if(!(K[a+732|0]|J[l+72>>2])){f=J[a+ -104>>2];i=J[f+28>>2];e=Ab[J[a+516>>2]](a,1735811442,f,h+24|0)|0;J[h+28>>2]=e;if(e)break a;m=J[f+8>>2];e=Nc(f,96832,h+4|0);J[h+28>>2]=e;if(e)break a;e=8;if(J[h+4>>2]!=65536)break a;g=L[h+8>>1];if((g|0)!=L[J[l+12>>2]>>1])break a;k=P(g,L[h+10>>1]);g=J[h+24>>2];if(k>>>0>g>>>1>>>0)break a;k=L[h+16>>1]+1<<(H[h+18|0]&1?2:1);if(k>>>0>g>>>0)break a;J[l+76>>2]=g;g=J[h+20>>2];e=Tc(f,k);J[h+28>>2]=e;if(e)break a;e=0;t=l,u=Tb(i,4,0,L[h+16>>1]+1|0,0,h+28|0),J[t+72>>2]=u;c:{d:{e:{if(J[h+28>>2])break e;n=g+m|0;k= -m+J[h+24>>2]|0;f:{if(!(H[h+18|0]&1)){g=0;while(1){o=n+(Zc(f)<<1)|0;e=e>>>0>o>>>0?e:o;J[J[l+72>>2]+(g<<2)>>2]=e>>>0>k>>>0?k:e;o=L[h+16>>1];p=o>>>0>g>>>0;g=g+1|0;if(p)continue;break}break f}g=0;while(1){o=he(f)+n|0;g=g>>>0>o>>>0?g:o;J[J[l+72>>2]+(e<<2)>>2]=g>>>0>k>>>0?k:g;o=L[h+16>>1];p=o>>>0>e>>>0;e=e+1|0;if(p)continue;break}}J[l+68>>2]=o;Ec(f);if(!L[h+10>>1])break c;e=bc(f,m+J[h+12>>2]|0);J[h+28>>2]=e;if(e)break d;e=Tc(f,P(L[h+10>>1],L[h+8>>1])<<1);J[h+28>>2]=e;if(e)break d;e=0;t=l,u=Tb(i,4,0,P(L[h+ -10>>1],L[h+8>>1]),0,h+28|0),J[t+64>>2]=u;if(J[h+28>>2])break e;i=L[h+10>>1];if(i){m=0;k=L[h+8>>1];while(1){e=0;g:{if(!(k&65535)){k=0;break g}while(1){i=Zc(f);k=L[h+8>>1];J[(J[l+64>>2]+(P(m,k)<<2)|0)+(e<<2)>>2]=i<<16>>16<<2;e=e+1|0;if(k>>>0>e>>>0)continue;break}i=L[h+10>>1]}e=i&65535;m=m+1|0;if(e>>>0>m>>>0)continue;break}}J[l+60>>2]=e;Ec(f);break c}Ec(f)}f=J[l+72>>2];if(f)Ab[J[i+8>>2]](i,f);J[l+68>>2]=0;J[l+72>>2]=0}e=J[h+28>>2];J[h>>2]=e;if(e)break a}p=J[l+4>>2];if(!p){t=l,u=Tb(q,4,0,J[j>>2],0,h), -J[t+4>>2]=u;e=J[h>>2];if(e)break a}h:{i:{j:{k:{m=J[l+8>>2];if(m){f=0;if(b)break k;break j}m=Tb(q,4,0,J[j>>2],0,h);J[l+8>>2]=m;e=J[h>>2];if(e)break a;g=J[j>>2];o=1;break h}k=1;while(1){i=f<<2;o=2;if(J[i+m>>2]!=J[c+i>>2])break i;f=f+1|0;if((f|0)!=(b|0))continue;break}f=b}k=0;o=0}g=J[j>>2];j=J[a+4>>2];l:{if(j&2147418112){if(f>>>0>=g>>>0)break l;i=J[l+20>>2]+(P((j>>>16|0)-1|0,g)<<2)|0;j=f<<2;e=i+j|0;r=(f^-1)+g|0;j=j+m|0;s=g-f&3;m:{if(!s){i=f;break m}n=0;i=f;while(1){k=J[j>>2]!=J[e>>2]?1:k;j=j+4|0;e=e+ -4|0;i=i+1|0;n=n+1|0;if((s|0)!=(n|0))continue;break}}if(r>>>0<3)break l;while(1){k=J[j+12>>2]!=J[e+12>>2]?1:J[j+8>>2]!=J[e+8>>2]?1:J[j+4>>2]!=J[e+4>>2]?1:J[j>>2]!=J[e>>2]?1:k;j=j+16|0;e=e+16|0;i=i+4|0;if((i|0)!=(g|0))continue;break}break l}if(f>>>0>=g>>>0)break l;n=(f^-1)+g|0;e=(f<<2)+m|0;r=g-f&3;n:{if(!r){j=f;break n}i=0;j=f;while(1){k=J[e>>2]?1:k;e=e+4|0;j=j+1|0;i=i+1|0;if((r|0)!=(i|0))continue;break}}if(n>>>0<3)break l;while(1){k=J[e+12>>2]|J[e+8>>2]|(J[e+4>>2]|J[e>>2])?1:k;e=e+16|0;j=j+4|0;if((j| -0)!=(g|0))continue;break}}o:{if(k&255){if(f>>>0>=g>>>0)break h;break o}H[a+733|0]=1;e=-1;break a}while(1){if(!J[(f<<2)+m>>2]){f=f+1|0;if((g|0)!=(f|0))continue;break h}break}o=2}J[l>>2]=g;Mb(m,c,b<<2);p:{if(!d)break p;e=J[l+4>>2];m=J[a+736>>2];g=J[m>>2];b=p?b:J[l>>2];i=b>>>0>g>>>0?g:b;q:{if(!i)break q;c=J[l+8>>2];j=0;f=0;if(i>>>0>=4){l=i&-4;k=0;while(1){d=f<<2;J[d+e>>2]=J[c+d>>2];n=d|4;J[n+e>>2]=J[c+n>>2];n=d|8;J[n+e>>2]=J[c+n>>2];d=d|12;J[d+e>>2]=J[c+d>>2];f=f+4|0;k=k+4|0;if((l|0)!=(k|0))continue; -break}}d=i&3;if(!d)break q;while(1){l=f<<2;J[l+e>>2]=J[c+l>>2];f=f+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}}if(b>>>0>g>>>0)Nb(e+(i<<2)|0,0,b-i<<2);r:{if(!i)break r;g=J[m+28>>2];if(!g)break r;l=0;while(1){d=L[g>>1];s:{if(d>>>0<2)break s;j=e+(l<<2)|0;b=J[j>>2];c=J[g+4>>2];f=1;while(1){k=f<<3;n=k+c|0;p=J[n+4>>2];if((p|0)>(b|0)){f=b;b=k-8|0;c=b+c|0;d=J[c+4>>2];t=j,u=hc(f-d|0,J[n>>2]-J[c>>2]|0,p-d|0)+J[b+J[g+4>>2]>>2]|0,J[t>>2]=u;break s}f=f+1|0;if((d|0)!=(f|0))continue;break}}g=g+8|0;l=l+1|0;if((i| -0)!=(l|0))continue;break}}if(!i)break p;b=J[J[m+12>>2]+12>>2];c=0;while(1){g=e+(c<<2)|0;j=J[g>>2];t:{u:{if((j|0)<0){f=J[b+4>>2];k=J[b+8>>2];d=k;break u}f=J[b+8>>2];d=f;if(!j)break t;k=J[b+12>>2];d=f}d=Rb(j,k-f|0)+d|0}J[g>>2]=d;b=b+24|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}H[a+733|0]=1;b=J[a+704>>2];v:{if(!b)break v;w:switch(o-1|0){case 1:if(b)Ab[J[q+8>>2]](q,b);J[a+704>>2]=0;t=h,u=Bv(a,J[a+104>>2]),J[t>>2]=u;break v;case 0:break w;default:break v}t=h,u=ov(a,J[a+104>>2]),J[t>>2]=u}b=J[a+720>>2]; -if(b)Ab[J[q+8>>2]](q,b);J[a+720>>2]=0;e=J[h>>2]}xb=h+32|0;return e}function qT(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;h=xb-48|0;xb=h;J[h+44>>2]=b;J[e>>2]=0;i=J[d+28>>2];J[h>>2]=i;J[i+4>>2]=J[i+4>>2]+1;J[195395]=0;i=_(3551,h|0)|0;j=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){j=J[h>>2];k=J[j+4>>2]-1|0;J[j+4>>2]=k;if((k|0)==-1)Ab[J[J[j>>2]+8>>2]](j);switch(g-65|0){case 54:break j; -case 19:break k;case 18:break l;case 17:break m;case 49:break n;case 47:break o;case 45:case 51:break p;case 12:break q;case 44:break r;case 41:break s;case 8:break t;case 7:break u;case 5:break v;case 3:break w;case 35:case 36:break x;case 34:break y;case 1:case 33:case 39:break z;case 0:case 32:break A;case 2:case 4:case 6:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 37:case 38:case 40:case 42:case 43:case 46:case 48:case 50:case 52:case 53:break d; -case 24:break f;case 56:break g;case 23:break h;case 55:break i;default:break e}}c=Z()|0;a=J[h>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}Qx(a,f+24|0,h+44|0,c,e,i);break b}Px(a,f+16|0,h+44|0,c,e,i);break b}b=Ab[J[J[a+8>>2]+12>>2]](a+8|0)|0;g=a;j=J[h+44>>2];a=b;B:{if(K[a+11|0]>>>7|0){b=J[a>>2];break B}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=Zg(g,j,c,d,e,f,i,b+(a<<2)|0),J[l+44>>2]=m;break b}a=tg(h+44| -0,c,e,i,2);b=J[e>>2];C:{if(!(a-1>>>0>30|b&4)){J[f+12>>2]=a;break C}J[e>>2]=b|4}break b}g=J[191015];J[h+24>>2]=J[191014];J[h+28>>2]=g;g=J[191013];J[h+16>>2]=J[191012];J[h+20>>2]=g;g=J[191011];J[h+8>>2]=J[191010];J[h+12>>2]=g;g=J[191009];J[h>>2]=J[191008];J[h+4>>2]=g;l=h,m=Zg(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}g=J[191023];J[h+24>>2]=J[191022];J[h+28>>2]=g;g=J[191021];J[h+16>>2]=J[191020];J[h+20>>2]=g;g=J[191019];J[h+8>>2]=J[191018];J[h+12>>2]=g;g=J[191017];J[h>>2]=J[191016];J[h+4>>2]=g;l=h, -m=Zg(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}a=tg(h+44|0,c,e,i,2);b=J[e>>2];D:{if(!((a|0)>23|b&4)){J[f+8>>2]=a;break D}J[e>>2]=b|4}break b}a=tg(h+44|0,c,e,i,2);b=J[e>>2];E:{if(!(a-1>>>0>11|b&4)){J[f+8>>2]=a;break E}J[e>>2]=b|4}break b}a=tg(h+44|0,c,e,i,3);b=J[e>>2];F:{if(!((a|0)>365|b&4)){J[f+28>>2]=a;break F}J[e>>2]=b|4}break b}b=tg(h+44|0,c,e,i,2)-1|0;a=J[e>>2];G:{if(!(b>>>0>11|a&4)){J[f+16>>2]=b;break G}J[e>>2]=a|4}break b}a=tg(h+44|0,c,e,i,2);b=J[e>>2];H:{if(!((a|0)>59|b&4)){J[f+4>>2]=a;break H}J[e>> -2]=b|4}break b}a=h+44|0;b=xb-16|0;xb=b;J[b+12>>2]=c;while(1){I:{if(Gf(a,b+12|0))break I;c=J[a>>2];d=J[c+12>>2];J:{if((d|0)==J[c+16>>2]){c=Ab[J[J[c>>2]+36>>2]](c)|0;break J}c=J[d>>2]}if(!(Ab[J[J[i>>2]+12>>2]](i,1,c)|0))break I;Gj(a);continue}break}if(Gf(a,b+12|0))J[e>>2]=J[e>>2]|2;xb=b+16|0;break b}g=h+44|0;b=Ab[J[J[a+8>>2]+8>>2]](a+8|0)|0;K:{if(K[b+11|0]>>>7|0){a=J[b+4>>2];break K}a=K[b+11|0]&127}if(K[b+23|0]>>>7|0)d=J[b+16>>2];else d=K[b+23|0]&127;L:{if((a|0)==(0-d|0)){J[e>>2]=J[e>>2]|4;break L}c= -Lm(g,c,b,b+24|0,i,e,0);a=J[f+8>>2];if(!((c|0)!=(b|0)|(a|0)!=12)){J[f+8>>2]=0;break L}if(!((c-b|0)!=12|(a|0)>11))J[f+8>>2]=a+12}break b}g=Mb(h,764096,44);l=g,m=Zg(a,b,c,d,e,f,g,g+44|0),J[l+44>>2]=m;break b}J[h+16>>2]=J[191040];g=J[191039];J[h+8>>2]=J[191038];J[h+12>>2]=g;g=J[191037];J[h>>2]=J[191036];J[h+4>>2]=g;l=h,m=Zg(a,b,c,d,e,f,h,h+20|0),J[l+44>>2]=m;break b}a=tg(h+44|0,c,e,i,2);b=J[e>>2];M:{if(!((a|0)>60|b&4)){J[f>>2]=a;break M}J[e>>2]=b|4}break b}g=J[191051];J[h+24>>2]=J[191050];J[h+28>>2]= -g;g=J[191049];J[h+16>>2]=J[191048];J[h+20>>2]=g;g=J[191047];J[h+8>>2]=J[191046];J[h+12>>2]=g;g=J[191045];J[h>>2]=J[191044];J[h+4>>2]=g;l=h,m=Zg(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}a=tg(h+44|0,c,e,i,1);b=J[e>>2];N:{if(!((a|0)>6|b&4)){J[f+24>>2]=a;break N}J[e>>2]=b|4}break b}a=Ab[J[J[a>>2]+20>>2]](a,b,c,d,e,f)|0;break a}b=Ab[J[J[a+8>>2]+24>>2]](a+8|0)|0;g=a;j=J[h+44>>2];a=b;O:{if(K[a+11|0]>>>7|0){b=J[a>>2];break O}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a= -K[a+11|0]&127;l=h,m=Zg(g,j,c,d,e,f,i,b+(a<<2)|0),J[l+44>>2]=m;break b}Ox(f+20|0,h+44|0,c,e,i);break b}a=tg(h+44|0,c,e,i,4);if(!(K[e|0]&4))J[f+20>>2]=a-1900;break b}if((g|0)==37)break c}J[e>>2]=J[e>>2]|4;break b}a=xb-16|0;xb=a;J[a+12>>2]=c;b=6;d=h+44|0;g=a+12|0;P:{Q:{if(Gf(d,g))break Q;b=4;c=J[d>>2];f=J[c+12>>2];R:{if((f|0)==J[c+16>>2]){c=Ab[J[J[c>>2]+36>>2]](c)|0;break R}c=J[f>>2]}if((Ab[J[J[i>>2]+52>>2]](i,c,0)|0)!=37)break Q;b=2;if(!Gf(Gj(d),g))break P}J[e>>2]=J[e>>2]|b}xb=a+16|0}a=J[h+44>>2]}xb= -h+48|0;return a|0}function Bf(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;p=!b;a:{if(J[a+132>>2]>0){f=J[a>>2];if(J[f+44>>2]==2){b:{if(L[a+148>>1]|L[a+152>>1]|(L[a+156>>1]|L[a+160>>1]))break b;if(L[a+164>>1]|L[a+168>>1]|(L[a+172>>1]|L[a+204>>1]))break b;if(L[a+208>>1]|L[a+212>>1]|(L[a+216>>1]|L[a+220>>1]))break b;if(L[a+224>>1]|L[a+228>>1]|(L[a+232>>1]|L[a+236>>1]))break b;if(L[a+240>>1]|L[a+244>>1]|(L[a+248>>1]|L[a+260>>1]))break b;if(L[a+272>>1]|(L[a+264>>1]|L[a+268>>1]))break b; -c:{if(L[a+200>>1]|(L[a+184>>1]|L[a+188>>1]))break c;h=32;while(1){e=h<<2;if(L[(e+a|0)+148>>1]|L[((e|4)+a|0)+148>>1]|(L[((e|8)+a|0)+148>>1]|L[((e|12)+a|0)+148>>1]))break c;h=h+4|0;if((h|0)!=256)continue;break}break b}g=1}J[f+44>>2]=g}Ks(a,a+2840|0);Ks(a,a+2852|0);e=L[a+150>>1];n=a+148|0;l=J[a+2844>>2];I[(n+(l<<2)|0)+6>>1]=65535;h=0;if((l|0)>=0){i=e?7:138;m=e?4:3;j=-1;f=0;while(1){g=e;o=f;f=f+1|0;e=L[(n+(f<<2)|0)+2>>1];k=h+1|0;d:{if(!((g|0)!=(e|0)|(k|0)>=(i|0))){h=k;break d}e:{if((m|0)>(k|0)){h=((g<< -2)+a|0)+2684|0;I[h>>1]=k+L[h>>1];break e}if(g){if((g|0)!=(j|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=L[h>>1]+1}I[a+2748>>1]=L[a+2748>>1]+1;break e}if((h|0)<=9){I[a+2752>>1]=L[a+2752>>1]+1;break e}I[a+2756>>1]=L[a+2756>>1]+1}h=0;f:{if(!e){m=3;i=138;break f}i=(e|0)==(g|0);m=i?3:4;i=i?6:7}j=g}if((l|0)!=(o|0))continue;break}}e=L[a+2442>>1];n=a+2440|0;l=J[a+2856>>2];I[(n+(l<<2)|0)+6>>1]=65535;h=0;if((l|0)>=0){i=e?7:138;m=e?4:3;j=-1;f=0;while(1){g=e;o=f;f=f+1|0;e=L[(n+(f<<2)|0)+2>>1];k=h+1|0;g:{if(!((g|0)!=(e| -0)|(k|0)>=(i|0))){h=k;break g}h:{if((m|0)>(k|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=k+L[h>>1];break h}if(g){if((g|0)!=(j|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=L[h>>1]+1}I[a+2748>>1]=L[a+2748>>1]+1;break h}if((h|0)<=9){I[a+2752>>1]=L[a+2752>>1]+1;break h}I[a+2756>>1]=L[a+2756>>1]+1}h=0;i:{if(!e){m=3;i=138;break i}i=(e|0)==(g|0);m=i?3:4;i=i?6:7}j=g}if((l|0)!=(o|0))continue;break}}Ks(a,a+2864|0);g=J[a+5800>>2];f=18;j:{if(L[a+2746>>1])break j;f=17;if(L[a+2690>>1])break j;f=16;if(L[a+2742>>1])break j;f=15;if(L[a+ -2694>>1])break j;f=14;if(L[a+2738>>1])break j;f=13;if(L[a+2698>>1])break j;f=12;if(L[a+2734>>1])break j;f=11;if(L[a+2702>>1])break j;f=10;if(L[a+2730>>1])break j;f=9;if(L[a+2706>>1])break j;f=8;if(L[a+2726>>1])break j;f=7;if(L[a+2710>>1])break j;f=6;if(L[a+2722>>1])break j;f=5;if(L[a+2714>>1])break j;f=4;if(L[a+2718>>1])break j;f=L[a+2686>>1]?3:2}e=g+P(f,3)|0;J[a+5800>>2]=e+17;g=J[a+5804>>2]+10>>>3|0;e=e+27>>>3|0;e=e>>>0>g>>>0?g:e;break a}g=c+5|0;e=g}k:{if(!(p|e>>>0>>0)){qo(a,b,c,d);break k}b= -J[a+5820>>2];if(!((e|0)!=(g|0)&J[a+136>>2]!=4)){c=d+2|0;l:{if((b|0)>=14){b=L[a+5816>>1]|c<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];I[a+5816>>1]=(c&65535)>>>16-b;b=b-13|0;break l}I[a+5816>>1]=L[a+5816>>1]|c<>2]=b;MF(a,232080,233232);break k}c=d+4|0;m:{if((b|0)>=14){b=L[a+5816>>1]|c<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>> -2]|0]=K[a+5817|0];b=J[a+5820>>2];h=(c&65535)>>>16-b|0;b=b-13|0;break m}h=L[a+5816>>1]|c<>2]=b;i=J[a+2844>>2];e=i+65280|0;c=J[a+2856>>2];n:{if((b|0)>=12){b=e<>1]=b;h=J[a+20>>2];J[a+20>>2]=h+1;H[h+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];e=(e&65535)>>>16-b|0;g=b-11|0;break n}e=e<>2]=g;o:{if((g|0)>=12){b=c<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1; -H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];h=(c&65535)>>>16-b|0;b=b-11|0;break o}h=c<>2]=b;g=f+65533|0;p:{if((b|0)>=13){b=g<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];e=J[a+5820>>2];b=(g&65535)>>>16-e|0;e=e-12|0;break p}e=b+4|0;b=g<>2]=e;g=0;h=a+5817|0;while(1){j=L[((K[g+233696|0]<<2)+a|0)+2686>>1];b=j<>1]=b;q:{if((e|0)>=14){e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]| -0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[h|0];e=J[a+5820>>2];b=j>>>16-e|0;I[a+5816>>1]=b;e=e-13|0;break q}e=e+3|0}J[a+5820>>2]=e;j=(g|0)!=(f|0);g=g+1|0;if(j)continue;break}b=a+148|0;LF(a,b,i);e=a+2440|0;LF(a,e,c);MF(a,b,e)}NF(a);if(d){b=J[a+5820>>2];r:{if((b|0)>=9){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];break r}if((b|0)<=0)break r;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0]}J[a+5820>>2]=0;I[a+5816>> -1]=0}}function dfa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+76>>2];if((c|0)>0){b=J[a+84>>2];while(1){f=Jl(a,J[b+16>>2])+f|0;b=b+88|0;d=d+1|0;c=J[a+76>>2];if((d|0)<(c|0))continue;break}}a:{b:{c:{d:{if(!J[a+212>>2]){b=194;if(J[a+264>>2])break a;if(J[a+72>>2]!=8|J[a+376>>2]!=8)break c;e=1;e:{if((c|0)<=0)break e;g=c&1;d=J[a+84>>2];if((c|0)!=1){h=c&-2;c=0;while(1){e=J[d+24>>2]<2&J[d+20>>2]<=1?e:0;e=J[d+112>>2]<2&J[d+108>>2]<=1?e:0;d=d+176|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!g|J[d+24>>2]< -2&J[d+20>>2]<=1)break e;e=0}if(!f|!e)break c;c=J[a>>2];J[c+20>>2]=77;Ab[J[c+4>>2]](a,0);if(!J[a+212>>2])break d}b=J[a+264>>2]?202:201;break a}if(!J[a+264>>2])break b;break a}if(J[a+264>>2])break a;b=192;if(e)break a}b=193}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=255;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f:{if(d)break f;if(Ab[J[c+12>>2]](a)|0)break f;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;g:{if(b)break g;if(Ab[J[c+12>>2]](a)|0)break g; -b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=J[a+76>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=P(d,3)+8|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(Ab[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(Ab[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(!(J[a+64>>2]<65536&J[a+68>>2]<=65535)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65535;Ab[J[J[a>>2]>>2]](a)}d=J[a+72>>2]; -b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(Ab[J[b+12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}c=J[a+68>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;k:{if(d)break k;if(Ab[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(Ab[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}c=J[a+64>> -2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;m:{if(d)break m;if(Ab[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(Ab[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}d=J[a+76>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;o:{if(c)break o;if(Ab[J[b+12>>2]](a)|0)break o;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(J[a+ -76>>2]>0){b=J[a+84>>2];c=0;while(1){f=J[b>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=f;e=J[d+4>>2]-1|0;J[d+4>>2]=e;p:{if(e)break p;if(Ab[J[d+12>>2]](a)|0)break p;d=J[a>>2];J[d+20>>2]=25;Ab[J[d>>2]](a)}f=J[b+12>>2];g=J[b+8>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=f+(g<<4);e=J[d+4>>2]-1|0;J[d+4>>2]=e;q:{if(e)break q;if(Ab[J[d+12>>2]](a)|0)break q;d=J[a>>2];J[d+20>>2]=25;Ab[J[d>>2]](a)}f=J[b+16>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=f;e=J[d+4>>2]-1|0;J[d+4>>2]=e;r:{if(e)break r;if(Ab[J[d+ -12>>2]](a)|0)break r;d=J[a>>2];J[d+20>>2]=25;Ab[J[d>>2]](a)}b=b+88|0;c=c+1|0;if((c|0)>2])continue;break}}s:{if(!J[a+264>>2]|J[a+376>>2]==8)break s;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(Ab[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=218;c=J[b+4>>2]-1|0;J[b+4>>2]=c;u:{if(c)break u;if(Ab[J[b+12>>2]](a)|0)break u;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>> -2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;v:{if(c)break v;if(Ab[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=6;c=J[b+4>>2]-1|0;J[b+4>>2]=c;w:{if(c)break w;if(Ab[J[b+12>>2]](a)|0)break w;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;x:{if(c)break x;if(Ab[J[b+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]- -1|0;J[b+4>>2]=c;y:{if(c)break y;if(Ab[J[b+12>>2]](a)|0)break y;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}c=J[a+376>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=P(c,c)-1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(Ab[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break s;if(Ab[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}}function nI(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0,n=0;m=K[a| -0]|K[a+1|0]<<8;if(!m)return 169776;a:{if(b>>>0>=f>>>0)break a;k=a+4|0;b=k+(b<<2)|0;h=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(h>>>0<=j>>>0)break a;i=h-j|0;if(i>>>0<9)break a;n=a-J[c+12>>2]|0;l=J[c+16>>2]-n|0;if(h>>>0>l>>>0)break a;h=i-8|0;b:{i=b?a+j|0:169776;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);c:{if((b|0)!=1701868900)break c;if(h>>>0<2)break b; -b=K[i+8|0]|K[i+9|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>=f>>>0)break a;b=k+(b<<2)|0;h=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(h>>>0<=j>>>0)break a;i=h-j|0;if(i>>>0<9|h>>>0>l>>>0)break a;h=i-8|0;i=b?a+j|0:169776;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if((b|0)!=1701868900)break c;if(h>>>0<2)break b;b=K[i+8|0]|K[i+9|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>> -0>=f>>>0)break a;b=k+(b<<2)|0;h=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(h>>>0<=j>>>0)break a;i=h-j|0;if(i>>>0<9|h>>>0>l>>>0)break a;h=i-8|0;i=b?a+j|0:169776;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if((b|0)!=1701868900)break c;if(h>>>0<2)break b;b=K[i+8|0]|K[i+9|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>=f>>>0)break a;b=k+(b<<2)|0;h=K[b+4|0]|K[b+5|0]<< -8|(K[b+6|0]<<16|K[b+7|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(h>>>0<=j>>>0)break a;i=h-j|0;if(i>>>0<9|h>>>0>l>>>0)break a;h=i-8|0;i=b?a+j|0:169776;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if((b|0)!=1701868900)break c;if(h>>>0<2)break b;b=K[i+8|0]|K[i+9|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>=f>>>0)break a;b=k+(b<<2)|0;h=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);h=h<<24|(h&65280)<< -8|(h>>>8&65280|h>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(h>>>0<=j>>>0)break a;i=h-j|0;if(i>>>0<9|h>>>0>l>>>0)break a;h=i-8|0;i=b?a+j|0:169776;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if((b|0)!=1701868900)break c;if(h>>>0<2)break b;b=K[i+8|0]|K[i+9|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>=f>>>0)break a;b=k+(b<<2)|0;h=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+ -2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(h>>>0<=j>>>0)break a;i=h-j|0;if(i>>>0<9|h>>>0>l>>>0)break a;h=i-8|0;i=b?a+j|0:169776;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if((b|0)!=1701868900)break c;if(h>>>0<2)break b;b=K[i+8|0]|K[i+9|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>=f>>>0)break a;b=k+(b<<2)|0;h=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>> -8&65280|b>>>24);if(h>>>0<=j>>>0)break a;i=h-j|0;if(i>>>0<9|h>>>0>l>>>0)break a;h=i-8|0;i=b?a+j|0:169776;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if((b|0)!=1701868900)break c;if(h>>>0<2)break b;b=K[i+8|0]|K[i+9|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>=f>>>0)break a;b=k+(b<<2)|0;h=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(h>>>0<=j>>>0)break a;i=h-j|0;if(i>>> -0<9|h>>>0>l>>>0)break a;h=i-8|0;i=b?a+j|0:169776;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if((b|0)!=1701868900)break c;if(h>>>0<2)break b;b=K[i+8|0]|K[i+9|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>=f>>>0)break a;b=k+(b<<2)|0;f=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(f>>>0<=j>>>0)break a;h=f-j|0;if(h>>>0<9|f>>>0>l>>>0)break a;i=b?a+j|0:169776;b=K[i+4| -0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if((b|0)==1701868900)break b;h=h-8|0}if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))!=1886283552)return 169776;if(g)J[g>>2]=(m<<8|m>>>8)&65535;if(d){a=K[i|0]|K[i+1|0]<<8;J[d>>2]=(a<<8|a>>>8)<<16>>16}if(e){a=K[i+2|0]|K[i+3|0]<<8;J[e>>2]=(a<<8|a>>>8)<<16>>16}return tj(c,(j+n|0)+8|0,h)}return 169776}return 169776}function E1(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;c=xb-320|0;xb=c;a:{if(!a){a=6;break a}a=19;e=J[b+8>> -2];if(!(e&1))break a;a=20;f=J[b+4>>2];if(!f)break a;d=I[f+2>>1];if(!d){a=0;break a}j=I[f>>1];if((j|0)<=0){a=0;break a}k=J[f+12>>2];if(!k|!J[f+4>>2]|(d|0)!=(I[(k+(j<<1)|0)-2>>1]+1|0))break a;d=J[b>>2];J[c+232>>2]=J[f+16>>2];a=J[f+12>>2];J[c+224>>2]=J[f+8>>2];J[c+228>>2]=a;a=J[f+4>>2];J[c+216>>2]=J[f>>2];J[c+220>>2]=a;b:{if(e&2){a=J[b+12>>2];if(!a){a=0;break a}J[c+244>>2]=a;a=J[b+28>>2];J[c+312>>2]=0;J[c+248>>2]=a;a=J[b+32>>2];J[c+164>>2]=a;d=J[b+36>>2];J[c+172>>2]=d;f=J[b+40>>2];J[c+168>>2]=f;b=J[b+ -44>>2];break b}if(!d){a=6;break a}f=J[d+4>>2];if(!f){a=0;break a}b=J[d>>2];if(!b){a=0;break a}a=6;e=J[d+12>>2];if(!e)break a;a=J[d+8>>2];J[c+240>>2]=a;J[c+244>>2]=0;J[c+248>>2]=0;d=0;J[c+172>>2]=0;J[c+164>>2]=0;J[c+168>>2]=f;J[c+312>>2]=-1;J[c+236>>2]=e+((a|0)>=0?P(a,b-1|0):0);a=0}J[c+176>>2]=b;if((a|0)>=(f|0)){a=0;break a}a=0;if((b|0)<=(d|0))break a;d=0;j=xb-16512|0;xb=j;n=J[c+176>>2];b=J[c+172>>2];l=n-b|0;if(l>>>0>=129){a=l+127>>>7|0;l=((a+l|0)-1>>>0)/(a>>>0)|0}p=l<<2;a=p+15|0;J[c+200>>2]=1024- -(a>>>4|0);f=a&-16;a=j+128|0;J[c+196>>2]=f+a;J[c+192>>2]=a;c:{if((b|0)>=(n|0))break c;m=c+252|0;r=c+216|0;a=0;while(1){J[c+172>>2]=b;k=b+l|0;q=(k|0)<(n|0);f=q?k:n;J[c+176>>2]=f;J[j>>2]=f;J[j+4>>2]=b;f=j;while(1){i=J[f+4>>2];o=J[f>>2];Nb(J[c+192>>2],0,p);J[c+188>>2]=1;J[c+204>>2]=0;J[c+172>>2]=J[f+4>>2];J[c+176>>2]=J[f>>2];d:{e:{f:{g:{h:{if(a){J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break h}J[195395]=0;g=aa(28,r|0,29384,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break h;if(a){J[195395]=0;a= -J[195395];J[195395]=0;if((a|0)==1)break h}i:{if(J[c+188>>2])break i;d=J[c+156>>2];j:{e=J[c+192>>2]+(J[c+160>>2]-J[c+172>>2]<<2)|0;a=J[e>>2];k:{if(!a){a=0;break k}h=J[a>>2];if((d|0)<(h|0))break k;l:{while(1){b=a;if((d|0)==(h|0))break j;a=J[a+12>>2];if(a){h=J[a>>2];if((d|0)<(h|0))break l;continue}break}a=0}e=b+12|0}b=J[c+204>>2];if((b|0)>=J[c+200>>2]){J[195395]=0;$(30,c|0,1);a=J[195395];J[195395]=0;if((a|0)==1)break h;b=J[c+204>>2];a=J[e>>2]}J[c+204>>2]=b+1;b=J[c+196>>2]+(b<<4)|0;J[b>>2]=d;J[b+8>>2]= -J[c+180>>2];d=J[c+184>>2];J[b+12>>2]=a;J[b+4>>2]=d;J[e>>2]=b;break i}J[b+8>>2]=J[b+8>>2]+J[c+180>>2];J[b+4>>2]=J[b+4>>2]+J[c+184>>2]}if((g|0)==64)break g;if(g){d=1;break c}h=J[c+172>>2];if((h|0)>2])while(1){a=J[J[c+192>>2]+(h-J[c+172>>2]<<2)>>2];m:{n:{o:{if(!a)break o;d=J[c+164>>2];b=0;while(1){p:{if(!b)break p;g=J[a>>2];if((g|0)<=(d|0))break p;e=b>>9;q:{if(K[c+232|0]&2){e=e&511;e=e>>>0>255?e^511:e;break q}e=e^b>>31;e=(e|0)>=255?255:e}g=g-d|0;i=J[c+312>>2];if((i|0)>=0){o=i+1|0;J[c+312>>2]= -o;i=P(i,6)+m|0;H[i+4|0]=e;I[i+2>>1]=g;I[i>>1]=d;if((o|0)!=10)break p;Ab[J[c+244>>2]](h,10,m,J[c+248>>2]);J[c+312>>2]=0;break p}d=(J[c+236>>2]-P(J[c+240>>2],h)|0)+d|0;r:switch(g|0){case 7:H[d|0]=e;d=d+1|0;case 6:H[d|0]=e;d=d+1|0;case 5:H[d|0]=e;d=d+1|0;case 4:H[d|0]=e;d=d+1|0;case 3:H[d|0]=e;d=d+1|0;case 2:H[d|0]=e;d=d+1|0;case 1:H[d|0]=e;break p;case 0:break p;default:break r}Nb(d,e,g)}b=(J[a+4>>2]<<9)+b|0;d=J[a+8>>2];s:{if((b|0)==(d|0))break s;e=J[a>>2];if((e|0)>2])break s;g=b-d|0;d=g>> -9;t:{if(K[c+232|0]&2){d=d&511;d=d>>>0>255?d^511:d;break t}d=d^g>>31;d=(d|0)>=255?255:d}g=J[c+312>>2];if((g|0)>=0){i=g+1|0;J[c+312>>2]=i;g=P(g,6)+m|0;H[g+4|0]=d;I[g+2>>1]=1;I[g>>1]=e;if((i|0)!=10)break s;Ab[J[c+244>>2]](h,10,m,J[c+248>>2]);J[c+312>>2]=0;break s}H[e+(J[c+236>>2]-P(J[c+240>>2],h)|0)|0]=d}d=J[a>>2]+1|0;a=J[a+12>>2];if(a)continue;break}if(!b)break o;a=b>>9;u:{if(K[c+232|0]&2){a=a&511;b=a>>>0>255?a^511:a;break u}a=a^b>>31;b=(a|0)>=255?255:a}e=J[c+168>>2]-d|0;a=J[c+312>>2];if((a|0)>=0){g= -a+1|0;J[c+312>>2]=g;a=P(a,6)+m|0;H[a+4|0]=b;I[a+2>>1]=e;I[a>>1]=d;a=10;if((g|0)!=10)break o;break n}a=(J[c+236>>2]-P(J[c+240>>2],h)|0)+d|0;v:switch(e|0){case 7:H[a|0]=b;a=a+1|0;case 6:H[a|0]=b;a=a+1|0;case 5:H[a|0]=b;a=a+1|0;case 4:H[a|0]=b;a=a+1|0;case 3:H[a|0]=b;a=a+1|0;case 2:H[a|0]=b;a=a+1|0;case 1:H[a|0]=b;break o;case 0:break o;default:break v}Nb(a,b,e)}a=J[c+312>>2];if((a|0)<=0)break m}Ab[J[c+244>>2]](h,a,m,J[c+248>>2]);J[c+312>>2]=0}h=h+1|0;if((h|0)>2])continue;break}f=f-4|0;break d}a= -ga(774020)|0;if((yb|0)!=(Xa(774020)|0))break f;sa(a|0)|0;ua()}a=o-i|0;if(a>>>0>=2)break e;d=1;break c}ba(a|0);B()}b=J[f+4>>2];J[f+8>>2]=b;J[f+4>>2]=b+(a>>1);f=f+4|0}a=1;if(f>>>0>=j>>>0)continue;break}d=0;b=k;if(q)continue;break}}xb=j+16512|0;a=d}xb=c+320|0;return a|0}function ooa(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;m=J[b>>2];a=J[m+28>>2];a:{if(a)break a;b=m+28|0;while(1){if(!J[m>>2]){a=169776;break a}a=_H(b);if(!a)a=169776;f=J[b>>2];J[b>> -2]=f?f:a;if(!f)break a;ZH(a);a=J[b>>2];if(!a)continue;break}}b=d;f=J[a+4>>2];b:{c:{if((f|0)!=131072){if((f|0)!=65536)break b;j=258;break c}f=J[a+8>>2];f=K[f|0]|K[f+1|0]<<8;if(!f)break b;j=(f<<8|f>>>8)&65535}if((b|0)<0)b=ac(c);if(!b)break b;g=J[a+28>>2];d:{if(g)break d;k=j<<1;if(!j){while(1){g=Qb(k);if(!g)break b;jt(g,0,a);f=J[a+28>>2];J[a+28>>2]=f?f:g;if(!f)break d;Kb(g);g=J[a+28>>2];if(!g)continue;break}break d}p=j&65528;n=j&7;q=j>>>0<8;while(1){g=Qb(k);if(!g)break b;f=0;h=0;o=0;if(!q)while(1){I[(h<< -1)+g>>1]=h;l=h|1;I[(l<<1)+g>>1]=l;l=h|2;I[(l<<1)+g>>1]=l;l=h|3;I[(l<<1)+g>>1]=l;l=h|4;I[(l<<1)+g>>1]=l;l=h|5;I[(l<<1)+g>>1]=l;l=h|6;I[(l<<1)+g>>1]=l;l=h|7;I[(l<<1)+g>>1]=l;h=h+8|0;o=o+8|0;if((p|0)!=(o|0))continue;break}if(n)while(1){I[(h<<1)+g>>1]=h;h=h+1|0;f=f+1|0;if((n|0)!=(f|0))continue;break}jt(g,j,a);f=J[a+28>>2];J[a+28>>2]=f?f:g;if(!f)break d;Kb(g);g=J[a+28>>2];if(!g)continue;break}}h=j-1|0;j=0;e:{while(1){o=h+j|0;p=(o&-2)+g|0;k=L[p>>1];n=J[a+4>>2];f:{if((n|0)!=131072){f=0;i=0;if((n|0)!=65536| -k>>>0>257)break f;i=k<<2;f=J[i+122256>>2];i=J[i+122260>>2]+(f^-1)|0;f=f+118544|0;break f}f=0;i=0;n=J[a+8>>2];q=K[n|0]|K[n+1|0]<<8;if(k>>>0>=((q<<8|q>>>8)&65535)>>>0)break f;i=n+(k<<1)|0;i=K[i+2|0]|K[i+3|0]<<8;k=(i<<8|i>>>8)&65535;if(k>>>0<=257){i=k<<2;f=J[i+122256>>2];i=J[i+122260>>2]+(f^-1)|0;f=f+118544|0;break f}i=0;k=k-258|0;if(k>>>0>=M[a+16>>2])break f;i=J[a+24>>2]+J[J[a+20>>2]+(k<<2)>>2]|0;f=i+1|0;i=K[i|0]}k=o>>>1|0;if((b|0)!=(i|0))f=b-i|0;else f=cd(c,f,b);g:{if((f|0)<0){h=k-1|0;break g}if(!f)break e; -j=k+1|0}if((h|0)>=(j|0))continue;break}i=0;break b}J[e>>2]=L[p>>1];i=1}if(i)h=1;else{b=J[m+64>>2];h:{if(b)break h;a=m- -64|0;while(1){if(!J[m>>2]){b=169776;break h}b=Jo(a);if(!b)b=169776;f=J[a>>2];J[a>>2]=f?f:b;if(!f)break h;Io(b);b=J[a>>2];if(!b)continue;break}}f=c;h=0;m=xb-32|0;xb=m;i:{if(!J[b+48>>2]|J[b+152>>2]!=-1)break i;if((d|0)<0)d=ac(f);if(!d)break i;g=J[b+228>>2];j:{if(g)break j;while(1){g=vc(12,1);k:{if(!g){h=0;a=J[b+228>>2];J[b+228>>2]=a;if(a)break k;break i}i=0;J[g+8>>2]=0;J[g>>2]=0;J[g+ -4>>2]=0;J[m+24>>2]=0;J[m+28>>2]=-1;h=J[b+220>>2];l:{if(!h)break l;while(1){m:{n:{a=J[b+56>>2];o:{p:{if((a|0)!=169776){h=yH(a,i,h,m+24|0);break p}h=0;q:switch(J[b+176>>2]){case 2:h=i>>>0<=86?L[(i<<1)+117088>>1]:0;break p;case 0:h=i>>>0<229?i:0;break o;case 1:break q;default:break o}h=i>>>0<=165?L[(i<<1)+116752>>1]:0}if(h>>>0>390)break n}c=h<<2;a=J[c+127776>>2];j=a+124332|0;k=J[c+127780>>2]+(a^-1)|0;break m}mg(m+12|0,J[b+68>>2],h-391|0);j=J[m+12>>2];k=J[m+16>>2];if(j)break m;j=129416;k=0}a=J[g>>2]; -n=J[g+4>>2];r:{s:{if((a|0)>(n|0))break s;t:{if((a|0)>=0){c=a;n=n+1|0;if(n>>>0<=a>>>0)break s;while(1){c=((c>>>1|0)+c|0)+8|0;if(n>>>0>c>>>0)continue;break}if(c>>>0<=268435455){a=ic(J[g+8>>2],c<<4);if(a)break t;a=J[g>>2];if(c>>>0<=a>>>0)break s}J[g>>2]=a^-1}a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;break r}J[g>>2]=c;J[g+8>>2]=a}a=J[g+4>>2];J[g+4>>2]=a+1;a=J[g+8>>2]+(a<<4)|0;I[a+12>>1]=h;J[a+8>>2]=0;J[a+4>>2]=k;J[a>>2]=j}h=J[b+220>>2];i=i+1|0;if(h>>>0>i>>>0)continue; -break}a=J[g+4>>2];if(!a)break l;xH(J[g+8>>2],a,16,744)}a=J[b+228>>2];J[b+228>>2]=a?a:g;if(!a)break j;if(J[g>>2]){J[g+4>>2]=0;Kb(J[g+8>>2])}Kb(g)}g=J[b+228>>2];if(!g)continue;break}}h=0;a=J[g+4>>2];if((a|0)<=0)break i;i=J[g+8>>2];a=a-1|0;g=0;u:{while(1){c=a+g>>>1|0;j=i+(c<<4)|0;h=J[j+4>>2];j=Zb(f,J[j>>2],d>>>0>>0?d:h);h=j?j:d-h|0;v:{if((h|0)<0){a=c-1|0;break v}if(!h)break u;g=c+1|0}if((a|0)>=(g|0))continue;break}h=0;break i}f=i+(c<<4)|0;d=L[f+12>>1];w:{a=J[b+56>>2];x:{y:{if((a|0)!=169776){d=$l(a, -d,J[b+220>>2]);break y}z:switch(J[b+176>>2]){case 1:a=0;b=164;d=d&65535;A:{B:{while(1){c=a+b>>>1|0;h=L[(c<<2)+117264>>1];C:{if(h>>>0>d>>>0){b=c-1|0;break C}if((d|0)==(h|0))break B;a=c+1|0}if((a|0)<=(b|0))continue;break}d=0;break A}d=K[(c<<2)+117266|0]}break y;case 2:a=0;b=85;d=d&65535;D:{E:{while(1){c=a+b>>>1|0;h=L[(c<<2)+117936>>1];F:{if(h>>>0>d>>>0){b=c-1|0;break F}if((d|0)==(h|0))break E;a=c+1|0}if((a|0)<=(b|0))continue;break}d=0;break D}d=K[(c<<2)+117938|0]}break y;case 0:break z;default:break x}h= -0;if(d>>>0>=229)break i}if(d)break w;d=L[f+12>>1]}a=d&65535;d=0;if(!a)break w;h=0;break i}J[e>>2]=d;h=1}xb=m+32|0}return h|0}function kma(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;H[c+140|0]=K[c+140|0]|8;a=0;j=c;l=J[c+80>>2];k=21;h=1;m=J[c+68>>2];b=!m;while(1){a:{b:{if(!b){a=K[k+143952|0]==7?f:a;c=k<<1;g=I[c+143584>>1]+142624|0;b=H[k+143680|0];k=K[c+142528|0];e=K[(P(f,20)+l|0)+18|0];if(k>>>0<=e>>>0)b=e>>>0>K[c+142529|0]?b:e-k|0;b=H[b+g|0];break b}if((k|0)==21)break a; -f=m;b=I[(k<<1)+143856>>1]-1|0}k=H[b+143728|0];c=b&31;if((b&63)>>>0>=32)c=63990>>>c|0;else c=((1<>>c;c:{if(c&1)break c;d:switch(H[b+143792|0]-1|0){case 1:d=f+1|0;break c;case 7:d=f+1|0;e:{if(d>>>0<=a>>>0)break e;g=l+3|0;e=h<<4|2;c=a;i=f-c|0;o=i+1&7;if(o){b=0;while(1){H[(g+P(c,20)|0)+12|0]=e;c=c+1|0;b=b+1|0;if((o|0)!=(b|0))continue;break}}if(i>>>0<=6)break e;while(1){b=g+P(c,20)|0;H[b+32|0]=e;H[b+12|0]=e;H[b+52|0]=e;H[b+72|0]=e;H[b+92|0]=e;H[b+112|0]=e;H[b+132|0]=e;H[b+ -152|0]=e;b=c+7|0;c=c+8|0;if((b|0)!=(f|0))continue;break}}b=h+1|0;h=(b|0)==16?1:b;break c;case 9:e=f-1|0;f:{if(a>>>0>=f>>>0)break f;g=l+3|0;d=h<<4;b=a;i=f-b&7;if(i){c=0;while(1){H[(g+P(b,20)|0)+12|0]=d;b=b+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+f>>>0<=6)break f;while(1){c=g+P(b,20)|0;H[c+32|0]=d;H[c+12|0]=d;H[c+52|0]=d;H[c+72|0]=d;H[c+92|0]=d;H[c+112|0]=d;H[c+132|0]=d;H[c+152|0]=d;b=b+8|0;if((f|0)!=(b|0))continue;break}}b=h+1|0;h=(b|0)==16?1:b;d=f;f=e;break c;case 10:e=f-1|0;g:{if(a>>> -0>=f>>>0)break g;g=l+3|0;d=h<<4|1;b=a;i=f-b&7;if(i){c=0;while(1){H[(g+P(b,20)|0)+12|0]=d;b=b+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+f>>>0<=6)break g;while(1){c=g+P(b,20)|0;H[c+32|0]=d;H[c+12|0]=d;H[c+52|0]=d;H[c+72|0]=d;H[c+92|0]=d;H[c+112|0]=d;H[c+132|0]=d;H[c+152|0]=d;b=b+8|0;if((f|0)!=(b|0))continue;break}}J[j+144>>2]=J[j+144>>2]|64;b=h+1|0;h=(b|0)==16?1:b;d=f;f=e;break c;case 11:e=f-1|0;h:{if(a>>>0>=f>>>0)break h;g=l+3|0;d=h<<4|2;b=a;i=f-b&7;if(i){c=0;while(1){H[(g+P(b,20)|0)+12| -0]=d;b=b+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+f>>>0<=6)break h;while(1){c=g+P(b,20)|0;H[c+32|0]=d;H[c+12|0]=d;H[c+52|0]=d;H[c+72|0]=d;H[c+92|0]=d;H[c+112|0]=d;H[c+132|0]=d;H[c+152|0]=d;b=b+8|0;if((f|0)!=(b|0))continue;break}}b=h+1|0;h=(b|0)==16?1:b;d=f;f=e;break c;case 0:f=d-1|0;i:{if(a>>>0>=d>>>0)break i;g=l+3|0;e=h<<4;b=a;i=d-b&7;if(i){c=0;while(1){H[(g+P(b,20)|0)+12|0]=e;b=b+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+d>>>0<=6)break i;while(1){c=g+P(b,20)|0;H[c+32|0]= -e;H[c+12|0]=e;H[c+52|0]=e;H[c+72|0]=e;H[c+92|0]=e;H[c+112|0]=e;H[c+132|0]=e;H[c+152|0]=e;b=b+8|0;if((d|0)!=(b|0))continue;break}}b=h+1|0;h=(b|0)==16?1:b;break c;case 2:f=d-1|0;j:{if(a>>>0>=d>>>0)break j;g=l+3|0;e=h<<4|1;b=a;i=d-b&7;if(i){c=0;while(1){H[(g+P(b,20)|0)+12|0]=e;b=b+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+d>>>0<=6)break j;while(1){c=g+P(b,20)|0;H[c+32|0]=e;H[c+12|0]=e;H[c+52|0]=e;H[c+72|0]=e;H[c+92|0]=e;H[c+112|0]=e;H[c+132|0]=e;H[c+152|0]=e;b=b+8|0;if((d|0)!=(b|0))continue; -break}}J[j+144>>2]=J[j+144>>2]|64;b=h+1|0;h=(b|0)==16?1:b;break c;case 4:k:switch(n-2|0){case 0:f=d-1|0;l:{if(a>>>0>=d>>>0)break l;n=l+3|0;e=h<<4|1;b=a;g=d-b&7;if(g){c=0;while(1){H[(n+P(b,20)|0)+12|0]=e;b=b+1|0;c=c+1|0;if((g|0)!=(c|0))continue;break}}if((a^-1)+d>>>0<=6)break l;while(1){c=n+P(b,20)|0;H[c+32|0]=e;H[c+12|0]=e;H[c+52|0]=e;H[c+72|0]=e;H[c+92|0]=e;H[c+112|0]=e;H[c+132|0]=e;H[c+152|0]=e;b=b+8|0;if((d|0)!=(b|0))continue;break}}J[j+144>>2]=J[j+144>>2]|64;b=h+1|0;h=(b|0)==16?1:b;n=2;break c; -case 1:break k;default:break c}n=3;f=d-1|0;m:{if(a>>>0>=d>>>0)break m;g=l+3|0;e=h<<4|2;b=a;i=d-b&7;if(i){c=0;while(1){H[(g+P(b,20)|0)+12|0]=e;b=b+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+d>>>0<=6)break m;while(1){c=g+P(b,20)|0;H[c+32|0]=e;H[c+12|0]=e;H[c+52|0]=e;H[c+72|0]=e;H[c+92|0]=e;H[c+112|0]=e;H[c+132|0]=e;H[c+152|0]=e;b=b+8|0;if((d|0)!=(b|0))continue;break}}b=h+1|0;h=(b|0)==16?1:b;break c;case 3:d=f+1|0;n=2;break c;case 8:break d;default:break c}d=f+1|0;n=3}a=K[k+144E3|0]!=6?a: -0;f=f+1|0;if((m|0)==(f|0))b=1;else b=0;continue}break}b=J[j+68>>2];n:{if(!b)break n;c=b-1|0;f=J[j+80>>2];d=f+3|0;a=0;f=K[f+15|0];while(1){o:{if((a|0)==(c|0)){a=b;break o}a=a+1|0;if((f|0)==K[(d+P(a,20)|0)+12|0])continue}break}if(!b)break n;c=0;while(1){f=c;c=a;Ac(j,3,f,c,1,0);f=J[j+68>>2];d=c+1|0;f=d>>>0>>0?f:d;d=f-1|0;m=J[j+80>>2];e=m+3|0;m=K[(m+P(c,20)|0)+15|0];while(1){p:{if((a|0)==(d|0)){a=f;break p}a=a+1|0;if((m|0)==K[(e+P(a,20)|0)+12|0])continue}break}if(b>>>0>c>>>0)continue;break}}return 0} -function nu(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;m=xb-80|0;xb=m;e=bm(b,c);a:{if(e)break a;a=J[b+2740>>2];if(!(a&1)){e=kI(b,0);if(e)break a;AH(b,d,0);a=J[b+2740>>2]}if(!(a&2)){e=kI(b,1);if(e)break a;AH(b,d,1)}s=b+2748|0;p=b+2744|0;a=1;while(1){b:{e=J[b+2740>>2];o=a;c:{d:{if(a){if(e&1)break c;if(J[d+24>>2]|e&8)break d;AG(m+20|0,b,m+16|0,m+12|0);e=J[b+24>>2];if((e|0)<=0)break c;a=J[b+28>>2];e=a+P(e,40)|0;j=J[m+12>>2]; -f=J[m+16>>2];while(1){x=a,y=Rb(I[a+12>>1],f)+j|0,J[x+16>>2]=y;a=a+40|0;if(e>>>0>a>>>0)continue;break}break c}if(e&2)break b}t=P(l,1348)+b|0;v=t- -64|0;j=J[v>>2];q=J[t+56>>2];k=j+P(q,44)|0;i=0;a=j;w=(q|0)<=0;if(!w){while(1){e=K[a+12|0];e:{if(e&4)break e;f=J[a+24>>2];g=J[a+20>>2];f:{g:{if(!g){if(!f)break e;e=J[f+20>>2];if(!e)break e;g=J[e+8>>2];J[f+8>>2]=g;H[f+12|0]=K[f+12|0]|4;e=f;f=a;break g}g=J[g+8>>2];H[a+12|0]=e|4;J[a+8>>2]=g;if(!f)break f;e=a;if(J[f+20>>2])break f}e=vo(J[p>>2],J[s>>2],l,J[f+4>> -2]-J[e+4>>2]|0);H[f+12|0]=K[f+12|0]|4;J[f+8>>2]=e+g}i=i?i:a}g=0;a=a+44|0;if(k>>>0>a>>>0)continue;break}a=j;f=i;n=0;e=0;i=0;while(1){u=K[a+12|0];h:{if(u&4)break h;h=J[a+24>>2];if(!h){i=i+1|0;break h}i:{if(!(e&255))break i;r=n- -64|0;if((r|0)<=J[a+8>>2]&(r|0)<=J[h+8>>2])break i;i=i+1|0;break h}if(J[h+20>>2]){r=vo(J[p>>2],J[s>>2],l,J[a+4>>2]-J[h+4>>2]|0);h=J[h+8>>2];H[a+12|0]=u|4;J[a+8>>2]=h+r;break h}if(a>>>0>h>>>0){e=vo(J[p>>2],J[s>>2],l,J[a+4>>2]-J[h+4>>2]|0);h=J[h+8>>2];H[a+12|0]=u|4;n=e+h|0;J[a+ -8>>2]=n;e=1;break h}j:{if(!((f|0)!=0|l)){g=JF(b,a,h,0,0);break j}JF(b,a,h,g,l)}H[a+12|0]=K[a+12|0]|4;H[h+12|0]=K[h+12|0]|4;n=J[h+8>>2];e=1;f=a}a=a+44|0;if(k>>>0>a>>>0)continue;break}}k:{if(!o)break k;e=4;f=2;a=j;l:switch(q-6|0){case 6:a=j+44|0;e=9;f=5;break;case 0:break l;default:break k}if(J[a+24>>2]!=(a+44|0))break k;g=j+P(f,44)|0;if(J[g+24>>2]!=(g+44|0))break k;f=j+P(e,44)|0;e=J[f+24>>2];if((e|0)!=(f+44|0))break k;n=(J[g+4>>2]<<1)-(J[a+4>>2]+J[f+4>>2]|0)|0;h=n>>31;if((h^n)-h>>>0>7)break k;h=J[f+ -8>>2];a=(J[g+8>>2]<<1)-J[a+8>>2]|0;J[f+8>>2]=a;a=h-a|0;if(e)J[e+8>>2]=J[e+8>>2]-a;if((q|0)==12){J[j+360>>2]=J[j+360>>2]-a;J[j+492>>2]=J[j+492>>2]-a}H[f+12|0]=K[f+12|0]|4;if(!e)break k;H[e+12|0]=K[e+12|0]|4}m:{if(w)break m;a=j;if(!i)break m;while(1){f=K[a+12|0];n:{if(f&4)break n;e=J[a+28>>2];if(!e)break n;g=J[e+8>>2];e=J[e+4>>2];H[a+12|0]=f|4;J[a+8>>2]=J[a+4>>2]+(g-e|0);i=i-1|0}a=a+44|0;if(k>>>0>a>>>0)continue;break}e=j;if(!i)break m;while(1){a=e;o:{if(K[a+12|0]&4)break o;while(1){f=a;a=a-44|0;h=j>>> -0>a>>>0;if(!(h|K[f-32|0]&4))continue;break}i=e;p:{q:{r:{while(1){g=i;i=g+44|0;if(k>>>0<=i>>>0)break r;if(!(K[g+56|0]&4))continue;break}if(a>>>0>=j>>>0)break q;h=J[e+4>>2]+(J[g+52>>2]-J[g+48>>2]|0)|0;break p}if(h)break o;a=f-44|0;h=J[e+4>>2]+(J[a+8>>2]-J[a+4>>2]|0)|0;break p}i=L[i>>1];a=L[a>>1];h=J[f-36>>2];if((i|0)==(a|0))break p;a=a<<16>>16;f=J[f-36>>2];h=hc(I[e>>1]-a|0,J[g+52>>2]-f|0,(i<<16>>16)-a|0)+f|0}J[e+8>>2]=h}e=e+44|0;if(k>>>0>e>>>0)continue;break}}a=J[t+56>>2];s:{if((a|0)<=0)break s;g=J[v>> -2];j=g+P(a,44)|0;if(J[p>>2]&(o?1:2)){if(o)while(1){f=J[g+8>>2];h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+16>>2]=f;I[a>>1]=L[a>>1]|4;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break s}while(1){f=J[g+8>>2];h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+20>>2]=f;I[a>>1]=L[a>>1]|8;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>> -0>g>>>0)continue;break}break s}if(o)while(1){f=J[g+8>>2]-J[g+4>>2]|0;h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+16>>2]=f+J[a+16>>2];I[a>>1]=L[a>>1]|4;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break s}while(1){f=J[g+8>>2]-J[g+4>>2]|0;h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+20>>2]=f+J[a+20>>2];I[a>>1]=L[a>>1]|8;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h| -0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break}}ys(b,l);ls(b,l)}l=1;a=0;if(o)continue}break}d=J[b+24>>2];if((d|0)<=0){e=0;break a}a=J[b+28>>2];b=a+P(d,40)|0;i=J[c+4>>2];f=J[c+8>>2];while(1){J[i>>2]=J[a+16>>2];J[i+4>>2]=J[a+20>>2];e=0;c=L[a>>1];H[f|0]=c&1?0:c&2?2:1;f=f+1|0;i=i+8|0;a=a+40|0;if(b>>>0>a>>>0)continue;break}}xb=m+80|0;return e|0}function WJ(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;f=xb-48|0;xb=f;e=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<< -24);a:{if(!e)break a;c=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(J[J[b+76>>2]+4>>2]){e=a;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);e=(e+P(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24),12)|0)+16|0;m=c>>>0<=1?1:c;while(1){d=J[b+76>>2];a=J[d+4>>2];b:{if(!a)break b;c=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);g=J[d+8>>2];while(1){if(!(c&J[g>>2])){g=g+12|0;a=a-1|0;if(a)continue;break b}break}J[b+80>>2]=c;a=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7| -0]<<24);if(!(a&32))if(((a&128)>>>7|0)==((J[J[b+16>>2]+40>>2]&-2)!=6|0))break b;c:{if(a&16){g=J[b+16>>2];a=(a&64)>>>6|0;break c}g=J[b+16>>2];a=(a&64)>>>6^(J[g+40>>2]&-3)==5}c=J[b+8>>2];J[f+16>>2]=J[b+84>>2];if(!nc(g,c,106341,f+16|0))break b;d:{e:{f:{if(a){h=J[b+16>>2];i=J[h+68>>2];if(i>>>0>=2){k=J[h+80>>2];g=i-1|0;a=0;while(1){c=k+P(g,20)|0;J[f+40>>2]=J[c+16>>2];d=J[c+12>>2];J[f+32>>2]=J[c+8>>2];J[f+36>>2]=d;d=J[c+4>>2];J[f+24>>2]=J[c>>2];J[f+28>>2]=d;d=k+P(a,20)|0;J[c+16>>2]=J[d+16>>2];j=J[d+12>> -2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=j;j=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=j;J[d+16>>2]=J[f+40>>2];c=J[f+36>>2];J[d+8>>2]=J[f+32>>2];J[d+12>>2]=c;c=J[f+28>>2];J[d>>2]=J[f+24>>2];J[d+4>>2]=c;a=a+1|0;g=g-1|0;if(a>>>0>>0)continue;break}}g:{if(!K[h+63|0])break g;a=J[h+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2)break g;h=J[h+88>>2];g=a-1|0;a=0;while(1){c=h+P(g,20)|0;J[f+40>>2]=J[c+16>>2];d=J[c+12>>2];J[f+32>>2]=J[c+8>>2];J[f+36>>2]=d;d=J[c+4>>2];J[f+24>>2]=J[c>>2];J[f+28>>2]=d;d=h+P(a,20)|0;J[c+16>>2]=J[d+ -16>>2];i=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=i;i=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=i;J[d+16>>2]=J[f+40>>2];c=J[f+36>>2];J[d+8>>2]=J[f+32>>2];J[d+12>>2]=c;c=J[f+28>>2];J[d>>2]=J[f+24>>2];J[d+4>>2]=c;a=a+1|0;g=g-1|0;if(a>>>0>>0)continue;break}}a=J[b+56>>2];c=J[a+12>>2];J[b+24>>2]=c;a=J[a+16>>2];J[b+32>>2]=a;d=a+c|0;J[b+28>>2]=d;a=0;h:{if(c>>>0>e>>>0){g=0;c=0;break h}g=0;c=0;if(d>>>0<=e>>>0)break h;c=d-e|0;a=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280| -a>>>24);g=a>>>0>c>>>0?c:a;a=e+g|0;c=e}J[b+32>>2]=g;J[b+24>>2]=c;J[b+28>>2]=a;J[195395]=0;ca(599,e|0,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1){g=Z()|0;a=J[b+56>>2];e=J[a+12>>2];J[b+24>>2]=e;a=J[a+16>>2];e=e+a|0;break f}a=J[b+56>>2];c=J[a+12>>2];J[b+24>>2]=c;a=J[a+16>>2];J[b+32>>2]=a;J[b+28>>2]=a+c;h=J[b+16>>2];i=J[h+68>>2];if(i>>>0>=2){k=J[h+80>>2];g=i-1|0;a=0;while(1){c=k+P(g,20)|0;J[f+40>>2]=J[c+16>>2];d=J[c+12>>2];J[f+32>>2]=J[c+8>>2];J[f+36>>2]=d;d=J[c+4>>2];J[f+24>>2]=J[c>>2];J[f+28>>2]=d;d= -k+P(a,20)|0;J[c+16>>2]=J[d+16>>2];j=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=j;j=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=j;J[d+16>>2]=J[f+40>>2];c=J[f+36>>2];J[d+8>>2]=J[f+32>>2];J[d+12>>2]=c;c=J[f+28>>2];J[d>>2]=J[f+24>>2];J[d+4>>2]=c;a=a+1|0;g=g-1|0;if(a>>>0>>0)continue;break}}if(!K[h+63|0])break d;a=J[h+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2)break d;h=J[h+88>>2];g=a-1|0;a=0;while(1){c=h+P(g,20)|0;J[f+40>>2]=J[c+16>>2];d=J[c+12>>2];J[f+32>>2]=J[c+8>>2];J[f+36>>2]=d;d=J[c+4>>2];J[f+24>>2]=J[c>>2];J[f+ -28>>2]=d;d=h+P(a,20)|0;J[c+16>>2]=J[d+16>>2];i=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=i;i=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=i;J[d+16>>2]=J[f+40>>2];c=J[f+36>>2];J[d+8>>2]=J[f+32>>2];J[d+12>>2]=c;c=J[f+28>>2];J[d>>2]=J[f+24>>2];J[d+4>>2]=c;a=a+1|0;g=g-1|0;if(a>>>0>>0)continue;break}break d}a=J[b+56>>2];c=J[a+12>>2];J[b+24>>2]=c;a=J[a+16>>2];J[b+32>>2]=a;d=a+c|0;J[b+28>>2]=d;a=0;i:{if(c>>>0>e>>>0){g=0;c=0;break i}g=0;c=0;if(d>>>0<=e>>>0)break i;c=d-e|0;a=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+ -3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);g=a>>>0>c>>>0?c:a;a=e+g|0;c=e}J[b+32>>2]=g;J[b+24>>2]=c;J[b+28>>2]=a;J[195395]=0;ca(599,e|0,b|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break e;g=Z()|0;a=J[b+56>>2];e=J[a+12>>2];J[b+24>>2]=e;a=J[a+16>>2];e=e+a|0}J[b+32>>2]=a;J[b+28>>2]=e;ba(g|0);B()}a=J[b+56>>2];c=J[a+12>>2];J[b+24>>2]=c;a=J[a+16>>2];J[b+32>>2]=a;J[b+28>>2]=a+c}a=J[b+8>>2];c=J[b+16>>2];J[f>>2]=J[b+84>>2];nc(c,a,106375,f);if(!K[J[b+16>>2]+60|0])break a}a=K[e|0]|K[e+1|0]<<8|(K[e+2| -0]<<16|K[e+3|0]<<24);J[b+84>>2]=J[b+84>>2]+1;e=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))+e|0;l=l+1|0;if((l|0)!=(m|0))continue;break}break a}J[b+84>>2]=J[b+84>>2]+(c>>>0<=1?1:c)}xb=f+48|0}function tba(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;h=xb-192|0;xb=h;e=J[a+608>>2];d=J[a+604>>2];u=1;n=J[a+584>>2];o=J[n+72>>2];g=J[n+68>>2];k=J[n+64>>2];a:{b:{c:{d:{if((c|0)<=0){f=d;break d}s=d+e|0;p=J[n+88>>2];t=J[n+60>>2];l=J[n+12>>2];e:while(1){f:{g:{if(o)break g; -while(1){h:{i:{j:{if((g|0)>10){e=d;break j}if(d>>>0>=s>>>0){if(!g)break i;g=11;e=d;break j}f=g+8|0;e=d+1|0;k=K[K[d|0]+t|0]<2){g=f;break j}if(e>>>0>=s>>>0){g=11;break j}g=g+16|0;e=d+2|0;k=K[K[d+1|0]+t|0]<>>1|0;g=g-1|0;d=e;continue}}while(1){e=g;f=e;k:{if((e|0)>7)break k;if(d>>>0>=s>>>0){f=8;if(e)break k;break f}k=K[K[d|0]+t|0]<>>1|0;if(!f)continue;break}k=k>>>1|0; -g=e-1|0;e=0;f=p;l:{m:{while(1){q=0;n:{while(1){o:{if((g|0)>11){i=g;break o}if(d>>>0>=s>>>0){i=12;if(g)break o;break c}m=g+8|0;j=d+1|0;k=K[K[d|0]+t|0]<3){i=m;d=j;break o}i=12;if(j>>>0>=s>>>0){d=j;break o}i=g+16|0;k=K[K[d+1|0]+t|0]<>>g|0;g=i-g|0;o=1;i=f;p:{q:switch(K[j|0]-7|0){case 0:j=J[j+4>>2];v=j+q|0;J[f>>2]=v;i=f+4|0;q=0;e=e+j|0;if((l|0)>(e|0))break p;o=0;break l;case 5:break m;case 2:case 4:break q;default:break n}i=J[j+4>>2];q= -i+q|0;e=e+i|0;continue}break}while(1){r:{if((g|0)>12){j=g;break r}if(d>>>0>=s>>>0){j=13;if(g)break r;f=i;break c}r=g+8|0;m=d+1|0;k=K[K[d|0]+t|0]<4){j=r;d=m;break r}j=13;if(m>>>0>=s>>>0){d=m;break r}j=g+16|0;k=K[K[d+1|0]+t|0]<>>g|0;g=j-g|0;j=K[m|0];if(j-10>>>0<2){j=J[m+4>>2];q=j+q|0;e=e+j|0;continue}break}s:{t:switch(j-8|0){case 0:j=J[m+4>>2];m=j+q|0;J[f+4>>2]=m;i=f+8|0;e=e+j|0;if((l|0)>(e|0))break s;o=0;break l;case 4:break m;default:break t}f= -J[a+12>>2]&1024;j=J[(f?504:480)+a>>2];m=J[a+628>>2];r=J[a>>2];o=J[n+108>>2];J[h+80>>2]=e;J[h+76>>2]=j;J[h+72>>2]=f?280678:280699;J[h+68>>2]=o;J[h+64>>2]=r;Ob(m,287257,280595,h- -64|0);o=0;break m}f=m|v?i:f;continue}break}i=J[a+12>>2]&1024;j=J[(i?504:480)+a>>2];m=J[a+628>>2];r=J[a>>2];o=J[n+108>>2];J[h+48>>2]=e;J[h+44>>2]=j;J[h+40>>2]=i?280678:280699;J[h+36>>2]=o;J[h+32>>2]=r;Ob(m,287257,280595,h+32|0);o=0;i=f}if(!q)break l;J[i>>2]=q;i=i+4|0}u:{if((e|0)==(l|0))break u;f=J[a+12>>2]&1024;j=J[(f?504: -480)+a>>2];m=J[a+628>>2];r=J[a>>2];q=J[n+108>>2];J[h+24>>2]=l;J[h+20>>2]=e;J[h+16>>2]=j;J[h+12>>2]=f?280678:280699;J[h+8>>2]=q;J[h+4>>2]=e>>>0>>0?281186:281260;J[h>>2]=r;yc(m,287257,280892,h);f=(e|0)>(l|0);v:{if((e|0)<=(l|0)|i>>>0<=p>>>0)break v;while(1){i=i-4|0;e=e-J[i>>2]|0;f=(l|0)<(e|0);if((e|0)<=(l|0))break v;if(i>>>0>p>>>0)continue;break}}if((e|0)<(l|0)){if(i-p&4){J[i>>2]=0;i=i+4|0}J[i>>2]=l-((e|0)>0?e:0);i=i+4|0;break u}if(!f)break u;J[i+4>>2]=0;J[i>>2]=l;i=i+8|0}Ab[J[n+76>>2]](b,p,i,l); -J[n+108>>2]=J[n+108>>2]+1;f=J[n+8>>2];b=f+b|0;c=c-f|0;if((c|0)>0)continue e;e=J[a+608>>2];f=J[a+604>>2];break d}else{k=k>>>8|0;g=e-8|0;continue}}}break}if(!l){f=p;break b}c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];g=J[n+108>>2];J[h+184>>2]=l;J[h+180>>2]=0;J[h+176>>2]=f;J[h+172>>2]=c?280678:280699;J[h+168>>2]=g;J[h+164>>2]=281186;J[h+160>>2]=i;yc(e,287257,280892,h+160|0);J[p>>2]=l;if((l|0)>0){f=p+4|0;break b}J[p+4>>2]=0;f=p+8|0;break b}J[n+72>>2]=o;J[n+64>>2]=k;J[n+68>>2]=g;b= -(f-d|0)+e|0;break a}c=J[a+12>>2]&1024;i=J[(c?504:480)+a>>2];g=J[a+628>>2];j=J[a>>2];m=J[n+108>>2];J[h+144>>2]=e;J[h+140>>2]=i;J[h+136>>2]=c?280678:280699;J[h+132>>2]=m;J[h+128>>2]=j;yc(g,287257,280816,h+128|0);if(q){J[f>>2]=q;f=f+4|0}o=0;if((e|0)==(l|0))break b;c=J[a+12>>2]&1024;i=J[(c?504:480)+a>>2];g=J[a+628>>2];j=J[a>>2];m=J[n+108>>2];J[h+120>>2]=l;J[h+116>>2]=e;J[h+112>>2]=i;J[h+108>>2]=c?280678:280699;J[h+104>>2]=m;J[h+100>>2]=e>>>0>>0?281186:281260;J[h+96>>2]=j;yc(g,287257,280892,h+96|0); -g=(e|0)>(l|0);w:{if((e|0)<=(l|0)|f>>>0<=p>>>0)break w;while(1){f=f-4|0;e=e-J[f>>2]|0;g=(l|0)<(e|0);if((e|0)<=(l|0))break w;if(f>>>0>p>>>0)continue;break}}if((e|0)<(l|0)){if(f-p&4){J[f>>2]=0;f=f+4|0}J[f>>2]=l-((e|0)>0?e:0);f=f+4|0;break b}if(!g)break b;J[f+4>>2]=0;J[f>>2]=l;f=f+8|0}Ab[J[n+76>>2]](b,p,f,l);J[n+72>>2]=o;J[n+64>>2]=k;J[n+68>>2]=0;u=-1;b=J[a+608>>2]+(J[a+604>>2]-d|0)|0}J[a+604>>2]=d;J[a+608>>2]=b;xb=h+192|0;return u|0}function sea(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;a=Nb(a,0,256);d=J[b>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+12>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+8>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a>>2]=(g+e<<2)-3072;J[a+16>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+20>>2]=e+d;J[a+4>>2]=d+(h+f<<2);d=J[b+4>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+44>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+40>>2]= -P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+32>>2]=(g+e<<2)-3072;J[a+48>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+52>>2]=e+d;J[a+36>>2]=d+(h+f<<2);d=J[b+8>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+76>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+72>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+64>>2]=(g+e<<2)-3072;J[a+80>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+84>>2]=e+d;J[a+68>>2]=d+(h+f<< -2);d=J[b+12>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+108>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+104>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+96>>2]=(g+e<<2)-3072;J[a+112>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+116>>2]=e+d;J[a+100>>2]=d+(h+f<<2);d=J[b+16>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+140>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+136>>2]=P(g- -e|0,10033)+1024>>11;e=g+e|0;i=i+k|0;g=(e+i<<2)-3072|0;J[a+128>>2]=g;J[a+144>>2]=P(e-(i<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+148>>2]=e+d;J[a+132>>2]=d+(h+f<<2);b=J[b+20>>2]+c|0;f=K[b|0];h=K[b+5|0];c=f-h|0;e=K[b+1|0];i=K[b+4|0];d=e-i|0;k=K[b+2|0];j=K[b+3|0];b=k-j|0;J[a+172>>2]=c-(d+b|0)<<2;f=h+f|0;h=j+k|0;J[a+168>>2]=P(f-h|0,10033)+1024>>11;f=h+f|0;h=e+i|0;J[a+176>>2]=P(f-(h<<1)|0,5793)+1024>>11;e=P(b+c|0,2998)+1024>>11;J[a+180>>2]=e+(b-d<<2);f=(h+f<<2)-3072|0;h=J[a>>2];b=f+h| -0;i=J[a+96>>2];k=J[a+64>>2];j=i+k|0;J[a+64>>2]=P(b-j|0,17837)+16384>>15;b=b+j|0;j=J[a+32>>2];l=j+g|0;J[a+128>>2]=P(b-(l<<1)|0,10298)+16384>>15;J[a>>2]=P(b+l|0,14564)+16384>>15;b=k-i|0;f=h-f|0;h=P(b+f|0,5331)+16384|0;g=j-g|0;J[a+160>>2]=h+P(b-g|0,14564)>>15;J[a+96>>2]=P(f-(b+g|0)|0,14564)+16384>>15;J[a+32>>2]=h+P(f+g|0,14564)>>15;b=J[a+132>>2];f=J[a+36>>2];d=e+(c+d<<2)|0;h=J[a+4>>2];c=d+h|0;g=J[a+100>>2];e=J[a+68>>2];i=g+e|0;J[a+68>>2]=P(c-i|0,17837)+16384>>15;c=c+i|0;i=b+f|0;J[a+132>>2]=P(c-(i<<1)| -0,10298)+16384>>15;J[a+4>>2]=P(c+i|0,14564)+16384>>15;c=e-g|0;d=h-d|0;h=P(c+d|0,5331)+16384|0;b=f-b|0;J[a+164>>2]=h+P(c-b|0,14564)>>15;J[a+100>>2]=P(d-(b+c|0)|0,14564)+16384>>15;J[a+36>>2]=h+P(b+d|0,14564)>>15;b=J[a+136>>2];c=J[a+40>>2];f=J[a+168>>2];h=J[a+8>>2];d=f+h|0;g=J[a+104>>2];e=J[a+72>>2];i=g+e|0;J[a+72>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+136>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+8>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+168>>2]=h+P(d- -b|0,14564)>>15;J[a+104>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+40>>2]=h+P(b+f|0,14564)>>15;b=J[a+140>>2];c=J[a+44>>2];f=J[a+172>>2];h=J[a+12>>2];d=f+h|0;g=J[a+108>>2];e=J[a+76>>2];i=g+e|0;J[a+76>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+140>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+12>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+172>>2]=h+P(d-b|0,14564)>>15;J[a+108>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+44>>2]=h+P(b+f|0,14564)>>15;b=J[a+144>>2];c=J[a+48>>2];f= -J[a+176>>2];h=J[a+16>>2];d=f+h|0;g=J[a+112>>2];e=J[a+80>>2];i=g+e|0;J[a+80>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+144>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+16>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+176>>2]=h+P(d-b|0,14564)>>15;J[a+112>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+48>>2]=h+P(b+f|0,14564)>>15;b=J[a+148>>2];c=J[a+52>>2];f=J[a+180>>2];h=J[a+20>>2];d=f+h|0;g=J[a+116>>2];e=J[a+84>>2];i=g+e|0;J[a+84>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c| -0;J[a+148>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+20>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+180>>2]=h+P(d-b|0,14564)>>15;J[a+116>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+52>>2]=h+P(b+f|0,14564)>>15}function lL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=(e|0)>0?e:0;a:{b:{c:{d:{e:{f:{g:switch(b|0){case 0:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+437|0];break b;case 1:if(c>>>0>3)break e;b=4;if(!d|f>>>0<4)break c;e=0;h:{i:{j:switch(c|0){case 0:a=a+440| -0;break i;case 1:a=a+444|0;break i;case 2:a=a+448|0;break i;case 3:break j;default:break h}a=a+452|0}e=J[a>>2]}J[d>>2]=e;break c;case 2:if(c>>>0>3)break e;b=4;if(!d|f>>>0<4)break c;e=0;k:{l:{m:switch(c|0){case 0:a=a+464|0;break l;case 1:a=a+468|0;break l;case 2:a=a+472|0;break l;case 3:break m;default:break k}a=a+476|0}e=J[a>>2]}J[d>>2]=e;break c;case 3:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+436|0];break b;case 4:a=J[a+364>>2];if(!a)break e;b=ac(a)+1|0;if(!d|f>>>0>>0)break f;Mb(d,a,b);break f;case 5:b= -4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+168>>2];break c;case 6:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+420>>2];break c;case 7:if(M[a+420>>2]<=c>>>0)break e;a=J[J[a+424>>2]+(c<<2)>>2];c=ac(a);b=c+1|0;if(!d|f>>>0>>0)break f;g=Mb(d,a,b)+c|0,h=0,H[g|0]=h;break f;case 8:if(M[a+420>>2]<=c>>>0)break e;e=c<<2;c=J[e+J[a+432>>2]>>2];b=c+1|0;if(!d|f>>>0>>0)break f;g=Mb(d,J[e+J[a+428>>2]>>2],c)+c|0,h=0,H[g|0]=h;break f;case 9:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+368>>2];break c;case 10:if(J[a+368>>2]!=1|M[a+ -372>>2]<=c>>>0)break e;c=J[J[a+388>>2]+(c<<2)>>2];a=ac(c);b=a+1|0;if(!d|f>>>0>>0)break f;g=Mb(d,c,a)+a|0,h=0,H[g|0]=h;break f;case 11:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+404>>2];break c;case 12:b=J[a+416>>2];n:{if(b){b=Pe(c,b);if(!b)break e;c=J[b>>2];break n}if(M[a+404>>2]<=c>>>0)break e}e=J[a+408>>2];if(!e)break e;c=c<<2;a=J[c+J[a+412>>2]>>2];b=a+1|0;if(!d|f>>>0>>0)break f;g=Mb(d,J[c+e>>2],a)+a|0,h=0,H[g|0]=h;break f;case 13:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+288>>1];break a;case 14:b= -2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+290>>1];break a;case 15:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+176|0];break b;case 16:if(K[a+176|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+180>>1];break a;case 24:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+276>>2];break c;case 17:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+284>>2];break c;case 25:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+280>>2];break c;case 18:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+177|0];break b;case 19:if(K[a+177|0]<=c>>>0)break e;b= -2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+208>>1];break a;case 20:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+178|0];break b;case 21:if(K[a+178|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+228>>1];break a;case 22:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+179|0];break b;case 23:if(K[a+179|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+256>>1];break a;case 26:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+292|0];break b;case 27:if(K[a+292|0]<=c>>>0)break e;b=2;if(!d|f>>> -0<2)break c;I[d>>1]=L[((c<<1)+a|0)+296>>1];break a;case 28:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+293|0];break b;case 29:if(K[a+293|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+322>>1];break a;case 31:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+295|0];break b;case 30:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+294|0];break b;case 32:if(c>>>0>1)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+360>>1];break a;case 33:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+172>>2];break c;case 34:b=4; -if(!d|f>>>0<4)break c;J[d>>2]=J[a+356>>2];break c;case 35:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+352>>2];break c;case 41:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+156|0];break b;case 42:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+158>>1];break a;case 43:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+160>>1];break a;case 44:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+164>>1];break a;case 36:a=J[a+132>>2];if(!a)break e;b=ac(a)+1|0;if(!d|f>>>0>>0)break f;Mb(d,a,b);break f;case 37:a=J[a+136>>2];if(!a)break e;b=ac(a)+1|0;if(!d| -f>>>0>>0)break f;Mb(d,a,b);break f;case 38:a=J[a+140>>2];if(!a)break e;b=ac(a)+1|0;if(!d|f>>>0>>0)break f;Mb(d,a,b);break f;case 39:a=J[a+144>>2];if(!a)break e;b=ac(a)+1|0;if(!d|f>>>0>>0)break f;Mb(d,a,b);break f;case 45:break d;case 40:break g;default:break e}a=J[a+148>>2];if(!a)break e;b=ac(a)+1|0;if(!d|f>>>0>>0)break f;Mb(d,a,b)}if(b)break c}return-1}b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+152>>2]}return b|0}return 1}return 2}function pd(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;k=xb-96|0;xb=k;u=i&65535;o=(e^i)&-2147483648;q=e&65535;y=q;Q=i>>>16&32767;R=e>>>16&32767;a:{b:{if(Q-32767>>>0>4294934529&R-32767>>>0>=4294934530)break b;m=e&2147483647;p=m;j=d;if(!(!d&(m|0)==2147418112?!(b|c):m>>>0<2147418112)){n=d;o=e|32768;break a}m=i&2147483647;s=m;e=h;if(!(!e&(m|0)==2147418112?!(f|g):m>>>0<2147418112)){n=e;o=i|32768;b=f;c=g;break a}if(!(b|j|(p^2147418112|c))){if(!(e| -f|(g|s))){o=2147450880;b=0;c=0;break a}o=o|2147418112;b=0;c=0;break a}if(!(e|f|(s^2147418112|g))){e=b|j;d=c|p;b=0;c=0;if(!(d|e)){o=2147450880;break a}o=o|2147418112;break a}if(!(b|j|(c|p))){b=0;c=0;break a}if(!(e|f|(g|s))){b=0;c=0;break a}if((p|0)==65535|p>>>0<65535){j=!(d|q);i=j?b:d;m=j<<6;e=S(i)+32|0;i=S(j?c:q);i=m+((i|0)==32?e:i)|0;Ke(k+80|0,b,c,d,q,i-15|0);t=16-i|0;d=J[k+88>>2];y=J[k+92>>2];c=J[k+84>>2];b=J[k+80>>2]}if(s>>>0>65535)break b;i=!(h|u);e=i?f:h;q=i<<6;j=S(e)+32|0;e=S(i?g:u);e=q+((e| -0)==32?j:e)|0;Ke(k- -64|0,f,g,h,u,e-15|0);t=(t-e|0)+16|0;h=J[k+72>>2];u=J[k+76>>2];f=J[k+64>>2];g=J[k+68>>2]}e=f;f=g<<15|f>>>17;i=e<<15;e=0;v=i&-32768;K=c;s=Kpa(v,e,c,0);e=zb;z=e;L=f;w=b;b=Kpa(f,0,b,0);c=b+s|0;f=zb+e|0;i=b>>>0>c>>>0?f+1|0:f;j=0;b=Kpa(w,l,v,l);p=j+b|0;f=c;e=f+zb|0;e=b>>>0>p>>>0?e+1|0:e;q=e;M=(f|0)==(e|0)&j>>>0>p>>>0|e>>>0>>0;N=d;m=Kpa(v,l,d,0);O=zb;b=Kpa(K,l,L,l);x=b+m|0;j=zb+O|0;j=b>>>0>x>>>0?j+1|0:j;b=u<<15|h>>>17;B=h<<15|g>>>17;d=Kpa(B,0,w,l);C=d+x|0;f=zb+j|0;f=d>>>0>C>>>0?f+ -1|0:f;D=f;e=i;E=e+C|0;f=((e|0)==(z|0)&c>>>0>>0|e>>>0>>0)+f|0;f=e>>>0>E>>>0?f+1|0:f;u=f;g=E;c=f;F=y|65536;z=Kpa(v,l,F,r);P=zb;d=Kpa(N,n,L,l);G=d+z|0;e=zb+P|0;e=d>>>0>G>>>0?e+1|0:e;i=e;H=b|-2147483648;b=Kpa(H,0,w,l);v=b+G|0;f=zb+e|0;f=b>>>0>v>>>0?f+1|0:f;b=Kpa(B,n,K,l);r=b+v|0;I=f;f=f+zb|0;s=b>>>0>r>>>0?f+1|0:f;b=0;w=b+g|0;e=c+r|0;e=b>>>0>w>>>0?e+1|0:e;y=e;f=e;b=w+M|0;c=b>>>0>>0?f+1|0:f;t=((R+Q|0)+t|0)-16383|0;d=Kpa(H,A,K,l);h=zb;e=Kpa(F,n,L,l);g=e+d|0;f=zb+h|0;f=e>>>0>g>>>0?f+1|0:f;l=(h|0)== -(f|0)&d>>>0>g>>>0|f>>>0>>0;h=f;e=Kpa(B,n,N,n);d=e+g|0;f=zb+f|0;f=d>>>0>>0?f+1|0:f;e=f;g=(f|0)==(h|0)&d>>>0>>0|f>>>0>>0;f=0;h=g;g=g+l|0;f=h>>>0>g>>>0?1:f;h=g;g=Kpa(H,A,F,n);h=h+g|0;f=zb+f|0;M=h;g=g>>>0>h>>>0?f+1|0:f;h=d;l=e;e=(j|0)==(O|0)&m>>>0>x>>>0|j>>>0>>0;f=0;j=(j|0)==(D|0)&x>>>0>C>>>0|j>>>0>D>>>0;m=j;j=e+j|0;e=(m>>>0>j>>>0?1:f)+l|0;f=g;d=d+j|0;e=d>>>0>>0?e+1|0:e;m=e;x=d;d=(e|0)==(l|0)&d>>>0>>0|e>>>0>>0;e=d;d=d+M|0;f=e>>>0>d>>>0?f+1|0:f;j=d;h=f;e=Kpa(B,n,F,n);l=zb;g=Kpa(H, -A,N,n);d=g+e|0;f=zb+l|0;f=d>>>0>>0?f+1|0:f;g=f;f=(l|0)==(f|0)&d>>>0>>0|f>>>0>>0;A=g+j|0;e=f+h|0;e=g>>>0>A>>>0?e+1|0:e;l=A;h=e;j=d;e=0;d=e+x|0;f=j+m|0;f=d>>>0>>0?f+1|0:f;e=f;g=(m|0)==(f|0)&d>>>0>>0|f>>>0>>0;f=h;h=g;g=g+l|0;f=h>>>0>g>>>0?f+1|0:f;m=g;g=f;h=d;j=e;e=(s|0)==(I|0)&r>>>0>>0|s>>>0>>0;d=(i|0)==(P|0)&z>>>0>G>>>0|i>>>0

>>0;i=(i|0)==(I|0)&v>>>0>>0|i>>>0>I>>>0;d=d+i|0;d=d+e|0;r=s;i=r+h|0;e=d+j|0;f=g;d=i;e=d>>>0>>0?e+1|0:e;h=(e|0)==(j|0)&h>>>0>d>>>0|e>>>0>>0;g= -h+m|0;f=h>>>0>g>>>0?f+1|0:f;j=g;g=f;h=d;f=0;i=e;r=(u|0)==(y|0)&w>>>0>>0|u>>>0>y>>>0;m=r;r=r+((u|0)==(D|0)&C>>>0>E>>>0|u>>>0>>0)|0;e=e+(m>>>0>r>>>0?1:f)|0;f=g;d=d+r|0;e=d>>>0>>0?e+1|0:e;h=(e|0)==(i|0)&d>>>0>>0|e>>>0>>0;g=h;h=h+j|0;f=g>>>0>h>>>0?f+1|0:f;i=f;c:{if(f&65536){t=t+1|0;break c}j=q>>>31|0;g=0;f=i<<1|h>>>31;h=h<<1|e>>>31;i=f;f=e<<1|d>>>31;d=d<<1|c>>>31;e=f;f=q<<1|p>>>31;p=p<<1;q=f;f=c<<1|b>>>31;b=b<<1|j;c=f|g}if((t|0)>=32767){o=o|2147418112;b=0;c=0;break a}d:{if((t|0)<=0){g= -1-t|0;if(g>>>0<=127){f=t+127|0;Ke(k+48|0,p,q,b,c,f);Ke(k+32|0,d,e,h,i,f);Ii(k+16|0,p,q,b,c,g);Ii(k,d,e,h,i,g);p=J[k+32>>2]|J[k+16>>2]|(J[k+48>>2]|J[k+56>>2]|(J[k+52>>2]|J[k+60>>2]))!=0;q=J[k+36>>2]|J[k+20>>2];b=J[k+40>>2]|J[k+24>>2];c=J[k+44>>2]|J[k+28>>2];d=J[k>>2];e=J[k+4>>2];g=J[k+8>>2];f=J[k+12>>2];break d}b=0;c=0;break a}g=h;f=i&65535|t<<16}n=g|n;o=f|o;if(!(!b&(c|0)==-2147483648?!(p|q):(c|0)>0|(c|0)>=0)){b=d+1|0;j=b?e:e+1|0;e=o;c=j;d=!(j|b);n=d+n|0;o=d>>>0>n>>>0?e+1|0:e;break a}if(b|p|(c^-2147483648| -q)){b=d;c=e;break a}f=e;b=d&1;c=b;b=b+d|0;c=c>>>0>b>>>0?f+1|0:f;d=(f|0)==(c|0)&b>>>0>>0|c>>>0>>0;f=o;n=d+n|0;o=n>>>0>>0?f+1|0:f}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=n;J[a+12>>2]=o;xb=k+96|0}function Mca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=xb-16|0;xb=j;c=h<<2;p=c+P(e,3)|0;o=e<<2;d=(o+b|0)+c|0;h=(d+o|0)+c|0;o=(h+o|0)+c|0;q=(P(g,18)|0)/4|0;a:{if((e|f)&3){if(!f|!e)break a;while(1){g=e;b:{while(1){k=d;l=h;m=o;n=b;c=i;b=K[c+ -17|0];d=K[c+16|0];c:switch(g-1|0){default:d:switch(f-1|0){default:uc(J[a+68>>2],K[c+15|0],d,b,j+12|0,j+8|0,j+4|0);J[m+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:uc(J[a+68>>2],K[c+11|0],d,b,j+12|0,j+8|0,j+4|0);J[l+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:uc(J[a+68>>2],K[c+7|0],d,b,j+12|0,j+8|0,j+4|0);J[k+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break d}uc(J[a+68>>2],K[c+3|0],d,b,j+12|0,j+8|0,j+4|0);J[n+12>>2]=J[j+12>>2]|J[j+8>>2]<< -8|J[j+4>>2]<<16|-16777216;case 2:e:switch(f-1|0){default:uc(J[a+68>>2],K[c+14|0],d,b,j+12|0,j+8|0,j+4|0);J[m+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:uc(J[a+68>>2],K[c+10|0],d,b,j+12|0,j+8|0,j+4|0);J[l+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:uc(J[a+68>>2],K[c+6|0],d,b,j+12|0,j+8|0,j+4|0);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break e}uc(J[a+68>>2],K[c+2|0],d,b,j+12|0,j+8|0,j+4|0);J[n+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<< -16|-16777216;case 1:f:switch(f-1|0){default:uc(J[a+68>>2],K[c+13|0],d,b,j+12|0,j+8|0,j+4|0);J[m+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:uc(J[a+68>>2],K[c+9|0],d,b,j+12|0,j+8|0,j+4|0);J[l+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:uc(J[a+68>>2],K[c+5|0],d,b,j+12|0,j+8|0,j+4|0);J[k+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break f}uc(J[a+68>>2],K[c+1|0],d,b,j+12|0,j+8|0,j+4|0);J[n+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break; -case 0:break c}g:switch(f-1|0){default:uc(J[a+68>>2],K[c+12|0],d,b,j+12|0,j+8|0,j+4|0);J[m>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:uc(J[a+68>>2],K[c+8|0],d,b,j+12|0,j+8|0,j+4|0);J[l>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:uc(J[a+68>>2],K[c+4|0],d,b,j+12|0,j+8|0,j+4|0);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break g}uc(J[a+68>>2],K[c|0],d,b,j+12|0,j+8|0,j+4|0);J[n>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;if(g>>>0<4)break b; -i=c+18|0;o=m+16|0;h=l+16|0;d=k+16|0;b=n+16|0;g=g-4|0;if(g)continue;break}g=4}if(f>>>0<5)break a;b=g<<2;g=p<<2;o=(b+m|0)+g|0;h=g+(b+l|0)|0;d=g+(b+k|0)|0;b=g+(b+n|0)|0;f=f-4|0;i=(c+q|0)+18|0;continue}}if(f>>>0<4)break a;c=e>>>2|0;while(1){g=c;while(1){e=K[i+16|0];k=K[i+17|0];l=j+12|0;m=j+8|0;n=j+4|0;uc(J[a+68>>2],K[i|0],e,k,l,m,n);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+1|0],e,k,l,m,n);J[b+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+2|0], -e,k,l,m,n);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+3|0],e,k,l,m,n);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+4|0],e,k,l,m,n);J[d>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+5|0],e,k,l,m,n);J[d+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+6|0],e,k,l,m,n);J[d+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+7|0],e,k,l,m,n);J[d+12>>2]=J[j+12>>2]|J[j+8>>2]<< -8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+8|0],e,k,l,m,n);J[h>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+9|0],e,k,l,m,n);J[h+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+10|0],e,k,l,m,n);J[h+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+11|0],e,k,l,m,n);J[h+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+12|0],e,k,l,m,n);J[o>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+ -13|0],e,k,l,m,n);J[o+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+14|0],e,k,l,m,n);J[o+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+15|0],e,k,l,m,n);J[o+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+18|0;o=o+16|0;h=h+16|0;d=d+16|0;b=b+16|0;g=g-1|0;if(g)continue;break}i=i+q|0;e=p<<2;o=e+o|0;h=e+h|0;d=d+e|0;b=b+e|0;f=f-4|0;if(f>>>0>3)continue;break}}xb=j+16|0}function RJ(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;e=xb-48|0;xb=e;c=J[b+16>>2];a:{if(!(K[c+16|0]&64))break a;J[c+144>>2]=J[c+144>>2]|32;g=J[c+68>>2];if(!g)break a;d=J[c+80>>2];c=0;if(g>>>0>=4){k=g&-4;while(1){i=d+P(c,20)|0;J[i+4>>2]=J[i+4>>2]|2;i=d+P(c|1,20)|0;J[i+4>>2]=J[i+4>>2]|2;i=d+P(c|2,20)|0;J[i+4>>2]=J[i+4>>2]|2;i=d+P(c|3,20)|0;J[i+4>>2]=J[i+4>>2]|2;c=c+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break a;while(1){g=d+P(c,20)|0;J[g+4>>2]=J[g+4>>2]|2;c=c+1|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}k=0;J[b+84>>2]= -0;b:{f=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(f){f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);p=f>>>0<=1?1:f;q=f-1|0;f=a+8|0;a=0;while(1){c=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);d=J[b+16>>2];h=J[d+40>>2];c:{if((!(c&128)|0)==((h&-2)!=4|0))break c;g=J[b+8>>2];J[e+16>>2]=a;if(!nc(d,g,106504,e+16|0))break c;l=(c&16)>>>4^(h&-3)!=5;a=1;d:{if(m)break d;a=0;if(!(K[f+4|0]&64))break d;c=J[b+16>>2];d=J[c+68>>2];a=1;if(!d)break d;m=J[c+88>>2];c=0;if((d|0)!=1){h=d&-2;a=0;while(1){g=m+P(c, -20)|0;H[g+18|0]=2;I[g+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;g=m+P(c|1,20)|0;H[g+18|0]=2;I[g+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;c=c+2|0;a=a+2|0;if((h|0)!=(a|0))continue;break}}a=1;if(!(d&1))break d;a=m+P(c,20)|0;H[a+18|0]=2;I[a+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;a=1}m=a;e:{if(l)break e;g=J[b+16>>2];i=J[g+68>>2];if(i>>>0>=2){n=J[g+80>>2];a=i-1|0;h=0;while(1){c=n+P(a,20)|0;J[e+40>>2]=J[c+16>>2];d=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=d;d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=d;d=n+ -P(h,20)|0;J[c+16>>2]=J[d+16>>2];j=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=j;j=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=j;J[d+16>>2]=J[e+40>>2];c=J[e+36>>2];J[d+8>>2]=J[e+32>>2];J[d+12>>2]=c;c=J[e+28>>2];J[d>>2]=J[e+24>>2];J[d+4>>2]=c;a=a-1|0;h=h+1|0;if(a>>>0>h>>>0)continue;break}}if(!K[g+63|0])break e;a=J[g+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2)break e;g=J[g+88>>2];a=a-1|0;h=0;while(1){c=g+P(a,20)|0;J[e+40>>2]=J[c+16>>2];d=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=d;d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+ -28>>2]=d;d=g+P(h,20)|0;J[c+16>>2]=J[d+16>>2];i=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=i;i=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=i;J[d+16>>2]=J[e+40>>2];c=J[e+36>>2];J[d+8>>2]=J[e+32>>2];J[d+12>>2]=c;c=J[e+28>>2];J[d>>2]=J[e+24>>2];J[d+4>>2]=c;a=a-1|0;h=h+1|0;if(a>>>0>h>>>0)continue;break}}a=J[b+56>>2];c=J[a+12>>2];J[b+24>>2]=c;a=J[a+16>>2];J[b+32>>2]=a;d=a+c|0;J[b+28>>2]=d;if(o>>>0>>0){a=0;f:{if(c>>>0>f>>>0){h=0;c=0;break f}h=0;c=0;if(d>>>0<=f>>>0)break f;c=d-f|0;a=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<< -16|K[f+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);h=a>>>0>c>>>0?c:a;a=f+h|0;c=f}J[b+32>>2]=h;J[b+24>>2]=c;J[b+28>>2]=a}J[195395]=0;n=ca(607,f|0,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;a=J[b+56>>2];c=J[a+12>>2];J[b+24>>2]=c;a=J[a+16>>2];J[b+32>>2]=a;J[b+28>>2]=a+c;g:{if(l)break g;g=J[b+16>>2];i=J[g+68>>2];if(i>>>0>=2){l=J[g+80>>2];a=i-1|0;h=0;while(1){c=l+P(a,20)|0;J[e+40>>2]=J[c+16>>2];d=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=d;d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=d;d= -l+P(h,20)|0;J[c+16>>2]=J[d+16>>2];j=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=j;j=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=j;J[d+16>>2]=J[e+40>>2];c=J[e+36>>2];J[d+8>>2]=J[e+32>>2];J[d+12>>2]=c;c=J[e+28>>2];J[d>>2]=J[e+24>>2];J[d+4>>2]=c;a=a-1|0;h=h+1|0;if(a>>>0>h>>>0)continue;break}}if(!K[g+63|0])break g;a=J[g+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2)break g;g=J[g+88>>2];a=a-1|0;h=0;while(1){c=g+P(a,20)|0;J[e+40>>2]=J[c+16>>2];d=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=d;d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+ -28>>2]=d;d=g+P(h,20)|0;J[c+16>>2]=J[d+16>>2];i=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=i;i=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=i;J[d+16>>2]=J[e+40>>2];c=J[e+36>>2];J[d+8>>2]=J[e+32>>2];J[d+12>>2]=c;c=J[e+28>>2];J[d>>2]=J[e+24>>2];J[d+4>>2]=c;a=a-1|0;h=h+1|0;if(a>>>0>h>>>0)continue;break}}k=k|n;a=J[b+8>>2];c=J[b+16>>2];J[e>>2]=J[b+84>>2];nc(c,a,106530,e)}c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);a=J[b+84>>2]+1|0;J[b+84>>2]=a;f=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+f|0;o=o+1|0;if((p|0)!= -(o|0))continue;break}}xb=e+48|0;return k&1}a=Z()|0;f=J[b+56>>2];c=J[f+12>>2];J[b+24>>2]=c;f=J[f+16>>2];J[b+32>>2]=f;J[b+28>>2]=c+f;ba(a|0);B()}function F2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-128|0;xb=d;a:{b:{c:{d:{e:{f:{g:{if(J[c>>2]==J[c+4>>2])break g;f=a+8|0;mn(d+112|0,f);a=d+80|0;ff(a,O[d+112>>3],-1);J[195395]=0;$(1811,a|0,44);a=J[195395];J[195395]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if((a|0)!=1){J[d+16>>2]=J[d+88>>2];J[d+88>>2]=0;a=J[d+84>>2];J[d+8>>2]=J[d+80>>2];J[d+ -12>>2]=a;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;a=d- -64|0;da(1863,a|0,+O[d+120>>3],-1);b=J[195395];J[195395]=0;if((b|0)==1)break v;J[195395]=0;e=a;a=K[d+75|0];b=a<<24>>24<0;a=aa(1864,d+8|0,(b?J[d+64>>2]:e)|0,(b?J[d+68>>2]:a)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break u;J[d+104>>2]=J[a+8>>2];b=J[a+4>>2];J[d+96>>2]=J[a>>2];J[d+100>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);a=J[c>>2];c=J[c+4>>2];if((a|0)!=(c|0))while(1){e= -J[a>>2];J[195395]=0;b=d+48|0;da(1863,b|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break r;J[195395]=0;aa(1968,b|0,(H[d+59|0]<0?J[d+48>>2]:b)|0,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break q;J[d+72>>2]=J[d+56>>2];J[d+56>>2]=0;b=J[d+52>>2];J[d+64>>2]=J[d+48>>2];J[d+68>>2]=b;J[d+48>>2]=0;J[d+52>>2]=0;J[195395]=0;$(1811,d- -64|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break p;J[d+88>>2]=J[d+72>>2];J[d+72>>2]=0;b=J[d+68>>2];J[d+80>>2]=J[d+64>>2];J[d+84>>2]=b;J[d+64>>2]=0;J[d+68>>2]=0;b=J[a+4>> -2];J[195395]=0;e=d+36|0;da(1863,e|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break o;J[195395]=0;g=e;b=K[d+47|0];e=b<<24>>24<0;b=aa(1864,d+80|0,(e?J[d+36>>2]:g)|0,(e?J[d+40>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break n;J[d+16>>2]=J[b+8>>2];e=J[b+4>>2];J[d+8>>2]=J[b>>2];J[d+12>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[d+19|0];e=b<<24>>24<0;aa(1864,d+96|0,(e?J[d+8>>2]:d+8|0)|0,(e?J[d+12>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;if(H[d+19|0]<0)Kb(J[d+8>>2]); -if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);a=a+8|0;if((c|0)!=(a|0))continue;break}J[195395]=0;b=aa(1969,d+8|0,402168,d+96|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break h;a=Z()|0;break b}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;if(H[d+75|0]>=0)break t;Kb(J[d+64>>2])}if(H[d+19|0]>=0)break s;Kb(J[d+8>>2])}if(H[d+91|0]>=0)break a;Kb(J[d+80>>2]);ba(a|0);B()}a=Z()|0;break b}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()| -0;break l}a=Z()|0;if(H[d+19|0]>=0)break l;Kb(J[d+8>>2])}if(H[d+47|0]>=0)break k;Kb(J[d+36>>2])}if(H[d+91|0]>=0)break j;Kb(J[d+80>>2])}if(H[d+75|0]>=0)break i;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break b;Kb(J[d+48>>2]);break b}J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;H[d+68|0]=0;J[d+64>>2]=d+80;c=_(1078,24)|0;a=J[195395];J[195395]=0;w:{x:{if((a|0)!=1){J[d+84>>2]=c;J[d+80>>2]=c;J[195395]=0;J[d+88>>2]=c+24;a=ha(1957,d+88|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break w;a=Z()|0;J[d+ -84>>2]=c;break x}a=Z()|0}Kc(d- -64|0);Vb(b);break b}J[d+84>>2]=a;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=d+80|0;$(1963,f|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;$(1964,f|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,f|0,b|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,f|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;J[d+64>>2]= -a;J[d+68>>2]=8;J[d+72>>2]=-2147483636;c=J[100681];J[a+24>>2]=J[100680];J[a+28>>2]=c;c=J[100679];J[a+16>>2]=J[100678];J[a+20>>2]=c;c=J[100677];J[a+8>>2]=J[100676];J[a+12>>2]=c;c=J[100675];J[a>>2]=J[100674];J[a+4>>2]=c;J[a+32>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,f|0,d- -64|0,b|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);b=J[d+80>>2];if(b){a=J[d+84>>2];c=b;if((a|0)!=(b|0)){while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);c=a-24| -0;if(H[a-13|0]<0)Kb(J[c>>2]);a=c;if((b|0)!=(a|0))continue;break}c=J[d+80>>2]}J[d+84>>2]=b;Kb(c)}if(H[d+107|0]>=0)break g;Kb(J[d+96>>2])}xb=d+128|0;return}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]>=0)break c;Kb(J[d+64>>2])}Hc(d+80|0)}if(H[d+107|0]>=0)break a;Kb(J[d+96>>2])}ba(a|0);B()}function E2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-128|0;xb=d;a:{b:{c:{d:{e:{f:{g:{if(J[c>>2]==J[c+4>>2])break g;f=a+8|0;mn(d+112|0,f);a=d+80|0;ff(a,O[d+112>>3],-1); -J[195395]=0;$(1811,a|0,44);a=J[195395];J[195395]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if((a|0)!=1){J[d+16>>2]=J[d+88>>2];J[d+88>>2]=0;a=J[d+84>>2];J[d+8>>2]=J[d+80>>2];J[d+12>>2]=a;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;a=d- -64|0;da(1863,a|0,+O[d+120>>3],-1);b=J[195395];J[195395]=0;if((b|0)==1)break v;J[195395]=0;e=a;a=K[d+75|0];b=a<<24>>24<0;a=aa(1864,d+8|0,(b?J[d+64>>2]:e)|0,(b?J[d+68>>2]:a)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break u;J[d+104>>2]=J[a+8>>2];b=J[a+4>>2];J[d+96>>2]= -J[a>>2];J[d+100>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);a=J[c>>2];c=J[c+4>>2];if((a|0)!=(c|0))while(1){e=I[a>>1];J[195395]=0;b=d+48|0;da(1863,b|0,+(e|0),-1);e=J[195395];J[195395]=0;if((e|0)==1)break r;J[195395]=0;aa(1968,b|0,(H[d+59|0]<0?J[d+48>>2]:b)|0,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break q;J[d+72>>2]=J[d+56>>2];J[d+56>>2]=0;b=J[d+52>>2];J[d+64>>2]=J[d+48>>2];J[d+68>>2]=b;J[d+48>>2]=0;J[d+52>>2]=0; -J[195395]=0;$(1811,d- -64|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break p;J[d+88>>2]=J[d+72>>2];J[d+72>>2]=0;b=J[d+68>>2];J[d+80>>2]=J[d+64>>2];J[d+84>>2]=b;J[d+64>>2]=0;J[d+68>>2]=0;b=I[a+2>>1];J[195395]=0;e=d+36|0;da(1863,e|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break o;J[195395]=0;g=e;b=K[d+47|0];e=b<<24>>24<0;b=aa(1864,d+80|0,(e?J[d+36>>2]:g)|0,(e?J[d+40>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break n;J[d+16>>2]=J[b+8>>2];e=J[b+4>>2];J[d+8>>2]=J[b>>2];J[d+12>>2]=e;J[b>>2]= -0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=K[d+19|0];e=b<<24>>24<0;aa(1864,d+96|0,(e?J[d+8>>2]:d+8|0)|0,(e?J[d+12>>2]:b)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);a=a+4|0;if((c|0)!=(a|0))continue;break}J[195395]=0;b=aa(1969,d+8|0,402168,d+96|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break h;a=Z()|0;break b}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;if(H[d+ -75|0]>=0)break t;Kb(J[d+64>>2])}if(H[d+19|0]>=0)break s;Kb(J[d+8>>2])}if(H[d+91|0]>=0)break a;Kb(J[d+80>>2]);ba(a|0);B()}a=Z()|0;break b}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;if(H[d+19|0]>=0)break l;Kb(J[d+8>>2])}if(H[d+47|0]>=0)break k;Kb(J[d+36>>2])}if(H[d+91|0]>=0)break j;Kb(J[d+80>>2])}if(H[d+75|0]>=0)break i;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break b;Kb(J[d+48>>2]);break b}J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;H[d+68|0]=0;J[d+64>>2]=d+80;c=_(1078,24)| -0;a=J[195395];J[195395]=0;w:{x:{if((a|0)!=1){J[d+84>>2]=c;J[d+80>>2]=c;J[195395]=0;J[d+88>>2]=c+24;a=ha(1957,d+88|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break w;a=Z()|0;J[d+84>>2]=c;break x}a=Z()|0}Kc(d- -64|0);Vb(b);break b}J[d+84>>2]=a;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=d+80|0;$(1963,f|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;$(1964,f|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;fa(1960,f|0,b|0,0);a=J[195395]; -J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1958,f|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;J[d+64>>2]=a;J[d+68>>2]=8;J[d+72>>2]=-2147483636;c=J[100681];J[a+24>>2]=J[100680];J[a+28>>2]=c;c=J[100679];J[a+16>>2]=J[100678];J[a+20>>2]=c;c=J[100677];J[a+8>>2]=J[100676];J[a+12>>2]=c;c=J[100675];J[a>>2]=J[100674];J[a+4>>2]=c;J[a+32>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,f|0,d- -64|0,b|0,d+48|0);a=J[195395];J[195395]= -0;if((a|0)==1)break d;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);b=J[d+80>>2];if(b){a=J[d+84>>2];c=b;if((a|0)!=(b|0)){while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);c=a-24|0;if(H[a-13|0]<0)Kb(J[c>>2]);a=c;if((b|0)!=(a|0))continue;break}c=J[d+80>>2]}J[d+84>>2]=b;Kb(c)}if(H[d+107|0]>=0)break g;Kb(J[d+96>>2])}xb=d+128|0;return}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]>=0)break c;Kb(J[d+64>>2])}Hc(d+80|0)}if(H[d+107|0]>=0)break a;Kb(J[d+96>>2])}ba(a|0); -B()}function Ena(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;f=xb-48|0;xb=f;c=J[b+16>>2];a:{if(!(K[c+16|0]&64))break a;J[c+144>>2]=J[c+144>>2]|32;h=J[c+68>>2];if(!h)break a;c=J[c+80>>2];if(h>>>0>=4){i=h&-4;while(1){j=c+P(d,20)|0;J[j+4>>2]=J[j+4>>2]|2;j=c+P(d|1,20)|0;J[j+4>>2]=J[j+4>>2]|2;j=c+P(d|2,20)|0;J[j+4>>2]=J[j+4>>2]|2;j=c+P(d|3,20)|0;J[j+4>>2]=J[j+4>>2]|2;d=d+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=h&3;if(!g)break a;while(1){h=c+P(d,20)|0;J[h+4>>2]= -J[h+4>>2]|2;d=d+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}J[b+84>>2]=0;b:{c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(c){c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);p=c>>>0<=1?1:c;q=c-1|0;a=a+8|0;e=0;while(1){c=K[a+4|0];c:{if(c&32)break c;g=J[b+16>>2];d=J[g+40>>2];if(((d&-2)!=4|0)==(c<<24>>24>=0|0))break c;c=J[b+8>>2];J[f+16>>2]=e;if(!nc(g,c,106661,f+16|0))break c;h=d&-3;c=1;d:{if(k)break d;c=0;if(!(K[a+4|0]&64))break d;e=J[b+16>>2];k=J[e+68>>2];c=1;if(!k)break d;g=J[e+88>>2];d=0;if((k| -0)!=1){c=k&-2;e=0;while(1){i=g+P(d,20)|0;H[i+18|0]=2;I[i+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;i=g+P(d|1,20)|0;H[i+18|0]=2;I[i+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;d=d+2|0;e=e+2|0;if((c|0)!=(e|0))continue;break}}c=1;if(!(k&1))break d;c=g+P(d,20)|0;H[c+18|0]=2;I[c+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;c=1}k=c;l=(h|0)!=5;e:{if(l)break e;h=J[b+16>>2];i=J[h+68>>2];if(i>>>0>=2){j=J[h+80>>2];e=i-1|0;g=0;while(1){d=j+P(e,20)|0;J[f+40>>2]=J[d+16>>2];c=J[d+12>>2];J[f+32>>2]=J[d+8>>2];J[f+36>>2]=c;c= -J[d+4>>2];J[f+24>>2]=J[d>>2];J[f+28>>2]=c;c=j+P(g,20)|0;J[d+16>>2]=J[c+16>>2];m=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=m;m=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=m;J[c+16>>2]=J[f+40>>2];d=J[f+36>>2];J[c+8>>2]=J[f+32>>2];J[c+12>>2]=d;d=J[f+28>>2];J[c>>2]=J[f+24>>2];J[c+4>>2]=d;e=e-1|0;g=g+1|0;if(e>>>0>g>>>0)continue;break}}if(!K[h+63|0])break e;c=J[h+68>>2];c=c>>>0>>0?c:i;if(c>>>0<2)break e;h=J[h+88>>2];e=c-1|0;g=0;while(1){d=h+P(e,20)|0;J[f+40>>2]=J[d+16>>2];c=J[d+12>>2];J[f+32>>2]=J[d+8>>2];J[f+ -36>>2]=c;c=J[d+4>>2];J[f+24>>2]=J[d>>2];J[f+28>>2]=c;c=h+P(g,20)|0;J[d+16>>2]=J[c+16>>2];i=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=i;i=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=i;J[c+16>>2]=J[f+40>>2];d=J[f+36>>2];J[c+8>>2]=J[f+32>>2];J[c+12>>2]=d;d=J[f+28>>2];J[c>>2]=J[f+24>>2];J[c+4>>2]=d;e=e-1|0;g=g+1|0;if(e>>>0>g>>>0)continue;break}}e=J[b+56>>2];c=J[e+12>>2];J[b+24>>2]=c;e=J[e+16>>2];J[b+32>>2]=e;d=c+e|0;J[b+28>>2]=d;if(n>>>0>>0){e=0;f:{if(a>>>0>>0){g=0;c=0;break f}g=0;c=0;if(a>>>0>=d>>>0)break f; -e=d-a|0;c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);g=c>>>0>e>>>0?e:c;e=g+a|0;c=a}J[b+32>>2]=g;J[b+24>>2]=c;J[b+28>>2]=e}J[195395]=0;m=ca(791,a|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+56>>2];e=J[c+12>>2];J[b+24>>2]=e;c=J[c+16>>2];J[b+32>>2]=c;J[b+28>>2]=c+e;g:{if(l)break g;h=J[b+16>>2];i=J[h+68>>2];if(i>>>0>=2){j=J[h+80>>2];e=i-1|0;g=0;while(1){d=j+P(e,20)|0;J[f+40>>2]=J[d+16>>2];c=J[d+12>>2];J[f+32>>2]=J[d+8>>2];J[f+36>>2]=c;c=J[d+ -4>>2];J[f+24>>2]=J[d>>2];J[f+28>>2]=c;c=j+P(g,20)|0;J[d+16>>2]=J[c+16>>2];l=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=l;l=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=l;J[c+16>>2]=J[f+40>>2];d=J[f+36>>2];J[c+8>>2]=J[f+32>>2];J[c+12>>2]=d;d=J[f+28>>2];J[c>>2]=J[f+24>>2];J[c+4>>2]=d;e=e-1|0;g=g+1|0;if(e>>>0>g>>>0)continue;break}}if(!K[h+63|0])break g;c=J[h+68>>2];c=c>>>0>>0?c:i;if(c>>>0<2)break g;h=J[h+88>>2];e=c-1|0;g=0;while(1){d=h+P(e,20)|0;J[f+40>>2]=J[d+16>>2];c=J[d+12>>2];J[f+32>>2]=J[d+8>>2];J[f+36>> -2]=c;c=J[d+4>>2];J[f+24>>2]=J[d>>2];J[f+28>>2]=c;c=h+P(g,20)|0;J[d+16>>2]=J[c+16>>2];i=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=i;i=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=i;J[c+16>>2]=J[f+40>>2];d=J[f+36>>2];J[c+8>>2]=J[f+32>>2];J[c+12>>2]=d;d=J[f+28>>2];J[c>>2]=J[f+24>>2];J[c+4>>2]=d;e=e-1|0;g=g+1|0;if(e>>>0>g>>>0)continue;break}}o=m|o;c=J[b+8>>2];e=J[b+16>>2];J[f>>2]=J[b+84>>2];nc(e,c,106739,f)}c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=J[b+84>>2]+1|0;J[b+84>>2]=e;a=(c<<24|(c&65280)<<8|(c>>> -8&65280|c>>>24))+a|0;n=n+1|0;if((p|0)!=(n|0))continue;break}}xb=f+48|0;return o&1}a=Z()|0;c=J[b+56>>2];k=J[c+12>>2];J[b+24>>2]=k;c=J[c+16>>2];J[b+32>>2]=c;J[b+28>>2]=c+k;ba(a|0);B()}function cfa(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,y=0,z=0,A=0,B=0;n=xb-416|0;xb=n;z=J[b+92>>2];J[a+40>>2]=L[b+68>>1];if(!di(b,1970170211)){ZA(a,b);c=(J[J[a>>2]+12>>2]<<3)+6560|0;f=J[c>>2];if((f|0)!=5531){A=a+7720|0;B=a+44|0;while(1){t=c;g=f+1024|0; -c=K[g|0];a:{if(!c)break a;s=L[t+4>>1];w=s&2;u=w?B:A;o=1;x=s&1;q=0;r=0;while(1){d=c&255;if((d|0)!=32){b:{c:{if((d|0)==124){g=g+1|0;break c}while(1){d=K[g|0];g=g+1|0;if((d|0)==32)continue;break}if(d<<24>>24<0){c=d>>>0<240;e=d>>>0<224;f=e?1:c?2:3;d=(e?31:c?15:7)&d;e=0;c=g;while(1){d=K[c|0]&63|d<<6;c=c+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}g=f+g|0}f=0;while(1){c=K[g|0];if((c|32)!=32){g=g+1|0;f=c;if(c<<24>>24>=0)continue;c=c>>>0<240;e=f>>>0<224;m=e?1:c?2:3;f=(e?31:c?15:7)&f;e=0;c=g;while(1){f=K[c| -0]&63|f<<6;c=c+1|0;e=e+1|0;if((m|0)!=(e|0))continue;break}g=g+m|0;continue}break}if(f)break b;d=ce(J[J[a+36>>2]>>2],d);if(!d)break b;if(Ug(b,d,1))break b;d=J[b+84>>2];if(I[d+110>>1]<3)break b;v=I[d+108>>1];d:{if((v|0)<=0){c=0;break d}y=J[d+120>>2];m=J[d+112>>2];f=-1;d=0;c=0;l=0;if(!w)while(1){i=I[(l<<1)+y>>1];e:{if((i|0)<=(d|0))break e;if(x){if((i-d|0)+1&1){e=J[(m+(d<<3)|0)+4>>2];h=(e|0)>(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break e;while(1){h=J[(m+(e<<3)|0)+4>> -2];k=(h|0)>(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[(m+(d<<3)|0)+4>>2];h=p?h:k?h:c;c=(j|0)>(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}break e}if((i-d|0)+1&1){e=J[(m+(d<<3)|0)+4>>2];h=(e|0)<(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break e;while(1){h=J[(m+(e<<3)|0)+4>>2];k=(h|0)<(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[(m+(d<<3)|0)+4>>2];h=p?h:k?h:c;c=(j|0)<(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}}d= -i+1|0;l=l+1|0;if((v|0)!=(l|0))continue;break d}while(1){i=I[(l<<1)+y>>1];f:{if((i|0)<=(d|0))break f;if(x){if((i-d|0)+1&1){e=J[m+(d<<3)>>2];h=(e|0)>(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break f;while(1){h=J[m+(e<<3)>>2];k=(h|0)>(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[m+(d<<3)>>2];h=p?h:k?h:c;c=(j|0)>(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}break f}if((i-d|0)+1&1){e=J[m+(d<<3)>>2];h=(e|0)<(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e: -c;e=d+1|0}else e=d;if((d|0)==(i|0))break f;while(1){h=J[m+(e<<3)>>2];k=(h|0)<(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[m+(d<<3)>>2];h=p?h:k?h:c;c=(j|0)<(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}}d=i+1|0;l=l+1|0;if((v|0)!=(l|0))continue;break}}if(o){J[(n+208|0)+(q<<2)>>2]=c;q=q+1|0;break b}J[(r<<2)+n>>2]=c;r=r+1|0}o=0}c=K[g|0];if(c)continue;if(!(q|r))break a;g:{if(q>>>0<2)break g;d=1;c=q-1|0;f=c&1;if((q|0)!=2){m=c&-2;e=0;while(1){c=d;while(1){g=(n+208|0)+(c<<2)|0; -i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}c=d+1|0;while(1){g=(n+208|0)+(c<<2)|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}d=d+2|0;e=e+2|0;if((m|0)!=(e|0))continue;break}}if(!f)break g;while(1){c=(n+208|0)+(d<<2)|0;e=J[c>>2];g=c-4|0;f=J[g>>2];if((e|0)>=(f|0))break g;J[c>>2]=f;J[g>>2]=e;d=d-1|0;if(d)continue;break}}h:{if(r>>>0<2)break h;d=1;c=r-1|0;f=c&1;if((r|0)!=2){m=c&-2;e=0;while(1){c=d;while(1){g= -(c<<2)+n|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}c=d+1|0;while(1){g=(c<<2)+n|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}d=d+2|0;e=e+2|0;if((m|0)!=(e|0))continue;break}}if(!f)break h;while(1){c=(d<<2)+n|0;e=J[c>>2];g=c-4|0;f=J[g>>2];if((e|0)>=(f|0))break h;J[c>>2]=f;J[g>>2]=e;d=d-1|0;if(d)continue;break}}d=J[u+216>>2];J[u+216>>2]=d+1;d=P(d,28)+u|0;c=J[(n+208|0)+(q<<1&-4)>>2];i:{j:{if(!r)break j; -c=J[(r<<1&-4)+n>>2];if(!q)break j;c=J[(n+208|0)+(q<<1&-4)>>2];J[d+220>>2]=c;e=J[(r<<1&-4)+n>>2];J[d+232>>2]=e;if(((c|0)<=(e|0)^s)&1|(c|0)==(e|0))break i;c=(c+e|0)/2|0}J[d+232>>2]=c;J[d+220>>2]=c}J[d+244>>2]=s<<1&2}else{c=K[g+1|0];g=g+1|0;continue}break}}c=t+8|0;f=J[t+8>>2];if((f|0)!=5531)continue;break}}qx(a)}ci(b,z);xb=n+416|0;return 0}function ws(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;J[a>>2]=0;if(!(!b|!c)){d=1;a:{b:{c:{if(rF(a,b,c))break c;d:{e:{f:{g:{h:{i:{if(c>>>0>=4){d=2; -if(!Zb(b,228113,4))break c;j:{if(c>>>0<6)break j;if(!Zb(b,227935,6))break c;if(!Zb(b,227928,6))break c;if(c>>>0<16)break j;k:{if(K[b|0]!=137|K[b+1|0]!=80|(K[b+2|0]!=78|K[b+3|0]!=71))break k;if(K[b+4|0]!=13|K[b+5|0]!=10|(K[b+6|0]!=26|K[b+7|0]!=10))break k;if(K[b+8|0]|K[b+9|0]|(K[b+10|0]|K[b+11|0]!=13))break k;if(K[b+12|0]!=73|K[b+13|0]!=72|K[b+14|0]!=68)break k;d=4;if(K[b+15|0]==82)break c}if(c>>>0<17)break j;l:{m:switch(K[b+1|0]){case 1:switch(K[b+2|0]-1|0){case 0:case 8:break l;default:break j}case 0:break m; -default:break j}e=K[b+2|0];if(e>>>0>11|!(1<5)break g;d=8;e=K[b+3|0]-1&255;if(e>>>0<8)break h;break g}d=K[b|0];if((c|0)!=3)break f}if((d&255)!=255|K[b+1|0]!=216|K[b+2|0]!=255)break g;d=3;break c}if(139>>>e&1)break c}d=K[b|0];if(!((d|0)!=1|c>>>0<44)){if(K[b+1|0]|K[b+2|0]|(K[b+3|0]|K[b+40|0]!=32))break e;if(K[b+41|0]!=69|K[b+42|0]!=77)break e;d=21;if(K[b+43|0]!=70)break e;break c}if((d&255)!=215|c>>>0<6)break f; -if(K[b+1|0]!=205|K[b+2|0]!=198|(K[b+4|0]|K[b+3|0]!=154))break b;if(K[b+5|0])break b;d=10;break c}if((d&255)!=1)break d}if(K[b+1|0]|K[b+2|0]!=9|(K[b+3|0]|K[b+4|0]))break b;d=10;if(K[b+5|0]!=3)break b;break c}n:{if(!((d&255)!=73|c>>>0<4)){if(K[b+1|0]!=73)break b;if(K[b+3|0]|K[b+2|0]!=42)break n;d=6;break c}o:switch((d&255)-73|0){case 4:if(K[b+2|0]|K[b+1|0]!=77)break b;d=6;if(K[b+3|0]==42)break c;break b;case 0:break o;default:break b}if(K[b+1|0]!=73)break b}if(K[b+3|0]|K[b+2|0]!=42)break b;d=6}J[a>> -2]=d;f=c>>>0>15;break a}f=c>>>0>15;d=0;if(K[b+1|0]|(K[b|0]|c>>>0<16))break a;e=J[b+18>>2];if(e>>>0>=c-40>>>0)break a;g=J[(b+e|0)+4>>2];e=K[b+6|0];if((g|0)!=((e?e:256)|0))break a;d=5;J[a>>2]=5}e=22;p:{q:{if(qF(a,b,c))break q;if(d|c>>>0<12)break p;g=K[b|0];r:{if((g|0)!=56|K[b+1|0]!=66|(K[b+2|0]!=80|K[b+3|0]!=83))break r;if(K[b+6|0]|K[b+7|0]|(K[b+9|0]|K[b+8|0]!=24))break r;if(K[b+10|0])break r;e=20;if(K[b+11|0]==24)break q}d=0;if(!f)break p;s:{if((g|0)!=89|K[b+1|0]!=166|(K[b+2|0]!=106|K[b+3|0]!=149))break s; -if(K[b+4|0]|K[b+5|0])break s;e=15;if(K[b+15|0]==24)break q}if((g|0)!=255|c>>>0<52|(K[b+1|0]!=79|K[b+2|0]!=255))break p;e=11;if(K[b+3|0]!=81)break p}J[a>>2]=e;d=e}if(pF(a,b,c)){J[a>>2]=11;d=11}t:{u:{v:{if(!oF(a,b,c)){if(xs(a,b,c))break v;if(d)break t;if(c>>>0>=6)break u;break t}J[a>>2]=11;if(!xs(a,b,c))break t}J[a>>2]=0;if(c>>>0<=5)break t}w:{x:{if(K[b|0]!=86|K[b+1|0]!=67|(K[b+2|0]!=76|K[b+3|0]!=77))break x;if(K[b+4|0]!=84|K[b+5|0]!=70|(K[b+9|0]|K[b+10|0]))break x;if(K[b+11|0])break x;J[a>>2]=0;if(c>>> -0>9)break w;break t}if(c>>>0<10)break t}y:{z:switch(K[b|0]-67|0){case 3:if(K[b+1|0]!=87|K[b+2|0]!=83)break t;if(!K[b+9|0])break y;break t;case 0:break z;default:break t}if(K[b+1|0]!=87|K[b+2|0]!=83|(K[b+8|0]!=120|K[b+9|0]!=156))break t}J[a>>2]=0}k=xb-32|0;xb=k;A:{B:{e=0;C:{if(J[a>>2])break C;D:{if(K[b|0]!=60|c>>>0<6|(K[b+1|0]!=63|K[b+2|0]!=120))break D;if(K[b+3|0]!=109|K[b+4|0]!=108|K[b+5|0]!=32)break D;d=k+20|0;E:{if(c>>>0<2147483632){F:{if(c>>>0<=10){H[d+11|0]=c;e=d;break F}f=(c|15)+1|0;e=Pb(f); -J[d+8>>2]=f|-2147483648;J[d>>2]=e;J[d+4>>2]=c}n=qc(e,b,c)+c|0,o=0,H[n|0]=o;break E}dd(d);B()}J[195395]=0;h=ca(1113,k+8|0,226946)|0;e=J[195395];J[195395]=0;if((e|0)==1)break B;f=K[d+11|0];e=f<<24>>24<0;f=e?J[d+4>>2]:f;g=K[h+11|0];i=g<<24>>24<0;j=i?J[h+4>>2]:g;if(j){l=e?J[d>>2]:d;g=l+f|0;e=l;f=g-e|0;G:{H:{if((j|0)>(f|0))break H;i=i?J[h>>2]:h;m=H[i|0];while(1){f=(f-j|0)+1|0;if(!f)break H;f=bh(e,m,f);if(!f)break H;if(!cd(f,i,j))break G;e=f+1|0;f=g-e|0;if((j|0)<=(f|0))continue;break}}f=g}f=(f|0)==(g|0)? --1:f-l|0}else f=0;if(H[h+11|0]<0)Kb(J[h>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);e=1;if((f|0)!=-1)break C}e=0}xb=k+32|0;break A}a=Z()|0;if(H[d+11|0]<0)Kb(J[d>>2]);ba(a|0);B()}if(e)J[a>>2]=24;I:{if(c>>>0<12)break I;J:{if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))==1413695824)break J;if(!cd(b+10|0,234168,6))break J;if(c>>>0<528)break I;if(cd(b+522|0,234168,6))break I}J[a>>2]=25}d=J[a>>2]!=0}return d}function AF(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;k=xb-16|0;xb=k;if(a){if(J[a+ -56>>2]==1)d=Es(a);l=J[a+65792>>2];i=mi(a,J[a+44>>2]);m=zb;a:{if(d)break a;c=J[a+48>>2];if(!c){d=0;break a}d=0;while(1){e=J[c+8>>2];b=-1;b:{if(d)break b;if(!e){e=0;b=0;break b}d=Ab[J[a+8>>2]](J[a+28>>2],J[a+44>>2],c+16|0,e)|0;e=J[c+8>>2];b=(d|0)!=(e|0)?-1:0}d=b;h=e+h|0;c=J[c>>2];if(c)continue;break}}c=J[a+48>>2];if(c)while(1){b=J[c>>2];Kb(c);c=b;if(b)continue;break}J[a+48>>2]=0;J[a+52>>2]=0;c=J[a+65776>>2];b=i-c|0;if(!((J[a+65780>>2]+(c>>>0>i>>>0)|0)==(m|0)&(b|0)!=-1&(!J[a+65788>>2]&M[a+65784>>2]< -65536))){c=mi(a,J[a+44>>2]);n=zb;b=xb-16|0;xb=b;e=J[a+44>>2];H[b+8|0]=80;H[b+9|0]=75;H[b+10|0]=6;H[b+11|0]=6;g=e;e=b+8|0;c:{if((Ab[J[a+8>>2]](J[a+28>>2],g,e,4)|0)!=4)break c;f=J[a+44>>2];H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+8|0]=44;if((Ab[J[a+8>>2]](J[a+28>>2],f,e,8)|0)!=8)break c;f=J[a+44>>2];H[b+8|0]=45;H[b+9|0]=0;if((Ab[J[a+8>>2]](J[a+28>>2],f,e,2)|0)!=2)break c;f=J[a+44>>2];H[b+8|0]=45;H[b+9|0]=0;if((Ab[J[a+8>>2]](J[a+28>>2],f,e,2)| -0)!=2)break c;f=J[a+44>>2];J[b+8>>2]=0;if((Ab[J[a+8>>2]](J[a+28>>2],f,e,4)|0)!=4)break c;f=J[a+44>>2];J[b+8>>2]=0;if((Ab[J[a+8>>2]](J[a+28>>2],f,e,4)|0)!=4)break c;j=J[a+44>>2];f=J[a+65788>>2];g=J[a+65784>>2];H[b+8|0]=g;H[b+9|0]=g>>>8;H[b+10|0]=g>>>16;H[b+11|0]=g>>>24;H[b+12|0]=f;H[b+13|0]=f>>>8;H[b+14|0]=f>>>16;H[b+15|0]=f>>>24;if((Ab[J[a+8>>2]](J[a+28>>2],j,e,8)|0)!=8)break c;j=J[a+44>>2];f=J[a+65788>>2];g=J[a+65784>>2];H[b+8|0]=g;H[b+9|0]=g>>>8;H[b+10|0]=g>>>16;H[b+11|0]=g>>>24;H[b+12|0]=f;H[b+ -13|0]=f>>>8;H[b+14|0]=f>>>16;H[b+15|0]=f>>>24;if((Ab[J[a+8>>2]](J[a+28>>2],j,e,8)|0)!=8)break c;f=J[a+44>>2];H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;H[b+8|0]=h;H[b+11|0]=h>>>24;H[b+10|0]=h>>>16;H[b+9|0]=h>>>8;if((Ab[J[a+8>>2]](J[a+28>>2],f,e,8)|0)!=8)break c;j=J[a+44>>2];g=J[a+65776>>2];f=i-g|0;g=m-(J[a+65780>>2]+(g>>>0>i>>>0)|0)|0;H[b+8|0]=f;H[b+9|0]=f>>>8;H[b+10|0]=f>>>16;H[b+11|0]=f>>>24;H[b+12|0]=g;H[b+13|0]=g>>>8;H[b+14|0]=g>>>16;H[b+15|0]=g>>>24;Ab[J[a+8>>2]](J[a+28>>2],j,e,8)|0}xb= -b+16|0;b=xb-16|0;xb=b;g=J[a+65776>>2];j=J[a+65780>>2];e=J[a+44>>2];H[b+8|0]=80;H[b+9|0]=75;H[b+10|0]=6;H[b+11|0]=7;f=b+8|0;d:{if((Ab[J[a+8>>2]](J[a+28>>2],e,f,4)|0)!=4)break d;e=J[a+44>>2];J[b+8>>2]=0;if((Ab[J[a+8>>2]](J[a+28>>2],e,f,4)|0)!=4)break d;o=J[a+44>>2];e=c-g|0;H[b+8|0]=e;H[b+9|0]=e>>>8;H[b+10|0]=e>>>16;H[b+11|0]=e>>>24;c=n-((c>>>0>>0)+j|0)|0;H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;if((Ab[J[a+8>>2]](J[a+28>>2],o,f,8)|0)!=8)break d;c=J[a+44>>2];H[b+8|0]=1;H[b+9|0]= -0;H[b+10|0]=0;H[b+11|0]=0;Ab[J[a+8>>2]](J[a+28>>2],c,f,4)|0}xb=b+16|0}e:{if(d)break e;d=xb-16|0;xb=d;c=J[a+44>>2];H[d+8|0]=80;H[d+9|0]=75;H[d+10|0]=5;H[d+11|0]=6;e=-1;b=c;g=d+8|0;c=g;f:{if((Ab[J[a+8>>2]](J[a+28>>2],b,c,4)|0)!=4)break f;b=J[a+44>>2];I[d+8>>1]=0;if((Ab[J[a+8>>2]](J[a+28>>2],b,c,2)|0)!=2)break f;b=J[a+44>>2];I[d+8>>1]=0;if((Ab[J[a+8>>2]](J[a+28>>2],b,c,2)|0)!=2)break f;b=J[a+44>>2];f=J[a+65788>>2];c=J[a+65784>>2];g:{if(!f&c>>>0>=65535|f){H[d+8|0]=255;H[d+9|0]=255;c=Ab[J[a+8>>2]](J[a+ -28>>2],b,g,2)|0;break g}H[d+8|0]=c;H[d+9|0]=c>>>8;c=Ab[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0}if((c|0)!=2)break f;b=J[a+44>>2];f=J[a+65788>>2];c=J[a+65784>>2];h:{if(!f&c>>>0>=65535|f){H[d+8|0]=255;H[d+9|0]=255;c=Ab[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0;break h}H[d+8|0]=c;H[d+9|0]=c>>>8;c=Ab[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0}if((c|0)!=2)break f;c=J[a+44>>2];H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;h=d+8|0;if((Ab[J[a+8>>2]](J[a+28>>2],c,h,4)|0)!=4)break f;b=J[a+44>>2];e=J[a+65776>>2];c= -i-e|0;i=m-(J[a+65780>>2]+(e>>>0>i>>>0)|0)|0;if(!i&(c|0)==-1|i){J[d+8>>2]=-1;e=(Ab[J[a+8>>2]](J[a+28>>2],b,h,4)|0)!=4?-1:0;break f}H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;e=(Ab[J[a+8>>2]](J[a+28>>2],b,d+8|0,4)|0)!=4?-1:0}xb=d+16|0;if(e)break e;i:{if(!l){e=J[a+44>>2];c=0;I[k+8>>1]=0;break i}e=J[a+44>>2];c=ac(l);I[k+8>>1]=c;if(c>>>0<65536)break i;I[k+8>>1]=65535}if(!(!c|(Ab[J[a+8>>2]](J[a+28>>2],e,k+8|0,2)|0)!=2))Ab[J[a+8>>2]](J[a+28>>2],J[a+44>>2],l,c)|0}Ab[J[a+20>>2]](J[a+28>>2], -J[a+44>>2])|0;c=J[a+65792>>2];if(c)Kb(c);Kb(a)}xb=k+16|0}function Po(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;m=J[a-12>>2];e=vc(1,48);if(e)a:{d=xb-48|0;xb=d;J[e+44>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;H[d+24|0]=0;H[d+25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+28|0]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;I[d+44>>1]=0;J[d+40>>2]=65536;b:{a=J[m+32>>2];if((a|0)==-1){J[195395]=0;a=_(582,m|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break b}H[d+44|0]=1;J[d+40>>2]=a;b=J[m+12>>2];c:{if(b){a=J[m+16>>2];J[195395]=0;a=aa(b|0,m|0,1668112752,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;if(a)break c}J[195395]=0;a=169776;b=J[195395];J[195395]=0;if((b|0)==1)break b}J[195395]=0;a=ca(641,d|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[e+44>>2]=a;d:{b=J[d+36>>2];if(b){J[195395]=0;ea(583,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;a=J[e+44>>2]}h=169776;a=a?a:169776;i=M[a+16>>2]<4?169776:J[a+12>> -2];if(d)H[d|0]=0;e:{f:{g:{h:{i:{n=K[i+2|0]|K[i+3|0]<<8;j:{if(n){l=i+4|0;j=((n<<8|n>>>8)&65535)-1|0;a=j;k:{while(1){l:{m:{k=a+f>>>1|0;g=l+(k<<3)|0;c=K[g|0]|K[g+1|0]<<8;b=(c<<8|c>>>8)&65535;n:{if(!(b>>>0>3|(c|0)!=768)){if(K[g+2|0]|K[g+3|0]<<8)break n;a=l+(k<<3)|0;break k}if(b>>>0<4)break m}a=k-1|0;break l}f=k+1|0}if((a|0)>=(f|0))continue;break}a=169776}a=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(!a)break i;a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break j}c=J[42445];b=c>>>8&65280|c>>>24;a= -c<<24|(c&65280)<<8;if(!c)break h;a=a|b}a=a+i|0;if(!d)break e;H[d|0]=1;break e}f=0;o:{while(1){p:{q:{r:{g=f+j>>>1|0;c=l+(g<<3)|0;b=K[c|0]|K[c+1|0]<<8;a=(b<<8|b>>>8)&65535;s:{if(!(a>>>0>3|(b|0)!=768)){a=K[c+2|0]|K[c+3|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>10)break s;if((a|0)==2560)break r;break q}if(a>>>0<4)break q}j=g-1|0;break p}a=l+(g<<3)|0;break o}f=g+1|0}if((f|0)<=(j|0))continue;break}a=169776}f=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(f)break f;t:{if(n){f=0;g=((n<<8|n>>>8)&65535)-1|0;a= -g;u:{v:{while(1){w:{x:{c=a+f>>>1|0;b=l+(c<<3)|0;if(!(K[b|0]|K[b+1|0]<<8)){b=K[b+2|0]|K[b+3|0]<<8;if(((b<<8|b>>>8)&65535)>>>0<7)break x}a=c-1|0;break w}if((b|0)==1536)break v;f=c+1|0}if((a|0)>=(f|0))continue;break}a=169776;break u}a=l+(c<<3)|0}f=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(!f)break t;break f}f=J[42445];if(f)break f;a=169776;break g}a=0;y:{while(1){z:{A:{c=a+g>>>1|0;b=l+(c<<3)|0;if(!(K[b|0]|K[b+1|0]<<8)){b=K[b+2|0]|K[b+3|0]<<8;if(((b<<8|b>>>8)&65535)>>>0<5)break A}g=c-1|0;break z}if((b| -0)==1024)break y;a=c+1|0}if((a|0)<=(g|0))continue;break}a=169776;break g}a=l+(c<<3)|0;break g}a=i+(a|b)|0;if(c)break e;a=169776}f=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(f)break f;a=Jk(i,3,1);if(a)break e;a=Jk(i,0,3);if(a)break e;a=Jk(i,0,2);if(a)break e;a=Jk(i,0,1);if(a)break e;a=Jk(i,0,0);a=a?a:169776;break e}a=i+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0}J[e+4>>2]=169776;b=a;J[e>>2]=a;a=J[e+44>>2];a=a?a:169776;j=M[a+16>>2]<4?169776:J[a+12>>2];a=K[j+2|0]|K[j+3|0]<<8;B:{if(!a)break B; -g=j+4|0;a=((a<<8|a>>>8)&65535)-1|0;while(1){C:{D:{E:{k=a+o>>>1|0;c=g+(k<<3)|0;if(!(K[c|0]|K[c+1|0]<<8)){c=K[c+2|0]|K[c+3|0]<<8;if(((c<<8|c>>>8)&65535)>>>0<6)break E}a=k-1|0;break D}if((c|0)==1280)break C;o=k+1|0}if((a|0)>=(o|0))continue;break B}break}h=g+(k<<3)|0}a=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);F:{if(!a)break F;a=j+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;if((K[a|0]|K[a+1|0]<<8)!=3584)break F;J[e+4>>2]=a}c=b?b:169776;J[e+12>>2]=c;G:{if(K[d|0]){H:{a=Rt(m+72|0);a=(K[a|0]|K[a+1| -0]<<8?0:(K[a+62|0]|K[a+63|0]<<8)<<8)&65280;if((a|0)!=45824){if((a|0)!=45568){if(a)break H;J[e+8>>2]=642;break G}J[e+8>>2]=643;break G}J[e+8>>2]=644;break G}J[e+8>>2]=645;break G}I:{J:{K:{a=K[c|0]|K[c+1|0]<<8;switch(((a<<8|a>>>8)&65535)-4|0){case 0:break I;case 8:break J;default:break K}}J[e+8>>2]=645;break G}J[e+8>>2]=646;break G}b=K[c+6|0]|K[c+7|0]<<8;a=c+14|0;J[e+16>>2]=a;h=(b<<8|b>>>8)&65534;b=h>>>1|0;J[e+36>>2]=b;a=(a+h|0)+2|0;J[e+20>>2]=a;a=a+h|0;J[e+24>>2]=a;a=a+h|0;J[e+28>>2]=a;J[e+32>>2]= -a+h;a=K[c+2|0]|K[c+3|0]<<8;J[e+12>>2]=e+16;J[e+8>>2]=647;J[e+40>>2]=(((a<<8|a>>>8)&65535)-(b<<3)|0)-16>>>1}xb=d+48|0;break a}ga(0)|0;_b();B()}a=Z()|0;ed(d);ba(a|0);B()}return e}function xT(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;h=xb-16|0;xb=h;J[h+12>>2]=b;J[e>>2]=0;i=J[d+28>>2];J[h>>2]=i;J[i+4>>2]=J[i+4>>2]+1;J[195395]=0;i=_(3535,h|0)|0;j=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((j| -0)!=1){j=J[h>>2];k=J[j+4>>2]-1|0;J[j+4>>2]=k;if((k|0)==-1)Ab[J[J[j>>2]+8>>2]](j);switch(g-65|0){case 54:break j;case 19:break k;case 18:break l;case 17:break m;case 49:break n;case 47:break o;case 45:case 51:break p;case 12:break q;case 44:break r;case 41:break s;case 8:break t;case 7:break u;case 5:break v;case 3:break w;case 35:case 36:break x;case 34:break y;case 1:case 33:case 39:break z;case 0:case 32:break A;case 2:case 4:case 6:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 37:case 38:case 40:case 42:case 43:case 46:case 48:case 50:case 52:case 53:break d; -case 24:break f;case 56:break g;case 23:break h;case 55:break i;default:break e}}c=Z()|0;a=J[h>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}Tx(a,f+24|0,h+12|0,c,e,i);break b}Sx(a,f+16|0,h+12|0,c,e,i);break b}b=Ab[J[J[a+8>>2]+12>>2]](a+8|0)|0;g=a;j=J[h+12>>2];a=b;B:{if(K[a+11|0]>>>7|0){b=J[a>>2];break B}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=_g(g,j,c,d,e,f,i,b+a|0),J[l+12>>2]=m;break b}a=ug(h+12|0,c, -e,i,2);b=J[e>>2];C:{if(!(a-1>>>0>30|b&4)){J[f+12>>2]=a;break C}J[e>>2]=b|4}break b}J[h>>2]=623865125;J[h+4>>2]=2032480100;l=h,m=_g(a,b,c,d,e,f,h,h+8|0),J[l+12>>2]=m;break b}J[h>>2]=623728933;J[h+4>>2]=1680158061;l=h,m=_g(a,b,c,d,e,f,h,h+8|0),J[l+12>>2]=m;break b}a=ug(h+12|0,c,e,i,2);b=J[e>>2];D:{if(!((a|0)>23|b&4)){J[f+8>>2]=a;break D}J[e>>2]=b|4}break b}a=ug(h+12|0,c,e,i,2);b=J[e>>2];E:{if(!(a-1>>>0>11|b&4)){J[f+8>>2]=a;break E}J[e>>2]=b|4}break b}a=ug(h+12|0,c,e,i,3);b=J[e>>2];F:{if(!((a|0)>365| -b&4)){J[f+28>>2]=a;break F}J[e>>2]=b|4}break b}b=ug(h+12|0,c,e,i,2)-1|0;a=J[e>>2];G:{if(!(b>>>0>11|a&4)){J[f+16>>2]=b;break G}J[e>>2]=a|4}break b}a=ug(h+12|0,c,e,i,2);b=J[e>>2];H:{if(!((a|0)>59|b&4)){J[f+4>>2]=a;break H}J[e>>2]=b|4}break b}a=h+12|0;b=xb-16|0;xb=b;J[b+12>>2]=c;while(1){I:{if(mf(a,b+12|0))break I;c=Kh(a);if((c|0)>=0)c=J[J[i+8>>2]+((c&255)<<2)>>2]&1;else c=0;if(!c)break I;Hi(a);continue}break}if(mf(a,b+12|0))J[e>>2]=J[e>>2]|2;xb=b+16|0;break b}g=h+12|0;b=Ab[J[J[a+8>>2]+8>>2]](a+8|0)| -0;J:{if(K[b+11|0]>>>7|0){a=J[b+4>>2];break J}a=K[b+11|0]&127}if(K[b+23|0]>>>7|0)d=J[b+16>>2];else d=K[b+23|0]&127;K:{if((a|0)==(0-d|0)){J[e>>2]=J[e>>2]|4;break K}c=Nm(g,c,b,b+24|0,i,e,0);a=J[f+8>>2];if(!((c|0)!=(b|0)|(a|0)!=12)){J[f+8>>2]=0;break K}if(!((c-b|0)!=12|(a|0)>11))J[f+8>>2]=a+12}break b}g=K[764008]|K[764009]<<8|(K[764010]<<16|K[764011]<<24);H[h+7|0]=g;H[h+8|0]=g>>>8;H[h+9|0]=g>>>16;H[h+10|0]=g>>>24;g=K[764005]|K[764006]<<8|(K[764007]<<16|K[764008]<<24);J[h>>2]=K[764001]|K[764002]<<8|(K[764003]<< -16|K[764004]<<24);J[h+4>>2]=g;l=h,m=_g(a,b,c,d,e,f,h,h+11|0),J[l+12>>2]=m;break b}H[h+4|0]=K[764016];J[h>>2]=K[764012]|K[764013]<<8|(K[764014]<<16|K[764015]<<24);l=h,m=_g(a,b,c,d,e,f,h,h+5|0),J[l+12>>2]=m;break b}a=ug(h+12|0,c,e,i,2);b=J[e>>2];L:{if(!((a|0)>60|b&4)){J[f>>2]=a;break L}J[e>>2]=b|4}break b}J[h>>2]=624576549;J[h+4>>2]=1394948685;l=h,m=_g(a,b,c,d,e,f,h,h+8|0),J[l+12>>2]=m;break b}a=ug(h+12|0,c,e,i,1);b=J[e>>2];M:{if(!((a|0)>6|b&4)){J[f+24>>2]=a;break M}J[e>>2]=b|4}break b}a=Ab[J[J[a>> -2]+20>>2]](a,b,c,d,e,f)|0;break a}b=Ab[J[J[a+8>>2]+24>>2]](a+8|0)|0;g=a;j=J[h+12>>2];a=b;N:{if(K[a+11|0]>>>7|0){b=J[a>>2];break N}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=_g(g,j,c,d,e,f,i,b+a|0),J[l+12>>2]=m;break b}Rx(f+20|0,h+12|0,c,e,i);break b}a=ug(h+12|0,c,e,i,4);if(!(K[e|0]&4))J[f+20>>2]=a-1900;break b}if((g|0)==37)break c}J[e>>2]=J[e>>2]|4;break b}a=xb-16|0;xb=a;J[a+12>>2]=c;b=6;c=h+12|0;d=a+12|0;O:{P:{if(mf(c,d))break P;b=4;if(((m= -i,n=Kh(c),o=0,l=J[J[i>>2]+36>>2],Ab[l](m|0,n|0,o|0)|0)|0)!=37)break P;b=2;if(!mf(Hi(c),d))break O}J[e>>2]=J[e>>2]|b}xb=a+16|0}a=J[h+12>>2]}xb=h+16|0;return a|0}function uu(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=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);e=(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))+a|0;f=K[e|0]|K[e+1|0]<<8;i=J[d+60>>2];a:{b:{c:{d:{if(H[a+15|0]&1){if((f|0)!=2560)break d;e:{g=K[e+4|0]|K[e+5|0]<<8;g=(g<<8|g>>>8)&65535;if(g>>>0<=b>>>0){f=K[e+6|0]|K[e+7| -0]<<8;h=(f<<8|f>>>8)&65535;f=b-g|0;if(h>>>0>f>>>0)break e}b=J[42444];g=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break c}b=K[e+2|0]|K[e+3|0]<<8;if(!b){g=0;break c}g=(b<<8|b>>>8)&65535;j=g>>>0<=1?1:g;h=j&3;e=(e+P(f,g)|0)+8|0;b=0;if(g>>>0<4)g=0;else{j=j&65532;g=0;while(1){f=e;e=e+4|0;g=g+4|0;if((j|0)!=(g|0))continue;break}g=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24)}if(!h)break c;while(1){g=K[e|0]|g<<8;e=e+1|0;b=b+1|0;if((h|0)!=(b|0))continue;break}break c}f:{if((f| -0)==2560){g:{f=K[e+4|0]|K[e+5|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0<=b>>>0){f=b-f|0;h=K[e+6|0]|K[e+7|0]<<8;if(f>>>0<((h<<8|h>>>8)&65535)>>>0)break g}b=L[84888];b=b<<8|b>>>8;break f}b=K[e+2|0]|K[e+3|0]<<8;if(!b){b=0;break f}b=(b<<8|b>>>8)&65535;j=b>>>0<=1?1:b;h=j&3;e=(e+P(b,f)|0)+8|0;if(b>>>0<4)b=0;else{j=j&65532;b=0;while(1){f=e;e=e+4|0;b=b+4|0;if((j|0)!=(b|0))continue;break}b=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}if(!h)break f;while(1){b=K[e|0]|b<< -8;e=e+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}break f}b=bf(e,b,i);b=b?b:169776;b=K[b|0]|K[b+1|0]<<8;b=b<<8|b>>>8}h=b&65535;b=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);b=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+a|0;h:{if((K[b|0]|K[b+1|0]<<8)==2560){i:{e=K[b+4|0]|K[b+5|0]<<8;e=(e<<8|e>>>8)&65535;if(e>>>0<=c>>>0){e=c-e|0;g=K[b+6|0]|K[b+7|0]<<8;if(e>>>0<((g<<8|g>>>8)&65535)>>>0)break i}b=L[84888];b=b<<8|b>>>8;break h}c=K[b+2|0]|K[b+3|0]<<8;if(!c){b=0;break h}c=(c<<8|c>>>8)&65535;i=c>>> -0<=1?1:c;f=i&3;e=(b+P(c,e)|0)+8|0;g=0;if(c>>>0<4)b=0;else{i=i&65532;b=0;while(1){c=e;e=e+4|0;b=b+4|0;if((i|0)!=(b|0))continue;break}b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}if(!f)break h;while(1){b=K[e|0]|b<<8;e=e+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}break h}b=bf(b,c,i);b=b?b:169776;b=K[b|0]|K[b+1|0]<<8;b=b<<8|b>>>8}c=0;e=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);b=((e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))+a|0)+(h+(b&65535)<<1)|0; -if(M[d+32>>2]>2]>>>0|J[d+28>>2]-b>>>0<2)break a;b=K[b|0]|K[b+1|0]<<8;e=(b<<8|b>>>8)<<16>>16;break b}b=tu(e,b,i);b=b?b:169776;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}b=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);b=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+a|0;j:{if((K[b|0]|K[b+1|0]<<8)==2560){k:{e=K[b+4|0]|K[b+5|0]<<8;e=(e<<8|e>>>8)&65535;if(e>>>0<=c>>>0){e=c-e|0;f=K[b+6|0]|K[b+7|0]<<8;if(e>>>0<((f<<8|f>>>8)&65535)>>>0)break k}b= -J[42444];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break j}c=K[b+2|0]|K[b+3|0]<<8;if(!c){b=0;break j}f=(c<<8|c>>>8)&65535;h=f>>>0<=1?1:f;i=h&3;e=(b+P(e,f)|0)+8|0;c=0;if(f>>>0<4)b=0;else{h=h&65532;b=0;while(1){f=e;e=e+4|0;b=b+4|0;if((h|0)!=(b|0))continue;break}b=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}if(!i)break j;while(1){b=K[e|0]|b<<8;e=e+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}break j}b=tu(b,c,i);b=b?b:169776;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16| -K[b+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}c=0;e=b+g|0;if(e>>>0>>0|e>>>0>1073741823)break a;b=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);b=((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+a|0)+(e<<2)|0;if(M[d+32>>2]>2]>>>0|J[d+28>>2]-b>>>0<4)break a;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}b=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);if(!b)return e|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if((b|0)<0)break a; -f=a;a=K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24);a=(f+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0)+e|0;if(M[d+32>>2]>2]>>>0)break a;b=b<<1;if(b>>>0>J[d+28>>2]-a>>>0)break a;b=J[d+36>>2]-b|0;J[d+36>>2]=b;if((b|0)<=0)break a;a=K[a|0]|K[a+1|0]<<8;c=(a<<8|a>>>8)<<16>>16}return c|0}function VO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-176|0;xb=f;J[f+172>>2]=0;g=J[e+32>>2];if(g)i=J[g+100>>2];a:{b:{if(Zb(a,11158,7))break b;c:{h=K[a+7|0];switch(h|0){case 0:case 9:case 10:case 13:case 32:break c; -default:break b}}c=0;if(!g|!J[J[e+36>>2]+8>>2])break a;c=J[g+100>>2];J[f+32>>2]=0;e=c;c=J[g+88>>2];b=(h?-8:-7)+b|0;d=b+1|0;e=Tb(e,1,c,d+c|0,J[g+84>>2],f+32|0);J[g+84>>2]=e;c=J[f+32>>2];if(c)break a;j=Mb(e+J[g+88>>2]|0,h?a+8|0:a+7|0,b)+b|0,k=10,H[j|0]=k;J[g+88>>2]=d+J[g+88>>2];c=J[f+32>>2];break a}h=J[e>>2];if(!(h&1)){d=J[e+56>>2];c=176;if(Zb(a,11270,9))break a;d:switch(K[a+9|0]){case 0:case 9:case 10:case 13:case 32:break d;default:break a}a=0;J[e+32>>2]=0;J[e>>2]=1;b=tc(d,136,f+172|0);c=J[f+172>> -2];if(c)break a;J[e+32>>2]=b;J[b+100>>2]=J[e+56>>2];J[e+56>>2]=0;g=b+112|0;c=aF(g,d);J[f+172>>2]=c;if(c)break a;b=21680;while(1){c=go(J[b>>2],a,g,d);J[f+172>>2]=c;if(c)break a;b=b+16|0;a=a+1|0;if((a|0)!=83)continue;break}a=tc(d,24,f+172|0);J[J[e+32>>2]+92>>2]=a;c=J[f+172>>2];if(c)break a;c=aF(a,d);if(c)break a;a=J[J[e+36>>2]+12>>2];b=J[e+32>>2];J[b+36>>2]=-1;J[b+28>>2]=a;c=0;break a}e:{if(Zb(a,11394,15))break e;f:switch(K[a+15|0]){case 0:case 9:case 10:case 13:case 32:break f;default:break e}c=179; -if(!(h&8))break a;c=Df(e+40|0,11510,a,b);J[f+172>>2]=c;if(c)break a;g:{h:{b=J[J[e+40>>2]+4>>2];if(!b)break h;a=H[b|0];c=a&255;if(!c|!(K[(c>>>3|0)+24096|0]>>>(a&7)&1))break h;c=0;i:{while(1){if(c>>>0>=429496728){a=J[e+32>>2];J[a+72>>2]=-1;J[e+4>>2]=-1;a=a+72|0;break i}c=K[a+24128|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+24096|0]>>>(a&7)&1)continue;break}a=J[e+32>>2];J[a+72>>2]=c;J[e+4>>2]=c;if(J[e+60>>2]>>>2>>>0>=c>>>0)break g;a=a+72|0}J[a>>2]=0;c=6;break a}c=0;J[J[e+32>>2]+72>>2]=0;J[e+ -4>>2]=0}a=Tb(i,16,0,c,0,f+172|0);b=J[e+32>>2];J[b+80>>2]=a;c=J[f+172>>2];if(c){J[b+72>>2]=0;break a}J[e>>2]=J[e>>2]|16;J[d>>2]=3;c=0;break a}j:{if(Zb(a,11606,15))break j;k:switch(K[a+15|0]){case 0:case 9:case 10:case 13:case 32:break k;default:break j}c=178;if(!(h&4))break a;c=Df(e+40|0,11510,a,b);if(c)break a;a=J[e+32>>2];b=J[e+40>>2];j=a,k=sm(J[b+4>>2]),I[j+4>>1]=k;d=sm(J[b+8>>2]);I[a+6>>1]=d;j=a,k=Qk(J[b+12>>2]),I[j+8>>1]=k;b=Qk(J[b+16>>2]);I[a+10>>1]=b;c=0;I[a+14>>1]=0-b;I[a+12>>1]=b+d;J[e>>2]= -J[e>>2]|8;break a}l:{if(Zb(a,11730,4))break l;m:switch(K[a+4|0]){case 0:case 9:case 10:case 13:case 32:break m;default:break l}d=e+40|0;c=Df(d,11510,a,b);J[f+172>>2]=c;if(c)break a;Fv(d);b=Dv(d,f+32|0);if(!b){c=3;break a}a=J[J[e+32>>2]>>2];if(a)Ab[J[i+8>>2]](i,a);J[J[e+32>>2]>>2]=0;d=J[f+32>>2]+1|0;a=Tb(i,1,0,d,0,f+172|0);J[J[e+32>>2]>>2]=a;c=J[f+172>>2];if(c)break a;Mb(a,b,d);g=J[e+36>>2];a=xb-272|0;xb=a;d=6;b=J[e+32>>2];n:{if(!b)break n;c=J[b>>2];if(!c|!K[c|0])break n;i=J[b+100>>2];J[a+8>>2]=0; -J[a>>2]=0;J[a+4>>2]=0;J[a+12>>2]=i;J[b+28>>2]=J[g+12>>2];g=ac(c)+1|0;if(g>>>0>255)break n;d=a+16|0;Mb(d,c,g);d=Df(a,24292,d,g);o:{if(d|J[a+8>>2]!=15)break o;c=32;p:{q:switch(H[J[J[a>>2]+44>>2]]-67|0){case 10:case 42:c=16;break p;case 0:case 32:break p;case 13:case 45:break q;default:break o}c=8}J[b+28>>2]=c}b=J[a+12>>2];if(!b)break n;c=J[a>>2];if(c)Ab[J[b+8>>2]](b,c)}xb=a+272|0;c=d;if(c)break a;J[e>>2]=J[e>>2]|2;c=0;break a}r:{if(Zb(a,11809,4))break r;s:switch(K[a+4|0]){case 0:case 9:case 10:case 13:case 32:break s; -default:break r}c=177;if(!(h&2))break a;c=Df(e+40|0,11510,a,b);if(c)break a;a=J[e+32>>2];b=J[e+40>>2];j=a,k=Pk(J[b+4>>2]),J[j+16>>2]=k;j=a,k=Pk(J[b+8>>2]),J[j+20>>2]=k;j=a,k=Pk(J[b+12>>2]),J[j+24>>2]=k;t:{if(J[e+48>>2]==5){b=Qk(J[b+16>>2]);if(b>>>0>=5){I[a+96>>1]=8;break t}if(b>>>0>=3){I[a+96>>1]=4;break t}if((b|0)==2){I[a+96>>1]=2;break t}I[a+96>>1]=1;break t}I[a+96>>1]=1}J[e>>2]=J[e>>2]|4;c=0;break a}c=3;if(Zb(a,11901,5))break a;u:switch(K[a+5|0]){case 0:case 9:case 10:case 13:case 32:break u;default:break a}c= -179;if(!(h&8))break a;a=I[g+12>>1];J[g+40>>2]=a;J[f+16>>2]=a;a=f+32|0;Md(a,12020,f+16|0);c=Bi(J[e+32>>2],12084,a);J[f+172>>2]=c;if(c)break a;c=J[e+32>>2];b=I[c+14>>1];J[c+44>>2]=b;J[f>>2]=b;Md(a,12020,f);c=Bi(J[e+32>>2],12180,a);if(c)break a;J[d>>2]=4;c=-1}xb=f+176|0;return c|0}function kI(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,w=0,x=0;s=xb-16|0;xb=s;d=P(b,1348)+a|0;l=d;i=J[d+52>>2];a:{b:{if(i){d=J[d+44>>2];e=Zi(a,b);if(e)break a;if((d|0)<=0)break b; -d=P(d,44)+i|0;while(1){e=J[i+36>>2];c=L[e>>1];g=K[i|0];H[i|0]=g&254;f=J[i+40>>2];c:{if((f|0)==(e|0))break c;c=c&3;while(1){k=c;e=J[e+32>>2];c=L[e>>1]&3;if(!((k|c)&65535))break c;if((e|0)!=(f|0))continue;break}H[i|0]=g|1}i=i+44|0;if(d>>>0>i>>>0)continue;break}break b}e=Zi(a,b);if(e)break a}n=J[J[a+2748>>2]+40>>2]/256|0;p=P(b,1348)+a|0;q=p+44|0;c=J[q>>2];d=J[l+52>>2];j=J[p+68>>2];t=(b?12:4)+a|0;i=dc(192,J[t>>2]);if((c|0)>0){k=P(c,44)+d|0;c=d;while(1){e=d;if((j|0)==H[c+1|0])while(1){d:{if((c|0)==(e| -0)|(j|0)!=(0-H[e+1|0]|0))break d;f=I[e+2>>1]-I[c+2>>1]|0;if((f|0)<0)break d;g=I[c+8>>1];h=I[e+8>>1];r=(g|0)<(h|0)?g:h;g=I[c+6>>1];h=I[e+6>>1];g=r-((g|0)>(h|0)?g:h)|0;if((g|0)<(n|0))break d;h=f<<3;m=J[c+28>>2];if(!((h|0)>=(P(m,9)|0)|(g|0)<=J[c+32>>2]&(h|0)>=(P(m,7)|0))){J[c+32>>2]=g;J[c+28>>2]=f;J[c+20>>2]=e}m=J[e+28>>2];if((h|0)>=(P(m,9)|0)|(g|0)<=J[e+32>>2]&(h|0)>=(P(m,7)|0))break d;J[e+32>>2]=g;J[e+28>>2]=f;J[e+20>>2]=c}e=e+44|0;if(k>>>0>e>>>0)continue;break}c=c+44|0;if(k>>>0>c>>>0)continue;break}c= -d;while(1){f=J[c+20>>2];e:{if(!f|J[f+20>>2]!=(c|0))break e;n=I[f+2>>1];m=I[c+2>>1];if((n|0)<=(m|0))break e;o=J[c+28>>2];if((o|0)>=(i|0))break e;v=o<<2;e=d;while(1){f:{g:{if((c|0)==(e|0))break g;g=I[e+2>>1];if((g|0)>(m|0))break g;j=J[e+20>>2];if(!j|J[j+20>>2]!=(e|0))break g;h=I[j+2>>1];if((h|0)<(n|0)|(g|0)==(m|0)&(h|0)==(n|0))break g;g=J[e+28>>2];if((g|0)<=(o|0)|(g|0)>=(v|0))break g;h=d;if(J[c+32>>2]<(P(J[e+32>>2],3)|0))break f;while(1){g=f;u=J[h+20>>2];h:{if((u|0)!=(e|0)){g=c;if((j|0)!=(u|0))break h}J[h+ -24>>2]=g;J[h+20>>2]=0}h=h+44|0;if(k>>>0>h>>>0)continue;break}}e=e+44|0;if(k>>>0>e>>>0)continue;break e}break}J[f+20>>2]=0;J[c+20>>2]=0}c=c+44|0;if(k>>>0>c>>>0)continue;break}while(1){c=J[d+20>>2];i:{if(!c|J[c+20>>2]==(d|0))break i;J[d+20>>2]=0;g=J[c+28>>2];if((g|0)>=(i|0)&J[d+28>>2]>=g<<2)break i;J[d+24>>2]=J[c+20>>2]}d=d+44|0;if(k>>>0>d>>>0)continue;break}}v=J[a>>2];f=J[l+52>>2];d=J[q>>2];c=J[a+2748>>2];J[p+56>>2]=0;c=c+P(b,7676)|0;n=J[t>>2];j:{if((Rb(J[c+248>>2],n)|0)>=17){h=dc(16,n);break j}h= -J[c+248>>2]}if((d|0)>0){t=P(d,44)+f|0;u=(P(b,1348)+a|0)- -64|0;while(1){k:{l:{w=J[p+56>>2];m:{if((w|0)<=0){l=H[f+1|0];break m}m=J[u>>2];d=0;g=65535;l=K[f+1|0];i=0;while(1){e=P(i,44);k=e+m|0;n:{if(K[k+13|0]!=(l|0))break n;j=I[f+2>>1]-I[k>>1]|0;c=j>>31;j=(c^j)-c|0;if((j|0)>=(h|0)|(g|0)<=(j|0))break n;x=J[f+20>>2];if(x){c=0;r=J[(e+m|0)+36>>2];e=r;while(1){o:{o=J[e+20>>2];if(o){c=I[x+2>>1];o=I[o+2>>1];c=(c|0)>(o|0)?c-o|0:o-c|0;if((h|0)<=(c|0))break o}e=J[e+16>>2];if((r|0)!=(e|0))continue}break}if((c| -0)>=(h|0))break n}g=j;d=k}i=i+1|0;if((w|0)!=(i|0))continue;break}if(d)break l}e=px(q,I[f+2>>1],l<<24>>24,0,v,s+12|0);if(e)break a;d=J[s+12>>2];J[d>>2]=0;J[d+4>>2]=0;J[d+40>>2]=f;J[d+36>>2]=f;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;H[d+13|0]=K[f+1|0];c=I[f+2>>1];I[d>>1]=c;c=Rb(c,n);J[d+8>>2]=c;J[d+4>>2]=c;J[f+16>>2]=f;break k}J[f+16>>2]=J[d+36>>2];J[J[d+40>>2]+16>>2]=f;J[d+40>>2]=f}f=f+44|0;if(t>>>0>f>>>0)continue;break}}c=J[p+56>>2];if((c|0)>0){d= -J[(P(b,1348)+a|0)- -64>>2];p=d+P(c,44)|0;c=d;while(1){a=J[c+36>>2];e=a;if(e)while(1){J[e+12>>2]=c;e=J[e+16>>2];if((a|0)!=(e|0))continue;break}c=c+44|0;if(p>>>0>c>>>0)continue;break}while(1){i=0;h=0;b=J[d+36>>2];if(b){k=d+28|0;a=d+24|0;e=b;while(1){q=H[e|0]&1;n=!q;c=J[e+24>>2];p:{q:{if(c){f=J[c+12>>2]==(d|0);g=J[e+20>>2];if(f&!g)break p;if(f){j=0;f=a;break q}j=1;f=k;g=c;break q}j=0;f=a;g=J[e+20>>2];if(!g)break p}c=J[f>>2];r:{if(c){l=I[d>>1]-I[c>>1]|0;f=l>>31;r=(f^l)-f|0;f=I[e+2>>1];l=I[g+2>>1];if((r| -0)<=(((f|0)>(l|0)?f-l|0:l-f|0)|0))break r}c=J[g+12>>2]}if(j){J[k>>2]=c;H[c+12|0]=K[c+12|0]|2;break p}J[a>>2]=c}i=i+q|0;h=h+n|0;e=J[e+16>>2];if((b|0)!=(e|0))continue;break}}H[d+12|0]=(h|0)<=(i|0)&(i|0)>0;if(!(!J[d+28>>2]|!J[d+24>>2]))J[d+28>>2]=0;d=d+44|0;if(p>>>0>d>>>0)continue;break}}e=0}xb=s+16|0;return e}function mG(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=xb-16|0;xb=g;c=J[a+4>>2];d=J[J[c+80>>2]+P(J[c+64>>2],20)>>2];a:{b:{c:{d:{if(b){b=J[a+8>>2];J[g+12>>2]=J[a+16>>2];e=J[b+116>>2];f=J[e+28>> -2];h=J[b+120>>2];i=g+12|0;e=J[e+12>>2];if(e)e=J[e+8>>2];else e=0;if(!(Ab[f|0](b,h,d,i,e)|0))break d;J[(J[c+80>>2]+P(J[c+64>>2],20)|0)+12>>2]=J[g+12>>2];if(K[c+62|0]){e:{if(J[c+84>>2]==J[c+80>>2]){a=J[c+72>>2];if((a|0)==J[c+64>>2])break e}if(!ec(c,1,1))break a;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];a=J[c+84>>2]+P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;a=J[c+72>>2]}J[c+72>>2]=a+1}J[c+64>>2]=J[c+64>>2]+1;break a}if(Ws(a,0, -d))break b;b=J[a+8>>2];J[g+12>>2]=J[a+16>>2];e=J[b+116>>2];f=J[e+28>>2];h=J[b+120>>2];i=g+12|0;e=J[e+12>>2];if(e)e=J[e+8>>2];else e=0;if(!(Ab[f|0](b,h,d,i,e)|0))break c;J[(J[c+80>>2]+P(J[c+64>>2],20)|0)+12>>2]=J[g+12>>2];if(K[c+62|0]){f:{if(J[c+84>>2]==J[c+80>>2]){a=J[c+72>>2];if((a|0)==J[c+64>>2])break f}if(!ec(c,1,1))break a;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];a=J[c+84>>2]+P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d; -a=J[c+72>>2]}J[c+72>>2]=a+1}J[c+64>>2]=J[c+64>>2]+1;break a}if(Ws(a,1,d))break b}g:{if((L[(J[c+80>>2]+P(J[c+64>>2],20)|0)+16>>1]&31)!=29)break g;h:{if((d|0)<=8191){b=4608;if((d|0)==32|(d|0)==160)break h;break g}i:switch(d+-8192|0){case 0:case 2:b=512;break h;case 4:b=768;break h;case 5:b=1024;break h;case 6:b=1536;break h;case 7:b=4864;break h;case 8:b=5120;break h;case 9:b=1280;break h;case 10:b=4096;break h;case 47:b=5376;break h;case 95:b=4352;break h;default:if((d|0)!=12288)break g;break;case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 94:break g; -case 1:case 3:break i}b=256}e=J[a+8>>2];J[g+8>>2]=0;f=J[e+116>>2];h=J[f+28>>2];i=J[e+120>>2];j=g+8|0;f=J[f+12>>2];if(f)f=J[f+8>>2];else f=0;if(!(Ab[h|0](e,i,32,j,f)|0)){e=J[c+28>>2];J[g+8>>2]=e;if(!e)break g}a=J[c+80>>2];d=J[c+64>>2];e=a+P(d,20)|0;f=L[e+16>>1];if((f&31)==29){I[e+16>>1]=f&255|b;d=J[c+64>>2];a=J[c+80>>2]}J[(a+P(d,20)|0)+12>>2]=J[g+8>>2];j:{if(K[c+62|0]){k:{if(J[c+84>>2]==J[c+80>>2]){a=J[c+72>>2];if((a|0)==J[c+64>>2])break k}if(!ec(c,1,1))break j;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+ -4>>2];a=J[c+84>>2]+P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;a=J[c+72>>2]}J[c+72>>2]=a+1}J[c+64>>2]=J[c+64>>2]+1}J[c+144>>2]=J[c+144>>2]|4;break a}l:{if((d|0)!=8209)break l;a=J[a+8>>2];J[g+4>>2]=0;b=J[a+116>>2];d=J[b+28>>2];e=J[a+120>>2];f=g+4|0;b=J[b+12>>2];if(b)b=J[b+8>>2];else b=0;if(!(Ab[d|0](a,e,8208,f,b)|0))break l;J[(J[c+80>>2]+P(J[c+64>>2],20)|0)+12>>2]=J[g+4>>2];if(K[c+62|0]){m:{if(J[c+84>>2]==J[c+80>>2]){a=J[c+72>> -2];if((a|0)==J[c+64>>2])break m}if(!ec(c,1,1))break a;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];a=J[c+84>>2]+P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;a=J[c+72>>2]}J[c+72>>2]=a+1}J[c+64>>2]=J[c+64>>2]+1;break a}J[(J[c+80>>2]+P(J[c+64>>2],20)|0)+12>>2]=J[g+12>>2];if(K[c+62|0]){n:{if(J[c+84>>2]==J[c+80>>2]){a=J[c+72>>2];if((a|0)==J[c+64>>2])break n}if(!ec(c,1,1))break a;b=J[c+80>>2]+P(J[c+64>>2],20)|0;d=J[b+4>>2];a=J[c+84>>2]+ -P(J[c+72>>2],20)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+16>>2]=J[b+16>>2];d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;a=J[c+72>>2]}J[c+72>>2]=a+1}J[c+64>>2]=J[c+64>>2]+1;break a}J[c+64>>2]=J[c+64>>2]+1}xb=g+16|0}function Tda(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;a=Nb(a,0,256);d=J[b>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+8>>2]=e-i<<3;J[a>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+12>>2]=d+P(e,-15137)>>10;J[a+4>> -2]=d+P(f,6270)>>10;d=J[b+4>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+40>>2]=e-i<<3;J[a+32>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+44>>2]=d+P(e,-15137)>>10;J[a+36>>2]=d+P(f,6270)>>10;d=J[b+8>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+72>>2]=e-i<<3;J[a+64>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+76>>2]=d+P(e,-15137)>>10;J[a+68>>2]=d+P(f,6270)>>10;d=J[b+12>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+ -1|0];i=h+d|0;J[a+104>>2]=e-i<<3;J[a+96>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+108>>2]=d+P(e,-15137)>>10;J[a+100>>2]=d+P(f,6270)>>10;d=J[b+16>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+136>>2]=e-i<<3;J[a+128>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+140>>2]=d+P(e,-15137)>>10;J[a+132>>2]=d+P(f,6270)>>10;d=J[b+20>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+168>>2]=e-i<<3;J[a+160>>2]=(e+i<<3)-4096;e=d-h|0;f=g- -f|0;d=P(e+f|0,4433)+512|0;J[a+172>>2]=d+P(e,-15137)>>10;J[a+164>>2]=d+P(f,6270)>>10;d=J[b+24>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];i=K[d+1|0];d=h+i|0;J[a+200>>2]=e-d<<3;d=(d+e<<3)-4096|0;J[a+192>>2]=d;e=i-h|0;g=g-f|0;f=P(e+g|0,4433)+512|0;J[a+204>>2]=f+P(e,-15137)>>10;J[a+196>>2]=f+P(g,6270)>>10;b=J[b+28>>2]+c|0;c=K[b+3|0];f=K[b|0];g=c+f|0;e=K[b+2|0];h=K[b+1|0];b=e+h|0;J[a+232>>2]=g-b<<3;b=(b+g<<3)-4096|0;J[a+224>>2]=b;g=h-e|0;f=f-c|0;c=P(g+f|0,4433)+512|0;J[a+236>>2]=c+P(g,-15137)>>10;c= -c+P(f,6270)>>10;J[a+228>>2]=c;g=J[a>>2];f=g+b|0;e=J[a+128>>2];h=J[a+96>>2];i=e+h|0;j=(f+i|0)+2|0;k=J[a+160>>2];l=J[a+64>>2];m=k+l|0;n=J[a+32>>2];o=n+d|0;p=m+o|0;J[a+128>>2]=j-p>>2;J[a>>2]=j+p>>2;i=f-i|0;j=o-m|0;f=P(i+j|0,4433)+16384|0;J[a+192>>2]=f+P(j,-15137)>>15;J[a+64>>2]=f+P(i,6270)>>15;f=h-e|0;b=g-b|0;g=P(f+b|0,-7373);d=n-d|0;i=d+f|0;e=l-k|0;j=e+b|0;h=P(i+j|0,9633)+16384|0;k=g+P(f,2446)|0;f=h+P(i,-16069)|0;J[a+224>>2]=k+f>>15;h=h+P(j,-3196)|0;i=P(e,16819);e=P(d+e|0,-20995);J[a+160>>2]=h+(i+e| -0)>>15;J[a+96>>2]=f+(e+P(d,25172)|0)>>15;J[a+32>>2]=h+(g+P(b,12299)|0)>>15;d=J[a+4>>2];b=d+c|0;f=J[a+132>>2];g=J[a+100>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+164>>2];j=J[a+68>>2];k=i+j|0;l=J[a+196>>2];m=J[a+36>>2];n=l+m|0;o=k+n|0;J[a+132>>2]=h-o>>2;J[a+4>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=P(e+h|0,4433)+16384|0;J[a+196>>2]=b+P(h,-15137)>>15;J[a+68>>2]=b+P(e,6270)>>15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=P(h+i|0,9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+228>>2]=j+b>>15;e= -e+P(i,-3196)|0;h=P(g,16819);g=P(f+g|0,-20995);J[a+164>>2]=e+(h+g|0)>>15;J[a+100>>2]=b+(g+P(f,25172)|0)>>15;J[a+36>>2]=e+(d+P(c,12299)|0)>>15;c=J[a+232>>2];d=J[a+8>>2];b=c+d|0;f=J[a+136>>2];g=J[a+104>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+168>>2];j=J[a+72>>2];k=i+j|0;l=J[a+200>>2];m=J[a+40>>2];n=l+m|0;o=k+n|0;J[a+136>>2]=h-o>>2;J[a+8>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=P(e+h|0,4433)+16384|0;J[a+200>>2]=b+P(h,-15137)>>15;J[a+72>>2]=b+P(e,6270)>>15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0; -e=P(h+i|0,9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+232>>2]=j+b>>15;e=e+P(i,-3196)|0;h=P(g,16819);g=P(f+g|0,-20995);J[a+168>>2]=e+(h+g|0)>>15;J[a+104>>2]=b+(g+P(f,25172)|0)>>15;J[a+40>>2]=e+(d+P(c,12299)|0)>>15;c=J[a+236>>2];d=J[a+12>>2];b=c+d|0;f=J[a+140>>2];g=J[a+108>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+172>>2];j=J[a+76>>2];k=i+j|0;l=J[a+204>>2];m=J[a+44>>2];n=l+m|0;o=k+n|0;J[a+140>>2]=h-o>>2;J[a+12>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=P(e+h|0,4433)+16384|0;J[a+204>>2]=b+P(h,-15137)>>15;J[a+76>>2]= -b+P(e,6270)>>15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=P(h+i|0,9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+236>>2]=j+b>>15;e=e+P(i,-3196)|0;h=P(g,16819);g=P(f+g|0,-20995);J[a+172>>2]=e+(h+g|0)>>15;J[a+108>>2]=b+(g+P(f,25172)|0)>>15;J[a+44>>2]=e+(d+P(c,12299)|0)>>15}function Cf(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;J[a>>2]=0;J[a+80>>2]=c;J[a+76>>2]=b;J[a+20>>2]=0;J[a+24>>2]=0;J[a+12>>2]=0;J[a+16>>2]=-1;J[a+28>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+ -52>>2]=-1;J[a- -64>>2]=0;b=J[c+24>>2];J[a+124>>2]=0;J[a+128>>2]=0;J[a+88>>2]=d;J[a+84>>2]=b;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;H[a+113|0]=0;H[a+114|0]=0;H[a+115|0]=0;H[a+116|0]=0;H[a+117|0]=0;H[a+118|0]=0;H[a+119|0]=0;H[a+120|0]=0;I[a+136>>1]=0;J[a+132>>2]=65536;J[195395]=0;a:{if(!e)break a;b=J[e>>2];if(!b)break a;J[e>>2]=b+1}b=J[195395];J[195395]=0;b:{c:{if((b|0)!=1){J[a+128>>2]=e;H[a+120|0]=0;if(e){c=J[e+12>>2];J[a+96>>2]=c;b=J[e+16>>2];J[a+104>>2]= -b;J[a+100>>2]=b+c;J[a+124>>2]=0;J[a+92>>2]=0;if(b>>>0>67108863)b=1073741823;else{b=b<<6;b=b>>>0<=16384?16384:b;b=b>>>0>=1073741823?1073741823:b}J[a+108>>2]=b;J[a+116>>2]=0}J[a+140>>2]=0;g=J[a+84>>2];b=g+144|0;c=J[b>>2];d:{e:{if(c)break e;while(1){if(!J[g+48>>2]){c=169776;break e}J[195395]=0;c=_(579,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;e=J[b>>2];c=c?c:169776;J[b>>2]=e?e:c;if(!e)break e;J[195395]=0;ea(580,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break d;c=J[b>>2];if(!c)continue;break}}b= -J[c>>2];b=b?b:169776;J[a+144>>2]=M[b+16>>2]<4?169776:J[b+12>>2];f:{g=J[a+84>>2];b=g+144|0;c=J[b>>2];g:{if(c)break g;while(1){if(!J[g+48>>2]){c=169776;break g}J[195395]=0;c=_(579,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break f;e=J[b>>2];c=c?c:169776;J[b>>2]=e?e:c;if(!e)break g;J[195395]=0;ea(580,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break f;c=J[b>>2];if(!c)continue;break}}J[a+148>>2]=c;b=169776;g=J[a+144>>2];c=K[g+1|0]<<8;k=K[g|0]|c;h:{if((k|0)!=256)break h;c=c|K[g|0]|(K[g+2|0]<<16|K[g+3|0]<< -24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0<65539)break h;c=K[g+14|0]|K[g+15|0]<<8|(K[g+16|0]<<16|K[g+17|0]<<24);if(!c)break h;b=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+g|0}J[a+152>>2]=b;c=0;l=J[a+76>>2];i:{if(!J[J[a+80>>2]+104>>2]|(l|0)!=1)break i;c=K[b+2|0]|K[b+3|0]<<8|(K[b+4|0]<<16|K[b+5|0]<<24);if(c)b=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+b|0;else b=169776;b=K[b+2|0]|K[b+3|0]<<8;f=b<<8|b>>>8;e=f&65535;c=Qb(e<<2);if(!b|!c)break i;b=e>>>0<=1?1:e;h=b&7;e=0;if((f&65535)>>>0>=8){j=b& -65528;f=0;while(1){b=e<<2;J[b+c>>2]=1073741824;J[(b|4)+c>>2]=1073741824;J[(b|8)+c>>2]=1073741824;J[(b|12)+c>>2]=1073741824;J[(b|16)+c>>2]=1073741824;J[(b|20)+c>>2]=1073741824;J[(b|24)+c>>2]=1073741824;J[(b|28)+c>>2]=1073741824;e=e+8|0;f=f+8|0;if((j|0)!=(f|0))continue;break}}if(!h)break i;while(1){J[(e<<2)+c>>2]=1073741824;e=e+1|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}J[a+160>>2]=0;J[a+164>>2]=0;J[a+156>>2]=c;J[a+168>>2]=0;h=J[d+68>>2];if(!h)break b;i=0;c=J[d+80>>2];b=c;e=0;if(h>>>0>=4){j=h&-4;f= -0;while(1){e=1<<(J[b>>2]>>>4)|e|1<<(J[b+20>>2]>>>4)|1<<(J[b+40>>2]>>>4)|1<<(J[b+60>>2]>>>4);b=b+80|0;f=f+4|0;if((j|0)!=(f|0))continue;break}}f=h&3;if(f)while(1){e=1<<(J[b>>2]>>>4)|e;b=b+20|0;i=i+1|0;if((f|0)!=(i|0))continue;break}J[a+160>>2]=e;i=0;b=c;e=0;if(h>>>0>=4){j=h&-4;f=0;while(1){e=1<>2]|e|1<>2]|1<>2]|1<>2];b=b+80|0;f=f+4|0;if((j|0)!=(f|0))continue;break}}f=h&3;if(f)while(1){e=1<>2]|e;b=b+20|0;i=i+1|0;if((f|0)!=(i|0))continue;break}J[a+164>>2]=e;f=h&3;e=0; -if(h>>>0<4){b=0;break c}h=h&-4;b=0;i=0;while(1){b=1<<(J[c>>2]>>>9)|b|1<<(J[c+20>>2]>>>9)|1<<(J[c+40>>2]>>>9)|1<<(J[c+60>>2]>>>9);c=c+80|0;i=i+4|0;if((h|0)!=(i|0))continue;break}break c}}}b=Z()|0;ed(a+92|0);ba(b|0);B()}if(f)while(1){b=1<<(J[c>>2]>>>9)|b;c=c+20|0;e=e+1|0;if((f|0)!=(e|0))continue;break}J[a+168>>2]=b}b=J[d+40>>2];J[a+184>>2]=0;J[a+188>>2]=64;J[a+176>>2]=1;J[a+180>>2]=-1;J[a+172>>2]=b;b=K[g+4|0]|K[g+5|0]<<8;J[a+208>>2]=-1;J[a+212>>2]=0;J[a+200>>2]=1;J[a+204>>2]=-1;H[a+193|0]=1;H[a+194| -0]=1;H[a+195|0]=0;H[a+196|0]=0;J[a+8>>2]=a;H[a+192|0]=(k|0)==256&(b|0)!=0;b=J[a+88>>2];J[a+36>>2]=J[b+68>>2];J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;H[a+21|0]=1;H[a+20|0]=(l|0)==1;J[a+12>>2]=0;J[a+16>>2]=1;I[a+22>>1]=0;J[a+44>>2]=a;J[a+72>>2]=J[b+68>>2];b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+56>>2]=257;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=-1;return a}function VJ(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;e=xb-48|0;xb=e;f=K[a+10|0]|K[a+11|0]<<8;a:{if(!f)break a;c=(f<<8|f>>>8)&65535; -if(J[J[b+76>>2]+4>>2]){f=a;a=K[a+8|0]|K[a+9|0]<<8;f=(f+P((a<<8|a>>>8)&65535,12)|0)+12|0;m=c>>>0<=1?1:c;while(1){g=J[b+76>>2];c=J[g+4>>2];b:{if(!c)break b;a=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);d=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=J[g+8>>2];while(1){if(!(d&J[a>>2])){a=a+12|0;c=c-1|0;if(c)continue;break b}break}J[b+80>>2]=d;a=K[f+2|0];if(!(a&32))if(((J[J[b+16>>2]+40>>2]&-2)!=6|0)==(a>>>0>127|0))break b;c:{if(a&16){g=(a&64)>>>6|0;a=J[b+16>>2];break c}c=(a&64)>>>6|0;a=J[b+16>>2];g= -c^(J[a+40>>2]&-3)==5}c=J[b+8>>2];J[e+16>>2]=J[b+84>>2];if(!nc(a,c,106341,e+16|0))break b;d:{e:{f:{if(g){h=J[b+16>>2];i=J[h+68>>2];if(i>>>0>=2){k=J[h+80>>2];g=i-1|0;a=0;while(1){c=k+P(g,20)|0;J[e+40>>2]=J[c+16>>2];d=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=d;d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=d;d=k+P(a,20)|0;J[c+16>>2]=J[d+16>>2];j=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=j;j=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=j;J[d+16>>2]=J[e+40>>2];c=J[e+36>>2];J[d+8>>2]=J[e+32>>2];J[d+12>>2]=c;c=J[e+ -28>>2];J[d>>2]=J[e+24>>2];J[d+4>>2]=c;a=a+1|0;g=g-1|0;if(a>>>0>>0)continue;break}}g:{if(!K[h+63|0])break g;a=J[h+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2)break g;h=J[h+88>>2];g=a-1|0;a=0;while(1){c=h+P(g,20)|0;J[e+40>>2]=J[c+16>>2];d=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=d;d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=d;d=h+P(a,20)|0;J[c+16>>2]=J[d+16>>2];i=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=i;i=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=i;J[d+16>>2]=J[e+40>>2];c=J[e+36>>2];J[d+8>>2]=J[e+32>>2];J[d+ -12>>2]=c;c=J[e+28>>2];J[d>>2]=J[e+24>>2];J[d+4>>2]=c;a=a+1|0;g=g-1|0;if(a>>>0>>0)continue;break}}c=J[b+56>>2];a=J[c+12>>2];J[b+24>>2]=a;c=J[c+16>>2];J[b+32>>2]=c;d=a+c|0;J[b+28>>2]=d;c=0;h:{if(a>>>0>f>>>0){g=0;a=0;break h}g=0;a=0;if(d>>>0<=f>>>0)break h;a=d-f|0;c=K[f|0]|K[f+1|0]<<8;c=(c<<8|c>>>8)&65535;g=a>>>0>>0?a:c;c=f+g|0;a=f}J[b+32>>2]=g;J[b+24>>2]=a;J[b+28>>2]=c;J[195395]=0;ca(600,f|0,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;f=J[b+56>>2];d=J[f+12>>2];J[b+24>>2]=d;c=J[f+16>>2]; -f=d+c|0;break f}a=J[b+56>>2];c=J[a+12>>2];J[b+24>>2]=c;a=J[a+16>>2];J[b+32>>2]=a;J[b+28>>2]=a+c;h=J[b+16>>2];i=J[h+68>>2];if(i>>>0>=2){k=J[h+80>>2];g=i-1|0;a=0;while(1){c=k+P(g,20)|0;J[e+40>>2]=J[c+16>>2];d=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=d;d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=d;d=k+P(a,20)|0;J[c+16>>2]=J[d+16>>2];j=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=j;j=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=j;J[d+16>>2]=J[e+40>>2];c=J[e+36>>2];J[d+8>>2]=J[e+32>>2];J[d+12>>2]=c;c=J[e+28>>2];J[d>> -2]=J[e+24>>2];J[d+4>>2]=c;a=a+1|0;g=g-1|0;if(a>>>0>>0)continue;break}}if(!K[h+63|0])break d;a=J[h+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2)break d;h=J[h+88>>2];g=a-1|0;a=0;while(1){c=h+P(g,20)|0;J[e+40>>2]=J[c+16>>2];d=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=d;d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=d;d=h+P(a,20)|0;J[c+16>>2]=J[d+16>>2];i=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=i;i=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=i;J[d+16>>2]=J[e+40>>2];c=J[e+36>>2];J[d+8>>2]=J[e+32>>2];J[d+12>>2]=c;c=J[e+ -28>>2];J[d>>2]=J[e+24>>2];J[d+4>>2]=c;a=a+1|0;g=g-1|0;if(a>>>0>>0)continue;break}break d}c=J[b+56>>2];a=J[c+12>>2];J[b+24>>2]=a;c=J[c+16>>2];J[b+32>>2]=c;d=a+c|0;J[b+28>>2]=d;c=0;i:{if(a>>>0>f>>>0){g=0;a=0;break i}g=0;a=0;if(d>>>0<=f>>>0)break i;a=d-f|0;c=K[f|0]|K[f+1|0]<<8;c=(c<<8|c>>>8)&65535;g=a>>>0>>0?a:c;c=f+g|0;a=f}J[b+32>>2]=g;J[b+24>>2]=a;J[b+28>>2]=c;J[195395]=0;ca(600,f|0,b|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break e;a=Z()|0;f=J[b+56>>2];d=J[f+12>>2];J[b+24>>2]=d;c=J[f+16>>2]; -f=d+c|0}J[b+32>>2]=c;J[b+28>>2]=f;ba(a|0);B()}a=J[b+56>>2];c=J[a+12>>2];J[b+24>>2]=c;a=J[a+16>>2];J[b+32>>2]=a;J[b+28>>2]=a+c}a=J[b+8>>2];c=J[b+16>>2];J[e>>2]=J[b+84>>2];nc(c,a,106375,e);if(!K[J[b+16>>2]+60|0])break a}a=K[f|0]|K[f+1|0]<<8;J[b+84>>2]=J[b+84>>2]+1;f=((a<<8|a>>>8)&65535)+f|0;l=l+1|0;if((l|0)!=(m|0))continue;break}break a}J[b+84>>2]=J[b+84>>2]+(c>>>0<=1?1:c)}xb=e+48|0}function Gna(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;e=xb-48|0;xb=e;c=J[b+16>> -2];a:{if(!(K[c+16|0]&64))break a;J[c+144>>2]=J[c+144>>2]|32;h=J[c+68>>2];if(!h)break a;c=J[c+80>>2];if(h>>>0>=4){i=h&-4;while(1){j=c+P(f,20)|0;J[j+4>>2]=J[j+4>>2]|2;j=c+P(f|1,20)|0;J[j+4>>2]=J[j+4>>2]|2;j=c+P(f|2,20)|0;J[j+4>>2]=J[j+4>>2]|2;j=c+P(f|3,20)|0;J[j+4>>2]=J[j+4>>2]|2;f=f+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=h&3;if(!g)break a;while(1){h=c+P(f,20)|0;J[h+4>>2]=J[h+4>>2]|2;f=f+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}J[b+84>>2]=0;b:{g=K[a+2|0]|K[a+3|0]<<8;if(g){g=(g<<8|g>>>8)&65535; -p=g>>>0<=1?1:g;q=g-1|0;g=a+4|0;f=0;while(1){a=J[b+16>>2];d=J[a+40>>2];c:{if((H[g+5|0]&1)==((d&-2)!=4|0))break c;c=J[b+8>>2];J[e+16>>2]=f;if(!nc(a,c,106661,e+16|0))break c;h=d&-3;d=1;d:{if(k)break d;d=0;if(!(K[g+5|0]&4))break d;a=J[b+16>>2];k=J[a+68>>2];d=1;if(!k)break d;c=J[a+88>>2];a=0;if((k|0)!=1){d=k&-2;f=0;while(1){i=c+P(a,20)|0;H[i+18|0]=2;I[i+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;i=c+P(a|1,20)|0;H[i+18|0]=2;I[i+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;a=a+2|0;f=f+2|0;if((d|0)!=(f|0))continue; -break}}d=1;if(!(k&1))break d;a=c+P(a,20)|0;H[a+18|0]=2;I[a+16>>1]=(J[J[b+16>>2]+40>>2]&-3)==4?-1:1;d=1}k=d;l=(h|0)!=5;e:{if(l)break e;h=J[b+16>>2];i=J[h+68>>2];if(i>>>0>=2){j=J[h+80>>2];f=i-1|0;d=0;while(1){c=j+P(f,20)|0;J[e+40>>2]=J[c+16>>2];a=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=a;a=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=a;a=j+P(d,20)|0;J[c+16>>2]=J[a+16>>2];m=J[a+12>>2];J[c+8>>2]=J[a+8>>2];J[c+12>>2]=m;m=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=m;J[a+16>>2]=J[e+40>>2];c=J[e+36>>2];J[a+8>>2]= -J[e+32>>2];J[a+12>>2]=c;c=J[e+28>>2];J[a>>2]=J[e+24>>2];J[a+4>>2]=c;d=d+1|0;f=f-1|0;if(d>>>0>>0)continue;break}}if(!K[h+63|0])break e;a=J[h+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2)break e;h=J[h+88>>2];f=a-1|0;d=0;while(1){c=h+P(f,20)|0;J[e+40>>2]=J[c+16>>2];a=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=a;a=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=a;a=h+P(d,20)|0;J[c+16>>2]=J[a+16>>2];i=J[a+12>>2];J[c+8>>2]=J[a+8>>2];J[c+12>>2]=i;i=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=i;J[a+16>>2]=J[e+40>>2];c=J[e+36>> -2];J[a+8>>2]=J[e+32>>2];J[a+12>>2]=c;c=J[e+28>>2];J[a>>2]=J[e+24>>2];J[a+4>>2]=c;d=d+1|0;f=f-1|0;if(d>>>0>>0)continue;break}}d=J[b+56>>2];a=J[d+12>>2];J[b+24>>2]=a;d=J[d+16>>2];J[b+32>>2]=d;c=a+d|0;J[b+28>>2]=c;if(!(!g|n>>>0>=q>>>0)){f=0;f:{if(a>>>0>g>>>0){d=0;a=0;break f}d=0;a=0;if(c>>>0<=g>>>0)break f;a=c-g|0;d=K[g+2|0]|K[g+3|0]<<8;d=(d<<8|d>>>8)&65535;d=a>>>0>>0?a:d;f=g+d|0;a=g}J[b+32>>2]=d;J[b+24>>2]=a;J[b+28>>2]=f}J[195395]=0;m=ca(790,g|0,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b; -a=J[b+56>>2];d=J[a+12>>2];J[b+24>>2]=d;a=J[a+16>>2];J[b+32>>2]=a;J[b+28>>2]=a+d;g:{if(l)break g;h=J[b+16>>2];i=J[h+68>>2];if(i>>>0>=2){j=J[h+80>>2];f=i-1|0;d=0;while(1){c=j+P(f,20)|0;J[e+40>>2]=J[c+16>>2];a=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=a;a=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=a;a=j+P(d,20)|0;J[c+16>>2]=J[a+16>>2];l=J[a+12>>2];J[c+8>>2]=J[a+8>>2];J[c+12>>2]=l;l=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=l;J[a+16>>2]=J[e+40>>2];c=J[e+36>>2];J[a+8>>2]=J[e+32>>2];J[a+12>>2]=c;c=J[e+28>>2];J[a>> -2]=J[e+24>>2];J[a+4>>2]=c;d=d+1|0;f=f-1|0;if(d>>>0>>0)continue;break}}if(!K[h+63|0])break g;a=J[h+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2)break g;h=J[h+88>>2];f=a-1|0;d=0;while(1){c=h+P(f,20)|0;J[e+40>>2]=J[c+16>>2];a=J[c+12>>2];J[e+32>>2]=J[c+8>>2];J[e+36>>2]=a;a=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=a;a=h+P(d,20)|0;J[c+16>>2]=J[a+16>>2];i=J[a+12>>2];J[c+8>>2]=J[a+8>>2];J[c+12>>2]=i;i=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=i;J[a+16>>2]=J[e+40>>2];c=J[e+36>>2];J[a+8>>2]=J[e+32>>2];J[a+12>>2]=c;c=J[e+ -28>>2];J[a>>2]=J[e+24>>2];J[a+4>>2]=c;d=d+1|0;f=f-1|0;if(d>>>0>>0)continue;break}}o=m|o;a=J[b+8>>2];d=J[b+16>>2];J[e>>2]=J[b+84>>2];nc(d,a,106739,e)}a=K[g+2|0]|K[g+3|0]<<8;f=J[b+84>>2]+1|0;J[b+84>>2]=f;g=((a<<8|a>>>8)&65535)+g|0;n=n+1|0;if((p|0)!=(n|0))continue;break}}xb=e+48|0;return o&1}a=Z()|0;g=J[b+56>>2];d=J[g+12>>2];J[b+24>>2]=d;g=J[g+16>>2];J[b+32>>2]=g;J[b+28>>2]=d+g;ba(a|0);B()}function Tja(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;J[a>>2]=0;i=xb-32|0;xb=i;J[a>>2]=0;h=i+ -16|0;J[h+12>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[h>>2]=428736;J[195395]=0;c=aa(1089,h|0,b|0,0)|0;e=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((e|0)!=1){if(!c)break c;J[195395]=0;c=_(1109,4096)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;J[195395]=0;J[i+12>>2]=0;e=ha(1110,h|0,c|0,4096,i+12|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break b;if(!e){Kb(c);break c}J[195395]=0;ea(1103,h|0);e=J[195395];J[195395]=0;if((e|0)==1)break b;e=J[i+12>>2];if(rF(a,c,e)){J[a>>2]=1;break f}if(J[a>>2])break f;if(e>>> -0>=4){f=2;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==944130375)break e;if(e>>>0<=5){d=K[c|0];break h}if(!cd(c,227935,6))break e;if(!cd(c,227928,6))break e;d=K[c|0];if(e>>>0<16)break h;g=K[c+2|0];j=K[c+1|0];i:{if((d|0)!=137|(j|0)!=80|((g|0)!=78|K[c+3|0]!=71))break i;if(K[c+4|0]!=13|K[c+5|0]!=10|(K[c+6|0]!=26|K[c+7|0]!=10))break i;if(K[c+8|0]|K[c+9|0]|(K[c+10|0]|K[c+11|0]!=13))break i;if(K[c+12|0]!=73|K[c+13|0]!=72|K[c+14|0]!=68)break i;f=4;if(K[c+15|0]==82)break e}if(e>>>0<17)break h;j:{k:switch(j| -0){case 1:switch(g-1|0){case 0:case 8:break j;default:break h}case 0:break k;default:break h}if(!(1<>>0>11)break h}if(K[c+16|0]-8&231)break h;f=7;break e}g=1;if((e|0)!=3)break f;d=K[c|0];break g}break b}if((d|0)!=10)break g;if(K[c+1|0]>5){d=10;break g}f=8;g=K[c+3|0]-1&255;if(g>>>0>=8){d=10;break g}d=10;if(139>>>g&1)break e}g=1;if((d|0)!=255|K[c+1|0]!=216)break f;f=3;if(K[c+2|0]==255)break e}f=21;d=0;l:{if(J[a>>2])break l;m:{if(K[c|0]!=1|e>>>0<44|(K[c+1|0]|K[c+2|0]))break m;if(K[c+3|0]| -K[c+40|0]!=32|(K[c+41|0]!=69|K[c+42|0]!=77))break m;d=1;if(K[c+43|0]==70)break l}d=0}if(d)break e;f=10;d=0;n:{if(J[a>>2])break n;d=K[c|0];o:{if(!((d|0)!=215|e>>>0<6)){if(K[c+1|0]!=205|K[c+2|0]!=198|(K[c+4|0]|K[c+3|0]!=154))break o;if(K[c+5|0])break o;d=1;break n}if(K[c+1|0]|(d|0)!=1|(K[c+3|0]|K[c+2|0]!=9))break o;if(K[c+4|0])break o;d=1;if(K[c+5|0]==3)break n}d=0}if(d)break e;f=6;d=0;p:{if(J[a>>2])break p;q:{r:{s:{d=K[c|0];if(!((d|0)!=73|e>>>0<4)){if(K[c+1|0]!=73|K[c+2|0]!=42)break s;if(!K[c+3|0])break r; -break s}t:switch(d-73|0){case 0:break s;case 4:break t;default:break q}if(K[c+2|0]|K[c+1|0]!=77)break q;d=1;if(K[c+3|0]==42)break p;break q}if(K[c+3|0]|(K[c+1|0]!=73|K[c+2|0]!=42))break q}d=1;break p}d=0}if(d)break e;f=5;d=0;u:{if(J[a>>2]|e>>>0<16|(K[c|0]|K[c+1|0]))break u;j=J[c+18>>2];if(j>>>0>>0){d=1;k=J[(c+j|0)+4>>2];j=K[c+6|0];if((k|0)==((j?j:256)|0))break u}d=0}if(d)break e;f=22;if(qF(a,c,e))break e;f=20;d=0;v:{if(J[a>>2])break v;w:{if(K[c|0]!=56|e>>>0<12|(K[c+1|0]!=66|K[c+2|0]!=80))break w; -if(K[c+6|0]|K[c+3|0]!=83|(K[c+7|0]|K[c+8|0]!=24))break w;if(K[c+9|0]|K[c+10|0])break w;d=1;if(K[c+11|0]==24)break v}d=0}if(d)break e;f=15;d=0;x:{if(J[a>>2])break x;y:{if(K[c|0]!=89|e>>>0<16|(K[c+1|0]!=166|K[c+2|0]!=106))break y;if(K[c+5|0]|(K[c+4|0]|K[c+3|0]!=149))break y;d=1;if(K[c+15|0]==24)break x}d=0}if(d)break e;f=11;if(!(!g|e>>>0<52|K[c|0]!=255|(K[c+1|0]!=79|K[c+2|0]!=255)))if(K[c+3|0]==81)break e;if(pF(a,c,e))break e;if(oF(a,c,e))break e;f=0;if(xs(a,c,e))break e;d=0;z:{if(J[a>>2]|e>>>0<6|(K[c| -0]!=86|K[c+1|0]!=67))break z;if(K[c+2|0]!=76|K[c+3|0]!=77|(K[c+4|0]!=84|K[c+5|0]!=70))break z;if(K[c+11|0]|(K[c+9|0]|K[c+10|0]))break z;d=1}g=0;A:{if(J[a>>2])break A;B:{if(e>>>0<10)break B;C:switch(K[c|0]-67|0){case 3:if(K[c+9|0]|(K[c+1|0]!=87|K[c+2|0]!=83))break B;g=1;break A;case 0:break C;default:break B}if(K[c+1|0]!=87|K[c+2|0]!=83|K[c+8|0]!=120)break B;g=1;if(K[c+9|0]==156)break A}g=0}if(g|d)break e;J[195395]=0;b=ca(1111,i|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=24;if(b)break e; -f=25;b=0;e=J[i+12>>2];D:{if(e>>>0<12)break D;b=1;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==1413695824)break D;if(!cd(c+10|0,234168,6))break D;b=0;if(e>>>0<528)break D;b=!cd(c+522|0,234168,6)}if(!b)break d}J[a>>2]=f}Kb(c)}Me(h);xb=i+32|0;break a}a=Z()|0;Me(h);ba(a|0);B()}return a|0}function P2(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;c=xb-176|0;xb=c;e=J[b+12>>2];k=J[b+4>>2];d=J[b+8>>2];b=J[b>>2];J[195395]=0;f=+(d|0);g=+(b|0);b=f>2]=b;J[c+64>>2]=2;J[c+68>>2]=-2147483644;d=0;J[b+8>>2]=0;J[b>>2]=99;J[b+4>>2]=120;J[c+80>>2]=J[c+56>>2];J[c+56>>2]=0;b=J[c+52>>2];J[c+72>>2]=J[c+48>>2];J[c+76>>2]=b;J[c+48>>2]=0;J[c+52>>2]=0;J[195395]=0;f=+(e|0);g=+(k|0);b=f>2]=2;J[c+92>>2]=-2147483644;J[c+84>>2]=e;d=0;J[e+8>>2]=0;J[e>>2]=99;J[e+4>>2]=121;J[c+104>>2]=J[c+40>>2];b=J[c+36>>2];J[c+96>>2]=J[c+32>>2];J[c+100>>2]=b;J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[195395]=0;da(1863,c+16|0,+((i-h)*.5),-1);e=J[195395];J[195395]=0;b=c+108|0;if((e|0)==1)break n;J[195395]=0;e=_(1078,16)|0;d=J[195395];J[195395]=0;if((d|0)==1)break m;J[c+112>>2]=2;J[c+116>>2]=-2147483644;J[c+108>>2]=e;d=0;J[e+8>>2]=0;J[e>> -2]=114;J[e+4>>2]=120;J[c+128>>2]=J[c+24>>2];b=J[c+20>>2];J[c+120>>2]=J[c+16>>2];J[c+124>>2]=b;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[195395]=0;da(1863,c|0,+((f-j)*.5),-1);b=J[195395];J[195395]=0;if((b|0)==1)break l;J[195395]=0;b=_(1078,16)|0;d=J[195395];J[195395]=0;if((d|0)==1)break k;J[c+136>>2]=2;J[c+140>>2]=-2147483644;J[c+132>>2]=b;J[b+8>>2]=0;J[b>>2]=114;J[b+4>>2]=121;J[c+152>>2]=J[c+8>>2];b=J[c+4>>2];J[c+144>>2]=J[c>>2];J[c+148>>2]=b;J[c+8>>2]=0;J[c+164>>2]=0;J[c+156>>2]=0;J[c+160>>2]=0;J[c>> -2]=0;J[c+4>>2]=0;J[195395]=0;H[c+172|0]=0;d=c+156|0;J[c+168>>2]=d;b=_(1078,96)|0;e=J[195395];J[195395]=0;r:{s:{if((e|0)!=1){J[c+160>>2]=b;J[c+156>>2]=b;J[195395]=0;J[c+164>>2]=b+96;d=ha(1957,c+164|0,c+60|0,d|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break r;a=Z()|0;J[c+160>>2]=b;break s}a=Z()|0}Kc(c+168|0);Vb(c+132|0);Vb(c+108|0);Vb(c+84|0);Vb(c+60|0);d=1;break j}J[c+160>>2]=d;if(H[c+155|0]<0)Kb(J[c+144>>2]);if(H[c+143|0]<0)Kb(J[c+132>>2]);if(H[c+131|0]<0)Kb(J[c+120>>2]);if(H[c+119|0]<0)Kb(J[c+ -108>>2]);if(H[c+107|0]<0)Kb(J[c+96>>2]);if(H[c+95|0]<0)Kb(J[c+84>>2]);if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+71|0]<0)Kb(J[c+60>>2]);if(H[c+11|0]<0)Kb(J[c>>2]);if(H[c+27|0]<0)Kb(J[c+16>>2]);if(H[c+43|0]<0)Kb(J[c+32>>2]);if(H[c+59|0]<0)Kb(J[c+48>>2]);J[195395]=0;b=a+8|0;d=c+156|0;$(1963,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,b|0,d|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,d|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0; -ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[c+60>>2]=a;J[c+64>>2]=7;J[c+68>>2]=-2147483640;J[a+24>>2]=J[99984];e=J[99983];J[a+16>>2]=J[99982];J[a+20>>2]=e;e=J[99981];J[a+8>>2]=J[99980];J[a+12>>2]=e;e=J[99979];J[a>>2]=J[99978];J[a+4>>2]=e;J[a+28>>2]=0;J[195395]=0;J[c+48>>2]=0;H[c+59|0]=0;ia(1961,b|0,c+60|0,d|0,c+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+71|0]<0)Kb(J[c+ -60>>2]);d=J[c+156>>2];if(d){b=J[c+160>>2];a=d;if((b|0)!=(a|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);a=b-24|0;if(H[b-13|0]<0)Kb(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}a=J[c+156>>2]}J[c+160>>2]=d;Kb(a)}xb=c+176|0;return}ba(Z()|0);B()}a=Z()|0;d=0;b=c+60|0;break f}a=Z()|0;break f}a=Z()|0;d=0;break g}a=Z()|0;break g}a=Z()|0;d=0;break h}a=Z()|0;break i}a=Z()|0;d=0}if(H[c+11|0]>=0)break i;Kb(J[c>>2])}b=c+132|0}if(H[c+27|0]>=0)break g;Kb(J[c+16>>2])}if(H[c+43|0]>=0)break f;Kb(J[c+32>>2])}if(H[c+59| -0]<0)Kb(J[c+48>>2]);if((c+60|0)==(b|0)|d)break a;while(1){b=Vb(b-24|0);if((b|0)!=(c+60|0))continue;break}break a}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+71|0]>=0)break b;Kb(J[c+60>>2])}Hc(c+156|0)}ba(a|0);B()}function EN(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;l=xb-16|0;xb=l;h=J[a+16>>2];d=K[h+6|0]|K[h+7|0]<<8|(K[h+8|0]<<16|K[h+9|0]<<24);e=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a:{if(!e)break a;i=h+10|0;b:{while(1){d= -e+g>>>1|0;f=i+P(d,11)|0;j=K[f+1|0]<<8|K[f|0]<<16|K[f+2|0];c:{if(j>>>0>c>>>0){e=d;break c}if(c>>>0<=j>>>0)break b;g=d+1|0}if(e>>>0>g>>>0)continue;break}g=0;break a}g=0;c=K[f+3|0]|K[f+4|0]<<8|(K[f+5|0]<<16|K[f+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[f+7|0]|K[f+8|0]<<8|(K[f+9|0]<<16|K[f+10|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!(c|d))break a;d:{if(!c){c=d+h|0;d=K[c+3|0];g=K[c+2|0];f=K[c+1|0];i=K[c|0];e=J[a+28>>2];J[l+4>>2]=0;i=d|(f<<16|i<<24|g<<8);f=i+1|0;e:{if(f>>>0<= -e>>>0){g=J[a+32>>2];break e}J[a+36>>2]=b;g=Tb(b,4,e,f,J[a+32>>2],l+4|0);J[a+32>>2]=g;if(J[l+4>>2])break d;J[a+28>>2]=f}f:{if(!i)break f;a=d&1;d=c+4|0;e=0;if((i|0)!=1){b=i-a|0;f=0;while(1){c=e<<2;J[c+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(c|4)+g>>2]=K[d+7|0]|(K[d+6|0]<<8|K[d+5|0]<<16);e=e+2|0;d=d+10|0;f=f+2|0;if((b|0)!=(f|0))continue;break}}if(!a)break f;J[(e<<2)+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16)}J[(i<<2)+g>>2]=0;break a}if(!d){g=Mv(a,c+h|0,b);break a}j=d+h|0;m=K[j+3|0];i=m|(K[j+1|0]<<16| -K[j|0]<<24|K[j+2|0]<<8);h=c+h|0;c=K[h+3|0];g:{h:{n=c|(K[h+1|0]<<16|K[h|0]<<24|K[h+2|0]<<8);i:{if(n){k=c&3;g=h+7|0;f=0;j:{if(n-1>>>0<3){e=0;d=g;break j}o=n-k|0;e=0;c=0;while(1){e=(K[g+12|0]+(K[g+8|0]+(K[g+4|0]+(K[g|0]+e|0)|0)|0)|0)+4|0;d=g+16|0;g=d;c=c+4|0;if((o|0)!=(c|0))continue;break}}if(k)while(1){e=(K[d|0]+e|0)+1|0;d=d+4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}if(!i)break i;if(e)break h;break g}if(i)break g}g=Mv(a,h,b);break a}c=J[a+28>>2];J[l+12>>2]=0;d=(e+i|0)+1|0;k:{if(d>>>0<=c>>>0){g=J[a+ -32>>2];break k}J[a+36>>2]=b;g=Tb(b,4,c,d,J[a+32>>2],l+12|0);J[a+32>>2]=g;if(J[l+12>>2])break d;J[a+28>>2]=d}o=K[j+6|0]|(K[j+5|0]<<8|K[j+4|0]<<16);f=K[h+6|0]|(K[h+5|0]<<8|K[h+4|0]<<16);a=j+9|0;b=h+8|0;j=K[h+7|0];e=0;k=1;m=1;while(1){l:{if(f+j>>>0>>0){d=j+1|0;q=d&3;c=0;m:{if(j>>>0<3){d=0;break m}r=d&-4;d=0;h=0;while(1){p=(e<<2)+g|0;J[p>>2]=d+f;J[p+4>>2]=(d|1)+f;J[p+8>>2]=(d|2)+f;J[p+12>>2]=(d|3)+f;d=d+4|0;e=e+4|0;h=h+4|0;if((r|0)!=(h|0))continue;break}}if(q)while(1){J[(e<<2)+g>>2]=d+f;d=d+1|0;e= -e+1|0;c=c+1|0;if((q|0)!=(c|0))continue;break}k=k+1|0;if(n>>>0>>0)break l;f=K[b+2|0]|(K[b+1|0]<<8|K[b|0]<<16);j=K[b+3|0];b=b+4|0;continue}if(f>>>0>o>>>0){J[(e<<2)+g>>2]=o;e=e+1|0}m=m+1|0;if(i>>>0>>0)break l;o=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);a=a+5|0;continue}break}n:{if(i>>>0>=m>>>0){J[(e<<2)+g>>2]=o;e=e+1|0;if(i>>>0<=m>>>0)break n;while(1){J[(e<<2)+g>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);e=e+1|0;a=a+5|0;m=m+1|0;if(i>>>0>m>>>0)continue;break}break n}if(k>>>0>n>>>0)break n;a=j+1|0;i=a&3;c=0; -o:{if(j>>>0<3){d=0;break o}j=a&-4;d=0;h=0;while(1){a=(e<<2)+g|0;J[a>>2]=d+f;J[a+4>>2]=(d|1)+f;J[a+8>>2]=(d|2)+f;J[a+12>>2]=(d|3)+f;d=d+4|0;e=e+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}if(i)while(1){J[(e<<2)+g>>2]=d+f;d=d+1|0;e=e+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}if(k>>>0>=n>>>0)break n;while(1){a=K[b+2|0]|(K[b+1|0]<<8|K[b|0]<<16);d=K[b+3|0];f=d+1|0;i=f&3;c=0;p:{if(d>>>0<3){d=0;break p}j=f&508;d=0;h=0;while(1){f=(e<<2)+g|0;J[f>>2]=a+d;J[f+4>>2]=a+(d|1);J[f+8>>2]=a+(d|2);J[f+12>>2]=a+(d| -3);d=d+4|0;e=e+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}if(i)while(1){J[(e<<2)+g>>2]=a+d;d=d+1|0;e=e+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}b=b+4|0;k=k+1|0;if(n>>>0>k>>>0)continue;break}}J[(e<<2)+g>>2]=0;break a}c=J[a+28>>2];J[l+8>>2]=0;d=i+1|0;q:{if(d>>>0<=c>>>0){g=J[a+32>>2];break q}J[a+36>>2]=b;g=Tb(b,4,c,d,J[a+32>>2],l+8|0);J[a+32>>2]=g;if(J[l+8>>2])break d;J[a+28>>2]=d}a=m&1;d=j+4|0;e=0;if((i|0)!=1){b=i-a|0;f=0;while(1){c=e<<2;J[c+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(c|4)+g>>2]= -K[d+7|0]|(K[d+6|0]<<8|K[d+5|0]<<16);e=e+2|0;d=d+10|0;f=f+2|0;if((b|0)!=(f|0))continue;break}}if(a)J[(e<<2)+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(i<<2)+g>>2]=0;break a}g=0}xb=l+16|0;return g|0}function zH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=0,k=0,l=0,m=0,n=0,o=0,p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=0;u=J[b+12>>2];o=J[b+8>>2];d=J[b+28>>2];e=J[d+12>>2];i=Q(0);a:{if(!e)break a;g=J[d>>2];f=c;h=J[d+4>>2];if(h){f=sc(h,f);e=J[d+12>>2]}j=f>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;i=Q(0);if(j>>>0>=((h<<8|h>>> -8)&65535)>>>0)break a;h=J[d+8>>2];d=g+(j<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;j=f&65535;f=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(f)f=g+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;i=pc(d,j,h,e,f,0)}p=i;j=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);d=J[b+28>>2];e=J[d+12>>2];b:{if(!e)break b;g=J[d>>2];f=J[d+4>>2];c:{if(f){f=sc(f,(c|0)==-1?-1:c+1|0);e=J[d+12>>2];break c}f=c+1|0}k=f>>> -16|0;h=K[g+6|0]|K[g+7|0]<<8;if(k>>>0>=((h<<8|h>>>8)&65535)>>>0)break b;h=J[d+8>>2];d=g+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;k=f&65535;f=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(f)f=g+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;q=pc(d,k,h,e,f,0)}k=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);d=J[b+28>>2];f=J[d+12>>2];i=Q(0);d:{if(!f)break d;g=J[d>>2];e=J[d+4>>2];e:{if(e){e=sc(e, -(c|0)==-1?-1:c+2|0);f=J[d+12>>2];break e}e=c+2|0}l=e>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;i=Q(0);if(l>>>0>=((h<<8|h>>>8)&65535)>>>0)break d;h=J[d+8>>2];d=g+(l<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;l=e&65535;e=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;i=pc(d,l,h,f,e,0)}r=i;l=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);d=J[b+28>>2];e=J[d+12>> -2];f:{if(!e)break f;g=J[d>>2];f=J[d+4>>2];g:{if(f){f=sc(f,(c|0)==-1?-1:c+3|0);e=J[d+12>>2];break g}f=c+3|0}m=f>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;if(m>>>0>=((h<<8|h>>>8)&65535)>>>0)break f;h=J[d+8>>2];d=g+(m<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;m=f&65535;f=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(f)f=g+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;s=pc(d,m,h,e,f,0)}m=K[a+12|0]|K[a+13|0]<<8|(K[a+ -14|0]<<16|K[a+15|0]<<24);d=J[b+28>>2];f=J[d+12>>2];i=Q(0);h:{if(!f)break h;g=J[d>>2];e=J[d+4>>2];i:{if(e){e=sc(e,(c|0)==-1?-1:c+4|0);f=J[d+12>>2];break i}e=c+4|0}n=e>>>16|0;h=K[g+6|0]|K[g+7|0]<<8;i=Q(0);if(n>>>0>=((h<<8|h>>>8)&65535)>>>0)break h;h=J[d+8>>2];d=g+(n<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;n=e&65535;e=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))| -0;else e=169776;i=pc(d,n,h,f,e,0)}h=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);b=J[b+28>>2];f=J[b+12>>2];j:{if(!f)break j;d=J[b>>2];e=J[b+4>>2];k:{if(e){e=sc(e,(c|0)==-1?-1:c+5|0);f=J[b+12>>2];break k}e=c+5|0}g=e>>>16|0;c=K[d+6|0]|K[d+7|0]<<8;if(g>>>0>=((c<<8|c>>>8)&65535)>>>0)break j;c=J[b+8>>2];b=d+(g<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)b=d+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b=169776;g=e&65535;e=K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24); -if(e)e=d+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;t=pc(b,g,c,f,e,0)}b=J[o+12>>2];p=Q(Q(p+Q(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24)))*Q(1.52587890625E-5));q=Q(Q(q+Q(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24)))*Q(1.52587890625E-5));r=Q(Q(r+Q(l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24)))*Q(1.52587890625E-5));s=Q(Q(s+Q(m<<24|(m&65280)<<8|(m>>>8&65280|m>>>24)))*Q(1.52587890625E-5));i=Q(Q(i+Q(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24)))*Q(1.52587890625E-5));a=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16| -K[a+23|0]<<24);t=Q(Q(t+Q(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)))*Q(1.52587890625E-5));a=J[o+68>>2];if(a)a=J[a>>2];else a=0;Ab[b|0](o,u,p,q,r,s,i,t,a)}function Mda(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=xb-16|0;xb=h;j=Qb(40);J[j>>2]=0;J[195395]=0;J[h+8>>2]=0;i=aa(1554,1,0,0)|0;e=J[195395];J[195395]=0;a:{b:{if((e|0)==1)break b;k=4;f=-1;c:{d:{if(!e)break d;g=J[195396];if(!g)break d;f=Sb(J[e>>2],j,4);if(!f)break c;yb=g}e=yb;e:{f:{if((f|0)==1)break f;J[h+12>>2]=i;e=J[h+12>> -2];i=0;if(!e)break e;J[e+700>>2]=1E6;J[J[h+12>>2]+704>>2]=1E6;J[J[h+12>>2]+708>>2]=0;J[J[h+12>>2]+712>>2]=0;J[195395]=0;i=J[h+12>>2];if(i)J[i+156>>2]=1180;else i=0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;g:{if(!e)break g;g=J[195396];if(!g)break g;f=Sb(J[e>>2],j,4);if(!f)break c;yb=g}e=yb;if((f|0)==1)break f;j=wd(i,1,j,4);k=yb;e=0}while(1){if(e){J[195395]=0;ja(1556);e=J[195395];J[195395]=0;if((e|0)==1)break b;h:{if(!e)break h;g=J[195396];if(!g)break h;if(!Sb(J[e>>2],j,k))break c;yb=g}e=yb; -continue}J[195395]=0;i=J[h+12>>2];if(i){J[i+676>>2]=0;J[i+672>>2]=0;J[i+668>>2]=0}e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;i:{if(!e)break i;g=J[195396];if(!g)break i;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;J[195395]=0;i=J[h+12>>2];if(i){J[i+164>>2]=d;J[i+160>>2]=c;J[i+168>>2]=b}e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;j:{if(!e)break j;g=J[195396];if(!g)break j;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;J[195395]=0;i=ca(1558,J[h+12>>2],a|0)| -0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;k:{if(!e)break k;g=J[195396];if(!g)break k;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;if(!i)J[h+8>>2]=1;l:{if(J[h+8>>2])break l;J[J[h+12>>2]+272>>2]=8192;i=J[h+12>>2];e=J[J[h+12>>2]+272>>2];J[195395]=0;i=ca(1559,i|0,e|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;m:{if(!e)break m;g=J[195396];if(!g)break m;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;J[J[h+12>>2]+268>>2]=i;if(J[J[h+12>>2]+268>>2])break l; -J[h+8>>2]=1}J[J[h+12>>2]+244>>2]=1560;J[J[h+12>>2]+248>>2]=1561;J[J[h+12>>2]+252>>2]=J[h+12>>2];n:{if(J[h+8>>2])break n;J[195395]=0;i=aa(1562,J[h+12>>2]+212|0,251807,56)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;o:{if(!e)break o;g=J[195396];if(!g)break o;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;p:switch(i+6|0){case 2:J[195395]=0;$(1563,J[h+12>>2],251851);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;q:{if(!e)break q;g=J[195396];if(!g)break q;f=Sb(J[e>>2],j,k);if(!f)break c; -yb=g}e=yb;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 4:J[195395]=0;$(1563,J[h+12>>2],252113);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;r:{if(!e)break r;g=J[195396];if(!g)break r;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 0:J[195395]=0;$(1563,J[h+12>>2],252350);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;s:{if(!e)break s;g=J[195396];if(!g)break s;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 6:break n; -default:break p}J[195395]=0;$(1563,J[h+12>>2],252592);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;t:{if(!e)break t;g=J[195396];if(!g)break t;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;J[h+8>>2]=1}i=J[h+12>>2];if(J[h+8>>2]){e=J[i+268>>2];J[195395]=0;$(1564,i|0,e|0);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;u:{if(!e)break u;g=J[195396];if(!g)break u;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;J[J[h+12>>2]+268>>2]=0;J[195395]=0;fa(1565,J[h+12>>2],0, -0);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;v:{if(!e)break v;g=J[195396];if(!g)break v;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;i=0;break e}J[J[h+12>>2]+224>>2]=J[i+268>>2];J[J[h+12>>2]+228>>2]=J[J[h+12>>2]+272>>2];J[195395]=0;fa(1202,J[h+12>>2],0,0);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;w:{if(!e)break w;g=J[195396];if(!g)break w;f=Sb(J[e>>2],j,k);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;break}i=J[h+12>>2]}Kb(j);xb=h+16|0;break a}Kb(j);gd(e,g);B()}a=Z()| -0;Kb(j);ba(a|0);B()}return i|0}function aea(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;Nb(a+128|0,0,128);d=J[b>>2]+c|0;f=K[d+4|0];j=K[d+3|0];e=f+j|0;g=K[d+7|0];i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+16>>2]=k-q<<3;J[a>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+512|0;J[a+24>>2]=d+P(h,-15137)>>10;J[a+8>>2]=d+P(e,6270)>>10;d=j-f|0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k| -0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0;J[a+28>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995);J[a+20>>2]=i+(h+g|0)>>10;J[a+12>>2]=d+(g+P(e,25172)|0)>>10;J[a+4>>2]=i+(j+P(f,12299)|0)>>10;d=J[b+4>>2]+c|0;f=K[d+4|0];j=K[d+3|0];e=f+j|0;g=K[d+7|0];i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+48>>2]=k-q<<3;J[a+32>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+512|0;J[a+56>>2]=d+P(h,-15137)>>10;J[a+40>>2]=d+P(e,6270)>>10;d=j-f| -0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k|0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0;J[a+60>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995);J[a+52>>2]=i+(h+g|0)>>10;J[a+44>>2]=d+(g+P(e,25172)|0)>>10;J[a+36>>2]=i+(j+P(f,12299)|0)>>10;d=J[b+8>>2]+c|0;f=K[d+4|0];j=K[d+3|0];e=f+j|0;g=K[d+7|0];i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+80>>2]=k-q<<3;J[a+64>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+ -512|0;J[a+88>>2]=d+P(h,-15137)>>10;J[a+72>>2]=d+P(e,6270)>>10;d=j-f|0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k|0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0;J[a+92>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995);J[a+84>>2]=i+(h+g|0)>>10;J[a+76>>2]=d+(g+P(e,25172)|0)>>10;J[a+68>>2]=i+(j+P(f,12299)|0)>>10;b=J[b+12>>2]+c|0;c=K[b+4|0];d=K[b+3|0];f=c+d|0;j=K[b+7|0];e=K[b|0];g=j+e|0;i=f+g|0;h=K[b+5|0];k=K[b+2|0];l=h+k|0;m=K[b+6|0];n=K[b+1|0];b=m+n|0;o=l+b|0;J[a+112>> -2]=i-o<<3;f=g-f|0;g=b-l|0;b=P(f+g|0,4433)+512|0;J[a+120>>2]=b+P(g,-15137)>>10;b=b+P(f,6270)>>10;J[a+104>>2]=b;c=d-c|0;d=e-j|0;f=P(c+d|0,-7373);j=n-m|0;l=j+c|0;e=k-h|0;h=e+d|0;g=P(l+h|0,9633)+512|0;k=g+P(l,-16069)|0;J[a+124>>2]=k+(f+P(c,2446)|0)>>10;g=g+P(h,-3196)|0;c=P(e,16819);e=P(e+j|0,-20995);J[a+116>>2]=g+(c+e|0)>>10;c=J[a>>2];i=(i+o<<3)+-8192|0;h=(c+i|0)+2|0;l=J[a+64>>2];m=J[a+32>>2];n=l+m|0;J[a+64>>2]=h-n>>2;J[a>>2]=h+n>>2;h=m-l|0;i=c-i|0;c=P(h+i|0,4433)+16384|0;J[a+96>>2]=c+P(h,-15137)>>15; -J[a+32>>2]=c+P(i,6270)>>15;c=J[a+4>>2];d=g+(f+P(d,12299)|0)>>10;f=(c+d|0)+2|0;g=J[a+68>>2];i=J[a+36>>2];h=g+i|0;J[a+68>>2]=f-h>>2;J[a+4>>2]=f+h>>2;f=i-g|0;d=c-d|0;c=P(f+d|0,4433)+16384|0;J[a+100>>2]=c+P(f,-15137)>>15;J[a+36>>2]=c+P(d,6270)>>15;c=J[a+8>>2];d=(c+b|0)+2|0;f=J[a+72>>2];g=J[a+40>>2];i=f+g|0;J[a+72>>2]=d-i>>2;J[a+8>>2]=d+i>>2;d=g-f|0;c=c-b|0;b=P(d+c|0,4433)+16384|0;J[a+104>>2]=b+P(d,-15137)>>15;J[a+40>>2]=b+P(c,6270)>>15;b=J[a+12>>2];c=k+(e+P(j,25172)|0)>>10;d=(b+c|0)+2|0;f=J[a+76>>2]; -j=J[a+44>>2];e=f+j|0;J[a+76>>2]=d-e>>2;J[a+12>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+108>>2]=b+P(d,-15137)>>15;J[a+44>>2]=b+P(c,6270)>>15;b=J[a+16>>2];c=J[a+112>>2];d=(b+c|0)+2|0;f=J[a+80>>2];j=J[a+48>>2];e=f+j|0;J[a+80>>2]=d-e>>2;J[a+16>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+112>>2]=b+P(d,-15137)>>15;J[a+48>>2]=b+P(c,6270)>>15;b=J[a+20>>2];c=J[a+116>>2];d=(b+c|0)+2|0;f=J[a+84>>2];j=J[a+52>>2];e=f+j|0;J[a+84>>2]=d-e>>2;J[a+20>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+ -16384|0;J[a+116>>2]=b+P(d,-15137)>>15;J[a+52>>2]=b+P(c,6270)>>15;b=J[a+24>>2];c=J[a+120>>2];d=(b+c|0)+2|0;f=J[a+88>>2];j=J[a+56>>2];e=f+j|0;J[a+88>>2]=d-e>>2;J[a+24>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+120>>2]=b+P(d,-15137)>>15;J[a+56>>2]=b+P(c,6270)>>15;b=J[a+28>>2];c=J[a+124>>2];d=(b+c|0)+2|0;f=J[a+92>>2];j=J[a+60>>2];e=f+j|0;J[a+92>>2]=d-e>>2;J[a+28>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+124>>2]=b+P(d,-15137)>>15;J[a+60>>2]=b+P(c,6270)>>15}function Nq(a,b){a=a| -0;b=b|0;var c=0,d=0,e=0;c=xb-224|0;xb=c;d=J[a+72>>2];d=Ab[J[J[d>>2]+72>>2]](d,2)|0;O[c+216>>3]=O[b>>3];O[c+208>>3]=O[b+8>>3];O[c+200>>3]=O[b+16>>3];O[c+192>>3]=O[b+24>>3];Yd(d,c+216|0,c+208|0);Yd(d,c+200|0,c+192|0);b=J[a+56>>2]+1|0;J[a+56>>2]=b;d=c+160|0;ff(d,+(b>>>0),0);J[195395]=0;b=aa(1954,d|0,0,421928)|0;d=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{if((d|0)!=1){J[c+184>>2]=J[b+8>>2];d=J[b+4>>2];J[c+176>>2]=J[b>>2];J[c+180>>2]=d;J[b>>2]=0;J[b+ -4>>2]=0;J[b+8>>2]=0;if(H[c+171|0]<0)Kb(J[c+160>>2]);J[195395]=0;b=c+36|0;da(1863,b|0,+O[c+216>>3],0);d=J[195395];J[195395]=0;if((d|0)==1)break y;J[195395]=0;b=aa(1954,b|0,0,421988)|0;d=J[195395];J[195395]=0;if((d|0)==1)break x;J[c+56>>2]=J[b+8>>2];d=J[b+4>>2];J[c+48>>2]=J[b>>2];J[c+52>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,c+48|0,420608)|0;d=J[195395];J[195395]=0;if((d|0)==1)break w;J[c+72>>2]=J[b+8>>2];d=J[b+4>>2];J[c+64>>2]=J[b>>2];J[c+68>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>> -2]=0;J[195395]=0;b=c+24|0;da(1863,b|0,+O[c+208>>3],0);d=J[195395];J[195395]=0;if((d|0)==1)break v;J[195395]=0;e=b;b=K[c+35|0];d=b<<24>>24<0;b=aa(1864,c- -64|0,(d?J[c+24>>2]:e)|0,(d?J[c+28>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break u;J[c+88>>2]=J[b+8>>2];d=J[b+4>>2];J[c+80>>2]=J[b>>2];J[c+84>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,c+80|0,422028)|0;d=J[195395];J[195395]=0;if((d|0)==1)break t;J[c+104>>2]=J[b+8>>2];d=J[b+4>>2];J[c+96>>2]=J[b>>2];J[c+100>>2]=d;J[b>>2]= -0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=c+12|0;da(1863,b|0,+(O[c+200>>3]-O[c+216>>3]),0);d=J[195395];J[195395]=0;if((d|0)==1)break s;J[195395]=0;e=b;b=K[c+23|0];d=b<<24>>24<0;b=aa(1864,c+96|0,(d?J[c+12>>2]:e)|0,(d?J[c+16>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break r;J[c+120>>2]=J[b+8>>2];d=J[b+4>>2];J[c+112>>2]=J[b>>2];J[c+116>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,c+112|0,420676)|0;d=J[195395];J[195395]=0;if((d|0)==1)break q;J[c+136>>2]=J[b+8>>2];d=J[b+4>>2];J[c+ -128>>2]=J[b>>2];J[c+132>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;da(1863,c|0,+(O[c+192>>3]-O[c+208>>3]),0);b=J[195395];J[195395]=0;if((b|0)==1)break p;J[195395]=0;b=K[c+11|0];d=b<<24>>24<0;b=aa(1864,c+128|0,(d?J[c>>2]:c)|0,(d?J[c+4>>2]:b)|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break o;J[c+152>>2]=J[b+8>>2];d=J[b+4>>2];J[c+144>>2]=J[b>>2];J[c+148>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;b=ca(1858,c+144|0,422068)|0;d=J[195395];J[195395]=0;if((d|0)==1)break n;J[c+168>>2]=J[b+ -8>>2];d=J[b+4>>2];J[c+160>>2]=J[b>>2];J[c+164>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[c+155|0]<0)Kb(J[c+144>>2]);if(H[c+11|0]<0)Kb(J[c>>2]);if(H[c+139|0]<0)Kb(J[c+128>>2]);if(H[c+123|0]<0)Kb(J[c+112>>2]);if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+107|0]<0)Kb(J[c+96>>2]);if(H[c+91|0]<0)Kb(J[c+80>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);if(H[c+75|0]<0)Kb(J[c+64>>2]);if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+47|0]<0)Kb(J[c+36>>2]);J[195395]=0;ia(3119,a+84|0,c+176|0,c+160|0,1);a=J[195395];J[195395]=0;if((a|0)==1)break c; -if(H[c+171|0]<0)Kb(J[c+160>>2]);if(H[c+187|0]<0)Kb(J[c+176>>2]);xb=c+224|0;return}b=Z()|0;if(H[c+171|0]>=0)break a;Kb(J[c+160>>2]);ba(b|0);B()}b=Z()|0;break b}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;break k}b=Z()|0;break l}b=Z()|0;break m}b=Z()|0;if(H[c+155|0]>=0)break m;Kb(J[c+144>>2])}if(H[c+11|0]>=0)break l;Kb(J[c>>2])}if(H[c+139|0]>=0)break k;Kb(J[c+128>>2])}if(H[c+123|0]>=0)break j;Kb(J[c+112>>2])}if(H[c+23|0]>=0)break i; -Kb(J[c+12>>2])}if(H[c+107|0]>=0)break h;Kb(J[c+96>>2])}if(H[c+91|0]>=0)break g;Kb(J[c+80>>2])}if(H[c+35|0]>=0)break f;Kb(J[c+24>>2])}if(H[c+75|0]>=0)break e;Kb(J[c+64>>2])}if(H[c+59|0]>=0)break d;Kb(J[c+48>>2])}if(H[c+47|0]>=0)break b;Kb(J[c+36>>2]);break b}b=Z()|0;if(H[c+171|0]>=0)break b;Kb(J[c+160>>2])}if(H[c+187|0]>=0)break a;Kb(J[c+176>>2])}ba(b|0);B()}function o2(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;d=xb-176|0;xb=d;f=O[c+24>>3];h=O[c+8>>3];g=O[c+16>>3];i=O[c>>3];J[195395]=0; -g=i+g;da(1863,d+48|0,+((i+g)*.5),-1);b=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((b|0)!=1){J[195395]=0;c=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break q;J[d+60>>2]=c;J[d+64>>2]=2;J[d+68>>2]=-2147483644;b=0;J[c+8>>2]=0;J[c>>2]=99;J[c+4>>2]=120;J[d+80>>2]=J[d+56>>2];J[d+56>>2]=0;c=J[d+52>>2];J[d+72>>2]=J[d+48>>2];J[d+76>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;J[195395]=0;f=h+f;da(1863,d+32|0,+((h+f)*.5),-1);e=J[195395];J[195395]=0;c=d+84|0;if((e|0)==1)break p;J[195395]= -0;e=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break o;J[d+88>>2]=2;J[d+92>>2]=-2147483644;J[d+84>>2]=e;b=0;J[e+8>>2]=0;J[e>>2]=99;J[e+4>>2]=121;J[d+104>>2]=J[d+40>>2];c=J[d+36>>2];J[d+96>>2]=J[d+32>>2];J[d+100>>2]=c;J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[195395]=0;da(1863,d+16|0,+((g-i)*.5),-1);e=J[195395];J[195395]=0;c=d+108|0;if((e|0)==1)break n;J[195395]=0;e=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;J[d+112>>2]=2;J[d+116>>2]=-2147483644;J[d+108>>2]=e;b=0;J[e+8>>2]=0;J[e>> -2]=114;J[e+4>>2]=120;J[d+128>>2]=J[d+24>>2];c=J[d+20>>2];J[d+120>>2]=J[d+16>>2];J[d+124>>2]=c;J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[195395]=0;da(1863,d|0,+((f-h)*.5),-1);c=J[195395];J[195395]=0;if((c|0)==1)break l;J[195395]=0;b=_(1078,16)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[d+136>>2]=2;J[d+140>>2]=-2147483644;J[d+132>>2]=b;J[b+8>>2]=0;J[b>>2]=114;J[b+4>>2]=121;J[d+152>>2]=J[d+8>>2];b=J[d+4>>2];J[d+144>>2]=J[d>>2];J[d+148>>2]=b;J[d+8>>2]=0;J[d+164>>2]=0;J[d+156>>2]=0;J[d+160>>2]=0;J[d>> -2]=0;J[d+4>>2]=0;J[195395]=0;H[d+172|0]=0;c=d+156|0;J[d+168>>2]=c;b=_(1078,96)|0;e=J[195395];J[195395]=0;r:{s:{if((e|0)!=1){J[d+160>>2]=b;J[d+156>>2]=b;J[195395]=0;J[d+164>>2]=b+96;c=ha(1957,d+164|0,d+60|0,c|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break r;a=Z()|0;J[d+160>>2]=b;break s}a=Z()|0}Kc(d+168|0);Vb(d+132|0);Vb(d+108|0);Vb(d+84|0);Vb(d+60|0);b=1;break j}J[d+160>>2]=c;if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+143|0]<0)Kb(J[d+132>>2]);if(H[d+131|0]<0)Kb(J[d+120>>2]);if(H[d+119|0]<0)Kb(J[d+ -108>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);J[195395]=0;b=a+8|0;c=d+156|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0; -ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[d+60>>2]=a;J[d+64>>2]=7;J[d+68>>2]=-2147483640;J[a+24>>2]=J[99984];e=J[99983];J[a+16>>2]=J[99982];J[a+20>>2]=e;e=J[99981];J[a+8>>2]=J[99980];J[a+12>>2]=e;e=J[99979];J[a>>2]=J[99978];J[a+4>>2]=e;J[a+28>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,b|0,d+60|0,c|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+71|0]<0)Kb(J[d+ -60>>2]);b=J[d+156>>2];if(b){a=b;c=J[d+160>>2];if((b|0)!=(c|0)){while(1){if(H[c-1|0]<0)Kb(J[c-12>>2]);a=c-24|0;if(H[c-13|0]<0)Kb(J[a>>2]);c=a;if((b|0)!=(c|0))continue;break}a=J[d+156>>2]}J[d+160>>2]=b;Kb(a)}xb=d+176|0;return}ba(Z()|0);B()}a=Z()|0;b=0;c=d+60|0;break f}a=Z()|0;break f}a=Z()|0;b=0;break g}a=Z()|0;break g}a=Z()|0;b=0;break h}a=Z()|0;break i}a=Z()|0;b=0}if(H[d+11|0]>=0)break i;Kb(J[d>>2])}c=d+132|0}if(H[d+27|0]>=0)break g;Kb(J[d+16>>2])}if(H[d+43|0]>=0)break f;Kb(J[d+32>>2])}if(H[d+59| -0]<0)Kb(J[d+48>>2]);if((d+60|0)==(c|0)|b)break a;while(1){c=Vb(c-24|0);if((c|0)!=(d+60|0))continue;break}break a}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+71|0]>=0)break b;Kb(J[d+60>>2])}Hc(d+156|0)}ba(a|0);B()}function bA(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,w=0,x=0,y=0;c=P(b,1348)+a|0;i=J[c- -64>>2];p=J[c+56>>2];r=i+P(p,44)|0;s=1;a:{if((b|0)==1){if((p|0)<=0)break a;l=J[a+2748>>2];s=!K[J[(J[J[l>>2]+8>>2]<<2)+16352>> -2]+12|0];h=a+2744|0;c=i;while(1){k=K[c+12|0];b:{if(k&4)break b;c:{d:{e:{f=J[c+20>>2];d=J[c+24>>2];f:{if(!f|!d)break f;e=0;if(!J[d+20>>2])break e;g=K[d+12|0];if(g&8){J[d+20>>2]=0;H[d+12|0]=g&247;f=J[c+20>>2];break f}if(!(k&8))break e;f=0;J[c+20>>2]=0;H[c+12|0]=k&247}e=!f;if(!d|f)break e;e=J[d+20>>2];if(!e)break b;f=J[e+8>>2];J[d+8>>2]=f;m=K[d+12|0]|4;H[d+12|0]=m;e=d;d=c;break d}if(e)break b;f=J[f+8>>2];J[c+8>>2]=f;m=K[c+12|0]|4;H[c+12|0]=m;if(!d)break c;e=c;if(J[d+20>>2])break c}e=J[e+4>>2];g=K[d+ -12|0];e=_k(J[h>>2],l,1,J[d+4>>2]-e|0,f-e|0,m&255,g);H[d+12|0]=g|4;J[d+8>>2]=e+f}j=j?j:c}c=c+44|0;if(r>>>0>c>>>0)continue;break}}if((p|0)<=0)a=0;else{t=(p|0)>0;v=a+2748|0;w=a+2744|0;c=i;m=0;while(1){o=K[c+12|0];g:{if(o&4)break g;d=J[c+24>>2];if(!d){m=m+1|0;break g}if(J[d+20>>2]){a=J[d+4>>2];e=J[d+8>>2];a=_k(J[w>>2],J[v>>2],b,J[c+4>>2]-a|0,e-a|0,K[d+12|0],o);H[c+12|0]=o|4;J[c+8>>2]=a+e;break g}q=J[c+4>>2];if(!j){g=J[w>>2];j=J[v>>2];n=J[d+4>>2]-q|0;u=_k(g,j,b,n,0,o,K[d+12|0]);h:{if((u|0)<=95){h=q+(n>> -1)|0;a=h+32&-64;e=(u|0)<65;k=a+(e?-32:-38)|0;f=h-k|0;l=f>>31;e=a|(e?32:26);a=h-e|0;h=a>>31;a=((u|0)/-2|0)+((f^l)-l>>>0<(a^h)-h>>>0?k:e)|0;J[c+8>>2]=a;J[d+8>>2]=a+u;a=J[c+8>>2];break h}a=q+32&-64;J[c+8>>2]=a}e=o|4;H[c+12|0]=e;x=d,y=_k(g,j,b,n,a-q|0,e,K[d+12|0])+a|0,J[x+8>>2]=y;j=c;break g}f=J[j+4>>2];e=J[j+8>>2];h=J[d+4>>2]-q|0;a=K[d+12|0];n=_k(J[w>>2],J[v>>2],b,h,0,o,a);i:{if(a&4){e=J[d+8>>2]-n|0;a=c;break i}a=e+(q-f|0)|0;k=a+(h>>1)|0;j:{if((n|0)<=95){a=k+32&-64;e=(n|0)<65;g=a+(e?-32:-38)|0;f=k-g| -0;l=f>>31;e=a|(e?32:26);a=k-e|0;h=a>>31;e=(f^l)-l>>>0<(a^h)-h>>>0?g:e;a=(n|0)/2|0;J[c+8>>2]=e-a;e=a+e|0;break j}e=a+32|0;g=e&-64;a=n>>>1|0;f=(g-k|0)+a|0;l=f>>31;e=(e+h&-64)-n|0;a=e+(a-k|0)|0;h=a>>31;a=(f^l)-l>>>0<(a^h)-h>>>0?g:e;J[c+8>>2]=a;e=a+n|0}a=d}J[a+8>>2]=e;H[c+12|0]=o|4;H[d+12|0]=K[d+12|0]|4;if(c>>>0<=i>>>0)break g;e=J[c-36>>2];a=J[c+8>>2];k:{if(!s){if((a|0)>(e|0))break k;break g}if((a|0)>=(e|0))break g}a=J[d+8>>2]-e|0;d=a>>31;if((a^d)-d>>>0<17)break g;J[c+8>>2]=e}c=c+44|0;if(r>>>0>c>>>0)continue; -break}a=(m|0)!=0}l:{if(b)break l;d=4;m=2;f=i;m:switch(p-6|0){case 6:f=i+44|0;d=9;m=5;break;case 0:break m;default:break l}e=P(m,44)+i|0;g=P(d,44)+i|0;b=(J[e+4>>2]<<1)-(J[f+4>>2]+J[g+4>>2]|0)|0;c=b>>31;if((b^c)-c>>>0>7)break l;c=J[g+8>>2];b=(J[e+8>>2]<<1)-J[f+8>>2]|0;J[g+8>>2]=b;b=c-b|0;c=J[g+24>>2];if(c)J[c+8>>2]=J[c+8>>2]-b;if((p|0)==12){J[i+360>>2]=J[i+360>>2]-b;J[i+492>>2]=J[i+492>>2]-b}b=P(d,44)+i|0;H[b+12|0]=K[b+12|0]|4;if(!c)break l;H[c+12|0]=K[c+12|0]|4}if(!((!j|a)&t))break a;c=i;while(1){e= -K[c+12|0];n:{if(e&4)break n;o:{p:{q:{g=J[c+28>>2];if(!g)break q;d=J[g+4>>2];b=J[c+4>>2];a=d-b|0;f=a>>31;if((a^f)-f>>>0>79)break q;d=b+(J[g+8>>2]-d|0)|0;break p}d=c;if(!j){d=J[c+4>>2]+32&-64;J[c+8>>2]=d;j=c;break o}while(1){a=d;d=a-44|0;t=i>>>0>d>>>0;if(!(t|K[a-32|0]&4))continue;break}f=c;r:{while(1){b=f;f=b+44|0;g=r>>>0<=f>>>0;if(g)break r;if(!(K[b+56|0]&4))continue;break}if(g|t|(c>>>0<=d>>>0|c>>>0>=f>>>0))break r;f=a-44|0;d=J[f+8>>2];a=J[b+48>>2];f=J[f+4>>2];if((a|0)==(f|0))break p;d=hc(J[c+4>>2]- -f|0,J[b+52>>2]-d|0,a-f|0)+d|0;J[c+8>>2]=d;e=K[c+12|0];break o}d=J[j+8>>2]+((J[c+4>>2]-J[j+4>>2]|0)+16&-32)|0}J[c+8>>2]=d}H[c+12|0]=e|4;s:{if(c>>>0<=i>>>0)break s;a=J[c-36>>2];t:{if(!s){if((a|0)<(d|0))break t;break s}if((a|0)<=(d|0))break s}b=J[c+24>>2];if(!b)break s;b=J[b+8>>2]-a|0;e=b>>31;if((b^e)-e>>>0<17)break s;J[c+8>>2]=a;d=a}if(!(K[c+56|0]&4)|c+44>>>0>=r>>>0)break n;e=J[c+52>>2];u:{if(!s){if((d|0)<(e|0))break u;break n}if((d|0)<=(e|0))break n}a=J[c+24>>2];if(!a)break n;a=J[a+8>>2]-J[c-36>>2]| -0;b=a>>31;if((a^b)-b>>>0<17)break n;J[c+8>>2]=e}c=c+44|0;if(r>>>0>c>>>0)continue;break}}}function hZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-176|0;xb=f;J[195395]=0;g=+(c|0);h=+(e|0);da(1863,f+48|0,+((g+h)*.5),-1);c=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((c|0)!=1){J[195395]=0;e=_(1078,16)|0;c=J[195395];J[195395]=0;if((c|0)==1)break q;J[f+60>>2]=e;J[f+64>>2]=2;J[f+68>>2]=-2147483644;J[e+8>>2]=0;J[e>>2]=99;J[e+4>>2]=120;J[f+80>>2]= -J[f+56>>2];J[f+56>>2]=0;c=J[f+52>>2];J[f+72>>2]=J[f+48>>2];J[f+76>>2]=c;J[f+48>>2]=0;J[f+52>>2]=0;J[195395]=0;i=+(b|0);j=+(d|0);da(1863,f+32|0,+((i+j)*.5),-1);b=J[195395];J[195395]=0;e=f+84|0;if((b|0)==1)break p;J[195395]=0;c=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break o;J[f+88>>2]=2;J[f+92>>2]=-2147483644;J[f+84>>2]=c;J[c+8>>2]=0;J[c>>2]=99;J[c+4>>2]=121;J[f+104>>2]=J[f+40>>2];b=J[f+36>>2];J[f+96>>2]=J[f+32>>2];J[f+100>>2]=b;J[f+40>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[195395]=0;da(1863,f+ -16|0,+((g-h)*.5),-1);b=J[195395];J[195395]=0;e=f+108|0;if((b|0)==1)break n;J[195395]=0;c=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;J[f+112>>2]=2;J[f+116>>2]=-2147483644;J[f+108>>2]=c;J[c+8>>2]=0;J[c>>2]=114;J[c+4>>2]=120;J[f+128>>2]=J[f+24>>2];b=J[f+20>>2];J[f+120>>2]=J[f+16>>2];J[f+124>>2]=b;J[f+24>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[195395]=0;da(1863,f|0,+((i-j)*.5),-1);b=J[195395];J[195395]=0;if((b|0)==1)break l;J[195395]=0;c=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k; -J[f+136>>2]=2;J[f+140>>2]=-2147483644;J[f+132>>2]=c;J[c+8>>2]=0;J[c>>2]=114;J[c+4>>2]=121;J[f+152>>2]=J[f+8>>2];b=J[f+4>>2];J[f+144>>2]=J[f>>2];J[f+148>>2]=b;J[f+8>>2]=0;J[f+164>>2]=0;J[f+156>>2]=0;J[f+160>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[195395]=0;H[f+172|0]=0;c=f+156|0;J[f+168>>2]=c;d=_(1078,96)|0;b=J[195395];J[195395]=0;r:{s:{if((b|0)!=1){J[f+160>>2]=d;J[f+156>>2]=d;J[195395]=0;J[f+164>>2]=d+96;c=ha(1957,f+164|0,f+60|0,c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break r;c=Z()|0;J[f+160>>2]=d;break s}c= -Z()|0}Kc(f+168|0);Vb(f+132|0);Vb(f+108|0);Vb(f+84|0);Vb(f+60|0);k=1;break j}J[f+160>>2]=c;if(H[f+155|0]<0)Kb(J[f+144>>2]);if(H[f+143|0]<0)Kb(J[f+132>>2]);if(H[f+131|0]<0)Kb(J[f+120>>2]);if(H[f+119|0]<0)Kb(J[f+108>>2]);if(H[f+107|0]<0)Kb(J[f+96>>2]);if(H[f+95|0]<0)Kb(J[f+84>>2]);if(H[f+83|0]<0)Kb(J[f+72>>2]);if(H[f+71|0]<0)Kb(J[f+60>>2]);if(H[f+11|0]<0)Kb(J[f>>2]);if(H[f+27|0]<0)Kb(J[f+16>>2]);if(H[f+43|0]<0)Kb(J[f+32>>2]);if(H[f+59|0]<0)Kb(J[f+48>>2]);J[195395]=0;c=a+8|0;b=f+156|0;$(1963,c|0,b|0); -a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,c|0,b|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,c|0,b|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;d=_(1078,32)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[f+60>>2]=d;J[f+64>>2]=7;J[f+68>>2]=-2147483640;J[d+24>>2]=J[106616];a=J[106615];J[d+16>>2]=J[106614];J[d+20>>2]=a;a=J[106613];J[d+8>>2]=J[106612];J[d+12>>2]=a;a=J[106611]; -J[d>>2]=J[106610];J[d+4>>2]=a;J[d+28>>2]=0;J[195395]=0;J[f+48>>2]=0;H[f+59|0]=0;ia(1961,c|0,f+60|0,b|0,f+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+71|0]<0)Kb(J[f+60>>2]);b=J[f+156>>2];if(b){c=b;e=J[f+160>>2];if((c|0)!=(e|0)){while(1){if(H[e-1|0]<0)Kb(J[e-12>>2]);a=e-24|0;if(H[e-13|0]<0)Kb(J[a>>2]);e=a;if((e|0)!=(b|0))continue;break}c=J[f+156>>2]}J[f+160>>2]=b;Kb(c)}xb=f+176|0;return}ba(Z()|0);B()}c=Z()|0;e=f+60|0;break f}c=Z()|0;break f}c=Z()|0;break g}c= -Z()|0;break g}c=Z()|0;break h}c=Z()|0;break i}c=Z()|0;k=0}if(H[f+11|0]>=0)break i;Kb(J[f>>2])}e=f+132|0}if(H[f+27|0]>=0)break g;Kb(J[f+16>>2])}if(H[f+43|0]>=0)break f;Kb(J[f+32>>2])}if(H[f+59|0]<0)Kb(J[f+48>>2]);if((f+60|0)==(e|0)|k)break a;while(1){e=Vb(e-24|0);if((e|0)!=(f+60|0))continue;break}break a}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+71|0]>=0)break b;Kb(J[f+60>>2])}Hc(f+156|0)}ba(c|0);B()}function eF(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,r=0;l=xb-4096|0;xb=l;d=J[c+8>>2];h=vc(1,20);J[h+8>>2]=d;J[h+12>>2]=-1414746709;if(d>>>0<=4294963200){d=vc(1,d+4096|0);J[h+4>>2]=d;m=d?h:0}sk(m,J[c>>2]);sk(m+16|0,J[c+16>>2]);d=J[c+8>>2];if(d)Mb(J[m+4>>2],J[c+4>>2],d+1|0);e=J[a+128>>2];if(!e){e=Qb(28);J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=1124;J[e>>2]=0;J[e+24>>2]=-1414746709;J[e+16>>2]=0;J[e+20>>2]=0;J[a+128>>2]=e}c=l;j=4096;d=b;a:{while(1){h=d;n=c;f=K[d|0];H[c|0]=f;if(!f)break a;f=K[d+1|0];H[c+1|0]=f;if(!f)break a;f=K[d+2|0];H[c+2|0]= -f;if(!f)break a;f=K[d+3|0];H[c+3|0]=f;if(!f)break a;c=c+4|0;d=d+4|0;j=j-4|0;if(j>>>0>4)continue;break}f=c;c=K[d|0];H[f|0]=c;if(!c)break a;c=K[h+5|0];H[n+5|0]=c;if(!c)break a;c=K[h+6|0];H[n+6|0]=c;if(!c)break a;H[n+7|0]=0}d=K[l|0];if(d){c=l;while(1){d=d<<24>>24;if((d|0)>=0)d=d-65>>>0<26?d|32:d;H[c|0]=d;d=K[c+1|0];c=c+1|0;if(d)continue;break}}d=0;h=ac(l);b:{if((h|0)==-1)break b;c=Qb(h+1|0);if(!c)break b;d=Mb(c,l,h);H[h+d|0]=0}q=rs(e,d,m);if(q){n=a;a=0;c=b;c:{if(!b)break c;g=227718;b=K[b|0];d:{if(!b)break d; -if((b|0)!=105){a=b;if(((a-65>>>0<26?a|32:a)|0)!=105)break d}g=227719;a=K[c+1|0];if(!a)break d;if((a|0)!=99)if(((a-65>>>0<26?a|32:a)|0)!=99)break d;g=227720;a=K[c+2|0];if(!a)break d;if((a|0)!=99)if(((a-65>>>0<26?a|32:a)|0)!=99)break d;a=K[c+3|0];g=227721}e=1039;d=a-65>>>0<26?a|32:a;a=K[g|0];e:{if((d|0)==((a-65>>>0<26?a|32:a)|0))break e;g=227563;f:{if(!b){a=0;break f}if((b|0)!=105){a=b;if(((a-65>>>0<26?a|32:a)|0)!=105)break f}g=227564;a=K[c+1|0];if(!a)break f;if((a|0)!=112)if(((a-65>>>0<26?a|32:a)| -0)!=112)break f;g=227565;a=K[c+2|0];if(!a)break f;if((a|0)!=116)if(((a-65>>>0<26?a|32:a)|0)!=116)break f;g=227566;a=K[c+3|0];if(!a)break f;if((a|0)!=99)if(((a-65>>>0<26?a|32:a)|0)!=99)break f;a=K[c+4|0];g=227567}e=1028;d=a-65>>>0<26?a|32:a;a=K[g|0];if((d|0)==((a-65>>>0<26?a|32:a)|0))break e;a=226093;g:{if(!b){b=0;break g}if((b|0)!=120)if(((b-65>>>0<26?b|32:b)|0)!=120)break g;a=226094;b=K[c+1|0];if(!b)break g;if((b|0)!=109)if(((b-65>>>0<26?b|32:b)|0)!=109)break g;a=226095;b=K[c+2|0];if(!b)break g; -if((b|0)!=112)if(((b-65>>>0<26?b|32:b)|0)!=112)break g;b=K[c+3|0];a=226096}e=1060;a=K[a|0];if(((b-65>>>0<26?b|32:b)|0)!=((a-65>>>0<26?a|32:a)|0))break c}a=qs(J[n+128>>2],226560);if(!a)break c;k=J[a+4>>2];h=J[a+8>>2];p=k+h|0;g=p-16|0;if(!k|g>>>0<=k>>>0)break c;j=p-4|0;c=k;while(1){a=228066;b=K[c|0];h:{if(!b)break h;if((b|0)!=56)if(((b-65>>>0<26?b|32:b)|0)!=56)break h;a=228067;b=K[c+1|0];if(!b)break h;if((b|0)!=66)if(((b-65>>>0<26?b|32:b)|0)!=98)break h;a=228068;b=K[c+2|0];if(!b)break h;if((b|0)!=73)if(((b- -65>>>0<26?b|32:b)|0)!=105)break h;b=K[c+3|0];a=228069}a=K[a|0];if(((b-65>>>0<26?b|32:b)|0)!=((a-65>>>0<26?a|32:a)|0))break c;a=K[c+6|0];o=((a+c|0)+((a^-1)&1)|0)+7|0;if(o>>>0>j>>>0)break c;a=K[o+1|0];f=a>>>16|0;i=a<<16;b=f;a=K[o|0];f=a>>>8|0;i=a<<24|i;f=b|f;a=K[o+2|0];b=a>>>24|0;d=K[o+3|0];i=d|(a<<8|i);a=d&1;d=i+a|0;b=b|f;b=a>>>0>d>>>0?b+1|0:b;if(!b&d>>>0>h>>>0|b)break c;a=o+4|0;if(a>>>0>p-d>>>0)break c;b=a+d|0;if((K[c+5|0]|K[c+4|0]<<8)!=(e|0)){c=b;if(g>>>0>b>>>0)continue;break c}break}f=p-b|0;i:{if(!m){e= -vc(1,20);J[e+12>>2]=-1414746709;g=c-k|0;a=f+g|0;J[e+8>>2]=a;j=vc(1,a+4096|0);J[e+4>>2]=j;Mb(j,k,g);break i}i=J[m+8>>2];e=vc(1,20);J[e+12>>2]=-1414746709;r=i+(i&1)|0;g=a-k|0;a=r+(f+g|0)|0;J[e+8>>2]=a;j=vc(1,a+4096|0);J[e+4>>2]=j;c=Mb(j,k,g-4|0)+g|0;h=c-4|0;d=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);H[h|0]=d;H[h+1|0]=d>>>8;H[h+2|0]=d>>>16;H[h+3|0]=d>>>24;Mb(c,J[m+4>>2],i)}Mb((g+j|0)+r|0,b,f);b=J[n+128>>2];d=Qb(5);if(d){H[d+4|0]=0;H[d|0]=56;H[d+1|0]=98;H[d+2|0]=105;H[d+3|0]=109}c=vc(1,20);J[c+8>>2]=a; -J[c+12>>2]=-1414746709;a=vc(1,a+4096|0);J[c+4>>2]=a;c=a?c:0;sk(c,0);sk(c+16|0,J[e+16>>2]);a=J[e+8>>2];if(a)Mb(J[c+4>>2],J[e+4>>2],a+1|0);rs(b,d,c);a=J[e+4>>2];if(a)Kb(a);a=J[e+16>>2];if(a)Kb(a);a=J[e>>2];if(a)Kb(a);Kb(e)}}xb=l+4096|0;return q}function qG(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;h=xb-48|0;xb=h;e=J[b+88>>2];c=K[a+2|0]|K[a+3|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;a:{if((ld(c,J[J[e+80>>2]+P(J[e+64>>2],20)>>2])|0)==-1)break a;c=J[e+64>>2];J[b+4>>2]=c;d= -J[b+36>>2];k=d-1|0;b:{if((k|0)<=(c|0))break b;c:{d:{e:{while(1){c=c+1|0;J[b+4>>2]=c;d=J[b+12>>2];g=J[b+8>>2];f=J[J[g+88>>2]+80>>2]+P(c,20)|0;c=L[f+12>>1];f:{if(d&c&14)break f;if(c&8)if(!Bd(g,J[f>>2],c,d))break f;d=1;c=L[f+16>>1];if(!(K[f+12|0]&16|(c&96)!=32|!K[b+20|0]&(c&543)==513))d=!K[b+21|0]&(c&287)==257;g=J[b+32>>2];if(g){c=K[g|0]|K[g+1|0]<<8;c=(c<<8|c>>>8)&65535}else c=0;g:{if(!(J[b+16>>2]&J[f+4>>2]))break g;i=K[b+23|0];if((i|0)!=K[f+15|0]?i:0)break g;i=J[b+24>>2];h:{if(i){if(!(Ab[i|0](f,c,J[b+ -28>>2])|0))break g;g=J[b+32>>2];break h}if(!d)break f}if(g)J[b+32>>2]=g+2;c=K[a+10|0]|K[a+11|0]<<8;if(c)break e;c=169776;break d}if(d)break c}c=J[b+4>>2];if((k|0)>(c|0))continue;break}d=J[b+36>>2];break b}c=((c<<8|c>>>8)&65535)+a|0}c=Do(c,J[J[e+80>>2]+P(J[b+4>>2],20)>>2]);if(!c){if(!(K[e+16|0]&64))break a;a=J[e+64>>2];b=J[b+4>>2];J[e+144>>2]=J[e+144>>2]|32;c=J[e+68>>2];b=b+1|0;c=b>>>0>c>>>0?c:b;if(c>>>0<=a>>>0)break a;d=c+(a^-1)|0;e=J[e+80>>2];f=c-a&3;if(f){b=0;while(1){g=e+P(a,20)|0;J[g+4>>2]=J[g+ -4>>2]|2;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(d>>>0<3)break a;while(1){b=e+P(a,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]|2;b=b- -64|0;J[b>>2]=J[b>>2]|2;a=a+4|0;if((c|0)!=(a|0))continue;break}break a}d=K[a+8|0]|K[a+9|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+a|0;else d=169776;d=Do(d,J[J[e+80>>2]+P(J[e+64>>2],20)>>2]);i:{f=K[a+12|0]|K[a+13|0]<<8;if(d>>>0<((f<<8|f>>>8)&65535)>>>0){f=K[a+14|0]|K[a+15|0]<<8;g=(f<<8|f>>>8)&65535;if(g>>>0>c>>>0)break i}if(!(K[e+16|0]& -64))break a;a=J[e+64>>2];b=J[b+4>>2];J[e+144>>2]=J[e+144>>2]|32;c=J[e+68>>2];b=b+1|0;c=b>>>0>c>>>0?c:b;if(c>>>0<=a>>>0)break a;d=c+(a^-1)|0;e=J[e+80>>2];f=c-a&3;if(f){b=0;while(1){g=e+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(d>>>0<3)break a;while(1){b=e+P(a,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]|2;b=b- -64|0;J[b>>2]=J[b>>2]|2;a=a+4|0;if((c|0)!=(a|0))continue;break}break a}k=K[a+4|0]|K[a+5|0]<<8;f=Npa(k);c=c+P(d,g)|0;g=K[a+ -6|0]|K[a+7|0]<<8;d=(P(c,Npa(g)+f|0)<<1)+a|0;c=J[b+88>>2];if(J[c+156>>2]){j=J[b+80>>2];i=J[c+64>>2];J[h+36>>2]=J[b+4>>2];J[h+32>>2]=i;nc(c,j,130424,h+32|0)}j=d+16|0;c=0;d=0;if(k)d=Bk(a+4|0,b,a,j,J[e+88>>2]+P(J[e+64>>2],20)|0);if(g)c=Bk(a+6|0,b,a,j+(f<<1)|0,J[e+88>>2]+P(J[b+4>>2],20)|0);c=d|c;a=J[b+88>>2];if(!((c|0)!=1|!J[a+156>>2])){d=J[b+80>>2];f=J[a+64>>2];J[h+20>>2]=J[b+4>>2];J[h+16>>2]=f;nc(a,d,130456,h+16|0);a=J[b+88>>2]}if(J[a+156>>2]){d=J[b+80>>2];f=J[a+64>>2];J[h+4>>2]=J[b+4>>2];J[h>>2]=f; -nc(a,d,130483,h)}d=J[e+64>>2];j:{if(c){Ac(e,3,d,J[b+4>>2]+1|0,1,0);a=J[b+4>>2];break j}a=J[b+4>>2];if(!(K[e+16|0]&64))break j;J[e+144>>2]=J[e+144>>2]|32;c=J[e+68>>2];f=a+1|0;f=c>>>0>>0?c:f;if(f>>>0<=d>>>0)break j;k=f+(d^-1)|0;j=J[e+80>>2];i=f-d&3;if(i){c=0;while(1){l=j+P(d,20)|0;J[l+4>>2]=J[l+4>>2]|2;d=d+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if(k>>>0<3)break j;while(1){c=j+P(d,20)|0;J[c+4>>2]=J[c+4>>2]|2;J[c+24>>2]=J[c+24>>2]|2;J[c+44>>2]=J[c+44>>2]|2;c=c- -64|0;J[c>>2]=J[c>>2]|2;d=d+4|0; -if((f|0)!=(d|0))continue;break}}if(g){J[b+4>>2]=a+1;Ac(e,3,J[e+64>>2],a+2|0,1,0);a=J[b+4>>2]}J[e+64>>2]=a;j=1;break a}d=J[b+4>>2]+1|0}if(!(K[e+16|0]&64))break a;a=J[e+64>>2];J[e+144>>2]=J[e+144>>2]|32;b=J[e+68>>2];c=b>>>0>>0?b:d;if(c>>>0<=a>>>0)break a;d=c+(a^-1)|0;e=J[e+80>>2];f=c-a&3;if(f){b=0;while(1){g=e+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(d>>>0<3)break a;while(1){b=e+P(a,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]| -2;b=b- -64|0;J[b>>2]=J[b>>2]|2;a=a+4|0;if((c|0)!=(a|0))continue;break}}xb=h+48|0;return j|0}function pH(a){a=a|0;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;i=xb-32|0;xb=i;j=K[a+4|0]|K[a+5|0]<<8;l=j<<8|j>>>8;o=l&65535;e=vc(1,P(o,28)+16|0);a:{if(!e)break a;J[i+28>>2]=0;J[i+20>>2]=0;J[i+24>>2]=-1;J[i+12>>2]=0;h=e+16|0;J[i+16>>2]=h;b:{c:{if(!j)break c;m=a+4|0;c=K[a|0]|K[a+1|0]<<8;g=(c<<8|c>>>8)&65535;c=l&65535;n=c>>>0<=1?1:c;while(1){c=K[m|0]|K[m+1|0]<<8;c=((c<<8|c>>>8)&65535)>>>0<=f>>> -0?169776:((f<<1)+m|0)+2|0;c=K[c|0]|K[c+1|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;d=i+12|0;b=g;d:{e:{f:{while(1){g:{if((b|0)!=9){h:switch(b-1|0){case 1:i:{j:{k:{b=K[c|0]|K[c+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 1:break j;case 0:break k;default:break i}}b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=859;J[b+8>>2]=860;J[b+4>>2]=861;J[b>>2]=c;J[b+24>>2]=0;b=b+16|0;d=K[c+2|0]|K[c+3|0]<<8;if(!d){$d(169776,b);break i}$d(((d<<8|d>>>8)&65535)+c|0, -b);break i}b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=862;J[b+8>>2]=863;J[b+4>>2]=864;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(b)c=((b<<8|b>>>8)&65535)+c|0;else c=169776;$d(c,d)}break d;case 2:if((K[c|0]|K[c+1|0]<<8)!=256)break d;b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=847;J[b+8>>2]=848;J[b+4>>2]=849;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(!b)break f;break e;case 3:if((K[c|0]| -K[c+1|0]<<8)!=256)break d;b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=850;J[b+8>>2]=851;J[b+4>>2]=852;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(!b)break f;break e;case 4:if((K[c|0]|K[c+1|0]<<8)!=256)break d;b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=853;J[b+8>>2]=854;J[b+4>>2]=855;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(!b)break f;break e;case 5:if((K[c|0]|K[c+1|0]<<8)!=256)break d; -b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=856;J[b+8>>2]=857;J[b+4>>2]=858;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(!b)break f;break e;case 6:QG(c,d);break d;case 0:break g;case 7:break h;default:break d}PG(c,d);break d}if((K[c|0]|K[c+1|0]<<8)!=256)break d;b=K[c+2|0]|K[c+3|0]<<8;b=(b<<8|b>>>8)&65535;k=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if(k)c=(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24))+c|0;else c=169776;continue}break}l:{m:{n:{b= -K[c|0]|K[c+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 1:break m;case 0:break n;default:break l}}b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=865;J[b+8>>2]=866;J[b+4>>2]=867;J[b>>2]=c;J[b+24>>2]=0;b=b+16|0;d=K[c+2|0]|K[c+3|0]<<8;if(!d){$d(169776,b);break l}$d(((d<<8|d>>>8)&65535)+c|0,b);break l}b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=868;J[b+8>>2]=869;J[b+4>>2]=870;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+ -3|0]<<8;if(b)c=((b<<8|b>>>8)&65535)+c|0;else c=169776;$d(c,d)}break d}$d(169776,d);break d}$d(((b<<8|b>>>8)&65535)+c|0,d)}f=f+1|0;if((n|0)!=(f|0))continue;break}J[e>>2]=0;J[e+4>>2]=0;f=0;J[e+8>>2]=0;if(!j)break c;a=P(o,28)-28|0;g=(a>>>0)/28|0;if(a>>>0<28){b=0;a=0;break b}d=g+1&536870910;b=0;a=0;c=0;while(1){a=J[h+16>>2]|a;J[e>>2]=a;b=J[h+20>>2]|b;J[e+4>>2]=b;f=J[h+24>>2]|f;J[e+8>>2]=f;a=a|J[h+44>>2];J[e>>2]=a;b=b|J[h+48>>2];J[e+4>>2]=b;f=f|J[h+52>>2];J[e+8>>2]=f;h=h+56|0;c=c+2|0;if((d|0)!=(c|0))continue; -break}break b}J[e+12>>2]=J[i+24>>2];break a}if(!(g&1)){J[e>>2]=J[h+16>>2]|a;J[e+4>>2]=J[h+20>>2]|b;J[e+8>>2]=J[h+24>>2]|f}c=J[i+24>>2];J[e+12>>2]=c;if(!j)break a;f=0;if((l&65535)>>>0>=2){b=n&65534;a=0;while(1){if((c|0)!=(f|0)){g=P(f,28)+e|0;J[g+24>>2]=J[g+20>>2]}g=f|1;if((g|0)!=(c|0)){g=P(g,28)+e|0;J[g+24>>2]=J[g+20>>2]}f=f+2|0;a=a+2|0;if((b|0)!=(a|0))continue;break}}if(!(n&1)|(c|0)==(f|0))break a;a=P(f,28)+e|0;J[a+24>>2]=J[a+20>>2]}xb=i+32|0;return e|0}function Ho(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=Q(0),k=0,l=Q(0),m=0;i=xb-16|0;xb=i;f=K[a+1|0]|K[a+2|0]<<8|(K[a+3|0]<<16|K[a+4|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);e=0;a:{if((f|0)<=0)break a;k=a+5|0;e=f-1|0;while(1){f=e+g>>>1|0;h=k+P(f,7)|0;m=K[h|0]|K[h+1|0]<<8;b:{if(((m<<8|m>>>8)&65535)>>>0<=b>>>0){g=K[h+2|0]|K[h+3|0]<<8;if(((g<<8|g>>>8)&65535)>>>0>>0){g=f+1|0;break b}c:{d:{e:{f:{b=a;a=k+P(f,7)|0;a=K[a+5|0]<<8|K[a+4|0]<<16|K[a+6|0];f=a?b+a|0:169776;switch(K[f|0]-1|0){case 1:break e;case 0:break f;default:break c}}a= -K[f+7|0]|K[f+8|0]<<8;g=(a<<8|a>>>8)<<16>>16;a=K[f+5|0]|K[f+6|0]<<8;b=(a<<8|a>>>8)<<16>>16;a=K[f+3|0]|K[f+4|0]<<8;d=(a<<8|a>>>8)<<16>>16;a=K[f+1|0]|K[f+2|0]<<8;a=(a<<8|a>>>8)<<16>>16;break d}a=K[f+1|0]|K[f+2|0]<<8;J[i>>2]=(a<<8|a>>>8)<<16>>16;a=K[f+3|0]|K[f+4|0]<<8;J[i+4>>2]=(a<<8|a>>>8)<<16>>16;a=K[f+5|0]|K[f+6|0]<<8;J[i+8>>2]=(a<<8|a>>>8)<<16>>16;a=K[f+7|0]|K[f+8|0]<<8;J[i+12>>2]=(a<<8|a>>>8)<<16>>16;h=J[d>>2];g:{if(!h)break g;e=J[d+12>>2];if(!e)break g;a=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+ -12|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);b=J[d+4>>2];if(b){a=sc(b,a);e=J[d+12>>2]}j=Q(.5);b=K[h+6|0]|K[h+7|0]<<8;g=(b<<8|b>>>8)&65535;b=a>>>16|0;if(g>>>0<=b>>>0)l=Q(0);else{g=J[d+8>>2];b=h+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)b=h+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b=169776;k=a&65535;a=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(a)a=h+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;else a=169776;l=pc(b,k,g,e,a,0)}l=Q(Q(V(Q(l+Q(.5))))+Q(J[i>> -2]));h:{if(Q(R(l))>2]=a;a=J[d+12>>2];i:{if(!a)break i;b=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);h=J[d>>2];g=J[d+4>>2];j:{if(g){e=sc(g,(b|0)==-1?-1:e+1|0);a=J[d+12>>2];break j}e=e+1|0}b=K[h+6|0]|K[h+7|0]<<8;g=(b<<8|b>>>8)&65535;b=e>>>16|0;if(g>>>0<=b>>>0)break i;g=J[d+8>>2];b=h+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)b=h+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b= -169776;k=e&65535;e=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;j=Q(pc(b,k,g,a,e,0)+Q(.5))}j=Q(Q(V(j))+Q(J[i+4>>2]));k:{if(Q(R(j))>2]=a;j=Q(.5);a=J[d+12>>2];l:{if(!a)break l;b=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);h=J[d>>2];g=J[d+4>>2];m:{if(g){e=sc(g,(b|0)==-1?-1:e+2|0);a=J[d+12>>2];break m}e=e+2|0}b=K[h+6|0]|K[h+7|0]<<8; -g=(b<<8|b>>>8)&65535;b=e>>>16|0;if(g>>>0<=b>>>0)break l;g=J[d+8>>2];b=h+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)b=h+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b=169776;k=e&65535;e=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;j=Q(pc(b,k,g,a,e,0)+Q(.5))}j=Q(Q(V(j))+Q(J[i+8>>2]));n:{if(Q(R(j))>2]=a;j=Q(.5);a=J[d+12>>2];o:{if(!a)break o;b=K[f+9|0]|K[f+ -10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);g=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);e=J[d>>2];f=J[d+4>>2];p:{if(f){g=sc(f,(b|0)==-1?-1:g+3|0);a=J[d+12>>2];break p}g=g+3|0}b=K[e+6|0]|K[e+7|0]<<8;f=(b<<8|b>>>8)&65535;b=g>>>16|0;if(f>>>0<=b>>>0)break o;d=J[d+8>>2];b=e+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)b=e+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b=169776;f=g&65535;g=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+5|0]<<24);if(g)g=e+(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))| -0;else g=169776;j=Q(pc(b,f,d,a,g,0)+Q(.5))}j=Q(Q(V(j))+Q(J[i+12>>2]));q:{if(Q(R(j))>2]=a}d=J[i+4>>2];b=J[i+8>>2];g=J[i+12>>2];a=J[i>>2]}J[c+4>>2]=g;J[c>>2]=a;J[c+12>>2]=d-g;J[c+8>>2]=b-a}e=1;break a}e=f-1|0}if((e|0)>=(g|0))continue;break}e=0}xb=i+16|0;return e|0}function ln(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;d=xb-48|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{if(!K[a+20|0])break w;f=Pb(32);J[d+36>> -2]=f;J[d+40>>2]=4;J[d+44>>2]=-2147483640;e=J[106189];J[f+8>>2]=J[106188];J[f+12>>2]=e;e=J[106187];J[f>>2]=J[106186];J[f+4>>2]=e;J[f+16>>2]=0;J[195395]=0;f=a+48|0;fa(3137,f|0,d+36|0,1);e=J[195395];J[195395]=0;if((e|0)==1)break v;if(H[d+47|0]<0)Kb(J[d+36>>2]);e=Pb(16);J[d+24>>2]=e;J[d+28>>2]=2;J[d+32>>2]=-2147483644;J[e+8>>2]=0;J[e>>2]=120;J[e+4>>2]=49;g=O[b>>3];h=O[a+8>>3];J[195395]=0;e=d+12|0;da(1863,e|0,+(h*g),-1);i=J[195395];J[195395]=0;if((i|0)==1)break u;J[195395]=0;fa(3138,f|0,d+24|0,e|0);e= -J[195395];J[195395]=0;if((e|0)==1)break t;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);e=Pb(16);J[d+24>>2]=e;J[d+28>>2]=2;J[d+32>>2]=-2147483644;J[e+8>>2]=0;J[e>>2]=121;J[e+4>>2]=49;g=O[b+8>>3];h=O[a+8>>3];J[195395]=0;b=d+12|0;da(1863,b|0,+(h*g),-1);e=J[195395];J[195395]=0;if((e|0)==1)break r;J[195395]=0;fa(3138,f|0,d+24|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break q;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);b=Pb(16);J[d+24>>2]=b;J[d+28>>2]=2;J[d+32>>2]=-2147483644; -J[b+8>>2]=0;J[b>>2]=120;J[b+4>>2]=50;g=O[c>>3];h=O[a+8>>3];J[195395]=0;b=d+12|0;da(1863,b|0,+(h*g),-1);e=J[195395];J[195395]=0;if((e|0)==1)break o;J[195395]=0;fa(3138,f|0,d+24|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break n;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);b=Pb(16);J[d+24>>2]=b;J[d+28>>2]=2;J[d+32>>2]=-2147483644;J[b+8>>2]=0;J[b>>2]=121;J[b+4>>2]=50;g=O[c+8>>3];h=O[a+8>>3];J[195395]=0;b=d+12|0;da(1863,b|0,+(h*g),-1);c=J[195395];J[195395]=0;if((c|0)==1)break l;J[195395]= -0;fa(3138,f|0,d+24|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break k;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);b=Pb(32);J[d+24>>2]=b;J[d+28>>2]=6;J[d+32>>2]=-2147483640;c=J[105220];J[b+16>>2]=J[105219];J[b+20>>2]=c;c=J[105218];J[b+8>>2]=J[105217];J[b+12>>2]=c;c=J[105216];J[b>>2]=J[105215];J[b+4>>2]=c;J[b+24>>2]=0;b=K[a+20|0];c=J[a+16>>2];J[195395]=0;e=d+12|0;fa(1975,e|0,c|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break i;J[195395]=0;fa(3138,f|0,d+24|0,e|0);b=J[195395];J[195395]= -0;if((b|0)==1)break h;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);b=Pb(64);J[d+24>>2]=b;J[d+28>>2]=12;J[d+32>>2]=-2147483632;c=J[105706];J[b+40>>2]=J[105705];J[b+44>>2]=c;c=J[105704];J[b+32>>2]=J[105703];J[b+36>>2]=c;c=J[105702];J[b+24>>2]=J[105701];J[b+28>>2]=c;c=J[105700];J[b+16>>2]=J[105699];J[b+20>>2]=c;c=J[105698];J[b+8>>2]=J[105697];J[b+12>>2]=c;c=J[105696];J[b>>2]=J[105695];J[b+4>>2]=c;J[b+48>>2]=0;g=O[a+8>>3];J[195395]=0;a=d+12|0;da(1863,a|0,+g,-1);b=J[195395];J[195395]=0; -if((b|0)==1)break f;J[195395]=0;fa(3138,f|0,d+24|0,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+35|0]<0)Kb(J[d+24>>2]);a=Pb(32);J[d>>2]=a;J[d+4>>2]=4;J[d+8>>2]=-2147483640;b=J[106189];J[a+8>>2]=J[106188];J[a+12>>2]=b;b=J[106187];J[a>>2]=J[106186];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;ia(3136,f|0,d|0,1,1);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+11|0]>=0)break w;Kb(J[d>>2])}xb=d+48|0;return}a=Z()|0;if(H[d+47|0]>=0)break b;Kb(J[d+36>>2]);ba(a|0);B()}a= -Z()|0;break s}a=Z()|0;if(H[d+23|0]>=0)break s;Kb(J[d+12>>2])}if(H[d+35|0]>=0)break b;break a}a=Z()|0;break p}a=Z()|0;if(H[d+23|0]>=0)break p;Kb(J[d+12>>2])}if(H[d+35|0]>=0)break b;break a}a=Z()|0;break m}a=Z()|0;if(H[d+23|0]>=0)break m;Kb(J[d+12>>2])}if(H[d+35|0]>=0)break b;break a}a=Z()|0;break j}a=Z()|0;if(H[d+23|0]>=0)break j;Kb(J[d+12>>2])}if(H[d+35|0]>=0)break b;break a}a=Z()|0;break g}a=Z()|0;if(H[d+23|0]>=0)break g;Kb(J[d+12>>2])}if(H[d+35|0]>=0)break b;break a}a=Z()|0;break d}a=Z()|0;if(H[d+ -23|0]>=0)break d;Kb(J[d+12>>2])}if(H[d+35|0]>=0)break b;break a}a=Z()|0;if(H[d+11|0]>=0)break b;Kb(J[d>>2])}ba(a|0);B()}Kb(J[d+24>>2]);ba(a|0);B()}function uZ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-48|0;xb=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{if(!K[a+20|0])break w;e=Pb(32);J[c+36>>2]=e;J[c+40>>2]=4;J[c+44>>2]=-2147483640;d=J[106189];J[e+8>>2]=J[106188];J[e+12>>2]=d;d=J[106187];J[e>>2]=J[106186];J[e+4>>2]=d;J[e+16>>2]=0;J[195395]=0;e=a+48|0;fa(3137,e|0, -c+36|0,1);d=J[195395];J[195395]=0;if((d|0)==1)break v;if(H[c+47|0]<0)Kb(J[c+36>>2]);d=Pb(16);J[c+24>>2]=d;J[c+28>>2]=2;J[c+32>>2]=-2147483644;J[d+8>>2]=0;J[d>>2]=120;J[d+4>>2]=49;f=O[b>>3];h=O[a+8>>3];J[195395]=0;d=c+12|0;da(1863,d|0,+(h*f),-1);g=J[195395];J[195395]=0;if((g|0)==1)break u;J[195395]=0;fa(3138,e|0,c+24|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break t;if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);d=Pb(16);J[c+24>>2]=d;J[c+28>>2]=2;J[c+32>>2]=-2147483644;J[d+8>>2]=0;J[d>> -2]=121;J[d+4>>2]=49;f=O[b+8>>3];h=O[a+8>>3];J[195395]=0;d=c+12|0;da(1863,d|0,+(h*f),-1);g=J[195395];J[195395]=0;if((g|0)==1)break r;J[195395]=0;fa(3138,e|0,c+24|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break q;if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);d=Pb(16);J[c+24>>2]=d;J[c+28>>2]=2;J[c+32>>2]=-2147483644;J[d+8>>2]=0;J[d>>2]=120;J[d+4>>2]=50;f=O[a+8>>3];h=O[b>>3];J[195395]=0;d=c+12|0;da(1863,d|0,+(f*(h+1)),-1);g=J[195395];J[195395]=0;if((g|0)==1)break o;J[195395]=0;fa(3138, -e|0,c+24|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break n;if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);d=Pb(16);J[c+24>>2]=d;J[c+28>>2]=2;J[c+32>>2]=-2147483644;J[d+8>>2]=0;J[d>>2]=121;J[d+4>>2]=50;f=O[b+8>>3];h=O[a+8>>3];J[195395]=0;b=c+12|0;da(1863,b|0,+(h*f),-1);d=J[195395];J[195395]=0;if((d|0)==1)break l;J[195395]=0;fa(3138,e|0,c+24|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break k;if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);b=Pb(32);J[c+24>>2]=b;J[c+28>>2]=6; -J[c+32>>2]=-2147483640;d=J[105220];J[b+16>>2]=J[105219];J[b+20>>2]=d;d=J[105218];J[b+8>>2]=J[105217];J[b+12>>2]=d;d=J[105216];J[b>>2]=J[105215];J[b+4>>2]=d;J[b+24>>2]=0;b=K[a+20|0];d=J[a+16>>2];J[195395]=0;g=c+12|0;fa(1975,g|0,d|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break i;J[195395]=0;fa(3138,e|0,c+24|0,g|0);b=J[195395];J[195395]=0;if((b|0)==1)break h;if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);b=Pb(64);J[c+24>>2]=b;J[c+28>>2]=12;J[c+32>>2]=-2147483632;d=J[105706];J[b+40>>2]= -J[105705];J[b+44>>2]=d;d=J[105704];J[b+32>>2]=J[105703];J[b+36>>2]=d;d=J[105702];J[b+24>>2]=J[105701];J[b+28>>2]=d;d=J[105700];J[b+16>>2]=J[105699];J[b+20>>2]=d;d=J[105698];J[b+8>>2]=J[105697];J[b+12>>2]=d;d=J[105696];J[b>>2]=J[105695];J[b+4>>2]=d;J[b+48>>2]=0;f=O[a+8>>3];J[195395]=0;a=c+12|0;da(1863,a|0,+f,-1);b=J[195395];J[195395]=0;if((b|0)==1)break f;J[195395]=0;fa(3138,e|0,c+24|0,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(H[c+23|0]<0)Kb(J[c+12>>2]);if(H[c+35|0]<0)Kb(J[c+24>>2]);a=Pb(32); -J[c>>2]=a;J[c+4>>2]=4;J[c+8>>2]=-2147483640;b=J[106189];J[a+8>>2]=J[106188];J[a+12>>2]=b;b=J[106187];J[a>>2]=J[106186];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;ia(3136,e|0,c|0,1,1);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+11|0]>=0)break w;Kb(J[c>>2])}xb=c+48|0;return}a=Z()|0;if(H[c+47|0]>=0)break b;Kb(J[c+36>>2]);ba(a|0);B()}a=Z()|0;break s}a=Z()|0;if(H[c+23|0]>=0)break s;Kb(J[c+12>>2])}if(H[c+35|0]>=0)break b;break a}a=Z()|0;break p}a=Z()|0;if(H[c+23|0]>=0)break p;Kb(J[c+12>>2])}if(H[c+35| -0]>=0)break b;break a}a=Z()|0;break m}a=Z()|0;if(H[c+23|0]>=0)break m;Kb(J[c+12>>2])}if(H[c+35|0]>=0)break b;break a}a=Z()|0;break j}a=Z()|0;if(H[c+23|0]>=0)break j;Kb(J[c+12>>2])}if(H[c+35|0]>=0)break b;break a}a=Z()|0;break g}a=Z()|0;if(H[c+23|0]>=0)break g;Kb(J[c+12>>2])}if(H[c+35|0]>=0)break b;break a}a=Z()|0;break d}a=Z()|0;if(H[c+23|0]>=0)break d;Kb(J[c+12>>2])}if(H[c+35|0]>=0)break b;break a}a=Z()|0;if(H[c+11|0]>=0)break b;Kb(J[c>>2])}ba(a|0);B()}Kb(J[c+24>>2]);ba(a|0);B()}function qz(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,w=0,x=0,y=0;i=xb-560|0;xb=i;g=c;c=(c-3|0)/24|0;t=(c|0)>0?c:0;k=g+P(t,-24)|0;n=J[(e<<2)+744336>>2];j=d-1|0;if((n+j|0)>=0){g=d+n|0;c=t-j|0;while(1){O[(i+320|0)+(h<<3)>>3]=(c|0)<0?0:+J[(c<<2)+744352>>2];c=c+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}q=k-24|0;g=0;h=(n|0)>0?n:0;m=(d|0)<=0;while(1){a:{if(m){f=0;break a}r=g+j|0;c=0;f=0;while(1){f=O[(c<<3)+a>>3]*O[(i+320|0)+(r-c<<3)>>3]+f;c=c+1|0;if((d|0)!=(c|0))continue;break}}O[(g<< -3)+i>>3]=f;c=(g|0)==(h|0);g=g+1|0;if(!c)continue;break}x=47-k|0;r=48-k|0;y=k-25|0;g=n;b:{while(1){f=O[(g<<3)+i>>3];c=0;h=g;o=(g|0)<=0;if(!o)while(1){m=(i+480|0)+(c<<2)|0;l=f*5.9604644775390625E-8;c:{if(R(l)<2147483648){j=~~l;break c}j=-2147483648}l=+(j|0);f=l*-16777216+f;d:{if(R(f)<2147483648){j=~~f;break d}j=-2147483648}J[m>>2]=j;h=h-1|0;f=O[(h<<3)+i>>3]+l;c=c+1|0;if((g|0)!=(c|0))continue;break}f=Lh(f,q);f=f+V(f*.125)*-8;e:{if(R(f)<2147483648){m=~~f;break e}m=-2147483648}f=f-+(m|0);f:{g:{h:{u=(q| -0)<=0;i:{if(!u){h=(g<<2)+i|0;j=J[h+476>>2];c=j>>r;s=h;h=j-(c<>2]=h;m=c+m|0;j=h>>x;break i}if(q)break h;j=J[((g<<2)+i|0)+476>>2]>>23}if((j|0)<=0)break f;break g}j=2;if(f>=.5)break g;j=0;break f}c=0;h=0;if(!o)while(1){s=(i+480|0)+(c<<2)|0;o=J[s>>2];v=16777215;j:{k:{if(h)break k;v=16777216;if(o)break k;h=0;break j}J[s>>2]=v-o;h=1}c=c+1|0;if((g|0)!=(c|0))continue;break}l:{if(u)break l;c=8388607;m:switch(y|0){case 1:c=4194303;break;case 0:break m;default:break l}o=(g<<2)+i|0;J[o+476>>2]= -J[o+476>>2]&c}m=m+1|0;if((j|0)!=2)break f;f=1-f;j=2;if(!h)break f;f=f-Lh(1,q)}if(f==0){h=0;c=g;n:{if((g|0)<=(n|0))break n;while(1){c=c-1|0;h=J[(i+480|0)+(c<<2)>>2]|h;if((c|0)>(n|0))continue;break}if(!h)break n;k=q;while(1){k=k-24|0;g=g-1|0;if(!J[(i+480|0)+(g<<2)>>2])continue;break}break b}c=1;while(1){h=c;c=c+1|0;if(!J[(i+480|0)+(n-h<<2)>>2])continue;break}h=g+h|0;while(1){j=d+g|0;g=g+1|0;O[(i+320|0)+(j<<3)>>3]=J[(t+g<<2)+744352>>2];c=0;f=0;if((d|0)>0)while(1){f=O[(c<<3)+a>>3]*O[(i+320|0)+(j-c<<3)>> -3]+f;c=c+1|0;if((d|0)!=(c|0))continue;break}O[(g<<3)+i>>3]=f;if((g|0)<(h|0))continue;break}g=h;continue}break}f=Lh(f,24-k|0);o:{if(f>=16777216){d=(i+480|0)+(g<<2)|0;l=f*5.9604644775390625E-8;p:{if(R(l)<2147483648){c=~~l;break p}c=-2147483648}f=+(c|0)*-16777216+f;q:{if(R(f)<2147483648){a=~~f;break q}a=-2147483648}J[d>>2]=a;g=g+1|0;break o}if(R(f)<2147483648)c=~~f;else c=-2147483648;k=q}J[(i+480|0)+(g<<2)>>2]=c}f=Lh(1,k);r:{if((g|0)<0)break r;d=g;while(1){a=d;O[(d<<3)+i>>3]=f*+J[(i+480|0)+(d<<2)>>2]; -d=d-1|0;f=f*5.9604644775390625E-8;if(a)continue;break}if((g|0)<0)break r;h=g;while(1){f=0;c=0;a=g-h|0;d=(a|0)>(n|0)?n:a;if((d|0)>=0)while(1){f=O[(c<<3)+747120>>3]*O[(c+h<<3)+i>>3]+f;k=(c|0)!=(d|0);c=c+1|0;if(k)continue;break}O[(i+160|0)+(a<<3)>>3]=f;a=(h|0)>0;h=h-1|0;if(a)continue;break}}s:{t:{u:switch(e|0){case 3:v:{if((g|0)<=0)break v;f=O[(i+160|0)+(g<<3)>>3];c=g;while(1){l=f;d=i+160|0;a=c-1|0;e=d+(a<<3)|0;w=O[e>>3];f=w+f;O[d+(c<<3)>>3]=l+(w-f);O[e>>3]=f;e=c>>>0>1;c=a;if(e)continue;break}if((g| -0)<2)break v;f=O[d+(g<<3)>>3];c=g;while(1){l=f;d=i+160|0;a=c-1|0;e=d+(a<<3)|0;p=O[e>>3];f=p+f;O[d+(c<<3)>>3]=l+(p-f);O[e>>3]=f;d=c>>>0>2;c=a;if(d)continue;break}p=0;if((g|0)<=1)break v;while(1){p=p+O[(i+160|0)+(g<<3)>>3];a=(g|0)>2;g=g-1|0;if(a)continue;break}}f=O[i+160>>3];if(j)break t;O[b>>3]=f;f=O[i+168>>3];O[b+16>>3]=p;O[b+8>>3]=f;break s;case 0:f=0;if((g|0)>=0)while(1){a=g;g=g-1|0;f=f+O[(i+160|0)+(a<<3)>>3];if(a)continue;break}O[b>>3]=j?-f:f;break s;case 1:case 2:break u;default:break s}f=0;if((g| -0)>=0){d=g;while(1){a=d;d=d-1|0;f=f+O[(i+160|0)+(a<<3)>>3];if(a)continue;break}}O[b>>3]=j?-f:f;f=O[i+160>>3]-f;c=1;if((g|0)>0)while(1){f=f+O[(i+160|0)+(c<<3)>>3];a=(c|0)!=(g|0);c=c+1|0;if(a)continue;break}O[b+8>>3]=j?-f:f;break s}O[b>>3]=-f;f=O[i+168>>3];O[b+16>>3]=-p;O[b+8>>3]=-f}xb=i+560|0;return m&7}function Ls(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,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;i=xb+-64|0;J[i+48>>2]=0;J[i+52>>2]=0;J[i+56>>2]=0;J[i+60>>2]=0;J[i+32>>2]=0; -J[i+36>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0;a:{b:{c:{d:{e:{if(c){if(c>>>0>=4){n=c&-4;while(1){m=i+32|0;l=k<<1;g=m+(L[l+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;g=m+(L[(l|2)+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;g=m+(L[(l|4)+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;g=m+(L[(l|6)+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;k=k+4|0;h=h+4|0;if((n|0)!=(h|0))continue;break}}g=c&3;if(g)while(1){h=(i+32|0)+(L[(k<<1)+b>>1]<<1)|0;I[h>>1]=L[h>>1]+1;k=k+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}k=J[e>>2];l=15;h=L[i+62>>1];if(h)break d;break e}k=J[e>>2]}l=14; -h=0;if(L[i+60>>1])break d;l=13;if(L[i+58>>1])break d;l=12;if(L[i+56>>1])break d;l=11;if(L[i+54>>1])break d;l=10;if(L[i+52>>1])break d;l=9;if(L[i+50>>1])break d;l=8;if(L[i+48>>1])break d;l=7;if(L[i+46>>1])break d;l=6;if(L[i+44>>1])break d;l=5;if(L[i+42>>1])break d;l=4;if(L[i+40>>1])break d;l=3;if(L[i+38>>1])break d;l=2;if(L[i+36>>1])break d;if(!L[i+34>>1]){a=J[d>>2];J[d>>2]=a+4;I[a>>1]=320;I[a+2>>1]=0;a=J[d>>2];J[d>>2]=a+4;I[a>>1]=320;I[a+2>>1]=0;m=1;break b}r=(k|0)!=0;l=1;k=1;break c}r=k>>>0>> -0?k:l;p=1;k=1;while(1){if(L[(i+32|0)+(k<<1)>>1])break c;k=k+1|0;if((l|0)!=(k|0))continue;break}k=l}j=-1;o=L[i+34>>1];if(o>>>0>2)break a;s=L[i+36>>1];g=s+(o<<1)|0;if(g>>>0>4)break a;q=L[i+38>>1];g=q+(g<<1)|0;if(g>>>0>8)break a;t=L[i+40>>1];g=t+(g<<1)|0;if(g>>>0>16)break a;u=L[i+42>>1];g=u+(g<<1)|0;if(g>>>0>32)break a;w=L[i+44>>1];g=64-(w+(g<<1)|0)|0;if((g|0)<0)break a;z=L[i+46>>1];g=(g<<1)-z|0;if((g|0)<0)break a;A=L[i+48>>1];g=(g<<1)-A|0;if((g|0)<0)break a;x=L[i+50>>1];g=(g<<1)-x|0;if((g|0)<0)break a; -y=L[i+52>>1];g=(g<<1)-y|0;if((g|0)<0)break a;B=L[i+54>>1];g=(g<<1)-B|0;if((g|0)<0)break a;v=L[i+56>>1];g=(g<<1)-v|0;if((g|0)<0)break a;m=L[i+58>>1];g=(g<<1)-m|0;if((g|0)<0)break a;n=L[i+60>>1];g=(g<<1)-n|0;if((g|0)<0)break a;g=g<<1;if(g>>>0>>0|(!a|p?(h|0)!=(g|0):0))break a;C=k>>>0>>0;j=0;I[i+2>>1]=0;I[i+4>>1]=o;h=o+s|0;I[i+6>>1]=h;h=h+q|0;I[i+8>>1]=h;h=h+t|0;I[i+10>>1]=h;h=h+u|0;I[i+12>>1]=h;h=h+w|0;I[i+14>>1]=h;h=h+z|0;I[i+16>>1]=h;h=h+A|0;I[i+18>>1]=h;h=h+x|0;I[i+20>>1]=h;h=h+y|0;I[i+22>> -1]=h;h=h+B|0;I[i+24>>1]=h;h=h+v|0;I[i+26>>1]=h;h=h+m|0;I[i+28>>1]=h;I[i+30>>1]=h+n;f:{if(!c)break f;if((c|0)!=1){m=c&-2;h=0;while(1){g=L[(j<<1)+b>>1];if(g){g=(g<<1)+i|0;n=L[g>>1];I[g>>1]=n+1;I[(n<<1)+f>>1]=j}n=j|1;g=L[(n<<1)+b>>1];if(g){g=(g<<1)+i|0;v=L[g>>1];I[g>>1]=v+1;I[(v<<1)+f>>1]=n}j=j+2|0;h=h+2|0;if((m|0)!=(h|0))continue;break}}if(!(c&1))break f;c=L[(j<<1)+b>>1];if(!c)break f;c=(c<<1)+i|0;h=L[c>>1];I[c>>1]=h+1;I[(h<<1)+f>>1]=j}m=C?r:k;s=20;z=0;c=f;w=c;A=0;g:{h:switch(a|0){case 1:j=1;if(m>>> -0>9)break a;s=257;w=231056;c=230992;A=1;break g;case 0:break g;default:break h}z=(a|0)==2;s=0;w=231184;c=231120;if((a|0)!=2)break g;j=1;if(m>>>0>9)break a}q=1<>2];u=0;h=m;o=0;p=0;g=-1;while(1){n=1<>1];a=0;j:{if(h+1>>>0>>0)break j;if(h>>>0>>0){h=0;a=96;break j}a=h-s<<1;h=L[a+c>>1];a=K[a+w|0]}v=p>>>o|0;x=k-o|0;C=-1<>1]=h;H[y+1|0]=x;H[y|0]=a;if(j)continue;break}h=1<>>1|0;if(a&p)continue; -break}h=(i+32|0)+(k<<1)|0;j=L[h>>1]-1|0;I[h>>1]=j;p=a?a+(a-1&p)|0:0;u=u+1|0;if(!(j&65535)){if((k|0)==(l|0))break i;k=L[(L[(u<<1)+f>>1]<<1)+b>>1]}if(k>>>0<=m>>>0)continue;a=p&B;if((a|0)==(g|0))continue;break}o=o?o:m;h=k-o|0;r=1<>>0>>0){g=l-o|0;j=k;k:{while(1){j=r-L[(i+32|0)+(j<<1)>>1]|0;if((j|0)<=0)break k;r=j<<1;h=h+1|0;j=o+h|0;if(l>>>0>j>>>0)continue;break}h=g}r=1<>>0>852&A|q>>>0>592&z)break a;j=J[d>>2];g=j+(a<<2)|0;H[g+1|0]=m;H[g|0]=h;t=(n<<2)+t|0;I[g+2>>1]=t-j>>> -2;g=a;continue}break}if(p){a=(p<<2)+t|0;I[a+2>>1]=0;H[a+1|0]=x;H[a|0]=64}J[d>>2]=J[d>>2]+(q<<2)}J[e>>2]=m;j=0}return j}function cma(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;H[c+140|0]=K[c+140|0]|8;b=0;a=0;k=c;m=J[c+80>>2];g=1;j=J[c+68>>2];c=!j;while(1){a:{b:{if(!c){a=K[l+146688|0]==2?b:a;d=l<<1;f=I[d+146272>>1]+144272|0;c=H[l+146384|0];l=K[d+144160|0];e=K[(P(b,20)+m|0)+18|0];if(l>>>0<=e>>>0)c=e>>>0>K[d+144161|0]?c:e-l|0;c=H[c+f|0];break b}if(!l)break a;b=j;c=I[(l<<1)+146576>> -1]-1|0}l=H[c+146448|0];d=c&31;if((c&63)>>>0>=32)d=268337151>>>d|0;else d=((1<>>d;c:{if(d&1)break c;d:switch(H[c+146512|0]-3|0){case 3:e:{if(b+1>>>0<=a>>>0)break e;f=m+3|0;e=g<<4;c=a;h=b-c|0;i=h+1&7;if(i){d=0;while(1){H[(f+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if(h>>>0<=6)break e;while(1){d=f+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;d=c+7|0;c=c+8|0;if((b|0)!=(d|0))continue; -break}}c=g+1|0;g=(c|0)==16?1:c;break c;case 1:f:{if(b+1>>>0<=a>>>0)break f;f=m+3|0;e=g<<4|2;c=a;h=b-c|0;i=h+1&7;if(i){d=0;while(1){H[(f+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if(h>>>0<=6)break f;while(1){d=f+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;d=c+7|0;c=c+8|0;if((b|0)!=(d|0))continue;break}}c=g+1|0;g=(c|0)==16?1:c;break c;case 5:g:{if(b+1>>>0<=a>>>0)break g;f=m+3|0;e=g<<4|1;c=a;h=b-c|0;i=h+1&7;if(i){d= -0;while(1){H[(f+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if(h>>>0<=6)break g;while(1){d=f+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;d=c+7|0;c=c+8|0;if((b|0)!=(d|0))continue;break}}J[k+144>>2]=J[k+144>>2]|64;c=g+1|0;g=(c|0)==16?1:c;break c;case 0:h:{if(b+1>>>0<=a>>>0)break h;f=m+3|0;e=g<<4|2;c=a;h=b-c|0;i=h+1&7;if(i){d=0;while(1){H[(f+P(c,20)|0)+12|0]=e;c=c+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}if(h>>> -0<=6)break h;while(1){d=f+P(c,20)|0;H[d+32|0]=e;H[d+12|0]=e;H[d+52|0]=e;H[d+72|0]=e;H[d+92|0]=e;H[d+112|0]=e;H[d+132|0]=e;H[d+152|0]=e;d=c+7|0;c=c+8|0;if((b|0)!=(d|0))continue;break}}c=g+1|0;g=(c|0)==16?1:c;break c;case 2:e=b-1|0;i:{if(a>>>0>=b>>>0)break i;h=m+3|0;f=g<<4;d=a;i=b-d&7;if(i){c=0;while(1){H[(h+P(d,20)|0)+12|0]=f;d=d+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+b>>>0<=6)break i;while(1){c=h+P(d,20)|0;H[c+32|0]=f;H[c+12|0]=f;H[c+52|0]=f;H[c+72|0]=f;H[c+92|0]=f;H[c+112|0]=f;H[c+ -132|0]=f;H[c+152|0]=f;d=d+8|0;if((d|0)!=(b|0))continue;break}}b=g+1|0;g=(b|0)==16?1:b;b=e;break c;case 4:e=b-1|0;j:{if(a>>>0>=b>>>0)break j;h=m+3|0;f=g<<4|1;d=a;i=b-d&7;if(i){c=0;while(1){H[(h+P(d,20)|0)+12|0]=f;d=d+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+b>>>0<=6)break j;while(1){c=h+P(d,20)|0;H[c+32|0]=f;H[c+12|0]=f;H[c+52|0]=f;H[c+72|0]=f;H[c+92|0]=f;H[c+112|0]=f;H[c+132|0]=f;H[c+152|0]=f;d=d+8|0;if((d|0)!=(b|0))continue;break}}J[k+144>>2]=J[k+144>>2]|64;b=g+1|0;g=(b|0)==16?1:b;b= -e;break c;case 6:break d;default:break c}e=b-1|0;k:{if(a>>>0>=b>>>0)break k;h=m+3|0;f=g<<4|2;d=a;i=b-d&7;if(i){c=0;while(1){H[(h+P(d,20)|0)+12|0]=f;d=d+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if((a^-1)+b>>>0<=6)break k;while(1){c=h+P(d,20)|0;H[c+32|0]=f;H[c+12|0]=f;H[c+52|0]=f;H[c+72|0]=f;H[c+92|0]=f;H[c+112|0]=f;H[c+132|0]=f;H[c+152|0]=f;d=d+8|0;if((d|0)!=(b|0))continue;break}}b=g+1|0;g=(b|0)==16?1:b;b=e}a=K[l+146752|0]!=1?a:0;b=b+1|0;if((j|0)==(b|0))c=1;else c=0;continue}break}b=J[k+68>>2]; -l:{if(!b)break l;c=b-1|0;d=J[k+80>>2];j=d+3|0;a=0;d=K[d+15|0];while(1){m:{if((a|0)==(c|0)){a=b;break m}a=a+1|0;if((d|0)==K[(j+P(a,20)|0)+12|0])continue}break}if(!b)break l;d=0;while(1){c=d;d=a;Ac(k,3,c,d,1,0);c=J[k+68>>2];j=d+1|0;c=c>>>0>j>>>0?c:j;j=c-1|0;e=J[k+80>>2];g=e+3|0;e=K[(e+P(d,20)|0)+15|0];while(1){n:{if((a|0)==(j|0)){a=c;break n}a=a+1|0;if((e|0)==K[(g+P(a,20)|0)+12|0])continue}break}if(b>>>0>d>>>0)continue;break}}return 0}function i2(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; -d=xb-176|0;xb=d;f=O[c+24>>3];h=O[c+8>>3];g=O[c+16>>3];i=O[c>>3];J[195395]=0;g=i+g;da(1863,d+48|0,+((i+g)*.5),-1);b=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((b|0)!=1){J[195395]=0;c=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break q;J[d+60>>2]=c;J[d+64>>2]=2;J[d+68>>2]=-2147483644;b=0;J[c+8>>2]=0;J[c>>2]=99;J[c+4>>2]=120;J[d+80>>2]=J[d+56>>2];J[d+56>>2]=0;c=J[d+52>>2];J[d+72>>2]=J[d+48>>2];J[d+76>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;J[195395]=0;f=h+f;da(1863,d+32| -0,+((h+f)*.5),-1);e=J[195395];J[195395]=0;c=d+84|0;if((e|0)==1)break p;J[195395]=0;e=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break o;J[d+88>>2]=2;J[d+92>>2]=-2147483644;J[d+84>>2]=e;b=0;J[e+8>>2]=0;J[e>>2]=99;J[e+4>>2]=121;J[d+104>>2]=J[d+40>>2];c=J[d+36>>2];J[d+96>>2]=J[d+32>>2];J[d+100>>2]=c;J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[195395]=0;da(1863,d+16|0,+((g-i)*.5),-1);e=J[195395];J[195395]=0;c=d+108|0;if((e|0)==1)break n;J[195395]=0;e=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)== -1)break m;J[d+112>>2]=2;J[d+116>>2]=-2147483644;J[d+108>>2]=e;b=0;J[e+8>>2]=0;J[e>>2]=114;J[e+4>>2]=120;J[d+128>>2]=J[d+24>>2];c=J[d+20>>2];J[d+120>>2]=J[d+16>>2];J[d+124>>2]=c;J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[195395]=0;da(1863,d|0,+((f-h)*.5),-1);c=J[195395];J[195395]=0;if((c|0)==1)break l;J[195395]=0;b=_(1078,16)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[d+136>>2]=2;J[d+140>>2]=-2147483644;J[d+132>>2]=b;J[b+8>>2]=0;J[b>>2]=114;J[b+4>>2]=121;J[d+152>>2]=J[d+8>>2];b=J[d+4>>2];J[d+144>> -2]=J[d>>2];J[d+148>>2]=b;J[d+8>>2]=0;J[d+164>>2]=0;J[d+156>>2]=0;J[d+160>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[195395]=0;H[d+172|0]=0;c=d+156|0;J[d+168>>2]=c;b=_(1078,96)|0;e=J[195395];J[195395]=0;r:{s:{if((e|0)!=1){J[d+160>>2]=b;J[d+156>>2]=b;J[195395]=0;J[d+164>>2]=b+96;c=ha(1957,d+164|0,d+60|0,c|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break r;a=Z()|0;J[d+160>>2]=b;break s}a=Z()|0}Kc(d+168|0);Vb(d+132|0);Vb(d+108|0);Vb(d+84|0);Vb(d+60|0);b=1;break j}J[d+160>>2]=c;if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+ -143|0]<0)Kb(J[d+132>>2]);if(H[d+131|0]<0)Kb(J[d+120>>2]);if(H[d+119|0]<0)Kb(J[d+108>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);J[195395]=0;b=a+8|0;c=d+156|0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]= -0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[d+60>>2]=a;J[d+64>>2]=7;J[d+68>>2]=-2147483640;J[a+24>>2]=J[99984];e=J[99983];J[a+16>>2]=J[99982];J[a+20>>2]=e;e=J[99981];J[a+8>>2]=J[99980];J[a+12>>2]=e;e=J[99979];J[a>>2]=J[99978];J[a+4>>2]=e;J[a+28>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,b|0,d+60|0,c|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+71|0]<0)Kb(J[d+ -60>>2]);b=J[d+156>>2];if(b){a=b;c=J[d+160>>2];if((b|0)!=(c|0)){while(1){if(H[c-1|0]<0)Kb(J[c-12>>2]);a=c-24|0;if(H[c-13|0]<0)Kb(J[a>>2]);c=a;if((b|0)!=(c|0))continue;break}a=J[d+156>>2]}J[d+160>>2]=b;Kb(a)}xb=d+176|0;return}ba(Z()|0);B()}a=Z()|0;b=0;c=d+60|0;break f}a=Z()|0;break f}a=Z()|0;b=0;break g}a=Z()|0;break g}a=Z()|0;b=0;break h}a=Z()|0;break i}a=Z()|0;b=0}if(H[d+11|0]>=0)break i;Kb(J[d>>2])}c=d+132|0}if(H[d+27|0]>=0)break g;Kb(J[d+16>>2])}if(H[d+43|0]>=0)break f;Kb(J[d+32>>2])}if(H[d+59| -0]<0)Kb(J[d+48>>2]);if((d+60|0)==(c|0)|b)break a;while(1){c=Vb(c-24|0);if((c|0)!=(d+60|0))continue;break}break a}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+71|0]>=0)break b;Kb(J[d+60>>2])}Hc(d+156|0)}ba(a|0);B()}function mo(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;b=0;a:{if(!a)break a;n=J[a+12>>2];b=n>>31;l=J[a+8>>2];c=l>>31;g=J[a+4>>2];h=g>>31;e=J[a>>2];a=e>>31;f=(b^n)-b|0;i=(c^l)-c|0;d=(h^g)-h|0;m=(a^e)-a|0;a=(d|0)>(m|0)?d: -m;a=(a|0)<(i|0)?i:a;b=(a|0)<(f|0)?f:a;if(b>>>0>=23171){b:{c:{if(b>>>0<=65535){a=((b<<16|11584)>>>0)/23170|0;k=a;break c}a=2147483647;k=2147483647;if(b>>>0>1518469119)break c;a=b<<16|11585;h=b>>>16|0;c=S(h);b=32-c|0;h=a>>>b|h<>>0)/23170|0;h=P(k,-23170)+h|0;a=a<>>31;j=b>>>0>23169;h=(j?-23170:0)+b|0;k=j|k<<1;b=31-c|0;a=a<<1}if((c|0)!=31)while(1){c=h<<1|a>>>31;j=c>>>0>23169;c=a>>>30&1|(j?2147460478:0)+c<<1;o=c>>>0>23169;h=(o?-23170:0)+c|0;k=o|(k<<2|j<<1);a=a<<2;b=b-2|0;if(b)continue; -break}a=k>>31;a=(a^k)-a|0;if(k)break c;f=2147483647;k=0;m=1;break b}b=e?(m|0)==2147483647?2147483647:m:2147483647;b=g?b>>>0>d>>>0?d:b:b;b=l?b>>>0>i>>>0?i:b:b;b=n?b>>>0>f>>>0?f:b:b;if(b>>>0<=(a>>>17^65535)>>>0){f=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;m=0;break b}f=2147483647;m=0;c=a>>>1|0;d=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>d>>>0)|0;if(b>>>0>=a>>>0)break b;h=S(b);i=32-h|0;b=d>>>i|b<>>0)/(a>>>0)|0;c=b-P(a,f)|0;b=d<>>31;i=c>>>0>=a>>>0;c=c-(i?a:0)|0;f=i|f<<1;i=31-h|0;b=b<<1}if((h| -0)==31)break b;while(1){c=c<<1|b>>>31;h=c>>>0>=a>>>0;c=b>>>30&1|c-(h?a:0)<<1;d=c>>>0>=a>>>0;c=c-(d?a:0)|0;f=d|(f<<2|h<<1);b=b<<2;i=i-2|0;if(i)continue;break}}b=0;if(!((k|0)<0?0-f|0:f))break a;i=2147483647;h=2147483647;d:{if(m)break d;b=e>>31;b=(b^e)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){h=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break d}c=a>>>1|0;j=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>j>>>0)|0;if(b>>>0>=a>>>0)break d;f=S(b);c=32-f|0;b=j>>>c|b<>>0)/(a>>>0)|0;d=b-P(a,h)|0;b=j<>>31;c=d>>> -0>=a>>>0;d=d-(c?a:0)|0;h=c|h<<1;c=31-f|0;b=b<<1}if((f|0)==31)break d;while(1){d=d<<1|b>>>31;f=d>>>0>=a>>>0;d=b>>>30&1|d-(f?a:0)<<1;j=d>>>0>=a>>>0;d=d-(j?a:0)|0;h=j|(h<<2|f<<1);b=b<<2;c=c-2|0;if(c)continue;break}}j=(k|0)<0;o=e>>31|1;p=0-o|0;e:{if(m)break e;b=g>>31;b=(b^g)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){i=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break e}c=a>>>1|0;d=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>d>>>0)|0;if(b>>>0>=a>>>0)break e;f=S(b);e=32-f|0;b=d>>>e|b<>>0)/(a>>>0)|0;c=b-P(a,i)|0;b=d<>>31;e=c>>>0>=a>>>0;c=c-(e?a:0)|0;i=e|i<<1;e=31-f|0;b=b<<1}if((f|0)==31)break e;while(1){c=c<<1|b>>>31;f=c>>>0>=a>>>0;c=b>>>30&1|c-(f?a:0)<<1;d=c>>>0>=a>>>0;c=c-(d?a:0)|0;i=d|(i<<2|f<<1);b=b<<2;e=e-2|0;if(e)continue;break}}o=j?p:o;b=g>>31|1;p=j?0-b|0:b;c=2147483647;f=2147483647;f:{if(m)break f;b=l>>31;b=(b^l)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){f=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break f}e=a>>>1|0;j=e+(b<<16)|0;b=(b>>>16|0)+(e>>>0>j>>>0)|0;if(b>>>0>=a>>>0)break f;g=S(b);e=32-g|0;b=j>>>e| -b<>>0)/(a>>>0)|0;d=b-P(a,f)|0;b=j<>>31;e=d>>>0>=a>>>0;d=d-(e?a:0)|0;f=e|f<<1;e=31-g|0;b=b<<1}if((g|0)==31)break f;while(1){d=d<<1|b>>>31;g=d>>>0>=a>>>0;d=b>>>30&1|d-(g?a:0)<<1;j=d>>>0>=a>>>0;d=d-(j?a:0)|0;f=j|(f<<2|g<<1);b=b<<2;e=e-2|0;if(e)continue;break}}d=(o|0)<0;j=0-h|0;o=(p|0)<0;p=0-i|0;b=l>>31|1;q=(k|0)<0;r=((q?0-b|0:b)|0)<0;s=0-f|0;g:{if(m)break g;b=n>>31;b=(b^n)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){c=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break g}e=a>>>1|0;k=e+(b<<16)| -0;b=(b>>>16|0)+(e>>>0>k>>>0)|0;if(b>>>0>=a>>>0)break g;e=S(b);l=32-e|0;b=k>>>l|b<>>0)/(a>>>0)|0;g=b-P(a,c)|0;b=k<>>31;l=g>>>0>=a>>>0;g=g-(l?a:0)|0;c=l|c<<1;l=31-e|0;b=b<<1}if((e|0)==31)break g;while(1){g=g<<1|b>>>31;e=g>>>0>=a>>>0;g=b>>>30&1|g-(e?a:0)<<1;k=g>>>0>=a>>>0;g=g-(k?a:0)|0;c=k|(c<<2|e<<1);b=b<<2;l=l-2|0;if(l)continue;break}}g=o?p:i;l=r?s:f;a=n>>31|1;n=((q?0-a|0:a)|0)<0?0-c|0:c;e=d?j:h}a=P(e,n);c=P(g,l);b=0;if((a|0)==(c|0))break a;b=a-c|0;a=b>>31;b=(((P(e,e)+P(g, -g)|0)+P(l,l)|0)+P(n,n)>>>0)/((a^b)-a>>>0)>>>0<51}return b}function hla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;while(1){a:{b:{if(M[a+116>>2]>=262){h=J[a+112>>2];d=J[a+96>>2];break b}ro(a);c=J[a+116>>2];if(!(c>>>0>=262|b))return 0;if(c){h=J[a+112>>2];d=J[a+96>>2];if(c>>>0>2)break b;J[a+100>>2]=h;J[a+120>>2]=d;g=2;J[a+96>>2]=2;break a}if(J[a+104>>2]){d=K[(J[a+56>>2]+J[a+108>>2]|0)-1|0];c=J[a+5792>>2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>>2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]= -L[c+148>>1]+1;J[a+104>>2]=0}d=J[a+108>>2];J[a+5812>>2]=d>>>0>=2?2:d;if((b|0)==4){c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;Bf(a,b,d-c|0,1);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];oe(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;c:{if(!c)break c;Mb(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break c;J[d+16>>2]=J[d+8>>2]}return(J[J[a>>2]+16>>2]?3:2)|0}d:{if(!J[a+5792>> -2])break d;c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;Bf(a,b,d-c|0,0);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];oe(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;e:{if(!c)break e;Mb(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break e;J[d+16>>2]=J[d+8>>2]}if(J[J[a>>2]+16>>2])break d;return 0}return 1}g=2;f=J[a+108>>2];c=J[a+84>>2]&(K[(f+J[a+56>>2]|0)+2|0]^J[a+72>>2]<< -J[a+88>>2]);J[a+72>>2]=c;c=J[a+68>>2]+(c<<1)|0;e=L[c>>1];I[J[a+64>>2]+((f&J[a+52>>2])<<1)>>1]=e;I[c>>1]=f;J[a+100>>2]=h;J[a+120>>2]=d;J[a+96>>2]=2;if(!e)break a;f:{if(J[a+44>>2]-262>>>0>>0|M[a+128>>2]<=d>>>0)break f;g=QF(a,e);J[a+96>>2]=g;if(g>>>0>5)break f;if(J[a+136>>2]!=1){if((g|0)!=3)break f;g=3;if(J[a+108>>2]-J[a+112>>2]>>>0<4097)break f}g=2;J[a+96>>2]=2}d=J[a+120>>2]}if(!(d>>>0<3|d>>>0>>0)){h=J[a+116>>2];c=J[a+5792>>2];f=J[a+108>>2];e=f+(J[a+100>>2]^-1)|0;I[J[a+5796>>2]+(c<<1)>>1]=e; -J[a+5792>>2]=c+1;i=c+J[a+5784>>2]|0;c=d-3|0;H[i|0]=c;c=((K[(c&255)+231760|0]<<2)+a|0)+1176|0;I[c>>1]=L[c>>1]+1;c=e-1&65535;c=((K[(c>>>0<256?c:(c>>>7|0)+256|0)+231248|0]<<2)+a|0)+2440|0;I[c>>1]=L[c>>1]+1;c=J[a+120>>2];g=c-2|0;J[a+120>>2]=g;J[a+116>>2]=(J[a+116>>2]-c|0)+1;i=(f+h|0)-3|0;d=J[a+108>>2];h=J[a+5788>>2]-1|0;f=J[a+5792>>2];while(1){c=d;d=c+1|0;J[a+108>>2]=d;if(d>>>0<=i>>>0){e=J[a+84>>2]&(K[(c+J[a+56>>2]|0)+3|0]^J[a+72>>2]<>2]);J[a+72>>2]=e;e=J[a+68>>2]+(e<<1)|0;I[J[a+64>>2]+((J[a+ -52>>2]&d)<<1)>>1]=L[e>>1];I[e>>1]=d}g=g-1|0;J[a+120>>2]=g;if(g)continue;break}J[a+96>>2]=2;J[a+104>>2]=0;c=c+2|0;J[a+108>>2]=c;if((f|0)!=(h|0))continue;e=J[a+92>>2];if((e|0)>=0)d=e+J[a+56>>2]|0;else d=0;Bf(a,d,c-e|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];oe(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;g:{if(!d)break g;Mb(J[f+12>>2],J[e+16>>2],d);J[f+12>>2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+20>>2];J[f+16>>2]=J[f+16>>2]-d;c=J[e+20>>2];J[e+20>>2]=c-d;if((c|0)!=(d|0))break g; -J[e+16>>2]=J[e+8>>2]}if(J[J[a>>2]+16>>2])continue;return 0}if(J[a+104>>2]){d=K[(J[a+56>>2]+J[a+108>>2]|0)-1|0];c=J[a+5792>>2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>>2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]=L[c+148>>1]+1;h:{if(J[a+5792>>2]!=(J[a+5788>>2]-1|0))break h;d=J[a+92>>2];if((d|0)>=0)c=d+J[a+56>>2]|0;else c=0;Bf(a,c,J[a+108>>2]-d|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];oe(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;if(!d)break h;Mb(J[f+12>>2],J[e+16>>2],d);J[f+12>> -2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+20>>2];J[f+16>>2]=J[f+16>>2]-d;c=J[e+20>>2];J[e+20>>2]=c-d;if((c|0)!=(d|0))break h;J[e+16>>2]=J[e+8>>2]}J[a+108>>2]=J[a+108>>2]+1;J[a+116>>2]=J[a+116>>2]-1;if(J[J[a>>2]+16>>2])continue}else{J[a+104>>2]=1;J[a+108>>2]=J[a+108>>2]+1;J[a+116>>2]=J[a+116>>2]-1;continue}break}return 0}function B2(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;c=xb-176|0;xb=c;d=J[b+12>>2];e=J[b+4>>2];f=J[b+8>>2];b=J[b>>2];J[195395]=0;g=+(f|0);h=+(b| -0);b=g>2];J[c+56>>2]=0;J[c+80>>2]=f;J[c+60>>2]=120;J[c+64>>2]=0;f=J[c+48>>2];m=J[c+52>>2];J[c+48>>2]=0;J[c+52>>2]=0;J[c+72>>2]=f;J[c+76>>2]=m;J[195395]=0;H[c+71|0]=1;i=+(d|0);j=+(e|0);f=i>2];J[c+96>>2]=J[c+32>>2];J[c+100>>2]=d;e=J[c+40>>2];d=0;J[c+40>>2]=0;J[c+104>>2]=e;J[c+84>>2]=121;J[c+88>> -2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[195395]=0;H[c+95|0]=1;g=(b?h:g)-k;da(1863,c+16|0,+g,-1);e=J[195395];J[195395]=0;b=c+108|0;if((e|0)==1)break n;J[195395]=0;e=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break m;J[c+112>>2]=5;J[c+116>>2]=-2147483640;J[c+108>>2]=e;d=0;J[e+16>>2]=J[99151];b=J[99150];J[e+8>>2]=J[99149];J[e+12>>2]=b;b=J[99148];J[e>>2]=J[99147];J[e+4>>2]=b;J[e+20>>2]=0;J[c+128>>2]=J[c+24>>2];J[c+24>>2]=0;b=J[c+20>>2];J[c+120>>2]=J[c+16>>2];J[c+124>>2]=b;J[c+16>>2]=0;J[c+20>>2]=0;J[195395]= -0;h=(f?j:i)-l;da(1863,c|0,+h,-1);b=J[195395];J[195395]=0;if((b|0)==1)break l;J[195395]=0;b=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break k;J[c+136>>2]=6;J[c+140>>2]=-2147483640;J[c+132>>2]=b;d=J[99193];J[b+16>>2]=J[99192];J[b+20>>2]=d;d=J[99191];J[b+8>>2]=J[99190];J[b+12>>2]=d;d=J[99189];J[b>>2]=J[99188];J[b+4>>2]=d;J[b+24>>2]=0;J[c+152>>2]=J[c+8>>2];J[c+8>>2]=0;b=J[c+4>>2];J[c+144>>2]=J[c>>2];J[c+148>>2]=b;J[c+156>>2]=0;J[c+160>>2]=0;J[c+164>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[195395]=0;H[c+172| -0]=0;d=c+156|0;J[c+168>>2]=d;b=_(1078,96)|0;e=J[195395];J[195395]=0;p:{q:{if((e|0)!=1){J[c+160>>2]=b;J[c+156>>2]=b;J[195395]=0;J[c+164>>2]=b+96;d=ha(1957,c+164|0,c+60|0,d|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break p;a=Z()|0;J[c+160>>2]=b;break q}a=Z()|0}Kc(c+168|0);Vb(c+132|0);Vb(c+108|0);Vb(c+84|0);Vb(c+60|0);d=1;break j}J[c+160>>2]=d;if(H[c+155|0]<0)Kb(J[c+144>>2]);if(H[c+143|0]<0)Kb(J[c+132>>2]);if(H[c+131|0]<0)Kb(J[c+120>>2]);if(H[c+119|0]<0)Kb(J[c+108>>2]);if(H[c+107|0]<0)Kb(J[c+96>> -2]);if(H[c+95|0]<0)Kb(J[c+84>>2]);if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+71|0]<0)Kb(J[c+60>>2]);if(H[c+11|0]<0)Kb(J[c>>2]);if(H[c+27|0]<0)Kb(J[c+16>>2]);if(H[c+43|0]<0)Kb(J[c+32>>2]);if(H[c+59|0]<0)Kb(J[c+48>>2]);J[195395]=0;b=a+8|0;d=c+156|0;$(1963,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,b|0,d|0,+g,+h);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,d|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]= -0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[c+60>>2]=a;J[c+64>>2]=4;J[c+68>>2]=-2147483640;e=J[100978];J[a+8>>2]=J[100977];J[a+12>>2]=e;e=J[100976];J[a>>2]=J[100975];J[a+4>>2]=e;J[a+16>>2]=0;J[195395]=0;J[c+48>>2]=0;H[c+59|0]=0;ia(1961,b|0,c+60|0,d|0,c+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+71|0]<0)Kb(J[c+60>>2]);d=J[c+156>>2];if(d){a=d;b=J[c+160>>2];if((d|0)!=(b|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>> -2]);a=b-24|0;if(H[b-13|0]<0)Kb(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}a=J[c+156>>2]}J[c+160>>2]=d;Kb(a)}xb=c+176|0;return}ba(Z()|0);B()}b=c+84|0;a=Z()|0;d=0;break f}a=Z()|0;break g}a=Z()|0;d=0;break h}a=Z()|0;break i}a=Z()|0;d=0}if(H[c+11|0]>=0)break i;Kb(J[c>>2])}b=c+132|0}if(H[c+27|0]>=0)break g;Kb(J[c+16>>2])}if(H[c+43|0]>=0)break f;Kb(J[c+32>>2])}if(H[c+59|0]<0)Kb(J[c+48>>2]);if(d)break a;while(1){b=Vb(b-24|0);if((b|0)!=(c+60|0))continue;break}break a}a=Z()|0;break b}a=Z()|0;break b}a=Z()| -0;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+71|0]>=0)break b;Kb(J[c+60>>2])}Hc(c+156|0)}ba(a|0);B()}function bm(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,w=0,x=0;l=xb-16|0;xb=l;J[l+12>>2]=0;J[a+1404>>2]=0;J[a+1392>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;e=J[a>>2];i=J[a+16>>2];m=J[a+8>>2];k=J[a+12>>2];t=J[a+4>>2];d=I[b>>1];a:{b:{c:{if(d>>>0<=8){if(J[a+40>>2])break b;J[a+40>>2]=a+2760;c=8;break c}c=J[a+32>>2];if(c>>>0>=d>>>0)break b;h=c;c= -d+3&-4;d=J[a+40>>2];if((d|0)==(a+2760|0)){J[a+40>>2]=0;d=0}w=a,x=Tb(e,4,h,c,d,l+12|0),J[w+40>>2]=x;if(J[l+12>>2])break a}J[a+32>>2]=c}c=I[b+2>>1];d=c+2|0;d:{if(d>>>0<=96){if(J[a+28>>2])break d;J[a+20>>2]=96;J[a+28>>2]=a+2792;break d}f=d;d=J[a+20>>2];if(f>>>0<=d>>>0)break d;h=c+11&-8;c=J[a+28>>2];if((c|0)==(a+2792|0)){J[a+28>>2]=0;c=0}w=a,x=Tb(e,40,d,h,c,l+12|0),J[w+28>>2]=x;if(J[l+12>>2])break a;J[a+20>>2]=h;c=I[b+2>>1]}J[a+24>>2]=c;c=I[b>>1];J[a+1416>>2]=-1;J[a+68>>2]=2;J[a+36>>2]=c;if((hD(b)|0)== -1){J[a+1416>>2]=1;J[a+68>>2]=-2}J[a+12>>2]=k;J[a+4>>2]=t;J[a+2752>>2]=0;J[a+2756>>2]=0;J[a+16>>2]=i;J[a+8>>2]=m;p=J[a+24>>2];if(!p)break a;h=J[a+28>>2];r=h+P(p,40)|0;s=P(L[J[J[a+2748>>2]+4>>2]+68>>1],20)>>>11|0;e=J[b+12>>2];if((p|0)>0){d=J[b+4>>2];n=J[b+8>>2];c=h;g=I[e>>1];f=c+P(g,40)|0;e=f;while(1){I[c+2>>1]=1028;j=J[d>>2];I[c+12>>1]=j;I[c+14>>1]=J[d+4>>2];j=Rb(j,t)+m|0;J[c+4>>2]=j;J[c+16>>2]=j;j=Rb(J[d+4>>2],k)+i|0;J[c+8>>2]=j;J[c+20>>2]=j;j=J[b+4>>2]+(g<<16>>16<<3)|0;I[f+12>>1]=J[j>>2];I[f+14>> -1]=J[j+4>>2];j=K[n|0]&3;I[c>>1]=j?((j|0)==2)<<1:1;u=I[c+14>>1]-I[e+14>>1]|0;j=u>>31;v=I[c+12>>1]-I[e+12>>1]|0;q=v>>31;if((j^u)-j+((q^v)-q)>>>0>>0)I[e>>1]=L[e>>1]|32;J[c+36>>2]=e;J[e+32>>2]=c;e:{if((c|0)!=(f|0)){e=c;break e}o=o+1|0;if((o|0)>=I[b>>1]){e=c;f=c;break e}g=I[J[b+12>>2]+(o<<1)>>1];e=P(g,40)+h|0;f=e}n=n+1|0;d=d+8|0;c=c+40|0;if(r>>>0>c>>>0)continue;break}e=J[b+12>>2]}b=J[a+36>>2];f:{if((b|0)<=0)break f;c=J[a+40>>2];f=c+(b<<2)|0;d=0;while(1){J[c>>2]=P(d<<16>>16,40)+h;d=L[e>>1]+1|0;e=e+2| -0;c=c+4|0;if(f>>>0>c>>>0)continue;break}if((b|0)<=0)break f;m=J[a+40>>2];j=m+(b<<2)|0;q=(s<<1)-1|0;while(1){d=J[m>>2];c=d;while(1){g:{f=c;n=I[c+12>>1];c=J[c+36>>2];if((d|0)==(c|0)){b=L[f+14>>1];break g}b=I[f+14>>1];g=b-I[c+14>>1]|0;a=g>>31;i=n-I[c+12>>1]|0;e=i>>31;if((q|0)>((a^g)-a+((e^i)-e)|0))continue}break}J[f+24>>2]=0;J[f+28>>2]=0;c=0;d=f;a=d;e=0;while(1){i=n<<16>>16;g=b<<16>>16;d=J[d+32>>2];b=I[d+14>>1];e=(b-g|0)+e|0;g=e>>31;n=I[d+12>>1];c=(n-i|0)+c|0;i=c>>31;g=(e^g)-g|0;i=(c^i)-i|0;h:{if(g+ -i>>>0>>0){I[d>>1]=L[d>>1]|16;break h}k=(d-a|0)/40|0;J[a+24>>2]=k;J[d+28>>2]=0-k;k=0-c|0;i:{if((c|0)<=(e|0)){i=(e|0)<(k|0);g=i?e:c;c=g>>31;g=(c^g)-c|0;c=i?k:e;o=i?-1:2;break i}o=1;if((e|0)>=(k|0))break i;c=0-e|0;g=i;o=254}e=(P(g,14)|0)>=(c|0)?4:o;H[a+3|0]=e;c=J[a+32>>2];if((d|0)!=(c|0))while(1){H[c+3|0]=e;H[c+2|0]=e;c=J[c+32>>2];if((d|0)!=(c|0))continue;break}H[d+2|0]=e;a=(f-d|0)/40|0;J[d+24>>2]=a;c=0;J[f+28>>2]=0-a;a=d;e=0}if((d|0)!=(f|0))continue;break}m=m+4|0;if(j>>>0>m>>>0)continue;break}}if((p| -0)<=0)break a;c=h;while(1){e=L[c>>1];j:{if(e&16|K[c+2|0]!=4|K[c+3|0]!=4)break j;d=J[c+24>>2];a=P(d,40)+c|0;b=I[c+12>>1];i=I[a+12>>1]-b|0;g=b;f=J[c+28>>2];b=P(f,40)+c|0;if((i^g-I[b+12>>1])<0)break j;g=I[c+14>>1];if((g-I[b+14>>1]^I[a+14>>1]-g)<0)break j;I[c>>1]=e|16;e=b;b=(P(d-f|0,40)|0)/40|0;J[e+24>>2]=b;J[a+28>>2]=0-b}c=c+40|0;if(r>>>0>c>>>0)continue;break}if((p|0)<=0)break a;while(1){c=L[h>>1];k:{if(c&16)break k;l:{if(c&3)break l;a=K[h+3|0];b=K[h+2|0];if((a|0)==(b|0)){if((a|0)!=4)break l;c=I[h+12>> -1];e=J[h+28>>2];a=P(e,40)+h|0;d=I[h+14>>1];f=J[h+24>>2];b=P(f,40)+h|0;if(!tF(c-I[a+12>>1]|0,d-I[a+14>>1]|0,I[b+12>>1]-c|0,I[b+14>>1]-d|0))break k;c=a;a=(P(f-e|0,40)|0)/40|0;J[c+24>>2]=a;J[b+28>>2]=0-a;c=L[h>>1];break l}if(b<<24>>24!=(0-(a<<24>>24)|0))break k}I[h>>1]=c|16}h=h+40|0;if(r>>>0>h>>>0)continue;break}}xb=l+16|0;return J[l+12>>2]}function CJ(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;e=J[a>>2];c=J[e+184>>2];a:{if(c)break a;while(1){c=J[e+48>>2];if(!c){c=169776;break a}c=jm(c);if(!c)c= -169776;d=J[e+184>>2];J[e+184>>2]=d?d:c;if(!d)break a;wc(c);c=J[e+184>>2];if(!c)continue;break}}c=M[c+16>>2]<12?169776:J[c+12>>2];b:{if(!(K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24)))break b;e=J[b>>2];if((e|0)==1633774708){e=J[a>>2];c=J[e+184>>2];c:{if(c)break c;while(1){c=J[e+48>>2];if(!c){c=169776;break c}c=jm(c);if(!c)c=169776;d=J[e+184>>2];J[e+184>>2]=d?d:c;if(!d)break c;wc(c);c=J[e+184>>2];if(!c)continue;break}}g=169776;d=M[c+16>>2]<12?169776:J[c+12>>2];c=K[d+4|0]|K[d+5|0]<<8;d:{if(!c)break d; -e=d+12|0;c=((c<<8|c>>>8)&65535)-1|0;while(1){e:{h=c+f>>>1|0;d=e+P(h,12)|0;d=K[d|0]|K[d+1|0]<<8;f:{if(((d<<8|d>>>8)&65535)>>>0>=18){c=h-1|0;break f}if((d|0)==4352)break e;f=h+1|0}if((c|0)>=(f|0))continue;break d}break}g=e+P(h,12)|0}if(!(K[g+2|0]|K[g+3|0]<<8))break b;e=J[a+28>>2];g:{h:{i:{c=J[a+24>>2];if((c|0)>=0){d=e+1|0;f=(d|0)>0?d:0;if(f>>>0<=c>>>0)break h;d=c;while(1){d=((d>>>1|0)+d|0)+8|0;if(f>>>0>d>>>0)continue;break}if(d>>>0<=178956970){c=ic(J[a+32>>2],P(d,24));if(c)break i;e=J[a+28>>2];c=J[a+ -24>>2];if(d>>>0<=c>>>0)break h}J[a+24>>2]=c^-1}a=J[42449];J[194124]=J[42448];J[194125]=a;a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;f=e;a=776480;break g}J[a+24>>2]=d;J[a+32>>2]=c;e=J[a+28>>2]}j:{if(e>>>0>=f>>>0)break j;c=P(f-e|0,24);if(!c)break j;Nb(J[a+32>>2]+P(e,24)|0,0,c)}J[a+28>>2]=f;a=(J[a+32>>2]+P(f,24)|0)-24|0}J[a+16>>2]=J[b+8>>2];c=J[b+12>>2];J[a>>2]=17;J[a+20>>2]=c;b=J[b+4>>2];J[a+12>>2]=f;J[a+4>>2]=b;H[a+8|0]=1;return}c=77;k:{l:{while(1){f=c+g>>> -1|0;d=J[(f<<4)+103808>>2];m:{if(d>>>0>e>>>0){c=f-1|0;break m}if(d>>>0>=e>>>0)break l;g=f+1|0}if((c|0)>=(g|0))continue;break}h=0;break k}h=(f<<4)+103808|0}if(!h)break b;e=J[a>>2];c=J[e+184>>2];n:{if(c)break n;while(1){c=J[e+48>>2];if(!c){c=169776;break n}c=jm(c);if(!c)c=169776;d=J[e+184>>2];J[e+184>>2]=d?d:c;if(!d)break n;wc(c);c=J[e+184>>2];if(!c)continue;break}}i=169776;j=J[h+4>>2];d=M[c+16>>2]<12?169776:J[c+12>>2];c=K[d+4|0]|K[d+5|0]<<8;o:{if(!c)break o;e=d+12|0;c=((c<<8|c>>>8)&65535)-1|0;f=0;while(1){p:{g= -c+f>>>1|0;d=e+P(g,12)|0;d=K[d|0]|K[d+1|0]<<8;d=(d<<8|d>>>8)&65535;q:{if((d|0)>(j|0)){c=g-1|0;break q}if((d|0)==(j|0))break p;f=g+1|0}if((c|0)>=(f|0))continue;break o}break}i=e+P(g,12)|0}if(!(K[i+2|0]|K[i+3|0]<<8)){if((j|0)!=37|J[h+8>>2]!=1)break b;c=169776;f=J[a>>2]+184|0;g=J[f>>2];r:{if(g)break r;e=f-136|0;while(1){d=J[e>>2];if(!d){g=169776;break r}g=jm(d);if(!g)g=169776;d=J[f>>2];J[f>>2]=d?d:g;if(!d)break r;wc(g);g=J[f>>2];if(!g)continue;break}}e=M[g+16>>2]<12?169776:J[g+12>>2];d=K[e+4|0]|K[e+5| -0]<<8;s:{if(!d)break s;e=e+12|0;i=((d<<8|d>>>8)&65535)-1|0;g=0;while(1){t:{f=g+i>>>1|0;d=e+P(f,12)|0;d=K[d|0]|K[d+1|0]<<8;d=(d<<8|d>>>8)&65535;u:{if(d>>>0>3){i=f-1|0;break u}if((d|0)==3)break t;g=f+1|0}if((g|0)<=(i|0))continue;break s}break}c=e+P(f,12)|0}i=c;if(!(K[c+2|0]|K[c+3|0]<<8))break b}e=J[a+28>>2];v:{w:{x:{c=J[a+24>>2];if((c|0)>=0){d=e+1|0;f=(d|0)>0?d:0;if(f>>>0<=c>>>0)break w;d=c;while(1){d=((d>>>1|0)+d|0)+8|0;if(f>>>0>d>>>0)continue;break}if(d>>>0<=178956970){c=ic(J[a+32>>2],P(d,24));if(c)break x; -e=J[a+28>>2];c=J[a+24>>2];if(d>>>0<=c>>>0)break w}J[a+24>>2]=c^-1}a=J[42449];J[194124]=J[42448];J[194125]=a;a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;f=e;a=776480;break v}J[a+24>>2]=d;J[a+32>>2]=c;e=J[a+28>>2]}y:{if(e>>>0>=f>>>0)break y;c=P(f-e|0,24);if(!c)break y;Nb(J[a+32>>2]+P(e,24)|0,0,c)}J[a+28>>2]=f;a=(J[a+32>>2]+P(f,24)|0)-24|0}J[a+16>>2]=J[b+8>>2];J[a+20>>2]=J[b+12>>2];J[a>>2]=J[h+4>>2];b=J[(J[b+4>>2]?8:12)+h>>2];J[a+12>>2]=f;J[a+4>>2]=b;H[a+8|0]= -((K[i+8|0]|K[i+9|0]<<8)&128)>>>7}}function Lma(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;a:{if(!(H[b+147|0]&1))break a;y=J[b+40>>2];z=(y|0)==5;if(!z)Wg(b);A=J[c+28>>2]>>31|1;t=1;b:{while(1){s=J[b+68>>2];B=s+u|0;if(s){n=J[b+80>>2];v=n+3|0;q=J[b+88>>2];C=n-1|0;D=h&1;l=B;a=s;while(1){j=0;f=0;e=0;h=a;g=P(h-1|0,20);c:{if((K[(g+v|0)+16|0]&254)!=8){if(!D)break c;h=g+n|0;e=J[h+4>>2];l=l-1|0;p=P(l,20);d=p+n| -0;J[d>>2]=J[h>>2];J[d+4>>2]=e;J[d+16>>2]=J[h+16>>2];e=J[h+12>>2];J[d+8>>2]=J[h+8>>2];J[d+12>>2]=e;d=q+p|0;h=g+q|0;J[d+16>>2]=J[h+16>>2];g=J[h+12>>2];J[d+8>>2]=J[h+8>>2];J[d+12>>2]=g;g=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=g;break c}while(1){d:{if((K[P(h,20)+C|0]&254)!=8){g=h;d=0;e:{while(1){p=P(g,20)+n|0;if((K[p-1|0]&254)==8)break e;m=L[p-4>>1];if(!((K[p-8|0]&16?0:m&32)|1<>2]+d|0;if(g)continue;break}g=0}p=h;break d}d=J[c+116>>2];g=J[d+40>>2];p=0;k=J[c+120>> -2];h=h-1|0;i=P(h,20);m=J[i+n>>2];d=J[d+12>>2];if(d)d=J[d+20>>2];else d=0;g=Ab[g|0](c,k,m,d)|0;d=K[(i+v|0)+16|0]!=8;f=(d?g:0)+f|0;e=(d?0:g)+e|0;j=d+j|0;d=0;g=0;if(h)continue}break}m=d-e|0;e=P(A,m);w=0;f=P(f,A);h=0;f:{if((f|0)<=0)break f;h=0;if((e|0)<=(f|0))break f;h=((e|0)/(f|0)|0)-1|0}d=h+1|0;g:{if((e|0)<=(P(d,f)|0)){d=h;break g}if((j|0)<=0){d=h;break g}h=P(f,h+2|0)-e|0;if((h|0)<=0)break g;w=(h|0)/(P(d,j)|0)|0;m=0}h=p+1|0;if(t){u=P(d,j)+u|0;a=h;break c}Ac(b,3,g,a,1,0);if(a>>>0<=p>>>0){a=h;break c}E= -d+1|0;g=(m|0)/2|0;while(1){e=J[c+116>>2];j=J[e+40>>2];i=J[c+120>>2];a=a-1|0;d=P(a,20);f=d+n|0;k=J[f>>2];e=J[e+12>>2];if(e)e=J[e+20>>2];else e=0;m=Ab[j|0](c,i,k,e)|0;j=K[(d+v|0)+16|0];e=d+q|0;J[e>>2]=0;j=(j|0)!=9?1:E;h:{if(!j)break h;i:{if(!z){J[e+8>>2]=g;k=J[f+4>>2];l=l-1|0;i=P(l,20);d=i+n|0;J[d>>2]=J[f>>2];J[d+4>>2]=k;J[d+16>>2]=J[f+16>>2];k=J[f+12>>2];J[d+8>>2]=J[f+8>>2];J[d+12>>2]=k;d=i+q|0;J[d+16>>2]=J[e+16>>2];i=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=i;i=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]= -i;g=g+m|0;if((j|0)==1)break h;m=m-w|0;d=j-1|0;i=d&1;if((j|0)==2)break i;k=d&-2;j=0;while(1){J[e+8>>2]=g;x=J[f+4>>2];o=P(l,20);r=o-20|0;d=r+n|0;J[d>>2]=J[f>>2];J[d+4>>2]=x;J[d+16>>2]=J[f+16>>2];x=J[f+12>>2];J[d+8>>2]=J[f+8>>2];J[d+12>>2]=x;d=q+r|0;J[d+16>>2]=J[e+16>>2];r=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=r;r=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=r;g=g+m|0;J[e+8>>2]=g;o=o-40|0;d=o+n|0;J[d+16>>2]=J[f+16>>2];r=J[f+12>>2];J[d+8>>2]=J[f+8>>2];J[d+12>>2]=r;r=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=r;d= -o+q|0;J[d+16>>2]=J[e+16>>2];o=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=o;o=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=o;l=l-2|0;g=g+m|0;j=j+2|0;if((k|0)!=(j|0))continue;break}break i}g=g-m|0;J[e+8>>2]=g;k=J[f+4>>2];l=l-1|0;i=P(l,20);d=i+n|0;J[d>>2]=J[f>>2];J[d+4>>2]=k;J[d+16>>2]=J[f+16>>2];k=J[f+12>>2];J[d+8>>2]=J[f+8>>2];J[d+12>>2]=k;d=i+q|0;J[d+16>>2]=J[e+16>>2];i=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=i;i=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=i;d=1;if((j|0)==1)break h;while(1){g=(g-m|0)+w|0;J[e+8>> -2]=g;l=l-1|0;k=P(l,20);i=k+n|0;J[i+16>>2]=J[f+16>>2];o=J[f+12>>2];J[i+8>>2]=J[f+8>>2];J[i+12>>2]=o;o=J[f+4>>2];J[i>>2]=J[f>>2];J[i+4>>2]=o;i=k+q|0;J[i+16>>2]=J[e+16>>2];k=J[e+12>>2];J[i+8>>2]=J[e+8>>2];J[i+12>>2]=k;k=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=k;d=d+1|0;if((j|0)!=(d|0))continue;break}break h}if(!i)break h;J[e+8>>2]=g;i=J[f+4>>2];l=l-1|0;j=P(l,20);d=j+n|0;J[d>>2]=J[f>>2];J[d+4>>2]=i;J[d+16>>2]=J[f+16>>2];i=J[f+12>>2];J[d+8>>2]=J[f+8>>2];J[d+12>>2]=i;d=j+q|0;J[d+16>>2]=J[e+16>>2];f=J[e+12>> -2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=f;f=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=f;g=g+m|0}if(a>>>0>p>>>0)continue;break}a=h}a=a-1|0;if(a)continue;break}}if(t){t=0;h=1;a=u+s|0;if(!a|a>>>0>2])continue;if(yh(b,a))continue;break b}break}J[b+68>>2]=B}if((y|0)==5)break a;Wg(b)}}function WF(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{if(!(!f|!b)){k=vc(f,16);if(k)break e;k=0;break c}j=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=j;J[a+16>>2]=J[d+16>>2];j=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+ -12>>2]=j;J[a+24>>2]=f;J[a+20>>2]=b?0:e;break d}b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+16>>2]=J[d+16>>2];b=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=b;J[a+24>>2]=f;J[a+20>>2]=k;b=f<<4;f:{if(!b){b=2;d=0;break f}d=Mb(k,e,b);b=J[d+12>>2]==-1?-1:2;d=J[d+8>>2]!=0}e=f&7;if(f>>>0>=8){j=f&-8;f=0;while(1){f=f+8|0;if((j|0)!=(f|0))continue;break}}if(e){f=0;while(1){f=f+1|0;if((e|0)!=(f|0))continue;break}}J[k+12>>2]=b;J[k+8>>2]=d}J[a+36>>2]=0;J[a+40>>2]=0;uH(c,1196643650,g,h,a+28|0);uH(c,1196445523,g,h,a+ -32|0);if(i){d=J[i>>2];if(!d)break c;e=c+40|0;c=c+44|0;while(1){b=i;g:{if(!fc(d,105084)){h:{i:{if(J[e>>2])break i;f=e-4|0;while(1){d=0;if(!J[f>>2])break h;d=J[e>>2];J[e>>2]=d?d:1;if(!d)break i;if(!J[e>>2])continue;break}}d=1}if(!d)break g;break b}if(fc(d,105516))break g;j:{k:{if(J[c>>2])break k;f=c-8|0;while(1){d=0;if(!J[f>>2])break j;d=J[c>>2];J[c>>2]=d?d:1;if(!d)break k;if(!J[c>>2])continue;break}}d=1}if(!d)break g;break a}i=b+4|0;d=J[b+4>>2];if(d)continue;break}break c}d=J[194119];l:{if(d)break l; -while(1){e=0;d=0;i=xb-32|0;xb=i;h=yg(105293);m:{if(!h|!K[h|0])break m;f=vc(1,40);if(!f)break m;b=J[42441];e=J[42440];H[f+32|0]=e;H[f+33|0]=e>>>8;H[f+34|0]=e>>>16;H[f+35|0]=e>>>24;H[f+36|0]=b;H[f+37|0]=b>>>8;H[f+38|0]=b>>>16;H[f+39|0]=b>>>24;b=J[42439];e=J[42438];H[f+24|0]=e;H[f+25|0]=e>>>8;H[f+26|0]=e>>>16;H[f+27|0]=e>>>24;H[f+28|0]=b;H[f+29|0]=b>>>8;H[f+30|0]=b>>>16;H[f+31|0]=b>>>24;b=J[42437];e=J[42436];H[f+16|0]=e;H[f+17|0]=e>>>8;H[f+18|0]=e>>>16;H[f+19|0]=e>>>24;H[f+20|0]=b;H[f+21|0]=b>>>8;H[f+ -22|0]=b>>>16;H[f+23|0]=b>>>24;b=J[42435];e=J[42434];H[f+8|0]=e;H[f+9|0]=e>>>8;H[f+10|0]=e>>>16;H[f+11|0]=e>>>24;H[f+12|0]=b;H[f+13|0]=b>>>8;H[f+14|0]=b>>>16;H[f+15|0]=b>>>24;b=J[42433];e=J[42432];H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;H[f+4|0]=b;H[f+5|0]=b>>>8;H[f+6|0]=b>>>16;H[f+7|0]=b>>>24;l=f+20|0;while(1){e=te(h,44);if(!e)e=ac(h)+h|0;n:{if(d>>>0>1)break n;b=d;j=f+P(b,20)|0;m=e-h|0;o:{if((ac(j)|0)!=(m|0))break o;if(Zb(j,h,m))break o;n=J[j+16>>2];J[i+24>>2]=n;o=J[j+12>>2];b=J[j+ -8>>2];J[i+16>>2]=b;J[i+20>>2]=o;p=J[j+4>>2];g=J[j>>2];J[i+8>>2]=g;J[i+12>>2]=p;J[j+16>>2]=n;J[j+8>>2]=b;J[j+12>>2]=o;J[j>>2]=g;J[j+4>>2]=p;b=d+1|0}p:{if(d)break p;if((ac(l)|0)!=(m|0))break p;if(Zb(l,h,m))break p;d=b+1|0;J[i+24>>2]=J[l+16>>2];g=J[l+12>>2];J[i+16>>2]=J[l+8>>2];J[i+20>>2]=g;g=J[l+4>>2];J[i+8>>2]=J[l>>2];J[i+12>>2]=g;g=f+P(b,20)|0;qc(g+20|0,g,P(1-b|0,20));J[g+16>>2]=J[i+24>>2];b=J[i+20>>2];J[g+8>>2]=J[i+16>>2];J[g+12>>2]=b;b=J[i+12>>2];J[g>>2]=J[i+8>>2];J[g+4>>2]=b;break n}d=b}h=e+1| -0;if(K[e|0])continue;break}e=f}xb=i+32|0;d=e;q:{if(e){b=J[194119];J[194119]=b?b:e;if(!b)break l;if((e|0)==169728)break q;Kb(e);break q}d=169728;b=J[194119];J[194119]=b?b:169728;if(!b)break l}d=J[194119];if(!d)continue;break}}r:{s:{b=J[d+16>>2];if((b|0)==958){if(J[c+40>>2])break r;while(1){if(!J[c+36>>2])break s;b=J[c+40>>2];J[c+40>>2]=b?b:1;if(!b)break r;if(!J[c+40>>2])continue;break}break r}if((b|0)!=959)break s;if(J[c+44>>2])break a;while(1){if(!J[c+36>>2])break s;b=J[c+44>>2];J[c+44>>2]=b?b:1; -if(!b)break a;if(!J[c+44>>2])continue;break}break a}b=J[d+36>>2];if((b|0)!=958){if((b|0)!=959)break c;if(J[c+44>>2])break a;while(1){if(!J[c+36>>2])break c;b=J[c+44>>2];J[c+44>>2]=b?b:1;if(!b)break a;if(!J[c+44>>2])continue;break}break a}if(J[c+40>>2])break r;while(1){if(!J[c+36>>2])break c;b=J[c+40>>2];J[c+40>>2]=b?b:1;if(!b)break r;if(!J[c+40>>2])continue;break}}break b}Kb(k);return 0}J[a+40>>2]=105084;J[a+36>>2]=958;return 1}J[a+40>>2]=105516;J[a+36>>2]=959;return 1}function O2(a,b){a=a|0;b=b| -0;var c=0,d=0,e=0,f=0;c=xb-192|0;xb=c;f=a+8|0;mn(c+168|0,f);J[195395]=0;da(1863,c+48|0,+O[c+168>>3],-1);a=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((a|0)!=1){J[195395]=0;a=_(1078,16)|0;d=J[195395];J[195395]=0;if((d|0)==1)break q;J[c+60>>2]=a;J[c+64>>2]=2;J[c+68>>2]=-2147483644;d=0;J[a+8>>2]=0;J[a>>2]=120;J[a+4>>2]=49;J[c+80>>2]=J[c+56>>2];J[c+56>>2]=0;a=J[c+52>>2];J[c+72>>2]=J[c+48>>2];J[c+76>>2]=a;J[c+48>>2]=0;J[c+52>>2]=0;J[195395]=0;da(1863,c+32|0,+O[c+176>>3], --1);e=J[195395];J[195395]=0;a=c+84|0;if((e|0)==1)break p;J[195395]=0;e=_(1078,16)|0;d=J[195395];J[195395]=0;if((d|0)==1)break o;J[c+88>>2]=2;J[c+92>>2]=-2147483644;J[c+84>>2]=e;d=0;J[e+8>>2]=0;J[e>>2]=121;J[e+4>>2]=49;J[c+104>>2]=J[c+40>>2];a=J[c+36>>2];J[c+96>>2]=J[c+32>>2];J[c+100>>2]=a;J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;a=J[b>>2];J[195395]=0;da(1863,c+16|0,+(a|0),-1);e=J[195395];J[195395]=0;a=c+108|0;if((e|0)==1)break n;J[195395]=0;e=_(1078,16)|0;d=J[195395];J[195395]=0;if((d|0)==1)break m; -J[c+112>>2]=2;J[c+116>>2]=-2147483644;J[c+108>>2]=e;d=0;J[e+8>>2]=0;J[e>>2]=120;J[e+4>>2]=50;J[c+128>>2]=J[c+24>>2];a=J[c+20>>2];J[c+120>>2]=J[c+16>>2];J[c+124>>2]=a;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;a=J[b+4>>2];J[195395]=0;da(1863,c|0,+(a|0),-1);a=J[195395];J[195395]=0;if((a|0)==1)break l;J[195395]=0;a=_(1078,16)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k;J[c+136>>2]=2;J[c+140>>2]=-2147483644;J[c+132>>2]=a;J[a+8>>2]=0;J[a>>2]=121;J[a+4>>2]=50;J[c+152>>2]=J[c+8>>2];a=J[c+4>>2];J[c+144>>2]= -J[c>>2];J[c+148>>2]=a;J[c+8>>2]=0;J[c+164>>2]=0;J[c+156>>2]=0;J[c+160>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[195395]=0;H[c+188|0]=0;b=c+156|0;J[c+184>>2]=b;a=_(1078,96)|0;d=J[195395];J[195395]=0;r:{s:{if((d|0)!=1){J[c+160>>2]=a;J[c+156>>2]=a;J[195395]=0;J[c+164>>2]=a+96;b=ha(1957,c+164|0,c+60|0,b|0,a|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break r;b=Z()|0;J[c+160>>2]=a;break s}b=Z()|0}Kc(c+184|0);Vb(c+132|0);Vb(c+108|0);Vb(c+84|0);Vb(c+60|0);d=1;break j}J[c+160>>2]=b;if(H[c+155|0]<0)Kb(J[c+144>>2]);if(H[c+ -143|0]<0)Kb(J[c+132>>2]);if(H[c+131|0]<0)Kb(J[c+120>>2]);if(H[c+119|0]<0)Kb(J[c+108>>2]);if(H[c+107|0]<0)Kb(J[c+96>>2]);if(H[c+95|0]<0)Kb(J[c+84>>2]);if(H[c+83|0]<0)Kb(J[c+72>>2]);if(H[c+71|0]<0)Kb(J[c+60>>2]);if(H[c+11|0]<0)Kb(J[c>>2]);if(H[c+27|0]<0)Kb(J[c+16>>2]);if(H[c+43|0]<0)Kb(J[c+32>>2]);if(H[c+59|0]<0)Kb(J[c+48>>2]);J[195395]=0;b=c+156|0;$(1963,f|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,f|0,b|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958, -f|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;J[c+60>>2]=a;J[c+64>>2]=4;J[c+68>>2]=-2147483640;d=J[100212];J[a+8>>2]=J[100211];J[a+12>>2]=d;d=J[100210];J[a>>2]=J[100209];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[c+48>>2]=0;H[c+59|0]=0;ia(1961,f|0,c+60|0,b|0,c+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+71|0]<0)Kb(J[c+60>>2]);d=J[c+156>>2];if(d){a=J[c+160>>2];b=d;if((a|0)!=(b|0)){while(1){if(H[a- -1|0]<0)Kb(J[a-12>>2]);b=a-24|0;if(H[a-13|0]<0)Kb(J[b>>2]);a=b;if((d|0)!=(a|0))continue;break}b=J[c+156>>2]}J[c+160>>2]=d;Kb(b)}xb=c+192|0;return}ba(Z()|0);B()}b=Z()|0;d=0;a=c+60|0;break f}b=Z()|0;break f}b=Z()|0;d=0;break g}b=Z()|0;break g}b=Z()|0;d=0;break h}b=Z()|0;break i}b=Z()|0;d=0}if(H[c+11|0]>=0)break i;Kb(J[c>>2])}a=c+132|0}if(H[c+27|0]>=0)break g;Kb(J[c+16>>2])}if(H[c+43|0]>=0)break f;Kb(J[c+32>>2])}if(H[c+59|0]<0)Kb(J[c+48>>2]);if((c+60|0)==(a|0)|d)break a;while(1){a=Vb(a-24|0);if((a|0)!= -(c+60|0))continue;break}break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+71|0]>=0)break b;Kb(J[c+60>>2])}Hc(c+156|0)}ba(b|0);B()}function eZ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-192|0;xb=d;g=a+8|0;mn(d+168|0,g);J[195395]=0;da(1863,d+48|0,+O[d+168>>3],-1);a=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((a|0)!=1){J[195395]=0;a=_(1078,16)|0;e=J[195395];J[195395]=0;if((e|0)==1)break q;J[d+60>>2]=a;J[d+64>>2]=2;J[d+68>>2]=-2147483644; -e=0;J[a+8>>2]=0;J[a>>2]=120;J[a+4>>2]=49;J[d+80>>2]=J[d+56>>2];J[d+56>>2]=0;a=J[d+52>>2];J[d+72>>2]=J[d+48>>2];J[d+76>>2]=a;J[d+48>>2]=0;J[d+52>>2]=0;J[195395]=0;da(1863,d+32|0,+O[d+176>>3],-1);f=J[195395];J[195395]=0;a=d+84|0;if((f|0)==1)break p;J[195395]=0;f=_(1078,16)|0;e=J[195395];J[195395]=0;if((e|0)==1)break o;J[d+88>>2]=2;J[d+92>>2]=-2147483644;J[d+84>>2]=f;e=0;J[f+8>>2]=0;J[f>>2]=121;J[f+4>>2]=49;J[d+104>>2]=J[d+40>>2];a=J[d+36>>2];J[d+96>>2]=J[d+32>>2];J[d+100>>2]=a;J[d+40>>2]=0;J[d+32>> -2]=0;J[d+36>>2]=0;J[195395]=0;da(1863,d+16|0,+(c|0),-1);c=J[195395];J[195395]=0;a=d+108|0;if((c|0)==1)break n;J[195395]=0;c=_(1078,16)|0;e=J[195395];J[195395]=0;if((e|0)==1)break m;J[d+112>>2]=2;J[d+116>>2]=-2147483644;J[d+108>>2]=c;e=0;J[c+8>>2]=0;J[c>>2]=120;J[c+4>>2]=50;J[d+128>>2]=J[d+24>>2];a=J[d+20>>2];J[d+120>>2]=J[d+16>>2];J[d+124>>2]=a;J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[195395]=0;da(1863,d|0,+(b|0),-1);a=J[195395];J[195395]=0;if((a|0)==1)break l;J[195395]=0;a=_(1078,16)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break k;J[d+136>>2]=2;J[d+140>>2]=-2147483644;J[d+132>>2]=a;J[a+8>>2]=0;J[a>>2]=121;J[a+4>>2]=50;J[d+152>>2]=J[d+8>>2];a=J[d+4>>2];J[d+144>>2]=J[d>>2];J[d+148>>2]=a;J[d+8>>2]=0;J[d+164>>2]=0;J[d+156>>2]=0;J[d+160>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[195395]=0;H[d+188|0]=0;b=d+156|0;J[d+184>>2]=b;a=_(1078,96)|0;c=J[195395];J[195395]=0;r:{s:{if((c|0)!=1){J[d+160>>2]=a;J[d+156>>2]=a;J[195395]=0;J[d+164>>2]=a+96;b=ha(1957,d+164|0,d+60|0,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break r; -b=Z()|0;J[d+160>>2]=a;break s}b=Z()|0}Kc(d+184|0);Vb(d+132|0);Vb(d+108|0);Vb(d+84|0);Vb(d+60|0);e=1;break j}J[d+160>>2]=b;if(H[d+155|0]<0)Kb(J[d+144>>2]);if(H[d+143|0]<0)Kb(J[d+132>>2]);if(H[d+131|0]<0)Kb(J[d+120>>2]);if(H[d+119|0]<0)Kb(J[d+108>>2]);if(H[d+107|0]<0)Kb(J[d+96>>2]);if(H[d+95|0]<0)Kb(J[d+84>>2]);if(H[d+83|0]<0)Kb(J[d+72>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);J[195395]=0;b= -d+156|0;$(1963,g|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,g|0,b|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,g|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break d;J[d+60>>2]=a;J[d+64>>2]=4;J[d+68>>2]=-2147483640;c=J[106628];J[a+8>>2]=J[106627];J[a+12>>2]=c;c=J[106626];J[a>>2]=J[106625];J[a+4>>2]=c;J[a+16>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,g|0,d+60|0,b|0,d+48|0);a= -J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+71|0]<0)Kb(J[d+60>>2]);c=J[d+156>>2];if(c){a=J[d+160>>2];b=c;if((a|0)!=(c|0)){while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);b=a-24|0;if(H[a-13|0]<0)Kb(J[b>>2]);a=b;if((c|0)!=(a|0))continue;break}b=J[d+156>>2]}J[d+160>>2]=c;Kb(b)}xb=d+192|0;return}ba(Z()|0);B()}b=Z()|0;e=0;a=d+60|0;break f}b=Z()|0;break f}b=Z()|0;e=0;break g}b=Z()|0;break g}b=Z()|0;e=0;break h}b=Z()|0;break i}b=Z()|0;e=0}if(H[d+11|0]>=0)break i;Kb(J[d>>2])}a=d+ -132|0}if(H[d+27|0]>=0)break g;Kb(J[d+16>>2])}if(H[d+43|0]>=0)break f;Kb(J[d+32>>2])}if(H[d+59|0]<0)Kb(J[d+48>>2]);if((d+60|0)==(a|0)|e)break a;while(1){a=Vb(a-24|0);if((a|0)!=(d+60|0))continue;break}break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+71|0]>=0)break b;Kb(J[d+60>>2])}Hc(d+156|0)}ba(b|0);B()}function Ug(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;e=35;a:{if(!a|!J[a+88>>2])break a;d=J[a+84>>2];if(!d)break a;b:{c:{e=J[d+ -156>>2];if(!e)break c;g=J[e+4>>2];if(!(g&1))break c;f=J[d+88>>2];if(f){e=J[J[d+4>>2]+100>>2];Ab[J[e+8>>2]](e,f);e=J[d+156>>2];g=J[e+4>>2]}J[d+88>>2]=0;J[e+4>>2]=g&-2;break b}J[d+88>>2]=0}J[d+24>>2]=0;J[d+28>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+100>>2]=0;J[d+104>>2]=0;H[d+94|0]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[d+108>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+120>>2]=0;J[d+124>>2]=0;J[d+128>>2]=0;J[d+132>> -2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+144>>2]=0;J[d+148>>2]=0;J[d+152>>2]=0;c=c&1024?c|2049:c;c=c&1?c&-15|10:c;i=c&4194304?c&-5:c;j=i&2;d:{e:{c=J[a+96>>2];g=J[J[c+4>>2]+160>>2];if(i&32768|(j|!g))break e;e=J[a+8>>2];if((e&8193)!=1)break e;f:{if(i&2048)break f;h=J[a+128>>2];f=J[h>>2];if(!J[h+8>>2]){if(f)break f;break e}if(f)break e}g:{if(i&32)break g;f=J[c>>2];if(!(K[f+1|0]&4))break g;if(Mc(Ab[J[f+32>>2]](c,8765)|0,9155))e=J[c+28>>2]==1;else e=0;if(!(e|(K[J[c>>2]+1|0]&8)>>>3|(i&983040)!=65536)){e=J[a+ -8>>2];break g}e=J[a+8>>2];if(!(e&8)|!J[a+760>>2]|(L[a+286>>1]|J[a+684>>2]))break e;if(J[a+692>>2])break e}h:{if(!(e&2)|i&8)break h;if(Ab[J[J[c+12>>2]+72>>2]](d,J[a+88>>2],b,i|16384)|0)break h;c=0;if(J[d+72>>2]==1651078259)break d}e=J[a+128>>2];f=J[e+24>>2];J[e+24>>2]=0;c=Ab[J[J[J[g>>2]+20>>2]+12>>2]](g,d,J[a+88>>2],b,i)|0;J[e+24>>2]=f;break d}e=Ab[J[J[c+12>>2]+72>>2]](d,J[a+88>>2],b,i)|0;if(e)break a;c=0;if(J[d+72>>2]!=1869968492)break d;k=I[d+108>>1];h=I[d+110>>1];if((k|h)&65535){e=6;if((h|0)<=0| -(k|0)<=0)break a;m=J[d+120>>2];g=-1;while(1){f=I[(l<<1)+m>>1];if((f|0)>=(h|0)|(g|0)>=(f|0))break a;g=f;l=l+1|0;if((l|0)!=(k|0))continue;break}if((f|0)!=(h-1|0))break a}if(j)break d;i:{if(i>>>4&1){J[d+32>>2]=J[d+32>>2]&-64;e=J[d+44>>2];g=e&-64;J[d+44>>2]=g;f=J[d+48>>2];h=f&-64;J[d+48>>2]=h;J[d+36>>2]=J[d+36>>2]+63&-64;J[d+24>>2]=((e+J[d+24>>2]|0)+63&-64)-g;J[d+28>>2]=((f+J[d+28>>2]|0)+63&-64)-h;break i}J[d+44>>2]=J[d+44>>2]&-64;J[d+48>>2]=J[d+48>>2]&-64;e=J[d+32>>2];g=e&-64;J[d+32>>2]=g;f=J[d+36>> -2];h=f+63&-64;J[d+36>>2]=h;J[d+28>>2]=h-(f-J[d+28>>2]&-64);J[d+24>>2]=((e+J[d+24>>2]|0)+63&-64)-g}J[d+40>>2]=J[d+40>>2]+32&-64;J[d+52>>2]=J[d+52>>2]+32&-64}j:{if(i&16){g=0;e=J[d+52>>2];break j}g=J[d+40>>2];e=0}J[d+64>>2]=g;J[d+68>>2]=e;if(!(!(H[a+8|0]&1)|i&8192)){e=J[a+88>>2];n=d,o=hc(J[d+56>>2],J[e+16>>2],64),J[n+56>>2]=o;n=d,o=hc(J[d+60>>2],J[e+20>>2],64),J[n+60>>2]=o}k:{if(i&2048)break k;h=J[a+128>>2];f=J[h+24>>2];if(!f)break k;k=d- -64|0;l:{m:{a=J[J[J[d+4>>2]+96>>2]+4>>2];e=J[a+156>>2];n:{if(!e){g= -J[d+72>>2];break n}g=J[d+72>>2];if((g|0)==J[e+16>>2])break m}a=J[a+148>>2];if(a)while(1){e=J[a+8>>2];if(J[e+16>>2]==(g|0))break m;a=J[a+4>>2];if(a)continue;break}o:{if((g|0)!=1869968492)break o;if(f&1){nh(d+108|0,h);f=J[h+24>>2]}if(!(f&2))break o;j=I[d+110>>1];if((j|0)<=0)break o;g=J[h+20>>2];f=J[h+16>>2];a=J[d+112>>2];if(j>>>0>=4){l=j&-4;e=0;while(1){J[a>>2]=f+J[a>>2];J[a+4>>2]=g+J[a+4>>2];J[a+8>>2]=f+J[a+8>>2];J[a+16>>2]=f+J[a+16>>2];J[a+24>>2]=f+J[a+24>>2];J[a+12>>2]=g+J[a+12>>2];J[a+20>>2]=g+ -J[a+20>>2];J[a+28>>2]=g+J[a+28>>2];a=a+32|0;e=e+4|0;if((l|0)!=(e|0))continue;break}}j=j&3;if(!j)break o;e=0;while(1){J[a>>2]=f+J[a>>2];J[a+4>>2]=g+J[a+4>>2];a=a+8|0;e=e+1|0;if((j|0)!=(e|0))continue;break}}break l}c=Ab[J[J[e+12>>2]+44>>2]](e,d,h,h+16|0)|0}po(k,h)}e=c;J[d+12>>2]=b;J[J[d+156>>2]+40>>2]=i;if(e)break a;e=0;if(i&1)break a;a=J[d+72>>2];if((a|0)==1651078259|(a|0)==1668246896)break a;a=i>>>16&15;a=a?a:i>>>11&2;if(i&4){b=J[d+4>>2];if(!b)return 6;return IF(J[J[b+96>>2]+4>>2],d,a)|0}Js(d,a,0)}return e| -0}function ZY(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=xb-176|0;xb=f;J[195395]=0;g=+(e|0);da(1863,f+48|0,+g,-1);e=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((e|0)!=1){e=J[f+56>>2];J[f+56>>2]=0;J[f+80>>2]=e;J[f+60>>2]=120;J[f+64>>2]=0;j=J[f+48>>2];e=J[f+52>>2];J[f+48>>2]=0;J[f+52>>2]=0;J[f+72>>2]=j;J[f+76>>2]=e;J[195395]=0;H[f+71|0]=1;h=+(d|0);da(1863,f+32|0,+h,-1);d=J[195395];J[195395]=0;if((d|0)==1)break o;d=J[f+36>>2];J[f+96>>2]=J[f+32>>2];J[f+ -100>>2]=d;d=J[f+40>>2];J[f+40>>2]=0;J[f+104>>2]=d;J[f+84>>2]=121;J[f+88>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[195395]=0;H[f+95|0]=1;da(1863,f+16|0,+(+(c|0)-g),-1);c=J[195395];J[195395]=0;e=f+108|0;if((c|0)==1)break n;J[195395]=0;d=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break m;J[f+112>>2]=5;J[f+116>>2]=-2147483640;J[f+108>>2]=d;J[d+16>>2]=J[106548];c=J[106547];J[d+8>>2]=J[106546];J[d+12>>2]=c;c=J[106545];J[d>>2]=J[106544];J[d+4>>2]=c;J[d+20>>2]=0;J[f+128>>2]=J[f+24>>2];J[f+24>>2]=0;c=J[f+20>> -2];J[f+120>>2]=J[f+16>>2];J[f+124>>2]=c;J[f+16>>2]=0;J[f+20>>2]=0;J[195395]=0;da(1863,f|0,+(+(b|0)-h),-1);b=J[195395];J[195395]=0;if((b|0)==1)break l;J[195395]=0;c=_(1078,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break k;J[f+136>>2]=6;J[f+140>>2]=-2147483640;J[f+132>>2]=c;b=J[106555];J[c+16>>2]=J[106554];J[c+20>>2]=b;b=J[106553];J[c+8>>2]=J[106552];J[c+12>>2]=b;b=J[106551];J[c>>2]=J[106550];J[c+4>>2]=b;J[c+24>>2]=0;J[f+152>>2]=J[f+8>>2];J[f+8>>2]=0;b=J[f+4>>2];J[f+144>>2]=J[f>>2];J[f+148>>2]=b;J[f+ -156>>2]=0;J[f+160>>2]=0;J[f+164>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[195395]=0;H[f+172|0]=0;c=f+156|0;J[f+168>>2]=c;e=_(1078,96)|0;b=J[195395];J[195395]=0;p:{q:{if((b|0)!=1){J[f+160>>2]=e;J[f+156>>2]=e;J[195395]=0;J[f+164>>2]=e+96;c=ha(1957,f+164|0,f+60|0,c|0,e|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break p;d=Z()|0;J[f+160>>2]=e;break q}d=Z()|0}Kc(f+168|0);Vb(f+132|0);Vb(f+108|0);Vb(f+84|0);Vb(f+60|0);i=1;break j}J[f+160>>2]=c;if(H[f+155|0]<0)Kb(J[f+144>>2]);if(H[f+143|0]<0)Kb(J[f+132>>2]);if(H[f+131| -0]<0)Kb(J[f+120>>2]);if(H[f+119|0]<0)Kb(J[f+108>>2]);if(H[f+107|0]<0)Kb(J[f+96>>2]);if(H[f+95|0]<0)Kb(J[f+84>>2]);if(H[f+83|0]<0)Kb(J[f+72>>2]);if(H[f+71|0]<0)Kb(J[f+60>>2]);if(H[f+11|0]<0)Kb(J[f>>2]);if(H[f+27|0]<0)Kb(J[f+16>>2]);if(H[f+43|0]<0)Kb(J[f+32>>2]);if(H[f+59|0]<0)Kb(J[f+48>>2]);J[195395]=0;c=a+8|0;b=f+156|0;$(1963,c|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,c|0,b|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,c|0,b|0,0);a=J[195395]; -J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;d=_(1078,32)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[f+60>>2]=d;J[f+64>>2]=4;J[f+68>>2]=-2147483640;a=J[106633];J[d+8>>2]=J[106632];J[d+12>>2]=a;a=J[106631];J[d>>2]=J[106630];J[d+4>>2]=a;J[d+16>>2]=0;J[195395]=0;J[f+48>>2]=0;H[f+59|0]=0;ia(1961,c|0,f+60|0,b|0,f+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+71|0]<0)Kb(J[f+60>>2]);b=J[f+156>> -2];if(b){e=J[f+160>>2];d=b;if((e|0)!=(d|0)){while(1){if(H[e-1|0]<0)Kb(J[e-12>>2]);a=e-24|0;if(H[e-13|0]<0)Kb(J[a>>2]);e=a;if((e|0)!=(b|0))continue;break}d=J[f+156>>2]}J[f+160>>2]=b;Kb(d)}xb=f+176|0;return}ba(Z()|0);B()}e=f+84|0;d=Z()|0;break f}d=Z()|0;break g}d=Z()|0;break h}d=Z()|0;break i}d=Z()|0;i=0}if(H[f+11|0]>=0)break i;Kb(J[f>>2])}e=f+132|0}if(H[f+27|0]>=0)break g;Kb(J[f+16>>2])}if(H[f+43|0]>=0)break f;Kb(J[f+32>>2])}if(H[f+59|0]<0)Kb(J[f+48>>2]);if(i)break a;while(1){e=Vb(e-24|0);if((e|0)!= -(f+60|0))continue;break}break a}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;if(H[f+59|0]<0)Kb(J[f+48>>2]);if(H[f+71|0]>=0)break b;Kb(J[f+60>>2])}Hc(f+156|0)}ba(d|0);B()}function vga(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;g=J[a+464>>2];if(J[a+280>>2]){c=J[g+52>>2];if(!c){if(!(Ab[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){e=d<<2;f=J[(e+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c= -J[((J[f+20>>2]<<2)+g|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0; -H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=e+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Nb(J[((J[f+24>>2]<<2)+g|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2])continue;break}J[g+16>>2]=-16;J[g+8>>2]= -0;J[g+12>>2]=0;c=J[a+280>>2]}J[g+52>>2]=c-1}c:{if(!(J[g+16>>2]==-1|J[a+364>>2]<=0)){p=J[a+428>>2];q=g+184|0;while(1){c=m<<2;n=J[c+b>>2];c=J[(a+c|0)+368>>2]<<2;l=J[(c+a|0)+340>>2];i=J[l+20>>2];o=(i<<2)+g|0;e=c+g|0;c=J[o+56>>2]+J[e+36>>2]|0;d:{if(!lc(a,c)){J[e+36>>2]=0;f=J[e+20>>2];break d}j=1;h=0;f=0;k=lc(a,c+1|0);d=(k+c|0)+2|0;e:{if(!lc(a,d))break e;c=J[o+56>>2];d=c+20|0;if(!lc(a,d)){f=1;break e}j=0;d=c+21|0;if(!lc(a,d)){f=2;break e}d=c+22|0;if(!lc(a,d)){f=4;break e}d=c+23|0;if(!lc(a,d)){f=8;break e}d= -c+24|0;if(!lc(a,d)){f=16;break e}d=c+25|0;if(!lc(a,d)){f=32;break e}d=c+26|0;if(!lc(a,d)){f=64;break e}d=c+27|0;if(!lc(a,d)){f=128;break e}d=c+28|0;if(!lc(a,d)){f=256;break e}d=c+29|0;if(!lc(a,d)){f=512;break e}d=c+30|0;if(!lc(a,d)){f=1024;break e}d=c+31|0;if(!lc(a,d)){f=2048;break e}d=c+32|0;if(!lc(a,d)){f=4096;break e}d=c+33|0;if(!lc(a,d)){f=8192;break e}f=16384;d=c+34|0;if(lc(a,d))break c}i=a+i|0;f:{if(1<>1>(f|0))break f;c=k<<2;if(1<>1<(f|0)){h=c+12|0;break f}h=c+4|0}J[e+ -36>>2]=h;g:{if(j){d=f;break g}h=d+14|0;d=f;while(1){c=f>>>1|0;d=(lc(a,h)?c:0)|d;j=f>>>0>3;f=c;if(j)continue;break}}f=J[e+20>>2]+(k?d^-1:d+1|0)|0;J[e+20>>2]=f}I[n>>1]=f;h:{if(J[a+432>>2]<=0)break h;c=J[l+24>>2];j=c+a|0;h=(c<<2)+g|0;d=1;while(1){f=d;d=(J[h+120>>2]+P(d,3)|0)-3|0;if(lc(a,d))break h;while(1){if(!lc(a,d+1|0)){d=d+3|0;c=J[a+432>>2]>(f|0);f=f+1|0;if(c)continue;break c}break}k=lc(a,q);c=d+2|0;i:{if(!lc(a,c)){c=0;break i}if(!lc(a,c)){c=1;break i}c=J[h+120>>2]+(K[j+264|0]<(f|0)?217:189)|0;j:{if(!lc(a, -c)){d=2;break j}e=c+1|0;if(!lc(a,e)){d=4;c=e;break j}e=c+2|0;if(!lc(a,e)){d=8;c=e;break j}e=c+3|0;if(!lc(a,e)){d=16;c=e;break j}e=c+4|0;if(!lc(a,e)){d=32;c=e;break j}e=c+5|0;if(!lc(a,e)){d=64;c=e;break j}e=c+6|0;if(!lc(a,e)){d=128;c=e;break j}e=c+7|0;if(!lc(a,e)){d=256;c=e;break j}e=c+8|0;if(!lc(a,e)){d=512;c=e;break j}e=c+9|0;if(!lc(a,e)){d=1024;c=e;break j}e=c+10|0;if(!lc(a,e)){d=2048;c=e;break j}e=c+11|0;if(!lc(a,e)){d=4096;c=e;break j}e=c+12|0;if(!lc(a,e)){d=8192;c=e;break j}d=16384;c=c+13|0; -if(lc(a,c))break c}l=c+14|0;c=d;while(1){e=d>>>1|0;c=(lc(a,l)?e:0)|c;i=d>>>0>3;d=e;if(i)continue;break}}I[(J[(f<<2)+p>>2]<<1)+n>>1]=k?c^-1:c+1|0;d=f+1|0;if(J[a+432>>2]>(f|0))continue;break}}m=m+1|0;if((m|0)>2])continue;break}}return 1}b=J[a>>2];J[b+20>>2]=117;Ab[J[b+4>>2]](a,-1);J[g+16>>2]=-1;return 1}function Es(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;m=xb-16|0;xb=m;c=-102;a:{if(!a|!J[a+56>>2])break a;J[a+68>>2]=0;b=a- -64|0;b:{if(!(J[a+160>>2]|J[a+156>> -2]!=8)){c=a+164|0;while(1){if(!J[a+80>>2]){Ds(a);J[a+76>>2]=c;J[a+80>>2]=65536}d=J[a+84>>2];e=jg(b,4);J[a+124>>2]=J[a+124>>2]+(J[a+84>>2]-d|0);if(!e)continue;break}if((e|0)!=1)break b}e=0;if(!J[a+124>>2])break b;e=(Ds(a)|0)==-1?-1:0}if(!(J[a+160>>2]|J[a+156>>2]!=8)){b=wk(b);J[a+120>>2]=0;e=e?e:b}if(!J[a+160>>2]){b=a+65736|0;h=J[b>>2];i=J[b+4>>2];k=J[a+65704>>2]}c=J[a+65760>>2];b=a+65728|0;g=c+J[b>>2]|0;f=J[b+4>>2]+(c>>31)|0;f=c>>>0>g>>>0?f+1|0:f;c:{if(!(!f&(g|0)==-1|(f|0)!=0|(!i&(h|0)==-1|(i|0)!= -0)))if(!J[a+132>>2]&J[a+128>>2]!=-1)break c;b=J[a+136>>2];H[b+4|0]=45;H[b+5|0]=0;b=J[a+136>>2];H[b+6|0]=45;H[b+7|0]=0}b=J[a+136>>2];H[b+16|0]=k;H[b+17|0]=k>>>8;H[b+18|0]=k>>>16;H[b+19|0]=k>>>24;b=J[a+136>>2];d:{if(!f&(g|0)==-1|f){H[b+20|0]=255;H[b+21|0]=255;H[b+22|0]=255;H[b+23|0]=255;break d}H[b+20|0]=g;H[b+21|0]=g>>>8;H[b+22|0]=g>>>16;H[b+23|0]=g>>>24}if(J[a+108>>2]==1){b=J[a+136>>2];H[b+36|0]=1;H[b+37|0]=0}b=J[a+136>>2];e:{if(!i&(h|0)==-1|i){H[b+24|0]=255;H[b+25|0]=255;H[b+26|0]=255;H[b+27|0]= -255;b=8;break e}H[b+24|0]=h;H[b+25|0]=h>>>8;H[b+26|0]=h>>>16;H[b+27|0]=h>>>24;b=0}b=!f&(g|0)==-1|f?b+8|0:b;c=b+8|0;d=b;b=J[a+132>>2];d=!b&J[a+128>>2]==-1|b?c:d;f:{if(!d)break f;c=-103;j=d|4;if(j>>>0>M[a+148>>2])break a;b=J[a+136>>2]+J[a+144>>2]|0;H[b+3|0]=0;H[b+2|0]=d;H[b|0]=1;H[b+1|0]=0;if(!i&(h|0)!=-1)b=b+4|0;else{H[b+4|0]=h;H[b+5|0]=h>>>8;H[b+6|0]=h>>>16;H[b+7|0]=h>>>24;H[b+8|0]=i;H[b+9|0]=i>>>8;H[b+10|0]=i>>>16;H[b+11|0]=i>>>24;b=b+12|0}if(!f&(g|0)==-1|f){H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>> -16;H[b+3|0]=g>>>24;H[b+4|0]=f;H[b+5|0]=f>>>8;H[b+6|0]=f>>>16;H[b+7|0]=f>>>24;b=b+8|0}d=J[a+132>>2];c=J[a+128>>2];if(!d&(c|0)==-1|d){H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24}J[a+148>>2]=J[a+148>>2]-j;J[a+144>>2]=j+J[a+144>>2];b=j+J[a+140>>2]|0;J[a+140>>2]=b;c=J[a+136>>2];H[c+30|0]=b;H[c+31|0]=b>>>8;if(b>>>0<65536)break f;H[c+30|0]=255;H[c+31|0]=255}b=J[a+136>>2];g:{if(e){Kb(b);c=e;break g}j=J[a+144>>2];h:{c=J[a+52>>2];if(!c){c= -Qb(4096);if(!c){c=a+48|0;J[a+52>>2]=0;break h}J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=4080;J[a+48>>2]=c;J[a+52>>2]=c}if(j){e=J[c+4>>2];while(1){if(e)d=J[c+8>>2];else{d=Qb(4096);if(!d)break h;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=4080;J[c>>2]=d;J[a+52>>2]=d;e=4080;c=d;d=0}n=(c+d|0)+16|0;d=e>>>0>>0?e:j;q=d&3;o=0;e=0;if(d>>>0>=4){r=d&-4;p=0;while(1){H[e+n|0]=K[b+e|0];l=e|1;H[l+n|0]=K[b+l|0];l=e|2;H[l+n|0]=K[b+l|0];l=e|3;H[l+n|0]=K[b+l|0];e=e+4|0;p=p+4|0;if((r|0)!=(p|0))continue;break}}if(q)while(1){H[e+n|0]=K[b+ -e|0];e=e+1|0;o=o+1|0;if((o|0)!=(q|0))continue;break}J[c+8>>2]=d+J[c+8>>2];e=J[c+4>>2]-d|0;J[c+4>>2]=e;b=b+d|0;j=j-d|0;if(j)continue;break}b=J[a+136>>2]}Kb(b);c=mi(a,J[a+44>>2]);j=zb;d=J[a+44>>2];b=J[a+132>>2];e=J[a+128>>2]+14|0;b=e>>>0<14?b+1|0:b;i:{j:{if(!_e(a,d,e,b,0)){b=J[a+44>>2];H[m+11|0]=k>>>24;H[m+10|0]=k>>>16;H[m+9|0]=k>>>8;H[m+8|0]=k;b=Ab[J[a+8>>2]](J[a+28>>2],b,m+8|0,4)|0;e=(b|0)!=4?-1:0;if(!i&(h|0)==-1|i|(!f&(g|0)==-1|f))break j;e=-1;if((b|0)!=4)break i;if(no(a,J[a+44>>2],g,f,4))break i; -e=no(a,J[a+44>>2],h,i,4);break i}e=-1;if(!i&(h|0)==-1|i)break j;if(!f&(g|0)!=-1)break i}d=a+65720|0;k=J[d>>2];d=J[d+4>>2];if(!(k|d)){e=-103;break i}n=J[a+44>>2];b=d;d=k+4|0;b=d>>>0<4?b+1|0:b;b=_e(a,n,d,b,0)|e;e=-1;if(b)break i;if(no(a,J[a+44>>2],h,i,8))break i;e=no(a,J[a+44>>2],g,f,8)}c=_e(a,J[a+44>>2],c,j,0)?-1:e;break g}J[c>>2]=0;Kb(J[a+136>>2]);c=-104}J[a+56>>2]=0;f=J[a+65788>>2];b=J[a+65784>>2]+1|0;f=b?f:f+1|0;J[a+65784>>2]=b;J[a+65788>>2]=f}xb=m+16|0;return c}function Ue(a,b,c){var d=0,e=0,f= -0,g=0,h=0,i=0,j=0,k=0,l=0,m=Q(0),n=0;k=xb-16|0;xb=k;J[k+12>>2]=c;g=ek(a,b);a:{if(!g)break a;if(b>>>0<=65535){g=L[g+12>>1];if(!(J[((g>>>3&8188)+a|0)+40>>2]>>>g&1))break a}e=Ab[J[a+672>>2]](a,b,c)|0}b:{if(e)break b;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(b-254|0){default:p:switch(b-529|0){case 0:break i;case 3:break d;case 2:break g;case 1:break h;default:break p}switch(b-32995|0){case 2:break j;case 1:break l;case 3:break m;case 0:break n;default:break b}case 0:J[J[c>>2]>>2]=J[a+80>>2];break b; -case 4:I[J[c>>2]>>1]=L[a+84>>1];break b;case 9:I[J[c>>2]>>1]=L[a+92>>1];break b;case 12:I[J[c>>2]>>1]=L[a+94>>1];break b;case 20:I[J[c>>2]>>1]=L[a+96>>1];break b;case 23:I[J[c>>2]>>1]=L[a+98>>1];break b;case 24:J[J[c>>2]>>2]=J[a+100>>2];break b;case 26:I[J[c>>2]>>1]=L[a+104>>1];break b;case 27:I[J[c>>2]>>1]=L[a+106>>1];break b;case 30:I[J[c>>2]>>1]=L[a+138>>1];break b;case 42:I[J[c>>2]>>1]=L[a+136>>1];break b;case 63:I[J[c>>2]>>1]=J[J[a+584>>2]>>2];break b;case 82:I[J[c>>2]>>1]=0;I[J[c+4>>2]>>1]= --1<>1]^-1;break b;case 78:I[J[c>>2]>>1]=1;break b;case 80:I[J[c>>2]>>1]=4;break b;case 85:break k;case 84:break o;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 22:case 25:case 28:case 29:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 43:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 79:case 81:case 83:break b; -case 47:break e;case 64:break f}I[J[c>>2]>>1]=L[a+168>>1];J[J[c+4>>2]>>2]=J[a+172>>2];break b}I[J[c>>2]>>1]=L[J[a+172>>2]>>1]==1&L[a+168>>1]==1;break b}J[J[c>>2]>>2]=J[a+76>>2];break b}I[J[c>>2]>>1]=L[a+86>>1]-1;break b}I[J[c>>2]>>1]=L[a+86>>1];break b}J[J[c>>2]>>2]=J[a- -64>>2];break b}J[J[c>>2]>>2]=775724;break b}I[J[c>>2]>>1]=L[a+204>>1];I[J[c+4>>2]>>1]=L[a+206>>1];break b}I[J[c>>2]>>1]=L[a+208>>1];break b}J[194308]=1051788566;J[194309]=1052218684;J[J[c>>2]>>2]=777232;break b}b=J[a+216>>2];if(!b){J[a+ -216>>2]=0;J[a+220>>2]=0;J[a+224>>2]=0;e=L[a+84>>1];q:{if(e>>>0>29)break q;g=2<>2]=b;if(!b)break q;I[b>>1]=0;r:{if(!e)break r;d=1;f=1<>>0<=2?2:f)-1|0;n=j&1;h=+(f-1|0);if((e|0)!=1){j=j&-2;e=0;while(1){l=b+(d<<1)|0;i=V(Qd(+(d|0)/h,2.2)*65535+.5);s:{if(i<4294967296&i>=0){f=~~i>>>0;break s}f=0}I[l>>1]=f;f=d+1|0;l=b+(f<<1)|0;i=V(Qd(+(f|0)/h,2.2)*65535+.5);t:{if(i<4294967296&i>=0){f=~~i>>>0;break t}f=0}I[l>>1]=f;d=d+2|0;e=e+2|0;if((j|0)!=(e|0))continue;break}}if(!n)break r;e=b+ -(d<<1)|0;h=V(Qd(+(d|0)/h,2.2)*65535+.5);u:{if(h<4294967296&h>=0){b=~~h>>>0;break u}b=0}I[e>>1]=b}d=1;if((L[a+98>>1]-L[a+168>>1]|0)<2)break q;b=Qb(g);J[a+220>>2]=b;v:{if(!b)break v;Pc(b,J[a+216>>2],g);b=Qb(g);J[a+224>>2]=b;if(!b)break v;Pc(b,J[a+216>>2],g);break q}b=J[a+216>>2];if(b)Kb(b);b=J[a+220>>2];if(b)Kb(b);b=J[a+224>>2];if(b)Kb(b);d=0;J[a+224>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0}if(!d)break c;b=J[a+216>>2]}J[J[c>>2]>>2]=b;if((L[a+98>>1]-L[a+168>>1]|0)<2)break b;J[J[c+4>>2]>>2]=J[a+220>>2];J[J[c+ -8>>2]>>2]=J[a+224>>2];break b}b=J[a+212>>2];if(!b){b=Qb(24);J[a+212>>2]=b;d=0;w:{if(!b)break w;if(L[a+90>>1]!=6){d=L[a+84>>1];J[b+16>>2]=0;J[b+8>>2]=0;J[b>>2]=0;m=Q(-1<>2]=m;N[b+12>>2]=m;N[b+4>>2]=m;d=1;break w}J[b>>2]=0;J[b+4>>2]=1132396544;J[b+16>>2]=1124073472;J[b+20>>2]=1132396544;J[b+8>>2]=1124073472;J[b+12>>2]=1132396544;d=1}if(!d)break b;b=J[a+212>>2]}J[J[c>>2]>>2]=b;break b}Ob(J[a+628>>2],J[a>>2],264112,0)}xb=k+16|0}function Eu(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,r=0;g=xb-32|0;xb=g;e=K[c+2|0]|K[c+3|0]<<8;j=e<<8|e>>>8;p=j&65535;d=J[b+4>>2];k=J[d+72>>2];b=K[c+6|0]|K[c+7|0]<<8;a:{if((b|0)!=65535){h=p&31;e=J[d+152>>2]-h|0;J[d+152>>2]=e;if((e|0)<=0)break a;o=J[a+12>>2]+(((b<<8|b>>>8)&65535)<<1)|0;b=J[a+4>>2];b:{c:{if(o-J[b+24>>2]>>>0>M[b+32>>2])break c;e=h<<1;if(e>>>0>J[b+28>>2]-o>>>0)break c;f=b;b=J[b+36>>2]-e|0;J[f+36>>2]=b;if((b|0)>0)break b}h=0}r=J[d+72>>2];if(!pf(d,J[a+8>>2]))break a;q=p&1024;d:{if(q)break d;b=J[d+64>>2];if(b>>>0>=M[d+ -68>>2])break d;b=J[d+80>>2]+P(b,20)|0;J[g+24>>2]=J[b+16>>2];e=J[b+12>>2];J[g+16>>2]=J[b+8>>2];J[g+20>>2]=e;e=J[b+4>>2];J[g+8>>2]=J[b>>2];J[g+12>>2]=e;if(!ec(d,0,1))break a;e=J[g+12>>2];b=J[d+84>>2]+P(J[d+72>>2],20)|0;J[b>>2]=J[g+8>>2];J[b+4>>2]=e;J[b+16>>2]=J[g+24>>2];e=J[g+20>>2];J[b+8>>2]=J[g+16>>2];J[b+12>>2]=e;J[d+72>>2]=J[d+72>>2]+1}if(!ec(d,0,h))break a;b=J[d+64>>2];f=J[d+68>>2];e:{if(b>>>0>>0){i=J[d+72>>2];m=J[d+84>>2];e=J[d+80>>2]+P(b,20)|0;break e}m=J[d+84>>2];i=J[d+72>>2];e=i-1|0;e=m+ -P(e>>>0<=i>>>0?e:0,20)|0}f:{if(!h){J[d+72>>2]=i;break f}b=P(i,20)+m|0;i=0;if((h|0)!=1){m=h&30;f=0;while(1){l=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=l;J[b+16>>2]=J[e+16>>2];l=e+8|0;n=J[l+4>>2];J[b+8>>2]=J[l>>2];J[b+12>>2]=n;l=i<<1;n=l+o|0;n=K[n|0]|K[n+1|0]<<8;J[b>>2]=(n<<8|n>>>8)&65535;J[b+36>>2]=J[e+16>>2];n=J[e+12>>2];J[b+28>>2]=J[e+8>>2];J[b+32>>2]=n;n=J[e+4>>2];J[b+20>>2]=J[e>>2];J[b+24>>2]=n;l=o+(l|2)|0;l=K[l|0]|K[l+1|0]<<8;J[b+20>>2]=(l<<8|l>>>8)&65535;i=i+2|0;b=b+40|0;f=f+2|0;if((m|0)!=(f|0))continue; -break}}if(h&1){f=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=f;J[b+16>>2]=J[e+16>>2];f=J[e+12>>2];J[b+8>>2]=J[e+8>>2];J[b+12>>2]=f;e=b;b=o+(i<<1)|0;b=K[b|0]|K[b+1|0]<<8;J[e>>2]=(b<<8|b>>>8)&65535}J[d+72>>2]=J[d+72>>2]+h;f=J[d+68>>2];b=J[d+64>>2]}if(!(b>>>0>=f>>>0|q))J[d+64>>2]=b+1;if(!pf(d,h+r|0))break a;b=J[d+64>>2]+1|0;e=J[d+68>>2];Ac(d,3,J[a+8>>2],b>>>0>>0?b:e,1,1)}if(j<<16>>16<0)J[a+8>>2]=k;b=K[c+4|0]|K[c+5|0]<<8;if((b|0)==65535)break a;h=p>>>5&31;c=J[d+152>>2]-h|0;J[d+152>>2]=c;if((c|0)<=0)break a; -c=J[a+12>>2]+(((b<<8|b>>>8)&65535)<<1)|0;a=J[a+4>>2];g:{h:{if(c-J[a+24>>2]>>>0>M[a+32>>2])break h;b=h<<1;if(b>>>0>J[a+28>>2]-c>>>0)break h;e=a;a=J[a+36>>2]-b|0;J[e+36>>2]=a;if((a|0)>0)break g}h=0}e=J[d+72>>2];o=p&2048;i:{if(o)break i;a=J[d+64>>2];if(a>>>0>=M[d+68>>2])break i;a=J[d+80>>2]+P(a,20)|0;J[g+24>>2]=J[a+16>>2];b=J[a+12>>2];J[g+16>>2]=J[a+8>>2];J[g+20>>2]=b;b=J[a+4>>2];J[g+8>>2]=J[a>>2];J[g+12>>2]=b;if(!ec(d,0,1))break a;b=J[g+12>>2];a=J[d+84>>2]+P(J[d+72>>2],20)|0;J[a>>2]=J[g+8>>2];J[a+4>> -2]=b;J[a+16>>2]=J[g+24>>2];b=J[g+20>>2];J[a+8>>2]=J[g+16>>2];J[a+12>>2]=b;J[d+72>>2]=J[d+72>>2]+1}if(!ec(d,0,h))break a;b=J[d+64>>2];f=J[d+68>>2];j:{if(b>>>0>>0){i=J[d+72>>2];m=J[d+84>>2];a=J[d+80>>2]+P(b,20)|0;break j}m=J[d+84>>2];i=J[d+72>>2];a=i-1|0;a=m+P(a>>>0<=i>>>0?a:0,20)|0}k:{if(!h){J[d+72>>2]=i;break k}b=P(i,20)+m|0;i=0;if((h|0)!=1){m=h&30;f=0;while(1){j=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=j;J[b+16>>2]=J[a+16>>2];j=a+8|0;k=J[j+4>>2];J[b+8>>2]=J[j>>2];J[b+12>>2]=k;j=i<<1;k=j+c|0;k=K[k| -0]|K[k+1|0]<<8;J[b>>2]=(k<<8|k>>>8)&65535;J[b+36>>2]=J[a+16>>2];k=J[a+12>>2];J[b+28>>2]=J[a+8>>2];J[b+32>>2]=k;k=J[a+4>>2];J[b+20>>2]=J[a>>2];J[b+24>>2]=k;j=c+(j|2)|0;j=K[j|0]|K[j+1|0]<<8;J[b+20>>2]=(j<<8|j>>>8)&65535;i=i+2|0;b=b+40|0;f=f+2|0;if((m|0)!=(f|0))continue;break}}if(h&1){f=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=f;J[b+16>>2]=J[a+16>>2];f=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=f;a=c+(i<<1)|0;a=K[a|0]|K[a+1|0]<<8;J[b>>2]=(a<<8|a>>>8)&65535}J[d+72>>2]=J[d+72>>2]+h;f=J[d+68>>2];b=J[d+64>>2]}if(!(b>>> -0>=f>>>0|o))J[d+64>>2]=b+1;pf(d,e+(p&16384?0:h)|0)}xb=g+32|0}function qma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=vc(1,160);a:{if(!f)break a;c=142224;J[f>>2]=142224;b:{c:{d:{e:{f:{g:{h:{b=J[a+4>>2];if((b|0)<=1265525856){if((b|0)<=1198877297){if((b|0)==1113943655)break h;e=142248;if((b|0)==1147500129)break c;break b}if((b|0)==1198877298)break g;if((b|0)!=1198879349)break b;e=142296;break c}if((b|0)<=1332902240){if((b|0)==1265525857)break d;if((b|0)!=1298954605)break b;e=142440;break c}if((b| -0)==1332902241)break f;if((b|0)==1415671148)break e;if((b|0)!=1415933045)break b;e=142392;break c}e=142272;break c}e=142320;break c}e=142344;break c}e=142368;break c}e=142416}J[f>>2]=e;c=e}d=K[c+4|0]?K[a+24|0]!=50:d;H[f+4|0]=d;c=J[194108];if(!c){du();c=J[194108]}b=-1;J[f+8>>2]=-1;H[f+5|0]=c>>>2&1;h=d?h:J[a+4>>2]!=1298954605;H[f+24|0]=h;j=J[a+48>>2];i=J[a+44>>2];i:{if((i|0)<=0)break i;b=i-1|0;d=0;j:{while(1){e=b+d>>>1|0;c=J[P(e,36)+j>>2];k:{if(c>>>0>=1919969383){b=e-1|0;break k}if((c|0)==1919969382)break j; -d=e+1|0}if((b|0)>=(d|0))continue;break}b=-1;break i}b=J[(P(e,36)+j|0)+12>>2]}e=J[a+80>>2];l:{if(e>>>0>>0){c=0;b=0;break l}g=J[a+56>>2];d=b?J[(J[a+84>>2]+(b<<3)|0)-8>>2]:0;c=g-d|0;c=c>>>0<=g>>>0?c:0;if(b>>>0>>0)b=J[a+84>>2]+(b<<3)|0;else b=a+56|0;b=J[b>>2]-d|0;c=b>>>0>c>>>0?c:b;b=J[a+60>>2]+P(d,12)|0}J[f+12>>2]=b;H[f+40|0]=h;J[f+20>>2]=0;J[f+16>>2]=c;b=-1;m:{if((i|0)<=0)break m;b=i-1|0;d=0;n:{while(1){c=b+d>>>1|0;g=J[P(c,36)+j>>2];o:{if(g>>>0>=1886545255){b=c-1|0;break o}if((g|0)==1886545254)break n; -d=c+1|0}if((b|0)>=(d|0))continue;break}b=-1;break m}b=J[(P(c,36)+j|0)+12>>2]}p:{if(b>>>0>e>>>0){c=0;b=0;break p}g=J[a+56>>2];d=b?J[(J[a+84>>2]+(b<<3)|0)-8>>2]:0;c=g-d|0;c=c>>>0<=g>>>0?c:0;if(b>>>0>>0)b=J[a+84>>2]+(b<<3)|0;else b=a+56|0;b=J[b>>2]-d|0;c=b>>>0>c>>>0?c:b;b=J[a+60>>2]+P(d,12)|0}J[f+28>>2]=b;H[f+56|0]=h;J[f+36>>2]=0;J[f+32>>2]=c;b=-1;q:{if((i|0)<=0)break q;b=i-1|0;d=0;r:{while(1){c=b+d>>>1|0;g=J[P(c,36)+j>>2];s:{if(g>>>0>=1651275623){b=c-1|0;break s}if((g|0)==1651275622)break r;d=c+ -1|0}if((b|0)>=(d|0))continue;break}b=-1;break q}b=J[(P(c,36)+j|0)+12>>2]}t:{if(b>>>0>e>>>0){c=0;b=0;break t}g=J[a+56>>2];d=b?J[(J[a+84>>2]+(b<<3)|0)-8>>2]:0;c=g-d|0;c=c>>>0<=g>>>0?c:0;if(b>>>0>>0)b=J[a+84>>2]+(b<<3)|0;else b=a+56|0;b=J[b>>2]-d|0;c=b>>>0>c>>>0?c:b;b=J[a+60>>2]+P(d,12)|0}J[f+44>>2]=b;H[f+72|0]=h;J[f+52>>2]=0;J[f+48>>2]=c;b=-1;u:{if((i|0)<=0)break u;b=i-1|0;d=0;v:{while(1){c=b+d>>>1|0;g=J[P(c,36)+j>>2];w:{if(g>>>0>=1886614631){b=c-1|0;break w}if((g|0)==1886614630)break v;d=c+1|0}if((b| -0)>=(d|0))continue;break}b=-1;break u}b=J[(P(c,36)+j|0)+12>>2]}x:{if(b>>>0>e>>>0){c=0;b=0;break x}g=J[a+56>>2];d=b?J[(J[a+84>>2]+(b<<3)|0)-8>>2]:0;c=g-d|0;c=c>>>0<=g>>>0?c:0;if(b>>>0>>0)b=J[a+84>>2]+(b<<3)|0;else b=a+56|0;b=J[b>>2]-d|0;c=b>>>0>c>>>0?c:b;b=J[a+60>>2]+P(d,12)|0}J[f+60>>2]=b;H[f+88|0]=h;J[f+68>>2]=0;J[f- -64>>2]=c;b=-1;y:{if((i|0)<=0)break y;b=i-1|0;d=0;z:{while(1){c=b+d>>>1|0;h=J[P(c,36)+j>>2];A:{if(h>>>0>=1986098294){b=c-1|0;break A}if((h|0)==1986098293)break z;d=c+1|0}if((b|0)>= -(d|0))continue;break}b=-1;break y}b=J[(P(c,36)+j|0)+12>>2]}h=0;B:{if(b>>>0>e>>>0){c=0;a=0;break B}d=b?J[(J[a+84>>2]+(b<<3)|0)-8>>2]:0;if(b>>>0>>0)e=J[a+84>>2]+(b<<3)|0;else e=a+56|0;b=J[a+56>>2];c=b-d|0;b=b>>>0>=c>>>0?c:0;e=J[e>>2]-d|0;c=b>>>0>>0?b:e;a=J[a+60>>2]+P(d,12)|0}J[f+76>>2]=a;J[f+84>>2]=0;J[f+80>>2]=c;if((i|0)<=0)break a;a=i-1|0;while(1){k=(h<<2)+f|0;d=0;C:{if(!(2548>>>h&1))break C;e=J[(h<<3)+139024>>2];d=0;b=a;while(1){c=b+d>>>1|0;g=P(c,36)+j|0;i=J[g>>2];D:{if(i>>>0<=e>>>0){d=J[g+ -28>>2];if(e>>>0<=i>>>0)break C;d=c+1|0;break D}b=c-1|0}if((b|0)>=(d|0))continue;break}d=0}J[k+92>>2]=d;h=h+1|0;if((h|0)!=17)continue;break}}return f|0}function Bga(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[a+36>>2]>0){l=J[a+468>>2];i=J[a+216>>2];while(1){d=b;h=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{g=J[i+36>>2];c=J[i+40>>2]+(g<<8)|0;if((c|0)<=2051){if((c|0)<=1025){K:switch(c-513|0){case 3:break i;case 0:break p; -case 1:break J;case 2:break e;default:break K}b=1413;e=0;L:switch(c-257|0){case 1:break h;case 0:break a;default:break L}switch(c-771|0){case 3:break j;case 0:break I;default:break e}}if((c|0)<=1538){M:switch(c-1026|0){case 6:break k;case 0:break q;case 2:break H;case 1:case 3:case 4:case 5:break e;default:break M}switch(c-1285|0){case 5:break l;case 0:break G;default:break e}}N:switch(c-1539|0){case 9:break m;case 0:break r;case 3:break F;case 1:case 2:case 4:case 5:case 6:case 7:case 8:break e; -default:break N}switch(c-1799|0){case 7:break n;case 0:break E;default:break e}}if((c|0)<=3077){if((c|0)<=2564)switch(c-2052|0){case 12:break o;case 0:break s;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break e;case 4:break g;default:break f}switch(c-2565|0){case 0:break t;case 5:break D;case 1:case 2:case 3:case 4:break e;default:break C}}if((c|0)<=3590)switch(c-3078|0){case 0:break u;case 6:break B;case 1:case 2:case 3:case 4:case 5:break e;default:break A}O:switch(c- -3591|0){case 0:break v;case 7:break z;case 1:case 2:case 3:case 4:case 5:case 6:break e;default:break O}switch(c-4104|0){case 0:break w;case 8:break x;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break e;default:break y}}b=1414;e=0;break a}b=1415;break a}b=1416;e=0;break a}b=1417;e=0;break a}b=1418;e=0;break a}b=1419;e=0;break a}b=1420;e=0;break a}if((c|0)!=2827)break e;b=1421;e=0;break a}b=1422;e=0;break a}if((c|0)!=3341)break e;b=1423;e=0;break a}b=1424;e=0;break a}if((c|0)!=3855)break e;b= -1425;e=0;break a}b=1426;e=0;break a}b=1427;e=0;break a}b=1428;e=0;break a}b=1429;e=0;break a}b=1430;e=0;break a}b=1431;e=0;break a}b=1432;e=0;break a}b=1433;e=0;break a}b=1434;e=0;break a}b=1435;e=0;break a}b=1436;e=0;break a}b=1437;e=0;break a}b=1438;e=0;break a}b=1439;e=0;break a}b=1440;break a}b=1441;e=0;break a}b=1442;break a}e=J[a+72>>2];if(e>>>0<3)break d;b=J[a>>2];J[b+20>>2]=49;Ab[J[b>>2]](a);break c}if((c|0)==2313)break b}b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=7;J[J[a>>2]+28>>2]=J[i+40>>2];Ab[J[J[a>> -2]>>2]](a);break c}b=J[(e<<2)+248864>>2];break a}b=d;e=h;break a}b=1443;e=0}d=(k<<2)+l|0;J[d+4>>2]=b;P:{if(!J[i+52>>2]|J[d+44>>2]==(e|0))break P;h=J[i+80>>2];if(!h)break P;J[d+44>>2]=e;Q:switch(e|0){case 0:c=J[i+84>>2];d=0;while(1){J[c+(d<<2)>>2]=L[h+(d<<1)>>1];g=d|1;J[c+(g<<2)>>2]=L[h+(g<<1)>>1];g=d|2;J[c+(g<<2)>>2]=L[h+(g<<1)>>1];g=d|3;J[c+(g<<2)>>2]=L[h+(g<<1)>>1];d=d+4|0;if((d|0)!=64)continue;break}break P;case 1:c=J[i+84>>2];d=0;while(1){g=d<<1;J[c+(d<<2)>>2]=P(I[g+248672>>1],L[h+g>>1])+2048>> -12;f=d|1;g=f<<1;J[c+(f<<2)>>2]=P(I[g+248672>>1],L[h+g>>1])+2048>>12;d=d+2|0;if((d|0)!=64)continue;break}break P;case 2:c=J[i+84>>2];g=0;d=0;while(1){j=O[(g<<3)+248800>>3];N[c+(d<<2)>>2]=j*+L[h+(d<<1)>>1]*.125;f=d|1;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.387039845*.125;f=d|2;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.306562965*.125;f=d|3;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.175875602*.125;f=d|4;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.125;f=d|5;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.785694958*.125;f=d|6;N[c+(f<<2)>>2]=j*+L[h+ -(f<<1)>>1]*.5411961*.125;f=d|7;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.275899379*.125;d=d+8|0;g=g+1|0;if((g|0)!=8)continue;break}break P;default:break Q}d=J[a>>2];J[d+20>>2]=49;Ab[J[d>>2]](a)}i=i+88|0;k=k+1|0;if((k|0)>2])continue;break}}}function Oaa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+12>>2];i=J[d+584>>2];a:{b:{c:{while(1){d:{a=0;e:{f:{g:{h:switch(J[i+3204>>2]){case 1:a=J[d+584>>2];b=J[a+252>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue; -break a;case 2:a=J[d+584>>2];b=J[a+256>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 3:a=J[d+584>>2];b=J[a+260>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 4:a=J[d+584>>2];b=J[a+264>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 5:a=J[d+584>>2];b=J[a+268>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue; -break a;case 6:a=J[d+584>>2];b=J[a+272>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 7:a=J[d+584>>2];b=J[a+276>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 8:a=J[d+584>>2];b=J[a+280>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 9:a=J[d+584>>2];b=J[a+284>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue; -break a;case 10:a=J[d+584>>2];b=J[a+288>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 11:a=J[d+584>>2];b=J[a+292>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 12:a=J[d+584>>2];b=J[a+296>>2];if(b){e=b+4|0;c=J[b>>2]-4|0;b=c}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 13:a=J[d+584>>2];b=L[a+300>>1];if(b){J[a+3208>>2]=67165695;H[a+3213|0]=b;H[a+3212|0]=b>>>8;e=a+3208|0;c= -6;b=6}else b=0;J[a+3204>>2]=J[a+3204>>2]+1;if(!b)continue;break a;case 14:d=J[d+584>>2];H[d+3208|0]=255;H[d+3210|0]=0;H[d+3209|0]=K[d+304|0];H[d+3212|0]=8;c=K[d+194|0];H[d+3217|0]=c;e=J[d+308>>2];H[d+3216|0]=e;H[d+3215|0]=e>>>8;H[d+3211|0]=P(c,3)+8;e=d+3213|0;b=L[d+312>>1];b=b<<8|b>>>8;H[e|0]=b;H[e+1|0]=b>>>8;if(c){h=K[d+193|0];while(1){e=d+P(a,3)|0;b=d+(a+h|0)|0;H[e+3218|0]=K[b+316|0];H[e+3219|0]=K[b+319|0];H[e+3220|0]=K[b+322|0];a=a+1|0;if((c|0)!=(a|0))continue;break}c=P(c,3)+10|0}else c=10;e=d+ -3208|0;J[d+3204>>2]=J[d+3204>>2]+1;break a;case 15:c=J[d+584>>2];I[c+3208>>1]=56063;H[c+3210|0]=0;e=K[c+194|0];H[c+3212|0]=e;H[c+3211|0]=(e<<1)+6;if(e){d=K[c+193|0];if((e|0)!=1){l=e&254;b=c+3208|0;h=c+325|0;j=c+328|0;while(1){f=b+(a<<1)|0;g=a+d|0;H[f+5|0]=K[g+h|0];H[f+6|0]=K[g+j|0];f=a|1;g=b+(f<<1)|0;f=d+f|0;H[g+5|0]=K[f+h|0];H[g+6|0]=K[f+j|0];a=a+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(e&1){b=c+(a<<1)|0;a=c+(a+d|0)|0;H[b+3213|0]=K[a+325|0];H[b+3214|0]=K[a+328|0]}a=e<<1}e=c+3208|0;d=a+c|0; -H[d+3215|0]=0;d=d+3213|0;H[d|0]=0;H[d+1|0]=63;J[c+3204>>2]=J[c+3204>>2]+1;c=a+8|0;break a;case 16:b=J[d+584>>2];a=L[b+1148>>1];if(!a){if(!Jd(b))break d;a=L[b+1148>>1]}I[b+1148>>1]=0;c=a&65535;e=J[b+1152>>2];if(J[b+1144>>2])break f;a=c;i:switch(J[b+1124>>2]-2|0){case 0:break i;case 1:break g;default:break e}if(M[b+1128>>2]>=M[b+1132>>2])break g;J[b+3204>>2]=17;break f;case 17:a=J[d+584>>2];H[a+3208|0]=255;J[a+3204>>2]=16;c=K[a+302|0];H[a+3209|0]=c-48;c=c+1|0;H[a+302|0]=(c&255)!=8?c:0;e=a+3208|0;break b; -case 0:break c;case 18:break h;default:break e}a=J[d+584>>2];I[a+3208>>1]=55807;e=a+3208|0;break b}J[b+3204>>2]=18}a=c}if(!a)continue;break a}break}Ob(J[d+628>>2],281532,281732,0);gd(J[d+584>>2]+4|0,1);B()}a=J[d+584>>2];I[a+3208>>1]=55551;J[a+3204>>2]=J[a+3204>>2]+1;e=a+3208|0}c=2}J[i+1024>>2]=e;J[i+1028>>2]=c;return 1}function dZ(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;g=xb-176|0;xb=g;J[195395]=0;da(1863,g+48|0,+(f|0),-1);b=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((b| -0)!=1){b=J[g+56>>2];J[g+56>>2]=0;J[g+80>>2]=b;J[g+60>>2]=120;J[g+64>>2]=0;b=J[g+48>>2];f=J[g+52>>2];J[g+48>>2]=0;J[g+52>>2]=0;J[g+72>>2]=b;J[g+76>>2]=f;J[195395]=0;H[g+71|0]=1;da(1863,g+32|0,+(e|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break o;b=J[g+36>>2];J[g+96>>2]=J[g+32>>2];J[g+100>>2]=b;e=J[g+40>>2];b=0;J[g+40>>2]=0;J[g+104>>2]=e;J[g+84>>2]=121;J[g+88>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[195395]=0;H[g+95|0]=1;da(1863,g+16|0,+(d|0),-1);d=J[195395];J[195395]=0;f=g+108|0;if((d|0)==1)break n;J[195395]= -0;d=_(1078,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break m;J[g+112>>2]=5;J[g+116>>2]=-2147483640;J[g+108>>2]=d;b=0;J[d+16>>2]=J[106548];e=J[106547];J[d+8>>2]=J[106546];J[d+12>>2]=e;e=J[106545];J[d>>2]=J[106544];J[d+4>>2]=e;J[d+20>>2]=0;J[g+128>>2]=J[g+24>>2];J[g+24>>2]=0;d=J[g+20>>2];J[g+120>>2]=J[g+16>>2];J[g+124>>2]=d;J[g+16>>2]=0;J[g+20>>2]=0;J[195395]=0;da(1863,g|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break l;J[195395]=0;b=_(1078,32)|0;c=J[195395];J[195395]=0;if((c|0)==1)break k;J[g+ -136>>2]=6;J[g+140>>2]=-2147483640;J[g+132>>2]=b;c=J[106555];J[b+16>>2]=J[106554];J[b+20>>2]=c;c=J[106553];J[b+8>>2]=J[106552];J[b+12>>2]=c;c=J[106551];J[b>>2]=J[106550];J[b+4>>2]=c;J[b+24>>2]=0;J[g+152>>2]=J[g+8>>2];J[g+8>>2]=0;b=J[g+4>>2];J[g+144>>2]=J[g>>2];J[g+148>>2]=b;J[g+156>>2]=0;J[g+160>>2]=0;J[g+164>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[195395]=0;H[g+172|0]=0;c=g+156|0;J[g+168>>2]=c;b=_(1078,96)|0;d=J[195395];J[195395]=0;p:{q:{if((d|0)!=1){J[g+160>>2]=b;J[g+156>>2]=b;J[195395]=0;J[g+164>>2]=b+96; -c=ha(1957,g+164|0,g+60|0,c|0,b|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break p;e=Z()|0;J[g+160>>2]=b;break q}e=Z()|0}Kc(g+168|0);Vb(g+132|0);Vb(g+108|0);Vb(g+84|0);Vb(g+60|0);b=1;break j}J[g+160>>2]=c;if(H[g+155|0]<0)Kb(J[g+144>>2]);if(H[g+143|0]<0)Kb(J[g+132>>2]);if(H[g+131|0]<0)Kb(J[g+120>>2]);if(H[g+119|0]<0)Kb(J[g+108>>2]);if(H[g+107|0]<0)Kb(J[g+96>>2]);if(H[g+95|0]<0)Kb(J[g+84>>2]);if(H[g+83|0]<0)Kb(J[g+72>>2]);if(H[g+71|0]<0)Kb(J[g+60>>2]);if(H[g+11|0]<0)Kb(J[g>>2]);if(H[g+27|0]<0)Kb(J[g+16>> -2]);if(H[g+43|0]<0)Kb(J[g+32>>2]);if(H[g+59|0]<0)Kb(J[g+48>>2]);J[195395]=0;b=a+8|0;c=g+156|0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;J[g+60>>2]=a;J[g+64>>2]=4;J[g+68>>2]=-2147483640;d=J[106633];J[a+8>>2]=J[106632];J[a+12>>2]=d;d=J[106631];J[a>>2]=J[106630];J[a+ -4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[g+48>>2]=0;H[g+59|0]=0;ia(1961,b|0,g+60|0,c|0,g+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[g+59|0]<0)Kb(J[g+48>>2]);if(H[g+71|0]<0)Kb(J[g+60>>2]);a=J[g+156>>2];if(a){e=a;f=J[g+160>>2];if((a|0)!=(f|0)){while(1){if(H[f-1|0]<0)Kb(J[f-12>>2]);b=f-24|0;if(H[f-13|0]<0)Kb(J[b>>2]);f=b;if((b|0)!=(a|0))continue;break}e=J[g+156>>2]}J[g+160>>2]=a;Kb(e)}xb=g+176|0;return}ba(Z()|0);B()}f=g+84|0;e=Z()|0;b=0;break f}e=Z()|0;break g}e=Z()|0;b=0;break h}e=Z()|0;break i}e= -Z()|0;b=0}if(H[g+11|0]>=0)break i;Kb(J[g>>2])}f=g+132|0}if(H[g+27|0]>=0)break g;Kb(J[g+16>>2])}if(H[g+43|0]>=0)break f;Kb(J[g+32>>2])}if(H[g+59|0]<0)Kb(J[g+48>>2]);if(b)break a;while(1){f=Vb(f-24|0);if((f|0)!=(g+60|0))continue;break}break a}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;if(H[g+59|0]<0)Kb(J[g+48>>2]);if(H[g+71|0]>=0)break b;Kb(J[g+60>>2])}Hc(g+156|0)}ba(e|0);B()}function Hv(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,p=0,q=0;n=xb-16|0;xb=n;g=8;a:{if(e>>>0>100)break a;b:{g=J[a+32>> -2];if(!g)break b;l=J[a+40>>2];j=J[a+36>>2]+J[a+28>>2]|0;h=j;while(1){k=K[h+1|0]|K[h|0]<<8;if(!(k>>>0<=b>>>0&(K[h+3|0]|K[h+2|0]<<8)>>>0>=b>>>0)){h=h+8|0;g=g-1|0;if(g)continue;break b}break}g=8;i=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);i=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);if(i>>>0>l-j>>>0)break a;h=i+j|0;i=h+8|0;if(i>>>0>l>>>0)break b;q=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);o=K[h+2|0];p=K[h+3|0];c:{d:{e:{f:{g:{h:{g=K[h|0]|K[h+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break g; -case 0:break h;case 4:case 18:break d;case 3:break e;case 2:break f;default:break b}}g=i+(b-k<<2)|0;if(l>>>0>>0)break b;b=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);h=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if((b|0)!=(h|0))break c;break b}if(l>>>0>>0)break b;J[n+12>>2]=h+12;m=K[h+11|0];j=K[h+10|0];i=K[h+9|0];g=K[h+8|0];if(tp(a,n+12|0,l))break b;h=b-k|0;b=m|(i<<16|g<<24|j<<8);h=P(h,b);b=h+b| -0;break c}g=i+(b-k<<1)|0;if(l>>>0>>0)break b;b=K[g+3|0]|K[g+2|0]<<8;h=K[g+1|0]|K[g|0]<<8;if((b|0)!=(h|0))break c;break b}g=h+12|0;if(l>>>0>>0|l>>>0>>0)break b;i=K[h+11|0]|(K[h+9|0]<<16|K[h+8|0]<<24|K[h+10|0]<<8);if(i-1>>>0>=(l-g>>2)-1>>>0)break b;h=0;while(1){if((K[g+1|0]|K[g|0]<<8)==(b|0)){b=K[g+7|0]|K[g+6|0]<<8;h=K[g+3|0]|K[g+2|0]<<8;break c}g=g+4|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break b}if(l>>>0>>0)break b;J[n+12>>2]=h+12;m=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11| -0]<<24);if(tp(a,n+12|0,l))break b;j=J[n+12>>2];g=K[j|0]|K[j+1|0]<<8|(K[j+2|0]<<16|K[j+3|0]<<24);i=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);h=j+4|0;if(i-1>>>0>=l-h>>1>>>0)break b;j=m<<24|(m&65280)<<8|(m>>>8&65280|m>>>24);g=0;while(1){if((K[h+1|0]|K[h|0]<<8)!=(b|0)){h=h+2|0;g=g+1|0;if((i|0)!=(g|0))continue;break b}break}h=P(g,j);b=j+h|0}if(b>>>0>>0)break b;j=p|o<<8;k=xb-16|0;xb=k;g=6;b=b-h|0;i=(q<<24|(q&65280)<<8|(q>>>8&65280|q>>>24))+h|0;i:{if(!b|M[a+24>>2]>>0)break i;p=J[a+4>>2];g=bc(p,i+J[a+ -20>>2]|0);if(g)break i;g=Ne(p,b,k+8|0);if(g)break i;i=J[k+8>>2];J[k+12>>2]=i;o=b+i|0;g=7;j:{k:{l:{m:{n:{o:{p:{q:switch(j-1|0){case 0:case 1:case 7:case 16:g=6;if((b|0)<5)break j;g=J[a+12>>2];I[g>>1]=K[i|0];I[g+2>>1]=K[i+1|0];I[g+4>>1]=H[i+2|0];I[g+6>>1]=H[i+3|0];b=K[i+4|0];I[g+14>>1]=0;I[g+10>>1]=0;I[g+12>>1]=0;I[g+8>>1]=b;H[a+16|0]=1;J[k+12>>2]=i+5;break p;case 18:break j;case 4:break o;case 5:case 6:case 8:case 17:break q;default:break k}g=tp(a,k+12|0,o);if(g)break j}b=72;g=7;r:switch(j-1|0){case 16:case 17:break j; -case 0:case 5:break l;case 8:break m;case 7:break n;case 4:break o;case 1:case 6:break r;default:break k}g=J[a+12>>2];j=L[g>>1];g=L[g+2>>1];i=P(j,g+7>>>3|0);if(i>>>0<=P(g,j)+7>>>3>>>0)break o;if((i|0)==(o-J[k+12>>2]|0))break l}b=73;break l}g=0;b=J[k+12>>2]+1|0;if(b>>>0>o>>>0)break j;J[k+12>>2]=b}b=74}if(!K[a+17|0]){if(K[a+16|0]){j=J[a+12>>2];g=L[j+2>>1];i=J[a+8>>2];m=L[j>>1];J[i>>2]=m;J[i+4>>2]=g;j=3;s:{t:{u:{v:switch(K[a+18|0]-1|0){case 0:H[i+18|0]=1;g=g+7>>>3|0;j=2;break t;case 1:H[i+18|0]=3;g= -g+3>>>2|0;j=4;break t;case 3:H[i+18|0]=4;g=g+1>>>1|0;j=16;break t;case 7:H[i+18|0]=2;break u;case 31:break v;default:break s}H[i+18|0]=7;g=g<<2}j=256}I[i+16>>1]=j;J[i+8>>2]=g;j=0;if(f)break s;g=P(g,m);if(!g)break s;j=ao(J[J[a>>2]+84>>2],g);if(j)break s;H[a+17|0]=1;j=0}}else j=6;g=j;if(g)break j}g=0;if(f)break j;g=Ab[b|0](a,J[k+12>>2],o,c,d,e)|0;break j}g=8}rd(p,k+8|0)}xb=k+16|0;break a}g=e?21:157}xb=n+16|0;return g}function Bi(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=xb-16|0;xb=f;g=J[a+ -100>>2];J[f+8>>2]=0;d=Pe(b,J[a+92>>2]);a:{if(d){b:{c:{d:{e=J[a+80>>2];d=J[d>>2];a=e+(d<<4)|0;switch(J[a+4>>2]-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}b=J[a+12>>2];if(b)Ab[J[g+8>>2]](g,b);J[a+12>>2]=0;if(!c|!K[c|0])break a;l=a,m=of(g,c,f+8|0),J[l+12>>2]=m;break a}a=0;e:{if(!c)break e;g=K[c|0];if(!g)break e;b=0;g=(g|0)==45;c=g+c|0;a=H[c|0];f:{if(!(K[((a&248)>>>3|0)+24096|0]>>>(a&7)&1))break f;while(1){if((b|0)>214748362){b=2147483647;break f}b=K[a+24128|0]+P(b,10)|0;a=H[c+ -1|0];c=c+1|0;if(K[((a&248)>>>3|0)+24096|0]>>>(a&7)&1)continue;break}}a=g?0-b|0:b}J[(e+(d<<4)|0)+12>>2]=a;break a}b=0;g:{if(!c)break g;a=H[c|0];g=a&255;if(!g|!(K[(g>>>3|0)+24096|0]>>>(a&7)&1))break g;while(1){if(b>>>0>429496727){b=-1;break g}b=K[a+24128|0]+P(b,10)|0;a=H[c+1|0];c=c+1|0;if(K[((a&248)>>>3|0)+24096|0]>>>(a&7)&1)continue;break}}J[(e+(d<<4)|0)+12>>2]=b;break a}h:{j=a+112|0;e=Pe(b,j);if(!e){e=J[a+100>>2];J[f+12>>2]=0;if(!Pe(b,j)){d=J[a+108>>2];i=f+12|0;d=Tb(e,16,d,d+1|0,J[a+104>>2],i);J[a+ -104>>2]=d;h=J[f+12>>2];if(h)break h;d=d+(J[a+108>>2]<<4)|0;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;k=ac(b)+1|0;i=Tb(e,1,0,k,0,i);J[d>>2]=i;h=J[f+12>>2];if(h)break h;Mb(i,b,k);J[d+4>>2]=1;J[d+8>>2]=0;h=go(J[d>>2],J[a+108>>2]+83|0,j,e);if(h)break h;J[a+108>>2]=J[a+108>>2]+1}J[f+8>>2]=0;e=Pe(b,j)}d=J[a+76>>2];if((d|0)==J[a+72>>2]){i:{if(!d){d=Tb(g,16,0,1,0,f+8|0);J[a+80>>2]=d;if(!J[f+8>>2])break i;break a}d=Tb(g,16,d,d+1|0,J[a+80>>2],f+8|0);J[a+80>>2]=d;if(J[f+8>>2])break a}d=(J[a+72>>2]<<4)+ -d|0;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[a+72>>2]=J[a+72>>2]+1}h=J[a+80>>2];j=J[a+76>>2];i=h+(j<<4)|0;d=J[e>>2];j:{if(d>>>0>=83){d=(J[a+104>>2]+(d<<4)|0)-1328|0;break j}d=(d<<4)+21680|0}J[i>>2]=J[d>>2];e=J[d+4>>2];J[i+4>>2]=e;J[i+8>>2]=J[d+8>>2];k:{l:{m:switch(e-1|0){case 0:J[i+12>>2]=0;if(!c|!K[c|0])break k;l=i,m=of(g,c,f+8|0),J[l+12>>2]=m;if(!J[f+8>>2])break k;break a;case 1:d=0;if(!c)break l;e=K[c|0];if(!e)break l;k=(e|0)==45;e=k+c|0;c=H[e|0];n:{if(!(K[((c&248)>>>3|0)+24096|0]>>>(c& -7)&1))break n;while(1){if((d|0)>214748362){d=2147483647;break n}d=K[c+24128|0]+P(d,10)|0;c=H[e+1|0];e=e+1|0;if(K[((c&248)>>>3|0)+24096|0]>>>(c&7)&1)continue;break}}d=k?0-d|0:d;break l;case 2:break m;default:break k}d=0;if(!c)break l;e=H[c|0];k=e&255;if(!k|!(K[(k>>>3|0)+24096|0]>>>(e&7)&1))break l;while(1){if(d>>>0>429496727){d=-1;break l}d=K[e+24128|0]+P(d,10)|0;e=H[c+1|0];c=c+1|0;if(K[((e&248)>>>3|0)+24096|0]>>>(e&7)&1)continue;break}}J[(h+(j<<4)|0)+12>>2]=d}o:{p:{if(Zb(b,11158,7))break p;switch(K[b+ -7|0]){case 0:case 9:case 10:case 13:case 32:break o;default:break p}}c=go(J[i>>2],J[a+76>>2],J[a+92>>2],g);J[f+8>>2]=c;if(c)break a}J[a+76>>2]=J[a+76>>2]+1;q:{if(Zb(b,12772,12))break q;r:switch(K[b+12|0]){case 0:case 9:case 10:case 13:case 32:break r;default:break q}J[a+36>>2]=J[(h+(j<<4)|0)+12>>2];break a}s:{if(Zb(b,12084,11))break s;t:switch(K[b+11|0]){case 0:case 9:case 10:case 13:case 32:break t;default:break s}J[a+40>>2]=J[(h+(j<<4)|0)+12>>2];break a}u:{if(Zb(b,12180,12))break u;v:switch(K[b+ -12|0]){case 0:case 9:case 10:case 13:case 32:break v;default:break u}J[a+44>>2]=J[(h+(j<<4)|0)+12>>2];break a}if(Zb(b,9396,7))break a;w:switch(K[b+7|0]){case 0:case 9:case 10:case 13:case 32:break w;default:break a}b=J[(h+(j<<4)|0)+12>>2];if(!b){J[f+8>>2]=3;break a}x:switch(K[b|0]-67|0){case 13:case 45:J[a+28>>2]=8;break a;case 10:case 42:J[a+28>>2]=16;break a;case 0:case 32:break x;default:break a}J[a+28>>2]=32;break a}J[f+8>>2]=h}xb=f+16|0;return J[f+8>>2]}function uoa(a,b,c,d,e,f,g,h){a=a|0;b= -b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=Q(0),t=Q(0),u=0;r=xb-48|0;xb=r;h=J[b>>2];l=J[h+48>>2];a:{if(l)break a;b=h+48|0;while(1){if(!J[h>>2]){l=169776;break a}l=Ko(b);if(!l)l=169776;i=J[b>>2];J[b>>2]=i?i:l;if(!i)break a;Ik(l);l=J[b>>2];if(!l)continue;break}}b:{if(J[l+4>>2]){h=169776;b=J[l+24>>2];b=b?b:169776;b=M[b+16>>2]<24?169776:J[b+12>>2];i=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(i)h=b+(i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24))|0;c:{if(!J[a+ -104>>2]){b=0;break c}b=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(b)b=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+h|0;else b=169776;h=K[b+2|0]|K[b+3|0]<<8;k=h<<8|h>>>8;i=k&65535;b=Qb(i<<2);if(!h|!b)break c;h=i>>>0<=1?1:i;i=h&7;if((k&65535)>>>0>=8){j=h&65528;k=0;while(1){h=o<<2;J[h+b>>2]=1073741824;J[(h|4)+b>>2]=1073741824;J[(h|8)+b>>2]=1073741824;J[(h|12)+b>>2]=1073741824;J[(h|16)+b>>2]=1073741824;J[(h|20)+b>>2]=1073741824;J[(h|24)+b>>2]=1073741824;J[(h|28)+b>>2]=1073741824;o=o+8|0;k=k+8|0; -if((j|0)!=(k|0))continue;break}}if(!i)break c;while(1){J[(o<<2)+b>>2]=1073741824;o=o+1|0;n=n+1|0;if((i|0)!=(n|0))continue;break}}if(c){h=f;o=0;while(1){m=J[d>>2];d:{if(m>>>0>=M[l+4>>2]){j=0;if(J[l+8>>2])break d;j=J[l+16>>2];break d}i=J[l+20>>2];k=J[(i?i:169776)+12>>2];i=J[l>>2]-1|0;i=k+((i>>>0>>0?i:m)<<2)|0;i=K[i|0]|K[i+1|0]<<8;p=i<<8|i>>>8;k=J[a+104>>2];j=p&65535;if(!k)break d;i=J[l+24>>2];i=i?i:169776;j=J[i+16>>2];if(j){n=169776;q=169776;i=j>>>0<24?169776:J[i+12>>2];j=K[i+8|0]|K[i+9|0]<<8|(K[i+ -10|0]<<16|K[i+11|0]<<24);if(j)q=i+(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24))|0;j=J[a+108>>2];s=Q((p&65535)>>>0);q=sc(q,m);p=q>>>16|0;m=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);if(m)n=i+(m<<24|(m&65280)<<8|(m>>>8&65280|m>>>24))|0;i=K[n+6|0]|K[n+7|0]<<8;if(p>>>0>=((i<<8|i>>>8)&65535)>>>0)t=Q(.5);else{i=(p<<2)+n|0;i=K[i+8|0]|K[i+9|0]<<8|(K[i+10|0]<<16|K[i+11|0]<<24);if(i)p=(i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24))+n|0;else p=169776;q=q&65535;m=K[n+2|0]|K[n+3|0]<<8|(K[n+4|0]<<16|K[n+5|0]<<24); -if(m)i=(m<<24|(m&65280)<<8|(m>>>8&65280|m>>>24))+n|0;else i=169776;t=Q(pc(p,q,j,k,i,b)+Q(.5))}s=Q(Q(V(t))+s);if(s=Q(0)){j=~~s>>>0;break d}j=0;break d}j=UF(a,m,1)}i=0-j<<16;k=i>>31;k=Kpa(i>>16,k,J[a+80>>2],J[a+84>>2]);i=zb;k=k+32768|0;J[h>>2]=((k>>>0<32768?i+1|0:i)&65535)<<16|k>>>16;h=g+h|0;d=d+e|0;o=o+1|0;if((o|0)!=(c|0))continue;break}}Kb(b);break b}b=r;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]= -0;J[b>>2]=0;J[b+4>>2]=0;d=J[a+116>>2];e=J[d+20>>2];h=J[a+120>>2];d=J[d+12>>2];if(d)d=J[d>>2];else d=0;e:{if(Ab[e|0](a,h,b,d)|0){b=J[r>>2];d=J[r+4>>2];break e}d=J[a+32>>2];u=+(d|0)*.8;f:{if(R(u)<2147483648){b=~~u;break f}b=-2147483648}d=b-d|0}if(!c)break b;b=d-b|0;d=f;if(c>>>0>=8){e=c&-8;h=0;while(1){J[d>>2]=b;d=d+g|0;J[d>>2]=b;d=d+g|0;J[d>>2]=b;d=d+g|0;J[d>>2]=b;d=d+g|0;J[d>>2]=b;d=d+g|0;J[d>>2]=b;d=d+g|0;J[d>>2]=b;d=d+g|0;J[d>>2]=b;d=d+g|0;h=h+8|0;if((e|0)!=(h|0))continue;break}}e=c&7;if(!e)break b; -h=0;while(1){J[d>>2]=b;d=d+g|0;h=h+1|0;if((e|0)!=(h|0))continue;break}}b=J[a+52>>2];g:{if(!c|(K[a+44|0]|!b))break g;a=J[a+32>>2]<0?0-b|0:b;if(c>>>0>=4){e=c&-4;h=0;while(1){b=J[f>>2];J[f>>2]=(b?a:0)+b;b=f+g|0;d=J[b>>2];J[b>>2]=d+(d?a:0);b=b+g|0;d=J[b>>2];J[b>>2]=d+(d?a:0);b=b+g|0;d=J[b>>2];J[b>>2]=d+(d?a:0);f=b+g|0;h=h+4|0;if((e|0)!=(h|0))continue;break}}b=c&3;if(!b)break g;d=0;while(1){c=J[f>>2];J[f>>2]=(c?a:0)+c;f=f+g|0;d=d+1|0;if((b|0)!=(d|0))continue;break}}xb=r+48|0}function G2(a,b,c){a=a|0;b= -b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-112|0;xb=d;a:{b:{c:{d:{e:{f:{b=J[c>>2];f=J[c+4>>2];g:{if((b|0)==(f|0))break g;J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{while(1){c=I[b>>1];J[195395]=0;e=d+48|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break s;J[195395]=0;$(1811,e|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break r;J[d+72>>2]=J[d+56>>2];J[d+56>>2]=0;c=J[d+52>>2];J[d+64>>2]=J[d+48>>2];J[d+68>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;c=I[b+2>>1];J[195395]=0; -e=d+36|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break q;J[195395]=0;g=e;c=K[d+47|0];e=c<<24>>24<0;c=aa(1864,d- -64|0,(e?J[d+36>>2]:g)|0,(e?J[d+40>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break p;J[d+88>>2]=J[c+8>>2];e=J[c+4>>2];J[d+80>>2]=J[c>>2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+80|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break o;J[d+16>>2]=J[d+88>>2];J[d+88>>2]=0;e=J[d+84>>2];c=J[d+80>>2];J[d+8>>2]=c;J[d+12>>2]=e;J[d+80>>2]=0;J[d+84>> -2]=0;J[195395]=0;g=c;c=H[d+19|0];e=(c|0)<0;aa(1864,d+96|0,(e?g:d+8|0)|0,(e?J[d+12>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break n;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);b=b+4|0;if((f|0)!=(b|0))continue;break}b=K[d+107|0];c=b<<24>>24;b=((c|0)<0?J[d+100>>2]:b)-1|0;if((c|0)>=0)break i;J[d+100>>2]=b;c=J[d+96>>2];break h}a=Z()|0;break a}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a= -Z()|0;break m}a=Z()|0;if(H[d+19|0]>=0)break m;Kb(J[d+8>>2])}if(H[d+91|0]>=0)break l;Kb(J[d+80>>2])}if(H[d+47|0]>=0)break k;Kb(J[d+36>>2])}if(H[d+75|0]>=0)break j;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}H[d+107|0]=b;c=d+96|0}J[c+(b<<2)>>2]=0;J[195395]=0;b=aa(1969,d+8|0,402168,d+96|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break f;J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;H[d+68|0]=0;J[d+64>>2]=d+80;c=_(1078,24)|0;f=J[195395];J[195395]=0;t:{u:{if((f|0)!=1){J[d+84>>2]=c; -J[d+80>>2]=c;J[195395]=0;J[d+88>>2]=c+24;f=ha(1957,d+88|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break t;a=Z()|0;J[d+84>>2]=c;break u}a=Z()|0}Kc(d- -64|0);Vb(b);break a}J[d+84>>2]=f;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+80|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;$(1964,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0; -ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,48)|0;f=J[195395];J[195395]=0;if((f|0)==1)break d;J[d+64>>2]=a;J[d+68>>2]=8;J[d+72>>2]=-2147483636;f=J[100681];J[a+24>>2]=J[100680];J[a+28>>2]=f;f=J[100679];J[a+16>>2]=J[100678];J[a+20>>2]=f;f=J[100677];J[a+8>>2]=J[100676];J[a+12>>2]=f;f=J[100675];J[a>>2]=J[100674];J[a+4>>2]=f;J[a+32>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,b|0,d- -64|0,c|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+59|0]<0)Kb(J[d+ -48>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);a=J[d+80>>2];if(a){b=J[d+84>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}c=J[d+80>>2]}J[d+84>>2]=a;Kb(c)}if(H[d+107|0]>=0)break g;Kb(J[d+96>>2])}xb=d+112|0;return}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]>=0)break b;Kb(J[d+64>>2])}Hc(d+80|0)}if(H[d+107|0]<0)Kb(J[d+96>>2]);ba(a|0);B()}function uha(a){a=a|0;var b=0,c= -0,d=0,e=0,f=0,g=0,h=0,i=0;b=2;a:{f=J[a+456>>2];if(J[f+20>>2])break a;while(1){b:{c:{d:{e:{b=Ab[J[J[a+460>>2]+4>>2]](a)|0;if((b|0)!=1){if((b|0)!=2)break a;J[f+20>>2]=1;if(!J[f+24>>2])break e;b=2;if(!J[J[a+460>>2]+16>>2])break a;b=J[a>>2];J[b+20>>2]=61;Ab[J[b>>2]](a);return 2}f:switch(J[f+24>>2]){default:b=J[a+336>>2];break b;case 1:if(!(J[a+28>>2]<65501&J[a+32>>2]<=65500)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;Ab[J[J[a>>2]>>2]](a)}c=J[a+212>>2];if((c|0)!=8){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=16; -Ab[J[J[a>>2]>>2]](a)}e=J[a+36>>2];if((e|0)>=11){b=J[a>>2];J[b+24>>2]=e;J[b+20>>2]=27;J[J[a>>2]+28>>2]=10;Ab[J[J[a>>2]>>2]](a);e=J[a+36>>2]}J[a+312>>2]=1;J[a+316>>2]=1;if((e|0)>0){b=J[a+216>>2];i=0;g=1;d=1;while(1){h=J[b+8>>2];g:{if(h-5>>>0>=4294967292){c=J[b+12>>2];if(c-5>>>0>4294967291)break g}c=J[a>>2];J[c+20>>2]=19;Ab[J[c>>2]](a);e=J[a+36>>2];c=J[b+12>>2];g=J[a+316>>2];h=J[b+8>>2];d=J[a+312>>2]}g=(c|0)<(g|0)?g:c;J[a+316>>2]=g;d=(d|0)>(h|0)?d:h;J[a+312>>2]=d;b=b+88|0;i=i+1|0;if((i|0)<(e|0))continue; -break}}if(J[a+220>>2]|(J[a+336>>2]?J[a+224>>2]:0))break d;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{b=J[a+412>>2];if((b|0)<=119)switch(b|0){case 99:break m;case 80:break n;case 48:break o;case 35:break p;case 24:break q;case 15:break r;case 8:break s;case 3:break t;case 0:break u;case 63:break d;default:break h}if((b|0)<=194){if((b|0)==120)break l;if((b|0)==143)break k;if((b|0)!=168)break h;J[a+432>>2]=63;J[a+428>>2]=247088;J[a+424>>2]=13;b=13;break c}if((b|0)==195)break j;if((b|0)==224)break i;if((b| -0)!=255)break h;J[a+432>>2]=63;J[a+428>>2]=247088;J[a+424>>2]=16;b=16;break c}J[a+432>>2]=0;J[a+428>>2]=247088;J[a+424>>2]=1;b=1;break c}J[a+432>>2]=3;J[a+428>>2]=248304;J[a+424>>2]=2;b=2;break c}J[a+432>>2]=8;J[a+428>>2]=248192;J[a+424>>2]=3;b=3;break c}J[a+432>>2]=15;J[a+428>>2]=248064;J[a+424>>2]=4;b=4;break c}J[a+432>>2]=24;J[a+428>>2]=247888;J[a+424>>2]=5;b=5;break c}J[a+432>>2]=35;J[a+428>>2]=247680;J[a+424>>2]=6;b=6;break c}J[a+432>>2]=48;J[a+428>>2]=247408;J[a+424>>2]=7;b=7;break c}J[a+432>> -2]=63;J[a+428>>2]=247088;J[a+424>>2]=9;b=9;break c}J[a+432>>2]=63;J[a+428>>2]=247088;J[a+424>>2]=10;b=10;break c}J[a+432>>2]=63;J[a+428>>2]=247088;J[a+424>>2]=11;b=11;break c}J[a+432>>2]=63;J[a+428>>2]=247088;J[a+424>>2]=12;b=12;break c}J[a+432>>2]=63;J[a+428>>2]=247088;J[a+424>>2]=14;b=14;break c}J[a+432>>2]=63;J[a+428>>2]=247088;J[a+424>>2]=15;b=15;break c}b=J[a>>2];J[b+20>>2]=17;J[b+24>>2]=J[a+408>>2];J[J[a>>2]+28>>2]=J[a+412>>2];J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];Ab[J[J[a>> -2]>>2]](a);e=J[a+36>>2];b=J[a+424>>2];break c;case 0:break f}if(!J[f+16>>2]){b=J[a>>2];J[b+20>>2]=36;Ab[J[b>>2]](a)}if(!J[a+336>>2])continue;AE(a);return 1}b=2;c=J[a+144>>2];if((c|0)>=J[a+152>>2])break a;J[a+152>>2]=c;break a}J[a+432>>2]=63;J[a+428>>2]=247088;J[a+424>>2]=8;b=8}J[a+324>>2]=b;J[a+320>>2]=b;if((e|0)>0){b=J[a+216>>2];d=0;while(1){c=J[a+424>>2];J[b+40>>2]=c;J[b+36>>2]=c;c=P(c,J[a+312>>2]);J[b+28>>2]=((c+P(J[b+8>>2],J[a+28>>2])|0)-1|0)/(c|0);c=P(J[a+424>>2],J[a+316>>2]);J[b+32>>2]=((c+ -P(J[b+12>>2],J[a+32>>2])|0)-1|0)/(c|0);c=J[a+312>>2];J[b+44>>2]=((c+P(J[b+8>>2],J[a+28>>2])|0)-1|0)/(c|0);c=J[a+316>>2];c=((c+P(J[b+12>>2],J[a+32>>2])|0)-1|0)/(c|0)|0;J[b+80>>2]=0;J[b+52>>2]=1;J[b+48>>2]=c;b=b+88|0;d=d+1|0;if((d|0)>2])continue;break}b=J[a+424>>2]}b=P(J[a+316>>2],b);J[a+328>>2]=((b+J[a+32>>2]|0)-1|0)/(b|0);b=J[a+336>>2];J[J[a+456>>2]+16>>2]=J[a+224>>2]!=0|(b|0)>2]}if(!b){J[f+24>>2]=2;continue}break}J[f+24>>2]=0;return 1}return b|0}function Yla(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;i=xb-32|0;xb=i;J[b+72>>2]=0;J[b+64>>2]=0;I[b+62>>1]=1;J[b+84>>2]=J[b+80>>2];J[b+64>>2]=0;k=J[b+68>>2];a:{if(!k)break a;while(1){d=J[b+80>>2];h=J[d+P(e,20)>>2];b:{if((h&-129)!=3635){if(K[b+62|0]){c:{if((d|0)==J[b+84>>2]){d=e;if(J[b+72>>2]==(e|0))break c}if(!ec(b,1,1))break a;d=J[b+80>>2]+P(J[b+64>>2],20)|0;e=J[d+4>>2];f=J[b+84>>2]+P(J[b+72>>2],20)|0;J[f>>2]=J[d>>2];J[f+4>>2]=e;J[f+16>>2]=J[d+16>>2];e=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=e;e= -J[b+64>>2];d=J[b+72>>2]}J[b+72>>2]=d+1}J[b+64>>2]=e+1;break b}if(ec(b,0,1)){g=h+26|0;d=J[b+64>>2];d:{if(d>>>0>2]){e=J[b+72>>2];f=J[b+84>>2];d=J[b+80>>2]+P(d,20)|0;break d}f=J[b+84>>2];e=J[b+72>>2];d=e-1|0;d=f+P(e>>>0>=d>>>0?d:0,20)|0}f=P(e,20)+f|0;e=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=e;J[f+16>>2]=J[d+16>>2];e=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=e;J[f>>2]=g;J[b+72>>2]=J[b+72>>2]+1}d=J[b+72>>2];e=d-1|0;e=J[b+84>>2]+P(e>>>0<=d>>>0?e:0,20)|0;I[e+16>>1]=L[e+16>>1]|128;h=h-1|0;f=ec(b,1,1); -if(f){d=J[b+64>>2];e:{if(d>>>0>2]){e=J[b+72>>2];g=J[b+84>>2];d=J[b+80>>2]+P(d,20)|0;break e}g=J[b+84>>2];e=J[b+72>>2];d=e-1|0;d=g+P(e>>>0>=d>>>0?d:0,20)|0}g=P(e,20)+g|0;e=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=e;J[g+16>>2]=J[d+16>>2];e=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=e;J[g>>2]=h;J[b+64>>2]=J[b+64>>2]+1;J[b+72>>2]=J[b+72>>2]+1}if(!f)break a;h=J[b+72>>2];e=h-2|0;f=P(e,20);d=f+J[b+84>>2]|0;I[d+16>>1]=L[d+16>>1]&224|12;if(!e)break b;d=J[b+84>>2]-20|0;f:{g:{h:{while(1){i:{g=J[d+P(e,20)>> -2];if((g&-132)==3636|(g&-129)-3655>>>0<8)break i;j:switch(g-3633|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break h;case 0:case 10:break i;default:break j}switch(g-3761|0){case 0:case 10:break i;default:break h}}e=e-1|0;if(e)continue;break}e=0;if(h>>>0>2)break g;break b}if(h>>>0<=e+2>>>0)break f}xh(b,e,h);d=f;f=J[b+84>>2];g=d+f|0;J[i+24>>2]=J[g+16>>2];d=J[g+12>>2];J[i+16>>2]=J[g+8>>2];J[i+20>>2]=d;d=J[g+4>>2];J[i+8>>2]=J[g>>2];J[i+12>>2]=d;d=f;f=P(e,20);d=d+f|0;qc(d+20|0,d, -P(h-e|0,20)-40|0);e=J[i+12>>2];d=f+J[b+84>>2]|0;J[d>>2]=J[i+8>>2];J[d+4>>2]=e;J[d+16>>2]=J[i+24>>2];e=J[i+20>>2];J[d+8>>2]=J[i+16>>2];J[d+12>>2]=e;break b}if(J[b+20>>2])break b;xh(b,e-1|0,h)}e=J[b+64>>2];if(k>>>0>e>>>0)continue;break}}hf(b);k:{if(K[a+32|0]|J[a+4>>2]!=1416126825)break k;m=J[b+68>>2];if(!m)break k;n=J[b+80>>2];f=0;a=2;l=3;g=0;while(1){e=0;l:{m:{k=P(g,20)+n|0;h=J[k>>2];if((h|0)==3633|(h&-4)==3636)break m;d=h-3655|0;if(1<>>0<=7:0)break m;e=1;if(h-3640>>>0<3)break m;e=2;if(h- -3656>>>0<5)break m;n:{o:{a=h-3597|0;if(a>>>0<=18){a=1<>>0>45)<<2;break n}d=2}e=d<<2;a=J[e+146896>>2];l=J[e+146864>>2];f=g;break l}d=P(a,24);a=e<<3;h=d+a|0;d=h+147028|0;a=a+P(l,24)|0;e=a+146932|0;j=J[a+146928>>2];if(!j)j=J[h+147024>>2];a=J[d>>2];l=J[e>>2];Ac(b,3,f,g,1,0);if((j|0)==4){j=147296;p:{q:{r:{k=P(f,20)+n|0;e=J[k>>2];switch(e-3597|0){case 0:break q;case 3:break r;default:break p}}j=147302}d=L[j+2>>1];h=i+8|0;if(!Ae(c, -d,h)){d=L[j+4>>1];if(!Ae(c,d,h))break p}e=d}J[k>>2]=e;break l}d=J[k>>2];e=0;s:{t:{u:switch(j|0){case 1:e=147104;break t;case 3:e=147168;break t;case 0:break s;case 2:break u;default:break t}e=147216}j=L[e>>1];if(!j)break s;while(1){if((j&65535)==(d|0)){if(Ae(c,L[e+2>>1],i+8|0)){d=L[e+2>>1];break s}if(!Ae(c,L[e+4>>1],i+8|0))break s;d=L[e+4>>1];break s}j=L[e+6>>1];e=e+6|0;if(j)continue;break}}J[k>>2]=d}g=g+1|0;if((m|0)!=(g|0))continue;break}}xb=i+32|0}function gba(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;h=xb-160|0;xb=h;e=J[a+608>>2];j=J[a+604>>2];v=1;m=J[a+584>>2];s=J[m+72>>2];g=J[m+68>>2];n=J[m+64>>2];a:{b:{if((c|0)<=0){f=j;break b}t=e+j|0;p=J[m+88>>2];u=J[m+60>>2];k=J[m+12>>2];d=J[m+4>>2];x=d&8;y=d&4;c:while(1){f=p;e=0;d:while(1){o=0;while(1){e:{f:{g:{if((g|0)>11){d=g;break g}if(j>>>0>=t>>>0){d=12;if(g)break g;break f}l=g+8|0;i=j+1|0;n=K[K[j|0]+u|0]<3){j=i;d=l;break g}d=12;if(i>>>0>=t>>>0){j=i;break g}d= -g+16|0;n=K[K[j+1|0]+u|0]<>>g|0;g=d-g|0;q=1;d=f;h:{i:{j:{k:switch(K[i|0]-7|0){case 0:i=J[i+4>>2];w=i+o|0;J[f>>2]=w;o=0;d=f+4|0;e=e+i|0;if((k|0)<=(e|0))break h;while(1){l:{if((g|0)>12){i=g;break l}if(j>>>0>=t>>>0){i=13;if(g)break l;f=d;break f}r=g+8|0;l=j+1|0;n=K[K[j|0]+u|0]<4){j=l;i=r;break l}i=13;if(l>>>0>=t>>>0){j=l;break l}i=g+16|0;n=K[K[j+1|0]+u|0]<>>g|0;g=i-g|0;m:{i=K[l|0];if(i- -10>>>0>=2){n:switch(i-8|0){case 4:break i;case 0:break n;default:break m}i=J[l+4>>2];l=i+o|0;J[f+4>>2]=l;d=f+8|0;e=e+i|0;if((k|0)<=(e|0))break h;f=l|w?d:f;continue d}i=J[l+4>>2];o=i+o|0;e=e+i|0;continue}break}f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];l=J[a+628>>2];q=J[a>>2];r=J[m+108>>2];J[h+80>>2]=e;J[h+76>>2]=i;J[h+72>>2]=f?280678:280699;J[h+68>>2]=r;J[h+64>>2]=q;Ob(l,287893,280595,h- -64|0);break j;case 5:break i;case 2:case 4:break e;default:break k}d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];l=J[a+ -628>>2];q=J[a>>2];r=J[m+108>>2];J[h+48>>2]=e;J[h+44>>2]=i;J[h+40>>2]=d?280678:280699;J[h+36>>2]=r;J[h+32>>2]=q;Ob(l,287893,280595,h+32|0);d=f}q=s}s=q;if(o){J[d>>2]=o;d=d+4|0}}o:{if((e|0)==(k|0))break o;f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];l=J[a+628>>2];q=J[a>>2];r=J[m+108>>2];J[h+24>>2]=k;J[h+20>>2]=e;J[h+16>>2]=i;J[h+12>>2]=f?280678:280699;J[h+8>>2]=r;J[h+4>>2]=e>>>0>>0?281186:281260;J[h>>2]=q;yc(l,287893,280892,h);f=(e|0)>(k|0);p:{if((e|0)<=(k|0)|d>>>0<=p>>>0)break p;while(1){d=d-4|0;e=e- -J[d>>2]|0;f=(k|0)<(e|0);if((e|0)<=(k|0))break p;if(d>>>0>p>>>0)continue;break}}if((e|0)<(k|0)){if(d-p&4){J[d>>2]=0;d=d+4|0}J[d>>2]=k-((e|0)>0?e:0);d=d+4|0;break o}if(!f)break o;J[d+4>>2]=0;J[d>>2]=k;d=d+8|0}Ab[J[m+76>>2]](b,p,d,k);q:{if(y){n=n>>>(g&7)|0;g=g&-8;break q}if(!x)break q;n=n>>>(g&15)|0;g=g&-16;j=(!g&j)+j|0}J[m+108>>2]=J[m+108>>2]+1;d=J[m+8>>2];b=d+b|0;c=c-d|0;if((c|0)>0)continue c;e=J[a+608>>2];f=J[a+604>>2];break b}c=J[a+12>>2]&1024;d=J[(c?504:480)+a>>2];g=J[a+628>>2];i=J[a>>2];l=J[m+ -108>>2];J[h+144>>2]=e;J[h+140>>2]=d;J[h+136>>2]=c?280678:280699;J[h+132>>2]=l;J[h+128>>2]=i;yc(g,287893,280816,h+128|0);if(o){J[f>>2]=o;f=f+4|0}r:{if((e|0)==(k|0))break r;c=J[a+12>>2]&1024;d=J[(c?504:480)+a>>2];g=J[a+628>>2];i=J[a>>2];l=J[m+108>>2];J[h+120>>2]=k;J[h+116>>2]=e;J[h+112>>2]=d;J[h+108>>2]=c?280678:280699;J[h+104>>2]=l;J[h+100>>2]=e>>>0>>0?281186:281260;J[h+96>>2]=i;yc(g,287893,280892,h+96|0);g=(e|0)>(k|0);s:{if((e|0)<=(k|0)|f>>>0<=p>>>0)break s;while(1){f=f-4|0;e=e-J[f>>2]|0;g=(k| -0)<(e|0);if((e|0)<=(k|0))break s;if(f>>>0>p>>>0)continue;break}}if((e|0)<(k|0)){if(f-p&4){J[f>>2]=0;f=f+4|0}J[f>>2]=k-((e|0)>0?e:0);f=f+4|0;break r}if(!g)break r;J[f+4>>2]=0;J[f>>2]=k;f=f+8|0}Ab[J[m+76>>2]](b,p,f,k);J[m+72>>2]=s;J[m+64>>2]=n;J[m+68>>2]=0;v=-1;b=J[a+608>>2]+(J[a+604>>2]-j|0)|0;break a}d=J[i+4>>2];o=d+o|0;e=d+e|0;continue}}}}J[m+72>>2]=s;J[m+64>>2]=n;J[m+68>>2]=g;b=(f-j|0)+e|0}J[a+604>>2]=j;J[a+608>>2]=b;xb=h+160|0;return v|0}function V9(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;l=xb-96|0;xb=l;i=J[a+584>>2];d=J[i+88>>2];a:{b:{if(!d){f=c;break b}e=J[i+100>>2];g=L[e+4>>1];h=g-d|0;c:{if((h|0)>(c|0)){f=c+d|0;J[i+88>>2]=f;j=(g+(d^-1)|0)-c|0;f=g-f&7;d:{if(!f){d=h;break d}g=0;d=h;while(1){d=d-1|0;e=J[e>>2];g=g+1|0;if((f|0)!=(g|0))continue;break}}if(j>>>0>=7)while(1){e=J[J[J[J[J[J[J[J[e>>2]>>2]>>2]>>2]>>2]>>2]>>2]>>2];d=d-8|0;if((d|0)>(c|0))continue;break}j=c-1|0;d=b+c|0;f=c&3;e:{if(!f){g=c;break e}g=c;while(1){d=d-1|0;H[d|0]=K[e+6| -0];g=g-1|0;e=J[e>>2];k=k+1|0;if((f|0)!=(k|0))continue;break}}f=0;if(j>>>0<3)break c;while(1){H[d-1|0]=K[e+6|0];e=J[e>>2];H[d-2|0]=K[e+6|0];e=J[e>>2];H[d-3|0]=K[e+6|0];d=d-4|0;e=J[e>>2];H[d|0]=K[e+6|0];e=J[e>>2];g=g-4|0;if(g)continue;break}break c}b=b+h|0;f=g+(d^-1)|0;j=h&3;f:{if(!j){d=b;g=h;break f}d=b;g=h;while(1){d=d-1|0;H[d|0]=K[e+6|0];g=g-1|0;e=J[e>>2];k=k+1|0;if((j|0)!=(k|0))continue;break}}if(f>>>0>=3)while(1){H[d-1|0]=K[e+6|0];f=J[e>>2];H[d-2|0]=K[f+6|0];f=J[f>>2];H[d-3|0]=K[f+6|0];d=d-4|0; -f=J[f>>2];H[d|0]=K[f+6|0];e=J[f>>2];g=g-4|0;if(g)continue;break}J[i+88>>2]=0;f=c-h|0}r=1;if((c|0)<(h|0))break a}r=1;q=J[i+112>>2];m=J[i+108>>2];d=J[i+104>>2];p=J[i+84>>2];k=J[i+76>>2];n=J[i+72>>2];g=L[i+64>>1];c=J[a+604>>2];g:{h:{if((f|0)<=0)break h;while(1){i:{j:{k:{h=J[i+92>>2];if((h|0)>=(g|0)){e=K[c|0]<=(g|0))c=c+1|0;else{e=K[c+1|0]<>2]=h-g;k=n-g|0;n=e>>g;l:{o=e&p;j=o&65535;switch(j-256|0){case 1:break h;case 0:break l;default:break j}}m=J[i+116>> -2]+2064|0;Pd(m,0,38888);q=J[i+116>>2]+4088|0;g=9;h=J[i+92>>2];if((h|0)>=9)break k;p=511}b=J[a>>2];h=J[a+628>>2];J[l+16>>2]=J[a+480>>2];yc(h,b,266270,l+16|0);break h}g=k+8|0;e=K[c|0]<0)c=c+1|0;else{e=K[c+1|0]<>2]=h-9;p=511;k=g-9|0;g=9;n=e>>9;m:{n:{h=e&511;switch(h-256|0){case 1:break h;case 0:break n;default:break m}}b=J[a>>2];c=J[a+628>>2];J[l+80>>2]=J[a+472>>2];Ob(c,b,266898,l+80|0);break g}H[b|0]=e;f=f-1|0;b=b+1|0;d=J[i+116>>2]+(h<<3)|0;break i}o:{e=J[i+ -116>>2];if(e>>>0<=m>>>0){h=e+40952|0;if(h>>>0>m>>>0)break o}b=J[a>>2];c=J[a+628>>2];J[l+64>>2]=J[a+472>>2];Ob(c,b,267481,l- -64|0);break g}J[m>>2]=d;if(!(d>>>0>>0&d>>>0>=e>>>0)){b=J[a>>2];c=J[a+628>>2];J[l+48>>2]=J[a+472>>2];Ob(c,b,267481,l+48|0);break g}H[m+7|0]=K[d+7|0];I[m+4>>1]=L[d+4>>1]+1;d=j<<3;h=d+e|0;H[m+6|0]=K[(h>>>0>>0?h+7|0:m+7|0)|0];m=m+8|0;if(q>>>0>>0){p=(g|0)>=11?11:g;g=p+1|0;p=-2<>>0>=256){o=L[(d+e|0)+4>>1];if(!o){b=J[a>>2];c=J[a+628>>2];J[l+32>> -2]=J[a+472>>2];Ob(c,b,268139,l+32|0);break g}if(f>>>0>>0){J[i+100>>2]=h;d=f&65535;e=h;while(1){e=J[e>>2];if(d>>>0>1])continue;break}J[i+88>>2]=f;d=b+f|0;o=f&3;r:{if(!o){b=f;break r}j=0;b=f;while(1){d=d-1|0;H[d|0]=K[e+6|0];b=b-1|0;e=J[e>>2];j=j+1|0;if((o|0)!=(j|0))continue;break}}j=f>>>0<4;f=0;if(j){d=h;break h}while(1){H[d-1|0]=K[e+6|0];e=J[e>>2];H[d-2|0]=K[e+6|0];e=J[e>>2];H[d-3|0]=K[e+6|0];d=d-4|0;e=J[e>>2];H[d|0]=K[e+6|0];e=J[e>>2];b=b-4|0;if(b)continue;break}d=h;break h}j=b+o|0;d=j; -e=h;while(1){d=d-1|0;H[d|0]=K[e+6|0];e=J[e>>2];if(!e)break q;if(b>>>0>>0)continue;break}break q}H[b|0]=o;f=f-1|0;b=b+1|0;break p}f=f-o|0;b=j}d=h}if((f|0)>0)continue;break}}J[a+604>>2]=c;J[i+112>>2]=q;J[i+108>>2]=m;J[i+104>>2]=d;J[i+84>>2]=p;J[i+76>>2]=k;J[i+72>>2]=n;I[i+64>>1]=g;if((f|0)<=0)break a;b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[l+4>>2]=f;J[l>>2]=a;Ob(c,b,268787,l)}r=0}xb=l+96|0;return r|0}function WH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=Q(0),g=Q(0),h=0,i=Q(0),j=Q(0),k=0,l=0,m=0; -e=J[b+4>>2];k=J[b>>2];a:{if(((K[a|0]|K[a+1|0]<<8)&24)==8){f=N[d>>2];a=f==Q(0);g=N[d+4>>2];b:{if(!(a|g==Q(0))){if(!e)break b;b=k;a=P(e,12);h=a-12|0;if(!((h>>>0)/12&1)){N[b>>2]=f+N[b>>2];N[b+4>>2]=N[d+4>>2]+N[b+4>>2];b=b+12|0}if(h>>>0<12)break b;a=a+k|0;while(1){N[b>>2]=N[d>>2]+N[b>>2];N[b+4>>2]=N[d+4>>2]+N[b+4>>2];N[b+12>>2]=N[d>>2]+N[b+12>>2];N[b+16>>2]=N[d+4>>2]+N[b+16>>2];b=b+24|0;if((a|0)!=(b|0))continue;break}break b}if(!a){if(!e)break b;b=k;h=P(e,12);l=h-12|0;m=((l>>>0)/12|0)+1&3;if(m){a=0;while(1){N[b>> -2]=N[d>>2]+N[b>>2];b=b+12|0;a=a+1|0;if((m|0)!=(a|0))continue;break}}if(l>>>0<36)break b;a=k+h|0;while(1){N[b>>2]=N[d>>2]+N[b>>2];N[b+12>>2]=N[d>>2]+N[b+12>>2];N[b+24>>2]=N[d>>2]+N[b+24>>2];N[b+36>>2]=N[d>>2]+N[b+36>>2];b=b+48|0;if((a|0)!=(b|0))continue;break}break b}if(!e|g==Q(0))break b;b=k;h=P(e,12);l=h-12|0;m=((l>>>0)/12|0)+1&3;if(m){a=0;while(1){N[b+4>>2]=N[d+4>>2]+N[b+4>>2];b=b+12|0;a=a+1|0;if((m|0)!=(a|0))continue;break}}if(l>>>0<36)break b;a=k+h|0;while(1){N[b+4>>2]=N[d+4>>2]+N[b+4>>2];N[b+ -16>>2]=N[d+4>>2]+N[b+16>>2];N[b+28>>2]=N[d+4>>2]+N[b+28>>2];N[b+40>>2]=N[d+4>>2]+N[b+40>>2];b=b+48|0;if((a|0)!=(b|0))continue;break}}if(!(N[c>>2]!=Q(1)|N[c+4>>2]!=Q(0)|N[c+8>>2]!=Q(0)))if(N[c+12>>2]==Q(1))break a;if(!e)break a;d=k;a=P(e,12);b=a-12|0;if(!((b>>>0)/12&1)){g=N[c>>2];f=N[c+8>>2];i=N[d>>2];j=N[d+4>>2];N[d+4>>2]=Q(i*N[c+4>>2])+Q(j*N[c+12>>2]);N[d>>2]=Q(i*g)+Q(j*f);d=d+12|0}if(b>>>0<12)break a;a=a+k|0;while(1){g=N[c>>2];f=N[c+8>>2];i=N[d>>2];j=N[d+4>>2];N[d+4>>2]=Q(i*N[c+4>>2])+Q(j*N[c+12>> -2]);N[d>>2]=Q(i*g)+Q(j*f);g=N[c>>2];f=N[c+8>>2];i=N[d+12>>2];j=N[d+16>>2];N[d+16>>2]=Q(i*N[c+4>>2])+Q(j*N[c+12>>2]);N[d+12>>2]=Q(i*g)+Q(j*f);d=d+24|0;if((a|0)!=(d|0))continue;break}break a}c:{if(!(N[c>>2]!=Q(1)|N[c+4>>2]!=Q(0)|N[c+8>>2]!=Q(0)))if(N[c+12>>2]==Q(1))break c;if(!e)break c;b=k;a=P(e,12);h=a-12|0;if(!((h>>>0)/12&1)){g=N[c>>2];f=N[c+8>>2];i=N[b>>2];j=N[b+4>>2];N[b+4>>2]=Q(i*N[c+4>>2])+Q(j*N[c+12>>2]);N[b>>2]=Q(i*g)+Q(j*f);b=b+12|0}if(h>>>0<12)break c;a=a+k|0;while(1){g=N[c>>2];f=N[c+8>> -2];i=N[b>>2];j=N[b+4>>2];N[b+4>>2]=Q(i*N[c+4>>2])+Q(j*N[c+12>>2]);N[b>>2]=Q(i*g)+Q(j*f);g=N[c>>2];f=N[c+8>>2];i=N[b+12>>2];j=N[b+16>>2];N[b+16>>2]=Q(i*N[c+4>>2])+Q(j*N[c+12>>2]);N[b+12>>2]=Q(i*g)+Q(j*f);b=b+24|0;if((a|0)!=(b|0))continue;break}}f=N[d>>2];a=f==Q(0);g=N[d+4>>2];if(!(a|g==Q(0))){if(!e)break a;c=k;a=P(e,12);b=a-12|0;if(!((b>>>0)/12&1)){N[c>>2]=f+N[c>>2];N[c+4>>2]=N[d+4>>2]+N[c+4>>2];c=c+12|0}if(b>>>0<12)break a;a=a+k|0;while(1){N[c>>2]=N[d>>2]+N[c>>2];N[c+4>>2]=N[d+4>>2]+N[c+4>>2];N[c+ -12>>2]=N[d>>2]+N[c+12>>2];N[c+16>>2]=N[d+4>>2]+N[c+16>>2];c=c+24|0;if((a|0)!=(c|0))continue;break}break a}if(!a){if(!e)break a;c=k;a=P(e,12);e=a-12|0;h=((e>>>0)/12|0)+1&3;if(h){b=0;while(1){N[c>>2]=N[d>>2]+N[c>>2];c=c+12|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}if(e>>>0<36)break a;a=a+k|0;while(1){N[c>>2]=N[d>>2]+N[c>>2];N[c+12>>2]=N[d>>2]+N[c+12>>2];N[c+24>>2]=N[d>>2]+N[c+24>>2];N[c+36>>2]=N[d>>2]+N[c+36>>2];c=c+48|0;if((a|0)!=(c|0))continue;break}break a}if(!e|g==Q(0))break a;c=k;a=P(e,12);e=a- -12|0;h=((e>>>0)/12|0)+1&3;if(h){b=0;while(1){N[c+4>>2]=N[d+4>>2]+N[c+4>>2];c=c+12|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}if(e>>>0<36)break a;a=a+k|0;while(1){N[c+4>>2]=N[d+4>>2]+N[c+4>>2];N[c+16>>2]=N[d+4>>2]+N[c+16>>2];N[c+28>>2]=N[d+4>>2]+N[c+28>>2];N[c+40>>2]=N[d+4>>2]+N[c+40>>2];c=c+48|0;if((a|0)!=(c|0))continue;break}}}function oG(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,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,G=0;h=xb-32|0;xb=h;if(!(e-d>>>0<2|d>>>0>= -e>>>0)){C=J[c+80>>2];while(1){n=P(d,20);a:{if(1<>1]&7168){q=d;break a}g=d+1|0;k=e>>>0>g>>>0?e:g;i=k-1|0;m=d;while(1){b:{q=m;if((i|0)==(m|0)){q=i;m=k;break b}m=q+1|0;if(1<>1]&7168)continue}break}Ac(c,3,d,m,1,0);i=J[n+J[c+80>>2]>>2];J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;k=J[b+116>>2];t=J[k+72>>2];u=J[b+120>>2];k=J[k+12>>2];if(k)k=J[k+52>>2];else k=0;if(!(Ab[t|0](b,u,i,h,k)|0)){if(g>>>0>=m>>>0)break a;m=J[c+80>>2];if(!f){if(q-d&1){g=P(g,20);if((L[(g+m|0)+16>> -1]&31)==12){g=g+J[c+88>>2]|0;J[g>>2]=0;J[g+4>>2]=0}g=d+2|0}if((d+1|0)==(q|0))break a;while(1){d=P(g,20);if((L[(d+m|0)+16>>1]&31)==12){d=d+J[c+88>>2]|0;J[d>>2]=0;J[d+4>>2]=0}d=g+1|0;i=P(d,20);if((L[(i+m|0)+16>>1]&31)==12){i=i+J[c+88>>2]|0;J[i>>2]=0;J[i+4>>2]=0}g=g+2|0;if((d|0)!=(q|0))continue;break}break a}while(1){d=P(g,20);if((L[(d+m|0)+16>>1]&31)==12){d=d+J[c+88>>2]|0;i=J[d+4>>2];J[d+4>>2]=0;k=J[d>>2];J[d>>2]=0;J[d+8>>2]=J[d+8>>2]-k;J[d+12>>2]=J[d+12>>2]-i}d=(g|0)==(q|0);g=g+1|0;if(!d)continue; -break}break a}d=J[(n+J[c+88>>2]|0)+12>>2];v=0;J[h>>2]=0;J[h+4>>2]=d+J[h+4>>2];d=J[b+116>>2];i=J[d+40>>2];u=J[b+120>>2];k=J[n+J[c+80>>2]>>2];d=J[d+12>>2];if(d)d=J[d+20>>2];else d=0;d=Ab[i|0](b,u,k,d)|0;J[h+8>>2]=d;w=0;if((J[c+40>>2]&-3)==4){i=n+J[c+88>>2]|0;v=0-J[i+4>>2]|0;w=0-J[i>>2]|0}if(g>>>0>=m>>>0)break a;D=J[c+80>>2];m=n+D|0;z=K[m+14|0];s=K[m+12|0]&4?z&16?z&15:1:1;E=-1;t=255;x=0;G=z>>>0<32;A=J[h>>2];n=A;B=J[h+4>>2];k=B;m=d;u=J[h+12>>2];i=u;while(1){F=g;c:{d:{y=P(g,20);o=D+y|0;l=L[o+16>>1];if(l>>> -0<256)break d;j=1<>>0<2)break e;g=K[o+14|0];p=g&16?0:g&15;p=G?s:(g^z)>>>0>31?s:s>>>0

>>0?s:p;g=p-1|0;if((g|0)==(E|0))break e;u=J[h+12>>2];d=J[h+8>>2];B=J[h+4>>2];t=J[h>>2];f:{if(x)break f;x=J[a>>2];if((x&-2)==4)break f;x=Uo(J[a+4>>2]);l=L[o+16>>1];j=1<>>8|0:0;if((j|0)!=(t|0)){i=u;k=B;n=A;t=j;m=d}g=J[J[c+80>>2]+y>>2];J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;l=J[b+116>>2];o=J[l+ -72>>2];p=J[b+120>>2];r=h+16|0;l=J[l+12>>2];if(l)l=J[l+52>>2];else l=0;g=Ab[o|0](b,p,g,r,l)|0;p=J[c+88>>2];g:{if(!g)break g;l=J[b+32>>2];g=p+y|0;J[g+12>>2]=0;o=(l|0)/16|0;h:{i:{j:{k:{l:{j=j-200|0;switch(j|0){case 16:case 22:case 32:break i;case 0:case 18:case 28:break j;case 33:case 34:break l;default:break k}}m:switch(J[c+40>>2]-4|0){case 0:r=((m+n|0)+(J[h+24>>2]/-2|0)|0)-J[h+16>>2]|0;break h;case 1:break m;default:break k}r=((J[h+24>>2]/-2|0)+n|0)-J[h+16>>2]|0;break h}r=(n-J[h+16>>2]|0)+((m-J[h+ -24>>2]|0)/2|0)|0;break h}r=n-J[h+16>>2]|0;break h}r=m+n-(J[h+24>>2]+J[h+16>>2])|0}J[g+8>>2]=r;n:switch(j|0){case 18:case 20:case 22:case 33:i=i-o|0;case 0:case 2:j=(i+k|0)-J[h+20>>2]|0;l=(l|0)<16^(j|0)>0;J[g+12>>2]=l?0:j;i=(J[h+28>>2]+i|0)-(l?j:0)|0;break g;case 28:case 30:case 32:case 34:i=i-o|0;k=k+o|0;break;case 14:case 16:break n;default:break g}r=(l|0)<16;l=J[h+28>>2];j=k-(l+J[h+20>>2]|0)|0;if(!(r^(j|0)>0)){o=(j|0)/-2|0;j=o+j|0;k=k+o|0;i=i-o|0}J[g+12>>2]=j;i=i+l|0;k=k-l|0}g=p+y|0;J[g>>2]=0;J[g+ -4>>2]=0;J[g+8>>2]=J[g+8>>2]+w;J[g+12>>2]=J[g+12>>2]+v;break c}j=J[c+88>>2]+y|0;g=J[j+4>>2];j=J[j>>2];if((J[c+40>>2]&-3)==4){v=v-g|0;w=w-j|0;break c}v=g+v|0;w=j+w|0}g=F+1|0;if((q|0)!=(F|0))continue;break}}d=q+1|0;if(e>>>0>d>>>0)continue;break}}xb=h+32|0}function YK(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;e=xb-16|0;xb=e;k=J[b+16>>2];l=J[b+8>>2];d=J[b>>2];o=J[a+492>>2];c=Ab[J[b+36>>2]](b)|0;a:{if((c|0)<0){J[b+12>>2]=3;break a}d=l-d>>3;f=(c| -0)<(d|0)?c:d;if(J[b+12>>2]|!f)break a;h=b+260|0;m=b+156|0;i=b+208|0;b:{if(!J[b+152>>2]){d=f+6|0;c=Ab[J[J[o>>2]>>2]](i,d,k)|0;if(c)break b;c=Ab[J[J[o>>2]>>2]](m,d,k)|0;if(c)break b;c=Ab[J[J[o>>2]>>2]](h,4,k)|0;J[e+12>>2]=c;if(c)break b}Ab[J[b+28>>2]](b);c=3;d=J[b>>2];if(l>>>0<=d>>>0)break b;s=f+5|0;f=0;c:{d:{while(1){e:{f:{if(d+3>>>0>=l>>>0)break f;g:switch(K[d+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break g; -default:break f}h:switch(K[d|0]-100|0){case 0:if(!f|(K[d+1|0]!=101|K[d+2|0]!=102))break f;break c;case 1:break h;default:break f}if(K[d+1|0]!=110)break f;if(K[d+2|0]==100)break e}Ab[J[b+32>>2]](b);n=J[b>>2];if(n>>>0>=l>>>0){J[b+12>>2]=3;break a}if(J[b+12>>2])break a;i:{if(K[d|0]!=47)break i;if(d+2>>>0>=l>>>0){J[e+12>>2]=3;break d}j=J[J[a+128>>2]+52>>2];g=J[b+8>>2];Ab[J[b+28>>2]](b);j:{c=J[b>>2];k:{if(c>>>0>=g>>>0|K[c|0]-48>>>0>9)break k;c=Ab[J[b+36>>2]](b)|0;Ab[J[b+32>>2]](b);if((c|0)<0)break k;t= -g;q=J[b>>2];g=q+1|0;if((c|0)<(t-g|0))break j}if(j)break a;J[b+12>>2]=3;break a}J[b>>2]=(c+q|0)+1;if(J[b+12>>2])break a;if(J[b+152>>2])break i;d=d+1|0;n=n-d|0;j=Ab[J[b+200>>2]](m,f,d,n+1|0)|0;J[e+12>>2]=j;if(j)break d;j=f<<2;H[n+J[j+J[b+180>>2]>>2]|0]=0;if(K[d|0]==46){d=fc(11262,J[j+J[b+180>>2]>>2]);r=d?r:1;p=d?p:f}d=J[a+172>>2];l:{if(!((d|0)<0|(f|0)>=(s|0))){if(c>>>0<=d>>>0){J[e+12>>2]=3;break d}d=tc(k,c,e+12|0);if(J[e+12>>2])break d;d=Mb(d,g,c);Ab[J[o+16>>2]](d,c,4330);g=J[a+172>>2];u=e,v=Ab[J[b+ -252>>2]](i,f,g+d|0,c-g|0)|0,J[u+12>>2]=v;if(d)Ab[J[k+8>>2]](k,d);d=J[e+12>>2];break l}d=Ab[J[b+252>>2]](i,f,g,c)|0;J[e+12>>2]=d}if(d)break d;f=!d+f|0}Ab[J[b+28>>2]](b);d=J[b>>2];if(l>>>0>d>>>0)continue}break}if(f)break c;J[b+12>>2]=3;break a}c=J[e+12>>2];break b}J[b+152>>2]=f;if(r&255){a=J[J[b+180>>2]>>2];if(!fc(11262,a))break a;c=Ab[J[b+304>>2]](h,0,a,J[J[b+184>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+304>>2]](h,1,J[J[b+232>>2]>>2],J[J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;a=p<<2;c=Ab[J[b+ -304>>2]](h,2,J[a+J[b+180>>2]>>2],J[a+J[b+184>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+304>>2]](h,3,J[a+J[b+232>>2]>>2],J[a+J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+200>>2]](m,p,J[J[b+284>>2]>>2],J[J[b+288>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+252>>2]](i,p,J[J[b+284>>2]+4>>2],J[J[b+288>>2]+4>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+200>>2]](m,0,J[J[b+284>>2]+8>>2],J[J[b+288>>2]+8>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+252>>2]](i,0,J[J[b+284>>2]+12>>2],J[J[b+288>>2]+12>> -2])|0;if(c)break b;break a}H[e+8|0]=K[100208];J[e+4>>2]=K[100204]|K[100205]<<8|(K[100206]<<16|K[100207]<<24);c=Ab[J[b+304>>2]](h,0,J[J[b+180>>2]>>2],J[J[b+184>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+304>>2]](h,1,J[J[b+232>>2]>>2],J[J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+200>>2]](m,0,11262,8)|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+252>>2]](i,0,e+4|0,5)|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+200>>2]](m,f,J[J[b+284>>2]>>2],J[J[b+288>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=Ab[J[b+252>> -2]](i,f,J[J[b+284>>2]+4>>2],J[J[b+288>>2]+4>>2])|0;if(c)break b;J[b+152>>2]=J[b+152>>2]+1;break a}J[b+12>>2]=c}xb=e+16|0}function RF(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;d=J[a+12>>2]-5|0;e=J[a+44>>2];m=d>>>0>>0?d:e;g=J[J[a>>2]+4>>2];n=(b|0)!=4;a:{while(1){h=1;f=J[a>>2];d=J[f+16>>2];c=J[a+5820>>2]+42>>3;if(d>>>0>>0)break a;j=J[a+108>>2];k=J[a+92>>2];i=j-k|0;e=i+J[f+4>>2]|0;d=d-c|0;c=d>>>0>e>>>0?e:d;d=c>>>0>=65535?65535:c;if(m>>>0>d>>>0)if(!c&n|(!b|(d|0)!= -(e|0)))break a;h=(b|0)==4&(d|0)==(e|0);qo(a,0,0,h);H[(J[a+8>>2]+J[a+20>>2]|0)-4|0]=d;H[(J[a+8>>2]+J[a+20>>2]|0)-3|0]=d>>>8;e=d^-1;H[(J[a+8>>2]+J[a+20>>2]|0)-2|0]=e;H[(J[a+8>>2]+J[a+20>>2]|0)-1|0]=e>>>8;e=J[a>>2];c=J[e+28>>2];oe(c);f=J[c+20>>2];l=J[e+16>>2];f=f>>>0>>0?f:l;b:{if(!f)break b;Mb(J[e+12>>2],J[c+16>>2],f);J[e+12>>2]=f+J[e+12>>2];J[c+16>>2]=f+J[c+16>>2];J[e+20>>2]=f+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-f;e=J[c+20>>2];J[c+20>>2]=e-f;if((e|0)!=(f|0))break b;J[c+16>>2]=J[c+8>>2]}if((j|0)!=(k| -0)){e=d>>>0>i>>>0?i:d;Mb(J[J[a>>2]+12>>2],J[a+56>>2]+J[a+92>>2]|0,e);c=J[a>>2];J[c+12>>2]=e+J[c+12>>2];J[c+16>>2]=J[c+16>>2]-e;J[c+20>>2]=e+J[c+20>>2];J[a+92>>2]=e+J[a+92>>2];d=d-e|0}if(d){c=J[a>>2];e=J[c+12>>2];f=J[c+4>>2];if(f){i=f;f=d>>>0>f>>>0?f:d;J[c+4>>2]=i-f;e=Mb(e,J[c>>2],f);c:{d:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:o=c,p=oh(J[c+48>>2],e,f),J[o+48>>2]=p;break c;case 1:break d;default:break c}o=c,p=Ad(J[c+48>>2],e,f),J[o+48>>2]=p}J[c>>2]=f+J[c>>2];J[c+8>>2]=f+J[c+8>>2];c=J[a>>2];e=J[c+12>> -2]}J[c+12>>2]=d+e;J[c+16>>2]=J[c+16>>2]-d;J[c+20>>2]=J[c+20>>2]+d}if(!h)continue;break}f=J[a>>2];h=0}d=J[f+4>>2];e:{if((d|0)==(g|0)){d=J[a+108>>2];break e}c=g-d|0;d=J[a+44>>2];f:{if(c>>>0>=d>>>0){J[a+5808>>2]=2;Mb(J[a+56>>2],J[f>>2]-d|0,d);e=J[a+44>>2];J[a+108>>2]=e;d=e;break f}e=J[a+108>>2];g:{if(c>>>0>2]-e>>>0)break g;e=e-d|0;J[a+108>>2]=e;f=J[a+56>>2];Mb(f,d+f|0,e);d=J[a+5808>>2];if(d>>>0>1)break g;J[a+5808>>2]=d+1}Mb(J[a+56>>2]+J[a+108>>2]|0,J[J[a>>2]>>2]-c|0,c);d=c+J[a+108>>2]|0;J[a+ -108>>2]=d;e=J[a+44>>2]}J[a+92>>2]=d;f=e;e=J[a+5812>>2];f=f-e|0;J[a+5812>>2]=(c>>>0>>0?c:f)+e}if(M[a+5824>>2]>>0)J[a+5824>>2]=d;c=3;h:{if(!h)break h;i:{j:switch(b|0){case 0:case 4:break i;default:break j}if(J[J[a>>2]+4>>2])break i;c=1;if(J[a+92>>2]==(d|0))break h}e=J[a+60>>2]+(d^-1)|0;c=J[a>>2];f=J[c+4>>2];k:{if(e>>>0>=f>>>0)break k;h=J[a+92>>2];g=J[a+44>>2];if((h|0)<(g|0))break k;d=d-g|0;J[a+108>>2]=d;J[a+92>>2]=h-g;c=J[a+56>>2];Mb(c,c+g|0,d);d=J[a+5808>>2];if(d>>>0<=1)J[a+5808>>2]=d+1;e=J[a+ -44>>2]+e|0;d=J[a+108>>2];c=J[a>>2];f=J[c+4>>2]}e=e>>>0>>0?e:f;if(e){g=J[a+56>>2];J[c+4>>2]=f-e;d=Mb(d+g|0,J[c>>2],e);l:{m:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:o=c,p=oh(J[c+48>>2],d,e),J[o+48>>2]=p;break l;case 1:break m;default:break l}o=c,p=Ad(J[c+48>>2],d,e),J[o+48>>2]=p}J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];d=e+J[a+108>>2]|0;J[a+108>>2]=d}if(M[a+5824>>2]>>0)J[a+5824>>2]=d;g=J[a+92>>2];f=d-g|0;e=J[a+12>>2]-(J[a+5820>>2]+42>>3)|0;e=e>>>0>=65535?65535:e;c=J[a+44>>2];if(f>>>0<(c>>>0>e>>> -0?e:c)>>>0){c=0;if(J[J[a>>2]+4>>2]|(!b|!((b|0)==4|(d|0)!=(g|0))))break h}c=0;d=e>>>0>f>>>0?f:e;c=J[J[a>>2]+4>>2]|(b|0)!=4?c:e>>>0>=f>>>0;qo(a,g+J[a+56>>2]|0,d,c);J[a+92>>2]=d+J[a+92>>2];a=J[a>>2];b=J[a+28>>2];oe(b);d=J[b+20>>2];e=J[a+16>>2];d=d>>>0>>0?d:e;n:{if(!d)break n;Mb(J[a+12>>2],J[b+16>>2],d);J[a+12>>2]=d+J[a+12>>2];J[b+16>>2]=d+J[b+16>>2];J[a+20>>2]=d+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-d;a=J[b+20>>2];J[b+20>>2]=a-d;if((a|0)!=(d|0))break n;J[b+16>>2]=J[b+8>>2]}c=c<<1}return c|0}function ev(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;g=xb-16|0;xb=g;J[b+12>>2]=0;J[b>>2]=c;h=c+d|0;J[b+8>>2]=h;Ab[J[b+28>>2]](b);c=J[b>>2];a:{b:{if(h>>>0<=c>>>0)break b;k=a+132|0;m=a+164|0;n=a+168|0;o=a+464|0;while(1){c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{d=K[c|0];switch(d-99|0){case 1:break i;case 0:break k;case 2:break l;default:break j}}d=c+6|0;if((d|0)==(h|0))break h;if(d>>>0>=h>>>0)break d;switch(K[c+5|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break h; -default:break d}}m:{d=c+10|0;if((d|0)==(h|0))break m;if(d>>>0>=h>>>0)break d;switch(K[c+9|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break m;default:break d}}if(Zb(c,11709,9))break d;break b}if((d|0)==70)break e}if(d-48>>>0<=9){Ab[J[b+32>>2]](b);e=1;l=c;if(!J[b+12>>2])break c;break b}f=c+6|0;if(!((d|0)!=82|f>>>0>=h>>>0)){if(!e|K[c+1|0]!=68)break d;J[b>>2]=l;e=J[J[a+128>>2]+52>>2];d=J[b+8>>2];Ab[J[b+28>>2]](b); -n:{c=J[b>>2];o:{if(c>>>0>=d>>>0|K[c|0]-48>>>0>9)break o;c=Ab[J[b+36>>2]](b)|0;Ab[J[b+32>>2]](b);if((c|0)<0)break o;f=d;d=J[b>>2];if((c|0)<(f+(d^-1)|0))break n}c=3;if(e)break a;break f}J[b>>2]=(c+d|0)+1;e=0;if(!J[b+12>>2])break c;c=3;break a}if(!((d|0)!=45|f>>>0>=h>>>0)){if(!e|K[c+1|0]!=124)break d;J[b>>2]=l;e=J[J[a+128>>2]+52>>2];d=J[b+8>>2];Ab[J[b+28>>2]](b);p:{c=J[b>>2];q:{if(c>>>0>=d>>>0|K[c|0]-48>>>0>9)break q;c=Ab[J[b+36>>2]](b)|0;Ab[J[b+32>>2]](b);if((c|0)<0)break q;f=d;d=J[b>>2];if((c|0)<(f+ -(d^-1)|0))break p}c=3;if(!e)break f;break a}J[b>>2]=(c+d|0)+1;e=0;if(!J[b+12>>2])break c;c=3;break a}if((d|0)!=47|c+2>>>0>=h>>>0)break d;i=c+1|0;J[b>>2]=i;Ab[J[b+32>>2]](b);if(J[b+12>>2])break b;e=0;c=J[b>>2];if((c|0)==(i|0))break c;j=c-i|0;if(j>>>0>21|c>>>0>=h>>>0)break c;c=98512;f=12002;p=K[i|0];while(1){d=c;r:{if(K[f|0]!=(p|0))break r;if((ac(f)|0)!=(j|0))break r;if(cd(i,f,j))break r;i=J[c+32>>2];c=J[b+376>>2];if(!(i&(c&1?2:1)))break c;if(c&2)if(fc(f,11880))break c;f=J[a+532>>2];if(f)c=J[f>>2]? -f:0;else c=0;i=J[d+8>>2];s:{if((i|0)==11){Ab[J[d+12>>2]](a,b);c=J[b+12>>2];break s}t:{u:{v:{w:{x:{y:{z:switch(J[d+4>>2]-2|0){case 1:J[g+12>>2]=k;if(c)break y;e=g+12|0;break u;case 2:J[g+12>>2]=n;e=g+12|0;if(!c)break u;e=c+212|0;break x;case 3:J[g+12>>2]=o;e=g+12|0;if(!c)break u;e=c+284|0;break x;case 4:J[g+12>>2]=b;e=g+12|0;break u;case 5:J[g+12>>2]=a;e=g+12|0;break u;case 6:J[g+12>>2]=f;e=g+12|0;c=0;break w;case 0:break v;default:break z}J[g+12>>2]=k;e=g+12|0;break u}e=c+144|0}f=J[e>>2];c=J[c>>2]}if(f)break t; -break g}J[g+12>>2]=m;e=g+12|0}c=0}if(i-9>>>0<=1){c=Ab[J[b+68>>2]](b,d,e,c,0)|0;break s}c=Ab[J[b+64>>2]](b,d,e,c,0)|0}J[b+12>>2]=c;if(!c){e=0;break c}if((c&255)==162)break g;break a}c=d+36|0;f=J[d+36>>2];if(f)continue;break}break c}if(!Zb(c,11600,5))break b;break d}e=0;J[b+12>>2]=0;break c}J[b+12>>2]=3;break a}A:{d=c+14|0;if((d|0)==(h|0))break A;if(d>>>0>=h>>>0)break d;switch(K[c+13|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break A; -default:break d}}if(Zb(c,11768,13))break d;d=J[b+376>>2];if(d&1)J[b+376>>2]=d|2;J[b>>2]=c+13;break c}Ab[J[b+32>>2]](b);e=0;if(J[b+12>>2])break b}Ab[J[b+28>>2]](b);c=J[b>>2];if(h>>>0>c>>>0)continue;break}}c=J[b+12>>2]}xb=g+16|0;return c}function H2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-112|0;xb=d;a:{b:{c:{d:{e:{b=J[c>>2];f=J[c+4>>2];f:{if((b|0)==(f|0))break f;J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{while(1){c=J[b>>2];J[195395]=0;e=d+48|0;da(1863,e|0,+(c| -0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break q;J[195395]=0;$(1811,e|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break p;J[d+72>>2]=J[d+56>>2];J[d+56>>2]=0;c=J[d+52>>2];J[d+64>>2]=J[d+48>>2];J[d+68>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;c=J[b+4>>2];J[195395]=0;e=d+36|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break o;J[195395]=0;g=e;c=K[d+47|0];e=c<<24>>24<0;c=aa(1864,d- -64|0,(e?J[d+36>>2]:g)|0,(e?J[d+40>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break n;J[d+88>>2]=J[c+8>>2];e=J[c+ -4>>2];J[d+80>>2]=J[c>>2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+80|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break m;J[d+16>>2]=J[d+88>>2];J[d+88>>2]=0;e=J[d+84>>2];c=J[d+80>>2];J[d+8>>2]=c;J[d+12>>2]=e;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;g=c;c=H[d+19|0];e=(c|0)<0;aa(1864,d+96|0,(e?g:d+8|0)|0,(e?J[d+12>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break l;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+75|0]<0)Kb(J[d+ -64>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);b=b+8|0;if((f|0)!=(b|0))continue;break}J[195395]=0;b=aa(1969,d+8|0,402168,d+96|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break g;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;if(H[d+19|0]>=0)break k;Kb(J[d+8>>2])}if(H[d+91|0]>=0)break j;Kb(J[d+80>>2])}if(H[d+47|0]>=0)break i;Kb(J[d+36>>2])}if(H[d+75|0]>=0)break h;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}J[d+88>>2]=0;J[d+80>>2]=0;J[d+ -84>>2]=0;J[195395]=0;H[d+68|0]=0;J[d+64>>2]=d+80;c=_(1078,24)|0;f=J[195395];J[195395]=0;r:{s:{if((f|0)!=1){J[d+84>>2]=c;J[d+80>>2]=c;J[195395]=0;J[d+88>>2]=c+24;f=ha(1957,d+88|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break r;a=Z()|0;J[d+84>>2]=c;break s}a=Z()|0}Kc(d- -64|0);Vb(b);break a}J[d+84>>2]=f;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+80|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;$(1964,b|0,c|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,48)|0;f=J[195395];J[195395]=0;if((f|0)==1)break d;J[d+64>>2]=a;J[d+68>>2]=8;J[d+72>>2]=-2147483636;f=J[100681];J[a+24>>2]=J[100680];J[a+28>>2]=f;f=J[100679];J[a+16>>2]=J[100678];J[a+20>>2]=f;f=J[100677];J[a+8>>2]=J[100676];J[a+12>>2]=f;f=J[100675];J[a>>2]=J[100674];J[a+4>>2]=f;J[a+32>>2]=0;J[195395]=0;J[d+ -48>>2]=0;H[d+59|0]=0;ia(1961,b|0,d- -64|0,c|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);a=J[d+80>>2];if(a){b=J[d+84>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}c=J[d+80>>2]}J[d+84>>2]=a;Kb(c)}if(H[d+107|0]>=0)break f;Kb(J[d+96>>2])}xb=d+112|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]>=0)break b; -Kb(J[d+64>>2])}Hc(d+80|0)}if(H[d+107|0]<0)Kb(J[d+96>>2]);ba(a|0);B()}function n2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-112|0;xb=d;a:{b:{c:{d:{e:{b=J[c>>2];f=J[c+4>>2];f:{if((b|0)==(f|0))break f;J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{while(1){g=O[b>>3];J[195395]=0;c=d+48|0;da(1863,c|0,+g,-1);e=J[195395];J[195395]=0;if((e|0)==1)break q;J[195395]=0;$(1811,c|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break p;J[d+72>>2]=J[d+56>>2];J[d+56>>2]=0;c=J[d+52>> -2];J[d+64>>2]=J[d+48>>2];J[d+68>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;g=O[b+8>>3];J[195395]=0;c=d+36|0;da(1863,c|0,+g,-1);e=J[195395];J[195395]=0;if((e|0)==1)break o;J[195395]=0;h=c;c=K[d+47|0];e=c<<24>>24<0;c=aa(1864,d- -64|0,(e?J[d+36>>2]:h)|0,(e?J[d+40>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break n;J[d+88>>2]=J[c+8>>2];e=J[c+4>>2];J[d+80>>2]=J[c>>2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+80|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break m;J[d+16>>2]=J[d+88>>2]; -J[d+88>>2]=0;e=J[d+84>>2];c=J[d+80>>2];J[d+8>>2]=c;J[d+12>>2]=e;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;h=c;c=H[d+19|0];e=(c|0)<0;aa(1864,d+96|0,(e?h:d+8|0)|0,(e?J[d+12>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break l;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);b=b+16|0;if((f|0)!=(b|0))continue;break}J[195395]=0;b=aa(1969,d+8|0,402168,d+96|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break g; -a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;if(H[d+19|0]>=0)break k;Kb(J[d+8>>2])}if(H[d+91|0]>=0)break j;Kb(J[d+80>>2])}if(H[d+47|0]>=0)break i;Kb(J[d+36>>2])}if(H[d+75|0]>=0)break h;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;H[d+68|0]=0;J[d+64>>2]=d+80;c=_(1078,24)|0;f=J[195395];J[195395]=0;r:{s:{if((f|0)!=1){J[d+84>>2]=c;J[d+80>>2]=c;J[195395]=0;J[d+88>>2]=c+24;f=ha(1957, -d+88|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break r;a=Z()|0;J[d+84>>2]=c;break s}a=Z()|0}Kc(d- -64|0);Vb(b);break a}J[d+84>>2]=f;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+80|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;$(1964,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e; -J[195395]=0;a=_(1078,48)|0;f=J[195395];J[195395]=0;if((f|0)==1)break d;J[d+64>>2]=a;J[d+68>>2]=8;J[d+72>>2]=-2147483636;f=J[100681];J[a+24>>2]=J[100680];J[a+28>>2]=f;f=J[100679];J[a+16>>2]=J[100678];J[a+20>>2]=f;f=J[100677];J[a+8>>2]=J[100676];J[a+12>>2]=f;f=J[100675];J[a>>2]=J[100674];J[a+4>>2]=f;J[a+32>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,b|0,d- -64|0,c|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);a=J[d+80>>2];if(a){b= -J[d+84>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}c=J[d+80>>2]}J[d+84>>2]=a;Kb(c)}if(H[d+107|0]>=0)break f;Kb(J[d+96>>2])}xb=d+112|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]>=0)break b;Kb(J[d+64>>2])}Hc(d+80|0)}if(H[d+107|0]<0)Kb(J[d+96>>2]);ba(a|0);B()}function bZ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-112|0;xb=c;a:{b:{c:{d:{e:{d=J[b>>2];f=J[b+4>>2];f:{if((d| -0)==(f|0))break f;J[c+104>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{while(1){b=I[d>>1];J[195395]=0;e=c+48|0;da(1863,e|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break q;J[195395]=0;$(1811,e|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break p;J[c+72>>2]=J[c+56>>2];J[c+56>>2]=0;b=J[c+52>>2];J[c+64>>2]=J[c+48>>2];J[c+68>>2]=b;J[c+48>>2]=0;J[c+52>>2]=0;b=I[d+2>>1];J[195395]=0;e=c+36|0;da(1863,e|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break o;J[195395]=0;g=e;b=K[c+ -47|0];e=b<<24>>24<0;b=aa(1864,c- -64|0,(e?J[c+36>>2]:g)|0,(e?J[c+40>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break n;J[c+88>>2]=J[b+8>>2];e=J[b+4>>2];J[c+80>>2]=J[b>>2];J[c+84>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+80|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break m;J[c+16>>2]=J[c+88>>2];J[c+88>>2]=0;e=J[c+84>>2];b=J[c+80>>2];J[c+8>>2]=b;J[c+12>>2]=e;J[c+80>>2]=0;J[c+84>>2]=0;J[195395]=0;g=b;b=H[c+19|0];e=(b|0)<0;aa(1864,c+96|0,(e?g:c+8|0)|0,(e?J[c+12>>2]:b&255)|0)|0; -b=J[195395];J[195395]=0;if((b|0)==1)break l;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+91|0]<0)Kb(J[c+80>>2]);if(H[c+47|0]<0)Kb(J[c+36>>2]);if(H[c+75|0]<0)Kb(J[c+64>>2]);if(H[c+59|0]<0)Kb(J[c+48>>2]);d=d+4|0;if((f|0)!=(d|0))continue;break}J[195395]=0;b=aa(1969,c+8|0,426596,c+96|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break g;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;if(H[c+19|0]>=0)break k;Kb(J[c+8>>2])}if(H[c+91|0]>=0)break j;Kb(J[c+80>>2])}if(H[c+ -47|0]>=0)break i;Kb(J[c+36>>2])}if(H[c+75|0]>=0)break h;Kb(J[c+64>>2])}if(H[c+59|0]>=0)break a;Kb(J[c+48>>2]);break a}J[c+88>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[195395]=0;H[c+68|0]=0;J[c+64>>2]=c+80;d=_(1078,24)|0;f=J[195395];J[195395]=0;r:{s:{if((f|0)!=1){J[c+84>>2]=d;J[c+80>>2]=d;J[195395]=0;J[c+88>>2]=d+24;f=ha(1957,c+88|0,b|0,b+24|0,d|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break r;a=Z()|0;J[c+84>>2]=d;break s}a=Z()|0}Kc(c- -64|0);Vb(b);break a}J[c+84>>2]=f;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+ -11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;d=c+80|0;$(1963,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;$(1964,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,d|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,48)|0;f=J[195395];J[195395]=0;if((f|0)==1)break d;J[c+64>>2]=a;J[c+68>>2]=8;J[c+72>>2]=-2147483636;f=J[106663];J[a+24>>2]=J[106662];J[a+28>>2]=f;f=J[106661]; -J[a+16>>2]=J[106660];J[a+20>>2]=f;f=J[106659];J[a+8>>2]=J[106658];J[a+12>>2]=f;f=J[106657];J[a>>2]=J[106656];J[a+4>>2]=f;J[a+32>>2]=0;J[195395]=0;J[c+48>>2]=0;H[c+59|0]=0;ia(1961,b|0,c- -64|0,d|0,c+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+75|0]<0)Kb(J[c+64>>2]);a=J[c+80>>2];if(a){b=a;d=J[c+84>>2];if((b|0)!=(d|0)){while(1){if(H[d-1|0]<0)Kb(J[d-12>>2]);b=d-24|0;if(H[d-13|0]<0)Kb(J[b>>2]);d=b;if((b|0)!=(a|0))continue;break}b=J[c+80>>2]}J[c+84>>2]=a;Kb(b)}if(H[c+ -107|0]>=0)break f;Kb(J[c+96>>2])}xb=c+112|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+75|0]>=0)break b;Kb(J[c+64>>2])}Hc(c+80|0)}if(H[c+107|0]<0)Kb(J[c+96>>2]);ba(a|0);B()}function ega(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,O=0,Q=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;b=J[b+84>>2];n=P(J[b+108>>2],I[c+54>>1]); -g=P(J[b+44>>2],I[c+22>>1]);h=P(n+g|0,6810);i=P(J[b+100>>2],I[c+50>>1]);f=P(J[b+36>>2],I[c+18>>1]);j=P(i+f|0,6810);N=h+P(g,4209)|0;o=P(I[c+6>>1],J[b+12>>2])<<13|1024;g=P(J[b+76>>2],I[c+38>>1]);k=P(J[b+140>>2],I[c+70>>1]);p=g-k|0;r=o+P(p,2896)|0;s=P(g+k|0,6476);O=r+s|0;l=N+O>>11;Q=j+P(f,4209)|0;t=P(I[c+2>>1],J[b+4>>2])<<13|1024;g=P(J[b+68>>2],I[c+34>>1]);f=P(J[b+132>>2],I[c+66>>1]);u=g-f|0;v=t+P(u,2896)|0;w=P(f+g|0,6476);R=v+w|0;m=Q+R>>11;f=P(l+m|0,6810);x=P(J[b+96>>2],I[c+48>>1]);y=P(J[b+32>>2],I[c+ -16>>1]);k=P(x+y|0,6810);g=J[d>>2]+e|0;a=J[a+332>>2]+128|0;m=f+P(m,4209)|0;z=P(J[b+104>>2],I[c+52>>1]);A=P(J[b+40>>2],I[c+20>>1]);B=P(z+A|0,6810);A=B+P(A,4209)|0;S=P(I[c+4>>1],J[b+8>>2])<<13|1024;q=P(J[b+72>>2],I[c+36>>1]);C=P(J[b+136>>2],I[c+68>>1]);T=q-C|0;U=S+P(T,2896)|0;q=P(q+C|0,6476);C=U+q|0;D=A+C>>11;V=P(I[c+8>>1],J[b+16>>2])<<13|1024;E=P(J[b+80>>2],I[c+40>>1]);F=P(J[b+144>>2],I[c+72>>1]);W=E-F|0;X=V+P(W,2896)|0;E=P(E+F|0,6476);F=X+E|0;Y=P(J[b+112>>2],I[c+56>>1]);G=P(J[b+48>>2],I[c+24>>1]); -Z=P(Y+G|0,6810);G=Z+P(G,4209)|0;L=F+G>>11;_=D-L|0;y=k+P(y,4209)|0;$=P(I[c>>1],J[b>>2])<<13|1024;M=P(J[b+64>>2],I[c+32>>1]);b=P(J[b+128>>2],I[c+64>>1]);aa=M-b|0;ba=$+P(aa,2896)|0;M=P(b+M|0,6476);ca=ba+M|0;b=(y+ca<<2&-8192)+131072|0;c=P(_,2896)+b|0;D=P(D+L|0,6476);L=c+D|0;H[g|0]=K[a+(m+L>>>18&1023)|0];H[g+4|0]=K[a+(L-m>>>18&1023)|0];f=f+P(l,-17828)|0;c=c-D|0;H[g+1|0]=K[a+(f+c>>>18&1023)|0];H[g+3|0]=K[a+(c-f>>>18&1023)|0];H[g+2|0]=K[a+(b+P(_,268423872)>>>18&1023)|0];g=h+P(n,-17828)|0;h=r-s|0;f=g+h>> -11;j=j+P(i,-17828)|0;n=v-w|0;i=j+n>>11;c=P(f+i|0,6810);b=J[d+4>>2]+e|0;i=c+P(i,4209)|0;r=P(z,-17828)+B|0;s=U-q|0;l=r+s>>11;v=P(Y,-17828)+Z|0;w=X-E|0;m=v+w>>11;z=l-m|0;k=k+P(x,-17828)|0;x=ba-M|0;B=(k+x<<2&-8192)+131072|0;q=P(z,2896)+B|0;l=P(l+m|0,6476);m=q+l|0;H[b|0]=K[a+(i+m>>>18&1023)|0];H[b+4|0]=K[a+(m-i>>>18&1023)|0];c=c+P(f,-17828)|0;f=q-l|0;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];H[b+2|0]=K[a+(B+P(z,268423872)>>>18&1023)|0];f=o+P(p,-11584)>>11;i=t+P(u,-11584)>>11;c=P(f+ -i|0,6810);b=J[d+8>>2]+e|0;i=c+P(i,4209)|0;u=(P(aa,1073730240)+$<<2&-8192)+131072|0;p=P(T,-11584)+S>>11;o=P(W,-11584)+V>>11;l=p-o|0;t=u+P(l,2896)|0;p=P(p+o|0,6476);o=t+p|0;H[b|0]=K[a+(i+o>>>18&1023)|0];H[b+4|0]=K[a+(o-i>>>18&1023)|0];c=c+P(f,-17828)|0;f=t-p|0;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];H[b+2|0]=K[a+(u+P(l,268423872)>>>18&1023)|0];g=h-g>>11;h=n-j>>11;c=P(g+h|0,6810);b=J[d+12>>2]+e|0;h=c+P(h,4209)|0;k=(x-k<<2&-8192)+131072|0;j=s-r>>11;f=w-v>>11;n=j-f|0;i=k+P(n,2896)| -0;j=P(f+j|0,6476);f=i+j|0;H[b|0]=K[a+(h+f>>>18&1023)|0];H[b+4|0]=K[a+(f-h>>>18&1023)|0];c=c+P(g,-17828)|0;g=i-j|0;H[b+1|0]=K[a+(c+g>>>18&1023)|0];H[b+3|0]=K[a+(g-c>>>18&1023)|0];H[b+2|0]=K[a+(k+P(n,268423872)>>>18&1023)|0];g=O-N>>11;h=R-Q>>11;c=P(g+h|0,6810);b=J[d+16>>2]+e|0;d=c+P(h,4209)|0;f=(ca-y<<2&-8192)+131072|0;e=C-A>>11;h=F-G>>11;j=e-h|0;k=f+P(j,2896)|0;e=P(e+h|0,6476);h=k+e|0;H[b|0]=K[a+(d+h>>>18&1023)|0];H[b+4|0]=K[a+(h-d>>>18&1023)|0];c=c+P(g,-17828)|0;d=k-e|0;H[b+1|0]=K[a+(c+d>>>18&1023)| -0];H[b+3|0]=K[a+(d-c>>>18&1023)|0];H[b+2|0]=K[a+(f+P(j,268423872)>>>18&1023)|0]}function J2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-112|0;xb=d;a:{b:{c:{d:{e:{b=J[c>>2];f=J[c+4>>2];f:{if((b|0)==(f|0))break f;J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{while(1){c=J[b>>2];J[195395]=0;e=d+48|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break q;J[195395]=0;$(1811,e|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break p;J[d+72>>2]=J[d+56>>2];J[d+56>>2]= -0;c=J[d+52>>2];J[d+64>>2]=J[d+48>>2];J[d+68>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;c=J[b+4>>2];J[195395]=0;e=d+36|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break o;J[195395]=0;g=e;c=K[d+47|0];e=c<<24>>24<0;c=aa(1864,d- -64|0,(e?J[d+36>>2]:g)|0,(e?J[d+40>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break n;J[d+88>>2]=J[c+8>>2];e=J[c+4>>2];J[d+80>>2]=J[c>>2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+80|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break m;J[d+16>> -2]=J[d+88>>2];J[d+88>>2]=0;e=J[d+84>>2];c=J[d+80>>2];J[d+8>>2]=c;J[d+12>>2]=e;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;g=c;c=H[d+19|0];e=(c|0)<0;aa(1864,d+96|0,(e?g:d+8|0)|0,(e?J[d+12>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break l;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);b=b+8|0;if((f|0)!=(b|0))continue;break}J[195395]=0;b=aa(1969,d+8|0,402168,d+96|0)|0;c=J[195395];J[195395]=0;if((c| -0)!=1)break g;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;if(H[d+19|0]>=0)break k;Kb(J[d+8>>2])}if(H[d+91|0]>=0)break j;Kb(J[d+80>>2])}if(H[d+47|0]>=0)break i;Kb(J[d+36>>2])}if(H[d+75|0]>=0)break h;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;H[d+68|0]=0;J[d+64>>2]=d+80;c=_(1078,24)|0;f=J[195395];J[195395]=0;r:{s:{if((f|0)!=1){J[d+84>>2]=c;J[d+80>>2]=c;J[195395]=0;J[d+88>> -2]=c+24;f=ha(1957,d+88|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break r;a=Z()|0;J[d+84>>2]=c;break s}a=Z()|0}Kc(d- -64|0);Vb(b);break a}J[d+84>>2]=f;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+80|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]= -0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;f=J[195395];J[195395]=0;if((f|0)==1)break d;J[d+64>>2]=a;J[d+68>>2]=7;J[d+72>>2]=-2147483640;J[a+24>>2]=J[100613];f=J[100612];J[a+16>>2]=J[100611];J[a+20>>2]=f;f=J[100610];J[a+8>>2]=J[100609];J[a+12>>2]=f;f=J[100608];J[a>>2]=J[100607];J[a+4>>2]=f;J[a+28>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,b|0,d- -64|0,c|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);a=J[d+80>>2];if(a){b= -J[d+84>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}c=J[d+80>>2]}J[d+84>>2]=a;Kb(c)}if(H[d+107|0]>=0)break f;Kb(J[d+96>>2])}xb=d+112|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]>=0)break b;Kb(J[d+64>>2])}Hc(d+80|0)}if(H[d+107|0]<0)Kb(J[d+96>>2]);ba(a|0);B()}function I2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-112|0;xb=d;a:{b:{c:{d:{e:{b=J[c>>2];f=J[c+4>> -2];f:{if((b|0)==(f|0))break f;J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{while(1){c=I[b>>1];J[195395]=0;e=d+48|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break q;J[195395]=0;$(1811,e|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break p;J[d+72>>2]=J[d+56>>2];J[d+56>>2]=0;c=J[d+52>>2];J[d+64>>2]=J[d+48>>2];J[d+68>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;c=I[b+2>>1];J[195395]=0;e=d+36|0;da(1863,e|0,+(c|0),-1);c=J[195395];J[195395]=0;if((c|0)==1)break o;J[195395]= -0;g=e;c=K[d+47|0];e=c<<24>>24<0;c=aa(1864,d- -64|0,(e?J[d+36>>2]:g)|0,(e?J[d+40>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break n;J[d+88>>2]=J[c+8>>2];e=J[c+4>>2];J[d+80>>2]=J[c>>2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+80|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break m;J[d+16>>2]=J[d+88>>2];J[d+88>>2]=0;e=J[d+84>>2];c=J[d+80>>2];J[d+8>>2]=c;J[d+12>>2]=e;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;g=c;c=H[d+19|0];e=(c|0)<0;aa(1864,d+96|0,(e?g:d+8|0)|0,(e?J[d+12>>2]: -c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break l;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);b=b+4|0;if((f|0)!=(b|0))continue;break}J[195395]=0;b=aa(1969,d+8|0,402168,d+96|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break g;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;if(H[d+19|0]>=0)break k;Kb(J[d+8>>2])}if(H[d+91|0]>=0)break j;Kb(J[d+ -80>>2])}if(H[d+47|0]>=0)break i;Kb(J[d+36>>2])}if(H[d+75|0]>=0)break h;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;H[d+68|0]=0;J[d+64>>2]=d+80;c=_(1078,24)|0;f=J[195395];J[195395]=0;r:{s:{if((f|0)!=1){J[d+84>>2]=c;J[d+80>>2]=c;J[195395]=0;J[d+88>>2]=c+24;f=ha(1957,d+88|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break r;a=Z()|0;J[d+84>>2]=c;break s}a=Z()|0}Kc(d- -64|0);Vb(b);break a}J[d+84>>2]=f;if(H[b+23|0]<0)Kb(J[b+ -12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+80|0;$(1963,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;f=J[195395];J[195395]=0;if((f|0)==1)break d;J[d+64>>2]=a;J[d+68>>2]=7;J[d+72>>2]=-2147483640;J[a+24>>2]=J[100613];f=J[100612];J[a+ -16>>2]=J[100611];J[a+20>>2]=f;f=J[100610];J[a+8>>2]=J[100609];J[a+12>>2]=f;f=J[100608];J[a>>2]=J[100607];J[a+4>>2]=f;J[a+28>>2]=0;J[195395]=0;J[d+48>>2]=0;H[d+59|0]=0;ia(1961,b|0,d- -64|0,c|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);a=J[d+80>>2];if(a){b=J[d+84>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}c=J[d+80>>2]}J[d+84>>2]=a;Kb(c)}if(H[d+ -107|0]>=0)break f;Kb(J[d+96>>2])}xb=d+112|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+75|0]>=0)break b;Kb(J[d+64>>2])}Hc(d+80|0)}if(H[d+107|0]<0)Kb(J[d+96>>2]);ba(a|0);B()}function g2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-112|0;xb=d;a:{b:{c:{d:{e:{f:{g:{b=J[c>>2];f=J[c+4>>2];h:{if((b|0)==(f|0))break h;J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{while(1){g=O[b>>3];J[195395]=0;c=d+48|0;da(1863,c|0,+g,-1);e=J[195395]; -J[195395]=0;if((e|0)==1)break s;J[195395]=0;$(1811,c|0,44);c=J[195395];J[195395]=0;if((c|0)==1)break r;J[d+72>>2]=J[d+56>>2];J[d+56>>2]=0;c=J[d+52>>2];J[d+64>>2]=J[d+48>>2];J[d+68>>2]=c;J[d+48>>2]=0;J[d+52>>2]=0;g=O[b+8>>3];J[195395]=0;c=d+36|0;da(1863,c|0,+g,-1);e=J[195395];J[195395]=0;if((e|0)==1)break q;J[195395]=0;h=c;c=K[d+47|0];e=c<<24>>24<0;c=aa(1864,d- -64|0,(e?J[d+36>>2]:h)|0,(e?J[d+40>>2]:c)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break p;J[d+88>>2]=J[c+8>>2];e=J[c+4>>2];J[d+80>>2]=J[c>> -2];J[d+84>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,d+80|0,32);c=J[195395];J[195395]=0;if((c|0)==1)break o;J[d+16>>2]=J[d+88>>2];J[d+88>>2]=0;e=J[d+84>>2];c=J[d+80>>2];J[d+8>>2]=c;J[d+12>>2]=e;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]=0;h=c;c=H[d+19|0];e=(c|0)<0;aa(1864,d+96|0,(e?h:d+8|0)|0,(e?J[d+12>>2]:c&255)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break n;if(H[d+19|0]<0)Kb(J[d+8>>2]);if(H[d+91|0]<0)Kb(J[d+80>>2]);if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+75|0]<0)Kb(J[d+64>>2]);if(H[d+59| -0]<0)Kb(J[d+48>>2]);b=b+16|0;if((f|0)!=(b|0))continue;break}J[195395]=0;b=aa(1969,d+8|0,402168,d+96|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break i;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;if(H[d+19|0]>=0)break m;Kb(J[d+8>>2])}if(H[d+91|0]>=0)break l;Kb(J[d+80>>2])}if(H[d+47|0]>=0)break k;Kb(J[d+36>>2])}if(H[d+75|0]>=0)break j;Kb(J[d+64>>2])}if(H[d+59|0]>=0)break a;Kb(J[d+48>>2]);break a}J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[195395]= -0;H[d+68|0]=0;J[d+64>>2]=d+80;c=_(1078,24)|0;f=J[195395];J[195395]=0;t:{u:{if((f|0)!=1){J[d+84>>2]=c;J[d+80>>2]=c;J[195395]=0;J[d+88>>2]=c+24;f=ha(1957,d+88|0,b|0,b+24|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break t;a=Z()|0;J[d+84>>2]=c;break u}a=Z()|0}Kc(d- -64|0);Vb(b);break a}J[d+84>>2]=f;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;c=d+80|0;la(1959,b|0,c|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break g;J[195395]=0;fa(1960,b|0,c|0,0);a=J[195395];J[195395]= -0;if((a|0)==1)break g;J[d+72>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;a=_(1078,32)|0;f=J[195395];J[195395]=0;if((f|0)==1)break e;J[d+48>>2]=a;J[d+52>>2]=7;J[d+56>>2]=-2147483640;J[a+24>>2]=J[100613];f=J[100612];J[a+16>>2]=J[100611];J[a+20>>2]=f;f=J[100610];J[a+8>>2]=J[100609];J[a+12>>2]=f;f=J[100608];J[a>>2]=J[100607];J[a+4>>2]=f;J[a+28>>2]=0;J[195395]=0;J[d+36>>2]=0;H[d+47|0]=0;ia(1961,b|0,d+48|0,c|0,d+36|0);a=J[195395];J[195395]= -0;if((a|0)==1)break d;if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+59|0]<0)Kb(J[d+48>>2]);a=J[d+80>>2];if(a){b=J[d+84>>2];c=a;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);c=b-24|0;if(H[b-13|0]<0)Kb(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}c=J[d+80>>2]}J[d+84>>2]=a;Kb(c)}if(H[d+107|0]>=0)break h;Kb(J[d+96>>2])}xb=d+112|0;return}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;if(H[d+47|0]<0)Kb(J[d+36>>2]);if(H[d+59|0]>=0)break c;Kb(J[d+48>>2])}Hc(d- -64|0)}Hc(d+80|0)}if(H[d+107|0]<0)Kb(J[d+ -96>>2]);ba(a|0);B()}function aZ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-112|0;xb=c;a:{b:{c:{d:{e:{d=J[b>>2];f=J[b+4>>2];f:{if((d|0)==(f|0))break f;J[c+104>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{while(1){b=I[d>>1];J[195395]=0;e=c+48|0;da(1863,e|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break q;J[195395]=0;$(1811,e|0,44);b=J[195395];J[195395]=0;if((b|0)==1)break p;J[c+72>>2]=J[c+56>>2];J[c+56>>2]=0;b=J[c+52>>2];J[c+64>>2]=J[c+48>>2];J[c+68>>2]=b;J[c+48>>2]=0; -J[c+52>>2]=0;b=I[d+2>>1];J[195395]=0;e=c+36|0;da(1863,e|0,+(b|0),-1);b=J[195395];J[195395]=0;if((b|0)==1)break o;J[195395]=0;g=e;b=K[c+47|0];e=b<<24>>24<0;b=aa(1864,c- -64|0,(e?J[c+36>>2]:g)|0,(e?J[c+40>>2]:b)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break n;J[c+88>>2]=J[b+8>>2];e=J[b+4>>2];J[c+80>>2]=J[b>>2];J[c+84>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[195395]=0;$(1811,c+80|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break m;J[c+16>>2]=J[c+88>>2];J[c+88>>2]=0;e=J[c+84>>2];b=J[c+80>>2];J[c+8>>2]= -b;J[c+12>>2]=e;J[c+80>>2]=0;J[c+84>>2]=0;J[195395]=0;g=b;b=H[c+19|0];e=(b|0)<0;aa(1864,c+96|0,(e?g:c+8|0)|0,(e?J[c+12>>2]:b&255)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break l;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+91|0]<0)Kb(J[c+80>>2]);if(H[c+47|0]<0)Kb(J[c+36>>2]);if(H[c+75|0]<0)Kb(J[c+64>>2]);if(H[c+59|0]<0)Kb(J[c+48>>2]);d=d+4|0;if((f|0)!=(d|0))continue;break}J[195395]=0;b=aa(1969,c+8|0,426596,c+96|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)break g;a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break h}a= -Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;if(H[c+19|0]>=0)break k;Kb(J[c+8>>2])}if(H[c+91|0]>=0)break j;Kb(J[c+80>>2])}if(H[c+47|0]>=0)break i;Kb(J[c+36>>2])}if(H[c+75|0]>=0)break h;Kb(J[c+64>>2])}if(H[c+59|0]>=0)break a;Kb(J[c+48>>2]);break a}J[c+88>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[195395]=0;H[c+68|0]=0;J[c+64>>2]=c+80;d=_(1078,24)|0;f=J[195395];J[195395]=0;r:{s:{if((f|0)!=1){J[c+84>>2]=d;J[c+80>>2]=d;J[195395]=0;J[c+88>>2]=d+24;f=ha(1957,c+88|0,b|0,b+24|0,d|0)|0;e=J[195395];J[195395]= -0;if((e|0)!=1)break r;a=Z()|0;J[c+84>>2]=d;break s}a=Z()|0}Kc(c- -64|0);Vb(b);break a}J[c+84>>2]=f;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=a+8|0;d=c+80|0;$(1963,b|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;la(1959,b|0,d|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,d|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;f=J[195395]; -J[195395]=0;if((f|0)==1)break d;J[c+64>>2]=a;J[c+68>>2]=7;J[c+72>>2]=-2147483640;J[a+24>>2]=J[106671];f=J[106670];J[a+16>>2]=J[106669];J[a+20>>2]=f;f=J[106668];J[a+8>>2]=J[106667];J[a+12>>2]=f;f=J[106666];J[a>>2]=J[106665];J[a+4>>2]=f;J[a+28>>2]=0;J[195395]=0;J[c+48>>2]=0;H[c+59|0]=0;ia(1961,b|0,c- -64|0,d|0,c+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+75|0]<0)Kb(J[c+64>>2]);a=J[c+80>>2];if(a){b=a;d=J[c+84>>2];if((b|0)!=(d|0)){while(1){if(H[d-1|0]<0)Kb(J[d- -12>>2]);b=d-24|0;if(H[d-13|0]<0)Kb(J[b>>2]);d=b;if((b|0)!=(a|0))continue;break}b=J[c+80>>2]}J[c+84>>2]=a;Kb(b)}if(H[c+107|0]>=0)break f;Kb(J[c+96>>2])}xb=c+112|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[c+59|0]<0)Kb(J[c+48>>2]);if(H[c+75|0]>=0)break b;Kb(J[c+64>>2])}Hc(c+80|0)}if(H[c+107|0]<0)Kb(J[c+96>>2]);ba(a|0);B()}function DH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=0,l=0,m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=Q(0);d=J[b+28>>2];e=J[d+12>>2];i=Q(0);a:{if(!e)break a;h=J[d>>2];f=c;g=J[d+ -4>>2];if(g){f=sc(g,c);e=J[d+12>>2]}l=f>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;i=Q(0);if(l>>>0>=((g<<8|g>>>8)&65535)>>>0)break a;g=J[d+8>>2];d=h+(l<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;l=f&65535;f=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(f)f=h+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;i=pc(d,l,g,e,f,0)}f=K[a+4|0]|K[a+5|0]<<8;l=(f<<8|f>>>8)<<16>>16;e=J[b+28>>2];f=J[e+12>>2];b:{if(!f)break b;g= -J[e>>2];d=J[e+4>>2];c:{if(d){h=sc(d,(c|0)==-1?-1:c+1|0);f=J[e+12>>2];break c}h=c+1|0}k=h>>>16|0;d=K[g+6|0]|K[g+7|0]<<8;if(k>>>0>=((d<<8|d>>>8)&65535)>>>0)break b;d=J[e+8>>2];e=g+(k<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;k=h&65535;h=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(h)g=g+(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))|0;else g=169776;m=pc(e,k,d,f,g,0)}f=K[a+6|0]|K[a+7|0]<<8;o=Q((f<<8|f>>>8)<<16>>16); -f=K[a+8|0]|K[a+9|0]<<8;n=Q((f<<8|f>>>8)<<16>>16);d=J[b+28>>2];f=J[d+12>>2];j=Q(0);d:{if(!f)break d;h=J[d>>2];e=J[d+4>>2];e:{if(e){e=sc(e,(c|0)==-1?-1:c+2|0);f=J[d+12>>2];break e}e=c+2|0}k=e>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;j=Q(0);if(k>>>0>=((g<<8|g>>>8)&65535)>>>0)break d;g=J[d+8>>2];d=h+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;k=e&65535;e=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(e)e=h+(e<<24|(e&65280)<< -8|(e>>>8&65280|e>>>24))|0;else e=169776;j=pc(d,k,g,f,e,0)}f=K[a+10|0]|K[a+11|0]<<8;p=Q((f<<8|f>>>8)<<16>>16);j=Q(j+n);d=J[b+28>>2];f=J[d+12>>2];f:{if(!f)break f;g=J[d>>2];e=J[d+4>>2];g:{if(e){e=sc(e,(c|0)==-1?-1:c+3|0);f=J[d+12>>2];break g}e=c+3|0}c=K[g+6|0]|K[g+7|0]<<8;h=(c<<8|c>>>8)&65535;c=e>>>16|0;if(h>>>0<=c>>>0)break f;d=J[d+8>>2];c=g+(c<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;h=e&65535;e=K[g+2|0]|K[g+3|0]<< -8|(K[g+4|0]<<16|K[g+5|0]<<24);if(e)g=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else g=169776;q=pc(c,h,d,f,g,0)}f=J[b+12>>2];c=J[b+8>>2];n=Q(q+p);e=j!=Q(0)|n!=Q(0);if(e){g=J[c+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[g|0](c,f,Q(1),Q(0),Q(0),Q(1),j,n,d);f=J[b+12>>2];c=J[b+8>>2]}i=Q(Q(i+Q(l|0))*Q(6.103515625E-5));m=Q(Q(m+o)*Q(6.103515625E-5));g=i!=Q(0)|m!=Q(0);if(g){i=Xm(Q(i*Q(-3.1415927410125732)));m=Xm(Q(m*Q(3.1415927410125732)));h=J[c+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[h|0](c, -f,Q(1),m,i,Q(1),Q(0),Q(0),d);f=J[b+12>>2];c=J[b+8>>2]}if(e){h=J[c+12>>2];i=Q(-j);j=Q(-n);d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[h|0](c,f,Q(1),Q(0),Q(0),Q(1),i,j,d)}c=J[b+104>>2];h:{if((c|0)<=0)break h;f=J[b+108>>2];if((f|0)<=0)break h;d=K[a+3|0];h=K[a+2|0];l=K[a+1|0];J[b+108>>2]=f-1;J[b+104>>2]=c-1;c=a;a=d|(l<<16|h<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}if(e){a=J[b+8>>2];f=J[a+16>>2];d=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[f|0](a,d,c)}if(g){a=J[b+8>>2];f=J[a+16>>2];d=J[b+ -12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[f|0](a,d,c)}if(e){a=J[b+8>>2];c=J[a+16>>2];f=J[b+12>>2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,f,b)}}function Eo(a){a=a|0;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;i=xb-32|0;xb=i;j=K[a+4|0]|K[a+5|0]<<8;l=j<<8|j>>>8;o=l&65535;e=vc(1,P(o,28)+16|0);a:{if(!e)break a;J[i+28>>2]=0;J[i+20>>2]=0;J[i+24>>2]=-1;J[i+12>>2]=0;h=e+16|0;J[i+16>>2]=h;b:{c:{if(!j)break c;m=a+4|0;c=K[a|0]|K[a+1|0]<<8;g=(c<<8|c>>>8)&65535;c=l&65535;n=c>>> -0<=1?1:c;while(1){c=K[m|0]|K[m+1|0]<<8;c=((c<<8|c>>>8)&65535)>>>0<=f>>>0?169776:((f<<1)+m|0)+2|0;c=K[c|0]|K[c+1|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;d=i+12|0;b=g;d:{e:{f:{while(1){g:{if((b|0)!=7){h:switch(b-1|0){case 0:i:{j:{k:{b=K[c|0]|K[c+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 1:break j;case 0:break k;default:break i}}b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=814;J[b+8>>2]=815;J[b+4>>2]=816;J[b>>2]=c;J[b+24>>2]=0;b=b+16|0;d=K[c+2| -0]|K[c+3|0]<<8;if(!d){$d(169776,b);break i}$d(((d<<8|d>>>8)&65535)+c|0,b);break i}b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=817;J[b+8>>2]=818;J[b+4>>2]=819;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(b)c=((b<<8|b>>>8)&65535)+c|0;else c=169776;$d(c,d)}break d;case 1:if((K[c|0]|K[c+1|0]<<8)!=256)break d;b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=802;J[b+8>>2]=803;J[b+4>>2]=804;J[b>>2]=c;J[b+24>>2]=0;d= -b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(!b)break f;break e;case 2:if((K[c|0]|K[c+1|0]<<8)!=256)break d;b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=805;J[b+8>>2]=806;J[b+4>>2]=807;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(!b)break f;break e;case 3:if((K[c|0]|K[c+1|0]<<8)!=256)break d;b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=808;J[b+8>>2]=809;J[b+4>>2]=810;J[b>>2]=c;J[b+24>>2]=0;d=b+16|0;b=K[c+2|0]|K[c+3|0]<< -8;if(!b)break f;break e;case 4:QG(c,d);break d;case 7:break g;case 5:break h;default:break d}PG(c,d);break d}if((K[c|0]|K[c+1|0]<<8)!=256)break d;b=K[c+2|0]|K[c+3|0]<<8;b=(b<<8|b>>>8)&65535;k=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if(k)c=(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24))+c|0;else c=169776;continue}break}if((K[c|0]|K[c+1|0]<<8)!=256)break d;b=J[d+8>>2];J[d+8>>2]=b+1;b=J[d+4>>2]+P(b,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=811;J[b+8>>2]=812;J[b+4>>2]=813;J[b>>2]=c;J[b+24>>2]=0;d= -b+16|0;b=K[c+2|0]|K[c+3|0]<<8;if(b)c=((b<<8|b>>>8)&65535)+c|0;else c=169776;$d(c,d);break d}$d(169776,d);break d}$d(((b<<8|b>>>8)&65535)+c|0,d)}f=f+1|0;if((n|0)!=(f|0))continue;break}J[e>>2]=0;J[e+4>>2]=0;f=0;J[e+8>>2]=0;if(!j)break c;a=P(o,28)-28|0;g=(a>>>0)/28|0;if(a>>>0<28){b=0;a=0;break b}d=g+1&536870910;b=0;a=0;c=0;while(1){a=J[h+16>>2]|a;J[e>>2]=a;b=J[h+20>>2]|b;J[e+4>>2]=b;f=J[h+24>>2]|f;J[e+8>>2]=f;a=a|J[h+44>>2];J[e>>2]=a;b=b|J[h+48>>2];J[e+4>>2]=b;f=f|J[h+52>>2];J[e+8>>2]=f;h=h+56|0;c=c+ -2|0;if((d|0)!=(c|0))continue;break}break b}J[e+12>>2]=J[i+24>>2];break a}if(!(g&1)){J[e>>2]=J[h+16>>2]|a;J[e+4>>2]=J[h+20>>2]|b;J[e+8>>2]=J[h+24>>2]|f}c=J[i+24>>2];J[e+12>>2]=c;if(!j)break a;f=0;if((l&65535)>>>0>=2){b=n&65534;a=0;while(1){if((c|0)!=(f|0)){g=P(f,28)+e|0;J[g+24>>2]=J[g+20>>2]}g=f|1;if((g|0)!=(c|0)){g=P(g,28)+e|0;J[g+24>>2]=J[g+20>>2]}f=f+2|0;a=a+2|0;if((b|0)!=(a|0))continue;break}}if(!(n&1)|(c|0)==(f|0))break a;a=P(f,28)+e|0;J[a+24>>2]=J[a+20>>2]}xb=i+32|0;return e|0}function c9(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=xb-96|0;xb=f;J[f+88>>2]=e;J[f+92>>2]=d;h=J[a+8>>2];l=Ab[J[J[h>>2]+52>>2]](h)|0;h=J[a+8>>2];q=0,r=Ab[J[J[h>>2]+24>>2]](h)|0,p=J[J[0]+24>>2],Ab[p](q|0,r|0);Ab[J[J[l>>2]+68>>2]](l,0);Ab[J[J[0]+460>>2]](0,l);if((e|0)==-1){Ab[J[J[a>>2]+36>>2]](a,f+24|0,f+8|0,f+80|0,f+72|0);i=O[f+80>>3];if(i<0){i=-i;O[f+80>>3]=i}j=O[f+72>>3];j=j<0?-j:j;d=J[f+92>>2];if((d|0)<0){m=i*96/25.4;a:{if(R(m)<2147483648){d=~~m;break a}d= --2147483648}J[f+92>>2]=d}i=j*+(d|0)/i;b:{if(R(i)<2147483648){e=~~i;break b}e=-2147483648}J[f+88>>2]=e}i=+(d|0);O[f+80>>3]=i*25.4/96;j=+(e|0);O[f+72>>3]=j*25.4/96;c:{d:{e:{f:{g:{h=Qb(P(d,e)<<2);h:{if(!h){m=2E3/+(((d|0)>(e|0)?d:e)|0);j=m*j;i:{if(R(j)<2147483648){e=~~j;break i}e=-2147483648}J[f+88>>2]=e;i=m*i;j:{if(R(i)<2147483648){d=~~i;break j}d=-2147483648}J[f+92>>2]=d;O[f+80>>3]=+(d|0)*25.4/96;O[f+72>>3]=+(e|0)*25.4/96;h=Qb(P(d,e)<<2);if(!h)break h}k=P(d,e);k:{if((k|0)<=0)break k;d=0;if(k>>>0>=8){o= -k&-8;while(1){e=d<<2;J[e+h>>2]=16777215;J[(e|4)+h>>2]=16777215;J[(e|8)+h>>2]=16777215;J[(e|12)+h>>2]=16777215;J[(e|16)+h>>2]=16777215;J[(e|20)+h>>2]=16777215;J[(e|24)+h>>2]=16777215;J[(e|28)+h>>2]=16777215;d=d+8|0;n=n+8|0;if((n|0)!=(o|0))continue;break}}e=k&7;if(!e)break k;while(1){J[(d<<2)+h>>2]=16777215;d=d+1|0;g=g+1|0;if((e|0)!=(g|0))continue;break}}d=f+24|0;J[d>>2]=0;J[d+4>>2]=0;H[d+40|0]=0;J[d+32>>2]=0;J[d+36>>2]=-1074790400;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;H[d+24|0]=0;H[d+25|0]=0;H[d+26| -0]=0;H[d+27|0]=0;H[d+28|0]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[195395]=0;J[d+16>>2]=h;e=J[195395];J[195395]=0;if((e|0)==1)break f;J[195395]=0;J[d+4>>2]=J[f+92>>2];e=J[195395];J[195395]=0;if((e|0)==1)break f;J[195395]=0;J[d+8>>2]=J[f+88>>2];e=J[195395];J[195395]=0;if((e|0)==1)break f;J[195395]=0;J[f+8>>2]=0-(J[f+92>>2]<<2);e=f+8|0;J[d+12>>2]=J[e>>2];g=J[195395];J[195395]=0;if((g|0)==1)break g;g=J[J[0]+488>>2];J[195395]=0;$(g|0,0,d|0);g=J[195395];J[195395]=0;if((g|0)==1)break f;g= -J[J[0]+480>>2];J[195395]=0;$(g|0,0,0);g=J[195395];J[195395]=0;if((g|0)==1)break f;g=J[J[0]+36>>2];J[195395]=0;ca(g|0,0,f+80|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break f;g=J[J[0]+28>>2];J[195395]=0;ca(g|0,0,f+72|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break f;g=J[J[a>>2]+28>>2];J[195395]=0;tb(g|0,a|0,0,0,0,+O[f+80>>3],+O[f+72>>3])|0;a=J[195395];J[195395]=0;if((a|0)==1)break f;a=id(b);if(a>>>0>=1073741808){J[195395]=0;ea(1800,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;break c}l:{if(a>>>0<= -1){H[f+19|0]=a;g=f+8|0;break l}e=a|3;if(e>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break c;break e}J[195395]=0;e=e+1|0;g=_(1078,e<<2)|0;k=J[195395];J[195395]=0;if((k|0)==1)break e;J[f+8>>2]=g;J[f+12>>2]=a;J[f+16>>2]=e|-2147483648}a=a<<2;p=Mb(g,b,a)+a|0,r=0,J[p>>2]=r;J[195395]=0;aa(1801,d|0,f+8|0,c|0)|0;a=J[195395];J[195395]=0;m:{if((a|0)!=1){if(H[f+19|0]<0)Kb(J[f+8>>2]);J[195395]=0;J[d+16>>2]=0;a=J[195395];J[195395]=0;if((a|0)==1)break f;a=J[J[l>>2]+12>>2];J[195395]= -0;_(a|0,l|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break m;break f}h=Z()|0;if(H[f+19|0]>=0)break d;Kb(J[f+8>>2]);break d}a=J[J[0]+12>>2];J[195395]=0;_(a|0,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break f;Kb(h);kd(d)}xb=f+96|0;return}h=Z()|0;break d}h=Z()|0;break d}h=Z()|0}kd(d);ba(h|0);B()}B()}function nG(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;r=xb-224|0;xb=r;a:{b:{if(!nc(c,b,106102,0))break b;c:{if(!(K[c+16|0]&64))break c;J[c+144>>2]=J[c+144>>2]|32;e=J[c+ -68>>2];if(!e)break c;i=J[c+80>>2];if(e>>>0>=4){k=e&-4;while(1){h=i+P(f,20)|0;J[h+4>>2]=J[h+4>>2]|2;h=i+P(f|1,20)|0;J[h+4>>2]=J[h+4>>2]|2;h=i+P(f|2,20)|0;J[h+4>>2]=J[h+4>>2]|2;h=i+P(f|3,20)|0;J[h+4>>2]=J[h+4>>2]|2;f=f+4|0;g=g+4|0;if((k|0)!=(g|0))continue;break}}e=e&3;if(!e)break c;while(1){g=i+P(f,20)|0;J[g+4>>2]=J[g+4>>2]|2;f=f+1|0;j=j+1|0;if((e|0)!=(j|0))continue;break}}e=Cf(r+8|0,1,b,c,169776);J[e+208>>2]=-1;J[e+212>>2]=0;J[e+176>>2]=d;i=J[J[e+88>>2]+68>>2];J[e+184>>2]=8;J[e+36>>2]=i;J[e+8>>2]= -e;J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;H[e+21|0]=K[e+194|0];f=J[e+76>>2];g=(f|0)==1;H[e+20|0]=g;J[e+12>>2]=8;J[e+72>>2]=i;J[e+44>>2]=e;H[e+23|0]=0;J[e+16>>2]=d;i=!f&K[e+195|0]!=0;H[e+22|0]=i;k=K[e+193|0];J[e+60>>2]=0;J[e+64>>2]=0;J[e+68>>2]=0;H[e+57|0]=1;H[e+56|0]=g?1:k;H[e+58|0]=i&(f|0)!=1;J[e+48>>2]=8;J[e+52>>2]=-1;H[e+59|0]=0;s=J[c+68>>2];if(s){k=J[c+88>>2];t=J[c+80>>2];u=(J[c+40>>2]&-2)!=4;i=0;while(1){d:{e:{p=P(i,20);q=p+t|0;if(!(J[q+4>>2]&d))break e;J[e+4>>2]=i;f=J[J[e+8>>2]+88>>2];g=J[f+ -68>>2];J[e+36>>2]=g;H[e+23|0]=K[e+22|0]?J[f+64>>2]==(i|0)?K[(p+J[f+80>>2]|0)+15|0]:0:0;f=i;l=g-1|0;if((f|0)>=(l|0))break e;f:{while(1){g:{g=f+1|0;J[e+4>>2]=g;h:{f=J[e+12>>2];j=J[e+8>>2];h=J[J[j+88>>2]+80>>2]+P(g,20)|0;g=L[h+12>>1];i:{if(f&g&14)break i;j:{if(!(g&8))break j;if(f&16){g=J[j+148>>2];j=J[h>>2];J[195395]=0;f=jf(g,f>>>16|0,j);g=J[195395];J[195395]=0;if((g|0)==1)break g;if(f)break j;break i}f=f&65280;if(!f)break j;if((f|0)!=(g&65280))break i}j=1;f=L[h+16>>1];if(!(K[h+12|0]&16|(f&96)!=32|!K[e+ -20|0]&(f&543)==513))j=!K[e+21|0]&(f&287)==257;g=J[e+32>>2];if(g){f=K[g|0]|K[g+1|0]<<8;f=(f<<8|f>>>8)&65535}else f=0;if(!(J[e+16>>2]&J[h+4>>2]))break h;m=K[e+23|0];if((m|0)!=K[h+15|0]?m:0)break h;m=J[e+24>>2];if(m){g=J[e+28>>2];J[195395]=0;f=aa(m|0,h|0,f|0,g|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break g;if(!f)break h;g=J[e+32>>2];break f}if(j)break f}f=J[e+4>>2];if((l|0)<=(f|0))break e;continue}f=J[e+4>>2];if(!((l|0)<=(f|0)|j))continue;break e}break}break a}if(g)J[e+32>>2]=g+2;m=J[e+4>>2];g=P(m, -20);n=J[g+t>>2];q=J[q>>2];l=J[a>>2];j=J[l>>2];o=J[j+120>>2];h=J[j+116>>2];f=J[h+12>>2];k:{l:{if((J[l+4>>2]&-2)==4){l=J[h- -64>>2];h=0;if(!f)break k;h=f+44|0;break l}l=J[h+68>>2];h=0;if(!f)break k;h=f+48|0}h=J[h>>2]}J[195395]=0;f=ka(l|0,j|0,o|0,q|0,n|0,h|0)|0;h=J[195395];J[195395]=0;m:{if((h|0)==1)break m;if(f){n:{if(!u){if(K[a+4|0]){J[(g+k|0)+12>>2]=f;J[c+144>>2]=J[c+144>>2]|8;break n}h=k+p|0;o=h;n=J[h>>2];h=f>>1;J[o>>2]=n+h;g=g+k|0;f=f-h|0;J[g>>2]=f+J[g>>2];J[g+8>>2]=f+J[g+8>>2];break n}if(K[a+4| -0]){J[(g+k|0)+8>>2]=f;J[c+144>>2]=J[c+144>>2]|8;break n}h=k+p|0;o=h;n=J[h+4>>2];h=f>>1;J[o+4>>2]=n+h;g=g+k|0;f=f-h|0;J[g+4>>2]=f+J[g+4>>2];J[g+12>>2]=f+J[g+12>>2]}J[195395]=0;Ac(c,3,i,m+1|0,1,0);i=J[195395];J[195395]=0;if((i|0)==1)break m}i=J[e+4>>2];break d}break a}i=i+1|0}if(s>>>0>i>>>0)continue;break}}J[195395]=0;ha(594,c|0,b|0,106231,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;Kb(J[e+156>>2]);a=J[e+128>>2];if(!a)break b;J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)!=1)break b; -ga(0)|0;_b();B()}xb=r+224|0;return}a=Z()|0;wi(e);ba(a|0);B()}function Yu(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;f=xb-1312|0;xb=f;k=J[a+4>>2];l=J[k+328>>2];J[f+1308>>2]=0;o=J[k+136>>2];p=J[k+100>>2];m=J[J[k+128>>2]+52>>2];a:{b:{if(m){c=Ab[J[J[m>>2]>>2]](J[m+4>>2],b,f+652|0)|0;J[f+1308>>2]=c;if(c)break a;j=J[k+288>>2];c=j&255;c:{if(!c)break c;l=j&3;e=J[f+652>>2];if(c>>>0<4)d=0;else{n=j&252;while(1){c=e;e=c+4|0;d=d+4|0;if((n|0)!=(d&255))continue;break}c= -K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(!l)break c;while(1){d=K[e|0]|d<<8;e=e+1|0;i=i+1|0;if((l|0)!=(i&255))continue;break}}e=J[f+656>>2];d:{if(!e){e=0;break d}h=e-j|0;e=tc(p,h,f+1308|0);if(J[f+1308>>2])break d;Mb(e,J[f+652>>2]+J[k+288>>2]|0,h)}Ab[J[J[m>>2]+4>>2]](J[m+4>>2],f+652|0);if(!J[f+1308>>2])break b;break a}c=J[k+292>>2]+J[k+288>>2]|0;j=bc(l,(J[k+284>>2]+J[k+308>>2]|0)+P(c,b)|0);J[f+1308>>2]=j;if(j)break a;c=Tc(l,c<<1);J[f+1308>>2]=c;if(c)break a; -c=J[l+32>>2];n=J[k+288>>2];g=n&255;if(g){e=c;if(g>>>0>=4){j=n&252;while(1){g=e;e=e+4|0;d=d+4|0;if((j|0)!=(d&255))continue;break}d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}g=n&3;if(g)while(1){d=K[e|0]|d<<8;e=e+1|0;h=h+1|0;if((g|0)!=(h&255))continue;break}c=(n&255)+c|0}h=0;j=K[k+292|0];e:{if(!j)break e;e=c;if(j>>>0>=4){q=j&252;g=0;while(1){i=e;e=e+4|0;g=g+4|0;if((q|0)!=(g&255))continue;break}g=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=g<<24|(g& -65280)<<8|(g>>>8&65280|g>>>24)}g=j&3;if(g)while(1){i=K[e|0]|i<<8;e=e+1|0;h=h+1|0;if((g|0)!=(h&255))continue;break}q=j&3;e=(c+j|0)+n|0;g=0;if(j>>>0<4)h=0;else{j=j&252;h=0;while(1){c=e;e=c+4|0;h=h+4|0;if((j|0)!=(h&255))continue;break}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(!q)break e;while(1){h=K[e|0]|h<<8;e=e+1|0;g=g+1|0;if((q|0)!=(g&255))continue;break}}Ec(l);f:{g:{if(!(!(M[l+4>>2]>>0|M[k+300>>2]<=d>>>0)&h>>>0>=i>>>0)){J[f+1308>>2]=9;break g}h= -h-i|0;if(h)break f}g=0;e=0;break a}g=0;e=tc(p,h,f+1308|0);if(J[f+1308>>2])break a;c=Mn(l,J[k+308>>2]+i|0,e,h);J[f+1308>>2]=c;if(c)break a}c=J[k+316>>2]+(d<<3)|0;J[a+1364>>2]=J[c>>2];c=J[c+4>>2];J[a+1372>>2]=0;J[a+1376>>2]=0;J[a+1368>>2]=c;c=J[k+304>>2]+P(d,252)|0;d=J[c+220>>2];J[a+1380>>2]=J[c+216>>2];J[a+1384>>2]=d;i=J[c+228>>2];d=a+1388|0;J[d>>2]=J[c+224>>2];J[d+4>>2]=i;d=J[c+236>>2];J[a+1396>>2]=J[c+232>>2];J[a+1400>>2]=d;d=J[c+4>>2];J[a+1360>>2]=d;i=(d|0)>=0;d=i?d:0;if(d>>>0<=h>>>0){if(i)Ab[J[o+ -16>>2]](e,h,4330);h:{if(K[a+70|0]){d=Ab[J[J[o+12>>2]+8>>2]](a,e+d|0,h-d|0)|0;J[f+1308>>2]=d;g=0;break h}i=f+652|0;Ab[J[o+24>>2]](i,a,1);Ab[J[o+28>>2]](k,c,f);J[f+1188>>2]=f;c=e+d|0;h=h-d|0;d=Ab[J[J[o+12>>2]+12>>2]](i,c,h)|0;J[f+1308>>2]=d;g=0;if((d&255)!=164)break h;H[J[a+8>>2]+160|0]=0;d=Ab[J[J[o+12>>2]+12>>2]](i,c,h)|0;J[f+1308>>2]=d;g=1}if(!J[J[m>>2]+8>>2]|(d|!m))break a;c=J[a+32>>2];J[f+656>>2]=0;J[f+652>>2]=((c+(c>>31)|0)+32768&-65536)>>16;c=J[a+40>>2];J[f+660>>2]=(((c>>31)+c|0)+32768&-65536)>> -16;c=J[a+44>>2];J[f+664>>2]=(((c>>31)+c|0)+32768&-65536)>>16;r=f,s=Ab[J[J[m>>2]+8>>2]](J[m+4>>2],b,0,f+652|0)|0,J[r+1308>>2]=s;J[a+32>>2]=J[f+652>>2]<<16;J[a+40>>2]=J[f+660>>2]<<16;J[a+44>>2]=J[f+664>>2]<<16;break a}J[f+1308>>2]=9}if(e)Ab[J[p+8>>2]](p,e);H[J[a+8>>2]+161|0]=g;xb=f+1312|0;return J[f+1308>>2]}function IH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=0,l=0,m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=Q(0);d=J[b+28>>2];e=J[d+12>>2];j=Q(0);a:{if(!e)break a;h=J[d>>2];f=c;g=J[d+4>>2];if(g){f=sc(g,c);e= -J[d+12>>2]}l=f>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;j=Q(0);if(l>>>0>=((g<<8|g>>>8)&65535)>>>0)break a;g=J[d+8>>2];d=h+(l<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;l=f&65535;f=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(f)f=h+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;j=pc(d,l,g,e,f,0)}f=K[a+4|0]|K[a+5|0]<<8;l=(f<<8|f>>>8)<<16>>16;e=J[b+28>>2];f=J[e+12>>2];b:{if(!f)break b;g=J[e>>2];d=J[e+4>>2];c:{if(d){h= -sc(d,(c|0)==-1?-1:c+1|0);f=J[e+12>>2];break c}h=c+1|0}k=h>>>16|0;d=K[g+6|0]|K[g+7|0]<<8;if(k>>>0>=((d<<8|d>>>8)&65535)>>>0)break b;d=J[e+8>>2];e=g+(k<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;k=h&65535;h=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(h)g=g+(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))|0;else g=169776;n=pc(e,k,d,f,g,0)}f=K[a+6|0]|K[a+7|0]<<8;o=Q((f<<8|f>>>8)<<16>>16);f=K[a+8|0]|K[a+9|0]<<8;m=Q((f<< -8|f>>>8)<<16>>16);d=J[b+28>>2];f=J[d+12>>2];i=Q(0);d:{if(!f)break d;h=J[d>>2];e=J[d+4>>2];e:{if(e){e=sc(e,(c|0)==-1?-1:c+2|0);f=J[d+12>>2];break e}e=c+2|0}k=e>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;i=Q(0);if(k>>>0>=((g<<8|g>>>8)&65535)>>>0)break d;g=J[d+8>>2];d=h+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;k=e&65535;e=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e= -169776;i=pc(d,k,g,f,e,0)}f=K[a+10|0]|K[a+11|0]<<8;p=Q((f<<8|f>>>8)<<16>>16);i=Q(i+m);d=J[b+28>>2];f=J[d+12>>2];f:{if(!f)break f;g=J[d>>2];e=J[d+4>>2];g:{if(e){e=sc(e,(c|0)==-1?-1:c+3|0);f=J[d+12>>2];break g}e=c+3|0}c=K[g+6|0]|K[g+7|0]<<8;h=(c<<8|c>>>8)&65535;c=e>>>16|0;if(h>>>0<=c>>>0)break f;d=J[d+8>>2];c=g+(c<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;h=e&65535;e=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(e)g= -g+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else g=169776;q=pc(c,h,d,f,g,0)}f=J[b+12>>2];c=J[b+8>>2];m=Q(q+p);e=i!=Q(0)|m!=Q(0);if(e){g=J[c+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[g|0](c,f,Q(1),Q(0),Q(0),Q(1),i,m,d);f=J[b+12>>2];c=J[b+8>>2]}j=Q(Q(j+Q(l|0))*Q(6.103515625E-5));n=Q(Q(n+o)*Q(6.103515625E-5));g=j!=Q(1)|n!=Q(1);if(g){h=J[c+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[h|0](c,f,j,Q(0),Q(0),n,Q(0),Q(0),d);f=J[b+12>>2];c=J[b+8>>2]}if(e){h=J[c+12>>2];i=Q(-i);j=Q(-m);d=J[c+68>>2]; -if(d)d=J[d>>2];else d=0;Ab[h|0](c,f,Q(1),Q(0),Q(0),Q(1),i,j,d)}c=J[b+104>>2];h:{if((c|0)<=0)break h;f=J[b+108>>2];if((f|0)<=0)break h;d=K[a+3|0];h=K[a+2|0];l=K[a+1|0];J[b+108>>2]=f-1;J[b+104>>2]=c-1;c=a;a=d|(l<<16|h<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}if(e){a=J[b+8>>2];f=J[a+16>>2];d=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[f|0](a,d,c)}if(g){a=J[b+8>>2];f=J[a+16>>2];d=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[f|0](a,d,c)}if(e){a=J[b+8>>2];c=J[a+16>>2];f=J[b+12>> -2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,f,b)}}function xr(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,K=0,M=0,N=0,O=0,Q=0,R=0;if(!a)return 20;w=(c|0)/2|0;x=(b|0)/2|0;a:{if(c+1>>>0<3&b+1>>>0<=2)break a;y=hD(a);if((y|0)==2)return(L[a>>1]?6:0)|0;F=I[a>>1];if((F|0)<=0)break a;D=J[a+4>>2];g=w>>31;z=(g^w)-g|0;O=z>>>16|0;G=z&65535;g=x>>31;A=(g^x)-g|0;Q=A>>>16|0;H=A&65535;R=J[a+12>>2]; -while(1){v=I[(E<<1)+R>>1];b:{if((v|0)==(B|0))break b;C=-1;u=B;K=0;e=0;M=0;N=0;p=0;j=0;a=v;if((a|0)==-1)break b;while(1){h=N;i=M;g=K;c:{if((u|0)!=(C|0)){h=(u<<3)+D|0;r=J[h+4>>2];i=(a<<3)+D|0;d=J[i+4>>2];n=r-d|0;g=n>>31;g=(g^n)-g|0;h=J[h>>2];i=J[i>>2];d:{if((h|0)==(i|0)){if((d|0)==(r|0))break c;i=0;h=(n|0)<0?-65536:65536;break d}k=h-i|0;i=k>>31;f=(i^k)-i|0;if((d|0)==(r|0)){h=0;i=(k|0)<0?-65536:65536;g=f;break d}h=f>>>0>g>>>0?f+(g>>>1|0)|0:(f>>>1|0)+g|0;i=S(h);l=(-1431655766>>>i>>>0>h>>>0?-15:-16)+i| -0;d=(l|0)<=0;e:{if(!d){s=f<>>0>>0?s+(m>>>1|0)|0:(s>>>1|0)+m|0;break e}i=0-l|0;h=h>>>i|0;m=g>>>i|0;s=f>>>i|0}h=65536-h|0;while(1){r=(P(h,s)>>16)+s|0;f=(P(h,m)>>16)+m|0;g=P((P(r,r)+P(f,f)|0)/-512|0,h+65536>>8);h=(g>>>16|0)+h|0;if((g|0)>65535)continue;break}h=(n|0)<0?0-f|0:f;i=(k|0)<0?0-r|0:r;g=((P(s,r)+P(f,m)|0)/65536|0)+65536|0;if(!d){g=g+(1<>>l|0;break d}g=g<<0-l}if(!g)break c}f:{if(!e)break f;if((C|0)<0){M=p;C=a;K=e;N=j}f=0;d=i>>31;o=(d^i)-d|0;d=p>>31;l=(d^p)-d|0;g:{if((o>>> -8|0)+l>>>0<=8190){k=P(l,o)+32768>>>16|0;break g}d=l&65535;k=P(d,o>>>16|0)+P(o,l>>>16|0)+(P(d,o&65535)+32768>>>16)|0}d=k;q=0-d|0;d=p>>31|1;t=(((i|0)<0?0-d|0:d)|0)<0?q:k;d=h>>31;m=(d^h)-d|0;d=j>>31;n=(d^j)-d|0;h:{if((m>>>8|0)+n>>>0<=8190){k=P(m,n)+32768>>>16|0;break h}d=n&65535;k=P(d,m>>>16|0)+P(m,n>>>16|0)+(P(d,m&65535)+32768>>>16)|0}d=k;q=0-d|0;d=j>>31|1;s=t+((((h|0)<0?0-d|0:d)|0)<0?q:k)|0;d=0;i:{if((s|0)<-61439)break i;if(o+(n>>>8|0)>>>0<=8190)d=P(o,n)+32768>>>16|0;else{f=o&65535;d=P(f,n>>>16|0)+ -P(n,o>>>16|0)+(P(f,n&65535)+32768>>>16)|0}f=d;k=0-f|0;f=i>>31|1;f=(((j|0)<0?0-f|0:f)|0)<0?k:d;d=h+j|0;t=s+65536|0;if(m+(l>>>8|0)>>>0<=8190)k=P(l,m)+32768>>>16|0;else{j=m&65535;k=P(j,l>>>16|0)+P(l,m>>>16|0)+(P(j,l&65535)+32768>>>16)|0}j=k;q=0-j|0;j=h>>31|1;f=f+((((p|0)<0?0-j|0:j)|0)<0?k:q)|0;m=y?f:0-f|0;l=(e|0)<(g|0)?e:g;j=0-d|0;e=f>>31;q=(e^f)-e|0;n=q>>>8|0;j:{if(n+A>>>0<=8190){e=P(q,A)+32768>>>16|0;break j}e=P(q>>>16|0,H)+P(q,Q)+(P(q&65535,H)+32768>>>16)|0}f=y?d:j;k=(m|0)<0;j=k^(b|0)<-1?0-e|0:e; -e=l>>31;o=(e^l)-e|0;r=o+(t>>>8|0)>>>0>8190;k:{if(!r){e=P(o,t)+32768>>>16|0;break k}e=o&65535;e=P(e,t>>>16|0)+P(t,o>>>16|0)+(P(e,s&65535)+32768>>>16)|0}d=(l|0)<0;l:{if((j|0)<=((d?0-e|0:e)|0)){f=hc(f,x,t);break l}f=hc(f,l,m)}e=i+p|0;p=y?0-e|0:e;if(n+z>>>0<=8190)e=P(q,z)+32768>>>16|0;else e=P(q>>>16|0,G)+P(q,O)+(P(q&65535,G)+32768>>>16)|0;j=(c|0)<-1^k?0-e|0:e;if(r){e=o&65535;e=P(e,t>>>16|0)+P(t,o>>>16|0)+(P(e,s&65535)+32768>>>16)|0}else e=P(o,t)+32768>>>16|0;if((j|0)<=((d?0-e|0:e)|0)){d=hc(p,w,t);break i}d= -hc(p,l,m)}k=d;if((a|0)==(u|0))break f;j=k+w|0;e=f+x|0;while(1){p=(a<<3)+D|0;J[p>>2]=e+J[p>>2];J[p+4>>2]=j+J[p+4>>2];a=(a|0)<(v|0)?a+1|0:B;if((u|0)!=(a|0))continue;break}}j=h;p=i;e=g;a=u}u=(u|0)<(v|0)?u+1|0:B;if((u|0)==(a|0))break b;if((a|0)!=(C|0))continue;break}}B=v+1|0;E=E+1|0;if((F|0)!=(E|0))continue;break}}return 0}function bea(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,u=0,v=0;Nb(a+160|0,0,96);d=a;while(1){f=J[(g<<2)+b>>2]+c|0;j=K[f+4|0]; -k=K[f+5|0];e=j-k|0;l=K[f|0];n=K[f+9|0];h=l-n|0;s=e+h|0;o=K[f+2|0];t=K[f+7|0];u=o-t|0;p=K[f+1|0];q=K[f+8|0];i=p-q|0;r=K[f+3|0];v=K[f+6|0];f=r-v|0;m=i-f|0;J[d+20>>2]=s-(u+m|0)<<2;j=j+k|0;k=l+n|0;l=j+k|0;r=r+v|0;p=p+q|0;q=r+p|0;o=o+t|0;J[d>>2]=(l+(q+o|0)<<2)-5120;n=o<<1;J[d+16>>2]=(P(q-n|0,-3580)+P(l-n|0,9373)|0)+1024>>11;k=k-j|0;l=p-r|0;j=P(k+l|0,6810)+1024|0;J[d+24>>2]=j+P(l,-17828)>>11;J[d+8>>2]=j+P(k,4209)>>11;j=(P(h-e|0,7791)+P(f+i|0,-4815)|0)+1024|0;k=u<<13;m=((m<<12)-k|0)+P(m+s|0,2531)|0;J[d+ -28>>2]=j-m>>11;J[d+12>>2]=j+m>>11;J[d+4>>2]=(((k+(P(h,11443)+P(i,10323)|0)|0)+P(f,5260)|0)+P(e,1812)|0)+1024>>11;d=d+32|0;g=g+1|0;if((g|0)!=5)continue;break}b=J[a+128>>2];c=J[a>>2];d=b+c|0;f=J[a+96>>2];g=J[a+32>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+64>>2];i=P(d-(e<<2)|0,3707);J[a+128>>2]=h-i>>15;J[a+64>>2]=h+i>>15;J[a>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+96>>2]=b+P(d,-22820)>>15;J[a+32>>2]=b+P(c,5387)>>15;b=J[a+100>>2];c=J[a+36>>2];d=b+c|0;f=J[a+132>> -2];g=J[a+4>>2];e=f+g|0;h=d+e|0;i=J[a+68>>2];J[a+4>>2]=P(h+i|0,10486)+16384>>15;d=P(e-d|0,8290)+16384|0;e=P(h-(i<<2)|0,3707);J[a+132>>2]=d-e>>15;J[a+68>>2]=d+e>>15;c=c-b|0;d=g-f|0;b=P(c+d|0,8716)+16384|0;J[a+36>>2]=b+P(d,5387)>>15;J[a+100>>2]=b+P(c,-22820)>>15;b=J[a+136>>2];c=J[a+8>>2];d=b+c|0;f=J[a+104>>2];g=J[a+40>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+72>>2];i=P(d-(e<<2)|0,3707);J[a+136>>2]=h-i>>15;J[a+72>>2]=h+i>>15;J[a+8>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+ -16384|0;J[a+104>>2]=b+P(d,-22820)>>15;J[a+40>>2]=b+P(c,5387)>>15;b=J[a+140>>2];c=J[a+12>>2];d=b+c|0;f=J[a+108>>2];g=J[a+44>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+76>>2];i=P(d-(e<<2)|0,3707);J[a+140>>2]=h-i>>15;J[a+76>>2]=h+i>>15;J[a+12>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+108>>2]=b+P(d,-22820)>>15;J[a+44>>2]=b+P(c,5387)>>15;b=J[a+144>>2];c=J[a+16>>2];d=b+c|0;f=J[a+112>>2];g=J[a+48>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+80>>2];i=P(d-(e<<2)| -0,3707);J[a+144>>2]=h-i>>15;J[a+80>>2]=h+i>>15;J[a+16>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+112>>2]=b+P(d,-22820)>>15;J[a+48>>2]=b+P(c,5387)>>15;b=J[a+148>>2];c=J[a+20>>2];d=b+c|0;f=J[a+116>>2];g=J[a+52>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+84>>2];i=P(d-(e<<2)|0,3707);J[a+148>>2]=h-i>>15;J[a+84>>2]=h+i>>15;J[a+20>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+116>>2]=b+P(d,-22820)>>15;J[a+52>>2]=b+P(c,5387)>>15;b=J[a+152>>2]; -c=J[a+24>>2];d=b+c|0;f=J[a+120>>2];g=J[a+56>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+88>>2];i=P(d-(e<<2)|0,3707);J[a+152>>2]=h-i>>15;J[a+88>>2]=h+i>>15;J[a+24>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+120>>2]=b+P(d,-22820)>>15;J[a+56>>2]=b+P(c,5387)>>15;b=J[a+156>>2];c=J[a+28>>2];d=b+c|0;f=J[a+124>>2];g=J[a+60>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+92>>2];i=P(d-(e<<2)|0,3707);J[a+156>>2]=h-i>>15;J[a+92>>2]=h+i>>15;J[a+28>>2]=P(d+e|0,10486)+16384>> -15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+124>>2]=b+P(d,-22820)>>15;J[a+60>>2]=b+P(c,5387)>>15}function zl(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=xb-16|0;xb=i;d=J[a+12>>2];a:{if(!(d&64)){f=xb+-64|0;xb=f;b:{if(!J[a+8>>2]){d=J[a+628>>2];J[f>>2]=J[a>>2];Ob(d,284080,265724,f);d=0;break b}d=J[a+12>>2];if(d>>>10&1){Ob(J[a+628>>2],J[a>>2],266820,0);d=0;break b}e=J[a+40>>2];if(!(e&2)){d=J[a+628>>2];J[f+16>>2]=J[a>>2];Ob(d,284080,267542,f+16|0);d=0;break b}e=e&1048576;c:{if(L[a+98>>1]==1){if(e)break c; -I[a+138>>1]=1;break c}if(e)break c;d=J[a+628>>2];J[f+48>>2]=J[a>>2];Ob(d,284080,268239,f+48|0);d=0;break b}d:{if(J[a+184>>2])break d;d=J[a+40>>2];e:{if(K[a+13|0]&4){e=L[a+98>>1];if(!(J[a+60>>2]|!(d&4)))break e;e=$C(a);break e}e=L[a+98>>1];if(!(J[a+60>>2]|!(d&131072)))break e;e=cD(a)}d=e;J[a+180>>2]=d;J[a+176>>2]=d;if(L[a+138>>1]==2)J[a+176>>2]=(d>>>0)/L[a+98>>1];j=a,k=Qb(d<<2),J[j+184>>2]=k;d=Qb(J[a+180>>2]<<2);J[a+188>>2]=d;e=0;g=J[a+184>>2];if(!(!g|!d)){Pd(g,0,J[a+180>>2]<<2);Pd(J[a+188>>2],0,J[a+ -180>>2]<<2);J[a+40>>2]=J[a+40>>2]|50331648;e=1}d=J[a+12>>2];if(e)break d;J[a+180>>2]=0;e=J[a+628>>2];g=J[a>>2];J[f+36>>2]=d&1024?269104:269591;J[f+32>>2]=g;Ob(e,284080,268411,f+32|0);d=0;break b}if(d&1024)d=cg(a);else d=-1;J[a+508>>2]=d;j=a,k=Ye(a),J[j+588>>2]=k;J[a+12>>2]=J[a+12>>2]|64;d=1}xb=f- -64|0;if(!d){f=-1;break a}d=J[a+12>>2]}if(!(J[a+596>>2]?d&16:0)){f=-1;d=xb-16|0;xb=d;e=J[a+596>>2];if(e){if(K[a+13|0]&2){Kb(e);J[a+12>>2]=J[a+12>>2]&-513}J[a+596>>2]=0}if(K[a+13|0]&4)e=J[a+508>>2];else e= -hk(a);g=(e|0)<=8192?8192:e;e=Qb(g);f:{if(!e){e=J[a+628>>2];J[d>>2]=J[a>>2];Ob(e,284112,270103,d);e=0;break f}h=J[a+12>>2]|512;J[a+608>>2]=0;J[a+600>>2]=g;J[a+596>>2]=e;J[a+604>>2]=e;J[a+12>>2]=h|16;e=1}xb=d+16|0;if(!e)break a}d=L[a+138>>1];g:{h:{i:{j:{h=M[a+60>>2]>c>>>0;if(!h){if((d|0)!=2)break j;Ob(J[a+628>>2],J[a>>2],263001,0);f=-1;break a}if((d|0)!=2)break i;d=L[a+98>>1];if(!d){b=J[a>>2];a=J[a+628>>2];J[i+4>>2]=d;J[i>>2]=0;Ob(a,b,264329,i);f=-1;break a}d=(c>>>0)/M[a+100>>2]|0;break h}J[a+60>>2]= -c+1}d=(c>>>0)/M[a+100>>2]|0}f=J[a+180>>2];if(d>>>0>>0)break g;e=xb-16|0;xb=e;f=ok(J[a+184>>2],(f<<2)+4|0);g=ok(J[a+188>>2],(J[a+180>>2]<<2)+4|0);k:{if(!(g?f:0)){if(f)Kb(f);if(g)Kb(g);J[a+180>>2]=0;f=J[a+628>>2];J[e>>2]=J[a>>2];Ob(f,284080,270633,e);f=0;break k}J[a+188>>2]=g;J[a+184>>2]=f;Pd(f+(J[a+180>>2]<<2)|0,0,4);Pd(J[a+188>>2]+(J[a+180>>2]<<2)|0,0,4);J[a+180>>2]=J[a+180>>2]+1;f=1}xb=e+16|0;if(f)break g;f=-1;break a}if((d|0)!=J[a+480>>2]){f=-1;e=0;g=J[a+12>>2];l:{if(!(g&64))break l;if(g&4096){J[a+ -12>>2]=g&-4097;if(!(Ab[J[a+536>>2]](a)|0))break l}e=Xc(a)}if(!e)break a;J[a+480>>2]=d;e=J[a+176>>2];m:{if(!(!h&d>>>0>=e>>>0)){g=J[a+100>>2];break m}e=0;h=J[a+60>>2];g=J[a+100>>2];if(h>>>0<0-g>>>0)e=((g+h|0)-1>>>0)/(g>>>0)|0;J[a+176>>2]=e}J[a+472>>2]=P((d>>>0)%(e>>>0)|0,g);if(!(K[a+12|0]&32)){if(!(Ab[J[a+524>>2]](a)|0))break a;J[a+12>>2]=J[a+12>>2]|32}J[a+608>>2]=0;J[a+604>>2]=J[a+596>>2];e=J[a+188>>2]+(d<<2)|0;if(J[e>>2]){J[e>>2]=0;J[a+484>>2]=0}if(!(Ab[J[a+532>>2]](a,0)|0))break a;J[a+12>>2]=J[a+ -12>>2]|4096}f=J[a+472>>2];if((f|0)!=(c|0)){if(c>>>0>>0){J[a+604>>2]=J[a+596>>2];f=P(J[a+100>>2],(d>>>0)%M[a+176>>2]|0);J[a+472>>2]=f}if(!(Ab[J[a+568>>2]](a,c-f|0)|0)){f=-1;break a}J[a+472>>2]=c}Ab[J[a+652>>2]](a,b,J[a+588>>2]);f=Ab[J[a+544>>2]](a,b,J[a+588>>2],0)|0;J[a+472>>2]=c+1}xb=i+16|0;return f}function Ou(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;g=1;a:{b:switch((K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))>>>24|0){case 0:d=J[b+12>>2];c=a+12|0;e=J[b+4>>2];c:{if(d>>> -0>>0)break c;a=J[b+8>>2];if(a-c>>>0<16)break c;f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0<4)break c;f=c+4|0;if(d>>>0>>0|a-f>>>0<4|K[f|0]&128)break c;a=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if(!og(c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0,b))break c;a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);j=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if((j|0)<0)break c;a=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);k=c+(a<< -24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;a=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);l=c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;g=0;f=j<<1;a=0;while(1){c=a;if((g|0)<=(h|0)){i=0;d=h+1|0;e=Kpa(d,0,f,0);if(zb|M[b+12>>2]>2]>>>0|e>>>0>J[b+8>>2]-l>>>0)break c;e=J[b+16>>2]-e|0;J[b+16>>2]=e;if((e|0)<=0)break c;e=e+((h^-1)+g|0)|0;J[b+16>>2]=e;if((e|0)<=0)break c;Kpa(d,0,j,0);if(zb)break c;m=P(d,j);if((m|0)<0)break c;e=P(g,j);if((e|0)<(m|0)){g=l+(m<<1)|0;i=l+(e<<1)|0;while(1){e=K[i|0]| -K[i+1|0]<<8;e=((e<<8|e>>>8)&65535)+1|0;a=a>>>0>e>>>0?a:e;i=i+2|0;if(g>>>0>i>>>0)continue;break}}g=d}i=0;if(M[b+12>>2]>2]>>>0)break c;e=a<<2;if(e>>>0>J[b+8>>2]-k>>>0)break c;d=J[b+16>>2]-e|0;J[b+16>>2]=d;if((d|0)<=0)break c;d=d+(c-a|0)|0;J[b+16>>2]=d;if((d|0)<=0)break c;if((a|0)>(c|0)){e=e+k|0;i=k+(c<<2)|0;while(1){d=K[i|0]|K[i+1|0]<<8;d=(d<<8|d>>>8)&65535;h=(d|0)<(h|0)?h:d;i=i+4|0;if(e>>>0>i>>>0)continue;break}}if((g|0)<=(h|0))continue;break}i=1}return i|0;case 1:g=0;k=xb-16|0;xb=k;J[k+12>> -2]=0;h=a+12|0;d:{if(!Mu(h,b,k+12|0))break d;e=J[k+12>>2];if(e){a=K[h+12|0]|K[h+13|0]<<8|(K[h+14|0]<<16|K[h+15|0]<<24);d=h+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;while(1){l=d+(j<<3)|0;f=K[l+4|0]|K[l+5|0]<<8;a=((f<<8|f>>>8)&65535)+1|0;c=(f|0)==65535?g:a>>>0>>0?g:a;f=K[l+6|0]|K[l+7|0]<<8;a=((f<<8|f>>>8)&65535)+1|0;g=(f|0)==65535?c:a>>>0>>0?c:a;j=j+1|0;if((e|0)!=(j|0))continue;break}}d=J[b+12>>2];f=h+16|0;e=J[b+4>>2];if(d>>>0>>0)break d;a=J[b+8>>2];if(K[f|0]&128|a-f>>>0<4)break d;f=K[h+ -16|0]|K[h+17|0]<<8|(K[h+18|0]<<16|K[h+19|0]<<24);f=h+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;if(d>>>0>>0)break d;c=a-f|0;a=g<<2;if(c>>>0>>0)break d;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break d;m=1;if(!g)break d;j=0;while(1){m=0;a=f+(j<<2)|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<4|K[a|0]&128)break d;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if(!og(f+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0,b))break d;m=1;j=j+1|0;if((j|0)!=(g|0))continue;break}}xb=k+16|0;return m| -0;case 2:g=0;d=a+12|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<28)break a;if(!Nu(d,b)|!(K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24))|!(K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24)))break a;return(K[a+36|0]|K[a+37|0]<<8|(K[a+38|0]<<16|K[a+39|0]<<24))!=0|0;case 4:return og(a+12|0,b)|0;case 5:break b;default:break a}g=0;d=a+12|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<20)break a;if(!Mu(d,b,0))break a;g=(K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24))!=0}return g|0}function e8(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=xb-32|0;xb=g;m=g+24|0;a=m;J[a>>2]=0;J[a+4>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;In(g+4|0,d);d=J[g+4>>2];r=J[g+8>>2];if((d|0)!=(r|0)){a:{while(1){b:{a=J[d>>2];f=J[J[a>>2]+8>>2];J[195395]=0;f=_(f|0,a|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break b;c:{d:switch(f-1|0){case 0:J[195395]=0;h=O[a+8>>3];f=J[195395];J[195395]=0;e:{if((f|0)==1)break e;J[195395]=0;i=O[a+16>>3];f=J[195395];J[195395]=0;if((f|0)==1)break e; -J[195395]=0;ra(1902,b|0,+h,+i)|0;f=J[195395];J[195395]=0;if((f|0)==1)break e;J[195395]=0;h=O[a+8>>3];f=J[195395];J[195395]=0;if((f|0)==1)break e;J[195395]=0;O[g+16>>3]=h;i=O[a+16>>3];a=J[195395];J[195395]=0;if((a|0)==1)break e;O[g+24>>3]=i;break c}break b;case 1:J[195395]=0;j=O[a+16>>3];f=J[195395];J[195395]=0;if((f|0)==1)break b;J[195395]=0;l=O[a+8>>3];f=J[195395];J[195395]=0;if((f|0)==1)break b;j=Cq((j-i)/(l-h))*180/3.14+-90;f=J[e+56>>2];f:{if(!f)break f;k=J[J[f>>2]+8>>2];J[195395]=0;f=_(k|0,f| -0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break b;if(f)break f;f=J[J[e+56>>2]+88>>2];if(!f)break f;h=O[e+16>>3];J[195395]=0;f=Wa(1905,a|0,c|0,f+4|0,g+16|0,m|0,+(j+180),+h)|0;k=J[195395];J[195395]=0;if((k|0)==1)break b;if(!f)break f;J[195395]=0;ra(1902,b|0,+O[g+16>>3],+O[g+24>>3])|0;f=J[195395];J[195395]=0;if((f|0)==1)break b}J[195395]=0;h=O[a+8>>3];f=J[195395];J[195395]=0;if((f|0)==1)break b;J[195395]=0;O[g+16>>3]=h;i=O[a+16>>3];a=J[195395];J[195395]=0;if((a|0)==1)break b;O[g+24>>3]=i;a=J[e+60>>2]; -g:{if(!a)break g;f=J[J[a>>2]+8>>2];J[195395]=0;a=_(f|0,a|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break b;if(a)break g;a=J[J[e+60>>2]+88>>2];if(!a)break g;h=O[e+16>>3];J[195395]=0;Wa(1905,a|0,c|0,a+4|0,g+16|0,m|0,+j,+h)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;i=O[g+24>>3];h=O[g+16>>3]}J[195395]=0;ra(1906,b|0,+h,+i)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;break c;case 2:J[195395]=0;j=O[a+8>>3];f=J[195395];J[195395]=0;h:{if((f|0)==1)break h;J[195395]=0;l=O[a+16>>3];f=J[195395];J[195395]= -0;if((f|0)==1)break h;J[195395]=0;n=O[a+24>>3];f=J[195395];J[195395]=0;if((f|0)==1)break h;J[195395]=0;o=O[a+32>>3];f=J[195395];J[195395]=0;if((f|0)==1)break h;J[195395]=0;p=O[a+40>>3];f=J[195395];J[195395]=0;if((f|0)==1)break h;J[195395]=0;q=O[a+48>>3];a=J[195395];J[195395]=0;if((a|0)==1)break h;J[195395]=0;Ga(1913,b|0,+j,+l,+n,+o,+p,+q)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break c}break b;case 3:J[195395]=0;j=O[a+8>>3];f=J[195395];J[195395]=0;i:{if((f|0)==1)break i;J[195395]=0;l=O[a+16>>3];f=J[195395]; -J[195395]=0;if((f|0)==1)break i;J[195395]=0;n=O[a+24>>3];f=J[195395];J[195395]=0;if((f|0)==1)break i;J[195395]=0;o=O[a+32>>3];f=J[195395];J[195395]=0;if((f|0)==1)break i;J[195395]=0;p=O[a+40>>3];f=J[195395];J[195395]=0;if((f|0)==1)break i;J[195395]=0;q=O[a+48>>3];a=J[195395];J[195395]=0;if((a|0)==1)break i;J[195395]=0;Ga(1920,b|0,+j,+l,+n,+o,+p,+q)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break c}break b;case 4:break d;default:break c}J[195395]=0;_(1921,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b}d= -d+4|0;if((r|0)!=(d|0))continue;break a}break}b=Z()|0;a=J[g+4>>2];if(a){J[g+8>>2]=a;Kb(a)}ba(b|0);B()}d=J[g+4>>2]}if(d){J[g+8>>2]=d;Kb(d)}xb=g+32|0}function gG(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,r=0,s=0,t=0,u=0,v=0,w=0;H[a|0]=0;H[a+1|0]=0;s=lj(b);a:{if(J[b+24>>2])break a;o=4;b:{l=s+2|0;e=J[b+4>>2];d=l-e|0;if((d|0)<0|(d|0)>(J[b+8>>2]-e|0))break b;i=J[c+16>>2];t=J[c+12>>2];g=J[c+4>>2];h=J[c>>2];c=l;if((e|0)!=(c|0)){Nb(e,0,d);c=J[b+4>>2]}J[b+4>>2]=c+d;if(!c)break a;p=g>>> -0>>0?g:i;u=(i<<1)+t|0;v=(g<<1)+h|0;c:{if(!g){o=0;break c}r=L[84888];o=0;d=-2;c=i;k=t;e=g;f=h;while(1){if(!c&(k|0)==(u|0))break c;j=e;d:{if(e){e=f;if(c)break d}I[388240]=r;e=j?f:776480}e=K[e|0]|K[e+1|0]<<8;m=(e<<8|e>>>8)&65535;o=(d|0)!=-2?m>>>0>>0|o:o;e=j-1|0;e=e>>>0<=j>>>0?e:0;k=(((c|0)!=0)<<1)+k|0;q=((m|0)!=(d+1|0))+q|0;d=m;m=c-1|0;c=c>>>0>=m>>>0?m:0;f=(((j|0)!=0)<<1)+f|0;if((v|0)!=(f|0)|j>>>0>1)continue;break}}d=(p>>>0>P(q,3)>>>0|o)&1;c=d?512:256;H[s|0]=c;H[s+1|0]=c>>>8;e:{if(!d){if(J[b+24>> -2])break a;o=4;c=s+4|0;e=J[b+4>>2];d=c-e|0;if((d|0)<0|(d|0)>(J[b+8>>2]-e|0))break b;if((c|0)!=(e|0)){Nb(e,0,d);c=J[b+4>>2]}J[b+4>>2]=c+d;if(!c)break a;c=p<<8|(p&65280)>>>8;H[l|0]=c;H[l+1|0]=c>>>8;c=J[b+24>>2];if(p>>>0>=65536){o=c|16;break b}if(c)break a;d=J[b+4>>2];c=(((p<<1&131070)+l|0)-d|0)+2|0;if((c|0)<0|(c|0)>(J[b+8>>2]-d|0))break b;J[b+4>>2]=c+d;if(!d)break a;if(!p)break e;c=0;f=L[84888];while(1){f:{g:{if(g){if(i){e=(c<<1)+l|0;d=K[h|0]|K[h+1|0]<<8;H[e+2|0]=d;H[e+3|0]=d>>>8;h=h+2|0;g=g-1|0;c= -c+1|0;break g}I[388240]=f;e=(c<<1)+l|0;d=K[h|0]|K[h+1|0]<<8;H[e+2|0]=d;H[e+3|0]=d>>>8;h=h+2|0;g=g-1|0;c=c+1|0;e=0;break f}g=0;I[388240]=f;d=(c<<1)+l|0;H[d+2|0]=f;H[d+3|0]=f>>>8;c=c+1|0;e=0;if(!i)break f}e=i-1|0}i=e;if((c|0)!=(p|0))continue;break}break e}if(J[b+24>>2])break a;o=4;m=s+4|0;e=J[b+4>>2];c=m-e|0;if((c|0)<0|(c|0)>(J[b+8>>2]-e|0))break b;d=m;if((e|0)!=(d|0)){Nb(e,0,c);d=J[b+4>>2]}n=c+d|0;J[b+4>>2]=n;if(!d)break a;h:{if(!g){q=0;break h}p=L[84888];f=-2;q=0;c=i;r=t;e=g;d=h;while(1){if(!c&(r| -0)==(u|0))break h;k=e;i:{if(e){j=d;if(c)break i}I[388240]=p;j=k?d:776480}e=k-1|0;e=e>>>0<=k>>>0?e:0;w=f+1|0;f=K[j|0]|K[j+1|0]<<8;f=(f<<8|f>>>8)&65535;q=((w|0)!=(f|0))+q|0;r=(((c|0)!=0)<<1)+r|0;j=c-1|0;c=c>>>0>=j>>>0?j:0;d=(((k|0)!=0)<<1)+d|0;if((v|0)!=(d|0)|k>>>0>1)continue;break}}if(J[b+24>>2])break a;d=m-n|0;if((d|0)<0|(d|0)>(J[b+8>>2]-n|0))break b;c=m;if((n|0)!=(c|0)){Nb(n,0,d);c=J[b+4>>2]}J[b+4>>2]=c+d;if(!c)break a;c=q<<8|(q&65280)>>>8;H[l|0]=c;H[l+1|0]=c>>>8;c=J[b+24>>2];if(q>>>0>=65536){o= -c|16;break b}if(c)break a;c=(P(q,6)+l|0)+2|0;e=J[b+4>>2];d=c-e|0;if((d|0)<0|(d|0)>(J[b+8>>2]-e|0))break b;if((c|0)!=(e|0)){Nb(e,0,d);c=J[b+4>>2]}J[b+4>>2]=c+d;if(!c)break a;if(!g|!q)break e;p=L[84888];f=0;k=-1;r=0;d=-2;while(1){if(!(!i&(t|0)==(u|0))){j=d+1|0;e=g;j:{if(e){c=h;if(i)break j}I[388240]=p;c=e?h:776480}n=K[c|0]|K[c+1|0]<<8;c=(n<<8|n>>>8)&65535;if((j|0)!=(c|0)){f=(d|0)==-2|c>>>0>=j>>>0?f:1;k=k+1|0;g=P(k,6)+s|0;d=r<<8|(r&65280)>>>8;H[g+8|0]=d;H[g+9|0]=d>>>8;H[g+4|0]=n;H[g+5|0]=n>>>8}d=P(k, -6)+s|0;H[d+6|0]=n;H[d+7|0]=n>>>8;d=e-1|0;g=d>>>0<=e>>>0?d:0;r=r+1|0;t=(((i|0)!=0)<<1)+t|0;d=c;c=i-1|0;i=c>>>0<=i>>>0?c:0;h=(((e|0)!=0)<<1)+h|0;if((v|0)!=(h|0)|e>>>0>1)continue}break}if(!f)break e;c=K[l|0]|K[l+1|0]<<8;if(!c)break e;Ss(m,(c<<8|c>>>8)&65535,6,908)}yk(b,a,sj(b,1),0,0);return 1}J[b+24>>2]=o}kj(b);return 0}function Vk(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;h=xb-48|0;xb=h;i=J[a+11748>>2]==2;k=i?a+11760|0:a+11776|0;m=J[k+4>>2];s=1;j=(i?11760: -11776)+a|0;o=J[j>>2];n=J[c>>2];g=J[c+4>>2];a:{if(!((o|0)!=(n|0)|(g|0)!=(m|0))){i=0;break a}t=i?a+11752|0:a+11768|0;p=J[t+4>>2];q=o;o=(i?11752:11768)+a|0;i=J[o>>2];u=(e-g|0)+16>>5;q=Rb((q-i|0)+16>>5,u);r=(m-p|0)+16>>5;m=(d-n|0)+16>>5;r=Rb(r,m);if((q|0)==(r|0)){i=0;break a}l=dc(Rb((n-i|0)+16>>5,u)-Rb((g-p|0)+16>>5,m)|0,q-r|0);i=J[o>>2];i=Rb(l,J[j>>2]-i|0)+i|0;m=J[t+4>>2];n=Rb(l,J[k+4>>2]-m|0);l=J[o>>2];p=J[j>>2];if((l|0)==(p|0)){o=i-l|0;g=o>>31;i=J[a+11700>>2]>((g^o)-g|0)?l:i}l=m+n|0;g=J[t+4>>2];m= -J[k+4>>2];if((g|0)==(m|0)){n=l-g|0;k=n>>31;l=J[a+11700>>2]>((k^n)-k|0)?g:l}k=J[c>>2];if((k|0)==(d|0)){n=i-d|0;g=n>>31;i=J[a+11700>>2]>((g^n)-g|0)?d:i}g=J[c+4>>2];if((g|0)==(e|0)){n=l-e|0;d=n>>31;l=J[a+11700>>2]>((d^n)-d|0)?e:l}e=((k+p|0)/-2|0)+i|0;d=e>>31;d=(d^e)-d|0;e=J[a+11696>>2];if((d|0)>(e|0))break a;g=((g+m|0)/-2|0)+l|0;d=g>>31;if((e|0)<((d^g)-d|0))break a;J[j>>2]=i;J[j+4>>2]=l;s=0}e=J[a+11732>>2];d=J[a+11728>>2];J[h+8>>2]=d;J[h+12>>2]=e;b:{c:{d:switch(J[a+11748>>2]-2|0){case 0:j=d;J[h+40>> -2]=2;e:{if(f){d=J[a+11764>>2];k=Rb(J[a+11644>>2],J[a+11760>>2]);m=Rb(J[a+11648>>2],d);g=Sf(a+3876|0,d);d=k+m|0;k=(Rb(J[J[a>>2]+64>>2],d)+Rb(J[J[a>>2]+72>>2],g)|0)+J[a+11656>>2]|0;break e}d=J[a+11764>>2];k=Rb(J[a+11644>>2],J[a+11760>>2]);m=Rb(J[a+11648>>2],d);g=Sf(b,d);d=k+m|0;k=(Rb(J[J[a>>2]+64>>2],d)+Rb(J[J[a>>2]+72>>2],g)|0)+J[a+11656>>2]|0}J[h+16>>2]=k;d=(Rb(J[J[a>>2]+68>>2],d)+Rb(J[J[a>>2]+76>>2],g)|0)+J[a+11660>>2]|0;J[h+20>>2]=d;if((j|0)==(k|0)&(d|0)==(e|0))break b;e=J[a+4>>2];g=e+4|0;d=h+16| -0;break c;case 2:break d;default:break b}J[h+40>>2]=4;d=J[a+11764>>2];e=Rb(J[a+11644>>2],J[a+11760>>2]);j=Rb(J[a+11648>>2],d);d=Sf(b,d);e=e+j|0;v=h,w=(Rb(J[J[a>>2]+64>>2],e)+Rb(J[J[a>>2]+72>>2],d)|0)+J[a+11656>>2]|0,J[v+16>>2]=w;e=Rb(J[J[a>>2]+68>>2],e)+Rb(J[J[a>>2]+76>>2],d)|0;d=a+11660|0;J[h+20>>2]=e+J[d>>2];e=J[a+11772>>2];j=Rb(J[a+11644>>2],J[a+11768>>2]);g=Rb(J[a+11648>>2],e);e=Sf(b,e);j=g+j|0;v=h,w=(Rb(J[J[a>>2]+64>>2],j)+Rb(J[J[a>>2]+72>>2],e)|0)+J[a+11656>>2]|0,J[v+24>>2]=w;v=h,w=(Rb(J[J[a>> -2]+68>>2],j)+Rb(J[J[a>>2]+76>>2],e)|0)+J[d>>2]|0,J[v+28>>2]=w;e=J[a+11780>>2];j=Rb(J[a+11644>>2],J[a+11776>>2]);g=Rb(J[a+11648>>2],e);e=Sf(b,e);j=g+j|0;v=h,w=(Rb(J[J[a>>2]+64>>2],j)+Rb(J[J[a>>2]+72>>2],e)|0)+J[a+11656>>2]|0,J[v+32>>2]=w;v=h,w=(Rb(J[J[a>>2]+68>>2],j)+Rb(J[J[a>>2]+76>>2],e)|0)+J[d>>2]|0,J[v+36>>2]=w;e=J[a+4>>2];g=e+12|0;d=h+32|0}Ab[J[g>>2]](e,h+8|0);e=J[d+4>>2];J[a+11728>>2]=J[d>>2];J[a+11732>>2]=e}f:{if(!(f|s))break f;g:{if(f){b=J[c+4>>2];f=Rb(J[a+11644>>2],J[c>>2])+Rb(J[a+11648>> -2],b)|0;b=Sf(a+3876|0,b);break g}d=J[c+4>>2];f=Rb(J[a+11644>>2],J[c>>2])+Rb(J[a+11648>>2],d)|0;b=Sf(b,d)}v=h,w=(Rb(J[J[a>>2]+64>>2],f)+Rb(J[J[a>>2]+72>>2],b)|0)+J[a+11656>>2]|0,J[v+16>>2]=w;b=(Rb(J[J[a>>2]+68>>2],f)+Rb(J[J[a>>2]+76>>2],b)|0)+J[a+11660>>2]|0;J[h+20>>2]=b;if(J[h+16>>2]==J[a+11728>>2]&(b|0)==J[a+11732>>2])break f;J[h+40>>2]=2;b=J[a+11732>>2];J[h+8>>2]=J[a+11728>>2];J[h+12>>2]=b;b=J[a+4>>2];Ab[J[b+4>>2]](b,h+8|0);b=J[h+20>>2];J[a+11728>>2]=J[h+16>>2];J[a+11732>>2]=b}if(!s){J[c>>2]=i; -J[c+4>>2]=l}xb=h+48|0}function Pj(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,r=0;e=xb-304|0;xb=e;a:{b:{c:{d:{e:{f:{g:{if(!Zb(a,228036,13)){q=b,r=Oj(a+13|0),H[q|0]=r;break g}if(!Zb(a,228013,14)){q=b,r=Oj(a+14|0),H[q+1|0]=r;break g}if(!Zb(a,228028,21)){q=b,r=Oj(a+21|0),H[q+2|0]=r;break g}if(!Zb(a,228005,22)){q=b,r=Oj(a+22|0),H[q+3|0]=r;break g}if(!Zb(a,228050,8)){d=a+8|0;while(1){c=K[d|0];if(!((c|0)!=32&(c|0)!=9)){d=d+1|0;continue}break}h:{if(K[a|0]){c=ac(d);f=c+1|0;a=Qb(f); -if(!a)break f;f=c;c=Mb(a,d,c);H[f+c|0]=0;J[b+4>>2]=c;break h}a=J[b+4>>2];if(!a)break g}c=ac(a)+a|0;H[c-1|0]=0;a=J[b+4>>2];d=c-2|0;if(a>>>0>=d>>>0)break g;while(1){if(K[d|0]==44){J[b+8>>2]=J[b+8>>2]+1;H[d|0]=0;a=J[b+4>>2]}d=d-1|0;if(d>>>0>a>>>0)continue;break}break g}H[e+80|0]=48;d=te(a,47);if(d){f=d+1|0;g=te(f,44);H[d|0]=0;i:{if(g){i=g+1|0;d=te(i,44);H[g|0]=0;g=0;if(!d)break i;H[d|0]=0;j=Oj(i)-1|0;g=Oj(d+1|0);break i}g=ac(f);j:{if((g|0)<=0)break j;k:{l:{d=f+g|0;i=d-1|0;switch(K[i|0]-10|0){case 0:case 3:break l; -default:break k}}H[i|0]=0}if(g>>>0<2)break j;g=d-2|0;if(K[g|0]!=13)break j;H[g|0]=0}g=ac(a)}d=ac(f);i=d+1|0;l=Qb(i);if(!l)break e;q=Mb(l,f,d)+d|0,r=0,H[q|0]=r}d=K[a|0];m:{if(d>>>0<33){i=0;break m}i=0;while(1){if((d-48&255)>>>0>=10){H[(e+192|0)+i|0]=d;i=i+1|0;d=48}H[(e+80|0)+i|0]=d;h=h+1|0;d=K[h+a|0];if(d>>>0>32)continue;break}}d=0;H[(e+192|0)+i|0]=0;H[(e+i|0)+81|0]=0;n:{if(!l){while(1){f=d;d=d+1|0;if(K[(e+80|0)+f|0]==48)continue;break}d=K[e+192|0];break n}d=K[e+192|0];f=(d|0)==46;if(!J[b+36>>2])break n; -k=ac(e+192|0);o:{if(k+1>>>0<=f>>>0)break o;n=g<<24>>24;h=-1;a=f;m=-1;while(1){m=((K[(e+192|0)+a|0]&192)!=128)+m|0;o=j<<24>>24;p=(m|0)==(o|0)&(h|0)<0;j=p?a:j;h=p?o:h;if(!((h|0)<0|(n|0)!=(m-h|0))){g=a-j|0;break o}o=(a|0)!=(k|0);a=a+1|0;if(o)continue;break}}j=j-((d|0)==46)|0}h=0;if(d&255){a=e+192|0;while(1){d=(d<<24>>24)+(h<<4)|0;h=d>>>24&240^d&268435455;d=K[a+1|0];a=a+1|0;if(d)continue;break}a=(h>>>0)%31627|0}else a=0;d=(a<<2)+c|0;p:{while(1){d=J[d>>2];a=1;if(!d)break p;if(fc(e+192|0,J[d+4>>2]))continue; -break}a=J[d+8>>2]>>>31|0}h=e+192|0;m=vz(b,c,h);k=(e+80|0)+f|0;d=ac(k);f=d+1|0;n=Qb(f);if(!n)break d;f=a;a=d;d=Mb(n,k,d);H[a+d|0]=0;a=J[b+40>>2]+P(m,24)|0;H[a+8|0]=j;J[a+4>>2]=l;J[a>>2]=d;if(!(g&255))g=ac(h);H[a+9|0]=g;if(f^1|(i|0)<=0)break g;while(1){d=e+192|0;j=i-1|0;a=d+j|0;n=K[a|0];h=0;H[a|0]=0;a=K[e+192|0];if(a){while(1){a=(a<<24>>24)+(h<<4)|0;h=a>>>24&240^a&268435455;a=K[d+1|0];d=d+1|0;if(a)continue;break}a=(h>>>0)%31627|0}else a=0;d=(a<<2)+c|0;q:{while(1){d=J[d>>2];l=-1;if(!d)break q;if(fc(e+ -192|0,J[d+4>>2]))continue;break}l=J[d+8>>2]}h=vz(b,c,e+192|0);f=J[b+40>>2];k=P(h,24);d=f+k|0;g=J[d+16>>2];r:{if(!g){a=Qb(8);if(!a)break c;J[d+20>>2]=a;d=0;break r}a=J[d+20>>2];d=g;if(d&d-1)break r;f=d<<4;a=ic(a,f);if(!a)break b;f=J[b+40>>2];d=k+f|0;J[d+20>>2]=a;d=J[d+16>>2]}a=(g<<3)+a|0;J[a+4>>2]=m;H[a|0]=n;J[(f+k|0)+16>>2]=d+1;if((l|0)>=0)break g;a=(i|0)>1;i=j;m=h;if(a)continue;break}}xb=e+304|0;return}J[e>>2]=f;Sc(J[189490],228582,e);break a}J[e+64>>2]=i;Sc(J[189490],228582,e- -64|0);break a}J[e+ -16>>2]=f;Sc(J[189490],228582,e+16|0);break a}J[e+32>>2]=8;Sc(J[189490],228582,e+32|0);break a}J[e+48>>2]=f;Sc(J[189490],228582,e+48|0)}za(1);B()}function On(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=Q(0);d=xb-240|0;xb=d;g=nd(a,L[b>>1]);a:{b:{c:{c=J[b+4>>2];if(c>>>0>=2){d:{e:{f:{g:switch(L[b+2>>1]-1|0){case 0:case 5:c=Sd(a,c,1,284016);if(!c)break a;e=tr(a,b,c);break e;case 2:case 7:c=Sd(a,c,2,284016);if(!c)break a;e=J[b+4>>2];if(e>>>0>2)break f;if(L[a+456>>1]==19789){h:{i:switch(e-1|0){case 0:f=J[b+8>>2]; -break h;case 1:break i;default:break b}f=J[b+8>>2];I[c+2>>1]=f}I[c>>1]=f>>>16;break b}j:switch(e-1|0){case 1:break j;case 0:break d;default:break b}e=J[b+8>>2];I[c+2>>1]=e>>>16;I[c>>1]=e;break b;case 3:case 8:c=Sd(a,c,4,284016);if(!c)break a;if(J[b+4>>2]==1){J[c>>2]=J[b+8>>2];break b}e=(xe(a,b,c)|0)!=0;break e;case 4:case 9:c=Sd(a,c,4,284016);if(!c)break a;e=SC(a,b,c);break e;case 10:c=Sd(a,c,4,284016);if(!c)break a;if(J[b+4>>2]==1){N[c>>2]=N[b+8>>2];break b}e=(xe(a,b,c)|0)!=0;break e;case 11:c=Sd(a, -c,8,284016);if(!c)break a;e=(xe(a,b,c)|0)!=0;break e;case 1:case 6:break g;default:break a}c=Sd(a,c+1|0,1,284016);if(!c)break a;e=J[b+4>>2];if(e>>>0<=4){J[d+232>>2]=J[b+8>>2];f=d+232|0;if(K[a+12|0]&128){_h(f);e=J[b+4>>2]}Pc(c,f,e);break c}if(xe(a,b,c))break c;Kb(c);break a}e=xe(a,b,c)}if(e)break b;Kb(c);break a}I[c>>1]=J[b+8>>2];break b}if(!c){f=J[a>>2];e=J[a+628>>2];c=J[nd(a,L[b>>1])+16>>2];a=J[b+4>>2];J[d+40>>2]=1;J[d+36>>2]=a;J[d+32>>2]=c;yc(e,f,275793,d+32|0);f=0;break a}k:{l:{m:{n:{o:{e=L[b+ -2>>1];switch(e-1|0){case 1:case 6:break k;case 11:break l;case 4:case 9:case 10:break m;case 3:case 8:break n;case 0:case 2:case 5:case 7:break o;default:break a}}p:switch(J[g+8>>2]-4|0){case 0:case 5:break n;default:break p}c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+464>>2]+(e<<2)>>2]|0;c=J[J[a+468>>2]+(e<<2)>>2]&c;I[d+232>>1]=c;b=L[b>>1];if(K[g+15|0]){J[d+64>>2]=1;J[d+68>>2]=d+232;f=xc(a,b,d- -64|0);break a}J[d+48>>2]=c&65535;f=xc(a,b,d+48|0);break a}c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+ -464>>2]+(e<<2)>>2]|0;c=J[J[a+468>>2]+(e<<2)>>2]&c;J[d+232>>2]=c;b=L[b>>1];if(K[g+15|0]){J[d+96>>2]=1;J[d+100>>2]=d+232;f=xc(a,b,d+96|0);break a}J[d+80>>2]=c;f=xc(a,b,d+80|0);break a}q:{if((e|0)==11){c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+464>>2]+44>>2]|0;J[d+228>>2]=J[J[a+468>>2]+44>>2]&c;Pc(d+232|0,d+228|0,4);i=N[d+232>>2];break q}i=Q(1);if(!xe(a,b,d+232|0))break q;h=J[d+232>>2];c=J[d+236>>2];if(c){if(L[b+2>>1]==5){i=Q(Q(h>>>0)/Q(c>>>0));break q}i=Q(Q(h|0)/Q(c|0));break q}f=J[a>>2];e=J[a+ -628>>2];c=J[nd(a,L[b>>1])+16>>2];J[d+148>>2]=h;J[d+144>>2]=c;Ob(e,f,280731,d+144|0)}N[d+224>>2]=i;b=L[b>>1];if(K[g+15|0]){J[d+128>>2]=1;J[d+132>>2]=d+224;f=xc(a,b,d+128|0);break a}O[d+112>>3]=i;f=xc(a,b,d+112|0);break a}c=d+232|0;if(!xe(a,b,c))break a;b=L[b>>1];r:{if(K[g+15|0]){J[d+176>>2]=1;J[d+180>>2]=c;a=xc(a,b,d+176|0);break r}O[d+160>>3]=O[d+232>>3];a=xc(a,b,d+160|0)}f=(a|0)!=0;break a}J[d+232>>2]=J[b+8>>2];e=d+228|0;c=d+232|0;if(K[a+12|0]&128){_h(c);h=J[b+4>>2]}else h=1;Pc(e,c,h);H[d+229|0]= -0;b=L[b>>1];if(K[g+15|0]){J[d+208>>2]=1;J[d+212>>2]=e;f=xc(a,b,d+208|0);break a}J[d+192>>2]=d+228;f=xc(a,b,d+192|0);break a}H[J[b+4>>2]+c|0]=0}e=L[b>>1];if(K[g+15|0]){b=J[b+4>>2];J[d+20>>2]=c;J[d+16>>2]=b;f=xc(a,e,d+16|0);Kb(c);break a}J[d>>2]=c;f=xc(a,e,d);Kb(c)}xb=d+240|0;return f}function soa(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=Q(0),k=Q(0),l=0,m=Q(0),n=Q(0),o=0;g=xb-240|0;xb=g;a:{b:{c:{d:{e:{if(J[a+48>>2]){J[g+160>>2]=0;J[g+164>>2]=0;J[g+152>>2]=0;J[g+156>>2]=0;J[g+ -144>>2]=0;J[g+148>>2]=0;break e}b=J[a+52>>2];J[g+160>>2]=0;J[g+164>>2]=0;J[g+152>>2]=0;J[g+156>>2]=0;J[g+144>>2]=0;J[g+148>>2]=0;if(b)break e;f=e;b=d;break d}J[195395]=0;b=na(720)|0;h=J[195395];J[195395]=0;o=1;f=g+144|0;if((h|0)!=1)break d;a=Z()|0;break c}j=N[a+60>>2];J[g+104>>2]=0;J[g+108>>2]=0;J[g+112>>2]=0;J[g+116>>2]=0;J[g+120>>2]=0;J[g+124>>2]=0;J[g+128>>2]=0;J[g+132>>2]=0;J[g+136>>2]=0;J[g+140>>2]=0;J[g+96>>2]=0;J[g+100>>2]=0;J[g+92>>2]=f;J[g+88>>2]=b;N[g+80>>2]=j;H[g+84|0]=j==Q(0);f:{i=J[a+ -24>>2];f=i+108|0;b=J[f>>2];g:{h:{if(b)break h;while(1){if(!J[i+48>>2]){b=169776;break h}J[195395]=0;b=_(721,f|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break g;h=J[f>>2];b=b?b:169776;J[f>>2]=h?h:b;if(!h)break h;J[195395]=0;ea(722,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break g;b=J[f>>2];if(!b)continue;break}}H[g+228|0]=0;H[g+216|0]=0;H[g+204|0]=0;H[g+192|0]=0;H[g+180|0]=0;J[g+172>>2]=a;J[195395]=0;J[g+176>>2]=g+80;f=g+12|0;Mb(f,g+172|0,68);b=ha(723,b|0,a|0,c|0,f|0)|0;f=J[195395];J[195395]=0;i:{if((f| -0)==1)break i;if(b)break f;i=J[a+24>>2];f=i+116|0;b=J[f>>2];j:{if(b)break j;while(1){if(!J[i+48>>2]){b=169776;break j}J[195395]=0;b=_(724,f|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break i;h=J[f>>2];b=b?b:169776;J[f>>2]=h?h:b;if(!h)break j;J[195395]=0;ea(725,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break i;b=J[f>>2];if(!b)continue;break}}J[195395]=0;b=ha(726,b|0,a|0,c|0,g+80|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break i;if(b)break f;i=J[a+24>>2];f=i+112|0;b=J[f>>2];k:{if(b)break k;while(1){if(!J[i+ -48>>2]){b=169776;break k}J[195395]=0;b=_(727,f|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break i;h=J[f>>2];b=b?b:169776;J[f>>2]=h?h:b;if(!h)break k;J[195395]=0;ea(728,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break i;b=J[f>>2];if(!b)continue;break}}J[195395]=0;ha(729,b|0,a|0,c|0,g+80|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break f}}a=Z()|0;wI(g+80|0);break c}if(J[g+96>>2]){f=g+96|0;h=J[g+92>>2];c=J[g+88>>2];k=N[g+100>>2];j=N[g+104>>2];if(!(k==N[g+108>>2]&j==N[g+112>>2])){i=J[c+16>>2];b=0;l=J[c+32>> -2];if(l)b=J[l+4>>2];J[195395]=0;ta(i|0,c|0,h|0,f|0,Q(k),Q(j),b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a}i=J[c+28>>2];b=0;l=J[c+32>>2];if(l)b=J[l+16>>2];J[195395]=0;ia(i|0,c|0,h|0,f|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a}if(!o)break b;b=K[a+44|0];c=J[a+48>>2];f=J[a+28>>2];h=J[a+52>>2];a=J[a+32>>2];J[195395]=0;m=Q(c|0);j=b?Q(0):Q(m*Q(.5));n=Q(h|0);k=Q(n*Q(.5));b=g+144|0;aG(b,m,n,(f|0)<0?Q(-j):j,(a|0)<0?Q(-k):k);a=J[195395];J[195395]=0;if((a|0)!=1){J[195395]=0;fa(731,b|0,d|0,e|0);a= -J[195395];J[195395]=0;if((a|0)!=1)break b}a=Z()|0}if(J[g+156>>2]){J[g+160>>2]=0;Kb(J[g+164>>2])}J[g+156>>2]=0;J[g+160>>2]=0;J[g+164>>2]=0;if(J[g+144>>2]){J[g+148>>2]=0;Kb(J[g+152>>2])}J[g+152>>2]=0;J[g+144>>2]=0;J[g+148>>2]=0;ba(a|0);B()}if(J[g+156>>2]){J[g+160>>2]=0;Kb(J[g+164>>2])}J[g+164>>2]=0;J[g+156>>2]=0;J[g+160>>2]=0;if(J[g+144>>2]){J[g+148>>2]=0;Kb(J[g+152>>2])}xb=g+240|0;return}ga(0)|0;_b();B()}function $H(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=Q(0),n=Q(0),o=Q(0),p=0,q=0,r=0,s=0,t= -0,u=0;f=J[a>>2];f=f?f:169776;i=M[f+16>>2]<8?169776:J[f+12>>2];j=K[i+5|0]<<8;k=K[i+6|0]<<16|K[i+7|0]<<24;f=K[i+4|0]|j|k;h=169776;a:{if(!f)break a;l=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=J[b+92>>2];h=J[b+88>>2];k=k|(j|K[i+4|0])?i+8|0:169776;if(l>>>0>=2){f=f>>>0>>0?h:f;p=f?f:1073741824;f=K[i+52|0];h=K[k+45|0];k=f>>>0>h>>>0?f:h;f=1;while(1){j=169776;q=169776;t=(i+P(f,48)|0)+8|0;u=j;h=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);r=(h&65280)<<8;s=h>>>8&65280|h>>>24;j=h<<24|r|s;if(j>>>0>f>>>0){q= -(i+P(f,48)|0)+8|0;j=s|(r|h<<24)}j=j>>>0>f>>>0?t:u;h=K[q+44|0];j=K[j+45|0];h=h>>>0>j>>>0?h:j;if(!(!(h>>>0>=p>>>0&h>>>0>>0)&(h>>>0<=k>>>0|k>>>0>=p>>>0))){g=f;k=h}f=f+1|0;if((l|0)!=(f|0))continue;break}}f=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);h=169776;if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0<=g>>>0)break a;h=(i+P(g,48)|0)+8|0}k=0;b:{f=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);if(!f)break b;i=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+ -3|0]<<24);g=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=J[a>>2];f=f?f:169776;j=g+(M[f+16>>2]<8?169776:J[f+12>>2])|0;f=0;while(1){c:{g=j+(f<<3)|0;l=K[g|0]|K[g+1|0]<<8;l=(l<<8|l>>>8)&65535;if(l>>>0>c>>>0)break c;k=K[g+2|0]|K[g+3|0]<<8;if(((k<<8|k>>>8)&65535)>>>0>>0)break c;k=0;if(!K[h+44|0]|!K[h+45|0])break b;f=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);if(f)f=j+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;j=K[f+2|0]|K[f+3|0]<<8;c=c-l|0;d:{e:{f:{g=K[f|0]|K[f+1|0]<<8;switch(((g<< -8|g>>>8)&65535)-1|0){case 2:break e;case 0:break f;default:break b}}c=f+(c<<2)|0;g=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);i=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(i>>>0<=g>>>0)break b;c=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);f=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;c=i-g|0;break d}c=f+(c<<1)|0;g=K[c+10|0]|K[c+11|0]<<8;g=g<<8|g>>>8;c=K[c+8|0]|K[c+9|0]<<8;i=c<<8|c>>>8;if((g& -65535)>>>0<=(i&65535)>>>0)break b;c=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=i&65535;f=f+c|0;c=(g&65535)-c|0}g=J[a+4>>2];i=g?g:169776;g=J[i+16>>2];if(g>>>0>>0|c>>>0>g-f>>>0)break b;g:{h:switch(((j<<8|j>>>8)&65535)-17|0){case 0:if(c>>>0<9)break b;break g;case 1:break h;default:break b}if(c>>>0<12)break b}c=(g>>>0<4?169776:J[i+12>>2])+f|0;J[d>>2]=H[c+2|0];J[d+4>>2]=H[c+3|0];J[d+8>>2]=K[c+1|0];J[d+12>>2]=0-K[c|0];k=1;if(!e)break b;ri(b,d);b=K[h+ -45|0];m=Q(M[a+8>>2]);n=Q(m/Q(K[h+44|0]));o=Q(V(Q(Q(n*Q(J[d>>2]))+Q(.5))));i:{if(Q(R(o))>2]=a;m=Q(m/Q(b>>>0));o=Q(V(Q(Q(m*Q(J[d+4>>2]))+Q(.5))));j:{if(Q(R(o))>2]=a;n=Q(V(Q(Q(n*Q(J[d+8>>2]))+Q(.5))));k:{if(Q(R(n))>2]=a;m=Q(V(Q(Q(m*Q(J[d+12>>2]))+Q(.5))));l:{if(Q(R(m))>2]=a;break b}f=f+1|0;if((i|0)!=(f|0))continue; -break}return 0}return k}function ti(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;a:{b:{c:{d:{e:{f:{g:{h:{d=K[a|0]|K[a+1|0]<<8;switch((d<<8|d>>>8)&65535){case 13:break c;case 12:break d;case 10:break e;case 6:break f;case 4:break g;case 0:break h;default:break a}}if(b>>>0>255)break a;a=K[(a+b|0)+6|0];if(!a)break a;J[c>>2]=a;break b}d=0;e=K[a+6|0]|K[a+7|0]<<8;f=e<<8|e>>>8;e=f&65535;i:{if(e>>>0<2)break i;d=K[a+2|0]|K[a+3|0]<<8;e=e>>>1|0;j=(((d<<8|d>>>8)&65535)-(e<<3)|0)-16>>>1|0;k=a+14| -0;a=f&65534;g=(k+a|0)+2|0;l=a+g|0;m=a+l|0;o=a+m|0;d=e-1|0;a=0;j:{while(1){f=a+d|0;h=f>>>1|0;i=k+(f&-2)|0;n=K[i|0]|K[i+1|0]<<8;k:{if(((n<<8|n>>>8)&65535)>>>0>=b>>>0){d=(e<<1)+i|0;d=K[d+2|0]|K[d+3|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<=b>>>0)break j;d=h-1|0;break k}a=h+1|0}if((a|0)<=(d|0))continue;break}d=0;break i}a=f>>1;d=(f&-2)+m|0;f=K[d|0]|K[d+1|0]<<8;if(f){d=0;e=a+(b-e|0)+(((f<<8|f>>>8)&65534)>>>1)|0;b=g+(a<<1)|0;b=K[b|0]|K[b+1|0]<<8;b=e-((b<<8|b>>>8)&65535)|0;if(b>>>0>=j>>>0)break i;b=(b<<1)+o|0; -b=K[b|0]|K[b+1|0]<<8;if(!b)break i;b=(b<<8|b>>>8)&65535}d=0;a=(a<<1)+l|0;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)+b&65535;if(!a)break i;J[c>>2]=a;d=1}return d}d=b;b=K[a+6|0]|K[a+7|0]<<8;b=d-((b<<8|b>>>8)&65535)|0;d=K[a+8|0]|K[a+9|0]<<8;if(b>>>0>=((d<<8|d>>>8)&65535)>>>0)a=169776;else a=((b<<1)+a|0)+10|0;a=K[a|0]|K[a+1|0]<<8;if(!a)break a;J[c>>2]=(a<<8|a>>>8)&65535;break b}d=b;b=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);b=d-(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;d=K[a+16|0]|K[a+17|0]<<8| -(K[a+18|0]<<16|K[a+19|0]<<24);if(b>>>0>=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)a=169776;else a=((b<<1)+a|0)+20|0;a=K[a|0]|K[a+1|0]<<8;if(!a)break a;J[c>>2]=(a<<8|a>>>8)&65535;break b}d=170435;e=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);l:{if((e|0)<=0)break l;i=a+16|0;a=e-1|0;e=0;while(1){g=a+e>>>1|0;f=i+P(g,12)|0;h=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);m:{if((h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))>>>0<=b>>>0){e=K[f+4|0]|K[f+5| -0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);if((e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))>>>0>>0){e=g+1|0;break m}d=i+P(g,12)|0;break l}a=g-1|0}if((a|0)>=(e|0))continue;break}}a=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);e=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(e>>>0>>0)break a;b=b-a|0;a=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);a=b+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;if(!a)break a;J[c>> -2]=a;break b}d=170435;e=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);n:{if((e|0)<=0)break n;i=a+16|0;a=e-1|0;e=0;while(1){g=a+e>>>1|0;f=i+P(g,12)|0;h=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);o:{if((h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))>>>0<=b>>>0){e=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);if((e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))>>>0>>0){e=g+1|0;break o}d=i+P(g,12)|0;break n}a=g-1|0}if((a|0)>=(e|0))continue;break}}a=K[d+8|0]| -K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(!a)break a;J[c>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}j=1}return j}function XB(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=Qb(16);if(c){J[c+12>>2]=24;J[c+4>>2]=25;J[c>>2]=0;J[c+8>>2]=26}if(!c)return 7;b=6;a:if(!(!c|!a)){d=Ab[J[c+4>>2]](c,208)|0;b=64;if(!d)break a;Nb(d+16|0,0,188);J[d+204>>2]=1;J[d+12>>2]=4;J[d+4>>2]=2;J[d+8>>2]=10;J[d>>2]=c;J[a>>2]=d;b=0}j=b;b:{if(b){Kb(c);break b}b=J[a>>2];Ze(b,17032);Ze(b,95988);Ze(b,98248);Ze(b,24508);Ze(b,100212); -Ze(b,30036);Ze(b,102324);Ze(b,103232);Ze(b,29408);Ze(b,30764);Ze(b,93504);Ze(b,31400);Ze(b,93688);Ze(b,93960);Ze(b,29324);Ze(b,21496)}i=J[a>>2];h=xb-432|0;xb=h;c:{c=yg(8924);if(!c)break c;while(1){b=0;d:{e:{f:{d=c;e=K[d|0];switch(e|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break e;case 0:break c;case 9:break d;default:break f}}if((e|0)==32)break d}g:{h:{i:{while(1){a=e&255;if(!a){e=b;break g}if((a|0)==58){e=b;break g}a=h+288|0;H[a+b|0]=e;e=b|1;f=K[d+1|0];if(!(!f|(f|0)==58)){H[a+e| -0]=f;e=b|2;f=K[d+2|0];if(!f|(f|0)==58)break h;H[a+e|0]=f;e=b|3;f=K[d+3|0];if(!f|(f|0)==58)break i;H[a+e|0]=f;d=d+4|0;e=128;b=b+4|0;if((b|0)==128)break g;e=K[d|0];continue}break}d=d+1|0;break g}d=d+3|0;break g}d=d+2|0}H[(h+288|0)+e|0]=0;if((d|0)==(c|0)|K[d|0]!=58)break c;a=1;e=d+1|0;b=0;j:{while(1){c=K[e|0];if(!c){c=b;break j}if((c|0)==61){c=b;break j}H[(h+144|0)+b|0]=c;c=b|1;f=a+1|0;e=f+d|0;g=K[e|0];if(!g){a=f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;c=b|2;f=a+2|0;e=f+d|0;g=K[e|0];if(!g){a= -f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;c=b|3;f=a+3|0;e=f+d|0;g=K[e|0];if(!g){a=f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;a=a+4|0;e=d+a|0;c=128;b=b+4|0;if((b|0)!=128)continue;break}a=129}H[(h+144|0)+c|0]=0;if((a|0)==1|K[e|0]!=61)break c;a=1;c=e+1|0;b=0;k:{while(1){f=a;d=b;l:{m:{g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break l;default:break m}}if((g|0)!=32)break l;break k}H[b+h|0]=g;d=b|1;n:{o:{f=a+1|0;c=e+f|0;g= -K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break n;default:break o}}if((g|0)==32)break k}H[d+h|0]=g;d=b|2;p:{q:{f=a+2|0;c=e+f|0;g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break p;default:break q}}if((g|0)==32)break k}H[d+h|0]=g;d=b|3;r:{s:{f=a+3|0;c=e+f|0;g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break r;default:break s}}if((g|0)==32)break k}H[d+ -h|0]=g;a=a+4|0;c=e+a|0;d=128;b=b+4|0;if((b|0)!=128)continue;break}f=129}H[d+h|0]=0;t:{u:{a=K[c|0];switch(a|0){case 0:case 9:break t;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break c;default:break u}}if((a|0)!=32)break c}if((f|0)==1)break c;b=h+288|0;d=h+144|0;v:{if(!i)break v;w:{if(!h|(!b|!d))break w;a=i+20|0;f=J[i+16>>2];e=a+(f<<2)|0;x:{if((f|0)<=0)break x;while(1){if(!fc(J[J[J[a>>2]>>2]+8>>2],b))break x;a=a+4|0;if(e>>>0>a>>>0)continue;break}}if((a|0)==(e|0))break v;b=J[a>>2];e=J[J[b>> -2]+32>>2];if(!e)break w;b=Ab[e|0](b,11331)|0;if(!b)break w;b=J[b>>2];if(!b)break w;Ab[b|0](J[a>>2],d,h,1)|0}}if(!K[c|0])break c}c=c+1|0;continue}}xb=h+432|0;return j}function ie(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=xb-16|0;xb=j;g=J[a>>2];a:{b:{f=J[a+4>>2];c:{if(!f){f=0;break c}if(J[a+40>>2])break c;e=f<<1;if((e|0)<0){d=6;break b}if(e){d=10;if(e>>>0>268435455)break b;f=f<<4;d=Ab[J[g+4>>2]](g,f)|0;if(!d){d=64;J[a+40>>2]=0;break a}Nb(d,0,f);f=J[a+4>>2]}H[a+16|0]=1;J[a+40>>2]=d;i=(f<< -3)+d|0;J[a+44>>2]=i;e=J[a+24>>2];if(e)h=e+(I[a+22>>1]<<3)|0;else h=0;J[a+60>>2]=h;k=a- -64|0;e=J[a+28>>2];if(e)h=e+I[a+22>>1]|0;else h=0;J[k>>2]=h;e=J[a+32>>2];if(e)h=e+(I[a+20>>1]<<1)|0;else h=0;J[a+68>>2]=h;e=I[a+22>>1]<<3;J[a+80>>2]=e+i;J[a+76>>2]=d+e}d:{e:{f:{b=I[a+58>>1]+(I[a+22>>1]+b|0)|0;k=b>>>0<=f>>>0;g:{if(k){b=f;break g}d=10;e=b+7|0;b=e&-8;if(b>>>0>32767)break a;d=J[a+24>>2];if((f|e)<0)break f;h:{i:{j:{if(!b){if(d)Ab[J[g+8>>2]](g,d);e=0;J[a+24>>2]=0;i=a+28|0;d=J[i>>2];if(!d)break j;Ab[J[g+ -8>>2]](g,d);break j}h=(b|0)<=(f|0);k:{if(!f){e=Ab[J[g+4>>2]](g,b<<3)|0;d=!e<<6;break k}i=Ab[J[g+12>>2]](g,f<<3,b<<3,d)|0;e=i?i:d;d=!i<<6}l:{if(e?h|d:1){J[a+24>>2]=e;if(!d)break l;break e}Nb((f<<3)+e|0,0,b-f<<3);J[a+24>>2]=e}i=a+28|0;m:{if(!f){e=Ab[J[g+4>>2]](g,b)|0;d=!e<<6;break m}e=J[a+28>>2];d=Ab[J[g+12>>2]](g,f,b,e)|0;e=d?d:e;d=!d<<6}if(d|h|!e)break i;Nb(f+e|0,0,b-f|0)}J[j+12>>2]=0;J[i>>2]=e;break h}J[j+12>>2]=d;J[a+28>>2]=e;if(d)break e}if(K[a+16|0]){e=Tb(g,8,f<<1,b<<1,J[a+40>>2],j+12|0);J[a+ -40>>2]=e;d=J[j+12>>2];if(d)break e;d=b<<3;f=f<<3;qc(d+e|0,f+e|0,f);J[a+44>>2]=d+J[a+40>>2]}J[a+4>>2]=b}if(!(J[a+40>>2]|!b)){f=b<<1;if((f|0)<0){d=6;break d}n:{if(!f){f=0;break n}d=10;if(f>>>0>268435455)break d;d=J[a>>2];b=b<<4;f=Ab[J[d+4>>2]](d,b)|0;if(!f){d=64;J[a+40>>2]=0;break a}Nb(f,0,b);b=J[a+4>>2]}H[a+16|0]=1;J[a+40>>2]=f;d=(b<<3)+f|0;J[a+44>>2]=d;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;h=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[h>>2]=b;b=J[a+32>>2];if(b)b= -b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;b=I[a+22>>1]<<3;J[a+80>>2]=b+d;J[a+76>>2]=b+f}d=0;J[j+12>>2]=0;b=I[a+56>>1]+(I[a+20>>1]+c|0)|0;c=J[a+8>>2];o:{if(b>>>0>c>>>0){d=10;b=b+3&-4;if(b>>>0>32767)break a;l=a,m=Tb(g,2,c,b,J[a+32>>2],j+12|0),J[l+32>>2]=m;d=J[j+12>>2];if(d)break e;J[a+8>>2]=b;break o}if(k)break a}d=0;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;c=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[c>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>> -2]=b;if(!K[a+16|0])break a;b=I[a+22>>1]<<3;J[a+76>>2]=b+J[a+40>>2];J[a+80>>2]=b+J[a+44>>2];break a}J[a+24>>2]=d;d=6}b=J[a>>2];c=J[a+24>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+24>>2]=0;c=J[a+28>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+28>>2]=0;c=J[a+32>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+32>>2]=0;c=J[a+40>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+40>>2]=0;c=J[a+52>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+36>>2]=0;J[a+88>>2]=J[a+52>>2];b=J[a+48>>2];J[a+ -80>>2]=J[a+44>>2];J[a+84>>2]=b;b=J[a+40>>2];J[a+72>>2]=J[a+36>>2];J[a+76>>2]=b;b=J[a+32>>2];J[a+64>>2]=J[a+28>>2];J[a+68>>2]=b;b=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>>2]=b;break a}J[a+40>>2]=0;break a}J[a+40>>2]=0}xb=j+16|0;return d}function hH(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;e=J[b+12>>2];f=J[b+4>>2];a:{if(e>>>0>>0)break a;l=J[b+8>>2];if((K[a|0]|K[a+1|0]<<8)!=256|l-a>>>0<4)break a;c=a+4|0;if(e>>>0>>0|l-c>>>0<4)break a;g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3| -0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(g>>>0>536870911)break a;h=a+8|0;if(e>>>0>>0)break a;g=g<<3;if(g>>>0>l-h>>>0)break a;g=J[b+16>>2]-g|0;J[b+16>>2]=g;if((g|0)<=0)break a;d=1;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(!c)break a;d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);n=d>>>0<=1?1:d;l=0;while(1){b:{c:{h=J[b+12>>2];g=((l<<3)+a|0)+8|0;f=J[b+4>>2];if(h>>>0>>0)break c;i=J[b+8>>2];if(K[g|0]&128|i-g>>>0<4)break c;d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);d:{if(!d)break d; -c=0;e=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0;e:{if(h>>>0>>0|i-e>>>0<2)break e;d=e+2|0;if(h>>>0>>0)break e;f=i-d|0;d=K[e|0]|K[e+1|0]<<8;d=((d<<8|d>>>8)&65535)<<2;if(f>>>0>>0)break e;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break e;c=1;d=K[e|0]|K[e+1|0]<<8;if(!d)break e;d=(d<<8|d>>>8)&65535;k=d>>>0<=1?1:d;d=0;while(1){c=0;i=J[b+12>>2];f=(e+(d<<2)|0)+2|0;h=J[b+4>>2];if(i>>>0>>0)break e;j=J[b+8>>2];if(j-f>>>0<4)break e;if(K[f|0]&128)break e;c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16| -K[f+3|0]<<24);f:{if(!c)break f;c=e+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;g:{if(i>>>0>>0)break g;j=j-c|0;if(j>>>0<2)break g;if((K[c|0]|K[c+1|0]<<8)!=256)break f;if(i>>>0>>0)break g;if(j>>>0>7)break f}c=0;h=J[b+32>>2];if(h>>>0>31)break e;J[b+32>>2]=h+1;if(!K[b+28|0])break e;H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0}c=1;d=d+1|0;if((k|0)!=(d|0))continue;break}}if(c)break d;d=J[b+32>>2];if(d>>>0>31)break c;J[b+32>>2]=d+1;if(!K[b+28|0])break c;H[g|0]=0;H[g+1|0]=0;H[g+2|0]=0;H[g+3|0]=0}h= -J[b+12>>2];g=g+4|0;e=J[b+4>>2];if(h>>>0>>0)break c;i=J[b+8>>2];if(K[g|0]&128|i-g>>>0<4)break c;d=1;f=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);h:{if(!f)break h;c=0;f=(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))+a|0;i:{if(h>>>0>>0|i-f>>>0<4|(K[f|0]|K[f+1|0]<<8)!=256)break i;k=f+4|0;if(h>>>0>>0|i-k>>>0<2)break i;j=f+6|0;if(h>>>0>>0)break i;e=K[f+4|0]|K[f+5|0]<<8;e=P((e<<8|e>>>8)&65535,6);if(e>>>0>i-j>>>0)break i;e=J[b+16>>2]-e|0;J[b+16>>2]=e;if((e|0)<=0)break i;c=1;e=K[k|0]|K[k+ -1|0]<<8;if(!e)break i;c=(e<<8|e>>>8)&65535;i=c>>>0<=1?1:c;h=0;j:{while(1){j=J[b+12>>2];c=f+P(h,6)|0;e=c+6|0;k=J[b+4>>2];if(j>>>0>>0)break j;m=J[b+8>>2];if(m-e>>>0<6)break j;c=c+8|0;if(j>>>0>>0|m-c>>>0<4|K[c|0]&128)break j;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);k:{if(!e)break k;if(gH(f+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0,b,0))break k;e=J[b+32>>2];if(e>>>0>31)break j;J[b+32>>2]=e+1;if(!K[b+28|0])break j;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0}c=1;h=h+1|0;if((i|0)!=(h|0))continue; -break}break i}c=0}if(c)break h;d=J[b+32>>2];if(d>>>0>31)break c;J[b+32>>2]=d+1;d=0;if(!K[b+28|0])break h;H[g|0]=0;H[g+1|0]=0;H[g+2|0]=0;H[g+3|0]=0;d=1}break b}d=0}if(!d)break a;l=l+1|0;if((n|0)!=(l|0))continue;break}}return d}function ei(a,b,c){var d=0,e=0,f=0,g=0,h=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;d=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=d+(K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24))|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;d=K[c+ -64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24)|b<>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;if((e|0)>=8){f=c+72|0;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);while(1){e=b+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330|0]=e>>>16;H[c+331|0]=e>>>24;H[(b+c|0)+72|0]=d;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);if((b|0)>=255){d=J[a+1064>>2];Ab[J[J[d>>2]+44>>2]](d,b&255)|0;b=J[a+1064>>2];Ab[J[J[b>>2]+16>>2]](b,f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16| -K[c+331|0]<<24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0;H[c+331|0]=0;b=0}d=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=d;H[c+65|0]=d>>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}}b=(K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24))+1|0;H[c+32|0]=b;H[c+33|0]=b>>>8;H[c+34|0]=b>>>16;H[c+35|0]=b>>>24;g=K[c+36|0]|K[c+37|0]<<8| -(K[c+38|0]<<16|K[c+39|0]<<24);if((g|0)<=(b|0)){h=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);f=h+1|0;H[c+24|0]=f;H[c+25|0]=f>>>8;H[c+26|0]=f>>>16;H[c+27|0]=f>>>24;f=g+(1<>>8;H[c+38|0]=f>>>16;H[c+39|0]=f>>>24}if((b|0)>=(K[c+44|0]|K[c+45|0]<<8|(K[c+46|0]<<16|K[c+47|0]<<24))){b=(K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24))+e|0;H[c+68|0]=b;H[c+69|0]=b>>>8;H[c+70|0]=b>>>16;H[c+71|0]=b>>>24;d=(K[c+56|0]|K[c+57|0]<<8|(K[c+58|0]<<16|K[c+59|0]<<24))<>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;if((b|0)>=8){f=c+72|0;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);while(1){e=b+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330|0]=e>>>16;H[c+331|0]=e>>>24;H[(b+c|0)+72|0]=d;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);if((b|0)>=255){d=J[a+1064>>2];Ab[J[J[d>>2]+44>>2]](d,b&255)|0;b=J[a+1064>>2];Ab[J[J[b>>2]+16>>2]](b,f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0; -H[c+331|0]=0;b=0}d=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=d;H[c+65|0]=d>>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}}H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=1;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;a=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);H[c+24| -0]=a;H[c+25|0]=a>>>8;H[c+26|0]=a>>>16;H[c+27|0]=a>>>24;a=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);H[c+36|0]=a;H[c+37|0]=a>>>8;H[c+38|0]=a>>>16;H[c+39|0]=a>>>24;a=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24);H[c+44|0]=a;H[c+45|0]=a>>>8;H[c+46|0]=a>>>16;H[c+47|0]=a>>>24}}function mP(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;l=xb-16|0;xb=l;c=Nb(c,0,652);f=K[b+8|0];H[c+188|0]=f;a:{if(!f)break a;if(f>>>0>=4){i=f&252;g=c+192|0;h=b+12|0;while(1){J[g+(d<<2)>>2]= -I[h+(d<<1)>>1];k=d|1;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];k=d|2;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];k=d|3;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];d=d+4|0;j=j+4|0;if((i|0)!=(j|0))continue;break}}f=f&3;if(!f)break a;j=0;while(1){J[(c+(d<<2)|0)+192>>2]=I[((d<<1)+b|0)+12>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+9|0];H[c+189|0]=g;b:{if(!g)break b;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+248|0;i=b+40|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1]; -e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break b;while(1){J[(c+(d<<2)|0)+248>>2]=I[((d<<1)+b|0)+40>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+10|0];H[c+190|0]=g;c:{if(!g)break c;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+288|0;i=b+60|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3; -if(!f)break c;while(1){J[(c+(d<<2)|0)+288>>2]=I[((d<<1)+b|0)+60>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+11|0];H[c+191|0]=g;d:{if(!g)break d;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+344|0;i=b+88|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break d;while(1){J[(c+(d<<2)|0)+344>>2]=I[((d<<1)+b|0)+88>>1];d=d+1|0;j=j+1|0;if((f| -0)!=(j|0))continue;break}}J[c+384>>2]=J[b+108>>2];J[c+388>>2]=J[b+112>>2];J[c+392>>2]=J[b+116>>2];J[c+396>>2]=L[b+120>>1];J[c+400>>2]=L[b+122>>1];g=K[b+124|0];H[c+404|0]=g;e:{if(!g)break e;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+408|0;i=b+128|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break e;while(1){J[(c+(d<<2)|0)+408>>2]=I[((d<<1)+b| -0)+128>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+125|0];H[c+405|0]=g;f:{if(!g)break f;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+460|0;i=b+154|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break f;while(1){J[(c+(d<<2)|0)+460>>2]=I[((d<<1)+b|0)+154>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}H[c+512|0]=K[b+126|0];J[c+520>> -2]=J[b+4>>2];J[c+524>>2]=J[b+184>>2];b=J[b+180>>2];J[c+552>>2]=c;J[c+528>>2]=b;g:{h:{a=J[a+128>>2];d=J[a+60>>2];if((d|0)==-1)break h;J[c+648>>2]=d;if(!d)break h;while(1){b=d<<13^d;b=b>>>17^b;d=b<<5^b;if((d|0)<0)continue;break}J[a+60>>2]=d;break g}a=l+4^(l+8^l+12);a=a>>>20^a>>>10^a;J[c+648>>2]=a?a:29572}xb=l+16|0}function yB(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;i=xb-16|0;xb=i;m=J[a+72>>2];k=J[a+64>>2];j=J[a+68>>2];a:{if(!c)break a;b:{c:{d:{e:{f:{g:switch(J[a>>2]){case 0:if(bc(J[a+ -164>>2],2))break f;if((or(J[a+164>>2],i+12|0,1)|0)!=1)break f;h=K[i+12|0];J[a+44>>2]=h&128;f=h&31;J[a+40>>2]=f;d=1<>2]=d-256;if(f>>>0>16)break f;J[a+52>>2]=9;J[a+56>>2]=h>>>7;J[a+60>>2]=f>>>0>9?256:d-255|0;m=0;f=Gn(a);if(f>>>0>255)break f;if(b)H[b|0]=f;if(c>>>0<2)break e;h=1;J[a>>2]=1;j=f;k=f;break;case 2:break d;case 1:break g;default:break a}d=0;break c}f=0;break b}d=1;j=f;k=f;break a}d=1}while(1){h:{i:{j:{k:{if(!d){d=Gn(a);f=h;if((d|0)<0)break b;if((d|0)!=256)break k;if(!J[a+44>>2]){m= -256;break j}H[a+32|0]=1;j=0;J[a+56>>2]=0;d=Gn(a);if((d|0)<0)break h;while(1){if((d|0)!=256){k=0;break k}if(!J[a+44>>2]){k=0;m=256;break j}H[a+32|0]=1;J[a+56>>2]=0;d=Gn(a);if((d|0)>=0)continue;break}break h}l:{if(b){while(1){h=J[a+92>>2];if(!h)break l;h=h-1|0;J[a+92>>2]=h;H[b+e|0]=K[h+J[a+88>>2]|0];e=e+1|0;if((e|0)!=(c|0))continue;break}d=c;break a}d=J[a+92>>2];while(1){if(!d)break l;d=d-1|0;J[a+92>>2]=d;e=e+1|0;if((e|0)!=(c|0))continue;break}d=c;break a}h=e;d=J[a+56>>2];if(d>>>0>2]){g=J[a+ -84>>2];if(g>>>0<=d>>>0){d=g?g+(g>>>2|0)|0:512;l=Tb(J[a+168>>2],3,g,d,J[a+76>>2],i+12|0);J[a+76>>2]=l;f=e;if(J[i+12>>2])break b;f=l+(d<<1)|0;J[a+80>>2]=f;qc(f,l+(g<<1)|0,g);J[a+84>>2]=d;d=J[a+56>>2]}I[J[a+76>>2]+(d<<1)>>1]=k;H[J[a+80>>2]+d|0]=j;J[a+56>>2]=J[a+56>>2]+1}J[a>>2]=1;k=m;d=0;continue}m=d;g=d;if(d>>>0<256)break i}m:{g=m;d=g-256|0;e=J[a+56>>2];if(d>>>0>>0)break m;f=h;if(d>>>0>e>>>0)break b;d=J[a+92>>2];e=J[a+96>>2];n:{if(d>>>0>>0){e=J[a+88>>2];break n}f=((e>>>1|0)+e|0)+4|0;l=J[a+168>> -2];o:{p:{q:{r:{g=J[a+88>>2];if((g|0)!=(a+100|0)){d=65536;if(f>>>0>65536)break r;d=f;break q}g=0;J[a+88>>2]=0;d=f>>>0>=65536?65536:f;e=0;break q}if((e|0)==65536)break p}e=Tb(l,1,e,d,g,i+12|0);J[a+88>>2]=e;if(!J[i+12>>2])break o}f=h;break b}J[a+96>>2]=d;d=J[a+92>>2]}J[a+92>>2]=d+1;H[d+e|0]=j;g=k;if(g>>>0>=256)break m;break i}l=a+100|0;d=J[a+76>>2];while(1){f=h;if(!d)break b;d=J[a+88>>2];e=J[a+92>>2];f=J[a+96>>2];if(e>>>0>=f>>>0){e=((f>>>1|0)+f|0)+4|0;n=J[a+168>>2];s:{t:{u:{if((d|0)!=(l|0)){if(e>>>0<= -65536)break u;e=65536;if((f|0)==65536)break t;break u}d=0;J[a+88>>2]=0;e=e>>>0>=65536?65536:e;f=0}d=Tb(n,1,f,e,d,i+12|0);J[a+88>>2]=d;if(!J[i+12>>2])break s}f=h;break b}J[a+96>>2]=e;e=J[a+92>>2]}f=g-256|0;g=K[f+J[a+80>>2]|0];J[a+92>>2]=e+1;H[d+e|0]=g;d=J[a+76>>2];g=L[d+(f<<1)>>1];if(g>>>0>255)continue;break}}d=J[a+92>>2];e=J[a+96>>2];v:{if(d>>>0>>0){e=J[a+88>>2];break v}f=((e>>>1|0)+e|0)+4|0;l=J[a+168>>2];w:{x:{y:{z:{j=J[a+88>>2];if((j|0)!=(a+100|0)){d=65536;if(f>>>0>65536)break z;d=f;break y}j= -0;J[a+88>>2]=0;d=f>>>0>=65536?65536:f;e=0;break y}if((e|0)==65536)break x}e=Tb(l,1,e,d,j,i+12|0);J[a+88>>2]=e;if(!J[i+12>>2])break w}j=g;f=h;break b}J[a+96>>2]=d;d=J[a+92>>2]}J[a+92>>2]=d+1;H[d+e|0]=g;J[a>>2]=2;j=g;e=h;d=1;continue}break}k=0;f=h}d=f;J[a>>2]=3}J[a+72>>2]=m;J[a+68>>2]=j;J[a+64>>2]=k;xb=i+16|0;return d}function RG(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;d=K[a+2|0]|K[a+3|0]<<8;if(d)c=((d<<8|d>>>8)&65535)+a|0;else c=169776;d=J[b+88>>2];d=ld(c,J[J[d+80>>2]+P(J[d+64>>2],20)>> -2]);if((d|0)!=-1){f=K[a+4|0]|K[a+5|0]<<8;d=d>>>0>=((f<<8|f>>>8)&65535)>>>0?169776:((d<<1)+a|0)+6|0;d=K[d|0]|K[d+1|0]<<8;if(d)f=((d<<8|d>>>8)&65535)+a|0;else f=169776;g=K[f|0]|K[f+1|0]<<8;h=(g<<8|g>>>8)&65535;a:{b:{c:{if(h>>>0<=4)break c;c=J[J[b+88>>2]+64>>2];J[b+4>>2]=c;a=J[J[b+8>>2]+88>>2];d=J[a+68>>2];J[b+36>>2]=d;e=J[a+64>>2]==(c|0)?K[(J[a+80>>2]+P(c,20)|0)+15|0]:e;J[b+28>>2]=0;J[b+32>>2]=0;J[b+24>>2]=838;H[b+23|0]=K[b+22|0]?e:0;j=d-1|0;if((j|0)<=(c|0))break c;while(1){a=c+1|0;J[b+4>>2]=a;d=J[b+ -12>>2];e=J[b+8>>2];c=J[J[e+88>>2]+80>>2]+P(a,20)|0;a=L[c+12>>1];d:{if(d&a&14)break d;if(a&8)if(!Bd(e,J[c>>2],a,d))break d;d=1;a=L[c+16>>1];if(!(K[c+12|0]&16|(a&96)!=32|!K[b+20|0]&(a&543)==513))d=!K[b+21|0]&(a&287)==257;e=J[b+32>>2];if(e){a=K[e|0]|K[e+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;e:{if(!(J[b+16>>2]&J[c+4>>2]))break e;i=K[b+23|0];if((i|0)!=K[c+15|0]?i:0)break e;i=J[b+24>>2];f:{if(i){if(!(Ab[i|0](c,a,J[b+28>>2])|0))break e;e=J[b+32>>2];break f}if(!d)break d}if(e)J[b+32>>2]=e+2;e=J[b+12>>2]; -i=J[J[b+88>>2]+80>>2];a=J[b+4>>2];d=i+P(a,20)|0;c=L[d+12>>1];if(e&c&14)break c;j=J[d>>2];if(c&8)if(!Bd(J[b+8>>2],j,c,e))break c;c=L[(i+P(a,20)|0)+16>>1];if(!(K[d+12|0]&16|(c&96)!=32|!K[b+20|0]&(c&543)==513))if(K[b+21|0]|(c&287)!=257)break c;e=a+1|0;h=h>>>0<=1?1:h;d=0;a=0;while(1){g:{h:{c=f+(d<<1)|0;c=K[c+2|0]|K[c+3|0]<<8;if(c)c=f+((c<<8|c>>>8)&65535)|0;else c=169776;g=K[c+2|0]|K[c+3|0]<<8;if(((g<<8|g>>>8)&65535)>>>0>=2){g=K[c+4|0]|K[c+5|0]<<8;if((j|0)!=((g<<8|g>>>8)&65535))break h}if(GG(c,b)){d=1; -if(!a)break b;b=J[b+88>>2];if(!(K[b+16|0]&64))break b;a=J[b+64>>2];J[b+144>>2]=J[b+144>>2]|32;f=J[b+68>>2];f=e>>>0>f>>>0?f:e;if(f>>>0<=a>>>0)break b;h=f+(a^-1)|0;e=J[b+80>>2];b=f-a&3;if(b){c=0;while(1){g=e+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}if(h>>>0<3)break b;while(1){b=e+P(a,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]|2;b=b- -64|0;J[b>>2]=J[b>>2]|2;a=a+4|0;if((f|0)!=(a|0))continue;break}break b}d=d+1|0;if((h|0)!=(d|0))continue; -if(a)break g;a=0;break a}a=1;d=d+1|0;if((h|0)!=(d|0))continue}break}d=0;b=J[b+88>>2];if(!(K[b+16|0]&64))break b;a=J[b+64>>2];J[b+144>>2]=J[b+144>>2]|32;f=J[b+68>>2];f=e>>>0>f>>>0?f:e;if(f>>>0<=a>>>0)break b;h=f+(a^-1)|0;e=J[b+80>>2];b=f-a&3;if(b){c=0;while(1){d=e+P(a,20)|0;J[d+4>>2]=J[d+4>>2]|2;a=a+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}d=0;if(h>>>0<3)break b;while(1){b=e+P(a,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]|2;b=b- -64|0;J[b>>2]=J[b>>2]|2;a=a+4|0;if((f| -0)!=(a|0))continue;break}break b}if(d)break c}c=J[b+4>>2];if((j|0)>(c|0))continue;break}}a=0;if(!g)break a;e=h>>>0<=1?1:h;c=0;while(1){a=f+(c<<1)|0;a=K[a+2|0]|K[a+3|0]<<8;if(a)a=f+((a<<8|a>>>8)&65535)|0;else a=169776;d=GG(a,b);if(d)break b;c=c+1|0;if((e|0)!=(c|0))continue;break}}a=d}}else a=0;return a|0}function Ig(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{j=K[a+409|0];if(j){e=J[a+356>>2];l=K[a+399|0];d=J[a+320>>2];f=J[a+376>>2];if(f)if((f|0)!=((j>>>0>=8?P(j>>>3|0,d):P(d,j)+7>>> -3|0)|0))break c;if(!d)break b;k=P(d,j);f=k&7;h=0;d:{if(!f)break d;i=((j>>>0>7?P(j>>>3|0,d):k+7>>>3|0)+b|0)-1|0;m=K[i|0];h=255<>>f|0}f=e+1|0;e:{f:{g:{if(!K[a+398|0])break g;g=J[a+208>>2];if(!(g&2)|l>>>0>5)break g;h:{i:switch(c|0){case 0:e=l&1;break h;case 1:break i;default:break g}e=1;if(!(l&1))break g}k=e<<3-(l+1>>>1|0)&7;if(k>>>0>=d>>>0)break e;if(j>>>0<=7){k=(j|0)!=1?(j|0)==2?1:2:0;e=8/(j>>>0)|0;j:{if(g&65536){a=(P(k,12)+(l<<1&508)|0)+262400|0;if(c)break j;a=(P(k, -24)+(l<<2)|0)+262256|0;break j}a=(P(k,12)+(l<<1&508)|0)+262436|0;if(c)break j;a=(P(k,24)+(l<<2)|0)+262328|0}a=J[a>>2];while(1){c=a&255;if(c){if((c|0)!=255)c=K[f|0]&a|K[b|0]&(a^-1);else c=K[f|0];H[b|0]=c}if(d>>>0<=e>>>0)break f;a=Opa(a,24);f=f+1|0;b=b+1|0;d=d-e|0;continue}}if(j&7)break a;e=j>>>3|0;h=P(e,d-k|0);i=e;if(c){a=e<<(6-l>>>1);i=a>>>0>>0?a:h}c=P(e,k);a=c+f|0;d=b+c|0;g=e<<(7-l>>>1);k:switch(i-1|0){case 2:H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];if(g>>>0>=h>>>0)break e;while(1){d= -d+g|0;a=a+g|0;H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];h=h-g|0;if(g>>>0>>0)continue;break}break e;case 0:H[d|0]=K[a|0];if(g>>>0>=h>>>0)break e;while(1){d=d+g|0;a=a+g|0;H[d|0]=K[a|0];h=h-g|0;if(g>>>0>>0)continue;break}break e;case 1:while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];if(g>>>0>=h>>>0)break e;d=d+g|0;a=a+g|0;h=h-g|0;if(h>>>0>1)continue;break}H[d|0]=K[a|0];return;default:break k}if(!((g|(a|i))&1|(d&1|i>>>0>15))){b=g-i|0;if(!((g|(a|d|i))&3)){f=0;b=b&-4;e=h;while(1){c=f;f=i;while(1){J[d>> -2]=J[a>>2];d=d+4|0;a=a+4|0;f=f-4|0;if(f)continue;break}if(g>>>0>=e>>>0)break e;f=c+1|0;d=b+d|0;a=a+b|0;e=e-g|0;if(i>>>0<=e>>>0)continue;break}f=e&7;if(f){b=0;while(1){H[d|0]=K[a|0];e=e-1|0;d=d+1|0;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(((g^-1)+h|0)-P(c,g)>>>0<7)break e;while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];H[d+3|0]=K[a+3|0];H[d+4|0]=K[a+4|0];H[d+5|0]=K[a+5|0];H[d+6|0]=K[a+6|0];H[d+7|0]=K[a+7|0];d=d+8|0;a=a+8|0;e=e-8|0;if(e)continue;break}break e}f=0;b=b&-2;e=h;while(1){c= -f;f=i;while(1){I[d>>1]=L[a>>1];d=d+2|0;a=a+2|0;f=f-2|0;if(f)continue;break}if(g>>>0>=e>>>0)break e;f=c+1|0;d=b+d|0;a=a+b|0;e=e-g|0;if(i>>>0<=e>>>0)continue;break}f=e&7;if(f){b=0;while(1){H[d|0]=K[a|0];e=e-1|0;d=d+1|0;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(((g^-1)+h|0)-P(c,g)>>>0<7)break e;while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];H[d+3|0]=K[a+3|0];H[d+4|0]=K[a+4|0];H[d+5|0]=K[a+5|0];H[d+6|0]=K[a+6|0];H[d+7|0]=K[a+7|0];d=d+8|0;a=a+8|0;e=e-8|0;if(e)continue;break}break e}Mb(d, -a,i);if(g>>>0>=h>>>0)break e;while(1){d=d+g|0;a=a+g|0;h=h-g|0;i=h>>>0>i>>>0?i:h;Mb(d,a,i);if(g>>>0>>0)continue;break}break e}Mb(b,f,j>>>0>7?P(j>>>3|0,d):k+7>>>3|0)}if(!i)break e;H[i|0]=K[i|0]&(h^-1)|h&m}return}gc(a,262163);B()}gc(a,262188);B()}gc(a,262224);B()}gc(a,262472);B()}function m9(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;g=xb-96|0;xb=g;J[g+88>>2]=f;J[g+92>>2]=e;a:{b:{c:{d:{e:{f:{if(!b|!c)break f;OA(J[a+20>>2],0,b);i=J[a+8>> -2];o=Ab[J[J[i>>2]+52>>2]](i)|0;i=J[a+8>>2];r=0,s=Ab[J[J[i>>2]+24>>2]](i)|0,q=J[J[0]+24>>2],Ab[q](r|0,s|0);Ab[J[J[o>>2]+68>>2]](o,0);Ab[J[J[0]+460>>2]](0,o);if((f|0)==-1){Ab[J[J[a>>2]+36>>2]](a,g+24|0,g+8|0,g+80|0,g+72|0);n=O[g+80>>3];if(n<0){n=-n;O[g+80>>3]=n}k=O[g+72>>3];p=k<0?-k:k;e=J[g+92>>2];if((e|0)<0){k=n*96/25.4;g:{if(R(k)<2147483648){e=~~k;break g}e=-2147483648}J[g+92>>2]=e}k=p*+(e|0)/n;h:{if(R(k)<2147483648){f=~~k;break h}f=-2147483648}J[g+88>>2]=f}O[g+80>>3]=+(e|0)*25.4/96;O[g+72>>3]=+(f| -0)*25.4/96;i=P(e,f);j=Mp(i<<2);if(!j)break f;i:{if((i|0)<=0)break i;e=0;if(i>>>0>=8){f=i&-8;while(1){m=e<<2;J[m+j>>2]=16777215;J[j+(m|4)>>2]=16777215;J[j+(m|8)>>2]=16777215;J[j+(m|12)>>2]=16777215;J[j+(m|16)>>2]=16777215;J[j+(m|20)>>2]=16777215;J[j+(m|24)>>2]=16777215;J[j+(m|28)>>2]=16777215;e=e+8|0;l=l+8|0;if((l|0)!=(f|0))continue;break}}f=i&7;if(!f)break i;while(1){J[j+(e<<2)>>2]=16777215;e=e+1|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}h=g+24|0;J[h>>2]=0;J[h+4>>2]=0;H[h+40|0]=0;J[h+32>>2]=0;J[h+ -36>>2]=-1074790400;H[h+21|0]=0;H[h+22|0]=0;H[h+23|0]=0;H[h+24|0]=0;H[h+25|0]=0;H[h+26|0]=0;H[h+27|0]=0;H[h+28|0]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[195395]=0;J[h+16>>2]=j;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[195395]=0;J[h+4>>2]=J[g+92>>2];e=J[195395];J[195395]=0;if((e|0)==1)break d;J[195395]=0;J[h+8>>2]=J[g+88>>2];e=J[195395];J[195395]=0;if((e|0)==1)break d;J[195395]=0;J[g+8>>2]=0-(J[g+92>>2]<<2);f=g+8|0;J[h+12>>2]=J[f>>2];e=J[195395];J[195395]=0;if((e|0)==1)break e;e= -J[J[0]+488>>2];J[195395]=0;$(e|0,0,h|0);e=J[195395];J[195395]=0;if((e|0)==1)break d;e=J[J[0]+480>>2];J[195395]=0;$(e|0,0,0);e=J[195395];J[195395]=0;if((e|0)==1)break d;e=J[J[0]+36>>2];J[195395]=0;ca(e|0,0,g+80|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;e=J[J[0]+28>>2];J[195395]=0;ca(e|0,0,g+72|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[195395]=0;ub(1799,a|0,b|0,0,0,0,+O[g+80>>3],+O[g+72>>3])|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;l=id(c);if(l>>>0>=1073741808){J[195395]=0;ea(1800, -f|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;break a}j:{if(l>>>0<=1){H[g+19|0]=l;e=g+8|0;break j}a=l|3;if(a>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break c}J[195395]=0;b=a+1|0;e=_(1078,b<<2)|0;a=J[195395];J[195395]=0;if((a|0)==1)break c;J[g+8>>2]=e;J[g+12>>2]=l;J[g+16>>2]=b|-2147483648}a=l<<2;q=Mb(e,c,a)+a|0,s=0,J[q>>2]=s;J[195395]=0;aa(1801,h|0,g+8|0,d|0)|0;a=J[195395];J[195395]=0;k:{if((a|0)!=1){if(H[g+19|0]<0)Kb(J[g+8>>2]);a=J[J[o>>2]+12>>2];J[195395]= -0;_(a|0,o|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break k;break d}f=Z()|0;if(H[g+19|0]>=0)break b;Kb(J[g+8>>2]);break b}a=J[J[0]+12>>2];J[195395]=0;_(a|0,0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;kd(h)}xb=g+96|0;return}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0}kd(h);ba(f|0);B()}B()}function Qd(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,w=0,y=0,B=0,C=0,D=0,E=0;o=xb-16|0;xb=o;A(+b);e=v(1)|0;l=v(0)|0;A(+a);f=v(1)|0;c=v(0)|0;r=e>>>20|0;s=r&2047;t=s-1086| -0;j=f>>>20|0;a:{b:{if(t>>>0>4294967167&j-2047>>>0>=4294965250)break b;q=l<<1;g=e<<1|l>>>31;h=g+2097152|0;if(!q&(h|0)==2097152|h>>>0<2097152){d=1;if(!(g|q)|!c&(f|0)==1072693248)break a;h=f<<1;f=c;c=h|c>>>31;f=f<<1;if(!((!q&(g|0)==-2097152|g>>>0<4292870144)&(!f&(c|0)==-2097152|c>>>0<4292870144))){d=a+b;break a}if(!f&(c|0)==2145386496)break a;d=((e|0)>0|(e|0)>=0)^c>>>0>2145386495?0:b*b;break a}g=(f<<1|c>>>31)+2097152|0;if(!(c<<1)&(g|0)==2097152|g>>>0<2097152){d=a*a;if((f|0)<0)d=(hz(l,e)|0)==1?-d:d;if((e| -0)>0|(e|0)>=0)break a;c=xb-16|0;O[c+8>>3]=1/d;d=O[c+8>>3];break a}if((f|0)<0){c=hz(l,e);if(!c){a=a-a;d=a/a;break a}j=j&2047;p=((c|0)==1)<<18;A(+a);f=v(1)|0;c=v(0)|0;f=f&2147483647}if(t>>>0<=4294967167){d=1;g=(f|0)==1072693248;if(g&!c)break a;if(s>>>0<=957){d=((c|0)!=0&g|f>>>0>1072693248?b:-b)+1;break a}if((!c&(f|0)==1072693248|f>>>0<1072693248)!=(r>>>0<2048|0)){c=xb-16|0;O[c+8>>3]=3.105036184601418E231;d=O[c+8>>3]*3.105036184601418E231;break a}c=xb-16|0;O[c+8>>3]=1.2882297539194267E-231;d=O[c+8>> -3]*1.2882297539194267E-231;break a}if(j)break b;A(+(a*4503599627370496));f=v(1)|0;c=v(0)|0;f=(f&2147483647)-54525952|0}x(0,l&-134217728);x(1,e|0);u=+z();e=f-1072076117|0;g=e;k=+(e>>20);h=(e>>>13&127)<<5;B=k*O[94225]+O[h+753888>>3];l=0;e=c-l|0;g=f-((g&-1048576)+(c>>>0>>0)|0)|0;c=g;x(0,0);x(1,(e- -2147483648>>>0<2147483648?c+1|0:c)|0);a=+z();i=O[h+753864>>3];d=a*i+-1;x(0,e|0);x(1,c|0);w=(+z()-a)*i;a=d+w;m=O[94226];i=a*m;y=k*O[94224]+O[h+753880>>3];k=a+y;n=d;d=d*m;n=n*d;m=k+n;n=B+(a+(y-k))+w*(i+d)+ -(n+(k-m));d=a*i;a=n+a*d*(d*(d*(a*O[94232]+O[94231])+(a*O[94230]+O[94229]))+(a*O[94228]+O[94227]));d=m+a;O[o+8>>3]=a+(m-d);A(+d);c=v(1)|0;x(0,v(0)&-134217728);x(1,c|0);i=+z();a=u*i;b=(b-u)*i+(O[o+8>>3]+(d-i))*b;A(+a);c=v(1)|0;v(0)|0;c:{d:{j=c>>>20&2047;if(j-969>>>0<63)break d;if(j>>>0<969){a=a+1;d=p?-a:a;break c}c=j>>>0<1033;j=0;if(c)break d;A(+a);c=v(1)|0;v(0)|0;if((c|0)<0){c=xb-16|0;O[c+8>>3]=p?-1.2882297539194267E-231:1.2882297539194267E-231;d=O[c+8>>3]*1.2882297539194267E-231;break c}c=xb-16|0; -O[c+8>>3]=p?-3.105036184601418E231:3.105036184601418E231;d=O[c+8>>3]*3.105036184601418E231;break c}d=O[93399];i=O[93398]*a+d;d=i-d;a=d*O[93401]+(d*O[93400]+a)+b;b=a*a;d=b*b*(a*O[93405]+O[93404]);b=b*(a*O[93403]+O[93402]);A(+i);v(1)|0;f=v(0)|0;e=f<<4&2032;a=d+(b+(O[e+747296>>3]+a));e=e+747304|0;g=J[e>>2];h=J[e+4>>2];e=f+p|0;c=g;g=e<<13;e=0;c=c+e|0;h=g+h|0;h=c>>>0>>0?h+1|0:h;if(!j){e:{if(!(f&-2147483648)){x(0,c|0);x(1,h-1058013184|0);b=+z();d=(b*a+b)*5.4861240687936887E303;break e}x(0,c|0);g=h+1071644672| -0;x(1,g|0);b=+z();i=b*a;a=i+b;if(R(a)<1){c=xb-16|0;O[c+8>>3]=2.2250738585072014E-308;O[c+8>>3]=O[c+8>>3]*2.2250738585072014E-308;x(0,0);x(1,g&-2147483648);d=a<0?-1:1;k=a+d;a=k+(i+(b-a)+(a+(d-k)))-d;a=(C=+z(),D=a,E=a==0,E?C:D)}d=a*2.2250738585072014E-308}break c}x(0,c|0);x(1,h|0);b=+z();d=b*a+b}}xb=o+16|0;return d}function $h(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=xb-16|0;xb=h;b=J[a+344>>2]+1|0;J[a+344>>2]=b;a:{if(b>>>0>2])break a;if(K[a+398|0]){J[a+344>>2]=0;Nb(J[a+352>>2],0,J[a+336>>2]+1| -0);b:{g=K[a+399|0];f=g+1|0;b=f&255;if(b>>>0>6)break b;e=K[b+262648|0];d=(e+J[a+320>>2]|0)+(K[b+262641|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);c:{if(K[a+208|0]&2)break c;c=K[b+262547|0];b=(c+J[a+324>>2]|0)+(K[b+262540|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+2|0;b=f&255;if(b>>>0>6)break b;e=K[b+262648|0];d=(e+J[a+320>>2]|0)+(K[b+262641|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+262547|0];b=(c+J[a+324>>2]|0)+(K[b+262540|0]^-1)|0;J[a+328>>2]= -(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+3|0;b=f&255;if(b>>>0>6)break b;e=K[b+262648|0];d=(e+J[a+320>>2]|0)+(K[b+262641|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+262547|0];b=(c+J[a+324>>2]|0)+(K[b+262540|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+4|0;b=f&255;if(b>>>0>6)break b;e=K[b+262648|0];d=(e+J[a+320>>2]|0)+(K[b+262641|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+262547|0];b=(c+J[a+324>>2]|0)+(K[b+ -262540|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+5|0;b=f&255;if(b>>>0>6)break b;e=K[b+262648|0];d=(e+J[a+320>>2]|0)+(K[b+262641|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+262547|0];b=(c+J[a+324>>2]|0)+(K[b+262540|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+6|0;b=f&255;if(b>>>0>6)break b;e=K[b+262648|0];d=(e+J[a+320>>2]|0)+(K[b+262641|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+262547| -0];b=(c+J[a+324>>2]|0)+(K[b+262540|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+7|0;if(g>>>0<249)break b;b=f&255;e=K[b+262648|0];d=(e+J[a+320>>2]|0)+(K[b+262641|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+262547|0];b=(c+J[a+324>>2]|0)+(K[b+262540|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+8|0;d=f&255;if(d>>>0>6)break b;b=K[d+262648|0];J[a+340>>2]=((b+J[a+320>>2]|0)+(K[d+262641|0]^-1)>>>0)/(b>>>0);if(K[a+208| -0]&2)break c;b=K[d+262547|0];J[a+328>>2]=((b+J[a+324>>2]|0)+(K[d+262540|0]^-1)>>>0)/(b>>>0)}H[a+399|0]=f;break a}H[a+399|0]=f}if(!(K[a+204|0]&32)){J[a+228>>2]=1;J[a+224>>2]=h+15;d=a+212|0;d:{while(1){if(!J[a+216>>2]){b=J[a+380>>2];e:{while(1){if(b)break e;mc(a,0);b=Tn(a);J[a+380>>2]=b;if(J[a+348>>2]==1229209940)continue;break}gc(a,262554);B()}f=J[a+272>>2];J[a+216>>2]=f;c=J[a+268>>2];J[a+212>>2]=c;if(b>>>0>>0){J[a+216>>2]=b;f=b}Gd(a,c,f);Fc(a,c,f);J[a+380>>2]=J[a+380>>2]-J[a+216>>2]}b=ni(d,1); -f:{if(b){if((b|0)==1){if(J[a+380>>2]|(J[a+216>>2]|!J[a+228>>2]))break f;break d}b=a;a=J[a+236>>2];gc(b,a?a:262598);B()}if(J[a+228>>2])continue}break}Wb(a,262576)}J[a+228>>2]=0;J[a+200>>2]=J[a+200>>2]|8;J[a+204>>2]=J[a+204>>2]|32}if(J[a+380>>2]|J[a+216>>2])Wb(a,262618);Wl(a+212|0);J[a+200>>2]=J[a+200>>2]|8}xb=h+16|0}function X8(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,u=0,v=0;e=xb-128|0;xb=e;a:{b:{d=J[a+8>>2];g=Ab[J[J[d>>2]+36>>2]](d)|0;c:{if(!g)break c; -i=O[a+48>>3];j=O[a+56>>3];d=e+80|0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=1072693248;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=1072693248;J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;f=J[a+8>>2];Rd(d,Ab[J[J[f>>2]+72>>2]](f,2)|0);f=J[a+4>>2];Ab[J[J[f>>2]+404>>2]](f)|0;f=J[a+4>>2];O[e+72>>3]=j*O[d+8>>3]/i;O[e+64>>3]=i*O[d+16>>3]/j;O[e+56>>3]=i*O[d+32>>3];O[e+48>>3]=j*O[d+40>>3];Ab[J[J[f>>2]+396>>2]](f,d,e+72|0,e- -64|0,d+24|0,e+56|0,e+48|0)|0;d:{if(K[a+65|0])break d;d=J[a+8>>2]; -d=Ab[J[J[d>>2]+20>>2]](d)|0;if(!d)break d;ul(d,a);H[a+65|0]=1}j=+Ab[J[J[g>>2]+8>>2]](g);d=J[a+4>>2];f=e+72|0;h=e- -64|0;k=e+56|0;m=e+48|0;l=e+40|0;n=e+32|0;Ab[J[J[d>>2]+400>>2]](d,f,h,k,m,l,n)|0;i=1;j=R(j);if(j<5){i=O[e+72>>3];O[e+72>>3]=i/R(i);i=O[e+48>>3];O[e+48>>3]=i/R(i);d=J[a+4>>2];Ab[J[J[d>>2]+396>>2]](d,f,h,k,m,l,n)|0;j=j*i}d=J[a+4>>2];f=e+80|0;Ab[J[J[g>>2]+12>>2]](f,g);h=J[J[d>>2]+236>>2];J[195395]=0;ca(h|0,d|0,f|0)|0;d=J[195395];J[195395]=0;e:{f:{if((d|0)!=1){if(H[e+91|0]<0)Kb(J[e+80>>2]); -d=J[a+4>>2];O[e+80>>3]=O[e+48>>3]*R(j*O[a+48>>3]/25.4*72);h=e+80|0;Ab[J[J[d>>2]+252>>2]](d,h)|0;f=Ab[J[J[g>>2]+16>>2]](g)|0;k=Ab[J[J[g>>2]+20>>2]](g)|0;m=Ab[J[J[g>>2]+28>>2]](g)|0;g=Ab[J[J[g>>2]+24>>2]](g)|0;d=J[a+4>>2];f=(f|0)>550;f=k?f|2:f;f=m?f|4:f;J[e+80>>2]=g?f|128:f;Ab[J[J[d>>2]+260>>2]](d,h)|0;d=J[a+4>>2];Ab[J[J[d>>2]+136>>2]](d,388856)|0;d=J[a+4>>2];g=J[a+8>>2];u=e,v=Ab[J[J[g>>2]+32>>2]](g)|0,J[u+80>>2]=v;Ab[J[J[d>>2]+144>>2]](d,h)|0;d=J[a+4>>2];J[e+80>>2]=255;Ab[J[J[d>>2]+152>>2]](d,h)|0; -d=J[a+4>>2];Ab[J[J[d>>2]+400>>2]](d,e+72|0,e- -64|0,e+56|0,e+48|0,e+40|0,e+32|0)|0;d=J[a+4>>2];Ab[J[J[d>>2]+404>>2]](d)|0;m=J[c>>2];g=J[c+4>>2];k=0;J[e+88>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;l=g-m|0;f=l>>4;d=0;if((g|0)==(m|0))break e;g:{if(f>>>0>=268435456){J[195395]=0;ea(1813,h|0);a=J[195395];J[195395]=0;if((a|0)==1)break g;B()}g=0;J[195395]=0;d=_(1078,l|0)|0;h=J[195395];J[195395]=0;if((h|0)!=1)break f}b=Z()|0;a=J[e+80>>2];if(!a)break a;J[e+84>>2]=a;Kb(a);break a}b=Z()|0;if(H[e+91|0]>=0)break a;Kb(J[e+ -80>>2]);ba(b|0);B()}J[e+80>>2]=d;J[e+88>>2]=(f<<4)+d;h=Nb(d,0,l);J[e+84>>2]=h+l;l=f>>>0<=1?1:f;j=O[a+56>>3];p=O[a+48>>3];q=O[e+32>>3];r=O[e+48>>3];s=O[e+40>>3];t=O[e+72>>3];while(1){n=g<<4;o=n+h|0;n=m+n|0;O[o>>3]=O[n>>3]*t*p*i+s;O[o+8>>3]=O[n+8>>3]*r*j*i+q;g=g+1|0;if((l|0)!=(g|0))continue;break}}h=K[b+11|0];g=h<<24>>24<0;h=g?J[b+4>>2]:h;if(f>>>0>h>>>0?h:f)while(1){f=J[a+4>>2];J[e+28>>2]=J[(k<<2)+(g?J[b>>2]:b)>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[J[f>>2]+288>>2];J[195395]=0;h= -g;g=(k<<4)+d|0;pa(h|0,f|0,e+28|0,g|0,g+8|0,e+16|0,e+8|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break b;f=K[b+11|0];g=f<<24>>24<0;k=k+1|0;f=g?J[b+4>>2]:f;h=J[c+4>>2]-J[c>>2]>>4;if(k>>>0<(f>>>0>>0?f:h)>>>0)continue;break}if(!d)break c;Kb(d)}xb=e+128|0;return}b=Z()|0;if(!d)break a;Kb(d);ba(b|0);B()}ba(b|0);B()}function Iaa(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;h=xb+-64|0;xb=h;e=J[a+584>>2];c=Qb(40);J[c>>2]=0;c=wd(e+624|0,1,c,4);k=yb;a:{b:{c:{while(1){if(f)break b;J[195395]=0;ea(1729, -e|0);f=J[195395];J[195395]=0;if((f|0)==1)break a;i=-1;d:{e:{if(!f)break e;j=J[195396];if(!j)break e;i=Sb(J[f>>2],c,k);if(!i)break d;yb=j}f=yb;if((i|0)!=1)break c;continue}break}Kb(c);gd(f,j);B()}g=1}Kb(c);f:{if(!g)break f;if((GC(e,1)|0)!=1)break f;g:{if(K[a+13|0]&4){f=J[a+72>>2];c=J[a+68>>2];g=Hg(a);break g}c=J[a+60>>2]-J[a+472>>2]|0;f=J[a+100>>2];f=c>>>0>>0?c:f;c=J[a+56>>2];g=aD(a)}J[e+840>>2]=g;h:{if(!b){b=c;break h}if(L[a+138>>1]!=2){b=c;break h}b=0;g=L[e+834>>1];if(0-g>>>0>c>>>0)b=((c+g|0)- -1>>>0)/(g>>>0)|0;c=L[e+836>>1];if(0-c>>>0<=f>>>0){f=0;break h}f=((c+f|0)-1>>>0)/(c>>>0)|0}c=J[e+28>>2];g=J[e+32>>2];if(!(c>>>0>=b>>>0&g>>>0>=f>>>0)){i=J[a+628>>2];J[h+60>>2]=g;J[h+56>>2]=c;J[h+52>>2]=f;J[h+48>>2]=b;yc(i,288866,272645,h+48|0);c=J[e+28>>2]}g=J[e+32>>2];if(!(g>>>0<=f>>>0&b>>>0>=c>>>0)){a=J[a+628>>2];J[h+12>>2]=g;J[h+8>>2]=c;J[h+4>>2]=f;J[h>>2]=b;Ob(a,288866,273061,h);break f}c=J[e+36>>2];d=L[a+138>>1];if((c|0)!=(((d|0)!=1?1:L[a+98>>1])|0)){d=0;Ob(J[a+628>>2],288866,273270,0);break f}if(J[e+ -212>>2]!=L[a+84>>1]){d=0;Ob(J[a+628>>2],288866,273398,0);break f}c=J[e+216>>2];b=J[c+8>>2];i:{if((d|0)==1){d=L[e+834>>1];f=L[e+836>>1];c=J[c+12>>2];j:{if((d|0)==(b|0)&(f|0)==(c|0))break j;g=J[a+628>>2];J[h+44>>2]=f;J[h+40>>2]=d;J[h+36>>2]=c;J[h+32>>2]=b;yc(g,288866,273916,h+32|0);b=J[e+216>>2];if(!(J[b+8>>2]<=L[e+834>>1]&J[b+12>>2]<=L[e+836>>1])){d=0;Ob(J[a+628>>2],288866,274164,0);break f}if(ek(a,33918))break j;b=J[a+628>>2];c=J[e+216>>2];d=J[c+12>>2];J[h+16>>2]=J[c+8>>2];J[h+20>>2]=d;yc(b,288866, -274444,h+16|0);b=J[e+216>>2];I[e+834>>1]=J[b+8>>2];I[e+836>>1]=J[b+12>>2]}b=J[e+36>>2];if((b|0)<2)break i;c=J[e+216>>2];d=1;while(1){f=c+P(d,88)|0;if(!(J[f+8>>2]!=1|J[f+12>>2]!=1)){d=d+1|0;if((b|0)!=(d|0))continue;break i}break}d=0;Ob(J[a+628>>2],288866,274544,0);break f}if((b|0)==1&J[c+12>>2]==1)break i;d=0;Ob(J[a+628>>2],288866,274544,0);break f}k:{l:{if(!(L[a+138>>1]!=1|L[e+832>>1]!=6|J[e+924>>2]!=1)){J[e+40>>2]=3;J[e+44>>2]=2;break l}J[e+40>>2]=0;J[e+44>>2]=0;if(L[a+138>>1]!=1)break l;b=0;d=1716; -c=1;if(L[e+834>>1]!=1)break k;c=1;if(L[e+836>>1]!=1)break k}b=1;d=1706;c=0}J[e+68>>2]=c;J[a+556>>2]=d;J[a+548>>2]=d;J[a+540>>2]=d;d=0;f=0;c=Qb(40);J[c>>2]=0;c=wd(e+624|0,1,c,4);j=yb;m:{n:{while(1){if(d)break m;J[195395]=0;_(1169,e|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;g=-1;o:{p:{if(!d)break p;i=J[195396];if(!i)break p;g=Sb(J[d>>2],c,j);if(!g)break o;yb=i}d=yb;if((g|0)!=1)break n;continue}break}Kb(c);gd(d,i);B()}f=1}Kb(c);d=(f|0)!=0;if(!f|b)break f;b=J[a+584>>2];a=J[e+216>>2];c=0;d=0;g= -J[e+36>>2];q:{if((g|0)>0)while(1){i=J[a+8>>2];j=J[a+12>>2];k=BC(b,J[a+28>>2]<<3,j<<3);f=0;if(!k)break q;J[(b+(d<<2)|0)+844>>2]=k;a=a+88|0;c=P(i,j)+c|0;d=d+1|0;if((g|0)!=(d|0))continue;break}J[b+888>>2]=c;f=1}if(!f){d=0;break f}J[e+884>>2]=8;d=1}xb=h- -64|0;return d|0}a=Z()|0;Kb(c);ba(a|0);B()}function rea(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;a=Nb(a,0,256);d=J[b>>2]+c|0;g=K[d+3|0];f=K[d+1|0];e=g+f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a>>2]=(k+d<<3)-5120;e= -P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+16>>2]=e-d>>10;J[a+8>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+12>>2]=d+P(g,-17828)>>10;J[a+4>>2]=d+P(f,4209)>>10;d=J[b+4>>2]+c|0;g=K[d+3|0];f=K[d+1|0];e=g+f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a+32>>2]=(k+d<<3)-5120;e=P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+48>>2]=e-d>>10;J[a+40>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+44>>2]=d+P(g,-17828)>>10;J[a+36>>2]=d+P(f,4209)>>10;d=J[b+8>>2]+c|0;g=K[d+3|0];f=K[d+1|0]; -e=g+f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a+64>>2]=(k+d<<3)-5120;e=P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+80>>2]=e-d>>10;J[a+72>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+76>>2]=d+P(g,-17828)>>10;J[a+68>>2]=d+P(f,4209)>>10;d=J[b+12>>2]+c|0;g=K[d+3|0];f=K[d+2|0];e=K[d+1|0];i=e+g|0;h=K[d+4|0];j=K[d|0];k=h+j|0;l=i+k|0;d=(f+l<<3)-5120|0;J[a+96>>2]=d;i=P(k-i|0,6476)+512|0;f=P(l-(f<<2)|0,2896);J[a+112>>2]=i-f>>10;J[a+104>>2]=f+i>>10;f=e-g|0;e=j-h|0;g=P(f+e|0,6810)+512|0; -J[a+108>>2]=g+P(f,-17828)>>10;J[a+100>>2]=g+P(e,4209)>>10;b=J[b+16>>2]+c|0;c=K[b+4|0];g=K[b|0];f=c+g|0;e=K[b+3|0];i=K[b+1|0];h=e+i|0;j=P(f-h|0,6476)+512|0;f=f+h|0;h=K[b+2|0];b=P(f-(h<<2)|0,2896);J[a+144>>2]=j-b>>10;J[a+136>>2]=b+j>>10;e=i-e|0;g=g-c|0;b=P(e+g|0,6810)+512|0;J[a+140>>2]=b+P(e,-17828)>>10;c=(f+h<<3)-5120|0;f=J[a>>2];e=c+f|0;i=J[a+32>>2];h=i+d|0;j=P(e-h|0,8290)+16384|0;e=e+h|0;h=J[a+64>>2];k=P(e-(h<<2)|0,3707);J[a+128>>2]=j-k>>15;J[a+64>>2]=j+k>>15;J[a>>2]=P(e+h|0,10486)+16384>>15;d=i- -d|0;f=f-c|0;c=P(d+f|0,8716)+16384|0;J[a+96>>2]=c+P(d,-22820)>>15;J[a+32>>2]=c+P(f,5387)>>15;b=b+P(g,4209)>>10;c=J[a+4>>2];d=b+c|0;g=J[a+100>>2];f=J[a+36>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+68>>2];h=P(d-(e<<2)|0,3707);J[a+132>>2]=i-h>>15;J[a+68>>2]=h+i>>15;J[a+4>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+100>>2]=b+P(d,-22820)>>15;J[a+36>>2]=b+P(c,5387)>>15;b=J[a+136>>2];c=J[a+8>>2];d=b+c|0;g=J[a+104>>2];f=J[a+40>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e| -0;e=J[a+72>>2];h=P(d-(e<<2)|0,3707);J[a+136>>2]=i-h>>15;J[a+72>>2]=h+i>>15;J[a+8>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+104>>2]=b+P(d,-22820)>>15;J[a+40>>2]=b+P(c,5387)>>15;b=J[a+140>>2];c=J[a+12>>2];d=b+c|0;g=J[a+108>>2];f=J[a+44>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+76>>2];h=P(d-(e<<2)|0,3707);J[a+140>>2]=i-h>>15;J[a+76>>2]=h+i>>15;J[a+12>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+108>>2]=b+P(d,-22820)>>15;J[a+44>>2]=b+ -P(c,5387)>>15;b=J[a+144>>2];c=J[a+16>>2];d=b+c|0;g=J[a+112>>2];f=J[a+48>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+80>>2];h=P(d-(e<<2)|0,3707);J[a+144>>2]=i-h>>15;J[a+80>>2]=h+i>>15;J[a+16>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+112>>2]=b+P(d,-22820)>>15;J[a+48>>2]=b+P(c,5387)>>15}function lE(a){a=a|0;var b=0,c=0,d=0,e=0;d=J[a+420>>2];b=J[d+12>>2];c=(b+J[d+16>>2]|0)-1&-65536;c=((b|0)>(c|0)?c|32768:c)<>2];J[d+12>>2]=c;b=J[d+32>>2];a:{if(c>>>0>=134217728){b:{if((b| -0)<0)break b;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(Ab[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=b+1;b=J[c+4>>2]-1|0;J[c+4>>2]=b;d:{if(b)break d;if(Ab[J[c+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(J[d+32>>2]!=254)break b;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]- -1|0;J[b+4>>2]=c;if(c)break b;if(Ab[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+20>>2];J[d+20>>2]=0;J[d+24>>2]=b+J[d+24>>2];break a}e:{if(!b){J[d+24>>2]=J[d+24>>2]+1;break e}if((b|0)<0)break e;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(Ab[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e| -0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break e;if(Ab[J[c+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(!J[d+20>>2])break a;if(J[d+24>>2])while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g:{if(c)break g;if(Ab[J[b+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(Ab[J[b+12>>2]](a)|0)break h;b= -J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(Ab[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+20>>2]-1|0;J[d+20>>2]=b;if(b)continue;break}}c=J[d+12>>2];j:{if(!(c&134215680))break j;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(Ab[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue; -break}c=J[d+12>>2]}b=J[a+24>>2];e=J[b>>2];J[b>>2]=e+1;H[e|0]=c>>>19;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(Ab[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}m:{if((J[d+12>>2]&133693440)!=133693440)break m;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break m;if(Ab[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}e=J[d+12>>2];if(!(e&522240))break j;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=e>>>11;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n; -if(Ab[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if((J[d+12>>2]&522240)!=522240)break j;d=J[a+24>>2];b=J[d>>2];J[d>>2]=b+1;H[b|0]=0;b=J[d+4>>2]-1|0;J[d+4>>2]=b;if(b)break j;if(Ab[J[d+12>>2]](a)|0)break j;d=J[a>>2];J[d+20>>2]=25;Ab[J[d>>2]](a)}}function i1(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;i=xb+-64|0;xb=i;J[i+60>>2]=0;h=b+108|0;n=J[a+8>>2];a:{b:{if(J[b+72>>2]!=J[a+16>>2]){J[i+60>>2]=6;break b}if(!((c|0)!=2&c>>>0<=4)){J[i+60>> -2]=19;break b}if(H[J[b+156>>2]+4|0]&1){e=J[b+88>>2];if(e)Ab[J[n+8>>2]](n,e);J[b+88>>2]=0;e=J[b+156>>2];J[e+4>>2]=J[e+4>>2]&-2}if(Js(b,c,d)){J[i+60>>2]=98;break b}g=b+76|0;e=J[g>>2];c:{if(!e)break c;f=J[b+84>>2];if(!f)break c;p=b,q=Tb(n,f,0,e,0,i+60|0),J[p+88>>2]=q;if(J[i+60>>2])break b;e=J[b+156>>2];J[e+4>>2]=J[e+4>>2]|1;e=J[b+76>>2]<<6;l=(K[b+94|0]==6?(e|0)/3|0:e)-(J[b+104>>2]<<6)|0;m=0-(J[b+100>>2]<<6)|0;if(d){m=J[d>>2]+m|0;l=J[d+4>>2]+l|0}if(l|m)me(h,m,l);d:{e:{if(c>>>0<=1){if(K[b+124|0]&64){f= -xb+-64|0;xb=f;d=J[h+4>>2];if(d)e=(I[h+2>>1]<<3)+d|0;else e=0;c=98;j=J[g+4>>2];f:{if(j&1073733632)break f;J[f+56>>2]=j<<2;J[f+48>>2]=0;J[f+52>>2]=0;J[f+28>>2]=31;J[f+24>>2]=3;J[f+20>>2]=h;J[f+44>>2]=f+8;j=J[g>>2];J[f+60>>2]=j<<2;k=J[g+12>>2];c=J[g+8>>2];J[f+12>>2]=c;J[f+8>>2]=k+((c|0)>=0?P(c,j-1|0):0);if(d>>>0>>0){c=d;while(1){J[c>>2]=J[c>>2]<<2;J[c+4>>2]=J[c+4>>2]<<2;c=c+8|0;if(e>>>0>c>>>0)continue;break}c=Ab[J[a+56>>2]](J[a+52>>2],f+16|0)|0;if(d>>>0>=e>>>0)break f;while(1){J[d>>2]=J[d>>2]/4;J[d+ -4>>2]=J[d+4>>2]/4;d=d+8|0;if(e>>>0>d>>>0)continue;break}break f}c=Ab[J[a+56>>2]](J[a+52>>2],f+16|0)|0}xb=f- -64|0;d=c;break e}J[i+20>>2]=1;J[i+16>>2]=h;J[i+12>>2]=g;d=Ab[J[a+56>>2]](J[a+52>>2],i+12|0)|0;break e}g:switch(c-3|0){default:a=J[i+60>>2];break d;case 0:e=xb+-64|0;xb=e;f=J[a+4>>2];J[e+48>>2]=0;J[e+52>>2]=0;J[e+28>>2]=32;J[e+24>>2]=3;J[e+20>>2]=h;J[e+44>>2]=e+8;J[e+56>>2]=J[g+4>>2];d=J[g>>2];J[e+60>>2]=d;j=J[g+12>>2];c=J[g+8>>2];J[e+12>>2]=c;J[e+8>>2]=j+((c|0)>=0?P(c,d-1|0):0);g=f+184|0;me(h, -0-J[f+180>>2]|0,0-J[g>>2]|0);d=Ab[J[a+56>>2]](J[a+52>>2],e+16|0)|0;h:{if(d){c=f+180|0;break h}J[e+8>>2]=J[e+8>>2]+1;c=f+188|0;g=f+192|0;me(h,J[f+180>>2]-J[c>>2]|0,J[f+184>>2]-J[g>>2]|0);d=Ab[J[a+56>>2]](J[a+52>>2],e+16|0)|0;if(d)break h;J[e+8>>2]=J[e+8>>2]+1;c=f+196|0;g=f+200|0;me(h,J[f+188>>2]-J[c>>2]|0,J[f+192>>2]-J[g>>2]|0);d=Ab[J[a+56>>2]](J[a+52>>2],e+16|0)|0}me(h,J[c>>2],J[g>>2]);xb=e- -64|0;break e;case 1:break g}f=xb-48|0;xb=f;e=J[a+4>>2];k=J[g+8>>2];J[f+8>>2]=1;J[f+4>>2]=h;J[f>>2]=g;J[g+ -8>>2]=P(k,3);J[g>>2]=M[g>>2]/3;me(h,0-J[e+184>>2]|0,J[e+180>>2]);d=Ab[J[a+56>>2]](J[a+52>>2],f)|0;j=J[e+184>>2];c=J[e+180>>2];i:{if(d)break i;J[g+12>>2]=k+J[g+12>>2];me(h,j-J[e+192>>2]|0,J[e+188>>2]-c|0);d=Ab[J[a+56>>2]](J[a+52>>2],f)|0;c=J[e+188>>2];j=J[e+192>>2];o=J[g+12>>2]-k|0;J[g+12>>2]=o;if(d)break i;k=k<<1;J[g+12>>2]=k+o;me(h,j-J[e+200>>2]|0,J[e+196>>2]-c|0);d=Ab[J[a+56>>2]](J[a+52>>2],f)|0;c=J[e+196>>2];j=J[e+200>>2];J[g+12>>2]=J[g+12>>2]-k}me(h,j,0-c|0);J[g+8>>2]=J[g+8>>2]/3;J[g>>2]=P(J[g>> -2],3);xb=f+48|0}a=d;J[i+60>>2]=a}if(a)break b}J[b+72>>2]=1651078259;break a}if(!(H[J[b+156>>2]+4|0]&1))break a;a=J[b+88>>2];if(a)Ab[J[n+8>>2]](n,a);J[b+88>>2]=0;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2}if(l|m)me(h,0-m|0,0-l|0);xb=i- -64|0;return J[i+60>>2]}function Dk(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;a=K[a|0]|K[a+1|0]<<8;i=a<<8|a>>>8;a=(((((i&1)<<1)+d|0)+(i&2)|0)+(a>>>9&2)|0)+(a>>>10&2)|0;a:{b:{if(!(i&16)){d=a;break b}h=J[b+12>>2];f=J[b+4>>2];if(h>>>0>>0)break a;g=J[b+8>>2];if(g-a>>>0<2)break a; -d=a+2|0;e=K[a|0]|K[a+1|0]<<8;if(!e)break b;e=((e<<8|e>>>8)&65535)+c|0;j=e+4|0;c:{if(h>>>0>>0|g-j>>>0<2)break c;j=K[j|0]|K[j+1|0]<<8;j=(j<<8|j>>>8)&65535;if(j-1>>>0>=3){if((j|0)!=32768)break b;if(h>>>0>>0|g-e>>>0<=5)break c;break b}if(h>>>0>>0)break c;f=6;h=g-e|0;if(h>>>0<6)break c;g=K[e|0]|K[e+1|0]<<8;g=(g<<8|g>>>8)&65535;e=K[e+2|0]|K[e+3|0]<<8;e=(e<<8|e>>>8)&65535;if(g>>>0<=e>>>0){f=(e-g>>>4-j<<1)+8|0;if(h>>>0>>0)break c}e=J[b+16>>2]-f|0;J[b+16>>2]=e;if((e|0)>0)break b}e=J[b+32>> -2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[a|0]=0;H[a+1|0]=0}j=i&65535;d:{if(!(j&32)){a=d;break d}i=J[b+12>>2];f=J[b+4>>2];if(i>>>0>>0)break a;h=J[b+8>>2];if(h-d>>>0<2)break a;a=d+2|0;e=K[d|0]|K[d+1|0]<<8;if(!e)break d;e=((e<<8|e>>>8)&65535)+c|0;g=e+4|0;e:{if(i>>>0>>0|h-g>>>0<2)break e;g=K[g|0]|K[g+1|0]<<8;g=(g<<8|g>>>8)&65535;if(g-1>>>0>=3){if((g|0)!=32768)break d;if(i>>>0>>0|h-e>>>0<=5)break e;break d}if(i>>>0>>0)break e;f=6;i=h-e|0;if(i>>>0<6)break e;h=K[e| -0]|K[e+1|0]<<8;h=(h<<8|h>>>8)&65535;e=K[e+2|0]|K[e+3|0]<<8;e=(e<<8|e>>>8)&65535;if(h>>>0<=e>>>0){f=(e-h>>>4-g<<1)+8|0;if(i>>>0>>0)break e}e=J[b+16>>2]-f|0;J[b+16>>2]=e;if((e|0)>0)break d}e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[d|0]=0;H[d+1|0]=0}f:{if(!(j&64)){d=a;break f}i=J[b+12>>2];f=J[b+4>>2];if(i>>>0>>0)break a;h=J[b+8>>2];if(h-a>>>0<2)break a;d=a+2|0;e=K[a|0]|K[a+1|0]<<8;if(!e)break f;e=((e<<8|e>>>8)&65535)+c|0;g=e+4|0;g:{if(i>>>0>>0|h-g>>>0<2)break g; -g=K[g|0]|K[g+1|0]<<8;g=(g<<8|g>>>8)&65535;if(g-1>>>0>=3){if((g|0)!=32768)break f;if(i>>>0>>0|h-e>>>0<=5)break g;break f}if(i>>>0>>0)break g;f=6;i=h-e|0;if(i>>>0<6)break g;h=K[e|0]|K[e+1|0]<<8;h=(h<<8|h>>>8)&65535;e=K[e+2|0]|K[e+3|0]<<8;e=(e<<8|e>>>8)&65535;if(h>>>0<=e>>>0){f=(e-h>>>4-g<<1)+8|0;if(i>>>0>>0)break g}e=J[b+16>>2]-f|0;J[b+16>>2]=e;if((e|0)>0)break f}e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[a|0]=0;H[a+1|0]=0}k=1;if(!(j&128))break a;if(M[b+12>> -2]>2]>>>0)return 0;if(J[b+8>>2]-d>>>0<2)return 0;a=K[d|0]|K[d+1|0]<<8;if(!a)break a;f=J[b+12>>2];a=((a<<8|a>>>8)&65535)+c|0;c=a+4|0;e=J[b+4>>2];h:{if(f>>>0>>0)break h;i=J[b+8>>2];if(i-c>>>0<2)break h;c=K[c|0]|K[c+1|0]<<8;h=(c<<8|c>>>8)&65535;if(h-1>>>0>=3){if((h|0)!=32768)break a;if(f>>>0>>0|i-a>>>0<=5)break h;break a}if(f>>>0>>0)break h;c=6;e=i-a|0;if(e>>>0<6)break h;f=K[a|0]|K[a+1|0]<<8;f=(f<<8|f>>>8)&65535;a=K[a+2|0]|K[a+3|0]<<8;a=(a<<8|a>>>8)&65535;if(f>>>0<=a>>>0){c=(a- -f>>>4-h<<1)+8|0;if(e>>>0>>0)break h}a=J[b+16>>2]-c|0;J[b+16>>2]=a;if((a|0)>0)break a}a=J[b+32>>2];if(a>>>0>31)return 0;J[b+32>>2]=a+1;k=0;if(!K[b+28|0])break a;H[d|0]=0;H[d+1|0]=0;k=1}return k}function Caa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0),l=Q(0),m=0;e=xb-144|0;xb=e;f=J[a+584>>2];Ln(a,1,0);J[f+36>>2]=1;J[f+40>>2]=0;b=Qb(40);J[b>>2]=0;b=wd(f+624|0,1,b,4);i=yb;a:{b:{while(1){if(d)break a;J[195395]=0;ea(1188,f|0);d=J[195395];J[195395]=0;if((d|0)==1){a=Z()|0;Kb(b);ba(a|0);B()}c= --1;c:{d:{if(!d)break d;g=J[195396];if(!g)break d;c=Sb(J[d>>2],b,i);if(!c)break c;yb=g}d=yb;if((c|0)!=1)break b;continue}break}Kb(b);gd(d,g);B()}h=1}Kb(b);e:{f:{g:{if(!h)break g;b=L[a+90>>1];I[f+832>>1]=b;h:{i:switch(b-3|0){case 3:I[f+834>>1]=L[a+204>>1];I[f+836>>1]=L[a+206>>1];J[e+80>>2]=e+140;if(zc(a,532,e+80|0))break h;b=L[a+84>>1];J[e+112>>2]=0;b=1<>2]=k;l=Q(b>>1);N[e+128>>2]=l;N[e+124>>2]=k;N[e+120>>2]=l;N[e+116>>2]=k;J[e+64>>2]=e+112;xc(a,532,e- -64|0);break h;case 0:case 1:a= -J[a+628>>2];J[e+96>>2]=b;Ob(a,288880,274993,e+96|0);break g;default:break i}I[f+834>>1]=1;I[f+836>>1]=1}b=L[a+84>>1];if((b|0)!=8){a=J[a+628>>2];J[e+48>>2]=b;Ob(a,288880,275150,e+48|0);break g}J[f+72>>2]=8;j:{if(K[a+13|0]&4){b=L[f+836>>1]<<3;if(M[a+72>>2]%(b>>>0)|0){a=J[a+628>>2];J[e+32>>2]=b;Ob(a,288880,275259,e+32|0);break g}b=L[f+834>>1]<<3;if(!(M[a+68>>2]%(b>>>0)|0))break j;a=J[a+628>>2];J[e+16>>2]=b;Ob(a,288880,275498,e+16|0);break g}b=J[a+100>>2];if(b>>>0>=M[a+60>>2])break j;j=b;b=L[f+836>>1]<< -3;if(!((j>>>0)%(b>>>0)|0))break j;a=J[a+628>>2];J[e>>2]=b;Ob(a,288880,275668,e);break g}k:{if(K[f+928|0]&3){b=J[f+912>>2];if(b)if(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24)|(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24)))break k;b=J[a+584>>2];Ln(a,0,0);if(!DC(b,J[b+920>>2]))break g;c=0;i=0;d=Qb(40);J[d>>2]=0;g=wd(b+624|0,1,d,4);j=yb;l:{m:{while(1){if(c)break l;J[195395]=0;Qr(b,1);d=J[195395];J[195395]=0;if((d|0)==1)break f;h=-1;n:{o:{if(!d)break o;c=J[195396];if(!c)break o;h=Sb(J[d>>2],g,j); -if(!h)break n;yb=c}c=yb;if((h|0)!=1)break m;continue}break}break e}i=1}Kb(g);if(!i)break g;c=J[b+928>>2];p:{if(!(c&1))break p;d=J[b+88>>2];if(d)J[d+128>>2]=0;if(L[b+832>>1]!=6)break p;d=J[b+92>>2];if(!d)break p;J[d+128>>2]=0}q:{if(!(c&2))break q;c=J[b+120>>2];if(c)J[c+276>>2]=0;c=J[b+136>>2];if(c)J[c+276>>2]=0;if(L[b+832>>1]!=6)break q;c=J[b+124>>2];if(c)J[c+276>>2]=0;c=J[b+140>>2];if(!c)break q;J[c+276>>2]=0}c=J[b+912>>2];if(c)Kb(c);J[b+916>>2]=1E3;c=Qb(1E3);J[b+912>>2]=c;if(!c){J[b+916>>2]=0;Ob(J[J[b+ -828>>2]+628>>2],275935,279890,0);break g}J[b+796>>2]=1723;J[b+792>>2]=1724;J[b+788>>2]=1725;J[b+24>>2]=b+780;c=0;i=0;d=Qb(40);J[d>>2]=0;g=wd(b+624|0,1,d,4);j=yb;r:{s:{while(1){if(c)break r;J[195395]=0;ea(1731,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break f;h=-1;t:{u:{if(!d)break u;c=J[195396];if(!c)break u;h=Sb(J[d>>2],g,j);if(!h)break t;yb=c}c=yb;if((h|0)!=1)break s;continue}break}break e}i=1}Kb(g);if(!i)break g;J[a+12>>2]=J[a+12>>2]|8;J[a+48>>2]=J[a+48>>2]|4;break k}J[a+48>>2]=J[a+48>>2]&-5}J[f+ -796>>2]=1726;J[f+792>>2]=1727;J[f+788>>2]=1728;J[f+24>>2]=f+780;m=1}xb=e+144|0;return m|0}a=Z()|0;Kb(g);ba(a|0);B()}Kb(g);gd(d,c);B()}function LE(a,b){var c=0,d=0,e=0,f=0,g=0;e=xb+-64|0;xb=e;a:{b:{c:{d:{e:{c=H[b|0];switch(c-97|0){case 17:break c;case 0:case 22:break e;default:break d}}g=(c|0)==119?578:66;break b}J[e>>2]=b;Ob(0,276153,263202,e);c=0;break a}g=(K[b+1|0]==43)<<1}c=Qb(ac(238440)+689|0);if(!c){J[e+16>>2]=238440;Ob(a,276153,264365,e+16|0);c=0;break a}Pd(c,0,688);d=c+688|0;J[c>>2]=d;se(d, -238440);I[c+476>>1]=65535;J[c+8>>2]=g&2;J[c+480>>2]=-1;J[c+484>>2]=0;J[c+628>>2]=a;J[c+472>>2]=-1;J[c+648>>2]=1269;J[c+644>>2]=1268;J[c+640>>2]=1267;J[c+636>>2]=1266;J[c+632>>2]=1265;J[c+624>>2]=1271;J[c+620>>2]=1270;_i(c);d=g?1:2049;J[c+12>>2]=d;f:switch(g|0){case 0:case 2:d=d|32768;J[c+12>>2]=d;break;default:break f}f=K[b|0];g:{if(!f)break g;if(!g){a=b;while(1){h:{i:{j:switch((f<<24>>24)-66|0){case 33:d=d&-32769;break i;case 1:d=d|32768;break i;case 43:d=d&-2049;break i;case 11:d=d|2048;break i; -case 6:d=d&-4|2;break i;case 10:d=d&-4|2;break i;case 0:d=d&-4|1;break i;case 38:break j;default:break h}d=d|65536}J[c+12>>2]=d}f=K[a+1|0];a=a+1|0;if(f)continue;break}break g}if(!(g&64)){a=b;while(1){k:{l:{m:switch((f<<24>>24)-66|0){case 6:d=d&-4|2;break l;case 10:d=d&-4|2;break l;case 0:d=d&-4|1;break l;case 38:break m;default:break k}d=d|65536}J[c+12>>2]=d}f=K[a+1|0];a=a+1|0;if(f)continue;break}break g}a=b;while(1){n:{o:{p:switch((f<<24>>24)-66|0){case 32:d=d|128;break o;case 0:d=d&-4|1;break o; -case 10:d=d&-4|2;break o;case 6:d=d&-4|2;break o;case 38:break p;default:break n}d=d|65536}J[c+12>>2]=d}f=K[a+1|0];a=a+1|0;if(f)continue;break}}q:{r:{s:{if(!(K[c+9|0]&2)){if((Ab[J[c+632>>2]](J[c+628>>2],c+456|0,8)|0)==8)break s;if(!J[c+8>>2])break r;d=J[c+12>>2]}a=c+458|0;I[a>>1]=42;b=d&128;I[c+456>>1]=b?19789:18761;if(b){b=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=b}J[c+460>>2]=0;Ab[J[c+640>>2]](J[c+628>>2],0,0)|0;if((Ab[J[c+636>>2]](J[c+628>>2],c+456|0,8)|0)!=8){Ob(J[c+628>>2],238440,265684,0);break q}J[c+ -468>>2]=276176;if(L[c+456>>1]==19789){J[c+12>>2]=J[c+12>>2]|128;a=276240}else a=276304;J[c+464>>2]=a;if(!Qn(c))break q;I[c+32>>1]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;break a}a=L[c+456>>1];if(!((a|0)==18761|(a|0)==19789)){b=J[c+628>>2];J[e+36>>2]=a;J[e+32>>2]=a;Ob(b,238440,266457,e+32|0);break q}J[c+468>>2]=276176;d=J[c+12>>2];if((a|0)==19789){d=d|128;J[c+12>>2]=d;a=276240}else a=276304;J[c+464>>2]=a;if(d&128){a=K[c+459|0];H[c+459|0]=K[c+458|0];H[c+458|0]=a;_h(c+460|0)}t:{u:{v:{a=L[c+458>>1]; -switch(a-42|0){case 0:break t;case 1:break v;default:break u}}Ob(J[c+628>>2],238440,267032,0);break q}b=J[c+628>>2];J[e+52>>2]=a;J[e+48>>2]=a;Ob(b,238440,267598,e+48|0);break q}J[c+604>>2]=0;J[c+596>>2]=0;J[c+600>>2]=0;a=J[c+12>>2];J[c+12>>2]=a|512;if(a&65536)break a;b=H[b|0]-97|0;if(b){if((b|0)!=17)break q;J[c+20>>2]=J[c+460>>2];w:{if(!(a&2048))break w;if(Ab[J[c+620>>2]](J[c+628>>2],c+612|0,c+616|0)|0)break w;J[c+12>>2]=J[c+12>>2]&-2049}if(!VC(c))break q;J[c+608>>2]=-1;J[c+12>>2]=J[c+12>>2]|16;break a}if(!Qn(c))break q; -break a}Ob(J[c+628>>2],238440,265107,0)}J[c+8>>2]=0;iD(c);c=0}xb=e- -64|0;return c}function Eba(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;d=c;c=J[a+584>>2];k=(d|0)/J[c+8>>2]|0;a:{if(J[c>>2]==1){j=b;break a}j=J[c+12>>2];Ab[J[c+20>>2]](c,b,k)}c=J[a+600>>2];g=c-J[a+608>>2]|0;e=J[a+604>>2];if((k|0)>0){c=0;while(1){if((g|0)<=3){J[a+604>>2]=e;J[a+608>>2]=J[a+600>>2]-g;if(!Xc(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;e=J[a+604>>2]}b=c;d=c;b:{if((c|0)>=(k|0))break b;while(1){f=1; -d=b;i=I[(b<<1)+j>>1]&-256;c:{while(1){b=d+f|0;if((k|0)<=(b|0)){h=f;break c}d:{if((i|0)!=K[((b<<1)+j|0)+1|0]<<8){h=f;break d}h=f+1|0;b=h+d|0;if((k|0)<=(b|0))break c;if((i|0)!=K[((b<<1)+j|0)+1|0]<<8)break d;h=129;f=f+2|0;if((f|0)!=129)continue;break b}break}if(h>>>0<=3)continue;break b}break}d=h>>>0>3?d:b}e:{f:{if((d-c&-2)!=2)break f;b=c+1|0;f=L[(c<<1)+j>>1];i=(f&65280)<<16>>16;while(1){if((i|0)!=K[((b<<1)+j|0)+1|0]<<8)break f;b=b+1|0;if((d|0)!=(b|0))continue;break}H[e+1|0]=f>>>8;H[e|0]=((c^-1)+d|0)+ -127;g=g-2|0;e=e+2|0;c=d;break e}if((c|0)>=(d|0))break e;while(1){b=d-c|0;i=(b|0)>=127?127:b;if((i+3|0)>(g|0)){J[a+604>>2]=e;J[a+608>>2]=J[a+600>>2]-g;if(!Xc(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;e=J[a+604>>2]}H[e|0]=i;e=e+1|0;g=g-1|0;if((c|0)==(d|0)){c=d;break e}f=0;b=i;l=b&3;if(l)while(1){H[e|0]=K[((c<<1)+j|0)+1|0];e=e+1|0;c=c+1|0;b=b-1|0;f=f+1|0;if((l|0)!=(f|0))continue;break}if(i-1>>>0>=3)while(1){f=(c<<1)+j|0;H[e|0]=K[f+1|0];H[e+1|0]=K[f+3|0];H[e+2|0]=K[f+5|0];H[e+3|0]=K[f+7|0];e=e+4|0;c=c+ -4|0;b=b-4|0;if(b)continue;break}g=g-i|0;if((c|0)<(d|0))continue;break}}b=0;g:{if((h|0)<4){h=0;break g}H[e|0]=h+126;H[e+1|0]=K[((d<<1)+j|0)+1|0];g=g-2|0;e=e+2|0}c=c+h|0;if((k|0)>(c|0))continue;break}while(1){if((g|0)<=3){J[a+604>>2]=e;J[a+608>>2]=J[a+600>>2]-g;if(!Xc(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;e=J[a+604>>2]}c=b;d=c;h:{if((c|0)>=(k|0))break h;while(1){f=1;d=c;i=L[(c<<1)+j>>1]&255;i:{while(1){c=d+f|0;if((k|0)<=(c|0)){h=f;break i}j:{if(i^K[(c<<1)+j|0]){h=f;break j}h=f+1|0;c=h+d|0;if((k|0)<= -(c|0))break i;if(i^K[(c<<1)+j|0])break j;h=129;f=f+2|0;if((f|0)!=129)continue;break h}break}if(h>>>0<=3)continue;break h}break}d=h>>>0>3?d:c}k:{l:{if((d-b&-2)!=2)break l;c=b+1|0;f=L[(b<<1)+j>>1];while(1){if(K[(c<<1)+j|0]^f&255)break l;c=c+1|0;if((d|0)!=(c|0))continue;break}H[e+1|0]=f;H[e|0]=((b^-1)+d|0)+127;g=g-2|0;e=e+2|0;b=d;break k}if((b|0)>=(d|0))break k;while(1){c=d-b|0;i=(c|0)>=127?127:c;if((i+3|0)>(g|0)){J[a+604>>2]=e;J[a+608>>2]=J[a+600>>2]-g;if(!Xc(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0; -e=J[a+604>>2]}H[e|0]=i;e=e+1|0;g=g-1|0;if((b|0)==(d|0)){b=d;break k}f=0;c=i;l=c&3;if(l)while(1){H[e|0]=K[(b<<1)+j|0];e=e+1|0;b=b+1|0;c=c-1|0;f=f+1|0;if((l|0)!=(f|0))continue;break}if(i-1>>>0>=3)while(1){f=(b<<1)+j|0;H[e|0]=K[f|0];H[e+1|0]=K[f+2|0];H[e+2|0]=K[f+4|0];H[e+3|0]=K[f+6|0];e=e+4|0;b=b+4|0;c=c-4|0;if(c)continue;break}g=g-i|0;if((b|0)<(d|0))continue;break}}m:{if((h|0)<4){h=0;break m}H[e|0]=h+126;H[e+1|0]=K[(d<<1)+j|0];g=g-2|0;e=e+2|0}b=b+h|0;if((k|0)>(b|0))continue;break}c=J[a+600>>2]}J[a+ -604>>2]=e;J[a+608>>2]=c-g;return 1}function sD(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;g=J[a>>2];e=K[a+8|0];a:{b:{if(!e){j=c?L[c+8>>1]:0;d=K[a+9|0];if(d>>>0<=7){c:{d:switch(d-1|0){case 0:j=0-(j&1)&255;if(!g)break c;e=b+g|0;d=0-g&7;h=g-1|0;f=(h>>>3|0)+b|0;if(h){k=g&-2;h=0;while(1){H[e-1|0]=K[f|0]>>>d&1?-1:0;e=e-2|0;i=f;f=(d|0)==7;i=i-f|0;d=f?0:d+1|0;H[e|0]=K[i|0]>>>d&1?-1:0;f=(d|0)==7;d=f?0:d+1|0;f=i-f|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c;H[e-1|0]=K[f|0]>>> -d&1?-1:0;break c;case 1:j=P(j&3,85);if(!g)break c;e=b+g|0;h=g-1|0;f=(h>>>2|0)+b|0;d=((g<<1)+6^-1)&6;if(h){k=g&-2;h=0;while(1){H[e-1|0]=P(K[f|0]>>>d&3,85);e=e-2|0;i=f;f=(d|0)==6;i=i-f|0;d=f?0:d+2|0;H[e|0]=P(K[i|0]>>>d&3,85);f=(d|0)==6;d=f?0:d+2|0;f=i-f|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c;H[e-1|0]=P(K[f|0]>>>d&3,85);break c;case 3:break d;default:break c}j=P(j&15,17);if(!g)break c;e=b+g|0;d=g<<2&4;h=g-1|0;f=(h>>>1|0)+b|0;if(h){k=g&-2;h=0;while(1){i=K[f|0]>>>d|0;H[e-1|0]=i&15| -i<<4;e=e-2|0;i=f;f=(d|0)!=0;i=i-f|0;l=!d;d=K[i|0]>>>(l<<2)|0;H[e|0]=d&15|d<<4;d=f<<2;f=i-l|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c;i=e-1|0;e=K[f|0]>>>d|0;H[i|0]=e&15|e<<4}H[a+11|0]=8;H[a+9|0]=8;J[a+4>>2]=g;d=8}if(!c)break a;e:{f:switch(d-8|0){case 0:if(!g)break e;e=b+g|0;d=(g<<1)+b|0;if((g|0)!=1){b=g&-2;f=0;while(1){c=e-1|0;H[d-1|0]=K[c|0]!=(j|0)?-1:0;H[d-2|0]=K[c|0];e=e-2|0;H[d-3|0]=K[e|0]!=(j|0)?-1:0;d=d-4|0;H[d|0]=K[e|0];f=f+2|0;if((b|0)!=(f|0))continue;break}}if(!(g&1))break e; -b=e-1|0;H[d-1|0]=K[b|0]!=(j|0)?-1:0;H[d-2|0]=K[b|0];break e;case 8:break f;default:break e}if(!g)break e;f=(j&65280)>>>8|0;c=J[a+4>>2];e=c+b|0;d=(c<<1)+b|0;b=0;h=j&255;while(1){j=e-1|0;i=d-1|0;e=e-2|0;g:{if((f|0)==K[e|0]){c=0;if((h|0)==K[j|0])break g}c=255}H[i|0]=c;H[d-2|0]=c;H[d-3|0]=K[j|0];d=d-4|0;H[d|0]=K[e|0];b=b+1|0;if((g|0)!=(b|0))continue;break}}H[a+10|0]=2;H[a+8|0]=4;b=K[a+9|0]<<1;H[a+11|0]=b;b=b&254;if(b>>>0>=8){b=P(b>>>3|0,g);break b}b=P(b,g)+7>>>3|0;break b}if(!c|(e|0)!=2)break a;h:{i:switch(K[a+ -9|0]-8|0){case 0:if(!g)break h;e=J[a+4>>2]+b|0;d=(g<<2)+b|0;f=L[c+2>>1]&255;k=L[c+4>>1]&255;i=L[c+6>>1]&255;while(1){c=e-1|0;l=d-1|0;b=e-3|0;j:{if(!((f|0)!=K[b|0]|(k|0)!=K[e-2|0])){j=0;if((i|0)==K[c|0])break j}j=255}H[l|0]=j;H[d-2|0]=K[c|0];H[d-3|0]=K[e-2|0];d=d-4|0;H[d|0]=K[b|0];e=b;h=h+1|0;if((h|0)!=(g|0))continue;break}break h;case 8:break i;default:break h}if(!g)break h;h=L[c+6>>1];k=h>>>8|0;i=L[c+4>>1];l=i>>>8|0;c=L[c+2>>1];m=c>>>8|0;e=J[a+4>>2]+b|0;d=(g<<3)+b|0;b=0;n=c&255;while(1){f=e-1|0; -o=d-1|0;c=e-6|0;k:{l:{if(K[c|0]!=(m|0)|K[e-5|0]!=(n|0)|((l|0)!=K[e-4|0]|K[e-3|0]!=(i&255)))break l;if((k|0)!=K[e-2|0])break l;j=0;if(K[f|0]==(h&255))break k}j=255}H[o|0]=j;H[d-2|0]=j;H[d-3|0]=K[f|0];H[d-4|0]=K[e-2|0];H[d-5|0]=K[e-3|0];H[d-6|0]=K[e-4|0];H[d-7|0]=K[e-5|0];d=d-8|0;H[d|0]=K[c|0];e=c;b=b+1|0;if((g|0)!=(b|0))continue;break}}H[a+10|0]=4;H[a+8|0]=6;b=K[a+9|0]<<2;H[a+11|0]=b;b=b&252;if(b>>>0>=8){b=P(b>>>3|0,g);break b}b=P(b,g)+7>>>3|0}J[a+4>>2]=b}}function dj(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;l=J[a+88>>2];n=l+12|0;a:{b:{c:{d:{if(H[a+8|0]&1){e:{f:{g:{h:{i:{j:{k:{p=J[b>>2];switch(p|0){case 3:break i;case 2:break j;case 0:break k;case 1:break g;case 4:break h;default:break e}}e=L[a+68>>1];f=e;break e}e=J[a+60>>2]-J[a+52>>2]|0;d=J[a- -64>>2]-J[a+56>>2]|0;break f}e=I[a+76>>1];d=I[a+70>>1]-I[a+72>>1]|0;break f}c=J[b+4>>2];J[l+16>>2]=c;b=J[b+8>>2];J[l+20>>2]=b;if(!c)break c;if(b)break b;break d}e=I[a+70>>1]-I[a+72>>1]|0;d=e}c=d;c=c>>31;f=(d^c)-c|0;c=e>>31; -e=(c^e)-c|0}d=J[b+4>>2];i=d;c=J[b+12>>2];if(c)i=(P(c,d)+36|0)/72|0;g=J[b+8>>2];m=g;b=J[b+16>>2];if(b)m=(P(b,g)+36|0)/72|0;l:{if(d){c=2147483647;m:{if(!e)break m;b=i>>31;h=(b^i)-b|0;if(h>>>0<=(e>>>17^65535)>>>0){c=((h<<16)+(e>>>1|0)>>>0)/(e>>>0)|0;break m}b=h<<16;d=b+(e>>>1|0)|0;b=(h>>>16|0)+(b>>>0>d>>>0)|0;if(b>>>0>=e>>>0)break m;o=S(b);j=32-o|0;b=d>>>j|b<>>0)/(e>>>0)|0;k=b-P(c,e)|0;b=d<>>31;h=d>>>0>=e>>>0;k=d-(h?e:0)|0;c=h|c<<1;j=31-o|0;b=b<<1}if((o|0)==31)break m;while(1){d= -k<<1|b>>>31;o=d>>>0>=e>>>0;d=b>>>30&1|d-(o?e:0)<<1;h=d>>>0>=e>>>0;k=d-(h?e:0)|0;c=c<<2|o<<1|h;b=b<<2;j=j-2|0;if(j)continue;break}}c=(i|0)<0?0-c|0:c;J[l+16>>2]=c;if(g){b=2147483647;n:{if(!f)break n;d=m>>31;h=(d^m)-d|0;if(h>>>0<=(f>>>17^65535)>>>0){b=((h<<16)+(f>>>1|0)>>>0)/(f>>>0)|0;break n}d=h<<16;g=d+(f>>>1|0)|0;d=(h>>>16|0)+(d>>>0>g>>>0)|0;if(d>>>0>=f>>>0)break n;h=S(d);j=32-h|0;d=g>>>j|d<>>0)/(f>>>0)|0;k=d-P(b,f)|0;e=g<>>31;g=d>>>0>=f>>>0;k=d-(g?f:0)|0;j=31-h|0;e=e<< -1;b=g|b<<1}if((h|0)==31)break n;while(1){d=k<<1|e>>>31;h=d>>>0>=f>>>0;d=e>>>30&1|d-(h?f:0)<<1;g=d>>>0>=f>>>0;k=d-(g?f:0)|0;b=g|(b<<2|h<<1);e=e<<2;j=j-2|0;if(j)continue;break}}b=(m|0)<0?0-b|0:b;J[l+20>>2]=b;if((p|0)!=3)break l;if((b|0)<=(c|0))break c;break d}J[l+20>>2]=c;m=hc(i,f,e);b=c;break l}i=2147483647;o:{if(!f)break o;b=m>>31;d=(b^m)-b|0;if(d>>>0<=(f>>>17^65535)>>>0){i=((d<<16)+(f>>>1|0)>>>0)/(f>>>0)|0;break o}b=d<<16;c=b+(f>>>1|0)|0;b=(d>>>16|0)+(b>>>0>c>>>0)|0;if(b>>>0>=f>>>0)break o;g=S(b); -k=32-g|0;b=c>>>k|b<>>0)/(f>>>0)|0;j=b-P(f,i)|0;b=c<>>31;d=c>>>0>=f>>>0;j=c-(d?f:0)|0;i=d|i<<1;k=31-g|0;b=b<<1}if((g|0)==31)break o;while(1){c=j<<1|b>>>31;g=c>>>0>=f>>>0;c=b>>>30&1|c-(g?f:0)<<1;d=c>>>0>=f>>>0;j=c-(d?f:0)|0;i=d|(i<<2|g<<1);b=b<<2;k=k-2|0;if(k)continue;break}}b=(m|0)<0?0-i|0:i;J[l+16>>2]=b;J[l+20>>2]=b;i=hc(m,e,f);c=b}if(!p)break a;break b}J[n>>2]=0;J[n+4>>2]=0;J[n+24>>2]=0;J[n+16>>2]=0;J[n+20>>2]=0;J[n+8>>2]=0;J[n+12>>2]=0;J[l+16>>2]=65536;J[l+20>>2]=65536; -return}J[l+20>>2]=c;b=c;break b}J[l+16>>2]=b;c=b}d=(c|0)<0;g=L[a+68>>1];e=c;c=c>>31;c=(e^c)-c|0;p:{if(g+(c>>>8|0)>>>0<=8190){c=P(c,g)+32768>>>16|0;break p}c=P(g,c>>>16|0)+(P(g,c&65535)+32768>>>16|0)|0}i=d?0-c|0:c;c=b>>31;c=(c^b)-c|0;q:{if(g+(c>>>8|0)>>>0<=8190){c=P(c,g)+32768>>>16|0;break q}c=P(g,c>>>16|0)+(P(g,c&65535)+32768>>>16|0)|0}m=(b|0)<0?0-c|0:c}I[l+14>>1]=m+32>>>6;I[l+12>>1]=i+32>>>6;oE(a,n)}function ila(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;a:{while(1){b:{c:{if(M[a+ -116>>2]<=261){ro(a);c=J[a+116>>2];if(!(c>>>0>=262|b))return 0;if(!c)break a;if(c>>>0<3)break c}e=J[a+108>>2];c=J[a+84>>2]&(K[(e+J[a+56>>2]|0)+2|0]^J[a+72>>2]<>2]);J[a+72>>2]=c;c=J[a+68>>2]+(c<<1)|0;d=L[c>>1];I[J[a+64>>2]+((e&J[a+52>>2])<<1)>>1]=d;I[c>>1]=e;if(!d|J[a+44>>2]-262>>>0>>0)break c;d=QF(a,d);J[a+96>>2]=d;break b}d=J[a+96>>2]}d:{if(d>>>0>=3){c=J[a+5792>>2];e=J[a+108>>2]-J[a+112>>2]|0;I[J[a+5796>>2]+(c<<1)>>1]=e;J[a+5792>>2]=c+1;i=c+J[a+5784>>2]|0;c=d-3|0;H[i|0]=c;c=((K[(c&255)+ -231760|0]<<2)+a|0)+1176|0;I[c>>1]=L[c>>1]+1;c=e-1&65535;c=((K[(c>>>0<256?c:(c>>>7|0)+256|0)+231248|0]<<2)+a|0)+2440|0;I[c>>1]=L[c>>1]+1;d=J[a+96>>2];c=J[a+116>>2]-d|0;J[a+116>>2]=c;j=J[a+5788>>2]-1|0;k=J[a+5792>>2];if(!(c>>>0<3|d>>>0>M[a+128>>2])){g=d-1|0;J[a+96>>2]=g;l=J[a+56>>2]+3|0;h=J[a+72>>2];d=J[a+108>>2];m=J[a+52>>2];n=J[a+64>>2];o=J[a+68>>2];i=J[a+84>>2];f=J[a+88>>2];while(1){c=d;d=c+1|0;J[a+108>>2]=d;h=(K[c+l|0]^h<>2]=h;e=(h<<1)+o|0;I[((d&m)<<1)+n>>1]=L[e>>1];I[e>>1]=d;g=g-1| -0;J[a+96>>2]=g;if(g)continue;break}d=c+2|0;J[a+108>>2]=d;if((j|0)!=(k|0))continue;break d}J[a+96>>2]=0;d=d+J[a+108>>2]|0;J[a+108>>2]=d;e=J[a+56>>2]+d|0;c=K[e|0];J[a+72>>2]=c;J[a+72>>2]=J[a+84>>2]&(K[e+1|0]^c<>2]);if((j|0)!=(k|0))continue;break d}d=K[J[a+56>>2]+J[a+108>>2]|0];c=J[a+5792>>2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>>2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]=L[c+148>>1]+1;J[a+116>>2]=J[a+116>>2]-1;d=J[a+108>>2]+1|0;J[a+108>>2]=d;if(J[a+5792>>2]!=(J[a+5788>>2]-1|0))continue}e= -J[a+92>>2];if((e|0)>=0)c=e+J[a+56>>2]|0;else c=0;Bf(a,c,d-e|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];oe(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;e:{if(!d)break e;Mb(J[f+12>>2],J[e+16>>2],d);J[f+12>>2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+20>>2];J[f+16>>2]=J[f+16>>2]-d;c=J[e+20>>2];J[e+20>>2]=c-d;if((c|0)!=(d|0))break e;J[e+16>>2]=J[e+8>>2]}if(J[J[a>>2]+16>>2])continue;break}return 0}d=J[a+108>>2];J[a+5812>>2]=d>>>0>=2?2:d;if((b|0)==4){c=J[a+92>>2];if((c|0)>=0)b=c+ -J[a+56>>2]|0;else b=0;Bf(a,b,d-c|0,1);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];oe(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;f:{if(!c)break f;Mb(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break f;J[d+16>>2]=J[d+8>>2]}return(J[J[a>>2]+16>>2]?3:2)|0}g:{if(!J[a+5792>>2])break g;c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;Bf(a,b,d-c|0,0);J[a+92>>2]=J[a+108>>2];e=J[a>> -2];d=J[e+28>>2];oe(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;h:{if(!c)break h;Mb(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break h;J[d+16>>2]=J[d+8>>2]}if(J[J[a>>2]+16>>2])break g;return 0}return 1}function baa(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;i=xb-144|0;xb=i;g=J[a+584>>2];e=J[g+88>>2];a:{b:{if(!e){e=c;break b}d= -J[g+100>>2];f=L[d+4>>1]-e|0;c:{if((f|0)>(c|0)){J[g+88>>2]=c+e;e=f;while(1){d:{d=J[d>>2];e=e-1|0;if((e|0)<=(c|0))break d;if(d)continue}break}if(!d){e=c;break c}h=b+c|0;e=c;while(1){h=h-1|0;H[h|0]=K[d+6|0];e=e-1|0;if(!e)break c;d=J[d>>2];if(d)continue;break}break c}b=b+f|0;h=b;j=f;while(1){e:{e=J[d>>2];h=h-1|0;H[h|0]=K[d+6|0];j=j-1|0;if(!j)break e;d=e;if(d)continue}break}J[g+88>>2]=0;e=c-f|0}s=1;if((c|0)<(f|0))break a}s=1;q=J[g+112>>2];k=J[g+108>>2];d=J[g+104>>2];o=J[g+84>>2];m=J[g+76>>2];c=J[g+72>> -2];n=L[g+64>>1];l=J[a+604>>2];f:{g:{if((e|0)<=0)break g;while(1){f=J[g+92>>2];if((f|0)<(n|0)){b=J[a>>2];f=J[a+628>>2];J[i+16>>2]=J[a+480>>2];yc(f,b,266270,i+16|0);break g}c=K[l|0]|c<<8;h=m+8|0;if((n|0)<=(h|0))l=l+1|0;else{h=m+16|0;c=K[l+1|0]|c<<8;l=l+2|0}J[g+92>>2]=f-n;h:{i:{j:{m=h-n|0;p=c>>m&o;h=p&65535;switch(h-256|0){case 1:break g;case 0:break j;default:break i}}k=J[g+116>>2]+2064|0;Pd(k,0,38888);q=J[g+116>>2]+4080|0;j=J[g+92>>2];if((j|0)<=8){b=J[a>>2];f=J[a+628>>2];J[i+112>>2]=J[a+480>>2];yc(f, -b,266270,i+112|0);o=511;n=9;break g}c=K[l|0]|c<<8;k:{if((m|0)>0){l=l+1|0;f=m+8|0;break k}c=K[l+1|0]|c<<8;l=l+2|0;f=m+16|0}J[g+92>>2]=j-9;o=511;n=9;l:{m:{m=f-9|0;f=c>>m;switch((f&511)-256|0){case 1:break g;case 0:break m;default:break l}}b=J[a>>2];c=J[a+628>>2];J[i+128>>2]=J[a+472>>2];Ob(c,b,266898,i+128|0);break f}H[b|0]=f;e=e-1|0;d=J[g+116>>2]+((f&511)<<3)|0;b=b+1|0;break h}n:{j=J[g+116>>2];if(j>>>0<=k>>>0){f=j+40952|0;if(f>>>0>k>>>0)break n}b=J[a>>2];c=J[a+628>>2];J[i+96>>2]=J[a+472>>2];Ob(c,b, -266898,i+96|0);break f}J[k>>2]=d;if(!(d>>>0>>0&d>>>0>=j>>>0)){b=J[a>>2];c=J[a+628>>2];J[i+80>>2]=J[a+472>>2];Ob(c,b,266898,i+80|0);break f}H[k+7|0]=K[d+7|0];I[k+4>>1]=L[d+4>>1]+1;d=h<<3;f=d+j|0;H[k+6|0]=K[(f>>>0>>0?f+7|0:k+7|0)|0];k=k+8|0;if(q>>>0>>0){o=(n|0)>=11?11:n;n=o+1|0;o=-2<>>0>=256){r=L[(d+j|0)+4>>1];if(!r){b=J[a>>2];c=J[a+628>>2];J[i+32>>2]=J[a+472>>2];Ob(c,b,269221,i+32|0);break f}if(e>>>0>>0){J[g+100>>2]=f;j=e&65535;d=f;o:{while(1){d=J[d>>2];if(!d)break o; -if(j>>>0>1])continue;break}J[g+88>>2]=e;h=b+e|0;while(1){p:{h=h-1|0;H[h|0]=K[d+6|0];d=J[d>>2];e=e-1|0;if(!e)break p;if(d)continue}break}if(!d)break o;b=J[a>>2];d=J[a+628>>2];J[i+48>>2]=J[a+472>>2];Ob(d,b,270445,i+48|0)}d=f;break g}p=b+r|0;d=p;j=f;while(1){q:{h=J[j>>2];d=d-1|0;H[d|0]=K[j+6|0];if(!h)break q;j=h;if(b>>>0>>0)continue}break}if(h){b=J[a>>2];d=J[a+628>>2];J[i+64>>2]=J[a+472>>2];Ob(d,b,270445,i- -64|0);d=f;break g}e=e-r|0;d=f;b=p;break h}H[b|0]=p;e=e-1|0;d=f;b=b+1|0}if((e|0)>0)continue; -break}}J[a+604>>2]=l;J[g+112>>2]=q;J[g+108>>2]=k;J[g+104>>2]=d;J[g+84>>2]=o;J[g+76>>2]=m;J[g+72>>2]=c;I[g+64>>1]=n;if((e|0)<=0)break a;b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[i+4>>2]=e;J[i>>2]=a;Ob(c,b,269842,i)}s=0}xb=i+144|0;return s|0}function Bu(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<2)break b;c=1;c:{d:{e:{f:{g:{h:{i:{e=K[a|0]|K[a+1|0]<<8;switch((e<<8|e>>>8)&65535){case 10:break d;case 8:break e;case 6:break f;case 4:break g;case 2:break h; -case 0:break i;default:break c}}e=J[b+40>>2];if(e>>>0>1073741823)break b;a=a+2|0;if(M[b+12>>2]>2]>>>0)break b;c=0;g=J[b+8>>2]-a|0;a=e<<2;if(g>>>0>>0)break c;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0}g=J[b+12>>2];c=a+2|0;e=J[b+4>>2];if(g>>>0>>0)break b;f=J[b+8>>2];if(f-c>>>0<10)break b;c=K[c|0]|K[c+1|0]<<8;h=(c<<8|c>>>8)&65535;if(h>>>0<8)break b;d=a+12|0;if(g>>>0>>0)break b;c=0;a=K[a+4|0]|K[a+5|0]<<8;a=P(h,(a<<8|a>>>8)&65535);if(a>>>0>f-d>>>0)break c;break a}e=J[b+12>>2];f= -a+2|0;c=J[b+4>>2];j:k:{if(e>>>0>>0)break k;d=J[b+8>>2];if(d-f>>>0<10)break k;h=K[f|0]|K[f+1|0]<<8;i=(h<<8|h>>>8)&65535;if(i>>>0<6)break k;h=a+12|0;if(h-c>>>0>e>>>0)break k;c=K[a+4|0]|K[a+5|0]<<8;c=P(i,(c<<8|c>>>8)&65535);if(c>>>0>d-h>>>0)break k;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break k;c=K[a+4|0]|K[a+5|0]<<8;d=(c<<8|c>>>8)&65535;e=0;g=0;l:{if(!c)break l;c=K[f|0]|K[f+1|0]<<8;c=h+P(d-1|0,(c<<8|c>>>8)&65535)|0;g=0;if((K[c|0]|K[c+1|0]<<8)!=65535)break l;g=(K[c+2|0]|K[c+3|0]<<8)==65535?-1: -0}l=d+g|0;g=1;if(!l)break j;while(1){d=K[a+4|0]|K[a+5|0]<<8;i=(d<<8|d>>>8)&65535;g=0;j=J[b+12>>2];c=0;m:{if(!d)break m;d=K[f|0]|K[f+1|0]<<8;d=h+P(i-1|0,(d<<8|d>>>8)&65535)|0;c=0;if((K[d|0]|K[d+1|0]<<8)!=65535)break m;c=(K[d+2|0]|K[d+3|0]<<8)==65535?-1:0}if(c+i>>>0<=e>>>0)c=169776;else{c=K[f|0]|K[f+1|0]<<8;c=h+P((c<<8|c>>>8)&65535,e)|0}d=J[b+4>>2];if(j>>>0>>0|J[b+8>>2]-c>>>0<6)break k;i=K[c+2|0]|K[c+3|0]<<8;i=(i<<8|i>>>8)&65535;k=K[c|0]|K[c+1|0]<<8;k=(k<<8|k>>>8)&65535;if(i>>>0>k>>>0)break k; -c=c+4|0;if(c-d>>>0>j>>>0|J[b+8>>2]-c>>>0<2)break k;i=(k-i|0)+1|0;if(i>>>0>1073741823)break k;c=K[c|0]|K[c+1|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;if(c-d>>>0>j>>>0)break k;j=J[b+8>>2]-c|0;c=i<<2;if(j>>>0>>0)break k;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break k;g=1;e=e+1|0;if((l|0)!=(e|0))continue;break}}return g}g=J[b+12>>2];c=a+2|0;e=J[b+4>>2];if(g>>>0>>0)break b;f=J[b+8>>2];if(f-c>>>0<10)break b;c=K[c|0]|K[c+1|0]<<8;h=(c<<8|c>>>8)&65535;if(h>>>0<6)break b;d=a+12|0;if(g>>>0>>0)break b; -c=0;a=K[a+4|0]|K[a+5|0]<<8;a=P(h,(a<<8|a>>>8)&65535);if(a>>>0>f-d>>>0)break c;break a}e=J[b+12>>2];c=J[b+4>>2];if(e>>>0>>0)break b;g=J[b+8>>2];if(g-a>>>0<6)break b;f=a+6|0;if(e>>>0>>0)break b;c=0;a=K[a+4|0]|K[a+5|0]<<8;a=((a<<8|a>>>8)&65535)<<2;if(a>>>0>g-f>>>0)break c;break a}e=J[b+12>>2];c=J[b+4>>2];if(e>>>0>>0)break b;g=J[b+8>>2];if(g-a>>>0<8)break b;f=K[a+2|0]|K[a+3|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0>4)break b;h=a+8|0;if(e>>>0>>0)break b;c=0;a=K[a+6|0]|K[a+7|0]<<8;a=P(f,(a<< -8|a>>>8)&65535);if(a>>>0>g-h>>>0)break c;a=J[b+16>>2]-a|0;J[b+16>>2]=a;c=(a|0)>0}return c}return 0}a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0}function rG(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;e=J[b+88>>2];c=K[a+2|0]|K[a+3|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;h=ld(c,J[J[e+80>>2]+P(J[e+64>>2],20)>>2]);a:{b:{if((h|0)==-1)break b;c=J[e+64>>2];J[b+4>>2]=c;d=J[b+36>>2];j=d-1|0;c:{if((j|0)<=(c|0))break c;d:{while(1){c=c+1|0;J[b+4>>2]=c;d= -J[b+12>>2];f=J[b+8>>2];g=J[J[f+88>>2]+80>>2]+P(c,20)|0;c=L[g+12>>1];e:{if(d&c&14)break e;if(c&8)if(!Bd(f,J[g>>2],c,d))break e;d=1;c=L[g+16>>1];if(!(K[g+12|0]&16|(c&96)!=32|!K[b+20|0]&(c&543)==513))d=!K[b+21|0]&(c&287)==257;f=J[b+32>>2];if(f){c=K[f|0]|K[f+1|0]<<8;c=(c<<8|c>>>8)&65535}else c=0;f:{if(!(J[b+16>>2]&J[g+4>>2]))break f;i=K[b+23|0];if((i|0)!=K[g+15|0]?i:0)break f;i=J[b+24>>2];g:{if(i){if(!(Ab[i|0](g,c,J[b+28>>2])|0))break f;f=J[b+32>>2];break g}if(!d)break e}if(f)J[b+32>>2]=f+2;c=K[a+8|0]| -K[a+9|0]<<8;c=h>>>0>=((c<<8|c>>>8)&65535)>>>0?169776:((h<<1)+a|0)+10|0;c=K[c|0]|K[c+1|0]<<8;if(c)g=((c<<8|c>>>8)&65535)+a|0;else g=169776;h=a+4|0;e=J[b+4>>2];d=0;f=xb-48|0;xb=f;c=J[b+88>>2];j=J[c+80>>2];h:{i:{a=K[g|0]|K[g+1|0]<<8;if(a){q=g+2|0;r=h+2|0;n=K[h|0]|K[h+1|0]<<8;o=Npa(n);l=K[h+2|0]|K[h+3|0]<<8;s=(o+Npa(l)<<1)+2|0;p=J[j+P(e,20)>>2];a=((a<<8|a>>>8)&65535)-1|0;while(1){m=a+d>>>1|0;i=P(s,m)+q|0;k=K[i|0]|K[i+1|0]<<8;k=(k<<8|k>>>8)&65535;j:{if(k>>>0>p>>>0){a=m-1|0;break j}if((k|0)==(p|0))break i; -d=m+1|0}if((a|0)>=(d|0))continue;break}}a=0;if(!(K[c+16|0]&64))break h;J[c+144>>2]=J[c+144>>2]|32;d=J[c+64>>2];b=J[c+68>>2];c=e+1|0;c=b>>>0>>0?b:c;if(d>>>0>=c>>>0)break h;b=c+(d^-1)|0;e=c-d&3;if(e)while(1){g=j+P(d,20)|0;J[g+4>>2]=J[g+4>>2]|2;d=d+1|0;a=a+1|0;if((e|0)!=(a|0))continue;break}a=0;if(b>>>0<3)break h;while(1){b=j+P(d,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]|2;b=b- -64|0;J[b>>2]=J[b>>2]|2;d=d+4|0;if((c|0)!=(d|0))continue;break}break h}if(J[c+156>>2]){a= -J[b+80>>2];d=J[c+64>>2];J[f+36>>2]=e;J[f+32>>2]=d;nc(c,a,130424,f+32|0)}d=0;j=0;if(n)j=Bk(h,b,g,i+2|0,J[c+88>>2]+P(J[c+64>>2],20)|0);if(l)d=Bk(r,b,g,((o<<1)+i|0)+2|0,J[c+88>>2]+P(e,20)|0);g=d|j;a=J[b+88>>2];if(!((g|0)!=1|!J[a+156>>2])){d=J[b+80>>2];h=J[a+64>>2];J[f+20>>2]=e;J[f+16>>2]=h;nc(a,d,130456,f+16|0);a=J[b+88>>2]}if(J[a+156>>2]){b=J[b+80>>2];d=J[a+64>>2];J[f+4>>2]=e;J[f>>2]=d;nc(a,b,130483,f)}if(g)Ac(c,3,J[c+64>>2],e+1|0,1,0);if(l){Ac(c,3,J[c+64>>2],e+2|0,1,0);e=e+1|0}J[c+64>>2]=e;a=1}xb= -f+48|0;break a}if(d)break d}c=J[b+4>>2];if((j|0)>(c|0))continue;break}d=J[b+36>>2];break c}d=J[b+4>>2]+1|0}if(!(K[e+16|0]&64))break b;a=J[e+64>>2];J[e+144>>2]=J[e+144>>2]|32;b=J[e+68>>2];c=b>>>0>>0?b:d;if(c>>>0<=a>>>0)break b;g=c+(a^-1)|0;e=J[e+80>>2];d=c-a&3;if(d){b=0;while(1){f=e+P(a,20)|0;J[f+4>>2]=J[f+4>>2]|2;a=a+1|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}if(g>>>0<3)break b;while(1){b=e+P(a,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]|2;b=b- -64|0;J[b>>2]=J[b>> -2]|2;a=a+4|0;if((c|0)!=(a|0))continue;break}}a=0}return a|0}function Cu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=1;a:{b:{c:switch((K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))>>>24|0){case 0:d=0;e=J[b+12>>2];c=a+12|0;f=J[b+4>>2];if(e>>>0>>0)break b;g=J[b+8>>2];if(g-c>>>0<8)break b;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=Kpa(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24),0,6,0);if(zb)break b;a=a+28|0;if(e>>>0>>0|c>>>0>g-a>>>0)break b;a=J[b+16>>2]-c|0;J[b+16>>2]=a;return(a|0)>0| -0;case 1:d=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<32)break b;break a;case 2:e=J[b+12>>2];d=J[b+4>>2];d:{if(e>>>0>>0)break d;g=J[b+8>>2];if(g-a>>>0<28)break d;c=a+16|0;if(e>>>0>>0|g-c>>>0<4|K[c|0]&128)break d;c=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);if(!og((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0,b))break d;c=a+20|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break d;c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);if(!og((c<<24|(c&65280)<< -8|(c>>>8&65280|c>>>24))+a|0,b)|M[b+12>>2]>2]>>>0)break d;c=J[b+8>>2]-a|0;a=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(c>>>0>>0)break d;a=J[b+16>>2]-a|0;J[b+16>>2]=a;f=(a|0)>0}return f|0;case 4:d=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<32)break b;break a;case 6:break c;default:break b}e:{f:{c=J[b+12>>2];d=J[b+4>>2];if(c>>>0>>0)break f;f=J[b+8>>2];if(f-a>>>0<36)break f;e=c;c=a+20|0;d=e>>>0>=c-d>>>0&f-c>>>0>3;g:{h:{i:{if(H[a+ -15|0]&1){if(!d|K[c|0]&128)break f;c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);if(!Bu((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0,b))break f;c=a+24|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break f;c=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);if(!Bu((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0,b))break f;f=J[b+12>>2];e=J[b+4>>2];if(f>>>0>>0)break f;c=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);g=J[b+ -8>>2];if(c>>>0<=g-a>>>0)break i;break f}if(!d|K[c|0]&128)break f;c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);if(!og((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0,b))break f;c=a+24|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break f;c=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);if(!og((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0,b))break f;f=J[b+12>>2];e=J[b+4>>2];if(f>>>0>>0)break f;c=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);c=c<<24|(c&65280)<< -8|(c>>>8&65280|c>>>24);g=J[b+8>>2];if(c>>>0>g-a>>>0)break f;d=J[b+16>>2]-c|0;J[b+16>>2]=d;if((d|0)>0)break h;break f}d=J[b+16>>2]-c|0;J[b+16>>2]=d;c=0;if((d|0)<=0)break g}c=1;if(!(K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24)))break e;if(a-e>>>0>f>>>0)break f;e=g-a|0;a=K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=0;if(e>>>0>>0)break g;a=d-a|0;J[b+16>>2]=a;c=(a|0)>0}break e}c=0}d=c}return d|0}return Nu(a+12|0,b)|0}function OG(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;l=xb-32|0;xb=l;d=K[a+2|0]|K[a+3|0]<<8;if(d)e=((d<<8|d>>>8)&65535)+a|0;else e=169776;d=J[b+88>>2];n=ld(e,J[J[d+80>>2]+P(J[d+64>>2],20)>>2]);a:{if((n|0)==-1|J[b+188>>2]!=64)break a;d=K[a+4|0]|K[a+5|0]<<8;o=(d<<8|d>>>8)&65535;j=(a+4|0)+(o<<1)|0;g=K[j+2|0]|K[j+3|0]<<8;h=(g<<8|g>>>8)&65535;m=((h<<1)+j|0)+4|0;e=K[m|0]|K[m+1|0]<<8;if(((e<<8|e>>>8)&65535)>>>0<=n>>>0)break a;e=J[b+88>>2];k=J[e+(K[e+62|0]?72:64)>>2];J[b+40>>2]=k;c=J[J[b+44>>2]+ -88>>2];p=J[c+68>>2];J[b+72>>2]=p;i=J[c+64>>2];f=(i|0)==(k|0)?K[(J[c+80>>2]+P(k,20)|0)+15|0]:f;J[b+68>>2]=a+6;J[b- -64>>2]=a;J[b+60>>2]=842;H[b+59|0]=K[b+58|0]?f:0;b:{c:{d:{if(!d)break d;h=o>>>0<=1?1:o;k=0;g=0;e:{while(1){c=J[b+40>>2];if(!c)break e;c=c-1|0;J[b+40>>2]=c;d=J[b+48>>2];e=J[b+44>>2];f=J[J[e+88>>2]+84>>2]+P(c,20)|0;c=L[f+12>>1];if(d&c&14)continue;if(c&8)if(!Bd(e,J[f>>2],c,d))continue;d=1;c=L[f+16>>1];if(!(K[f+12|0]&16|(c&96)!=32|!K[b+56|0]&(c&543)==513))d=!K[b+57|0]&(c&287)==257;e=J[b+68>> -2];if(e){c=K[e|0]|K[e+1|0]<<8;c=(c<<8|c>>>8)&65535}else c=0;f:{if(!(J[b+52>>2]&J[f+4>>2]))break f;i=K[b+59|0];if((i|0)!=K[f+15|0]?i:0)break f;i=J[b+60>>2];g:{if(i){if(!(Ab[i|0](f,c,J[b+64>>2])|0))break f;e=J[b+68>>2];break g}if(!d)continue}if(e)J[b+68>>2]=e+2;g=g+1|0;if((h|0)!=(g|0))continue;g=K[j+2|0]|K[j+3|0]<<8;h=(g<<8|g>>>8)&65535;e=J[b+88>>2];k=J[b+40>>2];c=J[J[b+44>>2]+88>>2];i=J[c+64>>2];p=J[c+68>>2];break d}if(!d)continue;break}a=J[b+40>>2];k=(a>>>0<=1?1:a)-1|0}d=0;break c}d=J[e+64>>2];J[b+ -72>>2]=p;J[b+40>>2]=d;f=0;f=(d|0)==(i|0)?K[(J[c+80>>2]+P(i,20)|0)+15|0]:f;J[b+68>>2]=j+4;J[b+64>>2]=a;J[b+60>>2]=842;H[b+59|0]=K[b+58|0]?f:0;if(!g)break b;f=h>>>0<=1?1:h;g=0;h:{i:while(1){a=J[b+40>>2];d=J[b+72>>2];j=d-1|0;if((a|0)>=(j|0))break c;while(1){a=a+1|0;J[b+40>>2]=a;c=J[b+48>>2];d=J[b+44>>2];e=J[J[d+88>>2]+80>>2]+P(a,20)|0;a=L[e+12>>1];j:{if(c&a&14)break j;if(a&8)if(!Bd(d,J[e>>2],a,c))break j;c=1;a=L[e+16>>1];if(!(K[e+12|0]&16|(a&96)!=32|!K[b+56|0]&(a&543)==513))c=!K[b+57|0]&(a&287)==257; -d=J[b+68>>2];if(d){a=K[d|0]|K[d+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;k:{if(!(J[b+52>>2]&J[e+4>>2]))break k;h=K[b+59|0];if((h|0)!=K[e+15|0]?h:0)break k;h=J[b+60>>2];l:{if(h){if(!(Ab[h|0](e,a,J[b+64>>2])|0))break k;d=J[b+68>>2];break l}if(!c)break j}if(d)J[b+68>>2]=d+2;g=g+1|0;if((f|0)!=(g|0))continue i;e=J[b+88>>2];d=J[b+40>>2];break b}if(c)break h}a=J[b+40>>2];if((j|0)>(a|0))continue;break}break}d=J[b+72>>2];break c}d=J[b+40>>2]+1|0}c=0;a=J[b+88>>2];if(!(K[a+16|0]&64))break a;Ac(a,2,k,d,0,1);break a}Ac(e, -3,k,d+1|0,1,1);a=J[b+88>>2];if(J[a+156>>2]){c=J[b+80>>2];J[l+16>>2]=J[a+64>>2];nc(a,c,130100,l+16|0)}a=K[m|0]|K[m+1|0]<<8;a=((a<<8|a>>>8)&65535)>>>0<=n>>>0?169776:((n<<1)+m|0)+2|0;a=K[a|0]|K[a+1|0]<<8;c=(a<<8|a>>>8)&65535;Yl(b,c,0,0,0);a=J[b+88>>2];d=J[a+64>>2];J[J[a+80>>2]+P(d,20)>>2]=c;c=1;if(!J[a+156>>2])break a;b=J[b+80>>2];J[l>>2]=d;nc(a,b,130162,l)}xb=l+32|0;return c|0}function og(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<2)break b; -c=1;c:{d:{e:{f:{g:{h:{i:{e=K[a|0]|K[a+1|0]<<8;switch((e<<8|e>>>8)&65535){case 10:break d;case 8:break e;case 6:break f;case 4:break g;case 2:break h;case 0:break i;default:break c}}c=0;e=J[b+40>>2];if((e|0)<0)break c;a=a+2|0;if(M[b+12>>2]>2]>>>0)break c;g=J[b+8>>2]-a|0;a=e<<1;if(g>>>0>>0)break c;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0}g=J[b+12>>2];c=a+2|0;e=J[b+4>>2];if(g>>>0>>0)break b;f=J[b+8>>2];if(f-c>>>0<10)break b;c=K[c|0]|K[c+1|0]<<8;h=(c<<8|c>>>8)&65535;if(h>>>0<6)break b; -d=a+12|0;if(g>>>0>>0)break b;c=0;a=K[a+4|0]|K[a+5|0]<<8;a=P(h,(a<<8|a>>>8)&65535);if(a>>>0>f-d>>>0)break c;break a}e=J[b+12>>2];f=a+2|0;c=J[b+4>>2];j:k:{if(e>>>0>>0)break k;d=J[b+8>>2];if(d-f>>>0<10)break k;h=K[f|0]|K[f+1|0]<<8;i=(h<<8|h>>>8)&65535;if(i>>>0<6)break k;h=a+12|0;if(h-c>>>0>e>>>0)break k;c=K[a+4|0]|K[a+5|0]<<8;c=P(i,(c<<8|c>>>8)&65535);if(c>>>0>d-h>>>0)break k;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break k;c=K[a+4|0]|K[a+5|0]<<8;d=(c<<8|c>>>8)&65535;e=0;g=0;l:{if(!c)break l; -c=K[f|0]|K[f+1|0]<<8;c=h+P(d-1|0,(c<<8|c>>>8)&65535)|0;g=0;if((K[c|0]|K[c+1|0]<<8)!=65535)break l;g=(K[c+2|0]|K[c+3|0]<<8)==65535?-1:0}l=d+g|0;g=1;if(!l)break j;while(1){d=K[a+4|0]|K[a+5|0]<<8;i=(d<<8|d>>>8)&65535;g=0;j=J[b+12>>2];c=0;m:{if(!d)break m;d=K[f|0]|K[f+1|0]<<8;d=h+P(i-1|0,(d<<8|d>>>8)&65535)|0;c=0;if((K[d|0]|K[d+1|0]<<8)!=65535)break m;c=(K[d+2|0]|K[d+3|0]<<8)==65535?-1:0}if(c+i>>>0<=e>>>0)c=169776;else{c=K[f|0]|K[f+1|0]<<8;c=h+P((c<<8|c>>>8)&65535,e)|0}d=J[b+4>>2];if(j>>>0>>0|J[b+ -8>>2]-c>>>0<6)break k;i=K[c+2|0]|K[c+3|0]<<8;i=(i<<8|i>>>8)&65535;k=K[c|0]|K[c+1|0]<<8;k=(k<<8|k>>>8)&65535;if(i>>>0>k>>>0)break k;c=c+4|0;if(c-d>>>0>j>>>0|J[b+8>>2]-c>>>0<2)break k;i=k-i|0;if((i|0)<-1)break k;c=K[c|0]|K[c+1|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;if(c-d>>>0>j>>>0)break k;j=J[b+8>>2]-c|0;c=(i<<1)+2|0;if(j>>>0>>0)break k;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break k;g=1;e=e+1|0;if((l|0)!=(e|0))continue;break}}return g}g=J[b+12>>2];c=a+2|0;e=J[b+4>>2];if(g>>>0>>0)break b;f=J[b+ -8>>2];if(f-c>>>0<10)break b;c=K[c|0]|K[c+1|0]<<8;h=(c<<8|c>>>8)&65535;if(h>>>0<4)break b;d=a+12|0;if(g>>>0>>0)break b;c=0;a=K[a+4|0]|K[a+5|0]<<8;a=P(h,(a<<8|a>>>8)&65535);if(a>>>0>f-d>>>0)break c;break a}e=J[b+12>>2];c=J[b+4>>2];if(e>>>0>>0)break b;g=J[b+8>>2];if(g-a>>>0<6)break b;f=a+6|0;if(e>>>0>>0)break b;c=0;a=K[a+4|0]|K[a+5|0]<<8;a=((a<<8|a>>>8)&65535)<<1;if(a>>>0>g-f>>>0)break c;break a}e=J[b+12>>2];c=J[b+4>>2];if(e>>>0>>0)break b;g=J[b+8>>2];if(g-a>>>0<8)break b;f=K[a+2| -0]|K[a+3|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0>4)break b;h=a+8|0;if(e>>>0>>0)break b;c=0;a=K[a+6|0]|K[a+7|0]<<8;a=P(f,(a<<8|a>>>8)&65535);if(a>>>0>g-h>>>0)break c;a=J[b+16>>2]-a|0;J[b+16>>2]=a;c=(a|0)>0}return c}return 0}a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0}function d_(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;c=a+4|0;J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;j=c;J[195395]=0;i=a+32|0;H[i+368|0]=0;J[i+4>>2]=415608;J[i>>2]=415552;J[i+364>>2]=0;c=J[195395];J[195395]=0;a:{b:{if((c|0)!=1){J[195395]= -0;e=a+408|0;c=e;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;f=a+456|0;c=f;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;c=a+504|0;J[c+8>>2]=0; -J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;d=J[195395];J[195395]=0;if((d|0)==1)break b;J[195395]=0;d=a+552|0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=1072693248;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=1072693248;J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;d=J[195395];J[195395]=0;if((d|0)==1)break b;J[195395]=0;g=a+600|0;H[g|0]=0;H[g+1|0]=0;H[g+2|0]=0;H[g+3|0]=0;d= -J[195395];J[195395]=0;if((d|0)==1)break b;J[195395]=0;h=a+604|0;H[h|0]=0;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=0;d=J[195395];J[195395]=0;if((d|0)==1)break b;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=1;J[a+20>>2]=0;J[a>>2]=b;J[a+680>>2]=0;J[a+684>>2]=0;J[195395]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=1072693248;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=1072693248;J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;J[f+8>>2]=0;J[f+12>>2]=0; -J[f>>2]=0;J[f+4>>2]=1072693248;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=1072693248;J[f+16>>2]=0;J[f+20>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;H[g+2|0]=0;H[g+1|0]=0;H[g|0]=0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]= -0;H[h+2|0]=255;H[h+1|0]=255;H[h|0]=255;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[a+664>>2]=0;J[a+668>>2]=0;J[a+648>>2]=0;J[a+652>>2]=0;J[a+624>>2]=0;J[a+616>>2]=0;J[a+620>>2]=2;J[a+608>>2]=0;J[a+612>>2]=1;J[a+640>>2]=0;J[a+644>>2]=1072693248;J[a+688>>2]=1;J[a+680>>2]=0;J[a+684>>2]=0;J[a+632>>2]=0;J[a+636>>2]=1072693248;J[a+672>>2]=1;J[a+676>>2]=1;J[a+656>>2]=1;J[a+660>>2]=1;J[a+76>>2]=108;J[a+68>>2]=7471169;J[a+72>>2]=6357097;H[a+63|0]=1;H[a+65|0]=0;J[a+48>>2]=0;H[a+60|0]=0;J[a+40>>2]=-18;H[a- --64|0]=4;I[a+66>>1]=512;H[a+61|0]=0;H[a+62|0]=0;J[a+52>>2]=0;J[a+56>>2]=400;J[a+44>>2]=0;J[a+392>>2]=0;J[a+396>>2]=0;return a|0}a=Z()|0;break a}a=Z()|0;ch(i)}qd(j);ba(a|0);B()}function aG(a,b,c,d,e){a=a|0;b=Q(b);c=Q(c);d=Q(d);e=Q(e);var f=0,g=0,h=Q(0),i=Q(0),j=0,k=Q(0),l=0,m=0,n=0,o=Q(0),p=Q(0),q=0,r=0,s=0,t=Q(0),u=0,w=0,x=Q(0),y=0,z=0,A=Q(0),B=Q(0),C=Q(0),E=Q(0),F=Q(0),G=Q(0),H=Q(0),I=Q(0),K=0,L=0,M=Q(0);a:{if(b==Q(0)&c==Q(0))break a;m=J[a+4>>2];if(!m)break a;u=J[a+16>>2];if(!u)break a;z=J[a+20>> -2];r=z+(u<<2)|0;A=Q(b*Q(.5));s=J[a+8>>2];b=Q(0);n=z;while(1){g=q;l=J[n>>2];if(g>>>0>>0)while(1){w=g>>>0>=m>>>0?169776:s+P(g,12)|0;g=g+1|0;f=g>>>0>>0?g:q;f=f>>>0>=m>>>0?169776:s+P(f,12)|0;b=Q(b+Q(Q(N[w>>2]*N[f+4>>2])-Q(N[f>>2]*N[w+4>>2])));if((g|0)!=(l|0))continue;break}q=l;n=n+4|0;if((r|0)!=(n|0))continue;break}if(!u)break a;B=Q(c*Q(.5));I=Q(b*Q(.5));w=J[42444];n=0;m=0;while(1){q=-1;s=m;g=m;b:{if(n>>>0>=u>>>0){J[194120]=w;m=w;break b}m=J[(n<<2)+z>>2]}r=m-1|0;c:{if((g|0)==(r|0))break c;C=Q(0); -l=s;g=r;E=Q(0);F=Q(0);c=Q(0);x=Q(0);b=Q(0);if(!m)break c;while(1){o=F;p=E;i=C;d:{if((l|0)!=(q|0)){f=J[a+4>>2];e:{if(l>>>0>=f>>>0){J[194122]=J[42446];f=J[42445];J[194120]=J[42444];J[194121]=f;f=J[a+4>>2];j=776480;break e}j=J[a+8>>2]+P(l,12)|0}i=N[j>>2];f:{if(f>>>0<=g>>>0){J[194122]=J[42446];f=J[42445];J[194120]=J[42444];J[194121]=f;f=J[a+4>>2];j=776480;break f}j=J[a+8>>2]+P(g,12)|0}p=Q(i-N[j>>2]);h=Q(R(p));i=h;K=(D(h),v(2));g:{if(f>>>0<=l>>>0){J[194122]=J[42446];f=J[42445];J[194120]=J[42444];J[194121]= -f;f=J[a+4>>2];j=776480;break g}j=J[a+8>>2]+P(l,12)|0}o=N[j+4>>2];h:{if(f>>>0<=g>>>0){J[194122]=J[42446];f=J[42445];J[194120]=J[42444];J[194121]=f;f=776480;break h}f=J[a+8>>2]+P(g,12)|0}o=Q(o-N[f+4>>2]);k=Q(R(o));j=K>>>0<(D(k),v(2))>>>0;i=j?i:k;f=(D(i),v(2));if((f|0)!=2139095040){h=j?k:h;j=(D(h),v(2));i:{if(!(!(!f|j>>>0>2139095039)&j-f>>>0<209715200)){i=Q(h+i);break i}j:{if(j>>>0>=1568669696){i=Q(i*Q(8.077935669463161E-28));h=Q(h*Q(8.077935669463161E-28));k=Q(1.2379400392853803E27);break j}k=Q(1); -if(f>>>0>562036735)break j;i=Q(i*Q(1.2379400392853803E27));h=Q(h*Q(1.2379400392853803E27));k=Q(8.077935669463161E-28)}y=+h;L=y*y;y=+i;i=Q(k*Q(Y(Q(L+y*y))))}}f=i==Q(0);if(!f){p=Q(p/i);o=Q(o/i)}if(f)break d}k:{if(b==Q(0))break k;if((q|0)<0){F=x;E=c;C=b;q=g}h=Q(0);t=Q(Q(c*p)+Q(x*o));k=Q(0);l:{if(!(t>Q(-.9375)))break l;h=Q(x+o);f=I=Q(A*b)){h=Q(Q(A*h)/k);break m}h=Q(Q(h*t)/b)}c=f?G:M;k=Q(Q(B*c)/k); -if(Q(B*b)<=H)break l;k=Q(Q(c*t)/b)}if((g|0)==(l|0))break k;b=Q(k+e);c=Q(h+d);while(1){f=J[a+4>>2];n:{if(f>>>0<=g>>>0){J[194122]=J[42446];f=J[42445];J[194120]=J[42444];J[194121]=f;f=J[a+4>>2];j=776480;break n}j=J[a+8>>2]+P(g,12)|0}N[j>>2]=c+N[j>>2];o:{if(f>>>0<=g>>>0){J[194122]=J[42446];f=J[42445];J[194120]=J[42444];J[194121]=f;f=776480;break o}f=J[a+8>>2]+P(g,12)|0}N[f+4>>2]=b+N[f+4>>2];g=(g|0)<(r|0)?g+1|0:s;if((l|0)!=(g|0))continue;break}}b=i;x=o;c=p;g=l}l=(l|0)<(r|0)?l+1|0:s;if((l|0)==(g|0))break c; -if((g|0)!=(q|0))continue;break}}n=n+1|0;if((u|0)!=(n|0))continue;break}}}function df(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;j=xb-112|0;xb=j;k=i&2147483647;a:{b:{m=e&2147483647;l=2147418112;n=!(b|c);if(!(d|m?m-l>>>0<2147549184:n)){o=k-l|0;if(!h&(o|0)==-2147418112?f|g:(o|0)==-2147418112&(h|0)!=0|o>>>0>2147549184)break b}if(!(!d&(m|0)==2147418112?n:m>>>0<2147418112)){h=d;i=e|32768;f=b;g=c;break a}if(!(!h&(k|0)==2147418112?!(f|g):k>>>0<2147418112)){i=i|32768;break a}if(!(b| -d|(m^2147418112|c))){l=d;d=!(b^f|d^h|(c^g|e^i^-2147483648));h=d?0:l;i=d?2147450880:e;f=d?0:b;g=d?0:c;break a}l=f|h;if(!(l|(k^2147418112|g)))break a;if(!(b|d|(c|m))){if(g|k|l)break a;f=b&f;g=c&g;h=d&h;i=e&i;break a}if(f|h|(g|k))break b;f=b;g=c;h=d;i=e;break a}l=(k|0)==(m|0);r=l&(d|0)==(h|0)?(c|0)==(g|0)&b>>>0>>0|c>>>0>>0:l&d>>>0>>0|k>>>0>m>>>0;n=r;m=n?f:b;o=n?g:c;l=n?i:e;s=l;n=n?h:d;q=l&65535;d=r?d:h;e=r?e:i;t=e;l=e>>>16&32767;p=s>>>16&32767;if(!p){e=!(n|q);i=e;k=e?m:n;e=e<<6;i=S(i?o:q);e= -e+((i|0)==32?S(k)+32|0:i)|0;Ke(j+96|0,m,o,n,q,e-15|0);n=J[j+104>>2];q=J[j+108>>2];o=J[j+100>>2];p=16-e|0;m=J[j+96>>2]}f=r?b:f;g=r?c:g;h=d;i=t&65535;if(!l){b=!(d|i);e=b;k=b?f:d;b=b<<6;e=S(e?g:i);b=b+((e|0)==32?S(k)+32|0:e)|0;Ke(j+80|0,f,g,d,i,b-15|0);l=16-b|0;h=J[j+88>>2];i=J[j+92>>2];g=J[j+84>>2];f=J[j+80>>2]}c=i<<3|h>>>29;b=h<<3|g>>>29;c=c|524288;e=n<<3|o>>>29;h=q<<3|n>>>29;r=s^t;i=g<<3|f>>>29;d=f<<3;c:{if((l|0)==(p|0))break c;f=p-l|0;if(f>>>0>127){b=0;c=0;i=0;d=1;break c}Ke(j- -64|0,d,i,b,c,128- -f|0);Ii(j+48|0,d,i,b,c,f);b=J[j+56>>2];c=J[j+60>>2];i=J[j+52>>2];d=J[j+48>>2]|(J[j+64>>2]|J[j+72>>2]|(J[j+68>>2]|J[j+76>>2]))!=0}n=d;k=i;l=e;q=h|524288;i=o<<3|m>>>29;o=m<<3;m=i;d:{if((r|0)<0){f=0;g=0;h=0;i=0;if(!(n^o|b^e|(k^m|c^q)))break a;d=o-n|0;e=m-((n>>>0>o>>>0)+k|0)|0;f=l-b|0;g=(k|0)==(m|0)&n>>>0>o>>>0|k>>>0>m>>>0;h=f-g|0;b=(q-((b>>>0>l>>>0)+c|0)|0)-(f>>>0>>0)|0;i=b;if(b>>>0>524287)break d;c=!(b|h);g=c;i=g?d:h;c=g<<6;g=S(g?e:b);c=c+((g|0)==32?S(i)+32|0:g)|0;f=b;b=c-12|0;Ke(j+32|0,d,e,h,f, -b);p=p-b|0;h=J[j+40>>2];i=J[j+44>>2];d=J[j+32>>2];e=J[j+36>>2];break d}e=k+m|0;d=n+o|0;e=d>>>0>>0?e+1|0:e;f=(k|0)==(e|0)&d>>>0>>0|e>>>0>>0;k=c+q|0;b=b+l|0;k=b>>>0>>0?k+1|0:k;h=b+f|0;i=h>>>0>>0?k+1|0:k;if(!(i&1048576))break d;d=n&1|((e&1)<<31|d>>>1);e=h<<31|e>>>1;p=p+1|0;h=(i&1)<<31|h>>>1;i=i>>>1|0}c=0;b=s&-2147483648;o=b;if((p|0)>=32767){h=c;i=b|2147418112;f=0;g=0;break a}l=0;e:{if((p|0)>0){l=p;break e}Ke(j+16|0,d,e,h,i,p+127|0);Ii(j,d,e,h,i,1-p|0);d=J[j>>2]|(J[j+16>>2]|J[j+24>>2]| -(J[j+20>>2]|J[j+28>>2]))!=0;e=J[j+4>>2];h=J[j+8>>2];i=J[j+12>>2]}m=d&7;d=(e&7)<<29|d>>>3;f=(m>>>0>4)+d|0;b=h<<29|e>>>3;g=d>>>0>f>>>0?b+1|0:b;d=(b|0)==(g|0)&d>>>0>f>>>0|b>>>0>g>>>0;b=c|((i&7)<<29|h>>>3);h=d+b|0;i=o|(i>>>3&65535|l<<16);i=b>>>0>h>>>0?i+1|0:i;f:{if((m|0)==4){b=0;k=g+b|0;d=f;c=f&1;f=f+c|0;g=d>>>0>f>>>0?k+1|0:k;b=(b|0)==(g|0)&c>>>0>f>>>0|b>>>0>g>>>0;h=b+h|0;i=b>>>0>h>>>0?i+1|0:i;break f}if(!m)break a}}J[a>>2]=f;J[a+4>>2]=g;J[a+8>>2]=h;J[a+12>>2]=i;xb=j+112|0}function Sv(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;d=J[a+16>>2];n=K[d+6|0]<<8|K[d+7|0]&254;if(!n)return 0;w=J[a>>2];y=J[w+508>>2]+J[w+512>>2]|0;e=J[b>>2];o=e+1|0;q=c?o:e;u=n+2|0;r=d+14|0;v=n>>>1|0;g=v;a:{b:{c:{d:{e:{while(1){f:{e=g+l|0;f=(e&-2)+r|0;h=K[f|0]<<8|K[f+1|0];d=e>>>1|0;f=f+u|0;i=K[f|0]<<8|K[f+1|0];if(q>>>0>=i>>>0){if(h>>>0>=q>>>0)break f;l=d+1|0}else g=d;if(g>>>0>l>>>0)continue;break e}break}g=0;f=f+n|0;k=f+n|0;x=K[k|0]<<8|K[k+1|0];m=(i|0)==65535& -(h|0)==65535&v-1>>>0<=d>>>0&(x|0)!=0&(k+x|0)+2>>>0>y>>>0;p=m?0:x;f=K[f|0]|K[f+1|0]<<8;A=(f<<8|f>>>8)<<16>>16;j=m?1:A;g:{h:{i:{if(K[a+20|0]&2){s=d+1|0;l=(p|0)==65535?s:d;if(e>>>0<2)break i;g=d-1|0;m=g<<1;e=r+m|0;t=K[e|0]<<8|K[e+1|0];if(t>>>0>>0)break i;B=r+u|0;j:{while(1){k:{f=t;e=g;z=m+B|0;j=z+n|0;k=j+n|0;p=K[k|0]<<8|K[k+1|0];l=(p|0)==65535?l:e;if(!e)break k;g=e-1|0;m=g<<1;t=r+m|0;t=K[t|0]<<8|K[t+1|0];if(t>>>0>=q>>>0)continue;break j}break}e=0}g=K[j|0]|K[j+1|0]<<8;j=(g<<8|g>>>8)<<16>>16;m=K[z+ -1|0]|K[z|0]<<8;break h}e=d;f=h;if((p|0)==65535)break c;break g}e=d;f=h;m=i}if((l|0)==(s|0)){if((d|0)!=(e|0)){j=A;p=x;m=i;f=h}g=0;if(s>>>0>=v>>>0){e=d;break c}l=d;e=d;h=(s<<1)+r|0;k=u+h|0;i=K[k|0]<<8|K[k+1|0];l:{if(q>>>0>>0)break l;m:{while(1){n:{m=i;e=s;f=h;j=(u+f|0)+n|0;k=j+n|0;p=K[k|0]<<8|K[k+1|0];l=(p|0)==65535?l:e;s=e+1|0;if((v|0)==(s|0))break n;h=(s<<1)+r|0;k=u+h|0;i=K[k|0]<<8|K[k+1|0];if(q>>>0>=i>>>0)continue;break m}break}e=K[j|0]|K[j+1|0]<<8;j=(e<<8|e>>>8)<<16>>16;e=v-1|0;f=K[f+1|0]|K[f| -0]<<8;break l}h=K[j|0]|K[j+1|0]<<8;j=(h<<8|h>>>8)<<16>>16;f=K[f+1|0]|K[f|0]<<8}if((d|0)==(l|0))break c}if((e|0)==(l|0)){d=l;h=f;i=m;break g}d=(l<<1)+r|0;h=K[d|0]<<8|K[d+1|0];d=d+u|0;i=K[d|0]<<8|K[d+1|0];d=d+n|0;k=d+n|0;p=K[k|0]<<8|K[k+1|0];d=K[d|0]|K[d+1|0]<<8;j=(d<<8|d>>>8)<<16>>16;d=l}if(p){e=((q-i<<1)+p|0)+k|0;o:{if(!c)break o;g=0;if(e>>>0<=y>>>0)break o;f=h;o=q;e=d;break b}e=K[e+1|0]|K[e|0]<<8;if(!e)break e;e=e+j&65535;g=e>>>0>2]?e:0;break d}e=j+q|0;g=e&65535;if(!c)break a;p:{if(M[w+16>> -2]>g>>>0)break p;c=h+j|0;q:{if((e|0)>=0)break q;g=0;if((c|0)<0)break q;o=0-j|0;break p}o=(e|0)<65536?(c|0)>65535?65536-j|0:o:o;g=0}f=h;e=d;break b}g=0}e=d;f=h}if(!c)break a}c=g;if(f>>>0>>0){g=0;e=e+1|0;if((v|0)==(e|0))break a}r:{s:{h=J[a+32>>2];if(h>>>0>e>>>0){m=h-1|0;g=h<<1;while(1){d=(e<<1)+r|0;f=K[d|0]<<8|K[d+1|0];J[a+44>>2]=f;d=d+g|0;i=d+2|0;l=K[i|0]<<8|K[d+3|0];J[a+40>>2]=l;d=g+i|0;i=K[d|0]|K[d+1|0]<<8;J[a+48>>2]=(i<<8|i>>>8)<<16>>16;i=d+g|0;d=K[i|0]<<8|K[i+1|0];t:{u:{v:{if((l|0)!=65535|e>>> -0>>0|(f|0)!=65535)break v;f=0;if(!d)break u;if((d+i|0)+2>>>0<=y>>>0)break v;J[a+48>>2]=1;break u}if((d|0)==65535)break t;f=d?d+i|0:0}J[a+36>>2]=e;J[a+52>>2]=f;J[a+24>>2]=o;if(!c)break s;J[a+28>>2]=c;break r}e=e+1|0;if((h|0)!=(e|0))continue;break}}if(c)break r;return 0}Rv(a);c=J[a+28>>2];if(!c)return 0;o=J[a+24>>2]}J[b>>2]=o;g=c}return g}function Dna(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[b+16>>2]<<10;b=c+148|0;while(1){a:{a=J[b>>2];if(a)break a;if(!J[c+48>>2]){a=169776;break a}a=oj(b);if(!a)a= -169776;e=J[b>>2];J[b>>2]=e?e:a;if(!e)break a;lg(a);continue}break}a=J[a>>2];b=J[(a?a:169776)+16>>2];a=b>>>11|0;f=f|b<<21;b=a|d;d=c+152|0;while(1){b:{a=J[d>>2];if(a)break b;if(!J[c+48>>2]){a=169776;break b}a=Fo(d);if(!a)a=169776;e=J[d>>2];J[d>>2]=e?e:a;if(!e)break b;lg(a);continue}break}c=1;a=J[a>>2];d=J[(a?a:169776)+16>>2]|f;c:{d:{a=b;if((a|0)<=987147&d>>>0<=2743134887|(a|0)<987147){if((a|0)<=452609&d>>>0<=1732289589|(a|0)<452609){if((a|0)<=196614&d>>>0<=843062357|(a|0)<196614){if((a|0)<=192512&d>>> -0<=553651553|(a|0)<192512){if((d|0)==1606425686&(a|0)==184326)break c;if((d|0)!=520097548|(a|0)!=192512)break d;break c}if((d|0)==553651554&(a|0)==192512)break c;if((d|0)!=734010454|(a|0)!=196614)break d;break c}if((a|0)<=440321&d>>>0<=1732288213|(a|0)<440321){if((d|0)==843062358&(a|0)==196614)break c;if((d|0)!=1732286926|(a|0)!=440321)break d;break c}if((d|0)==1732288214&(a|0)==440321)break c;if((d|0)!=1732286668|(a|0)!=452609)break d;break c}if((a|0)<=864259&d>>>0<=2428547489|(a|0)<864259){if((a| -0)<=501761&d>>>0<=2092999333|(a|0)<501761){if((d|0)==1732289590&(a|0)==452609)break c;if((d|0)!=2092999598|(a|0)!=489473)break d;break c}if((d|0)==2092999334&(a|0)==501761)break c;if((d|0)!=-1820280774|(a|0)!=851971)break d;break c}if((a|0)<=931846&d>>>0<=583055987|(a|0)<931846){if((d|0)==-1866419806&(a|0)==864259)break c;if((d|0)!=557888902|(a|0)!=919558)break d;break c}if((d|0)==583055988&(a|0)==931846|(d|0)==1614866372&(a|0)==950283)break c;if((d|0)!=1640033596|(a|0)!=962571)break d;break c}e:{if((a| -0)<=1071126&d>>>0<=4139790647|(a|0)<1071126){if((a|0)<=1030155&d>>>0<=4072730923|(a|0)<1030155){if((a|0)<=1017867&d>>>0<=4081118127|(a|0)<1017867){if((d|0)==-1551832408&(a|0)==987147)break c;if((d|0)!=-1560219632|(a|0)!=999435)break d;break c}if((d|0)==-213849168&(a|0)==1017867)break c;if((d|0)!=-629130764|(a|0)!=1028124)break d;break c}b=d-61346|0;if(((d>>>0<61346)+1030156|0)==(a|0)&b>>>0<=6)break e;e=a-((d>>>0<4286641516)+1042443|0)|0;b=d+8325780|0;if(!e&b>>>0>6|e){if((d|0)!=-222236372|(a|0)!=1030155)break d; -break c}switch(b-1|0){case 0:case 1:case 2:case 3:case 4:break d;default:break c}}if((a|0)<=1083427&d>>>0<=239092841|(a|0)<1083427){if((a|0)<=1071139&d>>>0<=230704581|(a|0)<1071139){if((d|0)==-155176648&(a|0)==1071126)break c;if((d|0)!=226509528|(a|0)!=1071139)break d;break c}if((d|0)==230704582&(a|0)==1071139)break c;if((d|0)!=-150983126|(a|0)!=1083414)break d;break c}if((a|0)<=1361973&d>>>0<=2852184657|(a|0)<1361973){if((d|0)==239092842&(a|0)==1083427)break c;if((d|0)!=243286402|(a|0)!=1083427)break d; -break c}a=(a|0)==1361973;if(a&(d|0)==-1442782638|a&(d|0)==-1442781604)break c;break d}switch(b-1|0){case 0:case 1:case 2:case 3:case 4:break d;default:break c}}c=0}return c|0}function Kb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!a)break a;d=a-8|0;b=J[a-4>>2];a=b&-8;f=d+a|0;b:{if(b&1)break b;if(!(b&3))break a;b=J[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=b>>>3|0;b=J[d+12>>2];c=J[d+8>>2];if((b|0)==(c|0)){i=781084,j=J[195271]&Opa(-2,e), -J[i>>2]=j;break b}J[c+12>>2]=b;J[b+8>>2]=c;break b}h=J[d+24>>2];b=J[d+12>>2];if((d|0)!=(b|0)){c=J[d+8>>2];J[c+12>>2]=b;J[b+8>>2]=c;break c}e=d+20|0;c=J[e>>2];if(!c){c=J[d+16>>2];if(!c)break d;e=d+16|0}while(1){g=e;b=c;e=b+20|0;c=J[e>>2];if(c)continue;e=b+16|0;c=J[b+16>>2];if(c)continue;break}J[g>>2]=0;break c}b=J[f+4>>2];if((b&3)!=3)break b;J[195273]=a;J[f+4>>2]=b&-2;J[d+4>>2]=a|1;J[f>>2]=a;return}b=0}if(!h)break b;c=J[d+28>>2];e=(c<<2)+781388|0;e:{if(J[e>>2]==(d|0)){J[e>>2]=b;if(b)break e;i=781088, -j=J[195272]&Opa(-2,c),J[i>>2]=j;break b}J[h+(J[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b)break b}J[b+24>>2]=h;c=J[d+16>>2];if(c){J[b+16>>2]=c;J[c+24>>2]=b}c=J[d+20>>2];if(!c)break b;J[b+20>>2]=c;J[c+24>>2]=b}if(d>>>0>=f>>>0)break a;b=J[f+4>>2];if(!(b&1))break a;f:{g:{h:{i:{if(!(b&2)){if(J[195277]==(f|0)){J[195277]=d;a=J[195274]+a|0;J[195274]=a;J[d+4>>2]=a|1;if(J[195276]!=(d|0))break a;J[195273]=0;J[195276]=0;return}if(J[195276]==(f|0)){J[195276]=d;a=J[195273]+a|0;J[195273]=a;J[d+4>>2]=a|1;J[a+d>>2]=a;return}a= -(b&-8)+a|0;if(b>>>0<=255){e=b>>>3|0;b=J[f+12>>2];c=J[f+8>>2];if((b|0)==(c|0)){i=781084,j=J[195271]&Opa(-2,e),J[i>>2]=j;break g}J[c+12>>2]=b;J[b+8>>2]=c;break g}h=J[f+24>>2];b=J[f+12>>2];if((f|0)!=(b|0)){c=J[f+8>>2];J[c+12>>2]=b;J[b+8>>2]=c;break h}e=f+20|0;c=J[e>>2];if(!c){c=J[f+16>>2];if(!c)break i;e=f+16|0}while(1){g=e;b=c;e=b+20|0;c=J[e>>2];if(c)continue;e=b+16|0;c=J[b+16>>2];if(c)continue;break}J[g>>2]=0;break h}J[f+4>>2]=b&-2;J[d+4>>2]=a|1;J[a+d>>2]=a;break f}b=0}if(!h)break g;c=J[f+28>>2];e= -(c<<2)+781388|0;j:{if(J[e>>2]==(f|0)){J[e>>2]=b;if(b)break j;i=781088,j=J[195272]&Opa(-2,c),J[i>>2]=j;break g}J[h+(J[h+16>>2]==(f|0)?16:20)>>2]=b;if(!b)break g}J[b+24>>2]=h;c=J[f+16>>2];if(c){J[b+16>>2]=c;J[c+24>>2]=b}c=J[f+20>>2];if(!c)break g;J[b+20>>2]=c;J[c+24>>2]=b}J[d+4>>2]=a|1;J[a+d>>2]=a;if(J[195276]!=(d|0))break f;J[195273]=a;return}if(a>>>0<=255){b=(a&-8)+781124|0;c=J[195271];a=1<<(a>>>3);k:{if(!(c&a)){J[195271]=a|c;a=b;break k}a=J[b+8>>2]}J[b+8>>2]=d;J[a+12>>2]=d;J[d+12>>2]=b;J[d+8>>2]= -a;return}c=31;if(a>>>0<=16777215){b=S(a>>>8|0);c=((a>>>38-b&1)-(b<<1)|0)+62|0}J[d+28>>2]=c;J[d+16>>2]=0;J[d+20>>2]=0;b=(c<<2)+781388|0;l:{m:{e=J[195272];g=1<>2]=d;J[d+24>>2]=b;break n}c=a<<((c|0)!=31?25-(c>>>1|0)|0:0);b=J[b>>2];while(1){e=b;if((J[b+4>>2]&-8)==(a|0))break m;g=c>>>29|0;c=c<<1;g=b+(g&4)|0;b=J[g+16>>2];if(b)continue;break}J[g+16>>2]=d;J[d+24>>2]=e}J[d+12>>2]=d;J[d+8>>2]=d;break l}a=J[e+8>>2];J[a+12>>2]=d;J[e+8>>2]=d;J[d+24>>2]=0;J[d+12>>2]=e;J[d+8>> -2]=a}a=J[195279]-1|0;J[195279]=a?a:-1}}function uga(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+408>>2];f=J[a+464>>2];a:{if(J[a+224>>2]){c=J[a+412>>2];b:{c:{d:{if(!b){if(!c)break d;break c}if((c|0)<(b|0)|(c|0)>J[a+432>>2]|J[a+336>>2]!=1)break c}c=J[a+416>>2];e:{if(!c){e=J[a+420>>2];break e}e=c-1|0;if((e|0)!=J[a+420>>2])break c}if((e|0)<14)break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=17;J[J[a>>2]+28>>2]=J[a+412>>2];J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];Ab[J[J[a>>2]>>2]](a)}if(J[a+ -336>>2]<=0)b=0;else{while(1){e=J[J[((d<<2)+a|0)+340>>2]+4>>2];g=J[a+160>>2]+(e<<8)|0;c=J[a+408>>2];b=0;f:{if(!c)break f;b=c;if(J[g>>2]>=0)break f;b=J[a>>2];J[b+24>>2]=e;J[b+20>>2]=118;J[J[a>>2]+28>>2]=0;Ab[J[J[a>>2]+4>>2]](a,-1);b=J[a+408>>2]}if((b|0)<=J[a+412>>2])while(1){c=g+(b<<2)|0;h=J[c>>2];if(J[a+416>>2]!=(((h|0)>0?h:0)|0)){h=J[a>>2];J[h+24>>2]=e;J[h+20>>2]=118;J[J[a>>2]+28>>2]=b;Ab[J[J[a>>2]+4>>2]](a,-1)}J[c>>2]=J[a+420>>2];c=J[a+412>>2]>(b|0);b=b+1|0;if(c)continue;break}d=d+1|0;b=J[a+336>> -2];if((d|0)<(b|0))continue;break}b=(b|0)>0}c=J[a+408>>2];J[f+4>>2]=J[a+416>>2]?c?1451:1452:c?1453:1454;if(b){b=0;while(1){d=b<<2;c=J[(d+a|0)+340>>2];g:{if(!J[a+408>>2]){if(J[a+416>>2])break g;c=J[c+20>>2];Xn(a,1,c,((c<<2)+f|0)+44|0);break g}e=J[c+24>>2];c=(e<<2)+f|0;Xn(a,0,e,c+44|0);J[f+60>>2]=J[c+44>>2]}J[(d+f|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}}J[f+16>>2]=0;break a}h:{if(!(J[a+420>>2]|(J[a+416>>2]|b))){b=J[a+412>>2];if(!J[a+220>>2]&(b|0)>63|(b|0)==J[a+432>>2])break h}b=J[a>> -2];J[b+20>>2]=125;Ab[J[b+4>>2]](a,-1)}J[f+4>>2]=J[a+432>>2]==63?1455:1456;b=0;if(J[a+336>>2]>0)while(1){c=b<<2;d=J[(c+a|0)+340>>2];e=J[d+20>>2];Xn(a,1,e,((e<<2)+f|0)- -64|0);if(J[a+432>>2]){d=J[d+24>>2];Xn(a,0,d,((d<<2)+f|0)+80|0)}J[(c+f|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}e=0;if(J[a+364>>2]<=0)break a;while(1){b=e<<2;g=b+f|0;b=J[((J[(a+b|0)+368>>2]<<2)+a|0)+340>>2];J[g+96>>2]=J[((J[b+20>>2]<<2)+f|0)- -64>>2];J[g+136>>2]=J[((J[b+24>>2]<<2)+f|0)+80>>2];i:{if(!J[b+52>>2]){b=0;break i}c= -J[b+36>>2];d=J[b+40>>2];b=1;j:{k:switch(J[a+432>>2]){case 3:b=(((d-3>>>0<4294967294?1:d-1|0)<<3)+((c-3>>>0<4294967294?1:c-1|0)<<2)|0)+248880|0;break j;case 8:b=(P(d-4>>>0<4294967293?2:d-1|0,12)+((c-4>>>0<4294967293?2:c-1|0)<<2)|0)+248896|0;break j;case 15:b=(((d-5>>>0<4294967292?3:d-1|0)<<4)+((c-5>>>0<4294967292?3:c-1|0)<<2)|0)+248944|0;break j;case 24:b=(P(d-6>>>0<4294967291?4:d-1|0,20)+((c-6>>>0<4294967291?4:c-1|0)<<2)|0)+249008|0;break j;case 35:b=(P(d-7>>>0<4294967290?5:d-1|0,24)+((c-7>>>0<4294967290? -5:c-1|0)<<2)|0)+249120|0;break j;case 48:b=(P(d-8>>>0<4294967289?6:d-1|0,28)+((c-8>>>0<4294967289?6:c-1|0)<<2)|0)+249264|0;break j;case 0:break i;default:break k}b=(((d-9>>>0<4294967288?7:d-1|0)<<5)+((c-9>>>0<4294967288?7:c-1|0)<<2)|0)+249472|0}b=J[b>>2]+1|0}J[g+176>>2]=b;e=e+1|0;if((e|0)>2])continue;break}}J[f+36>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+40>>2]=J[a+280>>2]}function Pfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;m=J[a+332>>2];b=J[b+84>>2];g=P(J[b+64>>2],I[c+32>>1]);f=P(J[b+96>>2],I[c+48>>1]);i=P(J[b+32>>2],I[c+16>>1]);h=P(f+i|0,4433)+1024|0;a=xb-128|0;j=P(J[b>>2],I[c>>1]);k=j+g<<2;i=h+P(i,6270)>>11;J[a+96>>2]=k-i;J[a>>2]=i+k;g=j-g<<2;h=h+P(f,-15137)>>11;J[a+64>>2]=g-h;J[a+32>>2]=g+h;h=P(J[b+100>>2],I[c+50>>1]);f=P(J[b+36>>2],I[c+18>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+68>>2],I[c+34>>1]);j=P(J[b+4>>2],I[c+2>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+100>>2]=k-f;J[a+4>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+68>> -2]=f-g;J[a+36>>2]=g+f;h=P(J[b+104>>2],I[c+52>>1]);f=P(J[b+40>>2],I[c+20>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+72>>2],I[c+36>>1]);j=P(J[b+8>>2],I[c+4>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+104>>2]=k-f;J[a+8>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+72>>2]=f-g;J[a+40>>2]=g+f;h=P(J[b+108>>2],I[c+54>>1]);f=P(J[b+44>>2],I[c+22>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+76>>2],I[c+38>>1]);j=P(J[b+12>>2],I[c+6>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+108>>2]=k-f;J[a+12>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+76>>2]=f-g; -J[a+44>>2]=g+f;h=P(J[b+112>>2],I[c+56>>1]);f=P(J[b+48>>2],I[c+24>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+80>>2],I[c+40>>1]);j=P(J[b+16>>2],I[c+8>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+112>>2]=k-f;J[a+16>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+80>>2]=f-g;J[a+48>>2]=g+f;h=P(J[b+116>>2],I[c+58>>1]);f=P(J[b+52>>2],I[c+26>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+84>>2],I[c+42>>1]);j=P(J[b+20>>2],I[c+10>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+116>>2]=k-f;J[a+20>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+84>>2]=f-g;J[a+ -52>>2]=g+f;h=P(J[b+120>>2],I[c+60>>1]);f=P(J[b+56>>2],I[c+28>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+88>>2],I[c+44>>1]);j=P(J[b+24>>2],I[c+12>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+120>>2]=k-f;J[a+24>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+88>>2]=f-g;J[a+56>>2]=g+f;h=P(J[b+124>>2],I[c+62>>1]);f=P(J[b+60>>2],I[c+30>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+92>>2],I[c+46>>1]);b=P(J[b+28>>2],I[c+14>>1]);c=i+b<<2;f=g+P(f,6270)>>11;J[a+124>>2]=c-f;J[a+28>>2]=c+f;b=b-i<<2;c=g+P(h,-15137)>>11;J[a+92>>2]=b-c;J[a+60>> -2]=b+c;g=m+128|0;c=a;b=0;while(1){h=J[c+4>>2];m=J[c+28>>2];f=P(h+m|0,-7373);i=J[c+20>>2];l=i+h|0;j=J[c+12>>2];n=j+m|0;k=P(l+n|0,9633);a=J[(b<<2)+d>>2]+e|0;o=J[c>>2]+16|0;p=J[c+16>>2];r=o+p<<13;s=J[c+24>>2];q=J[c+8>>2];t=P(s+q|0,4433);q=t+P(q,6270)|0;u=r+q|0;v=f+P(h,12299)|0;h=k+P(l,-3196)|0;l=v+h|0;H[a|0]=K[(u+l>>>18&1023)+g|0];H[a+7|0]=K[(u-l>>>18&1023)+g|0];k=k+P(n,-16069)|0;l=P(j,25172);j=P(i+j|0,-20995);l=k+(l+j|0)|0;n=o-p<<13;o=P(s,-15137)+t|0;p=n+o|0;H[a+1|0]=K[(l+p>>>18&1023)+g|0];H[a+6|0]= -K[(p-l>>>18&1023)+g|0];h=h+(j+P(i,16819)|0)|0;i=n-o|0;H[a+2|0]=K[(h+i>>>18&1023)+g|0];H[a+5|0]=K[(i-h>>>18&1023)+g|0];h=k+(f+P(m,2446)|0)|0;m=r-q|0;H[a+3|0]=K[(h+m>>>18&1023)+g|0];H[a+4|0]=K[(m-h>>>18&1023)+g|0];c=c+32|0;b=b+1|0;if((b|0)!=4)continue;break}}function Ufa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;D=xb-512|0;xb=D;w=J[a+332>>2];b=J[b+84>>2];a=D;while(1){l=P(J[b+64>>2],I[c+32>>1]); -k=P(J[b+192>>2],I[c+96>>1]);h=l-k|0;o=P(h,11363);i=P(J[b+96>>2],I[c+48>>1]);m=P(J[b+32>>2],I[c+16>>1]);p=P(i+m|0,11086);y=o+P(k,20995)|0;j=P(J[b+128>>2],I[c+64>>1]);z=P(j,10703);n=P(I[c>>1],J[b>>2])<<13|1024;t=z+n|0;u=y+t|0;f=P(J[b+224>>2],I[c+112>>1]);A=P(f+m|0,8956);g=P(J[b+160>>2],I[c+80>>1]);r=g+m|0;v=P(r,10217);s=A+(v+(p+P(m,-18730)|0)|0)|0;J[a+480>>2]=u-s>>11;J[a>>2]=s+u>>11;h=P(h,2260);u=h+P(l,7373)|0;j=P(j,4433);s=j+n|0;q=u+s|0;B=P(g+i|0,1136);x=B+(p+P(i,589)|0)|0;p=f+i|0;C=P(p,-5461);x=x+ -C|0;J[a+448>>2]=q-x>>11;J[a+32>>2]=q+x>>11;l=o+P(l,-4926)|0;o=n-j|0;j=l+o|0;q=v+(P(g,-9222)+B|0)|0;v=P(f+g|0,-11086);q=q+v|0;J[a+416>>2]=j-q>>11;J[a+64>>2]=j+q>>11;k=h+P(k,-4176)|0;n=n-z|0;h=k+n|0;j=v+(A+(C+P(f,8728)|0)|0)|0;J[a+384>>2]=h-j>>11;J[a+96>>2]=h+j>>11;n=n-k|0;k=P(p,-10217);p=P(m-f|0,7350);h=(k+P(f,25733)|0)+p|0;f=P(f-g|0,3363);h=h+f|0;J[a+352>>2]=n-h>>11;J[a+128>>2]=h+n>>11;n=o-l|0;l=P(r,5461);h=P(g,-6278);g=P(g-i|0,11529);f=f+(l+(h+g|0)|0)|0;J[a+320>>2]=n-f>>11;J[a+160>>2]=f+n>>11;f= -s-u|0;h=P(i,16154);i=P(m-i|0,3363);g=k+(g+(h+i|0)|0)|0;J[a+288>>2]=f-g>>11;J[a+192>>2]=f+g>>11;g=t-y|0;i=p+(l+(i+P(m,-15038)|0)|0)|0;J[a+256>>2]=g-i>>11;J[a+224>>2]=g+i>>11;a=a+4|0;b=b+4|0;c=c+2|0;E=E+1|0;if((E|0)!=8)continue;break}a=w+128|0;b=D;n=0;while(1){i=J[b+12>>2];m=J[b+4>>2];k=P(i+m|0,11086);o=J[b+8>>2];p=J[b+24>>2];h=o-p|0;w=P(h,11363);c=J[(n<<2)+d>>2]+e|0;f=J[b+28>>2];z=P(f+m|0,8956);g=J[b+20>>2];y=g+m|0;j=P(y,10217);t=z+(j+(k+P(m,-18730)|0)|0)|0;u=w+P(p,20995)|0;l=(J[b>>2]<<13)+131072| -0;r=J[b+16>>2];v=P(r,10703);A=l+v|0;s=u+A|0;H[c|0]=K[a+(t+s>>>18&1023)|0];H[c+15|0]=K[a+(s-t>>>18&1023)|0];t=f+i|0;s=P(t,-5461);q=k+P(i,589)|0;k=P(g+i|0,1136);q=s+(q+k|0)|0;h=P(h,2260);B=h+P(o,7373)|0;r=P(r,4433);C=r+l|0;x=B+C|0;H[c+1|0]=K[a+(q+x>>>18&1023)|0];H[c+14|0]=K[a+(x-q>>>18&1023)|0];j=j+(k+P(g,-9222)|0)|0;k=P(f+g|0,-11086);j=j+k|0;o=w+P(o,-4926)|0;w=l-r|0;r=o+w|0;H[c+2|0]=K[a+(j+r>>>18&1023)|0];H[c+13|0]=K[a+(r-j>>>18&1023)|0];k=k+(z+(s+P(f,8728)|0)|0)|0;p=h+P(p,-4176)|0;l=l-v|0;h=p+l|0; -H[c+3|0]=K[a+(k+h>>>18&1023)|0];H[c+12|0]=K[a+(h-k>>>18&1023)|0];h=P(m-f|0,7350);k=P(t,-10217);j=h+(k+P(f,25733)|0)|0;f=P(f-g|0,3363);j=j+f|0;l=l-p|0;H[c+4|0]=K[a+(j+l>>>18&1023)|0];H[c+11|0]=K[a+(l-j>>>18&1023)|0];l=P(y,5461);j=P(g,-6278);g=P(g-i|0,11529);f=f+(l+(j+g|0)|0)|0;o=w-o|0;H[c+5|0]=K[a+(f+o>>>18&1023)|0];H[c+10|0]=K[a+(o-f>>>18&1023)|0];f=P(i,16154);i=P(m-i|0,3363);g=k+(g+(f+i|0)|0)|0;f=C-B|0;H[c+6|0]=K[a+(g+f>>>18&1023)|0];H[c+9|0]=K[a+(f-g>>>18&1023)|0];i=h+(l+(i+P(m,-15038)|0)|0)|0; -m=A-u|0;H[c+7|0]=K[a+(i+m>>>18&1023)|0];H[c+8|0]=K[a+(m-i>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=16)continue;break}xb=D+512|0}function eA(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=xb-96|0;xb=b;nn(a);a:{b:{c:{d:{e:{f:{g:{h:{i:{d=J[a+72>>2];d=Ab[J[J[d>>2]+20>>2]](d)|0;if(!(!d|J[d>>2]==J[d+4>>2])){ul(d,a);J[b+76>>2]=103;J[b+80>>2]=0;H[b+87|0]=1;c=J[a+84>>2];j:{if((c|0)==J[a+88>>2]){J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;break j}if(H[c+11|0]>=0){J[b+8>>2]=J[c+8>>2];d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;break j}d= -J[c+4>>2];c=J[c>>2];J[195395]=0;fa(1808,b|0,c|0,d|0);c=J[195395];J[195395]=0;if((c|0)==1)break i}J[195395]=0;c=aa(1954,b|0,0,423096)|0;d=J[195395];J[195395]=0;if((d|0)==1)break h;J[b+24>>2]=J[c+8>>2];d=J[c+4>>2];J[b+16>>2]=J[c>>2];J[b+20>>2]=d;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;$(1811,b+16|0,41);c=J[195395];J[195395]=0;if((c|0)==1)break g;e=H[b+27|0];c=K[b+23|0]|K[b+24|0]<<8|(K[b+25|0]<<16|K[b+26|0]<<24);J[b+24>>2]=0;f=J[b+16>>2];d=J[b+20>>2];J[b+16>>2]=0;J[b+20>>2]=0;J[b+32>>2]=d;H[b+ -35|0]=c;H[b+36|0]=c>>>8;H[b+37|0]=c>>>16;H[b+38|0]=c>>>24;J[195395]=0;c=_(1078,48)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;J[b+40>>2]=c;J[b+44>>2]=9;J[b+48>>2]=-2147483636;J[c+32>>2]=J[105816];d=J[105815];J[c+24>>2]=J[105814];J[c+28>>2]=d;d=J[105813];J[c+16>>2]=J[105812];J[c+20>>2]=d;d=J[105811];J[c+8>>2]=J[105810];J[c+12>>2]=d;d=J[105809];J[c>>2]=J[105808];J[c+4>>2]=d;J[c+36>>2]=0;J[b+56>>2]=J[b+32>>2];c=K[b+35|0]|K[b+36|0]<<8|(K[b+37|0]<<16|K[b+38|0]<<24);H[b+59|0]=c;H[b+60|0]=c>>>8;H[b+61| -0]=c>>>16;H[b+62|0]=c>>>24;H[b+63|0]=e;J[b+64>>2]=0;J[b+68>>2]=0;J[b+72>>2]=0;J[b+52>>2]=f;J[b+32>>2]=0;H[b+35|0]=0;H[b+36|0]=0;H[b+37|0]=0;H[b+38|0]=0;J[195395]=0;H[b+92|0]=0;d=b- -64|0;J[b+88>>2]=d;c=_(1078,24)|0;e=J[195395];J[195395]=0;k:{l:{if((e|0)!=1){J[b+68>>2]=c;J[b+64>>2]=c;J[195395]=0;J[b+72>>2]=c+24;d=ha(1957,b+72|0,b+40|0,d|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break k;d=Z()|0;J[b+68>>2]=c;break l}d=Z()|0}Kc(b+88|0);break e}J[b+68>>2]=d;c=J[a+76>>2];J[195395]=0;fa(1950,c|0,b+76| -0,(d|0)!=J[b+64>>2]|0);c=J[195395];J[195395]=0;if((c|0)==1)break f;c=J[b+64>>2];d=J[b+68>>2];if((c|0)!=(d|0)){while(1){e=J[a+76>>2];J[195395]=0;fa(1951,e|0,c|0,c+12|0);e=J[195395];J[195395]=0;if((e|0)==1)break f;c=c+24|0;if((d|0)!=(c|0))continue;break}c=J[a+76>>2];J[195395]=0;ia(1953,c|0,b+76|0,1,0);c=J[195395];J[195395]=0;if((c|0)==1)break f;c=J[b+64>>2]}if(c){d=c;e=J[b+68>>2];if((e|0)!=(c|0)){while(1){if(H[e-1|0]<0)Kb(J[e-12>>2]);d=e-24|0;if(H[e-13|0]<0)Kb(J[d>>2]);e=d;if((d|0)!=(c|0))continue; -break}d=J[b+64>>2]}J[b+68>>2]=c;Kb(d)}if(H[b+63|0]<0)Kb(J[b+52>>2]);if(H[b+51|0]<0)Kb(J[b+40>>2]);if(H[b+27|0]<0)Kb(J[b+16>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);if(H[b+87|0]<0)Kb(J[b+76>>2]);H[a+96|0]=1;c=1}xb=b+96|0;return c|0}d=Z()|0;break a}d=Z()|0;break b}d=Z()|0;break c}d=Z()|0;Hc(b- -64|0)}Vb(b+40|0);break c}d=Z()|0;if((e|0)>=0)break c;Kb(f)}if(H[b+27|0]>=0)break b;Kb(J[b+16>>2])}if(H[b+11|0]>=0)break a;Kb(J[b>>2])}if(H[b+87|0]<0)Kb(J[b+76>>2]);ba(d|0);B()}function jE(a,b,c,d){var e=0,f=0,g=0,h=0, -i=0,j=0,k=0;g=xb-1312|0;xb=g;if(c>>>0>=4){e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=52;Ab[J[J[a>>2]>>2]](a)}h=J[((b?120:136)+a|0)+(c<<2)>>2];if(!h){e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=52;Ab[J[J[a>>2]>>2]](a)}i=J[d>>2];if(!i){i=Ab[J[J[a+4>>2]>>2]](a,1,1280)|0;J[d>>2]=i}c=K[h+1|0];a:{if(!c){c=0;break a}Nb(g+1040|0,1,c)}e=K[h+2|0];d=e+c|0;if(d>>>0>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}b:{if(!e){d=c;break b}Nb((g+1040|0)+c|0,2,e)}e=K[h+3|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}c:{if(!e){c= -d;break c}Nb((g+1040|0)+d|0,3,e)}e=K[h+4|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}d:{if(!e){d=c;break d}Nb((g+1040|0)+c|0,4,e)}e=K[h+5|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}e:{if(!e){c=d;break e}Nb((g+1040|0)+d|0,5,e)}e=K[h+6|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}f:{if(!e){d=c;break f}Nb((g+1040|0)+c|0,6,e)}e=K[h+7|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}g:{if(!e){c=d;break g}Nb((g+1040|0)+d|0,7,e)}e= -K[h+8|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}h:{if(!e){d=c;break h}Nb((g+1040|0)+c|0,8,e)}e=K[h+9|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}i:{if(!e){c=d;break i}Nb((g+1040|0)+d|0,9,e)}e=K[h+10|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}j:{if(!e){d=c;break j}Nb((g+1040|0)+c|0,10,e)}e=K[h+11|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}k:{if(!e){c=d;break k}Nb((g+1040|0)+d|0,11,e)}e=K[h+12|0];d=e+c|0;if((d|0)>=257){f= -J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}l:{if(!e){d=c;break l}Nb((g+1040|0)+c|0,12,e)}e=K[h+13|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}m:{if(!e){c=d;break m}Nb((g+1040|0)+d|0,13,e)}e=K[h+14|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}n:{if(!e){d=c;break n}Nb((g+1040|0)+c|0,14,e)}e=K[h+15|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}o:{if(!e){c=d;break o}Nb((g+1040|0)+d|0,15,e)}d=K[h+16|0];e=d+c|0;if((e|0)>=257){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>> -2]](a)}p:{if(!d){e=c;break p}Nb((g+1040|0)+c|0,16,d)}c=0;H[(g+1040|0)+e|0]=0;j=K[g+1040|0];if(j){f=j<<24>>24;d=0;while(1){if(j<<24>>24==(f|0))while(1){J[(d<<2)+g>>2]=c;c=c+1|0;d=d+1|0;j=H[d+(g+1040|0)|0];if((j|0)==(f|0))continue;break}if(1<>2];J[k+20>>2]=9;Ab[J[k>>2]](a)}f=f+1|0;c=c<<1;if(j&255)continue;break}}c=0;Nb(i+1024|0,0,256);q:{if((e|0)<=0)break q;if(!b)while(1){b=K[(c+h|0)+17|0];d=(b+i|0)+1024|0;if(K[d|0]){f=J[a>>2];J[f+20>>2]=9;Ab[J[f>>2]](a)}J[(b<<2)+i>>2]=J[(c<<2)+g>> -2];H[d|0]=K[(g+1040|0)+c|0];c=c+1|0;if((e|0)!=(c|0))continue;break q}while(1){b=K[(c+h|0)+17|0];if(!(b>>>0<=15&!K[(b+i|0)+1024|0])){d=J[a>>2];J[d+20>>2]=9;Ab[J[d>>2]](a)}J[(b<<2)+i>>2]=J[(c<<2)+g>>2];H[(b+i|0)+1024|0]=K[(g+1040|0)+c|0];c=c+1|0;if((e|0)!=(c|0))continue;break}}xb=g+1312|0}function woa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i=J[b>>2];l=J[i+20>>2];a:{if(l)break a;h=i+20|0;while(1){if(!J[i>>2]){l=169776;break a}l=gI(h);if(!l)l= -169776;k=J[h>>2];J[h>>2]=k?k:l;if(!k)break a;Ik(l);l=J[h>>2];if(!l)continue;break}}i=169776;h=J[l+24>>2];h=h?h:169776;h=M[h+16>>2]<20?169776:J[h+12>>2];k=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);if(k)i=h+(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24))|0;k=0;o=J[a+104>>2];b:{if(P(o,c)>>>0<128)break b;h=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(h)h=(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))+i|0;else h=169776;h=K[h+2|0]|K[h+3|0]<<8;j=h<<8|h>>>8;i=j&65535;k=Qb(i<<2);if(!h|!k)break b;m=i>>> -0<=1?1:i;n=m&7;h=0;i=0;if((j&65535)>>>0>=8){p=m&65528;m=0;while(1){j=i<<2;J[j+k>>2]=1073741824;J[(j|4)+k>>2]=1073741824;J[(j|8)+k>>2]=1073741824;J[(j|12)+k>>2]=1073741824;J[(j|16)+k>>2]=1073741824;J[(j|20)+k>>2]=1073741824;J[(j|24)+k>>2]=1073741824;J[(j|28)+k>>2]=1073741824;i=i+8|0;m=m+8|0;if((p|0)!=(m|0))continue;break}}if(!n)break b;while(1){J[(i<<2)+k>>2]=1073741824;i=i+1|0;h=h+1|0;if((n|0)!=(h|0))continue;break}}c:{d:{e:{f:{if(!o)break f;if(J[b+12>>2])break d;while(1){h=0;i=vc(1,1024);if(!i)break f; -while(1){j=h<<2;J[j+i>>2]=-1;J[i+(j|4)>>2]=-1;J[i+(j|8)>>2]=-1;J[i+(j|12)>>2]=-1;J[i+(j|16)>>2]=-1;J[i+(j|20)>>2]=-1;J[i+(j|24)>>2]=-1;J[i+(j|28)>>2]=-1;h=h+8|0;if((h|0)!=256)continue;break}h=J[b+12>>2];J[b+12>>2]=h?h:i;if(!h)break e;Kb(i);if(!J[b+12>>2])continue;break}break d}if(!c)break c;i=0;h=f;while(1){j=fI(l,J[d>>2],a,k)<<16;b=j>>31;b=Kpa(j>>16,b,J[a+72>>2],J[a+76>>2]);n=zb;b=b+32768|0;J[h>>2]=((b>>>0<32768?n+1|0:n)&65535)<<16|b>>>16;h=g+h|0;d=d+e|0;i=i+1|0;if((i|0)!=(c|0))continue;break}break c}J[b+ -8>>2]=J[a+16>>2]}if(J[b+8>>2]!=J[a+16>>2]){i=J[b+12>>2];h=0;while(1){j=h<<2;J[j+i>>2]=-1;J[i+(j|4)>>2]=-1;J[i+(j|8)>>2]=-1;J[i+(j|12)>>2]=-1;J[i+(j|16)>>2]=-1;J[i+(j|20)>>2]=-1;J[i+(j|24)>>2]=-1;J[i+(j|28)>>2]=-1;h=h+8|0;if((h|0)!=256)continue;break}J[b+8>>2]=J[a+16>>2]}if(!c)break c;m=0;h=f;while(1){i=J[d>>2];j=J[J[b+12>>2]+((i&255)<<2)>>2];g:{if(!((j|0)==-1|(j>>>16|0)!=(i>>>8|0))){i=j&65535;break g}i=fI(l,i,a,k);if(i>>>0>65535)break g;j=J[d>>2];if(j>>>0>16777215)break g;J[J[b+12>>2]+((j&255)<<2)>> -2]=j<<8&-65536|i}j=i<<16;n=j>>31;j=Kpa(J[a+72>>2],J[a+76>>2],j>>16,n);i=zb;j=j+32768|0;J[h>>2]=((j>>>0<32768?i+1|0:i)&65535)<<16|j>>>16;h=g+h|0;d=d+e|0;m=m+1|0;if((m|0)!=(c|0))continue;break}}Kb(k);b=J[a+48>>2];h:{if(!c|(K[a+44|0]|!b))break h;a=J[a+28>>2]<0?0-b|0:b;if(c>>>0>=4){h=c&-4;d=0;while(1){b=J[f>>2];J[f>>2]=(b?a:0)+b;b=f+g|0;e=J[b>>2];J[b>>2]=e+(e?a:0);b=b+g|0;e=J[b>>2];J[b>>2]=e+(e?a:0);b=b+g|0;e=J[b>>2];J[b>>2]=e+(e?a:0);f=b+g|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}b=c&3;if(!b)break h; -i=0;while(1){c=J[f>>2];J[f>>2]=(c?a:0)+c;f=f+g|0;i=i+1|0;if((b|0)!=(i|0))continue;break}}}function oga(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;e=xb-48|0;xb=e;i=J[a+464>>2];a:{b:{if(J[i+40>>2]|!J[a+280>>2])break b;d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+(J[i+12>>2]/8|0);J[i+12>>2]=0;f=0;if(!(Ab[J[d+8>>2]](a)|0))break a;if(J[a+336>>2]>0){d=0;while(1){J[((d<<2)+i|0)+20>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}J[i+16>>2]=0;J[i+40>>2]=J[a+280>>2];if(J[a+436>> -2])break b;J[i+36>>2]=0}if(!J[i+36>>2]){o=J[a+432>>2];p=J[a+428>>2];J[e+44>>2]=a;h=J[a+24>>2];c=J[h>>2];J[e+28>>2]=c;f=J[h+4>>2];J[e+32>>2]=f;d=J[i+12>>2];g=J[i+8>>2];J[e+24>>2]=J[i+32>>2];j=J[i+28>>2];J[e+16>>2]=J[i+24>>2];J[e+20>>2]=j;j=J[i+20>>2];J[e+8>>2]=J[i+16>>2];J[e+12>>2]=j;if(J[a+364>>2]>0){while(1){h=n<<2;m=J[h+b>>2];l=i+h|0;c=J[l+96>>2];c:{d:{e:{if((d|0)>7)break e;j=e+28|0;f=0;if(!Od(j,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break e;c=Oe(j,g,d,c,1);break d}f=g>>d-8&255;j=J[(c+ -(f<<2)|0)+144>>2];if(j){c=K[(c+f|0)+1168|0];d=d-j|0;break c}c=Oe(e+28|0,g,d,c,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}j=J[l+136>>2];l=J[l+176>>2];f:{g:{if(l){if(c){if((c|0)>(d|0)){f=0;if(!Od(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;c=c<<2;f=J[c+249728>>2];k=g>>d&f;c=k-((k|0)<=J[c+249724>>2]?f:0)|0}else c=0;h=(J[(a+h|0)+368>>2]<<2)+e|0;c=c+J[h+12>>2]|0;J[h+12>>2]=c;I[m>>1]=c;h=1;if((l|0)<2)break g;while(1){h:{i:{j:{if((d|0)>7)break j;c=e+28|0;f=0;if(!Od(c,g,d,0))break a; -g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break j;c=Oe(c,g,d,j,1);break i}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break h}c=Oe(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}k=c>>>4|0;c=c&15;k:{if(c){if((c|0)>(d|0)){f=0;if(!Od(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}h=h+k|0;d=d-c|0;c=c<<2;f=J[c+249728>>2];k=g>>d&f;I[(J[(h<<2)+p>>2]<<1)+m>>1]=k-((k|0)<=J[c+249724>>2]?f:0);break k}if((k|0)!=15)break f;h=h+15|0}h=h+1|0;if((l|0)>(h|0))continue;break}break g}h= -1;if(!c)break g;if((c|0)>(d|0)){f=0;if(!Od(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0}if((h|0)>(o|0))break f;while(1){l:{m:{n:{if((d|0)>7)break n;c=e+28|0;f=0;if(!Od(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break n;c=Oe(c,g,d,j,1);break m}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break l}c=Oe(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}m=c>>>4|0;c=c&15;o:{if(c){if((c|0)>(d|0)){f=0;if(!Od(e+28|0,g,d,c))break a;g=J[e+36>>2]; -d=J[e+40>>2]}d=d-c|0;break o}if((m|0)!=15)break f}h=(h+m|0)+1|0;if((o|0)>=(h|0))continue;break}}n=n+1|0;if((n|0)>2])continue;break}h=J[a+24>>2];f=J[e+32>>2];c=J[e+28>>2]}J[h+4>>2]=f;J[h>>2]=c;J[i+12>>2]=d;J[i+8>>2]=g;J[i+32>>2]=J[e+24>>2];a=J[e+20>>2];J[i+24>>2]=J[e+16>>2];J[i+28>>2]=a;a=J[e+12>>2];J[i+16>>2]=J[e+8>>2];J[i+20>>2]=a}J[i+40>>2]=J[i+40>>2]-1;f=1}xb=e+48|0;return f|0}function W_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;d=xb-16|0;xb=d;a:{b:{if(wA(a, -b,c)){un(b);g=xb-16|0;xb=g;e=b+132|0;c:{if(!(a?e:0)){J[g+8>>2]=40;break c}i=J[a+28>>2];f=_B(a);J[g+8>>2]=f;if(f)break c;J[e+24>>2]=0;J[e+28>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+28>>2]=i;f=mr(i,8276,g+8|0);if(!J[g+8>>2]){J[f>>2]=a;J[f+4>>2]=e;h=J[e+28>>2];j=f+8264|0;J[f+8272>>2]=j;J[f+8>>2]=h;J[f+8268>>2]=j;J[f+8264>>2]=0;d:{h=_B(a);e:{if(h)break e;h=J[a+8>>2];J[f+48>>2]=16;J[f+44>>2]=17;J[f+68>>2]=h;h=J[a+28>>2];J[f+16>>2]=0; -J[f+52>>2]=h;J[f+12>>2]=f+4168;h=3;if(Ms(f+12|0,-15,8969))break e;if(J[f+12>>2])break d}J[g+8>>2]=h;if(f)Ab[J[i+8>>2]](i,f);break c}J[g+8>>2]=0;J[e+12>>2]=f}j=J[a+8>>2];f:{g:{if(!bc(a,J[a+4>>2]-4|0)){h=Te(a,g+12|0);k=J[g+12>>2];bc(a,j);j=k?0:h;if(j-1>>>0<=40958){k=tc(i,j,g+8|0);if(!J[g+8>>2]){if((ar(f,0,k,j)|0)==(j|0))break f;ar(f,0,0,0);if(k)Ab[J[i+8>>2]](i,k)}J[g+8>>2]=0;break g}if(j)break g}h=2147483647}J[e+8>>2]=0;J[e+4>>2]=h;J[e+24>>2]=18;J[e+20>>2]=19;J[e>>2]=0;break c}Tg(f+12|0);J[f+52>>2]= -0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+16>>2]=0;if(f)Ab[J[i+8>>2]](i,f);J[e+4>>2]=j;J[e+8>>2]=0;J[e+12>>2]=0;J[e+24>>2]=18;J[e+20>>2]=0;J[e>>2]=k}xb=g+16|0;f=J[g+8>>2];if((f&255)==7)break b;if(f){g=xb-16|0;xb=g;i=40;h:{if(!e|!a)break h;h=J[a+28>>2];i=bc(a,0);if(i)break h;i=Dd(a,g+12|0,2);if(i)break h;i=3;if(K[g+12|0]!=31|K[g+13|0]!=157)break h;J[g+8>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0; -J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e+28>>2]=h;f=tc(h,4292,g+8|0);i=J[g+8>>2];if(!i){J[f>>2]=a;J[f+4>>2]=e;j=J[e+28>>2];k=f+4280|0;J[f+4288>>2]=k;J[f+8>>2]=j;J[f+4284>>2]=k;J[f+4280>>2]=0;i:{j=bc(a,0);j:{if(j)break j;j=Dd(a,g+14|0,2);if(j)break j;j=3;if(K[g+14|0]!=31)break j;if(K[g+15|0]==157)break i}J[g+8>>2]=j;if(f)Ab[J[h+8>>2]](h,f);i=J[g+8>>2];break h}Nb(f+12|0,0,172);J[f+176>>2]=a;h=J[a+28>>2];J[f+108>>2]=64;J[f+100>>2]=f+112;J[f+180>>2]=h;J[f+36>>2]=0;J[f+40>>2]=0;H[f+44|0]=0;J[f- --64>>2]=9;J[e+12>>2]=f}J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=2147483647;J[e+24>>2]=20;J[e+20>>2]=21}xb=g+16|0;if(i)break b}J[b+104>>2]=e;J[b+172>>2]=a;if(wA(e,b,c))break b}a=0;if((c|0)<0)break a;if(c&65535){un(b);a=6;break a}k:{l:{m:{n:{a=J[b+180>>2];o:{if(!a)break o;c=J[b+176>>2];if(!c|(K[a|0]|32)!=105|((K[a+1|0]|32)!=115|(K[a+2|0]|32)!=111))break o;a=a+3|0;if(!fc(a,9668))break n;if(!fc(a,9831))if(!fc(c,9964))break n;if(!fc(a,10109))break m}J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;break k}J[d+8>>2]=0;J[d+ -12>>2]=0;J[d+4>>2]=b;break l}a=fc(c,10212);J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;if(a)break k}J[d+8>>2]=1970170211;J[d+12>>2]=65539}a=zf(29552,0,d+4|0,0);break a}un(b);a=2}xb=d+16|0;return a|0}function Ek(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;a:switch(a-29|0){case 0:a=J[b+8>>2];d=J[b+4>>2];b:{if(a>>>0>=d>>>0){a=d+1|0;J[b+8>>2]=a;e=169776;break b}e=J[b>>2]+a|0}f=K[e|0];c:{if(d>>>0<=a+1>>>0){a=d+1|0;J[b+8>>2]=a;e=169776;break c}e=(J[b>>2]+a|0)+1|0}k=K[e|0]; -d:{if(d>>>0<=a+2>>>0){a=d+1|0;J[b+8>>2]=a;e=169776;break d}e=(J[b>>2]+a|0)+2|0}h=K[e|0];e=b+16|0;e:{if(d>>>0<=a+3>>>0){a=d+1|0;J[b+8>>2]=a;d=169776;break e}d=(J[b>>2]+a|0)+3|0}i=K[d|0];d=J[b+20>>2];f:{if(d>>>0<=512){J[b+20>>2]=d+1;e=(e+(d<<3)|0)+8|0;break f}H[e|0]=1;d=J[42445];J[194120]=J[42444];J[194121]=d;e=776480}O[e>>3]=i|(k<<16|f<<24|h<<8);J[b+8>>2]=a+4;return;case 1:p=b+16|0;a=0;i=xb-48|0;xb=i;d=J[b+8>>2];h=J[b+4>>2];g:{if(d>>>0<=h>>>0){f=h+2|0;l=h+1|0;n=J[b>>2];while(1){h:{i:{j:{k:{if(!(j& -1)){e=d+1|0;if(e>>>0>h>>>0)break h;l:{if(d>>>0>=h>>>0){J[b+8>>2]=l;k=169776;e=f;break l}k=d+n|0}d=e;k=K[k|0];J[b+8>>2]=d;e=k>>>4|0;break k}e=k&15}switch(e-13|0){case 0:break h;case 2:break j;default:break i}}d=i+16|0;J[i+12>>2]=d;h=0;l=0;n=0;e=J[i+12>>2];d=a+d|0;m:{if(e>>>0>=d>>>0){a=e;break m}a=e;while(1){f=K[a|0];if(f-9>>>0>=5&(f|0)!=32)break m;a=a+1|0;if((d|0)!=(a|0))continue;break}a=d}n:{if((a|0)==(d|0)){a=d;break n}k=(d-a|0)+a|0;m=1;o:{while(1){f=H[m+116712|0];q=m<<1;r=K[q+116480|0];j=H[a|0]; -if((r|0)<=(j|0))f=(j|0)>K[q+116481|0]?f:j-r|0;f=H[(K[m+116703|0]+116512|0)+f|0];p:{if(587>>>f&1)break p;q:switch(H[f+116731|0]-1|0){case 0:l=1;break p;case 3:s=1;break p;case 1:c=c*10+ +(j-48|0);break p;case 2:if(!(g<=450359962737049))break p;g=g*10+ +(j-48|0);o=o+1;break p;case 4:break q;default:break p}m=(j+P(h,10)|0)-48|0;j=m>>>0>2047;h=j?h:m;n=j|n}if((f|0)==1)break o;m=H[f+116721|0];a=a+1|0;if((d|0)!=(a|0))continue;break}a=k}r:{s:{t:{u:{v:{if(o!=0){t=c;if(o<4294967296&o>=0)f=~~o>>>0;else f=0; -c=f&256?1E256:1;c=f&128?c*1E128:c;c=f&64?c*1E64:c;c=f&32?c*1E32:c;c=f&16?c*1E16:c;c=f&8?c*1E8:c;c=f&4?c*1E4:c;c=f&2?c*100:c;c=t+g/(f&1?c*10:c);if(l)break v;break u}if(!l)break u}c=-c;if(!(n&1))break t;break s}if(n&1)break s}if(!h)break n;g=h&256?1E256:1;g=h&128?g*1E128:g;g=h&64?g*1E64:g;g=h&32?g*1E32:g;g=h&16?g*1E16:g;g=h&8?g*1E8:g;g=h&4?g*1E4:g;g=h&2?g*100:g;g=h&1?g*10:g;if(!s)break r;c=c/g;break n}if(c==0)break n;if(s){c=l?-2.2250738585072014E-308:2.2250738585072014E-308;break n}c=l?-1.7976931348623157E308: -1.7976931348623157E308;break n}c=g*c}O[i>>3]=c;f=0;w:{if((a|0)==(e|0))break w;J[i+12>>2]=a;f=(a|0)==(d|0)}if(f){c=O[i>>3];break g}l=J[b+4>>2]+1|0;break h}H[(i+16|0)+a|0]=K[e+107342|0];x:{if((e|0)!=12){e=a;break x}e=a+1|0;if((e|0)==32)break h;H[(i+16|0)+e|0]=45}a=e+1|0;j=j+1|0;if(e>>>0<31)continue}break}J[b+8>>2]=l}c=0}xb=i+48|0;a=J[b+20>>2];if(a>>>0<=512){J[b+20>>2]=a+1;O[((a<<3)+p|0)+8>>3]=c;return}H[p|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;O[97060]=c;return;default:break a}_l(a,b)}function cn(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;i=xb-16|0;xb=i;e=tc(J[a+100>>2],(J[a+16>>2]<<1)+392|0,i+4|0);d=J[i+4>>2];if(!d){J[e>>2]=a;d=J[a+16>>2];J[e+388>>2]=c;f=e+392|0;J[e+8>>2]=f;J[e+4>>2]=d;J[e+368>>2]=0;J[e+372>>2]=0;c=0;I[e+364>>1]=0;J[e+376>>2]=0;J[e+380>>2]=0;J[e+384>>2]=0;n=J[a+92>>2];a:{if(!d)break a;if(d>>>0>=8){k=d&-8;while(1){g=c<<1;I[g+f>>1]=16383;I[(g|2)+f>>1]=16383;I[(g|4)+f>>1]=16383;I[(g|6)+f>>1]=16383;I[(g|8)+f>>1]=16383;I[(g|10)+f>>1]=16383;I[(g|12)+f>>1]=16383;I[(g| -14)+f>>1]=16383;c=c+8|0;h=h+8|0;if((k|0)!=(h|0))continue;break}}g=d&7;if(!g)break a;d=0;while(1){I[(c<<1)+f>>1]=16383;c=c+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}b:{if(di(a,1970170211))break b;h=0;d=14512;while(1){k=J[(J[d+8>>2]<<2)+16352>>2];c=J[k+4>>2];c:{if(!c|J[d+16>>2]!=10)break c;d=J[c>>2];if(d)while(1){g=c;c=ce(a,d);J[i+12>>2]=c;d:{if(!c|c>>>0>=M[e+4>>2])break d;c=(c<<1)+f|0;if((L[c>>1]&16383)!=16383)break d;I[c>>1]=h}d=Vn(a,d,i+12|0);while(1){c=J[i+12>>2];if(!(!c|M[g+4>>2]>>0)){e:{if(c>>> -0>=M[e+4>>2])break e;c=(c<<1)+f|0;if((L[c>>1]&16383)!=16383)break e;I[c>>1]=h}d=Vn(a,d,i+12|0);continue}break}c=g+8|0;d=J[g+8>>2];if(d)continue;break}c=J[k+8>>2];d=J[c>>2];if(!d)break c;k=h&65535;while(1){g=c;c=ce(a,d);J[i+8>>2]=c;f:{if(!c|c>>>0>=M[e+4>>2])break f;c=(c<<1)+f|0;j=L[c>>1];if((k|0)!=(j&16383))break f;I[c>>1]=j|16384}d=Vn(a,d,i+8|0);while(1){c=J[i+8>>2];if(!(!c|M[g+4>>2]>>0)){g:{if(c>>>0>=M[e+4>>2])break g;c=(c<<1)+f|0;j=L[c>>1];if((k|0)!=(j&16383))break g;I[c>>1]=j|16384}d=Vn(a,d, -i+8|0);continue}break}c=g+8|0;d=J[g+8>>2];if(d)continue;break}}h=h+1|0;d=J[(h<<2)+16608>>2];if((h|0)!=87)continue;break}c=ce(a,48);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,49);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,50);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,51);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,52);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,53);if(!(!c| -c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,54);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,55);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,56);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=ce(a,57);if(!c|c>>>0>=M[e+4>>2])break b;c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}g=J[J[e+388>>2]+12>>2];h:{if((g|0)==16383)break h;h=J[e+4>>2];if((h|0)<=0)break h;d=0;if((h|0)!=1){k=h&-2;c=0;while(1){j=d<<1;l=j+f|0;m=L[l>>1];if((m&16383)== -16383)I[l>>1]=g|m&49152;j=(j|2)+f|0;l=L[j>>1];if((l&16383)==16383)I[j>>1]=g|l&49152;d=d+2|0;c=c+2|0;if((k|0)!=(c|0))continue;break}}if(!(h&1))break h;c=(d<<1)+f|0;d=L[c>>1];if((d&16383)!=16383)break h;I[c>>1]=g|d&49152}ci(a,n);J[e+12>>2]=0;d=0}J[b>>2]=e;xb=i+16|0;return d}function $O(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;m=xb-16|0;xb=m;h=tc(a,2496,m+12|0);d=J[m+12>>2];if(!d){J[h>>2]=a;J[h+212>>2]=L[b+120>>1];g=K[b+124|0];a:{if(!g)break a;a=h+224|0;d=b+128|0; -i=g&7;b:{if(!i){e=g;break b}e=g;while(1){J[a>>2]=I[d>>1];e=e-1|0;d=d+2|0;a=a+12|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if(g>>>0<8)break a;while(1){J[a>>2]=I[d>>1];J[a+12>>2]=I[d+2>>1];J[a+24>>2]=I[d+4>>1];J[a+36>>2]=I[d+6>>1];J[a+48>>2]=I[d+8>>1];J[a+60>>2]=I[d+10>>1];J[a+72>>2]=I[d+12>>1];J[a+84>>2]=I[d+14>>1];d=d+16|0;a=a+96|0;e=e-8|0;if(e)continue;break}}e=1;J[h+208>>2]=g+1;J[h+8>>2]=L[b+122>>1];g=K[b+125|0];c:{if(!g)break c;a=h+20|0;d=b+154|0;j=g&7;d:{if(!j){f=g;break d}i=0;f=g;while(1){J[a>> -2]=I[d>>1];f=f-1|0;d=d+2|0;a=a+12|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}if(g>>>0<8)break c;while(1){J[a>>2]=I[d>>1];J[a+12>>2]=I[d+2>>1];J[a+24>>2]=I[d+4>>1];J[a+36>>2]=I[d+6>>1];J[a+48>>2]=I[d+8>>1];J[a+60>>2]=I[d+10>>1];J[a+72>>2]=I[d+12>>1];J[a+84>>2]=I[d+14>>1];d=d+16|0;a=a+96|0;f=f-8|0;if(f)continue;break}}J[h+4>>2]=g+1;a=0;d=h+412|0;f=b+12|0;g=b+40|0;cw(d,K[b+8|0],f,K[b+9|0],g,J[b+116>>2],0);i=b+60|0;j=b+88|0;cw(d,K[b+10|0],i,K[b+11|0],j,J[b+116>>2],1);d=K[b+8|0];e:{if(!d)break e;k=d-1| -0;if(d>>>0>=3){l=(k>>>1|0)+1&-2;while(1){d=a<<1;n=L[f+(d|6)>>1]-L[f+(d|4)>>1]<<16>>16;d=L[f+(d|2)>>1]-L[d+f>>1]<<16>>16;e=e<<16>>16;e=(d|0)>(e|0)?d:e;e=(e|0)<(n|0)?n:e;a=a+4|0;o=o+2|0;if((l|0)!=(o|0))continue;break}}if(k&2)break e;a=a<<1;a=L[f+(a|2)>>1]-L[a+f>>1]<<16>>16;e=(a|0)>(e|0)?a:e}a=K[b+9|0];f:{if(!a)break f;k=a-1|0;g:{if(a>>>0<3){f=0;break g}l=(k>>>1|0)+1&-2;f=0;a=0;while(1){d=f<<1;n=L[g+(d|6)>>1]-L[g+(d|4)>>1]<<16>>16;d=L[g+(d|2)>>1]-L[d+g>>1]<<16>>16;e=e<<16>>16;e=(d|0)>(e|0)?d:e;e=(e| -0)<(n|0)?n:e;f=f+4|0;a=a+2|0;if((l|0)!=(a|0))continue;break}}if(k&2)break f;a=f<<1;a=L[g+(a|2)>>1]-L[a+g>>1]<<16>>16;e=e<<16>>16;e=(a|0)>(e|0)?a:e}a=K[b+10|0];h:{if(!a)break h;g=a-1|0;i:{if(a>>>0<3){d=0;break i}k=(g>>>1|0)+1&-2;d=0;f=0;while(1){a=d<<1;l=L[i+(a|6)>>1]-L[i+(a|4)>>1]<<16>>16;a=L[i+(a|2)>>1]-L[a+i>>1]<<16>>16;e=e<<16>>16;a=(a|0)>(e|0)?a:e;e=(a|0)<(l|0)?l:a;d=d+4|0;f=f+2|0;if((k|0)!=(f|0))continue;break}}if(g&2)break h;a=d<<1;a=L[i+(a|2)>>1]-L[a+i>>1]<<16>>16;e=e<<16>>16;e=(a|0)>(e|0)? -a:e}a=K[b+11|0];j:{if(!a)break j;g=a-1|0;k:{if(a>>>0<3){d=0;break k}i=(g>>>1|0)+1&-2;d=0;f=0;while(1){a=d<<1;k=L[j+(a|6)>>1]-L[j+(a|4)>>1]<<16>>16;a=L[j+(a|2)>>1]-L[a+j>>1]<<16>>16;e=e<<16>>16;a=(a|0)>(e|0)?a:e;e=(a|0)<(k|0)?k:a;d=d+4|0;f=f+2|0;if((i|0)!=(f|0))continue;break}}if(g&2)break j;a=d<<1;a=L[j+(a|2)>>1]-L[a+j>>1]<<16>>16;e=e<<16>>16;e=(a|0)>(e|0)?a:e}a=dc(1E3,e&65535);e=J[b+108>>2];J[h+2476>>2]=(a|0)>(e|0)?e:a;J[h+2480>>2]=J[b+112>>2];a=J[b+116>>2];J[h+404>>2]=0;J[h+408>>2]=0;J[h+200>>2]= -0;J[h+204>>2]=0;J[h+2488>>2]=a;d=J[m+12>>2]}J[c>>2]=h;xb=m+16|0;return d|0}function pga(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;e=xb-48|0;xb=e;h=J[a+464>>2];a:{b:{if(J[h+40>>2]|!J[a+280>>2])break b;d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+(J[h+12>>2]/8|0);J[h+12>>2]=0;f=0;if(!(Ab[J[d+8>>2]](a)|0))break a;if(J[a+336>>2]>0){d=0;while(1){J[((d<<2)+h|0)+20>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}J[h+16>>2]=0;J[h+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[h+36>>2]=0}if(!J[h+ -36>>2]){J[e+44>>2]=a;c=J[a+24>>2];i=J[c>>2];J[e+28>>2]=i;f=J[c+4>>2];J[e+32>>2]=f;d=J[h+12>>2];g=J[h+8>>2];J[e+24>>2]=J[h+32>>2];j=J[h+28>>2];J[e+16>>2]=J[h+24>>2];J[e+20>>2]=j;j=J[h+20>>2];J[e+8>>2]=J[h+16>>2];J[e+12>>2]=j;if(J[a+364>>2]>0){while(1){i=n<<2;m=J[i+b>>2];l=h+i|0;c=J[l+96>>2];c:{d:{e:{if((d|0)>7)break e;j=e+28|0;f=0;if(!Od(j,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break e;c=Oe(j,g,d,c,1);break d}f=g>>d-8&255;j=J[(c+(f<<2)|0)+144>>2];if(j){c=K[(c+f|0)+1168|0];d=d-j|0;break c}c= -Oe(e+28|0,g,d,c,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}j=J[l+136>>2];l=J[l+176>>2];f:{g:{if(l){if(c){if((c|0)>(d|0)){f=0;if(!Od(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;c=c<<2;f=J[c+249728>>2];k=g>>d&f;c=k-((k|0)<=J[c+249724>>2]?f:0)|0}else c=0;f=(J[(a+i|0)+368>>2]<<2)+e|0;c=c+J[f+12>>2]|0;J[f+12>>2]=c;I[m>>1]=c;i=1;if((l|0)<2)break g;while(1){h:{i:{j:{if((d|0)>7)break j;c=e+28|0;f=0;if(!Od(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break j;c=Oe(c,g,d,j,1);break i}c= -g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break h}c=Oe(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}k=c>>>4|0;c=c&15;k:{if(c){if((c|0)>(d|0)){f=0;if(!Od(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}f=i+k|0;d=d-c|0;c=c<<2;i=J[c+249728>>2];k=g>>d&i;I[(J[(f<<2)+247088>>2]<<1)+m>>1]=k-((k|0)<=J[c+249724>>2]?i:0);break k}if((k|0)!=15)break f;f=i+15|0}i=f+1|0;if((l|0)>(i|0))continue;break}if((f|0)<=62)break g;break f}i=1;if(!c)break g;if((c|0)>(d|0)){f= -0;if(!Od(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0}while(1){l:{m:{n:{if((d|0)>7)break n;c=e+28|0;f=0;if(!Od(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break n;c=Oe(c,g,d,j,1);break m}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break l}c=Oe(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}m=c>>>4|0;c=c&15;o:{if(c){if((c|0)>(d|0)){f=0;if(!Od(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;break o}if((m|0)!=15)break f}i=(i+ -m|0)+1|0;if((i|0)<64)continue;break}}n=n+1|0;if((n|0)>2])continue;break}f=J[e+32>>2];i=J[e+28>>2];c=J[a+24>>2]}J[c+4>>2]=f;J[c>>2]=i;J[h+12>>2]=d;J[h+8>>2]=g;J[h+32>>2]=J[e+24>>2];a=J[e+20>>2];J[h+24>>2]=J[e+16>>2];J[h+28>>2]=a;a=J[e+12>>2];J[h+16>>2]=J[e+8>>2];J[h+20>>2]=a}J[h+40>>2]=J[h+40>>2]-1;f=1}xb=e+48|0;return f|0}function ls(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;c=J[a+36>>2];n=J[a+40>>2];k=J[a+28>>2];o=J[a+24>>2];q=k+P(o,40)|0;a:{if(b){r= -8;if((o|0)<=0)break a;a=k;while(1){J[a+24>>2]=J[a+20>>2];J[a+28>>2]=J[a+8>>2];a=a+40|0;if(q>>>0>a>>>0)continue;break}break a}r=4;if((o|0)<=0)break a;a=k;while(1){J[a+24>>2]=J[a+16>>2];J[a+28>>2]=J[a+4>>2];a=a+40|0;if(q>>>0>a>>>0)continue;break}}if((c|0)>0){t=(c<<2)+n|0;while(1){i=J[n>>2];a=i;j=J[a+36>>2];b:{if(a>>>0>j>>>0)break b;c:{while(1){d:{if(L[a>>1]&r){c=a;e:while(1){d=c;h=d>>>0>=j>>>0;if(!h){c=d+40|0;if(L[d+40>>1]&r)continue}g=1;f:{g:{e=d+40|0;c=e;f=j>>>0>>0;if(!f)while(1){if(L[c>>1]&r)break g; -g=g+1|0;c=d+P(g,40)|0;if(j>>>0>=c>>>0)continue;break}if((a|0)!=(d|0))break f;c=J[a+24>>2];e=J[a+28>>2];if((c|0)==(e|0))break b;e=c-e|0;if(a>>>0>i>>>0)break d;break c}if(g>>>0<2)continue;g=d+P(g,40)|0;l=g-40|0;h=J[d+28>>2]>J[g+28>>2];g=h?d:c;f=J[g+24>>2];g=J[g+28>>2];p=f-g|0;d=h?c:d;h=J[d+24>>2];d=J[d+28>>2];s=h-d|0;if(!((f|0)!=(h|0)&(d|0)!=(g|0)))while(1){f=J[e+28>>2];J[e+24>>2]=(d|0)<(f|0)?(f|0)<(g|0)?h:f+p|0:f+s|0;e=e+40|0;if(l>>>0>=e>>>0)continue;continue e}u=dc(f-h|0,g-d|0);while(1){f=J[e+28>> -2];h:{if((f|0)<=(d|0)){m=f+s|0;break h}m=f+p|0;if((f|0)>=(g|0))break h;m=Rb(f-d|0,u)+h|0}J[e+24>>2]=m;e=e+40|0;if(l>>>0>=e>>>0)continue;break}continue}break}i:{if(f|h)break i;c=J[d+28>>2]>J[a+28>>2];g=c?d:a;f=J[g+24>>2];g=J[g+28>>2];l=f-g|0;c=c?a:d;h=J[c+24>>2];c=J[c+28>>2];p=h-c|0;if(!((f|0)!=(h|0)&(c|0)!=(g|0)))while(1){f=J[e+28>>2];J[e+24>>2]=(c|0)<(f|0)?(f|0)<(g|0)?h:f+l|0:f+p|0;e=e+40|0;if(j>>>0>=e>>>0)continue;break i}s=dc(f-h|0,g-c|0);while(1){f=J[e+28>>2];j:{if((f|0)<=(c|0)){m=f+p|0;break j}m= -f+l|0;if((f|0)>=(g|0))break j;m=Rb(f-c|0,s)+h|0}J[e+24>>2]=m;e=e+40|0;if(j>>>0>=e>>>0)continue;break}}if(a>>>0<=k>>>0)break b;g=a-40|0;if(g>>>0>>0)break b;e=J[d+28>>2]>J[a+28>>2];c=e?d:a;j=J[c+24>>2];c=J[c+28>>2];h=j-c|0;a=e?a:d;e=J[a+24>>2];a=J[a+28>>2];f=e-a|0;if(!((e|0)!=(j|0)&(a|0)!=(c|0)))while(1){d=J[i+28>>2];J[i+24>>2]=(a|0)<(d|0)?(c|0)>(d|0)?e:d+h|0:d+f|0;i=i+40|0;if(g>>>0>=i>>>0)continue;break b}j=dc(j-e|0,c-a|0);while(1){d=J[i+28>>2];k:{if((d|0)<=(a|0)){l=d+f|0;break k}l=d+h|0;if((c| -0)<=(d|0))break k;l=Rb(d-a|0,j)+e|0}J[i+24>>2]=l;i=i+40|0;if(g>>>0>=i>>>0)continue;break}break b}a=a+40|0;if(j>>>0>=a>>>0)continue;break b}break}while(1){J[i+24>>2]=e+J[i+28>>2];i=i+40|0;if(i>>>0>>0)continue;break}}c=a+40|0;if(j>>>0>>0)break b;while(1){J[a- -64>>2]=e+J[a+68>>2];a=c;c=a+40|0;if(j>>>0>=c>>>0)continue;break}}n=n+4|0;if(t>>>0>n>>>0)continue;break}}l:{if(b){if((o|0)<=0)break l;while(1){J[k+20>>2]=J[k+24>>2];k=k+40|0;if(q>>>0>k>>>0)continue;break}break l}if((o|0)<=0)break l;while(1){J[k+ -16>>2]=J[k+24>>2];k=k+40|0;if(q>>>0>k>>>0)continue;break}}}function hG(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;H[b+140|0]=K[b+140|0]|128;i=J[b+80>>2];j=J[b+68>>2];a:{if(!J[b+132>>2])break a;f=b+92|0;while(1){g=J[f+(d<<2)>>2];e=J[b+12>>2];e=Us(g,Ab[J[e+24>>2]](e,g,J[e+56>>2])|0);if((e|0)==7){d=d+1|0;if(d>>>0>2])continue;break a}break}h=L[(e<<2)+130898>>1]}b:{if(!j){e=-1;break b}g=i+3|0;e=-1;f=0;while(1){k=P(f,20);d=k+i|0;d=Us(J[d>>2],L[d+16>>1]&31);c:{if((d|0)==7){H[(g+ -k|0)+16|0]=7;break c}m=P(h,24)+(d<<2)|0;l=K[m+130896|0];d:{if(!((l|0)==7|(e|0)==-1)){H[(P(e,20)+g|0)+16|0]=l;Ac(b,J[b+16>>2]&128?4:3,e,f+1|0,1,0);break d}if((e|0)==-1){if(!(K[b+16|0]&64)|d>>>0<2)break d;Ac(b,2,0,f+1|0,0,1);break d}if(!(K[b+16|0]&64)|d>>>0<=1&h-2>>>0>3)break d;J[b+144>>2]=J[b+144>>2]|32;d=J[b+68>>2];h=f+1|0;h=d>>>0>>0?d:h;if(h>>>0<=e>>>0)break d;p=(e^-1)+h|0;l=J[b+80>>2];d=0;n=h-e&3;if(n)while(1){o=l+P(e,20)|0;J[o+4>>2]=J[o+4>>2]|2;e=e+1|0;d=d+1|0;if((n|0)!=(d|0))continue;break}if(p>>> -0<3)break d;while(1){d=l+P(e,20)|0;J[d+4>>2]=J[d+4>>2]|2;J[d+24>>2]=J[d+24>>2]|2;J[d+44>>2]=J[d+44>>2]|2;d=d- -64|0;J[d>>2]=J[d>>2]|2;e=e+4|0;if((h|0)!=(e|0))continue;break}}H[(g+k|0)+16|0]=K[m+130897|0];h=L[m+130898>>1];e=f}f=f+1|0;if((j|0)!=(f|0))continue;break}}e:{f:{if(!J[b+136>>2])break f;d=0;while(1){g=J[((d<<2)+b|0)+112>>2];f=J[b+12>>2];f=Us(g,Ab[J[f+24>>2]](f,g,J[f+56>>2])|0);if((f|0)==7){d=d+1|0;if(d>>>0>2])continue;break f}break}f=K[(P(h,24)+(f<<2)|0)+130896|0];if(!((f|0)==7|(e| -0)==-1)){H[(P(e,20)+i|0)+19|0]=f;Ac(b,J[b+16>>2]&128?4:3,e,J[b+68>>2],1,0);break f}if(h-2>>>0>3)break f;d=J[b+68>>2];if(!(K[b+16|0]&64))break e;J[b+144>>2]=J[b+144>>2]|32;if(d>>>0<=e>>>0)break f;i=d+(e^-1)|0;h=J[b+80>>2];g=d-e&3;if(g){f=0;while(1){j=h+P(e,20)|0;J[j+4>>2]=J[j+4>>2]|2;e=e+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}}if(i>>>0<3)break f;while(1){f=h+P(e,20)|0;J[f+4>>2]=J[f+4>>2]|2;J[f+24>>2]=J[f+24>>2]|2;J[f+44>>2]=J[f+44>>2]|2;f=f- -64|0;J[f>>2]=J[f>>2]|2;e=e+4|0;if((d|0)!=(e|0))continue; -break}}d=J[b+68>>2]}e=J[b+80>>2];if(!((c|0)!=1299148391|d>>>0<2)){c=e+3|0;f=1;h=d-1|0;i=h&1;if((d|0)!=2){h=h&-2;d=0;while(1){g=P(f,20);j=g+e|0;k=J[j>>2]-6155|0;if(!(k>>>0>4|(k|0)==3))H[(c+g|0)+16|0]=K[j-1|0];g=P(f+1|0,20);j=g+e|0;k=J[j>>2]-6155|0;if(!(k>>>0>4|(k|0)==3))H[(c+g|0)+16|0]=K[j-1|0];f=f+2|0;d=d+2|0;if((h|0)!=(d|0))continue;break}}g:{if(!i)break g;d=e;e=P(f,20);f=d+e|0;d=J[f>>2]-6155|0;if(d>>>0>4|(d|0)==3)break g;H[(c+e|0)+16|0]=K[f-1|0]}d=J[b+68>>2];e=J[b+80>>2]}h:{if(!d)break h;b=e+3| -0;c=d&1;f=0;if((d|0)!=1){h=d&-2;d=0;while(1){i=P(f,20);g=i+e|0;J[g+4>>2]=J[g+4>>2]|J[(K[(b+i|0)+16|0]<<2)+a>>2];i=P(f|1,20);g=i+e|0;J[g+4>>2]=J[g+4>>2]|J[(K[(b+i|0)+16|0]<<2)+a>>2];f=f+2|0;d=d+2|0;if((h|0)!=(d|0))continue;break}}if(!c)break h;c=P(f,20);e=c+e|0;J[e+4>>2]=J[e+4>>2]|J[(K[(b+c|0)+16|0]<<2)+a>>2]}}function iga(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,K=0,N=0,O=0,Q=0,R=0,S=0,T=0, -U=0,V=0,W=0,X=0,Y=0;j=xb-128|0;xb=j;B=J[a+328>>2]-1|0;x=J[a+448>>2];a:{b:{while(1){k=J[a+144>>2];h=J[a+152>>2];if((k|0)>(h|0))break b;d=J[a+456>>2];if(J[d+20>>2]|(h|0)==(k|0)&M[a+148>>2]>J[a+156>>2]+!J[a+408>>2]>>>0)break b;if(Ab[J[d>>2]](a)|0)continue;break}a=0;break a}if(J[a+36>>2]>0){m=J[a+216>>2];while(1){c:{if(!J[m+52>>2])break c;p=J[a+156>>2];d:{if(B>>>0>p>>>0){d=J[m+12>>2];l=d<<1;k=d;break d}d=J[m+12>>2];h=M[m+32>>2]%(d>>>0)|0;l=h?h:d;k=l}y=k;e:{if(p){C=(Ab[J[J[a+4>>2]+32>>2]](a,J[((n<<2)+ -x|0)+72>>2],P(p-1|0,d),d+l|0,0)|0)+(J[m+12>>2]<<2)|0;break e}C=Ab[J[J[a+4>>2]+32>>2]](a,J[((n<<2)+x|0)+72>>2],0,l,0)|0}if((y|0)<=0)break c;h=n<<2;W=J[(h+J[a+468>>2]|0)+4>>2];X=y-1|0;q=J[x+112>>2]+P(n,24)|0;f=J[m+80>>2];d=L[f+4>>1];D=d<<8;E=d<<7;d=L[f+18>>1];F=d<<8;G=d<<7;k=L[f>>1];Y=P(k,5);d=L[f+32>>1];H=d<<8;K=d<<7;N=P(k,9);d=L[f+16>>1];O=d<<8;Q=d<<7;d=L[f+2>>1];R=d<<8;S=d<<7;T=P(k,36);z=J[b+h>>2];o=0;while(1){h=(o<<2)+C|0;l=J[h>>2];s=o|p?J[h-4>>2]:l;U=J[m+28>>2]-1|0;t=0;f:{if(p>>>0>=B>>>0){d=l; -if((o|0)==(X|0))break f}d=J[h+4>>2]}u=d;v=I[u>>1];d=v;r=I[l>>1];k=r;w=I[s>>1];h=w;A=0;while(1){g=h;h=w;V=k;k=r;f=d;d=v;Mb(j,l,128);if(t>>>0>>0){v=I[u+128>>1];r=I[l+128>>1];w=I[s+128>>1]}i=J[q+4>>2];if(!(L[j+2>>1]|!i)){c=P(V-r|0,T);g:{if((c|0)>=0){e=(c+S|0)/(R|0)|0;if((i|0)<=0)break g;c=1<(e|0)?e:c-1|0;break g}e=(S-c|0)/(R|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+2>>1]=e}i=J[q+8>>2];if(!(L[j+16>>1]|!i)){c=P(h-d|0,T);h:{if((c|0)>=0){e=(c+Q|0)/(O|0)|0;if((i|0)<=0)break h;c= -1<(e|0)?e:c-1|0;break h}e=(Q-c|0)/(O|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+16>>1]=e}i=J[q+12>>2];if(!(L[j+32>>1]|!i)){c=P((h-(k<<1)|0)+d|0,N);i:{if((c|0)>=0){e=(c+K|0)/(H|0)|0;if((i|0)<=0)break i;c=1<(e|0)?e:c-1|0;break i}e=(K-c|0)/(H|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+32>>1]=e}c=J[q+16>>2];if(!(L[j+18>>1]|!c)){f=P((g-(f+w|0)|0)+v|0,Y);j:{if((f|0)>=0){g=(f+G|0)/(F|0)|0;if((c|0)<=0)break j;f=1<(g|0)?g:f-1|0;break j}g=(G-f|0)/(F|0)| -0;f=1<0?(f|0)>(g|0)?g:f-1|0:g)|0}I[j+18>>1]=g}c=J[q+20>>2];if(!(L[j+4>>1]|!c)){f=P((V-(k<<1)|0)+r|0,N);k:{if((f|0)>=0){g=(f+E|0)/(D|0)|0;if((c|0)<=0)break k;f=1<(g|0)?g:f-1|0;break k}g=(E-f|0)/(D|0)|0;f=1<0?(f|0)>(g|0)?g:f-1|0:g)|0}I[j+4>>1]=g}Ab[W|0](a,m,j,z,A);u=u+128|0;s=s+128|0;l=l+128|0;A=J[m+36>>2]+A|0;t=t+1|0;if(U>>>0>=t>>>0)continue;break}z=(J[m+40>>2]<<2)+z|0;o=o+1|0;if((y|0)!=(o|0))continue;break}}m=m+88|0;n=n+1|0;if((n|0)>2])continue;break}}b= -J[a+156>>2]+1|0;J[a+156>>2]=b;a=b>>>0>2]?3:4}xb=j+128|0;return a|0}function ov(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,w=0,x=0,y=0;g=xb-16|0;xb=g;j=J[b+28>>2];i=J[a+736>>2];J[g>>2]=0;a:{b:{if(i)c:{if(!J[a+704>>2])break c;if(Ab[J[a+516>>2]](a,1668702578,b,g+8|0)|0)break c;e=Tc(b,J[g+8>>2]);J[g+12>>2]=e;if(e)break c;e=J[b>>2];f=J[b+32>>2];d:{if((he(b)|0)!=65536){J[g+12>>2]=0;break d}n=Tb(j,4,0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;o=Tb(j,4, -0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;p=Tb(j,4,0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;d=Zc(b);r=d&4095;c=Zc(b);h=J[g+8>>2];if((r<<2)+c>>>0>h>>>0){J[g+12>>2]=8;break d}k=c+(f-e|0)|0;if(d<<16>>16<0){d=J[b+32>>2];e=J[b>>2];f=J[b+36>>2];J[b+32>>2]=f-e>>>0>k>>>0?e+k|0:f;q=pm(b,h,g);c=J[b+32>>2];f=J[b>>2];e=d-e|0;d=J[b+36>>2];J[b+32>>2]=e>>>0>>0?f+e|0:d;k=c-f|0}m=Tb(j,4,0,J[a+700>>2],0,g+12|0);e:{if(J[g+12>>2])break e;if(r){e=0;while(1){v=Zc(b);f=Zc(b);d=f<<16>>16;f:{if((d|0)<0){c=0;if(!J[i>> -2])break f;while(1){x=(c<<2)+n|0,y=Zc(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}break f}c=f&4095;if(c>>>0>=M[i+60>>2]){J[g+12>>2]=8;break e}h=J[i+64>>2];if(!h){J[g+12>>2]=8;break e}l=c;c=J[i>>2];Mb(n,h+(P(l,c)<<2)|0,c<<2)}g:{if(!(f&16384))break g;c=0;if(!J[i>>2])break g;while(1){x=(c<<2)+o|0,y=Zc(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;h=J[i>>2];if(c>>>0>>0)continue;break}c=0;if(!h)break g;while(1){x=(c<<2)+p|0,y=Zc(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}}s= -nv(i,d&65535,n,o,p);if(s){h=J[b+32>>2];c=J[b>>2];d=J[b+36>>2];J[b+32>>2]=d-c>>>0>k>>>0?c+k|0:d;t=h-c|0;h:{if(f&8192){f=pm(b,J[g+8>>2],g+4|0);d=J[g+4>>2];e=f;break h}d=J[g>>2];J[g+4>>2]=d;f=e;e=q}h=mp(b,J[g+8>>2],d?d:J[a+700>>2]);i:{j:{k:{if(!e|!h)break k;if((f|0)!=-1){c=0;if(!d)break j;while(1){l=L[e+(c<<1)>>1];if(l>>>0>2]){l=(l<<2)+m|0;w=J[l>>2];x=l,y=Rb(J[h+(c<<2)>>2],s)+w|0,J[x>>2]=y}c=c+1|0;if((d|0)!=(c|0))continue;break}break k}e=-1;if(J[a+700>>2]!=(d|0))break i;c=0;if(!d)break i;while(1){e= -c<<2;d=e+m|0;l=J[d>>2];x=d,y=Rb(J[e+h>>2],s)+l|0,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}}e=-1;if((f|0)==-1)break i}if(f)Ab[J[j+8>>2]](j,f);e=0}if(h)Ab[J[j+8>>2]](j,h);f=J[b>>2];d=J[b+36>>2];J[b+32>>2]=d-f>>>0>t>>>0?f+t|0:d}k=k+v|0;u=u+1|0;if((u|0)!=(r|0))continue;break}}f=J[a+700>>2];if(!f)break e;d=J[a+704>>2];e=0;if((f|0)!=1){k=f&-2;c=0;while(1){i=e<<2;h=i+d|0;J[h>>2]=J[h>>2]+(J[i+m>>2]+512>>10);i=i|4;h=i+d|0;J[h>>2]=J[h>>2]+(J[i+m>>2]+512>>10);e=e+2|0;c=c+2|0;if((k|0)!=(c|0))continue; -break}}if(!(f&1))break e;e=e<<2;f=e+d|0;J[f>>2]=J[f>>2]+(J[e+m>>2]+512>>10)}Ec(b);if((q|0)==-1)break a;break b}Ec(b);break b}J[g+12>>2]=0}if(q)Ab[J[j+8>>2]](j,q)}if(n)Ab[J[j+8>>2]](j,n);if(o)Ab[J[j+8>>2]](j,o);if(p)Ab[J[j+8>>2]](j,p);if(m)Ab[J[j+8>>2]](j,m);mC(a+108|0,108);xb=g+16|0;return J[g+12>>2]}function Ina(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}H[a+28|0]=0;c=b;J[a+36>>2]=c;d=J[c+12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+ -f;J[a+32>>2]=0;if(f>>>0>67108863)e=1073741823;else{e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;b:{if(!d)break b;c:{d:{e:{f:{g:{if(f>>>0<32)break g;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((f|0)==65536)break f;if((f|0)==131072){e=J[a+12>>2];c=d+32|0;f=J[a+4>>2];h:{if(e>>>0>>0)break h;g=J[a+8>>2];if(g-c>>>0<2)break h;c=d+34|0;if(c-f>>>0>e>>>0)break h;e=g-c|0;c=K[d+32|0]|K[d+33|0]<<8;c=((c<< -8|c>>>8)&65535)<<1;if(e>>>0>>0)break h;c=J[a+16>>2]-c|0;J[a+16>>2]=c;if((c|0)>0)break f}c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24)}if((c|0)==768)break f;if(K[a+28|0]|!J[a+32>>2])break g;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break g;while(1){H[a+28|0]=1;c=J[a+36>>2];d=J[c+12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0<=67108863){e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}else e=1073741823;J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0; -if(!d)break b;if(f>>>0<32)break g;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);i:{if((f|0)!=131072){if((f|0)!=65536)break i;break f}e=J[a+12>>2];c=d+32|0;f=J[a+4>>2];j:{if(e>>>0>>0)break j;g=J[a+8>>2];if(g-c>>>0<2)break j;c=d+34|0;if(c-f>>>0>e>>>0)break j;e=g-c|0;c=K[d+32|0]|K[d+33|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(e>>>0>>0)break j;c=J[a+16>>2]-c|0;J[a+16>>2]=c;if((c|0)>0)break f}c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24)}if((c|0)==768)break f; -if(K[a+28|0]|!J[a+32>>2])break g;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;e=1;k:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-d>>>0<32)break k;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=0;if((c|0)==65536)break k;l:{if((c|0)!=131072)break l;e=J[a+12>>2];c=d+32|0;f=J[a+4>>2];if(e>>>0>>0)break l;g=J[a+8>>2];if(g-c>>>0<2)break l; -c=d+34|0;if(c-f>>>0>e>>>0)break l;e=g-c|0;c=K[d+32|0]|K[d+33|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(e>>>0>>0)break l;f=J[a+16>>2]-c|0;J[a+16>>2]=f;e=0;if((f|0)>0)break k}e=(K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24))!=768}c=e;d=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(d)break e;if(!c)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+ -8>>2]=0;return b|0}function xE(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;k=xb-16|0;xb=k;a:{b:{c:{d:{e:{j=J[b+8>>2];if(M[b+4>>2]<=j+3>>>0)break e;o=J[a>>2];f=J[b+20>>2];if(f){e=k+12|0;if((Ab[f|0](b,j,e,4)|0)!=4)break e;h=J[b+8>>2];break d}e=J[b>>2];if(e){e=e+j|0;h=j;break d}J[b+8>>2]=j+4;e=2;break c}e=85;break a}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);i=h+4|0;J[b+8>>2]=i;e=2;if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))!=1954115633)break c;f=J[b+4>>2];if(f>>>0<=h+5>>> -0)break b;f:{g:{h:{g=J[b+20>>2];i:{if(g){e=k+12|0;if((Ab[g|0](b,i,e,2)|0)!=2)break b;i=J[b+8>>2];h=J[b+20>>2];break i}e=J[b>>2];if(!e)break h;e=e+i|0;h=0}f=K[e+1|0];e=K[e|0];J[b+8>>2]=i+2;g=i+8|0;p=e<<8|f;if(!h){f=J[b+4>>2];break g}e=85;if(!(Ab[h|0](b,g,0,0)|0))break f;break a}J[b+8>>2]=h+6;g=h+12|0}e=85;if(f>>>0>>0)break a}J[b+8>>2]=g;e=142;if(!p)break a;l=(c|0)>0?c&65535:c;n=-1;j:{k:{l:{while(1){h=J[b+4>>2];if(h>>>0<=g+3>>>0)break l;m:{n:{o:{p:{f=J[b+20>>2];q:{if(f){c=k+12|0;if((Ab[f|0](b,g, -c,4)|0)!=4)break l;g=J[b+8>>2];h=J[b+20>>2];break q}c=J[b>>2];if(!c)break p;c=c+g|0;h=0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+8>>2]=g+4;i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=g+8|0;if(!h){h=J[b+4>>2];break o}if(!(Ab[h|0](b,c,0,0)|0))break n;e=85;break a}J[b+8>>2]=g+4;c=g+8|0;i=0}if(c>>>0<=h>>>0)break m;e=85;break a}h=J[b+4>>2]}J[b+8>>2]=c;r:{s:{t:{if(g+11>>>0>=h>>>0)break t;g=J[b+20>>2];u:{if(g){f=k+12|0;if((Ab[g|0](b,c,f,4)|0)!=4)break t;h=J[b+4>>2];c=J[b+8>>2];break u}f=J[b>> -2];if(!f)break s;f=c+f|0}f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);break r}e=85;break a}f=0}g=c+4|0;J[b+8>>2]=g;v:{w:{x:{if(c+7>>>0>=h>>>0)break x;h=J[b+20>>2];y:{if(h){c=k+12|0;if((Ab[h|0](b,g,c,4)|0)!=4)break x;g=J[b+8>>2];break y}c=J[b>>2];if(!c)break w;c=c+g|0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);break v}e=85;break a}c=0}g=g+4|0;J[b+8>>2]=g;z:{A:{if((i|0)!=1415139377){if((i|0)!=1128875040)break A; -c=c-22|0;f=f+22|0;q=1;if((l|0)<0)break z;n=n+1|0;break A}c=c-24|0;f=f+24|0;q=0;if((l|0)<0)break z;n=n+1|0}if((l|0)==(n|0)&(l|0)>=0)break z;m=m+1|0;if((m|0)==(p|0))break a;continue}break}e=8;h=J[b+4>>2];if(h>>>0>>0|h-f>>>0>>0)break a;m=f+j|0;f=J[b+20>>2];B:{if(f){e=85;if(!(Ab[f|0](b,m,0,0)|0))break B;break a}e=85;if(h>>>0>>0)break a}J[b+8>>2]=m;if((c|0)<=0){e=6;if(c)break a;g=0;e=Dd(b,0,0);if(e)break j;break k}g=Ab[J[o+4>>2]](o,c)|0;if(!g){e=64;break a}f=Nb(g,0,c);e=Dd(b,f,c);if(!e)break k; -Ab[J[o+8>>2]](o,f);break j}e=85;break a}e=gr(a,g,c,l>>31&l,q?10933:11064,d)}if((e&255)!=2)break a}a=e;c=J[b+20>>2];C:{if(c){e=85;if(!(Ab[c|0](b,j,0,0)|0))break C;break a}e=85;if(M[b+4>>2]>>0)break a}J[b+8>>2]=j;e=a;break a}e=85}xb=k+16|0;return e}function Zn(a,b,c){var d=0,e=0,f=0,g=0;d=K[c+52|0]|K[c+53|0]<<8|(K[c+54|0]<<16|K[c+55|0]<<24);H[c+44|0]=d;H[c+45|0]=d>>>8;H[c+46|0]=d>>>16;H[c+47|0]=d>>>24;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[c+12|0]=d;H[c+13|0]=d>>>8;H[c+14|0]=d>>>16;H[c+ -15|0]=d>>>24;a:{b:{if((b|0)<=0){e=c+32|0;break b}e=c+32|0;d=1;while(1){c:{d:{if((d|0)==1){H[c+16|0]=1;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;ei(a,K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24),c);b=b-1|0;break d}if((b|0)<(d|0))break c;H[c+16|0]=d;H[c+17|0]=d>>>8;H[c+18|0]=d>>>16;H[c+19|0]=d>>>24;ei(a,((K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))+d|0)-2|0,c);b=b-d|0}f=K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24);d=f?d+1|0:1;if((b|0)>0)continue;break a}break}d=(K[c+16|0]|K[c+17|0]<<8|(K[c+ -18|0]<<16|K[c+19|0]<<24))+1|0;H[c+16|0]=d;H[c+17|0]=d>>>8;H[c+18|0]=d>>>16;H[c+19|0]=d>>>24;if((b|0)==1)b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);else b=((K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))+b|0)-2|0;ei(a,b,c)}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24)}d=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24);H[c+44|0]=d;H[c+45|0]=d>>>8;H[c+46|0]=d>>>16;H[c+47|0]=d>>>24;if((d|0)<=(f|0)){b=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=b+(K[c+24|0]|K[c+25|0]<<8|(K[c+ -26|0]<<16|K[c+27|0]<<24))|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;b=K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24)|(K[c+56|0]|K[c+57|0]<<8|(K[c+58|0]<<16|K[c+59|0]<<24))<>>8;H[c+66|0]=b>>>16;H[c+67|0]=b>>>24;if((e|0)>=8){f=c+72|0;d=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);while(1){e=d+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330|0]=e>>>16;H[c+331|0]=e>>>24;H[(c+d|0)+72|0]=b;d=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<< -24);if((d|0)>=255){b=J[a+1064>>2];Ab[J[J[b>>2]+44>>2]](b,d&255)|0;b=J[a+1064>>2];Ab[J[J[b>>2]+16>>2]](b,f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0;H[c+331|0]=0;d=0}b=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=b;H[c+65|0]=b>>>8;H[c+66|0]=b>>>16;H[c+67|0]=b>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}a= -K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24)}else a=d;H[c+44|0]=a;H[c+45|0]=a>>>8;H[c+46|0]=a>>>16;H[c+47|0]=a>>>24;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=1;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;a=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);H[c+24|0]=a;H[c+25|0]=a>>>8;H[c+26|0]=a>>>16;H[c+27|0]=a>>>24;a=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);H[c+36|0]=a;H[c+37|0]=a>>>8;H[c+38|0]=a>>>16;H[c+39|0]=a>>>24}} -function Vm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=a+b|0;c=J[a+4>>2];a:{b:{if(c&1)break b;if(!(c&3))break a;c=J[a>>2];b=c+b|0;c:{d:{e:{a=a-c|0;if((a|0)!=J[195276]){if(c>>>0<=255){d=J[a+8>>2];e=J[a+12>>2];if((d|0)!=(e|0))break e;i=781084,j=J[195271]&Opa(-2,c>>>3|0),J[i>>2]=j;break b}h=J[a+24>>2];c=J[a+12>>2];if((c|0)!=(a|0)){d=J[a+8>>2];J[d+12>>2]=c;J[c+8>>2]=d;break c}e=a+20|0;d=J[e>>2];if(!d){d=J[a+16>>2];if(!d)break d;e=a+16|0}while(1){g=e;c=d;e=c+20|0;d=J[e>>2];if(d)continue;e=c+16|0;d=J[c+ -16>>2];if(d)continue;break}J[g>>2]=0;break c}c=J[f+4>>2];if((c&3)!=3)break b;J[195273]=b;J[f+4>>2]=c&-2;J[a+4>>2]=b|1;J[f>>2]=b;return}J[d+12>>2]=e;J[e+8>>2]=d;break b}c=0}if(!h)break b;d=J[a+28>>2];e=(d<<2)+781388|0;f:{if(J[e>>2]==(a|0)){J[e>>2]=c;if(c)break f;i=781088,j=J[195272]&Opa(-2,d),J[i>>2]=j;break b}J[h+(J[h+16>>2]==(a|0)?16:20)>>2]=c;if(!c)break b}J[c+24>>2]=h;d=J[a+16>>2];if(d){J[c+16>>2]=d;J[d+24>>2]=c}d=J[a+20>>2];if(!d)break b;J[c+20>>2]=d;J[d+24>>2]=c}g:{h:{i:{j:{c=J[f+4>>2];if(!(c& -2)){if(J[195277]==(f|0)){J[195277]=a;b=J[195274]+b|0;J[195274]=b;J[a+4>>2]=b|1;if(J[195276]!=(a|0))break a;J[195273]=0;J[195276]=0;return}if(J[195276]==(f|0)){J[195276]=a;b=J[195273]+b|0;J[195273]=b;J[a+4>>2]=b|1;J[a+b>>2]=b;return}b=(c&-8)+b|0;if(c>>>0<=255){e=c>>>3|0;c=J[f+12>>2];d=J[f+8>>2];if((c|0)==(d|0)){i=781084,j=J[195271]&Opa(-2,e),J[i>>2]=j;break h}J[d+12>>2]=c;J[c+8>>2]=d;break h}h=J[f+24>>2];c=J[f+12>>2];if((f|0)!=(c|0)){d=J[f+8>>2];J[d+12>>2]=c;J[c+8>>2]=d;break i}e=f+20|0;d=J[e>>2]; -if(!d){d=J[f+16>>2];if(!d)break j;e=f+16|0}while(1){g=e;c=d;e=c+20|0;d=J[e>>2];if(d)continue;e=c+16|0;d=J[c+16>>2];if(d)continue;break}J[g>>2]=0;break i}J[f+4>>2]=c&-2;J[a+4>>2]=b|1;J[a+b>>2]=b;break g}c=0}if(!h)break h;d=J[f+28>>2];e=(d<<2)+781388|0;k:{if(J[e>>2]==(f|0)){J[e>>2]=c;if(c)break k;i=781088,j=J[195272]&Opa(-2,d),J[i>>2]=j;break h}J[h+(J[h+16>>2]==(f|0)?16:20)>>2]=c;if(!c)break h}J[c+24>>2]=h;d=J[f+16>>2];if(d){J[c+16>>2]=d;J[d+24>>2]=c}d=J[f+20>>2];if(!d)break h;J[c+20>>2]=d;J[d+24>> -2]=c}J[a+4>>2]=b|1;J[a+b>>2]=b;if(J[195276]!=(a|0))break g;J[195273]=b;return}if(b>>>0<=255){c=(b&-8)+781124|0;d=J[195271];b=1<<(b>>>3);l:{if(!(d&b)){J[195271]=b|d;b=c;break l}b=J[c+8>>2]}J[c+8>>2]=a;J[b+12>>2]=a;J[a+12>>2]=c;J[a+8>>2]=b;return}d=31;if(b>>>0<=16777215){c=S(b>>>8|0);d=((b>>>38-c&1)-(c<<1)|0)+62|0}J[a+28>>2]=d;J[a+16>>2]=0;J[a+20>>2]=0;c=(d<<2)+781388|0;m:{e=J[195272];g=1<>2]=a;J[a+24>>2]=c;break n}d=b<<((d|0)!=31?25-(d>>>1|0)|0:0);c=J[c>>2];while(1){e= -c;if((J[c+4>>2]&-8)==(b|0))break m;g=d>>>29|0;d=d<<1;g=c+(g&4)|0;c=J[g+16>>2];if(c)continue;break}J[g+16>>2]=a;J[a+24>>2]=e}J[a+12>>2]=a;J[a+8>>2]=a;return}b=J[e+8>>2];J[b+12>>2]=a;J[e+8>>2]=a;J[a+24>>2]=0;J[a+12>>2]=e;J[a+8>>2]=b}}function xp(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(J[a+200>>2]==(b|0)&J[a+204>>2]==(d|0))break a;J[a+200>>2]=b;J[a+204>>2]=d;d=J[a+4>>2];if(!d)break a;f=Rb(J[a+8>>2],b);J[a+12>>2]=f;J[a+16>>2]=f+32&-64;f=d-1|0;if(!f)break a;d=a+20| -0;while(1){h=Rb(J[d>>2],b);i=J[a+12>>2];j=h-i|0;g=j>>31;g=(g^j)-g>>>0<128?i:h;J[d+4>>2]=g;J[d+8>>2]=g+32&-64;d=d+12|0;f=f-1|0;if(f)continue;break}}b:{if(J[a+404>>2]==(c|0)&J[a+408>>2]==(e|0))break b;J[a+404>>2]=c;J[a+408>>2]=e;b=J[a+208>>2];c:{if(!b)break c;d=Rb(J[a+212>>2],c);J[a+216>>2]=d;J[a+220>>2]=d+32&-64;f=b-1|0;if(!f)break c;d=a+224|0;while(1){g=Rb(J[d>>2],c);h=J[a+216>>2];i=g-h|0;b=i>>31;b=(b^i)-b>>>0<128?h:g;J[d+4>>2]=b;J[d+8>>2]=b+32&-64;d=d+12|0;f=f-1|0;if(f)continue;break}}d=a+2492|0; -if((c|0)<=34359737)b=(P(c,125)|0)>2]<<3;else b=0;H[d|0]=b;d=J[a+2480>>2];d:{if((d|0)<=0)break d;while(1){if((Rb(d,c)|0)<33)break d;b=(d|0)>1;d=d-1|0;if(b)continue;break}d=0}J[a+2484>>2]=d;b=J[a+412>>2];if(b){d=a+416|0;while(1){k=d,l=Rb(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Rb(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Rb(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Rb(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+928>>2];if(b){d=a+932|0;while(1){k=d,l=Rb(J[d+ -8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Rb(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Rb(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Rb(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+1444>>2];if(b){d=a+1448|0;while(1){k=d,l=Rb(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Rb(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Rb(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Rb(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+1960>>2];if(b){d=a+1964|0;while(1){k= -d,l=Rb(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Rb(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Rb(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Rb(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}e:{g=J[a+412>>2];if(!g)break e;d=J[a+1444>>2];if(!d)break e;b=a+1448|0;f=a+416|0;while(1){e=b;f:{if(!d)break f;while(1){i=J[f>>2]-J[e>>2]|0;h=i>>31;if((Rb((h^i)-h|0,c)|0)<=63){J[f+28>>2]=J[e+28>>2];J[f+24>>2]=J[e+24>>2];J[f+16>>2]=J[e+16>>2];J[f+20>>2]=J[e+20>>2];break f}e=e+32|0;d=d- -1|0;if(d)continue;break}}g=g-1|0;if(!g)break e;f=f+32|0;d=J[a+1444>>2];continue}}g=J[a+928>>2];if(!g)break b;d=J[a+1960>>2];if(!d)break b;b=a+1964|0;f=a+932|0;while(1){e=b;g:{if(!d)break g;while(1){i=J[f>>2]-J[e>>2]|0;h=i>>31;if((Rb((h^i)-h|0,c)|0)>=64){e=e+32|0;d=d-1|0;if(d)continue;break g}break}J[f+28>>2]=J[e+28>>2];J[f+24>>2]=J[e+24>>2];J[f+16>>2]=J[e+16>>2];J[f+20>>2]=J[e+20>>2]}g=g-1|0;if(!g)break b;f=f+32|0;d=J[a+1960>>2];continue}}}function ot(a,b,c,d){var e=0,f=0,g=Q(0),h=0,i=0,j=0,k=Q(0), -l=Q(0),m=Q(0),n=Q(0),o=Q(0),p=0,q=0,r=Q(0),s=Q(0),t=Q(0);e=xb-80|0;xb=e;a:{if(M[a+16>>2]<=c>>>0)break a;J[e+76>>2]=0;J[e+68>>2]=0;J[e+72>>2]=0;f=J[a+20>>2];f=J[(f?f:169776)+12>>2];b:{if(K[a+12|0]){h=f+(c<<1)|0;f=K[h|0]|K[h+1|0]<<8;j=((f<<8|f>>>8)&65535)<<1;f=K[h+2|0]|K[h+3|0]<<8;h=((f<<8|f>>>8)&65535)<<1;break b}h=f+(c<<2)|0;f=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);j=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280| -f>>>24)}f=J[d+4>>2];c:{d:{if(h>>>0>=j>>>0){i=J[a+24>>2];i=i?i:169776;if(h>>>0<=M[i+16>>2])break d}J[e+48>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+56>>2]=-1;J[e+60>>2]=0;J[e+52>>2]=169776;break c}i=J[i+12>>2]+j|0;h=h-j|0;j=h>>>0<10?169776:i;q=K[j|0]|K[j+1|0]<<8;p=0;e:{if(!q)break e;p=1;if((q<<8|q>>>8)<<16>>16>0)break e;p=((q|0)==65535)<<1}J[e+60>>2]=p;J[e+56>>2]=c;J[e+52>>2]=j;J[e+48>>2]=0;J[e+44>>2]=h;J[e+40>>2]=i}J[e+32>>2]=0;J[e+16>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[195395]=0;J[e+8>>2]=0;J[e+12>>2]=0; -c=b;b=!f;j=La(733,e+40|0,c|0,a|0,e+68|0,0,0,0,1,1,b|0,e+8|0,0,0,0)|0;a=J[195395];J[195395]=0;f:{g:{h:{i:{if((a|0)!=1){if(!j)break f;a=J[e+72>>2];i=a-4|0;if(b)break g;a=a>>>0>>0?a:i;if(!a){k=N[d+28>>2];l=N[d+20>>2];m=N[d+24>>2];n=N[d+16>>2];break i}b=J[e+76>>2];k=N[d+28>>2];l=N[d+20>>2];m=N[d+24>>2];n=N[d+16>>2];h=P(a,12);c=h-12|0;if((c>>>0)/12&1)a=b;else{o=N[b+4>>2];k=k>=o?k:o;g=N[b>>2];m=g<=m?m:g;l=l<=o?l:o;n=g>=n?n:g;a=b+12|0}if(c>>>0<=11)break i;b=b+h|0;while(1){r=N[a+4>>2];g=k>=r?k:r;s=N[a+ -16>>2];k=g>=s?g:s;t=N[a>>2];g=m>=t?m:t;o=N[a+12>>2];m=g>=o?g:o;g=l<=r?l:r;l=g<=s?g:s;g=n<=t?n:t;n=g<=o?g:o;a=a+24|0;if((b|0)!=(a|0))continue;break}break i}break h}if(k<=l|m<=n){J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;break g}h=J[d>>2];c=K[d+12|0];g=Q(V(Q(n+Q(.5))));j:{if(Q(R(g))>2]=b;g=Q(V(Q(k+Q(.5))));k:{if(Q(R(g))>2]=a;g=Q(V(Q(Q(m-Q(b|0))+Q(.5))));l:{if(Q(R(g))>2]=b;g=Q(V(Q(Q(l-Q(a|0))+Q(.5))));m:{if(Q(R(g))>2]=a;if(!c)break g;J[195395]=0;ri(h,f);a=J[195395];J[195395]=0;if((a|0)!=1)break g}a=Z()|0;if(J[e+68>>2]){J[e+72>>2]=0;Kb(J[e+76>>2])}ba(a|0);B()}d=J[d+8>>2];if(!d)break f;b=P(i,12);c=b+J[e+76>>2]|0;a=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=a;J[d+8>>2]=J[c+8>>2];b=b+J[e+76>>2]|0;J[d+20>>2]=J[b+20>>2];a=J[b+16>>2];J[d+12>>2]=J[b+12>>2];J[d+16>>2]=a;a=J[b+28>>2];J[d+24>>2]=J[b+24>>2];J[d+ -28>>2]=a;J[d+32>>2]=J[b+32>>2];a=J[b+40>>2];J[d+36>>2]=J[b+36>>2];J[d+40>>2]=a;J[d+44>>2]=J[b+44>>2]}if(!J[e+68>>2])break a;J[e+72>>2]=0;Kb(J[e+76>>2])}xb=e+80|0;return j}function Aga(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+408>>2];d=J[a+464>>2];a:{if(J[a+224>>2]){c=J[a+412>>2];b:{c:{d:{if(!b){if(!c)break d;break c}if((b|0)>(c|0)|(c|0)>J[a+432>>2]|J[a+336>>2]!=1)break c}c=J[a+416>>2];e:{if(!c){c=J[a+420>>2];break e}c=c-1|0;if((c|0)!=J[a+420>>2])break c}if((c|0)<14)break b}c=J[a>>2];J[c+24>> -2]=b;J[c+20>>2]=17;J[J[a>>2]+28>>2]=J[a+412>>2];J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];Ab[J[J[a>>2]>>2]](a)}b=J[a+336>>2];if((b|0)>0)while(1){g=J[J[((e<<2)+a|0)+340>>2]+4>>2];f=J[a+160>>2]+(g<<8)|0;c=J[a+408>>2];b=0;f:{if(!c)break f;b=c;if(J[f>>2]>=0)break f;b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=118;J[J[a>>2]+28>>2]=0;Ab[J[J[a>>2]+4>>2]](a,-1);b=J[a+408>>2]}if((b|0)<=J[a+412>>2])while(1){c=f+(b<<2)|0;h=J[c>>2];if(J[a+416>>2]!=(((h|0)>0?h:0)|0)){h=J[a>>2];J[h+24>>2]=g;J[h+20>>2]=118; -J[J[a>>2]+28>>2]=b;Ab[J[J[a>>2]+4>>2]](a,-1)}J[c>>2]=J[a+420>>2];c=J[a+412>>2]>(b|0);b=b+1|0;if(c)continue;break}b=J[a+336>>2];e=e+1|0;if((b|0)>(e|0))continue;break}c=J[a+408>>2];if(!J[a+416>>2]){if(!c){J[d+4>>2]=1445;break a}J[d+4>>2]=1446;break a}if(!c){J[d+4>>2]=1447;break a}J[d+4>>2]=1448;break a}g:{if(!(J[a+420>>2]|(J[a+416>>2]|b))){b=J[a+412>>2];if((b|0)>63|(b|0)==J[a+432>>2])break g}b=J[a>>2];J[b+20>>2]=125;Ab[J[b+4>>2]](a,-1)}J[d+4>>2]=1449;b=J[a+336>>2]}if((b|0)>0){c=0;while(1){g=c<<2;e= -J[(g+a|0)+340>>2];h:{i:{if(J[a+224>>2]){if(J[a+408>>2])break i;if(J[a+416>>2])break h}b=J[e+20>>2];if(b>>>0>=16){f=J[a>>2];J[f+24>>2]=b;J[f+20>>2]=50;Ab[J[J[a>>2]>>2]](a)}f=(b<<2)+d|0;b=J[f+56>>2];if(!b){b=Ab[J[J[a+4>>2]>>2]](a,1,64)|0;J[f+56>>2]=b}H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;H[b+56|0]=0;H[b+57|0]=0;H[b+58|0]=0;H[b+59|0]=0;H[b+60|0]=0;H[b+61|0]=0;H[b+62|0]=0;H[b+63|0]=0;H[b+48|0]=0;H[b+49|0]=0;H[b+50|0]=0;H[b+51|0]=0;H[b+52|0]=0;H[b+53|0]= -0;H[b+54|0]=0;H[b+55|0]=0;H[b+40|0]=0;H[b+41|0]=0;H[b+42|0]=0;H[b+43|0]=0;H[b+44|0]=0;H[b+45|0]=0;H[b+46|0]=0;H[b+47|0]=0;H[b+32|0]=0;H[b+33|0]=0;H[b+34|0]=0;H[b+35|0]=0;H[b+36|0]=0;H[b+37|0]=0;H[b+38|0]=0;H[b+39|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;H[b+29|0]=0;H[b+30|0]=0;H[b+31|0]=0;H[b+16|0]=0;H[b+17|0]=0;H[b+18|0]=0;H[b+19|0]=0;H[b+20|0]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]= -0;b=d+g|0;J[b+36>>2]=0;J[b+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break i;break h}if(!J[a+408>>2])break h}b=J[e+24>>2];if(b>>>0>=16){e=J[a>>2];J[e+24>>2]=b;J[e+20>>2]=50;Ab[J[J[a>>2]>>2]](a)}e=(b<<2)+d|0;b=J[e+120>>2];if(!b){b=Ab[J[J[a+4>>2]>>2]](a,1,256)|0;J[e+120>>2]=b}Nb(b,0,256)}c=c+1|0;if((c|0)>2])continue;break}}J[d+16>>2]=-16;J[d+8>>2]=0;J[d+12>>2]=0;J[d+52>>2]=J[a+280>>2]}function hh(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+344>>2]+1|0;J[a+344>>2]=c;a:{b:{if(c>>>0>2])break b; -if(!K[a+398|0])break a;J[a+344>>2]=0;d=K[a+399|0];c:{if(!(K[a+208|0]&2)){c=d+1|0;b=c&255;if(b>>>0>6)break c;e=K[b+262828|0];g=(e+J[a+320>>2]|0)+(K[b+262821|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+262814|0];b=(f+J[a+324>>2]|0)+(K[b+262807|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+2|0;b=c&255;if(b>>>0>6)break c;e=K[b+262828|0];g=(e+J[a+320>>2]|0)+(K[b+262821|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+262814|0];b=(f+J[a+324>>2]|0)+(K[b+262807|0]^-1)|0;J[a+328>> -2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+3|0;b=c&255;if(b>>>0>6)break c;e=K[b+262828|0];g=(e+J[a+320>>2]|0)+(K[b+262821|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+262814|0];b=(f+J[a+324>>2]|0)+(K[b+262807|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+4|0;b=c&255;if(b>>>0>6)break c;e=K[b+262828|0];g=(e+J[a+320>>2]|0)+(K[b+262821|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+262814|0];b=(f+J[a+324>>2]|0)+(K[b+262807|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0); -if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+5|0;b=c&255;if(b>>>0>6)break c;e=K[b+262828|0];g=(e+J[a+320>>2]|0)+(K[b+262821|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+262814|0];b=(f+J[a+324>>2]|0)+(K[b+262807|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+6|0;b=c&255;if(b>>>0>6)break c;e=K[b+262828|0];g=(e+J[a+320>>2]|0)+(K[b+262821|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+262814|0];b=(f+J[a+324>>2]|0)+(K[b+262807|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>> -0>=f>>>0)break c;c=d+7|0;if(d>>>0<249)break c;b=c&255;e=K[b+262828|0];g=(e+J[a+320>>2]|0)+(K[b+262821|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+262814|0];b=(f+J[a+324>>2]|0)+(K[b+262807|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+8|0;d=c&255;if(d>>>0>6)break c;b=K[d+262828|0];J[a+332>>2]=((b+J[a+320>>2]|0)+(K[d+262821|0]^-1)>>>0)/(b>>>0);b=K[d+262814|0];J[a+328>>2]=((b+J[a+324>>2]|0)+(K[d+262807|0]^-1)>>>0)/(b>>>0);break c}c=d+1|0}H[a+399|0]=c;if((c&255)>>>0>6)break a; -c=J[a+352>>2];if(!c)break b;d=J[a+320>>2];a=P(K[a+403|0],K[a+406|0]);d:{if(a>>>0>=8){a=P(d,a>>>3|0);break d}a=P(a,d)+7>>>3|0}Nb(c,0,a+1|0)}return}c=a+212|0;while(1){e:{d=jg(c,4);if(d){if((d|0)!=1)break e;c=J[a+272>>2];d=J[a+228>>2];if(c>>>0>d>>>0){ye(a,1229209940,J[a+268>>2],c-d|0);c=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=c;J[a+200>>2]=J[a+200>>2]|4}mD(a);J[a+256>>2]=0;return}if(J[a+228>>2])continue;ye(a,1229209940,J[a+268>>2],J[a+272>>2]);d=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]= -d;J[a+200>>2]=J[a+200>>2]|4;continue}break}c=J[a+236>>2];if(!c){gc(a,257218);B()}gc(a,c);B()}function mu(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=Nb(b,0,196);e=K[a+188|0];H[b+8|0]=e;a:{if(!e)break a;if(e>>>0>=4){h=e&252;f=b+12|0;g=a+192|0;while(1){I[f+(c<<1)>>1]=J[g+(c<<2)>>2];j=c|1;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];j=c|2;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];j=c|3;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];c=c+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}e=e&3;if(!e)break a;i=0;while(1){I[(b+(c<<1)|0)+12>>1]=J[((c<<2)+ -a|0)+192>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+189|0];H[b+9|0]=f;b:{if(!f)break b;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+40|0;h=a+248|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break b;while(1){I[(b+(c<<1)|0)+40>>1]=J[((c<<2)+a|0)+248>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+190|0];H[b+10|0]=f;c:{if(!f)break c; -i=0;c=0;if(f>>>0>=4){j=f&252;g=b+60|0;h=a+288|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break c;while(1){I[(b+(c<<1)|0)+60>>1]=J[((c<<2)+a|0)+288>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+191|0];H[b+11|0]=f;d:{if(!f)break d;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+88|0;h=a+344|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2]; -d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break d;while(1){I[(b+(c<<1)|0)+88>>1]=J[((c<<2)+a|0)+344>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}J[b+108>>2]=J[a+384>>2];J[b+112>>2]=J[a+388>>2];J[b+116>>2]=J[a+392>>2];I[b+120>>1]=J[a+396>>2];I[b+122>>1]=J[a+400>>2];f=K[a+404|0];H[b+124|0]=f;e:{if(!f)break e;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+128|0;h=a+408|0;e=0;while(1){I[g+ -(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break e;while(1){I[(b+(c<<1)|0)+128>>1]=J[((c<<2)+a|0)+408>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+405|0];H[b+125|0]=f;f:{if(!f)break f;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+154|0;h=a+460|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+ -(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break f;while(1){I[(b+(c<<1)|0)+154>>1]=J[((c<<2)+a|0)+460>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}H[b+126|0]=K[a+512|0];J[b+184>>2]=J[a+524>>2];J[b+4>>2]=J[a+520>>2]}function Jma(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;j=xb-640|0;xb=j;i=J[b+80>>2];a:{b:{a=c;if(d>>>0<=a>>>0)break b;while(1){e=L[(P(a,20)+i|0)+16>>1];if(1<>>0>=56320:0)break b; -a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if((a|0)==(d|0))break a;g=P(a,20)+i|0;e=L[g+16>>1];c:{if(!(e>>>0<56576|!(1<>>0>=d>>>0)break d;while(1){f=P(e,20)+i|0;h=L[f+16>>1];if((h&65280)!=56320|!(1<>2];switch(f-2250|0){case 2:case 6:case 7:case 8:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:break d; -case 0:case 1:case 3:case 4:case 5:case 9:case 41:break e;default:break f}}h=f-1756|0;if(1<>>0<=12:0)break e;f=f-1620|0;if(f>>>0>4|!(1<>>0>=2)Kd(b,c,e);h=e-a|0;k=P(h,20);l=Mb(j,g,k);f=(c-a|0)+e|0;g=P(c,20)+i|0;qc(P(f,20)+i|0,g,P(a-c|0,20));Mb(g,l,k);if(c>>>0>=f>>>0)break c;if(h&1){h=L[g+16>>1];if(1<>1]=h&255|6400;c=c+1|0}if((a+1|0)!=(e|0))while(1){a=P(c,20)+i|0;g=L[a+16>>1];if(1<< -g&7168)I[a+16>>1]=g&255|6400;g=L[a+36>>1];if(1<>1]=g&255|6400;c=c+2|0;if((f|0)!=(c|0))continue;break}c=f}g:{if(d>>>0<=e>>>0)break g;while(1){a=L[(P(e,20)+i|0)+16>>1];if(1<>>0>=58880:0)break g;e=e+1|0;if((e|0)!=(d|0))continue;break}break a}if((d|0)==(e|0))break a;g=P(e,20)+i|0;a=L[g+16>>1];if(1<>>0>=59136:0)break a;a=e;h:{if(d>>>0<=a>>>0)break h;while(1){f=P(a,20)+i|0;h=L[f+16>>1];if((h&65280)!=58880|!(1<>2];switch(f-2250|0){case 2:case 6:case 7:case 8:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:break h; -case 0:case 1:case 3:case 4:case 5:case 9:case 41:break i;default:break j}}h=f-1756|0;if(1<>>0<=12:0)break i;f=f-1620|0;if(f>>>0>4|!(1<>>0>=2)Kd(b,c,a);b=g;f=a-e|0;g=P(f,20);h=Mb(j,b,g);d=(c-e|0)+a|0;b=P(c,20)+i|0;qc(P(d,20)+i|0,b,P(e-c|0,20));Mb(b,h,g);if(c>>>0>=d>>>0)break a;if(f&1){f=L[b+16>>1];if(1<>1]=f&255|6656;c=c+1|0}if((e+1|0)==(a|0))break a;while(1){a=P(c,20)+i|0;b=L[a+16>>1]; -if(1<>1]=b&255|6656;b=L[a+36>>1];if(1<>1]=b&255|6656;c=c+2|0;if((d|0)!=(c|0))continue;break}}xb=j+640|0}function FH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=0,l=Q(0),m=Q(0),n=Q(0);d=J[b+28>>2];f=J[d+12>>2];i=Q(0);a:{if(!f)break a;h=J[d>>2];e=c;g=J[d+4>>2];if(g){e=sc(g,c);f=J[d+12>>2]}k=e>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;i=Q(0);if(k>>>0>=((g<<8|g>>>8)&65535)>>>0)break a;g=J[d+8>>2];d=h+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d& -65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;k=e&65535;e=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;i=pc(d,k,g,f,e,0)}n=i;e=K[a+4|0]|K[a+5|0]<<8;l=Q((e<<8|e>>>8)<<16>>16);e=K[a+6|0]|K[a+7|0]<<8;i=Q((e<<8|e>>>8)<<16>>16);d=J[b+28>>2];e=J[d+12>>2];b:{if(!e)break b;h=J[d>>2];f=J[d+4>>2];c:{if(f){f=sc(f,(c|0)==-1?-1:c+1|0);e=J[d+12>>2];break c}f=c+1|0}k=f>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;if(k>>>0>=((g<<8|g>>>8)&65535)>>>0)break b; -g=J[d+8>>2];d=h+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;k=f&65535;f=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(f)f=h+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;j=pc(d,k,g,e,f,0)}e=K[a+8|0]|K[a+9|0]<<8;m=Q((e<<8|e>>>8)<<16>>16);i=Q(j+i);d=J[b+28>>2];e=J[d+12>>2];j=Q(0);d:{if(!e)break d;g=J[d>>2];f=J[d+4>>2];e:{if(f){f=sc(f,(c|0)==-1?-1:c+2|0);e=J[d+12>>2];break e}f=c+2|0}c=K[g+6|0]|K[g+ -7|0]<<8;h=(c<<8|c>>>8)&65535;c=f>>>16|0;j=Q(0);if(h>>>0<=c>>>0)break d;d=J[d+8>>2];c=g+(c<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;h=f&65535;f=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(f)g=g+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else g=169776;j=pc(c,h,d,e,g,0)}e=J[b+12>>2];c=J[b+8>>2];j=Q(j+m);f=i!=Q(0)|j!=Q(0);if(f){g=J[c+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[g|0](c,e,Q(1),Q(0),Q(0),Q(1), -i,j,d);e=J[b+12>>2];c=J[b+8>>2]}m=Q(Q(n+l)*Q(6.103515625E-5));if(m!=Q(0)){l=Q(m*Q(3.1415927410125732));n=Ym(l);d=J[c+68>>2];g=J[c+12>>2];l=bn(l);Ab[g|0](c,e,l,n,Q(-n),l,Q(0),Q(0),d?J[d>>2]:0);e=J[b+12>>2];c=J[b+8>>2]}if(f){g=J[c+12>>2];i=Q(-i);j=Q(-j);d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[g|0](c,e,Q(1),Q(0),Q(0),Q(1),i,j,d)}c=J[b+104>>2];f:{if((c|0)<=0)break f;e=J[b+108>>2];if((e|0)<=0)break f;d=K[a+3|0];g=K[a+2|0];h=K[a+1|0];J[b+108>>2]=e-1;J[b+104>>2]=c-1;c=a;a=d|(h<<16|g<<8);Re(a?c+a|0:169776, -b);J[b+104>>2]=J[b+104>>2]+1}if(f){a=J[b+8>>2];e=J[a+16>>2];g=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[e|0](a,g,c)}if(m!=Q(0)){a=J[b+8>>2];e=J[a+16>>2];g=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[e|0](a,g,c)}if(f){a=J[b+8>>2];c=J[a+16>>2];e=J[b+12>>2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,e,b)}}function hy(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=xb-48|0;xb=g;Jh(a,g+36|0);j=J[g+44>>2];a:{if(!j){e=3; -break a}h=J[g+36>>2];J[g+32>>2]=h;i=J[g+40>>2];b:{c:{d:{f=J[b+8>>2];if((f|0)==7){e=J[a+8>>2];J[a+8>>2]=i-1;m=1;f=J[a>>2];J[a>>2]=h+1;Jh(a,g);J[a+8>>2]=e;J[a>>2]=f;e=3;if(J[g+8>>2]==3)break d;f=7;break b}e=3;if((j|0)==3)break c;m=1;break b}if(!d)break a;J[g+32>>2]=h+1;i=i-1|0;f=8;n=1;break b}if(!d)break a;n=1;J[g+32>>2]=h+1;i=i-1|0;m=d}r=P(d,3);o=d<<2;s=f-1|0;t=j-2|0;p=d<<3;e:{while(1){e=J[(n<<2)+c>>2];h=J[b+16>>2];ae(g+32|0,i);j=e+h|0;e=3;f:{g:{h:{i:{j:{k:switch(s|0){case 0:f=J[g+32>>2];h=f;l:{if(K[f| -0]!=116|f+3>>>0>=i>>>0|(K[f+1|0]!=114|K[f+2|0]!=117))break l;if(K[f+3|0]!=101)break l;e=1;J[g+32>>2]=f+5;break j}e=0;m:{if(K[f|0]!=102|f+4>>>0>=i>>>0|(K[f+1|0]!=97|K[f+2|0]!=108))break m;if(K[h+3|0]!=115)break m;f=(K[f+4|0]==101?6:0)+f|0}J[g+32>>2]=f;break j;case 2:e=If(g+32|0,i,0);break j;case 3:e=If(g+32|0,i,3);break j;case 7:break g;case 6:break h;case 4:case 5:break i;case 1:break k;default:break a}k=J[g+32>>2];J[g>>2]=k;h=wg(g,i,10);e=0;f=J[g>>2];if((k|0)==(f|0))break j;if(!(K[f|0]!=35|f>>>0>= -i>>>0)){k=f+1|0;J[g>>2]=k;h=wg(g,i,h);f=J[g>>2];if((k|0)==(f|0))break j}J[g+32>>2]=f;e=h}n:switch(K[b+20|0]-1|0){case 0:H[j|0]=e;break f;case 1:I[j>>1]=e;break f;default:break n}J[j>>2]=e;break f}h=J[g+32>>2];if(h>>>0>=i>>>0)break f;f=i-h|0;k=J[a+16>>2];o:{p:switch(t|0){case 2:h=h+1|0;J[g+32>>2]=h;f=f-1|0;break o;case 0:break p;default:break a}h=h+1|0;J[g+32>>2]=h;f=f-2|0}e=J[j>>2];if(e){if(e)Ab[J[k+8>>2]](k,e);J[j>>2]=0}k=tc(k,f+1|0,g+28|0);e=J[g+28>>2];if(e)break a;e=Mb(k,h,f);H[e+f|0]=0;J[j>>2]= -e;break f}if((Fj(g+32|0,i,4,g,0)|0)>=4){e=J[g>>2];J[j>>2]=((e>>31)+e|0)+32768&-65536;e=J[g+4>>2];J[j+4>>2]=((e>>31)+e|0)+32768&-65536;e=J[g+8>>2];J[j+8>>2]=((e>>31)+e|0)+32768&-65536;e=J[g+12>>2];J[j+12>>2]=((e>>31)+e|0)+32768&-65536;break f}break a}j=J[a+16>>2];h=Tb(j,4,0,o,0,g+28|0);e=J[g+28>>2];if(e)break a;e=g+32|0;f=Fj(e,i,d,h,0);if((f|0)<0|d>>>0>f>>>0)break e;ae(e,i);f=Fj(e,i,d,h+o|0,0);if((f|0)<0|d>>>0>f>>>0)break e;ae(e,i);f=Fj(e,i,d,h+p|0,0);if((f|0)<0|d>>>0>f>>>0)break e;ae(e,i);q=r<<2; -f=Fj(e,i,d,h+q|0,0);if((f|0)<0|d>>>0>f>>>0)break e;ae(e,i);f=0;if(d)while(1){k=f<<2;e=J[k+c>>2];k=h+k|0;l=J[k>>2];J[e>>2]=((l>>31)+l|0)+32768&-65536;l=J[k+o>>2];J[e+4>>2]=((l>>31)+l|0)+32768&-65536;l=J[k+p>>2];J[e+8>>2]=((l>>31)+l|0)+32768&-65536;l=e;e=J[k+q>>2];J[l+12>>2]=((e>>31)+e|0)+32768&-65536;f=f+1|0;if((f|0)!=(d|0))continue;break}if(h)Ab[J[j+8>>2]](j,h)}n=n+1|0;m=m-1|0;if(m)continue;break}e=0;break a}J[g+28>>2]=3;if(h)Ab[J[j+8>>2]](j,h);e=J[g+28>>2]}xb=g+48|0;return e|0}function uN(a,b,c, -d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=xb-160|0;xb=i;a:{b:{if(Zb(a,24256,13))break b;c:switch(K[a+13|0]){case 0:case 9:case 10:case 13:case 32:break c;default:break b}a=J[e+32>>2];d:{e:{if(!a|!J[a+72>>2])break e;if(!Pe(12084,J[a+92>>2]))break e;if(J[a+80>>2])break d}b=J[e+32>>2];a=I[b+12>>1];J[b+40>>2]=a;J[i+16>>2]=a;a=i+32|0;Md(a,12020,i+16|0);c=Bi(J[e+32>>2],12084,a);if(c)break a}a=J[e+32>>2];f:{g:{if(!a|!J[a+72>>2])break g;if(!Pe(12180,J[a+92>>2]))break g; -if(J[a+80>>2])break f}b=J[e+32>>2];a=I[b+14>>1];J[b+44>>2]=a;J[i>>2]=a;a=i+32|0;Md(a,12020,i);c=Bi(J[e+32>>2],12180,a);if(c)break a}J[e>>2]=J[e>>2]&-17;J[d>>2]=4;c=0;break a}h:{if(Zb(a,24270,21))break h;c=0;switch(K[a+21|0]){case 0:case 9:case 10:case 13:case 32:break a;default:break h}}i:{if(Zb(a,11158,7))break i;c=a+7|0;j:switch(K[a+7|0]){case 9:case 10:case 13:case 32:H[a+7|0]=0;c=a+8|0;break;case 0:break j;default:break i}c=Bi(J[e+32>>2],a,c);break a}g=J[e+32>>2];c=a;k:{while(1){l:{f=-1;m:{n:{d= -K[c|0];switch(d|0){case 0:break k;case 9:break l;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break m;default:break n}}if((d|0)==32)break l}c=c+1|0;continue}break}H[c|0]=0;f=d}d=0;o:{if(!a|!K[a|0])break o;j=Pe(a,g+112|0);if(!j)break o;d=J[j>>2];if(d>>>0>=83){d=(J[g+104>>2]+(d<<4)|0)-1328|0;break o}d=(d<<4)+21680|0}if((f|0)!=-1)H[c|0]=f;if(!(J[d+4>>2]!=1?d:0)){if(K[c|0]){H[c|0]=0;c=c+1|0}f=a+b|0;while(1){b=K[c|0];if(!((b|0)!=32&(b|0)!=9)){c=c+1|0;continue}break}b=((b|0)==34)+c|0;p:{if(b>>> -0>=f>>>0)break p;while(1){q:{r:{f=f-1|0;switch(K[f|0]-9|0){case 25:break q;case 0:case 23:break r;default:break p}}H[f|0]=0;if(b>>>0>>0)continue;break p}break}H[f|0]=0}c=Bi(J[e+32>>2],a,b);break a}c=Df(e+40|0,11510,a,b);if(c)break a;l=J[J[e+40>>2]>>2];d=0;s:{t:{u:{a=J[e+48>>2];switch(a|0){case 0:break s;case 1:break u;default:break t}}J[e+48>>2]=0;break s}g=a-1|0;j=g&3;b=0;c=1;if(a-2>>>0>=3){m=g&-4;while(1){f=J[e+40>>2];a=d<<2;n=f+a|0;h=f;f=c<<2;J[n>>2]=J[h+f>>2];h=J[e+40>>2];J[h+(a|4)>>2]=J[(f+ -h|0)+4>>2];h=J[e+40>>2];J[h+(a|8)>>2]=J[(f+h|0)+8>>2];h=a|12;a=J[e+40>>2];J[h+a>>2]=J[(a+f|0)+12>>2];c=c+4|0;d=d+4|0;k=k+4|0;if((m|0)!=(k|0))continue;break}}if(j)while(1){a=J[e+40>>2];J[a+(d<<2)>>2]=J[a+(c<<2)>>2];c=c+1|0;d=d+1|0;b=b+1|0;if((j|0)!=(b|0))continue;break}J[e+48>>2]=g;if(!g){d=0;break s}a=J[J[e+40>>2]>>2];c=0;b=0;while(1){d=J[J[e+40>>2]+(b<<2)>>2];f=K[d|0];if(f){while(1){H[a+c|0]=f;c=c+1|0;f=K[d+1|0];d=d+1|0;if(f)continue;break}g=J[e+48>>2]}b=b+1|0;if(g>>>0>b>>>0){H[a+c|0]=32;g=J[e+48>> -2];c=c+1|0}if(b>>>0>>0)continue;break}d=24081;if((a|0)==24081)break s;H[a+c|0]=0;d=a}c=Bi(J[e+32>>2],l,d)}xb=i+160|0;return c|0}function GH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=0,l=Q(0),m=Q(0),n=Q(0);d=J[b+28>>2];f=J[d+12>>2];j=Q(0);a:{if(!f)break a;h=J[d>>2];e=c;g=J[d+4>>2];if(g){e=sc(g,c);f=J[d+12>>2]}k=e>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;j=Q(0);if(k>>>0>=((g<<8|g>>>8)&65535)>>>0)break a;g=J[d+8>>2];d=h+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d&65280)<< -8|(d>>>8&65280|d>>>24))|0;else d=169776;k=e&65535;e=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;j=pc(d,k,g,f,e,0)}e=K[a+4|0]|K[a+5|0]<<8;m=Q((e<<8|e>>>8)<<16>>16);e=K[a+6|0]|K[a+7|0]<<8;l=Q((e<<8|e>>>8)<<16>>16);d=J[b+28>>2];e=J[d+12>>2];b:{if(!e)break b;h=J[d>>2];f=J[d+4>>2];c:{if(f){f=sc(f,(c|0)==-1?-1:c+1|0);e=J[d+12>>2];break c}f=c+1|0}k=f>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;if(k>>>0>=((g<<8|g>>>8)&65535)>>>0)break b;g=J[d+8>>2]; -d=h+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;k=f&65535;f=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(f)f=h+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;i=pc(d,k,g,e,f,0)}e=K[a+8|0]|K[a+9|0]<<8;n=Q((e<<8|e>>>8)<<16>>16);l=Q(i+l);d=J[b+28>>2];e=J[d+12>>2];i=Q(0);d:{if(!e)break d;g=J[d>>2];f=J[d+4>>2];e:{if(f){f=sc(f,(c|0)==-1?-1:c+2|0);e=J[d+12>>2];break e}f=c+2|0}c=K[g+6|0]|K[g+7|0]<<8;h=(c<< -8|c>>>8)&65535;c=f>>>16|0;i=Q(0);if(h>>>0<=c>>>0)break d;d=J[d+8>>2];c=g+(c<<2)|0;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;h=f&65535;f=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(f)g=g+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else g=169776;i=pc(c,h,d,e,g,0)}e=J[b+12>>2];c=J[b+8>>2];i=Q(i+n);f=l!=Q(0)|i!=Q(0);if(f){g=J[c+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[g|0](c,e,Q(1),Q(0),Q(0),Q(1),l,i,d);e=J[b+ -12>>2];c=J[b+8>>2]}j=Q(Q(j+m)*Q(6.103515625E-5));if(j!=Q(1)){g=J[c+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[g|0](c,e,j,Q(0),Q(0),j,Q(0),Q(0),d);e=J[b+12>>2];c=J[b+8>>2]}if(f){g=J[c+12>>2];l=Q(-l);i=Q(-i);d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[g|0](c,e,Q(1),Q(0),Q(0),Q(1),l,i,d)}c=J[b+104>>2];f:{if((c|0)<=0)break f;e=J[b+108>>2];if((e|0)<=0)break f;d=K[a+3|0];g=K[a+2|0];h=K[a+1|0];J[b+108>>2]=e-1;J[b+104>>2]=c-1;c=a;a=d|(h<<16|g<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}if(f){a=J[b+ -8>>2];e=J[a+16>>2];g=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[e|0](a,g,c)}if(j!=Q(1)){a=J[b+8>>2];e=J[a+16>>2];g=J[b+12>>2];c=J[a+68>>2];if(c)c=J[c+4>>2];else c=0;Ab[e|0](a,g,c)}if(f){a=J[b+8>>2];c=J[a+16>>2];e=J[b+12>>2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,e,b)}}function mJ(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;l=xb-16|0;xb=l;a=J[c>>2];a:{if(!b){if(!a)break a;b=J[a>>2];if(!b)break a;J[a>>2]=b+1;break a}m=b<<24|(b&65280)<<8|(b>>>8&65280| -b>>>24);h=169776;a=M[a+16>>2]<4?169776:J[a+12>>2];n=L[c+4>>1];g=l+12|0;if(g)J[g>>2]=0;b:{c:{d:{e:{f:{d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if((d|0)<=1953658212){if((d|0)==256)break f;if((d|0)!=65536)break e;break b}if((d|0)==1953658213|(d|0)==1954115633)break b;if((d|0)!=1953784678)break d;e=169776;d=K[a+4|0]|K[a+5|0]<<8;if(((d<<8|d>>>8)&65535)-1>>>0>1)break c;d=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);d=n>>>0>=(d<<24|(d&65280)<<8|(d>>> -8&65280|d>>>24))>>>0?169776:(a+(n<<2)|0)+12|0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!d)break c;a=a+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;break b}d=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);i=a+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;d=K[i+24|0]|K[i+25|0]<<8;d=((d<<8|d>>>8)&65535)+i|0;d=K[d|0]|K[d+1|0]<<8;j=(d<<8|d>>>8)&65535;k=a+256|0;g:{while(1){h:{d=K[i+24|0]|K[i+25|0]<<8;f=i+((d<<8|d>>>8)&65535)|0;d=K[f|0]|K[f+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>>0)d=169776;else d= -(f+(e<<3)|0)+2|0;if((K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24))!=1953392243)break h;f=K[d+4|0]|K[d+5|0]<<8;if(n>>>0>((f<<8|f>>>8)&65535)>>>0)break h;e=K[i+24|0]|K[i+25|0]<<8;f=i+((e<<8|e>>>8)&65535)|0;e=K[d+6|0]|K[d+7|0]<<8;e=(f+((e<<8|e>>>8)&65535)|0)+P(n,12)|0;e=((K[e+6|0]<<8|K[e+5|0]<<16|K[e+7|0])+k|0)+4|0;break g}d=(e|0)!=(j|0);e=e+1|0;if(d)continue;break}e=169776}if(!g)break c;J[g>>2]=e-a;a=e;break b}e=a;if((d|0)==1330926671)break c}e=169776}a=e}e=a;g=a+12|0;i:{j:{a=K[a+4|0]|K[a+5|0]<<8; -k=(a<<8|a>>>8)&65535;if(k>>>0<=15){if(!a)break i;a=0;d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>=b>>>0&(d|0)==(m|0))break j;while(1){a=a+1|0;if((k|0)==(a|0))break i;d=g+(a<<4)|0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>>0|(d|0)!=(m|0))continue;break}break j}if(!a)break i;f=k-1|0;while(1){a=f+o>>>1|0;d=g+(a<<4)|0;j=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=(j<<24|(j&65280)<<8|(j>>> -8&65280|j>>>24))>>>0>>0;k:{if(!(d|(j|0)==(m|0))){f=a-1|0;break k}if(!d&(j|0)==(m|0))break j;o=a+1|0}if((f|0)>=(o|0))continue;break}break i}if(a>>>0>=k>>>0)break i;h=(e+(a<<4)|0)+12|0}a=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);b=J[l+12>>2]+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;a=K[h+12|0]|K[h+13|0]<<8|(K[h+14|0]<<16|K[h+15|0]<<24);a=tj(J[c>>2],b,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))}xb=l+16|0;return a|0}function Zga(a){a=a|0;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;s=J[a+480>>2];J[a+136>>2]=J[s+16>>2];j=J[s+20>>2];l=Ab[J[J[a+4>>2]>>2]](a,1,j<<5)|0;J[l+16>>2]=0;J[l+20>>2]=31;J[l+8>>2]=0;J[l+12>>2]=63;J[l>>2]=0;J[l+4>>2]=31;Tr(J[J[a+480>>2]+24>>2],l);k=1;a:{if((j|0)<2)break a;while(1){b:{c:{d:{if((j|0)>=k<<1){if(q)break d;c=0;d=0;b=l;break c}h=0;c=0;d=0;b=l;if(q>>>0>=3){g=k&2147483644;f=0;while(1){m=c;c=J[b+24>>2];e=(c|0)>(d|0);i=J[b+56>>2];c=e?c:d;d=(i|0)>(c|0);m=d?b+32|0:e?b:m;e=J[b+88>>2];c=d?i:c;d=(e| -0)>(c|0);m=d?b- -64|0:m;i=J[b+120>>2];d=d?e:c;e=(i|0)>(d|0);c=e?b+96|0:m;d=e?i:d;b=b+128|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}f=k&3;if(!f)break b;while(1){g=J[b+24>>2];e=(g|0)>(d|0);c=e?b:c;d=e?g:d;b=b+32|0;h=h+1|0;if((f|0)!=(h|0))continue;break}break b}f=k&2147483646;c=0;d=0;b=l;h=0;while(1){g=J[b+28>>2];if((g|0)>(d|0)){e=J[b+24>>2]>0;c=e?b:c;d=e?g:d}g=J[b+60>>2];if((g|0)>(d|0)){e=J[b+56>>2]>0;c=e?b+32|0:c;d=e?g:d}b=b- -64|0;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(k&1)|J[b+28>>2]<=(d|0))break b; -c=J[b+24>>2]>0?b:c}if(!c)break a;b=(k<<5)+l|0;h=J[c+4>>2];J[b+4>>2]=h;d=J[c+12>>2];J[b+12>>2]=d;f=J[c+20>>2];J[b+20>>2]=f;g=J[c>>2];J[b>>2]=g;e=J[c+8>>2];J[b+8>>2]=e;i=J[c+16>>2];J[b+16>>2]=i;e:{f:{g:{h:{i:{n=h-g<<4;p=P(d-e|0,12);switch((f-i<<3>(((n|0)>(p|0)?n:p)|0)?2:(n|0)<=(p|0))|0){case 2:break g;case 1:break h;case 0:break i;default:break e}}d=(g+h|0)/2|0;J[c+4>>2]=d;m=b;break f}d=(d+e|0)/2|0;J[c+12>>2]=d;m=b+8|0;break f}d=(f+i|0)/2|0;J[c+20>>2]=d;m=b+16|0}J[m>>2]=d+1}Tr(J[J[a+480>>2]+24>>2], -c);Tr(J[J[a+480>>2]+24>>2],b);q=q+1|0;k=k+1|0;if((j|0)!=(k|0))continue;break}k=j}n=0;while(1){f=0;g=0;e=0;i=0;b=(n<<5)+l|0;p=J[b>>2];v=J[b+4>>2];j:{if((p|0)>(v|0))break j;w=J[b+12>>2];d=J[b+8>>2];if((w|0)<(d|0))break j;r=J[b+20>>2];j=J[b+16>>2];if((r|0)<(j|0))break j;y=J[J[a+480>>2]+24>>2];q=j+1|0;z=j<<3|4;A=(r-j|0)+1&1;while(1){t=p<<3|4;m=J[(p<<2)+y>>2];h=d;while(1){c=((h<<6)+m|0)+(j<<1)|0;u=h<<2|2;k:{if(!A){b=c;c=j;break k}b=c+2|0;c=L[c>>1];if(c){i=P(c,z)+i|0;e=P(c,u)+e|0;g=P(c,t)+g|0;f=c+f|0}c= -q}if((j|0)!=(r|0))while(1){o=L[b>>1];if(o){e=P(o,u)+e|0;g=P(o,t)+g|0;i=P(o,c<<3|4)+i|0;f=f+o|0}x=c+1|0;o=L[b+2>>1];if(o){e=P(o,u)+e|0;g=P(o,t)+g|0;i=P(o,x<<3|4)+i|0;f=f+o|0}b=b+4|0;c=c+2|0;if((r|0)!=(x|0))continue;break}b=(h|0)!=(w|0);h=h+1|0;if(b)continue;break}b=(p|0)!=(v|0);p=p+1|0;if(b)continue;break}}b=f>>1;H[J[J[a+136>>2]>>2]+n|0]=(b+g|0)/(f|0);H[J[J[a+136>>2]+4>>2]+n|0]=(b+e|0)/(f|0);H[J[J[a+136>>2]+8>>2]+n|0]=(b+i|0)/(f|0);n=n+1|0;if((n|0)!=(k|0))continue;break}J[a+132>>2]=k;b=J[a>>2];J[b+ -24>>2]=k;J[b+20>>2]=98;Ab[J[J[a>>2]+4>>2]](a,1);J[s+28>>2]=1}function gI(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[a-20>>2];e=vc(1,28);if(e)a:{c=xb-48|0;xb=c;J[e+20>>2]=0;J[e+24>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[195395]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;I[c+44>>1]=0;J[c+40>>2]=65536;a=_(584,f|0)|0;b=J[195395];J[195395]=0;b:{if((b|0)==1)break b;J[c+40>>2]=a; -J[195395]=0;H[c+44|0]=1;a=ca(585,f|0,1752003704)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;c:{if(!a)break c;b=J[a>>2];if(!b)break c;J[a>>2]=b+1}b=J[195395];J[195395]=0;if((b|0)==1)break b;H[c+28|0]=0;J[c+36>>2]=a;d=J[a+12>>2];J[c+4>>2]=d;b=J[a+16>>2];J[c+12>>2]=b;J[c+8>>2]=b+d;J[c+32>>2]=0;if(b>>>0>67108863)b=1073741823;else{b=b<<6;b=b>>>0<=16384?16384:b;b=b>>>0>=1073741823?1073741823:b}J[c+16>>2]=b;J[c+24>>2]=0;J[c>>2]=0;J[195395]=0;ea(583,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break b; -J[c+36>>2]=0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;if(d){J[195395]=0;if(J[a+4>>2])J[a+4>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break b}J[e+20>>2]=a;J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[195395]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;I[c+44>>1]=0;J[c+40>>2]=65536;a=_(584,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[c+40>>2]=a;J[195395]=0;H[c+44|0]=1;a=ca(585,f|0,1213612370)| -0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;a=ca(746,c|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[e+24>>2]=a;d:{e:{a=J[c+36>>2];if(a){J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break e}i=e,j=Qo(f)>>>1|0,J[i+16>>2]=j;a=J[e+20>>2];d=J[(a?a:169776)+16>>2];h=d&-2;a=f- -64|0;while(1){b=J[a>>2];if(b)break d;if(!J[f+48>>2]){b=169776;break d}b=qj(a);if(!b)b=169776;g=J[a>>2];J[a>>2]=g?g:b;if(!g)break d;wc(b);continue}}ga(0)|0;_b();B()}a=M[b+16>>2]<36?169776:J[b+12>> -2];a=K[a+34|0]|K[a+35|0]<<8;a=(a<<8|a>>>8)&65535;g=a<<2;if(h>>>0>>0){g=d&-4;a=d>>>2|0}J[e>>2]=a;a=f+56|0;while(1){f:{b=J[a>>2];if(b)break f;if(!J[f+48>>2]){b=169776;break f}b=qt(a);if(!b)b=169776;d=J[a>>2];J[a>>2]=d?d:b;if(!d)break f;wc(b);continue}break}a=M[b+16>>2]<6?169776:J[b+12>>2];a=K[a+4|0]|K[a+5|0]<<8;d=(a<<8|a>>>8)&65535;J[e+4>>2]=d;a=d;b=J[e>>2];if(a>>>0>>0)a=b;h=h-g|0;g=h>>>0>=a-b<<1>>>0;if(!g)a=b+(h>>>1|0)|0;if(!(g&b>>>0<=d>>>0))J[e+4>>2]=a;if(b)d=a;else{J[e>>2]=0;J[e+4>>2]=0;d= -0}b=d+((b+(h>>>1|0)|0)-a&2147483647)|0;J[e+8>>2]=b;a=J[f+32>>2];if((a|0)==-1){a=Qe(f);b=J[e+8>>2]}J[e+12>>2]=a>>>0>b>>>0?a:b;xb=c+48|0;break a}a=Z()|0;ed(c);ba(a|0);B()}return e}function Ko(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[a-48>>2];e=vc(1,28);if(e)a:{c=xb-48|0;xb=c;J[e+20>>2]=0;J[e+24>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[195395]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+ -36>>2]=0;I[c+44>>1]=0;J[c+40>>2]=65536;a=_(584,f|0)|0;b=J[195395];J[195395]=0;b:{if((b|0)==1)break b;J[c+40>>2]=a;J[195395]=0;H[c+44|0]=1;a=ca(585,f|0,1986884728)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;c:{if(!a)break c;b=J[a>>2];if(!b)break c;J[a>>2]=b+1}b=J[195395];J[195395]=0;if((b|0)==1)break b;H[c+28|0]=0;J[c+36>>2]=a;d=J[a+12>>2];J[c+4>>2]=d;b=J[a+16>>2];J[c+12>>2]=b;J[c+8>>2]=b+d;J[c+32>>2]=0;if(b>>>0>67108863)b=1073741823;else{b=b<<6;b=b>>>0<=16384?16384:b;b=b>>>0>=1073741823? -1073741823:b}J[c+16>>2]=b;J[c+24>>2]=0;J[c>>2]=0;J[195395]=0;ea(583,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[c+36>>2]=0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;if(d){J[195395]=0;if(J[a+4>>2])J[a+4>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break b}J[e+20>>2]=a;J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[195395]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;I[c+44>>1]=0;J[c+40>>2]=65536; -a=_(584,f|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[c+40>>2]=a;J[195395]=0;H[c+44|0]=1;a=ca(585,f|0,1448493394)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;a=ca(749,c|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[e+24>>2]=a;d:{e:{a=J[c+36>>2];if(a){J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break e}i=e,j=Qo(f),J[i+16>>2]=j;a=J[e+20>>2];d=J[(a?a:169776)+16>>2];h=d&-2;a=f+92|0;while(1){b=J[a>>2];if(b)break d;if(!J[f+48>>2]){b=169776;break d}b=pj(a);if(!b)b= -169776;g=J[a>>2];J[a>>2]=g?g:b;if(!g)break d;wc(b);continue}}ga(0)|0;_b();B()}a=M[b+16>>2]<36?169776:J[b+12>>2];a=K[a+34|0]|K[a+35|0]<<8;a=(a<<8|a>>>8)&65535;g=a<<2;if(h>>>0>>0){g=d&-4;a=d>>>2|0}J[e>>2]=a;a=f+56|0;while(1){f:{b=J[a>>2];if(b)break f;if(!J[f+48>>2]){b=169776;break f}b=qt(a);if(!b)b=169776;d=J[a>>2];J[a>>2]=d?d:b;if(!d)break f;wc(b);continue}break}a=M[b+16>>2]<6?169776:J[b+12>>2];a=K[a+4|0]|K[a+5|0]<<8;d=(a<<8|a>>>8)&65535;J[e+4>>2]=d;a=d;b=J[e>>2];if(a>>>0>>0)a=b;h=h-g|0;g=h>>> -0>=a-b<<1>>>0;if(!g)a=b+(h>>>1|0)|0;if(!(g&b>>>0<=d>>>0))J[e+4>>2]=a;if(b)d=a;else{J[e>>2]=0;J[e+4>>2]=0;d=0}b=d+((b+(h>>>1|0)|0)-a&2147483647)|0;J[e+8>>2]=b;a=J[f+32>>2];if((a|0)==-1){a=Qe(f);b=J[e+8>>2]}J[e+12>>2]=a>>>0>b>>>0?a:b;xb=c+48|0;break a}a=Z()|0;ed(c);ba(a|0);B()}return e}function Tfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;y=xb-256|0;xb=y;r=J[a+332>>2];b=J[b+84>>2];a=y;n=8;while(1){a:{b:{f= -L[c+32>>1];g=I[c+16>>1];if((f|g)&65535)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;f=P(I[c>>1],J[b>>2])<<2;J[a+192>>2]=f;J[a+160>>2]=f;J[a+128>>2]=f;J[a+96>>2]=f;J[a+64>>2]=f;J[a+32>>2]=f;J[a>>2]=f;g=56;break a}o=P(J[b+192>>2],I[c+96>>1]);j=P(J[b+64>>2],f<<16>>16);f=P(o+j|0,4433);g=P(g,J[b+32>>2]);i=P(J[b+224>>2],I[c+112>>1]);t=P(g+i|0,-7373);k=P(J[b+160>>2],I[c+80>>1]);p=k+g|0;l=P(J[b+96>>2],I[c+48>>1]);h=l+i|0;m=P(p+h|0,9633);w=P(I[c+64>>1],J[b+128>> -2])<<13;s=P(I[c>>1],J[b>>2])<<13|1024;q=w+s|0;j=f+P(j,6270)|0;x=q+j|0;u=t+P(g,12299)|0;g=m+P(p,-3196)|0;p=u+g|0;J[a+224>>2]=x-p>>11;J[a>>2]=p+x>>11;p=s-w|0;f=f+P(o,-15137)|0;o=p+f|0;m=m+P(h,-16069)|0;h=P(l,25172);l=P(k+l|0,-20995);h=m+(h+l|0)|0;J[a+192>>2]=o-h>>11;J[a+32>>2]=h+o>>11;f=p-f|0;g=g+(l+P(k,16819)|0)|0;J[a+160>>2]=f-g>>11;J[a+64>>2]=f+g>>11;f=m+(t+P(i,2446)|0)|0;g=q-j|0;J[a+96>>2]=f+g>>11;f=g-f>>11;g=32}J[(g<<2)+a>>2]=f;c=c+2|0;b=b+4|0;a=a+4|0;f=n>>>0>1;n=n-1|0;if(f)continue;break}a=r+ -128|0;b=y;t=0;while(1){f=J[b+12>>2];n=J[b+4>>2];l=P(f+n|0,11086);m=J[b+8>>2];r=J[b+24>>2];j=m-r|0;o=P(j,11363);c=J[(t<<2)+d>>2]+e|0;i=J[b+28>>2];w=P(i+n|0,8956);g=J[b+20>>2];p=g+n|0;h=P(p,10217);s=w+(h+(l+P(n,-18730)|0)|0)|0;q=J[b+16>>2];x=P(q,10703);k=(J[b>>2]<<13)+131072|0;A=x+k|0;B=o+P(r,20995)|0;u=A+B|0;H[c|0]=K[a+(s+u>>>18&1023)|0];H[c+15|0]=K[a+(u-s>>>18&1023)|0];j=P(j,2260);s=j+P(m,7373)|0;q=P(q,4433);u=q+k|0;v=s+u|0;C=P(f+g|0,1136);z=C+(l+P(f,589)|0)|0;l=f+i|0;D=P(l,-5461);z=z+D|0;H[c+1|0]= -K[a+(v+z>>>18&1023)|0];H[c+14|0]=K[a+(v-z>>>18&1023)|0];v=h+(P(g,-9222)+C|0)|0;h=P(g+i|0,-11086);v=v+h|0;m=o+P(m,-4926)|0;o=k-q|0;q=m+o|0;H[c+2|0]=K[a+(v+q>>>18&1023)|0];H[c+13|0]=K[a+(q-v>>>18&1023)|0];h=h+(w+(D+P(i,8728)|0)|0)|0;r=j+P(r,-4176)|0;k=k-x|0;j=r+k|0;H[c+3|0]=K[a+(h+j>>>18&1023)|0];H[c+12|0]=K[a+(j-h>>>18&1023)|0];j=P(n-i|0,7350);l=P(l,-10217);h=j+(l+P(i,25733)|0)|0;i=P(i-g|0,3363);h=h+i|0;k=k-r|0;H[c+4|0]=K[a+(h+k>>>18&1023)|0];H[c+11|0]=K[a+(k-h>>>18&1023)|0];k=P(p,5461);h=P(g,-6278); -g=P(g-f|0,11529);i=i+(k+(h+g|0)|0)|0;m=o-m|0;H[c+5|0]=K[a+(i+m>>>18&1023)|0];H[c+10|0]=K[a+(m-i>>>18&1023)|0];i=P(f,16154);f=P(n-f|0,3363);g=l+(g+(i+f|0)|0)|0;i=u-s|0;H[c+6|0]=K[a+(g+i>>>18&1023)|0];H[c+9|0]=K[a+(i-g>>>18&1023)|0];f=j+(k+(f+P(n,-15038)|0)|0)|0;n=A-B|0;H[c+7|0]=K[a+(f+n>>>18&1023)|0];H[c+8|0]=K[a+(n-f>>>18&1023)|0];b=b+32|0;t=t+1|0;if((t|0)!=8)continue;break}xb=y+256|0}function zga(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;f=J[a+464>>2];if(J[a+280>>2]){c=J[f+ -52>>2];if(!c){if(!(Ab[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){g=d<<2;e=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[e+20>>2]<<2)+f|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+ -54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=f+ -g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Nb(J[((J[e+24>>2]<<2)+f|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2])continue;break}J[f+16>>2]=-16;J[f+8>>2]=0;J[f+12>>2]=0;c=J[a+280>>2]}J[f+52>>2]=c-1}c:{if(!(J[f+16>>2]==-1|J[a+364>>2]<=0))while(1){c=k<<2;m=J[c+b>>2];c=J[(a+c|0)+368>>2]<<2;h=J[J[(c+a|0)+340>>2]+20>>2];e=(h<<2)+f|0;g=c+f|0;d=J[e+56>>2]+J[g+36>>2]|0;d:{if(!lc(a,d)){J[g+36>>2]=0;c=J[g+20>>2];break d}j=1;i=0;c=0;l=lc(a,d+1|0);d= -(d+l|0)+2|0;e:{if(!lc(a,d))break e;e=J[e+56>>2];d=e+20|0;if(!lc(a,d)){c=1;break e}j=0;d=e+21|0;if(!lc(a,d)){c=2;break e}d=e+22|0;if(!lc(a,d)){c=4;break e}d=e+23|0;if(!lc(a,d)){c=8;break e}d=e+24|0;if(!lc(a,d)){c=16;break e}d=e+25|0;if(!lc(a,d)){c=32;break e}d=e+26|0;if(!lc(a,d)){c=64;break e}d=e+27|0;if(!lc(a,d)){c=128;break e}d=e+28|0;if(!lc(a,d)){c=256;break e}d=e+29|0;if(!lc(a,d)){c=512;break e}d=e+30|0;if(!lc(a,d)){c=1024;break e}d=e+31|0;if(!lc(a,d)){c=2048;break e}d=e+32|0;if(!lc(a,d)){c=4096; -break e}d=e+33|0;if(!lc(a,d)){c=8192;break e}c=16384;d=e+34|0;if(lc(a,d))break c}h=a+h|0;f:{if(1<>1>(c|0))break f;e=l<<2;if(1<>1<(c|0)){i=e+12|0;break f}i=e+4|0}J[g+36>>2]=i;g:{if(j){d=c;break g}i=d+14|0;d=c;while(1){e=c>>>1|0;d=(lc(a,i)?e:0)|d;j=c>>>0>3;c=e;if(j)continue;break}}c=J[g+20>>2]+(l?d^-1:d+1|0)|0;J[g+20>>2]=c}I[m>>1]=c<>2];k=k+1|0;if((k|0)>2])continue;break}return 1}b=J[a>>2];J[b+20>>2]=117;Ab[J[b+4>>2]](a,-1);J[f+16>>2]=-1;return 1}function qL(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;g=xb-32|0;xb=g;i=J[b+28>>2];J[g+8>>2]=2;c=J[a+496>>2];if(c){d=J[c+36>>2];if(d)Ab[J[i+8>>2]](i,d);J[c+36>>2]=0;J[c+40>>2]=0;d=J[c+28>>2];if(d)Ab[J[i+8>>2]](i,d);J[c+28>>2]=0;J[c+32>>2]=0;if(c)Ab[J[i+8>>2]](i,c);J[a+496>>2]=0}c=tc(i,44,g+8|0);a:{if(J[g+8>>2])break a;d=Tc(b,J[b+4>>2]);J[g+8>>2]=d;if(d)break a;d=J[a+476>>2];J[c+12>>2]=J[a+472>>2];J[c+16>>2]=d;d=J[a+468>>2];J[c+4>>2]=J[a+464>>2];J[c+8>>2]=d;J[c+20>>2]=J[a+ -476>>2];J[c+24>>2]=J[a+468>>2];d=J[a+492>>2];f=J[d+36>>2];b:{if(f){e=g+12|0;f=Ab[J[f>>2]](e,J[b+28>>2],J[b+32>>2],J[b+36>>2])|0;J[g+8>>2]=f;if(!f){J[g+28>>2]=a+132;J[g+24>>2]=110;J[g+20>>2]=c;q=g,r=Ab[J[J[d+36>>2]+8>>2]](e)|0,J[q+8>>2]=r;Ab[J[J[d+36>>2]+4>>2]](e);f=J[g+8>>2]}if((f&255)==2){f=J[b+4>>2];if(f>>>0<7)break b;d=J[b+32>>2];if(K[d+1|0]>3|(f|0)!=(K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24)))break b;f=0;d=xb-16|0;xb=d;J[d+12>>2]=0;l=J[b+28>>2];c:{d:{j=J[b+36>>2];h=J[b+32>>2];if(j>>>0< -h+101>>>0){J[d+12>>2]=2;break d}e=(h+99|0)+(K[h+99|0]|K[h+100|0]<<8)|0;if(j>>>0>>0|(K[e+18|0]|K[e+19|0]<<8)>>>0<18)break c;e=K[e+32|0]|K[e+33|0]<<8|(K[e+34|0]<<16|K[e+35|0]<<24);if(!e)break c;k=e+h|0;h=k+2|0;if(j>>>0>>0){J[d+12>>2]=2;break d}e=K[k|0]|K[k+1|0]<<8;J[c+40>>2]=e;if(j>>>0<(e<<2)+h>>>0){J[d+12>>2]=2;break d}if(!e)break c;e=Tb(l,16,0,e,0,d+12|0);J[c+36>>2]=e;if(J[d+12>>2])break d;o=J[c+40>>2];j=J[a+92>>2];m=J[a+36>>2];e:{if((m|0)<=0)break e;p=J[a+40>>2];while(1){n=J[(f<<2)+p>>2]; -if(L[n+8>>1]!=7){f=f+1|0;if((m|0)!=(f|0))continue;break e}break}f=ci(a,n);J[d+12>>2]=f;if(f)break d}f=o<<2;if((f|0)>0){f=(f+k|0)+2|0;while(1){q=e,r=ce(a,K[h|0]),J[q>>2]=r;q=e,r=ce(a,K[h+1|0]),J[q+4>>2]=r;k=(K[h+2|0]|K[h+3|0]<<8)<<16>>16;J[e+12>>2]=0;J[e+8>>2]=k;e=e+16|0;h=h+4|0;if(f>>>0>h>>>0)continue;break}}f:{if(j){e=ci(a,j);J[d+12>>2]=e;break f}e=J[d+12>>2]}if(e)break d;Nh(J[c+36>>2],J[c+40>>2],16,111);if(J[d+12>>2])break d;f=0;break c}f=J[c+36>>2];if(f)Ab[J[l+8>>2]](l,f);J[c+36>>2]=0;J[c+40>> -2]=0;f=J[d+12>>2]}xb=d+16|0;J[g+8>>2]=f}if(f)break b}d=J[c+8>>2];J[a+464>>2]=J[c+4>>2];J[a+468>>2]=d;d=J[c+16>>2];J[a+472>>2]=J[c+12>>2];J[a+476>>2]=d;J[a+52>>2]=I[c+6>>1];J[a+56>>2]=I[c+10>>1];J[a+60>>2]=J[c+12>>2]+65535>>16;J[a- -64>>2]=J[c+16>>2]+65535>>16;I[a+70>>1]=J[c+20>>2]+32768>>>16;I[a+72>>1]=J[c+24>>2]+32768>>>16;if(!J[c+40>>2])break b;J[a+496>>2]=c;J[a+8>>2]=J[a+8>>2]|64;c=0}Ec(b)}if(c){a=J[c+36>>2];if(a)Ab[J[i+8>>2]](i,a);J[c+36>>2]=0;J[c+40>>2]=0;a=J[c+28>>2];if(a)Ab[J[i+8>>2]](i,a); -J[c+28>>2]=0;J[c+32>>2]=0;if(c)Ab[J[i+8>>2]](i,c)}xb=g+32|0;return J[g+8>>2]}function xX(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[195395]=0;d=gn(a+12|0);b=J[195395];J[195395]=0;a:{b:{c:{d:{if((b|0)!=1){J[195395]=0;b=a+52|0;I[b+10>>1]=0;I[b+12>>1]=0;J[b+4>>2]=428360;J[b>>2]=428312;H[b+14|0]=0;H[b+15|0]=0;H[b+16|0]=0;H[b+17|0]=0;c=J[195395];J[195395]=0;if((c|0)==1)break d;I[a+130>>1]=257;I[a+120>>1]=257;J[195395]=0;H[a+132|0]=0;H[a+133|0]=0;H[a+134|0]=0;H[a+135|0]=0;c=J[195395]; -J[195395]=0;if((c|0)==1)break c;J[195395]=0;H[a+136|0]=0;H[a+137|0]=0;H[a+138|0]=0;H[a+139|0]=0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[a+140>>2]=0;J[195395]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+160>>2]=0;J[a+164>>2]=1072693248;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=0;J[a+188>>2]=1072693248;J[a+176>>2]=0;J[a+180>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[195395]=0;J[a+216>>2]=0;J[a+220>>2]=0;J[a+208>>2]=0;J[a+212>>2]=1072693248;J[a+240>>2]=0;J[a+244>>2]=0; -J[a+232>>2]=0;J[a+236>>2]=1072693248;J[a+224>>2]=0;J[a+228>>2]=0;J[a+248>>2]=0;J[a+252>>2]=0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[195395]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+256>>2]=0;J[a+260>>2]=1072693248;J[a+288>>2]=0;J[a+292>>2]=0;J[a+280>>2]=0;J[a+284>>2]=1072693248;J[a+272>>2]=0;J[a+276>>2]=0;J[a+296>>2]=0;J[a+300>>2]=0;c=J[195395];J[195395]=0;if((c|0)==1)break c;I[a+122>>1]=0;I[a+124>>1]=0;I[a+126>>1]=1;I[a+128>>1]=1;J[a+112>>2]=0;J[a+116>>2]=65537;J[a+104>>2]=0;J[a+108>>2]=1072693248; -J[a+96>>2]=0;J[a+100>>2]=1072693248;I[a+92>>1]=1;J[a+88>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+76>>2]=b;J[a+72>>2]=d;J[195395]=0;H[a+134|0]=0;H[a+133|0]=0;H[a+132|0]=0;b=J[195395];J[195395]=0;if((b|0)==1)break c;J[195395]=0;H[a+138|0]=255;H[a+137|0]=255;H[a+136|0]=255;b=J[195395];J[195395]=0;if((b|0)==1)break c;I[a+156>>1]=0;J[a+152>>2]=3;J[a+144>>2]=2;J[a+148>>2]=851969;J[a+140>>2]=0;J[195395]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+160>>2]=0;J[a+164>>2]=1072693248;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]= -0;J[a+188>>2]=1072693248;J[a+176>>2]=0;J[a+180>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break c;J[195395]=0;J[a+216>>2]=0;J[a+220>>2]=0;J[a+208>>2]=0;J[a+212>>2]=1072693248;J[a+240>>2]=0;J[a+244>>2]=0;J[a+232>>2]=0;J[a+236>>2]=1072693248;J[a+224>>2]=0;J[a+228>>2]=0;J[a+248>>2]=0;J[a+252>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break c;J[195395]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+256>>2]=0;J[a+260>>2]=1072693248;J[a+288>>2]=0;J[a+292>>2]=0;J[a+280>>2]=0;J[a+284>>2]=1072693248; -J[a+272>>2]=0;J[a+276>>2]=0;J[a+296>>2]=0;J[a+300>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break c;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0}ml(d)}qd(a);ba(b|0);B()}function oaa(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;g=J[a+584>>2];d=L[g+834>>1];f=L[g+836>>1];e=P(P(f,d)+2|0,P(J[g+72>>2],((d+J[g+28>>2]|0)-1>>>0)/(d>>>0)|0))+7>>>3|0;d=(c|0)/(e|0)|0;q=P(d,f);o=J[g+888>>2];if((P(d,e)|0)!=(c|0))yc(J[a+ -628>>2],J[a>>2],280141,0);if((q|0)>0){d=J[J[g+84>>2]+132>>2];w=d&3;x=g+844|0;y=d>>>0<4;while(1){if(J[g+76>>2]>0){p=J[g+84>>2];r=0;k=0;while(1){l=J[p+12>>2];a:{if((l|0)<=0)break a;c=J[p+28>>2]<<3;i=J[p+8>>2];f=P(i,d);m=c-f|0;u=(r<<2)+g|0;if((i|0)==1){s=m&-8;n=m&7;i=0;t=c+(f^-1)>>>0<7;while(1){c=J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(i<<2)>>2];b:{if(!d)break b;h=b+k|0;j=0;f=d;if(w)while(1){H[c|0]=K[h|0];h=h+o|0;c=c+1|0;f=f-1|0;j=j+1|0;if((w|0)!=(j|0))continue;break}if(y)break b;while(1){H[c|0]=K[h| -0];e=h+o|0;H[c+1|0]=K[e|0];e=e+o|0;H[c+2|0]=K[e|0];e=e+o|0;H[c+3|0]=K[e|0];c=c+4|0;h=e+o|0;f=f-4|0;if(f)continue;break}}c:{if((m|0)<=0)break c;e=K[c-1|0];f=0;if(!t)while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+1|0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((s|0)!=(f|0))continue;break}f=0;if(!n)break c;while(1){H[c|0]=e;c=c+1|0;f=f+1|0;if((n|0)!=(f|0))continue;break}}k=k+1|0;i=i+1|0;if((l|0)!=(i|0))continue;break}break a}if(d){z=m&-8;s=m&7;A=i&-4;t=i&3;n=0;B=c+(f^-1)>>>0<7;while(1){c= -J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(n<<2)>>2];if((i|0)>0){f=b+k|0;e=d;while(1){j=0;h=0;v=0;if(i>>>0>=4)while(1){H[c|0]=K[f+h|0];H[c+1|0]=K[(h|1)+f|0];H[c+2|0]=K[(h|2)+f|0];H[c+3|0]=K[(h|3)+f|0];h=h+4|0;c=c+4|0;v=v+4|0;if((A|0)!=(v|0))continue;break}if(t)while(1){H[c|0]=K[f+h|0];h=h+1|0;c=c+1|0;j=j+1|0;if((t|0)!=(j|0))continue;break}f=f+o|0;e=e-1|0;if(e)continue;break}}d:{if((m|0)<=0)break d;e=K[c-1|0];f=0;if(!B)while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+1| -0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((z|0)!=(f|0))continue;break}f=0;if(!s)break d;while(1){H[c|0]=e;c=c+1|0;f=f+1|0;if((s|0)!=(f|0))continue;break}}k=i+k|0;n=n+1|0;if((n|0)!=(l|0))continue;break}break a}j=0;if((m|0)>0)while(1){c=J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(j<<2)>>2];e=K[c-1|0];f=0;while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+1|0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((m|0)!=(f|0))continue;break}j=j+1|0;if((l|0)!=(j|0))continue;break}k=P(i,l)+k|0}p=p+88|0;r=r+1| -0;if((r|0)>2])continue;break}}c=J[g+884>>2];J[g+884>>2]=c+1;if((c|0)>=7){c=J[g+272>>2]<<3;if((AC(g,x,c)|0)!=(c|0))return 0;J[g+884>>2]=0}c=L[g+836>>1];J[a+472>>2]=c+J[a+472>>2];b=J[g+840>>2]+b|0;q=q-c|0;if((q|0)>0)continue;break}}return 1}function tga(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;e=xb-288|0;xb=e;h=J[a+464>>2];a:{b:{if(J[h+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[h+12>>2]/8|0);J[h+12>>2]=0;if(!(Ab[J[c+ -8>>2]](a)|0))break a;if(J[a+336>>2]>0){c=0;while(1){J[((c<<2)+h|0)+20>>2]=0;c=c+1|0;if((c|0)>2])continue;break}}J[h+16>>2]=0;J[h+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[h+36>>2]=0}c:{if(!J[h+36>>2]){o=J[a+428>>2];l=J[a+412>>2];c=J[a+420>>2];J[e+284>>2]=a;f=J[a+24>>2];J[e+268>>2]=J[f>>2];J[e+272>>2]=J[f+4>>2];p=-1<>2];f=J[a+408>>2];k=J[b>>2];g=J[h+8>>2];d:{e:{f:{j=J[h+16>>2];if(j){b=0;break f}if((f|0)>(l|0)){b=0;break f}n=J[h+60>>2];b=0;while(1){g:{h:{i:{if((d|0)>7)break i; -c=e+268|0;if(!Od(c,g,d,0))break c;g=J[e+276>>2];d=J[e+280>>2];if((d|0)>7)break i;c=Oe(c,g,d,n,1);break h}c=g>>d-8&255;j=J[((c<<2)+n|0)+144>>2];if(j){c=K[(c+n|0)+1168|0];d=d-j|0;break g}c=Oe(e+268|0,g,d,n,9)}if((c|0)<0)break c;g=J[e+276>>2];d=J[e+280>>2]}i=c>>>4|0;j:{k:switch(c&15){default:c=J[a>>2];J[c+20>>2]=121;Ab[J[c+4>>2]](a,-1);case 1:if((d|0)<=0){if(!Od(e+268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;q=g>>>d&1?m:p;break j;case 0:break k}q=0;if((i|0)==15)break j;j=1<>>0<16)break e; -if((d|0)<(i|0)){if(!Od(e+268|0,g,d,i))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-i|0;j=(J[(i<<2)+249728>>2]&g>>d)+j|0;break f}s=(f|0)>(l|0)?f:l;j=s+1|0;l:{while(1){c=f;f=(J[(c<<2)+o>>2]<<1)+k|0;m:{if(L[f>>1]){if((d|0)<=0){if(!Od(e+268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;if(!(g>>>d&1))break m;r=I[f>>1];if(r&m)break m;I[f>>1]=((r|0)<0?p:m)+r;break m}if((i|0)<=0)break l;i=i-1|0}f=c+1|0;if((c|0)!=(s|0))continue;break}c=j}if(q){f=J[(c<<2)+o>>2];I[(f<<1)+k>>1]=q;J[(b<<2)+e>>2]=f;b=b+1|0}f= -c+1|0;if((c|0)<(l|0))continue;break}break d}if(!j)break d}if((f|0)<=(l|0))while(1){c=f;f=(J[(c<<2)+o>>2]<<1)+k|0;n:{if(!L[f>>1])break n;if((d|0)<=0){if(!Od(e+268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;if(!(g>>>d&1))break n;i=I[f>>1];if(i&m)break n;I[f>>1]=i+((i|0)<0?p:m)}f=c+1|0;if((c|0)!=(l|0))continue;break}t=j-1|0}a=J[a+24>>2];J[a>>2]=J[e+268>>2];J[a+4>>2]=J[e+272>>2];J[h+16>>2]=t;J[h+12>>2]=d;J[h+8>>2]=g}J[h+40>>2]=J[h+40>>2]-1;d=1;break a}if((b|0)<=0){d=0;break a}c=b;a=c&3;if(a){d= -0;while(1){c=c-1|0;I[(J[(c<<2)+e>>2]<<1)+k>>1]=0;d=d+1|0;if((a|0)!=(d|0))continue;break}}d=0;if(b>>>0<4)break a;while(1){a=(c<<2)+e|0;I[(J[a-4>>2]<<1)+k>>1]=0;I[(J[a-8>>2]<<1)+k>>1]=0;a=c-3|0;I[(J[(a<<2)+e>>2]<<1)+k>>1]=0;c=c-4|0;I[(J[(c<<2)+e>>2]<<1)+k>>1]=0;if(a>>>0>1)continue;break}}xb=e+288|0;return d|0}function jma(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,u=0,v=0;f=xb-48|0;xb=f;if(nc(c,b,105157,0)){s=wo(b,c,1,11,-1,-1);o=J[c+68>>2];a:{if(!o)break a; -j=o-1|0;h=J[c+80>>2];k=h+3|0;h=K[h+15|0];while(1){b:{if((e|0)==(j|0)){e=o;break b}e=e+1|0;if((h|0)==K[(k+P(e,20)|0)+12|0])continue}break}if(!o)break a;m=J[c+80>>2];g=K[m+15|0];k=0;d=o;while(1){j=e;c:{if(g&14)break c;h=k+1|0;if(h>>>0>=e>>>0)break c;n=J[a+100>>2];l=J[n+8>>2]|J[n+4>>2]|J[n+12>>2];d=0;e=h;i=j+(k^-1)&3;if(i)while(1){g=P(e,20)+m|0;J[g+4>>2]=l|J[g+4>>2];e=e+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}if((j-k|0)-2>>>0>2)while(1){d=P(e,20)+m|0;J[d+4>>2]=l|J[d+4>>2];J[d+24>>2]=l|J[d+24>>2]; -J[d+44>>2]=l|J[d+44>>2];d=d- -64|0;J[d>>2]=l|J[d>>2];e=e+4|0;if((j|0)!=(e|0))continue;break}t=j-3|0;u=j+2|0;r=m+2|0;p=P(h,20)+m|0;i=P(k,20)+m|0;v=i+40|0;g=0;while(1){l=h;e=P(h,20);d=e+m|0;e=K[(e+r|0)+16|0];d:{if(!((e|0)!=4|g>>>0>2)){h=h+1|0;if(j>>>0<=h>>>0)break d;q=P(h,20);if(K[(q+r|0)+16|0]!=15){g=g+1|0;break d}J[d+4>>2]=J[d+4>>2]|J[n>>2];J[d+24>>2]=J[d+24>>2]|J[n>>2];e=l+2|0;if(e-k>>>0>=2)Kd(c,k,e);J[f+40>>2]=J[d+16>>2];g=J[d+12>>2];J[f+32>>2]=J[d+8>>2];J[f+36>>2]=g;g=J[d+4>>2];J[f+24>>2]=J[d>> -2];J[f+28>>2]=g;d=m+q|0;J[f+16>>2]=J[d+16>>2];g=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=g;g=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=g;qc(v,i,P(l-k|0,20));J[i+16>>2]=J[f+40>>2];d=J[f+36>>2];J[i+8>>2]=J[f+32>>2];J[i+12>>2]=d;d=J[f+28>>2];J[i>>2]=J[f+24>>2];J[i+4>>2]=d;J[p+16>>2]=J[f+16>>2];d=J[f+12>>2];J[p+8>>2]=J[f+8>>2];J[p+12>>2]=d;d=J[f+4>>2];J[p>>2]=J[f>>2];J[p+4>>2]=d;e:{if(!J[n+16>>2]|e>>>0>=j>>>0)break e;d=0;g=u-l&3;if(g)while(1){q=P(e,20)+m|0;J[q+4>>2]=J[q+4>>2]|J[n+16>>2];e=e+1|0;d=d+1|0;if((g| -0)!=(d|0))continue;break}if(t-l>>>0<3)break e;while(1){d=P(e,20)+m|0;J[d+4>>2]=J[d+4>>2]|J[n+16>>2];J[d+24>>2]=J[d+24>>2]|J[n+16>>2];J[d+44>>2]=J[d+44>>2]|J[n+16>>2];d=d- -64|0;J[d>>2]=J[d>>2]|J[n+16>>2];e=e+4|0;if((j|0)!=(e|0))continue;break}}g=2;break d}h=l+1|0;if((e|0)!=22)break d;if(h-k>>>0>=2)Kd(c,k,h);J[f+40>>2]=J[d+16>>2];e=J[d+12>>2];J[f+32>>2]=J[d+8>>2];J[f+36>>2]=e;e=J[d+4>>2];J[f+24>>2]=J[d>>2];J[f+28>>2]=e;qc(p,i,P(l-k|0,20));J[i+16>>2]=J[f+40>>2];e=J[f+36>>2];J[i+8>>2]=J[f+32>>2];J[i+ -12>>2]=e;e=J[f+28>>2];J[i>>2]=J[f+24>>2];J[i+4>>2]=e}if((j|0)!=(h|0))continue;break}m=J[c+80>>2];d=J[c+68>>2]}e=j+1|0;h=d>>>0>e>>>0?d:e;k=h-1|0;l=m+3|0;g=K[(P(j,20)+m|0)+15|0];i=g;e=j;while(1){f:{if((e|0)==(k|0)){e=h;break f}e=e+1|0;if((i|0)==K[(l+P(e,20)|0)+12|0])continue}break}k=j;if(j>>>0>>0)continue;break}}nc(c,b,105849,0)}H[c+140|0]=K[c+140|0]&191;xb=f+48|0;return s|0}function gZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=xb+-64|0;xb=i;e= -1;j=J[a+80>>2];a:{if(!j)break a;j=Ab[J[J[j>>2]+36>>2]](j)|0;if(!j)break a;b:{c:{j=Ab[J[J[j>>2]+36>>2]](j)|0;switch(j-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:break a; -case 0:case 1:case 2:case 6:case 8:case 33:case 34:case 35:case 49:case 50:case 58:case 76:case 94:case 110:break b;default:break c}}if(j)break a}e=j}Qj(i+52|0,g,d,e);d=J[a+80>>2];e=J[J[d>>2]+92>>2];J[195395]=0;d=_(e|0,d|0)|0;e=J[195395];J[195395]=0;d:{e:{if((e|0)==1)break e;e=J[a+80>>2];g=J[J[e>>2]+88>>2];J[195395]=0;e=_(g|0,e|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break e;O[i+40>>3]=e?-1:1;O[i+32>>3]=d?-1:1;d=0;J[i+28>>2]=0;J[i+20>>2]=0;J[i+24>>2]=0;f:{g:{if(h){J[i+8>>2]=0;J[i>>2]=0;J[i+4>>2]= -0;e=0;g=H[i+63|0];k=(g|0)<0?J[i+56>>2]:g&255;h:{if(!k)break h;if(k>>>0>=536870912){J[195395]=0;ea(1815,i|0);a=J[195395];J[195395]=0;if((a|0)==1)break g;B()}g=0;J[195395]=0;d=k<<3;l=_(1078,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break g;n=k-1&2147483647;m=k&7;i:{if(!m){j=h;e=l;break i}j=h;e=l;while(1){O[e>>3]=I[j>>1];e=e+8|0;j=j+2|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}d=d+l|0;if(n>>>0<7)break h;g=(k<<1)+h|0;while(1){O[e>>3]=I[j>>1];O[e+8>>3]=I[j+2>>1];O[e+16>>3]=I[j+4>>1];O[e+24>>3]=I[j+6>> -1];O[e+32>>3]=I[j+8>>1];O[e+40>>3]=I[j+10>>1];O[e+48>>3]=I[j+12>>1];O[e+56>>3]=I[j+14>>1];e=e- -64|0;j=j+16|0;if((g|0)!=(j|0))continue;break}}J[i+28>>2]=d;J[i+24>>2]=e;J[i+20>>2]=l}J[195395]=0;O[i+8>>3]=b|0;O[i>>3]=c|0;Da(1967,a+8|0,i+52|0,i|0,f|0,i+32|0,i+20|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;a=J[i+20>>2];if(a){J[i+24>>2]=a;Kb(a)}if(H[i+63|0]<0)Kb(J[i+52>>2]);xb=i- -64|0;return}e=Z()|0;a=J[i>>2];if(!a)break d;J[i+4>>2]=a;Kb(a);break d}e=Z()|0;a=J[i+20>>2];if(!a)break d;J[i+24>>2]=a;Kb(a); -break d}e=Z()|0}if(H[i+63|0]<0)Kb(J[i+52>>2]);ba(e|0);B()}function Mc(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;c=H[b|0];if(!c)return a;a=te(a,c);a:{if(!a)break a;if(!K[b+1|0])return a;c=K[a+1|0];if(!c)break a;if(!K[b+2|0]){e=(c|0)!=0;b:{if(!c)break b;c=c|K[a|0]<<8;d=K[b+1|0]|K[b|0]<<8;if((c|0)==(d|0))break b;b=a+1|0;while(1){a=b;g=K[a+1|0];e=(g|0)!=0;if(!g)break b;b=a+1|0;c=g|c<<8&65280;if((d|0)!=(c|0))continue;break}}return e?a:0}d=K[a+2|0];if(!d)break a;if(!K[b+3|0]){c=a+2|0; -h=(d|0)!=0;c:{d:{if(!d)break d;e=K[a+1|0]<<16|K[a|0]<<24|d<<8;b=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;if((e|0)==(b|0))break d;while(1){a=c+1|0;d=K[c+1|0];h=(d|0)!=0;if(!d)break c;c=a;e=(d|e)<<8;if((b|0)!=(e|0))continue;break}break c}a=c}return h?a-2|0:0}d=K[a+3|0];if(!d)break a;if(!K[b+4|0]){c=a+3|0;h=(d|0)!=0;e:{f:{if(!d)break f;e=d|(K[a+1|0]<<16|K[a|0]<<24|K[a+2|0]<<8);a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if((e|0)==(b|0))break f;while(1){a=c+1| -0;d=K[c+1|0];h=(d|0)!=0;if(!d)break e;c=a;e=d|e<<8;if((b|0)!=(e|0))continue;break}break e}a=c}return h?a-3|0:0}h=a;c=0;i=xb-1056|0;xb=i;a=i+1048|0;J[a>>2]=0;J[a+4>>2]=0;a=i+1040|0;J[a>>2]=0;J[a+4>>2]=0;J[i+1032>>2]=0;J[i+1036>>2]=0;J[i+1024>>2]=0;J[i+1028>>2]=0;k=b;g:{h:{i:{b=K[b|0];j:{if(!b){j=-1;a=1;break j}while(1){if(!K[f+h|0])break g;f=f+1|0;J[((b&255)<<2)+i>>2]=f;a=(i+1024|0)+(b>>>3&28)|0;J[a>>2]=J[a>>2]|1<>>0>1)break i}d=-1;c=1;break h}g=1;b= -1;while(1){d=K[(k+j|0)+b|0];e=K[a+k|0];k:{if((d|0)==(e|0)){if((b|0)==(g|0)){c=c+g|0;b=1;break k}b=b+1|0;break k}if(d>>>0>e>>>0){g=a-j|0;c=a;b=1;break k}j=c;c=c+1|0;g=1;b=1}a=b+c|0;if(f>>>0>a>>>0)continue;break}c=1;d=-1;if(f>>>0<=1){a=g;break h}a=0;e=1;b=1;while(1){n=K[(d+k|0)+b|0];l=K[c+k|0];l:{if((n|0)==(l|0)){if((b|0)==(e|0)){a=a+e|0;b=1;break l}b=b+1|0;break l}if(n>>>0>>0){e=c-d|0;a=c;b=1;break l}d=a;a=a+1|0;e=1;b=1}c=a+b|0;if(f>>>0>c>>>0)continue;break}a=g;c=e}b=a;a=d+1>>>0>j+1>>>0;e=a?c:b; -m=a?d:j;l=m+1|0;m:{if(cd(k,k+e|0,l)){a=(m^-1)+f|0;e=(a>>>0>>0?m:a)+1|0;g=0;break m}g=f-e|0}n=f-1|0;o=f|63;d=0;a=h;while(1){n:{if(h-a>>>0>=f>>>0)break n;c=0;b=bh(h,0,o);h=b?b:h+o|0;if(!b)break n;if(b-a>>>0>>0)break g}b=f;c=K[a+n|0];o:{p:{if(!(J[(i+1024|0)+(c>>>3&28)>>2]>>>c&1))break p;b=J[(c<<2)+i>>2];if((f|0)!=(b|0)){b=f-b|0;b=b>>>0>d>>>0?b:d;break p}q:{b=l;c=b>>>0>d>>>0?b:d;j=K[k+c|0];if(j)while(1){if(K[a+c|0]!=(j&255))break q;c=c+1|0;j=K[k+c|0];if(j)continue;break}while(1){if(b>>>0<=d>>>0){c= -a;break g}b=b-1|0;if(K[k+b|0]==K[a+b|0])continue;break}b=e;d=g;break o}b=c-m|0}d=0}a=a+b|0;continue}}xb=i+1056|0;e=c}return e}function Zf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];c:{if(f+3>>>0>=M[d+16>>2])break c;c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4;d:{e:{f:{g:{h:switch(c-1|0){default:switch(c-268435456|0){case 3:break d;case 2:break e;case 1:break f;case 0:break g;default:break c}case 0:c=Pb(16);J[195395]=0;J[c+8>>2]=0;J[c+12>> -2]=0;J[c>>2]=416584;e=c;d=J[195395];J[195395]=0;if((d|0)==1)break a;i=c,j=Zf(a,b),J[i+8>>2]=j;a=Zf(a,b);J[c+4>>2]=1;break b;case 1:c=Pb(16);J[195395]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=416584;e=c;d=J[195395];J[195395]=0;if((d|0)==1)break a;i=c,j=Zf(a,b),J[i+8>>2]=j;a=Zf(a,b);J[c+4>>2]=2;break b;case 2:c=Pb(16);J[195395]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=416584;e=c;d=J[195395];J[195395]=0;if((d|0)==1)break a;i=c,j=Zf(a,b),J[i+8>>2]=j;a=Zf(a,b);J[c+4>>2]=3;break b;case 3:c=Pb(16);J[195395]=0;J[c+8>> -2]=0;J[c+12>>2]=0;J[c>>2]=416584;e=c;d=J[195395];J[195395]=0;if((d|0)==1)break a;i=c,j=Zf(a,b),J[i+8>>2]=j;a=Zf(a,b);J[c+4>>2]=4;break b;case 4:break h}c=Pb(16);J[195395]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=416584;e=c;d=J[195395];J[195395]=0;if((d|0)==1)break a;i=c,j=Zf(a,b),J[i+8>>2]=j;a=Zf(a,b);J[c+4>>2]=5;break b}c=Pb(12);J[195395]=0;J[c+8>>2]=0;J[c>>2]=416568;e=J[195395];J[195395]=0;i:{if((e|0)!=1){e=Pb(32);J[e>>2]=0;J[e+4>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+ -12>>2]=0;h=J[J[a>>2]-12>>2]+a|0;a=J[h+12>>2];f=J[h+16>>2];if(a+3>>>0>=f>>>0)g=0;else{d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4|0;J[h+12>>2]=a;g=+(x(2,d),C())}O[e>>3]=g;if(f>>>0>a+3>>>0){d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4|0;J[h+12>>2]=a;g=+(x(2,d),C())}else g=0;O[e+8>>3]=g;if(f>>>0<=a+3>>>0)g=0;else{d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4|0;J[h+12>>2]=a;g=+(x(2,d),C())}O[e+16>>3]=g;if(f>>>0>a+3>>>0){d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);J[h+ -12>>2]=a+4;g=+(x(2,d),C())}else g=0;O[e+24>>3]=g;J[c+8>>2]=e;J[b>>2]=J[b>>2]+4;break i}break a}J[c+4>>2]=268435456;return c}c=Pb(12);J[195395]=0;J[c+8>>2]=0;J[c>>2]=416552;d=J[195395];J[195395]=0;if((d|0)==1)break a;d=J[J[a>>2]-12>>2]+a|0;f=J[d+12>>2];if(f+3>>>0>2]){e=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);J[d+12>>2]=f+4}i=c,j=Wj(a),J[i+8>>2]=j;J[b>>2]=J[b>>2]+e;J[c+4>>2]=268435457;return c}c=Pb(8);J[195395]=0;J[c>>2]=416536;a=J[195395];J[195395]=0;if((a|0)!=1){J[c+4>>2]=268435458; -J[b>>2]=J[b>>2]+1;return c}break a}c=Pb(8);J[195395]=0;J[c>>2]=416536;e=c;a=J[195395];J[195395]=0;if((a|0)==1)break a;J[c+4>>2]=268435459;J[b>>2]=J[b>>2]+1}return e}J[e+12>>2]=a;return e}a=Z()|0;Kb(c);ba(a|0);B()}function KG(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;j=xb-256|0;xb=j;f=a;g=K[a+6|0]|K[a+7|0]<<8;if(g)e=a+((g<<8|g>>>8)&65535)|0;else e=169776;a=J[b+88>>2];a:{if((ld(e,J[J[a+80>>2]+P(J[a+64>>2],20)>>2])|0)==-1)break a;b:{a=K[f+2|0]|K[f+3|0]<<8;e= -a<<8|a>>>8;k=e&65535;if(k>>>0>64)break b;o=K[f+4|0]|K[f+5|0]<<8;g=J[b+88>>2];a=J[g+64>>2];J[b+4>>2]=a;c=J[J[b+8>>2]+88>>2];J[b+36>>2]=J[c+68>>2];d=J[c+64>>2]==(a|0)?K[(J[c+80>>2]+P(a,20)|0)+15|0]:d;J[b+32>>2]=f+8;J[b+28>>2]=f;J[b+24>>2]=842;H[b+23|0]=K[b+22|0]?d:0;c:{if((e&65535)>>>0<2){h=a;c=a;break c}a=K[(J[g+80>>2]+P(a,20)|0)+14|0];n=a>>>5|0;p=a&16?0:a&15;q=(p|0)!=0&a>>>0>31;l=1;while(1){a=J[b+4>>2];c=J[b+36>>2];m=c-1|0;if((a|0)>=(m|0))break b;d:{e:{f:{g:{while(1){a=a+1|0;J[b+4>>2]=a;c=J[b+12>> -2];d=J[b+8>>2];e=J[J[d+88>>2]+80>>2]+P(a,20)|0;a=L[e+12>>1];h:{if(c&a&14)break h;if(a&8)if(!Bd(d,J[e>>2],a,c))break h;c=1;a=L[e+16>>1];if(!(K[e+12|0]&16|(a&96)!=32|!K[b+20|0]&(a&543)==513))c=!K[b+21|0]&(a&287)==257;d=J[b+32>>2];if(d){a=K[d|0]|K[d+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;i:{if(!(J[b+16>>2]&J[e+4>>2]))break i;i=K[b+23|0];if((i|0)!=K[e+15|0]?i:0)break i;i=J[b+24>>2];j:{if(i){if(!(Ab[i|0](e,a,J[b+28>>2])|0))break i;d=J[b+32>>2];break j}if(!c)break h}if(d)J[b+32>>2]=d+2;a=J[b+4>>2];J[(l<< -2)+j>>2]=a;a=K[(J[g+80>>2]+P(a,20)|0)+14|0];c=a&16?0:a&15;d=a>>>5|0;if(!q)break f;if((d|0)==(n|0)&(c|0)==(p|0))break d;c=0;switch(r|0){case 0:break g;case 1:break b;default:break d}}if(c)break e}a=J[b+4>>2];if((m|0)>(a|0))continue;break}c=J[b+36>>2];break b}a=J[g+72>>2];if(!a)break b;e=J[g+84>>2];m=e-6|0;while(1){i=P(a,20);d=K[i+m|0];if((n|0)!=(d>>>5|0))break b;if(!(!(d&15)|d&16)){a=a-1|0;if(a)continue;break b}break}r=2;d=J[b+12>>2];e=(e+i|0)-20|0;a=L[e+12>>1];if(d&a&14)break d;if(!(a&8))break b; -if(Bd(J[b+8>>2],J[e>>2],a,d))break b;break d}if(!c|((d|0)==(n|0)|a>>>0<32))break d;c=0;break b}c=J[b+4>>2]+1|0;break b}l=l+1|0;if((l|0)!=(k|0))continue;break}h=J[g+64>>2];g=J[b+88>>2];a=J[g+64>>2];c=J[b+4>>2]}J[j>>2]=h;h=1;d=a;a=c+1|0;Ac(g,3,d,a,1,0);Bo(b,k,j,(o<<8|o>>>8)&65535,(f+6|0)+(k<<1)|0,a);break a}b=J[b+88>>2];if(!(K[b+16|0]&64))break a;a=J[b+64>>2];J[b+144>>2]=J[b+144>>2]|32;f=J[b+68>>2];f=c>>>0>f>>>0?f:c;if(f>>>0<=a>>>0)break a;g=f+(a^-1)|0;c=J[b+80>>2];h=f-a&3;if(h){b=0;while(1){d=c+P(a, -20)|0;J[d+4>>2]=J[d+4>>2]|2;a=a+1|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}h=0;if(g>>>0<3)break a;while(1){b=c+P(a,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]|2;b=b- -64|0;J[b>>2]=J[b>>2]|2;a=a+4|0;if((f|0)!=(a|0))continue;break}}xb=j+256|0;return h|0}function yga(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;f=J[a+464>>2];if(J[a+280>>2]){e=J[f+52>>2];if(!e){if(!(Ab[J[J[a+460>>2]+8>>2]](a)|0)){e=J[a>>2];J[e+20>>2]=25;Ab[J[e>>2]](a)}if(J[a+336>> -2]>0){e=0;while(1){g=e<<2;d=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[d+20>>2]<<2)+f|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+ -46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=f+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Nb(J[((J[d+ -24>>2]<<2)+f|0)+120>>2],0,256)}e=e+1|0;if((e|0)>2])continue;break}}J[f+16>>2]=-16;J[f+8>>2]=0;J[f+12>>2]=0;e=J[a+280>>2]}J[f+52>>2]=e-1}c:{d:{if(J[f+16>>2]==-1)break d;e=J[a+408>>2];if((e|0)>J[a+412>>2])break d;h=J[b>>2];i=J[a+428>>2];j=f+184|0;b=J[J[a+340>>2]+24>>2];k=b+a|0;g=(b<<2)+f|0;while(1){c=e;e=(J[g+120>>2]+P(c,3)|0)-3|0;if(lc(a,e))break d;while(1){if(!lc(a,e+1|0)){e=e+3|0;b=J[a+412>>2]>(c|0);c=c+1|0;if(b)continue;break c}break}l=lc(a,j);b=e+2|0;e:{if(!lc(a,b)){b=0;break e}if(!lc(a, -b)){b=1;break e}b=J[g+120>>2]+(K[k+264|0]<(c|0)?217:189)|0;f:{if(!lc(a,b)){e=2;break f}d=b+1|0;if(!lc(a,d)){e=4;b=d;break f}d=b+2|0;if(!lc(a,d)){e=8;b=d;break f}d=b+3|0;if(!lc(a,d)){e=16;b=d;break f}d=b+4|0;if(!lc(a,d)){e=32;b=d;break f}d=b+5|0;if(!lc(a,d)){e=64;b=d;break f}d=b+6|0;if(!lc(a,d)){e=128;b=d;break f}d=b+7|0;if(!lc(a,d)){e=256;b=d;break f}d=b+8|0;if(!lc(a,d)){e=512;b=d;break f}d=b+9|0;if(!lc(a,d)){e=1024;b=d;break f}d=b+10|0;if(!lc(a,d)){e=2048;b=d;break f}d=b+11|0;if(!lc(a,d)){e=4096; -b=d;break f}d=b+12|0;if(!lc(a,d)){e=8192;b=d;break f}e=16384;b=b+13|0;if(lc(a,b))break c}m=b+14|0;b=e;while(1){d=e>>>1|0;b=(lc(a,m)?d:0)|b;n=e>>>0>3;e=d;if(n)continue;break}}I[(J[(c<<2)+i>>2]<<1)+h>>1]=(l?b^-1:b+1|0)<>2];e=c+1|0;if(J[a+412>>2]>(c|0))continue;break}}return 1}b=J[a>>2];J[b+20>>2]=117;Ab[J[b+4>>2]](a,-1);J[f+16>>2]=-1;return 1}function pda(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;i=xb-16|0;xb=i;j=Qb(40);J[j>>2]=0;J[i+12>>2]=0;J[195395]=0;g=aa(1554,1, -0,0)|0;e=J[195395];J[195395]=0;a:{b:{if((e|0)==1)break b;k=4;f=-1;c:{d:{if(!e)break d;h=J[195396];if(!h)break d;f=Sb(J[e>>2],j,4);if(!f)break c;yb=h}e=yb;e:{f:{if((f|0)==1)break f;J[i+8>>2]=g;e=J[i+8>>2];g=0;if(!e)break e;J[e+700>>2]=1E6;J[J[i+8>>2]+704>>2]=1E6;J[195395]=0;g=J[i+8>>2];if(g)J[g+156>>2]=1180;else g=0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;g:{if(!e)break g;h=J[195396];if(!h)break g;f=Sb(J[e>>2],j,4);if(!f)break c;yb=h}e=yb;if((f|0)==1)break f;j=wd(g,1,j,4);k=yb;e=0}while(1){if(e){J[195395]= -0;ja(1556);e=J[195395];J[195395]=0;if((e|0)==1)break b;h:{if(!e)break h;h=J[195396];if(!h)break h;if(!Sb(J[e>>2],j,k))break c;yb=h}e=yb;continue}J[195395]=0;g=J[i+8>>2];if(g){J[g+676>>2]=0;J[g+672>>2]=0;J[g+668>>2]=0}e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;i:{if(!e)break i;h=J[195396];if(!h)break i;f=Sb(J[e>>2],j,k);if(!f)break c;yb=h}e=yb;if((f|0)==1)continue;J[195395]=0;g=J[i+8>>2];if(g){J[g+164>>2]=d;J[g+160>>2]=c;J[g+168>>2]=b}e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;j:{if(!e)break j; -h=J[195396];if(!h)break j;f=Sb(J[e>>2],j,k);if(!f)break c;yb=h}e=yb;if((f|0)==1)continue;J[195395]=0;g=ca(1558,J[i+8>>2],a|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;k:{if(!e)break k;h=J[195396];if(!h)break k;f=Sb(J[e>>2],j,k);if(!f)break c;yb=h}e=yb;if((f|0)==1)continue;if(!g)J[i+12>>2]=1;J[J[i+8>>2]+272>>2]=8192;l:{if(J[i+12>>2])break l;g=J[i+8>>2];e=J[J[i+8>>2]+272>>2];J[195395]=0;g=ca(1559,g|0,e|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;m:{if(!e)break m;h=J[195396];if(!h)break m; -f=Sb(J[e>>2],j,k);if(!f)break c;yb=h}e=yb;if((f|0)==1)continue;J[J[i+8>>2]+268>>2]=g;if(J[J[i+8>>2]+268>>2])break l;J[i+12>>2]=1}g=J[i+8>>2];if(J[i+12>>2]){e=J[g+268>>2];J[195395]=0;$(1564,g|0,e|0);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;n:{if(!e)break n;h=J[195396];if(!h)break n;f=Sb(J[e>>2],j,k);if(!f)break c;yb=h}e=yb;if((f|0)==1)continue;J[J[i+8>>2]+268>>2]=0;J[195395]=0;fa(1565,J[i+8>>2],0,0);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;o:{if(!e)break o;h=J[195396];if(!h)break o; -f=Sb(J[e>>2],j,k);if(!f)break c;yb=h}e=yb;if((f|0)==1)continue;g=0;break e}J[195395]=0;ia(1223,g|0,0,0,0);e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;p:{if(!e)break p;h=J[195396];if(!h)break p;f=Sb(J[e>>2],j,k);if(!f)break c;yb=h}e=yb;if((f|0)==1)continue;break}g=J[i+8>>2]}Kb(j);xb=i+16|0;break a}Kb(j);gd(e,h);B()}a=Z()|0;Kb(j);ba(a|0);B()}return g|0}function Vfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A= -0,B=0,C=0,D=0;D=xb-480|0;xb=D;s=J[a+332>>2];b=J[b+84>>2];a=D;while(1){m=J[b+160>>2];n=I[c+80>>1];h=J[b+32>>2];g=I[c+16>>1];k=J[b+224>>2];l=I[c+112>>1];q=J[b+96>>2];i=I[c+48>>1];j=P(I[c>>1],J[b>>2])<<13|1024;r=P(J[b+192>>2],I[c+96>>1]);t=j+P(r,-11586)|0;p=P(J[b+64>>2],I[c+32>>1]);o=P(J[b+128>>2],I[c+64>>1]);f=p-o|0;J[a+224>>2]=t+P(f,-11584)>>11;y=P(m,n);m=P(y,10033);h=P(h,g);g=P(k,l);z=h-g|0;n=m+P(z,11522)|0;l=j+P(r,9373)|0;u=P(f,374);k=p+o|0;o=P(k,10958);v=l+(u+o|0)|0;q=P(i,q);i=P(q,-11018);w=n+(P(g, -20131)-i|0)|0;J[a+448>>2]=v-w>>11;J[a>>2]=v+w>>11;r=j+P(r,-3580)|0;v=P(f,2896);w=P(k,6476);j=r+(v+w|0)|0;A=q-g|0;B=P(A+h|0,6810);C=B+P(h,4209)|0;J[a+416>>2]=j-C>>11;J[a+32>>2]=j+C>>11;j=t+P(f,5792)|0;t=P(z-y|0,10033);J[a+384>>2]=j-t>>11;J[a+64>>2]=j+t>>11;f=P(f,-3271);j=P(k,4482);k=l+(f-j|0)|0;i=(i+m|0)+P(g,-7121)|0;g=P(h+g|0,4712);i=i+g|0;J[a+288>>2]=k-i>>11;J[a+160>>2]=k+i>>11;p=P(p,11795);k=r+(u+(p-o|0)|0)|0;q=P(q,-6810);g=g+((q+P(h,3897)|0)-m|0)|0;J[a+352>>2]=k-g>>11;J[a+96>>2]=g+k>>11;g=v+(l- -w|0)|0;m=B+P(A,-17828)|0;J[a+320>>2]=g-m>>11;J[a+128>>2]=g+m>>11;f=r+(f+(j-p|0)|0)|0;h=n+(q+P(h,-9113)|0)|0;J[a+256>>2]=f-h>>11;J[a+192>>2]=h+f>>11;a=a+4|0;b=b+4|0;c=c+2|0;x=x+1|0;if((x|0)!=8)continue;break}a=s+128|0;b=D;x=0;while(1){o=J[b+20>>2];p=P(o,10033);h=J[b+4>>2];f=J[b+28>>2];i=h-f|0;r=p+P(i,11522)|0;c=J[(x<<2)+d>>2]+e|0;j=J[b+12>>2];t=P(j,-11018);s=r+(P(f,20131)-t|0)|0;l=(J[b>>2]<<13)+131072|0;k=J[b+24>>2];q=l+P(k,9373)|0;m=J[b+8>>2];n=J[b+16>>2];g=m-n|0;z=P(g,374);n=m+n|0;y=P(n,10958);u= -q+(z+y|0)|0;H[c|0]=K[a+(s+u>>>18&1023)|0];H[c+14|0]=K[a+(u-s>>>18&1023)|0];u=j-f|0;v=P(u+h|0,6810);w=v+P(h,4209)|0;s=l+P(k,-3580)|0;A=P(g,2896);B=P(n,6476);C=s+(A+B|0)|0;H[c+1|0]=K[a+(w+C>>>18&1023)|0];H[c+13|0]=K[a+(C-w>>>18&1023)|0];i=P(i-o|0,10033);k=l+P(k,-11586)|0;l=k+P(g,5792)|0;H[c+2|0]=K[a+(i+l>>>18&1023)|0];H[c+12|0]=K[a+(l-i>>>18&1023)|0];l=P(h+f|0,4712);j=P(j,-6810);i=l+((j+P(h,3897)|0)-p|0)|0;m=P(m,11795);o=s+(z+(m-y|0)|0)|0;H[c+3|0]=K[a+(i+o>>>18&1023)|0];H[c+11|0]=K[a+(o-i>>>18&1023)| -0];i=v+P(u,-17828)|0;o=A+(q-B|0)|0;H[c+4|0]=K[a+(i+o>>>18&1023)|0];H[c+10|0]=K[a+(o-i>>>18&1023)|0];f=l+((p+t|0)+P(f,-7121)|0)|0;p=P(g,-3271);n=P(n,4482);l=q+(p-n|0)|0;H[c+5|0]=K[a+(f+l>>>18&1023)|0];H[c+9|0]=K[a+(l-f>>>18&1023)|0];h=r+(j+P(h,-9113)|0)|0;f=s+(p+(n-m|0)|0)|0;H[c+6|0]=K[a+(h+f>>>18&1023)|0];H[c+8|0]=K[a+(f-h>>>18&1023)|0];H[c+7|0]=K[a+(k+P(g,268423872)>>>18&1023)|0];b=b+32|0;x=x+1|0;if((x|0)!=15)continue;break}xb=D+480|0}function LF(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;if((c|0)>=0){j=L[b+2>>1];g=j?4:3;e=j?7:138;i=a+5817|0;h=-1;while(1){o=n;k=j;n=n+1|0;j=L[((n<<2)+b|0)+2>>1];d=f+1|0;a:{if(!((k|0)!=(j|0)|(e|0)<=(d|0))){f=d;break a}b:{if((d|0)<(g|0)){f=(k<<2)+a|0;g=f+2686|0;h=f+2684|0;f=J[a+5820>>2];while(1){e=L[g>>1];l=L[h>>1];m=L[a+5816>>1]|l<>1]=m;c:{if((16-e|0)<(f|0)){f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=m;f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=K[i|0];f=J[a+5820>>2];I[a+5816>>1]=l>>>16-f;f=(e+f|0)-16|0;break c}f=e+f|0}J[a+5820>> -2]=f;d=d-1|0;if(d)continue;break}break b}e=J[a+5820>>2];m=a;d:{if(k){e:{if((h|0)==(k|0)){f=d;break e}d=(k<<2)+a|0;g=L[d+2686>>1];h=L[d+2684>>1];l=L[a+5816>>1]|h<>1]=l;f:{if((16-g|0)<(e|0)){e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=l;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=K[i|0];e=J[a+5820>>2];I[a+5816>>1]=h>>>16-e;d=(e+g|0)-16|0;break f}d=e+g|0}e=d;J[a+5820>>2]=e}h=L[a+2748>>1];d=L[a+5816>>1]|h<>1];g:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1; -H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break g}e=e+g|0}J[a+5820>>2]=e;f=f+65533|0;if((e|0)>=15){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-14|0;break d}I[a+5816>>1]=f<>1];if((f|0)<=9){h=L[a+2752>>1];d=d|h<>1];h:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+ -20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break h}e=e+g|0}J[a+5820>>2]=e;f=f+65534|0;if((e|0)>=14){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-13|0;break d}I[a+5816>>1]=f<>1];d=d|h<>1];i:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+20>> -2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break i}e=e+g|0}J[a+5820>>2]=e;f=f+65526|0;if((e|0)>=10){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-9|0;break d}I[a+5816>>1]=f<>2]=f}f=0;j:{if(!j){e=138;d=3;break j}d=(k|0)==(j|0);e=d?6:7;d=d?3:4}g=d;h=k}if((c|0)!=(o| -0))continue;break}}}function AG(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,z=0,A=0;v=xb-272|0;xb=v;s=J[b+4>>2];g=J[b+8>>2];J[a+52>>2]=-2147483648;J[a+56>>2]=0;J[a+48>>2]=g;J[a+44>>2]=s;y=J[b+52>>2];e=J[b+24>>2];l=J[b+28>>2];x=J[b+44>>2];J[c>>2]=s;J[d>>2]=g;a:{if((e|0)<2|(x|0)<=0)break a;f=e-1|0;m=f&3;i=I[l+12>>1];b:{if(e-2>>>0<3){e=1;j=i;break b}w=f&-4;e=1;j=i;while(1){f=l+P(e,40)|0;k=I[f+12>>1];j=(j|0)>(k|0)?j:k;n=I[f+52>>1];j=(j|0)>(n|0)?j:n; -p=I[f+92>>1];j=(j|0)>(p|0)?j:p;f=I[f+132>>1];j=(f|0)<(j|0)?j:f;i=(i|0)<(k|0)?i:k;i=(i|0)<(n|0)?i:n;i=(i|0)<(p|0)?i:p;i=(f|0)>(i|0)?i:f;e=e+4|0;h=h+4|0;if((w|0)!=(h|0))continue;break}}if(m){f=0;while(1){h=I[(l+P(e,40)|0)+12>>1];j=(h|0)<(j|0)?j:h;i=(h|0)>(i|0)?i:h;e=e+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}if((i|0)>=(j|0))break a;z=a,A=Rb(i,s)+g|0,J[z>>2]=A;e=Rb(j,s)+g|0;J[a+4>>2]=e;g=e&-32;J[a+24>>2]=g;f=J[a>>2];k=f&-32;J[a+16>>2]=k;J[a+8>>2]=f&-64;n=g+32|0;J[a+28>>2]=n;l=k+32|0;J[a+20>>2]=l; -J[a+12>>2]=e+63&-64;if((e|0)<(l|0)){J[a+20>>2]=e;l=e}if((f|0)>(g|0)){J[a+24>>2]=f;g=f}h=e-f|0;J[a+32>>2]=h;if((h|0)>=65)e=g-l|0;else{J[a+24>>2]=e;J[a+20>>2]=f;e=h}J[a+36>>2]=e;f=n-k|0;J[a+40>>2]=f;l=(h|0)>=129?16:(h|0)<97?4:8;g=h-l|0;if((g|0)>(e|0)){J[a+36>>2]=g;e=g}g=h+l|0;if((g|0)<(f|0)){J[a+40>>2]=g;f=g}g=(P(h,3)|0)/4|0;if((g|0)>(e|0)){J[a+36>>2]=g;e=g}h=(P(h,5)|0)/4|0;if((h|0)<(f|0)){J[a+40>>2]=h;f=h}if((e|0)<=(f|0)){w=j-i|0;while(1){l=e;q=J[a>>2];h=J[a+32>>2];f=q+(h-e|0)|0;g=J[a+4>>2];c:{d:{if((e| -0)>=(h|0)){e=J[a+16>>2];if((f|0)>=(e|0))break d;f=(g-f|0)+e|0;break c}e=J[a+20>>2];if((f|0)<=(e|0))break d;f=(g-f|0)+e|0;break c}e=f;f=g}n=dc(l-h|0,w)+s|0;u=Rb(i,n);p=Nb(v,0,260);h=J[a+24>>2];k=f-e|0;m=J[a+16>>2];o=(h|0)>(k+m|0)?h-k|0:m;m=J[a+8>>2];h=o-m|0;e:{if((h|0)<0)break e;t=o;o=J[a+28>>2];r=J[a+20>>2];k=(o|0)<(k+r|0)?o-k|0:r;if((t|0)>(k|0))break e;k=k-m|0;if((k|0)>64)break e;o=f-g|0;f=o>>31;q=e-q|0;g=q>>31;q=P((f^o)-f+((g^q)-g)|0,10);u=e-u|0;o=e-m|0;m=(u-o|0)+h|0;f=0;while(1){e=P(f,44)+y|0; -r=I[e+8>>1]-I[e+6>>1]|0;g=Rb(I[e+2>>1],n)+m|0;e=h;while(1){t=p+(e<<2)|0;J[t>>2]=J[t>>2]+P(r,J[((g&63)<<2)+21040>>2]);g=g+1|0;t=(e|0)<(k|0);e=e+1|0;if(t)continue;break}f=f+1|0;if((x|0)!=(f|0))continue;break}f=J[a+52>>2];while(1){r=h-o|0;m=r+q|0;g=h;e=J[p+(h<<2)>>2];if(!((e|0)<=(f|0)&((e|0)!=(f|0)|(m|0)>=J[a+56>>2]))){J[a+56>>2]=m;J[a+52>>2]=e;J[a+44>>2]=n;J[a+48>>2]=r+u;f=e}h=g+1|0;if((g|0)<(k|0))continue;break}}e=l+1|0;if((l|0)>2])continue;break}}e=J[a+48>>2];a=J[a+44>>2];f=a-s|0;z=b,A=Rb(i, -f)+e|0,J[z+2752>>2]=A;z=b,A=Rb(j,f)+e|0,J[z+2756>>2]=A;J[c>>2]=a;J[d>>2]=e}xb=v+272|0}function jK(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;g=J[a+492>>2];i=J[b+16>>2];e=J[b+8>>2];Ab[J[b+28>>2]](b);c=3;a=J[b>>2];a:{b:{if(a>>>0>=e>>>0)break b;a=K[a|0];c:{if(a-48>>>0<=9){a=Ab[J[b+36>>2]](b)|0;J[b+144>>2]=a;if(J[b+12>>2])break a;if((a|0)<0)break b;f=a;a=J[b>>2];d=e-a>>2;if((f|0)<=(d|0))break c;J[b+144>>2]=d;break c}if((a|0)!=60)break b;Ab[J[b+32>>2]](b);if(J[b+12>>2])break a;Ab[J[b+ -28>>2]](b);d=J[b>>2];if(d>>>0>=e>>>0){a=d;break c}a=d;while(1){a=K[a|0]-47|0;d:{if(a){if((a|0)!=15)break d;J[b>>2]=d;J[b+144>>2]=h;a=d;break c}h=h+1|0}Ab[J[b+32>>2]](b);if(J[b+12>>2])break a;Ab[J[b+28>>2]](b);a=J[b>>2];if(e>>>0>a>>>0)continue;break}}if(J[b+264>>2]|a>>>0>=e>>>0)break b;k=b+200|0;c=Ab[J[J[g>>2]>>2]](k,J[b+144>>2],i)|0;if(c)break b;l=b+148|0;c=Ab[J[J[g>>2]>>2]](l,J[b+144>>2],i)|0;if(c)break b;h=b+252|0;c=Ab[J[J[g>>2]>>2]](h,4,i)|0;if(c)break b;Ab[J[b+28>>2]](b);a=J[b>>2];if(e>>>0<=a>>> -0){J[b+144>>2]=0;c=3;break b}i=0;g=0;d=0;while(1){e:{f:{c=K[a|0];if((c|0)!=101){if((c|0)==62)break e;break f}if(K[a+1|0]!=110|a+3>>>0>=e>>>0|K[a+2|0]!=100)break f;switch(K[a+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:break e;default:break f}}Ab[J[b+32>>2]](b);f=J[b>>2];if(f>>>0>=e>>>0){c=3;break b}if(J[b+12>>2])break a;g:{h:{j=K[a|0];switch(j-40|0){case 0:case 7:break h;default:break g}}c=3;m=(j|0)==40;if((m?3:2)+a>>>0>=e>>>0)break b;a=a+1|0;f=(f-a|0)-m|0;c=Ab[J[b+192>>2]](l,d,a,f+1|0)|0; -if(c)break b;c=f;f=d<<2;H[c+J[f+J[b+172>>2]>>2]|0]=0;if(K[a|0]==46){a=fc(10293,J[f+J[b+172>>2]>>2]);i=a?i:1;g=a?g:d}Ab[J[b+28>>2]](b);if((j|0)==40)Ab[J[b+32>>2]](b);a=J[b>>2];Ab[J[b+36>>2]](b)|0;c=3;j=J[b>>2];if(j>>>0>=e>>>0)break b;c=a;a=j-a|0;c=Ab[J[b+244>>2]](k,d,c,a+1|0)|0;if(c)break b;H[a+J[f+J[b+224>>2]>>2]|0]=0;d=d+1|0;if((d|0)>=J[b+144>>2])break e}Ab[J[b+28>>2]](b);a=J[b>>2];if(e>>>0>a>>>0)continue}break}J[b+144>>2]=d;if(!(i&255)){c=3;break b}a=J[J[b+172>>2]>>2];if(!fc(10293,a))break a;c= -Ab[J[b+296>>2]](h,0,a,J[J[b+176>>2]>>2])|0;if(c)break b;c=Ab[J[b+296>>2]](h,1,J[J[b+224>>2]>>2],J[J[b+228>>2]>>2])|0;if(c)break b;a=g<<2;c=Ab[J[b+296>>2]](h,2,J[a+J[b+172>>2]>>2],J[a+J[b+176>>2]>>2])|0;if(c)break b;c=Ab[J[b+296>>2]](h,3,J[a+J[b+224>>2]>>2],J[a+J[b+228>>2]>>2])|0;if(c)break b;c=Ab[J[b+192>>2]](l,g,J[J[b+276>>2]>>2],J[J[b+280>>2]>>2])|0;if(c)break b;c=Ab[J[b+244>>2]](k,g,J[J[b+276>>2]+4>>2],J[J[b+280>>2]+4>>2])|0;if(c)break b;c=Ab[J[b+192>>2]](l,0,J[J[b+276>>2]+8>>2],J[J[b+280>>2]+ -8>>2])|0;if(c)break b;c=Ab[J[b+244>>2]](k,0,J[J[b+276>>2]+12>>2],J[J[b+280>>2]+12>>2])|0;if(!c)break a}J[b+12>>2]=c}}function iF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!a)return 0;if(b>>>0>=257){J[a>>2]=1;J[a+124>>2]=0;b=K[226129]|K[226130]<<8|(K[226131]<<16|K[226132]<<24);c=K[226125]|K[226126]<<8|(K[226127]<<16|K[226128]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;b=K[226137]|K[226138]<<8|(K[226139]<<16|K[226140]<< -24);c=K[226133]|K[226134]<<8|(K[226135]<<16|K[226136]<<24);H[a+300|0]=c;H[a+301|0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304|0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[226144]|K[226145]<<8|(K[226146]<<16|K[226147]<<24);c=K[226140]|K[226141]<<8|(K[226142]<<16|K[226143]<<24);H[a+307|0]=c;H[a+308|0]=c>>>8;H[a+309|0]=c>>>16;H[a+310|0]=c>>>24;H[a+311|0]=b;H[a+312|0]=b>>>8;H[a+313|0]=b>>>16;H[a+314|0]=b>>>24;return 0}d=b>>>0<=1?1:b;J[a+124>>2]=d;d=P(d,80)+80|0;f=J[a+264>>2];a:{if(!f){d= -Qb(d);break a}d=ic(f,d)}J[a+264>>2]=d;b:{if(d){if(!J[a+124>>2])break b;b=b-1|0;if(b>>>0<2){while(1){f=P(e,80);b=f+d|0;Nb(b+8|0,0,72);J[b+64>>2]=0;J[b+68>>2]=1081073664;J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+268>>2];J[b+24>>2]=J[a+116>>2];O[b+16>>3]=O[a+136>>3];d=J[a+264>>2];b=f+d|0;J[b+64>>2]=0;J[b+68>>2]=1081073664;g=(+(e>>>0)+ +(c|0)*4294967296)*255;O[b+48>>3]=g;O[b+40>>3]=g;O[b+32>>3]=g;J[b+8>>2]=4;e=e+1|0;c=e?c:c+1|0;if(!c&M[a+124>>2]>e>>>0)continue;break}break b}h=+(255/(b>>>0)>>> -0);while(1){f=P(e,80);b=f+d|0;Nb(b+8|0,0,72);J[b+64>>2]=0;J[b+68>>2]=1081073664;J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+268>>2];J[b+24>>2]=J[a+116>>2];O[b+16>>3]=O[a+136>>3];d=J[a+264>>2];b=f+d|0;J[b+64>>2]=0;J[b+68>>2]=1081073664;g=(+(e>>>0)+ +(c|0)*4294967296)*h;O[b+48>>3]=g;O[b+40>>3]=g;O[b+32>>3]=g;J[b+8>>2]=4;e=e+1|0;c=e?c:c+1|0;if(!c&M[a+124>>2]>e>>>0)continue;break}break b}J[a>>2]=1;J[a+124>>2]=0;b=K[227523]|K[227524]<<8|(K[227525]<<16|K[227526]<<24);c=K[227519]|K[227520]<<8|(K[227521]<< -16|K[227522]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;b=K[227531]|K[227532]<<8|(K[227533]<<16|K[227534]<<24);c=K[227527]|K[227528]<<8|(K[227529]<<16|K[227530]<<24);H[a+300|0]=c;H[a+301|0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304|0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[227538]|K[227539]<<8|(K[227540]<<16|K[227541]<<24);c=K[227534]|K[227535]<<8|(K[227536]<<16|K[227537]<<24); -H[a+307|0]=c;H[a+308|0]=c>>>8;H[a+309|0]=c>>>16;H[a+310|0]=c>>>24;H[a+311|0]=b;H[a+312|0]=b>>>8;H[a+313|0]=b>>>16;H[a+314|0]=b>>>24;return 0}J[a>>2]=2;return 1}function ct(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,r=0,s=0;i=xb-256|0;xb=i;a:{b:{m=K[a|0]|K[a+1|0]<<8;e=m<<8|m>>>8;g=e&65535;if(g>>>0>64)break b;o=K[a+2|0]|K[a+3|0]<<8;p=a+4|0;j=J[c+4>>2];h=J[c>>2];f=J[b+88>>2];a=J[f+64>>2];J[b+4>>2]=a;c=J[J[b+8>>2]+88>>2];J[b+36>>2]=J[c+68>>2];d=J[c+64>>2]==(a|0)?K[(J[c+80>>2]+ -P(a,20)|0)+15|0]:d;J[b+32>>2]=p;J[b+28>>2]=j;J[b+24>>2]=h;H[b+23|0]=K[b+22|0]?d:0;c:{if((e&65535)>>>0<2){c=a;d=a;break c}a=K[(J[f+80>>2]+P(a,20)|0)+14|0];j=a>>>5|0;q=a&16?0:a&15;r=(q|0)!=0&a>>>0>31;h=1;while(1){a=J[b+4>>2];d=J[b+36>>2];k=d-1|0;if((a|0)>=(k|0))break b;d:{e:{f:{g:{while(1){c=a+1|0;J[b+4>>2]=c;a=J[b+12>>2];d=J[b+8>>2];e=J[J[d+88>>2]+80>>2]+P(c,20)|0;c=L[e+12>>1];h:{if(a&c&14)break h;i:{if(!(c&8))break i;if(a&16){if(jf(J[d+148>>2],a>>>16|0,J[e>>2]))break i;break h}a=a&65280;if(!a)break i; -if((a|0)!=(c&65280))break h}c=1;a=L[e+16>>1];if(!(K[e+12|0]&16|(a&96)!=32|!K[b+20|0]&(a&543)==513))c=!K[b+21|0]&(a&287)==257;d=J[b+32>>2];if(d){a=K[d|0]|K[d+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;j:{if(!(J[b+16>>2]&J[e+4>>2]))break j;l=K[b+23|0];if((l|0)!=K[e+15|0]?l:0)break j;l=J[b+24>>2];k:{if(l){if(!(Ab[l|0](e,a,J[b+28>>2])|0))break j;d=J[b+32>>2];break k}if(!c)break h}if(d)J[b+32>>2]=d+2;a=J[b+4>>2];J[(h<<2)+i>>2]=a;a=K[(J[f+80>>2]+P(a,20)|0)+14|0];c=a&16?0:a&15;d=a>>>5|0;if(!r)break f;if((d|0)== -(j|0)&(c|0)==(q|0))break d;d=0;switch(n|0){case 0:break g;case 1:break b;default:break d}}if(c)break e}a=J[b+4>>2];if((k|0)>(a|0))continue;break}d=J[b+36>>2];break b}a=J[f+72>>2];if(!a)break b;e=J[f+84>>2];n=e-6|0;while(1){k=P(a,20);c=K[k+n|0];if((j|0)!=(c>>>5|0))break b;if(!(!(c&15)|c&16)){a=a-1|0;if(a)continue;break b}break}n=2;c=J[b+12>>2];e=(e+k|0)-20|0;a=L[e+12>>1];if(c&a&14)break d;if(!(a&8))break b;if(Bd(J[b+8>>2],J[e>>2],a,c))break b;break d}if(!c|((d|0)==(j|0)|a>>>0<32))break d;d=0;break b}d= -J[b+4>>2]+1|0;break b}h=h+1|0;if((g|0)!=(h|0))continue;break}c=J[f+64>>2];f=J[b+88>>2];a=J[f+64>>2];d=J[b+4>>2]}J[i>>2]=c;s=1;c=a;a=d+1|0;Ac(f,3,c,a,1,0);Bo(b,g,i,(o<<8|o>>>8)&65535,(m?(g<<1)-2|0:0)+p|0,a);break a}b=J[b+88>>2];if(!(K[b+16|0]&64))break a;a=J[b+64>>2];J[b+144>>2]=J[b+144>>2]|32;c=J[b+68>>2];c=c>>>0>>0?c:d;if(c>>>0<=a>>>0)break a;f=c+(a^-1)|0;d=J[b+80>>2];e=c-a&3;if(e){b=0;while(1){g=d+P(a,20)|0;J[g+4>>2]=J[g+4>>2]|2;a=a+1|0;b=b+1|0;if((e|0)!=(b|0))continue;break}}if(f>>>0<3)break a; -while(1){b=d+P(a,20)|0;J[b+4>>2]=J[b+4>>2]|2;J[b+24>>2]=J[b+24>>2]|2;J[b+44>>2]=J[b+44>>2]|2;b=b- -64|0;J[b>>2]=J[b>>2]|2;a=a+4|0;if((c|0)!=(a|0))continue;break}}xb=i+256|0;return s}function xW(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;n=xb-16|0;xb=n;J[n+8>>2]=d;J[n+12>>2]=b;o=xb-16|0;xb=o;g=J[a>>2];a=J[n+8>>2];if((a|0)==-1)a=ac(c);J[o+12>>2]=a;l=xb-16|0;xb=l;d=J[g+24>>2];a=J[o+12>>2];a:{if(M[g+28>>2]>>0){if(d){Kb(d); -a=J[o+12>>2]}a=(a<<1)+10|0;J[g+28>>2]=a;b=Pb(a);J[g+24>>2]=b;Nb(b,0,a);break a}if(!K[d|0])break a;while(1){H[d|0]=0;a=K[d+1|0];d=d+1|0;if(a)continue;break}}b:{c:{f=J[n+12>>2];d:{if((f|0)==J[g+16>>2]){d=J[g+20>>2];break d}b=g+8|0;d=J[b>>2];if(!d)break c;a=b;while(1){e=(f|0)>J[d+16>>2];a=e?a:d;d=J[(e?d+4|0:d)>>2];if(d)continue;break}if((a|0)==(b|0)|(f|0)>2])break c;J[g+16>>2]=f;d=J[a+20>>2];J[g+20>>2]=d}a=0;if(!d)break b;J[l+12>>2]=0;J[l+8>>2]=0;J[l+4>>2]=0;i=J[o+12>>2];f=J[g+24>>2];j=l+12| -0;p=l+8|0;q=l+4|0;Eq(d,c,i,f,j,p,q,H[d+2|0],H[d+3|0],1,1);a=H[d|0];tz(J[d+36>>2],c,f,j,p,q,(a|0)<=0?2:a);a=H[d+1|0];sz(J[d+36>>2],c,i,f,j,p,q,(a|0)<=0?2:a);a=J[d+4>>2];e:{if(!a)break e;e=J[d+8>>2];if((e|0)<0)break e;while(1){b=Mc(c,a);if(b){while(1){e=b-c|0;h=e+f|0;y=(ac(a)+h|0)-1|0,z=48,H[y|0]=z;if((e|0)>0)H[h-1|0]=48;b=Mc(b+1|0,a);if(b)continue;break}e=J[d+8>>2]}a=(ac(a)+a|0)+1|0;b=(e|0)>(k|0);k=k+1|0;if(b)continue;break}}if(J[d+36>>2]){d=0;b=0;s=xb-16|0;xb=s;f:{g:{h:{i:{if((K[c|0]&192)!=128){if((i| -0)<=0){a=-1;break g}if(!(!q|(!j|!p))){a=-1;while(1){w=b+c|0;a=((K[w|0]&192)!=128)+a|0;H[f+a|0]=K[b+f|0];t=J[j>>2];j:{if(!t)break j;d=J[p>>2];if(!d)break j;r=J[q>>2];if(!r)break j;k=b<<2;h=J[k+d>>2];u=a<<2;m=d+u|0;J[m>>2]=0;k:{if((h|0)<=0)break k;e=0;d=0;if((h|0)!=1){x=h&-2;v=0;while(1){if((K[(b-d|0)+c|0]&192)!=128){e=e+1|0;J[m>>2]=e}if((K[(d^-1)+w|0]&192)!=128){e=e+1|0;J[m>>2]=e}d=d+2|0;v=v+2|0;if((x|0)!=(v|0))continue;break}}if(!(h&1)|(K[(b-d|0)+c|0]&192)==128)break k;J[m>>2]=e+1}m=J[k+r>>2];e=0; -r=r+u|0;J[r>>2]=0;if((m|0)>0){d=(b-h|0)+1|0;h=m+d|0;while(1){if((K[c+d|0]&192)!=128){e=e+1|0;J[r>>2]=e}d=d+1|0;if((h|0)>(d|0))continue;break}}J[t+u>>2]=J[k+t>>2];if((a|0)>=(b|0))break j;J[k+J[j>>2]>>2]=0;J[k+J[p>>2]>>2]=0;J[k+J[q>>2]>>2]=0}b=b+1|0;if((i|0)!=(b|0))continue;break}break g}e=i&1;if((i|0)!=1)break i;a=-1;break h}J[s>>2]=c;Sc(J[189490],228607,s);break f}i=i&-2;a=-1;while(1){a=((K[c+d|0]&192)!=128)+a|0;H[a+f|0]=K[d+f|0];j=d|1;a=a+((K[j+c|0]&192)!=128)|0;H[f+a|0]=K[f+j|0];d=d+2|0;b=b+2|0; -if((i|0)!=(b|0))continue;break}}if(!e)break g;a=((K[c+d|0]&192)!=128)+a|0;H[f+a|0]=K[d+f|0]}H[(a+f|0)+1|0]=0}xb=s+16|0}a=J[g+24>>2];break b}J[g+20>>2]=0;J[g+16>>2]=f;a=0}xb=l+16|0;xb=o+16|0;xb=n+16|0;return a|0}function sj(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;e=xb-32|0;xb=e;c=J[a+44>>2];J[e+4>>2]=c;a:{if(!c)break a;d=Opa(J[a+24>>2],31);if(d>>>0>8|!(1<>2]=J[c+32>>2];f=J[a+4>>2];J[c+32>>2]=0;J[c+4>>2]=f;d=J[c>>2];h=J[a+16>>2];J[a+16>>2]=0;J[a+4>>2]=h?h:d;if((d| -0)==(f|0))break a;f=f-d|0;b:{c:{d:{e:{if(b){J[e+28>>2]=0;J[e+20>>2]=d;J[e+24>>2]=(f|0)>=128?128:f;i=rj(e+20|0);d=J[c+12>>2];c=J[c+16>>2];J[e+16>>2]=0;J[e+8>>2]=c;J[e+12>>2]=P(d,12);j=rj(e+8|0);if(J[a+92>>2]){d=J[e+4>>2];g=J[d+4>>2];c=J[d>>2];J[e+28>>2]=0;J[e+20>>2]=c;c=g-c|0;J[e+24>>2]=(c|0)>=128?128:c;c=rj(e+20|0);g=J[d+12>>2];d=J[d+16>>2];J[e+16>>2]=0;J[e+8>>2]=d;J[e+12>>2]=P(g,12);d=Vt(a+60|0,e+4|0,rj(e+8|0)^c);d=d?d+8|0:169776}else d=169776;g=J[d>>2];J[e+20>>2]=g;c=J[e+4>>2];if(g)break e;g=i^ -j}d=J[a+8>>2]-f|0;J[a+8>>2]=d;if(!h){qc(d,J[c>>2],f);c=J[e+4>>2];d=J[a+8>>2]}J[c>>2]=d;J[J[e+4>>2]+4>>2]=d+f;c=J[a+48>>2];d=J[a+52>>2];if((c|0)>(d|0))break c;if((c|0)>=0){f=d+1|0;if(f>>>0<=c>>>0)break c;d=c;while(1){d=((d>>>1|0)+d|0)+8|0;if(f>>>0>d>>>0)continue;break}if(d>>>0<=1073741823){c=ic(J[a+56>>2],d<<2);if(c)break d;c=J[a+48>>2];if(d>>>0<=c>>>0)break c}c=c^-1;J[a+48>>2]=c}J[194120]=J[42444];break b}f:{if(M[a+52>>2]<=g>>>0){J[194120]=J[42444];a=776480;break f}a=J[a+56>>2]+(g<<2)|0}b=J[c+24>> -2];if(b){c=J[c+28>>2];f=c+P(b,12)|0;a=J[a>>2];while(1){d=J[a+20>>2];h=J[a+24>>2];g:{h:{if((d|0)>(h|0))break h;i:{if((d|0)>=0){b=d;h=h+1|0;if(h>>>0<=d>>>0)break h;while(1){b=((b>>>1|0)+b|0)+8|0;if(h>>>0>b>>>0)continue;break}if(b>>>0<=357913941){d=ic(J[a+28>>2],P(b,12));if(d)break i;d=J[a+20>>2];if(d>>>0>=b>>>0)break h}J[a+20>>2]=d^-1}J[194122]=J[42446];b=J[42445];J[194120]=J[42444];J[194121]=b;break g}J[a+20>>2]=b;J[a+28>>2]=d}b=J[a+24>>2];J[a+24>>2]=b+1;b=J[a+28>>2]+P(b,12)|0;J[b+8>>2]=J[c+8>>2]; -d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d}c=c+12|0;if((f|0)!=(c|0))continue;break}c=J[e+4>>2]}if(J[c+8>>2]){J[c+12>>2]=0;Kb(J[c+16>>2])}J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;if(J[c+20>>2]){J[c+24>>2]=0;Kb(J[c+28>>2])}J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;break a}J[a+48>>2]=d;J[a+56>>2]=c;c=d}d=J[a+52>>2];J[a+52>>2]=d+1;J[J[a+56>>2]+(d<<2)>>2]=J[e+4>>2]}j:{d=J[a+24>>2];k:{if(!(d|(c|0)>=0)){J[a+24>>2]=1;break k}if(!d)break j}a=J[e+4>>2];if(J[a+8>>2]){J[a+12>>2]=0;Kb(J[a+16>>2])}J[a+8>>2]=0;J[a+12>>2]= -0;J[a+16>>2]=0;if(J[a+20>>2]){J[a+24>>2]=0;Kb(J[a+28>>2])}J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;g=0;break a}J[e+20>>2]=J[a+52>>2]-1;c=0;if(b){Ut(a+60|0,e+4|0,g,e+20|0);c=J[a+24>>2]}if(!(c|J[a+72>>2]&1))J[a+24>>2]=1;g=J[e+20>>2]}xb=e+32|0;return g|0}function st(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;g=J[b+12>>2];h=J[b+4>>2];a:{if(g>>>0>>0)break a;d=J[b+8>>2];if(((K[a|0]|K[a+1|0]<<8)&65279)!=512|d-a>>>0<8)break a;e=a+4|0;if(g>>>0>>0|d-e>>>0<4)break a;f=K[e|0]|K[e+ -1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);f=Kpa(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24),0,48,0);if(zb)break a;m=a+8|0;if(g>>>0>>0|f>>>0>d-m>>>0)break a;f=J[b+16>>2]-f|0;J[b+16>>2]=f;if((f|0)<=0)break a;c=1;f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(!f)break a;f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);p=f>>>0<=1?1:f;while(1){f=0;d=J[b+12>>2];h=(P(n,48)+a|0)+8|0;g=J[b+4>>2];c=d>>>0>>0;b:{if(c)break b;i=J[b+8>>2];e=i-h|0;if(c|e>>>0<48|(K[h|0]&128|e>>>0<4))break b;c=K[h+8|0]|K[h+9|0]<<8| -(K[h+10|0]<<16|K[h+11|0]<<24);o=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(o>>>0>536870911)break b;e=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);m=(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))+a|0;if(d>>>0>>0)break b;e=o<<3;if(e>>>0>i-m>>>0)break b;e=J[b+16>>2]-e|0;J[b+16>>2]=e;if((e|0)<=0)break b;c:{if(!c)break c;while(1){d:{e:{k=J[b+12>>2];c=m+(f<<3)|0;i=J[b+4>>2];if(k>>>0>>0)break e;l=J[b+8>>2];e=l;if(e-c>>>0<8)break e;g=K[c|0]|K[c+1|0]<<8;d=(g<<8|g>>>8)&65535;g=K[c+2|0]|K[c+3|0]<<8;j= -(g<<8|g>>>8)&65535;if(d>>>0>j>>>0)break e;g=c+4|0;if(k>>>0>>0|e-g>>>0<4|K[g|0]&128)break e;e=1;c=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);f:{if(!c)break f;j=(j-d|0)+1|0;g:{h:{d=m+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;if(k>>>0>>0|l-d>>>0<8)break h;c=1;i:{j:{k:{i=K[d|0]|K[d+1|0]<<8;switch(((i<<8|i>>>8)&65535)-1|0){case 2:break j;case 0:break k;default:break i}}i=J[b+12>>2];c=J[b+4>>2];if(i>>>0>>0)break h;k=J[b+8>>2];if(k-d>>>0<8)break h;j=j+1|0;if(j>>>0>1073741823)break h; -d=d+8|0;if(i>>>0>>0)break h;c=0;l=k-d|0;d=j<<2;if(l>>>0>>0)break i;c=J[b+16>>2]-d|0;J[b+16>>2]=c;c=(c|0)>0;break g}k=J[b+12>>2];i=J[b+4>>2];if(k>>>0>>0)break h;c=0;l=J[b+8>>2];if(l-d>>>0<8)break i;j=j+1|0;if((j|0)<0)break i;d=d+8|0;if(k>>>0>>0)break i;l=l-d|0;d=j<<1;if(l>>>0>>0)break i;c=J[b+16>>2]-d|0;J[b+16>>2]=c;c=(c|0)>0}break g}c=0}if(c)break f;c=J[b+32>>2];if(c>>>0>31)break e;J[b+32>>2]=c+1;e=0;if(!K[b+28|0])break f;H[g|0]=0;H[g+1|0]=0;H[g+2|0]=0;H[g+3|0]=0;e=1}break d}e= -0}if(e){f=f+1|0;if((o|0)!=(f|0))continue;break c}break}f=0;break b}f=0;g=J[b+12>>2];c=h+16|0;e=J[b+4>>2];if(g>>>0>>0)break b;d=J[b+8>>2];if(d-c>>>0<12)break b;f=h+28|0;f=f-e>>>0<=g>>>0&d-f>>>0>11}c=f;if(!c)break a;n=n+1|0;if((p|0)!=(n|0))continue;break}}return c}function Xna(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;a:{b:{c:{d:{e:{f:{g:{h:switch(a-17|0){default:i:switch(a-292|0){case 0:break e;case 1:break g;default:break i}if((a|0)!=263)break c;e=J[c+4>>2];d=J[c+8>>2];j:{k:{if((e| -0)>(d|0))break k;l:{if((e|0)>=0){f=d+1|0;if(f>>>0<=e>>>0)break k;d=e;while(1){d=((d>>>1|0)+d|0)+8|0;if(f>>>0>d>>>0)continue;break}if(d>>>0<=357913941){e=ic(J[c+12>>2],P(d,12));if(e)break l;e=J[c+4>>2];if(e>>>0>=d>>>0)break k}J[c+4>>2]=e^-1}J[194122]=J[42446];d=J[42445];J[194120]=J[42444];J[194121]=d;e=776480;break j}J[c+4>>2]=d;J[c+12>>2]=e}d=J[c+8>>2];J[c+8>>2]=d+1;e=J[c+12>>2]+P(d,12)|0;J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=65535}J[e+4>>2]=263;i=J[b+8>>2];g=J[b+4>>2];f=J[c>>2];J[e>>2]=f+J[b>>2];j=e;d= -g-f|0;e=d>>>0<=g>>>0?d:0;d=i-f|0;H[j+8|0]=d>>>0>e>>>0?e:d;J[c>>2]=i;e=b+20|0;break d;case 1:case 2:case 3:case 4:case 5:case 6:break c;case 0:break f;case 7:break h}g=b+16|0;e=b+20|0;d=J[e>>2];m:{if(d){h=O[g+(d<<3)>>3];break m}H[g|0]=1;f=J[42445];d=J[42444];J[194120]=d;J[194121]=f;x(0,d|0);x(1,f|0);h=+z()}n:{if(R(h)<2147483648){d=~~h;break n}d=-2147483648}if((d|0)<0){H[g|0]=1;d=0}J[c+24>>2]=d;break d}g=b+16|0;e=b+20|0;d=J[e>>2];o:{if(d){h=O[g+(d<<3)>>3];break o}H[g|0]=1;f=J[42445];d=J[42444];J[194120]= -d;J[194121]=f;x(0,d|0);x(1,f|0);h=+z()}p:{if(R(h)<2147483648){d=~~h;break p}d=-2147483648}if((d|0)<0){H[g|0]=1;d=0}J[c+28>>2]=d;break d}g=b+16|0;e=b+20|0;d=J[e>>2];q:{if(d){h=O[g+(d<<3)>>3];break q}H[g|0]=1;f=J[42445];d=J[42444];J[194120]=d;J[194121]=f;x(0,d|0);x(1,f|0);h=+z()}r:{if(R(h)<2147483648){d=~~h;break r}d=-2147483648}if((d|0)<0){H[g|0]=1;d=0}J[c+16>>2]=d;break d}g=b+16|0;e=b+20|0;d=J[e>>2];s:{if(d){h=O[g+(d<<3)>>3];break s}H[g|0]=1;f=J[42445];d=J[42444];J[194120]=d;J[194121]=f;x(0,d|0); -x(1,f|0);h=+z()}t:{if(R(h)<2147483648){d=~~h;break t}d=-2147483648}if((d|0)<0){H[g|0]=1;d=0}J[c+20>>2]=d}J[e>>2]=0;break b}Ek(a,b);if(J[b+20>>2])break a}if(K[b+16|0]|M[b+8>>2]>M[b+4>>2])break a;e=J[c+4>>2];d=J[c+8>>2];u:{v:{if((e|0)>(d|0))break v;w:{if((e|0)>=0){f=d+1|0;if(f>>>0<=e>>>0)break v;d=e;while(1){d=((d>>>1|0)+d|0)+8|0;if(f>>>0>d>>>0)continue;break}if(d>>>0<=357913941){e=ic(J[c+12>>2],P(d,12));if(e)break w;e=J[c+4>>2];if(e>>>0>=d>>>0)break v}J[c+4>>2]=e^-1}J[194122]=J[42446];d=J[42445];J[194120]= -J[42444];J[194121]=d;e=776480;break u}J[c+4>>2]=d;J[c+12>>2]=e}d=J[c+8>>2];J[c+8>>2]=d+1;e=J[c+12>>2]+P(d,12)|0;J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=65535}J[e+4>>2]=a;g=J[b+8>>2];f=J[b+4>>2];d=J[c>>2];J[e>>2]=d+J[b>>2];a=f-d|0;b=a>>>0<=f>>>0?a:0;a=g-d|0;H[e+8|0]=a>>>0>b>>>0?b:a;J[c>>2]=g}}function boa(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:{f=J[a+4>>2];e=J[a>>2];k=e+10|0;e=K[e|0]|K[e+1|0]<<8;h=(e<<8|e>>>8)<<16>>16;g=k+(h<<1)|0;b:{if(f>>>0>g>>>0)break b;e=f+J[a+8>>2]|0;if(e>>>0< -g>>>0|e-g>>>0<2)break b;e=J[b>>2];if((e|0)<0)break b;f=J[b+4>>2];j=f;d=g-2|0;d=K[d|0]|K[d+1|0]<<8;i=((d<<8|d>>>8)&65535)+1|0;d=(i+f|0)+4|0;d=d>>>0>>0?f:d;c:{if(!(e>>>0>>0|e>>>2>>>0>d>>>0)){d=f+i|0;f=(d|0)>0?d:0;break c}d:{e:{if(d>>>0>=357913942){d=e^-1;break e}e=J[b+8>>2];f:{if(!d){Kb(e);f=0;break f}f=ic(e,P(d,12));if(f)break f;e=d;d=J[b>>2];if(e>>>0<=d>>>0)break d;d=d^-1;break e}J[b+8>>2]=f}J[b>>2]=d}if((d|0)<0)break a;e=i+J[b+4>>2]|0;f=(e|0)>0?e:0;e=d}g:{if(e>>>0>=f>>>0)break g;d=e;while(1){d= -((d>>>1|0)+d|0)+8|0;if(f>>>0>d>>>0)continue;break}h:{if(d>>>0<=357913941){e=ic(J[b+8>>2],P(d,12));if(e)break h;e=J[b>>2];if(e>>>0>=d>>>0)break g}J[b>>2]=e^-1;break a}J[b>>2]=d;J[b+8>>2]=e}J[b+4>>2]=f;d=1;if(c)break b;d=0;c=f-j|0;f=j?c>>>0<=f>>>0?c:0:f;j=J[b+8>>2]+P(j,12)|0;i=Nb(j,0,P(i,12));if((h|0)>0)while(1){b=(d<<1)+k|0;b=K[b|0]|K[b+1|0]<<8;b=(b<<8|b>>>8)&65535;i:{if(b>>>0>=f>>>0){J[194122]=J[42446];b=J[42445];J[194120]=J[42444];J[194121]=b;b=776480;break i}b=i+P(b,12)|0}H[b+9|0]=1;d=d+1|0;if((h| -0)!=(d|0))continue;break}d=0;b=K[g|0]|K[g+1|0]<<8;c=(g+((b<<8|b>>>8)&65535)|0)+2|0;b=J[a+4>>2];if(c>>>0>>0)break b;h=b+J[a+8>>2]|0;if(h>>>0<=c>>>0)break b;d=1;if(!f)break b;a=0;while(1){d=0;b=c+1|0;if(b>>>0>h>>>0)break b;g=K[c|0];H[(i+P(a,12)|0)+8|0]=g;e=a+1|0;j:{if(!(g&8)){c=b;break j}c=c+2|0;if(h>>>0>>0)break b;b=K[b|0]+e|0;d=b>>>0>>0?b:f;if(d>>>0<=e>>>0)break j;b=0;k=d+(a^-1)&7;if(k)while(1){H[(i+P(e,12)|0)+8|0]=g;e=e+1|0;b=b+1|0;if((k|0)!=(b|0))continue;break}if((d-a|0)-2>>>0>=7)while(1){a= -i+P(e,12)|0;H[a+8|0]=g;H[a+20|0]=g;H[a+32|0]=g;H[a+44|0]=g;H[a+56|0]=g;H[a+68|0]=g;H[a+80|0]=g;H[a+92|0]=g;e=e+8|0;if((d|0)!=(e|0))continue;break}e=d}a=e;if(f>>>0>e>>>0)continue;break}k=i+P(f,12)|0;b=0;d=i;e=c;while(1){f=K[d+8|0];k:{l:{if(f&2){c=e+1|0;if(h>>>0>>0)break a;e=K[e|0];a=e+b|0;if(f&16)break l;a=b-e|0;break l}if(f&16)break k;c=e+2|0;if(h>>>0>>0)break a;a=K[e|0]|K[e+1|0]<<8;a=((a<<8|a>>>8)<<16>>16)+b|0}b=a;e=c}N[d>>2]=b|0;d=d+12|0;if((k|0)!=(d|0))continue;break}d=0;while(1){e=K[j+8| -0];m:{if(e&4){a=c+1|0;if(a>>>0>h>>>0)break a;b=K[c|0];if(e&32){d=b+d|0;c=a;break m}d=d-b|0;c=a;break m}if(e&32)break m;a=c+2|0;if(a>>>0>h>>>0)break a;b=K[c|0]|K[c+1|0]<<8;d=((b<<8|b>>>8)<<16>>16)+d|0;c=a}N[j+4>>2]=d|0;j=j+12|0;if((k|0)!=(j|0))continue;break}d=1}return d|0}return 0}function lv(a,b){var c=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((b|0)<=1935833198){if((b|0)<=1751346272){J:switch(b-1735618608|0){case 9:break z;case 8:break A; -case 7:break B;case 6:break C;case 5:break D;case 4:break E;case 3:break F;case 2:break G;case 1:break H;case 0:break I;default:break J}if((b|0)==1668311156)break y;if((b|0)!=1751216995)break a;return a+442|0}if((b|0)<=1751347821)switch(b-1751346273|0){case 1:case 2:break a;case 3:break w;case 0:break x;default:break v}K:switch(b-1751347822|0){case 1:case 2:case 3:case 4:break a;case 5:break t;case 0:break u;default:break K}if((b|0)==1751413603)break s;if((b|0)!=1751934832)break a;return a+446|0}if((b| -0)<=1970168942){if((b|0)<=1936750702){L:switch(b-1935833199|0){case 1:case 2:case 3:break a;case 4:break q;case 0:break r;default:break L}switch(b-1935833455|0){case 4:break o;case 0:break p;default:break a}}M:switch(b-1936750703|0){case 1:case 2:case 3:break a;case 4:break m;case 0:break n;default:break M}N:switch(b-1936750959|0){case 1:case 2:case 3:break a;case 4:break k;case 0:break l;default:break N}switch(b-1937011311|0){case 0:break j;case 4:break i;default:break a}}if((b|0)<=1986228845){O:switch(b- -1970168943|0){case 1:case 2:case 3:break a;case 4:break g;case 0:break h;default:break O}if((b|0)==1986098019)break f;if((b|0)!=1986228070)break a;return a+318|0}if((b|0)<=1986815855)switch(b-1986228846|0){case 1:case 2:case 3:case 4:break a;case 5:break d;case 0:break e;default:break c}if((b|0)==1986815856)break b;if((b|0)!=2020108148)break a;return a+460|0}if(L[a+562>>1]<2)break a;return J[a+564>>2]}if(L[a+562>>1]<3)break a;return J[a+564>>2]+4|0}if(L[a+562>>1]<4)break a;return J[a+564>>2]+8|0}if(L[a+ -562>>1]<5)break a;return J[a+564>>2]+12|0}if(L[a+562>>1]<6)break a;return J[a+564>>2]+16|0}if(L[a+562>>1]<7)break a;return J[a+564>>2]+20|0}if(L[a+562>>1]<8)break a;return J[a+564>>2]+24|0}if(L[a+562>>1]<9)break a;return J[a+564>>2]+28|0}if(L[a+562>>1]<10)break a;return J[a+564>>2]+32|0}if(L[a+562>>1]<11)break a;return J[a+564>>2]+36|0}return a+462|0}return a+448|0}return a+450|0}if((b|0)!=1751347046)break a;return a+238|0}return a+236|0}return a+234|0}return a+444|0}return a+386|0}return a+382|0}return a+ -388|0}return a+384|0}return a+394|0}return a+390|0}return a+396|0}return a+392|0}return a+400|0}return a+398|0}return a+484|0}return a+486|0}return a+300|0}return a+316|0}return a+314|0}if((b|0)!=1986294627)break a;return a+302|0}c=a+304|0}return c}function Xfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;z=xb-416|0;xb=z;u=J[a+332>>2];b=J[b+84>>2];a=z;while(1){p=J[b+224>>2];l=I[c+112>>1];g=J[b+96>>2];i=I[c+48>> -1];s=J[b+160>>2];t=I[c+80>>1];h=J[b+32>>2];j=I[c+16>>1];m=P(I[c>>1],J[b>>2])<<13|1024;f=P(J[b+128>>2],I[c+64>>1]);o=P(J[b+192>>2],I[c+96>>1]);n=f-o|0;k=P(J[b+64>>2],I[c+32>>1]);J[a+192>>2]=m+P(n-k|0,11585)>>11;g=P(g,i);h=P(h,j);j=P(g+h|0,10832);q=m+P(n,793)|0;f=f+o|0;o=P(f,9465);v=q+(o+P(k,11249)|0)|0;i=P(s,t);s=P(i+h|0,9534);p=P(p,l);l=p+h|0;t=P(l,7682);r=(s+(j+P(h,-16549)|0)|0)+t|0;J[a+384>>2]=v-r>>11;J[a>>2]=r+v>>11;r=m+P(n,3989)|0;v=P(f,2592);x=r+(P(k,8672)-v|0)|0;y=P(g+i|0,-2773);w=y+(j+P(g, -6859)|0)|0;j=P(g+p|0,-9534);w=w+j|0;J[a+352>>2]=x-w>>11;J[a+32>>2]=x+w>>11;o=q+(P(k,4108)-o|0)|0;q=s+(P(i,-12879)+y|0)|0;s=P(i+p|0,-5384);q=q+s|0;J[a+320>>2]=o-q>>11;J[a+64>>2]=o+q>>11;n=m+P(n,-7678)|0;f=P(f,3570);m=n+(P(k,-1396)-f|0)|0;j=s+(t+(j+P(p,18068)|0)|0)|0;J[a+288>>2]=m-j>>11;J[a+96>>2]=j+m>>11;n=n+(f+P(k,-6581)|0)|0;f=P(h,2611);h=P(l,2773)+P(i-g|0,7682)|0;g=(f+h|0)+P(g,-3818)|0;J[a+256>>2]=n-g>>11;J[a+128>>2]=g+n>>11;k=r+(v+P(k,-10258)|0)|0;g=(h+P(i,3150)|0)+P(p,-14273)|0;J[a+224>>2]=k- -g>>11;J[a+160>>2]=g+k>>11;a=a+4|0;b=b+4|0;c=c+2|0;A=A+1|0;if((A|0)!=8)continue;break}a=u+128|0;b=z;n=0;while(1){g=J[b+12>>2];h=J[b+4>>2];f=P(g+h|0,10832);c=J[(n<<2)+d>>2]+e|0;p=J[b+28>>2];s=p+h|0;t=P(s,7682);i=J[b+20>>2];l=P(i+h|0,9534);o=t+(l+(f+P(h,-16549)|0)|0)|0;m=J[b+24>>2];j=J[b+16>>2];u=m+j|0;q=P(u,9465);k=J[b+8>>2];m=j-m|0;j=(J[b>>2]<<13)+131072|0;v=P(m,793)+j|0;r=(q+P(k,11249)|0)+v|0;H[c|0]=K[a+(o+r>>>18&1023)|0];H[c+12|0]=K[a+(r-o>>>18&1023)|0];o=P(g+p|0,-9534);r=f+P(g,6859)|0;f=P(g+i|0, --2773);r=o+(r+f|0)|0;y=j+P(m,3989)|0;x=P(u,2592);w=y+(P(k,8672)-x|0)|0;H[c+1|0]=K[a+(r+w>>>18&1023)|0];H[c+11|0]=K[a+(w-r>>>18&1023)|0];l=l+(f+P(i,-12879)|0)|0;f=P(i+p|0,-5384);l=l+f|0;q=v+(P(k,4108)-q|0)|0;H[c+2|0]=K[a+(l+q>>>18&1023)|0];H[c+10|0]=K[a+(q-l>>>18&1023)|0];f=f+(t+(o+P(p,18068)|0)|0)|0;l=j+P(m,-7678)|0;u=P(u,3570);t=l+(P(k,-1396)-u|0)|0;H[c+3|0]=K[a+(f+t>>>18&1023)|0];H[c+9|0]=K[a+(t-f>>>18&1023)|0];f=P(h,2611);h=P(s,2773)+P(i-g|0,7682)|0;g=(f+h|0)+P(g,-3818)|0;f=l+(u+P(k,-6581)|0)| -0;H[c+4|0]=K[a+(g+f>>>18&1023)|0];H[c+8|0]=K[a+(f-g>>>18&1023)|0];g=(h+P(i,3150)|0)+P(p,-14273)|0;i=y+(x+P(k,-10258)|0)|0;H[c+5|0]=K[a+(g+i>>>18&1023)|0];H[c+7|0]=K[a+(i-g>>>18&1023)|0];H[c+6|0]=K[a+(j+P(m-k|0,11585)>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=13)continue;break}xb=z+416|0}function Tr(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;i=J[b+20>>2];d=J[b+16>>2];n=J[b+12>>2];h=J[b+8>>2];j=J[b+4>>2];f=J[b>>2];a:{if(!((n|0)<(h|0)|(j|0)<=(f|0)|(d|0)>(i|0))){l=d<<1;k=f;while(1){m= -J[(k<<2)+a>>2];g=h;while(1){e=l+(m+(g<<6)|0)|0;c=d;while(1){if(L[e>>1]){J[b>>2]=k;break a}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o)continue;break}c=(g|0)!=(n|0);g=g+1|0;if(c)continue;break}c=(j|0)!=(k|0);k=k+1|0;if(c)continue;break}}k=f}b:{if(!((j|0)<=(k|0)|(h|0)>(n|0)|(d|0)>(i|0))){f=d<<1;l=j;while(1){m=J[(l<<2)+a>>2];g=h;while(1){e=f+(m+(g<<6)|0)|0;c=d;while(1){if(L[e>>1]){J[b+4>>2]=l;break b}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o)continue;break}c=(g|0)!=(n|0);g=g+1|0;if(c)continue;break}c=(k|0)<(l|0); -l=l-1|0;if(c)continue;break}}l=j}c:{if(!((k|0)>(l|0)|(h|0)>=(n|0)|(d|0)>(i|0))){g=d<<1;j=h;while(1){m=j<<6;f=k;while(1){e=g+(m+J[(f<<2)+a>>2]|0)|0;c=d;while(1){if(L[e>>1]){J[b+8>>2]=j;break c}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o)continue;break}c=(f|0)!=(l|0);f=f+1|0;if(c)continue;break}c=(j|0)!=(n|0);j=j+1|0;if(c)continue;break}}j=h}d:{if(!((k|0)>(l|0)|(j|0)>=(n|0)|(d|0)>(i|0))){f=d<<1;g=n;while(1){h=g<<6;m=k;while(1){e=f+(h+J[(m<<2)+a>>2]|0)|0;c=d;while(1){if(L[e>>1]){J[b+12>>2]=g;break d}e=e+2|0; -o=(c|0)!=(i|0);c=c+1|0;if(o)continue;break}c=(l|0)!=(m|0);m=m+1|0;if(c)continue;break}c=(g|0)>(j|0);g=g-1|0;if(c)continue;break}}g=n}e:{if(!((k|0)>(l|0)|(d|0)>=(i|0)|(g|0)<(j|0))){n=j<<6;f=d;while(1){m=f<<1;h=k;while(1){e=m+(n+J[(h<<2)+a>>2]|0)|0;c=j;while(1){if(L[e>>1]){J[b+16>>2]=f;break e}e=e- -64|0;o=(c|0)!=(g|0);c=c+1|0;if(o)continue;break}c=(h|0)!=(l|0);h=h+1|0;if(c)continue;break}c=(f|0)!=(i|0);f=f+1|0;if(c)continue;break}}f=d}f:{if(!((k|0)>(l|0)|(f|0)>=(i|0)|(g|0)<(j|0))){n=j<<6;h=i;while(1){m= -h<<1;d=k;while(1){e=m+(n+J[(d<<2)+a>>2]|0)|0;c=j;while(1){if(L[e>>1]){J[b+20>>2]=h;break f}e=e- -64|0;o=(c|0)!=(g|0);c=c+1|0;if(o)continue;break}c=(d|0)!=(l|0);d=d+1|0;if(c)continue;break}c=(f|0)<(h|0);h=h-1|0;if(c)continue;break}}h=i}c=P(g-j|0,12);d=P(c,c);c=l-k<<4;d=d+P(c,c)|0;n=h-f|0;c=n<<3;J[b+24>>2]=d+P(c,c);c=0;if(!((g|0)<(j|0)|(k|0)>(l|0))){o=n+1&3;while(1){if((f|0)<=(h|0)){p=J[(k<<2)+a>>2];m=j;while(1){i=(p+(m<<6)|0)+(f<<1)|0;d=0;e=f;if(o)while(1){e=e+1|0;c=(L[i>>1]!=0)+c|0;i=i+2|0;d=d+1| -0;if((o|0)!=(d|0))continue;break}if(n>>>0>=3)while(1){c=((((L[i>>1]!=0)+c|0)+(L[i+2>>1]!=0)|0)+(L[i+4>>1]!=0)|0)+(L[i+6>>1]!=0)|0;i=i+8|0;d=e+3|0;e=e+4|0;if((d|0)!=(h|0))continue;break}d=(g|0)!=(m|0);m=m+1|0;if(d)continue;break}}d=(k|0)!=(l|0);k=k+1|0;if(d)continue;break}}J[b+28>>2]=c}function TG(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;d=K[a+2|0]|K[a+3|0]<<8;if(d)c=((d<<8|d>>>8)&65535)+a|0;else c=169776;d=J[b+88>>2];d=ld(c,J[J[d+80>>2]+P(J[d+64>>2],20)>>2]);if((d|0)!=-1){e= -K[a+4|0]|K[a+5|0]<<8;d=d>>>0>=((e<<8|e>>>8)&65535)>>>0?169776:((d<<1)+a|0)+6|0;d=K[d|0]|K[d+1|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+a|0;else d=169776;e=xb-1136|0;xb=e;a=J[b+88>>2];c=J[a+156>>2];a:{b:{c:{d:{f=K[d|0]|K[d+1|0]<<8;g=(f<<8|f>>>8)&65535;switch(g|0){case 0:break c;case 1:break d;default:break b}}if(c){qf(a);a=J[b+80>>2];c=J[b+88>>2];J[e+64>>2]=J[c+64>>2];nc(c,a,129538,e- -64|0)}a=K[d+2|0]|K[d+3|0]<<8;Co(b,(a<<8|a>>>8)&65535);a=J[b+88>>2];if(!J[a+156>>2])break a;b=J[b+80>>2];J[e+48>>2]=J[a+64>> -2]-1;nc(a,b,129595,e+48|0);break a}if(c){qf(a);a=J[b+80>>2];d=J[b+88>>2];J[e+96>>2]=J[d+64>>2];nc(d,a,129651,e+96|0);a=J[b+88>>2]}g=J[a+80>>2];d=J[a+64>>2];f=J[(g+P(d,20)|0)+8>>2];i=d+1|0;e:{f:{g:{if(i>>>0>2]){if((f|0)==J[(g+P(i,20)|0)+8>>2])break f;c=J[a+72>>2];if(c)break g;Kd(a,d,d+2|0);J[a+64>>2]=J[a+64>>2]+1;break e}c=J[a+72>>2];if(!c)break f}h=J[a+84>>2];j=J[(h+P(c,20)|0)-12>>2];if(j>>>0<=f>>>0)break f;d=J[(g+P(d,20)|0)+4>>2]&7;while(1){g=h+P(c,20)|0;k=g-12|0;if((j|0)!=J[k>>2])break f; -g=g-16|0;J[g>>2]=d|J[g>>2]&-8;J[k>>2]=f;c=c-1|0;if(c)continue;break}}J[a+64>>2]=i}a=J[b+88>>2];if(!J[a+156>>2])break a;qf(a);a=J[b+80>>2];b=J[b+88>>2];J[e+80>>2]=J[b+64>>2];nc(b,a,129696,e+80|0);break a}if(c){qf(a);a=J[b+80>>2];c=J[b+88>>2];J[e+32>>2]=J[c+64>>2];nc(c,a,106480,e+32|0);a=J[b+88>>2]}c=J[a+64>>2];if(f){a=J[a+80>>2]+P(c,20)|0;j=L[a+12>>1]>>>1&2;k=g>>>0<=1?1:g;m=K[a+14|0]>31;while(1){if(!m){a=J[b+88>>2];H[(J[a+80>>2]+P(J[a+64>>2],20)|0)+14|0]=i&15}a=d+(i<<1)|0;a=K[a+2|0]|K[a+3|0]<<8;l= -(a<<8|a>>>8)&65535;Yl(b,l,j,0,1);a=J[b+88>>2];if(ec(a,0,1)){c=J[a+64>>2];h:{if(c>>>0>2]){f=J[a+80>>2]+P(c,20)|0;c=J[a+72>>2];h=J[a+84>>2];break h}h=J[a+84>>2];c=J[a+72>>2];f=c-1|0;f=h+P(c>>>0>=f>>>0?f:0,20)|0}c=P(c,20)+h|0;h=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=h;J[c+16>>2]=J[f+16>>2];h=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=h;J[c>>2]=l;J[a+72>>2]=J[a+72>>2]+1}i=i+1|0;if((k|0)!=(i|0))continue;break}a=J[b+88>>2];c=J[a+64>>2]}J[a+64>>2]=c+1;if(!J[a+156>>2])break a;qf(a);a=e+112|0;Nb(a,0,1024); -c=J[b+88>>2];d=J[c+64>>2];f=d-g|0;if(f>>>0>>0){d=e+1136|0;while(1){if(e+112>>>0>>0){H[a|0]=44;a=a+1|0}J[e+16>>2]=f;Jf(a,d-a|0,106543,e+16|0);a=ac(a)+a|0;f=f+1|0;c=J[b+88>>2];if(f>>>0>2])continue;break}}a=J[b+80>>2];J[e>>2]=e+112;nc(c,a,106562,e)}xb=e+1136|0;a=1}else a=0;return a|0}function sF(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=xb-944|0;xb=h;J[a>>2]=d;if(!d){J[h>>2]=0;ws(h,b,c);d=J[h>>2];J[a>>2]=d}a:{b:{c:{if((d|0)==25){j=!K[a+40|0];e=xb+-64|0;xb=e;f=e+ -48|0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=428736;J[195395]=0;g=e+24|0;ea(1118,g|0);d=J[195395];J[195395]=0;d:{e:{f:{g:{h:{i:{j:{k:{if((d|0)!=1){J[195395]=0;d=_(1078,16)|0;i=J[195395];J[195395]=0;if((i|0)==1)break k;J[e+12>>2]=d;J[e+16>>2]=3;J[e+20>>2]=-2147483644;J[d+8>>2]=J[58546];i=J[58545];J[d>>2]=J[58544];J[d+4>>2]=i;J[d+12>>2]=0;J[195395]=0;fa(1119,e+36|0,g|0,e+12|0);d=J[195395];J[195395]=0;if((d|0)==1)break j;if(H[e+23|0]<0)Kb(J[e+12>>2]);if(H[e+35|0]<0)Kb(J[e+24>>2]);d=0;g=H[e+47|0]; -if(!((g|0)<0?J[e+40>>2]:g&255))break g;J[195395]=0;i=e+36|0;g=ca(1120,f|0,i|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break f;if(!g)break g;J[195395]=0;g=_(1078,552)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;J[195395]=0;ea(1114,g|0);d=J[195395];J[195395]=0;if((d|0)==1)break f;J[195395]=0;aa(1121,f|0,b|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;J[195395]=0;ea(1103,f|0);b=J[195395];J[195395]=0;if((b|0)==1)break f;J[195395]=0;aa(1089,f|0,i|0,0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f; -J[195395]=0;b=J[f+4>>2];c=J[195395];J[195395]=0;if((c|0)==1)break f;d=0;J[195395]=0;b=ca(1115,b|0,g|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break f;if(!b)break h;J[195395]=0;d=aa(1116,g|0,a|0,j|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break h;break f}d=Z()|0;break e}d=Z()|0;break i}d=Z()|0;if(H[e+23|0]>=0)break i;Kb(J[e+12>>2])}if(H[e+35|0]>=0)break e;Kb(J[e+24>>2]);break e}J[195395]=0;lo(g);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;ea(1103,f|0);a=J[195395];J[195395]=0;if((a|0)==1)break f; -J[195395]=0;a=e+36|0;b=_(1122,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break f;if(!b)break g;J[195395]=0;_(1123,a|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break f}if(H[e+47|0]<0)Kb(J[e+36>>2]);Me(f);xb=e- -64|0;c=d;break d}d=Z()|0;if(H[e+47|0]>=0)break e;Kb(J[e+36>>2])}Me(f);ba(d|0);B()}break c}d=Fd(h,0);e=J[a>>2];J[195395]=0;c=ha(1096,d|0,b|0,c|0,e|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;if(c){J[195395]=0;$(1094,d|0,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;b=ej(d); -e=J[195395];J[195395]=0;if((e|0)==1)break b;H[a+28|0]=b}J[d>>2]=234140;J[195395]=0;_(1097,d|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;_(1098,d|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a}xb=h+944|0;return c|0}a=Z()|0;Nf(d);ba(a|0);B()}ga(0)|0;_b();B()}function fea(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;F=xb-256|0;xb=F;g=a;while(1){a:{i=g;d=J[(k<<2)+b>>2]+c| -0;n=K[d+9|0];o=K[d+6|0];e=n+o|0;q=K[d+14|0];l=K[d+1|0];h=q+l|0;f=e+h|0;j=K[d+10|0];m=K[d+5|0];p=j+m|0;s=K[d+13|0];t=K[d+2|0];r=s+t|0;u=p+r|0;v=K[d+8|0];w=K[d+7|0];x=v+w|0;y=K[d+15|0];z=K[d|0];A=y+z|0;B=x+A|0;C=K[d+11|0];D=K[d+4|0];E=C+D|0;G=K[d+3|0];H=K[d+12|0];d=G+H|0;I=E+d|0;J[g+16>>2]=(P(f-u|0,4433)+P(B-I|0,10703)|0)+1024>>11;J[g>>2]=(B+(f+(u+I|0)|0)<<2)+-8192;f=A-x|0;p=r-p|0;r=d-E|0;e=h-e|0;d=(P(f-p|0,11363)+P(r-e|0,2260)|0)+1024|0;J[g+24>>2]=(d+P(r,-8697)|0)+P(f,-1730)>>11;J[g+8>>2]=(d+P(p,17799)| -0)+P(e,11893)>>11;d=m-j|0;e=D-C|0;h=G-H|0;f=t-s|0;j=(P(d-e|0,3363)+P(h+f|0,-11086)|0)+1024|0;n=o-n|0;o=l-q|0;q=P(n+e|0,-10217)+P(o+h|0,-5461)|0;p=q+((j+P(h,8728)|0)+P(e,17760)|0)|0;l=e;e=w-v|0;m=h;h=z-y|0;l=P(l-e|0,7350)+P(m+h|0,8956)|0;J[g+28>>2]=p+l>>11;m=(j+P(f,-9222)|0)+P(d,10055)|0;j=P(n-d|0,11529)+P(f+o|0,1136)|0;d=P(d+e|0,5461)+P(f+h|0,10217)|0;J[g+20>>2]=(m+j|0)+d>>11;f=P(n-e|0,3363)+P(h+o|0,11086)|0;J[g+12>>2]=(f+(j+((q+P(o,589)|0)+P(n,-13631)|0)|0)|0)+1024>>11;J[g+4>>2]=(l+(f+((d+P(h,-18730)| -0)+P(e,6387)|0)|0)|0)+1024>>11;e=k-7|0;k=k+1|0;g=F;d=7;b:switch(e|0){case 0:continue;case 8:break a;default:break b}g=i+32|0;continue}break}while(1){e=J[g+32>>2];h=J[a+192>>2];b=e+h|0;n=J[g+192>>2];o=J[a+32>>2];c=n+o|0;i=b+c|0;k=J[g+64>>2];f=J[a+160>>2];j=k+f|0;q=J[g+160>>2];l=J[a+64>>2];m=q+l|0;p=j+m|0;s=J[g>>2];t=J[a+224>>2];r=s+t|0;u=J[g+224>>2];v=J[a>>2];w=u+v|0;x=r+w|0;y=J[g+96>>2];z=J[a+128>>2];A=y+z|0;B=J[g+128>>2];C=J[a+96>>2];D=B+C|0;E=A+D|0;J[a+128>>2]=(P(i-p|0,4433)+P(x-E|0,10703)|0)+65536>> -17;J[a>>2]=(x+(i+(p+E|0)|0)|0)+8>>4;i=w-r|0;j=m-j|0;m=D-A|0;c=c-b|0;b=(P(i-j|0,11363)+P(m-c|0,2260)|0)+65536|0;J[a+192>>2]=(b+P(m,-8697)|0)+P(i,-1730)>>17;J[a+64>>2]=(b+P(j,17799)|0)+P(c,11893)>>17;b=f-k|0;c=z-y|0;i=C-B|0;k=l-q|0;f=(P(b-c|0,3363)+P(i+k|0,-11086)|0)+65536|0;e=h-e|0;h=o-n|0;n=P(e+c|0,-10217)+P(h+i|0,-5461)|0;j=n+((f+P(i,8728)|0)+P(c,17760)|0)|0;l=c;c=t-s|0;m=i;i=v-u|0;o=P(l-c|0,7350)+P(m+i|0,8956)|0;J[a+224>>2]=j+o>>17;l=(f+P(k,-9222)|0)+P(b,10055)|0;f=P(e-b|0,11529)+P(h+k|0,1136)| -0;b=P(b+c|0,5461)+P(i+k|0,10217)|0;J[a+160>>2]=(l+f|0)+b>>17;k=P(e-c|0,3363)+P(h+i|0,11086)|0;J[a+96>>2]=(k+(f+((n+P(h,589)|0)+P(e,-13631)|0)|0)|0)+65536>>17;J[a+32>>2]=(o+(k+((b+P(i,-18730)|0)+P(c,6387)|0)|0)|0)+65536>>17;b=d;d=d-1|0;g=g+4|0;a=a+4|0;if(b)continue;break}xb=F+256|0}function qu(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;m=P(b,c)+a|0;if(b>>>0>=10){n=0-c|0;while(1){j=a+c|0;f=P(b>>>1|0,c)+a|0;h=(Ab[d|0](j,f)|0)>0;e=h?j:f;k=P(b-1|0,c);l=k+a|0;g=n+l| -0;if((Ab[d|0](e,g)|0)>0){b=h?f:j;e=(Ab[d|0](b,g)|0)>0?b:g}if(!((e|0)==(l|0)|(c|0)<=0)){h=c+e|0;b=l;while(1){g=K[e|0];H[e|0]=K[b|0];H[b|0]=g;b=b+1|0;e=e+1|0;if(h>>>0>e>>>0)continue;break}}h=l;f=h;i=a;g=a;a:{if((k|0)<=0){i=0;break a}while(1){b:{c:{o=(c|0)<=0;if(!o)while(1){b=Ab[d|0](g,l)|0;if((b|0)>0)break c;if(!b){if(g>>>0>i>>>0){k=c+i|0;e=i;b=g;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}i=c+i|0}g=c+g|0;if(f>>>0>g>>>0)continue;break b}while(1){b=Ab[d|0](g, -l)|0;if((b|0)>0)break c;i=b?i:c+i|0;g=c+g|0;if(f>>>0>g>>>0)continue;break}break b}d:{if(g>>>0>=f>>>0)break d;while(1){k=f;e:{f:{f=f+n|0;b=Ab[d|0](f,l)|0;if(!b){j=h+n|0;if(h>>>0<=k>>>0)break f;e=f;b=j;if(o)break f;while(1){h=K[e|0];H[e|0]=K[b|0];H[b|0]=h;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}break f}if((b|0)>=0)break e;if(!(o|g>>>0>=f>>>0)){k=c+g|0;e=g;b=f;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}g=c+g|0;break d}h=j}if(g>>>0>>0)continue;break}}if(g>>> -0>>0)continue}break}k=f-i|0;g:{if((a|0)==(i|0)|(f|0)==(i|0))break g;b=i-a|0;if(b>>>0>k>>>0){if((k|0)<=0)break g;j=a+k|0;e=a+b|0;b=a;while(1){g=K[b|0];H[b|0]=K[e|0];H[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0)continue;break}break g}if((b|0)<=0)break g;j=a+b|0;e=a+k|0;b=a;while(1){g=K[b|0];H[b|0]=K[e|0];H[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0)continue;break}}i=h-f|0;if((f|0)==(h|0)|(h|0)==(m|0))break a;b=m-h|0;if(b>>>0>>0){if((b|0)<=0)break a;g=b+f|0;e=f+i|0;while(1){b=K[f|0];H[f|0]=K[e|0];H[e|0]= -b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue;break}break a}if((i|0)<=0)break a;g=f+i|0;e=b+f|0;while(1){b=K[f|0];H[f|0]=K[e|0];H[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue;break}}qu(a,(k>>>0)/(c>>>0)|0,c,d);a=m-i|0;b=(i>>>0)/(c>>>0)|0;m=a+P(c,b)|0;if(b>>>0>=10)continue;break}}h=a+c|0;h:{if(m>>>0<=h>>>0)break h;l=0-c|0;if((c|0)>0)while(1){g=h;i:{if(g>>>0<=a>>>0)break i;while(1){f=g+l|0;if((Ab[d|0](f,g)|0)<=0)break i;e=f;b=g;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(g>>>0>e>>>0)continue; -break}g=f;if(f>>>0>a>>>0)continue;break}}h=c+h|0;if(m>>>0>h>>>0)continue;break h}while(1){e=h;j:{if(e>>>0<=a>>>0)break j;while(1){b=e+l|0;if((Ab[d|0](b,e)|0)<=0)break j;e=b;if(b>>>0>a>>>0)continue;break}}h=c+h|0;if(m>>>0>h>>>0)continue;break}}}function Ys(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;m=P(b,c)+a|0;if(b>>>0>=10){n=0-c|0;while(1){j=a+c|0;f=P(b>>>1|0,c)+a|0;h=(Ab[d|0](j,f)|0)>0;e=h?j:f;k=P(b-1|0,c);l=k+a|0;g=n+l|0;if((Ab[d|0](e,g)|0)>0){b=h?f:j;e=(Ab[d| -0](b,g)|0)>0?b:g}if(!((e|0)==(l|0)|(c|0)<=0)){h=c+e|0;b=l;while(1){g=K[e|0];H[e|0]=K[b|0];H[b|0]=g;b=b+1|0;e=e+1|0;if(h>>>0>e>>>0)continue;break}}h=l;f=h;i=a;g=a;a:{if((k|0)<=0){i=0;break a}while(1){b:{c:{o=(c|0)<=0;if(!o)while(1){b=Ab[d|0](g,l)|0;if((b|0)>0)break c;if(!b){if(g>>>0>i>>>0){k=c+i|0;e=i;b=g;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}i=c+i|0}g=c+g|0;if(f>>>0>g>>>0)continue;break b}while(1){b=Ab[d|0](g,l)|0;if((b|0)>0)break c;i=b?i:c+i|0;g= -c+g|0;if(f>>>0>g>>>0)continue;break}break b}d:{if(g>>>0>=f>>>0)break d;while(1){k=f;e:{f:{f=f+n|0;b=Ab[d|0](f,l)|0;if(!b){j=h+n|0;if(h>>>0<=k>>>0)break f;e=f;b=j;if(o)break f;while(1){h=K[e|0];H[e|0]=K[b|0];H[b|0]=h;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}break f}if((b|0)>=0)break e;if(!(o|g>>>0>=f>>>0)){k=c+g|0;e=g;b=f;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}g=c+g|0;break d}h=j}if(g>>>0>>0)continue;break}}if(g>>>0>>0)continue}break}k=f- -i|0;g:{if((a|0)==(i|0)|(f|0)==(i|0))break g;b=i-a|0;if(b>>>0>k>>>0){if((k|0)<=0)break g;j=a+k|0;e=a+b|0;b=a;while(1){g=K[b|0];H[b|0]=K[e|0];H[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0)continue;break}break g}if((b|0)<=0)break g;j=a+b|0;e=a+k|0;b=a;while(1){g=K[b|0];H[b|0]=K[e|0];H[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0)continue;break}}i=h-f|0;if((f|0)==(h|0)|(h|0)==(m|0))break a;b=m-h|0;if(b>>>0>>0){if((b|0)<=0)break a;g=b+f|0;e=f+i|0;while(1){b=K[f|0];H[f|0]=K[e|0];H[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0> -f>>>0)continue;break}break a}if((i|0)<=0)break a;g=f+i|0;e=b+f|0;while(1){b=K[f|0];H[f|0]=K[e|0];H[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue;break}}Ys(a,(k>>>0)/(c>>>0)|0,c,d);a=m-i|0;b=(i>>>0)/(c>>>0)|0;m=a+P(c,b)|0;if(b>>>0>=10)continue;break}}h=a+c|0;h:{if(m>>>0<=h>>>0)break h;l=0-c|0;if((c|0)>0)while(1){g=h;i:{if(g>>>0<=a>>>0)break i;while(1){f=g+l|0;if((Ab[d|0](f,g)|0)<=0)break i;e=f;b=g;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(g>>>0>e>>>0)continue;break}g=f;if(f>>>0> -a>>>0)continue;break}}h=c+h|0;if(m>>>0>h>>>0)continue;break h}while(1){e=h;j:{if(e>>>0<=a>>>0)break j;while(1){b=e+l|0;if((Ab[d|0](b,e)|0)<=0)break j;e=b;if(b>>>0>a>>>0)continue;break}}h=c+h|0;if(m>>>0>h>>>0)continue;break}}}function uma(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=xb-16|0;xb=j;if(nc(c,b,105236,0)){e=J[a+100>>2];h=J[e+8>>2];if((h|0)==-1){h=J[J[e>>2]+8>>2];if(h){J[j+4>>2]=0;d=J[b+116>>2];i=J[d+28>>2];f=J[b+120>>2];g=j+4|0;d=J[d+12>>2];if(d)d=J[d+ -8>>2];else d=0;h=Ab[i|0](b,f,h,g,d)|0;h=h?J[j+4>>2]:0}else h=0;J[e+8>>2]=h}a:{if(!h)break a;m=J[c+68>>2];if(!m)break a;n=J[c+80>>2];p=n+3|0;i=J[b+24>>2];l=j+8|0;while(1){d=P(k,20);o=d+p|0;if(K[o+16|0]==4){d=J[d+n>>2];J[j+12>>2]=h;J[j+8>>2]=d;J[j+4>>2]=h;g=J[e+48>>2];b:{c:{if(!g)break c;d=J[e+44>>2];f=d+P(g,12)|0;while(1){g=8;if(kg(i,L[d>>1],j+4|0,2,K[e+56|0]))break b;d=d+12|0;if((f|0)!=(d|0))continue;break}f=J[e+48>>2];if(!f)break c;d=J[e+44>>2];f=d+P(f,12)|0;while(1){if(kg(i,L[d>>1],l,2,K[e+56|0]))break b; -d=d+12|0;if((f|0)!=(d|0))continue;break}}g=J[e+80>>2];d:{if(!g)break d;d=J[e+76>>2];f=d+P(g,12)|0;while(1){g=8;if(kg(i,L[d>>1],j+4|0,2,K[e+88|0]))break b;d=d+12|0;if((f|0)!=(d|0))continue;break}f=J[e+80>>2];if(!f)break d;d=J[e+76>>2];f=d+P(f,12)|0;while(1){if(kg(i,L[d>>1],l,2,K[e+88|0]))break b;d=d+12|0;if((f|0)!=(d|0))continue;break}}g=J[e+64>>2];e:{if(!g)break e;d=J[e+60>>2];f=d+P(g,12)|0;while(1){g=11;if(kg(i,L[d>>1],j+4|0,2,K[e+72|0]))break b;d=d+12|0;if((f|0)!=(d|0))continue;break}f=J[e+64>> -2];if(!f)break e;d=J[e+60>>2];f=d+P(f,12)|0;while(1){if(kg(i,L[d>>1],l,2,K[e+72|0]))break b;d=d+12|0;if((f|0)!=(d|0))continue;break}}g=4;f=J[e+32>>2];if(!f)break b;d=J[e+28>>2];f=d+P(f,12)|0;f:{while(1){if(kg(i,L[d>>1],j+4|0,2,K[e+40|0]))break f;d=d+12|0;if((f|0)!=(d|0))continue;break}f=J[e+32>>2];if(!f)break b;d=J[e+28>>2];f=d+P(f,12)|0;while(1){if(kg(i,L[d>>1],l,2,K[e+40|0]))break f;d=d+12|0;if((f|0)!=(d|0))continue;break}break b}g=11}H[o+16|0]=g}k=k+1|0;if((m|0)!=(k|0))continue;break}}l=wo(b,c, -4,11,14,14);i=J[c+68>>2];g:{if(!i)break g;h=i-1|0;d=J[c+80>>2];g=d+3|0;e=0;d=K[d+15|0];while(1){h:{if((e|0)==(h|0)){e=i;break h}e=e+1|0;if((d|0)==K[(g+P(e,20)|0)+12|0])continue}break}if(!i)break g;g=J[c+80>>2];k=K[g+15|0];d=0;while(1){h=e;e=J[b+24>>2];i:{j:switch(k&15){case 0:case 1:fG(J[a+100>>2],e,c,d,h);break i;case 2:case 4:break j;default:break i}k=J[a+100>>2];if(K[k+5|0])if(K[(P(h,20)+g|0)-2|0]==11)break i;fG(k,e,c,d,h)}e=J[c+68>>2];d=h+1|0;d=d>>>0>>0?e:d;m=d-1|0;g=J[c+80>>2];n=g+3|0;k=K[(P(h, -20)+g|0)+15|0];e=h;while(1){k:{if((e|0)==(m|0)){e=d;break k}e=e+1|0;if(K[(n+P(e,20)|0)+12|0]==(k|0))continue}break}d=h;if(i>>>0>d>>>0)continue;break}}nc(c,b,105911,0)}xb=j+16|0;return l|0}function HT(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=xb-16|0;xb=l;m=gq(g);p=Xp(g);g=p;Ab[J[J[g>>2]+20>>2]](l+4|0,g);J[f>>2]=d;a:{b:{c:{i=a;g=K[i|0];switch(g-43|0){case 0:case 2:break c;default:break b}}J[195395]=0;g=ca(3552,m|0,g<<24>>24)|0;i=J[195395]; -J[195395]=0;if((i|0)==1)break a;i=J[f>>2];J[f>>2]=i+4;J[i>>2]=g;i=a+1|0}d:{g=i;if(!((c-g|0)<=1|K[g|0]!=48|(K[g+1|0]|32)!=120)){J[195395]=0;i=ca(3552,m|0,48)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=H[g+1|0];J[195395]=0;i=ca(3552,m|0,i|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=g+2|0;g=i;while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[195395]=0;na(3650)|0;j=J[195395];J[195395]=0;e:{if((j|0)==1)break e;J[195395]=0;j=J[195395]; -J[195395]=0;if((j|0)==1)break e;if(!(h-48>>>0<10|(h|32)-97>>>0<6))break d;g=g+1|0;continue}break}break a}while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[195395]=0;na(3650)|0;j=J[195395];J[195395]=0;if((j|0)==1)break a;J[195395]=0;j=J[195395];J[195395]=0;if((j|0)==1)break a;if(h-48>>>0>=10)break d;g=g+1|0;continue}}f:{if(K[l+15|0]>>>7|0)h=J[l+8>>2];else h=K[l+15|0]&127;if(!h){h=J[f>>2];J[195395]=0;ha(3665,m|0,i|0,g|0,h|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;J[f>>2]=J[f>>2]+(g-i<<2);break f}J[195395]= -0;Dh(i,g);h=J[195395];J[195395]=0;if((h|0)==1)break a;J[195395]=0;q=_(3662,p|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;j=i;while(1){if(g>>>0<=j>>>0){h=J[f>>2];J[195395]=0;bl((i-a<<2)+d|0,h);i=J[195395];J[195395]=0;if((i|0)!=1)break f;break a}h=l+4|0;g:{if(K[h+11|0]>>>7|0){k=J[h>>2];break g}k=h}r=H[k+o|0]<=0;if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(r|H[k+o|0]!=(n|0))){n=J[f>>2];J[f>>2]=n+4;J[n>>2]=q;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;o=(h-1>>>0>o>>>0)+o|0;n=0}h=H[j|0];J[195395]= -0;h=ca(3552,m|0,h|0)|0;k=J[195395];J[195395]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+4;J[k>>2]=h;j=j+1|0;n=n+1|0;continue}break}break a}h:{while(1){if(c>>>0>g>>>0){i=K[g|0];if((i|0)==46){J[195395]=0;i=_(3666,p|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;h=J[f>>2];j=h+4|0;J[f>>2]=j;J[h>>2]=i;g=g+1|0;break h}J[195395]=0;i=ca(3552,m|0,i<<24>>24)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;g=g+1|0;continue}break}j=J[f>>2]}J[195395]=0;ha(3665,m|0,g|0,c|0,j|0)|0;i=J[195395]; -J[195395]=0;if((i|0)==1)break a;i=f;f=J[f>>2]+(c-g<<2)|0;J[i>>2]=f;J[e>>2]=(b|0)==(c|0)?f:(b-a<<2)+d|0;Yb(l+4|0);xb=l+16|0;return}a=Z()|0;Yb(l+4|0);ba(a|0);B()}function sL(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;e=xb-1568|0;xb=e;f=J[a+4>>2];H[e+51|0]=0;i=J[J[f+492>>2]+12>>2];a:{if(!(J[J[f+128>>2]+52>>2]|M[f+16>>2]>c>>>0)){d=6;break a}h=d&1024?d|3:d;b:{if(!b){g=65536;d=65536;break b}g=J[b+20>>2];d=J[b+16>>2]}J[a+168>>2]=g;J[a+164>>2]=d;J[a+108>>2]=0;J[a+72>> -2]=1869968492;k=h&1;H[a+161|0]=!k;d=!(h&3);H[a+160|0]=d;j=e+52|0;d=Ab[J[i>>2]](j,f,b,a,J[f+424>>2],J[f+532>>2],d,h>>>16&15,109)|0;if(d)break a;l=h&1024;H[e+121|0]=l>>>10;J[e+1416>>2]=J[f+404>>2];J[e+1420>>2]=J[f+408>>2];J[e+1424>>2]=J[f+412>>2];J[e+1428>>2]=J[f+416>>2];J[e+1548>>2]=J[f+548>>2];J[e+1552>>2]=J[f+544>>2];d=Nk(j,c,e+24|0,e+51|0);if(!d){m=K[a+160|0];c=e+1440|0;d=J[c+4>>2];J[e+40>>2]=J[c>>2];J[e+44>>2]=d;c=J[e+1436>>2];J[e+32>>2]=J[e+1432>>2];J[e+36>>2]=c;c=J[e+1452>>2];g=J[e+1448>>2]; -Ab[J[i+4>>2]](j);J[a+124>>2]=J[a+124>>2]&1|4;c:{if(l){b=J[a+156>>2];d=J[e+84>>2];J[a+32>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+92>>2];J[a+40>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+44>>2];J[b+20>>2]=J[e+40>>2];J[b+24>>2]=d;d=J[e+36>>2];J[b+12>>2]=J[e+32>>2];J[b+16>>2]=d;J[b+32>>2]=c;J[b+28>>2]=g;H[b+8|0]=1;break c}d=J[e+92>>2];J[a+40>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+92>>2];J[a+56>>2]=(((d>>31)+d|0)+32768&-65536)>>16;H[J[a+156>>2]+8|0]=0;i=h&16;d:{if(i){d=J[f+476>>2]-J[f+468>>2]>> -16;J[a+52>>2]=d;break d}d=J[e+96>>2];J[a+52>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+96>>2];d=(((d>>31)+d|0)+32768&-65536)>>16}J[a+72>>2]=1869968492;J[a+60>>2]=d;if(!(!b|L[b+14>>1]>23))J[a+124>>2]=J[a+124>>2]|256;h=a+108|0;e:{if(!(J[e+36>>2]|(J[e+32>>2]!=65536|J[e+44>>2]!=65536)))if(!J[e+40>>2])break e;nh(h,e+32|0);n=a,o=Rb(J[a+40>>2],J[e+32>>2]),J[n+40>>2]=o;n=a,o=Rb(J[a+52>>2],J[e+44>>2]),J[n+52>>2]=o}if(c|g){me(h,g,c);J[a+40>>2]=g+J[a+40>>2];J[a+52>>2]=c+J[a+52>>2]}if(!(!K[e+51|0]&k)){c=J[a+ -168>>2];g=J[a+164>>2];f:{if(J[e+124>>2]?m:0)break f;b=J[e+68>>2];d=I[b+2>>1];if((d|0)<=0)break f;d=d&65535;b=J[b+4>>2];while(1){n=b,o=Rb(J[b>>2],g),J[n>>2]=o;n=b,o=Rb(J[b+4>>2],c),J[n+4>>2]=o;b=b+8|0;j=d>>>0>1;d=d-1|0;if(j)continue;break}}n=a,o=Rb(J[a+40>>2],g),J[n+40>>2]=o;n=a,o=Rb(J[a+52>>2],c),J[n+52>>2]=o}fi(h,e+8|0);b=J[e+8>>2];J[a+24>>2]=J[e+16>>2]-b;c=J[e+12>>2];d=J[e+20>>2];J[a+36>>2]=d;J[a+32>>2]=b;J[a+28>>2]=d-c;if(!i)break c;lk(a+24|0,J[a+52>>2])}J[a+136>>2]=J[e+24>>2];J[a+140>>2]=J[e+ -28>>2];d=0;b=J[J[f+128>>2]+52>>2];if(!b)break a;Ab[J[J[b>>2]+4>>2]](J[b+4>>2],e+24|0);J[a+136>>2]=0;J[a+140>>2]=0;break a}Ab[J[i+4>>2]](e+52|0)}xb=e+1568|0;return d|0}function _s(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=Q(0),l=0,m=0,n=Q(0);h=xb-48|0;xb=h;j=J[b+88>>2];l=169776;i=169776;m=K[a|0]|K[a+1|0]<<8;i=((m<<8|m>>>8)&65535)>>>0>c>>>0?((c<<2)+a|0)+2|0:i;c=K[i|0]|K[i+1|0]<<8;c=(c<<8|c>>>8)&65535;i=K[i+2|0]|K[i+3|0]<<8;if(i)l=((i<<8|i>>>8)&65535)+a|0;H[h+47|0]=0;i=169776;a:{if(c>>>0>=f>>>0)break a;a=K[e| -0]|K[e+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0<=d>>>0)break a;c=((c+P(d,f)<<1)+e|0)+2|0;d=J[b+96>>2];f=J[b+104>>2];if(c-d>>>0>f>>>0)break a;m=J[b+100>>2];if(m-c>>>0<2)break a;a=K[c|0]|K[c+1|0]<<8;b:{if(!a)break b;a=((a<<8|a>>>8)&65535)+e|0;c:{if(f>>>0>>0|m-a>>>0<2)break c;d:{e:{f:{d=K[a|0]|K[a+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 0:break d;case 2:break e;case 1:break f;default:break b}}if(M[b+104>>2]>2]>>>0|J[b+100>>2]-a>>>0<=7)break c;break b}if(!nj(a,b+92|0))break c;break b}if(M[b+ -104>>2]>2]>>>0)break c;if(J[b+100>>2]-a>>>0>5)break b}a=J[b+124>>2];if(a>>>0>31)break a;J[b+124>>2]=a+1;if(!K[b+120|0])break a;H[c|0]=0;H[c+1|0]=0}a=K[c|0]|K[c+1|0]<<8;H[h+47|0]=(a|0)!=0;if(!a)break a;i=((a<<8|a>>>8)&65535)+e|0}d=K[h+47|0];if(d){Ac(j,3,g,J[j+64>>2]+1|0,1,0);a=J[J[j+80>>2]+P(J[j+64>>2],20)>>2];J[h+40>>2]=0;J[h+36>>2]=0;g:{h:{i:{j:{c=K[l|0]|K[l+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break h;case 1:break i;case 0:break j;default:break g}}a=J[b+80>>2];c=K[l+2|0]|K[l+ -3|0]<<8;N[h+40>>2]=N[a+64>>2]*Q((c<<8|c>>>8)<<16>>16);k=N[a+68>>2];a=K[l+4|0]|K[l+5|0]<<8;N[h+36>>2]=k*Q((a<<8|a>>>8)<<16>>16);break g}yo(l,b,a,h+40|0,h+36|0);break g}xo(l,b,h+40|0,h+36|0)}a=J[J[j+80>>2]+P(g,20)>>2];J[h+32>>2]=0;J[h+28>>2]=0;k:{l:{m:{n:{c=K[i|0]|K[i+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break l;case 1:break m;case 0:break n;default:break k}}a=J[b+80>>2];c=K[i+2|0]|K[i+3|0]<<8;N[h+32>>2]=N[a+64>>2]*Q((c<<8|c>>>8)<<16>>16);k=N[a+68>>2];a=K[i+4|0]|K[i+5|0]<<8;N[h+28>>2]=k* -Q((a<<8|a>>>8)<<16>>16);break k}yo(i,b,a,h+32|0,h+28|0);break k}xo(i,b,h+32|0,h+28|0)}a=J[b+88>>2];if(J[a+156>>2]){c=J[b+80>>2];e=J[a+64>>2];J[h+20>>2]=g;J[h+16>>2]=e;nc(a,c,130606,h+16|0)}a=J[j+88>>2]+P(J[j+64>>2],20)|0;k=Q(V(Q(Q(N[h+32>>2]-N[h+40>>2])+Q(.5))));o:{if(Q(R(k))>2]=c;k=N[h+36>>2];n=N[h+28>>2];H[a+18|0]=1;k=Q(V(Q(Q(n-k)+Q(.5))));p:{if(Q(R(k))>2]=c;I[a+16>>1]=g-J[j+64>>2];J[j+144>>2]=J[j+ -144>>2]|8;a=J[b+88>>2];if(J[a+156>>2]){b=J[b+80>>2];c=J[a+64>>2];J[h+4>>2]=g;J[h>>2]=c;nc(a,b,130652,h)}J[j+64>>2]=J[j+64>>2]+1}xb=h+48|0;return(d|0)!=0}function dda(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;k=xb-32|0;xb=k;r=J[a+52>>2];o=J[a+16>>2];f=J[a>>2];p=Qb(hk(f));a:{if(!p){Ob(J[f+628>>2],J[f>>2],274650,0);break a}Pd(p,0,hk(f));i=1;q=1;b:{c:{d:{e:{f:{g:{h:switch(L[a+28>>1]-1|0){case 0:case 4:e=L[a+30>>1];if(e>>>0>8)break d;e=1<>1];if(e>>>0>8)break d;g=1<>1];if(e>>>0>8)break d;e=1<>1];if(e>>>0>7)break d;e=1<>2]=k+28; -Ue(f,278,k+16|0);J[k+4>>2]=k+24;J[k>>2]=k+26;Ue(f,530,k);h=xb-80|0;xb=h;i:{j:{if(L[f+138>>1]==1){if(!(K[f+13|0]&64|L[f+90>>1]!=6)){J[h+4>>2]=h+78;J[h>>2]=h+76;zc(f,530,h);g=L[h+78>>1];e=L[h+76>>1];l=P(g,e);if(!l){Ob(J[f+628>>2],J[f>>2],264642,0);e=0;break i}e=(P(L[f+84>>1],P(l+2|0,((e+J[f+56>>2]|0)-1>>>0)/(e>>>0)|0))+7>>>3>>>0)/(g>>>0)|0;break i}g=L[f+98>>1];e=Kpa(J[f+56>>2],0,g,0);l=zb;if(!g|!l)break j;e=J[f>>2];g=J[f+628>>2];J[h+64>>2]=266170;Ob(g,e,267226,h- -64|0);e=0;break j}e=J[f+56>>2]}g=e; -m=L[f+84>>1];e=Kpa(e,0,m,0);l=(zb|0)!=0;k:{l:{m:{n:{o:{if(m){if(!l)break o;e=J[f>>2];l=J[f+628>>2];J[h+32>>2]=266170;Ob(l,e,267226,h+32|0);m=L[f+84>>1];e=Kpa(m,0,g,0);l=(zb|0)!=0;g=!m;break m}if(e&7)break n;g=1;break m}if(!(e&7))break l;if(!l)break n;e=J[f>>2];g=J[f+628>>2];J[h+48>>2]=266170;Ob(g,e,267226,h+48|0);e=0}e=(e>>>3|0)+1|0;break i}if(g)break k}if(!l)break k;e=J[f>>2];g=J[f+628>>2];J[h+16>>2]=266170;Ob(g,e,267226,h+16|0);e=0}e=e>>>3|0}xb=h+80|0;p:{if(!d)break p;i=o-c|0;l=i>>>0<=o>>>0?i:0; -g=q?0:d-1|0;q:{while(1){i=J[k+28>>2];h=L[k+24>>1];o=J[a+76>>2]+j|0;t=h;i=i-((o>>>0)%(i>>>0)|0)|0;i=i+j>>>0>d>>>0?d-j|0:i;h=(i>>>0)%(h>>>0)|0;m=0;if(!((gk(f,ik(f,o,0),p,P(e,(h?t-h|0:0)+i+(J[a+76>>2]+j>>>0)%M[k+28>>2]|0))|0)>=0|!J[a+4>>2]))break q;Ab[r|0](a,(P(c,g)<<2)+b|0,0,g,c,i,l,s,P(e,(J[a+76>>2]+j>>>0)%M[k+28>>2]|0)+p|0);g=(q?i:0-i|0)+g|0;j=i+j|0;if(j>>>0>>0)continue;break}m=1}i=m;if(!n)break p;g=0;while(1){j=(P(c,g)<<2)+b|0;a=(j+(c<<2)|0)-4|0;if(a>>>0>j>>>0)while(1){e=J[j>>2];J[j>>2]=J[a>> -2];J[a>>2]=e;a=a-4|0;j=j+4|0;if(a>>>0>j>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}Kb(p)}xb=k+32|0;return i|0}function xH(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;m=P(b,c)+a|0;if(b>>>0>=10){n=0-c|0;while(1){j=a+c|0;f=P(b>>>1|0,c)+a|0;h=(Ab[d|0](j,f)|0)>0;e=h?j:f;k=P(b-1|0,c);l=k+a|0;g=n+l|0;if((Ab[d|0](e,g)|0)>0){b=h?f:j;e=(Ab[d|0](b,g)|0)>0?b:g}if(!((e|0)==(l|0)|(c|0)<=0)){h=c+e|0;b=l;while(1){g=K[e|0];H[e|0]=K[b|0];H[b|0]=g;b=b+1|0;e=e+1|0;if(h>>>0>e>>>0)continue; -break}}h=l;f=h;i=a;g=a;a:{if((k|0)<=0){i=0;break a}while(1){b:{c:{o=(c|0)<=0;if(!o)while(1){b=Ab[d|0](g,l)|0;if((b|0)>0)break c;if(!b){if(g>>>0>i>>>0){k=c+i|0;e=i;b=g;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}i=c+i|0}g=c+g|0;if(f>>>0>g>>>0)continue;break b}while(1){b=Ab[d|0](g,l)|0;if((b|0)>0)break c;i=b?i:c+i|0;g=c+g|0;if(f>>>0>g>>>0)continue;break}break b}d:{if(g>>>0>=f>>>0)break d;while(1){k=f;e:{f:{f=f+n|0;b=Ab[d|0](f,l)|0;if(!b){j=h+n|0;if(h>>>0<= -k>>>0)break f;e=f;b=j;if(o)break f;while(1){h=K[e|0];H[e|0]=K[b|0];H[b|0]=h;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}break f}if((b|0)>=0)break e;if(!(o|g>>>0>=f>>>0)){k=c+g|0;e=g;b=f;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}g=c+g|0;break d}h=j}if(g>>>0>>0)continue;break}}if(g>>>0>>0)continue}break}k=f-i|0;g:{if((a|0)==(i|0)|(f|0)==(i|0))break g;b=i-a|0;if(b>>>0>k>>>0){if((k|0)<=0)break g;j=a+k|0;e=a+b|0;b=a;while(1){g=K[b|0];H[b|0]=K[e|0]; -H[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0)continue;break}break g}if((b|0)<=0)break g;j=a+b|0;e=a+k|0;b=a;while(1){g=K[b|0];H[b|0]=K[e|0];H[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0)continue;break}}i=h-f|0;if((f|0)==(h|0)|(h|0)==(m|0))break a;b=m-h|0;if(b>>>0>>0){if((b|0)<=0)break a;g=b+f|0;e=f+i|0;while(1){b=K[f|0];H[f|0]=K[e|0];H[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue;break}break a}if((i|0)<=0)break a;g=f+i|0;e=b+f|0;while(1){b=K[f|0];H[f|0]=K[e|0];H[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue; -break}}xH(a,(k>>>0)/(c>>>0)|0,c,d);a=m-i|0;b=(i>>>0)/(c>>>0)|0;m=a+P(c,b)|0;if(b>>>0>=10)continue;break}}h=a+c|0;h:{if(m>>>0<=h>>>0)break h;l=0-c|0;if((c|0)>0)while(1){g=h;i:{if(g>>>0<=a>>>0)break i;while(1){f=g+l|0;if((Ab[d|0](f,g)|0)<=0)break i;e=f;b=g;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(g>>>0>e>>>0)continue;break}g=f;if(f>>>0>a>>>0)continue;break}}h=c+h|0;if(m>>>0>h>>>0)continue;break h}while(1){e=h;j:{if(e>>>0<=a>>>0)break j;while(1){b=e+l|0;if((Ab[d|0](b,e)|0)<=0)break j; -e=b;if(b>>>0>a>>>0)continue;break}}h=c+h|0;if(m>>>0>h>>>0)continue;break}}}function Ss(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;m=P(b,c)+a|0;if(b>>>0>=10){n=0-c|0;while(1){j=a+c|0;f=P(b>>>1|0,c)+a|0;h=(Ab[d|0](j,f)|0)>0;e=h?j:f;k=P(b-1|0,c);l=k+a|0;g=n+l|0;if((Ab[d|0](e,g)|0)>0){b=h?f:j;e=(Ab[d|0](b,g)|0)>0?b:g}if(!((e|0)==(l|0)|(c|0)<=0)){h=c+e|0;b=l;while(1){g=K[e|0];H[e|0]=K[b|0];H[b|0]=g;b=b+1|0;e=e+1|0;if(h>>>0>e>>>0)continue;break}}h=l;f=h;i=a;g=a;a:{if((k|0)<=0){i=0;break a}while(1){b:{c:{o= -(c|0)<=0;if(!o)while(1){b=Ab[d|0](g,l)|0;if((b|0)>0)break c;if(!b){if(g>>>0>i>>>0){k=c+i|0;e=i;b=g;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}i=c+i|0}g=c+g|0;if(f>>>0>g>>>0)continue;break b}while(1){b=Ab[d|0](g,l)|0;if((b|0)>0)break c;i=b?i:c+i|0;g=c+g|0;if(f>>>0>g>>>0)continue;break}break b}d:{if(g>>>0>=f>>>0)break d;while(1){k=f;e:{f:{f=f+n|0;b=Ab[d|0](f,l)|0;if(!b){j=h+n|0;if(h>>>0<=k>>>0)break f;e=f;b=j;if(o)break f;while(1){h=K[e|0];H[e|0]=K[b|0]; -H[b|0]=h;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}break f}if((b|0)>=0)break e;if(!(o|g>>>0>=f>>>0)){k=c+g|0;e=g;b=f;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0)continue;break}}g=c+g|0;break d}h=j}if(g>>>0>>0)continue;break}}if(g>>>0>>0)continue}break}k=f-i|0;g:{if((a|0)==(i|0)|(f|0)==(i|0))break g;b=i-a|0;if(b>>>0>k>>>0){if((k|0)<=0)break g;j=a+k|0;e=a+b|0;b=a;while(1){g=K[b|0];H[b|0]=K[e|0];H[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0)continue;break}break g}if((b| -0)<=0)break g;j=a+b|0;e=a+k|0;b=a;while(1){g=K[b|0];H[b|0]=K[e|0];H[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0)continue;break}}i=h-f|0;if((f|0)==(h|0)|(h|0)==(m|0))break a;b=m-h|0;if(b>>>0>>0){if((b|0)<=0)break a;g=b+f|0;e=f+i|0;while(1){b=K[f|0];H[f|0]=K[e|0];H[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue;break}break a}if((i|0)<=0)break a;g=f+i|0;e=b+f|0;while(1){b=K[f|0];H[f|0]=K[e|0];H[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue;break}}Ss(a,(k>>>0)/(c>>>0)|0,c,d);a=m-i|0;b=(i>>>0)/(c>>>0)|0; -m=a+P(c,b)|0;if(b>>>0>=10)continue;break}}h=a+c|0;h:{if(m>>>0<=h>>>0)break h;l=0-c|0;if((c|0)>0)while(1){g=h;i:{if(g>>>0<=a>>>0)break i;while(1){f=g+l|0;if((Ab[d|0](f,g)|0)<=0)break i;e=f;b=g;while(1){j=K[e|0];H[e|0]=K[b|0];H[b|0]=j;b=b+1|0;e=e+1|0;if(g>>>0>e>>>0)continue;break}g=f;if(f>>>0>a>>>0)continue;break}}h=c+h|0;if(m>>>0>h>>>0)continue;break h}while(1){e=h;j:{if(e>>>0<=a>>>0)break j;while(1){b=e+l|0;if((Ab[d|0](b,e)|0)<=0)break j;e=b;if(b>>>0>a>>>0)continue;break}}h=c+h|0;if(m>>>0>h>>>0)continue; -break}}}function dB(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;f=J[a+12>>2];d=J[a+8>>2];if(f>>>0>d+3>>>0){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b>>2]=e;if(d+3>>>0>>0){g=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+4>>2]=g;a:{if(d+3>>>0>=f>>>0){g=0;break a}g=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+8>>2]=g;if(d+3>>>0>>0){i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4| -0;J[a+8>>2]=d}J[b+12>>2]=i;e=0;if(d+3>>>0>>0){l=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+16>>2]=l;if(d+3>>>0>>0){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+20>>2]=e;e=0;if(d+3>>>0>>0){h=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+24>>2]=h;if(d+3>>>0>>0){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+28>>2]=e;b:{if(d+3>>>0>=f>>>0){e=0;break b}e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<< -16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+32>>2]=e;if(d+3>>>0>>0){k=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+40>>2]=0;J[b+44>>2]=0;J[b+36>>2]=k;e=f-d|0;h=e>>>1|0;h=g>>>0>h>>>0?h:g;J[b+8>>2]=h;c:{if(!h)break c;if(i-40>>>0>c>>>0){c=((i-c|0)+d|0)-40|0;d=c>>>0>>0?c:f;J[a+8>>2]=d;e=f-d|0}g=0;c=h+1|0;j=Pb((c|0)<0?-1:c<<1);I[j+(h<<1)>>1]=0;c=(e|0)/2|0;d:{if(e+1>>>0<3)break d;c=c>>>0>>0?c:h;m=c&1;if((c|0)!=1){n=c&2147483646;c=0;while(1){e:{if(d+1>>>0>=f>>>0){e=0;break e}e= -K[d|0]|K[d+1|0]<<8;d=d+2|0;J[a+8>>2]=d}I[j+(g<<1)>>1]=e;e=0;if(d+1>>>0>>0){e=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[a+8>>2]=d}I[j+((g|1)<<1)>>1]=e;g=g+2|0;c=c+2|0;if((n|0)!=(c|0))continue;break}}if(!m)break d;e=0;if(d+1>>>0>>0){e=K[d|0]|K[d+1|0]<<8;d=d+2|0;J[a+8>>2]=d}I[j+(g<<1)>>1]=e}J[b+40>>2]=j;f:{if((h|0)==2147483647|i>>>0>=k>>>0)break f;c=k-i|0;e=h<<1;if(c>>>0<=e>>>0)break f;c=(c-e|0)+d|0;d=c>>>0>>0?c:f;J[a+8>>2]=d}c=J[b+8>>2]<<(l>>>13&1);e=f-d|0;if(c-1>>>0>=e>>>2>>>0)break c;h=Pb(c<<2);e=(e| -0)/4|0;i=c>>>0>e>>>0?e:c;g:{if(!i)break g;g=0;if((i|0)!=1){j=i&-2;c=0;while(1){h:{if(d+3>>>0>=f>>>0){e=0;break h}e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[h+(g<<2)>>2]=e;e=0;if(d+3>>>0>>0){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[h+((g|1)<<2)>>2]=e;g=g+2|0;c=c+2|0;if((j|0)!=(c|0))continue;break}}if(!(i&1))break g;e=0;if(d+3>>>0>>0){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+8>>2]=d+4}J[h+(g<<2)>>2]=e}J[b+44>>2]=h}}function ST(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=xb-16|0;xb=l;m=kq(g);p=$p(g);g=p;Ab[J[J[g>>2]+20>>2]](l+4|0,g);J[f>>2]=d;a:{b:{c:{i=a;g=K[i|0];switch(g-43|0){case 0:case 2:break c;default:break b}}J[195395]=0;g=ca(3669,m|0,g<<24>>24)|0;i=J[195395];J[195395]=0;if((i|0)==1)break a;i=J[f>>2];J[f>>2]=i+1;H[i|0]=g;i=a+1|0}d:{g=i;if(!((c-g|0)<=1|K[g|0]!=48|(K[g+1|0]|32)!=120)){J[195395]=0;i=ca(3669,m|0,48)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a; -h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=H[g+1|0];J[195395]=0;i=ca(3669,m|0,i|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=g+2|0;g=i;while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[195395]=0;na(3650)|0;j=J[195395];J[195395]=0;e:{if((j|0)==1)break e;J[195395]=0;j=J[195395];J[195395]=0;if((j|0)==1)break e;if(!(h-48>>>0<10|(h|32)-97>>>0<6))break d;g=g+1|0;continue}break}break a}while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[195395]=0;na(3650)|0;j=J[195395];J[195395]=0;if((j|0)== -1)break a;J[195395]=0;j=J[195395];J[195395]=0;if((j|0)==1)break a;if(h-48>>>0>=10)break d;g=g+1|0;continue}}f:{if(K[l+15|0]>>>7|0)h=J[l+8>>2];else h=K[l+15|0]&127;if(!h){h=J[f>>2];J[195395]=0;ha(3646,m|0,i|0,g|0,h|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;J[f>>2]=J[f>>2]+(g-i|0);break f}J[195395]=0;Dh(i,g);h=J[195395];J[195395]=0;if((h|0)==1)break a;J[195395]=0;q=_(3637,p|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;j=i;while(1){if(g>>>0<=j>>>0){h=J[f>>2];J[195395]=0;Dh((i-a|0)+d|0,h); -i=J[195395];J[195395]=0;if((i|0)!=1)break f;break a}h=l+4|0;g:{if(K[h+11|0]>>>7|0){k=J[h>>2];break g}k=h}r=H[k+o|0]<=0;if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(r|H[k+o|0]!=(n|0))){n=J[f>>2];J[f>>2]=n+1;H[n|0]=q;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;o=(h-1>>>0>o>>>0)+o|0;n=0}h=H[j|0];J[195395]=0;h=ca(3669,m|0,h|0)|0;k=J[195395];J[195395]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+1;H[k|0]=h;j=j+1|0;n=n+1|0;continue}break}break a}while(1){h:{if(c>>>0>g>>>0){i=K[g|0];if((i|0)!=46)break h;J[195395]= -0;i=_(3647,p|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;g=g+1|0}i=J[f>>2];J[195395]=0;ha(3646,m|0,g|0,c|0,i|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break a;i=f;f=J[f>>2]+(c-g|0)|0;J[i>>2]=f;J[e>>2]=(b|0)==(c|0)?f:(b-a|0)+d|0;Yb(l+4|0);xb=l+16|0;return}J[195395]=0;i=ca(3669,m|0,i<<24>>24)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;g=g+1|0;continue}}a=Z()|0;Yb(l+4|0);ba(a|0);B()}function GD(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;i=xb-16|0;xb=i;a:{b:{c:{d:{e:{d=J[a+708>>2];switch(d|0){case 0:break c;case 1:break e;default:break d}}mc(a,c);break b}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break c;Wb(a,259881);mc(a,c);break b}d=J[a+200>>2];if(!(d&1))break a;if(d&4){Wb(a,259939);mc(a,c);break b}cc(a,J[a+740>>2]);d=Zd(a,c+1|0);J[a+740>>2]=d;Gd(a,d,c);Fc(a,d,c);e=mc(a,0);d=J[a+740>>2];if(e){cc(a,d);J[a+740>>2]=0;break b}H[c+d|0]=0;h=J[a+740>>2];d=h;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}if(!((c+h|0)-2>>> -0>=d>>>0&c>>>0>=2)){cc(a,h);J[a+740>>2]=0;Wb(a,259963);break b}g=K[e+1|0];H[i+4|0]=g;d=e+2|0;e=(h-d|0)+c|0;j=(g|0)==8?6:10;c=(e>>>0)/(j>>>0)|0;if((e|0)!=(P(c,j)|0)){cc(a,h);J[a+740>>2]=0;Wb(a,259984);break b}if(c>>>0>=429496730){Wb(a,260010);break b}J[i+12>>2]=c;h=Ed(a,P(c,10));J[i+8>>2]=h;f:{g:{if(h){if(e>>>0>>0)break f;if((g|0)!=8)break g;while(1){e=h+P(f,10)|0;I[e>>1]=K[d|0];I[e+2>>1]=K[d+1|0];I[e+4>>1]=K[d+2|0];I[e+6>>1]=K[d+3|0];k=e;e=K[d+4|0]|K[d+5|0]<<8;I[k+8>>1]=e<<8|e>>>8;d=d+6|0;f=f+ -1|0;if((c|0)!=(f|0))continue;break}break f}Wb(a,260030);break b}while(1){e=h+P(f,10)|0;g=K[d|0]|K[d+1|0]<<8;I[e>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[e+2>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;I[e+4>>1]=g<<8|g>>>8;g=K[d+6|0]|K[d+7|0]<<8;I[e+6>>1]=g<<8|g>>>8;k=e;e=K[d+8|0]|K[d+9|0]<<8;I[k+8>>1]=e<<8|e>>>8;d=d+10|0;f=f+1|0;if((c|0)!=(f|0))continue;break}}J[i>>2]=J[a+740>>2];j=0;c=xb-80|0;xb=c;h:{if(!a|!b)break h;i:{d=J[b+216>>2];j:{if(!(d^2147483647))break j;d=d+1|0;if(d>>>0>268435454)break j;d=Ed(a, -d<<4);if(d)break i}Wb(a,259009);break h}e=d;d=J[b+212>>2];p=Mb(e,d,J[b+216>>2]<<4);cc(a,d);J[b+212>>2]=0;while(1){l=(n<<4)+i|0;m=J[l>>2];k:{if(!m){H[c|0]=0;Wb(a,259102);break k}k=J[b+216>>2];d=c;o=1;g=0;e=K[m|0];l:{if(!e)break l;h=1;while(1){f=0;o=e>>>0<161&(e-127&255)>>>0<162;m:{if(o){f=1;if(h)break m;e=32}H[d|0]=e;g=g+1|0;d=d+1|0}m=m+1|0;e=K[m|0];if(!e)break l;h=f;if(g>>>0<79)continue;break}}e=d;d=(g|0)!=0&o;H[e-d|0]=0;f=g-d|0;if(!f){Wb(a,259102);break k}d=((k<<4)+p|0)+(j<<4)|0;e=f+1|0;f=Ed(a,e); -J[d>>2]=f;if(!f){Wb(a,259164);break k}e=Mb(f,c,e);f=Ed(a,P(J[l+12>>2],10));J[d+8>>2]=f;if(!f){Wb(a,259164);cc(a,e);J[d>>2]=0;break k}e=f;f=J[l+12>>2];Mb(e,J[l+8>>2],P(f,10));J[d+12>>2]=f;H[d+4|0]=K[l+4|0];j=j+1|0}n=n+1|0;if((n|0)!=1)continue;break}J[b+216>>2]=j;J[b+212>>2]=p;J[b+8>>2]=J[b+8>>2]|8192;J[b+184>>2]=J[b+184>>2]|32}xb=c+80|0;cc(a,J[a+740>>2]);J[a+740>>2]=0;cc(a,J[i+8>>2])}xb=i+16|0;return}gc(a,259914);B()}function cna(a){a=a|0;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;d=xb+ --64|0;xb=d;l=J[a+16>>2];b=161;a:{if(M[a+20>>2]>>0)break a;e=J[a+32>>2];m=e+48|0;H[e+64|0]=1;i=-2147483648;g=2147483647;while(1){b=k<<2;j=b+d|0;n=b+(d+32|0)|0;c=J[l>>2];h=K[c|0];b:{if((h|0)==30){b=Ao(a,c,0,j);break b}f=c+1|0;c:{d:{e:switch(h-28|0){case 0:b=0;if(M[a+8>>2]<=c+2>>>0)break c;b=K[c+2|0]|K[f|0]<<8;break c;case 1:b=0;if(M[a+8>>2]<=c+4>>>0)break c;b=K[c+1|0]|K[c+2|0]<<8|(K[c+3|0]<<16|K[c+4|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break d;default:break e}if(h>>>0<=246){b=h-139| -0;break c}c=J[a+8>>2];if(h>>>0<=250){b=0;if(c>>>0<=f>>>0)break c;b=(K[f|0]|h<<8)-63124|0;break c}b=0;if(c>>>0<=f>>>0)break c;b=64148-(K[f|0]|h<<8)|0}if((b|0)<32768)break c;c=5;f:{if(b>>>0<1E5)break f;c=6;if(b>>>0<1E6)break f;c=7;if(b>>>0<1E7)break f;c=8;if(b>>>0<1E8)break f;c=b>>>0<1E9?9:10}h=c-5|0;f=J[(h<<2)+27536>>2];if(((b|0)/(f|0)|0)>=32768){c=c-4|0;J[j>>2]=c;b=dc(b,J[(c<<2)+27536>>2]);break b}J[j>>2]=h;b=dc(b,f);break b}J[j>>2]=0;b=b<<16}J[n>>2]=b;if(b){b=J[j>>2];g=(b|0)<(g|0)?b:g;i=(b|0)>(i| -0)?b:i}l=l+4|0;k=k+1|0;if((k|0)!=6)continue;break}if(!(i-1>>>0<4294967286|i-g>>>0>9)){k=0;h=0;a=J[d+32>>2];if(a){c=J[(i-J[d>>2]<<2)+27536>>2];b=c>>1;h=(((a|0)<0?a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0:a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0)|0)/(c|0)|0}a=J[d+36>>2];if(a){c=J[(i-J[d+4>>2]<<2)+27536>>2];b=c>>1;k=(((a|0)>=0?a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0:a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0)|0)/(c|0)|0}b=0;j=0;a=J[d+40>>2];if(a){g=J[(i-J[d+8>>2]<<2)+27536>>2];c=g>>1;j=(((a| -0)>=0?a>>>0>=(c^2147483647)>>>0?2147483647:a+c|0:a>>>0<=(c|-2147483648)>>>0?-2147483648:a-c|0)|0)/(g|0)|0}a=J[d+44>>2];if(a){c=J[(i-J[d+12>>2]<<2)+27536>>2];b=c>>1;b=(((a|0)>=0?a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0:a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0)|0)/(c|0)|0}g=0;f=0;a=J[d+48>>2];if(a){f=J[(i-J[d+16>>2]<<2)+27536>>2];c=f>>1;f=(((a|0)>=0?a>>>0>=(c^2147483647)>>>0?2147483647:a+c|0:a>>>0<=(c|-2147483648)>>>0?-2147483648:a-c|0)|0)/(f|0)|0}a=J[d+52>>2];if(a){g=J[(i-J[d+20>>2]<<2)+27536>> -2];c=g>>1;g=(((a|0)>=0?a>>>0>=(c^2147483647)>>>0?2147483647:a+c|0:a>>>0<=(c|-2147483648)>>>0?-2147483648:a-c|0)|0)/(g|0)|0}J[e+48>>2]=h;J[e+72>>2]=f;J[e+56>>2]=k;J[e+76>>2]=g;J[e+60>>2]=b;J[e+52>>2]=j;J[e+68>>2]=J[27536-(i<<2)>>2];b=0;if(mo(m))break a}J[e+48>>2]=65536;J[e+52>>2]=0;J[e+68>>2]=1;J[e+72>>2]=0;J[e+76>>2]=0;J[e+56>>2]=0;J[e+60>>2]=65536;b=0}xb=d- -64|0;return b|0}function Rba(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;k=xb-16|0;xb=k;l=J[a+584>>2];h=(c|0)/J[l+ -8>>2]|0;i=b;c=0;i=J[l>>2]!=2?J[l+12>>2]:i;Pd(i,0,h<<2);d=J[a+608>>2];f=J[a+604>>2];a:{b:{c:{if((h|0)>0){d:{e:{if((d|0)<=0){e=d;break e}e=d;while(1){g=H[f|0];d=g&255;f:{if((g|0)>=0){f=f+1|0;e=e-1|0;if(e)while(1){if(!d|(c|0)>=(h|0))break f;d=d-1|0;g=(c<<2)+i|0;J[g>>2]=J[g>>2]|K[f|0]<<24;f=f+1|0;c=c+1|0;e=e-1|0;if(e)continue;break}d=0;e=0;if((c|0)==(h|0))break d;break b}e=e-2|0;g=f+2|0;d=d-126|0;g:{if(!d|(c|0)>=(h|0))break g;f=K[f+1|0]<<24;while(1){j=(c<<2)+i|0;J[j>>2]=f|J[j>>2];c=c+1|0;d=d-1|0;if(!d)break g; -if((c|0)<(h|0))continue;break}}f=g}if((c|0)>=(h|0))break e;if((e|0)>0)continue;break}}if((c|0)!=(h|0)){d=e;break b}d=0;if((e|0)<=0)break d;while(1){g=H[f|0];c=g&255;h:{if((g|0)>=0){f=f+1|0;e=e-1|0;if(!e){e=0;break d}while(1){if(!c|(d|0)>=(h|0))break h;c=c-1|0;g=(d<<2)+i|0;J[g>>2]=J[g>>2]|K[f|0]<<16;f=f+1|0;d=d+1|0;e=e-1|0;if(e)continue;break}e=0;break d}e=e-2|0;g=f+2|0;c=c-126|0;i:{if(!c|(d|0)>=(h|0))break i;f=K[f+1|0]<<16;while(1){j=(d<<2)+i|0;J[j>>2]=f|J[j>>2];d=d+1|0;c=c-1|0;if(!c)break i;if((d| -0)<(h|0))continue;break}}f=g}if((d|0)>=(h|0))break d;if((e|0)>0)continue;break}}if((d|0)!=(h|0)){c=d;d=e;break b}c=0;j:{k:{if((e|0)<=0)break k;while(1){g=H[f|0];d=g&255;l:{if((g|0)>=0){f=f+1|0;e=e-1|0;if(e)while(1){if(!d|(c|0)>=(h|0))break l;d=d-1|0;g=(c<<2)+i|0;J[g>>2]=J[g>>2]|K[f|0]<<8;f=f+1|0;c=c+1|0;e=e-1|0;if(e)continue;break}g=0;d=0;if((c|0)==(h|0))break j;break b}e=e-2|0;g=f+2|0;d=d-126|0;m:{if(!d|(c|0)>=(h|0))break m;f=K[f+1|0]<<8;while(1){j=(c<<2)+i|0;J[j>>2]=f|J[j>>2];c=c+1|0;d=d-1|0;if(!d)break m; -if((c|0)<(h|0))continue;break}}f=g}if((c|0)>=(h|0))break k;if((e|0)>0)continue;break}}if((c|0)!=(h|0)){d=e;break b}g=0;if((e|0)<=0){d=e;break j}d=e;while(1){e=H[f|0];c=e&255;n:{if((e|0)>=0){f=f+1|0;d=d-1|0;if(!d){d=0;break j}while(1){if(!c|(g|0)>=(h|0))break n;c=c-1|0;e=(g<<2)+i|0;J[e>>2]=J[e>>2]|K[f|0];f=f+1|0;g=g+1|0;d=d-1|0;if(d)continue;break}d=0;break j}d=d-2|0;e=f+2|0;c=c-126|0;o:{if(!c|(g|0)>=(h|0))break o;f=K[f+1|0];while(1){j=(g<<2)+i|0;J[j>>2]=f|J[j>>2];g=g+1|0;c=c-1|0;if(!c)break o;if((g| -0)<(h|0))continue;break}}f=e}if((g|0)>=(h|0))break j;if((d|0)>0)continue;break}}c=g;if((h|0)==(c|0))break c;break b}if(h)break b}Ab[J[l+20>>2]](l,b,h);b=1;break a}b=J[a>>2];e=J[a+628>>2];g=J[a+472>>2];J[k+4>>2]=h-c;J[k>>2]=g;Ob(e,b,269330,k);b=0}J[a+608>>2]=d;J[a+604>>2]=f;xb=k+16|0;return b|0}function pz(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=xb-48|0;xb=i;A(+a);e=v(1)|0;d=v(0)|0;a:{b:{h=e&2147483647;c:{if(h>>>0<=1074752122){if((e&1048575)==598523)break c;if(h>>>0<=1073928572){if((e|0)> -0|(e|0)>=0){a=a+-1.5707963267341256;c=a+-6.077100506506192E-11;O[b>>3]=c;O[b+8>>3]=a-c+-6.077100506506192E-11;d=1;break a}a=a+1.5707963267341256;c=a+6.077100506506192E-11;O[b>>3]=c;O[b+8>>3]=a-c+6.077100506506192E-11;d=-1;break a}if((e|0)>0|(e|0)>=0){a=a+-3.1415926534682512;c=a+-1.2154201013012384E-10;O[b>>3]=c;O[b+8>>3]=a-c+-1.2154201013012384E-10;d=2;break a}a=a+3.1415926534682512;c=a+1.2154201013012384E-10;O[b>>3]=c;O[b+8>>3]=a-c+1.2154201013012384E-10;d=-2;break a}if(h>>>0<=1075594811){if(h>>> -0<=1075183036){if((h|0)==1074977148)break c;if((e|0)>0|(e|0)>=0){a=a+-4.712388980202377;c=a+-1.8231301519518578E-10;O[b>>3]=c;O[b+8>>3]=a-c+-1.8231301519518578E-10;d=3;break a}a=a+4.712388980202377;c=a+1.8231301519518578E-10;O[b>>3]=c;O[b+8>>3]=a-c+1.8231301519518578E-10;d=-3;break a}if((h|0)==1075388923)break c;if((e|0)>0|(e|0)>=0){a=a+-6.2831853069365025;c=a+-2.430840202602477E-10;O[b>>3]=c;O[b+8>>3]=a-c+-2.430840202602477E-10;d=4;break a}a=a+6.2831853069365025;c=a+2.430840202602477E-10;O[b>>3]= -c;O[b+8>>3]=a-c+2.430840202602477E-10;d=-4;break a}if(h>>>0>1094263290)break b}f=a*.6366197723675814+6755399441055744+-6755399441055744;c=a+f*-1.5707963267341256;g=f*6.077100506506192E-11;l=c-g;e=l<-.7853981633974483;if(R(f)<2147483648)d=~~f;else d=-2147483648;d:{if(e){d=d-1|0;f=f+-1;g=f*6.077100506506192E-11;c=a+f*-1.5707963267341256;break d}if(!(l>.7853981633974483))break d;d=d+1|0;f=f+1;g=f*6.077100506506192E-11;c=a+f*-1.5707963267341256}a=c-g;O[b>>3]=a;A(+a);e=v(1)|0;v(0)|0;j=h>>>20|0;e:{if((j- -(e>>>20&2047)|0)<17)break e;g=c;a=f*6.077100506303966E-11;c=c-a;g=f*2.0222662487959506E-21-(g-c-a);a=c-g;O[b>>3]=a;A(+a);e=v(1)|0;v(0)|0;if((j-(e>>>20&2047)|0)<50)break e;g=c;a=f*2.0222662487111665E-21;c=c-a;g=f*8.4784276603689E-32-(g-c-a);a=c-g;O[b>>3]=a}O[b+8>>3]=c-a-g;break a}if(h>>>0>=2146435072){a=a-a;O[b>>3]=a;O[b+8>>3]=a;d=0;break a}x(0,d|0);x(1,e&1048575|1096810496);a=+z();d=0;j=1;while(1){k=(i+16|0)+(d<<3)|0;if(R(a)<2147483648)d=~~a;else d=-2147483648;c=+(d|0);O[k>>3]=c;a=(a-c)*16777216; -d=1;k=j;j=0;if(k)continue;break}O[i+32>>3]=a;d=2;while(1){j=d;d=d-1|0;k=i+16|0;if(O[k+(j<<3)>>3]==0)continue;break}d=qz(k,i,(h>>>20|0)-1046|0,j+1|0,1);a=O[i>>3];if((e|0)<0){O[b>>3]=-a;O[b+8>>3]=-O[i+8>>3];d=0-d|0;break a}O[b>>3]=a;O[b+8>>3]=O[i+8>>3]}xb=i+48|0;return d}function X1(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;f=J[a+12>>2];c=J[a+8>>2];if(f>>>0>c+3>>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b>>2]=e;if(f>>>0>c+3>>>0){g=K[c|0]|K[c+1|0]<< -8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+4>>2]=g;g=0;if(f>>>0>c+3>>>0){h=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+8>>2]=h;if(f>>>0>c+3>>>0){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+12>>2]=g;e=0;if(f>>>0>c+3>>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+16>>2]=e;if(f>>>0<=c+3>>>0)k=0;else{e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;k=+(x(2,e),C())}O[b+24>>3]=k;if(f>>> -0>c+3>>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;k=+(x(2,e),C())}else k=0;O[b+32>>3]=k;if(!(g&256)){e=0;if(f>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+40>>2]=d;if(f>>>0>c+3>>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+44>>2]=e;e=0;a:{if(f>>>0<=c+3>>>0){d=0;break a}d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+48>>2]=d;if(f>>>0>c+3>>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2| -0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+52>>2]=e}J[b+56>>2]=0;if(h){b:{if(g&512){g=Pb(h);c:{if((c|0)==(f|0))break c;e=f-c|0;d=e>>>0>>0?e:h;i=d&1;e=0;if((d|0)!=1){l=d&-2;while(1){d:{if(c>>>0>=f>>>0){d=0;break d}d=K[c|0];c=c+1|0;J[a+8>>2]=c}H[e+g|0]=d;d=0;if(c>>>0>>0){d=K[c|0];c=c+1|0;J[a+8>>2]=c}H[g+(e|1)|0]=d;e=e+2|0;j=j+2|0;if((l|0)!=(j|0))continue;break}}if(!i)break c;d=0;if(c>>>0>>0){d=K[c|0];J[a+8>>2]=c+1}H[e+g|0]=d}d=h>>>0<=1?1:h;f=d&3;j=0;e=Pb((h|0)<0?-1:h<<1);c=0;if(h>>>0>=4){h= -d&-4;d=0;while(1){I[(c<<1)+e>>1]=K[c+g|0];i=c|1;I[(i<<1)+e>>1]=K[g+i|0];i=c|2;I[(i<<1)+e>>1]=K[g+i|0];i=c|3;I[(i<<1)+e>>1]=K[g+i|0];c=c+4|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}if(f)while(1){I[(c<<1)+e>>1]=K[c+g|0];c=c+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}Kb(g);break b}e=Pb((h|0)<0?-1:h<<1);d=f-c|0;if(d+1>>>0<3)break b;d=(d|0)/2|0;d=d>>>0>>0?d:h;h=d&1;g=0;if((d|0)!=1){i=d&-2;while(1){e:{if(f>>>0<=c+1>>>0){d=0;break e}d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[(g<<1)+e>>1]=d;d=0;if(f>>> -0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[((g|1)<<1)+e>>1]=d;g=g+2|0;j=j+2|0;if((i|0)!=(j|0))continue;break}}if(!h)break b;d=0;if(f>>>0>c+1>>>0){d=K[c|0]|K[c+1|0]<<8;J[a+8>>2]=c+2}I[(g<<1)+e>>1]=d}J[b+56>>2]=e}return a|0}function B0(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;i=xb-96|0;xb=i;a:{h=J[b>>2];b:{if((J[b+4>>2]-h>>4)-5>>>0<4294967294)break b;e=J[h>>2];if((e|0)==-2147483648|J[h+4>>2]==-2147483648|(!J[a+208>>2]|(e|0)==J[h+16>>2]))break b;h=Bg(i+8|0);J[h+16>> -2]=10;e=J[b>>2];f=+L[e+8>>1]/255;c:{if(f<4294967296&f>=0){g=~~f>>>0;break c}g=0}H[h+10|0]=g;f=+L[e+10>>1]/255;d:{if(f<4294967296&f>=0){g=~~f>>>0;break d}g=0}H[h+9|0]=g;j=L[e+12>>1];H[h+11|0]=255;f=+(j>>>0)/255;e:{if(f<4294967296&f>=0){g=~~f>>>0;break e}g=0}H[h+8|0]=g;f:{if(!(d&-3)){if((J[e+16>>2]-J[e>>2]|0)!=1){f=+L[e+24>>1]/255;g:{if(f<4294967296&f>=0){g=~~f>>>0;break g}g=0}H[h+14|0]=g;f=+L[e+26>>1]/255;h:{if(f<4294967296&f>=0){g=~~f>>>0;break h}g=0}H[h+13|0]=g;f=+L[e+28>>1]/255;if(f<4294967296& -f>=0){H[h+12|0]=~~f>>>0;break f}H[h+12|0]=0;break f}J[h+16>>2]=0;break f}if((d|0)!=1)break f;if((J[e+36>>2]-J[e+4>>2]|0)!=1){f=+L[e+40>>1]/255;i:{if(f<4294967296&f>=0){g=~~f>>>0;break i}g=0}H[h+14|0]=g;f=+L[e+42>>1]/255;j:{if(f<4294967296&f>=0){g=~~f>>>0;break j}g=0}H[h+13|0]=g;f=+L[e+44>>1]/255;if(f<4294967296&f>=0){H[h+12|0]=~~f>>>0;break f}H[h+12|0]=0;break f}J[h+16>>2]=0}H[h+15|0]=255;e=J[a+120>>2];J[195395]=0;j=J[e+20>>2];e=J[195395];J[195395]=0;if((e|0)==1)break a;e=J[a+120>>2];J[195395]=0; -k=h+4|0;J[e+20>>2]=k;e=J[195395];J[195395]=0;if((e|0)==1)break a;e=J[b>>2];g=J[e+4>>2];e=J[e>>2];J[195395]=0;fa(2050,a|0,e|0,g|0);e=J[195395];J[195395]=0;if((e|0)==1)break a;e=J[b>>2];g=J[e+20>>2];e=J[e+16>>2];J[195395]=0;fa(2051,a|0,e|0,g|0);e=J[195395];J[195395]=0;if((e|0)==1)break a;e=J[b>>2];g=J[e+36>>2];e=J[e+32>>2];J[195395]=0;fa(2051,a|0,e|0,g|0);e=J[195395];J[195395]=0;if((e|0)==1)break a;e=J[b>>2];if((J[b+4>>2]-e|0)==64){g=J[e+52>>2];e=J[e+48>>2];J[195395]=0;fa(2051,a|0,e|0,g|0);e=J[195395]; -J[195395]=0;if((e|0)==1)break a}J[195395]=0;ea(2052,a|0);e=J[195395];J[195395]=0;if((e|0)==1)break a;e=J[a+208>>2];if(!(!(!J[a+156>>2]|!e)|!e)){g=J[J[e>>2]+52>>2];J[195395]=0;$(g|0,e|0,2);e=J[195395];J[195395]=0;if((e|0)==1)break a;e=J[a+208>>2];g=J[J[e>>2]+56>>2];J[195395]=0;ea(g|0,e|0);e=J[195395];J[195395]=0;if((e|0)==1)break a;e=J[a+208>>2]}if(e){g=J[J[e>>2]+448>>2];J[195395]=0;ia(g|0,e|0,b|0,c|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+120>>2];J[195395]=0;if(J[b+20>>2]==(k|0))J[b+ -20>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break a;a=J[a+120>>2];J[195395]=0;J[a+20>>2]=j;a=J[195395];J[195395]=0;if((a|0)==1)break a;Ge(h)}xb=i+96|0;return}a=Z()|0;Ge(h);ba(a|0);B()}function tA(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;r=xb-16|0;xb=r;e=Zi(a,d);a:{if(e)break a;yl(a,b,c,d);s=J[a>>2];c=J[a+2748>>2];b=J[J[c>>2]+8>>2];f=P(d,1348)+a|0;k=f;J[f+56>>2]=0;o=f+44|0;e=J[o>>2];f=J[f+52>>2];t=J[(d?12:4)+a>>2];h=K[J[(b<<2)+16352>>2]+12|0];b:{if((d| -0)==1)break b;h=0;if(d)break b;v=dc(64,J[a+12>>2]);h=0}u=dc(32,t);b=Rb(J[(c+P(d,9804)|0)+248>>2],t);w=dc((b|0)>=16?16:b,t);if((e|0)>0){x=P(e,44)+f|0;i=P(v,3);m=(P(d,1348)+a|0)- -64|0;n=h&255;c=f;while(1){b=I[c+10>>1];c:{if((b|0)<(v|0)|(u|0)>1])break c;l=K[c+1|0];if((l|0)==4|((i|0)>b<<1?J[c+24>>2]:0))break c;d:{g=J[k+56>>2];e:{if((g|0)<=0){j=I[c+2>>1];break e}j=I[c+2>>1];h=J[m>>2];e=0;while(1){p=h+P(e,44)|0;b=j-I[p>>1]|0;q=b>>31;if((l|0)==K[p+13|0]&((b^q)-q|0)<(w|0))break d;e=e+1|0;if((g|0)!= -(e|0))continue;break}}e=px(o,j,l<<24>>24,n,s,r+12|0);if(e)break a;e=J[r+12>>2];J[e>>2]=0;J[e+4>>2]=0;J[e+40>>2]=c;J[e+36>>2]=c;J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;H[e+13|0]=K[c+1|0];b=I[c+2>>1];I[e>>1]=b;b=Rb(b,t);J[e+8>>2]=b;J[e+4>>2]=b;J[c+16>>2]=c;break c}J[c+16>>2]=J[p+36>>2];J[J[p+40>>2]+16>>2]=c;J[p+40>>2]=c}c=c+44|0;if(x>>>0>c>>>0)continue;break}while(1){f:{if(K[f+1|0]!=4)break f;g=J[k+56>>2];if((g|0)<=0)break f;h=I[f+2>>1];e=J[m>>2];c= -0;while(1){i=e+P(c,44)|0;b=h-I[i>>1]|0;n=b>>31;if(((b^n)-n|0)>=(w|0)){c=c+1|0;if((g|0)!=(c|0))continue;break f}break}J[f+16>>2]=J[i+36>>2];J[J[i+40>>2]+16>>2]=f;J[i+40>>2]=f}f=f+44|0;if(x>>>0>f>>>0)continue;break}}e=0;g=J[(P(d,1348)+a|0)- -64>>2];if(!g)break a;a=J[k+56>>2];if((a|0)<=0)break a;q=P(a,44)+g|0;e=g;while(1){a=J[e+36>>2];c=a;if(c)while(1){J[c+12>>2]=e;c=J[c+16>>2];if((a|0)!=(c|0))continue;break}e=e+44|0;if(q>>>0>e>>>0)continue;break}while(1){d=g+28|0;h=g+24|0;u=J[g+36>>2];c=u;j=0;m=0;while(1){i= -H[c|0]&1;n=!i;e=J[c+24>>2];g:{h:{i:{if(e){a=J[e+12>>2];b=(a|0)!=0&(a|0)!=(g|0);f=J[c+20>>2];if(f)break i;l=1;k=d;if(b)break h;break g}b=0;f=J[c+20>>2];if(!f)break g}a=b&1;if(!(a|J[f+12>>2]))break g;l=1;k=d;if(a)break h;l=0;e=f;k=h}b=J[k>>2];j:{if(b){f=I[c+2>>1]-I[e+2>>1]|0;s=f>>31;a=I[g>>1]-I[b>>1]|0;o=a>>31;if((f^s)-s>>>0>=(a^o)-o>>>0)break j}b=J[e+12>>2]}if(l){J[d>>2]=b;H[b+12|0]=K[b+12|0]|2;break g}J[h>>2]=b}j=j+i|0;m=m+n|0;c=J[c+16>>2];if((u|0)!=(c|0))continue;break}H[g+12|0]=(j|0)>0&(j|0)>=(m| -0);if(!(!J[g+28>>2]|!J[h>>2]))J[d>>2]=0;g=g+44|0;if(q>>>0>g>>>0)continue;break}e=0}xb=r+16|0;return e}function QO(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;h=xb-96|0;xb=h;J[h+80>>2]=0;J[h+84>>2]=0;J[h+72>>2]=0;J[h+76>>2]=0;j=h- -64|0;J[j>>2]=0;J[j+4>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[h+48>>2]=0;J[h+52>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;m=c+10|0;g=Tb(a,8,0,m,0,h+92|0);J[b+20>>2]=g;j=J[h+92>>2];if(!j){a:{if(!c)break a;while(1){j=Ab[d|0](f,l)|0;b:{if(!j)break b; -i=0;c:{d:{if(!fc(93552,j))break d;i=1;if(!fc(93558,j))break d;i=2;if(!fc(93564,j))break d;i=3;if(!fc(93573,j))break d;i=4;if(!fc(93580,j))break d;i=5;if(!fc(93587,j))break d;i=6;if(!fc(93590,j))break d;i=7;if(!fc(93605,j))break d;i=8;if(!fc(93611,j))break d;if(fc(93624,j))break c;i=9}k=i<<2;i=k+(h+48|0)|0;if(J[i>>2])break c;J[i>>2]=1;J[h+k>>2]=l}i=aw(j);if(i&2147483647){n=h+48|0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((i|0)<=915){n:switch(i-160|0){case 0:break i;case 13:break m;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break e; -default:break n}switch(i-538|0){case 1:break g;case 0:break h;default:break l}}o:{p:switch(i-937|0){default:q:switch(i-8725|0){case 4:break j;case 0:break o;case 1:case 2:case 3:break e;default:break q}k=0;if((i|0)==916)break f;break e;case 19:break k;case 0:break p;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:break e}k=1;break f}k=2;break f}k=3;break f}if((i|0)!=713)break e;k=4;break f}k=5;break f}k=6;break f}k= -7;break f}k=8;break f}k=9}J[n+(k<<2)>>2]=2}J[g+4>>2]=l;J[g>>2]=i;g=g+8|0}if(!e)break b;Ab[e|0](f,j)}l=l+1|0;if((l|0)!=(c|0))continue;break}if(J[h+48>>2]!=1)break a;J[g>>2]=916;J[g+4>>2]=J[h>>2];g=g+8|0}if(J[h+52>>2]==1){J[g>>2]=937;J[g+4>>2]=J[h+4>>2];g=g+8|0}if(J[h+56>>2]==1){J[g>>2]=8725;J[g+4>>2]=J[h+8>>2];g=g+8|0}if(J[h+60>>2]==1){J[g>>2]=173;J[g+4>>2]=J[h+12>>2];g=g+8|0}if(J[h+64>>2]==1){J[g>>2]=713;J[g+4>>2]=J[h+16>>2];g=g+8|0}if(J[h+68>>2]==1){J[g>>2]=956;J[g+4>>2]=J[h+20>>2];g=g+8|0}if(J[h+ -72>>2]==1){J[g>>2]=8729;J[g+4>>2]=J[h+24>>2];g=g+8|0}if(J[h+76>>2]==1){J[g>>2]=160;J[g+4>>2]=J[h+28>>2];g=g+8|0}if(J[h+80>>2]==1){J[g>>2]=538;J[g+4>>2]=J[h+32>>2];g=g+8|0}if(J[h+84>>2]==1){J[g>>2]=539;J[g+4>>2]=J[h+36>>2];g=g+8|0}j=J[b+20>>2];d=g-j>>3;r:{if((g|0)==(j|0)){if(g)Ab[J[a+8>>2]](a,g);J[b+20>>2]=0;a=J[h+92>>2];j=a?a:163;break r}if(d>>>0>>1>>>0){j=Tb(a,8,m,d,j,h+92|0);J[b+20>>2]=j;J[h+92>>2]=0}Nh(j,d,8,52);j=J[h+92>>2]}J[b+16>>2]=d}xb=h+96|0;return j|0}function Qc(a,b,c){var d=0,e=0,f= -0,g=0,h=0;d=J[a+420>>2];g=K[b|0];h=J[((g&127)<<2)+249792>>2];f=h>>16;e=J[d+16>>2]-f|0;J[d+16>>2]=e;a:{b:{if((g>>>7|0)!=(c|0)){if((e|0)>=(f|0)){J[d+16>>2]=f;J[d+12>>2]=e+J[d+12>>2]}c=g&128^h&255;break b}if((e|0)>32767)break a;if((e|0)<(f|0)){J[d+16>>2]=f;J[d+12>>2]=e+J[d+12>>2]}c=g&128^h>>>8}H[b|0]=c;b=J[d+28>>2];e=J[d+12>>2];c=J[d+16>>2];while(1){b=b-1|0;J[d+28>>2]=b;e=e<<1;J[d+12>>2]=e;c=c<<1;J[d+16>>2]=c;if(!b){e=e>>19;c:{if((e|0)>=256){c=J[d+32>>2];d:{if((c|0)<0)break d;if(J[d+24>>2]){while(1){b= -J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(Ab[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}c=J[d+32>>2]}b=J[a+24>>2];f=J[b>>2];J[b>>2]=f+1;H[f|0]=c+1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(Ab[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(J[d+32>>2]!=254)break d;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break d;if(Ab[J[b+ -12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}J[d+32>>2]=e&255;b=J[d+20>>2];J[d+20>>2]=0;J[d+24>>2]=b+J[d+24>>2];break c}if((e|0)==255){J[d+20>>2]=J[d+20>>2]+1;break c}b=J[d+32>>2];g:{if(!b){J[d+24>>2]=J[d+24>>2]+1;break g}if((b|0)<0)break g;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(Ab[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c= -J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break g;if(Ab[J[c+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(J[d+20>>2]){if(J[d+24>>2])while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(Ab[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(Ab[J[b+ -12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(Ab[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[d+20>>2]-1|0;J[d+20>>2]=b;if(b)continue;break}}J[d+32>>2]=e&255}e=J[d+12>>2]&524287;J[d+12>>2]=e;b=J[d+28>>2]+8|0;J[d+28>>2]=b;c=J[d+16>>2]}if((c|0)<32768)continue;break}}}function Cfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0), -n=Q(0),o=0,p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=0,w=0,x=0,y=Q(0);v=xb-256|0;xb=v;o=J[a+332>>2];b=J[b+84>>2];a=v;w=8;while(1){a:{b:{f=L[c+32>>1];x=L[c+16>>1];if(f|x)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;h=Q(N[b>>2]*Q(I[c>>1]));N[a+192>>2]=h;N[a+160>>2]=h;N[a+128>>2]=h;N[a+96>>2]=h;N[a+64>>2]=h;N[a+32>>2]=h;N[a>>2]=h;f=56;break a}i=Q(N[b>>2]*Q(I[c>>1]));j=Q(N[b+128>>2]*Q(I[c+64>>1]));p=Q(i+j);k=Q(N[b+64>>2]*Q(f<<16>>16));l=Q(N[b+192>>2]*Q(I[c+ -96>>1]));h=Q(k+l);m=Q(p+h);n=Q(N[b+96>>2]*Q(I[c+48>>1]));q=Q(N[b+160>>2]*Q(I[c+80>>1]));r=Q(n+q);s=Q(N[b+32>>2]*Q(x<<16>>16));t=Q(N[b+224>>2]*Q(I[c+112>>1]));u=Q(s+t);g=Q(r+u);N[a+224>>2]=m-g;N[a>>2]=m+g;i=Q(i-j);j=Q(Q(Q(k-l)*Q(1.4142135381698608))-h);k=Q(i+j);l=Q(q-n);m=Q(s-t);n=Q(Q(l+m)*Q(1.8477590084075928));g=Q(Q(n+Q(l*Q(-2.613126039505005)))-g);N[a+192>>2]=k-g;N[a+32>>2]=k+g;i=Q(i-j);g=Q(Q(Q(u-r)*Q(1.4142135381698608))-g);N[a+160>>2]=i-g;N[a+64>>2]=i+g;h=Q(p-h);g=Q(Q(n+Q(m*Q(-1.0823922157287598)))- -g);N[a+96>>2]=h+g;h=Q(h-g);f=32}N[(f<<2)+a>>2]=h;c=c+2|0;b=b+4|0;a=a+4|0;f=w>>>0>1;w=w-1|0;if(f)continue;break}c=v;b=0;while(1){a=J[(b<<2)+d>>2]+e|0;i=Q(N[c>>2]+Q(128.5));j=N[c+16>>2];p=Q(i+j);k=N[c+8>>2];l=N[c+24>>2];h=Q(k+l);m=Q(p+h);n=N[c+20>>2];q=N[c+12>>2];r=Q(n+q);s=N[c+4>>2];t=N[c+28>>2];u=Q(s+t);g=Q(r+u);y=Q(m+g);c:{if(Q(R(y))>>0>>0?c:b;k=J[a+68>>2]; -l=c>>>0>k>>>0;if(f)J[f>>2]=0;if(e)H[d|0]=0;k=l?k:c;a:{if(k>>>0<=b>>>0)break a;c=b>>>0>k>>>0?k:b;if((g|0)!=1246973774){if((g|0)!=1413830740)break a;m=J[a+80>>2];if(f)J[f>>2]=0;if(b>>>0>=k>>>0){i=k-c|0;break a}o=k-1|0;g=1;l=j+96|1;b:{c:{if(!(h&1)){p=j+1120|0;b=c;while(1){H[j+96|0]=b?124:60;h=m+P(b,20)|0;J[j+16>>2]=J[h>>2];a=Jf(l,1023,107289,j+16|0);J[j>>2]=J[h+8>>2];a=l+((a|0)>0?a:0)|0;h=Jf(a,p-a|0,105805,j);a=((h|0)>0?h:0)+a|0;if((b|0)==(o|0)){H[a|0]=62;a=a+1|0}h=j+96|0;i=a-h|0;if(i>>>0>=e>>>0)break b; -if((a|0)!=(h|0))Mb(d,h,i);d=d+i|0;if(f)J[f>>2]=J[f>>2]+i;e=e-i|0;H[d|0]=0;b=b+1|0;g=k>>>0>b>>>0;if((b|0)!=(k|0))continue;break}break c}b=c;while(1){H[j+96|0]=b?124:60;J[j+32>>2]=J[m+P(b,20)>>2];a=Jf(l,1023,107289,j+32|0);a=l+((a|0)>0?a:0)|0;if((b|0)==(o|0)){H[a|0]=62;a=a+1|0}h=j+96|0;i=a-h|0;if(i>>>0>=e>>>0)break b;if((a|0)!=(h|0))Mb(d,h,i);d=d+i|0;if(f)J[f>>2]=J[f>>2]+i;e=e-i|0;H[d|0]=0;b=b+1|0;g=k>>>0>b>>>0;if((b|0)!=(k|0))continue;break}}if(g)break a;i=k-c|0;break a}if(!g){i=k-c|0;break a}i=b- -c|0;break a}o=J[a+80>>2];if(f)J[f>>2]=0;if(b>>>0>=k>>>0){i=k-c|0;break a}p=k-1|0;a=1;b=j+96|0;m=b|6;l=b|2;d:{e:{if(!(h&1)){q=j+1120|0;r=K[107363];g=K[107359]|K[107360]<<8|(K[107361]<<16|K[107362]<<24);b=c;while(1){H[j+97|0]=123;H[j+96|0]=b?44:91;H[l+4|0]=r;H[l|0]=g;H[l+1|0]=g>>>8;H[l+2|0]=g>>>16;H[l+3|0]=g>>>24;i=o+P(b,20)|0;J[j+64>>2]=J[i>>2];h=Jf(m,1018,105615,j- -64|0);J[j+48>>2]=J[i+8>>2];h=m+((h|0)>0?h:0)|0;i=Jf(h,q-h|0,106952,j+48|0);h=((i|0)>0?i:0)+h|0;H[h|0]=125;if((b|0)!=(p|0))h=h+1|0;else{H[h+ -1|0]=93;h=h+2|0}n=j+96|0;i=h-n|0;if(e>>>0<=i>>>0)break d;if((h|0)!=(n|0))Mb(d,n,i);d=d+i|0;if(f)J[f>>2]=J[f>>2]+i;e=e-i|0;H[d|0]=0;b=b+1|0;a=k>>>0>b>>>0;if((b|0)!=(k|0))continue;break}break e}q=K[107363];g=K[107359]|K[107360]<<8|(K[107361]<<16|K[107362]<<24);b=c;while(1){H[j+97|0]=123;H[j+96|0]=b?44:91;H[l+4|0]=q;H[l|0]=g;H[l+1|0]=g>>>8;H[l+2|0]=g>>>16;H[l+3|0]=g>>>24;J[j+80>>2]=J[o+P(b,20)>>2];h=Jf(m,1018,105615,j+80|0);h=m+((h|0)>0?h:0)|0;H[h|0]=125;if((b|0)!=(p|0))h=h+1|0;else{H[h+1|0]=93;h=h+ -2|0}n=j+96|0;i=h-n|0;if(e>>>0<=i>>>0)break d;if((h|0)!=(n|0))Mb(d,n,i);d=d+i|0;if(f)J[f>>2]=J[f>>2]+i;e=e-i|0;H[d|0]=0;b=b+1|0;a=k>>>0>b>>>0;if((b|0)!=(k|0))continue;break}}if(a)break a;i=k-c|0;break a}if(!a){i=k-c|0;break a}i=b-c|0}xb=j+1120|0;return i|0}function S9(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;j=xb-16|0;xb=j;k=J[a+584>>2];a:{if((b|0)==65557){i=J[c>>2];J[k+120>>2]=i;b=1;if(!(K[k+124|0]&2))break a;e=-2;c=k- -64|0;b:{if(!c|!J[c+32>>2]|!J[c+36>>2])break b; -g=J[c+28>>2];if(!g|(c|0)!=J[g>>2])break b;c:{d:{d=J[g+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break b;case 0:case 12:case 16:case 34:case 46:case 56:break c; -default:break d}}if((d|0)==666)break c;if((d|0)!=42)break b}l=(i|0)==-1?6:i;if(l>>>0>9)break b;e:{if(!J[g+136>>2])if(J[P(J[g+132>>2],12)+224584>>2]==J[P(l,12)+224584>>2])break e;if(!J[g+5824>>2])break e;if((jg(c,5)|0)==-2)break b;if(J[c+16>>2])break e;e=-5;break b}c=J[g+132>>2];if((c|0)!=(l|0)){f:{if(c)break f;g:{h:switch(J[g+5808>>2]){case 1:d=0;i=J[g+76>>2];h=i-1|0;e=J[g+68>>2]+(i<<1)|0;c=J[g+44>>2];m=i&3;if(m)while(1){e=e-2|0;n=L[e>>1];f=n-c|0;I[e>>1]=f>>>0<=n>>>0?f:0;i=i-1|0;d=d+1|0;if((m|0)!= -(d|0))continue;break}if(h>>>0>=3)while(1){f=e-2|0;h=L[f>>1];d=h-c|0;I[f>>1]=d>>>0<=h>>>0?d:0;f=e-4|0;h=L[f>>1];d=h-c|0;I[f>>1]=d>>>0<=h>>>0?d:0;f=e-6|0;h=L[f>>1];d=h-c|0;I[f>>1]=d>>>0<=h>>>0?d:0;e=e-8|0;f=L[e>>1];d=f-c|0;I[e>>1]=d>>>0<=f>>>0?d:0;i=i-4|0;if(i)continue;break}h=c-1|0;e=J[g+64>>2]+(c<<1)|0;m=c&3;i:{if(!m){i=c;break i}d=0;i=c;while(1){e=e-2|0;n=L[e>>1];f=n-c|0;I[e>>1]=f>>>0<=n>>>0?f:0;i=i-1|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}if(h>>>0>=3)while(1){f=e-2|0;h=L[f>>1];d=h-c|0;I[f>>1]= -d>>>0<=h>>>0?d:0;f=e-4|0;h=L[f>>1];d=h-c|0;I[f>>1]=d>>>0<=h>>>0?d:0;f=e-6|0;h=L[f>>1];d=h-c|0;I[f>>1]=d>>>0<=h>>>0?d:0;e=e-8|0;f=L[e>>1];d=f-c|0;I[e>>1]=d>>>0<=f>>>0?d:0;i=i-4|0;if(i)continue;break}c=J[g+76>>2];e=J[g+68>>2];break g;case 0:break f;default:break h}e=J[g+68>>2];c=J[g+76>>2];I[(e+(c<<1)|0)-2>>1]=0}Nb(e,0,(c<<1)-2|0);J[g+5808>>2]=0}J[g+132>>2]=l;c=P(l,12);J[g+144>>2]=L[c+224580>>1];J[g+140>>2]=L[c+224576>>1];J[g+128>>2]=L[c+224578>>1];J[g+124>>2]=L[c+224582>>1]}J[g+136>>2]=0;e=0}if(!e)break a; -b=J[a+628>>2];a=J[a>>2];J[j+4>>2]=J[k+88>>2];J[j>>2]=a;Ob(b,289028,265088,j);b=0;break a}b=Ab[J[k+132>>2]](a,b,c)|0}xb=j+16|0;return b|0}function eB(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;g=J[a+12>>2];e=J[a+8>>2];if(g>>>0>e+3>>>0){d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[a+8>>2]=e}J[b>>2]=d;a:{if(e+3>>>0>=g>>>0){d=e;break a}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);d=e+4|0;J[a+8>>2]=d}J[b+4>>2]=f;b:{if(d+3>>>0>=g>>>0){e=0;break b}e=K[d|0]| -K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+8>>2]=e;if(d+3>>>0>>0){j=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+12>>2]=j;f=0;if(d+3>>>0>>0){l=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+16>>2]=l;if(d+3>>>0>>0){f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+20>>2]=f;f=0;if(d+3>>>0>>0){h=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+24>>2]=h;if(d+3>>>0>>0){f=K[d| -0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+28>>2]=f;c:{if(d+3>>>0>=g>>>0){f=0;break c}f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d+4|0;J[a+8>>2]=d}J[b+32>>2]=f;d:{if(d+3>>>0>=g>>>0){f=d;break d}k=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=d+4|0;J[a+8>>2]=f}J[b+40>>2]=0;J[b+44>>2]=0;J[b+36>>2]=k;h=g-f|0;i=e>>>0>h>>>0?h:e;J[b+8>>2]=i;e:{if(!i)break e;if(j-40>>>0>c>>>0){c=((j-c|0)+f|0)-40|0;f=c>>>0>>0?c:g;J[a+8>>2]=f;h=g-f|0}d=0;c=Pb(i+1|0);H[c+i|0]=0;e=g;f:{if((f| -0)==(e|0))break f;e=h>>>0>>0?h:i;m=e&1;g:{if((e|0)==1){e=f;break g}n=e&-2;e=f;h=0;while(1){h:{if(e>>>0>=g>>>0){f=0;break h}f=K[e|0];e=e+1|0;J[a+8>>2]=e}H[c+d|0]=f;f=0;if(e>>>0>>0){f=K[e|0];e=e+1|0;J[a+8>>2]=e}H[c+(d|1)|0]=f;d=d+2|0;h=h+2|0;if((n|0)!=(h|0))continue;break}}if(!m)break f;f=0;if(e>>>0>>0){f=K[e|0];e=e+1|0;J[a+8>>2]=e}H[c+d|0]=f}J[b+40>>2]=c;i:{if(i>>>0>2147483646|j>>>0>=k>>>0)break i;c=k-j|0;f=i<<1;if(c>>>0<=f>>>0)break i;c=(c-f|0)+e|0;e=c>>>0>>0?c:g;J[a+8>>2]=e}f=J[b+8>> -2]<<(l>>>13&1);d=g-e|0;if(f-1>>>0>=d>>>2>>>0)break e;c=Pb(f<<2);d=(d|0)/4|0;i=d>>>0>>0?d:f;j:{if(!i)break j;d=0;if((i|0)!=1){j=i&-2;h=0;while(1){k:{if(e+3>>>0>=g>>>0){f=0;break k}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[a+8>>2]=e}J[c+(d<<2)>>2]=f;f=0;if(e+3>>>0>>0){f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[a+8>>2]=e}J[c+((d|1)<<2)>>2]=f;d=d+2|0;h=h+2|0;if((j|0)!=(h|0))continue;break}}if(!(i&1))break j;f=0;if(e+3>>>0>>0){f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16| -K[e+3|0]<<24);J[a+8>>2]=e+4}J[c+(d<<2)>>2]=f}J[b+44>>2]=c}}function $K(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;k=xb-16|0;xb=k;g=J[a+492>>2];h=J[b+8>>2];Ab[J[b+28>>2]](b);d=J[b>>2];a:{if(h>>>0<=d>>>0){J[b+12>>2]=3;break a}l=K[d|0];if(!((l|0)!=91&l-48>>>0>9)){e=J[b+16>>2];b:{if((l|0)==91){J[b>>2]=d+1;c=256;break b}c=Ab[J[b+36>>2]](b)|0}Ab[J[b+28>>2]](b);if(M[b>>2]>=h>>>0)break a;i=b+100|0;n=c;j=(c|0)>=256?256:c;c=J[a+384>>2];c:{if(!c)break c;if(c)Ab[J[e+8>>2]](e, -c);J[a+384>>2]=0;c=J[a+388>>2];if(c)Ab[J[e+8>>2]](e,c);J[a+388>>2]=0;c=J[b+148>>2];if(!c)break c;Ab[c|0](i)}J[a+372>>2]=j;J[b+96>>2]=j;c=k+12|0;o=a,p=Tb(e,2,0,j,0,c),J[o+384>>2]=p;d:{f=J[k+12>>2];if(f)break d;o=a,p=Tb(e,4,0,j,0,c),J[o+388>>2]=p;f=J[k+12>>2];if(f)break d;f=Ab[J[J[g>>2]>>2]](i,j,e)|0;J[k+12>>2]=f;if(f)break d;e:{if((n|0)<=0)break e;g=(j|0)<=1?1:j;m=g&3;e=0;c=0;if(g>>>0>=4){g=g&2147483644;f=0;while(1){Ab[J[b+144>>2]](i,c,11262,8)|0;Ab[J[b+144>>2]](i,c|1,11262,8)|0;Ab[J[b+144>>2]](i, -c|2,11262,8)|0;Ab[J[b+144>>2]](i,c|3,11262,8)|0;c=c+4|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}if(!m)break e;while(1){Ab[J[b+144>>2]](i,c,11262,8)|0;c=c+1|0;e=e+1|0;if((m|0)!=(e|0))continue;break}}Ab[J[b+28>>2]](b);c=J[b>>2];f:{if(h>>>0<=c>>>0)break f;f=(l|0)==91;g=0;while(1){g:{h:{i:{e=K[c|0];switch(e-93|0){case 0:break h;case 7:break i;default:break g}}d=c+3|0;if(K[c+1|0]!=101|h>>>0<=d>>>0|K[c+2|0]!=102)break g;switch(K[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break f; -default:break g}}d=c+1|0;break f}j:{k:{if(!(!f&e-48>>>0>9)){if(f){d=c;e=g;break k}e=Ab[J[b+36>>2]](b)|0;Ab[J[b+28>>2]](b);d=J[b>>2];if((d|0)!=(c|0))break k;J[b+12>>2]=2;break a}Ab[J[b+32>>2]](b);d=c;if(J[b+12>>2])break a;break j}if(!(K[d|0]!=47|d+2>>>0>=h>>>0|(g|0)>=(n|0))){d=d+1|0;J[b>>2]=d;Ab[J[b+32>>2]](b);c=J[b>>2];if(J[b+12>>2]|c>>>0>=h>>>0)break a;if((g|0)<(j|0)){m=c-d|0;c=Ab[J[b+144>>2]](i,e,d,m+1|0)|0;J[b+12>>2]=c;if(c)break a;H[m+J[J[b+124>>2]+(e<<2)>>2]|0]=0}g=g+1|0;break j}if((l|0)!=91)break j; -J[b+12>>2]=2;break a}Ab[J[b+28>>2]](b);c=J[b>>2];if(h>>>0>c>>>0)continue;break}}J[a+368>>2]=1;J[b>>2]=d;break a}J[b+12>>2]=f;break a}l:{if(d+17>>>0>=h>>>0)break l;if(Zb(d,23503,16))break l;J[a+368>>2]=2;break a}m:{if(d+15>>>0>=h>>>0)break m;if(Zb(d,23540,14))break m;J[a+368>>2]=4;break a}n:{if(d+18>>>0>=h>>>0)break n;if(Zb(d,23574,17))break n;J[a+368>>2]=3;break a}J[b+12>>2]=162}xb=k+16|0}function iea(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, -u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;B=xb-160|0;xb=B;d=a;while(1){a:{e=d;d=J[(j<<2)+b>>2]+c|0;k=K[d+12|0];r=K[d|0];h=k+r|0;s=K[d+11|0];t=K[d+1|0];g=s+t|0;l=K[d+10|0];m=K[d+2|0];o=l+m|0;u=K[d+9|0];f=K[d+3|0];p=u+f|0;w=K[d+8|0];x=K[d+4|0];q=w+x|0;y=K[d+7|0];z=K[d+5|0];i=y+z|0;d=K[d+6|0];J[e>>2]=((((((h+g|0)+o|0)+p|0)+q|0)+i|0)+d|0)-1664;d=d<<1;p=p-d|0;q=q-d|0;v=h-d|0;o=o-d|0;n=g-d|0;i=i-d|0;d=(P(p-q|0,-3570)+P(v-o|0,9465)|0)+P(n-i|0,-2592)|0;h=(P(p+q|0,-7678)+P(o+v|0,793)|0)+P(i+n|0,3989)|0; -J[e+24>>2]=(d-h|0)+4096>>13;J[e+16>>2]=(d+h|0)+4096>>13;d=f-u|0;h=m-l|0;m=P(d+h|0,-5384);g=z-y|0;l=x-w|0;k=r-k|0;r=P(g+l|0,2773)+P(k+d|0,7682)|0;u=m+P(d,18068)|0;f=d;d=t-s|0;s=P(f+d|0,-9534);J[e+28>>2]=(r+((u+s|0)+P(g,-14273)|0)|0)+4096>>13;f=m;m=P(h+k|0,9534);f=(f+(m+P(h,-12879)|0)|0)+P(g,18515)|0;h=P(l-g|0,7682)+P(d+h|0,-2773)|0;J[e+20>>2]=(f+h|0)+4096>>13;f=P(d,6859);d=P(d+k|0,10832)+4096|0;J[e+12>>2]=h+((s+(f+d|0)|0)+P(l,-19183)|0)>>13;J[e+4>>2]=r+((m+(d+P(k,-16549)|0)|0)+P(l,2611)|0)>>13;J[e+ -8>>2]=(((((P(n,8672)+P(v,11249)|0)+P(o,4108)|0)+P(p,-1396)|0)+P(q,-6581)|0)+P(i,-10258)|0)+4096>>13;g=j-7|0;j=j+1|0;d=B;h=7;b:switch(g|0){case 0:continue;case 5:break a;default:break b}d=e+32|0;continue}break}while(1){c=J[d+32>>2];e=J[a+96>>2];m=c+e|0;r=J[a+192>>2];b=r<<1;l=m-b|0;j=J[d>>2];g=J[a+128>>2];s=j+g|0;k=s-b|0;i=J[d+128>>2];t=J[a>>2];u=i+t|0;p=u-b|0;n=J[d+64>>2];f=J[a+64>>2];w=n+f|0;q=w-b|0;x=J[d+96>>2];y=J[a+32>>2];z=x+y|0;v=z-b|0;A=J[a+224>>2];C=J[a+160>>2];D=A+C|0;o=D-b|0;b=(P(l-k|0,-2704)+ -P(p-q|0,7169)|0)+P(v-o|0,-1963)|0;E=(P(k+l|0,-5816)+P(p+q|0,601)|0)+P(o+v|0,3021)|0;J[a+192>>2]=(b-E|0)- -8192>>14;J[a+128>>2]=(b+E|0)- -8192>>14;b=e-c|0;c=f-n|0;n=P(b+c|0,-4078);e=C-A|0;j=g-j|0;g=t-i|0;i=P(e+j|0,2100)+P(g+b|0,5819)|0;A=n+P(b,13685)|0;f=b;b=y-x|0;t=P(f+b|0,-7221);J[a+224>>2]=(i+((A+t|0)+P(e,-10811)|0)|0)- -8192>>14;f=P(c+g|0,7221);n=(n+(f+P(c,-9754)|0)|0)+P(e,14023)|0;c=P(j-e|0,5819)+P(b+c|0,-2100)|0;J[a+160>>2]=(n+c|0)- -8192>>14;e=P(b,5195);b=P(b+g|0,8204)- -8192|0;J[a+96>>2]=c+ -((t+(e+b|0)|0)+P(j,-14529)|0)>>14;J[a+32>>2]=i+((f+(b+P(g,-12534)|0)|0)+P(j,1978)|0)>>14;J[a+64>>2]=(((((P(v,6568)+P(p,8520)|0)+P(q,3112)|0)+P(l,-1058)|0)+P(k,-4985)|0)+P(o,-7770)|0)- -8192>>14;J[a>>2]=P(r+((s+(m+(w+(u+z|0)|0)|0)|0)+D|0)|0,6205)- -8192>>14;b=h;h=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}xb=B+160|0}function Poa(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=xb-4480|0;xb=e;a:{if(!J[a+48>>2]|M[a+132>>2]<=c>>>0)break a;f=uI(J[a+100>>2],c);qi(e+4464|0,J[a+92>>2], -c);j=f>>>0>=M[a+124>>2]?169776:J[a+128>>2]+P(f,28)|0;i=J[j+20>>2];k=J[b+104>>2];l=J[b+108>>2];h=J[a+84>>2];H[e+32|0]=0;Nb(e+36|0,0,4108);c=e+4208|0;J[c>>2]=0;J[c+4>>2]=0;J[e+4216>>2]=0;c=e+4228|0;J[c>>2]=0;J[c+4>>2]=0;J[e+4236>>2]=0;c=e+4248|0;J[c>>2]=0;J[c+4>>2]=0;J[e+4256>>2]=0;c=e+4268|0;J[c>>2]=0;J[c+4>>2]=0;J[e+4276>>2]=0;c=e+4288|0;J[c>>2]=0;J[c+4>>2]=0;J[e+4296>>2]=0;c=e+4308|0;J[c>>2]=0;J[c+4>>2]=0;J[e+4316>>2]=0;J[e+4336>>2]=0;c=e+4328|0;J[c>>2]=0;J[c+4>>2]=0;J[e+4356>>2]=0;c=e+4348|0;J[c>> -2]=0;J[c+4>>2]=0;H[e+4180|0]=0;J[e+24>>2]=0;c=J[e+4468>>2];f=J[e+4464>>2];J[e+16>>2]=f;J[e+20>>2]=c;J[e+4376>>2]=0;g=e+4368|0;J[g>>2]=0;J[g+4>>2]=0;g=e+4192|0;J[g>>2]=0;J[g+4>>2]=0;g=e+4184|0;J[g>>2]=0;J[g+4>>2]=0;J[e+4160>>2]=0;g=e+4152|0;J[g>>2]=0;J[g+4>>2]=0;g=e+4416|0;J[g>>2]=0;J[g+4>>2]=0;J[e+4392>>2]=h;J[e+4144>>2]=f;J[e+4148>>2]=c;J[e+4176>>2]=0;J[e+4168>>2]=0;J[e+4172>>2]=0;H[e+4165|0]=1;H[e+4166|0]=0;J[e+4408>>2]=0;J[e+4412>>2]=0;g=107;f=107;b:{if(!h)break b;h=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<< -16|K[h+3|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);f=107;if(h>>>0<1240)break b;f=h>>>0<33900?1131:32768}J[e+4400>>2]=i;J[e+4388>>2]=f;c:{if(!i)break c;f=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(f>>>0<1240)break c;g=f>>>0<33900?1131:32768}J[e+4428>>2]=k;J[e+4424>>2]=l;J[e+4396>>2]=g;a=J[a+88>>2];J[e+4452>>2]=0;J[e+4432>>2]=a;H[e+4457|0]=0;H[e+4458|0]=0;J[e+4444>>2]=0;J[e+4448>>2]=0;f=c;c=0;d:{if(!l)break d;c=0;if(!k)break d;c=(K[a|0]|K[a+1| -0]<<8)!=0}H[e+4456|0]=c;J[e+4440>>2]=J[j+24>>2];H[e+4164|0]=0;J[e+12>>2]=b;J[e+8>>2]=d;b=1E4;a=0;e:{f:{while(1){d=a+1|0;g:{if(d>>>0<=f>>>0){i=J[e+16>>2];c=K[i+a|0];J[e+24>>2]=d;if((c|0)!=12)break g;a=a+2|0;if(a>>>0>f>>>0){c=65535;break g}c=K[d+i|0];J[e+24>>2]=a;c=c|256;break g}c=J[e+4184>>2]?11:14}J[195395]=0;fa(697,c|0,e+16|0,e+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;h:{i:{if(K[e+4180|0]){f=J[e+20>>2];break i}a=J[e+24>>2];f=J[e+20>>2];if(K[e+32|0]|a>>>0>f>>>0)break i;b=b-1|0;if(b)break h}J[e+ -24>>2]=f+1;f=0;break e}if(!K[e+4164|0])continue;break}f=1;break e}a=Z()|0;if(J[e+4444>>2]){J[e+4448>>2]=0;Kb(J[e+4452>>2])}ba(a|0);B()}if(!J[e+4444>>2])break a;J[e+4448>>2]=0;Kb(J[e+4452>>2])}xb=e+4480|0;return f|0}function Yv(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{c:{d:{e:{f:{g:{h:{i:switch(J[a+92>>2]){case 0:h=J[a+64>>2];if((h|0)<(c|0)){d=J[a+36>>2];if(!J[a+84>>2]){J[a+84>>2]=d;J[a+80>>2]=d;d=d+32|0;J[a+36>>2]=d}if(M[a+32>>2]>d>>>0){g=J[a+4>>2];f=J[a+8>>2];e=J[a+80>>2];J[e+16>>2]=0;J[e+ -20>>2]=0;J[e+8>>2]=d;J[e+28>>2]=0;J[e+4>>2]=0;I[e+12>>1]=K[a+164|0]|((f|0)>(((g+h|0)-1&0-g)-h|0)?8:40);break f}break a}if((c|0)>=(h|0))break c;d=J[a+36>>2];if(!J[a+84>>2]){J[a+84>>2]=d;J[a+80>>2]=d;d=d+32|0;J[a+36>>2]=d}if(M[a+32>>2]>d>>>0){g=J[a+4>>2];f=J[a+8>>2];e=J[a+80>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=d;J[e+28>>2]=0;J[e+4>>2]=0;d=K[a+164|0];I[e+12>>1]=(f|0)>(h&g-1)?d:d|16;break h}break a;case 2:break g;case 1:break i;default:break c}d=J[a+64>>2];if((d|0)<=(c|0))break e;f=J[a+36>>2];e=J[a+ -80>>2];h=J[e+8>>2];g=f-h>>2;if((g|0)<0){J[a+40>>2]=99;return 1}i=J[a+4>>2]-1&d;j=J[a+8>>2];j:{if((f|0)==(h|0)){d=f;break j}J[e+16>>2]=g;if((i|0)>=(j|0)){d=L[e+12>>1];I[e+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+8>>2]=d;J[f+16>>2]=0;J[e+28>>2]=f;I[a+76>>1]=L[a+76>>1]+1;e=f}g=J[a+32>>2];if(g>>>0<=d>>>0)break a;H[a+79|0]=0;k:{if(J[a+84>>2]){f=d;break k}J[a+84>>2]=d;J[a+80>>2]=d;f=d+32|0;J[a+36>>2]=f;e=d}if(f>>>0>=g>>>0)break a;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=f;J[e+28>>2]=0;J[e+ -4>>2]=0;d=K[a+164|0];I[e+12>>1]=(i|0)<(j|0)?d:d|16}if(!J[a+88>>2])J[a+88>>2]=e;H[a+78|0]=1;J[a+92>>2]=2;H[a+79|0]=0;d=J[a+64>>2];break d}d=J[a+64>>2];if((d|0)>=(c|0))break d;f=J[a+36>>2];e=J[a+80>>2];j=J[e+8>>2];h=f-j>>2;if((h|0)<0){J[a+40>>2]=99;return 1}g=J[a+4>>2];k=((g+d|0)-1&0-g)-d|0;i=J[a+8>>2];l:{if((f|0)==(j|0)){d=f;break l}J[e+16>>2]=h;if((i|0)<=(k|0)){d=L[e+12>>1];I[e+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+8>>2]=d;J[f+16>>2]=0;J[e+28>>2]=f;I[a+76>>1]=L[a+76>>1]+1;e= -f}g=J[a+32>>2];if(g>>>0<=d>>>0)break a;H[a+79|0]=0;m:{if(J[a+84>>2]){f=d;break m}J[a+84>>2]=d;J[a+80>>2]=d;f=d+32|0;J[a+36>>2]=f;e=d}if(f>>>0>=g>>>0)break a;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=f;J[e+28>>2]=0;J[e+4>>2]=0;I[e+12>>1]=K[a+164|0]|((i|0)>(k|0)?8:40)}if(!J[a+88>>2])J[a+88>>2]=e;H[a+78|0]=1;J[a+92>>2]=1;H[a+79|0]=0;d=J[a+64>>2]}f=1;if(Wv(a,J[a+60>>2],d,b,c,J[a+68>>2],J[a+72>>2]))break b;break c}e=K[a+78|0];d=Wv(a,J[a+60>>2],0-d|0,b,0-c|0,0-J[a+72>>2]|0,0-J[a+68>>2]|0);if(!(K[a+78|0]|!e)){e= -J[a+80>>2];J[e+20>>2]=0-J[e+20>>2]}f=1;if(d)break b}J[a+64>>2]=c;J[a+60>>2]=b;f=0}return f}J[a+40>>2]=98;return 1}function Fha(a){a=a|0;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;c=xb-16|0;xb=c;g=J[a+24>>2];e=J[g+4>>2];a:{if(!e){if(!(Ab[J[g+12>>2]](a)|0)){e=0;break a}e=J[g+4>>2]}b=J[g>>2];f=K[b|0];e=e-1|0;if(e)b=b+1|0;else{if(!(Ab[J[g+12>>2]](a)|0)){e=0;break a}e=J[g+4>>2];b=J[g>>2]}k=b+1|0;e=e-1|0;b=K[b|0]|f<<8;f=b-2|0;b=b>>>0>15?14:b>>>0>=f>>>0?f:0;if(b)while(1){if(!e){if(!(Ab[J[g+ -12>>2]](a)|0)){e=0;break a}k=J[g>>2];e=J[g+4>>2]}H[(c+2|0)+d|0]=K[k|0];k=k+1|0;e=e-1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}m=f-b|0;b:{c:{d:{d=J[a+436>>2];h=d-224|0;if(h)if((h|0)==14)break d;else break c;f=b+m|0;e:{f:{g:{h:{if(b>>>0>=14){if(K[c+2|0]!=74)break g;if(K[c+3|0]!=70|K[c+4|0]!=73|(K[c+6|0]|K[c+5|0]!=70))break h;J[a+284>>2]=1;b=K[c+7|0];H[a+288|0]=b;d=K[c+8|0];H[a+289|0]=d;h=K[c+9|0];H[a+290|0]=h;i=K[c+10|0]|K[c+11|0]<<8;i=i<<8|i>>>8;I[a+292>>1]=i;j=K[c+12|0]|K[c+13|0]<<8;j=j<<8|j>>>8; -I[a+294>>1]=j;l=1;if((b|0)!=1){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=122;J[J[a>>2]+28>>2]=K[a+289|0];Ab[J[J[a>>2]+4>>2]](a,-1);l=K[a+288|0];h=K[a+290|0];j=L[a+294>>1];i=L[a+292>>1];d=K[a+289|0]}b=J[a>>2];J[b+24>>2]=l;J[b+20>>2]=89;J[b+40>>2]=h;J[b+36>>2]=j&65535;J[b+32>>2]=i&65535;J[b+28>>2]=d;Ab[J[b+4>>2]](a,1);f=f-14|0;d=K[c+14|0];b=K[c+15|0];if(d|b){b=J[a>>2];J[b+20>>2]=92;J[b+24>>2]=K[c+14|0];J[J[a>>2]+28>>2]=K[c+15|0];Ab[J[J[a>>2]+4>>2]](a,1);d=K[c+14|0];b=K[c+15|0]}if((P(P(b,d),3)|0)==(f|0))break e; -b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=90;break f}if(K[c+2|0]!=74|b>>>0<6)break g}if(K[c+3|0]!=70|K[c+4|0]!=88|(K[c+6|0]|K[c+5|0]!=88))break g;b=J[a>>2];i:switch(K[c+7|0]-16|0){case 0:J[b+24>>2]=f;J[b+20>>2]=110;break f;case 1:J[b+24>>2]=f;J[b+20>>2]=111;break f;case 3:J[b+24>>2]=f;J[b+20>>2]=112;break f;default:break i}J[b+20>>2]=91;J[b+24>>2]=K[c+7|0];J[J[a>>2]+28>>2]=f;break f}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=79}Ab[J[J[a>>2]+4>>2]](a,1)}break b}j:{if(K[c+2|0]!=65|b>>>0<12|(K[c+3|0]!=100|K[c+4|0]!= -111))break j;if(K[c+5|0]!=98|K[c+6|0]!=101)break j;f=K[c+8|0];h=K[c+7|0];i=K[c+10|0];j=K[c+9|0];l=K[c+12|0];n=K[c+11|0];d=K[c+13|0];b=J[a>>2];J[b+20>>2]=78;J[b+36>>2]=d;J[b+32>>2]=l|n<<8;J[b+28>>2]=i|j<<8;J[b+24>>2]=f|h<<8;Ab[J[b+4>>2]](a,1);H[a+300|0]=d;J[a+296>>2]=1;break b}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=80;Ab[J[J[a>>2]+4>>2]](a,1);break b}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=70;Ab[J[J[a>>2]>>2]](a)}J[g+4>>2]=e;J[g>>2]=k;e=1;if((m|0)<=0)break a;Ab[J[J[a+24>>2]+16>>2]](a,m)}xb=c+16|0;return e|0} -function XC(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;k=xb-16|0;xb=k;n=J[a>>2];i=J[b+20>>2];a:{b:{if(i){a=85;if(Ab[i|0](b,c,0,0)|0)break a;j=J[b+4>>2];break b}a=85;j=J[b+4>>2];if(j>>>0>>0)break a}J[b+8>>2]=c;c:{if(c+1>>>0>=j>>>0)break c;d:{e:{a=J[b+20>>2];f:{if(a){j=k+6|0;if((Ab[a|0](b,c,j,2)|0)!=2)break c;a=J[b+8>>2];break f}a=J[b>>2];if(!a)break e;j=a+c|0;a=c}i=K[j|0]|K[j+1|0]<<8;j=a+2|0;J[b+8>>2]=j;a=8;o=(i<<8|i>>>8)<<16>>16;if((o|0)>4078)break a;if((o|0)>=0)break d;a=1;break a}j= -c+2|0;J[b+8>>2]=j}while(1){g:{h:{i:{l=J[b+4>>2];if(l>>>0<=j+3>>>0)break i;j:{k:{i=J[b+20>>2];l:{if(i){a=k+8|0;if((Ab[i|0](b,j,a,4)|0)!=4)break i;l=J[b+4>>2];j=J[b+8>>2];break l}a=J[b>>2];if(!a)break k;a=a+j|0}a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);m=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break j}m=0}a=j+4|0;J[b+8>>2]=a;if(j+5>>>0>=l>>>0)break i;m:{n:{l=J[b+20>>2];o:{if(l){i=k+12|0;if((Ab[l|0](b,a,i,2)|0)!=2)break i;a=J[b+8>>2];break o}i=J[b>>2];if(!i)break n;i=a+i|0}i=K[i|0]|K[i+1|0]<< -8;l=i<<8|i>>>8;break m}l=0}j=a+2|0;J[b+8>>2]=j;if(M[b+4>>2]<=a+3>>>0)break i;i=J[b+20>>2];p:{if(i){a=k+14|0;if((Ab[i|0](b,j,a,2)|0)!=2)break i;j=J[b+8>>2];break p}a=J[b>>2];if(!a)break h;a=a+j|0}a=K[a|0]|K[a+1|0]<<8;i=a<<8|a>>>8;break g}a=85;break a}i=0}j=j+2|0;J[b+8>>2]=j;if((e|0)!=(m|0)){a=1;i=(o|0)==(p|0);p=p+1|0;if(!i)continue;break a}break}J[h>>2]=(l<<16>>16)+1;a=8;if((l&65535)>>>0>2726)break a;e=(i<<16>>16)+c|0;c=J[b+20>>2];q:{if(c){a=85;if(!(Ab[c|0](b,e,0,0)|0))break q;break a}a=85;if(e>>> -0>M[b+4>>2])break a}J[b+8>>2]=e;c=0;J[k>>2]=0;l=Tb(n,8,0,J[h>>2],0,k);a=J[k>>2];if(a)break a;a=J[h>>2];r:{if((a|0)>0)while(1){e=l+(c<<3)|0;q=e,r=rc(b,k),I[q>>1]=r;a=J[k>>2];if(a)break r;i=J[b+8>>2]+2|0;s:{a=J[b+20>>2];if(a){if(!(Ab[a|0](b,i,0,0)|0))break s;a=85;break r}if(i>>>0<=M[b+4>>2])break s;a=85;break r}J[b+8>>2]=i;J[k>>2]=0;i=md(b,k);a=J[k>>2];if(a)break r;m=J[b+8>>2]+4|0;t:{a=J[b+20>>2];if(a){if(!(Ab[a|0](b,m,0,0)|0))break t;a=85;break r}if(m>>>0<=M[b+4>>2])break t;a=85;break r}J[b+8>>2]= -m;J[k>>2]=0;if((i|0)<0){a=8;break r}J[e+4>>2]=i&16777215;a=J[h>>2];c=c+1|0;if((a|0)>(c|0))continue;break}b=0;c=n;if(f){Nh(l,a,8,14);a=J[h>>2]}c=Tb(c,4,0,a,0,k);a=J[k>>2];if(!a){if(J[h>>2]>0)while(1){J[c+(b<<2)>>2]=J[(l+(b<<3)|0)+4>>2]+d;b=b+1|0;if((b|0)>2])continue;break}J[g>>2]=c;a=0}if(!l)break a}Ab[J[n+8>>2]](n,l);break a}a=85}xb=k+16|0;return a}function mv(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;e=xb-16|0;xb=e;k=J[a+28>>2];f=bc(a,c);J[e+12>>2]=f;a:{if(f)break a;f=rc(a,e+ -12|0);if(J[e+12>>2])break a;if((f|0)!=1){J[e+12>>2]=8;break a}f=e+12|0;g=md(a,f);if(J[e+12>>2])break a;i=rc(a,f);J[d>>2]=i;if(J[e+12>>2])break a;if(!i){J[e+12>>2]=8;break a}f=0;l=Tb(k,4,0,i,0,e+12|0);if(J[e+12>>2])break a;if(J[d>>2])while(1){n=(f<<2)+l|0,o=md(a,e+12|0),J[n>>2]=o;if(J[e+12>>2])break a;f=f+1|0;if(f>>>0>2])continue;break}f=bc(a,c+g|0);J[e+12>>2]=f;if(f)break a;n=d,o=rc(a,e+12|0),I[n+8>>1]=o;if(J[e+12>>2])break a;f=rc(a,e+12|0);J[d+12>>2]=f;if(J[e+12>>2])break a;if(J[J[b+12>>2]>> -2]!=L[d+8>>1]){J[e+12>>2]=8;break a}n=d,o=Tb(k,4,0,f,0,e+12|0),J[n+16>>2]=o;if(J[e+12>>2])break a;if(J[d+12>>2]){b=L[d+8>>1];while(1){i=Tb(k,12,0,b&65535,0,e+12|0);J[J[d+16>>2]+(j<<2)>>2]=i;if(J[e+12>>2])break a;b=0;if(L[d+8>>1]){f=0;while(1){g=rc(a,e+12|0);if(J[e+12>>2])break a;h=rc(a,e+12|0);if(J[e+12>>2])break a;m=rc(a,e+12|0);if(J[e+12>>2])break a;b=i+P(f,12)|0;J[b+8>>2]=m<<16>>16<<2;J[b+4>>2]=h<<16>>16<<2;J[b>>2]=g<<16>>16<<2;b=L[d+8>>1];f=f+1|0;if(b>>>0>f>>>0)continue;break}}j=j+1|0;if(j>>> -0>2])continue;break}}j=0;n=d,o=Tb(k,16,0,J[d>>2],0,e+12|0),J[n+4>>2]=o;if(J[e+12>>2]|!J[d>>2])break a;while(1){b=J[d+4>>2];f=bc(a,J[(j<<2)+l>>2]+c|0);J[e+12>>2]=f;if(f)break a;g=(j<<4)+b|0;n=g,o=rc(a,e+12|0),J[n>>2]=o;if(J[e+12>>2])break a;i=rc(a,e+12|0);if(J[e+12>>2])break a;b=rc(a,e+12|0);J[g+4>>2]=b;if(J[e+12>>2])break a;if(b>>>0>>0){J[e+12>>2]=8;break a}if(b>>>0>M[d+12>>2]){J[e+12>>2]=8;break a}n=g,o=Tb(k,4,0,b,0,e+12|0),J[n+8>>2]=o;if(J[e+12>>2])break a;f=0;b:{if(!J[g+4>>2]){b=0;break b}while(1){b= -rc(a,e+12|0);J[J[g+8>>2]+(f<<2)>>2]=b;if(J[e+12>>2])break a;if(b>>>0>2]){b=J[g+4>>2];f=f+1|0;if(b>>>0<=f>>>0)break b;continue}break}J[e+12>>2]=8;break a}n=g,o=Tb(k,2,0,P(J[g>>2],b),0,e+12|0),J[n+12>>2]=o;if(J[e+12>>2])break a;h=J[g+4>>2];if(P(h,J[g>>2])){f=0;while(1){if(i){b=f+i|0;while(1){h=rc(a,e+12|0);if(J[e+12>>2])break a;I[J[g+12>>2]+(f<<1)>>1]=h;f=f+1|0;if((b|0)!=(f|0))continue;break}h=J[g+4>>2];f=b}b=i;if(h>>>0>b>>>0)while(1){h=Nd(a,e+12|0);if(J[e+12>>2])break a;I[J[g+12>>2]+(f<<1)>> -1]=h;f=f+1|0;b=b+1|0;h=J[g+4>>2];if(b>>>0>>0)continue;break}if(P(J[g>>2],h)>>>0>f>>>0)continue;break}}j=j+1|0;if(j>>>0>2])continue;break}}if(l)Ab[J[k+8>>2]](k,l);xb=e+16|0;return J[e+12>>2]}function Wfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0;y=xb-448|0;xb=y;t=J[a+332>>2];b=J[b+84>>2];a=y;while(1){j=J[b+192>>2];n=I[c+96>>1];i=J[b+64>>2];k=I[c+32>>1];o=P(I[c>>1],J[b>>2])<<13|1024;p=P(J[b+128>>2],I[c+64>> -1]);l=o+P(p,-11586)>>11;h=P(J[b+224>>2],I[c+112>>1]);m=P(J[b+32>>2],I[c+16>>1]);f=P(J[b+96>>2],I[c+48>>1]);u=m-f|0;g=P(J[b+160>>2],I[c+80>>1]);q=h+(u-g|0)<<2;J[a+320>>2]=l-q;J[a+96>>2]=l+q;n=P(j,n);i=P(i,k);k=P(n+i|0,9058);l=k+P(n,-14084)|0;q=o+P(p,2578)|0;r=l+q|0;j=h<<13;h=P(f+g|0,-1297)-j|0;x=P(f+m|0,10935);v=h+(x+P(f,-3474)|0)|0;J[a+384>>2]=r-v>>11;J[a+32>>2]=r+v>>11;n=P(n,-11295)+P(i,5027)|0;r=o+P(p,-7223)|0;v=n+r|0;s=h;h=g+m|0;w=P(h,9810);s=s+(w+P(g,-19447)|0)|0;J[a+352>>2]=v-s>>11;J[a+64>>2]= -v+s>>11;l=q-l|0;u=P(u,3826)-j|0;s=P(f,5529);f=P(g-f|0,11512);q=u+(s+f|0)|0;J[a+256>>2]=l-q>>11;J[a+160>>2]=l+q>>11;p=o+P(p,10438)|0;o=k+P(i,2237)|0;i=p-o|0;k=P(h,6164);l=u+(k+P(m,-8693)|0)|0;J[a+224>>2]=i-l>>11;J[a+192>>2]=i+l>>11;p=p+o|0;m=j+(w+(x+P(m,-9232)|0)|0)|0;J[a+416>>2]=p-m>>11;J[a>>2]=m+p>>11;m=r-n|0;f=j+(k+(f+P(g,-13850)|0)|0)|0;J[a+288>>2]=m-f>>11;J[a+128>>2]=f+m>>11;a=a+4|0;b=b+4|0;c=c+2|0;z=z+1|0;if((z|0)!=8)continue;break}a=t+128|0;b=y;p=0;while(1){f=J[b+12>>2];m=J[b+4>>2];i=P(f+m| -0,10935);k=J[b+24>>2];t=J[b+8>>2];l=P(k+t|0,9058);c=J[(p<<2)+d>>2]+e|0;q=J[b+28>>2];o=q<<13;g=J[b+20>>2];u=g+m|0;h=P(u,9810);r=o+(h+(i+P(m,-9232)|0)|0)|0;x=l+P(t,2237)|0;n=(J[b>>2]<<13)+131072|0;j=J[b+16>>2];v=n+P(j,10438)|0;w=x+v|0;H[c|0]=K[a+(r+w>>>18&1023)|0];H[c+13|0]=K[a+(w-r>>>18&1023)|0];s=i+P(f,-3474)|0;i=P(f+g|0,-1297)-o|0;r=s+i|0;l=l+P(k,-14084)|0;w=n+P(j,2578)|0;s=l+w|0;H[c+1|0]=K[a+(r+s>>>18&1023)|0];H[c+12|0]=K[a+(s-r>>>18&1023)|0];i=i+(h+P(g,-19447)|0)|0;k=P(k,-11295)+P(t,5027)|0;t= -n+P(j,-7223)|0;h=k+t|0;H[c+2|0]=K[a+(i+h>>>18&1023)|0];H[c+11|0]=K[a+(h-i>>>18&1023)|0];i=m-f|0;h=q+(i-g|0)<<13;j=n+P(j,-11586)|0;H[c+3|0]=K[a+(h+j>>>18&1023)|0];H[c+10|0]=K[a+(j-h>>>18&1023)|0];j=P(u,6164);h=o+P(g,-13850)|0;g=P(g-f|0,11512);n=j+(h+g|0)|0;k=t-k|0;H[c+4|0]=K[a+(n+k>>>18&1023)|0];H[c+9|0]=K[a+(k-n>>>18&1023)|0];h=g+P(f,5529)|0;f=P(i,3826)-o|0;g=h+f|0;o=w-l|0;H[c+5|0]=K[a+(g+o>>>18&1023)|0];H[c+8|0]=K[a+(o-g>>>18&1023)|0];f=f+(j+P(m,-8693)|0)|0;g=v-x|0;H[c+6|0]=K[a+(f+g>>>18&1023)|0]; -H[c+7|0]=K[a+(g-f>>>18&1023)|0];b=b+32|0;p=p+1|0;if((p|0)!=14)continue;break}xb=y+448|0}function Bo(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,p=0,q=0,r=0,s=0,t=0,u=0;o=xb-32|0;xb=o;k=J[a+88>>2];g=J[k+64>>2];i=K[k+62|0]?J[k+72>>2]:g;l=f-g|0;a:{if(!b)break a;f=i-g|0;if(b>>>0>=4){p=b&-4;while(1){g=h<<2;n=g+c|0;J[n>>2]=f+J[n>>2];n=(g|4)+c|0;J[n>>2]=f+J[n>>2];n=(g|8)+c|0;J[n>>2]=f+J[n>>2];g=(g|12)+c|0;J[g>>2]=f+J[g>>2];h=h+4|0;m=m+4|0;if((p|0)!=(m|0))continue;break}}g=b&3;if(!g)break a;while(1){m= -(h<<2)+c|0;J[m>>2]=f+J[m>>2];h=h+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}}p=i+l|0;b:{if(!d)break b;s=c+12|0;t=c+8|0;u=c+4|0;n=0;while(1){if(!K[k+60|0])break b;f=(n<<2)+e|0;g=K[f|0]|K[f+1|0]<<8;m=(g<<8|g>>>8)&65535;c:{if(m>>>0>=b>>>0)break c;r=(m<<2)+c|0;i=J[r>>2];g=J[k+64>>2];g=(J[k+68>>2]-g|0)+(K[k+62|0]?J[k+72>>2]:g)|0;if(i>>>0>=g>>>0)break c;if(!pf(k,i)|J[k+152>>2]<=0)break b;h=J[a+88>>2];if(J[h+156>>2]){if(K[k+62|0]){qf(h);h=J[a+88>>2]}i=K[f+2|0]|K[f+3|0]<<8;l=J[a+80>>2];J[o+20>>2]=J[k+64>> -2];J[o+16>>2]=(i<<8|i>>>8)&65535;nc(h,l,129976,o+16|0);h=J[a+88>>2]}d:{l=J[a+188>>2];e:{if(!l)break e;j=J[a+140>>2];if(!j)break e;i=K[f+2|0]|K[f+3|0]<<8;q=J[h+152>>2];J[h+152>>2]=q-1;if((q|0)>0)break d}H[h+61|0]=1;break c}J[a+188>>2]=l-1;i=Ab[j|0](a,(i<<8|i>>>8)&65535)|0;J[a+188>>2]=J[a+188>>2]+1;if(!i)break c;h=J[a+88>>2];if(J[h+156>>2]){if(K[k+62|0]){qf(h);h=J[a+88>>2]}i=J[a+80>>2];f=K[f+2|0]|K[f+3|0]<<8;J[o>>2]=(f<<8|f>>>8)&65535;nc(h,i,130013,o)}f=J[k+64>>2];f=(J[k+68>>2]-f|0)+(K[k+62|0]?J[k+ -72>>2]:f)|0;if((f|0)==(g|0))break c;l=f-g|0;f=l+p|0;i=J[r>>2];p=(f|0)>(i|0)?f:i;g=m+1|0;j=l+((f|0)<(i|0)?i-f|0:0)|0;f:{if((j|0)>0){i=b+j|0;f=g;if(i>>>0<=64)break f;break b}f=g-b|0;j=(f|0)<(j|0)?j:f;i=j+b|0;f=g-j|0}l=f;f=(f<<2)+c|0;qc(f+(j<<2)|0,f,b-l<<2);b=j+l|0;h=b;g:{if(b>>>0<=g>>>0)break g;b=b-m|0;q=b-2|0;f=J[r>>2];m=0;b=b-1&3;if(b)while(1){f=f+1|0;J[(g<<2)+c>>2]=f;g=g+1|0;m=m+1|0;if((b|0)!=(m|0))continue;break}if(q>>>0<=2)break g;while(1){b=g<<2;J[b+c>>2]=f+1;J[b+u>>2]=f+2;J[b+t>>2]=f+3;f=f+4| -0;J[b+s>>2]=f;g=g+4|0;if((g|0)!=(h|0))continue;break}}h:{if(h>>>0>=i>>>0)break h;f=0;b=i-(j+l|0)&3;if(b)while(1){g=(h<<2)+c|0;J[g>>2]=J[g>>2]+j;h=h+1|0;f=f+1|0;if((b|0)!=(f|0))continue;break}if(((j^-1)+i|0)-l>>>0<3)break h;while(1){b=h<<2;f=b+c|0;J[f>>2]=J[f>>2]+j;f=b+u|0;J[f>>2]=J[f>>2]+j;f=b+t|0;J[f>>2]=J[f>>2]+j;b=b+s|0;J[b>>2]=J[b>>2]+j;h=h+4|0;if((i|0)!=(h|0))continue;break}}b=i}n=n+1|0;if((n|0)!=(d|0))continue;break}}pf(k,p);xb=o+32|0}function jH(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;n=xb-16|0;xb=n;e=J[b+12>>2];h=J[b+4>>2];a:{if(e>>>0>>0)break a;c=J[b+8>>2];if(c-a>>>0<2)break a;d=a+2|0;if(e>>>0>>0)break a;c=c-d|0;d=K[a|0]|K[a+1|0]<<8;d=P((d<<8|d>>>8)&65535,6);if(c>>>0>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;g=1;d=K[a|0]|K[a+1|0]<<8;if(!d)break a;d=(d<<8|d>>>8)&65535;p=d>>>0<=1?1:d;while(1){b:{d=P(o,6)+a|0;e=d+2|0;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[n+12>>2]=a;J[n+8>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24); -g=J[b+12>>2];f=J[b+4>>2];if(g>>>0>>0)break b;h=J[b+8>>2];if(h-e>>>0<6)break b;k=d+6|0;if(k-f>>>0>g>>>0|h-k>>>0<2)break b;c=K[k|0]|K[k+1|0]<<8;c:{if(!c)break c;d=0;i=((c<<8|c>>>8)&65535)+a|0;d:{if(i-f>>>0>g>>>0|h-i>>>0<2)break d;c=K[i|0]|K[i+1|0]<<8;e:{if(!c)break e;e=i+((c<<8|c>>>8)&65535)|0;f:{if(e-f>>>0>g>>>0|h-e>>>0<6)break f;c=e+4|0;if(c-f>>>0>g>>>0|h-c>>>0<2)break f;c=e+6|0;if(c-f>>>0>g>>>0)break f;j=h-c|0;c=K[e+4|0]|K[e+5|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(j>>>0>>0)break f;c=J[b+16>> -2]-c|0;J[b+16>>2]=c;if((c|0)>0)break e}c=J[b+32>>2];if(c>>>0>31)break d;J[b+32>>2]=c+1;if(!K[b+28|0])break d;H[i|0]=0;H[i+1|0]=0;h=J[b+8>>2];g=J[b+12>>2];f=J[b+4>>2]}l=i+2|0;if(l-f>>>0>g>>>0|h-l>>>0<2)break d;c=i+4|0;if(M[b+12>>2]>2]>>>0)break d;e=J[b+8>>2]-c|0;c=K[i+2|0]|K[i+3|0]<<8;c=P((c<<8|c>>>8)&65535,6);if(e>>>0>>0)break d;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break d;d=1;c=K[l|0]|K[l+1|0]<<8;if(!c)break d;d=(c<<8|c>>>8)&65535;h=d>>>0<=1?1:d;g=0;while(1){m=J[b+12>>2];f=(l+P(g, -6)|0)+2|0;e=J[b+4>>2];d=0;g:{if(m>>>0>>0)break g;c=J[b+8>>2];d=0;if(c-f>>>0<6)break g;j=f+4|0;d=0;if(m>>>0>>0)break g;d=0;if(c-j>>>0<2)break g;d=K[j|0]|K[j+1|0]<<8;h:{if(d){f=i+((d<<8|d>>>8)&65535)|0;i:{if(m>>>0>>0|c-f>>>0<6)break i;d=f+4|0;if(m>>>0>>0|c-d>>>0<2)break i;d=f+6|0;if(d-e>>>0>m>>>0)break i;c=c-d|0;d=K[f+4|0]|K[f+5|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(c>>>0>>0)break i;c=J[b+16>>2]-d|0;J[b+16>>2]=c;d=1;if((c|0)>0)break h}c=J[b+32>>2];d=0;if(c>>>0>31)break g;J[b+32>> -2]=c+1;d=0;if(!K[b+28|0])break h;H[j|0]=0;H[j+1|0]=0}d=1}}if(!d)break d;g=g+1|0;if((h|0)!=(g|0))continue;break}}if(d)break c;d=J[b+32>>2];if(d>>>0>31)break b;J[b+32>>2]=d+1;if(!K[b+28|0])break b;H[k|0]=0;H[k+1|0]=0}g=1;o=o+1|0;if((p|0)!=(o|0))continue;break a}break}g=0}xb=n+16|0;return g}function Joa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}H[a+28|0]=0;g=b;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;f=c+e|0;J[a+8>>2]= -f;J[a+32>>2]=0;if(c>>>0>67108863)d=1073741823;else{d=c<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{g:{if(c>>>0<10)break g;d=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+5|0]<<24);if(d)d=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+e|0;else d=169776;if(d-e>>>0>c>>>0|f-d>>>0<2)break g;h=J[a+12>>2];c=d+2|0;g=J[a+4>>2];if(h>>>0>>0)break g;i=J[a+8>>2];f=i-c|0;c=K[d|0]|K[d+1|0]<<8;c=P((c<<8|c>>>8)&65535,12);if(f>>>0>>0)break g; -c=J[a+16>>2]-c|0;J[a+16>>2]=c;if((c|0)>0)break f}h:{if(K[a+28|0]|!J[a+32>>2])break h;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break h;while(1){H[a+28|0]=1;g=J[a+36>>2];e=J[g+12>>2];J[a+4>>2]=e;c=J[g+16>>2];J[a+12>>2]=c;f=c+e|0;J[a+8>>2]=f;J[a+32>>2]=0;if(c>>>0<=67108863){d=c<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}else d=1073741823;J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;i:{if(c>>>0<10)break i;d=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+5|0]<<24);if(d)d=(d<<24|(d& -65280)<<8|(d>>>8&65280|d>>>24))+e|0;else d=169776;if(d-e>>>0>c>>>0|f-d>>>0<2)break i;h=J[a+12>>2];c=d+2|0;g=J[a+4>>2];if(h>>>0>>0)break i;i=J[a+8>>2];f=i-c|0;c=K[d|0]|K[d+1|0]<<8;c=P((c<<8|c>>>8)&65535,12);if(f>>>0>>0)break i;c=J[a+16>>2]-c|0;J[a+16>>2]=c;if((c|0)>0)break f}if(K[a+28|0]|!J[a+32>>2])break h;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;f=1;j:{if(i- -e>>>0<10|e-g>>>0>h>>>0)break j;c=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+5|0]<<24);if(c)c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+e|0;else c=169776;if(c-g>>>0>h>>>0|i-c>>>0<2)break j;d=c+2|0;if(M[a+12>>2]>2]>>>0)break j;c=K[c|0]|K[c+1|0]<<8;c=P((c<<8|c>>>8)&65535,12);if(c>>>0>J[a+8>>2]-d>>>0)break j;c=J[a+16>>2]-c|0;J[a+16>>2]=c;f=(c|0)<=0}c=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(c)break e;if(!f)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]= -0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(g);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function AD(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;a:{b:{c:{d=J[a+200>>2];if(d&1){if(d&4){Wb(a,260754);mc(a,c);return}if(!(!b|!(K[b+9|0]&4))){Wb(a,260778);mc(a,c);return}cc(a,J[a+740>>2]);d=Ed(a,c+1|0);J[a+740>>2]=d;if(!d){Wb(a,260799);return}Gd(a,d,c);Fc(a,d,c);f=mc(a,0);d=J[a+740>>2];if(f){cc(a,d);J[a+740>>2]=0;return}H[c+d|0]=0;f= -J[a+740>>2];d=f;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}k=c+f|0;if((k-e|0)<=12){Wb(a,260826);break b}d=H[d|0];c=d&255;if((d|0)<0)f=0-(P(K[e+2|0],2147418112)-(K[e+4|0]|(K[e+3|0]<<8|c<<24))&2147483647)|0;else f=K[e+4|0]|(K[e+2|0]<<16|c<<24|K[e+3|0]<<8);d=H[e+5|0];c=d&255;if((d|0)<0)h=0-(P(K[e+6|0],2147418112)-(K[e+8|0]|(K[e+7|0]<<8|c<<24))&2147483647)|0;else h=K[e+8|0]|(K[e+6|0]<<16|c<<24|K[e+7|0]<<8);j=K[e+9|0];g=K[e+10|0];if(!(!(!j&(g|0)!=2|(g|0)!=3&(j-1&255)>>>0<=1)&((g|0)==4|(j|0)!=3))){Wb(a, -260844);break b}if(j>>>0>=4)Wb(a,260886);e=e+11|0;d=e;while(1){c=d;d=c+1|0;if(K[c|0])continue;break}l=Ed(a,g<<2);if(!l)break c;if(g)while(1){c=c+1|0;J[l+(i<<2)>>2]=c;d:{if(c>>>0<=k>>>0)while(1){if(!K[c|0])break d;c=c+1|0;if(k>>>0>=c>>>0)continue;break}Wb(a,260826);break a}i=i+1|0;if((g|0)!=(i|0))continue;break}m=J[a+740>>2];k=f;p=h;h=e;f=xb-80|0;xb=f;e:{if(!a|!b)break e;f:{if(m){c=f;o=1;d=K[m|0];g:{if(!d)break g;e=1;while(1){i=0;o=(d&255)>>>0<161&(d-127&255)>>>0<162;h:{if(o){i=1;if(e)break h;d=32}H[c| -0]=d;n=n+1|0;c=c+1|0}m=m+1|0;d=K[m|0];if(!d)break g;e=i;if(n>>>0<79)continue;break}}e=c;c=(n|0)!=0&o;H[e-c|0]=0;c=n-c|0;if(c)break f}Wb(a,255211);break e}i:{j:{if(j>>>0<=3){d=0;if(!g)break i;break j}gc(a,255462);B()}while(1){e=J[l+(d<<2)>>2];if(Gr(e,ac(e))){d=d+1|0;if((g|0)!=(d|0))continue;break i}break}gc(a,255536);B()}d=c+1|0;c=Ed(a,d);J[b+160>>2]=c;if(!c){Wb(a,255707);break e}Mb(c,f,d);H[b+181|0]=g;H[b+180|0]=j;J[b+168>>2]=p;J[b+164>>2]=k;d=ac(h)+1|0;c=Ed(a,d);J[b+172>>2]=c;if(!c){Wb(a,255836); -break e}Mb(c,h,d);h=(g<<2)+4|0;c=Ed(a,h);J[b+176>>2]=c;if(!c){Wb(a,256015);break e}d=0;Nb(c,0,h);if(g)while(1){c=d<<2;h=c+l|0;e=ac(J[h>>2])+1|0;i=Ed(a,e);J[c+J[b+176>>2]>>2]=i;c=J[c+J[b+176>>2]>>2];if(!c){Wb(a,256114);break e}Mb(c,J[h>>2],e);d=d+1|0;if((g|0)!=(d|0))continue;break}J[b+8>>2]=J[b+8>>2]|1024;J[b+184>>2]=J[b+184>>2]|128}xb=f+80|0;break a}gc(a,260729);B()}cc(a,J[a+740>>2]);J[a+740>>2]=0;Wb(a,260928);return}cc(a,J[a+740>>2]);J[a+740>>2]=0;return}cc(a,J[a+740>>2]);J[a+740>>2]=0;cc(a,l)}function Hma(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;h=xb+-64|0;xb=h;a:{if(J[b+24>>2])break a;k=a+2|0;f=J[b+4>>2];e=k-f|0;if(!((e|0)>=0&(e|0)<=(J[b+8>>2]-f|0))){J[b+24>>2]=4;break a}d=k;if((f|0)!=(d|0)){Nb(f,0,e);d=J[b+4>>2]}J[b+4>>2]=d+e;if(!d){d=0;break a}b:{f=J[c+4>>2];if(!f)break b;e=J[c+16>>2];if(!e)break b;g=J[c+12>>2];d=K[g|0]|K[g+1|0]<<8;i=d<<8|d>>>8;j=J[c>>2];d=K[j|0]|K[j+1|0]<<8;l=i-(d<<8|d>>>8)|0;d=f-1|0;c:{if(!d)break c;f=e-1|0;if(!f)break c;while(1){e=K[g+2|0]|K[g+3|0]<<8;i= -e<<8|e>>>8;e=K[j+2|0]|K[j+3|0]<<8;if((l&65535)!=(i-(e<<8|e>>>8)&65535))break b;d=d-1|0;if(!d)break c;g=g+2|0;j=j+2|0;f=f-1|0;if(f)continue;break}}H[a|0]=0;H[a+1|0]=1;d=J[c+20>>2];J[h+48>>2]=J[c+16>>2];J[h+52>>2]=d;d=J[c+12>>2];J[h+40>>2]=J[c+8>>2];J[h+44>>2]=d;d=J[c+4>>2];J[h+32>>2]=J[c>>2];J[h+36>>2]=d;J[h+56>>2]=129426;if(J[b+24>>2]){d=0;break a}d=0;g=a+6|0;e=J[b+4>>2];c=g-e|0;if(!((c|0)<0|(c|0)>(J[b+8>>2]-e|0))){if((e|0)!=(g|0)){Nb(e,0,c);g=J[b+4>>2]}J[b+4>>2]=c+g;if(!g)break a;if(!gG(k,b,h+32| -0))break a;b=l<<8|(l&65280)>>>8;H[a+4|0]=b;H[a+5|0]=b>>>8;d=1;break a}J[b+24>>2]=4;break a}H[a|0]=0;H[a+1|0]=2;d=J[c+20>>2];J[h+24>>2]=J[c+16>>2];J[h+28>>2]=d;d=J[c+12>>2];J[h+16>>2]=J[c+8>>2];J[h+20>>2]=d;d=J[c+4>>2];J[h+8>>2]=J[c>>2];J[h+12>>2]=d;c=a;k=0;i=xb-32|0;xb=i;e=h+8|0;g=J[e+16>>2];l=J[e+12>>2];j=J[e+4>>2];d=J[e+20>>2];J[i+16>>2]=J[e+16>>2];J[i+20>>2]=d;d=J[e+12>>2];J[i+8>>2]=J[e+8>>2];J[i+12>>2]=d;d=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=d;J[i+24>>2]=129426;d:{if(J[b+24>>2])break d;a=a+6| -0;f=J[b+4>>2];e=a-f|0;if(!((e|0)>=0&(e|0)<=(J[b+8>>2]-f|0))){J[b+24>>2]=4;break d}d=a;if((f|0)!=(d|0)){Nb(f,0,e);d=J[b+4>>2]}f=d+e|0;J[b+4>>2]=f;if(J[b+24>>2]|!d)break d;e=4;e:{d=a-f|0;if((d|0)<0|(d|0)>(J[b+8>>2]-f|0))break e;if((a|0)!=(f|0)){Nb(f,0,d);a=J[b+4>>2]}J[b+4>>2]=a+d;if(!a)break d;d=c+4|0;f=g>>>0>j>>>0?j:g;a=f<<8|(f&65280)>>>8;H[d|0]=a;H[d+1|0]=a>>>8;a=J[b+24>>2];if(f>>>0>=65536){e=a|16;break e}if(a)break d;a=d+(f<<1&131070)|0;d=J[b+4>>2];a=(a-d|0)+2|0;if((a|0)<0|(a|0)>(J[b+8>>2]-d|0))break e; -J[b+4>>2]=a+d;if(!d)break d;if(f){e=L[84888];a=0;while(1){if(!(g?j:0))I[388240]=e;k=c+(a<<1)|0;d=g?l:776480;d=K[d|0]|K[d+1|0]<<8;H[k+6|0]=d;H[k+7|0]=d>>>8;d=j-1|0;j=d>>>0<=j>>>0?d:0;l=(((g|0)!=0)<<1)+l|0;d=g-1|0;g=d>>>0<=g>>>0?d:0;a=a+1|0;if((f|0)!=(a|0))continue;break}}k=gG(c+2|0,b,i);break d}J[b+24>>2]=e}xb=i+32|0;d=k}xb=h- -64|0;return d|0}function YC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb-48|0;xb=g;c=J[a+12>>2];a:{b:{if(c&131072)break b;e=J[J[a+188>>2]+(b<<2)>>2];if(!e){c=J[a>> -2];a=J[a+628>>2];J[g+4>>2]=b;J[g>>2]=0;Ob(a,c,268311,g);d=0;break a}if(!(!(c&2048)|!((L[a+94>>1]|256)&c))){c:{if(!(c&512))break c;d=J[a+596>>2];if(!d)break c;Kb(d);c=J[a+12>>2]}c=c&-513;J[a+12>>2]=c;d:{d=J[a+616>>2];if(d>>>0>=e>>>0){f=J[a+184>>2]+(b<<2)|0;if(M[f>>2]<=d-e>>>0)break d}J[a+504>>2]=-1;d=0;break a}J[a+600>>2]=e;J[a+596>>2]=J[a+612>>2]+J[f>>2];break b}e:{if(e>>>0<=M[a+600>>2]){f=J[a+596>>2];break e}J[a+504>>2]=-1;if(!(c&512)){c=J[a+628>>2];a=J[a>>2];J[g+20>>2]=b;J[g+16>>2]=a;Ob(c,276370, -269109,g+16|0);d=0;break a}c=J[a+596>>2];if(c){Kb(c);J[a+596>>2]=0}c=e>>>0<4294966272?e+1023&-1024:0;c=(c|0)!=-1024?c:0;J[a+600>>2]=c;f:{if((c|0)<=0){J[a+12>>2]=J[a+12>>2]|512;break f}f=Qb(c);J[a+596>>2]=f;J[a+12>>2]=J[a+12>>2]|512;if(!f)break f;if(J[a+600>>2])break e}b=J[a+628>>2];c=J[a>>2];J[g+36>>2]=J[a+472>>2];J[g+32>>2]=c;Ob(b,276384,269597,g+32|0);J[a+600>>2]=0;d=0;break a}c=e;d=xb-80|0;xb=d;g:{if(!(K[a+13|0]&8)){h=b<<2;if((Ab[J[a+640>>2]](J[a+628>>2],J[h+J[a+184>>2]>>2],0)|0)!=J[h+J[a+184>> -2]>>2]){c=J[a+628>>2];f=J[a>>2];h=J[a+472>>2];i=J[a+500>>2];J[d+44>>2]=b;J[d+40>>2]=i;J[d+36>>2]=h;J[d+32>>2]=f;Ob(c,276370,272362,d+32|0);c=-1;break g}f=Ab[J[a+632>>2]](J[a+628>>2],f,c)|0;if((f|0)==(c|0))break g;h=J[a+628>>2];i=J[a>>2];k=J[a+472>>2];l=J[a+500>>2];J[d+16>>2]=c;J[d+12>>2]=f;J[d+8>>2]=l;J[d+4>>2]=k;J[d>>2]=i;Ob(h,276370,272505,d);c=-1;break g}i=J[a+616>>2];h=J[J[a+184>>2]+(b<<2)>>2];if(i>>>0>>0){f=J[a+628>>2];k=J[a>>2];l=J[a+472>>2];j=J[a+500>>2];J[d+68>>2]=c;J[d- -64>>2]=i-h; -J[d+60>>2]=b;J[d+56>>2]=j;J[d+52>>2]=l;J[d+48>>2]=k;Ob(f,276370,272887,d+48|0);c=-1;break g}Pc(f,J[a+612>>2]+h|0,c)}xb=d+80|0;d=0;if((c|0)!=(e|0))break a;c=J[a+12>>2];if(c&(L[a+94>>1]|256))break b;ur(J[a+596>>2],e);c=J[a+12>>2]}if(!(c&32)){d=0;if(!(Ab[J[a+516>>2]](a)|0))break a;c=J[a+12>>2]|32;J[a+12>>2]=c}J[a+504>>2]=b;e=J[a+72>>2];f=J[a+56>>2];d=J[a+68>>2];if(f>>>0<0-d>>>0)j=((d+f|0)-1>>>0)/(d>>>0)|0;else j=0;J[a+472>>2]=P(e,(b>>>0)%(j>>>0)|0);f=J[a+60>>2];if(f>>>0<0-e>>>0)e=((e+f|0)-1>>>0)/(e>>> -0)|0;else e=0;J[a+500>>2]=P(d,(b>>>0)%(e>>>0)|0);e=0;if(c&131072)d=0;else{e=J[a+596>>2];d=J[J[a+188>>2]+(b<<2)>>2]}J[a+608>>2]=d;J[a+604>>2]=e;d=Ab[J[a+520>>2]](a,(b>>>0)/M[a+176>>2]&65535)|0}xb=g+48|0;return d}function Qs(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;i=xb-16|0;xb=i;J[i+8>>2]=0;p=J[J[a>>2]+28>>2];J[b>>2]=0;a:{b:{if(J[a+28>>2])break b;J[i+12>>2]=0;c:{f=J[a+12>>2];if(f){j=K[a+16|0];k=J[a>>2];h=J[k+28>>2];f=f+1|0;r=a,s=Tb(h,4,0,f,0,i+12|0),J[r+28>>2]=s;if(J[i+ -12>>2])break c;g=bc(k,J[a+8>>2]+J[a+4>>2]|0);J[i+12>>2]=g;if(g)break c;g=P(f,j);f=Tc(k,g);J[i+12>>2]=f;if(f)break c;e=J[k+32>>2];l=g+e|0;f=J[a+28>>2];d:{e:switch(j-1|0){case 2:if((g|0)<=0)break d;while(1){J[f>>2]=K[e+2|0]|(K[e+1|0]<<8|K[e|0]<<16);f=f+4|0;e=e+3|0;if(l>>>0>e>>>0)continue;break}break d;case 1:if((g|0)<=0)break d;while(1){J[f>>2]=K[e+1|0]|K[e|0]<<8;f=f+4|0;e=e+2|0;if(l>>>0>e>>>0)continue;break}break d;case 0:if((g|0)<=0)break d;while(1){J[f>>2]=K[e|0];f=f+4|0;e=e+1|0;if(l>>>0>e>>>0)continue; -break}break d;default:break e}if((g|0)<=0)break d;while(1){g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[f>>2]=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);f=f+4|0;e=e+4|0;if(l>>>0>e>>>0)continue;break}}Ec(k);if(J[i+12>>2])break c}J[i+8>>2]=0;break b}f=J[a+28>>2];if(f)Ab[J[h+8>>2]](h,f);J[a+28>>2]=0;e=J[i+12>>2];J[i+8>>2]=e;if(e)break a}e=0;f=J[a+12>>2];if(!f)break a;g=J[a+24>>2];l=i+8|0;k=Tb(p,4,0,f+1|0,0,l);e=J[i+8>>2];f:{if(e)break f;q=f+g|0;g:{h:{i:{j:{if(c){l=tc(p,q,l);if(J[i+8>>2])break g;o= -J[a+32>>2];J[k>>2]=l;m=J[a+12>>2];if(m){e=1;j=0;f=0;while(1){g=e<<2;n=J[g+J[a+28>>2]>>2]-1|0;k:{if(n>>>0>>0){J[g+k>>2]=(f+l|0)+j;break k}h=g+k|0;g=J[a+24>>2];g=g>>>0>n>>>0?n:g;n=(g+l|0)+j|0;J[h>>2]=n;if((f|0)!=(g|0)){m=J[h-4>>2];Mb(m,f+o|0,n-m|0);H[J[h>>2]]=0;J[h>>2]=J[h>>2]+1;m=J[a+12>>2];j=j+1|0}f=g}e=e+1|0;if(m>>>0>=e>>>0)continue;break}break j}J[b>>2]=k;break i}g=J[a+32>>2];J[k>>2]=g;e=J[a+12>>2];if(!e){l=0;break j}f=1;j=e+1|0;h=(j>>>0<=2?2:j)-1|0;m=h&1;l=0;e=0;if(j>>>0>=3){n=h&-2;j=0;while(1){o= -f<<2;h=J[o+J[a+28>>2]>>2]-1|0;if(h>>>0>=e>>>0){e=J[a+24>>2];e=e>>>0>h>>>0?h:e}J[k+o>>2]=e+g;o=f+1<<2;h=J[o+J[a+28>>2]>>2]-1|0;if(h>>>0>=e>>>0){e=J[a+24>>2];e=e>>>0>h>>>0?h:e}J[k+o>>2]=e+g;f=f+2|0;j=j+2|0;if((n|0)!=(j|0))continue;break}}if(!m)break j;j=f<<2;f=J[j+J[a+28>>2]>>2]-1|0;if(f>>>0>=e>>>0){a=J[a+24>>2];e=a>>>0>f>>>0?f:a}J[k+j>>2]=e+g}J[b>>2]=k;if(!c)break h}J[c>>2]=l}if(!d)break g;J[d>>2]=q}e=J[i+8>>2];if(!e|!l)break f;if(l)Ab[J[p+8>>2]](p,l);e=J[i+8>>2]}if(!e|!k)break a;if(k)Ab[J[p+8>>2]](p, -k);e=J[i+8>>2]}xb=i+16|0;return e}function rp(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;J[a+4>>2]=c;J[a>>2]=b;J[a+400>>2]=J[c+124>>2];J[a+404>>2]=J[c+128>>2];J[a+412>>2]=J[c+136>>2];J[a+416>>2]=J[c+140>>2];J[a+408>>2]=J[c+132>>2];J[a+420>>2]=J[c+144>>2];J[a+216>>2]=J[c+120>>2];d=J[c+80>>2];J[a+248>>2]=J[c+76>>2];J[a+252>>2]=d;d=J[c+88>>2];J[a+256>>2]=J[c+84>>2];J[a+260>>2]=d;d=J[c+96>>2];J[a+264>>2]=J[c+92>>2];J[a+268>>2]=d;d=J[c+104>>2];J[a+272>>2]=J[c+100>>2];J[a+276>>2]=d;d=J[c+112>>2]; -J[a+280>>2]=J[c+108>>2];J[a+284>>2]=d;d=J[c+44>>2];e=J[d+4>>2];J[a+220>>2]=J[d>>2];J[a+224>>2]=e;e=J[d+12>>2];J[a+228>>2]=J[d+8>>2];J[a+232>>2]=e;e=J[d+20>>2];J[a+236>>2]=J[d+16>>2];J[a+240>>2]=e;J[a+244>>2]=J[d+24>>2];J[a+424>>2]=J[c+148>>2];J[a+428>>2]=J[c+152>>2];d=J[c+160>>2];J[a+448>>2]=J[c+156>>2];J[a+452>>2]=d;d=J[c+168>>2];J[a+456>>2]=J[c+164>>2];J[a+460>>2]=d;d=J[c+176>>2];J[a+464>>2]=J[c+172>>2];J[a+468>>2]=d;Mb(a+288|0,c+180|0,68);J[a+384>>2]=J[c+248>>2];J[a+388>>2]=J[c+252>>2];I[a+472>> -1]=L[c+256>>1];J[a+476>>2]=J[c+260>>2];d=J[c+268>>2];J[a+180>>2]=J[c+264>>2];J[a+184>>2]=d;d=J[c+276>>2];J[a+188>>2]=J[c+272>>2];J[a+192>>2]=d;d=J[c+284>>2];J[a+196>>2]=J[c+280>>2];J[a+200>>2]=d;d=J[c+292>>2];J[a+204>>2]=J[c+288>>2];J[a+208>>2]=d;J[a+212>>2]=J[c+296>>2];e=Nb(a+36|0,0,108);f=J[a+8>>2];a:{b:{c:{c=L[b+284>>1]+32|0;d=J[a+20>>2];d:{if(c>>>0<=d>>>0){c=d;break d}h=a,i=Tb(f,1,d<<2,c<<2,J[a+24>>2],g+8|0),J[h+24>>2]=i;f=J[g+8>>2];if(f)break c;f=J[a+8>>2]}J[a+20>>2]=c;c=L[b+286>>1];b=J[a+392>> -2];if(c>>>0<=b>>>0){c=b;break b}h=a,i=Tb(f,1,b,c,J[a+396>>2],g+12|0),J[h+396>>2]=i;f=J[g+12>>2];if(!f)break b;J[a+392>>2]=b&65535;break a}J[a+20>>2]=d;break a}f=0;J[a+152>>2]=0;J[a+392>>2]=c&65535;J[a+104>>2]=J[a+176>>2];b=J[a+172>>2];J[a+96>>2]=J[a+168>>2];J[a+100>>2]=b;b=J[a+164>>2];J[a+88>>2]=J[a+160>>2];J[a+92>>2]=b;b=J[a+148>>2];J[a+72>>2]=J[a+144>>2];J[a+76>>2]=b;b=J[a+156>>2];J[a+80>>2]=J[a+152>>2];J[a+84>>2]=b;J[a+140>>2]=J[a+176>>2];b=J[a+172>>2];J[a+132>>2]=J[a+168>>2];J[a+136>>2]=b;b=J[a+ -164>>2];J[a+124>>2]=J[a+160>>2];J[a+128>>2]=b;b=J[a+156>>2];J[a+116>>2]=J[a+152>>2];J[a+120>>2]=b;b=J[a+148>>2];J[a+108>>2]=J[a+144>>2];J[a+112>>2]=b;J[e+32>>2]=J[a+176>>2];b=J[a+172>>2];J[e+24>>2]=J[a+168>>2];J[e+28>>2]=b;b=J[a+164>>2];J[e+16>>2]=J[a+160>>2];J[e+20>>2]=b;b=J[a+156>>2];J[e+8>>2]=J[a+152>>2];J[e+12>>2]=b;b=J[a+148>>2];J[e>>2]=J[a+144>>2];J[e+4>>2]=b;H[a+492|0]=0}xb=g+16|0;return f}function Xca(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a= -L[a+26>>1];d=P(a,g);c=e>>>0<8;j=h<<2;while(1){h=e;if(!c)while(1){g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;g=a+i|0;i=K[g+3|0]^255;J[b+4>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+8>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+12>>2]=(P(i,K[g|0]^255)>>> -0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+16>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+20>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+24>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255; -J[b+28>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;b=b+32|0;i=a+g|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 5:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 4:g=K[i+3|0]^255;J[b>>2]=(P(g, -K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 3:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 2:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 1:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^ -255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 0:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;break;default:break a}i=d+i|0;b=b+j|0;f=f-1|0;if(f)continue;break}}}function _G(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{d=J[b+12>>2];f=a+2|0;c=J[b+4>>2];b:{if(d>>>0>>0)break b;e=J[b+8>>2];if(e-f>>>0<2)break b;h=d;d=a+4|0;if(h>>>0>>0)break b;c=K[a+2|0]|K[a+3|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>e-d>>> -0)break b;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break b;c=K[f|0]|K[f+1|0]<<8;if(c){c=(c<<8|c>>>8)&65535;g=c>>>0<=1?1:c;c=0;while(1){d=((c<<1)+a|0)+4|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<2)break a;e=K[d|0]|K[d+1|0]<<8;c:{if(!e)break c;if(Ld(b,((e<<8|e>>>8)&65535)+a|0))break c;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[d|0]=0;H[d+1|0]=0}c=c+1|0;if((g|0)!=(c|0))continue;break}}e=J[b+12>>2];c=K[f|0]|K[f+1|0]<<8;c=f+(((c<<8|c>>>8)&65535)<<1)|0;f=c+2|0;d=J[b+ -4>>2];if(e>>>0>>0)break b;g=J[b+8>>2];if(g-f>>>0<2)break b;h=e;e=c+4|0;if(h>>>0>>0)break b;c=K[c+2|0]|K[c+3|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>g-e>>>0)break b;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break b;c=K[f|0]|K[f+1|0]<<8;if(c){c=(c<<8|c>>>8)&65535;g=c>>>0<=1?1:c;c=0;while(1){d=(f+(c<<1)|0)+2|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<2)break a;e=K[d|0]|K[d+1|0]<<8;d:{if(!e)break d;if(Ld(b,((e<<8|e>>>8)&65535)+a|0))break d;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+ -1;if(!K[b+28|0])break a;H[d|0]=0;H[d+1|0]=0}c=c+1|0;if((g|0)!=(c|0))continue;break}}c=K[f|0]|K[f+1|0]<<8;if(!c)break b;e=J[b+12>>2];c=f+(((c<<8|c>>>8)&65535)<<1)|0;f=c+2|0;d=J[b+4>>2];if(e>>>0>>0)break b;g=J[b+8>>2];if(g-f>>>0<2)break b;h=e;e=c+4|0;if(h>>>0>>0)break b;c=K[c+2|0]|K[c+3|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>g-e>>>0)break b;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break b;c=K[f|0]|K[f+1|0]<<8;if(c){c=(c<<8|c>>>8)&65535;g=c>>>0<=1?1:c;c=0;while(1){d=(f+(c<<1)|0)+2|0;if(M[b+ -12>>2]>2]>>>0|J[b+8>>2]-d>>>0<2)break a;e=K[d|0]|K[d+1|0]<<8;e:{if(!e)break e;if(Ld(b,((e<<8|e>>>8)&65535)+a|0))break e;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[d|0]=0;H[d+1|0]=0}c=c+1|0;if((g|0)!=(c|0))continue;break}}d=J[b+12>>2];a=K[f|0]|K[f+1|0]<<8;a=f+(((a<<8|a>>>8)&65535)<<1)|0;c=a+2|0;f=J[b+4>>2];if(d>>>0>>0|J[b+8>>2]-c>>>0<2)break b;c=a+4|0;if(d>>>0>>0)break b;a=K[a+2|0]|K[a+3|0]<<8;a=((a<<8|a>>>8)&65535)<<2;if(a>>>0>J[b+8>>2]-c>>>0)break b; -a=J[b+16>>2]-a|0;J[b+16>>2]=a;i=(a|0)>0}return i}return 0}function hoa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}H[a+28|0]=0;c=b;J[a+36>>2]=c;e=J[c+12>>2];J[a+4>>2]=e;d=J[c+16>>2];J[a+12>>2]=d;J[a+8>>2]=d+e;J[a+32>>2]=0;if(d>>>0>67108863)d=1073741823;else{d=d<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;b:{c:{d:{if(!e)break d;e:{f:{g:{h:{i:{if(!Fk(e,a))break i;c=e+20|0;if(M[a+12>>2]>2]>>>0|J[a+ -8>>2]-c>>>0<4)break i;if(!(K[c|0]&128))break h}if(!J[a+32>>2])break c;if(!K[a+28|0])break g;break c}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(!c)break e;if(si((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+e|0,a))break e;c=J[a+32>>2];if(c>>>0<=31){J[a+32>>2]=c+1;if(!K[a+28|0])break g;break f}if(K[a+28|0])break c}c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break c;while(1){H[a+28|0]=1;c=J[a+36>>2];e=J[c+12>>2];J[a+4>>2]=e;d=J[c+16>>2];J[a+12>>2]=d;J[a+8>>2]=d+e;J[a+32>>2]=0;if(d>>>0<=67108863){d= -d<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}else d=1073741823;J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;if(!e)break d;j:{k:{l:{if(!Fk(e,a))break l;c=e+20|0;if(M[a+12>>2]>2]>>>0|J[a+8>>2]-c>>>0<4|K[c|0]&128)break l;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(!c)break e;if(si((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+e|0,a))break e;c=J[a+32>>2];if(c>>>0>31)break k;J[a+32>>2]=c+1;if(!K[a+28|0])break j;break f}if(K[a+28|0]|!J[a+32>>2])break c;break j}if(K[a+28|0])break c}c= -Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}break c}H[e+20|0]=0;H[e+21|0]=0;H[e+22|0]=0;H[e+23|0]=0}m:{if(J[a+32>>2]){c=0;J[a+32>>2]=0;n:{if(!Fk(e,a))break n;d=e+20|0;if(M[a+12>>2]>2]>>>0|J[a+8>>2]-d>>>0<4|K[d|0]&128)break n;c=1;f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!f)break n;if(si((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))+e|0,a))break n;e=J[a+32>>2];if(e>>>0>31)break c;J[a+32>>2]=e+1;if(!K[a+28|0])break c;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0}if(J[a+32>> -2])break c;Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(!c)break b;break m}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}Ub(b);return 169776}function TS(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=xb-1056|0;xb=j;J[j+16>> -2]=f;J[j+20>>2]=g;J[j+24>>2]=h;J[j+28>>2]=i;a=j+944|0;J[j+940>>2]=a;k=Jf(a,100,226988,j+16|0);J[j+48>>2]=627;a=j+48|0;p=Id(j+520|0,0,a);J[j+48>>2]=627;l=Id(j+512|0,0,a);n=j+528|0;a:{b:{c:{d:{if(k>>>0>=100){J[195395]=0;a=na(3650)|0;k=J[195395];J[195395]=0;if((k|0)==1)break d;J[j>>2]=f;J[j+4>>2]=g;J[195395]=0;J[j+8>>2]=h;J[j+12>>2]=i;k=ha(3671,j+940|0,a|0,226988,j|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;e:{if((k|0)!=-1){ge(p,J[j+940>>2]);ge(l,Qb(k<<2));if(J[l>>2])break e}J[195395]=0;ja(3628); -a=J[195395];J[195395]=0;if((a|0)==1)break d;break a}n=J[l>>2]}J[195395]=0;f=j+508|0;a=J[d+28>>2];J[f>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[195395];J[195395]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){J[195395]=0;r=_(3551,f|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break k;J[195395]=0;a=J[j+940>>2];ha(3665,r|0,a|0,a+k|0,n|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break k;q=(k|0)>0?K[J[j+940>>2]]==45:q;h=Rc(j+484|0);f=Rc(j+472|0);g=Rc(j+460|0);J[195395]=0;Ca(3710,c|0,q|0,j+508|0,j+504|0,j+500|0,j+496|0,h|0,f|0,g|0,j+ -456|0);a=J[195395];J[195395]=0;if((a|0)==1)break j;J[j+36>>2]=627;i=Id(j+40|0,0,j+36|0);c=j+48|0;a=J[j+456>>2];l:{if((a|0)<(k|0)){if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;if(K[g+11|0]>>>7|0)o=J[g+4>>2];else o=K[g+11|0]&127;a=(a+(m+(o+(k-a<<1)|0)|0)|0)+1|0;break l}o=J[j+456>>2];if(K[g+11|0]>>>7|0)a=J[g+4>>2];else a=K[g+11|0]&127;if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;a=(o+(a+m|0)|0)+2|0}if(a>>>0<101)break i;ge(i,Qb(a<<2));c=J[i>>2];if(c)break i;J[195395]=0;ja(3628);a=J[195395]; -J[195395]=0;if((a|0)!=1)break a;break h}k=Z()|0;break b}k=Z()|0;break f}k=Z()|0;break g}a=J[d+4>>2];J[195395]=0;Ea(3711,c|0,j+36|0,j+32|0,a|0,n|0,(k<<2)+n|0,r|0,q|0,j+504|0,J[j+500>>2],J[j+496>>2],h|0,f|0,g|0,J[j+456>>2]);a=J[195395];J[195395]=0;if((a|0)!=1){J[195395]=0;c=pa(3683,b|0,c|0,J[j+36>>2],J[j+32>>2],d|0,e|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break c}}k=Z()|0;Ic(i)}Yc(g);Yc(f);Yb(h)}a=J[j+508>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break b}k=Z()|0;break b}Ic(i); -Yc(g);Yc(f);Yb(h);a=J[j+508>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);Ic(l);Ic(p);xb=j+1056|0;return c|0}Ic(l);Ic(p);ba(k|0);B()}B()}function kK(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;k=xb-16|0;xb=k;h=J[a+492>>2];i=J[b+8>>2];Ab[J[b+28>>2]](b);d=J[b>>2];a:{if(i>>>0<=d>>>0){J[b+12>>2]=3;break a}b:{l=K[d|0];if(!((l|0)!=91&l-48>>>0>9)){e=J[b+16>>2];if((l|0)==91){J[b>>2]=d+1;g=256;break b}g=Ab[J[b+36>>2]](b)|0;if((g|0)<257)break b;J[b+12>>2]= -3;break a}c:{if(d+17>>>0>=i>>>0)break c;if(Zb(d,12672,16))break c;J[a+368>>2]=2;break a}d:{if(d+15>>>0>=i>>>0)break d;if(Zb(d,12736,14))break d;J[a+368>>2]=4;break a}e:{if(d+18>>>0>=i>>>0)break e;if(Zb(d,12844,17))break e;J[a+368>>2]=3;break a}J[b+12>>2]=162;break a}Ab[J[b+28>>2]](b);if(M[b>>2]>=i>>>0)break a;j=b+92|0;c=J[a+384>>2];f:{if(!c)break f;if(c)Ab[J[e+8>>2]](e,c);J[a+384>>2]=0;c=J[a+388>>2];if(c)Ab[J[e+8>>2]](e,c);J[a+388>>2]=0;c=J[b+140>>2];if(!c)break f;Ab[c|0](j)}J[a+372>>2]=g;J[b+88>> -2]=g;c=k+12|0;n=a,o=Tb(e,2,0,g,0,c),J[n+384>>2]=o;g:{f=J[k+12>>2];if(f)break g;n=a,o=Tb(e,4,0,g,0,c),J[n+388>>2]=o;f=J[k+12>>2];if(f)break g;f=Ab[J[J[h>>2]>>2]](j,g,e)|0;J[k+12>>2]=f;if(f)break g;h:{if((g|0)<=0)break h;e=0;c=0;if(g>>>0>=4){h=g&-4;f=0;while(1){Ab[J[b+136>>2]](j,c,10293,8)|0;Ab[J[b+136>>2]](j,c|1,10293,8)|0;Ab[J[b+136>>2]](j,c|2,10293,8)|0;Ab[J[b+136>>2]](j,c|3,10293,8)|0;c=c+4|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}h=g&3;if(!h)break h;while(1){Ab[J[b+136>>2]](j,c,10293,8)|0;c=c+ -1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}Ab[J[b+28>>2]](b);c=J[b>>2];i:{if(i>>>0<=c>>>0)break i;m=(l|0)==91;h=0;while(1){j:{k:{l:{e=K[c|0];switch(e-93|0){case 0:break k;case 7:break l;default:break j}}d=c+3|0;if(K[c+1|0]!=101|i>>>0<=d>>>0|K[c+2|0]!=102)break j;switch(K[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:break i;default:break j}}d=c+1|0;break i}m:{n:{if(!(!m&e-48>>>0>9)){if(m){d=c;e=h;break n}e=Ab[J[b+36>>2]](b)|0;Ab[J[b+28>>2]](b);d=J[b>>2];if((d|0)!=(c|0))break n;J[b+12>>2]= -2;break a}Ab[J[b+32>>2]](b);d=c;if(J[b+12>>2])break a;break m}if(!(K[d|0]!=47|d+2>>>0>=i>>>0|(g|0)<=(h|0))){d=d+1|0;J[b>>2]=d;Ab[J[b+32>>2]](b);c=J[b>>2];if(J[b+12>>2]|c>>>0>=i>>>0)break a;f=c-d|0;c=Ab[J[b+136>>2]](j,e,d,f+1|0)|0;J[b+12>>2]=c;if(c)break a;H[f+J[J[b+116>>2]+(e<<2)>>2]|0]=0;h=h+1|0;break m}if((l|0)!=91)break m;J[b+12>>2]=2;break a}Ab[J[b+28>>2]](b);c=J[b>>2];if(i>>>0>c>>>0)continue;break}}J[a+368>>2]=1;J[b>>2]=d;break a}J[b+12>>2]=f}xb=k+16|0}function A_(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=J[b>>2];if(!f)return 35;b=6;a:{if(M[f+16>>2]<=c>>>0)break a;h=J[f+104>>2];j=J[f+292>>2];b=j+(c<<4)|0;g=I[b+6>>1];k=g+I[b+8>>1]|0;J[a+76>>2]=k;i=I[b>>1];b=I[b+2>>1];H[a+94|0]=1;I[a+92>>1]=1;e=b-i|0;J[a+80>>2]=e;b=3;b:{c:switch((1<<(J[f+312>>2]&3))-1|0){case 0:b=e+7>>>3|0;break b;case 1:b=e+15>>>3&536870910;break b;case 3:b=e+31>>>3&536870908;break b;case 7:break c;default:break a}b=e+63>>>3&536870904}J[a+104>>2]=g;J[a+100>>2]=i;J[a+72>>2]=1651078259;J[a+84>> -2]=b;c=j+(c<<4)|0;b=I[c+4>>1];J[a+36>>2]=g<<6;J[a+32>>2]=i<<6;J[a+28>>2]=k<<6;J[a+24>>2]=e<<6;J[a+40>>2]=b<<6;lk(a+24|0,J[f+208>>2]+J[f+204>>2]<<6);d:{if(d&4194304)break d;d=P(J[a+76>>2],J[a+84>>2]);b=ao(a,d);if(b)break a;b=bc(h,J[c+12>>2]);if(b)break a;b=Dd(h,J[a+88>>2],d);if(b)break a;c=J[f+312>>2];if(!(!d|c&8)){i=d-1|0;c=J[a+88>>2];h=d&3;e:{if(!h){b=d;break e}e=0;b=d;while(1){g=K[c|0];g=g>>>4|(g&15)<<4;g=g>>>2&51|(g&51)<<2;H[c|0]=g>>>1&85|(g&85)<<1;c=c+1|0;b=b-1|0;e=e+1|0;if((h|0)!=(e|0))continue; -break}}if(i>>>0>=3)while(1){e=K[c|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;H[c|0]=e>>>1&85|(e&85)<<1;e=K[c+1|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;H[c+1|0]=e>>>1&85|(e&85)<<1;e=K[c+2|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;H[c+2|0]=e>>>1&85|(e&85)<<1;e=K[c+3|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;H[c+3|0]=e>>>1&85|(e&85)<<1;c=c+4|0;b=b-4|0;if(b)continue;break}c=J[f+312>>2]}if(!((c>>>2^c>>>3)&1))break d;b=0;f:switch((1<<(c>>>4&3))-2|0){case 0:if(d>>>0<2)break a;a=J[a+88>>2];c=d-2|0;f=(c>>> -1|0)+1&3;if(f)while(1){e=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=e;a=a+2|0;d=d-2|0;b=b+1|0;if((f|0)!=(b|0))continue;break}b=0;if(c>>>0<6)break a;while(1){c=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=c;c=K[a+2|0];H[a+2|0]=K[a+3|0];H[a+3|0]=c;c=K[a+4|0];H[a+4|0]=K[a+5|0];H[a+5|0]=c;c=K[a+6|0];H[a+6|0]=K[a+7|0];H[a+7|0]=c;a=a+8|0;d=d-8|0;if(d>>>0>1)continue;break}break a;case 2:break f;default:break a}if(d>>>0<4)break d;a=J[a+88>>2];b=d-4|0;if(!(b&4)){c=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=c;c=K[a+1|0];H[a+1|0]=K[a+2|0];H[a+ -2|0]=c;d=b;a=a+4|0}if(b>>>0<4)break d;while(1){b=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=b;b=K[a+1|0];H[a+1|0]=K[a+2|0];H[a+2|0]=b;b=K[a+4|0];H[a+4|0]=K[a+7|0];H[a+7|0]=b;b=K[a+5|0];H[a+5|0]=K[a+6|0];H[a+6|0]=b;a=a+8|0;d=d-8|0;if(d>>>0>3)continue;break}}b=0}return b|0}function YS(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=xb-448|0;xb=j;J[j+16>>2]=f;J[j+20>>2]=g;J[j+24>>2]=h;J[j+28>>2]=i;a=j+336|0;J[j+332>>2]=a;k=Jf(a,100,226988,j+16| -0);J[j+48>>2]=627;a=j+48|0;p=Id(j+216|0,0,a);J[j+48>>2]=627;l=Id(j+208|0,0,a);n=j+224|0;a:{b:{c:{d:{if(k>>>0>=100){J[195395]=0;a=na(3650)|0;k=J[195395];J[195395]=0;if((k|0)==1)break d;J[j>>2]=f;J[j+4>>2]=g;J[195395]=0;J[j+8>>2]=h;J[j+12>>2]=i;k=ha(3671,j+332|0,a|0,226988,j|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;e:{if((k|0)!=-1){ge(p,J[j+332>>2]);ge(l,Qb(k));if(J[l>>2])break e}J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;break a}n=J[l>>2]}J[195395]=0;f=j+204|0;a=J[d+28>> -2];J[f>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[195395];J[195395]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){J[195395]=0;r=_(3535,f|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break k;J[195395]=0;a=J[j+332>>2];ha(3646,r|0,a|0,a+k|0,n|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break k;q=(k|0)>0?K[J[j+332>>2]]==45:q;h=Rc(j+184|0);f=Rc(j+172|0);g=Rc(j+160|0);J[195395]=0;Ca(3708,c|0,q|0,j+204|0,j+200|0,j+199|0,j+198|0,h|0,f|0,g|0,j+156|0);a=J[195395];J[195395]=0;if((a|0)==1)break j;J[j+36>>2]=627;i=Id(j+40|0,0,j+36|0);c=j+48| -0;a=J[j+156>>2];l:{if((a|0)<(k|0)){if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;if(K[g+11|0]>>>7|0)o=J[g+4>>2];else o=K[g+11|0]&127;a=(a+(m+(o+(k-a<<1)|0)|0)|0)+1|0;break l}o=J[j+156>>2];if(K[g+11|0]>>>7|0)a=J[g+4>>2];else a=K[g+11|0]&127;if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;a=(o+(a+m|0)|0)+2|0}if(a>>>0<101)break i;ge(i,Qb(a));c=J[i>>2];if(c)break i;J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break h}k=Z()|0;break b}k=Z()|0;break f}k=Z()|0;break g}a=J[d+ -4>>2];J[195395]=0;Ea(3709,c|0,j+36|0,j+32|0,a|0,n|0,k+n|0,r|0,q|0,j+200|0,H[j+199|0],H[j+198|0],h|0,f|0,g|0,J[j+156>>2]);a=J[195395];J[195395]=0;if((a|0)!=1){J[195395]=0;c=pa(3673,b|0,c|0,J[j+36>>2],J[j+32>>2],d|0,e|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break c}}k=Z()|0;Ic(i)}Yb(g);Yb(f);Yb(h)}a=J[j+204>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break b}k=Z()|0;break b}Ic(i);Yb(g);Yb(f);Yb(h);a=J[j+204>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a); -Ic(l);Ic(p);xb=j+448|0;return c|0}Ic(l);Ic(p);ba(k|0);B()}B()}function Lca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;j=xb-16|0;xb=j;k=((e<<2)+b|0)+(h<<2)|0;n=(P(g,10)|0)/4|0;o=(h<<1)+e|0;a:{if(f&3|e&1){if(!f|!e)break a;while(1){g=(f|0)==1;h=e;while(1){c=K[i+9|0];d=K[i+8|0];b:switch(h-1|0){default:if(!g){uc(J[a+68>>2],K[i+7|0],d,c,j+12|0,j+8|0,j+4|0);J[k+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}uc(J[a+68>>2],K[i+3|0],d,c,j+12| -0,j+8|0,j+4|0);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:if(!g){uc(J[a+68>>2],K[i+6|0],d,c,j+12|0,j+8|0,j+4|0);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}uc(J[a+68>>2],K[i+2|0],d,c,j+12|0,j+8|0,j+4|0);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:if(!g){uc(J[a+68>>2],K[i+5|0],d,c,j+12|0,j+8|0,j+4|0);J[k+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}uc(J[a+68>>2],K[i+1|0],d,c,j+12|0,j+8|0,j+4|0);J[b+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+ -4>>2]<<16|-16777216;break;case 0:break b}if(!g){uc(J[a+68>>2],K[i+4|0],d,c,j+12|0,j+8|0,j+4|0);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}uc(J[a+68>>2],K[i|0],d,c,j+12|0,j+8|0,j+4|0);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+10|0;c=(h>>>0>=4?4:h)<<2;b=c+b|0;k=c+k|0;c=h>>>0>4;h=h-4|0;if(c)continue;break}if(f>>>0<3)break a;i=i+n|0;f=f-2|0;c=o<<2;k=c+k|0;b=b+c|0;continue}}if(f>>>0<2)break a;d=e>>>2|0;while(1){c=d;while(1){e=K[i+8|0];g=K[i+9|0];h=j+12|0;l=j+8|0;m=j+4|0; -uc(J[a+68>>2],K[i|0],e,g,h,l,m);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+1|0],e,g,h,l,m);J[b+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+2|0],e,g,h,l,m);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+3|0],e,g,h,l,m);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+4|0],e,g,h,l,m);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+5|0],e,g,h,l,m);J[k+4>>2]=J[j+ -12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+6|0],e,g,h,l,m);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+7|0],e,g,h,l,m);J[k+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+10|0;k=k+16|0;b=b+16|0;c=c-1|0;if(c)continue;break}i=i+n|0;c=o<<2;k=c+k|0;b=b+c|0;f=f-2|0;if(f>>>0>1)continue;break}}xb=j+16|0}function QM(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;f=xb-16|0;xb=f;l=J[a+100>>2];J[f+8>>2]=0;c=Ab[J[a+ -516>>2]](a,1129333068,b,f+4|0)|0;J[f+12>>2]=c;a:{b:{if(c)break b;c=J[f+4>>2];c:{if(c>>>0<12)break c;c=Ne(b,c,f+8|0);J[f+12>>2]=c;if(c)break b;d=J[f+8>>2];m=f+12|0;k=tc(l,20,m);if(J[f+12>>2])break b;c=K[d|0]|K[d+1|0]<<8;c=c<<8|c>>>8;I[k>>1]=c;i=c&65535;if(i>>>0>1)break c;c=K[d+2|0]|K[d+3|0]<<8;h=c<<8|c>>>8;I[a+660>>1]=h;c=K[d+4|0]|K[d+5|0]<<8;e=c<<8|c>>>8;I[a+648>>1]=e;c=K[d+6|0]|K[d+7|0]<<8;n=c<<8|c>>>8;I[k+2>>1]=n;c=J[f+4>>2];o=e&65535;e=o<<1;if(c>>>0>>0)break c;g=K[d+8|0]|K[d+9|0]<<8|(K[d+ -10|0]<<16|K[d+11|0]<<24);j=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(j>>>0>=c>>>0)break c;g=n&65535;if(c-j>>>0>>0|g>>>0<(h&65535)>>>0)break c;d=d+12|0;J[k+8>>2]=d;g=J[f+8>>2];J[k+4>>2]=j+g;d:{if((i|0)!=1)break d;if(e+24>>>0>c>>>0)break c;d=d+e|0;j=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);i=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(h){if(c>>>0<=h>>>0|e>>>0>c-h>>>0)break c;d=Tb(l,2, -0,o,0,m);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+648>>1];if(c){m=d+(c<<1)|0;e=g+h|0;c=d;while(1){h=K[e|0]|K[e+1|0]<<8;I[c>>1]=h<<8|h>>>8;e=e+2|0;c=c+2|0;if(m>>>0>c>>>0)continue;break}}J[a+656>>2]=d;c=J[f+4>>2]}e=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);if(e){if(c>>>0<=e>>>0)break c;d=c-e|0;c=L[a+648>>1];if(d>>>0>>0)break c;d=Tb(l,2,0,c,0,f+12|0);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+648>>1];if(c){i=d+(c<<1)|0;e=e+g|0;c=d;while(1){h=K[e|0]|K[e+1|0]<<8;I[c>>1]=h<<8|h>>>8;e=e+2|0;c=c+2|0;if(i>>> -0>c>>>0)continue;break}}J[a+652>>2]=d;c=J[f+4>>2]}e=j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24);if(!e)break d;if(c>>>0<=e>>>0)break c;d=c-e|0;c=L[a+660>>1];if(d>>>0>>0)break c;d=Tb(l,2,0,c,0,f+12|0);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+660>>1];if(c){j=d+(c<<1)|0;e=e+g|0;c=d;while(1){i=K[e|0]|K[e+1|0]<<8;I[c>>1]=i<<8|i>>>8;e=e+2|0;c=c+2|0;if(j>>>0>c>>>0)continue;break}}J[a+664>>2]=d;c=J[f+4>>2]}J[k+16>>2]=c;J[k+12>>2]=g;J[a+868>>2]=k;e=0;p=a,q=Tb(l,4,0,L[a+660>>1],0,f+12|0),J[p+672>>2]=q;if(J[f+ -12>>2])break b;if(!Ev(a,0))break a}J[f+12>>2]=8}rd(b,f+8|0);if(k)Ab[J[l+8>>2]](l,k);J[a+868>>2]=0;e=J[f+12>>2]}xb=f+16|0;return e|0}function HM(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;k=3;a:{if((d|e)<0)break a;j=J[a+8>>2];f=J[a+12>>2];i=L[f+2>>1];if(M[j+4>>2]>>0)break a;f=L[f>>1];if(M[j>>2]>>0)break a;i=P(i,K[a+18|0]);if(P(i+7>>>3|0,f)+b>>>0>c>>>0)break a;a=J[j+12>>2];h=J[j+8>>2];j=d>>>3|0;c=(a+P(h,e)|0)+j|0;g=d&7;if(g){k=0;if(!f)break a;l=8-g|0; -if(i>>>0>=8)while(1){d=0;e=i;a=c;while(1){j=a;k=b;d=K[b|0]|d;H[a|0]=K[a|0]|d>>>g;m=e;e=e-8|0;a=a+1|0;b=b+1|0;d=d<<8;if((m|0)>15)continue;break}if((m|0)>8){d=K[k+1|0]&65280>>>e|d;b=k+2|0}H[a|0]=K[a|0]|d>>>g;if((e|0)>(l|0))H[j+2|0]=K[j+2|0]|d<<8>>>g;c=c+h|0;a=f;f=f-1|0;k=0;if((a|0)>1)continue;break a}d=65280>>>i|0;if(i>>>0>l>>>0){if((h|0)!=1){if(f&1){a=d&K[b|0];H[c|0]=K[c|0]|a>>>g;H[c+1|0]=K[c+1|0]|a<<8>>>g;c=c+h|0;b=b+1|0;a=f-1|0}else a=f;if((f|0)==1)break a;while(1){e=d&K[b|0];H[c|0]=K[c|0]|e>>>g; -H[c+1|0]=K[c+1|0]|e<<8>>>g;c=c+h|0;e=d&K[b+1|0];H[c|0]=K[c|0]|e>>>g;H[c+1|0]=K[c+1|0]|e<<8>>>g;b=b+2|0;c=c+h|0;e=a-3|0;a=a-2|0;if(e>>>0<4294967294)continue;break}break a}e=K[(a+j|0)+e|0];if(f&1){a=d&K[b|0];H[c|0]=a>>>g|e;e=K[c+1|0]|a<<8>>>g;H[c+1|0]=e;c=c+h|0;b=b+1|0;a=f-1|0}else a=f;if((f|0)==1)break a;while(1){f=e;e=d&K[b|0];H[c|0]=f|e>>>g;e=K[c+1|0]|e<<8>>>g;H[c+1|0]=e;c=c+h|0;f=d&K[b+1|0];H[c|0]=e|f>>>g;e=K[c+1|0]|f<<8>>>g;H[c+1|0]=e;b=b+2|0;c=c+h|0;f=a-3|0;a=a-2|0;if(f>>>0<4294967294)continue; -break}break a}if(!i)break a;if(f&1){H[c|0]=K[c|0]|(d&K[b|0])>>>g;c=c+h|0;b=b+1|0;a=f-1|0}else a=f;if((f|0)==1)break a;while(1){H[c|0]=K[c|0]|(d&K[b|0])>>>g;c=c+h|0;H[c|0]=K[c|0]|(d&K[b+1|0])>>>g;b=b+2|0;c=c+h|0;e=a-3|0;a=a-2|0;if(e>>>0<4294967294)continue;break}break a}k=0;if(!f)break a;if(i>>>0>=8)while(1){a=f;d=i;f=c;while(1){e=b;H[f|0]=K[b|0]|K[f|0];j=d;d=d-8|0;f=f+1|0;b=b+1|0;if((j|0)>15)continue;break}if((j|0)>8){H[f|0]=K[f|0]|K[e+1|0]&65280>>>d;b=e+2|0}c=c+h|0;f=a-1|0;if((a|0)>1)continue;break a}if(!i)break a; -a=65280>>>i|0;i=f&3;b:{if(!i){d=f;break b}e=0;d=f;while(1){H[c|0]=K[c|0]|a&K[b|0];c=c+h|0;d=d-1|0;b=b+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}if(f>>>0<4)break a;while(1){H[c|0]=K[c|0]|a&K[b|0];c=c+h|0;H[c|0]=K[c|0]|a&K[b+1|0];c=c+h|0;H[c|0]=K[c|0]|a&K[b+2|0];c=c+h|0;H[c|0]=K[c|0]|a&K[b+3|0];b=b+4|0;c=c+h|0;e=d-5|0;d=d-4|0;if(e>>>0<4294967294)continue;break}}return k|0}function gea(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,u=0,v=0,w=0,x=0, -y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;D=xb-224|0;xb=D;e=a;while(1){a:{d=J[(r<<2)+b>>2]+c|0;f=K[d+10|0];t=e;v=K[d+12|0];E=K[d+2|0];F=v+E|0;G=K[d+7|0];u=F+G|0;j=K[d+9|0];h=K[d+5|0];l=j+h|0;g=K[d+4|0];m=g+f|0;i=K[d+14|0];k=K[d|0];n=i+k|0;s=l+(m+n|0)|0;w=K[d+8|0];x=K[d+6|0];o=w+x|0;y=K[d+11|0];z=K[d+3|0];p=y+z|0;A=K[d+13|0];B=K[d+1|0];q=A+B|0;C=o+(p+q|0)|0;J[e>>2]=(u+(s+C|0)|0)-1920;d=k-i|0;g=g-f|0;f=h-j|0;i=B-A|0;j=z-y|0;h=x-w|0;J[e+12>>2]=(P(d-(g+f|0)|0,11018)+P(i-(j+h|0)|0,6810)|0)+4096>>13;k=u<<1;J[e+ -24>>2]=(P(s-k|0,9373)+P(C-k|0,-3580)|0)+4096>>13;k=E-v|0;s=P(k,10033);u=((P(d,-2912)+P(i,-17828)|0)-s|0)+P(f,-7121)|0;i=(P(f+j|0,4712)+P(g+i|0,11018)|0)+P(d-h|0,11522)|0;J[e+28>>2]=(u+i|0)+4096>>13;J[e+20>>2]=P(h+(f+(d-(j+k|0)|0)|0)|0,10033)+4096>>13;J[e+4>>2]=(i+(((s+P(j,3897)|0)+P(g,-4209)|0)+P(h,13930)|0)|0)+4096>>13;f=((P(q-m|0,6476)+P(n-p|0,11332)|0)+P(o-l|0,7752)|0)+4096|0;d=F+((m+q>>>1|0)-(G<<1)|0)|0;J[e+16>>2]=(f+P(l-d|0,6541)|0)+P(n-d|0,-748)>>13;J[e+8>>2]=(f+P(p-d|0,12543)|0)+P(o-d|0,-18336)>> -13;f=r-7|0;d=7;r=r+1|0;e=D;b:switch(f|0){case 0:continue;case 7:break a;default:break b}e=t+32|0;continue}break}while(1){f=J[e+128>>2];m=J[a>>2];n=J[e+192>>2];b=m-n|0;l=J[a+128>>2];p=J[e+64>>2];j=l-p|0;q=J[a+160>>2];o=J[e+32>>2];c=q-o|0;g=J[a+32>>2];i=J[e+160>>2];h=g-i|0;k=J[a+96>>2];s=J[e+96>>2];t=k-s|0;y=J[a+192>>2];z=J[e>>2];r=y-z|0;J[a+96>>2]=(P(b-(j+c|0)|0,12536)+P(h-(t+r|0)|0,7748)|0)+16384>>15;l=l+p|0;m=m+n|0;n=q+o|0;A=(l+m|0)+n|0;B=J[a+224>>2];w=J[a+64>>2];x=w+f|0;C=B+x|0;v=C<<1;o=y+z|0;p= -k+s|0;q=g+i|0;g=o+(p+q|0)|0;J[a+192>>2]=(P(A-v|0,10664)+P(g-v|0,-4073)|0)+16384>>15;J[a>>2]=P(C+(g+A|0)|0,9321)+16384>>15;f=w-f|0;g=P(f,11415);u=((P(b,-3314)+P(h,-20284)|0)-g|0)+P(c,-8102)|0;h=(P(c+t|0,5361)+P(h+j|0,12536)|0)+P(b-r|0,13109)|0;J[a+224>>2]=(u+h|0)+16384>>15;J[a+160>>2]=P(r+(c+(b-(f+t|0)|0)|0)|0,11415)+16384>>15;J[a+32>>2]=(h+(((g+P(t,4434)|0)+P(j,-4788)|0)+P(r,15850)|0)|0)+16384>>15;c=((P(q-l|0,7369)+P(m-p|0,12893)|0)+P(o-n|0,8820)|0)+16384|0;b=x+((l+q>>1)-(B<<1)|0)|0;J[a+128>>2]=(c+ -P(n-b|0,7442)|0)+P(m-b|0,-852)>>15;J[a+64>>2]=(c+P(p-b|0,14271)|0)+P(o-b|0,-20862)>>15;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b)continue;break}xb=D+224|0}function _H(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a=J[a-28>>2];c=vc(1,32);if(c)a:{e=xb-48|0;xb=e;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;H[e+21|0]=0;H[e+22|0]=0;H[e+23|0]=0;H[e+24|0]=0;H[e+25|0]=0;H[e+26|0]=0;H[e+27|0]=0;H[e+28|0]=0;J[195395]=0;J[e>>2]=0;J[e+ -4>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;I[e+44>>1]=0;J[e+40>>2]=65536;b=_(584,a|0)|0;f=J[195395];J[195395]=0;b:{c:{d:{e:{if((f|0)==1)break e;J[e+40>>2]=b;J[195395]=0;H[e+44|0]=1;b=ca(585,a|0,1886352244)|0;f=J[195395];J[195395]=0;if((f|0)==1)break e;J[195395]=0;d=ca(786,e|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break e;J[c>>2]=d;b=J[e+36>>2];if(b){J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break d;d=J[c>>2]}b=d?d:169776;f=J[b+16>>2];b=f>>>0<32?169776:J[b+12>>2];b=K[b|0]|K[b+1|0]<<8| -(K[b+2|0]<<16|K[b+3|0]<<24);J[c+4>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);f:{if((b|0)!=512)break f;b=J[c>>2];b=b?b:169776;g=M[b+16>>2]<32?169776:J[b+12>>2];b=g+32|0;J[c+8>>2]=b;d=K[g+32|0]|K[g+33|0]<<8;J[c+24>>2]=(b+(((d<<8|d>>>8)&65535)<<1)|0)+2;d=J[a+32>>2];if((d|0)==-1){J[195395]=0;d=_(582,a|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break c}a=J[c+12>>2];g:{if((a|0)<0)break g;b=f>>>3|0;d=b>>>0>d>>>0?d:b;if(d>>>0<=a>>>0)break g;b=a;while(1){b=((b>>>1|0)+b|0)+8|0;if(d>>>0>b>>>0)continue;break}h:{if(b>>> -0>=1073741824){b=a^-1;break h}a=ic(J[c+20>>2],b<<2);if(!a){a=J[c+12>>2];if(a>>>0>=b>>>0)break g;b=a^-1;break h}J[c+20>>2]=a}J[c+12>>2]=b}b=J[c+16>>2];if(b>>>0>65534)break f;d=J[c+24>>2];g=f+g|0;if(d>>>0>=g>>>0)break f;h=J[42444];while(1){if(g>>>0<=K[d|0]+d>>>0)break f;i=J[c+24>>2];a=J[c+12>>2];i:{j:{if((b|0)<(a|0))break j;k:{if((a|0)>=0){f=a;if(b>>>0>>0)break j;while(1){f=((f>>>1|0)+f|0)+8|0;if(f>>>0<=b>>>0)continue;break}if(f>>>0<=1073741823){a=ic(J[c+20>>2],f<<2);if(a)break k;a=J[c+12>>2];if(f>>> -0<=a>>>0)break j}J[c+12>>2]=a^-1}J[194120]=h;break i}J[c+12>>2]=f;J[c+20>>2]=a}a=J[c+16>>2];J[c+16>>2]=a+1;J[J[c+20>>2]+(a<<2)>>2]=d-i}b=J[c+16>>2];if(b>>>0>65534)break f;d=(K[d|0]+d|0)+1|0;if(g>>>0>d>>>0)continue;break}}xb=e+48|0;break a}d=Z()|0;ed(e);break b}ga(0)|0;_b();B()}d=Z()|0}if(J[c+12>>2]){J[c+16>>2]=0;Kb(J[c+20>>2])}J[c+20>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;ba(d|0);B()}return c}function lA(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{d=J[a>>2];b:{if(!d){a=J[a+16>>2];if(!a)break b;H[(a+J[J[a>>2]-12>> -2]|0)+33|0]=1;return}c=Pb(696);f=J[d>>2];J[195395]=0;e=ca(2127,c|0,f|0)|0;f=J[195395];J[195395]=0;if((f|0)==1){a=Z()|0;Kb(c);ba(a|0);B()}wf(e+4|0);J[e+16>>2]=J[d+16>>2];J[e+20>>2]=J[d+20>>2];J[e+24>>2]=J[d+24>>2];J[e+28>>2]=J[d+28>>2];J[e+404>>2]=J[d+404>>2];Rd(e+408|0,d+408|0);Rd(e+456|0,d+456|0);Rd(e+504|0,d+504|0);Rd(e+552|0,d+552|0);H[e+600|0]=K[d+600|0];H[e+601|0]=K[d+601|0];H[e+602|0]=K[d+602|0];H[e+603|0]=K[d+603|0];H[e+604|0]=K[d+604|0];H[e+605|0]=K[d+605|0];H[e+606|0]=K[d+606|0];H[e+607| -0]=K[d+607|0];J[e+608>>2]=J[d+608>>2];J[e+612>>2]=J[d+612>>2];J[e+616>>2]=J[d+616>>2];J[e+620>>2]=J[d+620>>2];J[e+624>>2]=J[d+624>>2];J[e+628>>2]=J[d+628>>2];O[e+640>>3]=O[d+640>>3];O[e+632>>3]=O[d+632>>3];J[e+648>>2]=J[d+648>>2];J[e+652>>2]=J[d+652>>2];J[e+656>>2]=J[d+656>>2];J[e+660>>2]=J[d+660>>2];J[e+664>>2]=J[d+664>>2];J[e+668>>2]=J[d+668>>2];J[e+672>>2]=J[d+672>>2];J[e+676>>2]=J[d+676>>2];f=J[d+684>>2];J[e+680>>2]=J[d+680>>2];J[e+684>>2]=f;J[e+688>>2]=J[d+688>>2];if((b|0)<0){c:{if(J[a+12>>2]){g= -J[J[a+4>>2]+16>>2];if((g|0)<0)break c}b=a+8|0;f=b;c=J[a+8>>2];d:{if(!c)break d;while(1){f=c;b=J[c+16>>2];if((b|0)>=0){b=c;c=J[c>>2];if(c)continue;break d}if((b|0)==-1)break b;c=J[f+4>>2];if(c)continue;break}b=f+4|0}c=Pb(24);J[c+16>>2]=-1;break a}d=g-1|0;b=a+8|0;f=b;c=J[a+8>>2];e:{if(!c)break e;while(1){f=c;b=J[c+16>>2];if((b|0)>=(g|0)){b=c;c=J[c>>2];if(c)continue;break e}if((b|0)>=(d|0))break b;c=J[f+4>>2];if(c)continue;break}b=f+4|0}c=Pb(24);J[c+16>>2]=d;break a}d=a+8|0;g=J[d>>2];f:{if(!g){f=d;break f}c= -d;f=g;while(1){h=J[f+16>>2]<(b|0);c=h?c:f;f=J[(h?f+4|0:f)>>2];if(f)continue;break}if(!((d|0)==(c|0)|J[c+16>>2]>(b|0))){a=J[c+20>>2];if(a){ch(a+32|0);qd(a+4|0);Kb(a)}J[c+20>>2]=e;return}while(1){f=g;c=J[f+16>>2];if((c|0)>(b|0)){d=f;g=J[d>>2];if(g)continue;break f}if((b|0)<=(c|0))break b;g=J[f+4>>2];if(g)continue;break}d=f+4|0}c=Pb(24);J[c+16>>2]=b;J[c+8>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+20>>2]=e;J[d>>2]=c;b=J[J[a+4>>2]>>2];if(b){J[a+4>>2]=b;c=J[d>>2]}Sh(J[a+8>>2],c);J[a+12>>2]=J[a+12>>2]+1}return}J[c+ -8>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+20>>2]=e;J[b>>2]=c;f=J[J[a+4>>2]>>2];if(f){J[a+4>>2]=f;c=J[b>>2]}Sh(J[a+8>>2],c);J[a+12>>2]=J[a+12>>2]+1}function UH(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;a:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<2)break a;b:switch(K[a|0]){case 0:i=J[b+12>>2];a=a+1|0;c=J[b+4>>2];if(i>>>0>>0|i>>>0>>0)break a;c=J[b+8>>2]-a|0;a=J[b+40>>2];if(c>>>0>>0)break a;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0|0;case 3:return RH(a+1|0,b,c)|0;case 4:break b; -default:break a}e=J[b+12>>2];d=a+1|0;f=J[b+4>>2];c:{d:{if(e>>>0>>0)break d;h=J[b+8>>2];if(h-d>>>0<4)break d;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);a=Kpa(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24),0,6,0);if(zb)break d;g=d+4|0;if(e>>>0>>0|a>>>0>h-g>>>0)break d;a=J[b+16>>2]-a|0;J[b+16>>2]=a;if((a|0)<=0)break d;e:{a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!a)break e;a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);j=a>>>0<=1?1:a;f=0;while(1){h=d+P(f,6)|0;e=h+4|0;a=0;if(M[b+12>>2]< -e-J[b+4>>2]>>>0)break c;a=0;if(J[b+8>>2]-e>>>0<6)break c;e=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);a=0;if(M[b+40>>2]<=(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))>>>0)break c;a=K[h+8|0]|K[h+9|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>>0){f=f+1|0;if((j|0)==(f|0))break e;continue}break}a=0;break c}a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!a|(K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24)))break d;f=1;c=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(c>>>0>1)while(1){g=169776;e=c;c=f-1|0;if(e>>> -0>c>>>0){g=(d+P(c,6)|0)+4|0;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24)}c=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);a=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0<=f>>>0?169776:(d+P(f,6)|0)+4|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0>=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0)break d;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);c=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);f=f+1|0;if(c>>>0>f>>>0)continue;break}c=J[b+12>>2];if(a)a= -(d+P(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24),6)|0)-2|0;else a=169776;a=a+6|0;if(c>>>0>2]>>>0|J[b+8>>2]-a>>>0<4)break d;b=J[b+40>>2];a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(a)a=(d+P(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24),6)|0)-2|0;else a=169776;a=K[a+6|0]|K[a+7|0]<<8|(K[a+8|0]<<16|K[a+9|0]<<24);i=(b|0)==(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))}a=i}f=a}return f|0}function Sla(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;g=xb-32|0;xb=g;if(nc(c, -b,105319,0)){o=wo(b,c,7,1,18,-1);k=J[c+68>>2];a:{if(!k)break a;h=k-1|0;i=J[c+80>>2];e=i+3|0;a=0;i=K[i+15|0];while(1){b:{if((a|0)==(h|0)){a=k;break b}a=a+1|0;if((i|0)==K[(e+P(a,20)|0)+12|0])continue}break}if(!k)break a;j=J[c+80>>2];d=K[j+15|0];e=0;while(1){i=a;c:{if(!(1<<(d&15)&167))break c;d:{if(a-e>>>0<2)break d;f=P(e,20)+j|0;if(K[f+18|0]!=18)break d;h=e+1|0;if(h>>>0>=a>>>0)break d;p=j+2|0;q=a-1|0;a=h;while(1){e:{f:{g:{n=P(a,20);l=K[(n+p|0)+16|0];if(l>>>0>63)break g;d=l&31;if((l&63)>>>0>=32){d=1<< -d;m=0}else{m=1<>>32-d}if(!(m&2143289344|d&57582))break g;d=-1;break f}d=0;h:{i:switch(l-44|0){default:if((l|0)!=12)break h;break;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break h;case 0:case 9:break i}d=!(K[(j+n|0)+12|0]&32)}d=d&1;if(!d&(a|0)!=(q|0))break e;d=0-d|0}d=d+a|0;a=d+1|0;if(a-e>>>0>=2)Kd(c,e,a);J[g+24>>2]=J[f+16>>2];a=J[f+12>>2];J[g+16>>2]=J[f+8>>2];J[g+20>>2]=a;a=J[f+4>>2];J[g+8>>2]=J[f>>2];J[g+12>>2]=a;qc(f,P(h,20)+j|0,P(d-e|0,20));h=P(d,20)+j|0;J[h+16>>2]=J[g+ -24>>2];a=J[g+20>>2];J[h+8>>2]=J[g+16>>2];J[h+12>>2]=a;a=J[g+12>>2];J[h>>2]=J[g+8>>2];J[h+4>>2]=a;break d}a=a+1|0;if((i|0)!=(a|0))continue;break}}if(e>>>0>=i>>>0)break c;h=j+2|0;d=e;while(1){a=P(e,20);f=a+j|0;j:{k:{l:{m:{a=K[(a+h|0)+16|0];switch(a-44|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break k;case 0:case 9:break l;default:break m}}if((a|0)!=12)break k}if(K[f+12|0]&32)break k;d=e+1|0;break j}if(!(1<>>0>31)break j;a=K[f+14|0];if(!(a&16)&(a&15)!=0|d>>>0>=e>>>0)break j; -a=e+1|0;if(a-d>>>0>=2)Kd(c,d,a);J[g+24>>2]=J[f+16>>2];a=J[f+12>>2];J[g+16>>2]=J[f+8>>2];J[g+20>>2]=a;a=J[f+4>>2];J[g+8>>2]=J[f>>2];J[g+12>>2]=a;f=P(d,20)+j|0;qc(f+20|0,f,P(e-d|0,20));J[f+16>>2]=J[g+24>>2];a=J[g+20>>2];J[f+8>>2]=J[g+16>>2];J[f+12>>2]=a;a=J[g+12>>2];J[f>>2]=J[g+8>>2];J[f+4>>2]=a}e=e+1|0;if((i|0)!=(e|0))continue;break}}e=J[c+68>>2];a=i+1|0;e=a>>>0>>0?e:a;f=e-1|0;j=J[c+80>>2];h=j+3|0;d=K[(P(i,20)+j|0)+15|0];a=i;while(1){n:{if((a|0)==(f|0)){a=e;break n}a=a+1|0;if(K[(h+P(a,20)|0)+12| -0]==(d|0))continue}break}e=i;if(k>>>0>e>>>0)continue;break}}nc(c,b,105953,0)}H[c+140|0]=K[c+140|0]&191;xb=g+32|0;return o|0}function Zfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;w=xb-352|0;xb=w;x=J[a+332>>2];b=J[b+84>>2];a=w;while(1){i=J[b+224>>2];q=I[c+112>>1];h=J[b+96>>2];k=I[c+48>>1];l=J[b+160>>2];m=I[c+80>>1];f=J[b+32>>2];p=I[c+16>>1];g=P(I[c>>1],J[b>>2])<<13|1024;n=P(J[b+192>>2],I[c+96>>1]);t=P(J[b+64>>2],I[c+ -32>>1]);o=n+t|0;j=P(J[b+128>>2],I[c+64>>1]);u=o-j|0;J[a+160>>2]=g+P(u,-11585)>>11;h=P(h,k);f=P(f,p);r=h+f|0;p=P(r,7274);k=P(l,m);l=P(k+f|0,5492);i=P(i,q);q=P(i+(k+r|0)|0,3264);m=g+P(u,11116)|0;u=P(j-n|0,20862);g=(m+u|0)+P(n,17333)|0;r=l+(p+P(f,-7562)|0)|0;f=q+P(i+f|0,3E3)|0;r=r+f|0;J[a+320>>2]=g-r>>11;J[a>>2]=g+r>>11;g=P(n,-6461);n=m+P(o,-9467)|0;o=g+n|0;g=l+P(k,-9766)|0;l=q+P(h+k|0,-9527)|0;g=g+l|0;J[a+256>>2]=o-g>>11;J[a+64>>2]=o+g>>11;m=m+P(j-t|0,3529)|0;o=m+P(t,-12399)|0;g=f;f=P(i+h|0,-14731); -g=g+(f+P(i,17223)|0)|0;J[a+224>>2]=o-g>>11;J[a+96>>2]=o+g>>11;n=n+(P(j,15929)+P(t,-11395)|0)|0;k=q+((P(k,8203)+P(h,-12019)|0)+P(i,-13802)|0)|0;J[a+192>>2]=n-k>>11;J[a+128>>2]=k+n>>11;j=u+(m+P(j,-14924)|0)|0;h=l+(f+(p+P(h,16984)|0)|0)|0;J[a+288>>2]=j-h>>11;J[a+32>>2]=h+j>>11;a=a+4|0;b=b+4|0;c=c+2|0;s=s+1|0;if((s|0)!=8)continue;break}a=x+128|0;b=w;n=0;while(1){j=J[b+12>>2];i=J[b+4>>2];c=j+i|0;p=P(c,7274);h=J[b+20>>2];l=P(h+i|0,5492);k=J[b+28>>2];t=P(k+(c+h|0)|0,3264);c=J[(n<<2)+d>>2]+e|0;x=t+P(i+k| -0,3E3)|0;o=x+((p+P(i,-7562)|0)+l|0)|0;r=(J[b>>2]<<13)+131072|0;f=J[b+24>>2];q=J[b+8>>2];u=f+q|0;i=J[b+16>>2];g=u-i|0;m=r+P(g,11116)|0;s=P(i-f|0,20862);v=(m+s|0)+P(f,17333)|0;H[c|0]=K[a+(o+v>>>18&1023)|0];H[c+10|0]=K[a+(v-o>>>18&1023)|0];o=m+P(i-q|0,3529)|0;s=(o+P(i,-14924)|0)+s|0;v=t+P(h+j|0,-9527)|0;y=p+P(j,16984)|0;p=P(k+j|0,-14731);y=v+(y+p|0)|0;H[c+1|0]=K[a+(s+y>>>18&1023)|0];H[c+9|0]=K[a+(s-y>>>18&1023)|0];l=v+(P(h,-9766)+l|0)|0;s=P(f,-6461);f=m+P(u,-9467)|0;m=s+f|0;H[c+2|0]=K[a+(l+m>>>18&1023)| -0];H[c+8|0]=K[a+(m-l>>>18&1023)|0];p=x+(p+P(k,17223)|0)|0;l=o+P(q,-12399)|0;H[c+3|0]=K[a+(p+l>>>18&1023)|0];H[c+7|0]=K[a+(l-p>>>18&1023)|0];j=t+((P(h,8203)+P(j,-12019)|0)+P(k,-13802)|0)|0;h=f+(P(i,15929)+P(q,-11395)|0)|0;H[c+4|0]=K[a+(j+h>>>18&1023)|0];H[c+6|0]=K[a+(h-j>>>18&1023)|0];H[c+5|0]=K[a+(r+P(g,268423871)>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=11)continue;break}xb=w+352|0}function Dea(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;d=J[a+420>>2];c=J[a+24>> -2];J[d+112>>2]=J[c>>2];J[d+116>>2]=J[c+4>>2];if(!(J[d+36>>2]|!J[a+236>>2]))Wn(d,J[d+40>>2]);a:{i=J[a+360>>2];l=J[a+364>>2];if((i|0)>(l|0))break a;p=J[b>>2];q=J[a+380>>2];m=J[a+372>>2];b=0;while(1){b:{c:{d:{c=I[(J[(i<<2)+q>>2]<<1)+p>>1];if(!c)break d;k=0-c>>>m|0;n=c>>>m|0;o=(c|0)<0;j=o?k:n;if(!j)break d;if(J[d+128>>2])cj(d);if((b|0)<16)break c;e:{if(!J[d+108>>2]){f=0;break e}c=J[((J[d+124>>2]<<2)+d|0)+92>>2];e=c;f=J[c+960>>2];c=(b-((b|0)>=31?31:b)|0)+15|0;J[e+960>>2]=(f+(c>>>4|0)|0)+1;b=(b-(c&-16)| -0)-16|0;break c}while(1){c=J[d+124>>2];f:{if(f){c=J[((c<<2)+d|0)+92>>2];J[c+960>>2]=J[c+960>>2]+1;break f}c=J[((c<<2)+d|0)+60>>2];f=J[c+960>>2];e=J[d+16>>2];c=H[c+1264|0];if(!c){g=J[d+120>>2];h=J[g>>2];J[h+20>>2]=41;Ab[J[h>>2]](g);if(J[d+108>>2])break f}f=f&(-1<>2]|f<<24-c;if((c|0)>=8)while(1){e=J[d+112>>2];J[d+112>>2]=e+1;H[e|0]=f>>>16;e=J[d+116>>2]-1|0;J[d+116>>2]=e;if(!e){g=J[d+120>>2];e=J[g+24>>2];if(!(Ab[J[e+12>>2]](g)|0)){g=J[d+120>>2];h=J[g>>2];J[h+20>>2]=25;Ab[J[h>> -2]](g)}J[d+112>>2]=J[e>>2];J[d+116>>2]=J[e+4>>2]}e=c;g:{if((f&16711680)!=16711680)break g;c=J[d+112>>2];J[d+112>>2]=c+1;H[c|0]=0;c=J[d+116>>2]-1|0;J[d+116>>2]=c;if(c)break g;g=J[d+120>>2];c=J[g+24>>2];if(!(Ab[J[c+12>>2]](g)|0)){g=J[d+120>>2];h=J[g>>2];J[h+20>>2]=25;Ab[J[h>>2]](g)}J[d+112>>2]=J[c>>2];J[d+116>>2]=J[c+4>>2]}c=e-8|0;f=f<<8;if((e|0)>15)continue;break}J[d+16>>2]=c;J[d+12>>2]=f}c=b-16|0;if((b|0)>31){f=J[d+108>>2];b=c;continue}break}b=c;break c}if((i|0)!=(l|0)){b=b+1|0;break b}if((b|0)<0)break a; -b=J[d+128>>2]+1|0;J[d+128>>2]=b;if((b|0)!=32767)break a;cj(d);break a}e=k^-1;f=1;h:{if(j>>>0<2)break h;while(1){c=f;f=c+1|0;k=j>>>0>3;j=j>>>1|0;if(k)continue;break}if(c>>>0<10)break h;c=J[a>>2];J[c+20>>2]=6;Ab[J[c>>2]](a)}e=o?e:n;b=(b<<4)+f|0;c=J[d+124>>2];i:{if(J[d+108>>2]){b=J[((c<<2)+d|0)+92>>2]+(b<<2)|0;J[b>>2]=J[b>>2]+1;break i}c=J[((c<<2)+d|0)+60>>2];bj(d,J[c+(b<<2)>>2],H[(b+c|0)+1024|0])}bj(d,e,f);b=0;if((i|0)==(l|0))break a}i=i+1|0;continue}}b=J[a+24>>2];J[b>>2]=J[d+112>>2];J[b+4>>2]=J[d+ -116>>2];a=J[a+236>>2];if(a){b=J[d+36>>2];if(b)a=b;else J[d+40>>2]=J[d+40>>2]+1&7;J[d+36>>2]=a-1}return 1}function IE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;if((d|0)<=0)return-5;J[e>>2]=0;p=65535;g=J[a+988>>2];if((g|0)>=16383){f=Ab[J[J[b>>2]+12>>2]](b,J[a+996>>2],1,16383,0,0)|0;J[a+992>>2]=f;if((f|0)<=16382)H[f+J[a+996>>2]|0]=255;J[a+988>>2]=0;g=0}a:{if(J[a+992>>2]<=(g|0))break a;J[a+988>>2]=g+1;p=65516;f=K[J[a+996>>2]+g|0];if(f-10>>>0< -4294967288)break a;p=0;J[a+1012>>2]=0;q=f+1|0;I[a+1E3>>1]=q;f=1<>1]=f;r=1<>1]=r;i=f+2|0;I[a+1010>>1]=i;I[a+1006>>1]=i;I[a+1004>>1]=f+1;Nb(J[a+1028>>2],0,4096);Nb(J[a+1036>>2],0,4096);Nb(J[a+1032>>2],0,4096);l=Pb(d+1|0);g=J[a+1028>>2];m=as(a,b);b:{if((m&65535)==L[a+1004>>1])break b;k=d;f=0;i=l;while(1){n=m<<16>>16;if((n|0)<0)break b;c:{d:{e:{if(L[a+1002>>1]==(m&65535)){I[a+1E3>>1]=q;I[a+1008>>1]=r;I[a+1010>>1]=L[a+1006>>1];while(1){f=as(a,b);h=f&65535;if((h|0)==L[a+1002>>1])continue; -break}if((h|0)==L[a+1004>>1])break c;h=(f|0)>1]?f:0;H[i|0]=h;k=k-1|0;if(k&65535){i=i+1|0;f=h;break d}if(!c){i=l;f=h;k=d;break d}i=l;f=h;k=d;if(!($r(a,c,l,d)&32768))break d;break e}o=J[a+1028>>2];j=m;s=I[a+1010>>1];f:{if((s|0)>(n|0))break f;if(o+4094>>>0<=g>>>0)break f;if((n|0)>(s|0))J[e>>2]=J[e>>2]+1;H[g|0]=h;g=g+1|0;o=J[a+1028>>2];j=f}g:{if(o+4094>>>0<=g>>>0|I[a+1006>>1]>j<<16>>16)break g;while(1){j=j<<16>>16;H[g|0]=K[j+J[a+1032>>2]|0];g=g+1|0;j=I[J[a+1036>>2]+(j<<1)>>1];if((j|0)> -1])break g;if(J[a+1028>>2]+4094>>>0>g>>>0)continue;break}}H[g|0]=j;o=I[a+1010>>1];n=I[a+1008>>1];h:{if((o|0)>=(n|0)){j=h;m=f;break h}H[J[a+1032>>2]+o|0]=j;h=I[a+1010>>1];I[a+1010>>1]=h+1;I[J[a+1036>>2]+(h<<1)>>1]=f;n=L[a+1008>>1];o=L[a+1010>>1]}g=g+1|0;i:{if(o<<16>>16>16)break i;f=I[a+1E3>>1];if((f|0)>11)break i;I[a+1E3>>1]=f+1;I[a+1008>>1]=n<<1}j:{if(M[a+1028>>2]>=g>>>0)break j;if(!c)while(1){g=g-1|0;H[i|0]=K[g|0];h=k-1|0;f=h&65535;k=f?h:d;i=f?i+1|0:l;if(M[a+1028>>2]>>0)continue;break j}while(1){g= -g-1|0;H[i|0]=K[g|0];k=k-1|0;k:{if(k&65535){i=i+1|0;break k}i=l;k=d;if($r(a,c,l,d)&32768)break e}if(M[a+1028>>2]>>0)continue;break}}h=j;f=m;break d}p=65535;break b}m=as(a,b);if((m&65535)!=L[a+1004>>1])continue}break}if(!c|(k&65535)==(d&65535))break b;p=$r(a,c,l,d-(k<<16>>16)|0)}Kb(l)}return p<<16>>16}function Gfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0;b=J[b+84>> -2];f=P(J[b+160>>2],I[c+80>>1]);h=P(J[b+32>>2],I[c+16>>1]);g=P(f+h|0,2998);l=J[d>>2]+e|0;a=J[a+332>>2]+128|0;m=P(J[b+96>>2],L[c+48>>1]);x=g+(m+h<<13)|0;y=P(P(I[c+32>>1],J[b+64>>2]),10033);r=P(I[c>>1],J[b>>2])<<13|1024;s=P(J[b+128>>2],I[c+64>>1]);z=r+P(s,5793)|0;A=y+z|0;B=(x+A<<2&-8192)+131072|0;i=P(J[b+168>>2],I[c+84>>1]);n=P(J[b+40>>2],I[c+20>>1]);t=P(i+n|0,2998);j=P(J[b+104>>2],I[c+52>>1]);C=t+(j+n<<13)|0;u=P(P(I[c+36>>1],J[b+72>>2]),10033);v=P(I[c+4>>1],J[b+8>>2])<<13|1024;k=P(J[b+136>>2],I[c+68>> -1]);D=v+P(k,5793)|0;E=u+D|0;w=C+E>>11;F=B+P(w,5793)|0;o=P(J[b+164>>2],I[c+82>>1]);p=P(J[b+36>>2],I[c+18>>1]);G=P(o+p|0,2998);q=P(J[b+100>>2],I[c+50>>1]);M=G+(q+p<<13)|0;N=P(P(I[c+34>>1],J[b+68>>2]),10033);O=P(I[c+2>>1],J[b+4>>2])<<13|1024;c=P(J[b+132>>2],I[c+66>>1]);Q=O+P(c,5793)|0;R=N+Q|0;b=P(M+R>>11,10033);H[l|0]=K[a+(F+b>>>18&1023)|0];H[l+2|0]=K[a+(F-b>>>18&1023)|0];H[l+1|0]=K[a+(B+P(w,268423870)>>>18&1023)|0];b=J[d+4>>2]+e|0;l=n-(i+j|0)<<2;n=v+P(k,-11586)>>11;k=l+n|0;h=h-(f+m|0)<<2;v=r+P(s,-11586)>> -11;w=(h+v<<13)+131072|0;s=P(k,5793)+w|0;p=p-(o+q|0)<<2;c=P(c,-11586)+O>>11;r=P(p+c|0,10033);H[b|0]=K[a+(s+r>>>18&1023)|0];H[b+2|0]=K[a+(s-r>>>18&1023)|0];H[b+1|0]=K[a+(w+P(k,268423870)>>>18&1023)|0];b=J[d+8>>2]+e|0;f=g+(f-m<<13)|0;g=z-y|0;m=(f+g<<2&-8192)+131072|0;i=(i-j<<13)+t|0;j=D-u|0;t=i+j>>11;u=m+P(t,5793)|0;o=(o-q<<13)+G|0;q=Q-N|0;k=P(o+q>>11,10033);H[b|0]=K[a+(u+k>>>18&1023)|0];H[b+2|0]=K[a+(u-k>>>18&1023)|0];H[b+1|0]=K[a+(m+P(t,268423870)>>>18&1023)|0];b=J[d+12>>2]+e|0;f=(g-f<<2&-8192)+131072| -0;i=j-i>>11;g=f+P(i,5793)|0;j=P(q-o>>11,10033);H[b|0]=K[a+(g+j>>>18&1023)|0];H[b+2|0]=K[a+(g-j>>>18&1023)|0];H[b+1|0]=K[a+(f+P(i,268423870)>>>18&1023)|0];b=J[d+16>>2]+e|0;h=(v-h<<13)+131072|0;f=n-l|0;g=h+P(f,5793)|0;c=P(c-p|0,10033);H[b|0]=K[a+(g+c>>>18&1023)|0];H[b+2|0]=K[a+(g-c>>>18&1023)|0];H[b+1|0]=K[a+(h+P(f,268423870)>>>18&1023)|0];b=J[d+20>>2]+e|0;d=(A-x<<2&-8192)+131072|0;c=E-C>>11;e=d+P(c,5793)|0;f=P(R-M>>11,10033);H[b|0]=K[a+(e+f>>>18&1023)|0];H[b+2|0]=K[a+(e-f>>>18&1023)|0];H[b+1|0]=K[a+ -(d+P(c,268423870)>>>18&1023)|0]}function ZC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=xb+-64|0;xb=f;c=J[a+12>>2];a:{b:{if(c&131072)break b;e=J[J[a+188>>2]+(b<<2)>>2];if(!e){e=J[a+628>>2];a=J[a>>2];J[f+8>>2]=b;J[f+4>>2]=0;J[f>>2]=a;Ob(e,276356,265477,f);d=0;break a}if(!(!(c&2048)|!((L[a+94>>1]|256)&c))){c:{if(!(c&512))break c;d=J[a+596>>2];if(!d)break c;Kb(d);c=J[a+12>>2]}c=c&-513;J[a+12>>2]=c;d=J[a+616>>2];g=J[a+184>>2]+(b<<2)|0;h=J[g>>2];if(!(e>>>0<=d>>>0&h>>>0<=d-e>>>0)){c=J[a+628>>2];g=J[a>> -2];J[f+60>>2]=e;J[f+56>>2]=d-h;J[f+52>>2]=b;J[f+48>>2]=g;Ob(c,276356,266020,f+48|0);J[a+480>>2]=-1;d=0;break a}J[a+600>>2]=e;J[a+596>>2]=J[a+612>>2]+J[g>>2];break b}d:{if(e>>>0<=M[a+600>>2]){g=J[a+596>>2];break d}J[a+480>>2]=-1;if(!(c&512)){e=J[a+628>>2];a=J[a>>2];J[f+20>>2]=b;J[f+16>>2]=a;Ob(e,276356,266630,f+16|0);d=0;break a}c=J[a+596>>2];if(c){Kb(c);J[a+596>>2]=0}c=e>>>0<4294966272?e+1023&-1024:0;c=(c|0)!=-1024?c:0;J[a+600>>2]=c;e:{if((c|0)<=0){J[a+12>>2]=J[a+12>>2]|512;break e}g=Qb(c);J[a+596>> -2]=g;J[a+12>>2]=J[a+12>>2]|512;if(!g)break e;if(J[a+600>>2])break d}b=J[a+628>>2];e=J[a>>2];J[f+36>>2]=J[a+472>>2];J[f+32>>2]=e;Ob(b,276384,269597,f+32|0);J[a+600>>2]=0;d=0;break a}c=e;d=xb+-64|0;xb=d;f:{if(!(K[a+13|0]&8)){h=b<<2;if((Ab[J[a+640>>2]](J[a+628>>2],J[h+J[a+184>>2]>>2],0)|0)!=J[h+J[a+184>>2]>>2]){c=J[a+628>>2];g=J[a>>2];h=J[a+472>>2];J[d+24>>2]=b;J[d+20>>2]=h;J[d+16>>2]=g;Ob(c,276356,271210,d+16|0);c=-1;break f}g=Ab[J[a+632>>2]](J[a+628>>2],g,c)|0;if((g|0)==(c|0))break f;h=J[a+628>>2]; -i=J[a>>2];j=J[a+472>>2];J[d+12>>2]=c;J[d+8>>2]=g;J[d+4>>2]=j;J[d>>2]=i;Ob(h,276356,271587,d);c=-1;break f}i=J[a+616>>2];h=J[J[a+184>>2]+(b<<2)>>2];if(i>>>0>>0){g=J[a+628>>2];j=J[a>>2];k=J[a+472>>2];J[d+48>>2]=c;J[d+44>>2]=i-h;J[d+40>>2]=b;J[d+36>>2]=k;J[d+32>>2]=j;Ob(g,276356,271919,d+32|0);c=-1;break f}Pc(g,J[a+612>>2]+h|0,c)}xb=d- -64|0;d=0;if((c|0)!=(e|0))break a;c=J[a+12>>2];if(c&(L[a+94>>1]|256))break b;ur(J[a+596>>2],e);c=J[a+12>>2]}if(!(c&32)){d=0;if(!(Ab[J[a+516>>2]](a)|0))break a;c= -J[a+12>>2]|32;J[a+12>>2]=c}J[a+480>>2]=b;d=J[a+176>>2];e=(b>>>0)/(d>>>0)|0;J[a+472>>2]=P(J[a+100>>2],b-P(d,e)|0);d=0;if(c&131072)b=0;else{d=J[a+596>>2];b=J[J[a+188>>2]+(b<<2)>>2]}J[a+608>>2]=b;J[a+604>>2]=d;d=Ab[J[a+520>>2]](a,e&65535)|0}xb=f- -64|0;return d}function ro(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;j=J[a+44>>2];m=j-262|0;d=J[a+116>>2];while(1){h=J[a+108>>2];i=J[a+60>>2]-(h+d|0)|0;if(J[a+44>>2]+m>>>0<=h>>>0){b=J[a+56>>2];Mb(b,b+j|0,j-i|0);J[a+112>>2]=J[a+112>>2]-j; -h=J[a+108>>2]-j|0;J[a+108>>2]=h;J[a+92>>2]=J[a+92>>2]-j;b=J[a+76>>2];g=b-1|0;e=J[a+68>>2]+(b<<1)|0;c=J[a+44>>2];d=0;k=b&3;if(k)while(1){e=e-2|0;l=L[e>>1];f=l-c|0;I[e>>1]=f>>>0<=l>>>0?f:0;b=b-1|0;d=d+1|0;if((k|0)!=(d|0))continue;break}if(g>>>0>=3)while(1){f=e-2|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-4|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-6|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;e=e-8|0;f=L[e>>1];d=f-c|0;I[e>>1]=d>>>0<=f>>>0?d:0;b=b-4|0;if(b)continue;break}e=J[a+64>>2]+(c<< -1)|0;d=0;b=c;g=c&3;if(g)while(1){e=e-2|0;k=L[e>>1];f=k-c|0;I[e>>1]=f>>>0<=k>>>0?f:0;b=b-1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(c-1>>>0>=3)while(1){f=e-2|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-4|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-6|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;e=e-8|0;f=L[e>>1];d=f-c|0;I[e>>1]=d>>>0<=f>>>0?d:0;b=b-4|0;if(b)continue;break}i=i+j|0}c=J[a>>2];d=J[c+4>>2];a:{if(!d)break a;e=d>>>0>>0?d:i;b=J[a+116>>2];if(i){i=J[a+56>>2];J[c+4>>2]=d-e;b=Mb(b+ -(i+h|0)|0,J[c>>2],e);b:{c:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:n=c,o=oh(J[c+48>>2],b,e),J[n+48>>2]=o;break b;case 1:break c;default:break b}n=c,o=Ad(J[c+48>>2],b,e),J[n+48>>2]=o}J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];b=J[a+116>>2]}d=b+e|0;J[a+116>>2]=d;e=J[a+5812>>2];d:{if(e+d>>>0<3)break d;c=J[a+108>>2]-e|0;i=J[a+56>>2];b=c+i|0;h=K[b|0];J[a+72>>2]=h;f=J[a+84>>2];g=h;h=J[a+88>>2];b=f&(K[b+1|0]^g<>2]=b;i=i+2|0;while(1){if(!e)break d;b=f&(K[c+i|0]^b<>2]=b;g=J[a+68>>2]+(b<<1)| -0;I[J[a+64>>2]+((J[a+52>>2]&c)<<1)>>1]=L[g>>1];I[g>>1]=c;e=e-1|0;J[a+5812>>2]=e;c=c+1|0;if(d+e>>>0>2)continue;break}}if(d>>>0>261)break a;if(J[J[a>>2]+4>>2])continue}break}e=J[a+60>>2];b=J[a+5824>>2];e:{if(e>>>0<=b>>>0)break e;c=J[a+116>>2]+J[a+108>>2]|0;f:{if(c>>>0>b>>>0){b=e-c|0;b=b>>>0>=258?258:b;Nb(c+J[a+56>>2]|0,0,b);b=b+c|0;break f}c=c+258|0;if(c>>>0<=b>>>0)break e;h=b+J[a+56>>2]|0;c=c-b|0;b=e-b|0;b=b>>>0>c>>>0?c:b;Nb(h,0,b);b=b+J[a+5824>>2]|0}J[a+5824>>2]=b}}function cJ(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}H[a+28|0]=0;c=b;J[a+36>>2]=c;e=J[c+12>>2];J[a+4>>2]=e;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0>67108863)d=1073741823;else{d=f<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{g:{if(f>>>0<78)break g;c=K[e|0]|K[e+1|0]<<8;if(!c)break f;d=J[a+12>>2];g=e+78|0;f=J[a+4>>2];if(d>>>0>>0)break g;h=J[a+8>>2];if(h-g>>>0<8)break g;c= -c<<8|c>>>8;if((c&65535)>>>0<2)break f;g=e+86|0;if(d>>>0>>0|h-g>>>0<10)break g;if((c&65535)>>>0<5)break f;c=e+96|0;if(d>>>0>>0)break g;if(h-c>>>0>3)break f}h:{if(K[a+28|0]|!J[a+32>>2])break h;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break h;while(1){H[a+28|0]=1;c=J[a+36>>2];e=J[c+12>>2];J[a+4>>2]=e;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0<=67108863){d=f<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}else d=1073741823;J[a+16>>2]=d;J[a+24>>2]=0;J[a>> -2]=0;if(!e)break b;i:{if(f>>>0<78)break i;c=K[e|0]|K[e+1|0]<<8;if(!c)break f;d=J[a+12>>2];g=e+78|0;f=J[a+4>>2];if(d>>>0>>0)break i;h=J[a+8>>2];if(h-g>>>0<8)break i;c=(c<<8|c>>>8)&65535;if(c>>>0<2)break f;g=e+86|0;if(d>>>0>>0|h-g>>>0<10)break i;if(c>>>0<5)break f;c=e+96|0;if(d>>>0>>0)break i;if(h-c>>>0>=4)break f}if(K[a+28|0]|!J[a+32>>2])break h;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+ -32>>2])break d;J[a+32>>2]=0;c=1;d=J[a+12>>2];f=J[a+4>>2];j:{if(d>>>0>>0)break j;h=J[a+8>>2];if(h-e>>>0<78)break j;g=K[e|0]|K[e+1|0]<<8;k:{if(!g)break k;i=e+78|0;if(d>>>0>>0|h-i>>>0<8)break j;g=g<<8|g>>>8;if((g&65535)>>>0<2)break k;i=e+86|0;if(d>>>0>>0|h-i>>>0<10)break j;if((g&65535)>>>0<5)break k;e=e+96|0;if(d>>>0>>0|h-e>>>0<4)break j}c=0}e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(!c)break c}Ub(b);return 169776}Ub(J[a+36>>2]); -J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function Lfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;x=xb-512|0;xb=x;s=J[a+332>>2];b=J[b+84>>2];a=x;while(1){l=P(J[b+64>>2],I[c+32>>1]);n=P(J[b+192>>2],I[c+96>>1]);i=l-n|0;p=P(i,11363);k=P(J[b+96>>2],I[c+48>>1]);j=P(J[b+32>>2],I[c+16>>1]); -g=P(k+j|0,11086);q=p+P(n,20995)|0;o=P(J[b+128>>2],I[c+64>>1]);t=P(o,10703);h=P(I[c>>1],J[b>>2])<<13|1024;u=t+h|0;r=q+u|0;f=P(J[b+224>>2],I[c+112>>1]);y=P(f+j|0,8956);m=P(J[b+160>>2],I[c+80>>1]);z=m+j|0;v=P(z,10217);w=y+(v+(g+P(j,-18730)|0)|0)|0;J[a+480>>2]=r-w>>11;J[a>>2]=r+w>>11;i=P(i,2260);r=i+P(l,7373)|0;o=P(o,4433);w=o+h|0;A=r+w|0;B=f+k|0;C=P(B,-5461);D=P(k+m|0,1136);g=C+(D+(g+P(k,589)|0)|0)|0;J[a+448>>2]=A-g>>11;J[a+32>>2]=g+A>>11;l=p+P(l,-4926)|0;p=h-o|0;g=l+p|0;o=P(f+m|0,-11086);v=o+(v+(P(m, --9222)+D|0)|0)|0;J[a+416>>2]=g-v>>11;J[a+64>>2]=g+v>>11;n=i+P(n,-4176)|0;h=h-t|0;g=n+h|0;i=o+((P(f,8728)+C|0)+y|0)|0;J[a+384>>2]=g-i>>11;J[a+96>>2]=g+i>>11;h=h-n|0;g=P(j-f|0,7350);n=P(B,-10217);i=g+(n+P(f,25733)|0)|0;f=P(f-m|0,3363);i=i+f|0;J[a+352>>2]=h-i>>11;J[a+128>>2]=h+i>>11;h=p-l|0;l=P(z,5461);i=P(m,-6278);m=P(m-k|0,11529);f=f+(l+(i+m|0)|0)|0;J[a+320>>2]=h-f>>11;J[a+160>>2]=f+h>>11;f=w-r|0;h=P(k,16154);k=P(j-k|0,3363);m=n+(m+(h+k|0)|0)|0;J[a+288>>2]=f-m>>11;J[a+192>>2]=f+m>>11;f=u-q|0;k=g+(l+ -(k+P(j,-15038)|0)|0)|0;J[a+256>>2]=f-k>>11;J[a+224>>2]=f+k>>11;a=a+4|0;b=b+4|0;c=c+2|0;E=E+1|0;if((E|0)!=8)continue;break}b=s+128|0;a=x;k=0;while(1){j=J[a+4>>2];f=J[a+28>>2];m=P(j+f|0,-7373);h=J[a+20>>2];g=h+j|0;l=J[a+12>>2];s=l+f|0;n=P(g+s|0,9633);i=J[a+24>>2];q=J[a+8>>2];p=P(i+q|0,4433);c=J[(k<<2)+d>>2]+e|0;o=m+P(j,12299)|0;j=n+P(g,-3196)|0;g=o+j|0;o=J[a>>2]+16|0;t=J[a+16>>2];u=o+t<<13;q=p+P(q,6270)|0;r=u+q|0;H[c|0]=K[b+(g+r>>>18&1023)|0];H[c+7|0]=K[b+(r-g>>>18&1023)|0];n=n+P(s,-16069)|0;g=P(l, -25172);l=P(h+l|0,-20995);g=n+(g+l|0)|0;s=o-t<<13;p=p+P(i,-15137)|0;i=s+p|0;H[c+1|0]=K[b+(g+i>>>18&1023)|0];H[c+6|0]=K[b+(i-g>>>18&1023)|0];j=j+(l+P(h,16819)|0)|0;h=s-p|0;H[c+2|0]=K[b+(j+h>>>18&1023)|0];H[c+5|0]=K[b+(h-j>>>18&1023)|0];j=n+(m+P(f,2446)|0)|0;f=u-q|0;H[c+3|0]=K[b+(j+f>>>18&1023)|0];H[c+4|0]=K[b+(f-j>>>18&1023)|0];a=a+32|0;k=k+1|0;if((k|0)!=16)continue;break}xb=x+512|0}function Hs(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-16|0;xb=f;J[f+12>>2]=b;J[f+8>>2]=a;a=0;b=f+8|0;a:{if(!b)break a; -a=J[b>>2];b=J[b+4>>2];c=a;if(!a){a=b>>31;a=(a^b)-a|0;break a}a=c>>31;a=(a^c)-a|0;if(b){d=b>>31;i=a|(d^b)-d;g=S(i);j=g-2|0;b:{if(i>>>0<=1073741823){a=b<>b;b=c>>b}e=0-a|0;c=0-b|0;c:{if((a|0)>(b|0)){b=(a|0)>(c|0);d=b?c:e;a=b?a:c;break c}d=a;a=(a|0)<(c|0);d=a?b:d;a=a?e:b}b=d+1>>1;c=(d|0)>0;b=a+(c?b:0-b|0)|0;a=a+1>>1;a=(c?0-a|0:a)+d|0;c=a+2>>2;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+2>>2;a=a+(d?0-b|0:b)|0;b=a+4>>3;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+4>>3;a=a+(d?0-c|0:c)|0;c=a+8>> -4;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+8>>4;a=a+(d?0-b|0:b)|0;b=a+16>>5;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+16>>5;a=a+(d?0-c|0:c)|0;c=a+32>>6;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+32>>6;a=a+(d?0-b|0:b)|0;b=a- -64>>7;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c- -64>>7;a=a+(d?0-c|0:c)|0;c=a+128>>8;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+128>>8;a=a+(d?0-b|0:b)|0;b=a+256>>9;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+256>>9;a=a+(d?0-c|0:c)|0;c=a+512>>10;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+512>>10;a=a+(d?0-b|0:b)|0;b=a+1024>>11;d=(a|0)>0;b=c+(d?b:0-b| -0)|0;c=c+1024>>11;a=a+(d?0-c|0:c)|0;c=a+2048>>12;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+2048>>12;a=a+(d?0-b|0:b)|0;b=a+4096>>13;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+4096>>13;a=a+(d?0-c|0:c)|0;c=a- -8192>>14;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b- -8192>>14;a=a+(d?0-b|0:b)|0;b=a+16384>>15;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+16384>>15;a=a+(d?0-c|0:c)|0;c=a+32768>>16;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+32768>>16;a=a+(d?0-b|0:b)|0;b=a+65536>>17;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+65536>>17;a=a+(d?0-c|0:c)|0;c=a+131072>>18;d=(a|0)> -0;c=b+(d?c:0-c|0)|0;b=b+131072>>18;a=a+(d?0-b|0:b)|0;b=a+262144>>19;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+262144>>19;a=a+(d?0-c|0:c)|0;c=a+524288>>20;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+524288>>20;a=a+(d?0-b|0:b)|0;b=a- -1048576>>21;d=c- -1048576>>21;h=0-d|0;e=d;d=(a|0)>0;e=a+(d?h:e)|0;a=e+2097152>>22;a=(c+(d?b:0-b|0)|0)+((e|0)>0?a:0-a|0)|0;b=a>>31;c=(a^b)-b|0;d=c&65535;b=P(d,56281);e=c>>>16|0;c=b+P(e,23318)|0;h=c<<16;d=h+P(d,23318)|0;b=(((P(e,56281)+(c>>>16|0)|0)+((b>>>0>c>>>0)<<16)|0)+(d>>>0>>0)|0)+(d>>> -0>3221225471)|0;b=(a|0)<0?0-b|0:b;a=b+(1<>j;if(i>>>0<=536870911)break a;a=b<<2-g}}xb=f+16|0;return a}function AM(a){a=a|0;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;m=xb-16|0;xb=m;h=J[a+12>>2];j=J[a+200>>2];b=J[a+196>>2];l=I[a+32>>1];a:{if(l){if(M[h+8>>2]>1]+(I[h+20>>1]+l|0)>>>0){c=ie(h,0,l);if(c)break a}c=20;if((l|0)>4094)break a}c=20;e=l<<1;if((e+b|0)+2>>>0>j>>>0)break a;d=J[h+68>>2];i=K[b|0]<<8;g=i|K[b+1|0];if((l|0)>0)I[d>>1]=g;if(i<<16>>16<0)break a;i=d+e|0; -while(1){e=d+2|0;if(e>>>0>>0){d=K[b+2|0]|K[b+3|0]<<8;f=d<<8|d>>>8;I[e>>1]=f;k=g<<16>>16;d=e;e=f<<16>>16;g=e;b=b+2|0;if((e|0)>(k|0))continue;break a}break}f=J[h+4>>2];e=I[h+58>>1];if((l|0)<=0)d=0;else{d=I[d>>1];if((d|0)<-1)break a;d=d+1|0}i=d;d=i+4|0;if(f>>>0>1]|0)>>>0){c=ie(h,d,0);if(c)break a}d=J[a+8>>2];J[d+136>>2]=0;J[d+140>>2]=0;e=b+4|0;if(e>>>0>j>>>0){c=20;break a}b=K[b+2|0]|K[b+3|0]<<8;b=b<<8|b>>>8;b:{c:{d:{e:{if(K[a+16|0]&2){d=b&65535;break e}b=b&65535;d=b;if((b|0)>(j-e|0))break d; -c=J[a+156>>2];J[m+12>>2]=J[c+392>>2];c=iv(J[c+8>>2],m+12|0,c+396|0,b);g=J[a+156>>2];J[g+392>>2]=L[m+12>>1];if(c)break a;c=J[a+8>>2];J[c+140>>2]=b;f=c;c=J[g+396>>2];J[f+136>>2]=c;if(!b)break e;Mb(c,e,b)}b=d+e|0;e=J[h- -64>>2];if((i|0)>0){g=e+i|0;while(1){c=b+1|0;if(c>>>0>j>>>0){c=20;break a}f=K[b|0];H[e|0]=f;d=e+1|0;f:{if(!(f&8)){b=c;break f}b=b+2|0;if(j>>>0>>0){c=20;break a}c=K[c|0];if(g>>>0>>0){c=20;break a}if(!c)break f;Nb(d,f,c);d=((c-1&255)+e|0)+2|0}e=d;if(g>>>0>d>>>0)continue;break}e= -J[h+64>>2]}if(!(!i|!(K[e|0]&64)))J[h+36>>2]=J[h+36>>2]|64;if(b>>>0>j>>>0){c=20;break a}if((i|0)<=0)break b;c=J[h+60>>2];o=c+(i<<3)|0;g=c;d=e;while(1){n=K[d|0];g:{if(n&2){f=b+1|0;if(f>>>0>j>>>0){c=20;break a}b=K[b|0];k=n&16?b:0-b|0;b=f;break g}k=0;if(n&16)break g;f=b+2|0;if(f>>>0>j>>>0){c=20;break a}b=K[b|0]|K[b+1|0]<<8;k=(b<<8|b>>>8)<<16>>16;b=f}p=k+p|0;J[g>>2]=p;d=d+1|0;g=g+8|0;if(o>>>0>g>>>0)continue;break}break c}c=22;break a}k=0;if((i|0)<=0)break b;while(1){f=K[e|0];h:{if(f&4){d=b+1|0;if(d>>> -0>j>>>0){c=20;break a}b=K[b|0];g=f&32?b:0-b|0;b=d;break h}g=0;if(f&32)break h;d=b+2|0;if(d>>>0>j>>>0){c=20;break a}b=K[b|0]|K[b+1|0]<<8;g=(b<<8|b>>>8)<<16>>16;b=d}k=g+k|0;J[c+4>>2]=k;H[e|0]=f&1;e=e+1|0;c=c+8|0;if(o>>>0>c>>>0)continue;break}}I[h+56>>1]=l;I[h+58>>1]=i;J[a+196>>2]=b;c=0}xb=m+16|0;return c|0}function hv(a,b){var c=0,d=0,e=0,f=0;f=J[J[a>>2]+96>>2];e=J[J[a+8>>2]+140>>2];if((e|0)>0)Mb(J[a+132>>2],J[a+136>>2],L[a+128>>1]<<3);Mb(J[a+156>>2]+288|0,J[a+4>>2]+180|0,68);a:{if(b){c=J[a+156>>2]; -J[c+224>>2]=65536;J[c+228>>2]=65536;Mb(J[a+140>>2],J[a+136>>2],L[a+128>>1]<<3);break a}c=J[a+156>>2];d=J[J[a+4>>2]+44>>2];J[c+224>>2]=J[d+4>>2];J[c+228>>2]=J[d+8>>2]}c=J[a+136>>2]+(L[a+128>>1]<<3)|0;d=c-32|0;J[d>>2]=J[d>>2]+32&-64;d=c-24|0;J[d>>2]=J[d>>2]+32&-64;d=c-12|0;J[d>>2]=J[d>>2]+32&-64;c=c-4|0;J[c>>2]=J[c>>2]+32&-64;b:{if((e|0)>0){d=J[J[a+12>>2]- -64>>2];c=J[a+156>>2];H[c+564|0]=b;J[c+468>>2]=e;J[c+464>>2]=J[c+396>>2];b=J[a+124>>2];J[c+144>>2]=J[a+120>>2];J[c+148>>2]=b;b=J[a+132>>2];J[c+152>> -2]=J[a+128>>2];J[c+156>>2]=b;b=J[a+140>>2];J[c+160>>2]=J[a+136>>2];J[c+164>>2]=b;b=J[a+148>>2];J[c+168>>2]=J[a+144>>2];J[c+172>>2]=b;J[c+176>>2]=J[a+152>>2];b=J[a+156>>2];J[b+356>>2]=3;J[b+364>>2]=0;c=J[b+148>>2];J[b+36>>2]=J[b+144>>2];J[b+40>>2]=c;J[b+68>>2]=J[b+176>>2];c=J[b+172>>2];J[b+60>>2]=J[b+168>>2];J[b+64>>2]=c;c=J[b+164>>2];J[b+52>>2]=J[b+160>>2];J[b+56>>2]=c;c=J[b+156>>2];J[b+44>>2]=J[b+152>>2];J[b+48>>2]=c;J[b+368>>2]=J[b+468>>2];J[b+360>>2]=J[b+464>>2];c=J[b+148>>2];J[b+72>>2]=J[b+144>> -2];J[b+76>>2]=c;c=J[b+156>>2];J[b+80>>2]=J[b+152>>2];J[b+84>>2]=c;c=J[b+164>>2];J[b+88>>2]=J[b+160>>2];J[b+92>>2]=c;c=J[b+172>>2];J[b+96>>2]=J[b+168>>2];J[b+100>>2]=c;J[b+104>>2]=J[b+176>>2];J[b+140>>2]=J[b+176>>2];c=J[b+172>>2];J[b+132>>2]=J[b+168>>2];J[b+136>>2]=c;c=J[b+164>>2];J[b+124>>2]=J[b+160>>2];J[b+128>>2]=c;c=J[b+156>>2];J[b+116>>2]=J[b+152>>2];J[b+120>>2]=c;c=J[b+148>>2];J[b+108>>2]=J[b+144>>2];J[b+112>>2]=c;I[b+352>>1]=1;J[b+348>>2]=65537;I[b+298>>1]=16384;I[b+300>>1]=0;I[b+302>>1]=16384; -I[b+304>>1]=0;J[b+316>>2]=1;I[b+294>>1]=16384;I[b+296>>1]=0;J[b+308>>2]=1;J[b+432>>2]=0;J[b+16>>2]=0;b=Ab[J[J[b>>2]+708>>2]](b)|0;c=J[a+156>>2];if(K[c+565|0]?b:0)break b;H[d|0]=K[d|0]|K[c+344|0]<<5|4}if(J[f+64>>2]==40){b=0;if(K[J[a+156>>2]+615|0])break b}b=J[a+136>>2]+(L[a+128>>1]<<3)|0;c=b-32|0;e=J[c+4>>2];J[a+68>>2]=J[c>>2];J[a+72>>2]=e;c=b-24|0;e=J[c+4>>2];J[a+76>>2]=J[c>>2];J[a+80>>2]=e;c=b-16|0;e=J[c+4>>2];J[a+180>>2]=J[c>>2];J[a+184>>2]=e;b=b-8|0;c=J[b+4>>2];J[a+188>>2]=J[b>>2];J[a+192>>2]= -c;b=0}return b}function Fca(a,b,c,d,e,f,g,h,i){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;var j=0,k=Q(0),l=Q(0),m=0,n=Q(0),o=0,p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=Q(0),w=0,x=Q(0),y=Q(0),z=Q(0),A=Q(0),B=Q(0),C=Q(0);c=xb-32|0;xb=c;if(!(!f|!e)){d=P(g,3);w=h<<2;while(1){f=f-1|0;g=e;while(1){h=J[a+72>>2];j=H[i+1|0];m=H[i+2|0];k=Q(Q(Q(K[i|0])*Q(100))/Q(255));a:{if(k>2])/Q(903.2919921875));N[c+24>>2]=k;k=Q(Q(Q(k/N[h+20>>2])*Q(7.7870001792907715))+ -Q(.13793103396892548));break a}k=Q(Q(k+Q(16))/Q(116));N[c+24>>2]=k*Q(k*Q(k*N[h+20>>2]))}p=N[h+16>>2];l=Q(Q(Q(j|0)/Q(500))+k);b:{if(l>2]=l;l=N[h+24>>2];k=Q(k+Q(Q(m|0)/Q(-200)));c:{if(k>2]=Q(Q(k+Q(-.1379300057888031))*l)/Q(7.7870001792907715);break c}N[c+20>>2]=k*Q(k*Q(k*l))}h=J[a+72>>2];p=N[h+72>>2];k=N[h+96>>2];x=N[h+60>>2];y=N[h+52>>2];z=N[h+56>>2];u=N[h+ -68>>2];l=N[h+92>>2];A=N[h+48>>2];B=N[h+40>>2];C=N[h+44>>2];m=J[h>>2];r=N[c+20>>2];s=N[c+28>>2];t=N[c+24>>2];q=Q(Q(N[h+36>>2]*r)+Q(Q(N[h+28>>2]*s)+Q(N[h+32>>2]*t)));n=N[h+88>>2];q=n>2];n=Q(Q((q>2]);d:{if(Q(R(n))(m|0)?m:j)<<2)+h|0)+112>>2];o=(n>Q(0)?.5:-.5)+ +n;e:{if(o<4294967296&o>=0){j=~~o>>>0;break e}j=0}J[c+16>>2]=j;m=J[h>>2];n=Q(Q(A*r)+Q(Q(B*s)+Q(C*t)));n=l>2]);f:{if(Q(R(l))< -Q(2147483648)){j=~~l;break f}j=-2147483648}l=N[((((j|0)>(m|0)?m:j)<<2)+h|0)+6116>>2];o=(l>Q(0)?.5:-.5)+ +l;g:{if(o<4294967296&o>=0){j=~~o>>>0;break g}j=0}J[c+12>>2]=j;m=J[h>>2];l=Q(Q(x*r)+Q(Q(y*s)+Q(z*t)));l=k>2]);h:{if(Q(R(k))(m|0)?m:j)<<2)+h|0)+12120>>2];o=(k>Q(0)?.5:-.5)+ +k;i:{if(o<4294967296&o>=0){j=~~o>>>0;break i}j=0}J[c+8>>2]=j;j=J[c+16>>2];m=J[h+76>>2];J[c+16>>2]=j>>>0>>0?j:m;j=J[c+12>>2];m=J[h+80>> -2];J[c+12>>2]=j>>>0>>0?j:m;j=J[c+8>>2];h=J[h+84>>2];J[c+8>>2]=h>>>0>j>>>0?j:h;J[b>>2]=J[c+16>>2]|J[c+12>>2]<<8|J[c+8>>2]<<16|-16777216;i=i+3|0;b=b+4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+w|0;if(f)continue;break}}xb=c+32|0}function NC(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=(d|0)<=0;g=0;a:{if(k)break a;g=0;if(H[b|0]<0)break a;e=b;f=d;b:{c:{d:{if(d>>>0<64)break d;e:{if(!(e&3))break e;f:{e=K[e|0];if(e)break f;g=d-8|0;e=b+1|0;g:{if(!(e&3)){f=g;g=d;h=8;break g}i=8;e=K[e|0];if(e)break f;h=d-16| -0;e=b+2|0;if(!(e&3)){f=h;h=16;break g}i=16;e=K[e|0];if(e)break f;g=d-24|0;e=b+3|0;if(!(e&3)){f=g;g=h;h=24;break g}i=24;e=K[e|0];if(e)break f;e=b+4|0;f=d-32|0;h=32}if((g|0)>39)break e;break d}g=K[e+287328|0]+i|0;break a}i=f;while(1){if(J[e>>2]){f=i;break c}e=e+4|0;h=h+32|0;g=(i|0)>63;f=i-32|0;i=f;if(g)continue;break}}if((f|0)<8)break b}i=f;while(1){f=K[e|0];if(f){g=K[f+287328|0]+h|0;break a}e=e+1|0;h=h+8|0;g=(i|0)>15;f=i-8|0;i=f;if(g)continue;break}}g=h;if((f|0)<=0)break a;g=K[K[e|0]+287328|0];g=((f| -0)<(g|0)?f:g)+h|0}i=g;h:{if(k)break h;h=0;if(H[c|0]<0)break h;e=c;f=d;i:{j:{k:{if(d>>>0<64)break k;l:{if(!(e&3))break l;m:{e=K[e|0];if(e)break m;g=d-8|0;e=c+1|0;n:{if(!(e&3)){f=g;g=d;h=8;break n}j=8;e=K[e|0];if(e)break m;h=d-16|0;e=c+2|0;if(!(e&3)){f=h;h=16;break n}j=16;e=K[e|0];if(e)break m;g=d-24|0;e=c+3|0;if(!(e&3)){f=g;g=h;h=24;break n}j=24;e=K[e|0];if(e)break m;e=c+4|0;f=d-32|0;h=32}if((g|0)>39)break l;break k}j=K[e+287328|0]+j|0;break h}j=f;while(1){if(J[e>>2]){f=j;break j}e=e+4|0;h=h+32|0; -g=(j|0)>63;f=j-32|0;j=f;if(g)continue;break}}if((f|0)<8)break i}j=f;while(1){f=K[e|0];if(f){j=K[f+287328|0]+h|0;break h}e=e+1|0;h=h+8|0;g=(j|0)>15;f=j-8|0;j=f;if(g)continue;break}}if((f|0)<=0){j=h;break h}g=K[K[e|0]+287328|0];j=((f|0)<(g|0)?f:g)+h|0}h=0;while(1){e=d;if(j>>>0>>0){o:{if(K[(j>>>3|0)+c|0]>>>((j^-1)&7)&1){f=$j(c,j,e);break o}f=bk(c,j,d)}e=f+j|0}p:{if(e>>>0>=i>>>0){f=(j-i|0)+3|0;if(f>>>0>=7){e=d;if(i>>>0>>0){q:{if(K[(i>>>3|0)+b|0]>>>((i^-1)&7)&1){f=$j(b,i,e);break q}f=bk(b,i,d)}e= -f+i|0}bg(a,1,3);r:{if((0-i|0)!=(h|0))if(K[(h>>>3|0)+b|0]>>>((h^-1)&7)&1)break r;ak(a,i-h|0,285632);ak(a,e-i|0,286288);break p}ak(a,i-h|0,286288);ak(a,e-i|0,285632);break p}f=P(f,6);bg(a,L[f+287842>>1],L[f+287840>>1]);e=i;break p}bg(a,1,4)}if(d>>>0>e>>>0){s:{if(K[(e>>>3|0)+b|0]>>>((e^-1)&7)&1){i=$j(b,e,d);j=bk(c,e,d)+e|0;f=$j(c,j,d);break s}i=bk(b,e,d);j=$j(c,e,d)+e|0;f=bk(c,j,d)}j=f+j|0;i=e+i|0;h=e;continue}break}}function d0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=xb-96|0;xb=a;if(J[b+16>> -2]==1){J[a+92>>2]=J[b+4>>2];J[a+88>>2]=J[b+8>>2];b=a+72|0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=428736;J[195395]=0;d=a+12|0;ea(1118,d|0);e=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((e|0)!=1){J[195395]=0;d=ca(1858,d|0,406696)|0;e=J[195395];J[195395]=0;if((e|0)==1)break k;J[a+32>>2]=J[d+8>>2];e=J[d+4>>2];J[a+24>>2]=J[d>>2];J[a+28>>2]=e;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[195395]=0;$(2102,a|0,J[a+88>>2]);d=J[195395];J[195395]=0;if((d|0)==1)break j;J[195395]=0;d=K[a+11|0];e=d<< -24>>24<0;d=aa(1864,a+24|0,(e?J[a>>2]:a)|0,(e?J[a+4>>2]:d)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break i;J[a+48>>2]=J[d+8>>2];e=J[d+4>>2];J[a+40>>2]=J[d>>2];J[a+44>>2]=e;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[195395]=0;d=ca(1858,a+40|0,406812)|0;e=J[195395];J[195395]=0;if((e|0)==1)break h;J[a- -64>>2]=J[d+8>>2];e=J[d+4>>2];J[a+56>>2]=J[d>>2];J[a+60>>2]=e;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;if(H[a+51|0]<0)Kb(J[a+40>>2]);if(H[a+11|0]<0)Kb(J[a>>2]);if(H[a+35|0]<0)Kb(J[a+24>>2]);if(H[a+23|0]<0)Kb(J[a+12>> -2]);d=0;J[195395]=0;e=ca(1099,b|0,a+56|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break c;if(!e)break a;J[195395]=0;d=aa(1121,b|0,J[a+92>>2],J[a+88>>2])|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;if(d)break d;d=0;J[195395]=0;ea(1103,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;break a}d=Z()|0;break b}d=Z()|0;break e}d=Z()|0;break f}d=Z()|0;break g}d=Z()|0;if(H[a+51|0]>=0)break g;Kb(J[a+40>>2])}if(H[a+11|0]>=0)break f;Kb(J[a>>2])}if(H[a+35|0]>=0)break e;Kb(J[a+24>>2])}if(H[a+23|0]>=0)break b; -Kb(J[a+12>>2]);break b}J[195395]=0;ea(1103,b|0);e=J[195395];J[195395]=0;d=1;if((e|0)==1)break c;if((a+56|0)==(c|0))break a;f=K[a+67|0];e=f<<24>>24;l:{if(H[c+11|0]>=0){if((e|0)<0)break l;e=J[a+60>>2];J[c>>2]=J[a+56>>2];J[c+4>>2]=e;J[c+8>>2]=J[a- -64>>2];break a}J[195395]=0;g=c;c=(e|0)<0;aa(2100,g|0,(c?J[a+56>>2]:a+56|0)|0,(c?J[a+60>>2]:f)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c;break a}J[195395]=0;aa(2101,c|0,J[a+56>>2],J[a+60>>2])|0;c=J[195395];J[195395]=0;if((c|0)!=1)break a}d=Z()|0;if(H[a+ -67|0]>=0)break b;Kb(J[a+56>>2])}Me(b);ba(d|0);B()}if(H[a+67|0]<0)Kb(J[a+56>>2]);Me(b)}xb=a+96|0;return d|0}function cea(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,u=0,v=0,w=0,x=0,y=0,z=0;H[a+192|0]=0;H[a+193|0]=0;H[a+194|0]=0;H[a+195|0]=0;H[a+196|0]=0;H[a+197|0]=0;H[a+198|0]=0;H[a+199|0]=0;H[a+248|0]=0;H[a+249|0]=0;H[a+250|0]=0;H[a+251|0]=0;H[a+252|0]=0;H[a+253|0]=0;H[a+254|0]=0;H[a+255|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+242|0]=0;H[a+243|0]=0; -H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;H[a+239|0]=0;H[a+224|0]=0;H[a+225|0]=0;H[a+226|0]=0;H[a+227|0]=0;H[a+228|0]=0;H[a+229|0]=0;H[a+230|0]=0;H[a+231|0]=0;H[a+216|0]=0;H[a+217|0]=0;H[a+218|0]=0;H[a+219|0]=0;H[a+220|0]=0;H[a+221|0]=0;H[a+222|0]=0;H[a+223|0]=0;H[a+208|0]=0;H[a+209|0]=0;H[a+210|0]=0;H[a+211|0]=0;H[a+212|0]=0;H[a+213|0]=0;H[a+214|0]=0;H[a+215|0]=0;H[a+200|0]=0;H[a+201|0]=0;H[a+202| -0]=0;H[a+203|0]=0;H[a+204|0]=0;H[a+205|0]=0;H[a+206|0]=0;H[a+207|0]=0;g=a;while(1){d=J[(k<<2)+b>>2]+c|0;e=K[d+11|0];i=K[d|0];f=e+i|0;l=K[d+6|0];n=K[d+5|0];h=l+n|0;j=f-h|0;m=K[d+1|0];o=K[d+10|0];p=m+o|0;q=K[d+7|0];r=K[d+4|0];s=q+r|0;t=p-s|0;u=K[d+9|0];v=K[d+2|0];w=u+v|0;x=K[d+8|0];y=K[d+3|0];z=x+y|0;d=w-z|0;J[g+24>>2]=j-(t+d|0)<<2;f=f+h|0;h=w+z|0;J[g+16>>2]=P(f-h|0,10033)+1024>>11;J[g>>2]=(f+((h+p|0)+s|0)<<2)-6144;J[g+8>>2]=((t-d|0)+P(d+j|0,11190)|0)+1024>>11;f=r-q|0;j=m-o|0;h=P(f+j|0,4433);m=h+P(f, --15137)|0;d=i-e|0;e=y-x|0;i=n-l|0;f=v-u|0;J[g+12>>2]=((m+P(d-e|0,10703)|0)+P(i+f|0,-4433)|0)+1024>>11;l=P(d+e|0,7053);n=l+P(e,5946)|0;e=P(e+f|0,-1512);h=h+P(j,6270)|0;J[g+28>>2]=(((n+e|0)-h|0)+P(i,-9191)|0)+1024>>11;j=e;e=P(d+f|0,9191)+1024|0;J[g+20>>2]=((j+(e+P(f,-19165)|0)|0)-m|0)+P(i,7053)>>11;J[g+4>>2]=(h+(l+(e+P(d,-4758)|0)|0)|0)+P(i,1512)>>11;g=g+32|0;k=k+1|0;if((k|0)!=6)continue;break}b=7;while(1){g=J[a+160>>2];d=J[a>>2];c=g+d|0;e=J[a+96>>2];i=J[a+64>>2];f=e+i|0;J[a+64>>2]=P(c-f|0,17837)+32768>> -16;c=c+f|0;f=J[a+128>>2];k=J[a+32>>2];h=f+k|0;J[a+128>>2]=P(c-(h<<1)|0,10298)+32768>>16;J[a>>2]=P(c+h|0,14564)+32768>>16;c=i-e|0;g=d-g|0;d=P(c+g|0,5331)+32768|0;e=k-f|0;J[a+160>>2]=d+P(c-e|0,14564)>>16;J[a+96>>2]=P(g-(c+e|0)|0,14564)+32768>>16;J[a+32>>2]=d+P(g+e|0,14564)>>16;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function Nla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=Q(0),i=Q(0),j=0,k=0,l=Q(0),m=Q(0),n=0,o=Q(0),p=Q(0),q=Q(0),r=0,s=Q(0),t=0,u=Q(0),v=Q(0);d=xb-48|0;xb=d;J[d+40>>2]=0;J[d+44>> -2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;f=J[a+16>>2];if(f){n=J[a+20>>2];t=n+(f<<2)|0;u=N[42445];v=N[42444];while(1){j=J[a+4>>2];f=r;e=j-f|0;j=e>>>0<=j>>>0?e:0;r=J[n>>2];e=r-f|0;k=e>>>0>j>>>0?j:e;a:{if(!k)break a;e=J[a+8>>2]+P(f,12)|0;h=Q(0);i=Q(0);m=Q(0);l=Q(0);q=Q(0);s=Q(0);while(1){j=e+12|0;f=k-1|0;o=N[e+4>>2];p=N[e>>2];b:{c:{d:{e:switch(J[e+8>>2]){case 0:if(!J[d>>2])break d;i=N[d+4>>2];l=h;h=N[d+8>>2];if(!(i== -m&l==h)){e=J[b+32>>2];if(e)e=J[e+4>>2];else e=0;Ab[J[b+16>>2]](b,c,d,i,h,e)}k=J[b+28>>2];e=J[b+32>>2];if(e)e=J[e+16>>2];else e=0;Ab[k|0](b,c,d,e);J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;break d;case 1:if(!J[d>>2]){e=J[b+32>>2];if(e)e=J[e>>2];else e=0;Ab[J[b+12>>2]](b,c,d,l,h,e);J[d>>2]=1;e=J[d+16>>2];J[d+4>>2]=J[d+12>>2];J[d+8>>2]=e}e=J[b+16>>2];k=J[b+32>>2];if(!k){Ab[e|0](b,c,d,p,o,0);break d}Ab[e|0](b,c,d,p,o,J[k+4>>2]);break d;case 2:g=f?j:169776;h=N[g+4>>2];i=N[g>>2];if(!J[d>>2]){g=J[b+32>>2];if(g)g= -J[g>>2];else g=0;Ab[J[b+12>>2]](b,c,d,l,q,g);J[d>>2]=1;g=J[d+16>>2];J[d+4>>2]=J[d+12>>2];J[d+8>>2]=g}g=J[b+20>>2];j=f?e+24|0:j;e=J[b+32>>2];if(e)e=J[e+8>>2];else e=0;Ab[g|0](b,c,d,p,o,i,h,e);f=f?k-2|0:0;break c;case 3:break e;default:break b}f:{if(!f){m=v;l=u;g=169776;f=0;break f}g=e+24|0;l=N[e+16>>2];m=N[e+12>>2];if((k|0)==2){j=g;g=169776;f=0;break f}j=e+36|0;f=k-3|0}h=N[g+4>>2];i=N[g>>2];if(!J[d>>2]){e=J[b+32>>2];if(e)e=J[e>>2];else e=0;Ab[J[b+12>>2]](b,c,d,s,q,e);J[d>>2]=1;e=J[d+16>>2];J[d+4>> -2]=J[d+12>>2];J[d+8>>2]=e}k=J[b+24>>2];e=J[b+32>>2];if(e)e=J[e+12>>2];else e=0;Ab[k|0](b,c,d,p,o,m,l,i,h,e);break c}i=p;h=o}N[d+16>>2]=h;N[d+12>>2]=i;q=h;m=i;l=i;s=i}e=j;k=f;if(f)continue;break}if(!J[d>>2])break a;l=i;i=N[d+4>>2];m=h;h=N[d+8>>2];if(!(l==i&m==h)){f=J[b+32>>2];if(f)f=J[f+4>>2];else f=0;Ab[J[b+16>>2]](b,c,d,i,h,f)}j=J[b+28>>2];f=J[b+32>>2];if(f)f=J[f+16>>2];else f=0;Ab[j|0](b,c,d,f)}J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;n=n+4|0;if((t|0)!=(n|0))continue;break}}xb= -d+48|0}function lP(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=xb-48|0;xb=f;a:{b:{c:{if(!fc(b,21380)){e=6;if(d)break a;d=J[c>>2];b=0;c=14512;while(1){if(!((d|0)!=J[c+8>>2]|J[c+16>>2]!=10)){c=b;break c}c=b+1|0;g=J[(c<<2)+16608>>2];if((d|0)==J[g+8>>2]&J[g+16>>2]==10)break c;c=b+2|0;g=J[(c<<2)+16608>>2];if((d|0)==J[g+8>>2]&J[g+16>>2]==10)break c;b=b+3|0;c=J[(b<<2)+16608>>2];if((b|0)!=87)continue;break}break a}if(!fc(b,21396)){e=6;if(d)break a;J[a+16>>2]=J[c>>2];break b}if(!fc(b, -21411)){e=6;if(d)break a;b=J[c>>2];if(!b){e=35;break a}d=J[b+116>>2];J[f+16>>2]=d;if(!d){e=cn(b,f+16|0,a);if(e)break a;d=J[f+16>>2];J[b+116>>2]=d;J[b+120>>2]=1}J[d+12>>2]=J[c+4>>2];break b}if(!fc(b,21429)){if(d){e=6;d:switch(Wd(c,0)|0){case 0:e=0;H[a+20|0]=0;break a;case 1:break d;default:break a}H[a+20|0]=1;break b}H[a+20|0]=K[c|0];break b}e:{if(!fc(b,21437)){f:{if(!d){b=J[c>>2];break f}d=f+12|0;b=Wd(c,d);e=J[f+12>>2];if(K[e|0]!=44|(c|0)==(e|0))break e;e=e+1|0;l=f,m=Wd(e,d),J[l+20>>2]=m;c=J[f+12>> -2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Wd(e,d),J[l+24>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Wd(e,d),J[l+28>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Wd(e,f+12|0),J[l+32>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Wd(e,f+12|0),J[l+36>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Wd(e,f+12|0),J[l+40>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;c=c+1|0;l=f,m=Wd(c,d),J[l+44>>2]= -m;d=J[f+12>>2];if((K[d|0]|32)!=32|(c|0)==(d|0))break e;c=f+16|0}e=6;if((b|0)<0)break a;d=J[c+8>>2];if((d|0)<0)break a;g=J[c+16>>2];if((g|0)<0)break a;h=J[c+24>>2];if((h|0)<0)break a;i=J[c+4>>2];if((i|0)<0)break a;j=J[c+12>>2];if((j|0)<0)break a;k=J[c+20>>2];if((k|0)<0)break a;c=J[c+28>>2];if((c|0)<0|(b|0)>(d|0)|((d|0)>(g|0)|g>>>0>h>>>0))break a;if(i>>>0>500|j>>>0>500|(k>>>0>500|c>>>0>500))break a;J[a+24>>2]=b;J[a+52>>2]=c;J[a+48>>2]=h;J[a+44>>2]=k;J[a+40>>2]=g;J[a+36>>2]=j;J[a+32>>2]=d;J[a+28>>2]= -i;break b}e=12;if(fc(b,21458))break a;if(d){e=0;if(!Wd(c,0)){H[a+21|0]=0;break a}H[a+21|0]=1;break a}H[a+21|0]=K[c|0];break b}e=6;break a}J[a+12>>2]=c}e=0}xb=f+48|0;return e|0}function hn(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;f=xb-32|0;xb=f;a:{if(J[a+248>>2]){J[f+28>>2]=0;g=J[a+12>>2];h=J[a+36>>2]+(J[a+40>>2]+(J[a+4>>2]-g|0)|0)|0;b:{if(!h)break b;i=d&65535;d=f+28|0;kC(g,h,i,d,f+24|0,f+20|0);hr(e,d,J[f+24>>2],J[f+20>>2]);d=J[b+12>>2];l=+(d<<16>>16);e=J[b+8>>2];m=+(e<<16>> -16);g=J[b+4>>2];n=+(g<<16>>16);b=J[b>>2];o=+(b<<16>>16);c:{if(!((b|0)!=J[c>>2]|(g|0)!=J[c+4>>2]|(e|0)!=J[c+8>>2]))if((d|0)==J[c+12>>2])break c;b=J[c+12>>2];J[f+8>>2]=J[c+8>>2];J[f+12>>2]=b;b=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=b;l=l-n;m=m-o;g=J[f+24>>2];i=J[f+20>>2];h=J[f+28>>2];d:{if(!h)break d;b=J[f>>2];if((b|0)<0)break d;d=J[f+8>>2];if((d|0)<0)break d;c=J[f+4>>2];if((c|0)<0)break d;e=J[f+12>>2];if((e|0)<0)break d;if(i>>>0>>0){e=c+g|0;J[f+12>>2]=e}if(g>>>0>>0){d=b+g|0;J[f+8>>2]=d}if((i| -0)==(e-c|0)&(g|0)==(d-b|0))break d;j=(b|0)>(d|0);i=j?b:d;b=j?d:b;d=(c|0)>(e|0);k=d?c:e;c=d?e:c;j=Pb(P(i-b|0,k-c|0)<<2);e=c<<2;p=k<<2;if(e>>>0>=p>>>0)break d;q=i<<2;c=b<<2;if(q>>>0<=c>>>0)break d;d=0;while(1){r=P(e,g);b=c;while(1){i=d+j|0;k=b+r|0;H[i|0]=K[k+h|0];H[i+1|0]=K[h+(k|1)|0];H[i+2|0]=K[h+(k|2)|0];H[i+3|0]=K[h+(k|3)|0];d=d+4|0;b=b+4|0;if(q>>>0>b>>>0)continue;break}e=e+4|0;if(p>>>0>e>>>0)continue;break}}b=J[a+248>>2];if(j){e=J[f+8>>2]-J[f>>2]|0;c=e>>31;g=J[f+12>>2]-J[f+4>>2]|0;d=g>>31;Ab[J[J[b>> -2]+16>>2]](b,o,n,m,l,j,(c^e)-c|0,(d^g)-d|0);Kb(j);break b}Ab[J[J[b>>2]+16>>2]](b,o,n,m,l,J[f+28>>2],J[f+24>>2],J[f+20>>2]);break b}b=J[a+248>>2];Ab[J[J[b>>2]+16>>2]](b,o,n,m-o,l-n,J[f+28>>2],J[f+24>>2],J[f+20>>2])}b=J[f+28>>2];if(b)Kb(b);if((J[a+36>>2]+(J[a+40>>2]+(J[a+4>>2]-J[a+12>>2]|0)|0)|0)>=0)break a;H[a+33|0]=1;break a}e=a+176|0;c=I[b>>1];d=J[b+4>>2];e:{if(K[a+192|0]){J[a+176>>2]=c;H[a+192|0]=0;J[a+184>>2]=c;d=d<<16>>16;J[a+188>>2]=d;J[a+180>>2]=d;break e}g=e;f:{if(J[e>>2]<=(c|0)){g=a+184|0; -if(J[g>>2]>=(c|0))break f}J[g>>2]=c}c=d<<16>>16;g=c;h=a+180|0;d=J[h>>2];g:{if((c|0)>=(d|0)){g=d;h=a+188|0;if((c|0)<=J[h>>2])break g}J[h>>2]=c;d=g}c=J[e>>2]}g=J[b+12>>2];b=I[b+8>>1];h:{if((b|0)>=(c|0)){e=a+184|0;if((b|0)<=J[e>>2])break h}J[e>>2]=b}b=g<<16>>16;if((b|0)<(d|0)){J[a+180>>2]=b;break a}if((b|0)<=J[a+188>>2])break a;J[a+188>>2]=b}xb=f+32|0}function hX(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;d=xb-1072|0;xb=d;J[d+44>>2]=d+48;e=K[b+11|0];h=e<<24>>24;a:{i=(h|0)<0?J[b+4>> -2]:e;f=i+1|0;if(f>>>0<1073741808){b:{if(f>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=f;e=d;break b}e=f|3;if(e>>>0>=1073741823)break a;g=e+1|0;e=Pb(g<<2);J[d+4>>2]=f;J[d>>2]=e;J[d+8>>2]=g|-2147483648}f=(h|0)<0?J[b>>2]:b;b=i<<2;b=qc(e,f,b)+b|0;J[b>>2]=47;J[b+4>>2]=0;b=J[c>>2];e=J[c+4>>2];g=K[c+11|0];J[195395]=0;f=b;b=g<<24>>24<0;c=aa(1864,d|0,(b?f:c)|0,(b?e:g)|0)|0;b=J[195395];J[195395]=0;c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[d+24>>2]=J[c+8>>2];b=J[c+4>>2];J[d+16>>2]=J[c>>2];J[d+20>>2]=b;J[c>>2]= -0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=ca(1858,d+16|0,428748)|0;b=J[195395];J[195395]=0;if((b|0)==1)break h;J[d+40>>2]=J[c+8>>2];b=J[c+4>>2];J[d+32>>2]=J[c>>2];J[d+36>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);J[d>>2]=0;e=H[d+43|0];b=(e|0)<0;c=b?J[d+32>>2]:d+32|0;f=0;i:{if(!c)break i;b=b?J[d+36>>2]:e&255;f=0;if(!b)break i;J[195395]=0;ma(3486,c|0,b|0,d+44|0,d|0,0);b=J[195395];J[195395]=0;if((b|0)==1)break f;f=J[d>>2]}b=d+48|0;H[f+b|0]=0;J[195395]= -0;c=_(3487,b|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){if((c|0)==-1)break e;J[195395]=0;_(3488,c|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break e}b=Z()|0;break d}b=Z()|0;break g}b=Z()|0;if(H[d+27|0]>=0)break g;Kb(J[d+16>>2])}if(H[d+11|0]>=0)break c;Kb(J[d>>2]);ba(b|0);B()}b=Z()|0;break d}j:{g=ac(d+48|0);if(g>>>0>=2147483632){J[195395]=0;ea(3489,d+16|0);a=J[195395];J[195395]=0;if((a|0)==1)break j;B()}k:{if(g>>>0<=10){H[d+27|0]=g;c=d+16|0;break k}J[195395]=0;e=(g|15)+1|0;c=_(1078,e|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break j;J[d+16>>2]=c;J[d+20>>2]=g;J[d+24>>2]=e|-2147483648}j=Mb(c,d+48|0,g)+g|0,k=0,H[j|0]=k;b=J[d+16>>2];c=J[d+20>>2];e=K[d+27|0];J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[195395]=0;f=b;b=e<<24>>24<0;fa(3484,(b?f:d+16|0)|0,(b?c:e)|0,a|0);b=J[195395];J[195395]=0;if((b|0)==1){b=Z()|0;if(H[a+11|0]<0)Kb(J[a>>2]);if(H[d+27|0]>=0)break d;Kb(J[d+16>>2]);break d}if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);xb=d+1072|0;return}b=Z()|0}if(H[d+43|0]>=0)break c;Kb(J[d+32>>2])}ba(b| -0);B()}dd(d);B()}zd();B()}function hga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;v=xb-256|0;xb=v;q=J[a+332>>2];b=J[b+84>>2];a=v;g=8;while(1){a:{b:{f=L[c+32>>1];h=I[c+16>>1];if((f|h)&65535)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;f=P(I[c>>1],J[b>>2])<<2;J[a+192>>2]=f;J[a+160>>2]=f;J[a+128>>2]=f;J[a+96>>2]=f;J[a+64>>2]=f;J[a+32>>2]=f;J[a>>2]=f;j=56;break a}i=P(J[b+192>>2], -I[c+96>>1]);k=P(J[b+64>>2],f<<16>>16);f=P(i+k|0,4433);h=P(h,J[b+32>>2]);r=P(J[b+224>>2],I[c+112>>1]);t=P(h+r|0,-7373);n=P(J[b+160>>2],I[c+80>>1]);l=n+h|0;o=P(J[b+96>>2],I[c+48>>1]);p=o+r|0;m=P(l+p|0,9633);j=P(I[c+64>>1],J[b+128>>2])<<13;s=P(I[c>>1],J[b>>2])<<13|1024;u=j+s|0;k=f+P(k,6270)|0;w=u+k|0;x=t+P(h,12299)|0;h=m+P(l,-3196)|0;l=x+h|0;J[a+224>>2]=w-l>>11;J[a>>2]=l+w>>11;l=s-j|0;f=f+P(i,-15137)|0;i=l+f|0;m=m+P(p,-16069)|0;j=P(o,25172);o=P(n+o|0,-20995);p=m+(j+o|0)|0;J[a+192>>2]=i-p>>11;J[a+32>> -2]=i+p>>11;f=l-f|0;h=h+(o+P(n,16819)|0)|0;J[a+160>>2]=f-h>>11;J[a+64>>2]=f+h>>11;f=m+(t+P(r,2446)|0)|0;h=u-k|0;J[a+96>>2]=f+h>>11;f=h-f>>11;j=32}J[(j<<2)+a>>2]=f;c=c+2|0;b=b+4|0;a=a+4|0;f=g>>>0>1;g=g-1|0;if(f)continue;break}b=q+128|0;c=v;h=0;while(1){a=J[(h<<2)+d>>2]+e|0;c:{d:{f=J[c+8>>2];g=J[c+4>>2];if(f|g)break d;f=0;if(J[c+12>>2]|J[c+16>>2]|(J[c+20>>2]|J[c+24>>2]))break d;if(J[c+28>>2])break d;g=K[b+(J[c>>2]+16>>>5&1023)|0];H[a+6|0]=g;H[a+5|0]=g;H[a+4|0]=g;H[a+3|0]=g;H[a+2|0]=g;H[a+1|0]=g;H[a| -0]=g;f=7;break c}r=J[c+28>>2];t=P(r+g|0,-7373);n=J[c+12>>2];q=n+r|0;o=J[c+20>>2];i=o+g|0;m=P(q+i|0,9633);j=t+P(g,12299)|0;g=m+P(i,-3196)|0;i=j+g|0;k=J[c>>2]+16|0;l=J[c+16>>2];p=k+l<<13;s=P(f,6270);j=f;f=J[c+24>>2];j=P(j+f|0,4433);s=s+j|0;u=p+s|0;H[a|0]=K[b+(i+u>>>18&1023)|0];H[a+7|0]=K[b+(u-i>>>18&1023)|0];m=m+P(q,-16069)|0;i=P(n,25172);n=P(n+o|0,-20995);q=m+(i+n|0)|0;i=k-l<<13;f=j+P(f,-15137)|0;k=i+f|0;H[a+1|0]=K[b+(q+k>>>18&1023)|0];H[a+6|0]=K[b+(k-q>>>18&1023)|0];g=g+(n+P(o,16819)|0)|0;f=i-f|0; -H[a+2|0]=K[b+(g+f>>>18&1023)|0];H[a+5|0]=K[b+(f-g>>>18&1023)|0];f=m+(t+P(r,2446)|0)|0;g=p-s|0;H[a+3|0]=K[b+(f+g>>>18&1023)|0];g=K[b+(g-f>>>18&1023)|0];f=4}H[f+a|0]=g;c=c+32|0;h=h+1|0;if((h|0)!=8)continue;break}xb=v+256|0}function Z9(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;e=J[a+584>>2];if(!e)return 0;l=L[e+120>>1];x=J[e+140>>2];f=J[a+604>>2];j=L[e+64>>1];q=L[e+66>>1];k=L[e+68>>1];g=J[e+76>>2];i=J[e+72>>2];u=J[e+124>> -2];m=J[e+136>>2];d=J[e+132>>2];if(!((l|0)!=65535|(c|0)<=0)){i=i<>g;if((o|0)<16)f=f+1|0;else{g=o-16|0;H[f+1|0]=i>>g;f=f+2|0}d=d+1|0;c=c-1|0;m=j+m|0;l=K[b|0];b=b+1|0}v=b;a:{if((c|0)<=0)break a;while(1){t=J[e+144>>2];o=c;b:{while(1){h=l;l=K[v|0];b=d+1|0;c=o-1|0;v=v+1|0;w=h+(l<<12)|0;p=h^l<<5;r=p<<3;s=r+t|0;n=J[s>>2];if((w|0)!=(n|0))break b;h=o>>>0>1;l=L[(t+r|0)+4>>1];d=b;o=c;if(h)continue;break}break a}c:{if((n|0)>=0){y=p?p-9001|0:-1;while(1){n=p+y|0;p=(n|0)<0?n+9001| -0:n;r=p<<3;s=r+t|0;n=J[s>>2];if((n|0)==(w|0)){l=L[(t+r|0)+4>>1];d=b;break c}if((n|0)>=0)continue;break}}if(f>>>0>x>>>0){J[a+608>>2]=f-J[a+596>>2];Xc(a);f=J[a+596>>2]}i=h|i<>g;if((h|0)<16)f=f+1|0;else{g=h-16|0;H[f+1|0]=i>>g;f=f+2|0}J[s>>2]=w;I[s+4>>1]=k;d:{e:{h=k+1|0;if((h|0)==4094){h=J[e+144>>2];b=h+72E3|0;k=8993;while(1){J[b>>2]=-1;J[b-8>>2]=-1;J[b-16>>2]=-1;J[b-24>>2]=-1;J[b-32>>2]=-1;J[b-40>>2]=-1;J[b-48>>2]=-1;J[b-56>>2]=-1;b=b+-64|0;d=k>>>0>7;k=k-8|0;if(d)continue; -break}J[h>>2]=-1;d=0;J[e+128>>2]=0;i=i<>g;q=511;k=258;if((b|0)<16)break e;g=b-16|0;H[f+1|0]=i>>g;f=f+2|0;break d}m=j+m|0;f:{if((k|0)>=(q|0)){j=j+1|0;q=-1<=8388607){d=2147483647;if(m>>>0<256)break g;d=(b|0)/(m>>8)|0;break g}d=(b<<8)/(m|0)|0}if((d|0)<=J[e+128>>2]){h=J[e+144>>2];b=h+72E3|0;k=8993;while(1){J[b>>2]=-1;J[b-8>>2]=-1;J[b-16>>2]=-1;J[b-24>>2]=-1;J[b-32>>2]=-1;J[b-40>>2]=-1;J[b-48>>2]=-1;J[b-56>>2]= --1;b=b+-64|0;d=k>>>0>7;k=k-8|0;if(d)continue;break}J[h>>2]=-1;d=0;J[e+128>>2]=0;i=i<>g;q=511;k=258;if((b|0)<16)break e;g=b-16|0;H[f+1|0]=i>>g;f=f+2|0;break d}J[e+128>>2]=d}d=b;k=h;break c}f=f+1|0}m=j;j=9}if((o|0)>1)continue;break}}J[e+136>>2]=m;J[e+132>>2]=d;J[e+124>>2]=u;J[e+76>>2]=g;J[e+72>>2]=i;I[e+68>>1]=k;I[e+66>>1]=q;I[e+64>>1]=j;J[e+120>>2]=l;J[a+604>>2]=f;return 1}function goa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=b;a:{if(!b)break a;b=J[b>>2];if(!b)break a; -J[g>>2]=b+1}H[a+28|0]=0;b=g;J[a+36>>2]=b;d=J[b+12>>2];J[a+4>>2]=d;e=J[b+16>>2];J[a+12>>2]=e;J[a+8>>2]=d+e;J[a+32>>2]=0;if(e>>>0>67108863)c=1073741823;else{f=e<<6;f=f>>>0<=16384?16384:f;c=f>>>0>=1073741823?1073741823:f}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!d)break b;c:{d:{e:{f:{g:{if((K[d|0]|K[d+1|0]<<8)!=256|e>>>0<8)break g;e=J[a+12>>2];c=d+6|0;b=J[a+4>>2];if(e>>>0>>0)break g;f=J[a+8>>2];if(f-c>>>0<2)break g;c=d+8|0;if(c-b>>>0>e>>>0)break g;h=f-c|0;c=K[d+6|0]|K[d+7|0]<<8;c=((c<<8|c>>>8)& -65535)<<2;if(h>>>0>>0)break g;c=J[a+16>>2]-c|0;J[a+16>>2]=c;if((c|0)>0)break f}h:{if(K[a+28|0]|!J[a+32>>2])break h;b=Cc(g);J[a+4>>2]=b;J[a+8>>2]=b+J[g+16>>2];if(!b)break h;while(1){H[a+28|0]=1;b=J[a+36>>2];d=J[b+12>>2];J[a+4>>2]=d;e=J[b+16>>2];J[a+12>>2]=e;J[a+8>>2]=d+e;J[a+32>>2]=0;if(e>>>0<=67108863){f=e<<6;f=f>>>0<=16384?16384:f;c=f>>>0>=1073741823?1073741823:f}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!d)break b;i:{if((K[d|0]|K[d+1|0]<<8)!=256|e>>>0<8)break i;e=J[a+12>>2];c= -d+6|0;b=J[a+4>>2];if(e>>>0>>0)break i;f=J[a+8>>2];if(f-c>>>0<2)break i;c=d+8|0;if(c-b>>>0>e>>>0)break i;h=f-c|0;c=K[d+6|0]|K[d+7|0]<<8;c=((c<<8|c>>>8)&65535)<<2;if(h>>>0>>0)break i;c=J[a+16>>2]-c|0;J[a+16>>2]=c;if((c|0)>0)break f}if(K[a+28|0]|!J[a+32>>2])break h;b=Cc(g);J[a+4>>2]=b;J[a+8>>2]=b+J[g+16>>2];if(b)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;c=1;j:{if(f-d>>>0<8|d-b>>>0>e>>>0|(K[d|0]|K[d+1|0]<<8)!=256)break j; -f=J[a+12>>2];b=d+6|0;e=J[a+4>>2];if(f>>>0>>0)break j;h=J[a+8>>2];if(h-b>>>0<2)break j;b=d+8|0;if(b-e>>>0>f>>>0)break j;e=h-b|0;b=K[d+6|0]|K[d+7|0]<<8;b=((b<<8|b>>>8)&65535)<<2;if(e>>>0>>0)break j;b=J[a+16>>2]-b|0;J[a+16>>2]=b;c=(b|0)<=0}b=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(b)break e;if(!c)break c}Ub(g);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[g+4>>2])J[g+4>>2]=0;return g|0}Ub(b);J[a+36>>2]=0;J[a+12>>2]= -0;J[a+4>>2]=0;J[a+8>>2]=0;return g|0}function rU(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;g=xb-256|0;xb=g;J[g+248>>2]=c;J[g+252>>2]=b;h=Rc(g+196|0);J[195395]=0;c=g+16|0;a=J[d+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[195395];J[195395]=0;a:{b:{c:{d:{if((a|0)!=1){J[195395]=0;b=_(3535,c|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]=0;ha(3646,b|0,763968,763994,g+208|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;b=J[c>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)Ab[J[J[b>> -2]+8>>2]](b);a=Rc(g+184|0);if(K[a+11|0]>>>7|0)b=(J[a+8>>2]&2147483647)-1|0;else b=10;J[195395]=0;$(3558,a|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=b;J[g+12>>2]=c;J[g+8>>2]=0;while(1){e:{J[195395]=0;d=ca(3629,g+252|0,g+248|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;if(d)break c;d=J[g+180>>2];if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if((d|0)==(c+b|0)){if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(K[a+11|0]>>>7|0)b= -J[a+4>>2];else b=K[a+11|0]&127;J[195395]=0;$(3558,a|0,b<<1);b=J[195395];J[195395]=0;if((b|0)==1)break b;b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,a|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=c+b}J[195395]=0;i=g+252|0;d=_(3630,i|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;J[195395]=0;d=Ih(d,16,b,g+180|0,g+8|0,0,h,g+16|0,g+12|0,g+208|0);c=J[195395];J[195395]=0;if((c|0)==1)break e;if(d)break c;J[195395]=0;_(3632, -i|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)continue}break}break b}b=Z()|0;break a}b=Z()|0;c=J[g+16>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)Ab[J[J[c>>2]+8>>2]](c);break a}J[195395]=0;$(3558,a|0,J[g+180>>2]-b|0);b=J[195395];J[195395]=0;f:{if((b|0)==1)break f;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[195395]=0;d=na(3650)|0;c=J[195395];J[195395]=0;if((c|0)==1)break f;J[g>>2]=f;J[195395]=0;c=ha(3651,b|0,d|0,226157,g|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;if((c|0)!=1)J[e>>2]=4;J[195395]=0; -c=ca(3629,g+252|0,g+248|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;b=J[g+252>>2];Yb(a);Yb(h);xb=g+256|0;return b|0}}b=Z()|0;Yb(a)}Yb(h);ba(b|0);B()}function bU(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;g=xb-320|0;xb=g;J[g+312>>2]=c;J[g+316>>2]=b;h=Rc(g+196|0);J[195395]=0;c=g+16|0;a=J[d+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[195395];J[195395]=0;a:{b:{c:{d:{if((a|0)!=1){J[195395]=0;b=_(3551,c|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[195395]= -0;ha(3665,b|0,763968,763994,g+208|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;b=J[c>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)Ab[J[J[b>>2]+8>>2]](b);a=Rc(g+184|0);if(K[a+11|0]>>>7|0)b=(J[a+8>>2]&2147483647)-1|0;else b=10;J[195395]=0;$(3558,a|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=b;J[g+12>>2]=c;J[g+8>>2]=0;while(1){e:{J[195395]=0;d=ca(3657,g+316|0,g+312|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;if(d)break c;d=J[g+180>>2]; -if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if((d|0)==(c+b|0)){if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;J[195395]=0;$(3558,a|0,b<<1);b=J[195395];J[195395]=0;if((b|0)==1)break b;b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,a|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=c+b}J[195395]=0;i=g+316|0;d=_(3658,i|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e; -J[195395]=0;d=Hh(d,16,b,g+180|0,g+8|0,0,h,g+16|0,g+12|0,g+208|0);c=J[195395];J[195395]=0;if((c|0)==1)break e;if(d)break c;J[195395]=0;_(3660,i|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)continue}break}break b}b=Z()|0;break a}b=Z()|0;c=J[g+16>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)Ab[J[J[c>>2]+8>>2]](c);break a}J[195395]=0;$(3558,a|0,J[g+180>>2]-b|0);b=J[195395];J[195395]=0;f:{if((b|0)==1)break f;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[195395]=0;d=na(3650)|0;c=J[195395];J[195395]=0;if((c|0)==1)break f; -J[g>>2]=f;J[195395]=0;c=ha(3651,b|0,d|0,226157,g|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;if((c|0)!=1)J[e>>2]=4;J[195395]=0;c=ca(3657,g+316|0,g+312|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;b=J[g+316>>2];Yb(a);Yb(h);xb=g+320|0;return b|0}}b=Z()|0;Yb(a)}Yb(h);ba(b|0);B()}function kea(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;q=xb-96|0;d=a;while(1){a:{f=d;d=J[(r<<2)+b>>2]+c|0;u=K[d+ -9|0];v=K[d+1|0];p=u+v|0;w=K[d+10|0];x=K[d|0];n=w+x|0;y=K[d+8|0];g=K[d+2|0];k=y+g|0;h=K[d+7|0];o=K[d+3|0];e=h+o|0;i=K[d+6|0];l=K[d+4|0];j=i+l|0;d=K[d+5|0];J[f>>2]=(((((p+n|0)+k|0)+e|0)+j|0)+d<<1)-2816;m=d<<1;n=n-m|0;e=e-m|0;t=k-m|0;s=j-m|0;d=P(n+e|0,11116)+P(t+s|0,1649)|0;j=P(n,-13275);p=p-m|0;n=P(n-p|0,9746)+2048|0;J[f+24>>2]=d+((j+n|0)+P(t,-6461)|0)>>12;k=P(p-e|0,7587);J[f+8>>2]=(d+((k+P(e,-8342)|0)+P(s,-11395)|0)|0)+2048>>12;e=o-h|0;j=g-y|0;d=P(e+j|0,3264);g=v-u|0;o=P(g+e|0,-11467);m=o+(d+P(e,10695)| -0)|0;h=x-w|0;e=P(h+e|0,6263);i=l-i|0;J[f+28>>2]=((m+e|0)+P(i,-10538)|0)+2048>>12;l=P(g+j|0,-6263);m=l+P(j,-16294)|0;j=P(h+j|0,8756);J[f+20>>2]=(((m+j|0)+d|0)+P(i,11467)|0)+2048>>12;d=P(g+h|0,10538)+2048|0;J[f+12>>2]=(o+(l+(d+P(g,10456)|0)|0)|0)+P(i,-8756)>>12;J[f+4>>2]=(e+(j+(d+P(h,-14090)|0)|0)|0)+P(i,3264)>>12;J[f+16>>2]=k+(((n+P(p,511)|0)+P(t,-11116)|0)+P(s,4813)|0)>>12;l=r-7|0;r=r+1|0;d=q;j=7;b:switch(l|0){case 0:continue;case 3:break a;default:break b}d=f+32|0;continue}break}while(1){u=J[d+64>> -2];v=J[a>>2];p=u+v|0;w=J[a+160>>2];e=w<<1;b=p-e|0;x=J[a+224>>2];y=J[a+96>>2];g=x+y|0;z=g-e|0;h=J[d>>2];i=J[a+64>>2];l=h+i|0;m=l-e|0;n=J[a+128>>2];k=J[a+192>>2];f=n+k|0;r=f-e|0;t=P(b+z|0,11759)+P(m+r|0,1744)|0;A=P(b,-14043);o=b;q=J[d+32>>2];c=J[a+32>>2];b=q+c|0;s=b-e|0;o=P(o-s|0,10310)+16384|0;J[a+192>>2]=t+((A+o|0)+P(m,-6835)|0)>>15;e=P(s-z|0,8026);J[a+64>>2]=(t+((e+P(z,-8825)|0)+P(r,-12054)|0)|0)+16384>>15;J[a>>2]=P(w+(f+(g+(l+(b+p|0)|0)|0)|0)|0,8666)+16384>>15;f=y-x|0;g=i-h|0;b=P(f+g|0,3453);h= -c-q|0;l=P(h+f|0,-12131);c=l+(b+P(f,11314)|0)|0;i=v-u|0;f=P(i+f|0,6626);k=n-k|0;J[a+224>>2]=((c+f|0)+P(k,-11148)|0)+16384>>15;c=P(g+i|0,9262);q=P(g+h|0,-6626);J[a+160>>2]=(((c+(q+P(g,-17237)|0)|0)+b|0)+P(k,12131)|0)+16384>>15;b=P(h+i|0,11148)+16384|0;J[a+96>>2]=(l+(q+(b+P(h,11061)|0)|0)|0)+P(k,-9262)>>15;J[a+32>>2]=(f+(c+(b+P(i,-14905)|0)|0)|0)+P(k,3453)>>15;J[a+128>>2]=(((o+P(s,540)|0)+P(m,-11759)|0)+P(r,5091)|0)+e>>15;b=j;j=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function Lv(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;f=xb-16|0;xb=f;c=J[a+104>>2];b=Ab[J[a+516>>2]](a,1886352244,c,f+4|0)|0;a:{if(b)break a;h=J[c+8>>2];l=J[f+4>>2];e=J[a+476>>2];b=yd(c,32);if(b)break a;b:{c:{d:{e:{f:{if((e|0)!=151552){b=3;if((e|0)!=131072)break b;g=J[c+28>>2];d=f+8|0;i=rc(c,d);b=J[f+8>>2];if(b)break b;b=3;if(i>>>0>L[a+264>>1])break b;e=0;k=Tb(g,2,0,i,0,d);if(J[f+8>>2])break c;b=Tc(c,i<<1);J[f+8>>2]=b;if(b)break c;if(!i)break f;b=0;while(1){r=(b<<1)+k|0,s=Zc(c),I[r>>1]=s; -b=b+1|0;if((i|0)!=(b|0))continue;break}Ec(c);m=i&1;g:{if((i|0)==1){b=0;break g}n=i&65534;b=0;d=0;while(1){j=e<<1;o=L[(j|2)+k>>1];p=o-257|0;j=L[k+j>>1];q=j-257|0;b=j>>>0>257?(b&65535)<(q|0)?q:b:b;b=o>>>0>257?(b&65535)<(p|0)?p:b:b;e=e+2|0;d=d+2|0;if((n|0)!=(d|0))continue;break}}if(!m)break d;e=L[(e<<1)+k>>1];d=e-257|0;b=e>>>0>257?(d|0)>(b&65535)?d:b:b;break d}d=J[c+28>>2];g=f+12|0;e=rc(c,g);b=J[f+12>>2];if(b)break b;b=3;if(L[a+264>>1]<=(e-1&65535)>>>0|e>>>0>258)break b;b=0;g=Tb(d,1,0,e,0,g);h:{if(J[f+ -12>>2])break h;c=Dd(c,g,e);J[f+12>>2]=c;if(c)break h;while(1){c=H[b+g|0]+b|0;if(!((c|0)<0|(c|0)>(e|0))){b=b+1|0;if((e|0)!=(b|0))continue;break e}break}J[f+12>>2]=3}if(g)Ab[J[d+8>>2]](d,g);b=J[f+12>>2];break b}Ec(c);b=0;break d}J[a+640>>2]=g;I[a+636>>1]=e;b=0;break b}d=0;m=b&65535;e=Tb(g,4,0,m,0,f+8|0);if(J[f+8>>2])break c;i:{j:{if(!m)break j;l=h+l|0;while(1){if(l>>>0<=M[c+8>>2]){if((b&65535)>>>0<=(d&65535)>>>0)break j;while(1){c=Tb(g,1,0,1,0,f+8|0);J[(d<<2)+e>>2]=c;if(J[f+8>>2])break i;H[c|0]=0;d= -d+1|0;if((m|0)!=(d|0))continue;break}break j}h=Nd(c,f+8|0);if(J[f+8>>2])break i;h=h&255;if(!(l>>>0>=h>>>0&M[c+8>>2]<=l-h>>>0)){h=l-J[c+8>>2]|0;h=(h|0)>0?h:0}n=(d<<2)+e|0;j=Tb(g,1,0,h+1|0,0,f+8|0);J[n>>2]=j;if(J[f+8>>2])break i;j=Dd(c,j,h);J[f+8>>2]=j;if(j)break i;H[J[n>>2]+h|0]=0;d=d+1|0;if((m|0)!=(d|0))continue;break}}J[a+644>>2]=e;J[a+640>>2]=k;I[a+638>>1]=b;I[a+636>>1]=i;b=0;break b}b=b&65535;c=b>>>0<=1?1:b;b=0;while(1){d=(b<<2)+e|0;i=J[d>>2];if(i)Ab[J[g+8>>2]](g,i);J[d>>2]=0;b=b+1|0;if((c|0)!= -(b|0))continue;break}}if(e)Ab[J[g+8>>2]](g,e);if(k)Ab[J[g+8>>2]](g,k);b=J[f+8>>2]}H[a+632|0]=1}xb=f+16|0;return b}function Ofa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,O=0,Q=0;b=J[b+84>>2];l=P(P(I[c+26>>1],J[b+52>>2]),10033);m=P(I[c+10>>1],J[b+20>>2])<<13|1024;k=P(J[b+84>>2],I[c+42>>1]);p=m+P(k,5793)|0;i=l+p>>11;q=P(P(I[c+18>>1],J[b+36>>2]),10033);n=P(I[c+2>>1],J[b+4>>2])<< -13|1024;o=P(J[b+68>>2],I[c+34>>1]);r=n+P(o,5793)|0;g=q+r>>11;h=P(i+g|0,2998);f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;s=P(P(I[c+22>>1],J[b+44>>2]),10033);t=P(I[c+6>>1],J[b+12>>2])<<13|1024;u=P(J[b+76>>2],I[c+38>>1]);v=t+P(u,5793)|0;j=s+v>>11;w=h+(j+g<<13)|0;x=P(P(I[c+16>>1],J[b+32>>2]),10033);y=P(I[c>>1],J[b>>2])<<13|1024;z=P(J[b+64>>2],I[c+32>>1]);A=y+P(z,5793)|0;B=(x+A<<2&-8192)+131072|0;C=P(P(I[c+24>>1],J[b+48>>2]),10033);D=P(I[c+8>>1],J[b+16>>2])<<13|1024;E=P(J[b+80>>2],I[c+40>>1]);F=D+P(E,5793)|0;G= -C+F>>11;L=B+P(G,5793)|0;M=P(P(I[c+20>>1],J[b+40>>2]),10033);N=P(I[c+4>>1],J[b+8>>2])<<13|1024;O=P(J[b+72>>2],I[c+36>>1]);Q=N+P(O,5793)|0;b=P(M+Q>>11,10033);c=L+b|0;H[f|0]=K[a+(w+c>>>18&1023)|0];H[f+5|0]=K[a+(c-w>>>18&1023)|0];c=g-(i+j|0)<<13;g=P(G,-11586)+B|0;H[f+1|0]=K[a+(c+g>>>18&1023)|0];H[f+4|0]=K[a+(g-c>>>18&1023)|0];c=h+(i-j<<13)|0;b=L-b|0;H[f+2|0]=K[a+(c+b>>>18&1023)|0];H[f+3|0]=K[a+(b-c>>>18&1023)|0];c=m+P(k,-11586)>>11;f=n+P(o,-11586)>>11;i=P(c+f|0,2998);b=J[d+4>>2]+e|0;g=P(u,-11586)+t>> -11;h=i+(g+f<<13)|0;k=(P(z,1073730238)+y<<2&-8192)+131072|0;j=P(E,-11586)+D>>11;m=k+P(j,5793)|0;o=P(P(O,-11586)+N>>11,10033);n=m+o|0;H[b|0]=K[a+(h+n>>>18&1023)|0];H[b+5|0]=K[a+(n-h>>>18&1023)|0];f=f-(c+g|0)<<13;h=k+P(j,-11586)|0;H[b+1|0]=K[a+(f+h>>>18&1023)|0];H[b+4|0]=K[a+(h-f>>>18&1023)|0];c=i+(c-g<<13)|0;f=m-o|0;H[b+2|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];c=p-l>>11;f=r-q>>11;l=P(c+f|0,2998);b=J[d+8>>2]+e|0;d=v-s>>11;e=l+(d+f<<13)|0;g=(A-x<<2&-8192)+131072|0;i=F-C>>11;h=g+P(i, -5793)|0;j=P(Q-M>>11,10033);k=h+j|0;H[b|0]=K[a+(e+k>>>18&1023)|0];H[b+5|0]=K[a+(k-e>>>18&1023)|0];e=f-(c+d|0)<<13;f=g+P(i,-11586)|0;H[b+1|0]=K[a+(e+f>>>18&1023)|0];H[b+4|0]=K[a+(f-e>>>18&1023)|0];c=l+(c-d<<13)|0;d=h-j|0;H[b+2|0]=K[a+(c+d>>>18&1023)|0];H[b+3|0]=K[a+(d-c>>>18&1023)|0]}function $ha(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;c=1;a:{b:switch(((b|0)<=0?J[a+572>>2]:b)-3|0){case 0:f=xb-960|0;xb=f;c:{d:{e:{k=J[a+4>>2];if(k){i=J[a+16>>2];g=J[a+20>>2];b=Fd(f+16|0,0);J[195395]=0; -$(1242,b|0,a|0);c=J[195395];J[195395]=0;if((c|0)==1)break d;J[195395]=0;c=L[a+26>>1];d=J[195395];J[195395]=0;if((d|0)==1)break d;J[195395]=0;d=J[a+68>>2];h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;ka(1170,b|0,i|0,g|0,c|0,d|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break d;J[195395]=0;c=J[a+4>>2];d=J[a+44>>2];h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;fa(1101,b|0,(c?d?c+40|0:0:0)|0,256);c=J[195395];J[195395]=0;if((c|0)==1)break d;J[195395]=0;c=J[a+932>>2];d=J[195395];J[195395]= -0;if((d|0)==1)break d;f:{if(!c)break f;J[195395]=0;_(1212,b|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break f;break d}g:{if((g|0)<=0)break g;d=0;if((i|0)>0)while(1){J[a+328>>2]=(P(d,100)|0)/(g|0);h=(d^-1)+g|0;c=0;while(1){h:{if(J[a+44>>2]){J[195395]=0;e=jh(a,c,d);j=J[195395];J[195395]=0;if((j|0)==1)break d;J[195395]=0;Pg(b,(c^-1)+i|0,h,e);e=J[195395];J[195395]=0;if((e|0)!=1)break h;break d}J[195395]=0;eg(f+12|0,a,c,d,1);e=J[195395];J[195395]=0;if((e|0)==1)break d;J[195395]=0;J[f+8>>2]=K[f+12|0]|K[f+ -13|0]<<8|(K[f+14|0]<<16|K[f+15|0]<<24);Rl(b,(c^-1)+i|0,h,f+8|0,0);e=J[195395];J[195395]=0;if((e|0)==1)break d}J[195395]=0;e=J[a+932>>2];j=J[195395];J[195395]=0;if((j|0)==1)break d;if(e){J[195395]=0;e=K[(J[a+932>>2]+P(J[a+16>>2],d)|0)+c|0];j=J[195395];J[195395]=0;if((j|0)==1)break d;J[195395]=0;ne(b,(c^-1)+i|0,h,e);e=J[195395];J[195395]=0;if((e|0)==1)break d}c=c+1|0;if((i|0)!=(c|0))continue;break}d=d+1|0;if((g|0)!=(d|0))continue;break g}J[a+328>>2]=(P(g,100)-100|0)/(g|0)}J[195395]=0;aa(1249,a|0,b| -0,1)|0;c=J[195395];J[195395]=0;if((c|0)==1)break d;J[b>>2]=234140;J[195395]=0;_(1097,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;J[195395]=0;_(1098,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break e}xb=f+960|0;b=(k|0)!=0;break c}ga(0)|0;_b();B()}a=Z()|0;Nf(b);ba(a|0);B()}break a;case 3:b=cs(a);break a;case 5:b=$n(a);break a;case 2:c=$n(a);break;default:break b}J[a+572>>2]=1;return c|0}J[a+572>>2]=1;return b|0}function Xj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{d=b;g=J[b>>2];if(g){c=J[b+4>>2]; -if(!c)break b;while(1){d=c;c=J[c>>2];if(c)continue;break}}g=J[d+4>>2];if(g)break b;f=J[d+8>>2];g=0;e=1;break a}f=J[d+8>>2];J[g+8>>2]=f;e=0}c=J[f>>2];c:{if((d|0)==(c|0)){J[f>>2]=g;if((a|0)==(d|0)){c=0;a=g;break c}c=J[f+4>>2];break c}J[f+4>>2]=g}h=!K[d+12|0];if((b|0)!=(d|0)){f=J[b+8>>2];J[d+8>>2]=f;J[f+((J[f>>2]!=(b|0))<<2)>>2]=d;f=J[b>>2];J[d>>2]=f;J[f+8>>2]=d;f=J[b+4>>2];J[d+4>>2]=f;if(f)J[f+8>>2]=d;H[d+12|0]=K[b+12|0];a=(a|0)==(b|0)?d:a}if(!(h|!a)){if(e)while(1){b=K[c+12|0];d:{e=J[c+8>>2];if(J[e>> -2]!=(c|0)){if(!b){H[c+12|0]=1;H[e+12|0]=0;d=J[e+4>>2];b=J[d>>2];J[e+4>>2]=b;if(b)J[b+8>>2]=e;b=J[e+8>>2];J[d+8>>2]=b;J[b+(((e|0)!=J[b>>2])<<2)>>2]=d;J[d>>2]=e;J[e+8>>2]=d;b=J[c>>2];a=(b|0)==(a|0)?c:a;c=J[b+4>>2]}e:{f:{d=J[c>>2];g:{if(!(K[d+12|0]?0:d)){b=J[c+4>>2];if(K[b+12|0]?0:b)break g;H[c+12|0]=0;c=J[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(K[c+12|0])break d}H[c+12|0]=1;return}b=J[c+4>>2];if(!b)break f}if(K[b+12|0])break f;d=c;break e}H[d+12|0]=1;H[c+12|0]=0;a=J[d+4>>2];J[c>>2]=a;if(a)J[a+8>> -2]=c;a=J[c+8>>2];J[d+8>>2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d+4>>2]=c;J[c+8>>2]=d;b=c}c=J[d+8>>2];H[d+12|0]=K[c+12|0];H[c+12|0]=1;H[b+12|0]=1;b=J[c+4>>2];a=J[b>>2];J[c+4>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[b+8>>2]=a;J[a+(((c|0)!=J[a>>2])<<2)>>2]=b;J[b>>2]=c;J[c+8>>2]=b;return}if(!b){H[c+12|0]=1;H[e+12|0]=0;b=J[c+4>>2];J[e>>2]=b;if(b)J[b+8>>2]=e;b=J[e+8>>2];J[c+8>>2]=b;J[b+(((e|0)!=J[b>>2])<<2)>>2]=c;J[c+4>>2]=e;J[e+8>>2]=c;a=(a|0)==(e|0)?c:a;c=J[e>>2]}b=J[c>>2];i:{if(!(!b|K[b+12|0])){d=c;break i}d= -J[c+4>>2];if(!(K[d+12|0]?0:d)){H[c+12|0]=0;c=J[c+8>>2];if((a|0)!=(c|0)?K[c+12|0]:0)break d;H[c+12|0]=1;return}if(b){if(!K[b+12|0]){d=c;break i}d=J[c+4>>2]}H[d+12|0]=1;H[c+12|0]=0;a=J[d>>2];J[c+4>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[d+8>>2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d>>2]=c;J[c+8>>2]=d;b=c}c=J[d+8>>2];H[d+12|0]=K[c+12|0];H[c+12|0]=1;H[b+12|0]=1;b=J[c>>2];a=J[b+4>>2];J[c>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[b+8>>2]=a;J[a+(((c|0)!=J[a>>2])<<2)>>2]=b;J[b+4>>2]=c;J[c+8>>2]=b;return}b=J[c+8>> -2];c=J[((J[b>>2]==(c|0))<<2)+b>>2];continue}H[g+12|0]=1}}function hea(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=xb-192|0;xb=D;e=a;while(1){a:{o=e;d=J[(k<<2)+b>>2]+c|0;f=K[d|0];g=K[d+13|0];l=f-g|0;i=K[d+3|0];j=K[d+10|0];y=i-j|0;r=K[d+2|0];s=K[d+11|0];m=r-s|0;t=K[d+1|0];u=K[d+12|0];h=t-u|0;z=m+h|0;v=K[d+5|0];w=K[d+8|0];n=v-w|0;x=K[d+4|0];A=K[d+9|0];q=x-A|0;B=n-q|0;C=K[d+6|0];p=K[d+7|0];d=C-p|0;J[e+28>>2]= -l+y-((z+B|0)+d);v=v+w|0;t=t+u|0;u=v+t|0;i=i+j|0;j=x+A|0;r=r+s|0;s=j+r|0;w=C+p|0;g=f+g|0;x=w+g|0;J[e>>2]=((u+(i+s|0)|0)+x|0)-1792;f=i<<1;J[e+16>>2]=((P(s-f|0,-7223)+P(u-f|0,2578)|0)+P(x-f|0,10438)|0)+4096>>13;f=r-j|0;g=g-w|0;i=t-v|0;j=P(g+i|0,9058)+4096|0;J[e+24>>2]=(P(f,-11295)+j|0)+P(i,-14084)>>13;J[e+8>>2]=(j+P(f,5027)|0)+P(g,2237)>>13;f=y<<13;g=((P(B,11512)-f|0)+P(z,-1297)|0)+4096|0;p=(g+P(m,-19447)|0)+P(q,9175)|0;m=P(d+q|0,6164)+P(l+m|0,9810)|0;J[e+20>>2]=p+m>>13;p=(g+P(h,-3474)|0)+P(n,-25148)| -0;h=P(n-d|0,3826)+P(l+h|0,10935)|0;J[e+12>>2]=p+h>>13;J[e+4>>2]=(m+((d+(f+h|0)|0)+P(d+l|0,-9232)|0)|0)+4096>>13;l=k-7|0;k=k+1|0;e=D;d=7;b:switch(l|0){case 0:continue;case 6:break a;default:break b}e=o+32|0;continue}break}while(1){c=J[e+32>>2];m=J[a+128>>2];h=c+m|0;o=J[e+96>>2];k=J[a+64>>2];n=o+k|0;l=h+n|0;q=J[e+64>>2];f=J[a+96>>2];g=q+f|0;b=g<<1;i=J[e>>2];j=J[a+160>>2];y=i+j|0;r=J[e+128>>2];s=J[a+32>>2];t=r+s|0;u=y+t|0;z=J[a+224>>2];v=J[a+192>>2];w=z+v|0;x=J[e+160>>2];A=J[a>>2];B=x+A|0;C=w+B|0;J[a+ -128>>2]=((P(l-b|0,-4717)+P(u-b|0,1684)|0)+P(C-b|0,6817)|0)- -8192>>14;J[a>>2]=P(C+(u+(g+l|0)|0)|0,5350)- -8192>>14;b=A-x|0;q=f-q|0;o=k-o|0;k=s-r|0;f=o+k|0;l=j-i|0;m=m-c|0;g=l-m|0;c=v-z|0;J[a+224>>2]=P(b+q-((f+g|0)+c)|0,5350)- -8192>>14;h=n-h|0;n=B-w|0;i=t-y|0;j=P(n+i|0,5915)- -8192|0;J[a+192>>2]=(P(h,-7376)+j|0)+P(i,-9198)>>14;J[a+64>>2]=(j+P(h,3283)|0)+P(n,1461)>>14;h=P(q,5350);n=((P(g,7518)-h|0)+P(f,-847)|0)- -8192|0;p=(n+P(o,-12700)|0)+P(m,5992)|0;o=P(c+m|0,4025)+P(b+o|0,6406)|0;J[a+160>>2]=p+ -o>>14;p=(n+P(k,-2269)|0)+P(l,-16423)|0;k=P(l-c|0,2499)+P(b+k|0,7141)|0;J[a+96>>2]=p+k>>14;J[a+32>>2]=(o+((h+(k+P(b,-6029)|0)|0)+P(c,-679)|0)|0)- -8192>>14;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b)continue;break}xb=D+192|0}function Jl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=J[((b<<2)+a|0)+88>>2];if(!g){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=54;Ab[J[J[a>>2]>>2]](a)}e=J[a+384>>2];a:{if((e|0)<0)break a;h=e+1|0;j=h&3;d=J[a+380>>2];c=0;if(e>>>0>=3){h=h&-4;e=0;while(1){i=f;f=c<<2;f=L[(J[d+(f|12)>>2]<<1)+g>>1]> -255?1:L[(J[d+(f|8)>>2]<<1)+g>>1]>255?1:L[(J[d+(f|4)>>2]<<1)+g>>1]>255?1:L[(J[f+d>>2]<<1)+g>>1]>255?1:i;c=c+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!j)break a;while(1){f=L[(J[d+(c<<2)>>2]<<1)+g>>1]>255?1:f;c=c+1|0;k=k+1|0;if((k|0)!=(j|0))continue;break}}if(!J[g+128>>2]){c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=255;d=J[c+4>>2]-1|0;J[c+4>>2]=d;b:{if(d)break b;if(Ab[J[c+12>>2]](a)|0)break b;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=219;d=J[c+4>>2]-1|0;J[c+ -4>>2]=d;c:{if(d)break c;if(Ab[J[c+12>>2]](a)|0)break c;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}d=J[a+384>>2];c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;i=e;e=f?(d<<1)+5|0:d+4|0;H[i|0]=e>>>8;d=J[c+4>>2]-1|0;J[c+4>>2]=d;d:{if(d)break d;if(Ab[J[c+12>>2]](a)|0)break d;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e:{if(d)break e;if(Ab[J[c+12>>2]](a)|0)break e;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=(f<<4)+ -b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;f:{if(b)break f;if(Ab[J[c+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}c=0;g:{if(J[a+384>>2]<0)break g;if(!f)while(1){b=c;e=K[(J[J[a+380>>2]+(c<<2)>>2]<<1)+g|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h:{if(d)break h;if(Ab[J[c+12>>2]](a)|0)break h;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=b+1|0;if((b|0)>2])continue;break g}while(1){b=c;d=L[(J[J[a+380>>2]+(c<<2)>>2]<<1)+g>>1];c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e| -0]=d>>>8;e=J[c+4>>2]-1|0;J[c+4>>2]=e;i:{if(e)break i;if(Ab[J[c+12>>2]](a)|0)break i;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=d;d=J[c+4>>2]-1|0;J[c+4>>2]=d;j:{if(d)break j;if(Ab[J[c+12>>2]](a)|0)break j;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=b+1|0;if((b|0)>2])continue;break}}J[g+128>>2]=1}return f}function rma(a){a=a|0;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;l=xb-16|0;xb=l;d=3;f=J[a+32>>2];a:{if(!f)break a;c=J[f+364>>2]; -if(!c)break a;b=J[c+588>>2];d=J[c+584>>2];f=J[f+360>>2];b:{if(!(!K[c+556|0]|(f|0)!=J[c+564>>2]|(d|0)!=J[c+568>>2])){if(!d)break b;if(!cd(b,J[c+572>>2],d<<2))break b}d=UG(c+556|0,f,d,b);if(d)break a}d=3;m=Pf(a,J[J[a+20>>2]-4>>2]);if(m>>>0>M[a+24>>2])break a;f=J[J[c+560>>2]+8>>2];J[l+12>>2]=0;d=161;g=(J[a+20>>2]-J[a+16>>2]|0)-4>>2;h=P(J[c+576>>2],m);c:{if(g>>>0>>0)break c;d=J[c+604>>2];i=J[c+600>>2];b=P(m,5);d:{if(d>>>0>=i+b>>>0)break d;j=J[c+596>>2];e=f;f=J[c+592>>2];e=Tb(e,1,d,b+d|0,f,l+12|0); -J[c+592>>2]=e;d=J[l+12>>2];if(d)break c;i=J[c+600>>2];J[c+596>>2]=e+i;J[c+604>>2]=b+J[c+604>>2];if(!f|(e|0)==(f|0))break d;d=J[a+16>>2];k=J[a+20>>2];if(d>>>0>=k>>>0)break d;n=e-f|0;while(1){e=J[d>>2];if(!(e>>>0>>0|e>>>0>=j>>>0)){J[d>>2]=e+n;k=J[a+20>>2]}d=d+4|0;if(k>>>0>d>>>0)continue;break}}J[c+600>>2]=b+i;p=g-h|0;f=p+m|0;if(m){d=f;n=0;while(1){o=J[c+580>>2];q=n+p<<2;h=Pf(a,J[q+J[a+16>>2]>>2])<<16;k=1;i=J[c+576>>2];if(i>>>0>=2)while(1){e:{f:{b=J[J[a+16>>2]+(d<<2)>>2];g=K[b|0];if((g|0)!=255){if((g| -0)!=30)break f;e=Ao(a,b,0,0)>>16;i=J[c+576>>2];break e}e=((K[b+3|0]|(K[b+2|0]<<8|K[b+1|0]<<16))<<8)+32768>>16;break e}j=b+1|0;g:switch(g-28|0){case 0:e=0;if(M[a+8>>2]<=b+2>>>0)break e;e=(K[b+2|0]|K[j|0]<<8)<<16>>16;break e;case 1:e=0;if(M[a+8>>2]<=b+4>>>0)break e;b=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break e;default:break g}if(g>>>0<=246){e=g-139|0;break e}b=J[a+8>>2];if(g>>>0<=250){e=0;if(b>>>0<=j>>>0)break e;e=(K[j|0]|g<<8)-63124|0;break e}e= -0;if(b>>>0<=j>>>0)break e;e=64148-(K[j|0]|g<<8)|0}d=d+1|0;o=o+4|0;h=P(J[o>>2],e)+h|0;k=k+1|0;if(k>>>0>>0)continue;break}b=J[c+596>>2];J[J[a+16>>2]+q>>2]=b;J[c+596>>2]=b+1;H[b|0]=255;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>24;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>16;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>8;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h;n=n+1|0;if((n|0)!=(m|0))continue;break}d=J[l+12>>2]}else d=0;J[a+20>>2]=J[a+16>>2]+(f<<2)}H[c+557|0]=1}xb=l+16|0;return d|0}function QC(a,b,c){var d= -0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(b<.016939999535679817)break a;f=b+-.016939999535679817;if(c){d=Kpa(J[195008],J[195009],1284865837,1481765933);e=zb;d=d+1|0;e=d?e:e+1|0;J[195008]=d;J[195009]=e;f=f*285.7142768952314+ +(e>>>1|0)*4.656612875245797E-10+-.5}else f=f*285.7142768952314;b:{if(R(f)<2147483648){e=~~f;break b}e=-2147483648}if((e|0)>=163)break a;f=+N[(e<<3)+284176>>2];if(f>a)break a;f=a-f;if(c){d=Kpa(J[195008],J[195009],1284865837,1481765933);c=zb;d=d+1|0;c=d?c:c+1|0;J[195008]=d;J[195009]= -c;f=f*285.7142768952314+ +(c>>>1|0)*4.656612875245797E-10+-.5}else f=f*285.7142768952314;if(R(f)<2147483648)c=~~f;else c=-2147483648;if((c|0)>=I[(e<<3)+284180>>1])break a;return c+I[(e<<3)+284182>>1]|0}h=xb-800|0;xb=h;if(!K[777664]){c=100;while(1){e=(c<<3)+h|0;d=e-16|0;J[d>>2]=0;J[d+4>>2]=1073741824;d=e-8|0;J[d>>2]=0;J[d+4>>2]=1073741824;d=e-24|0;J[d>>2]=0;J[d+4>>2]=1073741824;e=e-32|0;J[e>>2]=0;J[e+4>>2]=1073741824;c=c-5|0;e=(c<<3)+h|0;J[e>>2]=0;J[e+4>>2]=1073741824;if(c)continue;break}c=162;while(1){e= -c;d=c<<3;c=I[d+284180>>1]-1|0;i=(e|0)==162?1:e?c:1;g=d+284182|0;k=(+(e|0)+.5)*.0035000001080334187+.016939999535679817+-.473684211;l=+N[d+284176>>2];while(1){f=Pi(k,(+(c|0)+.5)*.0035000001080334187+l+-.210526316)*15.915494277358546+50;c:{if(R(f)<2147483648){d=~~f;break c}d=-2147483648}j=(d<<3)+h|0;f=R(f-(+(d|0)+.5));if(O[j>>3]>f){J[(d<<2)+777264>>2]=I[g>>1]+c;O[j>>3]=f}c=c-i|0;if((c|0)>=0)continue;break}c=e-1|0;if(e)continue;break}e=100;g=99;while(1){c=1;d=g;if(O[(d<<3)+h>>3]>1.5){while(1){d:{if(O[((c+ -d>>>0)%100<<3)+h>>3]<1.5){i=c;break d}i=50;g=c+1|0;if((g|0)==50)break d;i=g;if(O[((g+d>>>0)%100<<3)+h>>3]<1.5)break d;c=c+2|0;continue}break}j=e+99|0;c=1;g=-1;while(1){e:{if(O[((g+j>>>0)%100<<3)+h>>3]<1.5){e=c;break e}e=c+1|0;if((e|0)==50){g=-50;e=50;break e}g=c^-1;if(O[((j+g>>>0)%100<<3)+h>>3]<1.5)break e;g=-2-c|0;c=c+2|0;continue}break}J[(d<<2)+777264>>2]=J[(((e>>>0>i>>>0?d+i|0:g+j|0)|0)%100<<2)+777264>>2]}g=d-1|0;e=d;if(d)continue;break}H[777664]=1}a=Pi(b+-.473684211,a+-.210526316)*15.915494277358546+ -50;f:{if(R(a)<2147483648){c=~~a;break f}c=-2147483648}xb=h+800|0;return J[(c<<2)+777264>>2]}function yT(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;J[a+64>>2]=0;J[a+1140>>2]=b;j=a+1140|0;J[a+1344>>2]=j;k=a+112|0;J[a+1136>>2]=k;e=b+c|0;J[a+1148>>2]=e;J[a+1144>>2]=b;l=160;a:{if((c|0)<=0)break a;f=j;while(1){d=b+1|0;i=J[a+1136>>2];c=22;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{g=K[b|0];switch(g-1|0){case 0:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 13:case 14:case 20:case 21:case 29:case 30:break a; -case 11:break j;case 12:break k;case 9:break f;case 10:break g;case 1:case 15:case 16:case 17:case 18:case 19:case 22:case 23:case 24:case 25:case 26:case 27:case 28:break h;default:break i}}c=2;break f}if(d>>>0>=e>>>0)break a;d=b+2|0;g=20;c=4;switch(K[b+1|0]-7|0){case 5:break e;case 0:break f;default:break a}}if((g|0)==255)break d}if(g>>>0<32)break a;l:{if(g>>>0<=246){b=g-139|0;break l}c=b+2|0;if(c>>>0>e>>>0)break a;b=g<<8;d=K[d|0];b=g>>>0<=250?(b+d|0)-63124|0:64148-(b|d)|0;d=c}b=h?b:b<<16;c=(h| -0)!=0;break c}c=24}g=c;if(h)break a}b=J[(g<<2)+31232>>2];if((b|0)>i-k>>2)return 161;c=i-(b<<2)|0;m:{n:{o:{p:switch(g-2>>>1|0){case 1:J[a+64>>2]=1;J[a+32>>2]=J[c>>2]+J[a+32>>2];J[a+36>>2]=J[c+4>>2]+J[a+36>>2];J[a+40>>2]=J[c+8>>2];b=J[c+12>>2];break m;case 9:m=c,n=dc(J[c>>2],J[c+4>>2]),J[m>>2]=n;c=c+4|0;h=0;b=d;break b;case 10:b=I[c+2>>1];e=J[a+1376>>2];if(e){b=Pe(b,e);if(!b)break a;b=J[b>>2]}if((b|0)<0|J[a+1364>>2]<=(b|0)|(f-j|0)>180)break a;J[f>>2]=d;d=b<<2;e=d+J[a+1368>>2]|0;b=J[e>>2];J[f+16>>2]= -b;g=J[a+1372>>2];q:{if(g){e=J[d+g>>2]+b|0;break q}d=b;b=J[a+1360>>2];b=d+((b|0)>0?b:0)|0;J[f+16>>2]=b;e=J[e+4>>2]}J[f+12>>2]=b;J[f+20>>2]=e;if(!b)break a;f=f+12|0;break o;case 0:break n;case 11:break p;default:break a}if(f>>>0<=j>>>0)break a;f=f-12|0;b=J[f>>2];e=J[f+8>>2]}J[a+1344>>2]=f;break b}J[a+64>>2]=1;J[a+32>>2]=J[c>>2]+J[a+32>>2];J[a+40>>2]=J[c+4>>2];b=0}J[a+44>>2]=b;l=0;break a}d=b+5|0;if(e>>>0>>0)break a;b=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280| -b>>>24);if(b-32001>>>0<=4294903294){c=1;if(!h)break c;break a}b=h?b:b<<16;c=(h|0)!=0}h=c;if((i-k|0)>1020)break a;J[i>>2]=b;c=i+4|0;b=d}J[a+1136>>2]=c;if(b>>>0>>0)continue;break}}return l|0}function e0(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;i=xb-80|0;xb=i;e=bm(b,c);a:{if(e)break a;g=J[b+2740>>2];if(!(g&1)){e=tA(b,J[d+52>>2],d+56|0,0);if(e)break a;g=J[b+2740>>2]}b:{if(g&2)break b;e=tA(b,J[d+9856>>2],d+9860|0,1);if(e)break a;if(K[(J[J[d+36>> -2]+8>>2]+(a<<1)|0)+1|0]&64)break b;a=J[b+1404>>2];if((a|0)<=0)break b;e=J[b+1412>>2];p=e+P(a,44)|0;n=J[d+9848>>2];q=d+10068|0;while(1){a=Rb(M[d+40>>2]/40|0,n);c:{if(!J[d+10064>>2])break c;g=(a|0)>=32?32:a;a=0;h=0;m=0;while(1){j=P(a,36)+q|0;f=J[j+32>>2];d:{if(!(f&1))break d;o=f>>>3&1;l=(f&6)!=0;if(!(o|l^J[b+1416>>2]==H[e+13|0]))break d;k=I[e>>1]-J[j>>2]|0;f=k>>31;k=Rb((f^k)-f|0,n);f=(k|0)<(g|0);g=f?k:g;h=f?j:h;m=f?o:m;if(!(H[e+12|0]&1)|(!k|o))break d;f=I[e>>1];if(((f|0)>2]|0)==(l|0))break d;l= -f-J[j+12>>2]|0;f=l>>31;f=Rb((f^l)-f|0,n);if((f|0)>=(g|0))break d;h=j+12|0;m=0;g=f}a=a+1|0;if(a>>>0>2])continue;break}if(!h)break c;J[e+20>>2]=h;if(!(m&255))break c;H[e+12|0]=K[e+12|0]|8}e=e+44|0;if(p>>>0>e>>>0)continue;break}}a=J[b+2740>>2];e:{if(!(J[d+24>>2]|a&8)){AG(i+20|0,b,i+16|0,i+12|0);d=J[b+24>>2];if((d|0)<=0)break e;a=J[b+28>>2];d=a+P(d,40)|0;g=J[i+12>>2];f=J[i+16>>2];while(1){r=a,s=Rb(I[a+12>>1],f)+g|0,J[r+16>>2]=s;a=a+40|0;if(d>>>0>a>>>0)continue;break}break e}if(a&1)break e; -bA(b,0);a=J[b+44>>2];if((a|0)>0){e=J[b+52>>2];d=e+P(a,44)|0;while(1){a=J[e+12>>2];if(a){g=e+36|0;f=J[a+8>>2];h=J[e+40>>2];while(1){a=J[g>>2];J[a+16>>2]=f;I[a>>1]=L[a>>1]|4;g=a+32|0;if((a|0)!=(h|0))continue;break}}e=e+44|0;if(d>>>0>e>>>0)continue;break}}ys(b,0);ls(b,0)}if(!(K[b+2740|0]&2)){bA(b,1);a=J[b+1392>>2];if((a|0)>0){e=J[b+1400>>2];d=e+P(a,44)|0;while(1){a=J[e+12>>2];if(a){g=e+36|0;f=J[a+8>>2];h=J[e+40>>2];while(1){a=J[g>>2];J[a+20>>2]=f;I[a>>1]=L[a>>1]|8;g=a+32|0;if((a|0)!=(h|0))continue;break}}e= -e+44|0;if(d>>>0>e>>>0)continue;break}}ys(b,1);ls(b,1)}d=J[b+24>>2];if((d|0)<=0){e=0;break a}a=J[b+28>>2];d=a+P(d,40)|0;g=J[c+4>>2];b=J[c+8>>2];while(1){J[g>>2]=J[a+16>>2];J[g+4>>2]=J[a+20>>2];e=0;c=L[a>>1];H[b|0]=c&1?0:c&2?2:1;b=b+1|0;g=g+8|0;a=a+40|0;if(d>>>0>a>>>0)continue;break}}xb=i+80|0;return e|0}function R9(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;d=xb-48|0;xb=d;j=J[a+584>>2];J[j+80>>2]=c;J[j+76>>2]=b;g=j- -64|0;a:{b:{c:{d:{while(1){e:switch(ni(g,1)+3|0){case 0:b= -J[a+628>>2];c=J[a>>2];e=J[a+472>>2];J[d+40>>2]=J[j+88>>2];J[d+36>>2]=e;J[d+32>>2]=c;Ob(b,289056,266716,d+32|0);k=0;l=0;i=xb-16|0;b=-2;f:{if(!J[g+36>>2]|(!g|!J[g+32>>2]))break f;e=J[g+28>>2];if(!e|(g|0)!=J[e>>2])break f;f=J[e+4>>2];if(f-16180>>>0>31)break f;c=J[g+4>>2];if(!c){b=-5;if(M[e+64>>2]<8)break f}g:{if((f|0)==16211){f=J[e+108>>2];break g}J[e+4>>2]=16211;b=J[e+64>>2];f=J[e+60>>2]<<(b&7);J[e+60>>2]=f;h:{i:{j:{if(b>>>0>=8){b=b-8|0;c=(b>>>3|0)+1|0;m=c&3;if(b>>>0>=24)break j;b=0;break i}f=0;J[e+ -64>>2]=0;break h}n=c&1073741820;b=0;while(1){h=i+12|0;H[h+b|0]=f;H[(b|1)+h|0]=f>>>8;H[(b|2)+h|0]=f>>>16;c=b|3;H[h+c|0]=f>>>24;b=b+4|0;f=0;l=l+4|0;if((n|0)!=(l|0))continue;break}}k:{if(!m){f=0;break k}while(1){c=b;H[(i+12|0)+b|0]=f;f=f>>>8|0;b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}J[e+64>>2]=0;J[e+60>>2]=f;b=0;f=0;while(1){h=K[(i+12|0)+b|0];f=(h|0)==((f>>>0>=2?255:0)|0)?f+1|0:h?0:4-f|0;if(b>>>0>=c>>>0)break h;b=b+1|0;if(f>>>0<4)continue;break}}J[e+108>>2]=f;c=J[g+4>>2]}i=J[g>>2];b=0;l:{if(!c| -f>>>0>3)break l;while(1){h=K[b+i|0];f=(h|0)==((f>>>0>=2?255:0)|0)?f+1|0:h?0:4-f|0;b=b+1|0;if(b>>>0>=c>>>0)break l;if(f>>>0<4)continue;break}}J[e+108>>2]=f;J[g>>2]=b+i;J[g+4>>2]=J[g+4>>2]-b;i=J[g+8>>2]+b|0;J[g+8>>2]=i;b=-3;if((f|0)!=4)break f;f=J[g+20>>2];b=0;J[e+52>>2]=0;J[e+44>>2]=0;J[e+48>>2]=0;J[e+32>>2]=0;J[g+24>>2]=0;c=J[e+12>>2];if(c)J[g+48>>2]=c&1;J[e+60>>2]=0;J[e+64>>2]=0;J[e+36>>2]=0;J[e+24>>2]=32768;J[e+16>>2]=0;J[e+8>>2]=0;J[e+7108>>2]=1;J[e+7112>>2]=-1;c=e+1332|0;J[e+112>>2]=c;J[e+84>> -2]=c;J[e+80>>2]=c;J[g+20>>2]=f;J[g+8>>2]=i;J[e+4>>2]=16191}if(b)break b;break;case 4:break d;case 3:break e;default:break c}if(J[j+80>>2])continue;break}b=1;break a}c=J[j+80>>2];b=1;if(!c)break a;b=J[a+628>>2];e=J[a>>2];a=J[a+472>>2];J[d+24>>2]=c;J[d+20>>2]=a;J[d+16>>2]=e;Ob(b,289056,267644,d+16|0);break b}b=J[a+628>>2];a=J[a>>2];J[d+4>>2]=J[j+88>>2];J[d>>2]=a;Ob(b,289056,265088,d)}b=0}xb=d+48|0;return b|0}function op(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;j= -xb-16|0;xb=j;J[j+12>>2]=0;o=J[a+100>>2];k=J[a+736>>2];a:{b:{if(!k){e=vj(a,0);J[j+12>>2]=e;if(e)break b;k=J[a+736>>2]}l=J[k+12>>2];e=J[l>>2];d=J[k+4>>2];if(!d){d=Tb(o,4,0,e,0,j+12|0);J[k+4>>2]=d;if(J[j+12>>2])break b}e=b>>>0>e>>>0?e:b;c:{if(!e)break c;if(e>>>0>=4){i=e&-4;b=0;while(1){h=J[c>>2];if((h|0)!=J[d>>2]){J[d>>2]=h;f=1}h=J[c+4>>2];if((h|0)!=J[d+4>>2]){J[d+4>>2]=h;f=1}h=J[c+8>>2];if((h|0)!=J[d+8>>2]){J[d+8>>2]=h;f=1}h=J[c+12>>2];if((h|0)!=J[d+12>>2]){J[d+12>>2]=h;f=1}d=d+16|0;c=c+16|0;b=b+4| -0;if((i|0)!=(b|0))continue;break}}b=e&3;if(!b)break c;while(1){i=J[c>>2];if((i|0)!=J[d>>2]){J[d>>2]=i;f=1}d=d+4|0;c=c+4|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}i=J[l>>2];b=J[a+4>>2];d:{if(b&2147418112){if(e>>>0>=i>>>0)break d;c=J[(J[l+16>>2]+P(b>>>16|0,12)|0)-12>>2]+(e<<2)|0;h=i+(e^-1)|0;m=i-e&3;e:{if(!m){g=e;break e}b=0;g=e;while(1){n=J[c>>2];if((n|0)!=J[d>>2]){J[d>>2]=n;f=1}d=d+4|0;c=c+4|0;g=g+1|0;b=b+1|0;if((m|0)!=(b|0))continue;break}}if(h>>>0<3)break d;while(1){b=J[c>>2];if((b|0)!=J[d>>2]){J[d>> -2]=b;f=1}b=J[c+4>>2];if((b|0)!=J[d+4>>2]){J[d+4>>2]=b;f=1}b=J[c+8>>2];if((b|0)!=J[d+8>>2]){J[d+8>>2]=b;f=1}b=J[c+12>>2];if((b|0)!=J[d+12>>2]){J[d+12>>2]=b;f=1}d=d+16|0;c=c+16|0;g=g+4|0;if((i|0)!=(g|0))continue;break}break d}if(e>>>0>=i>>>0)break d;h=i+(e^-1)|0;c=J[l+12>>2]+P(e,24)|0;m=i-e&3;f:{if(!m){g=e;break f}b=0;g=e;while(1){n=J[c+8>>2];if((n|0)!=J[d>>2]){J[d>>2]=n;f=1}d=d+4|0;c=c+24|0;g=g+1|0;b=b+1|0;if((m|0)!=(b|0))continue;break}}if(h>>>0<3)break d;while(1){b=J[c+8>>2];if((b|0)!=J[d>>2]){J[d>> -2]=b;f=1}b=J[c+32>>2];if((b|0)!=J[d+4>>2]){J[d+4>>2]=b;f=1}b=J[c+56>>2];if((b|0)!=J[d+8>>2]){J[d+8>>2]=b;f=1}b=J[c+80>>2];if((b|0)!=J[d+12>>2]){J[d+12>>2]=b;f=1}d=d+16|0;c=c+96|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}if(J[k+8>>2]){b=-1;if(!(f&255))break a}f=Tb(o,4,0,i,0,j+12|0);if(J[j+12>>2])break b;b=J[a+736>>2];if(!K[b+24|0]){rv(a);b=J[a+736>>2]}qv(b,e,J[k+4>>2],f);b=qm(a,J[l>>2],f,0);J[j+12>>2]=b;if(b)break b;J[a+8>>2]=J[a+8>>2]&-32769|((e|0)!=0)<<15}if(f)Ab[J[o+8>>2]](o,f);b=J[j+12>>2]}xb=j+ -16|0;return b|0}function xea(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;if(J[a+76>>2]>0){u=J[a+284>>2]-1|0;q=J[a+400>>2];h=J[a+84>>2];while(1){f=s<<2;d=J[h+12>>2];n=Ab[J[J[a+4>>2]+32>>2]](a,J[(f+q|0)- -64>>2],P(d,J[q+8>>2]),d,1)|0;if(M[q+8>>2]>>0)d=J[h+12>>2];else{d=J[h+12>>2];c=M[h+32>>2]%(d>>>0)|0;d=c?c:d}j=J[h+28>>2];k=J[h+8>>2];c=(j>>>0)%(k>>>0)|0;l=(c|0)>0?k-c|0:c;a:{if((d|0)<=0)break a;m=J[(f+J[a+416>>2]|0)+4>>2];p=b+f|0;if((l| -0)<=0){c=0;if((d|0)!=1){g=d&-2;f=0;while(1){Ab[m|0](a,h,J[p>>2],J[(c<<2)+n>>2],P(J[h+40>>2],c),0,j);i=c|1;Ab[m|0](a,h,J[p>>2],J[(i<<2)+n>>2],P(i,J[h+40>>2]),0,j);c=c+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(d&1))break a;Ab[m|0](a,h,J[p>>2],J[(c<<2)+n>>2],P(J[h+40>>2],c),0,j);break a}t=l<<7;v=l&-8;r=l&7;w=l>>>0<8;i=0;while(1){c=J[(i<<2)+n>>2];Ab[m|0](a,h,J[p>>2],c,P(J[h+40>>2],i),0,j);c=c+(j<<7)|0;Oc(c,t);g=L[c-128>>1];f=0;o=0;if(!w)while(1){e=f<<7;I[e+c>>1]=g;I[(e|128)+c>>1]=g;I[(e|256)+c>> -1]=g;I[(e|384)+c>>1]=g;I[(e|512)+c>>1]=g;I[(e|640)+c>>1]=g;I[(e|768)+c>>1]=g;I[(e|896)+c>>1]=g;f=f+8|0;o=o+8|0;if((v|0)!=(o|0))continue;break}e=0;if(r)while(1){I[(f<<7)+c>>1]=g;f=f+1|0;e=e+1|0;if((r|0)!=(e|0))continue;break}i=i+1|0;if((i|0)!=(d|0))continue;break}}b:{if(J[q+8>>2]!=(u|0))break b;c=j+l|0;if(J[h+12>>2]<=(d|0))break b;p=(c>>>0)/(k>>>0)|0;j=c<<7;if(c>>>0>=k>>>0){if((k|0)>0){r=k&-8;l=k&7;t=k-1<<7;while(1){c=(d<<2)+n|0;i=J[c-4>>2];c=J[c>>2];Oc(c,j);m=0;while(1){g=L[i+t>>1];f=0;o=0;if(k>>> -0>=8)while(1){e=f<<7;I[e+c>>1]=g;I[(e|128)+c>>1]=g;I[(e|256)+c>>1]=g;I[(e|384)+c>>1]=g;I[(e|512)+c>>1]=g;I[(e|640)+c>>1]=g;I[(e|768)+c>>1]=g;I[(e|896)+c>>1]=g;f=f+8|0;o=o+8|0;if((r|0)!=(o|0))continue;break}e=0;if(l)while(1){I[(f<<7)+c>>1]=g;f=f+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}f=k<<7;i=f+i|0;c=c+f|0;m=m+1|0;if(p>>>0>m>>>0)continue;break}d=d+1|0;if((d|0)>2])continue;break}break b}while(1){Oc(J[(d<<2)+n>>2],j);d=d+1|0;if((d|0)>2])continue;break}break b}while(1){Oc(J[(d<<2)+ -n>>2],j);d=d+1|0;if((d|0)>2])continue;break}}h=h+88|0;s=s+1|0;if((s|0)>2])continue;break}}return fE(a,c)|0}function Eca(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;i=xb-32|0;xb=i;s=J[a+52>>2];n=J[a+12>>2];j=J[a>>2];e=cg(j);f=P(n?4:3,e);m=Qb(f);a:{if(!m){Ob(J[j+628>>2],J[j>>2],274575,0);break a}Pd(m,0,f);J[i+16>>2]=i+28;zc(j,322,i+16|0);J[i>>2]=i+24;zc(j,323,i);f=0;b:{c:{d:{e:{f:{g:{h:switch(L[a+ -28>>1]-1|0){case 0:case 4:g=L[a+30>>1];if(g>>>0>8)break d;h=1<>1];if(g>>>0>8)break d;h=1<>1];if(g>>>0>8)break d;g=1<>1];if(f>>>0>7)break d;g=1<>2]+c|0)|0;g=d-1|0;break b}f=0}r=c-J[i+28>>2]|0;y=1;g=0}t=1;i:{if(!d)break i;if(c){p=e+m|0;q=e+p|0;u=e+q|0;v=n?u:0;h=0;while(1){e=J[i+24>>2];e=e-((J[a+76>>2]+h>>>0)%(e>>>0)|0)|0;o=e+h>>>0>d>>>0?d-h|0:e;w=(P(c,g)<<2)+b|0;e=0;while(1){j:{k:{l:{if(z=(fk(j,m,J[a+80>>2]+e|0,J[a+76>>2]+h|0,0)|0)<0,A=0,B=J[a+4>>2],B?z:A)break l;if(z=(fk(j,p,J[a+80>>2]+e|0,J[a+76>>2]+h|0,1)|0)<0,A=0,B=J[a+4>>2],B?z:A)break l;if(z=(fk(j,q,J[a+80>>2]+e|0,J[a+76>>2]+ -h|0,2)|0)<0,A=0,B=J[a+4>>2],B?z:A)break l;if(!n)break k;if((fk(j,u,J[a+80>>2]+e|0,J[a+76>>2]+h|0,3)|0)>=0|!J[a+4>>2])break k}t=0;break j}k=J[a+76>>2];l=J[i+24>>2];k=P(Hg(j),(h+k>>>0)%(l>>>0)|0);l=J[i+28>>2];m:{if(l+e>>>0<=c>>>0){Ab[s|0](a,(e<<2)+w|0,e,g,l,o,0,r,k+m|0,k+p|0,k+q|0,n?k+v|0:0);break m}x=c-e|0;l=l-x|0;Ab[s|0](a,(e<<2)+w|0,e,g,x,o,l,l+r|0,k+m|0,k+p|0,k+q|0,n?k+v|0:0)}e=J[i+28>>2]+e|0;if(e>>>0>>0)continue}break}g=(y?o:0-o|0)+g|0;h=h+o|0;if(h>>>0>>0)continue;break}}if(f>>>0<2)break i; -f=0;while(1){a=(P(c,f)<<2)+b|0;e=(a+(c<<2)|0)-4|0;if(a>>>0>>0)while(1){g=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=g;a=a+4|0;e=e-4|0;if(a>>>0>>0)continue;break}f=f+1|0;if((f|0)!=(d|0))continue;break}}Kb(m)}xb=i+32|0;return t|0}function yi(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;h=J[b+12>>2];e=J[b+4>>2];a:{if(h>>>0>>0)break a;f=J[b+8>>2];if((K[a|0]|K[a+1|0]<<8)!=256|f-a>>>0<8)break a;d=a+2|0;if(d-e>>>0>h>>>0|f-d>>>0<4|K[d|0]&128)break a;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16| -K[d+3|0]<<24);b:{if(!c)break b;g=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;c:{if(g-e>>>0>h>>>0|f-g>>>0<4)break c;c=K[g+2|0]|K[g+3|0]<<8;j=(c<<8|c>>>8)&65535;c=K[g|0]|K[g+1|0]<<8;c=Kpa(P(j,(c<<8|c>>>8)&65535),0,6,0);if(zb)break c;g=g+4|0;if(g-e>>>0>h>>>0|c>>>0>f-g>>>0)break c;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)>0)break b}c=J[b+32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;if(!K[b+28|0])break a;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;f=J[b+8>>2];h=J[b+12>>2];e=J[b+4>>2]}c=a+6|0;if(c-e>>>0>h>>> -0|f-c>>>0<2)break a;d=a+8|0;if(M[b+12>>2]>2]>>>0)break a;f=J[b+8>>2]-d|0;d=K[a+6|0]|K[a+7|0]<<8;d=((d<<8|d>>>8)&65535)<<2;if(f>>>0>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;l=1;c=K[c|0]|K[c+1|0]<<8;if(!c)break a;c=(c<<8|c>>>8)&65535;m=c>>>0<=1?1:c;h=0;while(1){d=((h<<2)+a|0)+8|0;if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-d>>>0<4)return 0;if(K[d|0]&128)return 0;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d:{if(!c)break d;g=0;f=J[b+12>>2];c=(c<<24|(c&65280)<< -8|(c>>>8&65280|c>>>24))+a|0;e=J[b+4>>2];e:{if(f>>>0>>0)break e;i=J[b+8>>2];if(i-c>>>0<6)break e;k=c+4|0;if(f>>>0>>0|i-k>>>0<2)break e;j=f;f=c+6|0;if(j>>>0>>0)break e;e=K[c+4|0]|K[c+5|0]<<8;e=((e<<8|e>>>8)&65535)<<1;if(e>>>0>i-f>>>0)break e;e=J[b+16>>2]-e|0;J[b+16>>2]=e;if((e|0)<=0)break e;f=K[c+4|0]|K[c+5|0]<<8;f=(f<<8|f>>>8)&65535;e=K[c+2|0]|K[c+3|0]<<8;i=(e&65407)<<8|e>>>8;if(f>>>0<(i&32767)>>>0)break e;c=K[c|0]|K[c+1|0]<<8;c=Kpa((c<<8|c>>>8)&65535,0,f+(i&65535)<<(e>>>7&1),0);if(zb)break e; -e=(k+(f<<1)|0)+2|0;if(M[b+12>>2]>2]>>>0|c>>>0>J[b+8>>2]-e>>>0)break e;c=J[b+16>>2]-c|0;J[b+16>>2]=c;g=(c|0)>0}if(g)break d;c=J[b+32>>2];if(c>>>0>31)return 0;J[b+32>>2]=c+1;if(!K[b+28|0])return 0;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0}h=h+1|0;if((m|0)!=(h|0))continue;break}}return l|0}function cw(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;p=(g?1032:0)+a|0;J[p>>2]=0;q=(g?1548:516)+a|0;J[q>>2]=0;m=g?a+1548|0:a+516|0;n=g?a+1032|0:a;if(b>>>0>=2)while(1){a=c+2|0;k=h&1;o= -I[(k?c:a)>>1];j=I[(k?a:c)>>1]-o|0;h=(k?n:m)+4|0;g=k?l:i;a:{b:{if(!g)break b;a=(g<<5)+h|0;c:{while(1){r=J[h>>2];if((r|0)>(o|0))break c;if((o|0)==(r|0)){a=J[h+4>>2];if((j|0)<0){if((a|0)<=(j|0))break a;J[h+4>>2]=j;break a}if((a|0)>=(j|0))break a;J[h+4>>2]=j;break a}h=h+32|0;g=g-1|0;if(g)continue;break}h=a;break b}qc(h+32|0,h,g<<5)}J[h+4>>2]=j;J[h>>2]=o;if(k){l=l+1|0;break a}i=i+1|0}c=c+4|0;h=1;b=b-2|0;if(b>>>0>1)continue;break}J[p>>2]=l;J[q>>2]=i;if(d>>>0>=2){a=m+4|0;while(1){j=I[e+2>>1];c=I[e>>1]-j| -0;h=a;d:{e:{if(!i)break e;b=(i<<5)+h|0;g=i;f:{while(1){k=J[h>>2];if((k|0)>(j|0))break f;if((j|0)==(k|0)){b=J[h+4>>2];if((c|0)<0){if((b|0)<=(c|0))break d;J[h+4>>2]=c;break d}if((b|0)>=(c|0))break d;J[h+4>>2]=c;break d}h=h+32|0;g=g-1|0;if(g)continue;break}h=b;break e}qc(h+32|0,h,g<<5)}J[h+4>>2]=c;J[h>>2]=j;i=i+1|0}e=e+4|0;d=d-2|0;if(d>>>0>1)continue;break}}J[p>>2]=l;J[q>>2]=i;g:{if(!l)break g;h=n+4|0;a=l;while(1){h:{i:switch(a|0){case 1:b=J[h+4>>2];g=J[h>>2];break h;case 0:break g;default:break i}g= -J[h>>2];b=J[h+32>>2]-g|0;c=J[h+4>>2];if((b|0)>=(c|0)){b=c;break h}J[h+4>>2]=b}J[h+12>>2]=g;J[h+8>>2]=b+g;h=h+32|0;a=a-1|0;continue}}j:{if(!i)break j;h=m+4|0;a=i;while(1){k:{l:switch(a|0){case 1:b=J[h+4>>2];g=J[h>>2];break k;case 0:break j;default:break l}g=J[h>>2];b=g-J[h+32>>2]|0;c=J[h+4>>2];if((b|0)<=(c|0)){b=c;break k}J[h+4>>2]=b}J[h+8>>2]=g;J[h+12>>2]=b+g;h=h+32|0;a=a-1|0;continue}}if(l){J[n+16>>2]=J[n+16>>2]-f;h=n+4|0;a=J[n+12>>2];g=l-1|0;m:{if(!g){b=h;break m}while(1){b=J[h+44>>2];c=(b-a|0)/ -2|0;d=c+a|0;e=a+f|0;a=(c|0)<(f|0);J[h+8>>2]=a?d:e;J[h+44>>2]=a?d:b-f|0;a=J[h+40>>2];b=h+32|0;h=b;g=g-1|0;if(g)continue;break}}J[b+8>>2]=a+f}if(i){J[m+16>>2]=J[m+16>>2]-f;h=m+4|0;a=J[m+12>>2];g=i-1|0;n:{if(!g){b=h;break n}while(1){b=J[h+44>>2];c=(b-a|0)/2|0;d=c+a|0;e=a+f|0;a=(c|0)<(f|0);J[h+8>>2]=a?d:e;J[h+44>>2]=a?d:b-f|0;a=J[h+40>>2];b=h+32|0;h=b;g=g-1|0;if(g)continue;break}}J[b+8>>2]=a+f}}function wga(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;e=J[a+464>>2];if(J[a+280>>2]){c= -J[e+52>>2];if(!c){if(!(Ab[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){g=f<<2;d=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[d+20>>2]<<2)+e|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0; -H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0; -c=e+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Nb(J[((J[d+24>>2]<<2)+e|0)+120>>2],0,256)}f=f+1|0;if((f|0)>2])continue;break}J[e+16>>2]=-16;J[e+8>>2]=0;J[e+12>>2]=0;c=J[a+280>>2]}J[e+52>>2]=c-1}c:{if(J[e+16>>2]==-1)break c;g=J[b>>2];i=J[a+428>>2];c=J[a+412>>2];b=c;d:{if((c|0)<=0)break d;while(1){if(L[g+(J[(b<<2)+i>>2]<<1)>>1])break d;d=(b|0)>1;b=b-1|0;if(d)continue;break}b=0}d=J[a+408>>2];if((c|0)<(d|0))break c;c=J[a+420>>2];j=-1<< -c;k=1<>2]+24>>2]<<2)+e|0;while(1){f=(J[m+120>>2]+P(d,3)|0)-3|0;if((b|0)<(d|0))if(lc(a,f))break c;c=d;e:{f:{g:{while(1){h=g+(J[(c<<2)+i>>2]<<1)|0;if(L[h>>1]){if(!lc(a,f+2|0))break e;d=I[h>>1];if((d|0)>=0)break g;d=d+j|0;break f}if(lc(a,f+1|0)){d=lc(a,l)?j:k;break f}f=f+3|0;d=J[a+412>>2]>(c|0);c=c+1|0;if(d)continue;break}b=J[a>>2];J[b+20>>2]=117;Ab[J[b+4>>2]](a,-1);J[e+16>>2]=-1;return 1}d=d+k|0}I[h>>1]=d}d=c+1|0;if(J[a+412>>2]>(c|0))continue;break}}return 1}function ZB(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;i=J[(c?16:12)+b>>2];g=J[(c?8:4)+b>>2];f=P(c,9804)+a|0;b=f+9840|0;d=f+9844|0;a:{if((g|0)==J[b>>2]&(i|0)==J[d>>2])break a;J[b>>2]=g;J[d>>2]=i;d=J[a+10064>>2];b:{if(!d)break b;b=0;while(1){if(!(K[(P(b,36)+a|0)+10100|0]&16)){b=b+1|0;if((d|0)!=(b|0))continue;break b}break}b=Rb(J[(P(b,36)+a|0)+10080>>2],g);d=J[J[a+36>>2]+12>>2];if(d){h=d;d=L[J[J[a+4>>2]+88>>2]+12>>1];d=d>>>0<=5?40:h>>>0>=d>>>0?52:40}else d=40;if((c|0)!=1)break b;d=b+d&-64;if((d| -0)==(b|0))break b;j=hc(g,d,b);d=J[a+40>>2];b=J[a+10064>>2];c:{if(!b)break c;m=b&1;d:{if((b|0)==1){b=0;break d}n=b&-2;l=a+10068|0;b=0;while(1){h=P(b,36)+l|0;k=J[h+24>>2];d=(d|0)>(k|0)?d:k;h=0-J[h+28>>2]|0;d=(d|0)>(h|0)?d:h;h=P(b|1,36)+l|0;k=J[h+24>>2];d=(d|0)>(k|0)?d:k;h=0-J[h+28>>2]|0;d=(d|0)>(h|0)?d:h;b=b+2|0;e=e+2|0;if((n|0)!=(e|0))continue;break}}if(!m)break c;b=P(b,36)+a|0;e=J[b+10092>>2];d=(d|0)>(e|0)?d:e;b=0-J[b+10096>>2]|0;d=(b|0)<(d|0)?d:b}b=j-g|0;e=Rb(d,b);b=Rb(d,b);g=((e|0)<0?0-b|0:b)>>> -0<128?j:g}J[f+44>>2]=g;J[(P(c,9804)+a|0)+48>>2]=i;e:{if(!c){J[a+8>>2]=g;b=a+16|0;break e}J[a+12>>2]=g;b=a+20|0}J[b>>2]=i;b=P(c,9804)+a|0;if(J[b+52>>2]){j=b+56|0;d=0;while(1){e=j+P(d,12)|0;f=Rb(J[e>>2],g);J[e+8>>2]=f;J[e+4>>2]=f;d=d+1|0;if(d>>>0>2])continue;break}}o=b,p=(Rb(J[b+252>>2],g)|0)<40,H[o+256|0]=p;if(!J[a+10064>>2]|(c|0)!=1)break a;d=0;while(1){b=P(d,36)+a|0;c=b+10068|0;e=Rb(J[c>>2],g)+i|0;J[b+10076>>2]=e;J[b+10072>>2]=e;f=b+10088|0;e=b+10080|0;j=Rb(J[e>>2],g)+i|0;J[f>>2]=j;J[b+10084>> -2]=j;b=b+10100|0;J[b>>2]=J[b>>2]&-2;e=Rb(J[c>>2]-J[e>>2]|0,g);if(e+48>>>0<=96){h=c;c=J[c+4>>2]+32&-64;J[h+8>>2]=c;h=f;f=e>>31;f=(f^e)-f|0;f=f>>>0>=32?f>>>0<48?32:64:0;J[h>>2]=c+((e|0)<0?f:0-f|0);J[b>>2]=J[b>>2]|1}d=d+1|0;c=J[a+10064>>2];if(d>>>0>>0)continue;break}if(!c)break a;e=0;while(1){b=P(e,36)+a|0;g=b+10100|0;i=J[g>>2];f:{if((i&5)!=5)break f;f=b+10076|0;j=b+10088|0;b=0;while(1){d=P(b,36)+a|0;if(!((J[d+10100>>2]&5)!=1|J[d+10076>>2]>J[j>>2]|J[d+10088>>2]>2])){J[g>>2]=i&-2;break f}b=b+ -1|0;if((c|0)!=(b|0))continue;break}}e=e+1|0;if((c|0)!=(e|0))continue;break}}}function If(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;j=xb-16|0;xb=j;e=J[a>>2];a:{if(e>>>0>=b>>>0)break a;b:{c:{d=K[e|0];switch(d-43|0){case 0:case 2:break c;default:break b}}e=e+1|0;if((e|0)==(b|0))break a;n=(d|0)==45;d=K[e|0];switch(d-43|0){case 0:case 2:break a;default:break b}}h=1;d:{if((d|0)==46){d=e;m=1;break d}J[j+8>>2]=e;f=j+8|0;g=wg(f,b,10);e:{d=J[j+8>>2];if((e|0)!=(d|0)){if(K[d|0]!=35|b>>>0<=d>>>0)break e; -i=d+1|0;J[j+8>>2]=i;g=wg(f,b,g);d=J[j+8>>2];if((i|0)!=(d|0))break e}g=0;break a}if((d|0)==(e|0)){g=0;break a}m=(g|0)<32768;i=m?g<<16:g}e=0;f:{if(K[d|0]!=46|b>>>0<=d>>>0)break f;d=d+1|0;if(d>>>0>=b>>>0)break f;g:{if(!i)while(1){h:{f=K[d|0];switch(f|0){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break h}}if(f<<24>>24<0|f-58>>>0<4294967286)break f;i:{if((h|0)>214748363|(e|0)>214748363)break i;e=H[f+31104|0]+P(e,10)|0;if((c|0)>0){c=c-1|0;break i}h=P(h,10)}d=d+1|0;if((d|0)!=(b|0))continue; -break g}while(1){j:{f=K[d|0];switch(f|0){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break j}}if(f<<24>>24<0|f-58>>>0<4294967286)break f;k=H[f+31104|0]+P(e,10)|0;f=(h|0)<214748364&(e|0)<214748364;e=f?k:e;h=f?P(h,10):h;d=d+1|0;if((d|0)!=(b|0))continue;break}}d=b}f=1;k:{l:{m:{n:{k=d+1|0;if(!((K[d|0]|32)!=101|k>>>0>=b>>>0)){J[j+12>>2]=k;g=j+12|0;l=wg(g,b,10);o:{d=J[j+12>>2];if((k|0)!=(d|0)){if(K[d|0]!=35|b>>>0<=d>>>0)break o;f=d+1|0;J[j+12>>2]=f;l=wg(g,b,l);d=J[j+12>>2];if((f|0)!=(d| -0))break o}g=0;break a}g=0;if((d|0)==(k|0))break a;if((l|0)>1E3)break n;f=(l|0)>-1001;c=(f?l:0)+c|0}J[a>>2]=d;g=0;if(!(e|i))break a;a=2147483647;if(!m)break k;if(!f)break a;if((c|0)<=0)break m;while(1){if((i|0)>214748363)break k;p:{if((e|0)>=214748364){if((h|0)==1)break k;h=(h|0)/10|0;break p}e=P(e,10)}i=P(i,10);b=(c|0)>1;c=c-1|0;if(b)continue;break}break l}J[a>>2]=d;a=2147483647;if(e|i)break k;break a}if((c|0)>=0)break l;while(1){a=i;i=(i|0)/10|0;q:{if((h|0)<=214748363){h=P(h,10);break q}e=(e|0)/ -10|0}if(!(!e&a-10>>>0>=4294967277)){c=c+1|0;if(!c)break l;continue}break}break a}if(!e){a=i;break k}a=dc(e,h)+i|0}g=n?0-a|0:a}xb=j+16|0;return g}function Yfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;w=xb-384|0;xb=w;p=J[a+332>>2];b=J[b+84>>2];a=w;while(1){s=J[b+128>>2];l=I[c+64>>1];o=P(J[b+32>>2],I[c+16>>1]);j=P(J[b+224>>2],I[c+112>>1]);i=o-j|0;m=P(J[b+96>>2],I[c+48>>1]);k=P(J[b+160>>2],I[c+80>>1]);g=m-k|0;h=P(i+g| -0,4433);n=P(J[b+64>>2],I[c+32>>1]);q=P(J[b+192>>2],I[c+96>>1]);t=n-q<<13;f=P(I[c>>1],J[b>>2])<<13|1024;u=t+f|0;i=h+P(i,6270)|0;J[a+320>>2]=u-i>>11;J[a+32>>2]=i+u>>11;i=f-t|0;h=h+P(g,-15137)|0;J[a+224>>2]=i-h>>11;J[a+128>>2]=h+i>>11;s=P(P(l,s),10033);l=s+f|0;i=q<<13;g=i+P(n,11190)|0;q=l-g|0;u=k+o|0;h=P(u+j|0,7053);t=P(m,-4433);v=h+((t+P(o,-5540)|0)+P(j,-16244)|0)|0;J[a+192>>2]=q-v>>11;J[a+160>>2]=q+v>>11;l=g+l|0;g=P(o,2295);o=P(m,10703);m=h+P(u,2139)|0;g=(g+o|0)+m|0;J[a+352>>2]=l-g>>11;J[a>>2]=g+l>> -11;n=P(n,2998)-i|0;f=f-s|0;s=n+f|0;i=t+P(k,-12112)|0;k=P(j+k|0,-8565);m=m+(i+k|0)|0;J[a+288>>2]=s-m>>11;J[a+64>>2]=m+s>>11;f=f-n|0;j=k+(h+(P(j,12998)-o|0)|0)|0;J[a+256>>2]=f-j>>11;J[a+96>>2]=f+j>>11;a=a+4|0;b=b+4|0;c=c+2|0;r=r+1|0;if((r|0)!=8)continue;break}a=p+128|0;b=w;o=0;while(1){k=J[b+4>>2];f=J[b+20>>2];h=k+f|0;j=J[b+28>>2];m=P(h+j|0,7053);c=J[(o<<2)+d>>2]+e|0;l=m+P(h,2139)|0;n=J[b+12>>2];s=P(n,10703);i=l+(s+P(k,2295)|0)|0;g=J[b+24>>2];q=g<<13;p=J[b+8>>2];t=q+P(p,11190)|0;h=(J[b>>2]<<13)+131072| -0;u=P(J[b+16>>2],10033);v=h+u|0;r=t+v|0;H[c|0]=K[a+(i+r>>>18&1023)|0];H[c+11|0]=K[a+(r-i>>>18&1023)|0];i=p-g<<13;g=i+h|0;r=k-j|0;x=n-f|0;y=P(r+x|0,4433);r=y+P(r,6270)|0;H[c+1|0]=K[a+(g+r>>>18&1023)|0];H[c+10|0]=K[a+(g-r>>>18&1023)|0];n=P(n,-4433);g=n+P(f,-12112)|0;f=P(f+j|0,-8565);l=(g+f|0)+l|0;p=P(p,2998)-q|0;g=h-u|0;q=p+g|0;H[c+2|0]=K[a+(l+q>>>18&1023)|0];H[c+9|0]=K[a+(q-l>>>18&1023)|0];f=f+(m+(P(j,12998)-s|0)|0)|0;p=g-p|0;H[c+3|0]=K[a+(f+p>>>18&1023)|0];H[c+8|0]=K[a+(p-f>>>18&1023)|0];f=P(x,-15137)+ -y|0;h=h-i|0;H[c+4|0]=K[a+(f+h>>>18&1023)|0];H[c+7|0]=K[a+(h-f>>>18&1023)|0];j=m+((n+P(k,-5540)|0)+P(j,-16244)|0)|0;k=v-t|0;H[c+5|0]=K[a+(j+k>>>18&1023)|0];H[c+6|0]=K[a+(k-j>>>18&1023)|0];b=b+32|0;o=o+1|0;if((o|0)!=12)continue;break}xb=w+384|0}function DE(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;i=xb-16|0;xb=i;if((e|0)>0)while(1){if((g&255)==255){Ab[J[J[d>>2]+12>>2]](d,i+15|0,1,1,0,0)|0;g=K[i+15|0]}a:{if(g<<24>>24<0){h=g-127|0;H[i+15|0]=h;g=255;if(((h&255)+p|0)>(e|0)){s= -Ab[J[J[d>>2]+24>>2]](d)|0;g=e-p|0;H[i+15|0]=g;g=h+(g^-1)^-128}b:{c:switch(K[c+16|0]-8|0){case 24:h=0;Ab[J[J[d>>2]+12>>2]](d,i+11|0,4,1,0,0)|0;if(!K[i+15|0])break b;while(1){j=P(h,3)+b|0;l=K[i+11|0]|K[i+12|0]<<8;H[j|0]=l;H[j+1|0]=l>>>8;H[j+2|0]=K[i+13|0];ne(a,h+p|0,f,K[i+14|0]);h=h+1|0;if(h>>>0>2]+12>>2]](d,i+8|0,3,1,0,0)|0;l=K[i+15|0];if(!l)break b;n=0;h=0;if(l>>>0>=4){r=l&252;m=0;while(1){k=P(h,3);j=k+b|0;o=K[i+8|0]|K[i+9|0]<<8;H[j|0]=o;H[j+1|0]= -o>>>8;H[j+2|0]=K[i+10|0];k=(k|3)+b|0;H[k+2|0]=K[i+10|0];o=K[i+8|0]|K[i+9|0]<<8;H[k|0]=o;H[k+1|0]=o>>>8;H[j+8|0]=K[i+10|0];k=K[i+8|0]|K[i+9|0]<<8;H[j+6|0]=k;H[j+7|0]=k>>>8;H[j+11|0]=K[i+10|0];k=K[i+8|0]|K[i+9|0]<<8;H[j+9|0]=k;H[j+10|0]=k>>>8;h=h+4|0;m=m+4|0;if((r|0)!=(m|0))continue;break}}l=l&3;if(!l)break b;while(1){j=P(h,3)+b|0;m=K[i+8|0]|K[i+9|0]<<8;H[j|0]=m;H[j+1|0]=m>>>8;H[j+2|0]=K[i+10|0];h=h+1|0;n=n+1|0;if((l|0)!=(n|0))continue;break}break b;case 7:case 8:Ab[J[J[d>>2]+12>>2]](d,i+6|0,2,1,0, -0)|0;k=K[i+15|0];if(!k)break b;h=L[i+6>>1];l=h<<3;n=h>>>7&248;m=h>>>2&248;r=0;j=0;if(k>>>0>=4){t=k&252;o=0;while(1){q=P(j,3);h=q+b|0;H[h+2|0]=n;H[h+1|0]=m;H[h|0]=l;q=(q|3)+b|0;H[q+2|0]=n;H[q+1|0]=m;H[q|0]=l;H[h+11|0]=n;H[h+10|0]=m;H[h+9|0]=l;H[h+8|0]=n;H[h+7|0]=m;H[h+6|0]=l;j=j+4|0;o=o+4|0;if((t|0)!=(o|0))continue;break}}k=k&3;if(!k)break b;while(1){h=P(j,3)+b|0;H[h+2|0]=n;H[h+1|0]=m;H[h|0]=l;j=j+1|0;r=r+1|0;if((k|0)!=(r|0))continue;break}break b;case 0:break c;default:break b}Ab[J[J[d>>2]+12>>2]](d, -i+5|0,1,1,0,0)|0;h=K[i+15|0];if(!h)break b;Nb(b,K[i+5|0],h)}if((g&255)==255){g=255;break a}Ab[J[J[d>>2]+20>>2]](d,s,0)|0;break a}j=g+1|0;h=((j&255)+p|0)>(e|0);l=e-p|0;j=h?l:j;H[i+15|0]=j;Zr(a,b,c,d,j&255,f,p);g=h?g-l|0:-1}h=K[i+15|0];b=(L[a+26>>1]==24?P(h,3):h)+b|0;p=h+p|0;if((p|0)<(e|0))continue;break}xb=i+16|0;return g&255}function vp(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;o=J[a+88>>2];J[c>>2]=0;g=a+828|0;a:{if(!K[a+848|0]){n=J[a+104>>2];J[g+16>>2]=0;J[g+20>> -2]=0;h=8;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;e=L[a+152>>1];if(!e)break a;d=J[a+156>>2];e=d+(e<<4)|0;while(1){b:{if(J[d>>2]==1111770656){f=J[d+12>>2];if(f)break b}d=d+16|0;if(e>>>0>d>>>0)continue;break a}break}if(bc(n,J[d+8>>2])|f>>>0<8)break a;if(Ne(n,f,g))break a;d=J[a+828>>2];J[a+832>>2]=d+f;c:{d:{if((K[d+1|0]|K[d|0]<<8)!=1)break d;e=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(e>>>0<8)break d;l=K[d+2|0]<<8;k=K[d+3|0];h=l|k;if(f>>>0>>0|h>>>0>e-8>>>2>>>0)break d;J[a+840>>2]=f-e;m=d+e|0;J[a+836>>2]=m;J[a+844>>2]=h;d=d+8|0;j=d+(h<<2)|0;e:{if(!h)break e;f=k&3;if(f){e=d;while(1){h=h-1|0;j=P(K[e+3|0]|K[e+2|0]<<8,10)+j|0;d=e+4|0;e=d;i=i+1|0;if((f|0)!=(i|0))continue;break}}if((k|l)-1>>>0<3)break e;while(1){j=(((P(K[d+3|0]|K[d+2|0]<<8,10)+j|0)+P(K[d+7|0]|K[d+6|0]<<8,10)|0)+P(K[d+11|0]|K[d+10|0]<<8,10)|0)+P(K[d+15|0]|K[d+14|0]<<8,10)|0;d=d+16|0;h=h-4|0;if(h)continue;break}}if(j>>>0<=m>>>0)break c}rd(n,g);J[g+16>>2]=0;J[g+20>>2]=0;J[g+ -8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;return 8}H[a+848|0]=1}h=6;if(!b|!o)break a;f=J[a+844>>2];m=ac(b);if(!m|!f)break a;d=J[g>>2]+8|0;e=d+(f<<2)|0;i=L[o+14>>1];while(1){j=K[d+3|0]|K[d+2|0]<<8;if((i|0)==(K[d+1|0]|K[d|0]<<8)){if(!j)break a;while(1){f:{f=K[e+5|0];if(!(f&16))break f;l=J[a+840>>2];d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(l>>>0<=d>>>0)break f;i=l-d|0;if(i>>>0<=m>>>0)break f;k=K[e+6|0]|K[e+7|0]<<8|(K[e+8|0]<<16|K[e+9|0]<<24);g=d; -d=J[a+836>>2];if(Zb(b,g+d|0,i))break f;i=k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24);g:switch(f&15){case 0:case 1:if(i>>>0>=l>>>0)break f;d=d+i|0;if(!bh(d,0,l))break f;J[c+4>>2]=d;J[c>>2]=1;return 0;case 2:J[c+4>>2]=i;J[c>>2]=2;return 0;case 3:break g;default:break f}J[c+4>>2]=i;J[c>>2]=3;return 0}e=e+10|0;j=j-1|0;if(j)continue;break}break a}d=d+4|0;e=P(j,10)+e|0;f=f-1|0;if(f)continue;break}}return h|0}function Tca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l= -0,m=0,n=0,o=0;k=(g|0)/4|0;a:{if(!f)break a;c=f-1|0;j=J[a+64>>2];if(e>>>0>=4){d=e-4|0;m=d&4;n=d>>>0<4;o=(e&3|4)-5|0;while(1){l=c;a=e;f=b;c=i;if(!m){a=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=J[a+12>>2];f=b+16|0;c=c+1|0;a=d}g=d;if(!n){while(1){b=f;g=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[g>>2];J[b+4>>2]=J[g+4>>2];J[b+8>>2]=J[g+8>>2];J[b+12>>2]=J[g+12>>2];g=c;i=J[(K[c+1|0]<<2)+j>>2];J[b+16>>2]=J[i>>2];J[b+20>>2]=J[i+4>>2];J[b+24>>2]=J[i+8>>2];J[b+28>>2]=J[i+12>>2]; -f=b+32|0;c=c+2|0;a=a-8|0;if(a>>>0>3)continue;break}i=g+1|0;g=a;b=b+16|0}b:{if(g){a=2;c=J[(K[c|0]<<2)+j>>2];c:switch(o|0){case 2:J[f>>2]=J[c>>2];f=b+20|0;c=c+4|0;case 1:J[f>>2]=J[c>>2];f=f+4|0;c=c+4|0;break;case 0:break c;default:break b}J[f>>2]=J[c>>2];f=f+4|0;break b}a=1}c=l-1|0;i=(a+i|0)+k|0;b=(h<<2)+f|0;if(l)continue;break}break a}d:switch(e-1|0){case 1:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+8|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i| -0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];a=h<<2;b=a+b|0;c=b+8|0;d=(i+k|0)+1|0;e=J[(K[d|0]<<2)+j>>2];J[c>>2]=J[e>>2];J[b+12>>2]=J[e+4>>2];b=(a+c|0)+8|0;i=(d+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 2:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+12|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];c=h<<2;a=c+b|0;d=a+12|0;e=(i+k|0)+1| -0;b=J[(K[e|0]<<2)+j>>2];J[d>>2]=J[b>>2];J[a+16>>2]=J[b+4>>2];J[a+20>>2]=J[b+8>>2];b=(c+d|0)+12|0;i=(e+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 0:break d;default:break a}if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=c;if(!c)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function Oca(a,b,c,d,e,f, -g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;k=(g|0)/4|0;a:{if(!f)break a;c=f-1|0;j=J[a+60>>2];if(e>>>0>=4){d=e-4|0;m=d&4;n=d>>>0<4;o=(e&3|4)-5|0;while(1){l=c;a=e;f=b;c=i;if(!m){a=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=J[a+12>>2];f=b+16|0;c=c+1|0;a=d}g=d;if(!n){while(1){b=f;g=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[g>>2];J[b+4>>2]=J[g+4>>2];J[b+8>>2]=J[g+8>>2];J[b+12>>2]=J[g+12>>2];g=c;i=J[(K[c+1|0]<<2)+j>>2];J[b+16>> -2]=J[i>>2];J[b+20>>2]=J[i+4>>2];J[b+24>>2]=J[i+8>>2];J[b+28>>2]=J[i+12>>2];f=b+32|0;c=c+2|0;a=a-8|0;if(a>>>0>3)continue;break}i=g+1|0;g=a;b=b+16|0}b:{if(g){a=2;c=J[(K[c|0]<<2)+j>>2];c:switch(o|0){case 2:J[f>>2]=J[c>>2];f=b+20|0;c=c+4|0;case 1:J[f>>2]=J[c>>2];f=f+4|0;c=c+4|0;break;case 0:break c;default:break b}J[f>>2]=J[c>>2];f=f+4|0;break b}a=1}c=l-1|0;i=(a+i|0)+k|0;b=(h<<2)+f|0;if(l)continue;break}break a}d:switch(e-1|0){case 1:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];i= -(i+k|0)+1|0;b=((h<<2)+b|0)+8|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];a=h<<2;b=a+b|0;c=b+8|0;d=(i+k|0)+1|0;e=J[(K[d|0]<<2)+j>>2];J[c>>2]=J[e>>2];J[b+12>>2]=J[e+4>>2];b=(a+c|0)+8|0;i=(d+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 2:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+12|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>> -2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];c=h<<2;a=c+b|0;d=a+12|0;e=(i+k|0)+1|0;b=J[(K[e|0]<<2)+j>>2];J[d>>2]=J[b>>2];J[a+16>>2]=J[b+4>>2];J[a+20>>2]=J[b+8>>2];b=(c+d|0)+12|0;i=(e+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 0:break d;default:break a}if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=c;if(!c)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0; -i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function Cna(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;h=rh(a,b);j=K[h|0]|K[h+1|0]<<8;a:{b:{c:{if(c){a=K[h+4|0]|K[h+5|0]<<8;a=(j|0)!=256?169776:a?((a<<8|a>>>8)&65535)+h|0:169776;l=K[a|0]|K[a+1|0]<<8;b=((l<<8|l>>>8)&65535)-1|0;p=a+2|0;while(1){if(l){n=(m<<2)+d|0;o=J[n>>2];g=0;a=b;while(1){k=a+g>>>1|0;i=P(k,6)+p|0;i=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i<<24|(i&65280)<<8|(i>>>8&65280| -i>>>24);d:{if(i>>>0>o>>>0){a=k-1|0;break d}if((i|0)==(o|0))break c;g=k+1|0}if((a|0)>=(g|0))continue;break}}if(e)J[e>>2]=65535;m=m+1|0;if((m|0)!=(c|0))continue;break}}b=169776;e:{if((j|0)!=256)break e;a=K[h+4|0]|K[h+5|0]<<8;if(!a)break e;b=((a<<8|a>>>8)&65535)+h|0}f:{g:{a=K[b|0]|K[b+1|0]<<8;if(a){d=b+2|0;a=((a<<8|a>>>8)&65535)-1|0;g=0;while(1){c=a+g>>>1|0;b=d+P(c,6)|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);h:{if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))>>>0>=1145457749){a=c-1|0;break h}if((b| -0)==1414284868)break g;g=c+1|0}if((a|0)>=(g|0))continue;break}}if(e)J[e>>2]=65535;b=169776;i:{if((j|0)!=256)break i;a=K[h+4|0]|K[h+5|0]<<8;if(!a)break i;b=((a<<8|a>>>8)&65535)+h|0}j:{a=K[b|0]|K[b+1|0]<<8;if(a){d=b+2|0;a=((a<<8|a>>>8)&65535)-1|0;g=0;while(1){c=a+g>>>1|0;b=d+P(c,6)|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);k:{if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))>>>0>=1684434037){a=c-1|0;break k}if((b|0)==1953261156)break j;g=c+1|0}if((a|0)>=(g|0))continue;break}}if(e)J[e>>2]=65535; -b=169776;l:{if((j|0)!=256)break l;a=K[h+4|0]|K[h+5|0]<<8;if(!a)break l;b=((a<<8|a>>>8)&65535)+h|0}m:{a=K[b|0]|K[b+1|0]<<8;if(a){d=b+2|0;a=((a<<8|a>>>8)&65535)-1|0;g=0;while(1){c=a+g>>>1|0;b=d+P(c,6)|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);n:{if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))>>>0>=1818326127){a=c-1|0;break n}if((b|0)==1853120876)break m;g=c+1|0}if((a|0)>=(g|0))continue;break}}if(e)J[e>>2]=65535;a=0;break f}if(e)J[e>>2]=c;a=1818326126;break f}if(e)J[e>>2]=c;a=1684434036;break f}if(e)J[e>> -2]=c;a=1145457748}b=0;if(!f)break a;break b}if(e)J[e>>2]=k;if(!f)return 1;a=J[n>>2];b=1}J[f>>2]=a}return b|0}function dea(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;H[a+224|0]=0;H[a+225|0]=0;H[a+226|0]=0;H[a+227|0]=0;H[a+228|0]=0;H[a+229|0]=0;H[a+230|0]=0;H[a+231|0]=0;H[a+248|0]=0;H[a+249|0]=0;H[a+250|0]=0;H[a+251|0]=0;H[a+252|0]=0;H[a+253|0]=0;H[a+254|0]=0;H[a+255|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+242|0]=0;H[a+ -243|0]=0;H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;H[a+239|0]=0;f=a;while(1){d=J[(m<<2)+b>>2]+c|0;h=K[d|0];e=K[d+3|0];i=K[d+10|0];w=e-i|0;l=K[d+13|0];g=h-l|0;p=K[d+2|0];q=K[d+11|0];j=p-q|0;r=K[d+1|0];s=K[d+12|0];k=r-s|0;x=j+k|0;t=K[d+5|0];u=K[d+8|0];n=t-u|0;v=K[d+4|0];y=K[d+9|0];o=v-y|0;z=n-o|0;A=K[d+6|0];B=K[d+7|0];d=A-B|0;J[f+28>>2]=w+g-((x+z|0)+d)<<2;v=v+y|0;p=p+q|0;q=v+p|0;e=e+i|0;i=t+u|0;r=r+ -s|0;s=i+r|0;t=A+B|0;l=h+l|0;u=t+l|0;J[f>>2]=(((q+e|0)+s|0)+u<<2)-7168;h=e<<1;J[f+16>>2]=((P(q-h|0,-7223)+P(s-h|0,2578)|0)+P(u-h|0,10438)|0)+1024>>11;e=l-t|0;i=r-i|0;l=P(e+i|0,9058)+1024|0;h=p-v|0;J[f+24>>2]=(l+P(h,-11295)|0)+P(i,-14084)>>11;J[f+8>>2]=(l+P(h,5027)|0)+P(e,2237)>>11;h=w<<13;e=((P(z,11512)-h|0)+P(x,-1297)|0)+1024|0;i=(e+P(j,-19447)|0)+P(o,9175)|0;j=P(d+o|0,6164)+P(g+j|0,9810)|0;J[f+20>>2]=i+j>>11;e=(e+P(k,-3474)|0)+P(n,-25148)|0;k=P(n-d|0,3826)+P(g+k|0,10935)|0;J[f+12>>2]=e+k>>11;J[f+ -4>>2]=(j+((d+(h+k|0)|0)+P(d+g|0,-9232)|0)|0)+1024>>11;f=f+32|0;d=7;m=m+1|0;if((m|0)!=7)continue;break}while(1){j=J[a+128>>2];k=J[a+64>>2];f=j+k|0;n=J[a+192>>2];o=J[a>>2];g=n+o|0;e=f+g|0;c=J[a+96>>2];m=J[a+160>>2];h=J[a+32>>2];b=m+h|0;J[a>>2]=P(e+(c+b|0)|0,10700)+32768>>16;e=P(e-(c<<2)|0,3783);i=P(g-b|0,9434)+32768|0;g=P(g-f|0,9850);J[a+192>>2]=e+(i-g|0)>>16;f=P(b-f|0,3367);J[a+128>>2]=(f+i|0)+P(b-(c<<1)|0,-7566)>>16;J[a+64>>2]=(e+(f+g|0)|0)+32768>>16;b=k-j|0;c=o-n|0;f=P(b+c|0,6565)+32768|0;e=f+P(b, -20017)|0;g=b;b=h-m|0;g=P(g+b|0,-14752);J[a+160>>2]=e+g>>16;e=g;g=P(c-b|0,1822);b=P(b+c|0,10009);J[a+96>>2]=((e+g|0)+b|0)+32768>>16;J[a+32>>2]=b+(f-g|0)>>16;b=d;d=d-1|0;a=a+4|0;if(b)continue;break}}function lj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;a:{if(J[a+24>>2])break a;b:{b=J[a+28>>2];if(b)break b;g=J[a+36>>2]+1|0;e=a+32|0;c=J[e>>2];c:{if((c|0)<0)break c;d=1;if(c>>>0>=g>>>0)break c;b=c;while(1){b=((b>>>1|0)+b|0)+8|0;if(g>>>0>b>>>0)continue;break}d:{e:{if(b>>>0<1073741824){c=J[e+8>> -2];if(!b){Kb(c);d=0;break e}d=ic(c,b<<2);if(d)break e;d=1;c=J[e>>2];if(c>>>0>=b>>>0)break c}b=c^-1;d=0;break d}J[e+8>>2]=d;d=1}J[e>>2]=b}f:{if(!d)break f;c=Qb(1152);J[f+12>>2]=c;if(!c)break f;b=e;c=J[b+4>>2];d=J[b>>2];g:{h:{if((c|0)<(d|0))break h;i:{if((d|0)>=0){e=c+1|0;if(e>>>0<=d>>>0)break h;c=d;while(1){c=((c>>>1|0)+c|0)+8|0;if(e>>>0>c>>>0)continue;break}if(c>>>0<=1073741823){d=ic(J[b+8>>2],c<<2);if(d)break i;d=J[b>>2];if(d>>>0>=c>>>0)break h}J[b>>2]=d^-1}J[194120]=J[42444];break g}J[b>>2]=c;J[b+ -8>>2]=d}c=J[b+4>>2];J[b+4>>2]=c+1;J[J[b+8>>2]+(c<<2)>>2]=J[f+12>>2]}b=J[f+12>>2];J[b+1116>>2]=0;J[b+1080>>2]=b+1116;J[b+1044>>2]=b+1080;J[b+1008>>2]=b+1044;J[b+972>>2]=b+1008;J[b+936>>2]=b+972;J[b+900>>2]=b+936;J[b+864>>2]=b+900;J[b+828>>2]=b+864;J[b+792>>2]=b+828;J[b+756>>2]=b+792;J[b+720>>2]=b+756;J[b+684>>2]=b+720;J[b+648>>2]=b+684;J[b+612>>2]=b+648;J[b+576>>2]=b+612;J[b+540>>2]=b+576;J[b+504>>2]=b+540;J[b+468>>2]=b+504;J[b+432>>2]=b+468;J[b+396>>2]=b+432;J[b+360>>2]=b+396;J[b+324>>2]=b+360;J[b+ -288>>2]=b+324;J[b+252>>2]=b+288;J[b+216>>2]=b+252;J[b+180>>2]=b+216;J[b+144>>2]=b+180;J[b+108>>2]=b+144;J[b+72>>2]=b+108;J[b+36>>2]=b+72;J[b>>2]=b+36;J[a+28>>2]=b;break b}if(J[a+24>>2])break a;J[a+24>>2]=1;break a}J[a+28>>2]=J[b>>2];H[b+32|0]=0;H[b+33|0]=0;H[b+34|0]=0;H[b+35|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;H[b+29|0]=0;H[b+30|0]=0;H[b+31|0]=0;H[b+16|0]=0;H[b+17|0]=0;H[b+18|0]=0;H[b+19|0]=0;H[b+20|0]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10| -0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;J[b>>2]=J[a+4>>2];J[b+4>>2]=J[a+8>>2];J[b+32>>2]=J[a+44>>2];J[a+44>>2]=b}xb=f+16|0;return J[a+4>>2]}function cda(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;a:{if(!f)break a;j=L[a+26>>1];k=P(j,g);f=f-1|0;if(e>>>0<8){c=e-1|0;d=h<<2;while(1){a=f;b:switch(c|0){case 6:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16| -K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 4:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;break; -default:break b}f=a-1|0;i=i+k|0;b=b+d|0;if(a)continue;break}break a}l=(e&7|8)-9|0;h=h<<2;while(1){a=f;c=e;while(1){J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);d=b;f=i+j|0;J[b+4>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+8>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+12>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+16>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+20>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24); -f=f+j|0;J[b+24>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);g=f+j|0;J[b+28>>2]=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);b=b+32|0;i=g+j|0;c=c-8|0;if(c>>>0>7)continue;break}c:switch(l|0){case 6:J[d+32>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=d+36|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 4:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+ -j|0;b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);b=b+4|0;g=i;break;default:break c}f=a-1|0;i=(g+j|0)+k|0;b=b+h|0;if(a)continue;break}}}function MF(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;a:{if(!J[a+5792>>2]){d=J[a+5820>>2];break a}k=a+5817|0;while(1){m=K[J[a+5784>>2]+l|0];n=a;j=L[J[a+5796>>2]+(l<<1)>>1]; -b:{c:{if(!j){d=(m<<2)+b|0;i=L[d+2>>1];h=L[d>>1];d=J[a+5820>>2];e=L[a+5816>>1]|h<>1]=e;if((d|0)>(16-i|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];I[a+5816>>1]=h>>>16-d;d=(d+i|0)-16|0;break c}d=d+i|0;break c}h=K[m+231760|0];i=h<<2;d=i+b|0;f=L[d+1030>>1];e=L[d+1028>>1];d=J[a+5820>>2];g=L[a+5816>>1]|e<>1]=g;d:{if((d|0)>(16-f|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=g;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+ -J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=e>>>16-d|0;I[a+5816>>1]=g;d=(d+f|0)-16|0;break d}d=d+f|0}J[a+5820>>2]=d;if(h-28>>>0>=4294967276){f=m-J[i+233728>>2]|0;h=J[i+233360>>2];e:{if((16-h|0)<(d|0)){e=f<>1]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=(f&65535)>>>16-d|0;I[a+5816>>1]=g;d=(d+h|0)-16|0;break e}g=f<>1]=g;d=d+h|0}J[a+5820>>2]=d}f=j-1|0;h=K[(j>>>0<257?f:(f>>>7|0)+256|0)+231248|0];i=h<<2;e=i+ -c|0;j=L[e+2>>1];e=L[e>>1];g=e<>1]=g;f:{if((16-j|0)<(d|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=g;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=e>>>16-d|0;I[a+5816>>1]=g;d=(d+j|0)-16|0;break f}d=d+j|0}J[a+5820>>2]=d;if(h>>>0<4)break b;f=f-J[i+233856>>2]|0;h=J[i+233488>>2];if((16-h|0)<(d|0)){e=f<>1]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];I[a+5816>>1]=(f&65535)>>>16- -d;d=(d+h|0)-16|0;break c}I[a+5816>>1]=f<>2]=d}l=l+1|0;if(l>>>0>2])continue;break}}e=L[b+1026>>1];f=L[b+1024>>1];c=L[a+5816>>1]|f<>1]=c;if((16-e|0)<(d|0)){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=c;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];I[a+5816>>1]=f>>>16-b;J[a+5820>>2]=(b+e|0)-16;return}J[a+5820>>2]=d+e}function fP(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;e=xb- -16|0;xb=e;a:{if(J[a+4>>2])break a;d=6;b:{if(J[a+12>>2]!=1)break b;h=(b|0)!=0;b=(P(h,36)+a|0)+16|0;d=J[c>>2];f=(((d>>31)+d|0)+32768&-65536)>>16;d=J[c+4>>2];k=J[a>>2];d=Sk(b,f,(((d>>31)+d|0)+32768&-65536)>>16,k,e);if(d)break b;d=J[c+8>>2];f=(((d>>31)+d|0)+32768&-65536)>>16;d=J[c+12>>2];d=Sk(b,f,(((d>>31)+d|0)+32768&-65536)>>16,k,e+4|0);if(d)break b;d=b;b=J[c+16>>2];f=(((b>>31)+b|0)+32768&-65536)>>16;b=J[c+20>>2];d=Sk(d,f,(((b>>31)+b|0)+32768&-65536)>>16,k,e+8|0);if(d)break b;g=J[e+8>>2];i=J[e+4>>2]; -j=J[e>>2];l=P(h,36)+a|0;f=J[l+40>>2];c:{if(f){m=g>>3;n=i>>3;o=j>>3;p=128>>>(g&7)|0;q=128>>>(i&7)|0;r=128>>>(j&7)|0;c=J[l+48>>2];d=f;while(1){b=J[c>>2];if((K[J[c+8>>2]+o|0]&r?j>>>0>>0:0)|(K[J[c+8>>2]+n|0]&q?b>>>0>i>>>0:0)|(K[m+J[c+8>>2]|0]&p?b>>>0>g>>>0:0))break c;c=c+16|0;d=d-1|0;if(d)continue;break}}m=f+1|0;b=J[l+44>>2];d:{if(m>>>0<=b>>>0){h=J[(P(h,36)+a|0)+48>>2];break d}J[e+12>>2]=0;d=b;b=(f&-8)+8|0;c=P(h,36)+a|0;h=Tb(k,16,d,b,J[c+48>>2],e+12|0);J[c+48>>2]=h;d=J[e+12>>2];if(d)break b;J[l+44>> -2]=b}b=0;c=((m<<4)+h|0)-16|0;J[c>>2]=0;J[((f<<4)+h|0)+12>>2]=0;J[l+40>>2]=m}if((j|0)>=0){if(b>>>0<=j>>>0){b=J[c+4>>2];J[e+12>>2]=0;d=j+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Tb(k,1,f,b,J[c+8>>2],e+12|0),J[s+8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=j+1}b=J[c+8>>2]+(j>>>3|0)|0;H[b|0]=K[b|0]|128>>>(j&7)}e:{if((i|0)>=0){if(M[c>>2]<=i>>>0){b=J[c+4>>2];J[e+12>>2]=0;d=i+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Tb(k,1,f,b,J[c+8>>2],e+12|0),J[s+ -8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=i+1}b=J[c+8>>2]+(i>>>3|0)|0;H[b|0]=K[b|0]|128>>>(i&7);if((g|0)>=0)break e;break a}if((g|0)<0)break a}if(M[c>>2]<=g>>>0){b=J[c+4>>2];J[e+12>>2]=0;d=g+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Tb(k,1,f,b,J[c+8>>2],e+12|0),J[s+8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=g+1}a=J[c+8>>2]+(g>>>3|0)|0;H[a|0]=K[a|0]|128>>>(g&7);break a}J[a+4>>2]=d}xb=e+16|0}function kZ(a){a=a|0;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;b=xb-32|0;xb=b;nn(a+8|0);c=K[a+79|0];h=c<<24>>24;a:{b:{c:{d:{e:{f:{g:{h:{j=(h|0)<0?J[a+72>>2]:c;i:{if(!j)break i;e=j+6|0;if(e>>>0>=1073741808)break b;l=J[a+84>>2];j:{if(e>>>0<=1){J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;H[b+11|0]=e;c=b;break j}c=e|3;if(c>>>0>=1073741823)break a;d=c+1|0;c=Pb(d<<2);J[b+4>>2]=e;J[b>>2]=c;J[b+8>>2]=d|-2147483648}d=J[106579];J[c+16>>2]=J[106578];J[c+20>>2]=d;d=J[106577];J[c+8>>2]=J[106576];J[c+12>>2]=d;d=J[106575];J[c>>2]=J[106574];J[c+4>>2]=d;e=c+24|0;c=a+ -68|0;h=(h|0)<0?J[c>>2]:c;c=j<<2;m=qc(e,h,c)+c|0,n=0,J[m>>2]=n;J[195395]=0;d=ca(1858,b|0,426324)|0;c=J[195395];J[195395]=0;if((c|0)==1)break h;J[b+24>>2]=J[d+8>>2];c=J[d+4>>2];J[b+16>>2]=J[d>>2];J[b+20>>2]=c;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[195395]=0;$(1955,l|0,b+16|0);c=J[195395];J[195395]=0;if((c|0)==1)break g;if(H[b+27|0]<0)Kb(J[b+16>>2]);if(H[b+11|0]>=0)break i;Kb(J[b>>2])}k=O[a+48>>3];f=O[a+16>>3];k:{if(R(1.7976931348623157E308-f)<=2.220446049250313E-16)break k;g=O[a+32>>3];if(R(-1.7976931348623157E308- -g)<=2.220446049250313E-16)break k;i=g-f}l:{if(R(k-i)<=2.220446049250313E-16){k=O[a+56>>3];i=0;f=O[a+24>>3];m:{if(R(1.7976931348623157E308-f)<=2.220446049250313E-16)break m;g=O[a+40>>3];if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16)break m;i=g-f}if(R(k-i)<=2.220446049250313E-16)break l}c=J[a+84>>2];J[195395]=0;J[b+16>>2]=103;J[b+20>>2]=0;H[b+27|0]=1;ia(1953,c|0,b+16|0,0,0);c=J[195395];J[195395]=0;if((c|0)==1)break e;if(H[b+27|0]>=0)break l;Kb(J[b+16>>2])}c=J[a+84>>2];d=Pb(16);J[b+16>>2]=d; -J[b+20>>2]=3;J[b+24>>2]=-2147483644;J[d+8>>2]=J[106468];a=J[106467];J[d>>2]=J[106466];J[d+4>>2]=a;J[d+12>>2]=0;J[195395]=0;ia(1953,c|0,b+16|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[b+27|0]<0)Kb(J[b+16>>2]);xb=b+32|0;return}a=Z()|0;break f}a=Z()|0;if(H[b+27|0]>=0)break f;Kb(J[b+16>>2])}if(H[b+11|0]>=0)break c;Kb(J[b>>2]);ba(a|0);B()}a=Z()|0;if(H[b+27|0]>=0)break c;Kb(J[b+16>>2]);ba(a|0);B()}a=Z()|0;if(H[b+27|0]>=0)break c;Kb(J[b+16>>2])}ba(a|0);B()}dd(b);B()}zd();B()}function ZA(a,b){var c= -0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=xb-22064|0;xb=d;c=J[b+100>>2];Nb(d+15424|4,0,2756);J[d+15424>>2]=c;J[a+7728>>2]=0;J[a+52>>2]=0;f=J[J[(J[J[a>>2]+8>>2]<<2)+16352>>2]+16>>2];c=K[f|0];a:{if(!c)break a;while(1){if((c&255)==32)while(1){c=K[f+1|0];f=f+1|0;if((c|0)==32)continue;break}j=J[J[a+36>>2]>>2];while(1){h=K[f|0];f=f+1|0;if((h|0)==32)continue;break}if(h<<24>>24<0){c=h>>>0<240;e=h>>>0<224;g=e?1:c?2:3;h=(e?31:c?15:7)&h;e=0;c=f;while(1){h=K[c|0]&63|h<<6;c=c+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}f= -f+g|0}g=0;while(1){c=K[f|0];if((c|32)!=32){f=f+1|0;g=c;if(c<<24>>24>=0)continue;g=c>>>0<240;e=c>>>0<224;i=e?1:g?2:3;g=(e?31:g?15:7)&c;e=0;c=f;while(1){g=K[c|0]&63|g<<6;c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}f=f+i|0;continue}break}b:{if(!g){c=ce(j,h);if(c)break b;c=K[f|0]}if(c&255)continue;break a}break}if(Ug(b,c,1))break a;c=J[b+84>>2];if(I[c+110>>1]<=0)break a;f=d+16|0;Nb(f,0,15396);g=J[a+40>>2];J[d+36>>2]=0;J[d+44>>2]=0;J[d+24>>2]=65536;J[d+28>>2]=65536;J[d+56>>2]=g;J[d+20>>2]=b;J[d+18164>> -2]=0;J[d+18172>>2]=f;b=d+15424|0;if(bm(b,c+108|0))break a;if(Zi(b,0))break a;e=0;yl(b,0,0,0);b=J[d+15468>>2];if((b|0)>0){c=J[d+15476>>2];f=c+P(b,44)|0;while(1){b=J[c+20>>2];if(!(!b|b>>>0<=c>>>0|(J[b+20>>2]!=(c|0)|e>>>0>15))){g=I[c+2>>1]-I[b+2>>1]|0;b=g>>31;J[(P(e,12)+a|0)+56>>2]=(b^g)-b;e=e+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[d+12>>2]=e;Kn(d+12|0,a+56|0,M[d+56>>2]/100|0);J[a+52>>2]=J[d+12>>2];b=d+15424|0;if(Zi(b,1))break a;e=0;yl(b,0,0,1);b=J[d+16816>>2];if((b|0)>0){c=J[d+16824>>2];f=c+ -P(b,44)|0;while(1){b=J[c+20>>2];if(!(!b|b>>>0<=c>>>0|(J[b+20>>2]!=(c|0)|e>>>0>15))){g=I[c+2>>1]-I[b+2>>1]|0;b=g>>31;J[(P(e,12)+a|0)+7732>>2]=(b^g)-b;e=e+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[d+12>>2]=e;Kn(d+12|0,a+7732|0,M[d+56>>2]/100|0);J[a+7728>>2]=J[d+12>>2]}if(J[a+52>>2])b=J[a+56>>2];else b=(P(J[a+40>>2],50)|0)/2048|0;H[a+256|0]=0;J[a+252>>2]=b;J[a+248>>2]=(b|0)/5;if(J[a+7728>>2])b=J[a+7732>>2];else b=(P(J[a+40>>2],50)|0)/2048|0;H[a+7932|0]=0;J[a+7928>>2]=b;J[a+7924>>2]=(b|0)/5;dr(d+ -15424|0);xb=d+22064|0}function Sda(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;a=Nb(a,0,256);d=J[b>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a>>2]=(g+d<<3)-3072;J[a+4>>2]=P(f-e|0,10033)+512>>10;J[a+8>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+4>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a+32>>2]=(g+d<<3)-3072;J[a+36>>2]=P(f-e|0,10033)+512>>10;J[a+40>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+8>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a+64>>2]=(g+d<<3)-3072;J[a+68>>2]= -P(f-e|0,10033)+512>>10;J[a+72>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+12>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;h=K[d+1|0];d=(g+h<<3)-3072|0;J[a+96>>2]=d;J[a+100>>2]=P(f-e|0,10033)+512>>10;J[a+104>>2]=P(g-(h<<1)|0,5793)+512>>10;e=J[b+16>>2]+c|0;f=K[e+2|0];g=K[e|0];h=f+g|0;i=K[e+1|0];e=(h+i<<3)-3072|0;J[a+128>>2]=e;f=P(g-f|0,10033)+512>>10;J[a+132>>2]=f;J[a+136>>2]=P(h-(i<<1)|0,5793)+512>>10;b=J[b+20>>2]+c|0;g=K[b+2|0];h=K[b|0];c=g+h|0;b=K[b+1|0];J[a+168>>2]=P(c-(b<<1)|0,5793)+512>>10;c=(b+c<<3)-3072|0; -i=J[a>>2];b=c+i|0;k=J[a+64>>2];j=d+k|0;J[a+64>>2]=P(b-j|0,17837)+16384>>15;b=b+j|0;j=J[a+32>>2];l=j+e|0;J[a+128>>2]=P(b-(l<<1)|0,10298)+16384>>15;J[a>>2]=P(b+l|0,14564)+16384>>15;b=k-d|0;c=i-c|0;d=P(b+c|0,5331)+16384|0;e=j-e|0;J[a+160>>2]=d+P(b-e|0,14564)>>15;J[a+96>>2]=P(c-(b+e|0)|0,14564)+16384>>15;J[a+32>>2]=d+P(c+e|0,14564)>>15;c=P(h-g|0,10033)+512>>10;d=J[a+4>>2];b=c+d|0;e=J[a+100>>2];g=J[a+68>>2];h=e+g|0;J[a+68>>2]=P(b-h|0,17837)+16384>>15;b=b+h|0;h=J[a+36>>2];i=h+f|0;J[a+132>>2]=P(b-(i<<1)| -0,10298)+16384>>15;J[a+4>>2]=P(b+i|0,14564)+16384>>15;b=g-e|0;c=d-c|0;d=P(b+c|0,5331)+16384|0;e=h-f|0;J[a+36>>2]=d+P(e+c|0,14564)>>15;J[a+164>>2]=d+P(b-e|0,14564)>>15;J[a+100>>2]=P(c-(b+e|0)|0,14564)+16384>>15;b=J[a+136>>2];c=J[a+40>>2];e=J[a+168>>2];f=J[a+8>>2];d=e+f|0;g=J[a+104>>2];h=J[a+72>>2];i=g+h|0;J[a+72>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+136>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+8>>2]=P(d+i|0,14564)+16384>>15;d=h-g|0;e=f-e|0;f=P(d+e|0,5331)+16384|0;b=c-b|0;J[a+168>>2]=f+P(d- -b|0,14564)>>15;J[a+104>>2]=P(e-(b+d|0)|0,14564)+16384>>15;J[a+40>>2]=f+P(b+e|0,14564)>>15}function bi(a,b,c,d){var e=0,f=0;if(!(!a|!b)){f=J[b+56>>2];a:{if(!f|!(J[b+184>>2]&c&16384))break a;if((d|0)==-1){if(J[b+48>>2]>0){while(1){cc(a,J[(J[b+56>>2]+P(e,28)|0)+4>>2]);e=e+1|0;if((e|0)>2])continue;break}f=J[b+56>>2]}cc(a,f);J[b+48>>2]=0;J[b+56>>2]=0;break a}e=f;f=P(d,28);cc(a,J[(e+f|0)+4>>2]);J[(f+J[b+56>>2]|0)+4>>2]=0}e=J[b+184>>2];if(e&c&8192){J[b+8>>2]=J[b+8>>2]&-17;cc(a,J[b+76>>2]);I[b+22>> -1]=0;J[b+76>>2]=0;e=J[b+184>>2]}if(c&e&256){cc(a,J[b+224>>2]);cc(a,J[b+228>>2]);J[b+224>>2]=0;J[b+228>>2]=0;J[b+8>>2]=J[b+8>>2]&-16385;e=J[b+184>>2]}if(c&e&128){cc(a,J[b+160>>2]);cc(a,J[b+172>>2]);e=0;J[b+172>>2]=0;J[b+160>>2]=0;f=J[b+176>>2];if(f){if(K[b+181|0]){while(1){cc(a,J[J[b+176>>2]+(e<<2)>>2]);e=e+1|0;if(e>>>0>2]}cc(a,f);J[b+176>>2]=0}J[b+8>>2]=J[b+8>>2]&-1025;e=J[b+184>>2]}if(e&c&16){cc(a,J[b+196>>2]);cc(a,J[b+200>>2]);J[b+196>>2]=0;J[b+200>>2]=0;J[b+ -8>>2]=J[b+8>>2]&-4097}f=J[b+212>>2];b:{if(!f|!(J[b+184>>2]&c&32))break b;if((d|0)==-1){e=0;if(J[b+216>>2]>0){while(1){f=e<<4;cc(a,J[f+J[b+212>>2]>>2]);cc(a,J[(f+J[b+212>>2]|0)+8>>2]);e=e+1|0;if((e|0)>2])continue;break}f=J[b+212>>2]}cc(a,f);J[b+212>>2]=0;J[b+216>>2]=0;J[b+8>>2]=J[b+8>>2]&-8193;break b}e=f;f=d<<4;cc(a,J[e+f>>2]);cc(a,J[(f+J[b+212>>2]|0)+8>>2]);f=f+J[b+212>>2]|0;J[f+8>>2]=0;J[f>>2]=0}f=J[b+188>>2];c:{if(!f|!(J[b+184>>2]&c&512))break c;if((d|0)==-1){e=0;if(J[b+192>>2]>0){while(1){cc(a, -J[(J[b+188>>2]+P(e,20)|0)+8>>2]);e=e+1|0;if((e|0)>2])continue;break}f=J[b+188>>2]}cc(a,f);J[b+188>>2]=0;J[b+192>>2]=0;break c}e=f;f=P(d,20);cc(a,J[(e+f|0)+8>>2]);J[(f+J[b+188>>2]|0)+8>>2]=0}e=J[b+184>>2];if(e&c&8){cc(a,J[b+124>>2]);J[b+124>>2]=0;J[b+8>>2]=J[b+8>>2]&-65;e=J[b+184>>2]}if(c&e&4096){cc(a,J[b+16>>2]);J[b+16>>2]=0;I[b+20>>1]=0;J[b+8>>2]=J[b+8>>2]&-9;e=J[b+184>>2]}if(c&e&64){f=J[b+232>>2];if(f){if(J[b+4>>2]){e=0;while(1){cc(a,J[J[b+232>>2]+(e<<2)>>2]);e=e+1|0;if(e>>>0>2])continue; -break}f=J[b+232>>2]}cc(a,f);J[b+232>>2]=0;e=J[b+184>>2]}J[b+8>>2]=J[b+8>>2]&-32769}J[b+184>>2]=(((d|0)==-1?c:c&-16929)^-1)&e}}function X2(a){a=a|0;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;b=xb-32|0;xb=b;nn(a+8|0);c=K[a+79|0];h=c<<24>>24;a:{b:{c:{d:{e:{f:{g:{h:{j=(h|0)<0?J[a+72>>2]:c;i:{if(!j)break i;e=j+6|0;if(e>>>0>=1073741808)break b;l=J[a+84>>2];j:{if(e>>>0<=1){J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;H[b+11|0]=e;c=b;break j}c=e|3;if(c>>>0>=1073741823)break a;d=c+1|0;c=Pb(d<<2);J[b+4>> -2]=e;J[b>>2]=c;J[b+8>>2]=d|-2147483648}d=J[99366];J[c+16>>2]=J[99365];J[c+20>>2]=d;d=J[99364];J[c+8>>2]=J[99363];J[c+12>>2]=d;d=J[99362];J[c>>2]=J[99361];J[c+4>>2]=d;e=c+24|0;c=a+68|0;h=(h|0)<0?J[c>>2]:c;c=j<<2;m=qc(e,h,c)+c|0,n=0,J[m>>2]=n;J[195395]=0;d=ca(1858,b|0,397640)|0;c=J[195395];J[195395]=0;if((c|0)==1)break h;J[b+24>>2]=J[d+8>>2];c=J[d+4>>2];J[b+16>>2]=J[d>>2];J[b+20>>2]=c;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[195395]=0;$(1955,l|0,b+16|0);c=J[195395];J[195395]=0;if((c|0)==1)break g;if(H[b+ -27|0]<0)Kb(J[b+16>>2]);if(H[b+11|0]>=0)break i;Kb(J[b>>2])}k=O[a+48>>3];f=O[a+16>>3];k:{if(R(1.7976931348623157E308-f)<=2.220446049250313E-16)break k;g=O[a+32>>3];if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16)break k;i=g-f}l:{if(R(k-i)<=2.220446049250313E-16){k=O[a+56>>3];i=0;f=O[a+24>>3];m:{if(R(1.7976931348623157E308-f)<=2.220446049250313E-16)break m;g=O[a+40>>3];if(R(-1.7976931348623157E308-g)<=2.220446049250313E-16)break m;i=g-f}if(R(k-i)<=2.220446049250313E-16)break l}c=J[a+84>>2];J[195395]= -0;J[b+16>>2]=103;J[b+20>>2]=0;H[b+27|0]=1;ia(1953,c|0,b+16|0,0,0);c=J[195395];J[195395]=0;if((c|0)==1)break e;if(H[b+27|0]>=0)break l;Kb(J[b+16>>2])}c=J[a+84>>2];d=Pb(16);J[b+16>>2]=d;J[b+20>>2]=3;J[b+24>>2]=-2147483644;J[d+8>>2]=J[98320];a=J[98319];J[d>>2]=J[98318];J[d+4>>2]=a;J[d+12>>2]=0;J[195395]=0;ia(1953,c|0,b+16|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[b+27|0]<0)Kb(J[b+16>>2]);xb=b+32|0;return}a=Z()|0;break f}a=Z()|0;if(H[b+27|0]>=0)break f;Kb(J[b+16>>2])}if(H[b+11|0]>=0)break c; -Kb(J[b>>2]);ba(a|0);B()}a=Z()|0;if(H[b+27|0]>=0)break c;Kb(J[b+16>>2]);ba(a|0);B()}a=Z()|0;if(H[b+27|0]>=0)break c;Kb(J[b+16>>2])}ba(a|0);B()}dd(b);B()}zd();B()}function GJ(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(a){g=J[a+100>>2];c=J[a+540>>2];if(c)Ab[J[c+12>>2]](a);c=J[a+712>>2];if(c){d=J[c+8>>2];b=J[c+108>>2];if(b){e=J[b+28>>2];f=c+140|0;if(J[f>>2])rd(b,f);b=J[c+136>>2];if(b)Ab[J[e+8>>2]](e,b);J[c+140>>2]=0;J[c+132>>2]=0;J[c+136>>2]=0;J[c+124>>2]=0;J[c+128>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+ -108>>2]=0;J[c+112>>2]=0}b=J[c+1240>>2];if(b){e=J[b+28>>2];f=c+1272|0;if(J[f>>2])rd(b,f);b=J[c+1268>>2];if(b)Ab[J[e+8>>2]](e,b);b=c+1240|0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}b=J[c+36>>2];if(b){e=J[b+28>>2];f=c+68|0;if(J[f>>2])rd(b,f);b=J[c- -64>>2];if(b)Ab[J[e+8>>2]](e,b);J[c+68>>2]=0;J[c+60>>2]=0;J[c+64>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0}b=J[c+1204>>2];if(b){e=J[b+28>>2];f= -c+1236|0;if(J[f>>2])rd(b,f);b=J[c+1232>>2];if(b)Ab[J[e+8>>2]](e,b);b=c+1204|0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}if(J[c+2024>>2]){b=0;while(1){yu(d,J[(c+(b<<2)|0)+2028>>2]);b=b+1|0;if(b>>>0>2])continue;break}b=J[c+2028>>2];if(b)Ab[J[d+8>>2]](d,b);J[c+2028>>2]=0}J[c+144>>2]=0;J[c+148>>2]=0;J[c+152>>2]=0;b=J[J[c+4>>2]+28>>2];e=c+1192|0;f=J[e>>2];if(f)Ab[J[b+8>>2]](b,f);J[e>>2]=0;J[e+4>>2]=0;e=c+1188|0;f=J[e>>2];if(f)Ab[J[b+ -8>>2]](b,f);J[c+1180>>2]=0;J[c+1184>>2]=0;J[e>>2]=0;ru(c+3112|0,d);yu(d,c+1372|0);b=c+3060|0;if(J[b>>2])rd(J[c+4>>2],b);H[c+3052|0]=0;J[c+3056>>2]=0;J[c+3064>>2]=0;b=J[c+3092>>2];if(b)Ab[J[d+8>>2]](d,b);J[c+3092>>2]=0;b=J[c+1348>>2];if(b)Ab[J[d+8>>2]](d,b);J[c+1348>>2]=0;b=J[c+1352>>2];if(b)Ab[J[d+8>>2]](d,b);J[c+1352>>2]=0;b=J[c+1360>>2];if(b)Ab[J[d+8>>2]](d,b);J[c+1360>>2]=0;b=J[c+1364>>2];if(b)Ab[J[d+8>>2]](d,b);J[c+1364>>2]=0;b=J[c+3108>>2];if(b){Ab[b|0](J[c+3104>>2]);b=J[c+3104>>2];if(b)Ab[J[d+ -8>>2]](d,b);J[c+3104>>2]=0}b=J[c+3132>>2];if(b)Ab[J[d+8>>2]](d,b);J[c+3132>>2]=0;c=J[a+712>>2];if(c)Ab[J[g+8>>2]](g,c);J[a+712>>2]=0}c=J[a+548>>2];if(c)Ab[J[c+44>>2]](a);J[a+736>>2]=0}}function Xja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=xb-32|0;xb=e;J[a>>2]=c;a:{b:{c:{d:{e:{f:{g:{if(!c){h:{if(H[b+11|0]>=0){J[e+24>>2]=J[b+8>>2];c=J[b+4>>2];J[e+16>>2]=J[b>>2];J[e+20>>2]=c;break h}rf(e+16|0,J[b>>2],J[b+4>>2])}J[195395]=0;c=ca(1088,e+28|0,e+16|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break g; -if(H[e+27|0]<0)Kb(J[e+16>>2]);c=J[c>>2];J[a>>2]=c}if((c|0)!=25)break f;f=!K[a+40|0];d=0;c=xb-16|0;xb=c;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=428736;J[195395]=0;b=aa(1089,c|0,b|0,0)|0;g=J[195395];J[195395]=0;i:{if((g|0)!=1)j:{if(b){J[195395]=0;b=_(1078,552)|0;d=J[195395];J[195395]=0;if((d|0)==1)break j;J[195395]=0;ea(1114,b|0);d=J[195395];J[195395]=0;if((d|0)==1)break j;J[195395]=0;d=J[c+4>>2];g=J[195395];J[195395]=0;if((g|0)==1)break j;J[195395]=0;g=ca(1115,d|0,b|0)|0;d=J[195395];J[195395]= -0;if((d|0)==1)break j;d=0;if(g){J[195395]=0;d=aa(1116,b|0,a|0,f|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break j}J[195395]=0;lo(b);a=J[195395];J[195395]=0;if((a|0)==1)break j;J[195395]=0;ea(1103,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break j}Me(c);xb=c+16|0;c=d;break i}a=Z()|0;Me(c);ba(a|0);B()}break e}a=Z()|0;if(H[e+27|0]>=0)break a;Kb(J[e+16>>2]);ba(a|0);B()}c=0;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=428736;J[195395]=0;b=aa(1089,e|0,b|0,0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break d;k:{if(!b)break k; -J[195395]=0;c=_(1078,944)|0;b=J[195395];J[195395]=0;l:{m:{n:{if((b|0)==1)break n;J[195395]=0;b=Fd(c,0);f=J[195395];J[195395]=0;if((f|0)==1)break m;J[195395]=0;c=J[e+4>>2];f=J[195395];J[195395]=0;if((f|0)==1)break n;f=J[a>>2];J[195395]=0;f=aa(1092,b|0,c|0,f|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break n;c=0;if(!f)break k;if(!K[d|0])break l;J[195395]=0;ca(1093,b|0,0)|0;c=J[195395];J[195395]=0;if((c|0)!=1)break l}a=Z()|0;break b}a=Z()|0;Kb(c);break b}J[195395]=0;$(1094,b|0,a|0);c=J[195395];J[195395]= -0;if((c|0)==1)break c;J[195395]=0;c=ej(b);d=J[195395];J[195395]=0;if((d|0)==1)break c;H[a+28|0]=c;Ab[J[J[b>>2]+4>>2]](b);c=1}Me(e)}xb=e+32|0;return c|0}a=Z()|0;break b}a=Z()|0}Me(e)}ba(a|0);B()}function Ml(a,b,c,d){var e=0,f=0,g=0,h=0;f=J[a+24>>2];g=J[f+4>>2];e=J[f>>2];J[a+228>>2]=d;J[a+224>>2]=c;J[a+220>>2]=b;a:{if(!g){if(!(Ab[J[f+12>>2]](a)|0))break a;e=J[f>>2];g=J[f+4>>2]}h=K[e|0];d=g-1|0;if(d)b=e+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break a;d=J[f+4>>2];b=J[f>>2]}g=K[b|0];e=d-1|0;if(e)b=b+1|0;else{if(!(Ab[J[f+ -12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}J[a+212>>2]=K[b|0];e=e-1|0;if(e)b=b+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}d=K[b|0]<<8;J[a+32>>2]=d;e=e-1|0;if(e)b=b+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break a;d=J[a+32>>2];e=J[f+4>>2];b=J[f>>2]}J[a+32>>2]=K[b|0]+d;e=e-1|0;if(e)b=b+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}d=K[b|0]<<8;J[a+28>>2]=d;e=e-1|0;if(e)b=b+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break a;d=J[a+28>>2];e=J[f+4>>2];b=J[f>>2]}J[a+28>>2]=K[b| -0]+d;e=e-1|0;if(e)b=b+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}J[a+36>>2]=K[b|0];d=J[a>>2];J[d+24>>2]=J[a+436>>2];J[d+28>>2]=J[a+28>>2];J[d+32>>2]=J[a+32>>2];c=J[a+36>>2];J[d+20>>2]=102;J[d+36>>2]=c;Ab[J[d+4>>2]](a,1);if(J[J[a+460>>2]+16>>2]){c=J[a>>2];J[c+20>>2]=60;Ab[J[c>>2]](a)}d=(h<<8|g)-8|0;b:{if(!(!J[a+32>>2]|!J[a+28>>2])){c=J[a+36>>2];if((c|0)>0)break b}c=J[a>>2];J[c+20>>2]=33;Ab[J[c>>2]](a);c=J[a+36>>2]}if((d|0)!=(P(c,3)|0)){c=J[a>>2];J[c+20>>2]=12;Ab[J[c>>2]](a);c= -J[a+36>>2]}d=b+1|0;e=e-1|0;g=J[a+216>>2];if(!g){g=Ab[J[J[a+4>>2]>>2]](a,1,P(c,88))|0;J[a+216>>2]=g;c=J[a+36>>2]}if((c|0)>0){c=0;while(1){J[g+4>>2]=c;if(!e){if(!(Ab[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];d=J[f>>2]}J[g>>2]=K[d|0];b=e-1|0;if(b)h=d+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break a;b=J[f+4>>2];h=J[f>>2]}d=K[h|0];J[g+12>>2]=d&15;J[g+8>>2]=d>>>4;b=b-1|0;if(b)h=h+1|0;else{if(!(Ab[J[f+12>>2]](a)|0))break a;b=J[f+4>>2];h=J[f>>2]}J[g+16>>2]=K[h|0];e=J[a>>2];J[e+24>>2]=J[g>>2];J[e+28>>2]=J[g+8>>2];J[e+ -32>>2]=J[g+12>>2];d=J[g+16>>2];J[e+20>>2]=103;J[e+36>>2]=d;Ab[J[e+4>>2]](a,1);d=h+1|0;e=b-1|0;g=g+88|0;c=c+1|0;if((c|0)>2])continue;break}}J[J[a+460>>2]+16>>2]=1;J[f+4>>2]=e;J[f>>2]=d;return 1}return 0}function Ng(a,b){var c=0,d=0,e=0,f=0;c=J[a+964>>2];e=c+J[a+1048>>2]|0;J[a+964>>2]=e;d=(c|0)>0?J[a+960>>2]&J[(c<<2)+241728>>2]|b<>2]=d;if((e|0)>=8){c=J[a+1076>>2];while(1){J[a+1076>>2]=c+1;H[J[a+1080>>2]+c|0]=d;c=J[a+1076>>2];if((c|0)>=254){d=J[a+1064>>2];Ab[J[J[d>>2]+44>>2]](d, -c&255)|0;c=J[a+1064>>2];Ab[J[J[c>>2]+16>>2]](c,J[a+1080>>2],1,J[a+1076>>2])|0;J[a+1076>>2]=0;c=0}d=J[a+960>>2]>>>8|0;J[a+960>>2]=d;f=J[a+964>>2];e=f-8|0;J[a+964>>2]=e;if((f|0)>15)continue;break}}c=J[a+1056>>2];a:{if(!c&I[a+1054>>1]<=I[a+1052>>1])break a;if(c){J[a+1056>>2]=0;c=J[a+1060>>2];J[a+1048>>2]=c;I[a+1052>>1]=-1<>2]+1|0;J[a+1048>>2]=c;if((c|0)==12){I[a+1052>>1]=4096;break a}I[a+1052>>1]=-1<>2]!=(b|0))break b;c:{if((e|0)<=0){c=J[a+1076>>2];break c}c= -J[a+1076>>2];while(1){J[a+1076>>2]=c+1;H[J[a+1080>>2]+c|0]=d;c=J[a+1076>>2];if((c|0)>=254){b=J[a+1064>>2];Ab[J[J[b>>2]+44>>2]](b,c&255)|0;b=J[a+1064>>2];Ab[J[J[b>>2]+16>>2]](b,J[a+1080>>2],1,J[a+1076>>2])|0;J[a+1076>>2]=0;c=0}d=J[a+960>>2]>>>8|0;J[a+960>>2]=d;b=J[a+964>>2];J[a+964>>2]=b-8;if((b|0)>8)continue;break}}if((c|0)>0){b=J[a+1064>>2];Ab[J[J[b>>2]+44>>2]](b,c&255)|0;b=J[a+1064>>2];Ab[J[J[b>>2]+16>>2]](b,J[a+1080>>2],1,J[a+1076>>2])|0;J[a+1076>>2]=0}b=J[a+1064>>2];Ab[J[J[b>>2]+32>>2]](b)|0; -b=J[a+1064>>2];if(!(Ab[J[J[b>>2]+40>>2]](b)|0))break b;b=K[240753]|K[240754]<<8|(K[240755]<<16|K[240756]<<24);c=K[240749]|K[240750]<<8|(K[240751]<<16|K[240752]<<24);H[a+88|0]=c;H[a+89|0]=c>>>8;H[a+90|0]=c>>>16;H[a+91|0]=c>>>24;H[a+92|0]=b;H[a+93|0]=b>>>8;H[a+94|0]=b>>>16;H[a+95|0]=b>>>24;b=K[240745]|K[240746]<<8|(K[240747]<<16|K[240748]<<24);c=K[240741]|K[240742]<<8|(K[240743]<<16|K[240744]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>> -16;H[a+87|0]=b>>>24;b=K[240737]|K[240738]<<8|(K[240739]<<16|K[240740]<<24);c=K[240733]|K[240734]<<8|(K[240735]<<16|K[240736]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24}}function HW(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;i=xb-16|0;xb=i;m=J[c>>2];J[i+12>>2]=0;f=8;d=a+5|0;a:{if(d>>>0>b>>>0)break a;g=K[a+3|0];h=K[a+4|0];j=J[c+92>>2];a=h+j|0;if(a>>>0>M[c+96>>2]){a=a+3&-4;o=c, -p=Tb(m,36,j,a,J[c+100>>2],i+12|0),J[o+100>>2]=p;f=J[i+12>>2];if(f)break a;J[c+96>>2]=a}f=8;a=b;n=g&8;b=g&4;k=g&16;l=g&1;g=g&2;if(a>>>0>>3)+(b>>>2)+(k>>>4)|0)+(g?l+9|0:l|8)|0,h)+d>>>0)break a;m=J[c+92>>2];b:{if(!h)break b;a=J[c+100>>2]+P(m,36)|0;if(!b){while(1){b=K[d|0];c:{if(l){b=K[d+1|0]|b<<8;d=d+2|0;break c}d=d+1|0}J[a>>2]=b;b=K[d|0];d:{if(g){b=K[d+1|0]|b<<8;d=d+2|0;break d}d=d+1|0}J[a+4>>2]=b;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+2|0]|K[d+1|0]<<8;j=K[d+4|0];b=K[d+3|0];e:{if(n){f=d+6|0;b=K[d+5| -0]|(j<<8|b<<16);break e}f=d+5|0;b=j|b<<8}J[a+24>>2]=b;b=K[f|0];f:{if(k){b=K[f+1|0]|b<<8;d=f+2|0;break f}d=f+1|0}J[a+28>>2]=b;a=a+36|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break b}if(!n){while(1){f=K[d|0];g:{if(l){f=K[d+1|0]|f<<8;b=d+2|0;break g}b=d+1|0}J[a>>2]=f;d=K[b|0];h:{if(g){d=K[b+1|0]|d<<8;b=b+2|0;break h}b=b+1|0}J[a+4>>2]=d;d=b;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<<16);J[a+24>>2]=K[d+5|0]|K[d+4|0]<<8;b=K[d+6|0];i:{if(k){b=K[d+7|0]|b<<8;d=d+8|0;break i}d=d+7|0}J[a+28>> -2]=b;a=a+36|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break b}b=0;if(!l)while(1){J[a>>2]=K[d|0];e=K[d+1|0];j:{if(g){e=K[d+2|0]|e<<8;d=d+3|0;break j}d=d+2|0}J[a+4>>2]=e;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<<16);J[a+24>>2]=K[d+6|0]|(K[d+5|0]<<8|K[d+4|0]<<16);e=K[d+7|0];k:{if(k){e=K[d+8|0]|e<<8;d=d+9|0;break k}d=d+8|0}J[a+28>>2]=e;a=a+36|0;b=b+1|0;if((h|0)!=(b|0))continue;break b}while(1){J[a>>2]=K[d+1|0]|K[d|0]<<8;e=K[d+2|0];l:{if(g){e=K[d+3|0]|e<<8;d=d+4|0;break l}d=d+3|0}J[a+ -4>>2]=e;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<<16);J[a+24>>2]=K[d+6|0]|(K[d+5|0]<<8|K[d+4|0]<<16);e=K[d+7|0];m:{if(k){e=K[d+8|0]|e<<8;d=d+9|0;break m}d=d+8|0}J[a+28>>2]=e;a=a+36|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}J[c+92>>2]=h+m;f=J[i+12>>2]}xb=i+16|0;return f|0}function wfa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+20>>2];if((c|0)!=100){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+244>>2]=0;J[a+80>>2]=b;a:{b:{c:switch(b|0){case 1:J[a+ -76>>2]=1;J[a+244>>2]=1;a=J[a+84>>2];J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=1;return;case 2:J[a+76>>2]=3;J[a+256>>2]=1;a=J[a+84>>2];J[a+176>>2]=66;J[a+88>>2]=71;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=82;break b;case 3:J[a+76>>2]=3;J[a+244>>2]=1;a=J[a+84>>2];J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;break a;case 4:J[a+76>>2]=4;J[a+256>>2]=1;a=J[a+84>>2];J[a+264>>2]=75;J[a+176>> -2]=89;J[a+88>>2]=77;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=67;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=1;J[a+276>>2]=1;break b;case 5:J[a+76>>2]=4;J[a+256>>2]=1;a=J[a+84>>2];J[a+264>>2]=4;J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=2;J[a+276>>2]=2;break a;case 0:b=J[a+36>>2];J[a+76>>2]=b;d:{if(b-11>>>0<=4294967285){c=J[a>>2];J[c+24>>2]=b;J[c+ -20>>2]=27;J[J[a>>2]+28>>2]=10;Ab[J[J[a>>2]>>2]](a);b=J[a+76>>2];if((b|0)<=0)break d}d=J[a+84>>2];a=0;if((b|0)!=1){g=b&-2;while(1){c=d+P(a,88)|0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=1;J[c+12>>2]=1;J[c>>2]=a;e=a|1;c=d+P(e,88)|0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=1;J[c+12>>2]=1;J[c>>2]=e;a=a+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(b&1))break d;b=d+P(a,88)|0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=a}return;default:break c}b=J[a>>2];J[b+ -20>>2]=11;Ab[J[b>>2]](a);return}J[a+200>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=1;J[a+100>>2]=1;return}J[a+200>>2]=1;J[a+192>>2]=1;J[a+196>>2]=1;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=1;J[a+104>>2]=1;J[a+108>>2]=1;J[a+96>>2]=1;J[a+100>>2]=1}function vna(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;e=169776;f=J[J[a+84>>2]+148>>2];c=J[f>>2];c=c?c:169776;d=M[c+16>>2]<4?169776:J[c+12>>2];a:{if((K[d|0]|K[d+1|0]<<8)!= -256)break a;c=169776;g=K[d+8|0]|K[d+9|0]<<8;if(g)c=d+((g<<8|g>>>8)&65535)|0;d=K[c|0]|K[c+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<=b>>>0)break a;d=(b<<1)+c|0;d=K[d+2|0]|K[d+3|0]<<8;if(!d)break a;e=((d<<8|d>>>8)&65535)+c|0}k=J[a+180>>2];J[a+180>>2]=b;c=K[e+2|0]|K[e+3|0]<<8;d=c<<8|c>>>8;c=d&65535;g=J[a+184>>2];if(d&16){d=c;c=K[e+4|0]|K[e+5|0]<<8;c=(((c<<8|c>>>8)&65535)<<1)+e|0;c=K[c+6|0]|K[c+7|0]<<8;c=d|(c<<24|c<<8&16711680)}J[a+184>>2]=c;J[a+8>>2]=a;h=J[a+88>>2];J[a+36>>2]=J[h+68>>2];J[a+32>>2]=0;J[a+24>> -2]=0;J[a+28>>2]=0;J[a+12>>2]=c;d=J[a+76>>2];i=(d|0)==1;H[a+20|0]=i;H[a+21|0]=K[a+194|0];J[a+16>>2]=J[a+176>>2];J[a+44>>2]=a;H[a+23|0]=0;j=!d&K[a+195|0]!=0;H[a+22|0]=j;J[a+72>>2]=J[h+68>>2];J[a+48>>2]=c;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;H[a+57|0]=1;H[a+59|0]=0;H[a+58|0]=(d|0)!=1&j;J[a+52>>2]=-1;H[a+56|0]=i?1:K[a+193|0];c=0;b:{if(M[f+4>>2]<=b>>>0)break b;h=b<<2;d=J[h+J[f+8>>2]>>2];c:{d:{if(d)break d;while(1){c=J[f>>2];c=c?c:169776;d=Eo(ht(M[c+16>>2]<4?169776:J[c+12>>2],b));if(!d)break c;i=h+J[f+ -8>>2]|0;c=J[i>>2];J[i>>2]=c?c:d;if(!c)break d;Kb(d);d=J[h+J[f+8>>2]>>2];if(!d)continue;break}}b=K[e+4|0]|K[e+5|0]<<8;c=0;if(!b)break b;c=(b<<8|b>>>8)&65535;b=d+16|0;while(1){e:{e=J[a+88>>2];e=J[J[e+80>>2]+P(J[e+64>>2],20)>>2];if(!(J[b+16>>2]>>>(e>>>4)&1)|!(J[b+20>>2]>>>e&1)|!(J[b+24>>2]>>>(e>>>9)&1))break e;if(!(Ab[J[b+4>>2]](J[b>>2],a)|0))break e;c=1;break b}b=b+28|0;c=c-1|0;if(c)continue;break}}c=0}J[a+184>>2]=g;J[a+180>>2]=k;J[a+8>>2]=a;e=J[a+88>>2];J[a+36>>2]=J[e+68>>2];J[a+32>>2]=0;J[a+24>>2]= -0;J[a+28>>2]=0;J[a+12>>2]=g;b=J[a+76>>2];f=(b|0)==1;H[a+20|0]=f;H[a+21|0]=K[a+194|0];J[a+16>>2]=J[a+176>>2];H[a+23|0]=0;d=!b&K[a+195|0]!=0;H[a+22|0]=d;J[a+44>>2]=a;J[a+72>>2]=J[e+68>>2];J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+48>>2]=g;H[a+57|0]=1;H[a+59|0]=0;H[a+58|0]=d&(b|0)!=1;J[a+52>>2]=-1;H[a+56|0]=f?1:K[a+193|0];return c|0}function una(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;e=169776;f=J[J[a+84>>2]+152>>2];c=J[f>>2];c=c?c:169776;d=M[c+16>>2]<4?169776:J[c+12>>2];a:{if((K[d| -0]|K[d+1|0]<<8)!=256)break a;c=169776;g=K[d+8|0]|K[d+9|0]<<8;if(g)c=d+((g<<8|g>>>8)&65535)|0;d=K[c|0]|K[c+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<=b>>>0)break a;d=(b<<1)+c|0;d=K[d+2|0]|K[d+3|0]<<8;if(!d)break a;e=((d<<8|d>>>8)&65535)+c|0}k=J[a+180>>2];J[a+180>>2]=b;c=K[e+2|0]|K[e+3|0]<<8;d=c<<8|c>>>8;c=d&65535;g=J[a+184>>2];if(d&16){d=c;c=K[e+4|0]|K[e+5|0]<<8;c=(((c<<8|c>>>8)&65535)<<1)+e|0;c=K[c+6|0]|K[c+7|0]<<8;c=d|(c<<24|c<<8&16711680)}J[a+184>>2]=c;J[a+8>>2]=a;h=J[a+88>>2];J[a+36>>2]=J[h+68>>2];J[a+ -32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+12>>2]=c;d=J[a+76>>2];i=(d|0)==1;H[a+20|0]=i;H[a+21|0]=K[a+194|0];J[a+16>>2]=J[a+176>>2];J[a+44>>2]=a;H[a+23|0]=0;j=!d&K[a+195|0]!=0;H[a+22|0]=j;J[a+72>>2]=J[h+68>>2];J[a+48>>2]=c;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;H[a+57|0]=1;H[a+59|0]=0;H[a+58|0]=(d|0)!=1&j;J[a+52>>2]=-1;H[a+56|0]=i?1:K[a+193|0];c=0;b:{if(M[f+4>>2]<=b>>>0)break b;h=b<<2;d=J[h+J[f+8>>2]>>2];c:{d:{if(d)break d;while(1){c=J[f>>2];c=c?c:169776;d=pH(ht(M[c+16>>2]<4?169776:J[c+12>>2],b));if(!d)break c; -i=h+J[f+8>>2]|0;c=J[i>>2];J[i>>2]=c?c:d;if(!c)break d;Kb(d);d=J[h+J[f+8>>2]>>2];if(!d)continue;break}}b=K[e+4|0]|K[e+5|0]<<8;c=0;if(!b)break b;c=(b<<8|b>>>8)&65535;b=d+16|0;while(1){e:{e=J[a+88>>2];e=J[J[e+80>>2]+P(J[e+64>>2],20)>>2];if(!(J[b+16>>2]>>>(e>>>4)&1)|!(J[b+20>>2]>>>e&1)|!(J[b+24>>2]>>>(e>>>9)&1))break e;if(!(Ab[J[b+4>>2]](J[b>>2],a)|0))break e;c=1;break b}b=b+28|0;c=c-1|0;if(c)continue;break}}c=0}J[a+184>>2]=g;J[a+180>>2]=k;J[a+8>>2]=a;e=J[a+88>>2];J[a+36>>2]=J[e+68>>2];J[a+32>>2]=0;J[a+ -24>>2]=0;J[a+28>>2]=0;J[a+12>>2]=g;b=J[a+76>>2];f=(b|0)==1;H[a+20|0]=f;H[a+21|0]=K[a+194|0];J[a+16>>2]=J[a+176>>2];H[a+23|0]=0;d=!b&K[a+195|0]!=0;H[a+22|0]=d;J[a+44>>2]=a;J[a+72>>2]=J[e+68>>2];J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+48>>2]=g;H[a+57|0]=1;H[a+59|0]=0;H[a+58|0]=d&(b|0)!=1;J[a+52>>2]=-1;H[a+56|0]=f?1:K[a+193|0];return c|0}function hha(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;b=J[a+480>>2];J[a+136>>2]=J[b+16>>2];J[a+132>>2]=J[b+20>>2];a:{b:switch(J[a+88>>2]){case 0:if(J[a+ -120>>2]==3){J[b+4>>2]=1378;return}J[b+4>>2]=1379;return;case 1:c=J[a+120>>2];J[b+48>>2]=0;J[b+4>>2]=(c|0)==3?1380:1381;if(!J[b+28>>2])uE(a);if(J[b+52>>2])break a;e=J[a+120>>2];if((e|0)<=0)break a;h=J[a+480>>2];while(1){i=(f<<2)+h|0;b=J[i+32>>2];c=0;c:{d:{if(!f)break d;while(1){d=(c<<2)+h|0;if((b|0)!=J[d+32>>2]){c=c+1|0;if((f|0)!=(c|0))continue;break d}break}g=J[d+52>>2];if(g)break c}b=(b<<9)-512|0;e=0;g=Ab[J[J[a+4>>2]>>2]](a,1,1024)|0;while(1){c=(e<<6)+g|0;d=e<<4;J[c+60>>2]=(P(255-(K[d+248415|0]<< -1)|0,255)|0)/(b|0);J[c+56>>2]=(P(255-(K[d+248414|0]<<1)|0,255)|0)/(b|0);J[c+52>>2]=(P(255-(K[d+248413|0]<<1)|0,255)|0)/(b|0);J[c+48>>2]=(P(255-(K[d+248412|0]<<1)|0,255)|0)/(b|0);J[c+44>>2]=(P(255-(K[d+248411|0]<<1)|0,255)|0)/(b|0);J[c+40>>2]=(P(255-(K[d+248410|0]<<1)|0,255)|0)/(b|0);J[c+36>>2]=(P(255-(K[d+248409|0]<<1)|0,255)|0)/(b|0);J[c+32>>2]=(P(255-(K[d+248408|0]<<1)|0,255)|0)/(b|0);J[c+28>>2]=(P(255-(K[d+248407|0]<<1)|0,255)|0)/(b|0);J[c+24>>2]=(P(255-(K[d+248406|0]<<1)|0,255)|0)/(b|0);J[c+20>> -2]=(P(255-(K[d+248405|0]<<1)|0,255)|0)/(b|0);J[c+16>>2]=(P(255-(K[d+248404|0]<<1)|0,255)|0)/(b|0);J[c+12>>2]=(P(255-(K[d+248403|0]<<1)|0,255)|0)/(b|0);J[c+8>>2]=(P(255-(K[d+248402|0]<<1)|0,255)|0)/(b|0);J[c+4>>2]=(P(255-(K[d+248401|0]<<1)|0,255)|0)/(b|0);J[c>>2]=(P(255-(K[d+248400|0]<<1)|0,255)|0)/(b|0);e=e+1|0;if((e|0)!=16)continue;break}e=J[a+120>>2]}J[i+52>>2]=g;f=f+1|0;if((f|0)<(e|0))continue;break}break a;case 2:J[b+84>>2]=0;J[b+4>>2]=1382;e:{if(J[b+68>>2]){d=J[a+120>>2];break e}if(J[a+120>> -2]<=0)break a;e=(J[a+112>>2]<<1)+4|0;while(1){j=b+(c<<2)|0,k=Ab[J[J[a+4>>2]+4>>2]](a,1,e)|0,J[j+68>>2]=k;c=c+1|0;d=J[a+120>>2];if((c|0)<(d|0))continue;break}}if((d|0)<=0)break a;d=(J[a+112>>2]<<1)+4|0;c=0;while(1){Oc(J[(b+(c<<2)|0)+68>>2],d);c=c+1|0;if((c|0)>2])continue;break}break a;default:break b}b=J[a>>2];J[b+20>>2]=49;Ab[J[b>>2]](a)}}function _y(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;j=xb-128|0;xb=j;a:{b:{c:{if(!Ji(f,g,h,i,0,0,0,0))break c;k=i&65535;n=i>>> -16&32767;d:e:{if((n|0)!=32767){l=4;if(n)break e;l=f|h|(g|k)?3:2;break d}l=!(f|h|(g|k))}s=e>>>16|0;o=s&32767;if((o|0)==32767)break c;if(l)break b}pd(j+16|0,b,c,d,e,f,g,h,i);b=J[j+16>>2];d=J[j+20>>2];e=J[j+24>>2];c=J[j+28>>2];Ky(j,b,d,e,c,b,d,e,c);d=J[j+8>>2];e=J[j+12>>2];h=J[j>>2];i=J[j+4>>2];break a}l=d;p=e&2147483647;k=p;n=h;m=i&2147483647;if((Ji(b,c,l,k,f,g,h,m)|0)<=0){if(Ji(b,c,l,k,f,g,h,m)){h=b;i=c;break a}pd(j+112|0,b,c,d,e,0,0,0,0);d=J[j+120>>2];e=J[j+124>>2];h=J[j+112>>2];i=J[j+116>>2];break a}q= -i>>>16&32767;if(o){i=c;h=b}else{pd(j+96|0,b,c,l,p,0,0,0,1081540608);l=J[j+104>>2];h=J[j+108>>2];p=h;o=(h>>>16|0)-120|0;i=J[j+100>>2];h=J[j+96>>2]}if(!q){pd(j+80|0,f,g,n,m,0,0,0,1081540608);n=J[j+88>>2];f=J[j+92>>2];m=f;q=(f>>>16|0)-120|0;g=J[j+84>>2];f=J[j+80>>2]}r=n;t=m&65535|65536;p=p&65535|65536;if((o|0)>(q|0)){while(1){m=l-r|0;k=(g|0)==(i|0)&f>>>0>h>>>0|g>>>0>i>>>0;n=m-k|0;k=(p-((l>>>0>>0)+t|0)|0)-(k>>>0>m>>>0)|0;f:{if((k|0)>=0|(k|0)>0){l=h;h=h-f|0;i=i-((f>>>0>l>>>0)+g|0)|0;if(!(h|n|(i|k))){pd(j+ -32|0,b,c,d,e,0,0,0,0);d=J[j+40>>2];e=J[j+44>>2];h=J[j+32>>2];i=J[j+36>>2];break a}k=k<<1|n>>>31;l=n<<1|i>>>31;break f}k=p<<1|l>>>31;l=l<<1|i>>>31}p=k;k=i<<1|h>>>31;h=h<<1;i=k;o=o-1|0;if((o|0)>(q|0))continue;break}o=q}m=l-r|0;k=(g|0)==(i|0)&f>>>0>h>>>0|g>>>0>i>>>0;n=m-k|0;k=(p-((l>>>0>>0)+t|0)|0)-(k>>>0>m>>>0)|0;m=k;g:{if((k|0)<0){n=l;m=p;break g}l=h;h=h-f|0;i=i-((f>>>0>l>>>0)+g|0)|0;if(h|n|(i|m))break g;pd(j+48|0,b,c,d,e,0,0,0,0);d=J[j+56>>2];e=J[j+60>>2];h=J[j+48>>2];i=J[j+52>>2];break a}if((m| -0)==65535|m>>>0<65535)while(1){b=i>>>31|0;o=o-1|0;p=i<<1|h>>>31;h=h<<1;i=p;c=b;b=m<<1|n>>>31;n=c|n<<1;m=b;if(b>>>0<65536)continue;break}b=s&32768;if((o|0)<=0){pd(j- -64|0,h,i,n,m&65535|(b|o+120)<<16,0,0,0,1065811968);d=J[j+72>>2];e=J[j+76>>2];h=J[j+64>>2];i=J[j+68>>2];break a}d=n;e=m&65535|(b|o)<<16}J[a>>2]=h;J[a+4>>2]=i;J[a+8>>2]=d;J[a+12>>2]=e;xb=j+128|0}function Xda(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0, -C=0,D=0,E=0,F=0;u=xb-256|0;xb=u;e=a;while(1){a:{h=e;d=J[(l<<2)+b>>2]+c|0;i=K[d+4|0];m=K[d+3|0];g=i+m|0;k=K[d+7|0];j=K[d|0];f=k+j|0;n=g+f|0;p=K[d+5|0];o=K[d+2|0];q=p+o|0;r=K[d+6|0];s=K[d+1|0];d=r+s|0;t=q+d|0;J[e+16>>2]=n-t<<2;J[e>>2]=(n+t<<2)-4096;g=f-g|0;f=d-q|0;d=P(g+f|0,4433)+1024|0;J[e+24>>2]=d+P(f,-15137)>>11;J[e+8>>2]=d+P(g,6270)>>11;d=m-i|0;i=j-k|0;m=P(d+i|0,-7373)+1024|0;g=s-r|0;f=g+d|0;k=o-p|0;n=k+i|0;j=P(f+n|0,9633);o=m+P(d,2446)|0;d=j+P(f,-16069)|0;J[e+28>>2]=o+d>>11;j=j+P(n,-3196)|0;f= -P(k,16819);k=P(g+k|0,-20995)+1024|0;J[e+20>>2]=j+(f+k|0)>>11;J[e+12>>2]=d+(k+P(g,25172)|0)>>11;J[e+4>>2]=j+(m+P(i,12299)|0)>>11;i=l-7|0;l=l+1|0;e=u;d=7;b:switch(i|0){case 0:continue;case 8:break a;default:break b}e=h+32|0;continue}break}while(1){i=J[e+32>>2];m=J[a+192>>2];b=i+m|0;k=J[e+192>>2];j=J[a+32>>2];c=k+j|0;h=b+c|0;l=J[e+64>>2];g=J[a+160>>2];f=l+g|0;n=J[e+160>>2];p=J[a+64>>2];o=n+p|0;q=f+o|0;r=J[e>>2];s=J[a+224>>2];t=r+s|0;v=J[e+224>>2];w=J[a>>2];x=v+w|0;y=t+x|0;z=J[e+96>>2];A=J[a+128>>2]; -B=z+A|0;C=J[e+128>>2];D=J[a+96>>2];E=C+D|0;F=B+E|0;J[a+128>>2]=(P(h-q|0,4433)+P(y-F|0,10703)|0)+32768>>16;J[a>>2]=((h+(q+F|0)|0)+y|0)+4>>3;h=x-t|0;f=o-f|0;o=E-B|0;c=c-b|0;b=(P(h-f|0,11363)+P(o-c|0,2260)|0)+32768|0;J[a+192>>2]=(b+P(o,-8697)|0)+P(h,-1730)>>16;J[a+64>>2]=(b+P(f,17799)|0)+P(c,11893)>>16;b=g-l|0;c=A-z|0;h=D-C|0;l=p-n|0;g=(P(b-c|0,3363)+P(h+l|0,-11086)|0)+32768|0;i=m-i|0;m=j-k|0;k=P(i+c|0,-10217)+P(m+h|0,-5461)|0;n=k+((g+P(h,8728)|0)+P(c,17760)|0)|0;j=c;c=s-r|0;f=h;h=w-v|0;j=P(j-c|0,7350)+ -P(f+h|0,8956)|0;J[a+224>>2]=n+j>>16;f=(g+P(l,-9222)|0)+P(b,10055)|0;g=P(i-b|0,11529)+P(l+m|0,1136)|0;b=P(b+c|0,5461)+P(h+l|0,10217)|0;J[a+160>>2]=(f+g|0)+b>>16;l=P(i-c|0,3363)+P(h+m|0,11086)|0;J[a+96>>2]=(l+(g+((k+P(m,589)|0)+P(i,-13631)|0)|0)|0)+32768>>16;J[a+32>>2]=(j+(l+((b+P(h,-18730)|0)+P(c,6387)|0)|0)|0)+32768>>16;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b)continue;break}xb=u+256|0}function jw(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;if(!(K[a+16|0]&8)){f=P(c,204)+b|0;n= -J[f+200>>2];g=J[f+204>>2]+Rb(J[a>>2],n)|0;e=Rb(J[a+4>>2],n);a:{b:{c:{d:{e:switch(c|0){case 1:if(K[d+121|0])break d;break b;case 0:if(!K[d+120|0])break b;k=K[d+122|0]!=0;break;default:break e}J[a+12>>2]=e;break c}o=K[d+123|0];J[a+12>>2]=e;p=J[a>>2];r=K[b+2492|0];k=2;f=J[b+412>>2];f:{g:{if(!f)break g;i=J[a+4>>2]+p|0;h=b+416|0;j=J[b+2488>>2];l=0-j|0;while(1){m=i-J[h+12>>2]|0;if((m|0)<(l|0))break g;if((i|0)<=(j+J[h+8>>2]|0)){if(!r){f=0;if((m|0)>J[b+2484>>2])break f}q=J[h+16>>2];k=3;f=1;break f}h=h+32| -0;f=f-1|0;if(f)continue;break}}f=0}j=J[b+928>>2];h:{if(!j){i=0;break h}i=0;l=J[b+2488>>2];m=0-l|0;h=((j<<5)+b|0)+932|0;while(1){s=J[h-24>>2]-p|0;if((m|0)>(s|0))break h;if((J[h-20>>2]-l|0)>(p|0)){h=h-32|0;j=j-1|0;if(j)continue;break h}break}if(!r&J[b+2484>>2]<=(s|0))break h;i=J[h-16>>2];f=k}k=(o|0)!=0;i:switch(f-1|0){case 1:J[a+8>>2]=i;if(!o)break a;J[a+12>>2]=(e|0)<64?64:e+32&-64;break a;case 2:J[a+8>>2]=i;J[a+12>>2]=q-i;break a;case 0:break i;default:break c}J[a+8>>2]=q-e;if(!o)break a;b=(e|0)<64? -64:e+32&-64;J[a+12>>2]=b;J[a+8>>2]=q-b;break a}f=J[a+20>>2];if(f){if(!(K[f+16|0]&8))jw(f,b,c,d);g=((J[f+8>>2]-(e>>1)|0)+(J[f+12>>2]>>1)|0)+Rb((J[a>>2]-(J[f>>2]+(J[f+4>>2]>>1)|0)|0)+(J[a+4>>2]>>1)|0,n)|0}j:{if(!K[d+124|0])break j;if((e|0)<=64){if((e|0)>=32){g=(e>>>1|0)+g&-64;e=64;break j}b=g+32&-64;if((e|0)<=0){g=b;break j}f=b-g|0;c=f>>31;d=e+g|0;g=d+32&-64;h=g-d|0;d=h>>31;g=(c^f)-c>>>0>(d^h)-d>>>0?g:b;break j}b=J[(P(c,204)+b|0)+12>>2];d=e-b|0;c=d>>31;e=(c^d)-c>>>0<40?(b|0)<=48?48:b:e;if(e>>>0<=191){b= -e&63;if(b>>>0<10)break j;c=e&-64;if(b>>>0<=31){e=c|10;break j}e=b>>>0<54?c|54:e;break j}e=e+32&-64}J[a+12>>2]=e;b=(g+32&-64)-g|0;c=b>>31;d=e+g|0;d=(d+32&-64)-d|0;f=d>>31;c=((b^c)-c>>>0>(d^f)-f>>>0?d:b)+g|0;J[a+8>>2]=c;if(!k)break a;d=(e|0)<64?64:e+32&-64;b=d>>1;J[a+12>>2]=d;J[a+8>>2]=(d&64?b+c&-64|32:(b+c|0)+32&-64)-b;break a}J[a+12>>2]=e;J[a+8>>2]=g}J[a+16>>2]=J[a+16>>2]|8}}function xD(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;d=xb-48|0;xb=d;a:{b:{if(!a)break b; -if(!b){f=6;break a}if(I[a>>1]<=0)break a;h=J[b+20>>2];i=J[b+16>>2];while(1){m=I[J[a+12>>2]+(o<<1)>>1];if((m|0)<0)break b;j=J[a+4>>2];e=j+(g<<3)|0;k=J[e>>2];f=J[e+4>>2];J[d+32>>2]=(k<>2]=p;l=j+(m<<3)|0;k=J[l>>2];q=J[l+4>>2];n=J[d+36>>2];f=J[d+32>>2];J[d+40>>2]=f;J[d+44>>2]=n;c:{d:{n=J[a+8>>2];j=n+g|0;switch(K[j|0]&3){case 2:break b;case 0:break d;default:break c}}g=(q<>2]=g;J[d+ -32>>2]=k;j=j-1|0;e=e-8|0}f=Ab[J[b>>2]](d+32|0,c)|0;if(f)break a;f:{if(e>>>0>>0)while(1){k=j+1|0;g=e+8|0;g:{h:{i:switch(K[j+1|0]&3){case 1:J[d+24>>2]=(J[e+8>>2]<>2]=(J[e+12>>2]<>2]](d+24|0,c)|0;if(f)break a;break g;case 0:J[d+40>>2]=(J[e+8>>2]<>2]=(J[e+12>>2]<>>0>>0)while(1){e=K[k+1|0];j=(J[g+8>>2]<>2]=j;f=(J[g+12>>2]<>2]=f;k=k+1|0;g=g+8|0;j:{e=e&3;k:{if(e){if((e|0)!=1){g=7;f=0;break h}f=Ab[J[b+8>>2]](d+ -40|0,d+24|0,c)|0;if(f)break k;e=g;j=k;break g}J[d+16>>2]=(j+J[d+40>>2]|0)/2;J[d+20>>2]=(f+J[d+44>>2]|0)/2;f=Ab[J[b+8>>2]](d+40|0,d+16|0,c)|0;if(!f)break j}g=10;break h}e=J[d+28>>2];J[d+40>>2]=J[d+24>>2];J[d+44>>2]=e;if(g>>>0>>0)continue;break}f=Ab[J[b+8>>2]](d+40|0,d+32|0,c)|0;break f;default:break i}g=7;f=0;if((K[j+2|0]&3)!=2|e+16>>>0>l>>>0)break h;J[d+24>>2]=(J[e+8>>2]<>2]=(J[e+12>>2]<>2]=(J[e+16>>2]<>2]=(J[e+20>>2]<>>0<=l>>>0){J[d+8>> -2]=(J[e+24>>2]<>2]=(J[e+28>>2]<>2]](d+24|0,d+16|0,d+8|0,c)|0;if(f){g=10;break h}j=j+3|0;e=g;break g}f=Ab[J[b+12>>2]](d+24|0,d+16|0,d+32|0,c)|0;break f}if((g|0)!=7)break a;break b}if(e>>>0>>0)continue;break}f=Ab[J[b+4>>2]](d+32|0,c)|0}if(f)break a;g=m+1|0;f=0;o=o+1|0;if((o|0)>1])continue;break}break a}f=20}xb=d+48|0;return f|0}function Sfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0, -y=0;v=xb-224|0;xb=v;n=J[a+332>>2];a=J[b+84>>2];b=v;while(1){h=J[a+160>>2];i=I[c+80>>1];j=J[a+32>>2];o=I[c+16>>1];q=J[a+96>>2];l=I[c+48>>1];p=P(I[c>>1],J[a>>2])<<13|1024;g=P(J[a+128>>2],I[c+64>>1]);f=P(J[a+192>>2],I[c+96>>1]);m=P(J[a+64>>2],I[c+32>>1]);k=f+m|0;J[b+96>>2]=p+P(g-k|0,11585)>>11;h=P(h,i);i=P(j,o);j=P(h+i|0,5027);k=p+P(k,10438)|0;o=P(g-f|0,7223);s=k+(o+P(f,-637)|0)|0;f=P(q,l);q=P(f+i|0,7663);i=P(i-f|0,1395);l=j+(q-i|0)|0;J[b+192>>2]=s-l>>11;J[b>>2]=l+s>>11;l=P(m,-20239);m=P(m-g|0,2578); -l=k+(l+m|0)|0;f=P(f+h|0,-11295);h=f+(j+P(h,15326)|0)|0;J[b+128>>2]=l-h>>11;J[b+64>>2]=h+l>>11;g=o+(m+(p+P(g,-15083)|0)|0)|0;f=f+(i+q|0)|0;J[b+160>>2]=g-f>>11;J[b+32>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;r=r+1|0;if((r|0)!=8)continue;break}a=n+128|0;b=v;r=0;while(1){g=J[b+12>>2];m=J[b+4>>2];j=P(g+m|0,10935);n=J[b+24>>2];o=J[b+8>>2];q=P(n+o|0,9058);c=J[(r<<2)+d>>2]+e|0;s=J[b+28>>2];p=s<<13;f=J[b+20>>2];l=f+m|0;k=P(l,9810);t=p+(k+(j+P(m,-9232)|0)|0)|0;x=q+P(o,2237)|0;i=(J[b>>2]<<13)+131072|0;h=J[b+16>> -2];y=i+P(h,10438)|0;u=x+y|0;H[c|0]=K[a+(t+u>>>18&1023)|0];H[c+13|0]=K[a+(u-t>>>18&1023)|0];q=q+P(n,-14084)|0;t=i+P(h,2578)|0;u=q+t|0;w=j+P(g,-3474)|0;j=P(f+g|0,-1297)-p|0;w=w+j|0;H[c+1|0]=K[a+(u+w>>>18&1023)|0];H[c+12|0]=K[a+(u-w>>>18&1023)|0];j=j+(k+P(f,-19447)|0)|0;n=P(n,-11295)+P(o,5027)|0;o=i+P(h,-7223)|0;k=n+o|0;H[c+2|0]=K[a+(j+k>>>18&1023)|0];H[c+11|0]=K[a+(k-j>>>18&1023)|0];j=m-g|0;k=s+(j-f|0)<<13;h=i+P(h,-11586)|0;H[c+3|0]=K[a+(k+h>>>18&1023)|0];H[c+10|0]=K[a+(h-k>>>18&1023)|0];h=P(l,6164); -i=p+P(f,-13850)|0;f=P(f-g|0,11512);i=h+(i+f|0)|0;n=o-n|0;H[c+4|0]=K[a+(i+n>>>18&1023)|0];H[c+9|0]=K[a+(n-i>>>18&1023)|0];f=f+P(g,5529)|0;g=P(j,3826)-p|0;f=f+g|0;p=t-q|0;H[c+5|0]=K[a+(f+p>>>18&1023)|0];H[c+8|0]=K[a+(p-f>>>18&1023)|0];g=g+(h+P(m,-8693)|0)|0;f=y-x|0;H[c+6|0]=K[a+(g+f>>>18&1023)|0];H[c+7|0]=K[a+(f-g>>>18&1023)|0];b=b+32|0;r=r+1|0;if((r|0)!=7)continue;break}xb=v+224|0}function Y8(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=xb-32|0;xb=f;k=a+8|0;a:{b:{h=(c-b|0)/ -12|0;d=J[a+8>>2];e=J[a>>2];c:{if(h>>>0<=(d-e|0)/12>>>0){j=(J[a+4>>2]-e|0)/12|0;g=P(j,12)+b|0;l=h>>>0>j>>>0?g:c;d:{if((l|0)==(b|0)){d=e;break d}d=e;while(1){e:{if((b|0)==(d|0))break e;m=K[b+11|0];i=m<<24>>24;if(H[d+11|0]>=0){if((i|0)>=0){i=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=i;J[d+8>>2]=J[b+8>>2];break e}Cw(d,J[b>>2],J[b+4>>2]);break e}i=(i|0)<0;Dw(d,i?J[b>>2]:b,i?J[b+4>>2]:m)}d=d+12|0;b=b+12|0;if((l|0)!=(b|0))continue;break}}b=(d-e|0)/12|0;d=J[a+4>>2];if(h>>>0>j>>>0){J[f+28>>2]=d;J[f+24>>2]=d;H[f+ -20|0]=0;J[f+8>>2]=k;J[f+16>>2]=f+28;J[f+12>>2]=f+24;if((c|0)==(g|0)){J[a+4>>2]=d;break c}b=d;f:{while(1){g:{if(H[g+11|0]>=0){e=J[g+4>>2];J[b>>2]=J[g>>2];J[b+4>>2]=e;J[b+8>>2]=J[g+8>>2];break g}e=J[g+4>>2];h=J[g>>2];J[195395]=0;fa(1808,b|0,h|0,e|0);b=J[195395];J[195395]=0;if((b|0)==1)break f;b=J[f+28>>2]}b=b+12|0;J[f+28>>2]=b;g=g+12|0;if((g|0)!=(c|0))continue;break}J[a+4>>2]=b;break c}b=Z()|0;oC(f+8|0);J[a+4>>2]=d;ba(b|0);B()}c=e+P(b,12)|0;if((c|0)!=(d|0))while(1){b=d-12|0;if(H[d-1|0]<0)Kb(J[b>>2]); -d=b;if((c|0)!=(d|0))continue;break}J[a+4>>2]=c;break c}if(e){d=e;g=J[a+4>>2];if((d|0)!=(g|0)){while(1){d=g-12|0;if(H[g-1|0]<0)Kb(J[d>>2]);g=d;if((d|0)!=(e|0))continue;break}d=J[a>>2]}J[a+4>>2]=e;Kb(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}if(h>>>0>=357913942)break b;d=(d|0)/12|0;e=d<<1;d=d>>>0>=178956970?357913941:e>>>0>h>>>0?e:h;if(d>>>0>=357913942)break b;d=P(d,12);e=Pb(d);J[a+4>>2]=e;J[a>>2]=e;J[a+8>>2]=d+e;J[f+28>>2]=e;J[f+24>>2]=e;H[f+20|0]=0;J[f+8>>2]=k;J[f+16>>2]=f+28;J[f+12>>2]=f+24;h:{if((b| -0)==(c|0)){d=e;break h}d=e;while(1){i:{if(H[b+11|0]>=0){g=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=g;J[d+8>>2]=J[b+8>>2];break i}g=J[b+4>>2];h=J[b>>2];J[195395]=0;fa(1808,d|0,h|0,g|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;d=J[f+28>>2]}d=d+12|0;J[f+28>>2]=d;b=b+12|0;if((c|0)!=(b|0))continue;break}}J[a+4>>2]=d}xb=f+32|0;return}Ve(a);B()}b=Z()|0;oC(f+8|0);J[a+4>>2]=e;ba(b|0);B()}function Ona(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;J[b>>2]=0;J[b+4>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+ -8>>2]=0;J[b+12>>2]=0;J[b+24>>2]=0;J[b+28>>2]=-1;c=J[a>>2];e=J[c+4>>2];d=J[c+8>>2];while(1){a:{f=d+1|0;j=f>>>0>e>>>0;if(j)break a;g=J[c>>2];h=K[g+d|0];J[c+8>>2]=f;b:{if((h|0)!=12)break b;d=d+2|0;if(d>>>0>e>>>0){h=65535;break b}e=K[f+g|0];J[c+8>>2]=d;h=e|256}e=c;g=0;c:{d:{e:{f:{g:{h:switch(h-261|0){case 0:case 2:break f;case 1:break g;default:break h}if((h|0)!=18){if((h|0)!=294)break g;f=e+16|0;d=e+20|0;c=J[d>>2];i:{if(c){i=O[f+(c<<3)>>3];break i}H[f|0]=1;c=J[42445];g=J[42444];J[194120]=g;J[194121]= -c;x(0,g|0);x(1,c|0);i=+z()}j:{if(R(i)<2147483648){c=~~i;break j}c=-2147483648}if((c|0)<0){H[f|0]=1;c=0}J[b+28>>2]=c;break e}f=e+16|0;d=e+20|0;c=J[d>>2];k:{if(c){g=c-1|0;i=O[(f+(g<<3)|0)+8>>3];break k}H[f|0]=1;c=J[42445];k=J[42444];J[194120]=k;J[194121]=c;x(0,k|0);x(1,c|0);i=+z()}l:{if(R(i)<2147483648){c=~~i;break l}c=-2147483648}if((c|0)<0){H[f|0]=1;c=0}J[b+16>>2]=c;if(g)i=O[f+(g<<3)>>3];else{H[f|0]=1;c=J[42445];g=J[42444];J[194120]=g;J[194121]=c;x(0,g|0);x(1,c|0);i=+z()}m:{if(R(i)<2147483648){c= -~~i;break m}c=-2147483648}if((c|0)<0){H[f|0]=1;c=0}J[b+20>>2]=c;break e}Ek(h,e);if(!J[e+20>>2])break d;break c}d=e+20|0}J[d>>2]=0}if(K[e+16|0]|M[e+8>>2]>M[e+4>>2])break c;d=J[b+4>>2];c=J[b+8>>2];n:{o:{if((d|0)>(c|0))break o;p:{if((d|0)>=0){f=c+1|0;if(f>>>0<=d>>>0)break o;c=d;while(1){c=((c>>>1|0)+c|0)+8|0;if(f>>>0>c>>>0)continue;break}if(c>>>0<=357913941){d=ic(J[b+12>>2],P(c,12));if(d)break p;d=J[b+4>>2];if(d>>>0>=c>>>0)break o}J[b+4>>2]=d^-1}J[194122]=J[42446];c=J[42445];J[194120]=J[42444];J[194121]= -c;d=776480;break n}J[b+4>>2]=c;J[b+12>>2]=d}c=J[b+8>>2];J[b+8>>2]=c+1;d=J[b+12>>2]+P(c,12)|0;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=65535}J[d+4>>2]=h;c=J[e+8>>2];h=J[e+4>>2];f=J[e>>2];e=J[b>>2];J[d>>2]=f+e;f=d;d=h-e|0;d=d>>>0<=h>>>0?d:0;e=c-e|0;H[f+8|0]=d>>>0>>0?d:e;J[b>>2]=c}c=J[a>>2];d=J[c+8>>2];e=J[c+4>>2];if(d>>>0>e>>>0)break a;if(!K[c+16|0])continue}break}return j|0}function Ws(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-16|0;xb=f;J[f+12>>2]=0;J[f+8>>2]=0;J[f+4>>2]=0;J[f>>2]=0;e=J[a+8>>2];d=J[a+ -4>>2];a:{if(!(Ab[J[a+20>>2]](a,c,f+12|0,f+8|0)|0))break a;c=J[f+8>>2];if(c){J[f>>2]=0;h=J[e+116>>2];i=J[h+28>>2];j=J[e+120>>2];h=J[h+12>>2];if(h)h=J[h+8>>2];else h=0;if(!(Ab[i|0](e,j,c,f,h)|0))break a}J[f+4>>2]=0;c=J[e+116>>2];g=J[c+28>>2];h=J[e+120>>2];i=J[f+12>>2];j=f+4|0;c=J[c+12>>2];if(c)c=J[c+8>>2];else c=0;c=Ab[g|0](e,h,i,j,c)|0;g=J[f+12>>2];if(!c|!b){g=Ws(a,b,g);if(g){c=J[f+8>>2];if(!c)break a;J[(J[d+80>>2]+P(J[d+64>>2],20)|0)+12>>2]=J[f>>2];b:{if(!ec(d,0,1)){a=J[d+72>>2];break b}a=J[d+64>> -2];c:{if(a>>>0>2]){e=J[d+72>>2];b=J[d+84>>2];a=J[d+80>>2]+P(a,20)|0;break c}b=J[d+84>>2];e=J[d+72>>2];a=e-1|0;a=b+P(a>>>0<=e>>>0?a:0,20)|0}b=P(e,20)+b|0;e=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=e;J[b+16>>2]=J[a+16>>2];e=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=e;J[b>>2]=c;a=J[d+72>>2]+1|0;J[d+72>>2]=a}b=a-1|0;mj(J[d+84>>2]+P(a>>>0>=b>>>0?b:0,20)|0,d);g=g+1|0;break a}if(!c){g=0;break a}g=J[f+12>>2]}J[(J[d+80>>2]+P(J[d+64>>2],20)|0)+12>>2]=J[f+4>>2];d:{if(!ec(d,0,1)){a=J[d+72>>2];break d}a=J[d+ -64>>2];e:{if(a>>>0>2]){e=J[d+72>>2];c=J[d+84>>2];a=J[d+80>>2]+P(a,20)|0;break e}c=J[d+84>>2];e=J[d+72>>2];a=e-1|0;a=c+P(a>>>0<=e>>>0?a:0,20)|0}b=P(e,20)+c|0;c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;J[b+16>>2]=J[a+16>>2];c=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=c;J[b>>2]=g;a=J[d+72>>2]+1|0;J[d+72>>2]=a}b=a-1|0;mj(J[d+84>>2]+P(a>>>0>=b>>>0?b:0,20)|0,d);g=J[f+8>>2];if(!g){g=1;break a}J[(J[d+80>>2]+P(J[d+64>>2],20)|0)+12>>2]=J[f>>2];f:{if(!ec(d,0,1)){a=J[d+72>>2];break f}a=J[d+64>>2];g:{if(a>>> -0>2]){e=J[d+72>>2];c=J[d+84>>2];a=J[d+80>>2]+P(a,20)|0;break g}c=J[d+84>>2];e=J[d+72>>2];a=e-1|0;a=c+P(a>>>0<=e>>>0?a:0,20)|0}b=P(e,20)+c|0;c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;J[b+16>>2]=J[a+16>>2];c=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=c;J[b>>2]=g;a=J[d+72>>2]+1|0;J[d+72>>2]=a}b=a-1|0;mj(J[d+84>>2]+P(a>>>0>=b>>>0?b:0,20)|0,d);g=2}xb=f+16|0;return g}function rj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=J[a>>2];h=J[a+4>>2];f=b+(h&-8)|0;a=Kpa(h,0,510466405,-2013047310)^-197656602;d= -zb;a:{b:{if(b&7){if(h>>>0<8)break a;i=h-8|0;if(!(i&8)){e=a;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);g=c>>>23|0;a=Kpa(a^((c&8388607)<<9|a>>>23),c^g,-198026185,556226971);c=zb;a=Kpa(a^(c>>>15^e),c^d,510466405,-2013047310);b=b+8|0;d=zb}if(i>>>0<8)break b;while(1){g=a;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);e=c>>>23|0;a=Kpa(a^((c&8388607)<<9|a>>>23),c^e,-198026185,556226971);e=zb;e=Kpa(a^ -(e>>>15^g),d^e,510466405,-2013047310);c=zb;a=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);d=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);g=d>>>23|0;a=Kpa(a^((d&8388607)<<9|a>>>23),d^g,-198026185,556226971);d=zb;a=Kpa(a^(d>>>15^e),c^d,510466405,-2013047310);d=zb;b=b+16|0;if((f|0)!=(b|0))continue;break}break b}if(h>>>0<8)break a;i=h-8|0;if(!(i&8)){g=a;a=J[b>>2];c=J[b+4>>2];e=c>>>23|0;a=Kpa(a^((c&8388607)<<9|a>>>23),c^e,-198026185,556226971);e=zb;a=Kpa(a^(e>>>15^g),d^e,510466405,-2013047310); -b=b+8|0;d=zb}if(i>>>0<8)break b;while(1){e=a;a=J[b>>2];c=J[b+4>>2];g=c>>>23|0;a=Kpa(a^((c&8388607)<<9|a>>>23),c^g,-198026185,556226971);c=zb;g=Kpa(a^(c>>>15^e),c^d,510466405,-2013047310);c=zb;a=J[b+8>>2];d=J[b+12>>2];e=d>>>23|0;a=Kpa(a^((d&8388607)<<9|a>>>23),d^e,-198026185,556226971);d=zb;a=Kpa(a^(d>>>15^g),c^d,510466405,-2013047310);d=zb;b=b+16|0;if((f|0)!=(b|0))continue;break}}b=f}c=0;f=0;c:switch((h&7)-1|0){case 6:f=K[b+6|0]<<16;case 5:f=f|K[b+5|0]<<8;case 4:f=f^K[b+4|0];case 3:e=K[b+3|0];g=e>>> -8|0;c=c^e<<24;f=f^g;case 2:e=K[b+2|0];g=e>>>16|0;c=c^e<<16;f=f^g;case 1:e=K[b+1|0];g=e>>>24|0;c=c^e<<8;f=f^g;case 0:f=Kpa(c^(K[b|0]^((f&8388607)<<9|c>>>23)),f^f>>>23,-198026185,556226971);b=zb;a=Kpa(f^(b>>>15^a),b^d,510466405,-2013047310);d=zb;break;default:break c}a=Kpa(a^((d&8388607)<<9|a>>>23),d^d>>>23,-198026185,556226971);d=zb;return(a^d>>>15)-d|0}function kw(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;i=xb-16|0;xb=i;g=J[b>>2];e=g<<1;f=i+12|0;u=a,v=Tb(d, -4,0,e,0,f),J[u+12>>2]=v;a:{if(J[i+12>>2])break a;u=a,v=Tb(d,28,0,g,0,f),J[u+8>>2]=v;if(J[i+12>>2])break a;u=a,v=Tb(d,16,0,e|1,0,f),J[u+24>>2]=v;if(J[i+12>>2])break a;J[a>>2]=g;J[a+28>>2]=0;J[a+20>>2]=0;J[a+4>>2]=0;J[a+16>>2]=J[a+12>>2]+(g<<2);b:{if(!g)break b;d=J[a+8>>2];b=J[b+8>>2];h=g&3;c:{if(!h){e=g;break c}f=0;e=g;while(1){J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];b=b+12|0;d=d+28|0;e=e-1|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}if(g>>>0<4)break b;while(1){J[d>>2]=J[b>>2];J[d+4>> -2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];J[d+28>>2]=J[b+12>>2];J[d+32>>2]=J[b+16>>2];J[d+44>>2]=J[b+20>>2];J[d+56>>2]=J[b+24>>2];J[d+60>>2]=J[b+28>>2];J[d+72>>2]=J[b+32>>2];J[d+84>>2]=J[b+36>>2];J[d+88>>2]=J[b+40>>2];J[d+100>>2]=J[b+44>>2];b=b+48|0;d=d+112|0;e=e-4|0;if(e)continue;break}}f=0;d:{if(!c)break d;j=J[c>>2];k=J[c+8>>2];J[a+32>>2]=c;if(!j)break d;while(1){p=J[k>>2];if(p){m=J[k+8>>2];b=0;l=0;q=0;while(1){if(!b){q=K[m|0];m=m+1|0;b=128}e:{if(!(b&q)|g>>>0<=l>>>0)break e;h=J[a+8>>2]+P(l,28)|0;c=J[h+ -16>>2];if(c&4)break e;J[h+16>>2]=c|4;c=J[a+16>>2];J[h+20>>2]=0;f:{if(!f)break f;r=J[h>>2];t=r+J[h+4>>2]|0;e=f;d=c;while(1){n=J[d>>2];s=J[n>>2];if(!((s|0)>(t|0)|(J[n+4>>2]+s|0)<(r|0))){J[h+20>>2]=n;break f}d=d+4|0;e=e-1|0;if(e)continue;break}}if(f>>>0>=g>>>0)break e;d=f+1|0;J[a+4>>2]=d;J[c+(f<<2)>>2]=h;f=d}b=b>>>1|0;l=l+1|0;if((p|0)!=(l|0))continue;break}}k=k+16|0;j=j-1|0;if(j)continue;break}}if(!g|(f|0)==(g|0))break a;while(1){e=J[a+8>>2]+P(o,28)|0;b=J[e+16>>2];g:{if(b&4)break g;J[e+16>>2]=b|4;c= -J[a+16>>2];J[e+20>>2]=0;h:{if(!f)break h;k=J[e>>2];l=k+J[e+4>>2]|0;b=f;d=c;while(1){h=J[d>>2];j=J[h>>2];if(!((j|0)>(l|0)|(k|0)>(j+J[h+4>>2]|0))){J[e+20>>2]=h;break h}d=d+4|0;b=b-1|0;if(b)continue;break}}if(f>>>0>=g>>>0)break g;b=f+1|0;J[a+4>>2]=b;J[c+(f<<2)>>2]=e;f=b}o=o+1|0;if((o|0)!=(g|0))continue;break}}xb=i+16|0;return J[i+12>>2]}function Yoa(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=Q(0),j=0,k=Q(0);f=xb-96|0;xb=f;h=J[b+32>>2];b=J[b>>2];J[195395]=0;b=aa(690,h|0,c|0,b|8)|0; -c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){d:{if(b)break d;g=J[h+84>>2];if(J[g+72>>2]!=1869968492)break d;b=J[29117];J[f+88>>2]=J[29116];J[f+92>>2]=b;b=J[29115];J[f+80>>2]=J[29114];J[f+84>>2]=b;b=J[29113];J[f+72>>2]=J[29112];J[f+76>>2]=b;i=N[a+60>>2];J[f+32>>2]=0;J[f+36>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+56>>2]=0;J[f+60>>2]=0;b=f- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+20>>2]=e;J[f+16>>2]=d;N[f+8>>2]=i;H[f+12|0]=i==Q(0);b=J[a+48>>2];c=J[a+52>>2];e:{if(!(b| -c))break e;J[195395]=0;xr(g+108|0,b,c);b=J[195395];J[195395]=0;if((b|0)==1)break b;f:{g:{if(K[a+44|0]){e=J[a+48>>2]/-2|0;c=0;if(J[a+32>>2]<0)break g;break f}c=0;e=0;e=J[a+28>>2]<0?0-J[a+48>>2]|0:e;if(J[a+32>>2]>=0)break f}c=0-J[a+52>>2]|0}g=J[h+84>>2];if(!(c|e))break e;b=J[g+112>>2];d=I[(J[g+120>>2]+(I[g+108>>1]<<1)|0)-2>>1];h=b+(d<<3)|0;if((h+8|0)==(b|0))break e;j=d+1&3;if(j){a=0;while(1){J[b>>2]=J[b>>2]+e;J[b+4>>2]=J[b+4>>2]+c;b=b+8|0;a=a+1|0;if((j|0)!=(a|0))continue;break}}if((d&536870911)>>>0< -3)break e;while(1){J[b>>2]=J[b>>2]+e;J[b+4>>2]=J[b+4>>2]+c;J[b+8>>2]=J[b+8>>2]+e;J[b+16>>2]=J[b+16>>2]+e;J[b+24>>2]=J[b+24>>2]+e;J[b+12>>2]=J[b+12>>2]+c;J[b+20>>2]=J[b+20>>2]+c;J[b+28>>2]=J[b+28>>2]+c;a=b+24|0;b=b+32|0;if((a|0)!=(h|0))continue;break}}J[195395]=0;aa(28,g+108|0,f+72|0,f+8|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;if(!J[f+24>>2])break d;b=f+24|0;d=J[f+20>>2];a=J[f+16>>2];k=N[f+28>>2];i=N[f+32>>2];if(!(k==N[f+36>>2]&i==N[f+40>>2])){e=J[a+16>>2];c=0;g=J[a+32>>2];if(g)c=J[g+4>>2]; -J[195395]=0;ta(e|0,a|0,d|0,b|0,Q(k),Q(i),c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c}e=J[a+28>>2];c=0;g=J[a+32>>2];if(g)c=J[g+16>>2];J[195395]=0;ia(e|0,a|0,d|0,b|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break c}td();xb=f+96|0;return}b=Z()|0;break a}ga(0)|0;_b();B()}b=Z()|0;wI(f+8|0)}td();ba(b|0);B()}function EE(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;n=xb-1024|0;xb=n;q=K[a+8|0];if(q){k=K[a+9|0];f=Nb(n,0,1024);h=J[a+4>>2];a:{if(!h)break a; -e=J[a>>2];if(h>>>0>=4){l=h&-4;while(1){g=e+k|0;j=f+(K[g|0]<<2)|0;J[j>>2]=J[j>>2]+1;j=f+(K[g+8|0]<<2)|0;J[j>>2]=J[j>>2]+1;j=f+(K[g+16|0]<<2)|0;J[j>>2]=J[j>>2]+1;g=f+(K[g+24|0]<<2)|0;J[g>>2]=J[g>>2]+1;e=e+32|0;i=i+4|0;if((l|0)!=(i|0))continue;break}}i=h&3;if(!i)break a;g=0;while(1){l=f+(K[e+k|0]<<2)|0;J[l>>2]=J[l>>2]+1;e=e+8|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}i=h>>>1|0;e=0;while(1){g=d;d=d+1|0;e=J[f+(g<<2)>>2]+e|0;if(i>>>0>e>>>0)continue;break}f=J[a>>2];d=f+(h<<3)|0;b:{if(!h){e=f;f=d;break b}e= -g-((e|0)==(h|0))|0;while(1){c:{if(e>>>0>=K[f+k|0]){f=f+8|0;break c}g=J[f>>2];i=J[f+4>>2];d=d-8|0;h=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=h;J[d>>2]=g;J[d+4>>2]=i}if((d|0)!=(f|0))continue;break}e=J[a>>2]}J[b>>2]=e;d=f;f=J[a>>2];d=d-f|0;e=d>>>3|0;J[b+4>>2]=e;f=f+(d&-8)|0;J[c>>2]=f;o=J[a+4>>2]-e|0;J[c+4>>2]=o;e=0;d=0;r=J[b+4>>2];if(r>>>0>=2){e=J[b>>2];g=K[e|0];h=g;i=K[e+1|0];k=i;p=1;l=K[e+3|0];j=l;a=K[e+2|0];m=a;while(1){d=K[e+3|0];l=(d|0)<(l|0)?l:d;j=(d|0)>(j|0)?j:d;d=K[e+2|0];a=(a|0)>(d|0)?a:d;m=(d|0)> -(m|0)?m:d;d=K[e+1|0];k=(d|0)<(k|0)?k:d;i=(d|0)>(i|0)?i:d;d=K[e|0];h=(d|0)<(h|0)?h:d;g=(d|0)>(g|0)?g:d;e=e+8|0;p=p+1|0;if((r|0)!=(p|0))continue;break}d=h-g|0;g=k-i|0;i=(d|0)>(g|0)?d:g;a=a-m|0;h=(a|0)<(i|0)?i:a;k=l-j|0;e=(h|0)>(k|0)?h:k;d=(h|0)<(k|0)?3:(a|0)>(i|0)?2:(d|0)<(g|0)}H[b+8|0]=e;H[b+9|0]=d;e=0;if(o>>>0>=2){d=K[f|0];g=d;h=K[f+1|0];i=h;m=1;k=K[f+3|0];l=k;j=K[f+2|0];a=j;while(1){b=K[f+3|0];k=(b|0)<(k|0)?k:b;l=(b|0)>(l|0)?l:b;b=K[f+2|0];j=(b|0)<(j|0)?j:b;a=(a|0)<(b|0)?a:b;b=K[f+1|0];i=(b|0)<(i| -0)?i:b;h=(b|0)>(h|0)?h:b;b=K[f|0];g=(b|0)<(g|0)?g:b;d=(b|0)>(d|0)?d:b;f=f+8|0;m=m+1|0;if((o|0)!=(m|0))continue;break}b=g-d|0;f=i-h|0;d=(b|0)>(f|0)?b:f;a=j-a|0;e=(a|0)<(d|0)?d:a;g=k-l|0;s=(e|0)>(g|0)?e:g;e=(e|0)<(g|0)?3:(a|0)>(d|0)?2:(b|0)<(f|0)}H[c+8|0]=s;H[c+9|0]=e}xb=n+1024|0;return(q|0)!=0|0}function wt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a+192|0;while(1){a:{g=J[i>>2];if(g)break a;if(!J[a+48>>2]){g=169776;break a}f=xb-48|0;xb=f;g=J[i-144>>2];J[f+8>>2]=0;J[f+12>>2]= -0;J[f+16>>2]=0;J[f+20>>2]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;J[195395]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+40>>2]=0;I[f+44>>1]=1;g=ca(585,g|0,1129333068)|0;h=J[195395];J[195395]=0;b:{c:{if((h|0)==1)break c;J[195395]=0;g=ca(698,f|0,g|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break c;h=J[f+36>>2];if(!h)break b;J[195395]=0;ea(583,h|0);h=J[195395];J[195395]=0;if((h|0)!=1)break b;ga(0)|0;_b();B()}a=Z()|0;ed(f);ba(a|0);B()}xb= -f+48|0;f=J[i>>2];g=g?g:169776;J[i>>2]=f?f:g;if(!f)break a;wc(g);continue}break}f=M[g+16>>2]<12?169776:J[g+12>>2];a=K[f+4|0]|K[f+5|0]<<8;d:{if(((a<<8|a>>>8)&65535)>>>0<=b>>>0){a=0;if(!d)break d;J[d>>2]=0;return 0}g=K[f+2|0]|K[f+3|0]<<8;e:{if(!d)break e;i=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);j=d;a=K[f+6|0]|K[f+7|0]<<8;a=(a<<8|a>>>8)&65535;b=f+(b<<1)|0;b=K[b+12|0]|K[b+13|0]<<8;b=(b<<8|b>>>8)&65535;h=a-b|0;a=a>>>0>=h>>>0?h:0;h=(g<<8|(g&65280)>>>8)&65535;a=a>>>0>>0?a:h;h=a-c|0;a=a>>>0>= -h>>>0?h:0;d=J[d>>2];a=a>>>0>>0?a:d;J[j>>2]=a;if(!a)break e;d=((f+(i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24))|0)+(b<<2)|0)+(c<<2)|0;f:{if(!(a&1)){g=a;c=a;break f}b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[e>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);c=a-1|0;g=a>>>0>=c>>>0?c:0;d=d+4|0;e=e+4|0}if((a|0)!=1){i=J[42444];while(1){a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);b=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(g)a=e;else{J[194120]=i;a=776480}J[a>>2]=b;a=K[d+4|0]|K[d+5|0]<<8|(K[d+6| -0]<<16|K[d+7|0]<<24);h=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=(((g|0)!=0)<<2)+e|0;e=g>>>0>1;if(e)b=a;else{J[194120]=i;b=776480}J[b>>2]=h;b=g-2|0;g=b>>>0<=g>>>0?b:0;d=d+8|0;e=a+(e<<2)|0;c=c-2|0;if(c)continue;break}}g=K[f+2|0]|K[f+3|0]<<8}a=(g<<8|(g&65280)>>>8)&65535}return a|0}function dD(a){var b=0,c=0,d=0,e=Q(0),f=0,g=0,h=0,i=0,j=0,k=Q(0),l=Q(0),m=Q(0),n=0,o=Q(0),p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=0,u=0,v=0,w=0,x=0,y=0,z=Q(0),A=0,B=0,C=0,D=0;i=xb-32|0;xb=i;a:{b:{if(J[a+68>>2])break b;d=Qb(6168);J[a+ -68>>2]=d;if(d)break b;Ob(J[J[a>>2]+628>>2],775824,275627,0);a=0;break a}d=J[a>>2];J[i+16>>2]=i+28;Ue(d,529,i+16|0);d=J[a>>2];J[i>>2]=i+24;Ue(d,532,i);f=J[i+28>>2];d=J[i+24>>2];b=J[a+68>>2];Pd(b+24|0,0,256);g=b+280|0;J[b>>2]=g;while(1){H[c+g|0]=c;a=c|1;H[a+g|0]=a;a=c|2;H[a+g|0]=a;a=c|3;H[a+g|0]=a;a=c|4;H[a+g|0]=a;a=c|5;H[a+g|0]=a;a=c|6;H[a+g|0]=a;a=c|7;H[a+g|0]=a;c=c+8|0;if((c|0)!=256)continue;break}Pd(b+536|0,255,512);u=b+5144|0;J[b+20>>2]=u;v=b+4120|0;J[b+16>>2]=v;w=b+3096|0;J[b+12>>2]=w;x=b+2072| -0;J[b+8>>2]=x;y=b+1048|0;J[b+4>>2]=y;k=N[d+12>>2];p=Q(N[d+16>>2]+Q(-128));l=N[d+20>>2];q=N[d>>2];z=N[d+4>>2];r=Q(N[d+8>>2]+Q(-128));c:{if(Q(R(r))>2];e=Q(Q(2)-Q(m+m));h=+Q(e*Q(65536))+.5;d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}s=N[f>>2];o=Q(Q(2)-Q(s+s));h=+Q(o*Q(65536))+.5;e:{if(R(h)<2147483648){a=~~h;break e}a=-2147483648}k=Q(k+Q(-128));l=Q(l+Q(-128));m=Q(m*e);e=N[f+4>>2];h=+Q(Q(m/ -e)*Q(65536))+.5;f:{if(R(h)<2147483648){b=~~h;break f}b=-2147483648}C=b;m=Q(k-r);k=Q(l-p);l=Q(z-q);h=+Q(Q(Q(s*o)/e)*Q(65536))+.5;g:{if(R(h)<2147483648){b=~~h;break g}b=-2147483648}j=m!=Q(0);c=k!=Q(0);f=l!=Q(0);if(Q(R(q))>2]=P(a,f)+32768>>16;D=n+x|0;e=Q(Q(Q(c-A|0)*Q(127))/o);i:{if(Q(R(e))>2]=P(d,j)+32768>>16;J[n+w>>2]=0-P(b,f);J[n+v>>2]=32768-P(j,C);j=n+u|0;e=Q(Q(Q((c-g|0)+128|0)*Q(255))/l);j:{if(Q(R(e))>2]=f;c=c+1|0;t=t+1|0;if((t|0)!=256)continue;break}a=1}xb=i+32|0;return a}function ioa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=c;d=J[c+12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0>67108863)e=1073741823;else{e= -f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;b:{if(!d)break b;c:{d:{e:{f:{g:{if(f>>>0<6)break g;h:{i:{c=K[d|0]|K[d+1|0]<<8;switch((c<<8|c>>>8)&65535){case 1:break h;case 0:break i;default:break g}}if((K[d+2|0]|K[d+3|0]<<8)!=80)break g;break f}c=d+6|0;if(M[a+12>>2]>2]>>>0)break g;if(J[a+8>>2]-c>>>0>25)break f}j:{if(K[a+28|0]|!J[a+32>>2])break j;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break j;while(1){H[a+28|0]=1;c=J[a+36>>2];d=J[c+ -12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0<=67108863){e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}else e=1073741823;J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;if(!d)break b;k:{if(f>>>0<6)break k;l:{m:{c=K[d|0]|K[d+1|0]<<8;switch((c<<8|c>>>8)&65535){case 0:break l;case 1:break m;default:break k}}c=d+6|0;if(M[a+12>>2]>2]>>>0)break k;if(J[a+8>>2]-c>>>0>25)break f;break k}if((K[d+2|0]|K[d+3|0]<<8)==80)break f}if(K[a+28|0]|!J[a+32>>2])break j; -c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;c=0;n:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-d>>>0<6)break n;o:{p:{f=K[d|0]|K[d+1|0]<<8;switch((f<<8|f>>>8)&65535){case 0:break o;case 1:break p;default:break n}}c=d+6|0;c=M[a+12>>2]>=c-J[a+4>>2]>>>0&J[a+8>>2]-c>>>0>25;break n}c=(K[d+2|0]|K[d+3|0]<<8)==80}d=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+ -8>>2]=0;if(d)break e;if(c)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function KK(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;e=xb-1552|0;xb=e;f=6;g=J[a+4>>2];a:{if(M[g+16>>2]<=c>>>0)break a;h=J[g+136>>2];J[a+164>>2]=J[b+16>>2];J[a+168>>2]=J[b+20>>2];d=d&1024?d|3:d;j=d&1;H[a+161|0]=!j;f=!(d&3);H[a+160|0]=f;J[a+ -108>>2]=0;J[a+72>>2]=1869968492;i=e+36|0;f=Ab[J[J[h+12>>2]>>2]](i,g,b,a,0,0,f,d>>>16&15,112)|0;if(f)break a;k=d&1024;H[e+105|0]=k>>>10;f=Yu(i,c);if(!f){l=K[a+161|0];m=K[a+160|0];c=e+1424|0;f=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=f;c=J[e+1420>>2];J[e+16>>2]=J[e+1416>>2];J[e+20>>2]=c;c=J[e+1436>>2];f=J[e+1432>>2];Ab[J[J[h+12>>2]+4>>2]](i);J[a+124>>2]=J[a+124>>2]&1|4;if(k){b=J[a+156>>2];d=J[e+68>>2];J[a+32>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=a;a=J[e+76>>2];J[d+40>>2]=(((a>>31)+a|0)+32768&-65536)>> -16;a=J[e+28>>2];J[b+20>>2]=J[e+24>>2];J[b+24>>2]=a;a=J[e+20>>2];J[b+12>>2]=J[e+16>>2];J[b+16>>2]=a;J[b+32>>2]=c;J[b+28>>2]=f;H[b+8|0]=1;f=0;break a}h=J[e+76>>2];J[a+40>>2]=(((h>>31)+h|0)+32768&-65536)>>16;h=J[e+76>>2];J[a+56>>2]=(((h>>31)+h|0)+32768&-65536)>>16;H[J[a+156>>2]+8|0]=0;h=J[g+200>>2];g=J[g+208>>2];J[a+72>>2]=1869968492;g=g-h>>16;J[a+60>>2]=g;J[a+52>>2]=g;if(L[b+14>>1]<=23)J[a+124>>2]=J[a+124>>2]|256;g=a+108|0;b:{if(!(J[e+20>>2]|(J[e+16>>2]!=65536|J[e+28>>2]!=65536)))if(!J[e+24>>2])break b; -nh(g,e+16|0);n=a,o=Rb(J[a+40>>2],J[e+16>>2]),J[n+40>>2]=o;n=a,o=Rb(J[a+52>>2],J[e+28>>2]),J[n+52>>2]=o}if(c|f){me(g,f,c);J[a+40>>2]=f+J[a+40>>2];J[a+52>>2]=c+J[a+52>>2]}if(!(!l&j)){c=J[a+168>>2];h=J[a+164>>2];c:{if(J[e+108>>2]?m:0)break c;f=J[e+52>>2];b=I[f+2>>1];if((b|0)<=0)break c;b=b&65535;f=J[f+4>>2];while(1){n=f,o=Rb(J[f>>2],h),J[n>>2]=o;n=f,o=Rb(J[f+4>>2],c),J[n+4>>2]=o;f=f+8|0;i=b>>>0>1;b=b-1|0;if(i)continue;break}}n=a,o=Rb(J[a+40>>2],h),J[n+40>>2]=o;n=a,o=Rb(J[a+52>>2],c),J[n+52>>2]=o}fi(g, -e);b=J[e>>2];J[a+24>>2]=J[e+8>>2]-b;c=J[e+4>>2];f=J[e+12>>2];J[a+36>>2]=f;J[a+32>>2]=b;J[a+28>>2]=f-c;if(d&16)lk(a+24|0,J[a+52>>2]);f=0;break a}Ab[J[J[h+12>>2]+4>>2]](e+36|0)}xb=e+1552|0;return f|0}function tu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{d:{e:{f:{e=K[a|0]|K[a+1|0]<<8;switch((e<<8|e>>>8)&65535){case 4:break b;case 6:break c;case 8:break d;case 2:break e;case 0:break f;default:break a}}return b>>>0>>0?((b<<2)+a|0)+2|0:0}c=K[a+4|0]|K[a+5|0]<<8;d=(c<<8|c>>>8)&65535;f=a+12|0;a=K[a+2| -0]|K[a+3|0]<<8;g:{if(!c){e=(a<<8|(a&65280)>>>8)&65535;c=0;break g}e=(a<<8|(a&65280)>>>8)&65535;a=f+P(e,d-1|0)|0;c=0;if((K[a|0]|K[a+1|0]<<8)!=65535)break g;c=(K[a+2|0]|K[a+3|0]<<8)==65535?-1:0}a=0;c=c+d|0;h:{if((c|0)<=0)break h;c=c-1|0;d=0;while(1){g=c+d>>>1|0;a=f+P(g,e)|0;h=K[a+2|0]|K[a+3|0]<<8;i:{if(((h<<8|h>>>8)&65535)>>>0<=b>>>0){d=K[a|0]|K[a+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>=b>>>0)break h;d=g+1|0;break i}c=g-1|0}if((c|0)>=(d|0))continue;break}a=0}return a?a+4|0:0}c=K[a+2|0]|K[a+3|0]<<8;c=(c<< -8|c>>>8)&65535;if(c>>>0>b>>>0)break a;b=b-c|0;e=K[a+4|0]|K[a+5|0]<<8;if(b>>>0>=((e<<8|e>>>8)&65535)>>>0)break a;d=((b<<2)+a|0)+6|0;break a}c=K[a+4|0]|K[a+5|0]<<8;d=(c<<8|c>>>8)&65535;f=a+12|0;a=K[a+2|0]|K[a+3|0]<<8;j:{if(!c){e=(a<<8|(a&65280)>>>8)&65535;c=0;break j}e=(a<<8|(a&65280)>>>8)&65535;a=f+P(e,d-1|0)|0;c=(K[a|0]|K[a+1|0]<<8)==65535?-1:0}a=0;c=c+d|0;k:{if((c|0)<=0)break k;c=c-1|0;d=0;while(1){g=c+d>>>1|0;a=f+P(g,e)|0;h=K[a|0]|K[a+1|0]<<8;h=(h<<8|h>>>8)&65535;l:{if(h>>>0>b>>>0){c=g-1|0;break l}if((b| -0)==(h|0))break k;d=g+1|0}if((c|0)>=(d|0))continue;break}a=0}return a?a+2|0:0}e=K[a+4|0]|K[a+5|0]<<8;g=(e<<8|e>>>8)&65535;h=a+12|0;c=K[a+2|0]|K[a+3|0]<<8;m:{if(!e){e=(c<<8|(c&65280)>>>8)&65535;f=0;break m}e=(c<<8|(c&65280)>>>8)&65535;c=h+P(e,g-1|0)|0;f=0;if((K[c|0]|K[c+1|0]<<8)!=65535)break m;f=(K[c+2|0]|K[c+3|0]<<8)==65535?-1:0}c=f+g|0;if((c|0)<=0)break a;c=c-1|0;while(1){g=c+d>>>1|0;f=h+P(g,e)|0;i=K[f+2|0]|K[f+3|0]<<8;i=(i<<8|i>>>8)&65535;n:{if(i>>>0<=b>>>0){d=K[f|0]|K[f+1|0]<<8;if(((d<<8|d>>>8)& -65535)>>>0>>0){d=g+1|0;break n}c=a;a=K[f+4|0]|K[f+5|0]<<8;return(c+((a<<8|a>>>8)&65535)|0)+(b-i<<2)|0}c=g-1|0}if((c|0)>=(d|0))continue;break}return 0}return d}function bf(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{d:{e:{f:{e=K[a|0]|K[a+1|0]<<8;switch((e<<8|e>>>8)&65535){case 4:break b;case 6:break c;case 8:break d;case 2:break e;case 0:break f;default:break a}}return b>>>0>>0?((b<<1)+a|0)+2|0:0}c=K[a+4|0]|K[a+5|0]<<8;d=(c<<8|c>>>8)&65535;f=a+12|0;a=K[a+2|0]|K[a+3|0]<<8;g:{if(!c){e=(a<<8|(a& -65280)>>>8)&65535;c=0;break g}e=(a<<8|(a&65280)>>>8)&65535;a=f+P(e,d-1|0)|0;c=0;if((K[a|0]|K[a+1|0]<<8)!=65535)break g;c=(K[a+2|0]|K[a+3|0]<<8)==65535?-1:0}a=0;c=c+d|0;h:{if((c|0)<=0)break h;c=c-1|0;d=0;while(1){g=c+d>>>1|0;a=f+P(g,e)|0;h=K[a+2|0]|K[a+3|0]<<8;i:{if(((h<<8|h>>>8)&65535)>>>0<=b>>>0){d=K[a|0]|K[a+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>=b>>>0)break h;d=g+1|0;break i}c=g-1|0}if((c|0)>=(d|0))continue;break}a=0}return a?a+4|0:0}c=K[a+2|0]|K[a+3|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0>b>>>0)break a; -b=b-c|0;e=K[a+4|0]|K[a+5|0]<<8;if(b>>>0>=((e<<8|e>>>8)&65535)>>>0)break a;d=((b<<1)+a|0)+6|0;break a}c=K[a+4|0]|K[a+5|0]<<8;d=(c<<8|c>>>8)&65535;f=a+12|0;a=K[a+2|0]|K[a+3|0]<<8;j:{if(!c){e=(a<<8|(a&65280)>>>8)&65535;c=0;break j}e=(a<<8|(a&65280)>>>8)&65535;a=f+P(e,d-1|0)|0;c=(K[a|0]|K[a+1|0]<<8)==65535?-1:0}a=0;c=c+d|0;k:{if((c|0)<=0)break k;c=c-1|0;d=0;while(1){g=c+d>>>1|0;a=f+P(g,e)|0;h=K[a|0]|K[a+1|0]<<8;h=(h<<8|h>>>8)&65535;l:{if(h>>>0>b>>>0){c=g-1|0;break l}if((b|0)==(h|0))break k;d=g+1|0}if((c| -0)>=(d|0))continue;break}a=0}return a?a+2|0:0}e=K[a+4|0]|K[a+5|0]<<8;g=(e<<8|e>>>8)&65535;h=a+12|0;c=K[a+2|0]|K[a+3|0]<<8;m:{if(!e){e=(c<<8|(c&65280)>>>8)&65535;f=0;break m}e=(c<<8|(c&65280)>>>8)&65535;c=h+P(e,g-1|0)|0;f=0;if((K[c|0]|K[c+1|0]<<8)!=65535)break m;f=(K[c+2|0]|K[c+3|0]<<8)==65535?-1:0}c=f+g|0;if((c|0)<=0)break a;c=c-1|0;while(1){g=c+d>>>1|0;f=h+P(g,e)|0;i=K[f+2|0]|K[f+3|0]<<8;i=(i<<8|i>>>8)&65535;n:{if(i>>>0<=b>>>0){d=K[f|0]|K[f+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>>0){d=g+1|0;break n}c= -a;a=K[f+4|0]|K[f+5|0]<<8;return(c+((a<<8|a>>>8)&65535)|0)+(b-i<<1)|0}c=g-1|0}if((c|0)>=(d|0))continue;break}return 0}return d}function $8(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i=xb-176|0;xb=i;a:{if(!(!h|(!f|!g))){if(K[a+64|0]){Ab[J[J[a>>2]+52>>2]](a,0);Ab[J[J[a>>2]+56>>2]](a)}l=O[a+48>>3];k=O[a+56>>3];j=i+128|0;J[j+8>>2]=0;J[j+12>>2]=0;J[j>>2]=0;J[j+4>>2]=1072693248;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=1072693248;J[j+16>> -2]=0;J[j+20>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;m=J[a+8>>2];Rd(j,Ab[J[J[m>>2]+72>>2]](m,2)|0);m=J[a+4>>2];Ab[J[J[m>>2]+404>>2]](m)|0;m=J[a+4>>2];O[i+120>>3]=k*O[j+8>>3]/l;O[i+112>>3]=l*O[j+16>>3]/k;O[i+104>>3]=l*O[j+32>>3];O[i+96>>3]=k*O[j+40>>3];Ab[J[J[m>>2]+396>>2]](m,j,i+120|0,i+112|0,j+24|0,i+104|0,i+96|0)|0;b:{if(K[a+65|0])break b;j=J[a+8>>2];j=Ab[J[J[j>>2]+20>>2]](j)|0;if(!j)break b;ul(j,a);H[a+65|0]=1}j=i+128|0;J[j+12>>2]=0;J[j+16>>2]=0;J[j>>2]=234064;J[j+4>>2]=1;J[j+8>>2]=8;J[j+20>>2]=0;J[j+24>> -2]=0;H[j+28|0]=0;J[i+120>>2]=g;J[i+112>>2]=h;J[195395]=0;J[i+104>>2]=g<<2;vF(j,f,i+120|0,i+112|0,i+104|0,1);f=J[195395];J[195395]=0;c:{if((f|0)!=1){o=O[a+24>>3];p=O[a+56>>3];n=O[a+48>>3];q=O[a+16>>3];l=n*b+q;O[i+120>>3]=l;k=o+p*c;O[i+112>>3]=k;n=q+n*(b+d)-l;O[i+104>>3]=n;b=o+p*(c+e)-k;O[i+96>>3]=b;f=n<0;if(!(f|b<0))break c;g=J[a+4>>2];h=J[J[g>>2]+400>>2];J[195395]=0;ya(h|0,g|0,i+88|0,i+80|0,i+72|0,i- -64|0,i+56|0,i+48|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break a;o=0;c=1;e=1;d=0;if(f){O[i+120>> -3]=n+l;O[i+104>>3]=-n;e=-1;d=l+l+n}if(b<0){O[i+112>>3]=b+k;O[i+96>>3]=-b;o=k+k+b;c=-1}f=J[a+4>>2];b=O[i+88>>3];O[i+40>>3]=e*b;k=e;e=O[i+80>>3];O[i+32>>3]=k*e;l=O[i+72>>3];O[i+24>>3]=c*l;k=c;c=O[i+64>>3];O[i+16>>3]=k*c;O[i+8>>3]=d*b+o*l+O[i+56>>3];O[i>>3]=d*e+o*c+O[i+48>>3];g=J[J[f>>2]+396>>2];J[195395]=0;ya(g|0,f|0,i+40|0,i+32|0,i+24|0,i+16|0,i+8|0,i|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break c;break a}break a}a=J[a+4>>2];f=J[J[a>>2]+376>>2];J[195395]=0;pa(f|0,a|0,j|0,i+120|0,i+112|0,i+104|0, -i+96|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;zs(j)}xb=i+176|0;return}a=Z()|0;zs(j);ba(a|0);B()}function Xv(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;J[a+168>>2]=f;m=a+168|0;J[a+48>>2]=m;f=J[a+64>>2];J[a+192>>2]=J[a+60>>2];J[a+196>>2]=f;J[a+188>>2]=c;J[a+184>>2]=b;J[a+180>>2]=e;J[a+176>>2]=d;J[a+172>>2]=g;f=m;while(1){n=J[f>>2];a:{b:{c:{d:{i=J[f+20>>2];k=J[f+12>>2];e=J[f+28>>2];g=J[f+4>>2];if((((i|0)<(k|0)?i:k)|0)>=(((e|0)<(g|0)?e:g)|0)){j=(e|0)>(g|0);if((((i|0)>(k|0)?i:k)|0)<= -((j?e:g)|0))break d}b=J[f+24>>2];J[f+48>>2]=b;J[f+52>>2]=e;c=e+i|0;J[f+44>>2]=c>>1;d=g+k|0;J[f+12>>2]=d>>1;e=J[f+8>>2];j=e+n|0;J[f+8>>2]=j>>1;l=b;b=J[f+16>>2];h=l+b|0;J[f+40>>2]=h>>1;l=c;c=i+k|0;i=l+c|0;J[f+36>>2]=i>>2;c=c+d|0;J[f+20>>2]=c>>2;b=b+e|0;d=b+j|0;J[f+16>>2]=d>>2;b=b+h|0;J[f+32>>2]=b>>2;J[f+28>>2]=c+i>>3;J[f+24>>2]=b+d>>3;b=f+24|0;break c}if((e|0)!=(g|0))break b;b=f-24|0}J[a+48>>2]=b;break a}o=j?2:1;h=J[a+92>>2];if((o|0)!=(h|0)){b=J[a+4>>2];d=j?e&b-1:((b+e|0)-1&0-b)-e|0;c=J[a+36>>2];l= -J[a+8>>2];e:{if(!h){b=c;break e}h=J[a+80>>2];b=J[h+8>>2];p=c-b>>2;if((p|0)<0){J[a+40>>2]=99;return 1}f:{if((b|0)==(c|0)){b=c;break f}J[h+16>>2]=p;if((d|0)>=(l|0)){b=L[h+12>>1];I[h+12>>1]=(b&8?16:32)|b}J[a+80>>2]=c;b=c+32|0;J[a+36>>2]=b;J[c+8>>2]=b;J[c+16>>2]=0;J[h+28>>2]=c;I[a+76>>1]=L[a+76>>1]+1}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}H[a+79|0]=0}if(!J[a+84>>2]){J[a+84>>2]=b;J[a+80>>2]=b;b=b+32|0;J[a+36>>2]=b}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}c=J[a+80>>2];J[c+16>>2]=0;J[c+20>>2]= -0;J[c+8>>2]=b;J[c+28>>2]=0;J[c+4>>2]=0;b=K[a+164|0];I[c+12>>1]=b;g:{h:{if(!j){I[c+12>>1]=b|8;h=40;if((d|0)>=(l|0))break h;break g}h=16;if((d|0)<(l|0))break g}I[c+12>>1]=b|h}if(!J[a+88>>2])J[a+88>>2]=c;I[a+78>>1]=1;J[a+92>>2]=o}b=J[a+72>>2];c=J[a+68>>2];i:{if(!j){if(!vm(a,3,62,c,b))break a;break i}J[f+28>>2]=0-e;J[f+20>>2]=0-i;J[f+12>>2]=0-k;J[f+4>>2]=0-g;d=K[a+78|0];b=vm(a,3,62,0-b|0,0-c|0);if(!(K[a+78|0]|!d)){c=J[a+80>>2];J[c+20>>2]=0-J[c+20>>2]}J[f+4>>2]=0-J[f+4>>2];if(!b)break a}return 1}f=J[a+ -48>>2];if(m>>>0<=f>>>0)continue;break}J[a+64>>2]=g;J[a+60>>2]=n;return 0}function Lda(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!a|!b)break a;b:{c=K[a+407|0];if(c>>>0>7)break b;J[a+744>>2]=17;d=b+32|0;e=8-c|0;Gd(a,d+c|0,e);H[a+407|0]=8;c:{if(ZD(d,c,e)){if(c>>>0<=3)if(ZD(d,c,4-c|0))break c;gc(a,252131);B()}if(c>>>0>2)break b;J[a+200>>2]=J[a+200>>2]|4096;break b}gc(a,251926);B()}d:{e:{while(1){f:{d=Tn(a);g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{c=J[a+348>>2];if((c|0)!=1229278788){if((c|0)!=1229472850){if((c| -0)!=1229209940)break r;c=J[a+200>>2];if(c&8)J[a+200>>2]=c|8192;e=Fl(a,1229209940);c=J[a+200>>2];if(!e)break q;J[a+200>>2]=c|4;Dl(a,b,d);b=J[a+200>>2];if(!(b&1))break f;if(b&2|K[a+401|0]!=3)break a;gc(a,253057);B()}OD(a,b,d);continue}MD(a,d);continue}if(Fl(a,c)){Dl(a,b,d);if((c|0)!=1347179589)continue;J[a+200>>2]=J[a+200>>2]|2;continue}s:{if((c|0)<=1883789682){if((c|0)<=1749635923){if((c|0)<=1665684044){if((c|0)==1347179589)break s;if((c|0)!=1649100612)break g;ED(a,b,d);continue}if((c|0)==1665684045)break p; -if((c|0)!=1732332865)break g;LD(a,b,d);continue}if((c|0)<=1767135347){if((c|0)==1749635924)break o;if((c|0)!=1766015824)break g;HD(a,b,d);continue}if((c|0)==1767135348)break h;if((c|0)==1866876531)break n;if((c|0)!=1883455820)break g;AD(a,b,d);continue}if((c|0)<=1934772033){if((c|0)<=1933787467){if((c|0)==1883789683)break l;if((c|0)!=1933723988)break g;KD(a,b,d);continue}if((c|0)==1933787468)break m;if((c|0)!=1934642260)break g;GD(a,b,d);continue}if((c|0)<=1950960964){if((c|0)==1934772034)break k; -if((c|0)!=1950701684)break g;wD(a,b,d);continue}if((c|0)==1950960965)break j;if((c|0)==1951551059)break i;if((c|0)!=2052348020)break g;vD(a,b,d);continue}ND(a,b,d);continue}if(!(c&1))break e;if(!(c&2)&K[a+401|0]==3)break d;J[a+380>>2]=d;J[a+200>>2]=c|4;break a}JD(a,b,d);continue}DD(a,b,d);continue}BD(a,b,d);continue}zD(a,b,d);continue}CD(a,b,d);continue}ID(a,b,d);continue}yD(a,b,d);continue}FD(a,b,d);continue}uD(a,b,d);continue}Dl(a,b,d);continue}break}gc(a,252891);B()}gc(a,252891);B()}gc(a,253057); -B()}}function $A(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=xb-16|0;xb=g;J[g+12>>2]=0;a:{if(Ab[J[J[a>>2]+136>>2]](a,J[b+4>>2],J[b+8>>2],J[b+12>>2],J[b+16>>2],32,g+12|0,g+8|0,g+4|0)|0){b=Pb(44);J[195395]=0;i=dh(b);d=J[195395];J[195395]=0;if((d|0)==1)break a;f=J[g+12>>2];e=J[g+8>>2];b=xb-80|0;xb=b;h=J[g+4>>2];J[i+40>>2]=h;J[i+36>>2]=e;J[i+32>>2]=f;b:{c:{d:{e:{f:{if(!e|!h)break f;J[195395]=0;J[b+16>>2]=0;H[b+27|0]=0;$(2125,b+68|0,b+16|0);d=J[195395];J[195395]=0;g:{h:{i:{j:{k:{if((d|0)!=1){if(H[b+27|0]< -0)Kb(J[b+16>>2]);d=H[b+79|0];if(!((d|0)<0?J[b+72>>2]:d&255))break g;J[195395]=0;d=b+16|0;J[d>>2]=0;J[d+4>>2]=0;H[d+40|0]=0;J[d+32>>2]=0;J[d+36>>2]=-1074790400;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;H[d+24|0]=0;H[d+25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+28|0]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;j=J[195395];J[195395]=0;if((j|0)==1)break k;J[195395]=0;J[d+16>>2]=f;f=J[195395];J[195395]=0;if((f|0)==1)break e;J[195395]=0;J[b+12>>2]=e;e=b+12|0;J[d+4>>2]=J[e>>2];f=J[195395];J[195395]=0;if((f| -0)==1)break e;J[195395]=0;J[b+12>>2]=h;J[d+8>>2]=J[e>>2];e=J[195395];J[195395]=0;if((e|0)==1)break e;J[195395]=0;e=b+68|0;f=aa(1801,d|0,e|0,4)|0;h=J[195395];J[195395]=0;if((h|0)==1)break e;if(!f)break h;J[i+8>>2]=5;j=e;e=i+20|0;if((j|0)==(e|0))break h;h=K[b+79|0];f=h<<24>>24;if(H[i+31|0]<0)break j;if((f|0)<0)break i;f=J[b+72>>2];J[e>>2]=J[b+68>>2];J[e+4>>2]=f;J[e+8>>2]=J[b+76>>2];break h}a=Z()|0;if(H[b+27|0]>=0)break c;Kb(J[b+16>>2]);ba(a|0);B()}a=Z()|0;break d}J[195395]=0;j=e;e=(f|0)<0;aa(2100,j| -0,(e?J[b+68>>2]:b+68|0)|0,(e?J[b+72>>2]:h)|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break h;break e}J[195395]=0;aa(2101,e|0,J[b+68>>2],J[b+72>>2])|0;e=J[195395];J[195395]=0;if((e|0)==1)break e}J[195395]=0;J[d+16>>2]=0;e=J[195395];J[195395]=0;if((e|0)==1)break e;kd(d);d=K[b+79|0]}if(d<<24>>24>=0)break f;Kb(J[b+68>>2])}xb=b+80|0;break b}a=Z()|0;kd(d)}if(H[b+79|0]>=0)break c;Kb(J[b+68>>2])}ba(a|0);B()}ef(a+124|0,c,i)}xb=g+16|0;return}a=Z()|0;Kb(b);ba(a|0);B()}function RS(a,b,c,d,e,f,g,h,i,j,k,l,m,n, -o){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;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;t=xb-16|0;xb=t;J[c>>2]=a;w=d&512;x=h<<2;while(1){if((u|0)==4){if(K[n+11|0]>>>7|0)e=J[n+4>>2];else e=K[n+11|0]&127;if(e>>>0>1){z=t,A=Xe(n),J[z+12>>2]=A;z=c,A=Ax(Fm(t+12|0,1),Eh(n),J[c>>2]),J[z>>2]=A}d=d&176;if((d|0)!=16){if((d|0)==32)a=J[c>>2];J[b>>2]=a}xb=t+16|0}else{a:{b:switch(H[i+u|0]){case 0:J[b>>2]=J[c>>2];break a;case 1:J[b>>2]=J[c>>2];h=Ab[J[J[g>> -2]+44>>2]](g,32)|0;p=J[c>>2];J[c>>2]=p+4;J[p>>2]=h;break a;case 3:if(K[n+11|0]>>>7|0)h=J[n+4>>2];else h=K[n+11|0]&127;if(!h)break a;if(K[n+11|0]>>>7|0)h=J[n>>2];else h=n;h=J[h>>2];p=J[c>>2];J[c>>2]=p+4;J[p>>2]=h;break a;case 2:p=!w;if(K[m+11|0]>>>7|0)h=J[m+4>>2];else h=K[m+11|0]&127;if(p|!h)break a;z=c,A=Ax(Xe(m),Eh(m),J[c>>2]),J[z>>2]=A;break a;case 4:break b;default:break a}y=J[c>>2];e=e+x|0;h=e;while(1){c:{if(f>>>0<=h>>>0)break c;if(!(Ab[J[J[g>>2]+12>>2]](g,64,J[h>>2])|0))break c;h=h+4|0;continue}break}if((o| -0)>0){p=J[c>>2];q=o;while(1){if(!(!q|e>>>0>=h>>>0)){q=q-1|0;h=h-4|0;s=J[h>>2];r=p+4|0;J[c>>2]=r;J[p>>2]=s;p=r;continue}break}d:{if(!q){r=0;break d}r=Ab[J[J[g>>2]+44>>2]](g,48)|0;p=J[c>>2]}while(1){s=p+4|0;if((q|0)>0){J[p>>2]=r;q=q-1|0;p=s;continue}break}J[c>>2]=s;J[p>>2]=j}e:{if((e|0)==(h|0)){p=Ab[J[J[g>>2]+44>>2]](g,48)|0;q=J[c>>2];h=q+4|0;J[c>>2]=h;J[q>>2]=p;break e}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;r=H[p|0];if(K[l+11|0]>>>7|0)p=J[l+4>>2];else p=K[l+11|0]&127;r=p?r:-1;p=0;s=0;while(1){if((e| -0)!=(h|0)){f:{if((p|0)!=(r|0)){q=p;break f}q=J[c>>2];J[c>>2]=q+4;J[q>>2]=k;q=0;if(K[l+11|0]>>>7|0)r=J[l+4>>2];else r=K[l+11|0]&127;s=s+1|0;if(r>>>0<=s>>>0){r=p;break f}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;if(K[p+s|0]==127){r=-1;break f}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;r=H[p+s|0]}h=h-4|0;p=J[h>>2];v=J[c>>2];J[c>>2]=v+4;J[v>>2]=p;p=q+1|0;continue}break}h=J[c>>2]}bl(y,h)}u=u+1|0;continue}break}}function LM(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;o=xb-16| -0;xb=o;a:{b:{if(!J[c+88>>2]){J[c+100>>2]=J[d+100>>2];J[c+104>>2]=J[d+104>>2];f=J[d+80>>2];J[c+80>>2]=f;e=J[d+76>>2];H[c+94|0]=7;J[c+76>>2]=e;I[c+92>>1]=256;f=f<<2;J[c+84>>2]=f;f=P(e,f);e=ao(c,f);J[o+12>>2]=e;if(e)break a;Nb(J[c+88>>2],0,f);break b}h=J[d+104>>2];i=h-J[d+76>>2]|0;j=J[c+104>>2];l=j-J[c+76>>2]|0;k=J[d+100>>2];m=k+J[d+80>>2]|0;e=J[c+100>>2];f=e+J[c+80>>2]|0;if(!((f|0)<(m|0)|(e|0)>(k|0)|(h|0)>(j|0)))if((i|0)>=(l|0))break b;h=(h|0)<(j|0)?j:h;l=h-((i|0)>(l|0)?l:i)|0;j=(e|0)<(k|0)?e:k;m=((f| -0)>(m|0)?f:m)-j|0;i=m<<2;k=tc(J[a+100>>2],P(l,i),o+12|0);e=J[o+12>>2];if(e)break a;if(J[c+76>>2]){f=(k+P(i,h-J[c+104>>2]|0)|0)+(J[c+100>>2]-j<<2)|0;e=J[c+88>>2];while(1){f=Mb(f,e,J[c+80>>2]<<2)+i|0;e=J[c+84>>2]+e|0;g=g+1|0;if(g>>>0>2])continue;break}}es(c,k);J[c+100>>2]=j;J[c+104>>2]=h;J[c+80>>2]=m;J[c+84>>2]=i;J[c+76>>2]=l;f=J[c+156>>2];J[f+4>>2]=J[f+4>>2]|1;J[c+72>>2]=1651078259}c:{if((b|0)==65535){if(K[a+676|0]){f=K[a+680|0];g=K[a+679|0];n=K[a+678|0];b=K[a+677|0];break c}e=J[a+656>>2]; -if(e){f=255;g=255;n=255;b=255;if(K[e+(L[a+668>>1]<<1)|0]&2)break c}g=0;f=255;n=0;b=0;break c}a=J[a+672>>2]+(b<<2)|0;f=K[a+3|0];g=K[a+2|0];n=K[a+1|0];b=K[a|0]}e=0;h=J[d+76>>2];if(!h|!J[d+80>>2])break a;k=g&255;l=n&255;m=f&255;a=J[c+84>>2];n=(J[c+88>>2]+P(a,J[c+104>>2]-J[d+104>>2]|0)|0)+(J[d+100>>2]-J[c+100>>2]<<2)|0;i=J[d+88>>2];j=0;f=1;while(1){g=0;e=0;if(f){while(1){e=(g<<2)+n|0;f=(P(m,K[i+g|0])>>>0)/255|0;a=255-f|0;H[e+1|0]=(((P(a,K[e+1|0])&65535)>>>0)/255|0)+(((P(f,l)&65535)>>>0)/255|0);H[e|0]= -(((P(a,K[e|0])&65535)>>>0)/255|0)+(((P(b,f)&65535)>>>0)/255|0);H[e+2|0]=(((P(a,K[e+2|0])&65535)>>>0)/255|0)+(((P(f,k)&65535)>>>0)/255|0);H[e+3|0]=f+(((P(a,K[e+3|0])&65535)>>>0)/255|0);e=J[d+80>>2];g=g+1|0;if(e>>>0>g>>>0)continue;break}h=J[d+76>>2];a=J[c+84>>2]}n=a+n|0;i=J[d+84>>2]+i|0;f=e;j=j+1|0;if(j>>>0>>0)continue;break}e=0}xb=o+16|0;return e|0}function vq(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=J[b>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!d)break l;g=J[d>>2];if(!g)break l; -if(!a){d=c;break j}J[d>>2]=0;d=c;break k}m:{if(!J[J[194998]>>2]){if(!a)break m;if(!c)break a;g=c;while(1){d=H[e|0];if(d){J[a>>2]=d&57343;a=a+4|0;e=e+1|0;g=g-1|0;if(g)continue;break a}break}J[a>>2]=0;J[b>>2]=0;return c-g|0}d=c;if(!a)break i;break g}return ac(e)|0}f=1;break g}f=0;break h}f=1}while(1){if(!f){f=K[e|0]>>>3|0;if((f-16|f+(g>>26))>>>0>7)break f;f=e+1|0;n:{if(!(g&33554432))break n;if((K[f|0]&192)!=128){e=e-1|0;break d}f=e+2|0;if(!(g&524288))break n;if((K[f|0]&192)!=128){e=e-1|0;break d}f= -e+3|0}e=f;d=d-1|0;f=1;continue}while(1){g=K[e|0];o:{if(e&3|g-1>>>0>126)break o;g=J[e>>2];if((g|g-16843009)&-2139062144)break o;while(1){d=d-4|0;g=J[e+4>>2];e=e+4|0;if(!((g-16843009|g)&-2139062144))continue;break}}f=g&255;if(f-1>>>0<=126){d=d-1|0;e=e+1|0;continue}break}f=f-194|0;if(f>>>0>50)break e;e=e+1|0;g=J[(f<<2)+753584>>2];f=0;continue}}while(1){if(!f){if(!d)break a;while(1){p:{f=K[e|0];h=f-1|0;q:{r:{if(h>>>0>126){g=f;break r}if(e&3|d>>>0<5)break q;s:{while(1){g=J[e>>2];if((g|g-16843009)&-2139062144)break s; -J[a>>2]=g&255;J[a+4>>2]=K[e+1|0];J[a+8>>2]=K[e+2|0];J[a+12>>2]=K[e+3|0];a=a+16|0;e=e+4|0;d=d-4|0;if(d>>>0>4)continue;break}g=K[e|0]}f=g&255;h=f-1|0}if(h>>>0>126)break p}J[a>>2]=f;a=a+4|0;e=e+1|0;d=d-1|0;if(d)continue;break a}break}f=f-194|0;if(f>>>0>50)break e;e=e+1|0;g=J[(f<<2)+753584>>2];f=1;continue}i=K[e|0];f=i>>>3|0;if((f-16|f+(g>>26))>>>0>7)break f;t:{u:{h=e+1|0;f=i-128|g<<6;v:{if((f|0)>=0)break v;i=K[h|0]-128|0;if(i>>>0>63)break u;h=e+2|0;f=i|f<<6;if((f|0)>=0)break v;h=K[h|0]-128|0;if(h>>> -0>63)break u;f=h|f<<6;h=e+3|0}e=h;J[a>>2]=f;d=d-1|0;a=a+4|0;break t}J[194954]=25;e=e-1|0;break c}f=0;continue}}e=e-1|0;if(g)break d;g=K[e|0]}if(g&255)break d;if(a){J[a>>2]=0;J[b>>2]=0}return c-d|0}J[194954]=25;if(!a)break b}J[b>>2]=e}return-1}J[b>>2]=e;return c|0}function Dfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;u=xb-256|0;xb=u;p=J[a+332>>2];b=J[b+84>>2];a=u;g=8;while(1){a:{b:{h=L[c+32>>1];f=I[c+16>>1];if((h|f)&65535)break b; -h=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;h=P(J[b>>2],I[c>>1]);J[a+192>>2]=h;J[a+160>>2]=h;J[a+128>>2]=h;J[a+96>>2]=h;J[a+64>>2]=h;J[a+32>>2]=h;J[a>>2]=h;f=56;break a}j=P(J[b+192>>2],I[c+96>>1]);l=P(J[b+64>>2],h<<16>>16);h=j+l|0;k=P(J[b+128>>2],I[c+64>>1]);m=P(J[b>>2],I[c>>1]);q=k+m|0;i=h+q|0;n=P(J[b+160>>2],I[c+80>>1]);o=P(J[b+96>>2],I[c+48>>1]);r=n+o|0;s=P(J[b+224>>2],I[c+112>>1]);t=P(f,J[b+32>>2]);v=s+t|0;f=r+v|0;J[a+224>>2]=i-f;J[a>>2]=f+i;n=n-o|0;o=t- -s|0;i=P(n+o|0,473)>>8;j=(P(l-j|0,362)>>8)-h|0;l=m-k|0;k=j+l|0;f=i+((P(n,-669)>>8)-f|0)|0;J[a+192>>2]=k-f;J[a+32>>2]=f+k;j=l-j|0;f=(P(v-r|0,362)>>8)-f|0;J[a+160>>2]=j-f;J[a+64>>2]=f+j;f=f+((P(o,277)>>8)-i|0)|0;h=q-h|0;J[a+128>>2]=f+h;h=h-f|0;f=24}J[(f<<2)+a>>2]=h;c=c+2|0;b=b+4|0;a=a+4|0;h=g>>>0>1;g=g-1|0;if(h)continue;break}b=p+128|0;c=u;h=0;while(1){a=J[(h<<2)+d>>2]+e|0;c:{d:{g=J[c+8>>2];f=J[c+4>>2];if(g|f)break d;g=0;if(J[c+12>>2]|J[c+16>>2]|(J[c+20>>2]|J[c+24>>2]))break d;if(J[c+28>>2])break d; -g=K[b+(J[c>>2]>>>5&1023)|0];H[a+6|0]=g;H[a+5|0]=g;H[a+4|0]=g;H[a+3|0]=g;H[a+2|0]=g;H[a+1|0]=g;H[a|0]=g;f=7;break c}j=J[c+28>>2];l=j+f|0;k=J[c+12>>2];m=J[c+20>>2];q=k+m|0;i=l+q|0;n=J[c+24>>2];p=n+g|0;o=J[c+16>>2];r=J[c>>2];s=o+r|0;t=p+s|0;H[a|0]=K[b+(i+t>>>5&1023)|0];H[a+7|0]=K[b+(t-i>>>5&1023)|0];k=m-k|0;j=f-j|0;f=P(k+j|0,473)>>8;i=f+((P(k,-669)>>8)-i|0)|0;k=(P(g-n|0,362)>>8)-p|0;m=r-o|0;g=k+m|0;H[a+1|0]=K[b+(i+g>>>5&1023)|0];H[a+6|0]=K[b+(g-i>>>5&1023)|0];g=(P(l-q|0,362)>>8)-i|0;i=m-k|0;H[a+2|0]= -K[b+(g+i>>>5&1023)|0];H[a+5|0]=K[b+(i-g>>>5&1023)|0];g=g+((P(j,277)>>8)-f|0)|0;f=s-p|0;H[a+4|0]=K[b+(g+f>>>5&1023)|0];g=K[b+(f-g>>>5&1023)|0];f=3}H[f+a|0]=g;c=c+32|0;h=h+1|0;if((h|0)!=8)continue;break}xb=u+256|0}function iE(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=xb-2128|0;xb=d;e=d+2096|0;J[e>>2]=0;J[e+4>>2]=0;e=d+2104|0;J[e>>2]=0;J[e+4>>2]=0;H[d+2112|0]=0;J[d+2080>>2]=0;J[d+2084>>2]=0;J[d+2088>>2]=0;J[d+2092>>2]=0;Nb(d+1040|0,0,1028);f=Nb(d,255,1028);J[c+1024>>2]=1;i=1E9;j=-1;while(1){d= -J[(h<<2)+c>>2];e=!d|(d|0)>(i|0);i=e?i:d;j=e?j:h;g=1E9;d=0;e=-1;h=h+1|0;if((h|0)!=257)continue;while(1){h=J[(d<<2)+c>>2];l=!h|(d|0)==(j|0)|(g|0)<(h|0);i=l?e:d;e=d|1;if((e|0)!=257){k=J[(e<<2)+c>>2];g=l?g:h;h=!k|(e|0)==(j|0)|(k|0)>(g|0);g=h?g:k;e=h?i:e;d=d+2|0;continue}break}d=0;if((i|0)<0){while(1){c=J[(f+1040|0)+(d<<2)>>2];if(c){if((c|0)>=33){e=J[a>>2];J[e+20>>2]=40;Ab[J[e>>2]](a)}c=c+(f+2080|0)|0;H[c|0]=K[c|0]+1}d=d+1|0;if((d|0)!=257)continue;break}c=32;while(1){i=(f+2080|0)+c|0;j=K[i|0];a:{if(!j){a= -c-1|0;break a}g=c-2|0;a=c-1|0;h=a+(f+2080|0)|0;while(1){d=g;while(1){e=d;d=d-1|0;k=e+(f+2080|0)|0;if(!K[k|0])continue;break}H[i|0]=j-2;H[h|0]=K[h|0]+1;d=(e+f|0)+2081|0;H[d|0]=K[d|0]+2;H[k|0]=K[k|0]-1;j=K[i|0];if(j)continue;break}}d=c>>>0>17;c=a;if(d)continue;break}d=16;while(1){a=(f+2080|0)+d|0;d=d-1|0;c=K[a|0];if(!c)continue;break}H[a|0]=c-1;H[b+16|0]=K[f+2096|0];a=J[f+2092>>2];J[b+8>>2]=J[f+2088>>2];J[b+12>>2]=a;a=J[f+2084>>2];J[b>>2]=J[f+2080>>2];J[b+4>>2]=a;e=0;g=1;while(1){d=0;while(1){if(J[(f+ -1040|0)+(d<<2)>>2]==(g|0)){H[(b+e|0)+17|0]=d;e=e+1|0}a=d|1;if(J[(f+1040|0)+(a<<2)>>2]==(g|0)){H[(b+e|0)+17|0]=a;e=e+1|0}d=d+2|0;if((d|0)!=256)continue;break}g=g+1|0;if((g|0)!=33)continue;break}J[b+276>>2]=0;xb=f+2128|0;return}d=j<<2;e=d+c|0;l=e;k=J[e>>2];g=i<<2;e=g+c|0;J[l>>2]=k+J[e>>2];J[e>>2]=0;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;e=d+f|0;d=J[e>>2];if((d|0)>=0)while(1){d=d<<2;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;e=d+f|0;d=J[e>>2];if((d|0)>=0)continue;break}J[e>>2]=i;d=g+(f+1040|0)|0;J[d>>2]=J[d>>2]+ -1;h=0;i=1E9;j=-1;d=J[f+g>>2];if((d|0)<0)continue;while(1){d=d<<2;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;d=J[d+f>>2];if((d|0)>=0)continue;break}continue}}function VS(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;u=xb-16|0;xb=u;J[c>>2]=a;x=d&512;while(1){if((v|0)==4){if(K[n+11|0]>>>7|0)e=J[n+4>>2];else e=K[n+11|0]&127;if(e>>>0>1){z=u,A=Xe(n),J[z+12>>2]=A;z=c,A=Bx(Tp(u+12|0,1),Gh(n), -J[c>>2]),J[z>>2]=A}d=d&176;if((d|0)!=16){if((d|0)==32)a=J[c>>2];J[b>>2]=a}xb=u+16|0}else{a:{b:switch(H[i+v|0]){case 0:J[b>>2]=J[c>>2];break a;case 1:J[b>>2]=J[c>>2];p=Ab[J[J[g>>2]+28>>2]](g,32)|0;q=J[c>>2];J[c>>2]=q+1;H[q|0]=p;break a;case 3:if(K[n+11|0]>>>7|0)p=J[n+4>>2];else p=K[n+11|0]&127;if(!p)break a;if(K[n+11|0]>>>7|0)p=J[n>>2];else p=n;p=K[p|0];q=J[c>>2];J[c>>2]=q+1;H[q|0]=p;break a;case 2:q=!x;if(K[m+11|0]>>>7|0)p=J[m+4>>2];else p=K[m+11|0]&127;if(q|!p)break a;z=c,A=Bx(Xe(m),Gh(m),J[c>>2]), -J[z>>2]=A;break a;case 4:break b;default:break a}y=J[c>>2];e=e+h|0;r=e;while(1){c:{if(f>>>0<=r>>>0)break c;p=H[r|0];if((p|0)>=0)p=(J[J[g+8>>2]+((p&255)<<2)>>2]&64)!=0;else p=0;if(!p)break c;r=r+1|0;continue}break}p=o;if((p|0)>0){while(1){if(!(!p|e>>>0>=r>>>0)){p=p-1|0;r=r-1|0;q=K[r|0];s=J[c>>2];J[c>>2]=s+1;H[s|0]=q;continue}break}if(p)q=Ab[J[J[g>>2]+28>>2]](g,48)|0;else q=0;while(1){s=J[c>>2];J[c>>2]=s+1;if((p|0)>0){H[s|0]=q;p=p-1|0;continue}break}H[s|0]=j}d:{if((e|0)==(r|0)){p=Ab[J[J[g>>2]+28>>2]](g, -48)|0;q=J[c>>2];J[c>>2]=q+1;H[q|0]=p;break d}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;q=H[p|0];if(K[l+11|0]>>>7|0)p=J[l+4>>2];else p=K[l+11|0]&127;q=p?q:-1;p=0;t=0;while(1){if((e|0)==(r|0))break d;e:{if((p|0)!=(q|0)){s=p;break e}q=J[c>>2];J[c>>2]=q+1;H[q|0]=k;s=0;if(K[l+11|0]>>>7|0)q=J[l+4>>2];else q=K[l+11|0]&127;t=t+1|0;if(q>>>0<=t>>>0){q=p;break e}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;if(K[p+t|0]==127){q=-1;break e}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;q=H[p+t|0]}r=r-1|0;p=K[r|0];w=J[c>>2];J[c>>2]= -w+1;H[w|0]=p;p=s+1|0;continue}}Dh(y,J[c>>2])}v=v+1|0;continue}break}}function dU(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;a=xb-384|0;xb=a;J[a+376>>2]=c;J[a+380>>2]=b;Wp(a+220|0,d,a+240|0,a+236|0,a+232|0);b=Rc(a+208|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+204>>2]=c;J[a+28>>2]=a+32;J[a+24>>2]=0;H[a+23|0]=1;H[a+22|0]=69;while(1){d:{J[195395]=0;d= -ca(3657,a+380|0,a+376|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+204>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c= -b;J[a+204>>2]=d+c}J[195395]=0;d=a+380|0;g=_(3658,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Km(g,a+23|0,a+22|0,c,a+204|0,J[a+236>>2],J[a+232>>2],a+220|0,a+32|0,a+28|0,a+24|0,a+240|0);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+231|0]>>>7|0)d=J[a+224>>2];else d=K[a+231|0]&127;e:{if(!d|!K[a+23|0])break e;d=J[a+28>>2];if((d-(a+32|0)|0)>159)break e;J[a+28>>2]=d+4;J[d>> -2]=J[a+24>>2]}J[195395]=0;ia(3649,a|0,c|0,J[a+204>>2],e|0);c=J[195395];J[195395]=0;f:{if((c|0)==1)break f;c=J[a+8>>2];d=J[a+12>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[f+8>>2]=c;J[f+12>>2]=d;J[195395]=0;je(a+220|0,a+32|0,J[a+28>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3657,a+380|0,a+376|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+380>>2];Yb(b);Yb(a+220|0);xb=a+384|0;break a}}c=Z()|0;Yb(b);Yb(a+220|0);ba(c|0);B()}return c|0}function zr(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;n=xb-160|0;xb=n;a:{if(!a|!b)break a;b:{g=J[b+48>>2];if((2147483639-g|0)>0){d=g+1|0;f=d+8|0;if(f>>>0<153391689)break b}Wb(a,257624);break a}e=d;d=J[b+52>>2];c:{if((e|0)<=(d|0))break c;e=J[b+56>>2];if(e){J[b+52>>2]=f;g=Ed(a,P(f,28));J[b+56>>2]=g;if(!g){J[b+56>>2]=e;J[b+52>>2]=d;e=1;break a}Mb(g,e,P(d,28));cc(a,e);break c}J[b+48>>2]=0;J[b+52>>2]=9;e=Ed(a,252);J[b+56>>2]=e;if(!e){J[b+52>>2]=d;J[b+48>>2]=g;e=1;break a}J[b+184>>2]=J[b+184>> -2]|16384}d:{while(1){h=P(o,28)+c|0;d=J[h+4>>2];e:{if(!d)break e;if(J[h>>2]-3>>>0<=4294967291){Wb(a,257728);break e}k=J[b+48>>2];p=J[b+56>>2];j=n+80|0;l=1;i=0;e=K[d|0];f:{if(!e)break f;f=1;while(1){g=0;l=e>>>0<161&(e-127&255)>>>0<162;g:{if(l){g=1;if(f)break g;e=32}H[j|0]=e;i=i+1|0;j=j+1|0}d=d+1|0;e=K[d|0];if(!e)break f;f=g;if(i>>>0<79)continue;break}}d=(i|0)!=0&l;H[j-d|0]=0;m=i-d|0;if(!m){Wb(a,257861);break e}q=P(k,28);h:{if(J[h>>2]<=0){g=0;k=0;break h}k=0;g=0;j=J[h+20>>2];if(j){d=n;l=1;i=0;e=K[j| -0];i:{if(!e)break i;f=1;while(1){g=0;l=e>>>0<161&(e-127&255)>>>0<162;j:{if(l){g=1;if(f)break j;e=32}H[d|0]=e;i=i+1|0;d=d+1|0}j=j+1|0;e=K[j|0];if(!e)break i;f=g;if(i>>>0<79)continue;break}}f=d;d=(i|0)!=0&l;H[f-d|0]=0;g=i-d|0}d=J[h+24>>2];if(!d)break h;k=ac(d)}f=p+q|0;k:{l:{e=J[h+8>>2];m:{if(!e){d=J[h>>2];break m}d=J[h>>2];if(K[e|0])break l}d=(d|0)<=0?-1:1;e=0;break k}e=ac(e)}J[f>>2]=d;d=Ed(a,(e+((g+m|0)+k|0)|0)+4|0);J[f+4>>2]=d;if(!d)break d;Mb(d,n+80|0,m);d=f+4|0;H[J[d>>2]+m|0]=0;n:{if(J[h>>2]>0){d= -(J[f+4>>2]+m|0)+1|0;J[f+20>>2]=d;Mb(d,J[h+20>>2],g);H[J[f+20>>2]+g|0]=0;d=(J[f+20>>2]+g|0)+1|0;J[f+24>>2]=d;Mb(d,J[h+24>>2],k);H[J[f+24>>2]+k|0]=0;d=f+24|0;break n}J[f+20>>2]=0;J[f+24>>2]=0;k=m}d=(J[d>>2]+k|0)+1|0;J[f+8>>2]=d;if(e){Mb(d,J[h+8>>2],e);d=J[f+8>>2]}H[d+e|0]=0;d=J[f>>2]>0;J[f+16>>2]=d?e:0;J[f+12>>2]=d?0:e;J[b+48>>2]=J[b+48>>2]+1}o=o+1|0;if((o|0)!=1)continue;break}e=0;break a}e=1}xb=n+160|0;return e}function tU(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;a=xb-272|0;xb= -a;J[a+264>>2]=c;J[a+268>>2]=b;Zp(a+208|0,d,a+224|0,a+223|0,a+222|0);b=Rc(a+196|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+192>>2]=c;J[a+28>>2]=a+32;J[a+24>>2]=0;H[a+23|0]=1;H[a+22|0]=69;while(1){d:{J[195395]=0;d=ca(3629,a+268|0,a+264|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+192>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g| -0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+192>>2]=d+c}J[195395]=0;d=a+268|0;g=_(3630,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Mm(g,a+23|0,a+22|0,c,a+192|0,H[a+223| -0],H[a+222|0],a+208|0,a+32|0,a+28|0,a+24|0,a+224|0);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+219|0]>>>7|0)d=J[a+212>>2];else d=K[a+219|0]&127;e:{if(!d|!K[a+23|0])break e;d=J[a+28>>2];if((d-(a+32|0)|0)>159)break e;J[a+28>>2]=d+4;J[d>>2]=J[a+24>>2]}J[195395]=0;ia(3649,a|0,c|0,J[a+192>>2],e|0);c=J[195395];J[195395]=0;f:{if((c|0)==1)break f;c=J[a+8>>2];d=J[a+12>>2];g=J[a+4>>2];J[f>>2]=J[a>> -2];J[f+4>>2]=g;J[f+8>>2]=c;J[f+12>>2]=d;J[195395]=0;je(a+208|0,a+32|0,J[a+28>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3629,a+268|0,a+264|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+268>>2];Yb(b);Yb(a+208|0);xb=a+272|0;break a}}c=Z()|0;Yb(b);Yb(a+208|0);ba(c|0);B()}return c|0}function Lq(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;e=xb+-64|0;xb=e;Ri(e+52|0,a,b,d);d=K[e+63|0];b=d<<24>>24;a:{b:{c:{d:{e:{f:{g:{h:{if((b| -0)<0?J[e+56>>2]:d){b=J[a+56>>2]+1|0;J[a+56>>2]=b;J[195395]=0;d=e+24|0;da(1863,d|0,+(b>>>0),0);b=J[195395];J[195395]=0;if((b|0)==1)break h;J[195395]=0;b=aa(1954,d|0,0,422320)|0;d=J[195395];J[195395]=0;if((d|0)==1)break g;J[e+48>>2]=J[b+8>>2];d=J[b+4>>2];J[e+40>>2]=J[b>>2];J[e+44>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[e+35|0]<0)Kb(J[e+24>>2]);f=H[e+63|0];g=(f|0)<0?J[e+56>>2]:f&255;b=g+9|0;if(b>>>0>=1073741808){J[195395]=0;ea(1800,e+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;break a}i:{if(b>>> -0<=1){J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;H[e+19|0]=b;d=e+8|0;break i}d=b|3;if(d>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break d}J[195395]=0;h=d+1|0;d=_(1078,h<<2)|0;i=J[195395];J[195395]=0;if((i|0)==1)break d;J[e+12>>2]=b;J[e+8>>2]=d;J[e+16>>2]=h|-2147483648}J[d+32>>2]=J[105598];b=J[105597];J[d+24>>2]=J[105596];J[d+28>>2]=b;b=J[105595];J[d+16>>2]=J[105594];J[d+20>>2]=b;b=J[105593];J[d+8>>2]=J[105592];J[d+12>>2]=b;b=J[105591];J[d>>2]=J[105590];J[d+4>>2]= -b;b=g<<2;j=qc(d+36|0,(f|0)<0?J[e+52>>2]:e+52|0,b)+b|0,k=0,J[j>>2]=k;J[195395]=0;b=ca(1858,e+8|0,422068)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;J[e+32>>2]=J[b+8>>2];d=J[b+4>>2];J[e+24>>2]=J[b>>2];J[e+28>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[e+19|0]<0)Kb(J[e+8>>2]);J[195395]=0;ia(3119,a+84|0,e+40|0,e+24|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;if(H[e+35|0]<0)Kb(J[e+24>>2]);if(H[e+51|0]<0)Kb(J[e+40>>2]);b=K[e+63|0]}if(b<<24>>24<0)Kb(J[e+52>>2]);xb=e- -64|0;return}d=Z()|0;break b}d= -Z()|0;if(H[e+35|0]>=0)break b;Kb(J[e+24>>2]);break b}d=Z()|0;if(H[e+19|0]>=0)break c;Kb(J[e+8>>2]);break c}d=Z()|0;if(H[e+35|0]>=0)break c;Kb(J[e+24>>2]);break c}d=Z()|0}if(H[e+51|0]>=0)break b;Kb(J[e+40>>2])}if(H[e+63|0]<0)Kb(J[e+52>>2]);ba(d|0);B()}B()}function dga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0;b=J[b+84>>2];j=P(J[b+108>>2],I[c+54>>1]);f=P(J[b+44>>2],I[c+22>>1]);g=P(j+ -f|0,4433)+1024|0;k=P(J[b+100>>2],I[c+50>>1]);h=P(J[b+36>>2],I[c+18>>1]);i=P(k+h|0,4433)+1024|0;m=P(J[b+76>>2],I[c+38>>1]);n=P(J[b+12>>2],I[c+6>>1]);t=m+n<<2;u=g+P(f,6270)>>11;o=t+u|0;p=P(J[b+68>>2],I[c+34>>1]);q=P(J[b+4>>2],I[c+2>>1]);v=p+q<<2;w=i+P(h,6270)>>11;l=v+w|0;h=P(o+l|0,4433);f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;r=P(J[b+64>>2],L[c+32>>1]);x=P(J[b>>2],L[c>>1]);y=r+x<<2;z=P(J[b+96>>2],I[c+48>>1]);s=P(J[b+32>>2],I[c+16>>1]);A=P(z+s|0,4433)+1024|0;s=A+P(s,6270)>>11;B=(y+s|0)+16|0;C=P(J[b+72>>2], -L[c+36>>1]);D=P(J[b+8>>2],L[c+4>>1]);E=C+D<<2;F=P(J[b+104>>2],I[c+52>>1]);b=P(J[b+40>>2],I[c+20>>1]);G=P(F+b|0,4433)+1024|0;M=G+P(b,6270)>>11;b=E+M|0;c=B+b<<13;l=h+P(l,6270)|0;H[f|0]=K[a+(c+l>>>18&1023)|0];H[f+3|0]=K[a+(c-l>>>18&1023)|0];c=h+P(o,-15137)|0;b=B-b<<13;H[f+1|0]=K[a+(c+b>>>18&1023)|0];H[f+2|0]=K[a+(b-c>>>18&1023)|0];f=g+P(j,-15137)>>11;g=n-m<<2;h=f+g|0;i=i+P(k,-15137)>>11;j=q-p<<2;k=i+j|0;c=P(h+k|0,4433);b=J[d+4>>2]+e|0;k=c+P(k,6270)|0;m=P(z,-15137)+A>>11;n=x-r<<2;o=(m+n|0)+16|0;p=P(F, --15137)+G>>11;q=D-C<<2;l=p+q|0;r=o+l<<13;H[b|0]=K[a+(k+r>>>18&1023)|0];H[b+3|0]=K[a+(r-k>>>18&1023)|0];c=c+P(h,-15137)|0;h=o-l<<13;H[b+1|0]=K[a+(c+h>>>18&1023)|0];H[b+2|0]=K[a+(h-c>>>18&1023)|0];f=g-f|0;g=j-i|0;c=P(f+g|0,4433);b=J[d+8>>2]+e|0;g=c+P(g,6270)|0;i=(n-m|0)+16|0;h=q-p|0;j=i+h<<13;H[b|0]=K[a+(g+j>>>18&1023)|0];H[b+3|0]=K[a+(j-g>>>18&1023)|0];c=c+P(f,-15137)|0;f=i-h<<13;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+2|0]=K[a+(f-c>>>18&1023)|0];f=t-u|0;g=v-w|0;c=P(f+g|0,4433);b=J[d+12>>2]+e|0;d=c+P(g, -6270)|0;e=(y-s|0)+16|0;g=E-M|0;i=e+g<<13;H[b|0]=K[a+(d+i>>>18&1023)|0];H[b+3|0]=K[a+(i-d>>>18&1023)|0];c=c+P(f,-15137)|0;d=e-g<<13;H[b+1|0]=K[a+(c+d>>>18&1023)|0];H[b+2|0]=K[a+(d-c>>>18&1023)|0]}function Dca(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;j=xb-16|0;xb=j;t=J[a+52>>2];h=J[a+16>>2];o=J[a+12>>2];g=J[a>>2];f=hk(g);e=P(o?4:3,f);n=Qb(e);a:{if(!n){Ob(J[g+628>>2],J[g>>2],274575,0);break a}Pd(n,0,e);k=1;p=1;e=0;b:{c:{d:{e:{f:{g:{h:{i:switch(L[a+ -28>>1]-1|0){case 0:case 4:e=L[a+30>>1];if(e>>>0>8)break e;e=1<>1];if(l>>>0>8)break e;i=1<>1];if(e>>>0>8)break e;e=1<>1];if(e>>>0>7)break e;e=1<>2]=j+12;Ue(g,278,j);l=Ye(g);j:{if(!d)break j;q=f+n|0;r=f+q|0;s=f+r|0;v=o?s:0;k=h-c|0;w=h>>>0>=k>>>0?k:0;k=p?0:d-1|0;f=0;k:{while(1){h=J[j+12>>2];i=J[a+76>>2]+f|0;h=h-((i>>>0)%(h>>>0)|0)|0;h=f+h>>>0>d>>>0?d-f|0:h;m=0;if(!((gk(g,ik(g,i,0),n,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2]))break k;m=0;if(!((gk(g,ik(g,i,1),q,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2]))break k;m=0;if(!((gk(g,ik(g,i,2),r,P(l,h+ -((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2]))break k;l:{if(!o)break l;if((gk(g,ik(g,i,3),s,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2])break l;m=0;break k}i=P(l,(J[a+76>>2]+f>>>0)%M[j+12>>2]|0);Ab[t|0](a,(P(c,k)<<2)+b|0,0,k,c,h,w,u,i+n|0,i+q|0,i+r|0,o?i+v|0:0);k=(p?h:0-h|0)+k|0;f=f+h|0;if(f>>>0>>0)continue;break}m=1}k=m;if(!e)break j;g=0;while(1){f=(P(c,g)<<2)+b|0;a=(f+(c<<2)|0)-4|0;if(a>>>0>f>>>0)while(1){e=J[f>>2];J[f>>2]=J[a>>2];J[a>>2]=e;a=a-4|0;f=f+4|0;if(a>>>0> -f>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}Kb(n)}xb=j+16|0;return k|0}function W1(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;e=J[a+12>>2];c=J[a+8>>2];if(e>>>0>c+3>>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b>>2]=f;if(e>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+4>>2]=d;d=0;a:{if(e>>>0<=c+3>>>0){f=0;break a}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+8>>2]= -f;if(e>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+12>>2]=d;d=0;if(e>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+16>>2]=d;if(e>>>0<=c+3>>>0)g=0;else{d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;g=+(x(2,d),C())}O[b+24>>3]=g;if(e>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;g=+(x(2,d),C())}else g=0;O[b+32>>3]=g;b:{if(e>>>0<=c+3>>>0){J[b+40>>2]=0;break b}e= -K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h=c+4|0;J[a+8>>2]=h;J[b+40>>2]=e;if(!e)break b;f=Pb((k=-1,l=Kpa(e,0,48,0),m=zb,m?k:l));d=f;e=P(e,48);i=e-48|0;j=((i>>>0)/48|0)+1&3;if(j){c=0;while(1){J[d+20>>2]=0;J[d+24>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;d=d+48|0;c=c+1|0;if((j|0)!=(c|0))continue;break}}if(i>>>0>=144){c=e+f|0;while(1){J[d+20>>2]=0;J[d+24>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+96>>2]=0;J[d+100>>2]= -0;J[d+144>>2]=0;J[d+148>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+68>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+116>>2]=0;J[d+120>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[d+124>>2]=0;J[d+128>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+164>>2]=0;J[d+168>>2]=0;J[d+172>>2]=0;J[d+176>>2]=0;J[d+184>>2]=0;J[d+188>>2]=0;d=d+192|0;if((c|0)!=(d|0))continue;break}}J[b+44>>2]=f;c=(J[a>>2]-h|0)+36|0;d=0;while(1){eB(a,J[b+44>>2]+P(d,48)|0,(c+J[a+8>>2]|0)-J[a>>2]|0);d=d+1|0;if(d>>>0>2])continue;break}return a|0}J[b+ -44>>2]=0;return a|0}function V1(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;e=J[a+12>>2];c=J[a+8>>2];if(e>>>0>c+3>>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b>>2]=f;if(e>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+4>>2]=d;d=0;a:{if(e>>>0<=c+3>>>0){f=0;break a}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+8>>2]=f;if(e>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24); -c=c+4|0;J[a+8>>2]=c}J[b+12>>2]=d;d=0;if(e>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+16>>2]=d;if(e>>>0<=c+3>>>0)g=0;else{d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;g=+(x(2,d),C())}O[b+24>>3]=g;if(e>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;g=+(x(2,d),C())}else g=0;O[b+32>>3]=g;b:{if(e>>>0<=c+3>>>0){J[b+40>>2]=0;break b}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h=c+4|0;J[a+8>>2]=h;J[b+ -40>>2]=e;if(!e)break b;f=Pb((k=-1,l=Kpa(e,0,48,0),m=zb,m?k:l));d=f;e=P(e,48);i=e-48|0;j=((i>>>0)/48|0)+1&3;if(j){c=0;while(1){J[d+20>>2]=0;J[d+24>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;d=d+48|0;c=c+1|0;if((j|0)!=(c|0))continue;break}}if(i>>>0>=144){c=e+f|0;while(1){J[d+20>>2]=0;J[d+24>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+144>>2]=0;J[d+148>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+68>>2]=0; -J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+116>>2]=0;J[d+120>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[d+124>>2]=0;J[d+128>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+164>>2]=0;J[d+168>>2]=0;J[d+172>>2]=0;J[d+176>>2]=0;J[d+184>>2]=0;J[d+188>>2]=0;d=d+192|0;if((c|0)!=(d|0))continue;break}}J[b+44>>2]=f;c=(J[a>>2]-h|0)+36|0;d=0;while(1){dB(a,J[b+44>>2]+P(d,48)|0,(c+J[a+8>>2]|0)-J[a>>2]|0);d=d+1|0;if(d>>>0>2])continue;break}return a|0}J[b+44>>2]=0;return a|0}function z2(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0, -g=0;c=xb-80|0;xb=c;a:{b:{c:{d:{e:{f:{d=J[a+80>>2];g:{if(!d)break g;d=Ab[J[J[d>>2]+112>>2]](d)|0;if(!d)break g;e=c+68|0;f=a+8|0;Ri(e,f,d,0);d=K[c+79|0];a=d<<24>>24;if((a|0)<0?J[c+72>>2]:d){J[195395]=0;d=aa(1956,c+32|0,397860,e|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break f;J[c+64>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[195395]=0;H[c+24|0]=0;J[c+20>>2]=c+56;e=_(1078,24)|0;a=J[195395];J[195395]=0;h:{i:{if((a|0)!=1){J[c+60>>2]=e;J[c+56>>2]=e;J[195395]=0;J[c+64>>2]=e+24;a=ha(1957,c- -64|0,d|0,d+24|0,e|0)| -0;g=J[195395];J[195395]=0;if((g|0)!=1)break h;a=Z()|0;J[c+60>>2]=e;break i}a=Z()|0}Kc(c+20|0);Vb(d);break a}J[c+60>>2]=a;if(H[d+23|0]<0)Kb(J[d+12>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);J[195395]=0;d=c+56|0;$(1963,f|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;a=J[b>>2];e=J[b+8>>2];g=J[b+4>>2];b=J[b+12>>2];J[195395]=0;la(1959,f|0,d|0,+R(+(e-a|0)),+R(+(b-g|0)));a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,f|0,d|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,f| -0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;b=J[195395];J[195395]=0;if((b|0)==1)break d;J[c+20>>2]=a;J[c+24>>2]=4;J[c+28>>2]=-2147483640;b=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=b;b=J[99523];J[a>>2]=J[99522];J[a+4>>2]=b;J[a+16>>2]=0;J[195395]=0;J[c+8>>2]=0;H[c+19|0]=0;ia(1961,f|0,c+20|0,d|0,c+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]<0)Kb(J[c+20>>2]);b=J[c+56>>2];if(b){a=J[c+60>>2];d=b;if((a|0)!=(d|0)){while(1){if(H[a- -1|0]<0)Kb(J[a-12>>2]);d=a-24|0;if(H[a-13|0]<0)Kb(J[d>>2]);a=d;if((a|0)!=(b|0))continue;break}d=J[c+56>>2]}J[c+60>>2]=b;Kb(d)}a=K[c+79|0]}if(a<<24>>24>=0)break g;Kb(J[c+68>>2])}xb=c+80|0;return}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]>=0)break b;Kb(J[c+20>>2])}Hc(c+56|0)}if(H[c+79|0]<0)Kb(J[c+68>>2]);ba(a|0);B()}function Kfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x= -0,y=0,z=0;w=xb-400|0;xb=w;t=J[a+332>>2];b=J[b+84>>2];a=w;while(1){i=J[b+192>>2];j=I[c+96>>1];m=J[b+64>>2];q=I[c+32>>1];l=P(I[c>>1],J[b>>2])<<13|1024;f=P(J[b+128>>2],I[c+64>>1]);k=l+P(f,-11586)>>11;n=P(J[b+224>>2],I[c+112>>1]);g=P(J[b+32>>2],I[c+16>>1]);h=P(J[b+96>>2],I[c+48>>1]);r=g-h|0;o=P(J[b+160>>2],I[c+80>>1]);p=n+(r-o|0)<<2;J[a+280>>2]=k-p;J[a+84>>2]=k+p;j=P(i,j);m=P(m,q);q=P(j+m|0,9058);k=q+P(j,-14084)|0;p=l+P(f,2578)|0;u=k+p|0;i=n<<13;n=P(h+o|0,-1297)-i|0;x=P(g+h|0,10935);v=n+(x+P(h,-3474)| -0)|0;J[a+336>>2]=u-v>>11;J[a+28>>2]=u+v>>11;j=P(j,-11295)+P(m,5027)|0;u=l+P(f,-7223)|0;v=j+u|0;s=n;n=g+o|0;y=P(n,9810);s=s+(y+P(o,-19447)|0)|0;J[a+308>>2]=v-s>>11;J[a+56>>2]=v+s>>11;k=p-k|0;r=P(r,3826)-i|0;s=P(h,5529);h=P(o-h|0,11512);p=r+(s+h|0)|0;J[a+224>>2]=k-p>>11;J[a+140>>2]=k+p>>11;f=l+P(f,10438)|0;l=q+P(m,2237)|0;m=f-l|0;q=P(n,6164);k=r+(q+P(g,-8693)|0)|0;J[a+196>>2]=m-k>>11;J[a+168>>2]=m+k>>11;f=f+l|0;g=i+((P(g,-9232)+x|0)+y|0)|0;J[a+364>>2]=f-g>>11;J[a>>2]=f+g>>11;g=u-j|0;h=i+(q+(h+P(o,-13850)| -0)|0)|0;J[a+252>>2]=g-h>>11;J[a+112>>2]=g+h>>11;a=a+4|0;b=b+4|0;c=c+2|0;z=z+1|0;if((z|0)!=7)continue;break}b=t+128|0;a=w;h=0;while(1){g=J[a+12>>2];f=J[a+4>>2];l=P(g+f|0,7663);o=J[a+16>>2];i=J[a+24>>2];j=P(o-i|0,7223);c=J[(h<<2)+d>>2]+e|0;m=J[a+20>>2];q=P(m+f|0,5027);t=P(f-g|0,1395);k=q+(l-t|0)|0;s=j+P(i,-637)|0;f=J[a+8>>2];r=f+i|0;i=(J[a>>2]<<13)+131072|0;n=P(r,10438)+i|0;p=s+n|0;H[c|0]=K[b+(k+p>>>18&1023)|0];H[c+6|0]=K[b+(p-k>>>18&1023)|0];g=P(g+m|0,-11295);l=g+(l+t|0)|0;t=P(f-o|0,2578);j=j+(t+(i+ -P(o,-15083)|0)|0)|0;H[c+1|0]=K[b+(l+j>>>18&1023)|0];H[c+5|0]=K[b+(j-l>>>18&1023)|0];g=g+(P(m,15326)+q|0)|0;f=n+(t+P(f,-20239)|0)|0;H[c+2|0]=K[b+(g+f>>>18&1023)|0];H[c+4|0]=K[b+(f-g>>>18&1023)|0];H[c+3|0]=K[b+(i+P(o-r|0,11585)>>>18&1023)|0];a=a+28|0;h=h+1|0;if((h|0)!=14)continue;break}xb=w+400|0}function _K(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;g=xb-16|0;xb=g;h=J[b+16>>2];n=J[a+492>>2];Ab[J[b+28>>2]](b);e=J[b>>2];a:{if(!(e>>>0>=M[b+8>>2]|K[e|0]!=91)){Ab[J[b+32>> -2]](b);Ab[J[b+28>>2]](b);a=J[b>>2];if(a>>>0>2]&K[a|0]==93)break a;J[b+12>>2]=3;break a}e=Ab[J[b+36>>2]](b)|0;if((e|0)<0){J[b+12>>2]=3;break a}b:{d=J[b+8>>2];c=J[b>>2];c:{if(d>>>0>>0)break c;d=d-c>>3;if((d|0)>=(e|0))break c;if(J[b+368>>2]){e=d;break c}e=tc(h,24,g+12|0);J[b+368>>2]=e;c=J[g+12>>2];if(c)break b;i=g;J[e+16>>2]=12;J[e+12>>2]=13;J[e+8>>2]=0;J[e>>2]=80;J[e+4>>2]=241;c=Ab[J[h+4>>2]](h,964)|0;d:{if(!c){J[e+20>>2]=c;c=64;break d}o=e,p=Nb(c,0,964),J[o+20>>2]=p;c=0}J[i+12>>2]=c;e=d; -if(c)break b}Ab[J[b+32>>2]](b);if(J[b+12>>2])break a;j=b+316|0;Ab[J[b+28>>2]](b);if(!J[b+312>>2]){c=Ab[J[J[n>>2]>>2]](j,e,h)|0;J[g+12>>2]=c;if(c)break b}d=J[b>>2];e:{if(M[b+8>>2]<=d+4>>>0)break e;while(1){if(Zb(d,23623,3))break e;Ab[J[b+32>>2]](b);d=Ab[J[b+36>>2]](b)|0;k=J[J[a+128>>2]+52>>2];c=J[b+8>>2];Ab[J[b+28>>2]](b);f:{f=J[b>>2];g:{if(f>>>0>=c>>>0|K[f|0]-48>>>0>9)break g;f=Ab[J[b+36>>2]](b)|0;Ab[J[b+32>>2]](b);if((f|0)<0)break g;i=c;c=J[b>>2];l=c+1|0;if((f|0)<(i-l|0))break f}if(k)break a;J[b+ -12>>2]=3;break a}J[b>>2]=(c+f|0)+1;if(J[b+12>>2])break a;Ab[J[b+32>>2]](b);if(J[b+12>>2])break a;Ab[J[b+28>>2]](b);c=J[b>>2];h:{if(M[b+8>>2]<=c+4>>>0)break h;if(Zb(c,23645,3))break h;Ab[J[b+32>>2]](b);Ab[J[b+28>>2]](b)}c=J[b+368>>2];if(c){go(d,m,c,h);d=m}if(!J[b+312>>2]){c=J[a+172>>2];i:{if((c|0)>=0){if(c>>>0>f>>>0){c=3;break b}k=tc(h,f,g+12|0);c=J[g+12>>2];if(c)break b;c=Mb(k,l,f);Ab[J[n+16>>2]](c,f,4330);i=d;d=J[a+172>>2];o=g,p=Ab[J[b+360>>2]](j,i,d+c|0,f-d|0)|0,J[o+12>>2]=p;if(c)Ab[J[h+8>>2]](h, -c);c=J[g+12>>2];break i}c=Ab[J[b+360>>2]](j,d,l,f)|0;J[g+12>>2]=c}if(c)break b}m=m+1|0;d=J[b>>2];if(M[b+8>>2]>d+4>>>0)continue;break}}if(J[b+312>>2])break a;J[b+312>>2]=e;break a}J[b+12>>2]=c}xb=g+16|0}function RT(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=xb-256|0;xb=i;J[i+248>>2]=37;J[i+252>>2]=0;k=i+248|0;m=Jm(k|1,228089,J[c+4>>2]);j=i+208|0;J[i+204>>2]=j;a=Vd();a:{if(m){l=J[c+8>>2];n=i- -64|0;J[n>>2]=g;J[n+4>>2]=h;J[i+56>>2]=e;J[i+60>>2]=f;J[i+ -48>>2]=l;a=Ie(j,30,a,k,i+48|0);break a}J[i+80>>2]=e;J[i+84>>2]=f;J[i+88>>2]=g;J[i+92>>2]=h;a=Ie(i+208|0,30,a,i+248|0,i+80|0)}J[i+128>>2]=627;k=Id(i+196|0,0,i+128|0);l=i+208|0;j=l;b:{c:{d:{e:{if((a|0)>=30){f:{if(m){J[195395]=0;a=na(3650)|0;j=J[195395];J[195395]=0;if((j|0)==1)break d;j=J[c+8>>2];J[i+16>>2]=g;J[i+20>>2]=h;J[i>>2]=j;J[195395]=0;J[i+8>>2]=e;J[i+12>>2]=f;a=ha(3671,i+204|0,a|0,i+248|0,i|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break f;break d}J[195395]=0;a=na(3650)|0;j=J[195395];J[195395]= -0;if((j|0)==1)break d;J[i+32>>2]=e;J[i+36>>2]=f;J[195395]=0;J[i+40>>2]=g;J[i+44>>2]=h;a=ha(3671,i+204|0,a|0,i+248|0,i+32|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d}if((a|0)==-1){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;break e}ge(k,J[i+204>>2]);j=J[i+204>>2]}h=a+j|0;j=lf(j,h,c);J[i+116>>2]=627;e=Id(i+120|0,0,i+116|0);g:{h:{if(J[i+204>>2]==(i+208|0)){a=i+128|0;break h}a=Qb(a<<1);if(!a){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)!=1)break e;b=Z()|0;break g}ge(e, -a);l=J[i+204>>2]}J[195395]=0;f=i+108|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;g=J[195395];J[195395]=0;i:{j:{if((g|0)!=1){J[195395]=0;oa(3672,l|0,j|0,h|0,a|0,i+116|0,i+112|0,f|0);g=J[195395];J[195395]=0;if((g|0)==1)break j;f=J[f>>2];g=J[f+4>>2]-1|0;J[f+4>>2]=g;if((g|0)==-1)Ab[J[J[f>>2]+8>>2]](f);J[195395]=0;a=pa(3673,b|0,a|0,J[i+116>>2],J[i+112>>2],c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break i;Ic(e);Ic(k);xb=i+256|0;break b}b=Z()|0;break g}b=Z()|0;a=J[i+108>>2];c=J[a+4>>2]-1|0;J[a+4>> -2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ic(e);break c}B()}b=Z()|0}Ic(k);ba(b|0);B()}return a|0}function QS(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;g=xb-480|0;xb=g;a=g+476|0;h=J[d+28>>2];J[a>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[195395]=0;n=_(3551,a|0)|0;a=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{if((a|0)!=1){if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;if(a){if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;k=J[a>>2];J[195395]=0;h=ca(3552, -n|0,45)|0;a=J[195395];J[195395]=0;if((a|0)==1)break g;o=(h|0)==(k|0)}l=Rc(g+452|0);i=Rc(g+440|0);j=Rc(g+428|0);J[195395]=0;Ca(3710,c|0,o|0,g+476|0,g+472|0,g+468|0,g+464|0,l|0,i|0,j|0,g+424|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[g+4>>2]=627;m=Id(g+8|0,0,g+4|0);c=g+16|0;if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;h:{if((a|0)>J[g+424>>2]){if(K[f+11|0]>>>7|0)h=J[f+4>>2];else h=K[f+11|0]&127;k=J[g+424>>2];if(K[i+11|0]>>>7|0)a=J[i+4>>2];else a=K[i+11|0]&127;if(K[j+11|0]>>>7|0)p=J[j+4>> -2];else p=K[j+11|0]&127;a=(k+(a+(p+(h-k<<1)|0)|0)|0)+1|0;break h}k=J[g+424>>2];if(K[j+11|0]>>>7|0)a=J[j+4>>2];else a=K[j+11|0]&127;if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;a=(k+(a+h|0)|0)+2|0}if(a>>>0<101)break e;ge(m,Qb(a<<2));c=J[m>>2];if(c)break e;J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;B()}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break c}k=J[d+4>>2];if(K[f+11|0]>>>7|0)h=J[f>>2];else h=f;if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;if(K[f+11|0]>>>7|0)f=J[f+4>>2];else f= -K[f+11|0]&127;J[195395]=0;Ea(3711,c|0,g+4|0,g|0,k|0,h|0,(f<<2)+a|0,n|0,o|0,g+472|0,J[g+468>>2],J[g+464>>2],l|0,i|0,j|0,J[g+424>>2]);a=J[195395];J[195395]=0;if((a|0)!=1){J[195395]=0;b=pa(3683,b|0,c|0,J[g+4>>2],J[g>>2],d|0,e|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break a}}f=Z()|0;Ic(m)}Yc(j);Yc(i);Yb(l)}b=J[g+476>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)Ab[J[J[b>>2]+8>>2]](b);ba(f|0);B()}Ic(m);Yc(j);Yc(i);Yb(l);c=J[g+476>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)Ab[J[J[c>>2]+8>>2]](c);xb=g+ -480|0;return b|0}function GT(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=xb-416|0;xb=i;J[i+408>>2]=37;J[i+412>>2]=0;k=i+408|0;m=Jm(k|1,228089,J[c+4>>2]);j=i+368|0;J[i+364>>2]=j;a=Vd();a:{if(m){l=J[c+8>>2];n=i- -64|0;J[n>>2]=g;J[n+4>>2]=h;J[i+56>>2]=e;J[i+60>>2]=f;J[i+48>>2]=l;a=Ie(j,30,a,k,i+48|0);break a}J[i+80>>2]=e;J[i+84>>2]=f;J[i+88>>2]=g;J[i+92>>2]=h;a=Ie(i+368|0,30,a,i+408|0,i+80|0)}J[i+128>>2]=627;k=Id(i+356|0,0,i+128|0);l=i+368|0;j=l;b:{c:{d:{e:{if((a| -0)>=30){f:{if(m){J[195395]=0;a=na(3650)|0;j=J[195395];J[195395]=0;if((j|0)==1)break d;j=J[c+8>>2];J[i+16>>2]=g;J[i+20>>2]=h;J[i>>2]=j;J[195395]=0;J[i+8>>2]=e;J[i+12>>2]=f;a=ha(3671,i+364|0,a|0,i+408|0,i|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1)break f;break d}J[195395]=0;a=na(3650)|0;j=J[195395];J[195395]=0;if((j|0)==1)break d;J[i+32>>2]=e;J[i+36>>2]=f;J[195395]=0;J[i+40>>2]=g;J[i+44>>2]=h;a=ha(3671,i+364|0,a|0,i+408|0,i+32|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d}if((a|0)==-1){J[195395]= -0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;break e}ge(k,J[i+364>>2]);j=J[i+364>>2]}h=a+j|0;j=lf(j,h,c);J[i+116>>2]=627;e=Id(i+120|0,0,i+116|0);g:{h:{if(J[i+364>>2]==(i+368|0)){a=i+128|0;break h}a=Qb(a<<3);if(!a){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)!=1)break e;b=Z()|0;break g}ge(e,a);l=J[i+364>>2]}J[195395]=0;f=i+108|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;g=J[195395];J[195395]=0;i:{j:{if((g|0)!=1){J[195395]=0;oa(3682,l|0,j|0,h|0,a|0,i+116|0,i+112|0,f|0);g=J[195395]; -J[195395]=0;if((g|0)==1)break j;f=J[f>>2];g=J[f+4>>2]-1|0;J[f+4>>2]=g;if((g|0)==-1)Ab[J[J[f>>2]+8>>2]](f);J[195395]=0;a=pa(3683,b|0,a|0,J[i+116>>2],J[i+112>>2],c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break i;Ic(e);Ic(k);xb=i+416|0;break b}b=Z()|0;break g}b=Z()|0;a=J[i+108>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ic(e);break c}B()}b=Z()|0}Ic(k);ba(b|0);B()}return a|0}function vi(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{e=J[b+68>>2];d=d>>>0>e>>>0?e:d; -if(d>>>0<=c>>>0)break a;h=J[a+68>>2];g=c>>>0>d>>>0?d:c;i=d-g|0;f=h+i|0;if(f>>>0>>0){H[a+60|0]=0;return}b:{if(!J[a+4>>2])break b;e=h;c:{if(!f)break c;if(f>>>0>2])break c;if(!yh(a,f))break b;e=J[a+68>>2]}d:{if(e>>>0>>0){j=P(f-e|0,20);if(j)Nb(J[a+80>>2]+P(e,20)|0,0,j);e:{if(!K[a+63|0])break e;e=J[a+68>>2];j=P(f-e|0,20);if(!j)break e;Nb(J[a+88>>2]+P(e,20)|0,0,j)}J[a+68>>2]=f;break d}J[a+68>>2]=f;if(f)break d;J[a+132>>2]=0;J[a+36>>2]=0}J[a+136>>2]=0}if(!K[a+60|0])break a;if(!h)J[a+36>>2]= -J[b+36>>2];f:{if(K[a+63|0]|!K[b+63|0])break f;J[a+72>>2]=0;I[a+62>>1]=256;J[a+84>>2]=J[a+80>>2];e=P(J[a+68>>2],20);if(!e)break f;Nb(J[a+88>>2],0,e)}e=J[b+40>>2];f=J[a+40>>2];g:{h:{if(!f){J[a+40>>2]=e;break h}if((e|0)!=(f|0))break g}e=J[b+44>>2];f=J[a+44>>2];i:{if(!f){J[a+44>>2]=e;break i}if((e|0)!=(f|0))break g}if(J[a+48>>2])break g;J[a+48>>2]=J[b+48>>2]}e=P(i,20);j:{if(!e)break j;f=P(h,20);i=P(g,20);Mb(f+J[a+80>>2]|0,i+J[b+80>>2]|0,e);if(!K[a+63|0])break j;Mb(f+J[a+88>>2]|0,i+J[b+88>>2]|0,e)}if(J[b+ -36>>2]!=1)break a;k:{if((0-J[b+132>>2]|0)==(g|0)|h)break k;J[a+132>>2]=0;l:{if(!c)break l;h=a+92|0;f=J[b+80>>2];c=0;while(1){g=g-1|0;i=J[f+P(g,20)>>2];e=c+1|0;J[a+132>>2]=e;J[h+(c<<2)>>2]=i;if(!g)break l;c=e;if(e>>>0<5)continue;break}}if(!J[b+132>>2])break k;h=a+92|0;f=b+92|0;c=0;while(1){e=J[a+132>>2];if(e>>>0>4)break k;g=J[f+(c<<2)>>2];J[a+132>>2]=e+1;J[h+(e<<2)>>2]=g;c=c+1|0;if(c>>>0>2])continue;break}}c=0;J[a+136>>2]=0;m:{if(M[b+68>>2]<=d>>>0)break m;e=J[b+80>>2];g=0;while(1){h=J[e+P(d, -20)>>2];J[a+136>>2]=g+1;J[((g<<2)+a|0)+112>>2]=h;d=d+1|0;if(d>>>0>=M[b+68>>2])break m;g=J[a+136>>2];if(g>>>0<=4)continue;break}}if(!J[b+136>>2])break a;while(1){d=J[a+136>>2];if(d>>>0>4)break a;e=J[((c<<2)+b|0)+112>>2];J[a+136>>2]=d+1;J[((d<<2)+a|0)+112>>2]=e;c=c+1|0;if(c>>>0>2])continue;break}}}function jea(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;m=xb-128|0;d=a;while(1){a:{e=d;d=J[(i<<2)+b>>2]+c|0;g=K[d+ -11|0];j=K[d|0];f=g+j|0;l=K[d+6|0];p=K[d+5|0];k=l+p|0;n=f-k|0;o=K[d+10|0];q=K[d+1|0];h=o+q|0;r=K[d+7|0];s=K[d+4|0];t=r+s|0;u=h-t|0;v=K[d+9|0];w=K[d+2|0];x=v+w|0;y=K[d+8|0];z=K[d+3|0];A=y+z|0;d=x-A|0;J[e+24>>2]=n-(u+d|0);f=f+k|0;k=h;h=x+A|0;J[e>>2]=(f+(t+(k+h|0)|0)|0)-1536;J[e+16>>2]=P(f-h|0,10033)+4096>>13;J[e+8>>2]=((u-d|0)+P(d+n|0,11190)|0)+4096>>13;f=s-r|0;n=q-o|0;k=P(f+n|0,4433);o=k+P(f,-15137)|0;d=j-g|0;g=z-y|0;j=p-l|0;f=w-v|0;J[e+12>>2]=((o+P(d-g|0,10703)|0)+P(j+f|0,-4433)|0)+4096>>13;l=P(d+ -g|0,7053);h=l+P(g,5946)|0;g=P(g+f|0,-1512);k=k+P(n,6270)|0;J[e+28>>2]=(((h+g|0)-k|0)+P(j,-9191)|0)+4096>>13;h=g;g=P(d+f|0,9191)+4096|0;J[e+20>>2]=((h+(g+P(f,-19165)|0)|0)-o|0)+P(j,7053)>>13;J[e+4>>2]=(k+(l+(g+P(d,-4758)|0)|0)|0)+P(j,1512)>>13;j=i-7|0;i=i+1|0;d=m;g=7;b:switch(j|0){case 0:continue;case 4:break a;default:break b}d=e+32|0;continue}break}while(1){b=J[d+64>>2];c=J[a+128>>2];m=J[a+192>>2];j=J[a+160>>2];e=m+j|0;f=J[d+96>>2];k=J[a>>2];i=f+k|0;l=e+i|0;p=J[d>>2];n=J[a+96>>2];o=p+n|0;q=J[d+32>> -2];h=J[a+64>>2];r=q+h|0;s=o+r|0;J[a+128>>2]=P(l-s|0,8918)- -8192>>14;i=i-e|0;t=J[a+32>>2];u=t+b|0;v=J[a+224>>2];w=v+c|0;x=u-w|0;e=r-o|0;J[a+192>>2]=P(i-(x+e|0)|0,7282)- -8192>>14;J[a+64>>2]=(P(x-e|0,7282)+P(e+i|0,9947)|0)- -8192>>14;J[a>>2]=P(l+(w+(s+u|0)|0)|0,7282)- -8192>>14;e=c-v|0;l=t-b|0;i=P(e+l|0,3941);b=k-f|0;c=n-p|0;f=i+P(e,-13455)|0;e=j-m|0;m=h-q|0;J[a+96>>2]=((P(b-c|0,9514)+f|0)+P(e+m|0,-3941)|0)- -8192>>14;j=P(b+c|0,6269);h=j+P(c,5285)|0;c=P(c+m|0,-1344);i=i+P(l,5573)|0;J[a+224>>2]=(((h+ -c|0)-i|0)+P(e,-8170)|0)- -8192>>14;h=c;c=P(b+m|0,8170)- -8192|0;J[a+160>>2]=((h+(c+P(m,-17036)|0)|0)-f|0)+P(e,6269)>>14;J[a+32>>2]=(i+(j+(c+P(b,-4229)|0)|0)|0)+P(e,1344)>>14;b=g;g=g-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function $d(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{c:{c=K[a|0]|K[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break b;case 0:break c;default:break a}}c=K[a+2|0]|K[a+3|0]<<8;if(!c)return;a=a+4|0;j=c<<8|c>>>8;h=j&65535;f=h&1;d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+ -3|0]<<24);d:{if((c|0)==256){c=a;break d}g=h&65534;c=a;while(1){i=d;d=K[c|0]|K[c+1|0]<<8;i=i|1<<(d>>>12|d<<4);d=K[c+2|0]|K[c+3|0]<<8;d=i|1<<(d>>>12|d<<4);c=c+4|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(f){c=K[c|0]|K[c+1|0]<<8;d=1<<(c>>>12|c<<4)|d}J[b>>2]=d;f=h&3;d=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);e:{if((j&65535)>>>0<4){c=a;break e}g=h&65532;e=0;c=a;while(1){d=1<>2]=d;c=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if((j&65535)>>>0>=4){e=h&65532;d=0;while(1){c=1<<((K[a|0]|K[a+1|0]<<8)>>>1)|c|1<<((K[a+2|0]|K[a+3|0]<<8)>>>1)|1<<((K[a+4|0]|K[a+5|0]<<8)>>>1)|1<<((K[a+6|0]|K[a+7|0]<<8)>>>1);a=a+8|0;d=d+4|0;if((e|0)!=(d|0))continue;break}}e=h&3;if(e){d=0;while(1){c=1<<((K[a|0]|K[a+1|0]<<8)>>>1)|c;a=a+2|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}J[b+8>>2]=c;return}c=K[a+2|0]|K[a+3|0]<<8;if(!c)return; -a=a+4|0;j=a+P((c<<8|c>>>8)&65535,6)|0;while(1){e=0;h=0;c=K[a+2|0]|K[a+3|0]<<8;c=(c<<8|c>>>8)&65535;d=K[a|0]|K[a+1|0]<<8;d=(d<<8|d>>>8)&65535;f=J[b>>2];if((f|0)!=-1){e=c>>>4|0;g=d>>>4|0;k=e-g|0;if(k>>>0<=30){i=f;f=1<>>0>1<>>0)}else e=-1;J[b>>2]=e;e=k>>>0<31}i=e;f=J[b+4>>2];if((f|0)!=-1){g=c-d|0;if(g>>>0<=30){h=1<>>0>1<>>0)}else e=-1;J[b+4>>2]=e;e=g>>>0<31}else e=h;f=J[b+8>>2];if((f|0)==-1)c=0;else{c=c>>>9|0;d=d>>>9|0;g=c-d|0;if(g>>>0<=30){d=1<>>0>1<>>0)}else c=-1;J[b+8>>2]=c;c=g>>>0<31}if(!(i|(e|c)))break a;a=a+6|0;if((j|0)!=(a|0))continue;break}}}function bw(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,r=0;i=xb-16|0;xb=i;d=J[a+12>>2];if(d)J[(J[a+20>>2]+(d<<4)|0)-4>>2]=b;k=J[a+24>>2];a:{if((k|0)<2)break a;o=k;while(1){p=o;g=J[a+32>>2];o=o-1|0;b=g+(o<<4)|0;l=J[b>>2];d=J[b+8>>2];j=p-2|0;while(1){b:{h=g+(j<<4)|0;b=J[h+8>>2];c:{h=J[h>>2];f=h>>>0>l>>>0?l:h;d:{e:{if(f>>>0<8){m=d;break e}m=(f-8>>> -3|0)+1|0;h=m+b|0;m=d+m|0;e=d;while(1){if(K[b|0]&K[e|0])break d;b=b+1|0;e=e+1|0;f=f-8|0;if(f>>>0>7)continue;break}b=h}if(!f|!(K[b|0]&K[m|0]&-256>>f))break c}b=j>>>0>>0?j:o;m=j>>>0>o>>>0?j:o;if(b>>>0>=m>>>0|m>>>0>=k>>>0)break b;n=g+(m<<4)|0;l=J[n>>2];f:{if(!l)break f;g=g+(b<<4)|0;b=J[g>>2];g:{if(l>>>0<=b>>>0){k=l+7|0;f=k>>>3|0;break g}d=J[g+4>>2];J[i>>2]=0;k=l+7|0;f=k>>>3|0;d=d+7>>>3|0;if(f>>>0>d>>>0){e=d;d=f+7&1073741816;q=g,r=Tb(c,1,e,d,J[g+8>>2],i),J[q+8>>2]=r;e=J[i>>2];if(e)break a;J[g+4>>2]= -d<<3}d=b+1|0;if(l-b&1){if(M[g>>2]>b>>>0){h=J[g+8>>2]+(b>>>3|0)|0;H[h|0]=K[h|0]&-129>>(b&7)}b=d}if((d|0)==(l|0))break g;while(1){if(M[g>>2]>b>>>0){d=J[g+8>>2]+(b>>>3|0)|0;H[d|0]=K[d|0]&-129>>(b&7)}h=b+1|0;if(h>>>0>2]){d=J[g+8>>2]+(h>>>3|0)|0;H[d|0]=K[d|0]&-129>>(h&7)}b=b+2|0;if((l|0)!=(b|0))continue;break}}if(k>>>0<8)break f;h=f-1|0;e=J[n+8>>2];b=J[g+8>>2];j=0;d=f&3;if(d)while(1){H[b|0]=K[e|0]|K[b|0];f=f-1|0;e=e+1|0;b=b+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}if(h>>>0<3)break f;while(1){H[b| -0]=K[e|0]|K[b|0];H[b+1|0]=K[e+1|0]|K[b+1|0];H[b+2|0]=K[e+2|0]|K[b+2|0];H[b+3|0]=K[e+3|0]|K[b+3|0];e=e+4|0;b=b+4|0;f=f-4|0;if(f)continue;break}}J[n>>2]=0;J[n+12>>2]=0;b=J[a+24>>2];d=b+(m^-1)|0;if((d|0)>0){b=J[n+12>>2];J[i+8>>2]=J[n+8>>2];J[i+12>>2]=b;b=J[n+4>>2];J[i>>2]=J[n>>2];J[i+4>>2]=b;b=d<<4;d=qc(n,n+16|0,b)+b|0;b=J[i+12>>2];J[d+8>>2]=J[i+8>>2];J[d+12>>2]=b;b=J[i+4>>2];J[d>>2]=J[i>>2];J[d+4>>2]=b;b=J[a+24>>2]}k=b-1|0;J[a+24>>2]=k;break b}b=(j|0)>0;j=j-1|0;if(b)continue}break}if((p|0)>2)continue; -break}e=0}xb=i+16|0;return e}function eea(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;h=a;while(1){d=J[(p<<2)+b>>2]+c|0;i=K[d+9|0];k=K[d+6|0];f=i+k|0;n=K[d+14|0];j=K[d+1|0];g=n+j|0;e=f+g|0;m=K[d+13|0];o=K[d+2|0];l=m+o|0;r=K[d+10|0];s=K[d+5|0];q=r+s|0;t=l+q|0;u=K[d+8|0];v=K[d+7|0];w=u+v|0;x=K[d+15|0];y=K[d|0];z=x+y|0;A=w+z|0;B=K[d+11|0];C=K[d+4|0];D=B+C|0;E=K[d+12|0];F=K[d+3|0];d=E+F|0;G=D+d|0; -J[h+16>>2]=(P(e-t|0,4433)+P(A-G|0,10703)|0)+1024>>11;J[h>>2]=((e+(t+G|0)|0)+A<<2)+-8192;e=z-w|0;l=l-q|0;q=d-D|0;f=g-f|0;d=(P(e-l|0,11363)+P(q-f|0,2260)|0)+1024|0;J[h+24>>2]=(d+P(q,-8697)|0)+P(e,-1730)>>11;J[h+8>>2]=(d+P(l,17799)|0)+P(f,11893)>>11;d=s-r|0;f=C-B|0;g=F-E|0;e=o-m|0;m=(P(d-f|0,3363)+P(g+e|0,-11086)|0)+1024|0;i=k-i|0;k=j-n|0;n=P(i+f|0,-10217)+P(k+g|0,-5461)|0;o=n+((m+P(g,8728)|0)+P(f,17760)|0)|0;j=f;f=v-u|0;l=g;g=y-x|0;j=P(j-f|0,7350)+P(l+g|0,8956)|0;J[h+28>>2]=o+j>>11;l=(m+P(e,-9222)| -0)+P(d,10055)|0;m=P(i-d|0,11529)+P(e+k|0,1136)|0;d=P(d+f|0,5461)+P(e+g|0,10217)|0;J[h+20>>2]=(l+m|0)+d>>11;e=P(i-f|0,3363)+P(g+k|0,11086)|0;J[h+12>>2]=(e+(m+((n+P(k,589)|0)+P(i,-13631)|0)|0)|0)+1024>>11;J[h+4>>2]=(j+(e+((d+P(g,-18730)|0)+P(f,6387)|0)|0)|0)+1024>>11;h=h+32|0;p=p+1|0;if((p|0)!=8)continue;break}b=7;while(1){h=J[a+128>>2];d=J[a+96>>2];c=h+d|0;f=J[a+224>>2];g=J[a>>2];e=f+g|0;i=c+e|0;k=J[a+160>>2];p=J[a+64>>2];m=k+p|0;n=J[a+192>>2];j=J[a+32>>2];o=n+j|0;l=m+o|0;J[a+128>>2]=(i-l|0)+4>>3; -J[a>>2]=(i+l|0)+4>>3;e=e-c|0;i=o-m|0;c=P(e+i|0,4433)+32768|0;J[a+192>>2]=c+P(i,-15137)>>16;J[a+64>>2]=c+P(e,6270)>>16;c=d-h|0;h=g-f|0;d=P(c+h|0,-7373)+32768|0;f=j-n|0;i=f+c|0;g=p-k|0;k=g+h|0;e=P(i+k|0,9633);j=d+P(c,2446)|0;c=e+P(i,-16069)|0;J[a+224>>2]=j+c>>16;e=e+P(k,-3196)|0;j=P(g,16819);g=P(f+g|0,-20995)+32768|0;J[a+160>>2]=e+(j+g|0)>>16;J[a+96>>2]=c+(g+P(f,25172)|0)>>16;J[a+32>>2]=e+(d+P(h,12299)|0)>>16;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function US(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;g=xb-176|0;xb=g;a=g+172|0;h=J[d+28>>2];J[a>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[195395]=0;n=_(3535,a|0)|0;a=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{if((a|0)!=1){if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;if(a){if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;k=K[a|0];J[195395]=0;h=ca(3669,n|0,45)|0;a=J[195395];J[195395]=0;if((a|0)==1)break g;o=(h&255)==(k|0)}l=Rc(g+152|0);i=Rc(g+140|0);j=Rc(g+128|0);J[195395]=0;Ca(3708,c|0,o|0,g+172|0,g+168|0,g+167| -0,g+166|0,l|0,i|0,j|0,g+124|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[g+4>>2]=627;m=Id(g+8|0,0,g+4|0);c=g+16|0;if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;h:{if((a|0)>J[g+124>>2]){if(K[f+11|0]>>>7|0)h=J[f+4>>2];else h=K[f+11|0]&127;k=J[g+124>>2];if(K[i+11|0]>>>7|0)a=J[i+4>>2];else a=K[i+11|0]&127;if(K[j+11|0]>>>7|0)p=J[j+4>>2];else p=K[j+11|0]&127;a=(k+(a+(p+(h-k<<1)|0)|0)|0)+1|0;break h}k=J[g+124>>2];if(K[j+11|0]>>>7|0)a=J[j+4>>2];else a=K[j+11|0]&127;if(K[i+11|0]>>>7|0)h=J[i+4>>2]; -else h=K[i+11|0]&127;a=(k+(a+h|0)|0)+2|0}if(a>>>0<101)break e;ge(m,Qb(a));c=J[m>>2];if(c)break e;J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;B()}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break c}k=J[d+4>>2];if(K[f+11|0]>>>7|0)h=J[f>>2];else h=f;if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;if(K[f+11|0]>>>7|0)f=J[f+4>>2];else f=K[f+11|0]&127;J[195395]=0;Ea(3709,c|0,g+4|0,g|0,k|0,h|0,a+f|0,n|0,o|0,g+168|0,H[g+167|0],H[g+166|0],l|0,i|0,j|0,J[g+124>>2]);a=J[195395];J[195395]=0;if((a|0)!=1){J[195395]= -0;b=pa(3673,b|0,c|0,J[g+4>>2],J[g>>2],d|0,e|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)break a}}f=Z()|0;Ic(m)}Yb(j);Yb(i);Yb(l)}b=J[g+172>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)Ab[J[J[b>>2]+8>>2]](b);ba(f|0);B()}Ic(m);Yb(j);Yb(i);Yb(l);c=J[g+172>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)Ab[J[J[c>>2]+8>>2]](c);xb=g+176|0;return b|0}function sha(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;a:{e=J[a+444>>2];if(!J[e+48>>2]){if(!(Ab[J[J[a+448>> -2]+12>>2]](a,J[((J[e+64>>2]<<2)+e|0)+56>>2])|0))break a;J[e+48>>2]=1;J[e+76>>2]=J[e+76>>2]+1}b:switch(J[e+68>>2]){case 2:Ab[J[J[a+452>>2]+4>>2]](a,J[((J[e+64>>2]<<2)+e|0)+56>>2],e+52|0,J[e+72>>2],b,c,d);if(M[e+52>>2]>2])break a;J[e+68>>2]=0;if(M[c>>2]>=d>>>0)break a;case 0:J[e+52>>2]=0;l=J[a+324>>2];J[e+72>>2]=l-1;c:{if(J[e+76>>2]!=J[a+328>>2])break c;q=J[a+36>>2];if((q|0)<=0)break c;n=J[a+444>>2];r=(J[n+64>>2]<<2)+n|0;i=J[a+216>>2];while(1){f=P(J[i+40>>2],J[i+12>>2]);g=M[i+48>>2]%(f>>>0)| -0;g=g?g:f;f=(f|0)/(l|0)|0;if(!j)J[n+72>>2]=((g-1|0)/(f|0)|0)+1;d:{if((f|0)<=0)break d;f=f<<1;h=(f|0)<=1?1:f;p=h&7;f=J[J[r+56>>2]+(j<<2)>>2]+(g<<2)|0;g=J[f-4>>2];o=0;m=0;if(h>>>0>=8){s=h&2147483640;k=0;while(1){h=m<<2;J[h+f>>2]=g;J[f+(h|4)>>2]=g;J[f+(h|8)>>2]=g;J[f+(h|12)>>2]=g;J[f+(h|16)>>2]=g;J[f+(h|20)>>2]=g;J[f+(h|24)>>2]=g;J[f+(h|28)>>2]=g;m=m+8|0;k=k+8|0;if((s|0)!=(k|0))continue;break}}if(!p)break d;while(1){J[f+(m<<2)>>2]=g;m=m+1|0;o=o+1|0;if((p|0)!=(o|0))continue;break}}i=i+88|0;j=j+1|0;if((q| -0)!=(j|0))continue;break}}J[e+68>>2]=1;break;case 1:break b;default:break a}Ab[J[J[a+452>>2]+4>>2]](a,J[((J[e+64>>2]<<2)+e|0)+56>>2],e+52|0,J[e+72>>2],b,c,d);if(M[e+52>>2]>2])break a;b=J[a+324>>2];e:{if(J[e+76>>2]!=1)break e;h=J[a+36>>2];if((h|0)<=0)break e;m=b+2|0;n=b+1|0;g=J[a+444>>2];i=J[a+216>>2];j=0;while(1){c=(P(J[i+40>>2],J[i+12>>2])|0)/(b|0)|0;if((c|0)>0){a=j<<2;d=J[a+J[g+60>>2]>>2];f=J[a+J[g+56>>2]>>2];p=P(c,m);o=P(c,n);a=0;while(1){k=a-c<<2;l=a+o<<2;J[k+f>>2]=J[l+f>>2];J[d+k>>2]= -J[d+l>>2];k=a+p<<2;l=a<<2;J[k+f>>2]=J[l+f>>2];J[d+k>>2]=J[d+l>>2];a=a+1|0;if((c|0)!=(a|0))continue;break}}i=i+88|0;j=j+1|0;if((h|0)!=(j|0))continue;break}}J[e+48>>2]=0;J[e+68>>2]=2;J[e+72>>2]=b+2;J[e+52>>2]=b+1;J[e+64>>2]=J[e+64>>2]^1}}function oh(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,r=0,s=0,t=0,u=0,v=0;d=a&65535;f=a>>>16|0;a:{if((c|0)==1){a=K[b|0]+d|0;a=a>>>0>65520?a-65521|0:a;b=a+f|0;c=b<<16;a=(b>>>0>65520?c+983040|0:c)|a;break a}if(b){b:{c:{d:{e:{if(c>>>0>=16){f:{if(c>>> -0>5551){while(1){c=c-5552|0;e=347;a=b;while(1){g=K[a|0]+d|0;i=g+K[a+1|0]|0;j=i+K[a+2|0]|0;k=j+K[a+3|0]|0;l=k+K[a+4|0]|0;m=l+K[a+5|0]|0;n=m+K[a+6|0]|0;o=n+K[a+7|0]|0;p=o+K[a+8|0]|0;q=p+K[a+9|0]|0;r=q+K[a+10|0]|0;s=r+K[a+11|0]|0;t=s+K[a+12|0]|0;u=t+K[a+13|0]|0;v=u+K[a+14|0]|0;d=v+K[a+15|0]|0;f=d+(v+(u+(t+(s+(r+(q+(p+(o+(n+(m+(l+(k+(j+(i+(f+g|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;a=a+16|0;e=e-1|0;if(e)continue;break}f=(f>>>0)%65521|0;d=(d>>>0)%65521|0;b=b+5552|0;if(c>>>0>5551)continue;break}if(!c)break b; -if(c>>>0<16)break f}while(1){a=K[b|0]+d|0;e=a+K[b+1|0]|0;g=e+K[b+2|0]|0;i=g+K[b+3|0]|0;j=i+K[b+4|0]|0;k=j+K[b+5|0]|0;l=k+K[b+6|0]|0;m=l+K[b+7|0]|0;n=m+K[b+8|0]|0;o=n+K[b+9|0]|0;p=o+K[b+10|0]|0;q=p+K[b+11|0]|0;r=q+K[b+12|0]|0;s=r+K[b+13|0]|0;t=s+K[b+14|0]|0;d=t+K[b+15|0]|0;f=d+(t+(s+(r+(q+(p+(o+(n+(m+(l+(k+(j+(i+(g+(e+(a+f|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;b=b+16|0;c=c-16|0;if(c>>>0>15)continue;break}if(!c)break c}g=c&3;if(g)break e;a=c;break d}g:{if(!c)break g;g=c&3;h:{if(!g){a=c;break h}a= -c;e=b;while(1){a=a-1|0;d=K[e|0]+d|0;f=f+d|0;b=e+1|0;e=b;h=h+1|0;if((g|0)!=(h|0))continue;break}}if(c>>>0<4)break g;while(1){c=K[b|0]+d|0;e=c+K[b+1|0]|0;h=e+K[b+2|0]|0;d=h+K[b+3|0]|0;f=d+(h+(e+(c+f|0)|0)|0)|0;b=b+4|0;a=a-4|0;if(a)continue;break}}a=(f>>>0)%65521<<16|(d>>>0>65520?d-65521|0:d);break a}a=c;e=b;while(1){a=a-1|0;d=K[e|0]+d|0;f=f+d|0;b=e+1|0;e=b;h=h+1|0;if((g|0)!=(h|0))continue;break}}if(c>>>0<4)break c;while(1){c=K[b|0]+d|0;e=c+K[b+1|0]|0;h=e+K[b+2|0]|0;d=h+K[b+3|0]|0;f=d+(h+(e+(c+f|0)| -0)|0)|0;b=b+4|0;a=a-4|0;if(a)continue;break}}f=(f>>>0)%65521|0;d=(d>>>0)%65521|0}a=f<<16|d}else a=1}return a}function $da(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;a=Nb(a,0,256);d=J[b>>2]+c|0;e=K[d|0];f=K[d+5|0];h=e-f|0;j=K[d+1|0];i=K[d+4|0];g=j-i|0;k=K[d+2|0];l=K[d+3|0];d=k-l|0;J[a+12>>2]=h-(g+d|0)<<3;e=e+f|0;f=k+l|0;J[a+8>>2]=P(e-f|0,10033)+512>>10;e=e+f|0;f=i+j|0;J[a>>2]=(e+f<<3)-6144;J[a+16>>2]=P(e-(f<<1)|0,5793)+512>>10;e=d-g<<3;d=P(d+h|0,2998)+512>>10;J[a+20>>2]=e+ -d;J[a+4>>2]=d+(g+h<<3);d=J[b+4>>2]+c|0;e=K[d|0];f=K[d+5|0];h=e-f|0;j=K[d+1|0];i=K[d+4|0];g=j-i|0;k=K[d+2|0];l=K[d+3|0];d=k-l|0;J[a+44>>2]=h-(g+d|0)<<3;e=e+f|0;f=k+l|0;J[a+40>>2]=P(e-f|0,10033)+512>>10;f=e+f|0;j=i+j|0;e=(f+j<<3)-6144|0;J[a+32>>2]=e;J[a+48>>2]=P(f-(j<<1)|0,5793)+512>>10;f=d-g<<3;d=P(d+h|0,2998)+512>>10;J[a+52>>2]=f+d;d=d+(g+h<<3)|0;J[a+36>>2]=d;b=J[b+8>>2]+c|0;f=K[b+2|0];j=K[b+3|0];c=f-j|0;i=K[b|0];k=K[b+5|0];h=i-k|0;g=P(c+h|0,2998)+512>>10;l=K[b+1|0];m=K[b+4|0];b=l-m|0;J[a+84>>2]= -g+(c-b<<3);f=f+j|0;j=i+k|0;i=f+j|0;k=l+m|0;J[a+80>>2]=P(i-(k<<1)|0,5793)+512>>10;l=J[a>>2];i=(i+k<<3)-6144|0;J[a+32>>2]=P(l-i|0,17837)+16384>>15;i=i+l|0;J[a+64>>2]=P(i-(e<<1)|0,10298)+16384>>15;J[a>>2]=P(e+i|0,14564)+16384>>15;e=J[a+4>>2];g=g+(b+h<<3)|0;J[a+36>>2]=P(e-g|0,17837)+16384>>15;g=e+g|0;J[a+68>>2]=P(g-(d<<1)|0,10298)+16384>>15;J[a+4>>2]=P(d+g|0,14564)+16384>>15;d=J[a+40>>2];g=J[a+8>>2];e=P(j-f|0,10033)+512>>10;J[a+40>>2]=P(g-e|0,17837)+16384>>15;g=e+g|0;J[a+72>>2]=P(g-(d<<1)|0,10298)+16384>> -15;J[a+8>>2]=P(d+g|0,14564)+16384>>15;b=h-(b+c|0)<<3;c=J[a+12>>2];d=b+c|0;h=J[a+44>>2];J[a+76>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+12>>2]=P(d+h|0,14564)+16384>>15;J[a+44>>2]=P(c-b|0,17837)+16384>>15;b=J[a+80>>2];c=J[a+16>>2];d=b+c|0;h=J[a+48>>2];J[a+80>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+16>>2]=P(d+h|0,14564)+16384>>15;J[a+48>>2]=P(c-b|0,17837)+16384>>15;b=J[a+84>>2];c=J[a+20>>2];d=b+c|0;h=J[a+52>>2];J[a+84>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+20>>2]=P(d+h|0,14564)+16384>>15;J[a+52>>2]=P(c-b| -0,17837)+16384>>15}function xo(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=J[b+80>>2];e=K[a+2|0]|K[a+3|0]<<8;N[c>>2]=N[k+64>>2]*Q((e<<8|e>>>8)<<16>>16);e=K[a+4|0]|K[a+5|0]<<8;N[d>>2]=N[k+68>>2]*Q((e<<8|e>>>8)<<16>>16);a:{if(!(J[k+88>>2]|J[k+104>>2]))break a;g=J[b+104>>2];h=a+6|0;i=J[b+96>>2];if(g>>>0>>0)break a;f=J[b+100>>2];if(f-h>>>0<2)break a;e=K[h|0]|K[h+1|0]<<8;b:{if(!e)break b;e=((e<<8|e>>>8)&65535)+a|0;j=e+4|0;c:{if(g>>>0>>0|f-j>>>0<2)break c;j=K[j|0]|K[j+1|0]<<8;j=(j<<8|j>>>8)&65535; -if(j-1>>>0>=3){if((j|0)!=32768)break b;if(g>>>0>>0|f-e>>>0<=5)break c;break b}if(g>>>0>>0)break c;i=6;g=f-e|0;if(g>>>0<6)break c;f=K[e|0]|K[e+1|0]<<8;f=(f<<8|f>>>8)&65535;e=K[e+2|0]|K[e+3|0]<<8;e=(e<<8|e>>>8)&65535;if(f>>>0<=e>>>0){i=(e-f>>>4-j<<1)+8|0;if(g>>>0>>0)break c}e=J[b+108>>2]-i|0;J[b+108>>2]=e;if((e|0)>0)break b}e=J[b+124>>2];if(e>>>0>31)break a;J[b+124>>2]=e+1;if(!K[b+120|0])break a;H[h|0]=0;H[h+1|0]=0}e=K[h|0]|K[h+1|0]<<8;if(e)e=((e<<8|e>>>8)&65535)+a|0;else e=169776;e=gt(e, -k,J[b+152>>2],J[b+156>>2]);N[c>>2]=N[c>>2]+Q(e|0)}d:{if(!(J[k+92>>2]|J[k+104>>2]))break d;i=J[b+104>>2];e=a+8|0;h=J[b+96>>2];if(i>>>0>>0)break d;g=J[b+100>>2];if(g-e>>>0<2)break d;c=K[e|0]|K[e+1|0]<<8;e:{if(!c)break e;c=((c<<8|c>>>8)&65535)+a|0;f=c+4|0;f:{if(i>>>0>>0|g-f>>>0<2)break f;f=K[f|0]|K[f+1|0]<<8;f=(f<<8|f>>>8)&65535;if(f-1>>>0>=3){if((f|0)!=32768)break e;if(i>>>0>>0|g-c>>>0<=5)break f;break e}if(i>>>0>>0)break f;h=6;i=g-c|0;if(i>>>0<6)break f;g=K[c|0]|K[c+1|0]<<8;g=(g<< -8|g>>>8)&65535;c=K[c+2|0]|K[c+3|0]<<8;c=(c<<8|c>>>8)&65535;if(g>>>0<=c>>>0){h=(c-g>>>4-f<<1)+8|0;if(i>>>0>>0)break f}c=J[b+108>>2]-h|0;J[b+108>>2]=c;if((c|0)>0)break e}c=J[b+124>>2];if(c>>>0>31)break d;J[b+124>>2]=c+1;if(!K[b+120|0])break d;H[e|0]=0;H[e+1|0]=0}c=K[e|0]|K[e+1|0]<<8;if(c)a=((c<<8|c>>>8)&65535)+a|0;else a=169776;a=ft(a,k,J[b+152>>2],J[b+156>>2]);N[d>>2]=N[d>>2]+Q(a|0)}}function XE(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,p=0,q=0,r=0,s=0;a:{b:{f=f-16|0;if(f){if((f|0)== -16)break b;break a}i=J[a+20>>2];if((i|0)<=0)break a;h=J[a+16>>2];if((h|0)<=0)break a;f=(((((((((((((((c&1)+(c>>>1&1)|0)+(c>>>2&1)|0)+(c>>>3&1)|0)+(c>>>4&1)|0)+(c>>>5&1)|0)+(c>>>6&1)|0)+(c>>>7&1)|0)+(c>>>8&1)|0)+(c>>>9&1)|0)+(c>>>10&1)|0)+(c>>>11&1)|0)+(c>>>12&1)|0)+(c>>>13&1)|0)+(c>>>14&1)|0)+(c>>>15&1)|0;q=(f+((((((((((((((((d&1)+(d>>>1&1)|0)+(d>>>2&1)|0)+(d>>>3&1)|0)+(d>>>4&1)|0)+(d>>>5&1)|0)+(d>>>6&1)|0)+(d>>>7&1)|0)+(d>>>8&1)|0)+(d>>>9&1)|0)+(d>>>10&1)|0)+(d>>>11&1)|0)+(d>>>12&1)|0)+(d>>>13&1)| -0)+(d>>>14&1)|0)+(d>>>15&1)|0)|0)-8|0;r=q+((((((((((((((((e>>>1&1)+(e&1)|0)+(e>>>2&1)|0)+(e>>>3&1)|0)+(e>>>4&1)|0)+(e>>>5&1)|0)+(e>>>6&1)|0)+(e>>>7&1)|0)+(e>>>8&1)|0)+(e>>>9&1)|0)+(e>>>10&1)|0)+(e>>>11&1)|0)+(e>>>12&1)|0)+(e>>>13&1)|0)+(e>>>14&1)|0)+(e>>>15&1)|0)|0;s=8-f|0;j=(h+1|0)/2<<2;k=J[a+56>>2];while(1){h=i;i=h-1|0;f=J[a+16>>2];if((f|0)>0){l=P(i,j);m=k+P(J[a+52>>2],i)|0;while(1){n=f-1|0;g=l+(n<<1)|0;o=K[(g|1)+b|0];p=m+P(n,3)|0;g=K[b+g|0];H[p|0]=(g&e)<>>r;H[p+1|0]= -(d&g)>>>q;g=f>>>0>1;f=n;if(g)continue;break}}if((h|0)>=2)continue;break}break a}h=J[a+20>>2];if((h|0)<=0)break a;f=J[a+16>>2];if((f|0)<=0)break a;i=f<<2;n=J[a+56>>2];j=(((c>>>0>255)+b|0)+(c>>>0>65535)|0)+(c>>>0>16777215)|0;k=(((d>>>0>255)+b|0)+(d>>>0>65535)|0)+(d>>>0>16777215)|0;l=(((e>>>0>255)+b|0)+(e>>>0>65535)|0)+(e>>>0>16777215)|0;while(1){b=h;h=h-1|0;c=J[a+16>>2];c:{if((c|0)<=0)break c;m=P(h,i);o=n+P(J[a+52>>2],h)|0;f=c;if(c&1){f=c-1|0;e=o+P(f,3)|0;d=m+(f<<2)|0;H[e|0]=K[d+l|0];H[e+1|0]=K[d+k| -0];H[e+2|0]=K[d+j|0]}if((c|0)==1)break c;while(1){d=o+P(f,3)|0;g=d-3|0;c=f-1|0;e=m+(c<<2)|0;H[g|0]=K[e+l|0];H[g+1|0]=K[e+k|0];H[g+2|0]=K[e+j|0];e=d-6|0;f=f-2|0;d=m+(f<<2)|0;H[e|0]=K[d+l|0];H[e+1|0]=K[d+k|0];H[e+2|0]=K[d+j|0];if(c>>>0>1)continue;break}}if((b|0)>=2)continue;break}}}function Yi(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=xb-16|0;xb=g;a:{b:{c:{d:{f=J[a+8>>2];if(M[a+4>>2]<=f+3>>>0)break d;e=J[a+20>>2];e:{if(e){d=g+12|0;if((Ab[e|0](a,f,d,4)|0)!=4)break d;f=J[a+8>>2];break e}d=J[a>>2];if(!d)break c; -d=d+f|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break b}e=85;break a}h=0}d=f+4|0;J[a+8>>2]=d;e=2;if((b|0)!=(h|0))break a;f:{g:{h:{if(M[a+4>>2]>f+7>>>0){b=J[a+20>>2];if(!b){J[a+8>>2]=f+8;f=f+24|0;break g}if((Ab[b|0](a,d,g+12|0,4)|0)==4)break h}e=85;break a}d=J[a+8>>2];J[a+8>>2]=d+4;f=d+20|0;b=J[a+20>>2];if(!b)break g;e=85;if(Ab[b|0](a,f,0,0)|0)break a;b=J[a+4>>2];break f}e=85;b=J[a+4>>2];if(f>>>0>b>>>0)break a}J[a+8>>2]=f;i:{j:{k:{if(d+21>>>0>=b>>> -0)break k;e=J[a+20>>2];if(e){b=g+12|0;if((Ab[e|0](a,f,b,2)|0)!=2)break k;f=J[a+8>>2];break i}b=J[a>>2];if(!b)break j;b=b+f|0;break i}e=85;break a}J[a+8>>2]=d+22;e=2;break a}e=2;b=K[b|0]|K[b+1|0]<<8;J[a+8>>2]=f+2;h=(b<<8|b>>>8)&65535;if(!h)break a;b=0;while(1){l:{e=J[a+8>>2];if(M[a+4>>2]<=e+3>>>0)break l;m:{n:{o:{p:{f=J[a+20>>2];q:{if(f){d=g+12|0;if((Ab[f|0](a,e,d,4)|0)!=4)break l;e=J[a+8>>2];break q}d=J[a>>2];if(!d)break p;d=d+e|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=e+4|0;J[a+8>>2]= -f;if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))==2){J[g+8>>2]=0;r:{s:{t:{if(M[a+4>>2]<=e+7>>>0)break t;e=J[a+20>>2];u:{if(e){d=g+12|0;if((Ab[e|0](a,f,d,4)|0)!=4)break t;f=J[a+8>>2];break u}d=J[a>>2];if(!d)break s;d=d+f|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break r}J[g+8>>2]=85;break m}d=0}J[a+8>>2]=f+4;md(a,g+8|0);if(J[g+8>>2])break m;J[c>>2]=d;e=0;break a}e=e+12|0;d=J[a+20>>2];if(!d)break o;if(!(Ab[d|0](a,e,0,0)|0))break n;e=85;break a}J[a+8>> -2]=e+4;e=e+12|0}if(e>>>0<=M[a+4>>2])break n;e=85;break a}J[a+8>>2]=e;J[g+8>>2]=0}e=2;b=b+1|0;if((h|0)!=(b|0))continue;break a}break}e=85}xb=g+16|0;return e}function iK(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;f=xb-16|0;xb=f;j=J[b+16>>2];k=J[b+8>>2];Ab[J[b+28>>2]](b);a:{b:{c:{d:{c=J[b>>2];if(c>>>0>>0){J[b>>2]=c+1;if(K[c|0]==91)break d}c=3;J[f+12>>2]=3;break c}Ab[J[b+28>>2]](b);e:{f:{d=J[b>>2];g:{if(k>>>0<=d>>>0)break g;while(1){h:{i:{j:{c=K[d| -0];if((c|0)!=60){if((c|0)!=93)break j;J[b>>2]=d+1;break b}if(l?0:g)break e;Ab[J[b+32>>2]](b);if(J[b+12>>2])break b;c=J[b>>2];i=(c+(d^-1)|0)/2|0;if(c-d>>>0<=2)break g;g=Tb(j,1,p,i,g,f+12|0);c=J[f+12>>2];if(c)break c;J[b>>2]=d;l=1;Ab[J[b+44>>2]](b,g,i,f+8|0,1)|0;h=J[f+8>>2];break i}if(c-48>>>0>9){i=p;break i}if(l)break g;h=Ab[J[b+36>>2]](b)|0;if((h|0)<0)break e;Ab[J[b+32>>2]](b);if(J[b+12>>2])break a;c=J[b>>2];g=c+1|0;if(k-c>>>0<=h>>>0)break e;J[b>>2]=(c+h|0)+1;l=0;break h}if(!g)break f;p=i}k:{l:{if(!(h& -1)){c=h;break l}c=h-1|0;if(K[g+c|0])break k}h=c;if(!c)break g}i=k-J[b>>2]|0;n=0;while(1){m:{n:{o:switch(e|0){case 0:e=0;if((m|0)<12)break n;c=J[a+496>>2];o=(K[c+4|0]<<4)+K[c+5|0]|0;d=o<<4|12;J[a+500>>2]=d;if((d|0)>(i|0))break g;s=a,t=Tb(j,1,12,d,c,f+12|0),J[s+496>>2]=t;c=J[f+12>>2];if(c)break c;case 1:e=1;c=J[a+500>>2];if((m|0)<(c|0))break n;q=J[a+496>>2];if(o){r=q+12|0;d=0;while(1){e=(d<<4)+r|0;e=K[e+12|0]|K[e+13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(e>>> -0>i>>>0|(i-e|0)<(c|0))break g;c=(e+3&-4)+c|0;J[a+500>>2]=c;d=d+1|0;if((o|0)!=(d|0))continue;break}}s=a,t=Tb(j,1,o<<4|12,c+1|0,q,f+12|0),J[s+496>>2]=t;c=J[f+12>>2];if(c)break c;break;case 2:break o;default:break m}e=2;if(J[a+500>>2]<=(m|0))break g}H[J[a+496>>2]+m|0]=K[g+n|0];m=m+1|0}n=n+1|0;if((n|0)!=(h|0))continue;break}Ab[J[b+28>>2]](b);d=J[b>>2];if(k>>>0>d>>>0)continue;break}}c=3;J[f+12>>2]=3;break c}c=3;J[f+12>>2]=3;g=0;break c}c=3;J[f+12>>2]=3;l=0}J[b+12>>2]=c}if(!l)break a;if(g)Ab[J[j+8>>2]](j, -g)}xb=f+16|0}function Ad(a,b,c){var d=0,e=0;if(b){d=a^-1;a:{if(!c|!(b&3))break a;d=J[(((K[b|0]^d)&255)<<2)+216384>>2]^d>>>8;e=c-1|0;a=b+1|0;if(!(!e|!(a&3))){d=J[(((K[b+1|0]^d)&255)<<2)+216384>>2]^d>>>8;e=c-2|0;a=b+2|0;if(!(!e|!(a&3))){d=J[(((K[b+2|0]^d)&255)<<2)+216384>>2]^d>>>8;e=c-3|0;a=b+3|0;if(!(!e|!(a&3))){d=J[(((K[b+3|0]^d)&255)<<2)+216384>>2]^d>>>8;c=c-4|0;b=b+4|0;break a}b=a;c=e;break a}b=a;c=e;break a}b=a;c=e}if(c>>>0>31)while(1){a=J[b>>2]^d;a=J[b+4>>2]^(J[(a>>>6&1020)+218432>>2]^J[((a&255)<< -2)+219456>>2]^J[(a>>>14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2]);a=J[b+8>>2]^(J[(a>>>6&1020)+218432>>2]^J[((a&255)<<2)+219456>>2]^J[(a>>>14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2]);a=J[b+12>>2]^(J[(a>>>6&1020)+218432>>2]^J[((a&255)<<2)+219456>>2]^J[(a>>>14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2]);a=J[b+16>>2]^(J[(a>>>6&1020)+218432>>2]^J[((a&255)<<2)+219456>>2]^J[(a>>>14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2]);a=J[b+20>>2]^(J[(a>>>6&1020)+218432>>2]^J[((a&255)<<2)+219456>>2]^J[(a>>> -14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2]);a=J[b+24>>2]^(J[(a>>>6&1020)+218432>>2]^J[((a&255)<<2)+219456>>2]^J[(a>>>14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2]);a=J[b+28>>2]^(J[(a>>>6&1020)+218432>>2]^J[((a&255)<<2)+219456>>2]^J[(a>>>14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2]);d=J[(a>>>6&1020)+218432>>2]^J[((a&255)<<2)+219456>>2]^J[(a>>>14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2];b=b+32|0;c=c-32|0;if(c>>>0>31)continue;break}if(c>>>0>3)while(1){a=J[b>>2]^d;d=J[(a>>>6&1020)+218432>>2]^ -J[((a&255)<<2)+219456>>2]^J[(a>>>14&1020)+217408>>2]^J[(a>>>22&1020)+216384>>2];b=b+4|0;c=c-4|0;if(c>>>0>3)continue;break}b:{if(!c)break b;if(c&1){d=J[(((K[b|0]^d)&255)<<2)+216384>>2]^d>>>8;b=b+1|0;a=c-1|0}else a=c;if((c|0)==1)break b;while(1){c=J[(((K[b|0]^d)&255)<<2)+216384>>2]^d>>>8;d=J[(((c^K[b+1|0])&255)<<2)+216384>>2]^c>>>8;b=b+2|0;a=a-2|0;if(a)continue;break}}a=d^-1}else a=0;return a}function Jea(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;h=J[a+420>> -2];if(J[a+236>>2]){e=J[h+68>>2];if(!e){Il(a,J[h+72>>2]);e=J[a+236>>2];J[h+72>>2]=J[h+72>>2]+1&7}J[h+68>>2]=e-1}if(J[a+316>>2]>0){o=J[a+380>>2];r=h+204|0;while(1){g=p<<2;c=J[(g+a|0)+320>>2]<<2;k=J[(c+a|0)+292>>2];m=J[k+20>>2];l=(m<<2)+h|0;f=c+h|0;i=J[l+76>>2]+J[f+52>>2]|0;n=J[b+g>>2];c=I[n>>1];d=c-J[f+36>>2]|0;a:{if(!d){Qc(a,i,0);J[f+52>>2]=0;break a}J[f+36>>2]=c;Qc(a,i,1);e=0;b:{if((d|0)>0){j=2;g=0;c=4;break b}d=0-d|0;j=3;g=1;c=8}Qc(a,i+1|0,g);J[f+52>>2]=c;c=i+j|0;g=d-1|0;c:{if(!g)break c;e=1;Qc(a, -c,1);c=J[l+76>>2]+20|0;d=g;if((d|0)==1)break c;while(1){Qc(a,c,1);c=c+1|0;e=e<<1;l=d>>>0>3;d=d>>>1|0;if(l)continue;break}}Qc(a,c,0);d=a+m|0;d:{if(1<>1<=(e|0)){if(1<>1>=(e|0))break d;d=J[f+52>>2]+8|0}else d=0;J[f+52>>2]=d}if(e>>>0<2)break a;c=c+14|0;while(1){e=e>>1;Qc(a,c,(g&e)!=0);if(e>>>0>1)continue;break}}c=1;q=J[k+24>>2];d=J[a+384>>2];j=d;e:{if((d|0)<=0)break e;while(1){if(!L[(J[(j<<2)+o>>2]<<1)+n>>1]){f=(j|0)>1;j=j-1|0;if(f)continue;break e}break}l=a+q|0;m=(q<<2)+h|0;while(1){e= -(J[m+140>>2]+P(c,3)|0)-3|0;Qc(a,e,0);d=L[(J[(c<<2)+o>>2]<<1)+n>>1];if(!d)while(1){Qc(a,e+1|0,0);e=e+3|0;c=c+1|0;d=L[(J[(c<<2)+o>>2]<<1)+n>>1];if(!d)continue;break}g=c;Qc(a,e+1|0,1);d=d<<16>>16;Qc(a,r,(d|0)<=0);i=e+2|0;f:{g:{h:{i:{f=d>>31;k=(f^-1)+(d^f)|0;if(!k)break i;Qc(a,i,1);if((k|0)==1)break i;Qc(a,i,1);c=J[m+140>>2]+((c|0)>K[l+184|0]?217:189)|0;e=2;d=k>>1;if(d>>>0>1)break h;Qc(a,c,0);c=c+14|0;break g}Qc(a,i,0);break f}while(1){f=c;Qc(a,c,1);c=c+1|0;e=e<<1;d=d>>1;if(d>>>0>=2)continue;break}Qc(a, -c,0);if(!e)break f;c=f+15|0}while(1){e=e>>1;Qc(a,c,(k&e)!=0);if(e>>>0>1)continue;break}}c=g+1|0;if((g|0)<(j|0))continue;break}d=J[a+384>>2]}if((c|0)<=(d|0))Qc(a,(J[((q<<2)+h|0)+140>>2]+P(c,3)|0)-3|0,1);p=p+1|0;if((p|0)>2])continue;break}}return 1}function h2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;c=xb-112|0;xb=c;a:{b:{c:{d:{e:{f:{g:{if(!d|!J[a+80>>2])break g;b=c+100|0;f=a+8|0;Ri(b,f,d+4|0,0);e=K[c+111|0];a=e<<24>>24;if((a|0)<0?J[c+104>>2]:e){J[195395]=0;a=aa(1962,c- -64|0,397860, -b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f;J[c+96>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[195395]=0;H[c+36|0]=0;J[c+32>>2]=c+88;b=_(1078,24)|0;e=J[195395];J[195395]=0;h:{i:{if((e|0)!=1){J[c+92>>2]=b;J[c+88>>2]=b;J[195395]=0;J[c+96>>2]=b+24;e=ha(1957,c+96|0,a|0,a+24|0,b|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break h;d=Z()|0;J[c+92>>2]=b;break i}d=Z()|0}Kc(c+32|0);Vb(a);break a}J[c+92>>2]=e;if(H[a+23|0]<0)Kb(J[a+12>>2]);if(H[a+11|0]<0)Kb(J[a>>2]);J[195395]=0;$(1983,c+32|0,d|0);a=J[195395];J[195395]= -0;if((a|0)==1)break e;J[195395]=0;b=c+88|0;la(1959,f|0,b|0,+R(O[c+48>>3]-O[c+32>>3]),+R(O[c+56>>3]-O[c+40>>3]));a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,f|0,b|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,f|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;J[c+20>>2]=a;J[c+24>>2]=4;J[c+28>>2]=-2147483640;d=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=d;d=J[99523];J[a>>2]=J[99522];J[a+4>>2]= -d;J[a+16>>2]=0;J[195395]=0;J[c+8>>2]=0;H[c+19|0]=0;ia(1961,f|0,c+20|0,b|0,c+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]<0)Kb(J[c+20>>2]);b=J[c+88>>2];if(b){a=b;d=J[c+92>>2];if((a|0)!=(d|0)){while(1){if(H[d-1|0]<0)Kb(J[d-12>>2]);a=d-24|0;if(H[d-13|0]<0)Kb(J[a>>2]);d=a;if((a|0)!=(b|0))continue;break}a=J[c+88>>2]}J[c+92>>2]=b;Kb(a)}a=K[c+111|0]}if(a<<24>>24>=0)break g;Kb(J[c+100>>2])}xb=c+112|0;return}d=Z()|0;break a}d=Z()|0;break b}d=Z()|0;break b}d=Z()| -0;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]>=0)break b;Kb(J[c+20>>2])}Hc(c+88|0)}if(H[c+111|0]<0)Kb(J[c+100>>2]);ba(d|0);B()}function ic(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;if(!a)return Qb(b);if(b>>>0>=4294967232){J[194954]=48;return 0}f=b>>>0<11?16:b+11&-8;e=a-8|0;i=J[e+4>>2];d=i&-8;a:{if(!(i&3)){if(f>>>0<256)break a;if(d>>>0>=f+4>>>0){c=e;if(d-f>>>0<=J[195391]<<1>>>0)break a}c=0;break a}g=d+e|0;b:{if(d>>>0>=f>>>0){c=d-f|0;if(c>>>0<16)break b;J[e+4>>2]=i&1|f|2;d=e+f|0;J[d+ -4>>2]=c|3;J[g+4>>2]=J[g+4>>2]|1;Vm(d,c);break b}if(J[195277]==(g|0)){d=d+J[195274]|0;if(d>>>0<=f>>>0)break a;J[e+4>>2]=i&1|f|2;c=e+f|0;d=d-f|0;J[c+4>>2]=d|1;J[195274]=d;J[195277]=c;break b}if(J[195276]==(g|0)){d=d+J[195273]|0;if(d>>>0>>0)break a;c=d-f|0;c:{if(c>>>0>=16){J[e+4>>2]=i&1|f|2;h=e+f|0;J[h+4>>2]=c|1;d=d+e|0;J[d>>2]=c;J[d+4>>2]=J[d+4>>2]&-2;break c}J[e+4>>2]=d|i&1|2;c=d+e|0;J[c+4>>2]=J[c+4>>2]|1;c=0}J[195276]=h;J[195273]=c;break b}h=J[g+4>>2];if(h&2)break a;j=d+(h&-8)|0;if(j>>>0>>0)break a; -l=j-f|0;d:{if(h>>>0<=255){c=J[g+12>>2];d=J[g+8>>2];if((c|0)==(d|0)){n=781084,o=J[195271]&Opa(-2,h>>>3|0),J[n>>2]=o;break d}J[d+12>>2]=c;J[c+8>>2]=d;break d}k=J[g+24>>2];d=J[g+12>>2];e:{if((g|0)!=(d|0)){c=J[g+8>>2];J[c+12>>2]=d;J[d+8>>2]=c;break e}f:{c=g+20|0;h=J[c>>2];if(!h){h=J[g+16>>2];if(!h)break f;c=g+16|0}while(1){m=c;d=h;c=d+20|0;h=J[c>>2];if(h)continue;c=d+16|0;h=J[d+16>>2];if(h)continue;break}J[m>>2]=0;break e}d=0}if(!k)break d;c=J[g+28>>2];h=(c<<2)+781388|0;g:{if(J[h>>2]==(g|0)){J[h>>2]= -d;if(d)break g;n=781088,o=J[195272]&Opa(-2,c),J[n>>2]=o;break d}J[(J[k+16>>2]==(g|0)?16:20)+k>>2]=d;if(!d)break d}J[d+24>>2]=k;c=J[g+16>>2];if(c){J[d+16>>2]=c;J[c+24>>2]=d}c=J[g+20>>2];if(!c)break d;J[d+20>>2]=c;J[c+24>>2]=d}if(l>>>0<=15){J[e+4>>2]=i&1|j|2;c=e+j|0;J[c+4>>2]=J[c+4>>2]|1;break b}J[e+4>>2]=i&1|f|2;c=e+f|0;J[c+4>>2]=l|3;d=e+j|0;J[d+4>>2]=J[d+4>>2]|1;Vm(c,l)}c=e}if(c)return c+8|0;c=Qb(b);if(!c)return 0;e=J[a-4>>2];e=(e&3?-4:-8)+(e&-8)|0;Mb(c,a,b>>>0>e>>>0?e:b);Kb(a);return c}function fU(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=Q(0);a=xb-368|0;xb=a;J[a+360>>2]=c;J[a+364>>2]=b;Wp(a+204|0,d,a+224|0,a+220|0,a+216|0);b=Rc(a+192|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[195395]=0;d=ca(3657,a+364|0,a+360|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c; -g=J[a+188>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=d+c}J[195395]=0;d=a+364|0;g=_(3658,d|0)|0;h=J[195395];J[195395]=0; -if((h|0)==1)break d;J[195395]=0;g=Km(g,a+7|0,a+6|0,c,a+188|0,J[a+220>>2],J[a+216>>2],a+204|0,a+16|0,a+12|0,a+8|0,a+224|0);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+215|0]>>>7|0)d=J[a+208>>2];else d=K[a+215|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;i=Q(Na(3645,c|0,J[a+188>>2],e|0));c=J[195395];J[195395]=0; -f:{if((c|0)==1)break f;N[f>>2]=i;J[195395]=0;je(a+204|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3657,a+364|0,a+360|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+364>>2];Yb(b);Yb(a+204|0);xb=a+368|0;break a}}c=Z()|0;Yb(b);Yb(a+204|0);ba(c|0);B()}return c|0}function xU(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=Q(0);a=xb-256|0;xb=a;J[a+248>>2]=c;J[a+252>>2]=b;Zp(a+192|0,d,a+208|0,a+207|0,a+206|0);b=Rc(a+180| -0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[195395]=0;d=ca(3629,a+252|0,a+248|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+176>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7| -0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=d+c}J[195395]=0;d=a+252|0;g=_(3630,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Mm(g,a+7|0,a+6|0,c,a+176|0,H[a+207|0],H[a+206|0],a+192|0,a+16|0,a+12|0,a+8|0,a+208|0);h=J[195395];J[195395]=0;if((h|0)== -1)break d;if(g)break c;J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+203|0]>>>7|0)d=J[a+196>>2];else d=K[a+203|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;i=Q(Na(3645,c|0,J[a+176>>2],e|0));c=J[195395];J[195395]=0;f:{if((c|0)==1)break f;N[f>>2]=i;J[195395]=0;je(a+192|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3629,a+252|0,a+248| -0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];Yb(b);Yb(a+192|0);xb=a+256|0;break a}}c=Z()|0;Yb(b);Yb(a+192|0);ba(c|0);B()}return c|0}function eU(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;a=xb-368|0;xb=a;J[a+360>>2]=c;J[a+364>>2]=b;Wp(a+204|0,d,a+224|0,a+220|0,a+216|0);b=Rc(a+192|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>> -2];else c=b;J[a+188>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[195395]=0;d=ca(3657,a+364|0,a+360|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+188>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]= -0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=d+c}J[195395]=0;d=a+364|0;g=_(3658,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Km(g,a+7|0,a+6|0,c,a+188|0,J[a+220>>2],J[a+216>>2],a+204|0,a+16|0,a+12|0,a+8|0,a+224|0);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+215|0]>>>7|0)d=J[a+208>>2];else d=K[a+215| -0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;i=+Ma(3648,c|0,J[a+188>>2],e|0);c=J[195395];J[195395]=0;f:{if((c|0)==1)break f;O[f>>3]=i;J[195395]=0;je(a+204|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3657,a+364|0,a+360|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+364>>2];Yb(b);Yb(a+204|0);xb=a+368|0;break a}}c=Z()|0;Yb(b);Yb(a+204|0);ba(c|0);B()}return c| -0}function vU(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;a=xb-256|0;xb=a;J[a+248>>2]=c;J[a+252>>2]=b;Zp(a+192|0,d,a+208|0,a+207|0,a+206|0);b=Rc(a+180|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[195395]=0;d=ca(3629,a+252|0,a+248|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d; -if(d)break c;g=J[a+176>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=d+c}J[195395]=0;d=a+252|0;g=_(3630,d|0)|0;h=J[195395]; -J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Mm(g,a+7|0,a+6|0,c,a+176|0,H[a+207|0],H[a+206|0],a+192|0,a+16|0,a+12|0,a+8|0,a+208|0);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+203|0]>>>7|0)d=J[a+196>>2];else d=K[a+203|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;i=+Ma(3648,c|0,J[a+176>>2],e|0);c=J[195395];J[195395]= -0;f:{if((c|0)==1)break f;O[f>>3]=i;J[195395]=0;je(a+192|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3629,a+252|0,a+248|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];Yb(b);Yb(a+192|0);xb=a+256|0;break a}}c=Z()|0;Yb(b);Yb(a+192|0);ba(c|0);B()}return c|0}function y2(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-80|0;xb=c;a:{b:{c:{d:{e:{f:{b=J[a+80>>2];g:{if(!b)break g;b=Ab[J[J[b>>2]+112>>2]](b)|0;if(!b)break g;d=c+68|0;e=a+8| -0;Ri(d,e,b,0);b=K[c+79|0];a=b<<24>>24;if((a|0)<0?J[c+72>>2]:b){J[195395]=0;b=aa(1956,c+32|0,397860,d|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break f;J[c+64>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[195395]=0;H[c+24|0]=0;J[c+20>>2]=c+56;d=_(1078,24)|0;a=J[195395];J[195395]=0;h:{i:{if((a|0)!=1){J[c+60>>2]=d;J[c+56>>2]=d;J[195395]=0;J[c+64>>2]=d+24;a=ha(1957,c- -64|0,b|0,b+24|0,d|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break h;a=Z()|0;J[c+60>>2]=d;break i}a=Z()|0}Kc(c+20|0);Vb(b);break a}J[c+60>>2]=a;if(H[b+ -23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=c+56|0;$(1963,e|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;$(1964,e|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,e|0,b|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;J[c+20>>2]=a;J[c+24>>2]=4;J[c+28>>2]=-2147483640;d=J[99525];J[a+8>>2]=J[99524];J[a+ -12>>2]=d;d=J[99523];J[a>>2]=J[99522];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[c+8>>2]=0;H[c+19|0]=0;ia(1961,e|0,c+20|0,b|0,c+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]<0)Kb(J[c+20>>2]);e=J[c+56>>2];if(e){a=J[c+60>>2];b=e;if((a|0)!=(b|0)){while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);b=a-24|0;if(H[a-13|0]<0)Kb(J[b>>2]);a=b;if((a|0)!=(e|0))continue;break}b=J[c+56>>2]}J[c+60>>2]=e;Kb(b)}a=K[c+79|0]}if(a<<24>>24>=0)break g;Kb(J[c+68>>2])}xb=c+80|0;return}a=Z()|0; -break a}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]>=0)break b;Kb(J[c+20>>2])}Hc(c+56|0)}if(H[c+79|0]<0)Kb(J[c+68>>2]);ba(a|0);B()}function Ol(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;if(!J[a+4>>2])return;c=Pb(944);J[195395]=0;j=ka(1252,c|0,a|0,0,1,1)|0;b=J[195395];J[195395]=0;if((b|0)!=1){if(J[j+4>>2]){b=L[a+26>>1];i=P(J[a+16>>2]-1|0,(b|0)==24?3:1);e=i+J[a+56>>2]|0;c=0;f=(i|0)<0|J[a+20>>2]<=0;g=J[j+56>>2];a:{b:{c:{b=b-8|0;if(b){if((b|0)== -16)break c;break b}if(f)break a;b=i+1|0;f=b&-4;n=b&3;while(1){d=0;c=0;if(i>>>0>=3)while(1){H[d+g|0]=K[e-d|0];b=d|1;H[b+g|0]=K[e-b|0];b=d|2;H[b+g|0]=K[e-b|0];b=d|3;H[b+g|0]=K[e-b|0];d=d+4|0;c=c+4|0;if((f|0)!=(c|0))continue;break}c=0;if(n)while(1){H[d+g|0]=K[e-d|0];d=d+1|0;c=c+1|0;if((n|0)!=(c|0))continue;break}b=J[a+52>>2];g=b+g|0;e=b+e|0;h=h+1|0;if((h|0)>2])continue;break}break a}if(f)break a;b=(i>>>0)/3|0;n=b&1;f=b+1&2147483646;while(1){c=0;d=0;if(i>>>0>=3)while(1){k=c+g|0;b=e-c|0;H[k|0]= -K[b|0];H[k+1|0]=K[b+1|0];H[k+2|0]=K[b+2|0];b=b-3|0;H[k+3|0]=K[b|0];H[k+4|0]=K[b+1|0];H[k+5|0]=K[b+2|0];c=c+6|0;d=d+2|0;if((f|0)!=(d|0))continue;break}if(!n){d=c+g|0;b=e-c|0;H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0]}b=J[a+52>>2];g=b+g|0;e=b+e|0;h=h+1|0;if((h|0)>2])continue;break}break a}if(f)break a;while(1){d=0;while(1){Pg(j,d,c,fg(a,i-d|0,c));b=(d|0)!=(i|0);d=d+1|0;if(b)continue;break}c=c+1|0;if((c|0)>2])continue;break}}g=J[j+932>>2];d:{if(!g)break d;i=J[j+20>>2];l=J[j+16>> -2];b=Qb(P(i,l));if(!b)break d;if(!((i|0)<=0|(l|0)<=0)){d=l&-4;k=l&3;m=(g+l|0)-1|0;n=l>>>0<4;c=b;while(1){e=0;h=0;if(!n)while(1){H[c+e|0]=K[m-e|0];f=e|1;H[f+c|0]=K[m-f|0];f=e|2;H[f+c|0]=K[m-f|0];f=e|3;H[f+c|0]=K[m-f|0];e=e+4|0;h=h+4|0;if((d|0)!=(h|0))continue;break}h=0;if(k)while(1){H[c+e|0]=K[m-e|0];e=e+1|0;h=h+1|0;if((k|0)!=(h|0))continue;break}c=c+l|0;m=l+m|0;o=o+1|0;if((i|0)!=(o|0))continue;break}}Kb(g);J[j+932>>2]=b}io(a,j,1)}Ab[J[J[j>>2]+4>>2]](j);return}a=Z()|0;Kb(c);ba(a|0);B()}function Df(a, -b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=xb-48|0;xb=g;J[a+8>>2]=0;i=J[a+4>>2];if(i){J[J[a>>2]>>2]=24081;J[J[a>>2]+4>>2]=24081;J[J[a>>2]+8>>2]=24081;J[J[a>>2]+12>>2]=24081;J[J[a>>2]+16>>2]=24081}a:{if(!d)break a;e=K[c|0];if(!e)break a;j=6;if(!b)break a;f=K[b|0];if(!f)break a;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;while(1){b:{c:{d:{h=f&255;if((h|0)!=43){if(!h)break d;h=K[b+1|0];break c}h=K[b+1|0];if(h)break c;k=1;h=0;break b}e:{if((d| -0)<=0){d=0;e=0;break e}i=c+d|0;while(1){f=c;while(1){f:{if(K[((e&248)>>>3|0)+g|0]>>>(e&7)&1){h=f;break f}e=K[f+1|0];h=f+1|0;f=h;if(e)continue}break}e=J[a+8>>2];g:{if((e|0)!=J[a+4>>2])break g;J[g+44>>2]=0;if((e|0)==-1)break g;if((e|0)==536870911){j=64;break a}b=((e>>>1|0)+e|0)+5|0;b=b>>>0>>0?536870911:b>>>0>536870911?536870911:b;l=a,m=Tb(J[a+12>>2],4,e,b,J[a>>2],g+44|0),J[l>>2]=m;j=J[g+44>>2];if(j)break a;J[a+4>>2]=b;e=J[a+8>>2]}J[a+8>>2]=e+1;J[J[a>>2]+(e<<2)>>2]=c>>>0>=h>>>0?24081:c;f=K[h|0];h:{i:{if(k){d= -0;b=h;if(!(f&255)){e=0;c=b;break h}while(1){j:{if(!(K[((f&248)>>>3|0)+g|0]>>>(f&7)&1)){e=f;c=b;break j}e=0;H[b|0]=0;f=K[b+1|0];c=b+1|0;b=c;if(f)continue}break}if(c>>>0<=h>>>0)break h;break i}if(!(f&255)){e=0;c=h;d=0;break h}H[h|0]=0;c=h+1|0;e=K[h+1|0]}d=!(e&255)}if(e&255?c>>>0>>0:0)continue;break}i=J[a+4>>2];e=J[a+8>>2]}b=d+e|0;k:{if(b>>>0>>0)break k;J[g+44>>2]=0;if(b+1>>>0<=i>>>0)break k;j=64;if((i|0)==536870911)break a;b=((i>>>1|0)+i|0)+5|0;b=b>>>0>>0?536870911:b>>>0>536870911?536870911: -b;l=a,m=Tb(J[a+12>>2],4,i,b,J[a>>2],g+44|0),J[l>>2]=m;j=J[g+44>>2];if(j)break a;J[a+4>>2]=b;e=J[a+8>>2]}f=J[a>>2];l:{if(!d){b=e;break l}b=e+1|0;J[a+8>>2]=b;J[(e<<2)+f>>2]=24081;f=J[a>>2]}j=0;J[(b<<2)+f>>2]=0;break a}j=((f&248)>>>3|0)+g|0;H[j|0]=K[j|0]|1<<(f&7)}b=b+1|0;f=h;continue}}xb=g+48|0;return j}function wC(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;e=J[a+604>>2];if((c|0)<=0)b=e;else{k=J[a+596>>2]+J[a+600>>2]|0;while(1){d=b+1|0;j=K[b|0];a:{if(c>>>0<2){h=1;b=d;c=0;break a}b= -b+c|0;h=1;f=c;while(1){f=f-1|0;if(K[d|0]!=(j|0)){b=d;c=f;break a}d=d+1|0;h=h+1|0;if((h|0)!=(c|0))continue;break}h=c;c=0}d=g;b:{c:{d:{e:{while(1){f:{f=i;g:{h:{i:{j:{if((h|0)==1)while(1){k:{if(e+2>>>0>=k>>>0){g=J[a+608>>2];l:{if((i&-3)!=1){J[a+608>>2]=g+(e-J[a+604>>2]|0);if(Xc(a))break l;return-1}J[a+608>>2]=g+(d-J[a+604>>2]|0);if(!Xc(a))return-1;f=e-d|0;e=J[a+604>>2];g=e;if((f|0)<=0)break k;while(1){H[e|0]=K[d|0];e=e+1|0;d=d+1|0;g=f>>>0>1;f=f-1|0;if(g)continue;break}g=J[a+604>>2];break k}e=J[a+604>> -2]}g=d}if((i|0)!=3)switch(i|0){case 2:break h;case 1:break i;case 0:break j;default:break b}i=2;d=g;g=e-2|0;if(K[g|0]!=255)continue;f=K[d|0];if(f>>>0>125)continue;f=f+2|0;H[d|0]=f;H[g|0]=K[e-1|0];i=(f&255)!=127;continue}while(1){i=f;m:{if(e+2>>>0>>0)break m;d=J[a+608>>2];if((f&-3)==1){J[a+608>>2]=d+(g-J[a+604>>2]|0);if(!Xc(a))return-1;d=e-g|0;f=g;e=J[a+604>>2];g=e;if((d|0)<=0)break m;while(1){H[e|0]=K[f|0];e=e+1|0;f=f+1|0;g=d>>>0>1;d=d-1|0;if(g)continue;break}g=J[a+604>>2];break m}J[a+608>>2]= -d+(e-J[a+604>>2]|0);if(!Xc(a))return-1;e=J[a+604>>2]}f=2;if((i|0)==3)continue;break}switch(i|0){case 2:break h;case 1:break i;case 0:break j;default:break b}}if((h|0)<2)break e;i=2;if(h>>>0>128)break g;break d}if((h|0)>=2){i=3;if(h>>>0>128)break g;H[e|0]=1-h;f=e+1|0;e=e+2|0;break c}d=K[g|0]+1|0;H[g|0]=d;i=(d&255)!=127;f=e;e=e+1|0;break c}if((h|0)<2)break e;i=2;if(h>>>0<129)break f}H[e+1|0]=j;H[e|0]=129;h=h-128|0;e=e+2|0;d=g;continue}break}break d}H[e|0]=0;i=1;f=e+1|0;g=e;e=e+2|0;break c}H[e|0]=1- -h;f=e+1|0;e=e+2|0}H[f|0]=j}if((c|0)>0)continue;break}b=J[a+604>>2]}J[a+604>>2]=e;J[a+608>>2]=J[a+608>>2]+(e-b|0);return 1}function IF(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=xb-32|0;xb=h;g=J[b+72>>2];a:{if((g|0)==1651078259)break a;b:{if(!(K[J[b+156>>2]+42|0]&16))break b;d=J[b+4>>2];e=J[b+12>>2];J[h+28>>2]=0;if(!(K[d+8|0]&8)|(!d|e>>>0>=M[d+16>>2]))break b;f=J[J[d+540>>2]+132>>2];if(!f)break b;if(!(Ab[f|0](d,e,h+16|0,h+12|0,h+20|0)|0)){g=J[b+72>>2];break b}c:{if(bs(d,0))break c;f=J[d+540>>2];d:{while(1){if(Ug(d, -J[h+16>>2],J[J[b+156>>2]+40>>2]&-1048581|4))break d;if(Ab[J[f+136>>2]](d,J[h+12>>2],b,J[d+84>>2])|0)break d;e:{if(!(K[d+8|0]&8)|e>>>0>=M[d+16>>2])break e;g=J[J[d+540>>2]+132>>2];if(!g)break e;if(Ab[g|0](d,e,h+16|0,h+12|0,h+20|0)|0)continue}break}J[b+72>>2]=1651078259;f:{b=J[d+84>>2];if(!b)break f;c=J[b+4>>2];d=J[c+84>>2];if(!d)break f;e=J[J[c+96>>2]+8>>2];g:{if((b|0)==(d|0)){f=0;break g}while(1){a=J[d+8>>2];if(!a)break f;f=d;d=a;if((b|0)!=(d|0))continue;break}}J[(f?f+8|0:c+84|0)>>2]=J[b+8>>2];a=J[b+ -20>>2];if(a)Ab[a|0](b);Nl(b);Ab[J[e+8>>2]](e,b);f=0;break a}f=0;break a}g=J[d+84>>2];if(!g)break c;i=J[g+4>>2];d=J[i+84>>2];if(!d)break c;j=J[J[i+96>>2]+8>>2];h:{if((d|0)==(g|0)){e=0;break h}while(1){f=J[d+8>>2];if(!f)break c;e=d;d=f;if((g|0)!=(d|0))continue;break}}J[(e?e+8|0:i+84|0)>>2]=J[g+8>>2];d=J[g+20>>2];if(d)Ab[d|0](g);Nl(g);Ab[J[j+8>>2]](j,g)}g=1869968492;J[b+72>>2]=1869968492}i:{j:{k:{if((g|0)!=1869968492){f=7;if(!a)break a;d=J[a+148>>2];if(!d)break a;while(1){e=J[d+8>>2];if(J[e+16>>2]== -(g|0))break k;d=J[d+4>>2];if(d)continue;break}break a}e=J[a+156>>2];if(!e)break j;d=J[a+148>>2]}f=0;e=Ab[J[e+60>>2]](e,b,c,0)|0;if(!a)break i;if(!e)break a;g=a+148|0;while(1){if((e&255)!=19)break i;d=J[(d?d+4|0:g)>>2];if(!d)break i;f=J[b+72>>2];while(1){a=J[d+8>>2];if((f|0)!=J[a+16>>2]){d=J[d+4>>2];if(d)continue;break i}break}f=0;e=Ab[J[a+60>>2]](a,b,c,0)|0;if(e)continue;break}break a}f=7;break a}f=e}xb=h+32|0;return f}function Js(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;if(J[a+ -72>>2]==1869968492){if(c){n=J[c>>2];j=J[c+4>>2]}c=0;f=I[a+110>>1];a:{if(!f)break a;h=J[a+112>>2];c=J[h+4>>2];e=J[h>>2];if((f|0)<2){g=c;d=e;break a}i=(f<<3)+h|0;f=h+8|0;d=e;g=c;while(1){m=J[h+12>>2];g=(g|0)<(m|0)?m:g;c=(c|0)>(m|0)?m:c;h=J[h+8>>2];d=(d|0)<(h|0)?h:d;e=(e|0)>(h|0)?h:e;h=f;f=h+8|0;if(i>>>0>f>>>0)continue;break}}i=j&63;k=i+(g&63)|0;f=n&63;l=f+(d&63)|0;o=i+(c&63)|0;m=f+(e&63)|0;h=6;f=j>>6;i=f+(g>>6)|0;g=d>>6;d=n>>6;g=g+d|0;n=(c>>6)+f|0;j=d+(e>>6)|0;b:{c:{d:switch(b-2|0){default:g=g+(l+63>>> -6|0)|0;c=j+(m>>>6|0)|0;e=g-c|0;h=2;i=i+(k+63>>>6|0)|0;d=n+(o>>>6|0)|0;f=i-d|0;break c;case 0:d=l+32|0;g=g+(d>>>6|0)|0;b=m+31|0;c=(b>>>6|0)+j|0;e:if((g|0)==(c|0)){if((((d&63)+(b&63)|0)-31|0)<=31){g=c;c=c-1|0;break e}g=c+1|0}e=k+32|0;i=i+(e>>>6|0)|0;b=o+31|0;d=(b>>>6|0)+n|0;f:if((i|0)==(d|0)){if((((e&63)+(b&63)|0)-31|0)<=31){i=d;d=d-1|0;break f}i=d+1|0}f=i-d|0;e=g-c|0;b=e+15>>3&-2;h=1;break b;case 1:f=k;k=J[a>>2];e=J[k+184>>2];d=J[k+192>>2];b=(d|0)>(e|0)?e:d;c=J[k+200>>2];i=((f-((b|0)<(c|0)?b:c)|0)+ -63>>6)+i|0;b=(d|0)<(e|0)?e:d;d=(o-((b|0)>(c|0)?b:c)>>6)+n|0;f=i-d|0;h=J[k+180>>2];e=J[k+188>>2];b=(e|0)>(h|0)?h:e;c=J[k+196>>2];g=((l-((b|0)<(c|0)?b:c)|0)+63>>6)+g|0;b=(e|0)<(h|0)?h:e;c=(m-((b|0)>(c|0)?b:c)>>6)+j|0;e=P(g-c|0,3);b=e+3&-4;h=5;break b;case 2:break d}f=l;l=J[a>>2];e=J[l+184>>2];d=J[l+192>>2];b=(d|0)>(e|0)?e:d;c=J[l+200>>2];g=((f-((b|0)<(c|0)?b:c)|0)+63>>6)+g|0;b=(d|0)<(e|0)?e:d;c=(m-((b|0)>(c|0)?b:c)>>6)+j|0;e=g-c|0;j=J[l+180>>2];f=J[l+188>>2];b=(f|0)<(j|0)?j:f;d=J[l+196>>2];i=((k+((b| -0)>(d|0)?b:d)|0)+63>>6)+i|0;b=(f|0)>(j|0)?j:f;d=(o+((b|0)<(d|0)?b:d)>>6)+n|0;f=P(i-d|0,3)}b=e}J[a+104>>2]=i;J[a+100>>2]=c;J[a+76>>2]=f;H[a+94|0]=h;I[a+92>>1]=256;J[a+80>>2]=e;J[a+84>>2]=b;a=(c|0)<-32768|(d|0)<-32768|(g|0)>32767|(i|0)>32767}else a=1;return a}function yea(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;e=J[a+400>>2];d=e;c=J[e+20>>2];j=J[e+16>>2];if((c|0)>(j|0)){t=J[a+284>>2]-1|0;p=J[a+308>>2]-1|0;m=e+24|0;i=J[e+12>>2];while(1){if(i>>> -0<=p>>>0){while(1){c=J[a+288>>2];if((c|0)>0){d=0;n=0;while(1){f=J[((n<<2)+a|0)+292>>2];if(J[f+60>>2]>0){u=P(J[f+68>>2],i);v=J[(J[a+416>>2]+(J[f+4>>2]<<2)|0)+4>>2];k=J[(i>>>0

>>0?56:72)+f>>2];s=k+1|0;q=P(J[f+40>>2],j);o=0;while(1){a:{if(!(J[f+76>>2]<=(j+o|0)&M[e+8>>2]>=t>>>0)){Ab[v|0](a,f,J[(J[f+4>>2]<<2)+b>>2],J[((d<<2)+e|0)+24>>2],q,u,k);h=J[f+56>>2];if((k|0)>=(h|0))break a;g=(d+k<<2)+e|0;Oc(J[g+24>>2],h-k<<7);h=J[f+56>>2];if((k|0)>=(h|0))break a;c=k;if(h-c&1){I[J[g+24>>2]>>1]=L[J[g+20>>2]>>1]; -c=s}if((h|0)==(s|0))break a;while(1){g=(c+d<<2)+e|0;I[J[g+24>>2]>>1]=L[J[g+20>>2]>>1];I[J[g+28>>2]>>1]=L[J[g+24>>2]>>1];c=c+2|0;if((h|0)!=(c|0))continue;break}break a}c=(d<<2)+e|0;Oc(J[c+24>>2],J[f+56>>2]<<7);h=J[f+56>>2];if((h|0)<=0)break a;g=L[J[c+20>>2]>>1];r=0;c=0;if(h>>>0>=4){w=h&-4;l=0;while(1){I[J[(c+d<<2)+m>>2]>>1]=g;I[J[((c|1)+d<<2)+m>>2]>>1]=g;I[J[((c|2)+d<<2)+m>>2]>>1]=g;I[J[((c|3)+d<<2)+m>>2]>>1]=g;c=c+4|0;l=l+4|0;if((w|0)!=(l|0))continue;break}}l=h&3;if(!l)break a;while(1){I[J[((c+d<< -2)+e|0)+24>>2]>>1]=g;c=c+1|0;r=r+1|0;if((l|0)!=(r|0))continue;break}}d=d+h|0;q=J[f+40>>2]+q|0;o=o+1|0;if((o|0)>2])continue;break}c=J[a+288>>2]}n=n+1|0;if((n|0)<(c|0))continue;break}}if(!(Ab[J[J[a+420>>2]+4>>2]](a,m)|0)){J[e+12>>2]=i;J[e+16>>2]=j;return 0}i=i+1|0;if(p>>>0>=i>>>0)continue;break}c=J[e+20>>2]}i=0;J[e+12>>2]=0;j=j+1|0;if((j|0)<(c|0))continue;break}d=J[a+400>>2]}J[e+8>>2]=J[e+8>>2]+1;b:{if(J[a+288>>2]>=2){J[d+20>>2]=1;break b}b=J[a+292>>2];if(M[d+8>>2]>2]-1>>>0){J[d+20>> -2]=J[b+12>>2];break b}J[d+20>>2]=J[b+76>>2]}J[d+12>>2]=0;J[d+16>>2]=0;return 1}function dT(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;var h=0,i=0,j=0,k=0,l=0,m=0;h=xb-624|0;xb=h;J[h+616>>2]=c;J[h+620>>2]=b;J[h+16>>2]=3689;a=h+16|0;b=Id(h+200|0,h+208|0,a);J[195395]=0;j=h+192|0;i=J[e+28>>2];J[j>>2]=i;J[i+4>>2]=J[i+4>>2]+1;i=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((i|0)!=1){J[195395]=0;i=_(3551,j|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break j;H[h+191|0]=0;e=J[e+4>>2];J[195395]= -0;c=Fa(3701,h+620|0,c|0,d|0,j|0,e|0,f|0,h+191|0,i|0,b|0,h+196|0,h+608|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break e;if(!c)break f;c=K[228109]|K[228110]<<8|(K[228111]<<16|K[228112]<<24);H[h+183|0]=c;H[h+184|0]=c>>>8;H[h+185|0]=c>>>16;H[h+186|0]=c>>>24;c=K[228106]|K[228107]<<8|(K[228108]<<16|K[228109]<<24);J[h+176>>2]=K[228102]|K[228103]<<8|(K[228104]<<16|K[228105]<<24);J[h+180>>2]=c;J[195395]=0;ha(3665,i|0,h+176|0,h+186|0,h+128|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break i;J[h+4>>2]=627;d=Id(h+ -8|0,0,h+4|0);e=a;a=J[h+196>>2]-J[b>>2]|0;if((a|0)<393)break g;ge(d,Qb((a>>2)+2|0));if(J[d>>2])break h;J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;break a}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;break c}e=J[d>>2]}if(K[h+191|0]){H[e|0]=45;e=e+1|0}c=J[b>>2];while(1){if(M[h+196>>2]<=c>>>0){H[e|0]=0;J[h>>2]=g;if((tq(h+16|0,226994,h)|0)!=1){J[195395]=0;ea(3691,225808);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break d}Ic(d)}else{a=h+128|0;l=e,m=K[(h+176|0)+(Vp(a,a+40|0,c)-a>>2)|0], -H[l|0]=m;e=e+1|0;c=c+4|0;continue}break}}J[195395]=0;a=ca(3657,h+620|0,h+616|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;if(a)J[f>>2]=J[f>>2]|2;d=J[h+620>>2];a=J[h+192>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);Ic(b);xb=h+624|0;return d|0}c=Z()|0;break c}c=Z()|0;Ic(d)}a=J[h+192>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)Ab[J[J[a>>2]+8>>2]](a)}Ic(b);ba(c|0);B()}B()}function RD(a,b){var c=0,d=0,e=0,f=0;a:{d=K[a+8|0];if(!(d&2))break a;c=J[a>>2];b:switch(K[a+9|0]-8|0){case 0:c:switch(d- -2|0){case 4:if(!c)break a;if(c>>>0>=4){d=c&-4;a=0;while(1){e=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=e;e=K[b+4|0];H[b+4|0]=K[b+6|0];H[b+6|0]=e;e=K[b+8|0];H[b+8|0]=K[b+10|0];H[b+10|0]=e;e=K[b+12|0];H[b+12|0]=K[b+14|0];H[b+14|0]=e;b=b+16|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){d=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=d;b=b+4|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 0:break c;default:break a}if(!c)break a;if(c>>>0>=4){d=c&-4;a=0;while(1){e=K[b+2|0];H[b+2|0]=K[b|0];H[b| -0]=e;e=K[b+3|0];H[b+3|0]=K[b+5|0];H[b+5|0]=e;e=K[b+6|0];H[b+6|0]=K[b+8|0];H[b+8|0]=e;e=K[b+9|0];H[b+9|0]=K[b+11|0];H[b+11|0]=e;b=b+12|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){d=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=d;b=b+3|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 8:break b;default:break a}d:switch(d-2|0){case 4:if(!c)break a;if((c|0)!=1){e=c&-2;a=0;while(1){d=K[b|0]|K[b+1|0]<<8;f=K[b+4|0]|K[b+5|0]<<8;H[b|0]=f;H[b+1|0]=f>>>8;H[b+4|0]=d;H[b+5|0]=d>>>8;d=K[b+ -8|0]|K[b+9|0]<<8;f=K[b+12|0]|K[b+13|0]<<8;H[b+8|0]=f;H[b+9|0]=f>>>8;H[b+12|0]=d;H[b+13|0]=d>>>8;b=b+16|0;a=a+2|0;if((e|0)!=(a|0))continue;break}}if(!(c&1))break a;a=K[b|0]|K[b+1|0]<<8;c=K[b+4|0]|K[b+5|0]<<8;H[b|0]=c;H[b+1|0]=c>>>8;H[b+4|0]=a;H[b+5|0]=a>>>8;return;case 0:break d;default:break a}if(!c)break a;if((c|0)!=1){e=c&-2;a=0;while(1){d=K[b|0]|K[b+1|0]<<8;f=K[b+4|0]|K[b+5|0]<<8;H[b|0]=f;H[b+1|0]=f>>>8;H[b+4|0]=d;H[b+5|0]=d>>>8;d=K[b+6|0]|K[b+7|0]<<8;f=K[b+10|0]|K[b+11|0]<<8;H[b+6|0]=f;H[b+7| -0]=f>>>8;H[b+10|0]=d;H[b+11|0]=d>>>8;b=b+12|0;a=a+2|0;if((e|0)!=(a|0))continue;break}}if(!(c&1))break a;a=K[b|0]|K[b+1|0]<<8;c=K[b+4|0]|K[b+5|0]<<8;H[b|0]=c;H[b+1|0]=c>>>8;H[b+4|0]=a;H[b+5|0]=a>>>8}}function _fa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;v=xb-320|0;xb=v;s=J[a+332>>2];b=J[b+84>>2];a=v;while(1){h=J[b+192>>2];l=I[c+96>>1];m=J[b+64>>2];t=I[c+32>>1];g=P(I[c>>1],J[b>>2])<<13|1024;f=P(J[b+128>>2],I[c+64>>1]);k=g+P(f,-11586)>> -11;i=P(J[b+32>>2],I[c+16>>1]);o=P(J[b+160>>2],I[c+80>>1]);n=P(J[b+96>>2],I[c+48>>1]);p=P(J[b+224>>2],I[c+112>>1]);j=n-p|0;q=i-(o+j|0)<<2;J[a+224>>2]=k-q;J[a+64>>2]=k+q;l=P(h,l);m=P(m,t);h=P(l+m|0,6810);m=h+P(m,4209)|0;t=g+P(f,9373)|0;k=m+t|0;o=o<<13;q=o+P(j,2531)|0;n=n+p|0;p=P(n,7791);r=q+(p+P(i,11443)|0)|0;J[a+288>>2]=k-r>>11;J[a>>2]=k+r>>11;f=g+P(f,-3580)|0;g=h+P(l,-17828)|0;h=f-g|0;j=o+P(j,-6627)|0;l=P(n,4815);k=j+(P(i,5260)-l|0)|0;J[a+192>>2]=h-k>>11;J[a+96>>2]=h+k>>11;h=t-m|0;m=q+(P(i,1812)- -p|0)|0;J[a+160>>2]=h-m>>11;J[a+128>>2]=h+m>>11;f=f+g|0;i=P(i,10323)-(j+l|0)|0;J[a+256>>2]=f-i>>11;J[a+32>>2]=f+i>>11;a=a+4|0;b=b+4|0;c=c+2|0;u=u+1|0;if((u|0)!=8)continue;break}a=s+128|0;c=v;u=0;while(1){s=J[c+24>>2];j=J[c+8>>2];f=P(s+j|0,6810);b=J[(u<<2)+d>>2]+e|0;g=J[c+28>>2];h=J[c+12>>2];l=g+h|0;m=P(l,7791);i=J[c+4>>2];t=J[c+20>>2];k=t<<13;g=h-g|0;o=k+P(g,2531)|0;n=(m+P(i,11443)|0)+o|0;p=f+P(j,4209)|0;h=(J[c>>2]<<13)+131072|0;j=J[c+16>>2];q=h+P(j,9373)|0;r=p+q|0;H[b|0]=K[a+(n+r>>>18&1023)|0];H[b+ -9|0]=K[a+(r-n>>>18&1023)|0];l=P(l,4815);k=k+P(g,-6627)|0;n=P(i,10323)-(l+k|0)|0;f=f+P(s,-17828)|0;s=h+P(j,-3580)|0;r=f+s|0;H[b+1|0]=K[a+(n+r>>>18&1023)|0];H[b+8|0]=K[a+(r-n>>>18&1023)|0];g=i-(g+t|0)<<13;j=h+P(j,-11586)|0;H[b+2|0]=K[a+(g+j>>>18&1023)|0];H[b+7|0]=K[a+(j-g>>>18&1023)|0];g=k+(P(i,5260)-l|0)|0;f=s-f|0;H[b+3|0]=K[a+(g+f>>>18&1023)|0];H[b+6|0]=K[a+(f-g>>>18&1023)|0];i=o+(P(i,1812)-m|0)|0;f=q-p|0;H[b+4|0]=K[a+(i+f>>>18&1023)|0];H[b+5|0]=K[a+(f-i>>>18&1023)|0];c=c+32|0;u=u+1|0;if((u|0)!=10)continue; -break}xb=v+320|0}function MJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}J[a+36>>2]=b;b:{c:{d:{while(1){H[a+28|0]=c;e=J[a+36>>2];d=J[e+12>>2];J[a+4>>2]=d;c=J[e+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+d;J[a+32>>2]=0;if(c>>>0<=67108863){f=c<<6;f=f>>>0<=16384?16384:f;g=f>>>0>=1073741823?1073741823:f}else g=1073741823;J[a+16>>2]=g;J[a+24>>2]=0;J[a>>2]=0;if(!d){Ub(e);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}e:{if(!(K[d|0]|K[d+1|0]<<8)|c>>> -0<2)break e;e=d+4|0;if(M[a+12>>2]>2]>>>0|J[a+8>>2]-e>>>0<4)break e;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(c){c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);h=c>>>0<=1?1:c;c=d+8|0;f=0;while(1){g=K[d|0]|K[d+1|0]<<8;if(!Pu(c,a,(g<<8|g>>>8)&65535))break e;g=c;c=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}if(!J[a+32>>2])break d;J[a+32>>2]=0;c=1;h=J[a+12>>2];f=J[a+4>>2];f:{if(h>>>0>>0)break f; -g=J[a+8>>2];if(!(K[d|0]|K[d+1|0]<<8)|g-d>>>0<2|(h>>>0>>0|g-e>>>0<4))break f;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(!c){c=0;break f}c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=c>>>0<=1?1:c;c=d+8|0;f=0;while(1){h=K[d|0]|K[d+1|0]<<8;h=Pu(c,a,(h<<8|h>>>8)&65535);if(h){g=c;c=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;f=f+1|0;if((e|0)!=(f|0))continue}break}c=h^1}d=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+ -8>>2]=0;if(d)break b;if(!c)break c;break b}if(!(K[a+28|0]|!J[a+32>>2])){d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];c=1;if(d)continue}break}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break b}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(b);return 169776}function KJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}J[a+36>>2]=b;b:{c:{d:{while(1){H[a+28|0]=c;e=J[a+36>>2];d= -J[e+12>>2];J[a+4>>2]=d;c=J[e+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+d;J[a+32>>2]=0;if(c>>>0<=67108863){f=c<<6;f=f>>>0<=16384?16384:f;g=f>>>0>=1073741823?1073741823:f}else g=1073741823;J[a+16>>2]=g;J[a+24>>2]=0;J[a>>2]=0;if(!d){Ub(e);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}e:{if(!(K[d|0]|K[d+1|0]<<8)|c>>>0<2)break e;e=d+4|0;if(M[a+12>>2]>2]>>>0|J[a+8>>2]-e>>>0<4)break e;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(c){c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);h=c>>>0<= -1?1:c;c=d+8|0;f=0;while(1){g=K[d|0]|K[d+1|0]<<8;if(!Ku(c,a,(g<<8|g>>>8)&65535))break e;g=c;c=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}if(!J[a+32>>2])break d;J[a+32>>2]=0;c=1;h=J[a+12>>2];f=J[a+4>>2];f:{if(h>>>0>>0)break f;g=J[a+8>>2];if(!(K[d|0]|K[d+1|0]<<8)|g-d>>>0<2|(h>>>0>>0|g-e>>>0<4))break f;c=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if(!c){c=0;break f}c=c<<24|(c&65280)<<8|(c>>>8&65280| -c>>>24);e=c>>>0<=1?1:c;c=d+8|0;f=0;while(1){h=K[d|0]|K[d+1|0]<<8;h=Ku(c,a,(h<<8|h>>>8)&65535);if(h){g=c;c=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;f=f+1|0;if((e|0)!=(f|0))continue}break}c=h^1}d=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(d)break b;if(!c)break c;break b}if(!(K[a+28|0]|!J[a+32>>2])){d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];c=1;if(d)continue}break}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+ -4>>2]=0;J[a+8>>2]=0;break b}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(b);return 169776}function nm(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,r=0,s=0;h=xb-16|0;xb=h;j=J[a+100>>2];J[h+12>>2]=0;e=J[a+532>>2];a:{if(!e){e=tc(j,420,h+12|0);if(J[h+12>>2])break a;J[e+416>>2]=0;J[a+532>>2]=e}b:{c:{if(!b)break c;d=J[e>>2];if(!d){d=h+12|0;r=e,s=Tb(j,32,0,b,0,d),J[r+148>>2]=s;if(J[h+12>>2])break a;r=e,s=Tb(j,196,0,b,0,d),J[r+ -216>>2]=s;if(J[h+12>>2])break a;r=e,s=Tb(j,16,0,b,0,d),J[r+288>>2]=s;if(J[h+12>>2])break a;d=Tb(j,4,0,b<<1,0,d);J[e+136>>2]=d;if(J[h+12>>2])break a;J[e+284>>2]=a+464;J[e+212>>2]=a+168;J[e+144>>2]=a+132;k=2;J[e+140>>2]=d+(b<<2);d:{if(b>>>0<2)break d;a=b+1|0;f=a>>>0<=3?3:a;i=f-2|0;o=i&3;a=J[e+288>>2];d=J[e+216>>2];g=J[e+148>>2];if(f-3>>>0>=3){q=i&-4;i=e+144|0;m=e+212|0;n=e+284|0;while(1){f=k<<2;J[f+i>>2]=g+32;J[f+m>>2]=d+196;J[f+n>>2]=a+16;l=f|4;J[l+i>>2]=g- -64;J[l+m>>2]=d+392;J[l+n>>2]=a+32;l=f+8| -0;J[l+i>>2]=g+96;J[l+m>>2]=d+588;J[l+n>>2]=a+48;f=f+12|0;g=g+128|0;J[f+i>>2]=g;d=d+784|0;J[f+m>>2]=d;a=a- -64|0;J[f+n>>2]=a;k=k+4|0;p=p+4|0;if((q|0)!=(p|0))continue;break}}if(!o)break d;f=0;while(1){i=(k<<2)+e|0;a=a+16|0;J[i+284>>2]=a;d=d+196|0;J[i+212>>2]=d;g=g+32|0;J[i+144>>2]=g;k=k+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}}J[e>>2]=b;break c}if((b|0)!=(d|0))break b}a=J[e+4>>2];e:{if(!c){c=a;break e}if((a|0)!=(c|0)?a:0)break b;J[e+4>>2]=c}d=J[e>>2];if(J[e+24>>2]|(!d|!c))break a;b=Tb(j,4,0,P(c, -d),0,h+12|0);J[e+24>>2]=b;if(J[h+12>>2]|d>>>0<2)break a;g=d-1|0;j=g&3;a=1;if(d-2>>>0>=3){k=g&-4;d=0;g=e+24|0;while(1){J[g+(a<<2)>>2]=b+(P(a,c)<<2);f=a+1|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);f=a+2|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);f=a+3|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);a=a+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}if(!j)break a;d=0;while(1){J[((a<<2)+e|0)+24>>2]=b+(P(a,c)<<2);a=a+1|0;d=d+1|0;if((j|0)!=(d|0))continue;break}break a}J[h+12>>2]=3}xb=h+16|0;return J[h+12>>2]}function lT(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;var h=0,i=0,j=0,k=0,l=0,m=0;h=xb-272|0;xb=h;J[h+264>>2]=c;J[h+268>>2]=b;J[h+16>>2]=3689;a=h+16|0;b=Id(h+152|0,h+160|0,a);J[195395]=0;j=h+144|0;i=J[e+28>>2];J[j>>2]=i;J[i+4>>2]=J[i+4>>2]+1;i=J[195395];J[195395]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((i|0)!=1){J[195395]=0;i=_(3535,j|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break j;H[h+143|0]=0;e=J[e+4>>2];J[195395]=0;c=Fa(3690,h+268|0,c|0,d|0,j|0,e|0,f|0,h+143|0,i|0,b|0,h+148|0,h+260|0)|0;d=J[195395];J[195395]=0;if((d|0)== -1)break e;if(!c)break f;c=K[228109]|K[228110]<<8|(K[228111]<<16|K[228112]<<24);H[h+135|0]=c;H[h+136|0]=c>>>8;H[h+137|0]=c>>>16;H[h+138|0]=c>>>24;c=K[228106]|K[228107]<<8|(K[228108]<<16|K[228109]<<24);J[h+128>>2]=K[228102]|K[228103]<<8|(K[228104]<<16|K[228105]<<24);J[h+132>>2]=c;J[195395]=0;ha(3646,i|0,h+128|0,h+138|0,h+118|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break i;J[h+4>>2]=627;d=Id(h+8|0,0,h+4|0);e=a;a=J[h+148>>2]-J[b>>2]|0;if((a|0)<99)break g;ge(d,Qb(a+2|0));if(J[d>>2])break h;J[195395]= -0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;break a}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;break c}e=J[d>>2]}if(K[h+143|0]){H[e|0]=45;e=e+1|0}c=J[b>>2];while(1){if(M[h+148>>2]<=c>>>0){H[e|0]=0;J[h>>2]=g;if((tq(h+16|0,226994,h)|0)!=1){J[195395]=0;ea(3691,225808);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break d}Ic(d)}else{a=h+118|0;l=e,m=K[(h+(Yp(a,a+10|0,c)-h|0)|0)+10|0],H[l|0]=m;e=e+1|0;c=c+1|0;continue}break}}J[195395]=0;a=ca(3629,h+268|0,h+264|0)|0;c=J[195395];J[195395]=0;if((c|0)== -1)break e;if(a)J[f>>2]=J[f>>2]|2;d=J[h+268>>2];a=J[h+144>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);Ic(b);xb=h+272|0;return d|0}c=Z()|0;break c}c=Z()|0;Ic(d)}a=J[h+144>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)Ab[J[J[a>>2]+8>>2]](a)}Ic(b);ba(c|0);B()}B()}function kU(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;a=xb-336|0;xb=a;J[a+328>>2]=c;J[a+332>>2]=b;h=Ff(d);j=Dj(d,a+208|0);Cj(a+196|0,d,a+324|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)- -1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3657,a+332|0,a+328|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395]; -J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+332|0;g=_(3658,d|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break d;J[195395]=0;g=Hh(g,h,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);i=J[195395];J[195395]=0;if((i|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+ -207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=zm(3639,c,J[a+180>>2],e,h);d=zb;h=J[195395];J[195395]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3657,a+332|0,a+328|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];Yb(b);Yb(a+196|0);xb=a+336|0;break a}}c= -Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function gU(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;a=xb-336|0;xb=a;J[a+328>>2]=c;J[a+332>>2]=b;h=Ff(d);j=Dj(d,a+208|0);Cj(a+196|0,d,a+324|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3657,a+332|0,a+328|0)|0;g=J[195395]; -J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+ -332|0;g=_(3658,d|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break d;J[195395]=0;g=Hh(g,h,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);i=J[195395];J[195395]=0;if((i|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=zm(3643,c,J[a+180>>2],e,h);d=zb;h=J[195395];J[195395]= -0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3657,a+332|0,a+328|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];Yb(b);Yb(a+196|0);xb=a+336|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function Wz(a,b,c,d,e,f){var g=0;a:{b:{g=J[a+248>>2];if(!g)break b;Ab[J[J[g>>2]+168>>2]](g,b,c,d,e,f);b=J[a+248>>2];if(!b)break b;Ab[J[J[b>>2]+32>>2]](b,+(f| -0),+(e|0));break a}if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=e;J[a+180>>2]=e;break a}b=a+176|0;c:{if(J[b>>2]<=(f|0)){b=a+184|0;if(J[b>>2]>=(f|0))break c}J[b>>2]=f}if(J[a+180>>2]>(e|0)){J[a+180>>2]=e;break a}if(J[a+188>>2]>=(e|0))break a;J[a+188>>2]=e}b=J[a+172>>2];I[b+140>>1]=f;I[b+142>>1]=e;g=d+f|0;b=J[a+248>>2];d:{if(b){Ab[J[J[b>>2]+36>>2]](b,+(g<<16>>16),+(e|0));break d}d=g<<16>>16;if(K[a+192|0]){J[a+176>>2]=d;H[a+192|0]=0;J[a+184>>2]=d;J[a+188>>2]=e;J[a+180>>2]=e;break d}b= -a+176|0;e:{if((d|0)>=J[b>>2]){b=a+184|0;if((d|0)<=J[b>>2])break e}J[b>>2]=d}if(J[a+180>>2]>(e|0)){J[a+180>>2]=e;break d}if(J[a+188>>2]>=(e|0))break d;J[a+188>>2]=e}d=J[a+172>>2];b=g<<16>>16;I[d+140>>1]=b;I[d+142>>1]=e;d=c+e|0;c=J[a+248>>2];f:{if(c){Ab[J[J[c>>2]+36>>2]](c,+(b|0),+(d<<16>>16));break f}if(K[a+192|0]){J[a+176>>2]=b;H[a+192|0]=0;J[a+184>>2]=b;c=d<<16>>16;J[a+188>>2]=c;J[a+180>>2]=c;break f}c=a+176|0;g:{if((b|0)>=J[c>>2]){c=a+184|0;if((b|0)<=J[c>>2])break g}J[c>>2]=b}c=d<<16>>16;if((c| -0)>2]){J[a+180>>2]=c;break f}if((c|0)<=J[a+188>>2])break f;J[a+188>>2]=c}c=J[a+172>>2];I[c+140>>1]=b;b=d<<16>>16;I[c+142>>1]=b;c=J[a+248>>2];h:{if(c){Ab[J[J[c>>2]+36>>2]](c,+(f|0),+(b|0));break h}if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=b;J[a+180>>2]=b;break h}d=a+176|0;i:{if(J[d>>2]<=(f|0)){d=a+184|0;if(J[d>>2]>=(f|0))break i}J[d>>2]=f}if((b|0)>2]){J[a+180>>2]=b;break h}if((b|0)<=J[a+188>>2])break h;J[a+188>>2]=b}c=J[a+172>>2];I[c+140>>1]=f;I[c+142>>1]= -b;b=J[a+248>>2];j:{if(!b)break j;Ab[J[J[b>>2]+48>>2]](b);b=J[a+248>>2];if(!b)break j;Ab[J[J[b>>2]+52>>2]](b,2);a=J[a+248>>2];Ab[J[J[a>>2]+56>>2]](a)}}function Iu(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;j=J[b+12>>2];k=J[b+4>>2];a:{if(j>>>0>>0)break a;l=J[b+8>>2];if(l-a>>>0<8)break a;d=K[a|0]|K[a+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<4)break a;d=a+2|0;if(j>>>0>>0|l-d>>>0<2)break a;d=K[a+2|0]|K[a+3|0]<<8;e=((d<<8|d>>>8)&65535)+a|0;if(j>>> -0>>0|l-e>>>0<4)break a;d=e+2|0;if(j>>>0>>0|l-d>>>0<2)break a;d=e+4|0;if(j>>>0>>0)break a;m=l-d|0;d=K[e+2|0]|K[e+3|0]<<8;d=(d<<8|d>>>8)&65535;if(m>>>0>>0)break a;g=J[b+16>>2]-d|0;J[b+16>>2]=g;if((g|0)<=0)break a;d=K[a+6|0]|K[a+7|0]<<8;r=((d<<8|d>>>8)&65535)+a|0;u=l-r|0;d=K[a+4|0]|K[a+5|0]<<8;s=(d<<8|d>>>8)&65535;m=s+a|0;v=l-m|0;a=K[a|0]|K[a+1|0]<<8;q=(a<<8|a>>>8)&65535;w=j>>>0>>0;x=j>>>0>>0;a=0;d=0;while(1){b:{if(!(a&1)){e=d;break b}Kpa(n,0,q,0);if(zb)return 0;i=0;f=P(n, -q);h=f+m|0;if(h-k>>>0>j>>>0|l-h>>>0<0-f>>>0)break a;a=f+g|0;J[b+16>>2]=a;if((a|0)<=0)break a;g=a+(n-t|0)|0;J[b+16>>2]=g;if((g|0)<=0|(f|0)>0)break a;a=m;e=d;if((f|0)<0)while(1){a=a-1|0;f=K[a|0]+1|0;e=e>>>0>f>>>0?e:f;if(a>>>0>h>>>0)continue;break}t=n}if((o|0)<=(p|0)){i=0;if(x)break a;f=p+1|0;h=P(f,q);if(h>>>0>v>>>0)break a;a=g-h|0;J[b+16>>2]=a;if((a|0)<=0)break a;g=a+((p^-1)+o|0)|0;J[b+16>>2]=g;if((h|0)<0|(g|0)<=0)break a;a=P(o,q);if((a|0)<(h|0)){h=h+m|0;a=a+m|0;while(1){o=K[a|0]+1|0;e=e>>>0>o>>>0? -e:o;a=a+1|0;if(h>>>0>a>>>0)continue;break}}o=f}i=0;if(w)break a;f=e<<3;if(f>>>0>u>>>0)break a;a=g-f|0;J[b+16>>2]=a;if((a|0)<=0)break a;g=a+(d-e|0)|0;J[b+16>>2]=g;if((g|0)<=0)break a;if((d|0)<(e|0)){f=f+r|0;i=(d<<3)+r|0;while(1){a=K[i|0]|K[i+1|0]<<8;a=(((a<<8|a>>>8)&65535)-s|0)/(q|0)|0;p=(a|0)<(p|0)?p:a;n=(a|0)>(n|0)?n:a;i=i+8|0;if(f>>>0>i>>>0)continue;break}}d=e;a=(n|0)<(t|0);if(a|(o|0)<=(p|0))continue;break}i=1;if(!c)break a;J[c>>2]=d}return i}function mH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k= -0,l=0,m=0;J[a+12>>2]=b;J[a+8>>2]=c;J[a+4>>2]=b;J[a+20>>2]=J[a+16>>2];a:{b:{while(1){if(b>>>0>=c>>>0)break b;k=J[a+20>>2];i=J[a+16>>2];l=k-i>>2;e=J[a+24>>2];g=K[b|0];c:{d:{if(!((g|0)==31|(g-27&255)>>>0>227)){d=4;if(e>>>0<=l>>>0)break c;J[a+20>>2]=k+4;J[k>>2]=b;e:switch(g-28|0){case 2:while(1){b=b+1|0;if(c>>>0<=b>>>0){b=c;d=7;break c}e=K[b|0];if((e&240)==240)break d;if((e&15)!=15)continue;break}break d;case 0:b=b+2|0;break d;case 1:b=b+4|0;break d;default:break e}b=(g>>>0>246)+b|0;break d}d=4;if(e>>> -0<=l>>>0)break c;J[k>>2]=b;if((g|0)==12){b=b+1|0;d=8;if(c>>>0<=b>>>0)break c;g=K[b|0]|256}h=25376;j=4;d=25376;f=J[a+28>>2]|g;f:{g:{if((f|0)==4096)break g;h:{i:{while(1){if((f|0)==J[d+32>>2])break h;if((f|0)==J[d+60>>2])break i;if((f|0)!=J[d+88>>2]){j=J[d+112>>2];if(!j)break f;e=d;h=d+112|0;d=h;if((f|0)!=J[e+116>>2])continue;break g}break}h=d+84|0;j=J[d+84>>2];break g}h=d+56|0;j=J[d+56>>2];break g}h=d+28|0;j=J[d+28>>2]}e=J[h+8>>2];f=J[a+32>>2];if((i|0)==(k|0)){d=12;if((j|0)!=6)break c}d=e+f|0;j:{k:{l:{m:{n:{o:switch(j- -1|0){case 0:case 3:case 4:e=Pf(a,J[J[a+16>>2]>>2]);break n;case 1:e=Ck(a,J[J[a+16>>2]>>2],0);break n;case 5:break m;case 2:break o;default:break l}e=Ck(a,J[J[a+16>>2]>>2],3)}p:switch(K[h+12|0]-1|0){case 1:I[d>>1]=e;break f;case 0:break j;default:break p}J[d>>2]=e;break f}g=J[a+16>>2];e=J[h+20>>2];i=e>>>0>l>>>0?l:e;H[f+J[h+24>>2]|0]=i;if(!i)break f;f=0;while(1){e=K[h+12|0];f=Pf(a,J[g>>2])+f|0;q:{r:switch(e-1|0){case 0:H[d|0]=f;break q;case 1:I[d>>1]=f;break q;default:break r}J[d>>2]=f}g=g+4|0;d=d+ -e|0;i=i-1|0;if(i)continue;break}break k}m=Ab[J[h+16>>2]](a)|0;d=7;if(m)break c;m=0}if((j|0)!=8)break f;break d}H[d|0]=e}J[a+20>>2]=J[a+16>>2]}b=b+1|0;d=0}if(!d)continue;break}a=6;if(Opa(d,30)-1>>>0<3)break a}a=m}return a}function m2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;c=xb-80|0;xb=c;a:{b:{c:{d:{e:{f:{g:{if(!d|!J[a+80>>2])break g;b=c+68|0;e=a+8|0;Ri(b,e,d,0);d=K[c+79|0];a=d<<24>>24;if((a|0)<0?J[c+72>>2]:d){J[195395]=0;b=aa(1956,c+32|0,397860,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break f; -J[c+64>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[195395]=0;H[c+24|0]=0;J[c+20>>2]=c+56;d=_(1078,24)|0;a=J[195395];J[195395]=0;h:{i:{if((a|0)!=1){J[c+60>>2]=d;J[c+56>>2]=d;J[195395]=0;J[c+64>>2]=d+24;a=ha(1957,c- -64|0,b|0,b+24|0,d|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break h;a=Z()|0;J[c+60>>2]=d;break i}a=Z()|0}Kc(c+20|0);Vb(b);break a}J[c+60>>2]=a;if(H[b+23|0]<0)Kb(J[b+12>>2]);if(H[b+11|0]<0)Kb(J[b>>2]);J[195395]=0;b=c+56|0;$(1963,e|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;$(1964, -e|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,e|0,b|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ea(1958,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;J[c+20>>2]=a;J[c+24>>2]=4;J[c+28>>2]=-2147483640;d=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=d;d=J[99523];J[a>>2]=J[99522];J[a+4>>2]=d;J[a+16>>2]=0;J[195395]=0;J[c+8>>2]=0;H[c+19|0]=0;ia(1961,e|0,c+20|0,b|0,c+8|0);a=J[195395];J[195395]= -0;if((a|0)==1)break c;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]<0)Kb(J[c+20>>2]);b=J[c+56>>2];if(b){d=J[c+60>>2];a=b;if((d|0)!=(a|0)){while(1){if(H[d-1|0]<0)Kb(J[d-12>>2]);a=d-24|0;if(H[d-13|0]<0)Kb(J[a>>2]);d=a;if((b|0)!=(a|0))continue;break}a=J[c+56>>2]}J[c+60>>2]=b;Kb(a)}a=K[c+79|0]}if(a<<24>>24>=0)break g;Kb(J[c+68>>2])}xb=c+80|0;return}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]>=0)break b;Kb(J[c+20>>2])}Hc(c+56|0)}if(H[c+79|0]<0)Kb(J[c+68>> -2]);ba(a|0);B()}function Lo(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;J[a>>2]=b-1;if((b|0)!=1)break a;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}b=J[a+16>>2];b:{if(!b){b=0;break b}c=J[b>>2];if(c){b=J[a+12>>2];if(b)b=J[b>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+4>>2];if(c){b=J[a+12>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+8>>2];if(c){b=J[a+12>>2];if(b)b=J[b+8>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+12>>2];if(c){b=J[a+12>>2];if(b)b=J[b+ -12>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+16>>2];if(c){b=J[a+12>>2];if(b)b=J[b+16>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+20>>2];if(c){b=J[a+12>>2];if(b)b=J[b+20>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+24>>2];if(c){b=J[a+12>>2];if(b)b=J[b+24>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+28>>2];if(c){b=J[a+12>>2];if(b)b=J[b+28>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+32>>2];if(c){b=J[a+12>>2];if(b)b=J[b+32>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+36>>2];if(c){b=J[a+12>>2];if(b)b=J[b+36>> -2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+40>>2];if(c){b=J[a+12>>2];if(b)b=J[b+40>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+44>>2];if(c){b=J[a+12>>2];if(b)b=J[b+44>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+48>>2];if(c){b=J[a+12>>2];if(b)b=J[b+48>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+52>>2];if(c){b=J[a+12>>2];if(b)b=J[b+52>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+56>>2];if(c){b=J[a+12>>2];if(b)b=J[b+56>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+60>>2];if(c){b=J[a+12>>2];if(b)b=J[b+60>>2]; -else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+64>>2];if(c){b=J[a+12>>2];if(b)b=J[b+64>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+68>>2];if(c){b=J[a+12>>2];if(b)b=J[b+68>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}c=J[b+72>>2];if(!c)break b;b=J[a+12>>2];if(b)b=J[b+72>>2];else b=0;Ab[c|0](b);b=J[a+16>>2]}Kb(b);Kb(J[a+12>>2]);Kb(a)}}function mU(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;a=xb-336|0;xb=a;J[a+328>>2]=c;J[a+332>>2]=b;i=Ff(d);j=Dj(d,a+208|0);Cj(a+196|0,d,a+324|0);b=Rc(a+184|0); -if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3657,a+332|0,a+328|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+ -11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+332|0;g=_(3658,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Hh(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d= -J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=ha(3635,c|0,J[a+180>>2],e|0,i|0)|0;d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3657,a+332|0,a+328|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>> -2]=J[e>>2]|2;c=J[a+332>>2];Yb(b);Yb(a+196|0);xb=a+336|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function jU(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;a=xb-336|0;xb=a;J[a+328>>2]=c;J[a+332>>2]=b;i=Ff(d);j=Dj(d,a+208|0);Cj(a+196|0,d,a+324|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+ -8>>2]=0;while(1){d:{J[195395]=0;d=ca(3657,a+332|0,a+328|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d= -c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+332|0;g=_(3658,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Hh(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]= -J[a+8>>2]}J[195395]=0;c=ha(3640,c|0,J[a+180>>2],e|0,i|0)|0;d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;I[f>>1]=c;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3657,a+332|0,a+328|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];Yb(b);Yb(a+196|0);xb=a+336|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function iU(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;a=xb-336| -0;xb=a;J[a+328>>2]=c;J[a+332>>2]=b;i=Ff(d);j=Dj(d,a+208|0);Cj(a+196|0,d,a+324|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3657,a+332|0,a+328|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+ -11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+332|0;g=_(3658,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Hh(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0, -j);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=ha(3641,c|0,J[a+180>>2],e|0,i|0)|0;d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]= -0;c=ca(3657,a+332|0,a+328|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];Yb(b);Yb(a+196|0);xb=a+336|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function hU(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;a=xb-336|0;xb=a;J[a+328>>2]=c;J[a+332>>2]=b;i=Ff(d);j=Dj(d,a+208|0);Cj(a+196|0,d,a+324|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c| -0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3657,a+332|0,a+328|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1| -0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+332|0;g=_(3658,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Hh(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3660,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e; -d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=ha(3642,c|0,J[a+180>>2],e|0,i|0)|0;d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3657,a+332|0,a+328|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];Yb(b);Yb(a+196|0);xb=a+336|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function Wda(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;u=xb-192|0;xb=u;f=Nb(a,0,256);while(1){a:{i=f;d=J[(j<<2)+b>>2]+c|0;l=K[d+5|0];m=K[d+1|0];g=l+m|0;h=K[d+3|0];n=K[d+4|0];o=K[d+2|0];e=n+o|0;p=K[d+6|0];r=K[d|0];d=p+r|0;q=e+d|0;J[f>>2]=((g+h|0)+q<<2)-3584;q=P(q-(h<<2)|0,2896);s=P(d-g|0,7223)+1024|0;d=P(d-e|0,7542);J[f+24>>2]=q+(s-d|0)>>11;e=P(g-e|0,2578);J[f+16>>2]=(e+s|0)+P(g-(h<<1)|0,-5793)>>11;J[f+8>>2]=(q+(d+e|0)|0)+1024>>11; -d=o-n|0;g=r-p|0;h=P(d+g|0,5027)+1024|0;t=h+P(d,15326)|0;k=d;d=m-l|0;e=P(k+d|0,-11295);J[f+20>>2]=t+e>>11;k=e;e=P(g-d|0,1395);d=P(d+g|0,7663);J[f+12>>2]=((k+e|0)+d|0)+1024>>11;J[f+4>>2]=d+(h-e|0)>>11;d=j-7|0;j=j+1|0;f=u;b:switch(d|0){case 0:continue;case 6:break a;default:break b}f=i+32|0;continue}break}while(1){c=J[f+32>>2];g=J[a+128>>2];h=c+g|0;i=J[f+96>>2];d=J[a+64>>2];e=i+d|0;j=h+e|0;l=J[f+64>>2];m=J[a+96>>2];n=l+m|0;b=n<<1;o=J[a+32>>2];p=J[f+128>>2];r=o+p|0;q=J[f>>2];s=J[a+160>>2];v=q+s|0;w=r+ -v|0;x=J[a+224>>2];y=J[a+192>>2];z=x+y|0;A=J[f+160>>2];B=J[a>>2];t=A+B|0;k=z+t|0;J[a+128>>2]=((P(j-b|0,-4717)+P(w-b|0,1684)|0)+P(k-b|0,6817)|0)+16384>>15;J[a>>2]=P(((j+n|0)+w|0)+k|0,5350)+16384>>15;b=B-A|0;l=m-l|0;i=d-i|0;d=o-p|0;m=i+d|0;j=s-q|0;g=g-c|0;n=j-g|0;c=y-x|0;J[a+224>>2]=P(b+l-((m+n|0)+c)|0,5350)+16384>>15;h=e-h|0;e=t-z|0;o=r-v|0;p=P(e+o|0,5915)+16384|0;J[a+192>>2]=(P(h,-7376)+p|0)+P(o,-9198)>>15;J[a+64>>2]=(p+P(h,3283)|0)+P(e,1461)>>15;h=P(l,5350);e=((P(n,7518)-h|0)+P(m,-847)|0)+16384|0; -k=(e+P(i,-12700)|0)+P(g,5992)|0;i=P(c+g|0,4025)+P(b+i|0,6406)|0;J[a+160>>2]=k+i>>15;k=(e+P(d,-2269)|0)+P(j,-16423)|0;d=P(j-c|0,2499)+P(b+d|0,7141)|0;J[a+96>>2]=k+d>>15;J[a+32>>2]=(i+((h+(d+P(b,-6029)|0)|0)+P(c,-679)|0)|0)+16384>>15;f=f+4|0;a=a+4|0;C=C+1|0;if((C|0)!=7)continue;break}xb=u+192|0}function zU(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;a=xb-256|0;xb=a;J[a+248>>2]=c;J[a+252>>2]=b;h=Ff(d);Ej(a+196|0,d,a+247|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)- -1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3629,a+252|0,a+248|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395]; -J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+252|0;g=_(3630,d|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break d;J[195395]=0;g=Ih(g,h,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,763968);i=J[195395];J[195395]=0;if((i|0)==1)break d;if(g)break c;J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+ -207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=zm(3643,c,J[a+180>>2],e,h);d=zb;h=J[195395];J[195395]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3629,a+252|0,a+248|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];Yb(b);Yb(a+196|0);xb=a+256|0;break a}}c= -Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function WA(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=xb-32|0;xb=f;e=J[a>>2];a:{if(!J[b+40>>2]){H[(J[e-12>>2]+a|0)+33|0]=1;break a}g=1;e=Ab[J[e+56>>2]](a)|0;b:{if(!e)break b;c:{d:{e=Ab[J[J[e>>2]+36>>2]](e)|0;switch(e-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:break b; -case 0:case 1:case 2:case 6:case 8:case 33:case 34:case 35:case 49:case 50:case 58:case 76:case 94:case 110:break c;default:break d}}if(e)break b}g=e}Qj(f+20|0,J[b+40>>2],J[b+8>>2],g);g=J[b+8>>2];e=0;e:{i=J[b+44>>2];f:{g:{if(!i)break g;J[195395]=0;e=_(1109,(g>>>0>1073741823?-1:g<<2)|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break f;if(!g)break g;k=J[b+16>>2]>>>13&1;h=0;while(1){j=h<<2;J[j+e>>2]=J[i+j>>2];h=(h+k|0)+1|0;if(g>>>0>h>>>0)continue;break}}h=J[b+4>>2];b=J[b>>2];J[195395]=0;i=J[d+12>>2];J[f+ -8>>2]=J[d+8>>2];J[f+12>>2]=i;i=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=i;Ia(2043,a|0,f+20|0,g|0,b|0,h|0,e|0,c|0,f|0);a=J[195395];J[195395]=0;if((a|0)!=1)break e}a=Z()|0;if(H[f+31|0]<0)Kb(J[f+20>>2]);ba(a|0);B()}if(e)Kb(e);if(H[f+31|0]>=0)break a;Kb(J[f+20>>2])}xb=f+32|0}function GU(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;a=xb-256|0;xb=a;J[a+248>>2]=c;J[a+252>>2]=b;h=Ff(d);Ej(a+196|0,d,a+247|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0; -$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3629,a+252|0,a+248|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)== -1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+252|0;g=_(3630,d|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break d;J[195395]=0;g=Ih(g,h,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,763968);i=J[195395];J[195395]=0;if((i|0)==1)break d;if(g)break c;J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+ -207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=zm(3639,c,J[a+180>>2],e,h);d=zb;h=J[195395];J[195395]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3629,a+252|0,a+248|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];Yb(b);Yb(a+196|0);xb=a+256|0;break a}}c= -Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function WM(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;d=xb-48|0;xb=d;i=J[b+28>>2];J[d+24>>2]=J[b+8>>2];o=d,p=md(b,d+8|0),J[o+12>>2]=p;c=J[d+8>>2];a:{if(c)break a;c=Nc(b,95888,d+12|0);J[d+8>>2]=c;if(c)break a;c=1330926671;b:{if(J[d+12>>2]!=1330926671){e=J[d+24>>2];c=bc(b,e+12|0);J[d+44>>2]=c;if(c)break a;c=2;if(!L[d+16>>1])break a;j=e+28|0;e=0;while(1){c:{c=Nc(b,95920,d+28|0);J[d+44>>2]=c;if(c){I[d+16>>1]=e-1;break c}g= -J[b+4>>2];h=J[d+36>>2];d:{if(g>>>0>>0)break d;c=J[d+28>>2];m=g-h|0;g=J[d+40>>2];if(!((c|0)==1986884728|m>>>0>=g>>>0)&(c|0)!=1752003704)break d;f=f+1|0;e:{if((c|0)<=1651008867){if((c|0)==1296389185)break e;if((c|0)!=1397313095)break d;l=1;break d}if((c|0)!=1751474532&(c|0)!=1651008868)break d;if(g>>>0<54){c=142;break a}c=bc(b,h+12|0);J[d+44>>2]=c;if(c)break a;md(b,d+44|0);c=J[d+44>>2];if(c)break a;c=bc(b,j+(e<<4)|0);J[d+44>>2]=c;k=1;if(!c)break d;break a}n=1}e=e+1|0;if(e>>>0>1])continue}break}c= -2;if(!(f&65535))break a;if(!k){c=142;if(!l|!n)break a}J[d+8>>2]=0;c=J[d+12>>2];break b}f=L[d+16>>1];if(f)break b;c=2;break a}J[a+148>>2]=c;I[a+152>>1]=f;o=a,p=Tb(i,16,0,f&65535,0,d+8|0),J[o+156>>2]=p;c=J[d+8>>2];if(c)break a;c=bc(b,J[d+24>>2]+12|0);J[d+8>>2]=c;if(c)break a;c=Tc(b,L[d+16>>1]<<4);J[d+8>>2]=c;if(c)break a;f:{if(!L[d+16>>1]){f=0;break f}j=0;f=0;while(1){h=he(b);l=he(b);i=he(b);k=he(b);c=J[b+4>>2];g:{if(c>>>0>>0)break g;c=c-i|0;if(c>>>0>>0){if((h|0)!=1986884728&(h|0)!=1752003704)break g; -k=c&-4}g=J[a+156>>2];e=f&65535;h:{if(!e){e=0;break h}c=0;while(1){if((h|0)==J[g+(c<<4)>>2])break g;c=c+1|0;if((e|0)!=(c|0))continue;break}}c=g+(e<<4)|0;J[c+12>>2]=k;J[c+8>>2]=i;J[c+4>>2]=l;J[c>>2]=h;f=f+1|0}j=j+1|0;if(L[d+16>>1]>(j&65535)>>>0)continue;break}}I[a+152>>1]=f;Ec(b);c=J[d+8>>2]}xb=d+48|0;return c|0}function uG(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;e=J[b+88>>2];a:b:{c=K[a+2|0]|K[a+3|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;j=ld(c,J[J[e+80>>2]+P(J[e+64>>2], -20)>>2]);if((j|0)==-1)break b;c=J[e+64>>2];J[b+4>>2]=c;J[b+12>>2]=J[b+184>>2]&-15;f=0;c:{if(!c)break c;d:{e:{while(1){c=c-1|0;J[b+4>>2]=c;g=J[b+12>>2];i=J[b+8>>2];f=J[J[i+88>>2]+84>>2]+P(c,20)|0;c=L[f+12>>1];f:{if(g&c&14)break f;if(c&8)if(!Bd(i,J[f>>2],c,g))break f;i=1;c=L[f+16>>1];if(!(K[f+12|0]&16|(c&96)!=32|!K[b+20|0]&(c&543)==513))i=!K[b+21|0]&(c&287)==257;g=J[b+32>>2];if(g){c=K[g|0]|K[g+1|0]<<8;c=(c<<8|c>>>8)&65535}else c=0;g:{if(!(J[b+16>>2]&J[f+4>>2]))break g;h=K[b+23|0];if((h|0)!=K[f+15|0]? -h:0)break g;h=J[b+24>>2];h:{if(h){if(!(Ab[h|0](f,c,J[b+28>>2])|0))break g;g=J[b+32>>2];break h}if(!i)break f}if(g)J[b+32>>2]=g+2;h=J[e+80>>2];f=J[b+4>>2];g=h+P(f,20)|0;if(K[g+12|0]&8)break e;if(!(K[e+16|0]&64))break b;Ac(e,2,f,J[e+64>>2]+1|0,0,1);d=0;break a}if(i)break d}c=J[b+4>>2];if(c)continue;break}f=0;break c}c=K[g+14|0];i=c&16?0:c&15;k=J[e+64>>2];d=K[(h+P(k,20)|0)+14|0];h=d&16?0:d&15;i:{j:{if((c^d)>>>0<=31){if(d>>>0<32)break i;if((i|0)!=(h|0))break j;break i}if(!h&d>>>0>=32)break i;if(c>>>0< -32)break j;if(!i)break i}d=0;if(!(K[e+16|0]&64))break b;Ac(e,2,f,k+1|0,0,1);d=0;break a}d=K[a+4|0]|K[a+5|0]<<8;if(d)c=((d<<8|d>>>8)&65535)+a|0;else c=169776;c=ld(c,J[g>>2]);if((c|0)==-1){d=0;if(!(K[e+16|0]&64))break b;Ac(e,2,J[b+4>>2],J[e+64>>2]+1|0,0,1);d=0;break a}d=K[a+8|0]|K[a+9|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+a|0;else d=169776;e=K[a+10|0]|K[a+11|0]<<8;if(e)e=((e<<8|e>>>8)&65535)+a|0;else e=169776;a=K[a+6|0]|K[a+7|0]<<8;d=_s(d,b,j,c,e,(a<<8|a>>>8)&65535,f);break b}a=J[b+4>>2];f=(a>>>0<=1?1: -a)-1|0}if(!(K[e+16|0]&64))break b;Ac(e,2,f,J[e+64>>2]+1|0,0,1);d=0;break a}return d|0}function ak(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=J[a+584>>2];g=J[i+64>>2];e=J[i+68>>2];if((b|0)>=2624)while(1){h=L[c+620>>1];d=L[c+618>>1];a:{if(d>>>0<=e>>>0)break a;d=d-e|0;e=h>>>d|g;if(J[a+608>>2]>=J[a+600>>2])Xc(a);g=J[a+604>>2];J[a+604>>2]=g+1;H[g|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;g=0;if(d>>>0<9)break a;while(1){d=d-8|0;e=h>>>d|0;if(J[a+600>>2]<=(f|0))Xc(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f= -J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}e=e-d|0;g=(h&J[(d<<2)+287280>>2])<>2]>=J[a+600>>2])Xc(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=g;J[a+608>>2]=J[a+608>>2]+1;g=0;e=8}b=b-I[c+622>>1]|0;if((b|0)>2623)continue;break}if((b|0)>=64){j=P(b>>>6|0,6)+c|0;h=L[j+380>>1];d=L[j+378>>1];b:{if(d>>>0<=e>>>0)break b;d=d-e|0;e=h>>>d|g;if(J[a+608>>2]>=J[a+600>>2])Xc(a);g=J[a+604>>2];J[a+604>>2]=g+1;H[g|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;g=0;if(d>>>0<9)break b;while(1){d= -d-8|0;e=h>>>d|0;if(J[a+600>>2]<=(f|0))Xc(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}e=e-d|0;g=(h&J[(d<<2)+287280>>2])<>2]>=J[a+600>>2])Xc(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=g;J[a+608>>2]=J[a+608>>2]+1;g=0;e=8}b=b-I[j+382>>1]|0}c=P(b,6)+c|0;b=L[c+2>>1];d=L[c>>1];c:{if(d>>>0<=e>>>0)break c;d=d-e|0;c=b>>>d|g;if(J[a+608>>2]>=J[a+600>>2])Xc(a);e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=c;f=J[a+608>>2]+1|0;J[a+608>>2]=f; -e=8;g=0;if(d>>>0<9)break c;while(1){d=d-8|0;c=b>>>d|0;if(J[a+600>>2]<=(f|0))Xc(a);e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=c;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}c=b&J[(d<<2)+287280>>2];b=e-d|0;f=c<>2]>=J[a+600>>2])Xc(a);b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=f;J[a+608>>2]=J[a+608>>2]+1;f=0;b=8}J[i+68>>2]=b;J[i+64>>2]=f}function IU(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;a=xb-256|0;xb=a;J[a+248>>2]=c;J[a+252>>2]=b;i=Ff(d);Ej(a+196| -0,d,a+247|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3629,a+252|0,a+248|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>> -7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+252|0;g=_(3630,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Ih(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,763968);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c; -J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=ha(3635,c|0,J[a+180>>2],e|0,i|0)|0;d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3629,a+252|0,a+248|0)|0;d=J[195395];J[195395]=0; -if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];Yb(b);Yb(a+196|0);xb=a+256|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function DU(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;a=xb-256|0;xb=a;J[a+248>>2]=c;J[a+252>>2]=b;i=Ff(d);Ej(a+196|0,d,a+247|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>> -2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3629,a+252|0,a+248|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)== -1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+252|0;g=_(3630,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Ih(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,763968);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>> -2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=ha(3640,c|0,J[a+180>>2],e|0,i|0)|0;d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;I[f>>1]=c;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3629,a+252|0,a+248|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];Yb(b);Yb(a+196|0);xb=a+256|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function BU(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;a=xb-256|0;xb=a;J[a+248>>2]=c;J[a+252>>2]=b;i=Ff(d);Ej(a+196|0,d,a+247|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3629,a+252|0,a+248|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+ -11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+252|0;g=_(3630,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Ih(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,763968); -h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=ha(3641,c|0,J[a+180>>2],e|0,i|0)|0;d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]= -0;c=ca(3629,a+252|0,a+248|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];Yb(b);Yb(a+196|0);xb=a+256|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function AU(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;a=xb-256|0;xb=a;J[a+248>>2]=c;J[a+252>>2]=b;i=Ff(d);Ej(a+196|0,d,a+247|0);b=Rc(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[195395]=0;$(3558,b|0,c|0);c=J[195395];J[195395]=0;a:{b:{c:{if((c|0)!=1){if(K[b+ -11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[195395]=0;d=ca(3629,a+252|0,a+248|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[195395]=0;$(3558,b|0,d<<1);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[195395]= -0;$(3558,b|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[195395]=0;d=a+252|0;g=_(3630,d|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[195395]=0;g=Ih(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,763968);h=J[195395];J[195395]=0;if((h|0)==1)break d;if(g)break c;J[195395]=0;_(3632,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e; -d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[195395]=0;c=ha(3642,c|0,J[a+180>>2],e|0,i|0)|0;d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[195395]=0;je(a+196|0,a+16|0,J[a+12>>2],e);c=J[195395];J[195395]=0;if((c|0)==1)break f;J[195395]=0;c=ca(3629,a+252|0,a+248|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];Yb(b);Yb(a+196|0);xb=a+256|0;break a}}c=Z()|0;Yb(b);Yb(a+196|0);ba(c|0);B()}return c|0}function lm(a){a=a|0;var b= -0,c=0,d=0,e=0,f=0,g=0,h=0;d=J[a-96>>2];g=vc(1,528);if(g)a:{c=xb-48|0;xb=c;e=Nb(g,0,528);a=e+16|0;h=e+4|0;while(1){b=f<<1;I[b+a>>1]=65535;I[a+(b|2)>>1]=65535;I[a+(b|4)>>1]=65535;I[a+(b|6)>>1]=65535;I[a+(b|8)>>1]=65535;I[a+(b|10)>>1]=65535;I[a+(b|12)>>1]=65535;I[a+(b|14)>>1]=65535;f=f+8|0;if((f|0)!=256)continue;break}J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+ -36>>2]=0;I[c+44>>1]=0;J[c+40>>2]=65536;J[195395]=0;a=_(584,d|0)|0;b=J[195395];J[195395]=0;b:{c:{d:{if((b|0)==1)break d;J[c+40>>2]=a;J[195395]=0;H[c+44|0]=1;a=ca(585,d|0,1195656518)|0;b=J[195395];J[195395]=0;if((b|0)==1)break d;J[195395]=0;b=ca(611,c|0,a|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break d;J[e>>2]=b;e:{a=J[c+36>>2];if(a){J[195395]=0;ea(583,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;b=J[e>>2]}a=b?b:169776;f=J[a+12>>2];a=J[a+16>>2];J[195395]=0;a=aa(612,(a>>>0<4?169776:f)|0,b|0,d|0)| -0;b=J[195395];J[195395]=0;f:{if((b|0)==1)break f;b=J[e>>2];if(a){J[195395]=0;ea(583,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;b=169776;a=J[195395];J[195395]=0;if((a|0)==1)break f;J[e>>2]=169776}a=169776;b=b?b:169776;b=M[b+16>>2]<4?169776:J[b+12>>2];d=K[b+1|0]<<8;g:{if((K[b|0]|d)!=256)break g;d=d|K[b|0]|(K[b+2|0]<<16|K[b+3|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0<65538)break g;d=K[b+12|0]|K[b+13|0]<<8;if(!d)break g;a=b+((d<<8|d>>>8)&65535)|0}if((K[a|0]|K[a+1|0]<< -8)!=256)break c;J[195395]=0;$(613,a|0,h|0);a=J[195395];J[195395]=0;if((a|0)!=1)break c}b=Z()|0;break b}ga(0)|0;_b();B()}b=Z()|0;ed(c);break b}xb=c+48|0;break a}if(J[h>>2]){J[e+8>>2]=0;Kb(J[e+12>>2])}J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;ba(b|0);B()}return g|0}function Uo(a){var b=0;b=5;a:{b:{c:{d:{if((a|0)<=1315070323){if((a|0)<=1215655526){if((a|0)<=1130918514){if((a|0)<=1098018152){if((a|0)==1097100397)break a;if((a|0)!=1098015074)break b;break a}if((a|0)==1098018153)break a;if((a|0)!=1098281844)break b; -break a}if((a|0)<=1164736876){if((a|0)==1130918515)break a;if((a|0)!=1131442804)break b;break a}if((a|0)==1164736877|(a|0)==1214346354)break a;if((a|0)!=1214603890)break b;break a}if((a|0)<=1298493027){if((a|0)<=1283023976){if((a|0)==1215655527|(a|0)==1232363884)break d;if((a|0)!=1265131890)break b;break a}switch(a-1298230884|0){case 0:case 5:break a;case 1:case 2:case 3:case 4:break b;default:break c}}e:switch(a-1298494051|0){case 0:case 12:break a;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break b; -default:break e}if((a|0)==1298493028)break a;if((a|0)!=1315009122)break b;break a}if((a|0)<=1383032934){if((a|0)<=1349020776){if((a|0)<=1332898663){if((a|0)==1315070324)break a;if((a|0)!=1315663727)break b;break a}if((a|0)==1332898664|(a|0)==1333094258)break a;if((a|0)!=1348562029)break b;break a}f:switch(a-1349020777|0){case 0:case 7:break a;case 1:case 2:case 3:case 4:case 5:case 6:break b;default:break f}if((a|0)==1349021304)break a;if((a|0)!=1349678185)break b;break a}if((a|0)<=1399809891){if((a| -0)<=1398893937){if((a|0)==1383032935)break a;if((a|0)==1383427698)break d;break b}if((a|0)==1398893938)break a;if((a|0)!=1398895202)break b;break a}if((a|0)<=1415999078){g:switch(a-1399809892|0){case 0:case 11:break a;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:break b;default:break g}if((a|0)!=1400468067)break b;break a}if((a|0)==1499822697|(a|0)==1416126817)break a;if((a|0)!=1415999079)break b}return 0}if((a|0)==1283023977)break a}b=4}return b}function ap(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,w=0;i=J[b+12>>2];j=J[b+4>>2];a:{if(i>>>0>>0)break a;k=J[b+8>>2];if(k-a>>>0<8)break a;c=K[a|0]|K[a+1|0]<<8;if(((c<<8|c>>>8)&65535)>>>0<4)break a;c=a+2|0;if(c-j>>>0>i>>>0|k-c>>>0<2)break a;c=K[a+2|0]|K[a+3|0]<<8;d=((c<<8|c>>>8)&65535)+a|0;if(d-j>>>0>i>>>0|k-d>>>0<4)break a;c=d+2|0;if(c-j>>>0>i>>>0|k-c>>>0<2)break a;c=d+4|0;if(c-j>>>0>i>>>0)break a;l=k-c|0;c=K[d+2|0]|K[d+3|0]<<8;c=(c<<8|c>>>8)&65535;if(l>>>0>>0)break a; -f=J[b+16>>2]-c|0;J[b+16>>2]=f;if((f|0)<=0)break a;c=K[a+6|0]|K[a+7|0]<<8;q=((c<<8|c>>>8)&65535)+a|0;t=k-q|0;c=K[a+4|0]|K[a+5|0]<<8;r=(c<<8|c>>>8)&65535;l=r+a|0;u=k-l|0;a=K[a|0]|K[a+1|0]<<8;p=(a<<8|a>>>8)&65535;v=q-j>>>0>i>>>0;w=l-j>>>0>i>>>0;a=0;c=0;while(1){b:{if(!(a&1)){d=c;break b}Kpa(m,0,p,0);if(zb)return 0;h=0;e=P(m,p);g=e+l|0;if(g-j>>>0>i>>>0|k-g>>>0<0-e>>>0)break a;a=e+f|0;J[b+16>>2]=a;if((a|0)<=0)break a;f=a+(m-s|0)|0;J[b+16>>2]=f;if((f|0)<=0|(e|0)>0)break a;a=l;d=c;if((e|0)<0)while(1){a= -a-1|0;e=K[a|0]+1|0;d=d>>>0>e>>>0?d:e;if(a>>>0>g>>>0)continue;break}s=m}if((n|0)<=(o|0)){h=0;if(w)break a;e=o+1|0;g=P(e,p);if(g>>>0>u>>>0)break a;a=f-g|0;J[b+16>>2]=a;if((a|0)<=0)break a;f=a+((o^-1)+n|0)|0;J[b+16>>2]=f;if((g|0)<0|(f|0)<=0)break a;a=P(n,p);if((a|0)<(g|0)){g=g+l|0;a=a+l|0;while(1){n=K[a|0]+1|0;d=d>>>0>n>>>0?d:n;a=a+1|0;if(g>>>0>a>>>0)continue;break}}n=e}h=0;if(v)break a;e=d<<2;if(e>>>0>t>>>0)break a;a=f-e|0;J[b+16>>2]=a;if((a|0)<=0)break a;f=a+(c-d|0)|0;J[b+16>>2]=f;if((f|0)<=0)break a; -if((c|0)<(d|0)){e=e+q|0;h=(c<<2)+q|0;while(1){a=K[h|0]|K[h+1|0]<<8;a=(((a<<8|a>>>8)&65535)-r|0)/(p|0)|0;o=(a|0)<(o|0)?o:a;m=(a|0)>(m|0)?m:a;h=h+4|0;if(e>>>0>h>>>0)continue;break}}c=d;a=(m|0)<(s|0);if(a|(n|0)<=(o|0))continue;break}h=1}return h}function Kg(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,r=0,s=0,t=0,u=0,v=0;e=c?b+16|0:b;b=(b<<2)+a|0;b=J[(c?b+136|0:b+120|0)>>2];if(!b){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=52;Ab[J[J[a>>2]>>2]](a)}if(!J[b+276>>2]){c=J[a+24>>2];f=J[c>>2]; -J[c>>2]=f+1;H[f|0]=255;f=J[c+4>>2]-1|0;J[c+4>>2]=f;a:{if(f)break a;if(Ab[J[c+12>>2]](a)|0)break a;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=196;f=J[c+4>>2]-1|0;J[c+4>>2]=f;b:{if(f)break b;if(Ab[J[c+12>>2]](a)|0)break b;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}d=K[b+16|0];g=K[b+15|0];h=K[b+14|0];i=K[b+13|0];j=K[b+12|0];k=K[b+11|0];l=K[b+10|0];m=K[b+9|0];n=K[b+8|0];o=K[b+7|0];p=K[b+6|0];q=K[b+5|0];r=K[b+4|0];s=K[b+3|0];t=K[b+2|0];u=K[b+1|0];c=J[a+24>>2];f=J[c>>2]; -J[c>>2]=f+1;v=f;f=d+(g+(h+((((((((((((t+u|0)+s|0)+r|0)+q|0)+p|0)+o|0)+n|0)+m|0)+l|0)+k|0)+j|0)+i|0)|0)|0)|0;g=f+19|0;H[v|0]=g>>>8;d=J[c+4>>2]-1|0;J[c+4>>2]=d;c:{if(d)break c;if(Ab[J[c+12>>2]](a)|0)break c;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g;d=J[c+4>>2]-1|0;J[c+4>>2]=d;d:{if(d)break d;if(Ab[J[c+12>>2]](a)|0)break d;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;e=J[c+4>>2]-1|0;J[c+4>>2]=e;e:{if(e)break e;if(Ab[J[c+12>> -2]](a)|0)break e;c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}c=1;while(1){g=K[b+c|0];e=J[a+24>>2];d=J[e>>2];J[e>>2]=d+1;H[d|0]=g;d=J[e+4>>2]-1|0;J[e+4>>2]=d;f:{if(d)break f;if(Ab[J[e+12>>2]](a)|0)break f;e=J[a>>2];J[e+20>>2]=25;Ab[J[e>>2]](a)}c=c+1|0;if((c|0)!=17)continue;break}if(f){c=0;while(1){g=K[(b+c|0)+17|0];e=J[a+24>>2];d=J[e>>2];J[e>>2]=d+1;H[d|0]=g;d=J[e+4>>2]-1|0;J[e+4>>2]=d;g:{if(d)break g;if(Ab[J[e+12>>2]](a)|0)break g;e=J[a>>2];J[e+20>>2]=25;Ab[J[e>>2]](a)}c=c+1|0;if(f>>>0>c>>>0)continue; -break}}J[b+276>>2]=1}}function ff(a,b,c){a=a|0;b=+b;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=xb-160|0;xb=d;a:{i=R(b);b:{if(R(V(i)-i)<=2.220446049250313E-16){if(i<2147483648){Xk(a,~~b);break b}Xk(a,-2147483648);break b}J[d+16>>2]=0;J[195395]=0;J[d+76>>2]=391372;J[d+12>>2]=391352;J[d+20>>2]=391132;j=d+76|0;g=d+24|0;$(1859,j|0,g|0);e=J[195395];J[195395]=0;c:{if((e|0)!=1){e=d+20|0;J[d+148>>2]=0;J[d+152>>2]=-1;J[195395]=0;J[d+76>>2]=391152;J[d+12>>2]=391112;J[d+20>>2]=391132;g=_(1860,g|0)|0;f=J[195395]; -J[195395]=0;if((f|0)!=1)break c;break a}break a}J[g>>2]=391512;f=d- -64|0;J[f>>2]=0;J[f+4>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+72>>2]=24;f=J[d+20>>2]-12|0;h=e+J[f>>2]|0;J[h+4>>2]=J[h+4>>2]&-261|4;J[(e+J[f>>2]|0)+8>>2]=(c|0)<0?i<1?10:5:c;J[195395]=0;sb(1861,e|0,+b)|0;c=J[195395];J[195395]=0;d:{e:{f:{g:{if((c|0)!=1){J[195395]=0;$(1862,d|0,g|0);c=J[195395];J[195395]=0;if((c|0)==1)break f;h=Ew(d,46,0);if((h|0)!=-1)break g;c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;J[a+8>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]= -0;J[d+4>>2]=0;break d}c=Z()|0;break e}e=K[d+11|0];c=e<<24>>24<0;h:{i:{f=c?J[d+4>>2]:e;e=h+1|0;j:{if(f>>>0<=e>>>0)break j;k=e<<2;e=c?J[d>>2]:d;c=k+e|0;k=e+(f<<2)|0;while(1){if(J[c>>2]==48){c=c+4|0;if((k|0)!=(c|0))continue;break j}break}c=c-e|0;if((c|0)!=-4)break i}J[195395]=0;ka(1806,a|0,d|0,0,h|0,d+159|0)|0;break h}c=c>>2;c=e+((f>>>0>c+4>>>0?c+5|0:f)<<2)|0;k:{while(1){f=0;if((c|0)==(e|0))break k;c=c-4|0;if(J[c>>2]==48)continue;break}f=(c-e>>2)+1|0}J[195395]=0;ka(1806,a|0,d|0,0,f|0,d+159|0)|0}a=J[195395]; -J[195395]=0;if((a|0)!=1)break d;c=Z()|0;if(H[d+11|0]>=0)break e;Kb(J[d>>2]);break e}c=Z()|0}hC(d+12|0);ba(c|0);B()}if(H[d+11|0]<0)Kb(J[d>>2]);J[d+76>>2]=391152;J[d+12>>2]=391112;J[d+20>>2]=391132;J[g>>2]=391512;if(H[d+67|0]<0)Kb(J[d+56>>2]);Uf(g);Be(j)}xb=d+160|0;return}a=Z()|0;Be(j);ba(a|0);B()}function V2(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-80|0;xb=c;a:{b:{c:{d:{e:{f:{b=J[a+80>>2];g:{if(!b)break g;d=Ab[J[J[b>>2]+112>>2]](b)|0;if(!d)break g;e=c+68|0;b=a+8|0;Ri(e,b,d,0);d=K[c+79|0];a=d<<24>> -24;if((a|0)<0?J[c+72>>2]:d){J[195395]=0;a=aa(1956,c+32|0,397860,e|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;J[c+64>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[195395]=0;H[c+24|0]=0;J[c+20>>2]=c+56;d=_(1078,24)|0;e=J[195395];J[195395]=0;h:{i:{if((e|0)!=1){J[c+60>>2]=d;J[c+56>>2]=d;J[195395]=0;J[c+64>>2]=d+24;e=ha(1957,c- -64|0,a|0,a+24|0,d|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break h;b=Z()|0;J[c+60>>2]=d;break i}b=Z()|0}Kc(c+20|0);Vb(a);break a}J[c+60>>2]=e;if(H[a+23|0]<0)Kb(J[a+12>>2]);if(H[a+11| -0]<0)Kb(J[a>>2]);J[195395]=0;ea(1958,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;d=c+56|0;la(1959,b|0,d|0,0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;fa(1960,b|0,d|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=_(1078,32)|0;e=J[195395];J[195395]=0;if((e|0)==1)break d;J[c+20>>2]=a;J[c+24>>2]=4;J[c+28>>2]=-2147483640;e=J[99525];J[a+8>>2]=J[99524];J[a+12>>2]=e;e=J[99523];J[a>>2]=J[99522];J[a+4>>2]=e;J[a+16>>2]=0;J[195395]=0;J[c+8>>2]=0;H[c+19|0]=0;ia(1961, -b|0,c+20|0,d|0,c+8|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]<0)Kb(J[c+20>>2]);d=J[c+56>>2];if(d){b=d;a=J[c+60>>2];if((d|0)!=(a|0)){while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);b=a-24|0;if(H[a-13|0]<0)Kb(J[b>>2]);a=b;if((d|0)!=(a|0))continue;break}b=J[c+56>>2]}J[c+60>>2]=d;Kb(b)}a=K[c+79|0]}if(a<<24>>24>=0)break g;Kb(J[c+68>>2])}xb=c+80|0;return}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[c+19|0]<0)Kb(J[c+8>>2]);if(H[c+31|0]>=0)break b;Kb(J[c+ -20>>2])}Hc(c+56|0)}if(H[c+79|0]<0)Kb(J[c+68>>2]);ba(b|0);B()}function AE(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=1;b=J[a+336>>2];a:{b:{if((b|0)==1){b=J[a+340>>2];J[a+356>>2]=J[b+28>>2];c=J[b+32>>2];J[a+360>>2]=c;J[b+64>>2]=1;J[b+56>>2]=1;J[b+60>>2]=1;J[b+72>>2]=1;J[b+68>>2]=J[b+36>>2];f=b;b=J[b+12>>2];c=(c>>>0)%(b>>>0)|0;J[f+76>>2]=c?c:b;J[a+364>>2]=1;J[a+368>>2]=0;break b}if(b-5>>>0<=4294967291){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=27;J[J[a>>2]+28>>2]=4;Ab[J[J[a>>2]>>2]](a)}b=P(J[a+424>> -2],J[a+312>>2]);J[a+356>>2]=((b+J[a+28>>2]|0)-1|0)/(b|0);b=P(J[a+424>>2],J[a+316>>2]);b=((b+J[a+32>>2]|0)-1|0)/(b|0)|0;J[a+364>>2]=0;J[a+360>>2]=b;if(J[a+336>>2]<=0)break a;h=a+368|0;while(1){b=J[((e<<2)+a|0)+340>>2];d=J[b+8>>2];J[b+56>>2]=d;g=J[b+12>>2];J[b+60>>2]=g;c=P(d,g);J[b+64>>2]=c;J[b+68>>2]=P(d,J[b+36>>2]);f=M[b+28>>2]%(d>>>0)|0;J[b+72>>2]=f?f:d;f=b;b=M[b+32>>2]%(g>>>0)|0;J[f+76>>2]=b?b:g;if((c+J[a+364>>2]|0)>=11){b=J[a>>2];J[b+20>>2]=14;Ab[J[b>>2]](a)}c:{if((c|0)<=0)break c;d=0;b=c;g=b& -3;if(g)while(1){f=J[a+364>>2];J[a+364>>2]=f+1;J[((f<<2)+a|0)+368>>2]=e;b=b-1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(c>>>0<4)break c;while(1){c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=b-5|0;b=b-4|0;if(c>>>0<4294967294)continue;break}}d=J[a+336>>2];e=e+1|0;if((d|0)>(e|0))continue;break}if((d|0)<=0)break a}b=0;while(1){e=J[((b<<2)+a|0)+340>>2];if(!J[e+ -80>>2]){c=J[e+16>>2];if(!(J[((c<<2)+a|0)+164>>2]?c>>>0<=3:0)){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=54;Ab[J[J[a>>2]>>2]](a)}i=e,j=Mb(Ab[J[J[a+4>>2]>>2]](a,1,132)|0,J[((c<<2)+a|0)+164>>2],132),J[i+80>>2]=j;d=J[a+336>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}}Ab[J[J[a+464>>2]>>2]](a);Ab[J[J[a+448>>2]>>2]](a);J[J[a+456>>2]>>2]=J[J[a+448>>2]+4>>2]}function Tv(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;m=K[b+7|0]&254|K[b+6|0]<<8;a:{if(!m)break a;g=J[c>>2]+((d|0)!=0)|0;if(g>>> -0>65535)break a;p=J[a+508>>2]+J[a+512>>2]|0;f=m>>>1|0;q=f>>>0<=1?1:f;r=f-1|0;l=b+14|0;f=(b+m|0)+16|0;b:{c:{if(d){while(1){b=f;i=K[b|0]<<8|K[b+1|0];g=g>>>0>i>>>0?g:i;h=K[l+1|0]|K[l|0]<<8;s=(i|0)==65535&(h|0)==65535&n>>>0>=r>>>0;f=b+2|0;l=l+2|0;j=b+m|0;k=j+m|0;t=k+2|0;d:{while(1){if(g>>>0>h>>>0)break d;b=K[j|0]|K[j+1|0]<<8;e=K[k+1|0]|K[k|0]<<8;o=(e|0)!=0&s&e+t>>>0>p>>>0;b=o?1:(b<<8|b>>>8)<<16>>16;e:{f:{e=o?0:e;if(e){if((e|0)==65535)break d;e=(e+k|0)+(g-i<<1)|0;if(e>>>0>p>>>0)break d;e=K[e+1|0]|K[e| -0]<<8;if(!e){b=g;break e}e=b+e&65535;if(e>>>0>2])break f;b=g;break e}o=b+g|0;e=o&65535;if(e>>>0>2])break f;e=b+h|0;if(!((e|0)<0|(o|0)>=0)){b=0-b|0;break e}if((e|0)<65536|(o|0)>65535)break d;b=65536-b|0;break e}b=g;if(e)break c}g=b+1|0;if(b>>>0<=65534)continue;break}e=0;g=b;break b}n=n+1|0;if((q|0)!=(n|0))continue;break}e=0;break c}g:{h:{i:{j:{k:{while(1){k=K[f+1|0]|K[f|0]<<8;if(k>>>0>g>>>0)break a;g=g>>>0>k>>>0?g:k;b=f+m|0;i=b+m|0;l:{h=K[l+1|0]|K[l|0]<<8;if(!((k|0)==65535&(h|0)==65535& -n>>>0>=r>>>0)){if(g>>>0>h>>>0)break l;h=K[i+1|0]|K[i|0]<<8;if((h|0)==65535)break l;if(!h)break k;f=(h+i|0)+(g-k<<1)|0;f=K[f|0]<<8|K[f+1|0];if(f)break h;break c}if(g>>>0>h>>>0)break l;j=K[i+1|0]|K[i|0]<<8;h=(j|0)!=0&j+(i+2|0)>>>0>p>>>0;j=h?0:j;if((j|0)==65535)break l;if(!j)break j;f=(i+j|0)+(g-k<<1)|0;f=K[f|0]<<8|K[f+1|0];if(!f)break c;b=f+(h?1:K[b+1|0]|K[b|0]<<8)|0;break g}f=f+2|0;l=l+2|0;n=n+1|0;if((q|0)!=(n|0))continue;break}break c}a=K[b+1|0]|K[b|0]<<8;break i}a=h?1:K[b+1|0]|K[b|0]<<8}return a+ -g&65535}b=f+(K[b+1|0]|K[b|0]<<8)|0}b=b&65535;e=b>>>0>2]?b:0}if(!d)break a}J[c>>2]=g}return e}function tE(a){var b=0,c=0,d=0;c=J[a+480>>2];a=Ab[J[J[a+4>>2]>>2]](a,1,2044)|0;b=a+1020|0;J[c+40>>2]=b;J[a+1016>>2]=-1;J[a+1020>>2]=0;J[a+1024>>2]=1;J[a+1028>>2]=2;J[a+1032>>2]=3;J[a+1036>>2]=4;J[a+1008>>2]=-3;J[a+1012>>2]=-2;J[a+1040>>2]=5;J[a+1044>>2]=6;J[a+1E3>>2]=-5;J[a+1004>>2]=-4;J[a+1048>>2]=7;J[a+1052>>2]=8;J[a+992>>2]=-7;J[a+996>>2]=-6;J[a+1056>>2]=9;J[a+1060>>2]=10;J[a+984>>2]=-9;J[a+988>> -2]=-8;J[a+1064>>2]=11;J[a+1068>>2]=12;J[a+976>>2]=-11;J[a+980>>2]=-10;J[a+1072>>2]=13;J[a+1076>>2]=14;J[a+968>>2]=-13;J[a+972>>2]=-12;J[a+1080>>2]=15;J[a+1084>>2]=16;J[a+960>>2]=-15;J[a+964>>2]=-14;J[a+956>>2]=-16;J[a+1088>>2]=16;J[a+1092>>2]=17;J[a+1096>>2]=17;J[a+948>>2]=-17;J[a+952>>2]=-16;J[a+1100>>2]=18;J[a+940>>2]=-18;J[a+944>>2]=-17;J[a+1104>>2]=18;J[a+1108>>2]=19;J[a+932>>2]=-19;J[a+936>>2]=-18;J[a+924>>2]=-20;J[a+928>>2]=-19;J[a+1112>>2]=19;J[a+1116>>2]=20;J[a+1120>>2]=20;J[a+1124>>2]=21; -J[a+916>>2]=-21;J[a+920>>2]=-20;J[a+1128>>2]=21;J[a+1132>>2]=22;J[a+908>>2]=-22;J[a+912>>2]=-21;J[a+1136>>2]=22;J[a+1140>>2]=23;J[a+900>>2]=-23;J[a+904>>2]=-22;J[a+1144>>2]=23;J[a+1148>>2]=24;J[a+892>>2]=-24;J[a+896>>2]=-23;J[a+1152>>2]=24;J[a+1156>>2]=25;J[a+888>>2]=-24;J[a+1160>>2]=25;J[a+884>>2]=-25;J[a+1164>>2]=26;J[a+880>>2]=-25;J[a+1168>>2]=26;J[a+876>>2]=-26;J[a+1172>>2]=27;J[a+872>>2]=-26;J[a+1176>>2]=27;J[a+868>>2]=-27;J[a+1180>>2]=28;J[a+864>>2]=-27;J[a+1184>>2]=28;J[a+860>>2]=-28;J[a+1188>> -2]=29;J[a+856>>2]=-28;J[a+1192>>2]=29;J[a+852>>2]=-29;J[a+1196>>2]=30;J[a+848>>2]=-29;J[a+1200>>2]=30;J[a+844>>2]=-30;J[a+1204>>2]=31;J[a+840>>2]=-30;J[a+1208>>2]=31;J[a+836>>2]=-31;J[a+832>>2]=-31;d=48;while(1){a=d<<2;J[a+b>>2]=32;J[b-a>>2]=-32;c=a|4;J[c+b>>2]=32;J[b-c>>2]=-32;c=a|8;J[c+b>>2]=32;J[b-c>>2]=-32;a=a|12;J[a+b>>2]=32;J[b-a>>2]=-32;d=d+4|0;if((d|0)!=256)continue;break}}function as(a,b){var c=0,d=0,e=0,f=0,g=0;c=I[a+1012>>1];a:{d=L[a+1014>>1];if(!d){b:{if((c|0)>0)break b;J[a+1024>>2]=J[a+ -1020>>2];c=J[a+988>>2];if((c|0)>=16383){c=0;d=Ab[J[J[b>>2]+12>>2]](b,J[a+996>>2],1,16383,0,0)|0;J[a+992>>2]=d;if((d|0)<=16382)H[d+J[a+996>>2]|0]=255;J[a+988>>2]=0}if(J[a+992>>2]<=(c|0))break a;J[a+988>>2]=c+1;d=K[J[a+996>>2]+c|0];I[a+1012>>1]=d;c=0;if(!d)break b;d=0;while(1){c=J[a+988>>2];if((c|0)>=16383){c=Ab[J[J[b>>2]+12>>2]](b,J[a+996>>2],1,16383,0,0)|0;J[a+992>>2]=c;if((c|0)<=16382)H[c+J[a+996>>2]|0]=255;J[a+988>>2]=0;c=0}if(J[a+992>>2]<=(c|0))return-1;J[a+988>>2]=c+1;H[J[a+1020>>2]+d|0]=K[J[a+ -996>>2]+c|0];c=I[a+1012>>1];d=d+1|0;if((c|0)>(d|0))continue;break}}d=J[a+1024>>2];J[a+1024>>2]=d+1;d=K[d|0];I[a+1014>>1]=8;H[a+1016|0]=d;c=c-1|0;I[a+1012>>1]=c;d=8}if(c<<16>>16<0)return I[a+1004>>1];f=d<<16>>16;g=K[a+1016|0]>>>8-f|0;e=I[a+1E3>>1];if((f|0)<(e|0))while(1){c:{if(c<<16>>16>0)break c;J[a+1024>>2]=J[a+1020>>2];c=J[a+988>>2];if((c|0)>=16383){c=Ab[J[J[b>>2]+12>>2]](b,J[a+996>>2],1,16383,0,0)|0;J[a+992>>2]=c;if((c|0)<=16382)H[c+J[a+996>>2]|0]=255;J[a+988>>2]=0;c=0}if(J[a+992>>2]<=(c|0))break a; -J[a+988>>2]=c+1;d=K[J[a+996>>2]+c|0];I[a+1012>>1]=d;c=0;if(!d)break c;d=0;while(1){c=J[a+988>>2];if((c|0)>=16383){c=Ab[J[J[b>>2]+12>>2]](b,J[a+996>>2],1,16383,0,0)|0;J[a+992>>2]=c;if((c|0)<=16382)H[c+J[a+996>>2]|0]=255;J[a+988>>2]=0;c=0}if(J[a+992>>2]<=(c|0))return-1;J[a+988>>2]=c+1;H[J[a+1020>>2]+d|0]=K[J[a+996>>2]+c|0];c=I[a+1012>>1];d=d+1|0;if((c|0)>(d|0))continue;break}}d=J[a+1024>>2];J[a+1024>>2]=d+1;d=K[d|0];H[a+1016|0]=d;e=L[a+1014>>1];f=e+8|0;I[a+1014>>1]=f;c=c-1|0;I[a+1012>>1]=c;g=d<>16;e=I[a+1E3>>1];if((d|0)<(e|0))continue;break}I[a+1014>>1]=d-e;return(J[(e<<2)+241728>>2]&g)<<16>>16}I[a+1012>>1]=65535;return-1}function eI(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=xb+-64|0;xb=f;a:{if(M[a+16>>2]<=c>>>0)break a;if(J[b+104>>2]){J[f+60>>2]=-8388609;J[f+52>>2]=2139095039;J[f+56>>2]=-8388609;J[f+48>>2]=2139095039;H[f+44|0]=1;J[f+40>>2]=0;J[f+36>>2]=d;J[f+32>>2]=b;if(d)J[f+60>>2]=-8388609;d=J[f+60>>2];J[f+24>>2]=J[f+56>>2];J[f+28>>2]=d;d=J[f+52>>2];J[f+16>>2]=J[f+48>>2];J[f+ -20>>2]=d;d=J[f+44>>2];J[f+8>>2]=J[f+40>>2];J[f+12>>2]=d;d=J[f+36>>2];J[f>>2]=J[f+32>>2];J[f+4>>2]=d;h=ot(a,b,c,f);break a}e=J[a+20>>2];e=J[(e?e:169776)+12>>2];b:{if(K[a+12|0]){e=e+(c<<1)|0;g=K[e|0]|K[e+1|0]<<8;g=((g<<8|g>>>8)&65535)<<1;e=K[e+2|0]|K[e+3|0]<<8;e=((e<<8|e>>>8)&65535)<<1;break b}e=e+(c<<2)|0;g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);e=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24)}h=1;if(e>>> -0>>0)break a;i=J[a+24>>2];i=i?i:169776;if(e>>>0>M[i+16>>2])break a;g=e-g>>>0<10?169776:J[i+12>>2]+g|0;e=K[g|0]|K[g+1|0]<<8;if(!e)break a;if((e|0)!=65535)if((e<<8|e>>>8)<<16>>16<=0)break a;e=K[g+2|0]|K[g+3|0]<<8;i=(e<<8|e>>>8)<<16>>16;h=K[g+6|0]|K[g+7|0]<<8;k=(h<<8|h>>>8)<<16>>16;e=(i|0)>(k|0)?h:e;e=(e<<8|e>>>8)<<16>>16;h=J[a+4>>2];j=J[h>>2];c:{d:{if(j>>>0>c>>>0){a=J[h+20>>2];a=(J[(a?a:169776)+12>>2]+(c<<2)|0)+2|0;break d}a=e;if(M[h+4>>2]<=c>>>0)break c;a=J[h+20>>2];a=(J[(a?a:169776)+12>>2]+(j<< -2)|0)+(c-j<<1)|0}a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)<<16>>16}J[d>>2]=a;a=K[g+4|0]|K[g+5|0]<<8;c=(a<<8|a>>>8)<<16>>16;h=K[g+8|0]|K[g+9|0]<<8;j=(h<<8|h>>>8)<<16>>16;a=(c|0)<(j|0)?h:a;a=(a<<8|a>>>8)<<16>>16;J[d+4>>2]=a;h=g+((i|0)<(k|0)?6:2)|0;h=K[h|0]|K[h+1|0]<<8;J[d+8>>2]=((h<<8|h>>>8)<<16>>16)-e;c=(c|0)>(j|0)?g+8|0:g+4|0;c=K[c|0]|K[c+1|0]<<8;J[d+12>>2]=((c<<8|c>>>8)<<16>>16)-a;ri(b,d);h=1}xb=f- -64|0;return h}function dna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a; -J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=c;d=J[c+12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0>67108863)e=1073741823;else{e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;b:{if(!d)break b;c:{d:{e:{f:{g:{if(f>>>0<4)break g;h:{i:{c=K[d|0]|K[d+1|0]<<8;switch((c<<8|c>>>8)&65535){case 0:break h;case 1:break i;default:break f}}if(!at(d,a))break g;break f}if($s(d,a))break f}j:{if(K[a+28|0]|!J[a+32>>2])break j;c=Cc(b);J[a+ -4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break j;while(1){H[a+28|0]=1;c=J[a+36>>2];d=J[c+12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0<=67108863){e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}else e=1073741823;J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;if(!d)break b;k:{if(f>>>0<4)break k;l:{m:{c=K[d|0]|K[d+1|0]<<8;switch((c<<8|c>>>8)&65535){case 1:break l;case 0:break m;default:break f}}if(!$s(d,a))break k;break f}if(at(d,a))break f}if(K[a+28|0]|!J[a+32>>2])break j; -c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;c=0;n:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-d>>>0<4)break n;c=1;o:{p:{f=K[d|0]|K[d+1|0]<<8;switch((f<<8|f>>>8)&65535){case 1:break o;case 0:break p;default:break n}}c=$s(d,a);break n}c=at(d,a)}d=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(d)break e;if(c)break c}Ub(b);return 169776}Ub(J[a+36>> -2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function pM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb-16|0;xb=g;f=J[a+4>>2]&2147418112;a:{if(d&16){if(f|K[a+9|0]&128){i=7;if(!(K[a+740|0]&16))break a}if(!c){i=0;break a}b:{if(K[a+292|0]){d=0;f=1;break b}if(L[a+372>>1]==65535){b=I[a+220>>1]-I[a+222>>1]|0;a=b>>31;a=(a^b)-a&65535;i=0;b=0;if(c>>>0>=8){h=c&-8;f= -0;while(1){d=b<<2;J[d+e>>2]=a;J[(d|4)+e>>2]=a;J[(d|8)+e>>2]=a;J[(d|12)+e>>2]=a;J[(d|16)+e>>2]=a;J[(d|20)+e>>2]=a;J[(d|24)+e>>2]=a;J[(d|28)+e>>2]=a;b=b+8|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}c=c&7;if(!c)break a;d=0;while(1){J[(b<<2)+e>>2]=a;b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break a}b=I[a+442>>1]-I[a+444>>1]|0;a=b>>31;a=(a^b)-a&65535;i=0;b=0;if(c>>>0>=8){h=c&-8;f=0;while(1){d=b<<2;J[d+e>>2]=a;J[(d|4)+e>>2]=a;J[(d|8)+e>>2]=a;J[(d|12)+e>>2]=a;J[(d|16)+e>>2]=a;J[(d|20)+e>>2]=a;J[(d|24)+ -e>>2]=a;J[(d|28)+e>>2]=a;b=b+8|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}c=c&7;if(!c)break a;d=0;while(1){J[(b<<2)+e>>2]=a;b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break a}while(1){i=(d<<2)+e|0;c:{if(f&255){Ab[J[J[a+540>>2]+140>>2]](a,1,b+d|0,g+14|0,g+12|0);f=L[g+12>>1];break c}if(L[a+372>>1]!=65535){h=I[a+442>>1]-I[a+444>>1]|0;f=h>>31;f=(f^h)-f|0;break c}h=I[a+220>>1]-I[a+222>>1]|0;f=h>>31;f=(f^h)-f|0}J[i>>2]=f&65535;d=d+1|0;if((d|0)!=(c|0)){f=K[a+292|0];continue}break}i=0;break a}if(f|K[a+ -9|0]&128){i=7;if(!(K[a+740|0]&2))break a}if(!c){i=0;break a}i=0;d=0;if((c|0)!=1){h=c&-2;f=0;while(1){j=g+10|0;k=g+8|0;Ab[J[J[a+540>>2]+140>>2]](a,0,b+d|0,j,k);J[(d<<2)+e>>2]=L[g+8>>1];l=d|1;Ab[J[J[a+540>>2]+140>>2]](a,0,l+b|0,j,k);J[(l<<2)+e>>2]=L[g+8>>1];d=d+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!(c&1))break a;Ab[J[J[a+540>>2]+140>>2]](a,0,b+d|0,g+10|0,g+8|0);J[(d<<2)+e>>2]=L[g+8>>1]}xb=g+16|0;return i|0}function Qka(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;e=xb-32|0;xb=e;d= -J[a+84>>2];a:{if(!(!J[d+88>>2]|b|J[d+72>>2]!=1651078259)){a=Qb(60);J[a+8>>2]=0;J[a>>2]=15;J[a+4>>2]=0;b=J[d+24>>2];J[a+12>>2]=b;c=J[d+28>>2];J[a+24>>2]=c;J[a+20>>2]=b;J[a+16>>2]=c;J[a+28>>2]=J[d+40>>2];J[a+32>>2]=J[d+32>>2];J[a+36>>2]=J[d+36>>2];J[a+40>>2]=J[d+52>>2];J[a+44>>2]=J[d+44>>2];J[a+48>>2]=J[d+48>>2];J[a+52>>2]=J[d+56>>2];J[a+56>>2]=J[d+60>>2];break a}h=xb-16|0;xb=h;i=e+28|0;b:{if(!d|!i)break b;f=J[d>>2];if(!f)break b;j=J[f>>2];g=J[d+72>>2];c=29224;c:{d:{if((g|0)==1651078259)break d;c=29256; -if((g|0)==1869968492)break d;e:{f:{if(!f)break f;c=J[f+148>>2];if(!c)break f;while(1){a=J[c+8>>2];if((g|0)==J[a+16>>2])break e;c=J[c+4>>2];if(c)continue;break}}a=0}if(!a)break c;c=a+20|0}a=tc(j,J[c>>2],h+12|0);if(J[h+12>>2])break b;J[a+4>>2]=c;J[a>>2]=f;J[a+8>>2]=J[c+4>>2];g:{f=J[d+64>>2];h:{if(f-2097152>>>0<4290772993)break h;g=J[d+68>>2];if(g-2097152>>>0<4290772993)break h;J[a+16>>2]=g<<10;J[a+12>>2]=f<<10;if(!(Ab[J[c+8>>2]](a,d)|0))break g;c=J[a+4>>2]}f=J[J[a>>2]>>2];c=J[c+12>>2];if(c)Ab[c|0](a); -if(a)Ab[J[f+8>>2]](f,a);break b}J[i>>2]=a}}xb=h+16|0;c=J[e+28>>2];if(!c){a=0;break a}a=Qb(800);J[e+20>>2]=200;J[e+16>>2]=a;J[a>>2]=0;$B(c,1,e);J[a+4>>2]=J[e>>2];J[a+8>>2]=J[e+4>>2];J[a+12>>2]=J[e+8>>2];J[a+16>>2]=J[e+12>>2];J[a+20>>2]=J[d+24>>2];J[a+24>>2]=J[d+28>>2];J[a+28>>2]=J[d+40>>2];J[a+32>>2]=J[d+32>>2];J[a+36>>2]=J[d+36>>2];J[a+40>>2]=J[d+52>>2];J[a+44>>2]=J[d+44>>2];J[a+48>>2]=J[d+48>>2];J[a+52>>2]=J[d+56>>2];J[a+56>>2]=J[d+60>>2];c=15;J[e+24>>2]=15;if(b){xD(J[e+28>>2]+20|0,775668,e+16|0); -c=J[e+24>>2];a=J[e+16>>2]}J[a>>2]=c;a=J[e+28>>2];if(a){b=J[J[a>>2]>>2];c=J[J[a+4>>2]+12>>2];if(c)Ab[c|0](a);if(a)Ab[J[b+8>>2]](b,a)}a=J[e+16>>2]}xb=e+32|0;return a|0}function Nm(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;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;j=xb-128|0;xb=j;J[j+124>>2]=b;J[j+4>>2]=627;o=Id(j+8|0,0,j+4|0);k=j+16|0;m=(d-c|0)/12|0;a:{b:{if(m>>>0>=101){k=Qb(m);if(!k){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break b}ge(o,k)}h=k;b=c;c:{d:{while(1){if((b| -0)==(d|0))e:while(1){f:{J[195395]=0;b=ca(3629,a|0,j+124|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break f;if((!m|b)==1){J[195395]=0;a=ca(3629,a|0,j+124|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break c;if(!a)break d;J[f>>2]=J[f>>2]|2;break d}J[195395]=0;b=_(3630,a|0)|0;h=J[195395];J[195395]=0;g:{if((h|0)!=1){if(g)break g;J[195395]=0;b=ca(3631,e|0,b|0)|0;h=J[195395];J[195395]=0;if((h|0)!=1)break g}break b}i=p+1|0;q=0;r=b&255;h=k;b=c;while(1){if((b|0)==(d|0)){p=i;if(!q)continue e;J[195395]=0;_(3632,a| -0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){h=k;b=c;if(m+n>>>0<2)continue e;while(1){if((b|0)==(d|0))continue e;if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;if(!((i|0)==(p|0)|K[h|0]!=2)){H[h|0]=0;n=n-1|0}h=h+1|0;b=b+12|0;continue}}break b}h:{if(K[h|0]!=1)break h;if(K[b+11|0]>>>7|0)l=J[b>>2];else l=b;l=H[l+p|0];i:{if(g)break i;J[195395]=0;l=ca(3631,e|0,l<<24>>24)|0;s=J[195395];J[195395]=0;if((s|0)!=1)break i;break b}j:{if((l&255)==(r|0)){q=1;if(K[b+11|0]>>>7|0)l=J[b+4>>2];else l=K[b+11|0]&127; -if((l|0)!=(i|0))break h;H[h|0]=2;n=n+1|0;break j}H[h|0]=0}m=m-1|0}h=h+1|0;b=b+12|0;continue}}break}else{if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;i=!i;H[h|0]=i?2:1;h=h+1|0;b=b+12|0;n=n+i|0;m=m-i|0;continue}break}break b}k:{l:{while(1){if((c|0)==(d|0))break l;if(K[k|0]!=2){k=k+1|0;c=c+12|0;continue}break}d=c;break k}J[f>>2]=J[f>>2]|4}Ic(o);xb=j+128|0;return d|0}}a=Z()|0;Ic(o);ba(a|0)}B()}function Rk(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;J[a+168>>2]=d;j=a+168|0;J[a+48>>2]= -j;d=J[a+64>>2];J[a+184>>2]=J[a+60>>2];J[a+188>>2]=d;J[a+180>>2]=c;J[a+176>>2]=b;J[a+172>>2]=e;d=j;while(1){l=J[d>>2];a:{b:{h=J[d+4>>2];f=J[d+20>>2];b=(h|0)>(f|0);i=J[d+12>>2];c:{if(!((i|0)>=((b?f:h)|0)&(i|0)<=(((f|0)>(h|0)?f:h)|0))){b=J[d+16>>2];J[d+32>>2]=b;J[d+36>>2]=f;c=f+i|0;J[d+28>>2]=c>>1;e=h+i|0;J[d+12>>2]=e>>1;f=J[d+8>>2];i=f+l|0;J[d+8>>2]=i>>1;b=b+f|0;J[d+24>>2]=b>>1;J[d+20>>2]=c+e>>2;J[d+16>>2]=b+i>>2;b=d+16|0;break c}if((f|0)!=(h|0))break b;b=d-16|0}J[a+48>>2]=b;break a}m=b?1:2;g=J[a+92>> -2];if((m|0)!=(g|0)){b=J[a+4>>2];n=(f|0)>=(h|0);e=n?f&b-1:((b+f|0)-1&0-b)-f|0;c=J[a+36>>2];k=J[a+8>>2];d:{if(!g){b=c;break d}g=J[a+80>>2];b=J[g+8>>2];o=c-b>>2;if((o|0)<0){J[a+40>>2]=99;return 1}e:{if((b|0)==(c|0)){b=c;break e}J[g+16>>2]=o;if((e|0)>=(k|0)){b=L[g+12>>1];I[g+12>>1]=(b&8?16:32)|b}J[a+80>>2]=c;b=c+32|0;J[a+36>>2]=b;J[c+8>>2]=b;J[c+16>>2]=0;J[g+28>>2]=c;I[a+76>>1]=L[a+76>>1]+1}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}H[a+79|0]=0}if(!J[a+84>>2]){J[a+84>>2]=b;J[a+80>>2]=b;b=b+32|0;J[a+ -36>>2]=b}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}c=J[a+80>>2];J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=b;J[c+28>>2]=0;J[c+4>>2]=0;b=K[a+164|0];I[c+12>>1]=b;f:{g:{if(!n){I[c+12>>1]=b|8;g=40;if((e|0)>=(k|0))break g;break f}g=16;if((e|0)<(k|0))break f}I[c+12>>1]=b|g}if(!J[a+88>>2])J[a+88>>2]=c;I[a+78>>1]=1;J[a+92>>2]=m}b=J[a+72>>2];c=J[a+68>>2];h:{if((f|0)<(h|0)){if(!vm(a,2,61,c,b))break a;break h}J[d+20>>2]=0-f;J[d+12>>2]=0-i;J[d+4>>2]=0-h;e=K[a+78|0];b=vm(a,2,61,0-b|0,0-c|0);if(!(K[a+78|0]|!e)){c= -J[a+80>>2];J[c+20>>2]=0-J[c+20>>2]}J[d+4>>2]=0-J[d+4>>2];if(!b)break a}return 1}d=J[a+48>>2];if(j>>>0<=d>>>0)continue;break}J[a+64>>2]=h;J[a+60>>2]=l;return 0}function gF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-16|0;xb=c;H[c+12|0]=0;a:{if(a){d=c+12|0;e=Gc(d,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=Gc(d,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+2>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;if((Gc(d,1,4,a)|0)==4){d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24| -(d&65280)<<8|(d>>>8&65280|d>>>24)}else d=-1;J[b+4>>2]=d;H[c+12|0]=0;d=c+12|0;e=Gc(d,1,2,a);J[b+8>>2]=(e|0)!=2?65535:K[c+13|0]|K[c+12|0]<<8;H[c+12|0]=0;Gc(d,1,2,a);H[c+12|0]=0;e=Gc(d,1,2,a);J[b+12>>2]=(e|0)!=2?65535:K[c+13|0]|K[c+12|0]<<8;H[c+12|0]=0;Gc(c+12|0,1,2,a);H[c+12|0]=0;e=Gc(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+16>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=Gc(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+18>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=Gc(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<< -8;I[b+20>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=Gc(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+22>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;if((Gc(d,1,4,a)|0)==4){d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}else d=-1;J[b+24>>2]=d;H[c+12|0]=0;d=-1;f=b+22|0;g=b+20|0;h=b+18|0;if((Gc(c+12|0,1,4,a)|0)==4){e=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24)}else e=-1;J[b+28>>2]=e;H[c+12|0]=0;if((Gc(c+12|0,1, -4,a)|0)!=4)break a;d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break a}J[b+24>>2]=-1;J[b+28>>2]=-1;J[b+16>>2]=-1;J[b+20>>2]=-1;J[b+12>>2]=65535;J[b+4>>2]=-1;J[b+8>>2]=65535;d=-1;J[b>>2]=-1;f=b+22|0;g=b+20|0;h=b+18|0}J[b+32>>2]=d;b=0;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];if(!(a>>>4&1|(L[h>>1]-33&65535)>>>0<65504|(L[g>>1]-5&65535)>>>0<65532))b=I[f>>1]>0;xb=c+16|0;return b}function yG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=1;a:{b:switch(K[a+ -5|0]){case 0:d=0;c=J[b+12>>2];e=a+8|0;f=J[b+4>>2];if(c>>>0>>0)break a;g=J[b+8>>2];if(g-e>>>0<8)break a;e=a+16|0;if(e-f>>>0>c>>>0)break a;a=K[a+8|0]|K[a+9|0]<<8;a=P((a<<8|a>>>8)&65535,6);if(a>>>0>g-e>>>0)break a;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0|0;case 1:d=0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<18)break a;return ap(a+8|0,b)|0;case 2:e=J[b+12>>2];d=J[b+4>>2];c:{if(e>>>0>>0)break c;f=J[b+8>>2];if(f-a>>>0<16)break c;c=a+10|0;if(e>>>0>>0|f-c>>>0<2)break c;c=K[a+10|0]| -K[a+11|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;if(e>>>0>>0|f-c>>>0<4)break c;g=c+2|0;if(e>>>0>>0|f-g>>>0<2)break c;g=c+4|0;if(e>>>0>>0)break c;c=K[c+2|0]|K[c+3|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>f-g>>>0)break c;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break c;c=e;e=a+12|0;if(c>>>0>>0|f-e>>>0<2)break c;f=J[b+12>>2];d=K[a+12|0]|K[a+13|0]<<8;d=((d<<8|d>>>8)&65535)+a|0;e=J[b+4>>2];if(f>>>0>>0)break c;c=J[b+8>>2];if(c-d>>>0<4)break c;g=d+2|0;if(f>>>0>>0|c-g>>>0<2)break c; -e=d+4|0;if(M[b+12>>2]>2]>>>0)break c;d=K[d+2|0]|K[d+3|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>J[b+8>>2]-e>>>0)break c;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if(M[b+12>>2]>2]>>>0|(d|0)<=0)break c;e=J[b+8>>2]-a|0;a=K[a+14|0]|K[a+15|0]<<8;a=(a<<8|a>>>8)&65535;if(e>>>0>>0)break c;a=J[b+16>>2]-a|0;J[b+16>>2]=a;h=(a|0)>0}return h|0;case 3:break b;default:break a}d=0;f=J[b+12>>2];e=J[b+4>>2];if(f>>>0>>0)break a;c=J[b+8>>2];if(c-a>>>0<14)break a;g=a+14|0;if(f>>>0>>0)break a;e=P(K[a+ -12|0],K[a+11|0]);f=K[a+10|0];a=K[a+8|0]|K[a+9|0]<<8;a=e+(f+((a<<8|a>>>8)&65535)<<1)|0;if(a>>>0>c-g>>>0)break a;a=J[b+16>>2]-a|0;J[b+16>>2]=a;d=(a|0)>0}return d|0}function _u(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;k=xb+-64|0;xb=k;m=6;i=J[a+532>>2];a:{if(!i)break a;d=J[i+4>>2];o=b>>>0>d>>>0?d:b;b:{if(!d){d=0;break b}r=i+88|0;while(1){b=P(h,12)+r|0;g=J[b+8>>2];l=J[b+4>>2];c:{if(h>>>0>>0){e=K[b|0];f=J[(h<<2)+c>>2];break c}e=K[b|0];f=(J[((e<<2)+l|0)- -4>>2]-J[l>>2]|0)/2|0}d:{e:{if(!e)break e;b=0;j=-1;f:{g:{while(1){n=b<<2;p=n+l|0;q=J[p>>2];if((f|0)==(q|0))break f;if((f|0)<(q|0))break g;j=b;b=b+1|0;if((e|0)!=(b|0))continue;break}if(!e)break e;b=J[(g+(e<<2)|0)-4>>2];break d}if((j|0)<0)break e;b=j<<2;e=J[b+l>>2];b=hc(f-e|0,J[g+n>>2]-J[b+g>>2]|0,J[p>>2]-e|0);d=J[i+4>>2];break d}b=J[g+n>>2];break d}b=J[g>>2]}J[(h<<2)+k>>2]=b;h=h+1|0;if(h>>>0>>0)continue;break}i=J[a+532>>2];if(!i)break a}m=-1;b=J[i>>2];if(!b)break a;f=J[i+4>>2];h:{if(f){g=d>>>0>f>>> -0?f:d;j=0;e=f;h=0;while(1){b=0;d=65536;c=0;i:{if(!e)break i;while(1){j:{if(b>>>0>=g>>>0){d=d>>1;break j}c=J[(b<<2)+k>>2];c=h>>>b&1?c:65536-c|0;if((c|0)<=0){d=0;c=e;break i}if(c>>>0>65535)break j;d=Rb(d,c);f=J[i+4>>2]}e=f;c=f;b=b+1|0;if(f>>>0>b>>>0)continue;break}}b=J[i+136>>2]+(h<<2)|0;if(J[b>>2]!=(d|0)){J[b>>2]=d;j=1}e=c;h=h+1|0;if(h>>>0>2])continue;break}break h}h=b&3;f=J[i+136>>2];c=0;k:{if(b>>>0<4){j=0;b=0;break k}i=b&-4;j=0;b=0;e=0;while(1){d=b<<2;g=d+f|0;if(J[g>>2]!=65536){J[g>>2]=65536; -j=1}g=f+(d|4)|0;if(J[g>>2]!=65536){J[g>>2]=65536;j=1}g=f+(d|8)|0;if(J[g>>2]!=65536){J[g>>2]=65536;j=1}d=f+(d|12)|0;if(J[d>>2]!=65536){J[d>>2]=65536;j=1}b=b+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(!h)break h;while(1){e=f+(b<<2)|0;if(J[e>>2]!=65536){J[e>>2]=65536;j=1}b=b+1|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}if(!j)break a;m=0;J[a+8>>2]=J[a+8>>2]&-32769|((o|0)!=0)<<15}xb=k- -64|0;return m|0}function Lm(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;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;j=xb-128|0;xb=j;J[j+124>>2]=b;J[j+4>>2]=627;o=Id(j+8|0,0,j+4|0);k=j+16|0;m=(d-c|0)/12|0;a:{b:{if(m>>>0>=101){k=Qb(m);if(!k){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break b}ge(o,k)}h=k;b=c;c:{d:{while(1){if((b|0)==(d|0))e:while(1){f:{J[195395]=0;b=ca(3657,a|0,j+124|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break f;if((!m|b)==1){J[195395]=0;a=ca(3657,a|0,j+124|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break c;if(!a)break d;J[f>>2]=J[f>>2]|2;break d}J[195395]= -0;p=_(3658,a|0)|0;b=J[195395];J[195395]=0;g:{if((b|0)!=1){if(g)break g;J[195395]=0;p=ca(3659,e|0,p|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break g}break b}i=q+1|0;r=0;h=k;b=c;while(1){if((b|0)==(d|0)){q=i;if(!r)continue e;J[195395]=0;_(3660,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){h=k;b=c;if(m+n>>>0<2)continue e;while(1){if((b|0)==(d|0))continue e;if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;if(!((i|0)==(q|0)|K[h|0]!=2)){H[h|0]=0;n=n-1|0}h=h+1|0;b=b+12|0;continue}}break b}h:{if(K[h|0]!= -1)break h;if(K[b+11|0]>>>7|0)l=J[b>>2];else l=b;l=J[l+(q<<2)>>2];i:{if(g)break i;J[195395]=0;l=ca(3659,e|0,l|0)|0;s=J[195395];J[195395]=0;if((s|0)!=1)break i;break b}j:{if((p|0)==(l|0)){r=1;if(K[b+11|0]>>>7|0)l=J[b+4>>2];else l=K[b+11|0]&127;if((l|0)!=(i|0))break h;H[h|0]=2;n=n+1|0;break j}H[h|0]=0}m=m-1|0}h=h+1|0;b=b+12|0;continue}}break}else{if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;i=!i;H[h|0]=i?2:1;h=h+1|0;b=b+12|0;n=n+i|0;m=m-i|0;continue}break}break b}k:{l:{while(1){if((c|0)==(d|0))break l; -if(K[k|0]!=2){k=k+1|0;c=c+12|0;continue}break}d=c;break k}J[f>>2]=J[f>>2]|4}Ic(o);xb=j+128|0;return d|0}}a=Z()|0;Ic(o);ba(a|0)}B()}function vaa(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;f=J[a+584>>2];k=J[f+32>>2];a:{b:{if(!k)break b;s=f+844|0;e=J[f+884>>2];c=J[J[f+216>>2]+132>>2];if(!c)while(1){if((e|0)>=8){e=0;b=J[f+316>>2]<<3;d=0;if((xC(f,s,b)|0)!=(b|0))break a}e=e+1|0;J[f+884>>2]=e;b=L[f+836>>1];J[a+472>>2]=b+J[a+472>>2]; -k=k-b|0;if((k|0)>0)continue;break b}n=J[f+888>>2];t=c&3;w=c>>>0<4;while(1){if((e|0)>=8){e=0;h=J[f+316>>2]<<3;d=0;if((xC(f,s,h)|0)!=(h|0))break a;J[f+884>>2]=0}if(J[f+36>>2]>0){p=J[f+216>>2];i=0;q=0;while(1){o=J[p+12>>2];c:{if((o|0)<=0)break c;u=(q<<2)+f|0;j=0;l=J[p+8>>2];if((l|0)==1)while(1){e=J[(J[u+844>>2]+(P(J[f+884>>2],o)<<2)|0)+(j<<2)>>2];g=b+i|0;d=c;m=0;if(t)while(1){H[g|0]=K[e|0];g=g+n|0;e=e+1|0;d=d-1|0;m=m+1|0;if((t|0)!=(m|0))continue;break}if(!w)while(1){H[g|0]=K[e|0];h=g+n|0;H[h|0]=K[e+ -1|0];h=h+n|0;H[h|0]=K[e+2|0];h=h+n|0;H[h|0]=K[e+3|0];e=e+4|0;g=h+n|0;d=d-4|0;if(d)continue;break}i=i+1|0;j=j+1|0;if((o|0)!=(j|0))continue;break c}if((l|0)>0){x=l&-4;v=l&3;r=0;while(1){g=J[(J[u+844>>2]+(P(J[f+884>>2],o)<<2)|0)+(r<<2)>>2];d=b+i|0;h=c;while(1){m=0;e=0;j=0;if(l>>>0>=4)while(1){H[d+e|0]=K[g|0];H[(e|1)+d|0]=K[g+1|0];H[(e|2)+d|0]=K[g+2|0];H[(e|3)+d|0]=K[g+3|0];e=e+4|0;g=g+4|0;j=j+4|0;if((x|0)!=(j|0))continue;break}if(v)while(1){H[d+e|0]=K[g|0];e=e+1|0;g=g+1|0;m=m+1|0;if((v|0)!=(m|0))continue; -break}d=d+n|0;h=h-1|0;if(h)continue;break}i=i+l|0;r=r+1|0;if((r|0)!=(o|0))continue;break}break c}i=P(l,o)+i|0}p=p+88|0;q=q+1|0;if((q|0)>2])continue;break}e=J[f+884>>2]}e=e+1|0;J[f+884>>2]=e;d=L[f+836>>1];J[a+472>>2]=d+J[a+472>>2];b=J[f+840>>2]+b|0;k=k-d|0;if((k|0)>0)continue;break}}d=1;if(M[f+140>>2]>2])break a;d=(EC(f)|0)!=0}return d|0}function vG(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;f=J[b+88>>2];c=K[a+2|0]|K[a+3|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776; -j=ld(c,J[J[f+80>>2]+P(J[f+64>>2],20)>>2]);a:{if((j|0)==-1)break a;J[b+12>>2]=8;e=J[f+64>>2];c=J[b+212>>2];if(e>>>0>>0){J[b+208>>2]=-1;J[b+212>>2]=0;c=0}b:{if(c>>>0>=e>>>0)break b;while(1){c:{c=J[b+12>>2];e=e-1|0;g=J[f+80>>2]+P(e,20)|0;d=L[g+12>>1];if(c&d&14)break c;if(d&8)if(!Bd(J[b+8>>2],J[g>>2],d,c))break c;i=1;c=L[g+16>>1];if(!(K[g+12|0]&16|(c&96)!=32|!K[b+20|0]&(c&543)==513))i=!K[b+21|0]&(c&287)==257;c=J[b+32>>2];if(c){c=K[c|0]|K[c+1|0]<<8;c=(c<<8|c>>>8)&65535}else c=0;if(!(J[b+16>>2]&J[g+ -4>>2]))break c;d=K[b+23|0];if((d|0)!=K[g+15|0]?d:0)break c;d=J[b+24>>2];d:{if(d){if(Ab[d|0](g,c,J[b+28>>2])|0)break d;break c}if(!i)break c}J[b+208>>2]=e;break b}if(M[b+212>>2]>>0)continue;break}}c=J[f+64>>2];J[b+212>>2]=c;g=J[b+208>>2];if((g|0)==-1){if(!(K[f+16|0]&64))break a;Ac(f,2,0,c+1|0,0,1);break a}e:{c=K[a+4|0]|K[a+5|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;d=ld(c,J[J[f+80>>2]+P(g,20)>>2]);if((d|0)==-1){if(!(K[f+16|0]&64))break a;break e}i=169776;e=169776;c=K[a+10|0]|K[a+11|0]<< -8;if(c)e=((c<<8|c>>>8)&65535)+a|0;c=K[e|0]|K[e+1|0]<<8;f:{if(d>>>0>=((c<<8|c>>>8)&65535)>>>0)break f;c=(d<<1)+e|0;c=K[c+2|0]|K[c+3|0]<<8;if(!c)break f;i=((c<<8|c>>>8)&65535)+e|0}c=K[i|0]|K[i+1|0]<<8;if(!c){if(!(K[f+16|0]&64))break a;break e}h=(c<<8|c>>>8)&65535;d=J[f+80>>2];c=K[(d+P(g,20)|0)+14|0];if(c>>>0>=32){e=K[(d+P(J[f+64>>2],20)|0)+14|0];d=e&16?0:e&15;h=(c^e)>>>0<32?d?d>>>0>h>>>0?h:d:h:h}h=h-1|0;c=K[a+8|0]|K[a+9|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;a=K[a+6|0]|K[a+7|0]<<8;h=_s(c, -b,j,h,i,(a<<8|a>>>8)&65535,g);break a}Ac(f,2,g,J[f+64>>2]+1|0,0,1)}return h|0}function UT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=xb-208|0;xb=f;J[f+200>>2]=37;J[f+204>>2]=0;j=f+200|0;h=Jm(j|1,228753,J[c+4>>2]);g=f+160|0;J[f+156>>2]=g;a=Vd();a:{if(h){i=J[c+8>>2];O[f+40>>3]=e;J[f+32>>2]=i;a=Ie(g,30,a,j,f+32|0);break a}O[f+48>>3]=e;a=Ie(f+160|0,30,a,f+200|0,f+48|0)}J[f+80>>2]=627;j=Id(f+148|0,0,f+80|0);i=f+160|0;g=i;b:{c:{d:{e:{if((a|0)>=30){f:{if(h){J[195395]=0; -a=na(3650)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;J[f>>2]=J[c+8>>2];J[195395]=0;O[f+8>>3]=e;a=ha(3671,f+156|0,a|0,f+200|0,f|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break f;break d}J[195395]=0;a=na(3650)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;O[f+16>>3]=e;J[195395]=0;a=ha(3671,f+156|0,a|0,f+200|0,f+16|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d}if((a|0)==-1){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;break e}ge(j,J[f+156>>2]);g=J[f+156>>2]}l=a+g|0;m=lf(g,l, -c);J[f+68>>2]=627;g=Id(f+72|0,0,f+68|0);g:{h:{if(J[f+156>>2]==(f+160|0)){a=f+80|0;break h}a=Qb(a<<1);if(!a){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)!=1)break e;b=Z()|0;break g}ge(g,a);i=J[f+156>>2]}J[195395]=0;h=f+60|0;k=J[c+28>>2];J[h>>2]=k;J[k+4>>2]=J[k+4>>2]+1;k=J[195395];J[195395]=0;i:{j:{if((k|0)!=1){J[195395]=0;oa(3672,i|0,m|0,l|0,a|0,f+68|0,f- -64|0,h|0);i=J[195395];J[195395]=0;if((i|0)==1)break j;h=J[h>>2];i=J[h+4>>2]-1|0;J[h+4>>2]=i;if((i|0)==-1)Ab[J[J[h>>2]+8>>2]](h);J[195395]= -0;a=pa(3673,b|0,a|0,J[f+68>>2],J[f+64>>2],c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break i;Ic(g);Ic(j);xb=f+208|0;break b}b=Z()|0;break g}b=Z()|0;a=J[f+60>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ic(g);break c}B()}b=Z()|0}Ic(j);ba(b|0);B()}return a|0}function IT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=xb-368|0;xb=f;J[f+360>>2]=37;J[f+364>>2]=0;j=f+360|0;h=Jm(j|1,228753,J[c+4>>2]);g=f+320|0;J[f+316>>2]=g;a=Vd(); -a:{if(h){i=J[c+8>>2];O[f+40>>3]=e;J[f+32>>2]=i;a=Ie(g,30,a,j,f+32|0);break a}O[f+48>>3]=e;a=Ie(f+320|0,30,a,f+360|0,f+48|0)}J[f+80>>2]=627;j=Id(f+308|0,0,f+80|0);i=f+320|0;g=i;b:{c:{d:{e:{if((a|0)>=30){f:{if(h){J[195395]=0;a=na(3650)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;J[f>>2]=J[c+8>>2];J[195395]=0;O[f+8>>3]=e;a=ha(3671,f+316|0,a|0,f+360|0,f|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break f;break d}J[195395]=0;a=na(3650)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d;O[f+16>>3]=e;J[195395]= -0;a=ha(3671,f+316|0,a|0,f+360|0,f+16|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break d}if((a|0)==-1){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)==1)break d;break e}ge(j,J[f+316>>2]);g=J[f+316>>2]}l=a+g|0;m=lf(g,l,c);J[f+68>>2]=627;g=Id(f+72|0,0,f+68|0);g:{h:{if(J[f+316>>2]==(f+320|0)){a=f+80|0;break h}a=Qb(a<<3);if(!a){J[195395]=0;ja(3628);a=J[195395];J[195395]=0;if((a|0)!=1)break e;b=Z()|0;break g}ge(g,a);i=J[f+316>>2]}J[195395]=0;h=f+60|0;k=J[c+28>>2];J[h>>2]=k;J[k+4>>2]=J[k+4>>2]+1;k= -J[195395];J[195395]=0;i:{j:{if((k|0)!=1){J[195395]=0;oa(3682,i|0,m|0,l|0,a|0,f+68|0,f- -64|0,h|0);i=J[195395];J[195395]=0;if((i|0)==1)break j;h=J[h>>2];i=J[h+4>>2]-1|0;J[h+4>>2]=i;if((i|0)==-1)Ab[J[J[h>>2]+8>>2]](h);J[195395]=0;a=pa(3683,b|0,a|0,J[f+68>>2],J[f+64>>2],c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break i;Ic(g);Ic(j);xb=f+368|0;break b}b=Z()|0;break g}b=Z()|0;a=J[f+60>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ic(g);break c}B()}b=Z()|0}Ic(j); -ba(b|0);B()}return a|0}function hI(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=169776;f=J[a+4>>2];k=f?f:169776;f=K[k+6|0]|K[k+7|0]<<8|(K[k+8|0]<<16|K[k+9|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);a:{if((f|0)<=0)break a;j=k+10|0;f=f-1|0;while(1){b:{h=f+i>>>1|0;l=j+P(h,11)|0;l=K[l+1|0]<<8|K[l|0]<<16|K[l+2|0];c:{if(l>>>0>c>>>0){f=h-1|0;break c}if((c|0)==(l|0))break b;i=h+1|0}if((f|0)>=(i|0))continue;break a}break}g=j+P(h,11)|0}c=0;d:{e:{f:{f=K[g+3|0]|K[g+4|0]<<8|(K[g+5|0]<<16|K[g+6|0]<< -24);if(f)f=k+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;h=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);g:{if((h|0)>0){l=f+4|0;f=h-1|0;h=0;while(1){i=f+h>>>1|0;j=l+(i<<2)|0;m=K[j+1|0]<<8|K[j|0]<<16|K[j+2|0];h:{if(m>>>0>b>>>0){f=i-1|0;break h}h=2;if(K[j+3|0]+m>>>0>=b>>>0)break g;h=i+1|0}if((f|0)>=(h|0))continue;break}}j=169776;f=169776;g=K[g+7|0]|K[g+8|0]<<8|(K[g+9|0]<<16|K[g+10|0]<<24);if(g)f=k+(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))|0;g= -K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);i:{if((g|0)<=0)break i;k=f+4|0;f=g-1|0;h=0;while(1){j:{g=f+h>>>1|0;i=k+P(g,5)|0;i=K[i+1|0]<<8|K[i|0]<<16|K[i+2|0];k:{if(i>>>0>b>>>0){f=g-1|0;break k}if((b|0)==(i|0))break j;h=g+1|0}if((f|0)>=(h|0))continue;break i}break}j=k+P(g,5)|0}f=K[j+3|0]|K[j+4|0]<<8;h=0;if(!f)break g;J[d>>2]=(f<<8|f>>>8)&65535;h=1}switch(h|0){case 0:break d;case 1:break f;default:break e}}return 1}f=J[a+8>>2];if(!f)break d;if(!e)return Ab[f| -0](J[a+12>>2],b,d)|0;e=((b&255)<<2)+e|0;g=J[e>>2];if((g>>>16|0)==(b>>>8|0)){J[d>>2]=g&65535;return 1}if(!(Ab[f|0](J[a+12>>2],b,d)|0))break d;c=1;if(b>>>0>2097151)break d;a=J[d>>2];if(a>>>0>65535)break d;J[e>>2]=a|b<<8&2147418112}return c}function $fa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;u=xb-288|0;xb=u;q=J[a+332>>2];b=J[b+84>>2];a=u;while(1){j=J[b+96>>2];i=I[c+48>>1];k=J[b+160>>2];h=I[c+80>>1];o=J[b+224>>2];m=I[c+ -112>>1];n=J[b+32>>2];v=I[c+16>>1];r=P(I[c>>1],J[b>>2])<<13|1024;l=P(J[b+192>>2],I[c+96>>1]);s=r+P(l,-11586)|0;g=P(J[b+64>>2],I[c+32>>1]);f=P(J[b+128>>2],I[c+64>>1]);t=g-f|0;J[a+128>>2]=s+P(t,-11586)>>11;w=P(f+g|0,10887);x=P(f,2012);f=r+P(l,5793)|0;l=(w-x|0)+f|0;k=P(h,k);h=P(n,v);n=P(k+h|0,7447);j=P(P(i,j),-10033);i=P(m,o);o=P(i+h|0,3962);m=(n-j|0)+o|0;J[a+256>>2]=l-m>>11;J[a>>2]=m+l>>11;m=s+P(t,5793)|0;h=P(h-(i+k|0)|0,10033);J[a+224>>2]=m-h>>11;J[a+32>>2]=h+m>>11;g=P(g,8875);h=g+(f-w|0)|0;k=P(k-i| -0,11409);i=n+(j-k|0)|0;J[a+192>>2]=h-i>>11;J[a+64>>2]=h+i>>11;g=(f-g|0)+x|0;f=o+(j+k|0)|0;J[a+160>>2]=g-f>>11;J[a+96>>2]=f+g>>11;a=a+4|0;b=b+4|0;c=c+2|0;p=p+1|0;if((p|0)!=8)continue;break}b=q+128|0;a=u;p=0;while(1){c=J[(p<<2)+d>>2]+e|0;g=J[a+20>>2];f=J[a+4>>2];o=P(g+f|0,7447);k=P(J[a+12>>2],-10033);h=J[a+28>>2];m=P(h+f|0,3962);n=(o-k|0)+m|0;r=(J[a>>2]<<13)+131072|0;l=J[a+24>>2];q=r+P(l,5793)|0;j=J[a+16>>2];i=J[a+8>>2];v=P(j+i|0,10887);t=P(j,2012);s=q+(v-t|0)|0;H[c|0]=K[b+(n+s>>>18&1023)|0];H[c+8| -0]=K[b+(s-n>>>18&1023)|0];f=P(f-(h+g|0)|0,10033);n=r+P(l,-11586)|0;j=i-j|0;l=n+P(j,5793)|0;H[c+1|0]=K[b+(f+l>>>18&1023)|0];H[c+7|0]=K[b+(l-f>>>18&1023)|0];g=P(g-h|0,11409);f=o+(k-g|0)|0;h=P(i,8875);i=h+(q-v|0)|0;H[c+2|0]=K[b+(f+i>>>18&1023)|0];H[c+6|0]=K[b+(i-f>>>18&1023)|0];g=m+(g+k|0)|0;f=t+(q-h|0)|0;H[c+3|0]=K[b+(g+f>>>18&1023)|0];H[c+5|0]=K[b+(f-g>>>18&1023)|0];H[c+4|0]=K[b+(n+P(j,268423870)>>>18&1023)|0];a=a+32|0;p=p+1|0;if((p|0)!=9)continue;break}xb=u+288|0}function Lz(a,b){var c=0,d=0,e=0, -f=0,g=0,h=0;g=a+24|0;c=J[g>>2];a:{if(!c)break a;d=g;while(1){e=M[c+16>>2]>>0;d=e?d:c;c=J[(e?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(g|0)|M[d+16>>2]>b>>>0)break a;d=J[d+20>>2];e=J[a+4>>2];b:{c:{if((e|0)!=J[a+8>>2]){c=0;while(1){e=J[(c<<2)+e>>2];d:{e:switch((Ab[J[J[d>>2]+8>>2]](d)|0)-1|0){case 0:if((d|0)!=J[e+72>>2])break d;J[e+72>>2]=0;break d;case 1:if((d|0)!=J[e+84>>2])break d;J[e+84>>2]=0;break d;case 2:if((d|0)!=J[e+76>>2])break d;J[e+76>>2]=0;break d;case 3:if((d|0)!=J[e+80>>2])break d; -J[e+80>>2]=0;break d;case 4:break e;default:break d}if((d|0)!=J[e+88>>2])break d;J[e+88>>2]=0}c=c+1|0;e=J[a+4>>2];if(c>>>0>2]-e>>2>>>0)continue;break}break c}if(!d)break b}Ab[J[J[d>>2]+4>>2]](d)}f=J[g>>2];if(!f)break a;d=g;c=f;while(1){e=M[c+16>>2]>>0;d=e?d:c;c=J[(e?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(g|0)|M[d+16>>2]>b>>>0)break a;e=J[d+4>>2];f:{if(!e){e=d;while(1){c=J[e+8>>2];g=J[c>>2]!=(e|0);e=c;if(g)continue;break}break f}while(1){c=e;e=J[c>>2];if(e)continue;break}}if(J[a+20>> -2]==(d|0))J[a+20>>2]=c;J[a+28>>2]=J[a+28>>2]-1;Xj(f,d);Kb(d)}g:{h:{i:{if(L[a+32>>1]<=b>>>0)break i;j:{k:{d=J[a+40>>2];h=J[a+36>>2];c=h;g=(d|0)==(c|0);if(g)break k;while(1){if(L[c>>1]==(b|0))break k;c=c+2|0;if((c|0)!=(d|0))continue;break}break j}if((d|0)!=(c|0))break i}if(J[a+44>>2]!=(d|0)){I[d>>1]=b;J[a+40>>2]=d+2;return}f=d-h|0;c=f>>1;if((c|0)<=-2)break h;e=c+1|0;f=f>>>0>=2147483646?2147483647:e>>>0>>0?f:e;if(f){if((f|0)<0)break g;e=Pb(f<<1)}else e=0;c=e+(c<<1)|0;I[c>>1]=b;b=c+2|0;if(!g)while(1){c= -c-2|0;d=d-2|0;I[c>>1]=L[d>>1];if((d|0)!=(h|0))continue;break}J[a+44>>2]=e+(f<<1);J[a+40>>2]=b;J[a+36>>2]=c;if(!h)break i;Kb(h)}return}Ve(a+36|0);B()}zd();B()}function iaa(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;j=xb-16|0;xb=j;d=1;a:{if((c|0)<=0)break a;k=J[a+608>>2];m=J[a+604>>2];while(1){l=J[a+56>>2];e=(l|0)>0;b:{if((l|0)<=0){f=k;g=0;break b}g=0;h=0;d=b;f=k;if((f|0)<=0)break b;while(1){c:{d:{e:{f:{g:{f=K[m|0];switch((f>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f; -default:break g}}h:{if(g&1){e=K[d|0]|h;H[d|0]=e;f=f-1|0;g=g+1|0;d=d+1|0;e=e&255;break h}e=h<<4|h}g=f+g|0;if(!((f|0)<=0|(l|0)<=(g|0))){i=f-2|0;h=(f>>>0>=i>>>0?i:0)+1|0;i=(h>>>1|0)+1|0;f=(f-(h&-2)|0)-2|0;d=Nb(d,e,i)+i|0}if((f|0)==-1){d=d-1|0;H[d|0]=K[d|0]&240}h=e&15;break c}e=f>>>4&3;i:{if((e|0)==2){e=d;break i}e=J[(e<<2)+288912>>2]+h|0;h=e&15;j:{if(g&1){i=K[d|0]|h;e=d+1|0;break j}i=e<<4;e=d}g=g+1|0;H[d|0]=i}d=f>>>2&3;k:{if((d|0)==2){d=e;e=g;break k}d=J[(d<<2)+288912>>2]+h|0;h=d&15;l:{if(g&1){i=K[e| -0]|h;d=e+1|0;break l}i=d<<4;d=e}H[e|0]=i;e=g+1|0}f=f&3;if((f|0)==2){g=e;break c}g=e+1|0;f=J[(f<<2)+288912>>2]+h|0;h=f&15;if(e&1){H[d|0]=K[d|0]|h;d=d+1|0;break c}H[d|0]=f<<4;break c}e=f>>>3&7;m:{if((e|0)==4){e=d;break m}e=J[(e<<2)+288928>>2]+h|0;h=e&15;n:{if(g&1){i=K[d|0]|h;e=d+1|0;break n}i=e<<4;e=d}H[d|0]=i;g=g+1|0}i=g;d=f&7;if((d|0)==4){d=e;break c}g=i+1|0;d=J[(d<<2)+288928>>2]+h|0;h=d&15;if(i&1){H[e|0]=K[e|0]|h;d=e+1|0;break c}H[e|0]=d<<4;d=e;break c}e=g+1|0;h=f&15;o:{if(g&1){H[d|0]=K[d|0]|h;d= -d+1|0;break o}H[d|0]=f<<4}g=e}f=k-1|0;m=m+1|0;e=(g|0)<(l|0);if(k>>>0<2)break b;k=f;if(e)continue;break}}J[a+608>>2]=f;J[a+604>>2]=m;if((g|0)!=(l|0)){b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[j+12>>2]=l;J[j+8>>2]=g;J[j+4>>2]=a;J[j>>2]=e?264101:264633;Ob(c,b,263569,j);d=0;break a}d=J[a+588>>2];b=d+b|0;k=f;c=c-d|0;if((c|0)>0)continue;break}d=1}xb=j+16|0;return d|0}function Hba(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;d=c;c=J[a+584>>2];l=(d|0)/J[c+8>>2]|0;a:{if(J[c>> -2]==2){i=b;break a}i=J[c+12>>2];Ab[J[c+20>>2]](c,b,l)}c=J[a+600>>2];g=c-J[a+608>>2]|0;e=J[a+604>>2];if((l|0)>0){c=24;while(1){j=c;m=255<>2]=e;J[a+608>>2]=J[a+600>>2]-g;if(!Xc(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;e=J[a+604>>2]}d=c;b=c;b:{if((c|0)>=(l|0))break b;while(1){b=d;k=J[(b<<2)+i>>2];f=1;c:{while(1){d=b+f|0;if((l|0)<=(d|0)){h=f;break c}d:{if((k^J[(d<<2)+i>>2])&m){h=f;break d}h=f+1|0;d=h+b|0;if((l|0)<=(d|0))break c;if((k^J[(d<<2)+i>>2])&m)break d;h=129; -f=f+2|0;if((f|0)!=129)continue;break b}break}if(h>>>0<=3)continue;break b}break}b=h>>>0>3?b:d}e:{f:{if((b-c&-2)!=2)break f;d=c+1|0;f=J[(c<<2)+i>>2]&m;while(1){if((f|0)!=(J[(d<<2)+i>>2]&m))break f;d=d+1|0;if((d|0)!=(b|0))continue;break}H[e+1|0]=f>>>j;H[e|0]=((c^-1)+b|0)+127;g=g-2|0;e=e+2|0;c=b;break e}if((b|0)<=(c|0))break e;while(1){d=b-c|0;k=(d|0)>=127?127:d;if((k+3|0)>(g|0)){J[a+604>>2]=e;J[a+608>>2]=J[a+600>>2]-g;if(!Xc(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;e=J[a+604>>2]}H[e|0]=k;e=e+1|0;g=g- -1|0;if((b|0)==(c|0)){c=b;break e}f=0;d=k;n=d&3;if(n)while(1){H[e|0]=J[(c<<2)+i>>2]>>>j;e=e+1|0;c=c+1|0;d=d-1|0;f=f+1|0;if((n|0)!=(f|0))continue;break}if(k-1>>>0>=3)while(1){f=(c<<2)+i|0;H[e|0]=J[f>>2]>>>j;H[e+1|0]=J[f+4>>2]>>>j;H[e+2|0]=J[f+8>>2]>>>j;H[e+3|0]=J[f+12>>2]>>>j;e=e+4|0;c=c+4|0;d=d-4|0;if(d)continue;break}g=g-k|0;if((b|0)>(c|0))continue;break}}g:{if((h|0)<4){h=0;break g}H[e|0]=h+126;H[e+1|0]=J[(b<<2)+i>>2]>>>j;g=g-2|0;e=e+2|0}c=c+h|0;if((l|0)>(c|0))continue;break}c=j-8|0;if(j)continue; -break}c=J[a+600>>2]}J[a+604>>2]=e;J[a+608>>2]=c-g;return 1}function Ao(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;if(d)J[d>>2]=0;g=4;a:{while(1){f=j;i=(f|0)<214748364;b:{while(1){c:{if(!g)break c;b=b+1|0;if(b>>>0>2])break c;e=0;break a}e=4-g|0;j=K[b|0];h=j>>>g&15;if((h|0)==14){o=1;g=e;continue}if(h>>>0>9)break b;if(!i){n=n+1|0;g=e;continue}break}j=0;g=e;if(!(f|h))continue;l=l+1|0;j=P(f,10)+h|0;continue}break}g=0;d:{if((h|0)!=10)break d;e:while(1){k=(f|0)<214748364&(m|0)<9; -while(1){if(e){b=b+1|0;if(b>>>0>=M[a+8>>2]){e=0;break a}j=K[b|0]}i=4-e|0;h=(j&255)>>>e&15;if(h>>>0>9){e=i;break d}if(!(f|h)){n=n-1|0;f=0;e=i;continue e}e=i;if(!k)continue;break}m=m+1|0;f=P(f,10)+h|0;continue}}f:{g:{h:{if(h-11>>>0<=1){i=0;while(1){if(e){b=b+1|0;if(b>>>0>=M[a+8>>2]){e=0;break a}j=K[b|0]}k=(j&255)>>>e&15;if(k>>>0<=9){p=k+P(g,10)|0;k=(g|0)>1E3;g=k?g:p;i=k?1:i;e=4-e|0;continue}break}if(!f){e=0;break a}a=(h|0)==12;if(i)break g;e=a?0-g|0:g;break h}e=0;if(!f)break a}a=(c+n|0)+e|0;if(d){a= -a+l|0;b=l+m|0;if((b|0)<=5){if((f|0)>=32768){e=dc(f,10);J[d>>2]=(a-b|0)+1;break a}i:{j:{if((a|0)<=0)break j;c=(a|0)>=5?5:a;e=c-b|0;if((e|0)<=0)break j;a=a-c|0;f=P(J[(e<<2)+27536>>2],f);if((f|0)<32768)break i;f=(f>>>0)/10|0;a=a+1|0;break i}a=a-b|0}J[d>>2]=a;e=f<<16;break a}b=b<<2;c=J[b+27516>>2];if(((f|0)/(c|0)|0)>=32768){e=dc(f,J[b+27520>>2]);J[d>>2]=a-4;break a}e=dc(f,c);J[d>>2]=a-5;break a}e=2147483647;b=a+l|0;if((b|0)>5)break a;if((b|0)<-5)break f;if((b|0)>=0)a=m-a|0;else{f=(f|0)/J[27536-(b<<2)>> -2]|0;a=l+m|0}c=(a|0)==10;b=c?(f|0)/10|0:f;a=c?9:a;if((a|0)>0){e=0;a=J[(a<<2)+27536>>2];if(((b|0)/(a|0)|0)>32767)break a;e=dc(b,a);break a}a=P(b,J[27536-(a<<2)>>2]);e=(a|0)>32767?2147483647:a<<16;break a}e=2147483647;if(!a)break a}e=0}return o?0-e|0:e}function eda(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;h=xb-32|0;xb=h;p=J[a+52>>2];i=J[a>>2];l=Qb(cg(i));a:{if(!l){Ob(J[i+628>>2],J[i>>2],274575,0);break a}Pd(l,0,cg(i));J[h+16>>2]=h+28;zc(i, -322,h+16|0);J[h>>2]=h+24;zc(i,323,h);b:{c:{d:{e:{f:{g:{h:switch(L[a+28>>1]-1|0){case 0:case 4:f=L[a+30>>1];if(f>>>0>8)break d;e=1<>1];if(f>>>0>8)break d;e=1<>1];if(f>>>0>8)break d;f=1<>1];if(g>>>0>7)break d;f=1<>2]+c|0)|0;break b}g=0}t=1;f=c-J[h+28>>2]|0}q=1;if(!(!d|!c))while(1){e=J[h+24>>2];e=e-((J[a+76>>2]+k>>>0)%(e>>>0)|0)|0;n=e+k>>>0>d>>>0?d-k|0:e;r=(P(c,m)<<2)+b|0;e=0;while(1){i:{if(!((fk(i,l,J[a+80>>2]+e|0,J[a+76>>2]+k|0,0)|0)>=0|!J[a+4>>2])){q=0;break i}o=J[a+76>>2];j=J[h+24>>2];o=P(Hg(i),(k+o>>>0)%(j>>>0)|0);j=J[h+28>>2];j:{if(j+e>>>0<=c>>>0){Ab[p|0](a,(e<<2)+r|0,e, -m,j,n,0,f,l+o|0);break j}s=c-e|0;j=j-s|0;Ab[p|0](a,(e<<2)+r|0,e,m,s,n,j,f+j|0,l+o|0)}e=J[h+28>>2]+e|0;if(e>>>0>>0)continue}break}m=(t?n:0-n|0)+m|0;k=k+n|0;if(k>>>0>>0)continue;break}Kb(l);if(!d|g>>>0<2)break a;g=0;while(1){e=(P(c,g)<<2)+b|0;a=(e+(c<<2)|0)-4|0;if(a>>>0>e>>>0)while(1){f=J[e>>2];J[e>>2]=J[a>>2];J[a>>2]=f;a=a-4|0;e=e+4|0;if(a>>>0>e>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}xb=h+32|0;return q|0}function Tk(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;m=1;a:{b:{if(!J[b>> -2]){b=c;break b}if(!J[c>>2])break b;m=0;if(J[c+8>>2]>2])break a}d=J[a+20>>2];c:{if(!d)break c;e=J[b+8>>2];d:{while(1){h=J[(P(g,20)+a|0)+36>>2];if((h|0)>=(e|0))break d;g=g+1|0;if((d|0)!=(g|0))continue;break}g=d;break c}if(K[(P(g,20)+a|0)+28|0]&8|(!m&(h|0)<=J[c+8>>2]|(e|0)==(h|0)))break a}d=J[a+4>>2];if(!(!K[d+12|0]|K[b|0]&16)){e:{if(!m){d=Sf(d,(J[b+8>>2]+J[c+8>>2]|0)/2|0);e=Rb((J[c+8>>2]-J[b+8>>2]|0)/2|0,J[a+16>>2]);J[b+12>>2]=d-e;e=d+e|0;d=c;break e}e=Sf(d,J[b+8>>2]);d=b}J[d+12>>2]=e}e=P(g, -20)+a|0;if(J[b+12>>2]>2]?g:0)break a;d=J[a+20>>2];f:{if(d>>>0<=g>>>0)break f;e=J[e+40>>2];if(!m){if((e|0)>=J[c+12>>2])break f;break a}if((e|0)>2])break a}h=d+!m|0;if(h>>>0>191)break a;k=d-g|0;g:{if(!k)break g;i=g+1|0;h:{if(!(k&1)){e=d;break h}f=a+28|0;j=f+P(h,20)|0;e=d-1|0;f=f+P(e,20)|0;l=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=l;J[j+16>>2]=J[f+16>>2];l=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=l;h=h-1|0;k=k-1|0}if((d|0)==(i|0))break g;j=a+28|0;while(1){i=j+P(e,20)|0;f=i-20|0;l=J[f+4>> -2];d=j+P(h,20)|0;J[d>>2]=J[f>>2];J[d+4>>2]=l;J[d+16>>2]=J[f+16>>2];l=J[f+12>>2];J[d+8>>2]=J[f+8>>2];J[d+12>>2]=l;f=d-20|0;d=i-40|0;J[f+16>>2]=J[d+16>>2];i=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=i;i=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=i;h=h-2|0;e=e-2|0;k=k-2|0;if(k)continue;break}}g=P(g,20);d=g+a|0;J[d+44>>2]=J[b+16>>2];e=J[b+12>>2];J[d+36>>2]=J[b+8>>2];J[d+40>>2]=e;e=J[b+4>>2];J[d+28>>2]=J[b>>2];J[d+32>>2]=e;J[a+20>>2]=J[a+20>>2]+1;if(m)break a;b=g+(a+20|0)|0;J[b+44>>2]=J[c+16>>2];d=J[c+12>>2]; -J[b+36>>2]=J[c+8>>2];J[b+40>>2]=d;d=J[c+4>>2];J[b+28>>2]=J[c>>2];J[b+32>>2]=d;J[a+20>>2]=J[a+20>>2]+1}}function EH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=0;e=J[b+28>>2];d=J[e+12>>2];i=Q(0);a:{if(!d)break a;h=J[e>>2];f=c;g=J[e+4>>2];if(g){f=sc(g,c);d=J[e+12>>2]}k=f>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;i=Q(0);if(k>>>0>=((g<<8|g>>>8)&65535)>>>0)break a;g=J[e+8>>2];e=h+(k<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;k=f& -65535;f=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(f)f=h+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;i=pc(e,k,g,d,f,0)}f=K[a+4|0]|K[a+5|0]<<8;i=Q(Q(i+Q((f<<8|f>>>8)<<16>>16))*Q(6.103515625E-5));d=J[b+28>>2];f=J[d+12>>2];b:{if(!f)break b;g=J[d>>2];e=J[d+4>>2];c:{if(e){c=sc(e,(c|0)==-1?-1:c+1|0);f=J[d+12>>2];break c}c=c+1|0}h=c>>>16|0;e=K[g+6|0]|K[g+7|0]<<8;if(h>>>0>=((e<<8|e>>>8)&65535)>>>0)break b;e=J[d+8>>2];d=g+(h<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24); -if(d)d=g+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;h=c&65535;c=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;j=pc(d,h,e,f,c,0)}c=K[a+6|0]|K[a+7|0]<<8;j=Q(Q(j+Q((c<<8|c>>>8)<<16>>16))*Q(6.103515625E-5));e=i!=Q(0)|j!=Q(0);if(e){f=J[b+12>>2];i=Xm(Q(i*Q(-3.1415927410125732)));j=Xm(Q(j*Q(3.1415927410125732)));c=J[b+8>>2];g=J[c+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[g|0](c,f,Q(1),j,i,Q(1),Q(0),Q(0),d)}c=J[b+104>> -2];d:{if((c|0)<=0)break d;f=J[b+108>>2];if((f|0)<=0)break d;d=K[a+3|0];g=K[a+2|0];h=K[a+1|0];J[b+108>>2]=f-1;J[b+104>>2]=c-1;c=a;a=d|(h<<16|g<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}if(e){a=J[b+8>>2];c=J[a+16>>2];f=J[b+12>>2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,f,b)}}function Nc(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(!b)return 6;if(!a)return 40;d=J[a+32>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{g=K[b|0];switch(g-4|0){case 18:case 19:break h;case 16:case 17:break i; -case 14:case 15:break j;case 12:case 13:break k;case 10:case 11:break l;case 8:case 9:break m;case 20:case 21:break n;case 0:break o;case 4:case 5:break f;default:break g}}e=J[a+4>>2];g=L[b+2>>1];h=J[a+20>>2];if(h){if(e>>>0>>0){f=85;break c}e=J[a+28>>2];f=0;d=0;if(g){d=Ab[J[e+4>>2]](e,g)|0;if(!d)break d;h=J[a+20>>2]}J[a>>2]=d;h=Ab[h|0](a,J[a+8>>2],d,g)|0;d=J[a>>2];if(g>>>0>h>>>0){if(d)Ab[J[e+8>>2]](e,d);J[a>>2]=0;f=85;d=0}J[a+32>>2]=d;J[a+36>>2]=d?d+g|0:0;J[a+8>>2]=h+J[a+8>>2];e=1;if(g>>>0<=h>>> -0)break a;break c}f=85;d=J[a+8>>2];if(d>>>0>=e>>>0|g>>>0>e-d>>>0)break c;J[a+8>>2]=d+g;d=d+J[a>>2]|0;J[a+32>>2]=d;J[a+36>>2]=d+g;e=1;break a}f=K[b+1|0];e=f+d|0;if(e>>>0>M[a+36>>2]){f=85;break c}if((g|0)!=24)break b;Mb(L[b+2>>1]+c|0,d,f);break b}e=d+2|0;f=16;d=K[d+1|0]|K[d|0]<<8;break e}e=d+2|0;f=16;d=K[d|0]|K[d+1|0]<<8;break e}e=d+4|0;f=0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break e}e=d+4|0;f=0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24); -break e}f=8;e=d+3|0;d=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);break e}f=8;e=d+3|0;d=K[d|0]|(K[d+1|0]<<8|K[d+2|0]<<16);break e}J[a+32>>2]=d;f=0;break c}e=d+1|0;f=24;d=K[d|0]}d=g&1?d<>f:d;f=L[b+2>>1]+c|0;p:{q:switch(K[b+1|0]-1|0){case 0:H[f|0]=d;break p;case 1:I[f>>1]=d;break p;default:break q}J[f>>2]=d}d=e;e=i;break a}J[a>>2]=0;f=64}if(i&255){if(J[a+20>>2]){b=J[a>>2];if(b){c=J[a+28>>2];Ab[J[c+8>>2]](c,b)}J[a>>2]=0}J[a+32>>2]=0;J[a+36>>2]=0}return f}d=e;e=i}b=b+4|0;i=e;continue}}function xm(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;j=xb+-64|0;xb=j;J[j>>2]=J[b>>2];J[j+4>>2]=J[c>>2];l=K[e+9|0];n=l?10:9;while(1){i=(g<<2)+j|0;o=i;m=J[i>>2];J[i+8>>2]=m;if(K[e+g|0]){i=J[a+8>>2];a:{if(J[a+12>>2]-i>>3>>>0<=h>>>0){i=0;k=J[a+4>>2];if(!k|J[k>>2])break a;J[k>>2]=130;break a}k=i+(h<<3)|0;i=J[k>>2];b:switch(J[k+4>>2]-1|0){case 1:i=i<<16;break a;case 0:break b;default:break a}i=((i>>31)+i|0)- -8192>>14}J[o+8>>2]=i+m;h=h+1|0}g=g+1|0;if((n|0)!=(g|0))continue;break}if(!l)J[j+44>>2]=J[c>>2];c:{if(f){i= -J[j+44>>2];f=i-J[c>>2]|0;e=f>>31;f=(e^f)-e|0;k=J[j+40>>2];g=k-J[b>>2]|0;e=g>>31;l=(e^g)-e|0;e=J[a+8>>2];d:{if(J[a+12>>2]-e>>3>>>0<=h>>>0){g=0;e=J[a+4>>2];if(!e|J[e>>2])break d;J[e>>2]=130;break d}e=e+(h<<3)|0;g=J[e>>2];e:switch(J[e+4>>2]-1|0){case 1:g=g<<16;break d;case 0:break e;default:break d}g=((g>>31)+g|0)- -8192>>14}if((f|0)<(l|0)){g=g+k|0;h=J[c>>2];break c}h=g+i|0;g=J[b>>2];break c}f:{if(K[e+10|0]){i=J[j+40>>2];f=J[a+8>>2];g:{if(J[a+12>>2]-f>>3>>>0<=h>>>0){g=0;f=J[a+4>>2];if(!f|J[f>>2])break g; -J[f>>2]=130;break g}f=f+(h<<3)|0;g=J[f>>2];h:switch(J[f+4>>2]-1|0){case 1:g=g<<16;break g;case 0:break h;default:break g}g=((g>>31)+g|0)- -8192>>14}h=h+1|0;g=g+i|0;break f}g=J[b>>2]}if(K[e+11|0]){i=J[j+44>>2];e=J[a+8>>2];i:{if(J[a+12>>2]-e>>3>>>0<=h>>>0){h=0;e=J[a+4>>2];if(!e|J[e>>2])break i;J[e>>2]=130;h=i;break c}e=e+(h<<3)|0;h=J[e>>2];j:switch(J[e+4>>2]-1|0){case 1:h=(h<<16)+i|0;break c;case 0:break j;default:break i}h=((h>>31)+h|0)- -8192>>14}h=h+i|0;break c}h=J[c>>2];i=J[j+44>>2]}Ah(d,J[j+8>> -2],J[j+12>>2],J[j+16>>2],J[j+20>>2],J[j+24>>2],J[j+28>>2]);Ah(d,J[j+32>>2],J[j+36>>2],J[j+40>>2],i,g,h);J[a+12>>2]=J[a+8>>2];J[b>>2]=g;J[c>>2]=h;xb=j- -64|0}function Ija(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-80|0;xb=e;d=e+76|0;J[d>>2]=0;a:{if(!ws(d,a,b))break a;b:{c:{d:switch(J[d>>2]-10|0){case 0:case 11:if((c|0)!=24)break a;d=Pb(28);J[195395]=0;c=ca(1795,d|0,0)|0;f=J[195395];J[195395]=0;if((f|0)==1){a=Z()|0;Kb(d);ba(a|0);B()}Ab[J[J[c>>2]+24>>2]](c,a,b)|0;a=e+16|0;Ab[J[J[c>>2]+52>>2]](a, -c,0,0);J[195395]=0;d=e- -64|0;g=a;a=H[e+27|0];b=(a|0)<0;ia(1138,d|0,(b?J[e+16>>2]:g)|0,(b?J[e+20>>2]:a&255)|0,0);a=J[195395];J[195395]=0;e:{f:{if((a|0)!=1){a=J[J[c>>2]+12>>2];J[195395]=0;_(a|0,c|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;f=_(1078,12)|0;a=J[195395];J[195395]=0;if((a|0)==1)break f;H[f+8|0]=1;J[f>>2]=0;J[f+4>>2]=0;J[195395]=0;b=K[e+75|0];a=b<<24>>24;a=(a|0)<0;b=a?J[e+68>>2]:b;c=_(1109,b|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break f;J[f+4>>2]=b;J[f>>2]=c;g=c;c=J[e+ -64>>2];Mb(g,a?c:d,b);if(a)Kb(c);if(H[e+27|0]>=0)break a;Kb(J[e+16>>2]);break a}f=Z()|0;break e}f=Z()|0;if(H[e+75|0]>=0)break e;Kb(J[e+64>>2])}if(H[e+27|0]>=0)break c;Kb(J[e+16>>2]);ba(f|0);B();default:break d}d=e+16|0;J[d>>2]=0;J[d+4>>2]=0;H[d+40|0]=0;J[d+32>>2]=0;J[d+36>>2]=-1074790400;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;H[d+24|0]=0;H[d+25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+28|0]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[195395]=0;ha(1139,d|0,a|0,b|0,c|0)|0;a=J[195395];J[195395]=0;if((a| -0)!=1)g:{J[e+64>>2]=0;J[195395]=0;J[e+12>>2]=0;a=ha(1137,d|0,e- -64|0,e+12|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break g;if(!a)break b;J[195395]=0;f=_(1078,12)|0;a=J[195395];J[195395]=0;if((a|0)==1)break g;H[f+8|0]=0;J[f>>2]=J[e+64>>2];J[f+4>>2]=J[e+12>>2];kd(d);break a}f=Z()|0;kd(d)}ba(f|0);B()}kd(d)}xb=e+80|0;return f|0}function wG(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;e=J[b+88>>2];c=K[a+2|0]|K[a+3|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;j=ld(c,J[J[e+80>>2]+ -P(J[e+64>>2],20)>>2]);a:b:{if((j|0)==-1)break b;J[b+12>>2]=8;f=J[e+64>>2];c=J[b+212>>2];if(f>>>0>>0){J[b+208>>2]=-1;J[b+212>>2]=0;c=0}c:{if(c>>>0>=f>>>0)break c;while(1){d:{h=J[b+12>>2];f=f-1|0;k=P(f,20);d=k+J[e+80>>2]|0;c=L[d+12>>1];if(h&c&14)break d;if(c&8)if(!Bd(J[b+8>>2],J[d>>2],c,h))break d;h=1;c=L[d+16>>1];if(!(K[d+12|0]&16|(c&96)!=32|!K[b+20|0]&(c&543)==513))h=!K[b+21|0]&(c&287)==257;c=J[b+32>>2];if(c){c=K[c|0]|K[c+1|0]<<8;c=(c<<8|c>>>8)&65535}else c=0;if(!(J[b+16>>2]&J[d+4>>2]))break d; -i=K[b+23|0];if((i|0)!=K[d+15|0]?i:0)break d;i=J[b+24>>2];e:{if(i){if(Ab[i|0](d,c,J[b+28>>2])|0)break e;break d}if(!h)break d}h=1;c=J[e+80>>2]+P(f,20)|0;f:{if(!(K[c+12|0]&64)|!f)break f;d=K[c+14|0];i=d&16?0:d&15;if(!i|(L[c-8>>1]&72)!=64)break f;c=K[c-6|0];if((c^d)>>>0>31)break f;h=(i|0)!=((c&16?1:(c&15)+1|0)|0)}if(!h){c=K[a+4|0]|K[a+5|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;if((ld(c,J[J[e+80>>2]+k>>2])|0)==-1)break d}J[b+208>>2]=f;break c}if(M[b+212>>2]>>0)continue;break}}c=J[e+64>> -2];J[b+212>>2]=c;d=J[b+208>>2];if((d|0)==-1){if(!(K[e+16|0]&64))break b;Ac(e,2,0,c+1|0,0,1);g=0;break a}c=K[a+4|0]|K[a+5|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;f=ld(c,J[J[e+80>>2]+P(d,20)>>2]);if((f|0)==-1){if(!(K[e+16|0]&64))break b;Ac(e,2,d,J[e+64>>2]+1|0,0,1);g=0;break a}c=K[a+8|0]|K[a+9|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;g=K[a+10|0]|K[a+11|0]<<8;if(g)g=((g<<8|g>>>8)&65535)+a|0;else g=169776;a=K[a+6|0]|K[a+7|0]<<8;g=_s(c,b,j,f,g,(a<<8|a>>>8)&65535,d)}return g|0}function yna(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;var h=0,i=0,j=0;h=rh(a,b);a:{b:{if((d|0)==-1)break b;b=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))>>>0<65537)break b;a=169776;c:{if((b&65535)!=256)break c;b=K[h+10|0]|K[h+11|0]<<8|(K[h+12|0]<<16|K[h+13|0]<<24);a=169776;if(!b)break c;a=h+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0}b=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))>>>0>d>>>0)b=(a+(d<<3)| -0)+8|0;else b=169776;b=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(b)d=a+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else d=169776;a=K[d+4|0]|K[d+5|0]<<8;if(!a)break b;a=(a<<8|a>>>8)&65535;a=a>>>0<=1?1:a;b=0;while(1){i=d+P(b,6)|0;j=K[i+6|0]|K[i+7|0]<<8;if(((j<<8|j>>>8)&65535)==(c|0)){b=K[i+8|0]|K[i+9|0]<<8|(K[i+10|0]<<16|K[i+11|0]<<24);a=169776;if(!b)break a;a=d+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;break a}b=b+1|0;if((a|0)!=(b|0))continue;break}}a=169776;d:{if((K[h|0]|K[h+1|0]<<8)!= -256)break d;b=K[h+6|0]|K[h+7|0]<<8;a=169776;if(!b)break d;a=h+((b<<8|b>>>8)&65535)|0}b=a;a=K[b|0]|K[b+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>c>>>0)c=(b+P(c,6)|0)+2|0;else c=169776;c=K[c+4|0]|K[c+5|0]<<8;a=169776;if(!c)break a;a=b+((c<<8|c>>>8)&65535)|0}e:{if(!f)break e;b=K[a+2|0]|K[a+3|0]<<8;b=(b<<8|b>>>8)&65535;c=b-e|0;b=b>>>0>=c>>>0?c:0;c=J[f>>2];d=b>>>0>>0?b:c;J[f>>2]=d;if(!d)break e;f=(a+(e<<1)|0)+4|0;c=J[42444];e=d;while(1){b=K[f|0]|K[f+1|0]<<8;h=(b<<8|b>>>8)&65535;if(d)b=g;else{J[194120]=c; -b=776480}J[b>>2]=h;f=f+2|0;g=(((d|0)!=0)<<2)+g|0;b=d-1|0;d=b>>>0<=d>>>0?b:0;e=e-1|0;if(e)continue;break}}a=K[a+2|0]|K[a+3|0]<<8;return(a<<8|a>>>8)&65535}function Oea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a+420>>2];if(b){b=J[a>>2];J[b+20>>2]=49;Ab[J[b>>2]](a)}a:{if(J[a+264>>2]){b=J[a+360>>2];if(!J[a+368>>2]){if(!b){J[d+4>>2]=1531;break a}J[d+4>>2]=1532;break a}if(!b){J[d+4>>2]=1533;break a}J[d+4>>2]=1534;break a}J[d+4>>2]=1535}if(J[a+288>>2]>0){b=0;while(1){f=b<<2;g=J[(f+a|0)+292>>2];if(!(J[a+ -360>>2]|J[a+368>>2])){e=J[g+20>>2];if(e>>>0>=16){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=50;Ab[J[J[a>>2]>>2]](a)}e=(e<<2)+d|0;c=J[e+76>>2];if(!c){c=Ab[J[J[a+4>>2]>>2]](a,1,64)|0;J[e+76>>2]=c}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+ -43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=d+f|0;J[c+52>>2]=0;J[c+36>>2]=0}if(J[a+364>>2]){e=J[g+24>>2]; -if(e>>>0>=16){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=50;Ab[J[J[a>>2]>>2]](a)}e=(e<<2)+d|0;c=J[e+140>>2];if(!c){c=Ab[J[J[a+4>>2]>>2]](a,1,256)|0;J[e+140>>2]=c}Nb(c,0,256)}b=b+1|0;if((b|0)>2])continue;break}}J[d+28>>2]=11;J[d+32>>2]=-1;J[d+20>>2]=0;J[d+24>>2]=0;J[d+12>>2]=0;J[d+16>>2]=65536;a=J[a+236>>2];J[d+72>>2]=0;J[d+68>>2]=a}function rZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-32|0;xb=f;j=f+24|0;k=b;g=c;a:{b:{h=b+4|0;if((h|0)!=(c|0)){i=J[d>>2];b=J[c+16>>2]; -if((i|0)>=(b|0))break b}j=J[g>>2];c:{if((g|0)!=J[k>>2]){d:{if(!j){b=g;while(1){c=J[b+8>>2];i=J[c>>2]==(b|0);b=c;if(i)continue;break}break d}b=j;while(1){c=b;b=J[c+4>>2];if(b)continue;break}}i=J[d>>2];if((i|0)<=J[c+16>>2])break c}if(!j){J[f+28>>2]=g;c=g;break a}J[f+28>>2]=c;c=c+4|0;break a}b=J[h>>2];if(!b){J[f+28>>2]=h;c=h;break a}while(1){e:{c=b;d=J[c+16>>2];if((d|0)>(i|0)){h=c;b=J[c>>2];if(b)continue;break e}if((d|0)>=(i|0))break e;h=c+4|0;b=J[c+4>>2];if(b)continue}break}J[f+28>>2]=c;c=h;break a}if((b| -0)<(i|0)){d=J[g+4>>2];f:{if(!d){b=g;while(1){c=J[b+8>>2];j=J[c>>2]!=(b|0);b=c;if(j)continue;break}break f}b=d;while(1){c=b;b=J[c>>2];if(b)continue;break}}if(!((c|0)!=(h|0)&J[c+16>>2]<=(i|0))){if(!d){J[f+28>>2]=g;c=g+4|0;break a}J[f+28>>2]=c;break a}b=J[h>>2];if(!b){J[f+28>>2]=h;c=h;break a}while(1){g:{c=b;d=J[c+16>>2];if((d|0)>(i|0)){h=c;b=J[c>>2];if(b)continue;break g}if((d|0)>=(i|0))break g;h=c+4|0;b=J[c+4>>2];if(b)continue}break}J[f+28>>2]=c;c=h;break a}J[f+28>>2]=g;J[j>>2]=g;c=j}h:{d=J[c>>2]; -if(d)b=0;else{d=Pb(32);J[f+16>>2]=k+4;J[f+12>>2]=d;H[f+20|0]=0;J[d+16>>2]=J[e>>2];g=d+20|0;i:{if(H[e+15|0]>=0){b=J[e+8>>2];J[g>>2]=J[e+4>>2];J[g+4>>2]=b;J[g+8>>2]=J[e+12>>2];break i}h=J[e+8>>2];b=J[e+4>>2];J[195395]=0;fa(1808,g|0,b|0,h|0);b=J[195395];J[195395]=0;if((b|0)==1)break h}J[d+8>>2]=J[f+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[c>>2]=d;b=d;e=J[J[k>>2]>>2];if(e){J[k>>2]=e;b=J[c>>2]}Sh(J[k+4>>2],b);J[k+8>>2]=J[k+8>>2]+1;b=1}H[a+4|0]=b;J[a>>2]=d;xb=f+32|0;return}a=Z()|0;FA(f+12|0);ba(a|0);B()}function fA(a){var b= -0,c=0,d=0,e=0,f=0,g=0;a:{if(!(R(0-O[a+40>>3])<=2.220446049250313E-16))break a;c=O[a+8>>3];f=0;b:{if(R(1.7976931348623157E308-c)<=2.220446049250313E-16)break b;b=O[a+24>>3];f=0;if(R(-1.7976931348623157E308-b)<=2.220446049250313E-16)break b;f=b-c}if(R(0-f)<=2.220446049250313E-16)break a;b=O[a+8>>3];c:{if(R(1.7976931348623157E308-b)<=2.220446049250313E-16)break c;c=O[a+24>>3];if(R(-1.7976931348623157E308-c)<=2.220446049250313E-16)break c;d=c-b}O[a+40>>3]=d}d:{e:{if(!(R(0-O[a+48>>3])<=2.220446049250313E-16))break e; -b=O[a+16>>3];d=0;f:{if(R(1.7976931348623157E308-b)<=2.220446049250313E-16)break f;c=O[a+32>>3];d=0;if(R(-1.7976931348623157E308-c)<=2.220446049250313E-16)break f;d=c-b}if(R(0-d)<=2.220446049250313E-16)break e;d=O[a+16>>3];g:{if(R(1.7976931348623157E308-d)<=2.220446049250313E-16)break g;b=O[a+32>>3];if(R(-1.7976931348623157E308-b)<=2.220446049250313E-16)break g;e=b-d}O[a+48>>3]=e;break d}e=O[a+48>>3]}d=O[a+40>>3];if(!(d==0|e!=0)){b=O[a+16>>3];e=0;h:{if(R(1.7976931348623157E308-b)<=2.220446049250313E-16)break h; -c=O[a+32>>3];e=0;if(R(-1.7976931348623157E308-c)<=2.220446049250313E-16)break h;e=c-b}b=O[a+8>>3];i:{if(R(1.7976931348623157E308-b)<=2.220446049250313E-16)break i;c=O[a+24>>3];if(R(-1.7976931348623157E308-c)<=2.220446049250313E-16)break i;g=c-b}O[a+48>>3]=d*(e/g);return}j:{if(d!=0)break j;d=0;if(e==0)break j;b=O[a+8>>3];k:{if(R(1.7976931348623157E308-b)<=2.220446049250313E-16)break k;c=O[a+24>>3];if(R(-1.7976931348623157E308-c)<=2.220446049250313E-16)break k;d=c-b}b=O[a+16>>3];l:{if(R(1.7976931348623157E308- -b)<=2.220446049250313E-16)break l;c=O[a+32>>3];if(R(-1.7976931348623157E308-c)<=2.220446049250313E-16)break l;g=c-b}O[a+40>>3]=e*(d/g)}}function a0(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-32|0;xb=f;j=f+24|0;k=b;g=c;a:{b:{h=b+4|0;if((h|0)!=(c|0)){i=L[d>>1];b=L[c+16>>1];if(i>>>0>=b>>>0)break b}j=J[g>>2];c:{if((g|0)!=J[k>>2]){d:{if(!j){b=g;while(1){c=J[b+8>>2];i=J[c>>2]==(b|0);b=c;if(i)continue;break}break d}b=j;while(1){c=b;b=J[c+4>>2];if(b)continue;break}}i=L[d>>1]; -if(i>>>0<=L[c+16>>1])break c}if(!j){J[f+28>>2]=g;c=g;break a}J[f+28>>2]=c;c=c+4|0;break a}b=J[h>>2];if(!b){J[f+28>>2]=h;c=h;break a}while(1){e:{c=b;d=L[c+16>>1];if(d>>>0>i>>>0){h=c;b=J[c>>2];if(b)continue;break e}if(d>>>0>=i>>>0)break e;h=c+4|0;b=J[c+4>>2];if(b)continue}break}J[f+28>>2]=c;c=h;break a}if(b>>>0>>0){d=J[g+4>>2];f:{if(!d){b=g;while(1){c=J[b+8>>2];j=J[c>>2]!=(b|0);b=c;if(j)continue;break}break f}b=d;while(1){c=b;b=J[c>>2];if(b)continue;break}}if(!((c|0)!=(h|0)&L[c+16>>1]<=i>>>0)){if(!d){J[f+ -28>>2]=g;c=g+4|0;break a}J[f+28>>2]=c;break a}b=J[h>>2];if(!b){J[f+28>>2]=h;c=h;break a}while(1){g:{c=b;d=L[c+16>>1];if(d>>>0>i>>>0){h=c;b=J[c>>2];if(b)continue;break g}if(d>>>0>=i>>>0)break g;h=c+4|0;b=J[c+4>>2];if(b)continue}break}J[f+28>>2]=c;c=h;break a}J[f+28>>2]=g;J[j>>2]=g;c=j}h:{d=J[c>>2];if(d)b=0;else{d=Pb(32);J[f+16>>2]=k+4;J[f+12>>2]=d;H[f+20|0]=0;I[d+16>>1]=L[e>>1];g=d+20|0;i:{if(H[e+15|0]>=0){b=J[e+8>>2];J[g>>2]=J[e+4>>2];J[g+4>>2]=b;J[g+8>>2]=J[e+12>>2];break i}h=J[e+8>>2];b=J[e+4>> -2];J[195395]=0;fa(1808,g|0,b|0,h|0);b=J[195395];J[195395]=0;if((b|0)==1)break h}J[d+8>>2]=J[f+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[c>>2]=d;b=d;e=J[J[k>>2]>>2];if(e){J[k>>2]=e;b=J[c>>2]}Sh(J[k+4>>2],b);J[k+8>>2]=J[k+8>>2]+1;b=1}H[a+4|0]=b;J[a>>2]=d;xb=f+32|0;return}a=Z()|0;FA(f+12|0);ba(a|0);B()}function Ps(a,b){var c=0,d=Q(0),e=Q(0),f=Q(0),g=Q(0),h=0,i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=0;h=xb-16|0;xb=h;c=J[a+4>>2];a:{if(!c){c=J[42449];J[194124]=J[42448];J[194125]= -c;c=J[42447];J[194122]=J[42446];J[194123]=c;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480;break a}c=(J[a+8>>2]+P(c,24)|0)-24|0}d=N[b+8>>2];k=N[b+12>>2];J[b+8>>2]=-1082130432;J[b+12>>2]=-1082130432;e=N[b+4>>2];o=N[b>>2];J[b>>2]=0;J[b+4>>2]=0;p=N[c+4>>2];q=Q(d*p);l=N[c+12>>2];f=Q(e*l);m=N[c+20>>2];j=Q(Q(q+f)+m);g=d;d=N[c>>2];r=Q(g*d);g=N[c+8>>2];e=Q(e*g);n=N[c+16>>2];i=Q(Q(r+e)+n);s=Q(k*l);d=Q(d*o);e=Q(Q(d+e)+n);g=Q(g*k);d=Q(Q(d+g)+n);k=e<=d?e:d;l=e>=d?e:d;b:{if(k>l){e=i;d=j;break b}d=Q(p*o);f= -Q(Q(d+f)+m);e=Q(Q(d+s)+m);d=e<=f?f:e;d=d>=j?d:j;e=e>=f?f:e;j=e<=j?e:j;e=i<=l?l:i;i=i>=k?k:i}f=Q(Q(q+s)+m);g=Q(Q(r+g)+n);c:{if(e=f?d:f;e=e>=g?e:g;f=f>=j?j:f;g=g>=i?i:g}N[b+12>>2]=d;N[b>>2]=g;N[b+8>>2]=e;N[b+4>>2]=f;f=N[b+8>>2];g=N[b>>2];e=N[b+12>>2];d=N[b+4>>2];c=J[b+12>>2];J[h+8>>2]=J[b+8>>2];J[h+12>>2]=c;c=J[b+4>>2];J[h>>2]=J[b>>2];J[h+4>>2]=c;b=J[a+12>>2];c=J[a+16>>2];d:{e:{if((b|0)>(c|0))break e;f:{if((b|0)>=0){t=c+1|0;if(t>>>0<=b>>>0)break e;c=b;while(1){c=((c>>>1|0)+c| -0)+8|0;if(t>>>0>c>>>0)continue;break}if(c>>>0<=214748364){b=ic(J[a+20>>2],P(c,20));if(b)break f;b=J[a+12>>2];if(c>>>0<=b>>>0)break e}J[a+12>>2]=b^-1}J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;break d}J[a+12>>2]=c;J[a+20>>2]=b}b=J[a+16>>2];J[a+16>>2]=b+1;b=J[a+20>>2]+P(b,20)|0;J[b>>2]=f<=g?2:e<=d?2:1;a=J[h+4>>2];J[b+4>>2]=J[h>>2];J[b+8>>2]=a;a=J[h+12>>2];J[b+12>>2]=J[h+8>>2];J[b+16>>2]=a}xb=h+16|0}function xi(a,b){var c=0,d=0,e=0,f=0,g=0, -h=0,i=0,j=0;d=169776;a:{if((K[a|0]|K[a+1|0]<<8)!=256)break a;c=K[a+4|0]|K[a+5|0]<<8;if(!c)break a;d=((c<<8|c>>>8)&65535)+a|0}b:{c:{d:{e:{f:{g:{h:{c=K[d|0]|K[d+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break g;case 0:break h;default:break b}}e=K[d+4|0]|K[d+5|0]<<8;i=(e<<8|e>>>8)&65535;e=K[d+2|0]|K[d+3|0]<<8;e=b-((e<<8|e>>>8)&65535)|0;c=169776;if(i>>>0<=e>>>0)break f;c=((e<<1)+d|0)+6|0;break f}g=170426;c=K[d+2|0]|K[d+3|0]<<8;i:{if(!c)break i;h=d+4|0;d=((c<<8|c>>>8)&65535)-1|0;c=0;while(1){e=d+ -c>>>1|0;f=h+P(e,6)|0;i=K[f|0]|K[f+1|0]<<8;j:{if(((i<<8|i>>>8)&65535)>>>0<=b>>>0){c=K[f+2|0]|K[f+3|0]<<8;if(((c<<8|c>>>8)&65535)>>>0>>0){c=e+1|0;break j}g=h+P(e,6)|0;break i}d=e-1|0}if((d|0)>=(c|0))continue;break}}c=g+4|0}d=K[c|0]|K[c+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break b}}return 2}return 4}d=169776;k:{if((K[a|0]|K[a+1|0]<<8)!=256)break k;c=K[a+10|0]|K[a+11|0]<<8;if(!c)break k;d=((c<<8|c>>>8)&65535)+a|0}j=8;l:{m:{n:{a=K[d|0]|K[d+1| -0]<<8;switch(((a<<8|a>>>8)&65535)-1|0){case 1:break m;case 0:break n;default:break b}}a=b;b=K[d+2|0]|K[d+3|0]<<8;b=a-((b<<8|b>>>8)&65535)|0;c=K[d+4|0]|K[d+5|0]<<8;a=169776;if(b>>>0>=((c<<8|c>>>8)&65535)>>>0)break l;a=((b<<1)+d|0)+6|0;break l}a=170426;c=K[d+2|0]|K[d+3|0]<<8;o:{if(!c)break o;g=d+4|0;d=((c<<8|c>>>8)&65535)-1|0;c=0;while(1){e=d+c>>>1|0;f=g+P(e,6)|0;h=K[f|0]|K[f+1|0]<<8;p:{if(((h<<8|h>>>8)&65535)>>>0<=b>>>0){c=K[f+2|0]|K[f+3|0]<<8;if(((c<<8|c>>>8)&65535)>>>0>>0){c=e+1|0;break p}a=g+ -P(e,6)|0;break o}d=e-1|0}if((d|0)>=(c|0))continue;break}}a=a+4|0}a=K[a|0]|K[a+1|0]<<8;j=((a<<8|a>>>8)&65535)<<8|8}return j}function Fu(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;d=xb-80|0;xb=d;c=K[c+2|0]|K[c+3|0]<<8;e=c<<8|c>>>8;c=e&65535;f=J[b+4>>2];if(e<<16>>16<0)J[a+4>>2]=J[f+64>>2];if(c&8192){b=J[f+64>>2]+1|0;e=J[f+68>>2];J[a+8>>2]=b>>>0>>0?b:e}j=c&15;a:{if(!j)break a;c=J[a+4>>2];g=J[a+8>>2];if(c>>>0>=g>>>0)break a;b=g-c|0;if(b>>>0>64)break a;h=K[j+106464|0];m=h>>>4|0;e=m>>>0>= -2?2:m;h=h&15;k=h>>>0>=2?2:h;n=e+k|0;if(b>>>0>>0)break a;i=J[f+64>>2]+1|0;l=J[f+68>>2];i=i>>>0>>0?i:l;if(i-c>>>0>=2){Kd(f,c,i);g=J[a+8>>2];c=J[a+4>>2];b=g-c|0}if(b>>>0>=2){Kd(f,c,g);c=J[a+4>>2]}g=P(e,20);f=J[f+80>>2];b=f+P(c,20)|0;l=197>>>j&1;if(!l)Mb(d,b,g);j=P(k,20);i=J[a+8>>2];if(h)Mb(d+40|0,(f+P(i,20)|0)+P(k,-20)|0,j);if((e|0)!=(k|0))qc(b+P(k,20)|0,b+P(e,20)|0,P(i-(c+n|0)|0,20));if(h)Mb(f+P(J[a+4>>2],20)|0,d+40|0,j);if(!l)Mb((f+P(J[a+8>>2],20)|0)+P(e,-20)|0,d,g);if((m|0)==3){c=f+P(J[a+8>> -2],20)|0;b=c-20|0;J[d+16>>2]=J[b+16>>2];e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;e=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=e;c=c-40|0;e=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=e;e=J[c+12>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=e;J[b+16>>2]=J[c+16>>2];c=J[d+4>>2];b=(f+P(J[a+8>>2],20)|0)-40|0;J[b>>2]=J[d>>2];J[b+4>>2]=c;J[b+16>>2]=J[d+16>>2];c=J[d+12>>2];J[b+8>>2]=J[d+8>>2];J[b+12>>2]=c}if((h|0)!=3)break a;b=f+P(J[a+4>>2],20)|0;J[d+16>>2]=J[b+16>>2];c=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=c;c=J[b+12>>2];J[d+ -8>>2]=J[b+8>>2];J[d+12>>2]=c;c=J[b+24>>2];J[b>>2]=J[b+20>>2];J[b+4>>2]=c;c=J[b+32>>2];J[b+8>>2]=J[b+28>>2];J[b+12>>2]=c;J[b+16>>2]=J[b+36>>2];a=f+P(J[a+4>>2],20)|0;J[a+36>>2]=J[d+16>>2];b=J[d+12>>2];J[a+28>>2]=J[d+8>>2];J[a+32>>2]=b;b=J[d+4>>2];J[a+20>>2]=J[d>>2];J[a+24>>2]=b}xb=d+80|0}function qH(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;a:{g=J[a+88>>2];j=J[g+68>>2];b:{if(!j)break b;h=J[a+176>>2];if(!h)break b;i=K[b+4|0]|K[b+5|0]<<8;i=(i<<8|i>>>8)&65535;e=b+4|0;d=K[b+2|0]|K[b+3|0]<< -8;f=d<<8|d>>>8;d=f&65535;if(f&16){f=d;d=e+(i<<1)|0;d=K[d+2|0]|K[d+3|0]<<8;d=f|(d<<24|d<<8&16711680)}J[a+184>>2]=d;J[a+36>>2]=j;J[a+8>>2]=a;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+12>>2]=d;H[a+21|0]=K[a+194|0];J[a+16>>2]=h;J[a+44>>2]=a;H[a+23|0]=0;j=J[a+76>>2];h=(j|0)==1;H[a+20|0]=h;f=!j&K[a+195|0]!=0;H[a+22|0]=f;J[a+72>>2]=J[g+68>>2];J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+48>>2]=d;H[a+57|0]=1;H[a+59|0]=0;H[a+58|0]=f&(j|0)!=1;J[a+52>>2]=-1;H[a+56|0]=h?1:K[a+193|0];d=K[b|0]|K[b+1|0]<<8;c:{if((d| -0)!=1792){if((d|0)!=2048)break c;break a}d=169776;e=K[e|0]|K[e+1|0]<<8?b+6|0:169776;e=K[e|0]|K[e+1|0]<<8;if(e)d=((e<<8|e>>>8)&65535)+b|0;if((K[d|0]|K[d+1|0]<<8)!=256)break c;if((K[d+2|0]|K[d+3|0]<<8)==2048)break a}J[g+72>>2]=0;J[g+64>>2]=0;I[g+62>>1]=1;J[g+84>>2]=J[g+80>>2];J[g+64>>2]=0;oH(a,c,i);hf(g)}return}J[g+64>>2]=J[g+68>>2]-1;b=i;j=0;i=c;g=i+16|0;c=a;e=J[a+88>>2];a=J[e+64>>2];while(1){d=J[e+80>>2]+P(a,20)|0;a=J[d>>2];d:{if(!(J[i>>2]>>>(a>>>4)&1)|!(J[i+4>>2]>>>a&1)|(!(J[i+8>>2]>>>(a>>>9)&1)| -!(J[c+176>>2]&J[d+4>>2])))break d;h=J[c+184>>2];d=L[d+12>>1];if(h&d&14)break d;if(d&8)if(!Bd(c,a,d,h))break d;h=0;a=g;d=b;e:{if(!d)break e;while(1){f:{f=J[c+88>>2];f=J[J[f+80>>2]+P(J[f+64>>2],20)>>2];if(!(J[a+16>>2]>>>(f>>>4)&1)|!(J[a+20>>2]>>>f&1)|!(J[a+24>>2]>>>(f>>>9)&1))break f;if(!(Ab[J[a+4>>2]](J[a>>2],c)|0))break f;h=1;break e}a=a+28|0;d=d-1|0;if(d)continue;break}}j=h|j}a=J[e+64>>2]-1|0;J[e+64>>2]=a;if((a|0)>=0)continue;break}}function Zna(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;d=J[a>>2];e=d+1|0;a:{if(e>>>0>c>>>0)break a;J[a>>2]=e;e=H[d|0];i=e&255;if((e|0)<0){e=d+2|0;if(e>>>0>c>>>0)break a;J[a>>2]=e;i=K[d+1|0]|i<<8&32512}d=J[b>>2];if((d|0)<0)break a;b:{c:{if(d>>>0>>0){f=d;while(1){f=((f>>>1|0)+f|0)+8|0;if(i>>>0>f>>>0)continue;break}d:{e:{if(f>>>0<=1073741823){d=ic(J[b+8>>2],f<<2);if(d)break e;d=J[b>>2];if(f>>>0<=d>>>0)break d}J[b>>2]=d^-1;return 0}J[b>>2]=f;J[b+8>>2]=d}J[b+4>>2]=i;break c}J[b+4>>2]=i;if(!i)break b}e=J[a>>2];f=0;while(1){d=e+1|0;if(d>>> -0>c>>>0)break a;J[a>>2]=d;k=K[e|0];h=(k&127)+1|0;l=h+f|0;if(l>>>0>i>>>0)break a;f:{g:{h:{k=k<<24>>24;if((k|0)<0){if((h<<1)+d>>>0>c>>>0)break a;if(f>>>0>=l>>>0){e=d;break f}if(h&1){d=K[e+1|0]|K[e+2|0]<<8;g=((d<<8|d>>>8)&65535)+g|0;J[J[b+8>>2]+(f<<2)>>2]=g;d=e+3|0;J[a>>2]=d;f=f+1|0}if(!(k&127))break h;while(1){e=f<<2;j=g;g=K[d|0]|K[d+1|0]<<8;g=j+((g<<8|g>>>8)&65535)|0;J[e+J[b+8>>2]>>2]=g;J[a>>2]=d+2;j=e+J[b+8>>2]|0;e=K[d+2|0]|K[d+3|0]<<8;g=g+((e<<8|e>>>8)&65535)|0;J[j+4>>2]=g;d=d+4|0;J[a>>2]=d;f=f+ -2|0;if((l|0)!=(f|0))continue;break}break h}if(d+h>>>0>c>>>0)break a;if(f>>>0>=l>>>0){e=d;break f}j=0;h=h&3;if(h)while(1){e=d+1|0;J[a>>2]=e;g=K[d|0]+g|0;J[J[b+8>>2]+(f<<2)>>2]=g;f=f+1|0;d=e;j=j+1|0;if((h|0)!=(j|0))continue;break}if((k&127)>>>0<3)break g;while(1){J[a>>2]=d+1;h=f<<2;e=K[d|0]+g|0;J[h+J[b+8>>2]>>2]=e;J[a>>2]=d+2;e=e+K[d+1|0]|0;J[(h+J[b+8>>2]|0)+4>>2]=e;J[a>>2]=d+3;g=e+K[d+2|0]|0;J[(h+J[b+8>>2]|0)+8>>2]=g;e=d+4|0;J[a>>2]=e;g=g+K[d+3|0]|0;J[(h+J[b+8>>2]|0)+12>>2]=g;d=e;f=f+4|0;if((l|0)!= -(f|0))continue;break}break g}e=d}f=l}if(f>>>0>>0)continue;break}}m=1}return m|0}function $G(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=a+2|0;a:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[c|0]|K[c+1|0]<<8;b:{if(!d)break b;if(Ld(b,((d<<8|d>>>8)&65535)+a|0))break b;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}c=a+4|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[c|0]|K[c+1|0]<<8;c:{if(!d)break c;if(zh(((d<<8|d>>>8)&65535)+a|0,b))break c; -d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}c=a+6|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[c|0]|K[c+1|0]<<8;d:{if(!d)break d;if(zh(((d<<8|d>>>8)&65535)+a|0,b))break d;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}c=a+8|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[c|0]|K[c+1|0]<<8;e:{if(!d)break e;if(zh(((d<<8|d>>>8)&65535)+a|0,b))break e;d=J[b+32>>2];if(d>>>0>31)break a; -J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}f=J[b+12>>2];c=a+10|0;d=J[b+4>>2];if(f>>>0>>0)break a;g=J[b+8>>2];if(g-c>>>0<2)break a;h=f;f=a+12|0;if(h>>>0>>0)break a;d=K[a+10|0]|K[a+11|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>g-f>>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;e=1;c=K[c|0]|K[c+1|0]<<8;if(!c)break a;c=(c<<8|c>>>8)&65535;f=c>>>0<=1?1:c;d=0;while(1){c=((d<<1)+a|0)+12|0;if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-c>>>0<2)return 0;e=K[c|0]|K[c+ -1|0]<<8;f:{if(!e)break f;if(YG(((e<<8|e>>>8)&65535)+a|0,b))break f;e=J[b+32>>2];if(e>>>0>31)return 0;J[b+32>>2]=e+1;if(!K[b+28|0])return 0;H[c|0]=0;H[c+1|0]=0}e=1;d=d+1|0;if((f|0)!=(d|0))continue;break}}return e}function Daa(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;c=J[a+584>>2];a:{if(K[a+13|0]&4){e=J[a+72>>2];d=J[a+68>>2];f=Hg(a);break a}d=J[a+60>>2]-J[a+472>>2]|0;f=J[a+100>>2];e=d>>>0>>0?d:f;d=J[a+56>>2];f=aD(a)}J[c+840>>2]=f;b:{if(!b){f=d;break b}if(L[a+138>>1]!=2){f=d;break b}f= -0;g=L[c+834>>1];if(0-g>>>0>d>>>0)f=((d+g|0)-1>>>0)/(g>>>0)|0;d=L[c+836>>1];if(0-d>>>0<=e>>>0){e=0;break b}e=((d+e|0)-1>>>0)/(d>>>0)|0}if(!(e>>>0<65536&f>>>0<=65535)){Ob(J[a+628>>2],288896,280073,0);return 0}J[c+32>>2]=e;J[c+28>>2]=f;c:{d:{if(L[a+138>>1]==1){J[c+36>>2]=L[a+98>>1];if(L[c+832>>1]==6){e=1;e:{if(J[c+924>>2]==1){J[c+40>>2]=2;break e}J[c+40>>2]=3;if(L[c+834>>1]==1&L[c+836>>1]==1)break e;e=0}if(!lr(c,3))return 0;J[J[c+84>>2]+8>>2]=L[c+834>>1];J[J[c+84>>2]+12>>2]=L[c+836>>1];break d}f=0;J[c+ -40>>2]=0;e=1;if(lr(c,0))break d;break c}J[c+36>>2]=1;J[c+40>>2]=0;f=0;if(!lr(c,0))break c;J[J[c+84>>2]>>2]=b;e=1;if(!b|L[c+832>>1]!=6)break d;J[J[c+84>>2]+16>>2]=1;J[J[c+84>>2]+20>>2]=1;J[J[c+84>>2]+24>>2]=1}f=0;J[c+256>>2]=0;J[c+244>>2]=0;if(!DC(c,J[c+920>>2]))break c;b=J[c+928>>2];f:{if(b&1)break f;d=J[c+88>>2];if(d)J[d+128>>2]=0;d=J[c+92>>2];if(!d)break f;J[d+128>>2]=0}J[c+216>>2]=(b^-1)>>>1&1;g:{if(e){J[c+208>>2]=0;J[a+560>>2]=1710;J[a+552>>2]=1710;J[a+544>>2]=1710;if(CC(c))break g;break c}J[c+ -208>>2]=1;J[a+560>>2]=1722;J[a+552>>2]=1722;J[a+544>>2]=1722;if(!CC(c))break c;b=J[a+584>>2];g=J[c+76>>2];h:{if((g|0)<=0){d=0;break h}a=J[c+84>>2];d=0;e=0;while(1){j=J[a+8>>2];h=J[a+12>>2];i=BC(b,J[a+28>>2]<<3,h<<3);if(!i)break c;J[(b+(e<<2)|0)+844>>2]=i;a=a+88|0;d=P(j,h)+d|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}J[b+888>>2]=d}J[c+884>>2]=0;f=1}return f|0}function cha(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;a:{if((d|0)<=0)break a;g=J[a+480>>2];j=J[a+112>>2];f=J[a+120>>2];if((f|0)<=0)while(1){Oc(J[(e<<2)+c>>2],j);J[g+84>>2]=!J[g+84>>2];e=e+1|0;if((e|0)!=(d|0))continue;break a}if(j){v=J[a+332>>2];o=0-f|0;s=j-1|0;w=P(f,s);while(1){a=p<<2;t=a+c|0;Oc(J[t>>2],j);x=a+b|0;k=0;while(1){m=J[x>>2]+k|0;e=J[t>>2];b:{if(J[g+84>>2]){h=(J[((k<<2)+g|0)+68>>2]+(j<<1)|0)+2|0;e=e+s|0;m=m+w|0;q=-1;a=o;break b}h=J[((k<<2)+g|0)+68>>2];q=1;a=f}y=a;a=k<<2;z=J[a+J[g+16>>2]>>2];A=J[a+J[g+24>>2]>>2];i=0;B=q<<1;n=0;l=j;r=0; -while(1){u=h+B|0;a=K[K[m|0]+(((I[u>>1]+i|0)+8>>4)+v|0)|0];i=K[a+A|0];H[e|0]=i+K[e|0];a=a-K[i+z|0]|0;I[h>>1]=P(a,3)+r;i=P(a,7);r=P(a,5)+n|0;e=e+q|0;m=m+y|0;n=a;h=u;l=l-1|0;if(l)continue;break}I[h>>1]=r;k=k+1|0;if((f|0)!=(k|0))continue;break}J[g+84>>2]=!J[g+84>>2];p=p+1|0;if((p|0)!=(d|0))continue;break}break a}j=f&-4;a=f&3;n=f>>>0<4;while(1){Oc(J[(l<<2)+c>>2],0);o=J[g+84>>2];c:{if(o){h=0;e=0;i=0;if(!n)while(1){b=g+68|0;f=e<<2;I[J[b+f>>2]+2>>1]=0;I[J[b+(f|4)>>2]+2>>1]=0;I[J[b+(f|8)>>2]+2>>1]=0;I[J[b+ -(f|12)>>2]+2>>1]=0;e=e+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}if(!a)break c;while(1){I[J[((e<<2)+g|0)+68>>2]+2>>1]=0;e=e+1|0;h=h+1|0;if((a|0)!=(h|0))continue;break}break c}h=0;e=0;i=0;if(!n)while(1){b=g+68|0;f=e<<2;I[J[b+f>>2]>>1]=0;I[J[b+(f|4)>>2]>>1]=0;I[J[b+(f|8)>>2]>>1]=0;I[J[b+(f|12)>>2]>>1]=0;e=e+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}if(!a)break c;while(1){I[J[((e<<2)+g|0)+68>>2]>>1]=0;e=e+1|0;h=h+1|0;if((a|0)!=(h|0))continue;break}}J[g+84>>2]=!o;l=l+1|0;if((l|0)!=(d|0))continue;break}}} -function YF(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;j=xb-48|0;xb=j;J[j>>2]=0;m=J[h+556>>2];k=J[g>>2];i=J[k>>2];J[j+16>>2]=0;J[j+20>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;J[j+36>>2]=a;J[j+32>>2]=f;J[j+40>>2]=0;J[j+4>>2]=k;l=(f|0)==12288|(f|0)==16384;n=l?513:96;k=Tb(i,4,0,n,0,j+44|0);J[j+20>>2]=k;a:{b:{if(!J[j+44>>2]){J[j+24>>2]=k;J[j+28>>2]=n;break b}if(k)Ab[J[i+8>>2]](i,k);J[j+20>>2]=0;i=J[j+44>>2];if(i)break a}Nb(a+24|0,0,160);J[a+156>>2]=8720;J[a+60>>2]=65536;J[a+44>>2]=2; -J[a+48>>2]=65536;J[a+32>>2]=-6553600;J[a+36>>2]=3276800;J[a+184>>2]=l?513:48;J[a+172>>2]=65535;J[a+136>>2]=65535;J[a+128>>2]=65535;J[a+132>>2]=65535;J[a+16>>2]=65535;J[a+20>>2]=65535;J[a+8>>2]=65535;J[a+12>>2]=65535;J[a>>2]=65535;J[a+4>>2]=65535;c:{d:{if(!J[b+12>>2]){i=bc(d,J[b+20>>2]);if(i)break a;i=Ne(d,J[b+24>>2],j);if(i)break a;c=b+24|0;break d}i=c;c=j+44|0;i=uo(b,i,j,c);if(i)break c}i=J[j>>2];i=mH(j+4|0,i,i?i+J[c>>2]|0:0)}e:{if(J[b+12>>2]){if(J[b+32>>2])break e;b=J[b>>2]}else b=d;rd(b,j)}if(i)break a; -i=0;if(J[a+132>>2]!=65535)break a;i=rH(g,a,0,0);if(i)break a;f:{if((f|0)==12288|(f|0)==16384)break f;f=J[J[h+128>>2]+60>>2];g:{if((f|0)==-1){b=J[h+96>>2];f=J[b+68>>2];J[a+648>>2]=f;if(!f)break g;while(1){f=Ab[J[m+20>>2]](f)|0;J[b+68>>2]=f;if((f|0)<0)continue;break}break g}J[a+648>>2]=f;if(!f)break g;while(1){f=Ab[J[m+20>>2]](f)|0;J[J[h+128>>2]+60>>2]=f;if((f|0)<0)continue;break}}if(J[a+648>>2])break f;J[a+648>>2]=J[a+532>>2]}b=J[a+536>>2];if(!b){i=0;break a}i=bc(d,J[a+116>>2]+(b+e|0)|0);if(i)break a; -b=a+608|0;i=pi(b,d,1,l);if(i)break a;i=Qs(b,a+644|0,0,0)}a=J[J[j+4>>2]>>2];b=J[j+20>>2];if(b)Ab[J[a+8>>2]](a,b);xb=j+48|0;return i}function Ru(a,b){a=a|0;b=b|0;var c=0,d=Q(0),e=0,f=0,g=Q(0),h=0,i=0,j=0,k=0,l=0,m=0;d=N[J[b+8>>2]+96>>2];l=d<=Q(0);a:{if(l)break a;m=J[J[b+4>>2]+124>>2];f=J[b+16>>2];if((J[f+40>>2]&-2)==4){c=K[a+6|0]|K[a+7|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;a=Qu(c,a,d);g=N[J[b+8>>2]+64>>2];d=Q(V(Q(Q(g*Q(a|0))+Q(.5))));b:{if(Q(R(d))>2];if(!e)break a;a=e-1|0;c=0;while(1){d:{if((a|0)==(c|0)){c=e;break d}c=c+1|0;if(K[(J[f+80>>2]+P(c,20)|0)+16|0]&128)continue}break}if(!e)break a;j=J[f+80>>2];a=0;while(1){a=P(a,20);if(J[(a+j|0)+4>>2]&m){a=a+J[f+88>>2]|0;J[a>>2]=h+J[a>>2];J[a+8>>2]=i+J[a+8>>2]}a=c+1|0;a=a>>>0>>0?e:a;k=a-1|0;b=c;while(1){e:{if((b|0)==(k|0)){b=a;break e}b=b+1|0;if(K[(j+P(b,20)|0)+16|0]&128)continue}break}k=c>>>0>> -0;a=c;c=b;if(k)continue;break}break a}c=K[a+8|0]|K[a+9|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;a=Qu(c,a,d);g=N[J[b+8>>2]+68>>2];d=Q(V(Q(Q(g*Q(a|0))+Q(.5))));f:{if(Q(R(d))>2];if(!e)break a;a=e-1|0;b=0;while(1){h:{if((a|0)==(b|0)){b=e;break h}b=b+1|0;if(K[(J[f+80>>2]+P(b,20)|0)+16|0]&128)continue}break}if(!e)break a;j=J[f+80>>2];a=0;while(1){a= -P(a,20);if(J[(a+j|0)+4>>2]&m){a=a+J[f+88>>2]|0;J[a+4>>2]=h+J[a+4>>2];J[a+12>>2]=i+J[a+12>>2]}a=b;c=a+1|0;c=c>>>0>>0?e:c;k=c-1|0;while(1){i:{if((b|0)==(k|0)){b=c;break i}b=b+1|0;if(K[(j+P(b,20)|0)+16|0]&128)continue}break}if(a>>>0>>0)continue;break}}return!l|0}function lea(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,u=0,v=0,w=0;m=xb+-64|0;d=a;while(1){a:{e=d;d=J[(i<<2)+b>>2]+c|0;f=K[d+4|0];g=K[d+5|0];r=f-g|0;l=K[d|0];n=K[d+9|0];h=l-n|0;s=r+ -h|0;o=K[d+2|0];t=K[d+7|0];u=o-t|0;p=K[d+1|0];q=K[d+8|0];j=p-q|0;v=K[d+3|0];w=K[d+6|0];d=v-w|0;k=j-d|0;J[e+20>>2]=s-(u+k|0)<<1;f=f+g|0;g=l+n|0;l=f+g|0;v=v+w|0;p=p+q|0;q=v+p|0;o=o+t|0;J[e>>2]=(l+(q+o|0)<<1)-2560;n=o<<1;J[e+16>>2]=(P(q-n|0,-3580)+P(l-n|0,9373)|0)+2048>>12;g=g-f|0;l=p-v|0;f=P(g+l|0,6810)+2048|0;J[e+24>>2]=f+P(l,-17828)>>12;J[e+8>>2]=f+P(g,4209)>>12;f=(P(h-r|0,7791)+P(d+j|0,-4815)|0)+2048|0;g=u<<13;k=((k<<12)-g|0)+P(k+s|0,2531)|0;J[e+28>>2]=f-k>>12;J[e+12>>2]=f+k>>12;J[e+4>>2]=(((g+(P(h, -11443)+P(j,10323)|0)|0)+P(d,5260)|0)+P(r,1812)|0)+2048>>12;h=i-7|0;i=i+1|0;d=m;r=7;b:switch(h|0){case 0:continue;case 2:break a;default:break b}d=e+32|0;continue}break}while(1){m=J[a+192>>2];i=J[a+96>>2];b=m+i|0;e=J[d>>2];h=J[a+32>>2];c=e+h|0;j=b+c|0;k=J[a+224>>2];f=J[a+64>>2];g=k+f|0;l=g<<1;n=J[a+160>>2];s=J[a+128>>2];o=n+s|0;t=J[d+32>>2];u=J[a>>2];p=t+u|0;q=o+p|0;J[a+128>>2]=(P(j-l|0,-4582)+P(q-l|0,11997)|0)+16384>>15;J[a>>2]=P(q+(g+j|0)|0,10486)+16384>>15;j=p-o|0;c=c-b|0;b=P(j+c|0,8716)+16384| -0;J[a+192>>2]=b+P(c,-22820)>>15;J[a+64>>2]=b+P(j,5387)>>15;b=s-n|0;c=u-t|0;j=b+c|0;e=h-e|0;m=i-m|0;i=e-m|0;h=f-k|0;J[a+160>>2]=P(j-(i+h|0)|0,10486)+16384>>15;k=(P(c-b|0,9973)+P(e+m|0,-6163)|0)+16384|0;h=P(h,10486);i=(P(i,5243)-h|0)+P(i+j|0,3240)|0;J[a+224>>2]=k-i>>15;J[a+96>>2]=i+k>>15;J[a+32>>2]=(((h+(P(c,14647)+P(e,13213)|0)|0)+P(m,6732)|0)+P(b,2320)|0)+16384>>15;b=r;r=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function Rfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;t=xb-192|0;xb=t;h=J[a+332>>2];a=J[b+84>>2];b=t;while(1){k=J[a+64>>2];i=I[c+32>>1];g=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+128>>2],I[c+64>>1]);r=g+P(j,-11586)>>11;f=P(J[a+32>>2],I[c+16>>1]);n=P(J[a+96>>2],I[c+48>>1]);l=P(J[a+160>>2],I[c+80>>1]);o=f-(n+l|0)<<2;J[b+128>>2]=r-o;J[b+32>>2]=o+r;k=P(P(i,k),10033);i=g+P(j,5793)|0;j=k+i|0;g=f+n<<13;f=P(f+l|0,2998);g=g+f|0;J[b+160>>2]=j-g>>11;J[b>>2]=g+j>>11;k=i-k|0;f=f+(l-n<<13)|0;J[b+96>>2]=k-f>>11;J[b+ -64>>2]=f+k>>11;b=b+4|0;a=a+4|0;c=c+2|0;p=p+1|0;if((p|0)!=8)continue;break}a=h+128|0;b=t;n=0;while(1){l=J[b+4>>2];h=J[b+20>>2];i=l+h|0;f=J[b+28>>2];k=P(i+f|0,7053);c=J[(n<<2)+d>>2]+e|0;o=k+P(i,2139)|0;j=J[b+12>>2];r=P(j,10703);p=o+(r+P(l,2295)|0)|0;m=J[b+24>>2];s=m<<13;g=J[b+8>>2];u=s+P(g,11190)|0;v=P(J[b+16>>2],10033);i=(J[b>>2]<<13)+131072|0;w=v+i|0;q=u+w|0;H[c|0]=K[a+(p+q>>>18&1023)|0];H[c+11|0]=K[a+(q-p>>>18&1023)|0];p=g-m<<13;m=p+i|0;q=l-f|0;x=j-h|0;y=P(q+x|0,4433);q=y+P(q,6270)|0;H[c+1|0]=K[a+ -(m+q>>>18&1023)|0];H[c+10|0]=K[a+(m-q>>>18&1023)|0];j=P(j,-4433);m=j+P(h,-12112)|0;h=P(f+h|0,-8565);o=(m+h|0)+o|0;g=P(g,2998)-s|0;m=i-v|0;s=g+m|0;H[c+2|0]=K[a+(o+s>>>18&1023)|0];H[c+9|0]=K[a+(s-o>>>18&1023)|0];h=h+(k+(P(f,12998)-r|0)|0)|0;g=m-g|0;H[c+3|0]=K[a+(h+g>>>18&1023)|0];H[c+8|0]=K[a+(g-h>>>18&1023)|0];h=P(x,-15137)+y|0;i=i-p|0;H[c+4|0]=K[a+(h+i>>>18&1023)|0];H[c+7|0]=K[a+(i-h>>>18&1023)|0];f=k+((j+P(l,-5540)|0)+P(f,-16244)|0)|0;l=w-u|0;H[c+5|0]=K[a+(f+l>>>18&1023)|0];H[c+6|0]=K[a+(l-f>>>18& -1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=6)continue;break}xb=t+192|0}function UM(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;e=xb-16|0;xb=e;J[a+788>>2]=0;J[a+792>>2]=0;f=a+796|0;J[f>>2]=0;J[f+4>>2]=0;i=a+788|0;a:{b:{c:{d:{if(!(Ab[J[a+516>>2]](a,1128418371,b,e+12|0)|0)){c=2;break d}c=1;h=e+12|0;if(!(Ab[J[a+516>>2]](a,1161972803,b,h)|0))break d;if(!(Ab[J[a+516>>2]](a,1651273571,b,h)|0))break d;c=Ab[J[a+516>>2]](a,1935829368,b,h)|0;if(c)break c;c=3}J[f>>2]=c;if(M[e+12>>2]<8){c=3;break c}h=a+800| -0;j=J[b+8>>2];e:{f:{g:{h:{i:{c=J[f>>2];switch(c-1|0){case 2:break h;case 0:case 1:break i;default:break f}}c=Ne(b,J[e+12>>2],i);if(c)break c;g=J[e+12>>2];J[a+792>>2]=g;c=J[a+788>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if((K[c+1|0]<<16|K[c|0]<<24|65536)!=196608){c=K[c+2|0]|K[c+3|0]<<8;if(((c<<8|c>>>8|256)&65535)!=768)break e}c=3;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(d>>>0>65535)break c;if(g>>>0>=(P(d,48)|8)>>>0)break g;d=(g-8>>>0)/48|0;break g}c=Tc(b,8);if(c)break c;c=Zc(b);g= -Zc(b);d=he(b);Ec(b);if(!c)break e;if((g&65533)!=1){c=3;break c}c=3;if(d>>>0>65535)break c;g=J[e+12>>2];c=bc(b,J[b+8>>2]-8|0);if(c)break c;d=g>>>0<(d<<2)+8>>>0?g-8>>>2|0:d;c=(d<<2)+8|0;J[a+792>>2]=c;c=Ne(b,c,i);if(c)break c}J[a+800>>2]=d;c=J[f>>2]}J[a+860>>2]=0;J[a+864>>2]=0;j:{k:{l:switch(c|0){case 3:J[a+860>>2]=j;b=J[e+12>>2];break k;case 0:break b;default:break l}m:{f=e+8|0;if(!(Ab[J[a+516>>2]](a,1128416340,b,f)|0))break m;if(!(Ab[J[a+516>>2]](a,1161970772,b,f)|0))break m;if(!(Ab[J[a+516>>2]](a, -1650745716,b,f)|0))break m;b=J[a+864>>2];break j}J[a+860>>2]=J[b+8>>2];b=J[e+8>>2]}J[a+864>>2]=b}c=0;if(b)break a;break b}c=2}if(J[i>>2])rd(b,i);J[a+792>>2]=0;h=f}J[h>>2]=0}xb=e+16|0;return c|0}function hja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=J[a+508>>2];if((c|0)>=2){d=c-2|0;c=0;while(1){if(J[(P(c,12)+a|0)+272>>2]==218)break a;e=(c|0)!=(d|0);c=c+1|0;if(e)continue;break}}b=K[241424]|K[241425]<<8|(K[241426]<<16|K[241427]<<24);H[a+35|0]=b;H[a+36|0]=b>>>8;H[a+37|0]=b>>>16;H[a+38|0]=b>>>24;b=K[241421]| -K[241422]<<8|(K[241423]<<16|K[241424]<<24);c=K[241417]|K[241418]<<8|(K[241419]<<16|K[241420]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[241413]|K[241414]<<8|(K[241415]<<16|K[241416]<<24);c=K[241409]|K[241410]<<8|(K[241411]<<16|K[241412]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[241405]|K[241406]<<8|(K[241407]<<16|K[241408]<< -24);c=K[241401]|K[241402]<<8|(K[241403]<<16|K[241404]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[241397]|K[241398]<<8|(K[241399]<<16|K[241400]<<24);c=K[241393]|K[241394]<<8|(K[241395]<<16|K[241396]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;return 0}Ab[J[J[b>>2]+44>>2]](b,255)|0;Ab[J[J[b>>2]+44>>2]](b,216)|0;if((J[a+272>>2]&-2)!= -224)Ab[J[J[b>>2]+16>>2]](b,775696,18,1)|0;c=0;if(J[a+508>>2]>=2)while(1){Ab[J[J[b>>2]+44>>2]](b,255)|0;d=P(c,12)+a|0;Ab[J[J[b>>2]+44>>2]](b,K[d+272|0])|0;Ab[J[J[b>>2]+16>>2]](b,J[d+268>>2],J[d+276>>2],1)|0;c=c+1|0;if((c|0)<(J[a+508>>2]-1|0))continue;break}a=P(c,12)+a|0;Ab[J[J[b>>2]+16>>2]](b,J[a+268>>2],J[a+276>>2],1)|0;return 1}function fda(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=xb-48|0;xb=f;a:{b:{if(!fc(b,10266)){c:{if(!d){b=J[c>>2];break c}d=f+12|0;b=Wd(c,d); -e=J[f+12>>2];if(K[e|0]!=44|(c|0)==(e|0))break b;e=e+1|0;l=f,m=Wd(e,d),J[l+20>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Wd(e,d),J[l+24>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Wd(e,d),J[l+28>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Wd(e,f+12|0),J[l+32>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Wd(e,f+12|0),J[l+36>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Wd(e,f+12|0),J[l+ -40>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;c=c+1|0;l=f,m=Wd(c,d),J[l+44>>2]=m;d=J[f+12>>2];if((K[d|0]|32)!=32|(c|0)==(d|0))break b;c=f+16|0}e=6;if((b|0)<0)break a;d=J[c+8>>2];if((d|0)<0)break a;g=J[c+16>>2];if((g|0)<0)break a;h=J[c+24>>2];if((h|0)<0)break a;i=J[c+4>>2];if((i|0)<0)break a;j=J[c+12>>2];if((j|0)<0)break a;k=J[c+20>>2];if((k|0)<0)break a;c=J[c+28>>2];if((c|0)<0|(b|0)>(d|0)|((d|0)>(g|0)|g>>>0>h>>>0))break a;if(i>>>0>500|j>>>0>500|(k>>>0>500|c>>>0>500))break a;J[a+36>>2]= -b;J[a- -64>>2]=c;J[a+60>>2]=h;J[a+56>>2]=k;J[a+52>>2]=g;J[a+48>>2]=j;J[a+44>>2]=d;J[a+40>>2]=i;e=0;break a}if(!fc(b,10438)){if(d){e=6;if(fc(c,10589))break a;J[a+28>>2]=1;e=0;break a}e=7;if(J[c>>2]!=1)break a;J[a+28>>2]=1;e=0;break a}if(!fc(b,10703)){if(d){if(!Wd(c,0)){H[a+32|0]=0;break a}H[a+32|0]=1;break a}H[a+32|0]=K[c|0];break a}e=12;if(fc(b,10830))break a;e=0;d:{if(d){b=Wd(c,0);break d}b=J[c>>2]}J[a+68>>2]=(b|0)>0?b:0;break a}e=6}xb=f+48|0;return e|0}function nO(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;if(M[b+160>>2]>>0)Bc(b,8);d=K[a+3|0]|K[a+2|0]<<8;if(M[b+160>>2]>>0){if(J[b+164>>2]>0)Bc(b,8);d=J[b+160>>2]-a|0}if(d>>>0<=15)Bc(b,8);c=K[a+7|0];k=c|K[a+6|0]<<8;if(!(!(c&1)|J[b+164>>2]<2))Bc(b,8);h=k&65534;if((h<<2)+16>>>0>d>>>0)Bc(b,8);g=k>>>1|0;a:{if(J[b+164>>2]<2)break a;l=K[a+12|0];i=K[a+10|0];e=K[a+11|0];c=K[a+9|0];q=c|K[a+8|0]<<8;f=c;c=K[a+13|0];if((f|c)&1)Bc(b,8);f=q>>>1|0;if(!(f>>>0>g>>>0|g>>>0>(q&65534)>>>0|(g|0)!=(f+((c|l<< -8)>>>1|0)|0)))if((f|0)==1<<(e|i<<8))break a;Bc(b,8)}m=a+14|0;b:{if(J[b+164>>2]<2)break b;c=h+m|0;if((K[c-2|0]<<8|K[c-1|0])==65535)break b;Bc(b,8)}if(k>>>0>=2){n=(a+h|0)+16|0;o=h+n|0;j=h+o|0;s=h+j|0;h=g>>>0<=1?1:g;k=a+d|0;g=g-1|0;e=0;c=0;while(1){a=c;d=e;q=K[j|0]<<8;f=K[j+1|0];l=K[o|0];i=K[o+1|0];c=K[n+1|0]|K[n|0]<<8;e=K[m+1|0]|K[m|0]<<8;if(c>>>0>e>>>0)Bc(b,8);f=f|q;c:{if(!p|c>>>0>d>>>0)break c;if(J[b+164>>2]>0){Bc(b,8);break c}if(!(a>>>0<=c>>>0&e>>>0>=d>>>0)){r=r|1;break c}r=r|2}d:{if(!f)break d; -if((f|0)!=65535){a=f+j|0;e:{f:{if(J[b+164>>2]>0){if(a>>>0>>0|k>>>0<((e-c<<1)+a|0)+2>>>0)break f;break e}if(!((g|0)!=(p|0)|(c|0)!=65535)&(e|0)==65535)break e;if(a>>>0>>0)break f;if(M[b+160>>2]>=((e-c<<1)+a|0)+2>>>0)break e}Bc(b,8)}if(J[b+164>>2]<=0|c>>>0>=e>>>0)break d;l=i|l<<8;d=c;while(1){i=K[a+1|0]|K[a|0]<<8;if(!(!i|M[b+172>>2]>(l+i&65535)>>>0))Bc(b,16);a=a+2|0;d=d+1|0;if(d>>>0>>0)continue;break}break d}if(!((g|0)!=(p|0)|J[b+164>>2]>1|(c|0)!=65535))if((e|0)==65535)break d;Bc(b,8)}j=j+2| -0;o=o+2|0;m=m+2|0;n=n+2|0;p=p+1|0;if((h|0)!=(p|0))continue;break}}return r|0}function Dha(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+20>>2];if((c&-2)!=200){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}c=1;a:{b:{c:{d:{e:{d=J[a+20>>2];switch(d-200|0){case 2:break a;case 3:case 4:case 5:case 6:case 7:case 8:case 10:break c;case 1:break d;case 0:break e;default:break b}}Ab[J[J[a+456>>2]+4>>2]](a);Ab[J[J[a+24>>2]+8>>2]](a);J[a+20>>2]=201}c=Ab[J[J[a+456>>2]>>2]](a)|0;if((c|0)!=1)break a; -c=J[a+36>>2];d=c;f:{g:switch(c-1|0){case 2:d=2;c=3;if(J[a+284>>2])break f;if(J[a+296>>2]){c=2;h:{i:{e=K[a+300|0];switch(e|0){case 1:break i;case 0:break f;default:break h}}c=3;break f}c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=116;Ab[J[J[a>>2]+4>>2]](a,-1);c=3;break f}f=J[a+216>>2];e=J[f+176>>2];g=J[f+88>>2];f=J[f>>2];if(!((f|0)!=1|(g|0)!=2)&(e|0)==3)break f;if(!((f|0)!=82|(g|0)!=71|(e|0)!=66)){c=2;break f}c=J[a>>2];J[c+24>>2]=f;J[c+20>>2]=113;J[c+32>>2]=e;J[c+28>>2]=g;Ab[J[c+4>>2]](a,1);c=3;break f;case 3:d= -4;if(!J[a+296>>2]){c=4;break f}c=4;j:{k:{e=K[a+300|0];switch(e|0){case 2:break k;case 0:break f;default:break j}}c=5;break f}c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=116;Ab[J[J[a>>2]+4>>2]](a,-1);c=5;break f;case 0:break f;default:break g}c=0;d=0}J[a+44>>2]=d;J[a+40>>2]=c;J[a+136>>2]=0;J[a+96>>2]=256;J[a+88>>2]=2;J[a+92>>2]=1;J[a+80>>2]=1;J[a+84>>2]=0;J[a+72>>2]=0;J[a+76>>2]=1;J[a+64>>2]=0;J[a+68>>2]=0;J[a+56>>2]=0;J[a+60>>2]=1072693248;J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+20>>2]=202;c=J[a+424>> -2];J[a+52>>2]=c;J[a+48>>2]=c;c=1;break a}c=Ab[J[J[a+456>>2]>>2]](a)|0;break a}c=J[a>>2];J[c+24>>2]=d;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a);c=0}if((c|0)==2){if(b){b=J[a>>2];J[b+20>>2]=53;Ab[J[b>>2]](a)}Ll(a)}return c|0}function tha(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;i=J[a+444>>2];a:switch(b|0){case 0:b:{if(J[J[a+472>>2]+8>>2]){J[i+4>>2]=1361;q=J[a+36>>2];if((q|0)>0){n=J[a+324>>2];r=n-2|0;s=n+2|0;o=J[a+216>>2];while(1){a=p<<2;b=J[a+J[i+60>>2]>>2];j= -J[a+J[i+56>>2]>>2];e=J[(a+i|0)+8>>2];h=(P(J[o+40>>2],J[o+12>>2])|0)/(n|0)|0;k=P(s,h);c:{if((k|0)<=0)break c;c=0;a=0;if(k>>>0>=4){m=k&-4;l=0;while(1){d=a<<2;f=J[d+e>>2];J[b+d>>2]=f;J[d+j>>2]=f;f=d|4;g=J[f+e>>2];J[b+f>>2]=g;J[f+j>>2]=g;f=d|8;g=J[f+e>>2];J[b+f>>2]=g;J[f+j>>2]=g;d=d|12;f=J[d+e>>2];J[b+d>>2]=f;J[d+j>>2]=f;a=a+4|0;l=l+4|0;if((m|0)!=(l|0))continue;break}}l=k&3;if(!l)break c;while(1){d=a<<2;k=J[d+e>>2];J[b+d>>2]=k;J[d+j>>2]=k;a=a+1|0;c=c+1|0;if((l|0)!=(c|0))continue;break}}d:{if((h|0)<=0)break d; -a=h<<1;c=(a|0)<=1?1:a;l=c&1;d=P(h,r);k=P(h,n);a=0;if((c|0)!=1){f=c&2147483646;c=0;while(1){g=a+d<<2;m=a+k<<2;J[g+b>>2]=J[m+e>>2];J[b+m>>2]=J[e+g>>2];g=a|1;m=g+d<<2;g=g+k<<2;J[m+b>>2]=J[g+e>>2];J[b+g>>2]=J[e+m>>2];a=a+2|0;c=c+2|0;if((f|0)!=(c|0))continue;break}}if(l){c=a+d<<2;a=a+k<<2;J[c+b>>2]=J[a+e>>2];J[a+b>>2]=J[e+c>>2]}e=J[j>>2];a=0;b=0;if(h>>>0>=4){d=h&-4;c=0;while(1){J[(b-h<<2)+j>>2]=e;J[((b|1)-h<<2)+j>>2]=e;J[((b|2)-h<<2)+j>>2]=e;J[((b|3)-h<<2)+j>>2]=e;b=b+4|0;c=c+4|0;if((d|0)!=(c|0))continue; -break}}c=h&3;if(!c)break d;while(1){J[(b-h<<2)+j>>2]=e;b=b+1|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}o=o+88|0;p=p+1|0;if((q|0)!=(p|0))continue;break}}J[i+76>>2]=0;J[i+64>>2]=0;J[i+68>>2]=0;break b}J[i+4>>2]=1362}J[i+48>>2]=0;J[i+52>>2]=0;return;case 2:J[i+4>>2]=1363;return;default:break a}b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}function d8(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;g=+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;i=xb-16|0;xb=i;In(i+4|0,c);s=J[i+8>>2];a=J[i+4>> -2];f=f*3.14/180;l=Fe(f);m=ue(f);a:{if((a|0)==(s|0)){f=0;b=a;break a}f=0;b:{while(1){c:{c=J[a>>2];h=J[J[c>>2]+8>>2];J[195395]=0;h=_(h|0,c|0)|0;t=J[195395];J[195395]=0;if((t|0)==1)break c;d:{e:switch(h-1|0){case 0:J[195395]=0;j=O[c+8>>3];h=J[195395];J[195395]=0;if((h|0)==1)break c;J[195395]=0;k=O[c+16>>3];h=J[195395];J[195395]=0;if((h|0)==1)break c;J[195395]=0;o=O[c+8>>3];h=J[195395];J[195395]=0;f:{if((h|0)==1)break f;J[195395]=0;p=O[c+16>>3];c=J[195395];J[195395]=0;if((c|0)==1)break f;q=O[d>>3];r= -O[e>>3];J[195395]=0;j=j*g*l-m*(k*g);k=o*g*m+l*(p*g);ra(1902,b|0,+(q+j),+(r+k))|0;c=J[195395];J[195395]=0;if((c|0)==1)break f;n=n+j;f=f+k;break d}break c;case 1:J[195395]=0;j=O[c+8>>3];h=J[195395];J[195395]=0;if((h|0)==1)break c;J[195395]=0;k=O[c+16>>3];h=J[195395];J[195395]=0;if((h|0)==1)break c;J[195395]=0;o=O[c+8>>3];h=J[195395];J[195395]=0;g:{if((h|0)==1)break g;J[195395]=0;p=O[c+16>>3];c=J[195395];J[195395]=0;if((c|0)==1)break g;q=O[d>>3];r=O[e>>3];J[195395]=0;j=j*g*l-m*(k*g);k=o*g*m+l*(p*g); -ra(1906,b|0,+(q+j),+(r+k))|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;n=n+j;f=f+k;break d}break c;case 4:break e;default:break d}J[195395]=0;_(1921,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c}a=a+4|0;if((s|0)!=(a|0))continue;break b}break}b=Z()|0;a=J[i+4>>2];if(a){J[i+8>>2]=a;Kb(a)}ba(b|0);B()}a=J[i+4>>2];b=J[i+8>>2]}b=b-a>>2;if(b>>>0>1){g=+(b-1>>>0);O[d>>3]=n/g+O[d>>3];O[e>>3]=f/g+O[e>>3]}if(a){J[i+8>>2]=a;Kb(a)}xb=i+16|0;return b>>>0>1|0}function qea(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;a=Nb(a,0,256);d=J[b>>2]+c|0;e=K[d+3|0];f=K[d|0];g=e+f|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+8>>2]=g-i<<4;J[a>>2]=(g+i<<4)+-8192;g=d-h|0;e=f-e|0;d=P(g+e|0,4433)+256|0;J[a+12>>2]=d+P(g,-15137)>>9;J[a+4>>2]=d+P(e,6270)>>9;d=J[b+4>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+40>>2]=e-i<<4;e=(e+i<<4)+-8192|0;J[a+32>>2]=e;h=d-h|0;f=g-f|0;d=P(h+f|0,4433)+256|0;J[a+44>>2]=d+P(h,-15137)>>9;J[a+36>>2]=d+P(f,6270)>>9;d=J[b+8>>2]+c|0;f=K[d+3|0];g=K[d| -0];h=f+g|0;i=K[d+2|0];j=K[d+1|0];d=i+j|0;J[a+72>>2]=h-d<<4;d=(d+h<<4)+-8192|0;J[a+64>>2]=d;h=j-i|0;g=g-f|0;f=P(h+g|0,4433)+256|0;J[a+76>>2]=f+P(h,-15137)>>9;f=f+P(g,6270)>>9;J[a+68>>2]=f;b=J[b+12>>2]+c|0;c=K[b+2|0];g=K[b+3|0];h=K[b|0];i=g+h|0;j=K[b+1|0];k=j+c|0;b=(i+k<<4)+-8192|0;l=J[a>>2];m=(b+l|0)+2|0;n=d+e|0;J[a+64>>2]=m-n>>2;J[a>>2]=m+n>>2;d=e-d|0;e=l-b|0;b=P(d+e|0,4433)+16384|0;J[a+96>>2]=b+P(d,-15137)>>15;J[a+32>>2]=b+P(e,6270)>>15;d=j-c|0;c=h-g|0;b=P(d+c|0,4433)+256|0;e=J[a+4>>2];c=b+P(c,6270)>> -9;g=(e+c|0)+2|0;h=J[a+36>>2];j=h+f|0;J[a+68>>2]=g-j>>2;J[a+4>>2]=g+j>>2;f=h-f|0;e=e-c|0;c=P(f+e|0,4433)+16384|0;J[a+100>>2]=c+P(f,-15137)>>15;J[a+36>>2]=c+P(e,6270)>>15;c=J[a+8>>2];e=i-k<<4;f=(c+e|0)+2|0;g=J[a+72>>2];h=J[a+40>>2];i=g+h|0;J[a+72>>2]=f-i>>2;J[a+8>>2]=f+i>>2;f=h-g|0;e=c-e|0;c=P(f+e|0,4433)+16384|0;J[a+104>>2]=c+P(f,-15137)>>15;J[a+40>>2]=c+P(e,6270)>>15;c=J[a+12>>2];b=b+P(d,-15137)>>9;d=(c+b|0)+2|0;e=J[a+76>>2];f=J[a+44>>2];g=e+f|0;J[a+76>>2]=d-g>>2;J[a+12>>2]=d+g>>2;d=f-e|0;c=c-b|0; -b=P(d+c|0,4433)+16384|0;J[a+108>>2]=b+P(d,-15137)>>15;J[a+44>>2]=b+P(c,6270)>>15}function JH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=0,k=Q(0);d=J[b+28>>2];f=J[d+12>>2];i=Q(0);a:{if(!f)break a;h=J[d>>2];e=c;g=J[d+4>>2];if(g){e=sc(g,c);f=J[d+12>>2]}j=e>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;i=Q(0);if(j>>>0>=((g<<8|g>>>8)&65535)>>>0)break a;g=J[d+8>>2];d=h+(j<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=h+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;j=e&65535;e=K[h+2|0]|K[h+ -3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;i=pc(d,j,g,f,e,0)}e=K[a+4|0]|K[a+5|0]<<8;i=Q(Q(i+Q((e<<8|e>>>8)<<16>>16))*Q(6.103515625E-5));f=J[b+28>>2];e=J[f+12>>2];b:{if(!e)break b;g=J[f>>2];d=J[f+4>>2];c:{if(d){c=sc(d,(c|0)==-1?-1:c+1|0);e=J[f+12>>2];break c}c=c+1|0}h=c>>>16|0;d=K[g+6|0]|K[g+7|0]<<8;if(h>>>0>=((d<<8|d>>>8)&65535)>>>0)break b;d=J[f+8>>2];f=g+(h<<2)|0;f=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);if(f)f=g+(f<<24|(f&65280)<< -8|(f>>>8&65280|f>>>24))|0;else f=169776;h=c&65535;c=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;k=pc(f,h,d,e,c,0)}c=K[a+6|0]|K[a+7|0]<<8;k=Q(Q(k+Q((c<<8|c>>>8)<<16>>16))*Q(6.103515625E-5));f=i!=Q(1)|k!=Q(1);if(f){c=J[b+8>>2];d=J[c+12>>2];g=J[b+12>>2];e=J[c+68>>2];if(e)e=J[e>>2];else e=0;Ab[d|0](c,g,i,Q(0),Q(0),k,Q(0),Q(0),e)}c=J[b+104>>2];d:{if((c|0)<=0)break d;e=J[b+108>>2];if((e|0)<=0)break d;d=K[a+3|0];g=K[a+2|0];h=K[a+1|0]; -J[b+108>>2]=e-1;J[b+104>>2]=c-1;c=a;a=d|(h<<16|g<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}if(f){a=J[b+8>>2];c=J[a+16>>2];e=J[b+12>>2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,e,b)}}function Mu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=J[b+12>>2];f=J[b+4>>2];a:{if(h>>>0>>0)break a;e=J[b+8>>2];if(e-a>>>0<16)break a;d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0<4)break a;d=a+4|0;if(h>>>0>>0|e-d>>>0<4|K[d|0]&128)break a; -d=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(!og((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0,b))break a;d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);j=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if((j|0)<0)break a;d=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);k=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0;f=a;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);l=f+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;e=0;m=j<<1;a=0;d=0;while(1){f=d;if((a|0)>=(e|0)){g=0;h=a+1|0;d=Kpa(h, -0,m,0);if(zb|M[b+12>>2]>2]>>>0|d>>>0>J[b+8>>2]-l>>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;d=d+((a^-1)+e|0)|0;J[b+16>>2]=d;if((d|0)<=0)break a;Kpa(h,0,j,0);if(zb)break a;d=P(h,j);if((d|0)<0)break a;e=P(e,j);b:{if((e|0)>=(d|0)){d=f;break b}i=l+(d<<1)|0;g=l+(e<<1)|0;d=f;while(1){e=K[g|0]|K[g+1|0]<<8;e=((e<<8|e>>>8)&65535)+1|0;d=d>>>0>e>>>0?d:e;g=g+2|0;if(i>>>0>g>>>0)continue;break}}e=h}g=0;if(M[b+12>>2]>2]>>>0)break a;h=d<<3;if(h>>>0>J[b+8>>2]-k>>>0)break a;i=J[b+ -16>>2]-h|0;J[b+16>>2]=i;if((i|0)<=0)break a;i=i+(f-d|0)|0;J[b+16>>2]=i;if((i|0)<=0)break a;if((d|0)>(f|0)){h=h+k|0;g=(f<<3)+k|0;while(1){f=K[g|0]|K[g+1|0]<<8;f=(f<<8|f>>>8)&65535;a=(a|0)>(f|0)?a:f;g=g+8|0;if(h>>>0>g>>>0)continue;break}}if((a|0)>=(e|0))continue;break}g=1;if(!c)break a;J[c>>2]=d}return g}function eoa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;c=J[b+12>>2];J[a+4>>2]=c;f=J[b+16>>2];J[a+12>>2]=f;J[a+8>>2]=c+f; -J[a+32>>2]=0;if(f>>>0>67108863)e=1073741823;else{e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;b:{if(!c)break b;c:{d:{e:{f:{if(!((K[c|0]|K[c+1|0]<<8)!=256|f>>>0<54))if((K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24))==-180613281)break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];c=J[d+12>>2];J[a+4>>2]=c;f=J[d+16>>2];J[a+12>>2]=f;J[a+8>>2]=c+f;J[a+32>>2]=0; -if(f>>>0<=67108863){e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}else e=1073741823;J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;if(!c)break b;if(!((K[c|0]|K[c+1|0]<<8)!=256|f>>>0<54))if((K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24))==-180613281)break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=1;if(!(M[a+12>>2]>2]>>>0|J[a+8>>2]-c>>>0<54|(K[c|0]|K[c+1|0]<<8)!=256))d=(K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24))!=-180613281;c=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(c)break e;if(!d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function XY(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=xb-80|0;xb=f; -h=a+8|0;g=1;a=J[a+80>>2];a:{if(!a)break a;a=Ab[J[J[a>>2]+36>>2]](a)|0;if(!a)break a;b:{c:{a=Ab[J[J[a>>2]+36>>2]](a)|0;switch(a-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:break a; -case 0:case 1:case 2:case 6:case 8:case 33:case 34:case 35:case 49:case 50:case 58:case 76:case 94:case 110:break b;default:break c}}if(a)break a}g=a}a=f+68|0;Qj(a,c,b,g);O[f+56>>3]=e|0;O[f+48>>3]=d|0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=1072693248;J[f+16>>2]=0;J[f+20>>2]=1072693248;J[195395]=0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;Da(1967,h|0,a|0,f+48|0,f+32|0,f+16|0,f+4|0);a=J[195395];J[195395]=0;if((a|0)!=1){a=J[f+4>>2];if(a){J[f+8>>2]=a;Kb(a)}if(H[f+79|0]< -0)Kb(J[f+68>>2]);xb=f+80|0;return}b=Z()|0;a=J[f+4>>2];if(a){J[f+8>>2]=a;Kb(a)}if(H[f+79|0]<0)Kb(J[f+68>>2]);ba(b|0);B()}function hi(a,b){a=a|0;b=b|0;var c=0;c=K[b+12|0]|K[b+13|0]<<8;a=K[a+462|0];c=a?c:c<<8|c>>>8;H[b+12|0]=c;H[b+13|0]=c>>>8;c=K[b+14|0]|K[b+15|0]<<8;c=a?c:c<<8|c>>>8;H[b+14|0]=c;H[b+15|0]=c>>>8;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+ -7|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+4|0]=c;H[b+5|0]=c>>>8;H[b+6|0]=c>>>16;H[b+7|0]=c>>>24;c=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]=c>>>16;H[b+11|0]=c>>>24;c=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+16|0]=c;H[b+17|0]=c>>>8;H[b+18|0]=c>>>16;H[b+19|0]=c>>>24;c=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);c=a?c:c<<24| -(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+20|0]=c;H[b+21|0]=c>>>8;H[b+22|0]=c>>>16;H[b+23|0]=c>>>24;c=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+24|0]=c;H[b+25|0]=c>>>8;H[b+26|0]=c>>>16;H[b+27|0]=c>>>24;c=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+28|0]=c;H[b+29|0]=c>>>8;H[b+30|0]=c>>>16;H[b+31|0]=c>>>24;c=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);c=a?c:c<<24|(c&65280)<<8| -(c>>>8&65280|c>>>24);H[b+32|0]=c;H[b+33|0]=c>>>8;H[b+34|0]=c>>>16;H[b+35|0]=c>>>24;c=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);a=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+36|0]=a;H[b+37|0]=a>>>8;H[b+38|0]=a>>>16;H[b+39|0]=a>>>24}function HA(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a+12>>2];c=J[a+8>>2];if(e>>>0<=c+3>>>0)d=0;else{g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,g),C())}O[b+8>>3]=d;if(c+3>>>0>>0){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24); -c=c+4|0;J[a+8>>2]=c;d=+(x(2,g),C())}else d=0;O[b+16>>3]=d;if(c+3>>>0>>0){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,g),C())}else d=0;O[b+24>>3]=d;if(c+3>>>0>=e>>>0)g=0;else{g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;g=(g|0)==1}H[b+32|0]=g;if(c+3>>>0>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+36>>2]=f;f=0;a:{if(c+3>>>0>=e>>>0){g=0;break a}g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+ -8>>2]=c}J[b+40>>2]=g;if(c+3>>>0>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+44>>2]=f;if(c+3>>>0>=e>>>0)d=0;else{f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,f),C())}O[b+48>>3]=d;if(c+3>>>0>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,f),C())}else d=0;O[b+56>>3]=d;if(c+3>>>0>=e>>>0)d=0;else{f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,f),C())}O[b+64>>3]=d;if(c+ -3>>>0>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,f),C())}else d=0;O[b+72>>3]=d;if(c+3>>>0>=e>>>0)d=0;else{f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,f),C())}O[b+80>>3]=d;if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[a+8>>2]=c+4;d=+(x(2,e),C())}else d=0;O[b+88>>3]=d}function at(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[b+12>>2];e=J[b+4>>2];a:{if(f>>>0>>0)break a;d=J[b+8>>2];if(d-a>>>0<4)break a; -c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0<65536)break a;c=a+4|0;if(c-e>>>0>f>>>0|d-c>>>0<4)break a;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(!c)return 1;c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);i=c>>>0<=1?1:c;j=c-1|0;a=a+8|0;while(1){if(a-e>>>0>f>>>0)return 0;if(d-a>>>0<8)return 0;d=J[b+36>>2];e=J[d+12>>2];J[b+4>>2]=e;f=J[d+16>>2];J[b+12>>2]=f;c=f+e|0;J[b+8>>2]=c;b:{if(g>>>0>=j>>>0){d=c;break b}if(!a){d=c;break b}d=0;c:{if(a>>>0>> -0){f=0;e=0;break c}f=0;e=0;if(a>>>0>=c>>>0)break c;c=c-a|0;d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);f=d>>>0>c>>>0?c:d;d=f+a|0;e=a}J[b+12>>2]=f;J[b+4>>2]=e;J[b+8>>2]=d}h=0;c=0;d:{if(a-e>>>0>f>>>0)break d;c=0;if(d-a>>>0<8)break d;d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c=0;if(d>>>0<8)break d;c=0;if(M[b+12>>2]>2]>>>0)break d;c=0;if(d>>>0>J[b+8>>2]-a>>>0)break d;d=J[b+16>>2]-d|0;J[b+16>>2]=d; -c=0;if((d|0)<=0)break d;J[195395]=0;d=yG(a,b);c=J[195395];J[195395]=0;e:{if((c|0)!=1){if(d)break e;c=0;break d}a=Z()|0;d=J[b+36>>2];c=J[d+12>>2];J[b+4>>2]=c;d=J[d+16>>2];J[b+12>>2]=d;J[b+8>>2]=d+c;ba(a|0);B()}c=a;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;c=1}d=J[b+36>>2];e=J[d+12>>2];J[b+4>>2]=e;f=J[d+16>>2];J[b+12>>2]=f;d=f+e|0;J[b+8>>2]=d;if(!c)break a;h=1;g=g+1|0;if((i|0)!=(g|0))continue;break}}return h}function Ln(a,b,c){var d=0,e=0,f=0,g= -0,h=0;f=xb-32|0;xb=f;e=J[a+584>>2];J[f+28>>2]=0;a:{b:{c:{if(J[e+488>>2]){if(!(J[e+16>>2]|!c?J[e+16>>2]?b:0:1))break c;yC(e);J[e+488>>2]=0}d=1;d:{if(!(J[a+12>>2]>>>10&1))break d;J[f+16>>2]=f+28;if(!zc(a,325,f+16|0))break d;g=J[f+28>>2];if(!g)break d;d=!J[g>>2]}e:{if(J[a+12>>2]>>>10&1)break e;J[f>>2]=f+28;if(!zc(a,279,f))break e;g=J[f+28>>2];if(!g)break e;d=!J[g>>2]}f:{g:{h:{if(c)break h;if(b)break g;if(!J[a+8>>2])break h;if(d)break g}b=Qb(40);J[b>>2]=0;J[195395]=0;h=nk(e+492|0);a=J[195395];J[195395]= -0;if((a|0)==1)break a;g=4;d=-1;i:{if(!a)break i;c=J[195396];if(!c)break i;d=Sb(J[a>>2],b,4);if(!d)break b;yb=c}a=yb;if((d|0)!=1){J[e+492>>2]=1734;J[e>>2]=h;J[e+500>>2]=1735;b=wd(e+624|0,1,b,4);g=yb;a=0}while(1){j:{if(a){c=0;break j}J[195395]=0;fa(1163,e|0,80,488);a=J[195395];J[195395]=0;if((a|0)==1)break a;d=-1;k:{if(!a)break k;c=J[195396];if(!c)break k;d=Sb(J[a>>2],b,g);if(!d)break b;yb=c}c=1;a=yb;if((d|0)==1)continue}break}Kb(b);if(c)break f;break c}b=Qb(40);J[b>>2]=0;J[195395]=0;h=nk(e+492|0); -a=J[195395];J[195395]=0;if((a|0)==1)break a;g=4;d=-1;l:{if(!a)break l;c=J[195396];if(!c)break l;d=Sb(J[a>>2],b,4);if(!d)break b;yb=c}a=yb;if((d|0)!=1){J[e+492>>2]=1734;J[e>>2]=h;J[e+500>>2]=1735;b=wd(e+624|0,1,b,4);g=yb;a=0}while(1){m:{if(a){c=0;break m}J[195395]=0;fa(1186,e|0,80,432);a=J[195395];J[195395]=0;if((a|0)==1)break a;d=-1;n:{if(!a)break n;c=J[195396];if(!c)break n;d=Sb(J[a>>2],b,g);if(!d)break b;yb=c}c=1;a=yb;if((d|0)==1)continue}break}Kb(b);if(!c)break c}J[e+488>>2]=1}xb=f+32|0;return}Kb(b); -gd(a,c);B()}a=Z()|0;Kb(b);ba(a|0);B()}function KH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=0,l=Q(0),m=Q(0);d=K[a+4|0]|K[a+5|0]<<8;j=Q((d<<8|d>>>8)<<16>>16);e=J[b+28>>2];f=J[e+12>>2];i=Q(0);a:{if(!f)break a;h=J[e>>2];d=c;g=J[e+4>>2];if(g){d=sc(g,c);f=J[e+12>>2]}k=d>>>16|0;g=K[h+6|0]|K[h+7|0]<<8;i=Q(0);if(k>>>0>=((g<<8|g>>>8)&65535)>>>0)break a;g=J[e+8>>2];e=h+(k<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=h+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e=169776;k=d&65535; -d=K[h+2|0]|K[h+3|0]<<8|(K[h+4|0]<<16|K[h+5|0]<<24);if(d)d=h+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;i=pc(e,k,g,f,d,0)}d=K[a+6|0]|K[a+7|0]<<8;l=Q((d<<8|d>>>8)<<16>>16);i=Q(i+j);f=J[b+28>>2];d=J[f+12>>2];b:{if(!d)break b;g=J[f>>2];e=J[f+4>>2];c:{if(e){c=sc(e,(c|0)==-1?-1:c+1|0);d=J[f+12>>2];break c}c=c+1|0}h=c>>>16|0;e=K[g+6|0]|K[g+7|0]<<8;if(h>>>0>=((e<<8|e>>>8)&65535)>>>0)break b;e=J[f+8>>2];f=g+(h<<2)|0;f=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);if(f)f=g+(f<<24|(f&65280)<< -8|(f>>>8&65280|f>>>24))|0;else f=169776;h=c&65535;c=K[g+2|0]|K[g+3|0]<<8|(K[g+4|0]<<16|K[g+5|0]<<24);if(c)c=g+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;m=pc(f,h,e,d,c,0)}j=Q(m+l);f=i!=Q(0)|j!=Q(0);if(f){c=J[b+8>>2];e=J[c+12>>2];g=J[b+12>>2];d=J[c+68>>2];if(d)d=J[d>>2];else d=0;Ab[e|0](c,g,Q(1),Q(0),Q(0),Q(1),i,j,d)}c=J[b+104>>2];d:{if((c|0)<=0)break d;d=J[b+108>>2];if((d|0)<=0)break d;e=K[a+3|0];g=K[a+2|0];h=K[a+1|0];J[b+108>>2]=d-1;J[b+104>>2]=c-1;c=a;a=e|(h<<16|g<<8);Re(a?c+a|0: -169776,b);J[b+104>>2]=J[b+104>>2]+1}if(f){a=J[b+8>>2];c=J[a+16>>2];d=J[b+12>>2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,d,b)}}function fk(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[a+8>>2]==1){Ob(J[a+628>>2],J[a>>2],273346,0);return-1}if(!(K[a+13|0]&4)){Ob(J[a+628>>2],J[a>>2],273541,0);return-1}f=xb+-64|0;xb=f;g=J[a+56>>2];a:{b:{if(g>>>0<=c>>>0){h=J[a>>2];i=J[a+628>>2];J[f+52>>2]=g-1;J[f+48>>2]=c;Ob(i,h,262876,f+48|0);break b}g=J[a+60>>2];if(g>>>0<=d>>>0){h=J[a>>2];i=J[a+628>>2];J[f+ -36>>2]=g-1;J[f+32>>2]=d;Ob(i,h,263692,f+32|0);break b}g=J[a- -64>>2];if(!g){h=J[a>>2];i=J[a+628>>2];J[f+20>>2]=g-1;J[f+16>>2]=0;Ob(i,h,264400,f+16|0);break b}g=1;if(L[a+138>>1]!=2)break a;h=L[a+98>>1];if(h>>>0>e>>>0)break a;g=J[a>>2];i=J[a+628>>2];J[f+4>>2]=h-1;J[f>>2]=e;Ob(i,g,264949,f)}g=0}xb=f- -64|0;if(!g)return-1;h=J[a+72>>2];f=1;g=J[a+68>>2];if((g|0)==-1)g=J[a+56>>2];h=(h|0)==-1?J[a+60>>2]:h;c:{d:{if(!g|!h)break d;k=J[a- -64>>2];i=J[a+76>>2];i=(i|0)==-1?k:i;if(!i)break d;f=0;j=J[a+56>>2];if(j>>> -0<0-g>>>0)l=((g+j|0)-1>>>0)/(g>>>0)|0;j=J[a+60>>2];if(j>>>0<0-h>>>0)f=((h+j|0)-1>>>0)/(h>>>0)|0;j=0;if(0-i>>>0>k>>>0)j=((i+k|0)-1>>>0)/(i>>>0)|0;e=P(P(P(e,j)+(0/(i>>>0)|0)|0,f)+((d>>>0)/(h>>>0)|0)|0,l)+((c>>>0)/(g>>>0)|0)|0;if(L[a+138>>1]==2)break c;f=P(P(0/(i>>>0)|0,f)+((d>>>0)/(h>>>0)|0)|0,l)+((c>>>0)/(g>>>0)|0)|0}e=f}c=e;e=b;f=xb-16|0;xb=f;e:{if(J[a+8>>2]==1){Ob(J[a+628>>2],J[a>>2],273346,0);b=-1;break e}if(!(K[a+13|0]&4)){Ob(J[a+628>>2],J[a>>2],273541,0);b=-1;break e}b=J[a+180>>2];if(b>>>0<=c>>> -0){d=J[a>>2];a=J[a+628>>2];J[f+4>>2]=b;J[f>>2]=c;Ob(a,d,267348,f);b=-1;break e}d=J[a+508>>2];b=-1;if(!YC(a,c))break e;if(!(Ab[J[a+556>>2]](a,e,d,(c>>>0)/M[a+176>>2]&65535)|0))break e;Ab[J[a+652>>2]](a,e,d);b=d}xb=f+16|0;return b}function cB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=J[a+12>>2];c=J[a+8>>2];if(g>>>0>c+3>>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b>>2]=f;if(g>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+4>>2]=d;d= -0;a:{if(g>>>0<=c+3>>>0){f=0;break a}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+8>>2]=f;if(g>>>0>c+3>>>0){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+12>>2]=d;d=0;b:{if(g>>>0<=c+3>>>0){f=0;break b}f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+16>>2]=f;if(c>>>0>>0){d=K[c|0];J[a+8>>2]=c+1}H[b+20|0]=d;c=0;d=J[a+8>>2];if(d>>>0>2]){c=K[d|0];J[a+8>>2]=d+1}H[b+21|0]=c;c=J[a+8>>2];if(c>>>0>2]){e=K[c|0]; -J[a+8>>2]=c+1}H[b+22|0]=e;e=0;c=0;d=J[a+8>>2];if(d>>>0>2]){c=K[d|0];J[a+8>>2]=d+1}H[b+23|0]=c;c=J[a+8>>2];if(c>>>0>2]){e=K[c|0];J[a+8>>2]=c+1}H[b+24|0]=e;e=0;c=0;d=J[a+8>>2];if(d>>>0>2]){c=K[d|0];J[a+8>>2]=d+1}H[b+25|0]=c;c=J[a+8>>2];if(c>>>0>2]){e=K[c|0];J[a+8>>2]=c+1}H[b+26|0]=e;e=0;c=J[a+8>>2];if(c>>>0>2]){e=K[c|0];J[a+8>>2]=c+1}H[b+27|0]=e;f=J[a+12>>2];e=J[a+8>>2];c=f-e|0;d=(c|0)/2|0;c:{if(c+1>>>0<3)break c;g=b+28|0;d=d>>>0>=32?32:d;h=d&1;b=0;if((c&-2)!= -2){i=d&62;d=0;while(1){d:{if(f>>>0<=e+1>>>0){c=0;break d}c=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+8>>2]=e}I[g+(b<<1)>>1]=c;c=0;if(f>>>0>e+1>>>0){c=K[e|0]|K[e+1|0]<<8;e=e+2|0;J[a+8>>2]=e}I[g+((b|1)<<1)>>1]=c;b=b+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!h)break c;c=0;if(f>>>0>e+1>>>0){c=K[e|0]|K[e+1|0]<<8;J[a+8>>2]=e+2}I[g+(b<<1)>>1]=c}}function Jfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;t=xb-288|0;xb=t;u=J[a+332>>2];b=J[b+ -84>>2];a=t;while(1){m=J[b+128>>2];n=I[c+64>>1];i=P(J[b+32>>2],I[c+16>>1]);j=P(J[b+224>>2],I[c+112>>1]);g=i-j|0;k=P(J[b+96>>2],I[c+48>>1]);f=P(J[b+160>>2],I[c+80>>1]);o=k-f|0;h=P(g+o|0,4433);p=P(J[b+64>>2],I[c+32>>1]);q=P(J[b+192>>2],I[c+96>>1]);r=p-q<<13;l=P(I[c>>1],J[b>>2])<<13|1024;s=r+l|0;g=h+P(g,6270)|0;J[a+240>>2]=s-g>>11;J[a+24>>2]=g+s>>11;g=l-r|0;h=h+P(o,-15137)|0;J[a+168>>2]=g-h>>11;J[a+96>>2]=h+g>>11;m=P(P(m,n),10033);n=m+l|0;g=q<<13;o=g+P(p,11190)|0;q=n-o|0;s=f+i|0;h=P(s+j|0,7053);r=P(k, --4433);v=h+((r+P(i,-5540)|0)+P(j,-16244)|0)|0;J[a+144>>2]=q-v>>11;J[a+120>>2]=q+v>>11;n=n+o|0;o=P(i,2295);i=P(k,10703);k=h+P(s,2139)|0;o=(o+i|0)+k|0;J[a+264>>2]=n-o>>11;J[a>>2]=n+o>>11;p=P(p,2998)-g|0;l=l-m|0;m=p+l|0;g=r+P(f,-12112)|0;f=P(f+j|0,-8565);k=k+(g+f|0)|0;J[a+216>>2]=m-k>>11;J[a+48>>2]=k+m>>11;l=l-p|0;j=f+(h+(P(j,12998)-i|0)|0)|0;J[a+192>>2]=l-j>>11;J[a+72>>2]=j+l>>11;a=a+4|0;b=b+4|0;c=c+2|0;w=w+1|0;if((w|0)!=6)continue;break}b=u+128|0;a=t;j=0;while(1){i=J[a+20>>2];f=J[a+4>>2];l=P(i+f|0, -2998);c=J[(j<<2)+d>>2]+e|0;k=J[a+12>>2];h=l+(k+f<<13)|0;u=(J[a>>2]<<13)+131072|0;p=J[a+16>>2];m=u+P(p,5793)|0;n=P(J[a+8>>2],10033);g=m+n|0;H[c|0]=K[b+(h+g>>>18&1023)|0];H[c+5|0]=K[b+(g-h>>>18&1023)|0];f=f-(i+k|0)<<13;h=u+P(p,-11586)|0;H[c+1|0]=K[b+(f+h>>>18&1023)|0];H[c+4|0]=K[b+(h-f>>>18&1023)|0];i=l+(i-k<<13)|0;f=m-n|0;H[c+2|0]=K[b+(i+f>>>18&1023)|0];H[c+3|0]=K[b+(f-i>>>18&1023)|0];a=a+24|0;j=j+1|0;if((j|0)!=12)continue;break}xb=t+288|0}function _C(a,b){var c=0,d=0,e=0,f=0,g=0;e=xb-144|0;xb=e;a:{if(!J[a+ -72>>2])break a;f=J[a+68>>2];if(!f|!J[a+76>>2])break a;b:{c:{d:{e:{f:{d=L[a+138>>1];if(!(K[a+13|0]&64|((d|0)!=1|L[a+90>>1]!=6))){d=L[a+204>>1];if(f>>>0<0-d>>>0)c=((d+f|0)-1>>>0)/(d>>>0)|0;else c=0;d=P(c,d);f=L[a+84>>1];c=Kpa(d,0,f,0);g=(zb|0)!=0;g:{h:{if(f){if(!g)break h;f=J[a>>2];c=J[a+628>>2];J[e+64>>2]=266806;Ob(c,f,267921,e- -64|0);f=L[a+84>>1];c=Kpa(f,0,d,0);g=(zb|0)!=0;d=!f;break f}if(c&7)break g;d=1;break f}if(!(c&7))break e;if(!g)break g;d=J[a>>2];c=J[a+628>>2];J[e+80>>2]=266806;Ob(c,d,267921, -e+80|0);c=0}d=(c>>>3|0)+1|0;break c}c=Kpa(L[a+84>>1],0,f,0);if(zb){d=J[a>>2];c=J[a+628>>2];J[e+128>>2]=266154;Ob(c,d,267921,e+128|0);d=L[a+138>>1];c=0}i:{if((d|0)!=1)break i;d=L[a+98>>1];c=Kpa(d,0,c,0);f=zb;if(!d|!f)break i;d=J[a>>2];c=J[a+628>>2];J[e+112>>2]=266154;Ob(c,d,267921,e+112|0);c=0}f=(c>>>3|0)+((c&7)!=0)|0;c=Kpa(f,0,b,0);d=zb;if(!f|!d)break b;c=J[a>>2];b=J[a+628>>2];J[e+96>>2]=266806;Ob(b,c,267921,e+96|0);c=0;break b}if(d)break d}if(!g)break d;d=J[a>>2];c=J[a+628>>2];J[e+48>>2]=266806; -Ob(c,d,267921,e+48|0);c=0}d=c>>>3|0}c=L[a+206>>1];f=P(c,L[a+204>>1]);if(!f){c=0;Ob(J[a+628>>2],J[a>>2],267302,0);break a}if(0-c>>>0>b>>>0)b=((b+c|0)-1>>>0)/(c>>>0)|0;else b=0;c=Kpa(d,0,P(b,c),0);b=zb;if(!(!d|!b)){c=J[a>>2];b=J[a+628>>2];J[e+32>>2]=266806;Ob(b,c,267921,e+32|0);c=0}b=(c|0)/(f|0)|0;if((b|0)>=0){c=(b<<1)+c|0;break b}d=J[a>>2];b=J[a+628>>2];J[e+16>>2]=266806;Ob(b,d,267921,e+16|0)}d=J[a+76>>2];c=Kpa(d,0,c,0);b=zb;if(!d|!b)break a;b=J[a>>2];a=J[a+628>>2];J[e>>2]=266806;Ob(a,b,267921,e); -c=0}xb=e+144|0;return c}function BH(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=Q(0),l=0,m=Q(0),n=0;j=xb-16|0;xb=j;h=J[e+12>>2];k=Q(0);a:{if(!h)break a;i=J[e>>2];g=d;f=J[e+4>>2];if(f){g=sc(f,d);h=J[e+12>>2]}f=K[i+6|0]|K[i+7|0]<<8;l=(f<<8|f>>>8)&65535;f=g>>>16|0;k=Q(0);if(l>>>0<=f>>>0)break a;l=J[e+8>>2];f=i+(f<<2)|0;f=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);if(f)f=i+(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))|0;else f=169776;n=g&65535;g=K[i+2|0]|K[i+3|0]<<8|(K[i+4|0]<<16|K[i+5|0]<<24);if(g)g=i+ -(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))|0;else g=169776;k=pc(f,n,l,h,g,0)}g=K[a|0]|K[a+1|0]<<8;N[c>>2]=Q(k+Q((g<<8|g>>>8)<<16>>16))*Q(6.103515625E-5);l=K[a+2|0]|K[a+3|0]<<8;g=J[e+12>>2];b:{if(!g)break b;f=J[e>>2];h=J[e+4>>2];c:{if(h){d=sc(h,(d|0)==-1?-1:d+1|0);g=J[e+12>>2];break c}d=d+1|0}i=d>>>16|0;h=K[f+6|0]|K[f+7|0]<<8;if(i>>>0>=((h<<8|h>>>8)&65535)>>>0)break b;h=J[e+8>>2];e=f+(i<<2)|0;e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);if(e)e=f+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else e= -169776;i=d&65535;d=K[f+2|0]|K[f+3|0]<<8|(K[f+4|0]<<16|K[f+5|0]<<24);if(d)d=f+(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))|0;else d=169776;m=pc(e,i,h,g,d,0)}a=K[a+4|0]|K[a+5|0]<<8;e=J[b+24>>2];J[j+12>>2]=e;J[c+4>>2]=1;k=Q(Q(m+Q((a<<8|(a&65280)>>>8)<<16>>16))*Q(6.103515625E-5));if((l|0)!=65535){a=J[b+8>>2];e=J[a- -64>>2];g=J[b+12>>2];h=(l<<8|l>>>8)&65535;f=j+12|0;d=J[a+68>>2];if(d)d=J[d+52>>2];else d=0;if(!(Ab[e|0](a,g,h,f,d)|0)){J[j+8>>2]=1;wt(J[J[b+16>>2]+24>>2],J[b+20>>2],h,j+8|0,f)}J[c+4>>2]=0;e=J[j+ -12>>2]}m=Q(k*Q((e&255)>>>0));d:{if(m=Q(0)){a=~~m>>>0;break d}a=0}J[c+8>>2]=a&255|e&-256;xb=j+16|0}function Qu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=Q(0),k=0,l=Q(0);d=K[a|0]|K[a+1|0]<<8;if(!d)return 0;d=(d<<8|d>>>8)&65535;e=d>>>0<=1?1:d;h=a+8|0;a:{while(1){d=(g<<3)+h|0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(Q(Q(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))*Q(1.52587890625E-5))==Q(0))break a;g=g+1|0;if((e|0)!=(g|0))continue;break}return 0}b:{c:{d:{d=K[a+2|0]|K[a+3|0]<<8;e=(d<< -8|d>>>8)&65535;switch(e|0){case 0:break b;case 1:break d;default:break c}}a=(g<<3)+h|0;a=K[a+6|0]|K[a+7|0]<<8;a=((a<<8|a>>>8)&65535)+b|0;a=K[a|0]|K[a+1|0]<<8;return(a<<8|a>>>8)<<16>>16}a=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);i=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))+b|0;a=0;d=e-1|0;e:{if(!d)break e;while(1){f=a>>>0>=e>>>0?169776:(a<<2)+i|0;f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);if(Q(Q(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))*Q(1.52587890625E-5))>=c)break e;a=a+1|0;if((d|0)!= -(a|0))continue;break}a=d}d=a-1|0;a=a>>>0>=d>>>0?d:0;f=a>>>0>>0;d=e;e=a+1|0;k=d>>>0>e>>>0;d=f?(a<<2)+i|0:169776;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);j=Q(Q(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))*Q(1.52587890625E-5));d=k?(e<<2)+i|0:169776;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);l=Q(Q(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))*Q(1.52587890625E-5));if(j==l)c=Q(0);else c=Q(Q(c-j)/Q(l-j));d=b;b=(g<<3)+h|0;b=K[b+6|0]|K[b+7|0]<<8;b=d+((b<<8|b>>>8)&65535)|0;d=k?b+(e<<1)|0:169776;d=K[d| -0]|K[d+1|0]<<8;a=f?b+(a<<1)|0:169776;a=K[a|0]|K[a+1|0]<<8;c=Q(V(Q(Q(Q(c*Q((d<<8|d>>>8)<<16>>16))+Q(Q(Q(1)-c)*Q((a<<8|a>>>8)<<16>>16)))+Q(.5))));if(Q(R(c))>2]+20>>2]](i,g);a:{if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;b:{if(!h){J[195395]=0;ha(3665,n|0,a|0,c|0,d|0)|0;g=J[195395];J[195395]= -0;if((g|0)==1)break b;g=(c-a<<2)+d|0;J[f>>2]=g;break a}J[f>>2]=d;c:{d:{i=a;h=K[i|0];switch(h-43|0){case 0:case 2:break d;default:break c}}J[195395]=0;i=ca(3552,n|0,h<<24>>24)|0;h=J[195395];J[195395]=0;if((h|0)==1)break b;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=a+1|0}if(!(K[i|0]!=48|(c-i|0)<2|(K[i+1|0]|32)!=120)){J[195395]=0;h=ca(3552,n|0,48)|0;j=J[195395];J[195395]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+4;J[j>>2]=h;h=H[i+1|0];J[195395]=0;h=ca(3552,n|0,h|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break b; -j=J[f>>2];J[f>>2]=j+4;J[j>>2]=h;i=i+2|0}J[195395]=0;Dh(i,c);h=J[195395];J[195395]=0;if((h|0)==1)break b;J[195395]=0;o=_(3662,g|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break b;j=0;g=i;while(1){e:{if(c>>>0<=g>>>0){g=J[f>>2];J[195395]=0;bl((i-a<<2)+d|0,g);g=J[195395];J[195395]=0;if((g|0)==1)break e;g=J[f>>2];break a}h=l+4|0;f:{if(K[h+11|0]>>>7|0){k=J[h>>2];break f}k=h}p=!K[k+j|0];if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(p|H[k+j|0]!=(m|0))){m=J[f>>2];J[f>>2]=m+4;J[m>>2]=o;if(K[h+11|0]>>>7|0)h=J[h+ -4>>2];else h=K[h+11|0]&127;j=(h-1>>>0>j>>>0)+j|0;m=0}h=H[g|0];J[195395]=0;h=ca(3552,n|0,h|0)|0;k=J[195395];J[195395]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+4;J[k>>2]=h;g=g+1|0;m=m+1|0;continue}}break}}a=Z()|0;Yb(l+4|0);ba(a|0);B()}J[e>>2]=(b|0)==(c|0)?g:(b-a<<2)+d|0;Yb(l+4|0);xb=l+16|0}function qga(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;d=xb-48|0;xb=d;m=J[a+420>>2];f=J[a+464>>2];a:{b:{if(J[f+40>>2]|!J[a+280>>2])break b;e=J[a+460>>2];J[e+24>>2]=J[e+24>>2]+(J[f+12>>2]/8|0);J[f+ -12>>2]=0;g=0;if(!(Ab[J[e+8>>2]](a)|0))break a;if(J[a+336>>2]>0){e=0;while(1){J[((e<<2)+f|0)+20>>2]=0;e=e+1|0;if((e|0)>2])continue;break}}J[f+16>>2]=0;J[f+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[f+36>>2]=0}if(!J[f+36>>2]){J[d+44>>2]=a;c=J[a+24>>2];i=J[c>>2];J[d+28>>2]=i;g=J[c+4>>2];J[d+32>>2]=g;e=J[f+12>>2];h=J[f+8>>2];J[d+24>>2]=J[f+32>>2];k=J[f+28>>2];J[d+16>>2]=J[f+24>>2];J[d+20>>2]=k;k=J[f+20>>2];J[d+8>>2]=J[f+16>>2];J[d+12>>2]=k;if(J[a+364>>2]>0){i=0;while(1){c=i<<2;k=J[c+b>>2];l= -J[(a+c|0)+368>>2]<<2;c=J[((J[J[(l+a|0)+340>>2]+20>>2]<<2)+f|0)+44>>2];c:{d:{e:{if((e|0)>7)break e;j=d+28|0;g=0;if(!Od(j,h,e,0))break a;h=J[d+36>>2];e=J[d+40>>2];if((e|0)>7)break e;c=Oe(j,h,e,c,1);break d}g=h>>e-8&255;j=J[(c+(g<<2)|0)+144>>2];if(j){c=K[(c+g|0)+1168|0];e=e-j|0;break c}c=Oe(d+28|0,h,e,c,9)}g=0;if((c|0)<0)break a;h=J[d+36>>2];e=J[d+40>>2]}if(c){if((c|0)>(e|0)){g=0;if(!Od(d+28|0,h,e,c))break a;h=J[d+36>>2];e=J[d+40>>2]}e=e-c|0;c=c<<2;g=J[c+249728>>2];j=h>>e&g;c=j-((j|0)<=J[c+249724>>2]? -g:0)|0}else c=0;g=d+l|0;c=c+J[g+12>>2]|0;J[g+12>>2]=c;I[k>>1]=c<>2])continue;break}g=J[d+32>>2];i=J[d+28>>2];c=J[a+24>>2]}J[c+4>>2]=g;J[c>>2]=i;J[f+12>>2]=e;J[f+8>>2]=h;J[f+32>>2]=J[d+24>>2];a=J[d+20>>2];J[f+24>>2]=J[d+16>>2];J[f+28>>2]=a;a=J[d+12>>2];J[f+16>>2]=J[d+8>>2];J[f+20>>2]=a}J[f+40>>2]=J[f+40>>2]-1;g=1}xb=d+48|0;return g|0}function poa(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;f=J[b>>2];a=J[f+28>>2];a:{if(a)break a;b=f+28|0;while(1){if(!J[f>> -2]){a=169776;break a}a=_H(b);if(!a)a=169776;g=J[b>>2];J[b>>2]=g?g:a;if(!g)break a;ZH(a);a=J[b>>2];if(!a)continue;break}}b=0;g=J[a+4>>2];b:{c:{if((g|0)!=131072){if((g|0)!=65536|c>>>0>257)break b;a=c<<2;b=J[a+122256>>2];g=b+118544|0;a=J[a+122260>>2]+(b^-1)|0;break c}g=J[a+8>>2];h=K[g|0]|K[g+1|0]<<8;if(((h<<8|h>>>8)&65535)>>>0<=c>>>0)break b;g=g+(c<<1)|0;g=K[g+2|0]|K[g+3|0]<<8;g=(g<<8|g>>>8)&65535;if(g>>>0<=257){a=g<<2;b=J[a+122256>>2];g=b+118544|0;a=J[a+122260>>2]+(b^-1)|0;break c}g=g-258|0;if(g>>> -0>=M[a+16>>2])break b;a=J[a+24>>2]+J[J[a+20>>2]+(g<<2)>>2]|0;g=a+1|0;a=K[a|0]}b=(a|0)!=0;if(!e|!a)break b;b=e-1|0;a=a>>>0>b>>>0?b:a;i=oc(d,g,a)+a|0,j=0,H[i|0]=j;b=1}if(b)g=1;else{b=J[f+64>>2];d:{if(b)break d;a=f- -64|0;while(1){if(!J[f>>2]){b=169776;break d}b=Jo(a);if(!b)b=169776;g=J[a>>2];J[a>>2]=g?g:b;if(!g)break d;Io(b);b=J[a>>2];if(!b)continue;break}}g=0;a=xb-16|0;xb=a;f=J[b+220>>2];e:{if(!J[b+48>>2]|f>>>0<=c>>>0|J[b+152>>2]!=-1)break e;if(e){f:{g:{h=J[b+56>>2];h:{i:{if((h|0)!=169776){f=yH(h, -c,f,0);break i}f=0;j:switch(J[b+176>>2]){case 0:f=c>>>0<229?c:0;break h;case 1:f=c>>>0<=165?L[(c<<1)+116752>>1]:0;break i;case 2:break j;default:break h}f=c>>>0<=86?L[(c<<1)+117088>>1]:0}if(f>>>0>390)break g}b=f<<2;c=J[b+127776>>2];b=J[b+127780>>2]+(c^-1)|0;f=c+124332|0;break f}mg(a+4|0,J[b+68>>2],f-391|0);b=J[a+8>>2];f=J[a+4>>2]}if(!b)break e;c=e-1|0;b=b>>>0>c>>>0?c:b;i=oc(d,f,b)+b|0,j=0,H[i|0]=j}g=1}xb=a+16|0}return g|0}function Nu(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;d=J[b+12>> -2];j=J[b+4>>2];a:{if(d>>>0>>0)break a;c=J[b+8>>2];if(c-a>>>0<16)break a;f=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0<4)break a;f=a+4|0;if(d>>>0>>0|c-f>>>0<4|K[f|0]&128)break a;c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(!og((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0,b))break a;c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((i|0)<0)break a;c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<< -16|K[a+15|0]<<24);k=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;c=a;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);l=c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;j=i<<1;a=0;while(1){f=g;if((a|0)>=(h|0)){e=0;c=a+1|0;d=Kpa(c,0,j,0);if(zb|M[b+12>>2]>2]>>>0|d>>>0>J[b+8>>2]-l>>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;d=d+((a^-1)+h|0)|0;J[b+16>>2]=d;if((d|0)<=0)break a;Kpa(c,0,i,0);if(zb)break a;m=P(c,i);if((m|0)<0)break a;d=P(h,i);if((d|0)<(m|0)){h=(m<<1)+l|0;e=(d<< -1)+l|0;while(1){d=K[e|0]|K[e+1|0]<<8;d=((d<<8|d>>>8)&65535)+1|0;g=d>>>0>>0?g:d;e=e+2|0;if(h>>>0>e>>>0)continue;break}}h=c}e=0;if(M[b+12>>2]>2]>>>0)break a;d=P(g,6);if(d>>>0>J[b+8>>2]-k>>>0)break a;c=J[b+16>>2]-d|0;J[b+16>>2]=c;if((c|0)<=0)break a;c=c+(f-g|0)|0;J[b+16>>2]=c;if((c|0)<=0)break a;if((f|0)<(g|0)){d=d+k|0;e=P(f,6)+k|0;while(1){c=K[e|0]|K[e+1|0]<<8;c=(c<<8|c>>>8)&65535;a=(a|0)>(c|0)?a:c;e=e+6|0;if(d>>>0>e>>>0)continue;break}}if((a|0)>=(h|0))continue;break}e=1}return e}function zG(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{e=J[b+12>>2];c=J[b+4>>2];if(e>>>0>>0)break a;g=J[b+8>>2];if(g-a>>>0<6)break a;f=K[a+2|0]|K[a+3|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0<6|e>>>0>>0|f>>>0>g-a>>>0)break a;d=J[b+16>>2]-f|0;J[b+16>>2]=d;f=1;if((d|0)<=0)break a;b:{c:switch(K[a+4|0]){case 0:f=a+6|0;if(e>>>0>>0|g-f>>>0<8)break a;c=a+14|0;if(M[b+12>>2]>2]>>>0)break a;f=0;a=K[a+6|0]|K[a+7|0]<<8;a=P((a<<8|a>>>8)&65535,6);if(a>>>0>J[b+8>>2]-c>>>0)break b;a=J[b+16>>2]-a|0;J[b+16>> -2]=a;return(a|0)>0|0;case 2:break c;default:break b}f=0;e=J[b+12>>2];c=J[b+4>>2];d:{if(e>>>0>>0)break d;g=J[b+8>>2];if(g-a>>>0<14)break d;d=a+8|0;if(e>>>0>>0|g-d>>>0<2)break d;d=K[a+8|0]|K[a+9|0]<<8;d=((d<<8|d>>>8)&65535)+a|0;if(e>>>0>>0|g-d>>>0<4)break d;h=d+2|0;if(e>>>0>>0|g-h>>>0<2)break d;h=d+4|0;if(e>>>0>>0)break d;d=K[d+2|0]|K[d+3|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>g-h>>>0)break d;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break d;d=e;e=a+10|0;if(d>>>0>>0| -g-e>>>0<2)break d;g=J[b+12>>2];c=K[a+10|0]|K[a+11|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;e=J[b+4>>2];if(g>>>0>>0)break d;d=J[b+8>>2];if(d-c>>>0<4)break d;h=c+2|0;if(g>>>0>>0|d-h>>>0<2)break d;e=c+4|0;if(M[b+12>>2]>2]>>>0)break d;c=K[c+2|0]|K[c+3|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>J[b+8>>2]-e>>>0)break d;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if(M[b+12>>2]>2]>>>0|(c|0)<=0)break d;e=J[b+8>>2]-a|0;a=K[a+12|0]|K[a+13|0]<<8;a=(a<<8|a>>>8)&65535;if(e>>>0>>0)break d;a=J[b+16>>2]-a| -0;J[b+16>>2]=a;f=(a|0)>0}}return f|0}return 0}function oba(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;if((c|0)>0){g=J[a+584>>2];while(1){if(!(K[g+4|0]&2)){j=J[a+584>>2];h=J[j+64>>2];e=J[j+68>>2];a:{if(!(K[j+28|0]&4))break a;if((e|0)==4){e=4;break a}i=((e|0)>3?-4:4)+e|0;b:{if(i>>>0<=e>>>0)break b;if(J[a+608>>2]>=J[a+600>>2])Xc(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=h;d=J[a+608>>2]+1|0;J[a+608>>2]=d;i=4;f=-4;if((e|0)<4){h=0;e=8;break b}while(1){if(J[a+600>>2]<=(d|0))Xc(a);d=J[a+604>> -2];J[a+604>>2]=d+1;h=0;H[d|0]=0;d=J[a+608>>2]+1|0;J[a+608>>2]=d;e=8;f=f-8|0;if(f>>>0>8)continue;break}}e=e-i|0;if(e)break a;if(J[a+608>>2]>=J[a+600>>2])Xc(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=h;J[a+608>>2]=J[a+608>>2]+1;h=0;e=8}i=1;d=12;if(H[j+28|0]&1){i=!J[j+92>>2]|2;d=13}c:{if(d>>>0<=e>>>0)break c;d=d-e|0;e=i>>>d|h;if(J[a+608>>2]>=J[a+600>>2])Xc(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;h=0;e=8;if(d>>>0<9)break c;while(1){d=d-8|0;e=i>>>d|0;if(J[a+600>>2]<=(f|0))Xc(a); -f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}f=J[(d<<2)+287280>>2]&i;d=e-d|0;f=f<>2]>=J[a+600>>2])Xc(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=f;J[a+608>>2]=J[a+608>>2]+1;f=0;d=8}J[j+68>>2]=d;J[j+64>>2]=f}d:{if(H[g+28|0]&1){e:{if(!J[g+92>>2]){MC(a,b,J[g+12>>2]);J[g+92>>2]=1;d=J[g+100>>2];break e}NC(a,b,J[g+96>>2],J[g+12>>2]);d=J[g+100>>2]-1|0;J[g+100>>2]=d}if(!d){J[g+92>>2]=0;J[g+100>>2]=J[g+104>>2]-1;break d}Pc(J[g+96>> -2],b,J[g+8>>2]);break d}MC(a,b,J[g+12>>2])}d=J[g+8>>2];b=d+b|0;c=c-d|0;if((c|0)>0)continue;break}}return 1}function fs(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;a:{f=J[a+4>>2];if(!f)break a;g=J[a+44>>2];if(!g)break a;d=f+40|0;i=b>>>0>=g>>>0;if(!i){e=d+(b<<2)|0;j=K[e|0];k=K[e+1|0];l=K[e+2|0];m=K[e+3|0]}e=0;if(c>>>0>>0){e=d+(c<<2)|0;n=K[e|0];h=K[e+3|0];o=K[e+2|0];e=K[e+1|0]}b:{if(!i){d=d+(b<<2)|0;H[d|0]=n;H[d+1|0]=e;H[d+2|0]=o;H[d+3|0]=h;H[a+449|0]=0;f= -J[a+4>>2];if(!f)break b}if(M[a+44>>2]<=c>>>0)break b;d=(c<<2)+f|0;H[d+41|0]=k;H[d+40|0]=j;H[d+42|0]=l;H[d+43|0]=m;H[a+449|0]=0}e=J[a+20>>2];if((e|0)<=0)break a;d=J[a+16>>2];if((d|0)<=0)break a;j=b&15;m=b&1;k=c&15;l=c&1;h=0;while(1){f=0;if((d|0)>0){while(1){c:{d:{e:{f:{g=L[a+26>>1];if((g|0)!=8){i=J[a+56>>2]+P(J[a+52>>2],h)+(P(f,g)>>>3)|0;e=K[i|0];d=0;g:{h:{i:{g=g-1|0;switch(g|0){case 0:break h;case 3:break i;default:break g}}d=(f^-1)<<2&4;d=(e&15<>>d|0;break g}d=(f^-1)&7;d=(e&1<>>d|0}if((b| -0)!=(d|0))break c;d=b;switch(g|0){case 0:break e;case 3:break f;default:break c}}e=(J[a+56>>2]+P(J[a+52>>2],h)|0)+f|0;d=K[e|0];if((d|0)!=(b|0))break c;H[e|0]=c;break d}d=(f^-1)<<2&4;H[i|0]=e&(15<>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],h)|0)+f|0]=b;break j}d=J[a+56>>2]+P(J[a+52>>2],h)+(P(e,f)>>>3)|0;k:switch(e-1|0){case 3:e=d;g=K[d|0];d=(f^-1)<<2&4;H[e|0]=g&(15<>2];f=f+1|0;if((d|0)>(f|0))continue;break}e=J[a+20>>2]}h=h+1|0;if((h|0)<(e|0))continue;break}}}function YT(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=xb-16|0;xb=l;n=kq(g);i=l+4|0;g=$p(g);Ab[J[J[g>>2]+20>>2]](i,g);a:{if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;b:{if(!h){J[195395]=0;ha(3646,n|0,a|0,c|0,d|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break b;g=(c- -a|0)+d|0;J[f>>2]=g;break a}J[f>>2]=d;c:{d:{i=a;h=K[i|0];switch(h-43|0){case 0:case 2:break d;default:break c}}J[195395]=0;i=ca(3669,n|0,h<<24>>24)|0;h=J[195395];J[195395]=0;if((h|0)==1)break b;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=a+1|0}if(!(K[i|0]!=48|(c-i|0)<2|(K[i+1|0]|32)!=120)){J[195395]=0;h=ca(3669,n|0,48)|0;j=J[195395];J[195395]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+1;H[j|0]=h;h=H[i+1|0];J[195395]=0;h=ca(3669,n|0,h|0)|0;j=J[195395];J[195395]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+1;H[j|0]= -h;i=i+2|0}J[195395]=0;Dh(i,c);h=J[195395];J[195395]=0;if((h|0)==1)break b;J[195395]=0;o=_(3637,g|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break b;j=0;g=i;while(1){e:{if(c>>>0<=g>>>0){g=J[f>>2];J[195395]=0;Dh((i-a|0)+d|0,g);g=J[195395];J[195395]=0;if((g|0)==1)break e;g=J[f>>2];break a}h=l+4|0;f:{if(K[h+11|0]>>>7|0){k=J[h>>2];break f}k=h}p=!K[k+j|0];if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(p|H[k+j|0]!=(m|0))){m=J[f>>2];J[f>>2]=m+1;H[m|0]=o;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;j=(h- -1>>>0>j>>>0)+j|0;m=0}h=H[g|0];J[195395]=0;h=ca(3669,n|0,h|0)|0;k=J[195395];J[195395]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+1;H[k|0]=h;g=g+1|0;m=m+1|0;continue}}break}}a=Z()|0;Yb(l+4|0);ba(a|0);B()}J[e>>2]=(b|0)==(c|0)?g:(b-a|0)+d|0;Yb(l+4|0);xb=l+16|0}function kga(a){a=a|0;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;j=xb-16|0;xb=j;e=J[a+448>>2];if(J[a+336>>2]>0)while(1){f=b<<2;c=J[(f+a|0)+340>>2];d=J[c+12>>2];t=f+j|0,u=Ab[J[J[a+4>>2]+32>>2]](a,J[((J[c+4>>2]<<2)+ -e|0)+72>>2],P(d,J[a+148>>2]),d,1)|0,J[t>>2]=u;b=b+1|0;if((b|0)>2])continue;break}c=J[e+28>>2];h=J[e+24>>2];a:{if((c|0)>(h|0)){p=e+32|0;b=J[a+356>>2];g=J[e+20>>2];while(1){if(b>>>0>g>>>0){while(1){k=0;f=0;m=J[a+336>>2];if((m|0)>0)while(1){d=k<<2;b=J[(d+a|0)+340>>2];n=J[b+60>>2];b:{if((n|0)<=0)break b;i=J[b+56>>2];if((i|0)<=0)break b;q=J[d+j>>2]+(h<<2)|0;o=i&7;l=0;r=P(g,i)<<7;s=i>>>0<8;while(1){b=J[(l<<2)+q>>2]+r|0;d=f;c=0;if(o)while(1){J[((d<<2)+e|0)+32>>2]=b;d=d+1|0;b=b+128|0;c=c+1|0;if((o| -0)!=(c|0))continue;break}f=f+i|0;if(!s)while(1){c=(d<<2)+e|0;J[c+36>>2]=b+128;J[c+32>>2]=b;J[c+40>>2]=b+256;J[c+44>>2]=b+384;J[c+48>>2]=b+512;J[c+52>>2]=b+640;J[c+56>>2]=b+768;J[c+60>>2]=b+896;b=b+1024|0;d=d+8|0;if((f|0)!=(d|0))continue;break}l=l+1|0;if((n|0)!=(l|0))continue;break}}k=k+1|0;if((m|0)!=(k|0))continue;break}if(!(Ab[J[J[a+464>>2]+4>>2]](a,p)|0)){J[e+20>>2]=g;J[e+24>>2]=h;a=0;break a}b=J[a+356>>2];g=g+1|0;if(b>>>0>g>>>0)continue;break}c=J[e+28>>2]}g=0;J[e+20>>2]=0;h=h+1|0;if((h|0)<(c|0))continue; -break}}f=J[a+148>>2]+1|0;J[a+148>>2]=f;b=J[a+328>>2];if(b>>>0>f>>>0){d=J[a+448>>2];c:{if(J[a+336>>2]>=2){J[d+28>>2]=1;break c}a=J[a+340>>2];if(f>>>0>>0){J[d+28>>2]=J[a+12>>2];break c}J[d+28>>2]=J[a+76>>2]}J[d+20>>2]=0;J[d+24>>2]=0;a=3;break a}Ab[J[J[a+456>>2]+12>>2]](a);a=4}xb=j+16|0;return a|0}function MN(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;e=a+10|0;if(e>>>0>M[b+160>>2])Bc(b,8);l=K[a+9|0]|(K[a+7|0]<<16|K[a+6|0]<<24|K[a+8|0]<<8);c=K[a+2|0]|K[a+3|0]<<8|(K[a+4| -0]<<16|K[a+5|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!(h>>>0<10|J[b+160>>2]-a>>>0>>0))if((h-10>>>0)/11>>>0>=l>>>0)break a;Bc(b,8)}if(l){d=1;while(1){m=K[e+2|0]|(K[e+1|0]<<8|K[e|0]<<16);c=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(!(f>>>0>>0&c>>>0>>0))Bc(b,8);if(d>>>0>m>>>0)Bc(b,8);b:{if(!c)break b;d=a+c|0;c=d+4|0;if(c>>>0>M[b+160>> -2])Bc(b,8);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);g=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c:{if(g>>>0>J[b+160>>2]-c>>>2>>>0){Bc(b,8);break c}if(!g)break b}d=0;i=0;while(1){j=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);k=j+K[c+3|0]|0;if(k>>>0>=1114112)Bc(b,8);if(i>>>0>j>>>0)Bc(b,8);c=c+4|0;i=k+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}d:{if(!f)break d;d=a+f|0;c=d+4|0;if(c>>>0>M[b+160>>2])Bc(b,8);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);e:{if(d>>> -0>(J[b+160>>2]-c>>>0)/5>>>0){Bc(b,8);break e}if(!d)break d}i=0;f=0;while(1){j=K[c+3|0];k=K[c+4|0];g=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);if(g>>>0>=1114112)Bc(b,8);if(g>>>0>>0)Bc(b,8);if(!(J[b+164>>2]<=0|M[b+172>>2]>(k|j<<8)>>>0))Bc(b,16);c=c+5|0;i=g+1|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}e=e+11|0;d=m+1|0;n=n+1|0;if((n|0)!=(l|0))continue;break}}return 0}function oha(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=c+d|0;if(J[b>>2]?M[b+12>>2]>>0|i>>>0>M[b+4>>2]:1){d= -J[a>>2];J[d+20>>2]=23;Ab[J[d>>2]](a)}d=J[b+24>>2];a:{if(d>>>0<=c>>>0&d+J[b+16>>2]>>>0>=i>>>0)break a;if(!J[b+40>>2]){d=J[a>>2];J[d+20>>2]=71;Ab[J[d>>2]](a)}if(J[b+36>>2]){g=J[b+16>>2];b:{if((g|0)<=0)break b;l=b+48|0;j=J[b+8>>2]<<7;h=P(j,J[b+24>>2]);f=J[b+20>>2];d=0;while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break b;f=P(f,j);Ab[J[b+52>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2]; -if((d|0)<(g|0))continue;break}}J[b+36>>2]=0}d=0;g=J[b+16>>2];h=i-g|0;h=M[b+24>>2]>>0?c:(h|0)>0?h:0;J[b+24>>2]=h;if((g|0)<=0)break a;l=b+48|0;j=J[b+8>>2]<<7;h=P(j,h);f=J[b+20>>2];while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break a;f=P(f,j);Ab[J[b+48>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}d=J[b+28>>2];c:{d:{e:{if(i>>>0<=d>>>0)break e;f:{g:{h:{i:{if(c>>> -0>d>>>0){if(!e)break i;d=J[a>>2];J[d+20>>2]=23;Ab[J[d>>2]](a);d=c;break g}if(e)break g;break h}d=c}if(J[b+32>>2])break f;d=J[a>>2];J[d+20>>2]=23;Ab[J[d>>2]](a);break c}J[b+28>>2]=i;if(!J[b+32>>2])break d}a=J[b+24>>2];d=d-a|0;a=i-a|0;if(d>>>0>=a>>>0)break e;h=J[b+8>>2]<<7;while(1){Oc(J[J[b>>2]+(d<<2)>>2],h);d=d+1|0;if((a|0)!=(d|0))continue;break}}if(!e)break c}J[b+36>>2]=1}return J[b>>2]+(c-J[b+24>>2]<<2)|0}function nha(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=c+d| -0;if(J[b>>2]?M[b+12>>2]>>0|i>>>0>M[b+4>>2]:1){d=J[a>>2];J[d+20>>2]=23;Ab[J[d>>2]](a)}d=J[b+24>>2];a:{if(d>>>0<=c>>>0&d+J[b+16>>2]>>>0>=i>>>0)break a;if(!J[b+40>>2]){d=J[a>>2];J[d+20>>2]=71;Ab[J[d>>2]](a)}if(J[b+36>>2]){g=J[b+16>>2];b:{if((g|0)<=0)break b;l=b+48|0;j=J[b+8>>2];h=P(j,J[b+24>>2]);f=J[b+20>>2];d=0;while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break b;f=P(f,j);Ab[J[b+52>>2]](a,l,J[J[b>>2]+(d<<2)>> -2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}J[b+36>>2]=0}d=0;g=J[b+16>>2];h=i-g|0;h=M[b+24>>2]>>0?c:(h|0)>0?h:0;J[b+24>>2]=h;if((g|0)<=0)break a;l=b+48|0;j=J[b+8>>2];h=P(j,h);f=J[b+20>>2];while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break a;f=P(f,j);Ab[J[b+48>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}d=J[b+ -28>>2];c:{d:{e:{if(i>>>0<=d>>>0)break e;f:{g:{h:{i:{if(c>>>0>d>>>0){if(!e)break i;d=J[a>>2];J[d+20>>2]=23;Ab[J[d>>2]](a);d=c;break g}if(e)break g;break h}d=c}if(J[b+32>>2])break f;d=J[a>>2];J[d+20>>2]=23;Ab[J[d>>2]](a);break c}J[b+28>>2]=i;if(!J[b+32>>2])break d}a=J[b+24>>2];d=d-a|0;a=i-a|0;if(d>>>0>=a>>>0)break e;h=J[b+8>>2];while(1){Oc(J[J[b>>2]+(d<<2)>>2],h);d=d+1|0;if((a|0)!=(d|0))continue;break}}if(!e)break c}J[b+36>>2]=1}return J[b>>2]+(c-J[b+24>>2]<<2)|0}function $o(a,b){var c=0,d=0,e=0,f= -0,g=0,h=0,i=0,j=0;f=J[b+12>>2];e=J[b+4>>2];a:{if(f>>>0>>0)break a;d=J[b+8>>2];if(d-a>>>0<2)break a;c=K[a|0]|K[a+1|0]<<8;if(((c<<8|c>>>8)&65535)>>>0<2)break a;c=a+4|0;if(c-e>>>0>f>>>0|d-c>>>0<4)break a;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(!c)return 1;c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);i=c>>>0<=1?1:c;j=c-1|0;a=a+8|0;while(1){if(a-e>>>0>f>>>0)return 0;if(d-a>>>0<12)return 0;d=J[b+36>>2];e=J[d+12>>2];J[b+4>>2]=e;f=J[d+16>>2];J[b+12>>2]=f;c=f+e|0;J[b+8>>2]=c;b:{if(g>>>0>=j>>> -0){d=c;break b}if(!a){d=c;break b}d=0;c:{if(a>>>0>>0){f=0;e=0;break c}f=0;e=0;if(a>>>0>=c>>>0)break c;c=c-a|0;d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);f=d>>>0>c>>>0?c:d;d=f+a|0;e=a}J[b+12>>2]=f;J[b+4>>2]=e;J[b+8>>2]=d}h=0;c=0;d:{if(a-e>>>0>f>>>0)break d;c=0;if(d-a>>>0<12)break d;d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c=0;if(d>>>0<12)break d;c=0;if(M[b+12>>2]>2]>>>0)break d;c=0;if(d>>> -0>J[b+8>>2]-a>>>0)break d;d=J[b+16>>2]-d|0;J[b+16>>2]=d;c=0;if((d|0)<=0)break d;J[195395]=0;d=Cu(a,b);c=J[195395];J[195395]=0;e:{if((c|0)!=1){if(d)break e;c=0;break d}a=Z()|0;d=J[b+36>>2];c=J[d+12>>2];J[b+4>>2]=c;d=J[d+16>>2];J[b+12>>2]=d;J[b+8>>2]=d+c;ba(a|0);B()}c=a;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;c=1}d=J[b+36>>2];e=J[d+12>>2];J[b+4>>2]=e;f=J[d+16>>2];J[b+12>>2]=f;d=f+e|0;J[b+8>>2]=d;if(!c)break a;h=1;g=g+1|0;if((i|0)!=(g|0))continue; -break}}return h}function rga(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;d=xb-32|0;xb=d;e=J[a+464>>2];a:{b:{if(J[e+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[e+12>>2]/8|0);J[e+12>>2]=0;i=0;if(!(Ab[J[c+8>>2]](a)|0))break a;if(J[a+336>>2]>0){c=0;while(1){J[((c<<2)+e|0)+20>>2]=0;c=c+1|0;if((c|0)>2])continue;break}}J[e+16>>2]=0;J[e+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[e+36>>2]=0}if(!J[e+36>>2]){c=J[e+16>>2];c:{if(c){f=c-1|0;break c}m= -J[a+428>>2];n=J[a+420>>2];l=J[a+412>>2];J[d+28>>2]=a;c=J[a+24>>2];J[d+12>>2]=J[c>>2];J[d+16>>2]=J[c+4>>2];c=J[e+12>>2];g=J[e+8>>2];k=J[a+408>>2];f=0;d:{if((l|0)<(k|0))break d;f=J[e+60>>2];o=J[b>>2];while(1){e:{f:{g:{if((c|0)>7)break g;b=d+12|0;i=0;if(!Od(b,g,c,0))break a;g=J[d+20>>2];c=J[d+24>>2];if((c|0)>7)break g;b=Oe(b,g,c,f,1);break f}b=g>>c-8&255;h=J[((b<<2)+f|0)+144>>2];if(h){b=K[(b+f|0)+1168|0];c=c-h|0;break e}b=Oe(d+12|0,g,c,f,9)}i=0;if((b|0)<0)break a;g=J[d+20>>2];c=J[d+24>>2]}h=b>>>4|0; -h:{j=b&15;if(j){if((c|0)<(j|0)){i=0;if(!Od(d+12|0,g,c,j))break a;g=J[d+20>>2];c=J[d+24>>2]}b=h+k|0;h=j<<2;k=J[h+249728>>2];c=c-j|0;j=k&g>>c;I[(J[(b<<2)+m>>2]<<1)+o>>1]=j-((j|0)<=J[h+249724>>2]?k:0)<>>0>=16){if((c|0)<(h|0)){i=0;if(!Od(d+12|0,g,c,h))break a;g=J[d+20>>2];c=J[d+24>>2]}c=c-h|0;f=f+(J[(h<<2)+249728>>2]&g>>c)|0}f=f-1|0;break d}k=b+1|0;if((b|0)<(l|0))continue;break}f=0}a=J[a+24>>2];J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+16>>2];J[e+12>>2]=c; -J[e+8>>2]=g}J[e+16>>2]=f}J[e+40>>2]=J[e+40>>2]-1;i=1}xb=d+32|0;return i|0}function NH(a){a=a|0;var b=0,c=0,d=0;b=Qb(192);J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{c:{d:{e:{if(b){J[a>>2]=8;J[a+4>>2]=1;J[a+8>>2]=b;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=1065353216;J[b>>2]=1065353216;J[b+4>>2]=0;d=1;break e}J[a>>2]=-1;b=J[42449];J[194124]=J[42448];J[194125]=b;b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]= -J[42444];J[194121]=b;c=J[a+12>>2];b=J[a+16>>2];if((c|0)>(b|0))break b;if((c|0)<0)break d;d=b+1|0;if(d>>>0<=c>>>0)break b}b=c;while(1){b=((b>>>1|0)+b|0)+8|0;if(d>>>0>b>>>0)continue;break}if(b>>>0<=214748364){c=ic(J[a+20>>2],P(b,20));if(c)break c;c=J[a+12>>2];if(c>>>0>=b>>>0)break b}J[a+12>>2]=c^-1}J[194124]=J[42448];b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b;break a}J[a+12>>2]=b;J[a+20>>2]=c}b=J[a+16>>2];J[a+16>>2]=b+1;b=J[a+20>>2]+P(b,20)|0;J[b+12>>2]=-1082130432; -J[b+16>>2]=-1082130432;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=0}b=J[a+24>>2];c=J[a+28>>2];f:{if((b|0)>(c|0))break f;g:{if((b|0)>=0){d=c+1|0;if(d>>>0<=b>>>0)break f;c=b;while(1){c=((c>>>1|0)+c|0)+8|0;if(d>>>0>c>>>0)continue;break}if(c>>>0<=214748364){b=ic(J[a+32>>2],P(c,20));if(b)break g;b=J[a+24>>2];if(c>>>0<=b>>>0)break f}J[a+24>>2]=b^-1}J[194124]=J[42448];b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b;return a|0}J[a+24>>2]=c;J[a+32>>2]=b}b=J[a+28>>2];J[a+28>>2]=b+1; -b=J[a+32>>2]+P(b,20)|0;J[b+12>>2]=-1082130432;J[b+16>>2]=-1082130432;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2;return a|0}function Xq(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;g=xb-32|0;xb=g;a:{e=J[b+40>>2];b:{if(!e){H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break b}en(g+20|0,e,J[b+8>>2]);c:{d:{k=J[b+44>>2];if(!k)break d;j=J[b+8>>2];if(!j)break d;J[195395]=0;m=_(1109,(j>>>0>1073741823?-1:j<<2)|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break a;J[g+16>>2]=0;e=J[b+16>>2];o=e>>>13& -1;n=J[b+40>>2];if(!(e&8192)){while(1){f=h+1|0;i=L[(h<<1)+n>>1];e:{f:{if((i- -8192&65535)>>>0>=63488){e=f;if(i>>>0>56319)break e;i=h+2|0;e=i;if((L[(f<<1)+n>>1]- -8192&65535)>>>0<64512)break e;f=J[(f<<2)+k>>2]+J[(h<<2)+k>>2]|0;break f}i=f;f=J[(h<<2)+k>>2]}e=l+1|0;J[g+16>>2]=e;J[(l<<2)+m>>2]=f;l=e;e=i+o|0}h=e;if(j>>>0>h>>>0)continue;break}break c}while(1){f=h+1|0;i=L[(h<<1)+n>>1];g:{h:{if((i- -8192&65535)>>>0<=63487){h=J[(h<<2)+k>>2];e=l+1|0;J[g+16>>2]=e;J[(l<<2)+m>>2]=h;break h}e=f;if(i>>>0>56319)break g; -e=h+2|0;if((L[(f<<1)+n>>1]- -8192&65535)>>>0<64512)break g;i=J[(f<<2)+k>>2];f=J[(h<<2)+k>>2];e=l+1|0;J[g+16>>2]=e;J[(l<<2)+m>>2]=f+i;f=h+3|0}l=e;e=f+o|0}h=e;if(j>>>0>h>>>0)continue;break}break c}J[195395]=0;J[g+16>>2]=0;f=ca(1812,g+20|0,g+16|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break a;if(!f)break c;Kb(f)}j=J[g+16>>2];if(j){f=J[b+4>>2];e=J[b>>2];J[195395]=0;b=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=b;b=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=b;Ia(2043,a|0,g+20|0,j|0,e|0,f|0,m|0,c|0,g|0);a=J[195395]; -J[195395]=0;if((a|0)==1)break a}if(m)Kb(m);if(H[g+31|0]>=0)break b;Kb(J[g+20>>2])}xb=g+32|0;return}a=Z()|0;if(H[g+31|0]<0)Kb(J[g+20>>2]);ba(a|0);B()}function nj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{d=J[b+12>>2];e=J[b+4>>2];if(d>>>0>>0)break a;c=J[b+8>>2];if(c-a>>>0<10)break a;h=a+6|0;if(d>>>0>>0|c-h>>>0<2)break a;d=J[b+8>>2];f=J[b+12>>2];e=J[b+4>>2];c=K[h|0]|K[h+1|0]<<8;b:{if(!c)break b;c=((c<<8|c>>>8)&65535)+a|0;g=c+4|0;c:{if(g-e>>>0>f>>>0|d-g>>>0<2)break c;g=K[g|0]|K[g+1|0]<< -8;g=(g<<8|g>>>8)&65535;if(g-1>>>0>=3){if((g|0)!=32768)break b;if(d-c>>>0<=5|c-e>>>0>f>>>0)break c;break b}if(c-e>>>0>f>>>0)break c;i=6;k=d-c|0;if(k>>>0<6)break c;j=K[c|0]|K[c+1|0]<<8;j=(j<<8|j>>>8)&65535;c=K[c+2|0]|K[c+3|0]<<8;c=(c<<8|c>>>8)&65535;if(j>>>0<=c>>>0){i=(c-j>>>4-g<<1)+8|0;if(k>>>0>>0)break c}c=J[b+16>>2]-i|0;J[b+16>>2]=c;if((c|0)>0)break b}e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[h|0]=0;H[h+1|0]=0;d=J[b+8>>2];f=J[b+12>>2];e=J[b+4>>2]}c=a+8|0;if(c-e>>> -0>f>>>0|d-c>>>0<2)break a;e=1;d=K[c|0]|K[c+1|0]<<8;d:{if(!d)break d;f=J[b+12>>2];a=((d<<8|d>>>8)&65535)+a|0;d=a+4|0;h=J[b+4>>2];e:{if(f>>>0>>0)break e;g=J[b+8>>2];if(g-d>>>0<2)break e;d=K[d|0]|K[d+1|0]<<8;i=(d<<8|d>>>8)&65535;if(i-1>>>0>=3){if((i|0)!=32768)break d;if(f>>>0>>0|g-a>>>0<=5)break e;break d}if(f>>>0>>0)break e;d=6;h=g-a|0;if(h>>>0<6)break e;f=K[a|0]|K[a+1|0]<<8;f=(f<<8|f>>>8)&65535;a=K[a+2|0]|K[a+3|0]<<8;a=(a<<8|a>>>8)&65535;if(f>>>0<=a>>>0){d=(a-f>>>4-i<<1)+8|0;if(h>>> -0>>0)break e}a=J[b+16>>2]-d|0;J[b+16>>2]=a;if((a|0)>0)break d}a=J[b+32>>2];if(a>>>0>31)break a;J[b+32>>2]=a+1;e=0;if(!K[b+28|0])break d;H[c|0]=0;H[c+1|0]=0;e=1}return e}return 0}function Bk(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;i=xb-16|0;xb=i;H[i+15|0]=0;j=K[a|0]|K[a+1|0]<<8;a:{if(!j)break a;l=J[b+172>>2];g=J[b+80>>2];k=(j<<8|j>>>8)&65535;if(k&1){a=K[d|0]|K[d+1|0]<<8;h=(a|0)!=0;H[i+15|0]=h;m=J[e+8>>2];a=(a<<8|a>>>8)<<16;f=a>>31;a=Kpa(J[g+72>>2],J[g+76>>2],a>>16,f);f=zb;a=a+32768| -0;J[e+8>>2]=(((a>>>0<32768?f+1|0:f)&65535)<<16|a>>>16)+m;d=d+2|0}if(k&2){a=K[d|0]|K[d+1|0]<<8;h=(a|0)!=0|h;H[i+15|0]=h;m=J[e+12>>2];a=(a<<8|a>>>8)<<16;f=a>>31;a=Kpa(J[g+80>>2],J[g+84>>2],a>>16,f);f=zb;a=a+32768|0;J[e+12>>2]=(((a>>>0<32768?f+1|0:f)&65535)<<16|a>>>16)+m;d=d+2|0}l=l&-2;if(k&4){if((l|0)==4){a=K[d|0]|K[d+1|0]<<8;h=(a|0)!=0|h;H[i+15|0]=h;m=J[e>>2];a=(a<<8|a>>>8)<<16;f=a>>31;a=Kpa(J[g+72>>2],J[g+76>>2],a>>16,f);f=zb;a=a+32768|0;J[e>>2]=(((a>>>0<32768?f+1|0:f)&65535)<<16|a>>>16)+m}d=d+2| -0}if(k&8){if((l|0)!=4){a=K[d|0]|K[d+1|0]<<8;H[i+15|0]=(a|0)!=0|h;h=J[e+4>>2];a=(a<<8|a>>>8)<<16;f=a>>31;a=Kpa(J[g+80>>2],J[g+84>>2],a>>16,f);f=zb;a=a+32768|0;J[e+4>>2]=h-(((a>>>0<32768?f+1|0:f)&65535)<<16|a>>>16)}d=d+2|0}if(j>>>0<4096)break a;h=1;a=1;a=J[g+88>>2]?a:J[g+104>>2]!=0;if(!J[g+92>>2]){h=J[g+104>>2]!=0;if(!(a|h))break a}f=J[b+156>>2];j=J[b+152>>2];if(k&16){if(a)n=e,o=gt(zo(d,i+15|0,c,b+92|0),g,j,f)+J[e+8>>2]|0,J[n+8>>2]=o;d=d+2|0}if(k&32){if(h)n=e,o=ft(zo(d,i+15|0,c,b+92|0),g,j,f)+J[e+12>> -2]|0,J[n+12>>2]=o;d=d+2|0}if(k&64){if((l|0)==4&a)n=e,o=gt(zo(d,i+15|0,c,b+92|0),g,j,f)+J[e>>2]|0,J[n>>2]=o;d=d+2|0}if(!(k&128)|(l|0)==4|h^1)break a;a=ft(zo(d,i+15|0,c,b+92|0),g,j,f);J[e+4>>2]=J[e+4>>2]-a}xb=i+16|0;return K[i+15|0]}function wz(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;d=xb+-64|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!J[a>>2])break j;e=K[b+11|0];h=e<<24>>24;i=(h|0)<0?J[b+4>>2]:e;g=i+1|0;if(g>>>0>=1073741808)break b;k:{if(g>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]= -0;H[d+11|0]=g;e=d;f=d+4|0;break k}e=g|3;if(e>>>0>=1073741823)break a;f=e+1|0;e=Pb(f<<2);J[d+4>>2]=g;J[d>>2]=e;J[d+8>>2]=f|-2147483648;f=e+4|0}J[e>>2]=32;e=(h|0)<0?J[b>>2]:b;b=i<<2;j=qc(f,e,b)+b|0,k=0,J[j>>2]=k;J[195395]=0;e=ca(1858,d|0,743968)|0;b=J[195395];J[195395]=0;if((b|0)==1)break i;J[d+24>>2]=J[e+8>>2];b=J[e+4>>2];J[d+16>>2]=J[e>>2];J[d+20>>2]=b;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;b=J[c>>2];e=J[c+4>>2];f=K[c+11|0];J[195395]=0;g=b;b=f<<24>>24<0;c=aa(1864,d+16|0,(b?g:c)|0,(b?e:f)|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break h;J[d+40>>2]=J[c+8>>2];b=J[c+4>>2];J[d+32>>2]=J[c>>2];J[d+36>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[195395]=0;c=ca(1858,d+32|0,743980)|0;b=J[195395];J[195395]=0;if((b|0)==1)break g;J[d+56>>2]=J[c+8>>2];b=J[c+4>>2];J[d+48>>2]=J[c>>2];J[d+52>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;a=J[a>>2];J[195395]=0;$(3507,a|0,d+48|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;if(H[d+59|0]<0)Kb(J[d+48>>2]);if(H[d+43|0]<0)Kb(J[d+32>>2]);if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+11|0]>= -0)break j;Kb(J[d>>2])}xb=d- -64|0;return}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;if(H[d+59|0]>=0)break e;Kb(J[d+48>>2])}if(H[d+43|0]>=0)break d;Kb(J[d+32>>2])}if(H[d+27|0]>=0)break c;Kb(J[d+16>>2])}if(H[d+11|0]<0)Kb(J[d>>2]);ba(b|0);B()}dd(d);B()}zd();B()}function jga(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;e=J[a+328>>2];f=J[a+448>>2];i=J[f+24>>2];a:{c=J[f+28>>2];if((i|0)<(c|0)){s=e-1|0;o=J[a+356>>2]-1|0;k=f+32|0;h=J[f+20>>2]; -while(1){if(h>>>0<=o>>>0){while(1){Oc(J[k>>2],J[a+364>>2]<<7);if(!(Ab[J[J[a+464>>2]+4>>2]](a,k)|0))break a;c=J[a+336>>2];if((c|0)>0){g=0;l=0;while(1){d=J[((l<<2)+a|0)+340>>2];b:{if(!J[d+52>>2]){g=J[d+64>>2]+g|0;break b}e=J[d+60>>2];if((e|0)<=0)break b;m=J[(h>>>0>>0?56:72)+d>>2];if((m|0)>0){t=P(J[d+68>>2],h);c=J[d+4>>2]<<2;p=J[(c+J[a+468>>2]|0)+4>>2];q=J[b+c>>2];c=J[d+40>>2];j=q+(P(i,c)<<2)|0;u=m&-2;q=m&1;n=0;while(1){if(!(J[d+76>>2]<=(i+n|0)&M[a+148>>2]>=s>>>0)){e=0;c=t;r=0;if((m|0)!=1)while(1){Ab[p| -0](a,d,J[(e+g<<2)+k>>2],j,c);c=J[d+36>>2]+c|0;Ab[p|0](a,d,J[((e|1)+g<<2)+k>>2],j,c);e=e+2|0;c=c+J[d+36>>2]|0;r=r+2|0;if((u|0)!=(r|0))continue;break}if(q)Ab[p|0](a,d,J[((e+g<<2)+f|0)+32>>2],j,c);e=J[d+60>>2];c=J[d+40>>2]}j=(c<<2)+j|0;g=J[d+56>>2]+g|0;n=n+1|0;if((n|0)<(e|0))continue;break}c=J[a+336>>2];break b}g=P(J[d+56>>2],e)+g|0}l=l+1|0;if((l|0)<(c|0))continue;break}}h=h+1|0;if(o>>>0>=h>>>0)continue;break}c=J[f+28>>2]}h=0;J[f+20>>2]=0;i=i+1|0;if((i|0)<(c|0))continue;break}e=J[a+328>>2]}J[a+156>> -2]=J[a+156>>2]+1;c=J[a+148>>2]+1|0;J[a+148>>2]=c;if(c>>>0>>0){b=J[a+448>>2];c:{if(J[a+336>>2]>=2){J[b+28>>2]=1;break c}a=J[a+340>>2];if(c>>>0>>0){J[b+28>>2]=J[a+12>>2];break c}J[b+28>>2]=J[a+76>>2]}J[b+20>>2]=0;J[b+24>>2]=0;return 3}Ab[J[J[a+456>>2]+12>>2]](a);return 4}J[f+20>>2]=h;J[f+24>>2]=i;return 0}function dN(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;e=xb-16|0;xb=e;j=J[b+28>>2];J[a+368>>2]=b;c=Ab[J[a+516>>2]](a,1851878757,b,e+8|0)|0;a:{if(c)break a;k=J[b+8>>2]; -c=Nc(b,95728,a+344|0);J[e+12>>2]=c;if(c)break a;c=145;g=k+6|0;d=J[a+348>>2];h=g+P(d,12)|0;i=J[e+8>>2]+k|0;if(h>>>0>i>>>0)break a;if(L[a+344>>1]==1){c=bc(b,h);J[e+12>>2]=c;if(c)break a;d=e+12|0;f=rc(b,d);J[a+360>>2]=f;c=J[e+12>>2];if(c)break a;l=a,m=Tb(j,12,0,f,0,d),J[l+364>>2]=m;c=J[e+12>>2];if(c)break a;c=Tc(b,J[a+360>>2]<<2);J[e+12>>2]=c;if(c)break a;h=((f<<2)+h|0)+2|0;c=J[a+364>>2];b:{if(!c)break b;d=J[a+360>>2];if((d|0)<=0)break b;d=P(d,12)+c|0;while(1){l=e,m=Nc(b,95788,c),J[l+12>>2]=m;f=J[c+ -4>>2]+(J[a+352>>2]+k|0)|0;J[c+4>>2]=f;if(!(f+L[c>>1]>>>0<=i>>>0&f>>>0>=h>>>0))I[c>>1]=0;c=c+12|0;if(d>>>0>c>>>0)continue;break}}Ec(b);l=e,m=bc(b,g),J[l+12>>2]=m;d=J[a+348>>2]}l=a,m=Tb(j,20,0,d,0,e+12|0),J[l+356>>2]=m;c=J[e+12>>2];if(c)break a;c=Tc(b,P(J[a+348>>2],12));J[e+12>>2]=c;if(c)break a;d=J[a+356>>2];f=J[a+348>>2];c:{if(!f){c=d;i=0;break c}c=d;while(1){d=Nc(b,95760,c);J[e+12>>2]=d;d:{if(d)break d;d=L[c+8>>1];if(!d)break d;g=J[c+12>>2]+(J[a+352>>2]+k|0)|0;J[c+12>>2]=g;if(h>>>0>g>>>0|d+g>>>0> -i>>>0)break d;e:{if(L[a+344>>1]!=1)break e;d=I[c+4>>1];if((d|0)>=0)break e;d=(d&65535)-32768|0;if(d>>>0>=M[a+360>>2]|!L[J[a+364>>2]+P(d,12)>>1])break d}c=c+20|0}f=f-1|0;if(f)continue;break}d=J[a+356>>2];i=J[a+348>>2]}c=(c-d|0)/20|0;j=Tb(j,20,i,c,d,e+12|0);J[a+348>>2]=c;J[a+356>>2]=j;Ec(b);I[a+340>>1]=J[a+348>>2];c=J[e+12>>2]}xb=e+16|0;return c|0}function Pu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=J[b+12>>2];c=a+4|0;f=J[b+4>>2];a:{if(h>>>0>>0)break a;e=J[b+8>>2];if(e-c>>>0<4)break a;c=K[c|0]| -K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(c>>>0<16|h>>>0>>0|c>>>0>e-a>>>0)break a;g=J[b+16>>2]-c|0;J[b+16>>2]=g;if((g|0)<=0)break a;c=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);j=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=Kpa(j,0,12,0);if(zb)break a;i=a+16|0;if(h>>>0>>0|c>>>0>e-i>>>0)break a;c=g-c|0;J[b+16>>2]=c;if((c|0)<=0)break a;d=1;a=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);if(!a)break a;a=a<<24|(a&65280)<<8|(a>>>8&65280| -a>>>24);h=a>>>0<=1?1:a;a=i+P(j,12)|0;f=0;while(1){c=0;b:{e=M[b+12>>2]>2]>>>0;if(e)break b;g=J[b+8>>2]-a|0;if(g>>>0<4)break b;d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(e|d>>>0<12|d>>>0>g>>>0)break b;e=J[b+16>>2]-d|0;J[b+16>>2]=e;if((e|0)<=0)break b;e=J[b+36>>2];c=J[e+12>>2];J[b+4>>2]=c;e=c+J[e+16>>2]|0;c=a>>>0>>0|e>>>0<=a>>>0;J[b+4>>2]=c?0:a;e=e-a|0;d=d>>>0>e>>>0?e:d;J[b+12>>2]=c?0:d;J[b+8>>2]=c?0:a+d|0;J[195395]=0;c=Ou(a,b);d=J[195395]; -J[195395]=0;c:{if((d|0)==1)break c;d=J[b+36>>2];e=J[d+12>>2];J[b+4>>2]=e;d=J[d+16>>2];J[b+12>>2]=d;J[b+8>>2]=d+e;break b}a=Z()|0;c=J[b+36>>2];d=J[c+12>>2];J[b+4>>2]=d;c=J[c+16>>2];J[b+12>>2]=c;J[b+8>>2]=c+d;ba(a|0);B()}d=c;if(!c)break a;c=a;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=c+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}return d}function FD(a,b,c){var d=0,e=0,f=0;d=xb-256|0;xb=d;f=J[a+200>>2];if(f&1){a:{if(f&4){Wb(a,260091);mc(a,c);break a}if(!(!b| -!(K[b+8|0]&16))){Wb(a,260115);mc(a,c);break a}b:{c:{d:switch(K[a+401|0]){case 0:if((c|0)==2){Gd(a,d,2);Fc(a,d,2);I[a+394>>1]=1;c=K[d|0]|K[d+1|0]<<8;I[a+516>>1]=c<<8|c>>>8;break b}Wb(a,260136);mc(a,c);break a;case 2:if((c|0)==6){Gd(a,d,6);Fc(a,d,6);I[a+394>>1]=1;c=K[d|0]|K[d+1|0]<<8;I[a+510>>1]=c<<8|c>>>8;c=K[d+2|0]|K[d+3|0]<<8;I[a+512>>1]=c<<8|c>>>8;c=K[d+4|0]|K[d+5|0]<<8;I[a+514>>1]=c<<8|c>>>8;break b}Wb(a,260136);mc(a,c);break a;case 3:if(!(f&2))Wb(a,260164);if(!(c>>>0<=256&L[a+392>>1]>=c>>>0)){Wb(a, -260136);mc(a,c);break a}if(c)break c;Wb(a,260189);mc(a,0);break a;default:break d}Wb(a,260212);mc(a,c);break a}Gd(a,d,c);Fc(a,d,c);I[a+394>>1]=c}if(mc(a,0)){I[a+394>>1]=0;break a}f=L[a+394>>1];c=a+508|0;e:{if(!a|!b)break e;if(f>>>0>=257){Wb(a,258826);break e}f:{g:{h:{i:{if(d){bi(a,b,8192,0);e=Zd(a,256);J[b+76>>2]=e;J[a+504>>2]=e;if(!f)break i;Mb(e,d,f)}if(!c)break h;break g}if(c)break g;I[b+22>>1]=f;break e}I[b+22>>1]=f;if(!f)break e;break f}e=K[b+24|0];j:{if(e>>>0>15)break j;e=-1<>>0>1])break k;break j;case 2:break l;default:break j}if(e>>>0>1]|e>>>0>1])break k;if(e>>>0>=L[c+6>>1])break j}Wb(a,258920)}a=L[c+4>>1]|L[c+6>>1]<<16;e=L[c>>1]|L[c+2>>1]<<16;I[b+80>>1]=e;I[b+82>>1]=e>>>16;I[b+84>>1]=a;I[b+86>>1]=a>>>16;I[b+88>>1]=L[c+8>>1];I[b+22>>1]=f>>>0<=1?1:f}J[b+8>>2]=J[b+8>>2]|16;J[b+184>>2]=J[b+184>>2]|8192}}xb=d+256|0;return}gc(a,260066);B()}function Vna(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{e:switch(a-6|0){default:d= -a-265|0;if(d>>>0>9|!(1<>2];f:{if(d){g=O[h+(d<<3)>>3];break f}H[h|0]=1;f=J[42445];d=J[42444];J[194120]=d;J[194121]=f;x(0,d|0);x(1,f|0);g=+z()}g:{if(R(g)<2147483648){d=~~g;break g}d=-2147483648}if((d|0)<0){H[h|0]=1;d=0}J[c+16>>2]=d;break d;case 17:break b;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 14:case 15:break c;case 16:break e}h:{if(K[b+4132|0]){e=J[b+4128>>2];break h}f=b+16| -0;d=J[b+20>>2];i:{if(d){g=O[f+(d<<3)>>3];break i}H[f|0]=1;e=J[42445];d=J[42444];J[194120]=d;J[194121]=e;x(0,d|0);x(1,e|0);g=+z()}j:{if(R(g)<2147483648){e=~~g;break j}e=-2147483648}if((e|0)<0){H[f|0]=1;e=0}J[b+4128>>2]=e}H[b+4132|0]=1;J[c+24>>2]=e;e=b+20|0}J[e>>2]=0;break b}Ek(a,b);if(J[b+20>>2])break a}if(K[b+16|0]|M[b+8>>2]>M[b+4>>2])break a;e=J[c+4>>2];d=J[c+8>>2];k:{l:{if((e|0)>(d|0))break l;m:{if((e|0)>=0){f=d+1|0;if(f>>>0<=e>>>0)break l;d=e;while(1){d=((d>>>1|0)+d|0)+8|0;if(f>>>0>d>>>0)continue; -break}if(d>>>0<=357913941){e=ic(J[c+12>>2],P(d,12));if(e)break m;e=J[c+4>>2];if(e>>>0>=d>>>0)break l}J[c+4>>2]=e^-1}J[194122]=J[42446];d=J[42445];J[194120]=J[42444];J[194121]=d;e=776480;break k}J[c+4>>2]=d;J[c+12>>2]=e}d=J[c+8>>2];J[c+8>>2]=d+1;e=J[c+12>>2]+P(d,12)|0;H[e+8|0]=0;J[e>>2]=0;J[e+4>>2]=65535}J[e+4>>2]=a;h=J[b+8>>2];f=J[b+4>>2];d=J[c>>2];J[e>>2]=d+J[b>>2];a=f-d|0;b=a>>>0<=f>>>0?a:0;a=h-d|0;H[e+8|0]=a>>>0>b>>>0?b:a;J[c>>2]=h}}function Pna(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=J[a+ -4>>2]+1|0;c=a;b=J[a>>2];a:if((b|0)>=0){f=(d|0)>0?d:0;b:{if(f>>>0<=b>>>0)break b;a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(f>>>0>a>>>0)continue;break}c:{if(a>>>0<=134217727){d:{e:{if(!a)break e;e=Qb(a<<5);b=0;if(!e)break d;if(!J[c+4>>2])break e;while(1){h=g<<5;d=h+e|0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;b=J[c+8>>2]+h|0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[b+4>>2]=0;J[d+8>>2]=J[b+8>>2];J[b+8>>2]=0;J[d+12>>2]=J[b+12>>2];J[b+12>>2]=0;i=J[b+28>>2];J[d+24>>2]=J[b+24>>2];J[d+28>>2]=i;i=J[b+ -20>>2];J[d+16>>2]=J[b+16>>2];J[d+20>>2]=i;b=J[c+8>>2]+h|0;if(J[b+4>>2]){J[b+8>>2]=0;Kb(J[b+12>>2])}J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;g=g+1|0;if(g>>>0>2])continue;break}}Kb(J[c+8>>2]);b=e}if(b|!a)break c;b=J[c>>2];if(b>>>0>=a>>>0)break b}J[c>>2]=b^-1;a=0;break a}J[c>>2]=a;J[c+8>>2]=b}a=J[c+4>>2];f:{if(f>>>0>a>>>0){while(1){a=J[c+8>>2]+(a<<5)|0;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a=J[c+4>>2]+1|0;J[c+4>>2]=a;if(a>>>0>>0)continue; -break}break f}if(a>>>0<=f>>>0)break f;b=a-f|0;if(!b)break f;a=J[c+8>>2]+(a<<5)|0;while(1){e=a-32|0;if(J[e+4>>2]){J[e+8>>2]=0;Kb(J[e+12>>2])}a=a-32|0;J[a+8>>2]=0;J[e+4>>2]=0;J[a+12>>2]=0;a=e;b=b-1|0;if(b)continue;break}}J[c+4>>2]=f;a=1}else a=0;if(!a){a=J[42451];J[194126]=J[42450];J[194127]=a;a=J[42449];J[194124]=J[42448];J[194125]=a;a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;return 776480}return(J[c+8>>2]+(J[c+4>>2]<<5)|0)-32|0}function nA(a){var b=0,c=0,d= -0,e=0;c=J[a+20>>2];e=a+24|0;if((c|0)!=(e|0))while(1){b=J[c+20>>2];if(b)Ab[J[J[b>>2]+4>>2]](b);b=J[c+4>>2];a:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break a}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(e|0))continue;break}Uj(a+20|0,J[a+24>>2]);J[a+20>>2]=e;J[a+24>>2]=0;J[a+28>>2]=0;c=J[a+4>>2];d=a+8|0;if((c|0)!=(d|0))while(1){b=J[c+20>>2];if(b){ch(b+32|0);qd(b+4|0);Kb(b)}b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break b}while(1){b=c;c=J[c+8>>2];if((b|0)!= -J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}Tj(a+4|0,J[a+8>>2]);J[a+4>>2]=d;J[a+8>>2]=0;J[a+12>>2]=0;b=J[a>>2];if(b){ch(b+32|0);qd(b+4|0);Kb(b);J[a>>2]=0}b=Pb(696);J[195395]=0;c=ca(2127,b|0,a|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){J[a>>2]=c;pA(a);c=J[a+24>>2];c:{if(!c)break c;b=e;while(1){d=M[c+16>>2]<2147483655;b=d?b:c;c=J[(d?c+4|0:c)>>2];if(c)continue;break}d:{if((b|0)==(e|0)|M[b+16>>2]>2147483655)break d;e:{f:{g:{b=J[b+20>>2];switch((Ab[J[J[b>>2]+8>>2]](b)|0)-1|0){case 2:break e; -case 1:break f;case 0:break g;default:break d}}J[J[a>>2]+20>>2]=b+4;break d}J[J[a>>2]+28>>2]=b+4;break d}J[J[a>>2]+24>>2]=b+4}c=J[e>>2];if(!c)break c;b=e;while(1){d=J[c+16>>2]>=0;b=d?b:c;c=J[(d?c+4|0:c)>>2];if(c)continue;break}if((b|0)==(e|0)|M[b+16>>2]>2147483648)break c;h:{i:{j:{b=J[b+20>>2];switch((Ab[J[J[b>>2]+8>>2]](b)|0)-1|0){case 2:break h;case 1:break i;case 0:break j;default:break c}}J[J[a>>2]+20>>2]=b+4;return}J[J[a>>2]+28>>2]=b+4;return}J[J[a>>2]+24>>2]=b+4}return}a=Z()|0;Kb(b);ba(a|0); -B()}function noa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=xb-16|0;xb=h;d=J[a+712>>2];J[h+12>>2]=0;a:{if(!d)break a;f=J[d+3092>>2];if(!f){f=tc(J[a+100>>2],32,h+12|0);c=J[h+12>>2];if(c)break a;a=0;e=J[d+1372>>2];g=0;b:{if((e|0)==65535)break b;if(e>>>0>=391){e=e-391|0;g=0;if(e>>>0>=M[d+1356>>2])break b;g=J[J[d+1360>>2]+(e<<2)>>2];break b}c=J[d+3084>>2];g=0;if(!c)break b;g=Ab[J[c+20>>2]](e)|0}J[f>>2]=g;c=J[d+1376>>2];c:{if((c|0)==65535)break c;if(c>>>0>=391){c=c-391|0;if(c>>>0>=M[d+1356>>2])break c; -a=J[J[d+1360>>2]+(c<<2)>>2];break c}e=J[d+3084>>2];if(!e)break c;a=Ab[J[e+20>>2]](c)|0}J[f+4>>2]=a;a=0;e=J[d+1384>>2];g=0;d:{if((e|0)==65535)break d;if(e>>>0>=391){e=e-391|0;g=0;if(e>>>0>=M[d+1356>>2])break d;g=J[J[d+1360>>2]+(e<<2)>>2];break d}c=J[d+3084>>2];g=0;if(!c)break d;g=Ab[J[c+20>>2]](e)|0}J[f+8>>2]=g;c=J[d+1388>>2];e:{if((c|0)==65535)break e;if(c>>>0>=391){c=c-391|0;if(c>>>0>=M[d+1356>>2])break e;a=J[J[d+1360>>2]+(c<<2)>>2];break e}e=J[d+3084>>2];if(!e)break e;a=Ab[J[e+20>>2]](c)|0}J[f+ -12>>2]=a;c=0;a=J[d+1392>>2];f:{if((a|0)==65535)break f;if(a>>>0>=391){a=a-391|0;if(a>>>0>=M[d+1356>>2])break f;c=J[J[d+1360>>2]+(a<<2)>>2];break f}e=J[d+3084>>2];if(!e)break f;c=Ab[J[e+20>>2]](a)|0}J[f+16>>2]=c;J[f+20>>2]=J[d+1400>>2];H[f+24|0]=K[d+1396|0];I[f+26>>1]=J[d+1404>>2];I[f+28>>1]=J[d+1408>>2];J[d+3092>>2]=f;c=J[h+12>>2]}a=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=a;a=J[f+28>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=a;a=J[f+20>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=a;a=J[f+12>>2];J[b+8>>2]=J[f+8>>2]; -J[b+12>>2]=a}xb=h+16|0;return c|0}function Xea(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;h=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<-1)break a;l=J[a+28>>2];f=(h<<1)-l|0;if((f|0)<=0)break a;g=c-4|0;k=e+2|0;m=k&3;b=0;if(e+1>>>0>=3){n=k&-4;k=0;while(1){e=b<<2;j=l+J[e+g>>2]|0;Nb(j,K[j-1|0],f);j=l+J[g+(e|4)>>2]|0;Nb(j,K[j-1|0],f);j=l+J[g+(e|8)>>2]|0;Nb(j,K[j-1|0],f);e=l+J[g+(e|12)>>2]|0;Nb(e,K[e-1|0],f);b=b+4|0;k=k+4|0;if((n|0)!=(k|0))continue;break}}if(m)while(1){e= -l+J[g+(b<<2)>>2]|0;Nb(e,K[e-1|0],f);b=b+1|0;i=i+1|0;if((m|0)!=(i|0))continue;break}e=J[a+272>>2]}if((e|0)>0){b=J[a+228>>2];k=b<<4;n=P(b,-80)+16384|0;l=h-2|0;m=0;j=0;while(1){b=m<<2;i=J[(b|4)+c>>2];f=b+c|0;b=J[f>>2];e=K[i|0]+K[b|0]|0;h=J[(j<<2)+d>>2];g=J[f-4>>2];o=K[g|0];m=m+2|0;f=J[(m<<2)+c>>2];p=K[f|0];H[h|0]=(P(n,K[i+1|0]+(e+K[b+1|0]|0)|0)+P(k,(((o+p|0)+K[g+2|0]|0)+K[f+2|0]|0)+(K[i+2|0]+(K[b+2|0]+(K[f+1|0]+(p+(K[g+1|0]+(e+o|0)|0)|0)|0)|0)<<1)|0)|0)+32768>>>16;e=h+1|0;b=b+2|0;f=f+2|0;g=g+2|0;h=i+ -2|0;i=l;if(i)while(1){H[e|0]=(P(n,K[h+1|0]+(K[h|0]+(K[b+1|0]+K[b|0]|0)|0)|0)+P(k,K[f+2|0]+(K[f-1|0]+((K[g+2|0]+K[g-1|0]|0)+(K[h+2|0]+(K[h-1|0]+(K[b+2|0]+(K[b-1|0]+(K[f+1|0]+(K[f|0]+(K[g+1|0]+K[g|0]|0)|0)|0)|0)|0)|0)<<1)|0)|0)|0)|0)+32768>>>16;e=e+1|0;f=f+2|0;g=g+2|0;h=h+2|0;b=b+2|0;i=i-1|0;if(i)continue;break}p=e;i=K[h+1|0]+K[b+1|0]|0;e=K[f+1|0];o=K[g+1|0];H[p|0]=(P(n,K[h|0]+(i+K[b|0]|0)|0)+P(k,(K[f-1|0]+(K[g-1|0]+(e+o|0)|0)|0)+(K[h-1|0]+(K[b-1|0]+(e+(K[f|0]+(o+(i+K[g|0]|0)|0)|0)|0)|0)<<1)|0)|0)+ -32768>>>16;j=j+1|0;if(J[a+272>>2]>(m|0))continue;break}}}function HD(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=xb-272|0;xb=g;d=J[a+200>>2];if(d&1){a:{if(d&4){Wb(a,259553);mc(a,c);break a}if(d&2){Wb(a,259577);d=J[a+200>>2]}if(!(!(d&16384)&(!b|!(K[b+9|0]&24)))){Wb(a,259645);mc(a,c);break a}J[a+200>>2]=d|16384;cc(a,J[a+740>>2]);d=Zd(a,c+1|0);J[a+740>>2]=d;Gd(a,d,c);Fc(a,d,c);e=mc(a,0);d=J[a+740>>2];if(e){cc(a,d);J[a+740>>2]=0;break a}H[c+d|0]=0;e=J[a+740>>2];d=e;while(1){f=d;d=d+1|0;if(K[f| -0])continue;break}if(!((c+e|0)-1>>>0>d>>>0?c:0)){cc(a,e);J[a+740>>2]=0;Wb(a,259702);break a}d=f+2|0;if(K[f+1|0]){Wb(a,259723);e=J[a+740>>2]}f=c;c=d-e|0;Cr(a,0,f,c,g+268|0);d=J[a+740>>2];b:{e=J[g+268>>2];if(e>>>0>=c>>>0){e=e-c|0;if(e>>>0>3)break b}cc(a,d);J[a+740>>2]=0;Wb(a,259771);break a}j=c+d|0;c=j;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(h>>>0>e>>>0){cc(a,d);J[a+740>>2]=0;aE(g,1,h);aE(g,2,e);$i(a,g,259814);break a}f=d;e=xb-80|0;xb=e;c:{if(!a| -!b|(!d|!j))break c;c=e;k=1;d=K[d|0];d:{if(!d)break d;l=1;while(1){m=0;k=d>>>0<161&(d-127&255)>>>0<162;e:{if(k){m=1;if(l)break e;d=32}H[c|0]=d;i=i+1|0;c=c+1|0}f=f+1|0;d=K[f|0];if(!d)break d;l=m;if(i>>>0<79)continue;break}}d=c;c=(i|0)!=0&k;H[d-c|0]=0;c=i-c|0;if(!c){Wb(a,257299);break c}c=c+1|0;d=Ed(a,c);if(!d){Wb(a,257321);break c}c=Mb(d,e,c);d=Ed(a,h);if(!d){cc(a,c);Wb(a,257421);break c}d=Mb(d,j,h);bi(a,b,16,0);H[b+208|0]=0;J[b+200>>2]=d;J[b+196>>2]=c;J[b+204>>2]=h;J[b+184>>2]=J[b+184>>2]|16;J[b+8>> -2]=J[b+8>>2]|4096}xb=e+80|0;cc(a,J[a+740>>2]);J[a+740>>2]=0}xb=g+272|0;return}gc(a,259510);B()}function xd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{d=J[b+4>>2];if(d){if(d>>>0>=134217728){J[195395]=0;ea(3140,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;B()}J[195395]=0;g=d<<5;c=_(1078,g|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break a;J[a+4>>2]=c;J[a>>2]=c;J[a+8>>2]=c+g;i=d-1&134217727;e=J[b>>2];d=d&3;b:{if(!d){b=e;break b}b=e;while(1){f=J[b+4>>2];J[c>>2]=J[b>>2]; -J[c+4>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;c=c+32|0;b=b+32|0;h=h+1|0;if((d|0)!=(h|0))continue;break}}if(i>>>0>=3){e=e+g|0;while(1){d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;d=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;d=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=d;d=J[b+52>>2];J[c+48>>2]=J[b+48>> -2];J[c+52>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d;d=J[b+92>>2];J[c+88>>2]=J[b+88>>2];J[c+92>>2]=d;d=J[b+84>>2];J[c+80>>2]=J[b+80>>2];J[c+84>>2]=d;d=J[b+76>>2];J[c+72>>2]=J[b+72>>2];J[c+76>>2]=d;d=J[b+68>>2];J[c+64>>2]=J[b+64>>2];J[c+68>>2]=d;d=J[b+100>>2];J[c+96>>2]=J[b+96>>2];J[c+100>>2]=d;d=J[b+108>>2];J[c+104>>2]=J[b+104>>2];J[c+108>>2]=d;d=J[b+116>>2];J[c+112>>2]=J[b+112>>2];J[c+116>>2]=d;d=J[b+124>>2];J[c+120>>2]=J[b+120>>2];J[c+124>> -2]=d;c=c+128|0;b=b+128|0;if((e|0)!=(b|0))continue;break}}J[a+4>>2]=c}return a}e=Z()|0;b=J[a>>2];if(b){J[a+4>>2]=b;Kb(b)}ba(e|0);B()}function gga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;t=xb-208|0;xb=t;q=J[a+332>>2];a=J[b+84>>2];b=t;while(1){i=J[a+160>>2];h=I[c+80>>1];o=J[a+32>>2];m=I[c+16>>1];r=J[a+96>>2];n=I[c+48>>1];j=P(I[c>>1],J[a>>2])<<13|1024;k=P(J[a+128>>2],I[c+64>>1]);f=P(J[a+192>>2],I[c+96>>1]);g=P(J[a+64>>2],I[c+32>>1]);p=f+ -g|0;J[b+84>>2]=j+P(k-p|0,11585)>>11;i=P(h,i);h=P(o,m);o=P(i+h|0,5027);p=j+P(p,10438)|0;m=P(k-f|0,7223);l=p+(m+P(f,-637)|0)|0;f=P(n,r);r=P(f+h|0,7663);h=P(h-f|0,1395);n=o+(r-h|0)|0;J[b+168>>2]=l-n>>11;J[b>>2]=n+l>>11;l=P(g,-20239);g=P(g-k|0,2578);n=p+(l+g|0)|0;f=P(f+i|0,-11295);i=f+(o+P(i,15326)|0)|0;J[b+112>>2]=n-i>>11;J[b+56>>2]=i+n>>11;k=m+(g+(j+P(k,-15083)|0)|0)|0;f=f+(h+r|0)|0;J[b+140>>2]=k-f>>11;J[b+28>>2]=f+k>>11;b=b+4|0;a=a+4|0;c=c+2|0;s=s+1|0;if((s|0)!=7)continue;break}a=q+128|0;c=t;k=0;while(1){f= -J[c+16>>2];g=J[c+24>>2];j=P(f-g|0,7223);b=J[(k<<2)+d>>2]+e|0;i=J[c+12>>2];h=J[c+4>>2];q=P(i+h|0,7663);m=P(h-i|0,1395);l=h;h=J[c+20>>2];r=P(l+h|0,5027);n=(q-m|0)+r|0;s=j+P(g,-637)|0;o=(J[c>>2]<<13)+131072|0;l=g;g=J[c+8>>2];p=l+g|0;l=o+P(p,10438)|0;s=s+l|0;H[b|0]=K[a+(n+s>>>18&1023)|0];H[b+6|0]=K[a+(s-n>>>18&1023)|0];i=P(h+i|0,-11295);q=i+(m+q|0)|0;m=P(g-f|0,2578);j=j+(m+(o+P(f,-15083)|0)|0)|0;H[b+1|0]=K[a+(q+j>>>18&1023)|0];H[b+5|0]=K[a+(j-q>>>18&1023)|0];j=i+(r+P(h,15326)|0)|0;g=l+(m+P(g,-20239)| -0)|0;H[b+2|0]=K[a+(j+g>>>18&1023)|0];H[b+4|0]=K[a+(g-j>>>18&1023)|0];H[b+3|0]=K[a+(o+P(f-p|0,11585)>>>18&1023)|0];c=c+28|0;k=k+1|0;if((k|0)!=7)continue;break}xb=t+208|0}function Ana(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;a=rh(a,b);h=169776;a:{if((K[a|0]|K[a+1|0]<<8)!=256)break a;b=K[a+4|0]|K[a+5|0]<<8;h=169776;if(!b)break a;h=a+((b<<8|b>>>8)&65535)|0}a=K[h|0]|K[h+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>c>>>0)a=(h+P(c,6)|0)+2|0;else a=169776;a=K[a+4|0]|K[a+5|0]<< -8;if(a)h=h+((a<<8|a>>>8)&65535)|0;else h=169776;b:{c:{d:{e:{if(!d){i=K[h+2|0]|K[h+3|0]<<8;break e}i=K[h+2|0]|K[h+3|0]<<8;if(!i){if(!f)break c;break d}b=((i<<8|i>>>8)&65535)-1|0;m=h+4|0;f:{if(!f)while(1){l=J[(j<<2)+e>>2];k=0;a=b;while(1){c=a+k>>>1|0;g=P(c,6)+m|0;g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);g:{if(g>>>0<=l>>>0){if((g|0)==(l|0))break f;k=c+1|0;break g}a=c-1|0}if((a|0)>=(k|0))continue;break}j=j+1|0;if((j|0)!=(d|0))continue;break e}while(1){l= -J[(j<<2)+e>>2];k=0;a=b;while(1){c=a+k>>>1|0;g=P(c,6)+m|0;g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);h:{if(g>>>0>l>>>0){a=c-1|0;break h}if((g|0)==(l|0))break f;k=c+1|0}if((a|0)>=(k|0))continue;break}J[f>>2]=65535;j=j+1|0;if((j|0)!=(d|0))continue;break}break e}if(f)J[f>>2]=c;a=1;break b}i:{if(i){e=h+4|0;c=((i<<8|(i&65280)>>>8)&65535)-1|0;a=0;while(1){d=a+c>>>1|0;b=e+P(d,6)|0;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);j:{if((b<<24|(b&65280)<<8|(b>>> -8&65280|b>>>24))>>>0>=1684434037){c=d-1|0;break j}if((b|0)==1953261156)break i;a=d+1|0}if((a|0)<=(c|0))continue;break}}if(f)break d;break c}if(f)J[f>>2]=d;break c}J[f>>2]=65535}a=0}return a|0}function fw(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;i=xb-80|0;xb=i;h=J[a>>2];a:{if((h|0)<=0)break a;d=J[a+24>>2];e=P(b,204);j=J[a+16>>2];c=J[a+8>>2];k=c+P(h,40)|0;b=0;a=c;while(1){b=(J[a+16>>2]>>>4&1)+b|0;a=a+40|0;if(k>>>0>a>>>0)continue;break}if(!b)break a;m=J[(e+d|0)+200>>2];e=i+16|0;if(b>>> -0>=17){e=Tb(j,4,0,b,0,i+12|0);if(J[i+12>>2])break a}b:{if((h|0)<=0)break b;d=c;while(1){if(K[d+16|0]&16){a=(g<<2)+e|0;c:{if((g|0)<=0){b=a;break c}l=J[d+28>>2];while(1){b=a-4|0;f=J[b>>2];if((l|0)>=J[f+28>>2]){b=a;break c}J[a>>2]=f;a=b;if(e>>>0>>0)continue;break}}J[b>>2]=d;g=g+1|0}d=d+40|0;if(k>>>0>d>>>0)continue;break}if((h|0)<=0)break b;l=((g<<2)+e|0)-4|0;while(1){b=J[c+16>>2];d:{if(b&16)break d;a=J[c+12>>2];if(a&2){d=K[c+20|0];if(!(a&4|b&64)|((d|0)==4|(d|0)!=K[c+21|0]))break d;J[c+12>>2]=a&-3}e:{f:{if(g){b= -J[c+28>>2];a=0;g:{while(1){if((b|0)>2]+28>>2])break g;a=a+1|0;if((g|0)!=(a|0))continue;break}a=g}if(a)break f}a=J[e>>2];f=J[a+36>>2]+Rb(J[c+28>>2]-J[a+28>>2]|0,m)|0;break e}d=J[((a<<2)+e|0)-4>>2];b=g;while(1){a=b;if(a){b=a-1|0;if(J[J[(b<<2)+e>>2]+28>>2]>=J[c+28>>2])continue}break}if((a|0)==(g|0)){a=J[l>>2];f=J[a+36>>2]+Rb(J[c+28>>2]-J[a+28>>2]|0,m)|0;break e}b=J[c+28>>2];h=J[d+28>>2];f=J[d+36>>2];if((b|0)==(h|0))break e;a=J[(a<<2)+e>>2];f=J[a+28>>2];if((f|0)==(b|0)){f=J[a+36>>2];break e}n= -J[a+36>>2];a=J[d+36>>2];f=hc(b-h|0,n-a|0,f-h|0)+a|0}J[c+36>>2]=f;J[c+16>>2]=J[c+16>>2]|32}c=c+40|0;if(k>>>0>c>>>0)continue;break}}if((i+16|0)==(e|0))break a;if(e)Ab[J[j+8>>2]](j,e)}xb=i+80|0}function fE(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;j=xb-16|0;xb=j;e=J[a+400>>2];d=J[a+288>>2];if((d|0)>0)while(1){f=c<<2;d=J[(f+a|0)+292>>2];b=J[d+12>>2];t=f+j|0,u=Ab[J[J[a+4>>2]+32>>2]](a,J[((J[d+4>>2]<<2)+e|0)- -64>>2],P(b,J[e+8>>2]),b,0)|0,J[t>>2]=u; -c=c+1|0;d=J[a+288>>2];if((c|0)<(d|0))continue;break}b=J[e+20>>2];h=J[e+16>>2];a:{if((b|0)>(h|0)){p=e+24|0;c=J[a+308>>2];g=J[e+12>>2];while(1){if(c>>>0>g>>>0){while(1){k=0;f=0;m=J[a+288>>2];if((m|0)>0)while(1){b=k<<2;c=J[(b+a|0)+292>>2];n=J[c+60>>2];b:{if((n|0)<=0)break b;i=J[c+56>>2];if((i|0)<=0)break b;q=J[b+j>>2]+(h<<2)|0;o=i&7;l=0;r=P(g,i)<<7;s=i>>>0<8;while(1){c=J[(l<<2)+q>>2]+r|0;b=f;d=0;if(o)while(1){J[((b<<2)+e|0)+24>>2]=c;b=b+1|0;c=c+128|0;d=d+1|0;if((o|0)!=(d|0))continue;break}f=f+i|0;if(!s)while(1){d= -(b<<2)+e|0;J[d+28>>2]=c+128;J[d+24>>2]=c;J[d+32>>2]=c+256;J[d+36>>2]=c+384;J[d+40>>2]=c+512;J[d+44>>2]=c+640;J[d+48>>2]=c+768;J[d+52>>2]=c+896;c=c+1024|0;b=b+8|0;if((f|0)!=(b|0))continue;break}l=l+1|0;if((n|0)!=(l|0))continue;break}}k=k+1|0;if((m|0)!=(k|0))continue;break}if(!(Ab[J[J[a+420>>2]+4>>2]](a,p)|0)){J[e+12>>2]=g;J[e+16>>2]=h;a=0;break a}c=J[a+308>>2];g=g+1|0;if(c>>>0>g>>>0)continue;break}b=J[e+20>>2]}g=0;J[e+12>>2]=0;h=h+1|0;if((h|0)<(b|0))continue;break}d=J[a+288>>2]}J[e+8>>2]=J[e+8>>2]+ -1;b=J[a+400>>2];c:{if((d|0)>=2){J[b+20>>2]=1;break c}f=J[a+292>>2];if(M[b+8>>2]>2]-1>>>0){J[b+20>>2]=J[f+12>>2];break c}J[b+20>>2]=J[f+76>>2]}J[b+12>>2]=0;J[b+16>>2]=0;a=1}xb=j+16|0;return a|0}function XG(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{d=J[b+12>>2];e=J[b+4>>2];if(d>>>0>>0)break a;f=J[b+8>>2];if(f-a>>>0<12)break a;c=a+2|0;if(d>>>0>>0|f-c>>>0<2)break a;e=K[c|0]|K[c+1|0]<<8;b:{if(!e)break b;if(Ld(b,((e<<8|e>>>8)&65535)+a|0))break b;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]= -e+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}c=a+4|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;e=K[c|0]|K[c+1|0]<<8;c:{if(!e)break c;if(Ld(b,((e<<8|e>>>8)&65535)+a|0))break c;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}e=a+8|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-e>>>0<2)break a;c=K[e|0]|K[e+1|0]<<8;d:{if(!c)break d;e:{f=J[b+12>>2];c=((c<<8|c>>>8)&65535)+a|0;d=J[b+4>>2];if(f>>>0>>0)break e;g=J[b+8>>2];if(g-c>>>0<2)break e;h=f;f= -c+2|0;if(h>>>0>>0)break e;d=K[c|0]|K[c+1|0]<<8;d=((d<<8|d>>>8)&65535)<<2;if(d>>>0>g-f>>>0)break e;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break e;d=K[c|0]|K[c+1|0]<<8;if(!d)break d;d=(d<<8|d>>>8)&65535;f=d>>>0<=1?1:d;d=0;while(1){if(!WG((c+(d<<2)|0)+2|0,b,c))break e;d=d+1|0;if((f|0)!=(d|0))continue;break}break d}c=J[b+32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;if(!K[b+28|0])break a;H[e|0]=0;H[e+1|0]=0}c=a+10|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[a+6|0]|K[a+7|0]<<8;e= -1;f=K[c|0]|K[c+1|0]<<8;f:{if(!f)break f;if(VG(((f<<8|f>>>8)&65535)+a|0,b,(d<<8|d>>>8)&65535))break f;a=J[b+32>>2];if(a>>>0>31)break a;J[b+32>>2]=a+1;e=0;if(!K[b+28|0])break f;H[c|0]=0;H[c+1|0]=0;e=1}return e}return 0}function Nna(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;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=169776;J[b+16>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;e=J[a>>2];c=J[e+4>>2];d=J[e+8>>2];while(1){a:{g=d+1|0;k=g>>>0>c>>>0;if(k)break a;h=J[e>>2];f=K[h+d|0];J[e+8>>2]=g;b:{if((f|0)!=12)break b; -i=c;c=d+2|0;if(i>>>0>>0){f=65535;break b}d=K[g+h|0];J[e+8>>2]=c;f=d|256}c:{d:{e:{f:{g:{h:{if(f>>>0>21)break h;if(1<>2];i:{if(c){j=O[g+(c<<3)>>3];break i}H[g|0]=1;c=J[42445];h=J[42444];J[194120]=h;J[194121]=c;x(0,h|0);x(1,c|0);j=+z()}j:{if(R(j)<2147483648){c=~~j;break j}c=-2147483648}if((c|0)<0){H[g|0]=1;c=0}J[b+16>>2]=c;break f}c=f-265|0;if(c>>>0>10|!(1<>2]=0;break d}Ek(f,e);if(J[e+20>>2])break c}if(K[e+ -16|0]|M[e+8>>2]>M[e+4>>2])break c;d=J[b+4>>2];c=J[b+8>>2];k:{l:{if((d|0)>(c|0))break l;m:{if((d|0)>=0){g=c+1|0;if(g>>>0<=d>>>0)break l;c=d;while(1){c=((c>>>1|0)+c|0)+8|0;if(g>>>0>c>>>0)continue;break}if(c>>>0<=357913941){d=ic(J[b+12>>2],P(c,12));if(d)break m;d=J[b+4>>2];if(c>>>0<=d>>>0)break l}J[b+4>>2]=d^-1}J[194122]=J[42446];c=J[42445];J[194120]=J[42444];J[194121]=c;d=776480;break k}J[b+4>>2]=c;J[b+12>>2]=d}c=J[b+8>>2];J[b+8>>2]=c+1;d=J[b+12>>2]+P(c,12)|0;H[d+8|0]=0;J[d>>2]=0;J[d+4>>2]=65535}J[d+ -4>>2]=f;c=J[e+8>>2];f=J[e+4>>2];i=J[e>>2];e=J[b>>2];J[d>>2]=i+e;i=d;d=f-e|0;d=d>>>0<=f>>>0?d:0;e=c-e|0;H[i+8|0]=d>>>0>>0?d:e;J[b>>2]=c}e=J[a>>2];d=J[e+8>>2];c=J[e+4>>2];if(d>>>0>c>>>0)break a;if(!K[e+16|0])continue}break}return k|0}function dF(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return 0;d=Pb(552);J[d+176>>2]=0;J[d+116>>2]=8;J[d+104>>2]=0;Nb(d+192|0,0,72);J[d+264>>2]=0;J[d+248>>2]=0;J[d+252>>2]=1081073664;J[d+208>>2]=8;J[d+184>>2]=1;J[d+188>>2]=23;J[d+128>>2]=0;J[d+132>>2]=0;e=jF();J[d+276>> -2]=0;J[d+280>>2]=0;J[d+272>>2]=e;J[d>>2]=J[a>>2];O[d+136>>3]=O[a+136>>3];J[d+4>>2]=J[a+4>>2];e=J[a+76>>2];J[d+72>>2]=J[a+72>>2];J[d+76>>2]=e;f=a- -64|0;g=J[f+4>>2];e=d- -64|0;J[e>>2]=J[f>>2];J[e+4>>2]=g;e=J[a+60>>2];J[d+56>>2]=J[a+56>>2];J[d+60>>2]=e;e=J[a+52>>2];J[d+48>>2]=J[a+48>>2];J[d+52>>2]=e;e=J[a+44>>2];J[d+40>>2]=J[a+40>>2];J[d+44>>2]=e;e=J[a+36>>2];J[d+32>>2]=J[a+32>>2];J[d+36>>2]=e;e=J[a+28>>2];J[d+24>>2]=J[a+24>>2];J[d+28>>2]=e;e=J[a+20>>2];J[d+16>>2]=J[a+16>>2];J[d+20>>2]=e;e=J[a+12>> -2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=e;e=J[a+84>>2];J[d+80>>2]=J[a+80>>2];J[d+84>>2]=e;e=J[a+92>>2];J[d+88>>2]=J[a+88>>2];J[d+92>>2]=e;e=J[a+100>>2];J[d+96>>2]=J[a+96>>2];J[d+100>>2]=e;O[d+168>>3]=O[a+168>>3];J[d+108>>2]=c?c:J[a+108>>2];J[d+112>>2]=b?b:J[a+112>>2];J[d+288>>2]=J[a+288>>2];b=J[a+120>>2];J[d+144>>2]=0;J[d+120>>2]=b;O[d+152>>3]=O[a+152>>3];O[d+160>>3]=O[a+160>>3];J[d+268>>2]=J[a+268>>2];O[d+232>>3]=O[a+232>>3];O[d+224>>3]=O[a+224>>3];O[d+216>>3]=O[a+216>>3];b=J[a+124>>2];J[d+124>>2]=b;c= -J[a+264>>2];if(c){b=P(b,80);e=Qb(b+80|0);J[d+264>>2]=e;Mb(e,c,b)}b=J[a+272>>2];if(b){c=Qb(260);J[d+272>>2]=c;Mb(c,b,260)}b=J[a+128>>2];if(b)h=d,i=fF(b),J[h+128>>2]=i;b=J[a+132>>2];if(b)h=d,i=fF(b),J[h+132>>2]=i;J[d+276>>2]=J[a+276>>2];J[d+280>>2]=J[a+280>>2];return d}function Hfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;r=J[a+332>>2];b=J[b+84>>2];k=xb-128|0;a=k;l=4;while(1){a:{b:{f=L[c+32>>1];g=I[c+16>>1];if((f|g)&65535)break b; -f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;f=P(I[c>>1],J[b>>2])<<2;J[a+96>>2]=f;J[a+80>>2]=f;J[a+64>>2]=f;J[a+48>>2]=f;J[a+32>>2]=f;J[a+16>>2]=f;J[a>>2]=f;h=28;break a}m=P(J[b+192>>2],I[c+96>>1]);i=P(J[b+64>>2],f<<16>>16);f=P(m+i|0,4433);n=P(I[c+64>>1],J[b+128>>2])<<13;o=P(I[c>>1],J[b>>2])<<13|1024;s=n+o|0;t=f+P(i,6270)|0;p=s+t|0;g=P(g,J[b+32>>2]);i=P(J[b+224>>2],I[c+112>>1]);u=P(g+i|0,-7373);x=u+P(g,12299)|0;j=P(J[b+96>>2],I[c+48>>1]);v=j+i|0;h=g;g=P(J[b+ -160>>2],I[c+80>>1]);q=h+g|0;w=P(v+q|0,9633);q=w+P(q,-3196)|0;h=x+q|0;J[a+112>>2]=p-h>>11;J[a>>2]=p+h>>11;n=o-n|0;f=f+P(m,-15137)|0;m=n+f|0;o=P(v,-16069)+w|0;h=P(j,25172);j=P(g+j|0,-20995);p=o+(h+j|0)|0;J[a+96>>2]=m-p>>11;J[a+16>>2]=m+p>>11;f=n-f|0;g=q+(j+P(g,16819)|0)|0;J[a+80>>2]=f-g>>11;J[a+32>>2]=f+g>>11;f=o+(P(i,2446)+u|0)|0;g=s-t|0;J[a+48>>2]=f+g>>11;f=g-f>>11;h=16}J[(h<<2)+a>>2]=f;c=c+2|0;b=b+4|0;a=a+4|0;f=l>>>0>1;l=l-1|0;if(f)continue;break}a=r+128|0;c=k;l=0;while(1){f=J[c+12>>2];g=J[c+4>> -2];k=P(f+g|0,4433);b=J[(l<<2)+d>>2]+e|0;g=k+P(g,6270)|0;i=J[c+8>>2];j=J[c>>2]+16|0;r=i+j<<13;H[b|0]=K[a+(g+r>>>18&1023)|0];H[b+3|0]=K[a+(r-g>>>18&1023)|0];k=k+P(f,-15137)|0;f=j-i<<13;H[b+1|0]=K[a+(k+f>>>18&1023)|0];H[b+2|0]=K[a+(f-k>>>18&1023)|0];c=c+16|0;l=l+1|0;if((l|0)!=8)continue;break}}function nP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=Nb(a,0,656);J[a+56>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0; -J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a>>2]=J[b>>2];if(c){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=K[b+68|0]|K[b+69|0]<<8;e=K[b+70|0];J[a+540>>2]=b+1508;f=J[7609];J[a+52>>2]=J[7608];J[a+56>>2]=f;H[a+48|0]=c;H[a+47|0]=e;H[a+45|0]=d;H[a+46|0]=d>>>8;H[a+44|0]=0;J[a+604>>2]=J[b+1348>>2];J[a+584>>2]=J[b+1352>>2];J[a+580>>2]=J[b+1356>>2];J[a+588>> -2]=J[b+1472>>2];J[a+644>>2]=J[b+1468>>2];J[a+556>>2]=J[b+1364>>2];J[a+572>>2]=J[b+1368>>2];J[a+612>>2]=J[b+1372>>2];J[a+616>>2]=J[b+1376>>2];J[a+648>>2]=J[b+1496>>2];J[a+652>>2]=J[b+1500>>2];J[a+608>>2]=J[b+1360>>2];return}J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];c=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=c;c=J[b+64>>2];d=J[7609];J[a+52>>2]=J[7608];J[a+56>>2]=d;H[a+48|0]=0;J[a+44>>2]=c;c=J[b+108>> -2];J[a+532>>2]=c;J[a+540>>2]=c+3104;J[a+536>>2]=J[b+768>>2];J[a+560>>2]=J[b+732>>2];J[a+576>>2]=J[b+748>>2];J[a+568>>2]=J[b+740>>2];J[a+556>>2]=J[b+728>>2];J[a+572>>2]=J[b+744>>2];c=J[b+736>>2];J[a+544>>2]=b+584;J[a+564>>2]=c;H[a+548|0]=K[b+593|0];J[a+588>>2]=J[b+760>>2];J[a+596>>2]=J[b+772>>2];J[a+600>>2]=J[b+776>>2]}function pe(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;H[a+48|0]=K[b+48|0];d=J[a>>2];f=J[a+20>>2];if(!f){J[194124]=J[42448];e=J[42447];J[194122]=J[42446];J[194123]=e;e=J[42445]; -J[194120]=J[42444];J[194121]=e}c=J[b>>2];if(!J[b+20>>2]){J[194124]=J[42448];b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b}if(c>>>0>d>>>0){e=a;c=c-d|0;a:{if(!c)break a;J[a>>2]=J[a>>2]+P(J[a+4>>2],c);g=J[a+20>>2];if(!g)break a;b=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);h=J[a+24>>2];j=J[a+36>>2];k=J[a+40>>2];l=J[a+12>>2];d=J[a+8>>2];while(1){c=c-1|0;a=b;while(1){h=h+1|0;J[e+24>>2]=h;g=g-1|0;J[e+20>>2]=g;d=d+l|0;J[e+8>>2]=d;b=a+20|0;J[e+16>>2]=b;if(!g)break a; -f=a;a=b;b:{c:switch(K[f+38|0]-6|0){case 0:continue;case 8:break c;default:break b}f=J[J[j>>2]+68>>2];a=d;while(1){a=a+1|0;if(f>>>0<=a>>>0)break b;i=J[k>>2]+P(a,20)|0;if(K[i+18|0]==6)continue;break}a=b;if(1<>1]&7168)continue}break}if(c)continue;break}}return}d:{if(c>>>0>=d>>>0)break d;c=d-c|0;if(!c)break d;J[a>>2]=J[a>>2]-P(J[a+4>>2],c);if(!f)break d;g=J[a+16>>2];e=J[a+24>>2];h=J[a+36>>2];j=J[a+40>>2];k=J[a+12>>2];d=J[a+8>>2];while(1){c=c-1|0;b=e;while(1){d=d-k|0;J[a+8>>2]=d;if(b){e=b-1|0; -J[a+24>>2]=e;f=f+1|0;J[a+20>>2]=f;g=g-20|0;J[a+16>>2]=g;b=e}else b=0;if(K[g+18|0]==6?f:0)continue;e:{if(!f|K[g+18|0]!=14)break e;l=J[J[h>>2]+68>>2];b=d;while(1){b=b+1|0;if(l>>>0<=b>>>0)break e;i=J[j>>2]+P(b,20)|0;if(K[i+18|0]==6)continue;break}b=e;if(1<>1]&7168)continue}break}if(!f)break d;if(c)continue;break}}}function VH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=Q(0),g=Q(0),h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=K[a+2|0]|K[a+3|0]<<8;k=j&128;a:{b:{if(k){p=a+4|0;e=0;o=1;d=c;break b}o= -1;i=(j<<8|j>>>8)&4095;if(M[d+4>>2]>>0)break a;p=J[d>>2]+(P(c,i)<<1)|0;if(!e){e=0;d=c;break b}if(i>>>0>=M[e+4>>2])break a;d=J[e+8>>2]+(i<<3)|0;e=J[d>>2];d=J[d+4>>2];if((d|0)!=-1){o=d-e|0;d=d+1|0;break b}d=e+1|0;e=d?e:0;d=d?d:c}if(!(j&64)){f=Q(1);if(d>>>0<=e>>>0)break a;i=J[b>>2];c=J[42444];k=J[b+4>>2];while(1){g=f;a=(e<<1)+p|0;a=K[a|0]|K[a+1|0]<<8;c:{if(!a)break c;b=(a<<8|a>>>8)<<16>>16;d:{if(e>>>0>=k>>>0){J[194120]=c;a=c;break d}a=J[i+(e<<2)>>2]}if((b|0)==(a|0))break c;f=Q(0);if(!a|(a| -0)>(((b|0)>0?b:0)|0)|(a|0)<(b&b>>31))break a;f=Q(g*Q(Q(a|0)/Q(b|0)))}e=e+o|0;if(d>>>0>e>>>0)continue;break}break a}f=Q(1);if(d>>>0<=e>>>0)break a;r=(((k?c:0)<<1)+a|0)+4|0;j=r+(c<<1)|0;i=J[b>>2];c=J[42444];k=J[b+4>>2];while(1){g=f;h=e<<1;a=h+p|0;m=K[a|0]|K[a+1|0]<<8;f=g;e:{if(!m)break e;l=(m<<8|m>>>8)<<16>>16;f:{if(e>>>0>=k>>>0){J[194120]=c;a=c;break f}a=J[(e<<2)+i>>2]}f=g;if((l|0)==(a|0))break e;b=h+r|0;q=K[b|0]|K[b+1|0]<<8;n=(q<<8|q>>>8)<<16>>16;f=g;if((n|0)>(l|0))break e;b=h+j|0;b=K[b|0]|K[b+1| -0]<<8;h=(b<<8|b>>>8)<<16>>16;f=g;if((h|0)<(l|0))break e;f=g;if(!((h|0)<=0|(n|0)>=0))break e;f=Q(0);if((a|0)<(n|0)|(a|0)>(h|0))break a;if((a|0)<(l|0)){f=g;if((m|0)==(q|0))break e;f=Q(g*Q(Q(a-n|0)/Q(l-n|0)));break e}f=g;if((b|0)==(m|0))break e;f=Q(g*Q(Q(h-a|0)/Q(h-l|0)))}e=e+o|0;if(d>>>0>e>>>0)continue;break}}return Q(f)}function _ga(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,F=0,G=0,M=0,N=0,O=0,Q= -0,R=0,S=0;a:{if((d|0)>0){g=J[a+480>>2];o=J[a+112>>2];p=P(o,3);if(!o)break a;r=J[a+332>>2];e=J[a+136>>2];F=J[e+8>>2];G=J[e+4>>2];M=J[e>>2];s=J[g+40>>2];N=J[g+24>>2];O=o-1|0;Q=p-3|0;while(1){e=t<<2;k=J[e+c>>2];i=J[b+e>>2];b:{if(J[g+36>>2]){k=k+O|0;i=i+Q|0;l=-3;y=-1;f=0;e=(J[g+32>>2]+(p<<1)|0)+6|0;break b}l=3;f=1;y=1;e=J[g+32>>2]}J[g+36>>2]=f;m=0;R=l+1<<1;S=l+2<<1;j=0;n=0;z=0;A=0;B=0;u=0;v=0;w=0;x=o;while(1){C=(l<<1)+e|0;m=K[K[i|0]+(J[((I[C>>1]+m|0)+8>>4<<2)+s>>2]+r|0)|0];h=m>>>3|0;j=K[K[i+1|0]+(J[((I[e+ -R>>1]+j|0)+8>>4<<2)+s>>2]+r|0)|0];q=j>>>2|0;n=K[K[i+2|0]+(J[((I[e+S>>1]+n|0)+8>>4<<2)+s>>2]+r|0)|0];D=n>>>3|0;E=(J[(h<<2)+N>>2]+(q<<6)|0)+(D<<1)|0;f=L[E>>1];if(!f){rE(a,h,q,D);f=L[E>>1]}f=(f&65535)-1|0;H[k|0]=f;q=K[f+M|0];h=K[f+G|0];f=n-K[f+F|0]|0;I[e+4>>1]=P(f,3)+w;h=j-h|0;I[e+2>>1]=P(h,3)+v;j=e;e=m-q|0;I[j>>1]=P(e,3)+u;k=k+y|0;i=i+l|0;n=P(f,7);j=P(h,7);m=P(e,7);w=P(f,5)+B|0;v=P(h,5)+A|0;u=P(e,5)+z|0;z=e;A=h;B=f;e=C;x=x-1|0;if(x)continue;break}I[e+4>>1]=w;I[e+2>>1]=v;I[e>>1]=u;t=t+1|0;if((t|0)!= -(d|0))continue;break}}return}a=J[g+36>>2];if((d|0)!=1){c=J[g+32>>2];e=(c+(p<<1)|0)+6|0;b=a?c:e;c=a?e:c;e=d&-2;while(1){I[c+4>>1]=0;I[c>>1]=0;I[c+2>>1]=0;I[b+4>>1]=0;I[b>>1]=0;I[b+2>>1]=0;f=f+2|0;if((e|0)!=(f|0))continue;break}a=(a|0)!=0}if(d&1){b=J[g+32>>2];b=a?(b+(p<<1)|0)+6|0:b;I[b+4>>1]=0;I[b>>1]=0;I[b+2>>1]=0;a=!a}J[g+36>>2]=a}function jpa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=J[b+32>>2];J[195395]=0;e=ca(683,e|0,c|0)|0;f=J[195395];J[195395]=0;a:{if((f|0)==1)break a;b:{c:{if(e)break c; -d:{if(!K[b+4|0])break d;a=J[a+24>>2];J[195395]=0;a=_(684,a+72|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break a;e:{f:{a=(K[a|0]|K[a+1|0]<<8?0:(K[a+62|0]|K[a+63|0]<<8)<<8)&65280;if(a){if((a|0)==45568)break f;if((a|0)!=45824)break d;if(c>>>0<=65276)a=L[(K[(K[((K[(c>>>11|0)+115192|0]>>>(c>>>8&4)<<4&240|c>>>6&14)>>>1|0)+115224|0]>>>(c>>>4&4)<<4&240|c>>>2&15)+115264|0]<<3|(c&3)<<1)+110912>>1];else a=0;break e}if(c>>>0>255)break d;a=c+61440|0;break e}if(c>>>0<=65276)a=L[(K[(c>>>3&15|K[((K[(c>>>13|0)+115056| -0]>>>(c>>>10&6)<<4&48|c>>>7&14)>>>1|0)+115064|0]>>>(c>>>5&4)<<4&240)+115096|0]<<4|(c&7)<<1)+110272>>1];else a=0}e=J[b+32>>2];J[195395]=0;e=ca(683,e|0,a|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;if(e)break c}f=0;a=J[b+32>>2];g:{if(!a)break g;b=J[a+92>>2];if(!b)break g;f=J[b+4>>2]}if(J[a+36>>2]>0){b=0;while(1){g=0;e=J[J[a+40>>2]+(b<<2)>>2];if(!L[e+10>>1])g=L[e+8>>1]==3;J[195395]=0;e=ca(685,a|0,e|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;if(!e){J[195395]=0;e=ca(683,a|0,c|0)|0;h=J[195395]; -J[195395]=0;if((h|0)==1)break a;if(!e&g){J[195395]=0;e=ca(683,a|0,61440)|0;g=J[195395];J[195395]=0;if((g|0)==1)break a}if(e)break c}b=b+1|0;if((b|0)>2])continue;break}}e=0;J[195395]=0;di(a,f);a=J[195395];J[195395]=0;if((a|0)==1)break a;break b}J[d>>2]=e;e=1}td();return e|0}a=Z()|0;td();ba(a|0);B()}function Jda(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){mc(a,0);while(1){d=Tn(a);a:{b:{c=J[a+348>>2];if((c|0)!=1229278788){if((c|0)!=1229472850)break b;OD(a,b,d);break a}MD(a,d);break a}c:{if(Fl(a,c)){if((c| -0)==1229209940){if(!(d|K[a+201|0]&32))break c;Lr(a,254947);break c}Dl(a,b,d);if((c|0)!=1347179589)break a;J[a+200>>2]=J[a+200>>2]|2;break a}d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((c|0)<=1883455819){if((c|0)<=1732332864){if((c|0)<=1649100611){if((c|0)==1229209940)break n;if((c|0)!=1347179589)break c;ND(a,b,d);break a}if((c|0)==1649100612)break m;if((c|0)!=1665684045)break c;JD(a,b,d);break a}if((c|0)<=1766015823){if((c|0)==1732332865)break l;if((c|0)!=1749635924)break c;DD(a,b,d);break a}if((c|0)==1766015824)break g; -if((c|0)==1767135348)break d;if((c|0)!=1866876531)break c;BD(a,b,d);break a}if((c|0)<=1934772033){if((c|0)<=1933723987){if((c|0)==1883455820)break k;if((c|0)!=1883789683)break c;CD(a,b,d);break a}if((c|0)==1933723988)break i;if((c|0)==1933787468)break j;if((c|0)!=1934642260)break c;GD(a,b,d);break a}if((c|0)<=1950960964){if((c|0)==1934772034)break h;if((c|0)!=1950701684)break c;wD(a,b,d);break a}if((c|0)==1950960965)break f;if((c|0)==1951551059)break e;if((c|0)!=2052348020)break c;vD(a,b,d);break a}if(d| -K[a+201|0]&32)Lr(a,254947);mc(a,d);break a}ED(a,b,d);break a}LD(a,b,d);break a}AD(a,b,d);break a}zD(a,b,d);break a}KD(a,b,d);break a}ID(a,b,d);break a}HD(a,b,d);break a}yD(a,b,d);break a}FD(a,b,d);break a}uD(a,b,d);break a}Dl(a,b,d)}if(!(K[a+200|0]&16))continue;break}}}function xga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=J[a+464>>2];if(J[a+280>>2]){d=J[e+52>>2];if(!d){if(!(Ab[J[J[a+460>>2]+8>>2]](a)|0)){d=J[a>>2];J[d+20>>2]=25;Ab[J[d>>2]](a)}if(J[a+336>>2]>0)while(1){d=f<<2;g=J[(d+a|0)+340>>2]; -a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[(e+(J[g+20>>2]<<2)|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+ -34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;d=e+d|0;J[d+36>>2]=0;J[d+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Nb(J[(e+(J[g+24>>2]<<2)|0)+120>>2],0,256)}f= -f+1|0;if((f|0)>2])continue;break}J[e+16>>2]=-16;J[e+8>>2]=0;J[e+12>>2]=0;d=J[a+280>>2]}J[e+52>>2]=d-1}if(J[a+364>>2]>0){g=e+184|0;e=1<>2];f=0;while(1){if(lc(a,g)){d=J[(f<<2)+b>>2];I[d>>1]=e|L[d>>1]}f=f+1|0;if((f|0)>2])continue;break}}return 1}function fT(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;var h=0,i=0,j=0,k=0;a=xb-144|0;xb=a;J[a+136>>2]=c;J[a+140>>2]=b;J[a+20>>2]=3689;j=a+20|0;i=Id(a+24|0,a+32|0,j);J[195395]=0;b=a+16|0;h=J[e+28>>2];J[b>>2]=h;J[h+4>> -2]=J[h+4>>2]+1;h=J[195395];J[195395]=0;a:{b:{c:{d:{if((h|0)!=1){J[195395]=0;h=_(3535,b|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break b;H[a+15|0]=0;e=J[e+4>>2];J[195395]=0;b=Fa(3690,a+140|0,c|0,d|0,b|0,e|0,f|0,a+15|0,h|0,i|0,j|0,a+132|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;if(!b)break c;b=xb-16|0;xb=b;e:{if(K[g+11|0]>>>7|0){c=J[g>>2];H[b+15|0]=0;H[c|0]=K[b+15|0];J[g+4>>2]=0;break e}H[b+14|0]=0;H[g|0]=K[b+14|0];H[g+11|0]=K[g+11|0]&128;H[g+11|0]=K[g+11|0]&127}xb=b+16|0;if(!K[a+15|0])break d; -J[195395]=0;b=ca(3669,h|0,45)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;$(3557,g|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)break d;break b}c=Z()|0;break a}J[195395]=0;b=ca(3669,h|0,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[i>>2];d=J[a+20>>2];e=d-1|0;b=b&255;while(1){if(!((b|0)!=K[c|0]|c>>>0>=e>>>0)){c=c+1|0;continue}break}J[195395]=0;aa(3699,g|0,c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break c;break b}J[195395]=0;b=ca(3629,a+140|0,a+136|0)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break b;if(b)J[f>>2]=J[f>>2]|2;d=J[a+140>>2];b=J[a+16>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)Ab[J[J[b>>2]+8>>2]](b);Ic(i);xb=a+144|0;return d|0}c=Z()|0;a=J[a+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a)}Ic(i);ba(c|0);B()}function wo(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=xb-32|0;xb=g;a:{if(K[b+16|0]&16)break a;h=J[b+156>>2];if(!(K[b+144|0]&64)){if(!h)break a;nc(b,a,105087,0);break a}if(h)if(!nc(b,a,105435,0))break a;J[g+28>>2]=0;h=J[a+116>> -2];j=J[h+28>>2];k=J[a+120>>2];l=g+28|0;h=J[h+12>>2];if(h)h=J[h+8>>2];else h=0;l=Ab[j|0](a,k,9676,l,h)|0;b:{if(!l)break b;m=J[g+28>>2];J[b+72>>2]=0;J[b+64>>2]=0;I[b+62>>1]=1;J[b+84>>2]=J[b+80>>2];J[b+64>>2]=0;k=J[b+68>>2];c:{if(!k)break c;n=(f|0)!=-1?f:0;if((e|0)==-1){e=0;while(1){if(!K[b+60|0])break c;h=J[b+80>>2]+P(i,20)|0;f=K[h+15|0];d:{if(!((f|0)!=(e|0)&(f&15)==(c|0))){zk(b);break d}J[g+8>>2]=m;I[g+18>>1]=0;I[g+20>>1]=0;I[g+22>>1]=0;I[g+24>>1]=0;J[g+12>>2]=0;J[g+16>>2]=0;H[g+27|0]=n;H[g+26|0]= -d;J[g+16>>2]=J[h+8>>2];J[g+12>>2]=J[h+4>>2];H[g+23|0]=K[h+15|0];dG(b,g+8|0);e=f}i=J[b+64>>2];if(i>>>0>2])continue;break}break c}f=0;while(1){if(!K[b+60|0])break c;j=J[b+80>>2]+P(i,20)|0;h=K[j+15|0];e:{if(!((h|0)==(f|0)|(h&15)!=(c|0))){J[g+8>>2]=m;I[g+18>>1]=0;I[g+20>>1]=0;I[g+22>>1]=0;I[g+24>>1]=0;J[g+12>>2]=0;J[g+16>>2]=0;H[g+27|0]=n;H[g+26|0]=d;J[g+16>>2]=J[j+8>>2];J[g+12>>2]=J[j+4>>2];H[g+23|0]=K[j+15|0];f:{if(i>>>0>=k>>>0)break f;while(1){if(!K[b+60|0])break f;f=J[b+80>>2]+P(i,20)|0;if((h| -0)!=K[f+15|0]|K[f+18|0]!=(e|0))break f;zk(b);i=J[b+64>>2];if(i>>>0>2])continue;break}}dG(b,g+8|0);f=h;break e}zk(b)}i=J[b+64>>2];k=J[b+68>>2];if(i>>>0>>0)continue;break}}hf(b);if(!J[b+156>>2])break b;nc(b,a,105655,0)}i=(l|0)!=0}xb=g+32|0;return i}function ona(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=b;d=J[b+12>>2];J[a+4>>2]=d;f=J[b+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0>67108863)e=1073741823;else{e= -f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;b:{if(!d)break b;c:{d:{e:{f:{g:{if(f>>>0<4)break g;if((K[d|0]|K[d+1|0]<<8)!=256)break f;if(et(d,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break g;while(1){H[a+28|0]=1;c=J[a+36>>2];d=J[c+12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0<=67108863){e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}else e=1073741823; -J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;if(!d)break b;if(f>>>0<4)break g;if((K[d|0]|K[d+1|0]<<8)!=256)break f;if(et(d,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;c=1;h:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-d>>>0<4)break h;c=0;if((K[d|0]|K[d+1|0]<<8)!=256)break h;c=et(d,a)^1}d=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0; -J[a+4>>2]=0;J[a+8>>2]=0;if(d)break e;if(!c)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function lna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=b;d=J[b+12>>2];J[a+4>>2]=d;f=J[b+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0>67108863)e=1073741823;else{e=f<<6;e=e>>>0<= -16384?16384:e;e=e>>>0>=1073741823?1073741823:e}J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;b:{if(!d)break b;c:{d:{e:{f:{g:{if(f>>>0<4)break g;if((K[d|0]|K[d+1|0]<<8)!=256)break f;if(dt(d,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break g;while(1){H[a+28|0]=1;c=J[a+36>>2];d=J[c+12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0<=67108863){e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}else e=1073741823;J[a+16>> -2]=e;J[a+24>>2]=0;J[a>>2]=0;if(!d)break b;if(f>>>0<4)break g;if((K[d|0]|K[d+1|0]<<8)!=256)break f;if(dt(d,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;c=1;h:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-d>>>0<4)break h;c=0;if((K[d|0]|K[d+1|0]<<8)!=256)break h;c=dt(d,a)^1}d=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]= -0;J[a+8>>2]=0;if(d)break e;if(!c)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function PJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=b;d=J[b+12>>2];J[a+4>>2]=d;f=J[b+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0>67108863)e=1073741823;else{e=f<<6;e=e>>>0<=16384?16384: -e;e=e>>>0>=1073741823?1073741823:e}J[a+16>>2]=e;J[a+24>>2]=0;J[a>>2]=0;b:{if(!d)break b;c:{d:{e:{f:{g:{if(f>>>0<4)break g;if((K[d|0]|K[d+1|0]<<8)!=256)break f;if(cp(d,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break g;while(1){H[a+28|0]=1;c=J[a+36>>2];d=J[c+12>>2];J[a+4>>2]=d;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=d+f;J[a+32>>2]=0;if(f>>>0<=67108863){e=f<<6;e=e>>>0<=16384?16384:e;e=e>>>0>=1073741823?1073741823:e}else e=1073741823;J[a+16>>2]=e;J[a+24>> -2]=0;J[a>>2]=0;if(!d)break b;if(f>>>0<4)break g;if((K[d|0]|K[d+1|0]<<8)!=256)break f;if(cp(d,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;c=1;h:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-d>>>0<4)break h;c=0;if((K[d|0]|K[d+1|0]<<8)!=256)break h;c=cp(d,a)^1}d=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]= -0;if(d)break e;if(!c)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function _S(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;var h=0,i=0,j=0,k=0;a=xb-448|0;xb=a;J[a+440>>2]=c;J[a+444>>2]=b;J[a+20>>2]=3689;j=a+20|0;i=Id(a+24|0,a+32|0,j);J[195395]=0;b=a+16|0;h=J[e+28>>2];J[b>>2]=h;J[h+4>>2]=J[h+4>>2]+1;h=J[195395];J[195395]=0;a:{b:{c:{d:{if((h| -0)!=1){J[195395]=0;h=_(3551,b|0)|0;k=J[195395];J[195395]=0;if((k|0)==1)break b;H[a+15|0]=0;e=J[e+4>>2];J[195395]=0;b=Fa(3701,a+444|0,c|0,d|0,b|0,e|0,f|0,a+15|0,h|0,i|0,j|0,a+432|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;if(!b)break c;b=xb-16|0;xb=b;e:{if(K[g+11|0]>>>7|0){c=J[g>>2];J[b+12>>2]=0;J[c>>2]=J[b+12>>2];J[g+4>>2]=0;break e}J[b+8>>2]=0;J[g>>2]=J[b+8>>2];H[g+11|0]=K[g+11|0]&128;H[g+11|0]=K[g+11|0]&127}xb=b+16|0;if(!K[a+15|0])break d;J[195395]=0;b=ca(3552,h|0,45)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break b;J[195395]=0;$(1811,g|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)break d;break b}c=Z()|0;break a}J[195395]=0;b=ca(3552,h|0,48)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[i>>2];d=J[a+20>>2];e=d-4|0;while(1){if(!((b|0)!=J[c>>2]|c>>>0>=e>>>0)){c=c+4|0;continue}break}J[195395]=0;aa(3707,g|0,c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break c;break b}J[195395]=0;b=ca(3657,a+444|0,a+440|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;if(b)J[f>>2]=J[f>>2]|2;d=J[a+444>>2]; -b=J[a+16>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)Ab[J[J[b>>2]+8>>2]](b);Ic(i);xb=a+448|0;return d|0}c=Z()|0;a=J[a+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a)}Ic(i);ba(c|0);B()}function mea(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,u=0,v=0;k=xb-32|0;j=a;while(1){a:{d=J[(e<<2)+b>>2]+c|0;g=K[d+6|0];f=j;l=K[d+5|0];m=K[d+3|0];j=l+m|0;n=K[d+2|0];h=n+g|0;o=K[d+8|0];p=K[d|0];i=o+p|0;q=j+(h+i|0)|0;r=K[d+7|0];s=K[d+1|0]; -t=r+s|0;u=K[d+4|0];v=t+u|0;J[f>>2]=(q+v<<1)-2304;d=p-o|0;g=n-g|0;l=m-l|0;J[f+12>>2]=P(d-(g+l|0)|0,10033)+2048>>12;J[f+24>>2]=P(q-(v<<1)|0,5793)+2048>>12;n=P(j-i|0,2012);i=P(i-h|0,10887)+2048|0;m=P(t-(u<<1)|0,5793);J[f+16>>2]=(n+i|0)-m>>12;J[f+8>>2]=m+(i+P(h-j|0,8875)|0)>>12;i=P(g-l|0,11409);h=P(d+l|0,3962);j=P(s-r|0,10033);J[f+28>>2]=(i+(h-j|0)|0)+2048>>12;d=P(d+g|0,7447);J[f+20>>2]=(d-(j+i|0)|0)+2048>>12;J[f+4>>2]=(h+(d+j|0)|0)+2048>>12;g=e-7|0;e=e+1|0;j=k;d=7;b:switch(g|0){case 0:continue;case 1:break a; -default:break b}j=f+32|0;continue}break}while(1){e=J[a>>2];g=J[j>>2];b=e-g|0;k=J[a+64>>2];h=J[a+192>>2];c=k-h|0;i=J[a+96>>2];l=J[a+160>>2];f=i-l|0;J[a+96>>2]=P(b-(c+f|0)|0,15855)+16384>>15;k=h+k|0;e=e+g|0;g=i+l|0;h=(k+e|0)+g|0;i=J[a+128>>2];l=J[a+224>>2];m=J[a+32>>2];n=l+m|0;o=i+n|0;J[a+192>>2]=P(h-(o<<1)|0,9154)+16384>>15;J[a>>2]=P(h+o|0,12945)+16384>>15;o=P(g-e|0,3179);e=P(e-k|0,17203)+16384|0;h=P(n-(i<<1)|0,9154);J[a+128>>2]=(o+e|0)-h>>15;J[a+64>>2]=h+(e+P(k-g|0,14024)|0)>>15;e=P(b+f|0,6262);k= -P(m-l|0,15855);f=P(c-f|0,18029);J[a+224>>2]=((e-k|0)+f|0)+16384>>15;b=P(b+c|0,11768);J[a+160>>2]=(b-(f+k|0)|0)+16384>>15;J[a+32>>2]=(e+(b+k|0)|0)+16384>>15;b=d;d=d-1|0;j=j+4|0;a=a+4|0;if(b)continue;break}}function rD(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{c=K[a+9|0];if(c>>>0<8)break a;d=K[a+8|0];if(d&2)break a;e=J[a>>2];b:{c:switch(d|0){case 0:if((c|0)==8){if(!e)break b;b=(b+e|0)-1|0;c=b+(e<<1)|0;if((e|0)!=1){g=e&-2;d=0;while(1){f=K[b|0];H[c-1|0]=f;H[c|0]=f;H[c-2|0]=K[b|0];f=b-1|0;h=K[f|0];H[c-4|0]= -h;H[c-3|0]=h;H[c-5|0]=K[f|0];c=c-6|0;b=b-2|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(e&1))break b;d=K[b|0];H[c-1|0]=d;H[c|0]=d;H[c-2|0]=K[b|0];break b}if(!e)break b;b=((e<<1)+b|0)-1|0;c=b+(e<<2)|0;d=0;while(1){H[c|0]=K[b|0];g=b-1|0;H[c-1|0]=K[g|0];H[c-2|0]=K[b|0];H[c-3|0]=K[g|0];H[c-4|0]=K[b|0];H[c-5|0]=K[g|0];c=c-6|0;b=b-2|0;d=d+1|0;if((d|0)!=(e|0))continue;break}break b;case 4:break c;default:break b}if((c|0)==8){if(!e)break b;c=e<<1;b=(c+b|0)-1|0;c=b+c|0;if((e|0)!=1){g=e&-2;d=0;while(1){H[c| -0]=K[b|0];f=b-1|0;h=K[f|0];H[c-2|0]=h;H[c-1|0]=h;H[c-3|0]=K[f|0];H[c-4|0]=K[b-2|0];f=b-3|0;h=K[f|0];H[c-6|0]=h;H[c-5|0]=h;H[c-7|0]=K[f|0];c=c-8|0;b=b-4|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(e&1))break b;H[c|0]=K[b|0];b=b-1|0;d=K[b|0];H[c-2|0]=d;H[c-1|0]=d;H[c-3|0]=K[b|0];break b}if(!e)break b;c=e<<2;b=(c+b|0)-1|0;c=b+c|0;d=0;while(1){H[c|0]=K[b|0];H[c-1|0]=K[b-1|0];g=b-2|0;H[c-2|0]=K[g|0];f=b-3|0;H[c-3|0]=K[f|0];H[c-4|0]=K[g|0];H[c-5|0]=K[f|0];H[c-6|0]=K[g|0];H[c-7|0]=K[f|0];c=c-8|0;b=b- -4|0;d=d+1|0;if((d|0)!=(e|0))continue;break}}b=K[a+10|0]+2|0;H[a+10|0]=b;H[a+8|0]=K[a+8|0]|2;b=P(b,K[a+9|0]);H[a+11|0]=b;b=b&255;d:{if(b>>>0>=8){b=P(b>>>3|0,e);break d}b=P(b,e)+7>>>3|0}J[a+4>>2]=b}}function dn(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=xb-32|0;xb=e;a:{b:{f=J[a>>2];if(!f)break b;c:{d:{e:{if(c){if(d){a=Pb(16);J[e+16>>2]=a;J[e+20>>2]=3;J[e+24>>2]=-2147483644;J[a+8>>2]=J[185990];b=J[185989];J[a>>2]=J[185988];J[a+4>>2]=b;J[a+12>>2]=0;J[195395]=0;$(3507,f|0,e+16|0);a= -J[195395];J[195395]=0;if((a|0)!=1){if(H[e+27|0]>=0)break b;Kb(J[e+16>>2]);break b}a=Z()|0;if(H[e+27|0]>=0)break e;break a}J[e+16>>2]=62;J[e+20>>2]=0;J[195395]=0;H[e+27|0]=1;$(3507,f|0,e+16|0);a=J[195395];J[195395]=0;if((a|0)!=1){if(H[e+27|0]>=0)break b;Kb(J[e+16>>2]);break b}a=Z()|0;if(H[e+27|0]>=0)break e;break a}c=K[b+11|0];f=c<<24>>24;g=(f|0)<0?J[b+4>>2]:c;c=g+2|0;if(c>>>0>=1073741808)break d;f:{if(g>>>0>=4294967294){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;H[e+11|0]=c;d=e;c=e+8|0;break f}d=c|3;if(d>>> -0>=1073741823)break c;h=d+1|0;d=Pb(h<<2);J[e+4>>2]=c;J[e>>2]=d;J[e+8>>2]=h|-2147483648;c=d+8|0}J[d>>2]=60;J[d+4>>2]=47;d=(f|0)<0?J[b>>2]:b;b=g<<2;i=qc(c,d,b)+b|0,j=0,J[i>>2]=j;J[195395]=0;b=ca(1858,e|0,743944)|0;c=J[195395];J[195395]=0;g:{h:{if((c|0)!=1){J[e+24>>2]=J[b+8>>2];c=J[b+4>>2];J[e+16>>2]=J[b>>2];J[e+20>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;a=J[a>>2];J[195395]=0;$(3507,a|0,e+16|0);a=J[195395];J[195395]=0;if((a|0)==1)break h;if(H[e+27|0]<0)Kb(J[e+16>>2]);if(H[e+11|0]>=0)break b;Kb(J[e>> -2]);break b}a=Z()|0;break g}a=Z()|0;if(H[e+27|0]>=0)break g;Kb(J[e+16>>2])}if(H[e+11|0]>=0)break e;Kb(J[e>>2])}ba(a|0);B()}dd(e);B()}zd();B()}xb=e+32|0;return}Kb(J[e+16>>2]);ba(a|0);B()}function Jaa(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;h=xb-16|0;xb=h;f=J[a+584>>2];e=J[f+840>>2];d=(c|0)/(e|0)|0;if((P(d,e)|0)!=(c|0))yc(J[a+628>>2],J[a>>2],274793,0);c=J[f+32>>2];c=(c|0)>(d|0)?d:c;a:{b:{if(!c)break b;J[h+12>>2]=0;if(J[f+212>>2]==12)m=h,n=Qb(P(J[f+112>>2],J[f+36>> -2])<<1),J[m+12>>2]=n;while(1){d=c;c:{d:{if(J[h+12>>2]){if((FC(f,h+12|0)|0)!=1)break d;e:switch(J[f+212>>2]-8|0){case 4:i=P(J[f+36>>2],J[f+112>>2]);if(i>>>0<2)break c;c=0;l=J[h+12>>2];e=i>>>1|0;if((e|0)!=1){k=e&2147483646;e=0;while(1){j=P(c,3)+b|0;g=l+(c<<1)|0;H[j|0]=K[g|0]>>>4;H[j+1|0]=K[g|0]<<4;H[j+2|0]=K[g+1|0];g=c|1;j=P(g,3)+b|0;g=l+(g<<1)|0;H[j|0]=K[g|0]>>>4;H[j+1|0]=K[g|0]<<4;H[j+2|0]=K[g+1|0];c=c+2|0;e=e+2|0;if((k|0)!=(e|0))continue;break}}if(!(i&2))break c;e=P(c,3)+b|0;c=l+(c<<1)|0;H[e|0]= -K[c|0]>>>4;H[e+1|0]=K[c|0]<<4;H[e+2|0]=K[c+1|0];break c;case 0:break e;default:break c}i=P(J[f+36>>2],J[f+112>>2]);if((i|0)<=0)break c;e=0;l=J[h+12>>2];c=0;if(i>>>0>=4){g=i&-4;j=0;while(1){H[b+c|0]=K[c+l|0];k=c|1;H[k+b|0]=K[l+k|0];k=c|2;H[k+b|0]=K[l+k|0];k=c|3;H[k+b|0]=K[l+k|0];c=c+4|0;j=j+4|0;if((g|0)!=(j|0))continue;break}}i=i&3;if(!i)break c;while(1){H[b+c|0]=K[c+l|0];c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}break c}J[h+8>>2]=b;if((FC(f,h+8|0)|0)==1)break c}a=0;break a}J[a+472>>2]=J[a+472>> -2]+1;c=d-1|0;b=J[f+840>>2]+b|0;if((d|0)>1)continue;break}a=J[h+12>>2];if(!a)break b;Kb(a)}a=1;if(M[f+140>>2]>2])break a;a=(EC(f)|0)!=0}xb=h+16|0;return a|0}function l9(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0;h=xb-80|0;xb=h;k=(b|0)!=0&(c|0)!=0;if(k){J[h+8>>2]=3;Ab[J[J[c>>2]+308>>2]](c,h+8|0)|0;a:{b:{c:switch(J[a+24>>2]-1|0){case 0:b=J[a+16>>2];J[h+76>>2]=0;O[h+32>>3]=e;O[h+24>>3]=d;J[h+16>>2]=b;J[h+8>>2]=388672;J[h+12>>2]=c;O[h+40>>3]=f;O[h+48>>3]=g;b= -Ab[J[J[b>>2]+16>>2]](b)|0;i=J[b+8>>2];j=J[b>>2];O[h+64>>3]=g/R(+(J[b+12>>2]-J[b+4>>2]|0));O[h+56>>3]=f/R(+(i-j|0));b=J[a+16>>2];J[195395]=0;I[h+72>>1]=256;$(1802,b|0,h+8|0);b=J[195395];J[195395]=0;d:{if((b|0)==1)break d;a=J[a+16>>2];b=J[J[a>>2]+124>>2];J[195395]=0;ea(b|0,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[h+8>>2]=388672;a=J[h+76>>2];if(!a)break a;Kb(a);break a}c=Z()|0;J[h+8>>2]=388672;a=J[h+76>>2];if(!a)break b;Kb(a);ba(c|0);B();case 1:break c;default:break a}i=J[a+20>>2];if(i)j=J[J[i>> -2]-12>>2]+i|0;J[h+76>>2]=0;O[h+48>>3]=g;O[h+40>>3]=f;O[h+32>>3]=e;O[h+24>>3]=d;J[h+16>>2]=j;J[h+8>>2]=388672;J[h+12>>2]=c;if(j){i=Ab[J[J[j>>2]+16>>2]](j)|0;j=J[i+8>>2];l=J[i>>2];O[h+64>>3]=g/R(+(J[i+12>>2]-J[i+4>>2]|0));O[h+56>>3]=f/R(+(j-l|0));i=J[a+20>>2]}J[195395]=0;I[h+72>>1]=256;fa(1803,i|0,h+8|0,b|0);b=J[195395];J[195395]=0;e:{if((b|0)==1)break e;a=J[a+20>>2];b=J[J[a>>2]+16>>2];J[195395]=0;ea(b|0,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[h+8>>2]=388672;a=J[h+76>>2];if(!a)break a;Kb(a); -break a}c=Z()|0;J[h+8>>2]=388672;a=J[h+76>>2];if(!a)break b;Kb(a)}ba(c|0);B()}J[h+8>>2]=3;Ab[J[J[c>>2]+312>>2]](c,h+8|0)|0}xb=h+80|0;return k|0}function _k(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;if(!(K[(P(c,9804)+b|0)+256|0]|!(a&4))){h=d>>31;h=(h^d)-h|0;a:{b:{c:{if((c|0)==1){if(a&2)break c;if(!(g&2)|h>>>0>=192)break b;f=h;break a}if(!(a&1))break b}d:{e:{f:{g:{h:{e=P(c,9804)+b|0;b=J[e+52>>2];if(b){e=e+56|0;p=b&1;if((b|0)!=1)break h;f=98;b=0;g=h;break g}b=h+32&2147483584;g=h;break f}q= -b&-2;f=98;b=0;g=h;while(1){m=J[(e+P(b|1,12)|0)+4>>2];j=h-m|0;i=j>>31;n=J[(e+P(b,12)|0)+4>>2];k=h-n|0;l=k>>31;k=(l^k)-l|0;l=(k|0)<(f|0);j=(i^j)-i|0;f=l?k:f;i=(j|0)<(f|0);f=i?j:f;g=i?m:l?n:g;b=b+2|0;o=o+2|0;if((q|0)!=(o|0))continue;break}}if(p){e=J[(e+P(b,12)|0)+4>>2];i=h-e|0;b=i>>31;g=((b^i)-b|0)<(f|0)?e:g}b=g+32&-64;if((g|0)>(h|0))break e}b=(h|0)<(b|48)?g:h;break d}b=(h|0)>(b-48|0)?g:h}if((c|0)==1){f=64;if((b|0)<64)break a;f=b+16&-64;break a}if(a&8){f=64;if((b|0)<64)break a;f=b+32&-64;break a}if((b| -0)<=47){f=b- -64>>1;break a}if(b>>>0<=127){f=b+22&-64;b=f-h|0;a=b>>31;if((a^b)-a>>>0<16)break a;if(h>>>0>47){f=h;break a}f=h- -64>>>1|0;break a}f=b+32&-64;break a}f=f&1?h>>>0<80?64:h:(h|0)<=56?56:h;a=P(c,9804)+b|0;if(!J[a+52>>2])break a;a=J[a+60>>2];g=f-a|0;c=g>>31;if((c^g)-c>>>0<=39){f=(a|0)<=48?48:a;break a}if(f>>>0<=191){a=f&63;if(a>>>0<10)break a;b=f&2147483584;if(a>>>0<=31){f=b|10;break a}f=a>>>0<54?b|54:f;break a}a=0;i:{if(!((d|0)>0&(e|0)>0)&(d&e)>=0)break i;b=L[J[J[b+4>>2]+88>>2]+12>>1];if(b>>> -0>=10){if(b>>>0>29)break i;e=(P(30-b|0,e)|0)/20|0}a=e>>31;a=(a^e)-a|0}f=(f-a|0)+32&-64}d=(d|0)<0?0-f|0:f}return d}function Kd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[a+20>>2]==2){Ac(a,3,b,c,1,0);return}h=J[a+80>>2];i=J[(h+P(b,20)|0)+8>>2];d=i;e=b+1|0;a:{if(e>>>0>=c>>>0)break a;g=(c-b|0)-2|0;f=(b^-1)+c&3;if(f)while(1){j=J[(P(e,20)+h|0)+8>>2];d=d>>>0>>0?d:j;e=e+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}if(g>>>0<=2)break a;while(1){g=P(e,20)+h|0;f=J[g+8>>2];d=d>>>0>>0?d:f;f=J[g+28>>2]; -d=d>>>0>>0?d:f;f=J[g+48>>2];d=d>>>0>>0?d:f;g=J[g+68>>2];d=d>>>0>>0?d:g;e=e+4|0;if((e|0)!=(c|0))continue;break}}b:{if(J[(P(c,20)+h|0)-12>>2]==(d|0))break b;e=J[a+68>>2];if(e>>>0<=c>>>0)break b;g=h-12|0;while(1){f=P(c,20);if(J[f+g>>2]!=J[(h+f|0)+8>>2])break b;c=c+1|0;if((e|0)!=(c|0))continue;break}c=e}c:{d:{e:{e=J[a+64>>2];if((d|0)==(i|0)|e>>>0>=b>>>0)break e;g=h-12|0;while(1){i=P(b,20);if(J[i+g>>2]!=J[(h+i|0)+8>>2])break e;b=b-1|0;if(e>>>0>>0)continue;break}b=e;break d}if((b|0)!=(e|0))break c}g= -P(e,20)+h|0;if(J[g+8>>2]==(d|0))break c;e=J[a+72>>2];if(!e)break c;a=J[a+84>>2];while(1){i=a+P(e,20)|0;f=i-12|0;j=J[f>>2];if((j|0)!=J[g+8>>2])break c;if((d|0)!=(j|0)){i=i-16|0;J[i>>2]=J[i>>2]&-8}J[f>>2]=d;e=e-1|0;if(e)continue;break}}f:{if(b>>>0>=c>>>0)break f;e=b+1|0;if(c-b&1){a=P(b,20)+h|0;if(J[a+8>>2]!=(d|0))J[a+4>>2]=J[a+4>>2]&-8;J[a+8>>2]=d;b=b+1|0}if((c|0)==(e|0))break f;while(1){a=P(b,20)+h|0;if(J[a+8>>2]!=(d|0))J[a+4>>2]=J[a+4>>2]&-8;J[a+8>>2]=d;a=P(b+1|0,20)+h|0;if(J[a+8>>2]!=(d|0))J[a+4>> -2]=J[a+4>>2]&-8;J[a+8>>2]=d;b=b+2|0;if((c|0)!=(b|0))continue;break}}}function px(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=xb-16|0;xb=i;J[i+12>>2]=0;g=J[a+12>>2];a:{b:{c:{d:{if((g|0)<=11){if(J[a+20>>2])break d;J[a+16>>2]=12;J[a+20>>2]=a+820;break d}j=J[a+16>>2];if((j|0)>(g|0)){e=J[a+20>>2];h=e+P(g,44)|0;break c}g=64;if((j|0)>48806445)break a;g=j>>2;e:{if((g|0)>=-4){k=(g+j|0)+4|0;if((k|0)<48806447)break e}k=48806446}l=J[a+20>>2];f:{if((l|0)==(a+820|0)){e=Tb(e,44,0,k,0,i+12|0);J[a+20>>2]=e; -g=J[i+12>>2];if(g)break a;Mb(e,l,528);break f}m=a,n=Tb(e,44,j,k,l,i+12|0),J[m+20>>2]=n;g=J[i+12>>2];if(g)break a}J[a+16>>2]=k;g=J[a+12>>2]}e=J[a+20>>2];h=e+P(g,44)|0;if((g|0)<=0)break b}if(!d){g=h;while(1){h=g-44|0;d=I[h>>1];if((d|0)<(b|0)){h=g;break b}if(!((b|0)!=(d|0)|J[a+24>>2]!=(c|0))){h=g;break b}d=J[h+4>>2];J[g>>2]=J[h>>2];J[g+4>>2]=d;J[g+40>>2]=J[h+40>>2];d=J[h+36>>2];J[g+32>>2]=J[h+32>>2];J[g+36>>2]=d;d=J[h+28>>2];J[g+24>>2]=J[h+24>>2];J[g+28>>2]=d;d=J[h+20>>2];J[g+16>>2]=J[h+16>>2];J[g+20>> -2]=d;d=J[h+12>>2];J[g+8>>2]=J[h+8>>2];J[g+12>>2]=d;g=h;if(g>>>0>e>>>0)continue;break}break b}g=h;while(1){h=g-44|0;d=I[h>>1];if((d|0)>(b|0)){h=g;break b}if(!((b|0)!=(d|0)|J[a+24>>2]!=(c|0))){h=g;break b}d=J[h+4>>2];J[g>>2]=J[h>>2];J[g+4>>2]=d;J[g+40>>2]=J[h+40>>2];d=J[h+36>>2];J[g+32>>2]=J[h+32>>2];J[g+36>>2]=d;d=J[h+28>>2];J[g+24>>2]=J[h+24>>2];J[g+28>>2]=d;d=J[h+20>>2];J[g+16>>2]=J[h+16>>2];J[g+20>>2]=d;d=J[h+12>>2];J[g+8>>2]=J[h+8>>2];J[g+12>>2]=d;g=h;if(g>>>0>e>>>0)continue;break}}J[a+12>>2]= -J[a+12>>2]+1;g=0}J[f>>2]=h;xb=i+16|0;return g}function ut(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=J[b+12>>2];d=J[b+4>>2];a:{if(g>>>0>>0)break a;h=J[b+8>>2];if(h-a>>>0<12)break a;e=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);e=(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))+a|0;if(g>>>0>>0)break a;f=h-e|0;e=K[a+6|0]|K[a+7|0]<<8;e=((e<<8|e>>>8)&65535)<<2;if(f>>>0>>0)break a;e=J[b+16>>2]-e|0;J[b+16>>2]=e;if((e|0)<=0)break a;f=a+12|0;if(g>>>0>>0)break a;d=K[a+4|0]|K[a+5|0]<< -8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>h-f>>>0)break a;e=e-d|0;J[b+16>>2]=e;if((e|0)<=0)break a;c=1;if(!(K[a|0]|K[a+1|0]<<8))break a;c=K[a+2|0]|K[a+3|0]<<8;k=(c<<8|c>>>8)&65535;e=0;g=J[b+12>>2];c=K[a+4|0]|K[a+5|0]<<8;h=(c<<8|c>>>8)&65535;d=((h<<1)+a|0)+12|0;f=J[b+4>>2];b:{c:{if(g>>>0>>0)break c;i=J[b+8>>2];if(i-d>>>0<12)break c;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(c){c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;if(c-f>>>0>g>>>0)break c;j=i-c|0;c=h<<2;if(j>>>0>>0)break c;c= -J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break c}c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);if(c){if(0)break c;c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;if(c-f>>>0>g>>>0)break c;j=i-c|0;c=h<<1;if(j>>>0>>0)break c;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break c}d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);c=1;if(!d)break b;a=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0;if(a-f>>>0>g>>>0)break c;c=i-a|0;a=k<<1;if(c>>>0>>0)break c;a=J[b+16>>2]-a|0;J[b+16>>2]=a;e=(a|0)>0}c= -e}}return c}function Ze(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return;a:{if(!b|J[b+16>>2]>131082)break a;e=J[a+16>>2];if(e){c=J[b+8>>2];b:{while(1){g=J[((d<<2)+a|0)+20>>2];f=J[g>>2];if(fc(J[f+8>>2],c)){d=d+1|0;if((d|0)!=(e|0))continue;break b}break}if(J[b+12>>2]<=J[f+12>>2])break a;WD(a,g);e=J[a+16>>2]}if(e>>>0>31)break a}e=0;g=J[a>>2];c=J[b+4>>2];c:{if((c|0)<=0){if(!c)break c;break a}e=Ab[J[g+4>>2]](g,c)|0;if(!e)return;Nb(e,0,c)}J[e+8>>2]=g;J[e+4>>2]=a;J[e>>2]=b;d:{c=b;d=J[c>>2];if(d&2){c=64; -f=J[e+4>>2];h=J[f>>2];d=Ab[J[h+4>>2]](h,12)|0;e:{if(!d)break e;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;H[d+4|0]=0;H[d+5|0]=0;H[d+6|0]=0;H[d+7|0]=0;H[d+8|0]=0;H[d+9|0]=0;H[d+10|0]=0;H[d+11|0]=0;i=J[e>>2];J[e+12>>2]=i;c=J[i+36>>2];J[e+16>>2]=c;f:{g:{if((c|0)!=1869968492)break g;c=J[J[i+56>>2]+4>>2];if(!c)break g;c=Ab[c|0](h,e+52|0)|0;if(c)break f;J[e+56>>2]=J[J[i+56>>2]+16>>2];J[e+60>>2]=J[i+40>>2]}J[d+8>>2]=e;c=J[f+152>>2];J[d>>2]=c;J[d+4>>2]=0;J[(c?c+4|0:f+148|0)>>2]=d;J[f+152>>2]=d;c=J[f+148>> -2];h:{if(c)while(1){d=J[c+8>>2];if(J[d+16>>2]==1869968492)break h;c=J[c+4>>2];if(c)continue;break}d=0}J[f+156>>2]=d;c=0;break e}Ab[J[h+8>>2]](h,d)}if(c)break d;c=J[e>>2];d=J[c>>2]}if(d&4)J[a+160>>2]=e;if(d&1)J[e+12>>2]=c;b=J[b+24>>2];if(b)if(Ab[b|0](e)|0)break d;b=J[a+16>>2];J[a+16>>2]=b+1;J[((b<<2)+a|0)+20>>2]=e;return}i:{if(!(K[J[e>>2]]&2))break i;a=J[e+12>>2];if(!a|J[a+36>>2]!=1869968492)break i;b=J[e+52>>2];if(!b)break i;Ab[J[J[a+56>>2]+20>>2]](b)}Ab[J[g+8>>2]](g,e)}}function _ea(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;k=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<-1)break a;f=J[a+28>>2];l=k-f|0;if((l|0)<=0)break a;i=c-4|0;g=e+2|0;m=g&3;b=0;if(e+1>>>0>=3){n=g&-4;g=0;while(1){e=b<<2;h=f+J[e+i>>2]|0;Nb(h,K[h-1|0],l);h=f+J[i+(e|4)>>2]|0;Nb(h,K[h-1|0],l);h=f+J[i+(e|8)>>2]|0;Nb(h,K[h-1|0],l);e=f+J[i+(e|12)>>2]|0;Nb(e,K[e-1|0],l);b=b+4|0;g=g+4|0;if((n|0)!=(g|0))continue;break}}if(m)while(1){e=f+J[i+(b<<2)>>2]|0;Nb(e,K[e-1|0],l);b=b+1|0;j=j+ -1|0;if((m|0)!=(j|0))continue;break}e=J[a+272>>2]}b:{if((e|0)<=0)break b;b=J[a+228>>2];m=b<<6;n=65536-(b<<9)|0;i=0;l=k-2|0;if(!l)while(1){f=i<<2;b=J[f+d>>2];e=c+f|0;f=J[e>>2];j=K[f|0];i=i+1|0;g=J[(i<<2)+c>>2];l=J[e-4>>2];k=K[g|0]+K[l|0]|0;e=j+k|0;h=P(j,n);j=K[f+1|0]+(K[g+1|0]+K[l+1|0]|0)|0;H[b|0]=(h+P(m,j+(e+k|0)|0)|0)+32768>>>16;g=b;b=K[f+1|0];H[g+1|0]=(P(b,n)+P(m,(e+(j<<1)|0)-b|0)|0)+32768>>>16;if(J[a+272>>2]>(i|0))continue;break b}while(1){f=i<<2;b=J[f+d>>2];e=c+f|0;f=J[e>>2];k=K[f|0];i=i+1|0;g= -J[(i<<2)+c>>2];o=J[e-4>>2];h=K[g|0]+K[o|0]|0;j=k+h|0;e=K[f+1|0]+(K[g+1|0]+K[o+1|0]|0)|0;H[b|0]=(P(k,n)+P(m,e+(h+j|0)|0)|0)+32768>>>16;k=b+1|0;b=f+1|0;h=g+1|0;o=o+1|0;g=l;while(1){f=e;j=e+j|0;e=K[b|0];j=j-e|0;p=P(e,n);e=K[b+1|0]+(K[h+1|0]+K[o+1|0]|0)|0;H[k|0]=(p+P(m,j+e|0)|0)+32768>>>16;k=k+1|0;h=h+1|0;o=o+1|0;b=b+1|0;j=f;g=g-1|0;if(g)continue;break}b=K[b|0];H[k|0]=(P(b,n)+P(m,(f+(e<<1)|0)-b|0)|0)+32768>>>16;if(J[a+272>>2]>(i|0))continue;break}}}function tz(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;h=K[b|0];a:{if(!(!a|(h|0)!=239)){l=1;if(K[b+1|0]!=172)break a;l=(K[b+2|0]+125&255)>>>0<2?2:1;break a}l=1;if((h-48&255)>>>0>=10)break a;h=0;while(1){l=l-1|0;h=h+1|0;if((K[h+b|0]-48&255)>>>0<10)continue;break}}b:{if((g|0)<=(l|0))break b;h=0;while(1){n=h;if(!K[b+h|0])break b;while(1){h=J[d>>2];c:{d:{if(!h)break d;i=J[e>>2];if(!i|!J[f>>2])break d;q=n<<2;o=J[h+q>>2];if(!o)break d;r=te(o,61);if(!r)break c;m=0;j=0;p=n-J[i+q>>2]|0;e:{if((p|0)<0)break e;if(!a){h=p+1|0;while(1){if(!K[b+ -j|0])break e;i=(j|0)!=(p|0);j=j+1|0;if(i)continue;break}j=h;break e}k=K[b|0];h=0;while(1){if(!k)break e;j=j+1|0;f:{if((k|0)!=239)break f;i=b+h|0;if(K[i+1|0]!=172)break f;j=((K[i+2|0]+125&255)>>>0<2)+j|0}while(1){i=h;h=h+1|0;k=K[h+b|0];if((k&192)==128)continue;break}if((i|0)<(p|0))continue;break}}i=r-o|0;g:{if((i|0)<=0)break g;if(!a){while(1){if(!K[m+o|0])break g;m=m+1|0;if((i|0)!=(m|0))continue;break}m=i;break g}k=K[o|0];h=0;while(1){if(!k)break g;m=m+1|0;h:{if((k|0)!=239)break h;k=h+o|0;if(K[k+1| -0]!=172)break h;m=((K[k+2|0]+125&255)>>>0<2)+m|0}while(1){h=h+1|0;k=K[o+h|0];if((k&192)==128)continue;break}if((h|0)<(i|0))continue;break}}if((j+m|0)>=(g|0))break c;Kb(o);J[J[d>>2]+q>>2]=0}H[c+n|0]=48}h=n+1|0;i:{if(!a)break i;j=K[b+h|0];if((j|0)==239){n=b+n|0;if(K[n+2|0]!=172)break i;l=((K[n+3|0]+125&255)>>>0<2)+l|0;break i}n=h;if((j&192)==128)continue}break}l=l+1|0;if((l|0)<(g|0))continue;break}}}function Vda(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,u=0,v=0,w=0,x=0;p=xb-128|0;xb=p;f=Nb(a,0,256);while(1){a:{k=f;d=J[(l<<2)+b>>2]+c|0;o=K[d|0];e=K[d+5|0];m=o-e|0;g=K[d+1|0];i=K[d+4|0];h=g-i|0;j=K[d+2|0];d=K[d+3|0];n=j-d|0;J[f+12>>2]=m-(h+n|0)<<2;e=e+o|0;d=d+j|0;J[f+8>>2]=P(e-d|0,10033)+1024>>11;e=d+e|0;d=g+i|0;J[f>>2]=(e+d<<2)-3072;J[f+16>>2]=P(e-(d<<1)|0,5793)+1024>>11;d=P(m+n|0,2998)+1024>>11;J[f+20>>2]=d+(n-h<<2);J[f+4>>2]=d+(h+m<<2);d=l-7|0;l=l+1|0;f=p;b:switch(d|0){case 0:continue;case 4:break a;default:break b}f=k+32|0;continue}break}while(1){q= -J[f+64>>2];r=J[a+128>>2];s=J[a+192>>2];t=J[a+160>>2];c=s+t|0;u=J[f+96>>2];v=J[a>>2];b=u+v|0;w=c+b|0;l=J[f>>2];m=J[a+96>>2];h=l+m|0;n=J[f+32>>2];o=J[a+64>>2];g=n+o|0;i=h+g|0;J[a+128>>2]=P(w-i|0,8918)+16384>>15;j=b-c|0;e=J[a+32>>2];d=e+q|0;k=J[a+224>>2];c=k+r|0;b=d-c|0;g=g-h|0;J[a+192>>2]=P(j-(b+g|0)|0,7282)+16384>>15;J[a+64>>2]=(P(b-g|0,7282)+P(g+j|0,9947)|0)+16384>>15;J[a>>2]=P((c+(d+i|0)|0)+w|0,7282)+16384>>15;b=r-k|0;c=e-q|0;e=P(b+c|0,3941);d=e+P(b,-13455)|0;h=v-u|0;g=m-l|0;i=t-s|0;j=o-n|0;J[a+ -96>>2]=((d+P(h-g|0,9514)|0)+P(i+j|0,-3941)|0)+16384>>15;b=P(g+j|0,-1344);k=P(g+h|0,6269);c=e+P(c,5573)|0;J[a+224>>2]=(((b+(k+P(g,5285)|0)|0)-c|0)+P(i,-8170)|0)+16384>>15;e=b;b=P(h+j|0,8170)+16384|0;J[a+160>>2]=((e+(b+P(j,-17036)|0)|0)-d|0)+P(i,6269)>>15;J[a+32>>2]=(c+(k+(b+P(h,-4229)|0)|0)|0)+P(i,1344)>>15;f=f+4|0;a=a+4|0;x=x+1|0;if((x|0)!=6)continue;break}xb=p+128|0}function tka(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;f=xb-32|0;xb=f;a:{b:{c:{d:{e=J[a+ -8>>2];i=J[a+12>>2];if((e|0)==(i|0))break d;g=K[b+11|0];l=g<<24>>24;m=(l|0)<0?J[b+4>>2]:g;if((l|0)>=0)while(1){j=K[e+11|0];k=j<<24>>24;g=(k|0)<0;h=J[e+4>>2];e:{if(((g?h:j)|0)!=(m|0))break e;if(!g){g=b;h=e;if(!k)break d;while(1){if(K[h|0]!=K[g|0])break e;g=g+1|0;h=h+1|0;j=j-1|0;if(j)continue;break}break d}if(!h)break d;if(!cd(J[e>>2],b,h))break d}e=e+20|0;if((i|0)!=(e|0))continue;break c}k=J[b>>2];while(1){j=K[e+11|0];n=j<<24>>24;g=(n|0)<0;h=J[e+4>>2];f:{if(((g?h:j)|0)!=(m|0))break f;if(!g){g=k;h=e; -if(!n)break d;while(1){if(K[h|0]!=K[g|0])break f;g=g+1|0;h=h+1|0;j=j-1|0;if(j)continue;break}break d}if(!h)break d;if(!cd(J[e>>2],k,h))break d}e=e+20|0;if((i|0)!=(e|0))continue;break}break c}if((e|0)!=(i|0))break b;l=K[b+11|0]}c=Mb(Pb(d),c,d);g:{if(l<<24>>24>=0){J[f+16>>2]=J[b+8>>2];e=J[b+4>>2];J[f+8>>2]=J[b>>2];J[f+12>>2]=e;break g}Kp(f+8|0,J[b>>2],J[b+4>>2]);i=J[a+12>>2]}J[f+24>>2]=d;J[f+20>>2]=c;if(M[a+16>>2]>i>>>0){b=J[f+12>>2];J[i>>2]=J[f+8>>2];J[i+4>>2]=b;J[i+8>>2]=J[f+16>>2];b=J[f+24>>2];J[i+ -12>>2]=J[f+20>>2];J[i+16>>2]=b;J[a+12>>2]=i+20;break a}J[195395]=0;$(1068,a+8|0,f+8|0);a=J[195395];J[195395]=0;if((a|0)!=1){if(H[f+19|0]>=0)break a;Kb(J[f+8>>2]);break a}a=Z()|0;if(H[f+19|0]<0)Kb(J[f+8>>2]);ba(a|0);B()}a=J[e+12>>2];if((a|0)!=(c|0)){if(a){Kb(a);J[e+12>>2]=0}o=e,p=Mb(Pb(d),c,d),J[o+12>>2]=p}J[e+16>>2]=d}xb=f+32|0}function Vea(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;n=P(J[b+36>>2],J[b+28>>2]);b=J[a+412>>2]+J[b+4>>2]|0; -k=K[b+92|0];m=K[b+102|0];e=J[a+272>>2];a:{if((e|0)<=0)break a;f=J[a+28>>2];h=P(k,n)-f|0;if((h|0)<=0)break a;b=0;if(e>>>0>=4){o=e&-4;while(1){i=b<<2;g=f+J[i+c>>2]|0;Nb(g,K[g-1|0],h);g=f+J[(i|4)+c>>2]|0;Nb(g,K[g-1|0],h);g=f+J[(i|8)+c>>2]|0;Nb(g,K[g-1|0],h);i=f+J[(i|12)+c>>2]|0;Nb(i,K[i-1|0],h);b=b+4|0;j=j+4|0;if((o|0)!=(j|0))continue;break}}e=e&3;if(e)while(1){j=f+J[(b<<2)+c>>2]|0;Nb(j,K[j-1|0],h);b=b+1|0;l=l+1|0;if((e|0)!=(l|0))continue;break}e=J[a+272>>2]}b:{if(!n|(e|0)<=0)break b;h=P(k,m);i=h>>> -1|0;if(m){if(k){s=k&248;r=k&7;l=0;t=k>>>0<8;o=0;while(1){u=(l<<2)+c|0;g=J[(o<<2)+d>>2];p=0;q=0;while(1){e=0;j=0;while(1){b=J[(j<<2)+u>>2]+p|0;f=0;if(!t)while(1){e=K[b+7|0]+(K[b+6|0]+(K[b+5|0]+(K[b+4|0]+(K[b+3|0]+(K[b+2|0]+(K[b+1|0]+(K[b|0]+e|0)|0)|0)|0)|0)|0)|0)|0;b=b+8|0;f=f+8|0;if((s|0)!=(f|0))continue;break}f=0;if(r)while(1){e=K[b|0]+e|0;b=b+1|0;f=f+1|0;if((r|0)!=(f|0))continue;break}j=j+1|0;if((m|0)!=(j|0))continue;break}H[g|0]=(e+i|0)/(h|0);p=k+p|0;g=g+1|0;q=q+1|0;if((q|0)!=(n|0))continue;break}o= -o+1|0;l=m+l|0;if((l|0)>2])continue;break}break b}c=(i>>>0)/(h>>>0)|0;e=0;b=0;while(1){Nb(J[(b<<2)+d>>2],c,n);b=b+1|0;e=e+m|0;if((e|0)>2])continue;break}break b}c=(i>>>0)/(h>>>0)|0;e=0;b=0;while(1){Nb(J[(b<<2)+d>>2],c,n);b=b+1|0;e=e+m|0;if((e|0)>2])continue;break}}}function Gba(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;if((c|0)>0){k=J[a+12>>2];while(1){h=J[a+4>>2];i=.210526316;j=.473684211;e=+N[b+4>>2];d=32767;a:{if(e>=1.8371976E19)break a;d=65535; -if(e<=-1.8371976E19)break a;if(e>5.4136769E-20){e=gl(e)*1.4426950408889634+64;if(h){d=Kpa(J[195008],J[195009],1284865837,1481765933);f=zb;d=d+1|0;f=d?f:f+1|0;J[195008]=d;J[195009]=f;e=e*256+ +(f>>>1|0)*4.656612875245797E-10+-.5}else e=e*256;if(R(e)<2147483648){d=~~e;break a}d=-2147483648;break a}d=0;if(!(e<-5.4136769E-20))break a;e=gl(-e)*1.4426950408889634+64;if(h){d=Kpa(J[195008],J[195009],1284865837,1481765933);f=zb;d=d+1|0;f=d?f:f+1|0;J[195008]=d;J[195009]=f;e=e*256+ +(f>>>1|0)*4.656612875245797E-10+ --.5}else e=e*256;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}d=d|-32768}c:{d:{if(!d)break d;m=+N[b+4>>2];e=+N[b>>2];l=+N[b+8>>2]*3+(m*15+e);if(l<=0)break d;j=m*9/l;i=e*4/l;f=0;if(i<=0)break c}if(h){f=Kpa(J[195008],J[195009],1284865837,1481765933);g=zb;f=f+1|0;g=f?g:g+1|0;J[195008]=f;J[195009]=g;e=i*410+ +(g>>>1|0)*4.656612875245797E-10+-.5}else e=i*410;if(R(e)<2147483648){f=~~e;break c}f=-2147483648}f=(f>>>0>=255?255:f)<<8|d<<16;d=0;e:{if(j<=0)break e;if(h){d=Kpa(J[195008],J[195009],1284865837, -1481765933);g=zb;d=d+1|0;g=d?g:g+1|0;J[195008]=d;J[195009]=g;e=j*410+ +(g>>>1|0)*4.656612875245797E-10+-.5}else e=j*410;if(R(e)<2147483648){d=~~e;break e}d=-2147483648}J[k>>2]=f|(d>>>0>=255?255:d);b=b+12|0;k=k+4|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}}}function s9(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;f=L[a+84>>1];g=f>>>3|0;h=(c>>>0)/(g>>>0)|0;d=J[J[a+584>>2]+4>>2];i=Qb(c);a:{if(!i)break a;Pc(i,b,c);if((h|0)>0){a=g>>>0<=1?1:g;l=a&8190;m=a&1;n=f>>>0<16;while(1){f= -b+e|0;j=i+P(e,g)|0;a=0;k=0;if(!n)while(1){H[f+P(h,g+(a^-1)|0)|0]=K[a+j|0];H[f+P(h,g+(a^-2)|0)|0]=K[(a|1)+j|0];a=a+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}if(m)H[f+P(h,g+(a^-1)|0)|0]=K[a+j|0];e=e+1|0;if((h|0)>(e|0))continue;break}}Kb(i);if((c|0)<=(d|0))break a;a=((d^-1)+b|0)+c|0;if((d|0)>=5){g=d-4|0;h=d&3;i=d-5>>>0>2;while(1){b:{c:{d:{e:{f:{g:switch(d|0){case 1:break c;case 2:break d;case 3:break e;case 4:break f;case 0:break b;default:break g}e=0;b=g;if(h)while(1){f=a+d|0;H[f|0]=K[f|0]-K[a|0]; -b=b-1|0;a=a-1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(!i)break f;while(1){e=a+d|0;H[e|0]=K[e|0]-K[a|0];e=a-1|0;f=e+d|0;H[f|0]=K[f|0]-K[e|0];e=a-2|0;f=e+d|0;H[f|0]=K[f|0]-K[e|0];e=a-3|0;f=e+d|0;H[f|0]=K[f|0]-K[e|0];a=a-4|0;e=(b|0)>4;b=b-4|0;if(e)continue;break}}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}c=c-d|0;if((d|0)<(c|0))continue;break}break a}while(1){h:switch(d|0){default:b=a+d|0;H[b| -0]=K[b|0]-K[a|0];a=a-1|0;case 3:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;case 2:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;case 1:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;break;case 0:break h}c=c-d|0;if((d|0)<(c|0))continue;break}}}function Pt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a=xb-16|0;xb=a;J[a+4>>2]=0;d=J[b+116>>2];e=J[d+28>>2];f=J[b+120>>2];g=a+4|0;d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;o=Ab[e|0](b,f,32,g,d)|0;ou(c);k=J[c+40>>2];l=J[c+68>>2];if(l){m= -J[c+88>>2];n=J[c+80>>2];d=0;p=(k&-2)!=4;while(1){a:{b:{if(!o)break b;e=P(d,20);f=e+n|0;if(!Ot(J[f>>2]))break b;J[f>>2]=J[a+4>>2];e=e+m|0;J[e>>2]=0;J[e+4>>2]=0;break a}g=P(d,20);j=g+n|0;e=J[j>>2];J[j>>2]=0;f=J[b+116>>2];h=J[f+28>>2];i=J[b+120>>2];f=J[f+12>>2];if(f)f=J[f+8>>2];else f=0;Ab[h|0](b,i,e,j,f)|0;f=J[j>>2];e=g+m|0;J[e>>2]=0;J[e+4>>2]=0;i=J[b+116>>2];h=J[i+12>>2];g=J[b+120>>2];c:{d:{e:{f:{g:{if(!p){i=J[i+40>>2];if(h)break g;h=0;break f}i=J[i+44>>2];if(h)break e;h=0;break d}h=J[h+20>>2]}q=e, -r=Ab[i|0](b,g,f,h)|0,J[q>>2]=r;uj(b,J[j>>2],a+12|0,a+8|0);break c}h=J[h+24>>2]}q=e,r=Ab[i|0](b,g,f,h)|0,J[q+4>>2]=r;vu(b,J[j>>2],a+12|0,a+8|0)}J[e+8>>2]=J[e+8>>2]-J[a+12>>2];J[e+12>>2]=J[e+12>>2]-J[a+8>>2]}d=d+1|0;if((l|0)!=(d|0))continue;break}}if((k&-3)==5)Wg(c);e=J[c+68>>2];h:{if(!e)break h;c=J[c+80>>2];d=0;b=0;if(e>>>0>=4){j=e&-4;f=0;while(1){g=c+P(b,20)|0;J[g+4>>2]=J[g+4>>2]&-8;g=c+P(b|1,20)|0;J[g+4>>2]=J[g+4>>2]&-8;g=c+P(b|2,20)|0;J[g+4>>2]=J[g+4>>2]&-8;g=c+P(b|3,20)|0;J[g+4>>2]=J[g+4>>2]&-8; -b=b+4|0;f=f+4|0;if((j|0)!=(f|0))continue;break}}e=e&3;if(!e)break h;while(1){f=c+P(b,20)|0;J[f+4>>2]=J[f+4>>2]&-8;b=b+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}xb=a+16|0;return 1}function E9(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;a:{d=J[J[a+584>>2]+4>>2];if((d|0)>=(c|0))break a;c=c-d|0;b:{c:switch(d-3|0){default:if((d|0)>=5)break b;while(1){d:switch(d|0){default:a=b+d|0;H[a|0]=K[b|0]+K[a|0];a=d+(b+1|0)|0;H[a|0]=K[b+1|0]+K[a|0];b=b+2|0;case 2:a=b+d|0;H[a|0]=K[b|0]+K[a|0];b=b+1|0;case 1:a= -b+d|0;H[a|0]=K[b|0]+K[a|0];b=b+1|0;break;case 0:break d}c=c-d|0;if((c|0)>0)continue;break}break a;case 1:a=K[b+3|0];e=K[b+2|0];f=K[b+1|0];d=K[b|0];while(1){d=K[b+4|0]+d|0;H[b+4|0]=d;f=K[b+5|0]+f|0;H[b+5|0]=f;e=K[b+6|0]+e|0;H[b+6|0]=e;a=K[b+7|0]+a|0;H[b+7|0]=a;b=b+4|0;g=(c|0)>4;c=c-4|0;if(g)continue;break}break a;case 0:break c}a=K[b+2|0];e=K[b+1|0];f=K[b|0];while(1){f=K[b+3|0]+f|0;H[b+3|0]=f;e=K[b+4|0]+e|0;H[b+4|0]=e;a=K[b+5|0]+a|0;H[b+5|0]=a;b=b+3|0;d=(c|0)>3;c=c-3|0;if(d)continue;break}break a}a= -d-4|0;g=d&3;i=d-5>>>0>2;while(1){e:{f:{g:{h:{i:switch(d|0){case 0:break e;case 1:break f;case 2:break g;case 4:break h;default:break i}f=0;e=a;if(g)while(1){h=b+d|0;H[h|0]=K[b|0]+K[h|0];e=e-1|0;b=b+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}if(!i)break h;while(1){f=b+d|0;H[f|0]=K[b|0]+K[f|0];f=d+(b+1|0)|0;H[f|0]=K[b+1|0]+K[f|0];f=d+(b+2|0)|0;H[f|0]=K[b+2|0]+K[f|0];f=d+(b+3|0)|0;H[f|0]=K[b+3|0]+K[f|0];b=b+4|0;f=(e|0)>4;e=e-4|0;if(f)continue;break}}e=b+d|0;H[e|0]=K[b|0]+K[e|0];e=d+(b+1|0)|0;H[e|0]= -K[b+1|0]+K[e|0];b=b+2|0}e=b+d|0;H[e|0]=K[b|0]+K[e|0];b=b+1|0}e=b+d|0;H[e|0]=K[b|0]+K[e|0];b=b+1|0}c=c-d|0;if((c|0)>0)continue;break}}}function x9(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;n=L[a+84>>1];h=n>>>3|0;l=(c>>>0)/(h>>>0)|0;d=J[J[a+584>>2]+4>>2];m=Qb(c);if(m){a:{if((c|0)<=(d|0))break a;if((d|0)<5){e=c;a=b;while(1){b:switch(d|0){default:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;case 3:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;case 2:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+ -1|0;case 1:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;break;case 0:break b}e=e-d|0;if((e|0)>(d|0))continue;break}break a}g=d-4|0;o=d&3;i=d-5>>>0>2;j=c;a=b;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}k=0;e=g;if(o)while(1){f=a+d|0;H[f|0]=K[f|0]+K[a|0];e=e-1|0;a=a+1|0;k=k+1|0;if((o|0)!=(k|0))continue;break}if(!i)break g;while(1){f=a+d|0;H[f|0]=K[f|0]+K[a|0];f=(a+1|0)+d|0;H[f|0]=K[f|0]+K[a+1|0];f=(a+2|0)+d|0;H[f|0]=K[f|0]+ -K[a+2|0];f=(a+3|0)+d|0;H[f|0]=K[f|0]+K[a+3|0];a=a+4|0;f=(e|0)>4;e=e-4|0;if(f)continue;break}}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}j=j-d|0;if((j|0)>(d|0))continue;break}}Pc(m,b,c);if((l|0)>0){a=h>>>0<=1?1:h;g=a&8190;e=a&1;i=0;c=n>>>0<16;while(1){f=i+m|0;j=P(h,i)+b|0;a=0;k=0;if(!c)while(1){H[a+j|0]=K[f+P((a^-1)+h|0,l)|0];H[j+(a|1)|0]=K[f+P((a^-2)+h|0,l)|0];a=a+2|0;k=k+2|0;if((g|0)!=(k|0))continue; -break}if(e)H[a+j|0]=K[f+P((a^-1)+h|0,l)|0];i=i+1|0;if((l|0)>(i|0))continue;break}}Kb(m)}}function Il(a,b){var c=0,d=0,e=0,f=0;f=J[a+420>>2];lE(a);d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=255;e=J[d+4>>2]-1|0;J[d+4>>2]=e;a:{if(e)break a;if(Ab[J[d+12>>2]](a)|0)break a;e=J[a>>2];J[e+20>>2]=25;Ab[J[e>>2]](a)}d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=b-48;b=J[d+4>>2]-1|0;J[d+4>>2]=b;b:{if(b)break b;if(Ab[J[d+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(J[a+288>>2]>0){d=0;while(1){b=d<< -2;e=J[(b+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2])){c=J[((J[e+20>>2]<<2)+f|0)+76>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35| -0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;b=b+f|0;J[b+52>>2]=0;J[b+36>>2]=0}if(J[a+364>>2])Nb(J[((J[e+24>>2]<<2)+f|0)+140>>2],0,256);d=d+1|0;if((d|0)>2])continue;break}}J[f+28>>2]=11;J[f+32>>2]=-1; -J[f+20>>2]=0;J[f+24>>2]=0;J[f+12>>2]=0;J[f+16>>2]=65536}function Zg(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0;i=xb-16|0;xb=i;J[i+8>>2]=c;J[i+12>>2]=b;b=i+4|0;c=J[d+28>>2];J[b>>2]=c;J[c+4>>2]=J[c+4>>2]+1;J[195395]=0;j=_(3551,b|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){b=J[b>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)Ab[J[J[b>>2]+8>>2]](b);J[e>>2]=0;b=0;a:{while(1){if(b|(g|0)==(h|0))break a;b:{if(Gf(i+12|0,i+8|0))break b;c:{if((Ab[J[J[j>>2]+52>>2]](j,J[g>>2],0)|0)==37){if((g+4|0)==(h|0))break b;c= -0;d:{e:{b=Ab[J[J[j>>2]+52>>2]](j,J[g+4>>2],0)|0;if((b|0)==69)break e;k=1;if((b&255)==48)break e;break d}if((g+8|0)==(h|0))break b;k=2;c=b;b=Ab[J[J[j>>2]+52>>2]](j,J[g+8>>2],0)|0}l=i,m=Ab[J[J[a>>2]+36>>2]](a,J[i+12>>2],J[i+8>>2],d,e,f,b,c)|0,J[l+12>>2]=m;g=((k<<2)+g|0)+4|0;break c}if(Ab[J[J[j>>2]+12>>2]](j,1,J[g>>2])|0){while(1){f:{g=g+4|0;if((h|0)==(g|0)){g=h;break f}if(Ab[J[J[j>>2]+12>>2]](j,1,J[g>>2])|0)continue}break}while(1){c=i+12|0;if(Gf(c,i+8|0))break c;b=J[c>>2];k=J[b+12>>2];g:{if((k|0)== -J[b+16>>2]){b=Ab[J[J[b>>2]+36>>2]](b)|0;break g}b=J[k>>2]}if(!(Ab[J[J[j>>2]+12>>2]](j,1,b)|0))break c;Gj(c);continue}}k=i+12|0;b=J[k>>2];c=J[b+12>>2];h:{if((c|0)==J[b+16>>2]){b=Ab[J[J[b>>2]+36>>2]](b)|0;break h}b=J[c>>2]}if((Ab[J[J[j>>2]+28>>2]](j,b)|0)==(Ab[J[J[j>>2]+28>>2]](j,J[g>>2])|0)){g=g+4|0;Gj(k);break c}J[e>>2]=4}b=J[e>>2];continue}break}J[e>>2]=4}if(Gf(i+12|0,i+8|0))J[e>>2]=J[e>>2]|2;xb=i+16|0;return J[i+12>>2]}c=Z()|0;a=J[i+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>> -2]](a);ba(c|0);B()}function Dl(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{e:{f:{e=J[a+708>>2];switch(e|0){case 1:break d;case 0:break e;default:break f}}e=e-1|0;J[a+708>>2]=e;if((e|0)!=1)break e;Wb(a,262059);mc(a,c);return}d=J[a+348>>2];e=J[a+200>>2];g:{h:{if(e&4){if((d|0)==1229209940){e=a+348|0;d=1229209940;break h}J[a+200>>2]=e|8}e=a+348|0;if(d&536870912)break g}if((Fl(a,d)|0)==3)break g;if(!J[a+640>>2])break c}if(!(K[a+205|0]&128|J[a+640>>2]))break d;J[a+728>>2]=c;H[a+720|0]=0;d=J[a+348>>2];H[a+ -719|0]=d;H[a+718|0]=d>>>8;H[a+717|0]=d>>>16;H[a+716|0]=d>>>24;i:{if(!c){J[a+724>>2]=0;break i}d=Zd(a,c);J[a+724>>2]=d;Gd(a,d,c);Fc(a,d,c)}g=a+716|0;c=J[a+640>>2];j:{k:{if(!c)break k;c=Ab[c|0](a,g)|0;if((c|0)<0)break b;if(c)break j;c=J[e>>2];if(c&536870912)break k;if((Fl(a,c)|0)!=3)break a}e=0;l:{if(!a|!b)break l;m:{c=J[b+192>>2];n:{if(!(c^2147483647))break n;c=c+1|0;if(c>>>0>214748363)break n;c=Ed(a,P(c,20));if(c)break m}Wb(a,259246);break l}d=c;c=J[b+188>>2];h=Mb(d,c,P(J[b+192>>2],20));cc(a,c);J[b+ -188>>2]=0;while(1){c=P(e,20);d=c+g|0;f=J[d>>2];c=c+(P(J[b+192>>2],20)+h|0)|0;H[c+4|0]=0;J[c>>2]=f;f=J[d+12>>2];J[c+12>>2]=f;H[c+16|0]=J[a+200>>2];o:{if(!f){J[c+8>>2]=0;break o}f=Ed(a,f);J[c+8>>2]=f;if(!f){Wb(a,259246);J[c+12>>2]=0;break o}Mb(f,J[d+8>>2],J[d+12>>2])}e=e+1|0;if((e|0)!=1)continue;break}J[b+188>>2]=h;J[b+192>>2]=J[b+192>>2]+1;J[b+184>>2]=J[b+184>>2]|512}}cc(a,J[a+724>>2]);c=0;J[a+724>>2]=0}mc(a,c);return}Gl(a,262101);B()}Gl(a,262124);B()}Gl(a,262101);B()}function Jca(a,b,c,d,e,f,g,h, -i){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;var j=0,k=0,l=0,m=0,n=0,o=0;d=xb-16|0;xb=d;if(f>>>0>=2){o=P((g|0)/2|0,6);g=((e<<2)+b|0)+(h<<2)|0;n=(h<<1)+e<<2;while(1){c=e;if(e>>>0>=2)while(1){h=K[i+4|0];j=K[i+5|0];k=d+12|0;l=d+8|0;m=d+4|0;uc(J[a+68>>2],K[i|0],h,j,k,l,m);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+1|0],h,j,k,l,m);J[b+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+2|0],h,j,k,l,m);J[g>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>> -2]<<16|-16777216;uc(J[a+68>>2],K[i+3|0],h,j,k,l,m);J[g+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;g=g+8|0;b=b+8|0;c=c-2|0;if(c>>>0>1)continue;break}if(c){c=K[i+4|0];h=K[i+5|0];j=d+12|0;k=d+8|0;l=d+4|0;uc(J[a+68>>2],K[i|0],c,h,j,k,l);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+2|0],c,h,j,k,l);J[g>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;g=g+4|0;b=b+4|0}i=i+o|0;g=g+n|0;b=b+n|0;f=f-2|0;if(f>>>0>1)continue;break}}a:{if(!f)break a;if(e>>> -0>=2)while(1){c=K[i+4|0];f=K[i+5|0];g=d+12|0;h=d+8|0;j=d+4|0;uc(J[a+68>>2],K[i|0],c,f,g,h,j);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+1|0],c,f,g,h,j);J[b+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;b=b+8|0;e=e-2|0;if(e>>>0>1)continue;break}if(!e)break a;uc(J[a+68>>2],K[i|0],K[i+4|0],K[i+5|0],d+12|0,d+8|0,d+4|0);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216}xb=d+16|0}function f9(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;var g=0,h=0,i= -0,j=0;g=xb-80|0;xb=g;if(b){J[g+8>>2]=3;Ab[J[J[b>>2]+308>>2]](b,g+8|0)|0;a:{b:{c:switch(J[a+24>>2]-1|0){case 0:h=J[a+16>>2];J[g+76>>2]=0;O[g+32>>3]=d;O[g+24>>3]=c;J[g+16>>2]=h;J[g+8>>2]=388672;J[g+12>>2]=b;O[g+40>>3]=e;O[g+48>>3]=f;h=Ab[J[J[h>>2]+16>>2]](h)|0;i=J[h+8>>2];j=J[h>>2];O[g+64>>3]=f/R(+(J[h+12>>2]-J[h+4>>2]|0));O[g+56>>3]=e/R(+(i-j|0));h=J[a+16>>2];J[195395]=0;I[g+72>>1]=256;$(1802,h|0,g+8|0);h=J[195395];J[195395]=0;d:{if((h|0)==1)break d;a=J[a+16>>2];h=J[J[a>>2]+124>>2];J[195395]=0;ea(h| -0,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;J[g+8>>2]=388672;a=J[g+76>>2];if(!a)break a;Kb(a);break a}b=Z()|0;J[g+8>>2]=388672;a=J[g+76>>2];if(!a)break b;Kb(a);ba(b|0);B();case 1:break c;default:break a}h=J[a+20>>2];if(h)i=J[J[h>>2]-12>>2]+h|0;J[g+76>>2]=0;O[g+48>>3]=f;O[g+40>>3]=e;O[g+32>>3]=d;O[g+24>>3]=c;J[g+16>>2]=i;J[g+8>>2]=388672;J[g+12>>2]=b;if(i){h=Ab[J[J[i>>2]+16>>2]](i)|0;i=J[h+8>>2];j=J[h>>2];O[g+64>>3]=f/R(+(J[h+12>>2]-J[h+4>>2]|0));O[g+56>>3]=e/R(+(i-j|0));h=J[a+20>>2]}J[195395]= -0;I[g+72>>1]=256;$(1804,h|0,g+8|0);h=J[195395];J[195395]=0;e:{if((h|0)==1)break e;a=J[a+20>>2];h=J[J[a>>2]+16>>2];J[195395]=0;ea(h|0,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break e;J[g+8>>2]=388672;a=J[g+76>>2];if(!a)break a;Kb(a);break a}b=Z()|0;J[g+8>>2]=388672;a=J[g+76>>2];if(!a)break b;Kb(a)}ba(b|0);B()}J[g+8>>2]=3;Ab[J[J[b>>2]+312>>2]](b,g+8|0)|0}xb=g+80|0;return(b|0)!=0|0}function yl(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;g=P(d,1348)+a|0;k=J[g+44>>2];c=b?J[(P(b,12)+c|0)-12>>2]: -0;f=J[J[a+2748>>2]+40>>2];e=(f|0)/256|0;l=(P(f,6E3)|0)/2048|0;a:{if((k|0)<=0)break a;b=J[g+52>>2];h=b+P(k,44)|0;m=f+255>>>0<511?1:e;i=J[(P(d,1348)+a|0)+68>>2];b:{if(!c){d=b;while(1){if((i|0)==H[d+1|0]){f=I[d+2>>1];a=b;while(1){c:{if((i|0)!=(0-H[a+1|0]|0))break c;g=I[a+2>>1];if((g|0)<=(f|0))break c;e=I[d+8>>1];c=I[a+8>>1];j=(c|0)>(e|0)?e:c;e=I[d+6>>1];c=I[a+6>>1];c=j-((c|0)<(e|0)?e:c)|0;if((c|0)<(m|0))break c;c=(g-f|0)+((l|0)/(c|0)|0)|0;if((c|0)>2]){J[d+20>>2]=a;J[d+28>>2]=c}if((c|0)>=J[a+ -28>>2])break c;J[a+20>>2]=d;J[a+28>>2]=c}a=a+44|0;if(h>>>0>a>>>0)continue;break}}d=d+44|0;if(h>>>0>d>>>0)continue;break}break b}d=b;while(1){if((i|0)==H[d+1|0]){j=I[d+2>>1];a=b;while(1){d:{if((i|0)!=(0-H[a+1|0]|0))break d;f=I[a+2>>1];if((f|0)<=(j|0))break d;g=I[d+8>>1];e=I[a+8>>1];n=(e|0)>(g|0)?g:e;g=I[d+6>>1];e=I[a+6>>1];g=n-((e|0)<(g|0)?g:e)|0;if((g|0)<(m|0))break d;e=(f-j<<10)/(c|0)|0;f=32E3;e:{if((e|0)>11024)break e;f=0;if((e|0)<1025)break e;e=e-1024|0;f=(P(e,e)>>>0)/3E3|0}e=f+((l|0)/(g|0)|0)| -0;if((e|0)>2]){J[d+20>>2]=a;J[d+28>>2]=e}if((e|0)>=J[a+28>>2])break d;J[a+20>>2]=d;J[a+28>>2]=e}a=a+44|0;if(h>>>0>a>>>0)continue;break}}d=d+44|0;if(h>>>0>d>>>0)continue;break}}if((k|0)<=0)break a;while(1){a=J[b+20>>2];if(!(!a|J[a+20>>2]==(b|0))){J[b+20>>2]=0;J[b+24>>2]=J[a+20>>2]}b=b+44|0;if(h>>>0>b>>>0)continue;break}}}function ys(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,w=0,x=0;a:{c=P(b,1348)+a|0;e=J[c+56>>2];if((e|0)<=0)break a;g=J[a+24>> -2];if((g|0)<=0)break a;a=J[a+28>>2];l=a+P(g,40)|0;h=b?8:4;m=h|16;f=J[c- -64>>2];c=f+P(e,44)|0;n=c-40|0;o=c-36|0;p=c-44|0;i=(b|0)==1;q=i?14:12;r=(e|0)==2;s=(e|0)==3;t=(e|0)==5;u=(e|0)==6;v=(e|0)==7;w=b?20:16;while(1){if(!(L[a>>1]&m)){b=J[(i?8:4)+a>>2];x=a+w|0;d=I[a+q>>1];c=(b+J[f+8>>2]|0)-J[f+4>>2]|0;b:{if((d|0)<=I[f>>1])break b;c=(b+J[o>>2]|0)-J[n>>2]|0;if(I[p>>1]<=(d|0))break b;b=0;c:{c=e;d:{if(c>>>0<=8){c=I[f>>1];b=(c|0)<(d|0)?e:0;e:{if((e|0)==1|(c|0)>=(d|0))break e;c=I[f+44>>1];b=(c|0)>=(d|0)? -1:e;if(r|(c|0)>=(d|0))break e;c=I[f+88>>1];b=(c|0)>=(d|0)?2:e;if(s|(c|0)>=(d|0))break e;c=I[f+132>>1];b=(c|0)>=(d|0)?3:e;if((e|0)==4|(c|0)>=(d|0))break e;c=I[f+176>>1];b=(c|0)>=(d|0)?4:e;if(t|(c|0)>=(d|0))break e;c=I[f+220>>1];b=(c|0)>=(d|0)?5:e;if(u|(c|0)>=(d|0))break e;c=I[f+264>>1];b=(c|0)>=(d|0)?6:e;if(v|(c|0)>=(d|0))break e;b=I[f+308>>1]>=(d|0)?7:e}c=P(b,44)+f|0;if(L[c>>1]!=(d&65535))break d;c=J[c+8>>2];break b}while(1){g=b+c>>1;j=P(g,44)+f|0;k=I[j>>1];f:{if((k|0)>(d|0)){c=g;break f}if((d|0)<= -(k|0))break c;b=g+1|0}if((b|0)<(c|0))continue;break}}b=P(b,44)+f|0;c=b-44|0;g=J[c+16>>2];if(!g){g=dc(J[b+8>>2]-J[b-36>>2]|0,I[b>>1]-I[c>>1]|0);J[c+16>>2]=g}c=J[b-36>>2]+Rb(d-I[c>>1]|0,g)|0;break b}c=J[j+8>>2]}J[x>>2]=c;I[a>>1]=L[a>>1]|h}a=a+40|0;if(l>>>0>a>>>0)continue;break}}}function KO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=xb-17408|0;xb=e;d=96;a:{if(!a)break a;a=J[b+4>>2];d=20;if(!a)break a;f=I[a+2>>1];d=0;if(!f)break a;c=I[a>>1];d=0;if((c|0)<=0)break a;g=J[a+12>>2];d=20;if(!g)break a;d=20; -if(!J[a+4>>2])break a;d=20;if((f|0)!=(I[((c<<1)+g|0)-2>>1]+1|0))break a;d=19;if(K[b+8|0]&3)break a;b=J[b>>2];d=20;if(!b)break a;d=0;if(!J[b+4>>2])break a;d=0;if(!J[b>>2])break a;d=20;if(!J[b+12>>2])break a;J[e+16520>>2]=J[a+16>>2];f=J[a+12>>2];c=e+16512|0;J[c>>2]=J[a+8>>2];J[c+4>>2]=f;c=J[a+4>>2];J[e+16504>>2]=J[a>>2];J[e+16508>>2]=c;c=J[b+12>>2];a=e+16488|0;J[a>>2]=J[b+8>>2];J[a+4>>2]=c;c=J[b+20>>2];a=e+16496|0;J[a>>2]=J[b+16>>2];J[a+4>>2]=c;a=J[b+4>>2];J[e+16480>>2]=J[b>>2];J[e+16484>>2]=a;a=e+ -16384|0;J[e+16412>>2]=a;J[e+16408>>2]=e;b=J[a+136>>2];c=b&256;J[a+20>>2]=c?30:2;J[a+16>>2]=c?256:32;c=c?12:6;J[a>>2]=c;c=1<>2]=c;J[a+12>>2]=c>>>6;J[a+8>>2]=c>>>1;b:{if(b&8){H[a+164|0]=2;break b}c=b>>>2&4;H[a+164|0]=c;if(b&32)break b;H[a+164|0]=c|1}J[a+1008>>2]=0;J[a+160>>2]=53;J[a+156>>2]=54;J[a+152>>2]=55;J[a+148>>2]=56;I[a+944>>1]=0;H[a+165|0]=!(b&512);b=J[a+96>>2]-1|0;I[a+946>>1]=b;I[a+52>>1]=J[a+100>>2];c=J[a+108>>2];J[a+56>>2]=c;f=J[a+104>>2];if((f|0)>0)J[a+56>>2]=c+P(b,f);b=Zv(a,0); -c:{if(b)break c;if(!(!K[a+165|0]|K[a+164|0]==2)){J[a+1008>>2]=0;J[a+160>>2]=57;J[a+156>>2]=58;J[a+152>>2]=59;J[a+148>>2]=60;I[a+944>>1]=0;I[a+946>>1]=L[a+100>>1]-1;b=Zv(a,1);if(b)break c}b=0}d=b}c=d;xb=e+17408|0;return c|0}function IA(a,b){var c=0,d=0,e=0,f=0,g=0;f=J[a+12>>2];c=J[a+8>>2];if(f>>>0>c+3>>>0){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+4>>2]=g;if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+8>>2]=e;if(c+3>>>0>> -0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,e),C())}else d=0;O[b+16>>3]=d;e=0;a:{if(c+3>>>0>=f>>>0){g=0;break a}g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+24>>2]=g;if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+28>>2]=e;e=0;if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b+32>>2]=e;if(c+3>>>0>=f>>>0)d=0;else{e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3| -0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,e),C())}O[b+40>>3]=d;if(c+3>>>0>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,e),C())}else d=0;O[b+48>>3]=d;if(c+3>>>0>=f>>>0)d=0;else{e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,e),C())}O[b+56>>3]=d;e=b- -64|0;if(c+3>>>0>>0){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,g),C())}else d=0;O[e>>3]=d;if(c+3>>>0>=f>>>0)d=0;else{e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16| -K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c;d=+(x(2,e),C())}O[b+72>>3]=d;if(c+3>>>0>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[a+8>>2]=c+4;d=+(x(2,f),C())}else d=0;O[b+80>>3]=d}function uD(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;h=xb-16|0;xb=h;a:{b:{c:{d:{e:{f:{d=J[a+708>>2];switch(d|0){case 1:break d;case 0:break e;default:break f}}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break e;Wb(a,261787);mc(a,c);break a}d=J[a+200>>2];if(!(d&1))break c;if(d&4)J[a+200>>2]=d|8;cc(a,J[a+740>>2]);d= -Ed(a,c+1|0);J[a+740>>2]=d;if(!d){Wb(a,261845);break a}Gd(a,d,c);Fc(a,d,c);d=mc(a,0);e=J[a+740>>2];if(d){cc(a,e);J[a+740>>2]=0;break a}H[c+e|0]=0;g=J[a+740>>2];e=g;while(1){d=e;e=d+1|0;if(K[d|0])continue;break}g:{if(c>>>0>=3){j=c+g|0;if(j-3>>>0>e>>>0)break g}Wb(a,261877);cc(a,J[a+740>>2]);J[a+740>>2]=0;break a}f=H[d+2|0];k=d+3|0;e=k;h:{i=K[d+1|0];if(!i)break h;if((i|0)!=1){Wb(a,261898);cc(a,J[a+740>>2]);J[a+740>>2]=0;break a}if(!f)break h;Wb(a,261928);cc(a,J[a+740>>2]);J[a+740>>2]=0;break a}while(1){d= -K[e|0];l=e+1|0;e=l;if(d)continue;break}if(e>>>0>=j>>>0)break b;while(1){d=K[e|0];e=e+1|0;if(d)continue;break}if(e>>>0>=j>>>0){Wb(a,261958);cc(a,J[a+740>>2]);J[a+740>>2]=0;break a}e=e-g|0;i:{if(i){Cr(a,f,c,e,h+12|0);break i}m=h,n=ac(e+g|0),J[m+12>>2]=n}f=Ed(a,28);if(!f){Wb(a,261979);cc(a,J[a+740>>2]);J[a+740>>2]=0;break a}J[f>>2]=i?2:1;d=J[a+740>>2];J[f+20>>2]=d+(k-g|0);J[f+24>>2]=d+(l-g|0);c=J[h+12>>2];J[f+12>>2]=0;J[f+16>>2]=c;J[f+8>>2]=d+e;J[f+4>>2]=d;b=zr(a,b,f);cc(a,f);cc(a,J[a+740>>2]);J[a+740>> -2]=0;if(!b)break a;gc(a,262019);B()}mc(a,c);break a}gc(a,261820);B()}Wb(a,261877);cc(a,J[a+740>>2]);J[a+740>>2]=0}xb=h+16|0}function uo(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;k=xb-16|0;xb=k;f=6;a:{if(!a)break a;g=J[a+12>>2];if(g>>>0<=b>>>0)break a;l=J[a>>2];b:{c:{d:{e:{f:{h=J[a+28>>2];if(!h){f=bc(l,(J[a+8>>2]+J[a+4>>2]|0)+P(K[a+16|0],b)|0);if(f)break a;f=Dd(J[a>>2],k+8|0,K[a+16|0]);if(f)break a;g:{j=K[a+16|0];if(j){h=0;if(j>>>0>=4){i=j&252;f=0;while(1){g=e;e=e+4|0;f=f+4|0;if((i|0)!= -(f|0))continue;break}f=k+8|0;i=K[f+(g|3)|0]|(K[f+(g|2)|0]|(K[f+g|0]<<16|K[f+(g|1)|0]<<8))<<8}g=j&3;if(g)while(1){i=K[(k+8|0)+e|0]|i<<8;e=e+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}if(i)break g}i=0;f=0;break e}while(1){f=Dd(J[a>>2],k+12|0,K[a+16|0]);h:{if(f)break h;m=K[a+16|0];if(!m)break h;j=0;h=0;e=0;if(m>>>0>=4){n=m&252;while(1){g=h;h=g+4|0;e=e+4|0;if((n|0)!=(e|0))continue;break}e=k+12|0;e=K[e+(g|3)|0]|(K[e+(g|2)|0]|(K[e+g|0]<<16|K[e+(g|1)|0]<<8))<<8}g=m&3;if(g)while(1){e=K[(k+12|0)+h|0]|e<<8; -h=h+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}if(e)break f}b=b+1|0;if(b>>>0>2])continue;break}break e}f=0;i=J[h+(b<<2)>>2];if(!i)break e;while(1){b=b+1|0;e=J[h+(b<<2)>>2];if(e)break f;if((b|0)!=(g|0))continue;break}break e}f=0;b=J[l+4>>2];h=b+1|0;if(h>>>0>=e>>>0)break d;j=J[a+20>>2];break c}b=J[l+4>>2];e=0}j=J[a+20>>2];h=b+1|0;if(j>>>0<=h-e>>>0)break b}e=h-j|0}if(!(!i|e>>>0<=i>>>0)){b=e-i|0;J[d>>2]=b;d=J[a+32>>2];if(d){J[c>>2]=(d+i|0)-1;break a}f=bc(l,(J[a+20>>2]+i|0)-1|0);if(f)break a;f= -Ne(l,b,c);break a}J[c>>2]=0;J[d>>2]=0}xb=k+16|0;return f}function oH(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;h=J[b+12>>2];if((h|0)!=-1){h=P(h,28)+b|0;i=Ab[J[h+28>>2]](J[h+16>>2],a,1)|0}f=J[a+88>>2];d=J[f+64>>2];a:{if(d>>>0>=M[f+68>>2])break a;h=b+16|0;while(1){if(!K[f+60|0])break a;d=J[f+80>>2]+P(d,20)|0;e=J[d>>2];b:{c:{if(!(J[b>>2]>>>(e>>>4)&1)|!(J[b+4>>2]>>>e&1)|(!(J[b+8>>2]>>>(e>>>9)&1)|!(J[a+176>>2]&J[d+4>>2])))break c;g=J[a+184>>2];d=L[d+12>>1];if(g&d&14)break c;if(d&8)if(!Bd(a, -e,d,g))break c;if(i){d=h;g=c;if(!g)break c;while(1){d:{e=J[a+88>>2];e=J[J[e+80>>2]+P(J[e+64>>2],20)>>2];if(!(J[d+16>>2]>>>(e>>>4)&1)|!(J[d+20>>2]>>>e&1)|!(J[d+24>>2]>>>(e>>>9)&1))break d;if(!(Ab[J[d+8>>2]](J[d>>2],a)|0))break d;j=1;break b}d=d+28|0;g=g-1|0;if(g)continue;break}break c}d=h;g=c;if(!g)break c;while(1){e:{e=J[a+88>>2];e=J[J[e+80>>2]+P(J[e+64>>2],20)>>2];if(!(J[d+16>>2]>>>(e>>>4)&1)|!(J[d+20>>2]>>>e&1)|!(J[d+24>>2]>>>(e>>>9)&1))break e;if(!(Ab[J[d+4>>2]](J[d>>2],a)|0))break e;j=1;break b}d= -d+28|0;g=g-1|0;if(g)continue;break}}if(K[f+62|0]){f:{if(J[f+84>>2]==J[f+80>>2]){d=J[f+72>>2];if((d|0)==J[f+64>>2])break f}if(!ec(f,1,1))break b;d=J[f+80>>2]+P(J[f+64>>2],20)|0;g=J[d+4>>2];e=J[f+84>>2]+P(J[f+72>>2],20)|0;J[e>>2]=J[d>>2];J[e+4>>2]=g;J[e+16>>2]=J[d+16>>2];g=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=g;d=J[f+72>>2]}J[f+72>>2]=d+1}J[f+64>>2]=J[f+64>>2]+1}d=J[f+64>>2];if(d>>>0>2])continue;break}}if(i){b=P(J[b+12>>2],28)+b|0;Ab[J[b+28>>2]](J[b+16>>2],a,0)|0}return j|0}function w9(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:{e=J[J[a+584>>2]+4>>2];if((e|0)>=(c|0))break a;c=c-e|0;b:switch(e-3|0){case 0:a=K[b+2|0];d=K[b+1|0];f=K[b|0];while(1){g=K[b+3|0];H[b+3|0]=g-f;f=K[b+4|0];H[b+4|0]=f-d;d=K[b+5|0];H[b+5|0]=d-a;b=b+3|0;e=(c|0)>3;a=d;d=f;f=g;c=c-3|0;if(e)continue;break}break a;case 1:a=K[b+3|0];d=K[b+2|0];f=K[b+1|0];g=K[b|0];while(1){e=K[b+4|0];H[b+4|0]=e-g;h=K[b+5|0];H[b+5|0]=h-f;i=K[b+6|0];H[b+6|0]=i-d;j=K[b+7|0];H[b+7|0]=j-a;b=b+4|0;k=(c|0)>4;c=c-4|0;g=e; -f=h;d=i;a=j;if(k)continue;break}break a;default:break b}b=(b+c|0)-1|0;if((e|0)<5)while(1){c:switch(e|0){default:a=b+e|0;H[a|0]=K[a|0]-K[b|0];a=b-1|0;d=a+e|0;H[d|0]=K[d|0]-K[a|0];b=b-2|0;case 2:a=b+e|0;H[a|0]=K[a|0]-K[b|0];b=b-1|0;case 1:a=b+e|0;H[a|0]=K[a|0]-K[b|0];b=b-1|0;break;case 0:break c}c=c-e|0;if((c|0)>0)continue;break a}a=e-4|0;h=e&3;i=e-5>>>0<3;while(1){d:switch(e|0){default:g=0;f=a;if(h)while(1){d=b+e|0;j=d;k=K[d|0];d=b;H[j|0]=k-K[b|0];f=f-1|0;b=b-1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}if(!i)while(1){d= -b+e|0;H[d|0]=K[d|0]-K[b|0];d=b-1|0;g=d+e|0;H[g|0]=K[g|0]-K[d|0];d=b-2|0;g=d+e|0;H[g|0]=K[g|0]-K[d|0];d=b-3|0;g=e+d|0;H[g|0]=K[g|0]-K[d|0];b=b-4|0;g=(f|0)>4;f=f-4|0;if(g)continue;break}f=b+e|0;H[f|0]=K[f|0]-K[b|0];b=d-2|0;f=b+e|0;H[f|0]=K[f|0]-K[b|0];b=d-3|0;case 2:d=b+e|0;H[d|0]=K[d|0]-K[b|0];b=b-1|0;case 1:d=b+e|0;H[d|0]=K[d|0]-K[b|0];b=b-1|0;break;case 0:break d}c=c-e|0;if((c|0)>0)continue;break}}}function Qfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;s=xb-160|0;xb=s;m=J[a+332>>2];a=J[b+84>>2];b=s;while(1){g=J[a+96>>2];h=I[c+48>>1];f=J[a+32>>2];i=I[c+16>>1];n=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+64>>2],I[c+32>>1]);k=P(J[a+128>>2],I[c+64>>1]);l=j-k|0;J[b+64>>2]=n+P(l,-11584)>>11;h=P(g,h);f=P(f,i);g=P(h+f|0,6810);i=n+P(l,2896)|0;j=P(j+k|0,6476);k=i+j|0;f=g+P(f,4209)|0;J[b+128>>2]=k-f>>11;J[b>>2]=f+k>>11;f=i-j|0;g=g+P(h,-17828)|0;J[b+96>>2]=f-g>>11;J[b+32>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;o=o+1|0;if((o|0)!=8)continue; -break}b=m+128|0;a=s;m=0;while(1){k=J[a+24>>2];i=J[a+8>>2];h=P(k+i|0,6810);c=J[(m<<2)+d>>2]+e|0;f=J[a+28>>2];j=J[a+12>>2];l=f+j|0;n=P(l,7791);g=J[a+4>>2];o=J[a+20>>2];p=o<<13;f=j-f|0;t=p+P(f,2531)|0;q=(n+P(g,11443)|0)+t|0;u=h+P(i,4209)|0;j=(J[a>>2]<<13)+131072|0;i=J[a+16>>2];v=j+P(i,9373)|0;r=u+v|0;H[c|0]=K[b+(q+r>>>18&1023)|0];H[c+9|0]=K[b+(r-q>>>18&1023)|0];l=P(l,4815);p=p+P(f,-6627)|0;q=P(g,10323)-(l+p|0)|0;h=h+P(k,-17828)|0;k=j+P(i,-3580)|0;r=h+k|0;H[c+1|0]=K[b+(q+r>>>18&1023)|0];H[c+8|0]=K[b+ -(r-q>>>18&1023)|0];f=g-(f+o|0)<<13;i=j+P(i,-11586)|0;H[c+2|0]=K[b+(f+i>>>18&1023)|0];H[c+7|0]=K[b+(i-f>>>18&1023)|0];f=p+(P(g,5260)-l|0)|0;h=k-h|0;H[c+3|0]=K[b+(f+h>>>18&1023)|0];H[c+6|0]=K[b+(h-f>>>18&1023)|0];g=t+(P(g,1812)-n|0)|0;h=v-u|0;H[c+4|0]=K[b+(g+h>>>18&1023)|0];H[c+5|0]=K[b+(h-g>>>18&1023)|0];a=a+32|0;m=m+1|0;if((m|0)!=5)continue;break}xb=s+160|0}function Cca(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(f){a=e>>>0<8;c=h<<2;while(1){h= -e;if(!a)while(1){J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;J[b+4>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|K[l+1|0]<<24;J[b+8>>2]=K[i+2|0]|K[j+2|0]<<8|K[k+2|0]<<16|K[l+2|0]<<24;J[b+12>>2]=K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|K[l+3|0]<<24;J[b+16>>2]=K[i+4|0]|K[j+4|0]<<8|K[k+4|0]<<16|K[l+4|0]<<24;J[b+20>>2]=K[i+5|0]|K[j+5|0]<<8|K[k+5|0]<<16|K[l+5|0]<<24;J[b+24>>2]=K[i+6|0]|K[j+6|0]<<8|K[k+6|0]<<16|K[l+6|0]<<24;J[b+28>>2]=K[i+7|0]|K[j+7|0]<<8|K[k+7|0]<<16|K[l+7|0]<<24;b=b+32|0;l=l+8|0;k=k+8|0;j=j+8|0; -i=i+8|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 5:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 4:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 3:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 2:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1| -0;k=k+1|0;j=j+1|0;i=i+1|0;case 1:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 0:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;break;default:break a}l=g+l|0;k=g+k|0;j=g+j|0;i=g+i|0;b=b+c|0;f=f-1|0;if(f)continue;break}}}function gL(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;h=xb-80|0;xb=h;j=J[a+532>>2];a:{if(!j){a=6;break a}g=J[a+100>>2];i=J[j+4>>2];if(i){c=j+88|0;f=h+32|0;a=0;while(1){d= -P(a,12);e=d+f|0;J[e>>2]=J[((a<<2)+j|0)+8>>2];d=c+d|0;k=J[d+4>>2];J[e+4>>2]=J[k>>2];J[e+8>>2]=J[(k+(K[d|0]<<2)|0)-4>>2];a=a+1|0;if((i|0)!=(a|0))continue;break}}c=J[j>>2];J[h+20>>2]=0;f=i<<1;e=f+3&-4;g=tc(g,(e+P(i,24)|0)+20|0,h+20|0);a=J[h+20>>2];if(a)break a;J[g+8>>2]=0;J[g+4>>2]=c;J[g>>2]=i;c=g+20|0;b:{if(!i){J[g+16>>2]=0;J[g+12>>2]=c+e;break b}a=0;c=Nb(c,0,f);J[g+16>>2]=0;f=c+e|0;J[g+12>>2]=f;while(1){e=P(a,24)+f|0;d=(h+24|0)+P(a,12)|0;c=J[d+8>>2];J[e>>2]=c;J[e+4>>2]=J[d+12>>2]<<16;d=J[d+16>>2]; -J[e+16>>2]=-1;J[e+20>>2]=-1;J[e+12>>2]=d<<16;c:{if(!c)break c;d=2003265652;d:{if(!fc(c,10150))break d;d=2003072104;if(!fc(c,10287))break d;if(fc(c,10426))break c;d=1869640570}J[e+16>>2]=d}a=a+1|0;if((i|0)!=(a|0))continue;break}ip(J[j+140>>2],h,J[j+4>>2]);if(!i)break b;e=0;while(1){k=J[(e<<2)+h>>2];c=P(e,12)+j|0;d=J[c+96>>2];e:{if((k|0)>J[d>>2]){a=1;l=K[c+88|0];if(l>>>0>1)while(1){m=a<<2;n=J[d+m>>2];if((k|0)<=(n|0)){c=J[c+92>>2];f=m-4|0;a=J[c+f>>2];c=J[c+m>>2];f=J[f+d>>2];a=P(dc(k-f|0,n-f|0),c-a|0)+ -(a<<16)|0;f=J[g+12>>2];break e}a=a+1|0;if((l|0)!=(a|0))continue;break}a=J[(J[c+92>>2]+(l<<2)|0)-4>>2]<<16;break e}a=J[J[c+92>>2]>>2]<<16}J[(P(e,24)+f|0)+8>>2]=a;e=e+1|0;if((i|0)!=(e|0))continue;break}}J[b>>2]=g;a=J[h+20>>2]}xb=h+80|0;return a|0}function Hoa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;f=J[b+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0>67108863)d=1073741823;else{d=f<<6;d=d>>> -0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(f>>>0<4)break f;g:{if(((K[e|0]|K[e+1|0]<<8)&65279)==512)break g;if(K[a+28|0]|!J[a+32>>2])break f;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break f;while(1){H[a+28|0]=1;c=J[a+36>>2];e=J[c+12>>2];J[a+4>>2]=e;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0<=67108863){d=f<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}else d=1073741823;J[a+16>>2]=d;J[a+ -24>>2]=0;J[a>>2]=0;if(!e)break b;if(f>>>0<4)break f;if(((K[e|0]|K[e+1|0]<<8)&65279)==512)break g;if(K[a+28|0]|!J[a+32>>2])break f;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}break f}if(!J[a+32>>2])break d;J[a+32>>2]=0;if(J[a+32>>2]|(M[a+12>>2]>2]>>>0|J[a+8>>2]-e>>>0<4))break f;c=K[e|0]|K[e+1|0]<<8;Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if((c&65279)!=512)break e;break c}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}Ub(b);return 169776}Ub(J[a+ -36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function zE(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;j=J[a+8>>2];a:{b:{l=J[a+12>>2];h=J[l+36>>2];c:{if((h|0)<=0){if(!h)break c;c=6;break b}k=Ab[J[j+4>>2]](j,h)|0;if(!k){c=64;break b}i=Nb(k,0,h)}J[i+100>>2]=j;J[i+96>>2]=a;J[i+104>>2]=J[b>>2];if(c)J[i+8>>2]=J[i+8>>2]|1024;d:{k=Ab[J[j+4>>2]](j,68)|0;if(!k){c=64;break d}h=0;c=Nb(k,0,68);J[i+ -128>>2]=c;e:{if((e|0)<=0)break e;a=0;while(1){if(h)break e;h=0;m=(a<<3)+f|0;if(J[m>>2]==1768842098){h=J[m+4>>2];J[c+52>>2]=h}a=a+1|0;if((e|0)!=(a|0))continue;break}}J[c+60>>2]=-1;a=J[l+48>>2];f:{if(!a){J[b>>2]=J[i+104>>2];break f}c=Ab[a|0](J[b>>2],i,d,e,f)|0;J[b>>2]=J[i+104>>2];if(c)break d}b=J[i+40>>2];g:{if(!b)break g;a=b+(J[i+36>>2]<<2)|0;c=a-4|0;h:{if(b>>>0<=c>>>0)while(1){h=J[c>>2];i:{if(J[h+4>>2]!=1970170211)break i;j:switch(L[h+8>>1]){case 3:if(L[h+10>>1]!=10)break i;break h;case 0:break j; -default:break i}if(L[h+10>>1]==4)break h}c=c-4|0;if(b>>>0<=c>>>0)continue;break}while(1){a=a-4|0;if(b>>>0>a>>>0)break g;h=J[a>>2];if(J[h+4>>2]!=1970170211)continue;break}}J[i+92>>2]=h}J[g>>2]=i;return 0}if(J[i+36>>2]>0){h=0;while(1){d=h<<2;a=J[d+J[i+40>>2]>>2];b=J[J[a>>2]+100>>2];e=J[J[a+12>>2]+8>>2];if(e)Ab[e|0](a);Ab[J[b+8>>2]](b,a);J[d+J[i+40>>2]>>2]=0;h=h+1|0;if((h|0)>2])continue;break}}a=J[i+40>>2];if(a)Ab[J[j+8>>2]](j,a);J[i+36>>2]=0;J[i+40>>2]=0;a=0;break a}k=0;a=1}b=J[l+52>>2];if(b)Ab[b| -0](i);if(k)Ab[J[j+8>>2]](j,k);if(!a)Ab[J[j+8>>2]](j,i);J[g>>2]=0;return c}function Ifa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;t=xb-208|0;xb=t;n=J[a+332>>2];b=J[b+84>>2];a=t;while(1){f=J[b+192>>2];l=I[c+96>>1];h=J[b+64>>2];o=I[c+32>>1];j=P(I[c>>1],J[b>>2])<<13|1024;g=P(J[b+128>>2],I[c+64>>1]);m=j+P(g,-11586)>>11;i=P(J[b+32>>2],I[c+16>>1]);p=P(J[b+160>>2],I[c+80>>1]);q=P(J[b+96>>2],I[c+48>>1]);r=P(J[b+224>>2],I[c+112>>1]);k=q- -r|0;s=i-(p+k|0)<<2;J[a+140>>2]=m-s;J[a+40>>2]=m+s;l=P(f,l);h=P(h,o);f=P(l+h|0,6810);h=f+P(h,4209)|0;o=j+P(g,9373)|0;m=h+o|0;p=p<<13;s=p+P(k,2531)|0;q=q+r|0;r=P(q,7791);u=s+(r+P(i,11443)|0)|0;J[a+180>>2]=m-u>>11;J[a>>2]=m+u>>11;g=j+P(g,-3580)|0;j=f+P(l,-17828)|0;f=g-j|0;k=p+P(k,-6627)|0;l=P(q,4815);m=k+(P(i,5260)-l|0)|0;J[a+120>>2]=f-m>>11;J[a+60>>2]=f+m>>11;f=o-h|0;h=s+(P(i,1812)-r|0)|0;J[a+100>>2]=f-h>>11;J[a+80>>2]=f+h>>11;g=g+j|0;i=P(i,10323)-(k+l|0)|0;J[a+160>>2]=g-i>>11;J[a+20>>2]=g+i>>11;a= -a+4|0;b=b+4|0;c=c+2|0;v=v+1|0;if((v|0)!=5)continue;break}b=n+128|0;a=t;i=0;while(1){j=J[a+12>>2];k=J[a+4>>2];g=P(j+k|0,6810);c=J[(i<<2)+d>>2]+e|0;k=g+P(k,4209)|0;h=(J[a>>2]<<13)+131072|0;f=J[a+8>>2];n=J[a+16>>2];l=f-n|0;o=h+P(l,2896)|0;f=P(f+n|0,6476);n=o+f|0;H[c|0]=K[b+(k+n>>>18&1023)|0];H[c+4|0]=K[b+(n-k>>>18&1023)|0];g=g+P(j,-17828)|0;j=o-f|0;H[c+1|0]=K[b+(g+j>>>18&1023)|0];H[c+3|0]=K[b+(j-g>>>18&1023)|0];H[c+2|0]=K[b+(h+P(l,268423872)>>>18&1023)|0];a=a+20|0;i=i+1|0;if((i|0)!=10)continue;break}xb= -t+208|0}function Nr(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+288>>2];a:{if((b|0)==1){b=J[a+292>>2];J[a+308>>2]=J[b+28>>2];c=J[b+32>>2];J[a+312>>2]=c;J[b+64>>2]=1;J[b+56>>2]=1;J[b+60>>2]=1;J[b+72>>2]=1;J[b+68>>2]=J[b+36>>2];d=b;b=J[b+12>>2];c=(c>>>0)%(b>>>0)|0;J[d+76>>2]=c?c:b;J[a+316>>2]=1;J[a+320>>2]=0;break a}if(b-5>>>0<=4294967291){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=27;J[J[a>>2]+28>>2]=4;Ab[J[J[a>>2]>>2]](a)}b=P(J[a+376>>2],J[a+268>>2]);J[a+308>>2]=((b+J[a+64>>2]|0)-1|0)/(b|0);b=P(J[a+376>>2],J[a+ -272>>2]);b=((b+J[a+68>>2]|0)-1|0)/(b|0)|0;J[a+316>>2]=0;J[a+312>>2]=b;if(J[a+288>>2]<=0)break a;h=a+320|0;while(1){c=J[((f<<2)+a|0)+292>>2];e=J[c+8>>2];J[c+56>>2]=e;g=J[c+12>>2];J[c+60>>2]=g;b=P(e,g);J[c+64>>2]=b;J[c+68>>2]=P(e,J[c+36>>2]);d=M[c+28>>2]%(e>>>0)|0;J[c+72>>2]=d?d:e;d=c;c=M[c+32>>2]%(g>>>0)|0;J[d+76>>2]=c?c:g;if((b+J[a+316>>2]|0)>=11){c=J[a>>2];J[c+20>>2]=14;Ab[J[c>>2]](a)}b:{if((b|0)<=0)break b;e=0;c=b;g=b&3;if(g)while(1){d=J[a+316>>2];J[a+316>>2]=d+1;J[((d<<2)+a|0)+320>>2]=f;c=c-1| -0;e=e+1|0;if((g|0)!=(e|0))continue;break}if(b>>>0<4)break b;while(1){b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}f=f+1|0;if((f|0)>2])continue;break}}b=J[a+240>>2];if((b|0)>0){c=a;a=P(b,J[a+308>>2]);J[c+236>>2]=(a|0)>=65535?65535:a}}function eK(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;i=xb-16|0;xb=i;b=J[b>>2];J[i+12>>2]=0;a:{if(!b){e=35;break a}e=6;g=J[b+132>>2];if(!g|M[b+16>>2]<=c>>>0)break a;e=3;h=L[g+4>>1];b=(h|0)==768;c=P(c?c-1|0:K[g+106|0],b?6:4)+(b?148:118)|0;f=b?-4:-2;b=J[g+8>>2];if(c>>>0>=(f+b|0)-2>>>0)break a;f=c+J[g+160>>2]|0;j=K[f|0]|K[f+1|0]<<8;J[a+80>>2]=j;c=b;if((h|0)==768)b=K[f+2|0]|K[f+3|0]<<8|(K[f+4|0]<<16|K[f+5|0]<<24);else b=K[f+2|0]|K[f+3|0]<<8;if(c>>>0<=b>>>0)break a;c=L[g+96>>1];e=0;J[a+100>>2]=0;H[a+94|0]=1;J[a+76>>2]=c;f=L[g+80>>1];J[a+72>>2]=1651078259; -J[a+104>>2]=f;h=j<<6;J[a+40>>2]=h;c=c<<6;J[a+28>>2]=c;J[a+24>>2]=h;J[a+32>>2]=0;J[a+36>>2]=f<<6;lk(a+24|0,c);if(d&4194304)break a;e=3;c=J[J[a+4>>2]+100>>2];h=J[g+160>>2];d=J[a+80>>2]+7|0;f=d>>>3|0;J[a+84>>2]=f;if(d>>>0<8)break a;j=J[g+8>>2];g=J[a+76>>2];if(j>>>0>>0)break a;c=Tb(c,f,0,g,0,i+12|0);J[a+88>>2]=c;e=J[i+12>>2];if(e)break a;b=b+h|0;if(d&8){d=J[a+76>>2];if((d|0)>0){d=b+d|0;e=c;while(1){H[e|0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(d>>>0>b>>>0)continue;break}}c=c+1|0;d=f-1|0}else d= -f;if((f|0)!=1)while(1){e=J[a+76>>2];if((e|0)>0){f=b+e|0;e=c;while(1){H[e|0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(f>>>0>b>>>0)continue;break}}e=J[a+76>>2];if((e|0)>0){f=b+e|0;e=c+1|0;while(1){H[e|0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(f>>>0>b>>>0)continue;break}}c=c+2|0;d=d-2|0;if(d)continue;break}e=J[i+12>>2];J[J[a+156>>2]+4>>2]=1}xb=i+16|0;return e|0}function Ila(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=Q(h);i=Q(i);j=j|0;c=J[b>>2];a=J[b+4>>2];a:{b:{if((c|0)>(a|0))break b; -c:{if((c|0)>=0){j=a+1|0;if(j>>>0<=c>>>0)break b;a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(j>>>0>a>>>0)continue;break}if(a>>>0<=357913941){c=ic(J[b+8>>2],P(a,12));if(c)break c;c=J[b>>2];if(c>>>0>=a>>>0)break b}J[b>>2]=c^-1}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;break a}J[b>>2]=a;J[b+8>>2]=c}a=J[b+4>>2];J[b+4>>2]=a+1;a=J[b+8>>2]+P(a,12)|0;J[a+8>>2]=3;N[a+4>>2]=e;N[a>>2]=d}c=J[b>>2];a=J[b+4>>2];d:{e:{if((c|0)>(a|0))break e;f:{if((c|0)>=0){j=a+1|0;if(j>>>0<=c>>>0)break e;a=c;while(1){a= -((a>>>1|0)+a|0)+8|0;if(j>>>0>a>>>0)continue;break}if(a>>>0<=357913941){c=ic(J[b+8>>2],P(a,12));if(c)break f;c=J[b>>2];if(c>>>0>=a>>>0)break e}J[b>>2]=c^-1}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;break d}J[b>>2]=a;J[b+8>>2]=c}a=J[b+4>>2];J[b+4>>2]=a+1;a=J[b+8>>2]+P(a,12)|0;J[a+8>>2]=3;N[a+4>>2]=g;N[a>>2]=f}c=J[b>>2];a=J[b+4>>2];g:{if((c|0)>(a|0))break g;h:{if((c|0)>=0){j=a+1|0;if(j>>>0<=c>>>0)break g;a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(j>>>0>a>>>0)continue;break}if(a>>>0<=357913941){c= -ic(J[b+8>>2],P(a,12));if(c)break h;c=J[b>>2];if(c>>>0>=a>>>0)break g}J[b>>2]=c^-1}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;return}J[b>>2]=a;J[b+8>>2]=c}a=J[b+4>>2];J[b+4>>2]=a+1;a=J[b+8>>2]+P(a,12)|0;J[a+8>>2]=3;N[a+4>>2]=i;N[a>>2]=h}function YH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;f=J[b+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0>67108863)d=1073741823;else{d= -f<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(f>>>0<36)break f;g:{if((K[e|0]|K[e+1|0]<<8)==256)break g;if(K[a+28|0]|!J[a+32>>2])break f;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break f;while(1){H[a+28|0]=1;c=J[a+36>>2];e=J[c+12>>2];J[a+4>>2]=e;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0<=67108863){d=f<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}else d=1073741823;J[a+16>>2]=d; -J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(f>>>0<36)break f;if((K[e|0]|K[e+1|0]<<8)==256)break g;if(K[a+28|0]|!J[a+32>>2])break f;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}break f}if(!J[a+32>>2])break d;J[a+32>>2]=0;if(J[a+32>>2]|(M[a+12>>2]>2]>>>0|J[a+8>>2]-e>>>0<36))break f;c=K[e|0]|K[e+1|0]<<8;Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if((c|0)!=256)break e;break c}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}Ub(b);return 169776}Ub(J[a+ -36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function sz(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;a:{if((c|0)<2)break a;j=1-c|0;m=c-1|0;i=m;b:{while(1){if((K[b+i|0]-48&255)>>>0>9)break b;o=o-1|0;k=(i|0)>1;i=i-1|0;if(k)continue;break}o=j}if((c|0)<2|(h|0)<=(o|0))break a;while(1){c=J[e>>2];c:{d:{if(!c)break d;i=J[f>>2];if(!i)break d;j=J[g>>2];if(!j)break d;p=m<<2;q=J[c+ -p>>2];if(!q)break d;n=te(q,61);if(!n)break c;l=(J[j+p>>2]+((b+m|0)-J[i+p>>2]|0)|0)+1|0;e:{if(!a){i=0;while(1){if(!K[i+l|0]){j=i;break e}j=i+1|0;if(!K[l+j|0])break e;j=i+2|0;if(!K[l+j|0])break e;j=i+3|0;if(!K[l+j|0])break e;j=i+4|0;if(!K[l+j|0])break e;j=100;i=i+5|0;if((i|0)!=100)continue;break}break e}c=K[l|0];i=0;j=0;while(1){c=c&255;if(!c)break e;j=j+1|0;f:{if((c|0)!=239)break f;c=i+l|0;if(K[c+1|0]!=172)break f;j=((K[c+2|0]+125&255)>>>0<2)+j|0}while(1){k=i;i=i+1|0;c=K[l+i|0];if((c&192)==128)continue; -break}if((k|0)<99)continue;break}}n=n+1|0;l=ac(n);g:{if((l|0)<=0){k=0;break g}if(!a){k=0;while(1){if(!K[k+n|0])break g;k=k+1|0;if((l|0)!=(k|0))continue;break}k=l;break g}c=K[n|0];i=0;k=0;while(1){c=c&255;if(!c)break g;k=k+1|0;h:{if((c|0)!=239)break h;c=i+n|0;if(K[c+1|0]!=172)break h;k=((K[c+2|0]+125&255)>>>0<2)+k|0}while(1){i=i+1|0;c=K[n+i|0];if((c&192)==128)continue;break}if((i|0)<(l|0))continue;break}}if((j+k|0)>=(h|0))break c;Kb(q);J[J[e>>2]+p>>2]=0}H[d+m|0]=48}o=(H[b+m|0]<-64?a:0)?o:o+1|0;if((o| -0)>=(h|0))break a;c=(m|0)>1;m=m-1|0;if(c)continue;break}}}function zD(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-16|0;xb=e;d=J[a+200>>2];if(d&1){a:{if(d&4){Wb(a,260979);mc(a,c);break a}if(!(!b|!(K[b+9|0]&64))){Wb(a,261003);mc(a,c);break a}if(c>>>0<=3){Wb(a,261024);mc(a,c);break a}d=Ed(a,c+1|0);J[a+740>>2]=d;if(!d){Wb(a,261045);mc(a,c);break a}Gd(a,d,c);Fc(a,d,c);H[J[a+740>>2]+c|0]=0;f=mc(a,0);d=J[a+740>>2];if(f){cc(a,d);J[a+740>>2]=0;break a}if((K[d|0]-1&255)>>>0>=2){Wb(a,261087);cc(a,J[a+740>> -2]);J[a+740>>2]=0;break a}J[e+8>>2]=0;J[e+12>>2]=1;b:{c:{d:{if(!Hr(d,c,e+8|0,e+12|0))break d;d=J[e+12>>2];if(d>>>0>=c>>>0)break d;f=J[a+740>>2];g=d+1|0;J[e+12>>2]=g;if(!K[d+f|0])break c}Wb(a,261122);break b}if((J[e+8>>2]&392)!=264){Wb(a,261167);break b}J[e+8>>2]=0;if(!(i=Hr(f,c,e+8|0,e+12|0),j=0,k=J[e+12>>2]==(c|0),k?i:j)){Wb(a,261214);break b}if((J[e+8>>2]&392)!=264){Wb(a,261260);break b}d=J[a+740>>2];f=H[d|0];c=d+1|0;d=d+g|0;e:{if(!a|!b)break e;f:{g:{if(f-3>>>0>4294967293){if(!c)break g;g=ac(c); -if(!g|K[c|0]==45)break g;if(!Gr(c,g))break g;if(!d)break f;h=ac(d);if(!h|K[d|0]==45)break f;if(!Gr(d,h))break f;H[b+220|0]=f;g=g+1|0;f=Ed(a,g);J[b+224>>2]=f;if(!f){Wb(a,256791);break e}Mb(f,c,g);f=h+1|0;c=Ed(a,f);J[b+228>>2]=c;if(!c){cc(a,J[b+224>>2]);J[b+224>>2]=0;Wb(a,256791);break e}Mb(c,d,f);J[b+8>>2]=J[b+8>>2]|16384;J[b+184>>2]=J[b+184>>2]|256;break e}gc(a,256270);B()}gc(a,256430);B()}gc(a,256535);B()}}cc(a,J[a+740>>2]);J[a+740>>2]=0}xb=e+16|0;return}gc(a,260954);B()}function Kn(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,r=0,s=0,t=0,u=0,v=0;i=xb-16|0;f=1;a:{b:{c:switch(J[a>>2]){case 1:break a;case 0:break b;default:break c}while(1){e=f;while(1){d=P(e,12)+b|0;g=d-12|0;if(J[d>>2]>2]){J[i+8>>2]=J[d+8>>2];j=J[d+4>>2];J[i>>2]=J[d>>2];J[i+4>>2]=j;J[d+8>>2]=J[g+8>>2];j=J[g+4>>2];J[d>>2]=J[g>>2];J[d+4>>2]=j;J[g+8>>2]=J[i+8>>2];d=J[i+4>>2];J[g>>2]=J[i>>2];J[g+4>>2]=d;e=e-1|0;if(e)continue}break}f=f+1|0;j=J[a>>2];if(f>>>0>>0)continue;break}f=1;if(j>>>0<2)break b; -p=b+36|0;q=b+24|0;r=b+12|0;m=j-1|0;n=J[b>>2];g=0;d=1;while(1){h=(d|0)==(m|0);f=J[P(d,12)+b>>2]-n|0;d:{if(!(h|(f|0)>(c|0))){f=d;break d}i=0;h=h&(c|0)>=(f|0);f=h+d|0;e=g;e:{if(g>>>0>=f>>>0)break e;e=(d+h|0)-g|0;o=e&3;l=0;d=g;if(e-1>>>0>=3){s=e&-4;e=0;while(1){h=P(d,12);k=h+b|0;t=J[k>>2];J[k>>2]=0;k=h+r|0;u=J[k>>2];J[k>>2]=0;k=h+q|0;v=J[k>>2];J[k>>2]=0;h=h+p|0;k=J[h>>2];J[h>>2]=0;i=(((i+t|0)+u|0)+v|0)+k|0;d=d+4|0;e=e+4|0;if((s|0)!=(e|0))continue;break}}e=f;if(!o)break e;while(1){e=P(d,12)+b|0;h=J[e>> -2];J[e>>2]=0;d=d+1|0;i=i+h|0;l=l+1|0;if((l|0)!=(o|0))continue;break}e=f}J[P(g,12)+b>>2]=(i|0)/(e|0);if(f>>>0>=m>>>0)break d;g=f+1|0;n=J[P(g,12)+b>>2]}d=f+1|0;if(j>>>0>d>>>0)continue;break}f=1;if(j>>>0<=1)break b;d=1;while(1){c=P(d,12)+b|0;if(J[c>>2]){g=J[c+4>>2];e=P(f,12)+b|0;J[e>>2]=J[c>>2];J[e+4>>2]=g;J[e+8>>2]=J[c+8>>2];j=J[a>>2];f=f+1|0}d=d+1|0;if(j>>>0>d>>>0)continue;break}}J[a>>2]=f}}function Fk(a,b){var c=0,d=0,e=0;a:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<4|(K[a|0]|K[a+1|0]<<8)!=256)break a; -c=a+4|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break a;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b:{if(!d)break b;if(yi((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0,b))break b;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0}c=a+8|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break a;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c:{if(!d)break c;if(si((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+ -a|0,b))break c;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0}c=a+12|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4|K[c|0]&128)break a;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);d:{if(!d)break d;if(si((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0,b))break d;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0}c=a+16|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4| -K[c|0]&128)break a;e=1;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);e:{if(!d)break e;if(si((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0,b))break e;a=J[b+32>>2];if(a>>>0>31)break a;J[b+32>>2]=a+1;e=0;if(!K[b+28|0])break e;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;e=1}return e}return 0}function h9(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=J[a+12>>2];if(c){Ab[J[J[c>>2]+12>>2]](c)|0;J[a+12>>2]=0}c=0;d=J[a+8>>2];if(d){g=a,h=Ab[J[J[d>>2]+52>>2]](d)|0,J[g+12>>2]=h;c=J[a+8>>2];h=0,i=Ab[J[J[c>> -2]+24>>2]](c)|0,g=J[J[0]+24>>2],Ab[g](h|0,i|0);c=J[a+12>>2];Ab[J[J[c>>2]+68>>2]](c,0);c=J[a+12>>2]}d=J[a+16>>2];J[d+24>>2]=c;e=J[a+20>>2];J[(J[J[e>>2]-12>>2]+e|0)+24>>2]=c;e=J[d+24>>2];Ab[J[J[d>>2]+4>>2]](d);c=Pb(272);J[195395]=0;d=_(1796,c|0)|0;f=J[195395];J[195395]=0;a:{b:{if((f|0)!=1){J[a+16>>2]=d;J[d+24>>2]=e;if(Ab[J[J[d>>2]+120>>2]](d,b)|0){c=J[a+16>>2];Ab[J[J[c>>2]+128>>2]](c);c=J[a+16>>2];if(!K[c+33|0]){J[a+24>>2]=1;return 1}c:{if(K[c+32|0])break c;d=J[c+28>>2];if(!d)break c;Kb(d);J[c+28>> -2]=0}J[c+4>>2]=0;J[c+8>>2]=0;H[c+33|0]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;Ab[J[J[c>>2]+12>>2]](c)}c=J[a+20>>2];e=Ab[J[J[c>>2]+24>>2]](c)|0;d=J[a+20>>2];c=J[d>>2];d:{if(e){e=J[(J[c-12>>2]+d|0)+24>>2];Ab[J[c+4>>2]](d);c=Pb(256);J[195395]=0;d=_(1797,c|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break d;J[a+20>>2]=d;c=J[d>>2];J[(J[c-12>>2]+d|0)+24>>2]=e}if(!(Ab[J[c+12>>2]](d,b)|0))break a;b=J[a+20>>2];Ab[J[J[b>>2]+20>>2]](b);b=J[a+20>>2];b=J[J[b>>2]-12>>2]+b|0;if(K[b+33|0])break b;J[a+24>>2]=2;return 1}}a= -Z()|0;Kb(c);ba(a|0);B()}e:{if(K[b+32|0])break e;a=J[b+28>>2];if(!a)break e;Kb(a);J[b+28>>2]=0}J[b+4>>2]=0;J[b+8>>2]=0;H[b+33|0]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;Ab[J[J[b>>2]+12>>2]](b)}return 0}function Gq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if(!d|(!a|!c))break a;h=J[d>>2];if((b|0)<=536870911){f=Lpa(b<<2,b>>31<<2|b>>>30,3,0);f=e&1?f:((b|0)%3|0)+f|0;j=(f|0)/76|0;i=f-P(j,76)|0;b:{if(!i)break b;i=(i<<24>>24)%4|0;if(!i)break b;f=((0-i<<24>> -24)+f|0)+4|0}f=(e&2?0:(j<<1)+2|0)+f|0}else f=-1;if((f|0)>(h|0))break a;o=(b|0)/57|0;c:{if((b|0)<-56)break c;p=e&2;h=((b|0)/3<<2)%76>>2;f=19;while(1){k=0;j=(l|0)==(o|0);f=j?h:f;if((f|0)>0)while(1){m=K[a+1|0];n=K[a|0];i=K[a+2|0];H[c+3|0]=K[(i&63)+428816|0];H[c|0]=K[(n>>>2|0)+428816|0];H[c+2|0]=K[((i<<20|m<<28)>>>26|0)+428816|0];H[c+1|0]=K[((n<<30|m<<22)>>>26|0)+428816|0];a=a+3|0;c=c+4|0;k=k+1|0;if((k|0)!=(f|0))continue;break}g=(f<<2)+g|0;if(!p){H[c|0]=13;H[c+1|0]=10;g=g+2|0;c=c+2|0}l=l+1|0;if(!j)continue; -break}if(!g){g=0;break c}if(e&2)break c;g=g-2|0;c=c-2|0}k=1;h=(b|0)%3|0;i=h+1|0;d:{if(i>>>0<2)break d;f=0;e:{f:{if((h|0)>0){f=K[a|0]<<8;if((h|0)==1)break f;f=K[a+1|0]|f;break f}if((h|0)<0)break e}a=f<<16;b=h+1|0;j=b&3;if(h>>>0>=3){b=b&-4;f=0;while(1){H[c+3|0]=65;H[c|0]=K[(a>>>26|0)+428816|0];H[c+2|0]=K[(a>>>14&63)+428816|0];H[c+1|0]=K[(a>>>20&63)+428816|0];c=c+4|0;a=0;f=f+4|0;if((b|0)!=(f|0))continue;break}}if(!j)break e;f=0;while(1){H[c|0]=K[(a>>>26|0)+428816|0];a=a<<6;c=c+1|0;f=f+1|0;if((j|0)!= -(f|0))continue;break}}if(e&1){g=g+i|0;break d}a=3-h|0;Nb(c,61,(a|0)<=1?1:a);g=g+4|0}J[d>>2]=g}return k|0}function Nba(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;j=xb-16|0;xb=j;k=J[a+584>>2];g=(c|0)/J[k+8>>2]|0;i=b;c=0;i=J[k>>2]!=1?J[k+12>>2]:i;Pd(i,0,g<<1);e=J[a+608>>2];d=J[a+604>>2];a:{b:{c:{if((g|0)>0){d:{e:{if((e|0)<=0)break e;while(1){h=H[d|0];f=h&255;f:{if((h|0)>=0){d=d+1|0;e=e-1|0;if(e)while(1){if(!f|(c|0)>=(g|0))break f;f=f-1|0;h=(c<<1)+i|0;I[h>>1]=L[h>>1]|K[d|0]<< -8;d=d+1|0;c=c+1|0;e=e-1|0;if(e)continue;break}f=0;e=0;if((c|0)==(g|0))break d;break b}e=e-2|0;h=d+2|0;f=f-126|0;g:{if(!f|(c|0)>=(g|0))break g;d=K[d+1|0]<<8;while(1){l=(c<<1)+i|0;I[l>>1]=d|L[l>>1];c=c+1|0;f=f-1|0;if(!f)break g;if((c|0)<(g|0))continue;break}}d=h}if((c|0)>=(g|0))break e;if((e|0)>0)continue;break}}if((c|0)!=(g|0))break b;f=0;if((e|0)<=0)break d;while(1){h=H[d|0];c=h&255;h:{if((h|0)>=0){d=d+1|0;e=e-1|0;if(!e){e=0;break d}while(1){if(!c|(f|0)>=(g|0))break h;c=c-1|0;h=(f<<1)+i|0;I[h>>1]= -L[h>>1]|K[d|0];d=d+1|0;f=f+1|0;e=e-1|0;if(e)continue;break}e=0;break d}e=e-2|0;h=d+2|0;c=c-126|0;i:{if(!c|(f|0)>=(g|0))break i;d=K[d+1|0];while(1){l=(f<<1)+i|0;I[l>>1]=d|L[l>>1];f=f+1|0;c=c-1|0;if(!c)break i;if((f|0)<(g|0))continue;break}}d=h}if((f|0)>=(g|0))break d;if((e|0)>0)continue;break}}c=f;if((g|0)==(c|0))break c;break b}if(g)break b}Ab[J[k+20>>2]](k,b,g);b=1;break a}b=J[a>>2];f=J[a+628>>2];i=J[a+472>>2];J[j+4>>2]=g-c;J[j>>2]=i;Ob(f,b,270508,j);b=0}J[a+608>>2]=e;J[a+604>>2]=d;xb=j+16|0;return b| -0}function Lg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=J[a+88>>2];b=J[a+32>>2]+(b<<4)|0;g=J[b+8>>2];I[h+12>>1]=g+32>>>6;j=J[b+12>>2];I[h+14>>1]=j+32>>>6;a:{b:{c:{d:{if(H[a+8|0]&1){l=h+12|0;d=L[a+68>>1];if(!d){e=2147483647;J[h+16>>2]=(g|0)<0?-2147483647:2147483647;break a}b=g>>31;e=(b^g)-b|0;if(e>>>0<=65535){b=((e<<16|d>>>1)>>>0)/(d>>>0)|0;break c}b=2147483647;c=e>>>16|0;if(c>>>0>=d>>>0)break c;b=e<<16|d>>>1;i=S(c);f=32-i|0;c=b>>>f|c<>>0)/(d>>>0)|0;c=c-P(d,e)|0;b=b<>>31;f=c>>>0>=d>>>0;c=c-(f?d:0)|0;e=f|e<<1;f=31-i|0;b=b<<1}if((i|0)!=31)while(1){c=c<<1|b>>>31;i=c>>>0>=d>>>0;c=b>>>30&1|c-(i?d:0)<<1;k=c>>>0>=d>>>0;c=c-(k?d:0)|0;e=e<<2|i<<1|k;b=b<<2;f=f-2|0;if(f)continue;break}J[h+16>>2]=(g|0)<0?0-e|0:e;if(!d)break d;b=j>>31;b=(b^j)-b|0;break b}J[h+28>>2]=0;J[h+24>>2]=j;J[h+16>>2]=65536;J[h+20>>2]=65536;a=I[b>>1];J[h+36>>2]=g;J[h+32>>2]=a<<6;return}e=2147483647;break a}J[h+16>>2]=(g|0)<0?0-b|0:b;b=j>>31;b=(b^j)-b|0}if(b>>>0<=65535){e=((b<<16|d>>>1)>>>0)/(d>>> -0)|0;break a}e=2147483647;c=b>>>16|0;if(c>>>0>=d>>>0)break a;b=b<<16|d>>>1;g=S(c);f=32-g|0;c=b>>>f|c<>>0)/(d>>>0)|0;c=c-P(d,e)|0;b=b<>>31;f=c>>>0>=d>>>0;c=c-(f?d:0)|0;e=f|e<<1;f=31-g|0;b=b<<1}if((g|0)==31)break a;while(1){c=c<<1|b>>>31;g=c>>>0>=d>>>0;c=b>>>30&1|c-(g?d:0)<<1;i=c>>>0>=d>>>0;c=c-(i?d:0)|0;e=i|(e<<2|g<<1);b=b<<2;f=f-2|0;if(f)continue;break}}J[h+20>>2]=(j|0)<0?0-e|0:e;oE(a,l)}function Ye(a){var b=0,c=0,d=0,e=0,f=0;c=xb-128|0;xb=c;a:{b:{c:{d:{e:{f:{if(L[a+138>> -1]==1){if(!(K[a+13|0]&64|L[a+90>>1]!=6)){J[c+52>>2]=c+126;J[c+48>>2]=c+124;zc(a,530,c+48|0);d=L[c+124>>1];if(!d){Ob(J[a+628>>2],J[a>>2],264642,0);a=0;break a}b=J[a+56>>2];if(b>>>0<0-d>>>0)b=((b+d|0)-1>>>0)/(d>>>0)|0;else b=0;d=P(b,d);e=L[a+84>>1];b=Kpa(d,0,e,0);f=(zb|0)!=0;g:{h:{if(e){if(!f)break h;e=J[a>>2];b=J[a+628>>2];J[c+16>>2]=266170;Ob(b,e,267226,c+16|0);e=L[a+84>>1];b=Kpa(e,0,d,0);f=(zb|0)!=0;d=!e;break e}if(b&7)break g;d=1;break e}if(!(b&7))break d;if(!f)break g;b=J[a>>2];a=J[a+628>>2];J[c+ -32>>2]=266170;Ob(a,b,267226,c+32|0);b=0}a=(b>>>3|0)+1|0;break b}d=L[a+98>>1];b=Kpa(J[a+56>>2],0,d,0);e=zb;if(!d|!e)break f;d=J[a>>2];b=J[a+628>>2];J[c+112>>2]=266170;Ob(b,d,267226,c+112|0);b=0;break f}b=J[a+56>>2]}d=b;e=L[a+84>>1];b=Kpa(b,0,e,0);f=(zb|0)!=0;i:{j:{k:{l:{m:{if(e){if(!f)break m;e=J[a>>2];b=J[a+628>>2];J[c+80>>2]=266170;Ob(b,e,267226,c+80|0);e=L[a+84>>1];b=Kpa(e,0,d,0);f=(zb|0)!=0;d=!e;break k}if(b&7)break l;d=1;break k}if(!(b&7))break j;if(!f)break l;b=J[a>>2];a=J[a+628>>2];J[c+96>> -2]=266170;Ob(a,b,267226,c+96|0);b=0}a=(b>>>3|0)+1|0;break a}if(d)break i}if(!f)break i;b=J[a>>2];a=J[a+628>>2];J[c+64>>2]=266170;Ob(a,b,267226,c- -64|0);b=0}a=b>>>3|0;break a}if(d)break c}if(!f)break c;b=J[a>>2];a=J[a+628>>2];J[c>>2]=266170;Ob(a,b,267226,c);b=0}a=b>>>3|0}a=((a>>>0)/L[c+124>>1]<<1)+a|0}xb=c+128|0;return a}function kv(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;g=xb-16|0;xb=g;d=J[a+104>>2];h=J[d+28>>2];m=J[a+736>>2];H[m+(b?44:32)|0]=1;c=Ab[J[a+516>>2]](a, -b?1448493394:1213612370,d,g+8|0)|0;J[g+12>>2]=c;a:{if(c)break a;j=J[d+8>>2];k=g+12|0;e=rc(d,k);c=J[g+12>>2];if(c)break a;c=yd(d,2);J[g+12>>2]=c;if(c)break a;c=8;if((e|0)!=1)break a;e=md(d,k);c=J[g+12>>2];if(c)break a;d=md(d,k);c=J[g+12>>2];if(c)break a;f=tc(h,32,k);b:{if(b){J[m+52>>2]=f;break b}J[m+40>>2]=f}c=J[g+12>>2];if(c)break a;c=mv(J[a+104>>2],J[a+736>>2],e+j|0,f);J[g+12>>2]=c;if(c)break a;if(d){i=xb-16|0;xb=i;l=J[a+104>>2];h=J[l+28>>2];c=bc(l,d+j|0);J[i+12>>2]=c;c:{if(c)break c;j=i+12|0;d= -rc(l,j);c=J[i+12>>2];if(c)break c;e=rc(l,j);J[f+20>>2]=e;c=J[i+12>>2];if(c)break c;c=8;if(d>>>0>63)break c;q=f,r=Tb(h,4,0,e,0,j),J[q+28>>2]=r;c=J[i+12>>2];if(c)break c;q=f,r=Tb(h,4,0,J[f+20>>2],0,j),J[q+24>>2]=r;c=J[i+12>>2];if(c)break c;if(!J[f+20>>2]){c=0;break c}k=d>>>4|0;c=d&15;j=c+1|0;d=(2<>2];if(c)break c;n=e&255|n<<8;c=(h|0)!=(k|0);h=h+1|0;if(c)continue;break}c=8;e=n>>>j|0;if(e>>>0>=M[f>>2])break c;h=o<<2;J[h+J[f+24>>2]>>2]=e;p=J[J[f+ -4>>2]+(e<<4)>>2];e=d&n;if(p>>>0<=e>>>0)break c;J[J[f+28>>2]+h>>2]=e;o=o+1|0;if(o>>>0>2])continue;break}c=J[i+12>>2]}xb=i+16|0;if(c)break a}H[(b?45:33)+m|0]=1;J[a+740>>2]=J[a+740>>2]|(b?16:2);c=0}xb=g+16|0;return c}function Ns(a){var b=0,c=0,d=0;c=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a;b=J[a+28>>2];if(!b|J[b>>2]!=(a|0))break a;b:{c:{d=J[b+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break a; -case 0:case 12:case 16:case 34:case 46:case 56:break b;default:break c}}if((d|0)==666)break b;if((d|0)!=42)break a}J[a+44>>2]=2;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[b+20>>2]=0;J[b+16>>2]=J[b+8>>2];c=J[b+24>>2];if((c|0)<0){c=0-c|0;J[b+24>>2]=c}d=c?42:113;c=(c|0)==2;J[b+4>>2]=c?57:d;d:{if(c){c=Ad(0,0,0);break d}c=oh(0,0,0)}J[a+48>>2]=c;c=0;J[b+40>>2]=0;J[b+5820>>2]=0;I[b+5816>>1]=0;J[b+2872>>2]=232056;J[b+2864>>2]=b+2684;J[b+2860>>2]=232036;J[b+2852>>2]=b+2440;J[b+2848>>2]=232016;J[b+2840>>2]=b+ -148;NF(b)}if(!c){a=J[a+28>>2];J[a+60>>2]=J[a+44>>2]<<1;b=(J[a+76>>2]<<1)-2|0;d=J[a+68>>2];I[b+d>>1]=0;Nb(d,0,b);J[a+5812>>2]=0;J[a+116>>2]=0;J[a+120>>2]=2;J[a+104>>2]=0;J[a+108>>2]=0;J[a+92>>2]=0;J[a+96>>2]=2;J[a+72>>2]=0;b=P(J[a+132>>2],12);J[a+144>>2]=L[b+224580>>1];J[a+140>>2]=L[b+224576>>1];J[a+128>>2]=L[b+224578>>1];J[a+124>>2]=L[b+224582>>1]}return c}function qA(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;e=xb-16|0;xb=e;J[a+16>>2]=0;J[a+20>>2]=-1042284544;J[a+24>>2]=0;J[a+28>> -2]=-1042284544;J[a+8>>2]=-4194304;J[a+12>>2]=1105199103;J[a>>2]=-4194304;J[a+4>>2]=1105199103;In(e+4|0,b+4|0);f=J[e+4>>2];k=J[e+8>>2];if((f|0)!=(k|0)){g=-2147483648;h=2147483647;i=2147483647;j=-2147483648;a:{while(1){b:{b=J[f>>2];d=J[J[b>>2]+8>>2];J[195395]=0;d=_(d|0,b|0)|0;l=J[195395];J[195395]=0;if((l|0)==1)break b;c:{d:{e:switch(d-1|0){case 0:J[195395]=0;c=O[b+8>>3];d=J[195395];J[195395]=0;f:{if((d|0)!=1){h=c>3]=h;J[195395]=0;c=O[b+16>>3];d=J[195395];J[195395]=0;if((d|0)==1)break b; -i=c>3]=i;J[195395]=0;c=O[b+8>>3];d=J[195395];J[195395]=0;if((d|0)==1)break f;g=c>g?c:g;O[a+16>>3]=g;J[195395]=0;c=O[b+16>>3];b=J[195395];J[195395]=0;if((b|0)!=1)break d;break b}break b}break b;case 1:break e;default:break c}J[195395]=0;c=O[b+8>>3];d=J[195395];J[195395]=0;g:{if((d|0)!=1){h=c>3]=h;J[195395]=0;c=O[b+16>>3];d=J[195395];J[195395]=0;if((d|0)==1)break b;i=c>3]=i;J[195395]=0;c=O[b+8>>3];d=J[195395];J[195395]=0;if((d|0)==1)break g;g=c>g?c:g;O[a+16>>3]= -g;J[195395]=0;c=O[b+16>>3];b=J[195395];J[195395]=0;if((b|0)!=1)break d;break b}break b}break b}j=c>j?c:j;O[a+24>>3]=j}f=f+4|0;if((k|0)!=(f|0))continue;break a}break}b=Z()|0;a=J[e+4>>2];if(a){J[e+8>>2]=a;Kb(a)}ba(b|0);B()}f=J[e+4>>2]}if(f){J[e+8>>2]=f;Kb(f)}xb=e+16|0}function SG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=K[a+2|0]|K[a+3|0]<<8;if(c)e=((c<<8|c>>>8)&65535)+a|0;else e=169776;c=J[b+88>>2];e=ld(e,J[J[c+80>>2]+P(J[c+64>>2],20)>>2]);if((e|0)!=-1){h=xb-32|0;xb=h;c=K[a+4|0]|K[a+5|0]<<8;c= -e>>>0>=((c<<8|c>>>8)&65535)>>>0?169776:((e<<1)+a|0)+6|0;c=K[c|0]|K[c+1|0]<<8;if(c)a=((c<<8|c>>>8)&65535)+a|0;else a=169776;c=K[a|0]|K[a+1|0]<<8;a:{if(!c)break a;e=(c<<8|c>>>8)&65535;c=J[b+176>>2];d=J[b+88>>2];c=(c&J[(J[d+80>>2]+P(J[d+64>>2],20)|0)+4>>2])>>>Jpa(c)|0;b:{if((c|0)!=255)break b;c=255;if(!K[b+196|0])break b;Ac(d,3,0,J[d+68>>2],1,0);c=(P(J[b+200>>2],48271)>>>0)%2147483647|0;J[b+200>>2]=c;c=((c>>>0)%(e>>>0)|0)+1|0}d=e;e=c-1|0;if(d>>>0<=e>>>0)break a;g=J[b+88>>2];if(J[g+156>>2]){qf(g);c=J[b+ -80>>2];g=J[b+88>>2];J[h+16>>2]=J[g+64>>2];nc(g,c,106614,h+16|0)}g=K[a|0]|K[a+1|0]<<8;a=e>>>0>=((g<<8|g>>>8)&65535)>>>0?169776:(a+(e<<1)|0)+2|0;a=K[a|0]|K[a+1|0]<<8;e=(a<<8|a>>>8)&65535;Yl(b,e,0,0,0);g=1;f=J[b+88>>2];if(ec(f,1,1)){a=J[f+64>>2];c:{if(a>>>0>2]){d=J[f+72>>2];c=J[f+84>>2];a=J[f+80>>2]+P(a,20)|0;break c}c=J[f+84>>2];d=J[f+72>>2];a=d-1|0;a=c+P(a>>>0<=d>>>0?a:0,20)|0}d=P(d,20)+c|0;c=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=c;J[d+16>>2]=J[a+16>>2];c=J[a+12>>2];J[d+8>>2]=J[a+8>>2];J[d+12>> -2]=c;J[d>>2]=e;J[f+64>>2]=J[f+64>>2]+1;J[f+72>>2]=J[f+72>>2]+1}c=J[b+88>>2];if(!J[c+156>>2])break a;a=J[b+80>>2];J[h>>2]=J[c+64>>2]-1;nc(c,a,129748,h)}xb=h+32|0}return g|0}function Rv(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;b=J[a+24>>2];a:{b:{if(b>>>0>65534)break b;m=J[a>>2];o=J[m+508>>2]+J[m+512>>2]|0;b=b+1|0;f=J[a+40>>2];c=b>>>0>f>>>0?b:f;e=J[a+48>>2];d=J[a+44>>2];i=J[a+52>>2];c:while(1){d:{if(c>>>0>d>>>0)break d;e:{if(!i){i=J[m+16>>2];k=d+e|0;if((k|0)<0)break e;j= -0-e|0;f=65536-e|0;while(1){g=c+e|0;h=g&65535;f:{if(i>>>0<=h>>>0){b=j;if((g|0)<0)break f;if(g>>>0>65535)break d;b=f;if((k|0)>65535)break f;break d}b=c;if(h)break a}c=b+1|0;if(d>>>0>=c>>>0)continue;break}break d}b=(c-f<<1)+i|0;if(o>>>0>>0)break d;while(1){j=K[b+1|0]|K[b|0]<<8;if(j){h=e+j&65535;if(h)break a}b=b+2|0;c=c+1|0;if(d>>>0>=c>>>0)continue;break}break d}while(1){h=c+e&65535;if(i>>>0<=h>>>0)break d;if(h)break a;c=c+1|0;if(d>>>0>=c>>>0)continue;break}}h=0;b=J[a+36>>2]+1|0;k=J[a+32>>2];if(b>>> -0>=k>>>0)break b;p=k-1|0;n=k<<1;q=J[a+16>>2]+14|0;while(1){d=(b<<1)+q|0;j=K[d|0]<<8|K[d+1|0];J[a+44>>2]=j;d=d+n|0;e=d+2|0;f=K[e|0]<<8|K[d+3|0];J[a+40>>2]=f;d=e+n|0;e=K[d|0]|K[d+1|0]<<8;e=(e<<8|e>>>8)<<16>>16;J[a+48>>2]=e;l=d+n|0;g=K[l|0]<<8|K[l+1|0];g:{h:{i:{if((f|0)!=65535|b>>>0

>>0|(j|0)!=65535)break i;i=0;d=65535;if(!g)break h;if((g+l|0)+2>>>0<=o>>>0)break i;e=1;J[a+48>>2]=1;break h}if((g|0)==65535)break g;i=g?g+l|0:0;d=j}J[a+36>>2]=b;J[a+52>>2]=i;c=c>>>0>f>>>0?c:f;continue c}b=b+1|0;if((k|0)!= -(b|0))continue;break}break}}c=-1}J[a+28>>2]=h;J[a+24>>2]=c}function Lk(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{if(J[a+24>>2])break b;b=J[a+52>>2];if(b>>>0<2)break b;g=J[a+56>>2]+(((b|0)!=0)<<2)|0;h=b-1|0;j=g+((b>>>0>=h>>>0?h:0)<<2)|0;h=J[42444];while(1){f=J[g>>2];b=J[f+12>>2];if(b){e=J[f+16>>2];k=e+P(b,12)|0;while(1){b=J[e+8>>2];c:{if(b>>>0>=M[a+52>>2]){J[194120]=h;b=h;break c}b=J[J[a+56>>2]+(b<<2)>>2]}if(!b)break a;c=0;d:{e:{f:{g:{d=J[e>>2];switch(d>>>4&3){case 1:break f;case 0:break g; -case 2:break e;default:break d}}c=J[b>>2]-J[f>>2]|0;break d}c=J[b>>2]-J[f+4>>2]|0;break d}c=J[a+4>>2]+J[b>>2]-(J[a>>2]+J[a+8>>2])|0}i=d&7;b=c-(d>>>6|0)|0;h:{if(d&8){c=J[f>>2]+J[e+4>>2]|0;if((i|0)==4){d=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;if(!(b>>31))break h;J[a+24>>2]=J[a+24>>2]|2;break h}d=b<<8|(b&65280)>>>8;H[c|0]=d;H[c+1|0]=d>>>8;c=b<<16;d=c>>31;c=c>>16;if(!d&(b|0)==(c|0))break h;J[a+24>>2]=J[a+24>>2]|2;break h}c=J[f>>2]+J[e+4>>2]|0;i:switch(i- -3|0){case 1:b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;break h;case 0:H[c+2|0]=b;H[c+1|0]=b>>>8;H[c|0]=b>>>16;if(b>>>0<16777216)break h;J[a+24>>2]=J[a+24>>2]|2;break h;default:break i}d=b<<8|(b&65280)>>>8;H[c|0]=d;H[c+1|0]=d>>>8;if(b>>>0<65536)break h;J[a+24>>2]=J[a+24>>2]|2}e=e+12|0;if((k|0)!=(e|0))continue;break}}g=g+4|0;if((j|0)!=(g|0))continue;break}}return}J[a+24>>2]=J[a+24>>2]|1}function BM(a){a=a|0;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;i=J[a+12>>2];j=J[a+200>>2];c=J[a+196>>2];n=J[J[a>>2]+16>>2];a:{while(1){b=k;k=b+1|0;g=bF(i,k);if(g)break a;g=21;h=c+4|0;if(h>>>0>j>>>0)break a;d=J[i+88>>2]+(b<<5)|0;J[d+8>>2]=0;J[d+12>>2]=0;l=K[c+1|0];e=l|K[c|0]<<8;I[d+4>>1]=e;b=K[c+3|0]|K[c+2|0]<<8;J[d>>2]=b;if((b|0)>=(n|0))break a;f=l&1?4:2;m=e&8;b=f+2|0;b:{if(m)break b;b=f+4|0;if(e&64)break b;b=f|e>>>4&8}if(b+h>>>0>j>>>0)break a;b=e&1;c:{if(e&2){if(b){b=K[c+4|0]|K[c+5|0]<<8;J[d+8>>2]=(b<<8|b>>>8)<<16>>16;b=K[c+6|0]|K[c+7|0]<< -8;f=(b<<8|b>>>8)<<16>>16;b=c+8|0;break c}J[d+8>>2]=H[c+4|0];f=H[c+5|0];b=c+6|0;break c}if(b){J[d+8>>2]=K[c+5|0]|K[c+4|0]<<8;f=K[c+7|0]|K[c+6|0]<<8;b=c+8|0;break c}J[d+8>>2]=K[c+4|0];f=K[c+5|0];b=c+6|0}J[d+12>>2]=f;d:{if(m){c=b+2|0;e=0;b=K[b|0]|K[b+1|0]<<8;g=(b<<8|b>>>8)<<16>>16<<2;f=g;h=0;break d}if(e&64){c=K[b+2|0]|K[b+3|0]<<8;f=(c<<8|c>>>8)<<16>>16<<2;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)<<16>>16<<2;c=b+4|0;e=0;h=0;break d}if(!(e&128)){e=0;g=65536;c=b;f=65536;h=0;break d}c=K[b+6|0]|K[b+7|0]<<8;f= -(c<<8|c>>>8)<<16>>16<<2;c=K[b+4|0]|K[b+5|0]<<8;e=(c<<8|c>>>8)<<16>>16<<2;c=K[b+2|0]|K[b+3|0]<<8;h=(c<<8|c>>>8)<<16>>16<<2;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)<<16>>16<<2;c=b+8|0}J[d+16>>2]=g;J[d+28>>2]=f;J[d+24>>2]=h;J[d+20>>2]=e;if(l&32)continue;break}J[i+84>>2]=k;b=J[J[a+24>>2]+8>>2];J[a+196>>2]=c;J[a+164>>2]=(c+b|0)-j;g=0}return g|0}function _g(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;i=xb-16|0;xb=i;J[i+8>>2]=c;J[i+12>>2]=b;b=i+4|0;c=J[d+28>>2];J[b>>2]=c;J[c+4>>2]=J[c+4>>2]+1;J[195395]=0;j= -_(3535,b|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){b=J[b>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)Ab[J[J[b>>2]+8>>2]](b);J[e>>2]=0;b=0;a:{while(1){if(b|(g|0)==(h|0))break a;b:{if(mf(i+12|0,i+8|0))break b;c:{if((Ab[J[J[j>>2]+36>>2]](j,H[g|0],0)|0)==37){if((g+1|0)==(h|0))break b;c=0;d:{e:{b=Ab[J[J[j>>2]+36>>2]](j,H[g+1|0],0)|0;if((b|0)==69)break e;k=1;if((b&255)==48)break e;break d}if((g+2|0)==(h|0))break b;k=2;c=b;b=Ab[J[J[j>>2]+36>>2]](j,H[g+2|0],0)|0}l=i,m=Ab[J[J[a>>2]+36>>2]](a,J[i+12>>2],J[i+ -8>>2],d,e,f,b,c)|0,J[l+12>>2]=m;g=(g+k|0)+1|0;break c}b=H[g|0];if((b|0)>=0)b=J[J[j+8>>2]+((b&255)<<2)>>2]&1;else b=0;if(b){while(1){f:{g=g+1|0;if((h|0)==(g|0)){g=h;break f}b=H[g|0];if((b|0)>=0)b=J[J[j+8>>2]+((b&255)<<2)>>2]&1;else b=0;if(b)continue}break}while(1){b=i+12|0;if(mf(b,i+8|0))break c;c=Kh(b);if((c|0)>=0)c=J[J[j+8>>2]+((c&255)<<2)>>2]&1;else c=0;if(!c)break c;Hi(b);continue}}b=i+12|0;if(((m=j,n=Kh(b),l=J[J[j>>2]+12>>2],Ab[l](m|0,n|0)|0)|0)==(Ab[J[J[j>>2]+12>>2]](j,H[g|0])|0)){g=g+1|0;Hi(b); -break c}J[e>>2]=4}b=J[e>>2];continue}break}J[e>>2]=4}if(mf(i+12|0,i+8|0))J[e>>2]=J[e>>2]|2;xb=i+16|0;return J[i+12>>2]}c=Z()|0;a=J[i+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function gma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=vc(1,36);if(g){a:{b:{c:{d:{e:{c=J[a+44>>2];if((c|0)<=0)break e;e=J[a+48>>2];c=c-1|0;f:{g:{while(1){d=c+b>>>1|0;f=J[e+P(d,36)>>2];h:{if(f>>>0>=1886545255){c=d-1|0;break h}if((f|0)==1886545254)break g;b=d+1|0}if((c|0)>=(b|0))continue;break}c= -0;break f}c=J[(e+P(d,36)|0)+28>>2]}b=J[a+44>>2];J[g>>2]=c;if((b|0)<=0)break e;e=J[a+48>>2];c=b-1|0;b=0;i:{while(1){d=c+b>>>1|0;f=J[e+P(d,36)>>2];j:{if(f>>>0<=1651275622){b=J[(e+P(d,36)|0)+28>>2];if((f|0)==1651275622)break i;b=d+1|0;break j}c=d-1|0}if((c|0)>=(b|0))continue;break}b=0}c=b;b=J[a+44>>2];J[g+4>>2]=c;if((b|0)<=0)break c;e=J[a+48>>2];c=b-1|0;b=0;while(1){d=c+b>>>1|0;f=J[e+P(d,36)>>2];k:{if(f>>>0<=1633842790){b=J[(e+P(d,36)|0)+28>>2];if((f|0)==1633842790)break d;b=d+1|0;break k}c=d-1|0}if((c| -0)>=(b|0))continue;break}b=0;break d}J[g+4>>2]=0;b=0}c=b;b=J[a+44>>2];J[g+8>>2]=c;c=0;if((b|0)<=0){J[g+12>>2]=0;break a}e=J[a+48>>2];c=b-1|0;b=0;while(1){d=c+b>>>1|0;f=J[e+P(d,36)>>2];l:{if(f>>>0<=1886614630){b=J[(e+P(d,36)|0)+28>>2];if((f|0)==1886614630)break b;b=d+1|0;break l}c=d-1|0}if((c|0)>=(b|0))continue;break}}b=0}c=b;b=J[a+44>>2];J[g+12>>2]=c;if((b|0)>0){d=J[a+48>>2];c=b-1|0;b=0;while(1){a=c+b>>>1|0;e=J[d+P(a,36)>>2];m:{if(e>>>0<=1667654002){if((e|0)==1667654002){c=J[(d+P(a,36)|0)+28>>2]; -break a}b=a+1|0;break m}c=a-1|0}if((c|0)>=(b|0))continue;break}}c=0}J[g+16>>2]=c}return g|0}function Eha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+4>>2]=0;if((b|0)!=80){d=J[a>>2];J[d+20>>2]=13;J[d+24>>2]=80;J[J[a>>2]+28>>2]=b;Ab[J[J[a>>2]>>2]](a)}if((c|0)!=488){b=J[a>>2];J[b+20>>2]=22;J[b+24>>2]=488;J[J[a>>2]+28>>2]=c;Ab[J[J[a>>2]>>2]](a)}b=J[a>>2];c=J[a+12>>2];Nb(a+4|0,0,484);J[a+16>>2]=1;J[a+12>>2]=c;J[a>>2]=b;yE(a);J[a+308>>2]=0;J[a+24>>2]=0;J[a+8>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+ -176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;b=Ab[J[J[a+4>>2]>>2]](a,0,172)|0;J[a+460>>2]=b;J[b+96>>2]=0;J[b+100>>2]=0;J[b+28>>2]=1349;J[b+8>>2]=1350;J[b+4>>2]=1351;J[b>>2]=1352;J[b+104>>2]=0;J[b+36>>2]=1349;J[b+40>>2]=1349;J[b+108>>2]=0;J[b+112>>2]=0;J[b+44>>2]=1349;J[b+48>>2]=1349;J[b+116>>2]=0;J[b+120>>2]=0;J[b+52>>2]=1349;J[b+56>>2]=1349;J[b+124>>2]=0;J[b+128>>2]=0;J[b+60>>2]=1349;J[b+132>>2]=0;J[b- -64>>2]=1349;J[b+ -136>>2]=0;J[b+140>>2]=0;J[b+68>>2]=1349;J[b+72>>2]=1349;J[b+76>>2]=1349;J[b+80>>2]=1349;J[b+144>>2]=0;J[b+148>>2]=0;J[b+84>>2]=1349;J[b+152>>2]=0;J[b+156>>2]=0;J[b+160>>2]=0;J[b+92>>2]=1349;J[b+32>>2]=1353;J[b+88>>2]=1353;J[a+216>>2]=0;J[a+436>>2]=0;J[a+144>>2]=0;b=J[a+460>>2];J[b+164>>2]=0;J[b+24>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;b=Ab[J[J[a+4>>2]>>2]](a,0,28)|0;J[a+456>>2]=b;J[b+24>>2]=1;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=1356;J[b+8>>2]=1357;J[b+4>>2]=1358;J[b>>2]=1359;J[a+20>>2]=200}function z0(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=J[e>>2];m=J[e+4>>2];if((g|0)!=(m|0)){l=a+33|0;while(1){h=J[g+4>>2];i=+(h|0);j=J[g>>2];k=+(j|0);f=J[a+156>>2];a:{b:{if(f){if(le(f,k,i))break b;H[J[J[a>>2]-12>>2]+l|0]=1;break a}f=J[a+208>>2];if(!f)break b;Ab[J[J[f>>2]+32>>2]](f,k,i)}f=J[a+120>>2];J[f+680>>2]=j;J[f+684>>2]=h}h=J[g+4>>2];i=+(h|0);j=J[g+8>>2];k=+(j|0);f=J[a+156>>2];c:{d:{if(f){if(ud(f,k,i))break d;H[J[J[a>>2]-12>>2]+l|0]=1;break c}f=J[a+208>>2];if(!f)break d; -Ab[J[J[f>>2]+36>>2]](f,k,i)}f=J[a+120>>2];J[f+680>>2]=j;J[f+684>>2]=h}h=J[g+12>>2];i=+(h|0);j=J[g+8>>2];k=+(j|0);f=J[a+156>>2];e:{f:{if(f){if(ud(f,k,i))break f;H[J[J[a>>2]-12>>2]+l|0]=1;break e}f=J[a+208>>2];if(!f)break f;Ab[J[J[f>>2]+36>>2]](f,k,i)}f=J[a+120>>2];J[f+680>>2]=j;J[f+684>>2]=h}h=J[g+12>>2];i=+(h|0);j=J[g>>2];k=+(j|0);f=J[a+156>>2];g:{h:{if(f){if(ud(f,k,i))break h;H[J[J[a>>2]-12>>2]+l|0]=1;break g}f=J[a+208>>2];if(!f)break h;Ab[J[J[f>>2]+36>>2]](f,k,i)}f=J[a+120>>2];J[f+680>>2]=j;J[f+ -684>>2]=h}g=g+16|0;if((m|0)!=(g|0))continue;break}}g=J[a+156>>2];i:{if(g){if(Kf(g))break i;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break i}g=J[a+208>>2];if(!g)break i;Ab[J[J[g>>2]+48>>2]](g)}mA(a+124|0,c);g=J[a+208>>2];if(g){Ab[J[J[g>>2]+456>>2]](g,b,c,d,e);b=J[a+208>>2]}else b=0;c=!b;if(!(!(c|!J[a+156>>2])|c)){Ab[J[J[b>>2]+52>>2]](b,2);a=J[a+208>>2];Ab[J[J[a>>2]+56>>2]](a)}}function lka(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;a:{if(!a)break a;c=d+4|0;J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;b= -J[a+8>>2];f=J[a+12>>2];if((b|0)!=(f|0))while(1){b:{c:{a=J[c+4>>2];d:{if((a|0)!=J[c+8>>2]){if(H[b+11|0]>=0){e=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=e;J[a+8>>2]=J[b+8>>2];break c}e=J[b+4>>2];g=J[b>>2];J[195395]=0;fa(1067,a|0,g|0,e|0);e=J[195395];J[195395]=0;if((e|0)!=1)break c;b=Z()|0;J[c+4>>2]=a;break d}J[195395]=0;$(1069,c|0,b|0);a=J[195395];J[195395]=0;if((a|0)!=1)break b;b=Z()|0}Bs(c);ba(b|0);B()}J[c+4>>2]=a+12}b=b+20|0;if((f|0)!=(b|0))continue;break}e:{b=J[d+4>>2];if((b|0)!=J[d+8>>2]){J[195395]= -0;b=_(1078,20)|0;a=J[195395];J[195395]=0;if((a|0)==1)break e;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=234032;J[b+12>>2]=0;J[b+16>>2]=0;J[195395]=0;$(1079,b|0,0);a=J[195395];J[195395]=0;if((a|0)==1)break e;a=J[d+4>>2];f=J[d+8>>2];if((a|0)!=(f|0))while(1){e=J[a>>2];g=J[a+4>>2];c=K[a+11|0];J[195395]=0;h=e;e=c<<24>>24<0;fa(1080,b|0,(e?h:a)|0,(e?g:c)|0);c=J[195395];J[195395]=0;if((c|0)==1)break e;a=a+12|0;if((f|0)!=(a|0))continue;break}a=J[b+4>>2];c=J[b+16>>2];H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>> -24;h=J[b+4>>2];b=J[d+4>>2]}if(!b)break a;a=b;c=J[d+8>>2];if((a|0)!=(c|0)){while(1){a=c-12|0;if(H[c-1|0]<0)Kb(J[a>>2]);c=a;if((a|0)!=(b|0))continue;break}a=J[d+4>>2]}J[d+8>>2]=b;Kb(a);break a}a=Z()|0;Bs(d+4|0);ba(a|0);B()}xb=d+16|0;return h|0}function gB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=xb-32|0;xb=d;a:{if(K[a+32|0])break a;e=J[a+28>>2];if(!e)break a;Kb(e);J[a+28>>2]=0}J[a+4>>2]=0;J[a+8>>2]=0;H[a+33|0]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;Ab[J[J[a>>2]+12>>2]](a);e=d+16|0;J[e+12>>2]=0; -J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=428736;b:{c:{d:{f=id(b);if(f>>>0>=1073741808){J[195395]=0;ea(1800,d+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;break b}e:{if(f>>>0<=1){H[d+15|0]=f;c=d+4|0;break e}c=f|3;if(c>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break b;break d}J[195395]=0;g=c+1|0;c=_(1078,g<<2)|0;h=J[195395];J[195395]=0;if((h|0)==1)break d;J[d+4>>2]=c;J[d+8>>2]=f;J[d+12>>2]=g|-2147483648}g=b;b=f<<2;i=Mb(c,g,b)+b|0,j=0,J[i>>2]=j;J[195395]=0;f=aa(1089,e|0,d+ -4|0,0)|0;b=J[195395];J[195395]=0;f:{g:{if((b|0)!=1){if(H[d+15|0]<0)Kb(J[d+4>>2]);if(!f)break g;J[195395]=0;b=J[e+12>>2];c=J[195395];J[195395]=0;if((c|0)==1)break f;H[a+32|0]=0;J[195395]=0;c=_(1109,b|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break f;J[a+28>>2]=c;J[195395]=0;ha(1110,e|0,c|0,b|0,d+4|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){c=J[a+28>>2];J[a+12>>2]=c;J[a+4>>2]=c;b=b+c|0;J[a+16>>2]=b;J[a+8>>2]=b;J[195395]=0;ea(1103,e|0);a=J[195395];J[195395]=0;if((a|0)!=1)break g}a=Z()|0;break c}a=Z()| -0;if(H[d+15|0]>=0)break c;Kb(J[d+4>>2]);break c}Me(e);xb=d+32|0;return f}a=Z()|0;break c}a=Z()|0}Me(e);ba(a|0);B()}B()}function Bz(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;J[d>>2]=0;J[d+4>>2]=0;g=b-1|0;g=b>>>0>=g>>>0?g:0;b=J[a+408>>2];a:{if(g>>>0>b>>>0)break a;e=b;b=c-1|0;c=b>>>0<=c>>>0?b:0;if(e>>>0>>0)break a;b=J[a+424>>2];if(!b)break a;e=c<<4;c=J[a+416>>2];c=L[e+c>>1]|J[c+(g<<4)>>2]<<16;i=J[a+104>>2];while(1){if(!(c>>>0<=M[b+20>>2]&c>>>0>=M[b+16>>2])){b=J[b>>2];if(b)continue; -break a}break}f=bc(i,J[b+12>>2]);if(f)break a;f=Tc(i,P(J[b+8>>2],K[b+4|0]));if(f)break a;a=K[b+5|0];j=a&1;k=a>>>1&1;g=J[b+8>>2];f=J[i+32>>2];a=K[b+4|0];h=-2147483648>>>S(a)|0;b:{c:{d:{if((a|0)==(h|0))break d;a=P(g,a-h|0)+f|0;e=K[a+1|0];l=K[a|0];e:{if(j){e=K[a+3|0]|(e<<16|l<<24|K[a+2|0]<<8);a=a+4|0;break e}e=e|l<<16;a=a+2|0}if((c|0)==(e|0))break c;if(c>>>0<=e>>>0)break d;f=(k?2:1)+a|0}f:{a=P(g,h);g:{if(g>>>0>=a>>>0)break g;if(!j){while(1){a=a>>>1|0;h=f+a|0;e=K[h|0]<<16|K[h+1|0];if((e|0)!=(c|0)){f= -c>>>0>e>>>0?h:f;if(a>>>0>g>>>0)continue;break g}break}a=h+2|0;break c}while(1){a=a>>>1|0;h=f+a|0;e=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if((e|0)==(c|0))break f;f=c>>>0>e>>>0?h:f;if(a>>>0>g>>>0)continue;break}}a=K[f+1|0];g=K[f|0];h:{if(j){g=K[f+3|0]|(a<<16|g<<24|K[f+2|0]<<8);a=f+4|0;break h}g=a|g<<16;a=f+2|0}if((c|0)==(g|0))break c;break b}a=h+4|0}c=K[a|0];if(k)c=(K[a+1|0]|c<<8)<<16>>16;J[d>>2]=I[b+6>>1]+c}Ec(i);f=0}return f|0}function Yna(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;f=J[b+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0>67108863)d=1073741823;else{d=f<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(f>>>0<5)break f;g:{if(K[e|0]==2)break g;if(K[a+28|0]|!J[a+32>>2])break f;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break f;while(1){H[a+28| -0]=1;c=J[a+36>>2];e=J[c+12>>2];J[a+4>>2]=e;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0<=67108863){d=f<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}else d=1073741823;J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(f>>>0<5)break f;if(K[e|0]==2)break g;if(K[a+28|0]|!J[a+32>>2])break f;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}break f}if(!J[a+32>>2])break d;J[a+32>>2]=0;if(J[a+32>>2]|(M[a+12>>2]>2]>>>0|J[a+8>>2]-e>>>0<5))break f;c=K[e| -0];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if((c|0)!=2)break e;break c}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function Tna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}c=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>> -2]=e;f=J[b+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0>67108863)d=1073741823;else{d=f<<6;d=d>>>0<=16384?16384:d;d=d>>>0>=1073741823?1073741823:d}J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(f>>>0<4)break f;g:{if(K[e|0]==1)break g;if(K[a+28|0]|!J[a+32>>2])break f;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(!c)break f;while(1){H[a+28|0]=1;c=J[a+36>>2];e=J[c+12>>2];J[a+4>>2]=e;f=J[c+16>>2];J[a+12>>2]=f;J[a+8>>2]=e+f;J[a+32>>2]=0;if(f>>>0<=67108863){d=f<<6;d=d>>>0<= -16384?16384:d;d=d>>>0>=1073741823?1073741823:d}else d=1073741823;J[a+16>>2]=d;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(f>>>0<4)break f;if(K[e|0]==1)break g;if(K[a+28|0]|!J[a+32>>2])break f;c=Cc(b);J[a+4>>2]=c;J[a+8>>2]=c+J[b+16>>2];if(c)continue;break}break f}if(!J[a+32>>2])break d;J[a+32>>2]=0;if(J[a+32>>2]|(M[a+12>>2]>2]>>>0|J[a+8>>2]-e>>>0<4))break f;c=K[e|0];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if((c|0)!=1)break e;break c}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>> -2]=0;J[a+4>>2]=0;J[a+8>>2]=0}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(c);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function TH(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=J[a>>2];if((e|0)>=0){f=(b|0)>0?b:0;a:{b:{if(d){b=J[a+4>>2];b=b>>>0>f>>>0?b:f;if(e>>>0>>0|e>>>2>>>0>b>>>0)break b;break a}if(e>>>0>=f>>>0)break a;b=e;while(1){b=((b>>>1|0)+b|0)+8|0;if(f>>>0>b>>>0)continue;break}}c:{if(b>>> -0<=153391689){d:{e:{if(!b)break e;g=Qb(P(b,28));d=0;if(!g)break d;if(!J[a+4>>2])break e;while(1){i=P(h,28);d=i+g|0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;e=J[a+8>>2]+i|0;J[d>>2]=J[e>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=0;J[d+8>>2]=J[e+8>>2];J[e+8>>2]=0;J[d+12>>2]=J[e+12>>2];J[e+12>>2]=0;J[d+24>>2]=J[e+24>>2];j=J[e+20>>2];J[d+16>>2]=J[e+16>>2];J[d+20>>2]=j;d=J[a+8>>2]+i|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;h=h+1|0;if(h>>>0>2])continue;break}}Kb(J[a+8>> -2]);d=g}if(d|!b)break c;e=J[a>>2];if(e>>>0>=b>>>0)break a}J[a>>2]=e^-1;return 0}J[a>>2]=b;J[a+8>>2]=d}b=J[a+4>>2];f:{if(f>>>0>b>>>0){if(!c)break f;while(1){b=J[a+8>>2]+P(b,28)|0;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[a+4>>2]+1|0;J[a+4>>2]=b;if(b>>>0>>0)continue;break}break f}if(!c|b>>>0<=f>>>0)break f;e=b-f|0;if(!e)break f;b=J[a+8>>2]+P(b,28)|0;while(1){c=b-28|0;if(J[c+4>>2]){J[c+8>>2]=0;Kb(J[c+12>>2])}b=b-28|0;J[b+8>>2]=0;J[c+4>>2]=0;J[b+12>> -2]=0;b=c;e=e-1|0;if(e)continue;break}}J[a+4>>2]=f;a=1}else a=0;return a|0}function xh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{e=c-b|0;if(J[a+20>>2]==2|e>>>0<2)break a;h=J[a+84>>2];d=J[(h+P(b,20)|0)+8>>2];f=b+1|0;b:{if(f>>>0>=c>>>0)break b;g=(b^-1)+c&3;if(g)while(1){j=J[(P(f,20)+h|0)+8>>2];d=d>>>0>>0?d:j;f=f+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}if(e-2>>>0<=2)break b;while(1){e=P(f,20)+h|0;g=J[e+8>>2];d=d>>>0>>0?d:g;g=J[e+28>>2];d=d>>>0>>0?d:g;g=J[e+48>>2];d=d>>>0>>0?d:g;e=J[e+68>> -2];d=d>>>0>>0?d:e;f=f+4|0;if((f|0)!=(c|0))continue;break}}g=h-12|0;f=0;c:{if(!b)break c;while(1){e=P(b,20);if(J[e+g>>2]!=J[(e+h|0)+8>>2]){f=b;break c}b=b-1|0;if(b)continue;break}}d:{e:{f:{e=J[a+72>>2];if(e>>>0<=c>>>0)break f;while(1){b=P(c,20);if(J[b+g>>2]!=J[(b+h|0)+8>>2])break f;c=c+1|0;if((e|0)!=(c|0))continue;break}c=e;break e}if((c|0)!=(e|0))break d}b=J[a+64>>2];g=J[a+68>>2];if(b>>>0>=g>>>0)break d;e=(P(e,20)+h|0)-12|0;j=J[a+80>>2];while(1){a=j+P(b,20)|0;i=J[a+8>>2];if((i|0)!=J[e>>2])break d; -if((d|0)!=(i|0))J[a+4>>2]=J[a+4>>2]&-8;J[a+8>>2]=d;b=b+1|0;if((g|0)!=(b|0))continue;break}}if(c>>>0<=f>>>0)break a;b=f+1|0;if(c-f&1){a=P(f,20)+h|0;if(J[a+8>>2]!=(d|0))J[a+4>>2]=J[a+4>>2]&-8;J[a+8>>2]=d;f=f+1|0}if((b|0)==(c|0))break a;while(1){a=P(f,20)+h|0;if(J[a+8>>2]!=(d|0))J[a+4>>2]=J[a+4>>2]&-8;J[a+8>>2]=d;a=P(f+1|0,20)+h|0;if(J[a+8>>2]!=(d|0))J[a+4>>2]=J[a+4>>2]&-8;J[a+8>>2]=d;f=f+2|0;if((f|0)!=(c|0))continue;break}}}function U$(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;i=xb-400|0;xb=i;e=J[c+4>>2];g=J[b+4>>2];c=J[c>>2];b=J[b>>2];f=J[a>>2];a=J[a+4>>2];J[i+20>>2]=a<<2;J[i+16>>2]=f<<2;J[i+12>>2]=g<<2;j=b<<2;J[i+8>>2]=j;h=e<<2;J[i+4>>2]=h;f=c<<2;J[i>>2]=f;b=J[d+208>>2];J[i+24>>2]=b;c=J[d+212>>2];J[i+28>>2]=c;k=a>>6;a:{b:{l=e>>6;a=J[d+176>>2];g=g>>6;c:{d:{if(!((l|0)>=(a|0)&(g|0)>=(a|0))){e=c>>8;break d}e=c>>8;if((a|0)>(k|0))break d;if((a|0)<=(e|0))break c}c=i;a=J[d+172>>2];if((a|0)<=(l|0)|(a|0)<=(g|0)|((a|0)<=(k|0)|(a|0)<=(e|0)))break b}J[d+212>>2]=h;J[d+208>>2]= -f;break a}while(1){e=(P(j,-3)+b|0)+(f<<1)|0;a=e>>31;e:{f:{if((a^e)-a>>>0>=129){k=J[c+12>>2];e=J[c+28>>2];g=J[c+4>>2];break f}e=J[c+28>>2];k=J[c+12>>2];g=J[c+4>>2];h=e+(P(k,-3)+(g<<1)|0)|0;a=h>>31;if((a^h)-a>>>0>128)break f;h=((b<<1)+f|0)+P(J[c+16>>2],-3)|0;a=h>>31;if((a^h)-a>>>0>128)break f;h=((e<<1)+g|0)+P(J[c+20>>2],-3)|0;a=h>>31;if((a^h)-a>>>0>128)break f;Sq(d,f,g);if((c|0)==(i|0))break a;a=c-24|0;f=J[a>>2];break e}a=c+24|0;J[c+48>>2]=b;J[c+52>>2]=e;f=f+j|0;J[c+8>>2]=f>>1;g=g+k|0;J[c+12>>2]=g>> -1;l=b;b=J[c+16>>2];h=l+b|0;J[c+40>>2]=h>>1;b=b+j|0;f=b+f|0;J[c+16>>2]=f>>2;b=b+h|0;J[c+32>>2]=b>>2;l=e;e=J[c+20>>2];j=l+e|0;J[c+44>>2]=j>>1;f=b+f>>3;J[c+24>>2]=f;b=e+k|0;e=b+g|0;J[c+20>>2]=e>>2;b=b+j|0;J[c+36>>2]=b>>2;J[c+28>>2]=b+e>>3}b=J[a+24>>2];j=J[a+8>>2];c=a;continue}}xb=i+400|0;return 0}function rI(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=J[a-148>>2];d=vc(1,12);if(d)a:{a=xb-48|0;xb=a;J[d>>2]=0;J[d+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24| -0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[195395]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;I[a+44>>1]=0;J[a+40>>2]=65536;b=_(584,e|0)|0;c=J[195395];J[195395]=0;b:{c:{if((c|0)==1)break c;J[a+40>>2]=b;J[195395]=0;H[a+44|0]=1;b=ca(585,e|0,1128418371)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[195395]=0;b=ca(701,a|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[d>>2]=b;b=J[a+36>>2];if(b){J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break b}J[a+8>>2]=0; -J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[195395]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;I[a+44>>1]=0;J[a+40>>2]=65536;b=_(584,e|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[a+40>>2]=b;J[195395]=0;H[a+44|0]=1;b=ca(585,e|0,1128416340)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[195395]=0;b=ca(702,a|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[d+4>>2]=b;b=J[a+36>>2];if(b){J[195395]= -0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break b}f=d,g=Qo(e),J[f+8>>2]=g;xb=a+48|0;break a}d=Z()|0;ed(a);ba(d|0);B()}ga(0)|0;_b();B()}return d}function jA(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{g=a+24|0;c=J[g>>2];if(!c)break a;d=g;while(1){e=M[c+16>>2]>>0;d=e?d:c;c=J[(e?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(g|0)|M[d+16>>2]>b>>>0)break a;b:{c:{d:{e:{f=J[d+20>>2];switch((Ab[J[J[f>>2]+8>>2]](f)|0)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break b}}c=J[a>>2];if(J[c+ -20>>2]!=(f+4|0))break b;J[c+20>>2]=0;break b}c=J[a>>2];if(J[c+28>>2]!=(f+4|0))break b;J[c+28>>2]=0;break b}c=J[a>>2];if(J[c+24>>2]!=(f+4|0))break b;J[c+24>>2]=0}e=J[a+4>>2];i=a+8|0;if((e|0)!=(i|0)){h=f+4|0;while(1){c=J[e+20>>2];f:{g:switch((Ab[J[J[f>>2]+8>>2]](f)|0)-1|0){case 0:if(J[c+20>>2]!=(h|0))break f;J[c+20>>2]=0;break f;case 1:if(J[c+28>>2]!=(h|0))break f;J[c+28>>2]=0;break f;case 2:break g;default:break f}if(J[c+24>>2]!=(h|0))break f;J[c+24>>2]=0}d=J[e+4>>2];h:{if(d)while(1){c=d;d=J[c>>2]; -if(d)continue;break h}while(1){c=J[e+8>>2];d=J[c>>2]!=(e|0);e=c;if(d)continue;break}}e=c;if((c|0)!=(i|0))continue;break}}Ab[J[J[f>>2]+4>>2]](f);f=J[g>>2];if(!f)break a;d=g;c=f;while(1){e=M[c+16>>2]>>0;d=e?d:c;c=J[(e?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(g|0)|M[d+16>>2]>b>>>0)break a;e=J[d+4>>2];i:{if(!e){e=d;while(1){c=J[e+8>>2];b=J[c>>2]!=(e|0);e=c;if(b)continue;break}break i}while(1){c=e;e=J[c>>2];if(e)continue;break}}if(J[a+20>>2]==(d|0))J[a+20>>2]=c;J[a+28>>2]=J[a+28>>2]-1;Xj(f,d);Kb(d)}} -function UG(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;j=xb-16|0;xb=j;J[j+12>>2]=0;k=J[a+4>>2];p=J[k+8>>2];e=3;a:{if(d?0:c)break a;H[a|0]=0;if(M[k+3112>>2]<=b>>>0|(L[k+3120>>1]!=(c|0)?c:0))break a;h=J[k+3116>>2];i=b<<3;n=J[h+i>>2];g=n+1|0;f=Tb(p,1,J[a+20>>2]<<2,g<<2,J[a+24>>2],j+12|0);J[a+24>>2]=f;e=J[j+12>>2];if(e)break a;J[a+20>>2]=g;b:{c:{if(!g)break c;q=h+i|0;if(c){h=0;while(1){d:{if(!h){J[f>>2]=65536;break d}o=h<<2;e=J[(o+J[q+4>>2]|0)-4>>2];if(e>>> -0>=M[k+3124>>2]){e=3;break a}r=J[k+3128>>2]+(e<<2)|0;J[f+o>>2]=65536;e=0;while(1){f=65536;i=J[r>>2]+P(e,12)|0;g=J[i+4>>2];l=J[i>>2];e:{if((g|0)<(l|0))break e;m=J[i+8>>2];if(!g|(g|0)>(m|0)|(l|0)<0&(m|0)>0)break e;f=0;i=J[(e<<2)+d>>2];if((i|0)<(l|0)|(i|0)>(m|0))break e;f=65536;if((g|0)==(i|0))break e;if((g|0)>(i|0)){f=dc(i-l|0,g-l|0);break e}f=dc(m-i|0,m-g|0)}g=Rb(J[J[a+24>>2]+o>>2],f);f=J[a+24>>2];J[o+f>>2]=g;e=e+1|0;if((e|0)!=(c|0))continue;break}}e=(h|0)!=(n|0);h=h+1|0;if(e)continue;break}break c}J[f>> -2]=65536;if(!n){J[a+8>>2]=b;break b}g=J[q+4>>2]-4|0;e=1;while(1){h=e<<2;if(M[h+g>>2]>=M[k+3124>>2]){e=3;break a}J[f+h>>2]=0;h=(e|0)==(n|0);e=e+1|0;if(!h)continue;break}}J[a+8>>2]=b;if(!c)break b;b=c<<2;f=Tb(p,1,J[a+12>>2]<<2,b,J[a+16>>2],j+12|0);J[a+16>>2]=f;e=J[j+12>>2];if(e)break a;Mb(f,d,b)}H[a|0]=1;J[a+12>>2]=c;e=J[j+12>>2]}xb=j+16|0;return e|0}function jY(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;g=J[a+248>>2];if(g)Ab[J[J[g>>2]+184>>2]](g,b);c=J[b>>2];a:{if((c|0)==J[b+4>>2])break a; -j=a+184|0;g=a+176|0;while(1){i=P(h,12);d=i+c|0;f=J[d>>2];b:{if((f|0)==J[d+4>>2])break b;e=I[f+2>>1];c=I[f>>1];d=J[a+248>>2];c:{if(d){Ab[J[J[d>>2]+32>>2]](d,+(c|0),+(e|0));break c}if(K[a+192|0]){J[a+184>>2]=c;J[a+176>>2]=c;H[a+192|0]=0;J[a+188>>2]=e;J[a+180>>2]=e;break c}d=g;d:{if((c|0)>=J[d>>2]){d=j;if((c|0)<=J[d>>2])break d}J[d>>2]=c}if((e|0)>2]){J[a+180>>2]=e;break c}if((e|0)<=J[a+188>>2])break c;J[a+188>>2]=e}d=J[a+172>>2];I[d+140>>1]=c;I[d+142>>1]=e;d=1;c=J[b>>2];f=i+c|0;e=J[f>>2];if(J[f+ -4>>2]-e>>>0>4)while(1){c=(d<<2)+e|0;e=I[c+2>>1];f=I[c>>1];c=J[a+248>>2];e:{if(c){Ab[J[J[c>>2]+36>>2]](c,+(f|0),+(e|0));break e}if(K[a+192|0]){J[a+184>>2]=f;J[a+176>>2]=f;H[a+192|0]=0;J[a+188>>2]=e;J[a+180>>2]=e;break e}c=g;f:{if((f|0)>=J[c>>2]){c=j;if((f|0)<=J[c>>2])break f}J[c>>2]=f}if((e|0)>2]){J[a+180>>2]=e;break e}if((e|0)<=J[a+188>>2])break e;J[a+188>>2]=e}c=J[a+172>>2];I[c+140>>1]=f;I[c+142>>1]=e;c=J[b>>2];f=i+c|0;e=J[f>>2];d=d+1|0;if(d>>>0>2]-e>>2>>>0)continue;break}d=J[a+248>> -2];if(!d)break b;Ab[J[J[d>>2]+48>>2]](d);c=J[b>>2]}h=h+1|0;if(h>>>0<(J[b+4>>2]-c|0)/12>>>0)continue;break}b=J[a+248>>2];if(!b)break a;Ab[J[J[b>>2]+52>>2]](b,3);a=J[a+248>>2];Ab[J[J[a>>2]+56>>2]](a)}}function WB(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)return;l=J[a>>2];if(a){b=J[a+204>>2];J[a+204>>2]=b-1;if((b|0)<=1){k=J[a>>2];b=J[a+16>>2];a:{if(!b)break a;while(1){i=J[((h<<2)+a|0)+20>>2];c=J[i>>2];b:{if(fc(J[c+8>>2],9957)|!(H[c|0]&1))break b;c=J[i+16>>2];if(!c)break b;while(1){f=J[c+ -8>>2];c:{if(!f)break c;d=J[f+96>>2];if(!d)break c;e=J[f+128>>2];b=J[e+64>>2];J[e+64>>2]=b-1;if((b|0)>1)break c;b=J[d+16>>2];if(!b)break c;g=d+16|0;e=J[d+8>>2];while(1){if((f|0)!=J[b+8>>2]){b=J[b+4>>2];if(b)continue;break c}break}c=J[b>>2];j=c?c+4|0:g;g=J[b+4>>2];J[j>>2]=g;J[(g?g:d+20|0)>>2]=c;Ab[J[e+8>>2]](e,b);mk(e,f,d);c=J[i+16>>2]}if(c)continue;break}b=J[a+16>>2]}h=h+1|0;if(h>>>0>>0)continue;break}if(!b)break a;h=0;while(1){i=J[((h<<2)+a|0)+20>>2];d:{if(!(H[J[i>>2]]&1))break d;c=J[i+16>>2]; -if(!c)break d;while(1){f=J[c+8>>2];e:{if(!f)break e;d=J[f+96>>2];if(!d)break e;e=J[f+128>>2];b=J[e+64>>2];J[e+64>>2]=b-1;if((b|0)>1)break e;b=J[d+16>>2];if(!b)break e;g=d+16|0;e=J[d+8>>2];while(1){if((f|0)!=J[b+8>>2]){b=J[b+4>>2];if(b)continue;break e}break}c=J[b>>2];j=c?c+4|0:g;g=J[b+4>>2];J[j>>2]=g;J[(g?g:d+20|0)>>2]=c;Ab[J[e+8>>2]](e,b);mk(e,f,d);c=J[i+16>>2]}if(c)continue;break}b=J[a+16>>2]}h=h+1|0;if(h>>>0>>0)continue;break}if(!b)break a;while(1){WD(a,J[((b<<2)+a|0)+16>>2]);b=J[a+16>>2];if(b)continue; -break}}Ab[J[k+8>>2]](k,a)}}Kb(l)}function Laa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+584>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)<=34907){if((b|0)==262)break j;if((b|0)==347)break m;if((b|0)!=530)break d;J[d+932>>2]=1;return Ab[J[d+896>>2]](a,530,c)|0}n:switch(b-34908|0){case 3:break e;case 2:break f;case 1:break g;case 0:break h;default:break n}switch(b-65537|0){case 1:break k;case 0:break l;case 2:break i;default:break d}}e=J[c>>2];if(e)break c;return 0}J[d+920>>2]=J[c>>2]; -return 1}c=J[c>>2];J[d+924>>2]=c;d=J[a+12>>2];b=d&-16385;J[a+12>>2]=b;if(!(L[a+138>>1]!=1|L[a+90>>1]!=6|(c|0)!=1)){b=d|16384;J[a+12>>2]=b}if(J[a+508>>2]>0){if(b&1024)b=cg(a);else b=-1;J[a+508>>2]=b}b=1;if(J[a+588>>2]<=0)break a;f=a,g=Ye(a),J[f+588>>2]=g;return 1}b=Ab[J[d+896>>2]](a,262,c)|0;d=J[a+12>>2];c=d&-16385;J[a+12>>2]=c;if(!(L[a+138>>1]!=1|L[a+90>>1]!=6|J[J[a+584>>2]+924>>2]!=1)){c=d|16384;J[a+12>>2]=c}if(J[a+508>>2]>0){if(c&1024)c=cg(a);else c=-1;J[a+508>>2]=c}if(J[a+588>>2]<=0)break a;f= -a,g=Ye(a),J[f+588>>2]=g;return b|0}J[d+928>>2]=J[c>>2];return 1}J[d+936>>2]=J[c>>2];break b}Al(d+940|0,J[c>>2]);break b}J[d+944>>2]=J[c>>2];break b}Al(d+948|0,J[c>>2]);break b}return Ab[J[d+896>>2]](a,b,c)|0}gD(d+912|0,J[c+4>>2],e);J[d+916>>2]=e;J[a+48>>2]=J[a+48>>2]|4}c=nd(a,b);if(!c)return 0;b=1;c=L[c+12>>1];d=(c>>>3&8188)+a|0;J[d+40>>2]=J[d+40>>2]|1<>2]=J[a+12>>2]|8}return b|0}function Nda(a,b,c){a=a|0;b=b|0;c=c|0;var d=Q(0),e=Q(0),f=Q(0),g=Q(0),h=0,i=0,j=Q(0),k=Q(0),l=Q(0),m=0,n=0,o= -0,p=0,q=0,r=0,s=0,t=0,u=Q(0),v=Q(0),w=Q(0),x=Q(0),y=Q(0),z=Q(0),A=Q(0);h=a;while(1){i=J[(m<<2)+b>>2]+c|0;n=K[i+7|0];o=K[i|0];d=Q(n+o|0);p=K[i+4|0];q=K[i+3|0];e=Q(p+q|0);g=Q(d+e);r=K[i+6|0];s=K[i+1|0];f=Q(r+s|0);t=K[i+5|0];i=K[i+2|0];j=Q(t+i|0);k=Q(f+j);N[h+16>>2]=g-k;N[h>>2]=Q(k+g)+Q(-1024);d=Q(d-e);e=Q(Q(d+Q(f-j))*Q(.7071067690849304));N[h+24>>2]=d-e;N[h+8>>2]=d+e;d=Q(o-n|0);g=Q(s-r|0);f=Q(i-t|0);j=Q(Q(g+f)*Q(.7071067690849304));e=Q(d-j);f=Q(f+Q(q-p|0));k=Q(d+g);g=Q(Q(f-k)*Q(.3826834261417389)); -f=Q(Q(f*Q(.5411961078643799))+g);N[h+20>>2]=e+f;N[h+12>>2]=e-f;d=Q(j+d);e=Q(Q(k*Q(1.3065630197525024))+g);N[h+28>>2]=d-e;N[h+4>>2]=d+e;h=h+32|0;m=m+1|0;if((m|0)!=8)continue;break}h=7;while(1){g=N[a>>2];f=N[a+224>>2];d=Q(g+f);j=N[a+96>>2];k=N[a+128>>2];e=Q(j+k);l=Q(d+e);u=N[a+32>>2];v=N[a+192>>2];w=Q(u+v);x=N[a+64>>2];y=N[a+160>>2];z=Q(x+y);A=Q(w+z);N[a+128>>2]=l-A;N[a>>2]=A+l;d=Q(d-e);e=Q(Q(d+Q(w-z))*Q(.7071067690849304));N[a+192>>2]=d-e;N[a+64>>2]=d+e;d=Q(g-f);g=Q(u-v);f=Q(x-y);l=Q(Q(g+f)*Q(.7071067690849304)); -e=Q(d-l);f=Q(f+Q(j-k));j=Q(d+g);g=Q(Q(f-j)*Q(.3826834261417389));f=Q(Q(f*Q(.5411961078643799))+g);N[a+160>>2]=e+f;N[a+96>>2]=e-f;d=Q(d+l);e=Q(Q(j*Q(1.3065630197525024))+g);N[a+224>>2]=d-e;N[a+32>>2]=d+e;b=h;h=h-1|0;a=a+4|0;if(b)continue;break}}function aw(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{g=K[a|0];if((g|0)!=117)break b;c:{d=K[a+1|0];if((d|0)!=110|K[a+2|0]!=105)break c;b=K[a+3|0];c=b-48|0;e=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(e>>>0>15)break c;b=K[a+4|0];c=b-48|0;f=c>>>0>9?b-71>>> -0<4294967290?16:b-55|0:c;if(f>>>0>15)break c;b=K[a+5|0];c=b-48|0;h=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(h>>>0>15)break c;b=K[a+6|0];c=b-48|0;b=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(b>>>0>15)break c;b=b+(((e<<8)+(f<<4)|0)+h<<4)|0;c=K[a+7|0];if(!c)break a;if((c|0)!=46)break c;return b|-2147483648}b=d-48|0;c=b>>>0>9?d-71>>>0<4294967290?16:d-55|0:b;if(c>>>0>15)break b;b=K[a+2|0];d=b-48|0;e=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(e>>>0>15)break b;b=K[a+3|0];d=b-48|0;f=d>>>0>9?b-71>>>0<4294967290? -16:b-55|0:d;if(f>>>0>15)break b;b=K[a+4|0];d=b-48|0;b=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(b>>>0>15)break b;b=b+(f+((c<<8)+(e<<4)|0)<<4)|0;c=K[a+5|0];e=c-48|0;c=e>>>0>9?c-71>>>0<4294967290?16:c-55|0:e;d=a+5|0;d:{if(c>>>0>15)break d;b=c+(b<<4)|0;c=K[a+6|0];e=c-48|0;c=e>>>0>9?c-71>>>0<4294967290?16:c-55|0:e;d=a+6|0;if(c>>>0>15)break d;b=c+(b<<4)|0;d=a+7|0}d=K[d|0];if(!d)break a;if((d|0)!=46)break b;return b|-2147483648}b=a;while(1){e:{f:{if((g|0)!=46){if(g)break f;return $v(a,b)|0}if(a>>>0>> -0)break e}g=K[b+1|0];b=b+1|0;continue}break}b=$v(a,b)|-2147483648}return b|0}function uea(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;f=a;while(1){d=J[(l<<2)+b>>2]+c|0;h=K[d+4|0];g=K[d+3|0];e=h+g|0;i=K[d+7|0];j=K[d|0];k=i+j|0;m=e+k|0;n=K[d+5|0];o=K[d+2|0];p=n+o|0;q=K[d+6|0];r=K[d+1|0];d=q+r|0;s=p+d|0;J[f+16>>2]=m-s<<2;J[f>>2]=(m+s<<2)-4096;e=k-e|0;k=d-p|0;d=P(e+k|0,4433)+1024|0;J[f+24>>2]=d+P(k,-15137)>>11;J[f+8>>2]=d+P(e,6270)>>11;d=g-h|0;h=j-i|0; -g=P(d+h|0,-7373);e=r-q|0;k=e+d|0;i=o-n|0;m=i+h|0;j=P(k+m|0,9633)+1024|0;n=g+P(d,2446)|0;d=j+P(k,-16069)|0;J[f+28>>2]=n+d>>11;j=j+P(m,-3196)|0;k=P(i,16819);i=P(e+i|0,-20995);J[f+20>>2]=j+(k+i|0)>>11;J[f+12>>2]=d+(i+P(e,25172)|0)>>11;J[f+4>>2]=j+(g+P(h,12299)|0)>>11;f=f+32|0;l=l+1|0;if((l|0)!=8)continue;break}b=7;while(1){f=J[a+224>>2];d=J[a>>2];c=f+d|0;l=J[a+128>>2];h=J[a+96>>2];g=l+h|0;e=(c+g|0)+2|0;i=J[a+160>>2];j=J[a+64>>2];k=i+j|0;m=J[a+192>>2];n=J[a+32>>2];o=m+n|0;p=k+o|0;J[a+128>>2]=e-p>>2;J[a>> -2]=e+p>>2;g=c-g|0;e=o-k|0;c=P(g+e|0,4433)+16384|0;J[a+192>>2]=c+P(e,-15137)>>15;J[a+64>>2]=c+P(g,6270)>>15;c=h-l|0;f=d-f|0;d=P(c+f|0,-7373);l=n-m|0;e=l+c|0;h=j-i|0;i=h+f|0;g=P(e+i|0,9633)+16384|0;j=d+P(c,2446)|0;c=g+P(e,-16069)|0;J[a+224>>2]=j+c>>15;g=g+P(i,-3196)|0;e=P(h,16819);h=P(h+l|0,-20995);J[a+160>>2]=g+(e+h|0)>>15;J[a+96>>2]=c+(h+P(l,25172)|0)>>15;J[a+32>>2]=g+(d+P(f,12299)|0)>>15;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function kN(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+540>> -2];a:{if(!b)break a;d=J[b+80>>2];if(d)Ab[d|0](a);d=J[b+100>>2];if(d)Ab[d|0](a);d=J[b+120>>2];if(!d)break a;Ab[d|0](a);Ab[J[b+124>>2]](a)}if(K[a+848|0]){d=a+828|0;if(J[d>>2])rd(J[a+104>>2],d);J[a+840>>2]=0;J[a+832>>2]=0;J[a+836>>2]=0}rd(J[a+104>>2],a+808|0);J[a+820>>2]=0;J[a+824>>2]=0;J[a+812>>2]=0;J[a+816>>2]=0;d=J[a+144>>2];if(d)Ab[J[c+8>>2]](c,d);J[a+140>>2]=0;J[a+144>>2]=0;d=J[a+156>>2];if(d)Ab[J[c+8>>2]](c,d);I[a+152>>1]=0;J[a+156>>2]=0;rd(J[a+104>>2],a+508|0);J[a+752>>2]=0;J[a+756>>2]=0;J[a+ -512>>2]=0;if(K[a+292|0]){d=J[a+332>>2];if(d)Ab[J[c+8>>2]](c,d);J[a+332>>2]=0;d=J[a+336>>2];if(d)Ab[J[c+8>>2]](c,d);H[a+292|0]=0;J[a+336>>2]=0}d=J[a+564>>2];if(d)Ab[J[c+8>>2]](c,d);I[a+562>>1]=0;J[a+564>>2]=0;if(b)Ab[J[b+52>>2]](a);b=J[a+20>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+32>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+32>>2]=0;b=J[a+804>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+28>>2]=0;J[a+804>>2]=0;b=J[a+720>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+720>>2]=0;b=J[a+ -744>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+744>>2]=0;b=J[a+652>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+652>>2]=0;b=J[a+656>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+656>>2]=0;b=J[a+664>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+664>>2]=0;b=J[a+672>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+540>>2]=0;J[a+672>>2]=0}}function JE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;c=1;a:{if((Ab[J[J[b>>2]+12>>2]](b,d+14|0,1,1,0,0)|0)!=1)break a;e=K[d+14|0];if((e|0)==249){c=0;b:{if((Ab[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break b;f=K[d+15|0];g=Ab[J[J[b>> -2]+12>>2]](b,a+944|0,1,4,0,0)|0;c=(K[a+945|0]|K[a+946|0]<<8)<<16>>16;e=(K[a+462|0]?c:c<<8|(c&65280)>>>8)<<16>>16;H[a+945|0]=e;H[a+946|0]=e>>>8;c=0;if((f|0)!=(g|0))break b;J[a+360>>2]=e&65535;c=K[a+944|0];J[a+336>>2]=c&1?K[a+947|0]:-1;H[a+460|0]=c>>>2&7;c=1}e=K[d+14|0]}c:{if((e|0)!=254)break c;c=0;if((Ab[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break c;c=Ab[J[J[b>>2]+12>>2]](b,J[a+1084>>2],K[d+15|0],1,0,0)|0;H[J[a+1084>>2]+K[d+15|0]|0]=0;c=(c|0)==1}d:{if(K[d+14|0]==255){if((Ab[J[J[b>>2]+12>>2]](b, -d+15|0,1,1,0,0)|0)!=1|K[d+15|0]!=11)break a;if((Ab[J[J[b>>2]+12>>2]](b,d+3|0,11,1,0,0)|0)!=1)break a;if((Ab[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break a;e=K[d+15|0];c=Qb(e);if(!c){Kb(c);break a}e=Ab[J[J[b>>2]+12>>2]](b,c,e,1,0,0)|0;if(K[d+15|0]>=3){J[a+1088>>2]=K[c+1|0]|K[c+2|0]<<8;Kb(c);if((e|0)==1)break d;break a}Kb(c);if((e|0)==1)break d;break a}if(!c)break a}h=1;if(!(Ab[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0))break a;c=K[d+15|0];if(!c)break a;while(1){Ab[J[J[b>>2]+20>>2]](b,c,1)|0;if(!(Ab[J[J[b>> -2]+12>>2]](b,d+15|0,1,1,0,0)|0))break a;c=K[d+15|0];if(c)continue;break}}xb=d+16|0;return h}function Aca(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(f){a=e>>>0<8;c=h<<2;while(1){h=e;if(!a)while(1){J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;J[b+4>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|-16777216;J[b+8>>2]=K[i+2|0]|K[j+2|0]<<8|K[k+2|0]<<16|-16777216;J[b+12>>2]=K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|-16777216;J[b+16>>2]=K[i+4|0]|K[j+4|0]<<8|K[k+4|0]<< -16|-16777216;J[b+20>>2]=K[i+5|0]|K[j+5|0]<<8|K[k+5|0]<<16|-16777216;J[b+24>>2]=K[i+6|0]|K[j+6|0]<<8|K[k+6|0]<<16|-16777216;J[b+28>>2]=K[i+7|0]|K[j+7|0]<<8|K[k+7|0]<<16|-16777216;b=b+32|0;k=k+8|0;j=j+8|0;i=i+8|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 5:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 4:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j= -j+1|0;i=i+1|0;case 3:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 2:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 1:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 0:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;break;default:break a}k=g+k|0;j=g+j|0;i=g+i|0;b=b+c|0;f=f-1|0;if(f)continue;break}}}function FN(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;j=xb-16|0;xb=j;e=J[a+16>>2];d=J[a+28>>2];k=J[a+24>>2];J[j+12>>2]=0;a:{b:{g=k+1|0;c:{if(g>>>0<=d>>>0){l=J[a+32>>2];break c}J[a+36>>2]=b;l=Tb(b,4,d,g,J[a+32>>2],j+12|0);J[a+32>>2]=l;if(J[j+12>>2])break b;J[a+28>>2]=g}g=l;if(k){e=e+10|0;while(1){f=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);o=K[e|0];p=K[e+1|0];q=K[e+2|0];d:{e:{f:{b=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b)break f;d=b+J[a+16>>2]|0;b=K[d|0]| -K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);m=d+4|0;h=0;while(1){if(b>>>0<=h>>>0)break f;d=b;b=b+h>>>1|0;i=m+(b<<2)|0;n=K[i+1|0]<<8|K[i|0]<<16|K[i+2|0];if(n>>>0>c>>>0)continue;h=b+1|0;b=d;if(K[i+3|0]+n>>>0>>0)continue;break}break e}b=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(!b)break d;d=b+J[a+16>>2]|0;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b)break d;i=d+4|0;h=0;while(1){g:{d=b+h>>>1|0;f=i+P(d,5)|0;m= -K[f+1|0]<<8|K[f|0]<<16|K[f+2|0];h:{if(m>>>0>c>>>0){b=d;break h}if(c>>>0<=m>>>0)break g;h=d+1|0}if(b>>>0>h>>>0)continue;break d}break}if(!(K[f+4|0]|K[f+3|0]<<8))break d}J[g>>2]=p<<8|o<<16|q;g=g+4|0}e=e+11|0;k=k-1|0;if(k)continue;break}}J[g>>2]=0;break a}l=0}xb=j+16|0;return l|0}function Bt(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=J[b+12>>2];h=J[b+4>>2];a:{if(e>>>0>>0)break a;f=J[b+8>>2];if(f-a>>>0<4)break a;c=K[a|0]|K[a+1|0]<<8;g=c<<8|c>>>8;if((g&65535)-1>>>0>1|a-h>>>0>e>>>0|f-a>>>0<8)break a; -c=a+8|0;d=K[a+6|0]|K[a+7|0]<<8;if(d){d=(d<<8|d>>>8)&65535;k=d>>>0<=1?1:d;d=0;g=0;while(1){if(f-c>>>0<2|c-h>>>0>e>>>0)break a;e=J[b+12>>2];i=c+2|0;h=J[b+4>>2];if(e>>>0>>0)break a;f=K[c|0]|K[c+1|0]<<8;j=((f<<8|f>>>8)&65535)<<2;f=J[b+8>>2];if(j>>>0>f-i>>>0)break a;i=J[b+16>>2]-j|0;J[b+16>>2]=i;if((i|0)<=0)break a;c=(j|2)+c|0;g=g+1|0;if((k|0)!=(g|0))continue;break}e=K[a|0]|K[a+1|0]<<8;g=e<<8|e>>>8}d=1;if((g&65535)>>>0<2)break a;b:{c:{if(K[c|0]&128|(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<4))break c; -e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);d:{if(!e)break d;if(si((e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))+a|0,b))break d;e=J[b+32>>2];if(e>>>0>31)break c;J[b+32>>2]=e+1;if(!K[b+28|0])break c;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0}d=c+4|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<4|K[d|0]&128)break c;e=1;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);e:{if(!c)break e;if(yi((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0,b))break e;a=J[b+32>>2];if(a>>>0>31)break c;J[b+32>>2]=a+1;e=0; -if(!K[b+28|0])break e;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;e=1}a=e;break b}a=0}d=a}return d}function Aea(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;g=J[a+420>>2];d=J[a+236>>2];if(d){c=J[g+36>>2];a:{if(c)break a;c=d;if(J[a+288>>2]<=0)break a;c=0;while(1){J[((c<<2)+g|0)+20>>2]=0;c=c+1|0;if((c|0)>2])continue;break}c=J[a+236>>2]}J[g+36>>2]=c-1}if(J[a+316>>2]>0)while(1){e=j<<2;c=J[(e+a|0)+320>>2]<<2;d=J[(c+a|0)+292>>2];h=J[((J[d+24>>2]<<2)+g|0)+92>>2];i= -J[((J[d+20>>2]<<2)+g|0)+76>>2];o=J[a+380>>2];k=J[a+384>>2];d=0;l=b+e|0;m=J[l>>2];e=I[m>>1];n=c+g|0;c=J[n+20>>2];b:{if((e|0)==(c|0))break b;e=e-c|0;d=e>>31;c=(d^e)-d|0;d=0;while(1){e=d;d=e+1|0;f=c>>>0>1;c=c>>>1|0;if(f)continue;break}if(e>>>0<11)break b;e=J[a>>2];J[e+20>>2]=6;Ab[J[e>>2]](a)}d=(d<<2)+i|0;J[d>>2]=J[d>>2]+1;c:{if((k|0)<=0)break c;f=1;e=0;while(1){d:{c=L[(J[(f<<2)+o>>2]<<1)+m>>1];e:{if(c){if((e|0)>=16){d=(e-((e|0)>=31?31:e)|0)+15|0;J[h+960>>2]=(J[h+960>>2]+(d>>>4|0)|0)+1;e=(e-(d&-16)|0)- -16|0}d=1;i=c;c=c<<16>>31;c=(i^c)-c&65535;f:{if(c>>>0<2)break f;while(1){i=d;d=d+1|0;p=c>>>0>3;c=c>>>1|0;if(p)continue;break}if(i>>>0<10)break f;c=J[a>>2];J[c+20>>2]=6;Ab[J[c>>2]](a)}d=((e<<6)+h|0)+(d<<2)|0;J[d>>2]=J[d>>2]+1;e=0;if((f|0)!=(k|0))break e;break c}if((f|0)==(k|0))break d;e=e+1|0}f=f+1|0;continue}break}if((e|0)<0)break c;J[h>>2]=J[h>>2]+1}J[n+20>>2]=I[J[l>>2]>>1];j=j+1|0;if((j|0)>2])continue;break}return 1}function y0(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;i= -J[a+208>>2];if(i)Ab[J[J[i>>2]+460>>2]](i,b,c,d);b=J[d>>2];i=J[d+4>>2];if((b|0)!=(i|0)){c=a+33|0;while(1){e=J[b+4>>2];f=+(e|0);g=J[b>>2];h=+(g|0);d=J[a+156>>2];a:{b:{if(d){if(le(d,h,f))break b;H[c+J[J[a>>2]-12>>2]|0]=1;break a}d=J[a+208>>2];if(!d)break b;Ab[J[J[d>>2]+32>>2]](d,h,f)}d=J[a+120>>2];J[d+680>>2]=g;J[d+684>>2]=e}e=J[b+4>>2];f=+(e|0);g=J[b+8>>2];h=+(g|0);d=J[a+156>>2];c:{d:{if(d){if(ud(d,h,f))break d;H[c+J[J[a>>2]-12>>2]|0]=1;break c}d=J[a+208>>2];if(!d)break d;Ab[J[J[d>>2]+36>>2]](d,h,f)}d= -J[a+120>>2];J[d+680>>2]=g;J[d+684>>2]=e}e=J[b+12>>2];f=+(e|0);g=J[b+8>>2];h=+(g|0);d=J[a+156>>2];e:{f:{if(d){if(ud(d,h,f))break f;H[c+J[J[a>>2]-12>>2]|0]=1;break e}d=J[a+208>>2];if(!d)break f;Ab[J[J[d>>2]+36>>2]](d,h,f)}d=J[a+120>>2];J[d+680>>2]=g;J[d+684>>2]=e}e=J[b+12>>2];f=+(e|0);g=J[b>>2];h=+(g|0);d=J[a+156>>2];g:{h:{if(d){if(ud(d,h,f))break h;H[c+J[J[a>>2]-12>>2]|0]=1;break g}d=J[a+208>>2];if(!d)break h;Ab[J[J[d>>2]+36>>2]](d,h,f)}d=J[a+120>>2];J[d+680>>2]=g;J[d+684>>2]=e}b=b+16|0;if((i|0)!= -(b|0))continue;break}}b=J[a+156>>2];i:{if(b){if(Kf(b))break i;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break i}b=J[a+208>>2];if(!b)break i;Ab[J[J[b>>2]+48>>2]](b)}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,2);a=J[a+208>>2];Ab[J[J[a>>2]+56>>2]](a)}}function cA(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-32|0;xb=e;a:{b:{c=J[194913];c:{if(!c)break c;g=J[b>>2];f=779652;d=c;while(1){h=(g|0)>J[d+16>>2];f=h?f:d;d=J[(h?d+4|0:d)>>2];if(d)continue;break}if((f|0)==779652)break c;if((g| -0)>=J[f+16>>2])break b}J[a>>2]=0;H[a+11|0]=0;break a}d:{while(1){e:{d=J[c+16>>2];if((d|0)>(g|0)){c=J[c>>2];if(c)continue;break e}if((d|0)>=(g|0))break d;c=J[c+4>>2];if(c)continue}break}Kq(227337);B()}d=K[c+31|0];g=d<<24>>24;f:{h=(g|0)<0?J[c+24>>2]:d;d=h+1|0;if(d>>>0<1073741808){g:{if(d>>>0<=1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;H[e+27|0]=d;f=e+16|0;break g}f=d|3;if(f>>>0>=1073741823)break f;i=f+1|0;f=Pb(i<<2);J[e+20>>2]=d;J[e+16>>2]=f;J[e+24>>2]=i|-2147483648}c=c+20|0;d=(g|0)<0?J[c>>2]:c;c=h<< -2;c=qc(f,d,c)+c|0;J[c>>2]=95;J[c+4>>2]=0;b=J[b+4>>2];J[195395]=0;c=e+4|0;da(1863,c|0,+(b>>>0),-1);b=J[195395];J[195395]=0;h:{i:{if((b|0)!=1){J[195395]=0;d=c;b=K[e+15|0];c=b<<24>>24<0;b=aa(1864,e+16|0,(c?J[e+4>>2]:d)|0,(c?J[e+8>>2]:b)|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break i;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[e+15|0]<0)Kb(J[e+4>>2]);if(H[e+27|0]>=0)break a;Kb(J[e+16>>2]);break a}d=Z()|0;break h}d=Z()|0;if(H[e+15|0]>=0)break h; -Kb(J[e+4>>2])}if(H[e+27|0]<0)Kb(J[e+16>>2]);ba(d|0);B()}dd(e+16|0);B()}zd();B()}xb=e+32|0}function hx(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;a=xb-16|0;xb=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;a:{b:{c:{while(1){d:{c=J[a+12>>2];if(c>>>0>=d>>>0)break d;j=J[a+8>>2];if(j>>>0>=g>>>0)break d;b=2;f=K[c|0];e:{if(f<<24>>24>=0){I[j>>1]=f;b=c+1|0;break e}if(f>>>0<194)break b;if(f>>>0<=223){if((d-c|0)<2)break c;i=K[c+1|0];if((i&192)!=128)break a;I[j>> -1]=i&63|f<<6&1984;b=c+2|0;break e}if(f>>>0<=239){if((d-c|0)<3)break c;k=K[c+2|0];i=K[c+1|0];f:{g:{if((f|0)!=237){if((f|0)!=224)break g;if((i&224)==160)break f;break a}if((i&224)==128)break f;break a}if((i&192)!=128)break a}if((k&192)!=128)break a;I[j>>1]=k&63|((i&63)<<6|f<<12);b=c+3|0;break e}if(f>>>0>244)break b;b=1;if((d-c|0)<4)break a;k=K[c+3|0];i=K[c+2|0];c=K[c+1|0];h:{i:switch(f-240|0){case 0:if((c+112&255)>>>0>=48)break b;break h;case 4:if((c&240)!=128)break b;break h;default:break i}if((c& -192)!=128)break b}if((i&192)!=128|(k&192)!=128)break b;if((g-j|0)<4)break a;b=2;k=k&63;l=i<<6;f=f&7;if((k|(l&4032|(c<<12&258048|f<<18)))>>>0>1114111)break a;b=c<<2;I[j>>1]=(i>>>4&3|(b&192|f<<8|b&60))+16320|55296;J[a+8>>2]=j+2;I[j+2>>1]=k|l&960|56320;b=J[a+12>>2]+4|0}J[a+12>>2]=b;J[a+8>>2]=J[a+8>>2]+2;continue}break}b=c>>>0>>0;break a}b=1;break a}b=2}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];xb=a+16|0;return b|0}function Tea(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;var h=0,i=0,j=0,k= -0,l=0,m=0,n=0,o=0,p=0;a:{if(M[f>>2]>=g>>>0)break a;o=P(J[a+272>>2],3);j=J[a+396>>2];p=j+8|0;while(1){b:{c:{d:{h=J[c>>2];if(h>>>0>>0){i=J[j+52>>2];k=J[j+60>>2]-i|0;l=d-h|0;l=k>>>0>>0?k:l;Ab[J[J[a+408>>2]+4>>2]](a,(h<<2)+b|0,p,i,l);e:{if(J[j+48>>2]!=J[a+32>>2])break e;i=J[a+76>>2];if((i|0)<=0)break e;k=0;h=J[a+272>>2];if((h|0)<=0)break e;while(1){if((h|0)>0){m=(k<<2)+j|0;i=1;while(1){h=J[m+8>>2];Mg(h,0,h,0-i|0,1,J[a+28>>2]);h=J[a+272>>2];n=(h|0)>(i|0);i=i+1|0;if(n)continue;break}i=J[a+76>>2]}k= -k+1|0;if((k|0)<(i|0))continue;break}}J[c>>2]=l+J[c>>2];k=l+J[j+52>>2]|0;J[j+52>>2]=k;J[j+48>>2]=J[j+48>>2]-l;h=J[j+60>>2];break d}if(J[j+48>>2])break a;h=J[j+60>>2];k=J[j+52>>2];if((h|0)<=(k|0))break d;l=0;k=J[a+76>>2];if((k|0)>0){while(1){i=J[j+52>>2];m=J[j+60>>2];if((i|0)<(m|0)){h=J[((l<<2)+j|0)+8>>2];k=J[a+28>>2];n=i-1|0;while(1){Mg(h,n,h,i,1,k);i=i+1|0;if((m|0)!=(i|0))continue;break}k=J[a+76>>2]}l=l+1|0;if((l|0)<(k|0))continue;break}h=J[j+60>>2]}J[j+52>>2]=h;i=J[f>>2];break c}i=J[f>>2];if((h| -0)!=(k|0))break b}Ab[J[J[a+412>>2]+4>>2]](a,p,J[j+56>>2],e,i);J[f>>2]=J[f>>2]+1;i=J[a+272>>2];h=i+J[j+56>>2]|0;J[j+56>>2]=(h|0)<(o|0)?h:0;h=J[j+52>>2];if((h|0)>=(o|0)){J[j+52>>2]=0;h=0}J[j+60>>2]=h+i;i=J[f>>2]}if(i>>>0>>0)continue;break}}}function yba(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;if(c-b&4){J[c>>2]=0;c=c+4|0}if(b>>>0>>0)while(1){f=J[b>>2];if(!(f>>>0<=d>>>0&f+i>>>0<=d>>>0)){f=d-i|0;J[b>>2]=f}if(f){e=(i>>>3|0)+a|0;g=i&7;h=8-g|0;a:{if(h>>>0>>0){if(g){H[e|0]=K[e| -0]&255<>>0>=8){g=f>>>3|0;if(f>>>0>=64){if(e&3){h=(e^-1)&3;g=g-1|0;j=g>>>0>h>>>0?h:g;h=j+1|0;g=g-j|0;e=Nb(e,0,h)+h|0}h=g&-4;g=g&3;e=Nb(e,0,h)+h|0}b:switch(g-1|0){case 6:H[e+6|0]=0;case 5:H[e+5|0]=0;case 4:H[e+4|0]=0;case 3:H[e+3|0]=0;case 2:H[e+2|0]=0;case 1:H[e+1|0]=0;case 0:H[e|0]=0;e=e+g|0;break;default:break b}f=f&7}if(!f)break a;H[e|0]=K[e|0]&255>>>f;break a}H[e|0]=K[e|0]&(K[f+286942|0]>>>g^-1)}i=J[b>>2]+i|0}f=J[b+4>>2];if(!(f>>>0<=d>>>0&f+i>>>0<=d>>>0)){f=d-i|0;J[b+4>> -2]=f}if(f){e=(i>>>3|0)+a|0;g=i&7;h=8-g|0;c:{d:{if(h>>>0>>0){if(g){H[e|0]=K[e|0]|255>>>g;f=f-h|0;e=e+1|0}if(f>>>0>=8){g=f>>>3|0;if(f>>>0>=64){if(e&3){h=(e^-1)&3;g=g-1|0;j=g>>>0>h>>>0?h:g;h=j+1|0;g=g-j|0;e=Nb(e,255,h)+h|0}h=g&-4;g=g&3;e=Nb(e,255,h)+h|0}e:switch(g-1|0){case 6:H[e+6|0]=255;case 5:H[e+5|0]=255;case 4:H[e+4|0]=255;case 3:H[e+3|0]=255;case 2:H[e+2|0]=255;case 1:H[e+1|0]=255;case 0:H[e|0]=255;e=e+g|0;break;default:break e}f=f&7}if(!f)break c;f=65280>>>f|0;break d}f=K[f+286942|0]>>>g|0}H[e| -0]=f|K[e|0]}i=J[b+4>>2]+i|0}b=b+8|0;if(c>>>0>b>>>0)continue;break}}function Rna(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=J[a>>2];if((e|0)>=0){f=(b|0)>0?b:0;a:{b:{if(d){b=J[a+4>>2];b=b>>>0>f>>>0?b:f;if(e>>>0>>0|e>>>2>>>0>b>>>0)break b;break a}if(e>>>0>=f>>>0)break a;b=e;while(1){b=((b>>>1|0)+b|0)+8|0;if(f>>>0>b>>>0)continue;break}}c:{if(b>>>0<=178956970){d:{e:{if(!b)break e;g=Qb(P(b,24));d=0;if(!g)break d;if(!J[a+4>>2])break e;while(1){i=P(h,24);e=i+g|0;J[e+16>>2]=0;J[e+20>> -2]=0;d=J[a+8>>2]+i|0;J[e>>2]=J[d>>2];J[e+4>>2]=J[d+4>>2];J[d+4>>2]=0;J[e+8>>2]=J[d+8>>2];J[d+8>>2]=0;J[e+12>>2]=J[d+12>>2];J[d+12>>2]=0;j=J[d+20>>2];J[e+16>>2]=J[d+16>>2];J[e+20>>2]=j;d=J[a+8>>2]+i|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;h=h+1|0;if(h>>>0>2])continue;break}}Kb(J[a+8>>2]);d=g}if(d|!b)break c;e=J[a>>2];if(e>>>0>=b>>>0)break a}J[a>>2]=e^-1;return 0}J[a>>2]=b;J[a+8>>2]=d}b=J[a+4>>2];f:{if(f>>>0>b>>>0){if(!c)break f;while(1){b=J[a+8>>2]+P(b, -24)|0;J[b>>2]=0;J[b+4>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[a+4>>2]+1|0;J[a+4>>2]=b;if(b>>>0>>0)continue;break}break f}if(!c|b>>>0<=f>>>0)break f;e=b-f|0;if(!e)break f;b=J[a+8>>2]+P(b,24)|0;while(1){c=b-24|0;if(J[c+4>>2]){J[c+8>>2]=0;Kb(J[c+12>>2])}b=b-24|0;J[b+8>>2]=0;J[c+4>>2]=0;J[b+12>>2]=0;b=c;e=e-1|0;if(e)continue;break}}J[a+4>>2]=f;a=1}else a=0;return a|0}function bJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;i=J[a+84>>2]; -a:{b:{c:{f=J[a+8>>2];if(!(f&8))break c;f=J[a+4>>2]&2147418112|f&32768;if(d&16){if(f){f=7;if(!(K[a+740|0]&16))break a}if(!K[a+292|0])break c;if(!c)break b;f=0;if((c|0)!=1){i=c&-2;d=0;while(1){j=h+14|0;k=h+12|0;Ab[J[J[a+540>>2]+140>>2]](a,1,b+g|0,j,k);J[(g<<2)+e>>2]=L[h+12>>1];l=g|1;Ab[J[J[a+540>>2]+140>>2]](a,1,l+b|0,j,k);J[(l<<2)+e>>2]=L[h+12>>1];g=g+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1))break a;Ab[J[J[a+540>>2]+140>>2]](a,1,b+g|0,h+14|0,h+12|0);J[(g<<2)+e>>2]=L[h+12>>1];break a}if(f){f= -7;if(!(K[a+740|0]&2))break a}if(!L[a+250>>1])break c;if(!c)break b;f=0;if((c|0)!=1){i=c&-2;d=0;while(1){j=h+14|0;k=h+10|0;Ab[J[J[a+540>>2]+140>>2]](a,0,b+g|0,j,k);J[(g<<2)+e>>2]=L[h+10>>1];l=g|1;Ab[J[J[a+540>>2]+140>>2]](a,0,l+b|0,j,k);J[(l<<2)+e>>2]=L[h+10>>1];g=g+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1))break a;Ab[J[J[a+540>>2]+140>>2]](a,0,b+g|0,h+14|0,h+10|0);J[(g<<2)+e>>2]=L[h+10>>1];break a}if(!c)break b;if(!i){f=37;break a}l=i+(d&16?60:56)|0;while(1){f=J[a+88>>2];j=(f?256:259)| -d;k=b+g|0;d:{if(!(j&1?0:f)){f=fm(i,0,k,j);break d}if(J[f>>2]!=J[i+4>>2]){f=35;break a}f=fm(i,f,k,j)}if(f)break a;J[(g<<2)+e>>2]=J[l>>2];g=g+1|0;if((g|0)!=(c|0))continue;break}}f=0}xb=h+16|0;return f|0}function RH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;f=J[b+12>>2];d=J[b+4>>2];a:{if(f>>>0>>0)break a;g=J[b+8>>2];if(g-a>>>0<2)break a;e=a+2|0;if(f>>>0>>0)break a;d=K[a|0]|K[a+1|0]<<8;d=P((d<<8|d>>>8)&65535,3);if(d>>>0>g-e>>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;b:{d=K[a|0]| -K[a+1|0]<<8;if(!d)break b;d=(d<<8|d>>>8)&65535;g=d>>>0<=1?1:d;d=0;while(1){h=P(d,3)+a|0;f=h+2|0;if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-f>>>0<3)return 0;f=K[f|0]|K[f+1|0]<<8;if(M[b+40>>2]<=((f<<8|f>>>8)&65535)>>>0)return 0;if(K[h+4|0]>>0){d=d+1|0;if((g|0)==(d|0))break b;continue}break}return 0}d=K[a|0]|K[a+1|0]<<8;if(!d|(K[e|0]|K[e+1|0]<<8))break a;e=(d<<8|d>>>8)&65535;if(e>>>0>=2){c=1;while(1){f=e;e=c-1|0;if(f>>>0>e>>>0){d=K[a|0]|K[a+1|0]<<8;e=(P(e,3)+a|0)+2|0}else e=169776;e=K[e| -0]|K[e+1|0]<<8;d=((d<<8|(d&65280)>>>8)&65535)>>>0<=c>>>0?169776:(P(c,3)+a|0)+2|0;d=K[d|0]|K[d+1|0]<<8;if(((e<<8|e>>>8)&65535)>>>0>=((d<<8|d>>>8)&65535)>>>0)break a;d=K[a|0]|K[a+1|0]<<8;e=(d<<8|d>>>8)&65535;c=c+1|0;if(e>>>0>c>>>0)continue;break}}e=J[b+12>>2];if(d)c=(P((d<<8|d>>>8)&65535,3)+a|0)-1|0;else c=169776;c=c+3|0;if(e>>>0>2]>>>0|J[b+8>>2]-c>>>0<2)break a;c=J[b+40>>2];b=K[a|0]|K[a+1|0]<<8;if(b)a=(P((b<<8|b>>>8)&65535,3)+a|0)-1|0;else a=169776;a=K[a+3|0]|K[a+4|0]<<8;i=(c|0)==((a<<8|a>>> -8)&65535)}return i}function wB(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;c=xb+-64|0;xb=c;en(c+52|0,J[b+80>>2],J[b+48>>2]);J[c+48>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;a:{b:{c:{f=J[b+84>>2];if(f){g=J[b+48>>2];J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;d:{if(!g)break d;if(g>>>0>=536870912){J[195395]=0;ea(1815,c+24|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;B()}J[195395]=0;j=g<<3;h=_(1078,j|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;l=g-1&1073741823;k=g&7;e:{if(!k){e=f;d=h;break e}e= -f;d=h;while(1){O[d>>3]=M[e>>2];d=d+8|0;e=e+4|0;i=i+1|0;if((i|0)!=(k|0))continue;break}}i=h+j|0;if(l>>>0<7)break d;f=f+(g<<2)|0;while(1){O[d>>3]=M[e>>2];O[d+8>>3]=M[e+4>>2];O[d+16>>3]=M[e+8>>2];O[d+24>>3]=M[e+12>>2];O[d+32>>3]=M[e+16>>2];O[d+40>>3]=M[e+20>>2];O[d+48>>3]=M[e+24>>2];O[d+56>>3]=M[e+28>>2];d=d- -64|0;e=e+32|0;if((f|0)!=(e|0))continue;break}}J[c+48>>2]=i;J[c+44>>2]=d;J[c+40>>2]=h}f=J[b+44>>2];O[c+24>>3]=J[b+40>>2];O[c+32>>3]=f|0;m=O[b+24>>3];O[c+16>>3]=O[b+32>>3];O[c+8>>3]=m;J[195395]= -0;Da(1967,a+8|0,c+52|0,c+24|0,b|0,c+8|0,c+40|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;a=J[c+40>>2];if(a){J[c+44>>2]=a;Kb(a)}if(H[c+63|0]<0)Kb(J[c+52>>2]);xb=c- -64|0;return}d=Z()|0;a=J[c+24>>2];if(!a)break a;J[c+28>>2]=a;Kb(a);break a}d=Z()|0;a=J[c+40>>2];if(!a)break a;J[c+44>>2]=a;Kb(a)}if(H[c+63|0]<0)Kb(J[c+52>>2]);ba(d|0);B()}function nU(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;g=xb-32|0;xb=g;J[g+28>>2]=b;a:{b:{if(!(J[d+4>>2]&1)){J[g>>2]=-1;b=Ab[J[J[a>>2]+16>>2]](a,b, -c,d,e,g)|0;c:switch(J[g>>2]){case 1:H[f|0]=1;break a;case 0:break b;default:break c}H[f|0]=1;J[e>>2]=4;break a}a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[195395]=0;h=_(3551,g|0)|0;a=J[195395];J[195395]=0;d:{e:{f:{g:{if((a|0)!=1){a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[195395]=0;b=_(3653,g|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break g;a=J[g>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)Ab[J[J[a>>2]+8>>2]](a);J[195395]= -0;$(3654,g|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1){b=Z()|0;break d}J[195395]=0;$(3655,g|12,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;d=g+24|0;a=ya(3656,g+28|0,c|0,g|0,d|0,h|0,e|0,1)|0;b=J[195395];J[195395]=0;if((b|0)==1)break e;H[f|0]=(a|0)==(g|0);b=J[g+28>>2];while(1){d=Yc(d-12|0);if((g|0)!=(d|0))continue;break}break a}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>> -2]+8>>2]](a);break d}b=Z()|0;Yc(g);break d}b=Z()|0;while(1){d=Yc(d-12|0);if((g|0)!=(d|0))continue;break}}ba(b|0);B()}H[f|0]=0}xb=g+32|0;return b|0}function ix(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;a=xb-16|0;xb=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;c=J[a+12>>2];a:{b:{while(1){if(c>>>0>=d>>>0){f=0;break a}f=2;c:{b=L[c>>1];d:{if(b>>>0<=127){f=1;c=J[a+8>>2];if((g-c|0)<=0)break a;J[a+8>>2]=c+1;H[c|0]=b;break d}if(b>>>0<=2047){c=J[a+8>>2];if((g-c|0)< -2)break b;J[a+8>>2]=c+1;H[c|0]=b>>>6|192;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break d}if(b>>>0<=55295){c=J[a+8>>2];if((g-c|0)<3)break b;J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break d}if(b>>>0<=56319){f=1;if((d-c|0)<4)break a;i=L[c+2>>1];if((i&64512)!=56320)break c;if((g-J[a+8>>2]|0)<4)break a;f=b&960;if((i&1023|(b<<10&64512|f<<10))>>>0>1048575)break c;J[a+12>>2]=c+2;c=J[a+8>>2];J[a+8>>2]=c+1;j=c;c=(f>>>6|0)+1|0; -H[j|0]=c>>>2|240;f=J[a+8>>2];J[a+8>>2]=f+1;H[f|0]=c<<4&48|b>>>2&15|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=i>>>6&15|b<<4&48|128;b=J[a+8>>2];J[a+8>>2]=b+1;H[b|0]=i&63|128;break d}if(b>>>0<57344)break a;c=J[a+8>>2];if((g-c|0)<3)break b;J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128}c=J[a+12>>2]+2|0;J[a+12>>2]=c;continue}break}f=2;break a}f=1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];xb=a+16|0;return f|0}function KU(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;g=xb-32|0;xb=g;J[g+28>>2]=b;a:{b:{if(!(J[d+4>>2]&1)){J[g>>2]=-1;b=Ab[J[J[a>>2]+16>>2]](a,b,c,d,e,g)|0;c:switch(J[g>>2]){case 1:H[f|0]=1;break a;case 0:break b;default:break c}H[f|0]=1;J[e>>2]=4;break a}a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[195395]=0;h=_(3535,g|0)|0;a=J[195395];J[195395]=0;d:{e:{f:{g:{if((a|0)!=1){a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[195395]=0;b=_(3624, -g|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break g;a=J[g>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)Ab[J[J[a>>2]+8>>2]](a);J[195395]=0;$(3625,g|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1){b=Z()|0;break d}J[195395]=0;$(3626,g|12,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break f;J[195395]=0;d=g+24|0;a=ya(3627,g+28|0,c|0,g|0,d|0,h|0,e|0,1)|0;b=J[195395];J[195395]=0;if((b|0)==1)break e;H[f|0]=(a|0)==(g|0);b=J[g+28>>2];while(1){d=Yb(d-12|0);if((g|0)!=(d|0))continue;break}break a}b=Z()|0;a=J[g>>2];c=J[a+ -4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;Yb(g);break d}b=Z()|0;while(1){d=Yb(d-12|0);if((g|0)!=(d|0))continue;break}}ba(b|0);B()}H[f|0]=0}xb=g+32|0;return b|0}function Ku(a,b,c){var d=0,e=0,f=0,g=0,h=0;c=0;h=J[b+12>>2];d=a+4|0;f=J[b+4>>2];a:{if(h>>>0>>0)break a;e=J[b+8>>2];if(e-d>>>0<4)break a;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280| -d>>>24);if(d>>>0<12|h>>>0>>0|d>>>0>e-a>>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;g=a+12|0;if(h>>>0>>0)break a;f=K[a+8|0]|K[a+9|0]<<8;f=P((f<<8|f>>>8)&65535,12);if(f>>>0>e-g>>>0)break a;d=d-f|0;J[b+16>>2]=d;if((d|0)<=0)break a;c=1;a=K[a+10|0]|K[a+11|0]<<8;if(!a)break a;a=(a<<8|a>>>8)&65535;h=a>>>0<=1?1:a;a=f+g|0;f=0;while(1){c=0;b:{e=M[b+12>>2]>2]>>>0;if(e)break b;g=J[b+8>>2]-a|0;if(g>>>0<2)break b;d=K[a|0]|K[a+1|0]<<8;d=(d<<8|d>>>8)&65535;if(e|d>>>0<8|d>>>0> -g>>>0)break b;e=J[b+16>>2]-d|0;J[b+16>>2]=e;if((e|0)<=0)break b;e=J[b+36>>2];c=J[e+12>>2];J[b+4>>2]=c;e=c+J[e+16>>2]|0;c=a>>>0>>0|e>>>0<=a>>>0;J[b+4>>2]=c?0:a;e=e-a|0;d=d>>>0>e>>>0?e:d;J[b+12>>2]=c?0:d;J[b+8>>2]=c?0:a+d|0;J[195395]=0;c=Ju(a,b);d=J[195395];J[195395]=0;c:{if((d|0)==1)break c;d=J[b+36>>2];e=J[d+12>>2];J[b+4>>2]=e;d=J[d+16>>2];J[b+12>>2]=d;J[b+8>>2]=d+e;break b}a=Z()|0;c=J[b+36>>2];d=J[c+12>>2];J[b+4>>2]=d;c=J[c+16>>2];J[b+12>>2]=c;J[b+8>>2]=c+d;ba(a|0);B()}if(!c)break a;d=a;a=K[a| -0]|K[a+1|0]<<8;a=d+((a<<8|a>>>8)&65535)|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}return c}function Uda(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,u=0,v=0;n=xb+-64|0;xb=n;d=Nb(a,0,256);while(1){a:{h=d;d=J[(i<<2)+b>>2]+c|0;e=K[d+3|0];f=K[d+1|0];g=e+f|0;j=K[d+4|0];k=K[d|0];l=j+k|0;m=g+l|0;d=K[d+2|0];J[h>>2]=(m+d<<2)-2560;g=P(l-g|0,6476)+1024|0;d=P(m-(d<<2)|0,2896);J[h+16>>2]=g-d>>11;J[h+8>>2]=d+g>>11;e=f-e|0;f=k-j|0;d=P(e+f|0,6810)+1024|0;J[h+12>> -2]=d+P(e,-17828)>>11;J[h+4>>2]=d+P(f,4209)>>11;e=i-7|0;i=i+1|0;d=n;b:switch(e|0){case 0:continue;case 2:break a;default:break b}d=h+32|0;continue}break}while(1){i=J[a+192>>2];e=J[a+96>>2];b=i+e|0;h=J[d>>2];f=J[a+32>>2];c=h+f|0;g=b+c|0;j=J[a+224>>2];k=J[a+64>>2];l=j+k|0;m=l<<1;o=J[a+160>>2];p=J[a+128>>2];q=o+p|0;r=J[d+32>>2];s=J[a>>2];t=r+s|0;u=q+t|0;J[a+128>>2]=(P(g-m|0,-4582)+P(u-m|0,11997)|0)+16384>>15;J[a>>2]=P((g+l|0)+u|0,10486)+16384>>15;g=t-q|0;c=c-b|0;b=P(g+c|0,8716)+16384|0;J[a+192>>2]=b+ -P(c,-22820)>>15;J[a+64>>2]=b+P(g,5387)>>15;b=p-o|0;c=s-r|0;g=b+c|0;h=f-h|0;i=e-i|0;e=h-i|0;f=k-j|0;J[a+160>>2]=P(g-(e+f|0)|0,10486)+16384>>15;j=(P(c-b|0,9973)+P(h+i|0,-6163)|0)+16384|0;f=P(f,10486);e=(P(e,5243)-f|0)+P(e+g|0,3240)|0;J[a+224>>2]=j-e>>15;J[a+96>>2]=e+j>>15;J[a+32>>2]=(((f+(P(c,14647)+P(h,13213)|0)|0)+P(i,6732)|0)+P(b,2320)|0)+16384>>15;d=d+4|0;a=a+4|0;v=v+1|0;if((v|0)!=5)continue;break}xb=n- -64|0}function hw(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(d){g=(f|0)==2;m=g?256: -128;n=g?128:256;l=0-f|0;while(1){i=J[c+16>>2];a:{if(i&16)break a;k=J[c+28>>2];b:{g=H[c+20|0];c:{if((g|0)==(f|0)|(g|0)==(l|0))break c;g=H[c+21|0];if((g|0)==(f|0))break c;if((g|0)!=(l|0))break b}if(!g)break b;if((f|0)==(g|0)){g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-J[h>>2]|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break a}break}J[c+24>>2]=h;J[c+16>>2]=i|528;break a}if((g|0)!=(l|0))break a;g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-(J[h>>2]+J[h+4>>2]|0)|0;if(!((j| -0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break a}break}J[c+24>>2]=h;J[c+16>>2]=i|1040;break a}if(!(i&64))break a;d:{e:{if(i&n){g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-J[h>>2]|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break d}break}g=528;break e}if(!(i&m))break d;g=0;if(!a)break d;while(1){h=J[(g<<2)+b>>2];j=k-(J[h>>2]+J[h+4>>2]|0)|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break d}break}g=1040}J[c+24>>2]=h;J[c+16>>2]=g|i}if(J[c+ -24>>2])break a;g=0;if(!a)break a;while(1){i=J[(g<<2)+b>>2];h=J[i>>2];if(!((h|0)>(k|0)|(h+J[i+4>>2]|0)<(k|0))){J[c+24>>2]=i;break a}g=g+1|0;if((g|0)!=(a|0))continue;break}}c=c+40|0;d=d-1|0;if(d)continue;break}}}function PG(a,b){var c=0,d=0,e=0;a:{b:{c:{d:{c=K[a|0]|K[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}c=J[b+8>>2];J[b+8>>2]=c+1;b=J[b+4>>2]+P(c,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=826;J[b+8>>2]=827;J[b+4>>2]=828;J[b>>2]=a;J[b+ -24>>2]=0;b=b+16|0;c=K[a+2|0]|K[a+3|0]<<8;if(!c){$d(169776,b);return}$d(((c<<8|c>>>8)&65535)+a|0,b);return}c=J[b+8>>2];J[b+8>>2]=c+1;c=J[b+4>>2]+P(c,28)|0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+12>>2]=835;J[c+8>>2]=836;J[c+4>>2]=837;J[c>>2]=a;J[c+24>>2]=0;e=169776;d=K[a+2|0]|K[a+3|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+a|0;else d=169776;$d(d,c+16|0);c=0;d=K[a+8|0]|K[a+9|0]<<8;if(d)e=((d<<8|d>>>8)&65535)+a|0;e:{f:{g:{d=K[e|0]|K[e+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break f;case 0:break g;default:break e}}c= -1;break e}c=K[e+2|0]|K[e+3|0]<<8;c=c?32-S((c<<8|c>>>8)&65535)|0:0}a=K[a+10|0]|K[a+11|0]<<8;a=P((a<<8|a>>>8)&65535,c);a=a>>>0>3?a:0;if(a>>>0>M[b+16>>2]){J[b+16>>2]=a;J[b+12>>2]=J[b+8>>2]-1}return}c=J[b+8>>2];J[b+8>>2]=c+1;b=J[b+4>>2]+P(c,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=829;J[b+8>>2]=830;J[b+4>>2]=831;J[b>>2]=a;J[b+24>>2]=0;c=K[a+2|0]|K[a+3|0]<<8;c=(a+2|0)+(((c<<8|c>>>8)&65535)<<1)|0;if(K[c+2|0]|K[c+3|0]<<8)c=c+4|0;else c=169776;c=K[c|0]|K[c+1|0]<<8;if(c)a=((c<<8|c>>>8)&65535)+a|0;else a= -169776;$d(a,b+16|0)}}function RM(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=J[a+804>>2];a:{b:{if(e){d=6;if(M[a+28>>2]<=b>>>0)break a;b=J[e+(b<<2)>>2];break b}d=6;if(M[a+800>>2]<=b>>>0)break a}d=2;c:{d:switch(J[a+796>>2]-1|0){case 0:case 1:b=J[a+788>>2]+P(b,48)|0;f=K[b+52|0];I[c>>1]=f;g=K[b+53|0];I[c+2>>1]=g;j=H[b+24|0];e=j<<6;J[c+12>>2]=e;h=H[b+25|0];d=h<<6;J[c+16>>2]=d;i=H[b+33|0];e:{f:{if((h|0)>0){if((i|0)>=0)break e;d=0-d|0;break f}if(h|j)break e;d=H[b+32|0];if(d|i){e=d<< -6;J[c+12>>2]=e;d=i<<6;break f}e=g<<6;J[c+12>>2]=e;d=0}J[c+16>>2]=d}J[c+20>>2]=e-d;if((d|0)==(e|0)){e=g<<6;J[c+20>>2]=e;J[c+16>>2]=d-e}J[c+24>>2]=H[b+31|0]+(K[b+26|0]+H[b+30|0]|0)<<6;b=a+178|0;break c;case 2:break d;default:break a}d=3;b=J[a+788>>2]+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(M[a+864>>2]>>0)break a;b=J[a+104>>2];d=bc(b,e+J[a+860>>2]|0);if(d)break a;d=Tc(b,4);if(d)break a;e=Zc(b);Zc(b);Ec(b);b=a+178|0;d=L[b>>1];I[c+ -2>>1]=e;I[c>>1]=e;e=e<<6;k=c,l=hc(I[a+220>>1],e,d),J[k+12>>2]=l;k=c,l=hc(I[a+222>>1],e,d),J[k+16>>2]=l;k=c,l=hc(I[a+224>>1]+(I[a+220>>1]-I[a+222>>1]|0)|0,e,d),J[k+20>>2]=l;k=c,l=hc(L[a+226>>1],e,d),J[k+24>>2]=l;f=L[c>>1]}k=c,l=hc(f,4194304,L[b>>1]),J[k+4>>2]=l;k=c,l=hc(L[c+2>>1],4194304,L[b>>1]),J[k+8>>2]=l;d=0}return d|0}function Qi(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;g=L[a+32>>1];c=J[a+40>>2];d=J[a+36>>2];a:{if((c|0)==(d|0)){i=-1;break a}c=c-d>>1;h=c& -3;i=-1;b:{if(c-1>>>0<3){c=0;break b}t=c&-4;c=0;while(1){j=g&65535;k=L[d+(c<<1)>>1];l=j>>>0>>0?j:k;p=c|1;m=L[d+(p<<1)>>1];n=l>>>0>>0?l:m;q=c|2;o=L[d+(q<<1)>>1];e=n>>>0>>0?n:o;r=c|3;g=L[d+(r<<1)>>1];i=e>>>0>g>>>0?r:n>>>0>o>>>0?q:l>>>0>m>>>0?p:j>>>0>k>>>0?c:i;g=e>>>0>>0?e:g;c=c+4|0;f=f+4|0;if((t|0)!=(f|0))continue;break}}if(!h)break a;while(1){f=g&65535;e=L[d+(c<<1)>>1];i=f>>>0>e>>>0?c:i;g=e>>>0>f>>>0?f:e;c=c+1|0;s=s+1|0;if((h|0)!=(s|0))continue;break}}h=g&65535;d=a+24|0;f=J[d>>2];c:{d:{if(!f){c= -d;break d}e=d;c=f;while(1){j=h>>>0>M[c+16>>2];e=j?e:c;c=J[(j?c+4|0:c)>>2];if(c)continue;break}c=d;if(!((e|0)==(c|0)|h>>>0>2])){Lz(a,g&65535);f=J[a+24>>2]}if(!f)break d;while(1){c=f;d=J[c+16>>2];if(d>>>0>h>>>0){d=c;f=J[c>>2];if(f)continue;break d}if(d>>>0>=h>>>0)break c;f=J[c+4>>2];if(f)continue;break}d=c+4|0}e=Pb(24);J[e+16>>2]=h;J[e+8>>2]=c;J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=b;J[d>>2]=e;b=J[J[a+20>>2]>>2];if(b){J[a+20>>2]=b;e=J[d>>2]}Sh(J[a+24>>2],e);J[a+28>>2]=J[a+28>>2]+1}if((i|0)!=-1){c= -J[a+36>>2]+(i<<1)|0;b=c+2|0;d=c;c=J[a+40>>2];qc(d,b,c-b|0);J[a+40>>2]=c-2}if(L[a+32>>1]==(g&65535))I[a+32>>1]=g+1}function Mea(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;f=J[a+420>>2];if(J[a+236>>2]){d=J[f+68>>2];if(!d){Il(a,J[f+72>>2]);d=J[a+236>>2];J[f+72>>2]=J[f+72>>2]+1&7}J[f+68>>2]=d-1}j=J[b>>2];k=J[a+380>>2];e=J[a+292>>2];b=J[a+364>>2];g=b;a:{if((b|0)<=0)break a;while(1){c=I[(J[(g<<2)+k>>2]<<1)+j>>1];b:{if((c|0)>=0){if(!(c>>>J[a+372>>2]|0))break b;break a}if(0- -c>>>J[a+372>>2]|0)break a}c=(g|0)>1;g=g-1|0;if(c)continue;break}g=0}i=J[e+24>>2];c=J[a+360>>2];if((g|0)>=(c|0)){m=f+204|0;n=a+i|0;l=(i<<2)+f|0;while(1){d=(J[l+140>>2]+P(c,3)|0)-3|0;Qc(a,d,0);b=c;c:{d:{e:{while(1){f:{g:{c=I[(J[(b<<2)+k>>2]<<1)+j>>1];h:{if((c|0)>=0){c=c>>>J[a+372>>2]|0;if(!c)break g;e=0;break h}c=0-c>>>J[a+372>>2]|0;if(!c)break g;e=1}Qc(a,d+1|0,1);Qc(a,m,e);e=d+2|0;h=c-1|0;if(!h)break e;Qc(a,e,1);if((h|0)==1)break e;Qc(a,e,1);e=J[l+140>>2]+(K[n+184|0]<(b|0)?217:189)|0;d=2;if(c>>>0<= -4)break f;c=h;while(1){o=e;Qc(a,e,1);e=e+1|0;d=d<<1;p=c>>>0<8;c=c>>>1|0;if(!p)continue;break}Qc(a,e,0);if(!d)break c;c=o+15|0;break d}Qc(a,d+1|0,0);b=b+1|0;d=d+3|0;continue}break}Qc(a,e,0);c=e+14|0;break d}Qc(a,e,0);break c}while(1){d=d>>1;Qc(a,c,(h&d)!=0);if(d>>>0>1)continue;break}}c=b+1|0;if((b|0)<(g|0))continue;break}b=J[a+364>>2]}if((b|0)>=(c|0))Qc(a,(J[((i<<2)+f|0)+140>>2]+P(c,3)|0)-3|0,1);return 1}function TF(){var a=0,b=0,c=0;a=J[194280];a:{if(a)break a;while(1){a=vc(1,112);if(a){J[a+8>>2]= -0;J[a>>2]=1;J[a+4>>2]=1;if(J[193890])J[193890]=0;b=J[193889];if(b)J[193889]=b+1;J[a+12>>2]=775556;b=J[193894];J[a+16>>2]=J[193893];J[a+20>>2]=b;b=J[193896];J[a+24>>2]=J[193895];J[a+28>>2]=b;b=J[193898];J[a+32>>2]=J[193897];J[a+36>>2]=b;b=J[193900];J[a+40>>2]=J[193899];J[a+44>>2]=b;b=J[193902];J[a+48>>2]=J[193901];J[a+52>>2]=b;b=J[193904];J[a+56>>2]=J[193903];J[a+60>>2]=b;c=J[193906];b=a- -64|0;J[b>>2]=J[193905];J[b+4>>2]=c;b=J[193908];J[a+72>>2]=J[193907];J[a+76>>2]=b}else a=775556;if(J[a+4>>2]){b= -J[a+80>>2];if(b)Ab[b|0](J[a+48>>2]);J[a+80>>2]=0;J[a+48>>2]=0;J[a+16>>2]=961}if(J[a+4>>2]){b=J[a+88>>2];if(b)Ab[b|0](J[a+56>>2]);J[a+88>>2]=0;J[a+56>>2]=0;J[a+24>>2]=962}if(J[a+4>>2]){b=J[a+92>>2];if(b)Ab[b|0](J[a+60>>2]);J[a+92>>2]=0;J[a+60>>2]=0;J[a+28>>2]=963}if(J[a+4>>2]){b=J[a+96>>2];if(b)Ab[b|0](J[a- -64>>2]);J[a+96>>2]=0;J[a- -64>>2]=0;J[a+32>>2]=964}if(J[a+4>>2]){b=J[a+100>>2];if(b)Ab[b|0](J[a+68>>2]);J[a+100>>2]=0;J[a+68>>2]=0;J[a+36>>2]=965}if(J[a+4>>2]){b=J[a+104>>2];if(b)Ab[b|0](J[a+72>> -2]);J[a+104>>2]=0;J[a+72>>2]=0;J[a+40>>2]=966}if(J[a+4>>2])J[a+4>>2]=0;b=J[194280];a=a?a:775556;J[194280]=b?b:a;if(!b)break a;if(!(!a|(a|0)==775556))xk(a);a=J[194280];if(!a)continue;break}}return a}function qq(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;J[c+12>>2]=J[a>>2];d=J[a+8>>2];ae(c+12|0,d);b=J[c+12>>2];a:{if(d>>>0<=b>>>0)break a;b:{c:{d:{e:{f:{g:{h:{i:{e=K[b|0];switch(e-40|0){case 1:case 2:case 3:case 4:case 5:case 6: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 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 52:break c; -case 7:break d;case 22:break e;case 20:break f;case 0:break g;case 51:case 53:break i;default:break h}}J[c+12>>2]=b+1;break b}if((e|0)!=123)break c;e=Qy(c+12|0,d);break a}e=pq(c+12|0,d);break a}if(!(K[b+1|0]!=60|b+1>>>0>=d>>>0)){J[c+12>>2]=b+2;break b}e=Ly(c+12|0,d);break a}f=b+1|0;J[c+12>>2]=f;e=3;if(K[f|0]!=62|d>>>0<=f>>>0)break a;J[c+12>>2]=b+2;break b}b=b+1|0}j:{if(b>>>0>=d>>>0)break j;while(1){k:switch(K[b|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break j; -default:break k}b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}J[c+12>>2]=b}e=0}b=J[c+12>>2];if(b>>>0>>0)e=(b|0)==J[a>>2]?3:e;J[a+12>>2]=e;J[a>>2]=b>>>0>d>>>0?d:b;xb=c+16|0}function Sn(a,b,c,d,e){var f=0,g=0;g=xb-256|0;xb=g;J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=c;J[e>>2]=0;a:{if((d|0)==-1){J[e>>2]=b;break a}if((d|0)>=3){yf(g,1,1,d);$i(a,g,257520)}nD(a,2);J[a+212>>2]=b;J[a+216>>2]=c;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;c=a+212|0;b:{c:{while(1){if(jg(c,0)){b=J[a+236>>2];if(b)break c; -gc(a,257218);B()}if(!J[a+228>>2]){b=J[e+8>>2];d=J[e+12>>2];d:{if((b|0)<(d|0))break d;f=b+4|0;J[e+12>>2]=f;b=J[e+16>>2];f=Zd(a,f<<2);J[e+16>>2]=f;if(!b)break d;Mb(f,b,d<<2);cc(a,b)}b=Zd(a,J[a+272>>2]);d=J[e+8>>2]<<2;J[d+J[e+16>>2]>>2]=b;Mb(J[d+J[e+16>>2]>>2],J[a+268>>2],J[a+272>>2]);J[e+8>>2]=J[e+8>>2]+1;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b}if(J[a+216>>2])continue;break}while(1){e:{b=jg(c,4);if(b){if((b|0)!=1)break e;b=J[a+272>>2];a=b-J[a+228>>2]|0;c=(a>>>0<=b>>>0?a:0)+P(b,J[e+8>>2])| -0;break a}if(J[a+228>>2])continue;b=J[e+8>>2];d=J[e+12>>2];f:{if((b|0)<(d|0))break f;f=b+4|0;J[e+12>>2]=f;b=J[e+16>>2];f=Zd(a,f<<2);J[e+16>>2]=f;if(!b)break f;Mb(f,b,d<<2);cc(a,b)}b=Zd(a,J[a+272>>2]);d=J[e+8>>2]<<2;J[d+J[e+16>>2]>>2]=b;Mb(J[d+J[e+16>>2]>>2],J[a+268>>2],J[a+272>>2]);J[e+8>>2]=J[e+8>>2]+1;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;continue}break}b=J[a+236>>2];if(b)break b;gc(a,257218);B()}gc(a,b);B()}gc(a,b);B()}xb=g+256|0;return c}function qi(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;a:{f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0<=c>>>0)break a;e=b+5|0;b:{c:{d:{e:{f:{g:{j=K[b+4|0];f=j-1|0;switch(f|0){case 3:break d;case 2:break e;case 1:break f;case 0:break g;default:break b}}c=c+e|0;g=K[c|0];d=K[c+1|0];break c}d=e+(c<<1)|0;c=K[d|0]|K[d+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[d+2|0]|K[d+3|0]<<8;d=(c<<8|c>>>8)&65535;break c}c=e+P(c,3)|0;g=K[c+1|0]<<8|K[c|0]<<16|K[c+2|0];d=K[c+5|0]|(K[c+4|0]<<8|K[c+3|0]<<16); -break c}d=e+(c<<2)|0;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(d>>>0>>0)break a}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);h:{i:switch(f|0){case 0:i=K[e+h|0];break h;case 1:c=e+(h<<1)|0;c=K[c|0]|K[c+1|0]<<8;i=(c<<8|c>>>8)&65535;break h;case 2:c=e+P(h,3)|0;i=K[c+1|0]<<8|K[c|0]<<16|K[c+2|0];break h;case 3:break i; -default:break h}c=e+(h<<2)|0;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(d>>>0>i>>>0)break a;J[a+8>>2]=0;J[a+4>>2]=d-g;J[a>>2]=((b+4|0)+P(h+1|0,j)|0)+g;return}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}function tea(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;f=Nb(a,0,256);while(1){d=J[(j<<2)+b>>2]+c|0;k=K[d+5|0];l=K[d+1|0];h=k+l|0;i=K[d+3|0];g=K[d+4|0];m=K[d+2|0];e=g+m|0;o=K[d+6|0];p=K[d|0];d=o+p|0;n=e+d|0;J[f>> -2]=((h+i|0)+n<<2)-3584;n=P(n-(i<<2)|0,2896);q=P(d-h|0,7223)+1024|0;d=P(d-e|0,7542);J[f+24>>2]=n+(q-d|0)>>11;e=P(h-e|0,2578);J[f+16>>2]=(e+q|0)+P(h-(i<<1)|0,-5793)>>11;J[f+8>>2]=(n+(d+e|0)|0)+1024>>11;d=m-g|0;h=p-o|0;i=P(d+h|0,5027)+1024|0;g=i+P(d,15326)|0;e=d;d=l-k|0;e=P(e+d|0,-11295);J[f+20>>2]=g+e>>11;g=e;e=P(h-d|0,1395);d=P(d+h|0,7663);J[f+12>>2]=((g+e|0)+d|0)+1024>>11;J[f+4>>2]=d+(i-e|0)>>11;f=f+32|0;j=j+1|0;if((j|0)!=7)continue;break}while(1){i=J[a+128>>2];e=J[a+64>>2];f=i+e|0;k=J[a+192>>2]; -l=J[a>>2];d=k+l|0;g=f+d|0;c=J[a+96>>2];h=J[a+160>>2];j=J[a+32>>2];b=h+j|0;J[a>>2]=P(g+(c+b|0)|0,10700)+16384>>15;g=P(g-(c<<2)|0,3783);m=P(d-b|0,9434)+16384|0;d=P(d-f|0,9850);J[a+192>>2]=g+(m-d|0)>>15;f=P(b-f|0,3367);J[a+128>>2]=(f+m|0)+P(b-(c<<1)|0,-7566)>>15;J[a+64>>2]=(g+(d+f|0)|0)+16384>>15;b=e-i|0;c=l-k|0;f=P(b+c|0,6565)+16384|0;e=f+P(b,20017)|0;d=b;b=j-h|0;d=P(d+b|0,-14752);J[a+160>>2]=e+d>>15;e=d;d=P(c-b|0,1822);b=P(b+c|0,10009);J[a+96>>2]=((e+d|0)+b|0)+16384>>15;J[a+32>>2]=b+(f-d|0)>>15;a= -a+4|0;r=r+1|0;if((r|0)!=7)continue;break}}function sB(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-32|0;xb=e;a:{d=J[a>>2];h=(J[a+4>>2]-d|0)/24|0;c=h+1|0;if(c>>>0<178956971){i=a+8|0;g=J[i>>2];J[e+28>>2]=i;d=(g-d|0)/24|0;g=d<<1;d=d>>>0>=89478485?178956970:c>>>0>>0?g:c;if(d){if(d>>>0>=178956971)break a;f=Pb(P(d,24))}J[e+12>>2]=f;c=P(h,24)+f|0;J[e+20>>2]=c;J[e+24>>2]=P(d,24)+f;J[e+16>>2]=c;b:{c:{if(H[b+11|0]>=0){d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];d=c;break c}d=J[b+ -4>>2];g=J[b>>2];J[195395]=0;fa(1808,c|0,g|0,d|0);c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[e+16>>2];d=J[e+20>>2]}f=P(h,24)+f|0;h=J[b+16>>2];J[f+12>>2]=J[b+12>>2];J[f+16>>2]=h;J[f+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[e+20>>2]=d+24;b=J[a>>2];d=J[a+4>>2];J[195395]=0;b=ha(1972,i|0,d|0,b|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[a>>2];J[a>>2]=b;b=J[a+4>>2];J[a+4>>2]=J[e+20>>2];J[a+8>>2]=J[e+24>>2];if((b|0)!=(c|0))while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);a=b-24|0; -if(H[b-13|0]<0)Kb(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}if(c)Kb(c);xb=e+32|0;return}b=Z()|0;a=J[e+20>>2];c=J[e+16>>2];if((a|0)!=(c|0))while(1){d=a-24|0;J[e+20>>2]=d;if(H[a-1|0]<0)Kb(J[a-12>>2]);if(H[a-13|0]<0)Kb(J[d>>2]);a=J[e+20>>2];if((c|0)!=(a|0))continue;break}a=J[e+12>>2];if(a)Kb(a);ba(b|0);B()}Ti(a);B()}zd();B()}function pA(a){a=a|0;var b=0,c=0,d=0;c=Pb(44);J[195395]=0;b=dh(c);d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[b+8>>2]=0;H[b+14|0]=255;H[b+13|0]=255;H[b+12|0]=255;ef(a, --2147483648,b);c=Pb(44);J[195395]=0;b=dh(c);d=J[195395];J[195395]=0;if((d|0)==1)break b;J[b+8>>2]=0;H[b+14|0]=192;H[b+13|0]=192;H[b+12|0]=192;ef(a,-2147483647,b);c=Pb(44);J[195395]=0;b=dh(c);d=J[195395];J[195395]=0;if((d|0)==1)break b;J[b+8>>2]=0;H[b+14|0]=128;H[b+13|0]=128;H[b+12|0]=128;ef(a,-2147483646,b);c=Pb(44);J[195395]=0;b=dh(c);d=J[195395];J[195395]=0;if((d|0)==1)break b;J[b+8>>2]=0;H[b+14|0]=64;H[b+13|0]=64;H[b+12|0]=64;ef(a,-2147483645,b);c=Pb(44);J[195395]=0;b=dh(c);d=J[195395];J[195395]= -0;if((d|0)==1)break b;J[b+8>>2]=0;H[b+14|0]=0;H[b+13|0]=0;H[b+12|0]=0;ef(a,-2147483644,b);c=Pb(44);J[195395]=0;b=dh(c);d=J[195395];J[195395]=0;if((d|0)==1)break b;J[b+8>>2]=1;ef(a,-2147483643,b);c=Pb(28);J[195395]=0;b=Vj(c);d=J[195395];J[195395]=0;if((d|0)==1)break b;J[b+8>>2]=0;H[b+18|0]=255;H[b+17|0]=255;H[b+16|0]=255;ef(a,-2147483642,b);c=Pb(28);J[195395]=0;b=Vj(c);d=J[195395];J[195395]=0;if((d|0)==1)break b;J[b+8>>2]=0;H[b+18|0]=0;H[b+17|0]=0;H[b+16|0]=0;ef(a,-2147483641,b);c=Pb(28);J[195395]= -0;b=Vj(c);d=J[195395];J[195395]=0;if((d|0)!=1)break a}a=Z()|0;Kb(c);ba(a|0);B()}J[b+8>>2]=5;ef(a,-2147483640,b)}function B1(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b>>2];J[a>>2]=c;J[J[c-12>>2]+a>>2]=J[b+4>>2];I[a+52>>1]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+ -92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;b=a+124|0;J[b+16>>2]=a;c=b+24|0;J[c>>2]=0;J[c+4>>2]=0;J[b+4>>2]=b+8;J[b+8>>2]=0;J[b+12>>2]=0;J[b+20>>2]=c;J[195395]=0;c=_(1078,696)|0;d=J[195395];J[195395]=0;a:{b:{c:{if((d|0)!=1){J[195395]=0;d=ca(2127,c|0,b|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;J[b>>2]=d;J[195395]=0;ea(2128,b|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a}a=Z()|0;break b}a=Z()|0;Kb(c)}Uj(b+20|0,J[b+24>>2]);Tj(b+4|0,J[b+8>>2]);ba(a|0);B()}J[195395]= -0;c=a+160|0;J[c+8>>2]=0;J[c+12>>2]=0;J[a+160>>2]=0;J[a+164>>2]=1072693248;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=0;J[a+188>>2]=1072693248;J[a+176>>2]=0;J[a+180>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;c=J[195395];J[195395]=0;d:{if((c|0)==1)break d;J[a+156>>2]=0;J[195395]=0;c=J[b>>2];d=J[195395];J[195395]=0;if((d|0)==1)break d;H[a+212|0]=0;J[a+208>>2]=0;J[a+120>>2]=c;return a|0}a=Z()|0;oA(b);ba(a|0);B()}function XN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(M[b+160>>2]>>0)Bc(b,8);g=K[a+15|0]| -(K[a+13|0]<<16|K[a+12|0]<<24|K[a+14|0]<<8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!(c>>>0<16|c>>>0>J[b+160>>2]-a>>>0))if((c-16>>>0)/12>>>0>=g>>>0)break a;Bc(b,8)}b:{if(!g)break b;f=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(c>>>0>> -0)Bc(b,8);h=1;c:{if(J[b+164>>2]<=0)break c;e=J[b+172>>2];d=c-d|0;if(e>>>0>=d>>>0)if(e-d>>>0>(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0)break c;Bc(b,16)}if((g|0)==1)break b;a=a+28|0;while(1){f=c;d=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(c>>>0>>0)Bc(b,8);if(e>>>0<=f>>>0)Bc(b,8);d:{if(J[b+164>>2]<=0)break d; -f=J[b+172>>2];e=c-e|0;if(f>>>0>=e>>>0)if(f-e>>>0>(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)break d;Bc(b,16)}a=a+12|0;h=h+1|0;if((h|0)!=(g|0))continue;break}}return 0}function Sca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;k=(g|0)/8|0;a:{if(!f)break a;f=f-1|0;j=J[a+64>>2];if(e>>>0>=8){l=(e&7|8)-9|0;while(1){a=f;g=e;while(1){d=i;c=b;f=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[f>>2];J[b+4>>2]=J[f+4>>2];J[b+8>>2]=J[f+8>>2];J[b+12>>2]=J[f+12>>2];J[b+16>>2]=J[f+16>> -2];J[b+20>>2]=J[f+20>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=J[f+28>>2];b=b+32|0;i=i+1|0;g=g-8|0;if(g>>>0>7)continue;break}b:{if(g){g=2;i=J[(K[i|0]<<2)+j>>2];c:switch(l|0){case 6:J[c+32>>2]=J[i>>2];b=c+36|0;i=i+4|0;case 5:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 4:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 3:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 2:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 1:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;break;case 0:break c;default:break b}J[b>>2]=J[i>>2];b=b+4|0;break b}g=1}f=a-1|0;i=(d+g|0)+k|0; -b=(h<<2)+b|0;if(a)continue;break}break a}if(!e)break a;c=e-1|0;while(1){a=f;f=J[(K[i|0]<<2)+j>>2];d:switch(c|0){case 6:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 5:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 4:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 3:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 2:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 1:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 0:J[b>>2]=J[f>>2];b=b+4|0;break;default:break d}f=a-1|0;i=(i+1|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}}}function Nca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;k=(g|0)/8|0;a:{if(!f)break a;f=f-1|0;j=J[a+60>>2];if(e>>>0>=8){l=(e&7|8)-9|0;while(1){a=f;g=e;while(1){d=i;c=b;f=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[f>>2];J[b+4>>2]=J[f+4>>2];J[b+8>>2]=J[f+8>>2];J[b+12>>2]=J[f+12>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=J[f+20>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=J[f+28>>2];b=b+32|0;i=i+1|0;g=g-8|0;if(g>>>0>7)continue;break}b:{if(g){g=2;i=J[(K[i|0]<<2)+j>>2];c:switch(l|0){case 6:J[c+32>>2]=J[i>>2];b=c+36|0;i=i+4|0;case 5:J[b>> -2]=J[i>>2];b=b+4|0;i=i+4|0;case 4:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 3:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 2:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 1:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;break;case 0:break c;default:break b}J[b>>2]=J[i>>2];b=b+4|0;break b}g=1}f=a-1|0;i=(d+g|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}break a}if(!e)break a;c=e-1|0;while(1){a=f;f=J[(K[i|0]<<2)+j>>2];d:switch(c|0){case 6:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 5:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 4:J[b>>2]=J[f>>2];b=b+4|0;f= -f+4|0;case 3:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 2:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 1:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 0:J[b>>2]=J[f>>2];b=b+4|0;break;default:break d}f=a-1|0;i=(i+1|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}}}function Ala(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=Q(0),f=Q(0),g=Q(0),h=Q(0),i=Q(0),j=0;a:{b:{c:{j=J[b+28>>2];d:{if(!j){i=N[42448];f=N[42447];g=N[42446];h=N[42445];d=J[42444];break d}a=(J[b+32>>2]+P(j,20)|0)-20|0;d=J[a>>2];i=N[a+16>>2];f=N[a+12>>2];g=N[a+8>>2];h=N[a+ -4>>2];a=j-1|0;J[b+28>>2]=a;if(a)break c}J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break b}a=(J[b+32>>2]+P(a,20)|0)-20|0}e:{f:{g:switch(c|0){case 1:case 7:N[a+16>>2]=i;N[a+12>>2]=f;N[a+8>>2]=g;N[a+4>>2]=h;J[a>>2]=d;break a;case 5:case 6:h:switch(d-1|0){case 0:break h;case 1:break f;default:break a}i:switch(J[a>>2]){case 1:break i;case 0:break e;default:break a}e=N[a+4>>2];h=h<=e?e:h;N[a+4>>2]=h;e=N[a+8>>2];g=g<=e?e:g;N[a+8>>2]=g; -e=N[a+12>>2];f=f>=e?e:f;N[a+12>>2]=f;e=N[a+16>>2];i=i>=e?e:i;N[a+16>>2]=i;if(!(f<=h|g>=i))break a;break f;case 2:case 8:break a;case 0:break f;default:break g}j:switch(d|0){case 0:J[a>>2]=0;break a;case 1:break j;default:break a}k:switch(J[a>>2]-1|0){case 0:break k;case 1:break e;default:break a}e=N[a+4>>2];N[a+4>>2]=h>=e?e:h;h=N[a+8>>2];N[a+8>>2]=g>=h?h:g;g=N[a+12>>2];N[a+12>>2]=f<=g?g:f;f=N[a+16>>2];N[a+16>>2]=f>=i?f:i;break a}J[a>>2]=2;break a}N[a+16>>2]=i;N[a+12>>2]=f;N[a+8>>2]=g;N[a+4>>2]=h; -J[a>>2]=1}}function ada(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a=L[a+26>>1];d=P(a,g);j=e>>>0<8;h=h<<2;while(1){g=e;if(!j)while(1){J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;c=a+i|0;J[b+4>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+8>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+12>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+16>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+20>>2]=K[c|0]|K[c+1| -0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+24>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+28>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;b=b+32|0;i=a+c|0;g=g-8|0;if(g>>>0>7)continue;break}a:switch(g-1|0){case 6:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 4:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0; -b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;break;default:break a}i=d+i|0;b=b+h|0;f=f-1|0;if(f)continue;break}}}function ZG(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=xb-16|0;xb=j;a:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-b>>>0<2)break a;d=J[c>>2];c=K[b|0]|K[b+1|0]<<8;b:{if(!c)break b;g=d+((c<<8|c>>>8)&65535)| -0;J[j+12>>2]=g;c:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-g>>>0<2)break c;c=g+2|0;if(M[a+12>>2]>2]>>>0)break c;e=J[a+8>>2]-c|0;c=K[g|0]|K[g+1|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(e>>>0>>0)break c;c=J[a+16>>2]-c|0;J[a+16>>2]=c;if((c|0)<=0)break c;c=K[g|0]|K[g+1|0]<<8;if(!c)break b;c=(c<<8|c>>>8)&65535;l=c>>>0<=1?1:c;c=0;while(1){h=J[a+12>>2];i=(g+(c<<1)|0)+2|0;f=J[a+4>>2];e=0;d:{if(h>>>0>>0)break d;k=J[a+8>>2];e=0;if(k-i>>>0<2)break d;e=J[j+12>>2];d=K[i|0]|K[i+1|0]<<8;e:{if(d){d=e+((d<< -8|d>>>8)&65535)|0;f:{if(h>>>0>>0|k-d>>>0<4)break f;e=h;h=d+4|0;if(e>>>0>>0)break f;f=K[d+2|0]|K[d+3|0]<<8;d=K[d|0]|K[d+1|0]<<8;d=(((f<<8|f>>>8)&65535)<<2)+(d?(((d<<8|d>>>8)&65535)<<1)-2|0:0)|0;if(d>>>0>k-h>>>0)break f;f=J[a+16>>2]-d|0;J[a+16>>2]=f;e=1;if((f|0)>0)break e}f=J[a+32>>2];e=0;if(f>>>0>31)break d;J[a+32>>2]=f+1;e=0;if(!K[a+28|0])break e;H[i|0]=0;H[i+1|0]=0}e=1}}if(!e)break c;c=c+1|0;if((l|0)!=(c|0))continue;break}break b}c=J[a+32>>2];if(c>>>0>31)break a;J[a+32>>2]=c+1;if(!K[a+ -28|0])break a;H[b|0]=0;H[b+1|0]=0}m=1}xb=j+16|0;return m}function wna(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;h=xb-16|0;xb=h;g=rh(a,b);f=169776;a:{if((K[g|0]|K[g+1|0]<<8)!=256)break a;a=K[g+4|0]|K[g+5|0]<<8;f=169776;if(!a)break a;f=g+((a<<8|a>>>8)&65535)|0}a=K[f|0]|K[f+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>c>>>0)a=(f+P(c,6)|0)+2|0;else a=169776;a=K[a+4|0]|K[a+5|0]<<8;if(a)a=f+((a<<8|a>>>8)&65535)|0;else a=169776;b:{if((d|0)==65535){c=K[a|0]|K[a+1|0]<<8;b=170418;if(!c)break b;b= -a+((c<<8|c>>>8)&65535)|0;break b}b=K[a+2|0]|K[a+3|0]<<8;c=((b<<8|b>>>8)&65535)>>>0<=d>>>0?169776:(a+P(d,6)|0)+4|0;c=K[c+4|0]|K[c+5|0]<<8;b=170418;if(!c)break b;b=a+((c<<8|c>>>8)&65535)|0}a=K[b+4|0]|K[b+5|0]<<8;c=(a<<8|a>>>8)&65535;No(e,c);c:{if(!a)break c;i=b+6|0;while(1){J[h+12>>2]=0;c=c-1|0;a=K[b+4|0]|K[b+5|0]<<8;if(c>>>0>=((a<<8|a>>>8)&65535)>>>0)break c;a=(c<<1)+i|0;a=K[a|0]|K[a+1|0]<<8;d=(a<<8|a>>>8)&65535;J[h+12>>2]=d;if((a|0)==65535)a=0;else{a=169776;d:{if((K[g|0]|K[g+1|0]<<8)!=256)break d; -f=K[g+6|0]|K[g+7|0]<<8;a=169776;if(!f)break d;a=g+((f<<8|f>>>8)&65535)|0}f=K[a|0]|K[a+1|0]<<8;if(((f<<8|f>>>8)&65535)>>>0>d>>>0)a=(a+P(d,6)|0)+2|0;else a=169776;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}J[h+8>>2]=a;Kk(e,h+8|0,P(a,-1640531535),h+12|0,1);if(c)continue;break}}xb=h+16|0}function D7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=xb-16|0;xb=e;a:{if(!c)break a;d=332;d=K[c+368|0]?d:(J[c+360>>2]<<2)+368|0;J[e+8>>2]=d;J[e+4>>2]=82;J[a+8>>2]=J[a+ -8>>2]+d;J[a+12>>2]=J[a+12>>2]+1;I[a+16>>1]=L[a+16>>1]+1;Lb(J[a+4>>2],e+4|0,4);Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],c+16|0,4);Lb(J[a+4>>2],c+20|0,4);Lb(J[a+4>>2],c+24|0,4);Lb(J[a+4>>2],c+28|0,1);Lb(J[a+4>>2],c+29|0,1);Lb(J[a+4>>2],c+30|0,1);Lb(J[a+4>>2],c+31|0,1);Lb(J[a+4>>2],c+32|0,1);Lb(J[a+4>>2],c+33|0,1);Lb(J[a+4>>2],c+34|0,1);Lb(J[a+4>>2],c+35|0,1);d=0;J[e+12>>2]=0;b=c+36|0;while(1){f=b+(d<<1)|0;Lb(J[a+4>>2],L[f>>1]==52685?e+12|0:f, -2);d=d+1|0;if((d|0)!=32)continue;break}d=0;J[e+12>>2]=0;b=c+100|0;while(1){f=b+(d<<1)|0;Lb(J[a+4>>2],L[f>>1]==52685?e+12|0:f,2);d=d+1|0;if((d|0)!=64)continue;break}d=0;J[e+12>>2]=0;b=c+228|0;while(1){f=b+(d<<1)|0;Lb(J[a+4>>2],L[f>>1]==52685?e+12|0:f,2);d=d+1|0;if((d|0)!=32)continue;break}d=0;J[e+12>>2]=0;b=c+292|0;while(1){f=b+(d<<1)|0;Lb(J[a+4>>2],L[f>>1]==52685?e+12|0:f,2);d=d+1|0;if((d|0)!=32)continue;break}if(K[c+368|0])break a;Lb(J[a+4>>2],c+356|0,4);Lb(J[a+4>>2],c+360|0,4);if(!J[c+360>>2])break a; -d=0;while(1){Lb(J[a+4>>2],J[c+364>>2]+(d<<2)|0,4);d=d+1|0;if(d>>>0>2])continue;break}}xb=e+16|0}function Ah(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;h=xb+-64|0;xb=h;i=a+11724|0;yp(a,J[a+11720>>2],J[i>>2],b,c,h+20|0,h+16|0);yp(a,d,e,f,g,h+12|0,h+8|0);j=J[a+4>>2];J[j+16>>2]=J[j+16>>2]+(P(e-c>>16,b>>16)-P(d-b>>16,c>>16)|0);j=J[h+20>>2];l=j+J[a+11720>>2]|0;J[h>>2]=l;k=J[h+16>>2];i=k+J[i>>2]|0;J[h+4>>2]=i;n=J[h+8>>2];o=J[h+12>>2];c=c+k|0;j=b+j|0;if(K[a+11667|0]){J[h+56>>2]=1; -b=J[a+11732>>2];J[h+24>>2]=J[a+11728>>2];J[h+28>>2]=b;if(!K[a+20|0])yj(a,J[a+11736>>2],J[a+11740>>2]);k=Rb(J[a+11644>>2],l);m=Rb(J[a+11648>>2],i);b=Sf(a+8|0,i);k=k+m|0;p=h,q=(Rb(J[J[a>>2]+64>>2],k)+Rb(J[J[a>>2]+72>>2],b)|0)+J[a+11656>>2]|0,J[p+32>>2]=q;p=h,q=(Rb(J[J[a>>2]+68>>2],k)+Rb(J[J[a>>2]+76>>2],b)|0)+J[a+11660>>2]|0,J[p+36>>2]=q;b=J[a+4>>2];Ab[J[b>>2]](b,h+24|0);b=J[h+32>>2];k=J[h+36>>2];m=l;l=0;J[a+11704>>2]=m|l;J[a+11708>>2]=i;J[a+11728>>2]=b;J[a+11732>>2]=k;J[a+11712>>2]=j|l;J[a+11716>> -2]=c;H[a+11664|0]=1;H[a+11667|0]=0}if(K[a+11744|0])Vk(a,a+8|0,h,j,c,0);J[a+11748>>2]=4;H[a+11744|0]=1;b=J[h>>2];i=J[h+4>>2];J[a+11780>>2]=g+n;J[a+11776>>2]=f+o;J[a+11772>>2]=e+n;J[a+11768>>2]=d+o;J[a+11752>>2]=b;J[a+11756>>2]=i;J[a+11760>>2]=j;J[a+11764>>2]=c;b=J[a+11676>>2];if(K[b+5|0])Uk(a+8|0,J[a+11668>>2],J[a+11672>>2],b,J[a+11680>>2],0);J[a+11724>>2]=g;J[a+11720>>2]=f;xb=h- -64|0}function ppa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]= -0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(Ct(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c= -c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(Ct(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=Ct(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]); -J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function opa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b; -c:{d:{e:{f:{if(Bt(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(Bt(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+ -36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=Bt(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function koa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+ -1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(Fk(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>> -0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(Fk(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=Fk(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+ -36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function doa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0; -b:{if(!e)break b;c:{d:{e:{f:{if(mt(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(mt(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue; -break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=mt(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function Yma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a; -J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(Xs(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>> -2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(Xs(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=Xs(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b); -return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function Moa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+ -24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(ut(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(ut(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>> -2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=ut(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function Koa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a; -d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(tt(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]= -c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(tt(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=tt(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e; -if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function Ioa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823: -c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(st(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(st(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b); -J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=st(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function Goa(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(rt(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]= -e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(rt(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=rt(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>> -2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function oJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c; -c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(Ro(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(Ro(e,a))break f;if(K[a+28| -0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=Ro(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function jJ(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(Mo(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2]; -e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(Mo(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=Mo(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]= -0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function UF(a,b,c){var d=0,e=0,f=Q(0),g=0,h=0;h=J[a+24>>2];d=h+108|0;while(1){a:{e=J[d>>2];if(e)break a;if(!J[h+48>>2]){e=169776;break a}e=Hk(d);if(!e)e=169776;g=J[d>>2];J[d>>2]=g?g:e;if(!g)break a;Gk(e);continue}break}d=xb-112|0;xb=d;b:{c:{if(M[e+ -16>>2]<=b>>>0)break c;d:{if(J[a+104>>2]){J[d+48>>2]=2139095039;J[d+52>>2]=2139095039;J[d+56>>2]=-8388609;J[d+60>>2]=-8388609;H[d+44|0]=0;J[d+40>>2]=d- -64;g=J[d+44>>2];J[d+8>>2]=J[d+40>>2];J[d+12>>2]=g;g=J[d+52>>2];J[d+16>>2]=J[d+48>>2];J[d+20>>2]=g;g=J[d+60>>2];J[d+24>>2]=J[d+56>>2];J[d+28>>2]=g;J[d+36>>2]=0;J[d+32>>2]=a;g=J[d+36>>2];J[d>>2]=J[d+32>>2];J[d+4>>2]=g;if(ot(e,a,b,d))break d}if(c){c=J[e+8>>2];if(M[c+4>>2]>b>>>0){a=J[c+20>>2];e=J[(a?a:169776)+12>>2];a=J[c>>2]-1|0;a=e+((a>>>0>>0?a:b)<< -2)|0;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535;break b}a=0;if(J[c+8>>2])break b;a=J[c+16>>2];break b}c=J[e+4>>2];if(M[c+4>>2]>b>>>0){a=J[c+20>>2];e=J[(a?a:169776)+12>>2];a=J[c>>2]-1|0;a=e+((a>>>0>>0?a:b)<<2)|0;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535;break b}a=0;if(J[c+8>>2])break b;a=J[c+16>>2];break b}if(c)f=Q(N[d+92>>2]-N[d+104>>2]);else f=Q(N[d+76>>2]-N[d+64>>2]);f=Q(V(Q(f+Q(.5))));f=f>=Q(0)?f:Q(0);f=f<=Q(2147483648)?f:Q(2147483648);if(!(f=Q(0)))break c;a=~~f>>>0;break b}a= -0}xb=d+112|0;return a}function LJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(bp(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g; -while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(bp(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=bp(e,a);e=J[a+ -32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function HJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c= -1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if($o(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]= -0;if(!e)break b;if($o(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=$o(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>> -2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function FJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(_o(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>> -2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(_o(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]= -0;d=_o(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function EJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>> -2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(Zo(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>> -2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(Zo(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>>2])break d;J[a+32>>2]=0;d=Zo(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d); -J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function DJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!b)break a;d=J[b>>2];if(!d)break a;J[b>>2]=d+1}d=b;H[a+28|0]=0;J[a+36>>2]=b;e=J[b+12>>2];J[a+4>>2]=e;c=J[b+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0>67108863)c=1073741823;else{c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;b:{if(!e)break b;c:{d:{e:{f:{if(Yo(e,a))break f;g:{if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]= -d;J[a+8>>2]=d+J[b+16>>2];if(!d)break g;while(1){H[a+28|0]=1;d=J[a+36>>2];e=J[d+12>>2];J[a+4>>2]=e;c=J[d+16>>2];J[a+12>>2]=c;J[a+8>>2]=c+e;J[a+32>>2]=0;if(c>>>0<=67108863){c=c<<6;c=c>>>0<=16384?16384:c;c=c>>>0>=1073741823?1073741823:c}else c=1073741823;J[a+16>>2]=c;J[a+24>>2]=0;J[a>>2]=0;if(!e)break b;if(Yo(e,a))break f;if(K[a+28|0]|!J[a+32>>2])break g;d=Cc(b);J[a+4>>2]=d;J[a+8>>2]=d+J[b+16>>2];if(d)continue;break}}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break e}if(!J[a+32>> -2])break d;J[a+32>>2]=0;d=Yo(e,a);e=J[a+32>>2];Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(e)break e;if(d)break c}Ub(b);return 169776}Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}if(J[b+4>>2])J[b+4>>2]=0;return b|0}Ub(d);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return b|0}function uka(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;d=xb-32|0;xb=d;a:{f=J[a+4>>2];e=J[a>>2];i=(f-e|0)/12|0;c=i+1|0;if(c>>>0<357913942){g=a+8|0;h=J[g>>2];J[d+28>> -2]=g;g=0;h=(h-e|0)/12|0;j=h<<1;h=h>>>0>=178956970?357913941:c>>>0>>0?j:c;if(h){if(h>>>0>=357913942)break a;g=Pb(P(h,12))}J[d+12>>2]=g;c=P(i,12)+g|0;J[d+20>>2]=c;J[d+24>>2]=P(h,12)+g;J[d+16>>2]=c;b:{c:{if(H[b+11|0]>=0){g=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];b=c;break c}e=J[b+4>>2];b=J[b>>2];J[195395]=0;fa(1067,c|0,b|0,e|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;e=J[a>>2];f=J[a+4>>2];c=J[d+16>>2];b=J[d+20>>2]}g=b+12|0;if((e|0)==(f|0))b=e;else{while(1){f=f-12|0;b=J[f+4>> -2];c=c-12|0;J[c>>2]=J[f>>2];J[c+4>>2]=b;J[c+8>>2]=J[f+8>>2];J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if((e|0)!=(f|0))continue;break}e=J[a+4>>2];b=J[a>>2]}J[a>>2]=c;J[d+16>>2]=b;J[a+4>>2]=g;c=J[a+8>>2];J[a+8>>2]=J[d+24>>2];J[d+12>>2]=b;J[d+24>>2]=c;if((b|0)!=(e|0)){while(1){a=e-12|0;J[d+20>>2]=a;if(H[e-1|0]<0)Kb(J[a>>2]);e=a;if((a|0)!=(b|0))continue;break}e=b}if(e)Kb(e);xb=d+32|0;return}c=Z()|0;a=J[d+20>>2];e=J[d+16>>2];if((a|0)!=(e|0))while(1){b=a-12|0;J[d+20>>2]=b;if(H[a-1|0]>=0)a=b;else{Kb(J[b>>2]);a= -J[d+20>>2]}if((e|0)!=(a|0))continue;break}a=J[d+12>>2];if(a)Kb(a);ba(c|0);B()}Ve(a);B()}zd();B()}function Or(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;f=J[a+204>>2];a:{if(f){i=J[J[a+388>>2]+32>>2];e=J[f+P(i,36)>>2];J[a+288>>2]=e;b:{if((e|0)<=0)break b;c=J[a+84>>2];if(e>>>0>=4){m=e&-4;h=a+292|0;d=(f+P(i,36)|0)+4|0;while(1){g=b<<2;J[g+h>>2]=c+P(J[d+g>>2],88);j=g|4;J[j+h>>2]=c+P(J[d+j>>2],88);j=g|8;J[j+h>>2]=c+P(J[d+j>>2],88);g=g|12;J[g+h>>2]=c+P(J[d+g>>2],88);b=b+4|0;k=k+4|0;if((m|0)!= -(k|0))continue;break}}e=e&3;if(!e)break b;h=f+P(i,36)|0;while(1){d=b<<2;J[(d+a|0)+292>>2]=c+P(J[(d+h|0)+4>>2],88);b=b+1|0;l=l+1|0;if((e|0)!=(l|0))continue;break}}if(!J[a+264>>2])break a;b=f+P(i,36)|0;J[a+360>>2]=J[b+20>>2];J[a+364>>2]=J[b+24>>2];J[a+368>>2]=J[b+28>>2];J[a+372>>2]=J[b+32>>2];return}c=J[a+76>>2];if((c|0)>=5){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=27;J[J[a>>2]+28>>2]=4;Ab[J[J[a>>2]>>2]](a);c=J[a+76>>2]}J[a+288>>2]=c;if((c|0)<=0)break a;f=J[a+84>>2];b=0;if(c>>>0>=4){h=c&-4;e=a+292|0;while(1){J[e+ -(b<<2)>>2]=f+P(b,88);d=b|1;J[e+(d<<2)>>2]=f+P(d,88);d=b|2;J[e+(d<<2)>>2]=f+P(d,88);d=b|3;J[e+(d<<2)>>2]=f+P(d,88);b=b+4|0;g=g+4|0;if((h|0)!=(g|0))continue;break}}c=c&3;if(!c)break a;while(1){J[((b<<2)+a|0)+292>>2]=f+P(b,88);b=b+1|0;i=i+1|0;if((c|0)!=(i|0))continue;break}}J[a+360>>2]=0;J[a+368>>2]=0;b=J[a+376>>2];J[a+364>>2]=P(b,b)-1;J[a+372>>2]=0}function yL(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+548>>2];if(b){if(b)Ab[J[c+8>>2]](c,b);J[a+544>>2]=0;J[a+548>>2]=0}Ok(a);J[a+532>>2]=0;b=J[a+ -132>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+132>>2]=0;b=J[a+136>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+140>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+144>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+148>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+148>>2]=0;b=J[a+432>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+432>>2]=0;b=J[a+428>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+428>>2]=0;b=J[a+424>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+424>>2]=0;b=J[a+408>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+408>>2]=0;b=J[a+412>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+ -412>>2]=0;ho(J[a+416>>2],c);b=J[a+416>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+416>>2]=0;b=J[a+392>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+392>>2]=0;b=J[a+396>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+396>>2]=0;b=J[a+400>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+400>>2]=0;b=J[a+384>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+384>>2]=0;b=J[a+388>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+388>>2]=0;b=J[a+364>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+364>>2]=0;b=J[a+496>>2];if(b){d=J[b+36>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+36>>2]=0;J[b+40>>2]=0;d=J[b+28>>2];if(d)Ab[J[c+8>> -2]](c,d);J[b+28>>2]=0;J[b+32>>2]=0;if(b)Ab[J[c+8>>2]](c,b)}J[a+20>>2]=0;J[a+24>>2]=0}}function Et(a){var b=Q(0),c=0,d=0,e=0,f=0,g=Q(0),h=0,i=Q(0),j=Q(0),k=0;e=J[a+24>>2];f=J[e+28>>2];if(!f)f=oi(e);e=J[a+28>>2];i=Q(e|0);g=Q(f>>>0);N[a+64>>2]=i/g;f=J[a+32>>2];j=Q(f|0);N[a+68>>2]=j/g;b=Q(R(Q(V(Q(Q(N[a+36>>2]*i)+Q(.5))))));a:{if(Q(R(b))>2]=d;b=Q(R(Q(V(Q(Q(N[a+40>>2]*j)+Q(.5))))));b:{if(Q(R(b))>2]=d;c= -0-f|0;d=c>>31<<16|c>>>16;c=c<<16;h=(f|0)<0;b=Q(Q(+((h?0-c|0:f<<16)>>>0)+ +((h?0-(((c|0)!=0)+d|0)|0:f>>>16|0)|0)*4294967296)/g);c:{if(Q(R(b))>>0;if(Q(R(b))>=Q(1))d=~~(b>Q(0)?Q(T(Q(V(Q(b*Q(2.3283064365386963E-10)))),Q(4294967296))):Q(W(Q(Q(b-Q(~~b>>>0>>>0))*Q(2.3283064365386963E-10)))))>>>0;else d=0;break c}c=0;d=-2147483648}J[a+80>>2]=c;J[a+84>>2]=d;c=0-e|0;d=c>>31<<16|c>>>16;c=c<<16;h=0-c|0;c=0-(((c|0)!=0)+d|0)|0;d=e>>>16|0;k=e<<16;e=(e|0)<0;b=Q(Q(+((e?h:k)>>>0)+ +((e? -c:d)|0)*4294967296)/g);d:{if(Q(R(b))>>0;if(Q(R(b))>=Q(1))d=~~(b>Q(0)?Q(T(Q(V(Q(b*Q(2.3283064365386963E-10)))),Q(4294967296))):Q(W(Q(Q(b-Q(~~b>>>0>>>0))*Q(2.3283064365386963E-10)))))>>>0;else d=0;break d}e=0;d=-2147483648}c=d;J[a+72>>2]=e;J[a+76>>2]=c;N[a+60>>2]=f?Q(Q(N[a+56>>2]*i)/j):Q(0);J[a+132>>2]=0;J[a+136>>2]=0}function mm(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a+8>>2]=c;J[a+4>>2]=b;J[a>>2]=0;f=J[c+24>>2];J[a+52>>2]=0;J[a+56>>2]=0;J[a+16>>2]=d;J[a+12>> -2]=f;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;H[a+41|0]=0;H[a+42|0]=0;H[a+43|0]=0;H[a+44|0]=0;H[a+45|0]=0;H[a+46|0]=0;H[a+47|0]=0;H[a+48|0]=0;J[a+68>>2]=169776;I[a- -64>>1]=0;J[a+60>>2]=65536;a:{c=f+144|0;b=J[c>>2];b:{if(b)break b;while(1){if(!J[f+48>>2]){b=169776;break b}J[195395]=0;b=_(579,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;d=J[c>>2];b=b?b:169776;J[c>>2]=d?d:b;if(!d)break b;J[195395]=0;ea(580,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;b= -J[c>>2];if(!b)continue;break}}b=J[b>>2];b=b?b:169776;c=J[b+12>>2];b=J[b+16>>2];J[a+84>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+72>>2]=b>>>0<4?169776:c;J[195395]=0;c:{if(!e)break c;b=J[e>>2];if(!b)break c;J[e>>2]=b+1}c=e;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a+56>>2]=c;H[a+48|0]=0;d=J[a+12>>2];b=J[d+32>>2];if((b|0)==-1){J[195395]=0;b=_(582,d|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;c=J[a+56>>2]}H[a+64|0]=1;J[a+60>>2]=b;d=J[c+12>>2];J[a+24>>2]=d;b=J[c+16>>2];J[a+52>>2]=0;J[a+32>>2]=b;J[a+ -44>>2]=0;J[a+20>>2]=0;J[a+36>>2]=1073741823;J[a+28>>2]=b+d;return a|0}b=Z()|0;ed(a+20|0);ba(b|0);B()}function qK(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;h=J[J[J[a+4>>2]+96>>2]+28>>2];i=Wd(J[J[J[b>>2]+428>>2]+(c<<2)>>2],0);a:{b:{c=J[a+160>>2];e=J[c+156>>2];if(!e)break b;f=J[e+4>>2];if(!(f&1))break b;g=J[c+88>>2];if(g){e=J[J[c+4>>2]+100>>2];Ab[J[e+8>>2]](e,g);e=J[c+156>>2];f=J[e+4>>2]}J[c+88>>2]=0;J[e+4>>2]=f&-2;break a}J[c+88>>2]=0}J[c+24>>2]=0;J[c+28>>2]=0;J[c+152>>2]=0;J[c+32>>2]= -0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;Nb(c+72|0,0,72);c=Ab[J[h+72>>2]](J[a+160>>2],J[b+44>>2],i,d|8)|0;if(!c){b=J[a+160>>2];d=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=d;d=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=d;d=J[b+44>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=d;d=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=d;J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];J[a+72>>2]=J[b+72>>2];J[a+124>>2]=J[b+124>>2];d=J[b+120>>2];J[a+116>>2]=J[b+116>>2];J[a+ -120>>2]=d;d=J[b+112>>2];J[a+108>>2]=J[b+108>>2];J[a+112>>2]=d;d=J[b+96>>2];J[a+92>>2]=J[b+92>>2];J[a+96>>2]=d;d=J[b+88>>2];J[a+84>>2]=J[b+84>>2];J[a+88>>2]=d;d=J[b+80>>2];J[a+76>>2]=J[b+76>>2];J[a+80>>2]=d;J[a+100>>2]=J[b+100>>2];J[a+104>>2]=J[b+104>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=J[b+132>>2];J[a+136>>2]=J[b+136>>2];J[a+140>>2]=J[b+140>>2]}return c|0}function oI(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=169776;d=J[a>>2];d=d?d:169776;c=M[d+16>>2]<8?169776:J[d+12>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6| -0]<<16|K[c+7|0]<<24);a:{if(!d)break a;g=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);e=J[b+92>>2];f=J[b+88>>2];b=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);if(b)b=c+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b=169776;d=0;if(g>>>0>=2){f=e>>>0>>0?f:e;h=f?f:1073741824;b=K[b|0]|K[b+1|0]<<8;f=(b<<8|b>>>8)&65535;e=1;while(1){b=J[a>>2];b=b?b:169776;c=M[b+16>>2]<8?169776:J[b+12>>2];b=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))>>>0>e>>>0)b=(c+(e<< -2)|0)+8|0;else b=169776;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);if(b)b=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+c|0;else b=169776;b=K[b|0]|K[b+1|0]<<8;b=(b<<8|b>>>8)&65535;if(!(!(b>>>0>=h>>>0&b>>>0>>0)&(b>>>0<=f>>>0|f>>>0>=h>>>0))){d=e;f=b}e=e+1|0;if((g|0)!=(e|0))continue;break}}e=169776;a=J[a>>2];a=a?a:169776;b=M[a+16>>2]<8?169776:J[a+12>>2];a=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if((a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))>>>0>d>>>0)a=(b+(d<<2)|0)+8|0;else a=169776;a=K[a| -0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if(!a)break a;e=b+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0}return e}function $i(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=xb-192|0;xb=e;a:{if(!b)while(1){b=K[c|0];if(!b){f=d;break a}H[d+e|0]=b;f=d|1;b=K[c+1|0];if(!b)break a;H[e+f|0]=b;f=d|2;b=K[c+2|0];if(!b)break a;H[e+f|0]=b;f=191;b=d|3;if((b|0)==191)break a;f=K[c+3|0];if(f){H[b+e|0]=f;d=d+4|0;c=c+4|0;continue}else{f=b;break a}}while(1){g=K[c|0];b:{c:{if((g|0)!=64){d=c;if(g)break c;break a}g=K[c+1|0];if(g){d= -c+1|0;i=0;while(1){h=i;if((h|0)!=9){i=h+1|0;if(K[h+255345|0]!=(g|0))continue}break}if(h>>>0>7)break c;d:{if(f>>>0>190)break d;h=(h<<5)+b|0;i=191-f|0;d=0;while(1){g=K[d+h|0];if(!g|d>>>0>31)break d;H[e+f|0]=g;f=f+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}f=191}c=c+2|0;break b}g=64;d=c}H[e+f|0]=g;f=f+1|0;c=d+1|0}if(f>>>0<191)continue;break}}d=0;H[e+f|0]=0;e:{if(!a)break e;f:{if(K[e|0]!=35)break f;d=1;if(K[e+1|0]==32)break f;d=2;if(K[e+2|0]==32)break f;d=3;if(K[e+3|0]==32)break f;d=4;if(K[e+4|0]==32)break f; -d=5;if(K[e+5|0]==32)break f;d=6;if(K[e+6|0]==32)break f;d=7;if(K[e+7|0]==32)break f;d=8;if(K[e+8|0]==32)break f;d=9;if(K[e+9|0]==32)break f;d=10;if(K[e+10|0]==32)break f;d=11;if(K[e+11|0]==32)break f;d=12;if(K[e+12|0]==32)break f;d=13;if(K[e+13|0]==32)break f;d=K[e+14|0]==32?14:15}b=J[a+164>>2];if(!b)break e;Ab[b|0](a,d|e)}xb=e+192|0}function wka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-384|0;xb=d;e=Pb(c);J[a>>2]=e;b=Mb(e,b,c);J[a+4>>2]=c;e=Pb(24);J[e+4>>2]=c;J[e>>2]=b;b=d+128|0;Cs(b, -e);h=a+8|0;c=HF(b);a:{b:{c:{d:{while(1){oo(c,d+48|0,0,0);e:{if(!J[d+76>>2])break e;b=d+128|0;f:{if(!oo(c,0,b,256)){b=ac(b);if(b>>>0>=2147483632)break a;g:{if(b>>>0<=10){H[d+23|0]=b;f=d+12|0;break g}g=(b|15)+1|0;f=Pb(g);J[d+20>>2]=g|-2147483648;J[d+12>>2]=f;J[d+16>>2]=b}b=Mb(f,d+128|0,b)+b|0;break f}H[d+23|0]=0;b=d+12|0}H[b|0]=0;h:{if(H[d+23|0]>=0){J[d+32>>2]=J[d+20>>2];b=J[d+16>>2];J[d+24>>2]=J[d+12>>2];J[d+28>>2]=b;break h}J[195395]=0;fa(1067,d+24|0,J[d+12>>2],J[d+16>>2]);b=J[195395];J[195395]=0; -if((b|0)==1)break d}J[d+36>>2]=0;J[d+40>>2]=0;b=J[a+12>>2];i:{if(b>>>0>2]){f=J[d+28>>2];J[b>>2]=J[d+24>>2];J[b+4>>2]=f;J[b+8>>2]=J[d+32>>2];J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;f=J[d+40>>2];J[b+12>>2]=J[d+36>>2];J[b+16>>2]=f;J[a+12>>2]=b+20;break i}J[195395]=0;$(1068,h|0,d+24|0);b=J[195395];J[195395]=0;if((b|0)==1)break c;if(H[d+35|0]>=0)break i;Kb(J[d+24>>2])}if(H[d+23|0]>=0)break e;Kb(J[d+12>>2])}if(!EF(c))continue;break}FF(c);Kb(e);xb=d+384|0;return}c=Z()|0;break b}c=Z()|0;if(H[d+35| -0]>=0)break b;Kb(J[d+24>>2])}if(H[d+23|0]<0)Kb(J[d+12>>2]);ba(c|0);B()}dd(d+12|0);B()}function Yy(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{c=J[a+4>>2];f:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break f}c=_c(a)}switch(c-43|0){case 0:case 2:break e;default:break d}}g=(c|0)==45;b=!b;c=J[a+4>>2];g:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break g}c=_c(a)}d=c-58|0;if(b|d>>>0>4294967285)break c;if(J[a+116>>2]<0)break b;J[a+4>>2]=J[a+4>>2]-1;break b}d=c-58|0}if(d>>>0<4294967286)break b;h:{if(c- -48>>>0>=10)break h;while(1){e=(P(e,10)+c|0)-48|0;f=(e|0)<214748364;c=J[a+4>>2];i:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break i}c=_c(a)}b=c-48|0;if(f&b>>>0<=9)continue;break}f=e>>31;if(b>>>0>=10)break h;while(1){b=c;c=Kpa(e,f,10,0);d=b+c|0;b=zb;e=d-48|0;d=(c>>>0>d>>>0?b+1|0:b)-(d>>>0<48)|0;f=d;d=e>>>0<2061584302&(d|0)<=21474836|(d|0)<21474836;c=J[a+4>>2];j:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break j}c=_c(a)}b=c-48|0;if(d&b>>>0<=9)continue;break}if(b>>>0>=10)break h;while(1){b=J[a+ -4>>2];k:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break k}b=_c(a)}if(b-48>>>0<10)continue;break}}b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;a=e;e=g?0-a|0:a;f=g?0-(((a|0)!=0)+f|0)|0:f;break a}f=-2147483648;if(J[a+116>>2]<0)break a;J[a+4>>2]=J[a+4>>2]-1;zb=-2147483648;return 0}zb=f;return e}function AW(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=xb-16|0;xb=f;J[f+8>>2]=d;J[f+12>>2]=b;b=xb-144|0;xb=b;e=J[f+12>>2];d=J[a>>2];J[d+20>>2]=0;J[d+16>>2]=e;J[b+8>>2]=760208; -J[b+64>>2]=760228;a=J[190061];J[b>>2]=a;J[b+J[a-12>>2]>>2]=J[190062];J[b+4>>2]=0;a=J[J[b>>2]-12>>2];J[195395]=0;a=a+b|0;e=b+12|0;$(1859,a|0,e|0);g=J[195395];J[195395]=0;a:{b:{c:{if((g|0)!=1){J[a+72>>2]=0;J[a+76>>2]=-1;a=J[190063];J[b+8>>2]=a;J[J[a-12>>2]+(b+8|0)>>2]=J[190064];a=J[190060];J[b>>2]=a;J[b+J[a-12>>2]>>2]=J[190065];J[b+64>>2]=760228;J[b>>2]=760188;J[b+8>>2]=760208;J[195395]=0;a=_(3520,e|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break c;J[a>>2]=759360;J[b+52>>2]=0;J[b+56>>2]=0;J[b+44>>2]= -0;J[b+48>>2]=0;J[b+60>>2]=24;a=b;break a}a=Z()|0;break b}a=Z()|0}Be(b- -64|0);ba(a|0);B()}e=J[f+8>>2];J[195395]=0;aa(3517,a+8|0,c|0,e|0)|0;c=J[195395];J[195395]=0;d:{e:{if((c|0)==1)break e;J[195395]=0;c=_(3518,a|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break e;J[d+20>>2]=c;J[195395]=0;ea(3519,d|0);c=J[195395];J[195395]=0;if((c|0)==1)break e;c=J[d+20>>2];d=J[190059];J[a>>2]=d;J[a+J[d-12>>2]>>2]=J[190067];J[a+12>>2]=759360;J[a+8>>2]=J[190068];if(H[a+55|0]<0)Kb(J[a+44>>2]);dl(a+12|0);Be(a- -64|0);xb= -b+144|0;a=!c;break d}b=Z()|0;kl(a);ba(b|0);B()}xb=f+16|0;return a|0}function Cn(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;l=J[a>>2]-12|0;g=J[l>>2]+a|0;h=J[g+12>>2];k=J[g+16>>2];if(h+3>>>0>>0){i=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);h=h+4|0;J[g+12>>2]=h}J[b>>2]=i;if(k>>>0>h+3>>>0){j=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);h=h+4|0;J[g+12>>2]=h}J[b+4>>2]=j;j=0;a:{if(k>>>0<=h+3>>>0){i=0;break a}i=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);h=h+4|0;J[g+12>>2]=h}J[b+8>> -2]=i;if(k>>>0>h+3>>>0){j=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);J[g+12>>2]=h+4}J[b+12>>2]=j;h=0;j=J[l>>2]+a|0;g=J[j+12>>2];k=J[j+16>>2];b:{if(g+3>>>0>=k>>>0){i=0;break b}i=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);g=g+4|0;J[j+12>>2]=g}J[c>>2]=i;if(k>>>0>g+3>>>0){h=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);J[j+12>>2]=g+4}J[c+4>>2]=h;h=0;i=J[l>>2]+a|0;g=J[i+12>>2];k=J[i+16>>2];c:{if(g+3>>>0>=k>>>0){j=0;break c}j=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);g=g+4|0;J[i+12>>2]=g}J[d>> -2]=j;if(k>>>0>g+3>>>0){h=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);J[i+12>>2]=g+4}J[d+4>>2]=h;n=e,o=we(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2],J[c>>2],J[c+4>>2]),O[n>>3]=o;m=we(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2],J[d>>2],J[d+4>>2])-O[e>>3];O[f>>3]=m<.001?m+360:m;if(J[J[a+120>>2]+688>>2]!=1)O[f>>3]=O[f>>3]+-360}function HN(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;i=-1;f=J[a+16>>2];a=K[f+6|0]|K[f+7|0]<<8|(K[f+8|0]<<16|K[f+9|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a:{if(!a)break a; -j=f+10|0;while(1){b:{e=a+g>>>1|0;d=j+P(e,11)|0;h=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];c:{if(h>>>0>c>>>0){a=e;break c}if(c>>>0<=h>>>0)break b;g=e+1|0}if(a>>>0>g>>>0)continue;break a}break}e=K[d+7|0]|K[d+8|0]<<8|(K[d+9|0]<<16|K[d+10|0]<<24);d:{a=K[d+3|0]|K[d+4|0]<<8|(K[d+5|0]<<16|K[d+6|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break d;c=a+f|0;a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);j=c+4|0;g=0;while(1){if(a>>>0<=g>>>0)break d;c=a;a=a+g>>>1| -0;d=j+(a<<2)|0;h=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];if(h>>>0>b>>>0)continue;i=1;g=a+1|0;a=c;if(h+K[d+3|0]>>>0>>0)continue;break}break a}a=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e:{if(!a)break e;c=a+f|0;a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break e;d=c+4|0;g=0;while(1){f:{c=a+g>>>1|0;e=d+P(c,5)|0;f=K[e+1|0]<<8|K[e|0]<<16|K[e+2|0];g:{if(f>>>0>b>>>0){a=c;break g}if(b>>>0<=f>>>0)break f;g=c+1|0}if(a>>>0>g>>>0)continue;break e}break}i=0;if(K[e+ -4|0]|K[e+3|0]<<8)break a}i=-1}return i|0}function IN(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;a:{h=J[a+16>>2];a=K[h+6|0]|K[h+7|0]<<8|(K[h+8|0]<<16|K[h+9|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);b:{if(!a)break b;j=h+10|0;while(1){c:{g=a+f>>>1|0;e=j+P(g,11)|0;i=K[e+1|0]<<8|K[e|0]<<16|K[e+2|0];d:{if(i>>>0>d>>>0){a=g;break d}if(d>>>0<=i>>>0)break c;f=g+1|0}if(a>>>0>f>>>0)continue;break b}break}g=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);e:{a=K[e+3|0]|K[e+4|0]<<8|(K[e+ -5|0]<<16|K[e+6|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break e;d=a+h|0;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);j=d+4|0;f=0;while(1){if(a>>>0<=f>>>0)break e;d=a;a=a+f>>>1|0;e=j+(a<<2)|0;i=K[e+1|0]<<8|K[e|0]<<16|K[e+2|0];if(i>>>0>c>>>0)continue;f=a+1|0;a=d;if(i+K[e+3|0]>>>0>>0)continue;break}return Ab[J[J[b+12>>2]+12>>2]](b,c)|0}a=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(!a)break b;b=a+h|0;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+ -3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break b;g=b+4|0;f=0;while(1){b=a+f>>>1|0;d=g+P(b,5)|0;e=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];f:{if(e>>>0>c>>>0){a=b;break f}if(c>>>0<=e>>>0)break a;f=b+1|0}if(a>>>0>f>>>0)continue;break}}return 0}return K[d+4|0]|K[d+3|0]<<8}function _d(a,b,c){var d=0;a:{b:{c:{d:{e:{f:{g:{h:{c=c-1|0;switch(c|0){case 2:case 7:break c;case 11:break d;case 10:break e;case 4:case 9:break f;case 3:case 8:break g;case 0:case 5:break h;default:break b}}if(J[b+4>>2])break b; -return 0}if(M[b+4>>2]>3)break b;break a}if(M[b+4>>2]>7)break b;break a}if(M[b+4>>2]<4)break a;return+N[J[b>>2]>>2]}if(M[b+4>>2]<8)break a;return O[J[b>>2]>>3]}if(M[b+4>>2]<=1)break a}b=J[b>>2];i:switch(c|0){case 5:return+H[b|0];case 0:return+K[b|0];case 2:a=J[a+264>>2];return+(K[!a+b|0]<<8|K[((a|0)!=0)+b|0]);case 3:j:{if(J[a+264>>2]){c=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;b=b+3|0;break j}c=K[b+2|0]<<16|K[b+3|0]<<24|K[b+1|0]<<8}return+((K[b|0]|c)>>>0);case 4:case 9:k:{if(J[a+264>>2]){a=K[b|0]|K[b+1| -0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=K[b+5|0]<<16|K[b+4|0]<<24|K[b+6|0]<<8;b=b+7|0;break k}c=K[b+6|0]<<16|K[b+7|0]<<24|K[b+5|0]<<8;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0}b=K[b|0]|c;if(!b)break a;return+(a|0)/+(b|0);case 7:a=J[a+264>>2];return+((K[!a+b|0]<<8|K[((a|0)!=0)+b|0])<<16>>16);case 8:break i;default:break a}l:{if(J[a+264>>2]){c=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;b=b+3|0;break l}c=K[b+2|0]<<16|K[b+3|0]<<24|K[b+1|0]<<8}d=+(K[b|0]|c)}return d} -function RC(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=xb-16|0;xb=h;f=275793;e=J[b+4>>2];a:{if(e>>>0>=c>>>0){f=276005;if(c>>>0>=e>>>0)break a}e=J[a>>2];g=J[a+628>>2];i=J[nd(a,L[b>>1])+16>>2];j=J[b+4>>2];J[h+8>>2]=c;J[h+4>>2]=j;J[h>>2]=i;yc(g,e,f,h)}b:{c:{f=J[d>>2];if(f)break c;f=Sd(a,c,4,281244);J[d>>2]=f;if(f)break c;d=0;break b}d=0;Pd(f,0,c<<2);e=J[b+4>>2];if(L[b+2>>1]==3){e=Sd(a,e,2,281437);if(!e)break b;g=J[b+4>>2];d:{if(g>>>0<=2){if(L[a+456>>1]==19789){d=1;e:{f:switch(g-1|0){case 0:a=J[b+8>>2];break e; -case 1:break f;default:break d}a=J[b+8>>2];I[e+2>>1]=a}I[e>>1]=a>>>16;break d}d=1;g:switch(g-1|0){case 0:I[e>>1]=J[b+8>>2];break d;case 1:break g;default:break d}a=J[b+8>>2];I[e+2>>1]=a>>>16;I[e>>1]=a;break d}d=(xe(a,b,e)|0)!=0}h:{if(!d|(c|0)<=0)break h;a=0;while(1){if(J[b+4>>2]<=(a|0))break h;J[(a<<2)+f>>2]=L[e+(a<<1)>>1];a=a+1|0;if((c|0)!=(a|0))continue;break}}Kb(e);break b}if((c|0)!=(e|0)){e=Sd(a,e,4,281437);if(!e)break b;d=1;i:{if(J[b+4>>2]==1){J[e>>2]=J[b+8>>2];break i}d=(xe(a,b,e)|0)!=0}j:{if(!d| -(c|0)<=0)break j;a=0;while(1){if(J[b+4>>2]<=(a|0))break j;g=a<<2;J[g+f>>2]=J[e+g>>2];a=a+1|0;if((c|0)!=(a|0))continue;break}}Kb(e);break b}d=1;if((c|0)==1){J[f>>2]=J[b+8>>2];break b}d=(xe(a,b,f)|0)!=0}xb=h+16|0;return d}function mk(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;j=J[c+12>>2];d=J[b+120>>2];if(d)Ab[d|0](J[b+116>>2]);e=J[b+84>>2];if(e)while(1){h=J[e+4>>2];d=J[h+84>>2];a:{if(!d)break a;i=J[J[h+96>>2]+8>>2];b:{if((d|0)==(e|0)){g=0;break b}while(1){f=J[d+8>>2];if(!f)break a;g=d;d=f;if((e|0)!=(d| -0))continue;break}}J[(g?g+8|0:h+84|0)>>2]=J[e+8>>2];d=J[e+20>>2];if(d)Ab[d|0](e);Nl(e);Ab[J[i+8>>2]](i,e);e=J[b+84>>2]}if(e)continue;break}if(a){d=J[b+108>>2];if(d)while(1){g=J[d+4>>2];f=J[d+8>>2];e=J[f+8>>2];if(e)Ab[e|0](f);e=J[J[c+12>>2]+60>>2];if(e)Ab[e|0](f);e=J[f+40>>2];if(e)Ab[J[a+8>>2]](a,e);J[f+40>>2]=0;Ab[J[a+8>>2]](a,f);Ab[J[a+8>>2]](a,d);d=g;if(d)continue;break}J[b+108>>2]=0;J[b+112>>2]=0}J[b+88>>2]=0;c=J[b+48>>2];if(c)Ab[c|0](b);if(J[b+36>>2]>0){d=0;while(1){f=d<<2;c=J[f+J[b+40>>2]>>2]; -g=J[J[c>>2]+100>>2];e=J[J[c+12>>2]+8>>2];if(e)Ab[e|0](c);Ab[J[g+8>>2]](g,c);J[f+J[b+40>>2]>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}c=J[b+40>>2];if(c)Ab[J[a+8>>2]](a,c);J[b+36>>2]=0;J[b+40>>2]=0;c=J[j+52>>2];if(c)Ab[c|0](b);c=J[b+104>>2];c:{if(!c)break c;g=J[b+8>>2];d=J[c+28>>2];f=J[c+24>>2];if(f)Ab[f|0](c);if(g&1024)break c;Ab[J[d+8>>2]](d,c)}J[b+104>>2]=0;c=J[b+128>>2];if(c){Ab[J[a+8>>2]](a,c);J[b+128>>2]=0}Ab[J[a+8>>2]](a,b)}function YG(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=J[b+ -12>>2];c=J[b+4>>2];a:{if(g>>>0>>0)break a;f=J[b+8>>2];if(f-a>>>0<2)break a;h=a+2|0;if(g>>>0>>0)break a;c=K[a|0]|K[a+1|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>f-h>>>0)break a;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break a;e=1;c=K[a|0]|K[a+1|0]<<8;if(!c)break a;e=(c<<8|c>>>8)&65535;k=e>>>0<=1?1:e;h=0;while(1){e=((h<<1)+a|0)+2|0;if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-e>>>0<2)return 0;c=K[e|0]|K[e+1|0]<<8;b:{if(!c)break b;j=0;f=J[b+12>>2];c=((c<<8|c>>>8)&65535)+a|0;g=J[b+4>> -2];c:{if(f>>>0>>0)break c;i=J[b+8>>2];if(i-c>>>0<2)break c;d=K[c|0]|K[c+1|0]<<8;c=(c+(((d<<8|d>>>8)&65535)<<1)|0)+2|0;if(f>>>0>>0|i-c>>>0<2)break c;d=K[c|0]|K[c+1|0]<<8;c=c+(d?((d<<8|d>>>8)&65535)<<1:2)|0;if(f>>>0>>0|J[b+8>>2]-c>>>0<2)break c;d=K[c|0]|K[c+1|0]<<8;c=c+(((d<<8|d>>>8)&65535)<<1)|0;d=c+2|0;if(f>>>0>>0|i-d>>>0<2)break c;d=f;f=c+4|0;if(d>>>0>>0)break c;c=K[c+2|0]|K[c+3|0]<<8;c=((c<<8|c>>>8)&65535)<<2;if(c>>>0>i-f>>>0)break c;c=J[b+16>>2]-c|0;J[b+16>>2]=c;j=(c|0)> -0}if(j)break b;c=J[b+32>>2];if(c>>>0>31)return 0;J[b+32>>2]=c+1;if(!K[b+28|0])return 0;H[e|0]=0;H[e+1|0]=0}e=1;h=h+1|0;if((k|0)!=(h|0))continue;break}}return e}function OY(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=a+124|0;e=J[c+8>>2];d=J[c+4>>2];a:{if((e|0)==(d|0)){d=e;break a}while(1){f=J[(b<<2)+d>>2];if(f){ml(f+12|0);Kb(qd(f));e=J[c+8>>2];d=J[c+4>>2]}b=b+1|0;if(b>>>0>2>>>0)continue;break}}J[c+8>>2]=d;d=J[c+20>>2];f=c+24|0;if((d|0)!=(f|0))while(1){b=J[d+20>>2];if(b)Ab[J[J[b>>2]+4>> -2]](b);e=J[d+4>>2];b:{if(e)while(1){b=e;e=J[b>>2];if(e)continue;break b}while(1){b=J[d+8>>2];e=J[b>>2]!=(d|0);d=b;if(e)continue;break}}d=b;if((b|0)!=(f|0))continue;break}Sj(c+20|0,J[c+24>>2]);J[c+20>>2]=f;J[c+24>>2]=0;J[c+28>>2]=0;b=Pb(304);J[195395]=0;f=_(3482,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1){a=Z()|0;Kb(b);ba(a|0);B()}J[c>>2]=f;c:{d:{e:{b=J[c+8>>2];f:{if((b|0)!=J[c+12>>2]){J[b>>2]=f;J[c+8>>2]=b+4;break f}h=c+4|0;i=J[h>>2];d=b-i|0;g=d>>2;e=g+1|0;if(e>>>0>=1073741824)break e;j=g<<2;g=d>> -1;g=d>>>0>=2147483644?1073741823:e>>>0>>0?g:e;if(g){if(g>>>0>=1073741824)break d;d=Pb(g<<2)}else d=0;e=j+d|0;J[e>>2]=f;f=e+4|0;if((b|0)!=(i|0)){while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(i|0))continue;break}b=J[h>>2]}J[c+12>>2]=d+(g<<2);J[c+8>>2]=f;J[c+4>>2]=e;if(!b)break f;Kb(b)}I[c+32>>1]=0;J[c+40>>2]=J[c+36>>2];break c}Ve(h);B()}zd();B()}b=J[c>>2];H[a+264|0]=0;J[a+172>>2]=b}function vH(a,b,c,d){var e=0,f=0,g=0,h=0;e=rh(a,b);f=169776;a:{if((K[e|0]|K[e+1|0]<<8)!=256)break a;a=K[e+4|0]| -K[e+5|0]<<8;f=169776;if(!a)break a;f=e+((a<<8|a>>>8)&65535)|0}a=K[f|0]|K[f+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>c>>>0)a=(f+P(c,6)|0)+2|0;else a=169776;a=K[a+4|0]|K[a+5|0]<<8;if(a)a=f+((a<<8|a>>>8)&65535)|0;else a=169776;b:{c:{d:{if((d|0)==65535){c=K[a|0]|K[a+1|0]<<8;b=170418;if(!c)break d;b=a+((c<<8|c>>>8)&65535)|0;break d}b=K[a+2|0]|K[a+3|0]<<8;c=((b<<8|b>>>8)&65535)>>>0<=d>>>0?169776:(a+P(d,6)|0)+4|0;c=K[c+4|0]|K[c+5|0]<<8;b=170418;if(!c)break d;b=a+((c<<8|c>>>8)&65535)|0}a=K[b+4|0]|K[b+5|0]<<8; -if(!a)break c;c=b+4|0;a=(a<<8|a>>>8)&65535;f=a>>>0<=1?1:a;a=0;while(1){b=K[c|0]|K[c+1|0]<<8;b=((b<<8|b>>>8)&65535)>>>0<=a>>>0?170416:(c+(a<<1)|0)+2|0;b=K[b|0]|K[b+1|0]<<8;g=b<<8|b>>>8;h=g&65535;if((b|0)==65535)b=0;else{b=169776;e:{if((K[e|0]|K[e+1|0]<<8)!=256)break e;d=K[e+6|0]|K[e+7|0]<<8;b=169776;if(!d)break e;b=e+((d<<8|d>>>8)&65535)|0}d=K[b|0]|K[b+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>(g&65535)>>>0)b=(b+P(h,6)|0)+2|0;else b=169776;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b<<24|(b&65280)<< -8|(b>>>8&65280|b>>>24)}if((b|0)!=1919118452){a=a+1|0;if((f|0)==(a|0))break c;continue}break}a=1;break b}a=0}return a}function yy(a,b){var c=0,d=0,e=0;e=xb-16|0;xb=e;J[a+4>>2]=0;lq(e+15|0,a,1);a:{b:{c=0;c:{if(!K[e+15|0])break c;while(1){d:{c=J[J[a>>2]-12>>2];J[195395]=0;c=J[(a+c|0)+24>>2];d=J[195395];J[195395]=0;if((d|0)==1)break d;J[195395]=0;d=_(3544,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break d;c=2;if((d|0)==-1)break c;d=d<<24>>24;if((d|0)==10){c=J[J[a>>2]-12>>2];J[195395]=0;c=J[(a+c|0)+24>> -2];d=J[195395];J[195395]=0;e:{if((d|0)==1)break e;J[195395]=0;_(3541,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break e;J[a+4>>2]=J[a+4>>2]+1;c=0;break c}break d}c=4;if(J[a+4>>2]>=99)break c;H[b|0]=d;c=J[J[a>>2]-12>>2];J[195395]=0;c=J[(a+c|0)+24>>2];d=J[195395];J[195395]=0;b=b+1|0;if((d|0)==1)break d;J[195395]=0;_(3541,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break d;J[a+4>>2]=J[a+4>>2]+1;continue}break}sa(ga(0)|0)|0;c=J[J[a>>2]-12>>2]+a|0;J[c+16>>2]=!J[c+24>>2]|(J[c+16>>2]|1);c=J[J[a>>2]-12>>2]; -J[195395]=0;c=J[(a+c|0)+20>>2];d=J[195395];J[195395]=0;f:{if((d|0)!=1){if(!(c&1))break f;H[b|0]=0;J[195395]=0;ja(3515);a=J[195395];J[195395]=0;if((a|0)!=1)break a}a=Z()|0;J[195395]=0;ja(3516);b=J[195395];J[195395]=0;if((b|0)==1)break b;ba(a|0);B()}ua();c=1}H[b|0]=0;Hj(J[J[a>>2]-12>>2]+a|0,J[a+4>>2]?c:c|4);xb=e+16|0;return a}ga(0)|0;_b()}B()}function Fba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=J[a+12>>2];a:{if(J[a+4>>2]){if((c|0)<=0)break a;while(1){f=L[b>>1]<<16;e=+I[b+2>>1];b:{c:{d:{if(!J[a+ -4>>2]){e=e*.01251220703125;e:{if(R(e)<2147483648){d=~~e;break e}d=-2147483648}d=f|d<<8&65280;break d}h=Kpa(J[195008],J[195009],1284865837,1481765933);d=zb;h=h+1|0;d=h?d:d+1|0;J[195008]=h;J[195009]=d;e=e*.01251220703125+ +(d>>>1|0)*4.656612875245797E-10+-.5;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}d=f|d<<8&65280;if(J[a+4>>2])break c}e=+I[b+4>>1]*.01251220703125;break b}e=+I[b+4>>1]*.01251220703125;h=Kpa(J[195008],J[195009],1284865837,1481765933);f=zb;h=h+1|0;f=h?f:f+1|0;J[195008]=h;J[195009]= -f;e=e+ +(f>>>1|0)*4.656612875245797E-10+-.5}g:{if(R(e)<2147483648){f=~~e;break g}f=-2147483648}J[g>>2]=f&255|d;b=b+6|0;g=g+4|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}break a}if((c|0)<=0)break a;if(c&1){J[g>>2]=P(I[b+4>>1],410)>>>15&255|(P(I[b+2>>1],410)>>>7&65280|L[b>>1]<<16);b=b+6|0;g=g+4|0;a=c-1|0}else a=c;d=a;if((c|0)==1)break a;while(1){J[g>>2]=P(I[b+4>>1],410)>>>15&255|(P(I[b+2>>1],410)>>>7&65280|L[b>>1]<<16);J[g+4>>2]=P(I[b+10>>1],410)>>>15&255|(P(I[b+8>>1],410)>>>7&65280|L[b+6>>1]<<16);b=b+ -12|0;g=g+8|0;a=d-3|0;d=d-2|0;if(a>>>0<4294967294)continue;break}}}function rt(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=J[b+12>>2];f=J[b+4>>2];a:{if(e>>>0>>0)break a;g=J[b+8>>2];if(!(K[a|0]|K[a+1|0]<<8)|g-a>>>0<8)break a;d=a+4|0;if(e>>>0>>0|g-d>>>0<4)break a;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(c>>>0>1073741823)break a;h=e;e=a+8|0;if(h>>>0>>0)break a;c=c<<2;if(c>>>0>g-e>>>0)break a;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break a; -i=1;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!d)break a;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);e=d>>>0<=1?1:d;f=0;while(1){d=((f<<2)+a|0)+8|0;if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-d>>>0<4)return 0;if(K[d|0]&128)return 0;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);b:{if(!c)break b;i=J[b+12>>2];c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;g=J[b+4>>2];c:{if(i>>>0>>0)break c;h=J[b+8>>2];if(h-c>>>0<4)break c;j=J[b+40>>2]+1|0;if(j>>>0>1073741823)break c;c=c+4|0; -if(i>>>0>>0)break c;h=h-c|0;c=j<<2;if(h>>>0>>0)break c;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)>0)break b}c=J[b+32>>2];if(c>>>0>31)return 0;J[b+32>>2]=c+1;if(!K[b+28|0])return 0;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0}i=1;f=f+1|0;if((e|0)!=(f|0))continue;break}}return i}function Cja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=xb-32|0;xb=g;a:{b:{if(J[b>>2]){d=0;H[a+96|0]=K[239121];b=K[239117]|K[239118]<<8|(K[239119]<<16|K[239120]<<24);c=K[239113]|K[239114]<<8|(K[239115]<<16|K[239116]<< -24);H[a+88|0]=c;H[a+89|0]=c>>>8;H[a+90|0]=c>>>16;H[a+91|0]=c>>>24;H[a+92|0]=b;H[a+93|0]=b>>>8;H[a+94|0]=b>>>16;H[a+95|0]=b>>>24;b=K[239109]|K[239110]<<8|(K[239111]<<16|K[239112]<<24);c=K[239105]|K[239106]<<8|(K[239107]<<16|K[239108]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[239101]|K[239102]<<8|(K[239103]<<16|K[239104]<<24);c=K[239097]|K[239098]<<8|(K[239099]<<16|K[239100]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+ -74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;break b}e=Pl(g+4|0,0,0);J[195395]=0;_(1144,e|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break a;J[195395]=0;d=aa(1143,a|0,e|0,d|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;if(d){J[195395]=0;H[e+12|0]=0;a=J[e+4>>2];f=J[195395];J[195395]=0;if((f|0)==1)break a;J[b>>2]=a;J[195395]=0;a=J[e+8>>2];b=J[e+4>>2];f=J[195395];J[195395]=0;if((f|0)==1)break a;J[c>>2]=b?a:-1}Og(e)}xb=g+32|0;return d|0}a=Z()|0;Og(e);ba(a| -0);B()}function ex(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;a=xb-16|0;xb=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;a:{b:{while(1){c:{b=J[a+12>>2];if(d>>>0<=b>>>0)break c;m=J[a+8>>2];if(m>>>0>=g>>>0)break c;f=H[b|0];c=f&255;d:{if((f|0)>=0){if(c>>>0<=1114111){f=1;break d}k=2;break a}k=2;if(f>>>0<4294967234)break a;if(f>>>0<=4294967263){if((d-b|0)<2)break b;i=K[b+1|0];if((i&192)!=128)break a;f=2;c=i&63|c<<6&1984;break d}if(f>>>0<=4294967279){if((d- -b|0)<3)break b;i=K[b+2|0];j=K[b+1|0];e:{f:{if((c|0)!=237){if((c|0)!=224)break f;if((j&224)==160)break e;break a}if((j&224)==128)break e;break a}if((j&192)!=128)break a}if((i&192)!=128)break a;f=3;c=i&63|(c<<12&61440|(j&63)<<6);break d}if(f>>>0>4294967284)break a;if((d-b|0)<4)break b;j=K[b+3|0];i=K[b+2|0];l=K[b+1|0];g:{h:switch(c-240|0){case 0:if((l+112&255)>>>0<48)break g;break a;case 4:if((l&240)==128)break g;break a;default:break h}if((l&192)!=128)break a}if((i&192)!=128|(j&192)!=128)break a;f= -4;c=j&63|(i<<6&4032|(c<<18&1835008|(l&63)<<12));if(c>>>0>1114111)break a}J[m>>2]=c;J[a+12>>2]=b+f;J[a+8>>2]=J[a+8>>2]+4;continue}break}k=b>>>0>>0;break a}k=1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];xb=a+16|0;return k|0}function aI(a,b,c,d,e){var f=0,g=0,h=Q(0),i=Q(0),j=0,k=0,l=0,m=0,n=0;g=xb-16|0;xb=g;f=J[a>>2];f=f?f:169776;f=M[f+16>>2]<8?169776:J[f+12>>2];a:{if(!(K[f|0]|K[f+1|0]<<8)){f=0;break a}f=0;J[g+12>>2]=0;J[g+8>>2]=0;J[g+4>>2]=0;b:{j=nI(oI(a,b),c,J[a>>2],g+12|0,g+8|0,J[a+4>>2],g+4|0);a=M[j+ -16>>2]<29?169776:J[j+12>>2];c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(c>>>0<=65535){a=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(a>>>0<65536)break b}Ub(j);break a}k=J[g+12>>2];J[d>>2]=k;f=J[g+8>>2];l=0-c|0;J[d+12>>2]=l;J[d+8>>2]=a;f=c+f|0;J[d+4>>2]=f;c=J[g+4>>2];if(!(!c|!e)){n=J[b+24>>2];m=J[n+28>>2];if(!m){m=oi(n);l=J[d+12>>2];f=J[d+4>>2];k=J[d>>2];c=J[g+4>>2];a=J[d+8>>2]}i=Q(Q(m>>>0)/ -Q(c>>>0));h=Q(V(Q(Q(i*Q(l|0))+Q(.5))));c:{if(Q(R(h))>2]=c;h=Q(V(Q(Q(i*Q(a|0))+Q(.5))));d:{if(Q(R(h))>2]=a;h=Q(V(Q(Q(i*Q(f|0))+Q(.5))));e:{if(Q(R(h))>2]=a;i=Q(V(Q(Q(i*Q(k|0))+Q(.5))));f:{if(Q(R(i))>2]=a}if(e)ri(b,d);Ub(j);f=J[g+4>>2]!=0}xb=g+16|0;return f}function Wja(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;g=xb-960|0;xb=g;e=J[a+4>>2];d=J[a+12>>2];a:{if(!d){f=e<<2;j=32;break a}h=d;d=d>>31;f=(h^d)-d|0;j=(f>>>0)/(e>>>0)<<3}d=0;e=g+944|0;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=428736;J[195395]=0;b=ca(1099,e|0,b|0)|0;i=J[195395];J[195395]=0;b:{c:{d:{if((i|0)!=1){e:{if(b){J[195395]=0;b=Fd(g,0);d=J[195395];J[195395]=0;if((d|0)==1)break e;d=J[a+8>>2];i=J[a+4>>2];k=J[a+16>>2];l=K[a+40|0];h=J[a+12>>2];J[195395]=0;f=Ba(1100,b|0,k|0,i|0,d|0,j|0,f|0,(h^-1)>>>31|0,!l|0)|0;d=J[195395]; -J[195395]=0;if((d|0)==1)break d;d=0;f:{if(!f)break f;d=J[a+20>>2];if(d){a=J[a+24>>2];J[195395]=0;fa(1101,b|0,d|0,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break d}J[195395]=0;a=J[e+4>>2];d=J[195395];J[195395]=0;if((d|0)==1)break d;J[195395]=0;a=aa(1102,b|0,a|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break d;d=0;if(!a)break f;J[195395]=0;ea(1103,e|0);a=J[195395];J[195395]=0;d=1;if((a|0)==1)break d}J[b>>2]=234140;J[195395]=0;_(1097,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break c;J[195395]=0;_(1098, -b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break c}Me(e);xb=g+960|0;return d|0}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;Nf(b);break b}ga(0)|0;_b();B()}Me(e);ba(a|0);B()}function kj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{c=J[a+44>>2];if(!c)break a;f=J[a+24>>2];b=Opa(f,31);if(b>>>0>8|!(1<>2]=J[c+32>>2];b=J[a+16>>2];if(!b)b=J[c>>2];if(!f){J[a+8>>2]=J[c+4>>2];J[a+4>>2]=b;d=xb-32|0;xb=d;b:{if(J[a+24>>2])break b;b=J[a+52>>2];if(b>>>0<2)break b;i=a+60|0;f=J[42444];while(1){b= -b<<2;e=J[a+56>>2];if(M[J[(b+e|0)-4>>2]>>2]>=M[a+8>>2])break b;c:{if(!J[a+92>>2])break c;h=(b+e|0)-4|0;b=J[h>>2];g=J[b+4>>2];e=J[b>>2];J[d+28>>2]=0;J[d+20>>2]=e;e=g-e|0;J[d+24>>2]=(e|0)>=128?128:e;e=rj(d+20|0);g=J[b+12>>2];b=J[b+16>>2];J[d+16>>2]=0;J[d+8>>2]=b;J[d+12>>2]=P(g,12);b=Vt(i,h,rj(d+8|0)^e);if(!b)break c;J[b+4>>2]=J[b+4>>2]&-2;J[a+72>>2]=J[a+72>>2]-2}b=J[a+52>>2];d:{if(!b){J[194120]=f;b=f;break d}b=J[(J[a+56>>2]+(b<<2)|0)-4>>2]}if(J[b+8>>2]){J[b+12>>2]=0;Kb(J[b+16>>2])}J[b+8>>2]=0;J[b+12>> -2]=0;J[b+16>>2]=0;if(J[b+20>>2]){J[b+24>>2]=0;Kb(J[b+28>>2])}J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;b=J[a+52>>2];if(!b)break b;b=b-1|0;J[a+52>>2]=b;if(b>>>0>1)continue;break}}xb=d+32|0}J[a+16>>2]=0;if(J[c+8>>2]){J[c+12>>2]=0;Kb(J[c+16>>2])}J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;if(J[c+20>>2]){J[c+24>>2]=0;Kb(J[c+28>>2])}J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c>>2]=J[a+28>>2];J[a+28>>2]=c}}function _v(a){var b=0,c=0,d=0,e=0,f=0;if(a){c=J[a+100>>2];b=J[a>>2];if(b)Ab[J[c+8>>2]](c,b);J[a>>2]=0;b=J[a+ -92>>2];if(b){ho(b,c);b=J[a+92>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+92>>2]=0}b=J[a+84>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+84>>2]=0;e=J[a+72>>2];if(e){b=0;while(1){d=b<<4;f=d+J[a+80>>2]|0;if(J[f+4>>2]==1){e=J[f+12>>2];if(e)Ab[J[c+8>>2]](c,e);J[(d+J[a+80>>2]|0)+12>>2]=0;e=J[a+72>>2]}b=b+1|0;if(e>>>0>b>>>0)continue;break}}b=J[a+80>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+80>>2]=0;if(J[a+52>>2]){b=J[a+56>>2];e=0;while(1){d=J[b>>2];if(d)Ab[J[c+8>>2]](c,d);J[b>>2]=0;d=J[b+24>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+24>>2]=0;b=b+36| -0;e=e+1|0;if(e>>>0>2])continue;break}}if(J[a+64>>2]){b=J[a+68>>2];e=0;while(1){d=J[b>>2];if(d)Ab[J[c+8>>2]](c,d);J[b>>2]=0;d=J[b+24>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+24>>2]=0;b=b+36|0;e=e+1|0;if(e>>>0>2])continue;break}}b=J[a+56>>2];if(b)Ab[J[c+8>>2]](c,b);e=0;J[a+56>>2]=0;b=J[a+68>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+68>>2]=0;ho(a+112|0,c);b=J[a+104>>2];if(J[a+108>>2]){while(1){d=J[b>>2];if(d)Ab[J[c+8>>2]](c,d);J[b>>2]=0;if(J[b+4>>2]==1){d=J[b+12>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+12>>2]=0}b= -b+16|0;e=e+1|0;if(e>>>0>2])continue;break}b=J[a+104>>2]}if(b)Ab[J[c+8>>2]](c,b);J[a+104>>2]=0}}function bD(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-112|0;xb=e;b=(b|0)==-1?J[a+60>>2]:b;a:{b:{c:{d:{e:{if(!(K[a+13|0]&64|(L[a+138>>1]!=1|L[a+90>>1]!=6))){J[e+84>>2]=e+110;J[e+80>>2]=e+108;zc(a,530,e+80|0);d=L[e+108>>1];h=P(d,L[e+110>>1]);if(!h){b=0;Ob(J[a+628>>2],J[a>>2],264642,0);break a}c=J[a+56>>2];if(c>>>0<0-d>>>0)c=((c+d|0)-1>>>0)/(d>>>0)|0;else c=0;d=P(c,d);f=L[a+84>>1];c=Kpa(d,0,f,0);g=(zb| -0)!=0;f:{g:{if(f){if(!g)break g;f=J[a>>2];c=J[a+628>>2];J[e+48>>2]=265219;Ob(c,f,267226,e+48|0);f=L[a+84>>1];c=Kpa(f,0,d,0);g=(zb|0)!=0;d=!f;break e}if(c&7)break f;d=1;break e}if(!(c&7))break d;if(!g)break f;d=J[a>>2];c=J[a+628>>2];J[e+64>>2]=265219;Ob(c,d,267226,e- -64|0);c=0}c=(c>>>3|0)+1|0;break b}c=Ye(a);b=Kpa(c,0,b,0);d=zb;if(!c|!d)break a;b=J[a>>2];a=J[a+628>>2];J[e+96>>2]=265219;Ob(a,b,267226,e+96|0);b=0;break a}if(d)break c}if(!g)break c;d=J[a>>2];c=J[a+628>>2];J[e+32>>2]=265219;Ob(c,d,267226, -e+32|0);c=0}c=c>>>3|0}d=L[e+110>>1];if(0-d>>>0>b>>>0)b=((b+d|0)-1>>>0)/(d>>>0)|0;else b=0;b=Kpa(c,0,P(b,d),0);d=zb;if(!(!c|!d)){c=J[a>>2];b=J[a+628>>2];J[e+16>>2]=265219;Ob(b,c,267226,e+16|0);b=0}c=(b|0)/(h|0)|0;if((c|0)>=0){b=(c<<1)+b|0;break a}c=J[a>>2];a=J[a+628>>2];J[e>>2]=265219;Ob(a,c,267226,e)}xb=e+112|0;return b}function sH(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;a:{g=P(c,20)+a|0;f=g;j=L[f+16>>1];if(!j)break a;i=K[f+18|0];I[f+16>>1]=0;if(!e)break a;h=j<<16>>16;f=h+c|0;if(f>>>0>=b>>>0)break a;sH(a, -b,f,d,e-1|0);if(i&2){if((d&-2)==4){J[g+12>>2]=J[g+12>>2]+J[(P(f,20)+a|0)+12>>2];return}b=P(c,20)+a|0;J[b+8>>2]=J[b+8>>2]+J[(P(f,20)+a|0)+8>>2];return}i=P(c,20)+a|0;b=P(f,20)+a|0;g=J[i+8>>2]+J[b+8>>2]|0;J[i+8>>2]=g;e=J[i+12>>2]+J[b+12>>2]|0;J[i+12>>2]=e;b:{if((d&-3)!=4){d=f+1|0;if(d>>>0>=c+1>>>0)break a;f=0;h=0-h&3;if(h){b=d;while(1){d=P(b,20)+a|0;e=J[d+4>>2]+e|0;g=J[d>>2]+g|0;d=b+1|0;b=d;f=f+1|0;if((h|0)!=(f|0))continue;break}}if(j>>>0>65532)break b;while(1){b=P(d,20)+a|0;e=(((J[b+4>>2]+e|0)+J[b+ -24>>2]|0)+J[b+44>>2]|0)+J[b- -64>>2]|0;g=J[b+60>>2]+(J[b+40>>2]+(J[b+20>>2]+(J[b>>2]+g|0)|0)|0)|0;b=d+3|0;d=d+4|0;if((b|0)!=(c|0))continue;break}break b}if(c>>>0<=f>>>0)break a;d=0;h=0-h&3;if(h){b=f;while(1){f=P(b,20)+a|0;e=e-J[f+4>>2]|0;g=g-J[f>>2]|0;f=b+1|0;b=f;d=d+1|0;if((h|0)!=(d|0))continue;break}}if(j>>>0>65532)break b;while(1){b=P(f,20)+a|0;e=e-(((J[b+4>>2]+J[b+24>>2]|0)+J[b+44>>2]|0)+J[b- -64>>2]|0)|0;g=g-(J[b+60>>2]+(J[b+40>>2]+(J[b>>2]+J[b+20>>2]|0)|0)|0)|0;f=f+4|0;if((f|0)!=(c|0))continue; -break}}J[i+8>>2]=g;J[i+12>>2]=e}}function vV(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;J[195395]=0;ca(3548,e+8|0,a|0)|0;d=J[195395];J[195395]=0;a:{b:{c:{if((d|0)!=1){d:{if(!K[e+8|0])break d;c=J[J[a>>2]-12>>2];J[195395]=0;d=e+4|0;c=J[(a+c|0)+28>>2];J[d>>2]=c;J[c+4>>2]=J[c+4>>2]+1;c=J[195395];J[195395]=0;e:{f:{g:{if((c|0)!=1){J[195395]=0;h=_(3553,d|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break g;c=J[d>>2];f=J[c+4>>2]-1|0;J[c+4>>2]=f;if((f|0)==-1)Ab[J[J[c>>2]+8>>2]](c);J[e>>2]=J[(J[J[a>> -2]-12>>2]+a|0)+24>>2];c=J[J[a>>2]-12>>2];J[195395]=0;c=a+c|0;f=_(3554,c|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break f;g=J[e>>2];J[195395]=0;c=ab(3555,h|0,g|0,c|0,f|0,+b)|0;f=J[195395];J[195395]=0;if((f|0)==1)break f;J[e+4>>2]=c;if(J[d>>2])break d;d=J[J[a>>2]-12>>2];J[195395]=0;$(3550,a+d|0,5);d=J[195395];J[195395]=0;if((d|0)!=1)break d;d=ga(0)|0;break e}d=ga(0)|0;break e}d=ga(0)|0;c=J[e+4>>2];f=J[c+4>>2]-1|0;J[c+4>>2]=f;if((f|0)==-1)Ab[J[J[c>>2]+8>>2]](c);break e}d=ga(0)|0}Pm(e+8|0);break c}Pm(e+ -8|0);break b}d=ga(0)|0}sa(d|0)|0;d=J[J[a>>2]-12>>2];J[195395]=0;ea(3540,a+d|0);d=J[195395];J[195395]=0;if((d|0)==1)break a;ua()}xb=e+16|0;return a|0}a=Z()|0;J[195395]=0;ja(3516);e=J[195395];J[195395]=0;if((e|0)!=1){ba(a|0);B()}ga(0)|0;_b();B()}function uH(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;m=c;c=0;h=169776;a=rh(a,b);b=K[a+1|0]<<8;a:{if((K[a|0]|b)!=256)break a;b=b|K[a|0]|(K[a+2|0]<<16|K[a+3|0]<<24);if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))>>>0<65537)break a;b=K[a+10|0]|K[a+11| -0]<<8|(K[a+12|0]<<16|K[a+13|0]<<24);if(!b)break a;h=a+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0}a=-1;b=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);b:{if(!b)break b;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);n=b>>>0<=1?1:b;while(1){b=(c<<3)+h|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)i=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+h|0;else i=169776;b=K[i|0]|K[i+1|0]<<8;if(!b){a=c;break b}j=(b<<8|b>>>8)&65535;o=j>>>0<=1?1:j;l=0;b=0;while(1){c:{f=(b<<2)+i|0;f=K[f+2|0]|K[f+3|0]<<8| -(K[f+4|0]<<16|K[f+5|0]<<24);if(f)f=(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))+i|0;else f=169776;if((K[f|0]|K[f+1|0]<<8)!=256)break c;k=0;g=K[f+2|0]|K[f+3|0]<<8;g=(g<<8|g>>>8)&65535;if(g>>>0>>0)k=J[(g<<2)+m>>2];g=K[f+4|0]|K[f+5|0]<<8;if((g<<8|g>>>8)<<16>>16>(k|0))break c;f=K[f+6|0]|K[f+7|0]<<8;if((f<<8|f>>>8)<<16>>16<(k|0))break c;b=b+1|0;l=j>>>0<=b>>>0;if((b|0)!=(o|0))continue}break}if(l){a=c;break b}c=c+1|0;if((n|0)!=(c|0))continue;break}}J[e>>2]=a}function Gla(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c= -Q(c);d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=Q(h);i=i|0;var j=0,k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=0;a=xb-32|0;xb=a;N[a+28>>2]=h;N[a+24>>2]=g;N[a+20>>2]=f;N[a+16>>2]=e;N[a+12>>2]=d;N[a+8>>2]=c;i=b;b=J[b+4>>2];a:{if(!b){b=J[42449];J[194124]=J[42448];J[194125]=b;b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b;b=J[i+4>>2];j=776480;break a}j=(J[i+8>>2]+P(b,24)|0)-24|0}o=N[a+20>>2];k=N[j+12>>2];l=N[j+4>>2];p=N[a+16>>2];m=N[j+8>>2];n=N[j>>2];h=N[a+12>>2];g=N[a+8>>2];f= -N[a+28>>2];e=N[a+24>>2];d=N[j+20>>2];c=N[j+16>>2];j=J[i>>2];b:{c:{if((j|0)>(b|0))break c;d:{if((j|0)>=0){q=b+1|0;if(q>>>0<=j>>>0)break c;b=j;while(1){b=((b>>>1|0)+b|0)+8|0;if(q>>>0>b>>>0)continue;break}if(b>>>0<=178956970){j=ic(J[i+8>>2],P(b,24));if(j)break d;j=J[i>>2];if(j>>>0>=b>>>0)break c}J[i>>2]=j^-1}b=J[42449];J[194124]=J[42448];J[194125]=b;b=J[42447];J[194122]=J[42446];J[194123]=b;b=J[42445];J[194120]=J[42444];J[194121]=b;break b}J[i>>2]=b;J[i+8>>2]=j}b=J[i+4>>2];J[i+4>>2]=b+1;b=J[i+8>>2]+ -P(b,24)|0;N[b+20>>2]=d+Q(Q(e*l)+Q(k*f));N[b+16>>2]=c+Q(Q(e*n)+Q(m*f));N[b+12>>2]=Q(p*l)+Q(k*o);N[b+8>>2]=Q(p*n)+Q(m*o);N[b+4>>2]=Q(g*l)+Q(k*h);N[b>>2]=Q(g*n)+Q(m*h)}xb=a+32|0}function Wna(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{b:{if((a|0)==18){f=b+16|0;d=J[b+20>>2];c:{if(d){e=d-1|0;g=O[(f+(e<<3)|0)+8>>3];break c}H[f|0]=1;d=J[42445];h=J[42444];J[194120]=h;J[194121]=d;x(0,h|0);x(1,d|0);g=+z()}d:{if(R(g)<2147483648){d=~~g;break d}d=-2147483648}if((d|0)<0){H[f|0]=1;d=0}J[c+16>>2]=d;if(e)g= -O[f+(e<<3)>>3];else{H[f|0]=1;d=J[42445];e=J[42444];J[194120]=e;J[194121]=d;x(0,e|0);x(1,d|0);g=+z()}e:{if(R(g)<2147483648){d=~~g;break e}d=-2147483648}if((d|0)<0){H[f|0]=1;d=0}J[c+20>>2]=d;J[b+20>>2]=0;break b}Ek(a,b);if(J[b+20>>2])break a}if(K[b+16|0]|M[b+8>>2]>M[b+4>>2])break a;d=J[c+4>>2];e=J[c+8>>2];f:{g:{if((d|0)>(e|0))break g;h:{if((d|0)>=0){f=e+1|0;if(f>>>0<=d>>>0)break g;e=d;while(1){e=((e>>>1|0)+e|0)+8|0;if(f>>>0>e>>>0)continue;break}if(e>>>0<=357913941){d=ic(J[c+12>>2],P(e,12));if(d)break h; -d=J[c+4>>2];if(e>>>0<=d>>>0)break g}J[c+4>>2]=d^-1}J[194122]=J[42446];d=J[42445];J[194120]=J[42444];J[194121]=d;d=776480;break f}J[c+4>>2]=e;J[c+12>>2]=d}d=J[c+8>>2];J[c+8>>2]=d+1;d=J[c+12>>2]+P(d,12)|0;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=65535}J[d+4>>2]=a;a=J[b+8>>2];e=J[b+4>>2];f=J[b>>2];b=J[c>>2];J[d>>2]=f+b;f=d;d=e-b|0;d=d>>>0<=e>>>0?d:0;b=a-b|0;H[f+8|0]=b>>>0>d>>>0?d:b;J[c>>2]=a}}function $aa(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;g=xb-16|0;xb=g;a:{b:{e= -J[a+584>>2];if(!K[e+401|0]){if((c>>>0)%M[e+1116>>2]|0)break b;o=e+536|0;a=J[e+1112>>2];while(1){d=K[e+209|0];if(!a){if(!nr(e,o,J[e+1104>>2],d<<3)){f=0;break a}d=K[e+209|0];a=J[e+1112>>2]}if(J[e+1108>>2]){f=P(J[e+1064>>2],a);i=f+J[e+1092>>2]|0;j=f+J[e+1096>>2]|0;k=J[e+1088>>2]+P(J[e+1056>>2],P(d&255,a))|0;l=0;d=b;while(1){h=K[e+208|0];m=K[e+209|0];c:{if(!m)break c;f=1;n=0;a=k;if(!h){h=0;break c}while(1){p=f&255;f=0;if(p){while(1){H[d|0]=K[a|0];d=d+1|0;a=a+1|0;h=K[e+208|0];f=f+1|0;if(h>>>0>(f&255)>>> -0)continue;break}m=K[e+209|0];f=h}a=(J[e+1056>>2]-f|0)+a|0;n=n+1|0;if((n&255)>>>0>>0)continue;break}}H[d|0]=K[i|0];H[d+1|0]=K[j|0];d=d+2|0;j=j+1|0;i=i+1|0;k=h+k|0;l=l+1|0;if(l>>>0>2])continue;break}a=J[e+1112>>2]}f=1;a=a+1|0;a=(a|0)!=J[e+1068>>2]?a:0;J[e+1112>>2]=a;d=J[e+1116>>2];b=d+b|0;c=c-d|0;if(c)continue;break}break a}if((c>>>0)%M[e+1116>>2]|0){Ob(J[a+628>>2],288608,281794,0);break a}J[g+12>>2]=b;a=e+536|0;while(1){if(!IC(e,a,g+12|0))break a;b=J[e+1116>>2];J[g+12>>2]=b+J[g+12>>2]; -c=c-b|0;if(c)continue;break}f=1;break a}Ob(J[a+628>>2],288588,281794,0)}xb=g+16|0;return f|0}function lY(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+180>>2]](c,b);c=J[b>>2];a:{if((c|0)==J[b+4>>2])break a;e=I[c+2>>1];f=I[c>>1];c=J[a+248>>2];b:{if(c){Ab[J[J[c>>2]+32>>2]](c,+(f|0),+(e|0));break b}if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=e;J[a+180>>2]=e;break b}c=a+176|0;c:{if((f|0)>=J[c>>2]){c=a+184|0;if((f|0)<=J[c>>2])break c}J[c>>2]=f}if((e| -0)>2]){J[a+180>>2]=e;break b}if((e|0)<=J[a+188>>2])break b;J[a+188>>2]=e}c=J[a+172>>2];I[c+140>>1]=f;I[c+142>>1]=e;c=J[b>>2];if(J[b+4>>2]-c>>>0>=5){e=a+184|0;f=a+176|0;d=1;h=1;while(1){c=(d<<2)+c|0;d=I[c+2>>1];g=I[c>>1];c=J[a+248>>2];d:{if(c){Ab[J[J[c>>2]+36>>2]](c,+(g|0),+(d|0));break d}if(K[a+192|0]){J[a+184>>2]=g;J[a+176>>2]=g;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break d}c=f;e:{if(J[c>>2]<=(g|0)){c=e;if(J[c>>2]>=(g|0))break e}J[c>>2]=g}if((d|0)>2]){J[a+180>>2]=d;break d}if((d| -0)<=J[a+188>>2])break d;J[a+188>>2]=d}c=J[a+172>>2];I[c+140>>1]=g;I[c+142>>1]=d;h=h+1|0;d=h<<16>>16;c=J[b>>2];if(d>>>0>2]-c>>2>>>0)continue;break}}b=J[a+248>>2];if(!b)break a;Ab[J[J[b>>2]+48>>2]](b);b=J[a+248>>2];if(!b)break a;Ab[J[J[b>>2]+52>>2]](b,3);a=J[a+248>>2];Ab[J[J[a>>2]+56>>2]](a)}}function mh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-16|0;xb=e;a:{b:{if((Ab[J[a+4>>2]](J[a+28>>2],b,e+8|0,1)|0)==1){d=K[e+8|0];i=d;break b}f=-1;if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break a}c:{d:{if((Ab[J[a+ -4>>2]](J[a+28>>2],b,e+9|0,1)|0)==1){d=K[e+9|0];g=d>>>24|0;k=i|d<<8;break d}if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break c;k=d<<8|i;g=0}j=g;e:{if((Ab[J[a+4>>2]](J[a+28>>2],b,e+10|0,1)|0)==1){d=K[e+10|0];break e}if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break c}h=d;f:{if((Ab[J[a+4>>2]](J[a+28>>2],b,e+11|0,1)|0)==1){d=K[e+11|0];break f}if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break c}g=d;g:{if((Ab[J[a+4>>2]](J[a+28>>2],b,e+12|0,1)|0)==1){d=K[e+12|0];break g}if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break c}i=d;h:{if((Ab[J[a+4>> -2]](J[a+28>>2],b,e+13|0,1)|0)==1){d=K[e+13|0];break h}if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break c}f=d;i:{if((Ab[J[a+4>>2]](J[a+28>>2],b,e+14|0,1)|0)==1){d=K[e+14|0];break i}if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break c}k=k|h<<16;h=j|h>>>16;j=g>>>8|0;g=g<<24|k;j=h|j;h=g;g=f<<8;h=h|0;f=g|(i|j)|d<<16;if((Ab[J[a+4>>2]](J[a+28>>2],b,e+15|0,1)|0)==1){i=h;d=f|K[e+15|0]<<24;f=0;break a}a=Ab[J[a+24>>2]](J[a+28>>2],b)|0;i=a?0:h;d=a?0:f|d<<24;f=a?-1:0;break a}i=0;d=0;f=-1}J[c>>2]=i;J[c+4>>2]=d;xb=e+16|0;return f} -function go(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;J[h+8>>2]=a;J[h+12>>2]=a;g=xb-16|0;xb=g;J[g>>2]=J[h+8>>2];a=J[c+20>>2];f=a+((Ab[J[c+12>>2]](g)>>>0)%M[c+4>>2]<<2)|0;e=J[f>>2];a:{if(!e)break a;i=a-4|0;while(1){if(Ab[J[c+16>>2]](e,g)|0)break a;f=f-4|0;if(a>>>0>f>>>0)f=i+(J[c+4>>2]<<2)|0;e=J[f>>2];if(e)continue;break}}b:{c:{d:{a=J[f>>2];e:{if(!a){e=64;a=Ab[J[d+4>>2]](d,8)|0;if(!a)break b;J[f>>2]=a;e=J[h+8>>2];J[a+4>>2]=b;J[a>>2]=e;f:{if(M[c+8>>2]>2])break f;i=J[c+4>>2];a= -i<<1;J[c+4>>2]=a;J[c>>2]=(a>>>0)/3;e=0;if((a|0)<0){e=6;break c}b=J[c+20>>2];if(a){e=10;if(a>>>0>536870911)break c;a=i<<3;e=Ab[J[d+4>>2]](d,a)|0;if(!e)break d;Nb(e,0,a)}J[c+20>>2]=e;if(i){a=b;while(1){e=J[a>>2];if(e){J[g+8>>2]=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);j=J[c+20>>2];f=j+((Ab[J[c+12>>2]](g+8|0)>>>0)%M[c+4>>2]<<2)|0;e=J[f>>2];g:{if(!e)break g;l=j-4|0;while(1){if(Ab[J[c+16>>2]](e,g+8|0)|0)break g;f=f-4|0;if(j>>>0>f>>>0)f=(J[c+4>>2]<<2)+l|0;e=J[f>>2];if(e)continue;break}}J[f>>2]=J[a>> -2]}a=a+4|0;k=k+1|0;if((i|0)!=(k|0))continue;break}}if(!b)break f;Ab[J[d+8>>2]](d,b)}J[c+8>>2]=J[c+8>>2]+1;break e}J[a+4>>2]=b}e=0;break b}J[c+20>>2]=0;e=64;break b}J[c+20>>2]=0}xb=g+16|0;xb=h+16|0;return e}function _l(a,b){var c=0,d=0,e=0;a:{b:{c:switch(a-247|0){default:if((a|0)!=28)break b;a=J[b+8>>2];c=J[b+4>>2];d:{if(a>>>0>=c>>>0){a=c+1|0;J[b+8>>2]=a;d=169776;break d}d=J[b>>2]+a|0}e=K[d|0]<<8;d=b+16|0;e:{if(c>>>0<=a+1>>>0){a=c+1|0;J[b+8>>2]=a;c=169776;break e}c=(J[b>>2]+a|0)+1|0}e=K[c|0]|e;c=J[b+ -20>>2];f:{if(c>>>0<=512){J[b+20>>2]=c+1;c=(d+(c<<3)|0)+8|0;break f}H[d|0]=1;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480}O[c>>3]=e<<16>>16;J[b+8>>2]=a+2;return;case 0:case 1:case 2:case 3:c=b+16|0;e=a<<8;a=J[b+8>>2];d=J[b+4>>2];g:{if(a>>>0>=d>>>0){a=d+1|0;J[b+8>>2]=a;d=169776;break g}d=J[b>>2]+a|0}d=(e+K[d|0]|0)+2412&65535;break a;case 4:case 5:case 6:case 7:break c}c=b+16|0;e=(a<<16)-16449536>>>8|0;a=J[b+8>>2];d=J[b+4>>2];h:{if(a>>>0>=d>>>0){a=d+1|0;J[b+8>>2]=a;d=169776;break h}d=J[b>>2]+a| -0}d=-108-(e|K[d|0])|0;break a}if(a-32>>>0<=214){d=a-139|0;a=b+16|0;c=J[b+20>>2];i:{if(c>>>0<=512){J[b+20>>2]=c+1;a=(a+(c<<3)|0)+8|0;break i}H[a|0]=1;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480}O[a>>3]=d|0;return}J[b+20>>2]=0;J[b+8>>2]=J[b+4>>2]+1;return}e=J[b+20>>2];j:{if(e>>>0<=512){J[b+20>>2]=e+1;c=((e<<3)+c|0)+8|0;break j}H[c|0]=1;c=J[42445];J[194120]=J[42444];J[194121]=c;c=776480}O[c>>3]=d|0;J[b+8>>2]=a+1}function QG(a,b){var c=0,d=0,e=0;a:{b:{c:{d:{c=K[a|0]|K[a+1|0]<<8;switch(((c<<8|c>>> -8)&65535)-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}c=J[b+8>>2];J[b+8>>2]=c+1;b=J[b+4>>2]+P(c,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=820;J[b+8>>2]=821;J[b+4>>2]=822;J[b>>2]=a;J[b+24>>2]=0;b=b+16|0;c=K[a+2|0]|K[a+3|0]<<8;if(!c){$d(169776,b);return}$d(((c<<8|c>>>8)&65535)+a|0,b);return}c=J[b+8>>2];J[b+8>>2]=c+1;c=J[b+4>>2]+P(c,28)|0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+12>>2]=832;J[c+8>>2]=833;J[c+4>>2]=834;J[c>>2]=a;J[c+24>>2]=0;e=169776;d=K[a+2|0]|K[a+3|0]<<8;if(d)d=((d<<8|d>>> -8)&65535)+a|0;else d=169776;$d(d,c+16|0);c=0;d=K[a+4|0]|K[a+5|0]<<8;if(d)e=((d<<8|d>>>8)&65535)+a|0;e:{f:{g:{d=K[e|0]|K[e+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break f;case 0:break g;default:break e}}c=1;break e}c=K[e+2|0]|K[e+3|0]<<8;c=c?32-S((c<<8|c>>>8)&65535)|0:0}a=K[a+6|0]|K[a+7|0]<<8;a=P((a<<8|a>>>8)&65535,c);a=a>>>0>3?a:0;if(a>>>0>M[b+16>>2]){J[b+16>>2]=a;J[b+12>>2]=J[b+8>>2]-1}return}c=J[b+8>>2];J[b+8>>2]=c+1;b=J[b+4>>2]+P(c,28)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=823;J[b+8>> -2]=824;J[b+4>>2]=825;J[b>>2]=a;J[b+24>>2]=0;c=b+16|0;b=K[a+6|0]|K[a+7|0]<<8;if(b)a=((b<<8|b>>>8)&65535)+a|0;else a=169776;$d(a,c)}}function Kea(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;f=J[a+420>>2];if(J[a+236>>2]){d=J[f+68>>2];if(!d){Il(a,J[f+72>>2]);d=J[a+236>>2];J[f+72>>2]=J[f+72>>2]+1&7}J[f+68>>2]=d-1}h=J[b>>2];i=J[a+380>>2];d=J[a+292>>2];b=J[a+364>>2];g=b;e=b;a:{if((e|0)<=0)break a;b:{c:{while(1){e=I[(J[(g<<2)+i>>2]<<1)+h>>1];d:{if((e|0)>=0){if(!(e>>>J[a+372>>2]|0))break d; -break c}if(0-e>>>J[a+372>>2]|0)break c}e=(g|0)>1;g=g-1|0;if(e)continue;break}g=0;break b}e=g;while(1){c=I[(J[(e<<2)+i>>2]<<1)+h>>1];e:{if((c|0)>=0){if(!(c>>>J[a+368>>2]|0))break e;break a}if(0-c>>>J[a+368>>2]|0)break a}c=(e|0)>1;e=e-1|0;if(c)continue;break}}e=0}j=J[d+24>>2];c=J[a+360>>2];if((g|0)>=(c|0)){k=f+204|0;l=(j<<2)+f|0;while(1){d=(J[l+140>>2]+P(c,3)|0)-3|0;if((c|0)>(e|0))Qc(a,d,0);b=c;f:{while(1){g:{h:{c=I[(J[(b<<2)+i>>2]<<1)+h>>1];if((c|0)>=0){c=c>>>J[a+372>>2]|0;if(!c)break h;if((c|0)== -1)break g;Qc(a,d+2|0,c&1);break f}c=0-c>>>J[a+372>>2]|0;if(!c)break h;if((c|0)!=1){Qc(a,d+2|0,c&1);break f}Qc(a,d+1|0,1);Qc(a,k,1);break f}Qc(a,d+1|0,0);b=b+1|0;d=d+3|0;continue}break}Qc(a,d+1|0,1);Qc(a,k,0)}c=b+1|0;if((b|0)<(g|0))continue;break}b=J[a+364>>2]}if((b|0)>=(c|0))Qc(a,(J[((j<<2)+f|0)+140>>2]+P(c,3)|0)-3|0,1);return 1}function Sea(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{h=J[c>>2];if(h>>>0>=d>>>0)break a;j=J[a+396>>2];m=j+8|0;while(1){if(M[f>> -2]>=g>>>0)break a;k=J[j+52>>2];i=J[a+272>>2]-k|0;l=d-h|0;i=i>>>0>>0?i:l;Ab[J[J[a+408>>2]+4>>2]](a,(h<<2)+b|0,m,k,i);J[c>>2]=i+J[c>>2];k=i+J[j+52>>2]|0;J[j+52>>2]=k;l=J[j+48>>2];J[j+48>>2]=l-i;h=J[a+272>>2];b:{c:{if(!((i|0)!=(l|0)|(h|0)<=(k|0))){i=0;k=J[a+76>>2];if((k|0)>0){while(1){h=J[j+52>>2];l=J[a+272>>2];if((h|0)<(l|0)){k=J[(j+(i<<2)|0)+8>>2];n=J[a+28>>2];o=h-1|0;while(1){Mg(k,o,k,h,1,n);h=h+1|0;if((l|0)!=(h|0))continue;break}k=J[a+76>>2]}i=i+1|0;if((k|0)>(i|0))continue;break}h=J[a+272>>2]}J[j+ -52>>2]=h;break c}if((h|0)!=(k|0))break b}Ab[J[J[a+412>>2]+4>>2]](a,m,0,e,J[f>>2]);J[j+52>>2]=0;J[f>>2]=J[f>>2]+1}if(!(J[j+48>>2]|M[f>>2]>=g>>>0)){c=J[a+76>>2];if((c|0)>0){i=J[a+84>>2];b=0;while(1){d=(P(J[i+40>>2],J[i+12>>2])|0)/J[a+280>>2]|0;h=P(d,J[f>>2]);d=P(d,g);if((h|0)<(d|0)){j=P(J[i+36>>2],J[i+28>>2]);c=J[(b<<2)+e>>2];m=h-1|0;while(1){Mg(c,m,c,h,1,j);h=h+1|0;if((d|0)!=(h|0))continue;break}c=J[a+76>>2]}i=i+88|0;b=b+1|0;if((c|0)>(b|0))continue;break}}J[f>>2]=g;return}h=J[c>>2];if(h>>>0>>0)continue; -break}}}function Ok(a){a=a|0;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;c=J[a+532>>2];if(c){h=J[c+4>>2];f=J[c>>2];e=J[a+100>>2];b=J[c+24>>2];if(b)Ab[J[e+8>>2]](e,b);J[c+24>>2]=0;if(f>>>0>=2)Nb(c+28|0,0,(f<<2)-4|0);b=J[c+216>>2];if(b)Ab[J[e+8>>2]](e,b);J[c+216>>2]=0;b=J[c+148>>2];if(b)Ab[J[e+8>>2]](e,b);J[c+148>>2]=0;b=J[c+288>>2];if(b)Ab[J[e+8>>2]](e,b);J[c+288>>2]=0;a:{if(!f)break a;if(f>>>0>=4){n=f&-4;i=c+212|0;j=c+144|0;k=c+284|0;while(1){b=d<<2;J[b+i>>2]=0;J[b+j>>2]=0;J[b+k>>2]=0; -g=b|4;J[g+i>>2]=0;J[g+j>>2]=0;J[g+k>>2]=0;g=b|8;J[g+i>>2]=0;J[g+j>>2]=0;J[g+k>>2]=0;b=b|12;J[b+i>>2]=0;J[b+j>>2]=0;J[b+k>>2]=0;d=d+4|0;l=l+4|0;if((l|0)!=(n|0))continue;break}}b=f&3;if(!b)break a;while(1){f=c+(d<<2)|0;J[f+284>>2]=0;J[f+144>>2]=0;J[f+212>>2]=0;d=d+1|0;m=m+1|0;if((b|0)!=(m|0))continue;break}}d=J[c+136>>2];if(d)Ab[J[e+8>>2]](e,d);J[c+136>>2]=0;J[c+140>>2]=0;b:{if(!h)break b;d=0;while(1){f=c+(d<<2)|0;b=J[f+8>>2];if(b)Ab[J[e+8>>2]](e,b);J[f+8>>2]=0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!h)break b; -f=c+88|0;d=0;while(1){c=f+P(d,12)|0;b=J[c+4>>2];if(b)Ab[J[e+8>>2]](e,b);H[c|0]=0;J[c+4>>2]=0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=J[a+532>>2];if(c)Ab[J[e+8>>2]](e,c);J[a+532>>2]=0}}function vo(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;if(a&4){f=d>>31;e=(f^d)-f|0;a:{b:{c:{if((c|0)==1){if(!(a&2))break c;break b}if(a&1)break b}d:{a=P(c,7676)+b|0;if(!J[a+52>>2])break d;c=J[a+60>>2];a=e-c|0;b=a>>31;if((a^b)-b>>>0>39)break d;e=(c|0)<=48?48:c;break a}if(e>>>0<=53){e=(54-e>>> -1&127)+e|0;break a}if(e>>>0>191)break a;b=e&63;if(b>>>0<10)break a;a=e&2147483584;if(b>>>0<=21){e=a|10;break a}e=b-42>>>0<12?a|54:e;break a}e:{f:{g:{h:{i:{b=P(c,7676)+b|0;f=J[b+52>>2];if(f){l=b+56|0;q=f&1;if((f|0)!=1)break i;h=98;b=0;f=e;break h}b=e+32&2147483584;f=e;break g}r=f&-2;h=98;b=0;f=e;while(1){m=J[(P(b|1,12)+l|0)+4>>2];i=e-m|0;n=i>>31;o=J[(P(b,12)+l|0)+4>>2];g=e-o|0;j=g>>31;g=(g^j)-j|0;p=(g|0)<(h|0);i=(i^n)-n|0;g=p?g:h;j=(i|0)<(g|0);h=j?i:g;f=j?m:p?o:f;b=b+2|0;k=k+2|0;if((r|0)!=(k|0))continue; -break}}if(q){k=J[(P(b,12)+l|0)+4>>2];b=e-k|0;g=b>>31;f=((b^g)-g|0)<(h|0)?k:f}b=f+32&-64;if((e|0)<(f|0))break f}b=(b|48)>(e|0)?f:e;break e}b=(b-48|0)<(e|0)?f:e}if((c|0)==1){e=64;if((b|0)<64)break a;e=b+16&-64;break a}if(a&8){e=64;if((b|0)<64)break a;e=b+32&-64;break a}if((b|0)<=47){e=b- -64>>1;break a}if(b>>>0<=127){e=b+22&-64;break a}e=b+32&-64}d=(d|0)<0?0-e|0:e}return d}function VU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;e=xb-464|0;xb=e;f=b+8|0;g=J[f+4>>2];J[e+16>>2]= -J[f>>2];J[e+20>>2]=g;J[e+40>>2]=J[b+32>>2];f=J[b+28>>2];J[e+32>>2]=J[b+24>>2];J[e+36>>2]=f;f=J[b+20>>2];J[e+24>>2]=J[b+16>>2];J[e+28>>2]=f;f=J[b+4>>2];g=J[b>>2];J[e+16>>2]=2;J[e+8>>2]=g;J[e+12>>2]=f;a:switch(J[b+8>>2]-7|0){case 0:case 3:J[e+16>>2]=3;break;default:break a}Jh(a,e+452|0);b:{if(J[e+460>>2]!=3){h=162;break b}i=J[a>>2];f=J[e+452>>2]+1|0;J[a>>2]=f;j=J[a+8>>2];h=J[e+456>>2]-1|0;J[a+8>>2]=h;g=e+48|0;c:{if(f>>>0>=h>>>0)break c;f=0;while(1){Jh(a,e+440|0);g=(e+48|0)+P(f,12)|0;if(!J[e+448>>2])break c; -if(f>>>0<=31){h=J[e+444>>2];J[g>>2]=J[e+440>>2];J[g+4>>2]=h;J[g+8>>2]=J[e+448>>2]}f=f+1|0;if(M[a>>2]>2])continue;break}g=(e+48|0)+P(f,12)|0}J[a+8>>2]=j;J[a>>2]=i;f=g-(e+48|0)|0;if((f|0)<0){h=162;break b}f=(f>>>0)/12|0;g=J[b+24>>2];g=f>>>0>>0?f:g;d:{if(J[b+8>>2]==7)break d;b=J[b+28>>2];if(!b)break d;H[b+J[c>>2]|0]=g}e:{if(g){f=e+48|0;b=J[e+24>>2];k=K[e+28|0];while(1){J[a>>2]=J[f>>2];J[a+8>>2]=J[f+4>>2];h=hy(a,e+8|0,c,d,e);if(h)break e;b=b+k|0;J[e+24>>2]=b;f=f+12|0;h=(g|0)>1;g=g-1|0;if(h)continue; -break}}h=0}J[a+8>>2]=j;J[a>>2]=i}xb=e+464|0;return h|0}function mg(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;a:{g=K[b|0]|K[b+1|0]<<8;if(((g<<8|g>>>8)&65535)>>>0<=c>>>0)break a;e=b+3|0;b:{c:{d:{e:{f:{g:{j=K[b+2|0];g=j-1|0;switch(g|0){case 3:break d;case 2:break e;case 1:break f;case 0:break g;default:break b}}c=c+e|0;f=K[c|0];d=K[c+1|0];break c}d=e+(c<<1)|0;c=K[d|0]|K[d+1|0]<<8;f=(c<<8|c>>>8)&65535;c=K[d+2|0]|K[d+3|0]<<8;d=(c<<8|c>>>8)&65535;break c}c=e+P(c,3)|0;f=K[c+1|0]<<8|K[c|0]<< -16|K[c+2|0];d=K[c+5|0]|(K[c+4|0]<<8|K[c+3|0]<<16);break c}d=e+(c<<2)|0;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(d>>>0>>0)break a}c=K[b|0]|K[b+1|0]<<8;h=(c<<8|c>>>8)&65535;h:{i:switch(g|0){case 0:i=K[e+h|0];break h;case 1:c=e+(h<<1)|0;c=K[c|0]|K[c+1|0]<<8;i=(c<<8|c>>>8)&65535;break h;case 2:c=e+P(h,3)|0;i=K[c+1|0]<<8|K[c|0]<<16|K[c+2|0];break h;case 3:break i; -default:break h}c=e+(h<<2)|0;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(d>>>0>i>>>0)break a;J[a+8>>2]=0;J[a+4>>2]=d-f;J[a>>2]=((b+2|0)+P(h+1|0,j)|0)+f;return}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}function aha(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+480>>2];c=J[d+24>>2];a:{b:{c:{if(!J[a+88>>2]){if(b)break b;b=1385;break c}J[a+88>>2]=2;if(b)break b;b=1386}J[d+8>>2]=1387;J[d+4>>2]=b;b=1;e=J[a+132>>2];d:{if((e|0)<=0)e=58;else{if(e>>>0<257)break d;b=256; -e=59}f=J[a>>2];J[f+24>>2]=b;J[f+20>>2]=e;Ab[J[J[a>>2]>>2]](a)}if(J[a+88>>2]!=2)break a;b=P(J[a+112>>2],6)+12|0;e=J[d+32>>2];if(!e){e=Ab[J[J[a+4>>2]+4>>2]](a,1,b)|0;J[d+32>>2]=e}Oc(e,b);if(!J[d+40>>2])tE(a);J[d+36>>2]=0;break a}J[d+28>>2]=1;J[d+8>>2]=1388;J[d+4>>2]=1389}if(J[d+28>>2]){Oc(J[c>>2],4096);Oc(J[c+4>>2],4096);Oc(J[c+8>>2],4096);Oc(J[c+12>>2],4096);Oc(J[c+16>>2],4096);Oc(J[c+20>>2],4096);Oc(J[c+24>>2],4096);Oc(J[c+28>>2],4096);Oc(J[c+32>>2],4096);Oc(J[c+36>>2],4096);Oc(J[c+40>>2],4096);Oc(J[c+ -44>>2],4096);Oc(J[c+48>>2],4096);Oc(J[c+52>>2],4096);Oc(J[c+56>>2],4096);Oc(J[c+60>>2],4096);Oc(J[c+64>>2],4096);Oc(J[c+68>>2],4096);Oc(J[c+72>>2],4096);Oc(J[c+76>>2],4096);Oc(J[c+80>>2],4096);Oc(J[c+84>>2],4096);Oc(J[c+88>>2],4096);Oc(J[c+92>>2],4096);Oc(J[c+96>>2],4096);Oc(J[c+100>>2],4096);Oc(J[c+104>>2],4096);Oc(J[c+108>>2],4096);Oc(J[c+112>>2],4096);Oc(J[c+116>>2],4096);Oc(J[c+120>>2],4096);Oc(J[c+124>>2],4096);J[d+28>>2]=0}}function Iea(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;d= -J[a+420>>2];a:{b:{c:{if(!b){J[d+8>>2]=1537;if(J[a+264>>2])break c;J[d+4>>2]=1538;break a}J[d+8>>2]=1539;if(!J[a+264>>2])break b}J[d+108>>2]=b;J[d+120>>2]=a;c=J[a+360>>2];d:{if(!J[a+368>>2]){if(!c){J[d+4>>2]=1540;break d}J[d+4>>2]=1541;break d}if(!c){J[d+4>>2]=1542;break d}J[d+4>>2]=1543;if(J[d+136>>2])break d;i=d,j=Ab[J[J[a+4>>2]>>2]](a,1,1E3)|0,J[i+136>>2]=j}c=J[J[a+292>>2]+24>>2];J[d+128>>2]=0;J[d+132>>2]=0;J[d+124>>2]=c;break a}J[d+4>>2]=1544}if(J[a+288>>2]>0)while(1){h=g<<2;e=J[(h+a|0)+292>>2]; -if(!(J[a+360>>2]|J[a+368>>2])){c=J[e+20>>2];e:{if(b){if(c>>>0>=4){f=J[a>>2];J[f+24>>2]=c;J[f+20>>2]=52;Ab[J[J[a>>2]>>2]](a)}f=(c<<2)+d|0;c=J[f+76>>2];if(!c){c=Ab[J[J[a+4>>2]>>2]](a,1,1028)|0;J[f+76>>2]=c}Nb(c,0,1028);break e}jE(a,1,c,((c<<2)+d|0)+44|0)}J[(d+h|0)+20>>2]=0}f:{if(!J[a+364>>2])break f;c=J[e+24>>2];if(b){if(c>>>0>=4){e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=52;Ab[J[J[a>>2]>>2]](a)}e=(c<<2)+d|0;c=J[e+92>>2];if(!c){c=Ab[J[J[a+4>>2]>>2]](a,1,1028)|0;J[e+92>>2]=c}Nb(c,0,1028);break f}jE(a,0,c,((c<< -2)+d|0)+60|0)}g=g+1|0;if((g|0)>2])continue;break}J[d+12>>2]=0;J[d+16>>2]=0;a=J[a+236>>2];J[d+40>>2]=0;J[d+36>>2]=a}function Sba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=0,k=Q(0),l=0,m=0,n=Q(0),o=0,p=0,q=0;if((c|0)>0){j=J[a+12>>2];while(1){n=Q(0);a=J[j>>2];e=a>>>14&1023;a:{if(!e){k=Q(0);i=Q(0);break a}k=Q(0);d=Oh((+(e|0)+.5)*.010830424696249145+-8.317766166719343);i=Q(0);if(d<=0)break a;b:{c:{d:{l=a&16383;if(l>>>0<=16288){m=163;a=0;while(1){e=a+m>>1;o=l-I[(e<<3)+284182>>1]| -0;e:{if((o|0)>0){a=e;break e}if((o|0)>=0)break d;m=e}if((m-a|0)>1)continue;break}e=a;h=+(l-I[(e<<3)+284182>>1]|0)+.5;break c}f=.210526316;h=.473684211;break b}h=.5}f=h*.0035000001080334187+ +N[(e<<3)+284176>>2];h=(+(e|0)+.5)*.0035000001080334187+.016939999535679817}g=f*9;f=1/(f*6+h*-16+12);g=g*f;f=h*4*f;k=Q(d*(g/f));n=Q(d*((1-g-f)/f));i=Q(d)}d=+k;f=+i;p=d*.061+f*-.224;h=+n;q=h*1.163;g=h*-.414+(d*2.69+f*-1.276);if(g<=0)a=0;else{e=g>=1;g=Y(g)*256;f:{if(R(g)<2147483648){a=~~g;break f}a=-2147483648}a= -e?-1:a}H[b|0]=a;d=h*.044+(d*-1.022+f*1.978);if(d<=0)a=0;else{e=d>=1;d=Y(d)*256;g:{if(R(d)<2147483648){a=~~d;break g}a=-2147483648}a=e?-1:a}H[b+1|0]=a;j=j+4|0;d=q+p;if(d<=0)a=0;else{e=d>=1;d=Y(d)*256;h:{if(R(d)<2147483648){a=~~d;break h}a=-2147483648}a=e?-1:a}H[b+2|0]=a;b=b+3|0;a=(c|0)>1;c=c-1|0;if(a)continue;break}}}function uI(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if((a|0)==169776)break a;b:switch(K[a|0]){case 0:return K[(a+b|0)+1|0];case 3:c:{if(!(K[a+1|0]|K[a+2|0]<<8)){i=169776;e=0;break c}i= -a+3|0;e=K[a+1|0]|K[a+2|0]<<8}g=(e<<8|(e&65280)>>>8)&65535;d:{if(g>>>0>=2){d=g-2|0;while(1){h=d+f>>>1|0;c=P(h,3)+i|0;j=K[c|0]|K[c+1|0]<<8;e:{if(((j<<8|j>>>8)&65535)>>>0<=b>>>0){f=K[c+3|0]|K[c+4|0]<<8;if(((f<<8|f>>>8)&65535)>>>0>b>>>0)break d;f=h+1|0;break e}d=h-1|0}if((d|0)>=(f|0))continue;break}}if(!(e&65535))return K[169778];c=P(g,3)+a|0}return K[c+2|0];case 4:break b;default:break a}f:{if(!(K[a+1|0]|K[a+2|0]<<8|(K[a+3|0]<<16|K[a+4|0]<<24))){i=169776;e=0;break f}i=a+5|0;e=K[a+1|0]|K[a+2|0]<<8|(K[a+ -3|0]<<16|K[a+4|0]<<24)}c=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);j=c-1|0;g:{if((j|0)>0){f=c-2|0;while(1){h=d+f>>>1|0;c=P(h,6)+i|0;g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h:{if((g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))>>>0<=b>>>0){d=K[c+6|0]|K[c+7|0]<<8|(K[c+8|0]<<16|K[c+9|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>b>>>0)break g;d=h+1|0;break h}f=h-1|0}if((d|0)<=(f|0))continue;break}}if(!e){c=169776;break g}c=(P(j,6)+a|0)+5|0}a=K[c+4|0]|K[c+5|0]<<8;d=(a<<8|a>>>8)&65535}return d} -function YE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(J[b+60>>2]){c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;c=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=c;c=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=c;c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c;Mb(a+52|0,b+52|0,876);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+928>>2]=J[b+928>>2];J[a+932>>2]=J[b+932>>2];J[a+936>>2]=J[b+936>>2];c=J[b+940>>2];J[a+60>>2]=b;J[a+940>>2]=c;return}Mb(a+ -52|0,b+52|0,876);f=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=f;f=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=f;f=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=f;f=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=f;f=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=f;Af(a,J[b+16>>2],J[b+20>>2],L[b+26>>1],J[b+68>>2]);a:{b:{if(!c)break b;c=J[a+4>>2];if(!c)break b;f=J[b+4>>2];if(!f)break b;Mb(c,f,(J[a+32>>2]+J[a+12>>2]|0)+(J[a+44>>2]<<2)|0);break a}c=J[b+4>>2];co(a,c?J[b+44>>2]?c+40|0:0:0,256)}c=P(J[a+20>>2],J[a+ -16>>2]);if(!(!d|!J[b+928>>2])){d=J[a+928>>2];if(d)Kb(d);d=Qb(c);J[a+928>>2]=d;Mb(d,J[b+928>>2],c)}if(!(!e|!J[b+932>>2])){d=J[a+932>>2];if(d)Kb(d);d=a;a=Qb(c);J[d+932>>2]=a;Mb(a,J[b+932>>2],c)}}function yv(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a+736>>2];if(d){f=J[J[d+12>>2]>>2];c=J[a+100>>2];b=J[d+4>>2];if(b)Ab[J[c+8>>2]](c,b);J[d+4>>2]=0;b=J[d+8>>2];if(b)Ab[J[c+8>>2]](c,b);J[d+8>>2]=0;b=J[d+20>>2];if(b)Ab[J[c+8>>2]](c,b);J[d+20>>2]=0;b=J[d+12>>2];if(b)Ab[J[c+8>>2]](c,b);J[d+12>>2]=0;b=J[d+28>> -2];if(b){if(f)while(1){g=e<<3;b=J[(g+b|0)+4>>2];if(b)Ab[J[c+8>>2]](c,b);b=J[d+28>>2];J[(g+b|0)+4>>2]=0;e=e+1|0;if((e|0)!=(f|0))continue;break}if(b)Ab[J[c+8>>2]](c,b);J[d+28>>2]=0}b=J[d+40>>2];if(b){np(J[a+100>>2],b);b=J[J[d+40>>2]+28>>2];if(b)Ab[J[c+8>>2]](c,b);b=J[d+40>>2];J[b+28>>2]=0;b=J[b+24>>2];if(b)Ab[J[c+8>>2]](c,b);b=J[d+40>>2];J[b+24>>2]=0;if(b)Ab[J[c+8>>2]](c,b);J[d+40>>2]=0}b=J[d+52>>2];if(b){np(J[a+100>>2],b);b=J[J[d+52>>2]+28>>2];if(b)Ab[J[c+8>>2]](c,b);b=J[d+52>>2];J[b+28>>2]=0;b=J[b+ -24>>2];if(b)Ab[J[c+8>>2]](c,b);b=J[d+52>>2];J[b+24>>2]=0;if(b)Ab[J[c+8>>2]](c,b);J[d+52>>2]=0}b=J[d+56>>2];if(b){np(J[a+100>>2],b+4|0);a=J[J[d+56>>2]+24>>2];if(a)Ab[J[c+8>>2]](c,a);a=J[d+56>>2];J[a+24>>2]=0;if(a)Ab[J[c+8>>2]](c,a);J[d+56>>2]=0}a=J[d+64>>2];if(a)Ab[J[c+8>>2]](c,a);J[d+64>>2]=0;a=J[d+72>>2];if(a)Ab[J[c+8>>2]](c,a);J[d+72>>2]=0;if(d)Ab[J[c+8>>2]](c,d)}}function vs(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{c=J[a+108>>2];if(c){b=J[a+112>>2];if(b)break a}b=K[226615]|K[226616]<<8|(K[226617]<< -16|K[226618]<<24);c=K[226611]|K[226612]<<8|(K[226613]<<16|K[226614]<<24);H[a+300|0]=c;H[a+301|0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304|0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[226607]|K[226608]<<8|(K[226609]<<16|K[226610]<<24);c=K[226603]|K[226604]<<8|(K[226605]<<16|K[226606]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;return}b=P(J[a+288>>2],P(b,c));J[a+120>>2]=b;d=J[a+144>> -2];b:{c:{if(!d){b=Qb(b);J[a+268>>2]=4;J[a+144>>2]=b;J[J[a+272>>2]+68>>2]=2;b=a+272|0;break c}b=ic(d,b);J[a+268>>2]=4;J[a+144>>2]=b;c=J[a+108>>2];J[J[a+272>>2]+68>>2]=2;if(!c)break b;b=a+272|0}d=1;while(1){d:{if(!d){d=0;break d}e=J[a+144>>2];if(!e){d=0;break d}d=1;f=J[a+112>>2];if(!f)break d;g=J[a+288>>2];c=e+P(P(g,h),f)|0;i=0;while(1){e=J[b>>2];if(!((H[J[e+120>>2]+c|0]>=0?J[e+116>>2]:0)|!J[e+68>>2])){H[J[e+72>>2]+c|0]=255;g=J[a+288>>2];f=J[a+112>>2]}c=c+g|0;i=i+1|0;if(i>>>0>>0)continue;break}c= -J[a+108>>2]}h=h+1|0;if(h>>>0>>0)continue;break}}}function Km(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0;m=xb-16|0;xb=m;J[m+12>>2]=a;a:{b:{if((a|0)==(f|0)){if(!K[b|0])break b;a=0;H[b|0]=0;b=J[e>>2];J[e>>2]=b+1;H[b|0]=46;if(K[h+11|0]>>>7|0)b=J[h+4>>2];else b=K[h+11|0]&127;if(!b)break a;b=J[j>>2];if((b-i|0)>159)break a;c=J[k>>2];J[j>>2]=b+4;J[b>>2]=c;break a}if(K[h+11|0]>>>7|0)f=J[h+4>>2];else f=K[h+11|0]&127;if(!(!f|(a|0)!=(g|0))){if(!K[b| -0])break b;a=0;b=J[j>>2];if((b-i|0)>159)break a;a=J[k>>2];J[j>>2]=b+4;J[b>>2]=a;a=0;J[k>>2]=0;break a}a=-1;l=Vp(l,l+128|0,m+12|0)-l|0;g=l>>2;if((g|0)>31)break a;f=H[g+763968|0];c:{d:{a=l&-5;if((a|0)!=88){if((a|0)!=96)break d;b=J[e>>2];if((b|0)!=(d|0)){a=-1;d=H[b-1|0];c=H[c|0];if(((d-97>>>0<26?d&95:d)|0)!=((c-97>>>0<26?c&95:c)|0))break a}J[e>>2]=b+1;H[b|0]=f;a=0;break a}H[c|0]=80;break c}a=f-97>>>0<26?f&95:f;if((a|0)!=H[c|0])break c;H[c|0]=a-65>>>0<26?a|32:a;if(!K[b|0])break c;H[b|0]=0;if(K[h+11|0]>>> -7|0)a=J[h+4>>2];else a=K[h+11|0]&127;if(!a)break c;a=J[j>>2];if((a-i|0)>159)break c;b=J[k>>2];J[j>>2]=a+4;J[a>>2]=b}a=J[e>>2];J[e>>2]=a+1;H[a|0]=f;a=0;if((g|0)>21)break a;J[k>>2]=J[k>>2]+1;break a}a=-1}xb=m+16|0;return a|0}function Ts(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{if(J[b+24>>2])break a;b:{g=a+6|0;i=J[b+4>>2];h=g-i|0;if(!((h|0)>=0&(h|0)<=(J[b+8>>2]-i|0)))break b;f=g;if((i|0)!=(f|0)){Nb(i,0,h);f=J[b+4>>2]}J[b+4>>2]=f+h;h=0;c:{if(!f)break c;f=d<<8|(d&65280)>>>8;H[a+ -2|0]=f;H[a+3|0]=f>>>8;c=c<<8|(c&65280)>>>8;H[a|0]=c;H[a+1|0]=c>>>8;if(J[b+24>>2])break c;f=J[b+4>>2];c=g-f|0;if(!((c|0)>=0&(c|0)<=(J[b+8>>2]-f|0)))break b;if((f|0)!=(g|0)){Nb(f,0,c);g=J[b+4>>2]}J[b+4>>2]=c+g;if(!g)break c;f=a+4|0;c=e<<8|(e&65280)>>>8;H[f|0]=c;H[f+1|0]=c>>>8;c=J[b+24>>2];if(e>>>0>=65536){J[b+24>>2]=c|16;break a}if(c)break c;g=(f+(e<<1&131070)|0)+2|0;e=J[b+4>>2];c=g-e|0;if(!((c|0)>=0&(c|0)<=(J[b+8>>2]-e|0)))break b;if((e|0)!=(g|0)){Nb(e,0,c);g=J[b+4>>2]}e=c+g|0;J[b+4>>2]=e;if(!g)break a; -h=1;if(!(K[a+3|0]&16))break c;if(J[b+24>>2])break a;h=0;c=K[a+4|0]|K[a+5|0]<<8;c=(f+(((c<<8|c>>>8)&65535)<<1)|0)+4|0;if((c-a|0)<0)break c;a=c-e|0;if(!((a|0)>=0&(a|0)<=(J[b+8>>2]-e|0)))break b;if((c|0)!=(e|0)){Nb(e,0,a);e=J[b+4>>2]}J[b+4>>2]=a+e;if(!e)break a;h=1;a=K[f|0]|K[f+1|0]<<8;b=f+(((a<<8|a>>>8)&65535)<<1)|0;a=d>>>8&16776960|d>>>24;H[b+2|0]=a;H[b+3|0]=a>>>8}return h|0}J[b+24>>2]=4}return 0}function qD(a,b,c,d,e,f,g,h,i){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;var j=0,k=0;if(!(!a| -!b)){H[b+28|0]=g;H[b+27|0]=i;H[b+26|0]=h;H[b+25|0]=f;H[b+24|0]=e;J[b+4>>2]=d;J[b>>2]=c;j=e&255;f=f&255;k=g&255;h=h&255;g=i&255;a:{b:{if(!c){Wb(a,255651);break b}if((c|0)<0){Wb(a,255744);break b}if(c>>>0>=536870799){Wb(a,255910);break b}e=0;if(M[a+700>>2]>=c>>>0)break a;Wb(a,256075)}e=1}c:{d:{if(!d){Wb(a,256177);break d}if((d|0)<0){Wb(a,256373);break d}if(M[a+704>>2]>=d>>>0)break c;Wb(a,256495)}e=1}if(!(1<>>0<=16:0)){Wb(a,256637);e=1}d=f&-5;if(!((d|0)!=1&f>>>0<=6)){Wb(a,256764);e=1}e:{if(!((f| -0)==3&j>>>0>=9))if(!((f|0)==4|(d|0)==2)|j>>>0>7)break e;Wb(a,256890);e=1}if(k>>>0>=2){Wb(a,257065);e=1}if(h){Wb(a,257183);e=1}if(!(!(K[a+201|0]&16)|!J[a+660>>2]))Wb(a,257229);f:{g:{h:{if(!g)break h;if(!(!(J[a+660>>2]&4)|(g|0)!=64|(d|0)!=2))if(!(J[a+200>>2]&4096))break h;Wb(a,257391);if(!(K[a+201|0]&16))break g;Wb(a,257465);break g}if(!e)break f}gc(a,257582);B()}d=K[b+25|0];i:{if((d|0)==3)a=1;else{e=d&2;a=e|1;H[b+29|0]=a;if(!(d&4))break i;a=e+2|0}H[b+29|0]=a}a=P(K[b+24|0],a);H[b+30|0]=a;a=a&255;j:{if(a>>> -0>=8){a=P(a>>>3|0,c);break j}a=P(a,c)+7>>>3|0}J[b+12>>2]=a}}function rR(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;k=xb-16|0;xb=k;i=c;while(1){a:{if((d|0)==(i|0)){i=d;break a}if(!J[i>>2])break a;i=i+4|0;continue}break}J[h>>2]=f;J[e>>2]=c;b:{while(1){c:{d:{if(!((c|0)==(d|0)|(f|0)==(g|0))){j=J[b+4>>2];J[k+8>>2]=J[b>>2];J[k+12>>2]=j;m=1;l=xb-16|0;xb=l;J[l+12>>2]=J[a+8>>2];n=Tf(l+8|0,l+12|0);J[195395]=0;j=ka(3769,f|0,e|0,i-c>>2,g-f|0,b|0)|0;o=J[195395]; -J[195395]=0;e:{if((o|0)!=1){re(n);xb=l+16|0;break e}a=Z()|0;re(n);ba(a|0);B()}f:{g:{h:switch(j+1|0){case 0:J[h>>2]=f;while(1){if(J[e>>2]==(c|0))break g;b=Rp(f,J[c>>2],k+8|0,J[a+8>>2]);if((b|0)==-1)break g;f=b+J[h>>2]|0;J[h>>2]=f;c=c+4|0;continue}case 1:break b;default:break h}f=j+J[h>>2]|0;J[h>>2]=f;if((f|0)==(g|0))break f;if((d|0)==(i|0)){c=J[e>>2];i=d;continue}c=k+4|0;i=Rp(c,0,b,J[a+8>>2]);if((i|0)==-1)break c;if(g-J[h>>2]>>>0>>0)break b;while(1){if(i){f=K[c|0];j=J[h>>2];J[h>>2]=j+1;H[j|0]=f; -i=i-1|0;c=c+1|0;continue}break}c=J[e>>2]+4|0;J[e>>2]=c;i=c;while(1){if((d|0)==(i|0)){i=d;break d}if(!J[i>>2])break d;i=i+4|0;continue}}J[e>>2]=c;break c}c=J[e>>2]}m=(c|0)!=(d|0);break b}f=J[h>>2];continue}break}m=2}xb=k+16|0;return m|0}function eH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=a+2|0;a:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<2)break a;c=K[d|0]|K[d+1|0]<<8;b:{if(!c)break b;if(Ld(b,((c<<8|c>>>8)&65535)+a|0))break b;c=J[b+32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;if(!K[b+28|0])break a; -H[d|0]=0;H[d+1|0]=0}e=J[b+12>>2];d=a+4|0;c=J[b+4>>2];if(e>>>0>>0)break a;h=J[b+8>>2];if(h-d>>>0<2)break a;f=e;e=a+6|0;if(f>>>0>>0)break a;c=K[a+4|0]|K[a+5|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>h-e>>>0)break a;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break a;g=1;d=K[d|0]|K[d+1|0]<<8;if(!d)break a;d=(d<<8|d>>>8)&65535;h=d>>>0<=1?1:d;e=0;while(1){d=((e<<1)+a|0)+6|0;if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-d>>>0<2)return 0;c=K[d|0]|K[d+1|0]<<8;c:{if(!c)break c;f=J[b+12>>2];c= -((c<<8|c>>>8)&65535)+a|0;g=J[b+4>>2];d:{if(f>>>0>>0)break d;i=J[b+8>>2];if(i-c>>>0<2)break d;j=f;f=c+2|0;if(j>>>0>>0)break d;c=K[c|0]|K[c+1|0]<<8;c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>i-f>>>0)break d;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)>0)break c}c=J[b+32>>2];if(c>>>0>31)return 0;J[b+32>>2]=c+1;if(!K[b+28|0])return 0;H[d|0]=0;H[d+1|0]=0}g=1;e=e+1|0;if((h|0)!=(e|0))continue;break}}return g}function UD(a,b){var c=0,d=0;a:{b:switch(K[a+8|0]){case 0:c=J[a+4>>2];if(!c)break a;if(c>>>0>=4){d=c& --4;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+1|0]=K[b+1|0]^-1;H[b+2|0]=K[b+2|0]^-1;H[b+3|0]=K[b+3|0]^-1;b=b+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1;b=b+1|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 4:break b;default:break a}c:switch(K[a+9|0]-8|0){case 0:a=J[a+4>>2];if(!a)break a;d=(a-1>>>1|0)+1|0;c=d&3;if(a>>>0>=7){d=d&-4;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+2|0]=K[b+2|0]^-1;H[b+4|0]=K[b+4|0]^-1;H[b+6|0]=K[b+6|0]^-1;b=b+8|0;a=a+4|0;if((d|0)!=(a| -0))continue;break}}if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1;b=b+2|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 8:break c;default:break a}a=J[a+4>>2];if(!a)break a;d=(a-1>>>2|0)+1|0;c=d&3;if(a>>>0>=13){d=d&2147483644;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+1|0]=K[b+1|0]^-1;H[b+4|0]=K[b+4|0]^-1;H[b+5|0]=K[b+5|0]^-1;H[b+8|0]=K[b+8|0]^-1;H[b+9|0]=K[b+9|0]^-1;H[b+12|0]=K[b+12|0]^-1;H[b+13|0]=K[b+13|0]^-1;b=b+16|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1; -H[b+1|0]=K[b+1|0]^-1;b=b+4|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}}function Mm(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0;m=xb-16|0;xb=m;H[m+15|0]=a;a:{b:{if((a|0)==(f|0)){if(!K[b|0])break b;a=0;H[b|0]=0;b=J[e>>2];J[e>>2]=b+1;H[b|0]=46;if(K[h+11|0]>>>7|0)b=J[h+4>>2];else b=K[h+11|0]&127;if(!b)break a;b=J[j>>2];if((b-i|0)>159)break a;c=J[k>>2];J[j>>2]=b+4;J[b>>2]=c;break a}if(K[h+11|0]>>>7|0)f=J[h+4>>2];else f=K[h+11|0]&127;if(!(!f|(a| -0)!=(g|0))){if(!K[b|0])break b;a=0;b=J[j>>2];if((b-i|0)>159)break a;a=J[k>>2];J[j>>2]=b+4;J[b>>2]=a;a=0;J[k>>2]=0;break a}a=-1;g=Yp(l,l+32|0,m+15|0)-l|0;if((g|0)>31)break a;f=H[g+763968|0];c:{d:switch((g&-2)-22|0){case 2:b=J[e>>2];if((b|0)!=(d|0)){d=H[b-1|0];c=H[c|0];if(((d-97>>>0<26?d&95:d)|0)!=((c-97>>>0<26?c&95:c)|0))break a}J[e>>2]=b+1;H[b|0]=f;a=0;break a;case 0:H[c|0]=80;break c;default:break d}a=f-97>>>0<26?f&95:f;if((a|0)!=H[c|0])break c;H[c|0]=a-65>>>0<26?a|32:a;if(!K[b|0])break c;H[b|0]= -0;if(K[h+11|0]>>>7|0)a=J[h+4>>2];else a=K[h+11|0]&127;if(!a)break c;a=J[j>>2];if((a-i|0)>159)break c;b=J[k>>2];J[j>>2]=a+4;J[a>>2]=b}a=J[e>>2];J[e>>2]=a+1;H[a|0]=f;a=0;if((g|0)>21)break a;J[k>>2]=J[k>>2]+1;break a}a=-1}xb=m+16|0;return a|0}function IP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;if(cf(a,J[b+8>>2],e)){if(!(J[b+28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{b:{if(cf(a,J[b>>2],e)){if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!=1)break a;J[b+32>>2]=1;return}J[b+ -32>>2]=d;if(J[b+44>>2]==4)break b;f=a+16|0;g=f+(J[a+12>>2]<<3)|0;d=0;while(1){c:{d:{e:{f:{if(f>>>0>=g>>>0)break f;I[b+52>>1]=0;Bp(f,b,c,c,1,e);if(K[b+54|0])break f;if(!K[b+53|0])break c;if(K[b+52|0]){if(J[b+24>>2]==1)break d;d=1;h=1;if(!(K[a+8|0]&2))break d;break c}d=1;if(H[a+8|0]&1)break c;a=3;break e}a=d?3:4}J[b+44>>2]=a;if(h)break a;break b}J[b+44>>2]=3;break a}f=f+8|0;continue}}g=J[a+12>>2];h=a+16|0;Am(h,b,c,d,e);f=a+24|0;g=h+(g<<3)|0;if(f>>>0>=g>>>0)break a;a=J[a+8>>2];if(!(!(a&2)&J[b+36>>2]!= -1)){while(1){if(K[b+54|0])break a;Am(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0)continue;break}break a}if(!(a&1))while(1){if(K[b+54|0]|J[b+36>>2]==1)break a;Am(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0)continue;break a}while(1){if(K[b+54|0]|J[b+36>>2]==1&J[b+24>>2]==1)break a;Am(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0)continue;break}break a}J[b+20>>2]=c;J[b+40>>2]=J[b+40>>2]+1;if(J[b+36>>2]!=1|J[b+24>>2]!=2)break a;H[b+54|0]=1}}function ID(a,b,c){var d=0,e=0,f=0;d=xb-272|0;xb=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Wb(a,259206); -mc(a,c);break a}if(e&2)Wb(a,259291);if(!(!b|!(K[b+9|0]&8))){Wb(a,259315);mc(a,c);break a}if((c|0)!=1){Wb(a,259384);mc(a,c);break a}c=d+271|0;Gd(a,c,1);Fc(a,c,1);if(mc(a,0))break a;e=K[d+271|0];if(e>>>0>=4){Wb(a,259412);break a}b:{if(!b)break b;c=J[b+8>>2];c:{if(!(c&1))break c;f=J[b+40>>2];if(f-46001>>>0>4294966294)break c;yf(d,1,5,f);$i(a,d,256663);c=J[b+8>>2]}if(!(c&4))break b;d:{if(J[b+128>>2]-32271>>>0<4294965295|J[b+132>>2]-33901>>>0<4294965295|(J[b+136>>2]-65001>>>0<4294965295|J[b+140>>2]-34001>>> -0<4294965295))break d;if(J[b+144>>2]-31001>>>0<4294965295|J[b+148>>2]-61001>>>0<4294965295|J[b+152>>2]-16001>>>0<4294965295)break d;if(J[b+156>>2]-7001>>>0>4294965294)break b}Wb(a,259446)}H[a+652|0]=1;if(!K[a+654|0]){H[a+654|0]=1;J[a+656>>2]=1535777592}e:{if(!a|!b)break e;H[b+44|0]=e;J[b+40>>2]=45455;J[b+8>>2]=J[b+8>>2]|2049;if(!Ir(a,31270,32900,64E3,33E3,3E4,6E4,15E3,6E3))break e;J[b+152>>2]=15E3;J[b+156>>2]=6E3;J[b+144>>2]=3E4;J[b+148>>2]=6E4;J[b+136>>2]=64E3;J[b+140>>2]=33E3;J[b+128>>2]=31270; -J[b+132>>2]=32900;J[b+8>>2]=J[b+8>>2]|4}}xb=d+272|0;return}gc(a,259124);B()}function bs(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return 35;d=J[a+96>>2];if(!d)return 6;h=J[d+8>>2];a:{b:{i=J[d+12>>2];c=J[i+44>>2];c:{if((c|0)<=0){g=6;f=h;if(!c)break c;break b}e=Ab[J[h+4>>2]](h,c)|0;if(!e){g=64;break b}Nb(e,0,c);d=J[a+96>>2];f=J[d+8>>2];i=J[d+12>>2]}J[e+4>>2]=a;J[e>>2]=J[d+4>>2];g=64;d:{c=Ab[J[f+4>>2]](f,44)|0;e:{if(!c)break e;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]= -0;H[c+7|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;J[e+156>>2]=c;if(!(K[J[d>>2]+1|0]&2)){d=Ab[J[f+4>>2]](f,96)| -0;if(!d)break e;Nb(d+4|0,0,92);J[d>>2]=f;J[c>>2]=d}f=J[i+64>>2];if(!f)break d;g=Ab[f|0](e)|0;if(!g)break d}Nl(e);Ab[J[h+8>>2]](h,e);return g}J[e+8>>2]=J[a+84>>2];J[a+84>>2]=e;g=0;if(!b)break a;J[b>>2]=e;break a}if(!b)break a;J[b>>2]=0;return g}return g}function sE(a,b){var c=0,d=0,e=0,f=0,g=0;if(!a)return 35;c=6;a:{if(!b)break a;if(!J[a+96>>2])return 34;J[b>>2]=0;e=J[a+100>>2];g=J[J[a+96>>2]+12>>2];d=J[g+40>>2];b:{if((d|0)<=0){if(!d)break b;break a}f=Ab[J[e+4>>2]](e,d)|0;if(!f)return 64;Nb(f,0,d)}c:{d:{d= -Ab[J[e+4>>2]](e,12)|0;if(d){H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;H[d+4|0]=0;H[d+5|0]=0;H[d+6|0]=0;H[d+7|0]=0;H[d+8|0]=0;H[d+9|0]=0;H[d+10|0]=0;H[d+11|0]=0;J[f>>2]=a;c=Ab[J[e+4>>2]](e,36)|0;if(!c){c=64;break d}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]= -0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;J[f+40>>2]=c;c=J[g+56>>2];if(c){c=Ab[c|0](f)|0;if(c)break d}J[b>>2]=f;J[d+8>>2]=f;b=J[a+112>>2];J[d>>2]=b;J[d+4>>2]=0;J[(b?b+4|0:a+108|0)>>2]=d;J[a+112>>2]=d;return 0}c=64;if(!f)break a;break c}Ab[J[e+8>>2]](e,d)}a=J[f+40>>2];if(a)Ab[J[e+8>>2]](e,a);J[f+40>>2]=0;Ab[J[e+8>>2]](e,f)}return c}function JC(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{b:{b=J[a+584>>2];if(!K[b+303|0])break b; -c=L[b+1148>>1];if(!c){if(!Jd(b))break a;c=L[b+1148>>1]}d=J[b+1152>>2];f=K[d|0];c=c-1|0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;if(!(c&65535)){if(!Jd(b))break a;d=J[b+1152>>2];c=L[b+1148>>1]}g=K[d|0];c=c-1|0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;e=K[b+194|0];if(((e<<1)+6|0)!=(f<<8|g))break b;if(!(c&65535)){if(!Jd(b))break a;e=K[b+194|0];d=J[b+1152>>2];c=L[b+1148>>1]}f=K[d|0];c=c-1|0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;if((e|0)==(f|0)){if(e){a=0;while(1){c=L[b+1148>>1];if(!c){if(!Jd(b))break a;c=L[b+ -1148>>1]}d=J[b+1152>>2];e=K[d|0];f=c-1|0;I[b+1148>>1]=f;J[b+1152>>2]=d+1;c=K[b+193|0]+a|0;H[(c+b|0)+325|0]=e;if(!(f&65535)){if(!Jd(b))break a;c=K[b+193|0]+a|0}d=J[b+1152>>2];e=K[d|0];J[b+1152>>2]=d+1;I[b+1148>>1]=L[b+1148>>1]-1;H[(b+c|0)+328|0]=e;a=a+1|0;if(a>>>0>2];c=L[b+1148>>1]}e=c;a=c&65535;c=a>>>0>=3?3:a;I[b+1148>>1]=e-c;J[b+1152>>2]=c+d;if(a>>>0<=2){H[b+1140|0]=0;a=J[b+1144>>2];c=c^3;c=(a>>>0>>0?a:c)&65535;J[b+1144>>2]=a-c;J[b+1136>>2]=c+J[b+1136>>2]}return 1}Ob(J[a+ -628>>2],288272,275118,0);return 0}Ob(J[a+628>>2],288272,275118,0)}return 0}function q9(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+4>>2]=1;J[a>>2]=238088;J[a>>2]=388524;J[195395]=0;d=_(1078,272)|0;c=J[195395];J[195395]=0;a:{b:{c:{d:{e:{if((c|0)!=1){J[195395]=0;c=_(1796,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1){b=Z()|0;Kb(d);break a}J[a+16>>2]=c;J[195395]=0;d=_(1078,256)|0;e=J[195395];J[195395]=0;if((e|0)==1)break e;J[195395]=0;c=_(1797,d|0)|0;e=J[195395];J[195395]=0;if((e|0)==1){b=Z()|0;Kb(d);break c}J[a+ -12>>2]=0;J[a+20>>2]=c;J[a+8>>2]=b;d=0;if(b){c=J[J[b>>2]+52>>2];J[195395]=0;c=_(c|0,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;J[a+12>>2]=c;J[195395]=0;c=J[195395];J[195395]=0;if((c|0)==1)break d;c=J[J[b>>2]+24>>2];J[195395]=0;b=_(c|0,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break d;c=J[J[0]+24>>2];J[195395]=0;$(c|0,0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break d;b=J[a+12>>2];c=J[J[b>>2]+68>>2];J[195395]=0;$(c|0,b|0,0);b=J[195395];J[195395]=0;if((b|0)==1)break d;d=J[a+12>>2];c=J[a+20>> -2]}J[J[a+16>>2]+24>>2]=d;J[(J[J[c>>2]-12>>2]+c|0)+24>>2]=d;J[a+24>>2]=0;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;c=J[a+20>>2];if(!c)break c;Ab[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0}c=J[a+16>>2];if(!c)break a}Ab[J[J[c>>2]+4>>2]](c)}ba(b|0);B()}function SN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(M[b+160>>2]>>0)Bc(b,8);g=K[a+15|0]|(K[a+13|0]<<16|K[a+12|0]<<24|K[a+14|0]<<8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!(c>>>0<16| -c>>>0>J[b+160>>2]-a>>>0))if((c-16>>>0)/12>>>0>=g>>>0)break a;Bc(b,8)}b:{if(!g)break b;f=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);if(c>>>0<(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)Bc(b,8);h=1;if(!(J[b+164>>2]<=0|M[b+172>>2]>(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0))Bc(b,16);if((g|0)==1)break b;a=a+28|0;while(1){f=c;d=K[a+8|0]| -K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(c>>>0>>0)Bc(b,8);if(f>>>0>=e>>>0)Bc(b,8);if(!(J[b+164>>2]<=0|M[b+172>>2]>(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0))Bc(b,16);a=a+12|0;h=h+1|0;if((h|0)!=(g|0))continue;break}}return 0}function u9(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;a:{d=J[J[a+584>> -2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a;f=a-d|0;c=((f<<2)+b|0)-4|0;if((d|0)<5){a=d<<2;while(1){b:switch(d|0){default:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 3:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 2:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 1:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;break;case 0:break b}f=f-d|0;if((f|0)>0)continue;break}break a}i=d-4|0;h=d&3;j=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g; -default:break h}b=0;a=i;if(h)while(1){e=(d<<2)+c|0;J[e>>2]=J[e>>2]-J[c>>2];a=a-1|0;c=c-4|0;b=b+1|0;if((h|0)!=(b|0))continue;break}if(!j)break g;while(1){b=d<<2;e=b+c|0;J[e>>2]=J[e>>2]-J[c>>2];e=c-4|0;g=e+b|0;J[g>>2]=J[g>>2]-J[e>>2];e=c-8|0;g=e+b|0;J[g>>2]=J[g>>2]-J[e>>2];e=b;b=c-12|0;e=e+b|0;J[e>>2]=J[e>>2]-J[b>>2];c=c-16|0;b=(a|0)>4;a=a-4|0;if(b)continue;break}}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}a= -(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}f=f-d|0;if((f|0)>0)continue;break}}}function eO(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;d=a+8208|0;if(d>>>0>M[b+160>>2])Bc(b,8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(!(c>>>0<=J[b+160>>2]-a>>>0&c>>>0>8207))Bc(b,8);c=K[a+8204|0]|K[a+8205|0]<<8|(K[a+8206|0]<<16|K[a+8207|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{b:{if(g>>>0>(J[b+160>>2]-d>>>0)/12>>>0){Bc(b,8);break b}if(!g)break a}h= -a+12|0;c=0;while(1){e=c;f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);j=K[d+1|0]<<16|K[d|0]<<24;a=j|(K[d+3|0]|K[d+2|0]<<8);k=K[d+5|0]<<16|K[d+4|0]<<24;c=k|(K[d+7|0]|K[d+6|0]<<8);if(a>>>0>c>>>0)Bc(b,8);if(!(!i|a>>>0>e>>>0))Bc(b,8);c:{if(J[b+164>>2]<=0)break c;l=J[b+172>>2];e=c-a|0;d:{if(l>>>0>=e>>>0)if(l-e>>>0>(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0)break d;Bc(b,16)}e=e+1|0;if(j){if(!e)break c;while(1){if(!(K[(a>>>19|0)+h|0]<<(a>>>16&7)&128))Bc(b,8);if(!(K[(a>>>3&8191)+h|0]<<(a&7)&128))Bc(b, -8);a=a+1|0;e=e-1|0;if(e)continue;break}break c}if(k)Bc(b,8);if(!e)break c;while(1){if(K[(a>>>3&8191)+h|0]<<(a&7)&128)Bc(b,8);a=a+1|0;e=e-1|0;if(e)continue;break}}d=d+12|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}return 0}function rq(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;l=xb-16|0;xb=l;a:{b:{c:{if((c|0)<=36){f=K[a|0];if(f)break c;g=a;break b}J[194954]=28;d=0;e=0;break a}g=a;d:{while(1){f=f<<24>>24;if(!((f|0)==32|f-9>>>0<5))break d;f=K[g+1|0];g=g+1|0;if(f)continue;break}break b}e:{f= -K[g|0];switch(f-43|0){case 0:case 2:break e;default:break b}}i=(f|0)==45?-1:0;g=g+1|0}f:{if(!((c|16)!=16|K[g|0]!=48)){o=1;if((K[g+1|0]&223)==88){g=g+2|0;m=16;break f}g=g+1|0;m=c?c:8;break f}m=c?c:10}c=0;while(1){g:{f=-48;j=H[g|0];h:{if((j-48&255)>>>0<10)break h;f=-87;if((j-97&255)>>>0<26)break h;f=-55;if((j-65&255)>>>0>25)break g}n=f+j|0;if((n|0)>=(m|0))break g;Ce(l,m,0,0,0,k,h,0,0);f=1;i:{if(J[l+8>>2]|J[l+12>>2])break i;p=Kpa(k,h,m,0);j=zb;if((j|0)==-1&(n^-1)>>>0

>>0)break i;h=j;k=n+p|0;h=k>>> -0>>0?h+1|0:h;o=1;f=c}g=g+1|0;c=f;continue}break}if(b)J[b>>2]=o?g:a;j:{k:{if(c){J[194954]=68;a=d&1;i=a?0:i;k=d;h=e;break k}if((e|0)==(h|0)&d>>>0>k>>>0|e>>>0>h>>>0)break j;a=d&1}if(!(a|i)){J[194954]=68;a=d;d=a-1|0;e=e-!a|0;break a}if((e|0)==(h|0)&d>>>0>=k>>>0|e>>>0>h>>>0)break j;J[194954]=68;break a}a=i^k;d=a-i|0;b=i>>31;e=(b^h)-((a>>>0>>0)+b|0)|0}xb=l+16|0;zb=e;return d}function u0(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;d=J[c>>2];if((d|0)!=J[c+4>>2]){i=a+33|0;while(1){k= -P(j,12);d=J[k+d>>2];e=J[d+4>>2];g=+(e|0);f=J[d>>2];h=+(f|0);d=J[a+156>>2];a:{b:{if(d){if(le(d,h,g))break b;H[J[J[a>>2]-12>>2]+i|0]=1;break a}d=J[a+208>>2];if(!d)break b;Ab[J[J[d>>2]+32>>2]](d,h,g)}d=J[a+120>>2];J[d+680>>2]=f;J[d+684>>2]=e}d=1;f=J[c>>2]+k|0;e=J[f>>2];if(J[f+4>>2]-e>>>0>8)while(1){e=(d<<3)+e|0;f=J[e+4>>2];g=+(f|0);l=J[e>>2];h=+(l|0);e=J[a+156>>2];c:{d:{if(e){if(ud(e,h,g))break d;H[J[J[a>>2]-12>>2]+i|0]=1;break c}e=J[a+208>>2];if(!e)break d;Ab[J[J[e>>2]+36>>2]](e,h,g)}e=J[a+120>>2]; -J[e+680>>2]=l;J[e+684>>2]=f}f=J[c>>2]+k|0;e=J[f>>2];d=d+1|0;if(d>>>0>2]-e>>3>>>0)continue;break}d=J[a+156>>2];e:{if(d){if(Kf(d))break e;H[J[J[a>>2]-12>>2]+i|0]=1;break e}d=J[a+208>>2];if(!d)break e;Ab[J[J[d>>2]+48>>2]](d)}j=j+1|0;d=J[c>>2];if(j>>>0<(J[c+4>>2]-d|0)/12>>>0)continue;break}}d=J[a+208>>2];if(!(!(!J[a+156>>2]|!d)|!d)){Ab[J[J[d>>2]+52>>2]](d,3);d=J[a+208>>2];Ab[J[J[d>>2]+56>>2]](d);d=J[a+208>>2]}f:{if(!d)break f;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break f;d=J[a+208>> -2]}Ab[J[J[d>>2]+408>>2]](d,b,c)}}function t0(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;d=J[c>>2];if((d|0)!=J[c+4>>2]){i=a+33|0;while(1){k=P(j,12);d=J[k+d>>2];e=I[d+2>>1];g=+(e|0);f=I[d>>1];h=+(f|0);d=J[a+156>>2];a:{b:{if(d){if(le(d,h,g))break b;H[J[J[a>>2]-12>>2]+i|0]=1;break a}d=J[a+208>>2];if(!d)break b;Ab[J[J[d>>2]+32>>2]](d,h,g)}d=J[a+120>>2];J[d+680>>2]=f;J[d+684>>2]=e}d=1;f=J[c>>2]+k|0;e=J[f>>2];if(J[f+4>>2]-e>>>0>4)while(1){e=(d<<2)+e|0;f=I[e+2>>1];g=+(f|0);l=I[e>>1]; -h=+(l|0);e=J[a+156>>2];c:{d:{if(e){if(ud(e,h,g))break d;H[J[J[a>>2]-12>>2]+i|0]=1;break c}e=J[a+208>>2];if(!e)break d;Ab[J[J[e>>2]+36>>2]](e,h,g)}e=J[a+120>>2];J[e+680>>2]=l;J[e+684>>2]=f}f=J[c>>2]+k|0;e=J[f>>2];d=d+1|0;if(d>>>0>2]-e>>2>>>0)continue;break}d=J[a+156>>2];e:{if(d){if(Kf(d))break e;H[J[J[a>>2]-12>>2]+i|0]=1;break e}d=J[a+208>>2];if(!d)break e;Ab[J[J[d>>2]+48>>2]](d)}j=j+1|0;d=J[c>>2];if(j>>>0<(J[c+4>>2]-d|0)/12>>>0)continue;break}}d=J[a+208>>2];if(!(!(!J[a+156>>2]|!d)|!d)){Ab[J[J[d>> -2]+52>>2]](d,3);d=J[a+208>>2];Ab[J[J[d>>2]+56>>2]](d);d=J[a+208>>2]}f:{if(!d)break f;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break f;d=J[a+208>>2]}Ab[J[J[d>>2]+412>>2]](d,b,c)}}function so(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;h=-6;a:{if(!g|K[g|0]!=49)break a;h=-2;if(!a)break a;J[a+24>>2]=0;g=J[a+32>>2];if(!g){J[a+40>>2]=0;J[a+32>>2]=1044;g=1044}if(!J[a+36>>2])J[a+36>>2]=1045;b:{if((d|0)<0)d=0-d|0;else{if(d>>>0<16){i=1;j=0;break b}i=2;d=d-16|0}j=1}if(f>>>0>4)break a;k=(b|0)==-1?6:b; -if((c|0)!=8|k>>>0>9|(e-10>>>0<4294967287|d>>>0<8))break a;if(d>>>0>15)break a;c=(d|0)==8;if(c&j)break a;h=-4;b=Ab[g|0](J[a+40>>2],1,5828)|0;if(!b)break a;J[a+28>>2]=b;J[b+28>>2]=0;J[b+24>>2]=i;J[b+4>>2]=42;J[b>>2]=a;J[b+80>>2]=e+7;g=128<>2]=g;c=c?9:d;J[b+48>>2]=c;J[b+84>>2]=g-1;c=1<>2]=c;J[b+88>>2]=((e+9&255)>>>0)/3;J[b+52>>2]=c-1;l=b,m=Ab[J[a+32>>2]](J[a+40>>2],c,2)|0,J[l+56>>2]=m;l=b,m=Ab[J[a+32>>2]](J[a+40>>2],J[b+44>>2],2)|0,J[l+64>>2]=m;c=Ab[J[a+32>>2]](J[a+40>>2],J[b+76>> -2],2)|0;J[b+5824>>2]=0;J[b+68>>2]=c;c=64<>2]=c;c=Ab[J[a+32>>2]](J[a+40>>2],c,4)|0;J[b+8>>2]=c;d=J[b+5788>>2];J[b+12>>2]=d<<2;c:{if(!(!J[b+68>>2]|(!J[b+56>>2]|!J[b+64>>2])))if(c)break c;J[b+4>>2]=666;J[a+24>>2]=J[58502];wk(a);return-4}J[b+136>>2]=f;J[b+132>>2]=k;H[b+36|0]=8;J[b+5784>>2]=c+P(d,3);J[b+5796>>2]=c+(d&-2);h=Ns(a)}return h}function s0(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;d=J[c>>2];if((d|0)!=J[c+4>>2]){i=a+33|0;while(1){k=P(j,12);d=J[k+d>>2];e=J[d+ -4>>2];g=+(e|0);f=J[d>>2];h=+(f|0);d=J[a+156>>2];a:{b:{if(d){if(le(d,h,g))break b;H[J[J[a>>2]-12>>2]+i|0]=1;break a}d=J[a+208>>2];if(!d)break b;Ab[J[J[d>>2]+32>>2]](d,h,g)}d=J[a+120>>2];J[d+680>>2]=f;J[d+684>>2]=e}d=1;f=J[c>>2]+k|0;e=J[f>>2];if(J[f+4>>2]-e>>>0>8)while(1){e=(d<<3)+e|0;f=J[e+4>>2];g=+(f|0);l=J[e>>2];h=+(l|0);e=J[a+156>>2];c:{d:{if(e){if(ud(e,h,g))break d;H[J[J[a>>2]-12>>2]+i|0]=1;break c}e=J[a+208>>2];if(!e)break d;Ab[J[J[e>>2]+36>>2]](e,h,g)}e=J[a+120>>2];J[e+680>>2]=l;J[e+684>>2]= -f}f=J[c>>2]+k|0;e=J[f>>2];d=d+1|0;if(d>>>0>2]-e>>3>>>0)continue;break}d=J[a+156>>2];e:{if(d){if(Kf(d))break e;H[J[J[a>>2]-12>>2]+i|0]=1;break e}d=J[a+208>>2];if(!d)break e;Ab[J[J[d>>2]+48>>2]](d)}j=j+1|0;d=J[c>>2];if(j>>>0<(J[c+4>>2]-d|0)/12>>>0)continue;break}}d=J[a+208>>2];if(!(!(!J[a+156>>2]|!d)|!d)){Ab[J[J[d>>2]+52>>2]](d,1);d=J[a+208>>2];Ab[J[J[d>>2]+56>>2]](d);d=J[a+208>>2]}f:{if(!d)break f;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break f;d=J[a+208>>2]}Ab[J[J[d>>2]+416>>2]](d, -b,c)}}function r0(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;d=J[c>>2];if((d|0)!=J[c+4>>2]){i=a+33|0;while(1){k=P(j,12);d=J[k+d>>2];e=I[d+2>>1];g=+(e|0);f=I[d>>1];h=+(f|0);d=J[a+156>>2];a:{b:{if(d){if(le(d,h,g))break b;H[J[J[a>>2]-12>>2]+i|0]=1;break a}d=J[a+208>>2];if(!d)break b;Ab[J[J[d>>2]+32>>2]](d,h,g)}d=J[a+120>>2];J[d+680>>2]=f;J[d+684>>2]=e}d=1;f=J[c>>2]+k|0;e=J[f>>2];if(J[f+4>>2]-e>>>0>4)while(1){e=(d<<2)+e|0;f=I[e+2>>1];g=+(f|0);l=I[e>>1];h=+(l|0);e=J[a+156>>2];c:{d:{if(e){if(ud(e, -h,g))break d;H[J[J[a>>2]-12>>2]+i|0]=1;break c}e=J[a+208>>2];if(!e)break d;Ab[J[J[e>>2]+36>>2]](e,h,g)}e=J[a+120>>2];J[e+680>>2]=l;J[e+684>>2]=f}f=J[c>>2]+k|0;e=J[f>>2];d=d+1|0;if(d>>>0>2]-e>>2>>>0)continue;break}d=J[a+156>>2];e:{if(d){if(Kf(d))break e;H[J[J[a>>2]-12>>2]+i|0]=1;break e}d=J[a+208>>2];if(!d)break e;Ab[J[J[d>>2]+48>>2]](d)}j=j+1|0;d=J[c>>2];if(j>>>0<(J[c+4>>2]-d|0)/12>>>0)continue;break}}d=J[a+208>>2];if(!(!(!J[a+156>>2]|!d)|!d)){Ab[J[J[d>>2]+52>>2]](d,1);d=J[a+208>>2];Ab[J[J[d>> -2]+56>>2]](d);d=J[a+208>>2]}f:{if(!d)break f;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break f;d=J[a+208>>2]}Ab[J[J[d>>2]+420>>2]](d,b,c)}}function mY(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+176>>2]](c,b);c=J[b>>2];a:{if((c|0)==J[b+4>>2])break a;e=I[c+2>>1];f=I[c>>1];c=J[a+248>>2];b:{if(c){Ab[J[J[c>>2]+32>>2]](c,+(f|0),+(e|0));break b}if(K[a+192|0]){J[a+176>>2]=f;H[a+192|0]=0;J[a+184>>2]=f;J[a+188>>2]=e;J[a+180>>2]=e;break b}c=a+176|0;c:{if((f|0)>=J[c>> -2]){c=a+184|0;if((f|0)<=J[c>>2])break c}J[c>>2]=f}if((e|0)>2]){J[a+180>>2]=e;break b}if((e|0)<=J[a+188>>2])break b;J[a+188>>2]=e}c=J[a+172>>2];I[c+140>>1]=f;I[c+142>>1]=e;c=J[b>>2];if(J[b+4>>2]-c>>>0>=5){e=a+184|0;f=a+176|0;d=1;h=1;while(1){c=(d<<2)+c|0;d=I[c+2>>1];g=I[c>>1];c=J[a+248>>2];d:{if(c){Ab[J[J[c>>2]+36>>2]](c,+(g|0),+(d|0));break d}if(K[a+192|0]){J[a+184>>2]=g;J[a+176>>2]=g;H[a+192|0]=0;J[a+188>>2]=d;J[a+180>>2]=d;break d}c=f;e:{if(J[c>>2]<=(g|0)){c=e;if(J[c>>2]>=(g|0))break e}J[c>> -2]=g}if((d|0)>2]){J[a+180>>2]=d;break d}if((d|0)<=J[a+188>>2])break d;J[a+188>>2]=d}c=J[a+172>>2];I[c+140>>1]=g;I[c+142>>1]=d;h=h+1|0;d=h<<16>>16;c=J[b>>2];if(d>>>0>2]-c>>2>>>0)continue;break}}b=J[a+248>>2];if(!b)break a;Ab[J[J[b>>2]+52>>2]](b,1);a=J[a+248>>2];Ab[J[J[a>>2]+56>>2]](a)}}function kaa(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;l=xb-16|0;xb=l;a:{b:{if((c|0)<=0){p=a+608|0;q=a+604|0;d=J[a+608>>2];e=J[a+604>>2];break b}Nb(b, -255,c);p=a+608|0;q=a+604|0;h=J[a+588>>2];d=J[a+608>>2];e=J[a+604>>2];while(1){j=d-1|0;i=e+1|0;c:{d:{e:{f=K[e|0];if((f|0)!=64){if(f)break e;if((d|0)<=(h|0))break d;Pc(b,i,h);d=j-h|0;e=h+i|0;break c}f=d;d=K[e+4|0]|K[e+3|0]<<8;g=d+4|0;if((f|0)<=(g|0))break d;f=K[e+2|0]|K[e+1|0]<<8;if((f+d|0)>(h|0))break d;Pc(b+f|0,e+5|0,d);d=j-g|0;e=g+i|0;break c}m=J[a+56>>2];e=0;d=b;while(1){k=e>>>0>>0;n=f&63;f:{if(!n){g=d;break f}if(e>>>0>=m>>>0){g=d;break f}r=f&192;o=(f&255)>>>6|0;s=o<<4;t=o<<2;g=d;while(1){f= -s;k=r;g:{h:{i:switch((e&3)-1|0){case 1:f=t;g=d;break h;case 0:break h;case 2:break i;default:break g}g=d+1|0;f=o}k=K[d|0]|f}H[d|0]=k;e=e+1|0;k=m>>>0>e>>>0;if(n>>>0<2)break f;n=n-1|0;d=g;if(e>>>0>>0)continue;break}}if(!k){d=j;e=i;break c}if(!j)break d;j=j-1|0;f=K[i|0];d=g;i=i+1|0;continue}}b=J[a>>2];c=J[a+628>>2];J[l>>2]=J[a+472>>2];Ob(c,b,263250,l);a=0;break a}b=b+h|0;c=c-h|0;if((c|0)>0)continue;break}}J[q>>2]=e;J[p>>2]=d;a=1}xb=l+16|0;return a|0}function yla(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c| -0;d=d|0;e=e|0;f=f|0;g=Q(g);h=h|0;i=i|0;var j=Q(0);c=xb-32|0;xb=c;a=J[h+12>>2];d=J[h+4>>2];e=J[h+8>>2];g=Q(J[h>>2]);N[c+16>>2]=g;N[c+24>>2]=g+Q(e|0);g=Q(d|0);N[c+28>>2]=g;d=J[c+28>>2];J[c+8>>2]=J[c+24>>2];J[c+12>>2]=d;N[c+20>>2]=g+Q(a|0);a=J[c+20>>2];J[c>>2]=J[c+16>>2];J[c+4>>2]=a;Ps(b,c);a=J[b+16>>2];a:{if(!a){J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;d=776480;break a}d=(J[b+20>>2]+P(a,20)|0)-20|0}a=J[b+28>>2];b:{if(!a){J[194124]=J[42448]; -a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break b}a=(J[b+32>>2]+P(a,20)|0)-20|0}c:{d:switch(J[d>>2]){case 0:J[a>>2]=0;break c;case 1:break d;default:break c}e:switch(J[a>>2]-1|0){case 1:e=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=e;J[a+16>>2]=J[d+16>>2];e=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=e;break c;case 0:break e;default:break c}g=N[a+4>>2];j=N[d+4>>2];N[a+4>>2]=g<=j?g:j;g=N[a+8>>2];j=N[d+8>>2];N[a+8>>2]=g<=j?g:j;g=N[a+12>>2];j=N[d+12>>2];N[a+12>> -2]=g>=j?g:j;g=N[a+16>>2];j=N[d+16>>2];N[a+16>>2]=g>=j?g:j}a=J[b+16>>2];if(a)J[b+16>>2]=a-1;xb=c+32|0;return 1}function fj(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{c:{d:{e:{f:{g:{i=J[b+4>>2];h:{if(!(!i|(c|d)<0|J[b+16>>2]<=(c|0)))if(J[b+20>>2]>(d|0))break h;c=J[b+336>>2];if((c|0)>=0)break g;if(!i)break a;e=1;c=0;d=0}j=J[b+44>>2];if(!j)break d;g=L[b+26>>1];if((g|0)!=8)break f;h=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+c|0];break e}if(L[b+26>>1]<=23){H[a|0]=0;H[a+1|0]=0; -H[a+2|0]=0;H[a+3|0]=0;if(!i)break b;b=J[b+44>>2];if(!b)break b;d=b;b=c&255;if(d>>>0<=b>>>0)break b;b=i+(b<<2)|0;H[a|0]=K[b+40|0];H[a+1|0]=K[b+41|0];H[a+2|0]=K[b+42|0];H[a+3|0]=K[b+43|0];return}break a}f=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+(P(c,g)>>3)|0];i:switch(g-1|0){case 3:g=4-((c|0)%2<<2)&252;h=(f&15<>>g|0;break e;case 0:break i;default:break e}g=7-((c|0)%8|0)|0;h=(f&1<>>g|0}g=0;h=h&255;f=0;if(h>>>0>=j>>>0)break c;f=i+(h<<2)|0;g=K[f+43|0];k=K[f+42|0];l=K[f+40|0];f=K[f+41|0];break c}f=(J[b+ -56>>2]+P(J[b+52>>2],d)|0)+P(c,3)|0;k=K[f+2|0];l=K[f|0];g=K[b+343|0];f=K[f+1|0]}if(!(!J[b+932>>2]|e^1))g=K[(J[b+932>>2]+P(J[b+16>>2],d)|0)+c|0];H[a+3|0]=g;H[a+2|0]=k;H[a+1|0]=f;H[a|0]=l}return}b=J[b+340>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24}function $r(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=-1;a:{if(!b|!c)break a;if(!(J[a+16>>2]<=0|L[a+26>>1]>7))while(1){b:{c:{d:{e:{f=L[a+26>>1];switch(f-1|0){case 0:break d;case 3:break e;default:break b}}h=(e^-1)<<2&4;i=15;break c}h= -(e^-1)&7;i=1}f=(P(e,f)>>>3|0)+c|0;j=K[f|0]&(i<>2])continue;break}if(J[a+968>>2]){e=J[a+980>>2]+(J[a+972>>2]^-1)|0;if(!((e|0)<0|(e|0)>J[J[b+20>>2]+20>>2])){J[b+4>>2]=e;k=b,l=fd(J[b+20>>2],0)+P(e,J[J[b+20>>2]+52>>2])|0,J[k+16>>2]=l}e=J[J[b+20>>2]+52>>2];d=(d|0)<0?e:(d|0)>(e|0)?e:d;f:{if((d|0)<=0)break f;b=J[b+16>>2];if(!b)break f;Mb(b,c,d)}b=J[a+976>>2];c=b+J[a+972>>2]|0;J[a+972>>2]=c;g=0;d=c;c=J[a+980>>2];if((d|0)<(c|0))break a;e=J[a+ -984>>2];while(1){if((e|0)>0){b=(b|0)/2|0;J[a+976>>2]=b}e=e+1|0;d=(b|0)/2|0;if((d|0)>(c|0))continue;break}J[a+972>>2]=d;J[a+984>>2]=e;return 0}a=J[b+20>>2];if(!a)break a;if(!Ul(a,J[b>>2],J[b+4>>2]))break a;g=0;a=J[J[b+20>>2]+52>>2];a=(d|0)<0?a:(a|0)<(d|0)?a:d;g:{if((a|0)<=0)break g;d=J[b+16>>2];if(!d)break g;Mb(d,c,a)}a=J[b+4>>2];J[b+4>>2]=a-1;if((a|0)<=0)break a;J[b+16>>2]=J[b+16>>2]-J[J[b+20>>2]+52>>2]}return g}function yX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+16>>2]=b;J[a+4>>2]=0; -J[a+8>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;b=a+24|0;J[b>>2]=0;J[b+4>>2]=0;J[a+12>>2]=0;J[a+44>>2]=0;J[a+20>>2]=b;J[195395]=0;b=_(1078,304)|0;c=J[195395];J[195395]=0;g=a+4|0;a:{b:{c:{if((c|0)==1)break c;J[195395]=0;f=_(3482,b|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){J[a>>2]=f;b=J[a+8>>2];d:{if((b|0)!=J[a+12>>2]){J[b>>2]=f;J[a+8>>2]=b+4;break d}h=J[g>>2];c=b-h|0;i=c>>2;d=i+1|0;if(d>>>0>=1073741824){J[195395]=0;ea(3483,g|0);b=J[195395];J[195395]=0;if((b|0)==1)break c;break a}e=c>>1;d=c>>>0>=2147483644?1073741823: -d>>>0>>0?e:d;e:{if(!d){e=0;break e}if(d>>>0>=1073741824){J[195395]=0;ja(1292);b=J[195395];J[195395]=0;if((b|0)!=1)break a;break c}J[195395]=0;e=_(1078,d<<2)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c}c=(i<<2)+e|0;J[c>>2]=f;f=c+4|0;if((b|0)!=(h|0)){while(1){c=c-4|0;b=b-4|0;J[c>>2]=J[b>>2];if((b|0)!=(h|0))continue;break}b=J[g>>2]}J[a+12>>2]=(d<<2)+e;J[a+8>>2]=f;J[a+4>>2]=c;if(!b)break d;Kb(b)}I[a+32>>1]=0;return a|0}c=Z()|0;Kb(b);break b}c=Z()|0}b=J[a+36>>2];if(b){J[a+40>>2]=b;Kb(b)}Sj(a+20|0, -J[a+24>>2]);b=J[g>>2];if(b){J[a+8>>2]=b;Kb(b)}ba(c|0);B()}B()}function pi(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;f=xb-16|0;xb=f;k=J[b+28>>2];J[a+28>>2]=0;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;J[a+4>>2]=J[b+8>>2];a:{b:{c:{if(d){e=md(b,f+12|0);if(J[f+12>>2])break b;d=5;break c}e=rc(b,f+12|0);if(J[f+12>>2])break b;d=3}J[a+8>>2]=d;d=0;if(!e)break a;g=Nd(b,f+12|0);if(J[f+12>>2])break b;if((g-5&255)>>>0<=251){J[f+12>>2]=8;break b}H[a+ -16|0]=g;J[a+12>>2]=e;g=g&255;J[a+20>>2]=J[a+8>>2]+(J[a+4>>2]+P(g,e+1|0)|0);e=yd(b,P(e,g));J[f+12>>2]=e;if(e)break b;i=xb-16|0;xb=i;l=Dd(J[a>>2],i+12|0,K[a+16|0]);d:{if(l)break d;j=K[a+16|0];if(!j)break d;e=0;if(j>>>0>=4){n=j&252;while(1){g=e;e=e+4|0;h=h+4|0;if((n|0)!=(h|0))continue;break}h=i+12|0;h=K[h+(g|3)|0]|(K[h+(g|2)|0]|(K[g+h|0]<<16|K[h+(g|1)|0]<<8))<<8}g=j&3;if(!g)break d;while(1){h=K[(i+12|0)+e|0]|h<<8;e=e+1|0;m=m+1|0;if((g|0)!=(m|0))continue;break}}J[f+12>>2]=l;xb=i+16|0;if(J[f+12>>2])break b; -if(!h){J[f+12>>2]=8;break b}e=h-1|0;J[a+24>>2]=e;e:{if(c){b=Ne(b,e,a+32|0);break e}b=yd(b,e)}J[f+12>>2]=b;if(!b)break a}b=J[a+28>>2];if(b)Ab[J[k+8>>2]](k,b);J[a+28>>2]=0;d=J[f+12>>2]}xb=f+16|0;return d}function gH(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{e=J[b+12>>2];d=J[b+4>>2];b:{if(e>>>0>>0)break b;h=J[b+8>>2];if(h-a>>>0<4)break b;g=a+2|0;if(g-d>>>0>e>>>0|h-g>>>0<2)break b;g=e;e=a+4|0;if(g>>>0>>0)break b;d=K[a+2|0]|K[a+3|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>h-e>>>0)break b;d=J[b+16>>2]- -d|0;J[b+16>>2]=d;if((d|0)<=0)break b;f=K[a|0]|K[a+1|0]<<8;c:{if(!f)break c;d=0;d=c?J[c>>2]:d;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<2)break a;e=K[a|0]|K[a+1|0]<<8;d:{if(!e)break d;if(fH(((e<<8|e>>>8)&65535)+a|0,b,d))break d;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[a|0]=0;H[a+1|0]=0}if(!c|(K[a|0]|K[a+1|0]<<8)|J[c>>2]!=1936292453)break c;d=J[c+4>>2];if(!d|a>>>0<=d>>>0)break c;d=(d-a|0)+((f<<8|f>>>8)&65535)|0;if(d>>>0>65535)break c;f=1;e=J[b+32>>2];if(e>>>0>31)break b; -J[b+32>>2]=e+1;if(!K[b+28|0])break b;d=d<<8|(d&65280)>>>8;H[a|0]=d;H[a+1|0]=d>>>8;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<2)break a;d=K[a|0]|K[a+1|0]<<8;if(!d)break b;if(fH(((d<<8|d>>>8)&65535)+a|0,b,J[c>>2]))break b;c=J[b+32>>2];if(c>>>0>31)break a;J[b+32>>2]=c+1;f=0;if(!K[b+28|0])break b;H[a|0]=0;H[a+1|0]=0}f=1}return f}return 0}function Taa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+584>>2];a:{b:switch(b-512|0){case 2:J[d+200>>2]=J[c>>2];break a;case 18:H[d+207|0]=1;e=J[c>>2];H[d+208|0]= -e;c=J[c+4>>2];H[d+209|0]=c;I[a+206>>1]=c&255;I[a+204>>1]=e&255;break a;case 7:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Ob(J[a+628>>2],288436,275956,0);return 0}H[d+211|0]=e;c=J[c+4>>2];J[d+216>>2]=J[c>>2];if((e|0)==1)break a;J[d+220>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+224>>2]=J[c+8>>2];break a;case 8:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Ob(J[a+628>>2],288436,279837,0);return 0}H[d+212|0]=e;c=J[c+4>>2];J[d+228>>2]=J[c>>2];if((e|0)==1)break a;J[d+232>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+236>>2]=J[c+ -8>>2];break a;case 9:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Ob(J[a+628>>2],288436,279967,0);return 0}H[d+213|0]=e;c=J[c+4>>2];J[d+240>>2]=J[c>>2];if((e|0)==1)break a;J[d+244>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+248>>2]=J[c+8>>2];break a;case 0:H[d+204|0]=J[c>>2];break a;case 3:I[d+300>>1]=J[c>>2];break a;default:return Ab[J[d+164>>2]](a,b,c)|0;case 1:break b}J[d+196>>2]=J[c>>2]}c=L[nd(a,b)+12>>1];b=(L[nd(a,b)+12>>1]>>>3&8188)+a|0;J[b+40>>2]=J[b+40>>2]|1<>2]=J[a+12>>2]|8;return 1}function OW(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[779731];f=d<<24>>24<0;e=f?J[194930]:779720;d=f?J[194931]:d;if((d|0)==-1)d=id(e);Ab[J[J[a>>2]+8>>2]](a,d);f=e;e=d<<2;Mb(J[a+12>>2],f,e);J[a+12>>2]=e+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+d;e=K[b+11|0];f=e<<24>>24<0;d=f?J[b>>2]:b;b=f?J[b+4>>2]:e;if((b|0)==-1)b=id(d);Ab[J[J[a>>2]+8>>2]](a,b);e=d;d=b<<2;Mb(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;b=K[779743];e=b<<24>>24<0;d=e?J[194933]:779732;b=e?J[194934]:b;if((b|0)==-1)b=id(d);Ab[J[J[a>>2]+ -8>>2]](a,b);e=d;d=b<<2;Mb(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;b=K[779755];e=b<<24>>24<0;d=e?J[194936]:779744;b=e?J[194937]:b;if((b|0)==-1)b=id(d);Ab[J[J[a>>2]+8>>2]](a,b);e=d;d=b<<2;Mb(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;d=K[c+11|0];e=d<<24>>24<0;b=e?J[c>>2]:c;c=e?J[c+4>>2]:d;if((c|0)==-1)c=id(b);Ab[J[J[a>>2]+8>>2]](a,c);d=b;b=c<<2;Mb(J[a+12>>2],d,b);J[a+12>>2]=b+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+c;c=K[779755];d=c<<24>>24<0;b=d?J[194936]:779744; -c=d?J[194937]:c;if((c|0)==-1)c=id(b);Ab[J[J[a>>2]+8>>2]](a,c);d=b;b=c<<2;Mb(J[a+12>>2],d,b);J[a+12>>2]=b+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+c}function y9(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;a:{d=J[J[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a;Zh(b,a);g=a-d|0;if((d|0)<5){a=d<<2;while(1){b:switch(d|0){default:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 3:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 2:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 1:c=a+b|0;J[c>>2]=J[c>>2]+J[b>> -2];b=b+4|0;break;case 0:break b}g=g-d|0;if((g|0)>0)continue;break}break a}a=d-4|0;h=d&3;i=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}e=0;c=a;if(h)while(1){f=(d<<2)+b|0;J[f>>2]=J[f>>2]+J[b>>2];c=c-1|0;b=b+4|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(!i)break g;while(1){e=d<<2;f=e+b|0;J[f>>2]=J[f>>2]+J[b>>2];f=e+(b+4|0)|0;J[f>>2]=J[f>>2]+J[b+4>>2];f=e+(b+8|0)|0;J[f>>2]=J[f>>2]+J[b+8>>2];e=e+(b+12|0)|0;J[e>> -2]=J[e>>2]+J[b+12>>2];b=b+16|0;e=(c|0)>4;c=c-4|0;if(e)continue;break}}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}g=g-d|0;if((g|0)>0)continue;break}}}function Di(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;d=xb+-64|0;xb=d;l=!(K[J[a+11676>>2]+5|0]?K[a+11665|0]:1);f=J[a+11720>>2];g=a+11724|0;e=J[g>>2];if((f|0)!=(b|0)|(e|0)!=(c|0)|l){yp(a,f,e,b,c,d+20|0,d+ -16|0);e=J[d+20>>2];h=e+J[a+11720>>2]|0;J[d+8>>2]=h;f=J[d+16>>2];g=f+J[g>>2]|0;J[d+12>>2]=g;f=c+f|0;j=b+e|0;if(K[a+11667|0]){J[d+56>>2]=1;e=J[a+11732>>2];J[d+24>>2]=J[a+11728>>2];J[d+28>>2]=e;if(!K[a+20|0])yj(a,J[a+11736>>2],J[a+11740>>2]);k=Rb(J[a+11644>>2],h);e=Rb(J[a+11648>>2],g);i=Sf(a+8|0,g);e=e+k|0;m=d,n=(Rb(J[J[a>>2]+64>>2],e)+Rb(J[J[a>>2]+72>>2],i)|0)+J[a+11656>>2]|0,J[m+32>>2]=n;m=d,n=(Rb(J[J[a>>2]+68>>2],e)+Rb(J[J[a>>2]+76>>2],i)|0)+J[a+11660>>2]|0,J[m+36>>2]=n;e=J[a+4>>2];Ab[J[e>>2]](e, -d+24|0);e=J[d+32>>2];k=J[d+36>>2];i=h;h=0;J[a+11704>>2]=i|h;J[a+11708>>2]=g;J[a+11728>>2]=e;J[a+11732>>2]=k;J[a+11712>>2]=h|j;J[a+11716>>2]=f;H[a+11664|0]=1;H[a+11667|0]=0}if(K[a+11744|0])Vk(a,a+8|0,d+8|0,j,f,0);J[a+11748>>2]=2;H[a+11744|0]=1;g=J[d+12>>2];J[a+11752>>2]=J[d+8>>2];J[a+11756>>2]=g;J[a+11760>>2]=j;J[a+11764>>2]=f;if(l)Uk(a+8|0,J[a+11668>>2],J[a+11672>>2],J[a+11676>>2],J[a+11680>>2],0);J[a+11724>>2]=c;J[a+11720>>2]=b}xb=d- -64|0}function bC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i= -xb-16|0;xb=i;J[i+12>>2]=0;a:{if(!a){d=33;break a}d=6;if(!b|!c)break a;d=0;if((b|0)==(c|0))break a;e=J[c+8>>2];g=e>>31|1;f=J[b+8>>2];h=f>>31|1;if(!J[b+12>>2]){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;if((g|0)==(h|0))break a;J[c+8>>2]=0-J[c+8>>2];break a}d=f>>31;f=(d^f)-d|0;d=P(f,J[b>>2]);j=J[a>>2];a=J[c+12>>2];b:{c:{if(a){k=e>>31;e=P(J[c>>2],(e^k)-k|0);if((e|0)==(d|0))break b;a=pC(j,e,d,a,i+12|0);break c}a= -mr(j,d,i+12|0)}J[c+12>>2]=a}d:{if(J[i+12>>2])break d;e=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=e;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;e=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=e;J[c+12>>2]=a;if((g|0)==(h|0)){Mb(a,J[b+12>>2],d);break d}c=J[c>>2];if(!c)break d;g=0;e=0-f|0;a=P(f,c-1|0)+a|0;b=J[b+12>>2];h=c&3;e:{if(!h){d=c;break e}d=c;while(1){d=d-1|0;a=Mb(a,b,f)+e|0;b=b+f|0;g=g+1|0;if((h|0)!=(g|0))continue;break}}if(c>>>0<4)break d;while(1){g=b+f|0;h=g+f|0;c=h+f|0;a=Mb(Mb(Mb(Mb(a,b,f)+e|0,g, -f)+e|0,h,f)+e|0,c,f)+e|0;b=c+f|0;d=d-4|0;if(d)continue;break}}d=J[i+12>>2]}xb=i+16|0;return d}function Sja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a=xb-32|0;xb=a;e=a+16|0;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=428736;J[195395]=0;d=aa(1089,e|0,b|0,0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)a:{b:{if(!d)break b;J[195395]=0;f=J[e+12>>2];b=J[195395];J[195395]=0;if((b|0)==1)break a;J[195395]=0;c=f>>>0>=1E3?1E3:f;g=_(1109,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[195395]=0;J[a+12>> -2]=0;d=ha(1110,e|0,g|0,c|0,a+12|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;if(!d){Kb(g);c=0;break b}J[195395]=0;ea(1103,e|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;c:{if(f>>>0<=10){H[a+11|0]=c;b=a;break c}J[195395]=0;f=(c|15)+1|0;b=_(1078,f|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=f|-2147483648}h=Mb(b,g,c)+c|0,i=0,H[h|0]=i;d=K[a+11|0];b=d<<24>>24<0;f=b?J[a>>2]:a;c=b?J[a+4>>2]:d;d=f+c|0;d:{e:{if((c|0)<4)break e;b=f;while(1){c=bh(b,60,c-3|0);if(!c)break e; -if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==1735815996)break d;b=c+1|0;c=d-b|0;if((c|0)>3)continue;break}}c=d}Kb(g);if(H[a+11|0]<0)Kb(J[a>>2]);c=(c|0)!=(d|0)&(c-f|0)!=-1}Me(e);xb=a+32|0;return c|0}a=Z()|0;Me(e);ba(a|0);B()}function hD(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;a:{if(!a)break a;b=L[a+2>>1];c=b<<16>>16;if((c|0)<=0)break a;h=2;if((c|0)==1)break a;j=J[a+4>>2];k=j+(b<<3)|0;b=j+8|0;d=J[j>>2];e=d;f=j;g=J[f+4>>2];c=g;while(1){i=J[f+12>>2];c=(c|0)<(i|0)?i: -c;g=(g|0)>(i|0)?i:g;f=J[f+8>>2];e=(f|0)>(e|0)?f:e;d=(f|0)<(d|0)?f:d;f=b;b=b+8|0;if(k>>>0>b>>>0)continue;break}if((d|0)==(e|0)|(c|0)==(g|0)|((c|0)>16777216|(e|0)>16777216))break a;if((d|0)<-16777216|(g|0)<-16777216)break a;m=I[a>>1];if((m|0)>0){f=0;b=e>>31;e=(b^e)-b|0;b=d>>31;b=17-S(e|(b^d)-b)|0;h=(b|0)>0?b:0;b=17-S(c-g|0)|0;i=(b|0)>0?b:0;p=J[a+12>>2];b=0;k=0;while(1){e=I[(k<<1)+p>>1];b:{if((e|0)<(b|0))break b;a=(e<<3)+j|0;c=J[a>>2]>>h;a=J[a+4>>2]>>i;c:{if(!((e-b|0)+1&1)){g=a;a=b;break c}d=c;c=(b<< -3)+j|0;g=J[c+4>>2]>>i;c=J[c>>2]>>h;f=P(g-a|0,d+c|0)+f|0;a=b+1|0}if((b|0)==(e|0))break b;while(1){n=a+1|0;d=(n<<3)+j|0;b=J[d+4>>2]>>i;l=(a<<3)+j|0;o=J[l+4>>2]>>i;d=J[d>>2]>>h;l=J[l>>2]>>h;f=P(b-o|0,d+l|0)+(P(c+l|0,o-g|0)+f|0)|0;a=a+2|0;c=d;g=b;if((e|0)!=(n|0))continue;break}}b=e+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}h=1;if((f|0)>0)break a;h=0;if(f)break a}h=2}return h}function C9(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;a:{d=J[J[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a; -g=a-d|0;if((d|0)<5){a=d<<2;while(1){b:switch(d|0){default:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 3:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 2:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 1:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;break;case 0:break b}g=g-d|0;if((g|0)>0)continue;break}break a}a=d-4|0;h=d&3;i=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}e=0;c=a;if(h)while(1){f=(d<<2)+b|0;J[f>>2]=J[f>> -2]+J[b>>2];c=c-1|0;b=b+4|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(!i)break g;while(1){e=d<<2;f=e+b|0;J[f>>2]=J[f>>2]+J[b>>2];f=e+(b+4|0)|0;J[f>>2]=J[f>>2]+J[b+4>>2];f=e+(b+8|0)|0;J[f>>2]=J[f>>2]+J[b+8>>2];e=e+(b+12|0)|0;J[e>>2]=J[e>>2]+J[b+12>>2];b=b+16|0;e=(c|0)>4;c=c-4|0;if(e)continue;break}}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}g=g-d|0;if((g|0)>0)continue; -break}}}function Cea(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;j=J[a+372>>2];c=J[a+420>>2];d=J[a+24>>2];J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2];if(!(J[c+36>>2]|!J[a+236>>2]))Wn(c,J[c+40>>2]);a:{e=J[a+316>>2];if(J[c+108>>2]|(e|0)<=0)break a;while(1){if(!g){f=J[c+16>>2];g=J[c+12>>2]|(I[J[(i<<2)+b>>2]>>1]>>>j&1)<<23-f;d=f+1|0;if((f|0)>=7){while(1){e=J[c+112>>2];J[c+112>>2]=e+1;H[e|0]=g>>>16;e=J[c+116>>2]-1|0;J[c+116>>2]=e;if(!e){f=J[c+120>>2];e=J[f+24>>2];if(!(Ab[J[e+12>>2]](f)|0)){f=J[c+ -120>>2];h=J[f>>2];J[h+20>>2]=25;Ab[J[h>>2]](f)}J[c+112>>2]=J[e>>2];J[c+116>>2]=J[e+4>>2]}e=d;b:{if((g&16711680)!=16711680)break b;d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=0;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(d)break b;f=J[c+120>>2];d=J[f+24>>2];if(!(Ab[J[d+12>>2]](f)|0)){f=J[c+120>>2];h=J[f>>2];J[h+20>>2]=25;Ab[J[h>>2]](f)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=e-8|0;g=g<<8;if((e|0)>15)continue;break}e=J[a+316>>2]}J[c+16>>2]=d;J[c+12>>2]=g}i=i+1|0;if((i|0)>=(e|0))break a;g=J[c+108>>2];continue}}b= -J[a+24>>2];J[b>>2]=J[c+112>>2];J[b+4>>2]=J[c+116>>2];a=J[a+236>>2];if(a){b=J[c+36>>2];if(b)a=b;else J[c+40>>2]=J[c+40>>2]+1&7;J[c+36>>2]=a-1}return 1}function lc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+464>>2];c=J[e+12>>2];a:{if((c|0)>=32768){d=J[e+16>>2];break a}d=J[e+16>>2];while(1){c=d-1|0;J[e+16>>2]=c;b:{if((d|0)>0){d=c;break b}f=0;if(!J[a+436>>2]){c=J[a+24>>2];c:{if(J[c+4>>2])break c;if(Ab[J[c+12>>2]](a)|0)break c;d=J[a>>2];J[d+20>>2]=25;Ab[J[d>>2]](a)}J[c+4>>2]=J[c+4>>2]-1;d=c;c=J[c>>2]; -J[d>>2]=c+1;f=K[c|0];d:{if((f|0)!=255)break d;while(1){c=J[a+24>>2];e:{if(J[c+4>>2])break e;if(Ab[J[c+12>>2]](a)|0)break e;d=J[a>>2];J[d+20>>2]=25;Ab[J[d>>2]](a)}J[c+4>>2]=J[c+4>>2]-1;d=c;c=J[c>>2];J[d>>2]=c+1;f=255;c=K[c|0];if((c|0)==255)continue;break}if(!c)break d;J[a+436>>2]=c;f=0}c=J[e+16>>2]}d=c+8|0;J[e+16>>2]=d;J[e+8>>2]=J[e+8>>2]<<8|f;if((c|0)>-9)break b;d=c+9|0;J[e+16>>2]=d;if(d)break b;J[e+12>>2]=32768;d=0}c=J[e+12>>2]<<1;J[e+12>>2]=c;if((c|0)<32768)continue;break}}a=K[b|0];f=J[((a&127)<< -2)+249792>>2];g=f>>16;c=c-g|0;J[e+12>>2]=c;h=f>>>8|0;i=J[e+8>>2];d=c<=(d|0)){J[e+12>>2]=g;J[e+8>>2]=i-d;d=a&128;if((c|0)<(g|0)){H[b|0]=d^h;break f}H[b|0]=d^f;a=a^128;break f}if(c>>>0>32767)break f;d=a&128;if((c|0)<(g|0)){H[b|0]=d^f;a=a^128;break f}H[b|0]=d^h}return a>>>7|0}function Rf(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;f=xb-16|0;xb=f;i=J[a+100>>2];J[f+12>>2]=0;m=L[a+340>>1];a:{if(!m)break a;g=-1;h=-1;k=-1;l=-1;j=J[a+356>>2];e=j;while(1){b:{if(!L[e+ -8>>1]|L[e+6>>1]!=(b|0))break b;c:switch(L[e>>1]){case 0:case 2:g=d;break b;case 1:if(!L[e+4>>1]){k=d;break b}l=L[e+2>>1]?l:d;break b;case 3:break c;default:break b}n=L[e+4>>1]&1023;if((h|0)!=-1&(n|0)!=9)break b;o=L[e+2>>1];if(o>>>0>10|!(1<=0){if((d|0)>=0){b=70;if(!p)break f}e=0;d=P(h,20)+j|0;g=L[d+2>>1];if(g>>>0>10)break a;b=71;if(1<=0)break f;e=0;b= -71;d=g;if((d|0)<0)break a}if(!j)break d;d=P(d,20)+j|0}g:{if(J[d+16>>2])break g;g=J[a+368>>2];e=0;a=Tb(i,1,0,L[d+8>>1],0,f+12|0);J[d+16>>2]=a;h:{if(J[f+12>>2])break h;h=bc(g,J[d+12>>2]);J[f+12>>2]=h;a=J[d+16>>2];if(h)break h;a=Dd(g,a,L[d+8>>1]);J[f+12>>2]=a;if(!a)break g;a=J[d+16>>2]}if(a)Ab[J[i+8>>2]](i,a);I[d+8>>1]=0;J[d+16>>2]=0;break a}e=Ab[b|0](d,i)|0;break a}e=0}J[c>>2]=e;xb=f+16|0;return J[f+12>>2]}function v9(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;a:{e=J[J[a+584>>2]+4>>2]; -a=(c|0)/2|0;if((e|0)>=(a|0))break a;h=a-e|0;c=((h<<1)+b|0)-2|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 3:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 2:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 1:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;break;case 0:break b}h=h-e|0;if((h|0)>0)continue;break}break a}a=e-4|0;i=e&3;j=e-5>>>0>2;g=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g; -default:break h}d=0;b=a;if(i)while(1){f=c+g|0;I[f>>1]=L[f>>1]-L[c>>1];b=b-1|0;c=c-2|0;d=d+1|0;if((i|0)!=(d|0))continue;break}if(!j)break g;while(1){d=c+g|0;I[d>>1]=L[d>>1]-L[c>>1];d=c-2|0;f=d+g|0;I[f>>1]=L[f>>1]-L[d>>1];d=c-4|0;f=d+g|0;I[f>>1]=L[f>>1]-L[d>>1];d=c-6|0;f=d+g|0;I[f>>1]=L[f>>1]-L[d>>1];c=c-8|0;d=(b|0)>4;b=b-4|0;if(d)continue;break}}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c= -c-2|0}h=h-e|0;if((h|0)>0)continue;break}}}function oj(a){var b=0,c=0,d=0,e=0;c=J[a-100>>2];d=vc(1,12);if(d)a:{a=xb-48|0;xb=a;J[d>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[195395]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;I[a+44>>1]=256;J[a+40>>2]=65536;b=_(584,c|0)|0;e=J[195395];J[195395]=0;b:{c:{if((e|0)==1)break c;J[a+40>>2]=b;J[195395]=0;H[a+44|0]=1;c=ca(585,c|0,1196643650)| -0;b=J[195395];J[195395]=0;if((b|0)==1)break c;e=0;J[195395]=0;c=ca(800,a|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break c;J[d>>2]=c;b=c?c:169776;b=M[b+16>>2]<4?169776:J[b+12>>2];if((K[b|0]|K[b+1|0]<<8)==256){e=K[b+8|0]|K[b+9|0]<<8;if(e)b=b+((e<<8|e>>>8)&65535)|0;else b=169776;b=K[b|0]|K[b+1|0]<<8;e=(b<<8|b>>>8)&65535}J[d+4>>2]=e;b=vc(e,4);J[d+8>>2]=b;if(!b){J[d+4>>2]=0;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[d>>2]=0;J[195395]=0;c=J[195395];J[195395]=0;if((c|0)==1)break c; -J[d>>2]=169776}c=J[a+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break b}xb=a+48|0;break a}d=Z()|0;ed(a);ba(d|0);B()}ga(0)|0;_b();B()}return d}function SS(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,m=0;k=xb-16|0;xb=k;a:{if(a){a=Dx(c);b:{if(b){b=k+4|0;Ab[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;Ab[J[J[a>>2]+32>>2]](b,a);break b}b=k+4|0;Ab[J[J[a>>2]+40>>2]](b,a);c=J[k+4>> -2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;Ab[J[J[a>>2]+28>>2]](b,a)}rg(i,b);Yc(b);l=e,m=Ab[J[J[a>>2]+12>>2]](a)|0,J[l>>2]=m;l=f,m=Ab[J[J[a>>2]+16>>2]](a)|0,J[l>>2]=m;b=k+4|0;Ab[J[J[a>>2]+20>>2]](b,a);Je(g,b);Yb(b);Ab[J[J[a>>2]+24>>2]](b,a);rg(h,b);Yc(b);a=Ab[J[J[a>>2]+36>>2]](a)|0;break a}a=Cx(c);c:{if(b){b=k+4|0;Ab[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;Ab[J[J[a>>2]+32>>2]](b,a);break c}b=k+4|0;Ab[J[J[a>>2]+40>>2]](b,a);c=J[k+4>> -2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;Ab[J[J[a>>2]+28>>2]](b,a)}rg(i,b);Yc(b);l=e,m=Ab[J[J[a>>2]+12>>2]](a)|0,J[l>>2]=m;l=f,m=Ab[J[J[a>>2]+16>>2]](a)|0,J[l>>2]=m;b=k+4|0;Ab[J[J[a>>2]+20>>2]](b,a);Je(g,b);Yb(b);Ab[J[J[a>>2]+24>>2]](b,a);rg(h,b);Yc(b);a=Ab[J[J[a>>2]+36>>2]](a)|0}J[j>>2]=a;xb=k+16|0}function Qja(a){a=a|0;var b=0;J[a+168>>2]=-780903145;J[a+172>>2]=1071454021;J[a>>2]=1;J[a+4>>2]=23;J[a+176>>2]=0;J[a+112>>2]=0;J[a+116>>2]=8;J[a+104>>2]=0;J[a+108>>2]=0;J[a+8>>2]=1202590843; -J[a+12>>2]=1071938273;J[a+96>>2]=529139971;J[a+100>>2]=1071050339;J[a+88>>2]=68719477;J[a+92>>2]=1070927446;J[a+80>>2]=-597859448;J[a+84>>2]=1070859078;J[a+72>>2]=343597384;J[a+76>>2]=1072252846;b=a- -64|0;J[b>>2]=-343597384;J[b+4>>2]=1068415057;J[a+56>>2]=858993459;J[a+60>>2]=1069757235;J[a+48>>2]=-1717986918;J[a+52>>2]=1069128089;J[a+40>>2]=858993459;J[a+44>>2]=1071854387;J[a+32>>2]=858993459;J[a+36>>2]=1070805811;J[a+24>>2]=-343597384;J[a+28>>2]=1067366481;J[a+16>>2]=1374389535;J[a+20>>2]=1070931640; -Nb(a+192|0,0,72);J[a+140>>2]=0;J[a+144>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+248>>2]=0;J[a+252>>2]=1081073664;J[a+232>>2]=0;J[a+236>>2]=1081073664;J[a+224>>2]=0;J[a+228>>2]=1081073664;J[a+216>>2]=0;J[a+220>>2]=1081073664;J[a+208>>2]=8;J[a+184>>2]=1;J[a+188>>2]=23;J[a+264>>2]=0;J[a+268>>2]=0;J[a+120>>2]=0;b=jF();J[a+288>>2]=4;J[a+276>>2]=0;J[a+280>>2]=0;J[a+272>>2]=b}function Fo(a){var b=0,c=0,d=0,e=0;c=J[a-104>>2]; -d=vc(1,12);if(d)a:{a=xb-48|0;xb=a;J[d>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[195395]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;I[a+44>>1]=256;J[a+40>>2]=65536;b=_(584,c|0)|0;e=J[195395];J[195395]=0;b:{c:{if((e|0)==1)break c;J[a+40>>2]=b;J[195395]=0;H[a+44|0]=1;c=ca(585,c|0,1196445523)|0;b=J[195395];J[195395]=0;if((b|0)==1)break c;e=0;J[195395]=0;c=ca(801,a|0,c|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break c;J[d>>2]=c;b=c?c:169776;b=M[b+16>>2]<4?169776:J[b+12>>2];if((K[b|0]|K[b+1|0]<<8)==256){e=K[b+8|0]|K[b+9|0]<<8;if(e)b=b+((e<<8|e>>>8)&65535)|0;else b=169776;b=K[b|0]|K[b+1|0]<<8;e=(b<<8|b>>>8)&65535}J[d+4>>2]=e;b=vc(e,4);J[d+8>>2]=b;if(!b){J[d+4>>2]=0;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break c;J[d>>2]=0;J[195395]=0;c=J[195395];J[195395]=0;if((c|0)==1)break c;J[d>>2]=169776}c=J[a+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c| -0)==1)break b}xb=a+48|0;break a}d=Z()|0;ed(a);ba(d|0);B()}ga(0)|0;_b();B()}return d}function WD(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return;a:{if(!b)break a;e=J[a+16>>2];if((e|0)<=0)break a;c=a+20|0;d=c+(e<<2)|0;while(1){if(J[c>>2]==(b|0)){J[a+16>>2]=e-1;a=d-4|0;if(a>>>0>c>>>0)while(1){J[c>>2]=J[c+4>>2];c=c+4|0;if(a>>>0>c>>>0)continue;break}J[a>>2]=0;i=J[b+8>>2];e=J[b>>2];d=J[b+4>>2];a=e;b:{if(!d)break b;if(J[d+160>>2]==(b|0))J[d+160>>2]=0;a=e;if(!(K[a|0]&2))break b;c=J[d+148>>2];if(!c)break b; -g=d+148|0;a=J[d>>2];c:{while(1){if(J[c+8>>2]==(b|0))break c;c=J[c+4>>2];if(c)continue;break}a=e;break b}f=J[b+12>>2];d:{if(J[f+36>>2]!=1869968492)break d;h=J[b+52>>2];if(!h)break d;Ab[J[J[f+56>>2]+20>>2]](h)}f=J[c>>2];h=f?f+4|0:g;g=J[c+4>>2];J[h>>2]=g;J[(g?g:d+152|0)>>2]=f;Ab[J[a+8>>2]](a,c);c=J[d+148>>2];e:{if(c)while(1){a=J[c+8>>2];if(J[a+16>>2]==1869968492)break e;c=J[c+4>>2];if(c)continue;break}a=0}J[d+156>>2]=a;a=J[b>>2]}f:{if(!(H[a|0]&1))break f;d=J[b+8>>2];if(!d)break f;c=J[b+16>>2];if(c)while(1){a= -J[c+4>>2];mk(d,J[c+8>>2],b);Ab[J[d+8>>2]](d,c);c=a;if(c)continue;break}J[b+16>>2]=0;J[b+20>>2]=0}a=J[e+28>>2];if(a)Ab[a|0](b);Ab[J[i+8>>2]](i,b);return}c=c+4|0;if(d>>>0>c>>>0)continue;break}}}function WS(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,m=0;k=xb-16|0;xb=k;a:{if(a){a=Hx(c);b:{if(b){b=k+4|0;Ab[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;Ab[J[J[a>>2]+32>>2]](b,a);break b}b=k+4|0;Ab[J[J[a>>2]+40>> -2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;Ab[J[J[a>>2]+28>>2]](b,a)}Je(i,b);Yb(b);l=e,m=Ab[J[J[a>>2]+12>>2]](a)|0,H[l|0]=m;l=f,m=Ab[J[J[a>>2]+16>>2]](a)|0,H[l|0]=m;b=k+4|0;Ab[J[J[a>>2]+20>>2]](b,a);Je(g,b);Yb(b);Ab[J[J[a>>2]+24>>2]](b,a);Je(h,b);Yb(b);a=Ab[J[J[a>>2]+36>>2]](a)|0;break a}a=Gx(c);c:{if(b){b=k+4|0;Ab[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;Ab[J[J[a>>2]+32>>2]](b,a);break c}b=k+4|0;Ab[J[J[a>>2]+40>> -2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;Ab[J[J[a>>2]+28>>2]](b,a)}Je(i,b);Yb(b);l=e,m=Ab[J[J[a>>2]+12>>2]](a)|0,H[l|0]=m;l=f,m=Ab[J[J[a>>2]+16>>2]](a)|0,H[l|0]=m;b=k+4|0;Ab[J[J[a>>2]+20>>2]](b,a);Je(g,b);Yb(b);Ab[J[J[a>>2]+24>>2]](b,a);Je(h,b);Yb(b);a=Ab[J[J[a>>2]+36>>2]](a)|0}J[j>>2]=a;xb=k+16|0}function TC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-80|0;xb=f;d=J[b+4>>2];h=L[a+98>>1];a:{b:{if(d>>>0>=h>>>0){g=f+48|0;if(d>>>0>h>>>0){d=J[a>>2];e=J[a+628>> -2];i=J[nd(a,L[b>>1])+16>>2];j=J[b+4>>2];J[f+40>>2]=h;J[f+36>>2]=j;J[f+32>>2]=i;yc(e,d,276005,f+32|0);d=J[b+4>>2]}if(d>>>0>=11){g=Sd(a,d,2,280789);if(!g)break b;d=J[b+4>>2]}c:{d:{if(d>>>0<=2){if(L[a+456>>1]==19789){e=0;e:{f:switch(d-1|0){case 0:e=J[b+8>>2];break e;case 1:break f;default:break d}e=J[b+8>>2];I[g+2>>1]=e}I[g>>1]=e>>>16;e=d;break d}e=0;g:switch(d-1|0){case 0:I[g>>1]=J[b+8>>2];e=d;break d;case 1:break g;default:break d}e=J[b+8>>2];I[g+2>>1]=e>>>16;I[g>>1]=e;e=d;break d}d=0;if(!xe(a,b,g))break c; -e=J[b+4>>2]}i=L[g>>1];h:{h=(e|0)<(h|0)?e:h;if((h|0)<2)break h;d=1;e=1;while(1){if((i|0)==L[(d<<1)+g>>1]){e=e+1|0;d=e&65535;if(d>>>0<(h&65535)>>>0)continue;break h}break}c=J[a>>2];d=J[a+628>>2];k=f,l=J[nd(a,L[b>>1])+16>>2],J[k+16>>2]=l;Ob(d,c,280941,f+16|0);d=0;break c}I[c>>1]=i;d=1}if((f+48|0)==(g|0))break a;Kb(g);break a}c=J[a>>2];d=J[a+628>>2];a=J[nd(a,L[b>>1])+16>>2];b=J[b+4>>2];J[f+8>>2]=h;J[f+4>>2]=b;J[f>>2]=a;yc(d,c,275793,f)}d=0}xb=f+80|0;return d}function Sq(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;f=J[a+212>>2];g=f>>8;d=J[a+176>>2];j=c>>8;a:{if((g|0)>=(d|0)&(d|0)<=(j|0))break a;d=J[a+172>>2];if((d|0)>(g|0)&(d|0)>(j|0))break a;p=c&255;d=f&255;e=J[a+208>>2];if((g|0)==(j|0)){wn(a,g,e,d,b,p);break a}h=c-f|0;if((b|0)==(e|0)){e=(h|0)>0;h=e<<8;d=h-d|0;J[a+184>>2]=d+J[a+184>>2];f=b<<1&510;J[a+180>>2]=J[a+180>>2]+P(f,d);k=b>>8;d=g;g=e?1:-1;d=d+g|0;Th(a,k,d);if((d|0)!=(j|0)){e=(e<<9)-256|0;m=P(e,f);while(1){J[a+180>>2]=m+J[a+180>>2];J[a+184>>2]=e+J[a+184>>2];d=d+g|0;Th(a, -k,d);if((d|0)!=(j|0))continue;break}}d=h+(c|-256)|0;J[a+184>>2]=d+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+P(d,f);break a}i=b-e|0;m=1;f=d;b:{if((h|0)>0){k=256;d=256-d|0;break b}h=0-h|0;m=-1}o=e;l=f;d=P(d,i);e=(d|0)/(h|0)|0;f=d-P(e,h)|0;n=f>>31;e=(o+e|0)+n|0;wn(a,g,o,l,e,k);d=g+m|0;Th(a,e>>8,d);c:{if((d|0)==(j|0)){g=256-k|0;break c}i=i<<8;g=(i|0)/(h|0)|0;i=i-P(g,h)|0;l=i>>31;i=(l&h)+i|0;l=g+l|0;g=256-k|0;f=f+(h&n)|0;while(1){o=e;f=f+i|0;n=(f|0)>=(h|0);e=n+(e+l|0)|0;wn(a,d,o,g,e,k);d=d+m|0;Th(a,e>>8,d); -f=f-(n?h:0)|0;if((d|0)!=(j|0))continue;break}}wn(a,j,e,g,b,p)}J[a+212>>2]=c;J[a+208>>2]=b}function Fj(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;g=J[a>>2];J[h+12>>2]=g;j=b>>>0<=g>>>0;a:{if(j)break a;b:{c:{d:{e:{f:{f=K[g|0];if((f|0)==91)f=93;else{if((f|0)!=123)break f;f=125}j=f;g=g+1|0;J[h+12>>2]=g;if(d)break e;if(b>>>0<=g>>>0)break a;while(1){ae(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if((j|0)==K[f|0])break b;If(h+12|0,b,e);g=J[h+12>>2];if((f|0)==(g|0))break d;i=i+1|0;if(b>>> -0>g>>>0)continue;break}break a}if(!d)break c;if(j)break a;ae(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if(!K[f|0])break b;if((c|0)<=0){g=f;break a}k=d,l=If(h+12|0,b,e),J[k>>2]=l;g=J[h+12>>2];i=(f|0)==(g|0)?-1:1;break a}if(b>>>0<=g>>>0)break a;c=(c|0)>0?c:0;while(1){ae(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if((j|0)==K[f|0])break b;if((c|0)==(i|0)){g=f;i=c;break a}k=(i<<2)+d|0,l=If(h+12|0,b,e),J[k>>2]=l;g=J[h+12>>2];if((f|0)==(g|0))break d;i=i+1|0;if(b>>>0>g>>>0)continue;break}break a}i= --1;g=f;break a}if(j)break a;ae(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if(!K[f|0])break b;If(h+12|0,b,e);g=J[h+12>>2];i=(f|0)==(g|0)?-1:1;break a}g=f+1|0}J[a>>2]=g;xb=h+16|0;return i}function DV(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;f=xb-16|0;xb=f;ae(a,J[a+8>>2]);g=J[a+8>>2];d=J[a>>2];J[f+12>>2]=d;a:{if(d>>>0>=g>>>0)break a;b:{c:{d:{e:{f:{e=K[d|0];if((e|0)==91)i=93;else{if((e|0)!=123)break f;i=125}d=d+1|0;J[f+12>>2]=d;if(c)break e;if(d>>>0>=g>>>0)break a;while(1){ae(f+ -12|0,g);e=J[f+12>>2];if(g>>>0<=e>>>0){d=e;break a}if(K[e|0]==(i|0))break b;If(f+12|0,g,0);d=J[f+12>>2];if((d|0)==(e|0))break d;h=h+1|0;if(d>>>0>>0)continue;break}break a}ae(f+12|0,g);e=J[f+12>>2];if(!c)break c;if(e>>>0>=g>>>0){d=e;break a}if(!K[e|0])break b;if((b|0)<=0){d=e;break a}j=c,k=If(f+12|0,g,0)>>>16|0,I[j>>1]=k;d=J[f+12>>2];h=(d|0)==(e|0)?-1:1;break a}if(d>>>0>=g>>>0)break a;b=(b|0)>0?b:0;while(1){ae(f+12|0,g);e=J[f+12>>2];if(g>>>0<=e>>>0){d=e;break a}if(K[e|0]==(i|0))break b;if((b|0)== -(h|0)){d=e;h=b;break a}j=(h<<1)+c|0,k=If(f+12|0,g,0)>>>16|0,I[j>>1]=k;d=J[f+12>>2];if((d|0)==(e|0))break d;h=h+1|0;if(d>>>0>>0)continue;break}break a}h=-1;d=e;break a}if(e>>>0>=g>>>0){d=e;break a}if(!K[e|0])break b;If(f+12|0,g,0);d=J[f+12>>2];h=(d|0)==(e|0)?-1:1;break a}d=e+1|0}J[a>>2]=d;xb=f+16|0;return h|0}function sr(a,b,c){var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;d=J[a+188>>2];if(d)Kb(d);d=Sd(a,J[a+180>>2],4,275043);J[a+188>>2]=d;a:{if(!d){b=-1;break a}b:{c:{d:{if(L[a+88>>1]!=1){e=P(c,12)+14|0;g= -Ab[J[a+648>>2]](J[a+628>>2])|0;if(c)while(1){d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+283312>>2];else d=0;if(!d){c=J[a+628>>2];a=J[a>>2];J[f+4>>2]=L[b+2>>1];J[f>>2]=a;Ob(c,283936,275299,f);b=-1;break a}d=P(d,J[b+4>>2]);e=(d>>>0>4?d:0)+e|0;b=b+12|0;c=c-1|0;if(c&65535)continue;break}e=g-e|0;e=L[a+138>>1]==2?(e>>>0)/L[a+98>>1]|0:e;d=J[a+188>>2];if(!J[a+180>>2])break d;c=0;while(1){b=c;J[d+(b<<2)>>2]=e;c=b+1|0;if(c>>>0>2])continue;break}break c}if(K[a+13|0]&4){c=cg(a);if(!J[a+180>>2])break b;d=J[a+ -188>>2];b=0;while(1){J[d+(b<<2)>>2]=c;b=b+1|0;if(b>>>0>2])continue;break}break b}b=Ye(a);if(!J[a+180>>2])break b;c=P(b,M[a+60>>2]/M[a+176>>2]|0);d=J[a+188>>2];b=0;while(1){J[d+(b<<2)>>2]=c;b=b+1|0;if(b>>>0>2])continue;break}break b}e=J[d-4>>2];b=-1}b=b<<2;c=J[b+J[a+184>>2]>>2];if(c+e>>>0<=g>>>0)break b;J[b+d>>2]=g-c}c=J[a+40>>2];J[a+40>>2]=c|16777216;b=1;if(c&131072)break a;J[a+100>>2]=J[a+60>>2]}xb=f+16|0;return b}function z9(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;a:{e=J[J[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0))break a;dk(b,a);g=a-e|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 3:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 2:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 1:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;break;case 0:break b}g=g-e|0;if((g|0)>0)continue;break}break a}c=e-4|0;h=e&3;j=e-5>>>0>2;f=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f; -case 4:break g;default:break h}d=0;a=c;if(h)while(1){i=b+f|0;I[i>>1]=L[i>>1]+L[b>>1];a=a-1|0;b=b+2|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!j)break g;while(1){d=b+f|0;I[d>>1]=L[d>>1]+L[b>>1];d=(b+2|0)+f|0;I[d>>1]=L[d>>1]+L[b+2>>1];d=(b+4|0)+f|0;I[d>>1]=L[d>>1]+L[b+4>>1];d=(b+6|0)+f|0;I[d>>1]=L[d>>1]+L[b+6>>1];b=b+8|0;d=(a|0)>4;a=a-4|0;if(d)continue;break}}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>> -1]+L[b>>1];b=b+2|0}g=g-e|0;if((g|0)>0)continue;break}}}function QF(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=J[a+124>>2];c=e;d=e>>>2|0;e=J[a+120>>2];i=e>>>0>2]?c:d;c=J[a+108>>2];d=(c-J[a+44>>2]|0)+262|0;n=c>>>0>=d>>>0?d:0;d=J[a+144>>2];h=J[a+116>>2];o=d>>>0>>0?d:h;k=J[a+56>>2];f=c+k|0;p=f+257|0;q=f+258|0;c=e+f|0;l=K[c|0];m=K[c-1|0];r=J[a+52>>2];s=J[a+64>>2];while(1){a:{c=b+k|0;d=c+e|0;b:{if(K[d|0]!=(l|0)|K[d-1|0]!=(m|0)|(K[c|0]!=K[f|0]|K[c+1|0]!=K[f+ -1|0]))break b;g=2;d=c+2|0;c:{d:{e:{f:{g:{h:{i:{while(1){c=f+g|0;if(K[c+1|0]==K[d+1|0]){if(K[c+2|0]!=K[d+2|0])break i;if(K[c+3|0]!=K[d+3|0])break h;if(K[c+4|0]!=K[d+4|0])break g;if(K[c+5|0]!=K[d+5|0])break f;if(K[c+6|0]!=K[d+6|0])break e;if(K[c+7|0]!=K[d+7|0])break d;j=g>>>0>249;g=g+8|0;c=g+f|0;if(j)break c;j=K[d+8|0];d=d+8|0;if(K[c|0]==(j|0))continue;break c}break}c=c+1|0;break c}c=c+2|0;break c}c=c+3|0;break c}c=c+4|0;break c}c=c+5|0;break c}c=c+6|0;break c}c=c+7|0}d=c-q|0;c=d+258|0;if((c|0)<=(e| -0))break b;J[a+112>>2]=b;if((c|0)>=(o|0)){e=c;break a}l=K[c+f|0];m=K[d+p|0];e=c}b=L[((b&r)<<1)+s>>1];if(n>>>0>=b>>>0)break a;i=i-1|0;if(i)continue}break}return e>>>0>>0?e:h}function Kca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=xb-16|0;xb=j;n=e&3;o=e>>>2|0;p=h<<2;while(1){e=o;while(1){c=i;h=K[c+4|0];i=K[c+5|0];k=j+12|0;l=j+8|0;m=j+4|0;uc(J[a+68>>2],K[c|0],h,i,k,l,m);d=b;J[d>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+ -68>>2],K[c+1|0],h,i,k,l,m);J[d+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[c+2|0],h,i,k,l,m);J[d+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;uc(J[a+68>>2],K[c+3|0],h,i,k,l,m);J[d+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=c+6|0;b=d+16|0;e=e-1|0;if(e)continue;break}if(n){e=K[c+11|0];h=K[c+10|0];a:switch(n-1|0){case 2:uc(J[a+68>>2],K[c+8|0],h,e,j+12|0,j+8|0,j+4|0);J[d+24>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:uc(J[a+68>>2],K[c+7| -0],h,e,j+12|0,j+8|0,j+4|0);J[d+20>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 0:uc(J[a+68>>2],K[i|0],h,e,j+12|0,j+8|0,j+4|0);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;default:break a}b=(n<<2)+b|0;d=12}else d=6;i=(d+c|0)+g|0;b=b+p|0;f=f-1|0;if(f)continue;break}xb=j+16|0}function KA(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;h=J[a>>2]-12|0;g=J[h>>2];d=g+a|0;e=J[d+12>>2];f=J[d+16>>2];if(f>>>0>e+3>>>0){m=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<< -16|K[e+3|0]<<24);J[d+12>>2]=e+4;g=J[h>>2];d=g+a|0;f=J[d+16>>2];e=J[d+12>>2]}if(e+3>>>0>>0){n=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[(a+g|0)+12>>2]=e+4;g=J[h>>2];d=g+a|0;f=J[d+16>>2];e=J[d+12>>2]}if(e+3>>>0>>0){J[(a+g|0)+12>>2]=e+4;g=J[h>>2];d=g+a|0;f=J[d+16>>2];e=J[d+12>>2]}d=e+4|0;J[(a+g|0)+12>>2]=d>>>0>>0?d:f;l=1;i=J[h>>2]+a|0;d=J[i+12>>2];if(d+3>>>0>2]){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[i+12>>2]=d+4;l=!e}if(c){i=J[a+116>>2]-28|0;d=Pb(i);h=J[h>>2]+a|0; -j=J[h+16>>2];f=J[h+12>>2];c=j-f|0;k=c>>>0>>0?c:i;a:{if(!k)break a;e=0;if((k|0)!=1){o=k&-2;c=0;while(1){b:{if(f>>>0>=j>>>0){g=0;break b}g=K[f|0];f=f+1|0;J[h+12>>2]=f}H[e+d|0]=g;g=0;if(f>>>0>>0){g=K[f|0];f=f+1|0;J[h+12>>2]=f}H[d+(e|1)|0]=g;e=e+2|0;c=c+2|0;if((o|0)!=(c|0))continue;break}}if(!(k&1))break a;g=0;if(f>>>0>>0){g=K[f|0];J[h+12>>2]=f+1}H[e+d|0]=g}if(l){J[b+28>>2]=n;J[b+24>>2]=m;i=J[a+116>>2]-28|0}sn(b,d,i);Kb(d)}}function rH(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=xb-48|0;xb=e;g=J[a+4>>2];H[b+557|0]=0;J[b+560>>2]=a;if(!(!J[b+116>>2]|!J[b+120>>2])){i=Nb(b+188|0,0,364);J[b+528>>2]=3932;J[b+520>>2]=-1;J[b+392>>2]=1;J[b+588>>2]=d;J[b+584>>2]=c;J[b+552>>2]=b;J[b+384>>2]=2596864;J[b+388>>2]=7;a:{if(!K[a+32|0]){f=8192;d=97;break a}f=20480;d=J[a+1556>>2]+1|0}h=J[a>>2];c=J[h>>2];j=J[b+176>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+36>>2]=i;J[e+32>>2]=f;J[e+4>>2]=h;J[e+40>>2]=j;f=Tb(c,4,0,d,0,e+44|0);J[e+20>>2]=f;b:{c:{if(!J[e+ -44>>2]){J[e+24>>2]=f;J[e+28>>2]=d;break c}if(f)Ab[J[c+8>>2]](c,f);f=0;J[e+20>>2]=0;if(J[e+44>>2])break b}f=bc(g,J[b+116>>2]+J[a+12>>2]|0);if(f)break b;f=Tc(g,J[b+120>>2]);if(f)break b;f=mH(e+4|0,J[g+32>>2],J[g+36>>2]);Ec(g);if(f)break b;H[b+188|0]=K[b+188|0]&254;a=J[b+532>>2];d:{e:{if((a|0)<0){a=0-a|0;break e}if(a)break d;a=987654321}J[b+532>>2]=a}if(M[b+388>>2]>=1001)J[b+388>>2]=7;f=0;if(M[b+392>>2]<1001)break b;J[b+392>>2]=1}J[b+600>>2]=0;J[b+596>>2]=J[b+592>>2];a=J[J[e+4>>2]>>2];b=J[e+20>>2];if(b)Ab[J[a+ -8>>2]](a,b)}xb=e+48|0;return f|0}function qR(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;j=xb-16|0;xb=j;i=c;while(1){a:{if((d|0)==(i|0)){i=d;break a}if(!K[i|0])break a;i=i+1|0;continue}break}J[h>>2]=f;J[e>>2]=c;while(1){b:{c:{d:{if((c|0)==(d|0)|(f|0)==(g|0))break d;l=J[b+4>>2];J[j+8>>2]=J[b>>2];J[j+12>>2]=l;k=xb-16|0;xb=k;J[k+12>>2]=J[a+8>>2];m=Tf(k+8|0,k+12|0);J[195395]=0;l=fy(f,e,i-c|0,g-f>>2,b);n=J[195395];J[195395]=0;e:{if((n|0)!=1){re(m);xb=k+ -16|0;break e}a=Z()|0;re(m);ba(a|0);B()}f:{g:{h:{i:{if((l|0)==-1){while(1){j:{J[h>>2]=f;if(J[e>>2]==(c|0))break j;g=1;k:{l:{m:{b=jx(f,c,i-c|0,j+8|0,J[a+8>>2]);switch(b+2|0){case 2:break k;case 1:break m;case 0:break g;default:break l}}J[e>>2]=c;break i}g=b}c=c+g|0;f=J[h>>2]+4|0;continue}break}J[e>>2]=c;break d}f=J[h>>2]+(l<<2)|0;J[h>>2]=f;if((f|0)==(g|0))break f;c=J[e>>2];if((d|0)==(i|0)){i=d;continue}if(!jx(f,c,1,b,J[a+8>>2]))break h}a=2;break c}J[h>>2]=J[h>>2]+4;c=J[e>>2]+1|0;J[e>>2]=c;i=c;while(1){if((d| -0)==(i|0)){i=d;break b}if(!K[i|0])break b;i=i+1|0;continue}}J[e>>2]=c;a=1;break c}c=J[e>>2]}a=(c|0)!=(d|0)}xb=j+16|0;return a|0}f=J[h>>2];continue}}function D9(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;a:{e=J[J[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0))break a;g=a-e|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 3:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 2:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 1:c=a+b|0;I[c>>1]=L[c>>1]+ -L[b>>1];b=b+2|0;break;case 0:break b}g=g-e|0;if((g|0)>0)continue;break}break a}c=e-4|0;h=e&3;j=e-5>>>0>2;f=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}d=0;a=c;if(h)while(1){i=b+f|0;I[i>>1]=L[i>>1]+L[b>>1];a=a-1|0;b=b+2|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!j)break g;while(1){d=b+f|0;I[d>>1]=L[d>>1]+L[b>>1];d=(b+2|0)+f|0;I[d>>1]=L[d>>1]+L[b+2>>1];d=(b+4|0)+f|0;I[d>>1]=L[d>>1]+L[b+4>>1];d=(b+6|0)+f|0;I[d>> -1]=L[d>>1]+L[b+6>>1];b=b+8|0;d=(a|0)>4;a=a-4|0;if(d)continue;break}}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}g=g-e|0;if((g|0)>0)continue;break}}}function qg(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;g=xb-16|0;xb=g;a:{if((c|0)<=0)break a;i=J[a+4>>2];while(1){h=(k<<3)+b|0;b:{if(!J[h>>2]){Yg(i);if(J[i+12>>2]>1)break a;d=J[i>>2];f=d-1|0;l=J[i+8>>2];c:{while(1){j=3;if(d>>> -0>=l>>>0){e=d;break c}e=d+1|0;J[i>>2]=e;m=K[d|0];d=e;d:switch(m-10|0){case 16:break c;case 0:case 3:break d;default:continue}break}j=2}J[i+12>>2]=j;J[g+8>>2]=f;break b}f=al(i);J[g+8>>2]=f;if(!f)break a;e=J[i>>2]}d=e-f|0;e=d-1|0;e:{f:switch(J[h>>2]){case 0:case 1:d=mr(J[a>>2],d,g+4|0);J[h+4>>2]=d;if(J[g+4>>2])break e;Mb(d,f,e);H[e+J[h+4>>2]|0]=0;break e;case 2:n=h,o=If(g+8|0,e+f|0,0),J[n+4>>2]=o;break e;case 3:J[g+12>>2]=f;m=g+12|0;l=e+f|0;j=wg(m,l,10);e=0;d=J[g+12>>2];g:{if((f|0)==(d|0))break g;if(!(K[d| -0]!=35|d>>>0>=l>>>0)){f=d+1|0;J[g+12>>2]=f;j=wg(m,l,j);d=J[g+12>>2];if((f|0)==(d|0))break g}J[g+8>>2]=d;e=j}J[h+4>>2]=e;break e;case 4:if((e|0)==4)e=Zb(f,23711,4);else e=1;H[h+4|0]=!e;break e;case 5:break f;default:break e}d=J[a+12>>2];if(d){n=h,o=Ab[d|0](f,e,J[a+16>>2])|0,J[n+4>>2]=o;break e}J[h+4>>2]=0}k=k+1|0;if((k|0)!=(c|0))continue;break}k=c}xb=g+16|0;return k}function g9(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;f=xb-16|0;xb=f;a:{if(!b|!c)break a;d=J[a+12>>2];if(d){Ab[J[J[d>> -2]+12>>2]](d)|0;J[a+12>>2]=0}d=J[a+8>>2];if(d){h=a,i=Ab[J[J[d>>2]+52>>2]](d)|0,J[h+12>>2]=i;d=J[a+8>>2];i=0,j=Ab[J[J[d>>2]+24>>2]](d)|0,h=J[J[0]+24>>2],Ab[h](i|0,j|0);d=J[a+12>>2];Ab[J[J[d>>2]+68>>2]](d,0);d=J[a+12>>2]}else d=0;e=J[a+16>>2];J[e+24>>2]=d;g=J[a+20>>2];J[(g+J[J[g>>2]-12>>2]|0)+24>>2]=d;if(Ab[J[J[e>>2]+116>>2]](e,b,c)|0){d=J[a+16>>2];Ab[J[J[d>>2]+128>>2]](d);d=J[a+16>>2];if(!K[d+33|0]){d=1;J[a+24>>2]=1;break a}b:{if(K[d+32|0])break b;e=J[d+28>>2];if(!e)break b;Kb(e);J[d+28>>2]=0}J[d+ -4>>2]=0;J[d+8>>2]=0;H[d+33|0]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;Ab[J[J[d>>2]+12>>2]](d)}d=0;e=J[a+20>>2];if(!e)break a;H[f+15|0]=1;if(!(Ab[J[J[e>>2]+8>>2]](e,b,c,f+15|0)|0))break a;b=J[a+20>>2];Ab[J[J[b>>2]+20>>2]](b);b=J[a+20>>2];b=J[J[b>>2]-12>>2]+b|0;if(!K[b+33|0]){J[a+24>>2]=2;d=1;break a}c:{if(K[b+32|0])break c;a=J[b+28>>2];if(!a)break c;Kb(a);J[b+28>>2]=0}J[b+4>>2]=0;J[b+8>>2]=0;H[b+33|0]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;Ab[J[J[b>>2]+12>>2]](b)}xb=f+16|0;return d|0}function fga(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;p=xb-144|0;xb=p;q=J[a+332>>2];a=J[b+84>>2];b=p;while(1){g=J[a+64>>2];k=I[c+32>>1];i=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+128>>2],I[c+64>>1]);n=i+P(j,-11586)>>11;f=P(J[a+32>>2],I[c+16>>1]);h=P(J[a+96>>2],I[c+48>>1]);l=P(J[a+160>>2],I[c+80>>1]);o=f-(h+l|0)<<2;J[b+96>>2]=n-o;J[b+24>>2]=n+o;g=P(P(g,k),10033);k=i+P(j,5793)|0;j=g+k|0;i=f+h<<13;f=P(f+l|0,2998);i=i+f|0;J[b+120>>2]=j-i>>11;J[b>>2]=j+i>>11;g=k-g|0;f=f+ -(l-h<<13)|0;J[b+72>>2]=g-f>>11;J[b+48>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;m=m+1|0;if((m|0)!=6)continue;break}a=q+128|0;c=p;m=0;while(1){b=J[(m<<2)+d>>2]+e|0;f=J[c+20>>2];h=J[c+4>>2];q=P(f+h|0,2998);l=J[c+12>>2];g=q+(l+h<<13)|0;j=(J[c>>2]<<13)+131072|0;k=J[c+16>>2];i=j+P(k,5793)|0;n=P(J[c+8>>2],10033);o=i+n|0;H[b|0]=K[a+(g+o>>>18&1023)|0];H[b+5|0]=K[a+(o-g>>>18&1023)|0];h=h-(f+l|0)<<13;g=j+P(k,-11586)|0;H[b+1|0]=K[a+(h+g>>>18&1023)|0];H[b+4|0]=K[a+(g-h>>>18&1023)|0];f=(f-l<<13)+q|0;h=i-n|0;H[b+2|0]= -K[a+(f+h>>>18&1023)|0];H[b+3|0]=K[a+(h-f>>>18&1023)|0];c=c+24|0;m=m+1|0;if((m|0)!=6)continue;break}xb=p+144|0}function gt(a,b,c,d){var e=0,f=0,g=0,h=Q(0),i=0;a:{b:{c:{e=K[a+4|0]|K[a+5|0]<<8;e=(e<<8|e>>>8)&65535;if(e-1>>>0>=3){if((e|0)!=32768)break a;f=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=(f<<24|(f&65280)<<8)>>>16|0;e=K[c+6|0]|K[c+7|0]<<8;if(a>>>0<((e<<8|e>>>8)&65535)>>>0)break c;h=Q(0);break b}c=J[b+88>>2];if(!c)break a;d=K[a|0]|K[a+1|0]<<8;d=(d<<8|d>>>8)&65535;if(d>>>0>c>>>0)break a; -g=K[a+2|0]|K[a+3|0]<<8;if(c>>>0>((g<<8|g>>>8)&65535)>>>0)break a;g=a;a=c-d|0;d=4-e|0;g=g+(a>>>d<<1)|0;g=K[g+6|0]|K[g+7|0]<<8;a=((g<<8|g>>>8)&65535)>>>((a^-1|-1<>>(-1<>>0>=d>>>1>>>0?d:0;if((a|0)==(d|0))break a;b=J[b+28>>2];a=a-d|0;return Lpa(Kpa(b,b>>31,a,a>>31),zb,c,0)}e=J[b+104>>2];g=J[b+108>>2];a=(a<<2)+c|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);if(a)a=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))+c|0;else a=169776;i=f>>>8&65280|f>>>24;f= -K[c+2|0]|K[c+3|0]<<8|(K[c+4|0]<<16|K[c+5|0]<<24);if(f)c=(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))+c|0;else c=169776;h=pc(a,i,g,e,c,d)}h=Q(V(Q(Q(h*N[b+64>>2])+Q(.5))));if(Q(R(h))>>8)&65535;if(e-1>>>0>=3){if((e|0)!=32768)break a;f=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=(f<<24|(f&65280)<<8)>>>16|0;e=K[c+6|0]|K[c+7|0]<<8;if(a>>>0<((e<<8|e>>>8)&65535)>>>0)break c; -h=Q(0);break b}c=J[b+92>>2];if(!c)break a;d=K[a|0]|K[a+1|0]<<8;d=(d<<8|d>>>8)&65535;if(d>>>0>c>>>0)break a;g=K[a+2|0]|K[a+3|0]<<8;if(c>>>0>((g<<8|g>>>8)&65535)>>>0)break a;g=a;a=c-d|0;d=4-e|0;g=g+(a>>>d<<1)|0;g=K[g+6|0]|K[g+7|0]<<8;a=((g<<8|g>>>8)&65535)>>>((a^-1|-1<>>(-1<>>0>=d>>>1>>>0?d:0;if((a|0)==(d|0))break a;b=J[b+32>>2];a=a-d|0;return Lpa(Kpa(b,b>>31,a,a>>31),zb,c,0)}e=J[b+104>>2];g=J[b+108>>2];a=(a<<2)+c|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<< -16|K[a+11|0]<<24);if(a)a=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))+c|0;else a=169776;i=f>>>8&65280|f>>>24;f=K[c+2|0]|K[c+3|0]<<8|(K[c+4|0]<<16|K[c+5|0]<<24);if(f)c=(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))+c|0;else c=169776;h=pc(a,i,g,e,c,d)}h=Q(V(Q(Q(h*N[b+68>>2])+Q(.5))));if(Q(R(h))> -2]>>31|1);p=J[b>>2];q=J[b+32>>2];r=b+40|0;b=f;while(1){J[i+12>>2]=0;j=J[d>>2];k=((j&255)<<2)+r|0;h=J[k>>2];b:{if(!((h|0)==-1|(h>>>24|0)!=(j>>>8|0))){h=h&16777215;break b}J[195395]=0;ha(689,q|0,j|0,p|0,i+12|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;s=j>>>0>65535;l=J[i+12>>2];h=l>>31;m=Q(Q(Q((h^l)-h|0)*o)+Q(512));c:{if(Q(R(m))>10;if(s|h>>>0>16777215)break b;J[k>>2]=j<<16&-16777216|h}J[b>>2]=h;b=b+g|0;d=d+e|0;n=n+1|0;if((n|0)!=(c|0))continue;break}}b= -J[a+48>>2];d:{if(!c|(K[a+44|0]|!b))break d;a=J[a+28>>2]<0?0-b|0:b;if(c>>>0>=4){h=c&-4;d=0;while(1){b=J[f>>2];J[f>>2]=(b?a:0)+b;b=f+g|0;e=J[b>>2];J[b>>2]=e+(e?a:0);b=b+g|0;e=J[b>>2];J[b>>2]=e+(e?a:0);b=b+g|0;e=J[b>>2];J[b>>2]=e+(e?a:0);f=b+g|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}b=c&3;if(!b)break d;h=0;while(1){c=J[f>>2];J[f>>2]=(c?a:0)+c;f=f+g|0;h=h+1|0;if((b|0)!=(h|0))continue;break}}td();xb=i+16|0;return}a=Z()|0;td();ba(a|0);B()}function jF(){var a=0,b=0;b=Qb(1040);if(b){a=Nb(b,0,1040);J[a+ -1024>>2]=64;J[a+1008>>2]=63;J[a+992>>2]=62;J[a+976>>2]=61;J[a+960>>2]=60;J[a+944>>2]=59;J[a+928>>2]=58;J[a+912>>2]=57;J[a+896>>2]=56;J[a+880>>2]=55;J[a+864>>2]=54;J[a+848>>2]=53;J[a+832>>2]=52;J[a+816>>2]=51;J[a+800>>2]=50;J[a+784>>2]=49;J[a+768>>2]=48;J[a+752>>2]=47;J[a+736>>2]=46;J[a+720>>2]=45;J[a+704>>2]=44;J[a+688>>2]=43;J[a+672>>2]=42;J[a+656>>2]=41;J[a+640>>2]=40;J[a+624>>2]=39;J[a+608>>2]=38;J[a+592>>2]=37;J[a+576>>2]=36;J[a+560>>2]=35;J[a+544>>2]=34;J[a+528>>2]=33;J[a+512>>2]=32;J[a+496>> -2]=31;J[a+480>>2]=30;J[a+464>>2]=29;J[a+448>>2]=28;J[a+432>>2]=27;J[a+416>>2]=26;J[a+400>>2]=25;J[a+384>>2]=24;J[a+368>>2]=23;J[a+352>>2]=22;J[a+336>>2]=21;J[a+320>>2]=20;J[a+304>>2]=19;J[a+288>>2]=18;J[a+272>>2]=17;J[a+256>>2]=16;J[a+240>>2]=15;J[a+224>>2]=14;J[a+208>>2]=13;J[a+192>>2]=12;J[a+176>>2]=11;J[a+160>>2]=10;J[a+144>>2]=9;J[a+128>>2]=8;J[a+112>>2]=7;J[a+96>>2]=6;J[a+80>>2]=5;J[a+64>>2]=4;J[a+48>>2]=3;J[a+32>>2]=2;J[a+16>>2]=1;J[a+88>>2]=5;J[a+92>>2]=0;J[a+72>>2]=3;J[a+76>>2]=0;J[a+40>> -2]=2;J[a+44>>2]=0;J[a+24>>2]=1;J[a+28>>2]=0}return b}function Pda(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;e=a;while(1){d=J[(i<<2)+b>>2]+c|0;g=K[d+4|0];h=K[d+3|0];f=g+h|0;j=K[d+7|0];k=K[d|0];l=j+k|0;m=f+l|0;n=K[d+6|0];o=K[d+1|0];p=n+o|0;q=K[d+5|0];r=K[d+2|0];d=q+r|0;s=p+d|0;J[e+16>>2]=m-s;J[e>>2]=(m+s|0)-1024;m=p-d|0;d=l-f|0;f=P(m+d|0,181)>>8;J[e+24>>2]=d-f;J[e+8>>2]=d+f;d=h-g|0;g=r-q|0;h=d+g|0;l=o-n|0;d=k-j|0;j=l+d|0;f=P(h-j|0,98)>>8;h=f+(P(h,139)>> -8)|0;g=P(g+l|0,181)>>8;k=d-g|0;J[e+20>>2]=h+k;J[e+12>>2]=k-h;d=d+g|0;f=f+(P(j,334)>>8)|0;J[e+28>>2]=d-f;J[e+4>>2]=d+f;e=e+32|0;i=i+1|0;if((i|0)!=8)continue;break}b=7;while(1){d=J[a+128>>2];i=J[a+96>>2];c=d+i|0;f=J[a+224>>2];g=J[a>>2];e=f+g|0;h=c+e|0;j=J[a+160>>2];k=J[a+64>>2];l=j+k|0;m=J[a+192>>2];n=J[a+32>>2];o=m+n|0;p=l+o|0;J[a+128>>2]=h-p;J[a>>2]=h+p;c=e-c|0;e=P(c+(o-l|0)|0,181)>>8;J[a+192>>2]=c-e;J[a+64>>2]=c+e;c=i-d|0;d=k-j|0;i=c+d|0;h=n-m|0;c=g-f|0;f=h+c|0;e=P(i-f|0,98)>>8;i=e+(P(i,139)>>8)| -0;d=P(d+h|0,181)>>8;g=c-d|0;J[a+160>>2]=i+g;J[a+96>>2]=g-i;c=c+d|0;e=e+(P(f,334)>>8)|0;J[a+224>>2]=c-e;J[a+32>>2]=c+e;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function Nk(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=xb-1312|0;xb=g;f=J[a+4>>2];j=J[f+492>>2];k=J[j+12>>2];h=J[J[f+128>>2]+52>>2];i=J[f+452>>2];e=a+1388|0;J[e>>2]=J[f+448>>2];J[e+4>>2]=i;e=J[f+444>>2];J[a+1380>>2]=J[f+440>>2];J[a+1384>>2]=e;e=J[f+460>>2];J[a+1396>>2]=J[f+456>>2];J[a+1400>>2]=e;a:{b:{if(!h){e=b<<2;J[c>>2]=J[e+J[f+428>> -2]>>2];J[c+4>>2]=J[e+J[f+432>>2]>>2];break b}e=Ab[J[J[h>>2]>>2]](J[h+4>>2],b,c)|0;if(e)break a}c:{if(K[a+70|0]){e=Ab[J[k+8>>2]](a,J[c>>2],J[c+4>>2])|0;break c}i=g+656|0;e=i;Ab[J[j+24>>2]](e,a,1);l=f;m=f+168|0;f=g+4|0;Ab[J[j+28>>2]](l,m,f);J[g+1192>>2]=f;e=Ab[J[k+12>>2]](e,J[c>>2],J[c+4>>2])|0;if((e&255)!=164)break c;H[J[a+8>>2]+160|0]=0;H[d|0]=1;e=Ab[J[k+12>>2]](i,J[c>>2],J[c+4>>2])|0}if(e|!h)break a;if(!J[J[h>>2]+8>>2]){e=0;break a}c=J[a+32>>2];J[g+8>>2]=0;J[g+4>>2]=((c+(c>>31)|0)+32768&-65536)>> -16;c=J[a+40>>2];J[g+12>>2]=(((c>>31)+c|0)+32768&-65536)>>16;c=J[a+44>>2];J[g+16>>2]=(((c>>31)+c|0)+32768&-65536)>>16;e=Ab[J[J[h>>2]+8>>2]](J[h+4>>2],b,0,g+4|0)|0;J[a+32>>2]=J[g+4>>2]<<16;J[a+40>>2]=J[g+12>>2]<<16;J[a+44>>2]=J[g+16>>2]<<16}xb=g+1312|0;return e}function uba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=xb-176|0;xb=c;e=J[a+584>>2];d=J[a+48>>2];if(d&512){a:{b:{if(L[a+88>>1]==4){Ee(272410,18,1,b);d=272199;if(K[e+28|0]&2)break b;break a}Ee(273169,18,1,b);d=272199;f=J[e+28>>2];if(f&1){J[c+ -160>>2]=272199;Sc(b,273331,c+160|0);f=J[e+28>>2];d=273661}if(f&4){J[c+144>>2]=d;Sc(b,273768,c+144|0);f=J[e+28>>2];d=273661}if(!(f&2))break a}J[c+128>>2]=d;Sc(b,272759,c+128|0)}d=J[e+28>>2];J[c+116>>2]=d;J[c+112>>2]=d;Sc(b,274229,c+112|0);d=J[a+48>>2]}if(d&8){Ee(274361,11,1,b);c:{d:switch(L[e+16>>1]){case 0:Ee(274610,6,1,b);break c;case 1:Ee(274771,21,1,b);break c;case 2:break d;default:break c}Ee(274871,19,1,b)}d=L[e+16>>1];J[c+100>>2]=d;J[c+96>>2]=d;Sc(b,275188,c+96|0);d=J[a+48>>2]}if(d&4){J[c+80>> -2]=J[e+24>>2];Sc(b,275348,c+80|0);d=J[a+48>>2]}if(d&16){J[c+64>>2]=J[e+20>>2];Sc(b,275537,c- -64|0);d=J[a+48>>2]}if(d&32){J[c+48>>2]=J[e+32>>2];Sc(b,275713,c+48|0);d=J[a+48>>2]}if(d&64){J[c+32>>2]=J[e+36>>2];Sc(b,275903,c+32|0);d=J[a+48>>2]}if(d&128){J[c+16>>2]=J[e+40>>2];Sc(b,276123,c+16|0);d=J[a+48>>2]}if(d&256){J[c>>2]=J[e+44>>2];Sc(b,279914,c)}xb=c+176|0}function yI(a,b,c){var d=0,e=0;e=J[b+92>>2];if(e)d=J[e+4>>2]==1937337698;else d=0;e=vc(1,1064);if(e){H[e+5|0]=c;H[e+4|0]=d;J[e+32>>2]=b;J[e>> -2]=2;Nb(e+36|0,255,1028);while(1){a:{b=J[194111];if(b)break a;b=Lt();It(b,669);Ht(b,670);Gt(b,671);Kt(b,672);Ft(b,673);b:{if(!J[b+4>>2])break b;c=J[b+16>>2];c:{if(!c)break c;d=J[c+24>>2];if(!d)break c;c=J[b+12>>2];if(c)c=J[c+24>>2];else c=0;Ab[d|0](c)}J[b+44>>2]=674;c=J[b+12>>2];if(c)J[c+24>>2]=0;c=J[b+16>>2];if(!c)break b;J[c+24>>2]=0}II(b,675);d:{if(!J[b+4>>2])break d;c=J[b+16>>2];e:{if(!c)break e;d=J[c+44>>2];if(!d)break e;c=J[b+12>>2];if(c)c=J[c+44>>2];else c=0;Ab[d|0](c)}J[b- -64>>2]=676;c=J[b+ -12>>2];if(c)J[c+44>>2]=0;c=J[b+16>>2];if(!c)break d;J[c+44>>2]=0}HI(b,677);f:{if(!J[b+4>>2])break f;c=J[b+16>>2];g:{if(!c)break g;d=J[c+56>>2];if(!d)break g;c=J[b+12>>2];if(c)c=J[c+56>>2];else c=0;Ab[d|0](c)}J[b+76>>2]=678;c=J[b+12>>2];if(c)J[c+56>>2]=0;c=J[b+16>>2];if(!c)break f;J[c+56>>2]=0}GI(b,679);FI(b,680);EI(b,681);if(J[b+4>>2])J[b+4>>2]=0;c=J[194111];b=b?b:775196;J[194111]=c?c:b;if(!c)break a;xI(b);continue}break}AI(a,b,e,668)}}function Rl(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((b|c)<0)break a;f=J[a+4>>2];if(!f|J[a+16>>2]<=(b|0)|J[a+20>>2]<=(c|0))break a;h=J[a+44>>2];b:{if(h){i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);c:{if(!(!K[a+449|0]|(i|0)!=J[a+444>>2])){h=K[a+448|0];break c}H[a+449|0]=1;J[a+444>>2]=i;g=J[a+48>>2];n=g?g:h;d:{if((n|0)<=0){h=0;break d}l=f+40|0;o=i>>>16&255;p=i>>>8&255;i=i&255;m=2E5;h=0;g=0;while(1){f=K[(k|1)+l|0]-p|0;j=P(f,f);f=K[k+l|0]-i|0;j=j+P(f,f)|0;f=K[(k|2)+l|0]-o|0;f=j+P(f,f)|0;if(!f){h= -g;break d}j=f;f=(f|0)<(m|0);m=f?j:m;h=f?g:h;k=k+4|0;g=g+1|0;if((n|0)!=(g|0))continue;break}}H[a+448|0]=h}g=L[a+26>>1];if((g|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=h;break b}f=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,g)>>3)|0;e:switch(g-1|0){case 3:g=4-((b|0)%2<<2)&252;H[f|0]=K[f|0]&(15<>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;H[g|0]=K[d|0];H[g+1|0]=K[d+1|0];H[g+2|0]=K[d+2|0]}if(!e)break a; -ne(a,b,c,K[d+3|0])}}function AZ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];f=(J[a+4>>2]-c|0)/28|0;d=f+1|0;if(d>>>0<153391690){c=(J[a+8>>2]-c|0)/28|0;e=c<<1;d=c>>>0>=76695844?153391689:d>>>0>>0?e:d;if(d>>>0>=153391690)break c;c=P(f,28);d=P(d,28);f=Pb(d);c=c+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[c+20>>2]=J[b+20>>2];e=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=e;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+24>>2]=J[b+24>> -2];d=d+f|0;f=c+28|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-28|0;g=J[b+4>>2];c=c-28|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[c+20>>2]=J[b+20>>2];g=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=g;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+24>>2]=J[b+24>>2];if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){if(H[b-5|0]<0)Kb(J[b-16>>2]);a=b-28|0;if(H[b-17|0]<0)Kb(J[a>>2]); -b=a;if((d|0)!=(b|0))continue;break}b=d;break a}Ve(a);B()}zd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)Kb(b)}function Mb(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){qb(a|0,b|0,c|0);return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if(!(a&3)){c=a;break b}if(!c){c=a;break b}c=a;while(1){H[c|0]=K[b|0];b=b+1|0;c=c+1|0;if(!(c&3))break b;if(c>>>0>>0)continue;break}}d=e&-4;c:{if(d>>>0<64)break c;f=d+-64|0;if(f>>>0>>0)break c;while(1){J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=J[b+12>>2];J[c+ -16>>2]=J[b+16>>2];J[c+20>>2]=J[b+20>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=J[b+28>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=J[b+36>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=J[b+44>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=J[b+52>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=J[b+60>>2];b=b- -64|0;c=c- -64|0;if(f>>>0>=c>>>0)continue;break}}if(c>>>0>=d>>>0)break a;while(1){J[c>>2]=J[b>>2];b=b+4|0;c=c+4|0;if(d>>>0>c>>>0)continue;break}break a}if(e>>>0<4){c=a;break a}d=e-4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){H[c|0]=K[b| -0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+3|0];b=b+4|0;c=c+4|0;if(d>>>0>=c>>>0)continue;break}}if(c>>>0>>0)while(1){H[c|0]=K[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}return a}function BZ(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=xb-32|0;xb=e;if((d|0)==5){f=J[a+4>>2];g=J[a>>2];if((f|0)!=(g|0))while(1){if(H[f-5|0]<0)Kb(J[f-16>>2]);h=f-28|0;if(H[f-17|0]<0)Kb(J[h>>2]);f=h;if((g|0)!=(f|0))continue;break}J[a+4>>2]=g}a:{if(H[b+11|0]>=0){J[e+8>>2]=J[b+8>>2];f=J[b+4>>2]; -J[e>>2]=J[b>>2];J[e+4>>2]=f;break a}rf(e,J[b>>2],J[b+4>>2])}b=e+12|0;b:{c:{d:{e:{if(H[c+11|0]>=0){f=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=f;J[b+8>>2]=J[c+8>>2];break e}f=J[c+4>>2];c=J[c>>2];J[195395]=0;fa(1808,b|0,c|0,f|0);c=J[195395];J[195395]=0;if((c|0)==1)break d}J[e+24>>2]=d;c=J[a+4>>2];f:{if(c>>>0>2]){d=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]=d;J[c+8>>2]=J[e+8>>2];J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[c+20>>2]=J[b+8>>2];d=J[b+4>>2];J[c+12>>2]=J[b>>2];J[c+16>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>> -2]=0;J[c+24>>2]=J[e+24>>2];J[a+4>>2]=c+28;break f}J[195395]=0;$(3120,a|0,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break c;if(H[e+23|0]>=0)break f;Kb(J[e+12>>2])}if(H[e+11|0]<0)Kb(J[e>>2]);xb=e+32|0;return}f=Z()|0;if(H[e+11|0]>=0)break b;Kb(J[e>>2]);ba(f|0);B()}f=Z()|0;Vb(e)}ba(f|0);B()}function uE(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;f=J[a+480>>2];b=J[a+88>>2];c=(b|0)==1;J[f+28>>2]=c;l=f,m=Ab[J[J[a+4>>2]+8>>2]](a,1,c?766:256,J[a+120>>2])|0,J[l+24>>2]=m;a:{if(J[a+120>>2]<=0)break a; -i=J[f+20>>2];if((b|0)==1)while(1){c=g<<2;b=J[(c+f|0)+32>>2];d=c+J[f+24>>2]|0;J[d>>2]=J[d>>2]+255;h=b+254|0;j=(b<<1)-2|0;e=(h|0)/(j|0)|0;i=(i|0)/(b|0)|0;d=J[c+J[f+24>>2]>>2];b=0;c=0;while(1){if((c|0)>(e|0))while(1){b=b+1|0;e=(h+P(b,510)|0)/(j|0)|0;if((e|0)<(c|0))continue;break}H[c+d|0]=P(b,i);c=c+1|0;if((c|0)!=256)continue;break}h=d+257|0;j=d+256|0;c=d+255|0;e=K[d|0];b=1;while(1){k=d-b|0;H[k|0]=e;H[b+c|0]=K[c|0];H[d+(b^-1)|0]=e;H[b+j|0]=K[c|0];H[k-2|0]=e;H[b+h|0]=K[c|0];b=b+3|0;if((b|0)!=256)continue; -break}g=g+1|0;if((g|0)>2])continue;break a}while(1){c=g<<2;b=J[(c+f|0)+32>>2];d=b+254|0;h=(b<<1)-2|0;e=(d|0)/(h|0)|0;i=(i|0)/(b|0)|0;j=J[c+J[f+24>>2]>>2];b=0;c=0;while(1){if((c|0)>(e|0))while(1){b=b+1|0;e=(d+P(b,510)|0)/(h|0)|0;if((e|0)<(c|0))continue;break}H[c+j|0]=P(b,i);c=c+1|0;if((c|0)!=256)continue;break}g=g+1|0;if((g|0)>2])continue;break}}}function su(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{h=J[b+12>>2];f=J[b+4>>2];b:{if(h>>>0>>0)break b;g=J[b+8>>2];if(g-a>>>0<8)break b; -d=a+4|0;if(h>>>0>>0|g-d>>>0<4|K[d|0]&128)break b;d=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);d=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+c|0;if(h>>>0>>0)break b;j=g-d|0;d=K[a+2|0]|K[a+3|0]<<8;d=((d<<8|d>>>8)&65535)<<2;if(j>>>0>>0)break b;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break b;j=a+8|0;if(h>>>0>>0)break b;i=g-j|0;f=K[a|0]|K[a+1|0]<<8;h=(f<<8|f>>>8)&65535;g=h<<3;if(i>>>0>>0)break b;g=d-g|0;J[b+16>>2]=g;if((g|0)<=0)break b;e=1;if(!f)break b;k=h>>>0<=1?1:h;f=J[b+ -8>>2];h=J[b+12>>2];g=J[b+4>>2];d=0;while(1){e=(d<<3)+j|0;if(e-g>>>0>h>>>0|f-e>>>0<8)break a;e=e+6|0;if(e-g>>>0>h>>>0|f-e>>>0<2)break a;h=J[b+12>>2];f=K[e|0]|K[e+1|0]<<8;e=((f<<8|f>>>8)&65535)+c|0;g=J[b+4>>2];if(h>>>0>>0)break a;f=J[b+8>>2];i=f-e|0;e=K[a+2|0]|K[a+3|0]<<8;e=((e<<8|e>>>8)&65535)<<1;if(i>>>0>>0)break a;i=J[b+16>>2]-e|0;J[b+16>>2]=i;e=0;if((i|0)<=0)break b;e=1;d=d+1|0;if((k|0)!=(d|0))continue;break}}return e}return 0}function pm(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=xb-16|0; -xb=i;d=J[a+28>>2];J[i+12>>2]=0;J[c>>2]=0;e=J[a+32>>2];if(e>>>0>2]){J[a+32>>2]=e+1;f=H[e|0]}else f=0;f=f<<24>>24;e=-1;a:{if(!f)break a;h=f&255;if((f|0)<0){e=h<<8&32512;f=J[a+32>>2];if(f>>>0>2]){J[a+32>>2]=f+1;f=H[f|0]}else f=0;h=e|f<<24>>24&255}e=0;if(b>>>0>>0)break a;f=Tb(d,2,0,h+1|0,0,i+12|0);e=0;if(J[i+12>>2])break a;J[c>>2]=h;if(h){c=0;d=0;while(1){e=d+1|0;b=(d<<1)+f|0;d=J[a+32>>2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;g=d<<24>>24;j=g&255;b:{if((g|0)<0){c=Zc(a)+ -c|0;I[b>>1]=c;b=0;d=e;e=j&127;if(!e)break b;while(1){c=Zc(a)+c|0;I[(d<<1)+f>>1]=c;d=d+1|0;if(h>>>0<=d>>>0)break b;b=b+1|0;if(e>>>0>b>>>0)continue;break}break b}d=J[a+32>>2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;c=(d<<24>>24&255)+c|0;I[b>>1]=c;b=0;d=e;if(!g)break b;while(1){e=(d<<1)+f|0;g=J[a+32>>2];if(g>>>0>2]){J[a+32>>2]=g+1;g=H[g|0]}else g=0;c=(g<<24>>24&255)+c|0;I[e>>1]=c;d=d+1|0;if(h>>>0<=d>>>0)break b;b=b+1|0;if(j>>>0>b>>>0)continue;break}}if(d>>>0>>0)continue;break}}e= -f}xb=i+16|0;return e}function cga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];i=P(P(I[c+16>>1],J[b+32>>2]),10033);g=P(I[c>>1],J[b>>2])<<13|1024;h=P(J[b+64>>2],I[c+32>>1]);j=g+P(h,5793)|0;k=(i+j<<2&-8192)+131072|0;l=P(P(I[c+20>>1],J[b+40>>2]),10033);m=P(I[c+4>>1],J[b+8>>2])<<13|1024;n=P(J[b+72>>2],I[c+36>>1]);o=m+P(n,5793)|0;p=l+o>>11;q=k+P(p,5793)|0;r=P(P(I[c+18>>1],J[b+36>>2]),10033);s=P(I[c+ -2>>1],J[b+4>>2])<<13|1024;c=P(J[b+68>>2],I[c+34>>1]);t=s+P(c,5793)|0;b=P(r+t>>11,10033);H[f|0]=K[a+(q+b>>>18&1023)|0];H[f+2|0]=K[a+(q-b>>>18&1023)|0];H[f+1|0]=K[a+(P(p,268423870)+k>>>18&1023)|0];b=J[d+4>>2]+e|0;h=(g+P(h,1073730238)<<2&-8192)+131072|0;f=P(n,-11586)+m>>11;g=h+P(f,5793)|0;c=P(P(c,-11586)+s>>11,10033);H[b|0]=K[a+(g+c>>>18&1023)|0];H[b+2|0]=K[a+(g-c>>>18&1023)|0];H[b+1|0]=K[a+(h+P(f,268423870)>>>18&1023)|0];b=J[d+8>>2]+e|0;d=(j-i<<2&-8192)+131072|0;c=o-l>>11;e=d+P(c,5793)|0;f=P(t-r>>11, -10033);H[b|0]=K[a+(e+f>>>18&1023)|0];H[b+2|0]=K[a+(e-f>>>18&1023)|0];H[b+1|0]=K[a+(d+P(c,268423870)>>>18&1023)|0]}function LH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=Q(0),k=0;i=xb-16|0;xb=i;h=K[a+1|0]|K[a+2|0]<<8;d=J[b+28>>2];g=J[d+12>>2];a:{if(!g)break a;e=J[d>>2];f=J[d+4>>2];if(f){c=sc(f,c);g=J[d+12>>2]}k=c>>>16|0;f=K[e+6|0]|K[e+7|0]<<8;if(k>>>0>=((f<<8|f>>>8)&65535)>>>0)break a;f=J[d+8>>2];d=e+(k<<2)|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=e+(d<<24|(d&65280)<<8|(d>>>8&65280| -d>>>24))|0;else d=169776;k=c&65535;c=K[e+2|0]|K[e+3|0]<<8|(K[e+4|0]<<16|K[e+5|0]<<24);if(c)c=e+(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))|0;else c=169776;j=pc(d,k,f,g,c,0)}f=K[a+3|0]|K[a+4|0]<<8;a=J[b+24>>2];J[i+12>>2]=a;if((h|0)==65535)c=1;else{a=J[b+8>>2];g=J[a- -64>>2];d=J[b+12>>2];e=(h<<8|h>>>8)&65535;h=i+12|0;c=J[a+68>>2];if(c)c=J[c+52>>2];else c=0;if(!(Ab[g|0](a,d,e,h,c)|0)){J[i+8>>2]=1;wt(J[J[b+16>>2]+24>>2],J[b+20>>2],e,i+8|0,h)}a=J[i+12>>2];c=0}g=J[b+8>>2];d=J[g+68>>2];if(d)d=J[d+24>>2];else d= -0;e=J[g+36>>2];h=J[b+12>>2];j=Q(Q(Q(j+Q((f<<8|(f&65280)>>>8)<<16>>16))*Q(6.103515625E-5))*Q((a&255)>>>0));b:{if(j=Q(0)){b=~~j>>>0;break b}b=0}Ab[e|0](g,h,c,b&255|a&-256,d);xb=i+16|0}function Xl(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;if(!a)return 35;if(!d)return 6;e=16;a:{if(M[a+16>>2]<=b>>>0)break a;e=J[J[J[a+96>>2]+12>>2]+84>>2];if(!(!e|!(c&3)&(c&983040)!=65536)){e=Ab[e|0](a,b,1,c,d)|0;if(!e){e=0;if(c&1)break a;a=J[a+88>>2];if(!a)return 36;i=d,j=hc(J[d>>2], -J[a+(c&16?20:16)>>2],64),J[i>>2]=j;return 0}if((e&255)!=7)break a}e=35;b:{if(!a)break b;e=6;if(!d)break b;e=16;f=b+1|0;g=J[a+16>>2];c:{if(f>>>0>g>>>0|!f|b>>>0>=g>>>0)break c;e=J[J[J[a+96>>2]+12>>2]+84>>2];if(!(!e|!(c&3)&(c&983040)!=65536)){e=Ab[e|0](a,b,1,c,d)|0;if(!e){d:{if(!(c&1)){a=J[a+88>>2];e=36;if(!a)break d;b=J[a+(c&16?20:16)>>2];a=0;while(1){c=(a<<2)+d|0;i=c,j=hc(J[c>>2],b,64),J[i>>2]=j;a=a+1|0;if((a|0)!=1)continue;break}}e=0}break b}if((e&255)!=7)break c}e=7;if(c&536870912)break c;f=0;g= -c&1?0:10;h=c|256;if(!(c&16))while(1){e=Ug(a,b+f|0,h);if(e)break c;J[(f<<2)+d>>2]=J[J[a+84>>2]+64>>2]<>2]=J[J[a+84>>2]+68>>2]<>24<0;e=f?J[194930]:779720;d=f?J[194931]:d;if((d|0)==-1)d=id(e);Ab[J[J[a>>2]+8>>2]](a,d);f=e;e=d<<2;Mb(J[a+12>>2],f,e);J[a+12>>2]=e+J[a+12>>2];J[a+16>>2]= -J[a+16>>2]+d;e=K[b+11|0];f=e<<24>>24<0;d=f?J[b>>2]:b;b=f?J[b+4>>2]:e;if((b|0)==-1)b=id(d);Ab[J[J[a>>2]+8>>2]](a,b);e=d;d=b<<2;Mb(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;b=K[779743];e=b<<24>>24<0;d=e?J[194933]:779732;b=e?J[194934]:b;if((b|0)==-1)b=id(d);Ab[J[J[a>>2]+8>>2]](a,b);e=d;d=b<<2;Mb(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;b=K[779755];e=b<<24>>24<0;d=e?J[194936]:779744;b=e?J[194937]:b;if((b|0)==-1)b=id(d);Ab[J[J[a>>2]+8>>2]](a,b);e=d;d=b<<2;Mb(J[a+ -12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;b=id(c);Ab[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;Mb(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];J[a+16>>2]=b+J[a+16>>2];b=K[779755];d=b<<24>>24<0;c=d?J[194936]:779744;b=d?J[194937]:b;if((b|0)==-1)b=id(c);Ab[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;Mb(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b}function Jd(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+1144>>2];a:{b:{if(!b){c=J[a+1124>>2];while(1){c:{d:{e:{f:switch(c|0){case 0:b=J[a+196>>2];g:{if(!b){b= -0;break g}J[a+1136>>2]=b;b=J[a+200>>2];J[a+1144>>2]=b}c=1;J[a+1124>>2]=1;break c;case 1:J[a+1124>>2]=2;case 2:d=J[a+1128>>2];if((d|0)==J[a+1132>>2]){c=3;J[a+1124>>2]=3;continue}b=J[a>>2];c=J[b+184>>2];if(!c){H[a+1140|0]=0;Ob(J[b+628>>2],J[b>>2],272255,0);return 0}f=d<<2;c=J[c+f>>2];J[a+1136>>2]=c;if(!c){b=0;break d}e=J[a+168>>2];if(c>>>0>=e>>>0)break e;J[a+1144>>2]=0;b=J[b+188>>2];if(!b)break e;b=J[b+f>>2];J[a+1144>>2]=b;if(!b)break e;if(b+c>>>0<=e>>>0)break d;b=e-c|0;J[a+1144>>2]=b;break d;default:break f}H[a+ -1140|0]=0;return 0}b=0;J[a+1136>>2]=0}J[a+1128>>2]=d+1;c=2}if(!b)continue;break}H[a+1140|0]=0;c=J[a>>2];break b}c=J[a>>2];if(K[a+1140|0])break a}Ab[J[c+640>>2]](J[c+628>>2],J[a+1136>>2],0)|0;H[a+1140|0]=1;b=J[a+1144>>2];c=J[a>>2]}d=a+1156|0;b=Ab[J[c+632>>2]](J[c+628>>2],d,b>>>0>=2048?2048:b&65535)|0;if(!b)return 0;J[a+1152>>2]=d;I[a+1148>>1]=b;b=b&65535;J[a+1144>>2]=J[a+1144>>2]-b;J[a+1136>>2]=b+J[a+1136>>2];return 1}function Sk(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;h=xb-16|0;xb= -h;if(e)J[e>>2]=-1;k=(c|0)==-21;l=k?b-21|0:b;m=(c|0)>0?c:0;i=J[a+8>>2];g=J[a>>2];a:{b:{if(g){b=i;while(1){if(!(J[b>>2]!=(l|0)|J[b+4>>2]!=(m|0))){g=f;break b}b=b+12|0;f=f+1|0;if((f|0)!=(g|0))continue;break}}j=g+1|0;b=J[a+4>>2];c:{if(j>>>0>>0)break c;J[h+4>>2]=0;if(b>>>0>=j>>>0)break c;f=b;b=(g&-8)+8|0;i=Tb(d,12,f,b,i,h+4|0);J[a+8>>2]=i;f=J[h+4>>2];if(f)break a;J[a+4>>2]=b}J[a>>2]=j;J[(P(j,12)+i|0)-12>>2]=l;b=P(g,12)+i|0;J[b+8>>2]=c>>31&(k?3:1);J[b+4>>2]=m}b=J[a+12>>2];d:{e:{if(!b){f:{if(J[a+16>> -2]){b=J[a+20>>2];break f}J[h+8>>2]=0;b=Tb(d,16,0,8,J[a+20>>2],h+8|0);J[a+20>>2]=b;f=J[h+8>>2];if(f)break a;J[a+16>>2]=8}J[b>>2]=0;J[b+12>>2]=0;J[a+12>>2]=1;break e}b=(J[a+20>>2]+(b<<4)|0)-16|0;if(M[b>>2]>g>>>0)break d}a=J[b+4>>2];J[h+12>>2]=0;c=g+8>>>3|0;a=a+7>>>3|0;if(c>>>0>a>>>0){f=a;a=c+7&1073741816;n=b,o=Tb(d,1,f,a,J[b+8>>2],h+12|0),J[n+8>>2]=o;f=J[h+12>>2];if(f)break a;J[b+4>>2]=a<<3}J[b>>2]=g+1}a=J[b+8>>2]+(g>>>3|0)|0;H[a|0]=K[a|0]|128>>>(g&7);f=0;if(!e)break a;J[e>>2]=g}xb=h+16|0;return f} -function Kz(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;I[a+92>>1]=b;a:{b:{c:switch(b-1|0){case 0:J[a+104>>2]=0;J[a+108>>2]=1072693248;J[a+96>>2]=0;J[a+100>>2]=1072693248;break a;case 1:J[a+104>>2]=-1860025207;J[a+108>>2]=1070736456;J[a+96>>2]=-1860025207;J[a+100>>2]=1070736456;break a;case 2:J[a+104>>2]=-2117046872;J[a+108>>2]=1067255514;J[a+96>>2]=-2117046872;J[a+100>>2]=1067255514;break a;case 3:J[a+104>>2]=1889785610;J[a+108>>2]=1072106045;J[a+96>>2]=1889785610;J[a+100>>2]=1072106045;break a;case 4:J[a+ -104>>2]=-1924145348;J[a+108>>2]=1068658327;J[a+96>>2]=-1924145348;J[a+100>>2]=1068658327;break a;case 5:J[a+104>>2]=-1717986918;J[a+108>>2]=1068079513;J[a+96>>2]=-1717986918;J[a+100>>2]=1068079513;break a;case 6:case 7:break c;default:break b}d=L[a+116>>1];e=d<<16>>16;c=e>>15;if(((c^d)-c&65535)>>>0<2)break b;c=L[a+126>>1];f=c<<16>>16;g=f>>15;if(((g^c)-g&65535)>>>0<2)break b;d:switch(b-7|0){case 0:if(!d|!c)break b;h=+(f|0)/+(e|0);O[a+96>>3]=h;O[a+104>>3]=h;break a;case 1:break d;default:break b}O[a+ -96>>3]=+(f|0)/+(e|0);O[a+104>>3]=+I[a+128>>1]/+I[a+118>>1]}tf(a);return}tf(a)}function kh(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(!b){b=K[238177]|K[238178]<<8;H[a+88|0]=b;H[a+89|0]=b>>>8;b=K[238173]|K[238174]<<8|(K[238175]<<16|K[238176]<<24);c=K[238169]|K[238170]<<8|(K[238171]<<16|K[238172]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[238165]|K[238166]<<8|(K[238167]<<16|K[238168]<<24);c=K[238161]|K[238162]<<8|(K[238163]<< -16|K[238164]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;break b}b=0;if(J[a+4>>2])break a;b=K[238833]|K[238834]<<8|(K[238835]<<16|K[238836]<<24);c=K[238829]|K[238830]<<8|(K[238831]<<16|K[238832]<<24);H[a+78|0]=c;H[a+79|0]=c>>>8;H[a+80|0]=c>>>16;H[a+81|0]=c>>>24;H[a+82|0]=b;H[a+83|0]=b>>>8;H[a+84|0]=b>>>16;H[a+85|0]=b>>>24;b=K[238827]|K[238828]<<8|(K[238829]<<16|K[238830]<<24);c=K[238823]|K[238824]<<8|(K[238825]<< -16|K[238826]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24}b=1}return b|0}function ew(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;i=J[a+4>>2];if(i){b=J[a+24>>2]+P(b,204)|0;j=J[b+200>>2];l=J[b+204>>2];k=J[a+12>>2];while(1){a=J[k+4>>2];f=(a|0)<=0;a:{if(f)break a;d=J[k>>2];c=d+P(a,40)|0;b=0;a=d;g=0;while(1){e=J[a+16>>2]&32;g=e?g?g:a:g;b=(e>>>5|0)+b|0;a=a+40|0;if(c>>>0>a>>>0)continue;break}a=g;if(b>>>0<= -1){if((b|0)==1)l=J[a+36>>2]-Rb(J[a+28>>2],j)|0;if(f)break a;while(1){if((d|0)!=(g|0))n=d,o=Rb(J[d+28>>2],j)+l|0,J[n+36>>2]=o;d=d+40|0;if(c>>>0>d>>>0)continue;break}break a}while(1){c=a;a=J[a+4>>2];if((g|0)==(a|0))break a;if(K[a+16|0]&32)continue;b=a;while(1){b=J[b+4>>2];if(!(K[b+16|0]&32))continue;break}d=J[c+28>>2];e=J[b+28>>2];b:{if((d|0)<=(e|0)){h=e-d|0;e=c;f=b;break b}h=d-e|0;d=e;e=b;f=c}m=J[f+36>>2];f=J[e+36>>2];c:{if((h|0)<=0){e=65536;break c}e=dc(m-f|0,h);a=J[c+4>>2]}while(1){c=J[a+28>>2]- -d|0;d:{if((c|0)<=0){c=Rb(c,j)+f|0;break d}if((c|0)>=(h|0)){c=Rb(c-h|0,j)+m|0;break d}c=Rb(c,e)+f|0}J[a+36>>2]=c;a=J[a+4>>2];if((b|0)!=(a|0))continue;break}a=b;if((g|0)!=(a|0))continue;break}}k=k+8|0;i=i-1|0;if(i)continue;break}}}function PI(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;b=J[a+20>>2];H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]= -0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;d=J[b+116>>2];e=J[d+24>>2];f=J[b+120>>2];d=J[d+12>>2];if(d)d=J[d+4>>2];else d=0;g=Ab[e|0](b,f,c,d)|0;if(g){a:{b:{b=J[a+20>>2];if(b){b= -J[b+28>>2];d=J[a+28>>2];if((b|0)!=(d|0))break b;a=c+8|0;b=J[c+8>>2];break a}a=c+8|0;b=J[c+8>>2];break a}e=d>>31;a=J[c>>2];f=b>>31;h=c,i=Lpa(Kpa(d,e,a,a>>31),zb,b,f),J[h>>2]=i;a=J[c+4>>2];h=c,i=Lpa(Kpa(d,e,a,a>>31),zb,b,f),J[h+4>>2]=i;a=c+8|0;c=J[c+8>>2];b=Lpa(Kpa(d,e,c,c>>31),zb,b,f)}J[a>>2]=b}return g|0}function QI(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;b=J[a+20>>2];H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33| -0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;d=J[b+116>>2];e=J[d+20>>2];f=J[b+120>>2];d=J[d+12>>2]; -if(d)d=J[d>>2];else d=0;g=Ab[e|0](b,f,c,d)|0;if(g){a:{b:{b=J[a+20>>2];if(b){b=J[b+32>>2];d=J[a+32>>2];if((b|0)!=(d|0))break b;a=c+8|0;b=J[c+8>>2];break a}a=c+8|0;b=J[c+8>>2];break a}e=d>>31;a=J[c>>2];f=b>>31;h=c,i=Lpa(Kpa(d,e,a,a>>31),zb,b,f),J[h>>2]=i;a=J[c+4>>2];h=c,i=Lpa(Kpa(d,e,a,a>>31),zb,b,f),J[h+4>>2]=i;a=c+8|0;c=J[c+8>>2];b=Lpa(Kpa(d,e,c,c>>31),zb,b,f)}J[a>>2]=b}return g|0}function Dr(a,b,c){var d=0,e=0,f=0,g=0;f=J[a+4>>2];g=f+b|0;a:{b:{c:switch(K[a+10|0]-2|0){case 0:d:{e:{f:{f=K[a+9|0];switch(f- -8|0){case 8:break e;case 0:break f;default:break a}}e=b+1|0;d=c?b:e;c=c?e:b+2|0;if(g>>>0<=c>>>0)break d;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+2|0;if(g>>>0>c>>>0)continue;break}break d}e=b+2|0;d=c?b:e;c=c?e:b+4|0;if(g>>>0<=c>>>0)break d;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];d=d+2|0;c=c+4|0;if(g>>>0>c>>>0)continue;break}}H[a+10|0]=1;H[a+11|0]=f;if(K[a+8|0]!=4)break b;H[a+8|0]=0;break b;case 2:break c;default:break a}g:{h:switch(K[a+9|0]-8|0){case 0:d=(c?0:3)+b|0;e=24;c=c?1:4;if((c|0)>=(f|0))break g; -c=b+c|0;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];d=d+3|0;c=c+4|0;if(g>>>0>c>>>0)continue;break}break g;case 8:break h;default:break a}d=(c?0:6)+b|0;e=48;c=c?2:8;if((c|0)>=(f|0))break g;c=b+c|0;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];d=d+6|0;c=c+8|0;if(g>>>0>c>>>0)continue;break}}H[a+10|0]=3;H[a+11|0]=e;if(K[a+8|0]!=6)break b;H[a+8|0]=2}J[a+4>>2]=d-b}}function ND(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-784| -0;xb=f;a:{d=J[a+200>>2];if(d&1){b:{if(d&4){Wb(a,254288);mc(a,c);break b}if(d&2)break a;J[a+200>>2]=d|2;d=K[a+401|0];if(!(d&2)){Wb(a,254797);mc(a,c);break b}if(c>>>0>768?1:(c>>>0)%3|0){if((d|0)!=3){Wb(a,254875);mc(a,c);break b}gc(a,254875);B()}e=256;e=(d|0)==3?1<>>0)/3|0;d=(d|0)>(e|0)?e:d;if((d|0)>0){e=0;g=f+16|0;while(1){h=f+13|0;Gd(a,h,3);Fc(a,h,3);H[g|0]=K[f+13|0];H[g+1|0]=K[f+14|0];H[g+2|0]=K[f+15|0];g=g+3|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}mc(a,P(d,-3)+c|0);c= -f+16|0;c:{if(!a|!b)break c;d:{e:{if(K[b+25|0]==3){if((d|0)<=1<=0)break e;gc(a,257160);B()}if(d>>>0>256)break d}bi(a,b,4096,0);e=Hl(a,768);J[a+388>>2]=e;i=b,j=Mb(e,c,P(d,3)),J[i+16>>2]=j;I[a+392>>1]=d;I[b+20>>1]=d;J[b+184>>2]=J[b+184>>2]|4096;J[b+8>>2]=J[b+8>>2]|8;break c}Wb(a,257160)}if(!(K[b+8|0]&16)|(!b|K[a+401|0]!=3))break b;c=d&65535;if(c>>>0>1]){Wb(a,255172);I[a+394>>1]=d}if(c>>>0>=L[b+22>>1])break b;Wb(a,255418);I[b+22>>1]=d}xb=f+784|0;return}gc(a,254105);B()}gc(a, -254433);B()}function J6(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;d=xb-16|0;xb=d;g=b+76|0;e=J[g>>2];f=b+48|0;h=J[f>>2];i=b+56|0;c=J[i>>2];J[d+8>>2]=0;j=h<<(c>>>13&1);k=j<<2;c=e+k|0;J[d+4>>2]=c;J[d>>2]=84;J[a+8>>2]=J[a+8>>2]+c;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);c=(D(Q(O[b+24>>3])),v(2));H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24; -Lb(J[a+4>>2],d+12|0,4);c=(D(Q(O[b+32>>3])),v(2));H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;Lb(J[a+4>>2],d+12|0,4);Lb(J[a+4>>2],b+40|0,4);Lb(J[a+4>>2],b+44|0,4);Lb(J[a+4>>2],f,4);Lb(J[a+4>>2],b+52|0,4);Lb(J[a+4>>2],i,4);Lb(J[a+4>>2],b+60|0,4);Lb(J[a+4>>2],b- -64|0,4);Lb(J[a+4>>2],b+68|0,4);Lb(J[a+4>>2],b+72|0,4);Lb(J[a+4>>2],g,4);c=J[f>>2];a:{if(!c)break a;Lb(J[a+4>>2],J[b+80>>2],c<<1);c=e-76|0;e=h<<1;if((c|0)!=(e|0)){c=c-e|0;e=c>>>0<=1?1:c;c=0;while(1){Lb(J[a+4>>2],d+8|0,1);c= -c+1|0;if((e|0)!=(c|0))continue;break}}if(!j)break a;Lb(J[a+4>>2],J[b+84>>2],k)}xb=d+16|0}function fI(a,b,c,d){var e=0,f=0,g=0,h=0,i=Q(0),j=Q(0);a:{if(M[a+4>>2]<=b>>>0){b=0;if(J[a+8>>2])break a;return J[a+16>>2]}f=J[a+20>>2];g=J[(f?f:169776)+12>>2];f=J[a>>2]-1|0;f=g+((b>>>0>f>>>0?f:b)<<2)|0;f=K[f|0]|K[f+1|0]<<8;g=f<<8|f>>>8;f=J[c+104>>2];if(!f)return g&65535;a=J[a+24>>2];e=a?a:169776;h=J[e+16>>2];if(h){a=169776;c=J[c+108>>2];i=Q((g&65535)>>>0);e=h>>>0<20?169776:J[e+12>>2];h=K[e+8|0]|K[e+9|0]<<8|(K[e+ -10|0]<<16|K[e+11|0]<<24);if(h)g=e+(h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24))|0;else g=a;h=sc(g,b);g=h>>>16|0;b=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);if(b)a=e+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;b=K[a+6|0]|K[a+7|0]<<8;if(g>>>0>=((b<<8|b>>>8)&65535)>>>0)j=Q(.5);else{b=(g<<2)+a|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)b=(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+a|0;else b=169776;g=h&65535;e=K[a+2|0]|K[a+3|0]<<8|(K[a+4|0]<<16|K[a+5|0]<<24);if(e)a=(e<<24|(e&65280)<< -8|(e>>>8&65280|e>>>24))+a|0;else a=169776;j=Q(pc(b,g,c,f,a,d)+Q(.5))}i=Q(Q(V(j))+i);if(i=Q(0))return~~i>>>0;return 0}b=UF(c,b,0)}return b}function qda(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(a){c=J[a+200>>2];if(!(c&4))break a;b:{if(!b)break b;if(!(!(J[b+8>>2]&512)|c&512))jD(a,b+60|0);if(J[b+48>>2]>0){e=J[b+56>>2];while(1){g=P(f,28);c=g+e|0;d=J[c>>2];c:{d:{e:{if((d|0)>0){kD(a,d,J[c+4>>2],J[c+20>>2],J[c+24>>2],J[c+8>>2]);break e}if((d|0)>=0){lD(a,J[c+4>>2],J[c+8>>2]);c=-2;break d}if((d| -0)!=-1)break c;Rn(a,J[c+4>>2],J[c+8>>2])}c=-3}e=J[b+56>>2];J[g+e>>2]=c}f=f+1|0;if((f|0)>2])continue;break}}c=J[b+192>>2];if(!c|(c|0)<=0)break b;c=J[b+188>>2];while(1){d=Jr(a,c);if(!((d|0)==1|!(K[c+16|0]&8)|!(K[c+3|0]&32|(d|0)==3|H[a+206|0]&1)))yr(a,c,J[c+8>>2],J[c+12>>2]);c=c+20|0;if(c>>>0>2]+P(J[b+192>>2],20)>>>0)continue;break}}J[a+200>>2]=J[a+200>>2]|8;b=xb-16|0;xb=b;if(a){J[a+744>>2]=34;J[b+4>>2]=0;J[b+8>>2]=1145980233;Wc(a,b+4|0,8);J[a+348>>2]=1229278788;dg(a);Fc(a,b+8|0,4); -J[a+744>>2]=130;c=J[a+384>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;Wc(a,b+12|0,4)}J[a+200>>2]=J[a+200>>2]|16;xb=b+16|0}return}gc(a,252379);B()}function yw(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;n=xb-1040|0;xb=n;q=J[194954];j=n+16|0;p=L[((b>>>0<=153?b:0)<<1)+772880>>1]+770961|0;c=J[J[194998]+20>>2];if(c){k=J[c+4>>2];c=J[c>>2];e=J[c>>2]+1794895138|0;f=Gi(J[c+8>>2],e);g=Gi(J[c+12>>2],e);h=Gi(J[c+ -16>>2],e);a:{if(k>>>2>>>0<=f>>>0)break a;l=k-(f<<2)|0;if((g|h)&3|(l>>>0<=g>>>0|h>>>0>=l>>>0))break a;r=h>>>2|0;s=c+(g&-4)|0;g=0;while(1){h=f>>>1|0;l=h+g|0;m=(l<<3)+s|0;i=Gi(J[m>>2],e);m=Gi(J[m+4>>2],e);if(m>>>0>=k>>>0|i>>>0>=k-m>>>0)break a;o=i;i=c+m|0;if(K[o+i|0])break a;i=fc(p,i);if(!i){g=(c+(r<<2)|0)+(l<<3)|0;f=Gi(J[g>>2],e);e=Gi(J[g+4>>2],e);if(e>>>0>=k>>>0|f>>>0>=k-e>>>0)break a;d=c+e|0;d=K[d+f|0]?0:d;break a}if((f|0)==1)break a;o=h;f=f-h|0;h=(i|0)<0;f=h?o:f;g=h?g:l;continue}}}d=d?d:p;c=ac(d); -b:{if(c>>>0>=1024){Mb(j,d,1023);H[j+1023|0]=0;c=68;break b}Mb(j,d,c+1|0);c=0}d=j;c:{d:switch(c+1|0){case 0:c=J[194954];break;case 1:break c;default:break d}d=228753;if((c|0)==28)break c;Ha();B()}if(!K[d|0]){J[n>>2]=b;Jf(j,1024,227546,n);d=j}J[194954]=q;Sg(a,d);xb=n+1040|0}function it(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=L[b>>1];f=L[a>>1];a=J[c+4>>2];a:{b:{if((a|0)!=131072){b=0;if((a|0)!=65536)break a;if(d>>>0>257)break b;b=d<<2;a=J[b+122256>>2];b=J[b+122260>>2]+(a^-1)|0;g=a+118544|0;break b}b=0;a=J[c+ -8>>2];e=K[a|0]|K[a+1|0]<<8;if(d>>>0>=((e<<8|e>>>8)&65535)>>>0)break b;a=a+(d<<1)|0;a=K[a+2|0]|K[a+3|0]<<8;a=(a<<8|a>>>8)&65535;if(a>>>0<=257){b=a<<2;a=J[b+122256>>2];b=J[b+122260>>2]+(a^-1)|0;g=a+118544|0;break b}a=a-258|0;if(a>>>0>=M[c+16>>2])break b;a=J[c+24>>2]+J[J[c+20>>2]+(a<<2)>>2]|0;g=a+1|0;b=K[a|0]}a=J[c+4>>2]}c:{if((a|0)!=131072){e=0;d=0;if((a|0)!=65536|f>>>0>257)break c;c=f<<2;a=J[c+122256>>2];d=J[c+122260>>2]+(a^-1)|0;e=a+118544|0;break c}e=0;d=0;a=J[c+8>>2];h=K[a|0]|K[a+1|0]<<8;if(((h<< -8|h>>>8)&65535)>>>0<=f>>>0)break c;a=a+(f<<1)|0;a=K[a+2|0]|K[a+3|0]<<8;a=(a<<8|a>>>8)&65535;if(a>>>0<=257){c=a<<2;a=J[c+122256>>2];d=J[c+122260>>2]+(a^-1)|0;e=a+118544|0;break c}a=a-258|0;if(a>>>0>=M[c+16>>2])break c;a=J[c+24>>2]+J[J[c+20>>2]+(a<<2)>>2]|0;e=a+1|0;d=K[a|0]}if((b|0)!=(d|0))return d-b|0;if(!b)return 0;return cd(e,g,b)}function Gu(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;f=J[b+72>>2];e=K[f+4|0]|K[f+5|0]<<8;l=K[f|0]|K[f+1|0]<<8;d=J[b+12>>2];i=J[d+32>>2];if((i|0)==-1)i= -Qe(d);h=J[b+16>>2];j=J[h+68>>2];c=J[b+76>>2];d=0;a:{if(!c)break a;d=0;if(M[c+4>>2]<2)break a;d=J[c+8>>2]}b:{if(!j)break b;h=J[h+80>>2];if((l|0)==256&(e|0)!=0){while(1){c:{d:{if(!d){d=0;break d}e=J[(h+P(g,20)|0)+8>>2];while(1){c=d;d=c-12|0;if(e>>>0>2])continue;break}while(1){d=c;c=c+12|0;if(e>>>0>M[d+8>>2])continue;break}if(!(J[b+80>>2]&J[d>>2]))break c}c=h+P(g,20)|0;e=bf(a,J[c>>2],i);if(!e)break c;e=K[e|0]|K[e+1|0]<<8;e=(e<<8|e>>>8)&65535;J[c>>2]=e;m=c,n=xi(f,e),I[m+12>>1]=n;k=1}g=g+1|0;if((j| -0)!=(g|0))continue;break}break b}while(1){e:{f:{if(!d){d=0;break f}f=J[(h+P(g,20)|0)+8>>2];while(1){c=d;d=c-12|0;if(f>>>0>2])continue;break}while(1){d=c;c=c+12|0;if(f>>>0>M[d+8>>2])continue;break}if(!(J[b+80>>2]&J[d>>2]))break e}f=h+P(g,20)|0;c=bf(a,J[f>>2],i);if(!c)break e;c=K[c|0]|K[c+1|0]<<8;J[f>>2]=(c<<8|c>>>8)&65535;k=1}g=g+1|0;if((j|0)!=(g|0))continue;break}}return k}function vba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];a:{b:{c:{d:{e:{f:{g:{h:switch(b-292|0){default:i:switch(b- -34908|0){case 3:break d;case 2:break e;case 1:break f;case 0:break g;default:break i}j:switch(b-65536|0){case 0:J[d+4>>2]=J[c>>2];return 1;case 4:break j;default:break c}J[d+76>>2]=J[c>>2];return 1;case 0:if(L[a+88>>1]!=3)break a;J[d+28>>2]=J[c>>2];break a;case 1:if(L[a+88>>1]!=4)break a;J[d+28>>2]=J[c>>2];break a;case 35:I[d+16>>1]=J[c>>2];break a;case 34:break b;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:break c; -case 36:break h}J[d+20>>2]=J[c>>2];break a}J[d+32>>2]=J[c>>2];break a}Al(d+36|0,J[c>>2]);break a}J[d+40>>2]=J[c>>2];break a}Al(d+44|0,J[c>>2]);break a}return Ab[J[d+52>>2]](a,b,c)|0}J[d+24>>2]=J[c>>2]}b=nd(a,b);if(!b)return 0;b=L[b+12>>1];c=(b>>>3&8188)+a|0;J[c+40>>2]=J[c+40>>2]|1<>2]=J[a+12>>2]|8;return 1}function mha(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+4>>2];b=J[e+68>>2];if(b)while(1){if(!J[b>>2]){f=J[b+8>>2];d=P(f,J[b+4>>2])+d|0;c=P(f,J[b+12>>2])+c|0}b=J[b+44>>2];if(b)continue; -break}b=J[e+72>>2];if(b)while(1){if(!J[b>>2]){f=J[b+8>>2];d=(P(f,J[b+4>>2])<<7)+d|0;c=(P(f,J[b+12>>2])<<7)+c|0}b=J[b+44>>2];if(b)continue;break}a:{if((c|0)<=0)break a;b=J[e+68>>2];if(b)while(1){if(!J[b>>2]){c=J[b+4>>2];d=J[b+12>>2];b:{if((((c-1>>>0)/(d>>>0)|0)+1|0)<=1E9){J[b+16>>2]=c;break b}J[b+16>>2]=P(d,1E9);c=J[a>>2];J[c+20>>2]=51;Ab[J[c>>2]](a);J[b+40>>2]=1;c=J[b+16>>2]}g=b,h=vE(a,1,J[b+8>>2],c),J[g>>2]=h;c=J[e+80>>2];J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+20>>2]=c}b=J[b+44>>2];if(b)continue; -break}b=J[e+72>>2];if(!b)break a;while(1){if(!J[b>>2]){c=J[b+4>>2];d=J[b+12>>2];c:{if((((c-1>>>0)/(d>>>0)|0)+1|0)<=1E9){J[b+16>>2]=c;break c}J[b+16>>2]=P(d,1E9);c=J[a>>2];J[c+20>>2]=51;Ab[J[c>>2]](a);J[b+40>>2]=1;c=J[b+16>>2]}g=b,h=wE(a,1,J[b+8>>2],c),J[g>>2]=h;c=J[e+80>>2];J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+20>>2]=c}b=J[b+44>>2];if(b)continue;break}}}function bja(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;a:{if(!b)break a;i=e-1|0;if(i>>>0>31| -!(1<>>0>=24){if((e|0)!=32)break c;hg(a);j=1;if(!d|!c)break a;i=0;l=h?2:0;m=h?0:2;while(1){e=P(f,i)+b|0;k=g?(i^-1)+d|0:i;j=J[a+56>>2]+P(k,J[a+52>>2])|0;h=0;while(1){H[j|0]=K[e+m|0];H[j+1|0]=K[e+1|0];H[j+2|0]=K[e+l|0];ne(a,h,k,K[e+3|0]);e=e+4|0;j=j+3|0;h=h+1|0;if((h|0)!=(c|0))continue;break}j=1;i=i+1|0;if((i|0)!=(d|0))continue;break}break a}pk(a);if(d)break b;return 1}if(d)break b;return 1}if(g){e=0;while(1){c=J[a+52>>2];Mb(J[a+56>>2]+P(c, -(e^-1)+d|0)|0,P(e,f)+b|0,c>>>0>>0?c:f);j=1;e=e+1|0;if((e|0)!=(d|0))continue;break}break a}j=1;e=0;if((d|0)!=1){h=d&-2;c=0;while(1){g=J[a+52>>2];Mb(J[a+56>>2]+P(g,e)|0,P(e,f)+b|0,f>>>0>g>>>0?g:f);g=J[a+52>>2];i=e|1;Mb(J[a+56>>2]+P(g,i)|0,P(f,i)+b|0,f>>>0>g>>>0?g:f);e=e+2|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!(d&1))break a;c=J[a+56>>2];a=J[a+52>>2];Mb(c+P(a,e)|0,P(e,f)+b|0,a>>>0>>0?a:f)}return j|0}function ym(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;i=xb-32|0;xb=i;g=J[b+12>>2];h=J[b+8>> -2];k=g-h>>3;j=k&1;if(!(K[e|0]|(K[a+8|0]|!j))){a:{if((g|0)==(h|0)){g=0;l=J[b+4>>2];if(!l|J[l>>2])break a;J[l>>2]=130;break a}g=J[h>>2];b:switch(J[h+4>>2]-1|0){case 1:g=g<<16;break a;case 0:break b;default:break a}g=((g>>31)+g|0)- -8192>>14}J[d>>2]=(J[J[J[a+176>>2]+536>>2]+544>>2]<<16)+g}if(!K[J[a+176>>2]+548|0]){if(k>>>0>=2){while(1){d=J[b+8>>2];g=J[b+12>>2]-d>>3;c:{if(g>>>0<=j>>>0){a=0;h=J[b+4>>2];if(!h|J[h>>2])break c;J[h>>2]=130;break c}h=d+(j<<3)|0;a=J[h>>2];d:switch(J[h+4>>2]-1|0){case 1:a=a<< -16;break c;case 0:break d;default:break c}a=((a>>31)+a|0)- -8192>>14}f=a+f|0;J[i+16>>2]=f;a=j+1|0;e:{if(a>>>0>=g>>>0){a=0;d=J[b+4>>2];if(!d|J[d>>2])break e;J[d>>2]=130;break e}d=d+(a<<3)|0;a=J[d>>2];f:switch(J[d+4>>2]-1|0){case 1:a=a<<16;break e;case 0:break f;default:break e}a=((a>>31)+a|0)- -8192>>14}J[i+24>>2]=0;J[i+28>>2]=0;H[i+12|0]=0;f=a+f|0;J[i+20>>2]=f;lw(c,i+12|0);j=j+2|0;if(k>>>0>j>>>0)continue;break}h=J[b+8>>2]}J[b+12>>2]=h}H[e|0]=1;xb=i+32|0}function $$(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;i=xb-272|0;xb=i;d=J[b+4>>2];f=J[b>>2];b=J[a>>2];g=J[a+4>>2];J[i+12>>2]=g<<2;J[i+8>>2]=b<<2;e=d<<2;J[i+4>>2]=e;f=f<<2;J[i>>2]=f;k=J[c+208>>2];J[i+16>>2]=k;a=J[c+212>>2];J[i+20>>2]=a;h=g>>6;a:{b:{l=d>>6;j=J[c+176>>2];c:{d:{if((l|0)<(j|0)){d=a>>8;break d}d=a>>8;if((h|0)<(j|0))break d;if((d|0)>=(j|0))break c}j=J[c+172>>2];if((j|0)<=(l|0)|(h|0)>=(j|0)|(d|0)>=(j|0))break b}J[c+212>>2]=e;J[c+208>>2]=f;break a}d=1;f=(f-(b<<3)|0)+k|0;b=f>>31;g=a+(e-(g<<3)|0)|0;a=g>>31;b=(b^ -f)-b|0;a=(a^g)-a|0;b=a>>>0>>0?b:a;if(b>>>0>=65)while(1){d=d<<1;a=b>>>0>259;b=b>>>2|0;if(a)continue;break}b=i;while(1){a=J[b>>2];g=0-d&d;if(g>>>0>=2)while(1){e=J[b+16>>2];J[b+32>>2]=e;f=J[b+20>>2];J[b+36>>2]=f;h=a;a=J[b+8>>2];h=h+a|0;J[b+8>>2]=h>>1;a=a+e|0;J[b+24>>2]=a>>1;a=a+h>>2;J[b+16>>2]=a;e=J[b+12>>2];h=e+J[b+4>>2]|0;J[b+12>>2]=h>>1;e=f+e|0;J[b+28>>2]=e>>1;J[b+20>>2]=e+h>>2;b=b+16|0;g=g>>1;if(g>>>0>1)continue;break}Sq(c,a,J[b+4>>2]);b=b-16|0;d=d-1|0;if(d)continue;break}}xb=i+272|0;return 0} -function VG(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;f=J[b+12>>2];e=J[b+4>>2];a:{if(f>>>0>>0)break a;i=J[b+8>>2];if(i-a>>>0<2)break a;d=K[a|0]|K[a+1|0]<<8;d=(d<<8|d>>>8)&65535;Kpa(d,0,c,0);if(zb)break a;h=P(c,d);if((h|0)<0)break a;c=f;f=a+2|0;if(c>>>0>>0)break a;c=h<<1;if(c>>>0>i-f>>>0)break a;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break a;if(K[b+45|0])return 1;g=1;if(!h)break a;e=0;while(1){d=f+(e<<1)|0;if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-d>>>0<2)return 0;c=K[d|0]|K[d+1|0]<< -8;b:{if(!c)break b;c=((c<<8|c>>>8)&65535)+a|0;c:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break c;d:{e:{f:{g=K[c|0]|K[c+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break f;case 0:break d;case 2:break e;default:break b}}if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<=7)break c;break b}if(!nj(c,b))break c;break b}if(M[b+12>>2]>2]>>>0)break c;if(J[b+8>>2]-c>>>0>5)break b}c=J[b+32>>2];if(c>>>0>31)return 0;J[b+32>>2]=c+1;if(!K[b+28|0])return 0;H[d|0]=0;H[d+1|0]=0}g=1;e=e+1|0;if((h|0)!= -(e|0))continue;break}}return g}function lW(a){a=a|0;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;e=xb-16|0;xb=e;a:{b:{c:{c=ac(a);if(c>>>0>=6){h=(a+c|0)-6|0;if(!cd(h,227963,6))break c}J[194954]=28;break b}i=100;while(1){g=0;c=xb-16|0;xb=c;if(!K[779820]){m=779821,n=ob()|0,H[m|0]=n;H[779820]=1}j=+pb();d=j/1E3;d:{if(R(d)<0x7fffffffffffffff){f=~~d>>>0;if(R(d)>=1)b=~~(d>0?T(V(d*2.3283064365386963E-10),4294967295):W((d-+(~~d>>>0>>>0))*2.3283064365386963E-10))>>>0;else b=0;break d}f=0;b=-2147483648}J[c>> -2]=f;J[c+4>>2]=b;d=(j-(+(Kpa(f,b,1E3,0)>>>0)+ +(zb|0)*4294967296))*1E3*1E3;e:{if(R(d)<2147483648){b=~~d;break e}b=-2147483648}J[c+8>>2]=b;k=J[c+8>>2];l=J[c>>2];f=J[194980];b=J[194971];J[194971]=b+1;b=((k+l|0)+P(f,65537)|0)+b|0;while(1){H[g+h|0]=(b&15|b<<1&32)+65;b=b>>>5|0;g=g+1|0;if((g|0)!=6)continue;break}xb=c+16|0;J[e>>2]=384;b=xb-16|0;xb=b;J[b+12>>2]=e+4;J[b>>2]=J[e>>2];J[b+4>>2]=0;c=Qa(-100,a|0,32962,b|0)|0;if(c>>>0>=4294963201){J[194954]=0-c;c=-1}xb=b+16|0;if((c|0)>=0)break a;i=i-1|0;if(J[194954]== -20?i:0)continue;break}Mb(h,227963,6)}c=-1}xb=e+16|0;return c|0}function vd(a){var b=0,c=0,d=0,e=0;c=xb-32|0;xb=c;J[c+16>>2]=0;J[c+12>>2]=3760;b=J[c+16>>2];J[c>>2]=J[c+12>>2];J[c+4>>2]=b;e=J[c+4>>2];b=c+20|0;J[b+4>>2]=J[c>>2];J[b+8>>2]=e;J[b>>2]=a;e=xb-16|0;xb=e;if(J[a>>2]!=-1)a:{d=e+12|0;J[d>>2]=b;b=e+8|0;J[b>>2]=d;while(1){d=J[a>>2];if((d|0)==1)continue;break}b:{c:{if(!d){J[a>>2]=1;J[195395]=0;d=J[195395];J[195395]=0;d:{if((d|0)==1)break d;J[195395]=0;ea(3766,b|0);b=J[195395];J[195395]=0;if((b|0)== -1)break d;J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break d;J[a>>2]=-1;J[195395]=0;b=J[195395];J[195395]=0;if((b|0)==1)break d;J[195395]=0;b=J[195395];J[195395]=0;if((b|0)!=1)break a}sa(ga(0)|0)|0;J[195395]=0;c=J[195395];J[195395]=0;e:{if((c|0)==1)break e;J[a>>2]=0;J[195395]=0;a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;a=J[195395];J[195395]=0;if((a|0)==1)break e;J[195395]=0;ja(3515);a=J[195395];J[195395]=0;if((a|0)!=1)break b}a=Z()|0;J[195395]=0;ja(3516);c=J[195395];J[195395]=0; -if((c|0)==1)break c;ba(a|0);B()}break a}ga(0)|0;_b()}B()}xb=e+16|0;xb=c+32|0;return J[a+4>>2]-1|0}function xv(a){var b=0,c=0,d=0,e=0;d=J[J[a>>2]+100>>2];b=J[a+300>>2];if(b){J[b+444>>2]=0;c=J[b+8>>2];e=J[b+24>>2];if(e)Ab[J[c+8>>2]](c,e);J[b+20>>2]=0;J[b+24>>2]=0;e=J[b+440>>2];if(e)Ab[J[c+8>>2]](c,e);J[b+440>>2]=0;J[b+432>>2]=0;J[b+436>>2]=0;e=J[b+396>>2];if(e)Ab[J[c+8>>2]](c,e);J[b+392>>2]=0;J[b+396>>2]=0;J[b>>2]=0;J[b+4>>2]=0;if(b)Ab[J[c+8>>2]](c,b);J[a+300>>2]=0}b=J[a+252>>2];if(b)Ab[J[d+8>>2]](d, -b);J[a+248>>2]=0;J[a+252>>2]=0;b=J[a+260>>2];if(b)Ab[J[d+8>>2]](d,b);I[a+256>>1]=0;J[a+260>>2]=0;b=J[a+264>>2];if(b){c=J[a+292>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+292>>2]=0;c=J[a+288>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+288>>2]=0;c=J[a+280>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+280>>2]=0;c=J[a+276>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+276>>2]=0;c=J[a+284>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+284>>2]=0;J[a+272>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0}b=J[a+132>>2];if(b)Ab[J[d+8>>2]](d,b);J[a+132>>2]=0;b=J[a+144>>2];if(b)Ab[J[d+8>>2]](d, -b);J[a+136>>2]=0;J[a+140>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+304>>2]=-1;J[a+308>>2]=-1}function Jja(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;g=xb+-64|0;xb=g;J[g+56>>2]=c;J[g+60>>2]=b;J[g+52>>2]=d;H[g+51|0]=f;J[g>>2]=0;J[g+4>>2]=0;H[g+40|0]=0;J[g+32>>2]=0;J[g+36>>2]=-1074790400;H[g+21|0]=0;H[g+22|0]=0;H[g+23|0]=0;H[g+24|0]=0;H[g+25|0]=0;H[g+26|0]=0;H[g+27|0]=0;H[g+28|0]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[195395]=0;J[g+ -16>>2]=a;a=J[195395];J[195395]=0;a:{if((a|0)==1)break a;J[195395]=0;J[g+4>>2]=J[g+60>>2];a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;J[g+8>>2]=J[g+56>>2];a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;J[g+12>>2]=J[g+52>>2];a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;H[g+40|0]=K[g+51|0];a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;a=_(1078,12)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;J[195395]=0;ha(1137,g|0,a|0,a+4|0, -e|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[195395]=0;J[g+16>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1)break a;kd(g);xb=g- -64|0;return a|0}a=Z()|0;kd(g);ba(a|0);B()}function GM(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;f=3;a:{if((d|e)<0)break a;h=J[a+8>>2];i=J[a+12>>2];m=L[i+2>>1];if(M[h+4>>2]>>0)break a;l=L[i>>1];if(M[h>>2]>>0)break a;j=P(m,K[a+18|0]);if((P(l,j)+7>>>3|0)+b>>>0>c>>>0)break a;f=0;if(!j|!l)break a;n=d&7;a=8-n|0; -k=a>>>0>j>>>0?j:a;p=(255<>2];h=J[h+12>>2]+P(o,e)+(d>>>3)|0;m=j-k|0;e=0;d=l;while(1){i=d;b:{if(!n){a=b;f=j;d=h;break b}c:{if((i|0)==(l|0)){e=K[b|0];g=n;a=b+1|0;break c}if((g|0)<(k|0)){g=(g-k|0)+8|0;if(b>>>0>=c>>>0)a=b;else{e=K[b|0]|e;a=b+1|0}break c}g=g-k|0;e=(e&65280)>>>8|0;a=b}H[h|0]=K[h|0]|(e&65535)>>>g&p;e=e<<8;f=m;d=h+1|0}if((f|0)>=8)while(1){b=K[a|0]|e;H[d|0]=K[d|0]|(b&65535)>>>g;d=d+1|0;a=a+1|0;e=b<<8;b=f>>>0>15;f=f-8|0;if(b)continue;break}d:if((f|0)>0){if((f|0)>(g| -0)){if(a>>>0>>0){e=K[a|0]|e;a=a+1|0}H[d|0]=K[d|0]|(e&65535)>>>g&65280>>>f;e=e<<8;g=(g-f|0)+8|0;break d}H[d|0]=K[d|0]|65280>>>f&(e&65535)>>>g;g=g-f|0}b=a;h=h+o|0;d=i-1|0;if((i|0)>1)continue;break}f=0}return f|0}function Oh(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;A(+a);b=v(1)|0;v(0)|0;a:{b:{b=b>>>20&2047;if(b-969>>>0<63){h=b;break b}if(b>>>0<969)return a+1;if(b>>>0<1033)break b;A(+a);f=v(1)|0;e=0;if(!(v(0)|0)&(f|0)==-1048576)break a;if(b>>>0>=2047)return a+1;if((f|0)<0){b=xb-16|0;O[b+8>>3]=1.2882297539194267E-231; -return O[b+8>>3]*1.2882297539194267E-231}b=xb-16|0;O[b+8>>3]=3.105036184601418E231;return O[b+8>>3]*3.105036184601418E231}c=O[93399];g=O[93398]*a+c;c=g-c;a=c*O[93401]+(c*O[93400]+a);c=a*a;i=c*c*(a*O[93405]+O[93404]);e=c*(a*O[93403]+O[93402]);A(+g);v(1)|0;b=v(0)|0;d=b<<4&2032;a=i+(e+(O[d+747296>>3]+a));d=d+747304|0;f=0+J[d>>2]|0;d=J[d+4>>2]+(b<<13)|0;d=f>>>0>>0?d+1|0:d;if(!h){c:{if(!(b&-2147483648)){x(0,f|0);x(1,d-1058013184|0);c=+z();a=(c*a+c)*5.4861240687936887E303;break c}x(0,f|0);x(1,d+1071644672| -0);c=+z();g=c*a;a=g+c;if(a<1){b=xb-16|0;J[b+8>>2]=0;J[b+12>>2]=1048576;O[b+8>>3]=O[b+8>>3]*2.2250738585072014E-308;e=a+1;a=e+(g+(c-a)+(a+(1-e)))+-1;a=a==0?0:a}a=a*2.2250738585072014E-308}return a}x(0,f|0);x(1,d|0);c=+z();e=c*a+c}return e}function OH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(J[b+8>>2]==(a|0)|M[b+12>>2]>2]>>>0)break a;b:{c:{d:{e:switch(K[a|0]&127){case 0:c=a+1|0;if(M[b+12>>2]>2]>>>0|(c|0)==J[b+8>>2])break a;c=a+2|0;if(M[b+12>>2]>2]>>>0)break a;d=J[b+8>>2]-c| -0;c=K[a+1|0];if(d>>>0>=c>>>0)break d;break a;case 1:break e;default:break b}c=a+1|0;if(M[b+12>>2]>2]>>>0|(c|0)==J[b+8>>2])break a;c=a+2|0;if(M[b+12>>2]>2]>>>0)break a;e=J[b+8>>2]-c|0;c=K[a+1|0]<<1;if(e>>>0>>0)break a;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)>0)break c;break a}c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break b}e=1;d=H[a|0];if((d|0)>=0)break b;c=169776;f:{g:switch(d&127){case 0:c=K[a+1|0];if(!c){c=169777;break f}c=(a+c|0)+2|0;break f;case 1:break g;default:break f}c= -K[a+1|0];if(c)a=(c<<1)+a|0;else a=169776;c=a+2|0}if(J[b+8>>2]==(c|0)|M[b+12>>2]>2]>>>0)break a;a=c+1|0;if(M[b+12>>2]>2]>>>0)break a;e=0;d=J[b+8>>2]-a|0;a=P(K[c|0],3);if(d>>>0>>0)break b;a=J[b+16>>2]-a|0;J[b+16>>2]=a;e=(a|0)>0}return e|0}return 0}function Wg(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=xb-32|0;f=J[a+68>>2];if(f>>>0>=2){i=J[a+80>>2];e=f-1|0;while(1){b=P(e,20)+i|0;J[c+24>>2]=J[b+16>>2];d=J[b+12>>2];J[c+16>>2]=J[b+8>>2];J[c+20>>2]=d;d=J[b+4>>2];J[c+8>>2]=J[b>>2];J[c+ -12>>2]=d;d=P(g,20)+i|0;J[b+16>>2]=J[d+16>>2];h=J[d+12>>2];J[b+8>>2]=J[d+8>>2];J[b+12>>2]=h;h=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=h;J[d+16>>2]=J[c+24>>2];b=J[c+20>>2];J[d+8>>2]=J[c+16>>2];J[d+12>>2]=b;b=J[c+12>>2];J[d>>2]=J[c+8>>2];J[d+4>>2]=b;e=e-1|0;g=g+1|0;if(e>>>0>g>>>0)continue;break}}a:{if(!K[a+63|0])break a;b=J[a+68>>2];b=b>>>0>>0?b:f;if(b>>>0<2)break a;d=J[a+88>>2];e=b-1|0;g=0;while(1){a=d+P(e,20)|0;J[c+24>>2]=J[a+16>>2];b=J[a+12>>2];J[c+16>>2]=J[a+8>>2];J[c+20>>2]=b;b=J[a+4>>2];J[c+8>> -2]=J[a>>2];J[c+12>>2]=b;b=d+P(g,20)|0;J[a+16>>2]=J[b+16>>2];f=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=f;f=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=f;J[b+16>>2]=J[c+24>>2];a=J[c+20>>2];J[b+8>>2]=J[c+16>>2];J[b+12>>2]=a;a=J[c+12>>2];J[b>>2]=J[c+8>>2];J[b+4>>2]=a;e=e-1|0;g=g+1|0;if(e>>>0>g>>>0)continue;break}}}function hs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=J[a+44>>2];a:{if(f){h=J[a+4>>2];b:{if(!h){h=0;break b}i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<< -16|K[d+3|0]<<24);if(!(!K[a+449|0]|(i|0)!=J[a+444>>2])){h=K[a+448|0];break b}H[a+449|0]=1;J[a+444>>2]=i;g=J[a+48>>2];n=g?g:f;c:{if((n|0)<=0){h=0;break c}l=h+40|0;o=i>>>16&255;p=i>>>8&255;i=i&255;m=2E5;h=0;g=0;while(1){f=K[(k|1)+l|0]-p|0;j=P(f,f);f=K[k+l|0]-i|0;j=j+P(f,f)|0;f=K[(k|2)+l|0]-o|0;f=j+P(f,f)|0;if(!f){h=g;break c}j=f;f=(f|0)<(m|0);m=f?j:m;h=f?g:h;k=k+4|0;g=g+1|0;if((n|0)!=(g|0))continue;break}}H[a+448|0]=h}g=L[a+26>>1];if((g|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=h;break a}f=(J[a+56>> -2]+P(J[a+52>>2],c)|0)+(P(b,g)>>3)|0;d:switch(g-1|0){case 3:g=4-((b|0)%2<<2)&252;H[f|0]=K[f|0]&(15<>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;H[g|0]=K[d|0];H[g+1|0]=K[d+1|0];H[g+2|0]=K[d+2|0]}if(e)ne(a,b,c,K[d+3|0])}function Zu(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;j=J[a+532>>2];if(!j)return 6;l=-1;d=J[j>>2];a:{if(!d)break a;e=J[j+4>>2];b:{if(e){m= -b>>>0>e>>>0?e:b;d=e;while(1){h=0;i=65536;f=0;c:{if(!d)break c;while(1){d:{if(h>>>0>=m>>>0){i=i>>1;break d}f=J[(h<<2)+c>>2];f=g>>>h&1?f:65536-f|0;if((f|0)<=0){i=0;f=d;break c}if(f>>>0>65535)break d;i=Rb(i,f);e=J[j+4>>2]}d=e;f=d;h=h+1|0;if(h>>>0>>0)continue;break}}d=J[j+136>>2]+(g<<2)|0;if(J[d>>2]!=(i|0)){J[d>>2]=i;k=1}d=f;g=g+1|0;if(g>>>0>2])continue;break}break b}i=d&3;c=J[j+136>>2];if(d>>>0>=4){j=d&-4;d=0;while(1){e=h<<2;g=e+c|0;if(J[g>>2]!=65536){J[g>>2]=65536;k=1}g=c+(e|4)|0;if(J[g>>2]!= -65536){J[g>>2]=65536;k=1}g=c+(e|8)|0;if(J[g>>2]!=65536){J[g>>2]=65536;k=1}e=c+(e|12)|0;if(J[e>>2]!=65536){J[e>>2]=65536;k=1}h=h+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}if(!i)break b;while(1){d=c+(h<<2)|0;if(J[d>>2]!=65536){J[d>>2]=65536;k=1}h=h+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if(!k)break a;l=0;J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15}return l|0}function Ni(a,b){var c=0,d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;a:{b:{if(!te(227747,H[b|0])){J[194954]=28;break b}d=2;if(!te(b,43))d=K[b|0]!=114; -d=te(b,120)?d|128:d;d=te(b,101)?d|524288:d;e=d;g=d|64;d=K[b|0];e=(d|0)==114?e:g;e=(d|0)==119?e|512:e;J[f>>2]=438;J[f+4>>2]=0;a=Qa(-100,a|0,((d|0)==97?e|1024:e)|32768,f|0)|0;if(a>>>0>=4294963201){J[194954]=0-a;a=-1}if((a|0)<0)break a;d=xb-32|0;xb=d;c:{d:{e:{if(!te(227747,H[b|0])){J[194954]=28;break e}c=Qb(1176);if(c)break d}b=0;break c}Nb(c,0,144);if(!te(b,43))J[c>>2]=K[b|0]==114?8:4;f:{if(K[b|0]!=97){b=J[c>>2];break f}b=Pa(a|0,3,0)|0;if(!(b&1024)){b=b|1024;J[d+16>>2]=b;J[d+20>>2]=b>>31;Pa(a|0,4,d+ -16|0)|0}b=J[c>>2]|128;J[c>>2]=b}J[c+80>>2]=-1;J[c+48>>2]=1024;J[c+60>>2]=a;J[c+44>>2]=c+152;g:{if(b&8)break g;J[d>>2]=d+24;J[d+4>>2]=0;if(nb(a|0,21523,d|0)|0)break g;J[c+80>>2]=10}J[c+40>>2]=3523;J[c+36>>2]=3524;J[c+32>>2]=3525;J[c+12>>2]=3526;if(!K[779829])J[c+76>>2]=-1;b=J[194973];J[c+56>>2]=b;if(b)J[b+52>>2]=c;J[194973]=c;b=c}xb=d+32|0;c=b;if(c)break a;Ja(a|0)|0}c=0}xb=f+16|0;return c}function bpa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=Q(0),g=0,h=0,i=0,j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0), -o=Q(0),p=0,q=0;l=N[a+60>>2];i=J[a+28>>2];e=J[a+32>>2];g=J[b>>2];h=J[b+32>>2];J[195395]=0;c=aa(690,h|0,c|0,g|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){a:{if(c)break a;f=Q(i>>31|1);b=J[h+84>>2];j=Q(f*Q(J[b+32>>2]));m=Q(Q(f*Q(J[b+24>>2]))+j);f=Q(e>>31|1);n=Q(f*Q(J[b+36>>2]));o=Q(Q(f*Q(0-J[b+28>>2]|0))+n);if(l!=Q(0)){k=Q(l*n);f=Q(l*o);m=Q(m+(f<=k?k:f));j=Q(j+(f>=k?k:f))}f=Q(V(n));b:{if(Q(R(f))>2]=e;f=Q(V(j));c:{if(Q(R(f))>2]=g;f=Q(Q(W(o))-Q(e|0));d:{if(Q(R(f))>2]=c;f=Q(Q(W(m))-Q(g|0));e:{if(Q(R(f))>2]=b;p=1;h=J[a+48>>2];i=J[a+52>>2];if(!(h|i))break a;q=c;c=J[a+32>>2]<0?0-i|0:i;J[d+12>>2]=q-c;J[d+4>>2]=c+e;c=J[a+28>>2]<0?0-h|0:h;if(K[a+44|0])J[d>>2]=g+((c|0)/-2|0);J[d+8>>2]=b+c}td();return p|0}a=Z()|0;td();ba(a|0);B()}function Wga(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;g=c<<2;e=J[g+J[b+8>>2]>>2];k=J[g+J[b+4>>2]>>2];b=J[b>>2]+(c<<3)|0;j=J[b>>2];l=J[b+4>>2];b=J[d+4>>2];c=J[d>>2];g=J[a+332>>2];d=J[a+472>>2];o=J[d+28>>2];p=J[d+24>>2];q=J[d+20>>2];r=J[d+16>>2];d=J[a+112>>2];if(d>>>0>=2){n=d>>>1|0;while(1){d=K[k|0]<<2;h=J[d+q>>2];i=K[e|0]<<2;m=J[i+p>>2];s=J[d+o>>2];d=g+J[i+r>>2]|0;f=K[j|0];H[c|0]=K[d+f|0];i=g+(m+s>>16)|0;H[c+1|0]=K[i+f|0];m=f;f=g+h|0;H[c+2|0]=K[m+f|0];h=K[j+1|0];H[c+3|0]=K[h+d|0];H[c+4|0]=K[h+i|0];H[c+5|0]=K[h+f|0];h=K[l|0]; -H[b|0]=K[h+d|0];H[b+1|0]=K[h+i|0];H[b+2|0]=K[h+f|0];m=d;d=K[l+1|0];H[b+3|0]=K[m+d|0];H[b+4|0]=K[d+i|0];H[b+5|0]=K[d+f|0];b=b+6|0;l=l+2|0;c=c+6|0;j=j+2|0;e=e+1|0;k=k+1|0;n=n-1|0;if(n)continue;break}d=J[a+112>>2]}if(d&1){a=K[k|0]<<2;d=J[a+q>>2];e=K[e|0]<<2;k=J[e+p>>2];i=J[a+o>>2];e=g+J[e+r>>2]|0;a=K[j|0];H[c|0]=K[e+a|0];j=g+(i+k>>16)|0;H[c+1|0]=K[j+a|0];f=c;c=d+g|0;H[f+2|0]=K[c+a|0];a=K[l|0];H[b|0]=K[a+e|0];H[b+1|0]=K[a+j|0];H[b+2|0]=K[a+c|0]}}function Zl(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;a:{b:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<4)break b;g=1;c:switch((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))+1|0){case 1:break a;case 0:break b;default:break c}h=J[b+12>>2];f=a+4|0;i=J[b+4>>2];if(h>>>0>>0)break b;j=J[b+8>>2];if((f|0)==(j|0))break b;k=K[f|0];if((k-1&255)>>>0>3)break b;c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=Kpa(k,0,e+1|0,0);if(zb)break b;d=a+5|0;if(d-i>>>0>h>>>0|c>>>0>j-d>>>0)break b;l=J[b+16>> -2]-c|0;J[b+16>>2]=l;g=0;if((l|0)<=0)break a;c=c+f|0;a=0;d:{e:switch(k-1|0){case 0:a=K[d+e|0];break d;case 1:a=d+(e<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535;break d;case 2:a=d+P(e,3)|0;a=K[a+1|0]<<8|K[a|0]<<16|K[a+2|0];break d;case 3:break e;default:break d}a=d+(e<<2)|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}if(j-c>>>0>>0|c-i>>>0>h>>>0)break a;a=l-a|0;J[b+16>>2]=a;return(a|0)>0|0}g=0}return g|0}function HH(a,b,c){var d=0,e=0,f=0,g=0,h=Q(0), -i=0;d=J[b+28>>2];e=J[d+12>>2];a:{if(!e)break a;f=J[d>>2];g=J[d+4>>2];if(g){c=sc(g,c);e=J[d+12>>2]}i=c>>>16|0;g=K[f+6|0]|K[f+7|0]<<8;if(i>>>0>=((g<<8|g>>>8)&65535)>>>0)break a;g=J[d+8>>2];d=(i<<2)+f|0;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(d)d=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+f|0;else d=169776;i=c&65535;c=K[f+2|0]|K[f+3|0]<<8|(K[f+4|0]<<16|K[f+5|0]<<24);if(c)c=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+f|0;else c=169776;h=pc(d,i,g,e,c,0)}c=K[a+4|0]|K[a+5|0]<<8;h=Q(Q(h+Q((c<< -8|c>>>8)<<16>>16))*Q(6.103515625E-5));if(h!=Q(1)){c=J[b+8>>2];d=J[c+12>>2];g=J[b+12>>2];e=J[c+68>>2];if(e)e=J[e>>2];else e=0;Ab[d|0](c,g,h,Q(0),Q(0),h,Q(0),Q(0),e)}c=J[b+104>>2];b:{if((c|0)<=0)break b;e=J[b+108>>2];if((e|0)<=0)break b;d=K[a+3|0];g=K[a+2|0];f=K[a+1|0];J[b+108>>2]=e-1;J[b+104>>2]=c-1;c=a;a=d|(f<<16|g<<8);Re(a?c+a|0:169776,b);J[b+104>>2]=J[b+104>>2]+1}if(h!=Q(1)){a=J[b+8>>2];c=J[a+16>>2];e=J[b+12>>2];b=J[a+68>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](a,e,b)}}function cH(a,b){var c=0,d=0, -e=0,f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;a:{b:{c=a+2|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break b;e=K[c|0]|K[c+1|0]<<8;c:{if(!e)break c;if(Ld(b,((e<<8|e>>>8)&65535)+a|0))break c;e=J[b+32>>2];if(e>>>0>31)break b;J[b+32>>2]=e+1;if(!K[b+28|0])break b;H[c|0]=0;H[c+1|0]=0}e=0;c=a+4|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[c|0]|K[c+1|0]<<8;d:{if(!d)break d;if(zh(((d<<8|d>>>8)&65535)+a|0,b))break d;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0; -H[c+1|0]=0}J[g+12>>2]=a;f=J[b+12>>2];c=a+6|0;d=J[b+4>>2];if(f>>>0>>0)break a;h=J[b+8>>2];if(h-c>>>0<2)break a;i=f;f=a+8|0;if(i>>>0>>0)break a;d=K[a+6|0]|K[a+7|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>h-f>>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;e=1;c=K[c|0]|K[c+1|0]<<8;if(!c)break a;c=(c<<8|c>>>8)&65535;d=c>>>0<=1?1:c;c=0;while(1){e=ZG(b,((c<<1)+a|0)+8|0,g+12|0);if(!e)break a;c=c+1|0;if((d|0)!=(c|0))continue;break}break a}e=0}xb=g+16|0;return e}function wk(a){var b= -0,c=0,d=0,e=0;b=-2;a:{if(!a|!J[a+32>>2])break a;d=J[a+36>>2];if(!d)break a;c=J[a+28>>2];if(!c|J[c>>2]!=(a|0))break a;b:{c:{e=J[c+4>>2];switch(e-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break a; -case 0:case 12:case 16:case 34:case 46:case 56:break b;default:break c}}if((e|0)==666)break b;if((e|0)!=42)break a}b=J[c+8>>2];if(b){Ab[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+68>>2];if(b){Ab[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+64>>2];if(b){Ab[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+56>>2];if(b){Ab[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}Ab[d|0](J[a+40>>2],c);J[a+28>>2]=0;b=(e|0)==113?-3:0}return b}function dA(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=xb-16| -0;xb=g;d=3;h=J[b+188>>2];a:{if(!h)break a;f=b+196|0;i=J[b+192>>2];while(1){j=i+(e<<4)|0;if(J[j>>2]==(c|0)){d=83;c=J[j+12>>2];e=J[a+8>>2];if(c>>>0>>0)break a;if(yd(a,c-e|0))break a;J[g+12>>2]=0;c=Te(a,g+12|0);d=J[g+12>>2];if(d)break a;i=c&-256;if((i|256)==256){e=c&4;b:{if(e){d=Nc(a,29712,f);break b}d=Nc(a,29776,f)}J[g+12>>2]=d;if(d)break a;d=J[b+204>>2];f=d>>31;if((d^f)-f>>>0>=32768)J[b+204>>2]=(d|0)<0?-32767:32767;d=J[b+208>>2];f=d>>31;if((d^f)-f>>>0>=32768)J[b+208>>2]=(d|0)<0?-32767:32767;f=b+ -216|0;d=Nc(a,e?29840:29872,f);J[g+12>>2]=d;if(d)break a;h=c&255;e=b+232|0;d=Jq(a,h,e);J[g+12>>2]=d;if(d)break a;c=b+248|0;if((i|0)==256){d=Jq(a,h,c);J[g+12>>2]=d;if(d)break a;d=Jq(a,h,b+264|0);break a}a=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=a;a=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=a;a=J[e+12>>2];J[b+272>>2]=J[e+8>>2];J[b+276>>2]=a;a=J[e+4>>2];J[b+264>>2]=J[e>>2];J[b+268>>2]=a}d=0;break a}e=e+1|0;if((h|0)!=(e|0))continue;break}}xb=g+16|0;return d}function _f(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;a:{if(!b)break a;f=a+236|0;h=J[f>>2];b:{if(!h){d=f;break b}e=f;d=h;while(1){g=M[d+16>>2]>>0;e=g?e:d;d=J[(g?d+4|0:d)>>2];if(d)continue;break}c:{if((e|0)==(f|0)|M[e+16>>2]>c>>>0)break c;d=J[e+20>>2];if(d){Ab[J[J[d>>2]+4>>2]](d);h=J[f>>2]}if(!h){d=f;break b}e=f;d=h;while(1){g=M[d+16>>2]>>0;e=g?e:d;d=J[(g?d+4|0:d)>>2];if(d)continue;break}if((e|0)==(f|0)|M[e+16>>2]>c>>>0)break c;g=J[e+4>>2];d:{if(!g){g=e;while(1){d=J[g+8>>2];i=J[d>>2]!=(g|0);g=d;if(i)continue;break}break d}while(1){d= -g;g=J[d>>2];if(g)continue;break}}if(J[a+232>>2]==(e|0))J[a+232>>2]=d;J[a+240>>2]=J[a+240>>2]-1;Xj(h,e);Kb(e);h=J[a+236>>2]}d=f;if(!h)break b;while(1){d=h;f=J[d+16>>2];if(f>>>0>c>>>0){f=d;h=J[d>>2];if(h)continue;break b}if(c>>>0<=f>>>0)break a;h=J[d+4>>2];if(h)continue;break}f=d+4|0}e=Pb(24);J[e+16>>2]=c;J[e+8>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=b;J[f>>2]=e;b=J[J[a+232>>2]>>2];if(b){J[a+232>>2]=b;e=J[f>>2]}Sh(J[a+236>>2],e);J[a+240>>2]=J[a+240>>2]+1}}function Mv(a,b,c){var d=0,e=0,f=0,g=0,h=0,i= -0,j=0,k=0,l=0;j=xb-16|0;xb=j;f=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;d=K[b+3|0];g=f|d;if(g){h=d&3;e=b+7|0;a:{if((d|f)-1>>>0<3){f=0;d=e;break a}l=g-h|0;f=0;while(1){f=(K[e+12|0]+(K[e+8|0]+(K[e+4|0]+(K[e|0]+f|0)|0)|0)|0)+4|0;d=e+16|0;e=d;k=k+4|0;if((l|0)!=(k|0))continue;break}}if(h)while(1){f=(K[d|0]+f|0)+1|0;d=d+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}d=f+1|0}else d=1;e=J[a+28>>2];J[j+12>>2]=0;b:{c:{d:{if(d>>>0<=e>>>0){c=J[a+32>>2];break d}J[a+36>>2]=c;c=Tb(c,4,e,d,J[a+32>>2],j+12|0);J[a+32>>2]=c; -if(J[j+12>>2])break c;J[a+28>>2]=d}d=c;if(g)while(1){e=K[b+6|0]|(K[b+5|0]<<8|K[b+4|0]<<16);i=0;a=K[b+7|0];f=a+1|0;h=f&7;if(h)while(1){J[d>>2]=e;f=f-1|0;d=d+4|0;e=e+1|0;i=i+1|0;if((h|0)!=(i|0))continue;break}if(a>>>0>=7)while(1){J[d>>2]=e;J[d+28>>2]=e+7;J[d+24>>2]=e+6;J[d+20>>2]=e+5;J[d+16>>2]=e+4;J[d+12>>2]=e+3;J[d+8>>2]=e+2;J[d+4>>2]=e+1;d=d+32|0;e=e+8|0;f=f-8|0;if(f)continue;break}b=b+4|0;g=g-1|0;if(g)continue;break}J[d>>2]=0;break b}c=0}xb=j+16|0;return c}function kA(a,b){var c=0,d=0,e=0,f=0,g= -0;a:{b:{if((b|0)<0){if(!J[a+12>>2]|J[J[a+4>>2]+16>>2]>(b|0))break b;while(1){c=J[a>>2];if(c){ch(c+32|0);qd(c+4|0);Kb(c)}f=J[a+4>>2];J[a>>2]=J[f+20>>2];c=f;e=J[c+4>>2];c:{if(e)while(1){d=e;e=J[d>>2];if(e)continue;break c}while(1){d=J[c+8>>2];e=J[d>>2]!=(c|0);c=d;if(e)continue;break}}J[a+4>>2]=d;J[a+12>>2]=J[a+12>>2]-1;Xj(J[a+8>>2],f);Kb(f);g=g-1|0;if((g|0)>(b|0))continue;break}break a}d:{e:{f:{c=a+8|0;d=J[c>>2];if(!d)break f;e=c;while(1){f=J[d+16>>2]<(b|0);e=f?e:d;d=J[(f?d+4|0:d)>>2];if(d)continue; -break}if((c|0)==(e|0)|J[e+16>>2]>(b|0))break f;b=J[a>>2];if(b){ch(b+32|0);qd(b+4|0);Kb(b)}J[a>>2]=J[e+20>>2];c=J[e+4>>2];if(c)break e;c=e;while(1){d=J[c+8>>2];b=J[d>>2]!=(c|0);c=d;if(b)continue;break}break d}a=J[a+16>>2];if(!a)break a;H[(a+J[J[a>>2]-12>>2]|0)+33|0]=1;break a}while(1){d=c;c=J[c>>2];if(c)continue;break}}if(J[a+4>>2]==(e|0))J[a+4>>2]=d;J[a+12>>2]=J[a+12>>2]-1;Xj(J[a+8>>2],e);Kb(e);return}a=J[a+16>>2];if(!a)break a;H[(a+J[J[a>>2]-12>>2]|0)+33|0]=1}}function bp(a,b){var c=0,d=0,e=0,f= -0,g=0,h=0,i=0,j=0;e=J[b+12>>2];f=J[b+4>>2];a:{if(e>>>0>>0)break a;g=J[b+8>>2];if(!(K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))|g-a>>>0<12)break a;d=a+8|0;if(e>>>0>>0|g-d>>>0<4)break a;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(c>>>0>1073741823)break a;i=a+12|0;if(e>>>0>>0)break a;c=c<<2;if(c>>>0>g-i>>>0)break a;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break a;h=1;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!d)break a;d= -d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);i=d>>>0<=1?1:d;f=J[b+8>>2];e=J[b+12>>2];g=J[b+4>>2];d=0;while(1){h=(d<<2)+a|0;c=h+12|0;if(c-g>>>0>e>>>0)return 0;if(f-c>>>0<4)return 0;e=J[b+12>>2];c=K[c|0]|K[c+1|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;g=J[b+4>>2];if(e>>>0>>0)return 0;f=J[b+8>>2];j=f-c|0;c=K[h+14|0]|K[h+15|0]<<8;c=(c<<8|c>>>8)&65535;if(j>>>0>>0)return 0;c=J[b+16>>2]-c|0;J[b+16>>2]=c;h=0;if((c|0)<=0)break a;h=1;d=d+1|0;if((i|0)!=(d|0))continue;break}}return h}function Mpa(a,b,c,d){var e=0, -f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(b){if(!c)break k;if(!d)break j;e=S(d)-S(b)|0;if(e>>>0<=31)break i;break c}if((d|0)==1|d>>>0>1)break c;zb=0;a=(a>>>0)/(c>>>0)|0;break a}if(!a)break h;if(!d|d-1&d)break g;a=b>>>Jpa(d)|0;zb=0;break a}if(!(c-1&c))break f;h=(S(c)+33|0)-S(b)|0;g=0-h|0;break d}h=e+1|0;g=63-e|0;break d}zb=0;a=(b>>>0)/(d>>>0)|0;break a}e=S(d)-S(b)|0;if(e>>>0<31)break e;break c}if((c|0)==1)break b;d=Jpa(c);c=d&31;if((d&63)>>>0>=32)a=b>>>c|0;else{e=b>>>c|0; -a=((1<>>c}zb=e;break a}h=e+1|0;g=63-e|0}e=h&63;f=e&31;if(e>>>0>=32){e=0;i=b>>>f|0}else{e=b>>>f|0;i=((1<>>f}g=g&63;f=g&31;if(g>>>0>=32){b=a<>>32-f|b<>>31;e=i<<1|b>>>31;f=m-(j+(e>>>0>g>>>0)|0)>>31;k=c&f;i=e-k|0;e=j-((d&f)+(e>>>0>>0)|0)|0;b=b<<1|a>>>31;a=l|a<<1;l=f&1;h=h-1|0;if(h)continue;break}}zb=b<<1|a>>>31;a=l|a<<1;break a}a=0;b=0}zb=b}return a}function _D(a,b,c){var d= -0,e=0,f=0,g=0,h=0;d=a>>>24|0;a:{if(!(d-123>>>0>=4294967238&d-91>>>0>5)){H[b+3|0]=93;H[b+2|0]=K[(d&15)+255360|0];H[b+1|0]=K[(a>>>28|0)+255360|0];d=91;e=4;break a}e=1}H[b|0]=d;f=a>>>16|0;d=f&255;b:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=f;e=e+1|0;break b}d=b+e|0;H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(f&15)+255360|0];H[d+1|0]=K[(a>>>20&15)+255360|0];e=e+4|0}f=a>>>8|0;d=f&255;c:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=f;e=e+1|0;break c}d=b+e|0;H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(f&15)+255360| -0];H[d+1|0]=K[(a>>>12&15)+255360|0];e=e+4|0}d=a&255;d:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=a;e=e+1|0;break d}d=b+e|0;H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(a&15)+255360|0];H[d+1|0]=K[(a>>>4&15)+255360|0];e=e+4|0}a=e+b|0;if(c){H[a|0]=58;H[a+1|0]=32;f=c+2|0;h=c+1|0;a=e+2|0;d=0;while(1){e:{e=K[c+d|0];if(!e)break e;H[a+b|0]=e;e=a+1|0;g=K[d+h|0];if(!g){a=e;break e}H[b+e|0]=g;e=a+2|0;g=K[d+f|0];if(!g){a=e;break e}H[b+e|0]=g;a=a+3|0;d=d+3|0;if((d|0)!=63)continue}break}a=a+b|0}H[a|0]=0}function gfa(a){a= -a|0;var b=0,c=0;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a:{if(c)break a;if(Ab[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=216;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(Ab[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}if(J[a+88>>2])Jl(a,0);if(J[a+92>>2])Jl(a,1);if(J[a+96>>2])Jl(a,2);if(J[a+100>>2])Jl(a,3);c:{if(J[a+212>>2])break c;if(J[a+120>>2])Kg(a,0,0);if(J[a+136>>2])Kg(a,0,1); -if(J[a+124>>2])Kg(a,1,0);if(J[a+140>>2])Kg(a,1,1);if(J[a+128>>2])Kg(a,2,0);if(J[a+144>>2])Kg(a,2,1);if(J[a+132>>2])Kg(a,3,0);if(!J[a+148>>2])break c;Kg(a,3,1)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(Ab[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=217;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(Ab[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}}function Pi(a,b){var c= -0,d=0,e=0,f=0,g=0,h=0;A(+b);c=v(1)|0;a:{c=c&2147483647;if(!(v(0)|0)&(c|0)==2146435072|c>>>0<2146435072){A(+a);c=v(1)|0;c=c&2147483647;if(!(v(0)|0)&(c|0)==2146435072|c>>>0<2146435072)break a}return a+b}A(+b);d=v(1)|0;c=v(0)|0;f=c;if(!(c|d-1072693248))return Cq(a);A(+a);c=v(1)|0;h=d>>>30&2;e=h|c>>>31;b:{c=c&2147483647;c:{if(!(v(0)|c)){d:switch(e-2|0){case 0:return 3.141592653589793;case 1:break d;default:break c}return-3.141592653589793}d=d&2147483647;if(!(d|f))break b;e:{if((d|0)==2146435072){if((c| -0)!=2146435072)break e;return O[(e<<3)+744272>>3]}if(!((c|0)!=2146435072&d+67108864>>>0>=c>>>0))break b;f:{if(h){g=0;if(d>>>0>c+67108864>>>0)break f}g=Cq(R(a/b))}a=g;g:switch(e|0){case 1:return-a;case 2:return 3.141592653589793-(a+-1.2246467991473532E-16);case 0:break c;default:break g}return a+-1.2246467991473532E-16+-3.141592653589793}a=O[(e<<3)+744304>>3]}return a}A(1.5707963267948966);c=v(1)|0;f=v(0)|0;A(+a);d=v(1)|0;v(0)|0;x(0,f|0);x(1,c&2147483647|d&-2147483648);return+z()}function pc(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=Q(0),m=0,n=Q(0);h=K[a|0]|K[a+1|0]<<8;if(((h<<8|h>>>8)&65535)>>>0<=b>>>0)return Q(Q(0));h=K[a+4|0]|K[a+5|0]<<8;m=(h<<8|h>>>8)&65535;i=K[a+2|0]|K[a+3|0]<<8;g=(i<<8|(i&65280)>>>8)&32767;k=i&128;h=k>>>7|0?m:g;b=(((m<<1)+a|0)+P(g+m<<(i>>>7&1),b)|0)+6|0;if(!(!k|!(i&-129))){j=g>>>0<=1?1:g;i=0;while(1){g=(i<<1)+a|0;g=K[g+6|0]|K[g+7|0]<<8;n=pt(e,(g<<8|g>>>8)&65535,c,d,f);g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);l=Q(Q(n*Q(g<<24|(g& -65280)<<8|(g>>>8&65280|g>>>24)))+l);b=b+4|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}a:{if(h>>>0<=j>>>0){h=j;break a}g=h-j<<1;i=b;while(1){k=(j<<1)+a|0;k=K[k+6|0]|K[k+7|0]<<8;n=pt(e,(k<<8|k>>>8)&65535,c,d,f);k=K[i|0]|K[i+1|0]<<8;l=Q(Q(n*Q((k<<8|k>>>8)<<16>>16))+l);i=i+2|0;j=j+1|0;if((j|0)!=(h|0))continue;break}b=b+g|0}if(h>>>0>>0)while(1){j=(h<<1)+a|0;j=K[j+6|0]|K[j+7|0]<<8;l=Q(Q(pt(e,(j<<8|j>>>8)&65535,c,d,f)*Q(H[b|0]))+l);b=b+1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}return Q(l)}function wE(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;l=c<<7;f=999999984/(l>>>0)|0;e=J[a+4>>2];if(l>>>0>=999999985){h=J[a>>2];J[h+20>>2]=72;Ab[J[h>>2]](a)}f=(d|0)>(f|0)?f:d;J[e+80>>2]=f;j=Kl(a,b,d<<2);if(d){n=j+12|0;o=j+8|0;p=j+4|0;q=b>>>0<2;k=c<<7;h=0;while(1){e=J[a+4>>2];c=d-h|0;f=c>>>0>f>>>0?f:c;g=P(l,f);if(g>>>0>=999999985){c=J[a>>2];J[c+20>>2]=56;J[c+24>>2]=3;Ab[J[J[a>>2]>>2]](a)}if(!q){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=15;Ab[J[J[a>>2]>>2]](a)}i=g|16;c=Qb(i); -if(!c){m=J[a>>2];J[m+20>>2]=56;J[m+24>>2]=4;Ab[J[J[a>>2]>>2]](a)}J[e+76>>2]=i+J[e+76>>2];e=e+(b<<2)|0;i=J[e+60>>2];J[c+8>>2]=0;J[c+4>>2]=g;J[c>>2]=i;J[e+60>>2]=c;a:{if(!f)break a;c=c+16|0;g=0;e=f;i=f&3;if(i)while(1){J[(h<<2)+j>>2]=c;e=e-1|0;h=h+1|0;c=c+k|0;g=g+1|0;if((i|0)!=(g|0))continue;break}if(f>>>0<4)break a;while(1){g=h<<2;J[g+j>>2]=c;c=c+k|0;J[g+p>>2]=c;c=c+k|0;J[g+o>>2]=c;c=c+k|0;J[g+n>>2]=c;c=c+k|0;h=h+4|0;e=e-4|0;if(e)continue;break}}if(d>>>0>h>>>0)continue;break}}return j|0}function Ow(a, -b){var c=0,d=0,e=0,f=0,g=0,h=0;d=(a+b|0)-1&0-a;c=b>>>0>>0?d:b;b=0;f=xb-16|0;xb=f;if(!((c>>>0)%(a>>>0)|a&3)){a:{b:{if((a|0)==8){a=Qb(c);break b}b=28;if(a&3|a>>>0<4)break a;d=a>>>2|0;if(d-1&d)break a;b=48;if(c>>>0>-64-a>>>0)break a;d=16;a=a>>>0<=16?16:a;b=a>>>0<=16?16:a;c:{if(!(b-1&b)){a=b;break c}while(1){a=d;d=a<<1;if(a>>>0>>0)continue;break}}d:{if(c>>>0>=-64-a>>>0){J[194954]=48;b=0;break d}d=c>>>0<11?16:c+11&-8;c=Qb((d+a|0)+12|0);b=0;if(!c)break d;b=c-8|0;e:{if(!(c&a-1)){a=b;break e}g=c-4| -0;h=J[g>>2];e=a;a=((a+c|0)-1&0-a)-8|0;a=(a-b>>>0<=15?e:0)+a|0;c=a-b|0;e=(h&-8)-c|0;if(!(h&3)){b=J[b>>2];J[a+4>>2]=e;J[a>>2]=b+c;break e}J[a+4>>2]=e|J[a+4>>2]&1|2;e=a+e|0;J[e+4>>2]=J[e+4>>2]|1;J[g>>2]=c|J[g>>2]&1|2;e=b+c|0;J[e+4>>2]=J[e+4>>2]|1;Vm(b,c)}b=J[a+4>>2];f:{if(!(b&3))break f;c=b&-8;if(c>>>0<=d+16>>>0)break f;J[a+4>>2]=d|b&1|2;b=a+d|0;d=c-d|0;J[b+4>>2]=d|3;c=a+c|0;J[c+4>>2]=J[c+4>>2]|1;Vm(b,d)}b=a+8|0}a=b}b=48;if(!a)break a;J[f+12>>2]=a;b=0}b=b?0:J[f+12>>2]}xb=f+16|0;return b}function pf(a, -b){var c=0,d=0,e=0,f=0,g=0;a:{b:{if(!K[a+62|0]){J[a+64>>2]=b;break b}if(!K[a+60|0])break a;d=J[a+72>>2];if(d>>>0>>0){e=d;if(M[a+76>>2]<=b>>>0){if(!yh(a,b))break a;e=J[a+72>>2]}f=b-d|0;b=J[a+80>>2];c=J[a+84>>2];c:{if((b|0)!=(c|0))break c;if(e+f>>>0<=f+J[a+64>>2]>>>0){b=c;break c}d=J[a+88>>2];J[a+84>>2]=d;b=P(e,20);if(!b){b=c;c=d;break c}Mb(d,c,b);b=J[a+80>>2];e=J[a+72>>2];c=J[a+84>>2]}qc(P(e,20)+c|0,P(J[a+64>>2],20)+b|0,P(f,20));J[a+64>>2]=f+J[a+64>>2];J[a+72>>2]=f+J[a+72>>2];break b}if(b>>>0>= -d>>>0)break b;e=J[a+64>>2];f=d-b|0;if(e>>>0>>0){b=J[a+68>>2];d=f-e|0;g=b+d|0;if(!(!g|g>>>0>2])){if(!yh(a,g))break a;e=J[a+64>>2];b=J[a+68>>2]}c=J[a+80>>2]+P(e,20)|0;qc(c+P(d,20)|0,c,P(b-e|0,20));e=d+J[a+64>>2]|0;c=J[a+68>>2];d:{if(e>>>0<=c>>>0)break d;b=P(e-c|0,20);if(!b)break d;Nb(J[a+80>>2]+P(c,20)|0,0,b);e=d+J[a+64>>2]|0;c=J[a+68>>2]}J[a+68>>2]=c+d;d=J[a+72>>2]}b=d-f|0;J[a+72>>2]=b;c=e-f|0;J[a+64>>2]=c;qc(J[a+80>>2]+P(c,20)|0,J[a+84>>2]+P(b,20)|0,P(f,20))}c=1}return c}function yma(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+12>>2];J[d>>2]=0;a:{if(!(!b|!c)){f=1;if(Ab[J[e+36>>2]](e,b,c,d,J[e+68>>2])|0)break a}if(K[J[a>>2]+128|0]&16)return 0;f=0;b:{c:switch(c-1460|0){case 0:if((b|0)!=1497)break a;J[d>>2]=64285;break b;case 3:if((b|0)!=1488){if((b|0)!=1522)break a;J[d>>2]=64287;break b}J[d>>2]=64302;break b;case 4:if((b|0)!=1488)break a;J[d>>2]=64303;break b;case 5:if((b|0)!=1493)break a;J[d>>2]=64331;break b;case 8:a=b-1488|0;if(a>>>0<=26){J[d>>2]=J[(a<<2)+135392>>2];return 131817343>>> -a&1}d:switch(b-64298|0){case 0:J[d>>2]=64300;break b;case 1:break d;default:break a}J[d>>2]=64301;break b;case 11:e:switch(b-1489|0){case 0:J[d>>2]=64332;break b;case 10:J[d>>2]=64333;break b;case 19:break e;default:break a}J[d>>2]=64334;break b;case 13:if((b|0)!=64329){if((b|0)!=1513)break a;J[d>>2]=64298;break b}J[d>>2]=64300;break b;case 14:break c;default:break a}if((b|0)!=64329){if((b|0)!=1513)break a;J[d>>2]=64299;break b}J[d>>2]=64301}f=1}return f|0}function fha(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;a:{if((d|0)<=0)break a;g=J[a+112>>2];if(!g)break a;h=J[a+120>>2];if((h|0)<=0){if(d-1>>>0>=3){i=d&-4;b=0;while(1){a=e<<2;Nb(J[a+c>>2],0,g);Nb(J[(a|4)+c>>2],0,g);Nb(J[(a|8)+c>>2],0,g);Nb(J[(a|12)+c>>2],0,g);e=e+4|0;b=b+4|0;if((i|0)!=(b|0))continue;break}}b=d&3;if(!b)break a;a=0;while(1){Nb(J[(e<<2)+c>>2],0,g);e=e+1|0;a=a+1|0;if((b|0)!=(a|0))continue;break}break a}j=J[J[a+480>>2]+24>>2];q=h&-4;p=h&3;r=h>>>0<4;while(1){a=k<<2;l=J[a+ -c>>2];i=J[a+b>>2];m=g;while(1){n=0;f=0;a=0;e=i;o=0;if(!r)while(1){s=f;f=a<<2;f=(((s+K[J[f+j>>2]+K[e|0]|0]|0)+K[J[(f|4)+j>>2]+K[e+1|0]|0]|0)+K[J[(f|8)+j>>2]+K[e+2|0]|0]|0)+K[J[(f|12)+j>>2]+K[e+3|0]|0]|0;a=a+4|0;e=e+4|0;o=o+4|0;if((q|0)!=(o|0))continue;break}if(p)while(1){f=K[J[(a<<2)+j>>2]+K[e|0]|0]+f|0;a=a+1|0;e=e+1|0;n=n+1|0;if((n|0)!=(p|0))continue;break}H[l|0]=f;l=l+1|0;i=i+h|0;m=m-1|0;if(m)continue;break}k=k+1|0;if((k|0)!=(d|0))continue;break}}}function Pr(a,b,c){var d=0,e=0,f=0;e=J[a+20>>2]; -if((e|0)!=100){d=J[a>>2];J[d+24>>2]=e;J[d+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}e=J[a+88>>2];if(!e){e=Ab[J[J[a+4>>2]>>2]](a,0,132)|0;J[e+128>>2]=0;J[a+88>>2]=e}d=0;a:{if(!c)while(1){f=(P(J[(d<<2)+250256>>2],b)+50|0)/100|0;f=(f|0)<=1?1:f;I[(d<<1)+e>>1]=f>>>0>=32767?32767:f;d=d+1|0;if((d|0)!=64)continue;break a}while(1){f=(P(J[(d<<2)+250256>>2],b)+50|0)/100|0;f=(f|0)<=1?1:f;I[(d<<1)+e>>1]=f>>>0>255?255:f>>>0>=32767?32767:f;d=d+1|0;if((d|0)!=64)continue;break}}J[e+128>>2]=0;e=J[a+20>>2];if((e|0)!=100){d=J[a>> -2];J[d+24>>2]=e;J[d+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}e=J[a+92>>2];if(!e){e=Ab[J[J[a+4>>2]>>2]](a,0,132)|0;J[e+128>>2]=0;J[a+92>>2]=e}d=0;b:{if(!c)while(1){a=(P(J[(d<<2)+250512>>2],b)+50|0)/100|0;a=(a|0)<=1?1:a;I[(d<<1)+e>>1]=a>>>0>=32767?32767:a;d=d+1|0;if((d|0)!=64)continue;break b}while(1){a=(P(J[(d<<2)+250512>>2],b)+50|0)/100|0;a=(a|0)<=1?1:a;I[(d<<1)+e>>1]=a>>>0>255?255:a>>>0>=32767?32767:a;d=d+1|0;if((d|0)!=64)continue;break}}J[e+128>>2]=0}function Maa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb- -16|0;xb=e;d=J[a+584>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)<=65536){n:switch(b-34908|0){case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break n}if((b|0)==347)break m;if((b|0)!=530)break b;Ln(a,0,0);if(J[d+932>>2]|!J[d+16>>2]|L[a+90>>1]!=6)break g;J[d+932>>2]=1;if(!(J[a+12>>2]>>>10&1))break i;if(YC(a,0))break h;break g}switch(b-65537|0){case 2:break j;case 1:break k;case 0:break l;default:break b}}J[J[c>>2]>>2]=J[d+916>>2];J[J[c+4>>2]>>2]=J[d+912>>2];a=1;break a}J[J[c>> -2]>>2]=J[d+920>>2];a=1;break a}J[J[c>>2]>>2]=J[d+924>>2];a=1;break a}J[J[c>>2]>>2]=J[d+928>>2];a=1;break a}if(!ZC(a,0))break g}b=L[d+834>>1];J[e+4>>2]=L[d+836>>1];J[e>>2]=b;xc(a,530,e);J[a+480>>2]=-1}a=Ab[J[d+892>>2]](a,530,c)|0;break a}J[J[c>>2]>>2]=J[d+936>>2];a=1;break a}J[J[c>>2]>>2]=J[d+940>>2];a=1;break a}J[J[c>>2]>>2]=J[d+944>>2];a=1;break a}J[J[c>>2]>>2]=J[d+948>>2];a=1;break a}a=Ab[J[d+892>>2]](a,b,c)|0}xb=e+16|0;return a|0}function vE(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;h=999999984/(c>>>0)|0;f=J[a+4>>2];if(c>>>0>=999999985){i=J[a>>2];J[i+20>>2]=72;Ab[J[i>>2]](a)}h=(d|0)>(h|0)?h:d;J[f+80>>2]=h;k=Kl(a,b,d<<2);if(d){m=k+12|0;n=k+8|0;o=k+4|0;p=b>>>0<2;i=0;while(1){e=J[a+4>>2];f=d-i|0;h=f>>>0>h>>>0?h:f;f=P(h,c);if(f>>>0>=999999985){g=J[a>>2];J[g+20>>2]=56;J[g+24>>2]=3;Ab[J[J[a>>2]>>2]](a)}if(!p){g=J[a>>2];J[g+24>>2]=b;J[g+20>>2]=15;Ab[J[J[a>>2]>>2]](a)}g=f+7&-8;j=g+16|0;f=Qb(j);if(!f){l=J[a>>2];J[l+20>>2]=56;J[l+24>>2]=4;Ab[J[J[a>>2]>> -2]](a)}J[e+76>>2]=j+J[e+76>>2];e=e+(b<<2)|0;j=J[e+60>>2];J[f+8>>2]=0;J[f+4>>2]=g;J[f>>2]=j;J[e+60>>2]=f;a:{if(!h)break a;e=f+16|0;g=0;f=h;j=f&3;if(j)while(1){J[(i<<2)+k>>2]=e;f=f-1|0;e=c+e|0;i=i+1|0;g=g+1|0;if((j|0)!=(g|0))continue;break}if(h>>>0<4)break a;while(1){g=i<<2;J[g+k>>2]=e;e=c+e|0;J[g+o>>2]=e;e=c+e|0;J[g+n>>2]=e;e=c+e|0;J[g+m>>2]=e;i=i+4|0;e=c+e|0;f=f-4|0;if(f)continue;break}}if(d>>>0>i>>>0)continue;break}}return k|0}function $s(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{c=J[b+12>>2];f=J[b+ -4>>2];b:{if(c>>>0>>0)break b;d=J[b+8>>2];if(d-a>>>0<2)break b;g=a+2|0;if(g-f>>>0>c>>>0|d-g>>>0<2)break b;e=K[g|0]|K[g+1|0]<<8;if(!e)return 1;e=(e<<8|e>>>8)&65535;h=e>>>0<=1?1:e;i=e-1|0;a=a+4|0;g=0;while(1){c:{if(d-a>>>0<6|a-f>>>0>c>>>0)break c;d=J[b+36>>2];c=J[d+12>>2];J[b+4>>2]=c;d=J[d+16>>2];J[b+12>>2]=d;f=c+d|0;J[b+8>>2]=f;if(g>>>0>>0){e=0;d:{if(a>>>0>>0){d=0;c=0;break d}d=0;c=0;if(a>>>0>=f>>>0)break d;c=f-a|0;d=K[a+2|0]|K[a+3|0]<<8;d=(d<<8|d>>>8)&65535;d=c>>>0>>0?c:d;e=d+a|0;c=a}J[b+ -12>>2]=d;J[b+4>>2]=c;J[b+8>>2]=e}J[195395]=0;e=zG(a,b);c=J[195395];J[195395]=0;if((c|0)==1)break a;if(e){c=a;a=K[a+2|0]|K[a+3|0]<<8;a=c+((a<<8|a>>>8)&65535)|0}c=J[b+36>>2];f=J[c+12>>2];J[b+4>>2]=f;c=J[c+16>>2];J[b+12>>2]=c;d=c+f|0;J[b+8>>2]=d;if(!e)break c;e=1;g=g+1|0;if((h|0)!=(g|0))continue;break b}break}e=0}return e}a=Z()|0;c=J[b+36>>2];d=J[c+12>>2];J[b+4>>2]=d;c=J[c+16>>2];J[b+12>>2]=c;J[b+8>>2]=c+d;ba(a|0);B()}function w8(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;d=xb-32|0;xb=d;J[a>> -2]=0;J[a+4>>2]=0;J[a+8>>2]=0;a:{b:{e=J[b>>2];g=J[b+4>>2];if((e|0)==(g|0)){e=-1;break b}c:{d:{e:{f:{g:{while(1){h:{h=O[e>>3];J[195395]=0;da(1863,d|0,+h,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break h;J[195395]=0;$(1811,d|0,32);b=J[195395];J[195395]=0;if((b|0)==1)break g;J[d+24>>2]=J[d+8>>2];J[d+8>>2]=0;f=J[d+4>>2];b=J[d>>2];J[d+16>>2]=b;J[d+20>>2]=f;J[d>>2]=0;J[d+4>>2]=0;J[195395]=0;i=b;b=H[d+27|0];f=(b|0)<0;aa(1864,a|0,(f?i:d+16|0)|0,(f?J[d+20>>2]:b&255)|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break f; -if(H[d+27|0]<0)Kb(J[d+16>>2]);if(H[d+11|0]<0)Kb(J[d>>2]);e=e+8|0;if((g|0)!=(e|0))continue;break c}break}e=Z()|0;break d}e=Z()|0;break e}e=Z()|0;if(H[d+27|0]>=0)break e;Kb(J[d+16>>2])}if(H[d+11|0]>=0)break d;Kb(J[d>>2])}if(H[a+11|0]<0)Kb(J[a>>2]);ba(e|0);B()}c=K[a+11|0];b=c<<24>>24;e=((b|0)<0?J[a+4>>2]:c)-1|0;if((b|0)>=0)break b;J[a+4>>2]=e;a=J[a>>2];break a}H[a+11|0]=e}J[(e<<2)+a>>2]=0;xb=d+32|0}function bN(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;f=xb-16|0;xb=f;e=Ab[J[a+ -516>>2]](a,1801810542,b,f+12|0)|0;a:{if(e)break a;e=142;c=J[f+12>>2];if(c>>>0<4)break a;e=Ne(b,c,a+808|0);if(e)break a;b=J[f+12>>2];J[a+812>>2]=b;e=0;d=J[a+808>>2];c=K[d+2|0]<<8|K[d+3|0];b:{if(!c)break b;j=b+d|0;k=c>>>0>=32?32:c;h=d+4|0;while(1){b=h;if(b+6>>>0>j>>>0)break b;c=K[b+3|0]|K[b+2|0]<<8;if(c>>>0<15)break b;c=b+c|0;h=c>>>0>j>>>0?j:c;c:{if(K[b+4|0]|(K[b+5|0]&3)!=1)break c;c=b+14|0;if(c>>>0>h>>>0)break c;l=1<>>8&65280|c>>>24);b=b+20|0;while(1){i=i-1|0;if(i){c=d;d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);b=b+6|0;if(c>>>0>>0)continue;break c}break}n=n|l}g=g+1|0;if((k|0)!=(g|0))continue;break}g=k}J[a+824>>2]=n;J[a+820>>2]=m;J[a+816>>2]=g}xb=f+16|0;return e|0}function QN(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;g=J[b>>2];a:{b:{if(!(!K[a+24|0]|(g|0)!=J[a+28>> -2])){Nv(a);if(!K[a+24|0])return 0;d=a+28|0;c=J[a+32>>2];break b}c=J[a+16>>2];d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!h|(g|0)==-1)break a;l=c+16|0;i=g+1|0;c=h;c:{d:{while(1){d=c+j>>>1|0;e=P(d,12)+l|0;f=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);k=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0<=i>>>0){if(g>>>0>>0)break d;j=d+1|0}else c=d;if(c>>> -0>j>>>0)continue;break}c=0;break c}c=e;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}f=J[a>>2];if(g>>>0>=k>>>0){e=0;d=d+1|0;if((h|0)==(d|0))break a}J[a+36>>2]=d;J[a+28>>2]=i;H[a+24|0]=1;d=a+28|0;if(!(c>>>0>2]?c:0)){Nv(a);c=0;if(!K[a+24|0])break b;c=J[a+32>>2];break b}J[a+32>>2]=c}e=c;J[b>>2]=J[d>>2]}return e|0}function Nl(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+4>>2]+96>>2];f=J[b+8>>2];c=J[J[b+12>>2]+68>>2];if(c)Ab[c|0](a);c=J[a+156>>2];a:{if(!c){e= -a+88|0;break a}e=J[c+4>>2];b:{if(e&1){d=J[a+88>>2];if(d){c=J[J[a+4>>2]+100>>2];Ab[J[c+8>>2]](c,d);c=J[a+156>>2];e=J[c+4>>2]}J[a+88>>2]=0;J[c+4>>2]=e&-2;break b}J[a+88>>2]=0}e=a+156|0;if(!(K[J[b>>2]+1|0]&2)){b=J[c>>2];if(b){c=J[b>>2];d=J[b+24>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+24>>2]=0;d=J[b+28>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+28>>2]=0;d=J[b+32>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+32>>2]=0;d=J[b+40>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+40>>2]=0;d=J[b+52>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+20>>2]=0;J[b+36>>2]=0;J[b+44>> -2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+88>>2]=0;d=J[b+24>>2];J[b+56>>2]=J[b+20>>2];J[b+60>>2]=d;g=J[b+32>>2];d=b- -64|0;J[d>>2]=J[b+28>>2];J[d+4>>2]=g;d=J[b+40>>2];J[b+72>>2]=J[b+36>>2];J[b+76>>2]=d;d=J[b+48>>2];J[b+80>>2]=J[b+44>>2];J[b+84>>2]=d;Ab[J[c+8>>2]](c,b);c=J[a+156>>2]}J[c>>2]=0}Ab[J[f+8>>2]](f,c)}J[e>>2]=0}function _z(a){a=a|0;var b=0,c=0,d=0;I[a+32>>1]=0;J[a+28>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a>>2]=427800;J[a+12>>2]=0;J[a+16>> -2]=0;J[a+20>>2]=0;I[a+50>>1]=0;I[a+52>>1]=0;I[a+54>>1]=0;I[a+56>>1]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[195395]=0;d=ca(3394,a+124|0,a|0)|0;b=J[195395];J[195395]=0;a:{b:{c:{d:{e:{if((b|0)!=1){J[a+176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=1;J[a+188>>2]=1;J[195395]=0;b=a+200|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;b=J[195395]; -J[195395]=0;if((b|0)==1)break e;J[a+248>>2]=0;J[a+252>>2]=0;H[a+264|0]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[195395]=0;b=J[d>>2];c=J[195395];J[195395]=0;if((c|0)==1)break d;J[a+172>>2]=b;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;c=J[a+252>>2];if(c){Kb(c);J[a+252>>2]=0}J[a+256>>2]=0;J[a+260>>2]=0}Mz(d)}Dn(a);ba(b|0);B()}J[a>>2]=427620;return a|0}function yp(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;i=K[J[a>>2]+236|0];J[g>>2]=0;J[f>>2]=0;if(K[a+11666|0]){h=e-c|0;e=i?0-h|0:h;j=J[a+4>>2];h=P(h>>16,b>>16); -b=d-b|0;J[j+16>>2]=J[j+16>>2]+(h-P(b>>16,c>>16)|0);a:{b:{b=i?0-b|0:b;if((b|0)>=0){if((e|0)>=0){if((b|0)>e<<1)break b;c=J[a+11688>>2];if((e|0)>b<<1){J[f>>2]=c;a=J[a+11692>>2];break a}k=f,l=Rb(45875,c),J[k>>2]=l;a=Rb(19661,J[a+11692>>2]);break a}if((b|0)>(0-(e<<1)|0))break b;c=J[a+11688>>2];if((0-e|0)>b<<1){J[f>>2]=0-c;a=J[a+11692>>2];break a}k=f,l=Rb(-45874,c),J[k>>2]=l;a=Rb(19661,J[a+11692>>2]);break a}c=0-b|0;if((e|0)>=0){if((c|0)>e<<1){J[f>>2]=0;a=J[a+11692>>2]<<1;break a}c=J[a+11688>>2];if((e| -0)>(0-(b<<1)|0)){J[f>>2]=c;a=J[a+11692>>2];break a}k=f,l=Rb(45875,c),J[k>>2]=l;a=Rb(111411,J[a+11692>>2]);break a}if((c|0)>(0-(e<<1)|0)){J[f>>2]=0;a=J[a+11692>>2]<<1;break a}c=J[a+11688>>2];if((0-(b<<1)|0)<(0-e|0)){J[f>>2]=0-c;a=J[a+11692>>2];break a}k=f,l=Rb(-45874,c),J[k>>2]=l;a=Rb(111411,J[a+11692>>2]);break a}J[f>>2]=0;a=0}J[g>>2]=a}}function wH(a,b,c,d,e,f){var g=0;g=rh(a,b);b=169776;a:{if((K[g|0]|K[g+1|0]<<8)!=256)break a;a=K[g+4|0]|K[g+5|0]<<8;b=169776;if(!a)break a;b=g+((a<<8|a>>>8)&65535)| -0}a=K[b|0]|K[b+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0>c>>>0)a=(b+P(c,6)|0)+2|0;else a=169776;a=K[a+4|0]|K[a+5|0]<<8;if(a)a=b+((a<<8|a>>>8)&65535)|0;else a=169776;b:{if((d|0)==65535){c=K[a|0]|K[a+1|0]<<8;b=170418;if(!c)break b;b=a+((c<<8|c>>>8)&65535)|0;break b}b=K[a+2|0]|K[a+3|0]<<8;c=((b<<8|b>>>8)&65535)>>>0<=d>>>0?169776:(a+P(d,6)|0)+4|0;c=K[c+4|0]|K[c+5|0]<<8;b=170418;if(!c)break b;b=a+((c<<8|c>>>8)&65535)|0}a=K[b+2|0]|K[b+3|0]<<8;d=a<<8|a>>>8;b=d&65535;if(e)J[e>>2]=b;if(f){if((a|0)==65535)a=0;else{a= -169776;c:{if((K[g|0]|K[g+1|0]<<8)!=256)break c;c=K[g+6|0]|K[g+7|0]<<8;a=169776;if(!c)break c;a=g+((c<<8|c>>>8)&65535)|0}c=K[a|0]|K[a+1|0]<<8;if(((c<<8|c>>>8)&65535)>>>0>(d&65535)>>>0)a=(a+P(b,6)|0)+2|0;else a=169776;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}J[f>>2]=a}}function OK(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){c=J[a+100>>2];b=J[a+316>>2];if(b){d=J[a+300>>2];if((d|0)>0){b=0;while(1){e=J[a+316>>2]+(b<<3)|0;f=J[e+4>>2];if(f){d=J[f>>2];if(d)Ab[J[c+ -8>>2]](c,d);J[J[e+4>>2]>>2]=0;d=J[e+4>>2];if(d)Ab[J[c+8>>2]](c,d);J[e+4>>2]=0;d=J[a+300>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}b=J[a+316>>2]}if(b)Ab[J[c+8>>2]](c,b);J[a+316>>2]=0}b=J[a+164>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+164>>2]=0;b=J[a+168>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+168>>2]=0;b=J[a+172>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+172>>2]=0;b=J[a+176>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+176>>2]=0;b=J[a+180>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+180>>2]=0;b=J[a+304>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+300>>2]=0;J[a+304>> -2]=0;b=J[a+140>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+152>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+152>>2]=0;b=J[a+156>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+20>>2]=0;J[a+24>>2]=0;J[a+156>>2]=0;b=J[a+324>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+324>>2]=0;b=J[a+328>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+328>>2]=0}}function KM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=xb-16|0;xb=f;j=J[a+552>>2];a:{b:{g=L[(b?a+296|0:a+216|0)+34>>1];if(!g)break b;h=J[(b?856:852)+a>>2];k=h+J[(b?756:752)+ -a>>2]|0;i=J[a+104>>2];if(c>>>0>>0){g=h+(c<<2)|0;if(g+4>>>0>k>>>0)break b;g=bc(i,g);J[f+12>>2]=g;if(g)break b;m=e,n=rc(i,f+12|0),I[m>>1]=n;if(J[f+12>>2])break b;m=d,n=rc(i,f+12|0),I[m>>1]=n;if(!J[f+12>>2])break a;break b}h=h+(g<<2)|0;if(h-2>>>0>k>>>0)break b;h=h-4|0;l=bc(i,h);J[f+12>>2]=l;if(l)break b;m=e,n=rc(i,f+12|0),I[m>>1]=n;if(J[f+12>>2])break b;g=h+(c-g<<1)|0;if(g+6>>>0>k>>>0){I[d>>1]=0;break a}g=bc(i,g+4|0);J[f+12>>2]=g;if(g){I[d>>1]=0;break a}m=d,n=rc(i,f+12|0),I[m>>1]=n;break a}I[d>>1]= -0;I[e>>1]=0}if(j){J[f+8>>2]=L[e>>1];J[f+4>>2]=I[d>>1];c:{d:{if(b){b=J[j+12>>2];if(b)Ab[b|0](a,c,f+8|0)|0;b=J[j+16>>2];if(b)break d;break c}b=J[j>>2];if(b)Ab[b|0](a,c,f+8|0)|0;b=J[j+4>>2];if(!b)break c}Ab[b|0](a,c,f+4|0)|0}I[e>>1]=J[f+8>>2];I[d>>1]=J[f+4>>2]}xb=f+16|0}function yH(a,b,c,d){var e=0,f=0,g=0;a:{b:switch(K[a|0]){case 0:if(!b|b>>>0>=c>>>0)break a;a=((b<<1)+a|0)-1|0;a=K[a|0]|K[a+1|0]<<8;return(a<<8|a>>>8)&65535;case 1:if(b>>>0>=c>>>0)break a;c:{d:{if(!d)break d;c=J[d+4>>2];if(c>>>0>b>>>0)break d; -e=J[d>>2];break c}c=1;if(!b)break a}f=a+1|0;a=K[(f+P(e,3)|0)+2|0];b=b-c|0;if(a>>>0>>0)while(1){g=a+1|0;c=g+c|0;e=e+1|0;a=K[(f+P(e,3)|0)+2|0];b=b-g|0;if(a>>>0>>0)continue;break}if(d){J[d+4>>2]=c;J[d>>2]=e}a=f+P(e,3)|0;a=K[a|0]|K[a+1|0]<<8;return((a<<8|a>>>8)&65535)+b|0;case 2:break b;default:break a}if(b>>>0>=c>>>0)break a;e:{f:{if(!d)break f;c=J[d+4>>2];if(c>>>0>b>>>0)break f;e=J[d>>2];break e}c=1;if(!b)break a}f=a+1|0;a=f+(e<<2)|0;a=K[a+2|0]|K[a+3|0]<<8;a=(a<<8|a>>>8)&65535;b=b-c|0;if(a>>> -0>>0)while(1){g=a+1|0;c=g+c|0;e=e+1|0;a=f+(e<<2)|0;a=K[a+2|0]|K[a+3|0]<<8;a=(a<<8|a>>>8)&65535;b=b-g|0;if(a>>>0>>0)continue;break}if(d){J[d+4>>2]=c;J[d>>2]=e}a=f+(e<<2)|0;a=K[a|0]|K[a+1|0]<<8;e=((a<<8|a>>>8)&65535)+b|0}return e}function f3(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;a=J[a+12>>2];g=a+4280|0;a:{b:{c:{e=J[a+4280>>2];if(e>>>0>b>>>0){e=e-b|0;f=J[a+4284>>2];if(e>>>0<=(f-a|0)-184>>>0){J[a+4280>>2]=b;J[a+4284>>2]=f-e;break c}e=0;if(bc(J[a>>2],0))break a;J[a+12>>2]=0;J[a+ -16>>2]=0;J[a+4288>>2]=g;J[a+4284>>2]=g;J[a+4280>>2]=0;J[a+104>>2]=0;J[a+48>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;H[a+44|0]=0;J[a- -64>>2]=9}if(b>>>0<=e>>>0)break c;h=J[a+4284>>2];i=J[a+4288>>2]-h|0;f=b-e|0;b=f>>>0>i>>>0?i:f;J[a+4284>>2]=b+h;J[a+4280>>2]=b+e;b=f-b|0;if(b){h=a+12|0;while(1){e=0;f=b>>>0>=4096?4096:b;if(yB(h,0,f)>>>0>>0)break a;J[g>>2]=f+J[g>>2];b=b-f|0;if(b)continue;break}}if(d)break b;return 0}if(d)break b;return 0}f=a+184|0;i=a+12|0;g=J[a+4284>>2];b=J[a+4288>>2];e=0;while(1){b=b-g|0; -b=b>>>0>>0?b:d;Mb(c+e|0,g,b);J[a+4284>>2]=b+J[a+4284>>2];J[a+4280>>2]=b+J[a+4280>>2];e=b+e|0;d=d-b|0;if(!d)break a;J[a+4284>>2]=f;h=yB(i,f,4096);g=J[a+4284>>2];b=h+g|0;J[a+4288>>2]=b;if(h)continue;break}}return e|0}function Sh(a,b){var c=0,d=0,e=0;d=(a|0)==(b|0);H[b+12|0]=d;a:{if(d)break a;while(1){d=J[b+8>>2];if(K[d+12|0])break a;b:{c=J[d+8>>2];e=J[c>>2];if((e|0)==(d|0)){e=J[c+4>>2];if(!(!e|K[e+12|0]))break b;c:{if(J[d>>2]==(b|0)){b=d;break c}b=J[d+4>>2];e=J[b>>2];J[d+4>>2]=e;a=d;if(e){J[e+8>> -2]=d;c=J[d+8>>2];a=J[c>>2]}J[b+8>>2]=c;J[((a|0)==(d|0)?c:c+4|0)>>2]=b;J[b>>2]=d;J[d+8>>2]=b;c=J[b+8>>2];d=J[c>>2]}H[b+12|0]=1;H[c+12|0]=0;a=J[d+4>>2];J[c>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[d+8>>2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d+4>>2]=c;J[c+8>>2]=d;return}if(!(K[e+12|0]|!e))break b;d:{if(J[d>>2]!=(b|0)){b=d;break d}a=J[b+4>>2];J[d>>2]=a;if(a){J[a+8>>2]=d;c=J[d+8>>2]}J[b+8>>2]=c;J[(J[c>>2]==(d|0)?c:c+4|0)>>2]=b;J[b+4>>2]=d;J[d+8>>2]=b;c=J[b+8>>2]}H[b+12|0]=1;H[c+12|0]=0;a=J[c+4>>2];b=J[a>> -2];J[c+4>>2]=b;if(b)J[b+8>>2]=c;b=J[c+8>>2];J[a+8>>2]=b;J[b+((J[b>>2]!=(c|0))<<2)>>2]=a;J[a>>2]=c;J[c+8>>2]=a;break a}H[d+12|0]=1;H[c+12|0]=(a|0)==(c|0);H[e+12|0]=1;b=c;if((a|0)!=(c|0))continue;break}}}function LC(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=xb+-64|0;xb=c;b=J[a+584>>2];a:{b:{c:{if(L[a+98>>1]!=3)break c;switch(L[a+90>>1]-6|0){case 0:case 4:break b;default:break c}}if(K[b+207|0])yc(J[a+628>>2],288080,268456,0);H[b+210|0]=0;I[b+208>>1]=257;break a}H[b+205|0]=1;H[b+206|0]=1;e=K[b+208|0];h=K[b+ -209|0];KC(a);f=K[b+210|0];d:{e:{f:{if(f){H[b+205|0]=0;I[b+208>>1]=257;d=1;g=1;if((e|0)==1)break f;break d}H[b+205|0]=0;d=e;g=K[b+208|0];if((d|0)!=(g|0))break e}if(f){e=d;break d}e=d;if(K[b+209|0]==(h|0))break d}d=K[b+209|0];f=J[a+628>>2];if(!K[b+207|0]){J[c+36>>2]=d;J[c+32>>2]=g;yc(f,288080,268853,c+32|0);break d}J[c+60>>2]=h;J[c+56>>2]=e;J[c+52>>2]=d;J[c+48>>2]=g;yc(f,288080,269423,c+48|0)}if(K[b+210|0]){d=J[a+628>>2];g:{if(!K[b+207|0]){yc(d,288080,270142,0);break g}J[c+20>>2]=h;J[c+16>>2]=e;yc(d, -288080,270789,c+16|0)}if(K[b+210|0])break a}e=K[b+208|0];d=K[b+209|0];if(e>>>0>=d>>>0)break a;a=J[a+628>>2];J[c+4>>2]=d;J[c>>2]=e;yc(a,288080,271438,c)}H[b+206|0]=1;xb=c- -64|0}function PW(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if(c){if(d){b=K[779719];d=b<<24>>24<0;c=d?J[194927]:779708;b=d?J[194928]:b;if((b|0)==-1)b=id(c);Ab[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;Mb(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];a=a+16|0;break a}b=K[779695];d=b<<24>>24<0;c=d?J[194921]:779684;b=d?J[194922]:b;if((b|0)==-1)b= -id(c);Ab[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;Mb(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];a=a+16|0;break a}c=K[779707];e=c<<24>>24<0;d=e?J[194924]:779696;c=e?J[194925]:c;if((c|0)==-1)c=id(d);Ab[J[J[a>>2]+8>>2]](a,c);e=d;d=c<<2;Mb(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+c;d=K[b+11|0];e=d<<24>>24<0;c=e?J[b>>2]:b;b=e?J[b+4>>2]:d;if((b|0)==-1)b=id(c);Ab[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;Mb(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;b=K[779695];d=b<<24>>24<0;c=d?J[194921]: -779684;b=d?J[194922]:b;if((b|0)==-1)b=id(c);Ab[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;Mb(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];a=a+16|0}J[a>>2]=J[a>>2]+b}function Q1(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0;f=b-f|0;j=d-b|0;b=j-c|0;l=!c|!e|(f|b)<0;a:{if(l){d=J[a>>2];if((f|0)>0){g=f;f=J[d-12>>2]+a|0;g=g+J[f+12>>2]|0;h=f;f=J[f+16>>2];J[h+12>>2]=f>>>0>g>>>0?g:f}f=c;c=d-12|0;d=J[c>>2]+a|0;f=f+J[d+12>>2]|0;g=d;d=J[d+16>>2];J[g+12>>2]=d>>>0>f>>>0?f:d;if((b| -0)>0){d=J[c>>2]+a|0;b=b+J[d+12>>2]|0;f=d;d=J[d+16>>2];J[f+12>>2]=b>>>0>>0?b:d}a=J[c>>2]+a|0;b=J[a+12>>2]+e|0;c=a;a=J[a+16>>2];J[c+12>>2]=a>>>0>b>>>0?b:a;break a}d=J[a>>2]-12|0;b=J[d>>2]+a|0;f=J[b+12>>2]+f|0;k=b;b=J[b+16>>2];J[k+12>>2]=b>>>0>f>>>0?f:b;f=J[d>>2]+a|0;b=J[f+12>>2];j=b+j|0;k=f;f=J[f+16>>2];J[k+12>>2]=f>>>0>j>>>0?j:f;a=J[d>>2]+a|0;d=J[a+12>>2];k=a;m=(+(e>>>0)+-.5)*.25;b:{if(R(m)<2147483648){f=~~m;break b}f=-2147483648}f=((f<<2)+d|0)+4|0;a=J[a+16>>2];J[k+12>>2]=a>>>0>f>>>0?f:a;c:{if(!b| -(c|0)<4|(!c|!d))break c;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))>>>0<13)break c;lC(b+4|0,c-4|0,d,e,g,h,i)}}return!l|0}function XM(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;h=J[a+816>>2];a:{if(!h)break a;f=J[a+812>>2];if((f|0)<10)break a;d=f;f=J[a+808>>2];j=d+f|0;d=f+4|0;g=f+10|0;k=b<<16|c;n=J[a+820>>2];i=1;while(1){b=(K[d+3|0]|K[d+2|0]<<8)+d|0;f=b>>>0>j>>>0?j:b;b:{if(K[d+4|0]|!(i&n))break b;o=K[d+5|0];b=d+14|0;e=f-b|0;c=K[d+7|0]|K[g|0]<<8;d=(e|0)<(P(c, -6)|0)?(e|0)/6|0:c;c:{if(J[a+824>>2]&i){g=0;if(!d)break b;while(1){l=d+g>>>1|0;c=P(l,6)+b|0;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if((e|0)==(k|0))break c;c=e>>>0>>0;g=c?l+1|0:g;d=c?d:l;if(g>>>0>>0)continue;break}break b}if(!d)break b;while(1){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))==(k|0)){c=b;break c}b=b+6|0;d=d-1|0;if(d)continue;break}break b}b=K[c+4|0]|K[c+5|0]<<8;m=((b<<8|b>>>8)<<16>> -16)+(o&8?0:m)|0}h=h-1|0;if(!h)break a;i=i<<1;d=f;g=d+6|0;if(j>>>0>=g>>>0)continue;break}}return m|0}function w0(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;d=J[a+208>>2];a:{if(!d)break a;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break a;d=J[a+208>>2]}Ab[J[J[d>>2]+360>>2]](d,b,c)}b=J[c>>2];d=J[b+4>>2];f=+(d|0);e=J[b>>2];g=+(e|0);b=J[a+156>>2];b:{c:{if(b){if(le(b,g,f))break c;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break b}b=J[a+208>>2];if(!b)break c;Ab[J[J[b>>2]+32>>2]](b, -g,f)}b=J[a+120>>2];J[b+680>>2]=e;J[b+684>>2]=d}d=J[c>>2];if(J[c+4>>2]-d>>>0>=9){m=a+33|0;e=1;while(1){b=(e<<3)+d|0;f=+J[b+4>>2];g=+J[b>>2];d=J[b+20>>2];h=+(d|0);i=J[b+16>>2];j=+(i|0);k=+J[b+12>>2];l=+J[b+8>>2];b=J[a+156>>2];d:{e:{if(b){if(Zj(b,g,f,l,k,j,h))break e;H[J[J[a>>2]-12>>2]+m|0]=1;break d}b=J[a+208>>2];if(!b)break e;Ab[J[J[b>>2]+40>>2]](b,g,f,l,k,j,h)}b=J[a+120>>2];J[b+680>>2]=i;J[b+684>>2]=d}e=e+3|0;d=J[c>>2];if(e>>>0>2]-d>>3>>>0)continue;break}}b=J[a+208>>2];if(!(!(!J[a+156>>2]| -!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,1);a=J[a+208>>2];Ab[J[J[a>>2]+56>>2]](a)}}function Wea(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;k=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<=0)break a;f=J[a+28>>2];g=(k<<1)-f|0;if((g|0)<=0)break a;b=0;if(e>>>0>=4){l=e&-4;while(1){h=b<<2;i=f+J[h+c>>2]|0;Nb(i,K[i-1|0],g);i=f+J[(h|4)+c>>2]|0;Nb(i,K[i-1|0],g);i=f+J[(h|8)+c>>2]|0;Nb(i,K[i-1|0],g);h=f+J[(h|12)+c>>2]|0;Nb(h,K[h-1|0],g);b=b+4|0;j=j+4|0;if((l|0)!=(j|0))continue;break}}e= -e&3;if(e)while(1){j=f+J[(b<<2)+c>>2]|0;Nb(j,K[j-1|0],g);b=b+1|0;m=m+1|0;if((e|0)!=(m|0))continue;break}e=J[a+272>>2]}if(!(!k|(e|0)<=0)){l=k&-2;i=k&1;j=0;h=0;while(1){e=j<<2;b=J[e+c>>2];g=J[(h<<2)+d>>2];f=J[(e|4)+c>>2];e=0;if((k|0)!=1)while(1){H[g|0]=(K[f+1|0]+(K[f|0]+(K[b|0]+K[b+1|0]|0)|0)|0)+1>>>2;H[g+1|0]=(K[f+3|0]+(K[f+2|0]+(K[b+2|0]+K[b+3|0]|0)|0)|0)+2>>>2;f=f+4|0;b=b+4|0;g=g+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}if(i)H[g|0]=(K[f+1|0]+(K[f|0]+(K[b|0]+K[b+1|0]|0)|0)|0)+1>>>2;h=h+1|0;j=j+2| -0;if((j|0)>2])continue;break}}}function v0(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;d=J[a+208>>2];a:{if(!d)break a;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break a;d=J[a+208>>2]}Ab[J[J[d>>2]+364>>2]](d,b,c)}b=J[c>>2];d=I[b+2>>1];f=+(d|0);e=I[b>>1];g=+(e|0);b=J[a+156>>2];b:{c:{if(b){if(le(b,g,f))break c;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;break b}b=J[a+208>>2];if(!b)break c;Ab[J[J[b>>2]+32>>2]](b,g,f)}b=J[a+120>>2];J[b+680>>2]=e;J[b+684>>2]=d}d=J[c>>2];if(J[c+ -4>>2]-d>>>0>=5){m=a+33|0;e=1;while(1){b=(e<<2)+d|0;f=+I[b+2>>1];g=+I[b>>1];d=I[b+10>>1];h=+(d|0);i=I[b+8>>1];j=+(i|0);k=+I[b+6>>1];l=+I[b+4>>1];b=J[a+156>>2];d:{e:{if(b){if(Zj(b,g,f,l,k,j,h))break e;H[J[J[a>>2]-12>>2]+m|0]=1;break d}b=J[a+208>>2];if(!b)break e;Ab[J[J[b>>2]+40>>2]](b,g,f,l,k,j,h)}b=J[a+120>>2];J[b+680>>2]=i;J[b+684>>2]=d}e=e+3|0;d=J[c>>2];if(e>>>0>2]-d>>2>>>0)continue;break}}b=J[a+208>>2];if(!(!(!J[a+156>>2]|!b)|!b)){Ab[J[J[b>>2]+52>>2]](b,1);a=J[a+208>>2];Ab[J[J[a>>2]+56>> -2]](a)}}function xF(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;e=J[a+12>>2];f=J[a+8>>2];if((e|0)!=(f|0)){c=K[b+11|0];d=c<<24>>24<0;h=d?J[b>>2]:b;j=d?J[b+4>>2]:c;d=f;while(1){g=K[d+11|0];i=g<<24>>24;b=(i|0)<0;a:{c=J[d+4>>2];if(((b?c:g)|0)!=(j|0))break a;b:{if(!b){b=h;c=d;if(!i)break b;while(1){if(K[c|0]!=K[b|0])break a;b=b+1|0;c=c+1|0;g=g-1|0;if(g)continue;break}break b}if(!c)break b;if(cd(J[d>>2],h,c))break a}b=J[d+12>>2];if(b){Kb(b);J[d+12>>2]=0;f=J[a+8>>2];e=J[a+12>>2]}d=P((d-f|0)/20| -0,20)+f|0;b=d+20|0;c:{if((e|0)==(b|0)){c=d;break c}c=d;while(1){if(H[c+11|0]<0)Kb(J[c>>2]);f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];H[b+11|0]=0;H[b|0]=0;f=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=f;c=c+20|0;b=b+20|0;if((e|0)!=(b|0))continue;break}e=J[a+12>>2]}c=d+P((c-d|0)/20|0,20)|0;if((c|0)!=(e|0))while(1){b=e-20|0;if(H[e-9|0]<0)Kb(J[b>>2]);e=b;if((b|0)!=(c|0))continue;break}J[a+12>>2]=c;return 1}d=d+20|0;if((e|0)!=(d|0))continue;break}}return 0}function jG(a){a=a|0;var b= -0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{e=vc(1,40);if(e){b=J[a+44>>2];if((b|0)<=0){a=0;break a}f=J[a+4>>2]==1098015074;j=J[a+48>>2];k=b-1|0;a=k;b:{c:{while(1){d=a+c>>>1|0;g=J[P(d,36)+j>>2];d:{if(g>>>0>=1937007465){a=d-1|0;break d}if((g|0)==1937007464)break c;c=d+1|0}if((a|0)>=(c|0))continue;break}a=0;break b}a=(J[(P(d,36)+j|0)+28>>2]!=0)<<1}H[e+36|0]=f|a;f=0;if((b|0)<=0)break a;while(1){b=f<<2;d=J[b+130800>>2];c=0;a=k;g=b+e|0;e:{f:{while(1){b=a+c>>>1|0;h=P(b,36)+j|0;i=J[h>>2];g:{if(i>>>0>d>>>0){a= -b-1|0;break g}if(d>>>0<=i>>>0)break f;c=b+1|0}if((a|0)>=(c|0))continue;break}a=0;break e}a=J[h+28>>2]}J[g>>2]=a;g=K[e+36|0];b=0;h:{if(!(g&1))break h;c=0;a=k;b=1;if(44>>>f&1)break h;i:{while(1){b=a+c>>>1|0;h=P(b,36)+j|0;i=J[h>>2];j:{if(i>>>0>d>>>0){a=b-1|0;break j}if(d>>>0<=i>>>0)break i;c=b+1|0}if((a|0)>=(c|0))continue;break}b=0;break h}b=H[h+32|0]&1}H[e+36|0]=b|g&254;f=f+1|0;if((f|0)!=7)continue;break}}return e|0}H[e+36|0]=a;return e|0}function iw(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=J[a>>2]; -a:{if(!h)break a;d=J[a+8>>2];f=h&3;b:{if(!f){e=h;break b}e=h;while(1){J[d+24>>2]=-1;J[d+16>>2]=J[d+16>>2]&-5;d=d+28|0;e=e-1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}if(h>>>0<4)break a;while(1){J[d+24>>2]=-1;J[d+52>>2]=-1;J[d+80>>2]=-1;J[d+108>>2]=-1;J[d+16>>2]=J[d+16>>2]&-5;J[d+44>>2]=J[d+44>>2]&-5;J[d+72>>2]=J[d+72>>2]&-5;J[d+100>>2]=J[d+100>>2]&-5;d=d+112|0;e=e-4|0;if(e)continue;break}}if(!b){J[a+4>>2]=0;return}d=0;g=0;e=0;f=0;while(1){if(!d){g=K[c|0];d=128;c=c+1|0}c:{if(!(d&g))break c;i=J[a+8>> -2]+P(e,28)|0;j=J[i+16>>2];if(j&4)break c;J[i+16>>2]=j|4;if(f>>>0>=h>>>0)break c;J[J[a+12>>2]+(f<<2)>>2]=i;f=f+1|0}d=d>>>1|0;e=e+1|0;if((e|0)!=(b|0))continue;break}J[a+4>>2]=f;if((f|0)>=2){c=J[a+12>>2];a=1;while(1){e=J[c+(a<<2)>>2];h=J[e>>2];d=a;while(1){b=d-1|0;g=c+(b<<2)|0;i=J[g>>2];if((h|0)<=J[i>>2]){J[c+(d<<2)>>2]=i;J[g>>2]=e;g=(d|0)>1;d=b;if(g)continue}break}a=a+1|0;if((f|0)!=(a|0))continue;break}}}function aoa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=K[a|0]|K[a+1|0]<<8;a:{if(e&256){c=K[a+6| -0]|K[a+7|0]<<8;f=(c<<8|c>>>8)<<16>>16;a=K[a+4|0]|K[a+5|0]<<8;g=(a<<8|a>>>8)<<16>>16;break a}f=H[a+5|0];g=H[a+4|0]}a=J[b>>2];if((a|0)>=0){d=J[b+4>>2]+4|0;b:{if(d>>>0<=a>>>0)break b;c=a;while(1){c=((c>>>1|0)+c|0)+8|0;if(d>>>0>c>>>0)continue;break}c:{if(c>>>0<=357913941){a=ic(J[b+8>>2],P(c,12));if(a)break c;a=J[b>>2];if(c>>>0<=a>>>0)break b}J[b>>2]=a^-1;return 0}J[b>>2]=c;J[b+8>>2]=a;a=c}c=J[b+4>>2];d:{if((c|0)<(a|0))break d;e:{if((a|0)>=0){d=c+1|0;if(d>>>0<=a>>>0)break d;c=a;while(1){c=((c>>>1|0)+c| -0)+8|0;if(d>>>0>c>>>0)continue;break}if(c>>>0<=357913941){a=ic(J[b+8>>2],P(c,12));if(a)break e;a=J[b>>2];if(c>>>0<=a>>>0)break d}J[b>>2]=a^-1}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;return 1}J[b>>2]=c;J[b+8>>2]=a}a=J[b+4>>2];J[b+4>>2]=a+1;b=J[b+8>>2]+P(a,12)|0;I[b+8>>1]=0;a=e&512;N[b+4>>2]=a?Q(f|0):Q(0);N[b>>2]=a?Q(g|0):Q(0);a=1}else a=0;return a|0}function PM(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;e=xb-16|0;xb=e;h=J[a+100>>2];J[e+8>>2]=0;c=3;a:{if(!J[a+868>>2])break a; -c=Ab[J[a+516>>2]](a,1129270354,b,e+4|0)|0;J[e+12>>2]=c;b:{if(c)break b;c:{c=J[e+4>>2];if(c>>>0<14)break c;c=Ne(b,c,e+8|0);J[e+12>>2]=c;if(c)break b;c=J[e+8>>2];f=tc(h,24,e+12|0);if(J[e+12>>2])break b;d=K[c|0]|K[c+1|0]<<8;d=d<<8|d>>>8;I[f>>1]=d;if(d&65535)break c;d=K[c+2|0]|K[c+3|0]<<8;g=d<<8|d>>>8;I[f+2>>1]=g;d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);i=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=J[e+4>>2];if(i>>>0>=d>>>0|d-i>>>0>>0)break c;g=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16| -K[c+11|0]<<24);c=K[c+12|0]|K[c+13|0]<<8;j=c<<8|c>>>8;I[f+4>>1]=j;c=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(c>>>0>=d>>>0|d-c>>>0<(j&65535)<<2>>>0)break c;b=J[e+8>>2];J[f+20>>2]=d;J[f+16>>2]=b;J[f+12>>2]=b+c;J[f+8>>2]=b+i;J[a+872>>2]=f;c=0;break a}J[e+12>>2]=8}rd(b,e+8|0);if(f)Ab[J[h+8>>2]](h,f);c=J[e+12>>2]}xb=e+16|0;return c|0}function $j(a,b,c){var d=0,e=0,f=0,g=0;d=c-b|0;if((d|0)<=0)return 0;a=(b>>3)+a|0;b=b&7;a:{if(b){c=8-b|0;e=K[(K[a|0]<>>0>>0?c:e;f=c>>>0>>0?c:d; -if(b+f>>>0<8)break a;d=d-f|0;a=a+1|0}b:{c:{d:{if((d|0)<64){b=a;a=d;c=f;break d}e:{if(!(a&3)){b=a;c=f;a=d;break e}f:{g:{b=K[a|0];if((b|0)!=255){c=f;break g}e=d-8|0;c=f+8|0;b=a+1|0;if(!(b&3)){a=e;e=d;break f}b=K[b|0];if((b|0)!=255)break g;g=d-16|0;c=f+16|0;b=a+2|0;if(!(b&3)){a=g;break f}b=K[b|0];if((b|0)!=255)break g;e=d-24|0;c=f+24|0;b=a+3|0;if(!(b&3)){a=e;e=g;break f}b=K[b|0];if((b|0)!=255)break g;b=a+4|0;a=d-32|0;c=f+32|0;break f}return K[b+287584|0]+c|0}if((e|0)<40)break d}d=a;while(1){if(J[b>> -2]!=-1){a=d;break c}b=b+4|0;c=c+32|0;e=(d|0)>63;a=d-32|0;d=a;if(e)continue;break}}if((a|0)<8)break b}d=a;while(1){a=K[b|0];if((a|0)!=255)return K[a+287584|0]+c|0;b=b+1|0;c=c+8|0;e=(d|0)>15;a=d-8|0;d=a;if(e)continue;break}}if((a|0)<=0)return c;b=K[K[b|0]+287584|0];f=((a|0)<(b|0)?a:b)+c|0}return f}function Nh(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=a;e=xb-208|0;xb=e;J[e+8>>2]=1;J[e+12>>2]=0;i=P(b,c);a:{if(!i)break a;J[e+16>>2]=c;J[e+20>>2]=c;j=0-c|0;a=c;f=a;g=2;while(1){b=a;a=(c+f|0)+a|0;J[(e+16|0)+ -(g<<2)>>2]=a;g=g+1|0;f=b;if(a>>>0>>0)continue;break}b=(h+i|0)+j|0;b:{if(b>>>0<=h>>>0){a=1;break b}g=1;a=1;while(1){c:{if((g&3)==3){uq(h,c,d,a,e+16|0);$m(e+8|0,2);a=a+2|0;break c}g=e+16|0;f=a-1|0;d:{if(M[g+(f<<2)>>2]>=b-h>>>0){_m(h,c,d,e+8|0,a,0,g);break d}uq(h,c,d,a,e+16|0)}if((a|0)==1){Zm(e+8|0,1);a=0;break c}Zm(e+8|0,f);a=1}g=J[e+8>>2]|1;J[e+8>>2]=g;h=c+h|0;if(b>>>0>h>>>0)continue;break}}_m(h,c,d,e+8|0,a,0,e+16|0);if(!((a|0)!=1|J[e+8>>2]!=1|J[e+12>>2]))break a;while(1){e:{if((a|0)<=1){f=e+8| -0;b=fz(f);$m(f,b);a=a+b|0;break e}f=e+8|0;Zm(f,2);J[e+8>>2]=J[e+8>>2]^7;$m(f,1);i=h+j|0;g=e+16|0;b=a-2|0;_m(i-J[g+(b<<2)>>2]|0,c,d,f,a-1|0,1,g);Zm(f,1);J[e+8>>2]=J[e+8>>2]|1;_m(i,c,d,f,b,1,g);a=b}h=h+j|0;if(J[e+12>>2]|((a|0)!=1|J[e+8>>2]!=1))continue;break}}xb=e+208|0}function nq(a,b,c,d){var e=0,f=0,g=0,h=0;g=xb-32|0;xb=g;e=d&2147483647;h=e;f=e-1006698496|0;e=e-1140785152|0;a:{if((f|0)==(e|0)&0|e>>>0>f>>>0){e=c<<4|b>>>28;c=d<<4|c>>>28;b=b&268435455;if((b|0)==134217728&(a|0)!=0|b>>>0>134217728){f= -c+1073741824|0;e=e+1|0;f=e?f:f+1|0;break a}f=c+1073741824|0;if(a|(b|0)!=134217728)break a;a=e&1;e=a+e|0;f=a>>>0>e>>>0?f+1|0:f;break a}if(!(!c&(h|0)==2147418112?!(a|b):h>>>0<2147418112)){a=d<<4|c>>>28;e=c<<4|b>>>28;f=a&524287|2146959360;break a}e=0;f=2146435072;if(h>>>0>1140785151)break a;f=0;h=h>>>16|0;if(h>>>0<15249)break a;e=d&65535|65536;Ke(g+16|0,a,b,c,e,h-15233|0);Ii(g,a,b,c,e,15361-h|0);b=J[g+8>>2];e=b<<4;b=J[g+12>>2]<<4|b>>>28;c=J[g>>2];f=J[g+4>>2];h=f;e=f>>>28|e;f=b;a=h&268435455;b=c|(J[g+ -16>>2]|J[g+24>>2]|(J[g+20>>2]|J[g+28>>2]))!=0;if((a|0)==134217728&(b|0)!=0|a>>>0>134217728){e=e+1|0;f=e?f:f+1|0;break a}if(b|(a|0)!=134217728)break a;a=e;e=e+(e&1)|0;f=a>>>0>e>>>0?f+1|0:f}xb=g+32|0;x(0,e|0);x(1,d&-2147483648|f);return+z()}function Uca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;k=(g|0)/2|0;a:{if(!f)break a;g=f-1|0;j=J[a+64>>2];if(e>>>0>=2){c=e-2|0;m=c&2;n=c>>>0<2;while(1){l=g;a=e;g=b;f=i;if(!m){a=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[a>> -2];J[b+4>>2]=J[a+4>>2];g=b+8|0;f=f+1|0;a=c}d=c;if(!n){while(1){b=g;d=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[d>>2];J[b+4>>2]=J[d+4>>2];d=f;i=J[(K[f+1|0]<<2)+j>>2];J[b+8>>2]=J[i>>2];J[b+12>>2]=J[i+4>>2];g=b+16|0;f=f+2|0;a=a-4|0;if(a>>>0>1)continue;break}i=d+1|0;d=a;b=b+8|0}b:{if(d){J[g>>2]=J[J[(K[f|0]<<2)+j>>2]>>2];g=3;a=2;break b}g=2;a=1}b=((g<<2)+b|0)+(h<<2)|0;g=l-1|0;i=(a+i|0)+k|0;if(l)continue;break}break a}if(!e)break a;if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f= -g;if(!g)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function Pca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;k=(g|0)/2|0;a:{if(!f)break a;g=f-1|0;j=J[a+60>>2];if(e>>>0>=2){c=e-2|0;m=c&2;n=c>>>0<2;while(1){l=g;a=e;g=b;f=i;if(!m){a=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];g=b+8|0;f=f+1|0;a= -c}d=c;if(!n){while(1){b=g;d=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[d>>2];J[b+4>>2]=J[d+4>>2];d=f;i=J[(K[f+1|0]<<2)+j>>2];J[b+8>>2]=J[i>>2];J[b+12>>2]=J[i+4>>2];g=b+16|0;f=f+2|0;a=a-4|0;if(a>>>0>1)continue;break}i=d+1|0;d=a;b=b+8|0}b:{if(d){J[g>>2]=J[J[(K[f|0]<<2)+j>>2]>>2];g=3;a=2;break b}g=2;a=1}b=((g<<2)+b|0)+(h<<2)|0;g=l-1|0;i=(a+i|0)+k|0;if(l)continue;break}break a}if(!e)break a;if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=g;if(!g)break a;while(1){J[b>>2]=J[J[(K[i| -0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function Jla(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=h|0;c=J[b>>2];a=J[b+4>>2];a:{b:{if((c|0)>(a|0))break b;c:{if((c|0)>=0){h=a+1|0;if(h>>>0<=c>>>0)break b;a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(h>>>0>a>>>0)continue;break}if(a>>>0<=357913941){c=ic(J[b+8>>2],P(a,12));if(c)break c;c=J[b>>2];if(c>>>0>=a>>>0)break b}J[b>>2]= -c^-1}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;break a}J[b>>2]=a;J[b+8>>2]=c}a=J[b+4>>2];J[b+4>>2]=a+1;a=J[b+8>>2]+P(a,12)|0;J[a+8>>2]=2;N[a+4>>2]=e;N[a>>2]=d}c=J[b>>2];a=J[b+4>>2];d:{if((c|0)>(a|0))break d;e:{if((c|0)>=0){h=a+1|0;if(h>>>0<=c>>>0)break d;a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(h>>>0>a>>>0)continue;break}if(a>>>0<=357913941){c=ic(J[b+8>>2],P(a,12));if(c)break e;c=J[b>>2];if(c>>>0>=a>>>0)break d}J[b>>2]=c^-1}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]= -a;return}J[b>>2]=a;J[b+8>>2]=c}a=J[b+4>>2];J[b+4>>2]=a+1;a=J[b+8>>2]+P(a,12)|0;J[a+8>>2]=2;N[a+4>>2]=g;N[a>>2]=f}function rX(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=b+1|0;i=Pb(d>>>0>1073741823?-1:d<<2);if((b|0)>0)while(1){f=a+h|0;e=H[f|0];d=e&255;g=1;a:{if((e|0)>=0)break a;b:{c:{if(!(d&32)){e=h+1|0;if((e|0)>=(b|0)){g=2;d=0;break a}g=2;d=d<<6&1984;break c}if(!(d&16)){e=h+2|0;if((e|0)>=(b|0)){g=3;d=0;break a}g=3;d=d<<12&61440|(K[f+1|0]&63)<<6;break c}if(!(d&15)){e=h+3|0;if((e|0)>= -(b|0))break b;g=4;d=d<<18&1835008|(K[f+1|0]&63)<<12|(K[f+2|0]&63)<<6;break c}if(!(d&8)){e=h+3|0;if((e|0)>=(b|0))break b;g=4;d=d<<18&1835008|(K[f+1|0]&63)<<12|(K[f+2|0]&63)<<6;break c}if(!(d&4)){e=h+4|0;if((e|0)>=(b|0)){g=5;d=0;break a}g=5;d=d<<24&50331648|(K[f+1|0]&63)<<18|(K[f+2|0]&63)<<12|(K[f+3|0]&63)<<6;break c}e=h+5|0;if((e|0)>=(b|0)){g=6;d=0;break a}g=6;d=d<<30&1073741824|(K[f+1|0]&63)<<24|(K[f+2|0]&63)<<18|(K[f+3|0]&63)<<12|(K[f+4|0]&63)<<6}d=d|K[a+e|0]&63;break a}g=4;d=0}J[(j<<2)+i>>2]=d; -j=j+1|0;h=g+h|0;if((h|0)<(b|0))continue;break}J[(j<<2)+i>>2]=0;Bw(c,i);Kb(i)}function gl(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(+a);d=v(1)|0;f=v(0)|0;h=d>>>16|0;e=d-1072562176|0;if((e|0)==198911|e>>>0<198911){if(!f&(d|0)==1072693248)return 0;b=a+-1;a=b*134217728;k=b+a-a;i=O[93675];j=k*k*i;a=b+j;c=b*b;g=b*c;return a+(g*(g*(g*(g*O[93685]+(c*O[93684]+(b*O[93683]+O[93682])))+(c*O[93681]+(b*O[93680]+O[93679])))+(c*O[93678]+(b*O[93677]+O[93676])))+((b-k)*i*(b+k)+(j+(b-a))))}a:{if(h-32752>>> -0<=4294934559){A(+a);e=v(1)|0;if(!(v(0)|e&2147483647)){f=xb-16|0;O[f+8>>3]=-1;return O[f+8>>3]/0}if(!f&(d|0)==2146435072)break a;if(!((h&32752)!=32752&h>>>0<=32767)){a=a-a;return a/a}A(+(a*4503599627370496));d=v(1)|0;f=v(0)|0;d=d-54525952|0}l=d-1072037888|0;i=+(l>>20);e=(l>>>13&127)<<4;j=i*O[93668]+O[e+749496>>3];a=O[e+749488>>3];h=0;x(0,f-h|0);x(1,d-((l&-1048576)+(f>>>0>>0)|0)|0);c=a*(+z()-O[e+751536>>3]-O[e+751544>>3]);a=j+c;g=c*c;a=a+(c*g*(g*(c*O[93674]+O[93673])+(c*O[93672]+O[93671]))+(g*O[93670]+ -(i*O[93669]+(c+(j-a)))))}return a}function gf(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:switch(c-1|0){case 0:J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=1072693248;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;return;case 1:h=O[b+32>>3];i=O[b+40>>3];f=O[b>>3];g=O[b+8>>3];d=O[b+16>>3];j=O[a+8>>3];k=O[a+24>>3];e=O[b+24>>3];O[a+24>>3]=d*j+k*e;l=d;d=O[a>>3];m=e;e=O[a+16>>3];O[a+16>>3]=l*d+m*e;O[a+8>>3]=f*j+g*k;O[a>>3]=f*d+ -g*e;O[a+40>>3]=h*j+k*i+O[a+40>>3];O[a+32>>3]=O[a+32>>3]+(h*d+e*i);return;case 2:j=O[b+32>>3];k=O[b+40>>3];h=O[b>>3];i=O[b+16>>3];d=O[a+16>>3];f=O[b+8>>3];g=O[b+24>>3];e=O[a+24>>3];O[a+24>>3]=d*f+g*e;O[a+16>>3]=d*h+i*e;d=O[a>>3];e=O[a+8>>3];O[a+8>>3]=f*d+g*e;O[a>>3]=d*h+e*i;d=f;f=O[a+32>>3];e=g;g=O[a+40>>3];O[a+40>>3]=k+(d*f+e*g);O[a+32>>3]=j+(f*h+i*g);return;default:break a}O[a>>3]=O[b>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3]} -function vm(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;m=b<<3;f=J[a+36>>2];a:{j=J[a+48>>2];g=J[j+4>>2];b:{if((g|0)<(d|0))break b;k=j+m|0;i=J[k+4>>2];if((i|0)>(e|0))break b;h=g;l=J[a+4>>2];g=0-l|0;h=h&g;n=(h|0)<(e|0);c:{if((d|0)>(i|0)){g=d;break c}d=l-1|0;g=g&d+i;if(d&i&65535){d=g;break c}if(K[a+79|0]){H[a+79|0]=0;f=f-4|0}J[f>>2]=J[k>>2];d=g+l|0;f=f+4|0}if(K[a+78|0]){J[J[a+80>>2]+20>>2]=g>>J[a>>2];H[a+78|0]=0}g=n?h:e;if((g|0)<(d|0))break b;if(M[a+32>>2]<=((g-d>>J[a>>2]<<2)+f|0)+4>>>0)break a; -i=0-b|0;l=b<<3;e=j;while(1){H[a+79|0]=0;b=J[e+4>>2];d:{if((b|0)>(d|0)){h=b;b=e+l|0;k=J[b+4>>2];h=h-k|0;if((h|0)>=J[a+16>>2]){Ab[c|0](e);break d}b=J[b>>2];J[f>>2]=((P(J[e>>2]-b|0,d-k|0)|0)/(h|0)|0)+b;f=f+4|0;d=J[a+4>>2]+d|0;b=(i<<3)+e|0;break d}if((b|0)==(d|0)){H[a+79|0]=1;J[f>>2]=J[e>>2];f=f+4|0;d=J[a+4>>2]+d|0}b=(i<<3)+e|0}e=b;if(j>>>0<=e>>>0&(d|0)<=(g|0))continue;break}j=J[a+48>>2]}J[a+36>>2]=f;J[a+48>>2]=j-m;return 0}J[a+40>>2]=98;J[a+36>>2]=f;return 1}function vD(a,b,c){var d=0,e=0,f=0,g=0;f= -xb-16|0;xb=f;a:{b:{c:{d:{e:{d=J[a+708>>2];switch(d|0){case 1:break c;case 0:break d;default:break e}}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break d;Wb(a,261553);mc(a,c);break b}d=J[a+200>>2];if(!(d&1))break a;if(d&4)J[a+200>>2]=d|8;cc(a,J[a+740>>2]);d=Ed(a,c+1|0);J[a+740>>2]=d;if(!d){Wb(a,261611);break b}Gd(a,d,c);Fc(a,d,c);e=mc(a,0);d=J[a+740>>2];if(e){cc(a,d);J[a+740>>2]=0;break b}H[c+d|0]=0;g=J[a+740>>2];e=g;while(1){d=e;e=d+1|0;if(K[d|0])continue;break}if(!(d>>>0<(c+g|0)-2>>>0&c>>>0>=2)){Wb(a,261647); -cc(a,J[a+740>>2]);J[a+740>>2]=0;break b}if(K[e|0]){Wb(a,261668);g=J[a+740>>2]}e=(d-g|0)+2|0;Cr(a,0,c,e,f+12|0);c=Ed(a,28);if(!c){Wb(a,261707);cc(a,J[a+740>>2]);J[a+740>>2]=0;break b}J[c>>2]=0;d=J[a+740>>2];J[c+24>>2]=0;J[c+4>>2]=d;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=d+e;J[c+12>>2]=J[f+12>>2];b=zr(a,b,c);cc(a,c);cc(a,J[a+740>>2]);J[a+740>>2]=0;if(!b)break b;gc(a,261747);B()}mc(a,c)}xb=f+16|0;return}gc(a,261586);B()}function Ut(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;if(!(H[a+ -12|0]&1))return;e=J[a+16>>2];a:{if(M[a+20>>2]<=(e>>>1|0)+e>>>0)if(!Tt(a,0))break a;g=J[a+32>>2];k=c&1073741823;e=(k>>>0)%M[a+24>>2]|0;h=J[(g+P(e,12)|0)+4>>2];if(h&2){q=J[a+20>>2];i=J[b>>2];c=-1;while(1){b:{c:{if((h>>>2|0)!=(k|0))break c;j=J[P(e,12)+g>>2];m=J[j+4>>2];f=J[j>>2];n=m-f|0;o=J[i>>2];if((n|0)!=(J[i+4>>2]-o|0))break c;p=J[j+12>>2];if((p|0)!=J[i+12>>2])break c;if((f|0)!=(m|0))if(cd(f,o,n))break c;f=P(p,12);if(f)if(cd(J[j+16>>2],J[i+16>>2],f))break c;break b}c=h&1?c:(c|0)!=-1?c:e;l=l+1|0;e= -l+e&q;h=J[(P(e,12)+g|0)+4>>2];if(h&2)continue}break}e=(c|0)==-1?e:c}c=P(e,12)+g|0;if(K[c+4|0]&2){J[a+16>>2]=J[a+16>>2]-1;J[a+12>>2]=J[a+12>>2]-(J[c+4>>2]<<1&2)}J[c>>2]=J[b>>2];J[(P(e,12)+g|0)+8>>2]=J[d>>2];J[c+4>>2]=k<<2|3;b=J[a+16>>2]+1|0;J[a+16>>2]=b;J[a+12>>2]=J[a+12>>2]+2;if(M[a+28>>2]>=l>>>0)break a;c=b<<3;b=J[a+20>>2];if(c>>>0<=b>>>0)break a;Tt(a,b-8|0)}}function c2(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=xb-32|0;xb=e;J[e+28>>2]=d;J[e+24>>2]=d;H[e+20|0]=0;J[e+8>>2]=a;J[e+16>> -2]=e+28;J[e+12>>2]=e+24;if((b|0)!=(c|0))while(1){a=b-24|0;h=d-24|0;a:{b:{c:{d:{if(H[b-13|0]>=0){f=J[a+4>>2];J[h>>2]=J[a>>2];J[h+4>>2]=f;J[h+8>>2]=J[a+8>>2];break d}f=J[b-20>>2];g=J[a>>2];J[195395]=0;fa(1808,h|0,g|0,f|0);f=J[195395];J[195395]=0;if((f|0)==1)break c}f=b-12|0;g=d-12|0;if(H[b-1|0]>=0){b=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=b;J[g+8>>2]=J[f+8>>2];break a}b=J[b-8>>2];f=J[f>>2];J[195395]=0;fa(1808,g|0,f|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)break a;b=Z()|0;if(H[d-13|0]>=0)break b;Kb(J[h>> -2]);break b}b=Z()|0}e:{if(K[e+20|0])break e;a=J[J[e+16>>2]>>2];c=J[J[e+12>>2]>>2];if((a|0)==(c|0))break e;while(1){if(H[a+23|0]<0)Kb(J[a+12>>2]);if(H[a+11|0]<0)Kb(J[a>>2]);a=a+24|0;if((c|0)!=(a|0))continue;break}}ba(b|0);B()}d=J[e+28>>2]-24|0;J[e+28>>2]=d;b=a;if((a|0)!=(c|0))continue;break}xb=e+32|0;return d|0}function Nea(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;h=J[a+420>>2];if(J[a+236>>2]){d=J[h+68>>2];if(!d){Il(a,J[h+72>>2]);d=J[a+236>>2];J[h+72>>2]=J[h+72>>2]+1&7}J[h+ -68>>2]=d-1}if(J[a+316>>2]>0)while(1){e=k<<2;f=J[(e+a|0)+320>>2]<<2;l=J[J[(f+a|0)+292>>2]+20>>2];m=(l<<2)+h|0;f=f+h|0;i=J[m+76>>2]+J[f+52>>2]|0;e=I[J[b+e>>2]>>1]>>J[a+372>>2];c=e-J[f+36>>2]|0;a:{if(!c){Qc(a,i,0);J[f+52>>2]=0;break a}J[f+36>>2]=e;Qc(a,i,1);d=0;b:{if((c|0)>0){g=2;j=0;e=4;break b}c=0-c|0;g=3;j=1;e=8}Qc(a,i+1|0,j);J[f+52>>2]=e;g=g+i|0;e=c-1|0;c:{if(!e)break c;d=1;Qc(a,g,1);g=J[m+76>>2]+20|0;c=e;if((c|0)==1)break c;while(1){Qc(a,g,1);g=g+1|0;d=d<<1;j=c>>>0>3;c=c>>>1|0;if(j)continue;break}}Qc(a, -g,0);c=a+l|0;d:{if(1<>1<=(d|0)){if(1<>1>=(d|0))break d;c=J[f+52>>2]+8|0}else c=0;J[f+52>>2]=c}if(d>>>0<2)break a;f=g+14|0;while(1){d=d>>1;Qc(a,f,(e&d)!=0);if(d>>>0>1)continue;break}}k=k+1|0;if((k|0)>2])continue;break}return 1}function Hea(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=xb-16|0;xb=d;b=J[a+420>>2];c=J[a+24>>2];e=J[c>>2];a:{if(J[a+264>>2]){J[b+112>>2]=e;J[b+116>>2]=J[c+4>>2];cj(b);hE(b);a=J[a+24>>2];J[a>>2]=J[b+112>>2];J[a+4>>2]=J[b+116>>2];break a}h= -J[b+16>>2];j=J[b+12>>2];f=J[c+4>>2];c=J[b+32>>2];J[d+8>>2]=J[b+28>>2];J[d+12>>2]=c;c=J[b+24>>2];J[d>>2]=J[b+20>>2];J[d+4>>2]=c;b:{c:{if((h|0)<=0)break c;c=h+7|0;i=127<<17-h|j;while(1){d:{H[e|0]=i>>>16;e=e+1|0;f=f-1|0;if(!f){g=J[a+24>>2];if(!(Ab[J[g+12>>2]](a)|0))break d;f=J[g+4>>2];e=J[g>>2]}g=c;e:{if((i&16711680)!=16711680)break e;H[e|0]=0;e=e+1|0;f=f-1|0;if(f)break e;c=J[a+24>>2];if(!(Ab[J[c+12>>2]](a)|0))break d;f=J[c+4>>2];e=J[c>>2]}c=g-8|0;i=i<<8;if((g|0)>15)continue;break c}break}c=J[a>>2]; -J[c+20>>2]=25;Ab[J[c>>2]](a);f=0;break b}j=0;h=0}a=J[a+24>>2];J[a+4>>2]=f;J[a>>2]=e;J[b+16>>2]=h;J[b+12>>2]=j;a=J[d+12>>2];J[b+28>>2]=J[d+8>>2];J[b+32>>2]=a;a=J[d+4>>2];J[b+20>>2]=J[d>>2];J[b+24>>2]=a}xb=d+16|0}function y8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-32|0;xb=c;e=K[b+11|0];d=e<<24>>24<0;f=J[b+4>>2];a:{if(!(d?f:e)){Cz(c+16|0);break a}if(!d){J[c+24>>2]=J[b+8>>2];d=J[b+4>>2];J[c+16>>2]=J[b>>2];J[c+20>>2]=d;break a}rf(c+16|0,J[b>>2],f)}J[195395]=0;b=_(1078,16)|0;d=J[195395];J[195395]=0;b:{c:{d:{e:{if((d| -0)!=1){J[c+4>>2]=b;J[c+8>>2]=3;J[c+12>>2]=-2147483644;J[b+8>>2]=J[97743];d=J[97742];J[b>>2]=J[97741];J[b+4>>2]=d;J[b+12>>2]=0;J[195395]=0;fa(1119,a|0,c+16|0,c+4|0);b=J[195395];J[195395]=0;if((b|0)==1)break e;if(H[c+15|0]<0)Kb(J[c+4>>2]);if(H[c+27|0]<0)Kb(J[c+16>>2]);b=K[a+11|0];if(!(b<<24>>24<0?J[a+4>>2]:b))break b;J[195395]=0;b=_(1122,a|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){if(!b)break b;J[195395]=0;_(1123,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break b}b=Z()|0;if(H[a+11|0]>=0)break c;Kb(J[a>> -2]);ba(b|0);B()}b=Z()|0;break d}b=Z()|0;if(H[c+15|0]>=0)break d;Kb(J[c+4>>2])}if(H[c+27|0]>=0)break c;Kb(J[c+16>>2])}ba(b|0);B()}xb=c+32|0}function cL(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;h=6;f=J[a+532>>2];a:{if(!f)break a;if(!(b|c)){e=J[f>>2];if(!e)return 0;a=J[f+136>>2];b=J[f+140>>2];h=0;if(e>>>0>=4){f=e&-4;while(1){c=g<<2;J[c+a>>2]=J[b+c>>2];d=c|4;J[d+a>>2]=J[b+d>>2];d=c|8;J[d+a>>2]=J[b+d>>2];c=c|12;J[c+a>>2]=J[b+c>>2];g=g+4|0;i=i+4|0;if((f|0)!=(i|0))continue;break}}f= -e&3;if(!f)break a;c=0;while(1){e=g<<2;J[e+a>>2]=J[b+e>>2];g=g+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}break a}if(!c)break a;k=J[f>>2];h=b>>>0>k>>>0?k:b;b:{if(!h)break b;e=J[f+136>>2];if(h>>>0>=4){l=h&-4;while(1){d=g<<2;J[d+e>>2]=J[c+d>>2];j=d|4;J[j+e>>2]=J[c+j>>2];j=d|8;J[j+e>>2]=J[c+j>>2];d=d|12;J[d+e>>2]=J[c+d>>2];g=g+4|0;m=m+4|0;if((l|0)!=(m|0))continue;break}}d=h&3;if(!d)break b;while(1){l=g<<2;J[l+e>>2]=J[c+l>>2];g=g+1|0;i=i+1|0;if((d|0)!=(i|0))continue;break}}if(b>>>0>>0)Nb(J[f+136>>2]+ -(h<<2)|0,0,k-h<<2);h=0;J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15}return h|0}function po(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!(!a|!b)){c=J[a>>2];e=c>>31;f=J[b>>2];d=f>>31;e=(c^e)-e|0;d=(d^f)-d|0;a:{if(e+(d>>>8|0)>>>0<=8190){d=P(d,e)+32768>>>16|0;break a}g=e&65535;d=P(g,d>>>16|0)+P(d,e>>>16|0)+(P(g,d&65535)+32768>>>16)|0}g=c>>31|1;k=0-g|0;i=(((f|0)<0?k:g)|0)<0?0-d|0:d;f=J[a+4>>2];d=f>>31;h=J[b+4>>2];c=h>>31;d=(d^f)-d|0;c=(c^h)-c|0;b:{if(d+(c>>>8|0)>>>0<=8190){c=P(c,d)+32768>>>16|0;break b}j= -d&65535;c=P(j,c>>>16|0)+P(c,d>>>16|0)+(P(j,c&65535)+32768>>>16)|0}f=f>>31|1;l=0-f|0;j=i+((((h|0)<0?l:f)|0)<0?0-c|0:c)|0;h=J[b+8>>2];c=h>>31;c=(c^h)-c|0;c:{if(e+(c>>>8|0)>>>0<=8190){e=P(c,e)+32768>>>16|0;break c}i=e&65535;e=P(i,c>>>16|0)+P(c,e>>>16|0)+(P(i,c&65535)+32768>>>16)|0}c=(((h|0)<0?k:g)|0)<0?0-e|0:e;e=J[b+12>>2];b=e>>31;b=(b^e)-b|0;d:{if(d+(b>>>8|0)>>>0<=8190){b=P(b,d)+32768>>>16|0;break d}g=d&65535;b=P(g,b>>>16|0)+P(b,d>>>16|0)+(P(g,b&65535)+32768>>>16)|0}J[a>>2]=j;J[a+4>>2]=c+((((e|0)<0? -l:f)|0)<0?0-b|0:b)}}function Pv(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+16>>2];f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);i=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);a:{if(!i)break a;h=J[b>>2];if(c){if((h|0)==-1)break a;h=h+1|0}l=d+16|0;d=i;b:{c:{while(1){f=d+j>>>1|0;e=P(f,12)+l|0;g=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);k=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(g>>>0<=h>>> -0){if(h>>>0<=k>>>0)break c;j=f+1|0}else d=f;if(d>>>0>j>>>0)continue;break}d=0;break b}d=e;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);e=h-g|0;d=d>>>0<=(e^-1)>>>0?d+e|0:0}if(!c)return d;c=J[a>>2];if(h>>>0>k>>>0){e=0;f=f+1|0;if((i|0)==(f|0))break a}J[a+36>>2]=f;J[a+28>>2]=h;H[a+24|0]=1;d:{if(!(d>>>0>2]?d:0)){Ov(a);d=0;if(!K[a+24|0])break d;d=J[a+32>>2];break d}J[a+32>>2]=d}e=d;J[b>>2]=J[a+28>>2]}return e}function zu(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=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);f=(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))+a|0;e=J[d+60>>2];b=bf(f,b,e);if(b){b=K[b|0]|K[b+1|0]<<8;g=(b<<8|b>>>8)&65535}b=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);b=bf((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+a|0,c,e);if(b){b=K[b|0]|K[b+1|0]<<8;h=(b<<8|b>>>8)&65535}c=0;b=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);b=((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))+a|0)+(g+h<<1)|0;a:{if(M[d+32>>2]>2]>>>0|J[d+28>>2]-b>>>0<2)break a;b=K[b|0]|K[b+1|0]<<8;e=(b<<8|b>>>8)<<16>>16;b=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);if(!b)return e|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if((b|0)<0)break a;a=a+e|0;if(M[d+32>>2]>2]>>>0)break a;b=b<<1;if(b>>>0>J[d+28>>2]-a>>>0)break a;b=J[d+36>>2]-b|0;J[d+36>>2]=b;if((b|0)<=0)break a;a=K[a|0]|K[a+1|0]<<8;c=(a<<8|a>>>8)<<16>>16}return c|0}function gj(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;g=J[d>>2];if(!g){if(!e)return 0;return J[e>> -2]}h=J[g>>2];j=g+8|0;k=g+12|0;i=J[a+4>>2];a:{if(i){h=Ab[i|0](h,c)|0;break a}h=c>>>0>>0?1:c>>>0>h>>>0?-1:0}h=(h|0)>0?j:k&h>>31;b:{if(h){if(b>>>0>=1024){J[a+8>>2]=1;return g}g=gj(a,b+1|0,c,h,d,e);if((g|0)!=J[d>>2]|J[a+8>>2])break b}if(!e)break b;a=J[e>>2];b=J[a+8>>2];if(!f){a=((b|0)==(g|0)?12:8)+g|0;J[d>>2]=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=g;return g}c:{d:{c=(b|0)!=(g|0);if(c)break d;d=J[f>>2];if((a|0)!=J[d+8>>2])break d;J[d+8>>2]=J[a+12>>2];J[a+12>>2]=J[f>>2];J[a+8>>2]=J[g+12>>2];J[g+12>>2]=a;break c}e:{if(J[a+ -12>>2]!=(g|0))break e;d=J[f>>2];if((a|0)!=J[d+12>>2])break e;J[d+12>>2]=b;J[a+8>>2]=J[f>>2];J[a+12>>2]=J[g+8>>2];J[g+8>>2]=a;break c}if(!c){J[a+8>>2]=J[g+12>>2];J[g+12>>2]=J[e>>2];J[J[f>>2]+12>>2]=J[g+8>>2];J[g+8>>2]=J[f>>2];break c}J[a+12>>2]=J[g+8>>2];J[g+8>>2]=J[e>>2];J[J[f>>2]+8>>2]=J[g+12>>2];J[g+12>>2]=J[f>>2]}J[f>>2]=g}return g}function fx(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;a=xb-16|0;xb=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;b=J[a+12>>2];a:{while(1){if(b>>> -0>=d>>>0){c=0;break a}c=2;b=J[b>>2];if(b>>>0>1114111|(b&-2048)==55296)break a;b:{c:{if(b>>>0<=127){c=1;f=J[a+8>>2];if((g-f|0)<=0)break a;J[a+8>>2]=f+1;H[f|0]=b;break c}if(b>>>0<=2047){c=J[a+8>>2];if((g-c|0)<2)break b;J[a+8>>2]=c+1;H[c|0]=b>>>6|192;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break c}c=J[a+8>>2];f=g-c|0;if(b>>>0<=65535){if((f|0)<3)break b;J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break c}if((f|0)<4)break b; -J[a+8>>2]=c+1;H[c|0]=b>>>18|240;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>12&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128}b=J[a+12>>2]+4|0;J[a+12>>2]=b;continue}break}c=1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];xb=a+16|0;return c|0}function PC(a){var b=0,c=0,d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;a:{if(L[a+138>>1]!=1){Ob(J[a+628>>2],285552,266944,0);d=0;break a}d=-1;e=J[a+584>>2];b=J[e>>2];if((b|0)==-1){b=0;b:{c:{d:{e:{f:{g=L[a+86>>1]|L[a+84>>1]<<3;switch(g-257|0){case 2:break b; -case 0:case 1:case 3:break e;default:break f}}c=g-129|0;if(c>>>0<=3)break d;break c}d=2;b=-1;break b}if((c|0)==2)break c;b=1;break b}g:switch(g-65|0){case 0:case 3:b=3;break b;default:break g}b=-1}h:{i:switch(L[a+98>>1]-1|0){case 2:d=b;break h;case 0:break h;default:break i}d=-1}J[e>>2]=d;b=d}if(b>>>0>=4){Ob(J[a+628>>2],J[a>>2],267143,0);d=0;break a}J[e+8>>2]=J[(b<<2)+285584>>2];j:{if(K[a+13|0]&4){b=J[a+68>>2];c=Kpa(J[a+72>>2],0,b,0);d=(zb|0)!=0;break j}b=J[a+56>>2];c=Kpa(J[a+100>>2],0,b,0);d=(zb| -0)!=0}c=b?d&1?0:c:0;J[e+16>>2]=c;if(!(!(c&1073741823)|c-1073741824>>>0<3221225473)){c=Qb(c<<2);J[e+12>>2]=c;d=1;if(c)break a}c=J[a+628>>2];J[f>>2]=J[a>>2];Ob(c,285552,268002,f);d=0}xb=f+16|0;return d}function aH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=a+2|0;a:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[c|0]|K[c+1|0]<<8;b:{if(!d)break b;if(Ld(b,((d<<8|d>>>8)&65535)+a|0))break b;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}f=J[b+12>>2];c=a+4| -0;d=J[b+4>>2];if(f>>>0>>0)break a;g=J[b+8>>2];if(g-c>>>0<2)break a;h=f;f=a+6|0;if(h>>>0>>0)break a;d=K[a+4|0]|K[a+5|0]<<8;d=((d<<8|d>>>8)&65535)<<1;if(d>>>0>g-f>>>0)break a;d=J[b+16>>2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;e=1;c=K[c|0]|K[c+1|0]<<8;if(!c)break a;c=(c<<8|c>>>8)&65535;f=c>>>0<=1?1:c;d=0;while(1){c=((d<<1)+a|0)+6|0;if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-c>>>0<2)return 0;e=K[c|0]|K[c+1|0]<<8;c:{if(!e)break c;if(YG(((e<<8|e>>>8)&65535)+a|0,b))break c;e=J[b+32>>2]; -if(e>>>0>31)return 0;J[b+32>>2]=e+1;if(!K[b+28|0])return 0;H[c|0]=0;H[c+1|0]=0}e=1;d=d+1|0;if((f|0)!=(d|0))continue;break}}return e}function U2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=xb-32|0;xb=e;J[e+28>>2]=d;J[e+24>>2]=d;H[e+20|0]=0;J[e+8>>2]=a;J[e+16>>2]=e+28;J[e+12>>2]=e+24;if((b|0)!=(c|0))while(1){a:{b:{c:{d:{if(H[b+11|0]>=0){a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;J[d+8>>2]=J[b+8>>2];break d}a=J[b+4>>2];f=J[b>>2];J[195395]=0;fa(1808,d|0,f|0,a|0);a=J[195395];J[195395]=0;if((a|0)== -1)break c}a=d+12|0;if(H[b+23|0]>=0){d=J[b+16>>2];J[a>>2]=J[b+12>>2];J[a+4>>2]=d;J[a+8>>2]=J[b+20>>2];break a}f=J[b+16>>2];g=J[b+12>>2];J[195395]=0;fa(1808,a|0,g|0,f|0);a=J[195395];J[195395]=0;if((a|0)!=1)break a;b=Z()|0;if(H[d+11|0]>=0)break b;Kb(J[d>>2]);break b}b=Z()|0}e:{if(K[e+20|0])break e;a=J[J[e+16>>2]>>2];d=J[J[e+12>>2]>>2];if((a|0)==(d|0))break e;while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);c=a-24|0;if(H[a-13|0]<0)Kb(J[c>>2]);a=c;if((d|0)!=(a|0))continue;break}}ba(b|0);B()}d=J[e+28>>2]+24|0;J[e+ -28>>2]=d;b=b+24|0;if((c|0)!=(b|0))continue;break}xb=e+32|0;return d|0}function Au(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;f=J[a+4>>2];g=169776;d=J[a>>2];a=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a:{if((a|0)<=0)break a;j=d+28|0;a=a-1|0;while(1){b:{c:{d:{i=a+k>>>1|0;e=P(i,6)+j|0;h=K[e|0]|K[e+1|0]<<8;h=(h<<8|h>>>8)&65535;e:{if((h|0)==(b|0)){e=K[e+2|0]|K[e+3|0]<<8;e=(e<<8|e>>>8)&65535;if(e>>>0>c>>>0)break e;if((c|0)==(e|0))break d; -break c}if(b>>>0>=h>>>0)break c}a=i-1|0;break b}g=P(i,6)+j|0;break a}k=i+1|0}if((a|0)>=(k|0))continue;break}}a=K[g+4|0]|K[g+5|0]<<8;b=(a<<8|a>>>8)<<16>>16;if(!f)return b|0;a=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);if(!a)return b|0;c=0;g=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);f:{if((g|0)<0)break f;a=b+d|0;if(M[f+32>>2]>2]>>>0)break f;b=g<<1;if(b>>>0>J[f+28>>2]-a>>>0)break f;b=J[f+36>>2]-b|0;J[f+36>>2]=b;if((b|0)<=0)break f;a=K[a|0]|K[a+1|0]<<8;c=(a<<8|a>>>8)<<16>>16}return c| -0}function dha(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;a:{if((d|0)<=0)break a;e=J[a+480>>2];g=J[a+112>>2];j=J[a+120>>2];if((j|0)<=0){a=0;while(1){Oc(J[(a<<2)+c>>2],g);J[e+48>>2]=J[e+48>>2]+1&15;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!g){a=0;while(1){Oc(J[(a<<2)+c>>2],0);J[e+48>>2]=J[e+48>>2]+1&15;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}q=g&-2;r=g&1;while(1){a=k<<2;o=a+c|0;Oc(J[o>>2],g);s=a+b|0;p=J[e+48>>2];t=p<<6;h=0;while(1){a= -h<<2;l=J[(a+e|0)+52>>2]+t|0;f=J[s>>2]+h|0;m=J[a+J[e+24>>2]>>2];a=J[o>>2];i=0;n=0;if((g|0)!=1)while(1){H[a|0]=K[a|0]+K[K[f|0]+(J[(i<<2)+l>>2]+m|0)|0];f=f+j|0;H[a+1|0]=K[a+1|0]+K[K[f|0]+(J[((i+1&15)<<2)+l>>2]+m|0)|0];a=a+2|0;i=i+2&15;f=f+j|0;n=n+2|0;if((q|0)!=(n|0))continue;break}if(r)H[a|0]=K[a|0]+K[K[f|0]+(J[(i<<2)+l>>2]+m|0)|0];h=h+1|0;if((j|0)!=(h|0))continue;break}J[e+48>>2]=p+1&15;k=k+1|0;if((k|0)!=(d|0))continue;break}}}function Oba(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=Q(0), -k=Q(0),l=Q(0),m=0,n=0,o=0;if((c|0)>0){a=J[a+12>>2];while(1){l=Q(0);f=J[a>>2];e=f>>16;m=e&32767;a:{if(!m){k=Q(0);j=Q(0);break a}k=Q(0);d=Oh((+(m|0)+.5)*.0027076061740622863+-44.3614195558365);d=e&32768?-d:d;j=Q(0);if(d<=0)break a;h=(+((f>>>8&255)>>>0)+.5)*.0024390243902439024;i=(+((f&255)>>>0)+.5)*.0024390243902439024;g=1/(h*6+i*-16+12);h=h*9*g;g=i*4*g;k=Q(d*(h/g));l=Q(d*((1-h-g)/g));j=Q(d)}d=+k;g=+j;n=d*.061+g*-.224;h=+l;o=h*1.163;i=h*-.414+(d*2.69+g*-1.276);if(i<=0)e=0;else{e=i>=1;i=Y(i)*256;b:{if(R(i)< -2147483648){f=~~i;break b}f=-2147483648}e=e?-1:f}H[b|0]=e;d=h*.044+(d*-1.022+g*1.978);if(d<=0)e=0;else{e=d>=1;d=Y(d)*256;c:{if(R(d)<2147483648){f=~~d;break c}f=-2147483648}e=e?-1:f}H[b+1|0]=e;a=a+4|0;d=o+n;if(d<=0)e=0;else{e=d>=1;d=Y(d)*256;d:{if(R(d)<2147483648){f=~~d;break d}f=-2147483648}e=e?-1:f}H[b+2|0]=e;b=b+3|0;f=c>>>0>1;c=c-1|0;if(f)continue;break}}}function ph(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=Q(0);e=K[a+8|0]|K[a+9|0]<<8;a:{if(!e)break a;g=K[a+6|0]|K[a+7|0]<<8;j=(g<<8|g>>>8)&65535; -k=a+12|0;g=((e<<8|e>>>8)&65535)-1|0;while(1){b:{h=g+i>>>1|0;e=P(j,h)+k|0;f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);c:{if(f>>>0>b>>>0){g=h-1|0;break c}if((b|0)==(f|0))break b;i=h+1|0}if((g|0)>=(i|0))continue;break a}break}b=K[a+10|0]|K[a+11|0]<<8;if(b)a=((b<<8|b>>>8)&65535)+a|0;else a=169776;b=K[a+6|0]|K[a+7|0]<<8;f=(b<<8|b>>>8)&65535;b=e;e=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);b=(e<<24|(e&65280)<<8)>>>16|0;if(f>>>0<=b>>>0)break a;b=a+(b<< -2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);if(b)b=a+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;else b=169776;f=e>>>8&65280|e>>>24;e=K[a+2|0]|K[a+3|0]<<8|(K[a+4|0]<<16|K[a+5|0]<<24);if(e)a=a+(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))|0;else a=169776;l=pc(b,f,c,d,a,0)}return l}function pp(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;g=xb-16|0;xb=g;a:{if(H[a+372|0]&1){i=J[a+52>>2];j=J[a+48>>2];l=L[a+46>>1];k=L[a+44>>1];h=J[a+36>>2];m=J[a+40>>2];f=a- -64|0;n=J[f+4>>2];J[g+ -8>>2]=J[f>>2];J[g+12>>2]=n;f=J[a+60>>2];J[g>>2]=J[a+56>>2];J[g+4>>2]=f;f=a+290|0;break a}i=J[a+88>>2];j=J[a+84>>2];l=L[a+82>>1];k=L[a+80>>1];h=J[a+72>>2];m=J[a+76>>2];f=J[a+104>>2];J[g+8>>2]=J[a+100>>2];J[g+12>>2]=f;f=J[a+96>>2];J[g>>2]=J[a+92>>2];J[g+4>>2]=f;f=a+292|0}f=L[f>>1];b:{if(f>>>0>=k>>>0){if(K[a+565|0])J[a+12>>2]=134;I[e>>1]=0;a=1;break b}J[d+16>>2]=i;J[d+12>>2]=j;I[d+10>>1]=l;I[d+8>>1]=k;J[d>>2]=h;J[d+4>>2]=m;h=J[g+4>>2];J[d+20>>2]=J[g>>2];J[d+24>>2]=h;h=J[g+12>>2];J[d+28>>2]=J[g+8>>2]; -J[d+32>>2]=h;I[e>>1]=f;e=b;b=f<<3;d=b+i|0;b=b+j|0;b=Ab[J[a+576>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0;o=e,p=hc(b,I[a+302>>1],J[a+568>>2]),J[o>>2]=p;o=c,p=hc(b,I[a+304>>1],J[a+568>>2]),J[o>>2]=p;a=0}xb=g+16|0;return a}function sO(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;if(M[b+160>>2]>>0)Bc(b,8);c=K[a+3|0]|K[a+2|0]<<8;j=c+a|0;if(!(c>>>0>=518&M[b+160>>2]>=j>>>0))Bc(b,8);c=a+6|0;while(1){f=K[c+1|0];g=f|K[c|0]<<8;if(!(!(f&7)|J[b+164>>2]<2))Bc(b,8);c=c+2|0;f= -g>>>3|0;h=f>>>0>h>>>0?f:h;d=d+1|0;if((d|0)!=256)continue;break}c=a+518|0;g=(c+(h<<3)|0)+8|0;if(g>>>0>M[b+160>>2])Bc(b,8);d=0;while(1){f=d;a=c+8|0;d=K[c+3|0]|K[c+2|0]<<8;a:{if(!d){c=a;break a}e=K[c+6|0];k=K[c+7|0];l=K[c+4|0];m=K[c+5|0];i=K[c|0];n=K[c+1|0];b:{if(J[b+164>>2]<2)break b;i=n|i<<8;if(i>>>0<=255&256-i>>>0>=d>>>0)break b;Bc(b,8)}e=e<<8|k;if(!e){c=a;break a}e=e+(c+6|0)|0;if(!(e>>>0>=g>>>0&e+(d<<1)>>>0<=j>>>0))Bc(b,9);if(J[b+164>>2]<=0){c=a;break a}e=l<<8|m;d=((d<<1)+c|0)+8|0;c=a;while(1){a= -K[c+1|0]|K[c|0]<<8;if(!(!a|M[b+172>>2]>(a+e&65535)>>>0))Bc(b,16);c=c+2|0;if(d>>>0>c>>>0)continue;break}}d=f+1|0;if((f|0)!=(h|0))continue;break}return 0}function BK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;c=J[b+72>>2];d=J[a+100>>2];J[e+12>>2]=0;b=Ab[J[b+36>>2]](b)|0;a:{if((b|0)<0|J[a+304>>2])break a;c=M[c+4>>2]/100|0;c=b>>>0>>0?b:c;d=Tb(d,252,0,c,0,e+12|0);J[a+304>>2]=d;if(J[e+12>>2])break a;J[a+300>>2]=c;if(!c)break a;b=0;if(c>>>0>=4){h=c&67108860;while(1){a=d+P(b,252)|0;J[a+ -116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|1,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|2,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|3,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;b=b+4|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}c=c&3;if(!c)break a;while(1){a=d+P(b,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>> -2]=3932;J[a+4>>2]=4;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}xb=e+16|0}function wm(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;k=J[a+12>>2];if(k)J[(J[a+20>>2]+(k<<4)|0)-4>>2]=e;i=J[a+16>>2];l=k+1|0;a:{b:{if(i>>>0>=l>>>0){g=J[a+20>>2];break b}J[h+4>>2]=0;e=i;i=(k&-8)+8|0;g=Tb(f,16,e,i,J[a+20>>2],h+4|0);J[a+20>>2]=g;j=J[h+4>>2];if(j)break a;J[a+16>>2]=i}e=((l<<4)+g|0)-16|0;J[e>>2]=0;J[((k<<4)+g|0)+12>>2]=0;J[a+12>>2]=l;if(!l){c:{if(i){e=g;break c}J[h+8>>2]=0;e=Tb(f,16,0,8,g,h+8|0); -J[a+20>>2]=e;j=J[h+8>>2];if(j)break a;J[a+16>>2]=8}J[e>>2]=0;J[e+12>>2]=0;J[a+12>>2]=1}a=J[e+4>>2];J[h+12>>2]=0;g=d+7>>>3|0;a=a+7>>>3|0;d:{if(g>>>0<=a>>>0){f=J[e+8>>2];break d}i=a;a=g+7&1073741816;f=Tb(f,1,i,a,J[e+8>>2],h+12|0);J[e+8>>2]=f;j=J[h+12>>2];if(j)break a;J[e+4>>2]=a<<3}J[e>>2]=d;j=0;if(!d)break a;b=(c>>>3|0)+b|0;e=128>>>(c&7)|0;a=128;while(1){c=K[f|0];H[f|0]=K[b|0]&e?c|a:c&(a^-1);c=a>>>0<2;a=c?128:a>>1;g=e>>>0<2;e=g?128:e>>>1|0;f=c+f|0;b=b+g|0;d=d-1|0;if(d)continue;break}}xb=h+16|0;return j} -function lga(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;l=J[a+328>>2]-1|0;m=J[a+448>>2];a:{while(1){f=J[a+144>>2];c=J[a+152>>2];if((f|0)>=(c|0)&((c|0)!=(f|0)|M[a+148>>2]>M[a+156>>2]))break a;if(Ab[J[J[a+456>>2]>>2]](a)|0)continue;break}return 0}if(J[a+36>>2]>0){d=J[a+216>>2];while(1){b:{if(!J[d+52>>2])break b;e=h<<2;c=J[d+12>>2];n=Ab[J[J[a+4>>2]+32>>2]](a,J[(e+m|0)+72>>2],P(c,J[a+156>>2]),c,0)|0;g=!J[d+28>>2];if(M[a+156>>2]>>0)c=J[d+12>>2];else{f=J[d+12>>2];c=M[d+ -32>>2]%(f>>>0)|0;c=c?c:f}if(g|(c|0)<=0)break b;o=J[(e+J[a+468>>2]|0)+4>>2];i=J[b+e>>2];g=0;e=1;while(1){f=0;if(e){e=J[(g<<2)+n>>2];j=0;k=0;while(1){Ab[o|0](a,d,e,i,j);e=e+128|0;j=J[d+36>>2]+j|0;f=J[d+28>>2];k=k+1|0;if(f>>>0>k>>>0)continue;break}}i=(J[d+40>>2]<<2)+i|0;e=f;g=g+1|0;if((c|0)!=(g|0))continue;break}}d=d+88|0;h=h+1|0;if((h|0)>2])continue;break}}b=J[a+156>>2]+1|0;J[a+156>>2]=b;return(b>>>0>2]?3:4)|0}function YI(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h= -h|0;var i=0,j=0,k=0,l=0,m=0;b=0;a:{if(J[J[a+116>>2]+40>>2]!=J[193809]){if(!c)break a;h=0;while(1){b=J[a+116>>2];i=J[b+40>>2];j=J[a+120>>2];k=J[d>>2];b=J[b+12>>2];if(b)b=J[b+20>>2];else b=0;l=f,m=Ab[i|0](a,j,k,b)|0,J[l>>2]=m;f=f+g|0;d=d+e|0;h=h+1|0;if((h|0)!=(c|0))continue;break}break a}h=J[a+20>>2];i=J[h+116>>2];j=J[i+48>>2];k=J[h+120>>2];i=J[i+12>>2];if(i)i=J[i+28>>2];else i=0;Ab[j|0](h,k,c,d,e,f,g,i);if(!c)break a;h=J[a+20>>2];if(!h)break a;if((c|0)!=1){j=c&-2;while(1){d=J[f>>2];e=J[h+28>>2];i= -J[a+28>>2];if((e|0)!=(i|0))d=Lpa(Kpa(i,i>>31,d,d>>31),zb,e,e>>31);J[f>>2]=d;e=f+g|0;d=J[e>>2];f=J[h+28>>2];i=J[a+28>>2];if((f|0)!=(i|0))d=Lpa(Kpa(i,i>>31,d,d>>31),zb,f,f>>31);J[e>>2]=d;f=e+g|0;b=b+2|0;if((j|0)!=(b|0))continue;break}}if(!(c&1))break a;b=J[f>>2];c=J[h+28>>2];a=J[a+28>>2];if((c|0)!=(a|0))b=Lpa(Kpa(a,a>>31,b,b>>31),zb,c,c>>31);J[f>>2]=b}}function XI(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;b=0;a:{if(J[J[a+116>>2]+44>>2]!=J[193810]){if(!c)break a; -h=0;while(1){b=J[a+116>>2];i=J[b+44>>2];j=J[a+120>>2];k=J[d>>2];b=J[b+12>>2];if(b)b=J[b+24>>2];else b=0;l=f,m=Ab[i|0](a,j,k,b)|0,J[l>>2]=m;f=f+g|0;d=d+e|0;h=h+1|0;if((h|0)!=(c|0))continue;break}break a}h=J[a+20>>2];i=J[h+116>>2];j=J[i+52>>2];k=J[h+120>>2];i=J[i+12>>2];if(i)i=J[i+32>>2];else i=0;Ab[j|0](h,k,c,d,e,f,g,i);if(!c)break a;h=J[a+20>>2];if(!h)break a;if((c|0)!=1){j=c&-2;while(1){d=J[f>>2];e=J[h+32>>2];i=J[a+32>>2];if((e|0)!=(i|0))d=Lpa(Kpa(i,i>>31,d,d>>31),zb,e,e>>31);J[f>>2]=d;e=f+g|0;d= -J[e>>2];f=J[h+32>>2];i=J[a+32>>2];if((f|0)!=(i|0))d=Lpa(Kpa(i,i>>31,d,d>>31),zb,f,f>>31);J[e>>2]=d;f=e+g|0;b=b+2|0;if((j|0)!=(b|0))continue;break}}if(!(c&1))break a;b=J[f>>2];c=J[h+32>>2];a=J[a+32>>2];if((c|0)!=(a|0))b=Lpa(Kpa(a,a>>31,b,b>>31),zb,c,c>>31);J[f>>2]=b}}function VK(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;d=xb-336|0;xb=d;i=J[a+100>>2];Ab[J[b+60>>2]](b,d+272|0,4,d+268|0);f=J[d+268>>2];a:{if((f|0)<0){c=162;break a}c=3;if(f-5>>>0<4294967292)break a;j=J[b+8>>2];k=J[b>>2]; -c=nm(a,0,f);J[d+332>>2]=c;if(c)break a;if(J[d+268>>2]>0){f=J[a+532>>2]+88|0;while(1){a=P(g,12);c=a+(d+272|0)|0;J[b>>2]=J[c>>2];J[b+8>>2]=J[c+4>>2];Ab[J[b+60>>2]](b,d+16|0,20,d+12|0);c=3;e=J[d+12>>2];if(e-21>>>0<4294967276)break a;a=a+f|0;if(J[a+4>>2])break a;e=Tb(i,4,0,e<<1,0,d+332|0);J[a+4>>2]=e;c=J[d+332>>2];if(c)break a;c=J[d+12>>2];J[a+8>>2]=e+(c<<2);H[a|0]=c;if((c|0)>0){c=0;while(1){e=(d+16|0)+P(c,12)|0;J[b>>2]=J[e>>2]+1;J[b+8>>2]=J[e+4>>2]-1;e=Ab[J[b+36>>2]](b)|0;h=c<<2;J[h+J[a+4>>2]>>2]=e; -e=Ab[J[b+40>>2]](b,0)|0;J[J[a+8>>2]+h>>2]=e;c=c+1|0;if((c|0)>2])continue;break}}g=g+1|0;if((g|0)>2])continue;break}g=J[d+332>>2]}J[b+8>>2]=j;J[b>>2]=k;c=g}J[b+12>>2]=c;xb=d+336|0}function jT(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,m=0,n=0;k=xb-16|0;xb=k;l=j;a:{if(a){j=k+4|0;a=Hx(b);Ab[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;Ab[J[J[a>>2]+32>>2]](j,a);Je(i,j);Yb(j);Ab[J[J[a>>2]+28>> -2]](j,a);Je(h,j);Yb(j);m=d,n=Ab[J[J[a>>2]+12>>2]](a)|0,H[m|0]=n;m=e,n=Ab[J[J[a>>2]+16>>2]](a)|0,H[m|0]=n;Ab[J[J[a>>2]+20>>2]](j,a);Je(f,j);Yb(j);Ab[J[J[a>>2]+24>>2]](j,a);Je(g,j);Yb(k+4|0);a=Ab[J[J[a>>2]+36>>2]](a)|0;break a}j=k+4|0;a=Gx(b);Ab[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;Ab[J[J[a>>2]+32>>2]](j,a);Je(i,j);Yb(j);Ab[J[J[a>>2]+28>>2]](j,a);Je(h,j);Yb(j);m=d,n=Ab[J[J[a>>2]+12>>2]](a)|0,H[m|0]=n;m=e,n=Ab[J[J[a>>2]+16>>2]](a)|0,H[m|0]=n;Ab[J[J[a>> -2]+20>>2]](j,a);Je(f,j);Yb(j);Ab[J[J[a>>2]+24>>2]](j,a);Je(g,j);Yb(k+4|0);a=Ab[J[J[a>>2]+36>>2]](a)|0}J[l>>2]=a;xb=k+16|0}function wba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];a:{b:{c:{d:{e:{f:{g:switch(b-292|0){default:h:switch(b-34908|0){case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break h}i:switch(b-65536|0){case 0:J[J[c>>2]>>2]=J[d+4>>2];break a;case 4:break i;default:break b}J[J[c>>2]>>2]=J[d+76>>2];break a;case 0:case 1:J[J[c>>2]>>2]=J[d+28>>2];break a;case 34:J[J[c>> -2]>>2]=J[d+24>>2];break a;case 35:I[J[c>>2]>>1]=L[d+16>>1];break a;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:break b;case 36:break g}J[J[c>>2]>>2]=J[d+20>>2];break a}J[J[c>>2]>>2]=J[d+32>>2];break a}J[J[c>>2]>>2]=J[d+36>>2];break a}J[J[c>>2]>>2]=J[d+40>>2];break a}J[J[c>>2]>>2]=J[d+44>>2];break a}return Ab[J[d+ -48>>2]](a,b,c)|0}return 1}function _n(a){a=a|0;var b=0,c=0;a=Fd(a,2);J[a>>2]=241712;J[195395]=0;b=_(1109,16384)|0;c=J[195395];J[195395]=0;a:{if((c|0)==1)break a;J[a+996>>2]=b;J[195395]=0;b=_(1109,4096)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[a+1028>>2]=b;J[195395]=0;b=_(1109,4096)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[a+1032>>2]=b;J[195395]=0;b=_(1109,8192)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[a+1036>>2]=b;J[195395]=0;b=_(1109,20012)|0;c=J[195395];J[195395]=0;if((c|0)== -1)break a;J[a+1040>>2]=b;J[195395]=0;b=_(1109,10006)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[a+1044>>2]=b;J[195395]=0;b=_(1109,257)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[a+1020>>2]=b;J[195395]=0;b=_(1109,256)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[a+1080>>2]=b;J[195395]=0;b=_(1109,256)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[a+1088>>2]=0;J[a+1084>>2]=b;H[a+460|0]=0;H[b|0]=0;return a|0}b=Z()|0;Nf(a);ba(b|0);B()}function Cq(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(+a);f=v(1)|0;i=v(0)|0;g=f&2147483647;d=g;if(d>>>0>=1141899264){A(1.5707963267948966);d=v(1)|0;f=v(0)|0;A(+a);b=v(1)|0;v(0)|0;x(0,f|0);x(1,d&2147483647|b&-2147483648);b=g;return j=a,k=+z(),l=(b|0)==2146435072&(i|0)!=0|b>>>0>2146435072,l?j:k}a:{b:{if(d>>>0<=1071382527){b=-1;if(d>>>0>=1044381696)break b;break a}a=R(a);if(d>>>0<=1072889855){if(d>>>0<=1072037887){a=(a+a+-1)/(a+2);b=0;break b}a=(a+-1)/(a+1);b=1;break b}if(d>>>0<=1073971199){a=(a+-1.5)/(a*1.5+1);b=2;break b}a=-1/a;b=3}e=a*a; -c=e*e;h=c*(c*(c*(c*(c*-.036531572744216916+-.058335701337905735)+-.0769187620504483)+-.11111110405462356)+-.19999999999876483);e=e*(c*(c*(c*(c*(c*.016285820115365782+.049768779946159324)+.06661073137387531)+.09090887133436507)+.14285714272503466)+.3333333333333293);if(d>>>0<=1071382527)return a-a*(h+e);b=b<<3;a=O[b+744208>>3]-(a*(h+e)-O[b+744240>>3]-a);a=(f|0)<0?-a:a}return a}function Rt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=J[a>>2];a:{if(c)break a;e=a-24|0;while(1){c=J[e>>2];if(!c){c=169776;break a}b= -xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=1;J[b+40>>2]=0;b:{c:{d:{d=J[c+12>>2];e:{if(d){f=J[c+16>>2];J[195395]=0;c=aa(d|0,c|0,1330851634,f|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break d;if(c)break e}J[195395]=0;c=169776;d=J[195395];J[195395]=0;if((d|0)==1)break d}J[195395]=0;c=ca(648,b|0,c|0)|0;d=J[195395];J[195395]=0;if((d| -0)==1)break d;d=J[b+36>>2];if(d){J[195395]=0;ea(583,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break c}xb=b+48|0;break b}a=Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}b=J[a>>2];c=c?c:169776;J[a>>2]=b?b:c;if(!b)break a;wc(c);c=J[a>>2];if(!c)continue;break}}return(M[c+16>>2]<78?169776:J[c+12>>2])|0}function Gga(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;a:{e=J[a+316>>2];b:{if((e|0)<=0)break b;g=J[d>>2];b=J[a+472>>2]+J[b+4>>2]|0;d=K[b+150|0];j=d;f=d-1|0;h=K[b+140|0];if(h){b= -0;if(d>>>0>=2){while(1){k=b+1|0;e=J[a+112>>2];if((e|0)>0){d=J[(b<<2)+g>>2];l=e+d|0;e=J[(i<<2)+c>>2];while(1){m=K[e|0];e=e+1|0;d=Nb(d,m,h)+h|0;if(l>>>0>d>>>0)continue;break}e=J[a+112>>2]}Mg(g,b,g,k,f,e);i=i+1|0;b=b+j|0;if((b|0)>2])continue;break}break b}while(1){f=J[a+112>>2];if((f|0)>0){d=J[(b<<2)+g>>2];f=f+d|0;e=J[(i<<2)+c>>2];while(1){k=K[e|0];e=e+1|0;d=Nb(d,k,h)+h|0;if(f>>>0>d>>>0)continue;break}e=J[a+316>>2]}i=i+1|0;b=b+j|0;if((e|0)>(b|0))continue;break}break b}if(d>>>0>=2){b=0;while(1){c= -J[a+112>>2];if((c|0)>0)break a;Mg(g,b,g,b+1|0,f,c);b=b+j|0;if((b|0)>2])continue;break}break b}b=0;a=J[a+112>>2]<=0;while(1){if(!a)break a;b=b+j|0;if((e|0)>(b|0))continue;break}}return}while(1)continue}function aT(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,m=0,n=0;k=xb-16|0;xb=k;l=j;a:{if(a){j=k+4|0;a=Dx(b);Ab[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;Ab[J[J[a>>2]+32>>2]](j,a);rg(i,j);Yc(j); -Ab[J[J[a>>2]+28>>2]](j,a);rg(h,j);Yc(j);m=d,n=Ab[J[J[a>>2]+12>>2]](a)|0,J[m>>2]=n;m=e,n=Ab[J[J[a>>2]+16>>2]](a)|0,J[m>>2]=n;Ab[J[J[a>>2]+20>>2]](j,a);Je(f,j);Yb(j);Ab[J[J[a>>2]+24>>2]](j,a);rg(g,j);Yc(j);a=Ab[J[J[a>>2]+36>>2]](a)|0;break a}j=k+4|0;a=Cx(b);Ab[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;Ab[J[J[a>>2]+32>>2]](j,a);rg(i,j);Yc(j);Ab[J[J[a>>2]+28>>2]](j,a);rg(h,j);Yc(j);m=d,n=Ab[J[J[a>>2]+12>>2]](a)|0,J[m>>2]=n;m=e,n=Ab[J[J[a>>2]+16>>2]](a)| -0,J[m>>2]=n;Ab[J[J[a>>2]+20>>2]](j,a);Je(f,j);Yb(j);Ab[J[J[a>>2]+24>>2]](j,a);rg(g,j);Yc(j);a=Ab[J[J[a>>2]+36>>2]](a)|0}J[l>>2]=a;xb=k+16|0}function NF(a){var b=0,c=0,d=0;c=a+148|0;while(1){d=b<<2;I[d+c>>1]=0;I[(d|4)+c>>1]=0;b=b+2|0;if((b|0)!=286)continue;break}I[a+2684>>1]=0;I[a+2440>>1]=0;I[a+2756>>1]=0;I[a+2752>>1]=0;I[a+2748>>1]=0;I[a+2744>>1]=0;I[a+2740>>1]=0;I[a+2736>>1]=0;I[a+2732>>1]=0;I[a+2728>>1]=0;I[a+2724>>1]=0;I[a+2720>>1]=0;I[a+2716>>1]=0;I[a+2712>>1]=0;I[a+2708>>1]=0;I[a+2704>>1]=0; -I[a+2700>>1]=0;I[a+2696>>1]=0;I[a+2692>>1]=0;I[a+2688>>1]=0;I[a+2556>>1]=0;I[a+2552>>1]=0;I[a+2548>>1]=0;I[a+2544>>1]=0;I[a+2540>>1]=0;I[a+2536>>1]=0;I[a+2532>>1]=0;I[a+2528>>1]=0;I[a+2524>>1]=0;I[a+2520>>1]=0;I[a+2516>>1]=0;I[a+2512>>1]=0;I[a+2508>>1]=0;I[a+2504>>1]=0;I[a+2500>>1]=0;I[a+2496>>1]=0;I[a+2492>>1]=0;I[a+2488>>1]=0;I[a+2484>>1]=0;I[a+2480>>1]=0;I[a+2476>>1]=0;I[a+2472>>1]=0;I[a+2468>>1]=0;I[a+2464>>1]=0;I[a+2460>>1]=0;I[a+2456>>1]=0;I[a+2452>>1]=0;I[a+2448>>1]=0;I[a+2444>>1]=0;J[a+5804>> -2]=0;J[a+5808>>2]=0;I[a+1172>>1]=1;J[a+5800>>2]=0;J[a+5792>>2]=0}function bk(a,b,c){var d=0,e=0,f=0,g=0;d=c-b|0;if((d|0)<=0)return 0;a=(b>>3)+a|0;b=b&7;a:{if(b){c=8-b|0;e=K[(K[a|0]<>>0>>0?c:e;f=c>>>0>>0?c:d;if(b+f>>>0<8)break a;d=d-f|0;a=a+1|0}b:{c:{d:{if((d|0)<64){b=a;a=d;c=f;break d}e:{if(!(a&3)){b=a;c=f;a=d;break e}f:{g:{b=K[a|0];if(b){c=f;break g}e=d-8|0;c=f+8|0;b=a+1|0;if(!(b&3)){a=e;e=d;break f}b=K[b|0];if(b)break g;g=d-16|0;c=f+16|0;b=a+2|0;if(!(b&3)){a=g;break f}b= -K[b|0];if(b)break g;e=d-24|0;c=f+24|0;b=a+3|0;if(!(b&3)){a=e;e=g;break f}b=K[b|0];if(b)break g;b=a+4|0;a=d-32|0;c=f+32|0;break f}return K[b+287328|0]+c|0}if((e|0)<40)break d}d=a;while(1){if(J[b>>2]){a=d;break c}b=b+4|0;c=c+32|0;e=(d|0)>63;a=d-32|0;d=a;if(e)continue;break}}if((a|0)<8)break b}d=a;while(1){a=K[b|0];if(a)return K[a+287328|0]+c|0;b=b+1|0;c=c+8|0;e=(d|0)>15;a=d-8|0;d=a;if(e)continue;break}}if((a|0)<=0)return c;b=K[K[b|0]+287328|0];f=((a|0)<(b|0)?a:b)+c|0}return f}function oE(a,b){var c= -0,d=0,e=0,f=0,g=0,h=0,i=0;g=J[b+8>>2];d=g>>31;f=I[a+70>>1];c=f>>31;d=(d^g)-d|0;h=d>>>8|0;c=(c^f)-c|0;a:{if(h+c>>>0<=8190){e=P(c,d)+32768>>>16|0;break a}e=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}c=e;i=0-c|0;c=f>>31|1;J[b+12>>2]=((((g|0)<0?0-c|0:c)|0)<0?i:e)+63&-64;f=I[a+72>>1];c=f>>31;c=(c^f)-c|0;b:{if(c+h>>>0<=8190){e=P(c,d)+32768>>>16|0;break b}e=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}c=e;i=0-c|0;c=f>>31|1;J[b+16>>2]=((((g|0)<0?0-c|0:c)|0)<0?i:e)&-64;f=I[a+74>>1];c=f>>31;c=(c^f)-c|0;c:{if(c+ -h>>>0<=8190){c=P(c,d)+32768>>>16|0;break c}c=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}d=c;e=0-d|0;d=f>>31|1;J[b+20>>2]=((((g|0)<0?0-d|0:d)|0)<0?e:c)+32&-64;g=I[a+76>>1];d=g>>31;c=J[b+4>>2];a=c>>31;d=(d^g)-d|0;a=(a^c)-a|0;d:{if(d+(a>>>8|0)>>>0<=8190){e=P(a,d)+32768>>>16|0;break d}e=P(d,a>>>16|0)+(P(d,a&65535)+32768>>>16|0)|0}a=e;d=0-a|0;a=g>>31|1;J[b+24>>2]=((((c|0)<0?0-a|0:a)|0)<0?d:e)+32&-64}function ld(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=-1;a:{b:{c:{c=K[a|0]|K[a+1|0]<<8;switch(((c<<8|c>>> -8)&65535)-1|0){case 1:break b;case 0:break c;default:break a}}c=K[a+2|0]|K[a+3|0]<<8;if(!c)break a;e=a+4|0;a=((c<<8|c>>>8)&65535)-1|0;c=0;while(1){d=a+c|0;f=d>>>1|0;d=e+(d&-2)|0;d=K[d|0]|K[d+1|0]<<8;d=(d<<8|d>>>8)&65535;d:{if(d>>>0>b>>>0){a=f-1|0;break d}if((b|0)==(d|0))break a;c=f+1|0}if((a|0)>=(c|0))continue;break}return-1}e=170426;c=K[a+2|0]|K[a+3|0]<<8;e:{if(!c)break e;h=a+4|0;a=((c<<8|c>>>8)&65535)-1|0;c=0;while(1){d=a+c>>>1|0;g=P(d,6)+h|0;i=K[g|0]|K[g+1|0]<<8;f:{if(((i<<8|i>>>8)&65535)>>>0<= -b>>>0){c=K[g+2|0]|K[g+3|0]<<8;if(((c<<8|c>>>8)&65535)>>>0>>0){c=d+1|0;break f}e=P(d,6)+h|0;break e}a=d-1|0}if((a|0)>=(c|0))continue;break}}a=K[e+2|0]|K[e+3|0]<<8;c=(a<<8|a>>>8)&65535;a=K[e|0]|K[e+1|0]<<8;a=(a<<8|a>>>8)&65535;if(c>>>0>>0)break a;b=b-a|0;a=K[e+4|0]|K[e+5|0]<<8;f=b+((a<<8|a>>>8)&65535)|0}return f}function dx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a=c;a:if((d-a|0)<3)break a;while(1){b:{if(e>>>0<=h>>>0|a>>>0>=d>>>0)break b;b=H[a|0];g=b&255;c:{if((b|0)>= -0){b=1;break c}if(b>>>0<4294967234)break b;if(b>>>0<=4294967263){if((K[a+1|0]&192)!=128|(d-a|0)<2)break b;b=2;break c}if(b>>>0<=4294967279){if((d-a|0)<3)break b;f=K[a+2|0];b=K[a+1|0];d:{e:{if((g|0)!=237){if((g|0)!=224)break e;if((b&224)==160)break d;break b}if((b&224)!=128)break b;break d}if((b&192)!=128)break b}if((f&192)!=128)break b;b=3;break c}if((d-a|0)<4|b>>>0>4294967284)break b;i=K[a+3|0];j=K[a+2|0];f=K[a+1|0];f:{g:switch(g-240|0){case 0:if((f+112&255)>>>0>=48)break b;break f;case 4:if((f& -240)!=128)break b;break f;default:break g}if((f&192)!=128)break b}if((j&192)!=128|(i&192)!=128)break b;b=4;if((i&63|(j<<6&4032|(g<<18&1835008|(f&63)<<12)))>>>0>1114111)break b}h=h+1|0;a=a+b|0;continue}break}return a-c|0}function rV(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;e=xb-16|0;xb=e;a:{b:{if((b|0)!=-1){h=J[a+12>>2];i=J[a+8>>2];f=J[a+24>>2];if((f|0)==J[a+28>>2]){c=-1;if(!(K[a+48|0]&16))break a;g=J[a+20>>2];j=J[a+44>>2];J[195395]=0;d=a+32|0;$(3557,d|0,0);c=J[195395];J[195395]=0;if((c| -0)==1)break b;c=K[d+11|0]>>>7|0?(J[d+8>>2]&2147483647)-1|0:10;J[195395]=0;$(3558,d|0,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break b;if(K[d+11|0]>>>7|0)c=J[d>>2];else c=d;if(K[d+11|0]>>>7|0)d=J[d+4>>2];else d=K[d+11|0]&127;J[a+28>>2]=d+c;J[a+20>>2]=c;J[a+24>>2]=c;J[a+24>>2]=J[a+24>>2]+(f-g|0);J[a+44>>2]=J[a+20>>2]+(j-g|0)}J[e+12>>2]=J[a+24>>2]+1;c=xb-16|0;xb=c;xb=c+16|0;c=a+44|0;d=e+12|0;J[a+44>>2]=J[(M[d>>2]>2]?c:d)>>2];if(K[a+48|0]&8){c=a+32|0;if(K[c+11|0]>>>7|0)c=J[c>>2];J[a+16>>2]=J[a+44>> -2];J[a+12>>2]=c+(h-i|0);J[a+8>>2]=c}c=zy(a,b<<24>>24);break a}c=(b|0)!=-1?b:0;break a}sa(ga(0)|0)|0;ua();c=-1}xb=e+16|0;return c|0}function yf(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=xb-32|0;H[i+23|0]=0;f=d>>31;g=(f^d)-f|0;e=i+23|0;l=c-1|0;m=(c|0)!=5;j=1;c=0;while(1){if(!(!g&(c|0)>=(j|0))){f=0;a:{b:{c:{d:switch(l|0){case 4:f=(g>>>0)%10|0;if(f|k){e=e-1|0;h=K[f+255328|0];H[e|0]=h;k=1}else k=0;f=(g>>>0)/10|0;j=5;default:c=c+1|0;if(!m)break b;break a;case 1:j=2;case 0:e=e-1|0;f=(g>>>0)/10| -0;h=K[(g-P(f,10)|0)+255328|0];H[e|0]=h;break c;case 3:j=2;break;case 2:break d}e=e-1|0;h=K[(g&15)+255328|0];H[e|0]=h;f=g>>>4|0}c=c+1|0;break a}if((c|0)!=5|e>>>0<=i>>>0)break a;if(k){h=46;e=e-1|0;H[e|0]=46;c=5;break a}k=0;c=5;if(f)break a;h=48;e=e-1|0;H[e|0]=48;f=0}g=f;if(e>>>0>i>>>0)continue}break}if(!(e>>>0<=i>>>0|(d|0)>=0)){e=e-1|0;H[e|0]=45;h=45}e:{if(b-1>>>0>7)break e;a=((b<<5)+a|0)-32|0;if(!a)break e;c=0;f:{if(!e|!h)break f;g=0;while(1){H[a+g|0]=h;c=g+1|0;if(g>>>0>29)break f;h=K[e+1|0];e=e+1| -0;g=c;if(h)continue;break}}H[a+c|0]=0}}function un(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!a)break a;c=J[a+100>>2];b=J[a+292>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+292>>2]=0;b=J[a+308>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+308>>2]=0;b=J[a+284>>2];if(b){if(J[a+280>>2]>0){while(1){b=J[a+284>>2];b:{if(!b)break b;b=b+P(e,12)|0;d=J[b>>2];if(d)Ab[J[c+8>>2]](c,d);J[b>>2]=0;if(!K[b+4|0])break b;d=J[b+8>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+8>>2]=0}e=e+1|0;if((e|0)>2])continue;break}b=J[a+284>>2]}if(b)Ab[J[c+8>>2]](c,b); -J[a+284>>2]=0}b=J[a+192>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+192>>2]=0;b=J[a+20>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+32>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+32>>2]=0;b=J[a+176>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+176>>2]=0;b=J[a+180>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+180>>2]=0;c=J[a+104>>2];if((c|0)!=(a+132|0))break a;c:{if(!c)break c;b=J[c+24>>2];if(!b)break c;Ab[b|0](c)}J[a+104>>2]=J[a+172>>2]}}function iH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-16| -0;xb=f;e=J[b+12>>2];c=J[b+4>>2];a:{if(e>>>0>>0)break a;h=J[b+8>>2];if(h-a>>>0<2)break a;g=a+2|0;if(e>>>0>>0)break a;c=K[a|0]|K[a+1|0]<<8;c=P((c<<8|c>>>8)&65535,6);if(c>>>0>h-g>>>0)break a;c=J[b+16>>2]-c|0;J[b+16>>2]=c;if((c|0)<=0)break a;d=1;c=K[a|0]|K[a+1|0]<<8;if(!c)break a;d=(c<<8|c>>>8)&65535;h=d>>>0<=1?1:d;e=0;while(1){b:{g=P(e,6)+a|0;d=g+2|0;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f+12>>2]=a;J[f+8>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);i=J[b+12>>2];c=J[b+4>>2];if(i>>> -0>>0)break b;j=J[b+8>>2];if(j-d>>>0<6)break b;d=g+6|0;if(d-c>>>0>i>>>0|j-d>>>0<2)break b;c=K[d|0]|K[d+1|0]<<8;c:{if(!c)break c;if(gH(((c<<8|c>>>8)&65535)+a|0,b,f+8|0))break c;c=J[b+32>>2];if(c>>>0>31)break b;J[b+32>>2]=c+1;if(!K[b+28|0])break b;H[d|0]=0;H[d+1|0]=0}d=1;e=e+1|0;if((h|0)!=(e|0))continue;break a}break}d=0}xb=f+16|0;return d}function S7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(J[b+116>>2]+J[b+108>>2]|0)+108|0;J[e+12>>2]=d;J[e+8>>2]=114;J[a+8>>2]=d+J[a+8>>2];J[a+12>> -2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);Lb(J[a+4>>2],b+20|0,4);Lb(J[a+4>>2],b+24|0,4);Lb(J[a+4>>2],b+28|0,4);Lb(J[a+4>>2],b+32|0,1);Lb(J[a+4>>2],b+33|0,1);Lb(J[a+4>>2],b+34|0,1);Lb(J[a+4>>2],b+35|0,1);Lb(J[a+4>>2],b+36|0,4);Lb(J[a+4>>2],b+40|0,4);tl(a,b+48|0);Lb(J[a+4>>2],b+96|0,1);Lb(J[a+4>>2],b+97|0,1);Lb(J[a+4>>2],b+98|0,1);Lb(J[a+4>>2],b+99|0,1);Lb(J[a+4>>2],b+100|0, -4);Lb(J[a+4>>2],b+104|0,4);Lb(J[a+4>>2],b+108|0,4);Lb(J[a+4>>2],b+112|0,4);Lb(J[a+4>>2],b+116|0,4);Lb(J[a+4>>2],b+120|0,4);Lb(J[a+4>>2],b+124|0,4);d=J[b+108>>2];if(d)Lb(J[a+4>>2],J[c+8>>2],d);d=J[b+116>>2];if(d)Lb(J[a+4>>2],J[c+8>>2]+J[b+108>>2]|0,d);xb=e+16|0}function IO(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;e=xb+-64|0;xb=e;J[e+60>>2]=0;h=b+108|0;g=J[a+8>>2];a:{b:{c:{d:{if(J[b+72>>2]!=J[a+16>>2]){J[e+60>>2]=6;break d}i=19;if((c|0)!=2)break a;if(H[J[b+156>>2]+4|0]&1){c= -J[b+88>>2];if(c)Ab[J[g+8>>2]](g,c);J[b+88>>2]=0;c=J[b+156>>2];J[c+4>>2]=J[c+4>>2]&-2}if(Js(b,2,d)){J[e+60>>2]=98;break d}j=b,k=Tb(g,J[b+84>>2],0,J[b+76>>2],0,e+60|0),J[j+88>>2]=k;c=0;if(J[e+60>>2])break c;c=J[b+156>>2];J[c+4>>2]=J[c+4>>2]|1;f=J[b+76>>2]-J[b+104>>2]<<6;c=0-(J[b+100>>2]<<6)|0;if(d){f=J[d+4>>2]+f|0;c=J[d>>2]+c|0}if(c|f)me(h,c,f);J[e+20>>2]=0;J[e+16>>2]=h;J[e+12>>2]=b+76;a=Ab[J[a+56>>2]](J[a+52>>2],e+12|0)|0;J[e+60>>2]=a;if(a)break c;J[b+72>>2]=1651078259;break b}c=0}if(!(H[J[b+156>> -2]+4|0]&1))break b;a=J[b+88>>2];if(a)Ab[J[g+8>>2]](g,a);J[b+88>>2]=0;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2}if(c|f)me(h,0-c|0,0-f|0);i=J[e+60>>2]}a=i;xb=e- -64|0;return a|0}function vK(a){a=a|0;var b=0,c=0;if(a){c=J[a+100>>2];b=J[a+504>>2];if(b)Yn(b);b=J[a+132>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+132>>2]=0;b=J[a+136>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+140>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+144>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+148>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+148>> -2]=0;b=J[a+432>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+432>>2]=0;b=J[a+428>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+428>>2]=0;b=J[a+424>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+424>>2]=0;b=J[a+396>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+396>>2]=0;b=J[a+400>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+400>>2]=0;b=J[a+384>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+384>>2]=0;b=J[a+388>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+388>>2]=0;b=J[a+364>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+364>>2]=0;b=J[a+496>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+496>>2]=0;b=J[a+560>>2];if(b)Ab[J[c+8>> -2]](c,b);J[a+556>>2]=0;J[a+560>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}}function W7(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;c=xb-16|0;xb=c;I[a+16>>1]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=392476;e=Pb(16);J[195395]=0;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=428736;d=J[195395];J[195395]=0;a:{b:{c:{if((d|0)!=1){J[a+4>>2]=e;d=id(b);if(d>>>0>=1073741808){J[195395]=0;ea(1800,c+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;break a}d:{if(d>>>0<=1){H[c+15|0]=d;f=c+4|0;break d}f=d|3;if(f>>>0>=1073741823){J[195395]= -0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break b}J[195395]=0;g=f+1|0;f=_(1078,g<<2)|0;h=J[195395];J[195395]=0;if((h|0)==1)break b;J[c+4>>2]=f;J[c+8>>2]=d;J[c+12>>2]=g|-2147483648}g=b;b=d<<2;i=Mb(f,g,b)+b|0,j=0,J[i>>2]=j;J[195395]=0;ca(1099,e|0,c+4|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break c;if(H[c+15|0]<0)Kb(J[c+4>>2]);xb=c+16|0;return a|0}a=Z()|0;Kb(e);ba(a|0);B()}a=Z()|0;if(H[c+15|0]<0)Kb(J[c+4>>2]);ba(a|0);B()}ba(Z()|0);B()}B()}function wv(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a>> -2];if(J[a+248>>2]){d=J[a+92>>2]>>6;while(1){f=c<<2;g=Rb(J[f+J[e+704>>2]>>2],d);J[f+J[a+252>>2]>>2]=g;c=c+1|0;if(c>>>0>2])continue;break}}c=J[a+300>>2];d=rp(c,e,a);if(!d){H[c+565|0]=b;H[c+492|0]=0;J[c+16>>2]=0;J[c+432>>2]=0;f=J[e+696>>2];b=J[e+692>>2];J[c+464>>2]=0;J[c+468>>2]=0;J[c+460>>2]=b;J[c+456>>2]=f;d=0;if(b){J[c+368>>2]=b;J[c+360>>2]=f;J[c+364>>2]=0;J[c+356>>2]=2;d=Ab[J[e+708>>2]](c)|0}J[a+308>>2]=d;I[c+304>>1]=0;I[c+296>>1]=0;I[c+298>>1]=16384;I[c+300>>1]=0;I[c+302>>1]=16384;J[c+ -288>>2]=0;J[c+292>>2]=1073741824;I[c+352>>1]=1;J[c+348>>2]=65537;J[c+308>>2]=1;Mb(a+180|0,c+288|0,68);J[a+124>>2]=J[c+400>>2];J[a+136>>2]=J[c+412>>2];J[a+148>>2]=J[c+424>>2];J[a+152>>2]=J[c+428>>2];b=J[c+452>>2];J[a+156>>2]=J[c+448>>2];J[a+160>>2]=b;b=J[c+460>>2];J[a+164>>2]=J[c+456>>2];J[a+168>>2]=b;b=J[c+468>>2];J[a+172>>2]=J[c+464>>2];J[a+176>>2]=b}return d}function fD(a,b){var c=0,d=0,e=0,f=0;c=xb+-64|0;xb=c;a:{b:{if(K[a+13|0]&8){e=J[b>>2];f=e+2|0;if(f>>>0>M[a+616>>2]){b=J[a+628>>2];J[c+32>>2]= -J[a>>2];Ob(b,273200,273235,c+32|0);break a}d=c+62|0;Pc(d,e+J[a+612>>2]|0,2);if(K[a+12|0]&128){e=K[d+1|0];H[d+1|0]=K[d|0];H[d|0]=e}d=P(L[c+62>>1],12)+f|0;if(M[a+616>>2]>>0){b=J[a+628>>2];J[c+48>>2]=J[a>>2];Ob(b,273200,273427,c+48|0);d=0;break a}Pc(b,d+J[a+612>>2]|0,4);d=1;if(K[a+12|0]&128)break b;break a}c:{if((Ab[J[a+640>>2]](J[a+628>>2],J[b>>2],0)|0)==J[b>>2])if((Ab[J[a+632>>2]](J[a+628>>2],c+62|0,2)|0)==2)break c;b=J[a+628>>2];J[c+16>>2]=J[a>>2];Ob(b,273200,273235,c+16|0);break a}if(K[a+12| -0]&128){e=K[c+63|0];H[c+63|0]=K[c+62|0];H[c+62|0]=e}Ab[J[a+640>>2]](J[a+628>>2],P(L[c+62>>1],12),1)|0;if((Ab[J[a+632>>2]](J[a+628>>2],b,4)|0)!=4){b=J[a+628>>2];J[c>>2]=J[a>>2];Ob(b,273200,273427,c);break a}d=1;if(!(K[a+12|0]&128))break a}_h(b)}xb=c- -64|0;return d}function Cda(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=xb-128|0;xb=e;a:{b:{if(b){d=K[b|0];if((d|0)!=49){J[a+204>>2]=J[a+204>>2]|131072;d=K[b|0]}c:{if(!d)break c;c=K[b+1|0];if((c|0)!=46){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+1|0]}d=((c|0)==46)+((d| -0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+2|0];if((c|0)!=53){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+2|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+3|0];if((c|0)!=46){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+3|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+4|0];if((c|0)!=50){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+4|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+5|0];if((c|0)!=54){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+5|0]}if(!K[b+6|0]|(!c|d+((c|0)==46)>>>0>1))break c;J[a+204>>2]=J[a+204>>2]|131072}d=1; -if(!(K[a+206|0]&2))break a;break b}J[a+204>>2]=J[a+204>>2]|131072}aj(e,128,aj(e,128,aj(e,128,aj(e,128,0,252461),b),252675),252307);Wb(a,e);d=0}xb=e+128|0;return d|0}function vka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];f=(J[a+4>>2]-c|0)/20|0;d=f+1|0;if(d>>>0<214748365){c=(J[a+8>>2]-c|0)/20|0;e=c<<1;d=c>>>0>=107374182?214748364:d>>>0>>0?e:d;if(d>>>0>=214748365)break c;c=P(f,20);d=P(d,20);f=Pb(d);c=c+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+ -4>>2]=0;J[b+8>>2]=0;e=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=e;d=d+f|0;f=c+20|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-20|0;g=J[b+4>>2];c=c-20|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;g=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=g;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){a=b-20|0;if(H[b-9|0]<0)Kb(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}Ve(a); -B()}zd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)Kb(b)}function rv(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=xb-16|0;xb=c;d=J[a+104>>2];f=J[d+28>>2];g=J[a+736>>2];H[g+24|0]=1;a:{if(Ab[J[a+516>>2]](a,1635148146,d,c+8|0)|0)break a;a=Tc(d,J[c+8>>2]);J[c+12>>2]=a;if(a)break a;a=he(d);e=he(d);b:{if((a|0)!=65536|(e|0)!=J[J[g+12>>2]>>2])break b;a=Tb(f,8,0,e,0,c+12|0);J[g+28>>2]=a;if(J[c+12>>2]|(e|0)<=0)break b;while(1){c:{b=Zc(d);I[a>>1]=b;if(M[c+8>>2]>>0)break c;k=a,l=Tb(f,8,0,b,0,c+ -12|0),J[k+4>>2]=l;if(J[c+12>>2])break c;b=0;if(L[a>>1])while(1){i=Zc(d);j=b<<3;J[j+J[a+4>>2]>>2]=i<<16>>16<<2;i=Zc(d);J[(J[a+4>>2]+j|0)+4>>2]=i<<16>>16<<2;b=b+1|0;if(b>>>0>1])continue;break}a=a+8|0;h=h+1|0;if((e|0)!=(h|0))continue;break b}break}a=J[g+28>>2];if(h)while(1){e=h-1|0;b=e<<3;a=J[(b+a|0)+4>>2];if(a)Ab[J[f+8>>2]](f,a);a=J[g+28>>2];J[(b+a|0)+4>>2]=0;b=(h|0)>1;h=e;if(b)continue;break}if(a)Ab[J[f+8>>2]](f,a);J[g+28>>2]=0}Ec(d)}xb=c+16|0}function pfa(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{e:{b= -J[a+388>>2];switch(J[b+20>>2]){case 2:break c;case 1:break d;case 0:break e;default:break b}}Or(a);Nr(a);if(!J[a+208>>2]){Ab[J[J[a+408>>2]>>2]](a);Ab[J[J[a+412>>2]>>2]](a);Ab[J[J[a+396>>2]>>2]](a,0)}Ab[J[J[a+416>>2]>>2]](a);Ab[J[J[a+420>>2]>>2]](a,J[a+216>>2]);Ab[J[J[a+400>>2]>>2]](a,J[b+28>>2]>1?3:0);Ab[J[J[a+392>>2]>>2]](a,0);if(J[a+216>>2]){J[b+12>>2]=0;break a}J[b+12>>2]=1;break a}Or(a);Nr(a);if(J[a+368>>2]?J[a+360>>2]:1){Ab[J[J[a+420>>2]>>2]](a,1);Ab[J[J[a+400>>2]>>2]](a,2);J[b+12>>2]=0;break a}J[b+ -20>>2]=2;J[b+24>>2]=J[b+24>>2]+1}if(!J[a+216>>2]){Or(a);Nr(a)}Ab[J[J[a+420>>2]>>2]](a,0);Ab[J[J[a+400>>2]>>2]](a,2);if(!J[b+32>>2])Ab[J[J[a+404>>2]+4>>2]](a);Ab[J[J[a+404>>2]+8>>2]](a);J[b+12>>2]=0;break a}c=J[a>>2];J[c+20>>2]=49;Ab[J[c>>2]](a)}d=b;c=J[b+28>>2];b=J[b+24>>2];J[d+16>>2]=(c-1|0)==(b|0);a=J[a+8>>2];if(a){J[a+16>>2]=c;J[a+12>>2]=b}}function K6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;e=b+48|0;c=J[e>>2];f=b+56|0;g=c<<(J[f>>2]>>>13&1);h=g<<2;c=(h+c|0)+76|0;J[d+8>>2]=c; -J[d+4>>2]=83;J[a+8>>2]=J[a+8>>2]+c;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);c=(D(Q(O[b+24>>3])),v(2));H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;Lb(J[a+4>>2],d+12|0,4);c=(D(Q(O[b+24>>3])),v(2));H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;Lb(J[a+4>>2],d+12|0,4);Lb(J[a+4>>2],b+40|0,4);Lb(J[a+4>>2],b+44|0,4);Lb(J[a+4>>2],e,4);Lb(J[a+ -4>>2],b+52|0,4);Lb(J[a+4>>2],f,4);Lb(J[a+4>>2],b+60|0,4);Lb(J[a+4>>2],b- -64|0,4);Lb(J[a+4>>2],b+68|0,4);Lb(J[a+4>>2],b+72|0,4);Lb(J[a+4>>2],b+76|0,4);c=J[e>>2];a:{if(!c)break a;Lb(J[a+4>>2],b+80|0,c);if(!g)break a;Lb(J[a+4>>2],b+84|0,h)}xb=d+16|0}function qp(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a>>2];a:{if(K[b+732|0])break a;H[a+112|0]=0;d=J[a+16>>2];c=J[a+12>>2];J[a+48>>2]=c;J[a+52>>2]=d;d=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>>2]=d;e=J[a+32>>2];d=a- -64|0;J[d>>2]=J[a+28>>2];J[d+4>>2]=e;J[a+72>> -2]=J[a+36>>2];e=151;if(!(c&65535)|!L[a+50>>1])break a;if(K[b+176|0]&8){f=a,g=Rb(I[b+70>>1],J[a+56>>2])+32&-64,J[f+60>>2]=g;f=d,g=Rb(I[b+72>>1],J[a+56>>2])+32&-64,J[f>>2]=g;f=a,g=Rb(I[b+74>>1],J[a+56>>2])+32&-64,J[f+68>>2]=g}H[a+112|0]=1;e=0;d=a+48|0;c=L[d>>1];if(K[b+176|0]&8){f=a,g=dc(c<<6,L[b+68>>1]),J[f+52>>2]=g;f=a,g=dc(L[a+50>>1]<<6,L[b+68>>1]),J[f+56>>2]=g;f=a,g=Rb(I[b+76>>1],J[a+52>>2])+32&-64,J[f+72>>2]=g;c=L[a+48>>1]}b=L[a+50>>1];b:{if(b>>>0<=c>>>0){I[a+84>>1]=c;J[a+76>>2]=65536;J[a+92>>2]= -J[a+52>>2];c=dc(b,c);break b}I[a+84>>1]=b;J[a+92>>2]=J[a+56>>2];f=a,g=dc(c,b),J[f+76>>2]=g;c=65536}J[a+308>>2]=-1;J[a+44>>2]=d;J[a+80>>2]=c}return e}function lq(a,b,c){var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;H[a|0]=0;a:{d=J[J[b>>2]-12>>2]+b|0;b:{if(!J[d+16>>2]){d=J[d+72>>2];if(d)By(d);c:{if(c)break c;d=J[J[b>>2]-12>>2]+b|0;if(!(J[d+4>>2]&4096))break c;c=e+12|0;d=J[d+28>>2];J[c>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[195395]=0;g=_(3535,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;c=J[c>>2];d=J[c+4>>2]-1|0; -J[c+4>>2]=d;if((d|0)==-1)Ab[J[J[c>>2]+8>>2]](c);c=J[J[b>>2]-12>>2];J[195395]=0;d=J[(b+c|0)+24>>2];c=J[195395];J[195395]=0;d:{if((c|0)!=1){c=e+8|0;J[c>>2]=d;break d}ga(0)|0;_b();B()}d=e+4|0;J[d>>2]=0;while(1){e:{if(mf(c,d))break e;f=Kh(c);if((f|0)>=0)f=J[J[g+8>>2]+((f&255)<<2)>>2]&1;else f=0;if(!f)break e;Hi(c);continue}break}if(!mf(c,d))break c;Hj(J[J[b>>2]-12>>2]+b|0,6)}H[a|0]=!J[(J[J[b>>2]-12>>2]+b|0)+16>>2];break b}Hj(d,4)}xb=e+16|0;return a}c=Z()|0;a=J[e+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b| -0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function kC(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,p=0;a:{if(!a|!b|(b|0)<4)break a;j=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if(j>>>0>b>>>0|j>>>0<13)break a;l=a+4|0;g=l;m=1;if(b>>>0>=8){o=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);g=a+8|0}h=a+b|0;if(h>>>0>g+3>>>0){n=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);g=g+4|0}if(h>>>0>g+1>>>0){p=K[g|0]|K[g+1|0]<<8;g=g+2|0}if(h>>>0>g+1>>>0){k=K[g|0]|K[g+1|0]<<8;g=g+2|0}if(h>>>0>g+3>>>0){m= -!(K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24));g=g+4|0}g=g+((g+3>>>0>>0)<<2)|0;g=((g+3>>>0>>0)<<2)+g|0;g=((g+3>>>0>>0)<<2)+g|0;if(g+3>>>0>>0)i=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);if(c)break a;b:{if(!m){c=i;break b}c=2;g=n>>31;g=b-((P((g^n)-g|0,P(P(o,p),k)+31>>3&-4)+j|0)+(i<<2)|0)|0;if((g|0)<0)break a;if(!((k|0)!=1|i)&g>>>0>7)break b;c=i?i:(k|0)==8?g>>>0>1023?256:i:i}c=(c<<2)+j|0;lC(l,c-4|0,a+c|0,b-c|0,d,e,f)}}function gx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g= -0,h=0,i=0;a=c;a:if((d-a|0)<3)break a;while(1){b:{if(e>>>0<=g>>>0|a>>>0>=d>>>0)break b;b=K[a|0];f=a+1|0;c:{if(b<<24>>24>=0)break c;if(b>>>0<194)break b;if(b>>>0<=223){if((K[a+1|0]&192)!=128|(d-a|0)<2)break b;f=a+2|0;break c}if(b>>>0<=239){if((d-a|0)<3)break b;h=K[a+2|0];f=K[a+1|0];d:{e:{if((b|0)!=237){if((b|0)!=224)break e;if((f&224)==160)break d;break b}if((f&224)!=128)break b;break d}if((f&192)!=128)break b}if((h&192)!=128)break b;f=a+3|0;break c}if((d-a|0)<4|b>>>0>244|e-g>>>0<2)break b;h=K[a+3| -0];i=K[a+2|0];f=K[a+1|0];f:{g:switch(b-240|0){case 0:if((f+112&255)>>>0>=48)break b;break f;case 4:if((f&240)!=128)break b;break f;default:break g}if((f&192)!=128)break b}if((i&192)!=128|(h&192)!=128|(h&63|(i<<6&4032|(b<<18&1835008|(f&63)<<12)))>>>0>1114111)break b;g=g+1|0;f=a+4|0}a=f;g=g+1|0;continue}break}return a-c|0}function Jh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;ae(a,J[a+8>>2]);c=J[a>>2];J[d+12>>2]=c;f=J[a+8>>2];if(c>>>0>>0){a:{b:{c:{d:{e:{f:{g:{e= -K[c|0];if((e|0)!=123){if((e|0)==91)break g;if((e|0)!=40)break f;J[b>>2]=c;J[b+8>>2]=2;if(pq(d+12|0,f))break e;break d}J[b>>2]=c;J[b+8>>2]=3;if(!Qy(d+12|0,f))break d;break e}J[b>>2]=c;J[b+8>>2]=3;J[a>>2]=c+1;ae(a,f);c=J[a>>2];h:{if(f>>>0<=c>>>0)break h;e=1;while(1){if(J[a+12>>2])break h;i:{j:switch(K[c|0]-91|0){case 2:if((e|0)>1){e=e-1|0;break i}c=c+1|0;J[d+12>>2]=c;J[b+4>>2]=c;break a;case 0:break j;default:break i}e=e+1|0}qq(a);ae(a,J[a+8>>2]);c=J[a>>2];if(f>>>0>c>>>0)continue;break}}J[d+12>>2]= -c;break e}J[b>>2]=c;J[b+8>>2]=K[c|0]==47?4:1;qq(a);c=J[a>>2];J[d+12>>2]=c;if(!J[a+12>>2])break c}c=J[b+4>>2];break b}c=J[d+12>>2]}J[b+4>>2]=c}if(c)break a;J[b+8>>2]=0;J[b>>2]=0}J[a>>2]=J[d+12>>2]}xb=d+16|0}function Ffa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;b=J[b+84>>2];f=P(J[b+96>>2],I[c+48>>1]);h=P(J[b+32>>2],I[c+16>>1]);g=P(f+h|0,4433);i=J[d>>2]+e|0;a=J[a+332>>2]+128|0;j=P(J[b+100>>2],I[c+50>>1]);k=P(J[b+36>>2],I[c+18>>1]);l=P(j+k|0,4433); -k=l+P(k,6270)|0;m=P(J[b+68>>2],L[c+34>>1]);n=P(J[b+4>>2],L[c+2>>1]);o=m+n<<13;p=k+o|0;q=P(J[b+64>>2],L[c+32>>1]);b=P(J[b>>2],L[c>>1]);c=q+b<<13;h=g+P(h,6270)|0;r=(c+h|0)+32768|0;H[i|0]=K[a+(p+r>>>16&1023)|0];H[i+1|0]=K[a+(r-p>>>16&1023)|0];i=J[d+4>>2]+e|0;g=g+P(f,-15137)|0;b=b-q<<13;f=(g+b|0)+32768|0;j=P(j,-15137)+l|0;l=n-m<<13;m=j+l|0;H[i|0]=K[a+(f+m>>>16&1023)|0];H[i+1|0]=K[a+(f-m>>>16&1023)|0];f=J[d+8>>2]+e|0;b=(b-g|0)+32768|0;g=l-j|0;H[f|0]=K[a+(b+g>>>16&1023)|0];H[f+1|0]=K[a+(b-g>>>16&1023)| -0];b=J[d+12>>2]+e|0;c=(c-h|0)+32768|0;d=o-k|0;H[b|0]=K[a+(c+d>>>16&1023)|0];H[b+1|0]=K[a+(c-d>>>16&1023)|0]}function zf(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=6;a:{if(!a|!c)break a;g=J[c>>2];if(!g)break a;i=J[g+100>>2];h=J[a>>2];b:{c:{if((h|0)<=0){if(!h)break c;break b}e=Ab[J[i+4>>2]](i,h)|0;if(!e){f=64;e=0;break b}Nb(e,0,h)}f=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=f;J[e+8>>2]=J[c+8>>2];J[e+12>>2]=a;d:{a=J[a+4>>2];if(a){f=Ab[a|0](e,b)|0;if(f)break d}a=J[g+36>>2];b=a+1|0;if((a|b)<0){f=6;break d}h=J[g+40>> -2];e:{f:{g:{if(!b){c=0;if(!h)break g;Ab[J[i+8>>2]](i,h);J[g+40>>2]=0;break e}f=10;if((a|0)>536870910)break d;h:{if(!a){c=Ab[J[i+4>>2]](i,b<<2)|0;f=!c<<6;break h}b=Ab[J[i+12>>2]](i,a<<2,b<<2,h)|0;c=b?b:h;f=!b<<6}if(f|!c)break f;a=(a<<2)+c|0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0}J[g+40>>2]=c;break e}J[g+40>>2]=c;if(f)break d}a=J[g+36>>2];J[g+36>>2]=a+1;J[(a<<2)+c>>2]=e;f=0;break b}a=J[J[e>>2]+100>>2];b=J[J[e+12>>2]+8>>2];if(b)Ab[b|0](e);Ab[J[a+8>>2]](a,e);e=0}if(!d)break a;J[d>>2]=e}return f}function eJ(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;e=170435;d=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a:{if((d|0)<=0)break a;g=a+16|0;a=d-1|0;while(1){h=a+i>>>1|0;f=P(h,12)+g|0;d=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);b:{if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0<=b>>>0){d=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>>0){i=h+1|0;break b}e=P(h,12)+g|0;break a}a=h-1|0}if((a|0)>= -(i|0))continue;break}}a=0;d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);g=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);c:{if(d>>>0>(g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24))>>>0)break c;d=b-d|0;b=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);b=d+(b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0;if(!b)break c;J[c>>2]=b;a=1}return a|0}function kE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if(!a)return 35;if(!e)return 6;f=J[a+96>>2]; -J[e>>2]=0;J[e+4>>2]=0;f=J[J[f+12>>2]+76>>2];if(!f)return 0;c=Ab[f|0](a,b,c,e)|0;a:{if(c|(d|0)==2)break a;f=J[e>>2];c=f>>31;b=J[a+88>>2];h=J[b+16>>2];a=h>>31;c=(c^f)-c|0;a=(a^h)-a|0;b:{if(c+(a>>>8|0)>>>0<=8190){c=P(a,c)+32768>>>16|0;break b}i=c&65535;c=P(i,a>>>16|0)+P(a,c>>>16|0)+(P(i,a&65535)+32768>>>16)|0}a=c;g=0-a|0;a=f>>31|1;f=(((h|0)<0?0-a|0:a)|0)<0?g:c;J[e>>2]=f;h=J[e+4>>2];c=h>>31;i=J[b+20>>2];a=i>>31;c=(c^h)-c|0;a=(a^i)-a|0;c:{if(c+(a>>>8|0)>>>0<=8190){g=P(a,c)+32768>>>16|0;break c}g=c&65535; -g=P(g,a>>>16|0)+P(a,c>>>16|0)+(P(g,a&65535)+32768>>>16)|0}a=g;c=0;j=0-a|0;a=h>>31|1;a=(((i|0)<0?0-a|0:a)|0)<0?j:g;J[e+4>>2]=a;if((d|0)==1)break a;d=L[b+12>>1];if(d>>>0<=24)f=hc(f,d,25);b=L[b+14>>1];if(b>>>0<=24)a=hc(a,b,25);J[e+4>>2]=a+32&-64;J[e>>2]=f+32&-64}return c|0}function XS(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{d=J[a+28>>2];if(K[d+44|0])break b;c=pw(d,J[b>>2],J[b+4>>2]);if(!c)break b;a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=c;return}c:{c=J[d+12>>2];if((I[c+22>>1]+I[c+58>>1]|0)+3>>> -0<=M[c+4>>2])break c;c=ie(c,3,0);if(!c)break c;a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=c;return}a=J[d+20>>2];d:{e:{f:{if(!K[d+45|0]){I[a+2>>1]=L[a+2>>1]+1;break f}c=J[a+8>>2];e=J[b+8>>2];f=I[a+2>>1];g=J[a+4>>2]+(f<<3)|0;J[g+4>>2]=J[b+12>>2]>>10;J[g>>2]=e>>10;H[c+f|0]=2;e=K[d+45|0];c=J[d+20>>2];I[a+2>>1]=L[a+2>>1]+1;if(e)break e;a=c}I[a+2>>1]=L[a+2>>1]+1;break d}a=J[c+8>>2];e=J[b+16>>2];f=I[c+2>>1];g=J[c+4>>2]+(f<<3)|0;J[g+4>>2]=J[b+20>>2]>>10;J[g>>2]=e>>10;H[a+f|0]=2;e=K[d+45|0];a=J[d+20>>2];I[c+ -2>>1]=L[c+2>>1]+1;if(!e)break d;c=J[a+8>>2];d=J[b+24>>2];e=I[a+2>>1];f=J[a+4>>2]+(e<<3)|0;J[f+4>>2]=J[b+28>>2]>>10;J[f>>2]=d>>10;H[c+e|0]=1}I[a+2>>1]=L[a+2>>1]+1}}function s6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;g=J[c+4>>2];d=J[c>>2];h=(g-d|0)/12|0;J[e+28>>2]=h;if((d|0)!=(g|0))while(1){f=(J[d+4>>2]-J[d>>2]>>3)+f|0;d=d+12|0;if((g|0)!=(d|0))continue;break}J[e+24>>2]=f;d=((h<<2)+(f<<3)|0)+32|0;J[e+20>>2]=d;J[e+16>>2]=8;J[a+8>>2]=d+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>> -2],e+16|0,4);Lb(J[a+4>>2],e+20|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],e+28|0,4);Lb(J[a+4>>2],e+24|0,4);d=J[c>>2];b=J[c+4>>2];a:{if((d|0)==(b|0))break a;while(1){J[e+12>>2]=J[d+4>>2]-J[d>>2]>>3;Lb(J[a+4>>2],e+12|0,4);d=d+12|0;if((b|0)!=(d|0))continue;break}b=J[c>>2];c=J[c+4>>2];if((b|0)==(c|0))break a;while(1){d=J[b>>2];f=J[b+4>>2];if((d|0)!=(f|0))while(1){Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);d=d+8|0;if((f|0)!=(d|0))continue;break}b= -b+12|0;if((c|0)!=(b|0))continue;break}}xb=e+32|0}function q6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;g=J[c+4>>2];d=J[c>>2];h=(g-d|0)/12|0;J[e+28>>2]=h;if((d|0)!=(g|0))while(1){f=(J[d+4>>2]-J[d>>2]>>3)+f|0;d=d+12|0;if((g|0)!=(d|0))continue;break}J[e+24>>2]=f;d=((h<<2)+(f<<3)|0)+32|0;J[e+20>>2]=d;J[e+16>>2]=7;J[a+8>>2]=d+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+16|0,4);Lb(J[a+4>>2],e+20|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+ -12|0,4);Lb(J[a+4>>2],e+28|0,4);Lb(J[a+4>>2],e+24|0,4);d=J[c>>2];b=J[c+4>>2];a:{if((d|0)==(b|0))break a;while(1){J[e+12>>2]=J[d+4>>2]-J[d>>2]>>3;Lb(J[a+4>>2],e+12|0,4);d=d+12|0;if((b|0)!=(d|0))continue;break}b=J[c>>2];c=J[c+4>>2];if((b|0)==(c|0))break a;while(1){d=J[b>>2];f=J[b+4>>2];if((d|0)!=(f|0))while(1){Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);d=d+8|0;if((f|0)!=(d|0))continue;break}b=b+12|0;if((c|0)!=(b|0))continue;break}}xb=e+32|0}function Er(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=b;b= -8-c|0;h=Hl(a,4<>2]=h;f=-1<<16-c^-1;a:{if(d-95E3>>>0>1E4){k=+(d|0)*1E-5;l=+(f>>>0);d=0;while(1){e=Zd(a,512);J[(d<<2)+h>>2]=e;c=0;while(1){g=e+(c<<1)|0;i=V(Qd(+((c<>>0)/l,k)*65535+.5);b:{if(i<4294967296&i>=0){f=~~i>>>0;break b}f=0}I[g>>1]=f;c=c+1|0;if((c|0)!=256)continue;break}d=d+1|0;if(!(d>>>b|0))continue;break}break a}d=0;if(!c)while(1){f=Zd(a,512);J[(d<<2)+h>>2]=f;c=0;while(1){I[f+(c<<1)>>1]=(c<>1]=(e<>1]=(e<>1]= -(e<>>b|0))continue;break a}e=1<<15-c;while(1){g=Zd(a,512);J[(d<<2)+h>>2]=g;c=0;while(1){I[(c<<1)+g>>1]=(e+P((c<>>0)/(f>>>0);j=c|1;I[(j<<1)+g>>1]=(e+P((j<>>0)/(f>>>0);c=c+2|0;if((c|0)!=256)continue;break}d=d+1|0;if(!(d>>>b|0))continue;break}}}function gpa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=Q(0),g=Q(0),h=0;h=J[a+32>>2];e=J[b+32>>2];a:{if(L[e+68>>1]){d=J[J[e+88>>2]+20>>2];b=I[e+70>>1];J[195395]=0;d=Rb(b,d); -b=J[195395];J[195395]=0;b:{if((b|0)==1)break b;J[c>>2]=d;d=J[J[e+88>>2]+20>>2];b=I[e+72>>1];J[195395]=0;d=Rb(b,d);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[c+4>>2]=d;d=J[J[e+88>>2]+20>>2];b=I[e+74>>1];J[195395]=0;e=Rb(b,d);b=J[195395];J[195395]=0;if((b|0)==1)break b;d=J[c+4>>2];b=J[c>>2];e=d+(e-b|0)|0;break a}a=Z()|0;td();ba(a|0);B()}e=J[e+88>>2];b=J[e+24>>2];J[c>>2]=b;d=J[e+28>>2];J[c+4>>2]=d;e=J[e+32>>2]+(d-b|0)|0}J[c+8>>2]=e;a=J[a+52>>2];g=Q(h>>31|1);f=Q(g*Q(e|0));c:{if(Q(R(f))>2]=e;f=Q(g*Q(d|0));d:{if(Q(R(f))>2]=d;f=Q(g*Q(a+b|0));e:{if(Q(R(f))>2]=a;td();return 1}function TR(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+4>>2];c=e-J[a>>2]>>2;if(c>>>0>>0){h=xb-32|0;xb=h;a:{b:{f=b-c|0;c:{if(f>>>0<=J[a+8>>2]-e>>2>>>0){vx(a,f);break c}g=a+16|0;e=h+12|0;c=xb-16|0;xb=c;d=(J[a+4>>2]-J[a>>2]>>2)+f|0;J[c+12>>2]=d;d:{b=Ww();if(d>>>0<=b>>>0){d= -J[a+8>>2]-J[a>>2]>>2;if(d>>>0>>1>>>0){J[c+8>>2]=d<<1;b=xb-16|0;xb=b;xb=b+16|0;b=c+12|0;d=c+8|0;b=J[(M[d>>2]>2]?b:d)>>2]}xb=c+16|0;c=b;break d}Ve(a);B()}i=J[a+4>>2]-J[a>>2]>>2;b=0;d=xb-16|0;xb=d;J[d+12>>2]=0;J[e+12>>2]=0;J[e+16>>2]=g;if(c){Vw(d+4|0,J[e+16>>2],c);b=J[d+4>>2];c=J[d+8>>2]}else c=0;J[e>>2]=b;g=(i<<2)+b|0;J[e+8>>2]=g;J[e+4>>2]=g;J[e+12>>2]=(c<<2)+b;xb=d+16|0;J[195395]=0;$(3763,e|0,f|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[195395]=0;Sw(a,e);a=J[195395];J[195395]=0;if((a| -0)==1)break b;Rw(e)}xb=h+32|0;break a}a=Z()|0;Rw(e);ba(a|0);B()}return}if(b>>>0>>0)Tw(a,J[a>>2]+(b<<2)|0)}function pea(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=Nb(a,0,256);d=J[b>>2]+c|0;h=K[d+2|0];e=K[d|0];f=h+e|0;g=K[d+1|0];d=(f+g<<4)-6144|0;J[a>>2]=d;h=P(e-h|0,10033)+256>>9;J[a+4>>2]=h;J[a+8>>2]=P(f-(g<<1)|0,5793)+256>>9;e=J[b+4>>2]+c|0;f=K[e+2|0];g=K[e|0];i=f+g|0;j=K[e+1|0];e=(i+j<<4)-6144|0;J[a+32>>2]=e;f=P(g-f|0,10033)+256>>9;J[a+36>>2]=f;g=P(i-(j<<1)|0,5793)+256>>9; -J[a+40>>2]=g;b=J[b+8>>2]+c|0;c=K[b+2|0];i=K[b|0];j=c+i|0;b=K[b+1|0];k=(j+b<<4)-6144|0;J[a+32>>2]=P(d-k|0,17837)+16384>>15;c=P(i-c|0,10033)+256>>9;J[a+36>>2]=P(h-c|0,17837)+16384>>15;d=d+k|0;J[a+64>>2]=P(d-(e<<1)|0,10298)+16384>>15;J[a>>2]=P(d+e|0,14564)+16384>>15;c=c+h|0;J[a+68>>2]=P(c-(f<<1)|0,10298)+16384>>15;J[a+4>>2]=P(c+f|0,14564)+16384>>15;c=J[a+8>>2];b=P(j-(b<<1)|0,5793)+256>>9;J[a+40>>2]=P(c-b|0,17837)+16384>>15;b=b+c|0;J[a+72>>2]=P(b-(g<<1)|0,10298)+16384>>15;J[a+8>>2]=P(b+g|0,14564)+16384>> -15}function hr(a,b,c,d){var e=0,f=0,g=0;a:{b=J[b>>2];if(!b)break a;b:{c:{if((a|0)<=13369375){if((a|0)==6684742)break c;if(!c|(!d|(a|0)!=8913094))break a;while(1){g=P(c,f);a=0;while(1){e=a+g<<2;if(!(K[e+b|0]!=255|K[b+(e|1)|0]!=255|K[b+(e|2)|0]!=255))H[b+(e|3)|0]=0;a=a+1|0;if((c|0)!=(a|0))continue;break}f=f+1|0;if((f|0)!=(d|0))continue;break}break a}if((a|0)==13369376)break b;if(!c|(!d|(a|0)!=15597702))break a;while(1){g=P(c,f);a=0;while(1){e=a+g<<2;if(!(K[e+b|0]|K[b+(e|1)|0]|K[b+(e|2)|0]))H[b+(e|3)| -0]=0;a=a+1|0;if((c|0)!=(a|0))continue;break}f=f+1|0;if((f|0)!=(d|0))continue;break}break a}if(!d|!c)break a;while(1){g=P(c,f);a=0;while(1){e=a+g<<2;if(!(K[e+b|0]|K[b+(e|1)|0]|K[b+(e|2)|0]))H[b+(e|3)|0]=0;a=a+1|0;if((c|0)!=(a|0))continue;break}f=f+1|0;if((f|0)!=(d|0))continue;break}break a}a=P(c,d)<<2;if(!a)break a;c=3;while(1){H[b+c|0]=255;c=c+4|0;if(a>>>0>c>>>0)continue;break}}}function ED(a,b,c){var d=0,e=0,f=0;d=xb-16|0;xb=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Wb(a,260279);mc(a,c);break a}f=e&2;e= -K[a+401|0];if(!(f|(e|0)!=3)){Wb(a,260303);mc(a,c);break a}if(!(!b|!(K[b+8|0]&32))){Wb(a,260328);mc(a,c);break a}if((((e|0)==3?1:e&2?6:2)|0)!=(c|0)){Wb(a,260349);mc(a,c);break a}e=d+10|0;Gd(a,e,c);Fc(a,e,c);if(mc(a,0))break a;e=K[a+401|0];b:{if((e|0)==3){c=K[d+10|0];H[d|0]=c;c:{d:{if(!b)break d;e=L[b+20>>1];if(!e)break d;if(c>>>0>=e>>>0){Wb(a,260377);break a}c=J[a+388>>2]+P(c,3)|0;I[d+2>>1]=K[c|0];I[d+4>>1]=K[c+1|0];I[d+6>>1]=K[c+2|0];break c}I[d+6>>1]=0;I[d+2>>1]=0;I[d+4>>1]=0}I[d+8>>1]=0;break b}H[d| -0]=0;c=K[d+10|0]|K[d+11|0]<<8;c=c<<8|c>>>8;if(!(e&2)){I[d+6>>1]=c;I[d+8>>1]=c;I[d+4>>1]=c;I[d+2>>1]=c;break b}I[d+2>>1]=c;I[d+8>>1]=0;c=K[d+12|0]|K[d+13|0]<<8;I[d+4>>1]=c<<8|c>>>8;c=K[d+14|0]|K[d+15|0]<<8;I[d+6>>1]=c<<8|c>>>8}Br(a,b,d)}xb=d+16|0;return}gc(a,260254);B()}function xz(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;d=xb-16|0;xb=d;a:{b:{c:{d:{e:{h=J[a>>2];f:{if(!h)break f;e=K[b+11|0];i=e<<24>>24;j=(i|0)<0?J[b+4>>2]:e;f=j+1|0;if(f>>>0>=1073741808)break b;g:{if(f>>>0<=1){J[d+ -8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=f;e=d;g=d+4|0;break g}e=f|3;if(e>>>0>=1073741823)break a;g=e+1|0;e=Pb(g<<2);J[d+4>>2]=f;J[d>>2]=e;J[d+8>>2]=g|-2147483648;g=e+4|0}J[e>>2]=60;e=(i|0)<0?J[b>>2]:b;b=j<<2;k=qc(g,e,b)+b|0,l=0,J[k>>2]=l;J[195395]=0;$(3507,h|0,d|0);b=J[195395];J[195395]=0;if((b|0)==1)break e;if(H[d+11|0]<0)Kb(J[d>>2]);if(c)break f;J[d>>2]=62;J[d+4>>2]=0;H[d+11|0]=1;a=J[a>>2];J[195395]=0;$(3507,a|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break d;if(H[d+11|0]>=0)break f;Kb(J[d>>2])}xb= -d+16|0;return}b=Z()|0;if(H[d+11|0]>=0)break c;Kb(J[d>>2]);ba(b|0);B()}b=Z()|0;if(H[d+11|0]>=0)break c;Kb(J[d>>2])}ba(b|0);B()}dd(d);B()}zd();B()}function uW(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;g=xb-16|0;xb=g;J[g+12>>2]=0;i=J[c>>2];d=tc(i,24,g+12|0);e=J[g+12>>2];a:{if(e)break a;b:{e=a+4|0;if(e>>>0>b>>>0)break b;h=K[a|0];H[d+4|0]=h;f=K[a+1|0]|K[a+2|0]<<8;I[d+6>>1]=f<<8|f>>>8;f=K[a+3|0];H[d+5|0]=f;k=J[c+148>>2];l=J[c+4>>2];j=f&1;f=(f>>>1&1)+(j?5:3)|0;J[d+8>>2]=f;J[d+12>> -2]=(e+l|0)-k;if(e+P(f,h)>>>0>b>>>0)break b;if(h){c:{if(j){a=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);J[d+16>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=e+P(f,h-1|0)|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break c}J[d+16>>2]=K[a+5|0]|K[a+4|0]<<16;a=e+P(f,h-1|0)|0;a=K[a|0]<<16|K[a+1|0]}e=0;J[d>>2]=0;J[d+20>>2]=a;J[J[c+140>>2]>>2]=d;J[c+140>>2]=d;J[c+132>>2]=J[c+132>>2]+h;break a}if(d)Ab[J[i+8>>2]](i,d);e=J[g+12>>2];break a}if(d)Ab[J[i+8>> -2]](i,d);e=8}xb=g+16|0;return e|0}function bB(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+8>>2];c=J[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){b=P(b,12)-12|0;b=(b-((b>>>0)%12|0)|0)+12|0;c=Nb(c,0,b)+b|0}J[a+4>>2]=c;return}a:{b:{c:{g=J[a>>2];f=(c-g|0)/12|0;d=f+b|0;if(d>>>0<357913942){e=(e-g|0)/12|0;h=e<<1;e=e>>>0>=178956970?357913941:d>>>0>>0?h:d;if(e){if(e>>>0>=357913942)break c;i=Pb(P(e,12))}d=P(f,12)+i|0;b=P(b,12)-12|0;f=(b-((b>>>0)%12|0)|0)+12|0;b=Nb(d,0,f);f=b+f|0;e=P(e,12)+i|0;if((c| -0)==(g|0))break b;while(1){d=d-12|0;J[d+8>>2]=0;c=c-12|0;J[d>>2]=J[c>>2];J[d+4>>2]=J[c+4>>2];J[d+8>>2]=J[c+8>>2];J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;if((c|0)!=(g|0))continue;break}J[a+8>>2]=e;c=J[a+4>>2];J[a+4>>2]=f;b=J[a>>2];J[a>>2]=d;if((b|0)==(c|0))break a;while(1){a=c-12|0;d=J[a>>2];if(d){J[c-8>>2]=d;Kb(d)}c=a;if((b|0)!=(c|0))continue;break}c=b;break a}Si(a);B()}zd();B()}J[a+8>>2]=e;J[a+4>>2]=f;J[a>>2]=b}if(c)Kb(c)}function OA(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;c=J[a+208>>2];if(c){Ab[J[J[c>> -2]+4>>2]](c);J[a+208>>2]=0}d=Pb(16);J[195395]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=393404;J[d+12>>2]=0;c=J[195395];J[195395]=0;if((c|0)!=1){a:{if(!b)break a;g=Pb(8);J[195395]=0;J[g+4>>2]=b;J[g>>2]=394144;b=J[195395];J[195395]=0;b:{c:{if((b|0)!=1){b=J[d+8>>2];e=J[d+12>>2];if(b>>>0>>0){J[b>>2]=g;J[d+8>>2]=b+4;break a}h=J[d+4>>2];f=b-h>>2;c=f+1|0;if(c>>>0>=1073741824)break c;i=f<<2;e=e-h|0;f=e>>1;f=e>>>0>=2147483644?1073741823:c>>>0>>0?f:c;if(f){if(f>>>0>=1073741824)break b;c=Pb(f<<2)}else c=0;e= -i+c|0;J[e>>2]=g;g=e+4|0;if((b|0)!=(h|0)){while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(h|0))continue;break}b=J[d+4>>2]}J[d+12>>2]=c+(f<<2);J[d+8>>2]=g;J[d+4>>2]=e;if(!b)break a;Kb(b);break a}a=Z()|0;Kb(g);ba(a|0);B()}uk(393252);B()}zd();B()}J[a+208>>2]=d;return}a=Z()|0;Kb(d);ba(a|0);B()}function r6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;g=J[c+4>>2];d=J[c>>2];h=(g-d|0)/12|0;J[e+28>>2]=h;if((d|0)!=(g|0))while(1){f=(J[d+4>>2]-J[d>>2]>>2)+f|0;d=d+12|0;if((g|0)!=(d|0))continue; -break}J[e+24>>2]=f;d=(f+h<<2)+32|0;J[e+20>>2]=d;J[e+16>>2]=91;J[a+8>>2]=d+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+16|0,4);Lb(J[a+4>>2],e+20|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],e+28|0,4);Lb(J[a+4>>2],e+24|0,4);d=J[c>>2];b=J[c+4>>2];a:{if((d|0)==(b|0))break a;while(1){J[e+12>>2]=J[d+4>>2]-J[d>>2]>>2;Lb(J[a+4>>2],e+12|0,4);d=d+12|0;if((b|0)!=(d|0))continue;break}b=J[c>>2];c=J[c+4>>2];if((b|0)==(c|0))break a;while(1){d=J[b>>2]; -f=J[b+4>>2];if((d|0)!=(f|0))while(1){Lb(J[a+4>>2],d,2);Lb(J[a+4>>2],d+2|0,2);d=d+4|0;if((f|0)!=(d|0))continue;break}b=b+12|0;if((c|0)!=(b|0))continue;break}}xb=e+32|0}function p6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;g=J[c+4>>2];d=J[c>>2];h=(g-d|0)/12|0;J[e+28>>2]=h;if((d|0)!=(g|0))while(1){f=(J[d+4>>2]-J[d>>2]>>2)+f|0;d=d+12|0;if((g|0)!=(d|0))continue;break}J[e+24>>2]=f;d=(f+h<<2)+32|0;J[e+20>>2]=d;J[e+16>>2]=90;J[a+8>>2]=d+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2], -e+16|0,4);Lb(J[a+4>>2],e+20|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],e+28|0,4);Lb(J[a+4>>2],e+24|0,4);d=J[c>>2];b=J[c+4>>2];a:{if((d|0)==(b|0))break a;while(1){J[e+12>>2]=J[d+4>>2]-J[d>>2]>>2;Lb(J[a+4>>2],e+12|0,4);d=d+12|0;if((b|0)!=(d|0))continue;break}b=J[c>>2];c=J[c+4>>2];if((b|0)==(c|0))break a;while(1){d=J[b>>2];f=J[b+4>>2];if((d|0)!=(f|0))while(1){Lb(J[a+4>>2],d,2);Lb(J[a+4>>2],d+2|0,2);d=d+4|0;if((f|0)!=(d|0))continue;break}b=b+ -12|0;if((c|0)!=(b|0))continue;break}}xb=e+32|0}function Naa(a,b){a=a|0;b=b|0;var c=0;if(!Gg(a,288704,8)){Ob(J[a+628>>2],263538,264242,0);return 0}b=Qb(952);J[a+584>>2]=b;if(!b){Ob(J[a+628>>2],263538,264603,0);return 0}Pd(b,0,952);b=J[a+584>>2];J[b+828>>2]=a;J[b+892>>2]=J[a+672>>2];J[a+672>>2]=1703;J[b+896>>2]=J[a+668>>2];J[a+668>>2]=1704;J[b+900>>2]=J[a+676>>2];J[a+676>>2]=1705;J[b+948>>2]=0;J[b+936>>2]=0;J[b+940>>2]=0;J[b+920>>2]=75;J[b+924>>2]=0;J[b+912>>2]=0;J[b+916>>2]=0;J[b+928>>2]=3;J[b+932>> -2]=0;J[a+556>>2]=1706;J[a+548>>2]=1706;J[a+540>>2]=1706;J[a+520>>2]=1707;J[a+516>>2]=1708;J[a+572>>2]=1709;J[a+560>>2]=1710;J[a+552>>2]=1710;J[a+544>>2]=1710;J[a+536>>2]=1711;J[a+532>>2]=1712;J[a+524>>2]=1713;J[b+904>>2]=J[a+576>>2];J[a+576>>2]=1714;J[b+908>>2]=J[a+580>>2];J[a+580>>2]=1715;J[a+12>>2]=J[a+12>>2]|256;J[b+488>>2]=0;if(!J[a+16>>2]){J[b+916>>2]=2E3;c=b;b=Qb(2E3);J[c+912>>2]=b;Pd(b,0,2E3)}J[a+44>>2]=J[a+44>>2]|128;return 1}function lu(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k= -J[a+68>>2];if(k)while(1){a:{b:{e=P(f,20);if(Ab[b|0](e+J[a+80>>2]|0)|0){c=J[a+80>>2];h=c+e|0;e=J[h+8>>2];c:{d:{e:{d=f+1|0;if(d>>>0>>0){if((e|0)!=J[(c+P(d,20)|0)+8>>2])break e;break a}if(g)break d;break b}if(!g)break c}i=J[(c+P(g,20)|0)-12>>2];if(e>>>0>=i>>>0)break a;h=J[h+4>>2]&7;f=g;while(1){j=c+P(f,20)|0;l=j-12|0;if(J[l>>2]!=(i|0))break a;j=j-16|0;J[j>>2]=h|J[j>>2]&-8;J[l>>2]=e;f=f-1|0;if(f)continue;break}break a}Kd(a,f,f+2|0);break b}if((f|0)!=(g|0)){c=J[a+80>>2];h=P(g,20);d=c+h|0;c=c+e|0;i= -J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=i;J[d+16>>2]=J[c+16>>2];i=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=i;c=J[a+88>>2];d=c+h|0;c=c+e|0;e=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=e;e=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=e;J[d+16>>2]=J[c+16>>2]}g=g+1|0;d=f+1|0;break a}g=0}f=d;if((k|0)!=(d|0))continue;break}J[a+68>>2]=g}function gr(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=xb-32|0;xb=h;a:{if(!b){b=6;break a}i=J[a>>2];g=Ab[J[i+4>>2]](i,40)|0;if(!g){Ab[J[i+8>>2]](i,b);b=64;break a}H[g+20|0]=0;H[g+21|0]=0;H[g+ -22|0]=0;H[g+23|0]=0;H[g+24|0]=0;H[g+25|0]=0;H[g+26|0]=0;H[g+27|0]=0;H[g+12|0]=0;H[g+13|0]=0;H[g+14|0]=0;H[g+15|0]=0;H[g+16|0]=0;H[g+17|0]=0;H[g+18|0]=0;H[g+19|0]=0;J[g+8>>2]=0;J[g+4>>2]=c;J[g>>2]=b;H[g+36|0]=0;H[g+37|0]=0;H[g+38|0]=0;H[g+39|0]=0;H[g+28|0]=0;H[g+29|0]=0;H[g+30|0]=0;H[g+31|0]=0;H[g+32|0]=0;H[g+33|0]=0;H[g+34|0]=0;H[g+35|0]=0;J[g+24>>2]=15;J[h+16>>2]=g;J[h>>2]=2;if(e){J[h>>2]=10;c=J[a+16>>2];b:{if((c|0)<=0){c=0;break b}b=a+20|0;j=b+(c<<2)|0;while(1){c=J[b>>2];if(!fc(J[J[c>>2]+8>>2], -e))break b;b=b+4|0;if(j>>>0>b>>>0)continue;break}c=0}J[h+20>>2]=c}b=Wr(a,h,d,f,0);if(!b){a=J[f>>2];J[a+8>>2]=J[a+8>>2]&-1025;b=0;break a}a=J[g+24>>2];if(a)Ab[a|0](g);Ab[J[i+8>>2]](i,g)}xb=h+32|0;return b}function OD(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=xb-16|0;xb=e;a:{b:{c:{f=J[a+200>>2];if(!(f&1)){if((c|0)!=13)break c;J[a+200>>2]=f|1;c=e+3|0;Gd(a,c,13);Fc(a,c,13);mc(a,0);c=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((c|0)<0)break b;f= -K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);g=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if((g|0)<0)break a;i=K[e+15|0];f=K[e+12|0];j=K[e+14|0];k=K[e+13|0];h=K[e+11|0];H[a+402|0]=h;J[a+324>>2]=g;J[a+320>>2]=c;H[a+696|0]=k;H[a+664|0]=j;H[a+401|0]=f;H[a+398|0]=i;l=f<<3;d=l&31;if((l&63)>>>0>=32)d=262402>>>d|0;else d=((1<>>d;d=f>>>0>=7?1:d;H[a+405|0]=d;d=P(d,h);H[a+404|0]=d;d=d&255;d:{if(d>>>0>=8){d=P(c,d>>>3|0);break d}d=P(c,d)+7>>>3|0}J[a+336>>2]=d;qD(a,b,c,g,h,f,i,k, -j);xb=e+16|0;return}gc(a,253716);B()}gc(a,253815);B()}gc(a,251659);B()}gc(a,251659);B()}function Eea(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;j=J[a+372>>2];d=J[a+420>>2];e=J[a+24>>2];J[d+112>>2]=J[e>>2];J[d+116>>2]=J[e+4>>2];if(!(J[d+36>>2]|!J[a+236>>2]))Wn(d,J[d+40>>2]);if(J[a+316>>2]>0)while(1){e=h<<2;c=J[(e+a|0)+320>>2]<<2;k=J[(c+a|0)+292>>2];g=d+c|0;c=J[g+20>>2];f=I[J[b+e>>2]>>1]>>j;J[g+20>>2]=f;i=f-c|0;g=i>>31;e=0;a:{if((c|0)==(f|0))break a;f=(g^i)-g|0;while(1){c=e;e=c+1| -0;l=f>>>0>1;f=f>>>1|0;if(l)continue;break}if(c>>>0<11)break a;c=J[a>>2];J[c+20>>2]=6;Ab[J[c>>2]](a)}c=J[k+20>>2];b:{if(J[d+108>>2]){c=J[((c<<2)+d|0)+76>>2]+(e<<2)|0;J[c>>2]=J[c>>2]+1;break b}c=J[((c<<2)+d|0)+44>>2];bj(d,J[c+(e<<2)>>2],H[(c+e|0)+1024|0])}if(e)bj(d,g+i|0,e);h=h+1|0;if((h|0)>2])continue;break}b=J[a+24>>2];J[b>>2]=J[d+112>>2];J[b+4>>2]=J[d+116>>2];a=J[a+236>>2];if(a){b=J[d+36>>2];if(b)a=b;else J[d+40>>2]=J[d+40>>2]+1&7;J[d+36>>2]=a-1}return 1}function iI(a){var b=0,c=0,d=0;J[195395]= -0;ea(705,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)a:{if(J[a+120>>2]){c=J[a+124>>2];if(c){b=J[a+128>>2]+P(c,28)|0;while(1){d=b-28|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}b=b-28|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue;break}}J[a+124>>2]=0;Kb(J[a+128>>2])}J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;if(J[a+108>>2]){c=J[a+112>>2];if(c){b=J[a+116>>2]+P(c,28)|0;while(1){d=b-28|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}b=b-28|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue; -break}}J[a+112>>2]=0;Kb(J[a+116>>2])}J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;if(J[a+56>>2]){J[a+60>>2]=0;Kb(J[a- -64>>2])}J[a+56>>2]=0;J[a+60>>2]=0;J[a- -64>>2]=0;b=J[a+36>>2];if(b){J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}return a}ga(0)|0;_b();B()}function ZS(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;g=xb-16|0;xb=g;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)- -1|0:1;h=c-b>>2;a:{if(!h)break a;b:{if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(f>>>0<=b>>>0){if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(K[a+11|0]>>>7|0)i=J[a+4>>2];else i=K[a+11|0]&127;f=f+(i<<2)>>>0>=b>>>0}else f=0;if(!f){if(d-e>>>0>>0)Bm(a,d,(e-d|0)+h|0,e,e,0);if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;d=d+(e<<2)|0;while(1){if((b|0)==(c|0))break b;J[d>>2]=J[b>>2];b=b+4|0;d=d+4|0;continue}}e=xb-16|0;xb=e;d=g+4|0;cy(d,b,c);xb=e+16|0;b=d;c:{if(K[b+11|0]>>>7|0){c=J[b>>2];break c}c=b}if(K[b+11|0]>>>7|0)d=J[b+ -4>>2];else d=K[b+11|0]&127;J[195395]=0;aa(1864,a|0,c|0,d|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){Yc(b);break a}a=Z()|0;Yc(b);ba(a|0);B()}J[g+4>>2]=0;J[d>>2]=J[g+4>>2];sg(a,e+h|0)}xb=g+16|0;return a|0}function Rj(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[c>>2];if(!f){f=Pb(P(b,6)+4|0);J[c>>2]=f}if(e){H[f+2|0]=191;H[f|0]=239;H[f+1|0]=187;f=f+3|0}if((b|0)>0){e=(b<<2)+a|0;while(1){b=J[a>>2];a:{if(b>>>0<=127){H[f|0]=b;f=f+1|0;break a}if(b>>>0<=2047){H[f+1|0]=b&63|128;H[f|0]=b>>>6|192;f=f+2| -0;break a}if(b>>>0<=65535){H[f+2|0]=b&63|128;H[f|0]=b>>>12|224;H[f+1|0]=b>>>6&63|128;f=f+3|0;break a}if(b>>>0<=2097150){H[f+3|0]=b&63|128;H[f|0]=b>>>18|240;H[f+2|0]=b>>>6&63|128;H[f+1|0]=b>>>12&63|128;f=f+4|0;break a}if(b>>>0<=67108862){H[f+4|0]=b&63|128;H[f|0]=b>>>24|248;H[f+3|0]=b>>>6&63|128;H[f+2|0]=b>>>12&63|128;H[f+1|0]=b>>>18&63|128;f=f+5|0;break a}if(b>>>0>2147483646)break a;H[f+5|0]=b&63|128;H[f|0]=b>>>30|252;H[f+4|0]=b>>>6&63|128;H[f+3|0]=b>>>12&63|128;H[f+2|0]=b>>>18&63|128;H[f+1|0]=b>>> -24&63|128;f=f+6|0}a=a+4|0;if(e>>>0>a>>>0)continue;break}}J[d>>2]=f-J[c>>2];H[f|0]=0}function tj(a,b,c){var d=0,e=0,f=0;f=169776;a:{b:{if(!a|!c)break b;d=J[a+16>>2];if(d>>>0<=b>>>0)break b;if(J[a+4>>2])J[a+4>>2]=0;e=J[a>>2];if(e)J[a>>2]=e+1;if((b|0)==(d|0)){b=J[a>>2];if(!b)break b;J[a>>2]=b-1;if((b|0)!=1)break b;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}b=J[a+28>>2];if(b){c=J[a+24>>2];J[195395]=0;ea(b|0,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break a}Kb(a);return 169776}c:{d= -d-b|0;d=c>>>0>d>>>0?d:c;if((d|0)>=0){e=J[a+12>>2];c=vc(1,32);if(c)break c}b=J[a>>2];if(!b)break b;J[a>>2]=b-1;if((b|0)!=1)break b;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}b=J[a+28>>2];if(b){c=J[a+24>>2];J[195395]=0;ea(b|0,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break a}Kb(a);return 169776}J[c+8>>2]=0;J[c>>2]=1;J[c+4>>2]=1;J[c+28>>2]=628;J[c+24>>2]=a;J[c+20>>2]=1;J[c+16>>2]=d;J[c+12>>2]=b+e;f=c}return f}ga(0)|0;_b();B()}function jI(a){var b=0,c=0,d=0;J[195395]=0;ea(704, -a|0);b=J[195395];J[195395]=0;if((b|0)!=1)a:{if(J[a+208>>2]){c=J[a+212>>2];if(c){b=J[a+216>>2]+P(c,24)|0;while(1){d=b-24|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}b=b-24|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue;break}}J[a+212>>2]=0;Kb(J[a+216>>2])}J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;if(J[a+196>>2]){c=J[a+200>>2];if(c){b=J[a+204>>2]+(c<<5)|0;while(1){d=b-32|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}b=b-32|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue; -break}}J[a+200>>2]=0;Kb(J[a+204>>2])}J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;if(J[a+96>>2]){J[a+100>>2]=0;Kb(J[a+104>>2])}J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;b=J[a+36>>2];if(b){J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}return a}ga(0)|0;_b();B()}function fH(a,b,c){var d=0,e=0,f=0,g=0;a:{if((c|0)==1936292453){if(M[b+12>>2]>2]>>>0)return 0;if(J[b+8>>2]-a>>>0<10)return 0;f=K[a|0]|K[a+1|0]<<8;if(!f)return 0;b=K[a+ -8|0]|K[a+9|0]<<8;d=K[a+6|0]|K[a+7|0]<<8;e=K[a+4|0]|K[a+5|0]<<8;if(!(d|(e|(K[a+2|0]|K[a+3|0]<<8)))){c=1;if(!b)break a}a=(f<<8|f>>>8)&65535;if(a>>>0<((d<<8|(d&65280)>>>8)&65535)>>>0)return 0;c=0;if(a>>>0>((b<<8|(b&65280)>>>8)&65535)>>>0)break a;return(e<<8|(e&65280)>>>8)<<16>>16>255}d=c&-65536;if((d|0)!=1668677632){c=1;if((d|0)!=1936916480)break a;return J[b+8>>2]-a>>>0>3&M[b+12>>2]>=a-J[b+4>>2]>>>0}c=0;e=J[b+12>>2];d=J[b+4>>2];if(e>>>0>>0)break a;f=J[b+8>>2];if(f-a>>>0<14)break a;g=a+12|0;if(g- -d>>>0>e>>>0|f-g>>>0<2)break a;g=e;e=a+14|0;if(g>>>0>>0)break a;a=K[a+12|0]|K[a+13|0]<<8;a=P((a<<8|a>>>8)&65535,3);if(a>>>0>f-e>>>0)break a;a=J[b+16>>2]-a|0;J[b+16>>2]=a;c=(a|0)>0}return c}function Ui(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;a:{if(!b)break a;f=(e|0)==-1;g=f&(c|d);b:{if(g){Ab[J[J[b>>2]+28>>2]](b);break b}if(f)break b;Ab[J[J[b>>2]+76>>2]](b,e,-1)}f=J[a>>2];h=J[a+4>>2];if((f|0)!=(h|0))while(1){c:{d:{e:{f:{g:{h:{a=J[f>>2];switch((Ab[J[J[a>>2]+8>>2]](a)|0)-1|0){case 1:break g; -case 0:break h;case 4:break d;case 3:break e;case 2:break f;default:break c}}Ab[J[J[b>>2]+32>>2]](b,O[a+8>>3],O[a+16>>3]);break c}Ab[J[J[b>>2]+36>>2]](b,O[a+8>>3],O[a+16>>3]);break c}Ab[J[J[b>>2]+40>>2]](b,O[a+8>>3],O[a+16>>3],O[a+24>>3],O[a+32>>3],O[a+40>>3],O[a+48>>3]);break c}Ab[J[J[b>>2]+44>>2]](b,O[a+8>>3],O[a+16>>3],O[a+24>>3],O[a+32>>3],O[a+40>>3],O[a+48>>3]);break c}Ab[J[J[b>>2]+48>>2]](b)}f=f+4|0;if((h|0)!=(f|0))continue;break}if(g){Ab[J[J[b>>2]+52>>2]](b,(d?2:0)|c);Ab[J[J[b>>2]+56>>2]](b); -return}if((e|0)==-1)break a;Ab[J[J[b>>2]+80>>2]](b,e)}}function oT(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;var h=0,i=0;h=xb-416|0;xb=h;d=h+416|0;J[h+12>>2]=d;c=xb-144|0;xb=c;J[c+28>>2]=c+132;i=c+32|0;Nx(a+8|0,i,c+28|0,e,f,g);J[c+16>>2]=0;J[c+20>>2]=0;J[c+12>>2]=i;e=h+16|0;i=J[h+12>>2]-e>>2;f=xb-16|0;xb=f;J[f+12>>2]=J[a+8>>2];g=Tf(f+8|0,f+12|0);J[195395]=0;a=vq(e,c+12|0,i,c+16|0);i=J[195395];J[195395]=0;a:{if((i|0)!=1){re(g);xb=f+16|0;break a}a=Z()|0;re(g);ba(a|0);B()}if((a|0)==-1){Mx(227381); -B()}J[h+12>>2]=e+(a<<2);xb=c+144|0;g=xb-16|0;xb=g;a=xb-32|0;xb=a;eq(a+24|0,e,J[h+12>>2]);h=J[a+28>>2];c=xb-16|0;xb=c;f=J[a+24>>2];J[c+8>>2]=f;J[c+12>>2]=b;while(1){if((f|0)!=(h|0)){ry(c+12|0,J[f>>2]);f=f+4|0;J[c+8>>2]=f;continue}break}J[a+16>>2]=J[c+8>>2];J[a+20>>2]=J[c+12>>2];xb=c+16|0;J[a+12>>2]=e+(J[a+16>>2]-e|0);J[a+8>>2]=J[a+20>>2];J[g+8>>2]=J[a+12>>2];J[g+12>>2]=J[a+8>>2];xb=a+32|0;xb=g+16|0;xb=d;return J[g+12>>2]}function Cma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=vc(1,16);a:{if(!f)break a; -d=J[a+44>>2];if((d|0)<=0)break a;e=J[a+48>>2];d=d-1|0;a=d;b:{while(1){b=a>>>1|0;if(!J[P(b,36)+e>>2]){a=J[(P(b,36)+e|0)+28>>2];break b}c=a>>>0>1;a=b-1|0;if(c)continue;break}a=0}J[f>>2]=a;b=0;a=d;c:{while(1){c=a+b>>>1|0;g=J[P(c,36)+e>>2];d:{if(g>>>0<=1818914159){b=J[(P(c,36)+e|0)+28>>2];if((g|0)==1818914159)break c;b=c+1|0;break d}a=c-1|0}if((a|0)>=(b|0))continue;break}b=0}J[f+4>>2]=b;b=0;a=d;e:{while(1){c=a+b>>>1|0;g=J[P(c,36)+e>>2];f:{if(g>>>0<=1986686319){b=J[(P(c,36)+e|0)+28>>2];if((g|0)==1986686319)break e; -b=c+1|0;break f}a=c-1|0}if((a|0)>=(b|0))continue;break}b=0}J[f+8>>2]=b;a=0;g:{while(1){b=a+d>>>1|0;c=J[P(b,36)+e>>2];h:{if(c>>>0<=1953131887){a=J[(P(b,36)+e|0)+28>>2];if((c|0)==1953131887)break g;a=b+1|0;break h}d=b-1|0}if((a|0)<=(d|0))continue;break}a=0}J[f+12>>2]=a}return f|0}function ZF(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=Q(h);i=Q(i);j=j|0;a=J[b+16>>2];a:{if(!a){J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]= -a;j=776480;break a}j=(J[b+20>>2]+P(a,20)|0)-20|0}c=J[b+28>>2];b:{if(!c){J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break b}a=(J[b+32>>2]+P(c,20)|0)-20|0}c:{d:switch(J[j>>2]){case 0:J[a>>2]=0;return;case 1:break d;default:break c}e:switch(J[a>>2]-1|0){case 1:b=J[j+4>>2];J[a>>2]=J[j>>2];J[a+4>>2]=b;J[a+16>>2]=J[j+16>>2];b=J[j+12>>2];J[a+8>>2]=J[j+8>>2];J[a+12>>2]=b;return;case 0:break e;default:break c}d=N[a+4>>2];e=N[j+4>>2];N[a+ -4>>2]=d<=e?d:e;d=N[a+8>>2];e=N[j+8>>2];N[a+8>>2]=d<=e?d:e;d=N[a+12>>2];e=N[j+12>>2];N[a+12>>2]=d>=e?d:e;d=N[a+16>>2];e=N[j+16>>2];N[a+16>>2]=d>=e?d:e}}function Vc(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;a:{if(K[b|0]){g=O[b+8>>3];break a}H[b|0]=1;g=O[b+8>>3];f=O[a+4392>>3];if(g>f){O[b+8>>3]=f;g=f;f=O[a+4392>>3]}if(f>O[b+24>>3])O[b+24>>3]=f;f=O[a+4400>>3];if(f>3]){O[b+16>>3]=f;f=O[a+4400>>3]}if(!(O[b+32>>3]>3]=f}f=O[c>>3];if(g>f){O[b+8>>3]=f;g=f;f=O[c>>3]}h=O[b+24>>3];if(f>h){O[b+ -24>>3]=f;h=f}i=O[b+16>>3];f=O[c+8>>3];if(i>f){O[b+16>>3]=f;i=f;f=O[c+8>>3]}j=O[b+32>>3];if(f>j){O[b+32>>3]=f;j=f}f=O[d>>3];if(f>3]=f;f=O[d>>3]}if(f>h)O[b+24>>3]=f;g=O[d+8>>3];if(i>g){O[b+16>>3]=g;g=O[d+8>>3]}if(g>j)O[b+32>>3]=g;c=J[e+4>>2];J[a+4392>>2]=J[e>>2];J[a+4396>>2]=c;d=J[e+12>>2];c=a+4400|0;J[c>>2]=J[e+8>>2];J[c+4>>2]=d;g=O[a+4392>>3];if(g>3]){O[b+8>>3]=g;g=O[a+4392>>3]}if(O[b+24>>3]>3]=g;g=O[a+4400>>3];if(g>3]){O[b+16>>3]=g;g=O[a+4400>>3]}if(O[b+32>>3]< -g)O[b+32>>3]=g}function sX(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;a:{b:{c:{if(d){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[195395]=0;fa(3484,b|0,c|0,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)break c;b=Z()|0;if(H[a+11|0]<0)Kb(J[a>>2]);ba(b|0);B()}d=c+1|0;e=Pb(d>>>0>1073741823?-1:d<<2);d:{if((c|0)<=0)break d;d=0;if(c>>>0>=4){g=c&-4;while(1){J[(d<<2)+e>>2]=K[b+d|0];f=d|1;J[(f<<2)+e>>2]=K[b+f|0];f=d|2;J[(f<<2)+e>>2]=K[b+f|0];f=d|3;J[(f<<2)+e>>2]=K[b+f|0];d=d+4|0;h=h+4|0;if((g|0)!=(h| -0))continue;break}}g=c&3;if(!g)break d;while(1){J[(d<<2)+e>>2]=K[b+d|0];d=d+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}J[(c<<2)+e>>2]=0;if(c>>>0>=1073741808)break b;e:{if(c>>>0<=1){H[a+11|0]=c;break e}b=c|3;if(b>>>0>=1073741823)break a;d=b+1|0;b=Pb(d<<2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;j=Mb(b,e,a)+a|0,k=0,J[j>>2]=k;Kb(e)}return}dd(a);B()}zd();B()}function UC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-96|0;xb=e;d=J[b+4>>2];f=L[a+98>>1];a:{b:{if(d>>>0>=f>>>0){if(d>>> -0>f>>>0){d=J[a>>2];g=J[a+628>>2];h=J[nd(a,L[b>>1])+16>>2];i=J[b+4>>2];J[e+40>>2]=f;J[e+36>>2]=i;J[e+32>>2]=h;yc(g,d,276005,e+32|0);d=J[b+4>>2]}g=e+48|0;if(d>>>0>=11){g=Sd(a,d,4,280789);if(!g)break b;d=J[b+4>>2]}c:{d:{if((d|0)==1){h=J[b+8>>2];J[g>>2]=h;break d}d=0;if(!xe(a,b,g))break c;h=J[g>>2]}e:{d=J[b+4>>2];i=(d|0)<(f|0)?d:f;if((i|0)<2)break e;d=1;f=1;while(1){if(J[(d<<2)+g>>2]==(h|0)){f=f+1|0;d=f&65535;if(d>>>0<(i&65535)>>>0)continue;break e}break}c=J[a>>2];d=J[a+628>>2];j=e,k=J[nd(a,L[b>>1])+ -16>>2],J[j+16>>2]=k;Ob(d,c,280941,e+16|0);d=0;break c}J[c>>2]=h;d=1}if((e+48|0)==(g|0))break a;Kb(g);break a}c=J[a>>2];d=J[a+628>>2];a=J[nd(a,L[b>>1])+16>>2];b=J[b+4>>2];J[e+8>>2]=f;J[e+4>>2]=b;J[e>>2]=a;yc(d,c,275793,e)}d=0}xb=e+96|0;return d}function N8(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;d=xb-48|0;xb=d;c=J[a+4>>2];J[d+32>>2]=0;e=d+32|0;Ab[J[J[c>>2]+412>>2]](c,e)|0;c=J[a+4>>2];J[d+32>>2]=32;Ab[J[J[c>>2]+308>>2]](c,e)|0;c=J[a+4>>2];J[d+32>>2]=4;Ab[J[J[c>>2]+308>>2]](c,e)| -0;c=J[a+4>>2];Ab[J[J[c>>2]+352>>2]](c)|0;f=O[b+8>>3];h=O[a+48>>3];i=O[a+16>>3];O[d+32>>3]=h*O[b>>3]+i;g=f;f=O[a+56>>3];j=O[a+24>>3];O[d+40>>3]=g*f+j;g=O[b+16>>3];O[d+24>>3]=j+f*O[b+24>>3];O[d+16>>3]=i+h*g;c=J[a+4>>2];b=d+40|0;Ab[J[J[c>>2]+316>>2]](c,e,b)|0;c=J[a+4>>2];k=d+24|0;Ab[J[J[c>>2]+320>>2]](c,e,k)|0;c=J[a+4>>2];l=d+16|0;Ab[J[J[c>>2]+320>>2]](c,l,k)|0;c=J[a+4>>2];Ab[J[J[c>>2]+320>>2]](c,l,b)|0;c=J[a+4>>2];Ab[J[J[c>>2]+320>>2]](c,e,b)|0;b=J[a+4>>2];J[d+12>>2]=4;Ab[J[J[b>>2]+312>>2]](b,d+12| -0)|0;b=J[a+4>>2];J[d+12>>2]=32;Ab[J[J[b>>2]+312>>2]](b,d+12|0)|0;a=J[a+4>>2];Ab[J[J[a>>2]+344>>2]](a)|0;xb=d+48|0}function Jy(a,b,c,d){var e=0,f=0,g=0,h=0;g=xb-32|0;xb=g;f=d&2147483647;e=f-1065418752|0;h=f-1082064896|0;a:{if((e|0)==(h|0)&0|e>>>0>>0){f=(d&33554431)<<7|c>>>25;e=0;h=e;c=c&33554431;if(!(!e&(c|0)==16777216?!(a|b):!e&c>>>0<16777216)){e=f+1073741825|0;break a}e=f+1073741824|0;if(c^16777216|a|(b|h))break a;e=(f&1)+e|0;break a}if(!(!c&(f|0)==2147418112?!(a|b):f>>>0<2147418112)){e=((d&33554431)<< -7|c>>>25)&4194303|2143289344;break a}e=2139095040;if(f>>>0>1082064895)break a;e=0;f=f>>>16|0;if(f>>>0<16145)break a;e=d&65535|65536;Ke(g+16|0,a,b,c,e,f-16129|0);Ii(g,a,b,c,e,16257-f|0);a=J[g+8>>2];e=(J[g+12>>2]&33554431)<<7|a>>>25;c=J[g>>2]|(J[g+16>>2]|J[g+24>>2]|(J[g+20>>2]|J[g+28>>2]))!=0;f=J[g+4>>2];b=0;a=a&33554431;if(!(!b&(a|0)==16777216?!(c|f):!b&a>>>0<16777216)){e=e+1|0;break a}if(a^16777216|c|(b|f))break a;e=(e&1)+e|0}xb=g+32|0;return x(2,d&-2147483648|e),C()}function kP(a,b,c){a=a|0;b=b| -0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=K[a+20|0];f=J[a+16>>2];g=J[a+12>>2];a:{b:{if(!fc(b,21476)){b=J[c>>2];if(!b){d=35;break a}d=J[b+116>>2];J[e+8>>2]=d;if(!d){d=cn(b,e+8|0,a);if(d)break a;d=J[e+8>>2];J[b+116>>2]=d;J[b+120>>2]=1}J[c+4>>2]=J[d+8>>2];break b}if(!fc(b,21380)){J[c>>2]=J[J[(g<<2)+16608>>2]+8>>2];break b}if(!fc(b,21396)){J[c>>2]=f;break b}if(!fc(b,21411)){b=J[c>>2];if(!b){d=35;break a}d=J[b+116>>2];J[e+12>>2]=d;if(!d){d=cn(b,e+12|0,a);if(d)break a;d=J[e+12>>2];J[b+116>>2]=d;J[b+ -120>>2]=1}J[c+4>>2]=J[d+12>>2];break b}if(!fc(b,21429)){H[c|0]=d;break b}if(!fc(b,21437)){J[c>>2]=J[a+24>>2];J[c+4>>2]=J[a+28>>2];J[c+8>>2]=J[a+32>>2];J[c+12>>2]=J[a+36>>2];J[c+16>>2]=J[a+40>>2];J[c+20>>2]=J[a+44>>2];J[c+24>>2]=J[a+48>>2];J[c+28>>2]=J[a+52>>2];break b}d=12;if(fc(b,21458))break a;H[c|0]=K[a+21|0]}d=0}xb=e+16|0;return d|0}function Uaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-112|0;xb=d;e=J[a+584>>2];c=J[a+48>>2];if(c&4){J[d+96>>2]=J[e+196>>2];Sc(b,280214,d+96|0);c=J[a+48>>2]}if(c& -8){J[d+80>>2]=J[e+200>>2];Sc(b,280317,d+80|0);c=J[a+48>>2]}if(c&16){Ee(280412,14,1,b);if(K[e+211|0]){c=0;while(1){J[d+64>>2]=J[((c<<2)+e|0)+216>>2];Sc(b,280427,d- -64|0);c=c+1|0;if(c>>>0>2]}if(c&32){Ee(280683,15,1,b);if(K[e+212|0]){c=0;while(1){J[d+48>>2]=J[((c<<2)+e|0)+228>>2];Sc(b,280427,d+48|0);c=c+1|0;if(c>>>0>2]}if(c&64){Ee(280715,15,1,b);if(K[e+213|0]){c=0;while(1){J[d+32>>2]=J[((c<<2)+e|0)+240>>2];Sc(b, -280427,d+32|0);c=c+1|0;if(c>>>0>2]}if(c&128){J[d+16>>2]=K[e+204|0];Sc(b,280861,d+16|0);c=J[a+48>>2]}if(c&256){J[d>>2]=L[e+300>>1];Sc(b,280998,d)}xb=d+112|0}function sh(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;a:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<2)break a;if(!(K[a|0]|K[a+1|0]<<8))return 1;f=J[b+12>>2];c=a+2|0;g=J[b+4>>2];if(f>>>0>>0)break a;h=J[b+8>>2];if((c|0)==(h|0))break a;i=K[c|0];if((i-1&255)>>>0>3)break a;d=a+3|0; -if(d-g>>>0>f>>>0)break a;a=K[a|0]|K[a+1|0]<<8;e=(a<<8|a>>>8)&65535;a=P(e+1|0,i);if(a>>>0>h-d>>>0)break a;j=J[b+16>>2]-a|0;J[b+16>>2]=j;if((j|0)<=0)break a;c=a+c|0;a=0;b:{c:switch(i-1|0){case 0:a=K[d+e|0];break b;case 1:a=(e<<1)+d|0;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535;break b;case 2:a=P(e,3)+d|0;a=K[a+1|0]<<8|K[a|0]<<16|K[a+2|0];break b;case 3:break c;default:break b}a=(e<<2)+d|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}if(h-c>>>0>>0|c-g>>> -0>f>>>0)break a;a=j-a|0;J[b+16>>2]=a;k=(a|0)>0}return k|0}function sga(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;f=xb-32|0;xb=f;j=J[a+420>>2];d=J[a+464>>2];a:{b:{if(J[d+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[d+12>>2]/8|0);J[d+12>>2]=0;g=0;if(!(Ab[J[c+8>>2]](a)|0))break a;if(J[a+336>>2]>0)while(1){J[((e<<2)+d|0)+20>>2]=0;e=e+1|0;if((e|0)>2])continue;break}J[d+16>>2]=0;J[d+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[d+36>>2]=0}J[f+28>>2]=a;c=J[a+24>>2]; -g=J[c>>2];J[f+12>>2]=g;h=J[c+4>>2];J[f+16>>2]=h;e=J[d+12>>2];i=J[d+8>>2];if(J[a+364>>2]>0){j=1<>2];if((e|0)<=0){g=0;if(!Od(f+12|0,i,e,1))break a;i=J[f+20>>2];e=J[f+24>>2]}e=e-1|0;if(i>>>e&1)I[h>>1]=j|L[h>>1];c=c+1|0;if((c|0)>2])continue;break}h=J[f+16>>2];g=J[f+12>>2];c=J[a+24>>2]}J[c+4>>2]=h;J[c>>2]=g;J[d+12>>2]=e;J[d+8>>2]=i;J[d+40>>2]=J[d+40>>2]-1;g=1}xb=f+32|0;return g|0}function Dpa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;b=J[a+20>>2];H[d+8| -0]=0;H[d+9|0]=0;H[d+10|0]=0;H[d+11|0]=0;H[d+12|0]=0;H[d+13|0]=0;H[d+14|0]=0;H[d+15|0]=0;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;H[d+4|0]=0;H[d+5|0]=0;H[d+6|0]=0;H[d+7|0]=0;e=J[b+116>>2];f=J[e+72>>2];g=J[b+120>>2];e=J[e+12>>2];if(e)e=J[e+52>>2];else e=0;g=Ab[f|0](b,g,c,d,e)|0;if(g){f=J[a+20>>2];a:{if(f){b=J[d>>2];c=J[f+28>>2];e=J[a+28>>2];if((c|0)!=(e|0))b=Lpa(Kpa(e,e>>31,b,b>>31),zb,c,c>>31);J[d>>2]=b;b=J[d+4>>2];c=J[f+32>>2];e=J[a+32>>2];if((c|0)!=(e|0))b=Lpa(Kpa(e,e>>31,b,b>>31),zb,c,c>>31);J[d+ -4>>2]=b;e=J[d+8>>2];b=J[f+28>>2];c=J[a+28>>2];if((b|0)!=(c|0))e=Lpa(Kpa(c,c>>31,e,e>>31),zb,b,b>>31);b=d+12|0;J[d+8>>2]=e;c=J[d+12>>2];d=J[f+32>>2];a=J[a+32>>2];if((d|0)==(a|0))break a;c=Lpa(Kpa(a,a>>31,c,c>>31),zb,d,d>>31);break a}b=d+12|0;c=J[d+12>>2]}J[b>>2]=c}return g|0}function tD(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=xb-16|0;xb=h;a:{if(!a){e=33;break a}e=6;if(!d)break a;f=J[a>>2];if(!f)break a;J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;if((c|0)<0|b>>>0>>0)break a;e=10;if(b>>> -0>32767)break a;b:{c:{d:{e:{if(!b){g=d+4|0;e=0;break e}e=b<<3;g=Ab[J[f+4>>2]](f,e)|0;if(!g){e=d+4|0;g=e;break c}i=d,j=Nb(g,0,e),J[i+4>>2]=j;g=d+4|0;e=Ab[J[f+4>>2]](f,b)|0;if(!e)break d;Nb(e,0,b)}J[h+12>>2]=0;J[d+8>>2]=e;i=d,j=Tb(f,2,0,c,0,h+12|0),J[i+12>>2]=j;e=J[h+12>>2];if(e)break b;I[d>>1]=c;I[d+2>>1]=b;J[d+16>>2]=J[d+16>>2]|1;e=0;break a}e=d+8|0}J[e>>2]=0;e=64}J[d+16>>2]=J[d+16>>2]|1;a=J[a>>2];if(!a)break a;b=J[g>>2];if(b)Ab[J[a+8>>2]](a,b);J[d+4>>2]=0;b=J[d+8>>2];if(b)Ab[J[a+8>>2]](a,b);J[d+ -8>>2]=0;b=J[d+12>>2];if(b)Ab[J[a+8>>2]](a,b);J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0}xb=h+16|0;return e}function Vl(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(a){d=I[a+56>>1];I[a+20>>1]=d+L[a+20>>1];b=L[a+22>>1];I[a+22>>1]=b+L[a+58>>1];h=J[a+48>>2]+J[a+84>>2]|0;J[a+48>>2]=h;a:{if((d|0)<=0)break a;f=J[a+68>>2];if(d>>>0>=4){k=d&-4;while(1){c=g<<1;e=c+f|0;I[e>>1]=b+L[e>>1];e=f+(c|2)|0;I[e>>1]=b+L[e>>1];e=f+(c|4)|0;I[e>>1]=b+L[e>>1];c=f+(c|6)|0;I[c>>1]=b+L[c>>1];g=g+4|0;i=i+ -4|0;if((k|0)!=(i|0))continue;break}}d=d&3;if(!d)break a;while(1){c=f+(g<<1)|0;I[c>>1]=b+L[c>>1];g=g+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}}J[a+84>>2]=0;J[a+56>>2]=0;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;c=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[c>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;if(K[a+16|0]){b=I[a+22>>1]<<3;J[a+76>>2]=b+J[a+40>>2];J[a+80>>2]=b+J[a+44>>2]}b=a;a=J[a+52>>2];J[b+88>>2]=a?a+(h<<5)|0:0}}function pt(a,b,c,d, -e){var f=0,g=0,h=Q(0),i=0,j=Q(0),k=0,l=0,m=0,n=0,o=0;f=K[a+2|0]|K[a+3|0]<<8;if(((f<<8|f>>>8)&65535)>>>0<=b>>>0)return Q(0);a:{if(e){k=(b<<2)+e|0;h=N[k>>2];if(h!=Q(2))break a}f=K[a|0]|K[a+1|0]<<8;b:{c:{if(!f){h=Q(1);break c}g=a;a=(f<<8|f>>>8)&65535;l=(g+P(P(a,b),6)|0)+4|0;m=a>>>0<=1?1:a;h=Q(1);a=0;while(1){b=0;b=a>>>0>>0?J[(a<<2)+c>>2]:b;j=Q(1);d:{f=P(a,6)+l|0;g=K[f+2|0]|K[f+3|0]<<8;if(!g)break d;g=(g<<8|g>>>8)<<16>>16;if((g|0)==(b|0))break d;i=K[f|0]|K[f+1|0]<<8;i=(i<<8|i>>>8)<<16>>16;if((i|0)> -(g|0))break d;f=K[f+4|0]|K[f+5|0]<<8;f=(f<<8|f>>>8)<<16>>16;if((f|0)<(g|0)|(i|0)<0&(f|0)>0)break d;if(!((b|0)<=(i|0)|(b|0)>=(f|0))){n=b-i|0;o=f-b|0;b=(b|0)<(g|0);j=Q(Q((b?n:o)|0)/Q((b?g-i|0:f-g|0)|0));if(j!=Q(0))break d}h=Q(0);if(e)break b;break a}h=Q(h*j);a=a+1|0;if((m|0)!=(a|0))continue;break}}if(!e)break a}N[k>>2]=h}return h}function QH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(J[b+8>>2]==(a|0)|M[b+12>>2]>2]>>>0)break a;b:{c:switch(K[a|0]){case 0:d=J[b+40>>2];if(c)J[c>>2]=d;c= -d-1|0;if((c|0)<0)break a;a=a+1|0;if(M[b+12>>2]>2]>>>0)break a;d=J[b+8>>2]-a|0;a=c<<1;if(d>>>0>>0)break a;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0|0;case 1:d=J[b+40>>2]-1|0;if(d){f=a+1|0;while(1){a=f+P(e,3)|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<3)break a;a=K[a+2|0];if(a>>>0>=d>>>0)break a;e=e+1|0;d=(a^-1)+d|0;if(d)continue;break}}if(!c)break b;J[c>>2]=e;break b;case 2:break c;default:break a}d=J[b+40>>2]-1|0;if(d){f=a+1|0;while(1){a=f+(e<<2)|0;if(M[b+12>>2]>2]>>>0| -J[b+8>>2]-a>>>0<4)break a;a=K[a+2|0]|K[a+3|0]<<8;a=(a<<8|a>>>8)&65535;if(a>>>0>=d>>>0)break a;e=e+1|0;d=(a^-1)+d|0;if(d)continue;break}}if(!c)break b;J[c>>2]=e}g=1}return g|0}function xla(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=h|0;a=J[b+16>>2];a:{if(!a){J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;h=776480;break a}h=(J[b+20>>2]+P(a,20)|0)-20|0}c=J[b+28>>2];b:{if(!c){J[194124]=J[42448];a=J[42447];J[194122]=J[42446]; -J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break b}a=(J[b+32>>2]+P(c,20)|0)-20|0}c:{d:switch(J[h>>2]){case 0:J[a>>2]=0;return;case 1:break d;default:break c}e:switch(J[a>>2]-1|0){case 1:b=J[h+4>>2];J[a>>2]=J[h>>2];J[a+4>>2]=b;J[a+16>>2]=J[h+16>>2];b=J[h+12>>2];J[a+8>>2]=J[h+8>>2];J[a+12>>2]=b;return;case 0:break e;default:break c}d=N[a+4>>2];e=N[h+4>>2];N[a+4>>2]=d<=e?d:e;d=N[a+8>>2];e=N[h+8>>2];N[a+8>>2]=d<=e?d:e;d=N[a+12>>2];e=N[h+12>>2];N[a+12>>2]=d>=e?d:e;d=N[a+16>>2];e=N[h+ -16>>2];N[a+16>>2]=d>=e?d:e}}function kD(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;g=xb-32|0;xb=g;J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;i=ac(c);if(d)j=ac(d);if(e)k=ac(e);a:{if(!f){f=Sn(a,0,0,b-2|0,g);break a}f=Sn(a,f,ac(f),b-2|0,g)}b:{if(a){J[a+744>>2]=34;H[g+28|0]=105;H[g+29|0]=84;H[g+30|0]=88;H[g+31|0]=116;h=(f+((j+i|0)+k|0)|0)+5|0;H[g+27|0]=h;H[g+26|0]=h>>>8;H[g+25|0]=h>>>16;H[g+24|0]=h>>>24;Wc(a,g+24|0,8);J[a+348>>2]=1767135348;dg(a);Fc(a,g+28|0,4);J[a+744>>2]=66;c:{if(!c)break c;h=i+1|0; -if(!h)break c;Wc(a,c,h);Fc(a,c,h)}H[g+23|0]=0;H[g+22|0]=(b+1&-3)!=0;b=g+22|0;Wc(a,b,2);Fc(a,b,2);H[g+22|0]=0;c=j+1|0;if(c){b=d?d:b;Wc(a,b,c);Fc(a,b,c)}b=k+1|0;if(b){c=e?e:g+22|0;Wc(a,c,b);Fc(a,c,b)}Cl(a,g,f);J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[g+24|0]=b;H[g+25|0]=b>>>8;H[g+26|0]=b>>>16;H[g+27|0]=b>>>24;Wc(a,g+24|0,4);break b}Cl(0,g,f)}xb=g+32|0}function xJ(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=xb-208|0;xb=e;J[e+204>>2]=0;c=J[a>>2];b=J[J[c+712>>2]+ -3080>>2];c=be(J[J[c+96>>2]+4>>2],11010);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;h=Ab[b|0](c)|0;if(!h)break a;b=J[a>>2];f=J[b+712>>2];c=J[b+100>>2];b=tc(c,1028,e+204|0);b:{c:{if(J[e+204>>2])break c;d=e+8|0;mu(f+1372|0,d);d=Ab[J[h>>2]](J[J[a>>2]+100>>2],d,b)|0;J[e+204>>2]=d;if(d)break c;d=J[f+2024>>2];while(1){if(!d)break b;d=d-1|0;g=d<<2;i=e+8|0;mu(J[(g+f|0)+2028>>2],i);g=Ab[J[h>>2]](J[J[a>>2]+100>>2],i,(b+g|0)+4|0)|0;J[e+204>>2]=g;if(!g)continue;break}}if(b){a=J[f+2024>>2];if(a)while(1){a=a-1| -0;f=b+(a<<2)|0;d=J[f+4>>2];if(d)Ab[J[c+8>>2]](c,d);J[f+4>>2]=0;if(a)continue;break}a=J[b>>2];if(a)Ab[J[c+8>>2]](c,a);J[b>>2]=0}if(b)Ab[J[c+8>>2]](c,b);j=J[e+204>>2];break a}J[J[a+40>>2]>>2]=b;J[a+44>>2]=-1}xb=e+208|0;return j|0}function JF(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=J[a+2744>>2];l=i&4;f=64;a:{if(l)break a;f=(e|0)==1?55:49;if(!(!(H[b+12|0]&1)|!(H[c+12|0]&1)))break a;f=(e|0)==1?61:59}m=J[c+4>>2];n=J[b+4>>2];j=vo(i,J[a+2748>>2],e,m-n|0);b:{c:{d:{e:{i=(((m+n|0)/2|0)+d|0)+((j| -0)/-2|0)|0;a=i&63;f:{if(!a)break f;g=j+i&63;if(!g)break f;d=64-a|0;if((f|0)>=(j|0)){if((g|0)>=(j|0))break f;if(d>>>0<=g>>>0)break c;h=0-g|0;break f}if(!l)if(a>>>0>=f>>>0|d>>>0>=f>>>0|(f>>>0<=g>>>0|f>>>0<=64-g>>>0))break f;k=j&63;if(k>>>0>31)break e;if(d>>>0<=k>>>0)break f;if(g>>>0>k>>>0)break d}a=(h|0)<=-14?-14:h;break b}k=64-f|0}e=d-k|0;a=f-d|0;h=(a|0)>(e|0)?e:0-a|0;e=h>>31;d=f-g|0;a=g-k|0;d=(a|0)>(d|0)?d:0-a|0;a=d>>31;d=(e^h)-e>>>0>(a^d)-a>>>0?d:h}h=d;a=(d|0)<=-14?-14:d;a=(a|0)>=14?14:a}d=l?h:a; -f=d+i|0;e=f+j|0;a=(m|0)>(n|0);J[b+8>>2]=a?f:e;J[c+8>>2]=a?e:f;return d}function ko(a,b,c,d){var e=0,f=0,g=0;a:{b:{c:{d:{e:{f:switch(b-1|0){case 0:if(J[d>>2])break d;b=0;break c;case 1:if(J[d>>2])break e;b=0;break c;case 7:case 15:case 31:break a;case 3:break f;default:break b}b=0;if(!J[d>>2])break c;b=c;while(1){H[b|0]=K[a|0]>>>4;H[b+1|0]=K[a|0]&15;a=a+1|0;b=b+2|0;e=e+1|0;f=e?f:f+1|0;g=J[d>>2];if(!f&g>>>0>e>>>0)continue;break}b=g<<1;break c}b=c;while(1){H[b|0]=K[a|0]>>>6;H[b+1|0]=K[a|0]>>>4&3;H[b+ -2|0]=K[a|0]>>>2&3;H[b+3|0]=K[a|0]&3;a=a+1|0;b=b+4|0;e=e+1|0;f=e?f:f+1|0;g=J[d>>2];if(!f&g>>>0>e>>>0)continue;break}b=g<<2;break c}b=c;while(1){H[b|0]=K[a|0]>>>7;H[b+1|0]=K[a|0]>>>6&1;H[b+2|0]=K[a|0]>>>5&1;H[b+3|0]=K[a|0]>>>4&1;H[b+4|0]=K[a|0]>>>3&1;H[b+5|0]=K[a|0]>>>2&1;H[b+6|0]=K[a|0]>>>1&1;H[b+7|0]=H[a|0]&1;a=a+1|0;b=b+8|0;e=e+1|0;f=e?f:f+1|0;g=J[d>>2];if(!f&g>>>0>e>>>0)continue;break}b=g<<3}J[d>>2]=b}a=c}return a}function rr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=gh(g, -c,11507);if(!f)return 64;a:{b=J[a>>2];a=Ab[J[b+4>>2]](b,40)|0;if(!a){c=64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29|0]=0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]=0;H[a+35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]=0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0; -H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=pl(a,f);J[a+16>>2]=f;if(c){Ab[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=Yi(a,333319,e);b=J[a+28>>2];e=J[a+24>>2];if(e)Ab[e|0](a);Ab[J[b+8>>2]](b,a);if(c)break a;J[d>>2]=f;return 0}Ab[J[g+8>>2]](g,f);return c|0}function qr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=gh(g,c,12024);if(!f)return 64;a:{b=J[a>>2];a=Ab[J[b+4>>2]](b,40)|0;if(!a){c=64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29| -0]=0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]=0;H[a+35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]=0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=pl(a,f);J[a+16>>2]=f;if(c){Ab[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=Yi(a,333319,e);b= -J[a+28>>2];e=J[a+24>>2];if(e)Ab[e|0](a);Ab[J[b+8>>2]](b,a);if(c)break a;J[d>>2]=f;return 0}Ab[J[g+8>>2]](g,f);return c|0}function pr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=gh(g,c,12096);if(!f)return 64;a:{b=J[a>>2];a=Ab[J[b+4>>2]](b,40)|0;if(!a){c=64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29|0]=0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]= -0;H[a+35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]=0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=pl(a,f);J[a+16>>2]=f;if(c){Ab[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=Yi(a,333319,e);b=J[a+28>>2];e=J[a+24>>2];if(e)Ab[e|0](a);Ab[J[b+8>>2]](b,a);if(c)break a;J[d>>2]=f;return 0}Ab[J[g+8>>2]](g,f);return c|0}function mla(a,b,c,d,e){a=a| -0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{d:{a=b-44032|0;if(!(a>>>0>11171|c-4520>>>0>26)){if(((a&65535)>>>0)%28|0)break d;b=(b+c|0)-4519|0;break a}if(!(b-4352>>>0>18|c-4449>>>0>20)){b=(P(b,588)+P(c,28)|0)-2639516|0;break a}if((c&-128)!=768|b>>>0>2047)break d;a=c<<14&2080768|b<<21;b=637;c=0;while(1){e:{e=b+c>>>1|0;h=J[(e<<2)+208112>>2];g=h&-16384;f:{if(a>>>0>>0){b=e-1|0;break f}if(a>>>0<=g>>>0)break e;c=e+1|0}if((b|0)>=(c|0))continue;break b}break}b=h&16383;break c}a=c>>>11|0;h=c<< -21;e=b<<10|a;b=387;c=0;while(1){g:{g=b+c>>>1|0;f=(g<<3)+210672|0;a=J[f>>2];f=J[f+4>>2]&2147483647;i=a&-2097152;h:{if((f|0)==(e|0)&i>>>0>h>>>0|e>>>0>>0){b=g-1|0;break h}if((e|0)==(f|0)&h>>>0<=i>>>0|e>>>0>>0)break g;c=g+1|0}if((b|0)>=(c|0))continue;break b}break}b=a&2097151}if(b)break a}return 0}J[d>>2]=b;return 1}function Yea(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;k=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<=0)break a;g=J[a+28>>2];h=(k<<1)-g|0;if((h| -0)<=0)break a;b=0;if(e>>>0>=4){m=e&-4;while(1){f=b<<2;i=g+J[f+c>>2]|0;Nb(i,K[i-1|0],h);i=g+J[(f|4)+c>>2]|0;Nb(i,K[i-1|0],h);i=g+J[(f|8)+c>>2]|0;Nb(i,K[i-1|0],h);f=g+J[(f|12)+c>>2]|0;Nb(f,K[f-1|0],h);b=b+4|0;l=l+4|0;if((m|0)!=(l|0))continue;break}}e=e&3;if(e)while(1){f=g+J[(b<<2)+c>>2]|0;Nb(f,K[f-1|0],h);b=b+1|0;j=j+1|0;if((e|0)!=(j|0))continue;break}e=J[a+272>>2]}if(!(!k|(e|0)<=0)){h=k&-2;f=k&1;j=0;while(1){e=j<<2;b=J[e+c>>2];e=J[d+e>>2];g=0;if((k|0)!=1)while(1){H[e|0]=K[b|0]+K[b+1|0]>>>1;H[e+1|0]= -(K[b+2|0]+K[b+3|0]|0)+1>>>1;b=b+4|0;e=e+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}if(f)H[e|0]=K[b|0]+K[b+1|0]>>>1;j=j+1|0;if((j|0)>2])continue;break}}}function Xc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=J[a+608>>2];if((b|0)>0){c=J[a+12>>2];if(!(c&(L[a+94>>1]|256))){ur(J[a+596>>2],b);c=J[a+12>>2];b=J[a+608>>2]}i=J[a+596>>2];f=xb-32|0;xb=f;c=J[(c&1024?504:480)+a>>2];d=c<<2;e=J[d+J[a+184>>2]>>2];a:{if(!(J[a+484>>2]?e:0)){g=J[a+628>>2];h=J[a+640>>2];b:{c:{if(!e)break c;d=J[d+J[a+188>>2]>>2]; -if(d>>>0>>0|!d)break c;d=0;e=Ab[h|0](g,e,0)|0;if((e|0)==J[J[a+184>>2]+(c<<2)>>2])break b;b=J[a+628>>2];J[f+16>>2]=J[a+472>>2];Ob(b,284144,271252,f+16|0);break a}e=Ab[h|0](g,0,2)|0;J[J[a+184>>2]+(c<<2)>>2]=e}J[a+484>>2]=e;J[J[a+188>>2]+(c<<2)>>2]=0}if((Ab[J[a+636>>2]](J[a+628>>2],i,b)|0)!=(b|0)){b=J[a+628>>2];J[f>>2]=J[a+472>>2];Ob(b,284144,271559,f);d=0;break a}J[a+484>>2]=J[a+484>>2]+b;c=J[a+188>>2]+(c<<2)|0;J[c>>2]=J[c>>2]+b;d=1}xb=f+32|0;if(!d)return 0;J[a+608>>2]=0;J[a+604>>2]=J[a+596>>2]}return 1} -function NU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[a>>2]=0;J[a+4>>2]=0;J[a+56>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=J[b>>2];a:{if(c){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=b+69|0;e=b+68|0;b=b+70|0;break a}J[a+ -4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=b+66|0;e=b+65|0;f=K[b+64|0];b=b+67|0}e=K[e|0];d=K[d|0];b=K[b|0];g=J[7609];J[a+52>>2]=J[7608];J[a+56>>2]=g;H[a+48|0]=c;H[a+47|0]=b;H[a+46|0]=d;H[a+45|0]=e;H[a+44|0]=f}function GO(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;a:{h=J[a+4>>2];k=0-h|0;g=k&(c+h|0)-1;i=d&k;b:{if((g|0)<= -(i|0)){c=J[a>>2];b=g;break b}if((h+i|0)!=(g|0))break a;j=i;c:{d:{e:{l=L[e+12>>1];m=l&7;switch(m|0){case 0:break c;case 1:case 5:break d;case 4:break e;default:break a}}j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k;break c}if(!(J[e+28>>2]!=(f|0)|J[e+16>>2]>0)&(!(l&16)|J[a+8>>2]>(d-c|0))|!(J[f+28>>2]!=(e|0)|J[e+20>>2]!=(b|0))&(!(l&32)|J[a+8>>2]>(d-c|0)))break a;if((m|0)==1)break c;j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k}c=J[a>>2];b=g;b=(j|0)>=0?L[a+52>>1]>j>>>c>>>0?j:i:b;d=((g|0)==(b|0)?i:g)>>c;if((d|0)<0|d>>>0>=L[a+ -52>>1])break b;if(K[(J[a+56>>2]+J[a+140>>2]|0)+(d<<13>>16)|0]<<(d&7)&128)break a}b=b>>c;if((b|0)<0|b>>>0>=L[a+52>>1])break a;a=(J[a+56>>2]+J[a+140>>2]|0)+(b>>>3&65535)|0;H[a|0]=K[a|0]|128>>>(b&7)}}function gv(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,p=0;a:{if((a|0)>(b|0))break a;g=J[(c<<3)+e>>2]>J[(d<<3)+e>>2];k=g?c:d;h=k<<3;i=J[h+f>>2];l=g?d:c;c=l<<3;j=J[c+f>>2];h=J[e+h>>2];g=J[c+e>>2];if(!((h|0)==(g|0)&(i|0)!=(j|0))){if((g|0)!=(h|0))m=dc(i-j|0,h-g|0);o=i-h|0;p=j-g|0;c=a;while(1){d=c; -n=c<<3;c=J[n+e>>2];b:{if((c|0)<=(g|0)){i=c+p|0;break b}i=c+o|0;if((c|0)>=(h|0))break b;i=Rb(c-g|0,m)+j|0}J[f+n>>2]=i;c=d+1|0;if((b|0)!=(d|0))continue;break}}h=f+4|0;e=e+4|0;d=J[e+(l<<3)>>2]>J[e+(k<<3)>>2];g=(d?l:k)<<3;c=J[h+g>>2];d=(d?k:l)<<3;f=J[d+h>>2];g=J[e+g>>2];d=J[d+e>>2];if((g|0)==(d|0)&(c|0)!=(f|0))break a;k=0;if((d|0)!=(g|0))k=dc(c-f|0,g-d|0);i=c-g|0;l=f-d|0;while(1){c=a;m=c<<3;a=J[m+e>>2];c:{if((a|0)<=(d|0)){j=a+l|0;break c}j=a+i|0;if((a|0)>=(g|0))break c;j=Rb(a-d|0,k)+f|0}J[h+m>>2]=j;a= -c+1|0;if((b|0)!=(c|0))continue;break}}}function DO(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;a:{h=J[a+4>>2];k=0-h|0;g=k&(c+h|0)-1;i=d&k;b:{if((g|0)<=(i|0)){c=J[a>>2];d=g;break b}if((h+i|0)!=(g|0))break a;j=i;c:{d:{e:{l=L[e+12>>1];m=l&7;switch(m|0){case 0:break c;case 1:case 5:break d;case 4:break e;default:break a}}j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k;break c}if(!(J[e+28>>2]!=(f|0)|J[e+16>>2]>0)&(!(l&16)|J[a+8>>2]>(d-c|0))|!(J[f+28>>2]!=(e|0)|J[e+20>>2]!=(b|0))& -(!(l&32)|J[a+8>>2]>(d-c|0)))break a;if((m|0)==1)break c;j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k}c=J[a>>2];d=g;d=(j|0)>=0?M[a+96>>2]>j>>>c>>>0?j:i:d;e=((g|0)==(d|0)?i:g)>>c;if((e|0)<0|e>>>0>=M[a+96>>2])break b;if(K[(J[a+56>>2]+(b>>3)|0)-P(e,J[a+104>>2])|0]&128>>>(b&7))break a}c=d>>c;if((c|0)<0|c>>>0>=M[a+96>>2])break a;a=(J[a+56>>2]+(b>>3)|0)-P(c,J[a+104>>2])|0;H[a|0]=K[a|0]|128>>>(b&7)}}function qO(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;d=J[b>>2]+1|0;a:{if(d>>>0>65535)break a; -a=J[a+16>>2];i=a+518|0;j=a+6|0;while(1){b:{e=d>>>0>255;c:{d:{e:{if(!e){c=(d<<1&510)+j|0;a=i;if(!(K[c|0]<<8|K[c+1|0]))break e;break d}a=(d>>>7&33554430)+j|0;a=K[a|0]<<8|K[a+1|0]&248;if(!a)break d;a=a+i|0}c=a;a=K[c+1|0]|K[c|0]<<8;g=K[c+3|0]|K[c+2|0]<<8;f=d&255;h=K[c+6|0];k=K[c+7|0];l=K[c+4|0];m=K[c+5|0];if(!e){e=256;if(f>>>0>=a+g>>>0)break c}h=h<<8|k;if(!h){if((d|0)!=256)break d;break b}e=(d&-256)+(a>>>0>>0?f:a)|0;a=f-a|0;a=a>>>0<=f>>>0?a:0;if(g>>>0>a>>>0){f=l<<8|m;d=((c+6|0)+h|0)+(a<<1)|0;while(1){c= -K[d+1|0]|K[d|0]<<8;if(c){c=c+f&65535;if(c)break a}d=d+2|0;e=e+1|0;a=a+1|0;if(g>>>0>a>>>0)continue;break}}d=e-((g|0)!=0)|0}e=d>>>0<256?d+1|0:(d&-256)+256|0}d=e;if(d>>>0<65536)continue}break}e=0;c=0}J[b>>2]=e;return c|0}function zla(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=Q(0),g=Q(0);a=J[b+16>>2];a:{if(!a){J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;d=776480;break a}d=(J[b+20>>2]+P(a,20)|0)-20|0}c=J[b+28>>2];b:{if(!c){J[194124]=J[42448]; -a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;a=776480;break b}a=(J[b+32>>2]+P(c,20)|0)-20|0}c:{d:switch(J[d>>2]){case 0:J[a>>2]=0;return;case 1:break d;default:break c}e:switch(J[a>>2]-1|0){case 1:b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+16>>2]=J[d+16>>2];b=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=b;return;case 0:break e;default:break c}f=N[a+4>>2];g=N[d+4>>2];N[a+4>>2]=f<=g?f:g;f=N[a+8>>2];g=N[d+8>>2];N[a+8>>2]=f<=g?f:g;f=N[a+12>>2];g=N[d+12>>2];N[a+12>> -2]=f>=g?f:g;f=N[a+16>>2];g=N[d+16>>2];N[a+16>>2]=f>=g?f:g}}function qV(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;i=J[b+24>>2];if(i>>>0>M[b+44>>2])J[b+44>>2]=i;i=-1;m=-1;j=f&24;a:{if(!j|(e|0)==1&(j|0)==24)break a;j=J[b+44>>2];if(j){g=b+32|0;if(K[g+11|0]>>>7|0)g=J[g>>2];g=j-g|0;k=g>>31}b:{c:switch(e|0){case 1:if(f&8){h=J[b+12>>2]-J[b+8>>2]|0;l=h>>31;break b}h=J[b+24>>2]-J[b+20>>2]|0;l=h>>31;break b;case 0:break b;case 2:break c;default:break a}h=g;l=k}d=d+l|0; -c=c+h|0;d=h>>>0>c>>>0?d+1|0:d;if((d|0)<0|(c>>>0>g>>>0&(d|0)>=(k|0)|(d|0)>(k|0)))break a;e=f&8;d:{if(!(c|d))break d;if(J[b+12>>2]?0:e)break a;if(!(f&16))break d;if(!J[b+24>>2])break a}if(e){e=J[b+8>>2];J[b+16>>2]=J[b+44>>2];J[b+12>>2]=c+e;J[b+8>>2]=e}if(f&16){e=J[b+20>>2];J[b+28>>2]=J[b+28>>2];J[b+20>>2]=e;J[b+24>>2]=e;J[b+24>>2]=c+J[b+24>>2]}i=c;m=d}J[a+8>>2]=i;J[a+12>>2]=m;J[a>>2]=0;J[a+4>>2]=0}function Rla(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=vc(1,8);a:{if(d){c=J[a+44>>2];b=0;b:{if((c|0)<=0)break b; -e=J[a+48>>2];b=c-1|0;c:{while(1){c=b+f>>>1|0;g=J[P(c,36)+e>>2];d:{if(g>>>0>=1919969383){b=c-1|0;break d}if((g|0)==1919969382)break c;f=c+1|0}if((b|0)>=(f|0))continue;break}b=0;break b}b=J[(P(c,36)+e|0)+28>>2]}J[d>>2]=b;b=J[a+4>>2];e:{if((b|0)<=1333094257){if((b|0)<=1298230883){if((b|0)==1097100397|(b|0)==1098015074|(b|0)==1130918515)break e;break a}f:switch(b-1298230884|0){case 1:case 2:case 3:case 4:break a;case 0:case 5:break e;default:break f}if((b|0)==1299148391|(b|0)==1315663727)break e;break a}if((b| -0)<=1383032934){if((b|0)==1333094258|(b|0)==1349017959|(b|0)==1349020784)break e;break a}if((b|0)==1383032935|(b|0)==1400468067)break e;if((b|0)!=1399809892)break a}a=jG(a);J[d+4>>2]=a;if(a)break a;Kb(d)}d=0}return d|0}function N7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(J[b+116>>2]+J[b+108>>2]|0)+84|0;J[e+12>>2]=d;J[e+8>>2]=77;J[a+8>>2]=d+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+ -4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);Lb(J[a+4>>2],b+20|0,4);Lb(J[a+4>>2],b+24|0,4);Lb(J[a+4>>2],b+28|0,4);Lb(J[a+4>>2],b+32|0,4);Lb(J[a+4>>2],b+36|0,4);Lb(J[a+4>>2],b+40|0,4);tl(a,b+48|0);Lb(J[a+4>>2],b+96|0,1);Lb(J[a+4>>2],b+97|0,1);Lb(J[a+4>>2],b+98|0,1);Lb(J[a+4>>2],b+99|0,1);Lb(J[a+4>>2],b+100|0,4);Lb(J[a+4>>2],b+104|0,4);Lb(J[a+4>>2],b+108|0,4);Lb(J[a+4>>2],b+112|0,4);Lb(J[a+4>>2],b+116|0,4);Lb(J[a+4>>2],b+120|0,4);Lb(J[a+4>>2],b+124|0,4);d=J[b+108>>2];if(d)Lb(J[a+4>>2],J[c+8>>2],d);d=J[b+ -116>>2];if(d)Lb(J[a+4>>2],J[c+8>>2]+J[b+108>>2]|0,d);xb=e+16|0}function MT(a,b,c,d,e,f,g,h,i){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;var j=0;a=Nb(a,0,1516);j=xf(J[b+96>>2],23740,1);if(!j)return 7;H[a+68|0]=1;J[a+64>>2]=0;J[a+1348>>2]=j;J[a+8>>2]=d;J[a+4>>2]=b;J[a>>2]=J[b+100>>2];a:{if(!d)break a;j=J[J[d+156>>2]>>2];J[a+12>>2]=j;J[a+20>>2]=j+56;J[a+16>>2]=j+20;lh(j);c=J[J[c+40>>2]>>2];J[a+72>>2]=0;J[a+76>>2]=c;if(!g)break a;J[a+72>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;c= -J[7611];J[a+80>>2]=J[7610];J[a+84>>2]=c;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;c=J[7613];J[a+88>>2]=J[7612];J[a+92>>2]=c;c=J[7615];J[a+96>>2]=J[7614];J[a+100>>2]=c;c=J[7617];J[a+104>>2]=J[7616];J[a+108>>2]=c;J[a+1352>>2]=J[b+16>>2];J[a+1472>>2]=h;J[a+1356>>2]=e;J[a+1476>>2]=i;J[a+1468>>2]=f;b=J[7619];J[a+1480>>2]=J[7618];J[a+1484>>2]=b;b=J[7621];a=a+1488|0;J[a>>2]=J[7620];J[a+4>>2]=b;return 0}function eT(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;d=xb-16|0;xb=d;if(K[a+11|0]>>> -7|0)g=J[a+4>>2];else g=K[a+11|0]&127;e=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;h=c-b|0;a:{if(!h)break a;b:{if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(f>>>0<=b>>>0){if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(K[a+11|0]>>>7|0)i=J[a+4>>2];else i=K[a+11|0]&127;f=f+i>>>0>=b>>>0}else f=0;if(!f){if(e-g>>>0>>0)Lp(a,e,(g-e|0)+h|0,g,g);if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;e=f+g|0;while(1){if((b|0)==(c|0))break b;H[e|0]=K[b|0];b=b+1|0;e=e+1|0;continue}}e=xb-16|0;xb=e;qy(d,b,c);xb=e+16|0;b=d;if(K[d+11|0]>>> -7|0)b=J[d>>2];if(K[d+11|0]>>>7|0)c=J[d+4>>2];else c=K[d+11|0]&127;J[195395]=0;aa(3700,a|0,b|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){Yb(d);break a}a=Z()|0;Yb(d);ba(a|0);B()}H[d+15|0]=0;H[e|0]=K[d+15|0];sg(a,g+h|0)}xb=d+16|0;return a|0}function uj(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=xb-48|0;xb=h;J[d>>2]=0;J[c>>2]=0;e=J[a+116>>2];f=J[e+56>>2];g=J[a+120>>2];e=J[e+12>>2];if(e)e=J[e+36>>2];else e=0;a:{if(Ab[f|0](a,g,b,c,d,e)|0)break a;J[d>>2]=0;J[c>>2]=0;e=J[a+116>>2];f=J[e+60>>2];g=J[a+120>>2]; -e=J[e+12>>2];if(e)e=J[e+40>>2];else e=0;if(!(Ab[f|0](a,g,b,c,d,e)|0))break a;e=J[a+116>>2];f=J[e+40>>2];g=J[a+120>>2];e=J[e+12>>2];if(e)e=J[e+20>>2];else e=0;f=Ab[f|0](a,g,b,e)|0;b=h;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;e=J[a+116>>2];g=J[e+20>>2];f=(f|0)/-2|0;j=J[a+120>>2];e=J[e+12>>2];if(e)e=J[e>>2];else e=0;b:{if(Ab[g|0](a,j,b,e)|0){a=J[h>>2];break b}i=+J[a+32>>2]*.8;if(R(i)<2147483648){a= -~~i;break b}a=-2147483648}J[c>>2]=f+J[c>>2];J[d>>2]=J[d>>2]-a}xb=h+48|0}function zo(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;if(b)H[b|0]=K[b|0]|(K[a|0]|K[a+1|0]<<8)!=0;b=169776;i=J[d+12>>2];h=J[d+4>>2];a:{if(i>>>0>>0)break a;g=J[d+8>>2];if(g-a>>>0<2)break a;e=K[a|0]|K[a+1|0]<<8;b:{if(!e)break b;e=((e<<8|e>>>8)&65535)+c|0;f=e+4|0;c:{if(i>>>0>>0|g-f>>>0<2)break c;f=K[f|0]|K[f+1|0]<<8;f=(f<<8|f>>>8)&65535;if(f-1>>>0>=3){if((f|0)!=32768)break b;if(i>>>0>>0|g-e>>>0<=5)break c;break b}if(i>>>0>>0)break c;h=6;i=g-e|0;if(i>>>0<6)break c;g=K[e|0]|K[e+1|0]<<8;g=(g<<8|g>>>8)&65535;e=K[e+2|0]|K[e+3|0]<<8;e=(e<<8|e>>>8)&65535;if(g>>>0<=e>>>0){h=(e-g>>>4-f<<1)+8|0;if(i>>>0>>0)break c}e=J[d+16>>2]-h|0;J[d+16>>2]=e;if((e|0)>0)break b}e=J[d+32>>2];if(e>>>0>31)break a;J[d+32>>2]=e+1;if(!K[d+28|0])break a;H[a|0]=0;H[a+1|0]=0}a=K[a|0]|K[a+1|0]<<8;if(!a)break a;b=((a<<8|a>>>8)&65535)+c|0}return b}function vu(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=xb-48|0;xb=h;J[d>>2]=0;J[c>>2]=0;e=J[a+116>>2];f= -J[e+60>>2];g=J[a+120>>2];e=J[e+12>>2];if(e)e=J[e+40>>2];else e=0;a:{if(Ab[f|0](a,g,b,c,d,e)|0)break a;J[d>>2]=0;J[c>>2]=0;e=J[a+116>>2];f=J[e+56>>2];g=J[a+120>>2];e=J[e+12>>2];if(e)e=J[e+36>>2];else e=0;if(!(Ab[f|0](a,g,b,c,d,e)|0))break a;e=J[a+116>>2];f=J[e+40>>2];g=J[a+120>>2];e=J[e+12>>2];if(e)e=J[e+20>>2];else e=0;f=Ab[f|0](a,g,b,e)|0;b=h;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;e=J[a+ -116>>2];g=J[e+20>>2];f=(f|0)/2|0;j=J[a+120>>2];e=J[e+12>>2];if(e)e=J[e>>2];else e=0;b:{if(Ab[g|0](a,j,b,e)|0){a=J[h>>2];break b}i=+J[a+32>>2]*.8;if(R(i)<2147483648){a=~~i;break b}a=-2147483648}J[c>>2]=f+J[c>>2];J[d>>2]=a+J[d>>2]}xb=h+48|0}function bH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=J[b+12>>2];d=J[b+4>>2];a:{if(e>>>0>>0)break a;f=J[b+8>>2];if(f-a>>>0<6)break a;c=K[a+2|0]|K[a+3|0]<<8;if(!c)break a;g=a+6|0;if(e>>>0>>0)break a;c=(c<<8|c>>>8)&65535;d=c<<1;if(d>>>0>f-g>>>0)break a;d=J[b+16>> -2]-d|0;J[b+16>>2]=d;if((d|0)<=0)break a;f=c>>>0<=1?1:c;d=0;while(1){c=g+(d<<1)|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;e=K[c|0]|K[c+1|0]<<8;b:{if(!e)break b;if(Ld(b,((e<<8|e>>>8)&65535)+a|0))break b;e=J[b+32>>2];if(e>>>0>31)break a;J[b+32>>2]=e+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}d=d+1|0;if((f|0)!=(d|0))continue;break}c=K[a+2|0]|K[a+3|0]<<8;c=g+(((c<<8|c>>>8)&65535)<<1)|0;if(M[b+12>>2]>2]>>>0)break a;a=K[a+4|0]|K[a+5|0]<<8;a=((a<<8|a>>>8)&65535)<<2;if(a>>>0>J[b+ -8>>2]-c>>>0)break a;a=J[b+16>>2]-a|0;J[b+16>>2]=a;h=(a|0)>0}return h}function Ida(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;a:{if(!a)break a;d=J[a>>2];if(!d)break a;j=J[d+668>>2];k=J[d+676>>2];f=b?J[b>>2]:f;g=c?J[c>>2]:g;i=xb-160|0;xb=i;if(f)XD(d,f);if(g)XD(d,g);VD(d);cc(d,J[d+268>>2]);cc(d,J[d+680>>2]);cc(d,J[d+748>>2]);cc(d,J[d+740>>2]);cc(d,J[d+588>>2]);cc(d,J[d+592>>2]);e=J[d+632>>2];if(e&4096){YD(d,J[d+388>>2]);e=J[d+632>>2]}h=e&-4097;J[d+632>>2]=h;if(e&8192){cc(d, -J[d+504>>2]);h=J[d+632>>2]}e=h&-8193;J[d+632>>2]=e;if(h&8){cc(d,J[d+596>>2]);e=J[d+632>>2]}J[d+632>>2]=e&-9;Tg(d+212|0);cc(d,J[d+544>>2]);l=Mb(i,d,156);m=J[d+164>>2];h=J[d+160>>2];i=J[d+168>>2];e=J[d+676>>2];Nb(d+156|0,0,612);J[d+676>>2]=e;J[d+168>>2]=i;J[d+160>>2]=h;J[d+164>>2]=m;Mb(d,l,156);xb=l+160|0;if(f){bi(d,f,16384,-1);kk(f,k,j);J[b>>2]=0}if(g){bi(d,g,16384,-1);kk(g,k,j);J[c>>2]=0}kk(d,k,j);J[a>>2]=0}}function EQ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0; -i=J[b+712>>2];a=Nb(a,0,780);J[a+8>>2]=d;J[a+4>>2]=b;H[a+65|0]=1;J[a>>2]=J[b+100>>2];a:{if(!d)break a;b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;lh(b);J[a+68>>2]=0;J[a+72>>2]=0;if(!c|!e)break a;b=J[J[c+40>>2]>>2];if(!b)break a;J[a+72>>2]=J[b>>2];J[a+68>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+108>>2]=i;b=J[7670];J[a+76>>2]=J[7669];J[a+80>>2]=b;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;b=J[7672];J[a+84>>2]=J[7671];J[a+88>>2]=b;b=J[7674];J[a+92>>2]=J[7673]; -J[a+96>>2]=b;b=J[7676];J[a+100>>2]=J[7675];J[a+104>>2]=b;b=J[i+120>>2];J[a+732>>2]=b;J[a+748>>2]=J[i+1352>>2];b:{if(J[i+1416>>2]==1)break b;j=107;if(b>>>0<1240)break b;j=b>>>0<33900?1131:32768}J[a+776>>2]=h;J[a+772>>2]=g;J[a+760>>2]=f;J[a+740>>2]=j}function vI(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;g=J[a+20>>2];if(g>>>0>=2){h=a+16|0;f=J[42445];j=f;i=J[42444];x(0,i|0);x(1,f|0);l=+z();f=2;while(1){a:{if(e>>>0>=g>>>0){H[h|0]=1;J[194120]=i;J[194121]=j;k=776480;break a}k=((e<<3)+h|0)+8|0}e= -e|1;b:{if(e>>>0>=g>>>0){H[h|0]=1;J[194120]=i;J[194121]=j;c=l;break b}c=O[((e<<3)+h|0)+8>>3]}m=O[a+4400>>3]+c;c=O[a+4392>>3]+O[k>>3];c:{if(K[b|0])break c;H[b|0]=1;d=O[a+4392>>3];if(d>3]){O[b+8>>3]=d;d=O[a+4392>>3]}if(O[b+24>>3]>3]=d;d=O[a+4400>>3];if(d>3]){O[b+16>>3]=d;d=O[a+4400>>3]}if(!(O[b+32>>3]>3]=d}O[a+4400>>3]=m;O[a+4392>>3]=c;if(O[b+8>>3]>c){O[b+8>>3]=c;c=O[a+4392>>3]}if(O[b+24>>3]>3]=c;c=O[a+4400>>3];if(c>3]){O[b+16>>3]=c;c=O[a+ -4400>>3]}if(O[b+32>>3]>3]=c;e=f;f=e+2|0;if(f>>>0<=g>>>0)continue;break}}}function Sw(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;J[e+8>>2]=J[a+4>>2];J[e+4>>2]=J[a>>2];J[e>>2]=J[b+4>>2];f=J[e+4>>2];h=J[e>>2];g=xb-16|0;xb=g;d=xb-32|0;xb=d;c=xb-16|0;xb=c;J[c+12>>2]=J[e+8>>2];J[c+8>>2]=f;J[d+24>>2]=J[c+12>>2];J[d+28>>2]=J[c+8>>2];xb=c+16|0;f=J[d+24>>2];c=xb-16|0;xb=c;J[c+8>>2]=J[d+28>>2];J[c+12>>2]=f;J[c+4>>2]=h;while(1){f=J[c+12>>2];if((f|0)!=J[c+8>>2]){J[J[c+4>>2]-4>>2]=J[f- -4>>2];J[c+12>>2]=J[c+12>>2]-4;J[c+4>>2]=J[c+4>>2]-4;continue}break}J[d+16>>2]=J[c+12>>2];J[d+20>>2]=J[c+4>>2];xb=c+16|0;J[d+12>>2]=J[d+16>>2];J[d+8>>2]=J[d+20>>2];J[g+8>>2]=J[d+12>>2];J[g+12>>2]=J[d+8>>2];xb=d+32|0;xb=g+16|0;J[e+12>>2]=J[g+12>>2];J[b+4>>2]=J[e+12>>2];d=J[a>>2];J[a>>2]=J[b+4>>2];J[b+4>>2]=d;d=J[a+4>>2];J[a+4>>2]=J[b+8>>2];J[b+8>>2]=d;d=J[a+8>>2];J[a+8>>2]=J[b+12>>2];J[b+12>>2]=d;J[b>>2]=J[b+4>>2];xb=e+16|0}function Nfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;b=J[b+84>>2];f=P(J[b+44>>2],I[c+22>>1]);g=J[d>>2]+e|0;a=J[a+332>>2]+128|0;h=P(J[b+32>>2],L[c+16>>1]);j=P(J[b>>2],L[c>>1]);i=(h+j|0)+4|0;k=P(J[b+40>>2],L[c+20>>1]);l=P(J[b+8>>2],L[c+4>>1]);m=k+l|0;n=i+m<<13;o=P(J[b+12>>2],I[c+6>>1]);p=o+f|0;q=P(J[b+36>>2],I[c+18>>1]);b=P(J[b+4>>2],I[c+2>>1]);c=q+b|0;r=P(p+c|0,4433);c=r+P(c,6270)|0;H[g|0]=K[a+(n+c>>>16&1023)|0];H[g+3|0]=K[a+(n-c>>>16&1023)|0];c=P(p,-15137)+r|0;i=i-m<<13;H[g+1|0]=K[a+(c+i>>>16&1023)|0];H[g+2|0]=K[a+ -(i-c>>>16&1023)|0];g=o-f|0;f=b-q|0;c=P(g+f|0,4433);b=J[d+4>>2]+e|0;d=c+P(f,6270)|0;e=(j-h|0)+4|0;f=l-k|0;h=e+f<<13;H[b|0]=K[a+(d+h>>>16&1023)|0];H[b+3|0]=K[a+(h-d>>>16&1023)|0];c=c+P(g,-15137)|0;d=e-f<<13;H[b+1|0]=K[a+(c+d>>>16&1023)|0];H[b+2|0]=K[a+(d-c>>>16&1023)|0]}function JA(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;f=J[J[a>>2]-12>>2]+a|0;e=J[f+12>>2];if(e+3>>>0>2]){d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[f+12>>2]=e+4}j=d;d=d-1>>>0<5;J[b+20>>2]=d?j:0;a:{if(!d)break a; -d=0;f=J[J[a>>2]-12>>2]+a|0;e=J[f+12>>2];if(e+3>>>0>2]){d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[f+12>>2]=e+4}e=J[a+116>>2]-16|0;f=d>>>0>e>>>0?d:e;tn(b,f);if(!c)break a;e=Pb(f);g=J[J[a>>2]-12>>2]+a|0;h=J[g+16>>2];d=J[g+12>>2];a=h-d|0;i=a>>>0>>0?a:f;b:{if(!i)break b;a=0;if((i|0)!=1){j=i&-2;while(1){c:{if(d>>>0>=h>>>0){c=0;break c}c=K[d|0];d=d+1|0;J[g+12>>2]=d}H[a+e|0]=c;c=0;if(d>>>0>>0){c=K[d|0];d=d+1|0;J[g+12>>2]=d}H[e+(a|1)|0]=c;a=a+2|0;k=k+2|0;if((k|0)!=(j|0))continue;break}}if(!(i& -1))break b;c=0;if(d>>>0>>0){c=K[d|0];J[g+12>>2]=d+1}H[a+e|0]=c}sn(b,e,f);Kb(e)}}function fna(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;e=K[a+15|0];d=e>>>4|0;a:{if((d|0)!=15)break a;f=J[a>>2];d=0;b:{c:{d:{e:{g=K[c|0]|K[c+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}d=f;f=K[c+2|0]|K[c+3|0]<<8;f=d-((f<<8|f>>>8)&65535)|0;e=K[c+4|0]|K[c+5|0]<<8;d=169776;if(f>>>0>=((e<<8|e>>>8)&65535)>>>0)break c;d=((f<<1)+c|0)+6|0;break c}h=170426;d=K[c+2|0]| -K[c+3|0]<<8;f:{if(!d)break f;i=c+4|0;d=((d<<8|d>>>8)&65535)-1|0;c=0;while(1){e=c+d>>>1|0;g=P(e,6)+i|0;j=K[g|0]|K[g+1|0]<<8;g:{if(f>>>0>=((j<<8|j>>>8)&65535)>>>0){c=K[g+2|0]|K[g+3|0]<<8;if(f>>>0>((c<<8|c>>>8)&65535)>>>0){c=e+1|0;break g}h=P(e,6)+i|0;break f}d=e-1|0}if((c|0)<=(d|0))continue;break}}d=h+4|0}c=K[d|0]|K[d+1|0]<<8;d=(c<<8|c>>>8)&65535;if(d>>>0>14)break a;e=K[a+15|0]}H[a+15|0]=e&15|d<<4}return(b|0)==(d|0)|0}function we(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;j=+(b+d|0)*.5;i=+(f|0);h=+(a+c|0)*.5; -g=+(e|0);a:{if(h<=g){b=3;if(i<=j)break a;b=0;break a}b=2;if(i<=j)break a;b=1}i=i-j;g=g-h;h=R(i)/Y(g*g+i*i);A(+h);a=v(1)|0;c=v(0)|0;d=a&2147483647;b:{if(d>>>0>=1072693248){g=h*1.5707963267948966+7.52316384526264E-37;if(!(d-1072693248|c))break b;g=0/(h-h);break b}c:{if(d>>>0<=1071644671){if(d+-1048576>>>0<1044381696)break c;g=h*rz(h*h)+h;break b}g=(1-R(h))*.5;j=Y(g);h=rz(g);d:{if(d>>>0>=1072640819){g=j*h+j;g=1.5707963267948966-(g+g+-6.123233995736766E-17);break d}A(+j);c=v(1)|0;v(0)|0;x(0,0);x(1,c| -0);i=+z();g=(g-i*i)/(j+i);g=.7853981633974483-(i+i)-((j+j)*h-(6.123233995736766E-17-(g+g)))+.7853981633974483}h=(a|0)<0?-g:g}g=h}h=g*180/3.141592653589793;e:switch(b-1|0){case 0:return 180-h;case 1:return h+180;case 2:h=360-h;break;default:break e}return h}function qx(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=xb-16|0;xb=g;J[g+12>>2]=0;d=21296;b=48;a:{while(1){d=d+1|0;if((b&255)==32)while(1){b=K[d|0];d=d+1|0;if((b|0)==32)continue;break}f=b&255;if(b<<24>>24<0){c=f>>>0<240;b=f>>>0<224;e=b?1:c? -2:3;f=(b?31:c?15:7)&f;c=0;b=d;while(1){f=K[b|0]&63|f<<6;b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}d=d+e|0}h=J[J[a+36>>2]>>2];c=0;while(1){b=K[d|0];if((b|32)!=32){d=d+1|0;c=b;if(b<<24>>24>=0)continue;e=b>>>0<240;b=b>>>0<224;i=b?1:e?2:3;c=(b?31:e?15:7)&c;e=0;b=d;while(1){c=K[b|0]&63|c<<6;b=b+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}d=d+i|0;continue}break}b:{if(c){Xl(h,0,2051,g+12|0);break b}b=ce(h,f);Xl(J[J[a+36>>2]>>2],b,2051,g+12|0);if(!b)break b;b=j;j=1;c=J[g+12>>2];if(!b){k=c;break b}if((c| -0)==(k|0))break b;b=0;break a}b=K[d|0];if(b)continue;break}b=1}H[a+32|0]=b;xb=g+16|0}function f8(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;if((b|0)==-1)return 0;h=J[a+8>>2];i=J[a+12>>2];a:{d=J[a+28>>2];e=J[a+24>>2];b:{if((d|0)!=(e|0))c=J[a+44>>2];else{c=-1;if(!(K[a+48|0]&16))break b;j=J[a+44>>2];f=J[a+20>>2];J[195395]=0;c=a+32|0;$(1811,c|0,0);d=J[195395];J[195395]=0;if((d|0)==1)break a;d=J[a+40>>2];g=H[a+43|0];J[195395]=0;fa(1865,c|0,((g|0)>=0?1:(d&2147483647)-1|0)|0,0);d=J[195395];J[195395]= -0;if((d|0)==1)break a;d=K[a+43|0];g=d<<24>>24<0;c=g?J[a+32>>2]:c;J[a+20>>2]=c;e=c+(e-f&-4)|0;J[a+24>>2]=e;d=c+((g?J[a+36>>2]:d)<<2)|0;J[a+28>>2]=d;c=c+(j-f&-4)|0}f=e+4|0;c=c>>>0>f>>>0?c:f;J[a+44>>2]=c;if(K[a+48|0]&8){J[a+16>>2]=c;c=H[a+43|0]<0?J[a+32>>2]:a+32|0;J[a+8>>2]=c;J[a+12>>2]=c+(i-h&-4)}if((d|0)==(e|0))return Ab[J[J[a>>2]+52>>2]](a,b)|0;J[a+24>>2]=f;J[e>>2]=b;c=b}return c|0}sa(ga(0)|0)|0;ua();return-1}function BG(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;d=K[a+2|0]|K[a+3|0]<<8;if(d)f= -((d<<8|d>>>8)&65535)+a|0;else f=169776;d=J[b+88>>2];if((ld(f,J[J[d+80>>2]+P(J[d+64>>2],20)>>2])|0)!=-1){h=169776;g=169776;d=K[a+4|0]|K[a+5|0]<<8;if(d)g=((d<<8|d>>>8)&65535)+a|0;d=K[a+6|0]|K[a+7|0]<<8;if(d)h=((d<<8|d>>>8)&65535)+a|0;d=K[a+8|0]|K[a+9|0]<<8;if(d)f=((d<<8|d>>>8)&65535)+a|0;else f=169776;J[e+28>>2]=f;J[e+24>>2]=h;J[e+12>>2]=c?843:841;d=c?844:841;J[e+16>>2]=d;J[e+20>>2]=g;J[e+8>>2]=(g|0)!=(f|0)?841:d;d=J[b+88>>2];f=J[d+64>>2];d=J[d+80>>2];a:{b:{if(!c)break b;c=K[(d+P(f,20)|0)+15|0];if(c>>> -0>239)break b;d=c>>>4|0;break a}d=Do(h,J[d+P(f,20)>>2])}c=K[a+10|0]|K[a+11|0]<<8;c=d>>>0>=((c<<8|c>>>8)&65535)>>>0?169776:((d<<1)+a|0)+12|0;c=K[c|0]|K[c+1|0]<<8;if(c)a=((c<<8|c>>>8)&65535)+a|0;else a=169776;g=CG(a,b,e+8|0)}xb=e+32|0;return g}function By(a){var b=0,c=0,d=0;c=xb-16|0;xb=c;b=J[J[a>>2]-12>>2];J[195395]=0;b=J[(a+b|0)+24>>2];d=J[195395];J[195395]=0;a:{b:{c:{d:{e:{if((d|0)!=1){if(!b)break b;J[195395]=0;ca(3537,c+8|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break d;if(!K[c+8|0])break e; -b=J[J[a>>2]-12>>2];J[195395]=0;b=J[(a+b|0)+24>>2];d=J[195395];J[195395]=0;f:{if((d|0)==1)break f;J[195395]=0;b=_(3538,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break f;if((b|0)!=-1)break e;b=J[J[a>>2]-12>>2];J[195395]=0;$(3539,a+b|0,1);b=J[195395];J[195395]=0;if((b|0)!=1)break e}b=ga(0)|0;Qm(c+8|0);break c}b=ga(0)|0;break c}Qm(c+8|0);break b}b=ga(0)|0}sa(b|0)|0;b=J[J[a>>2]-12>>2];J[195395]=0;ea(3540,a+b|0);a=J[195395];J[195395]=0;if((a|0)==1)break a;ua()}xb=c+16|0;return}a=Z()|0;J[195395]=0;ja(3516); -c=J[195395];J[195395]=0;if((c|0)!=1){ba(a|0);B()}ga(0)|0;_b();B()}function ip(a,b,c){a:switch(c-1|0){case 0:J[b>>2]=J[a+4>>2];return;case 1:J[b>>2]=J[a+4>>2]+J[a+12>>2];J[b+4>>2]=J[a+8>>2]+J[a+12>>2];return;case 2:J[b>>2]=J[a+4>>2]+(J[a+12>>2]+(J[a+20>>2]+J[a+28>>2]|0)|0);J[b+4>>2]=J[a+8>>2]+(J[a+12>>2]+(J[a+24>>2]+J[a+28>>2]|0)|0);J[b+8>>2]=J[a+16>>2]+(J[a+20>>2]+(J[a+24>>2]+J[a+28>>2]|0)|0);return;default:break a}J[b>>2]=J[a+4>>2]+(J[a+12>>2]+(J[a+20>>2]+(J[a+28>>2]+(J[a+36>>2]+(J[a+44>>2]+(J[a+ -52>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+4>>2]=J[a+8>>2]+(J[a+12>>2]+(J[a+24>>2]+(J[a+28>>2]+(J[a+40>>2]+(J[a+44>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+8>>2]=J[a+16>>2]+(J[a+20>>2]+(J[a+24>>2]+(J[a+28>>2]+(J[a+48>>2]+(J[a+52>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+12>>2]=J[a+32>>2]+(J[a+36>>2]+(J[a+40>>2]+(J[a+44>>2]+(J[a+48>>2]+(J[a+52>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0)}function ME(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;a:{if((c|0)<=0)break a;i=d-8|0;j=d+7|0;f=c-1|0;c= -0;if((d|0)<=15){k=16-d|0;while(1){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);h=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);g=c+d|0;h=h>>>32-g<>>8)&65535)>>>k<<2)+e|0;H[a|0]=K[h|0];H[a+1|0]=K[h+1|0];H[a+2|0]=K[h+2|0];b:{if((g|0)<8){c=g;break b}g=(c+j|0)-((g|0)>=15?15:g)|0;c=(c+i|0)-(g&-8)|0;b=b+1+(g>>>3)|0}a=a+3|0;g=(f|0)>0;f=f-1|0;if(g)continue;break}break a}while(1){g=f;f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=c+d|0;h=h>>> -32-f|0;h=(((h<<8|(h&65280)>>>8)&65535)<<2)+e|0;H[a|0]=K[h|0];H[a+1|0]=K[h+1|0];H[a+2|0]=K[h+2|0];c:{if((f|0)>=8){f=(c+j|0)-((f|0)>=15?15:f)|0;c=(c+i|0)-(f&-8)|0;b=b+1+(f>>>3)|0;break c}c=f}a=a+3|0;f=g-1|0;if((g|0)>0)continue;break}}}function sU(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;i=xb-32|0;xb=i;a:{b:{c:{if((b|0)!=(c|0)){k=J[194954];J[194954]=0;g=xb-16|0;xb=g;Vd();f=xb-16|0;xb=f;e=xb-16|0;xb=e;sq(e,b,i+28|0,2);h=J[e>>2];j=J[e+4>>2];b=f;f=J[e+12>>2];J[b+ -8>>2]=J[e+8>>2];J[b+12>>2]=f;J[b>>2]=h;J[b+4>>2]=j;xb=e+16|0;f=J[b>>2];h=J[b+4>>2];e=g;g=J[b+12>>2];J[e+8>>2]=J[b+8>>2];J[e+12>>2]=g;J[e>>2]=f;J[e+4>>2]=h;xb=b+16|0;g=J[e>>2];f=J[e+4>>2];h=J[e+12>>2];b=i;J[b+16>>2]=J[e+8>>2];J[b+20>>2]=h;J[b+8>>2]=g;J[b+12>>2]=f;xb=e+16|0;e=J[b+16>>2];f=J[b+20>>2];g=J[b+8>>2];h=J[b+12>>2];j=J[194954];if(!j)break c;if(J[b+28>>2]!=(c|0))break b;l=g;m=h;n=e;o=f;if((j|0)!=68)break a;break b}J[d>>2]=4;break a}J[194954]=k;if(J[i+28>>2]==(c|0))break a}J[d>>2]=4;g=l;h=m; -e=n;f=o}J[a>>2]=g;J[a+4>>2]=h;J[a+8>>2]=e;J[a+12>>2]=f;xb=i+32|0}function ena(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;e=K[a+15|0];d=e&15;a:{if((d|0)!=15)break a;f=J[a>>2];d=0;b:{c:{d:{e:{g=K[c|0]|K[c+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}d=f;f=K[c+2|0]|K[c+3|0]<<8;f=d-((f<<8|f>>>8)&65535)|0;e=K[c+4|0]|K[c+5|0]<<8;d=169776;if(f>>>0>=((e<<8|e>>>8)&65535)>>>0)break c;d=((f<<1)+c|0)+6|0;break c}h=170426;d=K[c+2|0]|K[c+3|0]<<8;f:{if(!d)break f; -i=c+4|0;d=((d<<8|d>>>8)&65535)-1|0;c=0;while(1){e=c+d>>>1|0;g=P(e,6)+i|0;j=K[g|0]|K[g+1|0]<<8;g:{if(f>>>0>=((j<<8|j>>>8)&65535)>>>0){c=K[g+2|0]|K[g+3|0]<<8;if(f>>>0>((c<<8|c>>>8)&65535)>>>0){c=e+1|0;break g}h=P(e,6)+i|0;break f}d=e-1|0}if((c|0)<=(d|0))continue;break}}d=h+4|0}c=K[d|0]|K[d+1|0]<<8;d=(c<<8|c>>>8)&65535;if(d>>>0>14)break a;e=K[a+15|0]}H[a+15|0]=e&240|d}return(b|0)==(d|0)|0}function Du(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+8>>2];b=K[b+2|0]|K[b+3|0]<<8;a:{if(b&65343)break a; -g=J[a+4>>2];f=J[J[a+12>>2]>>2];if(!(!f|(J[J[a+16>>2]>>2]?0:b&64))){b=J[a+20>>2];c=J[J[b+4>>2]>>2];a=J[J[b>>2]>>2];e=K[a|0]|K[a+1|0]<<8;e=(e<<8|e>>>8)&65535;if(c>>>0>=e>>>0)c=1;d=K[a+6|0]|K[a+7|0]<<8;h=a+((d<<8|d>>>8)&65535)|0;d=c;i=a;a=K[a+4|0]|K[a+5|0]<<8;c=(a<<8|a>>>8)&65535;a=h+(K[d+(i+c|0)|0]<<2)|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);d=a>>>16|0;if(d&65343|J[J[b+12>>2]>>2]!=((((a<<8|(a&65280)>>>8)&65535)-c|0)/(e|0)|0))break a;a=J[b+16>>2];if((d^(K[a+2|0]|K[a+3|0]<<8))&64)break a}a= -J[g>>2];b=K[a|0]|K[a+1|0]<<8;c=K[a+6|0]|K[a+7|0]<<8;d=a+((c<<8|c>>>8)&65535)|0;c=K[a+4|0]|K[a+5|0]<<8;a=d+(K[!b+((a+((c<<8|c>>>8)&65535)|0)+P((b<<8|b>>>8)&65535,f)|0)|0]<<2)|0;j=!((K[a+2|0]|K[a+3|0]<<8)&65343)}return j}function Yo(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[b+12>>2];f=J[b+4>>2];a:{if(d>>>0>>0)break a;e=J[b+8>>2];if((K[a|0]|K[a+1|0]<<8)!=256|e-a>>>0<12)break a;h=a+12|0;if(d>>>0>>0)break a;g=e-h|0;f=K[a+4|0]|K[a+5|0]<<8;d=(f<<8|f>>>8)&65535;e=P(d,12);if(g>>>0>>0)break a; -e=J[b+16>>2]-e|0;J[b+16>>2]=e;if((e|0)<=0)break a;c=1;if(!f)break a;j=d>>>0<=1?1:d;d=J[b+8>>2];e=J[b+12>>2];i=J[b+4>>2];f=0;while(1){c=P(f,12)+h|0;if(c-i>>>0>e>>>0)return 0;if(d-c>>>0<12)return 0;e=J[b+12>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);g=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))+a|0;i=J[b+4>>2];if(e>>>0>>0)return 0;c=K[c+2|0]|K[c+3|0]<<8;c=((c<<8|c>>>8)&65535)<<2;d=J[b+8>>2];if(c>>>0>d-g>>>0)return 0;g=J[b+16>>2]-c|0;J[b+16>>2]=g;c=0;if((g|0)<=0)break a;c=1;f=f+1|0;if((j| -0)!=(f|0))continue;break}}return c}function PT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=xb-32|0;xb=f;J[f+28>>2]=b;a:{if(!(J[c+4>>2]&1)){c=Ab[J[J[a>>2]+24>>2]](a,b,c,d,e)|0;break a}b=f+16|0;a=J[c+28>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[195395]=0;a=_(3653,b|0)|0;c=J[195395];J[195395]=0;b:{if((c|0)!=1){c=J[b>>2];d=J[c+4>>2]-1|0;J[c+4>>2]=d;if((d|0)==-1)Ab[J[J[c>>2]+8>>2]](c);c:{if(e){Ab[J[J[a>>2]+24>>2]](b,a);break c}Ab[J[J[a>>2]+28>>2]](f+16|0,a)}g=f,h=Xe(f+16|0),J[g+12>>2]=h;while(1){a= -f+16|0;g=f,h=Eh(a),J[g+8>>2]=h;if(J[f+12>>2]==J[f+8>>2]){c=J[f+28>>2];Yc(a);break a}a=J[J[f+12>>2]>>2];J[195395]=0;ca(3678,f+28|0,a|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1){J[f+12>>2]=J[f+12>>2]+4;continue}break}c=Z()|0;Yc(f+16|0);break b}c=Z()|0;a=J[f+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a)}ba(c|0);B()}xb=f+32|0;return c|0}function e6(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;var h=0;h=xb-32|0;xb=h;J[h+24>>2]=d;J[h+28>>2]=c;J[h+20>>2]=e;c=J[g+4>>2]- -J[g>>2]|0;J[h+16>>2]=c+40;c=c+68|0;J[h+12>>2]=c;J[h+8>>2]=72;J[a+8>>2]=c+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],h+8|0,4);Lb(J[a+4>>2],h+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],h+16|0,4);Lb(J[a+4>>2],h+28|0,4);Lb(J[a+4>>2],h+24|0,4);Lb(J[a+4>>2],h+20|0,4);Lb(J[a+4>>2],f,4);Lb(J[a+4>>2],f+4|0,4);Lb(J[a+4>>2],f+8|0,4);Lb(J[a+4>>2],f+12|0,4);Lb(J[a+4>>2],f+16|0,4);Lb(J[a+4>>2],f+20|0,4);Lb(J[a+4>>2],f+24|0,4);Lb(J[a+4>>2],f+28| -0,4);f=J[g>>2];b=J[g+4>>2];if((f|0)!=(b|0))while(1){Lb(J[a+4>>2],f,4);Lb(J[a+4>>2],f+4|0,4);Lb(J[a+4>>2],f+8|0,4);Lb(J[a+4>>2],f+12|0,4);f=f+16|0;if((b|0)!=(f|0))continue;break}xb=h+32|0}function Rs(a){var b=0,c=0;c=3584;a:{b:{c:switch(a>>>12|0){case 0:if((a|0)==160){c=1034;break a}b=a-40|0;if(b>>>0<24)break b;if(a-176>>>0<=39){b=a-152|0;break b}if(a-2304>>>0>1151)break a;b=a-2240|0;break b;case 1:if(a-4096>>>0<=159){b=a-2880|0;break b}if(a-6016>>>0<=111){b=a-4640|0;break b}if(a-7376>>>0>47)break a; -b=a-5888|0;break b;case 2:if((a|0)==9676){c=1035;break a}if(a-8200>>>0<=31){b=a-6664|0;break b}if(a-8304>>>0<=23){b=a-6736|0;break b}if((a&-8)!=9720)break a;b=a-8128|0;break b;case 10:b=a&-32;if((b|0)!=43616){if((b|0)!=43488){if((b|0)!=43232)break a;b=a-41632|0;break b}b=a-41856|0;break b}b=a-41952|0;break b;case 15:if((a&-16)!=65024)break a;b=a-63328|0;break b;case 17:break c;default:break a}b=a&-8;if((b|0)!=70456){if((b|0)!=70400)break a;b=a-68688|0;break b}b=a-68736|0}c=L[(b<<1)+135504>>1]}return c} -function $T(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=xb-32|0;xb=f;J[f+28>>2]=b;a:{if(!(J[c+4>>2]&1)){c=Ab[J[J[a>>2]+24>>2]](a,b,c,d,e)|0;break a}b=f+16|0;a=J[c+28>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[195395]=0;a=_(3624,b|0)|0;c=J[195395];J[195395]=0;b:{if((c|0)!=1){c=J[b>>2];d=J[c+4>>2]-1|0;J[c+4>>2]=d;if((d|0)==-1)Ab[J[J[c>>2]+8>>2]](c);c:{if(e){Ab[J[J[a>>2]+24>>2]](b,a);break c}Ab[J[J[a>>2]+28>>2]](f+16|0,a)}g=f,h=Xe(f+16|0),J[g+12>>2]=h;while(1){a=f+16|0;g=f,h=Gh(a),J[g+8>>2]= -h;if(J[f+12>>2]==J[f+8>>2]){c=J[f+28>>2];Yb(a);break a}a=H[J[f+12>>2]];J[195395]=0;ca(3667,f+28|0,a|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1){J[f+12>>2]=J[f+12>>2]+1;continue}break}c=Z()|0;Yb(f+16|0);break b}c=Z()|0;a=J[f+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a)}ba(c|0);B()}xb=f+32|0;return c|0}function ri(a,b){a=a|0;b=b|0;var c=Q(0),d=0,e=0,f=Q(0),g=Q(0),h=0,i=0,j=Q(0),k=Q(0),l=0,m=0,n=Q(0),o=0;f=N[a+68>>2];d=J[b+4>>2];n=Q(f*Q(d<<16>>16));c=N[a+64>>2];e=J[b>>2];j=Q(c* -Q(e<<16>>16));f=Q(f*Q(d+J[b+12>>2]<<16>>16));k=Q(c*Q(e+J[b+8>>2]<<16>>16));c=N[a+60>>2];if(c!=Q(0)){g=Q(n*c);c=Q(c*f);k=Q(k+(c<=g?g:c));j=Q(j+(c>=g?g:c))}c=Q(V(n));a:{if(Q(R(c))>2]=h;c=Q(V(j));b:{if(Q(R(c))>2]=i;c=Q(Q(W(f))-Q(h|0));c:{if(Q(R(c))>2]=d;c=Q(Q(W(k))-Q(i|0));d:{if(Q(R(c))>2]=e;l=J[a+48>>2]; -m=J[a+52>>2];if(l|m){o=d;d=J[a+32>>2]<0?0-m|0:m;J[b+12>>2]=o-d;J[b+4>>2]=d+h;d=J[a+28>>2]<0?0-l|0:l;if(K[a+44|0])J[b>>2]=i+((d|0)/-2|0);J[b+8>>2]=d+e}}function Wt(a){a=a|0;var b=0,c=0,d=0;b=J[a+52>>2];if(b>>>0>1){c=J[a+56>>2]+(((b|0)!=0)<<2)|0;d=b-1|0;d=c+((b>>>0>=d>>>0?d:0)<<2)|0;while(1){b=J[c>>2];if(J[b+8>>2]){J[b+12>>2]=0;Kb(J[b+16>>2])}J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;if(J[b+20>>2]){J[b+24>>2]=0;Kb(J[b+28>>2])}J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;c=c+4|0;if((d|0)!=(c|0))continue;break}}if(J[a+ -48>>2]){J[a+52>>2]=0;Kb(J[a+56>>2])}J[a+56>>2]=0;J[a+60>>2]=-57005;J[a+48>>2]=0;J[a+52>>2]=0;b=J[a+68>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+68>>2]=0}b=J[a+92>>2];if(b){Kb(b);J[a+92>>2]=0}J[a+76>>2]=0;J[a+72>>2]=J[a+72>>2]&1;b=J[a+44>>2];if(b)while(1){J[a+44>>2]=J[b+32>>2];if(J[b+8>>2]){J[b+12>>2]=0;Kb(J[b+16>>2])}J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;if(J[b+20>>2]){J[b+24>>2]=0;Kb(J[b+28>>2])}J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;b=J[a+44>>2];if(b)continue;break}}function PF(a,b){var c=0,d=0,e=0, -f=0,g=0;e=-2;a:{if(!a|!J[a+32>>2])break a;d=J[a+36>>2];if(!d)break a;c=J[a+28>>2];if(!c|J[c>>2]!=(a|0)|J[c+4>>2]-16180>>>0>31)break a;if((b|0)<0)b=0-b|0;else{f=(b>>>4|0)+5|0;b=b>>>0<48?b&15:b}if(b?b-8>>>0>=8:0)break a;g=J[c+56>>2];b:{if(!(J[c+40>>2]!=(b|0)?g:0)){J[c+40>>2]=b;J[c+12>>2]=f;break b}Ab[d|0](J[a+40>>2],g);J[c+56>>2]=0;d=J[a+32>>2];J[c+40>>2]=b;J[c+12>>2]=f;if(!d)break a}if(!J[a+36>>2])break a;b=J[a+28>>2];if(!b|J[b>>2]!=(a|0)|J[b+4>>2]-16180>>>0>31)break a;e=0;J[b+52>>2]=0;J[b+44>>2]= -0;J[b+48>>2]=0;J[b+32>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;c=J[b+12>>2];if(c)J[a+48>>2]=c&1;J[b+60>>2]=0;J[b+64>>2]=0;J[b+36>>2]=0;J[b+24>>2]=32768;J[b+16>>2]=0;J[b+4>>2]=16180;J[b+8>>2]=0;J[b+7108>>2]=1;J[b+7112>>2]=-1;a=b+1332|0;J[b+112>>2]=a;J[b+84>>2]=a;J[b+80>>2]=a}return e}function rC(a){a=a|0;var b=0,c=0;J[a>>2]=388524;b=J[a+16>>2];a:{if(K[b+32|0])break a;c=J[b+28>>2];if(!c)break a;Kb(c);J[b+28>>2]=0}J[b+4>>2]=0;J[b+8>>2]=0;H[b+33|0]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;c=J[J[b>> -2]+12>>2];J[195395]=0;ea(c|0,b|0);b=J[195395];J[195395]=0;b:{if((b|0)==1)break b;b=J[a+20>>2];b=J[J[b>>2]-12>>2]+b|0;c:{if(K[b+32|0])break c;c=J[b+28>>2];if(!c)break c;Kb(c);J[b+28>>2]=0}J[b+4>>2]=0;J[b+8>>2]=0;H[b+33|0]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;c=J[J[b>>2]+12>>2];J[195395]=0;ea(c|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;J[a+24>>2]=0;b=J[a+12>>2];if(b){c=J[J[b>>2]+12>>2];J[195395]=0;_(c|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break b;J[a+12>>2]=0}b=J[a+20>>2];if(b){Ab[J[J[b>> -2]+4>>2]](b);J[a+20>>2]=0}b=J[a+16>>2];if(b)Ab[J[J[b>>2]+4>>2]](b);return a|0}ga(0)|0;_b();B()}function mt(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=J[b+12>>2];g=J[b+4>>2];a:{if(d>>>0>>0)break a;h=J[b+8>>2];if((K[a|0]|K[a+1|0]<<8)!=256|h-a>>>0<20)break a;c=a+8|0;if(d>>>0>>0|h-c>>>0<4|K[c|0]&128)break a;c=K[a+6|0]|K[a+7|0]<<8;e=(c<<8|c>>>8)&65535;c=K[a+4|0]|K[a+5|0]<<8;f=P(e,(c<<8|c>>>8)&65535);if((f|0)<0)break a;c=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=(c<<24|(c&65280)<<8|(c>>> -8&65280|c>>>24))+a|0;if(d>>>0>>0)break a;e=h-c|0;c=f<<1;if(e>>>0>>0)break a;f=J[b+16>>2]-c|0;J[b+16>>2]=f;if((f|0)<=0)break a;c=J[b+40>>2]+1|0;b:{if(H[a+15|0]&1){if(c>>>0>1073741823)break a;e=d;d=a+20|0;if(e>>>0>>0)break a;a=c<<2;if(a>>>0<=h-d>>>0)break b;break a}if((c|0)<0)break a;e=d;d=a+20|0;if(e>>>0>>0)break a;a=c<<1;if(a>>>0>h-d>>>0)break a}a=f-a|0;J[b+16>>2]=a;i=(a|0)>0}return i}function qv(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;l=J[a+12>>2];e=J[l>>2];h=b>>> -0>e>>>0?e:b;if(h){b=J[l+12>>2];while(1){j=J[b+12>>2];e=j;k=i<<2;f=J[k+c>>2];if((e|0)>=(f|0)){e=J[b+4>>2];e=(e|0)<(f|0)?f:e}f=J[b+8>>2];a:{if((f|0)>(e|0)){g=0-dc(e-f|0,J[b+4>>2]-f|0)|0;break a}g=0;if((e|0)<=(f|0))break a;g=dc(e-f|0,j-f|0)}J[d+k>>2]=g;b=b+24|0;i=i+1|0;if((h|0)!=(i|0))continue;break}e=J[l>>2]}if(e>>>0>h>>>0)Nb((h<<2)+d|0,0,e-h<<2);a=J[a+28>>2];if(!(!a|!e)){c=0;while(1){g=L[a>>1];b:{if(g>>>0<2)break b;i=(c<<2)+d|0;f=J[i>>2];h=J[a+4>>2];b=1;while(1){j=b<<3;k=j+h|0;m=J[k>>2];if((f|0)<(m| -0)){g=f;b=j-8|0;e=b+h|0;f=J[e>>2];n=i,o=hc(g-f|0,J[k+4>>2]-J[e+4>>2]|0,m-f|0)+J[(b+J[a+4>>2]|0)+4>>2]|0,J[n>>2]=o;e=J[l>>2];break b}b=b+1|0;if((g|0)!=(b|0))continue;break}}a=a+8|0;c=c+1|0;if(e>>>0>c>>>0)continue;break}}}function Ih(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,m=0;k=xb-16|0;xb=k;H[k+15|0]=a;a:{b:{c:{if(J[d>>2]!=(c|0))break c;l=43;m=a&255;if((m|0)!=K[j+24|0]){l=45;if(K[j+25|0]!=(m|0))break c}J[d>>2]=c+1;H[c|0]=l;break b}if(K[g+11|0]>>> -7|0)g=J[g+4>>2];else g=K[g+11|0]&127;if(!(!g|(a|0)!=(f|0))){a=0;b=J[i>>2];if((b-h|0)>159)break a;a=J[e>>2];J[i>>2]=b+4;J[b>>2]=a;break b}a=-1;f=Yp(j,j+26|0,k+15|0)-j|0;if((f|0)>23)break a;d:{e:switch(b-8|0){case 0:case 2:if((b|0)>(f|0))break d;break a;case 1:break d;default:break e}if((b|0)!=16|(f|0)<22)break d;b=J[d>>2];if((b|0)==(c|0)|(b-c|0)>2|K[b-1|0]!=48)break a;a=0;J[e>>2]=0;J[d>>2]=b+1;H[b|0]=K[f+763968|0];break a}a=J[d>>2];J[d>>2]=a+1;H[a|0]=K[f+763968|0];J[e>>2]=J[e>>2]+1;a=0;break a}a=0; -J[e>>2]=0}xb=k+16|0;return a|0}function cO(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;d=J[b>>2];if((d|0)==-1)return 0;e=J[a+16>>2];c=K[e+8204|0]|K[e+8205|0]<<8|(K[e+8206|0]<<16|K[e+8207|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{b:{if(!f)break b;k=J[a>>2];a=d+1|0;d=e+8208|0;while(1){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);a=a>>>0>h>>>0?a:h;c=K[d+7|0];g=K[d+5|0]<<16|K[d+4|0]<<24|K[d+6|0]<<8;i=c|g;c:{if(a>>>0>i>>>0)break c;e= -K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);j=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=(g|1)+c|0;d:{while(1){c=a-h|0;if((c^-1)>>>0>>0)break c;c=c+j|0;if(c)break d;c=a+1|0;if(!c)break b;g=a>>>0>>0;a=c;if(g)continue;break}a=e;break c}if(M[k+16>>2]>c>>>0)break a}d=d+12|0;f=f-1|0;if(f)continue;break}}c=0;a=0}J[b>>2]=a;return c|0}function MM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=J[a+872>>2];if(!i)return 0;f=J[e+8>>2];a:{b:{if(f){g=J[e>>2];b=J[e+4>>2]; -break b}f=0;J[e+4>>2]=0;g=L[i+2>>1];if(!g)break a;l=J[i+8>>2];g=g-1|0;c:{while(1){j=((g-f|0)/2|0)+f|0;h=P(j,6)+l|0;k=K[h|0]<<8|K[h+1|0];d:{if(k>>>0>>0){f=j+1|0;break d}if(b>>>0>=k>>>0)break c;g=j-1|0}if((f|0)<=(g|0))continue;break}return 0}f=0;b=K[h+4|0]|K[h+5|0]<<8;g=(b<<8|b>>>8)&65535;if(!g)break a;b=K[h+3|0];h=K[h+2|0];J[e>>2]=g;b=b|h<<8;if(M[i+20>>2]>>0)break a;f=J[i+12>>2]+(b<<2)|0;J[e+8>>2]=f;b=0}if(b>>>0>=g>>>0)return 0;J[e+8>>2]=f+2;J[c>>2]=K[f+1|0]|K[f|0]<<8;J[e+8>>2]=f+4;b=K[f+ -3|0]|K[f+2|0]<<8;J[d>>2]=b;if(M[c>>2]>=M[a+16>>2])return 0;if((b|0)!=65535){f=0;if(b>>>0>=L[a+660>>1])break a}f=1;J[e+4>>2]=J[e+4>>2]+1}return f|0}function Hh(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=xb-16|0;xb=k;J[k+12>>2]=a;a:{b:{c:{if(J[d>>2]!=(c|0))break c;l=43;if(J[j+96>>2]!=(a|0)){l=45;if(J[j+100>>2]!=(a|0))break c}J[d>>2]=c+1;H[c|0]=l;break b}if(K[g+11|0]>>>7|0)g=J[g+4>>2];else g=K[g+11|0]&127;if(!(!g|(a|0)!=(f|0))){a=0;b=J[i>>2];if((b- -h|0)>159)break a;a=J[e>>2];J[i>>2]=b+4;J[b>>2]=a;break b}a=-1;f=Vp(j,j+104|0,k+12|0)-j>>2;if((f|0)>23)break a;d:{e:switch(b-8|0){case 0:case 2:if((b|0)>(f|0))break d;break a;case 1:break d;default:break e}if((b|0)!=16|(f|0)<22)break d;b=J[d>>2];if((b|0)==(c|0)|(b-c|0)>2|K[b-1|0]!=48)break a;a=0;J[e>>2]=0;J[d>>2]=b+1;H[b|0]=K[f+763968|0];break a}a=J[d>>2];J[d>>2]=a+1;H[a|0]=K[f+763968|0];J[e>>2]=J[e>>2]+1;a=0;break a}a=0;J[e>>2]=0}xb=k+16|0;return a|0}function Z8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f= -0,g=0;a:{b:{c:{c=J[a>>2];e=(J[a+4>>2]-c|0)/12|0;d=e+1|0;if(d>>>0<357913942){c=(J[a+8>>2]-c|0)/12|0;g=c<<1;d=c>>>0>=178956970?357913941:d>>>0>>0?g:d;if(d){if(d>>>0>=357913942)break c;f=Pb(P(d,12))}c=P(e,12)+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;d=P(d,12)+f|0;f=c+12|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-12|0;g=J[b+4>>2];c=c-12|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((b| -0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){a=b-12|0;if(H[b-1|0]<0)Kb(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}Ve(a);B()}zd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)Kb(b)}function ina(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=K[a+15|0];a:{if((d|0)!=255)break a;f=J[a>>2];d=0;b:{c:{d:{e:{e=K[c|0]|K[c+1|0]<<8;switch(((e<<8|e>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}d=f;f=K[c+ -2|0]|K[c+3|0]<<8;f=d-((f<<8|f>>>8)&65535)|0;e=K[c+4|0]|K[c+5|0]<<8;d=169776;if(f>>>0>=((e<<8|e>>>8)&65535)>>>0)break c;d=((f<<1)+c|0)+6|0;break c}h=170426;d=K[c+2|0]|K[c+3|0]<<8;f:{if(!d)break f;i=c+4|0;d=((d<<8|d>>>8)&65535)-1|0;c=0;while(1){e=c+d>>>1|0;g=P(e,6)+i|0;j=K[g|0]|K[g+1|0]<<8;g:{if(f>>>0>=((j<<8|j>>>8)&65535)>>>0){c=K[g+2|0]|K[g+3|0]<<8;if(f>>>0>((c<<8|c>>>8)&65535)>>>0){c=e+1|0;break g}h=P(e,6)+i|0;break f}d=e-1|0}if((c|0)<=(d|0))continue;break}}d=h+4|0}c=K[d|0]|K[d+1|0]<<8;d=(c<<8|c>>> -8)&65535;if(d>>>0>254)break a}H[a+15|0]=d}return(b|0)==(d|0)|0}function Dba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>0){f=J[a+12>>2];while(1){g=c;d=+N[b>>2];e=32767;a:{if(d>=1.8371976E19)break a;e=65535;if(d<=-1.8371976E19)break a;c=J[a+4>>2];if(d>5.4136769E-20){d=gl(d)*1.4426950408889634+64;if(c){e=Kpa(J[195008],J[195009],1284865837,1481765933);c=zb;e=e+1|0;c=e?c:c+1|0;J[195008]=e;J[195009]=c;d=d*256+ +(c>>>1|0)*4.656612875245797E-10+-.5}else d=d*256;if(R(d)<2147483648){e=~~d;break a}e= --2147483648;break a}e=0;if(!(d<-5.4136769E-20))break a;d=gl(-d)*1.4426950408889634+64;if(c){e=Kpa(J[195008],J[195009],1284865837,1481765933);c=zb;e=e+1|0;c=e?c:c+1|0;J[195008]=e;J[195009]=c;d=d*256+ +(c>>>1|0)*4.656612875245797E-10+-.5}else d=d*256;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}e=c|-32768}b=b+4|0;c=g-1|0;I[f>>1]=e;f=f+2|0;if(g>>>0>1)continue;break}}}function Yf(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=xb-96|0;xb=c;e=+(J[a+672>>2]>>31|1);g=-O[a+632>>3]*+J[a+648>>2]*e;d=c+48|0;f=+(J[a+ -676>>2]>>31|1);O[d+40>>3]=-O[a+640>>3]*+J[a+652>>2]*f;O[d+32>>3]=g;O[d+24>>3]=1;O[d+16>>3]=0;O[d+8>>3]=0;O[d>>3]=1;e=O[a+632>>3]*e;g=O[a+640>>3]*f;f=+J[a+664>>2];O[c+40>>3]=J[a+668>>2];O[c+32>>3]=f;O[c+24>>3]=g;O[c+16>>3]=0;O[c+8>>3]=0;O[c>>3]=e;b=a+504|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;gf(b,c,3);h=a+408|0;gf(b,h,3);gf(b,d,3);a=a+552|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>> -2]=0;J[a+4>>2]=1072693248;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;gf(a,c,3);gf(a,h,3);gf(a,d,3);xb=c+96|0}function Yba(a){a=a|0;var b=0,c=0,d=0;d=xb-32|0;xb=d;b=J[a+584>>2];a:{b:{c:{d:{e:{c=L[a+90>>1];switch(c-32844|0){case 0:break d;case 1:break e;default:break c}}c=1;if(!PC(a))break a;if(L[a+88>>1]==34677){J[a+544>>2]=1655;f:switch(J[b>>2]){case 0:J[b+20>>2]=1656;break a;case 2:break a;case 1:break f;default:break b}J[b+20>> -2]=1657;break a}J[a+544>>2]=1658;g:switch(J[b>>2]){case 0:J[b+20>>2]=1659;break a;case 2:break a;case 1:break g;default:break b}J[b+20>>2]=1660;break a}c=1;if(!OC(a))break a;J[a+544>>2]=1661;h:{c=J[b>>2];switch(c|0){case 1:break a;case 0:break h;default:break b}}J[b+20>>2]=1662;c=1;break a}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=266414;J[d>>2]=c;Ob(a,b,265613,d);c=1;break a}b=J[a>>2];c=J[a+628>>2];J[d+16>>2]=L[a+90>>1]==32844?271433:271550;Ob(c,b,271069,d+16|0);c=0}xb=d+32|0;return c|0}function yt(a,b){var c= -0,d=0,e=0,f=0,g=Q(0),h=Q(0),i=0,j=0,k=Q(0),l=Q(0);i=O[b+8>>3];j=O[b>>3];b=J[a+8>>2];if(b){j=j+O[b>>3];i=i+O[b+8>>3]}d=J[a+4>>2];b=d+16|0;a=J[a>>2];l=Q(N[a+68>>2]*Q(i));k=Q(N[a+64>>2]*Q(j));f=J[d+12>>2];a=J[d+8>>2];a:{b:{if(K[d+4|0]){if(!J[b>>2])break a;g=N[d+20>>2];h=N[d+24>>2];if(!(g==N[d+28>>2]&h==N[d+32>>2])){e=J[a+16>>2];c=J[a+32>>2];if(c)c=J[c+4>>2];else c=0;Ab[e|0](a,f,b,g,h,c)}c=J[a+28>>2];e=J[a+32>>2];if(!e){Ab[c|0](a,f,b,0);break b}Ab[c|0](a,f,b,J[e+16>>2]);break b}k=Q(Q(l*N[d>>2])+k);if(!J[d+ -16>>2])break a;g=N[d+20>>2];h=N[d+24>>2];if(!(g==N[d+28>>2]&h==N[d+32>>2])){e=J[a+16>>2];c=J[a+32>>2];if(c)c=J[c+4>>2];else c=0;Ab[e|0](a,f,b,g,h,c)}e=J[a+28>>2];c=J[a+32>>2];if(c)c=J[c+16>>2];else c=0;Ab[e|0](a,f,b,c)}J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0}N[d+32>>2]=l;N[d+28>>2]=k}function gaa(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;h=xb-48|0;xb=h;k=1;f=J[a+608>>2];d=J[a+604>>2];a:{if((c|0)>0)while(1){g=f;b:{c:{d:{e:{while(1){i=d;l=g;if((g|0)<=0)break d;g=g-1|0;d=d+1|0;e= -K[i|0];j=e<<24>>24;if((j|0)>=0)break e;if((j|0)==-128)continue;break}e=1-j|0;if((e|0)<=(c|0)){f=l-2|0;g=i+2|0;break c}g=J[a>>2];f=J[a+628>>2];J[h>>2]=e-c;yc(f,g,263084,h);f=l-2|0;g=i+2|0;e=c;if((e|0)>0)break c;break b}if((c|0)<=(e|0)){f=J[a>>2];i=J[a+628>>2];J[h+16>>2]=(e-c|0)+1;yc(i,f,263084,h+16|0);e=c-1|0}e=e+1|0;Pc(b,d,e);f=g-e|0;b=b+e|0;g=d+e|0;break b}J[a+604>>2]=i;J[a+608>>2]=f>>31&f;b=J[a+628>>2];c=J[a>>2];J[h+32>>2]=J[a+472>>2];Ob(b,c,264148,h+32|0);k=0;break a}b=Nb(b,K[d|0],e)+e|0}d=g;c= -c-e|0;if((c|0)>0)continue;break}J[a+608>>2]=f;J[a+604>>2]=d}xb=h+48|0;return k|0}function Wv(a,b,c,d,e,f,g){var h=0,i=0,j=0;j=e-c|0;a:{if((e|0)<(f|0)|(j|0)<=0|(c|0)>(g|0))break a;h=d-b|0;b:{if((c|0)<(f|0)){b=hc(h,f-c|0,j)+b|0;i=J[a>>2];f=f>>i;c=0;break b}i=J[a>>2];f=c>>i;c=J[a+4>>2]-1&c}d=1;if((e|0)<=(g|0)){g=e;d=!(J[a+4>>2]-1&e)}e=g>>i;c:{if((c|0)>0){if((e|0)==(f|0))break a;f=f+1|0;b=hc(h,J[a+4>>2]-c|0,j)+b|0;break c}if(!K[a+79|0])break c;J[a+36>>2]=J[a+36>>2]-4}H[a+79|0]=d;if(K[a+78|0]){J[J[a+80>> -2]+20>>2]=f;H[a+78|0]=0}g=e-f|0;c=g+1|0;if(M[a+32>>2]<=J[a+36>>2]+(c<<2)>>>0){J[a+40>>2]=98;return 1}d=1;e=J[a+4>>2];d:{if((h|0)>0){f=Fs(e,h,j);break d}d=-1;h=0-h|0;f=0-Fs(e,h,j)|0}h=(P(J[a+4>>2],h)|0)%(j|0)|0;e=J[a+36>>2];if((g|0)>=0){g=0-j|0;while(1){J[e>>2]=b;g=g+h|0;i=(g|0)>=0;g=g-(i?j:0)|0;b=(b+f|0)+(i?d:0)|0;e=e+4|0;i=c>>>0>1;c=c-1|0;if(i)continue;break}}J[a+36>>2]=e}return 0}function Qy(a,b){var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;c=J[a>>2];J[e+12>>2]=c;d=0;a:{if(b>>>0<=c>>>0)break a;while(1){d= -0;b:{c:{d:{e:{f:{g:{g=K[c|0];switch(g-37|0){case 1:case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:break b;case 0:break d;case 23:break e;case 3:break f;default:break g}}h:switch(g-123|0){case 0:f=f+1|0;break c;case 2:break h;default:break b}f=f-1|0;if(f)break b;c=c+1|0;d=0;break a}d=pq(e+12|0,b);break b}d=Ly(e+12|0,b);break b}d=37;i:{while(1){j:switch((d&255)-10|0){case 0:case 3:break i;default:break j}c= -c+1|0;if((c|0)!=(b|0)){d=K[c|0];continue}break}c=b}J[e+12>>2]=c}d=0}c=J[e+12>>2]+1|0;J[e+12>>2]=c;if(!d&b>>>0>c>>>0)continue;break}d=f?3:d}J[a>>2]=c;xb=e+16|0;return d}function qo(a,b,c,d){var e=0,f=0;e=J[a+5820>>2];a:{if((e|0)>=14){e=L[a+5816>>1]|d<>1]=e;f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=e;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=K[a+5817|0];e=d&65535;d=J[a+5820>>2];f=e>>>16-d|0;I[a+5816>>1]=f;d=d-13|0;break a}f=L[a+5816>>1]|d<>1]=f;d=e+3|0}b:{if((d|0)>=9){d= -J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=f;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[a+5817|0];break b}if((d|0)<=0)break b;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=f}J[a+5820>>2]=0;I[a+5816>>1]=0;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=c;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=c>>>8;d=J[a+20>>2];J[a+20>>2]=d+1;e=d+J[a+8>>2]|0;d=c^-1;H[e|0]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d>>>8;Mb(J[a+8>>2]+J[a+20>>2]|0,b,c);J[a+20>>2]=J[a+20>>2]+c}function jc(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;if(b){e=J[a+68>>2];a:{b:{c:{h=J[a+64>>2];if((h|0)>=0){f=e+1|0;f=(f|0)>0?f:0;if(f>>>0<=h>>>0)break b;g=h;while(1){g=((g>>>1|0)+g|0)+8|0;if(f>>>0>g>>>0)continue;break}if(g>>>0<=153391689){e=ic(J[a+72>>2],P(g,28));if(e)break c;e=J[a+68>>2];h=J[a+64>>2];if(g>>>0<=h>>>0)break b}J[a+64>>2]=h^-1}J[194126]=J[42450];f=J[42449];J[194124]=J[42448];J[194125]=f;f=J[42447];J[194122]=J[42446];J[194123]=f;f=J[42445];J[194120]=J[42444];J[194121]=f;f=e;e=776480;break a}J[a+64>>2]= -g;J[a+72>>2]=e;e=J[a+68>>2]}d:{if(e>>>0>=f>>>0)break d;g=P(f-e|0,28);if(!g)break d;Nb(J[a+72>>2]+P(e,28)|0,0,g)}J[a+68>>2]=f;e=(J[a+72>>2]+P(f,28)|0)-28|0}J[e+12>>2]=c;J[e+8>>2]=d;J[e+4>>2]=f;J[e>>2]=b;J[e+16>>2]=0-(c&1)&d;J[e+20>>2]=J[a+56>>2];J[e+24>>2]=J[a+60>>2]}}function fu(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+68>>2];a:{b:{c:{h=J[a+36>>2];if((h|0)!=J[b+36>>2]){c=J[b+68>>2];if(!f)break c;d=1;if(c)break a}if((f|0)==J[b+68>>2])break b;d=2;break a}if(!c)return 0;return 2}if(!f)return 0;c=J[b+80>> -2];e=J[a+80>>2];d=0;while(1){d=J[e>>2]==J[c>>2]?d:d|16;d=J[e+8>>2]==J[c+8>>2]?d:d|32;d=(J[c+4>>2]^J[e+4>>2])&7?d|64:d;c=c+20|0;e=e+20|0;g=g+1|0;if((f|0)!=(g|0))continue;break}if((h|0)!=2)break a;f=f>>>0<=1?1:f;c=J[b+88>>2];e=J[a+88>>2];g=0;while(1){b=J[e>>2]-J[c>>2]|0;a=b>>31;d:{e:{if((a|0)!=(a^b))break e;b=J[e+4>>2]-J[c+4>>2]|0;a=b>>31;if((a|0)!=(a^b))break e;b=J[e+8>>2]-J[c+8>>2]|0;a=b>>31;if((a|0)!=(a^b))break e;b=J[e+12>>2]-J[c+12>>2]|0;a=b>>31;if((a|0)==(a^b))break d}return d|128}c=c+20|0;e= -e+20|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}return d}function Ot(a){var b=0,c=0;a:{if(a>>>0<=65535){b:{c:{d:{e:{f:{g:{h:{i:{j:{b=a>>>8|0;switch(b|0){case 1:case 2:case 4:case 5:case 7: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 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:break a;case 0:break i;case 32:break d;case 24:break e;case 23:break f;case 6:break g;case 3:break h;default:break j}}switch(b-254|0){case 1:break b; -case 0:break c;default:break a}}return(a|0)==173}return(a|0)==847}return(a|0)==1564}return(a&-2)==6068}return a-6155>>>0<4}c=1;if(a-8203>>>0<5)break a;return(a&-16)==8288|a-8234>>>0<5}return(a|0)==65279|(a&-16)==65024}return a-65520>>>0<9}k:{b=(a>>>16|0)-1|0;if(b)if((b|0)==13)break k;else break a;return a-119155>>>0<8}c=(a&-4096)==917504}return c}function BA(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;d=xb-16|0;xb=d;c=xb-16|0;xb=c;b=b+36|0;J[c+8>>2]=b;J[195395]=0;J[c+12>>2]=64;e=d+4| -0;$(3485,e|0,c+8|0);f=J[195395];J[195395]=0;if((f|0)==1){a=Z()|0;if(b)Kb(b);ba(a|0);B()}xb=c+16|0;a:{b:{f=J[d+4>>2];b=e;e=H[d+15|0];g=(e|0)<0?f:b;c=id(g);if(c>>>0>=1073741808){J[195395]=0;ea(1800,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;break a}c:{if(c>>>0<=1){H[a+11|0]=c;break c}b=c|3;if(b>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break b}J[195395]=0;h=b+1|0;b=_(1078,h<<2)|0;i=J[195395];J[195395]=0;if((i|0)==1)break b;J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]= -h|-2147483648;a=b}b=a;a=c<<2;j=qc(b,g,a)+a|0,k=0,J[j>>2]=k;if((e|0)<0)Kb(f);xb=d+16|0;return}a=Z()|0;if(H[d+15|0]<0)Kb(J[d+4>>2]);ba(a|0);B()}B()}function tr(a,b,c){var d=0,e=0;a:{b:{d=J[b+4>>2];c:{if(d>>>0<=4){e=L[b+2>>1];if(L[a+456>>1]==19789){if((e|0)==6){a=1;d:switch(d-1|0){case 3:H[c+3|0]=J[b+8>>2];case 2:H[c+2|0]=J[b+8>>2]>>>8;case 1:H[c+1|0]=L[b+10>>1];break;case 0:break d;default:break c}break b}a=1;e:switch(d-1|0){case 3:H[c+3|0]=J[b+8>>2];case 2:H[c+2|0]=J[b+8>>2]>>>8;case 1:H[c+1|0]=L[b+ -10>>1];break;case 0:break e;default:break c}break b}if((e|0)==6){a=1;f:switch(d-1|0){case 3:H[c+3|0]=K[b+11|0];case 2:H[c+2|0]=L[b+10>>1];case 1:H[c+1|0]=J[b+8>>2]>>>8;break;case 0:break f;default:break c}break a}a=1;g:switch(d-1|0){case 3:H[c+3|0]=K[b+11|0];case 2:H[c+2|0]=L[b+10>>1];case 1:H[c+1|0]=J[b+8>>2]>>>8;break;case 0:break g;default:break c}break a}a=(xe(a,b,c)|0)!=0}return a}H[c|0]=K[b+11|0];return 1}H[c|0]=J[b+8>>2];return 1}function mp(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g= -xb-16|0;xb=g;i=J[a+28>>2];J[g+12>>2]=0;d=0;a:{if(b>>>0>>0)break a;f=Tb(i,4,0,c,0,g+12|0);d=0;if(J[g+12>>2])break a;while(1){d=f;if(c>>>0<=e>>>0)break a;b=J[a+32>>2];if(b>>>0>2]){J[a+32>>2]=b+1;b=H[b|0]}else b=0;d=b<<24>>24;h=d&63;b:{if((d|0)<0){b=(e^-1)+c|0;b=b>>>0>>0?b:h;Nb((e<<2)+f|0,0,(b<<2)+4|0);d=b+1|0;e=d+e|0;break b}b=0;if(d&64)while(1){k=(e<<2)+f|0,l=Zc(a)<<16,J[k>>2]=l;d=b+1|0;e=e+1|0;if(b>>>0>=h>>>0)break b;b=d;if(c>>>0>e>>>0)continue;break b}while(1){j=(e<<2)+f|0;d=J[a+32>> -2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;J[j>>2]=d<<24>>24<<16;d=b+1|0;e=e+1|0;if(b>>>0>=h>>>0)break b;b=d;if(c>>>0>e>>>0)continue;break}}if(d>>>0>h>>>0)continue;break}if(f)Ab[J[i+8>>2]](i,f);d=0}xb=g+16|0;return d}function ze(a){var b=0,c=0,d=0;a:{if(!ec(a,0,1)){b=J[a+72>>2];break a}b=J[a+64>>2];b:{if(b>>>0>2]){c=J[a+72>>2];d=J[a+84>>2];b=J[a+80>>2]+P(b,20)|0;break b}d=J[a+84>>2];c=J[a+72>>2];b=c-1|0;b=d+P(b>>>0<=c>>>0?b:0,20)|0}c=P(c,20)+d|0;d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+ -4>>2]=d;J[c+16>>2]=J[b+16>>2];d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;J[c>>2]=9676;b=J[a+72>>2]+1|0;J[a+72>>2]=b}c=b-1|0;b=J[a+84>>2]+P(b>>>0>=c>>>0?c:0,20)|0;I[b+16>>1]=L[b+16>>1]&65407;c:{if(K[a+62|0]){d:{if(J[a+84>>2]==J[a+80>>2]){b=J[a+72>>2];if((b|0)==J[a+64>>2])break d}if(!ec(a,1,1))break c;c=J[a+80>>2]+P(J[a+64>>2],20)|0;d=J[c+4>>2];b=J[a+84>>2]+P(J[a+72>>2],20)|0;J[b>>2]=J[c>>2];J[b+4>>2]=d;J[b+16>>2]=J[c+16>>2];d=J[c+12>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=d;b=J[a+72>>2]}J[a+72>>2]=b+ -1}J[a+64>>2]=J[a+64>>2]+1}}function io(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=os(a);a:{if(!f)break a;d=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=d;d=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=d;d=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=d;d=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=d;d=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=d;Mb(a+52|0,b+52|0,876);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+928>>2]=J[b+928>>2];J[a+932>>2]=J[b+932>>2];J[a+936>>2]=J[b+936>>2];Nb(b+4|0,0,936);if(!c)break a; -b:{if(J[a+60>>2])break b;d=J[a+940>>2];if(!d)break b;c=0;e=J[a+356>>2];c:{if((e|0)>0){while(1){d=J[J[a+940>>2]+(c<<2)>>2];if(d){Ab[J[J[d>>2]+4>>2]](d);e=J[a+356>>2]}c=c+1|0;if((e|0)>(c|0))continue;break}d=J[a+940>>2];if(!d)break c}Kb(d)}J[a+356>>2]=0;J[a+940>>2]=0}J[a+940>>2]=J[b+940>>2];J[b+940>>2]=0}return f|0}function P7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(J[b+116>>2]+J[b+108>>2]|0)+100|0;J[e+12>>2]=d;J[e+8>>2]=76;J[a+8>>2]=d+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+ -8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);Lb(J[a+4>>2],b+20|0,4);Lb(J[a+4>>2],b+24|0,4);Lb(J[a+4>>2],b+28|0,4);Lb(J[a+4>>2],b+32|0,4);Lb(J[a+4>>2],b+36|0,4);Lb(J[a+4>>2],b+40|0,4);tl(a,b+48|0);Lb(J[a+4>>2],b+96|0,1);Lb(J[a+4>>2],b+97|0,1);Lb(J[a+4>>2],b+98|0,1);Lb(J[a+4>>2],b+99|0,1);Lb(J[a+4>>2],b+100|0,4);Lb(J[a+4>>2],b+104|0,4);Lb(J[a+4>>2],b+108|0,4);Lb(J[a+4>>2],b+112|0,4);Lb(J[a+4>>2],b+116|0,4); -d=J[b+108>>2];if(d)Lb(J[a+4>>2],J[c+8>>2],d);d=J[b+116>>2];if(d)Lb(J[a+4>>2],J[c+8>>2]+J[b+108>>2]|0,d);xb=e+16|0}function $C(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=xb-48|0;xb=f;b=J[a+72>>2];d=J[a+68>>2];if((d|0)==-1)d=J[a+56>>2];g=J[a+76>>2];b=(b|0)==-1?J[a+60>>2]:b;g=(g|0)==-1?J[a- -64>>2]:g;a:{if(!g|(!d|!b))break a;h=J[a+56>>2];if(h>>>0<0-d>>>0)c=((d+h|0)-1>>>0)/(d>>>0)|0;d=J[a+60>>2];b:{if(d>>>0>=0-b>>>0)break b;d=(b+d|0)-1|0;e=Kpa((d>>>0)/(b>>>0)|0,0,c,0);c=zb;if(!c|b>>>0>d>>>0)break b;c=J[a>> -2];e=J[a+628>>2];J[f+32>>2]=265583;Ob(e,c,267921,f+32|0);e=0}c=0;b=J[a- -64>>2];if(b>>>0>=0-g>>>0)break a;b=(b+g|0)-1|0;c=Kpa((b>>>0)/(g>>>0)|0,0,e,0);e=zb;if(!e|b>>>0>>0)break a;c=J[a>>2];e=J[a+628>>2];J[f+16>>2]=265583;Ob(e,c,267921,f+16|0);c=0}c:{if(L[a+138>>1]!=2)break c;e=L[a+98>>1];c=Kpa(e,0,c,0);b=zb;if(!e|!b)break c;c=J[a>>2];a=J[a+628>>2];J[f>>2]=265583;Ob(a,c,267921,f);c=0}xb=f+48|0;return c}function Iz(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;H[a+120|0]=0;I[a+118>>1]=c;I[a+116>> -1]=b;if(K[a+130|0]){d=c<<16>>31;I[a+128>>1]=(d^c)-d;d=b<<16>>31;I[a+126>>1]=(d^b)-d}k=L[a+92>>1];a:{if((k|0)!=7)break a;d=a+126|0;h=L[d>>1];g=a+128|0;e=L[g>>1];if((h|0)==(b&65535)&(e|0)==(c&65535))break a;l=+(e<<16>>16);i=R(l/+(c|0));f=+(h<<16>>16);j=R(f/+(b|0));b:{if(i>31|1;f=V(f+.5);c:{if(R(f)<2147483648){e=~~f;break c}e=-2147483648}I[d>>1]=e?e:g}d=b<<16>>31;d:{if(((d^b)-d&65535)>>>0<2)break d;e=L[a+126>>1];g=e<<16>>16;d=g>>15;if(((d^e)-d&65535)>>>0<2)break d; -e:switch(k-7|0){case 0:if(!b|!e)break d;f=+(g|0)/+(b|0);O[a+96>>3]=f;O[a+104>>3]=f;tf(a);return;case 1:break e;default:break d}O[a+96>>3]=+(g|0)/+(b|0);O[a+104>>3]=+I[a+128>>1]/+(c|0)}tf(a)}function OJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=K[a+2|0]|K[a+3|0]<<8;if(c){f=a+4|0;h=f+(((c<<8|c>>>8)&65535)<<2)|0;while(1){c=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);if(c)g=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))+a|0;else g=169776;a:{b:{c:{d=J[b>>2];if((d|0)>=0){c=d;e=J[b+4>>2]+1|0;e=(e|0)> -0?e:0;if(c>>>0>=e>>>0)break b;while(1){c=((c>>>1|0)+c|0)+8|0;if(e>>>0>c>>>0)continue;break}if(c>>>0<=357913941){d=ic(J[b+8>>2],P(c,12));if(d)break c;d=J[b>>2];if(c>>>0<=d>>>0)break b}J[b>>2]=d^-1}J[194122]=J[42446];d=J[42445];J[194120]=J[42444];J[194121]=d;d=776480;break a}J[b>>2]=c;J[b+8>>2]=d}c=J[b+4>>2];d:{if(c>>>0>=e>>>0)break d;d=P(e-c|0,12);if(!d)break d;Nb(J[b+8>>2]+P(c,12)|0,0,d)}J[b+4>>2]=e;d=(J[b+8>>2]+P(e,12)|0)-12|0}$d(g,d);f=f+4|0;if((h|0)!=(f|0))continue;break}}}function AV(a,b){a=a| -0;b=b|0;var c=0,d=0,e=0;J[a+4>>2]=b;H[a|0]=0;b=J[J[b>>2]-12>>2]+b|0;if(!J[b+16>>2]){b=J[b+72>>2];if(b)a:{d=xb-16|0;xb=d;b:{c:{if(!J[(b+J[J[b>>2]-12>>2]|0)+24>>2])break c;J[195395]=0;ca(3548,d+8|0,b|0)|0;c=J[195395];J[195395]=0;d:{if((c|0)!=1){e:{if(!K[d+8|0])break e;c=J[(b+J[J[b>>2]-12>>2]|0)+24>>2];J[195395]=0;c=_(3549,c|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1){if((c|0)!=-1)break e;c=J[J[b>>2]-12>>2];J[195395]=0;$(3550,b+c|0,1);c=J[195395];J[195395]=0;if((c|0)!=1)break e}c=ga(0)|0;Pm(d+8|0);break d}Pm(d+ -8|0);break c}c=ga(0)|0}sa(c|0)|0;c=J[J[b>>2]-12>>2];J[195395]=0;ea(3540,b+c|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;ua()}xb=d+16|0;break a}a=Z()|0;J[195395]=0;ja(3516);b=J[195395];J[195395]=0;if((b|0)!=1){ba(a|0);B()}ga(0)|0;_b();B()}H[a|0]=1}return a|0}function y7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;a:{if(!c|J[d+4>>2]-J[d>>2]>>>0<8)break a;f=((J[c+20>>2]<<2)+((J[c+8>>2]!=7)<<2)|0)+52|0;J[e+12>>2]=f;J[e+8>>2]=95;J[a+8>>2]=J[a+8>>2]+f;J[a+12>>2]=J[a+12>>2]+1;I[a+16>> -1]=L[a+16>>1]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);b=0;J[e+4>>2]=0;Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],e+4|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],e+4|0,4);Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],J[d>>2],4);Lb(J[a+4>>2],c+16|0,1);Lb(J[a+4>>2],c+17|0,1);Lb(J[a+4>>2],c+18|0,1);Lb(J[a+4>>2],c+19|0,1);Lb(J[a+4>>2],J[d>>2]+4|0,4);Lb(J[a+4>>2],c+20|0,4);if(J[c+20>>2])while(1){Lb(J[a+4>>2],J[c+24>>2]+(b<<2)|0,4);b=b+1|0;if(b>>>0>2])continue;break}if(J[c+ -8>>2]==7)break a;Lb(J[a+4>>2],e+4|0,4)}xb=e+16|0}function vea(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;a:{f=J[a+392>>2];if(M[f+8>>2]>=M[a+284>>2])break a;h=f+24|0;i=f+12|0;e=J[a+280>>2];g=J[f+12>>2];if(e>>>0>g>>>0){Ab[J[J[a+396>>2]+4>>2]](a,b,c,d,h,i,e);g=J[i>>2];e=J[a+280>>2]}if((e|0)!=(g|0))break a;g=Ab[J[J[a+400>>2]+4>>2]](a,h)|0;e=J[f+16>>2];b:{if(!g)break b;if(e){J[c>>2]=J[c>>2]+1;J[f+16>>2]=0}J[f+12>>2]=0;e=J[f+8>>2]+1|0;J[f+8>>2]=e;if(e>>>0>=M[a+284>>2])break a;while(1){e=J[a+ -280>>2];if(e){Ab[J[J[a+396>>2]+4>>2]](a,b,c,d,h,i,e);e=J[a+280>>2];g=J[i>>2]}else g=0;if((e|0)!=(g|0))break a;g=Ab[J[J[a+400>>2]+4>>2]](a,h)|0;e=J[f+16>>2];if(!g)break b;if(e){J[c>>2]=J[c>>2]+1;J[f+16>>2]=0}J[f+12>>2]=0;e=J[f+8>>2]+1|0;J[f+8>>2]=e;if(e>>>0>2])continue;break}break a}if(e)break a;J[c>>2]=J[c>>2]-1;J[f+16>>2]=1}}function Eaa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=J[a+584>>2];a:{if(J[b+884>>2]>0){e=J[b+76>>2];if((e|0)>0){c=J[b+84>>2];while(1){f=J[c+12>>2];d=P(f,J[b+884>> -2]);f=f<<3;if((d|0)<(f|0)){e=J[c+28>>2]<<3;i=(g<<2)+b|0;while(1){h=J[i+844>>2]+(d<<2)|0;Pc(J[h>>2],J[h-4>>2],e);d=d+1|0;if((f|0)!=(d|0))continue;break}e=J[b+76>>2]}c=c+88|0;g=g+1|0;if((g|0)<(e|0))continue;break}}d=0;i=b;h=b+844|0;b=J[b+272>>2]<<3;if((AC(i,h,b)|0)!=(b|0))break a;b=J[a+584>>2]}c=0;a=Qb(40);J[a>>2]=0;a=wd(b+624|0,1,a,4);f=yb;b:{c:{while(1){if(c)break b;J[195395]=0;ea(1195,b|0);c=J[195395];J[195395]=0;if((c|0)==1){d=Z()|0;Kb(a);ba(d|0);B()}e=-1;d:{e:{if(!c)break e;g=J[195396];if(!g)break e; -e=Sb(J[c>>2],a,f);if(!e)break d;yb=g}c=yb;if((e|0)!=1)break c;continue}break}Kb(a);gd(c,g);B()}d=1}Kb(a)}return d|0}function $7(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[b>>2];e=J[b+4>>2];if((d|0)!=(e|0))while(1){a:{b:{c:{d:{e:{f:{g:{c=J[d>>2];switch((Ab[J[J[c>>2]+8>>2]](c)|0)-1|0){case 4:break c;case 3:break d;case 2:break e;case 1:break f;case 0:break g;default:break a}}b=Pb(24);J[b>>2]=391876;O[b+8>>3]=O[c+8>>3];O[b+16>>3]=O[c+16>>3];break b}b=Pb(24);J[b>>2]=391896;O[b+8>>3]=O[c+8>>3];O[b+16>>3]=O[c+ -16>>3];break b}b=Pb(56);J[b>>2]=391916;O[b+8>>3]=O[c+8>>3];O[b+16>>3]=O[c+16>>3];O[b+24>>3]=O[c+24>>3];O[b+32>>3]=O[c+32>>3];O[b+40>>3]=O[c+40>>3];O[b+48>>3]=O[c+48>>3];break b}b=Pb(56);J[b>>2]=391936;O[b+8>>3]=O[c+8>>3];O[b+16>>3]=O[c+16>>3];O[b+24>>3]=O[c+24>>3];O[b+32>>3]=O[c+32>>3];O[b+40>>3]=O[c+40>>3];O[b+48>>3]=O[c+48>>3];break b}b=Pb(4);J[b>>2]=391956}fh(a,b)}d=d+4|0;if((e|0)!=(d|0))continue;break}}function pI(a){var b=0,c=0,d=0,e=0;e=J[a-152>>2];a=vc(1,8);if(a)a:{b=xb-48|0;xb=b;J[a>>2]=0; -J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;c=_(584,e|0)|0;d=J[195395];J[195395]=0;b:{c:{if((d|0)==1)break c;J[b+40>>2]=c;J[195395]=0;H[b+44|0]=1;c=ca(585,e|0,1935829368)|0;d=J[195395];J[195395]=0;if((d|0)==1)break c;J[195395]=0;c=ca(703,b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break c;J[a>>2]=c;c=J[b+ -36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break b}c=J[e+32>>2];if((c|0)==-1)c=Qe(e);J[a+4>>2]=c;xb=b+48|0;break a}a=Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}return a}function tf(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=xb-96|0;xb=c;e=I[a+126>>1]>=0?1:-1;g=e*(-O[a+96>>3]*+I[a+112>>1]);d=c+48|0;f=I[a+128>>1]>=0?1:-1;O[d+40>>3]=f*(-O[a+104>>3]*+I[a+114>>1]);O[d+32>>3]=g;O[d+24>>3]=1;O[d+16>>3]=0;O[d+8>>3]=0;O[d>>3]=1;e=e*O[a+96>>3];g=f*O[a+104>>3];f=+I[a+122>>1];O[c+40>>3]=I[a+ -124>>1];O[c+32>>3]=f;O[c+24>>3]=g;O[c+16>>3]=0;O[c+8>>3]=0;O[c>>3]=e;b=a+208|0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;gf(b,c,3);gf(b,a+160|0,3);gf(b,d,3);a=a+256|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=1072693248;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;gf(a,c,3);gf(a,d,3);xb=c+96|0}function Qn(a){var b= -0,c=0,d=0,e=0,f=0,g=0;c=xb-16|0;xb=c;J[c+12>>2]=166;g=J[c+12>>2];b=J[a+656>>2];if(b){d=J[a+660>>2];if(d){b=0;while(1){e=J[J[a+656>>2]+(b<<2)>>2];a:{if(L[e+12>>1]!=65)break a;f=J[e+16>>2];if(Zb(263687,f,4))break a;Kb(f);Kb(e);d=J[a+660>>2]}b=b+1|0;if(d>>>0>b>>>0)continue;break}b=J[a+656>>2]}Kb(b);J[a+660>>2]=0}if(!Gg(a,276416,g))Ob(J[a+628>>2],263956,264753,0);Pd(a+40|0,0,208);J[a+100>>2]=-1;J[a+92>>2]=65537;J[a+96>>2]=65537;J[a+192>>2]=1;J[a+72>>2]=0;J[a+76>>2]=1;I[a+136>>1]=2;J[a+84>>2]=65537;J[a+ -676>>2]=0;J[a+672>>2]=1574;J[a+668>>2]=1575;J[a+664>>2]=0;J[a+652>>2]=1576;I[a+208>>1]=1;J[a+204>>2]=131074;b=a- -64|0;J[b>>2]=1;J[b+4>>2]=0;b=J[194307];if(b)Ab[b|0](a);J[c>>2]=1;xc(a,259,c);J[a+588>>2]=-1;J[a+508>>2]=-1;J[a+12>>2]=J[a+12>>2]&-1033;xb=c+16|0;return 1}function rba(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-32|0;xb=e;a:{if(L[a+84>>1]!=1){Ob(J[a+628>>2],J[a>>2],280004,0);break a}b=J[a+584>>2];b:{if(K[a+13|0]&4){h=Hg(a);c=a+68|0;break b}h=Ye(a);c=a+56|0}g=J[c>>2];J[b+12>>2]=g; -J[b+8>>2]=h;f=1;f=H[b+28|0]&1?f:L[a+88>>1]==4;J[b+80>>2]=0;c:{c=g>>>0<4294967264?g+31&-32:0;c=f?(c|0)>=0?c<<1:0:c;if(!(!c|(c|0)<0)){i=c<<1;if(i)break c}b=J[a>>2];a=J[a+628>>2];J[e>>2]=g;Ob(a,b,280171,e);break a}d=Sd(a,i,4,280280);J[b+80>>2]=d;if(!d){d=0;break a}J[b+88>>2]=d;J[b+84>>2]=f?d+(c<<2)|0:0;if(!(!(H[b+28|0]&1)|L[a+88>>1]!=3)){J[a+556>>2]=1678;J[a+548>>2]=1678;J[a+540>>2]=1678}b=J[a+584>>2];if(f){d=b;b=Qb(h);J[d+96>>2]=b;d=1;if(b)break a;b=J[a+628>>2];J[e+16>>2]=J[a>>2];Ob(b,280397,280452, -e+16|0);d=0;break a}J[b+96>>2]=0;d=1}xb=e+32|0;return d|0}function WK(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;d=xb-272|0;xb=d;Ab[J[b+60>>2]](b,d+80|0,16,d+76|0);f=J[d+76>>2];a:{if((f|0)<0){c=162;break a}c=3;if(f-17>>>0<4294967280)break a;i=J[a+532>>2];j=J[b+8>>2];k=J[b>>2];f=0;while(1){c=(d+80|0)+P(g,12)|0;J[b>>2]=J[c>>2];J[b+8>>2]=J[c+4>>2];Ab[J[b+60>>2]](b,d+16|0,4,d+12|0);e=J[d+12>>2];b:{c:{if(!g){if(e-5>>>0<4294967292)break c;c=nm(a,J[d+76>>2],e);if(c)break a;i=J[a+532>>2];c= -J[d+12>>2];f=e;break b}c=f;if((e|0)==(c|0))break b}c=3;break a}if((c|0)>0){e=(g<<2)+i|0;c=0;while(1){h=(d+16|0)+P(c,12)|0;J[b>>2]=J[h>>2];J[b+8>>2]=J[h+4>>2];h=Ab[J[b+40>>2]](b,0)|0;J[J[e+24>>2]+(c<<2)>>2]=h;c=c+1|0;if((c|0)>2])continue;break}}g=g+1|0;if((g|0)>2])continue;break}J[b+8>>2]=j;J[b>>2]=k;c=0}J[b+12>>2]=c;xb=d+272|0}function hc(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=2147483647;a:{if(!c)break a;b:{e=b>>31;f=(e^b)-e|0;e=a>>31;g=(e^a)-e|0;e=c>>31;e=(e^c)-e|0;if(f+g>>>0<= -129894-(e>>>17|0)>>>0){f=P(f,g)+(e>>>1|0)|0;break b}h=f>>>16|0;d=g>>>16|0;j=P(h,g&65535)+P(d,f&65535)|0;d=(j>>>16|0)+P(d,h)|0;h=e>>>1|0;g=P(f,g);f=h+g|0;d=(d+(f>>>0>>0)|0)+(g>>>0>>0)|0;if(!d)break b;if(e>>>0<=d>>>0)break a;g=S(d);h=32-g|0;d=f>>>h|d<>>0)/(e>>>0)|0;d=d-P(e,i)|0;f=f<>>31;h=d>>>0>=e>>>0;d=d-(h?e:0)|0;i=h|i<<1;h=g^31;f=f<<1}if((g|0)==31)break a;while(1){d=d<<1|f>>>31;g=d>>>0>=e>>>0;d=f>>>30&1|d-(g?e:0)<<1;j=d>>>0>=e>>>0;d=d-(j?e:0)|0;i=j|(i<<2|g<< -1);f=f<<2;h=h-2|0;if(h)continue;break}break a}i=(f>>>0)/(e>>>0)|0}a=a>>31|1;a=(b|0)<0?0-a|0:a;return(((c|0)<0?0-a|0:a)|0)<0?0-i|0:i}function j2(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;b=xb+-64|0;xb=b;g=O[f>>3];h=O[f+8>>3];O[b+56>>3]=h;O[b+48>>3]=g;if(R(h)<2147483648)c=~~h;else c=-2147483648;J[b+36>>2]=c;if(R(g)<2147483648)c=~~g;else c=-2147483648;J[b+32>>2]=c;g=g+O[f+16>>3];a:{if(R(g)<2147483648){c=~~g;break a}c=-2147483648}J[b+40>>2]=c;g=h+O[f+24>>3];b:{if(R(g)<2147483648){c= -~~g;break b}c=-2147483648}J[b+44>>2]=c;c=J[a+80>>2];g=O[Ab[J[J[c>>2]+72>>2]](c,2)>>3];c=J[a+80>>2];i=b,j=O[(Ab[J[J[c>>2]+72>>2]](c,2)|0)+24>>3],O[i+24>>3]=j;O[b+16>>3]=g;J[195395]=0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;Da(1967,a+8|0,e|0,b+48|0,b+32|0,b+16|0,b+4|0);a=J[195395];J[195395]=0;if((a|0)!=1){a=J[b+4>>2];if(a){J[b+8>>2]=a;Kb(a)}xb=b- -64|0;return}c=Z()|0;a=J[b+4>>2];if(a){J[b+8>>2]=a;Kb(a)}ba(c|0);B()}function He(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{e=id(b);if(e>>>0<1073741808){d:{if(e>>> -0<=1){H[a+11|0]=e;d=a;break d}d=e|3;if(d>>>0>=1073741823)break c;f=d+1|0;d=Pb(f<<2);J[a+8>>2]=f|-2147483648;J[a>>2]=d;J[a+4>>2]=e}f=b;b=e<<2;g=qc(d,f,b)+b|0,h=0,J[g>>2]=h;b=a+12|0;d=id(c);if(d>>>0>=1073741808){J[195395]=0;ea(1800,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;break a}e:{if(d>>>0<=1){H[a+23|0]=d;break e}b=d|3;if(b>>>0>=1073741823){J[195395]=0;ja(1292);b=J[195395];J[195395]=0;if((b|0)!=1)break a;break b}J[195395]=0;e=b+1|0;b=_(1078,e<<2)|0;f=J[195395];J[195395]=0;if((f|0)==1)break b; -J[a+12>>2]=b;J[a+20>>2]=e|-2147483648;J[a+16>>2]=d}f=b;b=d<<2;g=qc(f,c,b)+b|0,h=0,J[g>>2]=h;return a|0}dd(a);B()}zd();B()}b=Z()|0;if(H[a+11|0]<0)Kb(J[a>>2]);ba(b|0);B()}B()}function Fz(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;H[a+130|0]=0;e=a+128|0;I[e>>1]=c;f=a+126|0;I[f>>1]=b;if(K[a+120|0]){I[a+118>>1]=c;I[a+116>>1]=b}g=L[a+116>>1];i=L[a+92>>1];a:{if((i|0)!=7)break a;j=L[a+118>>1];if(!((g&65535)!=(b&65535)|(j|0)!=(c&65535))){g=b;break a}k=+(c|0);d=R(k/+(j<<16>>16));l=+(b|0);h=R(l/+(g<<16>> -16));b:{if(d>31|1;d=V(d+.5);c:{if(R(d)<2147483648){b=~~d;break c}b=-2147483648}I[e>>1]=b?b:c}b=g<<16>>16;c=b>>15;d:{if(((c^g)-c&65535)>>>0<2)break d;c=L[f>>1];e=c<<16>>16;f=e>>15;if(((c^f)-f&65535)>>>0<2)break d;e:switch(i-7|0){case 0:if(!(g&65535)|!c)break d;d=+(e|0)/+(b|0);O[a+96>>3]=d;O[a+104>>3]=d;tf(a);return;case 1:break e;default:break d}O[a+96>>3]=+(e|0)/+(b|0);O[a+104>>3]=+I[a+128>>1]/+I[a+118>>1]}tf(a)}function dH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0, -i=0;g=xb-16|0;xb=g;a:{b:{d=a+2|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<2)break b;c=K[d|0]|K[d+1|0]<<8;c:{if(!c)break c;if(Ld(b,((c<<8|c>>>8)&65535)+a|0))break c;c=J[b+32>>2];if(c>>>0>31)break b;J[b+32>>2]=c+1;if(!K[b+28|0])break b;H[d|0]=0;H[d+1|0]=0}J[g+12>>2]=a;d=0;f=J[b+12>>2];c=a+4|0;e=J[b+4>>2];if(f>>>0>>0)break a;h=J[b+8>>2];if(h-c>>>0<2)break a;i=f;f=a+6|0;if(i>>>0>>0)break a;e=K[a+4|0]|K[a+5|0]<<8;e=((e<<8|e>>>8)&65535)<<1;if(e>>>0>h-f>>>0)break a;e=J[b+16>>2]-e|0;J[b+16>> -2]=e;if((e|0)<=0)break a;d=1;c=K[c|0]|K[c+1|0]<<8;if(!c)break a;d=(c<<8|c>>>8)&65535;e=d>>>0<=1?1:d;c=0;while(1){d=ZG(b,((c<<1)+a|0)+6|0,g+12|0);if(!d)break a;c=c+1|0;if((e|0)!=(c|0))continue;break}break a}d=0}xb=g+16|0;return d}function Zz(a,b){var c=0,d=0,e=0,f=0;f=J[a+12>>2];c=J[a+8>>2];if(f>>>0>c+3>>>0){e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a+8>>2]=c}J[b>>2]=e;if(c+1>>>0>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[b+4>>1]=d;d=0;a:{if(c+1>>>0>=f>>>0){e=0;break a}e=K[c| -0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[b+6>>1]=e;if(c+1>>>0>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[b+8>>1]=d;d=0;b:{if(c+1>>>0>=f>>>0){e=0;break b}e=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[b+10>>1]=e;if(c+1>>>0>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[b+12>>1]=d;d=0;c:{if(c+1>>>0>=f>>>0){e=0;break c}e=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[b+14>>1]=e;if(c+1>>>0>>0){d=K[c|0]|K[c+1|0]<<8;c=c+2|0;J[a+8>>2]=c}I[b+16>>1]=d;d=0;if(c+1>>>0>>0){d=K[c|0]|K[c+1|0]<<8;J[a+8>>2]=c+ -2}I[b+18>>1]=d}function G9(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];a:{if(!(Ab[J[b+56>>2]](a)|0))break a;if(!uC(a))break a;d=1;b:{c:switch(J[b>>2]-2|0){case 0:c=1767;d:{e:{f:switch(L[a+84>>1]-8|0){case 8:c=1768;break e;case 0:break e;case 24:break f;default:break d}c=1769}J[b+40>>2]=c}c=J[a+540>>2];if((c|0)!=1770){J[b+28>>2]=c;J[a+540>>2]=1770;J[b+32>>2]=J[a+548>>2];J[a+548>>2]=1771;J[b+36>>2]=J[a+556>>2];J[a+556>>2]=1771}if(!(K[a+12|0]&128))break a;c=J[b+40>>2];if((c|0)==1768){J[b+40>>2]=1772;break b}if((c| -0)!=1769)break a;J[b+40>>2]=1773;break b;case 1:break c;default:break a}J[b+40>>2]=1774;c=J[a+540>>2];if((c|0)!=1770){J[b+28>>2]=c;J[a+540>>2]=1770;J[b+32>>2]=J[a+548>>2];J[a+548>>2]=1771;J[b+36>>2]=J[a+556>>2];J[a+556>>2]=1771}if(!(K[a+12|0]&128))break a}J[a+652>>2]=1576}return d|0}function sW(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;f=xb-32|0;xb=f;d=J[a+28>>2];J[f+16>>2]=d;g=J[a+20>>2];J[f+28>>2]=c;J[f+24>>2]=b;b=g-d|0;J[f+20>>2]=b;g=b+c|0;i=2;a:{b:{b=f+16|0;d=Oa(J[a+60>>2],b|0, -2,f+12|0)|0;if(d){J[194954]=d;d=-1}else d=0;c:{d:{if(d){d=b;break d}while(1){e=J[f+12>>2];if((e|0)==(g|0))break c;if((e|0)<0){d=b;break b}h=J[b+4>>2];j=h>>>0>>0;d=(j<<3)+b|0;h=e-(j?h:0)|0;J[d>>2]=h+J[d>>2];b=(j?12:4)+b|0;J[b>>2]=J[b>>2]-h;g=g-e|0;b=d;i=i-j|0;e=Oa(J[a+60>>2],b|0,i|0,f+12|0)|0;if(e){J[194954]=e;e=-1}else e=0;if(!e)continue;break}}if((g|0)!=-1)break b}b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;J[a+16>>2]=b+J[a+48>>2];a=c;break a}J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=J[a>>2]| -32;a=0;if((i|0)==2)break a;a=c-J[d+4>>2]|0}xb=f+32|0;return a|0}function loa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=xb-16|0;xb=g;f=J[a+712>>2];J[g+12>>2]=0;a:{if(!f)break a;e=J[f+3132>>2];if(!e){e=tc(J[a+100>>2],2,g+12|0);c=J[g+12>>2];if(c)break a;I[e>>1]=0;a=J[f+1500>>2];b:{if((a|0)==65535)break b;c:{if(a>>>0>=391){a=a-391|0;if(a>>>0>=M[f+1356>>2])break b;a=J[J[f+1360>>2]+(a<<2)>>2];break c}c=J[f+3084>>2];if(!c)break b;a=Ab[J[c+20>>2]](a)|0}if(!a)break b;a=Mc(a,10721);if(!a)break b;c=a+7|0;a= -Mc(c,10826);if(!a|(a|0)==(c|0))break b;while(1){d:{d=K[c|0];e:{if((d-48&255)>>>0<=9){d=L[e>>1];if(d>>>0>6551)break d;d=P(d,10);I[e>>1]=d;I[e>>1]=(d+H[c|0]|0)-48;break e}d=d-10|0;if(d>>>0>22|!(1<>1]=0}J[f+3132>>2]=e;c=J[g+12>>2]}I[b>>1]=L[e>>1]}xb=g+16|0;return c|0}function ir(a){var b=0;a:{if(!a|a&1)break a;b=1;if(a&2)break a;b=2;if(a&4)break a;b=3;if(a&8)break a;b=4;if(a&16)break a;b=5;if(a&32)break a;b=6;if(a&64)break a;b=7; -if(a&128)break a;b=8;if(a&256)break a;b=9;if(a&512)break a;b=10;if(a&1024)break a;b=11;if(a&2048)break a;b=12;if(a&4096)break a;b=13;if(a&8192)break a;b=14;if(a&16384)break a;b=15;if(a&32768)break a;b=16;if(a&65536)break a;b=17;if(a&131072)break a;b=18;if(a&262144)break a;b=19;if(a&524288)break a;b=20;if(a&1048576)break a;b=21;if(a&2097152)break a;b=22;if(a&4194304)break a;b=23;if(a&8388608)break a;b=24;if(a&16777216)break a;b=25;if(a&33554432)break a;b=26;if(a&67108864)break a;b=27;if(a&134217728)break a; -b=28;if(a&268435456)break a;b=29;if(a&536870912)break a;b=a<<1>>31&30}return b}function Ov(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+28>>2];a:{if((d|0)==-1)break a;e=J[a+36>>2];h=J[a+40>>2];if(e>>>0>=h>>>0)break a;k=J[a>>2];d=d+1|0;l=J[a+16>>2]+16|0;while(1){b:{b=P(e,12)+l|0;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=d>>>0>g>>>0?d:g;c=K[b+7|0];f=K[b+5|0]<<16|K[b+4|0]<<24|K[b+6|0]<<8;i=c|f;if(d>>>0>i>>>0)break b;b=K[b+8|0]|K[b+9|0]<< -8|(K[b+10|0]<<16|K[b+11|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=(f|1)+c|0;c:{while(1){c=d-g|0;if((c^-1)>>>0>>0)break b;c=c+j|0;if(c)break c;c=d+1|0;if(!c)break a;f=d>>>0>>0;d=c;if(f)continue;break}d=b;break b}if(c>>>0>=M[k+16>>2])break b;J[a+36>>2]=e;J[a+32>>2]=c;J[a+28>>2]=d;return}e=e+1|0;if((h|0)!=(e|0))continue;break}}H[a+24|0]=0}function vW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=xb-16|0;xb=f;J[f+12>>2]=0;a:{if(J[c+76>>2])break a;e=8;d=a+1|0;if(d>>>0>b>>>0)break a; -a=K[a|0];g=a&15;a=g+(a>>>4|0)|0;if((a<<1)+d>>>0>b>>>0)break a;b=Tb(J[c>>2],4,0,a,0,f+12|0);e=J[f+12>>2];if(e)break a;J[c+76>>2]=b;J[c- -64>>2]=(g<<2)+b;e=0;if(!a)break a;c=a-1|0;g=a&3;if(g)while(1){h=K[d|0]|K[d+1|0]<<8;J[b>>2]=(h<<8|h>>>8)<<16>>16;b=b+4|0;a=a-1|0;d=d+2|0;e=e+1|0;if((g|0)!=(e|0))continue;break}if(c>>>0>=3)while(1){c=K[d|0]|K[d+1|0]<<8;J[b>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+2|0]|K[d+3|0]<<8;J[b+4>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+4|0]|K[d+5|0]<<8;J[b+8>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+6|0]| -K[d+7|0]<<8;J[b+12>>2]=(c<<8|c>>>8)<<16>>16;b=b+16|0;d=d+8|0;a=a-4|0;if(a)continue;break}e=J[f+12>>2]}xb=f+16|0;return e|0}function _c(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+112>>2];d=J[a+116>>2];i=(b|d)!=0;h=b;e=J[a+4>>2];f=J[a+44>>2];b=e-f|0;g=b;c=b+J[a+120>>2]|0;b=J[a+124>>2]+(b>>31)|0;a:{b=c>>>0>>0?b+1|0:b;if(!(((b|0)>=(d|0)&c>>>0>=h>>>0|(b|0)>(d|0))&i)){i=an(a);if((i|0)>=0)break a;e=J[a+4>>2];f=J[a+44>>2]}J[a+112>>2]=-1;J[a+116>>2]=-1;J[a+104>>2]=e;g=c;c=f-e|0;d=g+c|0;b=(c>>31)+ -b|0;J[a+120>>2]=d;J[a+124>>2]=c>>>0>d>>>0?b+1|0:b;return-1}d=c+1|0;b=d?b:b+1|0;h=J[a+4>>2];f=J[a+8>>2];c=J[a+116>>2];g=c;e=J[a+112>>2];b:{if(!(c|e))break b;c=e-d|0;e=g-(b+(d>>>0>e>>>0)|0)|0;j=f-h|0;g=j>>31;if((e|0)>=(g|0)&c>>>0>=j>>>0|(e|0)>(g|0))break b;f=c+h|0}J[a+104>>2]=f;c=J[a+44>>2];f=c-h|0;d=f+d|0;b=(f>>31)+b|0;J[a+120>>2]=d;J[a+124>>2]=d>>>0>>0?b+1|0:b;if(c>>>0>=h>>>0)H[h-1|0]=i;return i}function Th(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{if(J[a+188>>2])break a;g=J[a+180>>2];if(!(g|J[a+184>> -2]))break a;h=J[a+156>>2];b:{i=J[a+192>>2]+(J[a+160>>2]-J[a+172>>2]<<2)|0;e=J[i>>2];c:{if(!e){e=0;break c}f=J[e>>2];if((h|0)<(f|0))break c;d:{while(1){d=e;if((f|0)==(h|0))break b;e=J[d+12>>2];if(e){f=J[e>>2];if((h|0)<(f|0))break d;continue}break}e=0}i=d+12|0}d=J[a+204>>2];if((d|0)>=J[a+200>>2]){Is(a,1);g=J[a+180>>2];e=J[i>>2];d=J[a+204>>2]}J[a+204>>2]=d+1;f=J[a+196>>2]+(d<<4)|0;J[f+8>>2]=g;J[f>>2]=h;d=J[a+184>>2];J[f+12>>2]=e;J[f+4>>2]=d;J[i>>2]=f;break a}J[d+8>>2]=J[d+8>>2]+g;J[d+4>>2]=J[d+4>>2]+ -J[a+184>>2]}J[a+180>>2]=0;J[a+184>>2]=0;J[a+160>>2]=c;d=J[a+164>>2];J[a+156>>2]=(b|0)<(d|0)?d-1|0:b;e=1;J[a+188>>2]=J[a+176>>2]<=(c|0)|J[a+172>>2]>(c|0)?e:J[a+168>>2]<=(b|0)}function tv(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;h=Ab[J[a+596>>2]](a)|0;f=J[b>>2];a:{if(!f)break a;g=a+36|0;e=1;while(1){b=J[a+28>>2];if((b|0)<=1){if(K[a+565|0])J[a+12>>2]=129;J[a+28>>2]=0;break a}d=b-2|0;J[a+28>>2]=d;c=b<<2;b=J[a+24>>2];c=L[(c+b|0)-4>>1];b:{if(c>>>0>1]){d=J[b+(d<<2)>>2];b=d>>>4&15;c:{d:switch(K[a+372|0]- -113|0){case 0:b=b|16;break c;case 1:break d;default:break c}b=b|32}if((L[a+336>>1]+b|0)!=(h|0))break b;b=d&15;b=(b>>>0>7?-7:-8)+b<<6-L[a+338>>1];if(!(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)){if(!((L[a+304>>1]?K[a+564|0]:0)|K[c+J[a+60>>2]|0]&16)|(K[a+617|0]?K[a+616|0]:0))break b;Ab[J[a+588>>2]](a,g,c,b);break b}Ab[J[a+588>>2]](a,g,c,b);break b}if(!K[a+565|0])break b;J[a+12>>2]=134}e=e+1|0;if(f>>>0>=e>>>0)continue;break}}J[a+32>>2]=J[a+28>>2]}function mja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0, -g=0,h=0;e=J[a+4>>2];if(!e)return 0;a:{b:{c:{if(J[e+76>>2]>=0){if((c|0)<2)break c;break b}if((c|0)>1)break b}a=J[e+72>>2];J[e+72>>2]=a-1|a;a=0;if((c|0)<=0)break a;H[b|0]=0;a=b;break a}c=c-1|0;a=b;d:{while(1){e:{f:{g:{d=J[e+4>>2];f=J[e+8>>2];if((d|0)==(f|0))break g;g=bh(d,10,f-d|0);h:{if(g){d=J[e+4>>2];f=(g-d|0)+1|0;break h}d=J[e+4>>2];f=J[e+8>>2]-d|0}h=d;d=c>>>0>f>>>0?f:c;Mb(a,h,d);f=d+J[e+4>>2]|0;J[e+4>>2]=f;a=a+d|0;if(g)break e;c=c-d|0;if(!c)break e;if((f|0)==J[e+8>>2])break g;J[e+4>>2]=f+1;d=K[f| -0];break f}d=an(e);if((d|0)>=0)break f;c=0;if((a|0)==(b|0))break d;if(K[e|0]&16)break e;break d}H[a|0]=d;a=a+1|0;if((d&255)==10)break e;c=c-1|0;if(c)continue}break}if(!b){c=0;break d}H[a|0]=0;c=b}a=c}return a|0}function gE(a,b,c){var d=0,e=0,f=0,g=0,h=0;if(!(J[a+108>>2]|!c))while(1){if(!J[a+108>>2]){d=J[a+16>>2];g=J[a+12>>2]|(H[b|0]&1)<<23-d;e=d+1|0;if((d|0)>=7)while(1){d=J[a+112>>2];J[a+112>>2]=d+1;H[d|0]=g>>>16;d=J[a+116>>2]-1|0;J[a+116>>2]=d;if(!d){f=J[a+120>>2];d=J[f+24>>2];if(!(Ab[J[d+12>>2]](f)| -0)){f=J[a+120>>2];h=J[f>>2];J[h+20>>2]=25;Ab[J[h>>2]](f)}J[a+112>>2]=J[d>>2];J[a+116>>2]=J[d+4>>2]}d=e;a:{if((g&16711680)!=16711680)break a;e=J[a+112>>2];J[a+112>>2]=e+1;H[e|0]=0;e=J[a+116>>2]-1|0;J[a+116>>2]=e;if(e)break a;f=J[a+120>>2];e=J[f+24>>2];if(!(Ab[J[e+12>>2]](f)|0)){f=J[a+120>>2];h=J[f>>2];J[h+20>>2]=25;Ab[J[h>>2]](f)}J[a+112>>2]=J[e>>2];J[a+116>>2]=J[e+4>>2]}e=d-8|0;g=g<<8;if((d|0)>15)continue;break}J[a+16>>2]=e;J[a+12>>2]=g}b=b+1|0;c=c-1|0;if(c)continue;break}}function Hr(a,b,c,d){var e= -0,f=0,g=0,h=0;e=J[c>>2];h=J[d>>2];a:{if(h>>>0>=b>>>0)break a;while(1){f=4;b:{c:switch(H[a+h|0]-43|0){case 2:f=132;break b;case 3:f=16;break b;case 5:f=8;break b;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:f=264;break b;case 0:break b;case 26:case 58:break c;default:break a}f=32}d:{e:switch((f&60|e&3)-4|0){case 0:if(e&60)break a;g=e|f;break d;case 12:if(e&16)break a;g=e|f;if(e&8)break d;g=e&448|f|1;break d;case 4:g=(e&16?e&384|17:e)|f|64;break d;case 28:if(!(e&8))break a;g= -e&448|2;break d;case 5:g=e|f|64;break d;case 29:if(!(e&8))break a;g=e&448|2;break d;case 2:if(e&60)break a;g=e|4;break d;case 6:break e;default:break a}g=e|72}e=g;h=h+1|0;if((h|0)!=(b|0))continue;break}h=b}J[c>>2]=e;J[d>>2]=h;return e>>>3&1}function sw(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;i=dc(65536E3,b<<16);if((i|0)>=655){n=J[a+52>>2];h=J[a+48>>2];j=J[a+44>>2];f=J[a+40>>2];k=J[a+36>>2];g=J[a+32>>2];l=J[a+28>>2];m=J[a+24>>2];a=c<<16;e=(a|0)<=262144?262144:a;b=S(e)^31;c=m<<16;if((d| -0)<=0)a=4915200;else a=Rb(d<<16,i);if((b-S(a)|0)>=15)b=h<<16;else b=Rb(a,e);a:{if((c|0)>(b|0)){a=dc(l<<16,e);break a}b:{c:{d:{d=g<<16;e:{if((b|0)<(d|0)){b=dc(c,e);if((g|0)==(m|0))break e;a=hc(a-b|0,k-l|0,g-m|0)+dc(l<<16,e)|0;break a}c=f<<16;if((b|0)>=(c|0))break d}b=dc(d,e);if((f|0)==(g|0)){c=f<<16;break c}a=hc(a-b|0,j-k|0,f-g|0)+dc(k<<16,e)|0;break a}if((b|0)>=h<<16)break b}b=dc(c,e);if((f|0)==(h|0))break b;a=hc(a-b|0,n-j|0,h-f|0)+dc(j<<16,e)|0;break a}a=dc(n<<16,e)}a=dc(a,i)+32768>>16}else a=0; -return a}function PX(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){e=J[J[a+96>>2]+8>>2];J[a+20>>2]=0;J[a+24>>2]=0;c=J[a+100>>2];b=c;d=J[a+368>>2];if(d)Ab[J[b+8>>2]](b,d);J[a+368>>2]=0;b=J[a+372>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+372>>2]=0;b=J[a+376>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+376>>2]=0;b=J[a+364>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+360>>2]=0;J[a+364>>2]=0;J[a+348>>2]=0;J[a+352>>2]=0;b=J[a+388>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+380>>2]=0;J[a+384>>2]=0;J[a+388>>2]=0;b=J[a+416>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+408>>2]= -0;J[a+412>>2]=0;J[a+416>>2]=0;b=J[a+396>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+392>>2]=0;J[a+396>>2]=0;b=J[a+424>>2];if(b)while(1){d=J[b>>2];if(b)Ab[J[c+8>>2]](c,b);b=d;if(b)continue;break}J[a+428>>2]=0;J[a+420>>2]=0;J[a+424>>2]=0;b=J[a+32>>2];if(b)Ab[J[e+8>>2]](e,b);J[a+32>>2]=0}}function Aha(a){a=a|0;var b=0,c=0,d=0;b=J[a+440>>2];a:{b:{if(J[b+8>>2]){J[b+8>>2]=0;Ab[J[J[a+480>>2]>>2]](a,0);Ab[J[J[a+452>>2]>>2]](a,2);c=2;break b}c:{if(J[a+136>>2]|!J[a+84>>2])break c;if(!(!J[a+92>>2]|!J[a+108>>2])){J[a+480>> -2]=J[b+24>>2];J[b+8>>2]=1;break c}if(J[a+100>>2]){J[a+480>>2]=J[b+20>>2];break c}c=J[a>>2];J[c+20>>2]=47;Ab[J[c>>2]](a)}Ab[J[J[a+468>>2]>>2]](a);Ab[J[J[a+448>>2]+8>>2]](a);if(J[a+68>>2])break a;if(!J[b+16>>2])Ab[J[J[a+476>>2]>>2]](a);Ab[J[J[a+472>>2]>>2]](a);if(J[a+84>>2])Ab[J[J[a+480>>2]>>2]](a,J[b+8>>2]);Ab[J[J[a+452>>2]>>2]](a,J[b+8>>2]?3:0);c=0}Ab[J[J[a+444>>2]>>2]](a,c)}c=J[a+8>>2];d:{if(!c)break d;d=J[b+12>>2];J[c+12>>2]=d;b=(J[b+8>>2]?2:1)+d|0;J[c+16>>2]=b;if(J[J[a+456>>2]+20>>2]|!J[a+64>> -2])break d;J[c+16>>2]=b+(J[a+108>>2]?2:1)}}function nW(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;j=xb-16|0;xb=j;e=6;a:{if((b|0)<0|J[a+16>>2]<=(b|0))break a;g=J[a>>2];e=J[a+8>>2];f=J[a+4>>2];h=f+d|0;if(e>>>0>>0){k=c-g|0;m=(k|0)>=0&e>>>0>k>>>0;while(1){e=((e>>>2|0)+e|0)+1024&-1024;if(h>>>0>e>>>0)continue;break}l=J[a+32>>2];f=tc(l,e,j+12|0);J[a>>2]=f;h=J[j+12>>2];if(h){J[a>>2]=g;e=h;break a}if(g){Mb(f,g,J[a+8>>2]);f=J[a+16>>2];if((f|0)>0){n=J[a>>2]-g|0;i=J[a+ -24>>2];o=i+(f<<2)|0;while(1){f=J[i>>2];if(f)J[i>>2]=f+n;i=i+4|0;if(o>>>0>i>>>0)continue;break}}if(g)Ab[J[l+8>>2]](l,g)}J[a+8>>2]=e;c=m?J[a>>2]+k|0:c;e=0;if(h)break a;g=J[a>>2];f=J[a+4>>2]}b=b<<2;J[b+J[a+24>>2]>>2]=g?g+f|0:0;J[b+J[a+28>>2]>>2]=d;Mb(J[a>>2]+f|0,c,d);J[a+4>>2]=J[a+4>>2]+d;e=0}xb=j+16|0;return e|0}function xe(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-16|0;xb=f;a:{b:{e=J[b+4>>2];g=!e;d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+283312>>2];else d=0;if(g|!d)break b;d=Kpa(d,0,e,0);if(zb)break b; -c:{if(!(K[a+13|0]&8)){if((Ab[J[a+640>>2]](J[a+628>>2],J[b+8>>2],0)|0)!=J[b+8>>2])break b;if((Ab[J[a+632>>2]](J[a+628>>2],c,d)|0)==(d|0))break c;break b}e=J[b+8>>2];g=d+e|0;if(M[a+616>>2]>>0|e>>>0>g>>>0)break b;Pc(c,J[a+612>>2]+e|0,d)}d:{if(!(K[a+12|0]&128))break d;h=d;e:switch(L[b+2>>1]-3|0){case 0:case 5:dk(c,J[b+4>>2]);break d;case 1:case 6:case 8:Zh(c,J[b+4>>2]);break d;case 2:case 7:Zh(c,J[b+4>>2]<<1);break d;case 9:break e;default:break a}vr(c,J[b+4>>2])}h=d;break a}c=J[a>>2];d=J[a+628>>2]; -i=f,j=J[nd(a,L[b>>1])+16>>2],J[i>>2]=j;Ob(d,c,280494,f)}xb=f+16|0;return h}function Uba(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;if((c|0)>0){a=J[a+12>>2];while(1){f=b;a:{b:{b=J[a>>2];e=b>>>14&1023;if(e){h=Oh((+(e|0)+.5)*.010830424696249145+-8.317766166719343);if(!(h<=0))break b}J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;break a}j=b&16383;c:{if(j>>>0>16288){d=.210526316;g=.473684211;break c}k=163;e=0;d:{e:{while(1){b=e+k>>1;l=j-I[(b<<3)+284182>>1]|0;f:{if((l|0)>0){e=b;break f}if((l| -0)>=0)break e;k=b}if((k-e|0)>1)continue;break}b=e;g=+(j-I[(b<<3)+284182>>1]|0)+.5;break d}g=.5}d=g*.0035000001080334187+ +N[(b<<3)+284176>>2];g=(+(b|0)+.5)*.0035000001080334187+.016939999535679817}N[f+4>>2]=h;i=d*9;d=1/(d*6+g*-16+12);i=i*d;d=g*4*d;N[f>>2]=h*(i/d);N[f+8>>2]=h*((1-i-d)/d)}a=a+4|0;b=f+12|0;e=c>>>0>1;c=c-1|0;if(e)continue;break}}}function Kk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!(H[a+12|0]&1))return 0;f=J[a+16>>2];a:{if(M[a+20>>2]<=(f>>>1|0)+f>>> -0){f=0;if(!No(a,0))break a}h=J[a+32>>2];j=c&1073741823;c=(j>>>0)%M[a+24>>2]|0;f=J[(h+P(c,12)|0)+4>>2];if(f&2){k=J[a+20>>2];l=J[b>>2];g=-1;while(1){b:{if(J[P(c,12)+h>>2]==(l|0)){f=0;if(e)break b;break a}g=f&1?g:(g|0)!=-1?g:c;i=i+1|0;c=i+c&k;f=J[(P(c,12)+h|0)+4>>2];if(f&2)continue}break}c=(g|0)==-1?c:g}e=P(c,12)+h|0;if(K[e+4|0]&2){J[a+16>>2]=J[a+16>>2]-1;J[a+12>>2]=J[a+12>>2]-(J[e+4>>2]<<1&2)}J[e>>2]=J[b>>2];J[(P(c,12)+h|0)+8>>2]=J[d>>2];J[e+4>>2]=j<<2|3;f=1;b=J[a+16>>2]+1|0;J[a+16>>2]=b;J[a+12>>2]= -J[a+12>>2]+2;if(M[a+28>>2]>=i>>>0)break a;c=b<<3;b=J[a+20>>2];if(c>>>0<=b>>>0)break a;No(a,b-8|0)}return f|0}function zh(a,b){var c=0,d=0,e=0,f=0;a:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<2)break a;d=1;b:{c:{d:{c=K[a|0]|K[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break c;case 0:break d;default:break b}}c=J[b+12>>2];d=J[b+4>>2];if(c>>>0>>0)break a;e=J[b+8>>2];if(e-a>>>0<6)break a;f=a+4|0;if(c>>>0>>0|e-f>>>0<2)break a;c=a+6|0;if(M[b+12>>2]>2]>>>0)break a;d=0;a=K[a+ -4|0]|K[a+5|0]<<8;a=((a<<8|a>>>8)&65535)<<1;if(a>>>0>J[b+8>>2]-c>>>0)break b;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0}d=a+2|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-d>>>0<2)break a;c=a+4|0;if(M[b+12>>2]>2]>>>0)break a;d=0;a=K[a+2|0]|K[a+3|0]<<8;a=P((a<<8|a>>>8)&65535,6);if(a>>>0>J[b+8>>2]-c>>>0)break b;a=J[b+16>>2]-a|0;J[b+16>>2]=a;d=(a|0)>0}return d}return 0}function Wp(a,b,c,d,e){var f=0,g=0,h=0;f=xb-16|0;xb=f;g=f+12|0;b=J[b+28>>2];J[g>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[195395]=0;b=_(3551, -g|0)|0;h=J[195395];J[195395]=0;a:{if((h|0)==1)break a;J[195395]=0;ha(3665,b|0,763968,764E3,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[195395]=0;b=_(3653,g|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]=0;c=_(3666,b|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;J[d>>2]=c;J[195395]=0;c=_(3662,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[e>>2]=c;J[195395]=0;$(3663,a|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break a;a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>> -2]+8>>2]](a);xb=f+16|0;return}c=Z()|0;a=J[f+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function eg(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=J[b+44>>2];a:{if(j){g=L[b+26>>1];b:{if((g|0)==8){f=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+c|0];break b}h=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+(P(c,g)>>3)|0];c:switch(g-1|0){case 3:f=4-((c|0)%2<<2)&252;f=(h&15<>>f|0;break b;case 0:break c;default:break b}f=7-((c|0)%8|0)|0;f=(h&1<>>f|0}h=J[b+ -4>>2];d:{if(!h){g=0;i=0;break d}g=0;f=f&255;i=0;if(f>>>0>=j>>>0)break d;f=h+(f<<2)|0;g=K[f+41|0]<<8;k=K[f+43|0]<<24;l=K[f+40|0];i=K[f+42|0]<<16}h=i;f=h|k|g|l;H[a|0]=f;H[a+1|0]=f>>>8;H[a+2|0]=f>>>16;H[a+3|0]=f>>>24;break a}f=(J[b+56>>2]+P(J[b+52>>2],d)|0)+P(c,3)|0;H[a|0]=K[f|0];H[a+1|0]=K[f+1|0];f=K[f+2|0];H[a+3|0]=0;H[a+2|0]=f}f=J[b+932>>2];if(!(!f|!e))H[a+3|0]=K[(f+P(J[b+16>>2],d)|0)+c|0]}function bca(a){a=a|0;var b=0,c=0,d=0;c=xb-16|0;xb=c;J[a+652>>2]=1576;b=J[a+584>>2];a:{b:{c:{d:{e:{d=L[a+90>> -1];switch(d-32844|0){case 0:break d;case 1:break e;default:break c}}if(!PC(a))break b;if(L[a+88>>1]==34677){J[a+540>>2]=1644;a=1;f:switch(J[b>>2]){case 0:J[b+20>>2]=1645;break a;case 1:J[b+20>>2]=1646;break a;case 3:break f;default:break a}J[b+20>>2]=1647;break a}J[a+540>>2]=1648;a=1;g:switch(J[b>>2]){case 0:J[b+20>>2]=1649;break a;case 1:J[b+20>>2]=1650;break a;case 3:break g;default:break a}J[b+20>>2]=1651;break a}if(!OC(a))break b;J[a+540>>2]=1652;a=1;h:switch(J[b>>2]){case 0:J[b+20>>2]=1653;break a; -case 3:break h;default:break a}J[b+20>>2]=1654;break a}b=J[a>>2];a=J[a+628>>2];J[c+4>>2]=266414;J[c>>2]=d;Ob(a,b,265613,c)}a=0}xb=c+16|0;return a|0}function Zp(a,b,c,d,e){var f=0,g=0,h=0;f=xb-16|0;xb=f;g=f+12|0;b=J[b+28>>2];J[g>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[195395]=0;b=_(3535,g|0)|0;h=J[195395];J[195395]=0;a:{if((h|0)==1)break a;J[195395]=0;ha(3646,b|0,763968,764E3,c|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[195395]=0;b=_(3624,g|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;J[195395]= -0;c=_(3647,b|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;H[d|0]=c;J[195395]=0;c=_(3637,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;H[e|0]=c;J[195395]=0;$(3638,a|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break a;a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);xb=f+16|0;return}c=Z()|0;a=J[f+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function dJ(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;g=J[a+20>>2];a:{if((g| -0)<=0)break a;f=J[a>>2];d=g-1|0;b:{while(1){h=d+j|0;k=h>>>1|0;i=(h&-2)+f|0;e=K[i|0]|K[i+1|0]<<8;c:{if(((e<<8|e>>>8)&65535)>>>0>=b>>>0){d=(g<<1)+i|0;d=K[d+2|0]|K[d+3|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<=b>>>0)break b;d=k-1|0;break c}j=k+1|0}if((d|0)>=(j|0))continue;break}d=0;break a}f=h>>1;d=J[a+12>>2]+(h&-2)|0;e=K[d|0]|K[d+1|0]<<8;d:{if(e){d=0;e=f+(b-g|0)+(((e<<8|e>>>8)&65534)>>>1)|0;b=J[a+4>>2]+(f<<1)|0;b=K[b|0]|K[b+1|0]<<8;b=e-((b<<8|b>>>8)&65535)|0;if(b>>>0>=M[a+24>>2])break d;b=J[a+16>>2]+(b<<1)| -0;b=K[b|0]|K[b+1|0]<<8;if(!b)break d;b=(b<<8|b>>>8)&65535}d=0;a=J[a+8>>2]+(f<<1)|0;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)+b&65535;if(!a)break a;J[c>>2]=a;d=1}}return d|0}function Qm(a){var b=0,c=0;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[195395]=0;b=J[(b+c|0)+24>>2];c=J[195395];J[195395]=0;a:{if((c|0)==1)break a;b:{if(!b)break b;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[195395]=0;b=J[(b+c|0)+16>>2];c=J[195395];J[195395]=0;if((c|0)==1)break a;if(b)break b;b=J[a+4>>2];if(!(J[(J[J[b>>2]-12>>2]+b|0)+4>>2]&8192))break b; -if(Iy())break b;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[195395]=0;b=J[(b+c|0)+24>>2];c=J[195395];J[195395]=0;c:{if((c|0)==1)break c;J[195395]=0;b=_(3538,b|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break c;if((b|0)!=-1)break b;a=J[a+4>>2];b=J[J[a>>2]-12>>2];J[195395]=0;$(3539,a+b|0,1);a=J[195395];J[195395]=0;if((a|0)!=1)break b}sa(ga(0)|0)|0;J[195395]=0;ja(3516);a=J[195395];J[195395]=0;if((a|0)==1)break a}return}ga(0)|0;_b();B()}function bj(a,b,c){var d=0,e=0,f=0;e=J[a+16>>2];if(!c){d=J[a+120>>2];f=J[d>>2]; -J[f+20>>2]=41;Ab[J[f>>2]](d)}if(!J[a+108>>2]){d=(-1<>2]|d<<24-b;if((b|0)>=8)while(1){e=J[a+112>>2];J[a+112>>2]=e+1;H[e|0]=c>>>16;e=J[a+116>>2]-1|0;J[a+116>>2]=e;if(!e){d=J[a+120>>2];e=J[d+24>>2];if(!(Ab[J[e+12>>2]](d)|0)){d=J[a+120>>2];f=J[d>>2];J[f+20>>2]=25;Ab[J[f>>2]](d)}J[a+112>>2]=J[e>>2];J[a+116>>2]=J[e+4>>2]}e=b;a:{if((c&16711680)!=16711680)break a;b=J[a+112>>2];J[a+112>>2]=b+1;H[b|0]=0;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(b)break a;d=J[a+120>>2];b=J[d+24>>2];if(!(Ab[J[b+ -12>>2]](d)|0)){d=J[a+120>>2];f=J[d>>2];J[f+20>>2]=25;Ab[J[f>>2]](d)}J[a+112>>2]=J[b>>2];J[a+116>>2]=J[b+4>>2]}b=e-8|0;c=c<<8;if((e|0)>15)continue;break}J[a+16>>2]=b;J[a+12>>2]=c}}function fy(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb-1040|0;xb=g;h=J[b>>2];J[g+12>>2]=h;j=a?a:g+16|0;d=a?d:256;a:{b:{c:{if(!(!h|!d)){while(1){f=c>>>2|0;if(!(c>>>0>131|f>>>0>=d>>>0)){f=h;break b}k=vq(j,g+12|0,d>>>0>f>>>0?f:d,e);f=J[g+12>>2];if((k|0)==-1){d=0;i=-1;break c}l=(g+16|0)!=(j| -0)?k:0;d=d-l|0;j=(l<<2)+j|0;c=f?(c+h|0)-f|0:0;i=i+k|0;if(!f)break c;h=f;if(d)continue;break}break c}f=h}if(!f)break a}if(!d|!c)break a;h=i;while(1){d:{i=fl(j,f,c,e);e:{if(i+2>>>0<=2){f:switch(i+1|0){case 1:J[g+12>>2]=0;break e;case 0:break a;default:break f}J[e>>2]=0;break e}f=J[g+12>>2]+i|0;J[g+12>>2]=f;h=h+1|0;d=d-1|0;if(d)break d}i=h;break a}j=j+4|0;c=c-i|0;i=h;if(c)continue;break}}if(a)J[b>>2]=J[g+12>>2];xb=g+1040|0;return i|0}function Yr(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];c=J[b+4>>2]; -e=J[b>>2];while(1){if(!c){if(!(Ab[J[b+12>>2]](a)|0))return 0;e=J[b>>2];c=J[b+4>>2]}d=e+1|0;c=c-1|0;if(K[e|0]!=255)while(1){e=J[a+460>>2];J[e+24>>2]=J[e+24>>2]+1;J[b+4>>2]=c;J[b>>2]=d;if(!c){if(!(Ab[J[b+12>>2]](a)|0))return 0;d=J[b>>2];c=J[b+4>>2]}c=c-1|0;e=K[d|0];d=d+1|0;if((e|0)!=255)continue;break}while(1){if(!c){if(!(Ab[J[b+12>>2]](a)|0))return 0;d=J[b>>2];c=J[b+4>>2]}c=c-1|0;f=K[d|0];e=d+1|0;d=e;if((f|0)==255)continue;break}if(!f){d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+2;J[b+4>>2]=c;J[b>>2]=e;continue}break}d= -J[J[a+460>>2]+24>>2];if(d){g=J[a>>2];J[g+24>>2]=d;J[g+20>>2]=119;J[J[a>>2]+28>>2]=f;Ab[J[J[a>>2]+4>>2]](a,-1);J[J[a+460>>2]+24>>2]=0}J[a+436>>2]=f;J[b+4>>2]=c;J[b>>2]=e;return 1}function Gg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=xb-32|0;xb=e;J[a+664>>2]=0;d=J[a+660>>2];a:{if(d){d=eD(a,J[a+656>>2],c+d|0,4,279776);break a}d=Sd(a,c,4,279776)}J[a+656>>2]=d;b:{if(!d){c=0;Ob(J[a+628>>2],279744,265984,0);break b}g=J[a+660>>2];if((c|0)>0){g=d+(g<<2)|0;d=0;while(1){i=P(d,20)+b|0;f=J[i+8>>2];j=J[i>>2];J[e+ -24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=e+8;h=J[a+664>>2];c:{if(!(!h|J[h>>2]!=(j|0))&(!f|(f|0)==J[h+8>>2]))break c;h=J[a+656>>2];d:{if(!h)break d;J[e+16>>2]=f;J[e+8>>2]=j;f=Bq(e+4|0,h,J[a+660>>2]);if(!f){J[a+664>>2]=0;break d}f=J[f>>2];J[a+664>>2]=f;if(f)break c}J[g>>2]=i;J[a+660>>2]=J[a+660>>2]+1;g=g+4|0}d=d+1|0;if((d|0)!=(c|0))continue;break}g=J[a+660>>2];d=J[a+656>>2]}Nh(d,g,4,1619)}xb=e+32|0;return c}function yk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g= -0,h=0,i=0;if(!(J[a+24>>2]|!c)){a:{b:{c:{h=J[a+44>>2];g=J[h+8>>2];if((g|0)>=0){f=J[h+12>>2]+1|0;i=(f|0)>0?f:0;if(i>>>0<=g>>>0)break b;f=g;while(1){f=((f>>>1|0)+f|0)+8|0;if(i>>>0>f>>>0)continue;break}if(f>>>0<=357913941){g=ic(J[h+16>>2],P(f,12));if(g)break c;g=J[h+8>>2];if(g>>>0>=f>>>0)break b}J[h+8>>2]=g^-1}J[194122]=J[42446];f=J[42445];J[194120]=J[42444];J[194121]=f;f=776480;break a}J[h+8>>2]=f;J[h+16>>2]=g}f=J[h+12>>2];d:{if(f>>>0>=i>>>0)break d;g=P(i-f|0,12);if(!g)break d;Nb(J[h+16>>2]+P(f,12)| -0,0,g)}J[h+12>>2]=i;f=(J[h+16>>2]+P(i,12)|0)-12|0}if(J[J[a+44>>2]+8>>2]<0)J[a+24>>2]=J[a+24>>2]|1;J[f+8>>2]=c;c=d<<4&48;J[f>>2]=c|J[f>>2]&-64|2;a=J[J[a+44>>2]>>2];J[f>>2]=c|e<<6|2;J[f+4>>2]=b-a}}function Ct(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=M[b+12>>2]>2]>>>0;a:{if(c)break a;d=J[b+8>>2]-a|0;if((K[a|0]|K[a+1|0]<<8)!=256|d>>>0<4|(d>>>0<16|c))break a;if((K[a+10|0]|K[a+11|0]<<8)!=5120)break a;c=K[a+14|0]|K[a+15|0]<<8;g=(c<<8|c>>>8)&65535;c=K[a+8|0]|K[a+9|0]<<8;e=(c<<8|c>>>8)&65535; -if(g>>>0<(e<<2)+4>>>0)break a;h=J[b+12>>2];c=K[a+4|0]|K[a+5|0]<<8;if(c)d=((c<<8|c>>>8)&65535)+a|0;else d=169776;i=J[b+4>>2];if(h>>>0>>0)break a;j=J[b+8>>2];f=j-d|0;d=P(e,20);if(f>>>0>>0)break a;e=J[b+16>>2]-d|0;J[b+16>>2]=e;if((e|0)<=0)break a;if(c)f=((c<<8|c>>>8)&65535)+a|0;else f=169776;c=f+d|0;if(c-i>>>0>h>>>0)break a;a=K[a+12|0]|K[a+13|0]<<8;a=P((a<<8|a>>>8)&65535,g);if(a>>>0>j-c>>>0)break a;a=e-a|0;J[b+16>>2]=a;k=(a|0)>0}return k}function Aoa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0; -e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;k=J[b+4>>2];h=J[b>>2];b=J[h+12>>2];a:{if(b)break a;a=h+12|0;while(1){if(!J[h>>2]){b=169776;break a}b=Po(a);if(!b)b=169776;i=J[a>>2];J[a>>2]=i?i:b;if(!i)break a;Oo(b);b=J[a>>2];if(!b)continue;break}}a=0;b:{if(!c|!J[b+8>>2])break b;c:{if(!k)while(1){if(!(Ab[J[b+8>>2]](J[b+12>>2],J[d>>2],f)|0))break b;f=f+g|0;d=d+e|0;a=a+1|0;if((c|0)!=(a|0))continue;break c}while(1){h=J[d>>2];i=((h&255)<<2)+k|0;j=J[i>>2];d:{if((j>>>16|0)==(h>>>8|0)){J[f>>2]=j&65535;break d}if(!(Ab[J[b+ -8>>2]](J[b+12>>2],h,f)|0))break b;if(h>>>0>2097151)break d;j=J[f>>2];if(j>>>0>65535)break d;J[i>>2]=j|h<<8&2147418112}f=f+g|0;d=d+e|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}a=c}return a|0}function hfa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(c>>>0>=65534){d=J[a>>2];J[d+20>>2]=12;Ab[J[d>>2]](a)}d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=255;e=J[d+4>>2]-1|0;J[d+4>>2]=e;a:{if(e)break a;if(Ab[J[d+12>>2]](a)|0)break a;d=J[a>>2];J[d+20>>2]=25;Ab[J[d>>2]](a)}d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=b;b= -J[d+4>>2]-1|0;J[d+4>>2]=b;b:{if(b)break b;if(Ab[J[d+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;e=d;d=c+2|0;H[e|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(Ab[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(Ab[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}}function Tq(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;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;if(c){a:{b:{if(c>>>0>=268435456){J[195395]=0;ea(2056,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break b;B()}J[195395]=0;d=c<<4;e=_(1078,d|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1)break a}c=Z()|0;b=J[a>>2];if(b){J[a+4>>2]=b;Kb(b)}ba(c|0);B()}J[a>>2]=e;f=d+e|0;J[a+8>>2]=f;j=Nb(e,0,d);J[a+4>>2]=f;f=J[b>>2]-12|0;while(1){d=J[f>>2]+b|0;a=J[d+12>>2];e=j+(i<<4)|0;h=J[d+16>>2];if(h>>>0<=a+3>>>0)g=0;else{k=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a+4| -0;J[d+12>>2]=a;g=+(x(2,k),C())}O[e>>3]=g;if(a+3>>>0>>0){h=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);J[d+12>>2]=a+4;g=+(x(2,h),C())}else g=0;O[e+8>>3]=g;i=i+1|0;if((i|0)!=(c|0))continue;break}}}function Kl(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;g=J[a+4>>2];if(c>>>0>=999999985){d=J[a>>2];J[d+20>>2]=56;J[d+24>>2]=1;Ab[J[J[a>>2]>>2]](a)}if(b>>>0>=2){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=15;Ab[J[J[a>>2]>>2]](a)}e=c+7&-8;a:{b:{h=(b<<2)+g|0;c=J[h+52>>2];if(!c){d=0;break b}while(1){d=c; -if(M[c+8>>2]>>0){c=J[c>>2];if(c)continue;break b}break}b=d;break a}b=J[(b<<2)+(d?248392:248384)>>2];c=999999984-e|0;c=b>>>0>>0?b:c;i=e+16|0;f=c+i|0;b=Qb(f);if(!b)while(1){if(c>>>0<=99){b=J[a>>2];J[b+20>>2]=56;J[b+24>>2]=2;Ab[J[J[a>>2]>>2]](a)}c=c>>>1|0;f=i+c|0;b=Qb(f);if(!b)continue;break}J[g+76>>2]=J[g+76>>2]+f;J[b+8>>2]=c+e;J[b>>2]=0;J[b+4>>2]=0;if(!d){J[h+52>>2]=b;break a}J[d>>2]=b}a=J[b+4>>2];J[b+4>>2]=a+e;J[b+8>>2]=J[b+8>>2]-e;return(a+b|0)+16|0}function vda(a,b,c){a=a|0;b=b|0;c=c|0;var d= -0,e=0,f=0,g=0,h=0;d=K[a+11|0];e=d+7>>>3|0;g=J[a+4>>2];a:{if(!d)break a;a=e>>>0<=1?1:e;f=a&3;if(d>>>0>=25){d=a&60;a=0;while(1){H[b|0]=K[b|0]+(K[c|0]>>>1|0);H[b+1|0]=K[b+1|0]+(K[c+1|0]>>>1|0);H[b+2|0]=K[b+2|0]+(K[c+2|0]>>>1|0);H[b+3|0]=K[b+3|0]+(K[c+3|0]>>>1|0);b=b+4|0;c=c+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}if(!f)break a;a=0;while(1){H[b|0]=K[b|0]+(K[c|0]>>>1|0);b=b+1|0;c=c+1|0;a=a+1|0;if((f|0)!=(a|0))continue;break}}b:{if((e|0)==(g|0))break b;f=g-e|0;h=f&1;d=0;a=0-e|0;if((e+1|0)!=(g|0)){e= -f&-2;while(1){H[b|0]=K[b|0]+(K[a+b|0]+K[c|0]>>>1|0);H[b+1|0]=K[b+1|0]+(K[a+(b+1|0)|0]+K[c+1|0]>>>1|0);b=b+2|0;c=c+2|0;d=d+2|0;if((e|0)!=(d|0))continue;break}}if(!h)break b;H[b|0]=K[b|0]+(K[a+b|0]+K[c|0]>>>1|0)}}function Uga(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;c=c<<2;f=J[c+J[b+8>>2]>>2];g=J[c+J[b+4>>2]>>2];c=J[c+J[b>>2]>>2];b=J[d>>2];h=J[a+332>>2];d=J[a+472>>2];j=J[d+28>>2];m=J[d+24>>2];n=J[d+20>>2];o=J[d+16>>2];d=J[a+112>>2];if(d>>>0>=2){d=d>>>1|0; -while(1){e=K[g|0]<<2;k=J[e+n>>2];i=K[f|0]<<2;l=J[i+m>>2];p=J[e+j>>2];i=h+J[i+o>>2]|0;e=K[c|0];H[b|0]=K[i+e|0];l=h+(l+p>>16)|0;H[b+1|0]=K[l+e|0];k=h+k|0;H[b+2|0]=K[k+e|0];e=K[c+1|0];H[b+3|0]=K[e+i|0];H[b+4|0]=K[e+l|0];H[b+5|0]=K[e+k|0];b=b+6|0;c=c+2|0;f=f+1|0;g=g+1|0;d=d-1|0;if(d)continue;break}d=J[a+112>>2]}if(d&1){a=K[g|0]<<2;d=J[a+n>>2];f=K[f|0]<<2;g=J[f+m>>2];j=J[a+j>>2];a=K[c|0];H[b|0]=K[a+(h+J[f+o>>2]|0)|0];H[b+1|0]=K[a+(h+(g+j>>16)|0)|0];H[b+2|0]=K[a+(d+h|0)|0]}}function fe(a,b,c,d){var e=Q(0), -f=Q(0),g=0,h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=Q(0),v=Q(0);m=O[d+8>>3];n=O[d>>3];o=O[c+8>>3];p=O[c>>3];q=O[b+8>>3];r=O[b>>3];b=J[a+8>>2];if(b){s=O[b+8>>3];m=m+s;t=O[b>>3];n=n+t;p=p+t;q=q+s;r=r+t;o=o+s}d=J[a+4>>2];b=d+16|0;a=J[a>>2];f=N[a+68>>2];i=Q(f*Q(m));e=N[a+64>>2];h=Q(e*Q(n));k=Q(f*Q(o));j=Q(e*Q(p));f=Q(f*Q(q));e=Q(e*Q(r));c=J[d+12>>2];a=J[d+8>>2];a:{if(K[d+4|0]){if(!J[b>>2])$e(a,c,b);g=J[a+24>>2];l=J[a+32>>2];if(!l){Ab[g|0](a,c,b,e,f,j,k,h,i,0);break a}Ab[g|0](a, -c,b,e,f,j,k,h,i,J[l+12>>2]);break a}u=N[d>>2];v=Q(i*u);if(!J[d+16>>2])$e(a,c,b);l=J[a+24>>2];e=Q(Q(f*u)+e);j=Q(Q(k*u)+j);h=Q(v+h);g=J[a+32>>2];if(g)g=J[g+12>>2];else g=0;Ab[l|0](a,c,b,e,f,j,k,h,i,g)}N[d+32>>2]=i;N[d+28>>2]=h}function wD(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d=J[a+708>>2];switch(d|0){case 0:break a;case 1:break c;default:break b}}mc(a,c);return}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break a;Wb(a,261381);mc(a,c);return}d=J[a+200>>2];if(d&1){if(d&4)J[a+200>>2]=d|8;cc(a,J[a+740>>2]);d=Ed(a, -c+1|0);J[a+740>>2]=d;if(!d){Wb(a,261439);return}Gd(a,d,c);Fc(a,d,c);e=mc(a,0);d=J[a+740>>2];if(e){cc(a,d);J[a+740>>2]=0;return}f=c+d|0;H[f|0]=0;c=d;while(1){e=c;c=c+1|0;if(K[e|0])continue;break}c=Ed(a,28);if(!c){Wb(a,261471);cc(a,J[a+740>>2]);J[a+740>>2]=0;return}J[c+24>>2]=0;J[c+4>>2]=d;J[c>>2]=-1;J[c+16>>2]=0;J[c+20>>2]=0;d=((e|0)!=(f|0))+e|0;J[c+8>>2]=d;g=c,h=ac(d),J[g+12>>2]=h;b=zr(a,b,c);cc(a,J[a+740>>2]);J[a+740>>2]=0;cc(a,c);if(b)Wb(a,261511);return}gc(a,261414);B()}function OC(a){var b=0, -c=0,d=0,e=0,f=0;f=xb-16|0;xb=f;d=J[a+584>>2];e=J[d>>2];if((e|0)==-1){b=L[a+86>>1]|(L[a+98>>1]<<3|L[a+84>>1]<<6);e=b-1033|0;c=1;a:{if(!(e>>>0>3|(e|0)==2))break a;b:switch(b-521|0){case 0:case 3:c=3;break a;default:c=0;if((b|0)==2059)break a;break;case 1:case 2:break b}c=-1}e=c;J[d>>2]=e}c=4;c:{d:{e:switch(e|0){case 3:c=1;break d;default:Ob(J[a+628>>2],J[a>>2],269736,0);d=0;break c;case 0:break d;case 1:break e}c=2}J[d+8>>2]=c;f:{if(K[a+13|0]&4){e=J[a+68>>2];b=Kpa(J[a+72>>2],0,e,0);c=(zb|0)!=0;break f}e= -J[a+56>>2];b=Kpa(J[a+100>>2],0,e,0);c=(zb|0)!=0}b=e?c&1?0:b:0;J[d+16>>2]=b;if(!(!(b&2147483647)|(b|0)<=0)){b=Qb(b<<1);J[d+12>>2]=b;d=1;if(b)break c}d=J[a+628>>2];J[f>>2]=J[a>>2];Ob(d,285568,268002,f);d=0}xb=f+16|0;return d}function Vja(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=Q(0),k=0,l=0,m=0,n=0;g=xb-944|0;xb=g;e=Fd(g,0);h=J[a+8>>2];k=J[a+16>>2];l=K[a+40|0];m=J[a+12>>2];f=J[a+4>>2];J[195395]=0;f=Ba(1100,e|0,k|0,f|0,h|0,32,f<<2,(m^-1)>>>31|0,!l|0)|0;h=J[195395];J[195395]=0;a:{b:{if((h| -0)==1)break b;if(f){c:{if((d|0)!=3)break c;i=O[a+32>>3];if(i==-1)break c;J[195395]=0;j=Q(i);N[e+344>>2]=j>Q(0)?j:Q(0);a=J[195395];J[195395]=0;if((a|0)==1)break b}J[195395]=0;n=ha(1105,e|0,b|0,c|0,d|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b}J[e>>2]=234140;J[195395]=0;_(1097,e|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;_(1098,e|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;xb=g+944|0;return n|0}a=Z()|0;Nf(e);ba(a|0);B()}ga(0)|0;_b();B()}function $l(a,b,c){var d=0,e=0,f=0, -g=0;a:{b:{c:switch(K[a|0]){case 0:if(!b|c>>>0<2)break b;e=1;a=a+1|0;while(1){d=(a+(e<<1)|0)-2|0;d=K[d|0]|K[d+1|0]<<8;if(((d<<8|d>>>8)&65535)==(b|0))return e;e=e+1|0;if((e|0)!=(c|0))continue;break}break b;case 1:if(!b|c>>>0<2)break b;d=1;g=a+1|0;while(1){a=g+P(e,3)|0;f=K[a+2|0];a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535;if(!(a>>>0>b>>>0|a+f>>>0>>0))break a;e=e+1|0;d=(d+f|0)+1|0;if(d>>>0>>0)continue;break}break b;case 2:break c;default:break b}if(!b|c>>>0<2)break b;d=1;g=a+1|0;while(1){a=g+(e<< -2)|0;f=K[a+2|0]|K[a+3|0]<<8;f=(f<<8|f>>>8)&65535;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535;if(!(a>>>0>b>>>0|a+f>>>0>>0))break a;e=e+1|0;d=(d+f|0)+1|0;if(d>>>0>>0)continue;break}}return 0}return(b+d|0)-a|0}function DD(a,b,c){var d=0,e=0,f=0;d=xb-528|0;xb=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Wb(a,260435);mc(a,c);break a}if(!(e&2)){Wb(a,260459);mc(a,c);break a}if(!(!b|!(K[b+8|0]&64))){Wb(a,260484);mc(a,c);break a}if(!(L[a+392>>1]<<1==(c|0)&c>>>0<=512)){Wb(a,260505);mc(a,c);break a}if(c>>>0>=2){c= -c>>>1|0;e=c>>>0<=1?1:c;c=0;while(1){f=d+14|0;Gd(a,f,2);Fc(a,f,2);f=K[d+14|0]|K[d+15|0]<<8;I[(d+16|0)+(c<<1)>>1]=f<<8|f>>>8;c=c+1|0;if((e|0)!=(c|0))continue;break}}if(mc(a,0))break a;e=d+16|0;b:{if(!a|!b)break b;if((L[b+20>>1]-257&65535)>>>0<=65279){Wb(a,254751);break b}bi(a,b,8,0);c=Ed(a,512);J[a+596>>2]=c;if(c){a=L[b+20>>1];if(a)Mb(c,e,a<<1);J[b+124>>2]=c;J[b+8>>2]=J[b+8>>2]|64;J[b+184>>2]=J[b+184>>2]|8;break b}Wb(a,254968)}}xb=d+528|0;return}gc(a,260410);B()}function j8(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;h=J[b+44>>2];i=J[b+24>>2];if(h>>>0>>0){J[b+44>>2]=i;h=i}m=-1;n=-1;o=f&24;a:{if(!o|(e|0)==1&(o|0)==24)break a;if(h){j=h-(H[b+43|0]<0?J[b+32>>2]:b+32|0)>>2;k=j>>31}b:{c:switch(e|0){case 1:if(f&8){g=J[b+12>>2]-J[b+8>>2]>>2;l=g>>31;break b}g=i-J[b+20>>2]>>2;l=g>>31;break b;case 0:break b;case 2:break c;default:break a}g=j;l=k}d=d+l|0;c=c+g|0;d=g>>>0>c>>>0?d+1|0:d;if((d|0)<0|(c>>>0>j>>>0&(d|0)>=(k|0)|(d|0)>(k|0)))break a;e=f&8;d:{if(!(c| -d))break d;if(J[b+12>>2]?0:e)break a;if(!(f&16))break d;if(!i)break a}if(e){J[b+16>>2]=h;J[b+12>>2]=J[b+8>>2]+(c<<2)}if(f&16)J[b+24>>2]=J[b+20>>2]+(c<<2);m=c;n=d}J[a+8>>2]=m;J[a+12>>2]=n;J[a>>2]=0;J[a+4>>2]=0}function Doa(a){a=a|0;var b=0,c=0,d=0;Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(J[a+56>>2]){J[a+60>>2]=0;Kb(J[a- -64>>2])}J[a+56>>2]=0;J[a+60>>2]=0;J[a- -64>>2]=0;if(J[a+108>>2]){c=J[a+112>>2];if(c){b=J[a+116>>2]+P(c,28)|0;while(1){d=b-28|0;if(J[d+4>>2]){J[d+8>>2]=0; -Kb(J[d+12>>2])}b=b-28|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue;break}}J[a+112>>2]=0;Kb(J[a+116>>2])}J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;if(J[a+120>>2]){c=J[a+124>>2];if(c){b=J[a+128>>2]+P(c,28)|0;while(1){d=b-28|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}b=b-28|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue;break}}J[a+124>>2]=0;Kb(J[a+128>>2])}J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;Ub(J[a+48>>2]);J[a+48>>2]=0}function sv(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;a:{if(b>>>0>c>>>0)break a;f=J[a+12>>2];if(f>>>0<=d>>>0|e>>>0>=f>>>0)break a;g=J[a+8>>2];f=J[g+(d<<3)>>2];g=J[g+(e<<3)>>2];b:{if((f|0)<=(g|0)){i=g;g=f;f=e;e=d;break b}i=f;f=d}d=J[a+4>>2];f=f<<3;h=J[d+f>>2];k=f;f=J[a>>2];l=J[k+f>>2];n=h-l|0;e=e<<3;j=J[e+d>>2];m=J[e+f>>2];o=j-m|0;if(!((g|0)==(i|0)|(h|0)==(j|0))){k=i-g|0;e=h-j|0;i=0;while(1){h=b<<3;f=J[h+J[a>>2]>>2];c:{if((f|0)<=(m|0)){f=f+o|0;break c}if((f|0)>=(l|0)){f=f+n|0;break c}if(!(i&255))p=dc(e,k);f=Rb(J[h+J[a+ -8>>2]>>2]-g|0,p)+j|0;d=J[a+4>>2];i=1}J[d+h>>2]=f;b=b+1|0;if(c>>>0>=b>>>0)continue;break}break a}while(1){a=b<<3;e=J[a+f>>2];J[a+d>>2]=(e|0)>(m|0)?(e|0)<(l|0)?j:e+n|0:e+o|0;b=b+1|0;if(c>>>0>=b>>>0)continue;break}}}function Eoa(a){a=a|0;var b=0,c=0,d=0;Ub(J[a+36>>2]);J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(J[a+96>>2]){J[a+100>>2]=0;Kb(J[a+104>>2])}J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;if(J[a+196>>2]){c=J[a+200>>2];if(c){b=J[a+204>>2]+(c<<5)|0;while(1){d=b-32|0;if(J[d+4>>2]){J[d+8>>2]= -0;Kb(J[d+12>>2])}b=b-32|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue;break}}J[a+200>>2]=0;Kb(J[a+204>>2])}J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;if(J[a+208>>2]){c=J[a+212>>2];if(c){b=J[a+216>>2]+P(c,24)|0;while(1){d=b-24|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}b=b-24|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue;break}}J[a+212>>2]=0;Kb(J[a+216>>2])}J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;Ub(J[a+48>>2]);J[a+48>>2]=0}function DW(a){a=a|0;var b=0,c=0,d= -0,e=0,f=0;a:{f=J[a+20>>2];if(!f)break a;b=J[a>>2];if(!((b|0)<=0|(b|0)!=J[a+12>>2])){c=J[a+4>>2];b=J[c+20>>2];if(b)Kb(b);b=J[c+4>>2];b:{if(!b){b=c;while(1){d=J[b+8>>2];e=J[d>>2]!=(b|0);b=d;if(e)continue;break}break b}while(1){d=b;b=J[b>>2];if(b)continue;break}}if((c|0)==J[a+4>>2])J[a+4>>2]=d;J[a+12>>2]=J[a+12>>2]-1;Xj(J[a+8>>2],c);Kb(c);f=J[a+20>>2]}e=J[a+16>>2];c=a+8|0;d=c;b=J[a+8>>2];c:{if(!b)break c;while(1){d=b;c=J[b+16>>2];if((c|0)>(e|0)){c=b;b=J[b>>2];if(b)continue;break c}if((c|0)>=(e|0))break a; -b=J[d+4>>2];if(b)continue;break}c=d+4|0}b=Pb(24);J[b+16>>2]=e;J[b+8>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=f;J[c>>2]=b;d=J[J[a+4>>2]>>2];if(d){J[a+4>>2]=d;b=J[c>>2]}Sh(J[a+8>>2],b);J[a+12>>2]=J[a+12>>2]+1}}function bn(a){var b=Q(0),c=0,d=0,e=0,f=0;f=xb-16|0;xb=f;e=(D(a),v(2));c=e&2147483647;a:{if(c>>>0<=1061752794){b=Q(1);if(c>>>0<964689920)break a;b=Xf(+a);break a}if(c>>>0<=1081824209){if(c>>>0>=1075235812){b=Q(-Xf(((e|0)<0?3.141592653589793:-3.141592653589793)+ +a));break a}d=+a;if((e|0)<0){b=Wf(d+ -1.5707963267948966);break a}b=Wf(1.5707963267948966-d);break a}if(c>>>0<=1088565717){if(c>>>0>=1085271520){b=Xf(((e|0)<0?6.283185307179586:-6.283185307179586)+ +a);break a}if((e|0)<0){b=Wf(-4.71238898038469-+a);break a}b=Wf(+a+-4.71238898038469);break a}b=Q(a-a);if(c>>>0>=2139095040)break a;c=Aq(a,f+8|0);d=O[f+8>>3];b:switch(c&3){case 0:b=Xf(d);break a;case 1:b=Wf(-d);break a;case 2:b=Q(-Xf(d));break a;default:break b}b=Wf(d)}a=b;xb=f+16|0;return a}function xt(a,b){var c=0,d=0,e=0,f=0,g=Q(0),h=Q(0), -i=Q(0),j=Q(0);d=J[a>>2];e=d+16|0;a=J[a+4>>2];j=Q(N[a+68>>2]*Q(O[b+8>>3]));i=Q(N[a+64>>2]*Q(O[b>>3]));b=J[d+12>>2];a=J[d+8>>2];a:{b:{if(K[d+4|0]){if(!J[e>>2])break a;g=N[d+20>>2];h=N[d+24>>2];if(!(g==N[d+28>>2]&h==N[d+32>>2])){f=J[a+16>>2];c=J[a+32>>2];if(c)c=J[c+4>>2];else c=0;Ab[f|0](a,b,e,g,h,c)}c=J[a+28>>2];f=J[a+32>>2];if(!f){Ab[c|0](a,b,e,0);break b}Ab[c|0](a,b,e,J[f+16>>2]);break b}i=Q(Q(j*N[d>>2])+i);if(!J[d+16>>2])break a;g=N[d+20>>2];h=N[d+24>>2];if(!(g==N[d+28>>2]&h==N[d+32>>2])){f=J[a+ -16>>2];c=J[a+32>>2];if(c)c=J[c+4>>2];else c=0;Ab[f|0](a,b,e,g,h,c)}f=J[a+28>>2];c=J[a+32>>2];if(c)c=J[c+16>>2];else c=0;Ab[f|0](a,b,e,c)}J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0}N[d+32>>2]=j;N[d+28>>2]=i}function BF(a){var b=0,c=0,d=0;b=xb-65808|0;xb=b;J[b+44>>2]=0;J[b+48>>2]=0;a:{if(!a){CF(b+8|0);break a}J[b+48>>2]=J[a+40>>2];c=J[a+36>>2];J[b+40>>2]=J[a+32>>2];J[b+44>>2]=c;c=J[a+28>>2];J[b+32>>2]=J[a+24>>2];J[b+36>>2]=c;c=J[a+20>>2];J[b+24>>2]=J[a+16>>2];J[b+28>>2]=c;c=J[a+12>>2];J[b+16>>2]=J[a+8>>2];J[b+ -20>>2]=c;c=J[a+4>>2];J[b+8>>2]=J[a>>2];J[b+12>>2]=c}c=J[b+36>>2];a=J[b+8>>2];if(!a)a=J[b+40>>2];c=Ab[a|0](c,0,11)|0;J[b+52>>2]=c;b:{if(!c){a=0;break b}a=0;c=mi(b+8|0,c);J[b+128>>2]=0;J[b+64>>2]=0;J[b+65776>>2]=c;J[b+65780>>2]=zb;J[b+56>>2]=0;J[b+60>>2]=0;d=Qb(65800);c=b+65792|0;J[c>>2]=0;J[c+4>>2]=0;J[b+65784>>2]=0;J[b+65788>>2]=0;if(!d){Ab[J[b+28>>2]](J[b+36>>2],J[b+52>>2])|0;break b}J[b+65800>>2]=0;a=Mb(d,b+8|0,65800)}xb=b+65808|0;return a}function Ju(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e= -xb-16|0;xb=e;d=1;a:{b:switch(K[a+3|0]){case 0:d=ap(a+8|0,b);break a;case 1:d=0;J[e+12>>2]=0;c=a+8|0;if(!Iu(c,b,e+12|0))break a;f=J[b+12>>2];a=a+16|0;g=J[b+4>>2];if(f>>>0>>0|J[b+8>>2]-a>>>0<2)break a;a=K[a|0]|K[a+1|0]<<8;if(J[b+16>>2]<=0|(c+((a<<8|a>>>8)&65535)|0)-g>>>0>f>>>0)break a;d=1;break a;case 2:d=0;c=a+8|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<28)break a;if(!ap(c,b)|!(K[a+16|0]|K[a+17|0]<<8)|!(K[a+18|0]|K[a+19|0]<<8))break a;d=(K[a+20|0]|K[a+21|0]<<8)!=0;break a;case 4:d=og(a+ -8|0,b);break a;case 5:break b;default:break a}d=0;c=a+8|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<20)break a;if(!Iu(c,b,0))break a;d=(K[a+16|0]|K[a+17|0]<<8)!=0}xb=e+16|0;return d|0}function si(a,b){var c=0,d=0,e=0;a:{if(J[b+8>>2]==(a|0)|M[b+12>>2]>2]>>>0)break a;d=1;b:{c:switch(K[a|0]){case 0:if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<4)break a;c=a+4|0;if(M[b+12>>2]>2]>>>0)break a;d=0;e=(K[a+1|0]>>>4&3)+1|0;a=K[a+2|0]|K[a+3|0]<<8;a=P(e,(a<<8|a>>>8)&65535);if(a>>>0>J[b+ -8>>2]-c>>>0)break b;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0;case 1:break c;default:break b}if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<6)break a;c=K[a+2|0]|K[a+3|0]<<8|(K[a+4|0]<<16|K[a+5|0]<<24);c=Kpa(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24),0,(K[a+1|0]>>>4&3)+1|0,0);if(zb)break a;a=a+6|0;if(M[b+12>>2]>2]>>>0)break a;d=0;if(c>>>0>J[b+8>>2]-a>>>0)break b;a=J[b+16>>2]-c|0;J[b+16>>2]=a;d=(a|0)>0}return d}return 0}function rs(a,b,c){var d=0,e=0,f=0;a:{d=J[a>>2];if(!d)break a;e=J[a+12>> -2];b:{c:{if(!e)break c;f=J[a+4>>2];d:{if(f){e=Ab[f|0](J[d>>2],b)|0;break d}if(b>>>0>>0)break c;e=b>>>0>e>>>0?-1:0}if(!e)break b}gj(a,0,b,a,0,0);if(J[a+8>>2]){ss(a);gj(a,0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}e=0;d=J[a>>2];if(!d)break a;d=J[d>>2];e=J[a+4>>2];e:{if(e){e=Ab[e|0](d,b)|0;break e}e=1;if(b>>>0>>0)break a;e=b>>>0>d>>>0?-1:0}if(e)break a;a=J[a>>2];J[a+4>>2]=c;J[a>>2]=b;return 1}d=Qb(16);if(d){J[d+4>>2]=c;J[d>>2]=b;b=J[a>>2];f:{if(!b){J[d+8>>2]=0;b=d+12|0;break f}if((e|0)<0){J[d+ -8>>2]=b;J[d+12>>2]=J[b+12>>2];b=b+12|0;break f}J[d+12>>2]=b;J[d+8>>2]=J[b+8>>2];b=b+8|0}J[b>>2]=0;J[a+12>>2]=0;J[a>>2]=d;J[a+20>>2]=J[a+20>>2]+1;a=1}else a=0;return a}function oA(a){var b=0,c=0,d=0,e=0;b=J[a+20>>2];d=a+24|0;if((b|0)!=(d|0))while(1){c=J[b+20>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);c=J[b+4>>2];a:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break a}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}e=a+20|0;Uj(e,J[a+24>>2]);J[a+20>>2]=d;J[a+24>>2]=0;J[a+ -28>>2]=0;b=J[a+4>>2];d=a+8|0;if((b|0)!=(d|0))while(1){c=J[b+20>>2];if(c){ch(c+32|0);qd(c+4|0);Kb(c)}c=J[b+4>>2];b:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break b}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}c=a+4|0;Tj(c,J[a+8>>2]);J[a+4>>2]=d;J[a+8>>2]=0;J[a+12>>2]=0;b=J[a>>2];if(b){ch(b+32|0);qd(b+4|0);Kb(b);J[a>>2]=0}Uj(e,J[a+24>>2]);Tj(c,J[a+8>>2])}function PV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=xb-16|0;xb=e;J[195395]=0;ca(3537,e+8|0,a|0)| -0;d=J[195395];J[195395]=0;a:{b:{c:{if((d|0)!=1){d:{if(!c|!K[e+8|0])break d;d=J[J[a>>2]-12>>2];J[195395]=0;d=J[(a+d|0)+24>>2];f=J[195395];J[195395]=0;e:{if((f|0)==1)break e;J[195395]=0;b=aa(3546,d|0,b|0,c|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break e;if((b|0)==(c|0))break d;b=J[J[a>>2]-12>>2];J[195395]=0;$(3539,a+b|0,1);b=J[195395];J[195395]=0;if((b|0)!=1)break d}b=ga(0)|0;Qm(e+8|0);break c}Qm(e+8|0);break b}b=ga(0)|0}sa(b|0)|0;b=J[J[a>>2]-12>>2];J[195395]=0;ea(3540,a+b|0);b=J[195395];J[195395]= -0;if((b|0)==1)break a;ua()}xb=e+16|0;return a|0}a=Z()|0;J[195395]=0;ja(3516);b=J[195395];J[195395]=0;if((b|0)!=1){ba(a|0);B()}ga(0)|0;_b();B()}function Nn(a){var b=0,c=0,d=0;c=xb-32|0;xb=c;a:{if(!Gg(a,287024,11)){Ob(J[a+628>>2],265942,266319,0);a=0;break a}b=Qb(112);J[a+584>>2]=b;if(!b){b=J[a+628>>2];J[c>>2]=J[a>>2];Ob(b,263551,266754,c);a=0;break a}d=J[a+8>>2];J[b>>2]=d;J[b+48>>2]=J[a+672>>2];J[a+672>>2]=1666;J[b+52>>2]=J[a+668>>2];J[a+668>>2]=1667;J[b+56>>2]=J[a+676>>2];J[a+676>>2]=1668;J[b+44>> -2]=0;J[b+36>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;if(!d)J[a+12>>2]=J[a+12>>2]|256;J[b+80>>2]=0;J[c+16>>2]=1669;xc(a,65540,c+16|0);J[J[a+584>>2]+96>>2]=0;J[a+556>>2]=1670;J[a+548>>2]=1670;J[a+540>>2]=1670;J[a+520>>2]=1671;J[a+516>>2]=1672;J[a+572>>2]=1673;J[a+564>>2]=1674;J[a+560>>2]=1675;J[a+552>>2]=1675;J[a+544>>2]=1675;J[a+536>>2]=1676;J[a+532>>2]=1677;J[a+524>>2]=1672;a=1}xb=c+32|0;return a}function Gn(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+52>>2];c=K[a+32|0];a:{b:{c:{if(c)break c;d=J[a+24>>2];if(d>>> -0>=M[a+28>>2])break c;if(M[a+56>>2]>2])break b}if(M[a+56>>2]>=M[a+60>>2]){b=b+1|0;J[a+52>>2]=b;e=-1;if(b>>>0>16)break a;J[a+60>>2]=M[a+40>>2]>b>>>0?(1<>2]+1|0}if(c){J[a+60>>2]=256;J[a+52>>2]=9;H[a+32|0]=0;b=9}e=-1;if(J[a+4>>2])break a;d=0;c=or(J[a+164>>2],a+8|0,b);J[a+24>>2]=0;f=c<<3;J[a+28>>2]=f;J[a+36>>2]=c+J[a+36>>2];g=J[a+52>>2];J[a+4>>2]=g>>>0>c>>>0;if(f>>>0<=g>>>0)break a;J[a+28>>2]=(f|1)-g;if(!c)break a}J[a+24>>2]=b+d;g=(d>>>3|0)+a|0;c=g+8|0;f=d&7;e=K[c|0]>>>f|0;d= -8-f|0;a=b-d|0;if(a>>>0<8)b=g+9|0;else{a=a-8|0;e=K[c+1|0]<>>0>=b>>>0)break a;g=a+1|0;d=H[a|0];a=0;e=52;b:{while(1){f=a+e|0;c=f&-2;c=(K[c+37474|0]<<8|K[c+37475|0])+37472|0;h=K[c|0]&127;if((h|0)==(d|0))break b;c=f>>1;f=(d|0)>(h|0);a=f?c+1|0:a;e=f?e:c;if((a|0)<(e|0))continue;break}return 0}c:{if(b>>>0<=g>>>0){d=K[c|0];break c}d=K[c|0];while(1){a=K[c+1|0];e=a&127;h=d<<24>>24; -f=K[g|0];d=a<<24>>24;d:{e:{if((h|0)<0){if((e|0)!=(f|0))break e;c=c+1|0;break d}if(!e)break a;a=(((d|0)>=0?1:3)+c|0)+1|0;while(1){c=(K[a+1|0]|K[a|0]<<8)+37472|0;d=K[c|0];if((f|0)==(d&127))break d;a=a+2|0;c=(e|0)>1;e=e-1|0;if(c)continue;break}break a}return 0}g=g+1|0;if((g|0)!=(b|0))continue;break}}if(d<<24>>24<0|H[c+1|0]>=0)break a;return K[c+3|0]|K[c+2|0]<<8}return 0}function xma(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=xb-32|0;xb=f;c=c+2|0;a:{if(d>>>0<=c>>>0)break a;h=J[b+80>>2];while(1){b:{a= -P(c,20)+h|0;e=L[a-24>>1];if((e&65024)!=5120|!(1<>1];if((g&65024)!=5632|!(1<>1];g=1<>>8|0:0;if((g|0)!=220&(g|0)!=25)break b;Kd(b,c-1|0,c+1|0);J[f+24>>2]=J[e+16>>2];b=J[e+12>>2];J[f+16>>2]=J[e+8>>2];J[f+20>>2]=b;b=J[e+4>>2];J[f+8>>2]=J[e>>2];J[f+12>>2]=b;J[e+16>>2]=J[a+16>>2];b=J[a+12>>2];J[e+8>>2]=J[a+8>>2];J[e+12>>2]=b;b=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=b;J[a+16>>2]=J[f+24>>2];b=J[f+20>>2];J[a+8>>2]=J[f+16>>2];J[a+12>>2]=b; -b=J[f+12>>2];J[a>>2]=J[f+8>>2];J[a+4>>2]=b;break a}c=c+1|0;if((d|0)!=(c|0))continue;break}}xb=f+32|0}function gP(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-16|0;xb=e;a:{if(J[a+4>>2])break a;d=6;b:{if(J[a+12>>2]!=1)break b;g=J[a>>2];c=J[a+28>>2];if(c)J[(J[a+36>>2]+(c<<4)|0)-4>>2]=b;h=c+1|0;d=J[a+32>>2];c:{if(h>>>0<=d>>>0){f=J[a+36>>2];break c}J[e+8>>2]=0;i=(c&-8)+8|0;f=Tb(g,16,d,i,J[a+36>>2],e+8|0);J[a+36>>2]=f;d=J[e+8>>2];if(d)break b;J[a+32>>2]=i}J[((h<<4)+f|0)-16>>2]=0;J[((c<<4)+f|0)+ -12>>2]=0;J[a+28>>2]=h;c=J[a- -64>>2];if(c)J[(J[a+72>>2]+(c<<4)|0)-4>>2]=b;f=c+1|0;b=J[a+68>>2];d:{if(f>>>0<=b>>>0){b=J[a+72>>2];break d}J[e+12>>2]=0;d=g;g=(c&-8)+8|0;b=Tb(d,16,b,g,J[a+72>>2],e+12|0);J[a+72>>2]=b;d=J[e+12>>2];if(d)break b;J[a+68>>2]=g}J[((f<<4)+b|0)-16>>2]=0;J[((c<<4)+b|0)+12>>2]=0;J[a+64>>2]=f;break a}J[a+4>>2]=d}xb=e+16|0}function k6(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-16|0;xb=d;c=J[b+12>>2];c=(J[b+8>>2]<<((c^-1)>>>9&1))+(c>>>4&16^52)|0;J[d+8>>2]=c;J[d+4>>2]=108;J[a+8>>2]=c+J[a+8>> -2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);c=(D(Q(O[b+24>>3])),v(2));H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;Lb(J[a+4>>2],d+12|0,4);c=(D(Q(O[b+32>>3])),v(2));H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;Lb(J[a+4>>2],d+12|0,4);if(!(H[b+13|0]&1)){Lb(J[a+4>>2],b+40|0,4);Lb(J[a+4>>2],b+44|0,4);Lb(J[a+4>>2],b+48|0,4);Lb(J[a+4>>2], -b+52|0,4)}c=J[b+8>>2];if(c)Lb(J[a+4>>2],b+56|0,c<<((J[b+12>>2]^-1)>>>9&1));xb=d+16|0}function wr(a){var b=0,c=0,d=0;Pd(a+40|0,0,4);b=J[a+152>>2];if(b){Kb(b);J[a+152>>2]=0}b=J[a+156>>2];if(b){Kb(b);J[a+156>>2]=0}b=J[a+160>>2];if(b){Kb(b);J[a+160>>2]=0}b=J[a+172>>2];if(b){Kb(b);J[a+172>>2]=0}b=J[a+200>>2];if(b){Kb(b);J[a+200>>2]=0}b=J[a+232>>2];if(b){Kb(b);J[a+232>>2]=0}b=J[a+212>>2];if(b){Kb(b);J[a+212>>2]=0}b=J[a+216>>2];if(b){Kb(b);J[a+216>>2]=0}b=J[a+220>>2];if(b){Kb(b);J[a+220>>2]=0}b=J[a+224>> -2];if(b){Kb(b);J[a+224>>2]=0}b=J[a+184>>2];if(b){Kb(b);J[a+184>>2]=0}b=J[a+188>>2];if(b){Kb(b);J[a+188>>2]=0}J[a+44>>2]=J[a+44>>2]&-385;c=J[a+236>>2];if((c|0)>0){b=0;while(1){d=J[(J[a+240>>2]+P(b,12)|0)+8>>2];if(d){Kb(d);c=J[a+236>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}J[a+236>>2]=0;b=J[a+240>>2];if(b){Kb(b);J[a+240>>2]=0}}function Ym(a){var b=0,c=0,d=0,e=0;e=xb-16|0;xb=e;d=(D(a),v(2));c=d&2147483647;a:{if(c>>>0<=1061752794){if(c>>>0<964689920)break a;a=Wf(+a);break a}if(c>>>0<=1081824209){b= -+a;if(c>>>0<=1075235811){if((d|0)<0){a=Q(-Xf(b+1.5707963267948966));break a}a=Xf(b+-1.5707963267948966);break a}a=Wf(-(((d|0)>=0?-3.141592653589793:3.141592653589793)+b));break a}if(c>>>0<=1088565717){if(c>>>0<=1085271519){b=+a;if((d|0)<0){a=Xf(b+4.71238898038469);break a}a=Q(-Xf(b+-4.71238898038469));break a}a=Wf(((d|0)<0?6.283185307179586:-6.283185307179586)+ +a);break a}if(c>>>0>=2139095040){a=Q(a-a);break a}c=Aq(a,e+8|0);b=O[e+8>>3];b:switch(c&3){case 0:a=Wf(b);break a;case 1:a=Xf(b);break a; -case 2:a=Wf(-b);break a;default:break b}a=Q(-Xf(b))}xb=e+16|0;return a}function Pma(a){a=a|0;var b=0;b=a+24|0;jc(b,1937007464,1,1);Uc(b,0,894);jc(b,1667460464,9,1);jc(b,1819239276,9,1);Uc(b,0,0);jc(b,1769172844,J[a+8>>2]==1098015074?10:8,1);Uc(b,0,0);jc(b,1718185569,J[a+8>>2]==1098015074?10:8,1);Uc(b,0,0);jc(b,1718185522,8,1);Uc(b,0,0);jc(b,1718185523,8,1);Uc(b,0,0);jc(b,1835361385,J[a+8>>2]==1098015074?10:8,1);Uc(b,0,0);jc(b,1835361330,8,1);Uc(b,0,0);jc(b,1768843636,J[a+8>>2]==1098015074?10:8,1); -Uc(b,0,0);Uc(b,0,895);jc(b,1919707495,11,1);if(J[a+8>>2]==1098015074)Uc(b,0,896);jc(b,1667329140,9,1);if(vH(J[b>>2],1196643650,J[b+40>>2],J[b+48>>2]))a=1;else a=(vH(J[b>>2],1196445523,J[b+44>>2],J[b+52>>2])|0)!=0;if(!a){Uc(b,0,0);jc(b,1919118452,9,1)}jc(b,1818847073,9,1);jc(b,1668049255,9,1);jc(b,1836279156,9,1)}function wg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(c-37>>>0<4294967261)break a;d=J[a>>2];if(d>>>0>=b>>>0)break a;b:{c:{g=K[d|0];switch(g-43|0){case 0:case 2:break c;default:break b}}d= -d+1|0;if((d|0)==(b|0))break a;k=(g|0)==45;switch(K[d|0]-43|0){case 0:case 2:break a;default:break b}}h=2147483647/(c>>>0)|0;if(b>>>0>d>>>0){l=P(c,h)^2147483647;d:{while(1){g=e;e:{e=K[d|0];switch(e|0){case 0:case 9:case 10:case 12:case 13:case 32:break d;default:break e}}if(e<<24>>24<0)break d;i=H[e+31104|0];if((i|0)<0|(c|0)<=(i|0))break d;e=1;j=f;f:{if((f|0)>(h|0))break f;if((f|0)==(h|0)){j=h;if((i|0)>(l|0))break f}e=g;j=i+P(c,f)|0}f=j;d=d+1|0;if((d|0)!=(b|0))continue;break}g=e;d=b}e=g&255?2147483647: -f}J[a>>2]=d;f=k?0-e|0:e}return f}function xn(a){a=a|0;var b=0,c=0,d=0;J[a+244>>2]=409660;J[a>>2]=409400;J[195395]=0;ea(1986,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)a:{d=J[a+232>>2];c=a+236|0;if((d|0)!=(c|0))while(1){b=J[d+20>>2];if(b)Ab[J[J[b>>2]+4>>2]](b);b=J[d+4>>2];b:{if(b)while(1){d=b;b=J[b>>2];if(b)continue;break b}while(1){b=d;d=J[d+8>>2];if((b|0)!=J[d>>2])continue;break}}if((c|0)!=(d|0))continue;break}b=a+244|0;yn(a+232|0,J[a+236>>2]);d=408688;c=Wq(a,409780);J[a+244>>2]=408688;c:{if(K[c+276| -0])break c;a=J[c+272>>2];if(!a)break c;Kb(a);J[c+272>>2]=0;d=J[b>>2]}J[c+248>>2]=0;J[c+252>>2]=0;H[c+277|0]=0;J[c+256>>2]=0;J[c+260>>2]=0;J[c+264>>2]=0;a=J[d+12>>2];J[195395]=0;ea(a|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break a;return c|0}ga(0)|0;_b();B()}function Ula(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;j=J[J[a+100>>2]>>2];a:{if(!j)break a;e=J[c+68>>2];if(!e)break a;f=e-1|0;g=J[c+80>>2];d=g+3|0;a=0;b=K[g+15|0];while(1){b:{if((a|0)==(f|0)){a=e;break b}a=a+1|0; -if((b|0)==K[(d+P(a,20)|0)+12|0])continue}break}if(!e)break a;k=g+2|0;d=0;i=g;f=e;while(1){b=a;c:{if(a>>>0<=d>>>0)break c;while(1){h=P(d,20);a=h+g|0;if(!(J[a+4>>2]&j))break c;if(K[a+12|0]&16){H[(h+k|0)+16|0]=18;i=J[c+80>>2];f=J[c+68>>2];break c}d=d+1|0;if((b|0)!=(d|0))continue;break}}a=b+1|0;d=a>>>0>>0?f:a;l=d-1|0;m=i+3|0;h=K[(P(b,20)+i|0)+15|0];a=b;while(1){d:{if((a|0)==(l|0)){a=d;break d}a=a+1|0;if((h|0)==K[(P(a,20)+m|0)+12|0])continue}break}d=b;if(e>>>0>d>>>0)continue;break}}return 0}function NY(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(J[a+44>>2]==-1698247209){f=I[a+56>>1];c=I[a+54>>1];g=I[a+52>>1];d=I[a+50>>1];b=Ab[J[J[a>>2]+100>>2]](a)|0;b:{if(!b|(b|0)==96)break b;h=96/+(b>>>0);e=Mh(h*+(f|0));c:{if(R(e)<2147483648){f=~~e;break c}f=-2147483648}e=Mh(h*+(c|0));d:{if(R(e)<2147483648){c=~~e;break d}c=-2147483648}e=Mh(h*+(g|0));e:{if(R(e)<2147483648){g=~~e;break e}g=-2147483648}h=Mh(h*+(d|0));if(R(h)<2147483648){d=~~h;break b}d=-2147483648}i=c-d|0;b=i>>31;b=(b^i)-b>>>0<2;d=b?J[a+176>>2]: -d;c=b?J[a+184>>2]:c;i=f-g|0;b=i>>31;if((b^i)-b>>>0>1)break a;f=J[a+188>>2];g=J[a+180>>2];break a}f=J[a+188>>2];c=J[a+184>>2];g=J[a+180>>2];d=J[a+176>>2]}J[a+108>>2]=d;J[a+120>>2]=f;J[a+116>>2]=c;J[a+112>>2]=g;return a+108|0}function yx(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;J[d>>2]=0;if(!(!(e|f)|(a|0)<655)){o=d;p=(e|0)/2|0;if(f){m=J[g+28>>2];j=J[g+24>>2];k=J[g+20>>2];h=J[g+16>>2];l=J[g+12>>2];i=J[g+8>>2];f=J[g+4>>2];g=J[g>>2];q=d;e=Rb(c+e|0,a);if(S(e)+S(b)>>>0<=16)c=j<<16;else c= -Rb(e,b);d=g<<16;a:{if((c|0)<(d|0)){b=dc(f<<16,b);break a}b:{c:{d:{n=i<<16;e:{if((n|0)>(c|0)){c=dc(d,b);if((g|0)==(i|0))break e;b=hc(e-c|0,l-f|0,i-g|0)+dc(f<<16,b)|0;break a}f=h<<16;if((c|0)>=(f|0))break d}c=dc(n,b);if((h|0)==(i|0)){f=h<<16;break c}b=hc(e-c|0,k-l|0,h-i|0)+dc(l<<16,b)|0;break a}if((c|0)>=j<<16)break b}c=dc(f,b);if((h|0)==(j|0))break b;b=hc(e-c|0,m-k|0,j-h|0)+dc(k<<16,b)|0;break a}b=dc(m<<16,b)}J[q>>2]=b;a=dc(b,a<<1)}else a=0;J[o>>2]=p+a}}function x8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0, -f=0;a:{d=J[b+48>>2];if(d&16){d=J[b+44>>2];c=J[b+24>>2];if(d>>>0>>0){J[b+44>>2]=c;d=c}b=J[b+20>>2];e=d-b>>2;if(e>>>0>=1073741808)break a;b:{if(e>>>0<=1){H[a+11|0]=e;break b}f=(e|3)+1|0;c=Pb(f<<2);J[a+8>>2]=f|-2147483648;J[a>>2]=c;J[a+4>>2]=e;a=c}if((b|0)!=(d|0))while(1){J[a>>2]=J[b>>2];a=a+4|0;b=b+4|0;if((d|0)!=(b|0))continue;break}J[a>>2]=0;return}if(d&8){e=J[b+16>>2];b=J[b+8>>2];c=e-b>>2;if(c>>>0>=1073741808)break a;c:{if(c>>>0<=1){H[a+11|0]=c;break c}f=(c|3)+1|0;d=Pb(f<<2);J[a+8>>2]=f|-2147483648; -J[a>>2]=d;J[a+4>>2]=c;a=d}if((b|0)!=(e|0))while(1){J[a>>2]=J[b>>2];a=a+4|0;b=b+4|0;if((e|0)!=(b|0))continue;break}J[a>>2]=0;return}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return}dd(a);B()}function Vd(){var a=0,b=0,c=0,d=0,e=0,f=0;if(K[781824])return J[195455];c=xb-32|0;xb=c;a:{b:{while(1){b=c+8|0;d=gy(a,1<>2]=d;if((d|0)==-1)break b;a=a+1|0;if((a|0)!=6)continue;break}a=760744;if(!cd(b,760744,24))break a;a=760768;if(!cd(b,760768,24))break a;a=0;if(!K[781652]){while(1){e= -(a<<2)+781604|0,f=gy(a,228753),J[e>>2]=f;a=a+1|0;if((a|0)!=6)continue;break}H[781652]=1;J[195407]=J[195401]}a=781604;b=c+8|0;if(!cd(b,781604,24))break a;a=781628;if(!cd(b,781628,24))break a;a=Qb(24);if(!a)break b;b=J[c+12>>2];J[a>>2]=J[c+8>>2];J[a+4>>2]=b;b=J[c+28>>2];J[a+16>>2]=J[c+24>>2];J[a+20>>2]=b;b=J[c+20>>2];J[a+8>>2]=J[c+16>>2];J[a+12>>2]=b;break a}a=0}xb=c+32|0;H[781824]=1;J[195455]=a;return a|0}function Ds(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+124>>2];a:{if(!J[a+65708>>2])break a;if(!b){b= -0;break a}c=a+65752|0;while(1){b=J[a+65756>>2];e=J[a+65744>>2];f=a+d|0;e=J[b+(((e^K[f+164|0])&255)<<2)>>2]^e>>>8;J[a+65744>>2]=e;e=P(J[a+65748>>2]+(e&255)|0,134775813)+1|0;J[a+65748>>2]=e;g=b;b=J[c>>2];J[c>>2]=J[g+((b&255^e>>>24)<<2)>>2]^b>>>8;H[f+164|0]=K[f+164|0]^P(b|2,b&65533^3)>>>8;b=J[a+124>>2];d=d+1|0;if(b>>>0>d>>>0)continue;break}}e=Ab[J[a+8>>2]](J[a+28>>2],J[a+44>>2],a+164|0,b)|0;f=J[a+72>>2];J[a+72>>2]=0;b=J[a+124>>2];J[a+124>>2]=0;c=a+65736|0;d=c;g=J[c>>2];f=g+f|0;c=J[c+4>>2];J[d>>2]=f; -J[d+4>>2]=f>>>0>>0?c+1|0:c;a=a+65728|0;c=a;d=J[a>>2];a=J[a+4>>2];d=b+d|0;a=d>>>0>>0?a+1|0:a;J[c>>2]=d;J[c+4>>2]=a;return(b|0)!=(e|0)?-1:0}function qc(a,b,c){var d=0,e=0;a:{if((a|0)==(b|0))break a;e=a+c|0;if(b-e>>>0<=0-(c<<1)>>>0)return Mb(a,b,c);d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c)break a;H[d|0]=K[b|0];b=b+1|0;c=c-1|0;d=d+1|0;if(d&3)continue;break}break c}d:{if(d)break d;if(e&3)while(1){if(!c)break a;c=c-1|0;d=c+a|0;H[d|0]=K[b+c|0];if(d& -3)continue;break}if(c>>>0<=3)break d;while(1){c=c-4|0;J[c+a>>2]=J[b+c>>2];if(c>>>0>3)continue;break}}if(!c)break a;while(1){c=c-1|0;H[c+a|0]=K[b+c|0];if(c)continue;break}break a}if(c>>>0<=3)break b;while(1){J[d>>2]=J[b>>2];b=b+4|0;d=d+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a;while(1){H[d|0]=K[b|0];d=d+1|0;b=b+1|0;c=c-1|0;if(c)continue;break}}return a}function eha(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;a:{if((d|0)<=0)break a;f=J[a+480>> -2];e=J[f+48>>2];l=J[a+112>>2];if(l){a=J[f+24>>2];m=J[a+8>>2];n=J[a+4>>2];o=J[a>>2];while(1){a=e<<6;p=a+J[f+60>>2]|0;q=a+J[f+56>>2]|0;r=a+J[f+52>>2]|0;a=g<<2;h=J[a+c>>2];a=J[a+b>>2];i=0;j=l;while(1){k=i<<2;H[h|0]=(K[K[a+1|0]+(J[q+k>>2]+n|0)|0]+K[K[a|0]+(J[k+r>>2]+o|0)|0]|0)+K[K[a+2|0]+(J[k+p>>2]+m|0)|0];h=h+1|0;a=a+3|0;i=i+1&15;j=j-1|0;if(j)continue;break}e=e+1&15;J[f+48>>2]=e;g=g+1|0;if((g|0)!=(d|0))continue;break}break a}if(d>>>0>=8){b=d&-8;a=0;while(1){e=e+8&15;a=a+8|0;if((b|0)!=(a|0))continue; -break}}b=d&7;if(b){a=0;while(1){e=e+1&15;a=a+1|0;if((b|0)!=(a|0))continue;break}}J[f+48>>2]=e}}function qna(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;e=J[a>>2];a=0;a:{b:{c:{d:{d=K[c|0]|K[c+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break c;case 0:break d;default:break a}}a=e;e=K[c+2|0]|K[c+3|0]<<8;e=a-((e<<8|e>>>8)&65535)|0;d=K[c+4|0]|K[c+5|0]<<8;a=169776;if(e>>>0>=((d<<8|d>>>8)&65535)>>>0)break b;a=((e<<1)+c|0)+6|0;break b}g=170426;a=K[c+2|0]|K[c+3|0]<<8;e:{if(!a)break e;h=c+4|0; -c=((a<<8|a>>>8)&65535)-1|0;a=0;while(1){d=a+c>>>1|0;f=P(d,6)+h|0;i=K[f|0]|K[f+1|0]<<8;f:{if(e>>>0>=((i<<8|i>>>8)&65535)>>>0){a=K[f+2|0]|K[f+3|0]<<8;if(e>>>0>((a<<8|a>>>8)&65535)>>>0){a=d+1|0;break f}g=P(d,6)+h|0;break e}c=d-1|0}if((a|0)<=(c|0))continue;break}}a=g+4|0}a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535}return(a|0)==(b|0)|0}function PD(a,b,c,d,e){var f=0,g=0,h=0,i=0;if(K[a+206|0]&32){Wl(a+212|0);J[a+204>>2]=J[a+204>>2]&-2097153}J[a+212>>2]=b;J[a+216>>2]=0;h=a+212|0;a:{if(!d)while(1){if(!(J[a+ -216>>2]|!c)){J[a+216>>2]=c;c=0}b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;b=ni(h,0);d=J[a+272>>2]-J[a+228>>2]|0;f=(b>>>0<2?(d|0)>0?d:0:0)+f|0;if(!b)continue;break a}while(1){if(!(J[a+216>>2]|!c)){J[a+216>>2]=c;c=0}b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;b=ni(h,0);b:{if(b>>>0>1)break b;g=J[a+272>>2]-J[a+228>>2]|0;if((g|0)<=0)break b;if(e>>>0>f>>>0){i=e-f|0;Mb(d+f|0,J[a+268>>2],g>>>0>>0?g:i)}f=f+g|0}if(!b)continue;break}}J[a+216>>2]=0;Wl(h);if((b|0)!=1){c=a;a=J[a+236>>2];Kr(c, -a?a:(b|0)==-5?262700:(b|0)==-3?262738:262774);f=0}return f}function Hca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;c=xb-16|0;xb=c;if(f>>>0>=2){o=(g|0)/2<<2;g=((e<<2)+b|0)+(h<<2)|0;d=(h<<1)+e<<2;while(1){h=e;while(1){j=K[i+2|0];k=K[i+3|0];l=c+12|0;m=c+8|0;n=c+4|0;uc(J[a+68>>2],K[i|0],j,k,l,m,n);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;uc(J[a+68>>2],K[i+1|0],j,k,l,m,n);J[g>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i= -i+4|0;g=g+4|0;b=b+4|0;h=h-1|0;if(h)continue;break}i=i+o|0;g=d+g|0;b=b+d|0;f=f-2|0;if(f>>>0>1)continue;break}}if(f)while(1){uc(J[a+68>>2],K[i|0],K[i+2|0],K[i+3|0],c+12|0,c+8|0,c+4|0);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i=i+4|0;b=b+4|0;e=e-1|0;if(e)continue;break}xb=c+16|0}function g6(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;J[f+12>>2]=c;c=J[e+4>>2]-J[e>>2]|0;J[f+8>>2]=c+32;c=c- -64|0;J[f+4>>2]=c;J[f>>2]=71;J[a+8>>2]=c+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+ -4>>2],f,4);Lb(J[a+4>>2],f+4|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],f+8|0,4);Lb(J[a+4>>2],f+12|0,4);Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],d+12|0,4);Lb(J[a+4>>2],d+16|0,4);Lb(J[a+4>>2],d+20|0,4);Lb(J[a+4>>2],d+24|0,4);Lb(J[a+4>>2],d+28|0,4);d=J[e>>2];b=J[e+4>>2];if((d|0)!=(b|0))while(1){Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],d+12|0,4);d=d+16|0;if((b|0)!=(d|0))continue; -break}xb=f+16|0}function GA(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(!a)break a;f=J[d>>2];if((f|0)<0)break a;e=J[d+8>>2];if((e|0)<0)break a;h=J[d+4>>2];if((h|0)<0)break a;g=J[d+12>>2];if((g|0)<0)break a;if((g-h|0)>(c|0)){g=c+h|0;J[d+12>>2]=g}if((e-f|0)>(b|0)){e=b+f|0;J[d+8>>2]=e}if((g-h|0)==(c|0)&(e-f|0)==(b|0))break a;c=(e|0)<(f|0);i=c?f:e;c=c?e:f;d=(h|0)>(g|0);e=d?h:g;d=d?g:h;j=Pb(P(i-c|0,e-d|0)<<2);f=d<<2;k=e<<2;if(f>>>0>=k>>>0)break a;d=c<<2;i=i<<2;if(d>>>0>= -i>>>0)break a;e=0;while(1){l=P(b,f);c=d;while(1){h=e+j|0;g=c+l|0;H[h|0]=K[g+a|0];H[h+1|0]=K[(g|1)+a|0];H[h+2|0]=K[(g|2)+a|0];H[h+3|0]=K[(g|3)+a|0];e=e+4|0;c=c+4|0;if(i>>>0>c>>>0)continue;break}f=f+4|0;if(k>>>0>f>>>0)continue;break}}return j|0}function lH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=b;d=J[a>>2];b=K[d+10|0]|K[d+11|0]<<8;b=((b<<8|b>>>8)&65535)+d|0;e=K[b|0]|K[b+1|0]<<8;e=f-((e<<8|e>>>8)&65535)|0;f=K[b+2|0]|K[b+3|0]<<8;if(e>>>0<((f<<8|f>>>8)&65535)>>>0){b=b+(e<<1)|0;b=K[b+4|0]|K[b+ -5|0]<<8;g=(b<<8|b>>>8)&65535}e=J[a+4>>2];a=K[d+12|0]|K[d+13|0]<<8;a=d+((a<<8|a>>>8)&65535)|0;b=K[a|0]|K[a+1|0]<<8;b=c-((b<<8|b>>>8)&65535)|0;c=K[a+2|0]|K[a+3|0]<<8;if(b>>>0<((c<<8|c>>>8)&65535)>>>0){a=a+(b<<1)|0;a=K[a+4|0]|K[a+5|0]<<8;h=(a<<8|a>>>8)&65535}b=0;a=K[d+14|0]|K[d+15|0]<<8;a=(a<<8|a>>>8)&65535;c=g+h|0;a=(a+d|0)+((a>>>0>c>>>0?1073741823:c-a>>>1|0)<<1)|0;if(!(M[e+32>>2]>2]>>>0|J[e+28>>2]-a>>>0<2)){a=K[a|0]|K[a+1|0]<<8;b=(a<<8|a>>>8)<<16>>16}return b|0}function Q7(a,b,c){a=a|0;b= -b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(J[b+52>>2]+J[b+44>>2]|0)+80|0;J[e+12>>2]=d;J[e+8>>2]=81;J[a+8>>2]=d+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);Lb(J[a+4>>2],b+20|0,4);Lb(J[a+4>>2],b+24|0,4);Lb(J[a+4>>2],b+28|0,4);Lb(J[a+4>>2],b+32|0,4);Lb(J[a+4>>2],b+36|0,4);Lb(J[a+4>>2],b+40|0,4);Lb(J[a+4>>2],b+44|0,4);Lb(J[a+4>>2],b+48|0,4);Lb(J[a+4>>2],b+52|0,4); -Lb(J[a+4>>2],b+56|0,4);Lb(J[a+4>>2],b+60|0,4);Lb(J[a+4>>2],b- -64|0,4);Lb(J[a+4>>2],b+68|0,4);d=J[b+44>>2];if(d)Lb(J[a+4>>2],J[c+8>>2],d);d=J[b+52>>2];if(d)Lb(J[a+4>>2],J[c+8>>2]+J[b+44>>2]|0,d);xb=e+16|0}function xs(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<44|(K[b|0]!=83|K[b+1|0]!=70))break a;if(K[b+2|0]!=87|K[b+3|0]!=57|(K[b+4|0]!=52|K[b+5|0]!=65))break a;if(K[b+7|0]|K[b+6|0]!=4|(K[b+9|0]|K[b+8|0]!=16))break a;if(K[b+11|0]|K[b+10|0]!=1|(K[b+13|0]|K[b+12|0]!=100))break a;if(K[b+14|0]|K[b+15|0]|(K[b+17| -0]|K[b+16|0]!=204))break a;if(K[b+18|0]|K[b+19|0]|(K[b+21|0]|K[b+20|0]!=59))break a;if(K[b+22|0]|K[b+23|0]|(K[b+24|0]!=218|K[b+25|0]!=7))break a;if(K[b+26|0]|K[b+27|0]|(K[b+28|0]!=7|K[b+29|0]!=1))break a;if(K[b+30|0]|K[b+31|0]|(K[b+33|0]|K[b+32|0]!=68))break a;if(K[b+34|0]|K[b+35|0]|(K[b+36|0]!=208|K[b+37|0]!=7))break a;if(K[b+38|0]|K[b+39|0]|(K[b+40|0]!=75|K[b+41|0]!=1))break a;if(K[b+42|0]|K[b+43|0])break a;d=1}return d}function X7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;b=ac(c);f=b+18| -0;a:{b:{if((b|0)<=-18){a=6;if(f)break a;a=0;break b}a=J[a>>2];a=Ab[J[a+4>>2]](a,f)|0;if(!a)return 64;Nb(a,0,f)}f=Mb(a,c,b);b=f+b|0;a=K[11598]|K[11599]<<8;H[b+16|0]=a;H[b+17|0]=a>>>8;a=K[11594]|K[11595]<<8|(K[11596]<<16|K[11597]<<24);c=K[11590]|K[11591]<<8|(K[11592]<<16|K[11593]<<24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]=c>>>16;H[b+11|0]=c>>>24;H[b+12|0]=a;H[b+13|0]=a>>>8;H[b+14|0]=a>>>16;H[b+15|0]=a>>>24;a=K[11586]|K[11587]<<8|(K[11588]<<16|K[11589]<<24);c=K[11582]|K[11583]<<8|(K[11584]<<16|K[11585]<< -24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=a;H[b+5|0]=a>>>8;H[b+6|0]=a>>>16;H[b+7|0]=a>>>24;J[d>>2]=f;J[e>>2]=0;a=0}return a|0}function Uy(a,b,c,d){a:switch(b-9|0){case 0:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];return;case 6:b=J[c>>2];J[c>>2]=b+4;b=I[b>>1];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 7:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=L[b>>1];J[a+4>>2]=0;return;case 8:b=J[c>>2];J[c>>2]=b+4;b=H[b|0];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 9:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=K[b|0];J[a+4>>2]= -0;return;case 16:b=J[c>>2]+7&-8;J[c>>2]=b+8;O[a>>3]=O[b>>3];return;case 17:Ab[d|0](a,c);default:return;case 1:case 4:case 14:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 2:case 5:case 11:case 15:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;return;case 3:case 10:case 12:case 13:break a}b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c}function nH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=b;d=J[a>>2];b=K[d+8|0]|K[d+9|0]<<8;b=((b<<8|b>>>8)&65535)+ -d|0;e=K[b|0]|K[b+1|0]<<8;e=f-((e<<8|e>>>8)&65535)|0;f=K[b+2|0]|K[b+3|0]<<8;if(e>>>0<((f<<8|f>>>8)&65535)>>>0){b=b+(e<<1)|0;b=K[b+4|0]|K[b+5|0]<<8;g=(b<<8|b>>>8)&65535}e=J[a+4>>2];a=K[d+10|0]|K[d+11|0]<<8;a=d+((a<<8|a>>>8)&65535)|0;b=K[a|0]|K[a+1|0]<<8;b=c-((b<<8|b>>>8)&65535)|0;c=K[a+2|0]|K[a+3|0]<<8;if(b>>>0<((c<<8|c>>>8)&65535)>>>0){a=a+(b<<1)|0;a=K[a+4|0]|K[a+5|0]<<8;h=(a<<8|a>>>8)&65535}b=0;a=K[d+12|0]|K[d+13|0]<<8;a=(a<<8|a>>>8)&65535;c=g+h|0;a=(a+d|0)+((a>>>0>c>>>0?1073741823:c-a>>>1|0)<<1)| -0;if(!(M[e+32>>2]>2]>>>0|J[e+28>>2]-a>>>0<2)){a=K[a|0]|K[a+1|0]<<8;b=(a<<8|a>>>8)<<16>>16}return b|0}function di(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(!a)return 35;a:{b:{c:{if((b|0)!=1970170211){if(J[a+36>>2]|b)break c;return 6}f=38;e=J[a+40>>2];if(!e)break a;c=e+(J[a+36>>2]<<2)|0;b=c-4|0;if(e>>>0<=b>>>0)while(1){d=J[b>>2];d:{if(J[d+4>>2]!=1970170211)break d;e:switch(L[d+8>>1]){case 3:if(L[d+10>>1]!=10)break d;break b;case 0:break e;default:break d}if(L[d+10>>1]==4)break b}b=b-4|0;if(e>>> -0<=b>>>0)continue;break}while(1){c=c-4|0;if(e>>>0>c>>>0)break a;d=J[c>>2];if(J[d+4>>2]!=1970170211)continue;break}break b}c=J[a+40>>2];if(!c)return 38;f=6;d=J[a+36>>2];if((d|0)<=0)break a;e=(d<<2)+c|0;while(1){d=J[c>>2];if(J[d+4>>2]==(b|0))break b;c=c+4|0;if(e>>>0>c>>>0)continue;break}break a}J[a+92>>2]=d;f=0}return f|0}function pu(a,b,c,d,e){var f=0;a:{if(!b){b=169776;if(!e)break a;Ab[e|0](d);return 169776}b:{c:{d:{e:{if((b|0)>=0){f=vc(1,32);if(f)break e}if(!e)break d;Ab[e|0](d);break d}J[f+8>>2]= -0;J[f>>2]=1;J[f+4>>2]=1;J[f+28>>2]=e;J[f+24>>2]=d;J[f+20>>2]=c;J[f+16>>2]=b;J[f+12>>2]=a;if(c)break b;J[f+20>>2]=1;if(!b){J[f+20>>2]=2;break b}c=Qb(b);if(c){a=Mb(c,a,b);if(e)Ab[e|0](d);J[f+28>>2]=627;J[f+24>>2]=a;J[f+12>>2]=a;J[f+20>>2]=2;break b}a=J[f>>2];if(!a)break d;J[f>>2]=a-1;if((a|0)!=1)break d;J[f>>2]=-57005;a=J[f+8>>2];if(a){af(a+24|0,a);Kb(Ud(a));J[f+8>>2]=0}a=J[f+28>>2];if(a){b=J[f+24>>2];J[195395]=0;ea(a|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break c}Kb(f)}f=0;break b}ga(0)|0;_b(); -B()}b=f;if(f)break a;b=169776}return b}function vr(a,b){var c=0,d=0,e=0,f=0,g=0;e=b<<1;if(e){c=a;while(1){d=K[c+3|0];H[c+3|0]=K[c|0];H[c|0]=d;d=K[c+2|0];H[c+2|0]=K[c+1|0];H[c+1|0]=d;d=K[c+7|0];H[c+7|0]=K[c+4|0];H[c+4|0]=d;d=K[c+6|0];H[c+6|0]=K[c+5|0];H[c+5|0]=d;c=c+8|0;e=e-2|0;if(e)continue;break}}a:{if(!b)break a;d=b&3;b:{if(!d){c=b;break b}e=0;c=b;while(1){f=a,g=Ppa(J[a>>2],J[a+4>>2]),J[f>>2]=g;J[a+4>>2]=zb;a=a+8|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){f=a, -g=Ppa(J[a>>2],J[a+4>>2]),J[f>>2]=g;J[a+4>>2]=zb;f=a,g=Ppa(J[a+8>>2],J[a+12>>2]),J[f+8>>2]=g;J[a+12>>2]=zb;f=a,g=Ppa(J[a+16>>2],J[a+20>>2]),J[f+16>>2]=g;J[a+20>>2]=zb;f=a,g=Ppa(J[a+24>>2],J[a+28>>2]),J[f+24>>2]=g;J[a+28>>2]=zb;a=a+32|0;c=c-4|0;if(c)continue;break}}}function zW(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=b;b=1;a=J[c+12>>2];a:{b:{if((a|0)<=2050)switch(a-1026|0){case 0:case 1:case 3:case 4:case 5:case 6:case 7:case 10:case 12:case 14:case 16:case 17:case 18:case 19:case 20:case 22:case 23:case 24:case 25:case 27:case 29:case 31:case 32:case 34:case 36:case 37:case 40:case 42:case 43:case 61:case 65:case 78:case 84:case 108:case 128:break a; -default:break b}if((a|0)<=3078)switch(a-2051|0){case 0:case 4:case 6:case 16:case 17:case 19:case 64:break a;default:break b}if((a|0)<=4104){a=a-3079|0;if(a>>>0>3|(a|0)==1)break b;break a}if((a|0)<=9241){if((a|0)==4105)break a;if((a|0)!=7177)break b;break a}if((a|0)==9242|(a|0)==10266)break a}b=0}xb=c+16|0;return b|0}function Od(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=J[a+4>>2];g=J[a>>2];f=J[a+16>>2];a:{b:{if(J[f+436>>2]){e=g;break b}if((c|0)>24){i=c;e=g;break a}while(1){if(!h){if(!(Ab[J[J[f+24>>2]+ -12>>2]](f)|0))return 0;e=J[f+24>>2];h=J[e+4>>2];g=J[e>>2]}e=g+1|0;h=h-1|0;c:{i=K[g|0];if((i|0)==255){while(1){if(!h){if(!(Ab[J[J[f+24>>2]+12>>2]](f)|0))return 0;e=J[f+24>>2];h=J[e+4>>2];e=J[e>>2]}h=h-1|0;g=K[e|0];i=255;e=e+1|0;if((g|0)==255)continue;break}if(g)break c}b=b<<8|i;j=(c|0)<17;g=e;i=c+8|0;c=i;if(j)continue;break a}break}J[f+436>>2]=g}if((c|0)>=(d|0)){i=c;break a}if(!J[J[f+464>>2]+36>>2]){d=J[f>>2];J[d+20>>2]=120;Ab[J[d+4>>2]](f,-1);J[J[f+464>>2]+36>>2]=1}i=25;b=b<<25-c}J[a+12>>2]=i;J[a+ -8>>2]=b;J[a+4>>2]=h;J[a>>2]=e;return 1}function sc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b:switch(K[a|0]){case 0:c=K[a+2|0]|K[a+3|0]<<8;if(!c)break a;c=(c<<8|c>>>8)&65535;b=b>>>0>>0?b:c-1|0;d=K[a+1|0];e=d>>>4&3;c=e+1|0;b=P(b,c)+a|0;a=K[b+4|0];c:{if(!e)break c;a=K[b+5|0]|a<<8;if((c|0)==2)break c;a=K[b+6|0]|a<<8;if((c|0)==3)break c;a=K[b+7|0]|a<<8}b=(d&15)+1|0;return a>>>b<<16|(-1<>>8&65280|c>>>24);b=b>>>0>>0?b:c-1|0;d=K[a+1|0];e=d>>>4&3;c=e+1|0;b=P(b,c)+a|0;a=K[b+6|0];d:{if(!e)break d;a=K[b+7|0]|a<<8;if((c|0)==2)break d;a=K[b+8|0]|a<<8;if((c|0)==3)break d;a=K[b+9|0]|a<<8}b=(d&15)+1|0;b=a>>>b<<16|(-1<>31;h=(d^c)-d|0;b:{d=b>>31;d=(d^b)-d|0;f=a>>31;f=(f^a)-f|0;if(d+f>>>0<=131071){d=P(d,f);break b}g=d>>>16|0;e=f>>>16|0;j=P(g,f&65535)+P(e,d&65535)|0;d=P(d,f);e=((j>>> -16|0)+P(e,g)|0)+(d>>>0>>0)|0;if(!e)break b;if(e>>>0>=h>>>0)break a;f=S(e);g=32-f|0;e=d>>>g|e<>>0)/(h>>>0)|0;e=e-P(h,i)|0;d=d<>>31;g=e>>>0>=h>>>0;e=e-(g?h:0)|0;i=g|i<<1;g=f^31;d=d<<1}if((f|0)==31)break a;while(1){e=e<<1|d>>>31;f=e>>>0>=h>>>0;e=d>>>30&1|e-(f?h:0)<<1;j=e>>>0>=h>>>0;e=e-(j?h:0)|0;i=j|(i<<2|f<<1);d=d<<2;g=g-2|0;if(g)continue;break}break a}i=(d>>>0)/(h>>>0)|0}a=a>>31|1;a=(b|0)<0?0-a|0:a;return(((c|0)<0?0-a|0:a)|0)<0?0-i|0:i}function Fea(a){a=a|0;var b= -0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=xb-32|0;xb=b;g=J[a+420>>2];if(J[a+264>>2])cj(g);J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;if(J[a+288>>2]>0)while(1){d=J[((h<<2)+a|0)+292>>2];a:{if(J[a+360>>2]|J[a+368>>2])break a;e=J[d+20>>2]<<2;f=e+(b+16|0)|0;if(J[f>>2])break a;i=a+e|0;c=J[i+120>>2];if(!c){c=Ab[J[J[a+4>>2]>>2]](a,0,280)|0;J[c+276>>2]=0;J[i+120>>2]=c}iE(a,c,J[(e+g|0)+76>>2]);J[f>>2]=1}b:{if(!J[a+364>>2])break b;d=J[d+24>>2]<<2;e=d+b|0;if(J[e>> -2])break b;f=a+d|0;c=J[f+136>>2];if(!c){c=Ab[J[J[a+4>>2]>>2]](a,0,280)|0;J[c+276>>2]=0;J[f+136>>2]=c}iE(a,c,J[(d+g|0)+92>>2]);J[e>>2]=1}h=h+1|0;if((h|0)>2])continue;break}xb=b+32|0}function jf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=M[a+8>>2]<=b>>>0?169776:J[a+12>>2]+P(b,12)|0;a:{if(!(J[d>>2]>>>(c>>>4)&1)|!(J[d+4>>2]>>>c&1)|!(J[d+8>>2]>>>(c>>>9)&1))break a;d=169776;a=J[a>>2];a=a?a:169776;a=M[a+16>>2]<4?169776:J[a+12>>2];e=K[a+1|0]<<8;b:{if((K[a|0]|e)!=256)break b;e=e|K[a|0]|(K[a+2|0]<< -16|K[a+3|0]<<24);if((e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))>>>0<65538)break b;e=K[a+12|0]|K[a+13|0]<<8;if(!e)break b;d=a+((e<<8|e>>>8)&65535)|0}if((K[d|0]|K[d+1|0]<<8)!=256)break a;a=K[d+2|0]|K[d+3|0]<<8;a=((a<<8|a>>>8)&65535)>>>0<=b>>>0?169776:((b<<2)+d|0)+4|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if(a)a=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))+d|0;else a=169776;f=(ld(a,c)|0)!=-1}return f|0}function Xoa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=Q(0),h=Q(0),i=Q(0),j=Q(0);d=b+16|0;f=J[b+ -12>>2];c=J[b+8>>2];j=Q(J[a+4>>2]);i=Q(J[a>>2]);a:{b:{if(K[b+4|0]){if(!J[d>>2])break a;g=N[b+20>>2];h=N[b+24>>2];if(!(g==N[b+28>>2]&h==N[b+32>>2])){e=J[c+16>>2];a=J[c+32>>2];if(a)a=J[a+4>>2];else a=0;Ab[e|0](c,f,d,g,h,a)}a=J[c+28>>2];e=J[c+32>>2];if(!e){Ab[a|0](c,f,d,0);break b}Ab[a|0](c,f,d,J[e+16>>2]);break b}i=Q(Q(j*N[b>>2])+i);if(!J[b+16>>2])break a;g=N[b+20>>2];h=N[b+24>>2];if(!(g==N[b+28>>2]&h==N[b+32>>2])){e=J[c+16>>2];a=J[c+32>>2];if(a)a=J[a+4>>2];else a=0;Ab[e|0](c,f,d,g,h,a)}e=J[c+28>>2]; -a=J[c+32>>2];if(a)a=J[a+16>>2];else a=0;Ab[e|0](c,f,d,a)}J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0}N[b+32>>2]=j;N[b+28>>2]=i;return 0}function Bna(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=169776;f=rh(a,b);a:{if((K[f|0]|K[f+1|0]<<8)!=256)break a;a=K[f+6|0]|K[f+7|0]<<8;if(!a)break a;e=((a<<8|a>>>8)&65535)+f|0}b=65535;a=K[e|0]|K[e+1|0]<<8;b:{c:{if(a){h=(a<<8|a>>>8)&65535;j=h>>>0<=1?1:h;e=0;i=1;while(1){a=169776;d:{if((K[f|0]|K[f+1|0]<<8)!=256)break d;g=K[f+6|0]|K[f+7|0]<<8;a=169776;if(!g)break d; -a=((g<<8|g>>>8)&65535)+f|0}g=K[a|0]|K[a+1|0]<<8;if(((g<<8|g>>>8)&65535)>>>0>e>>>0)a=(P(e,6)+a|0)+2|0;else a=169776;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if((a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))==(c|0)){b=e;if(d)break c;break b}e=e+1|0;i=h>>>0>e>>>0;if((e|0)!=(j|0))continue;break}}if(!d)break b}J[d>>2]=b}return i|0}function zw(a,b,c,d){var e=0,f=0,g=0;e=c-b|0;a:{if((e|0)<=9){g=e;e=P(32-S(d|1)|0,1233)>>12;f=61;if((g|0)<(e+(M[(e<<2)+773200>>2]<=d>>>0)|0))break a}b:{if(d>>>0<=999999){if(d>>> -0<=9999){if(d>>>0<=99){if(d>>>0<=9){H[b|0]=d+48;c=b+1|0;break b}c=Ei(b,d);break b}if(d>>>0<=999){c=(d>>>0)/100|0;H[b|0]=c+48;c=Ei(b+1|0,d-P(c,100)|0);break b}c=Gp(b,d);break b}if(d>>>0<=99999){c=(d>>>0)/1E4|0;H[b|0]=c+48;c=Gp(b+1|0,d-P(c,1E4)|0);break b}c=Fp(b,d);break b}if(d>>>0<=99999999){if(d>>>0<=9999999){c=(d>>>0)/1E6|0;H[b|0]=c+48;c=Fp(b+1|0,d-P(c,1E6)|0);break b}c=Ep(b,d);break b}if(d>>>0<=999999999){c=(d>>>0)/1E8|0;H[b|0]=c+48;c=Ep(b+1|0,d-P(c,1E8)|0);break b}c=b;b=(d>>>0)/1E8|0;c=Ep(Ei(c, -b),d-P(b,1E8)|0)}f=0}J[a+4>>2]=f;J[a>>2]=c}function Vu(a,b){var c=0,d=0,e=0;d=J[a>>2];if((d|0)>=0){e=(b|0)>0?b:0;a:{if(e>>>0<=d>>>0)break a;c=d;while(1){c=((c>>>1|0)+c|0)+8|0;if(e>>>0>c>>>0)continue;break}b:{if(c>>>0<=357913941){b=J[a+8>>2];if(!c){Kb(b);b=0;break b}b=ic(b,P(c,12));if(b)break b;d=J[a>>2];if(d>>>0>=c>>>0)break a}J[a>>2]=d^-1;return 0}J[a>>2]=c;J[a+8>>2]=b}c=J[a+4>>2];c:{if(e>>>0>c>>>0){while(1){b=J[a+8>>2]+P(c,12)|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;c=J[a+4>>2]+1|0;J[a+4>>2]=c;if(c>>> -0>>0)continue;break}break c}if(c>>>0<=e>>>0)break c;d=c-e|0;if(!d)break c;b=J[a+8>>2]+P(c,12)|0;while(1){b=b-12|0;if(J[b>>2]){J[b+4>>2]=0;Kb(J[b+8>>2])}J[b+4>>2]=0;J[b>>2]=0;J[b+8>>2]=0;d=d-1|0;if(d)continue;break}}J[a+4>>2]=e;a=1}else a=0;return a}function $y(a,b,c,d,e,f){var g=0;g=xb-80|0;xb=g;a:{if((f|0)>=16384){pd(g+32|0,b,c,d,e,0,0,0,2147352576);d=J[g+40>>2];e=J[g+44>>2];b=J[g+32>>2];c=J[g+36>>2];if(f>>>0<32767){f=f-16383|0;break a}pd(g+16|0,b,c,d,e,0,0,0,2147352576);f=((f|0)>=49149?49149: -f)-32766|0;d=J[g+24>>2];e=J[g+28>>2];b=J[g+16>>2];c=J[g+20>>2];break a}if((f|0)>-16383)break a;pd(g- -64|0,b,c,d,e,0,0,0,7471104);d=J[g+72>>2];e=J[g+76>>2];b=J[g+64>>2];c=J[g+68>>2];if(f>>>0>4294934644){f=f+16269|0;break a}pd(g+48|0,b,c,d,e,0,0,0,7471104);f=((f|0)<=-48920?-48920:f)+32538|0;d=J[g+56>>2];e=J[g+60>>2];b=J[g+48>>2];c=J[g+52>>2]}pd(g,b,c,d,e,0,0,0,f+16383<<16);b=J[g+12>>2];J[a+8>>2]=J[g+8>>2];J[a+12>>2]=b;b=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=b;xb=g+80|0}function Os(a){var b=0;a:{b:{if(!a)break b; -b=J[a>>2];if(!b)break b;J[a>>2]=b-1;if((b|0)!=1)break b;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}Kb(J[a+36>>2]);J[a+36>>2]=0;J[195395]=0;ea(960,a+60|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;b=a+84|0;if(J[b- -64>>2]){J[b+68>>2]=0;Kb(J[b+72>>2])}J[b+64>>2]=0;J[b+68>>2]=0;J[b+72>>2]=0;if(J[b+52>>2]){J[b+56>>2]=0;Kb(J[b+60>>2])}J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;if(J[b+40>>2]){J[b+44>>2]=0;Kb(J[b+48>>2])}J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;if(J[b+28>>2]){J[b+32>> -2]=0;Kb(J[b+36>>2])}J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;if(J[b+16>>2]){J[b+20>>2]=0;Kb(J[b+24>>2])}J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;Kb(a)}return}ga(0)|0;_b();B()}function hE(a){var b=0,c=0,d=0,e=0,f=0;a:{if(J[a+108>>2])break a;b=J[a+16>>2];if((b|0)<=0)break a;c=b+7|0;f=J[a+12>>2]|127<<17-b;while(1){b=J[a+112>>2];J[a+112>>2]=b+1;H[b|0]=f>>>16;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(!b){d=J[a+120>>2];b=J[d+24>>2];if(!(Ab[J[b+12>>2]](d)|0)){d=J[a+120>>2];e=J[d>>2];J[e+20>>2]=25;Ab[J[e>>2]](d)}J[a+ -112>>2]=J[b>>2];J[a+116>>2]=J[b+4>>2]}b=c;b:{if((f&16711680)!=16711680)break b;c=J[a+112>>2];J[a+112>>2]=c+1;H[c|0]=0;c=J[a+116>>2]-1|0;J[a+116>>2]=c;if(c)break b;d=J[a+120>>2];c=J[d+24>>2];if(!(Ab[J[c+12>>2]](d)|0)){d=J[a+120>>2];e=J[d>>2];J[e+20>>2]=25;Ab[J[e>>2]](d)}J[a+112>>2]=J[c>>2];J[a+116>>2]=J[c+4>>2]}c=b-8|0;f=f<<8;if((b|0)>15)continue;break}}J[a+12>>2]=0;J[a+16>>2]=0}function gy(a,b){var c=0,d=0,e=0;a:{if(K[b|0])break a;b=yg(228074);if(K[b|0]?b:0)break a;b=yg(P(a,12)+760800|0);if(K[b|0]? -b:0)break a;b=yg(228091);if(K[b|0]?b:0)break a;b=228118}b:{while(1){d=K[b+c|0];if(!(!d|(d|0)==47)){d=23;c=c+1|0;if((c|0)!=23)continue;break b}break}d=c}e=228118;c:{d:{c=K[b|0];e:{f:{if(!(K[b+d|0]|(c|0)==46)){e=b;if((c|0)!=67)break f}if(!K[e+1|0])break e}if(!fc(e,228118))break e;if(fc(e,227970))break d}if(!a){c=760708;if(K[e+1|0]==46)break c}return 0}c=J[195400];if(c)while(1){if(!fc(e,c+8|0))break c;c=J[c+32>>2];if(c)continue;break}c=Qb(36);if(c){b=J[190178];J[c>>2]=J[190177];J[c+4>>2]=b;b=c+8|0;Mb(b, -e,d);H[b+d|0]=0;J[c+32>>2]=J[195400];J[195400]=c}c=a|c?c:760708}return c}function Wn(a,b){var c=0,d=0,e=0;cj(a);a:{if(J[a+108>>2])break a;hE(a);c=J[a+112>>2];J[a+112>>2]=c+1;H[c|0]=255;c=J[a+116>>2]-1|0;J[a+116>>2]=c;b:{if(c){c=J[a+112>>2];break b}c=J[a+120>>2];d=J[c+24>>2];if(!(Ab[J[d+12>>2]](c)|0)){c=J[a+120>>2];e=J[c>>2];J[e+20>>2]=25;Ab[J[e>>2]](c)}c=J[d>>2];J[a+116>>2]=J[d+4>>2]}J[a+112>>2]=c+1;H[c|0]=b-48;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(b)break a;c=J[a+120>>2];b=J[c+24>>2];if(!(Ab[J[b+12>> -2]](c)|0)){c=J[a+120>>2];d=J[c>>2];J[d+20>>2]=25;Ab[J[d>>2]](c)}J[a+112>>2]=J[b>>2];J[a+116>>2]=J[b+4>>2]}c=J[a+120>>2];c:{if(!J[c+360>>2]){if(J[c+288>>2]<=0)break c;b=0;while(1){J[((b<<2)+a|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}break c}J[a+128>>2]=0;J[a+132>>2]=0}}function tl(a,b){var c=0,d=0;c=xb-16|0;xb=c;d=(D(Q(O[b>>3])),v(2));H[c+12|0]=d;H[c+13|0]=d>>>8;H[c+14|0]=d>>>16;H[c+15|0]=d>>>24;Lb(J[a+4>>2],c+12|0,4);d=(D(Q(O[b+8>>3])),v(2));H[c+12|0]=d;H[c+13|0]=d>>>8;H[c+14|0]=d>>> -16;H[c+15|0]=d>>>24;Lb(J[a+4>>2],c+12|0,4);d=(D(Q(O[b+16>>3])),v(2));H[c+12|0]=d;H[c+13|0]=d>>>8;H[c+14|0]=d>>>16;H[c+15|0]=d>>>24;Lb(J[a+4>>2],c+12|0,4);d=(D(Q(O[b+24>>3])),v(2));H[c+12|0]=d;H[c+13|0]=d>>>8;H[c+14|0]=d>>>16;H[c+15|0]=d>>>24;Lb(J[a+4>>2],c+12|0,4);d=(D(Q(O[b+32>>3])),v(2));H[c+12|0]=d;H[c+13|0]=d>>>8;H[c+14|0]=d>>>16;H[c+15|0]=d>>>24;Lb(J[a+4>>2],c+12|0,4);b=(D(Q(O[b+40>>3])),v(2));H[c+12|0]=b;H[c+13|0]=b>>>8;H[c+14|0]=b>>>16;H[c+15|0]=b>>>24;Lb(J[a+4>>2],c+12|0,4);xb=c+16|0}function Bh(a, -b,c,d){var e=0,f=0,g=0;e=xb+-64|0;xb=e;g=J[a>>2];f=J[g-4>>2];g=J[g-8>>2];J[e+32>>2]=0;J[e+36>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;H[e+55|0]=0;H[e+56|0]=0;H[e+57|0]=0;H[e+58|0]=0;H[e+59|0]=0;H[e+60|0]=0;H[e+61|0]=0;H[e+62|0]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+20>>2]=d;J[e+16>>2]=b;J[e+12>>2]=a;J[e+8>>2]=c;a=a+g|0;d=0;a:{if(cf(f,c,0)){J[e+56>>2]=1;Ab[J[J[f>>2]+20>>2]](f,e+8|0,a,a,1,0);d=J[e+32>>2]==1?a:0;break a}Ab[J[J[f>>2]+24>>2]](f,e+8|0,a,1,0);b:switch(J[e+44>>2]){case 0:d=J[e+ -48>>2]==1?J[e+36>>2]==1?J[e+40>>2]==1?J[e+28>>2]:0:0:0;break a;case 1:break b;default:break a}if(J[e+32>>2]!=1)if(J[e+48>>2]|J[e+36>>2]!=1|J[e+40>>2]!=1)break a;d=J[e+24>>2]}xb=e- -64|0;return d}function WG(a,b,c){var d=0,e=0,f=0,g=0;f=J[b+12>>2];d=J[b+4>>2];if(f>>>0>>0)return 0;g=J[b+8>>2];if(g-a>>>0<4)return 0;e=a+2|0;if(f>>>0>>0)return 0;if(g-e>>>0<2)return 0;d=1;a=K[e|0]|K[e+1|0]<<8;a:{if(!a)break a;a=((a<<8|a>>>8)&65535)+c|0;b:{if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<2)break b; -c:{d:{e:{c=K[a|0]|K[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 0:break c;case 2:break d;case 1:break e;default:break a}}if(M[b+12>>2]>2]>>>0|J[b+8>>2]-a>>>0<=7)break b;break a}if(!nj(a,b))break b;break a}if(M[b+12>>2]>2]>>>0)break b;if(J[b+8>>2]-a>>>0>5)break a}a=J[b+32>>2];if(a>>>0>31)return 0;J[b+32>>2]=a+1;d=0;if(!K[b+28|0])break a;H[e|0]=0;H[e+1|0]=0;d=1}return d}function yo(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=Q(0),k=0,l=0,m=0,n=0,o=0;f=xb-16|0;xb=f;b=J[b+80>>2];g=J[b+92>> -2];h=J[b+88>>2];J[f>>2]=0;k=e;a:{b:{c:{if(!(g|h))break c;e=K[a+6|0]|K[a+7|0]<<8;J[f+4>>2]=0;i=J[b+116>>2];l=J[i+76>>2];m=J[b+120>>2];n=(e<<8|e>>>8)&65535;o=f+4|0;e=J[i+12>>2];if(e)e=J[e+56>>2];else e=0;if(!(Ab[l|0](b,m,c,n,o,f,e)|0))break c;uj(b,c,f+12|0,f+8|0);J[f>>2]=J[f>>2]-J[f+8>>2];d:{if(h){N[d>>2]=J[f+4>>2]-J[f+12>>2]|0;if(g)break d;break b}c=K[a+2|0]|K[a+3|0]<<8;N[d>>2]=N[b+64>>2]*Q((c<<8|c>>>8)<<16>>16);if(!g)break b}j=Q(J[f>>2]);break a}c=K[a+2|0]|K[a+3|0]<<8;N[d>>2]=N[b+64>>2]*Q((c<<8|c>>> -8)<<16>>16)}a=K[a+4|0]|K[a+5|0]<<8;j=Q(N[b+68>>2]*Q((a<<8|a>>>8)<<16>>16))}N[k>>2]=j;xb=f+16|0}function O7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(J[b+52>>2]+J[b+44>>2]|0)+76|0;J[e+12>>2]=d;J[e+8>>2]=80;J[a+8>>2]=d+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);Lb(J[a+4>>2],b+20|0,4);Lb(J[a+4>>2],b+24|0,4);Lb(J[a+4>>2],b+28|0,4);Lb(J[a+4>>2],b+ -32|0,4);Lb(J[a+4>>2],b+36|0,4);Lb(J[a+4>>2],b+40|0,4);Lb(J[a+4>>2],b+44|0,4);Lb(J[a+4>>2],b+48|0,4);Lb(J[a+4>>2],b+52|0,4);Lb(J[a+4>>2],b+56|0,4);Lb(J[a+4>>2],b+60|0,4);Lb(J[a+4>>2],b- -64|0,4);d=J[b+44>>2];if(d)Lb(J[a+4>>2],J[c+8>>2],d);d=J[b+52>>2];if(d)Lb(J[a+4>>2],J[c+8>>2]+J[b+44>>2]|0,d);xb=e+16|0}function hQ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=xb-16|0;xb=e;J[e+12>>2]=d;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if(d>>>0>>0){qn(a);B()}if(K[b+11|0]>>>7|0)b= -J[b>>2];J[e+4>>2]=d-c;g=(c<<2)+b|0;b=xb-16|0;xb=b;xb=b+16|0;d=xb-16|0;xb=d;a:{b=e+4|0;c=e+12|0;c=J[(M[b>>2]>2]?b:c)>>2];if(c>>>0<=1073741807){b:{if(c>>>0<2){H[a+11|0]=c|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;b=a;break b}h=d+8|0;if(c>>>0>=2){f=c+4&-4;b=f-1|0;b=(b|0)==2?f:b}else b=1;Fi(h,b+1|0);b=J[d+8>>2];J[a>>2]=b;J[a+8>>2]=J[a+8>>2]&-2147483648|J[d+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}Hf(b,g,c);J[d+4>>2]=0;J[(c<<2)+b>>2]=J[d+4>>2];xb=d+16|0;break a}dd(a);B()}xb=e+16| -0;return a|0}function Aq(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-16|0;xb=e;g=(D(a),v(2));c=g&2147483647;a:{if(c>>>0<=1305022426){h=+a;f=h*.6366197723675814+6755399441055744+-6755399441055744;d=h+f*-1.5707963109016418+f*-1.5893254773528196E-8;O[b>>3]=d;g=d<-.7853981852531433;if(R(f)<2147483648)c=~~f;else c=-2147483648;if(g){d=f+-1;O[b>>3]=h+d*-1.5707963109016418+d*-1.5893254773528196E-8;c=c-1|0;break a}if(!(d>.7853981852531433))break a;d=f+1;O[b>>3]=h+d*-1.5707963109016418+d*-1.5893254773528196E-8; -c=c+1|0;break a}if(c>>>0>=2139095040){O[b>>3]=Q(a-a);c=0;break a}i=c;c=(c>>>23|0)-150|0;O[e+8>>3]=(x(2,i-(c<<23)|0),C());c=qz(e+8|0,e,c,1,0);d=O[e>>3];if((g|0)<0){O[b>>3]=-d;c=0-c|0;break a}O[b>>3]=d}xb=e+16|0;return c}function Ld(a,b){var c=0,d=0;a:{if(M[a+12>>2]>2]>>>0|J[a+8>>2]-b>>>0<2)break a;c=1;b:{c:{d:{d=K[b|0]|K[b+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break c;case 0:break d;default:break b}}c=b+2|0;if(M[a+12>>2]>2]>>>0|J[a+8>>2]-c>>>0<2)break a;d=b+4|0;if(M[a+12>> -2]>2]>>>0)break a;c=0;b=K[b+2|0]|K[b+3|0]<<8;b=((b<<8|b>>>8)&65535)<<1;if(b>>>0>J[a+8>>2]-d>>>0)break b;c=a;a=J[a+16>>2]-b|0;J[c+16>>2]=a;return(a|0)>0}c=b+2|0;if(M[a+12>>2]>2]>>>0|J[a+8>>2]-c>>>0<2)break a;d=b+4|0;if(M[a+12>>2]>2]>>>0)break a;c=0;b=K[b+2|0]|K[b+3|0]<<8;b=P((b<<8|b>>>8)&65535,6);if(b>>>0>J[a+8>>2]-d>>>0)break b;c=a;a=J[a+16>>2]-b|0;J[c+16>>2]=a;c=(a|0)>0}return c}return 0}function Ck(a,b,c){var d=0,e=0,f=0;d=K[b|0];if((d|0)==30)return Ao(a,b,c,0);f=b+1| -0;a:{b:switch(d-28|0){case 0:e=0;if(M[a+8>>2]<=b+2>>>0)break a;e=(K[b+2|0]|K[f|0]<<8)<<16>>16;break a;case 1:e=0;if(M[a+8>>2]<=b+4>>>0)break a;a=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);e=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break a;default:break b}e=d-139|0;if(d>>>0<=246)break a;a=J[a+8>>2];if(d>>>0<=250){e=0;if(a>>>0<=f>>>0)break a;e=(K[f|0]|d<<8)-63124|0;break a}e=0;if(a>>>0<=f>>>0)break a;e=64148-(K[f|0]|d<<8)|0}d=e;if(c){a=c<<2;b=d>>31;if(J[a+27584>>2]<((b^d)-b|0))return(d|0)>0?2147483647: --2147483647;d=P(J[a+27536>>2],d)}if((d|0)<=32767)a=(d|0)<-32767?-2147483647:d<<16;else a=2147483647;return a}function lD(a,b,c){var d=0,e=0,f=0;d=xb-32|0;xb=d;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;f=ac(b);a:{if(!c){Rn(a,b,0);break a}if(!K[c|0]){Rn(a,b,c);break a}c=Sn(a,c,ac(c),0,d);if(a){J[a+744>>2]=34;H[d+28|0]=122;H[d+29|0]=84;H[d+30|0]=88;H[d+31|0]=116;e=(c+f|0)+2|0;H[d+27|0]=e;H[d+26|0]=e>>>8;H[d+25|0]=e>>>16;H[d+24|0]=e>>>24;Wc(a,d+24|0,8);J[a+348>>2]=2052348020;dg(a);Fc(a, -d+28|0,4);J[a+744>>2]=66;b:{if(!b)break b;e=f+1|0;if(!e)break b;Wc(a,b,e);Fc(a,b,e)}H[d+23|0]=0;b=d+23|0;Wc(a,b,1);Fc(a,b,1);Cl(a,d,c);J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+24|0]=b;H[d+25|0]=b>>>8;H[d+26|0]=b>>>16;H[d+27|0]=b>>>24;Wc(a,d+24|0,4);break a}Cl(0,d,c)}xb=d+32|0}function Nb(a,b,c){var d=0,e=0,f=0,g=0;a:{if(!c)break a;H[a|0]=b;d=a+c|0;H[d-1|0]=b;if(c>>>0<3)break a;H[a+2|0]=b;H[a+1|0]=b;H[d-3|0]=b;H[d-2|0]=b;if(c>>>0<7)break a;H[a+3|0]=b;H[d-4|0]=b;if(c>>> -0<9)break a;d=0-a&3;e=d+a|0;b=P(b&255,16843009);J[e>>2]=b;d=c-d&-4;c=d+e|0;J[c-4>>2]=b;if(d>>>0<9)break a;J[e+8>>2]=b;J[e+4>>2]=b;J[c-8>>2]=b;J[c-12>>2]=b;if(d>>>0<25)break a;J[e+24>>2]=b;J[e+20>>2]=b;J[e+16>>2]=b;J[e+12>>2]=b;J[c-16>>2]=b;J[c-20>>2]=b;J[c-24>>2]=b;J[c-28>>2]=b;g=e&4|24;c=d-g|0;if(c>>>0<32)break a;d=Kpa(b,0,1,1);f=zb;b=e+g|0;while(1){J[b+24>>2]=d;J[b+28>>2]=f;J[b+16>>2]=d;J[b+20>>2]=f;J[b+8>>2]=d;J[b+12>>2]=f;J[b>>2]=d;J[b+4>>2]=f;b=b+32|0;c=c-32|0;if(c>>>0>31)continue;break}}return a} -function oL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=xb-1536|0;xb=f;a:{b:{if(d&16){if(!c)break b;d=0;Nb(e,0,c<<2);break a}d=Ab[J[J[J[a+492>>2]+12>>2]>>2]](f+8|0,a,0,0,J[a+424>>2],J[a+532>>2],0,0,109)|0;if(d)break a;H[f+76|0]=0;H[f+78|0]=1;J[f+1372>>2]=J[a+404>>2];J[f+1376>>2]=J[a+408>>2];J[f+1380>>2]=J[a+412>>2];J[f+1384>>2]=J[a+416>>2];J[f+1504>>2]=J[a+548>>2];J[f+1508>>2]=J[a+544>>2];d=0;if(!c)break a;a=0;while(1){h=(a<<2)+e|0;g=f+1528|0;c:{if(!Nk(f+8|0,a+b|0,g,f+1527|0)){d=J[J[J[f+ -12>>2]+128>>2]+52>>2];if(d)Ab[J[J[d>>2]+4>>2]](J[d+4>>2],g);d=J[f+48>>2];d=(((d>>31)+d|0)+32768&-65536)>>16;break c}d=0}J[h>>2]=d;a=a+1|0;if((c|0)!=(a|0))continue;break}}d=0}xb=f+1536|0;return d|0}function iA(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=J[b>>2];J[a+656>>2]=e;f=J[b+4>>2];J[a+660>>2]=f;b=J[a+672>>2];a:{if(b){c=J[a+676>>2];if(c)break a}J[a+676>>2]=f;J[a+672>>2]=e;c=f;b=e}i=J[a+16>>2];b:{if((i|0)!=7)break b;j=+(b|0);d=R(j/+(e|0));k=+(c|0);g=R(k/+(f|0));if(d>g){h=b>>31|1;d=V(g*j/d+.5); -c:{if(R(d)<2147483648){b=~~d;break c}b=-2147483648}b=b?b:h;J[a+672>>2]=b;break b}h=c>>31|1;d=V(d*k/g+.5);d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}c=c?c:h;J[a+676>>2]=c}e:{if((e|0)<2|(b|0)<2)break e;f:switch(i-7|0){case 0:d=+(b|0)/+(e|0);O[a+632>>3]=d;O[a+640>>3]=d;Yf(a);return;case 1:break f;default:break e}if(!f|!c)break e;O[a+640>>3]=+(c|0)/+(f|0);O[a+632>>3]=+(b|0)/+(e|0)}Yf(a)}function hA(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=J[b>>2];J[a+672>>2]=c;d=J[b+4>>2];J[a+676>>2]=d; -b=J[a+656>>2];a:{if(b){f=J[a+660>>2];if(f)break a}J[a+660>>2]=d;J[a+656>>2]=c;f=d;b=c}i=J[a+16>>2];b:{if((i|0)!=7)break b;j=+(d|0);e=R(j/+(f|0));k=+(c|0);g=R(k/+(b|0));if(e>31|1;e=V(e*k/g+.5);c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}c=c?c:h;J[a+672>>2]=c;break b}h=d>>31|1;e=V(g*j/e+.5);d:{if(R(e)<2147483648){d=~~e;break d}d=-2147483648}d=d?d:h;J[a+676>>2]=d}e:{if((b|0)<2|(c|0)<2)break e;f:switch(i-7|0){case 0:e=+(c|0)/+(b|0);O[a+632>>3]=e;O[a+640>>3]=e;Yf(a);return;case 1:break f; -default:break e}if(!f|!d)break e;O[a+640>>3]=+(d|0)/+(f|0);O[a+632>>3]=+(c|0)/+(b|0)}Yf(a)}function Vr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+4>>2];a:{if(b>>>0>=2){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=15;Ab[J[J[a>>2]>>2]](a);break a}if((b|0)!=1)break a;c=J[d+68>>2];if(c)while(1){if(J[c+40>>2]){J[c+40>>2]=0;Ab[J[c+56>>2]](a,c+48|0)}c=J[c+44>>2];if(c)continue;break}J[d+68>>2]=0;c=J[d+72>>2];if(c)while(1){if(J[c+40>>2]){J[c+40>>2]=0;Ab[J[c+56>>2]](a,c+48|0)}c=J[c+44>>2];if(c)continue;break}J[d+72>>2]=0}b= -(b<<2)+d|0;c=J[b+60>>2];J[b+60>>2]=0;if(c)while(1){a=J[c>>2];e=J[c+4>>2]+J[c+8>>2]|0;Kb(c);J[d+76>>2]=J[d+76>>2]-(e+16|0);c=a;if(c)continue;break}c=J[b+52>>2];J[b+52>>2]=0;if(c)while(1){a=J[c>>2];b=(J[c+4>>2]+J[c+8>>2]|0)+16|0;Kb(c);J[d+76>>2]=J[d+76>>2]-b;c=a;if(c)continue;break}}function wn(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,p=0;k=e>>8;if((d|0)==(f|0)){Th(a,k,b);return}p=e&255;g=c&255;l=c>>8;if((l|0)!=(k|0)){h=f-d|0;m=1;c=e-c|0;a:{if((c|0)>0){n=256;e=256-g|0;break a}c=0-c|0;m= --1;e=g}i=P(e,h);e=(i|0)/(c|0)|0;j=i-P(c,e)|0;o=j>>31;i=e+o|0;J[a+184>>2]=i+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+P(i,g|n);e=l+m|0;Th(a,e,b);d=d+i|0;if((e|0)!=(k|0)){h=h<<8;g=(h|0)/(c|0)|0;h=h-P(c,g)|0;i=h>>31;l=(i&c)+h|0;i=g+i|0;g=j+(c&o)|0;while(1){g=g+l|0;j=(g|0)>=(c|0);h=j+i|0;J[a+184>>2]=h+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+(h<<8);e=e+m|0;Th(a,e,b);g=g-(j?c:0)|0;d=d+h|0;if((e|0)!=(k|0))continue;break}}g=256-n|0}b=f-d|0;J[a+184>>2]=b+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+P(b,g+p|0)}function Yk(a, -b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;j=xb-16|0;xb=j;if((b^-1)+1073741807>>>0>=c>>>0){if(K[a+11|0]>>>7|0)i=J[a>>2];else i=a;k=i;i=j+4|0;l=i;if(b>>>0<536870887){J[j+12>>2]=b<<1;J[j+4>>2]=b+c;c=xb-16|0;xb=c;xb=c+16|0;c=j+12|0;c=J[(M[i>>2]>2]?c:i)>>2];if(c>>>0>=2){i=c+4&-4;c=i-1|0;c=(c|0)==2?i:c}else c=1;c=c+1|0}else c=1073741807;Fi(l,c);c=J[j+4>>2];if(e)Hf(c,k,e);if(g)Hf(c+(e<<2)|0,h,g);i=e+f|0;h=d-i|0;if((d|0)!=(i|0)){d=e<<2;Hf((d+c|0)+(g<<2)|0,(d+k|0)+(f<<2)|0,h)}b=b+1|0;if((b|0)!=2)Cm(k,b);J[a>> -2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[j+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;b=a;a=h+(e+g|0)|0;J[b+4>>2]=a;J[j+12>>2]=0;J[c+(a<<2)>>2]=J[j+12>>2];xb=j+16|0;return}dd(a);B()}function KD(a,b,c){var d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;J[d+12>>2]=0;e=J[a+200>>2];if(e&1){a:{if(e&4){Wb(a,257041);mc(a,c);break a}if(e&2)Wb(a,257098);if(!(!b|!(K[b+8|0]&2))){Wb(a,257278);mc(a,c);break a}if(!(((K[a+401|0]==3?3:K[a+405|0])|0)==(c|0)&c>>>0<=4)){Wb(a,257363);mc(a,c);break a}f=d+12|0;Gd(a,f,c);Fc(a,f,c); -if(mc(a,0))break a;e=K[d+12|0];b:{if(K[a+401|0]&2){c=K[d+13|0];g=K[d+14|0];f=f|3;break b}H[a+495|0]=e;c=e;g=c;f=d+12|1}H[a+496|0]=K[f|0];H[a+494|0]=g;H[a+493|0]=c;H[a+492|0]=e;if(!(!a|!b)){c=K[a+492|0]|K[a+493|0]<<8|(K[a+494|0]<<16|K[a+495|0]<<24);H[b+68|0]=c;H[b+69|0]=c>>>8;H[b+70|0]=c>>>16;H[b+71|0]=c>>>24;H[b+72|0]=K[a+496|0];J[b+8>>2]=J[b+8>>2]|2}}xb=d+16|0;return}gc(a,256865);B()}function AK(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;c=xb-32|0;xb=c;f=J[b+96>>2];a:{if((f|0)<0|J[a+ -300>>2]<=(f|0))break a;g=J[a+304>>2];if((Ab[J[b+52>>2]](b,6,c,3)|0)<6)break a;e=J[c+12>>2];if(!e)break a;h=P(f,252)+g|0;i=h+216|0;d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){j=a,k=dc(1E3,d),I[j+68>>1]=k;j=c,k=dc(J[c>>2],d),J[j>>2]=k;j=c,k=dc(J[c+4>>2],d),J[j+4>>2]=k;j=c,k=dc(J[c+8>>2],d),J[j+8>>2]=k;j=c,k=dc(J[c+16>>2],d),J[j+16>>2]=k;j=c,k=dc(J[c+20>>2],d),J[j+20>>2]=k;e=J[c+12>>2]<0?-65536:65536;J[c+12>>2]=e}J[i>>2]=J[c>>2];a=P(f,252)+g|0;J[a+224>>2]=J[c+4>>2];d=J[c+8>>2];J[a+228>>2]=e;J[a+220>>2]=d;if(!mo(i)){J[b+ -12>>2]=3;break a}J[h+232>>2]=I[c+18>>1];J[a+236>>2]=I[c+22>>1]}xb=c+32|0}function nga(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=J[a+448>>2];if(J[b+16>>2]){k=b;a:{b:{if(!J[a+160>>2]|(!J[a+80>>2]|!J[a+224>>2]))break b;c=J[b+112>>2];if(!c){c=Ab[J[J[a+4>>2]>>2]](a,1,P(J[a+36>>2],24))|0;J[b+112>>2]=c}if(J[a+36>>2]<=0)break b;d=J[a+216>>2];while(1){b=J[d+80>>2];if(!b|!L[b>>1]|(!L[b+2>>1]|!L[b+16>>1]))break b;if(!L[b+4>>1]|(!L[b+32>>1]|!L[b+18>>1]))break b;b=J[a+160>>2]+(e<<8)|0;if(J[b>>2]< -0)break b;f=J[b+4>>2];J[c+4>>2]=f;g=J[b+8>>2];J[c+8>>2]=g;h=J[b+12>>2];J[c+12>>2]=h;i=J[b+16>>2];J[c+16>>2]=i;b=J[b+20>>2];J[c+20>>2]=b;j=b|i|(f|g|h)?1:j;d=d+88|0;c=c+24|0;e=e+1|0;if((e|0)>2])continue;break}b=1463;if(j)break a}b=1459}J[k+12>>2]=b}J[a+156>>2]=0}function WI(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;f=xb-16|0;xb=f;c=J[a>>2];a:{if(K[c+8|0]&2){if(!(Ab[J[J[c+540>>2]+104>>2]](c,b,f+12|0)|0)){Jt(a,J[f+12>>2]);break a}J[a+44>>2]=-1;c=J[a>>2]}dj(c,b);c=J[a>>2];b=J[J[c+712>> -2]+3080>>2];c=be(J[J[c+96>>2]+4>>2],11010);if(!c|!b)break a;b=J[b>>2];if(!b)break a;g=Ab[b|0](c)|0;if(!g)break a;h=J[J[a>>2]+712>>2];c=J[h+1440>>2];i=J[J[a+40>>2]>>2];Ab[J[g+4>>2]](J[i>>2],J[a+16>>2],J[a+20>>2],0,0);e=J[h+2024>>2];if(!e)break a;while(1){b=J[a+16>>2];e=e-1|0;j=e<<2;d=J[J[(j+h|0)+2028>>2]+68>>2];b:{if((d|0)!=(c|0)){b=hc(b,c,d);d=hc(J[a+20>>2],c,d);break b}d=J[a+20>>2]}Ab[J[g+4>>2]](J[(i+j|0)+4>>2],b,d,0,0);if(e)continue;break}}xb=f+16|0;return 0}function f6(a,b,c,d){a=a|0;b=b|0;c=c| -0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=J[d+4>>2]-J[d>>2]|0;J[e+12>>2]=f+32;f=f+60|0;J[e+8>>2]=f;J[e+4>>2]=74;J[a+8>>2]=f+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+4|0,4);Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],c+16|0,4);Lb(J[a+4>>2],c+20|0,4);Lb(J[a+4>>2],c+24|0,4);Lb(J[a+4>>2],c+28|0,4);c=J[d>>2];b=J[d+4>> -2];if((c|0)!=(b|0))while(1){Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);c=c+16|0;if((b|0)!=(c|0))continue;break}xb=e+16|0}function hf(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=0;a:{if(!K[a+60|0])break a;if(K[a+62|0]){c=J[a+64>>2];g=J[a+68>>2]-c|0;b=J[a+84>>2];d=J[a+80>>2];e=J[a+72>>2];if(!((b|0)==(d|0)&(e|0)==(c|0))){f=e+g|0;if(!(!f|f>>>0>2])){b=0;if(!yh(a,f))break a;c=J[a+64>>2];e=J[a+72>>2];d=J[a+80>>2];b=J[a+84>>2]}b:{if((b|0)!=(d|0))break b;if(e+g>>>0<= -c+g>>>0){b=d;break b}b=J[a+88>>2];J[a+84>>2]=b;f=P(e,20);if(!f)break b;Mb(b,d,f);c=J[a+64>>2];d=J[a+80>>2];e=J[a+72>>2];b=J[a+84>>2]}qc(P(e,20)+b|0,P(c,20)+d|0,P(g,20));c=J[a+72>>2]}J[a+72>>2]=c+g}b=J[a+84>>2];c=J[a+80>>2];if((b|0)!=(c|0)){J[a+80>>2]=b;J[a+88>>2]=c}J[a+68>>2]=J[a+72>>2];b=1}J[a+72>>2]=0;H[a+62|0]=0;J[a+64>>2]=0;J[a+84>>2]=J[a+80>>2];return b}function VD(a){var b=0,c=0;cc(a,J[a+468>>2]);J[a+468>>2]=0;b=J[a+472>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){cc(a, -J[J[a+472>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue;break}b=J[a+472>>2]}cc(a,b);J[a+472>>2]=0}cc(a,J[a+476>>2]);J[a+476>>2]=0;cc(a,J[a+480>>2]);J[a+480>>2]=0;b=J[a+484>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){cc(a,J[J[a+484>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue;break}b=J[a+484>>2]}cc(a,b);J[a+484>>2]=0}b=J[a+488>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){cc(a,J[J[a+488>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue; -break}b=J[a+488>>2]}cc(a,b);J[a+488>>2]=0}}function Oha(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;d=xb-48|0;xb=d;c=J[a>>2];e=J[c+20>>2];a:{b:{c:{if(!((e|0)<=0|(e|0)>J[c+116>>2])){a=J[c+112>>2]+(e<<2)|0;break c}f=J[c+120>>2];if(!f)break b;a=J[c+124>>2];if((a|0)>(e|0)|(e|0)>J[c+128>>2])break b;a=f+(e-a<<2)|0}f=J[a>>2];if(f)break a}J[c+24>>2]=e;f=J[J[c+112>>2]>>2]}a=f;d:{e:{while(1){e=K[a|0];if(!e)break e;a=a+1|0;if((e|0)!=37)continue;break}if(K[a|0]!=115)break e;J[d+32>>2]=c+24;Md(b, -f,d+32|0);break d}g=J[c+32>>2];h=J[c+36>>2];i=J[c+40>>2];j=J[c+44>>2];k=J[c+24>>2];e=J[c+28>>2];a=J[c+52>>2];J[d+24>>2]=J[c+48>>2];J[d+28>>2]=a;J[d+16>>2]=i;J[d+20>>2]=j;J[d+8>>2]=g;J[d+12>>2]=h;J[d>>2]=k;J[d+4>>2]=e;Md(b,f,d)}xb=d+48|0}function c0(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=J[a+208>>2];if(e){h=J[J[a+120>>2]+688>>2];Ab[J[J[e>>2]+32>>2]](e,O[b>>3],O[b+8>>3]);f=O[b>>3];e=J[a+208>>2];g=J[J[e>>2]+36>>2];a:{if((h|0)!=1){Ab[g|0](e,f,O[b+8>>3]+O[b+24>>3]);e=J[a+208>>2];Ab[J[J[e>> -2]+36>>2]](e,O[b>>3]+O[b+16>>3],O[b+8>>3]+O[b+24>>3]);e=J[a+208>>2];Ab[J[J[e>>2]+36>>2]](e,O[b>>3]+O[b+16>>3],O[b+8>>3]);break a}Ab[g|0](e,f+O[b+16>>3],O[b+8>>3]);e=J[a+208>>2];Ab[J[J[e>>2]+36>>2]](e,O[b>>3]+O[b+16>>3],O[b+8>>3]+O[b+24>>3]);e=J[a+208>>2];Ab[J[J[e>>2]+36>>2]](e,O[b>>3],O[b+8>>3]+O[b+24>>3])}b=J[a+208>>2];Ab[J[J[b>>2]+48>>2]](b);b=J[a+208>>2];Ab[J[J[b>>2]+52>>2]](b,(d?2:0)|c);a=J[a+208>>2];Ab[J[J[a>>2]+56>>2]](a)}}function Tba(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;if((c|0)>0){g=J[a+12>>2];while(1){d=J[g>>2];I[b>>1]=(d>>>12&4093)+13314;h=163;a=0;i=d&16383;a:{if(i>>>0>16288){e=.210526316;f=.473684211;break a}b:{c:{while(1){d=a+h>>1;j=i-I[(d<<3)+284182>>1]|0;d:{if((j|0)>0){a=d;break d}if((j|0)>=0)break c;h=d}if((h-a|0)>1)continue;break}d=a;e=+(i-I[(d<<3)+284182>>1]|0)+.5;break b}e=.5}e=e*.0035000001080334187+ +N[(d<<3)+284176>>2];f=(+(d|0)+.5)*.0035000001080334187+.016939999535679817}f=f*32768;e:{if(R(f)<2147483648){a=~~f;break e}a=-2147483648}I[b+4>>1]=a;e= -e*32768;f:{if(R(e)<2147483648){a=~~e;break f}a=-2147483648}I[b+2>>1]=a;g=g+4|0;b=b+6|0;a=(c|0)>1;c=c-1|0;if(a)continue;break}}}function BD(a,b,c){var d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Wb(a,260656);mc(a,c);break a}if(!(!b|!(H[b+9|0]&1))){Wb(a,260680);mc(a,c);break a}if((c|0)!=9){Wb(a,260701);mc(a,c);break a}c=d+7|0;Gd(a,c,9);Fc(a,c,9);if(mc(a,0))break a;f=H[d+7|0];c=f&255;g=H[d+11|0];e=g&255;if((f|0)<0)c=0-(P(K[d+8|0],2147418112)-(K[d+10|0]|(K[d+9|0]<<8|c<<24))&2147483647)| -0;else c=K[d+10|0]|(K[d+8|0]<<16|c<<24|K[d+9|0]<<8);if((g|0)<0)e=0-(P(K[d+12|0],2147418112)-(K[d+14|0]|(K[d+13|0]<<8|e<<24))&2147483647)|0;else e=K[d+14|0]|(K[d+12|0]<<16|e<<24|K[d+13|0]<<8);f=K[d+15|0];if(!(!a|!b)){H[b+108|0]=f;J[b+104>>2]=e;J[b+100>>2]=c;J[b+8>>2]=J[b+8>>2]|256}}xb=d+16|0;return}gc(a,260631);B()}function dr(a){var b=0,c=0;a:{if(!a)break a;c=J[a>>2];if(!c)break a;J[a+44>>2]=0;J[a+48>>2]=0;b=J[a+52>>2];if((b|0)!=(a+72|0)){if(b)Ab[J[c+8>>2]](c,b);J[a+52>>2]=0}J[a+56>>2]=0;J[a+60>> -2]=0;b=J[a- -64>>2];if((b|0)!=(a+864|0)){if(b)Ab[J[c+8>>2]](c,b);J[a+64>>2]=0}b=a+1392|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+1400>>2];if((b|0)!=(a+1420|0)){if(b)Ab[J[c+8>>2]](c,b);J[a+1400>>2]=0}b=a+1404|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+1412>>2];if((b|0)!=(a+2212|0)){if(b)Ab[J[c+8>>2]](c,b);J[a+1412>>2]=0}b=J[a+40>>2];if((b|0)!=(a+2760|0)){if(b)Ab[J[c+8>>2]](c,b);J[a+40>>2]=0}J[a+32>>2]=0;J[a+36>>2]=0;b=J[a+28>>2];if((b|0)!=(a+2792|0)){if(b)Ab[J[c+8>>2]](c,b);J[a+28>>2]=0}J[a>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}} -function Rda(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;a=Nb(a,0,256);d=J[b>>2]+c|0;g=K[d|0];e=K[d+1|0];d=g-e<<3;J[a+4>>2]=d;g=(e+g<<3)-2048|0;J[a>>2]=g;e=J[b+4>>2]+c|0;h=K[e|0];f=K[e+1|0];e=h-f<<3;J[a+36>>2]=e;h=(f+h<<3)-2048|0;J[a+32>>2]=h;f=J[b+8>>2]+c|0;i=K[f|0];j=K[f+1|0];f=i-j<<3;J[a+68>>2]=f;i=(i+j<<3)-2048|0;J[a+64>>2]=i;b=J[b+12>>2]+c|0;c=K[b|0];b=K[b+1|0];j=c-b<<3;k=j+d|0;l=e+f|0;J[a+68>>2]=k-l;J[a+4>>2]=k+l;c=(b+c<<3)-2048|0;b=c+g|0;k=h+i|0;J[a+64>>2]=b-k;J[a>>2]= -b+k;e=e-f|0;d=d-j|0;b=P(e+d|0,4433)+4096|0;J[a+100>>2]=b+P(e,-15137)>>13;J[a+36>>2]=b+P(d,6270)>>13;d=h-i|0;c=g-c|0;b=P(d+c|0,4433)+4096|0;J[a+96>>2]=b+P(d,-15137)>>13;J[a+32>>2]=b+P(c,6270)>>13}function Afa(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{b=J[a+20>>2];switch(b-101|0){case 2:break a;case 0:case 1:break d;default:break c}}if(M[a+260>>2]>2]){b=J[a>>2];J[b+20>>2]=69;Ab[J[b>>2]](a)}b=J[a+388>>2]+8|0;break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;b=J[a>>2]}Ab[J[b>>2]](a)}b=J[a+388>>2];if(!J[b+ -16>>2])while(1){Ab[J[b>>2]](a);b=0;d=J[a+284>>2];if(d)while(1){c=J[a+8>>2];if(c){J[c+8>>2]=d;J[c+4>>2]=b;Ab[J[c>>2]](a)}if(!(Ab[J[J[a+400>>2]+4>>2]](a,0)|0)){c=J[a>>2];J[c+20>>2]=25;Ab[J[c>>2]](a)}b=b+1|0;d=J[a+284>>2];if(b>>>0>>0)continue;break}Ab[J[J[a+388>>2]+8>>2]](a);b=J[a+388>>2];if(!J[b+16>>2])continue;break}Ab[J[J[a+404>>2]+12>>2]](a);Ab[J[J[a+24>>2]+16>>2]](a);Ll(a)}function ep(a){a=a|0;var b=0,c=0,d=0;b=xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22| -0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[195395]=0;c=_(584,a|0)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[b+40>>2]=c;J[195395]=0;H[b+44|0]=1;a=ca(585,a|0,1836020344)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;a=ca(586,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}xb= -b+48|0;return a|0}a=Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}function dp(a){a=a|0;var b=0,c=0,d=0;b=xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[195395]=0;c=_(584,a|0)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[b+40>>2]=c;J[195395]=0;H[b+44|0]=1;a=ca(585,a|0,1836020340)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break b;J[195395]=0;a=ca(587,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}xb=b+48|0;return a|0}a=Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}function SJ(a){a=a|0;var b=0,c=0,d=0;b=xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>> -1]=0;J[b+40>>2]=65536;J[195395]=0;c=_(584,a|0)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[b+40>>2]=c;J[195395]=0;H[b+44|0]=1;a=ca(585,a|0,1634626418)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;a=ca(606,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}xb=b+48|0;return a|0}a=Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}function Do(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{d=K[a|0]|K[a+ -1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break c;case 0:break d;default:break a}}c=b;b=K[a+2|0]|K[a+3|0]<<8;b=c-((b<<8|b>>>8)&65535)|0;d=K[a+4|0]|K[a+5|0]<<8;c=169776;if(b>>>0>=((d<<8|d>>>8)&65535)>>>0)break b;c=((b<<1)+a|0)+6|0;break b}f=170426;c=K[a+2|0]|K[a+3|0]<<8;e:{if(!c)break e;g=a+4|0;a=((c<<8|c>>>8)&65535)-1|0;c=0;while(1){d=a+c>>>1|0;e=P(d,6)+g|0;h=K[e|0]|K[e+1|0]<<8;f:{if(((h<<8|h>>>8)&65535)>>>0<=b>>>0){c=K[e+2|0]|K[e+3|0]<<8;if(((c<<8|c>>>8)&65535)>>>0>>0){c=d+1|0;break f}f= -P(d,6)+g|0;break e}a=d-1|0}if((a|0)>=(c|0))continue;break}}c=f+4|0}a=K[c|0]|K[c+1|0]<<8;c=(a<<8|a>>>8)&65535}return c}function mc(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;c=J[a+272>>2];if(c>>>0>>0)while(1){e=J[a+268>>2];f=J[a+272>>2];Gd(a,e,f);Fc(a,e,f);b=b-c|0;if(c>>>0>>0)continue;break}if(b){c=J[a+268>>2];Gd(a,c,b);Fc(a,c,b)}J[a+744>>2]=129;b=J[a+204>>2];c=J[a+348>>2];Gd(a,d+12|0,4);a:{b:{c:{if(c&536870912){if((b&768)==768)break c;break b}if(!(b&2048))break b}b=0;break a}b=0;c=K[d+12|0]|K[d+ -13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);if(J[a+384>>2]==(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)))break a;c=J[a+204>>2];d:{e:{if(K[a+351|0]&32){if(!(c&512))break e;break d}if(!(c&1024))break d}Kr(a,252369);b=1;break a}f:{if(K[a+206|0]&128){Kr(a,252369);break f}Gl(a,252369);B()}}xb=d+16|0;return b}function tO(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;d=J[b>>2];if(M[d+16>>2]>c>>>0){b=J[d+140>>2];f=L[b+96>>1];e=J[b+56>>2];if(c)b=c-1|0;else b=J[d+148>>2];b=e+P(b,36)|0;c=I[b+20>>1];e= -I[b+16>>1];g=L[b+10>>1];h=J[b+24>>2];i=L[b+14>>1];j=L[b+12>>1];J[a+84>>2]=J[b+28>>2];J[a+80>>2]=j;J[a+76>>2]=i;es(a,h);a:{b:switch(f-1|0){case 0:H[a+94|0]=1;break a;case 1:H[a+94|0]=3;break a;case 3:H[a+94|0]=4;break a;case 7:break b;default:break a}I[a+92>>1]=256;H[a+94|0]=2}J[a+104>>2]=c;J[a+100>>2]=e;J[a+72>>2]=1651078259;J[a+40>>2]=g<<6;J[a+36>>2]=c<<6;J[a+32>>2]=e<<6;J[a+24>>2]=J[a+80>>2]<<6;J[a+28>>2]=J[a+76>>2]<<6;lk(a+24|0,L[J[d+140>>2]+6>>1]<<6);a=0}else a=6;return a|0}function Bfa(a,b,c){a= -a|0;b=b|0;c=c|0;var d=0;J[a+4>>2]=0;if((b|0)!=80){d=J[a>>2];J[d+20>>2]=13;J[d+24>>2]=80;J[J[a>>2]+28>>2]=b;Ab[J[J[a>>2]>>2]](a)}if((c|0)!=432){b=J[a>>2];J[b+20>>2]=22;J[b+24>>2]=432;J[J[a>>2]+28>>2]=c;Ab[J[J[a>>2]>>2]](a)}b=J[a>>2];c=J[a+12>>2];Nb(a+4|0,0,428);J[a+12>>2]=c;J[a>>2]=b;yE(a);J[a+84>>2]=0;J[a+88>>2]=0;J[a+8>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=100;J[a+116>>2]=100;J[a+104>>2]=100;J[a+108>>2]=100;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0; -J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+424>>2]=0;J[a+384>>2]=63;J[a+380>>2]=247088;J[a+376>>2]=8;J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+20>>2]=100;J[a+24>>2]=0}function Xs(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=J[b+12>>2];d=J[b+4>>2];c=e>>>0>>0;a:{if(c)break a;f=J[b+8>>2];g=f-a|0;if((K[a|0]|K[a+1|0]<<8)!=256|g>>>0<4|(g>>>0<12|c))break a;c=K[a+6|0]|K[a+7|0]<<8;if(((c<<8|c>>>8)&65535)>>>0<8)break a;c=a+10|0;if(e>>>0>>0|f-c>>>0<2)break a;d=K[c|0]|K[c+1|0]<<8;b:{if(!d)break b;if(yi(((d<< -8|d>>>8)&65535)+a|0,b))break b;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}c=a+12|0;if(M[b+12>>2]>2]>>>0)break a;d=J[b+8>>2]-c|0;c=K[a+6|0]|K[a+7|0]<<8;a=K[a+8|0]|K[a+9|0]<<8;a=P((c<<8|c>>>8)&65535,(a<<8|a>>>8)&65535);if(d>>>0>>0)break a;a=J[b+16>>2]-a|0;J[b+16>>2]=a;h=(a|0)>0}return h}function lp(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;j=J[b+4>>2]+(c<<4)|0;c=J[j+4>>2];if(!c)return 0;n=J[j+12>>2]+(P(c,d)<<1)|0;while(1){a:{if(!L[b+ -8>>1]){d=65536;break a}c=J[J[b+16>>2]+(J[J[j+8>>2]+(k<<2)>>2]<<2)>>2];l=0;d=65536;while(1){g=d;e=J[c+4>>2];h=J[c>>2];b:{if((e|0)<(h|0))break b;i=J[c+8>>2];if(!e|(i|0)<(e|0))break b;if((h|0)<0&(i|0)>0)break b;f=J[J[J[a+736>>2]+8>>2]+(l<<2)>>2];if((f|0)==(e|0))break b;d=0;if((f|0)<=(h|0)|(f|0)>=(i|0))break a;if((e|0)>(f|0)){g=hc(g,f-h|0,e-h|0);break b}g=hc(g,i-f|0,i-e|0)}d=g;c=c+12|0;l=l+1|0;if(l>>>0>1])continue;break}}m=Rb(d,L[(k<<1)+n>>1]<<16)+m|0;k=k+1|0;if(k>>>0>2])continue;break}return m+ -32768>>16}function Wba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-80|0;xb=d;e=J[a+584>>2];a:{b:switch(b-65560|0){case 0:b=e;e=J[c>>2];J[b>>2]=e;b=3;c=32;c:{d:switch(e|0){case 2:b=1;J[d+48>>2]=1;xc(a,277,d+48|0);break c;case 3:b=1;c=8;break c;default:b=J[a>>2];a=J[a+628>>2];J[d>>2]=e;Ob(a,b,271990,d);b=0;break a;case 0:break c;case 1:break d}b=2;c=16}J[d+32>>2]=c;xc(a,258,d+32|0);J[d+16>>2]=b;xc(a,339,d+16|0);if(K[a+13|0]&4)b=cg(a);else b=-1;J[a+508>>2]=b;f=a,g=Ye(a),J[f+588>>2]=g;b=1;break a; -case 1:c=J[c>>2];J[e+4>>2]=c;b=1;if(c>>>0<2)break a;b=J[a>>2];a=J[a+628>>2];J[d+64>>2]=c;Ob(a,b,272201,d- -64|0);b=0;break a;default:break b}b=Ab[J[e+28>>2]](a,b,c)|0}xb=d+80|0;return b|0}function Ica(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=xb-16|0;xb=j;n=e&1;d=e>>>1|0;o=g<<1;p=h<<2;while(1){h=d;while(1){c=i;g=K[c+2|0];i=K[c+3|0];k=j+12|0;l=j+8|0;m=j+4|0;uc(J[a+68>>2],K[c|0],g,i,k,l,m);e=b;J[e>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<< -16|-16777216;uc(J[a+68>>2],K[c+1|0],g,i,k,l,m);J[e+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=c+4|0;b=e+8|0;h=h-1|0;if(h)continue;break}a:{if(!n){i=4;b=2;break a}uc(J[a+68>>2],K[c+4|0],K[c+6|0],K[c+7|0],j+12|0,j+8|0,j+4|0);i=8;J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;b=3}b=((b<<2)+e|0)+p|0;i=o+(c+i|0)|0;f=f-1|0;if(f)continue;break}xb=j+16|0}function jm(a){var b=0,c=0,d=0;b=xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]= -0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[195395]=0;c=_(584,a|0)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[b+40>>2]=c;J[195395]=0;H[b+44|0]=1;a=ca(585,a|0,1717920116)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;a=ca(610,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}xb=b+48|0;return a}a= -Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}function eL(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;g=xb-16|0;xb=g;h=J[a+532>>2];d=6;a:{if(!h)break a;i=J[h+4>>2];ip(J[h+136>>2],g,i);j=b>>>0>i>>>0?i:b;if(j)while(1){n=k<<2;l=J[n+g>>2];d=P(k,12)+h|0;e=J[d+96>>2];b:{if((l|0)>J[e>>2]){a=1;f=K[d+88|0];if(f>>>0>1)while(1){m=a<<2;o=J[m+e>>2];if((l|0)<=(o|0)){d=J[d+92>>2];f=m-4|0;a=J[d+f>>2];d=J[d+m>>2];e=J[e+f>>2];a=P(dc(l-e|0,o-e|0),d-a|0)+(a<<16)|0;break b}a=a+1|0;if((f|0)!= -(a|0))continue;break}a=J[(J[d+92>>2]+(f<<2)|0)-4>>2]<<16;break b}a=J[J[d+92>>2]>>2]<<16}J[c+n>>2]=a;k=k+1|0;if((j|0)!=(k|0))continue;break}d=0;if(b>>>0<=i>>>0)break a;Nb((j<<2)+c|0,0,b-j<<2);d=0}xb=g+16|0;return d|0}function Tu(a){var b=0,c=0,d=0;b=xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[195395]=0;c= -_(584,a|0)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[b+40>>2]=c;J[195395]=0;H[b+44|0]=1;a=ca(585,a|0,1801810552)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;a=ca(602,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}xb=b+48|0;return a}a=Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}function Su(a){var b=0,c=0,d=0;b=xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]= -0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[195395]=0;c=_(584,a|0)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[b+40>>2]=c;J[195395]=0;H[b+44|0]=1;a=ca(585,a|0,1953653099)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;J[195395]=0;a=ca(608,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)== -1)break a}xb=b+48|0;return a}a=Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}function Lu(a){var b=0,c=0,d=0;b=xb-48|0;xb=b;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;I[b+44>>1]=0;J[b+40>>2]=65536;J[195395]=0;c=_(584,a|0)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[b+40>>2]=c;J[195395]=0;H[b+44|0]=1;a=ca(585,a|0,1819566439)|0;c=J[195395];J[195395]= -0;if((c|0)==1)break b;J[195395]=0;a=ca(615,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(c){J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}xb=b+48|0;return a}a=Z()|0;ed(b);ba(a|0);B()}ga(0)|0;_b();B()}function yD(a,b,c){var d=0,e=0;d=xb-16|0;xb=d;e=J[a+200>>2];if(e&1){a:{if(!(!b|!(K[b+9|0]&2))){Wb(a,261332);mc(a,c);break a}if(e&4)J[a+200>>2]=e|8;if((c|0)!=7){Wb(a,261353);mc(a,c);break a}c=d+9|0;Gd(a,c,7);Fc(a,c,7);if(mc(a,0))break a;H[d+6|0]=K[d+15|0]; -c=K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14|0]<<24);I[d+2>>1]=c;I[d+4>>1]=c>>>16;c=K[d+9|0]|K[d+10|0]<<8;I[d>>1]=c<<8|c>>>8;b:{if(K[a+201|0]&2|(!a|!b))break b;c:{if(!((K[d+2|0]-13&255)>>>0<244|(K[d+3|0]-32&255)>>>0<225|(K[d+4|0]>23|K[d+5|0]>59)))if(K[d+6|0]<61)break c;Wb(a,258705);break b}a=L[d+4>>1]|L[d+6>>1]<<16;J[b+60>>2]=L[d>>1]|L[d+2>>1]<<16;J[b+64>>2]=a;J[b+8>>2]=J[b+8>>2]|512}}xb=d+16|0;return}gc(a,261308);B()}function fF(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+4>>2];d=Qb(28);J[d+8>>2]=0;J[d+12>> -2]=0;J[d+4>>2]=b;J[d>>2]=0;J[d+24>>2]=-1414746709;J[d+16>>2]=0;J[d+20>>2]=0;e=J[a>>2];a:{if(!e)break a;b=e;while(1){c=b;b=J[b+8>>2];if(b)continue;break}b=J[c>>2];if(!b)break a;while(1){b:{if(!e)break b;c=J[a+12>>2];c:{if(!c)break c;f=J[a+4>>2];d:{if(f){c=Ab[f|0](J[e>>2],b)|0;break d}if(b>>>0>>0)break c;c=b>>>0>c>>>0?-1:0}if(!c)break b}gj(a,0,b,a,0,0);if(J[a+8>>2]){ss(a);gj(a,0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}rs(d,nF(J[J[a>>2]>>2]),mF(J[J[a>>2]+4>>2]));e=J[a>>2];b=J[e+12>>2];if(!b)break a; -while(1){c=b;b=J[b+8>>2];if(b)continue;break}b=J[c>>2];if(b)continue;break}}return d}function ar(a,b,c,d){var e=0,f=0;e=J[a+8264>>2];a:{if(e>>>0>b>>>0){e=0;if(bc(J[a>>2],J[a+68>>2]))break a;Wl(a+12|0);J[a+28>>2]=0;J[a+12>>2]=a+72;J[a+16>>2]=0;e=a+8264|0;J[a+8272>>2]=e;J[a+24>>2]=a+4168;J[a+8268>>2]=e;J[a+8264>>2]=0;e=0}b:{if(b>>>0>e>>>0){b=b-e|0;c:{while(1){f=J[a+8268>>2];e=J[a+8272>>2]-f|0;e=b>>>0>e>>>0?e:b;J[a+8268>>2]=e+f;J[a+8264>>2]=e+J[a+8264>>2];b=b-e|0;if(!b)break c;if(!YB(a))continue;break}return 0}if(d)break b; -return 0}if(d)break b;return 0}e=0;while(1){f=J[a+8268>>2];b=J[a+8272>>2]-f|0;b=b>>>0>>0?b:d;c=Mb(c,f,b);J[a+8268>>2]=b+J[a+8268>>2];J[a+8264>>2]=b+J[a+8264>>2];e=b+e|0;d=d-b|0;if(!d)break a;c=b+c|0;if(!YB(a))continue;break}}return e}function Mw(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;j=xb-16|0;xb=j;if((b^-1)+2147483631>>>0>=c>>>0){if(K[a+11|0]>>>7|0)i=J[a>>2];else i=a;k=i;i=j+4|0;l=i;if(b>>>0<1073741799){J[j+12>>2]=b<<1;J[j+4>>2]=b+c;c=xb-16|0;xb=c;xb=c+16|0;c=j+12|0;c=J[(M[i>>2]>2]?c:i)>>2]; -if(c>>>0>=11){i=c+16&-16;c=i-1|0;c=(c|0)==11?i:c}else c=10;c=c+1|0}else c=2147483631;cl(l,c);c=J[j+4>>2];if(e)$g(c,k,e);if(g)$g(c+e|0,h,g);i=e+f|0;h=d-i|0;if((d|0)!=(i|0))$g((c+e|0)+g|0,(e+k|0)+f|0,h);b=b+1|0;if((b|0)!=11)Om(k,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[j+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;b=a;a=h+(e+g|0)|0;J[b+4>>2]=a;H[j+12|0]=0;H[a+c|0]=K[j+12|0];xb=j+16|0;return}dd(a);B()}function AH(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,r=0;j=P(c, -1348)+a|0;f=J[j- -64>>2];g=J[j+56>>2];i=P(c,7676)+b|0;k=J[i+44>>2];b=Rb(M[b+40>>2]/40|0,k);c=1;a:{if((g|0)<=0)break a;a=J[i+260>>2];if(!a)break a;p=(b|0)>=32?32:b;q=P(g,44)+f|0;r=i+264|0;while(1){if(c){c=0;b=p;g=0;while(1){h=P(c,28)+r|0;d=J[h+24>>2];if(!(!(d&1)|(d&2)>>>1^J[j+68>>2]!=H[f+13|0])){a=I[f>>1];l=J[h>>2];m=a-l|0;d=m>>31;n=J[h+12>>2];o=a-n|0;e=o>>31;d=(d^m)-d>>>0>(e^o)-e>>>0;e=a-(d?n:l)|0;a=e>>31;e=Rb((a^e)-a|0,k);a=(e|0)<(b|0);b=a?e:b;g=a?d?h+12|0:h:g;a=J[i+260>>2]}c=c+1|0;if(c>>>0>> -0)continue;break}if(g)J[f+20>>2]=g;c=a}else c=0;f=f+44|0;if(q>>>0>f>>>0)continue;break}}}function $F(a){var b=0,c=0;b=!a;if(!(b|(a|0)==774844))a:{if(b)break a;b=J[a>>2];if(!b)break a;J[a>>2]=b-1;if((b|0)!=1)break a;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}b=J[a+36>>2];b:{if(!b){b=0;break b}c=J[b>>2];if(c){b=J[a+32>>2];if(b)b=J[b>>2];else b=0;Ab[c|0](b);b=J[a+36>>2]}c=J[b+4>>2];if(c){b=J[a+32>>2];if(b)b=J[b+4>>2];else b=0;Ab[c|0](b);b=J[a+36>>2]}c=J[b+8>>2];if(c){b=J[a+32>> -2];if(b)b=J[b+8>>2];else b=0;Ab[c|0](b);b=J[a+36>>2]}c=J[b+12>>2];if(c){b=J[a+32>>2];if(b)b=J[b+12>>2];else b=0;Ab[c|0](b);b=J[a+36>>2]}c=J[b+16>>2];if(!c)break b;b=J[a+32>>2];if(b)b=J[b+16>>2];else b=0;Ab[c|0](b);b=J[a+36>>2]}Kb(b);Kb(J[a+32>>2]);Kb(a)}}function Tla(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=J[c+68>>2];a:{if(!e)break a;f=e-1|0;g=J[c+80>>2];d=g+3|0;a=0;b=K[g+15|0];while(1){b:{if((a|0)==(f|0)){a=e;break b}a=a+1|0;if((b|0)==K[(d+P(a,20)|0)+12|0])continue}break}if(!e)break a; -i=g+2|0;d=0;h=g;f=e;while(1){b=a;c:{if(a>>>0<=d>>>0)break c;while(1){a=P(d,20);if(K[(a+g|0)+12|0]&16){H[(a+i|0)+16|0]=22;h=J[c+80>>2];f=J[c+68>>2];break c}d=d+1|0;if((b|0)!=(d|0))continue;break}}a=b+1|0;d=a>>>0>>0?f:a;j=d-1|0;k=h+3|0;l=K[(P(b,20)+h|0)+15|0];a=b;while(1){d:{if((a|0)==(j|0)){a=d;break d}a=a+1|0;if(K[(P(a,20)+k|0)+12|0]==(l|0))continue}break}d=b;if(e>>>0>d>>>0)continue;break}}return 0}function jfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o= -0,p=0;a:{if((e|0)<=0)break a;k=J[a+28>>2];if(!k)break a;j=J[J[a+408>>2]+8>>2];while(1){l=e-1|0;a=d<<2;m=J[a+J[c+12>>2]>>2];n=J[a+J[c+8>>2]>>2];o=J[a+J[c+4>>2]>>2];p=J[a+J[c>>2]>>2];a=J[b>>2];f=0;while(1){g=K[a+2|0];h=K[a+1|0];i=K[a|0];H[f+m|0]=K[a+3|0];g=((g^255)<<2)+j|0;h=((h^255)<<2)+j|0;i=((i^255)<<2)+j|0;H[f+p|0]=J[g+2048>>2]+(J[h+1024>>2]+J[i>>2]|0)>>>16;H[f+o|0]=J[g+5120>>2]+(J[h+4096>>2]+J[i+3072>>2]|0)>>>16;H[f+n|0]=J[g+7168>>2]+(J[h+6144>>2]+J[i+5120>>2]|0)>>>16;a=a+4|0;f=f+1|0;if((k|0)!= -(f|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=l;if(a)continue;break}}}function Jba(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;if((c|0)>0){g=J[a+12>>2];while(1){i=c;j=J[a+4>>2];f=+N[b+4>>2];c=1023;a:{if(f>=15.742)break a;c=0;if(f<=2.4283E-4)break a;d=gl(f)*1.4426950408889634+12;if(j){e=Kpa(J[195008],J[195009],1284865837,1481765933);c=zb;e=e+1|0;c=e?c:c+1|0;J[195008]=e;J[195009]=c;f=+N[b+4>>2];d=d*64+ +(c>>>1|0)*4.656612875245797E-10+-.5}else d=d*64;if(R(d)<2147483648){c= -~~d;break a}c=-2147483648}e=c;d=.473684211;k=.210526316;b:{if(!c)break b;l=+N[b>>2];h=+N[b+8>>2]*3+(f*15+l);if(h<=0)break b;d=f*9/h;k=l*4/h}c=i-1|0;m=e<<14;e=QC(k,d,j);J[g>>2]=m|((e|0)<0?12266:e);b=b+12|0;g=g+4|0;if(i>>>0>1)continue;break}}}function sd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=xb-16|0;xb=e;a:{if(!(K[a+12|0]&128))break a;b:switch(L[b+2>>1]-3|0){case 0:case 5:dk(c,J[b+4>>2]);break a;case 1:case 6:case 8:Zh(c,J[b+4>>2]);break a;case 2:case 7:Zh(c,J[b+4>>2]<<1);break a;case 9:break b; -default:break a}vr(c,J[b+4>>2])}J[b+8>>2]=J[a+488>>2];f=J[b+4>>2];d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+283312>>2];else d=0;c:{d:{if((Ab[J[a+640>>2]](J[a+628>>2],J[b+8>>2],0)|0)!=J[b+8>>2])break d;g=c;c=P(d,f);if((Ab[J[a+636>>2]](J[a+628>>2],g,c)|0)!=(c|0))break d;h=1;J[a+488>>2]=J[a+488>>2]+(c+1&-2);break c}c=J[a>>2];d=J[a+628>>2];i=e,j=J[nd(a,L[b>>1])+16>>2],J[i>>2]=j;Ob(d,c,269950,e)}xb=e+16|0;return h}function gu(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=xb-32|0;xb=g;e=b+1|0;if(e>>>0>>0){f=b;while(1){i= -e;a:{if(b>>>0>=e>>>0)break a;while(1){h=J[a+80>>2];if((Ab[d|0]((h+P(e,20)|0)-20|0,h+P(i,20)|0)|0)<=0)break a;e=e-1|0;if(e>>>0>b>>>0)continue;break}e=b}if((e|0)!=(i|0)){f=f+2|0;if(f-e>>>0>=2)Kd(a,e,f);h=J[a+80>>2];f=h+P(i,20)|0;J[g+24>>2]=J[f+16>>2];j=J[f+12>>2];J[g+16>>2]=J[f+8>>2];J[g+20>>2]=j;j=J[f+4>>2];J[g+8>>2]=J[f>>2];J[g+12>>2]=j;f=P(e,20);h=f+h|0;qc(h+20|0,h,P(i-e|0,20));e=f+J[a+80>>2]|0;f=J[g+12>>2];J[e>>2]=J[g+8>>2];J[e+4>>2]=f;J[e+16>>2]=J[g+24>>2];f=J[g+20>>2];J[e+8>>2]=J[g+16>>2];J[e+ -12>>2]=f}f=i;e=f+1|0;if((e|0)!=(c|0))continue;break}}xb=g+32|0}function nda(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=1;e=0;a:{if(!a)break a;d=J[a>>2];e=0;if(!d)break a;g=J[d+676>>2];f=0;c=d;e=J[c+668>>2]}b:{if(!b)break b;d=J[b>>2];if(!d)break b;c:{if(f)break c;bi(c,d,32767,-1);if(!J[c+644>>2])break c;cc(c,J[c+648>>2]);J[c+644>>2]=0}kk(d,g,e);J[b>>2]=0}if(!f){b=xb-160|0;xb=b;if(J[c+276>>2])wk(c+212|0);cc(c,J[c+268>>2]);cc(c,J[c+356>>2]);cc(c,J[c+352>>2]);cc(c,J[c+360>>2]);cc(c,J[c+364>>2]); -cc(c,J[c+368>>2]);cc(c,J[c+372>>2]);b=Mb(b,c,156);d=J[c+164>>2];f=J[c+160>>2];h=J[c+168>>2];i=J[c+676>>2];Nb(c+156|0,0,612);J[c+676>>2]=i;J[c+168>>2]=h;J[c+160>>2]=f;J[c+164>>2]=d;Mb(c,b,156);xb=b+160|0;kk(c,g,e);J[a>>2]=0}}function LD(a,b,c){var d=0,e=0;d=xb-272|0;xb=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Wb(a,256051);mc(a,c);break a}if(e&2)Wb(a,256153);if(!(!b|(J[b+8>>2]&2049)!=1)){Wb(a,256288);mc(a,c);break a}if((c|0)!=4){Wb(a,256402);mc(a,c);break a}c=d+268|0;Gd(a,c,4);Fc(a,c,4);if(mc(a,0))break a; -c=K[d+268|0]|K[d+269|0]<<8|(K[d+270|0]<<16|K[d+271|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((c|0)<=0){Wb(a,256593);break a}c=(c|0)<0?-1:c;if(!(!b|!(K[b+9|0]&8)|c-46001>>>0>4294966294)){yf(d,1,5,c);$i(a,d,256663);break a}J[a+460>>2]=c;b:{if(!a|!b)break b;if(c-625000001>>>0<=3669967310){Wb(a,254255);break b}J[b+40>>2]=c;J[b+8>>2]=J[b+8>>2]|1}}xb=d+272|0;return}gc(a,255957);B()}function lla(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a=b-44032|0;a:{b:{if(a>>>0<=11171){f=a&65535;e=(f>>> -0)%28|0;if(e){a=e+4519|0;J[c>>2]=b-e;break b}b=(f>>>0)/588|0;a=(((a-P(b,588)&65535)>>>0)/28|0)+4449|0;J[c>>2]=b|4352;break b}a=0;if(b>>>0>195101)break a;b=L[(K[(b>>>4&31|K[(b>>>9|0)+187166|0]<<5)+187548|0]<<5|(b&15)<<1)+200416>>1];if(!b)break a;if(b>>>0<=935){if(b>>>0<=825)b=L[(b<<1)+213774>>1];else b=L[(b<<1)+213788>>1]|131072;J[c>>2]=b;break b}a=b-936|0;if(a>>>0<=637){a=J[(a<<2)+208112>>2];J[c>>2]=a>>>21;a=a>>>14&127|768;break b}b=(b<<3)+198080|0;a=J[b>>2];b=J[b+4>>2];J[c>>2]=b>>>10;a=((b&2097151)<< -11|a>>>21)&2097151}J[d>>2]=a;a=1}return a|0}function T7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=88;J[c+8>>2]=1;J[a+8>>2]=J[a+8>>2]+88;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],b+16|0,4);Lb(J[a+4>>2],b+20|0,4);Lb(J[a+4>>2],b+24|0,4);Lb(J[a+4>>2],b+28|0,4);J[c+4>>2]=0;Lb(J[a+4>>2],b+32|0,4);Lb(J[a+4>>2],b+36|0,4);Lb(J[a+4>>2],b+40|0,4);Lb(J[a+4>>2],b+44|0,4);Lb(J[a+ -4>>2],b+48|0,2);Lb(J[a+4>>2],b+50|0,2);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],b- -64|0,4);Lb(J[a+4>>2],b+68|0,4);Lb(J[a+4>>2],b+72|0,4);Lb(J[a+4>>2],b+76|0,4);xb=c+16|0}function lI(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[b+12>>2];c=J[b+4>>2];if(e>>>0>>0)return 0;d=J[b+8>>2];if(d-a>>>0<16)return 0;f=a+1|0;if(e>>>0>>0)return 0;if(d-f>>>0<3)return 0;c=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);a:{if(c){d=J[b+12>>2];c=a+c|0;e=J[b+4>>2];b:{if(d>>>0>>0)break b;f= -J[b+8>>2];if(f-c>>>0<3)break b;g=c+1|0;if(g-e>>>0>d>>>0|f-g>>>0<2)break b;g=d;d=c+3|0;if(g>>>0>>0)break b;c=K[c+1|0]|K[c+2|0]<<8;c=P((c<<8|c>>>8)&65535,10);if(c>>>0>f-d>>>0)break b;e=J[b+16>>2]-c|0;J[b+16>>2]=e;d=1;if((e|0)>0)break a}c=J[b+32>>2];if(c>>>0>31)return 0;J[b+32>>2]=c+1;d=0;if(!K[b+28|0])break a;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}d=1}return d}function mI(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[b+12>>2];c=J[b+4>>2];if(e>>>0>>0)return 0;d=J[b+8>>2];if(d-a>>>0<16)return 0;f=a+1|0;if(e>>> -0>>0)return 0;if(d-f>>>0<3)return 0;c=K[a+3|0]|(K[a+2|0]<<8|K[a+1|0]<<16);a:{if(c){d=J[b+12>>2];c=a+c|0;e=J[b+4>>2];b:{if(d>>>0>>0)break b;f=J[b+8>>2];if(f-c>>>0<3)break b;g=c+1|0;if(g-e>>>0>d>>>0|f-g>>>0<2)break b;g=d;d=c+3|0;if(g>>>0>>0)break b;c=K[c+1|0]|K[c+2|0]<<8;c=P((c<<8|c>>>8)&65535,6);if(c>>>0>f-d>>>0)break b;e=J[b+16>>2]-c|0;J[b+16>>2]=e;d=1;if((e|0)>0)break a}c=J[b+32>>2];if(c>>>0>31)return 0;J[b+32>>2]=c+1;d=0;if(!K[b+28|0])break a;H[a+3|0]=0;H[a+1|0]=0;H[a+2|0]=0}d=1}return d} -function Xi(a,b,c){var d=0,e=Q(0),f=0,g=0,h=0,i=0,j=0,k=0;h=xb-16|0;xb=h;i=Qb(J[b+4>>2]<<3);a:{if(i){if(J[b+4>>2])while(1){g=1;e=N[(j<<2)+c>>2];b:{if(e>1]==5){d=J[a>>2];f=J[a+628>>2];k=J[nd(a,L[b>>1])+16>>2];O[h+8>>3]=e;J[h>>2]=k;yc(f,d,271123,h);e=Q(0);d=1;break b}g=-1;e=Q(-e)}d=1;if(!(e>Q(0))|!(e>>0<33554432;d=f;if(k)continue}break}d=f}f=(j<<3)+i|0;J[f+4>>2]=d;g=g*(+e+.5);d:{if(g<4294967296&g>= -0){d=~~g>>>0;break d}d=0}J[f>>2]=d;j=j+1|0;if(j>>>0>2])continue;break}d=sd(a,b,i);Kb(i);break a}Ob(J[a+628>>2],J[a>>2],270012,0)}xb=h+16|0;return d}function Uc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{f=P(b,12)+a|0;d=J[f+76>>2];if((d|0)>=0){e=J[f+80>>2]+1|0;g=(e|0)>0?e:0;if(g>>>0<=d>>>0)break b;e=d;while(1){e=((e>>>1|0)+e|0)+8|0;if(g>>>0>e>>>0)continue;break}if(e>>>0<=536870911){h=P(b,12)+a|0;d=ic(J[h+84>>2],e<<3);if(d)break c;d=J[f+76>>2];if(d>>>0>=e>>>0)break b}J[f+76>>2]= -d^-1}d=J[42445];J[194120]=J[42444];J[194121]=d;d=776480;break a}J[h+84>>2]=d;J[f+76>>2]=e}e=J[f+80>>2];d:{if(e>>>0>=g>>>0)break d;d=g-e<<3;if(!d)break d;Nb(J[(P(b,12)+a|0)+84>>2]+(e<<3)|0,0,d)}J[f+80>>2]=g;d=(J[(P(b,12)+a|0)+84>>2]+(g<<3)|0)-8|0}a=(b<<2)+a|0;b=J[a+56>>2];J[d+4>>2]=c;J[d>>2]=b;J[a+56>>2]=b+1}function Jk(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;e=169776;d=K[a+2|0]|K[a+3|0]<<8;a:{if(!d)break a;j=a+4|0;h=((d<<8|d>>>8)&65535)-1|0;m=(b<<8|(b&65280)>>>8)&65535;n=(c<<8|(c&65280)>>> -8)&65535;while(1){b:{c:{d:{f=h+k>>>1|0;g=(f<<3)+j|0;i=K[g|0]|K[g+1|0]<<8;l=(i<<8|i>>>8)&65535;d=b&65535;e:{if(!(l>>>0>d>>>0|(i|0)!=(m|0))){d=K[g+2|0]|K[g+3|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>(c&65535)>>>0)break e;if((d|0)==(n|0))break d;break c}if(d>>>0>=l>>>0)break c}h=f-1|0;break b}e=(f<<3)+j|0;break a}k=f+1|0}if((h|0)>=(k|0))continue;break}}b=a;a=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);return a?b+(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))|0:0}function Oz(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;d=xb-16|0;xb=d;c=d+4|0;Qj(c,b+26|0,32,1);a:{b:{e=J[d+4>>2];f=H[d+15|0];g=(f|0)<0?e:c;c=id(g);if(c>>>0>=1073741808){J[195395]=0;ea(1800,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;break a}c:{if(c>>>0<=1){H[a+11|0]=c;break c}b=c|3;if(b>>>0>=1073741823){J[195395]=0;ja(1292);a=J[195395];J[195395]=0;if((a|0)!=1)break a;break b}J[195395]=0;h=b+1|0;b=_(1078,h<<2)|0;i=J[195395];J[195395]=0;if((i|0)==1)break b;J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=h|-2147483648;a=b}b=a;a=c<<2;j=qc(b, -g,a)+a|0,k=0,J[j>>2]=k;if((f|0)<0)Kb(e);xb=d+16|0;return}a=Z()|0;if(H[d+15|0]<0)Kb(J[d+4>>2]);ba(a|0);B()}B()}function Kha(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a>>2];c=J[a+436>>2];J[d+24>>2]=c;J[d+20>>2]=124;J[J[a>>2]+28>>2]=b;Ab[J[J[a>>2]+4>>2]](a,-1);d=b+6&7|208;f=b-1&7|208;g=b+2&7|208;b=b+1&7|208;while(1){a:{b:{if((c|0)<192)break b;if((b|0)==(c|0)|c-216>>>0<4294967288|(c|0)==(g|0))break a;if((c|0)==(f|0)|(c|0)==(d|0))break b;b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=99;J[J[a>>2]+28>>2]=1;Ab[J[J[a>> -2]+4>>2]](a,4);J[a+436>>2]=0;return 1}e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=99;J[J[a>>2]+28>>2]=2;Ab[J[J[a>>2]+4>>2]](a,4);if(Yr(a)){c=J[a+436>>2];continue}else return 0}break}b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=99;J[J[a>>2]+28>>2]=3;Ab[J[J[a>>2]+4>>2]](a,4);return 1}function Ai(a){var b=0,c=0,d=0,e=0;c=J[a+420>>2];a:{if(!c)break a;b=J[a+412>>2];if((b|0)<=0)break a;b=P(b,24)+c|0;d=K[a+372|0];while(1){if(!(!K[c+16|0]|(d|0)!=K[c+12|0])){b=J[a+432>>2];if((b|0)>=J[a+436>>2]){J[a+12>>2]=130;return}J[a+432>> -2]=b+1;b=J[a+440>>2]+(b<<4)|0;J[b>>2]=J[a+356>>2];d=J[a+364>>2];J[b+12>>2]=c;J[b+8>>2]=1;J[b+4>>2]=d+1;b=J[c>>2];b:{if(b-4>>>0<=4294967292){J[a+12>>2]=132;break b}d=(b-1<<3)+a|0;e=J[d+448>>2];if(!e){J[a+12>>2]=138;break b}d=J[d+452>>2];c=J[c+4>>2];if((d|0)<(c|0)){J[a+12>>2]=131;break b}J[a+368>>2]=d;J[a+360>>2]=e;J[a+364>>2]=c;J[a+356>>2]=b}H[a+380|0]=0;return}c=c+24|0;if(b>>>0>c>>>0)continue;break}}J[a+12>>2]=128}function Gv(a,b,c){var d=0,e=0,f=0,g=0;g=J[(c?16:12)+b>>2];b=J[(c?8:4)+b>>2];e=P(c, -7676)+a|0;f=e+7712|0;a=e+7716|0;a:{if((b|0)==J[f>>2]&J[a>>2]==(g|0))break a;J[f>>2]=b;J[a>>2]=g;J[e+44>>2]=b;J[e+48>>2]=g;if(!J[e+260>>2])break a;f=0;while(1){a=P(f,28)+e|0;c=Rb(J[a+264>>2],b)+g|0;J[a+272>>2]=c;J[a+268>>2]=c;c=Rb(J[a+276>>2],b)+g|0;J[a+284>>2]=c;J[a+280>>2]=c;J[a+288>>2]=J[a+288>>2]&-2;if(Rb(J[a+264>>2]-J[a+276>>2]|0,b)+48>>>0<=96){c=J[a+268>>2]+32&-64;J[a+272>>2]=c;c=dc(c,b)-J[a+276>>2]|0;d=c>>31;d=Rb((c^d)-d|0,b);d=(d|0)>=32?d+32&-64:0;J[a+284>>2]=((c|0)<0?d:0-d|0)+J[a+272>>2]; -J[a+288>>2]=J[a+288>>2]|1}f=f+1|0;if(f>>>0>2])continue;break}}}function dba(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;a:{if(!Gg(a,287936,7)){Ob(J[a+628>>2],287907,263434,0);a=0;break a}b=Qb(5264);if(!b){Ob(J[a+628>>2],287907,264070,0);a=0;break a}Pd(b,0,5264);I[b+208>>1]=514;H[b+204|0]=1;J[b>>2]=a;J[c>>2]=2;J[c+4>>2]=2;xc(a,530,c);J[a+652>>2]=1683;J[a+520>>2]=1684;J[a+516>>2]=1685;J[a+556>>2]=1686;J[a+548>>2]=1686;J[a+540>>2]=1686;J[a+584>>2]=b;J[a+572>>2]=1687;J[a+560>>2]=1688;J[a+552>>2]= -1688;J[a+544>>2]=1688;J[a+536>>2]=1689;J[a+532>>2]=1690;J[a+524>>2]=1691;J[b+160>>2]=J[a+672>>2];J[a+672>>2]=1692;J[b+164>>2]=J[a+668>>2];J[a+676>>2]=1693;J[a+668>>2]=1694;J[a+12>>2]=J[a+12>>2]|131072;a=1}xb=c+16|0;return a|0}function Rja(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;e=xb-16|0;xb=e;d=J[a+112>>2];J[e+12>>2]=d;f=J[a+108>>2];J[e+8>>2]=f;g=P(d,f)<<2;a:{if((g|0)<=0)break a;J[b+8>>2]=J[e+8>>2];J[b+4>>2]=J[e+12>>2];J[e+4>>2]=J[e+12>>2]<<2;J[b+12>>2]=J[e+4>>2];d=Pb(g);J[b+16>> -2]=d;b=J[a+108>>2];if(!b)break a;f=J[a+112>>2];if(!f)break a;i=c?0:2;j=c?2:0;while(1){b:{if(!f){f=0;break b}b=J[a+144>>2]+P(P(J[a+288>>2],h),f)|0;c=0;while(1){H[d+j|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+i|0]=K[b+2|0];H[d+3|0]=K[b+3|0];d=d+4|0;b=b+4|0;c=c+1|0;f=J[a+112>>2];if(c>>>0>>0)continue;break}b=J[a+108>>2]}h=h+1|0;if(h>>>0>>0)continue;break}}xb=e+16|0;return(g|0)>0|0}function Nga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((e| -0)<=0)break a;i=J[a+112>>2];if(!i)break a;g=J[a+332>>2];a=J[a+476>>2];k=J[a+20>>2];l=J[a+16>>2];m=J[a+12>>2];n=J[a+8>>2];while(1){o=c+1|0;p=e-1|0;a=c<<2;q=J[a+J[b+12>>2]>>2];r=J[a+J[b+8>>2]>>2];s=J[a+J[b+4>>2]>>2];t=J[a+J[b>>2]>>2];c=J[d>>2];a=0;while(1){f=K[a+s|0];h=K[a+t|0]^255;j=K[a+r|0]<<2;H[c|0]=K[(h-J[j+n>>2]|0)+g|0];f=f<<2;H[c+1|0]=K[(h-(J[l+j>>2]+J[f+k>>2]>>16)|0)+g|0];H[c+2|0]=K[(h-J[f+m>>2]|0)+g|0];H[c+3|0]=K[a+q|0];c=c+4|0;a=a+1|0;if((i|0)!=(a|0))continue;break}d=d+4|0;a=(e|0)>1;e=p;c= -o;if(a)continue;break}}}function iC(a,b){var c=0,d=0,e=0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;d=K[b+11|0];c=d<<24>>24<0;a:{d=c?J[b+4>>2]:d;if(d){b=c?J[b>>2]:b;e=b+(d<<2)|0;while(1){c=391E3;b:{c:{d:{e:{f:{g:{h:{d=J[b>>2];switch(d-13|0){case 47:break h;case 0:break b;case 49:break d;case 21:break e;case 26:break f;case 25:break g;default:break c}}c=390980;break d}c=391020;break d}c=391044;break d}c=391072}J[195395]=0;ca(1858,a|0,c|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break a;break b}if(d>>>0<32)break b; -J[195395]=0;$(1811,a|0,d|0);c=J[195395];J[195395]=0;if((c|0)==1)break a}b=b+4|0;if((e|0)!=(b|0))continue;break}}return}b=Z()|0;if(H[a+11|0]<0)Kb(J[a>>2]);ba(b|0);B()}function Qga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if((e|0)<=0)break a;a=J[a+112>>2];if(!a)break a;l=a&-4;k=a&3;m=a-1>>>0<3;while(1){i=J[J[b>>2]+(c<<2)>>2];a=J[d>>2];j=0;g=0;h=0;if(!m)while(1){f=K[g+i|0];H[a+1|0]=f;H[a+2|0]=f;H[a|0]=f;f=K[(g|1)+i|0];H[a+4|0]=f;H[a+5|0]=f;H[a+3|0]=f;f=K[(g|2)+ -i|0];H[a+7|0]=f;H[a+8|0]=f;H[a+6|0]=f;f=K[(g|3)+i|0];H[a+10|0]=f;H[a+11|0]=f;H[a+9|0]=f;g=g+4|0;a=a+12|0;h=h+4|0;if((l|0)!=(h|0))continue;break}if(k)while(1){h=K[g+i|0];H[a+1|0]=h;H[a+2|0]=h;H[a|0]=h;g=g+1|0;a=a+3|0;j=j+1|0;if((j|0)!=(k|0))continue;break}d=d+4|0;c=c+1|0;a=(e|0)>1;e=e-1|0;if(a)continue;break}}}function C0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-80|0;xb=c;d=J[a+208>>2];if(d)Ab[J[J[d>>2]+436>>2]](d,b);J[c+60>>2]=0;J[c+64>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;d=J[b+8>>2];J[c+68>>2]=0;J[c+ -40>>2]=d;J[c+44>>2]=0;e=J[b+12>>2];J[c+48>>2]=e;J[c+72>>2]=J[b+56>>2];J[c+32>>2]=J[b>>2];f=J[b+4>>2];J[c+76>>2]=0;J[c+36>>2]=f;f=J[a+116>>2];e=(d<<((e^-1)>>>9&1))+(e&256?28:44)|0;if((f|0)!=(e|0)){d=J[J[a>>2]-12>>2]+a|0;e=J[d+12>>2]+(f-e|0)|0;f=d+12|0;d=J[d+16>>2];J[f>>2]=d>>>0>e>>>0?e:d}b=J[b+16>>2];J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+8>>2]=0;J[c+12>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=1072693248;J[c>>2]=0;J[c+4>>2]=1072693248;Xq(a,c+32|0,b,c);xb=c+80|0}function ur(a,b){var c=0,d=0,e=0;a:{b:{if(b>>> -0>8)while(1){H[a|0]=K[K[a|0]+283424|0];H[a+1|0]=K[K[a+1|0]+283424|0];H[a+2|0]=K[K[a+2|0]+283424|0];H[a+3|0]=K[K[a+3|0]+283424|0];H[a+4|0]=K[K[a+4|0]+283424|0];H[a+5|0]=K[K[a+5|0]+283424|0];H[a+6|0]=K[K[a+6|0]+283424|0];H[a+7|0]=K[K[a+7|0]+283424|0];a=a+8|0;b=b-8|0;if(b>>>0>8)continue;break b}if(!b)break a}e=b-1|0;c=b&3;if(c)while(1){H[a|0]=K[K[a|0]+283424|0];a=a+1|0;b=b-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}if(e>>>0<3)break a;while(1){H[a|0]=K[K[a|0]+283424|0];H[a+1|0]=K[K[a+1|0]+283424|0];H[a+ -2|0]=K[K[a+2|0]+283424|0];H[a+3|0]=K[K[a+3|0]+283424|0];a=a+4|0;b=b-4|0;if(b)continue;break}}}function hu(a,b,c,d){var e=0,f=0,g=0,h=0;e=a+1|0;f=H[a|0];g=f&255;if((f|0)>=0){J[c>>2]=g;return e}a:{if(g-194>>>0<=29){if(b>>>0<=e>>>0)break a;b=K[a+1|0]-128|0;if(b>>>0>=64)break a;J[c>>2]=b|g<<6&1984;return a+2|0}if((g&240)==224){if((b-e|0)<2)break a;b=K[e|0]-128|0;if(b>>>0>63)break a;f=K[a+2|0]-128|0;if(f>>>0>63)break a;b=f|(g<<12&61440|b<<6);if(b>>>0<2048|(b&-2048)==55296)break a;J[c>>2]=b;return a+3| -0}if((b-e|0)<3|g-240>>>0>4)break a;b=K[e|0]-128|0;if(b>>>0>63)break a;f=K[a+2|0]-128|0;if(f>>>0>63)break a;h=K[a+3|0]-128|0;if(h>>>0>63)break a;b=g<<18&1835008|b<<12|f<<6|h;if(b-65536>>>0>=1048576)break a;e=a+4|0;d=b}J[c>>2]=d;return e}function Mz(a){var b=0,c=0,d=0,e=0;b=J[a+4>>2];d=J[a+8>>2];a:{if((b|0)==(d|0)){b=d;break a}while(1){e=J[(c<<2)+b>>2];if(e){ml(e+12|0);Kb(qd(e));d=J[a+8>>2];b=J[a+4>>2]}c=c+1|0;if(c>>>0>2>>>0)continue;break}}J[a+8>>2]=b;b=J[a+20>>2];e=a+24|0;if((b|0)!=(e|0))while(1){c= -J[b+20>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);d=J[b+4>>2];b:{if(d)while(1){c=d;d=J[c>>2];if(d)continue;break b}while(1){c=J[b+8>>2];d=J[c>>2]!=(b|0);b=c;if(d)continue;break}}b=c;if((e|0)!=(c|0))continue;break}c=a+20|0;Sj(c,J[a+24>>2]);J[a+20>>2]=e;J[a+24>>2]=0;J[a+28>>2]=0;b=J[a+36>>2];if(b){J[a+40>>2]=b;Kb(b);b=J[a+24>>2]}else b=0;Sj(c,b);c=J[a+4>>2];if(c){J[a+8>>2]=c;Kb(c)}}function mj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=J[b+12>>2];c=J[a>>2];d=Ab[J[g+24>>2]](g,c,J[g+56>>2])|0;if(c>>>0>=128){J[b+144>>2]= -J[b+144>>2]|1;f=d;a:{if(!Ot(c))break a;h=J[b+144>>2];J[b+144>>2]=h|2;e=c-6155|0;f=d|96;if(!(e>>>0>4|(e|0)==3))break a;b:switch(c-8204|0){case 0:f=d|544;break a;case 1:f=d|288;break a;default:break b}e=d|96;f=e;if(c-917536>>>0<=95)break a;f=d|32;if((c|0)!=847)break a;J[b+144>>2]=h|18;f=e}e=f;if(d>>>0>31){I[a+16>>1]=e;return}if(!(1<>1]=e;return}b=65024;c:{if((c|0)==6752|(c|0)==4038)break c;b=32512;if((c|0)==3897)break c;b=K[(Ab[J[g+16>>2]](g,c,J[g+48>>2])|0)+215664|0]<<8}d=b|e|128}I[a+ -16>>1]=d}function en(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;a:{if(!c)break a;d=c+1|0;d=Pb(d>>>0>1073741823?-1:d<<2);b:{if((c|0)>0){e=d;while(1){c:{g=f+1|0;h=L[(f<<1)+b>>1];d:{e:{if((h- -8192&65535)>>>0<63488){f=g;break e}if((c|0)<=(g|0))break c;f=f+2|0;g=L[(g<<1)+b>>1];if((g&64512)!=56320)break d;h=(h<<10&1047552|g&1023)+65536|0}J[e>>2]=h;e=e+4|0}if((c|0)>(f|0))continue}break}if((d|0)!=(e|0))break b}break a}e=e-d|0;c=e>>2;if(c>>>0<1073741808){f:{if(c>>>0<=1){H[a+11|0]=c;break f}f= -(c|3)+1|0;b=Pb(f<<2);J[a+8>>2]=f|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}i=Mb(a,d,e)+(c<<2)|0,j=0,J[i>>2]=j;Kb(d);return}dd(a);B()}J[a>>2]=0;H[a+11|0]=0}function _da(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;a=Nb(a,0,256);d=J[b>>2]+c|0;e=K[d+3|0];f=K[d|0];g=e+f|0;h=K[d+2|0];i=K[d+1|0];j=h+i|0;d=g-j<<5;J[a+8>>2]=d;g=g+j<<5;J[a>>2]=g-16384;h=i-h|0;f=f-e|0;e=P(h+f|0,4433)+128|0;h=e+P(h,-15137)>>8;J[a+12>>2]=h;e=e+P(f,6270)>>8;J[a+4>>2]=e;b=J[b+4>>2]+c|0;c=K[b+3|0];f=K[b|0];i=c+f| -0;j=K[b+2|0];b=K[b+1|0];k=j+b|0;l=i-k<<5;J[a+40>>2]=d-l>>2;J[a+8>>2]=d+l>>2;d=g-16382|0;g=(i+k<<5)-16384|0;J[a+32>>2]=d-g>>2;J[a>>2]=d+g>>2;d=b-j|0;c=f-c|0;b=P(d+c|0,4433)+128|0;e=e+2|0;c=b+P(c,6270)>>8;J[a+36>>2]=e-c>>2;J[a+4>>2]=c+e>>2;c=h+2|0;b=b+P(d,-15137)>>8;J[a+44>>2]=c-b>>2;J[a+12>>2]=b+c>>2}function yh(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{if(!K[a+60|0])break b;if(M[a+148>>2]>>0){H[a+60|0]=0;return 0}d=J[a+80>>2];f=J[a+84>>2];if(b>>>0>214748364)break a;c=J[a+76>>2];if(c>>>0<=b>>>0)while(1){c= -((c>>>1|0)+c|0)+32|0;if(c>>>0<=b>>>0)continue;break}b=Kpa(c,0,20,0);if(zb)break a;e=ic(J[a+88>>2],b);b=ic(J[a+80>>2],b);if(!(b?e:0)){H[a+60|0]=0;if(e)J[a+88>>2]=e;if(!b){J[a+84>>2]=J[((d|0)==(f|0)?80:88)+a>>2];return 0}J[a+80>>2]=b;J[a+84>>2]=(d|0)==(f|0)?b:J[a+88>>2];return 0}J[a+88>>2]=e;J[a+80>>2]=b;J[a+84>>2]=(d|0)==(f|0)?b:e;if(!K[a+60|0])break b;J[a+76>>2]=c;g=1}return g}H[a+60|0]=0;J[a+84>>2]=(d|0)==(f|0)?d:J[a+88>>2];return 0}function lfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g= -0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if((e|0)<=0)break a;h=J[a+76>>2];if((h|0)<=0)break a;a=J[a+28>>2];if(!a)break a;l=a&-4;k=a&3;m=a-1>>>0<3;while(1){n=e-1|0;g=0;while(1){j=J[J[(g<<2)+c>>2]+(d<<2)>>2];f=J[b>>2];a=0;i=0;if(!m)while(1){H[a+j|0]=K[f+g|0];f=f+h|0;H[(a|1)+j|0]=K[f+g|0];f=f+h|0;H[(a|2)+j|0]=K[f+g|0];f=f+h|0;H[(a|3)+j|0]=K[f+g|0];a=a+4|0;f=f+h|0;i=i+4|0;if((l|0)!=(i|0))continue;break}i=0;if(k)while(1){H[a+j|0]=K[f+g|0];a=a+1|0;f=f+h|0;i=i+1|0;if((k|0)!=(i|0))continue;break}g=g+1|0;if((h|0)!= -(g|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=n;if(a)continue;break}}}function Mna(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+712>>2];a:{b:{if(!e)break b;f=J[e+1504>>2];a=6;if((f|0)==65535)break a;if(b){a=J[e+3096>>2];if(!a){c:{if(f>>>0>=391){f=f-391|0;g=0;if(f>>>0>=M[e+1356>>2])break c;g=J[J[e+1360>>2]+(f<<2)>>2];break c}a=J[e+3084>>2];g=0;if(!a)break c;g=Ab[J[a+20>>2]](f)|0}a=g;J[e+3096>>2]=a}J[b>>2]=a}if(c){a=J[e+3100>>2];if(!a){a=0;b=J[e+1508>>2];d:{if((b|0)==65535)break d;if(b>>> -0>=391){b=b-391|0;if(b>>>0>=M[e+1356>>2])break d;a=J[J[e+1360>>2]+(b<<2)>>2];break d}f=J[e+3084>>2];if(!f)break d;a=Ab[J[f+20>>2]](b)|0}J[e+3100>>2]=a}J[c>>2]=a}if(!d)break b;J[d>>2]=J[e+1512>>2]}a=0}return a|0}function Nv(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+28>>2];a:{if((b|0)==-1)break a;d=J[a+36>>2];f=J[a+40>>2];if(d>>>0>=f>>>0)break a;g=J[a>>2];e=b+1|0;h=J[a+16>>2]+16|0;while(1){b:{b=P(d,12)+h|0;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=c>>> -0>>0?e:c;c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(e>>>0>(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0)break b;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b|b>>>0>=M[g+16>>2])break b;J[a+36>>2]=d;J[a+32>>2]=b;J[a+28>>2]=e;return}d=d+1|0;if((f|0)!=(d|0))continue;break}}H[a+24|0]=0}function ML(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;f=J[a+736>>2];a:{if(!f){d=vj(a,0);if(d)break a;f=J[a+736>>2]}if(!J[f+4>>2]){d=qm(a, -0,0,1);if(d)break a}e=J[f>>2];e=b>>>0>e>>>0?e:b;b:{if(K[a+733|0]){if(!e){e=0;break b}f=J[f+8>>2];a=0;if(e>>>0>=4){h=e&-4;while(1){d=a<<2;J[d+c>>2]=J[d+f>>2];g=d|4;J[g+c>>2]=J[f+g>>2];g=d|8;J[g+c>>2]=J[f+g>>2];d=d|12;J[d+c>>2]=J[d+f>>2];a=a+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}d=e&3;if(!d)break b;while(1){h=a<<2;J[h+c>>2]=J[f+h>>2];a=a+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}break b}if(!e){e=0;break b}Nb(c,0,e<<2)}d=0;if(b>>>0<=e>>>0)break a;Nb((e<<2)+c|0,0,b-e<<2)}return d|0}function LL(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;f=J[a+736>>2];a:{if(!f){d=vj(a,0);if(d)break a;f=J[a+736>>2]}if(!J[f+4>>2]){d=qm(a,0,0,1);if(d)break a}e=J[f>>2];e=b>>>0>e>>>0?e:b;b:{if(K[a+733|0]){if(!e){e=0;break b}f=J[f+4>>2];a=0;if(e>>>0>=4){h=e&-4;while(1){d=a<<2;J[d+c>>2]=J[d+f>>2];g=d|4;J[g+c>>2]=J[f+g>>2];g=d|8;J[g+c>>2]=J[f+g>>2];d=d|12;J[d+c>>2]=J[d+f>>2];a=a+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}d=e&3;if(!d)break b;while(1){h=a<<2;J[h+c>>2]=J[f+h>>2];a=a+1|0;j=j+1|0;if((d|0)!= -(j|0))continue;break}break b}if(!e){e=0;break b}Nb(c,0,e<<2)}d=0;if(b>>>0<=e>>>0)break a;Nb((e<<2)+c|0,0,b-e<<2)}return d|0}function lX(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;f=xb-112|0;xb=f;J[f+108>>2]=0;d=K[b+11|0];g=d<<24>>24<0;h=g?J[b>>2]:b;a:{if(!h)break a;d=g?J[b+4>>2]:d;if(!d)break a;Rj(h,d,f+108|0,f+104|0,0);e=J[f+108>>2]}b:{if(!kz(-100,e,f+8|0,0)){d=0;if((J[f+12>>2]&61440)==16384)break b}c=Ni(e,c?228137:227736);J[a+4>>2]=c;if(e){Kb(e);c=J[a+4>>2]}if(c){zg(c,0,2);i=a,j=Mj(J[a+ -4>>2]),J[i+12>>2]=j;zg(J[a+4>>2],0,0);J[a+8>>2]=0;e=K[b+11|0];c=e<<24>>24<0;e=c?J[b+4>>2]:e;c:{if(!(!e|J[((e<<2)+(c?J[b>>2]:b)|0)-4>>2]!=47)){J[a+12>>2]=2147483647;break c}d=1;if(J[a+12>>2]!=2147483647)break b}Ab[J[J[a>>2]+8>>2]](a)}d=0}xb=f+112|0;return d|0}function Vo(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{while(1){g=J[194110];e=g;if(e)while(1){b=a;c=J[e+4>>2];d=K[c|0];b:{if(d){c:{while(1){f=H[K[b|0]+107424|0];if((f|0)!=(d|0))break c;b=b+1|0;d=K[c+1|0];c=c+1|0;if(d)continue;break}f=H[K[b|0]+107424|0]; -d=0}if((d|0)!=(f|0))break b;break a}if(!K[K[a|0]+107424|0])break a}e=J[e>>2];if(e)continue;break}e=0;c=vc(1,8);if(!c)break a;J[c>>2]=g;f=ac(a)+1|0;b=Qb(f);J[c+4>>2]=b;if(b){d:{if(f){d=K[Mb(b,a,f)|0];if(!d)break d}while(1){H[b|0]=K[d+107424|0];d=K[b+1|0];b=b+1|0;if(d)continue;break}}e=J[194110];b=(e|0)==(g|0);J[194110]=b?c:e;if(b)return c;Kb(J[c+4>>2]);Kb(c);continue}break}Kb(c)}return e}function C1(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p= -0,q=0;i=J[a+120>>2];if(!(!(J[i+608>>2]&1)|(d|e))){e=J[i+684>>2];d=J[i+680>>2]}k=J[a+208>>2];a:{if(!k)break a;p=+(e|0);l=+(d|0);b:{if(!f){e=0;break b}e=Pb(c>>>0>536870911?-1:c<<3);if(!c)break b;q=c&1;a=0;c:{if((c|0)==1){j=l;break c}i=c&-2;j=l;while(1){d=J[(a<<2)+f>>2]+d|0;m=+(d|0);O[(a<<3)+e>>3]=m-j;n=a|1;d=d+J[(n<<2)+f>>2]|0;j=+(d|0);O[(n<<3)+e>>3]=j-m;a=a+2|0;o=o+2|0;if((i|0)!=(o|0))continue;break}}if(!q)break b;O[(a<<3)+e>>3]=+(J[(a<<2)+f>>2]+d|0)-j}Ab[J[J[k>>2]+20>>2]](k,b,c,l,p,e,g,O[h>>3],O[h+ -8>>3]);if(!e)break a;Kb(e)}}function vZ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=xb-32|0;xb=e;a=He(e+8|0,420840,420888);a:{b:{c=J[b+4>>2];c:{if(c>>>0>2]){if(H[a+11|0]>=0){d=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=d;J[c+8>>2]=J[a+8>>2];break b}d=J[a+4>>2];f=J[a>>2];J[195395]=0;fa(1808,c|0,f|0,d|0);d=J[195395];J[195395]=0;if((d|0)!=1)break b;e=Z()|0;J[b+4>>2]=c;break c}J[195395]=0;$(1971,b|0,a|0);b=J[195395];J[195395]=0;if((b|0)!=1){if(H[a+23|0]>=0)break a;Kb(J[a+12>>2]);break a}e=Z()|0}Vb(a);ba(e| -0);B()}d=J[a+16>>2];J[c+12>>2]=J[a+12>>2];J[c+16>>2]=d;J[c+20>>2]=J[a+20>>2];J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[b+4>>2]=c+24}if(H[a+11|0]<0)Kb(J[a>>2]);xb=e+32|0}function UK(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;d=xb+-64|0;xb=d;Ab[J[b+60>>2]](b,d+16|0,4,d+12|0);c=J[d+12>>2];a:{if((c|0)<0){c=162;break a}if(c-5>>>0<4294967292){c=3;break a}c=nm(a,0,c);J[d+8>>2]=c;if(c)break a;if(J[d+12>>2]<=0){c=0;break a}i=J[a+100>>2];j=J[a+532>>2];while(1){a=(d+16|0)+P(g,12)|0;c=J[a>>2]; -if(K[c|0]==47){c=c+1|0;J[a>>2]=c}e=J[a+4>>2];if((e|0)==(c|0)){c=3;break a}f=(g<<2)+j|0;h=J[f+8>>2];if(h)Ab[J[i+8>>2]](i,h);h=f;e=e-c|0;f=tc(i,e+1|0,d+8|0);J[h+8>>2]=f;c=J[d+8>>2];if(c)break a;k=Mb(f,J[a>>2],e)+e|0,l=0,H[k|0]=l;g=g+1|0;if((g|0)>2])continue;break}c=J[d+8>>2]}J[b+12>>2]=c;xb=d- -64|0}function nv(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;f=J[a>>2];if(!f)return 65536;g=65536;a:{if(!(b&16384))while(1){b=g;e=i<<2;d=J[e+c>>2];b:{if(!d)break b;e=J[e+J[a+8>>2]>>2];if(!e)return 0;if((d| -0)==(e|0))break b;g=0;if((e|0)<(d&d>>31)|(e|0)>(((d|0)>0?d:0)|0))break a;g=hc(b,e,d);f=J[a>>2]}i=i+1|0;if(i>>>0>>0)continue;break a}while(1){b=g;h=i<<2;j=J[h+c>>2];c:{if(!j)break c;g=0;f=J[h+J[a+8>>2]>>2];if(!f)break a;if((f|0)==(j|0)){g=b;break c}k=J[d+h>>2];if((f|0)<=(k|0))break a;h=J[e+h>>2];if((h|0)<=(f|0))break a;if((f|0)<(j|0)){g=hc(b,f-k|0,j-k|0);break c}g=hc(b,h-f|0,h-j|0)}i=i+1|0;if(i>>>0>2])continue;break}}return g}function Pea(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;var h=0,i=0,j=Q(0),k=0,l=0,m=0,n=0;i=xb-256|0;xb=i;if(g){m=(e<<2)+c|0;a=J[a+416>>2];c=J[(a+(J[b+16>>2]<<2)|0)+140>>2];n=J[(a+(J[b+4>>2]<<2)|0)+100>>2];a=0;while(1){Ab[n|0](i,m,f);l=(a<<7)+d|0;e=0;while(1){k=(e<<1)+l|0;h=e<<2;j=Q(Q(N[h+i>>2]*N[c+h>>2])+Q(16384.5));a:{if(Q(R(j))>1]=h-16384;k=e|1;h=k<<2;j=Q(Q(N[h+i>>2]*N[c+h>>2])+Q(16384.5));b:{if(Q(R(j))>1]=h-16384;e=e+2|0;if((e|0)!=64)continue; -break}f=J[b+36>>2]+f|0;a=a+1|0;if((g|0)!=(a|0))continue;break}}xb=i+256|0}function fl(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;g=d?d:781080;d=J[g>>2];a:{b:{c:{if(!b){if(d)break c;return 0}e=-2;if(!c)break b;d:{if(d){e=c;break d}d=K[b|0];f=d<<24>>24;if((f|0)>=0){if(a)J[a>>2]=d;return(f|0)!=0|0}if(!J[J[194998]>>2]){e=1;if(!a)break b;J[a>>2]=f&57343;return 1}d=d-194|0;if(d>>>0>50)break c;d=J[(d<<2)+753584>>2];e=c-1|0;if(!e)break a;b=b+1|0}f=K[b|0];h=f>>>3|0;if((h-16|(d>>26)+h)>>>0>7)break c; -while(1){e=e-1|0;d=f-128|d<<6;if((d|0)>=0){J[g>>2]=0;if(a)J[a>>2]=d;return c-e|0}if(!e)break a;b=b+1|0;f=K[b|0];if((f&192)==128)continue;break}}J[g>>2]=0;J[194954]=25;e=-1}return e|0}J[g>>2]=d;return-2}function _aa(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+584>>2];if(c){J[a+672>>2]=J[c+160>>2];J[a+668>>2]=J[c+164>>2];b=J[c+252>>2];if(b)Kb(b);b=J[c+256>>2];if(b)Kb(b);b=J[c+260>>2];if(b)Kb(b);b=J[c+264>>2];if(b)Kb(b);b=J[c+268>>2];if(b)Kb(b);b=J[c+272>>2];if(b)Kb(b);b=J[c+276>>2];if(b)Kb(b);b=J[c+280>>2]; -if(b)Kb(b);b=J[c+284>>2];if(b)Kb(b);b=J[c+288>>2];if(b)Kb(b);b=J[c+292>>2];if(b)Kb(b);b=J[c+296>>2];if(b)Kb(b);if(K[c+400|0]){d=J[a+584>>2];b=d+536|0;e=J[b+4>>2];if(e)Ab[J[e+40>>2]](b);J[b+20>>2]=0;J[b+4>>2]=0;H[d+400|0]=0}b=J[c+1084>>2];if(b)Kb(b);b=J[c+1104>>2];if(b)Kb(b);b=J[c+5256>>2];if(b)Kb(b);Kb(c);J[a+584>>2]=0;_i(a)}}function ss(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=J[a+20>>2];if(i>>>0<=2){J[a+8>>2]=0;return}c=i<<2;j=Qb(c);if(j){d=J[a>>2];a:{if(!d)break a;g=Qb(c);e=Qb(i);if(!g| -!e)break a;J[g>>2]=d;H[e|0]=0;k=j;b:while(1){l=b+e|0;while(1){c:{d:{e:{f:switch(f|0){case 0:f=2;c=J[d+8>>2];if(!c)continue;break e;case 3:break c;case 1:break f;default:break d}f=3;c=J[d+12>>2];if(!c)continue}H[l|0]=f;b=b+1|0;h=b?h:h+1|0;J[(b<<2)+g>>2]=c;f=0;H[b+e|0]=0;d=c;continue b}J[k>>2]=d;k=k+4|0;f=1;continue}break}H[l|0]=3;if(b|h){h=h-!b|0;b=b-1|0;f=K[b+e|0];d=J[(b<<2)+g>>2];continue}break}Kb(g);Kb(e)}b=ts(j,0,i-1|0);J[a+8>>2]=0;J[a>>2]=b;Kb(j)}}function Zr(a,b,c,d,e,f,g){var h=0;h=xb-16|0; -xb=h;a:{b:switch(K[c+16|0]-8|0){case 24:if((e|0)<=0)break a;c=0;while(1){Ab[J[J[d>>2]+12>>2]](d,h+10|0,4,1,0,0)|0;H[b|0]=K[h+10|0];H[b+1|0]=K[h+11|0];H[b+2|0]=K[h+12|0];ne(a,c+g|0,f,K[h+13|0]);b=b+3|0;c=c+1|0;if((e|0)!=(c|0))continue;break}break a;case 0:Ab[J[J[d>>2]+12>>2]](d,b,e,1,0,0)|0;break a;case 7:case 8:g=0;if((e|0)<=0)break a;while(1){Ab[J[J[d>>2]+12>>2]](d,h+14|0,2,1,0,0)|0;a=L[h+14>>1];H[b|0]=a<<3;H[b+2|0]=a>>>7&248;H[b+1|0]=a>>>2&248;b=b+3|0;g=g+1|0;if((g|0)!=(e|0))continue;break}break a; -case 16:break b;default:break a}Ab[J[J[d>>2]+12>>2]](d,b,P(e,3),1,0,0)|0}xb=h+16|0}function pK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=J[a>>2];d=J[a+44>>2];if(d){c=J[d>>2];if(!(!c|!J[c+96>>2]))J[c+88>>2]=d}e=xb-16|0;xb=e;c=J[f+504>>2];a:{if(!c){d=35;break a}d=6;if(!b|J[b+4>>2]<0|(J[b+8>>2]<0|M[b>>2]>4))break a;d=J[c+88>>2];J[J[d+40>>2]+12>>2]=0;g=J[J[J[c+96>>2]+12>>2]+88>>2];if(g){d=Ab[g|0](d,b)|0;break a}if((J[c+8>>2]&3)==2){d=Rr(c,b,e+12|0);if(d)break a;d=Mr(c,J[e+12>>2]);break a}dj(c,b);d=0}xb= -e+16|0;if(!d){b=J[J[f+504>>2]+88>>2];c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;J[a+36>>2]=J[b+36>>2];c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c}return d|0}function ey(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(!b)return 0;a:{b:{if(!c)break b;d=K[b|0];e=d<<24>>24;if((e|0)>=0){if(a)J[a>>2]=d;return(e|0)!=0|0}if(!J[J[194998]>>2]){b=1;if(!a)break a;J[a>>2]=e&57343;return 1}d=d-194|0;if(d>>>0>50)break b;d=J[(d<<2)+753584>>2];if(c>>>0<=3)if(d<>>3|0;if((e-16|e+(d>>26))>>>0>7)break b;c=c-128|d<<6;if((c|0)>=0){b=2;if(!a)break a;J[a>>2]=c;return 2}d=K[b+2|0]-128|0;if(d>>>0>63)break b;c=d|c<<6;if((c|0)>=0){b=3;if(!a)break a;J[a>>2]=c;return 3}d=K[b+3|0]-128|0;if(d>>>0>63)break b;b=4;if(!a)break a;J[a>>2]=d|c<<6;return 4}J[194954]=25;b=-1}return b|0}function p0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;I[a+276>>1]=0;J[a+272>>2]=0;J[a+244>>2]=408688;J[a+248>>2]=0;J[a+252>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]= -0;J[195395]=0;d=ca(1985,a|0,409780)|0;e=J[195395];J[195395]=0;a=a+244|0;a:{if((e|0)!=1){J[d>>2]=409400;J[a>>2]=409660;e=d+236|0;J[e>>2]=0;J[e+4>>2]=0;J[d+224>>2]=0;J[d+228>>2]=1072693248;J[d+216>>2]=96;J[d+220>>2]=96;H[d+213|0]=0;J[d+232>>2]=e;Mb(d+4|0,c,112);b:{if(!b)break b;J[d+208>>2]=b;c=J[J[b>>2]+100>>2];J[195395]=0;$(c|0,b|0,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)break b;b=Z()|0;yn(d+232|0,J[d+236>>2]);Wq(d,409780);break a}return d|0}b=Z()|0}Dn(a);ba(b|0);B()}function Us(a,b){a:{b:{c:{d:switch(a>>> -12|0){case 0:a=a-1536|0;if(a>>>0<739)break c;break b;case 1:if(a-6150>>>0>164)break b;a=a-5411|0;break c;case 2:if(a-8204>>>0>93)break b;a=a-7300|0;break c;case 10:if(a-43072>>>0>51)break b;a=a-42074|0;break c;case 16:if(a-68288>>>0<=47){a=a-67238|0;break c}if(a-68480>>>0<=47){a=a-67382|0;break c}if(a-68864>>>0<=35){a=a-67718|0;break c}if(a-69424>>>0>155)break b;a=a-68242|0;break c;case 17:if(a-69821>>>0>16)break b;a=a-68483|0;break c;case 30:break d;default:break b}if(a-125184>>>0>75)break b;a=a- -123829|0}a=K[a+131072|0];if((a|0)!=8)break a}a=b>>>0<=31?1<>2]>2]>>>0|J[b+8>>2]-a>>>0<12|(K[a|0]|K[a+1|0]<<8)!=256)break a;c=a+6|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a;d=K[c|0]|K[c+1|0]<<8;b:{if(!d)break b;if(su(((d<<8|d>>>8)&65535)+a|0,b,a))break b;d=J[b+32>>2];if(d>>>0>31)break a;J[b+32>>2]=d+1;if(!K[b+28|0])break a;H[c|0]=0;H[c+1|0]=0}c=a+8|0;if(M[b+12>>2]>2]>>>0|J[b+8>>2]-c>>>0<2)break a; -d=1;e=K[c|0]|K[c+1|0]<<8;c:{if(!e)break c;if(su(((e<<8|e>>>8)&65535)+a|0,b,a))break c;a=J[b+32>>2];if(a>>>0>31)break a;J[b+32>>2]=a+1;d=0;if(!K[b+28|0])break c;H[c|0]=0;H[c+1|0]=0;d=1}return d}return 0}function om(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=J[a+760>>2];a:{if(h>>>0>b>>>0){f=J[a+764>>2];b:{if(L[a+210>>1]){e=f+(b<<2)|0;d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);g=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=g;if(e+8>>>0>f+(h<<2)>>>0)break b;d=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<< -16|K[e+7|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break b}e=f+(b<<1)|0;d=K[e|0]<<8|K[e+1|0];g=d<<1;if(e+4>>>0<=f+(h<<1)>>>0)d=K[e+3|0]|K[e+2|0]<<8;d=d<<1}f=0;a=J[a+724>>2];if(a>>>0>>0){J[c>>2]=0;return 0}if(a>>>0>>0){d=a;e=0;if((h-2|0)!=(b|0))break a}a=d>>>0>>0?a:d}else a=0;f=a-g|0;e=g}J[c>>2]=f;return e|0}function jka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-32|0;xb=c;a:{d=0;b:{if(!a)break b;d=ac(b);if(d>>>0>=2147483632)break a;c:{if(d>>>0<=10){H[c+23|0]=d;e=c+12|0;break c}f= -(d|15)+1|0;e=Pb(f);J[c+20>>2]=f|-2147483648;J[c+12>>2]=e;J[c+16>>2]=d}g=Mb(e,b,d)+d|0,h=0,H[g|0]=h;J[195395]=0;ia(1081,a|0,c+12|0,c+28|0,c+24|0);a=J[195395];J[195395]=0;d:{if((a|0)!=1){if(H[c+23|0]<0)Kb(J[c+12>>2]);b=J[c+24>>2];if(b)break d;d=0;break b}a=Z()|0;if(H[c+23|0]<0)Kb(J[c+12>>2]);ba(a|0);B()}a=Pb(20);J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=234032;J[a+12>>2]=0;J[a+16>>2]=0;As(a,J[c+28>>2],b);d=J[a+4>>2]}xb=c+32|0;return d|0}dd(c+12|0);B()}function iL(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=xb-16|0;xb=f;a=J[a+532>>2];a:{if(!a){e=6;break a}d=J[a+136>>2];a=J[a+4>>2];ip(d,f,a);d=a>>>0>>0?a:b;if(d)Mb(c,f,d<<2);if(a>>>0>=b>>>0)break a;g=(d^-1)+b|0;e=b-d&7;if(e){a=0;while(1){J[(d<<2)+c>>2]=32768;d=d+1|0;a=a+1|0;if((e|0)!=(a|0))continue;break}}e=0;if(g>>>0<7)break a;g=c+28|0;h=c+24|0;i=c+20|0;j=c+16|0;k=c+12|0;l=c+8|0;m=c+4|0;while(1){a=d<<2;J[a+c>>2]=32768;J[a+m>>2]=32768;J[a+l>>2]=32768;J[a+k>>2]=32768;J[a+j>>2]=32768;J[a+i>>2]=32768;J[a+h>>2]=32768;J[a+g>>2]= -32768;d=d+8|0;if((d|0)!=(b|0))continue;break}}xb=f+16|0;return e|0}function ee(a,b,c,d){var e=Q(0),f=0,g=Q(0),h=0,i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0);f=J[a>>2];h=f+16|0;a=J[a+4>>2];g=N[a+68>>2];j=Q(g*Q(O[d+8>>3]));e=N[a+64>>2];i=Q(e*Q(O[d>>3]));l=Q(g*Q(O[c+8>>3]));k=Q(e*Q(O[c>>3]));g=Q(g*Q(O[b+8>>3]));e=Q(e*Q(O[b>>3]));b=J[f+12>>2];a=J[f+8>>2];a:{if(K[f+4|0]){if(!J[h>>2])$e(a,b,h);c=J[a+24>>2];d=J[a+32>>2];if(!d){Ab[c|0](a,b,h,e,g,k,l,i,j,0);break a}Ab[c|0](a,b,h,e,g,k,l,i,j,J[d+12>>2]);break a}m= -N[f>>2];n=Q(j*m);if(!J[f+16>>2])$e(a,b,h);d=J[a+24>>2];e=Q(Q(g*m)+e);k=Q(Q(l*m)+k);i=Q(n+i);c=J[a+32>>2];if(c)c=J[c+12>>2];else c=0;Ab[d|0](a,b,h,e,g,k,l,i,j,c)}N[f+32>>2]=j;N[f+28>>2]=i}function MG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=xb-32|0;xb=f;c=K[a+2|0]|K[a+3|0]<<8;if(c)d=((c<<8|c>>>8)&65535)+a|0;else d=169776;c=J[b+88>>2];d=ld(d,J[J[c+80>>2]+P(J[c+64>>2],20)>>2]);a:{if((d|0)==-1)break a;c=K[a+4|0]|K[a+5|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0<=d>>>0)break a;e=J[b+88>>2];if(J[e+156>>2]){qf(e); -c=J[b+80>>2];e=J[b+88>>2];J[f+16>>2]=J[e+64>>2];nc(e,c,129440,f+16|0);c=K[a+4|0]|K[a+5|0]<<8;c=(c<<8|c>>>8)&65535}a=c>>>0<=d>>>0?169776:((d<<1)+a|0)+6|0;a=K[a|0]|K[a+1|0]<<8;Co(b,(a<<8|a>>>8)&65535);e=1;a=J[b+88>>2];if(!J[a+156>>2])break a;b=J[b+80>>2];J[f>>2]=J[a+64>>2]-1;nc(a,b,129495,f)}xb=f+32|0;return e|0}function tJ(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[J[a+40>>2]>>2];if(e){a=J[a>>2];f=J[a+100>>2];c=J[a+712>>2];b=J[c+3080>>2];a=be(J[J[a+96>>2]+4>>2],11010);a:{if(!a|!b)break a;b=J[b>>2];if(!b)break a; -d=Ab[b|0](a)|0;if(!d)break a;Ab[J[d+8>>2]](J[e>>2]);b=J[c+2024>>2];if(!b)break a;g=b&3;b:{if(!g){a=b;break b}c=0;a=b;while(1){a=a-1|0;Ab[J[d+8>>2]](J[((a<<2)+e|0)+4>>2]);c=c+1|0;if((g|0)!=(c|0))continue;break}}if(b>>>0<4)break a;b=e+4|0;while(1){c=b+(a<<2)|0;Ab[J[d+8>>2]](J[c-4>>2]);Ab[J[d+8>>2]](J[c-8>>2]);Ab[J[d+8>>2]](J[c-12>>2]);a=a-4|0;Ab[J[d+8>>2]](J[b+(a<<2)>>2]);if(a)continue;break}}if(e)Ab[J[f+8>>2]](f,e)}}function qJ(a){a=a|0;var b=0,c=0,d=0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+4>> -2]=J[a>>2];J[a+8>>2]=J[a+12>>2];Wt(a);b=J[a+48>>2];c=J[a+52>>2];a:{b:{if((b|0)>(c|0))break b;c:{if((b|0)>=0){d=c+1|0;if(d>>>0<=b>>>0)break b;c=b;while(1){c=((c>>>1|0)+c|0)+8|0;if(d>>>0>c>>>0)continue;break}if(c>>>0<=1073741823){b=ic(J[a+56>>2],c<<2);if(b)break c;b=J[a+48>>2];if(b>>>0>=c>>>0)break b}J[a+48>>2]=b^-1}J[194120]=J[42444];break a}J[a+48>>2]=c;J[a+56>>2]=b}b=J[a+52>>2];J[a+52>>2]=b+1;J[J[a+56>>2]+(b<<2)>>2]=0}J[a+60>>2]=1;J[a+64>>2]=1;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+68>>2]=0; -J[a+72>>2]=1;J[a+88>>2]=0;J[a+92>>2]=0}function dc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=2147483647;a:{if(!b)break a;c=a>>31;c=(c^a)-c|0;d=b>>31;d=(d^b)-d|0;if(c>>>0<=(d>>>17^65535)>>>0){g=((c<<16)+(d>>>1|0)>>>0)/(d>>>0)|0;break a}f=d>>>1|0;i=f+(c<<16)|0;c=(c>>>16|0)+(f>>>0>i>>>0)|0;if(c>>>0>=d>>>0)break a;f=S(c);h=32-f|0;c=i>>>h|c<>>0)/(d>>>0)|0;e=c-P(d,g)|0;c=i<>>31;h=e>>>0>=d>>>0;e=e-(h?d:0)|0;g=h|g<<1;h=31-f|0;c=c<<1}if((f|0)==31)break a;while(1){e=e<<1|c>>>31;f=e>>> -0>=d>>>0;e=c>>>30&1|e-(f?d:0)<<1;i=e>>>0>=d>>>0;e=e-(i?d:0)|0;g=g<<2|f<<1|i;c=c<<2;h=h-2|0;if(h)continue;break}}a=a>>31|1;return(((b|0)<0?0-a|0:a)|0)<0?0-g|0:g}function LT(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;g=xb-256|0;xb=g;J[g+248>>2]=37;J[g+252>>2]=0;h=g+248|0;Fh(h|1,226616,1,J[c+4>>2]);i=Vd();J[g>>2]=e;J[g+4>>2]=f;a=g+224|0;e=Ie(a,24,i,h,g)+a|0;i=lf(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[195395]=0;h=g+32|0;oa(3679,a|0,i|0,e|0,h|0,g+28|0,g+24| -0,f|0);a=J[195395];J[195395]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=Aj(b,h,J[g+28>>2],J[g+24>>2],c,d);xb=g+256|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function JT(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;g=xb-256|0;xb=g;J[g+248>>2]=37;J[g+252>>2]=0;h=g+248|0;Fh(h|1,226616,0,J[c+4>>2]);i=Vd();J[g>>2]=e;J[g+4>>2]=f;a=g+224|0;e=Ie(a,24,i,h,g)+a| -0;i=lf(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[195395]=0;h=g+32|0;oa(3679,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[195395];J[195395]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=Aj(b,h,J[g+28>>2],J[g+24>>2],c,d);xb=g+256|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function yE(a){var b=0,c=0,d=0;c=xb-16|0;xb=c;J[a+4>>2]=0;J[c+12>>2]=0;b=Qb(84);if(!b){d=J[a>> -2];J[d+20>>2]=56;J[d+24>>2]=0;Ab[J[J[a>>2]>>2]](a)}J[b+48>>2]=1E9;J[b+40>>2]=1364;J[b+36>>2]=1365;J[b+32>>2]=1366;J[b+28>>2]=1367;J[b+24>>2]=1368;J[b+20>>2]=1369;J[b+16>>2]=1370;J[b+12>>2]=1371;J[b+8>>2]=1372;J[b+4>>2]=1373;J[b>>2]=1374;J[b+52>>2]=0;J[b+56>>2]=0;J[b+44>>2]=0;J[b+76>>2]=84;J[b+60>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+72>>2]=0;J[a+4>>2]=b;a=yg(241846);a:{if(!a)break a;H[c+11|0]=120;J[c>>2]=c+12;J[c+4>>2]=c+11;if((tq(a,241886,c)|0)<=0)break a;a=J[c+12>>2];J[b+44>>2]=P((K[c+11|0]&223)== -77?P(a,1E3):a,1E3)}xb=c+16|0}function XT(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;g=xb-112|0;xb=g;J[g+104>>2]=37;J[g+108>>2]=0;h=g+104|0;Fh(h|1,226616,1,J[c+4>>2]);i=Vd();J[g>>2]=e;J[g+4>>2]=f;a=g+80|0;e=Ie(a,24,i,h,g)+a|0;i=lf(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[195395]=0;h=g+32|0;oa(3668,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[195395];J[195395]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=Bj(b,h,J[g+ -28>>2],J[g+24>>2],c,d);xb=g+112|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function VT(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;g=xb-112|0;xb=g;J[g+104>>2]=37;J[g+108>>2]=0;h=g+104|0;Fh(h|1,226616,0,J[c+4>>2]);i=Vd();J[g>>2]=e;J[g+4>>2]=f;a=g+80|0;e=Ie(a,24,i,h,g)+a|0;i=lf(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[195395]=0;h=g+32|0;oa(3668,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[195395]; -J[195395]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=Bj(b,h,J[g+28>>2],J[g+24>>2],c,d);xb=g+112|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function Cr(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=xb-256|0;xb=g;a:{b:{if(c>>>0>>0){Wb(a,252611);d=0;break b}if(!b){c:{h=c-d|0;c=PD(a,J[a+740>>2]+d|0,h,0,0);if(!(d>>>0>4294967293|c>>>0>=-2-d>>>0)){b=J[a+712>>2];if(!b|c+d>>>0>>0)break c}Wb(a, -252801);break b}if(!c)break b;d:{b=c+d|0;f=Ed(a,b+1|0);if(f){i=J[a+740>>2];f=Mb(f,i,d);h=PD(a,d+i|0,h,d+f|0,c);H[b+f|0]=0;if((c|0)==(h|0))break d;Wb(a,252946);cc(a,f);break b}Wb(a,253135);break b}cc(a,J[a+740>>2]);J[a+740>>2]=f;d=b;break a}yf(g,1,1,b);$i(a,g,253384)}b=Ed(a,d+1|0);if(!b)break a;c=J[a+740>>2];if(d)Mb(b,c,d);cc(a,c);J[a+740>>2]=b;H[b+d|0]=0}J[e>>2]=d;xb=g+256|0}function tk(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+4>>2];b=f>>31;c=(b^f)-b|0;h=J[a>>2];if(!h){if(!f)return;J[a+4>>2]= -(f|0)<0?-65536:65536;return}b=h>>31;d=(b^h)-b|0;if(!f){J[a>>2]=(h|0)<0?-65536:65536;return}e=c>>>0>>0?d+(c>>>1|0)|0:c+(d>>>1|0)|0;b=S(e);b=(-1431655766>>>b>>>0>e>>>0?-15:-16)+b|0;a:{if((b|0)>0){d=d<>>0>>0?d+(c>>>1|0)|0:(d>>>1|0)+c|0;break a}g=e;e=0-b|0;b=g>>>e|0;c=c>>>e|0;d=d>>>e|0}b=65536-b|0;while(1){e=(P(b,d)>>16)+d|0;g=(P(b,c)>>16)+c|0;i=P((P(e,e)+P(g,g)|0)/-512|0,b+65536>>8);b=(i>>>16|0)+b|0;if((i|0)>65535)continue;break}J[a+4>>2]=(f|0)<0?0-g|0:g;J[a>>2]=(h|0)<0?0-e|0:e}function TK(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-208|0;xb=d;f=J[a+532>>2];Ab[J[b+60>>2]](b,d+16|0,16,d+12|0);e=J[d+12>>2];a:{if((e|0)<0){c=162;break a}c=3;if(e-17>>>0<4294967280)break a;b:{c:{d:{if(f){g=J[f>>2];if(g)break d}c=nm(a,e,0);if(c)break a;e=J[b+8>>2];g=J[b>>2];if(J[d+12>>2]<=0)break b;f=J[a+532>>2];break c}if((e|0)!=(g|0))break a;e=J[b+8>>2];g=J[b>>2]}c=0;while(1){a=(d+16|0)+P(c,12)|0;J[b>>2]=J[a>>2];J[b+8>>2]=J[a+4>>2];a=Ab[J[b+40>>2]](b,0)|0;h=c<<2;J[h+J[f+136>>2]>>2]=a;J[J[f+140>>2]+h>> -2]=a;c=c+1|0;if((c|0)>2])continue;break}}J[b+8>>2]=e;J[b>>2]=g;c=0}J[b+12>>2]=c;xb=d+208|0}function de(a,b,c){var d=0,e=0,f=0;f=xb-16|0;xb=f;a:{b:{if((Ab[J[a+4>>2]](J[a+28>>2],b,f+12|0,1)|0)==1){e=K[f+12|0];break b}d=-1;if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break a}c:{d:{e:{if((Ab[J[a+4>>2]](J[a+28>>2],b,f+13|0,1)|0)==1){d=e;e=K[f+13|0];d=d|e<<8;break e}if(Ab[J[a+24>>2]](J[a+28>>2],b)|0)break d;d=P(e,257)}if((Ab[J[a+4>>2]](J[a+28>>2],b,f+14|0,1)|0)==1){e=K[f+14|0];break c}if(!(Ab[J[a+24>>2]](J[a+ -28>>2],b)|0))break c}e=0;d=-1;break a}d=d|e<<16;if((Ab[J[a+4>>2]](J[a+28>>2],b,f+15|0,1)|0)==1){e=d|K[f+15|0]<<24;d=0;break a}a=Ab[J[a+24>>2]](J[a+28>>2],b)|0;e=a?0:d|e<<24;d=a?-1:0}J[c>>2]=e;xb=f+16|0;return d}function tm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if(!a)return 35;e=16;a:{if(L[a+264>>1]<=b>>>0)break a;d=J[a+544>>2];if(!d)return 7;e=0;g=c,h=Ab[J[d+16>>2]](0)|0,J[g>>2]=h;f=c;c=J[a+476>>2];b:{if((c|0)!=151552){if((c|0)!=131072){if((c|0)!=65536|b>>>0>257)break a;a=Ab[J[d+16>>2]](b)| -0;break b}if(!K[a+632|0])if(Lv(a))break a;if(L[a+636>>1]<=b>>>0)break a;b=L[J[a+640>>2]+(b<<1)>>1];if(b>>>0<=257){a=Ab[J[d+16>>2]](b)|0;break b}a=J[(J[a+644>>2]+(b<<2)|0)-1032>>2];break b}if(!K[a+632|0])if(Lv(a))break a;if(L[a+636>>1]<=b>>>0)break a;a=Ab[J[d+16>>2]](H[J[a+640>>2]+b|0]+b|0)|0}J[f>>2]=a}return e|0}function tg(a,b,c,d,e){var f=0,g=0,h=0,i=0;h=xb-16|0;xb=h;J[h+12>>2]=b;b=0;f=6;a:{b:{if(Gf(a,h+12|0))break b;f=4;g=J[a>>2];i=J[g+12>>2];c:{if((i|0)==J[g+16>>2]){g=Ab[J[J[g>>2]+36>>2]](g)| -0;break c}g=J[i>>2]}if(!(Ab[J[J[d>>2]+12>>2]](d,64,g)|0))break b;b=Ab[J[J[d>>2]+52>>2]](d,g,0)|0;while(1){d:{Gj(a);b=b-48|0;if(Gf(a,h+12|0)|(e|0)<2)break d;f=J[a>>2];g=J[f+12>>2];e:{if((g|0)==J[f+16>>2]){f=Ab[J[J[f>>2]+36>>2]](f)|0;break e}f=J[g>>2]}if(!(Ab[J[J[d>>2]+12>>2]](d,64,f)|0))break a;e=e-1|0;b=(Ab[J[J[d>>2]+52>>2]](d,f,0)|0)+P(b,10)|0;continue}break}f=2;if(!Gf(a,h+12|0))break a}J[c>>2]=J[c>>2]|f}xb=h+16|0;return b}function gk(a,b,c,d){var e=0,f=0,g=0,h=0;g=xb-16|0;xb=g;a:{if(J[a+8>>2]== -1){Ob(J[a+628>>2],J[a>>2],273346,0);e=-1;break a}if(K[a+13|0]&4){Ob(J[a+628>>2],J[a>>2],273782,0);e=-1;break a}e=J[a+180>>2];if(e>>>0<=b>>>0){c=J[a>>2];a=J[a+628>>2];J[g+4>>2]=e;J[g>>2]=b;Ob(a,c,263217,g);e=-1;break a}e=1;h=J[a+60>>2];f=J[a+100>>2];if(h>>>0>f>>>0)e=((f+h|0)-1>>>0)/(f>>>0)|0;b:{if((e-1|0)==((b>>>0)%(e>>>0)|0)){e=(h>>>0)%(f>>>0)|0;if(e)break b}e=f}f=bD(a,e);e=-1;if(!ZC(a,b))break a;d=(d|0)==-1?f:(d|0)>(f|0)?f:d;if((Ab[J[a+548>>2]](a,c,d,(b>>>0)/M[a+176>>2]&65535)|0)<=0)break a;Ab[J[a+ -652>>2]](a,c,d);e=d}xb=g+16|0;return e}function aL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-32|0;xb=c;a:{if((Ab[J[b+52>>2]](b,6,c,3)|0)<=5){J[b+12>>2]=3;break a}e=J[c+12>>2];if(!e){J[b+12>>2]=3;break a}d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){f=a,g=dc(1E3,d),I[f+68>>1]=g;f=c,g=dc(J[c>>2],d),J[f>>2]=g;f=c,g=dc(J[c+4>>2],d),J[f+4>>2]=g;f=c,g=dc(J[c+8>>2],d),J[f+8>>2]=g;f=c,g=dc(J[c+16>>2],d),J[f+16>>2]=g;f=c,g=dc(J[c+20>>2],d),J[f+20>>2]=g;e=J[c+12>>2]<0?-65536:65536;J[c+12>>2]=e}J[a+440>>2]=J[c>> -2];J[a+448>>2]=J[c+4>>2];d=J[c+8>>2];J[a+452>>2]=e;J[a+444>>2]=d;if(!mo(a+440|0)){J[b+12>>2]=3;break a}J[a+456>>2]=I[c+18>>1];J[a+460>>2]=I[c+22>>1]}xb=c+32|0}function _r(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Ab[J[J[b>>2]+16>>2]](b,240056,1,6)|0;c=J[a+16>>2];Ab[J[J[b>>2]+44>>2]](b,c&255)|0;Ab[J[J[b>>2]+44>>2]](b,c>>>8&255)|0;c=J[a+20>>2];Ab[J[J[b>>2]+44>>2]](b,c&255)|0;Ab[J[J[b>>2]+44>>2]](b,c>>>8&255)|0;if(J[a+44>>2]){c=L[a+26>>1]-1|0;c=c<<5|c|-128}else c=17;Ab[J[J[b>>2]+44>>2]](b,c&255)|0;c=0;Ab[J[J[b>> -2]+44>>2]](b,0)|0;Ab[J[J[b>>2]+44>>2]](b,0)|0;e=J[a+44>>2];d=!e;if(!(d|d)){d=J[a+4>>2];d=d?e?d+40|0:0:0;while(1){e=d+(c<<2)|0;Ab[J[J[b>>2]+44>>2]](b,K[e+2|0])|0;Ab[J[J[b>>2]+44>>2]](b,K[e+1|0])|0;Ab[J[J[b>>2]+44>>2]](b,K[e|0])|0;c=c+1|0;if(c>>>0>2])continue;break}}}function Tn(a){var b=0,c=0,d=0,e=0;c=xb-16|0;xb=c;J[a+744>>2]=33;Gd(a,c+8|0,8);a:{b=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if((e|0)>=0){b=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<< -16|K[c+15|0]<<24);J[a+348>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);dg(a);Fc(a,c+12|0,4);b=J[a+348>>2];d=b&255;if(d-123>>>0<4294967238|d-91>>>0<=5)break a;d=b>>>8&255;if(d-123>>>0<4294967238|d-91>>>0<6)break a;d=b>>>16&255;if(d-123>>>0<4294967238|d-91>>>0<6)break a;b=b>>>24|0;if(b-123>>>0<4294967238|b-91>>>0<6)break a;J[a+744>>2]=65;xb=c+16|0;return e}gc(a,251659);B()}Gl(a,262144);B()}function nD(a,b){var c=0,d=0,e=0;d=xb+-64|0;xb=d;c=J[a+276>>2];if(!(c&4)){a:{if((b|0)==(c|0))break a;b:{c:{if(!c)break c; -c=wk(a+212|0);J[a+276>>2]=0;if(!c)break c;e=257703;break b}d:{e:switch(b-1|0){case 0:e=258733;c=so(a+212|0,J[a+280>>2],J[a+284>>2],J[a+288>>2],J[a+292>>2],J[a+296>>2],257795);break d;default:gc(a,258859);B();case 1:break e}e=257802;c=so(a+212|0,J[a+300>>2],J[a+304>>2],J[a+308>>2],J[a+312>>2],J[a+316>>2],257795)}if(!c)break a}e=aj(d,64,aj(d,64,0,258970),e);b=c+6|0;if(b>>>0<=4)b=J[(b<<2)+262836>>2];else b=259230;aj(d,64,e,b);gc(a,d);B()}J[a+276>>2]=b|4;xb=d- -64|0;return}gc(a,259336);B()}function ZT(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=3;a:{if(J[a+64>>2]!=3){J[a+64>>2]=3;e=J[a+20>>2];if(!e)break a;b:{if(K[a+68|0]){d=J[a+12>>2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=ie(d,0,1);if(d)break a}f=L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=ie(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+68|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f>>2]=(((b>>31)+b|0)+32768&-65536)>> -16;J[f+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1}d=0}return d|0}function Ji(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;j=1;i=d&2147483647;k=i;l=(i|0)==2147418112;a:{if(l&!c?a|b:l&(c|0)!=0|i>>>0>2147418112)break a;i=h&2147483647;if(!g&(i|0)==2147418112?e|f:(i|0)==2147418112&(g|0)!=0|i>>>0>2147418112)break a;if(!(a|e|(c|g)|(b|f|(i|k))))return 0;j=d&h;if((j|0)>0)k=1;else k=(j|0)>=0;if(k){j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>>0|b>>>0>>0:c>>>0>>0&(d|0)<= -(h|0)|(d|0)<(h|0))break a;return(a^e|c^g|(b^f|d^h))!=0}j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>e>>>0|b>>>0>f>>>0:c>>>0>g>>>0&(d|0)>=(h|0)|(d|0)>(h|0))break a;j=(a^e|c^g|(b^f|d^h))!=0}return j}function QW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[779683];f=d<<24>>24<0;e=f?J[194918]:779672;d=f?J[194919]:d;if((d|0)==-1)d=id(e);Ab[J[J[a>>2]+8>>2]](a,d);f=e;e=d<<2;Mb(J[a+12>>2],f,e);J[a+12>>2]=e+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+d;e=K[b+11|0];f=e<<24>>24<0;d=f?J[b>>2]:b;b=f?J[b+4>>2]:e; -if((b|0)==-1)b=id(d);Ab[J[J[a>>2]+8>>2]](a,b);e=d;d=b<<2;Mb(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;if(!c){b=K[779695];d=b<<24>>24<0;c=d?J[194921]:779684;b=d?J[194922]:b;if((b|0)==-1)b=id(c);Ab[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;Mb(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b}}function Nt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+ -44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;return 0}function GN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=xb-16|0; -xb=f;g=J[a+16>>2];c=J[a+28>>2];e=J[a+24>>2];J[f+12>>2]=0;a:{b:{d=e+1|0;c:{if(d>>>0<=c>>>0){b=J[a+32>>2];break c}J[a+36>>2]=b;b=Tb(b,4,c,d,J[a+32>>2],f+12|0);J[a+32>>2]=b;if(J[f+12>>2])break b;J[a+28>>2]=d}d:{if(!e)break d;a=g+10|0;c=0;if((e|0)!=1){g=e&-2;d=0;while(1){h=c<<2;J[h+b>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);J[(h|4)+b>>2]=K[a+13|0]|(K[a+12|0]<<8|K[a+11|0]<<16);c=c+2|0;a=a+22|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(e&1))break d;J[(c<<2)+b>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16)}J[(e<< -2)+b>>2]=0;break a}b=0}xb=f+16|0;return b|0}function pq(a,b){var c=0,d=0,e=0,f=0;d=J[a>>2];if(d>>>0>>0)while(1){c=d+1|0;a:{b:{c:{d:{e:{f=K[d|0];switch(f-40|0){case 1:break c;case 0:break d;default:break e}}if((f|0)!=92)break a;if((b|0)==(c|0)){J[a>>2]=b;return 3}f:switch(K[c|0]-40|0){case 0:case 1:case 52:case 58:case 62:case 70:case 74:case 76:break b;default:break f}if((K[c|0]&248)!=48|b>>>0<=c>>>0)break a;c=d+2|0;if(c>>>0>=b>>>0|(K[c|0]&248)!=48)break a;c=d+3|0;if(c>>>0>=b>>>0)break a;c=(K[d+ -3|0]&248)==48?d+4|0:c;break a}e=e+1|0;break a}e=e-1|0;if(e)break a;J[a>>2]=c;return 0}c=d+2|0}d=c;if(c>>>0>>0)continue;break}J[a>>2]=d;return 3}function oF(a,b,c){var d=0;d=0;a:{if(J[a>>2])break a;b:{if(K[b|0]|c>>>0<32|(K[b+1|0]|K[b+2|0]))break b;if(K[b+3|0]!=12|K[b+4|0]!=106|(K[b+5|0]!=80|K[b+6|0]!=32))break b;if(K[b+7|0]!=32|K[b+8|0]!=13|(K[b+9|0]!=10|K[b+10|0]!=135))break b;if(K[b+12|0]|K[b+11|0]!=10|(K[b+13|0]|K[b+14|0]))break b;if(K[b+15|0]!=24|K[b+16|0]!=102|(K[b+17|0]!=116|K[b+18|0]!=121))break b; -if(K[b+19|0]!=112|K[b+20|0]!=109|(K[b+21|0]!=106|K[b+22|0]!=112))break b;if(K[b+24|0]|K[b+23|0]!=50|(K[b+25|0]|K[b+26|0]))break b;if(K[b+27|0]|K[b+28|0]!=109|(K[b+29|0]!=106|K[b+30|0]!=112))break b;d=1;if(K[b+31|0]==50)break a}d=0}return d}function dO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+16>>2];c=K[a+8204|0]|K[a+8205|0]<<8|(K[a+8206|0]<<16|K[a+8207|0]<<24);d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!d)break a;a=a+8208|0;while(1){c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=c<<24| -(c&65280)<<8|(c>>>8&65280|c>>>24);if(e>>>0>b>>>0)break a;c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0>>0){a=a+12|0;d=d-1|0;if(!d)break a;continue}break}a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);b=b-e|0;f=a>>>0<=(b^-1)>>>0?a+b|0:0}return f|0}function Pga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if((e|0)<=0)break a;g=J[a+36>>2];if((g|0)<=0)break a; -j=J[a+112>>2];if(!j)break a;l=j&3;m=j-1>>>0<3;while(1){n=e-1|0;h=0;while(1){a=J[J[(h<<2)+b>>2]+(c<<2)>>2];f=J[d>>2]+h|0;i=j;k=0;if(l)while(1){H[f|0]=K[a|0];i=i-1|0;f=f+g|0;a=a+1|0;k=k+1|0;if((k|0)!=(l|0))continue;break}if(!m)while(1){H[f|0]=K[a|0];f=f+g|0;H[f|0]=K[a+1|0];f=f+g|0;H[f|0]=K[a+2|0];f=f+g|0;H[f|0]=K[a+3|0];a=a+4|0;f=f+g|0;i=i-4|0;if(i)continue;break}h=h+1|0;if((h|0)!=(g|0))continue;break}d=d+4|0;c=c+1|0;a=(e|0)>1;e=n;if(a)continue;break}}}function As(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e= -0,f=0;e=c+4|0;a:{b:{f=J[a+4>>2];c:{if(!f){d=e>>>0<=1E3?1E3:e;J[a+8>>2]=d;d=Qb(d);J[a+16>>2]=0;J[a+4>>2]=d;break c}d=J[a+8>>2];e=e+J[a+16>>2]|0;if(d>>>0>=e>>>0)break b;while(1){d=d<<1;if(e>>>0>d>>>0)continue;break}J[a+8>>2]=d;d=ic(f,d);if(d){J[a+4>>2]=d;d=d+J[a+16>>2]|0;break c}d=Qb(J[a+8>>2]);e=J[a+4>>2];d=Mb(d,e,J[a+16>>2]);Kb(e);J[a+4>>2]=d;d=d+J[a+16>>2]|0}J[a+12>>2]=d;break a}d=J[a+12>>2]}H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;d=J[a+12>>2]+4|0;J[a+12>>2]=d;J[a+16>>2]=J[a+16>> -2]+4;Mb(d,b,c);J[a+12>>2]=J[a+12>>2]+c;J[a+16>>2]=J[a+16>>2]+c}function Mga(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;var h=0,i=0,j=0,k=0,l=0;d=J[a+472>>2];i=J[d+92>>2];h=J[a+316>>2];if((i|0)>=(h|0)){if(J[a+36>>2]>0){l=d+12|0;h=J[a+216>>2];i=0;while(1){j=i<<2;k=j+d|0;Ab[J[k+52>>2]](a,h,J[b+j>>2]+(P(J[k+100>>2],J[c>>2])<<2)|0,j+l|0);h=h+88|0;i=i+1|0;if((i|0)>2])continue;break}h=J[a+316>>2]}J[d+92>>2]=0;i=0}b=h-i|0;h=J[d+96>>2];b=b>>>0>>0?b:h;h=g;g=J[f>>2];h=h-g|0;b=b>>>0< -h>>>0?b:h;Ab[J[J[a+476>>2]+4>>2]](a,d+12|0,i,(g<<2)+e|0,b);J[f>>2]=b+J[f>>2];J[d+96>>2]=J[d+96>>2]-b;b=b+J[d+92>>2]|0;J[d+92>>2]=b;if((b|0)>=J[a+316>>2])J[c>>2]=J[c>>2]+1}function uF(a,b,c,d){var e=0,f=0,g=0,h=0;a:{e=d>>31;f=(e^d)-e|0;e=a>>31;if((f+((e^a)-e|0)|0)>131071)break a;e=c>>31;f=(e^c)-e|0;e=b>>31;if((f+((e^b)-e|0)|0)>131071)break a;a=P(a,d);b=P(b,c);return(a|0)>(b|0)?1:(a|0)<(b|0)?-1:0}f=d>>>16|0;g=P(f,a&65535);h=a>>>16|0;e=g+P(h,d&65535)|0;a=P(a,d);e=(((e>>>16|0)+P(h,f)|0)+((e>>>0>>0)<< -16)|0)+(a>>>0>>0)|0;f=c>>>16|0;g=P(f,b&65535);h=b>>>16|0;d=g+P(h,c&65535)|0;b=P(b,c);c=(((d>>>16|0)+P(h,f)|0)+((d>>>0>>0)<<16)|0)+(b>>>0>>0)|0;d=1;b:{if(e>>>0>c>>>0)break b;d=-1;if(c>>>0>e>>>0)break b;d=1;if(a>>>0>b>>>0)break b;d=a>>>0>>0?-1:0}return d}function FM(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;h=3;g=b+2|0;a:{if(g>>>0>c>>>0)break a;i=c;c=K[b+1|0]|K[b|0]<<8;if(i>>>0<(c<<2)+g>>>0)break a;b=J[a+12>>2];i=K[b+14|0];j=L[b+12>>1]; -k=L[b+10>>1];l=K[b+8|0];m=L[b+6>>1];n=L[b+4>>1];b:{if(!c){h=0;break b}f=f+1|0;b=0;while(1){h=Hv(a,K[g+1|0]|K[g|0]<<8,H[g+2|0]+d|0,H[g+3|0]+e|0,f,0);if(!h){g=g+4|0;b=b+1|0;if((c|0)!=(b|0))continue}break}b=J[a+12>>2]}I[b+14>>1]=i;I[b+8>>1]=l;I[b+12>>1]=j<<24>>24;I[b+10>>1]=k<<24>>24;I[b+6>>1]=m<<24>>24;I[b+4>>1]=n<<24>>24;a=J[a+8>>2];I[b+2>>1]=K[a+4|0];I[b>>1]=K[a|0]}return h|0}function Ela(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a=xb-32|0;xb=a;J[a+24>>2]=-1082130432;J[a+28>>2]= --1082130432;J[a+16>>2]=0;J[a+20>>2]=0;e=J[194118];a:{if(e)break a;while(1){e=Xt();bu(e,942);$t(e,943);_t(e,944);Zt(e,945);if(J[e+4>>2])J[e+4>>2]=0;f=J[194118];e=e?e:774844;J[194118]=f?f:e;if(!f)break a;$F(e);e=J[194118];if(!e)continue;break}}f=a+16|0;g=J[d+116>>2];h=J[g+88>>2];i=J[d+120>>2];g=J[g+12>>2];b:{if(!g){Ab[h|0](d,i,c,e,f,0);break b}Ab[h|0](d,i,c,e,f,J[g+68>>2])}c=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=c;c=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=c;Ps(b,a);xb=a+32|0}function $E(a){var b= -0;b=J[a+268>>2];if(b)Kb(b);b=J[a+280>>2];if(b)Kb(b);b=J[a+292>>2];if(b)Kb(b);b=J[a+304>>2];if(b)Kb(b);b=J[a+316>>2];if(b)Kb(b);b=J[a+328>>2];if(b)Kb(b);b=J[a+340>>2];if(b)Kb(b);b=J[a+352>>2];if(b)Kb(b);b=J[a+364>>2];if(b)Kb(b);b=J[a+376>>2];if(b)Kb(b);b=J[a+388>>2];if(b)Kb(b);b=J[a+400>>2];if(b)Kb(b);b=J[a+412>>2];if(b)Kb(b);b=J[a+424>>2];if(b)Kb(b);b=J[a+436>>2];if(b)Kb(b);b=J[a+448>>2];if(b)Kb(b);b=J[a+460>>2];if(b)Kb(b);b=J[a+472>>2];if(b)Kb(b);b=J[a+484>>2];if(b)Kb(b);b=J[a+496>>2];if(b)Kb(b); -a:{if(!K[a+512|0])break a;b=J[a>>2];if(!b)break a;Kb(b)}return a}function Rga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((e|0)<=0)break a;i=J[a+112>>2];if(!i)break a;g=J[a+332>>2];a=J[a+476>>2];k=J[a+20>>2];l=J[a+16>>2];m=J[a+12>>2];n=J[a+8>>2];while(1){o=c+1|0;p=e-1|0;a=c<<2;q=J[a+J[b+8>>2]>>2];r=J[a+J[b+4>>2]>>2];s=J[a+J[b>>2]>>2];c=J[d>>2];a=0;while(1){f=K[a+r|0];h=K[a+s|0];j=K[a+q|0]<<2;H[c|0]=K[h+(J[j+n>>2]+g|0)|0];f=f<<2;H[c+1| -0]=K[((J[l+j>>2]+J[f+k>>2]>>16)+g|0)+h|0];H[c+2|0]=K[(J[f+m>>2]+g|0)+h|0];c=c+3|0;a=a+1|0;if((i|0)!=(a|0))continue;break}d=d+4|0;a=(e|0)>1;e=p;c=o;if(a)continue;break}}}function OT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=xb-144|0;xb=f;J[f+136>>2]=37;J[f+140>>2]=0;h=f+136|0;Fh(h|1,226743,1,J[c+4>>2]);g=Vd();J[f>>2]=e;a=f+123|0;e=Ie(a,13,g,h,f)+a|0;i=lf(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[195395]=0;g=f+16|0;oa(3679,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a= -J[195395];J[195395]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=Aj(b,g,J[f+12>>2],J[f+8>>2],c,d);xb=f+144|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function KT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=xb-144|0;xb=f;J[f+136>>2]=37;J[f+140>>2]=0;h=f+136|0;Fh(h|1,226743,0,J[c+4>>2]);g=Vd();J[f>>2]=e;a=f+123|0;e=Ie(a,13,g,h,f)+a|0;i=lf(a,e,c);h=f+4|0;g=J[c+ -28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[195395]=0;g=f+16|0;oa(3679,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[195395];J[195395]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=Aj(b,g,J[f+12>>2],J[f+8>>2],c,d);xb=f+144|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function hj(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;H[c+8|0]=0;a:{if(a){d=Gc(c+8|0,1,2,a);e=K[c+8|0]|K[c+9|0]<<8;I[b>>1]=(d|0)!= -2?-1:e<<8|e>>>8;H[c+10|0]=0;d=Gc(c+10|0,1,2,a);e=K[c+10|0]|K[c+11|0]<<8;I[b+2>>1]=(d|0)!=2?-1:e<<8|e>>>8;H[c+12|0]=0;d=Gc(c+12|0,1,2,a);e=K[c+12|0]|K[c+13|0]<<8;I[b+4>>1]=(d|0)!=2?-1:e<<8|e>>>8;H[c+14|0]=0;d=65535;if((Gc(c+14|0,1,2,a)|0)!=2)break a;d=K[c+14|0]|K[c+15|0]<<8;d=d<<8|d>>>8;break a}I[b+4>>1]=65535;I[b>>1]=65535;I[b+2>>1]=65535;d=65535}I[b+6>>1]=d;d=0;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];if(!(a>>>4&1|I[b+4>>1]>1]))d=I[b+6>>1]>=I[b+2>>1];xb=c+16|0;return d}function Yl(a,b,c,d,e){var f= -0,g=0;J[a+160>>2]=J[a+160>>2]|1<<(b>>>4);J[a+164>>2]=J[a+164>>2]|1<>2]=J[a+168>>2]|1<<(b>>>9);f=J[a+204>>2];if((f|0)!=-1){g=J[a+88>>2];H[(J[g+80>>2]+P(J[g+64>>2],20)|0)+15|0]=f}f=J[a+88>>2];f=J[f+80>>2]+P(J[f+64>>2],20)|0;g=L[f+12>>1];d=d?g&65423|48:g|16;d=e?d|64:d;if(K[a+192|0]){c=d&112;d=J[a+148>>2];e=d+((b&255)<<1)|0;a=I[e+16>>1];if(!((a|0)==-1|(a>>>3|0)!=(b>>>8|0))){I[f+12>>1]=c|a&7;return}a=J[d>>2];a=a?a:169776;a=xi(M[a+16>>2]<4?169776:J[a+12>>2],b);if(!(!J[d>>2]|b>>>0>2097151|a>>> -0>7))I[e+16>>1]=a|b>>>5&65528;I[f+12>>1]=a|c;return}I[f+12>>1]=c?d&112|c:d}function _T(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=xb+-64|0;xb=f;J[f+56>>2]=37;J[f+60>>2]=0;h=f+56|0;Fh(h|1,226743,1,J[c+4>>2]);g=Vd();J[f>>2]=e;a=f+43|0;e=Ie(a,13,g,h,f)+a|0;i=lf(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[195395]=0;g=f+16|0;oa(3668,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[195395];J[195395]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)Ab[J[J[a>> -2]+8>>2]](a);a=Bj(b,g,J[f+12>>2],J[f+8>>2],c,d);xb=f- -64|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function WT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=xb+-64|0;xb=f;J[f+56>>2]=37;J[f+60>>2]=0;h=f+56|0;Fh(h|1,226743,0,J[c+4>>2]);g=Vd();J[f>>2]=e;a=f+43|0;e=Ie(a,13,g,h,f)+a|0;i=lf(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[195395]=0;g=f+16|0;oa(3668,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0); -a=J[195395];J[195395]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)Ab[J[J[a>>2]+8>>2]](a);a=Bj(b,g,J[f+12>>2],J[f+8>>2],c,d);xb=f- -64|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function sI(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-140>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0; -J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1129270354)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(699,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a}function Pf(a,b){var c=0,d=0,e=0;a:{d=K[b|0];if((d|0)!=255){if((d|0)!=30)break a;return Ao(a,b,0,0)>>16}return((K[b+3|0]|(K[b+2| -0]<<8|K[b+1|0]<<16))<<8)+32768>>16}e=b+1|0;b:{c:switch(d-28|0){case 0:c=0;if(M[a+8>>2]<=b+2>>>0)break b;return(K[b+2|0]|K[e|0]<<8)<<16>>16;case 1:c=0;if(M[a+8>>2]<=b+4>>>0)break b;a=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);default:break c}if(d>>>0<=246)return d-139|0;a=J[a+8>>2];if(d>>>0<=250){c=0;if(a>>>0<=e>>>0)break b;return(K[e|0]|d<<8)-63124|0}c=0;if(a>>>0<=e>>>0)break b;c=64148-(K[e|0]|d<<8)|0}return c}function zv(a){a=a|0;var b=0,c=0,d= -0,e=0,f=0,g=0,h=0,i=0;if(H[a+741|0]&1){g=J[a+736>>2];d=J[g+56>>2];b=L[d>>1];if(b){c=J[d+24>>2];h=c+P(b,12)|0;while(1){b=lv(a,J[c>>2]);d=lp(a,J[g+56>>2]+4|0,L[c+4>>1],L[c+6>>1]);a:{if(!b)break a;I[b>>1]=d+L[c+8>>1];b=J[c>>2];if((b|0)==1751216995){e=d;break a}if((b|0)!=1751934832){if((b|0)!=1751413603)break a;f=d;break a}i=d}c=c+12|0;if(h>>>0>c>>>0)continue;break}}d=L[a+72>>1];f=d+f|0;I[a+72>>1]=f;b=e;e=L[a+70>>1];c=b+e|0;I[a+70>>1]=c;b=I[a+486>>1];I[a+82>>1]=b;I[a+80>>1]=L[a+484>>1]+((b|0)/-2|0);I[a+ -74>>1]=(c+(d+((L[a+74>>1]+i|0)-e|0)|0)|0)-f;mC(a+108|0,80)}}function zI(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-76>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1635148146)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(666,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b; -c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a}function vh(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-24>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1330851634)|0;c=J[195395];J[195395]=0;a:{b:{if((c| -0)==1)break b;J[195395]=0;a=ca(648,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a}function qj(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-16>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>> -2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1751672161)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(747,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a}function qh(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-88>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25| -0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1297498450)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(882,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a}function pj(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-44>>2];J[b+8>>2]= -0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1986553185)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(750,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b); -ba(a|0);B()}xb=b+48|0;return a}function kfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{if((e|0)<=0)break a;k=J[a+28>>2];if(!k)break a;g=J[J[a+408>>2]+8>>2];while(1){l=e-1|0;a=d<<2;m=J[a+J[c+8>>2]>>2];n=J[a+J[c+4>>2]>>2];o=J[a+J[c>>2]>>2];a=J[b>>2];f=0;while(1){h=(K[a+2|0]<<2)+g|0;i=(K[a+1|0]<<2)+g|0;j=(K[a|0]<<2)+g|0;H[f+o|0]=J[h+2048>>2]+(J[i+1024>>2]+J[j>>2]|0)>>>16;H[f+n|0]=J[h+5120>>2]+(J[i+4096>>2]+J[j+3072>>2]|0)>>>16;H[f+m|0]=J[h+7168>>2]+(J[i+6144>> -2]+J[j+5120>>2]|0)>>>16;a=a+3|0;f=f+1|0;if((k|0)!=(f|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=l;if(a)continue;break}}}function Xy(a,b,c,d,e){var f=0,g=0,h=0,i=0;f=xb-208|0;xb=f;J[f+204>>2]=c;c=f+160|0;Nb(c,0,40);J[f+200>>2]=J[f+204>>2];a:{if((Wy(0,b,f+200|0,f+80|0,c,d,e)|0)<0){e=-1;break a}i=J[a+76>>2]<0;g=J[a>>2];J[a>>2]=g&-33;b:{c:{d:{if(!J[a+48>>2]){J[a+48>>2]=80;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;h=J[a+44>>2];J[a+44>>2]=f;break d}if(J[a+16>>2])break c}c=-1;if(yq(a))break b}c=Wy(a,b,f+ -200|0,f+80|0,f+160|0,d,e)}if(h){Ab[J[a+36>>2]](a,0,0)|0;J[a+48>>2]=0;J[a+44>>2]=h;J[a+28>>2]=0;b=J[a+20>>2];J[a+16>>2]=0;J[a+20>>2]=0;c=b?c:-1}b=a;a=J[a>>2];J[b>>2]=a|g&32;e=a&32?-1:c;if(i)break a}xb=f+208|0;return e}function Go(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-92>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]= -1;a=ca(585,a|0,1801810542)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(787,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a}function Dt(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-72>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0; -H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1719034226)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(665,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a}function qt(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-8>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+ -20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1835104368)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(748,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395];J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a} -function nt(a){var b=0,c=0;b=xb-48|0;xb=b;a=J[a-4>>2];J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[195395]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+44>>1]=1;a=ca(585,a|0,1751474532)|0;c=J[195395];J[195395]=0;a:{b:{if((c|0)==1)break b;J[195395]=0;a=ca(751,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;c=J[b+36>>2];if(!c)break a;J[195395]=0;ea(583,c|0);c=J[195395]; -J[195395]=0;if((c|0)!=1)break a;ga(0)|0;_b();B()}a=Z()|0;ed(b);ba(a|0);B()}xb=b+48|0;return a}function Xm(a){var b=0,c=0,d=0,e=0;e=xb-16|0;xb=e;c=(D(a),v(2));b=c&2147483647;a:{if(b>>>0<=1061752794){if(b>>>0<964689920)break a;a=Lj(+a,0);break a}if(b>>>0<=1081824209){d=+a;if(b>>>0<=1075235811){a=Lj(((c|0)<0?1.5707963267948966:-1.5707963267948966)+d,1);break a}a=Lj(((c|0)<0?3.141592653589793:-3.141592653589793)+d,0);break a}if(b>>>0<=1088565717){d=+a;if(b>>>0<=1085271519){a=Lj(((c|0)<0?4.71238898038469: --4.71238898038469)+d,1);break a}a=Lj(((c|0)<0?6.283185307179586:-6.283185307179586)+d,0);break a}if(b>>>0>=2139095040){a=Q(a-a);break a}b=Aq(a,e+8|0);a=Lj(O[e+8>>3],b&1)}xb=e+16|0;return a}function RN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=J[a+16>>2];a=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(a){g=c+16|0;while(1){e=a+f>>>1|0;c=P(e,12)+g|0;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b:{if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>> -0>b>>>0){a=e;break b}d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>=b>>>0)break a;f=e+1|0}if(a>>>0>f>>>0)continue;break}}return 0}a=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}function bg(a,b,c){var d=0,e=0,f=0,g=0;f=J[a+584>>2];g=J[f+64>>2];e=J[f+68>>2];a:{if(e>>>0>=c>>>0)break a;c=c-e|0;d=b>>>c|g;if(J[a+608>>2]>=J[a+600>>2])Xc(a);e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=d;d=J[a+608>>2]+1|0;J[a+ -608>>2]=d;g=0;e=8;if(c>>>0<9)break a;while(1){c=c-8|0;e=b>>>c|0;if(J[a+600>>2]<=(d|0))Xc(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=e;d=J[a+608>>2]+1|0;J[a+608>>2]=d;e=8;if(c>>>0>8)continue;break}}d=J[(c<<2)+287280>>2]&b;b=e-c|0;d=d<>2]>=J[a+600>>2])Xc(a);b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=d;J[a+608>>2]=J[a+608>>2]+1;d=0;b=8}J[f+68>>2]=b;J[f+64>>2]=d}function Xla(a){a=a|0;a=a+24|0;Uc(a,0,918);jc(a,1819239276,65,1);jc(a,1667460464,65,1);jc(a,1853188980,65,1);jc(a,1634429038,73, -1);Uc(a,0,919);jc(a,1919969382,72,1);Uc(a,0,920);Uc(a,0,919);jc(a,1886545254,73,1);Uc(a,0,921);jc(a,1919644262,73,1);jc(a,1633842790,73,1);jc(a,1651275622,73,1);jc(a,1751215206,73,1);jc(a,1886614630,73,1);jc(a,1986098293,73,1);jc(a,1667916660,73,1);Uc(a,0,922);Uc(a,0,912);jc(a,1769172844,0,1);jc(a,1768843636,0,1);jc(a,1835361385,0,1);jc(a,1718185569,0,1);Uc(a,0,0);jc(a,1633842803,9,1);jc(a,1651275635,9,1);jc(a,1751215214,9,1);jc(a,1886545267,9,1);jc(a,1886614643,9,1)}function DG(a,b,c){var d=0,e= -0,f=0,g=0,h=0;f=xb-16|0;xb=f;d=K[a+2|0]|K[a+3|0]<<8;if(d)g=((d<<8|d>>>8)&65535)+a|0;else g=169776;d=J[b+88>>2];if((ld(g,J[J[d+80>>2]+P(J[d+64>>2],20)>>2])|0)!=-1){d=K[a+4|0]|K[a+5|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+a|0;else d=169776;J[f+12>>2]=d;J[f+8>>2]=c?840:841;e=J[b+88>>2];g=J[e+64>>2];h=J[e+80>>2];a:{if(c){e=K[(P(g,20)+h|0)+15|0];if((e|0)!=255)break a}e=Do(d,J[P(g,20)+h>>2])}c=K[a+6|0]|K[a+7|0]<<8;c=((c<<8|c>>>8)&65535)>>>0<=e>>>0?169776:((e<<1)+a|0)+8|0;c=K[c|0]|K[c+1|0]<<8;if(c)a=((c<<8|c>>> -8)&65535)+a|0;else a=169776;e=EG(a,b,f+8|0)}xb=f+16|0;return e}function Zda(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;g=xb-16|0;xb=g;a:{if(!a)break a;d=J[a+92>>2];if(!d|J[d+4>>2]!=1970170211)break a;d=J[a+40>>2];if(!d)break a;f=J[a+36>>2];if((f|0)<=0)break a;i=(f<<2)+d|0;while(1){b:{f=J[d>>2];c:{if(L[f+8>>1]|L[f+10>>1]!=5)break c;e=J[f>>2];if(!e)break c;e=J[e+96>>2];h=J[J[e>>2]+32>>2];if(!h)break c;e=Ab[h|0](e,9712)|0;if(!e)break c;if(Ab[J[e>>2]](f,g+8|0)|0)break c;if(J[g+12>>2]==14)break b}d= -d+4|0;if(i>>>0>d>>>0)continue;break a}break}d=J[d>>2];if(!d)break a;j=Ab[J[J[d+12>>2]+20>>2]](d,J[a+92>>2],b,c)|0}xb=g+16|0;return j|0}function tM(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{c:{a=J[J[a+156>>2]>>2];b=J[a+4>>2];if(!(!b|J[a+40>>2])){d=b<<1;if((d|0)<0){c=6;break b}if(d){c=10;if(d>>>0>268435455)break b;c=J[a>>2];b=b<<4;c=Ab[J[c+4>>2]](c,b)|0;if(!c)break c;Nb(c,0,b)}H[a+16|0]=1;J[a+40>>2]=c;d=(J[a+4>>2]<<3)+c|0;J[a+44>>2]=d;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;e=a- -64| -0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[e>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;b=I[a+22>>1]<<3;J[a+80>>2]=b+d;J[a+76>>2]=b+c}c=0;break a}J[a+40>>2]=c;c=64;break a}J[a+40>>2]=0}return c|0}function FG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{if(c){a=J[b+88>>2];d=K[a+140|0];c=0;if(d&8)break a;H[a+140|0]=d|8;d=J[a+68>>2];c:{if(!d)break c;c=0;if(d>>>0>=4){g=d&-4;while(1){H[(J[a+80>>2]+P(c,20)|0)+15|0]=255;H[(J[a+80>>2]+P(c|1,20)|0)+15|0]=255;H[(J[a+80>> -2]+P(c|2,20)|0)+15|0]=255;H[(J[a+80>>2]+P(c|3,20)|0)+15|0]=255;c=c+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}d=d&3;if(!d)break c;while(1){H[(J[a+80>>2]+P(c,20)|0)+15|0]=255;c=c+1|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}J[b+204>>2]=255;break b}J[b+204>>2]=-1;a=J[b+88>>2];H[a+140|0]=K[a+140|0]&247}c=1}return c|0}function Bla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=J[b+24>>2];a=J[b+28>>2];a:{if((c|0)>(a|0))break a;b:{if((c|0)>=0){d=a+1|0;if(d>>>0<=c>>>0)break a;a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(d>>> -0>a>>>0)continue;break}if(a>>>0<=214748364){c=ic(J[b+32>>2],P(a,20));if(c)break b;c=J[b+24>>2];if(c>>>0>=a>>>0)break a}J[b+24>>2]=c^-1}J[194124]=J[42448];a=J[42447];J[194122]=J[42446];J[194123]=a;a=J[42445];J[194120]=J[42444];J[194121]=a;return}J[b+24>>2]=a;J[b+32>>2]=c}a=J[b+28>>2];J[b+28>>2]=a+1;a=J[b+32>>2]+P(a,20)|0;J[a+12>>2]=-1082130432;J[a+16>>2]=-1082130432;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=2}function wma(a){a=a|0;a=a+24|0;Uc(a,0,909);jc(a,1819239276,65,1);jc(a,1667460464,65,1);Uc(a,0,910); -jc(a,1853188980,77,1);Uc(a,0,0);jc(a,1634429038,77,1);Uc(a,0,0);jc(a,1919969382,76,1);Uc(a,0,0);jc(a,1919644262,77,1);Uc(a,0,0);jc(a,1886545254,76,1);Uc(a,0,0);jc(a,1651275622,76,1);Uc(a,0,0);jc(a,1633842790,76,1);Uc(a,0,0);jc(a,1751215206,76,1);Uc(a,0,0);jc(a,1886614630,76,1);Uc(a,0,0);jc(a,1986098293,77,1);Uc(a,0,0);jc(a,1667916660,77,1);Uc(a,0,0);Uc(a,0,911);jc(a,1768843636,76,1);jc(a,1886545267,77,1);jc(a,1633842803,77,1);jc(a,1651275635,77,1);jc(a,1886614643,77,1);jc(a,1751215214,77,1)}function vz(a, -b,c){var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;d=K[c|0];if(d){e=c;while(1){d=(d<<24>>24)+(g<<4)|0;g=d>>>24&240^d&268435455;d=K[e+1|0];e=e+1|0;if(d)continue;break}e=(g>>>0)%31627|0}else e=0;d=(e<<2)+b|0;a:{b:{c:{while(1){d=J[d>>2];if(!d)break c;if(fc(c,J[d+4>>2]))continue;break}d=J[d+8>>2];if((d|0)>=0)break b}uz(b,c,J[a+12>>2]);e=J[a+40>>2];d=J[a+12>>2];if(!(d&d-1)){b=P(d,48);e=ic(e,b);if(!e)break a;J[a+40>>2]=e;d=J[a+12>>2]}b=P(d,24)+e|0;J[b+20>>2]=0;J[b+12>>2]=-1;J[b+16>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[a+ -12>>2]=d+1}xb=f+16|0;return d}J[f>>2]=b;Sc(J[189490],228582,f);za(1);B()}function ui(a){var b=0,c=0;J[195395]=0;ea(637,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)a:{J[a+60>>2]=-57005;b=J[a+68>>2];if(b){J[195395]=0;$(636,b+24|0,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break a;Kb(Ud(b));J[a+68>>2]=0}b=J[a+92>>2];if(b){Kb(b);J[a+92>>2]=0}J[a+76>>2]=0;J[a+72>>2]=J[a+72>>2]&1;if(J[a+48>>2]){J[a+52>>2]=0;Kb(J[a+56>>2])}J[a+48>>2]=0;J[a+52>>2]=0;J[a+28>>2]=0;J[a+56>>2]=0;c=J[a+36>>2];if(c){b=J[a+40>>2];while(1){Kb(J[b>> -2]);b=b+4|0;c=c-1|0;if(c)continue;break}}if(J[a+32>>2]){J[a+36>>2]=0;Kb(J[a+40>>2])}J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;return}ga(0)|0;_b();B()}function qk(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;a:{if(J[a+44>>2]|!b)break a;d=J[a+52>>2];c=(c|0)>(d|0)?d:c;a=P(J[a+16>>2],3);c=(a|0)>(c|0)?c:a;if((c|0)<=0)break a;d=((c-1>>>0)/3|0)+1|0;e=d&3;a=0;if(c>>>0>=10){h=d&2147483644;while(1){c=a+b|0;d=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=d;d=(a|3)+b|0;i=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=i;d=K[c+8|0];H[c+ -8|0]=K[c+6|0];H[c+6|0]=d;d=K[c+9|0];H[c+9|0]=K[c+11|0];H[c+11|0]=d;a=a+12|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}if(!e)break a;while(1){c=a+b|0;d=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=d;a=a+3|0;g=g+1|0;if((e|0)!=(g|0))continue;break}}}function FT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a=xb-208|0;xb=a;h=Vd();J[a>>2]=e;e=a+176|0;j=Ie(e,20,h,226157,a);h=j+e|0;k=lf(e,h,c);f=a+12|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[195395]=0;g=_(3551,f|0)|0;i=J[195395];J[195395]= -0;if((i|0)!=1){f=J[f>>2];i=J[f+4>>2]-1|0;J[f+4>>2]=i;if((i|0)==-1)Ab[J[J[f>>2]+8>>2]](f);f=e;e=a+16|0;Ab[J[J[g>>2]+48>>2]](g,f,h,e)|0;f=b;b=e+(j<<2)|0;b=Aj(f,e,(h|0)==(k|0)?b:(a+(k-a<<2)|0)-688|0,b,c,d);xb=a+208|0;return b|0}c=Z()|0;a=J[a+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function EP(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;if(cf(a,J[b+8>>2],f)){Cp(b,c,d,e);return}g=K[b+53|0];j=J[a+12>>2];H[b+53|0]=0;h=K[b+52| -0];H[b+52|0]=0;m=a+16|0;Bp(m,b,c,d,e,f);k=K[b+52|0];h=(h|k)!=0;l=K[b+53|0];g=(g|l)!=0;i=a+24|0;j=(j<<3)+m|0;a:{if(i>>>0>=j>>>0)break a;while(1){if(K[b+54|0])break a;b:{if(k){if(J[b+24>>2]==1)break a;if(K[a+8|0]&2)break b;break a}if(!l)break b;if(!(H[a+8|0]&1))break a}I[b+52>>1]=0;Bp(i,b,c,d,e,f);l=K[b+53|0];g=(l|g)!=0;k=K[b+52|0];h=(k|h)!=0;i=i+8|0;if(j>>>0>i>>>0)continue;break}}H[b+53|0]=g;H[b+52|0]=h}function uC(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=xb-48|0;xb=c;a:{b:{c:{d:{e:{d=J[a+584>>2];b=J[d>>2]; -switch(b-1|0){case 0:break a;case 2:break d;case 1:break e;default:break c}}b=L[a+84>>1];e=b-8|0;if(1<>>0<=24:0)break b;a=J[a+628>>2];J[c+16>>2]=b;Ob(a,388468,267844,c+16|0);b=0;break a}b=L[a+86>>1];if((b|0)==3)break b;a=J[a+628>>2];J[c+32>>2]=b;Ob(a,388468,268350,c+32|0);b=0;break a}a=J[a+628>>2];J[c>>2]=b;Ob(a,388468,269152,c);b=0;break a}b=1;J[d+4>>2]=L[a+138>>1]!=1?1:L[a+98>>1];f:{if(K[a+13|0]&4){f=d,g=Hg(a),J[f+8>>2]=g;break f}f=d,g=Ye(a),J[f+8>>2]=g}}xb=c+48|0;return b}function mK(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-32|0;xb=c;a:{if((Ab[J[b+52>>2]](b,6,c,0)|0)<=5){J[b+12>>2]=3;break a}e=J[c+12>>2];if(!e){J[b+12>>2]=3;break a}d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){f=c,g=dc(J[c>>2],d),J[f>>2]=g;f=c,g=dc(J[c+4>>2],d),J[f+4>>2]=g;f=c,g=dc(J[c+8>>2],d),J[f+8>>2]=g;f=c,g=dc(J[c+16>>2],d),J[f+16>>2]=g;f=c,g=dc(J[c+20>>2],d),J[f+20>>2]=g;e=J[c+12>>2]<0?-65536:65536;J[c+12>>2]=e}J[a+440>>2]=J[c>>2];J[a+448>>2]=J[c+4>>2];d=J[c+8>>2];J[a+452>>2]=e;J[a+444>>2]=d;if(!mo(a+440|0)){J[b+ -12>>2]=3;break a}J[a+456>>2]=I[c+18>>1];J[a+460>>2]=I[c+22>>1]}xb=c+32|0}function Uoa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=Q(0),h=0,i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=Q(0);f=d+16|0;h=J[d+12>>2];e=J[d+8>>2];i=Q(J[c+4>>2]);g=Q(J[c>>2]);l=Q(J[b+4>>2]);j=Q(J[b>>2]);m=Q(J[a+4>>2]);k=Q(J[a>>2]);a:{if(K[d+4|0]){if(!J[f>>2])$e(e,h,f);a=J[e+24>>2];b=J[e+32>>2];if(!b){Ab[a|0](e,h,f,k,m,j,l,g,i,0);break a}Ab[a|0](e,h,f,k,m,j,l,g,i,J[b+12>>2]);break a}n=N[d>>2];o=Q(i*n);if(!J[d+16>>2])$e(e, -h,f);b=J[e+24>>2];k=Q(Q(m*n)+k);j=Q(Q(l*n)+j);g=Q(o+g);a=J[e+32>>2];if(a)a=J[a+12>>2];else a=0;Ab[b|0](e,h,f,k,m,j,l,g,i,a)}N[d+32>>2]=i;N[d+28>>2]=g;return 0}function Ir(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0;a:{if(!a)break a;j=1;b:{if((c|0)>0)if((b|d|e|f|g|h|i)>=0)break b;Wb(a,253834);j=0}if((1E5-c|0)<(b|0)){Wb(a,253973);j=0}if((1E5-e|0)<(d|0)){Wb(a,254154);j=0}if((1E5-g|0)<(f|0)){Wb(a,254361);j=0}if((1E5-i|0)<(h|0)){Wb(a,254602);j=0}c=f-d|0;b=c>>>16|0;f=i-e|0;i=f&65535;k=c&65535;c=P(i,k);g=g-e|0;e= -g>>>16|0;h=h-d|0;l=h&65535;g=g&65535;d=P(l,g);f=f>>>16|0;i=P(b,i)+P(k,f)+(c>>>16)|0;k=(i>>>16|0)+P(b,f)|0;b=h>>>16|0;f=P(e,l)+P(g,b)+(d>>>16)|0;if((k|0)!=((f>>>16|0)+P(b,e)|0)|(c&65535|i<<16)!=(d&65535|f<<16))break a;Wb(a,255008);j=0}return j}function Zoa(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;a=xb-128|0;xb=a;f=J[b+32>>2];a:{b:{c:{d:{if((d|0)<0){J[195395]=0;b=ca(693,f|0,c|0)|0;g=J[195395];J[195395]=0;if((g|0)!=1)break d;break c}d=d>>>0>=127?127:d;b=oc(a,c,d);H[b+d|0]=0;J[195395]= -0;b=ca(693,f|0,b|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break c}J[e>>2]=b;g=1;if(b)break a;J[195395]=0;b=ha(692,f|0,0,a|0,128)|0;f=J[195395];J[195395]=0;if((f|0)==1)break c;e:{if(!(b|(d|0)>=0)){if(!fc(a,c))break e;break b}if(Zb(a,c,d))break b}g=1;break a}a=Z()|0;td();ba(a|0);B()}g=J[e>>2]!=0}td();xb=a+128|0;return g|0}function sG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=xb-32|0;xb=d;e=J[b+88>>2];c=K[a+2|0]|K[a+3|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;c=ld(c,J[J[e+80>>2]+P(J[e+64>> -2],20)>>2]);a:{if((c|0)==-1)break a;f=K[a+6|0]|K[a+7|0]<<8;if(c>>>0>=((f<<8|f>>>8)&65535)>>>0)break a;f=J[b+88>>2];if(J[f+156>>2]){g=J[b+80>>2];J[d+16>>2]=J[f+64>>2];nc(f,g,130369,d+16|0)}g=1;Bk(a+4|0,b,a,((P(Npa(K[a+4|0]|K[a+5|0]<<8),c)<<1)+a|0)+8|0,J[e+88>>2]+P(J[e+64>>2],20)|0);a=J[b+88>>2];if(J[a+156>>2]){b=J[b+80>>2];J[d>>2]=J[a+64>>2];nc(a,b,130397,d)}J[e+64>>2]=J[e+64>>2]+1}xb=d+32|0;return g|0}function gT(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+28>>2];a=J[f+20>>2];a:{if(!a)break a; -b:{c:{b=L[a>>1];d=b<<16>>16;if((d|0)>=2){e=I[(J[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break c}if(d)break c;b=L[a+2>>1];break b}b=I[a+2>>1];if((e|0)!=(b|0))break b;I[a>>1]=d-1;break a}d:{if(b<<16>>16<2)break d;c=J[a+4>>2];g=c+(e<<3)|0;h=b&65535;c=c+(h<<3)|0;if(J[g>>2]!=J[c-8>>2]|J[g+4>>2]!=J[c-4>>2]|K[(J[a+8>>2]+h|0)-1|0]!=1)break d;b=b-1|0;I[a+2>>1]=b}if((d|0)<=0)break a;c=e;e=(b<<16>>16)-1|0;if((c|0)==(e|0)){I[a+2>>1]=b-1;I[a>>1]=d-1;break a}I[(J[a+12>>2]+(d<<1)|0)-2>>1]=e}H[f+44|0]=0}function hV(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=xb-32|0;xb=e;J[d>>2]=-1;Jh(a,e+20|0);if(J[e+28>>2]==3){i=J[a>>2];g=J[e+20>>2]+1|0;J[a>>2]=g;j=J[a+8>>2];h=J[e+24>>2]-1|0;J[a+8>>2]=h;f=b;a:{if(g>>>0>=h>>>0)break a;if(!f){f=0;while(1){Jh(a,e+8|0);if(!J[e+16>>2])break a;f=f+12|0;if(M[a>>2]>2])continue;break}break a}c=P(c,12)+b|0;while(1){Jh(a,e+8|0);if(!J[e+16>>2])break a;if(c>>>0>f>>>0){g=J[e+12>>2];J[f>>2]=J[e+8>>2];J[f+4>>2]=g;J[f+8>>2]=J[e+16>>2]}f=f+12|0;if(M[a>>2]>2])continue; -break}}J[d>>2]=(f-b|0)/12;J[a+8>>2]=j;J[a>>2]=i}xb=e+32|0}function QT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a=xb-96|0;xb=a;h=Vd();J[a>>2]=e;e=a- -64|0;j=Ie(e,20,h,226157,a);h=j+e|0;k=lf(e,h,c);f=a+12|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[195395]=0;g=_(3535,f|0)|0;i=J[195395];J[195395]=0;if((i|0)!=1){f=J[f>>2];i=J[f+4>>2]-1|0;J[f+4>>2]=i;if((i|0)==-1)Ab[J[J[f>>2]+8>>2]](f);f=e;e=a+16|0;Ab[J[J[g>>2]+32>>2]](g,f,h,e)|0;f=b;b=e+j|0;b=Bj(f,e,(h|0)==(k|0)?b:(a+ -(k-a|0)|0)-48|0,b,c,d);xb=a+96|0;return b|0}c=Z()|0;a=J[a+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function _B(a){var b=0,c=0,d=0;b=xb-16|0;xb=b;d=bc(a,0);a:{if(d)break a;d=Dd(a,b+8|0,4);if(d)break a;d=3;if(K[b+8|0]!=31|K[b+9|0]!=139|(K[b+10|0]!=8|K[b+11|0]>31))break a;d=yd(a,6);J[b+12>>2]=d;c=K[b+11|0];if(c&4){c=tC(a,b+12|0);d=J[b+12>>2];if(d)break a;d=yd(a,c);J[b+12>>2]=d;if(d)break a;d=0;c=K[b+11|0]}if(c&8){while(1){c=Nd(a,b+12|0)?0:3;d=J[b+12>>2];c=d? -2:c;if(!c)continue;break}if((c|0)!=3)break a;c=K[b+11|0]}if(c&16){while(1){c=Nd(a,b+12|0)?0:5;d=J[b+12>>2];c=d?2:c;if(!c)continue;break}if((c|0)!=5)break a;c=K[b+11|0]}if(!(c&2))break a;d=yd(a,2)}xb=b+16|0;return d}function dw(a,b){var c=0,d=0,e=0;c=J[a+32>>2];d=J[a+28>>2];if(d){while(1){e=J[c+8>>2];if(e)Ab[J[b+8>>2]](b,e);J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;c=c+16|0;d=d-1|0;if(d)continue;break}c=J[a+32>>2]}if(c)Ab[J[b+8>>2]](b,c);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;c=J[a+20>>2];d=J[a+ -16>>2];if(d){while(1){e=J[c+8>>2];if(e)Ab[J[b+8>>2]](b,e);J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;c=c+16|0;d=d-1|0;if(d)continue;break}c=J[a+20>>2]}if(c)Ab[J[b+8>>2]](b,c);J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;c=J[a+8>>2];if(c)Ab[J[b+8>>2]](b,c);J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}function MC(a,b,c){var d=0,e=0,f=0;d=J[a+584>>2];while(1){a:{f=bk(b,e,c);ak(a,f,285632);e=e+f|0;if(e>>>0>=c>>>0)break a;f=$j(b,e,c);ak(a,f,286288);e=e+f|0;if(e>>>0>>0)continue}break}b=J[d+4>>2];b:{if(!(b&12))break b; -if(J[d+68>>2]!=8){if(J[a+608>>2]>=J[a+600>>2])Xc(a);b=J[d+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=b;J[a+608>>2]=J[a+608>>2]+1;J[d+64>>2]=0;J[d+68>>2]=8;b=J[d+4>>2]}if(!(b&8))break b;c=J[a+604>>2];if(!(c&1))break b;if(J[a+608>>2]>=J[a+600>>2]){Xc(a);c=J[a+604>>2]}b=J[d+64>>2];J[a+604>>2]=c+1;H[c|0]=b;J[a+608>>2]=J[a+608>>2]+1;J[d+64>>2]=0;J[d+68>>2]=8}}function FO(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;b=J[a+4>>2];g=b+c|0;b=0-b|0;f=g-1&b;b=b&d;if((L[e+12>>1]&7)!=2)b=J[a+ -20>>2]<(d-g|0)?b:(c|0)==(f|0)?b:(b|0)==(d|0)?b:f;c=J[a>>2];b=b>>c;a:{if((b|0)<0)break a;c=f>>c;d=L[a+52>>1];if((c|0)>=(d|0))break a;d=b>>>0>>0?b:d-1|0;b=-128>>(d&7);g=J[a+140>>2];h=J[a+56>>2];i=g+h|0;e=(c|0)>0?c:0;c=e<<13>>16;a=i+c|0;e=255>>>(e&7)|0;f=d<<13>>16;d=f-c|0;b:{if((d|0)>0){H[a|0]=e|K[a|0];if((d|0)!=1){a=(d|0)>=2?2:d;Nb((c+i|0)+1|0,255,(f-(a+c|0)|0)+1|0);a=(h+((f+g|0)-a|0)|0)+1|0}a=a+1|0;break b}b=b&e}H[a|0]=K[a|0]|b}}function _m(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;i=xb-240|0; -xb=i;h=J[d>>2];J[i+232>>2]=h;d=J[d+4>>2];J[i>>2]=a;J[i+236>>2]=d;m=0-b|0;l=!f;a:{b:{c:{d:{if((h|0)!=1){h=a;f=1;break d}h=a;f=1;if(d)break d;break c}while(1){j=(e<<2)+g|0;d=h-J[j>>2]|0;if((Li(d,a,c)|0)<=0)break c;k=l^-1;l=1;e:{if(!((k|(e|0)<2)&1)){j=J[j-8>>2];k=h+m|0;if((Li(k,d,c)|0)>=0)break e;if((Li(k-j|0,d,c)|0)>=0)break e}J[(f<<2)+i>>2]=d;j=i+232|0;h=fz(j);$m(j,h);f=f+1|0;e=e+h|0;h=d;if(J[i+236>>2]|J[i+232>>2]!=1)continue;break b}break}d=h;break b}d=h;if(!l)break a}ez(b,i,f);uq(d,b,c,e,g)}xb=i+ -240|0}function Uh(a){a=a|0;var b=0,c=0,d=0;J[a+220>>2]=408124;J[a>>2]=407864;b=J[a+216>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+216>>2]=0}J[195395]=0;ea(1986,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)a:{b=J[a+208>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+208>>2]=0}c=a+220|0;d=408688;b=Wq(a,408244);J[a+220>>2]=408688;b:{if(K[b+252|0])break b;a=J[b+248>>2];if(!a)break b;Kb(a);J[b+248>>2]=0;d=J[c>>2]}J[b+224>>2]=0;J[b+228>>2]=0;H[b+253|0]=0;J[b+232>>2]=0;J[b+236>>2]=0;J[b+240>>2]=0;a=J[d+12>>2];J[195395]=0;ea(a| -0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break a;return b|0}ga(0)|0;_b();B()}function YO(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=xb-128|0;xb=f;if((c|0)>0){k=(P((b|0)!=0,36)+a|0)+16|0;while(1){h=(c|0)>=16?16:c;g=h<<1;b=0;while(1){e=b<<2;i=J[e+d>>2]+i|0;J[e+f>>2]=((i+(i>>31)|0)+32768&-65536)>>16;b=b+1|0;if((g|0)!=(b|0))continue;break}b=0;while(1){e=b<<2;j=(e|4)+f|0;J[j>>2]=J[j>>2]-J[e+f>>2];b=b+2|0;if(g>>>0>b>>>0)continue;break}a:{if(J[a+4>>2])break a;b=f;g=h;while(1){e= -Sk(k,J[b>>2],J[b+4>>2],J[a>>2],0);if(e){J[a+4>>2]=e;break a}b=b+8|0;e=(g|0)>1;g=g-1|0;if(e)continue;break}}c=c-h|0;if((c|0)>0)continue;break}}xb=f+128|0}function Bm(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=xb-16|0;xb=h;if(1073741807-b>>>0>=c>>>0){if(K[a+11|0]>>>7|0)g=J[a>>2];else g=a;i=g;g=h+4|0;j=g;if(b>>>0<536870887){J[h+12>>2]=b<<1;J[h+4>>2]=b+c;c=xb-16|0;xb=c;xb=c+16|0;c=h+12|0;c=J[(M[g>>2]>2]?c:g)>>2];if(c>>>0>=2){g=c+4&-4;c=g-1|0;c=(c|0)==2?g:c}else c=1;c=c+1|0}else c=1073741807;Fi(j,c);c=J[h+ -4>>2];if(e)Hf(c,i,e);if((d|0)!=(e|0)){g=e<<2;Hf((g+c|0)+(f<<2)|0,g+i|0,d-e|0)}b=b+1|0;if((b|0)!=2)Cm(i,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[h+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;xb=h+16|0;return}dd(a);B()}function $L(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=I[a+302>>1];if(f){a:{b:{c:switch(J[J[J[a>>2]+96>>2]+64>>2]-35|0){case 5:if(K[a+615|0])break a;g=b+16|0;e=J[b+16>>2]+(c<<3)|0;break b;case 0:break c;default:break a}g=b+16|0;e=J[b+16>>2]+(c<<3)|0}e=J[e>>2];f=hc(d, -f,J[a+568>>2]);J[J[g>>2]+(c<<3)>>2]=f+e}e=J[b+24>>2]+c|0;H[e|0]=K[e|0]|8}e=I[a+304>>1];if(e){d:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break d;g=c<<3;f=J[(g+J[b+16>>2]|0)+4>>2];a=hc(d,e,J[a+568>>2]);J[(g+J[b+16>>2]|0)+4>>2]=a+f}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|16}}function aN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;e=J[b+28>>2];c=Ab[J[a+516>>2]](a,1734439792,b,0)|0;a:{if(c)break a;c=Tc(b,4);J[d+12>>2]=c;if(c)break a;g=a,h=Zc(b),I[g+560>>1]=h; -g=a,h=Zc(b),I[g+562>>1]=h;Ec(b);if(L[a+560>>1]>=2){I[a+562>>1]=0;c=8;break a}c=e;e=L[a+562>>1];g=a,h=Tb(c,4,0,e,0,d+12|0),J[g+564>>2]=h;c=J[d+12>>2];if(c)break a;c=Tc(b,e<<2);J[d+12>>2]=c;if(c)break a;if(e){c=J[a+564>>2];a=0;while(1){f=c+(a<<2)|0;g=f,h=Zc(b),I[g>>1]=h;g=f,h=Zc(b),I[g+2>>1]=h;a=a+1|0;if((e|0)!=(a|0))continue;break}}Ec(b);c=J[d+12>>2]}xb=d+16|0;return c|0}function Vaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];a:{b:switch(b-512|0){case 1:J[J[c>>2]>>2]=J[d+196>>2];break a;case 2:J[J[c>> -2]>>2]=J[d+200>>2];break a;case 18:if(!K[d+206|0])LC(a);I[J[c>>2]>>1]=K[d+208|0];I[J[c+4>>2]>>1]=K[d+209|0];break a;case 7:J[J[c>>2]>>2]=K[d+211|0];J[J[c+4>>2]>>2]=d+216;break a;case 8:J[J[c>>2]>>2]=K[d+212|0];J[J[c+4>>2]>>2]=d+228;break a;case 9:J[J[c>>2]>>2]=K[d+213|0];J[J[c+4>>2]>>2]=d+240;break a;case 0:I[J[c>>2]>>1]=K[d+204|0];break a;case 3:I[J[c>>2]>>1]=L[d+300>>1];break a;default:break b}return Ab[J[d+160>>2]](a,b,c)|0}return 1}function B6(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0, -g=0;g=xb-16|0;xb=g;a:{if(!c|!e)break a;f=(J[d>>2]<<3)+28|0;J[g+12>>2]=f;J[g+8>>2]=56;J[a+8>>2]=f+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],g+8|0,4);Lb(J[a+4>>2],g+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d,4);if(!J[d>>2])break a;b=0;while(1){f=(b<<3)+c|0;Lb(J[a+4>>2],f,4);Lb(J[a+4>>2],f+4|0,4);b=b+1|0;f=J[d>>2];if(b>>>0>>0)continue;break}if(!f)break a;b=0;while(1){Lb(J[a+4>>2],b+e|0,4);b=b+1|0;if(b>>>0>2])continue;break}}xb= -g+16|0}function A6(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=xb-16|0;xb=g;a:{if(!c|!e)break a;f=(J[d>>2]<<2)+28|0;J[g+12>>2]=f;J[g+8>>2]=92;J[a+8>>2]=f+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],g+8|0,4);Lb(J[a+4>>2],g+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d,4);if(!J[d>>2])break a;b=0;while(1){f=(b<<2)+c|0;Lb(J[a+4>>2],f,2);Lb(J[a+4>>2],f+2|0,2);b=b+1|0;f=J[d>>2];if(b>>>0>>0)continue;break}if(!f)break a;b=0;while(1){Lb(J[a+ -4>>2],b+e|0,4);b=b+1|0;if(b>>>0>2])continue;break}}xb=g+16|0}function tR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[a+8>>2]=d;J[a+4>>2]=b;I[a+64>>1]=256;J[a>>2]=J[b+100>>2];a:{if(!d)break a;b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;lh(b);J[a+68>>2]=0;J[a+72>>2]=0;if(!c|!e)break a;b=J[J[c+40>>2]>>2];if(!b)break a;J[a+72>>2]=J[b>>2];J[a+68>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;b=J[7670];J[a+76>>2]=J[7669];J[a+ -80>>2]=b;b=J[7672];J[a+84>>2]=J[7671];J[a+88>>2]=b;b=J[7674];J[a+92>>2]=J[7673];J[a+96>>2]=b;b=J[7676];J[a+100>>2]=J[7675];J[a+104>>2]=b}function no(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=xb-16|0;xb=h;a:{if((e|0)<=0)break a;i=e&3;if(e>>>0>=4){m=e&-4;while(1){f=h+8|0;H[f+g|0]=c;H[(g|1)+f|0]=(d&255)<<24|c>>>8;H[(g|2)+f|0]=(d&65535)<<16|c>>>16;j=d>>>24|0;n=(g|3)+f|0;f=(d&16777215)<<8|c>>>24;H[n|0]=f;g=g+4|0;c=d;d=0;k=k+4|0;if((m|0)!=(k|0))continue;break}}if(i)while(1){f=c;j=d;H[(h+8|0)+ -g|0]=c;g=g+1|0;c=(d&255)<<24|c>>>8;d=d>>>8|0;l=l+1|0;if((l|0)!=(i|0))continue;break}if(!j&f>>>0<256|(e|0)<=0)break a;Nb(h+8|0,255,e)}a=Ab[J[a+8>>2]](J[a+28>>2],b,h+8|0,e)|0;xb=h+16|0;return(a|0)!=(e|0)?-1:0}function Iba(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;if((c|0)>0){g=J[a+12>>2];while(1){i=c;c=c-1|0;f=I[b>>1];d=0;a:{if((f|0)<=0)break a;d=1023;if(f>>>0>7409)break a;d=f-3314>>2;if(!J[a+4>>2])break a;d=Kpa(J[195008],J[195009],1284865837,1481765933);e=zb;d=d+1|0;e=d?e:e+1|0;J[195008]= -d;J[195009]=e;h=(+(f|0)+-3314)*.25+ +(e>>>1|0)*4.656612875245797E-10+-.5;if(R(h)<2147483648){d=~~h;break a}d=-2147483648}e=QC((+I[b+2>>1]+.5)*3.0517578125E-5,(+I[b+4>>1]+.5)*3.0517578125E-5,J[a+4>>2]);J[g>>2]=d<<14|((e|0)<0?12266:e);b=b+6|0;g=g+4|0;if(i>>>0>1)continue;break}}}function gA(a,b,c,d){var e=0,f=0;J[a+56>>2]=0;J[a+60>>2]=0;O[a+40>>3]=c;J[a+8>>2]=-1;J[a+12>>2]=2146435071;J[a>>2]=420496;J[a+72>>2]=b;O[a+48>>3]=d;J[a+32>>2]=-1;J[a+36>>2]=-1048577;J[a+24>>2]=-1;J[a+28>>2]=-1048577;J[a+16>> -2]=-1;J[a+20>>2]=2146435071;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;b=Pb(8);J[195395]=0;e=_(3101,b|0)|0;f=J[195395];J[195395]=0;if((f|0)==1){e=Z()|0;Kb(b);if(H[a+71|0]<0)Kb(J[a+60>>2]);ba(e|0);B()}J[a+84>>2]=0;J[a+88>>2]=0;I[a+80>>1]=256;J[a+76>>2]=e;H[a+89|0]=0;H[a+90|0]=0;H[a+91|0]=0;H[a+92|0]=0;H[a+93|0]=0;H[a+94|0]=0;H[a+95|0]=0;H[a+96|0]=0;return a}function Vca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;if(!(!f|!e)){c=L[a+26>>1];a=J[a+64>>2];d=e&3;k=e-1>>> -0<3;l=h<<2;while(1){j=0;h=e;if(d)while(1){J[b>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;b=b+4|0;h=h-1|0;j=j+1|0;if((j|0)!=(d|0))continue;break}if(!k)while(1){J[b>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+4>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+8>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+12>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];b=b+16|0;i=c+i|0;h=h-4|0;if(h)continue;break}i=g+i|0;b=b+l|0;f=f-1|0;if(f)continue;break}}}function Qca(a,b,c,d,e,f,g,h,i){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;var j= -0,k=0,l=0;if(!(!f|!e)){c=J[a+60>>2];a=L[a+26>>1];d=e&3;k=e-1>>>0<3;l=h<<2;while(1){j=0;h=e;if(d)while(1){J[b>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;b=b+4|0;h=h-1|0;j=j+1|0;if((j|0)!=(d|0))continue;break}if(!k)while(1){J[b>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;J[b+4>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;J[b+8>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;J[b+12>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];b=b+16|0;i=a+i|0;h=h-4|0;if(h)continue;break}i=g+i|0;b=b+l|0;f=f-1|0;if(f)continue;break}}}function Jt(a,b){a=a|0;b=b| -0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+44>>2]=b;Lg(J[a>>2],b);c=J[a>>2];b=J[J[c+712>>2]+3080>>2];c=be(J[J[c+96>>2]+4>>2],11010);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;e=Ab[b|0](c)|0;if(!e)break a;f=J[J[a>>2]+712>>2];c=J[f+1440>>2];h=J[J[a+40>>2]>>2];Ab[J[e+4>>2]](J[h>>2],J[a+16>>2],J[a+20>>2],0,0);b=J[f+2024>>2];if(!b)break a;while(1){g=J[a+16>>2];b=b-1|0;i=b<<2;d=J[J[(i+f|0)+2028>>2]+68>>2];b:{if((d|0)!=(c|0)){g=hc(g,c,d);d=hc(J[a+20>>2],c,d);break b}d=J[a+20>>2]}Ab[J[e+4>>2]](J[(h+i|0)+4>>2], -g,d,0,0);if(b)continue;break}}return 0}function Ne(a,b,c){var d=0,e=0,f=0,g=0;d=J[a+4>>2];g=J[a+20>>2];a:{b:{c:{if(g){e=85;if(b>>>0>d>>>0)break a;f=J[a+28>>2];d:{if((b|0)>0){e=Ab[J[f+4>>2]](f,b)|0;d=64;if(!e)break b;g=J[a+20>>2];break d}d=6;if(b)break b;e=0}J[a>>2]=e;g=Ab[g|0](a,J[a+8>>2],e,b)|0;d=J[a>>2];if(b>>>0<=g>>>0)e=0;else{if(d)Ab[J[f+8>>2]](f,d);d=0;J[a>>2]=0;e=85}J[a+32>>2]=d;J[a+36>>2]=d?b+d|0:0;J[a+8>>2]=g+J[a+8>>2];if(b>>>0<=g>>>0)break c;break a}e=85;f=J[a+8>>2];if(f>>>0>=d>>>0|d-f>>> -0>>0)break a;J[a+8>>2]=b+f;d=f+J[a>>2]|0}J[c>>2]=d;J[a+32>>2]=0;a=a+36|0;d=0}e=d;J[a>>2]=0}return e}function Kr(a,b){var c=0,d=0;c=xb-96|0;xb=c;a:{if(!a)break a;_D(J[a+348>>2],c,b);b=0;b:{if(K[c|0]!=35)break b;b=1;if(K[c+1|0]==32)break b;b=2;if(K[c+2|0]==32)break b;b=3;if(K[c+3|0]==32)break b;b=4;if(K[c+4|0]==32)break b;b=5;if(K[c+5|0]==32)break b;b=6;if(K[c+6|0]==32)break b;b=7;if(K[c+7|0]==32)break b;b=8;if(K[c+8|0]==32)break b;b=9;if(K[c+9|0]==32)break b;b=10;if(K[c+10|0]==32)break b;b=11;if(K[c+ -11|0]==32)break b;b=12;if(K[c+12|0]==32)break b;b=13;if(K[c+13|0]==32)break b;b=K[c+14|0]==32?14:15}d=J[a+164>>2];if(!d)break a;Ab[d|0](a,b|c)}xb=c+96|0}function Kv(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;J[g+12>>2]=0;h=tc(a,(L[c+8>>1]>>>1|0)+1|0,g+12|0);e=0;a:{if(J[g+12>>2])break a;e=bc(b,J[c+12>>2]);J[g+12>>2]=e;b:{if(e)break b;e=Tc(b,L[c+8>>1]);J[g+12>>2]=e;if(e)break b;e=h;c:{f=L[c+8>>1];if(f>>>0>=2){i=f>>>1|0;f=J[b+32>>2];while(1){if(K[f|0])break c;if(!(Ab[d|0](H[f+1|0])|0))break c;H[e| -0]=K[f+1|0];f=f+2|0;e=e+1|0;i=i-1|0;if(i)continue;break}}H[e|0]=0;Ec(b);e=h;break a}Ec(b)}if(h)Ab[J[a+8>>2]](a,h);J[c+12>>2]=0;I[c+8>>1]=0;b=J[c+16>>2];if(b)Ab[J[a+8>>2]](a,b);J[c+16>>2]=0;e=0}xb=g+16|0;return e}function gha(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;a:{if((d|0)<=0)break a;f=J[a+112>>2];if(!f)break a;a=J[J[a+480>>2]+24>>2];h=J[a+8>>2];i=J[a+4>>2];j=J[a>>2];l=f-1|0;m=f&1;while(1){a=k<<2;e=J[a+c>>2];a=J[a+b>>2];if(m){H[e|0]=K[K[a+2|0]+h|0]+(K[K[a+1|0]+ -i|0]+K[K[a|0]+j|0]|0);e=e+1|0;a=a+3|0;g=l}else g=f;if((f|0)!=1)while(1){H[e|0]=K[K[a+2|0]+h|0]+(K[K[a+1|0]+i|0]+K[K[a|0]+j|0]|0);H[e+1|0]=K[K[a+5|0]+h|0]+(K[K[a+4|0]+i|0]+K[K[a+3|0]+j|0]|0);e=e+2|0;a=a+6|0;g=g-2|0;if(g)continue;break}k=k+1|0;if((k|0)!=(d|0))continue;break}}}function Qea(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=xb-256|0;xb=i;if(g){k=(e<<2)+c|0;a=J[a+416>>2];l=J[(a+(J[b+16>>2]<<2)|0)+84>>2];m=J[(a+(J[b+4>>2]<<2)|0)+44>>2];while(1){Ab[m| -0](i,k,f);n=(j<<7)+d|0;e=0;while(1){c=e<<2;a=J[c+l>>2];h=a>>1;o=(e<<1)+n|0;c=J[c+i>>2];a:{if((c|0)<0){c=h-c|0;if((c|0)>=(a|0))a=(c|0)/(a|0)|0;else a=0;c=0-a|0;break a}h=c+h|0;c=0;if((h|0)<(a|0))break a;c=(h|0)/(a|0)|0}I[o>>1]=c;e=e+1|0;if((e|0)!=64)continue;break}f=J[b+36>>2]+f|0;j=j+1|0;if((j|0)!=(g|0))continue;break}}xb=i+256|0}function Zea(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;Mg(c,0,d,0,J[a+272>>2],J[a+28>>2]);g=J[a+272>>2];a:{if((g|0)<=0)break a;c=P(J[b+36>>2],J[b+28>> -2]);b=J[a+28>>2];c=c-b|0;if((c|0)<=0)break a;a=0;if(g>>>0>=4){j=g&-4;while(1){e=a<<2;f=b+J[e+d>>2]|0;Nb(f,K[f-1|0],c);f=b+J[(e|4)+d>>2]|0;Nb(f,K[f-1|0],c);f=b+J[(e|8)+d>>2]|0;Nb(f,K[f-1|0],c);e=b+J[(e|12)+d>>2]|0;Nb(e,K[e-1|0],c);a=a+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}g=g&3;if(!g)break a;while(1){e=b+J[(a<<2)+d>>2]|0;Nb(e,K[e-1|0],c);a=a+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}}function Lp(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;if(2147483631-b>>>0>=c>>>0){if(K[a+11|0]>>>7|0)f= -J[a>>2];else f=a;h=f;f=g+4|0;i=f;if(b>>>0<1073741799){J[g+12>>2]=b<<1;J[g+4>>2]=b+c;c=xb-16|0;xb=c;xb=c+16|0;c=g+12|0;c=J[(M[f>>2]>2]?c:f)>>2];if(c>>>0>=11){f=c+16&-16;c=f-1|0;c=(c|0)==11?f:c}else c=10;c=c+1|0}else c=2147483631;cl(i,c);c=J[g+4>>2];if(e)$g(c,h,e);if((d|0)!=(e|0))$g(c+e|0,e+h|0,d-e|0);b=b+1|0;if((b|0)!=11)Om(h,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[g+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;xb=g+16|0;return}dd(a);B()}function Cl(a,b,c){var d=0,e=0,f=0;a:{b:{c:{d= -J[b>>2];if(!d){if(J[b+8>>2]<=0)break b;c=0;if(a)break c;while(1){cc(0,J[J[b+16>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}break b}if(!a|!c)break a;Wc(a,d,c);Fc(a,d,c);return}while(1){f=c<<2;d=J[f+J[b+16>>2]>>2];d:{if(!d)break d;e=J[a+272>>2];if(!e)break d;Wc(a,d,e);Fc(a,d,e);d=J[J[b+16>>2]+f>>2]}cc(a,d);c=c+1|0;if((c|0)>2])continue;break}}if(J[b+12>>2])cc(a,J[b+16>>2]);c=J[a+272>>2];d=J[a+228>>2];e:{if(c>>>0<=d>>>0)break e;b=J[a+268>>2];if(!b)break e;c=c-d|0;Wc(a,b,c);Fc(a,b, -c)}mD(a)}}function pX(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;d=J[b+4>>2];if(!d){J[a>>2]=0;H[a+11|0]=0;return}b=J[b>>2];g=(d|0)/2|0;c=g+1|0;f=Pb(c>>>0>1073741823?-1:c<<2);c=f;if((d|0)>=2)while(1){d=L[b>>1];if((d+9216&65535)>>>0<=64511)e=1;else{d=(L[b+2>>1]&1023|(d&1023)<<10)+65536|0;e=2}J[c>>2]=d;c=c+4|0;b=(e<<1)+b|0;h=e+h|0;if((h|0)<(g|0))continue;break}d=c-f|0;c=d>>2;if(c>>>0<1073741808){a:{if(c>>>0<=1){H[a+11|0]=c;break a}e=(c|3)+1|0;b=Pb(e<<2);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+ -4>>2]=c;a=b}i=Mb(a,f,d)+(c<<2)|0,j=0,J[i>>2]=j;Kb(f);return}dd(a);B()}function K1(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=J[a+8>>2];c=J[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Nb(c,0,b)+b|0}J[a+4>>2]=c;return}a:{g=J[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;d=d>>>0>=2147483644?1073741823:e>>>0>>0?h:e;if(d){if(d>>>0>=1073741824)break a;i=Pb(d<<2)}e=(f<<2)+i|0;b=b<<2;b=Nb(e,0,b)+b|0;if((c|0)!=(g|0)){while(1){e=e-4|0;c=c-4|0;f=L[c>>1]|L[c+2>>1]<<16;I[e>>1]=f;I[e+2>> -1]=f>>>16;if((c|0)!=(g|0))continue;break}c=J[a>>2]}J[a+8>>2]=(d<<2)+i;J[a+4>>2]=b;J[a>>2]=e;if(c)Kb(c);return}Si(a);B()}zd();B()}function Boa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;e=J[b+4>>2];f=J[b>>2];b=J[f+12>>2];a:{if(b)break a;a=f+12|0;while(1){if(!J[f>>2]){b=169776;break a}b=Po(a);if(!b)b=169776;g=J[a>>2];J[a>>2]=g?g:b;if(!g)break a;Oo(b);b=J[a>>2];if(!b)continue;break}}a=0;f=J[b+8>>2];b:{if(!f)break b;if(!e)return Ab[f|0](J[b+12>>2],c,d)|0;e=e+((c&255)<<2)|0;g=J[e>>2];if((g>>> -16|0)==(c>>>8|0)){J[d>>2]=g&65535;return 1}if(!(Ab[f|0](J[b+12>>2],c,d)|0))break b;a=1;if(c>>>0>2097151)break b;b=J[d>>2];if(b>>>0>65535)break b;J[e>>2]=b|c<<8&2147418112}return a|0}function ef(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{f=a+24|0;g=J[f>>2];b:{if(!g){d=f;break b}e=f;d=g;while(1){h=M[d+16>>2]>>0;e=h?e:d;d=J[(h?d+4|0:d)>>2];if(d)continue;break}d=f;if(!((d|0)==(e|0)|M[e+16>>2]>b>>>0)){jA(a,b);g=J[a+24>>2]}if(!g)break b;while(1){d=g;f=J[d+16>>2];if(f>>>0>b>>>0){f=d;g=J[d>>2];if(g)continue;break b}if(b>>> -0<=f>>>0)break a;g=J[d+4>>2];if(g)continue;break}f=d+4|0}e=Pb(24);J[e+16>>2]=b;J[e+8>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=c;J[f>>2]=e;b=J[J[a+20>>2]>>2];if(b){J[a+20>>2]=b;e=J[f>>2]}Sh(J[a+24>>2],e);J[a+28>>2]=J[a+28>>2]+1}}function Vba(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;e=xb-16|0;xb=e;f=J[a+584>>2];g=(c|0)/J[f+8>>2]|0;j=J[f>>2]!=2?J[f+12>>2]:b;d=J[a+608>>2];c=J[a+604>>2];a:{if((g|0)<=0){i=d;break a}if((d|0)<=0){i=d;break a}while(1){J[(h<<2)+j>>2]=K[c+2|0]|(K[c+1|0]<< -8|K[c|0]<<16);i=d-3|0;c=c+3|0;h=h+1|0;if((h|0)>=(g|0))break a;k=d>>>0>3;d=i;if(k)continue;break}}J[a+608>>2]=i;J[a+604>>2]=c;b:{if((g|0)!=(h|0)){b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[e+4>>2]=g-h;J[e>>2]=a;Ob(c,b,268727,e);a=0;break b}Ab[J[f+20>>2]](f,b,g);a=1}xb=e+16|0;return a|0}function Haa(a){a=a|0;var b=0,c=0;b=J[a+584>>2];Ln(a,0,1);a:{if(!(K[a+48|0]&4))break a;J[b+800>>2]=0;J[b+804>>2]=0;J[b+824>>2]=1717;J[b+820>>2]=1155;J[b+816>>2]=1718;J[b+812>>2]=1719;J[b+24>>2]=b+800;J[b+808>>2]=1720;if((GC(b, -0)|0)==2)break a;Ob(J[a+628>>2],272138,272339,0);return 0}c=L[a+90>>1];I[b+832>>1]=c;b:{if((c|0)==6){I[b+834>>1]=L[a+204>>1];c=L[a+206>>1];break b}I[b+834>>1]=1;c=1}I[b+836>>1]=c;J[b+800>>2]=0;J[b+804>>2]=0;J[b+824>>2]=1717;J[b+820>>2]=1155;J[b+816>>2]=1718;J[b+812>>2]=1719;J[b+808>>2]=1721;J[b+24>>2]=b+800;J[a+652>>2]=1576;return 1}function Fv(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!a)break a;b:{c:{b=J[a+8>>2];switch(b|0){case 0:break a;case 1:break b;default:break c}}g=b-1|0;h=g&3; -d=1;if(b-2>>>0>=3){k=g&-4;while(1){c=J[a>>2];b=e<<2;f=d<<2;J[c+b>>2]=J[c+f>>2];c=J[a>>2];J[c+(b|4)>>2]=J[(c+f|0)+4>>2];c=J[a>>2];J[c+(b|8)>>2]=J[(c+f|0)+8>>2];c=b|12;b=J[a>>2];J[c+b>>2]=J[(b+f|0)+12>>2];d=d+4|0;e=e+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}if(!h)break b;while(1){b=J[a>>2];J[b+(e<<2)>>2]=J[b+(d<<2)>>2];d=d+1|0;e=e+1|0;j=j+1|0;if((j|0)!=(h|0))continue;break}}J[a+8>>2]=g}}function pE(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a)break a;b=J[a>>2];if(!b)return;f=J[b+96>>2];if(!f)return; -c=J[b+108>>2];if(!c)break a;e=b+108|0;d=J[f+8>>2];while(1){if(J[c+8>>2]!=(a|0)){c=J[c+4>>2];if(c)continue;break a}break}g=J[c>>2];h=g?g+4|0:e;e=J[c+4>>2];J[h>>2]=e;J[(e?e:b+112|0)>>2]=g;Ab[J[d+8>>2]](d,c);b:{if(J[b+88>>2]!=(a|0))break b;J[b+88>>2]=0;c=J[b+108>>2];if(!c)break b;J[b+88>>2]=J[c+8>>2]}b=J[a+8>>2];if(b)Ab[b|0](a);b=J[J[f+12>>2]+60>>2];if(b)Ab[b|0](a);b=J[a+40>>2];if(b)Ab[J[d+8>>2]](d,b);J[a+40>>2]=0;Ab[J[d+8>>2]](d,a)}}function bL(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;e=J[a+532>>2];if(!e)return 6;f=J[e>>2];i=J[b>>2];a=6;a:{if(f>>>0>i>>>0)break a;b:{if(!f)break b;e=J[e+136>>2];a=0;if(f>>>0>=4){h=f&-4;while(1){d=a<<2;J[d+c>>2]=J[e+d>>2];g=d|4;J[g+c>>2]=J[e+g>>2];g=d|8;J[g+c>>2]=J[e+g>>2];d=d|12;J[d+c>>2]=J[e+d>>2];a=a+4|0;j=j+4|0;if((h|0)!=(j|0))continue;break}}d=f&3;if(!d)break b;while(1){h=a<<2;J[h+c>>2]=J[e+h>>2];a=a+1|0;k=k+1|0;if((d|0)!=(k|0))continue;break}}a=0;if(f>>>0>=i>>>0)break a;Nb((f<<2)+c|0,0,i-f<<2);a=0}J[b>>2]=f;return a|0}function Aj(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;i=xb-16|0;xb=i;a:{b:{if(!a)break b;g=J[e+12>>2];h=c-b>>2;if((h|0)>0)if((Ab[J[J[a>>2]+48>>2]](a,b,h)|0)!=(h|0))break b;b=d-b>>2;g=(b|0)<(g|0)?g-b|0:0;if((g|0)>0){b=Ux(i+4|0,g,f);c:{if(K[b+11|0]>>>7|0){f=J[b>>2];break c}f=b}J[195395]=0;f=aa(3681,a|0,f|0,g|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;Yc(b);if((f|0)!=(g|0))break b}b=d-c>>2;if((b|0)>0)if((Ab[J[J[a>>2]+48>>2]](a,c,b)|0)!=(b|0))break b;J[e+12>>2]=0;j=a}xb=i+16|0;return j| -0}a=Z()|0;Yc(b);ba(a|0);B()}function No(a,b){var c=0,d=0,e=0,f=0;c=J[a+12>>2];e=c&1;if(!e)return 0;if(!(M[a+20>>2]>(b>>>1|0)+b>>>0?b:0)){d=c>>>1|0;b=((b>>>0>>0?d:b)<<1)+8|0;b=b?32-S(b)|0:0;f=12<>2]=c&-2;return 0}if(b>>>0<=29)Nb(d,0,f);J[a+16>>2]=0;J[a+12>>2]=e;c=J[a+20>>2];J[a+20>>2]=-1<>>0>31?2147483647:J[(b<<2)+107808>>2];f=J[a+32>>2];J[a+32>>2]=d;J[a+24>>2]=e;J[a+28>>2]=b<<1;if(c>>>0>=2){d=c>>>0<=1?1:c;b=0;while(1){c=f+P(b,12)|0;e=J[c+4>>2];if(e&1)Kk(a, -c,e>>>2|0,c+8|0,1);b=b+1|0;if((d|0)!=(b|0))continue;break}}Kb(f)}return 1}function Bj(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;i=xb-16|0;xb=i;a:{b:{if(!a)break b;g=J[e+12>>2];h=c-b|0;if((h|0)>0)if((Ab[J[J[a>>2]+48>>2]](a,b,h)|0)!=(h|0))break b;b=d-b|0;g=(b|0)<(g|0)?g-b|0:0;if((g|0)>0){b=Vx(i+4|0,g,f);c:{if(K[b+11|0]>>>7|0){f=J[b>>2];break c}f=b}J[195395]=0;f=aa(3546,a|0,f|0,g|0)|0;h=J[195395];J[195395]=0;if((h|0)==1)break a;Yb(b);if((f|0)!=(g|0))break b}b=d-c|0;if((b|0)> -0)if((Ab[J[J[a>>2]+48>>2]](a,c,b)|0)!=(b|0))break b;J[e+12>>2]=0;j=a}xb=i+16|0;return j|0}a=Z()|0;Yb(b);ba(a|0);B()}function UQ(a){a=a|0;if(K[781956])return J[195488];if(!K[782752])H[782752]=1;bd(782464,224734);bd(782476,224725);bd(782488,226940);bd(782500,226619);bd(782512,224945);bd(782524,227134);bd(782536,224758);bd(782548,225128);bd(782560,226050);bd(782572,226033);bd(782584,226041);bd(782596,226060);bd(782608,226542);bd(782620,227739);bd(782632,226085);bd(782644,225761);bd(782656,224945);bd(782668, -226172);bd(782680,226581);bd(782692,226950);bd(782704,226121);bd(782716,225576);bd(782728,224987);bd(782740,227714);H[781956]=1;J[195488]=782464;return 782464}function Tt(a,b){var c=0,d=0,e=0,f=0;c=J[a+12>>2];e=c&1;if(!e)return 0;if(!(M[a+20>>2]>(b>>>1|0)+b>>>0?b:0)){d=c>>>1|0;b=((b>>>0>>0?d:b)<<1)+8|0;b=b?32-S(b)|0:0;f=12<>2]=c&-2;return 0}if(b>>>0<=29)Nb(d,0,f);J[a+16>>2]=0;J[a+12>>2]=e;c=J[a+20>>2];J[a+20>>2]=-1<>>0>31?2147483647:J[(b<<2)+107680>>2]; -f=J[a+32>>2];J[a+32>>2]=d;J[a+24>>2]=e;J[a+28>>2]=b<<1;if(c>>>0>=2){d=c>>>0<=1?1:c;b=0;while(1){c=f+P(b,12)|0;e=J[c+4>>2];if(e&1)Ut(a,c,e>>>2|0,c+8|0);b=b+1|0;if((d|0)!=(b|0))continue;break}}Kb(f)}return 1}function SQ(a){a=a|0;if(K[781964])return J[195490];if(!K[783056])H[783056]=1;ad(782768,770232);ad(782780,770264);ad(782792,770300);ad(782804,770324);ad(782816,770348);ad(782828,770364);ad(782840,770384);ad(782852,770404);ad(782864,770432);ad(782876,770472);ad(782888,770504);ad(782900,770540);ad(782912, -770576);ad(782924,770592);ad(782936,770608);ad(782948,770624);ad(782960,770348);ad(782972,770640);ad(782984,770656);ad(782996,770672);ad(783008,770688);ad(783020,770704);ad(783032,770720);ad(783044,770736);H[781964]=1;J[195490]=782768;return 782768}function Wx(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{a=J[a+20>>2];b:{if(!a)break b;c:{d:{b=L[a>>1];e=b<<16>>16;if((e|0)>=2){d=I[(J[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break d}if(e)break d;b=L[a+2>>1];break c}b=I[a+2>>1];if((d|0)!=(b|0))break c;break a}e:{if(b<< -16>>16<2)break e;c=J[a+4>>2];f=c+(d<<3)|0;g=b&65535;c=c+(g<<3)|0;if(J[f>>2]!=J[c-8>>2]|J[f+4>>2]!=J[c-4>>2]|K[(J[a+8>>2]+g|0)-1|0]!=1)break e;b=b-1|0;I[a+2>>1]=b}if((e|0)<=0)break b;c=d;d=(b<<16>>16)-1|0;if((c|0)==(d|0)){I[a+2>>1]=b-1;break a}I[(J[a+12>>2]+(e<<1)|0)-2>>1]=d}return}I[a>>1]=e-1}function GP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(cf(a,J[b+8>>2],e)){if(!(J[b+28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{if(cf(a,J[b>>2],e)){if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!= -1)break a;J[b+32>>2]=1;return}J[b+32>>2]=d;b:{if(J[b+44>>2]==4)break b;I[b+52>>1]=0;a=J[a+8>>2];Ab[J[J[a>>2]+20>>2]](a,b,c,c,1,e);if(K[b+53|0]){J[b+44>>2]=3;if(!K[b+52|0])break b;break a}J[b+44>>2]=4}J[b+20>>2]=c;J[b+40>>2]=J[b+40>>2]+1;if(J[b+36>>2]!=1|J[b+24>>2]!=2)break a;H[b+54|0]=1;return}a=J[a+8>>2];Ab[J[J[a>>2]+24>>2]](a,b,c,d,e)}}function ofa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if((e|0)<=0)break a;f=J[a+28>>2];if(!f)break a;g=J[a+36>>2];l=f&-4;k= -f&3;m=f-1>>>0<3;while(1){h=J[J[c>>2]+(d<<2)>>2];f=J[b>>2];i=0;a=0;j=0;if(!m)while(1){H[a+h|0]=K[f|0];f=f+g|0;H[(a|1)+h|0]=K[f|0];f=f+g|0;H[(a|2)+h|0]=K[f|0];f=f+g|0;H[(a|3)+h|0]=K[f|0];a=a+4|0;f=f+g|0;j=j+4|0;if((l|0)!=(j|0))continue;break}if(k)while(1){H[a+h|0]=K[f|0];a=a+1|0;f=f+g|0;i=i+1|0;if((i|0)!=(k|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=e-1|0;if(a)continue;break}}}function FU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[a+68|0]=1;J[a+64>>2]=0;J[a+8>>2]=d;J[a+4>>2]=b;J[a>>2]=J[b+100>>2]; -a:{if(!d)break a;b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;lh(b);b=J[J[c+40>>2]>>2];J[a+72>>2]=0;J[a+76>>2]=b;if(!e)break a;J[a+72>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;b=J[7611];J[a+80>>2]=J[7610];J[a+84>>2]=b;b=J[7613];J[a+88>>2]=J[7612];J[a+92>>2]=b;b=J[7615];J[a+96>>2]=J[7614];J[a+100>>2]=b;b=J[7617];J[a+104>>2]=J[7616];J[a+108>>2]=b}function YB(a){var b=0,c=0,d=0,e=0,f=0,g=0;J[a+28>>2]=4096;b=a+4168|0;J[a+ -24>>2]=b;J[a+8268>>2]=b;d=a+72|0;f=a+12|0;a:{while(1){if(!J[a+16>>2]){b=J[a>>2];c=J[b+20>>2];b:{if(c){c=Ab[c|0](b,J[b+8>>2],d,4096)|0;if(c)break b;break a}e=J[b+4>>2];c=J[b+8>>2];if((e|0)==(c|0))break a;g=c+J[b>>2]|0;c=e-c|0;c=c>>>0>=4096?4096:c;Mb(d,g,c)}J[b+8>>2]=J[b+8>>2]+c;J[a+16>>2]=c;J[a+12>>2]=d}b=ni(f,0);if(b){if((b|0)==1){b=J[a+24>>2];J[a+8272>>2]=b;return(b|0)==J[a+8268>>2]?85:0}break a}if(J[a+28>>2])continue;break}return 0}J[a+8272>>2]=J[a+8268>>2];return 85}function Tc(a,b){var c=0,d= -0,e=0;c=J[a+4>>2];a:{e=J[a+20>>2];b:{if(e){d=85;if(b>>>0>c>>>0)break b;d=J[a+28>>2];c:{d:{if((b|0)>0){c=Ab[J[d+4>>2]](d,b)|0;if(c)break d;c=64;break a}c=6;if(b)break a;c=0;break c}e=J[a+20>>2]}J[a>>2]=c;e=Ab[e|0](a,J[a+8>>2],c,b)|0;c=J[a>>2];if(b>>>0<=e>>>0)d=0;else{if(c)Ab[J[d+8>>2]](d,c);c=0;J[a>>2]=0;d=85}J[a+32>>2]=c;J[a+36>>2]=c?b+c|0:0;J[a+8>>2]=e+J[a+8>>2];return d}e=J[a+8>>2];d=85;if(e>>>0>=c>>>0|c-e>>>0>>0)break b;J[a+8>>2]=b+e;c=e+J[a>>2]|0;J[a+32>>2]=c;J[a+36>>2]=b+c;d=0}return d}J[a>> -2]=0;return c}function L1(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=J[a+8>>2];c=J[a+4>>2];if(d-c>>3>>>0>=b>>>0){if(b){b=b<<3;c=Nb(c,0,b)+b|0}J[a+4>>2]=c;return}a:{f=J[a>>2];g=c-f>>3;e=g+b|0;if(e>>>0<536870912){d=d-f|0;h=d>>2;d=d>>>0>=2147483640?536870911:e>>>0>>0?h:e;if(d){if(d>>>0>=536870912)break a;i=Pb(d<<3)}e=(g<<3)+i|0;b=b<<3;b=Nb(e,0,b)+b|0;if((c|0)!=(f|0)){while(1){c=c-8|0;g=J[c+4>>2];e=e-8|0;J[e>>2]=J[c>>2];J[e+4>>2]=g;if((c|0)!=(f|0))continue;break}c=J[a>>2]}J[a+8>>2]=(d<<3)+ -i;J[a+4>>2]=b;J[a>>2]=e;if(c)Kb(c);return}Si(a);B()}zd();B()}function ow(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=J[a+4>>2];a:{if(!J[J[d+128>>2]+52>>2]){d=18;if(b>>>0>255)break a;f=J[a+532>>2];if(!J[f+1188>>2])break a;h=Ab[J[J[f+3088>>2]>>2]](b)|0;g=J[f+20>>2];if(!g)break a;f=J[f+1188>>2];b=0;while(1){if(L[f+(b<<1)>>1]!=(h|0)){b=b+1|0;if((g|0)!=(b|0))continue;break a}break}if((b|0)<0)break a;d=J[a+4>>2]}d=Ab[J[a+596>>2]](d,b,e+12|0,e+8|0)|0;if(d)break a; -a=J[e+12>>2];J[c+4>>2]=a;b=J[e+8>>2];J[c+12>>2]=a;d=0;J[c+8>>2]=a?a+b|0:0}xb=e+16|0;return d}function eh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{b:{e=id(b);if(e>>>0<1073741808){c:{if(e>>>0<=1){H[a+11|0]=e;d=a;break c}d=e|3;if(d>>>0>=1073741823)break b;f=d+1|0;d=Pb(f<<2);J[a+8>>2]=f|-2147483648;J[a>>2]=d;J[a+4>>2]=e}f=b;b=e<<2;g=qc(d,f,b)+b|0,h=0,J[g>>2]=h;b=a+12|0;if(H[c+11|0]>=0){d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;J[b+8>>2]=J[c+8>>2];break a}d=J[c+4>>2];c=J[c>>2];J[195395]=0;fa(1808, -b|0,c|0,d|0);b=J[195395];J[195395]=0;if((b|0)!=1)break a;b=Z()|0;if(H[a+11|0]<0)Kb(J[a>>2]);ba(b|0);B()}dd(a);B()}zd();B()}return a|0}function XJ(a){a=a|0;var b=0,c=0;b=J[a+160>>2];a:{if(b)break a;while(1){b=J[a+48>>2];if(!b){b=169776;break a}b=ep(b);if(!b)b=169776;c=J[a+160>>2];J[a+160>>2]=c?c:b;if(!c)break a;wc(b);b=J[a+160>>2];if(!b)continue;break}}b=M[b+16>>2]<8?169776:J[b+12>>2];if(K[b|0]|K[b+1|0]<<8)a=1;else{b=J[a+164>>2];b:{if(b)break b;while(1){b=J[a+48>>2];if(!b){b=169776;break b}b=dp(b); -if(!b)b=169776;c=J[a+164>>2];J[a+164>>2]=c?c:b;if(!c)break b;wc(b);b=J[a+164>>2];if(!b)continue;break}}a=M[b+16>>2]<8?169776:J[b+12>>2];a=(K[a|0]|K[a+1|0]<<8)!=0}return a|0}function PQ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(K[a+64|0])break a;H[a+64|0]=1;e=J[a+20>>2];b:{if(K[a+65|0]){d=J[a+12>>2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=ie(d,0,1);if(d)break a}f=L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+ -22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=ie(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+65|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function xpa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=Q(0),j=Q(0),k=Q(0),l=0;b=J[a+20>>2];h=J[b+28>>2];if(h)j=Q(Q(J[a+28>>2])/Q(h|0));h=J[b+32>>2];if(h){i=Q(h|0);k=Q(Q(J[a+32>>2])/i);i=Q(Q(Q(N[a+56>>2]-N[b+56>>2])*Q(J[a+28>>2]))/i)}h=J[d+12>>2];b=J[d+68>>2]; -if(b)b=J[b>>2];else b=0;Ab[h|0](d,e,j,i,Q(0),k,Q(0),Q(0),b);a=J[a+20>>2];b=J[a+116>>2];h=J[b+92>>2];l=J[a+120>>2];b=J[b+12>>2];if(b)b=J[b+72>>2];else b=0;Ab[h|0](a,l,c,d,e,f,g,b);a=J[d+16>>2];b=J[d+68>>2];if(!b){Ab[a|0](d,e,0);return}Ab[a|0](d,e,J[b+4>>2])}function oo(a,b,c,d){var e=0;e=xb-96|0;xb=e;a=Gs(a,e+8|0,0,c,d);if(!(a|!b)){J[b>>2]=J[e+8>>2];J[b+4>>2]=J[e+12>>2];J[b+8>>2]=J[e+16>>2];J[b+12>>2]=J[e+20>>2];J[b+16>>2]=J[e+24>>2];J[b+20>>2]=J[e+28>>2];J[b+32>>2]=J[e+48>>2];J[b+36>>2]=J[e+52>>2]; -J[b+40>>2]=J[e+56>>2];J[b+44>>2]=J[e+60>>2];J[b+48>>2]=J[e+64>>2];J[b+52>>2]=J[e+68>>2];c=J[e+76>>2];J[b+56>>2]=J[e+72>>2];J[b+60>>2]=c;d=J[e+84>>2];c=b- -64|0;J[c>>2]=J[e+80>>2];J[c+4>>2]=d;c=J[e+92>>2];J[b+72>>2]=J[e+88>>2];J[b+76>>2]=c;J[b+24>>2]=J[e+32>>2];J[b+28>>2]=J[e+40>>2]}xb=e+96|0;return a}function Vt(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;g=J[a+32>>2];h=c&1073741823;c=(h>>>0)%M[a+24>>2]|0;e=J[(g+P(c,12)|0)+4>>2];if(e&2){n=J[a+20>>2];b=J[b>>2];a=0;while(1){a:{if((e>>>2| -0)!=(h|0))break a;i=P(c,12)+g|0;f=J[i>>2];j=J[f+4>>2];d=J[f>>2];k=j-d|0;l=J[b>>2];if((k|0)!=(J[b+4>>2]-l|0))break a;m=J[f+12>>2];if((m|0)!=J[b+12>>2])break a;if((d|0)!=(j|0))if(cd(d,l,k))break a;d=P(m,12);if(d)if(cd(J[f+16>>2],J[b+16>>2],d))break a;return 0-(e&1)&i}a=a+1|0;c=c+a&n;e=J[(P(c,12)+g|0)+4>>2];if(e&2)continue;break}}return 0}function zma(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;c=J[a+100>>2];a:{if(!c)break a;d=J[b+68>>2];if(!d)break a;a=J[b+80>>2];if(d>>>0>=4){g=d&-4;while(1){J[a+4>> -2]=J[a+4>>2]|J[(K[a+19|0]<<2)+c>>2];J[a+24>>2]=J[a+24>>2]|J[(K[a+39|0]<<2)+c>>2];J[a+44>>2]=J[a+44>>2]|J[(K[a+59|0]<<2)+c>>2];f=a- -64|0;J[f>>2]=J[f>>2]|J[(K[a+79|0]<<2)+c>>2];a=a+80|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}d=d&3;if(!d)break a;e=0;while(1){J[a+4>>2]=J[a+4>>2]|J[(K[a+19|0]<<2)+c>>2];a=a+20|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}H[b+140|0]=K[b+140|0]&127}function oc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a;a:{b:{c:{d:{if((e^b)&3)break d;d=(c|0)!=0;e:{if(!(b&3)|!c)break e;while(1){d= -K[b|0];H[e|0]=d;if(!d)break a;e=e+1|0;c=c-1|0;d=(c|0)!=0;b=b+1|0;if(!(b&3))break e;if(c)continue;break}}if(!d)break b;if(!K[b|0])break a;if(c>>>0<4)break d;while(1){d=J[b>>2];if((d^-1)&d-16843009&-2139062144)break c;J[e>>2]=d;e=e+4|0;b=b+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break b}while(1){d=K[b|0];H[e|0]=d;if(!d)break a;e=e+1|0;b=b+1|0;c=c-1|0;if(c)continue;break}}c=0}Nb(e,0,c);return a|0}function bF(a,b){var c=0,d=0,e=0,f=0,g=0;b=J[a+84>>2]+(J[a+48>>2]+b|0)|0;d=J[a+12>>2];a:{if(b>>>0<= -d>>>0)break a;b=b+1|0;if((b|d)<0)return 6;f=J[a>>2];g=J[a+52>>2];b:{c:{e=b&-2;d:{if(!e){b=0;if(!g)break d;Ab[J[f+8>>2]](f,g);J[a+52>>2]=0;break b}c=10;if((e|0)>67108863)break a;e:{if(!d){b=Ab[J[f+4>>2]](f,e<<5)|0;c=!b<<6;break e}c=Ab[J[f+12>>2]](f,d<<5,e<<5,g)|0;b=c?c:g;c=!c<<6}if(c|(d|0)>=(e|0)|!b)break c;Nb((d<<5)+b|0,0,e-d<<5)}J[a+52>>2]=b;break b}J[a+52>>2]=b;if(c)break a}J[a+12>>2]=e;c=0;J[a+88>>2]=b?(J[a+48>>2]<<5)+b|0:0}return c}function U9(a,b){a=a|0;b=b|0;if(!Gg(a,289008,1)){Ob(J[a+628>> -2],288991,263391,0);return 0}b=Qb(136);J[a+584>>2]=b;if(b){J[b+104>>2]=0;J[b+108>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+128>>2]=J[a+672>>2];J[a+672>>2]=1752;J[b+132>>2]=J[a+668>>2];J[a+668>>2]=1753;J[b+120>>2]=-1;J[b+124>>2]=0;J[a+556>>2]=1754;J[a+548>>2]=1754;J[a+540>>2]=1754;J[a+520>>2]=1755;J[a+516>>2]=1756;J[a+572>>2]=1757;J[a+560>>2]=1758;J[a+552>>2]=1758;J[a+544>>2]=1758;J[a+536>>2]=1759;J[a+532>>2]=1760;J[a+524>>2]=1761;kr(a);return 1}Ob(J[a+628>>2],288991,264041,0);return 0}function pw(a,b, -c){var d=0,e=0,f=0;a:{if(K[a+44|0])break a;H[a+44|0]=1;e=J[a+20>>2];if(!e)return 3;b:{if(K[a+45|0]){d=J[a+12>>2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=ie(d,0,1);if(d)break a}f=L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=ie(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+45|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+ -2>>1]+1;d=0}return d}function Jv(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;J[d+12>>2]=0;e=Nd(a,d+12|0);c=J[d+12>>2];a:{if(c)break a;if((e|0)==-128){c=8;break a}f=b;b=e&127;b:{if((e|0)>=0)break b;e=Nd(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127|b<<7;if((e|0)>=0)break b;e=Nd(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127|b<<7;if((e|0)>=0)break b;e=Nd(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127|b<<7;if((e|0)>=0)break b;a=Nd(a,d+12|0);c=J[d+12>>2];if(c)break a;if(b>>>0>33554431){c=8;break a}c=8;if((a|0)<0)break a; -b=a&127|b<<7}J[f>>2]=b;c=0}xb=d+16|0;return c}function aaa(a,b){a=a|0;b=b|0;var c=0;b=J[a+584>>2];if(!J[b+116>>2])Ab[J[a+516>>2]](a)|0;c=J[a+596>>2];a:{if(!(K[c|0]|!(H[c+1|0]&1))){if(!J[b+96>>2]){yc(J[a+628>>2],J[a>>2],265797,0);J[a+556>>2]=1751;J[a+548>>2]=1751;J[a+540>>2]=1751;Ab[J[a+516>>2]](a)|0;J[b+96>>2]=1751}I[b+66>>1]=511;break a}J[b+96>>2]=1743;I[b+66>>1]=510}I[b+64>>1]=9;J[b+72>>2]=0;J[b+76>>2]=0;J[b+84>>2]=511;J[b+88>>2]=0;a=J[a+608>>2];c=J[b+116>>2]+2064|0;J[b+108>>2]=c;J[b+92>>2]=a<< -3;Pd(c,0,38888);a=J[b+116>>2]-8|0;J[b+104>>2]=a;J[b+112>>2]=a+(J[b+84>>2]<<3);return 1}function Wb(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(!a)break a;c=0;b:{if(K[b|0]!=35)break b;c=1;if(K[b+1|0]==32)break b;c=2;if(K[b+2|0]==32)break b;c=3;if(K[b+3|0]==32)break b;c=4;if(K[b+4|0]==32)break b;c=5;if(K[b+5|0]==32)break b;c=6;if(K[b+6|0]==32)break b;c=7;if(K[b+7|0]==32)break b;c=8;if(K[b+8|0]==32)break b;c=9;if(K[b+9|0]==32)break b;c=10;if(K[b+10|0]==32)break b;c=11;if(K[b+11|0]==32)break b;c=12;if(K[b+12| -0]==32)break b;c=13;if(K[b+13|0]==32)break b;c=K[b+14|0]==32?14:15}d=J[a+164>>2];if(!d)break a;Ab[d|0](a,b+c|0)}}function lw(a,b){var c=0,d=0,e=0,f=0;f=xb-16|0;xb=f;a:{b:{d=J[a+20>>2];if((d|0)!=J[a+12>>2]){e=J[a+28>>2];break b}c=J[a+16>>2];J[f+12>>2]=0;c:{c=c+d|0;e=J[a+8>>2];if(c>>>0>2147483647/(e>>>0)>>>0)break c;d=P(c,e);e=Tb(J[a>>2],1,J[a+24>>2],d,J[a+28>>2],f+12|0);J[a+28>>2]=e;if(J[f+12>>2])break c;J[a+24>>2]=d;J[a+12>>2]=c;d=J[a+20>>2];if(c>>>0>=d>>>0)break b;b=J[a+4>>2];if(!(!b|J[b>>2]))J[b>> -2]=130;J[a+20>>2]=c;break a}a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=64;break a}c=J[a+8>>2];Mb(P(c,d)+e|0,b,c);J[a+20>>2]=J[a+20>>2]+1}xb=f+16|0}function cN(a){a=a|0;var b=0,c=0,d=0,e=0;d=J[J[a+96>>2]+8>>2];b=J[a+356>>2];if(b){c=J[a+348>>2];if((c|0)>0){c=P(c,20)+b|0;while(1){e=J[b+16>>2];if(e)Ab[J[d+8>>2]](d,e);J[b+16>>2]=0;b=b+20|0;if(c>>>0>b>>>0)continue;break}b=J[a+356>>2]}if(b)Ab[J[d+8>>2]](d,b);J[a+356>>2]=0}b=J[a+364>>2];if(b){c=J[a+360>>2];if((c|0)>0){c=P(c,12)+b|0;while(1){e=J[b+8>>2];if(e)Ab[J[d+ -8>>2]](d,e);J[b+8>>2]=0;b=b+12|0;if(c>>>0>b>>>0)continue;break}b=J[a+364>>2]}if(b)Ab[J[d+8>>2]](d,b);J[a+364>>2]=0}I[a+344>>1]=0;J[a+360>>2]=0;J[a+348>>2]=0;J[a+352>>2]=0}function dQ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;J[d+8>>2]=c;J[d+12>>2]=b;g=d,h=Xe(a),J[g+4>>2]=h;e=J[d+12>>2]-J[d+4>>2]>>2;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a:{if((c|0)==((K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1)|0)){Bm(a,c,1,c,e,1);b=J[a>>2];break a}if(K[a+11|0]>>>7|0)b=J[a>>2]; -else b=a;if((c|0)==(e|0))break a;f=(e<<2)+b|0;Zk(f+4|0,f,c-e|0)}J[(e<<2)+b>>2]=J[d+8>>2];J[d+4>>2]=0;f=b;b=c+1|0;c=d+4|0;J[f+(b<<2)>>2]=J[c>>2];sg(a,b);g=d,h=Xe(a),J[g+4>>2]=h;a=Fm(c,e);xb=d+16|0;return a|0}function Lr(a,b){var c=0,d=0;if(K[a+206|0]&128){c=0;a:{if(K[b|0]!=35)break a;c=1;if(K[b+1|0]==32)break a;c=2;if(K[b+2|0]==32)break a;c=3;if(K[b+3|0]==32)break a;c=4;if(K[b+4|0]==32)break a;c=5;if(K[b+5|0]==32)break a;c=6;if(K[b+6|0]==32)break a;c=7;if(K[b+7|0]==32)break a;c=8;if(K[b+8|0]==32)break a; -c=9;if(K[b+9|0]==32)break a;c=10;if(K[b+10|0]==32)break a;c=11;if(K[b+11|0]==32)break a;c=12;if(K[b+12|0]==32)break a;c=13;if(K[b+13|0]==32)break a;c=K[b+14|0]==32?14:15}d=J[a+164>>2];if(d)Ab[d|0](a,b+c|0);return}gc(a,b);B()}function Aw(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;e=xb-16|0;xb=e;a:{f=c-b|0;if(f>>>0<=1073741807){b:{if(f>>>0<2){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d=a;break b}i=e+8|0;if(f>>>0>=2){h=f+4&-4;d=h-1|0;d=(d|0)==2?h:d}else d=1;Fi(i,d+1|0);d=J[e+8>>2];J[a>> -2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){J[e+8>>2]=H[b|0];b=b+1|0;J[d>>2]=J[e+8>>2];d=d+4|0;continue}break}J[e+8>>2]=0;J[d>>2]=J[e+8>>2];xb=e+16|0;break a}dd(a);B()}xb=g+16|0}function zea(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+400>>2];J[c+8>>2]=0;a:{if(J[a+288>>2]>=2){J[c+20>>2]=1;break a}d=J[a+292>>2];if(J[a+284>>2]!=1){J[c+20>>2]=J[d+12>>2];break a}J[c+20>>2]=J[d+76>>2]}J[c+12>>2]=0;J[c+16>>2]=0;b:switch(b|0){case 0:if(J[c+ -64>>2]){b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}J[c+4>>2]=1546;return;case 3:if(!J[c+64>>2]){b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}J[c+4>>2]=1547;return;case 2:if(!J[c+64>>2]){b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}J[c+4>>2]=1548;return;default:break b}b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}function h3(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{a=J[a+4>>2];if(!a)break a;b=J[a+68>>2];if(!b)break a;c=J[a+12>>2];d=J[a+8>>2];J[a+8>>2]=J[b>>2];J[a+12>>2]=J[b+4>>2];e=O[a+16>>3];O[a+16>>3]=O[b+ -8>>3];f=O[a+24>>3];O[a+24>>3]=O[b+16>>3];g=O[a+32>>3];O[a+32>>3]=O[b+24>>3];h=O[a+40>>3];O[a+40>>3]=O[b+32>>3];i=O[a+48>>3];O[a+48>>3]=O[b+40>>3];j=O[a+56>>3];O[a+56>>3]=O[b+48>>3];k=K[a+64|0];H[a+64|0]=K[b+56|0];H[b+56|0]=k;O[b+48>>3]=j;O[b+40>>3]=i;O[b+32>>3]=h;O[b+24>>3]=g;O[b+16>>3]=f;O[b+8>>3]=e;J[b>>2]=d;J[b+4>>2]=c}}function pT(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;var h=0;c=xb-128|0;xb=c;J[c+12>>2]=c+116;d=c+16|0;Nx(a+8|0,d,c+12|0,e,f,g);g=xb-16|0;xb=g;a=xb-32|0;xb=a;eq(a+ -24|0,d,J[c+12>>2]);h=J[a+28>>2];e=xb-16|0;xb=e;f=J[a+24>>2];J[e+8>>2]=f;J[e+12>>2]=b;while(1){if((f|0)!=(h|0)){vy(e+12|0,H[f|0]);f=f+1|0;J[e+8>>2]=f;continue}break}J[a+16>>2]=J[e+8>>2];J[a+20>>2]=J[e+12>>2];xb=e+16|0;J[a+12>>2]=(J[a+16>>2]-d|0)+d;J[a+8>>2]=J[a+20>>2];J[g+8>>2]=J[a+12>>2];J[g+12>>2]=J[a+8>>2];xb=a+32|0;xb=g+16|0;xb=c+128|0;return J[g+12>>2]}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;a:{if(!b)break a;e=J[a+4>>2];if(!e)break a;d=J[a+44>>2];if(!d)break a;b:{if(!c)break b; -e=e+40|0;d=c>>>0>d>>>0?d:c;h=d&1;c=0;if((d|0)!=1){i=d&-2;d=0;while(1){g=e+(c<<2)|0;f=P(c,3)+b|0;H[g+2|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g|0]=K[f+2|0];f=c|1;g=e+(f<<2)|0;f=P(f,3)+b|0;H[g+2|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g|0]=K[f+2|0];c=c+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!h)break b;e=e+(c<<2)|0;b=P(c,3)+b|0;H[e+2|0]=K[b|0];H[e+1|0]=K[b+1|0];H[e|0]=K[b+2|0]}H[a+449|0]=0}}function Rn(a,b,c){var d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;e=ac(b);if(!(!c|!K[c|0]))f=ac(c);if(a){J[a+744>>2]=34;H[d+8|0]=116; -H[d+9|0]=69;H[d+10|0]=88;H[d+11|0]=116;e=e+1|0;g=e+f|0;H[d+7|0]=g;H[d+6|0]=g>>>8;H[d+5|0]=g>>>16;H[d+4|0]=g>>>24;Wc(a,d+4|0,8);J[a+348>>2]=1950701684;dg(a);Fc(a,d+8|0,4);J[a+744>>2]=66;if(!(!b|!e)){Wc(a,b,e);Fc(a,b,e)}if(!(!f|(!a|!c))){Wc(a,c,f);Fc(a,c,f)}J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+12|0]=b;H[d+13|0]=b>>>8;H[d+14|0]=b>>>16;H[d+15|0]=b>>>24;Wc(a,d+12|0,4)}xb=d+16|0}function MW(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=0;J[a+4>>2]=0;J[195395]=0;c=_(1078,32)|0; -b=J[195395];J[195395]=0;a:{if((b|0)!=1){J[c+12>>2]=0;J[c+16>>2]=0;J[c>>2]=743996;J[c+4>>2]=0;J[c+8>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[195395]=0;d=c+12|0;b=d;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=743888;J[b+12>>2]=0;J[b+16>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1){b=Z()|0;Kb(c);break a}J[a>>2]=d;b=J[a+4>>2];J[a+4>>2]=c;b:{if(!b)break b;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break b;Ab[J[J[b>>2]+8>>2]](b);Pw(b)}return a|0}b=Z()|0}Fq(a);ba(b|0);B()}function oM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0; -e=xb-16|0;xb=e;c=J[a>>2];a:{b:{if(K[c+8|0]&2){d=Ab[J[J[c+540>>2]+104>>2]](c,b,e+12|0)|0;if(!d){c=J[e+12>>2];J[a+116>>2]=c;b=J[a>>2];if(H[b+8|0]&1){Lg(b,c);d=0;qp(a);break a}d=Ab[J[J[b+540>>2]+108>>2]](b,c,a+12|0)|0;if(!d)break b;J[a+116>>2]=-1;break a}J[a+116>>2]=-1;c=J[a>>2]}dj(c,b);if(!(H[J[a>>2]+8|0]&1))break a;d=qp(a);if(d)break a;c=a;d=L[a+84>>1];a=J[a+44>>2];a=J[(L[a>>1]>L[a+2>>1]?12:16)+b>>2];f=c,g=hc(d,4608,J[b>>2]==4?72:a?a:72),J[f+120>>2]=g}d=0}xb=e+16|0;return d|0}function d9(a,b,c,d,e){a= -a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;a:{b:switch(J[a+24>>2]-1|0){case 0:f=b;a=J[a+16>>2];a=Ab[J[J[a>>2]+16>>2]](a)|0;b=J[a>>2];O[f>>3]=b|0;f=c;c=J[a+4>>2];O[f>>3]=c|0;O[d>>3]=J[a+8>>2]-b|0;g=+(J[a+12>>2]-c|0);break a;case 1:f=b;a=J[a+20>>2]+100|0;b=J[a>>2];O[f>>3]=b|0;f=c;c=J[a+4>>2];O[f>>3]=c|0;O[d>>3]=J[a+8>>2]-b|0;g=+(J[a+12>>2]-c|0);break a;default:break b}J[b>>2]=0;J[b+4>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[d>>2]=0;J[d+4>>2]=0;g=0}O[e>>3]=g;h=O[d>>3];if(h<0){O[d>>3]=-h;g=O[e>>3]}if(g<0)O[e>> -3]=-g}function Jna(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;a=K[b+1|0]|K[b+2|0]<<8;j=(a<<8|a>>>8)&65535;if(!(!d|!e)){a:{if(!J[d>>2]){a=0;break a}k=J[f+28>>2];a=0;h=j-c|0;h=h>>>0<=j>>>0?h:0;while(1){if((a|0)==(h|0)){a=h;break a}g=K[b+1|0]|K[b+2|0]<<8;i=(g<<8|g>>>8)&65535;g=a+c|0;if(i>>>0<=g>>>0)i=169776;else i=(P(g,10)+b|0)+3|0;g=i;g=K[g+6|0]|K[g+7|0]<<8|(K[g+8|0]<<16|K[g+9|0]<<24);BH(i,f,P(a,12)+e|0,g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24),k);a=a+1|0;if(a>>>0>2])continue; -break}}J[d>>2]=a}return j|0}function uQ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[J[a+4>>2]+712>>2];a:{b:{if(!J[d+2024>>2]){d=d+1372|0;break b}e=Ab[J[J[d+3088>>2]+8>>2]](d+3052|0,c)|0;c=3;if(e>>>0>=M[d+2024>>2])break a;c=e<<2;d=J[(c+d|0)+2028>>2];if(!b|!J[a+68>>2])break b;J[a+72>>2]=J[(c+J[J[b+40>>2]>>2]|0)+4>>2]}e=J[d+620>>2];J[a+728>>2]=e;J[a+744>>2]=J[d+644>>2];c=0;b=0;c:{if(J[J[a+108>>2]+1416>>2]==1)break c;b=107;if(e>>>0<1240)break c;b=e>>>0<33900?1131:32768}J[a+736>>2]=b;J[a+584>>2]=J[d+540>> -2];b=J[d+544>>2];J[a+768>>2]=d;J[a+588>>2]=b}return c|0}function fh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{if(!b)break c;c=J[a+4>>2];if((c|0)!=J[a+8>>2]){J[c>>2]=b;J[a+4>>2]=c+4;break c}h=J[a>>2];e=c-h|0;g=e>>2;d=g+1|0;if(d>>>0>=1073741824)break b;f=e>>1;f=e>>>0>=2147483644?1073741823:d>>>0>>0?f:d;if(f){if(f>>>0>=1073741824)break a;e=Pb(f<<2)}else e=0;d=e+(g<<2)|0;J[d>>2]=b;g=d+4|0;if((c|0)!=(h|0)){while(1){d=d-4|0;c=c-4|0;J[d>>2]=J[c>>2];if((c|0)!=(h|0))continue;break}c=J[a>>2]}J[a+8>>2]=e+ -(f<<2);J[a+4>>2]=g;J[a>>2]=d;if(!c)break c;Kb(c)}return(b|0)!=0}Ve(a);B()}zd();B()}function $I(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;b=0;if(J[J[a+116>>2]+28>>2]!=J[193806]){a:{if(!c)break a;while(1){h=J[d>>2];J[f>>2]=0;i=J[a+116>>2];j=J[i+28>>2];k=J[a+120>>2];i=J[i+12>>2];if(i)i=J[i+8>>2];else i=0;if(!(Ab[j|0](a,k,h,f,i)|0))break a;f=f+g|0;d=d+e|0;b=b+1|0;if((c|0)!=(b|0))continue;break}b=c}return(b>>>0>>0?b:c)|0}a=J[a+20>>2];i=J[a+116>>2];b=J[i+32>>2]; -h=J[a+120>>2];i=J[i+12>>2];if(!i)return Ab[b|0](a,h,c,d,e,f,g,0)|0;return Ab[b|0](a,h,c,d,e,f,g,J[i+12>>2])|0}function gs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!c)break a;g=J[a+4>>2];if(!g)break a;f=J[a+44>>2];if(!f)break a;b:{if(!b)break b;g=g+40|0;d=d?d:c;e=e?e:d;f=b>>>0>f>>>0?f:b;j=f&1;b=0;if((f|0)!=1){k=f&-2;while(1){f=g+(b<<2)|0;H[f+2|0]=K[b+c|0];H[f+1|0]=K[b+d|0];H[f|0]=K[b+e|0];f=b|1;h=g+(f<<2)|0;H[h+2|0]=K[c+f|0];H[h+1|0]=K[d+f|0];H[h|0]=K[e+f|0];b=b+2| -0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!j)break b;g=g+(b<<2)|0;H[g+2|0]=K[b+c|0];H[g+1|0]=K[b+d|0];H[g|0]=K[b+e|0]}H[a+449|0]=0}}function dpa(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=Q(0),h=Q(0),i=0,j=0;i=J[a+28>>2];j=J[a+32>>2];f=J[b>>2];b=J[b+32>>2];a=0;J[195395]=0;c=aa(690,b|0,c|0,f|0)|0;f=J[195395];J[195395]=0;if((f|0)!=1){if(!c){g=Q(j>>31|1);a=J[b+84>>2];J[d>>2]=J[a+32>>2]-J[a+44>>2];J[e>>2]=J[a+48>>2]+J[a+36>>2];h=Q(Q(i>>31|1)*Q(J[d>>2]));a:{if(Q(R(h))>2]=a;g=Q(g*Q(J[e>>2]));b:{if(Q(R(g))>2]=a;a=1}td();return a|0}a=Z()|0;td();ba(a|0);B()}function rm(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;b=J[a+260>>2];if(!b){n=a;d=I[a+300>>1];b=J[a+248>>2];a:{if(!d)break a;c=I[a+298>>1];b=J[a+252>>2];if(!c)break a;e=J[a+248>>2];b=e>>31;f=(b^e)-b|0;b=c>>31;g=(b^c)-b|0;h=P(f>>>16|0,g);i=h<<16|8192;a=J[a+252>>2];b=a>>31;j=(a^b)-b|0;b=d>>31;k=(b^d)-b|0;l=P(j>>>16|0,k);m=l<< -16|8192;b=i+P(g,f&65535)|0;b=(h>>>16|0)+(b>>>0>>0)<<18|b>>>14;c=(c^e)<0?0-b|0:b;b=m+P(k,j&65535)|0;b=(l>>>16|0)+(b>>>0>>0)<<18|b>>>14;b=Hs(c,(a^d)<0?0-b|0:b)}J[n+260>>2]=b}return b}function Mk(a){var b=0,c=0,d=0;b=vc(1,172);a:{if(!b){c=J[193671];b=774672;break a}J[b+8>>2]=0;J[b>>2]=1;J[b+4>>2]=1;J[b+148>>2]=1073741823;J[b+152>>2]=536870911;xk(0);c=TF();b:{if(!c)break b;d=J[c>>2];if(!d)break b;J[c>>2]=d+1}J[b+144>>2]=0;J[b+84>>2]=0;H[b+60|0]=1;J[b+24>>2]=65533;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>> -2]=c}xk(c);c=J[a+12>>2];c:{if(!c)break c;d=J[c>>2];if(!d)break c;J[c>>2]=d+1}J[b+12>>2]=c;J[b+16>>2]=J[a+16>>2];J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2];J[b+28>>2]=J[a+28>>2];J[b+32>>2]=J[a+32>>2];return b}function Cj(a,b,c){var d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;e=d+12|0;b=J[b+28>>2];J[e>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[195395]=0;b=_(3653,e|0)|0;f=J[195395];J[195395]=0;a:{if((f|0)==1)break a;J[195395]=0;f=_(3662,b|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break a;J[c>>2]=f;J[195395]=0;$(3663,a|0,b|0); -a=J[195395];J[195395]=0;if((a|0)==1)break a;a=J[e>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);xb=d+16|0;return}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Bv(a,b){var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;c=J[b+28>>2];d=Ab[J[a+516>>2]](a,1668707360,b,e+8|0)|0;J[e+12>>2]=d;a:{if(d){J[a+700>>2]=0;J[a+704>>2]=0;c=0;break a}d=J[e+8>>2]>>>1|0;J[a+700>>2]=d;f=a,g=Tb(c,4,0,d,0,e+12|0),J[f+704>>2]=g;c=J[e+12>>2];if(c)break a; -c=Tc(b,J[a+700>>2]<<1);J[e+12>>2]=c;if(c)break a;d=J[a+700>>2];if((d|0)>0){c=J[a+704>>2];d=c+(d<<2)|0;while(1){f=c,g=Zc(b)<<16>>16<<6,J[f>>2]=g;c=c+4|0;if(d>>>0>c>>>0)continue;break}}Ec(b);if(!K[a+733|0]){c=J[e+12>>2];break a}c=ov(a,b)}xb=e+16|0;return c}function Ej(a,b,c){var d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;e=d+12|0;b=J[b+28>>2];J[e>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[195395]=0;b=_(3624,e|0)|0;f=J[195395];J[195395]=0;a:{if((f|0)==1)break a;J[195395]=0;f=_(3637,b|0)|0;g=J[195395];J[195395]=0;if((g|0)==1)break a; -H[c|0]=f;J[195395]=0;$(3638,a|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1)break a;a=J[e>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);xb=d+16|0;return}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function F9(a){a=a|0;var b=0,c=0,d=0;c=J[a+584>>2];a:{if(!(Ab[J[c+60>>2]](a)|0))break a;if(!uC(a))break a;d=1;b:{c:switch(J[c>>2]-2|0){case 0:b=1775;d:{e:{f:switch(L[a+84>>1]-8|0){case 8:b=1776;break e;case 0:break e;case 24:break f; -default:break d}b=1777}J[c+24>>2]=b}b=J[a+544>>2];if((b|0)!=1778)break b;break a;case 1:break c;default:break a}J[c+24>>2]=1779;b=J[a+544>>2];if((b|0)==1778)break a}J[c+12>>2]=b;J[a+544>>2]=1778;J[c+16>>2]=J[a+552>>2];J[a+552>>2]=1780;J[c+20>>2]=J[a+560>>2];J[a+560>>2]=1780}return d|0}function tfa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=J[a+20>>2];if((d|0)!=101){f=J[a>>2];J[f+24>>2]=d;J[f+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}if(M[a+260>>2]>=M[a+32>>2]){d=J[a>>2];J[d+20>>2]=126;Ab[J[d+ -4>>2]](a,-1)}d=J[a+8>>2];if(d){J[d+4>>2]=J[a+260>>2];J[d+8>>2]=J[a+32>>2];Ab[J[d>>2]](a)}d=J[a+388>>2];if(J[d+12>>2])Ab[J[d+4>>2]](a);d=J[a+260>>2];f=J[a+32>>2];J[e+12>>2]=0;g=b;b=f-d|0;Ab[J[J[a+392>>2]+4>>2]](a,g,e+12|0,b>>>0>>0?b:c);b=a;c=J[a+260>>2];a=J[e+12>>2];J[b+260>>2]=c+a;xb=e+16|0;return a|0}function Hz(a,b,c){var d=0,e=0,f=0,g=0,h=0;b=+I[a+116>>1]*b;a:{if(R(b)<2147483648){d=~~b;break a}d=-2147483648}I[a+116>>1]=d;b=+I[a+118>>1]*c;b:{if(R(b)<2147483648){f=~~b;break b}f=-2147483648}I[a+ -118>>1]=f;e=d<<16>>31;c:{if(((e^d)-e&65535)>>>0<2)break c;e=L[a+126>>1];g=e<<16>>16;h=g>>15;if(((h^e)-h&65535)>>>0<2)break c;d:switch(L[a+92>>1]-7|0){case 0:if(!d|!e)break c;b=+(g|0)/+(d|0);O[a+96>>3]=b;O[a+104>>3]=b;tf(a);return;case 1:break d;default:break c}O[a+96>>3]=+(g|0)/+(d|0);O[a+104>>3]=+I[a+128>>1]/+(f|0)}tf(a)}function Hw(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;h=xb-16|0;xb=h;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;if(b>>>0<=e>>>0){f=K[a+11|0]>>>7|0?(J[a+8>> -2]&2147483647)-1|0:1;a:{if(f-e>>>0>=d>>>0){if(!d)break a;if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;g=b<<2;i=f+g|0;if((b|0)!=(e|0)){g=f+g|0;Zk(g+(d<<2)|0,g,e-b|0);c=((c>>>0>=g>>>0?f+(e<<2)>>>0>c>>>0?d:0:0)<<2)+c|0}Zk(i,c,d);b=d+e|0;sg(a,b);J[h+12>>2]=0;J[f+(b<<2)>>2]=J[h+12>>2];break a}Yk(a,f,(d+e|0)-f|0,e,b,0,d,c)}xb=h+16|0;return a|0}qn(a);B()}function xg(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-16|0;xb=e;A(+b);g=v(1)|0;c=v(0)|0;d=g&2147483647;f=d+-1048576|0;a:{if((f|0)==2145386495|f>>>0<2145386495){h= -c<<28;c=(d&15)<<28|c>>>4;d=(d>>>4|0)+1006632960|0;break a}if((d|0)==2146435072|d>>>0>2146435072){h=c<<28;c=(g&15)<<28|c>>>4;d=g>>>4|2147418112;break a}if(!(c|d)){c=0;d=0;break a}f=c;c=d?S(d):S(c)+32|0;Ke(e,f,d,0,0,c+49|0);i=J[e>>2];h=J[e+4>>2];f=15372-c<<16;c=J[e+8>>2];d=f|J[e+12>>2]^65536}J[a>>2]=i;J[a+4>>2]=h;J[a+8>>2]=c;J[a+12>>2]=g&-2147483648|d;xb=e+16|0}function yV(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+76>>2];if((c|0)!=-1)return c|0;c=a;e=xb-16|0;xb=e;b=e+12|0;a=J[a+28>>2];J[b>>2]=a;J[a+4>>2]= -J[a+4>>2]+1;J[195395]=0;a=_(3551,b|0)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;J[195395]=0;a=ca(3552,a|0,32)|0;d=J[195395];J[195395]=0;if((d|0)==1)break b;b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)Ab[J[J[b>>2]+8>>2]](b);xb=e+16|0;break a}b=Z()|0;a=J[e+12>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(b|0);B()}J[c+76>>2]=a;return a|0}function pca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-32|0;xb=d;f=L[a+88>>1];b=777244;a:{b:{while(1){b=J[b>>2];if(!b){c:{e= -J[193972];if(!e)break c;b=775888;if(L[387946]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=263150;J[d>>2]=f;Ob(a,b,268613,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=263150;J[d+16>>2]=e;Ob(a,b,268105,d+16|0)}xb=d+32|0;return-1}function oca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-32|0;xb=d;f=L[a+88>>1];b=777244;a:{b:{while(1){b=J[b>>2]; -if(!b){c:{e=J[193972];if(!e)break c;b=775888;if(L[387946]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=263950;J[d>>2]=f;Ob(a,b,268613,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=263950;J[d+16>>2]=e;Ob(a,b,268105,d+16|0)}xb=d+32|0;return-1}function nca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-32|0;xb=d;f=L[a+88>>1];b=777244;a:{b:{while(1){b= -J[b>>2];if(!b){c:{e=J[193972];if(!e)break c;b=775888;if(L[387946]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=264690;J[d>>2]=f;Ob(a,b,268613,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=264690;J[d+16>>2]=e;Ob(a,b,268105,d+16|0)}xb=d+32|0;return-1}function mca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-32|0;xb=d;f=L[a+88>>1];b=777244;a:{b:{while(1){b= -J[b>>2];if(!b){c:{e=J[193972];if(!e)break c;b=775888;if(L[387946]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=263150;J[d>>2]=f;Ob(a,b,269642,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=263150;J[d+16>>2]=e;Ob(a,b,269187,d+16|0)}xb=d+32|0;return-1}function lca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-32|0;xb=d;f=L[a+88>>1];b=777244;a:{b:{while(1){b= -J[b>>2];if(!b){c:{e=J[193972];if(!e)break c;b=775888;if(L[387946]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=263950;J[d>>2]=f;Ob(a,b,269642,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=263950;J[d+16>>2]=e;Ob(a,b,269187,d+16|0)}xb=d+32|0;return-1}function kca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-32|0;xb=d;f=L[a+88>>1];b=777244;a:{b:{while(1){b= -J[b>>2];if(!b){c:{e=J[193972];if(!e)break c;b=775888;if(L[387946]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=264690;J[d>>2]=f;Ob(a,b,269642,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=264690;J[d+16>>2]=e;Ob(a,b,269187,d+16|0)}xb=d+32|0;return-1}function kka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b:{d=J[a+4>>2];c:{if(!d){J[a+8>>2]=1E3;c=Qb(1E3); -J[a+16>>2]=0;J[a+4>>2]=c;break c}c=J[a+8>>2];e=J[a+16>>2]+4|0;if(c>>>0>=e>>>0)break b;while(1){c=c<<1;if(e>>>0>c>>>0)continue;break}J[a+8>>2]=c;c=ic(d,c);if(c){J[a+4>>2]=c;c=c+J[a+16>>2]|0;break c}c=Qb(J[a+8>>2]);d=J[a+4>>2];c=Mb(c,d,J[a+16>>2]);Kb(d);J[a+4>>2]=c;c=c+J[a+16>>2]|0}J[a+12>>2]=c;break a}c=J[a+12>>2]}H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;J[a+12>>2]=J[a+12>>2]+4;J[a+16>>2]=J[a+16>>2]+4}function eca(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-16|0;xb=d;a:{if(!Gg(a,285504,2)){Ob(J[a+ -628>>2],285480,263349,0);a=0;break a}c=Qb(32);J[a+584>>2]=c;if(c){Pd(c,0,32);J[c+20>>2]=1633;J[c+4>>2]=(b|0)==34677;J[c>>2]=-1;J[a+556>>2]=1634;J[a+548>>2]=1635;J[a+516>>2]=1636;J[a+572>>2]=1637;J[a+564>>2]=1638;J[a+560>>2]=1639;J[a+552>>2]=1640;J[a+524>>2]=1641;J[c+24>>2]=J[a+672>>2];J[a+672>>2]=1642;J[c+28>>2]=J[a+668>>2];J[a+668>>2]=1643;a=1;break a}b=J[a+628>>2];J[d>>2]=J[a>>2];Ob(b,285480,263976,d);a=0}xb=d+16|0;return a|0}function _E(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0; -d=J[a+508>>2];if((d|0)>0){while(1){c=P(b,12)+a|0;g=J[c+272>>2];a:{if(!(e|(g|0)!=225)){i=J[c+276>>2];j=J[c+268>>2];e=225;break a}h=J[c+268>>2];if(!(f|(g|0)!=254)){k=J[c+276>>2];f=254;l=h;break a}Kb(h);J[c+268>>2]=0;d=J[a+508>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}b=0;J[a+508>>2]=0;if(e){J[a+268>>2]=j;J[a+508>>2]=1;J[a+276>>2]=i;J[a+272>>2]=e;b=1}if(f){J[a+508>>2]=b+1;a=P(b,12)+a|0;J[a+276>>2]=k;J[a+272>>2]=f;J[a+268>>2]=l}return}J[a+508>>2]=0}function JG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb- -32|0;xb=d;e=K[a+2|0]|K[a+3|0]<<8;if(e)f=((e<<8|e>>>8)&65535)+a|0;else f=169776;e=0;c=J[b+88>>2];c=ld(f,J[J[c+80>>2]+P(J[c+64>>2],20)>>2]);if((c|0)!=-1){e=169776;f=K[a+4|0]|K[a+5|0]<<8;c=c>>>0>=((f<<8|f>>>8)&65535)>>>0?169776:((c<<1)+a|0)+6|0;c=K[c|0]|K[c+1|0]<<8;if(c)e=((c<<8|c>>>8)&65535)+a|0;a=J[32516];J[d+24>>2]=J[32515];J[d+28>>2]=a;a=J[32514];J[d+16>>2]=J[32513];J[d+20>>2]=a;a=J[32512];J[d+8>>2]=J[32511];J[d+12>>2]=a;e=CG(e,b,d+8|0)}xb=d+32|0;return e|0}function uh(a,b){var c=0,d=0,e=Q(0),f= -Q(0),g=0,h=0,i=0,j=0,k=Q(0);i=O[b+8>>3];j=O[b>>3];b=J[a+8>>2];if(b){j=j+O[b>>3];i=i+O[b+8>>3]}c=J[a+4>>2];b=c+16|0;a=J[a>>2];f=Q(N[a+68>>2]*Q(i));e=Q(N[a+64>>2]*Q(j));g=J[c+12>>2];a=J[c+8>>2];a:{if(K[c+4|0]){if(!J[b>>2])$e(a,g,b);d=J[a+16>>2];h=J[a+32>>2];if(!h){Ab[d|0](a,g,b,e,f,0);break a}Ab[d|0](a,g,b,e,f,J[h+4>>2]);break a}k=Q(f*N[c>>2]);if(!J[c+16>>2])$e(a,g,b);h=J[a+16>>2];e=Q(k+e);d=J[a+32>>2];if(d)d=J[d+4>>2];else d=0;Ab[h|0](a,g,b,e,f,d)}N[c+32>>2]=f;N[c+28>>2]=e}function ZN(a,b){a=a|0;b= -b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];if((c|0)==-1)return 0;d=c+1|0;a=J[a+16>>2];c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=d>>>0>e>>>0?d:e;e=c-e|0;d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a:{if(e>>>0>=d>>>0)break a;a=(a+(e<<1)|0)+20|0;while(1){f=K[a+1|0]|K[a|0]<<8;if(f)break a;if((c|0)==-1)return 0;a=a+2|0;c=c+1|0;e=e+1|0;if(d>>>0>e>>>0)continue;break}f=0}J[b>>2]=c;return f|0}function Rr(a, -b,c){var d=0,e=0,f=0,g=0,h=0;d=35;a:{if(!(K[a+8|0]&2))break a;d=7;if(J[b>>2])break a;e=J[b+4>>2];f=e;d=J[b+12>>2];if(d)f=(P(d,e)+36|0)/72|0;g=J[b+8>>2];h=g;d=23;b=J[b+16>>2];if(b)h=(P(b,g)+36|0)/72|0;b=g?h:f;f=(e?f:b)+32&-64;if(!f)break a;e=(e?b:h)+32&-64;if(!e)break a;h=J[a+28>>2];if((h|0)<=0)break a;a=J[a+32>>2];b=0;while(1){g=a+(b<<4)|0;if(!((e|0)==(J[g+12>>2]+32&-64)&(f|0)==(J[g+8>>2]+32&-64))){b=b+1|0;if((h|0)!=(b|0))continue;break a}break}d=0;if(!c)break a;J[c>>2]=b;return 0}return d}function FL(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+8>>2];b=J[c>>2];a:{if(K[b+732|0])break a;H[c+112|0]=0;d=J[c+16>>2];a=J[c+12>>2];J[c+48>>2]=a;J[c+52>>2]=d;d=J[c+24>>2];J[c+56>>2]=J[c+20>>2];J[c+60>>2]=d;e=J[c+32>>2];d=c- -64|0;J[d>>2]=J[c+28>>2];J[d+4>>2]=e;J[c+72>>2]=J[c+36>>2];if(!(a&65535)|!L[c+50>>1])break a;if(K[b+176|0]&8){f=c,g=Rb(I[b+70>>1],J[c+56>>2])+32&-64,J[f+60>>2]=g;f=d,g=Rb(I[b+72>>1],J[c+56>>2])+32&-64,J[f>>2]=g;f=c,g=Rb(I[b+74>>1],J[c+56>>2])+32&-64,J[f+68>>2]=g}H[c+112|0]=1}return 0} -function xca(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){c=e&-2;d=e&1;l=h<<2;a=g<<1;while(1){h=0;if((e|0)!=1)while(1){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|-16777216;J[b+4>>2]=K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|-16777216;b=b+8|0;k=k+4|0;j=j+4|0;i=i+4|0;h=h+2|0;if((h|0)!=(c|0))continue;break}if(d){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|-16777216;k=k+2|0;j=j+2|0;i=i+2|0;b=b+4|0}b=b+l|0;k=a+k|0;j=a+j|0;i=a+i|0;f=f-1|0;if(f)continue; -break}}}function wI(a){var b=0,c=0,d=0,e=0,f=0,g=Q(0),h=Q(0);b=a+16|0;a:{if(J[a+16>>2]){f=J[a+12>>2];c=J[a+8>>2];g=N[a+20>>2];h=N[a+24>>2];if(!(g==N[a+28>>2]&h==N[a+32>>2])){a=J[c+16>>2];d=J[c+32>>2];if(d)e=J[d+4>>2];J[195395]=0;ta(a|0,c|0,f|0,b|0,Q(g),Q(h),e|0);a=J[195395];J[195395]=0;if((a|0)==1)break a}a=J[c+28>>2];e=0;d=J[c+32>>2];if(d)e=J[d+16>>2];J[195395]=0;ia(a|0,c|0,f|0,b|0,e|0);a=J[195395];J[195395]=0;if((a|0)==1)break a}J[b>>2]=0;J[b+4>>2]=0;J[b+16>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;return}ga(0)| -0;_b();B()}function W6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;a:{if(!c)break a;e=(L[c+4>>1]<<2)+16|0;J[d+12>>2]=e;J[d+8>>2]=49;I[d+6>>1]=768;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;I[a+16>>1]=L[a+16>>1]+1;Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],d+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],d+6|0,2);Lb(J[a+4>>2],c+4|0,4);if(!L[c+4>>1])break a;b=0;while(1){e=J[c+8>>2]+(b<<2)|0;Lb(J[a+4>>2],e,1);Lb(J[a+4>>2],e+1|0,1);Lb(J[a+4>>2],e+2|0,1);Lb(J[a+4>>2],e+3|0,1);b=b+1|0;if(b>>>0>1])continue; -break}}xb=d+16|0}function MI(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;b=xb-16|0;xb=b;J[b+12>>2]=c;d=J[a+116>>2];e=J[d+48>>2];a:{if((e|0)!=J[193811]){f=J[a+120>>2];g=b+12|0;h=b+8|0;c=J[d+12>>2];if(c)c=J[c+28>>2];else c=0;Ab[e|0](a,f,1,g,0,h,0,c);c=J[b+8>>2];break a}d=J[a+20>>2];e=J[d+116>>2];f=J[e+40>>2];g=J[d+120>>2];e=J[e+12>>2];if(e)e=J[e+20>>2];else e=0;c=Ab[f|0](d,g,c,e)|0;d=J[a+20>>2];if(!d)break a;d=J[d+28>>2];a=J[a+28>>2];if((d|0)==(a|0))break a;c=Lpa(Kpa(a,a>>31,c,c>>31),zb,d, -d>>31)}xb=b+16|0;return c|0}function LI(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;b=xb-16|0;xb=b;J[b+12>>2]=c;d=J[a+116>>2];e=J[d+52>>2];a:{if((e|0)!=J[193812]){f=J[a+120>>2];g=b+12|0;h=b+8|0;c=J[d+12>>2];if(c)c=J[c+32>>2];else c=0;Ab[e|0](a,f,1,g,0,h,0,c);c=J[b+8>>2];break a}d=J[a+20>>2];e=J[d+116>>2];f=J[e+44>>2];g=J[d+120>>2];e=J[e+12>>2];if(e)e=J[e+24>>2];else e=0;c=Ab[f|0](d,g,c,e)|0;d=J[a+20>>2];if(!d)break a;d=J[d+32>>2];a=J[a+32>>2];if((d|0)==(a|0))break a;c=Lpa(Kpa(a,a>>31,c,c>> -31),zb,d,d>>31)}xb=b+16|0;return c|0}function IV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;while(1){a:{if((c|0)<=(g|0))break a;d=J[a+12>>2];e=J[a+16>>2];b:{if(d>>>0>>0){J[f+12>>2]=2147483647;J[f+8>>2]=e-d>>2;J[f+4>>2]=c-g;d=xb-16|0;xb=d;xb=d+16|0;d=xb-16|0;xb=d;xb=d+16|0;d=f+4|0;e=f+8|0;d=J[d>>2]>2]?d:e;e=f+12|0;d=J[(J[d>>2]>2]?d:e)>>2];Hf(b,J[a+12>>2],d);e=d<<2;J[a+12>>2]=e+J[a+12>>2];b=b+e|0;break b}d=Ab[J[J[a>>2]+40>>2]](a)|0;if((d|0)==-1)break a;J[b>>2]=d;d=1;b= -b+4|0}g=d+g|0;continue}break}xb=f+16|0;return g|0}function Qba(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;if((c|0)>0){a=J[a+12>>2];while(1){a:{b:{f=J[a>>2];h=f>>16;i=h&32767;if(i){d=Oh((+(i|0)+.5)*.0027076061740622863+-44.3614195558365);d=h&32768?-d:d;if(!(d<=0))break b}J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;break a}N[b+4>>2]=d;g=(+((f>>>8&255)>>>0)+.5)*.0024390243902439024;j=(+((f&255)>>>0)+.5)*.0024390243902439024;e=1/(g*6+j*-16+12);g=g*9*e;e=j*4*e;N[b>>2]=d*(g/e);N[b+8>>2]=d*((1-g-e)/ -e)}a=a+4|0;b=b+12|0;f=c>>>0>1;c=c-1|0;if(f)continue;break}}}function PP(a){a=a|0;var b=0,c=0,d=0,e=0;b=a>>>0<=1?1:a;a=Ow(16,b);if(!a)a:{d=(b+3>>>2|0)+1|0;a=J[195928];if(!a){J[195928]=783740;I[391871]=125;I[391870]=128;a=J[195928]}while(1){b=0;b:{if(!a|(a|0)==784240)a=b;else{b=L[a+2>>1];e=d+(b>>>0>d>>>0?b-d&3:0)|0;if(e>>>0>>0){c=b-e|0;I[a+2>>1]=c;a=((c&65535)<<2)+a|0;I[a+2>>1]=e;I[a>>1]=0;a=a+4|0;break a}if(b>>>0>>0)break b;b=L[a>>1];c:{if(!c){J[195928]=(b<<2)+783728;break c}I[c>>1]=b}I[a>>1]= -0;a=a+4|0}break a}c=a;a=(L[a>>1]<<2)+783728|0;continue}}return a|0}function YM(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!K[a+632|0])break a;c=J[a+100>>2];b=J[a+476>>2];if((b|0)!=151552){if((b|0)!=131072)break a;b=J[a+640>>2];if(b)Ab[J[c+8>>2]](c,b);I[a+636>>1]=0;J[a+640>>2]=0;if(L[a+638>>1]){b=0;while(1){d=b<<2;e=J[d+J[a+644>>2]>>2];if(e)Ab[J[c+8>>2]](c,e);J[J[a+644>>2]+d>>2]=0;b=b+1|0;if(b>>>0>1])continue;break}}b=J[a+644>>2];if(b)Ab[J[c+8>>2]](c,b);I[a+638>>1]=0;J[a+644>>2]=0;break a}b=J[a+640>> -2];if(b)Ab[J[c+8>>2]](c,b);I[a+636>>1]=0;J[a+640>>2]=0}H[a+632|0]=0}function Voa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=Q(0),g=0,h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0);e=c+16|0;g=J[c+12>>2];d=J[c+8>>2];h=Q(J[b+4>>2]);f=Q(J[b>>2]);j=Q(J[a+4>>2]);i=Q(J[a>>2]);a:{if(K[c+4|0]){if(!J[e>>2])$e(d,g,e);a=J[d+20>>2];b=J[d+32>>2];if(!b){Ab[a|0](d,g,e,i,j,f,h,0);break a}Ab[a|0](d,g,e,i,j,f,h,J[b+8>>2]);break a}k=N[c>>2];l=Q(h*k);if(!J[c+16>>2])$e(d,g,e);b=J[d+20>>2];i=Q(Q(j*k)+i);f=Q(l+f);a=J[d+32>>2];if(a)a=J[a+ -8>>2];else a=0;Ab[b|0](d,g,e,i,j,f,h,a)}N[c+32>>2]=h;N[c+28>>2]=f;return 0}function K8(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-16|0;xb=d;if(K[a+64|0]){Ab[J[J[a>>2]+52>>2]](a,0);Ab[J[J[a>>2]+56>>2]](a)}H[a+64|0]=1;e=b-2|0;if(e>>>0<=2)f=J[(e<<2)+390528>>2];if((c|0)==-1){c=J[a+8>>2];c=Ab[J[J[c>>2]+60>>2]](c)|0}if((b|0)==5)Ab[J[J[a>>2]+60>>2]](a);b=J[a+4>>2];J[d+12>>2]=(c|0)==1|f;Ab[J[J[b>>2]+412>>2]](b,d+12|0)|0;b=J[a+4>>2];J[d+8>>2]=32;Ab[J[J[b>>2]+308>>2]](b,d+8|0)|0;b=J[a+4>>2];J[d+4>>2]=4; -Ab[J[J[b>>2]+308>>2]](b,d+4|0)|0;a=J[a+4>>2];Ab[J[J[a>>2]+352>>2]](a)|0;xb=d+16|0}function ug(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;J[g+12>>2]=b;b=0;f=6;a:{b:{if(mf(a,g+12|0))break b;f=4;h=Kh(a);if((h|0)>=0)i=(J[J[d+8>>2]+((h&255)<<2)>>2]&64)!=0;else i=0;if(!i)break b;b=Ab[J[J[d>>2]+36>>2]](d,h,0)|0;while(1){c:{Hi(a);b=b-48|0;if(mf(a,g+12|0)|(e|0)<2)break c;f=Kh(a);if((f|0)>=0)h=(J[J[d+8>>2]+((f&255)<<2)>>2]&64)!=0;else h=0;if(!h)break a;e=e-1|0;b=(Ab[J[J[d>>2]+36>>2]](d,f,0)|0)+P(b,10)|0; -continue}break}f=2;if(!mf(a,g+12|0))break a}J[c>>2]=J[c>>2]|f}xb=g+16|0;return b}function G8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+4>>2];c=J[a+8>>2];if(e>>>0>>0){O[e>>3]=O[b>>3];J[a+4>>2]=e+8;return}a:{g=J[a>>2];d=e-g>>3;f=d+1|0;if(f>>>0<536870912){h=d<<3;c=c-g|0;d=c>>2;d=c>>>0>=2147483640?536870911:d>>>0>f>>>0?d:f;if(d){if(d>>>0>=536870912)break a;f=Pb(d<<3)}else f=0;c=h+f|0;O[c>>3]=O[b>>3];b=c+8|0;if((e|0)!=(g|0))while(1){c=c-8|0;e=e-8|0;O[c>>3]=O[e>>3];if((e|0)!=(g|0))continue; -break}J[a+8>>2]=f+(d<<3);J[a+4>>2]=b;J[a>>2]=c;if(g)Kb(g);return}Ve(a);B()}zd();B()}function qF(a,b,c){var d=0;d=0;a:{if(J[a>>2])break a;b:{if(c>>>0<8)break b;a=K[b|0];c:{if((a|0)!=87|K[b+1|0]!=87|(K[b+2|0]!=66|K[b+3|0]!=66))break c;if(K[b+4|0]!=49|K[b+5|0]!=49|K[b+6|0]!=49)break c;d=1;if(K[b+7|0]==49)break a}if(a|c>>>0<16|(K[b+1|0]|K[b+2|0]!=2))break b;if(K[b+3|0]|K[b+4|0]!=2|(K[b+5|0]!=16|K[b+6|0]!=201))break b;if(K[b+7|0]|K[b+8|0]!=2|(K[b+9|0]|K[b+10|0]!=200))break b;if(K[b+11|0]!=6|K[b+12|0]!= -76|(K[b+13|0]|K[b+14|0]!=2))break b;if(K[b+15|0])break b;return 1}d=0}return d}function Lla(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=f|0;c=J[b>>2];a=J[b+4>>2];a:{if((c|0)>(a|0))break a;b:{if((c|0)>=0){f=a+1|0;if(f>>>0<=c>>>0)break a;a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(f>>>0>a>>>0)continue;break}if(a>>>0<=357913941){c=ic(J[b+8>>2],P(a,12));if(c)break b;c=J[b>>2];if(c>>>0>=a>>>0)break a}J[b>>2]=c^-1}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;return}J[b>>2]=a;J[b+8>>2]=c}a= -J[b+4>>2];J[b+4>>2]=a+1;a=J[b+8>>2]+P(a,12)|0;J[a+8>>2]=0;N[a+4>>2]=e;N[a>>2]=d}function Kla(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=f|0;c=J[b>>2];a=J[b+4>>2];a:{if((c|0)>(a|0))break a;b:{if((c|0)>=0){f=a+1|0;if(f>>>0<=c>>>0)break a;a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(f>>>0>a>>>0)continue;break}if(a>>>0<=357913941){c=ic(J[b+8>>2],P(a,12));if(c)break b;c=J[b>>2];if(c>>>0>=a>>>0)break a}J[b>>2]=c^-1}J[194122]=J[42446];a=J[42445];J[194120]=J[42444];J[194121]=a;return}J[b>>2]=a;J[b+8>>2]=c}a= -J[b+4>>2];J[b+4>>2]=a+1;a=J[b+8>>2]+P(a,12)|0;J[a+8>>2]=1;N[a+4>>2]=e;N[a>>2]=d}function xk(a){var b=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;J[a>>2]=b-1;if((b|0)!=1)break a;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}b=J[a+80>>2];if(b)Ab[b|0](J[a+48>>2]);b=J[a+84>>2];if(b)Ab[b|0](J[a+52>>2]);b=J[a+88>>2];if(b)Ab[b|0](J[a+56>>2]);b=J[a+92>>2];if(b)Ab[b|0](J[a+60>>2]);b=J[a+96>>2];if(b)Ab[b|0](J[a- -64>>2]);b=J[a+100>>2];if(b)Ab[b|0](J[a+68>>2]);b=J[a+104>>2];if(b)Ab[b|0](J[a+ -72>>2]);b=J[a+108>>2];if(b)Ab[b|0](J[a+76>>2]);xk(J[a+12>>2]);Kb(a)}}function Pm(a){var b=0,c=0;a:{b=J[a+4>>2];c=!J[(J[J[b>>2]-12>>2]+b|0)+24>>2];b=b+J[J[b>>2]-12>>2]|0;b:{if(c|J[b+16>>2]|!(J[b+4>>2]&8192))break b;if(Iy())break b;b=J[a+4>>2];b=J[(J[J[b>>2]-12>>2]+b|0)+24>>2];J[195395]=0;b=_(3549,b|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){if((b|0)!=-1)break b;a=J[a+4>>2];b=J[J[a>>2]-12>>2];J[195395]=0;$(3550,a+b|0,1);a=J[195395];J[195395]=0;if((a|0)!=1)break b}sa(ga(0)|0)|0;J[195395]=0;ja(3516);a= -J[195395];J[195395]=0;if((a|0)==1)break a}return}ga(0)|0;_b();B()}function sda(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;d=K[a+11|0];e=d+7>>>3|0;a:{if(!d){d=b;break a}f=b+e|0;d=b;while(1){H[d|0]=K[c|0]+K[d|0];c=c+1|0;d=d+1|0;if(f>>>0>d>>>0)continue;break}}b=J[a+4>>2]+b|0;if(b>>>0>d>>>0){a=0-e|0;m=(b-d|0)+d|0;while(1){h=K[a+d|0];b=K[a+c|0];e=h-b|0;f=e>>31;i=K[c|0];g=i-b|0;j=g>>31;k=e+g|0;l=k>>31;n=b;b=(e^f)-f|0;e=(g^j)-j|0;f=b>>>0>>0;H[d|0]=K[d|0]+((l^k)-l>>>0<(f? -b:e)>>>0?n:f?i:h);c=c+1|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}}function pF(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<32|(K[b|0]|K[b+1|0]))break a;if(K[b+2|0]|K[b+3|0]!=12|(K[b+4|0]!=106|K[b+5|0]!=80))break a;if(K[b+6|0]!=32|K[b+7|0]!=32|(K[b+8|0]!=13|K[b+9|0]!=10))break a;if(K[b+10|0]!=135|K[b+11|0]!=10|(K[b+12|0]|K[b+13|0]))break a;if(K[b+14|0]|K[b+16|0]!=102|(K[b+17|0]!=116|K[b+18|0]!=121))break a;if(K[b+19|0]!=112|K[b+20|0]!=106|(K[b+21|0]!=112|K[b+22|0]!=50))break a;if(K[b+24|0]|K[b+23|0]!=32|(K[b+ -25|0]|K[b+26|0]))break a;if(K[b+27|0])break a;d=1}return d}function Iia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if((b|0)>0){c=J[a+24>>2];e=c?c-20|0:0;f=J[e+24>>2];if((f|0)<(b|0))while(1){c=J[a+24>>2];c=c?c-20|0:0;d=J[c+48>>2];d=Ab[J[J[d>>2]+12>>2]](d,J[c+52>>2],1,4096,0,0)|0;if(!d){if(K[c+56|0]){d=J[a>>2];J[d+20>>2]=43;Ab[J[d>>2]](a)}d=J[a>>2];J[d+20>>2]=123;Ab[J[d+4>>2]](a,-1);H[J[c+52>>2]]=255;H[J[c+52>>2]+1|0]=217;d=2}H[c+56|0]=0;J[c+24>>2]=d;J[c+20>>2]=J[c+52>>2];b=b-f|0;f=J[e+24>>2];if((b|0)>(f| -0))continue;break}J[e+24>>2]=f-b;J[e+20>>2]=J[e+20>>2]+b}}function Fga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+452>>2];a:{b:switch(b|0){case 0:if(J[a+84>>2]){J[c+4>>2]=1409;if(J[c+12>>2])break a;d=c,e=Ab[J[J[a+4>>2]+28>>2]](a,J[c+8>>2],0,J[c+16>>2],1)|0,J[d+12>>2]=e;break a}J[c+4>>2]=J[J[a+472>>2]+4>>2];break a;case 3:if(!J[c+8>>2]){b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}J[c+4>>2]=1410;break a;case 2:if(!J[c+8>>2]){b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}J[c+4>>2]=1411;break a;default:break b}b=J[a>> -2];J[b+20>>2]=3;Ab[J[b>>2]](a)}J[c+20>>2]=0;J[c+24>>2]=0}function Ii(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;a:{if(f&64){c=f+-64|0;b=c&31;if((c&63)>>>0>=32){c=0;b=e>>>b|0}else{c=e>>>b|0;b=((1<>>b}d=0;e=0;break a}if(!f)break a;i=d;h=64-f|0;g=h&31;if((h&63)>>>0>=32){h=d<>>32-g|e<>>0>=32){g=0;b=c>>>b|0}else{g=c>>>b|0;b=((1<>>b}b=j|b;c=g|h;g=d;d=f&31;if((f&63)>>>0>=32){h=0;d=e>>>d|0}else{h=e>>>d|0;d=((1<>>d}e=h}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e}function sfa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+20>>2];if((d|0)!=102){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}e=J[a+32>>2];f=J[a+260>>2];if(e>>>0<=f>>>0){b=J[a>>2];J[b+20>>2]=126;Ab[J[b+4>>2]](a,-1);return 0}d=J[a+8>>2];if(d){J[d+8>>2]=e;J[d+4>>2]=f;Ab[J[d>>2]](a)}d=J[a+388>>2];if(J[d+12>>2])Ab[J[d+4>>2]](a);d=c;c=J[a+272>>2]<<3;if(d>>>0>>0){d=J[a>>2];J[d+20>>2]=24;Ab[J[d>>2]](a)}if(!(Ab[J[J[a+400>>2]+4>>2]](a, -b)|0))return 0;J[a+260>>2]=c+J[a+260>>2];return c|0}function CD(a,b,c){var d=0,e=0;d=xb-16|0;xb=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Wb(a,260558);mc(a,c);break a}if(!(!b|!(K[b+8|0]&128))){Wb(a,260582);mc(a,c);break a}if((c|0)!=9){Wb(a,260603);mc(a,c);break a}c=d+7|0;Gd(a,c,9);Fc(a,c,9);if(mc(a,0))break a;c=a;a=K[d+7|0]|K[d+8|0]<<8|(K[d+9|0]<<16|K[d+10|0]<<24);e=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14|0]<<24);Ar(c,b,e,a<<24|(a&65280)<<8|(a>>>8&65280|a>>> -24),K[d+15|0])}xb=d+16|0;return}gc(a,260533);B()}function nka(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=xb-16|0;xb=e;a:{b:{c:{if(!a)break c;f=ac(b);if(f>>>0>=2147483632)break a;d:{if(f>>>0<=10){H[e+15|0]=f;g=e+4|0;break d}h=(f|15)+1|0;g=Pb(h);J[e+12>>2]=h|-2147483648;J[e+4>>2]=g;J[e+8>>2]=f}i=Mb(g,b,f)+f|0,j=0,H[i|0]=j;J[195395]=0;ia(1076,a|0,e+4|0,c|0,d|0);a=J[195395];J[195395]=0;if((a|0)==1)break b;if(H[e+15|0]>=0)break c;Kb(J[e+4>>2])}xb=e+16|0;return}a=Z()|0;if(H[e+15|0]< -0)Kb(J[e+4>>2]);ba(a|0);B()}dd(e+4|0);B()}function np(a,b){var c=0,d=0,e=0;c=J[b+4>>2];if(c){if(J[b>>2])while(1){e=d<<4;c=J[(e+c|0)+8>>2];if(c)Ab[J[a+8>>2]](a,c);c=e+J[b+4>>2]|0;J[c+8>>2]=0;c=J[c+12>>2];if(c)Ab[J[a+8>>2]](a,c);c=J[b+4>>2];J[(e+c|0)+12>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}if(c)Ab[J[a+8>>2]](a,c);J[b+4>>2]=0}c=J[b+16>>2];if(c){if(J[b+12>>2]){d=0;while(1){e=d<<2;c=J[e+c>>2];if(c)Ab[J[a+8>>2]](a,c);c=J[b+16>>2];J[e+c>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}}if(c)Ab[J[a+ -8>>2]](a,c);J[b+16>>2]=0}}function ci(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;a:{if(!a){f=35;break a}f=38;if(!b)break a;d=J[a+40>>2];if(!d)break a;f=6;g=J[a+36>>2];if((g|0)<=0)break a;g=(g<<2)+d|0;while(1){b:{if(J[d>>2]!=(b|0))break b;c=J[b>>2];c:{if(!c)break c;c=J[c+96>>2];h=J[J[c>>2]+32>>2];if(!h)break c;c=Ab[h|0](c,9712)|0;if(!c)break c;if(Ab[J[c>>2]](b,e+8|0)|0)break c;if(J[e+12>>2]==14)break b}J[a+92>>2]=J[d>>2];f=0;break a}d=d+4|0;if(g>>>0>d>>>0)continue;break}}xb=e+16|0; -return f|0}function X9(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;b=J[a+584>>2];c=J[b+144>>2];if(!c){Ab[J[a+524>>2]](a)|0;c=J[b+144>>2]}I[b+68>>1]=258;J[b+64>>2]=33488905;J[b+132>>2]=0;J[b+136>>2]=0;J[b+124>>2]=1E4;J[b+128>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+140>>2]=(J[a+596>>2]+J[a+600>>2]|0)-5;a=c+72E3|0;d=8993;while(1){J[a>>2]=-1;J[a-8>>2]=-1;J[a-16>>2]=-1;J[a-24>>2]=-1;J[a-32>>2]=-1;J[a-40>>2]=-1;J[a-48>>2]=-1;J[a-56>>2]=-1;a=a+-64|0;e=d>>>0>7;d=d-8|0;if(e)continue;break}J[c>>2]=-1;J[b+120>>2]=65535;return 1} -function Sf(a,b){var c=0,d=0,e=0;c=J[a+20>>2];if(!(K[a+13|0]?c:0))return Rb(b,J[a+16>>2]);d=J[a+24>>2];c=c-1|0;e=c>>>0>>0?d:c;while(1){a:{c=d;if((e|0)==(c|0)){c=e;break a}d=c+1|0;if(J[(P(d,20)+a|0)+36>>2]<=(b|0))continue}break}b:{c:{if(c)while(1){d=J[(P(c,20)+a|0)+36>>2];if((d|0)<=(b|0))break c;c=c-1|0;if(c)continue;break}c=0;J[a+24>>2]=0;d=J[a+36>>2];if((d|0)<=(b|0))break b;return Rb(b-d|0,J[a+16>>2])+J[a+40>>2]|0}J[a+24>>2]=c}a=P(c,20)+a|0;return Rb(b-d|0,J[a+44>>2])+J[a+40>>2]|0}function Cga(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;var h=0,i=0;b=J[a+452>>2];c=J[b+24>>2];a:{if(c){d=J[b+12>>2];break a}d=Ab[J[J[a+4>>2]+28>>2]](a,J[b+8>>2],J[b+20>>2],J[b+16>>2],0)|0;J[b+12>>2]=d;c=J[b+24>>2]}h=J[b+16>>2]-c|0;i=J[f>>2];g=g-i|0;g=g>>>0>h>>>0?h:g;h=J[a+116>>2]-J[b+20>>2]|0;g=g>>>0>>0?g:h;Ab[J[J[a+480>>2]+4>>2]](a,(c<<2)+d|0,(i<<2)+e|0,g);J[f>>2]=g+J[f>>2];a=g+J[b+24>>2]|0;J[b+24>>2]=a;c=a;a=J[b+16>>2];if(c>>>0>=a>>>0){J[b+24>>2]=0;J[b+20>>2]=a+J[b+20>>2]}}function YV(a,b,c){a= -a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;while(1){a:{if((c|0)<=(g|0))break a;d=J[a+12>>2];f=J[a+16>>2];b:{if(d>>>0>>0){J[e+12>>2]=2147483647;J[e+8>>2]=f-d;J[e+4>>2]=c-g;d=xb-16|0;xb=d;xb=d+16|0;d=xb-16|0;xb=d;xb=d+16|0;d=e+4|0;f=e+8|0;d=J[d>>2]>2]?d:f;f=e+12|0;d=J[(J[d>>2]>2]?d:f)>>2];$g(b,J[a+12>>2],d);J[a+12>>2]=J[a+12>>2]+d;break b}d=Ab[J[J[a>>2]+40>>2]](a)|0;if((d|0)==-1)break a;H[b|0]=d;d=1}b=b+d|0;g=d+g|0;continue}break}xb=e+16|0;return g|0}function yU(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=xb-16|0;xb=e;a:{b:{c:{if((a|0)!=(b|0))d:{e:{f=K[a|0];if((f|0)!=45)break e;a=a+1|0;if((b|0)!=(a|0))break e;break d}h=J[194954];J[194954]=0;a=Op(a,e+12|0,d,Vd());d=zb;g=J[194954];f:{if(g){if(J[e+12>>2]!=(b|0))break f;if((g|0)==68)break c;break b}J[194954]=h;if(J[e+12>>2]==(b|0))break b}}J[c>>2]=4;a=0;b=0;break a}J[c>>2]=4;a=-1;b=-1;break a}b=a;c=(f|0)==45;a=c?0-b|0:b;b=c?0-(d+((b|0)!=0)|0)|0:d}xb=e+16|0;zb=b;return a|0}function SC(a,b,c){var d=0,e=0,f=0,g=0,h= -0,i=0;h=xb-16|0;xb=h;e=J[b+4>>2];d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+283312>>2];else d=0;d=Sd(a,e,d,280640);if(d){a:{if(!xe(a,b,d))break a;i=J[b+4>>2];if(!i)break a;while(1){e=d+(f<<3)|0;g=J[e>>2];e=J[e+4>>2];if(!e){c=J[a>>2];f=J[a+628>>2];a=J[nd(a,L[b>>1])+16>>2];J[h+4>>2]=g;J[h>>2]=a;Ob(f,c,280731,h);g=0;break a}N[(f<<2)+c>>2]=L[b+2>>1]==5?Q(Q(g>>>0)/Q(e>>>0)):Q(Q(g|0)/Q(e|0));g=1;f=f+1|0;if((i|0)!=(f|0))continue;break}}Kb(d)}xb=h+16|0;return g}function In(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;J[a+ -8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{c=J[b>>2];d=J[b+4>>2];if((c|0)!=(d|0)){b=d-c|0;e=b>>2;if(e>>>0>=1073741824){J[195395]=0;ea(1925,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;B()}J[195395]=0;b=_(1078,b|0)|0;f=J[195395];J[195395]=0;if((f|0)==1)break a;J[a+4>>2]=b;J[a>>2]=b;J[a+8>>2]=(e<<2)+b;while(1){J[b>>2]=J[c>>2];b=b+4|0;c=c+4|0;if((d|0)!=(c|0))continue;break}J[a+4>>2]=b}return}c=Z()|0;b=J[a>>2];if(b){J[a+4>>2]=b;Kb(b)}ba(c|0);B()}function NG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=xb-32|0;xb= -e;c=J[b+88>>2];c=J[J[c+80>>2]+P(J[c+64>>2],20)>>2];d=K[a+2|0]|K[a+3|0]<<8;if(d)d=((d<<8|d>>>8)&65535)+a|0;else d=169776;d=ld(d,c);a:{if((d|0)==-1)break a;a=K[a+4|0]|K[a+5|0]<<8;a=c+(a<<8|a>>>8)&65535;c=J[b+88>>2];if(J[c+156>>2]){qf(c);c=J[b+80>>2];f=J[b+88>>2];J[e+16>>2]=J[f+64>>2];nc(f,c,129440,e+16|0)}Co(b,a);a=J[b+88>>2];if(!J[a+156>>2])break a;b=J[b+80>>2];J[e>>2]=J[a+64>>2]-1;nc(a,b,129495,e)}xb=e+32|0;return(d|0)!=-1|0}function Kba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=J[a+584>>2]; -e=(c|0)/J[d+8>>2]|0;a:{if(J[d>>2]==2){c=b;break a}c=J[d+12>>2];Ab[J[d+20>>2]](d,b,e)}f=J[a+600>>2];b=f-J[a+608>>2]|0;d=J[a+604>>2];if(e){while(1){if((b|0)<=2){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-b;if(!Xc(a))return-1;d=J[a+604>>2];b=J[a+600>>2]-J[a+608>>2]|0}H[d|0]=L[c+2>>1];H[d+1|0]=J[c>>2]>>>8;H[d+2|0]=J[c>>2];b=b-3|0;d=d+3|0;c=c+4|0;e=e-1|0;if(e)continue;break}f=J[a+600>>2]}J[a+604>>2]=d;J[a+608>>2]=f-b;return 1}function Xo(a,b){var c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;a:{if(!a|!b)break a;d=K[a|0]; -if(!d)break a;b:{if(!d)break b;f=b>>>0>=4?4:b;H[c+12|0]=d;e=1;c:{if((b|0)==1)break c;d=K[a+1|0];if(!d)break b;H[c+13|0]=d;e=2;if((b|0)==2)break c;d=K[a+2|0];if(!d)break b;H[c+14|0]=d;e=3;if((b|0)==3)break c;a=K[a+3|0];if(!a)break b;H[c+15|0]=a}e=f}if(e>>>0<=3)Nb((c+12|0)+e|0,32,4-e|0);a=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);e=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}xb=c+16|0;return e}function Cpa(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;var h=0,i=0;b=J[a+20>>2];J[f>> -2]=0;J[e>>2]=0;g=J[b+116>>2];h=J[g+76>>2];i=J[b+120>>2];g=J[g+12>>2];if(g)g=J[g+56>>2];else g=0;h=Ab[h|0](b,i,c,d,e,f,g)|0;if(h){c=J[a+20>>2];a:{if(c){b=J[e>>2];d=J[c+28>>2];g=J[a+28>>2];if((d|0)!=(g|0))b=Lpa(Kpa(g,g>>31,b,b>>31),zb,d,d>>31);J[e>>2]=b;b=J[f>>2];c=J[c+32>>2];a=J[a+32>>2];if((c|0)==(a|0))break a;b=Lpa(Kpa(a,a>>31,b,b>>31),zb,c,c>>31);break a}b=J[f>>2]}J[f>>2]=b}return h|0}function ru(a,b){var c=0,d=0,e=0,f=0;f=J[a+16>>2];a:{if(!f)break a;if(!J[a+12>>2]){c=f;break a}c=f;while(1){f=e<< -2;c=J[f+c>>2];if(c)Ab[J[b+8>>2]](b,c);c=J[a+16>>2];J[f+c>>2]=0;e=e+1|0;if(e>>>0>2])continue;break}}if(c)Ab[J[b+8>>2]](b,c);J[a+16>>2]=0;c=J[a+4>>2];b:{if(!c)break b;if(!J[a>>2]){d=c;break b}e=0;d=c;while(1){c=e<<3;d=J[(c+d|0)+4>>2];if(d)Ab[J[b+8>>2]](b,d);d=J[a+4>>2];J[(c+d|0)+4>>2]=0;e=e+1|0;if(e>>>0>2])continue;break}}if(d)Ab[J[b+8>>2]](b,d);J[a+4>>2]=0}function Y9(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+584>>2];e=L[c+64>>1];d=J[c+72>>2];f=J[c+76>>2];b=J[a+604>>2];if(b>>>0>M[c+140>> -2]){J[a+608>>2]=b-J[a+596>>2];Xc(a);b=J[a+596>>2]}g=J[c+120>>2];if((g|0)!=65535){d=g|d<>f;if((g|0)<16)b=b+1|0;else{f=g-16|0;H[b+1|0]=d>>f;b=b+2|0}J[c+120>>2]=65535}d=d<>c;if((e|0)<16)b=b+1|0;else{c=e-16|0;H[b+1|0]=d>>c;b=b+2|0}if((c|0)>0){H[b|0]=d<<8-c;b=b+1|0}J[a+608>>2]=b-J[a+596>>2];return 1}function UY(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;a:{d=J[b>>2];e=J[a+16>>2];g=L[e+2>>1];h=g+(L[e+6>>1]<<8)|0;if(d>>>0>=h>>>0)break a; -a=L[e>>1];k=(g-a|0)+1|0;i=L[e+4>>1];j=a+(i<<8)|0;e=J[e+12>>2];while(1){c=d+1|0;c=c>>>0>j>>>0?c:j;d=c>>>8|0;c=c&255;b:{if(c>>>0>>0){c=a;break b}f=c>>>0>g>>>0;c=f?a:c;d=d+f|0}f=d&65535;d=(f<<8)+c|0;c=L[(e+(c-a<<1)|0)+(P(f-i|0,k)<<1)>>1];if((c|0)!=65535)break a;if(d>>>0>>0)continue;break}J[b>>2]=d;return 65535}J[b>>2]=d;return c|0}function M8(a,b,c){a=a|0;b=b|0;c=c|0;Ab[J[J[a>>2]+76>>2]](a,1,1);Ab[J[J[a>>2]+32>>2]](a,O[b>>3],O[b+8>>3]);Ab[J[J[a>>2]+36>>2]](a,O[b+16>>3],O[b+8>>3]);Ab[J[J[a>>2]+ -36>>2]](a,O[b+16>>3],O[b+24>>3]);Ab[J[J[a>>2]+36>>2]](a,O[b>>3],O[b+24>>3]);Ab[J[J[a>>2]+48>>2]](a);Ab[J[J[a>>2]+32>>2]](a,O[c>>3],O[c+8>>3]);Ab[J[J[a>>2]+36>>2]](a,O[c+16>>3],O[c+8>>3]);Ab[J[J[a>>2]+36>>2]](a,O[c+16>>3],O[c+24>>3]);Ab[J[J[a>>2]+36>>2]](a,O[c>>3],O[c+24>>3]);Ab[J[J[a>>2]+48>>2]](a);Ab[J[J[a>>2]+80>>2]](a,1)}function qy(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;f=c-b|0;if(f>>>0<=2147483631){a:{if(f>>>0<11){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d=a;break a}h=e+8|0;if(f>>> -0>=11){g=f+16&-16;d=g-1|0;d=(d|0)==11?g:d}else d=10;cl(h,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){H[d|0]=K[b|0];d=d+1|0;b=b+1|0;continue}break}H[e+7|0]=0;H[d|0]=K[e+7|0];xb=e+16|0;return}dd(a);B()}function cy(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;f=c-b>>2;if(f>>>0<=1073741807){a:{if(f>>>0<2){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d=a;break a}h=e+8|0;if(f>>>0>=2){g=f+4& --4;d=g-1|0;d=(d|0)==2?g:d}else d=1;Fi(h,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){J[d>>2]=J[b>>2];d=d+4|0;b=b+4|0;continue}break}J[e+4>>2]=0;J[d>>2]=J[e+4>>2];xb=e+16|0;return}dd(a);B()}function cj(a){var b=0,c=0,d=0;a:{b:{c:{c=J[a+128>>2];switch(c|0){case 0:break a;case 1:break b;default:break c}}while(1){b=d;d=b+1|0;c=c>>1;if(c>>>0>1)continue;break}if(b>>>0<14)break b;c=J[a+120>>2];b=J[c>> -2];J[b+20>>2]=41;Ab[J[b>>2]](c)}c=d<<4;b=J[a+124>>2];d:{if(J[a+108>>2]){b=J[((b<<2)+a|0)+92>>2]+(c<<2)|0;J[b>>2]=J[b>>2]+1;break d}b=J[((b<<2)+a|0)+60>>2];bj(a,J[b+(c<<2)>>2],H[(b+c|0)+1024|0])}if(d)bj(a,J[a+128>>2],d);J[a+128>>2]=0;gE(a,J[a+136>>2],J[a+132>>2]);J[a+132>>2]=0}}function Vla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;b=J[c+68>>2];a:{if(!b)break a;a=J[c+80>>2];c=0;if(b>>>0>=4){e=b&-4;while(1){d=P(c,20)+a|0;I[d+12>>1]=L[d+12>>1]&65519;d=P(c|1,20)+a|0;I[d+12>>1]=L[d+12>>1]&65519;d=P(c| -2,20)+a|0;I[d+12>>1]=L[d+12>>1]&65519;d=P(c|3,20)+a|0;I[d+12>>1]=L[d+12>>1]&65519;c=c+4|0;f=f+4|0;if((e|0)!=(f|0))continue;break}}b=b&3;if(!b)break a;while(1){e=P(c,20)+a|0;I[e+12>>1]=L[e+12>>1]&65519;c=c+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}return 0}function Vga(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;var h=0,i=0,j=0;h=xb-16|0;xb=h;d=J[a+472>>2];a:{if(J[d+36>>2]){Mg(d+32|0,0,(J[f>>2]<<2)+e|0,0,1,J[d+40>>2]);J[d+36>>2]=0;a=1;break a}i=J[d+44>>2];j=e;e=J[f>>2];j=j+(e<<2)|0; -J[h+8>>2]=J[j>>2];e=g-e|0;g=e>>>0>i>>>0?i:e;i=g>>>0<2;if(i){J[d+36>>2]=1;e=J[d+32>>2]}else e=J[j+4>>2];J[h+12>>2]=e;Ab[J[d+12>>2]](a,b,J[c>>2],h+8|0);a=i?g:2}J[f>>2]=a+J[f>>2];J[d+44>>2]=J[d+44>>2]-a;if(!J[d+36>>2])J[c>>2]=J[c>>2]+1;xb=h+16|0}function Av(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=J[a+736>>2];a:{if(!d){c=vj(a,0);if(c)break a;d=J[a+736>>2]}c=6;if(L[a+14>>1]>>0)break a;b:{if(b){f=J[a+100>>2];g=J[d+12>>2];d=J[g+16>>2]+P(b,12)|0;c=Ab[J[J[a+540>>2]+144>>2]](a,L[d-8>>1], -e+12|0)|0;if(c)break a;c=J[a+24>>2];if(c)Ab[J[f+8>>2]](f,c);J[a+24>>2]=J[e+12>>2];c=op(a,J[g>>2],J[d-12>>2]);if(c){c=(c|0)!=-1?c:0;break a}c=0;break b}c=op(a,0,0)}I[a+6>>1]=b;J[a+8>>2]=J[a+8>>2]&-32769}xb=e+16|0;return c|0}function wu(a,b,c,d){var e=0,f=0;f=169776;e=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if(e)e=(e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24))+a|0;else e=170447;b=bf(e,b,d);a:{if(!b)break a;d=a;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);d=d+(a<<24|(a&65280)<<8|(a>>>8&65280| -a>>>24))|0;a=K[b|0]|K[b+1|0]<<8;a=d+((a<<8|a>>>8)&65535)|0;b=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);if((b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))>>>0<=c>>>0)break a;f=(a+(c<<2)|0)+4|0}return f}function sN(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;J[c>>2]=-1;J[d>>2]=-1;f=L[a+340>>1];if(f){h=J[a+356>>2];a=0;while(1){e=P(a,20)+h|0;a:{if(L[e+6>>1]!=(b|0)|!L[e+8>>1])break a;b:{c:switch(L[e>>1]-1|0){case 2:if(L[e+2>>1]>1)break a;g=c;if(L[e+4>>1]==1033|J[c>>2]==-1)break b;break a;case 0:break c; -default:break a}if(L[e+2>>1])break a;g=d;if(!L[e+4>>1])break b;if(J[d>>2]!=-1)break a}J[g>>2]=a}a=a+1|0;if((f|0)!=(a|0))continue;break}}return(J[d>>2]&J[c>>2])>=0|0}function Una(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+96>>2];c=J[a+712>>2];a:{if(K[c+24|0]==2){c=xf(be(J[d+4>>2],9005),9996,0);if(!c)break a;c=J[c+4>>2];if(!c)break a;return Ab[c|0](a,b)|0}d=xf(d,10901,1);if(!d|!J[c+20>>2])break a;while(1){a=L[J[c+1188>>2]+(e<<1)>>1];b:{c:{if(a>>>0>=391){a=a-391|0;if(a>>>0>=M[c+1356>>2])break b;a=J[J[c+ -1360>>2]+(a<<2)>>2];break c}a=Ab[J[d+20>>2]](a)|0}if(!a)break b;if(!fc(b,a))break a}e=e+1|0;if(e>>>0>2])continue;break}e=0}return e|0}function SW(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{d=J[a+4>>2];b:{if(!d){b=(b|0)<=1E3?1E3:b;J[a+8>>2]=b;c=Qb(b<<2);J[a+16>>2]=0;J[a+4>>2]=c;break b}c=J[a+8>>2];e=J[a+16>>2]+b|0;if(c>>>0>=e>>>0)break a;b=P(b,10);b=(b|0)<=1048576?1048576:b;while(1){c=c>>>0>10485760?b+c|0:c<<1;if(e>>>0>c>>>0)continue;break}J[a+8>>2]=c;b=ic(d,c<<2);if(b){J[a+4>>2]=b;c=b+(J[a+16>>2]<< -2)|0;break b}b=Qb(J[a+8>>2]<<2);c=J[a+4>>2];b=Mb(b,c,J[a+16>>2]<<2);Kb(c);J[a+4>>2]=b;c=b+(J[a+16>>2]<<2)|0}J[a+12>>2]=c}}function Nj(a){var b=0,c=0,d=0;if(!a){a=J[194100];if(a)b=Nj(a);a=J[194062];if(a)b=Nj(a)|b;a=J[194973];if(a)while(1){if(J[a+20>>2]!=J[a+28>>2])b=Nj(a)|b;a=J[a+56>>2];if(a)continue;break}return b}d=J[a+76>>2]<0;a:{b:{if(J[a+20>>2]==J[a+28>>2])break b;Ab[J[a+36>>2]](a,0,0)|0;if(J[a+20>>2])break b;b=-1;break a}b=J[a+8>>2];c=J[a+4>>2];if((b|0)!=(c|0)){b=c-b|0;Ab[J[a+40>>2]](a,b,b>> -31,1)|0}b=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(d)break a}return b}function Ke(a,b,c,d,e,f){var g=0,h=0,i=0;a:{if(f&64){e=f+-64|0;f=b;d=e&31;if((e&63)>>>0>=32){e=f<>>32-d|c<>>0>=32){i=d<>>32-g|e<>>0>=32){e=0;d=c>>>d|0}else{e=c>>>d|0;d=((1<>>d}d=h|d;e=e|i;h=b;g=f&31;if((f&63)>>>0>=32){i=b<>>32-g|c<>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e}function Faa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=xb-16|0;xb=e;f=c;g=J[a+584>>2];c=J[g+840>>2];d=(f|0)/(c|0)|0;if((f|0)!=(P(d,c)|0))yc(J[a+628>>2],J[a>>2],280141,0);if(!(K[a+13|0]&4)){c=J[a+60>>2];f=J[a+472>>2];d=c>>>0>>0?c-f|0:d}c=1;a:{if((d|0)<=0)break a;J[e+12>>2]=b;c=0;if((zC(g,e+12|0)|0)!=1)break a;while(1){if(d>>>0<2){c=1;break a}J[a+472>>2]=J[a+472>>2]+1;b=J[g+840>>2]+b|0;J[e+12>>2]=b;d=d-1| -0;if((zC(g,e+12|0)|0)==1)continue;break}}xb=e+16|0;return c|0}function CU(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=xb-16|0;xb=e;a:{b:{c:{d:{if((a|0)!=(b|0))e:{f:{f=K[a|0];if((f|0)!=45)break f;a=a+1|0;if((b|0)!=(a|0))break f;break e}h=J[194954];J[194954]=0;a=Op(a,e+12|0,d,Vd());d=zb;g=J[194954];g:{if(g){if(J[e+12>>2]!=(b|0))break g;if((g|0)==68)break c;break d}J[194954]=h;if(J[e+12>>2]==(b|0))break d}}J[c>>2]=4;a=0;break a}if(!d&a>>>0<=65535)break b}J[c>>2]=4;a=65535;break a}a=(f|0)== -45?0-a|0:a}xb=e+16|0;return a&65535}function HU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=xb-16|0;xb=e;a:{b:{c:{if((a|0)!=(b|0)){g=J[194954];J[194954]=0;d=Qw(a,e+12|0,d,Vd());a=zb;f=J[194954];d:{if(f){if(J[e+12>>2]!=(b|0))break d;if((f|0)==68)break b;break c}J[194954]=g;if(J[e+12>>2]==(b|0))break c}}J[c>>2]=4;b=0;break a}if((a|0)<0&d>>>0<2147483648|(a|0)<-1|(d>>>0>2147483647&(a|0)>=0|(a|0)>0))break b;b=d;break a}J[c>>2]=4;b=2147483647;if(!!d&(a|0)>=0|(a|0)>0)break a;b=-2147483648}xb=e+16| -0;return b|0}function me(a,b,c){var d=0,e=0,f=0;a:{if(!a)break a;d=I[a+2>>1];if((d|0)<=0)break a;a=J[a+4>>2];if(d>>>0>=4){f=d&-4;while(1){J[a>>2]=J[a>>2]+b;J[a+4>>2]=J[a+4>>2]+c;J[a+8>>2]=J[a+8>>2]+b;J[a+16>>2]=J[a+16>>2]+b;J[a+24>>2]=J[a+24>>2]+b;J[a+12>>2]=J[a+12>>2]+c;J[a+20>>2]=J[a+20>>2]+c;J[a+28>>2]=J[a+28>>2]+c;a=a+32|0;e=e+4|0;if((f|0)!=(e|0))continue;break}}d=d&3;if(!d)break a;e=0;while(1){J[a>>2]=J[a>>2]+b;J[a+4>>2]=J[a+4>>2]+c;a=a+8|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}}function Hpa(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;b=J[a+20>>2];J[e>>2]=0;J[d>>2]=0;f=J[b+116>>2];g=J[f+56>>2];h=J[b+120>>2];f=J[f+12>>2];if(f)f=J[f+36>>2];else f=0;h=Ab[g|0](b,h,c,d,e,f)|0;if(h){c=J[a+20>>2];a:{if(c){b=J[d>>2];f=J[c+28>>2];g=J[a+28>>2];if((f|0)!=(g|0))b=Lpa(Kpa(g,g>>31,b,b>>31),zb,f,f>>31);J[d>>2]=b;b=J[e>>2];c=J[c+32>>2];a=J[a+32>>2];if((c|0)==(a|0))break a;b=Lpa(Kpa(a,a>>31,b,b>>31),zb,c,c>>31);break a}b=J[e>>2]}J[e>>2]=b}return h|0}function Gpa(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;b=J[a+20>>2];J[e>>2]=0;J[d>>2]=0;f=J[b+116>>2];g=J[f+60>>2];h=J[b+120>>2];f=J[f+12>>2];if(f)f=J[f+40>>2];else f=0;h=Ab[g|0](b,h,c,d,e,f)|0;if(h){c=J[a+20>>2];a:{if(c){b=J[d>>2];f=J[c+28>>2];g=J[a+28>>2];if((f|0)!=(g|0))b=Lpa(Kpa(g,g>>31,b,b>>31),zb,f,f>>31);J[d>>2]=b;b=J[e>>2];c=J[c+32>>2];a=J[a+32>>2];if((c|0)==(a|0))break a;b=Lpa(Kpa(a,a>>31,b,b>>31),zb,c,c>>31);break a}b=J[e>>2]}J[e>>2]=b}return h|0}function rW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0; -e=xb-32|0;xb=e;J[e+16>>2]=b;d=J[a+48>>2];J[e+20>>2]=c-((d|0)!=0);g=J[a+44>>2];J[e+28>>2]=d;J[e+24>>2]=g;a:{b:{d=mb(J[a+60>>2],e+16|0,2,e+12|0)|0;if(d){J[194954]=d;d=-1}else d=0;if(d)b=32;else{d=J[e+12>>2];if((d|0)>0)break b;b=d?32:16}J[a>>2]=b|J[a>>2];break a}f=d;g=J[e+20>>2];if(g>>>0>=d>>>0)break a;f=J[a+44>>2];J[a+4>>2]=f;J[a+8>>2]=f+(d-g|0);if(J[a+48>>2]){J[a+4>>2]=f+1;H[(b+c|0)-1|0]=K[f|0]}f=c}xb=e+32|0;return f|0}function c7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=(J[c+ -8>>2]+J[c+16>>2]|0)+32|0;J[e+12>>2]=f;J[e+8>>2]=94;J[a+8>>2]=J[a+8>>2]+f;J[a+12>>2]=J[a+12>>2]+1;I[a+16>>1]=L[a+16>>1]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],c+16|0,4);b=J[c+8>>2];if(b)Lb(J[a+4>>2],J[d+8>>2],b);b=J[c+16>>2];if(b)Lb(J[a+4>>2],J[d+8>>2]+J[c+8>>2]|0,b);xb=e+16|0}function b7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=(J[c+8>>2]+J[c+16>>2]|0)+32| -0;J[e+12>>2]=f;J[e+8>>2]=93;J[a+8>>2]=J[a+8>>2]+f;J[a+12>>2]=J[a+12>>2]+1;I[a+16>>1]=L[a+16>>1]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],c+16|0,4);b=J[c+8>>2];if(b)Lb(J[a+4>>2],J[d+8>>2],b);b=J[c+16>>2];if(b)Lb(J[a+4>>2],J[d+8>>2]+J[c+8>>2]|0,b);xb=e+16|0}function bT(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{c=J[a+28>>2];if(K[c+44|0])break b;d=pw(c,J[b>>2],J[b+4>>2]);if(!d)break b; -a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=d;return}d=J[b+12>>2];f=J[b+8>>2];c:{b=J[c+12>>2];if((I[b+22>>1]+I[b+58>>1]|0)+1>>>0>M[b+4>>2]){b=ie(b,1,0);if(b)break c}a=J[c+20>>2];if(K[c+45|0]){b=J[a+8>>2];c=I[a+2>>1];e=J[a+4>>2]+(c<<3)|0;J[e+4>>2]=d>>10;J[e>>2]=f>>10;H[b+c|0]=1}I[a+2>>1]=L[a+2>>1]+1;return}a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=b}}function yu(a,b){var c=0,d=0,e=0;if(b){c=J[b+608>>2];if(c){d=J[c+28>>2];e=b+640|0;if(J[e>>2])rd(c,e);c=J[b+636>>2];if(c)Ab[J[d+8>>2]](d,c);J[b+640>>2]=0;J[b+ -632>>2]=0;J[b+636>>2]=0;J[b+624>>2]=0;J[b+628>>2]=0;J[b+616>>2]=0;J[b+620>>2]=0;J[b+608>>2]=0;J[b+612>>2]=0}c=J[b+644>>2];if(c)Ab[J[a+8>>2]](a,c);J[b+644>>2]=0;c=J[b+572>>2];if(c)Ab[J[a+8>>2]](a,c);J[b+572>>2]=0;c=J[b+580>>2];if(c)Ab[J[a+8>>2]](a,c);J[b+580>>2]=0;c=J[b+592>>2];if(c)Ab[J[a+8>>2]](a,c);J[b+592>>2]=0}}function fn(a,b){var c=0,d=0,e=0,f=0;a:{e=a+24|0;c=J[e>>2];if(!c)break a;d=e;while(1){f=M[c+16>>2]>>0;d=f?d:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(e|0)|M[d+16>>2]>b>>> -0)break a;b:{c:{d:{e:{f:{b=J[d+20>>2];switch((Ab[J[J[b>>2]+8>>2]](b)|0)-1|0){case 4:break b;case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break a}}J[J[a>>2]+72>>2]=b;return}J[J[a>>2]+84>>2]=b;return}J[J[a>>2]+76>>2]=b;return}J[J[a>>2]+80>>2]=b;return}J[J[a>>2]+88>>2]=b}}function gN(a,b){a=a|0;b=b|0;var c=0,d=0;c=Ab[J[a+516>>2]](a,1835104368,b,0)|0;a:{if(c)break a;d=a+260|0;c=Nc(b,95360,d);if(c)break a;I[a+290>>1]=0;I[a+282>>1]=0;I[a+284>>1]=0;I[a+286>>1]=0;I[a+288>>1]=0;I[a+ -274>>1]=0;I[a+276>>1]=0;I[a+278>>1]=0;I[a+280>>1]=0;I[a+266>>1]=0;I[a+268>>1]=0;I[a+270>>1]=0;I[a+272>>1]=0;b:{if(J[a+260>>2]<65536)break b;c=Nc(b,95376,d);if(c)break a;if(L[a+280>>1]<=63)I[a+280>>1]=64;if(L[a+276>>1]<65532)break b;I[a+276>>1]=65531}c=0}return c|0}function dla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;J[d+12>>2]=b;c=33;a:{if(!a)break a;c=6;e=d+12|0;b:{if(!e)break b;b=a+20|0;c=J[a+16>>2];a=b+(c<<2)|0;c:{if((c|0)<=0)break c;while(1){if(!fc(J[J[J[b>>2]>>2]+8>>2],227087))break c; -b=b+4|0;if(a>>>0>b>>>0)continue;break}}c=11;if((a|0)==(b|0))break a;c=7;a=J[b>>2];f=J[J[a>>2]+32>>2];if(!f)break b;a=Ab[f|0](a,11331)|0;if(!a)break b;a=J[a>>2];if(!a)break b;c=Ab[a|0](J[b>>2],226327,e,0)|0}}xb=d+16|0;return c|0}function Rca(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0;if(!(!f|!e)){d=J[a+60>>2];a=L[a+26>>1];j=a<<1;c=e-1|0;k=e&1;l=P(a,e)<<1;m=h<<2;while(1){a:{if(!k){h=e;a=i;break a}J[b>>2]=J[J[(K[i+1|0]<<2)+d>>2]>>2];b=b+4|0;h=c;a=i+j| -0}if((e|0)!=1)while(1){J[b>>2]=J[J[(K[a+1|0]<<2)+d>>2]>>2];a=a+j|0;J[b+4>>2]=J[J[(K[a+1|0]<<2)+d>>2]>>2];b=b+8|0;a=a+j|0;h=h-2|0;if(h)continue;break}i=(i+l|0)+g|0;b=b+m|0;f=f-1|0;if(f)continue;break}}}function MH(a){var b=0,c=0;J[a+68>>2]=-57005;a:{b=J[a+76>>2];if(b){J[195395]=0;$(636,b+24|0,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break a;Kb(Ud(b));J[a+76>>2]=0}b=J[a+100>>2];if(b){Kb(b);J[a+100>>2]=0}J[a+32>>2]=-57005;J[a+84>>2]=0;J[a+80>>2]=J[a+80>>2]&1;b=J[a+40>>2];if(b){J[195395]=0;$(636,b+24| -0,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break a;Kb(Ud(b));J[a+40>>2]=0}b=J[a- -64>>2];if(b){Kb(b);J[a+64>>2]=0}J[a+48>>2]=0;J[a+44>>2]=J[a+44>>2]&1;return}ga(0)|0;_b();B()}function P6(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;J[f+8>>2]=28;J[f+4>>2]=41;J[a+8>>2]=J[a+8>>2]+28;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],f+4|0,4);Lb(J[a+4>>2],f+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],c,4);b=(D(Q(O[d>>3])),v(2));H[f+12|0]=b;H[f+13|0]=b>>>8;H[f+14|0]=b>>>16;H[f+15| -0]=b>>>24;Lb(J[a+4>>2],f+12|0,4);b=(D(Q(O[e>>3])),v(2));H[f+12|0]=b;H[f+13|0]=b>>>8;H[f+14|0]=b>>>16;H[f+15|0]=b>>>24;Lb(J[a+4>>2],f+12|0,4);xb=f+16|0}function $N(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=a+20|0;if(e>>>0>M[b+160>>2])Bc(b,8);c=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!(!(d>>>0<20|d>>>0>J[b+160>>2]-a>>>0)&d-20>>>1>>>0>=c>>>0))Bc(b,8);if(!(!c| -J[b+164>>2]<=0))while(1){if(M[b+172>>2]<=(K[e+1|0]|K[e|0]<<8)>>>0)Bc(b,16);e=e+2|0;c=c-1|0;if(c)continue;break}return 0}function qW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-16|0;xb=d;J[a+32>>2]=c;e=a,f=Tb(c,4,0,b,0,d+12|0),J[e+24>>2]=f;a:{b:{if(J[d+12>>2])break b;e=a,f=Tb(c,4,0,b,0,d+12|0),J[e+28>>2]=f;if(J[d+12>>2])break b;J[a+20>>2]=0;J[a+16>>2]=b;J[a+8>>2]=0;J[a+12>>2]=-559038737;J[a>>2]=0;J[a+4>>2]=0;b=J[7591];J[a+36>>2]=J[7590];J[a+40>>2]=b;b=J[7593];J[a+44>>2]=J[7592];J[a+48>>2]=b;a=0; -break a}b=J[a+24>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+24>>2]=0;a=J[d+12>>2]}xb=d+16|0;return a|0}function Ly(a,b){var c=0,d=0,e=0;d=xb-16|0;xb=d;c=J[a>>2]+1|0;J[d+12>>2]=c;a:{if(b>>>0<=c>>>0)break a;while(1){ae(d+12|0,b);c=J[d+12>>2];if(c>>>0>=b>>>0)break a;b:{e=K[c|0];if((e-48&255)>>>0<=9)break b;switch(e-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break b;default:break a}}c=c+1|0;J[d+12>>2]=c;if(b>>>0>c>>>0)continue;break}}c:{if(b>>>0>c>>>0){b=3;if(K[c| -0]!=62)break c}c=c+1|0;b=0}J[a>>2]=c;xb=d+16|0;return b}function HE(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;g=K[c|0]|K[c+1|0]<<8;e=J[a+16>>2];h=K[c+4|0]|K[c+5|0]<<8;k=J[b+336>>2];f=J[a+20>>2];d=K[c+2|0]|K[c+3|0]<<8;c=f-(d+(K[c+6|0]|K[c+7|0]<<8)|0)|0;i=(c|0)>0?c:0;j=f-d|0;a:{if((i|0)>=(j|0))break a;c=g+h|0;e=c>>>0>>0?c:e;if(g>>>0>=e>>>0)break a;d=i;while(1){h=d-i|0;c=g;while(1){f=fg(b,c-g|0,h);if((f|0)!=(k|0))Pg(a,c,d,f);c=c+1|0;if((e|0)!=(c|0))continue;break}d=d+1|0;if((j| -0)>(d|0))continue;break}}}function $9(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];if(!b){b=Qb(148);J[a+584>>2]=b;if(!b){Ob(J[a+628>>2],264695,264012,0);return 0}J[b+96>>2]=0;J[b+116>>2]=0;kr(a);b=J[a+584>>2]}a:{if(!J[b+116>>2]){d=b;b=Qb(40952);J[d+116>>2]=b;if(!b)break a;a=255;while(1){c=b+(a<<3)|0;H[c+7|0]=a;H[c+6|0]=a;I[c+4>>1]=1;J[c>>2]=0;c=a-1|0;d=b+(c<<3)|0;H[d+7|0]=c;H[d+6|0]=c;I[d+4>>1]=1;J[d>>2]=0;a=a-2|0;if(c)continue;break}Pd(b+2048|0,0,16)}return 1}Ob(J[a+628>>2],288960,265234,0);return 0}function Mla(){var a= -0,b=0,c=0;a=J[194116];a:{if(a)break a;while(1){a=Xt();bu(a,925);$t(a,926);_t(a,927);Zt(a,928);b:{if(!J[a+4>>2])break b;b=J[a+36>>2];c:{if(!b)break c;c=J[b+16>>2];if(!c)break c;b=J[a+32>>2];if(b)b=J[b+16>>2];else b=0;Ab[c|0](b)}J[a+28>>2]=929;b=J[a+32>>2];if(b)J[b+16>>2]=0;b=J[a+36>>2];if(!b)break b;J[b+16>>2]=0}if(J[a+4>>2])J[a+4>>2]=0;b=J[194116];a=a?a:774844;J[194116]=b?b:a;if(!b)break a;$F(a);a=J[194116];if(!a)continue;break}}return a|0}function y6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16| -0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>2;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=86;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,2);Lb(J[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function v6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+ -12>>2]=e>>2;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=87;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,2);Lb(J[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function v$(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;if(b){i=J[d>>2]-P(J[d+4>>2],a)|0;while(1){f=L[c+2>>1]; -a:{if(!f)break a;d=P(I[c>>1],3)+i|0;e=K[c+4|0];g=0;a=f;h=a&7;if(h)while(1){H[d|0]=e;d=d+3|0;a=a-1|0;g=g+1|0;if((g&65535)!=(h|0))continue;break}if(f>>>0<8)break a;while(1){H[d+21|0]=e;H[d+18|0]=e;H[d+15|0]=e;H[d+12|0]=e;H[d+9|0]=e;H[d+6|0]=e;H[d+3|0]=e;H[d|0]=e;d=d+24|0;a=a-8|0;if(a&65535)continue;break}}c=c+6|0;b=b-1|0;if(b)continue;break}}}function tG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=xb-32|0;xb=d;e=J[b+88>>2];c=K[a+2|0]|K[a+3|0]<<8;if(c)c=((c<<8|c>>>8)&65535)+a|0;else c=169776;f=ld(c,J[J[e+ -80>>2]+P(J[e+64>>2],20)>>2]);if((f|0)!=-1){c=J[b+88>>2];if(J[c+156>>2]){g=J[b+80>>2];J[d+16>>2]=J[c+64>>2];nc(c,g,130369,d+16|0)}Bk(a+4|0,b,a,a+6|0,J[e+88>>2]+P(J[e+64>>2],20)|0);a=J[b+88>>2];if(J[a+156>>2]){b=J[b+80>>2];J[d>>2]=J[a+64>>2];nc(a,b,130397,d)}J[e+64>>2]=J[e+64>>2]+1}xb=d+32|0;return(f|0)!=-1|0}function t6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>2;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=89;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>> -2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,2);Lb(J[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function cQ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(d>>>0>>0){f=xb-16|0;xb=f;e=b-d|0;if(e){b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(K[a+11|0]>>>7|0)d=J[a+4>> -2];else d=K[a+11|0]&127;if(b-d>>>0>>0)Bm(a,b,d+(e-b|0)|0,d,d,0);if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;Jw(b+(d<<2)|0,e,c);c=a;a=d+e|0;sg(c,a);J[f+12>>2]=0;J[b+(a<<2)>>2]=J[f+12>>2]}xb=f+16|0;return}c=a;if(K[a+11|0]>>>7|0)a=J[a>>2];Pp(c,a,b)}function T8(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0;h=xb-48|0;xb=h;if(!K[a+64|0]){Ab[J[J[a>>2]+28>>2]](a);k=J[a+8>>2];Ab[J[J[k>>2]+64>>2]](h+32|0,k);Ab[J[J[a>>2]+32>>2]](a,O[h+32>>3],O[h+40>>3])}j=O[a+48>>3];i=j*b;b=O[a+16>> -3];O[h+32>>3]=i+b;i=O[a+56>>3];l=i*c;c=O[a+24>>3];O[h+40>>3]=l+c;O[h+24>>3]=c+i*e;O[h+16>>3]=b+j*d;O[h+8>>3]=c+i*g;O[h>>3]=b+j*f;a=J[a+4>>2];Ab[J[J[a>>2]+328>>2]](a,h+32|0,h+40|0,h+16|0,h+24|0,h,h+8|0)|0;xb=h+48|0}function S8(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0;h=xb-48|0;xb=h;O[h+16>>3]=g;O[h+24>>3]=f;if(!K[a+64|0]){Ab[J[J[a>>2]+28>>2]](a);j=J[a+8>>2];Ab[J[J[j>>2]+64>>2]](h+32|0,j);Ab[J[J[a>>2]+32>>2]](a,O[h+32>>3],O[h+40>>3])}f=O[a+48>>3];g=f*b;b=O[a+16>>3];g=g+ -b;O[h+32>>3]=g;k=O[a+56>>3];i=k*c;c=O[a+24>>3];i=i+c;O[h+40>>3]=i;a=J[a+4>>2];O[h+8>>3]=b+f*d-g;O[h>>3]=c+k*e-i;Ab[J[J[a>>2]+336>>2]](a,h+32|0,h+40|0,h+8|0,h,h+24|0,h+16|0)|0;xb=h+48|0}function E6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>2;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=85;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+ -4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,2);Lb(J[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function Dga(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;var h=0,i=0;e=J[a+452>>2];i=e+24|0;g=J[e+24>>2];a:{if(g){h=J[e+12>>2];break a}h=Ab[J[J[a+4>>2]+28>>2]](a,J[e+8>>2],J[e+20>>2],J[e+16>>2],1)|0;J[e+12>>2]=h;g=J[e+24>>2]}Ab[J[J[a+472>>2]+4>>2]](a,b,c,d,h,i,J[e+16>>2]);b=J[e+24>>2];if(b>>>0>g>>>0){b=b-g|0;Ab[J[J[a+480>>2]+4>>2]](a, -J[e+12>>2]+(g<<2)|0,0,b);J[f>>2]=b+J[f>>2];b=J[e+24>>2]}a=J[e+16>>2];if(a>>>0<=b>>>0){J[e+24>>2]=0;J[e+20>>2]=a+J[e+20>>2]}}function C6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>2;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=88;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+ -4>>2],b,2);Lb(J[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function z6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>3;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=3;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4); -b=b+8|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function x6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>3;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=4;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0))continue; -break}xb=d+16|0}function u6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>3;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=6;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function F6(a,b, -c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>3;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=2;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function D6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0; -d=xb-16|0;xb=d;e=J[c+4>>2]-J[c>>2]|0;J[d+12>>2]=e>>3;e=e+28|0;J[d+8>>2]=e;J[d+4>>2]=5;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+4|0,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],d+12|0,4);b=J[c>>2];c=J[c+4>>2];if((b|0)!=(c|0))while(1){Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0))continue;break}xb=d+16|0}function Cha(a){a=a|0;var b=0,c=0;b=J[a+20>>2];a:{if(!(J[a+64>>2]|b-205>>>0>1)){if(M[a+ -140>>2]>2]){b=J[a>>2];J[b+20>>2]=69;Ab[J[b>>2]](a)}Ab[J[J[a+440>>2]+4>>2]](a);J[a+20>>2]=210;break a}b:switch(b-207|0){case 0:J[a+20>>2]=210;break a;case 3:break a;default:break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}c:{while(1){b=J[a+456>>2];if(J[b+20>>2])break c;if(Ab[J[b>>2]](a)|0)continue;break}return 0}Ab[J[J[a+24>>2]+24>>2]](a);Ll(a);return 1}function ypa(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=Q(0),h=Q(0),i=0;b=xb-32|0;xb=b;J[b+16>>2]=e;J[b+12>> -2]=d;d=J[a+20>>2];e=J[d+28>>2];if(e)g=Q(Q(J[a+28>>2])/Q(e|0));else g=Q(0);N[b+20>>2]=g;e=J[d+32>>2];if(e){g=Q(e|0);h=Q(Q(J[a+32>>2])/g);g=Q(Q(Q(N[a+56>>2]-N[d+56>>2])*Q(J[a+28>>2]))/g)}else g=Q(0);N[b+28>>2]=g;N[b+24>>2]=h;a=J[d+116>>2];e=J[a+88>>2];f=J[d+120>>2];i=b+12|0;a=J[a+12>>2];if(a)a=J[a+68>>2];else a=0;Ab[e|0](d,f,c,775440,i,a);xb=b+32|0}function Dj(a,b){var c=0,d=0,e=0;d=xb-16|0;xb=d;c=d+12|0;a=J[a+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[195395]=0;a=_(3551,c|0)|0;e=J[195395];J[195395]= -0;a:{b:{if((e|0)==1)break b;J[195395]=0;ha(3665,a|0,763968,763994,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break b;a=J[c>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)Ab[J[J[a>>2]+8>>2]](a);xb=d+16|0;break a}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return b}function xha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+20>>2];if((d|0)!=206){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}e=J[a+116>>2];f=J[a+140>>2];if(e>>>0<=f>>>0){b= -J[a>>2];J[b+20>>2]=126;Ab[J[b+4>>2]](a,-1);return 0}d=J[a+8>>2];if(d){J[d+8>>2]=e;J[d+4>>2]=f;Ab[J[d>>2]](a)}d=c;c=P(J[a+324>>2],J[a+316>>2]);if(d>>>0>>0){d=J[a>>2];J[d+20>>2]=24;Ab[J[d>>2]](a)}if(!(Ab[J[J[a+448>>2]+12>>2]](a,b)|0))return 0;J[a+140>>2]=c+J[a+140>>2];return c|0}function rO(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(b>>>0>65535)break a;c=J[a+16>>2];a=c+518|0;c=c+6|0;b:{if(b>>>0<=255){c=c+(b<<1&510)|0;if(!(K[c|0]<<8|K[c+1|0]))break b;break a}c=c+(b>>>7&33554430)|0;c=K[c|0]<<8|K[c+1|0]&248; -if(!c)break a;a=a+c|0}b=(b&255)-(K[a+1|0]|K[a|0]<<8)|0;if(b>>>0>=(K[a+3|0]|K[a+2|0]<<8)>>>0)break a;c=K[a+7|0]|K[a+6|0]<<8;if(!c)break a;b=(c+(a+6|0)|0)+(b<<1)|0;b=K[b|0]<<8|K[b+1|0];if(!b)break a;d=b+(K[a+5|0]|K[a+4|0]<<8)&65535}return d|0}function gw(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a>>2];if(e){f=J[(J[a+24>>2]+P(b,204)|0)+200>>2];a=J[a+8>>2];while(1){b=J[a+24>>2];if(b){d=J[a+16>>2];c=J[b+8>>2];a:{if(d&512)break a;c=J[b+12>>2]+J[b+8>>2]|0;if(d&1024)break a;d=J[a+28>>2]-J[b>>2]|0;if((d|0)<=0){c=J[b+ -8>>2]+Rb(d,f)|0;break a}c=J[b+12>>2];g=J[b+8>>2];b=J[b+4>>2];if((b|0)<=(d|0)){c=Rb(d-b|0,f)+(c+g|0)|0;break a}c=hc(d,c,b)+g|0}J[a+36>>2]=c;J[a+16>>2]=J[a+16>>2]|32}a=a+40|0;e=e-1|0;if(e)continue;break}}}function Oe(a,b,c,d,e){var f=0,g=0;if((c|0)<(e|0)){if(!Od(a,b,c,e))return-1;c=J[a+12>>2];b=J[a+8>>2]}g=e<<2;c=c-e|0;f=J[g+249728>>2]&b>>c;if((f|0)>J[d+g>>2])while(1){if((c|0)<=0){if(!Od(a,b,c,1))return-1;c=J[a+12>>2];b=J[a+8>>2]}c=c-1|0;f=b>>>c&1|f<<1;e=e+1|0;if((f|0)>J[(e<<2)+d>>2])continue;break}J[a+ -12>>2]=c;J[a+8>>2]=b;if((e|0)>=17){a=J[a+16>>2];b=J[a>>2];J[b+20>>2]=121;Ab[J[b+4>>2]](a,-1);return 0}return K[(J[d+140>>2]+(J[((e<<2)+d|0)+72>>2]+f|0)|0)+17|0]}function mka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-16|0;xb=c;a:{b:{c:{if(!a)break c;d=ac(b);if(d>>>0>=2147483632)break a;d:{if(d>>>0<=10){H[c+15|0]=d;e=c+4|0;break d}f=(d|15)+1|0;e=Pb(f);J[c+12>>2]=f|-2147483648;J[c+4>>2]=e;J[c+8>>2]=d}g=Mb(e,b,d)+d|0,h=0,H[g|0]=h;J[195395]=0;xF(a,c+4|0);a=J[195395];J[195395]=0;if((a|0)==1)break b; -if(H[c+15|0]>=0)break c;Kb(J[c+4>>2])}xb=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)Kb(J[c+4>>2]);ba(a|0);B()}dd(c+4|0);B()}function lt(a){a=a|0;var b=0,c=0,d=0,e=0;b=K[a|0]|K[a+1|0]<<8;if(!b)return 2;c=a+3|0;d=K[a+2|0];b=(b<<8|b>>>8)&65535;e=P(d,b+1|0);a=0;a:{b:switch(d-1|0){case 0:a=K[b+c|0];break a;case 1:a=(b<<1)+c|0;a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535;break a;case 2:a=P(b,3)+c|0;a=K[a+1|0]<<8|K[a|0]<<16|K[a+2|0];break a;case 3:break b;default:break a}a=(b<<2)+c|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2| -0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}return(a+e|0)+2|0}function ih(a){a=a|0;var b=0;J[a>>2]=241712;b=J[a+996>>2];if(b)Kb(b);b=J[a+1028>>2];if(b)Kb(b);b=J[a+1032>>2];if(b)Kb(b);b=J[a+1036>>2];if(b)Kb(b);b=J[a+1040>>2];if(b)Kb(b);b=J[a+1044>>2];if(b)Kb(b);b=J[a+1020>>2];if(b)Kb(b);b=J[a+1080>>2];if(b)Kb(b);b=J[a+1084>>2];if(b)Kb(b);J[a>>2]=234140;J[195395]=0;_(1097,a|0)|0;b=J[195395];J[195395]=0;a:{if((b|0)!=1){J[195395]=0;_(1098,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break a}ga(0)| -0;_b();B()}return a|0}function h6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;e=J[b+12>>2];c=J[b+8>>2];if(e>>>0>c+3>>>0){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[b+8>>2]=c}J[d+12>>2]=f;a:{if(c+3>>>0>=e>>>0)break a;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+8>>2]=c+4;J[d+8>>2]=e;if(!e)break a;J[a+8>>2]=e+J[a+8>>2];J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+12|0,4);Lb(J[a+4>>2],d+8|0,4);c=J[d+8>>2];if(!c)break a;Lb(J[a+4>>2],J[b+8>>2],c-8|0)}xb=d+16|0}function ty(a,b, -c,d){var e=0,f=0,g=0,h=0;h=J[a>>2];if(h>>>0>>0){f=1;d=d<<1;b=b-h|0;d=b>>>0>d>>>0?d:b;a:{if(!d){b=0;break a}b=0;b:{while(1){c:{d:{e=K[b+h|0];switch(e|0){case 0:case 9:case 10:case 12:case 13:case 32:break c;default:break d}}if(e<<24>>24<0)break b;e=K[e+31104|0];if(e>>>0>15)break b;e=e|f<<4;if(!(f&16)){f=e;break c}H[c+g|0]=e;f=1;g=g+1|0}b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}if((f|0)==1)break a;H[c+g|0]=f<<4;g=g+1|0}J[a>>2]=b+h}return g}function bh(a,b,c){var d=0,e=0;d=(c|0)!=0;a:{b:{c:{if(!(a& -3)|!c)break c;e=b&255;while(1){if((e|0)==K[a|0])break b;c=c-1|0;d=(c|0)!=0;a=a+1|0;if(!(a&3))break c;if(c)continue;break}}if(!d)break a;d=b&255;if(!((d|0)==K[a|0]|c>>>0<4)){d=P(d,16843009);while(1){e=d^J[a>>2];if((e^-1)&e-16843009&-2139062144)break b;a=a+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a}b=b&255;while(1){if((b|0)==K[a|0])return a;a=a+1|0;c=c-1|0;if(c)continue;break}}return 0}function $x(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=xb-16|0;xb=e;a:{b:{c:{d:{if((a|0)!=(b| -0))e:{f:{f=K[a|0];if((f|0)!=45)break f;a=a+1|0;if((b|0)!=(a|0))break f;break e}h=J[194954];J[194954]=0;a=Op(a,e+12|0,d,Vd());d=zb;g=J[194954];g:{if(g){if(J[e+12>>2]!=(b|0))break g;if((g|0)==68)break c;break d}J[194954]=h;if(J[e+12>>2]==(b|0))break d}}J[c>>2]=4;a=0;break a}if(!d)break b}J[c>>2]=4;a=-1;break a}a=(f|0)==45?0-a|0:a}xb=e+16|0;return a|0}function rh(a,b){var c=0,d=0;a:{b:{c:{if((b|0)!=1196445523){c=169776;if((b|0)!=1196643650)break a;c=a+148|0;while(1){b=J[c>>2];if(b)break b;if(!J[a+48>> -2])break c;b=oj(c);if(!b)b=169776;d=J[c>>2];J[c>>2]=d?d:b;if(!d)break b;lg(b);continue}}c=a+152|0;while(1){b=J[c>>2];if(b)break b;if(!J[a+48>>2])break c;b=Fo(c);if(!b)b=169776;d=J[c>>2];J[c>>2]=d?d:b;if(!d)break b;lg(b);continue}}b=169776}a=J[b>>2];a=a?a:169776;c=M[a+16>>2]<4?169776:J[a+12>>2]}return c}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;if(!a)return 35;if(!c)return 6;if(!d)return 6;H[c|0]=0;f=16;a:{if(J[a+16>>2]<=(b|0))break a;if(!(K[a+9|0]&2))return 6;f=6;b:{c:{g=J[a+128>> -2];e=J[g+40>>2];switch(e+2|0){case 0:break a;case 2:break c;default:break b}}e=J[a+96>>2];f=J[J[e>>2]+32>>2];d:{if(!f){e=0;break d}e=Ab[f|0](e,9305)|0;g=J[a+128>>2]}J[g+40>>2]=e?e:-2}if(!e)return 6;f=6;e=J[e>>2];if(!e)break a;f=Ab[e|0](a,b,c,d)|0}return f|0}function Wm(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(a){if(b>>>0<=127)break a;b:{if(!J[J[194998]>>2]){if((b&-128)==57216)break a;break b}if(b>>>0<=2047){H[a+1|0]=b&63|128;H[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344&b>>>0>=55296)){H[a+2|0]=b&63|128;H[a| -0]=b>>>12|224;H[a+1|0]=b>>>6&63|128;return 3}if(b-65536>>>0<=1048575){H[a+3|0]=b&63|128;H[a|0]=b>>>18|240;H[a+2|0]=b>>>6&63|128;H[a+1|0]=b>>>12&63|128;return 4}}J[194954]=25;a=-1}else a=1;return a|0}H[a|0]=b;return 1}function Fma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=K[a|0]|K[a+1|0]<<8;d=(c<<8|c>>>8)&65535;c=K[b|0]|K[b+1|0]<<8;e=(c<<8|c>>>8)&65535;if(d>>>0>>0)return-1;c=1;a:{if(d>>>0>e>>>0)break a;d=K[a+2|0]|K[a+3|0]<<8;d=(d<<8|d>>>8)&65535;e=K[b+2|0]|K[b+3|0]<<8;e=(e<<8|e>>>8)&65535;if(d>>>0>> -0)return-1;if(d>>>0>e>>>0)break a;c=-1;a=K[a+4|0]|K[a+5|0]<<8;a=(a<<8|a>>>8)&65535;b=K[b+4|0]|K[b+5|0]<<8;b=(b<<8|b>>>8)&65535;if(a>>>0>>0)break a;c=a>>>0>b>>>0}return c|0}function NO(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;j=J[a+16>>2];a:{if(j){c=J[b>>2]+1|0;k=J[a+20>>2];h=j;while(1){i=(h-d>>>1|0)+d|0;e=(i<<3)+k|0;f=J[e>>2];if((f|0)==(c|0)){a=J[((i<<3)+k|0)+4>>2];J[b>>2]=c;return a|0}f=f&2147483647;g=(f|0)==(c|0)?J[e+4>>2]:g;e=c>>>0>f>>>0;d=e?i+1|0:d;h=e?h:i;if(d>>>0>>0)continue; -break}if(g)break a}c=0;g=0;if(d>>>0>=j>>>0)break a;a=J[a+20>>2]+(d<<3)|0;c=J[a>>2]&2147483647;g=J[a+4>>2]}J[b>>2]=c;return g|0}function Ux(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=xb-16|0;xb=f;e=xb-16|0;xb=e;a:{if(b>>>0<=1073741807){b:{if(b>>>0<2){H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127;d=a;break b}h=e+8|0;if(b>>>0>=2){g=b+4&-4;d=g-1|0;d=(d|0)==2?g:d}else d=1;Fi(h,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=b}Jw(d, -b,c);J[e+4>>2]=0;J[(b<<2)+d>>2]=J[e+4>>2];xb=e+16|0;break a}dd(a);B()}xb=f+16|0;return a}function vla(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=Q(h);i=Q(i);j=j|0;var k=Q(0),l=Q(0),m=Q(0);a:{l=N[b>>2];k=N[b+8>>2];b:{c:{if(l>k){k=d;l=e;break c}k=d<=k?k:d;d=d>=l?l:d;if(k>2];l=e<=l?l:e;m=N[b+4>>2];e=e>=m?m:e}k=f<=k?k:f;f=d<=f?d:f;if(k>2]=d>=i?d:i;N[b+8>>2]=h<=k?k:h;N[b+4>>2]=g<=i?g:i;N[b>>2]=f<=h?f:h;return}N[b+ -12>>2]=i;N[b>>2]=h;N[b+8>>2]=h;N[b+4>>2]=i}function cr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;if((c|0)==5){e=J[a>>2];g=J[a+4>>2];if((e|0)!=(g|0)){while(1){f=J[e>>2];if(f)Ab[J[J[f>>2]+4>>2]](f);e=e+4|0;if((g|0)!=(e|0))continue;break}e=J[a>>2]}J[a+4>>2]=e}e=Pb(72);J[e>>2]=392260;J[195395]=0;b=ca(1937,e+4|0,b|0)|0;f=J[195395];J[195395]=0;a:{if((f|0)!=1){J[195395]=0;nC(e+16|0,d);d=J[195395];J[195395]=0;if((d|0)==1){a=Z()|0;qd(b);break a}J[e+64>>2]=c;return fh(a,e)|0}a=Z()|0}Kb(e);ba(a|0);B()} -function Wl(a){var b=0,c=0,d=0;c=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a;b=J[a+28>>2];if(!b|J[b>>2]!=(a|0)|J[b+4>>2]-16180>>>0>31)break a;c=0;J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+32>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;d=J[b+12>>2];if(d)J[a+48>>2]=d&1;J[b+60>>2]=0;J[b+64>>2]=0;J[b+36>>2]=0;J[b+24>>2]=32768;J[b+16>>2]=0;J[b+4>>2]=16180;J[b+8>>2]=0;J[b+7108>>2]=1;J[b+7112>>2]=-1;a=b+1332|0;J[b+112>>2]=a;J[b+84>>2]=a;J[b+80>>2]=a}return c}function Vx(a,b,c){var d=0,e=0,f=0,g=0,h=0; -f=xb-16|0;xb=f;e=xb-16|0;xb=e;a:{if(b>>>0<=2147483631){b:{if(b>>>0<11){H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127;d=a;break b}h=e+8|0;if(b>>>0>=11){g=b+16&-16;d=g-1|0;d=(d|0)==11?g:d}else d=10;cl(h,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=b}Lw(d,b,c);H[e+7|0]=0;H[b+d|0]=K[e+7|0];xb=e+16|0;break a}dd(a);B()}xb=f+16|0;return a}function MA(a,b){var c=0,d=0,e=0,f=0;if(b){d=-8;e=J[J[a>>2]-12>>2]+a|0;c=J[e+12>>2]; -if(c+3>>>0>2]){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[e+12>>2]=c+4;d=d-8|0}a:{if(!J[b+12>>2]){tn(b,d);d=J[a>>2];break a}d=J[a>>2];c=J[d-12>>2]+a|0;e=J[c+12>>2]+4|0;f=c;c=J[c+16>>2];J[f+12>>2]=c>>>0>e>>>0?e:c}sn(b,J[(J[d-12>>2]+a|0)+12>>2],J[a+116>>2]-8|0);b=J[J[a>>2]-12>>2]+a|0;a=(J[b+12>>2]+J[a+116>>2]|0)-8|0;c=b;b=J[b+16>>2];J[c+12>>2]=a>>>0>>0?a:b}}function uV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(c>>>0>>0){e=xb- -16|0;xb=e;c=b-c|0;if(c){d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;if(d-b>>>0>>0)Lp(a,d,b+(c-d|0)|0,b,b);if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;Lw(d+b|0,c,0);f=a;a=b+c|0;sg(f,a);H[e+15|0]=0;H[a+d|0]=K[e+15|0]}xb=e+16|0;break a}c=a;if(K[a+11|0]>>>7|0)a=J[a>>2];_w(c,a,b)}}function fg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!J[a+4>>2]|!J[a+44>>2])break a;if(!(!((b|c)<0|J[a+16>>2]<=(b|0))&J[a+20>>2]>(c|0))){d=J[a+336>>2];if((d|0)>=0)break a; -d=K[J[a+56>>2]];break a}e=L[a+26>>1];if((e|0)==8){d=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0];break a}a=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0];b:switch(e-1|0){case 3:b=(b^-1)<<2&4;d=(a&15<>>b|0;break a;case 0:break b;default:break a}b=(b^-1)&7;d=(a&1<>>b|0}return d&255}function Rg(a,b){a=a|0;b=b|0;var c=0;if(b){c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;c=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=c;c=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=c;c=J[b+32>>2];J[a+28>>2]=J[b+28>> -2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c;Mb(a+52|0,b+52|0,876);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+928>>2]=J[b+928>>2];J[a+932>>2]=J[b+932>>2];J[a+936>>2]=J[b+936>>2];c=J[b+940>>2];J[a+60>>2]=b;J[a+940>>2]=c}}function EF(a){var b=0,c=0,d=0,e=0,f=0;if(!a)return-102;f=-100;a:{if(!(J[a+96>>2]|J[a+100>>2]))break a;c=J[a+56>>2];b=J[a+60>>2];d=J[a+84>>2];e=J[a+80>>2]+1|0;d=e?d:d+1|0;if((c|0)==(e|0)&(b|0)==(d|0)&((c|0)!=65535|(b|0)!=0))break a;J[a+80>>2]=e;J[a+84>>2]=d;c=J[a+ -92>>2];b=(J[a+176>>2]+(J[a+168>>2]+J[a+172>>2]|0)|0)+46|0;e=b;b=b+J[a+88>>2]|0;c=e>>>0>b>>>0?c+1|0:c;J[a+88>>2]=b;J[a+92>>2]=c;f=Gs(a,a+128|0,a+216|0,0,0);J[a+96>>2]=!f;J[a+100>>2]=0}return f}function th(a,b){var c=0,d=0,e=0,f=Q(0),g=Q(0),h=0,i=Q(0);c=J[a>>2];e=c+16|0;a=J[a+4>>2];g=Q(N[a+68>>2]*Q(O[b+8>>3]));f=Q(N[a+64>>2]*Q(O[b>>3]));b=J[c+12>>2];a=J[c+8>>2];a:{if(K[c+4|0]){if(!J[e>>2])$e(a,b,e);d=J[a+16>>2];h=J[a+32>>2];if(!h){Ab[d|0](a,b,e,f,g,0);break a}Ab[d|0](a,b,e,f,g,J[h+4>>2]);break a}i= -Q(g*N[c>>2]);if(!J[c+16>>2])$e(a,b,e);h=J[a+16>>2];f=Q(i+f);d=J[a+32>>2];if(d)d=J[d+4>>2];else d=0;Ab[h|0](a,b,e,f,g,d)}N[c+32>>2]=g;N[c+28>>2]=f}function je(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;if(!e|(c-b|0)<5)break a;bl(b,c);f=c-4|0;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;if(K[a+11|0]>>>7|0)a=J[a>>2];c=a;a=e+a|0;b:{while(1){c:{e=H[c|0];if(b>>>0>=f>>>0)break c;if(!((e|0)<=0|(e|0)>=127)&(e|0)!=J[b>>2])break b;b=b+4|0;c=((a- -c|0)>1)+c|0;continue}break}if((e|0)<=0|(e|0)>=127|H[c|0]>>>0>J[f>>2]-1>>>0)break a}J[d>>2]=4}}function Pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(!J[a+4>>2]|(b|c)<0|(!J[a+44>>2]|J[a+16>>2]<=(b|0)))break a;if(J[a+20>>2]<=(c|0))break a;e=L[a+26>>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=d;return}a=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0;b:switch(e-1|0){case 3:c=a;e=K[a|0];a=(b^-1)<<2&4;H[c|0]=e&(15<>2],K[a+10|0]);if(!c)break a;if(c>>>0>=4){e=c&-4;a=0;while(1){d=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=d;d=K[b+2|0];H[b+2|0]=K[b+3|0];H[b+3|0]=d;d=K[b+4|0];H[b+4|0]=K[b+5|0];H[b+5|0]=d;d=K[b+6|0];H[b+6|0]=K[b+7|0];H[b+7|0]=d;b=b+8|0;a=a+4|0;if((e|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){e=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=e;b=b+2|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}}function S6(a, -b){a=a|0;b=b|0;var c=0;if(J[b+72>>2]==1651078259){c=J[a>>2];J[a+20>>2]=J[b+100>>2];J[a+24>>2]=J[b+104>>2];a=a+28|0;if(H[J[b+156>>2]+4|0]&1){c=J[b+80>>2];J[a>>2]=J[b+76>>2];J[a+4>>2]=c;c=J[b+96>>2];J[a+16>>2]=J[b+92>>2];J[a+20>>2]=c;c=J[b+88>>2];J[a+8>>2]=J[b+84>>2];J[a+12>>2]=c;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2;return 0}if(a){J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}a=bC(c,b+76|0,a)}else a=18;return a|0}function fQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=xb-16|0;xb=d; -J[d+12>>2]=b;a:{b:{c=K[a+11|0];e=c>>>7|0;c:{if(!e){c=c&127;b=1;break c}c=J[a+4>>2];b=(J[a+8>>2]&2147483647)-1|0}if((b|0)==(c|0)){Bm(a,b,1,b,b,0);d:if(K[a+11|0]>>>7|0)break d;break b}e:if(K[a+11|0]>>>7|0)break e;if(e)break b;b=a;H[a+11|0]=c+1|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;break a}b=J[a>>2];J[a+4>>2]=c+1}a=(c<<2)+b|0;J[a>>2]=J[d+12>>2];J[d+8>>2]=0;J[a+4>>2]=J[d+8>>2];xb=d+16|0}function My(a,b,c,d,e){var f=0,g=0,h=0;h=-1;g=d&2147483647;f=(g|0)==2147418112;a:{if(f&!c?a|b:f&(c|0)!=0|g>>>0>2147418112)break a; -f=e&2147483647;if(((f|0)==2147418112&0|f>>>0>2147418112)&(f|0)!=2147418112)break a;if(!(a|c|(f|g|b)))return 0;f=d&e;if((f|0)>0)f=1;else f=(f|0)>=0;if(f){if(((c|0)!=0|(d|0)!=(e|0))&(d|0)<(e|0))break a;return(a|c|(d^e|b))!=0}if(!c&(d|0)==(e|0)?a|b:(c|0)!=0&(d|0)>=(e|0)|(d|0)>(e|0))break a;h=(a|c|(d^e|b))!=0}return h}function wda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{c=K[a+11|0]+7>>>3|0;e=J[a+4>>2];if(c>>>0>=e>>>0)break a;d=0-c|0;a=b+c|0;b=(c^-1)+e|0;f=e-c&3;if(f)while(1){H[a|0]=K[a+d|0]+K[a| -0];c=c+1|0;a=a+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}if(b>>>0<3)break a;while(1){H[a|0]=K[a+d|0]+K[a|0];H[a+1|0]=K[(a+1|0)+d|0]+K[a+1|0];H[a+2|0]=K[(a+2|0)+d|0]+K[a+2|0];H[a+3|0]=K[(a+3|0)+d|0]+K[a+3|0];a=a+4|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}}function uz(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=xb-32|0;xb=g;e=K[b|0];if(e){f=b;while(1){d=(e<<24>>24)+(d<<4)|0;d=d>>>24&240^d&268435455;e=K[f+1|0];f=f+1|0;if(e)continue;break}d=(d>>>0)%31627|0}a:{f=Qb(12);if(f){d=(d<<2)+a|0;J[f>>2]=J[d>>2];a=ac(b); -e=a+1|0;h=Qb(e);if(!h)break a;e=a;a=Mb(h,b,a);H[e+a|0]=0;J[f+8>>2]=c;J[f+4>>2]=a;J[d>>2]=f;xb=g+32|0;return}J[g>>2]=12;Sc(J[189490],228582,g);za(1);B()}J[g+16>>2]=e;Sc(J[189490],228582,g+16|0);za(1);B()}function sca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=b;b=(c|0)/3|0;a:{if(!b)break a;c=b&3;b:{if(!c){a=b;break b}a=b;while(1){f=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=f;d=d+3|0;a=a-1|0;e=e+1|0;if((c|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){b=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=b;b=K[d+5|0];H[d+ -5|0]=K[d+3|0];H[d+3|0]=b;b=K[d+8|0];H[d+8|0]=K[d+6|0];H[d+6|0]=b;b=K[d+11|0];H[d+11|0]=K[d+9|0];H[d+9|0]=b;d=d+12|0;a=a-4|0;if(a)continue;break}}}function Cd(a,b,c){var d=0,e=0,f=0;e=xb-16|0;xb=e;J[b+4>>2]=J[b+4>>2]+1;d=xb-16|0;xb=d;J[d+12>>2]=b;b=e+12|0;J[b>>2]=J[d+12>>2];xb=d+16|0;a:{a=a+8|0;if(J[a+4>>2]-J[a>>2]>>2>>>0<=c>>>0){J[195395]=0;$(3761,a|0,c+1|0);d=J[195395];J[195395]=0;if((d|0)==1)break a}d=J[J[a>>2]+(c<<2)>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if((f|0)==-1)Ab[J[J[d>>2]+8>>2]](d)}d=J[b>> -2];J[b>>2]=0;J[J[a>>2]+(c<<2)>>2]=d;sx(b);xb=e+16|0;return}a=Z()|0;sx(b);ba(a|0);B()}function BE(a){var b=0,c=0,d=0;a:{if(J[a+76>>2]|J[a+304>>2]|(J[a+40>>2]!=3|J[a+36>>2]!=3))break a;if(J[a+44>>2]!=2|J[a+120>>2]!=3)break a;b=J[a+216>>2];if(J[b+8>>2]!=2|J[b+96>>2]!=1|(J[b+184>>2]!=1|J[b+12>>2]>2))break a;if(J[b+100>>2]!=1|J[b+188>>2]!=1)break a;c=J[b+36>>2];if((c|0)!=J[a+320>>2]|(c|0)!=J[b+124>>2]|(c|0)!=J[b+212>>2])break a;c=J[a+324>>2];a=J[b+40>>2];if((c|0)!=(a|0)|(a|0)!=J[b+128>>2])break a;d=(a| -0)==J[b+216>>2]}return d}function C2(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=J[a+4>>2];if(c>>>0>2]){b:{if(H[b+11|0]>=0){d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break b}d=J[b+4>>2];e=J[b>>2];J[195395]=0;fa(1808,c|0,e|0,d|0);d=J[195395];J[195395]=0;if((d|0)==1)break a}d=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=d;J[c+20>>2]=J[b+20>>2];J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[a+4>>2]=c+24;return}sB(a,b);return}b=Z()|0;J[a+4>>2]=c;ba(b|0);B()}function uT(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;g=xb-16|0;xb=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[195395]=0;h=_(3551,b|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)Ab[J[J[b>>2]+8>>2]](b);Qx(a,f+24|0,g+12|0,c,e,h);xb=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function tT(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;g=xb-16|0;xb=g;J[g+ -12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[195395]=0;h=_(3551,b|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)Ab[J[J[b>>2]+8>>2]](b);Px(a,f+16|0,g+12|0,c,e,h);xb=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function qs(a,b){var c=0,d=0,e=0,f=0;d=J[a>>2];a:{if(!d)break a;c=J[a+12>>2];b:{c:{if(!c)break c;e=J[a+4>>2];d:{if(e){c=Ab[e|0](J[d>>2],b)|0;break d}if(b>>> -0>>0)break c;c=b>>>0>c>>>0?-1:0}if(!c)break b}gj(a,0,b,a,0,0);if(J[a+8>>2]){ss(a);gj(a,0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}c=J[J[a>>2]>>2];d=J[a+4>>2];e:{if(d){b=Ab[d|0](c,b)|0;break e}if(b>>>0>>0)return 0;b=b>>>0>c>>>0?-1:0}if(b)break a;f=J[J[a>>2]+4>>2]}return f}function BT(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;g=xb-16|0;xb=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[195395]=0;h=_(3535,b|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){b= -J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)Ab[J[J[b>>2]+8>>2]](b);Tx(a,f+24|0,g+12|0,c,e,h);xb=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function AT(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;g=xb-16|0;xb=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[195395]=0;h=_(3535,b|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)Ab[J[J[b>> -2]+8>>2]](b);Sx(a,f+16|0,g+12|0,c,e,h);xb=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function $ga(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;a:{if((d|0)<=0)break a;j=J[a+112>>2];if(!j)break a;o=J[J[a+480>>2]+24>>2];while(1){e=g<<2;h=J[e+c>>2];f=J[b+e>>2];e=j;while(1){k=K[f|0]>>>3|0;l=K[f+1|0]>>>2|0;m=K[f+2|0]>>>3|0;n=(J[(k<<2)+o>>2]+(l<<6)|0)+(m<<1)|0;i=L[n>>1];if(!i){rE(a,k,l,m);i= -K[n|0]}f=f+3|0;H[h|0]=i-1;h=h+1|0;e=e-1|0;if(e)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}}function uw(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a>>>0<784240&a>>>0>=783728){c=a;b=a-4|0;e=J[195928];d=e;a:{while(1){a=d;if(!(!a|(a|0)==784240)){d=L[a+2>>1];if((a+(d<<2)|0)==(b|0)){I[a+2>>1]=d+L[c-2>>1];break a}if((a|0)==((L[b+2>>1]<<2)+b|0)){c=c-2|0;I[c>>1]=L[a+2>>1]+L[c>>1];if(!f){J[195928]=b;I[b>>1]=L[a>>1];break a}I[f>>1]=b-783728>>>2;break a}else{d=(L[a>>1]<<2)+783728|0;f=a;continue}}break}I[b>> -1]=e-783728>>>2;J[195928]=b}return}Kb(a)}function kQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=xb-16|0;xb=d;H[d+15|0]=b;a:{b:{c=K[a+11|0];e=c>>>7|0;c:{if(!e){c=c&127;b=10;break c}c=J[a+4>>2];b=(J[a+8>>2]&2147483647)-1|0}if((b|0)==(c|0)){Lp(a,b,1,b,b);d:if(K[a+11|0]>>>7|0)break d;break b}e:if(K[a+11|0]>>>7|0)break e;if(e)break b;b=a;H[a+11|0]=c+1|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;break a}b=J[a>>2];J[a+4>>2]=c+1}a=b+c|0;H[a|0]=K[d+15|0];H[d+14|0]=0;H[a+1|0]=K[d+14|0];xb=d+16|0}function cC(a,b,c){var d= -0,e=0;d=Pb(72);J[d>>2]=392280;e=J[b+4>>2];J[d+8>>2]=J[b>>2];J[d+12>>2]=e;e=J[b+12>>2];J[d+16>>2]=J[b+8>>2];J[d+20>>2]=e;e=J[b+20>>2];J[d+24>>2]=J[b+16>>2];J[d+28>>2]=e;e=J[b+28>>2];J[d+32>>2]=J[b+24>>2];J[d+36>>2]=e;b=J[c+4>>2];J[d+40>>2]=J[c>>2];J[d+44>>2]=b;b=J[c+12>>2];J[d+48>>2]=J[c+8>>2];J[d+52>>2]=b;b=J[c+20>>2];J[d+56>>2]=J[c+16>>2];J[d+60>>2]=b;e=J[c+28>>2];b=d- -64|0;J[b>>2]=J[c+24>>2];J[b+4>>2]=e;fh(a,d)}function _na(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+712>>2];a:{if(K[e+24| -0]==2){f=11;e=xf(be(J[J[a+96>>2]+4>>2],9005),9996,0);if(!e)break a;e=J[e>>2];if(!e)break a;return Ab[e|0](a,b,c,d)|0}a=J[e+3084>>2];if(!a)return 11;b=L[J[e+1188>>2]+(b<<1)>>1];if((b|0)==65535)break a;b:{if(b>>>0>=391){a=b-391|0;if(a>>>0>=M[e+1356>>2])break a;a=J[J[e+1360>>2]+(a<<2)>>2];break b}a=Ab[J[a+20>>2]](b)|0}if(!a)break a;jr(c,a,d)}return f|0}function VP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=xb-16|0;xb=e;a:{if(J[b>>2]){if(K[c+11|0]>>>7|0)d=J[c+4>>2];else d=K[c+11|0]&127;if(d)Jp(c,228579, -ac(228579));d=e+4|0;f=J[b+4>>2];Ab[J[J[f>>2]+24>>2]](d,f,J[b>>2]);J[195395]=0;ca(4046,c|0,d|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;Yb(d)}b=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=b;J[a+8>>2]=J[c+8>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;xb=e+16|0;return}a=Z()|0;Yb(e+4|0);ba(a|0);B()}function Qr(a,b){a=a|0;b=b|0;var c=0;c=J[a+88>>2];if(c)J[c+128>>2]=b;c=J[a+92>>2];if(c)J[c+128>>2]=b;c=J[a+96>>2];if(c)J[c+128>>2]=b;c=J[a+100>>2];if(c)J[c+128>>2]=b;c=J[a+120>>2];if(c)J[c+276>>2]=b;c=J[a+136>>2]; -if(c)J[c+276>>2]=b;c=J[a+124>>2];if(c)J[c+276>>2]=b;c=J[a+140>>2];if(c)J[c+276>>2]=b;c=J[a+128>>2];if(c)J[c+276>>2]=b;c=J[a+144>>2];if(c)J[c+276>>2]=b;c=J[a+132>>2];if(c)J[c+276>>2]=b;a=J[a+148>>2];if(a)J[a+276>>2]=b}function Cz(a){a=a|0;var b=0,c=0,d=0;a:{c=K[779671];b=c<<24>>24<0;b:{d=J[194916];if(b?d:c){if(b)break b;J[a+8>>2]=J[194917];b=J[194916];J[a>>2]=J[194915];J[a+4>>2]=b;return}b=yg(228E3);c:{if(b)break c;b=yg(227996);if(b)break c;b=yg(227985)}b=b?b:226097;c=ac(b);J[a+8>>2]=0;J[a>>2]=0;J[a+ -4>>2]=0;J[195395]=0;fa(3484,b|0,c|0,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)break a;b=Z()|0;if(H[a+11|0]<0)Kb(J[a>>2]);ba(b|0);B()}rf(a,J[194915],d)}}function nna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+8>>2];a:{if(!c)break a;b:switch(K[a|0]){case 0:e=K[b+c|0];break a;case 3:break b;default:break a}if(M[a+20>>2]>b-J[a+16>>2]>>>0){e=K[a+24|0];break a}d=c+2|0;g=c+J[a+12>>2]|0;c=K[c+1|0]|K[c|0]<<8;while(1){if(b>>>0>>0)break a;f=K[d+2|0]|K[d+1|0]<<8;if(f>>>0>b>>>0){e=K[d|0];H[a+24|0]=e;J[a+ -20>>2]=f-c;J[a+16>>2]=c;break a}c=f;d=d+3|0;if(g>>>0>d>>>0)continue;break}}return e|0}function bz(a,b){var c=0,d=0;a:{d=b&255;if(d){if(a&3)while(1){c=K[a|0];if(!c|(c|0)==(b&255))break a;a=a+1|0;if(a&3)continue;break}c=J[a>>2];b:{if((c^-1)&c-16843009&-2139062144)break b;d=P(d,16843009);while(1){c=c^d;if((c^-1)&c-16843009&-2139062144)break b;c=J[a+4>>2];a=a+4|0;if(!(c-16843009&(c^-1)&-2139062144))continue;break}}while(1){c=a;d=K[a|0];if(d){a=a+1|0;if((d|0)!=(b&255))continue}break}return c}return ac(a)+ -a|0}return a}function Lna(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;a=K[b+1|0]|K[b+2|0]<<8;i=(a<<8|a>>>8)&65535;if(!(!d|!e)){a:{if(!J[d>>2]){a=0;break a}k=J[f+28>>2];a=0;g=i-c|0;g=g>>>0<=i>>>0?g:0;while(1){if((a|0)==(g|0)){a=g;break a}h=a+c|0;j=K[b+1|0]|K[b+2|0]<<8;if(h>>>0>=((j<<8|j>>>8)&65535)>>>0)h=169776;else h=(P(h,6)+b|0)+3|0;BH(h,f,P(a,12)+e|0,-1,k);a=a+1|0;if(a>>>0>2])continue;break}}J[d>>2]=a}return i|0}function Hla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=J[b+ -12>>2];a=J[b+16>>2];a:{if((c|0)>(a|0))break a;b:{if((c|0)>=0){d=a+1|0;if(d>>>0<=c>>>0)break a;a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(d>>>0>a>>>0)continue;break}if(a>>>0<=1073741823){c=ic(J[b+20>>2],a<<2);if(c)break b;c=J[b+12>>2];if(c>>>0>=a>>>0)break a}J[b+12>>2]=c^-1}J[194120]=J[42444];return}J[b+12>>2]=a;J[b+20>>2]=c}a=J[b+16>>2];J[b+16>>2]=a+1;J[J[b+20>>2]+(a<<2)>>2]=J[b+4>>2]}function zT(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;a=xb-16|0;xb=a;J[a+12>>2]=b;b=a+8|0;d=J[d+28>>2]; -J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[195395]=0;g=_(3535,b|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)Ab[J[J[b>>2]+8>>2]](b);Rx(f+20|0,a+12|0,c,e,g);xb=a+16|0;return J[a+12>>2]}c=Z()|0;a=J[a+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function yca(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){d=h<<2;a=g<<1;while(1){f=f-1|0;g=e;while(1){c=K[l+1|0];J[b>> -2]=c<<24|((P(K[i+1|0],c)+127&65535)>>>0)/255|((P(K[j+1|0],c)+127&65535)>>>0)/255<<8|((P(K[k+1|0],c)+127&65535)>>>0)/255<<16;b=b+4|0;k=k+2|0;j=j+2|0;i=i+2|0;l=l+2|0;g=g-1|0;if(g)continue;break}b=b+d|0;l=a+l|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f)continue;break}}}function sT(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;a=xb-16|0;xb=a;J[a+12>>2]=b;b=a+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[195395]=0;g=_(3551,b|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>> -2]=d;if((d|0)==-1)Ab[J[J[b>>2]+8>>2]](b);Ox(f+20|0,a+12|0,c,e,g);xb=a+16|0;return J[a+12>>2]}c=Z()|0;a=J[a+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)Ab[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function ye(a,b,c,d){var e=0;e=xb-16|0;xb=e;if(a){J[a+744>>2]=34;H[e+11|0]=b;H[e+10|0]=b>>>8;H[e+9|0]=b>>>16;H[e+8|0]=b>>>24;H[e+7|0]=d;H[e+6|0]=d>>>8;H[e+5|0]=d>>>16;H[e+4|0]=d>>>24;Wc(a,e+4|0,8);J[a+348>>2]=b;dg(a);Fc(a,e+8|0,4);J[a+744>>2]=66;if(!(!c|!d)){Wc(a,c,d);Fc(a,c,d)}J[a+744>>2]=130;b=J[a+384>>2];b=b<< -24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[e+12|0]=b;H[e+13|0]=b>>>8;H[e+14|0]=b>>>16;H[e+15|0]=b>>>24;Wc(a,e+12|0,4)}xb=e+16|0}function os(a){a=a|0;var b=0,c=0,d=0,e=0;e=J[a+60>>2];a:{if(e)break a;b=J[a+936>>2];if(b){c=J[a+452>>2];b:{if((c|0)>0){while(1){b=J[J[a+936>>2]+(d<<2)>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);c=J[a+452>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}b=J[a+936>>2];if(!b)break b}Kb(b)}J[a+452>>2]=0;J[a+936>>2]=0}b=J[a+928>>2];if(b){Kb(b);J[a+928>>2]=0}b=J[a+932>>2];if(b){Kb(b);J[a+932>>2]=0}b= -J[a+4>>2];if(!b)break a;Kb(b);J[a+4>>2]=0}return!e|0}function e9(a){a=a|0;var b=0,c=0;b=J[a+16>>2];a:{if(K[b+32|0])break a;c=J[b+28>>2];if(!c)break a;Kb(c);J[b+28>>2]=0}J[b+4>>2]=0;J[b+8>>2]=0;H[b+33|0]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;Ab[J[J[b>>2]+12>>2]](b);b=J[a+20>>2];b=J[J[b>>2]-12>>2]+b|0;b:{if(K[b+32|0])break b;c=J[b+28>>2];if(!c)break b;Kb(c);J[b+28>>2]=0}J[b+4>>2]=0;J[b+8>>2]=0;H[b+33|0]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;Ab[J[J[b>>2]+12>>2]](b);J[a+24>>2]=0}function M7(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0;b=xb-16|0;xb=b;J[b+12>>2]=20;J[b+8>>2]=14;J[a+8>>2]=J[a+8>>2]+20;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);J[b+4>>2]=0;J[b>>2]=16;Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+12|0,4);c=J[a+4>>2];d=J[c+4>>2];if(d)e=c,f=zg(d,48,0),J[e+8>>2]=f;Lb(J[a+4>>2],a+8|0,4);Lb(J[a+4>>2],a+12|0,4);Lb(J[a+4>>2],a+16|0,2);a=J[a+4>>2];Ab[J[J[a>>2]+8>>2]](a);xb=b+16|0}function wp(a){a=a|0;var b=0,c=0;if(a){c=J[a+100>>2];_v(J[a+140>>2]);b=J[a+144>>2]; -if(b)Ab[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+132>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+132>>2]=0;b=J[a+136>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+20>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+32>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+32>>2]=0;b=J[a+140>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+140>>2]=0}}function lR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;while(1){a:{if((c|0)==(d|0)|e>>>0<=h>>>0)break a;g=1;f=xb-16|0;xb=f;J[f+ -12>>2]=J[a+8>>2];i=Tf(f+8|0,f+12|0);J[195395]=0;j=dy(c,d-c|0,b);l=J[195395];J[195395]=0;b:{if((l|0)!=1){re(i);xb=f+16|0;break b}a=Z()|0;re(i);ba(a|0);B()}c:switch(j+2|0){default:g=j;break;case 0:case 1:break a;case 2:break c}h=h+1|0;k=g+k|0;c=c+g|0;continue}break}return k|0}function wM(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){b=J[a+540>>2];d=J[a+104>>2];e=J[a+100>>2];c=J[a+716>>2];if(c)Ab[c|0](J[a+712>>2]);if(b)Ab[J[b+12>>2]](a);rd(J[a+104>>2],a+764|0);J[a+760>>2]=0;c=J[a+104>>2];b=J[c+28>>2];f=J[a+ -784>>2];if(f)Ab[J[b+8>>2]](b,f);J[a+784>>2]=0;rd(c,a+768|0);b=J[a+704>>2];if(b)Ab[J[e+8>>2]](e,b);J[a+700>>2]=0;J[a+704>>2]=0;rd(d,a+688|0);rd(d,a+696|0);J[a+692>>2]=0;J[a+684>>2]=0;yv(a);J[a+736>>2]=0}}function ala(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!a)break a;d=J[a+36>>2];if(!d)return b|0;if((d|0)<=0)break a;d=0;while(1){c=J[J[a+40>>2]+(e<<2)>>2];b:{if(ci(a,c))break b;c:{c=J[c+4>>2];if((c|0)<=1937337697){if(!c)break c;if((c|0)!=1634889070)break b;break c}if((c|0)==1937337698)break c;if((c|0)!= -1970170211)break b;d=0;c=ce(a,b);if(c)break a;break b}d=ce(a,b)}c=d;e=e+1|0;if((e|0)>2])continue;break}}return c|0}function Ce(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0;i=Kpa(b,c,h,i);h=zb;e=Kpa(d,e,f,g);i=e+i|0;d=zb+h|0;h=e>>>0>i>>>0?d+1|0:d;j=g;e=0;k=c;d=0;c=Kpa(g,e,c,d);g=c+i|0;i=zb+h|0;l=g;c=c>>>0>g>>>0?i+1|0:i;g=Kpa(f,0,b,0);h=zb;i=0;d=Kpa(f,i,k,d);h=h+d|0;f=zb+i|0;f=d>>>0>h>>>0?f+1|0:f;i=f+l|0;d=c;f=f>>>0>i>>>0?d+1|0:d;b=Kpa(b,m,j,e)+h|0;e=zb;e=b>>>0>>0?e+1|0:e;h=e+i|0;i=f;J[a+8>>2]= -h;J[a+12>>2]=e>>>0>h>>>0?i+1|0:i;J[a>>2]=g;J[a+4>>2]=b}function Vs(a){a=a|0;if(J[a+16>>2]){J[a+20>>2]=0;Kb(J[a+24>>2])}J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;if(J[a+28>>2]){J[a+32>>2]=0;Kb(J[a+36>>2])}J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;if(J[a+52>>2]){J[a+56>>2]=0;Kb(J[a+60>>2])}J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;if(J[a+40>>2]){J[a+44>>2]=0;Kb(J[a+48>>2])}J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;if(J[a- -64>>2]){J[a+68>>2]=0;Kb(J[a+72>>2])}J[a+64>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0}function yha(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=J[a+20>>2];if((d|0)!=205){f=J[a>>2];J[f+24>>2]=d;J[f+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}f=J[a+116>>2];g=J[a+140>>2];a:{if(f>>>0<=g>>>0){b=J[a>>2];J[b+20>>2]=126;Ab[J[b+4>>2]](a,-1);c=0;break a}d=J[a+8>>2];if(d){J[d+8>>2]=f;J[d+4>>2]=g;Ab[J[d>>2]](a)}J[e+12>>2]=0;Ab[J[J[a+444>>2]+4>>2]](a,b,e+12|0,c);c=J[e+12>>2];J[a+140>>2]=c+J[a+140>>2]}xb=e+16|0;return c|0}function se(a,b){a=a|0;b=b|0;var c=0,d=0;d=a;a:{b:{if((d^b)&3){c=K[b|0];break b}if(b& -3)while(1){c=K[b|0];H[d|0]=c;if(!c)break a;d=d+1|0;b=b+1|0;if(b&3)continue;break}c=J[b>>2];if((c^-1)&c-16843009&-2139062144)break b;while(1){J[d>>2]=c;c=J[b+4>>2];d=d+4|0;b=b+4|0;if(!(c-16843009&(c^-1)&-2139062144))continue;break}}H[d|0]=c;if(!(c&255))break a;while(1){c=K[b+1|0];H[d+1|0]=c;d=d+1|0;b=b+1|0;if(c)continue;break}}return a|0}function AJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=-1;c=J[a>>2];e=J[b>>2];a:{if(c>>>0>>0)break a;if(c>>>0>e>>>0)return 1;c=K[a+4|0];e=K[b+4|0];if(c>>>0>>0)break a; -d=1;if(c>>>0>e>>>0)break a;d=J[a+8>>2];c=J[b+8>>2];if((d|0)!=(c|0))return((d|0)<(c|0)?-1:1)|0;b:{if(K[a+16|0])break b;d=J[b+12>>2];c=J[a+12>>2];if((d^c)>>>0<2)break b;return((d|0)>(c|0)?-1:1)|0}a=J[a+20>>2];b=J[b+20>>2];d=a>>>0>>0?-1:a>>>0>b>>>0}return d|0}function kL(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=J[a+496>>2];if(!f)return 6;g=J[f+32>>2];if(g){a=0;while(1){e=J[f+28>>2]+P(a,20)|0;a:{if(J[e>>2]!=(c|0))break a;h=J[e+4>>2];if((h|0)>(b|0)){J[d>>2]=J[e+8>>2];break a}i= -J[e+12>>2];if((i|0)<(b|0)){J[d>>2]=J[e+16>>2];break a}j=d,k=hc(b-h|0,J[e+16>>2]-J[e+8>>2]|0,i-h|0)+J[e+8>>2]|0,J[j>>2]=k;g=J[f+32>>2]}a=a+1|0;if(g>>>0>a>>>0)continue;break}}return 0}function Lja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;H[d+15|0]=c;c=Pb(48);J[195395]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;e=J[195395]; -J[195395]=0;if((e|0)!=1){H[c+40|0]=K[d+15|0];sF(c,a,b,0);xb=d+16|0;return c|0}a=Z()|0;Kb(c);ba(a|0);B()}function LG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=xb-16|0;xb=f;d=K[a+2|0]|K[a+3|0]<<8;if(d)e=((d<<8|d>>>8)&65535)+a|0;else e=169776;d=0;c=J[b+88>>2];c=ld(e,J[J[c+80>>2]+P(J[c+64>>2],20)>>2]);if((c|0)!=-1){d=169776;e=K[a+4|0]|K[a+5|0]<<8;c=c>>>0>=((e<<8|e>>>8)&65535)>>>0?169776:((c<<1)+a|0)+6|0;c=K[c|0]|K[c+1|0]<<8;if(c)d=((c<<8|c>>>8)&65535)+a|0;a=J[32491];J[f+8>>2]=J[32490];J[f+12>>2]=a;d=EG(d, -b,f+8|0)}xb=f+16|0;return d|0}function FV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;while(1){a:{if((c|0)<=(g|0))break a;d=J[a+24>>2];e=J[a+28>>2];if(d>>>0>=e>>>0){if((Ab[J[J[a>>2]+52>>2]](a,J[b>>2])|0)==-1)break a;g=g+1|0;b=b+4|0}else{J[f+12>>2]=e-d>>2;J[f+8>>2]=c-g;d=xb-16|0;xb=d;xb=d+16|0;d=f+8|0;e=f+12|0;d=J[(J[d>>2]>2]?d:e)>>2];Hf(J[a+24>>2],b,d);e=d<<2;J[a+24>>2]=e+J[a+24>>2];g=d+g|0;b=b+e|0}continue}break}xb=f+16|0;return g|0}function Woa(a,b){a=a|0;b=b|0;var c=0,d=0, -e=Q(0),f=0,g=Q(0),h=0,i=Q(0);d=b+16|0;f=J[b+12>>2];c=J[b+8>>2];g=Q(J[a+4>>2]);e=Q(J[a>>2]);a:{if(K[b+4|0]){if(!J[d>>2])$e(c,f,d);a=J[c+16>>2];h=J[c+32>>2];if(!h){Ab[a|0](c,f,d,e,g,0);break a}Ab[a|0](c,f,d,e,g,J[h+4>>2]);break a}i=Q(g*N[b>>2]);if(!J[b+16>>2])$e(c,f,d);h=J[c+16>>2];e=Q(i+e);a=J[c+32>>2];if(a)a=J[a+4>>2];else a=0;Ab[h|0](c,f,d,e,g,a)}N[b+32>>2]=g;N[b+28>>2]=e;return 0}function qY(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+16>>2];if(!e){J[b>>2]=0;return 0}i=J[a+20>>2];f=J[b>> -2];a:while(1){f=f+1|0;c=0;d=e;while(1){g=(d-c>>>1|0)+c|0;h=J[(g<<4)+i>>2];if((h|0)==(f|0)){if(!g)continue a;J[b>>2]=f;return g+1|0}h=f>>>0>h>>>0;c=h?g+1|0:c;d=h?d:g;if(c>>>0>>0)continue;break}break}d=0;if(c>>>0>=e>>>0){J[b>>2]=0;return 0}e=0;if(c){e=J[J[a+20>>2]+(c<<4)>>2];d=c+1|0}J[b>>2]=e;return d|0}function mE(a,b,c,d,e){var f=0,g=0;f=xb-32|0;xb=f;J[f+8>>2]=0;g=d?d:e;J[f+20>>2]=g?g:72;J[f+24>>2]=g?d?e?e:d:e:72;d=b?b:c;J[f+12>>2]=(d|0)<=64?64:d;b=b?c?c:b:c;J[f+16>>2]=(b|0)<=64?64:b;a:{if(!a){e= -35;break a}b=J[a+88>>2];J[J[b+40>>2]+12>>2]=0;c=J[J[J[a+96>>2]+12>>2]+88>>2];if(c){e=Ab[c|0](b,f+8|0)|0;break a}if((J[a+8>>2]&3)==2){e=Rr(a,f+8|0,f+28|0);if(e)break a;e=Mr(a,J[f+28>>2]);break a}dj(a,f+8|0);e=0}xb=f+32|0;return e}function Jha(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];c=J[b+4>>2];if(!c){if(!(Ab[J[b+12>>2]](a)|0))return 0;c=J[b+4>>2]}d=J[b>>2];e=K[d|0];f=c-1|0;if(f)c=d+1|0;else{if(!(Ab[J[b+12>>2]](a)|0))return 0;f=J[b+4>>2];c=J[b>>2]}d=K[c|0];g=J[a>>2];J[g+20>>2]=93;J[g+24>> -2]=J[a+436>>2];d=d|e<<8;e=d-2|0;J[J[a>>2]+28>>2]=e;Ab[J[J[a>>2]+4>>2]](a,1);J[b+4>>2]=f-1;J[b>>2]=c+1;if(d>>>0>=3)Ab[J[J[a+24>>2]+16>>2]](a,e);return 1}function fca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=xb+-64|0;xb=c;e=L[a+88>>1];b=777244;a:{while(1){b:{b=J[b>>2];if(!b){d=0;if(!J[193972])break b;b=775888;while(1){if((e|0)==L[b+4>>1])break a;f=J[b+12>>2];b=b+12|0;if(f)continue;break}break b}d=J[b+4>>2];if((e|0)!=L[d+4>>1])continue}break}b=d}J[c+16>>2]=L[a+88>>1];d=c+32|0;Md(d,272407,c+16|0);e=J[a>>2]; -f=J[a+628>>2];J[c>>2]=b?J[b>>2]:d;Ob(f,e,272604,c);xb=c- -64|0;return 0}function Ola(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;c=J[J[a+100>>2]+4>>2];if(c)hG(c,b,J[a+4>>2]);H[b+140|0]=K[b+140|0]|64;d=J[b+68>>2];if(d){e=J[b+80>>2];g=e+2|0;a=0;while(1){c=0;f=P(a,20);b=J[f+e>>2];if(b>>>0<=921599)c=K[(b&1|K[(b>>>1&7|L[(b>>>3&14|K[(b>>>7&31|K[(b>>>13|0)+153232|0]>>>(b>>>10&4)<<5&480)+153345|0]<<4)+156432>>1]<<3)+153825|0]<<1)+156041|0];H[(g+f|0)+16|0]=c;a=a+1|0;if((d|0)!=(a|0))continue;break}}}function spa(a, -b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=Q(h);i=Q(i);j=j|0;var k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=0;k=N[b+8>>2];l=N[b+16>>2];m=N[b+12>>2];n=N[c+16>>2];N[c+16>>2]=m*n;N[c+12>>2]=Q(k*N[c+12>>2])+Q(l*n);a=J[b>>2];j=J[a+24>>2];o=J[b+4>>2];d=Q(Q(k*d)+Q(l*e));e=Q(m*e);f=Q(Q(k*f)+Q(l*g));g=Q(m*g);h=Q(Q(k*h)+Q(l*i));i=Q(m*i);b=J[a+32>>2];if(b)b=J[b+12>>2];else b=0;Ab[j|0](a,o,c,d,e,f,g,h,i,b)}function Zs(a){if(J[a+64>>2]){J[a+68>>2]=0;Kb(J[a+72>>2])}J[a+64>>2]=0;J[a+68>>2]=0;J[a+72>> -2]=0;if(J[a+76>>2]){J[a+80>>2]=0;Kb(J[a+84>>2])}J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;if(J[a+88>>2]){J[a+92>>2]=0;Kb(J[a+96>>2])}J[a+96>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;if(J[a+76>>2]){J[a+80>>2]=0;Kb(J[a+84>>2])}J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;if(J[a+64>>2]){J[a+68>>2]=0;Kb(J[a+72>>2])}J[a+72>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0}function Bca(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){d=h<<2;while(1){f=f-1|0;a=e;while(1){c=K[l|0]; -J[b>>2]=c<<24|((P(K[i|0],c)+127&65535)>>>0)/255|((P(K[j|0],c)+127&65535)>>>0)/255<<8|((P(K[k|0],c)+127&65535)>>>0)/255<<16;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;l=l+1|0;a=a-1|0;if(a)continue;break}l=g+l|0;k=g+k|0;j=g+j|0;i=g+i|0;b=b+d|0;if(f)continue;break}}}function ul(a,b){var c=0,d=0;a:{if(!b)break a;Ab[J[J[b>>2]+60>>2]](b);c=J[a>>2];d=J[a+4>>2];if((c|0)==(d|0))break a;while(1){b:{c:{d:{e:{a=J[c>>2];switch((Ab[J[J[a>>2]+8>>2]](a)|0)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break b}}Ab[J[J[b>> -2]+64>>2]](b,a+8|0);break b}Ab[J[J[b>>2]+72>>2]](b,a+4|0,J[a+64>>2],a+16|0);break b}Ab[J[J[b>>2]+68>>2]](b,a+8|0,a+40|0)}c=c+4|0;if((d|0)!=(c|0))continue;break}}}function Rka(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=J[d>>2];h=J[d+4>>2];f=J[d+8>>2];a:{if((h|0)>(f+7|0)){g=e;break a}if(!e){g=Qb(800);J[d+4>>2]=200;J[d>>2]=g;f=0;break a}g=Qb(h<<3);f=Mb(g,e,f<<2);Kb(e);J[d+4>>2]=h<<1;J[d>>2]=f;f=J[d+8>>2]}e=(f<<2)+g|0;J[e>>2]=3;J[e+4>>2]=J[a>>2];J[e+8>>2]=J[a+4>>2];J[e+12>>2]=J[b>>2];J[e+ -16>>2]=J[b+4>>2];J[e+20>>2]=J[c>>2];a=J[c+4>>2];J[d+8>>2]=f+7;J[e+24>>2]=a;return 0}function jha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=J[a+4>>2];if(c>>>0>=999999985){d=J[a>>2];J[d+20>>2]=56;J[d+24>>2]=3;Ab[J[J[a>>2]>>2]](a)}if(b>>>0>=2){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=15;Ab[J[J[a>>2]>>2]](a)}d=c+7&-8;f=d+16|0;c=Qb(f);if(!c){g=J[a>>2];J[g+20>>2]=56;J[g+24>>2]=4;Ab[J[J[a>>2]>>2]](a)}J[e+76>>2]=J[e+76>>2]+f;a=(b<<2)+e|0;b=J[a+60>>2];J[c+8>>2]=0;J[c+4>>2]=d;J[c>>2]=b;J[a+60>>2]=c;return c+ -16|0}function Kp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;a:{b:{if(c>>>0<11){d=a;H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;break b}if(c>>>0>2147483631)break a;g=e+8|0;if(c>>>0>=11){f=c+16&-16;d=f-1|0;d=(d|0)==11?f:d}else d=10;cl(g,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}$g(d,b,c+1|0);xb=e+16|0;return}dd(a);B()}function lO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[b+8>>2];f=J[a>>2]; -d=J[f+140>>2];g=J[f+32>>2];e=J[b+16>>2];if(e)c=(P(c,e)+36|0)/72|0;e=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((e|0)==J[g+12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23;if((e|0)!=(J[d+44>>2]+J[d+40>>2]|0))break a}c=0;Lg(f,0);J[a+24>>2]=J[d+40>>2]<<6;J[a+28>>2]=0-(J[d+44>>2]<<6);J[a+36>>2]=L[d+4>>1]<<6}return c|0}function hl(a,b){var c=0,d=0,e=0;c=J[b+76>>2];a:{if(!((c|0)>=0&(!c|J[194980]!=(c&-1073741825)))){b:{c=a&255;if((c|0)==J[b+80>>2])break b;d=J[b+20>>2];if((d|0)==J[b+ -16>>2])break b;J[b+20>>2]=d+1;H[d|0]=a;break a}c=xq(b,c);break a}d=b+76|0;c=J[d>>2];J[d>>2]=c?c:1073741823;c:{d:{c=a&255;if((c|0)==J[b+80>>2])break d;e=J[b+20>>2];if((e|0)==J[b+16>>2])break d;J[b+20>>2]=e+1;H[e|0]=a;break c}c=xq(b,c)}J[d>>2]=0}return c}function FE(a,b){var c=0;a:{if(!a)break a;a=J[a+128>>2];J[a+24>>2]=0;b:{c:{d:{if(!b){J[a+8>>2]=0;J[a+12>>2]=65536;J[a>>2]=65536;J[a+4>>2]=0;b=a;break d}c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;if(J[b+8>> -2]|J[b+4>>2])break c}if(J[b>>2]!=65536)break c;c=2;if(J[b+12>>2]==65536)break b}J[a+24>>2]=1;c=3}J[a+16>>2]=0;J[a+20>>2]=0;if(!J[(a+16|0)+4>>2])break a;J[a+24>>2]=c}}function WV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;while(1){a:{if((c|0)<=(f|0))break a;d=J[a+24>>2];g=J[a+28>>2];if(d>>>0>=g>>>0){if((Ab[J[J[a>>2]+52>>2]](a,K[b|0])|0)==-1)break a;f=f+1|0;b=b+1|0}else{J[e+12>>2]=g-d;J[e+8>>2]=c-f;d=xb-16|0;xb=d;xb=d+16|0;d=e+8|0;g=e+12|0;d=J[(J[d>>2]>2]?d:g)>>2];$g(J[a+24>>2], -b,d);J[a+24>>2]=d+J[a+24>>2];f=d+f|0;b=b+d|0}continue}break}xb=e+16|0;return f|0}function Wca(a,b,c,d,e,f,g,h,i){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;var j=0;if(!(!f|!e)){d=L[a+26>>1];g=P(g,d);a=J[a+56>>2];j=h<<2;while(1){f=f-1|0;h=e;while(1){c=K[i+3|0]^255;J[b>>2]=K[a+((P(c,K[i+1|0]^255)>>>0)/255|0)|0]<<8|K[a+((P(K[i|0]^255,c)>>>0)/255|0)|0]|K[a+((P(K[i+2|0]^255,c)>>>0)/255|0)|0]<<16|-16777216;i=d+i|0;b=b+4|0;h=h-1|0;if(h)continue;break}i=g+i|0;b=b+j|0;if(f)continue;break}}}function RV(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-16|0;xb=f;ae(a,J[a+8>>2]);g=J[a>>2];J[f+12>>2]=g;h=J[a+8>>2];a:{if(h>>>0<=g>>>0)break a;b:{if(e){i=3;if(K[g|0]!=60)break a;J[f+12>>2]=g+1;j=d,k=ty(f+12|0,h,b,c),J[j>>2]=k;b=J[f+12>>2];J[a>>2]=b;if(K[b|0]!=62&b>>>0>2])break a;b=b+1|0;break b}j=d,k=ty(f+12|0,h,b,c),J[j>>2]=k;b=J[f+12>>2]}J[a>>2]=b;i=0}xb=f+16|0;return i|0}function Mg(a,b,c,d,e,f){var g=0;a:{if((e|0)<=0)break a;b=(b<<2)+a|0;d=(d<<2)+c|0;g=e&3;b:{if(!g){c= -e;break b}a=0;c=e;while(1){Mb(J[d>>2],J[b>>2],f);c=c-1|0;d=d+4|0;b=b+4|0;a=a+1|0;if((g|0)!=(a|0))continue;break}}if(e>>>0<4)break a;while(1){Mb(J[d>>2],J[b>>2],f);Mb(J[d+4>>2],J[b+4>>2],f);Mb(J[d+8>>2],J[b+8>>2],f);Mb(J[d+12>>2],J[b+12>>2],f);d=d+16|0;b=b+16|0;a=c-5|0;c=c-4|0;if(a>>>0<4294967294)continue;break}}}function BC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=Qb(40);J[e>>2]=0;e=wd(a+624|0,1,e,4);i=yb;a:{b:{while(1){if(d){h=0;break a}d=J[J[a+4>>2]+8>>2];J[195395]=0;h=ha(d|0,a|0,1,b|0,c|0)|0;d=J[195395]; -J[195395]=0;if((d|0)==1)break b;f=-1;c:{d:{if(!d)break d;g=J[195396];if(!g)break d;f=Sb(J[d>>2],e,i);if(!f)break c;yb=g}d=yb;if((f|0)==1)continue;break a}break}Kb(e);gd(d,g);B()}a=Z()|0;Kb(e);ba(a|0);B()}Kb(e);return h}function AO(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];J[a+48>>2]=b;d=J[a+28>>2];J[a+52>>2]=d;e=J[a+8>>2];f=e+J[a>>2]|0;J[a+8>>2]=f>>1;c=b;b=J[a+16>>2];c=c+b|0;J[a+40>>2]=c>>1;b=b+e|0;e=b+f|0;J[a+16>>2]=e>>2;b=b+c|0;J[a+32>>2]=b>>2;c=d;d=J[a+20>>2];f=c+d|0;J[a+44>>2]=f>>1;c= -J[a+12>>2];g=c+J[a+4>>2]|0;J[a+12>>2]=g>>1;J[a+24>>2]=b+e>>3;b=d+c|0;d=b+f|0;J[a+36>>2]=d>>2;b=b+g|0;J[a+20>>2]=b>>2;J[a+28>>2]=b+d>>3}function rf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;a:{b:{if(c>>>0<2){d=a;H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;break b}if(c>>>0>1073741807)break a;g=e+8|0;if(c>>>0>=2){f=c+4&-4;d=f-1|0;d=(d|0)==2?f:d}else d=1;Fi(g,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+ -4>>2]=c}Hf(d,b,c+1|0);xb=e+16|0;return}dd(a);B()}function qX(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=xb-16|0;xb=e;a:{b:{if(!(c?b:0)){H[a|0]=0;H[a+11|0]=0;break b}J[e+12>>2]=0;J[e+8>>2]=0;Rj(b,c,e+12|0,e+8|0,d);c=J[e+8>>2];if(c>>>0>=2147483632)break a;d=J[e+12>>2];c:{if(c>>>0<=10){H[a+11|0]=c;break c}f=(c|15)+1|0;b=Pb(f);J[a+8>>2]=f|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}g=qc(a,d,c)+c|0,h=0,H[g|0]=h;if(!d)break b;Kb(d)}xb=e+16|0;return}dd(a);B()}function nfa(a,b,c,d,e){a=a|0;b=b|0;c= -c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if((e|0)<=0)break a;h=J[a+28>>2];if(!h)break a;g=J[J[a+408>>2]+8>>2];while(1){i=e-1|0;j=J[J[c>>2]+(d<<2)>>2];a=J[b>>2];f=0;while(1){H[f+j|0]=J[((K[a+2|0]<<2)+g|0)+2048>>2]+(J[((K[a+1|0]<<2)+g|0)+1024>>2]+J[(K[a|0]<<2)+g>>2]|0)>>>16;a=a+3|0;f=f+1|0;if((h|0)!=(f|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=i;if(a)continue;break}}}function IL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{if(!K[a+733|0])break a;d=J[a+736>>2];if(!d)break a;if(!K[d+32|0]){e= -kv(a,0);d=J[a+736>>2];J[d+36>>2]=e}if(!K[d+33|0])return J[d+36>>2];d=J[d+40>>2];e=J[d+28>>2];b:{if(e){f=e;e=J[d+20>>2];e=(b>>>0>>0?b:e-1|0)<<2;b=J[f+e>>2];f=J[e+J[d+24>>2]>>2];break b}e=6;if(M[J[d+4>>2]>>2]<=b>>>0)break a}g=c,h=lp(a,d,f,b)+J[c>>2]|0,J[g>>2]=h;e=0}return e|0}function GL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{if(!K[a+733|0])break a;d=J[a+736>>2];if(!d)break a;if(!K[d+44|0]){e=kv(a,1);d=J[a+736>>2];J[d+48>>2]=e}if(!K[d+45|0])return J[d+48>>2];d=J[d+52>>2];e=J[d+28>>2]; -b:{if(e){f=e;e=J[d+20>>2];e=(b>>>0>>0?b:e-1|0)<<2;b=J[f+e>>2];f=J[e+J[d+24>>2]>>2];break b}e=6;if(M[J[d+4>>2]>>2]<=b>>>0)break a}g=c,h=lp(a,d,f,b)+J[c>>2]|0,J[g>>2]=h;e=0}return e|0}function epa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=Q(0),g=0,h=0;d=xb-16|0;xb=d;g=J[a+32>>2];e=J[b+32>>2];h=J[b>>2];b=0;J[195395]=0;c=ha(689,e|0,c|0,h|16,d+12|0)|0;e=J[195395];J[195395]=0;if((e|0)!=1){if(!c){f=Q(Q(g>>31|1)*Q(J[d+12>>2]));a:{if(Q(R(f))>2];b=(512- -c>>10)+(K[a+44|0]?0:J[a+32>>2]<0?0-b|0:b)|0}td();xb=d+16|0;return b|0}a=Z()|0;td();ba(a|0);B()}function dk(a,b){var c=0,d=0,e=0,f=0;a:{if(!b)break a;d=b&3;b:{if(!d){c=b;break b}c=b;while(1){f=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=f;a=a+2|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){b=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=b;b=K[a+3|0];H[a+3|0]=K[a+2|0];H[a+2|0]=b;b=K[a+5|0];H[a+5|0]=K[a+4|0];H[a+4|0]=b;b=K[a+7|0];H[a+7|0]=K[a+6|0];H[a+6|0]=b;a=a+8|0;c=c-4|0;if(c)continue;break}}} -function Pz(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=xb-16|0;xb=f;J[f+12>>2]=0;g=J[d>>2];if(g){if(g)Ab[J[c+8>>2]](c,g);J[d>>2]=0}a:{if(!b){c=0;break a}b=b-!K[(a+b|0)-1|0]|0;if(!b){c=0;break a}b:{while(1){if(H[a+e|0]<32)break b;e=e+1|0;if((b|0)!=(e|0))continue;break}if(!b)break b;c=tc(c,b+1|0,f+12|0);e=J[f+12>>2];if(e)break a;h=Mb(c,a,b)+b|0,i=0,H[h|0]=i;e=J[f+12>>2];break a}e=0;c=0}J[d>>2]=c;xb=f+16|0;return e}function wj(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;J[c+12>>2]=0;e=Nd(a,c+12|0);d=J[c+12>>2];a:{if(d)break a; -b:{c:{d:{e:{e=e&255;switch(e-253|0){case 1:break c;case 2:break d;case 0:break e;default:break b}}e=rc(a,c+12|0);d=J[c+12>>2];if(!d)break b;break a}a=Nd(a,c+12|0);d=J[c+12>>2];if(d)break a;e=(a&255)+253|0;break b}a=Nd(a,c+12|0);d=J[c+12>>2];if(d)break a;e=(a&255)+506|0}I[b>>1]=e;d=0}xb=c+16|0;return d}function wU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=Q(0),g=0,h=Q(0);e=xb-16|0;xb=e;a:{b:{c:{if((a|0)!=(b|0)){g=J[194954];J[194954]=0;Vd();d=xb-16|0;xb=d;sq(d,a,e+12|0,0);f=Jy(J[d>>2],J[d+4>>2],J[d+8>> -2],J[d+12>>2]);xb=d+16|0;a=J[194954];if(!a)break c;if(J[e+12>>2]!=(b|0))break b;h=f;if((a|0)!=68)break a;break b}J[c>>2]=4;break a}J[194954]=g;if(J[e+12>>2]==(b|0))break a}J[c>>2]=4;f=h}xb=e+16|0;return Q(f)}function Co(a,b){var c=0,d=0,e=0;Yl(a,b,0,0,0);c=J[a+88>>2];if(ec(c,1,1)){a=J[c+64>>2];a:{if(a>>>0>2]){d=J[c+72>>2];e=J[c+84>>2];a=J[c+80>>2]+P(a,20)|0;break a}e=J[c+84>>2];d=J[c+72>>2];a=d-1|0;a=e+P(a>>>0<=d>>>0?a:0,20)|0}d=P(d,20)+e|0;e=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=e;J[d+16>> -2]=J[a+16>>2];e=J[a+12>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=e;J[d>>2]=b;J[c+64>>2]=J[c+64>>2]+1;J[c+72>>2]=J[c+72>>2]+1}}function x7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;if(d){J[e+12>>2]=0;J[e+8>>2]=28;J[e+4>>2]=38;J[a+8>>2]=J[a+8>>2]+28;J[a+12>>2]=J[a+12>>2]+1;I[a+16>>1]=L[a+16>>1]+1;Lb(J[a+4>>2],e+4|0,4);Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],d+16|0,1);Lb(J[a+4>>2],d+17|0,1);Lb(J[a+4>>2],d+18|0,1);Lb(J[a+ -4>>2],d+19|0,1)}xb=e+16|0}function Q8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;a:{if((b|0)<=0){a=J[a+4>>2];J[d+12>>2]=1;Ab[J[J[a>>2]+348>>2]](a,d+12|0)|0;break a}e=J[a+12>>2];if((e|0)==-1)break a;f=b&e&1;c=f?1:-1;b:{c:{if(!(b&2))break c;if(e&256){if(!f){c=256;break b}c=c|256;break c}if(!(e&512))break c;if(!f){c=512;break b}c=c|512}if((c|0)==-1)break a}a=J[a+4>>2];J[d+8>>2]=c;Ab[J[J[a>>2]+348>>2]](a,d+8|0)|0}xb=d+16|0}function Iq(a){a=a|0;var b=0,c=0;J[a>>2]=427800;b=J[a+252>>2];if(b){Kb(b); -J[a+252>>2]=0}J[a+256>>2]=0;J[a+260>>2]=0;Mz(a+124|0);b=408688;J[a>>2]=408688;a:{if(K[a+32|0])break a;c=J[a+28>>2];if(!c)break a;Kb(c);J[a+28>>2]=0;b=J[a>>2]}J[a+4>>2]=0;J[a+8>>2]=0;H[a+33|0]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=J[b+12>>2];J[195395]=0;ea(b|0,a|0);b=J[195395];J[195395]=0;if((b|0)==1){ga(0)|0;_b();B()}return a|0}function rL(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;J[d>>2]=0;J[d+4>>2]=0;e=J[a+496>>2];if(e){a=J[e+36>>2];e=(a+(J[e+40>>2]<<4)|0)-16|0;a:{if(a>>>0>e>>>0)break a; -c=b<<16|c;while(1){f=(e-a>>4)/2|0;b=(f<<4)+a|0;g=J[b>>2]<<16|J[b+4>>2];if((c|0)==(g|0)){a=(f<<4)+a|0;J[d>>2]=J[a+8>>2];h=J[a+12>>2];break a}f=c>>>0>g>>>0;a=f?b+16|0:a;e=f?e:b-16|0;if(a>>>0<=e>>>0)continue;break}}J[d+4>>2]=h}return 0}function dK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[b+8>>2];f=J[a>>2];g=J[f+32>>2];e=J[f+132>>2];d=J[b+16>>2];if(d)c=(P(c,d)+36|0)/72|0;d=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((d|0)==J[g+12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23; -if((d|0)!=L[e+96>>1])break a}c=0;Lg(f,0);b=L[e+80>>1];J[a+24>>2]=b<<6;J[a+28>>2]=b-L[e+96>>1]<<6;J[a+36>>2]=L[e+102>>1]<<6}return c|0}function Fl(a,b){var c=0,d=0;c=xb-16|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c+11|0]=b;H[c+12|0]=b>>>8;H[c+13|0]=b>>>16;H[c+14|0]=b>>>24;a:{if(!a)break a;b=J[a+644>>2];if((b|0)<=0)break a;d=J[a+648>>2];a=d+P(b,5)|0;while(1){b=a-5|0;if((K[c+11|0]|K[c+12|0]<<8|(K[c+13|0]<<16|K[c+14|0]<<24))==(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24)))return K[a-1|0];a=b;if(b>>> -0>d>>>0)continue;break}}return 0}function yZ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{e=id(b);if(e>>>0<1073741808){b:{if(e>>>0<=1){H[a+11|0]=e;d=a;break b}d=e|3;if(d>>>0>=1073741823)break a;f=d+1|0;d=Pb(f<<2);J[a+8>>2]=f|-2147483648;J[a>>2]=d;J[a+4>>2]=e}f=b;b=e<<2;g=qc(d,f,b)+b|0,h=0,J[g>>2]=h;J[a+20>>2]=J[c+8>>2];b=J[c+4>>2];d=J[c>>2];J[a+12>>2]=d;J[a+16>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;return a|0}dd(a);B()}zd();B()}function p_(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b+8>>2]; -d=J[a>>2];f=J[d+32>>2];e=J[b+16>>2];if(e)c=(P(c,e)+36|0)/72|0;e=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((e|0)==J[f+12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23;if((e|0)!=(J[d+208>>2]+J[d+204>>2]|0))break a}c=0;Lg(d,0);J[a+24>>2]=J[d+204>>2]<<6;J[a+28>>2]=0-(J[d+208>>2]<<6);J[a+36>>2]=I[d+236>>1]<<6}return c|0}function BL(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;i=J[a+20>>2];h=J[a+16>>2];a:{b:{if(h){e=J[b>>2]+1|0;a=h>>>1|0;g=h;while(1){d=c+g>>>1|0;d=a>>>0>= -g>>>0?d:a>>>0>>0?d:a;f=J[(d<<3)+i>>2];if((f|0)==(e|0)){c=d;break b}a=(e+d|0)-f|0;f=e>>>0>>0;c=f?c:d+1|0;g=f?d:g;if(c>>>0>>0)continue;break}}e=0;if(c>>>0>=h>>>0)break a;e=J[(c<<3)+i>>2]}j=L[((c<<3)+i|0)+4>>1]+1&65535}J[b>>2]=e;return j|0}function Kaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=xb-80|0;xb=c;e=J[a+584>>2];d=J[a+48>>2];if(d&4){J[c+64>>2]=J[e+916>>2];Sc(b,269984,c- -64|0);d=J[a+48>>2]}if(d&8){J[c+48>>2]=J[e+936>>2];Sc(b,270566,c+48|0);d=J[a+48>>2]}if(d&16){J[c+32>>2]=J[e+940>>2];Sc(b, -271188,c+32|0);d=J[a+48>>2]}if(d&32){J[c+16>>2]=J[e+944>>2];Sc(b,271520,c+16|0);d=J[a+48>>2]}if(d&64){J[c>>2]=J[e+948>>2];Sc(b,271848,c)}xb=c+80|0}function EU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=xb-16|0;xb=e;a:{b:{if((a|0)!=(b|0)){g=J[194954];J[194954]=0;a=Qw(a,e+12|0,d,Vd());d=zb;f=J[194954];c:{if(f){if(J[e+12>>2]!=(b|0))break c;if((f|0)==68)break b;break a}J[194954]=g;if(J[e+12>>2]==(b|0))break a}}J[c>>2]=4;a=0;d=0;break a}J[c>>2]=4;if(!!a&(d|0)>=0|(d|0)>0){a=-1;d=2147483647;break a}a= -0;d=-2147483648}xb=e+16|0;zb=d;return a|0}function nia(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;H[a+24|0]=0;a:{if(!b)break a;e=J[a+4>>2];if(!e)break a;c=P(c,d);if(!c)break a;f=J[a+16>>2];g=c+f|0;h=J[a+20>>2];if(!((g|0)<=(h|0)|g>>>0<=h>>>0)){f=(g&-65536)+65536|0;e=ic(e,f);J[a+20>>2]=f;H[a+12|0]=1;J[a+4>>2]=e;if(!e)break a;f=J[a+16>>2]}Mb(e+f|0,b,c);b=c+J[a+16>>2]|0;J[a+16>>2]=b;if((b|0)>J[a+8>>2])J[a+8>>2]=b;i=d}return i|0}function mz(a,b,c,d){var e=0,f=0;a:{if(d>>>0>=3){J[194954]= -28;break a}b:{if((d|0)!=1)break b;e=J[a+8>>2];if(!e)break b;f=b;e=e-J[a+4>>2]|0;b=b-e|0;c=c-((e>>31)+(e>>>0>f>>>0)|0)|0}if(J[a+20>>2]!=J[a+28>>2]){Ab[J[a+36>>2]](a,0,0)|0;if(!J[a+20>>2])break a}J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;Ab[J[a+40>>2]](a,b,c,d)|0;if((zb|0)<0)break a;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=J[a>>2]&-17;return 0}return-1}function wca(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;c=xb-16|0;xb=c;if(f){d=h<<2;while(1){h=e;while(1){uc(J[a+ -68>>2],K[i|0],K[j|0],K[k|0],c+12|0,c+8|0,c+4|0);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;h=h-1|0;if(h)continue;break}k=g+k|0;j=g+j|0;i=g+i|0;b=b+d|0;f=f-1|0;if(f)continue;break}}xb=c+16|0}function XH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{e=J[a+32>>2];if(!e)break a;f=J[b>>2];b=((P(f,506952113)&1073741823)>>>0)%M[a+24>>2]|0;c=P(b,12)+e|0;d=J[c+4>>2];if(!(d&2))break a;if(J[c>>2]!=(f|0)){h=J[a+20>>2];c=0;while(1){c=c+1|0;b=c+b&h;g=P(b,12)+e|0;d= -J[g+4>>2];if(!(d&2))break a;if(J[g>>2]!=(f|0))continue;break}}if(!(d&1))break a;J[(P(b,12)+e|0)+4>>2]=d&-2;J[a+12>>2]=J[a+12>>2]-2}}function uU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;a:{b:{c:{if((a|0)!=(b|0)){g=J[194954];J[194954]=0;Vd();d=xb-16|0;xb=d;sq(d,a,e+12|0,1);f=nq(J[d>>2],J[d+4>>2],J[d+8>>2],J[d+12>>2]);xb=d+16|0;a=J[194954];if(!a)break c;if(J[e+12>>2]!=(b|0))break b;h=f;if((a|0)!=68)break a;break b}J[c>>2]=4;break a}J[194954]=g;if(J[e+12>>2]==(b|0))break a}J[c>> -2]=4;f=h}xb=e+16|0;return+f}function zN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(b){h=142;g=L[a+152>>1];if(!g)break b;f=J[a+156>>2];i=f+(g<<4)|0;while(1){d:{if(J[f>>2]==(b|0)){g=J[f+12>>2];if(g)break d}f=f+16|0;if(i>>>0>f>>>0)continue;break b}break}c=J[f+8>>2]+c|0;break c}g=J[J[a+104>>2]+4>>2]}if(!e){f=g;break a}f=J[e>>2];if(f)break a;J[e>>2]=g;h=0}return h|0}return Mn(J[a+104>>2],c,d,f)|0}function R7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=6;b=ac(c); -f=b+6|0;a:{b:{if((b|0)<=-6){if(f)break a;a=0;break b}a=J[a>>2];a=Ab[J[a+4>>2]](a,f)|0;if(!a)return 64;Nb(a,0,f)}g=0;c=Mb(a,c,b);a=c+b|0;b=K[11728]|K[11729]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[11724]|K[11725]<<8|(K[11726]<<16|K[11727]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;J[d>>2]=c;J[e>>2]=0}return g|0}function CO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;f=J[a+4>>2];e=0-f|0;a:{if((e&(c+f|0)-1)!=(c|0))break a;c=c>>J[a>>2];if((c|0)<0|c>>>0>=M[a+96>>2])break a;c=(J[a+56>>2]+ -(b>>3)|0)-P(c,J[a+104>>2])|0;H[c|0]=K[c|0]|128>>>(b&7);e=0-J[a+4>>2]|0}b:{if((d&e)!=(d|0))break b;c=d>>J[a>>2];if((c|0)<0|c>>>0>=M[a+96>>2])break b;a=(J[a+56>>2]+(b>>3)|0)-P(c,J[a+104>>2])|0;H[a|0]=K[a|0]|128>>>(b&7)}}function $B(a,b,c){var d=0;a:{if(!c)break a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(!a)break a;d=J[a+4>>2];if(!d)break a;d=J[d+24>>2];if(!d)break a;Ab[d|0](a,c);if((b&-3)==1){J[c>>2]=J[c>>2]&-64;J[c+4>>2]=J[c+4>>2]&-64;J[c+8>>2]=J[c+8>>2]+63&-64;J[c+12>>2]=J[c+12>>2]+63&-64}if((b& --2)!=2)break a;J[c>>2]=J[c>>2]>>6;J[c+4>>2]=J[c+4>>2]>>6;J[c+8>>2]=J[c+8>>2]>>6;J[c+12>>2]=J[c+12>>2]>>6}}function md(a,b){var c=0,d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+3>>>0)break d;e=J[a+20>>2];e:{if(e){f=d+12|0;if((Ab[e|0](a,c,f,4)|0)!=4)break d;c=J[a+8>>2];b=f;break e}b=J[a>>2];if(!b)break c;b=b+c|0}b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+4}xb=d+16|0;return g} -function xC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=Qb(40);J[d>>2]=0;d=wd(a+624|0,1,d,4);i=yb;a:{b:{while(1){if(e){h=-1;break a}J[195395]=0;h=aa(1702,a|0,b|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;c:{d:{if(!e)break d;g=J[195396];if(!g)break d;f=Sb(J[e>>2],d,i);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;break a}break}Kb(d);gd(e,g);B()}a=Z()|0;Kb(d);ba(a|0);B()}Kb(d);return h}function wq(a,b,c){var d=0,e=0,f=0;d=J[c+16>>2];a:{if(!d){if(yq(c))break a;d=J[c+16>>2]}e=J[c+20>>2];if(d-e>>> -0>>0)return Ab[J[c+36>>2]](c,a,b)|0;b:{c:{if(!b|J[c+80>>2]<0)break c;d=b;while(1){f=a+d|0;if(K[f-1|0]!=10){d=d-1|0;if(d)continue;break c}break}e=Ab[J[c+36>>2]](c,a,d)|0;if(e>>>0>>0)break a;b=b-d|0;e=J[c+20>>2];break b}f=a;d=0}Mb(e,f,b);J[c+20>>2]=J[c+20>>2]+b;e=b+d|0}return e}function pP(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;a:{d=a?a+b|0:0;if(d>>>0<=a>>>0)break a;d=d-a|0;d=b>>>0>d>>>0?d:b;if(!d)break a;b=0;if((d|0)!=1){i=d&-2;while(1){e=a+b|0;f=K[e|0];H[e|0]=f^c>>>8;g=(b|1)+a| -0;e=K[g|0];c=P(c+f|0,52845)+22719|0;H[g|0]=e^c>>>8;c=P(c+e|0,52845)+22719&65535;b=b+2|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(d&1))break a;a=a+b|0;H[a|0]=K[a|0]^c>>>8}}function mA(a,b){var c=0,d=0,e=0,f=0;a:{e=a+24|0;c=J[e>>2];if(!c)break a;d=e;while(1){f=M[c+16>>2]>>0;d=f?d:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(e|0)|M[d+16>>2]>b>>>0)break a;b:{c:{d:{b=J[d+20>>2];switch((Ab[J[J[b>>2]+8>>2]](b)|0)-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}J[J[a>>2]+ -20>>2]=b+4;return}J[J[a>>2]+28>>2]=b+4;return}J[J[a>>2]+24>>2]=b+4}}function Pba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((c|0)>0){a=J[a+12>>2];while(1){d=J[a>>2];I[b>>1]=d>>>16;e=(+((d&255)>>>0)+.5)*.0024390243902439024*32768;a:{if(R(e)<2147483648){f=~~e;break a}f=-2147483648}I[b+4>>1]=f;e=(+((d>>>8&255)>>>0)+.5)*.0024390243902439024*32768;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}I[b+2>>1]=d;a=a+4|0;b=b+6|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}}}function AC(a,b,c){var d=0,e=0,f=0,g= -0,h=0,i=0;d=Qb(40);J[d>>2]=0;d=wd(a+624|0,1,d,4);i=yb;a:{b:{while(1){if(e){h=-1;break a}J[195395]=0;h=aa(1732,a|0,b|0,c|0)|0;e=J[195395];J[195395]=0;if((e|0)==1)break b;f=-1;c:{d:{if(!e)break d;g=J[195396];if(!g)break d;f=Sb(J[e>>2],d,i);if(!f)break c;yb=g}e=yb;if((f|0)==1)continue;break a}break}Kb(d);gd(e,g);B()}a=Z()|0;Kb(d);ba(a|0);B()}Kb(d);return h}function bga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];g=P(J[b+36>>2],L[c+18>> -1]);h=P(J[b+4>>2],L[c+2>>1]);i=g+h|0;j=P(J[b+32>>2],L[c+16>>1]);b=P(J[b>>2],L[c>>1])+4|0;c=j+b|0;H[f|0]=K[a+(i+c>>>3&1023)|0];H[f+1|0]=K[a+(c-i>>>3&1023)|0];c=J[d+4>>2]+e|0;d=h-g|0;b=b-j|0;H[c|0]=K[a+(d+b>>>3&1023)|0];H[c+1|0]=K[a+(b-d>>>3&1023)|0]}function NS(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-16|0;xb=c;J[a>>2]=0;J[a+4>>2]=0;J[c+4>>2]=0;d=a+8|0;J[d>>2]=0;H[d+128|0]=0;J[c>>2]=a;d=J[c>>2];H[c+8|0]=0;J[c+4>>2]=d;a:{if(!b)break a;J[195395]=0;$(3756,a|0,b|0);d=J[195395];J[195395]=0;if((d|0)!=1){J[195395]= -0;$(3757,a|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)break a}a=Z()|0;ux(c+4|0);ba(a|0);B()}b=c+4|0;H[b+4|0]=1;ux(b);xb=c+16|0;return a|0}function jd(a,b){var c=0,d=0,e=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{c=J[b+4>>2];if(c){if(c>>>0>=268435456){J[195395]=0;ea(1813,a|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;B()}J[195395]=0;e=c<<4;c=_(1078,e|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[a+4>>2]=c;J[a>>2]=c;d=c+e|0;J[a+8>>2]=d;qc(c,J[b>>2],e);J[a+4>>2]=d}return a}c=Z()|0;b=J[a>>2];if(b){J[a+ -4>>2]=b;Kb(b)}ba(c|0);B()}function aE(a,b,c){var d=0,e=0,f=0,g=0;g=xb-32|0;H[g+23|0]=0;d=g+23|0;while(1){if(!(!c&(f|0)>0)){d=d-1|0;e=c;c=(c>>>0)/10|0;e=K[(e-P(c,10)|0)+255328|0];H[d|0]=e;f=f+1|0;if(d>>>0>g>>>0)continue}break}a:{if(b-1>>>0>7)break a;a=((b<<5)+a|0)-32|0;if(!a)break a;f=0;b:{if(!d|!e)break b;c=0;while(1){H[a+c|0]=e;f=c+1|0;if(c>>>0>29)break b;e=K[d+1|0];d=d+1|0;c=f;if(e)continue;break}}H[a+f|0]=0}}function zC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Qb(40);J[c>>2]=0;c=wd(a+624|0,1,c,4);h= -yb;a:{b:{while(1){if(d){g=-1;break a}J[195395]=0;g=aa(1194,a|0,b|0,1)|0;d=J[195395];J[195395]=0;if((d|0)==1)break b;e=-1;c:{d:{if(!d)break d;f=J[195396];if(!f)break d;e=Sb(J[d>>2],c,h);if(!e)break c;yb=f}d=yb;if((e|0)==1)continue;break a}break}Kb(c);gd(d,f);B()}a=Z()|0;Kb(c);ba(a|0);B()}Kb(c);return g}function FC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Qb(40);J[c>>2]=0;c=wd(a+624|0,1,c,4);h=yb;a:{b:{while(1){if(d){g=-1;break a}J[195395]=0;g=aa(1178,a|0,b|0,1)|0;d=J[195395];J[195395]=0;if((d|0)==1)break b; -e=-1;c:{d:{if(!d)break d;f=J[195396];if(!f)break d;e=Sb(J[d>>2],c,h);if(!e)break c;yb=f}d=yb;if((e|0)==1)continue;break a}break}Kb(c);gd(d,f);B()}a=Z()|0;Kb(c);ba(a|0);B()}Kb(c);return g}function pk(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b=J[a+4>>2];if(!b)break a;a=J[a+44>>2];if(!a)break a;g=a&-2;h=a&1;b=b+40|0;e=255/(a-1>>>0)|0;a=0;while(1){d=b+(a<<2)|0;c=P(a,e);H[d+1|0]=c;H[d+2|0]=c;H[d|0]=c;c=a|1;d=b+(c<<2)|0;c=P(c,e);H[d+1|0]=c;H[d+2|0]=c;H[d|0]=c;a=a+2|0;f=f+2|0;if((g|0)!=(f|0))continue; -break}if(!h)break a;b=b+(a<<2)|0;a=P(a,e);H[b+1|0]=a;H[b+2|0]=a;H[b|0]=a}}function OI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;e=xb-16|0;xb=e;J[e+12>>2]=c;b=J[a+116>>2];f=J[b+32>>2];a:{if((f|0)!=J[193807]){c=J[a+120>>2];g=e+12|0;b=J[b+12>>2];if(b)b=J[b+12>>2];else b=0;a=Ab[f|0](a,c,1,g,0,d,0,b)|0;break a}a=J[a+20>>2];J[d>>2]=0;b=J[a+116>>2];f=J[b+28>>2];g=J[a+120>>2];b=J[b+12>>2];if(b)b=J[b+8>>2];else b=0;a=Ab[f|0](a,g,c,d,b)|0}xb=e+16|0;return a|0}function Ev(a,b){a=a|0;b=b|0;var c=0, -d=0,e=0;e=6;d=J[a+868>>2];a:{if(!d|L[a+648>>1]<=b>>>0)break a;e=8;b=J[d+8>>2]+(b<<1)|0;b=K[b|0]<<8|K[b+1|0];c=L[a+660>>1];if(L[d+2>>1]>>0)break a;e=0;if(!c)break a;a=J[a+672>>2];c=a+(c<<2)|0;b=J[d+4>>2]+(b<<2)|0;while(1){H[a|0]=K[b|0];H[a+1|0]=K[b+1|0];H[a+2|0]=K[b+2|0];H[a+3|0]=K[b+3|0];b=b+4|0;a=a+4|0;if(c>>>0>a>>>0)continue;break}}return e|0}function _ca(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;h=h<<2;while(1){f= -f-1|0;g=e;while(1){a=K[i+7|0];J[b>>2]=a<<24|((P(a,K[i+1|0])+127&65535)>>>0)/255|((P(a,K[i+3|0])+127&65535)>>>0)/255<<8|((P(a,K[i+5|0])+127&65535)>>>0)/255<<16;b=b+4|0;i=c+i|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+h|0;if(f)continue;break}}}function OF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-6;a:{if(!b|(c|0)!=56|K[b|0]!=49)break a;if(!a)return-2;J[a+24>>2]=0;b=J[a+32>>2];if(!b){J[a+40>>2]=0;J[a+32>>2]=1044;b=1044}if(!J[a+36>>2])J[a+36>>2]=1045;c=Ab[b|0](J[a+40>>2],1,7120)|0;if(!c)return-4;J[a+28>>2]= -c;d=0;J[c+56>>2]=0;J[c>>2]=a;J[c+4>>2]=16180;b=PF(a,15);if(!b)break a;Ab[J[a+36>>2]](J[a+40>>2],c);J[a+28>>2]=0;d=b}return d|0}function GC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Qb(40);J[c>>2]=0;c=wd(a+624|0,1,c,4);h=yb;a:{b:{while(1){if(d){g=-1;break a}J[195395]=0;g=ca(1164,a|0,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break b;e=-1;c:{d:{if(!d)break d;f=J[195396];if(!f)break d;e=Sb(J[d>>2],c,h);if(!e)break c;yb=f}d=yb;if((e|0)==1)continue;break a}break}Kb(c);gd(d,f);B()}a=Z()|0;Kb(c);ba(a|0);B()}Kb(c); -return g}function M9(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;c=J[a+584>>2];J[c+68>>2]=0;g=c- -64|0;a:{while(1){e=jg(g,4);if(e>>>0<=1){b=J[c+80>>2];f=J[a+600>>2];if((b|0)!=(f|0)){J[a+608>>2]=f-b;Xc(a);J[c+76>>2]=J[a+596>>2];J[c+80>>2]=J[a+600>>2]}b=1;if((e|0)!=1)continue;break a}break}b=J[a+628>>2];a=J[a>>2];J[d+4>>2]=J[c+88>>2];J[d>>2]=a;Ob(b,289081,265088,d);b=0}xb=d+16|0;return b|0}function nd(a,b){var c=0,d=0;c=xb-32|0;xb=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>> -2]=0;J[c+4>>2]=c+8;d=J[a+664>>2];a:{if(J[d>>2]==(b|0)?d:0)break a;d=J[a+656>>2];b:{if(!d)break b;J[c+16>>2]=0;J[c+8>>2]=b;d=Bq(c+4|0,d,J[a+660>>2]);if(!d){J[a+664>>2]=0;break b}d=J[d>>2];J[a+664>>2]=d;if(d)break a}a=J[a+628>>2];J[c>>2]=b;Ob(a,269087,269390,c);d=0}xb=c+32|0;return d}function ww(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-32|0;xb=d;e=Sg(d+8|0,c);J[195395]=0;c=d+20|0;fa(4047,c|0,b|0,e|0);f=J[195395];J[195395]=0;a:{b:{if((f|0)!=1){J[195395]=0;a=ca(4048,a|0,c|0)|0;f=J[195395];J[195395]= -0;if((f|0)==1)break b;Yb(c);Yb(e);J[a>>2]=773528;c=J[b+4>>2];J[a+8>>2]=J[b>>2];J[a+12>>2]=c;xb=d+32|0;return a|0}c=Z()|0;break a}c=Z()|0;Yb(d+20|0)}Yb(e);ba(c|0);B()}function fi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!(!a|!b)){d=I[a+2>>1];a:{if(!d){d=0;a=0;break a}c=J[a+4>>2];e=J[c+4>>2];f=J[c>>2];if((d|0)<2){d=e;a=f;break a}i=(d<<3)+c|0;h=c+8|0;a=f;d=e;while(1){g=J[c+12>>2];d=(d|0)<(g|0)?g:d;e=(e|0)>(g|0)?g:e;c=J[c+8>>2];a=(a|0)<(c|0)?c:a;f=(c|0)<(f|0)?c:f;c=h;h=c+8|0;if(i>>>0>h>>>0)continue;break}}J[b+ -8>>2]=a;J[b>>2]=f;J[b+12>>2]=d;J[b+4>>2]=e}}function yj(a,b,c){if(K[a+11664|0]){H[a+11665|0]=1;Di(a,J[a+11736>>2],J[a+11740>>2]);if(K[a+11744|0])Vk(a,a+8|0,a+11704|0,J[a+11712>>2],J[a+11716>>2],1);H[a+11744|0]=0;I[a+11664>>1]=0}J[a+11720>>2]=b;J[a+11736>>2]=b;H[a+11667|0]=1;J[a+11740>>2]=c;J[a+11724>>2]=c;b=a+8|0;c=J[a+11676>>2];if(!(K[c+5|0]?0:K[a+20|0]))Uk(b,J[a+11668>>2],J[a+11672>>2],c,J[a+11680>>2],0);Mb(a+3876|0,b,3868)}function nr(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=Qb(40);J[e>>2]=0;e=wd(a+ -4|0,1,e,4);h=yb;a=0;a:{b:{while(1){if(a)break a;J[195395]=0;aa(1702,b|0,c|0,d|0)|0;a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;Kb(e);ba(a|0);B()}f=-1;c:{d:{if(!a)break d;g=J[195396];if(!g)break d;f=Sb(J[a>>2],e,h);if(!f)break c;yb=g}a=yb;if((f|0)!=1)break b;continue}break}Kb(e);gd(a,g);B()}i=1}Kb(e);return i}function gO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[b>>2]+1|0;if(c>>>0<=65535){h=b;d=J[a+16>>2];a=K[d+6|0]<<8|K[d+7|0];c=a>>>0>>0?c:a;b=c-a|0;g=K[d+9|0]|K[d+8|0]<<8;e=0;a:{if(b>>> -0>=g>>>0)break a;a=(d+(b<<1)|0)+10|0;while(1){f=K[a+1|0]|K[a|0]<<8;e=c;if(f)break a;if(c>>>0>65534)return 0;a=a+2|0;c=c+1|0;b=b+1|0;if(g>>>0>b>>>0)continue;break}f=0;e=0}J[h>>2]=e}return f|0}function fN(a,b){a=a|0;b=b|0;var c=0,d=0;c=Ab[J[a+516>>2]](a,1330851634,b,0)|0;a:{if(c)break a;d=a+372|0;c=Nc(b,95440,d);if(c)break a;J[a+468>>2]=0;J[a+460>>2]=0;J[a+464>>2]=0;J[a+452>>2]=0;J[a+456>>2]=0;I[a+472>>1]=65535;if(!L[a+372>>1])return 0;c=Nc(b,95616,d);if(c)break a;if(L[d>>1]<2)return 0;c=Nc(b,95632, -d);if(c)break a;c=0;if(L[d>>1]<5)break a;c=Nc(b,95664,d)}return c|0}function zM(a){a=a|0;var b=0,c=0,d=0;b=J[a+196>>2];d=b+10|0;if(d>>>0<=M[a+200>>2]){c=K[b|0]|K[b+1|0]<<8;I[a+32>>1]=c<<8|c>>>8;c=K[b+2|0]|K[b+3|0]<<8;J[a+36>>2]=(c<<8|c>>>8)<<16>>16;c=K[b+4|0]|K[b+5|0]<<8;J[a+40>>2]=(c<<8|c>>>8)<<16>>16;c=K[b+6|0]|K[b+7|0]<<8;J[a+44>>2]=(c<<8|c>>>8)<<16>>16;b=K[b+8|0]|K[b+9|0]<<8;J[a+196>>2]=d;J[a+48>>2]=(b<<8|b>>>8)<<16>>16;a=0}else a=20;return a|0}function uda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e= -0;a:{d=J[a+4>>2];if(!d)break a;if(d>>>0>=4){e=d&-4;a=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];H[b+3|0]=K[c+3|0]+K[b+3|0];b=b+4|0;c=c+4|0;a=a+4|0;if((e|0)!=(a|0))continue;break}}d=d&3;if(!d)break a;a=0;while(1){H[b|0]=K[c|0]+K[b|0];b=b+1|0;c=c+1|0;a=a+1|0;if((d|0)!=(a|0))continue;break}}}function Yga(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;a:{if((d|0)<=0)break a;g=J[a+112>>2];if(!g)break a;j=J[J[a+480>>2]+24>>2];while(1){a=J[(e<<2)+ -b>>2];c=g;while(1){h=(J[(K[a|0]>>>1&124)+j>>2]+(K[a+1|0]<<4&4032)|0)+(K[a+2|0]>>>2&62)|0;i=L[h>>1];f=i+1|0;I[h>>1]=(f|0)!=(f&65535)?i:f;a=a+3|0;c=c-1|0;if(c)continue;break}e=e+1|0;if((e|0)!=(d|0))continue;break}}}function EC(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=Qb(40);J[b>>2]=0;b=wd(a+624|0,1,b,4);g=yb;a:{b:{while(1){if(c){f=-1;break a}J[195395]=0;f=_(1179,a|0)|0;c=J[195395];J[195395]=0;if((c|0)==1)break b;d=-1;c:{d:{if(!c)break d;e=J[195396];if(!e)break d;d=Sb(J[c>>2],b,g);if(!d)break c;yb=e}c=yb;if((d| -0)==1)continue;break a}break}Kb(b);gd(c,e);B()}a=Z()|0;Kb(b);ba(a|0);B()}Kb(b);return f}function sV(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+24>>2];if(c>>>0>M[a+44>>2])J[a+44>>2]=c;a:{c=J[a+8>>2];d=J[a+12>>2];if(c>>>0>=d>>>0)break a;if((b|0)==-1){J[a+16>>2]=J[a+44>>2];J[a+12>>2]=d-1;J[a+8>>2]=c;return((b|0)!=-1?b:0)|0}d=J[a+12>>2]-1|0;if(!(K[a+48|0]&16)&K[d|0]!=(b&255))break a;c=J[a+8>>2];J[a+16>>2]=J[a+44>>2];J[a+12>>2]=d;J[a+8>>2]=c;H[J[a+12>>2]]=b;return b|0}return-1}function U1(a,b,c){a=a|0;b=b|0;c= -c|0;var d=0,e=0;J[a+8>>2]=b;J[a>>2]=388672;if(c){O[a+16>>3]=O[c+16>>3];O[a+24>>3]=O[c+24>>3];O[a+32>>3]=O[c+32>>3];d=O[c+40>>3];J[a+68>>2]=0;J[a+4>>2]=0;O[a+40>>3]=d;J[a+4>>2]=J[c+4>>2];if(b){b=Ab[J[J[b>>2]+16>>2]](b)|0;c=J[b+12>>2];e=J[b+4>>2];O[a+48>>3]=O[a+32>>3]/R(+(J[b+8>>2]-J[b>>2]|0));O[a+56>>3]=O[a+40>>3]/R(+(c-e|0))}I[a+64>>1]=0}return a|0}function oW(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;c=J[a>>2];a:{if(!c)break a;f=J[a+32>>2];b=tc(f,J[a+4>>2],d+12|0);J[a>>2]=b;if(J[d+ -12>>2])break a;Mb(b,c,J[a+4>>2]);e=J[a+16>>2];if((e|0)>0){h=J[a>>2]-c|0;b=J[a+24>>2];e=b+(e<<2)|0;while(1){g=J[b>>2];if(g)J[b>>2]=h+g;b=b+4|0;if(e>>>0>b>>>0)continue;break}}J[a+8>>2]=J[a+4>>2];if(c)Ab[J[f+8>>2]](f,c)}xb=d+16|0}function UU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=xb-16|0;xb=g;e=J[b>>2];a:{if(!e|!c)break a;d=a?d:0;while(1){f=Wm(d>>>0<4?g+12|0:a,J[e>>2],0);if((f|0)==-1){h=-1;break a}if(a){if(d>>>0<=3){if(d>>>0>>0)break a;Mb(a,g+12|0,f)}d=d-f|0;a=a+f|0}else a=0;if(!J[e>> -2]){e=0;break a}h=f+h|0;e=e+4|0;c=c-1|0;if(c)continue;break}}if(a)J[b>>2]=e;xb=g+16|0;return h|0}function IC(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=Qb(40);J[d>>2]=0;d=wd(a+4|0,1,d,4);g=yb;a=0;a:{b:{while(1){if(a)break a;J[195395]=0;aa(1178,b|0,c|0,1)|0;a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;Kb(d);ba(a|0);B()}e=-1;c:{d:{if(!a)break d;f=J[195396];if(!f)break d;e=Sb(J[a>>2],d,g);if(!e)break c;yb=f}a=yb;if((e|0)!=1)break b;continue}break}Kb(d);gd(a,f);B()}h=1}Kb(d);return h}function jD(a,b){var c=0,d= -0,e=0,f=0,g=0,h=0;c=xb-16|0;xb=c;a:{b:{d=K[b+2|0];c:{if((d-13&255)>>>0<244)break c;e=K[b+3|0];if((e-32&255)>>>0<225)break c;f=K[b+4|0];if(f>>>0>23)break c;g=K[b+6|0];if(g>>>0<61)break b}Wb(a,257122);break a}h=L[b>>1];H[c+13|0]=f;H[c+12|0]=e;H[c+11|0]=d;H[c+10|0]=h;H[c+9|0]=h>>>8;b=K[b+5|0];H[c+15|0]=g;H[c+14|0]=b;ye(a,1950960965,c+9|0,7)}xb=c+16|0}function eQ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;J[e+12>>2]=c;if(c){if(K[a+11|0]>>>7|0)g=J[a+4>>2];else g=K[a+11|0]&127;if(K[a+ -11|0]>>>7|0)c=J[a>>2];else c=a;f=g-b|0;J[e+8>>2]=f;d=xb-16|0;xb=d;xb=d+16|0;d=e+8|0;h=e+12|0;d=J[(M[d>>2]>2]?d:h)>>2];J[e+12>>2]=d;if((d|0)!=(f|0)){b=(b<<2)+c|0;Zk(b,b+(d<<2)|0,f-d|0);f=J[e+12>>2]}Pp(a,c,g-f|0)}xb=e+16|0}function caa(a,b){a=a|0;b=b|0;b=Qb(148);J[a+584>>2]=b;if(b){J[b+144>>2]=0;J[b+96>>2]=0;J[b+116>>2]=0;J[b+80>>2]=J[a+8>>2];J[a+556>>2]=1743;J[a+548>>2]=1743;J[a+540>>2]=1743;J[a+520>>2]=1744;J[a+516>>2]=1745;J[a+572>>2]=1746;J[a+560>>2]=1747;J[a+552>>2]=1747;J[a+544>>2]=1747; -J[a+536>>2]=1748;J[a+532>>2]=1749;J[a+524>>2]=1750;kr(a);return 1}Ob(J[a+628>>2],263526,264012,0);return 0}function Lba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>0){a=J[a+12>>2];while(1){g=c;c=L[a>>1];e=c&32767;f=0;a:{if(!e)break a;d=Oh((+(e>>>0)+.5)*.0027076061740622863+-44.3614195558365);d=c<<16>>16<0?-d:d;f=0;if(d<=0)break a;e=d>=1;d=Y(d)*256;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}f=e?255:c}e=f;a=a+2|0;c=g-1|0;H[b|0]=e;b=b+1|0;if(g>>>0>1)continue;break}}}function F1(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+4>>2];J[a+2748>>2]=b;c=J[b+28>>2];J[a+4>>2]=J[b+44>>2];J[a+8>>2]=J[b+48>>2];J[a+12>>2]=J[b+9848>>2];J[a+16>>2]=J[b+9852>>2];d=J[b+24>>2];f=d&-3;c=!(H[e+12|0]&1)&(f|0)!=1?c:c|1;J[a+2740>>2]=K[J[J[b+36>>2]+388>>2]+20|0]?c:c|8;c=a;a=(d&-2)==2;b=a|2;e=(d|0)==4?b:a;a=(d|0)==2;b=a?b:e;b=(f|0)==1?b:b|4;J[c+2744>>2]=a?b|8:b;return 0}function Tb(a,b,c,d,e,f){var g=0;if((b|c|d)<0){J[f>>2]=6;return e}a:{if(!(d?b:0)){if(!e)break a;Ab[J[a+8>>2]](a,e);break a}g=10;b:{if((2147483647/ -(b>>>0)|0)<(d|0))break b;c:{if(!c){e=Ab[J[a+4>>2]](a,P(b,d))|0;g=!e<<6;break c}a=Ab[J[a+12>>2]](a,P(b,c),P(b,d),e)|0;e=a?a:e;g=!a<<6}if(g|(c|0)>=(d|0)|!e)break b;g=0;Nb(P(b,c)+e|0,0,P(d-c|0,b))}J[f>>2]=g;return e}J[f>>2]=0;return 0}function Hg(a){var b=0,c=0,d=0;d=xb-32|0;xb=d;a:{if(!J[a+72>>2])break a;c=J[a+68>>2];if(!c)break a;b=Kpa(L[a+84>>1],0,c,0);if(zb){b=J[a>>2];c=J[a+628>>2];J[d+16>>2]=266154;Ob(c,b,267921,d+16|0);b=0}b:{if(L[a+138>>1]!=1)break b;c=L[a+98>>1];b=Kpa(c,0,b,0);if(!c|!zb)break b; -b=J[a>>2];a=J[a+628>>2];J[d>>2]=266154;Ob(a,b,267921,d);b=0}b=(b>>>3|0)+((b&7)!=0)|0}xb=d+32|0;return b}function DC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Qb(40);J[c>>2]=0;c=wd(a+624|0,1,c,4);g=yb;a:{b:{while(1){if(d)break a;J[195395]=0;fa(1190,a|0,b|0,0);d=J[195395];J[195395]=0;if((d|0)==1){a=Z()|0;Kb(c);ba(a|0);B()}e=-1;c:{d:{if(!d)break d;f=J[195396];if(!f)break d;e=Sb(J[d>>2],c,g);if(!e)break c;yb=f}d=yb;if((e|0)!=1)break b;continue}break}Kb(c);gd(d,f);B()}h=1}Kb(c);return h}function bda(a,b,c,d, -e,f,g,h,i){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;if(!(!f|!e)){c=L[a+26>>1];d=P(g,c);h=h<<2;while(1){f=f-1|0;g=e;while(1){a=K[i+3|0];J[b>>2]=a<<24|((P(a,K[i|0])+127&65535)>>>0)/255|((P(a,K[i+1|0])+127&65535)>>>0)/255<<8|((P(a,K[i+2|0])+127&65535)>>>0)/255<<16;i=c+i|0;b=b+4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+h|0;if(f)continue;break}}}function tda(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;e=J[a+4>>2];a=K[c|0];d=a+K[b|0]|0;H[b|0]=d;if((e|0)>=2){l=b+e| -0;b=b+1|0;while(1){h=d&255;d=h-a|0;f=d>>31;e=K[c+1|0];g=e-a|0;i=g>>31;j=d+g|0;k=j>>31;m=a;a=(d^f)-f|0;d=(g^i)-i|0;f=a>>>0>>0;d=K[b|0]+((k^j)-k>>>0<(f?a:d)>>>0?m:f?e:h)|0;H[b|0]=d;c=c+1|0;a=e;b=b+1|0;if(l>>>0>b>>>0)continue;break}}}function j9(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;b=J[a+12>>2];if(b){Ab[J[J[b>>2]+12>>2]](b)|0;J[a+12>>2]=0}b=0;c=J[a+8>>2];if(c){d=a,e=Ab[J[J[c>>2]+52>>2]](c)|0,J[d+12>>2]=e;b=J[a+8>>2];e=0,f=Ab[J[J[b>>2]+24>>2]](b)|0,d=J[J[0]+24>>2],Ab[d](e|0,f|0);b=J[a+12>>2];Ab[J[J[b>> -2]+68>>2]](b,0);b=J[a+12>>2]}J[J[a+16>>2]+24>>2]=b;a=J[a+20>>2];J[(J[J[a>>2]-12>>2]+a|0)+24>>2]=b;return 0}function N9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;d=J[a+584>>2];J[d+64>>2]=b;J[d+68>>2]=c;b=d- -64|0;a:{while(1){if(jg(b,0)){b=J[a+628>>2];a=J[a>>2];J[e+4>>2]=J[d+88>>2];J[e>>2]=a;Ob(b,289095,267980,e);a=0;break a}if(!J[d+80>>2]){J[a+608>>2]=J[a+600>>2];Xc(a);J[d+76>>2]=J[a+596>>2];J[d+80>>2]=J[a+600>>2]}if(J[d+68>>2])continue;break}a=1}xb=e+16|0;return a|0}function uia(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+928>>2];a:{if(!e)break a;c=J[a+16>>2];if((c|0)!=J[b+16>>2])break a;d=J[a+20>>2];if((d|0)!=J[b+20>>2])break a;d=P(c,d);c=J[a+928>>2];if(!c){c=Qb(d);J[a+928>>2]=c;if(!c)break a;e=J[b+928>>2]}Mb(c,e,d);c=J[b+384>>2];J[a+380>>2]=J[b+380>>2];J[a+384>>2]=c;c=J[b+376>>2];J[a+372>>2]=J[b+372>>2];J[a+376>>2]=c;f=1}return f|0}function lr(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Qb(40);J[c>>2]=0;c=wd(a+624|0,1,c,4);g=yb;a:{b:{while(1){if(d)break a;J[195395]=0;$(1189,a|0,b|0);d= -J[195395];J[195395]=0;if((d|0)==1){a=Z()|0;Kb(c);ba(a|0);B()}e=-1;c:{d:{if(!d)break d;f=J[195396];if(!f)break d;e=Sb(J[d>>2],c,g);if(!e)break c;yb=f}d=yb;if((e|0)!=1)break b;continue}break}Kb(c);gd(d,f);B()}h=1}Kb(c);return h}function ho(a,b){var c=0,d=0,e=0,f=0,g=0;if(a){d=J[a+4>>2];a:{if(!d)break a;c=J[a+20>>2];if((d|0)!=1){g=d&-2;while(1){e=J[c>>2];if(e)Ab[J[b+8>>2]](b,e);J[c>>2]=0;e=J[c+4>>2];if(e)Ab[J[b+8>>2]](b,e);J[c+4>>2]=0;c=c+8|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(d&1))break a; -d=J[c>>2];if(d)Ab[J[b+8>>2]](b,d);J[c>>2]=0}c=J[a+20>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+20>>2]=0}}function xc(a,b,c){var d=0,e=0,f=0;d=xb-32|0;xb=d;J[d+28>>2]=c;e=ek(a,b);a:{if(!e){c=J[a+628>>2];J[d>>2]=J[a>>2];J[d+8>>2]=b;J[d+4>>2]=b>>>0>65535?266449:267142;Ob(c,265275,265562,d);break a}if(!(K[e+14|0]|(!(K[a+12|0]&64)|(b|0)==257))){b=J[a+628>>2];a=J[a>>2];J[d+20>>2]=J[e+16>>2];J[d+16>>2]=a;Ob(b,265275,267261,d+16|0);break a}f=Ab[J[a+668>>2]](a,b,c)|0}xb=d+32|0;return f}function hia(a,b){a=a|0;b=b|0; -var c=0,d=0,e=0,f=0,g=0;H[a+24|0]=0;d=J[a+4>>2];a:{if(!d)break a;c=J[a+16>>2];e=J[a+20>>2];b:{if((c|0)<(e|0))break b;f=e;e=c+1|0;if(f>>>0>=e>>>0)break b;c=(e&-65536)+65536|0;d=ic(d,c);J[a+20>>2]=c;H[a+12|0]=1;J[a+4>>2]=d;if(!d)break a;c=J[a+16>>2]}g=1;J[a+16>>2]=c+1;H[c+d|0]=b;b=J[a+16>>2];if((b|0)<=J[a+8>>2])break a;J[a+8>>2]=b}return g|0}function Zh(a,b){var c=0;a:{if(!b)break a;if(b&1){c=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=c;c=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=c;a=a+4|0;c=b-1|0}else c=b;if((b|0)== -1)break a;while(1){b=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=b;b=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=b;b=K[a+7|0];H[a+7|0]=K[a+4|0];H[a+4|0]=b;b=K[a+6|0];H[a+6|0]=K[a+5|0];H[a+5|0]=b;a=a+8|0;c=c-2|0;if(c)continue;break}}}function Fw(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=xb-16|0;xb=f;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;a:{if(d-e>>>0>=c>>>0){if(!c)break a;if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;Hf(d+(e<<2)|0,b,c);b=c+e|0;sg(a,b);J[f+12>>2]=0; -J[d+(b<<2)>>2]=J[f+12>>2];break a}Yk(a,d,(c-d|0)+e|0,e,e,0,c,b)}xb=f+16|0;return a|0}function Dv(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;J[b>>2]=0;a:{if(!a)break a;d=J[a+8>>2];if(!d)break a;e=J[J[a>>2]>>2];while(1){g=J[J[a>>2]+(f<<2)>>2];h=K[g|0];if(h){while(1){H[c+e|0]=h;c=c+1|0;h=K[g+1|0];g=g+1|0;if(h)continue;break}d=J[a+8>>2]}f=f+1|0;if(f>>>0>>0){H[c+e|0]=32;d=J[a+8>>2];c=c+1|0}if(d>>>0>f>>>0)continue;break}if((e|0)!=24081)H[c+e|0]=0;J[b>>2]=c}return e}function jW(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0; -J[a+8>>2]=c;J[a+4>>2]=b;J[a+12>>2]=0;J[a+16>>2]=d;J[a>>2]=b;b=J[7595];J[a+20>>2]=J[7594];J[a+24>>2]=b;b=J[7597];J[a+28>>2]=J[7596];J[a+32>>2]=b;b=J[7599];J[a+36>>2]=J[7598];J[a+40>>2]=b;b=J[7601];J[a+44>>2]=J[7600];J[a+48>>2]=b;b=J[7603];J[a+52>>2]=J[7602];J[a+56>>2]=b;b=J[7605];J[a+60>>2]=J[7604];J[a+64>>2]=b;J[a+68>>2]=J[7606]}function fma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:switch(b-6078|0){case 0:J[c>>2]=6081;J[d>>2]=6078;return 1;case 1:J[c>>2]=6081;J[d>>2]=6079;return 1;case 2:J[c>>2]=6081;J[d>> -2]=6080;return 1;case 6:J[c>>2]=6081;J[d>>2]=6084;return 1;case 7:J[c>>2]=6081;J[d>>2]=6085;return 1;default:break a}a=J[a+12>>2];J[c>>2]=b;J[d>>2]=0;return(Ab[J[a+40>>2]](a,b,c,d,J[a+72>>2])|0)!=0|0}function Ska(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[c>>2];g=J[c+4>>2];e=J[c+8>>2];a:{if((g|0)>(e+5|0)){f=d;break a}if(!d){f=Qb(800);J[c+4>>2]=200;J[c>>2]=f;e=0;break a}f=Qb(g<<3);e=Mb(f,d,e<<2);Kb(d);J[c+4>>2]=g<<1;J[c>>2]=e;e=J[c+8>>2]}d=(e<<2)+f|0;J[d>>2]=2;J[d+4>>2]=J[a>>2];J[d+8>>2]=J[a+ -4>>2];J[d+12>>2]=J[b>>2];a=J[b+4>>2];J[c+8>>2]=e+5;J[d+16>>2]=a;return 0}function tpa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=h|0;var i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=0;i=N[b+8>>2];j=N[b+16>>2];k=N[b+12>>2];l=N[c+16>>2];N[c+16>>2]=k*l;N[c+12>>2]=Q(i*N[c+12>>2])+Q(j*l);a=J[b>>2];h=J[a+20>>2];m=J[b+4>>2];d=Q(Q(i*d)+Q(j*e));e=Q(k*e);f=Q(Q(i*f)+Q(j*g));g=Q(k*g);b=J[a+32>>2];if(b)b=J[b+8>>2];else b=0;Ab[h|0](a,m,c,d,e,f,g,b)}function eo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f= -0,g=0;e=L[a+26>>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=d;return}a=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0;a:switch(e-1|0){case 3:c=a;e=K[a|0];a=4-((b|0)%2<<2)&252;H[c|0]=e&(15<>2]=0;b=wd(a+624|0,1,b,4);f=yb;a:{b:{while(1){if(c)break a;J[195395]=0;$(1193,a|0,0);c=J[195395];J[195395]=0;if((c|0)==1){a=Z()|0;Kb(b);ba(a|0);B()}d=-1;c:{d:{if(!c)break d;e=J[195396];if(!e)break d;d=Sb(J[c>>2],b,f);if(!d)break c;yb=e}c=yb;if((d|0)!=1)break b;continue}break}Kb(b);gd(c,e);B()}g=1}Kb(b);return g}function wla(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=h|0; -var i=Q(0),j=Q(0),k=Q(0);a:{i=N[b>>2];j=N[b+8>>2];b:{if(i>j){j=d;i=e;break b}j=d<=j?j:d;d=d>=i?i:d;if(j>2];i=e<=i?i:e;k=N[b+4>>2];e=e>=k?k:e}N[b+12>>2]=g<=i?i:g;N[b+8>>2]=f<=j?j:f;N[b+4>>2]=e<=g?e:g;N[b>>2]=d<=f?d:f;return}N[b+12>>2]=g;N[b>>2]=f;N[b+8>>2]=f;N[b+4>>2]=g}function tF(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=a+c|0;g=f>>31;h=b+d|0;i=h>>31;e=c;c=c>>31;c=(e^c)-c|0;e=d;d=d>>31;d=(e^d)-d|0;e=a;a=a>>31;a=(e^a)-a|0;e=b;b=b>>31;b=(e^b)-b|0;c=(P(c>>>0>>0?c:d,3)>>>3|0)+(c>>>0> -d>>>0?c:d)+((P(a>>>0>>0?a:b,3)>>>3|0)+(a>>>0>b>>>0?a:b))|0;a=(g^f)-g|0;b=(i^h)-i|0;a=(P(a>>>0>>0?a:b,3)>>>3|0)+(a>>>0>b>>>0?a:b)|0;return(c-a|0)<(a>>>4|0)}function dM(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;d=I[a+298>>1];e=P(d,b>>16);b=P(d,b&65535);d=e<<16;f=b+d|0;a=I[a+300>>1];g=P(a,c&65535);c=P(a,c>>16);h=c<<16;a=g+h|0;i=f+a|0;c=((((((e>>16)+(b>>31)|0)+(g>>31)|0)+(c>>16)|0)+(d>>>0>f>>>0)|0)+(a>>>0>>0)|0)+(a>>>0>i>>>0)|0;b=c>>31;a=i+b|0;return((b+c|0)+(a>>>0>>0)|0)+(a>>> -0>4294959103)<<18|a- -8192>>>14}function bM(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;d=I[a+294>>1];e=P(d,b>>16);b=P(d,b&65535);d=e<<16;f=b+d|0;a=I[a+296>>1];g=P(a,c&65535);c=P(a,c>>16);h=c<<16;a=g+h|0;i=f+a|0;c=((((((e>>16)+(b>>31)|0)+(g>>31)|0)+(c>>16)|0)+(d>>>0>f>>>0)|0)+(a>>>0>>0)|0)+(a>>>0>i>>>0)|0;b=c>>31;a=i+b|0;return((b+c|0)+(a>>>0>>0)|0)+(a>>>0>4294959103)<<18|a- -8192>>>14}function zba(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;if((c|0)>0)while(1){g=J[a+600>> -2];e=J[a+608>>2];f=(c+e|0)>(g|0)?g-e|0:c;d=b;h=J[a+604>>2];if((h|0)!=(b|0)){Pc(h,b,f);g=J[a+600>>2];e=J[a+608>>2];d=J[a+604>>2]}e=e+f|0;J[a+608>>2]=e;J[a+604>>2]=d+f;a:{if((e|0)<(g|0))break a;if(Xc(a))break a;return-1}b=b+f|0;c=c-f|0;if((c|0)>0)continue;break}return 1}function hT(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;e=xb-16|0;xb=e;f=J[a+4>>2];d=J[c>>2]-J[a>>2]|0;a:{if(d>>>0<2147483647){d=d<<1;break a}d=-1}d=d>>>0<=1?1:d;h=J[b>>2];i=J[a>>2];g=ic((f|0)!=3689?J[a>>2]:0,d);if(g){if((f| -0)!=3689)J[a>>2]=0;J[e+4>>2]=627;f=Id(e+8|0,g,e+4|0);Fx(a,f);Ic(f);J[b>>2]=J[a>>2]+(h-i|0);J[c>>2]=d+J[a>>2];xb=e+16|0;return}Np();B()}function Fe(a){var b=0,c=0,d=0;d=xb-16|0;xb=d;A(+a);c=v(1)|0;v(0)|0;c=c&2147483647;a:{if(c>>>0<=1072243195){b=1;if(c>>>0<1044816030)break a;b=jl(a,0);break a}b=a-a;if(c>>>0>=2146435072)break a;c=pz(a,d);a=O[d+8>>3];b=O[d>>3];b:switch(c&3){case 0:b=jl(b,a);break a;case 1:b=-il(b,a,1);break a;case 2:b=-jl(b,a);break a;default:break b}b=il(b,a,1)}xb=d+16|0;return b}function Ax(a, -b,c){var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=xb-32|0;xb=d;Yw(d+24|0,a,b);dq(d+16|0,J[d+24>>2],J[d+28>>2],c);g=J[d+16>>2];b=xb-16|0;xb=b;J[b+12>>2]=a;a=xb-16|0;xb=a;f=b+12|0;J[a+12>>2]=J[f>>2];xb=a+16|0;a=Fm(f,g-J[a+12>>2]>>2);xb=b+16|0;J[d+12>>2]=a;J[d+8>>2]=(J[d+20>>2]-c|0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];xb=d+32|0;xb=e+16|0;return J[e+12>>2]}function H7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+12>>2]=24;J[d+8>>2]=39;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;I[a+16>>1]=L[a+ -16>>1]+1;Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],d+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,1);Lb(J[a+4>>2],c+13|0,1);Lb(J[a+4>>2],c+14|0,1);Lb(J[a+4>>2],c+15|0,1);Lb(J[a+4>>2],c+16|0,4);xb=d+16|0}function Bx(a,b,c){var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=xb-32|0;xb=d;Yw(d+24|0,a,b);dq(d+16|0,J[d+24>>2],J[d+28>>2],c);g=J[d+16>>2];b=xb-16|0;xb=b;J[b+12>>2]=a;a=xb-16|0;xb=a;f=b+12|0;J[a+12>>2]=J[f>>2];xb=a+16|0;a=Tp(f,g-J[a+12>>2]|0);xb=b+16|0;J[d+12>>2]=a;J[d+8>>2]=(J[d+20>>2]-c| -0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];xb=d+32|0;xb=e+16|0;return J[e+12>>2]}function ue(a){var b=0,c=0,d=0;c=xb-16|0;xb=c;A(+a);b=v(1)|0;v(0)|0;b=b&2147483647;a:{if(b>>>0<=1072243195){if(b>>>0<1045430272)break a;a=il(a,0,0);break a}if(b>>>0>=2146435072){a=a-a;break a}b=pz(a,c);a=O[c+8>>3];d=O[c>>3];b:switch(b&3){case 0:a=il(d,a,1);break a;case 1:a=jl(d,a);break a;case 2:a=-il(d,a,1);break a;default:break b}a=-jl(d,a)}xb=c+16|0;return a}function Ix(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;e=xb-16|0;xb=e;f=J[a+4>>2];d=J[c>>2]-J[a>>2]|0;a:{if(d>>>0<2147483647){d=d<<1;break a}d=-1}d=d?d:4;h=J[b>>2];i=J[a>>2];g=ic((f|0)!=3689?J[a>>2]:0,d);if(g){if((f|0)!=3689)J[a>>2]=0;J[e+4>>2]=627;f=Id(e+8|0,g,e+4|0);Fx(a,f);Ic(f);J[b>>2]=J[a>>2]+(h-i|0);J[c>>2]=J[a>>2]+(d&-4);xb=e+16|0;return}Np();B()}function Ag(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=420496;a:{if(K[a+80|0])break a;b=J[a+76>>2];if(!b)break a;Kb(Fq(b));J[a+76>>2]=0}d=J[a+84>>2];if(d){b=d;c=J[a+88>>2];if((b|0)!=(c|0)){while(1){if(H[c- -5|0]<0)Kb(J[c-16>>2]);b=c-28|0;if(H[c-17|0]<0)Kb(J[b>>2]);c=b;if((b|0)!=(d|0))continue;break}b=J[a+84>>2]}J[a+88>>2]=d;Kb(b)}if(H[a+71|0]<0)Kb(J[a+60>>2]);return a|0}function P1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[c>>2];if((d|0)!=J[c+4>>2]){Zq(a,d);e=J[c>>2];if(J[c+4>>2]-e>>>0>8){d=1;while(1){Bn(a,(d<<3)+e|0);d=d+1|0;e=J[c>>2];if(d>>>0>2]-e>>3>>>0)continue;break}}d=J[a+208>>2];a:{if(!d)break a;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break a;d=J[a+208>>2]}Ab[J[J[d>>2]+384>>2]](d, -b,c)}nl(a);Cg(a,1,1,1)}}function O1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[c>>2];if((d|0)!=J[c+4>>2]){Yq(a,d);e=J[c>>2];if(J[c+4>>2]-e>>>0>4){d=1;while(1){An(a,(d<<2)+e|0);d=d+1|0;e=J[c>>2];if(d>>>0>2]-e>>2>>>0)continue;break}}d=J[a+208>>2];a:{if(!d)break a;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break a;d=J[a+208>>2]}Ab[J[J[d>>2]+388>>2]](d,b,c)}nl(a);Cg(a,1,1,1)}}function Jm(a,b,c){var d=0,e=0;if(c&2048){H[a|0]=43;a=a+1|0}if(c&1024){H[a|0]=35;a=a+1|0}d=c&260;if((d|0)!=260){H[a| -0]=46;H[a+1|0]=42;a=a+2|0}c=c&16384;while(1){e=K[b|0];if(e){H[a|0]=e;a=a+1|0;b=b+1|0;continue}break}a:{b:{if((d|0)!=256){if((d|0)!=4)break b;b=c?70:102;break a}b=c?69:101;break a}b=c?65:97;if((d|0)==260)break a;b=c?71:103}H[a|0]=b;return(d|0)!=260}function zk(a){var b=0,c=0,d=0;if(K[a+62|0]){a:{if(J[a+84>>2]==J[a+80>>2]){b=J[a+72>>2];if((b|0)==J[a+64>>2])break a}if(!ec(a,1,1))return;c=J[a+80>>2]+P(J[a+64>>2],20)|0;d=J[c+4>>2];b=J[a+84>>2]+P(J[a+72>>2],20)|0;J[b>>2]=J[c>>2];J[b+4>>2]=d;J[b+16>>2]= -J[c+16>>2];d=J[c+12>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=d;b=J[a+72>>2]}J[a+72>>2]=b+1}J[a+64>>2]=J[a+64>>2]+1}function zca(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){c=h<<2;a=g<<1;while(1){f=f-1|0;h=0;while(1){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|K[l+1|0]<<24;b=b+4|0;l=l+2|0;k=k+2|0;j=j+2|0;i=i+2|0;h=h+1|0;if((h|0)!=(e|0))continue;break}b=b+c|0;l=a+l|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f)continue;break}}}function rQ(a,b){a=a|0;b=b|0; -var c=0,d=0;c=xb-16|0;xb=c;d=J[a+8>>2];J[c+12>>2]=a+8;J[c+4>>2]=d;J[c+8>>2]=(b<<2)+d;b=J[c+4>>2];a:{while(1){if(J[c+8>>2]==(b|0))break a;a=J[c+4>>2];J[195395]=0;J[a>>2]=0;a=J[195395];J[195395]=0;if((a|0)!=1){b=J[c+4>>2]+4|0;J[c+4>>2]=b;continue}break}a=Z()|0;J[J[c+12>>2]>>2]=J[c+4>>2];ba(a|0);B()}J[J[c+12>>2]>>2]=J[c+4>>2];xb=c+16|0}function YA(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;e=I[d+2>>1];f=+(e|0);d=I[d>>1];g=+(d|0);h=+I[c+2>>1];i=+I[c>>1];j=+I[b+2>>1];k=+I[b>>1];b= -J[a+156>>2];a:{if(b){if(Zj(b,k,j,i,h,g,f))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}b=J[a+208>>2];if(!b)break a;Ab[J[J[b>>2]+40>>2]](b,k,j,i,h,g,f)}a=J[a+120>>2];J[a+680>>2]=d;J[a+684>>2]=e}function XA(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;e=J[d+4>>2];f=+(e|0);d=J[d>>2];g=+(d|0);h=+J[c+4>>2];i=+J[c>>2];j=+J[b+4>>2];k=+J[b>>2];b=J[a+156>>2];a:{if(b){if(Zj(b,k,j,i,h,g,f))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}b=J[a+208>>2];if(!b)break a;Ab[J[J[b>>2]+40>>2]](b, -k,j,i,h,g,f)}a=J[a+120>>2];J[a+680>>2]=d;J[a+684>>2]=e}function LN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=6;a=J[a+140>>2];a:{if(!a|!b|(!J[a+72>>2]|!K[b|0]))break a;b=Pe(b,J[a+92>>2]);if(!b)break a;a=J[a+80>>2];if(!a)break a;b:{c:{d:{e:{a=a+(J[b>>2]<<4)|0;switch(J[a+4>>2]-1|0){case 2:break c;case 1:break d;case 0:break e;default:break a}}J[c>>2]=1;break b}J[c>>2]=2;break b}J[c>>2]=3}J[c+4>>2]=J[a+12>>2];d=0}return d|0}function Jp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=xb-16|0;xb=f;d=K[a+11|0]>>>7| -0?(J[a+8>>2]&2147483647)-1|0:10;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;a:{if(d-e>>>0>=c>>>0){if(!c)break a;if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;$g(d+e|0,b,c);b=c+e|0;sg(a,b);H[f+15|0]=0;H[b+d|0]=K[f+15|0];break a}Mw(a,d,(c-d|0)+e|0,e,e,0,c,b)}xb=f+16|0;return a|0}function PH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(J[b+8>>2]==(a|0)|M[b+12>>2]>2]>>>0)break a;b:switch(K[a|0]){case 0:d=J[b+12>>2];a=a+1|0;c=J[b+4>>2];if(d>>>0>>0|d>>>0>>0)break a;c=J[b+8>>2]-a|0;a=J[b+ -40>>2];if(c>>>0>>0)break a;a=J[b+16>>2]-a|0;J[b+16>>2]=a;return(a|0)>0|0;case 3:break b;default:break a}e=RH(a+1|0,b,c)}return e|0}function IM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;f=J[a+16>>2];d=L[a+8>>1];c=d>>>1|0;b=Tb(b,1,0,c+1|0,0,e+12|0);xb=e+16|0;if(J[e+12>>2])b=g;else{a=0;a:{if(d>>>0<2)break a;g=c>>>0<=1?1:c;while(1){c=K[f+1|0];d=c|K[f|0]<<8;if(!d)break a;H[a+b|0]=d-128>>>0<4294967200?63:c;f=f+2|0;a=a+1|0;if((g|0)!=(a|0))continue;break}a=g}H[a+b|0]=0}return b|0}function iy(a, -b){var c=0,d=0;b=!J[a+24>>2]|b;J[a+16>>2]=b;if(b&J[a+20>>2]){c=xb-16|0;xb=c;b=pg(16);a=xb-16|0;xb=a;if(!K[781592])H[781592]=1;d=a+8|0;J[d+4>>2]=776408;J[d>>2]=1;d=J[a+12>>2];c=c+8|0;J[c>>2]=J[a+8>>2];J[c+4>>2]=d;xb=a+16|0;J[195395]=0;aa(3611,b|0,226069,c|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1){xa(b|0,760628,3612);B()}a=Z()|0;Wk(b);ba(a|0);B()}}function gh(a,b,c){var d=0,e=0,f=0,g=0;d=ac(b)+ac(c)|0;e=d+1|0;a:{b:{if(d>>>0>=2147483647){a=0;if(!e)break b;break a}a=Ab[J[a+4>>2]](a,e)|0;if(!a)return 0; -Nb(a,0,e)}d=ac(b)+1|0;while(1){c:{e=0;if(!d)break c;d=d-1|0;e=d+b|0;if(K[e|0]!=47)continue}break}d:{if(e){d=b;b=(e-b|0)+1|0;f=oc(a,d,b)+b|0,g=0,H[f|0]=g;b=e+1|0;break d}H[a|0]=0}a=cz(cz(a,c),b)}return a}function Yn(a){var b=0,c=0,d=0,e=0,f=0,g=0;if(!a)return;c=J[a+96>>2];if(!c)return;d=J[a+128>>2];b=J[d+64>>2];J[d+64>>2]=b-1;if((b|0)<=1){b=J[c+16>>2];if(!b)return;e=c+16|0;d=J[c+8>>2];a:{while(1){if(J[b+8>>2]==(a|0))break a;b=J[b+4>>2];if(b)continue;break}return}f=J[b>>2];g=f?f+4|0:e;e=J[b+4>>2];J[g>> -2]=e;J[(e?e:c+20|0)>>2]=f;Ab[J[d+8>>2]](d,b);mk(d,a,c)}}function kz(a,b,c,d){var e=0;a:{b:{c:{if(!((d|0)!=4096|(a|0)<0)){if(K[b|0])break c;a=lb(a|0,c|0)|0;break a}d:{if((a|0)!=-100){e=K[b|0];if(!d&(e|0)==47)break d;if((d|0)!=256|(e|0)!=47)break c;break b}if((d|0)==256)break b;if(d)break c}a=kb(b|0,c|0)|0;break a}a=jb(a|0,b|0,c|0,d|0)|0;break a}a=ib(b|0,c|0)|0}if(a>>>0>=4294963201){J[194954]=0-a;a=-1}return a}function af(a,b){a=a|0;b=b|0;var c=0,d=0;if(!J[a+4>>2]){if(J[a>>2]){J[a+4>>2]=0;Kb(J[a+8>> -2])}J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;return}b=J[a+4>>2];if(b)while(1){c=(J[a+8>>2]+P(b,12)|0)-12|0;d=J[c+8>>2];c=J[c+4>>2];J[a+4>>2]=b-1;td();if(d)Ab[d|0](c);b=J[a+4>>2];if(b)continue;break}if(J[a>>2]){J[a+4>>2]=0;Kb(J[a+8>>2])}J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;td()}function O6(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;J[e+12>>2]=40;J[e+8>>2]=45;J[a+8>>2]=J[a+8>>2]+40;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+ -4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);xb=e+16|0}function N6(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;J[e+12>>2]=40;J[e+8>>2]=55;J[a+8>>2]=J[a+8>>2]+40;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);xb=e+16|0}function M6(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;J[e+12>>2]=40;J[e+8>>2]=46;J[a+8>>2]=J[a+8>>2]+40;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);xb=e+16|0}function G6(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;J[e+12>>2]=40;J[e+8>>2]=47;J[a+8>>2]=J[a+8>>2]+40;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2], -e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2],c,4);Lb(J[a+4>>2],c+4|0,4);Lb(J[a+4>>2],d,4);Lb(J[a+4>>2],d+4|0,4);xb=e+16|0}function jQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[b>>2];while(1){d=d+1|0;if(d>>>0>255){J[b>>2]=0;return 0}f=Ab[J[a+20>>2]](L[J[a+16>>2]+(d<<1)>>1])|0;g=J[a+24>>2];a:{if(g){h=J[a+28>>2];c=0;while(1){e=J[(c<<2)+h>>2];if(!(!e|K[e|0]!=K[f|0]))if(!fc(e,f))break a;c=c+1|0;if((g|0)!=(c|0))continue; -break}}c=0}if(!c)continue;break}J[b>>2]=d;return c|0}function Ms(a,b,c){var d=0;d=-6;a:{if(!c|K[c|0]!=49)break a;if(!a)return-2;J[a+24>>2]=0;c=J[a+32>>2];if(!c){J[a+40>>2]=0;J[a+32>>2]=1044;c=1044}if(!J[a+36>>2])J[a+36>>2]=1045;c=Ab[c|0](J[a+40>>2],1,7120)|0;if(!c)return-4;J[a+28>>2]=c;J[c+56>>2]=0;J[c>>2]=a;J[c+4>>2]=16180;b=PF(a,b);d=0;if(!b)break a;Ab[J[a+36>>2]](J[a+40>>2],c);J[a+28>>2]=0;d=b}return d}function d3(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d;var e=0;J[a>>2]=406948;e=gA(a+8|0,b?J[J[b>>2]-12>> -2]+b|0:0,c,d);J[a>>2]=394888;J[e>>2]=395580;J[a+108>>2]=0;J[195395]=0;b=a+112|0;J[b>>2]=0;J[b+4>>2]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;b=J[195395];J[195395]=0;if((b|0)!=1)return a|0;a=Z()|0;Ag(e);ba(a|0);B()}function apa(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;a=J[b>>2];b=J[b+32>>2];g=0;J[195395]=0;c=aa(690,b|0,c|0,a|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1){a:{if(c)break a;b=J[b+84>>2];if(J[b+72>>2]!=1869968492|I[b+110>>1]>>> -0<=d>>>0)break a;b=J[b+112>>2]+(d<<3)|0;J[e>>2]=J[b>>2];J[f>>2]=J[b+4>>2];g=1}td();return g|0}b=Z()|0;td();ba(b|0);B()}function Oda(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!(J[a+8>>2]&512)|(!a|!b))break a;b:{c:{d=J[a+128>>2];c=J[d+40>>2];switch(c+2|0){case 0:break a;case 2:break c;default:break b}}c=J[a+96>>2];e=J[J[c>>2]+32>>2];d:{if(!e){c=0;break d}c=Ab[e|0](c,9305)|0;d=J[a+128>>2]}J[d+40>>2]=c?c:-2}if(!c)break a;c=J[c+4>>2];if(!c)break a;f=Ab[c|0](a,b)|0}return f|0}function N1(a,b,c){a=a|0; -b=b|0;c=c|0;var d=0,e=0;d=J[c>>2];if((d|0)!=J[c+4>>2]){Zq(a,d);e=J[c>>2];if(J[c+4>>2]-e>>>0>8){d=1;while(1){Bn(a,(d<<3)+e|0);d=d+1|0;e=J[c>>2];if(d>>>0>2]-e>>3>>>0)continue;break}}d=J[a+208>>2];a:{if(!d)break a;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break a;d=J[a+208>>2]}Ab[J[J[d>>2]+392>>2]](d,b,c)}Cg(a,1,0,1)}}function M1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[c>>2];if((d|0)!=J[c+4>>2]){Yq(a,d);e=J[c>>2];if(J[c+4>>2]-e>>>0>4){d=1;while(1){An(a,(d<<2)+e|0);d=d+1|0;e=J[c>>2];if(d>>> -0>2]-e>>2>>>0)continue;break}}d=J[a+208>>2];a:{if(!d)break a;if(J[a+156>>2]){if((Ab[J[J[d>>2]+96>>2]](d)|0)==4)break a;d=J[a+208>>2]}Ab[J[J[d>>2]+396>>2]](d,b,c)}Cg(a,1,0,1)}}function FP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(cf(a,J[b+8>>2],e)){if(!(J[b+28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{if(!cf(a,J[b>>2],e))break a;if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!=1)break a;J[b+32>>2]=1;return}J[b+20>>2]=c;J[b+32>>2]=d;J[b+40>>2]=J[b+40>>2]+1;if(!(J[b+36>>2]!=1|J[b+ -24>>2]!=2))H[b+54|0]=1;J[b+44>>2]=4}}function mfa(a){a=a|0;var b=0,c=0;b=J[a+408>>2];c=Ab[J[J[a+4>>2]>>2]](a,1,8192)|0;J[b+8>>2]=c;a=0;while(1){b=(a<<2)+c|0;J[b>>2]=P(a,19595);J[b+7168>>2]=P(a,-5329);J[b+6144>>2]=P(a,-27439);J[b+5120>>2]=(a<<15)+8421375;J[b+4096>>2]=P(a,-21709);J[b+3072>>2]=P(a,-11059);J[b+2048>>2]=P(a,7471)+32768;J[b+1024>>2]=P(a,38470);a=a+1|0;if((a|0)!=256)continue;break}}function ffa(a){a=a|0;var b=0,c=0;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]= -c;a:{if(c)break a;if(Ab[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=217;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(Ab[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}}function xf(a,b,c){var d=0,e=0,f=0;a:{b:{if(!a)break b;d=J[J[a>>2]+32>>2];if(d)d=Ab[d|0](a,b)|0;else d=0;if(d|!c)break a;c=J[a+4>>2];d=J[c+16>>2];if((d|0)<=0)break b;c=c+20|0;f=c+(d<<2)|0;while(1){e=J[c>>2];c:{if((e|0)==(a|0))break c;d=J[J[e>>2]+32>>2]; -if(!d)break c;d=Ab[d|0](e,b)|0;if(d)break a}c=c+4|0;if(f>>>0>c>>>0)continue;break}}d=0}return d}function g3(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+12>>2];if(b){e=J[a+28>>2];J[b+104>>2]=0;J[b+48>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;H[b+44|0]=0;J[b- -64>>2]=9;J[b+12>>2]=0;J[b+16>>2]=0;d=J[b+180>>2];c=J[b+100>>2];if((c|0)!=(b+112|0)){if(c)Ab[J[d+8>>2]](d,c);J[b+100>>2]=0}c=J[b+88>>2];if(c)Ab[J[d+8>>2]](d,c);b=Nb(b,0,184);if(b)Ab[J[e+8>>2]](e,b);J[a+12>>2]=0}}function ae(a,b){var c=0,d=0;c=J[a>>2];a:{if(c>>>0>= -b>>>0)break a;while(1){b:{c:switch(K[c|0]){case 0:case 9:case 10:case 12:case 13:case 32:break b;case 37:break c;default:break a}d=37;while(1){d:switch(d-10|0){case 0:case 3:break b;default:break d}c=c+1|0;if((c|0)!=(b|0)){d=K[c|0];continue}break}c=b}c=c+1|0;if(c>>>0>>0)continue;break}}J[a>>2]=c}function _N(a,b){a=a|0;b=b|0;var c=0,d=0;a=J[a+16>>2];c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(c>>>0>b>>>0)break a;b=b-c|0;c=K[a+16|0]|K[a+ -17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);if(b>>>0>=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0)break a;a=(a+20|0)+(b<<1)|0;d=K[a|0]<<8|K[a+1|0]}return d|0}function Te(a,b){var c=0,d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+3>>>0)break d;e=J[a+20>>2];e:{if(e){f=d+12|0;if((Ab[e|0](a,c,f,4)|0)!=4)break d;c=J[a+8>>2];b=f;break e}b=J[a>>2];if(!b)break c;b=b+c|0}g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+4}xb=d+16|0; -return g}function Aka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;if(!b)return 0;e=J[b+4>>2];a=J[b+12>>2];a:{if(e>>>0>=a+d>>>0)break a;if(J[b+20>>2]){a=e+(d>>>0<=65535?65535:d)|0;g=Qb(a);f=J[b>>2];e=Mb(g,f,e);Kb(f);J[b+4>>2]=a;J[b>>2]=e;a=J[b+12>>2];break a}d=e-a|0}Mb(J[b>>2]+a|0,c,d);a=J[b+12>>2]+d|0;J[b+12>>2]=a;if(a>>>0>M[b+8>>2])J[b+8>>2]=a;return d|0}function Zca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{b:{if(!fc(b,10266)){J[c>>2]=J[a+36>>2];J[c+4>>2]=J[a+40>>2];J[c+8>>2]=J[a+44>>2];J[c+12>> -2]=J[a+48>>2];J[c+16>>2]=J[a+52>>2];J[c+20>>2]=J[a+56>>2];J[c+24>>2]=J[a+60>>2];J[c+28>>2]=J[a- -64>>2];break b}if(!fc(b,10438)){J[c>>2]=J[a+28>>2];break b}d=12;if(fc(b,10703))break a;H[c|0]=K[a+32|0]}d=0}return d|0}function WZ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=6;f=J[a+280>>2];a:{if((f|0)<=0)break a;d=J[a+284>>2];a=0;while(1){b:{h=a;g=fc(J[P(a,12)+d>>2],b);a=a+1|0;if((f|0)<=(a|0))break b;if(g)continue}break}if(g)break a;b=P(h,12)+d|0;c:{if(K[b+4|0]){J[c>>2]=1;J[c+4>>2]=J[b+8>>2]; -break c}J[c>>2]=2;J[c+4>>2]=J[(P(a,12)+d|0)-4>>2]}e=0}return e|0}function Hga(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;if(J[a+316>>2]>0){f=J[d>>2];while(1){i=e|1;b=J[a+112>>2];if((b|0)>0){d=J[(e<<2)+f>>2];j=b+d|0;b=J[(g<<2)+c>>2];while(1){h=K[b|0];H[d+1|0]=h;H[d|0]=h;b=b+1|0;d=d+2|0;if(j>>>0>d>>>0)continue;break}b=J[a+112>>2]}Mg(f,e,f,i,1,b);g=g+1|0;e=e+2|0;if((e|0)>2])continue;break}}}function Gc(a,b,c,d){var e=0,f=0,g=0,h=0;g=P(b,c);e=J[d+72>>2];J[d+72>>2]=e-1|e;e=J[d+ -4>>2];f=J[d+8>>2];if((e|0)==(f|0))e=g;else{h=e;e=f-e|0;e=e>>>0>>0?e:g;Mb(a,h,e);J[d+4>>2]=e+J[d+4>>2];a=a+e|0;e=g-e|0}if(e)while(1){a:{if(!zq(d)){f=Ab[J[d+32>>2]](d,a,e)|0;if(f)break a}return(g-e>>>0)/(b>>>0)|0}a=a+f|0;e=e-f|0;if(e)continue;break}return b?c:0}function yC(a){var b=0,c=0,d=0,e=0,f=0;b=Qb(40);J[b>>2]=0;b=wd(a+624|0,1,b,4);f=yb;a:{b:{while(1){if(!c){J[195395]=0;ea(1733,a|0);c=J[195395];J[195395]=0;if((c|0)==1)break b;d=-1;c:{if(!c)break c;e=J[195396];if(!e)break c;d=Sb(J[c>>2],b,f); -if(!d)break a;yb=e}c=yb;if((d|0)==1)continue}break}Kb(b);return}a=Z()|0;Kb(b);ba(a|0);B()}Kb(b);gd(c,e);B()}function vx(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-16|0;xb=c;J[c+4>>2]=a;a=J[a+4>>2];J[c+8>>2]=a;J[c+12>>2]=a+(b<<2);b=J[c+8>>2];a=J[c+12>>2];a:{while(1){if((a|0)==(b|0))break a;J[195395]=0;J[b>>2]=0;d=J[195395];J[195395]=0;if((d|0)!=1){b=b+4|0;J[c+8>>2]=b;continue}break}a=Z()|0;J[J[c+4>>2]+4>>2]=J[c+8>>2];ba(a|0);B()}J[J[c+4>>2]+4>>2]=J[c+8>>2];xb=c+16|0}function rJ(a,b,c,d,e,f,g,h){a=a|0;b=b|0; -c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=h|0;var i=0,j=Q(0),k=Q(0);i=J[a+24>>2];d=Q(d+d);j=Q(Q(d+N[c+12>>2])*Q(.3333333432674408));e=Q(e+e);k=Q(Q(e+N[c+16>>2])*Q(.3333333432674408));d=Q(Q(d+f)*Q(.3333333432674408));e=Q(Q(e+g)*Q(.3333333432674408));h=J[a+32>>2];if(h)h=J[h+12>>2];else h=0;Ab[i|0](a,b,c,j,k,d,e,f,g,h)}function Gca(a,b,c,d,e,f,g,h,i){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;c=xb-16|0;xb=c;d=P(g,3);h=h<<2;while(1){g=e;while(1){uc(J[a+68>>2],K[i|0],K[i+1|0],K[i+2|0],c+12|0,c+8| -0,c+4|0);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i=i+3|0;b=b+4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+h|0;f=f-1|0;if(f)continue;break}xb=c+16|0}function aD(a){var b=0,c=0,d=0,e=0;c=xb-32|0;xb=c;e=J[a+56>>2];b=Kpa(e,0,L[a+84>>1],0);d=zb;if(!(!e|!d)){d=J[a>>2];b=J[a+628>>2];J[c+16>>2]=266170;Ob(b,d,267226,c+16|0);b=0}a:{if(L[a+138>>1]!=1)break a;d=L[a+98>>1];b=Kpa(d,0,b,0);e=zb;if(!d|!e)break a;b=J[a>>2];a=J[a+628>>2];J[c>>2]=266170;Ob(a,b,267226,c);b=0}xb=c+32|0;return(b>>>3|0)+ -((b&7)!=0)|0}function ipa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;if(!c){td();return 0}a=0;a:{b:{while(1){h=J[d>>2];i=J[b+32>>2];J[195395]=0;h=ca(683,i|0,h|0)|0;i=J[195395];J[195395]=0;if((i|0)==1)break a;J[f>>2]=h;if(!h)break b;f=f+g|0;d=d+e|0;a=a+1|0;if((c|0)!=(a|0))continue;break}a=c}td();return a|0}a=Z()|0;td();ba(a|0);B()}function dW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=J[a+84>>2];f=J[e>>2];d=J[e+4>>2];h=J[a+28>>2];g=J[a+20>>2]-h|0;g=d>>>0>>0? -d:g;if(g){Mb(f,h,g);f=g+J[e>>2]|0;J[e>>2]=f;d=J[e+4>>2]-g|0;J[e+4>>2]=d}d=c>>>0>d>>>0?d:c;if(d){Mb(f,b,d);f=d+J[e>>2]|0;J[e>>2]=f;J[e+4>>2]=J[e+4>>2]-d}H[f|0]=0;b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;return c|0}function D1(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;var h=0,i=0,j=0,k=0,l=0,m=0;h=+(g|0);i=+(f|0);j=+(e|0);k=+(d|0);l=+(c|0);m=+(b|0);b=J[a+156>>2];a:{if(b){if(Zj(b,m,l,k,j,i,h))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}b=J[a+208>>2];if(!b)break a;Ab[J[J[b>>2]+40>>2]](b, -m,l,k,j,i,h)}a=J[a+120>>2];J[a+680>>2]=f;J[a+684>>2]=g}function i7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-32|0;xb=f;J[f+24>>2]=c;J[f+28>>2]=b;J[f+20>>2]=d;J[f+16>>2]=e;J[f+12>>2]=24;J[f+8>>2]=32;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],f+8|0,4);Lb(J[a+4>>2],f+12|0,4);Lb(J[a+4>>2],f+28|0,4);Lb(J[a+4>>2],f+24|0,4);Lb(J[a+4>>2],f+20|0,4);Lb(J[a+4>>2],f+16|0,4);xb=f+32|0}function f7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-32|0;xb=f;J[f+24>>2]=c;J[f+28>> -2]=b;J[f+20>>2]=d;J[f+16>>2]=e;J[f+12>>2]=24;J[f+8>>2]=31;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],f+8|0,4);Lb(J[a+4>>2],f+12|0,4);Lb(J[a+4>>2],f+28|0,4);Lb(J[a+4>>2],f+24|0,4);Lb(J[a+4>>2],f+20|0,4);Lb(J[a+4>>2],f+16|0,4);xb=f+32|0}function r9(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=xb-16|0;xb=f;g=J[a+584>>2];e=Qb(c);a:{if(!e){a=J[a+628>>2];J[f>>2]=c;Ob(a,388496,269796,f);b=0;break a}e=Mb(e,b,c);if((c|0)>0){h=J[g+8>>2];b=e;i=c;while(1){Ab[J[g+24>>2]](a,b,h); -b=b+h|0;i=i-h|0;if((i|0)>0)continue;break}}b=Ab[J[g+20>>2]](a,e,c,d)|0;Kb(e)}xb=f+16|0;return b|0}function H9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=xb-16|0;xb=e;d=J[a+584>>2];if(K[a+48|0]&4){Ee(265463,13,1,b);a:{b:switch(J[d>>2]-1|0){case 0:Ee(265963,5,1,b);break a;case 1:Ee(266501,24,1,b);break a;case 2:break b;default:break a}Ee(267111,25,1,b)}f=J[d>>2];J[e+4>>2]=f;J[e>>2]=f;Sc(b,267746,e)}d=J[d+52>>2];if(d)Ab[d|0](a,b,c);xb=e+16|0}function oK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a>>2];d=J[a+ -44>>2];if(d){e=J[d>>2];if(!(!e|!J[e+96>>2]))J[e+88>>2]=d}d=Mr(J[c+504>>2],b);if(!d){b=J[J[c+504>>2]+88>>2];c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;J[a+36>>2]=J[b+36>>2];c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c}return d|0}function MP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb+-64|0;xb=d;e=1;a:{if(cf(a,b,0))break a;e=0;if(!b)break a;b=Bh(b,773780,773828,0);e=0;if(!b)break a;Nb(d+12|0,0,52);J[d+56>>2]=1;J[d+20>>2]=-1;J[d+16>>2]=a;J[d+8>>2]= -b;Ab[J[J[b>>2]+28>>2]](b,d+8|0,J[c>>2],1);a=J[d+32>>2];if((a|0)==1)J[c>>2]=J[d+24>>2];e=(a|0)==1}a=e;xb=d- -64|0;return a|0}function lU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];a:{if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=ie(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+68|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[f+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function bna(a){a=a|0;var b=0,c=0, -d=0;c=J[a+16>>2];if(M[a+20>>2]>=c+16>>>0){d=J[a+32>>2];b=Ck(a,J[c>>2],0);J[d+84>>2]=((b>>31)+b|0)+32768&-65536;b=Ck(a,J[c+4>>2],0);J[d+88>>2]=((b>>31)+b|0)+32768&-65536;b=Ck(a,J[c+8>>2],0);J[d+92>>2]=((b>>31)+b|0)+32768&-65536;a=Ck(a,J[c+12>>2],0);J[d+96>>2]=((a>>31)+a|0)+32768&-65536;a=0}else a=161;return a|0}function _5(a){a=a|0;var b=0,c=0;a:{b=J[a>>2];if(!b)break a;a=a+20|0;if(!a)break a;b=J[b>>2];if(!b)break a;b:{if(!(H[a+16|0]&1))break b;c=J[a+4>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+4>>2]=0;c=J[a+ -8>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+8>>2]=0;c=J[a+12>>2];if(!c)break b;Ab[J[b+8>>2]](b,c)}J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}}function Cp(a,b,c,d){H[a+53|0]=1;a:{if(J[a+4>>2]!=(c|0))break a;H[a+52|0]=1;c=J[a+16>>2];b:{if(!c){J[a+36>>2]=1;J[a+24>>2]=d;J[a+16>>2]=b;if((d|0)!=1)break a;if(J[a+48>>2]==1)break b;break a}if((b|0)==(c|0)){c=J[a+24>>2];if((c|0)==2){J[a+24>>2]=d;c=d}if(J[a+48>>2]!=1)break a;if((c|0)==1)break b;break a}J[a+36>>2]=J[a+36>>2]+1}H[a+54|0]=1}}function rc(a, -b){var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+1>>>0)break d;f=J[a+20>>2];e:{if(f){d=e+14|0;if((Ab[f|0](a,c,d,2)|0)!=2)break d;c=J[a+8>>2];break e}b=J[a>>2];if(!b)break c;d=b+c|0}b=K[d|0]|K[d+1|0]<<8;g=b<<8|b>>>8;break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+2}xb=e+16|0;return g&65535}function _i(a){J[a+556>>2]=1620;J[a+548>>2]=1621;J[a+540>>2]=1622;J[a+520>>2]=1623;J[a+516>>2]=1624;J[a+512>>2]=1;J[a+528>>2]=1;J[a+580>>2]=1625;J[a+576>>2]=1626;J[a+572>>2]= -1627;J[a+568>>2]=1628;J[a+564>>2]=1627;J[a+560>>2]=1629;J[a+552>>2]=1630;J[a+544>>2]=1631;J[a+536>>2]=1624;J[a+532>>2]=1623;J[a+524>>2]=1624;J[a+12>>2]=J[a+12>>2]&-131329}function Cc(a){var b=0,c=0;a:{if(!J[a+4>>2])break a;b=J[a+16>>2];b:{if(!b){J[a+20>>2]=2;break b}c:switch(J[a+20>>2]-2|0){case 1:J[a+20>>2]=1;break;case 0:break b;default:break c}c=Qb(b);if(!c)break a;b=Mb(c,J[a+12>>2],b);c=J[a+28>>2];if(c)Ab[c|0](J[a+24>>2]);J[a+28>>2]=627;J[a+24>>2]=b;J[a+12>>2]=b;J[a+20>>2]=2}return J[a+12>>2]}return 0} -function cla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-48|0;xb=e;J[e+24>>2]=c;J[e+20>>2]=b;J[e+16>>2]=17;b=Qb(32);J[b+24>>2]=1768386675;J[b+28>>2]=0;J[b+16>>2]=1768386662;J[b+20>>2]=0;J[b+8>>2]=1768386675;J[b+12>>2]=0;J[b>>2]=1768386662;J[b+4>>2]=0;J[e+40>>2]=4;J[e+44>>2]=b;a=qE(a,e+16|0,d,e+12|0);Kb(b);xb=e+48|0;return(a?0:J[e+12>>2])|0}function jL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a=J[a+532>>2];if(!a)return 6;d=J[a+4>>2];J[b>>2]=d;J[b+4>>2]=J[a>>2];if(!d)return 0;g=a+88|0;h=b+8|0; -b=0;while(1){c=P(b,12);e=c+h|0;J[e>>2]=J[(a+(b<<2)|0)+8>>2];c=c+g|0;f=J[c+4>>2];J[e+4>>2]=J[f>>2];J[e+8>>2]=J[((K[c|0]<<2)+f|0)-4>>2];b=b+1|0;if((d|0)!=(b|0))continue;break}return 0}function hP(a){a=a|0;var b=0;b=J[a+8>>2];Nb(a+16|0,0,84);J[a+136>>2]=39;J[a+132>>2]=40;J[a+128>>2]=41;J[a+124>>2]=42;J[a+120>>2]=43;J[a+116>>2]=44;J[a+108>>2]=45;J[a+104>>2]=46;J[a+100>>2]=47;J[a+12>>2]=b;J[a+164>>2]=39;J[a+160>>2]=48;J[a+156>>2]=49;J[a+152>>2]=50;J[a+148>>2]=43;J[a+144>>2]=51;b=a+12|0;J[a+112>>2]=b;J[a+ -140>>2]=b;return 0}function Pja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(!a)return(b?-1:0)|0;if(!b)return 1;c=K[a|0];a:{if(!c)break a;while(1){d=K[b|0];if(!d){e=c;break a}if(!((c|0)==(d|0)|((c-65>>>0<26?c|32:c)|0)==((d-65>>>0<26?d|32:d)|0))){e=c;break a}b=b+1|0;c=K[a+1|0];a=a+1|0;if(c)continue;break}}a=K[b|0];return(e-65>>>0<26?e|32:e)-(a-65>>>0<26?a|32:a)|0}function Ega(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;var h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;i=J[a+452>>2];j=J[i+16>>2];k=J[f>>2]; -J[h+12>>2]=0;l=b;b=g-k|0;Ab[J[J[a+472>>2]+4>>2]](a,l,c,d,J[i+12>>2],h+12|0,b>>>0>>0?b:j);Ab[J[J[a+480>>2]+4>>2]](a,J[i+12>>2],(J[f>>2]<<2)+e|0,J[h+12>>2]);J[f>>2]=J[f>>2]+J[h+12>>2];xb=h+16|0}function CI(a,b,c){var d=0,e=0,f=0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;d=J[a+116>>2];e=J[d+72>>2];f=J[a+120>>2];d=J[d+12>>2];if(!d)return Ab[e|0](a,f,b,c,0)|0;return Ab[e| -0](a,f,b,c,J[d+52>>2])|0}function Lh(a,b){a:{if((b|0)>=1024){a=a*8.98846567431158E307;if(b>>>0<2047){b=b-1023|0;break a}a=a*8.98846567431158E307;b=((b|0)>=3069?3069:b)-2046|0;break a}if((b|0)>-1023)break a;a=a*2.0041683600089728E-292;if(b>>>0>4294965304){b=b+969|0;break a}a=a*2.0041683600089728E-292;b=((b|0)<=-2960?-2960:b)+1938|0}x(0,0);x(1,b+1023<<20);return a*+z()}function nma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+12>>2];a:{if(Ab[J[e+24>>2]](e,b,J[e+56>>2])>>>0<=31){e=J[a+12>>2];f= -0;if(1<>2]](e,b,J[e+56>>2])&7168)break a}if(!((b|0)!=2479|(c|0)!=2492)){J[d>>2]=2527;return 1}a=J[a+12>>2];J[d>>2]=0;f=0;if(!b|!c)break a;f=(Ab[J[a+36>>2]](a,b,c,d,J[a+68>>2])|0)!=0}return f|0}function _A(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=J[a+156>>2];a:{if(d){if(le(d,b,c))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}d=J[a+208>>2];if(!d)break a;Ab[J[J[d>>2]+32>>2]](d,b,c)}d=J[a+120>>2];if(R(c)<2147483648)a=~~c;else a=-2147483648;if(R(b)<2147483648){J[d+680>>2]=~~b;J[d+684>>2]=a;return}J[d+ -680>>2]=-2147483648;J[d+684>>2]=a}function OO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=J[a+20>>2];a=(c+(J[a+16>>2]<<3)|0)-8|0;if(a>>>0>=c>>>0){while(1){e=(a-c>>4<<3)+c|0;d=J[e>>2];if((d|0)==(b|0)){f=e;break a}d=d&2147483647;f=(d|0)==(b|0)?e:f;if((a|0)!=(c|0)){d=b>>>0>d>>>0;c=d?e+8|0:c;a=d?a:e-8|0;if(c>>>0<=a>>>0)continue}break}if(f)break a}return 0}return J[f+4>>2]}function H1(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=J[a+156>>2];a:{if(d){if(ud(d,b,c))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}d=J[a+ -208>>2];if(!d)break a;Ab[J[J[d>>2]+36>>2]](d,b,c)}d=J[a+120>>2];if(R(c)<2147483648)a=~~c;else a=-2147483648;if(R(b)<2147483648){J[d+680>>2]=~~b;J[d+684>>2]=a;return}J[d+680>>2]=-2147483648;J[d+684>>2]=a}function pG(a,b,c,d){var e=0,f=0,g=0,h=0;a:{g=P(b,20)+a|0;e=g;f=L[e+16>>1];if(!f)break a;h=K[e+18|0];if(!(h&2))break a;I[e+16>>1]=0;e=(f<<16>>16)+b|0;if((e|0)==(d|0))break a;pG(a,e,c,d);b:{if((c&-2)==4){J[(P(e,20)+a|0)+12>>2]=0-J[g+12>>2];break b}J[(P(e,20)+a|0)+8>>2]=0-J[(P(b,20)+a|0)+8>>2]}a=P(e, -20)+a|0;I[a+16>>1]=0-f;H[a+18|0]=h}}function Uja(a){a=a|0;var b=0,c=0;c=xb-944|0;xb=c;b=Fd(c,0);J[195395]=0;WE(b,a);a=J[195395];J[195395]=0;a:{if((a|0)!=1){J[b>>2]=234140;J[195395]=0;_(1097,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;J[195395]=0;_(1098,b|0)|0;a=J[195395];J[195395]=0;if((a|0)==1)break a;xb=c+944|0;return}a=Z()|0;Nf(b);ba(a|0);B()}ga(0)|0;_b();B()}function oe(a){var b=0;a:{b=J[a+5820>>2];b:{if((b|0)==16){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];b=J[a+20>>2];J[a+ -20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];I[a+5816>>1]=0;b=0;break b}if((b|0)<8)break a;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];I[a+5816>>1]=K[a+5817|0];b=J[a+5820>>2]-8|0}J[a+5820>>2]=b}}function Dz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;J[c+12>>2]=0;a:{b:{d=K[b+11|0];e=d<<24>>24<0;f=e?J[b>>2]:b;if(f){b=e?J[b+4>>2]:d;if(b)break b}b=Ni(0,227733);J[a+4>>2]=b;break a}Rj(f,b,c+12|0,c+8|0,0);d=J[c+12>>2];b=Ni(d,227733);J[a+4>>2]=b;if(!d)break a;Kb(d);b=J[a+4>>2]}if(b)J[a+8>> -2]=0;xb=c+16|0;return(b|0)!=0|0}function uq(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=xb-240|0;xb=h;J[h>>2]=a;i=1;a:{if((d|0)<2)break a;k=0-b|0;f=a;while(1){f=f+k|0;j=d-2|0;g=f-J[(j<<2)+e>>2]|0;if((Li(a,g,c)|0)>=0)if((Li(a,f,c)|0)>=0)break a;l=g;g=(Li(g,f,c)|0)>=0;f=g?l:f;J[(i<<2)+h>>2]=f;i=i+1|0;d=g?d-1|0:j;if((d|0)>1)continue;break}}ez(b,h,i);xb=h+240|0}function Yg(a){var b=0,c=0,d=0,e=0;a:{if(J[a+12>>2]>0)break a;b:{c:{b=J[a>>2];d=J[a+8>>2];d:{if(b>>>0>=d>>>0)break d;while(1){c=1;e=b+1|0;J[a>> -2]=e;e:switch(K[b|0]-9|0){case 50:break b;case 1:case 4:break c;case 17:break d;case 0:case 23:break e;default:break a}b=e;if((d|0)!=(b|0))continue;break}}c=3;break b}c=2}J[a+12>>2]=c}}function Kia(a){a=a|0;var b=0;J[a>>2]=241492;b=J[a+944>>2];if(b)Kb($E(b));J[a>>2]=234140;J[195395]=0;_(1097,a|0)|0;b=J[195395];J[195395]=0;a:{b:{if(!((b|0)!=1?b:0)){if((b|0)==1)break a;J[195395]=0;_(1098,a|0)|0;b=J[195395];J[195395]=0;if(!b|(b|0)==1)break b}gd(b,J[195396]);B()}if((b|0)==1)break a;Kb(a);return}ga(0)| -0;_b();B()}function Eja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+4>>2]=240264;J[195395]=0;J[d+8>>2]=b;H[d+12|0]=!b;a=aa(1143,a|0,d+4|0,c|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){J[d+4>>2]=240264;b=J[d+8>>2];if(!(!b|!K[d+12|0]))sf(b);xb=d+16|0;return a|0}a=Z()|0;J[d+4>>2]=240264;b=J[d+8>>2];if(!(!b|!K[d+12|0]))sf(b);ba(a|0);B()}function Aja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+4>>2]=240264;J[195395]=0;J[d+8>>2]=b;H[d+12|0]=!b;a=aa(1147,a|0,d+4|0,c|0)|0;b=J[195395];J[195395]= -0;if((b|0)!=1){J[d+4>>2]=240264;b=J[d+8>>2];if(!(!b|!K[d+12|0]))sf(b);xb=d+16|0;return a|0}a=Z()|0;J[d+4>>2]=240264;b=J[d+8>>2];if(!(!b|!K[d+12|0]))sf(b);ba(a|0);B()}function kr(a){var b=0;b=J[a+584>>2];if(!Gg(a,388448,1)){Ob(J[a+628>>2],262983,264197,0);return}J[b+44>>2]=J[a+672>>2];J[a+672>>2]=1762;J[b+48>>2]=J[a+668>>2];J[a+668>>2]=1763;J[b+52>>2]=J[a+676>>2];J[a+676>>2]=1764;J[b+56>>2]=J[a+516>>2];J[a+516>>2]=1765;J[b+60>>2]=J[a+524>>2];J[a+524>>2]=1766;J[b+40>>2]=0;J[b+24>>2]=0;J[b>>2]=1}function oi(a){a= -a|0;var b=0,c=0,d=0;c=a+52|0;while(1){a:{b=J[c>>2];if(b)break a;if(!J[a+48>>2]){b=169776;break a}b=nt(c);if(!b)b=169776;d=J[c>>2];J[c>>2]=d?d:b;if(!d)break a;wc(b);continue}break}c=a;a=M[b+16>>2]<54?169776:J[b+12>>2];a=K[a+18|0]|K[a+19|0]<<8;a=(a<<8|a>>>8)&65535;a=a-16>>>0>=16369?1E3:a;J[c+28>>2]=a;return a|0}function o9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:switch(J[b+24>>2]-1|0){case 0:Yz(J[b+16>>2],4,c,d);c=J[b+16>>2];Ab[J[J[c>>2]+124>>2]](c);Pq(a,J[J[b+16>>2]+248>>2]+8|0);return;case 1:NA(J[b+20>> -2],4,+(c>>>0),+(d>>>0));c=J[b+20>>2];Ab[J[J[c>>2]+16>>2]](c);Pq(a,J[J[b+20>>2]+208>>2]+8|0);return;default:break a}J[a>>2]=0;H[a+11|0]=0}function Xu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+2748>>2]=b;d=J[b+28>>2];J[a+4>>2]=J[b+44>>2];J[a+8>>2]=J[b+48>>2];J[a+12>>2]=J[b+7720>>2];J[a+16>>2]=J[b+7724>>2];c=J[b+24>>2];J[a+2740>>2]=(K[J[J[b+36>>2]+388>>2]+20|0]?4:12)|d;d=a;a=(c&-2)==2;b=a|2;e=(c|0)==4?b:a;a=(c|0)==2;b=a?b:e;b=(c&-3)==1?b:b|4;J[d+2744>>2]=a?b|8:b;return 0}function Qk(a){var b=0,c=0,d=0;a:{if(!a)break a; -b=K[a|0];if(!b)break a;d=(b|0)==45;b=d+a|0;a=H[b|0];b:{if(!(K[((a&248)>>>3|0)+24096|0]>>>(a&7)&1))break b;while(1){if(c<<16>>16>3274){c=32767;break b}c=K[a+24128|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+24096|0]>>>(a&7)&1)continue;break}}c=d?0-c|0:c}return c<<16>>16}function Lia(a){a=a|0;var b=0;J[a>>2]=241492;b=J[a+944>>2];if(b)Kb($E(b));J[a>>2]=234140;J[195395]=0;_(1097,a|0)|0;b=J[195395];J[195395]=0;a:{b:{if(!((b|0)!=1?b:0)){if((b|0)==1)break a;J[195395]=0;_(1098,a|0)|0;b=J[195395]; -J[195395]=0;if(!b|(b|0)==1)break b}gd(b,J[195396]);B()}if((b|0)==1)break a;return a|0}ga(0)|0;_b();B()}function al(a){var b=0,c=0,d=0,e=0,f=0;Yg(a);a:{if(J[a+12>>2]>0)break a;b=J[a>>2];d=b-1|0;e=J[a+8>>2];b:{c:{while(1){c=3;if(b>>>0>=e>>>0)break b;f=b;b=b+1|0;J[a>>2]=b;d:switch(K[f|0]-9|0){case 0:case 23:break a;case 17:break b;case 50:break c;case 1:case 4:break d;default:continue}break}c=2;break b}c=1}J[a+12>>2]=c}return d}function Zha(a){a=a|0;var b=0;J[a>>2]=241660;a:{b=J[a+944>>2];if(b){J[195395]= -0;ea(1264,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a}J[a>>2]=234140;J[195395]=0;_(1097,a|0)|0;b=J[195395];J[195395]=0;b:{if((b|0)!=1){J[195395]=0;_(1098,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break b}break a}Kb(a);return}ga(0)|0;_b();B()}function vv(a){var b=0,c=0,d=0;a:{if(!a)break a;b=K[a|0];if(!b)break a;d=(b|0)==45;b=d+a|0;a=H[b|0];b:{if(!(K[((a&248)>>>3|0)+24096|0]>>>(a&7)&1))break b;while(1){if((c|0)>214748362){c=2147483647;break b}c=K[a+24128|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a& -248)>>>3|0)+24096|0]>>>(a&7)&1)continue;break}}c=d?0-c|0:c}return c}function rF(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<34|(K[b|0]!=66|K[b+1|0]!=77))break a;if(K[b+6|0]|K[b+7|0]|(K[b+27|0]|K[b+26|0]!=1))break a;b:switch(K[b+28|0]){case 0:case 1:case 4:case 8:case 16:case 24:case 32:break b;default:break a}if(K[b+29|0]|K[b+30|0]>5|(K[b+31|0]|K[b+32|0]))break a;if(K[b+33|0])break a;d=1}return d}function i3(a,b){a=a|0;b=b|0;var c=0;a=J[a+4>>2];if(a){c=J[a+68>>2];if(c){Kb(c);J[a+68>>2]=0}c=Pb(64);J[c+56>> -2]=0;J[c+60>>2]=0;J[a+68>>2]=c;J[c+4>>2]=J[a+12>>2];O[c+8>>3]=O[a+16>>3];O[c+16>>3]=O[a+24>>3];O[c+24>>3]=O[a+32>>3];O[c+32>>3]=O[a+40>>3];O[c+40>>3]=O[a+48>>3];O[c+48>>3]=O[a+56>>3];a=K[a+64|0];J[c>>2]=b;H[c+56|0]=a}}function gY(a){a=a|0;var b=0,c=0;J[a>>2]=428124;c=a-4|0;J[c>>2]=428060;a:{b:{if(L[a+4>>1]!=5)break b;b=K[a+23|0];if(!(b<<24>>24<0?J[a+16>>2]:b))break b;J[195395]=0;_(1123,a+12|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+24>>2];if(b){Kb(b);J[a+24>>2]=0}if(H[a+23|0]<0)Kb(J[a+ -12>>2]);Kb(c);return}ga(0)|0;_b();B()}function fv(a,b,c){var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=bc(a,0);a:{if(d)break a;f=e+12|0;g=rc(a,f);d=J[e+12>>2];if(d)break a;b:{if((g+32767&65535)>>>0<2){Te(a,f);d=J[e+12>>2];if(d)break a;if((g|0)==32769)break b}d=bc(a,0);if(d)break a}d=Tc(a,c);if(d)break a;b=cd(J[a+32>>2],b,c);Ec(a);d=((b|0)!=0)<<1}xb=e+16|0;return d}function X$(a){a=a|0;var b=0,c=0;J[a>>2]=415492;c=a-4|0;J[c>>2]=415428;a:{b:{if(J[a+4>>2]!=5)break b;b=K[a+27|0];if(!(b<<24>>24<0?J[a+20>>2]:b))break b; -J[195395]=0;_(1123,a+16|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+28>>2];if(b){Kb(b);J[a+28>>2]=0}if(H[a+27|0]<0)Kb(J[a+16>>2]);Kb(c);return}ga(0)|0;_b();B()}function I8(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;var h=0,i=0,j=0,k=0;h=xb-32|0;xb=h;i=O[a+48>>3];j=O[a+56>>3];k=J[a+4>>2];Ab[J[J[k>>2]+404>>2]](k)|0;a=J[a+4>>2];O[h+24>>3]=j*O[c>>3]/i;O[h+16>>3]=i*O[d>>3]/j;O[h+8>>3]=i*O[f>>3];O[h>>3]=j*O[g>>3];Ab[J[J[a>>2]+396>>2]](a,b,h+24|0,h+16|0,e,h+8|0,h)|0;xb=h+32|0}function Hia(a){a= -a|0;var b=0,c=0;b=J[a+24>>2];b=b?b-20|0:0;c=J[b+48>>2];c=Ab[J[J[c>>2]+12>>2]](c,J[b+52>>2],1,4096,0,0)|0;if(!c){if(K[b+56|0]){c=J[a>>2];J[c+20>>2]=43;Ab[J[c>>2]](a)}c=J[a>>2];J[c+20>>2]=123;Ab[J[c+4>>2]](a,-1);H[J[b+52>>2]]=255;H[J[b+52>>2]+1|0]=217;c=2}H[b+56|0]=0;J[b+24>>2]=c;J[b+20>>2]=J[b+52>>2];return 1}function jh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=L[a+26>>1];a:{if((d|0)==8){a=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0];break a}c=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,d)>>3)|0];a=0;b:switch(d-1|0){case 3:a= -4-((b|0)%2<<2)&252;a=(c&15<>>a|0;break a;case 0:break b;default:break a}a=7-((b|0)%8|0)|0;a=(c&1<>>a|0}return a&255}function Uka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];f=J[b+4>>2];d=J[b+8>>2];a:{if((f|0)>(d+3|0)){e=c;break a}if(!c){e=Qb(800);J[b+4>>2]=200;J[b>>2]=e;d=0;break a}e=Qb(f<<3);d=Mb(e,c,d<<2);Kb(c);J[b+4>>2]=f<<1;J[b>>2]=d;d=J[b+8>>2]}c=(d<<2)+e|0;J[c>>2]=0;J[c+4>>2]=J[a>>2];a=J[a+4>>2];J[b+8>>2]=d+3;J[c+8>>2]=a;return 0}function Tka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0; -c=J[b>>2];f=J[b+4>>2];d=J[b+8>>2];a:{if((f|0)>(d+3|0)){e=c;break a}if(!c){e=Qb(800);J[b+4>>2]=200;J[b>>2]=e;d=0;break a}e=Qb(f<<3);d=Mb(e,c,d<<2);Kb(c);J[b+4>>2]=f<<1;J[b>>2]=d;d=J[b+8>>2]}c=(d<<2)+e|0;J[c>>2]=1;J[c+4>>2]=J[a>>2];a=J[a+4>>2];J[b+8>>2]=d+3;J[c+8>>2]=a;return 0}function NK(a){a=a|0;var b=0,c=0,d=0,e=0;d=xb-16|0;xb=d;c=J[a>>2];b=J[c+320>>2];c=be(J[J[c+96>>2]+4>>2],10070);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;c=Ab[b|0](c)|0;if(!c)break a;b=J[a>>2];e=Ab[J[c>>2]](J[b+100>>2],J[b+ -304>>2]+P(J[b+4>>2],252)|0,d+12|0)|0;if(e)break a;J[J[a+40>>2]>>2]=J[d+12>>2]}xb=d+16|0;return e|0}function tC(a,b){var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+1>>>0)break d;f=J[a+20>>2];e:{if(f){d=e+14|0;if((Ab[f|0](a,c,d,2)|0)!=2)break d;c=J[a+8>>2];break e}b=J[a>>2];if(!b)break c;d=b+c|0}g=K[d|0]|K[d+1|0]<<8;break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+2}xb=e+16|0;return g}function iY(a){a=a|0;var b=0,c=0;J[a>>2]=428124;c=a-4|0;J[c>>2]=428060;a:{b:{if(L[a+ -4>>1]!=5)break b;b=K[a+23|0];if(!(b<<24>>24<0?J[a+16>>2]:b))break b;J[195395]=0;_(1123,a+12|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+24>>2];if(b){Kb(b);J[a+24>>2]=0}if(H[a+23|0]<0)Kb(J[a+12>>2]);return c|0}ga(0)|0;_b();B()}function Z$(a){a=a|0;var b=0,c=0;J[a>>2]=415492;c=a-4|0;J[c>>2]=415428;a:{b:{if(J[a+4>>2]!=5)break b;b=K[a+27|0];if(!(b<<24>>24<0?J[a+20>>2]:b))break b;J[195395]=0;_(1123,a+16|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+28>>2];if(b){Kb(b);J[a+28>>2]=0}if(H[a+ -27|0]<0)Kb(J[a+16>>2]);return c|0}ga(0)|0;_b();B()}function uc(a,b,c,d,e,f,g){var h=0;h=e;d=(d|0)>=255?255:d;e=((d|0)>0?d:0)<<2;d=J[a>>2];b=J[a+20>>2]+((b>>>0>=255?255:b)<<2)|0;J[h>>2]=K[J[e+J[a+4>>2]>>2]+(d+J[b>>2]|0)|0];c=(c|0)>=255?255:c;c=((c|0)>0?c:0)<<2;J[f>>2]=K[(d+J[b>>2]|0)+(J[e+J[a+12>>2]>>2]+J[c+J[a+16>>2]>>2]>>16)|0];J[g>>2]=K[J[c+J[a+8>>2]>>2]+(d+J[b>>2]|0)|0]}function cD(a){var b=0,c=0,d=0,e=0;d=xb-16|0;xb=d;c=J[a+100>>2];b=1;a:{if((c|0)==-1)break a;e=J[a+60>>2];b=0;if(e>>>0>=0-c>>> -0)break a;b=((c+e|0)-1>>>0)/(c>>>0)|0}b:{if(L[a+138>>1]!=2)break b;c=L[a+98>>1];b=Kpa(c,0,b,0);e=zb;if(!c|!e)break b;b=J[a>>2];a=J[a+628>>2];J[d>>2]=263815;Ob(a,b,267226,d);b=0}xb=d+16|0;return b}function Oma(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{if(!(K[J[a+100>>2]+36|0]&2))break a;b=J[c+68>>2];if(!b)break a;e=J[c+80>>2];g=e+3|0;a=0;while(1){d=P(a,20);f=d+e|0;if(K[f+12|0]&64){h=d+g|0;d=K[f+14|0];H[h+16|0]=d&16?8:d&1|8;J[c+144>>2]=J[c+144>>2]|16777216}a=a+1|0;if((b|0)!=(a|0))continue; -break}}return 0}function Iha(a){a=a|0;var b=0,c=0;a:{b=J[a+436>>2];b:{if(!b){if(!Yr(a))break b;b=J[a+436>>2]}c=J[J[a+460>>2]+20>>2];if((c+208|0)==(b|0)){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=100;Ab[J[J[a>>2]+4>>2]](a,3);J[a+436>>2]=0;break a}if(Ab[J[J[a+24>>2]+20>>2]](a,c)|0)break a}return 0}a=J[a+460>>2];J[a+20>>2]=J[a+20>>2]+1&7;return 1}function upa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=f|0;var g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=0;g=N[b+8>>2];h=N[b+16>>2];i=N[b+12>>2];j=N[c+16>>2];N[c+16>>2]=i* -j;N[c+12>>2]=Q(g*N[c+12>>2])+Q(h*j);a=J[b>>2];f=J[a+16>>2];k=J[b+4>>2];d=Q(Q(g*d)+Q(h*e));e=Q(i*e);b=J[a+32>>2];if(b)b=J[b+4>>2];else b=0;Ab[f|0](a,k,c,d,e,b)}function ez(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=xb-256|0;xb=f;a:{if((c|0)<2)break a;h=(c<<2)+b|0;J[h>>2]=f;if(!a)break a;while(1){e=a>>>0>=256?256:a;Mb(J[h>>2],J[b>>2],e);d=0;while(1){g=(d<<2)+b|0;d=d+1|0;Mb(J[g>>2],J[(d<<2)+b>>2],e);J[g>>2]=J[g>>2]+e;if((c|0)!=(d|0))continue;break}a=a-e|0;if(a)continue;break}}xb=f+256|0}function _ha(a){a=a|0; -var b=0;J[a>>2]=241660;a:{b=J[a+944>>2];if(b){J[195395]=0;ea(1264,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a}J[a>>2]=234140;J[195395]=0;_(1097,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;J[195395]=0;_(1098,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;return a|0}ga(0)|0;_b();B()}function Fia(a){a=a|0;var b=0,c=0,d=0;b=J[a+24>>2];c=J[b+4>>2];a:{if((c|0)==4096)break a;d=J[b+48>>2];if(Ab[J[J[d>>2]+16>>2]](d,J[b+52>>2],1,4096-c|0)|0)break a;c=J[a>>2];J[c+20>>2]=38;Ab[J[c>>2]](a)}c=J[b+ -48>>2];Ab[J[J[c>>2]+32>>2]](c)|0;b=J[b+48>>2];if(Ab[J[J[b>>2]+40>>2]](b)|0){b=J[a>>2];J[b+20>>2]=38;Ab[J[b>>2]](a)}}function zF(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];c=J[a+12>>2];a:{if((b|0)==(c|0))break a;while(1){d=J[b+12>>2];if(d){Kb(d);J[b+12>>2]=0}b=b+20|0;if((c|0)!=(b|0))continue;break}b=J[a+8>>2];c=J[a+12>>2];if((b|0)==(c|0))break a;while(1){d=c-20|0;if(H[c-9|0]<0)Kb(J[d>>2]);c=d;if((c|0)!=(b|0))continue;break}}J[a+12>>2]=b}function iO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+10|0;if(c>>>0>M[b+ -160>>2])Bc(b,8);d=K[a+9|0]|K[a+8|0]<<8;e=a;a=K[a+3|0]|K[a+2|0]<<8;if(!(M[b+160>>2]>=e+a>>>0&(d<<1)+10>>>0<=a>>>0))Bc(b,8);if(!(!d|J[b+164>>2]<=0))while(1){if(M[b+172>>2]<=(K[c+1|0]|K[c|0]<<8)>>>0)Bc(b,16);c=c+2|0;d=d-1|0;if(d)continue;break}return 0}function gja(a){a=a|0;var b=0,c=0,d=0,e=0;e=J[a+60>>2];a:{if(e)break a;b=J[a+940>>2];if(!b)break a;c=J[a+356>>2];b:{if((c|0)>0){while(1){b=J[J[a+940>>2]+(d<<2)>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);c=J[a+356>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}b=J[a+ -940>>2];if(!b)break b}Kb(b)}J[a+356>>2]=0;J[a+940>>2]=0}return!e|0}function g8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+44>>2];c=J[a+24>>2];if(d>>>0>>0){J[a+44>>2]=c;d=c}c=J[a+12>>2];e=-1;a:{if(c>>>0<=M[a+8>>2])break a;if((b|0)==-1){J[a+16>>2]=d;J[a+12>>2]=c-4;return 0}if(!(K[a+48|0]&16)){e=-1;if(J[c-4>>2]!=(b|0))break a}J[a+16>>2]=d;d=a;a=c-4|0;J[d+12>>2]=a;J[a>>2]=b;e=b}return e|0}function dma(a){a=a|0;a=a+24|0;Uc(a,0,915);jc(a,1819239276,65,1);jc(a,1667460464,65,1);Uc(a,0,916);jc(a,1919969382, -73,1);Uc(a,0,0);jc(a,1886545254,73,1);Uc(a,0,0);jc(a,1651275622,73,1);Uc(a,0,0);jc(a,1886614630,73,1);Uc(a,0,0);Uc(a,0,912);jc(a,1886545267,9,1);jc(a,1633842803,9,1);jc(a,1651275635,9,1);jc(a,1886614643,9,1)}function Pe(a,b){var c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;J[c+8>>2]=a;e=J[b+20>>2];a=e+((Ab[J[b+12>>2]](c+8|0)>>>0)%M[b+4>>2]<<2)|0;d=J[a>>2];a:{if(!d)break a;f=e-4|0;while(1){if(Ab[J[b+16>>2]](d,c+8|0)|0)break a;a=a-4|0;if(e>>>0>a>>>0)a=(J[b+4>>2]<<2)+f|0;d=J[a>>2];if(d)continue;break}}xb=c+16|0;a= -J[a>>2];return a?a+4|0:0}function rK(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=J[a+160>>2];if(!b)break a;c=J[b+4>>2];a=J[c+84>>2];if(!a)break a;d=J[J[c+96>>2]+8>>2];if((a|0)!=(b|0))while(1){e=J[a+8>>2];if(!e)break a;f=a;a=e;if((b|0)!=(a|0))continue;break}J[(f?f+8|0:c+84|0)>>2]=J[b+8>>2];a=J[b+20>>2];if(a)Ab[a|0](b);Nl(b);Ab[J[d+8>>2]](d,b)}}function BI(a){var b=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;J[a>>2]=b-1;if((b|0)!=1)break a;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]= -0}J[a+132>>2]=0;J[a+136>>2]=0;b=J[a+124>>2];if(b)Ab[b|0](J[a+120>>2]);BI(J[a+20>>2]);St(J[a+24>>2]);Lo(J[a+116>>2]);Kb(J[a+108>>2]);Kb(J[a+112>>2]);Kb(a)}}function $V(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=xb-16|0;xb=b;ae(a,J[a+8>>2]);e=J[a+8>>2];d=J[a>>2];J[b+12>>2]=d;g=b+12|0;f=wg(g,e,10);c=J[b+12>>2];a:{if((d|0)==(c|0))break a;if(!(K[c|0]!=35|c>>>0>=e>>>0)){d=c+1|0;J[b+12>>2]=d;f=wg(g,e,f);c=J[b+12>>2];if((d|0)==(c|0))break a}J[a>>2]=c;h=f}xb=b+16|0;return h|0}function gp(a,b){var c=0,d=0; -c=bc(b,J[a>>2]);a:{if(c)break a;c=Nc(b,103648,a+4|0);if(c)break a;c=2;d=L[a+4>>1];if((d|256)!=768|M[a+8>>2]<((d|0)==768?148:118)>>>0)break a;if((d|0)==512){J[a+140>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0}if(H[a+72|0]&1)break a;c=bc(b,J[a>>2]);if(c)break a;c=Ne(b,J[a+8>>2],a+160|0)}return c}function L8(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=xb-48|0;xb=e;a:{if(d){f=e+40|0;g=e+32|0;h=e+24|0;i=e+16|0;j=e+8|0;Ab[J[J[a>>2]+92>>2]](a,f,g,h,i,j,e);Ab[J[J[a>>2]+88>>2]](a,d,d+8|0,d+16|0,d+ -24|0,d+32|0,d+40|0);Ui(b,a,0,0,c);Ab[J[J[a>>2]+88>>2]](a,f,g,h,i,j,e);break a}Ui(b,a,0,0,c)}xb=e+48|0}function wT(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;g=xb-32|0;xb=g;h=J[191051];J[g+24>>2]=J[191050];J[g+28>>2]=h;h=J[191049];J[g+16>>2]=J[191048];J[g+20>>2]=h;h=J[191047];J[g+8>>2]=J[191046];J[g+12>>2]=h;h=J[191045];J[g>>2]=J[191044];J[g+4>>2]=h;h=a;a=g+32|0;b=Zg(h,b,c,d,e,f,g,a);xb=a;return b|0}function hY(a){a=a|0;var b=0;J[a+4>>2]=428124;J[a>>2]=428060;a:{b:{if(L[a+8>>1]!= -5)break b;b=K[a+27|0];if(!(b<<24>>24<0?J[a+20>>2]:b))break b;J[195395]=0;_(1123,a+16|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+28>>2];if(b){Kb(b);J[a+28>>2]=0}if(H[a+27|0]<0)Kb(J[a+16>>2]);Kb(a);return}ga(0)|0;_b();B()}function ek(a,b){var c=0,d=0,e=0;c=xb-32|0;xb=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=c+8;d=J[a+664>>2];a:{if(!(!d|J[d>>2]!=(b|0)))break a;d=0;e=J[a+656>>2];if(!e)break a;J[c+16>>2]=0;J[c+8>>2]=b;b=Bq(c+4|0,e,J[a+660>>2]);if(b)d=J[b>> -2];else d=0;J[a+664>>2]=d}xb=c+32|0;return d}function eX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=K[a+11|0];c=d<<24>>24<0?J[a+4>>2]:d;a:{if(!c)break a;d=0;e=Pb(c>>>0>1073741823?-1:c<<2);J[b>>2]=0;c=K[a+11|0];c=c<<24>>24<0?J[a+4>>2]:c;J[b>>2]=c;if(!c)break a;while(1){f=(d<<2)+e|0,g=J[Ip(a,d)>>2],J[f>>2]=g;d=d+1|0;if(d>>>0>2])continue;break}}return e|0}function Y$(a){a=a|0;var b=0;J[a+4>>2]=415492;J[a>>2]=415428;a:{b:{if(J[a+8>>2]!=5)break b;b=K[a+31|0];if(!(b<<24>>24<0?J[a+24>>2]:b))break b; -J[195395]=0;_(1123,a+20|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+32>>2];if(b){Kb(b);J[a+32>>2]=0}if(H[a+31|0]<0)Kb(J[a+20>>2]);Kb(a);return}ga(0)|0;_b();B()}function Oga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=bm(b,c);a:{if(d)break a;a=J[b+24>>2];if((a|0)<=0)break a;b=J[b+28>>2];f=b+P(a,40)|0;a=J[c+4>>2];c=J[c+8>>2];while(1){J[a>>2]=J[b+16>>2];J[a+4>>2]=J[b+20>>2];e=L[b>>1];H[c|0]=e&1?0:e&2?2:1;c=c+1|0;a=a+8|0;b=b+40|0;if(f>>>0>b>>>0)continue;break}}return d|0}function Fpa(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;b=J[a+20>>2];e=J[b+116>>2];f=J[e- -64>>2];g=J[b+120>>2];e=J[e+12>>2];if(e)e=J[e+44>>2];else e=0;b=Ab[f|0](b,g,c,d,e)|0;c=J[a+20>>2];a:{if(!c)break a;c=J[c+28>>2];a=J[a+28>>2];if((c|0)==(a|0))break a;b=Lpa(Kpa(a,a>>31,b,b>>31),zb,c,c>>31)}return b|0}function Cv(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;h=xb-16|0;xb=h;J[h+12>>2]=0;g=10;j=J[c>>2];k=j+e|0;a:{if(k>>>0>31457280)break a;i=J[a>>2];g=J[b>>2];if(g>>>0>>0){i=Tb(f,1,g,k,i,h+12|0);g=J[h+12>>2]; -if(g)break a;J[b>>2]=J[c>>2]+e;j=J[c>>2]}Mb(i+j|0,d,e);J[c>>2]=J[c>>2]+e;J[a>>2]=i;g=J[h+12>>2]}xb=h+16|0;return g}function tp(a,b,c){var d=0,e=0,f=0,g=0;f=6;d=J[b>>2];a:{if(d+5>>>0>c>>>0)break a;e=J[a+12>>2];I[e>>1]=K[d|0];I[e+2>>1]=K[d+1|0];I[e+4>>1]=H[d+2|0];I[e+6>>1]=H[d+3|0];I[e+8>>1]=K[d+4|0];g=c;c=d+8|0;if(g>>>0>>0)break a;I[e+10>>1]=H[d+5|0];I[e+12>>1]=H[d+6|0];I[e+14>>1]=K[d+7|0];H[a+16|0]=1;J[b>>2]=c;f=0}return f}function oia(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;f=0;a:{if(!b)break a;h=J[a+4>>2];if(!h)break a;e=J[a+16>>2];g=J[a+8>>2];if((e|0)>=(g|0)){H[a+24|0]=1;return 0}d=P(c,d);if(!d)break a;if((d+e|0)>(g|0)){H[a+24|0]=1;d=g-e|0}Mb(b,e+h|0,d);J[a+16>>2]=J[a+16>>2]+d;f=(d>>>0)/(c>>>0)|0}return f|0}function tH(a){a=a|0;var b=0,c=0,d=0;c=a+148|0;while(1){a:{b=J[c>>2];if(b)break a;if(!J[a+48>>2]){b=169776;break a}b=oj(c);if(!b)b=169776;d=J[c>>2];J[c>>2]=d?d:b;if(!d)break a;lg(b);continue}break}a=J[b>>2];a=a?a:169776;a=M[a+16>>2]<4?169776:J[a+12>>2];return(K[a| -0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=0|0}function pba(a){a=a|0;var b=0,c=0,d=0;c=1;d=J[a+584>>2];if(!(H[d+4|0]&1)){b=12;if(H[d+28|0]&1){b=13;c=!J[d+92>>2]|2}bg(a,c,b);bg(a,c,b);bg(a,c,b);bg(a,c,b);bg(a,c,b);bg(a,c,b);if(J[a+608>>2]>=J[a+600>>2])Xc(a);c=J[d+64>>2];b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=c;J[a+608>>2]=J[a+608>>2]+1;J[d+64>>2]=0;J[d+68>>2]=8}}function ml(a){a=a|0;var b=0;J[a+4>>2]=428124;J[a>>2]=428060;a:{b:{if(L[a+8>>1]!=5)break b;b=K[a+27|0];if(!(b<<24>>24<0?J[a+20>>2]:b))break b; -J[195395]=0;_(1123,a+16|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+28>>2];if(b){Kb(b);J[a+28>>2]=0}if(H[a+27|0]<0)Kb(J[a+16>>2]);return a|0}ga(0)|0;_b();B()}function _$(a){a=a|0;var b=0;J[a+4>>2]=415492;J[a>>2]=415428;a:{b:{if(J[a+8>>2]!=5)break b;b=K[a+31|0];if(!(b<<24>>24<0?J[a+24>>2]:b))break b;J[195395]=0;_(1123,a+20|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}b=J[a+32>>2];if(b){Kb(b);J[a+32>>2]=0}if(H[a+31|0]<0)Kb(J[a+20>>2]);return a|0}ga(0)|0;_b();B()}function Iga(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;b=J[a+316>>2];if((b|0)>0){g=J[d>>2];while(1){d=J[a+112>>2];if((d|0)>0){e=f<<2;b=J[e+g>>2];h=d+b|0;d=J[c+e>>2];while(1){e=K[d|0];H[b+1|0]=e;H[b|0]=e;d=d+1|0;b=b+2|0;if(h>>>0>b>>>0)continue;break}b=J[a+316>>2]}f=f+1|0;if((f|0)<(b|0))continue;break}}}function Epa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;b=J[a+20>>2];e=J[b+116>>2];f=J[e+68>>2];g=J[b+120>>2];e=J[e+12>>2];if(e)e=J[e+48>>2];else e=0;b=Ab[f|0](b,g,c,d,e)|0;c=J[a+20>>2];a:{if(!c)break a; -c=J[c+32>>2];a=J[a+32>>2];if((c|0)==(a|0))break a;b=Lpa(Kpa(a,a>>31,b,b>>31),zb,c,c>>31)}return b|0}function Dn(a){a=a|0;var b=0,c=0;b=408688;J[a>>2]=408688;a:{if(K[a+32|0])break a;c=J[a+28>>2];if(!c)break a;Kb(c);J[a+28>>2]=0;b=J[a>>2]}J[a+4>>2]=0;J[a+8>>2]=0;H[a+33|0]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=J[b+12>>2];J[195395]=0;ea(b|0,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)return a|0;ga(0)|0;_b();B()}function Sha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=xb-16|0;xb=a;Ab[J[J[b>>2]+20>>2]](b,c,0)| -0;H[a+15|0]=0;c=0;a:{while(1){d=-1;if(!(Ab[J[J[b>>2]+12>>2]](b,a+15|0,1,1,0,0)|0))break a;d=c&255;c=K[a+15|0];if(d|(c|0)!=44)continue;break}Ab[J[J[b>>2]+20>>2]](b,-1,1)|0;d=Ab[J[J[b>>2]+24>>2]](b)|0}b=d;xb=a+16|0;return b|0}function n6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+12>>2]=32;J[d+8>>2]=44;J[a+8>>2]=J[a+8>>2]+32;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],d+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);Lb(J[a+4>>2], -c,4);Lb(J[a+4>>2],c+4|0,4);xb=d+16|0}function ku(){var a=0,b=0,c=0;a=vc(1,172);if(!a)return 774672;J[a+8>>2]=0;J[a>>2]=1;J[a+4>>2]=1;J[a+148>>2]=1073741823;J[a+152>>2]=536870911;xk(0);b=TF();a:{if(!b)break a;c=J[b>>2];if(!c)break a;J[b>>2]=c+1}J[a+144>>2]=0;J[a+84>>2]=0;H[a+60|0]=1;J[a+24>>2]=65533;J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=b;return a}function fp(a){a=a|0;var b=0;J[a+36>>2]=500;J[a+40>>2]=400;H[a+32|0]=1;J[a+28>>2]=1;J[a+60>>2]=2333;J[a+64>>2]=0;J[a+52>>2]=1667;J[a+56>>2]=275;J[a+44>>2]= -1E3;J[a+48>>2]=275;b=xb-16|0;b=J[a+8>>2]^(b+8^b+12);b=b>>>20^b>>>10^b;J[a+68>>2]=b;a:{if((b|0)<0)b=0-b|0;else{if(b)break a;b=123456789}J[a+68>>2]=b}return 0}function ai(a,b,c){var d=0,e=0;e=b-1|0;a:{if(K[a+402|0]==8){b:{if(e>>>0>253)break b;d=V(Qd(+(b>>>0)/255,+(c|0)*1E-5)*255+.5);if(d<4294967296&d>=0){b=~~d>>>0;break b}b=0}b=b&255;break a}if(e>>>0>65533)break a;d=V(Qd(+(b>>>0)/65535,+(c|0)*1E-5)*65535+.5);if(d<4294967296&d>=0){b=~~d>>>0;break a}b=0}return b&65535}function _q(a){a=a|0;var b=0,c=0; -I[a+252>>1]=0;J[a+248>>2]=0;J[a+220>>2]=408688;J[a+224>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;J[a+236>>2]=0;J[a+240>>2]=0;J[195395]=0;b=ca(1985,a|0,408244)|0;c=J[195395];J[195395]=0;a=a+220|0;if((c|0)!=1){J[b>>2]=407864;J[a>>2]=408124;J[b+216>>2]=0;return b|0}b=Z()|0;Dn(a);ba(b|0);B()}function m6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+12>>2]=20;J[d+8>>2]=15;J[a+8>>2]=J[a+8>>2]+20;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],d+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+ -4>>2],c,1);Lb(J[a+4>>2],c+1|0,1);Lb(J[a+4>>2],c+2|0,1);Lb(J[a+4>>2],c+3|0,1);xb=d+16|0}function lba(a,b){a=a|0;b=b|0;var c=0;b=xb-16|0;xb=b;c=0;a:{if(!Nn(a))break a;if(!Gg(a,286992,1)){Ob(J[a+628>>2],264850,265337,0);c=0;break a}J[a+556>>2]=1679;J[a+548>>2]=1679;J[a+540>>2]=1679;J[a+560>>2]=1680;J[a+552>>2]=1680;J[a+544>>2]=1680;J[a+536>>2]=1681;J[b>>2]=1;c=xc(a,65536,b)}a=c;xb=b+16|0;return a|0}function Lea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+420>>2];if(J[a+236>>2]){d=J[c+68>>2];if(!d){Il(a,J[c+ -72>>2]);d=J[a+236>>2];J[c+72>>2]=J[c+72>>2]+1&7}J[c+68>>2]=d-1}if(J[a+316>>2]>0){d=c+204|0;e=J[a+372>>2];c=0;while(1){Qc(a,d,I[J[(c<<2)+b>>2]>>1]>>>e&1);c=c+1|0;if((c|0)>2])continue;break}}return 1}function xq(a,b){var c=0,d=0,e=0;d=xb-16|0;xb=d;H[d+15|0]=b;c=J[a+16>>2];a:{if(!c){c=-1;if(yq(a))break a;c=J[a+16>>2]}b:{e=J[a+20>>2];if((c|0)==(e|0))break b;c=b&255;if((c|0)==J[a+80>>2])break b;J[a+20>>2]=e+1;H[e|0]=b;break a}c=-1;if((Ab[J[a+36>>2]](a,d+15|0,1)|0)!=1)break a;c=K[d+15|0]}xb=d+ -16|0;return c}function pD(a,b){var c=0,d=0;a:{if(!a|!b)break a;d=L[a+2>>1];if((d|0)!=L[b+2>>1])break a;c=L[a>>1];if((a|0)==(b|0)|(c|0)!=L[b>>1])break a;if(d){Mb(J[b+4>>2],J[a+4>>2],d<<16>>16<<3);Mb(J[b+8>>2],J[a+8>>2],I[a+2>>1]);c=L[a>>1]}if(c)Mb(J[b+12>>2],J[a+12>>2],c<<16>>16<<1);J[b+16>>2]=J[a+16>>2]&-2|J[b+16>>2]&1}}function ds(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!J[a+4>>2])break a;e=Qb(J[a+52>>2]);if(!e)break a;b=fd(a,J[a+20>>2]-1|0);c=fd(a,0);if(J[a+20>>2]>=2){d=J[a+52>>2];while(1){g=Mb(e, -b,d);b=Mb(b,c,d);c=Mb(c,g,J[a+52>>2]);d=J[a+52>>2];c=c+d|0;b=b-d|0;f=f+1|0;if((f|0)<(J[a+20>>2]/2|0))continue;break}}Kb(e);SE(a)}}function Ub(a){a=a|0;var b=0,c=0;a:{b:{if(!a)break b;b=J[a>>2];if(!b)break b;J[a>>2]=b-1;if((b|0)!=1)break b;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}b=J[a+28>>2];if(b){c=J[a+24>>2];J[195395]=0;ea(b|0,c|0);b=J[195395];J[195395]=0;if((b|0)==1)break a}Kb(a)}return}ga(0)|0;_b();B()}function vk(a){var b=0,c=0,d=0;c=J[a+28>>2];oe(c);b=J[c+20>>2];d= -J[a+16>>2];b=b>>>0>>0?b:d;a:{if(!b)break a;Mb(J[a+12>>2],J[c+16>>2],b);J[a+12>>2]=b+J[a+12>>2];J[c+16>>2]=b+J[c+16>>2];J[a+20>>2]=b+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-b;a=J[c+20>>2];J[c+20>>2]=a-b;if((a|0)!=(b|0))break a;J[c+16>>2]=J[c+8>>2]}}function GZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;xz(J[a+76>>2],b,1);e=J[c>>2];c=J[c+4>>2];if((e|0)!=(c|0))while(1){wz(J[a+76>>2],e,e+12|0);e=e+24|0;if((c|0)!=(e|0))continue;break}c=J[a+76>>2];e=K[d+11|0];if(!(e<<24>>24<0?J[d+4>>2]:e)){dn(c,b,1,1);return}dn(c, -b,1,0);yz(J[a+76>>2],d);dn(J[a+76>>2],b,0,0)}function zz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=J[b+16>>2];if(c>>>0<1073741808){e=J[b+4>>2];b:{if(c>>>0<=1){H[a+11|0]=c;break b}b=c|3;if(b>>>0>=1073741823)break a;d=b+1|0;b=Pb(d<<2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;f=qc(b,e,a)+a|0,g=0,J[f>>2]=g;return}dd(a);B()}zd();B()}function zoa(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;f=J[b+4>>2];g=J[b>>2];b=J[g+12>>2];a:{if(b)break a;a=g+12|0;while(1){if(!J[g>> -2])return hI(169776,c,d,e,f)|0;b=Po(a);if(!b)b=169776;h=J[a>>2];J[a>>2]=h?h:b;if(!h)break a;Oo(b);b=J[a>>2];if(!b)continue;break}}return hI(b,c,d,e,f)|0}function JM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;f=J[a+16>>2];c=b;b=L[a+8>>1];c=Tb(c,1,0,b+1|0,0,d+12|0);xb=d+16|0;if(J[d+12>>2])a=e;else{a=0;a:{if(!b)break a;while(1){e=H[f|0];if(!e)break a;H[a+c|0]=(e|0)<32?63:e;f=f+1|0;a=a+1|0;if((b|0)!=(a|0))continue;break}a=b}H[a+c|0]=0;a=c}return a|0}function rfa(a){a=a|0;var b=0;b=J[a+388>>2]; -Ab[J[J[a+420>>2]+8>>2]](a);a:{b:switch(J[b+20>>2]){case 0:J[b+20>>2]=2;if(J[a+216>>2])break a;J[b+32>>2]=J[b+32>>2]+1;break a;case 1:J[b+20>>2]=2;break a;case 2:break b;default:break a}if(J[a+216>>2])J[b+20>>2]=1;J[b+32>>2]=J[b+32>>2]+1}J[b+24>>2]=J[b+24>>2]+1}function pR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=xb-16|0;xb=g;J[e>>2]=c;f=g+12|0;a=Rp(f,0,b,J[a+8>>2]);b=2;a:{if(a+1>>>0<2)break a;c=a-1|0;b=1;if(c>>>0>d-J[e>>2]>>>0)break a;while(1){if(c){a=K[f|0];b=J[e>>2];J[e>>2]=b+1;H[b| -0]=a;c=c-1|0;f=f+1|0;continue}break}b=0}a=b;xb=g+16|0;return a|0}function lma(a){a=a|0;a=a+24|0;Uc(a,0,913);Uc(a,0,914);jc(a,1819239276,65,1);jc(a,1667460464,65,1);jc(a,1886545254,76,1);jc(a,1651275622,76,1);jc(a,1633842790,76,1);jc(a,1886614630,76,1);jc(a,1667654002,76,1);Uc(a,0,912);jc(a,1886545267,13,1);jc(a,1633842803,13,1);jc(a,1651275635,13,1);jc(a,1886614643,13,1)}function Md(a,b,c){var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;J[f+12>>2]=c;d=xb-160|0;xb=d;g=d+8|0;Mb(g,758800,144);J[d+52>>2]=a;J[d+28>> -2]=a;e=-2-a|0;e=e>>>0>2147483647?2147483647:e;J[d+56>>2]=e;e=a+e|0;J[d+36>>2]=e;J[d+24>>2]=e;Sy(g,b,c);if((a|0)!=-2){a=J[d+28>>2];H[a-((a|0)==J[d+24>>2])|0]=0}xb=d+160|0;xb=f+16|0}function HC(a,b){var c=0,d=0,e=0;c=L[a+1148>>1];if(!c){if(!Jd(a))return 0;c=L[a+1148>>1]}d=J[a+1152>>2];e=K[d|0];I[a+1148>>1]=c-1;c=d+1|0;J[a+1152>>2]=c;I[b>>1]=e<<8;d=L[a+1148>>1];if(!d){if(!Jd(a))return 0;d=L[a+1148>>1];c=J[a+1152>>2]}e=K[c|0];I[a+1148>>1]=d-1;J[a+1152>>2]=c+1;I[b>>1]=e|L[b>>1];return 1}function HL(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a+16>>2];if(d){g=J[a+20>>2];a=d>>>1|0;while(1){c=d+f>>>1|0;c=a>>>0>=d>>>0?c:a>>>0>>0?c:a;e=J[(c<<3)+g>>2];if((e|0)==(b|0))return L[((c<<3)+g|0)+4>>1]+1&65535;a=(b+c|0)-e|0;e=b>>>0>>0;f=e?f:c+1|0;d=e?c:d;if(f>>>0>>0)continue;break}}return 0}function $ca(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;g=h<<2;while(1){f=f-1|0;a=e;while(1){J[b>>2]=K[i+1|0]|K[i+3|0]<<8|K[i+5|0]<<16| -K[i+7|0]<<24;b=b+4|0;i=c+i|0;a=a-1|0;if(a)continue;break}i=d+i|0;b=b+g|0;if(f)continue;break}}}function D0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-32|0;xb=c;d=J[a+208>>2];if(d)Ab[J[J[d>>2]+348>>2]](d,b);if(J[b+48>>2]){d=J[b+16>>2];f=O[b+24>>3];O[c+24>>3]=O[b+32>>3];e=J[c+28>>2];J[c+8>>2]=J[c+24>>2];J[c+12>>2]=e;O[c+16>>3]=f;e=J[c+20>>2];J[c>>2]=J[c+16>>2];J[c+4>>2]=e;Xq(a,b+40|0,d,c)}xb=c+32|0}function Bba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-16|0;xb=d;e=J[a+608>>2];a:{if((e|0)<(c| -0)){b=J[a>>2];c=J[a+628>>2];J[d>>2]=J[a+472>>2];Ob(c,b,263478,d);a=0;break a}f=J[a+604>>2];if((f|0)!=(b|0)){Pc(b,f,c);e=J[a+608>>2];b=J[a+604>>2]}J[a+608>>2]=e-c;J[a+604>>2]=b+c;a=1}xb=d+16|0;return a|0}function xL(a){a=a|0;var b=0,c=0,d=0,e=0;d=xb-16|0;xb=d;b=J[a>>2];c=J[b+552>>2];b=be(J[J[b+96>>2]+4>>2],10580);a:{if(!b|!c)break a;c=J[c>>2];if(!c)break a;c=Ab[c|0](b)|0;if(!c)break a;b=J[a>>2];e=Ab[J[c>>2]](J[b+100>>2],b+168|0,d+12|0)|0;if(e)break a;J[J[a+40>>2]>>2]=J[d+12>>2]}xb=d+16|0;return e| -0}function oka(a){a=a|0;var b=0,c=0,d=0;a:{if(a){J[195395]=0;zF(a);b=J[195395];J[195395]=0;if((b|0)==1)break a;c=J[a+8>>2];if(c){b=c;d=J[a+12>>2];if((b|0)!=(d|0)){while(1){b=d-20|0;if(H[d-9|0]<0)Kb(J[b>>2]);d=b;if((b|0)!=(c|0))continue;break}b=J[a+8>>2]}J[a+12>>2]=c;Kb(b)}Kb(a)}return}ga(0)|0;_b();B()}function Yca(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;g=h<<2;while(1){f=f-1|0;a=e;while(1){J[b>>2]=K[i+1|0]|K[i+3|0]<<8|K[i+ -5|0]<<16|-16777216;b=b+4|0;i=c+i|0;a=a-1|0;if(a)continue;break}i=d+i|0;b=b+g|0;if(f)continue;break}}}function U8(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=xb-16|0;xb=d;if(!K[a+64|0]){Ab[J[J[a>>2]+28>>2]](a);e=J[a+8>>2];Ab[J[J[e>>2]+64>>2]](d,e);Ab[J[J[a>>2]+32>>2]](a,O[d>>3],O[d+8>>3])}O[d>>3]=O[a+48>>3]*b+O[a+16>>3];O[d+8>>3]=O[a+56>>3]*c+O[a+24>>3];a=J[a+4>>2];Ab[J[J[a>>2]+320>>2]](a,d,d+8|0)|0;xb=d+16|0}function Qe(a){a=a|0;var b=0,c=0,d=0;c=a+56|0;while(1){a:{b=J[c>>2];if(b)break a;if(!J[a+48>>2]){b= -169776;break a}b=qt(c);if(!b)b=169776;d=J[c>>2];J[c>>2]=d?d:b;if(!d)break a;wc(b);continue}break}c=a;a=M[b+16>>2]<6?169776:J[b+12>>2];a=K[a+4|0]|K[a+5|0]<<8;a=(a<<8|a>>>8)&65535;J[c+32>>2]=a;return a|0}function Fh(a,b,c,d){var e=0;a:{if(!(d&2048))break a;e=d&74;if(!c|((e|0)==8|(e|0)==64))break a;H[a|0]=43;a=a+1|0}if(d&512){H[a|0]=35;a=a+1|0}while(1){e=K[b|0];if(e){H[a|0]=e;a=a+1|0;b=b+1|0;continue}break}e=d&74;b=111;b:{if((e|0)==64)break b;b=d&16384?88:120;if((e|0)==8)break b;b=c?100:117}H[a|0]=b} -function Z2(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+108>>2];if(b){J[a+108>>2]=J[a+80>>2];J[a+80>>2]=b;b=J[a+92>>2];J[a+92>>2]=J[a+112>>2];c=K[a+104|0];H[a+104|0]=K[a+124|0];J[a+112>>2]=b;b=J[a+96>>2];d=J[a+100>>2];e=J[a+120>>2];J[a+96>>2]=J[a+116>>2];J[a+100>>2]=e;J[a+116>>2]=b;J[a+120>>2]=d;H[a+124|0]=c}}function QD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(!(K[b+8|0]&16)|(!a|!b))break a;b:{if(K[b+25|0]==3){if(c){J[c>>2]=J[b+76>>2];f=16}else f=0;if(!e)break b;J[e>>2]=b+80;break b}if(e){J[e>> -2]=b+80;f=16}else f=0;if(!c)break b;J[c>>2]=0}if(!d)break a;J[d>>2]=L[b+22>>1];f=16}return f|0}function nw(a,b){var c=0,d=0,e=0;a:{if(b>>>0>255)break a;c=J[a+604>>2];c=Ab[J[c+20>>2]](L[J[c+24>>2]+(b<<1)>>1])|0;d=J[a+584>>2];if(!d)break a;e=J[a+580>>2];b=0;while(1){b:{a=J[(b<<2)+e>>2];if(!a|K[a|0]!=K[c|0])break b;if(fc(a,c))break b;return b}b=b+1|0;if((d|0)!=(b|0))continue;break}}return-1}function $3(a){a=a|0;var b=0,c=0;c=J[a+28>>2];b=J[a+12>>2];if(b){Tg(b+12|0);J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>> -2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;if(b)Ab[J[c+8>>2]](c,b);J[a+12>>2]=0}if(!J[a+20>>2]){b=J[a>>2];if(b)Ab[J[c+8>>2]](c,b);J[a>>2]=0}}function ht(a,b){var c=0,d=0,e=0;e=169776;a:{if((K[a|0]|K[a+1|0]<<8)!=256)break a;c=169776;d=K[a+8|0]|K[a+9|0]<<8;if(d)c=((d<<8|d>>>8)&65535)+a|0;a=K[c|0]|K[c+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0<=b>>>0)break a;a=(b<<1)+c|0;a=K[a+2|0]|K[a+3|0]<<8;if(!a)break a;e=((a<<8|a>>>8)&65535)+c|0}return e}function vT(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;g=a;h=b;a=Ab[J[J[a+8>>2]+20>>2]](a+8|0)|0;a:{if(K[a+11|0]>>>7|0){b=J[a>>2];break a}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;return Zg(g,h,c,d,e,f,i,b+(a<<2)|0)|0}function lha(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;g=J[a+4>>2];if((b|0)!=1){h=J[a>>2];J[h+24>>2]=b;J[h+20>>2]=15;Ab[J[J[a>>2]>>2]](a)}else b=1;a=Kl(a,b,128);J[a+40>>2]=0;J[a+32>>2]=c;J[a+12>>2]=f;J[a+ -8>>2]=d;J[a+4>>2]=e;J[a>>2]=0;J[a+44>>2]=J[g+72>>2];J[g+72>>2]=a;return a|0}function kha(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;g=J[a+4>>2];if((b|0)!=1){h=J[a>>2];J[h+24>>2]=b;J[h+20>>2]=15;Ab[J[J[a>>2]>>2]](a)}else b=1;a=Kl(a,b,128);J[a+40>>2]=0;J[a+32>>2]=c;J[a+12>>2]=f;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=0;J[a+44>>2]=J[g+68>>2];J[g+68>>2]=a;return a|0}function kd(a){var b=0;b=J[a+16>>2];if(b)Kb(b);b=J[a+20>>2];if(b)Kb(b);J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>> -2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a}function gn(a){a=a|0;I[a+8>>1]=0;J[a+4>>2]=428124;J[a>>2]=428060;H[a+13|0]=0;H[a+12|0]=255;H[a+11|0]=255;H[a+10|0]=255;I[a+38>>1]=0;I[a+30>>1]=0;I[a+32>>1]=0;I[a+34>>1]=0;I[a+36>>1]=0;I[a+22>>1]=0;I[a+24>>1]=0;I[a+26>>1]=0;I[a+28>>1]=0;I[a+14>>1]=0;I[a+16>>1]=0;I[a+18>>1]=0;I[a+20>>1]=0;return a|0}function Oj(a){var b=0,c=0,d=0; -while(1){c=a;a=a+1|0;b=H[c|0];if((b|0)==32|b-9>>>0<5)continue;break}d=1;a:switch(b-43|0){case 2:d=0;case 0:b=H[a|0];c=a;break;default:break a}a=0;if(b-48>>>0<10)while(1){a=(P(a,10)-H[c|0]|0)+48|0;b=H[c+1|0];c=c+1|0;if(b-48>>>0<10)continue;break}return d?0-a|0:a}function ET(a){a=a|0;var b=0,c=0,d=0,e=0;e=J[a>>2];b=J[a+8>>2];if(b){c=J[a+16>>2];d=J[c+4>>2];J[b+108>>2]=J[c>>2];J[b+112>>2]=d;J[b+124>>2]=J[c+16>>2];d=J[c+12>>2];J[b+116>>2]=J[c+8>>2];J[b+120>>2]=d}b=J[a+1512>>2];if(b){Ab[b|0](J[a+1508>> -2]);b=J[a+1508>>2];if(b)Ab[J[e+8>>2]](e,b);J[a+1508>>2]=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;if(b){f=J[d>>2]+P(J[d+4>>2],(a|0)/-4|0)|0;while(1){if(L[c+2>>1]){g=K[c+4|0]+8>>>4|0;d=0;while(1){e=f+((I[c>>1]+d|0)/4|0)|0;a=K[e|0]+g|0;H[e|0]=a-(a>>>8|0);d=d+1|0;if(d>>>0>1])continue;break}}c=c+6|0;b=b-1|0;if(b)continue;break}}}function ke(a){var b=0,c=0;b=J[a+76>>2];if(!((b|0)>=0&(!b|J[194980]!=(b&-1073741825)))){b=J[a+4>>2];if((b|0)!=J[a+8>>2]){J[a+4>>2]=b+1;return K[b| -0]}return an(a)}b=a+76|0;c=J[b>>2];J[b>>2]=c?c:1073741823;c=J[a+4>>2];a:{if((c|0)!=J[a+8>>2]){J[a+4>>2]=c+1;a=K[c|0];break a}a=an(a)}J[b>>2]=0;return a}function K9(a){a=a|0;var b=0,c=0,d=0;c=xb-16|0;xb=c;b=J[a+584>>2];if(H[b+124|0]&1){Tg(b- -64|0);J[b+124>>2]=0}a:{if(so(b- -64|0,J[b+120>>2],8,15,8,0,265956)){d=J[a+628>>2];a=J[a>>2];J[c+4>>2]=J[b+88>>2];J[c>>2]=a;Ob(d,289066,266147,c);a=0;break a}J[b+124>>2]=J[b+124>>2]|2;a=1}xb=c+16|0;return a|0}function $Y(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g= -0;a=J[a+16>>2];d=L[a+2>>1];a:{if(d+(L[a+6>>1]<<8)>>>0>>0)break a;c=L[a>>1];f=L[a+4>>1];if(c+(f<<8)>>>0>b>>>0)break a;e=b&255;if(e>>>0>d>>>0|c>>>0>e>>>0)break a;g=L[(J[a+12>>2]+(e-c<<1)|0)+(P((d-c|0)+1|0,(b>>>8&65535)-f|0)<<1)>>1]}return g|0}function mw(a,b,c){var d=0,e=0,f=0;e=xb-16|0;xb=e;f=J[J[a+128>>2]+52>>2];a:{b:{if(!f){d=b<<2;b=d+J[a+432>>2]|0;d=d+J[a+428>>2]|0;break b}d=e+8|0;a=Ab[J[J[f>>2]>>2]](J[f+4>>2],b,d)|0;if(a)break a;b=e+12|0}b=J[b>>2];d=J[d>>2];J[c+12>>2]=d;a=0;J[c>>2]=0;J[c+4>> -2]=d;J[c+8>>2]=b+d}xb=e+16|0;return a}function ij(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=id(b);if(c>>>0<1073741808){b:{if(c>>>0<=1){H[a+11|0]=c;d=a;break b}d=c|3;if(d>>>0>=1073741823)break a;e=d+1|0;d=Pb(e<<2);J[a+8>>2]=e|-2147483648;J[a>>2]=d;J[a+4>>2]=c}e=b;b=c<<2;f=qc(d,e,b)+b|0,g=0,J[f>>2]=g;return a|0}dd(a);B()}zd();B()}function b3(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=395580;e=a-8|0;J[e>>2]=394888;c=J[a+104>>2];if(c){b=J[a+108>>2];d=c;if((b|0)!=(c|0)){while(1){if(H[b-5|0]<0)Kb(J[b-16>> -2]);d=b-28|0;if(H[b-17|0]<0)Kb(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a+104>>2]}J[a+108>>2]=c;Kb(d)}Ag(a);return e|0}function pL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>65535)break a;e=J[c+288>>2];if((e|0)<=0)break a;f=J[c+292>>2];while(1){c=J[(d<<2)+f>>2];b:{if(!c|K[c|0]!=K[a|0])break b;if((ac(c)|0)!=(b|0))break b;if(!Zb(c,a,b))break a}d=d+1|0;if((e|0)!=(d|0))continue;break}d=0}return d|0}function gW(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){d=J[J[a>>2]+100>>2];while(1){b=e<<2; -f=b+a|0;c=J[f+16>>2];if(c){b=J[J[(J[J[b+16608>>2]+4>>2]<<2)+16320>>2]+16>>2];if(b){Ab[b|0](c);c=J[f+16>>2]}if(c)Ab[J[d+8>>2]](d,c);J[f+16>>2]=0}e=e+1|0;if((e|0)!=87)continue;break}if(a)Ab[J[d+8>>2]](d,a)}}function Bia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+932>>2];a:{if(!e)break a;c=J[a+16>>2];if((c|0)!=J[b+16>>2])break a;d=J[a+20>>2];if((d|0)!=J[b+20>>2])break a;d=P(c,d);c=J[a+932>>2];if(!c){c=Qb(d);J[a+932>>2]=c;if(!c)break a;e=J[b+932>>2]}Mb(c,e,d);H[a+388|0]=K[b+388|0];f=1}return f|0}function cd(a, -b,c){var d=0,e=0;a:{b:{if(c>>>0>=4){if((a|b)&3)break b;while(1){if(J[a>>2]!=J[b>>2])break b;b=b+4|0;a=a+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a}while(1){d=K[a|0];e=K[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c-1|0;if(c)continue;break a}break}return d-e|0}return 0}function ac(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3))break b;if(!K[b|0])return 0;while(1){b=b+1|0;if(!(b&3))break b;if(K[b|0])continue;break}break a}while(1){c=b;b=b+4|0;d=J[c>>2];if(!((d^-1)&d-16843009&-2139062144))continue;break}while(1){b= -c;c=b+1|0;if(K[b|0])continue;break}}return b-a|0}function SE(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{c=J[a+932>>2];if(!c)break a;d=J[a+16>>2];e=Qb(d);if(!e)break a;b=J[a+20>>2];if((b|0)>=2){b=P(b-1|0,d)+c|0;while(1){g=Mb(e,b,d);b=Mb(b,c,d);c=Mb(c,g,J[a+16>>2]);d=J[a+16>>2];c=c+d|0;b=b-d|0;f=f+1|0;if((f|0)<(J[a+20>>2]/2|0))continue;break}}Kb(e)}}function Nd(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;H[d+15|0]=0;J[b>>2]=0;c=J[a+8>>2];a:{b:{f=J[a+20>>2];c:{if(f){e=d+15|0;if((Ab[f|0](a,c,e,1)|0)!=1)break b;c= -J[a+8>>2];break c}if(M[a+4>>2]<=c>>>0)break b;e=J[a>>2]+c|0}b=K[e|0];J[a+8>>2]=c+1;break a}J[b>>2]=85;b=0}xb=d+16|0;return b<<24>>24}function nf(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;a:{if(!b){b=0;break a}c=b>>31;e=(c^b)-c|0;c=S(e);Ke(d,e,0,0,0,c+81|0);e=0+J[d+8>>2]|0;c=(J[d+12>>2]^65536)+(16414-c<<16)|0;c=e>>>0>>0?c+1|0:c;f=b&-2147483648|c;c=J[d+4>>2];b=J[d>>2]}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=e;J[a+12>>2]=f;xb=d+16|0}function sm(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;b=H[a|0];e=b&255;if(!e| -!(K[(e>>>3|0)+24096|0]>>>(b&7)&1))break a;while(1){c=65535;if((d&65535)>>>0>6551)break a;c=b+24128|0;b=H[a+1|0];a=a+1|0;d=K[c|0]+P(d,10)|0;c=d;if(K[((b&248)>>>3|0)+24096|0]>>>(b&7)&1)continue;break}}return c&65535}function Jr(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+644>>2];if((c|0)<=0)break a;d=J[a+648>>2];a=d+P(c,5)|0;while(1){c=a-5|0;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))==(K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24)))return K[a-1|0];a=c;if(c>>>0>d>>>0)continue;break}}return 0} -function Hu(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;d=J[a+36>>2];a:{if(!d)break a;d=J[d+28>>2];b=uo(a+36|0,b,c+12|0,c+8|0);J[c+4>>2]=b;if(b)break a;b=J[c+8>>2];e=tc(d,b+1|0,c+4|0);if(!J[c+4>>2]){if(b)Mb(e,J[c+12>>2],b);H[b+e|0]=0}if(J[a+68>>2])break a;rd(J[a+36>>2],c+12|0)}xb=c+16|0;return e}function E0(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-32|0;xb=c;d=J[a+208>>2];if(d)Ab[J[J[d>>2]+344>>2]](d,b);if(J[b+48>>2]){d=J[b+16>>2];J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+8>>2]=0;J[c+12>>2]=1072693248;J[c+16>>2]=0; -J[c+20>>2]=1072693248;J[c>>2]=0;J[c+4>>2]=1072693248;WA(a,b+40|0,d,c)}xb=c+32|0}function CT(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;g=a;h=b;a=Ab[J[J[a+8>>2]+20>>2]](a+8|0)|0;a:{if(K[a+11|0]>>>7|0){b=J[a>>2];break a}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;return _g(g,h,c,d,e,f,i,b+a|0)|0}function hR(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];a:{if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=ie(d,1,0);if(d)break a}d= -J[a+20>>2];if(K[a+65|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function el(a,b,c,d){var e=0,f=0,g=0;e=xb-160|0;xb=e;f=b?a:e+158|0;J[e+148>>2]=f;a=-1;g=b-1|0;J[e+152>>2]=b>>>0>=g>>>0?g:0;e=Nb(e,0,144);J[e+76>>2]=-1;J[e+36>>2]=3532;J[e+80>>2]=-1;J[e+44>>2]=e+159;J[e+84>>2]=e+148;a:{if((b|0)<0){J[194954]=61;break a}H[f|0]=0;a=Ty(e,c,d)}xb=e+160|0;return a}function Z6(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb- -16|0;xb=e;f=J[b>>2]+16|0;J[e+12>>2]=f;J[e+8>>2]=75;J[a+8>>2]=J[a+8>>2]+f;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],e+8|0,4);Lb(J[a+4>>2],e+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],c,4);b=J[b>>2];if(b)Lb(J[a+4>>2],J[d+8>>2],b);xb=e+16|0}function Pka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=6;a=J[a+84>>2];a:{if(!a)break a;e=J[a+4>>2];if(!e)break a;d=IF(J[J[e+96>>2]+4>>2],a,b)}if(!d){c=Qb(24);J[c>>2]=J[a+100>>2];J[c+4>>2]=J[a+104>>2];J[c+8>>2]=J[a+80>>2];J[c+12>>2]=J[a+76>>2];J[c+16>>2]=J[a+84>>2];J[c+20>>2]=K[a+ -94|0]}return c|0}function $2(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=395580;e=a-8|0;J[e>>2]=394888;c=J[a+104>>2];if(c){b=J[a+108>>2];d=c;if((b|0)!=(c|0)){while(1){if(H[b-5|0]<0)Kb(J[b-16>>2]);d=b-28|0;if(H[b-17|0]<0)Kb(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a+104>>2]}J[a+108>>2]=c;Kb(d)}Ag(a);Kb(e)}function sq(a,b,c,d){var e=0,f=0,g=0,h=0;e=xb-160|0;xb=e;J[e+60>>2]=b;J[e+20>>2]=b;J[e+24>>2]=-1;f=e+16|0;Vf(f,0,0);Zy(e,f,d,1);d=J[e+8>>2];g=J[e+12>>2];f=J[e>>2];h=J[e+4>>2];if(c)J[c>>2]=J[e+136>> -2]+((J[e+20>>2]-J[e+60>>2]|0)+b|0);J[a+8>>2]=d;J[a+12>>2]=g;J[a>>2]=f;J[a+4>>2]=h;xb=e+160|0}function q$(a){a=a|0;var b=0,c=0;J[a>>2]=416172;c=a-4|0;J[c>>2]=416104;a:{b:{if(J[a+12>>2]!=5)break b;b=K[a+83|0];if(!(b<<24>>24<0?J[a+76>>2]:b))break b;J[195395]=0;_(1123,a+72|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}if(H[a+83|0]<0)Kb(J[a+72>>2]);Kb(c);return}ga(0)|0;_b();B()}function mba(a,b){a=a|0;b=b|0;var c=0,d=Q(0),e=0;b=J[a+584>>2];J[b+92>>2]=0;J[b+64>>2]=0;J[b+68>>2]=8;c=J[b+96>>2];if(c)Pd(c, -0,J[b+8>>2]);c=0;if(H[b+28|0]&1){d=N[a+132>>2];e=(L[a+136>>1]==3?Q(d*Q(2.5399999618530273)):d)>Q(150)?4:2;c=e-1|0}J[b+108>>2]=0;J[b+100>>2]=c;J[b+104>>2]=e;return 1}function c3(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=395580;J[a>>2]=394888;c=J[a+112>>2];if(c){b=J[a+116>>2];d=c;if((b|0)!=(c|0)){while(1){if(H[b-5|0]<0)Kb(J[b-16>>2]);d=b-28|0;if(H[b-17|0]<0)Kb(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a+112>>2]}J[a+116>>2]=c;Kb(d)}Ag(a+8|0);return a|0}function Qh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j= -0;gf(a+408|0,b,c);h=O[a+432>>3];f=O[a+408>>3];i=O[a+424>>3];e=O[a+416>>3];d=h*f-i*e;g=h/d;O[a+480>>3]=g;O[a+472>>3]=-i/d;O[a+464>>3]=-e/d;O[a+456>>3]=g;j=e;e=O[a+440>>3];g=f;f=O[a+448>>3];O[a+496>>3]=j*e/d-g*f/d;O[a+488>>3]=i*f/d-h*e/d;Yf(a)}function cU(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if(!b)return 3;a:{b:{if(K[a+68|0]){a=J[a+12>>2];if((I[a+20>>1]+I[a+56>>1]|0)+1>>>0>M[a+8>>2]){a=ie(a,0,1);if(a)break a}c=L[b>>1];a=c<<16>>16;if((a|0)<=0)break b;I[(J[b+12>>2]+(c<<1)|0)-2>>1]=L[b+2>>1]-1}a=L[b>>1]}I[b>> -1]=a+1;a=0}return a|0}function yN(a,b){a=a|0;b=b|0;var c=0;a:switch(b|0){case 0:return a+160|0;case 3:return a+216|0;case 4:return(K[a+292|0]?a+296|0:0)|0;case 2:return(L[a+372>>1]!=65535?a+372|0:0)|0;case 5:return a+476|0;case 1:return a+260|0;case 6:c=J[a+568>>2]?a+568|0:0;break;default:break a}return c|0}function s$(a){a=a|0;var b=0,c=0;J[a>>2]=416172;c=a-4|0;J[c>>2]=416104;a:{b:{if(J[a+12>>2]!=5)break b;b=K[a+83|0];if(!(b<<24>>24<0?J[a+76>>2]:b))break b;J[195395]=0;_(1123,a+72|0)|0;b=J[195395]; -J[195395]=0;if((b|0)==1)break a}if(H[a+83|0]<0)Kb(J[a+72>>2]);return c|0}ga(0)|0;_b();B()}function Vn(a,b,c){var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=0;a:{if(!a)break a;f=J[a+92>>2];d=0;if(!f)break a;d=0;if(!J[a+16>>2])break a;J[e+12>>2]=b;while(1){g=Ab[J[J[f+12>>2]+16>>2]](f,e+12|0)|0;if(g>>>0>=M[a+16>>2])continue;break}d=g?J[e+12>>2]:0}a=d;if(c)J[c>>2]=g;xb=e+16|0;return a}function yg(a){var b=0,c=0,d=0,e=0;b=bz(a,61);if((b|0)==(a|0))return 0;d=b-a|0;a:{if(K[d+a|0])break a;b=J[194956];if(!b)break a; -c=J[b>>2];if(!c)break a;while(1){b:{if(!Zb(a,c,d)){c=J[b>>2]+d|0;if(K[c|0]==61)break b}c=J[b+4>>2];b=b+4|0;if(c)continue;break a}break}e=c+1|0}return e}function lh(a){var b=0,c=0;J[a+20>>2]=0;J[a+36>>2]=0;J[a+48>>2]=0;b=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>>2]=b;c=J[a+32>>2];b=a- -64|0;J[b>>2]=J[a+28>>2];J[b+4>>2]=c;J[a+88>>2]=J[a+52>>2];b=J[a+40>>2];J[a+72>>2]=J[a+36>>2];J[a+76>>2]=b;b=J[a+48>>2];J[a+80>>2]=J[a+44>>2];J[a+84>>2]=b}function W0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-48|0;xb=c;a= -J[J[a>>2]-80>>2]+a|0;d=Ab[J[J[a>>2]+36>>2]](a)|0;e=+J[d>>2];O[c+40>>3]=-+J[d+4>>2];O[c+32>>3]=-e;O[c+24>>3]=1;O[c+16>>3]=0;O[c+8>>3]=0;O[c>>3]=1;d=a+160|0;Rd(d,J[a+120>>2]+((b|0)==1?552:504)|0);gf(d,c,3);xb=c+48|0;return d|0}function xu(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;J[e>>2]=0;J[d>>2]=0;f=J[a+116>>2];h=J[f+76>>2];i=J[a+120>>2];f=J[f+12>>2];if(f)f=J[f+56>>2];else f=0;c=Ab[h|0](a,i,b,c,d,e,f)|0;if(c){uj(a,b,g+12|0,g+8|0);J[d>>2]=J[d>>2]-J[g+12>>2];J[e>>2]=J[e>>2]-J[g+8>>2]}xb=g+16|0; -return c}function jX(a){a=a|0;var b=0,c=0,d=0,e=0;b=xb-16|0;xb=b;J[b+12>>2]=0;a:{b:{c=K[a+11|0];d=c<<24>>24<0;e=d?J[a>>2]:a;if(e){a=d?J[a+4>>2]:c;if(a)break b}a=Ni(0,227736);break a}Rj(e,a,b+12|0,b+8|0,0);c=J[b+12>>2];a=Ni(c,227736);if(!c)break a;Kb(c)}if(a)sf(a);xb=b+16|0;return(a|0)!=0|0}function a3(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=395580;J[a>>2]=394888;c=J[a+112>>2];if(c){b=J[a+116>>2];d=c;if((b|0)!=(c|0)){while(1){if(H[b-5|0]<0)Kb(J[b-16>>2]);d=b-28|0;if(H[b-17|0]<0)Kb(J[d>>2]);b=d;if((c|0)!= -(b|0))continue;break}d=J[a+112>>2]}J[a+116>>2]=c;Kb(d)}Ag(a+8|0);Kb(a)}function tV(a){a=a|0;var b=0,c=0,d=0;b=J[a+24>>2];if(b>>>0>M[a+44>>2])J[a+44>>2]=b;a:{if(!(K[a+48|0]&8))break a;b=J[a+44>>2];if(b>>>0>M[a+16>>2]){c=J[a+8>>2];d=J[a+12>>2];J[a+16>>2]=b;J[a+12>>2]=d;J[a+8>>2]=c}b=J[a+16>>2];a=J[a+12>>2];if(b>>>0<=a>>>0)break a;return K[a|0]}return-1}function qba(a){a=a|0;var b=0,c=0;b=J[a+584>>2];J[a+672>>2]=J[b+48>>2];J[a+668>>2]=J[b+52>>2];J[a+676>>2]=J[b+56>>2];c=J[b+80>>2];if(c)Kb(c);b=J[b+96>> -2];if(b)Kb(b);b=J[a+584>>2];c=J[b+36>>2];if(c){Kb(c);b=J[a+584>>2]}c=J[b+44>>2];if(c){Kb(c);b=J[a+584>>2]}Kb(b);J[a+584>>2]=0;_i(a)}function eG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+12>>2];a:{if(Ab[J[e+24>>2]](e,b,J[e+56>>2])>>>0<=31){e=J[a+12>>2];f=0;if(1<>2]](e,b,J[e+56>>2])&7168)break a}a=J[a+12>>2];J[d>>2]=0;f=0;if(!b|!c)break a;f=(Ab[J[a+36>>2]](a,b,c,d,J[a+68>>2])|0)!=0}return f|0}function c$(a){a=a|0;var b=0,c=0;J[a>>2]=416284;c=a-4|0;J[c>>2]=416232;b=J[a+24>>2];if(b){Ab[J[J[b>> -2]+4>>2]](b);J[a+24>>2]=0}b=J[a+44>>2];if(b){Kb(b);J[a+44>>2]=0}b=J[a+52>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0}b=J[a+56>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+56>>2]=0}return c|0}function sk(a,b){var c=0,d=0,e=0,f=0;c=J[a>>2];a:{if(!b){if(!c)break a;Kb(c);return}d=ac(b);if(!c){c=a;a=Qb(d+4096|0);J[c>>2]=a;c=a;a=ac(b);e=Mb(c,b,a)+a|0,f=0,H[e|0]=f;return}if(d>>>0>4294963199)break a;Kb(c);c=a;a=Qb(d+4096|0);J[c>>2]=a;if(!a)break a;if(d)Mb(a,b,d);H[a+d|0]=0}}function oR(a){a=a|0;var b=0,c=0;b=J[a+ -8>>2];J[195395]=0;b=ha(3773,0,0,4,b|0)|0;c=J[195395];J[195395]=0;a:{if((c|0)==1)break a;if(b)a=-1;else{a=J[a+8>>2];if(!a)return 1;J[195395]=0;a=_(3774,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;a=(a|0)==1}return a|0}ga(0)|0;_b();B()}function SD(a,b){var c=0,d=0;a:{d=K[a+9|0];if(d>>>0>7)break a;c=J[a+4>>2];a=257888;b:{c:switch(d-1|0){case 1:a=258144;break b;case 0:break b;case 3:break c;default:break a}a=258400}if((c|0)<=0)break a;c=b+c|0;while(1){H[b|0]=K[K[b|0]+a|0];b=b+1|0;if(c>>>0>b>>> -0)continue;break}}}function KL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+736>>2];a:{b:{if(f){if(b)J[b>>2]=J[f>>2];if(c)J[c>>2]=J[f+4>>2];if(d)J[d>>2]=J[J[a+736>>2]+8>>2];if(!e)break a;a=J[J[a+736>>2]+12>>2];break b}if(b)J[b>>2]=0;if(c)J[c>>2]=0;a=0;if(!e)break a}J[e>>2]=a}return 0}function mQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(b>>>0>255)break a;b=Ab[J[a+20>>2]](L[J[a+16>>2]+(b<<1)>>1])|0;d=J[a+24>>2];if(!d)break a;e=J[a+28>>2];while(1){a=J[(c<<2)+e>>2];if(!(!a|K[a|0]!=K[b|0]))if(!fc(a, -b))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}c=0}return c|0}function Jq(a,b,c){var d=0;d=xb-16|0;xb=d;a:{if(b>>>0<=255){b=Nc(a,b&4?29840:29872,c);break a}b=Nc(a,29904,d+11|0);if(b)break a;I[c>>1]=K[d+11|0]-128;I[c+2>>1]=K[d+12|0]-128;I[c+4>>1]=K[d+13|0]-128;I[c+6>>1]=K[d+14|0]-128;a=K[d+15|0];I[c+10>>1]=0;I[c+8>>1]=a-128}xb=d+16|0;return b}function ao(a,b){var c=0,d=0,e=0;d=J[J[a+4>>2]+100>>2];c=J[a+156>>2];e=J[c+4>>2];a:{if(e&1){c=J[a+88>>2];if(c)Ab[J[d+8>>2]](d,c);J[a+88>>2]=0;break a}J[c+ -4>>2]=e|1}e=0;c=b?6:0;b:{if((b|0)<=0)break b;d=Ab[J[d+4>>2]](d,b)|0;c=64;if(!d)break b;e=Nb(d,0,b);c=0}J[a+88>>2]=e;return c}function SH(a){var b=0,c=0,d=0;if(J[a>>2]){c=J[a+4>>2];if(c){b=J[a+8>>2]+P(c,28)|0;while(1){d=b-28|0;if(J[d+4>>2]){J[d+8>>2]=0;Kb(J[d+12>>2])}b=b-28|0;J[b+8>>2]=0;J[d+4>>2]=0;J[b+12>>2]=0;b=d;c=c-1|0;if(c)continue;break}}J[a+4>>2]=0;Kb(J[a+8>>2])}J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0}function Dg(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;g=+g;var h=0,i=0,j=0,k=0;h=+(e|0); -i=+(d|0);j=+(c|0);k=+(b|0);b=J[a+156>>2];a:{if(b){if(Se(b,k,j,i,h,f,g))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}a=J[a+208>>2];if(!a)break a;Ab[J[J[a>>2]+44>>2]](a,k,j,i,h,f,g)}}function r$(a){a=a|0;var b=0;J[a+4>>2]=416172;J[a>>2]=416104;a:{b:{if(J[a+16>>2]!=5)break b;b=K[a+87|0];if(!(b<<24>>24<0?J[a+80>>2]:b))break b;J[195395]=0;_(1123,a+76|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}if(H[a+87|0]<0)Kb(J[a+76>>2]);Kb(a);return}ga(0)|0;_b();B()}function mD(a){var b=0,c=0,d=0,e=0;b=xb-256| -0;xb=b;a:{if(K[a+276|0]&4){c=Ns(a+212|0);J[a+276>>2]=J[a+276>>2]&-5;if(!c)break a;d=259502;e=c+6|0;if(e>>>0<=4)d=J[(e<<2)+262856>>2];yf(b,1,1,c);bE(b,2,d);c=J[a+236>>2];bE(b,3,c?c:259535);$i(a,b,259601);break a}Wb(a,259666)}xb=b+256|0}function hJ(a,b,c){a=a|0;b=b|0;c=c|0;if(ti(a,b,c))a=1;else{if(b>>>0<=65276)b=L[(K[(b>>>3&15|K[((K[(b>>>13|0)+114592|0]>>>(b>>>10&6)<<4&48|b>>>7&14)>>>1|0)+114600|0]>>>(b>>>5&4)<<4&240)+114632|0]<<4|(b&7)<<1)+108832>>1];else b=0;if(b)a=ti(a,b,c);else a=1;a=a&(b|0)!=0}return a| -0}function gJ(a,b,c){a=a|0;b=b|0;c=c|0;if(ti(a,b,c))a=1;else{if(b>>>0<=65276)b=L[(K[(K[((K[(b>>>11|0)+114728|0]>>>(b>>>8&4)<<4&240|b>>>6&14)>>>1|0)+114760|0]>>>(b>>>4&4)<<4&240|b>>>2&15)+114800|0]<<3|(b&3)<<1)+109472>>1];else b=0;if(b)a=ti(a,b,c);else a=1;a=a&(b|0)!=0}return a|0}function Gw(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(d>>>0>=c>>>0){if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;Zk(d,b,c);return Pp(a,d,c)|0}e=d;f=c-d|0;if(K[a+11|0]>>>7|0)d=J[a+ -4>>2];else d=K[a+11|0]&127;Yk(a,e,f,d,0,d,c,b);return a|0}function Aaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;Ab[J[J[a+584>>2]+908>>2]](a,b,c);e=b;d=J[b>>2];b=L[a+204>>1]<<3;if(d>>>0<0-b>>>0)d=((b+d|0)-1>>>0)/(b>>>0)|0;else d=0;J[e>>2]=P(d,b);b=J[c>>2];a=L[a+206>>1]<<3;if(b>>>0<0-a>>>0)b=((a+b|0)-1>>>0)/(a>>>0)|0;else b=0;J[c>>2]=P(b,a)}function ec(a,b,c){var d=0,e=0,f=0;d=J[a+72>>2]+c|0;a:{if(!(!d|d>>>0>2]))if(!yh(a,d))break a;e=1;d=J[a+84>>2];if((d|0)!=J[a+80>>2])break a;f=c;c=J[a+72>>2]; -if(f+c>>>0<=J[a+64>>2]+b>>>0)break a;b=a;a=J[a+88>>2];J[b+84>>2]=a;b=P(c,20);if(!b)break a;Mb(a,d,b)}return e}function a$(a){a=a|0;var b=0,c=0;J[a>>2]=416284;c=a-4|0;J[c>>2]=416232;b=J[a+24>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+24>>2]=0}b=J[a+44>>2];if(b){Kb(b);J[a+44>>2]=0}b=J[a+52>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0}b=J[a+56>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+56>>2]=0}Kb(c)}function Vz(a,b){a=a|0;b=b|0;var c=0;J[a+4>>2]=428124;J[a>>2]=428060;I[a+8>>1]=L[b>>1];c=a+10|0;H[c|0]=K[b+2|0]; -H[c+1|0]=K[b+3|0];H[c+2|0]=K[b+4|0];H[c+3|0]=K[b+5|0];b=L[b+6>>1];J[a+16>>2]=0;J[a+20>>2]=0;I[a+14>>1]=b;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;return a|0}function P9(a){a=a|0;var b=0,c=0,d=0;c=xb-16|0;xb=c;b=J[a+584>>2];if(K[b+124|0]&2){wk(b- -64|0);J[b+124>>2]=0}a:{if(OF(b- -64|0,265956,56)){d=J[a+628>>2];a=J[a>>2];J[c+4>>2]=J[b+88>>2];J[c>>2]=a;Ob(d,289041,266147,c);a=0;break a}J[b+124>>2]=J[b+124>>2]|1;a=1}xb=c+16|0;return a|0}function Ge(a){a=a|0;var b=0;J[a+4>>2]=416172;J[a>>2]= -416104;a:{b:{if(J[a+16>>2]!=5)break b;b=K[a+87|0];if(!(b<<24>>24<0?J[a+80>>2]:b))break b;J[195395]=0;_(1123,a+76|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}if(H[a+87|0]<0)Kb(J[a+76>>2]);return a|0}ga(0)|0;_b();B()}function oN(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=142;e=L[a+152>>1];a:{if(!e)break a;a=J[a+156>>2];e=a+(e<<4)|0;while(1){b:{if(J[a>>2]==(b|0)){g=J[a+12>>2];if(g)break b}a=a+16|0;if(e>>>0>a>>>0)continue;break a}break}if(d)J[d>>2]=g;f=bc(c,J[a+8>>2])}return f|0}function jn(a, -b,c){var d=0;if(K[a+192|0]){J[a+176>>2]=b;H[a+192|0]=0;J[a+184>>2]=b;J[a+188>>2]=c;J[a+180>>2]=c;return}d=a+176|0;a:{if(J[d>>2]<=(b|0)){d=a+184|0;if(J[d>>2]>=(b|0))break a}J[d>>2]=b}if(J[a+180>>2]>(c|0)){J[a+180>>2]=c;return}if(J[a+188>>2]<(c|0))J[a+188>>2]=c}function bl(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-16|0;xb=c;J[c+12>>2]=a;a:{if((a|0)==(b|0))break a;while(1){b=b-4|0;J[c+8>>2]=b;if(a>>>0>=b>>>0)break a;a=J[c+12>>2];b=J[a>>2];d=a;a=J[c+8>>2];J[d>>2]=J[a>>2];J[a>>2]=b;a=J[c+12>>2]+4|0;J[c+12>>2]= -a;b=J[c+8>>2];continue}}xb=c+16|0}function bq(a){a=a|0;var b=0,c=0;J[a>>2]=760564;J[195395]=0;$(3610,a|0,0);b=J[195395];J[195395]=0;if((b|0)!=1){b=J[a+28>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)Ab[J[J[b>>2]+8>>2]](b);Kb(J[a+32>>2]);Kb(J[a+36>>2]);Kb(J[a+48>>2]);Kb(J[a+60>>2]);return a|0}ga(0)|0;_b();B()}function Zt(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+36>>2];c:{if(!c)break c;d=J[c+12>>2];if(!d)break c;c=J[a+32>>2];if(c)c=J[c+12>>2];else c=0;Ab[d|0](c)}J[a+24>>2]=b?b: -634;b=J[a+32>>2];if(b)J[b+12>>2]=0;a=J[a+36>>2];if(!a)break a;J[a+12>>2]=0}}function II(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+16>>2];c:{if(!c)break c;d=J[c+40>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c+40>>2];else c=0;Ab[d|0](c)}J[a+60>>2]=b?b:657;b=J[a+12>>2];if(b)J[b+40>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+40>>2]=0}}function Ht(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+16>>2];c:{if(!c)break c;d=J[c+12>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c+12>>2]; -else c=0;Ab[d|0](c)}J[a+32>>2]=b?b:652;b=J[a+12>>2];if(b)J[b+12>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+12>>2]=0}}function HI(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+16>>2];c:{if(!c)break c;d=J[c+52>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c+52>>2];else c=0;Ab[d|0](c)}J[a+72>>2]=b?b:659;b=J[a+12>>2];if(b)J[b+52>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+52>>2]=0}}function Gt(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+16>>2];c:{if(!c)break c;d=J[c+16>>2];if(!d)break c; -c=J[a+12>>2];if(c)c=J[c+16>>2];else c=0;Ab[d|0](c)}J[a+36>>2]=b?b:653;b=J[a+12>>2];if(b)J[b+16>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+16>>2]=0}}function GI(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+16>>2];c:{if(!c)break c;d=J[c+60>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c+60>>2];else c=0;Ab[d|0](c)}J[a+80>>2]=b?b:661;b=J[a+12>>2];if(b)J[b+60>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+60>>2]=0}}function Ft(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+16>>2];c:{if(!c)break c; -d=J[c+28>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c+28>>2];else c=0;Ab[d|0](c)}J[a+48>>2]=b?b:655;b=J[a+12>>2];if(b)J[b+28>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+28>>2]=0}}function FI(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+16>>2];c:{if(!c)break c;d=J[c+64>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c+64>>2];else c=0;Ab[d|0](c)}J[a+84>>2]=b?b:662;b=J[a+12>>2];if(b)J[b+64>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+64>>2]=0}}function EI(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b; -c=J[a+16>>2];c:{if(!c)break c;d=J[c+68>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c+68>>2];else c=0;Ab[d|0](c)}J[a+88>>2]=b?b:663;b=J[a+12>>2];if(b)J[b+68>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+68>>2]=0}}function up(a,b){var c=0,d=0,e=0,f=0;c=b&-4;if(c)while(1){e=(K[(d|3)+a|0]|(K[(d|1)+a|0]<<16|K[a+d|0]<<24|K[(d|2)+a|0]<<8))+e|0;d=d+4|0;if(d>>>0>>0)continue;break}if((b|0)!=(c|0)){while(1){f=K[a+c|0]<<((c^-1)<<3)|f;c=c+1|0;if(c>>>0>>0)continue;break}e=e+f|0}return e}function d$(a){a=a|0;var b=0;J[a+ -4>>2]=416284;J[a>>2]=416232;b=J[a+28>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}b=J[a+48>>2];if(b){Kb(b);J[a+48>>2]=0}b=J[a+56>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+56>>2]=0}b=J[a+60>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+60>>2]=0}return a|0}function Tg(a){var b=0,c=0,d=0;c=-2;a:{if(!a|!J[a+32>>2])break a;d=J[a+36>>2];if(!d)break a;b=J[a+28>>2];if(!b|J[b>>2]!=(a|0)|J[b+4>>2]-16180>>>0>31)break a;c=J[b+56>>2];if(c){Ab[d|0](J[a+40>>2],c);d=J[a+36>>2];b=J[a+28>>2]}Ab[d|0](J[a+40>>2],b);c=0;J[a+28>>2]= -0}return c}function $ea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if(J[a+76>>2]>0){i=J[a+412>>2];f=J[a+84>>2];j=c<<2;while(1){c=g<<2;h=c+i|0;Ab[J[h+12>>2]](a,f,J[b+c>>2]+j|0,J[c+d>>2]+(P(J[h+52>>2],e)<<2)|0);f=f+88|0;g=g+1|0;if((g|0)>2])continue;break}}}function fK(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+132>>2];if(b){if(J[b+160>>2])rd(J[a+104>>2],b+160|0);d=J[b+168>>2];if(d)Ab[J[c+8>>2]](c,d);J[b+168>>2]=0;if(b)Ab[J[c+8>>2]](c,b);J[a+132>>2]=0}b=J[a+32>> -2];if(b)Ab[J[c+8>>2]](c,b);J[a+28>>2]=0;J[a+32>>2]=0}}function _b(){var a=0;a=J[194105];J[195395]=0;ja(a|0);a=J[195395];J[195395]=0;a:{if((a|0)!=1){J[195395]=0;$(4061,227461,0);a=J[195395];J[195395]=0;if((a|0)!=1)break a}sa(ga(0)|0)|0;J[195395]=0;$(4061,226253,0);a=J[195395];J[195395]=0;if((a|0)!=1)break a;ga(0)|0;_b()}B()}function ZQ(a){a=a|0;var b=0,c=0;b=J[a+20>>2];a:{b:{if(K[a+65|0]){a=J[a+12>>2];if((I[a+20>>1]+I[a+56>>1]|0)+1>>>0>M[a+8>>2]){a=ie(a,0,1);if(a)break a}c=L[b>>1];a=c<<16>>16;if((a| -0)<=0)break b;I[(J[b+12>>2]+(c<<1)|0)-2>>1]=L[b+2>>1]-1}a=L[b>>1]}I[b>>1]=a+1;a=0}return a|0}function Kc(a){var b=0,c=0,d=0,e=0;a:{if(K[a+4|0])break a;e=J[a>>2];c=J[e>>2];if(!c)break a;b=J[e+4>>2];d=c;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);d=b-24|0;if(H[b-13|0]<0)Kb(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[J[a>>2]>>2]}J[e+4>>2]=c;Kb(d)}}function EW(a){a=a|0;var b=0,c=0,d=0;b=Pb(32);J[b+28>>2]=100;J[b+4>>2]=b+8;J[b+8>>2]=0;J[b+12>>2]=0;J[195395]=0;c=_(1109,100)|0;d=J[195395]; -J[195395]=0;if((d|0)==1){a=Z()|0;Kb(b);ba(a|0);B()}J[b+24>>2]=c;Nb(c,0,100);J[b>>2]=-1;J[b+16>>2]=0;J[b+20>>2]=0;J[a>>2]=b;return a|0}function Dh(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-16|0;xb=c;J[c+12>>2]=a;a:{if((a|0)==(b|0))break a;while(1){b=b-1|0;J[c+8>>2]=b;if(a>>>0>=b>>>0)break a;a=J[c+12>>2];b=K[a|0];d=a;a=J[c+8>>2];H[d|0]=K[a|0];H[a|0]=b;a=J[c+12>>2]+1|0;J[c+12>>2]=a;b=J[c+8>>2];continue}}xb=c+16|0}function rha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=J[a+444>>2];if(!J[e+48>>2]){if(!(Ab[J[J[a+ -448>>2]+12>>2]](a,e+8|0)|0))break a;J[e+48>>2]=1}f=J[a+324>>2];Ab[J[J[a+452>>2]+4>>2]](a,e+8|0,e+52|0,f,b,c,d);if(M[e+52>>2]>>0)break a;J[e+48>>2]=0;J[e+52>>2]=0}}function _t(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+36>>2];c:{if(!c)break c;d=J[c+8>>2];if(!d)break c;c=J[a+32>>2];if(c)c=J[c+8>>2];else c=0;Ab[d|0](c)}J[a+20>>2]=b?b:633;b=J[a+32>>2];if(b)J[b+8>>2]=0;a=J[a+36>>2];if(!a)break a;J[a+8>>2]=0}}function It(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c= -J[a+16>>2];c:{if(!c)break c;d=J[c+8>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c+8>>2];else c=0;Ab[d|0](c)}J[a+28>>2]=b?b:651;b=J[a+12>>2];if(b)J[b+8>>2]=0;a=J[a+16>>2];if(!a)break a;J[a+8>>2]=0}}function Bn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b+4>>2];d=+(c|0);e=J[b>>2];f=+(e|0);b=J[a+156>>2];a:{if(b){if(ud(b,f,d))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}b=J[a+208>>2];if(!b)break a;Ab[J[J[b>>2]+36>>2]](b,f,d)}a=J[a+120>>2];J[a+680>>2]=e;J[a+684>>2]=c}function An(a,b){a=a|0;b=b|0;var c=0, -d=0,e=0,f=0;c=I[b+2>>1];d=+(c|0);e=I[b>>1];f=+(e|0);b=J[a+156>>2];a:{if(b){if(ud(b,f,d))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}b=J[a+208>>2];if(!b)break a;Ab[J[J[b>>2]+36>>2]](b,f,d)}a=J[a+120>>2];J[a+680>>2]=e;J[a+684>>2]=c}function $t(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+36>>2];c:{if(!c)break c;d=J[c+4>>2];if(!d)break c;c=J[a+32>>2];if(c)c=J[c+4>>2];else c=0;Ab[d|0](c)}J[a+16>>2]=b?b:632;b=J[a+32>>2];if(b)J[b+4>>2]=0;a=J[a+36>>2];if(!a)break a;J[a+4>>2]=0}}function yA(a){a= -a|0;J[a>>2]=415408;J[a+28>>2]=0;J[a+32>>2]=0;I[a+24>>1]=0;J[a+16>>2]=0;J[a+20>>2]=1072693248;J[a+8>>2]=74336;J[a+4>>2]=416284;J[a>>2]=416232;H[a+26|0]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;return a|0}function RU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=(e-d|0)+b|0;a:{while(1){if((d|0)!=(e|0)){a=-1;if((b|0)==(c|0))break a;f=H[b|0];g=H[d|0];if((f|0)<(g|0))break a;if((f|0)>(g|0))return 1;else{d=d+1|0;b=b+1|0;continue}}break}a=(c| -0)!=(h|0)}return a|0}function Jc(a){var b=0,c=0;b=J[a+12>>2];a:{if((b|0)==J[a+8>>2]){b=0;a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=161;return 0}c=a;a=b-8|0;J[c+12>>2]=a;b=J[a>>2];b:switch(J[a+4>>2]-1|0){case 1:return b<<16;case 0:break b;default:break a}b=((b>>31)+b|0)- -8192>>14}return b}function $X(a){a=a|0;I[a+26>>1]=0;I[a+28>>1]=0;I[a+30>>1]=0;I[a+32>>1]=0;J[a+4>>2]=428240;J[a>>2]=428184;I[a+34>>1]=0;I[a+36>>1]=0;I[a+38>>1]=0;I[a+40>>1]=0;I[a+42>>1]=0;I[a+44>>1]=0;I[a+46>>1]=0;I[a+48>>1]=0;I[a+ -50>>1]=0;I[a+52>>1]=0;I[a+54>>1]=0;I[a+56>>1]=0;return a|0}function jz(a){var b=0,c=0,d=0;b=J[a+40>>2];c=Ab[b|0](a,0,0,K[a|0]&128?J[a+20>>2]==J[a+28>>2]?1:2:1)|0;b=zb;a:{if((b|0)<0)break a;d=J[a+8>>2];if(d)a=a+4|0;else{d=J[a+28>>2];if(!d)break a;a=a+20|0}a=J[a>>2]-d|0;c=a+c|0;b=(a>>31)+b|0;b=a>>>0>c>>>0?b+1|0:b}zb=b;return c}function Mh(a){var b=0,c=0,d=0;A(+a);b=v(1)|0;v(0)|0;d=b>>>20&2047;if(d>>>0<=1074){if(d>>>0<=1021)return a*0;a=(b|0)>0|(b|0)>=0?a:-a;c=a+4503599627370496+-4503599627370496-a; -a:{if(c>.5){a=a+c+-1;break a}a=a+c;if(!(c<=-.5))break a;a=a+1}a=(b|0)>0|(b|0)>=0?a:-a}return a}function b$(a){a=a|0;var b=0;J[a+4>>2]=416284;J[a>>2]=416232;b=J[a+28>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}b=J[a+48>>2];if(b){Kb(b);J[a+48>>2]=0}b=J[a+56>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+56>>2]=0}b=J[a+60>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+60>>2]=0}Kb(a)}function Yz(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=J[a+248>>2];if(e){Ab[J[J[e>>2]+4>>2]](e);J[a+248>>2]=0}a:{if((b|0)==4){b=Pb(112); -J[195395]=0;c=ha(3397,b|0,a|0,c|0,d|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[a+248>>2]=c}return}a=Z()|0;Kb(b);ba(a|0);B()}function NA(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d;var e=0,f=0;e=J[a+208>>2];if(e){Ab[J[J[e>>2]+4>>2]](e);J[a+208>>2]=0}a:{if((b|0)==4){b=Pb(128);J[195395]=0;e=rb(2047,b|0,a|0,+c,+d)|0;f=J[195395];J[195395]=0;if((f|0)==1)break a;J[a+208>>2]=e}return}a=Z()|0;Kb(b);ba(a|0);B()}function nK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+420>>2];if((d|0)>0){g=J[a+424>>2];h=K[b| -0];while(1){a:{e=c<<2;f=J[e+g>>2];if(K[f|0]!=(h|0))break a;if(fc(b,f))break a;return Wd(J[J[a+428>>2]+e>>2],0)|0}c=c+1|0;if((d|0)!=(c|0))continue;break}}return 0}function Mba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((c|0)>0){a=J[a+12>>2];while(1){e=L[a>>1];f=e&32767;if(f){d=Oh((+(f>>>0)+.5)*.0027076061740622863+-44.3614195558365);d=e<<16>>16<0?-d:d}else d=0;a=a+2|0;N[b>>2]=d;b=b+4|0;e=c>>>0>1;c=c-1|0;if(e)continue;break}}}function Hq(a,b){a=a|0;b=b|0;var c=0,d=0;if((a|0)<=536870911){c=Lpa(a<<2, -a>>31<<2|a>>>30,3,0);c=b&1?c:c+((a|0)%3|0)|0;d=(c|0)/76|0;a=c-P(d,76)|0;a:{if(!a)break a;a=(a<<24>>24)%4|0;if(!a)break a;c=((0-a<<24>>24)+c|0)+4|0}a=(b&2?0:(d<<1)+2|0)+c|0}else a=-1;return a|0}function Dw(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=J[a+8>>2]&2147483647;a:{if(d>>>0>c>>>0){d=J[a>>2];J[a+4>>2]=c;Hf(d,b,c);J[e+12>>2]=0;J[d+(c<<2)>>2]=J[e+12>>2];break a}f=d-1|0;g=(c-d|0)+1|0;d=J[a+4>>2];Yk(a,f,g,d,0,d,c,b)}xb=e+16|0;return a|0}function zJ(a,b){a=a|0;b=b|0;var c=0,d=0; -c=J[a>>2];d=J[b>>2];if((c|0)!=(d|0))return((c|0)<(d|0)?-1:1)|0;a:{if(K[a+8|0])break a;c=J[b+4>>2];d=J[a+4>>2];if((c^d)>>>0<2)break a;return((c|0)>(d|0)?-1:1)|0}a=J[a+12>>2];b=J[b+12>>2];return(a>>>0>>0?-1:a>>>0>b>>>0)|0}function xO(a,b){a=a|0;b=b|0;var c=0;if(M[b+160>>2]>>0)Bc(b,8);c=K[a+3|0]|K[a+2|0]<<8;if(!(c>>>0>=262&M[b+160>>2]>=a+c>>>0))Bc(b,8);if(J[b+164>>2]>0){a=a+6|0;c=0;while(1){if(M[b+172>>2]<=K[a|0])Bc(b,16);a=a+1|0;c=c+1|0;if((c|0)!=256)continue;break}}return 0}function lg(a){var b= -0;a:{if(!(!a|(a|0)==169776)){if(J[a+4>>2])while(1){Kb(J[J[a+8>>2]+(b<<2)>>2]);b=b+1|0;if(b>>>0>2])continue;break}Kb(J[a+8>>2]);b=J[a>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;Kb(a)}return}ga(0)|0;_b();B()}function il(a,b,c){var d=0,e=0,f=0;d=a*a;f=d*(d*d)*(d*1.58969099521155E-10+-2.5050760253406863E-8)+(d*(d*2.7557313707070068E-6+-1.984126982985795E-4)+.00833333333332249);e=d*a;if(!c)return e*(d*f+-.16666666666666632)+a;return a-(d*(b*.5-f*e)-b+e*.16666666666666632)} -function Xg(a,b){var c=0;c=J[a+8>>2];a:{if(J[a+12>>2]-c>>3>>>0<=b>>>0){b=0;a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=130;return 0}a=(b<<3)+c|0;b=J[a>>2];b:switch(J[a+4>>2]-1|0){case 1:return b<<16;case 0:break b;default:break a}b=((b>>31)+b|0)- -8192>>14}return b}function o6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=24;J[c+8>>2]=43;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+ -4>>2],b+12|0,4);xb=c+16|0}function m7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=24;J[c+8>>2]=62;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=c+16|0}function j6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=24;J[c+8>>2]=63;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4); -Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=c+16|0}function i6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=24;J[c+8>>2]=64;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=c+16|0}function bd(a,b){var c=0,d=0,e=0,f=0;a:{d=ac(b);c=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(d>>>0<=c>>>0){if(K[a+11|0]>>>7|0)c=J[a>>2];else c=a;qc(c,b,d);_w(a,c,d);break a}e= -a;f=d-c|0;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;Mw(e,c,f,a,0,a,d,b)}}function _6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=24;J[c+8>>2]=29;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=c+16|0}function Uma(a){a=a|0;var b=0,c=0,d=0;c=J[a+16>>2];b=161;a:{if(M[a+20>>2]>>0)break a;d=J[a+32>>2];c=Pf(a,J[c>>2]);b=3;if(c-17>>>0<4294967281)break a; -I[d+176>>1]=c;b=d;d=(J[a+20>>2]-J[a+16>>2]>>>2|0)-4|0;I[b+178>>1]=d;I[a+38>>1]=d;I[a+36>>1]=c;b=0}return b|0}function T6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=24;J[c+8>>2]=30;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=c+16|0}function L6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=24;J[c+8>>2]=42;J[a+8>>2]=J[a+8>>2]+24;J[a+12>>2]=J[a+12>>2]+1; -Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=c+16|0}function bu(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+36>>2];c:{if(!c)break c;d=J[c>>2];if(!d)break c;c=J[a+32>>2];if(c)c=J[c>>2];else c=0;Ab[d|0](c)}J[a+12>>2]=b?b:631;b=J[a+32>>2];if(b)J[b>>2]=0;a=J[a+36>>2];if(!a)break a;J[a>>2]=0}}function XF(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=f|0;var g=Q(0),h=Q(0);g=N[b>>2];h=N[b+8>>2];if(g> -h){N[b+12>>2]=e;N[b>>2]=d;N[b+8>>2]=d;N[b+4>>2]=e;return}N[b>>2]=d>=g?g:d;N[b+8>>2]=d<=h?h:d;d=N[b+4>>2];N[b+4>>2]=d<=e?d:e;d=N[b+12>>2];N[b+12>>2]=d>=e?d:e}function RW(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+88>>2];if(b)J[b>>2]=J[a+300>>2];if(c)J[c>>2]=J[a+304>>2];a:{if(!f){c=65536;a=65536;break a}c=dc(L[f+12>>1]<<6,J[a+304>>2]);a=dc(L[f+14>>1]<<6,J[a+304>>2])}if(d)J[d>>2]=c;if(e)J[e>>2]=a;return 0}function Kt(a,b){var c=0,d=0;a:{if(!J[a+4>>2])break a;b:if(b)break b;c=J[a+16>>2];c:{if(!c)break c; -d=J[c>>2];if(!d)break c;c=J[a+12>>2];if(c)c=J[c>>2];else c=0;Ab[d|0](c)}J[a+20>>2]=b?b:649;b=J[a+12>>2];if(b)J[b>>2]=0;a=J[a+16>>2];if(!a)break a;J[a>>2]=0}}function F7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=24;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,1);Lb(J[a+4>>2],b+1|0,1);Lb(J[a+4>>2],b+2|0,1);Lb(J[a+4>>2],b+3|0,1);xb=c+16|0}function $6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=25; -J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,1);Lb(J[a+4>>2],b+1|0,1);Lb(J[a+4>>2],b+2|0,1);Lb(J[a+4>>2],b+3|0,1);xb=c+16|0}function xY(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-48|0;xb=c;d=Ab[J[J[a>>2]+16>>2]](a)|0;e=+J[d>>2];O[c+40>>3]=-+J[d+4>>2];O[c+32>>3]=-e;O[c+24>>3]=1;O[c+16>>3]=0;O[c+8>>3]=0;O[c>>3]=1;d=a+200|0;Rd(d,J[a+172>>2]+((b|0)==1?256:208)|0);gf(d,c,3);xb=c+48|0;return d|0}function X0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-48| -0;xb=c;d=Ab[J[J[a>>2]+36>>2]](a)|0;e=+J[d>>2];O[c+40>>3]=-+J[d+4>>2];O[c+32>>3]=-e;O[c+24>>3]=1;O[c+16>>3]=0;O[c+8>>3]=0;O[c>>3]=1;d=a+160|0;Rd(d,J[a+120>>2]+((b|0)==1?552:504)|0);gf(d,c,3);xb=c+48|0;return d|0}function Rb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a>>31;d=(c^a)-c|0;c=b>>31;c=(c^b)-c|0;a:{if(d+(c>>>8|0)>>>0<=8190){c=P(c,d)+32768>>>16|0;break a}e=d&65535;c=P(e,c>>>16|0)+P(c,d>>>16|0)+(P(c&65535,e)+32768>>>16)|0}a=a>>31|1;return((((b|0)<0?0-a|0:a)|0)<0?0-c|0:c)|0}function JP(a,b,c,d){a=a|0; -b=b|0;c=c|0;d=d|0;var e=0,f=0;if(cf(a,J[b+8>>2],0)){Dp(b,c,d);return}e=J[a+12>>2];f=a+16|0;tw(f,b,c,d);a=a+24|0;e=(e<<3)+f|0;a:{if(a>>>0>=e>>>0)break a;while(1){tw(a,b,c,d);if(K[b+54|0])break a;a=a+8|0;if(e>>>0>a>>>0)continue;break}}}function Pk(a){var b=0,c=0,d=0;a:{if(!a)break a;b=H[a|0];d=b&255;if(!d|!(K[(d>>>3|0)+24096|0]>>>(b&7)&1))break a;while(1){if(c>>>0>429496727)return-1;c=K[b+24128|0]+P(c,10)|0;b=H[a+1|0];a=a+1|0;if(K[((b&248)>>>3|0)+24096|0]>>>(b&7)&1)continue;break}}return c}function BO(a){a= -a|0;var b=0,c=0,d=0,e=0;b=J[a+16>>2];J[a+32>>2]=b;d=J[a+20>>2];J[a+36>>2]=d;c=J[a+8>>2];e=c+J[a>>2]|0;J[a+8>>2]=e>>1;b=b+c|0;J[a+24>>2]=b>>1;J[a+16>>2]=b+e>>2;b=J[a+12>>2];c=b+J[a+4>>2]|0;J[a+12>>2]=c>>1;b=b+d|0;J[a+28>>2]=b>>1;J[a+20>>2]=b+c>>2}function nL(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a>>2];c=J[d+552>>2];a:{d=be(J[J[d+96>>2]+4>>2],10580);if(!(!d|!c)){c=J[c>>2];if(c)break a}dj(J[a>>2],b);return 0}c=Ab[c|0](d)|0;dj(J[a>>2],b);if(c)Ab[J[c+4>>2]](J[J[a+40>>2]>>2],J[a+16>>2],J[a+20>>2],0,0);return 0} -function fL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;e=b>>>0>=4?4:b;if(b){h=e>>>0<=1?1:e;b=0;while(1){f=b<<2;g=J[f+c>>2];J[d+f>>2]=((g+(g>>31)|0)+32768&-65536)>>16;b=b+1|0;if((h|0)!=(b|0))continue;break}}a=_u(a,e,d);xb=d+16|0;return a|0}function Zq(a,b){var c=0,d=0,e=0,f=0;c=J[b+4>>2];d=+(c|0);e=J[b>>2];f=+(e|0);b=J[a+156>>2];a:{if(b){if(le(b,f,d))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}b=J[a+208>>2];if(!b)break a;Ab[J[J[b>>2]+32>>2]](b,f,d)}a=J[a+120>>2];J[a+680>>2]= -e;J[a+684>>2]=c}function Yq(a,b){var c=0,d=0,e=0,f=0;c=I[b+2>>1];d=+(c|0);e=I[b>>1];f=+(e|0);b=J[a+156>>2];a:{if(b){if(le(b,f,d))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}b=J[a+208>>2];if(!b)break a;Ab[J[J[b>>2]+32>>2]](b,f,d)}a=J[a+120>>2];J[a+680>>2]=e;J[a+684>>2]=c}function RL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[((c<<2)+a|0)+268>>2];e=J[a+480>>2];c=J[a+484>>2];a=J[a+488>>2];if((b|0)>=0){a=((a+d|0)-c|0)+b|0;a=c+(a-((a|0)%(e|0)|0)|0)|0;return((a|0)<0?c:a)|0}a=a+d-(b+c)|0;a=(a|0)%(e|0)- -(a+c)|0;return((a|0)>0?0-c|0:a)|0}function wh(a){var b=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;J[a>>2]=b-1;if((b|0)!=1)break a;J[a>>2]=-57005;b=J[a+8>>2];if(b){af(b+24|0,b);Kb(Ud(b));J[a+8>>2]=0}xk(J[a+12>>2]);Kb(J[a+80>>2]);Kb(J[a+88>>2]);b=J[a+164>>2];if(b)Ab[b|0](J[a+160>>2]);Kb(a)}}function aM(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=I[a+302>>1];if(e){f=c<<3;g=J[f+J[b+12>>2]>>2];e=hc(d,e,J[a+568>>2]);J[f+J[b+12>>2]>>2]=e+g}e=I[a+304>>1];if(e){c=c<<3;f=J[(c+J[b+12>>2]|0)+4>>2];a=hc(d, -e,J[a+568>>2]);J[(c+J[b+12>>2]|0)+4>>2]=a+f}}function Kj(a,b,c){var d=0,e=0,f=0,g=0;if(b)while(1){c=c-1|0;e=a;a=Mpa(a,b,10,0);d=zb;f=c,g=e-Kpa(a,d,10,0)|48,H[f|0]=g;e=b>>>0>9;b=d;if(e)continue;break}if(a)while(1){c=c-1|0;b=(a>>>0)/10|0;H[c|0]=a-P(b,10)|48;d=a>>>0>9;a=b;if(d)continue;break}return c}function Ij(a,b){var c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;a:{if(!b){b=0;break a}d=b;b=S(b);Ke(c,d,0,0,0,b+81|0);d=0+J[c+8>>2]|0;b=(J[c+12>>2]^65536)+(16414-b<<16)|0;f=e>>>0>d>>>0?b+1|0:b;e=J[c+4>>2];b=J[c>>2]}J[a>> -2]=b;J[a+4>>2]=e;J[a+8>>2]=d;J[a+12>>2]=f;xb=c+16|0}function FK(a,b){a=a|0;b=b|0;var c=0;a=J[a+712>>2];b=L[J[a+1188>>2]+(b<<1)>>1];a:{if((b|0)==65535)break a;if(b>>>0>=391){b=b-391|0;if(b>>>0>=M[a+1356>>2])break a;return J[J[a+1360>>2]+(b<<2)>>2]}a=J[a+3084>>2];if(!a)break a;c=Ab[J[a+20>>2]](b)|0}return c|0}function Ed(a,b){a=a|0;b=b|0;var c=0,d=0;if(!a)return 0;d=J[a+204>>2];J[a+204>>2]=d|1048576;a:{b:{if(!b)break b;c=J[a+672>>2];c:{if(c){c=Ab[c|0](a,b)|0;break c}c=Qb(b)}if(c)break b;c=0;if(!(K[a+ -206|0]&16))break a}J[a+204>>2]=d;return c|0}gc(a,251456);B()}function gm(a){var b=0,c=0;J[a>>2]=-57005;a:{b=J[a+8>>2];if(b){J[195395]=0;$(636,b+24|0,b|0);c=J[195395];J[195395]=0;if((c|0)==1)break a;Kb(Ud(b));J[a+8>>2]=0}b=J[a+32>>2];if(b){Kb(b);J[a+32>>2]=0}J[a+16>>2]=0;J[a+12>>2]=J[a+12>>2]&1;return}ga(0)|0;_b();B()}function xx(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=765320;b=J[a+8>>2];J[195395]=0;c=na(3650)|0;d=J[195395];J[195395]=0;a:{if((d|0)==1)break a;if((b|0)!=(c|0)){b=J[a+8>>2];J[195395]=0;aq(b); -b=J[195395];J[195395]=0;if((b|0)==1)break a}return a|0}ga(0)|0;_b();B()}function pl(a,b){var c=0;if(!a)return 40;J[a+16>>2]=b;J[a+8>>2]=0;J[a+12>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a>>2]=0;b=Ni(b,8921);if(!b)return 1;zg(b,0,2);c=Mj(b);J[a+4>>2]=c;if(!c){sf(b);return 81}zg(b,0,0);J[a+24>>2]=22;J[a+20>>2]=23;J[a+12>>2]=b;return 0}function Ew(a,b,c){var d=0,e=0;if(K[a+11|0]>>>7|0)e=J[a>>2];else e=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;d=xb-16|0;xb=d;J[d+12>>2]=b;b=-1;if(a>>>0>c>>>0){a=a- -c|0;if(a)a=ah((c<<2)+e|0,J[d+12>>2],a);else a=0;b=a?a-e>>2:-1}xb=d+16|0;return b}function Ik(a){var b=0;a:{if(!(!a|(a|0)==169776)){b=J[a+20>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a+20>>2]=0;b=J[a+24>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;Kb(a)}return}ga(0)|0;_b();B()}function rz(a){return(a*(a*(a*(a*(a*3.479331075960212E-5+7.915349942898145E-4)+-.04005553450067941)+.20121253213486293)+-.3255658186224009)+.16666666666666666)*a/(a* -(a*(a*(a*.07703815055590194+-.6882839716054533)+2.0209457602335057)+-2.403394911734414)+1)}function OU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{while(1){if((d|0)!=(e|0)){a=-1;if((b|0)==(c|0))break a;f=J[b>>2];g=J[d>>2];if((f|0)<(g|0))break a;if((f|0)>(g|0))return 1;else{d=d+4|0;b=b+4|0;continue}}break}a=(b|0)!=(c|0)}return a|0}function wd(a,b,c,d){var e=0,f=0,g=0;f=J[195397]+1|0;J[195397]=f;J[a>>2]=f;if(d)while(1){e=(g<<3)+c|0;if(!J[e>>2]){J[e>>2]=f;J[e+4>>2]=b;J[e+8>>2]=0;yb=d;return c}g= -g+1|0;if((g|0)!=(d|0))continue;break}e=a;a=d<<1;b=wd(e,b,ic(c,d<<4|8),a);yb=a;return b}function fX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;Bz(a,b,c,d);b=J[a+300>>2];c=J[a+304>>2];a:{if((b|0)==(c|0))break a;e=J[d>>2];if(e)f=d,g=hc(e,b,c),J[f>>2]=g;b=J[d+4>>2];if(!b)break a;f=d,g=hc(b,J[a+300>>2],J[a+304>>2]),J[f+4>>2]=g}return 0}function I1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=+(c|0);f=+(b|0);d=J[a+156>>2];a:{if(d){if(le(d,f,e))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}d=J[a+208>> -2];if(!d)break a;Ab[J[J[d>>2]+32>>2]](d,f,e)}a=J[a+120>>2];J[a+680>>2]=b;J[a+684>>2]=c}function G1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=+(c|0);f=+(b|0);d=J[a+156>>2];a:{if(d){if(ud(d,f,e))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}d=J[a+208>>2];if(!d)break a;Ab[J[J[d>>2]+36>>2]](d,f,e)}a=J[a+120>>2];J[a+680>>2]=b;J[a+684>>2]=c}function zq(a){var b=0,c=0;b=J[a+72>>2];J[a+72>>2]=b-1|b;if(J[a+20>>2]!=J[a+28>>2])Ab[J[a+36>>2]](a,0,0)|0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=J[a>>2];if(b& -4){J[a>>2]=b|32;return-1}c=J[a+44>>2]+J[a+48>>2]|0;J[a+8>>2]=c;J[a+4>>2]=c;return b<<27>>31}function oU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+20>>2];if(K[a+68|0]){a=J[e+8>>2];f=I[e+2>>1];g=J[e+4>>2]+(f<<3)|0;J[g>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[g+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+f|0]=d?1:2}I[e+2>>1]=L[e+2>>1]+1}function iX(a){a=a|0;var b=0,c=0,d=0,e=0;b=xb-16|0;xb=b;J[b+12>>2]=0;a:{b:{c=K[a+11|0];d=c<<24>>24<0;e=d?J[a>>2]:a;if(e){a=d?J[a+4>>2]:c;if(a)break b}a=dz(0); -break a}Rj(e,a,b+12|0,b+8|0,0);c=J[b+12>>2];a=dz(c);if(!c)break a;Kb(c)}xb=b+16|0;return!a|0}function Qp(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];J[195395]=0;c=na(3650)|0;d=J[195395];J[195395]=0;a:{b:{if((d|0)==1)break b;if((b|0)!=(c|0)){b=J[a+8>>2];J[195395]=0;aq(b);b=J[195395];J[195395]=0;if((b|0)==1)break b}break a}ga(0)|0;_b();B()}return a|0}function rx(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=764216;c=a+8|0;while(1){b=J[c>>2];if(J[c+4>>2]-b>>2>>>0>d>>>0){b=J[b+(d<<2)>>2];if(b){e=J[b+4>>2]-1|0;J[b+4>> -2]=e;if((e|0)==-1)Ab[J[J[b>>2]+8>>2]](b)}d=d+1|0;continue}break}Yb(a+152|0);wx(c);return a|0}function ZE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a>>2]=234140;f=J[b+68>>2];Nb(a+4|0,0,940);H[a+388|0]=255;J[a+344>>2]=1119092736;J[a+68>>2]=f;H[a+390|0]=1;J[a+336>>2]=-1;H[a+348|0]=1;ig(a,96);ji(a,96);H[a+462|0]=1;YE(a,b,c,d,e);return a|0}function iN(a,b,c){a=a|0;b=b|0;c=c|0;a:{b:{if(c){c=Ab[J[a+516>>2]](a,1986553185,b,0)|0;if(c)break a;a=a+296|0;break b}c=Ab[J[a+516>>2]](a,1751672161,b,0)|0; -if(c)break a;a=a+216|0}c=Nc(b,95280,a);if(c)break a;J[a+36>>2]=0;J[a+40>>2]=0;c=0}return c|0}function kt(a){if(J[a+24>>2]){J[a+28>>2]=0;Kb(J[a+32>>2])}J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;if(J[a+12>>2]){J[a+16>>2]=0;Kb(J[a+20>>2])}J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;if(J[a>>2]){J[a+4>>2]=0;Kb(J[a+8>>2])}J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0}function du(){var a=0,b=0,c=0,d=0,e=0;b=yg(105308);a=2;a:{if(!b)break a;a=2;if(!K[b|0])break a;while(1){c=te(b,58);if(!c)c=ac(b)+b|0;e=a|4;d=a;a=c-b|0;a=Zb(b, -105525,a)?d:(a|0)==24?e:d;b=(K[c|0]!=0)+c|0;if(K[b|0])continue;break}a=a&255}J[194108]=a}function qI(a){var b=0;a:{if(!(!a|(a|0)==169776)){b=J[a>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a>>2]=0;b=J[a+4>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;Kb(a)}return}ga(0)|0;_b();B()}function oy(a,b,c){var d=0,e=0;e=xb-16|0;xb=e;d=xb-32|0;xb=d;eq(d+24|0,a,b);dq(d+16|0,J[d+24>>2],J[d+28>>2],c);J[d+12>>2]=(J[d+16>>2]-a|0)+a;J[d+8>>2]=(J[d+20>>2]-c| -0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];xb=d+32|0;xb=e+16|0;return J[e+12>>2]}function oea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=Nb(a,0,256);d=J[b>>2]+c|0;e=K[d+1|0];d=K[d|0];f=e+d|0;b=J[b+4>>2]+c|0;c=K[b+1|0];b=K[b|0];g=c+b|0;J[a+32>>2]=f-g<<4;d=d-e|0;b=b-c|0;J[a+36>>2]=d-b<<4;J[a+4>>2]=b+d<<4;J[a>>2]=(f+g<<4)+-8192}function Zja(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+ -27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function Vf(a,b,c){var d=0,e=0,f=0,g=0;J[a+112>>2]=b;J[a+116>>2]=c;e=J[a+4>>2];d=J[a+44>>2]-e|0;J[a+120>>2]=d;J[a+124>>2]=d>>31;d=J[a+8>>2];a:{if(!(b|c))break a;f=d-e|0;g=f>>31;if((c|0)>=(g|0)&b>>>0>=f>>>0|(c|0)>(g|0))break a;d=b+e|0}J[a+104>>2]=d}function Dla(a,b,c,d,e,f,g){a=a|0;b=b|0;c=Q(c);d=Q(d);e=Q(e);f=Q(f);g=g|0;a=xb-32|0;xb=a;N[a+24>>2]=e;N[a+28>>2]=f;g=J[a+28>>2];J[a+8>>2]=J[a+24>>2];J[a+12>>2]=g;N[a+20>>2]= -d;N[a+16>>2]=c;g=J[a+20>>2];J[a>>2]=J[a+16>>2];J[a+4>>2]=g;Ps(b,a);xb=a+32|0}function mF(a){a=a|0;var b=0,c=0,d=0;c=J[a+8>>2];d=vc(1,20);J[d+8>>2]=c;J[d+12>>2]=-1414746709;if(c>>>0<=4294963200){b=vc(1,c+4096|0);J[d+4>>2]=b;b=b?d:0}sk(b,J[a>>2]);sk(b+16|0,J[a+16>>2]);c=J[a+8>>2];if(c)Mb(J[b+4>>2],J[a+4>>2],c+1|0);return b|0}function NP(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b>>2]+1|0;d=J[a+16>>2];c=c>>>0>d>>>0?c:d;d=d+J[a+20>>2]|0;a:{if(c>>>0>>0){e=J[a+24>>2];while(1){a=L[(c<<1)+e>>1];if(a)break a; -c=c+1|0;if((d|0)!=(c|0))continue;break}}a=0;c=0}J[b>>2]=c;return a|0}function LY(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a>>2];b=J[c+408>>2];J[a+16>>2]=b;d=J[c+416>>2];J[a+20>>2]=d;a=1;c=0;a:{if(b>>>0<=1)break a;while(1){e=(a<<4)+d|0;if(M[e-16>>2]>2]){a=a+1|0;if((b|0)!=(a|0))continue;break a}break}c=8}return c|0}function JK(a,b){a=a|0;b=b|0;var c=0;dj(J[a>>2],b);c=J[a>>2];b=J[c+320>>2];c=be(J[J[c+96>>2]+4>>2],10070);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;b=Ab[b|0](c)|0;if(!b)break a;Ab[J[b+ -4>>2]](J[J[a+40>>2]>>2],J[a+16>>2],J[a+20>>2],0,0)}return 0}function ej(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+4>>2];c=J[a+44>>2];a=!b|!c;a:{if(a)break a;e=a?0:b+40|0;a=0;while(1){d=0;b=(a<<2)+e|0;if(K[b|0]!=(a|0)|K[b+1|0]!=(a|0)|K[b+2|0]!=(a|0))break a;d=1;a=a+1|0;if((c|0)!=(a|0))continue;break}}return d|0}function eE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-768|0;xb=d;e=236;a:{b:switch(a-1|0){case 0:e=768;break;case 1:break b;default:break a}if(b){J[d+668>>2]=c;f=Ab[b|0](d,e)|0;if(!f)break a;Nb(f, -0,e);break a}f=vc(1,e)}xb=d+768|0;return f|0}function Cw(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;a:{if(c>>>0<=1){H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;Hf(a,b,c);J[d+12>>2]=0;J[(c<<2)+a>>2]=J[d+12>>2];break a}e=K[a+11|0]&127;Yk(a,1,c-1|0,e,0,e,c,b)}xb=d+16|0;return a|0}function rg(a,b){var c=0,d=0;c=xb-16|0;xb=c;if(K[a+11|0]>>>7|0)Cm(J[a>>2],J[a+8>>2]&2147483647);J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;H[b+11|0]=K[b+11|0]&128;H[b+11|0]=K[b+11|0]&127;J[c+ -12>>2]=0;J[b>>2]=J[c+12>>2];xb=c+16|0}function nz(a,b){var c=0,d=0,e=0;A(+a);d=v(1)|0;e=v(0)|0;c=d>>>20&2047;if((c|0)!=2047){if(!c){if(a==0)c=0;else{a=nz(a*1.8446744073709552E19,b);c=J[b>>2]+-64|0}J[b>>2]=c;return a}J[b>>2]=c-1022;x(0,e|0);x(1,d&-2146435073|1071644672);a=+z()}return a}function ik(a,b,c){var d=0,e=0;d=xb-16|0;xb=d;b=(b>>>0)/M[a+100>>2]|0;a:{if(L[a+138>>1]!=2)break a;e=L[a+98>>1];if(e>>>0<=c>>>0){b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=e;J[d>>2]=c;Ob(a,b,262907,d);b=0;break a}b=b+P(J[a+176>> -2],c)|0}xb=d+16|0;return b}function dC(a,b){var c=0,d=0;c=Pb(40);J[c>>2]=392240;d=J[b+4>>2];J[c+8>>2]=J[b>>2];J[c+12>>2]=d;d=J[b+12>>2];J[c+16>>2]=J[b+8>>2];J[c+20>>2]=d;d=J[b+20>>2];J[c+24>>2]=J[b+16>>2];J[c+28>>2]=d;d=J[b+28>>2];J[c+32>>2]=J[b+24>>2];J[c+36>>2]=d;fh(a,c)}function cpa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;e=xb-16|0;xb=e;b=J[b+32>>2];a=J[a+88>>2];J[195395]=0;a=ka(691,b|0,c|0,d|0,!a|0,e+8|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1){b=J[e+8>>2];td();xb=e+16|0;return(a?0:b)|0}a=Z()| -0;td();ba(a|0);B()}function bE(a,b,c){var d=0,e=0;a:{if(b-1>>>0>7)break a;d=((b<<5)+a|0)-32|0;if(!d)break a;b:{if(!c)break b;b=0;a=K[c|0];if(!a)break b;while(1){H[b+d|0]=a;e=b+1|0;if(b>>>0>29)break b;a=K[c+1|0];c=c+1|0;b=e;if(a&255)continue;break}}H[d+e|0]=0}}function AI(a,b,c,d){var e=0;a:{if(!J[a+4>>2]){if(!d)break a;Ab[d|0](c);return}J[a+12>>2]=J[a+12>>2]+1;e=J[a+124>>2];if(e)Ab[e|0](J[a+120>>2]);b=b?b:775196;if(J[b>>2])J[b>>2]=J[b>>2]+1;Lo(J[a+116>>2]);J[a+124>>2]=d;J[a+120>>2]=c;J[a+116>>2]= -b}}function yW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-16|0;xb=d;J[d+12>>2]=0;a:{if(J[c+80>>2])break a;b=b-a|0;f=tc(J[c>>2],b+1|0,d+12|0);J[c+80>>2]=f;e=J[d+12>>2];if(e)break a;Mb(f,a,b);H[b+J[c+80>>2]|0]=0;e=J[d+12>>2]}xb=d+16|0;return e|0}function Td(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;d=J[b+4>>2];a:{if(!d)break a;b=J[b+44>>2];if(!b|b>>>0<=c>>>0)break a;b=(c<<2)+d|0;H[a|0]=K[b+40|0];H[a+1|0]=K[b+41|0];H[a+2|0]=K[b+42|0];H[a+3|0]=K[b+43|0]}}function Ex(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+8>>2]=b;J[d+12>>2]=a;J[d+4>>2]=c;while(1){a=J[d+12>>2];b=(a|0)!=J[d+8>>2];if(!(!b|J[a>>2]!=J[J[d+4>>2]>>2])){J[d+12>>2]=a+4;J[d+4>>2]=J[d+4>>2]+4;continue}break}xb=d+16|0;return!b|0}function DF(a,b){var c=0,d=0;J[a>>2]=0;J[a+32>>2]=J[b>>2];d=J[b+24>>2];J[a+4>>2]=J[b+4>>2];c=J[b+8>>2];J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=c;c=J[b+20>>2];J[a+24>>2]=d;J[a+20>>2]=c;J[a+28>>2]=J[b+28>>2];J[a+40>>2]=J[b+16>>2];J[a+36>>2]=J[b+12>>2]}function hz(a,b){var c= -0,d=0,e=0,f=0;c=b>>>20&2047;e=0;a:{if(c>>>0<1023)break a;e=2;if(c>>>0>1075)break a;c=1075-c|0;d=c&31;if((c&63)>>>0>=32){c=1<>>32-d;d=f}f=d-1|0;e=0;if(a&f|b&c-!d)break a;e=a&d|b&c?1:2}return e}function _la(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[J[a+128>>2]+52>>2];a:{if(e){a=J[b>>2];J[d+12>>2]=c;J[d+8>>2]=a;Ab[J[J[e>>2]+4>>2]](J[e+4>>2],d+8|0);break a}a=J[a+712>>2];if(J[a+1236>>2])break a;rd(J[a+1204>>2],b)}xb=d+16|0}function We(a){var b=0,c=0;c=J[a+12>>2]; -a:{if((c|0)==J[a+8>>2]){a=J[a+4>>2];b=0;if(!a|J[a>>2])break a;J[a>>2]=161;return 0}if(J[c-4>>2]!=2){a=J[a+4>>2];b=0;if(!a|J[a>>2])break a;J[a>>2]=160;return 0}b=a;a=c-8|0;J[b+12>>2]=a;b=J[a>>2]}return b}function TT(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;J[e+12>>2]=b;J[e+8>>2]=d;b=Tf(e+4|0,e+12|0);J[195395]=0;a=aa(3675,a|0,c|0,J[e+8>>2])|0;c=J[195395];J[195395]=0;if((c|0)!=1){re(b);xb=e+16|0;return a|0}a=Z()|0;re(b);ba(a|0);B()}function Je(a,b){var c=0,d=0;c=xb-16|0;xb=c;if(K[a+11| -0]>>>7|0)Om(J[a>>2],J[a+8>>2]&2147483647);J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;H[b+11|0]=K[b+11|0]&128;H[b+11|0]=K[b+11|0]&127;H[c+15|0]=0;H[b|0]=K[c+15|0];xb=c+16|0}function hma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=J[J[a+128>>2]+52>>2];a:{if(f){a=Ab[J[J[f>>2]>>2]](J[f+4>>2],b,e+8|0)|0;J[c>>2]=J[e+8>>2];J[d>>2]=J[e+12>>2];break a}a=uo(J[a+712>>2]+1204|0,b,c,d)}xb=e+16|0;return a|0}function Ww(){var a=0,b=0,c=0;b=xb-16|0;xb=b;J[b+12>>2]=1073741823;J[195395]= -0;J[b+8>>2]=2147483647;a=xb-16|0;xb=a;xb=a+16|0;a=b+8|0;c=b+12|0;a=M[a>>2]>2]?a:c;c=J[195395];J[195395]=0;if((c|0)!=1){xb=b+16|0;return J[a>>2]}ga(0)|0;_b();B()}function wX(a){a=a|0;var b=0,c=0;c=J[J[a+188>>2]>>2];b=J[a+168>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+172>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;b=J[a+184>>2];if(b)Ab[J[c+8>>2]](c,b);H[a+192|0]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0}function jl(a,b){var c=0,d=0,e=0,f=0;c=a*a;d=c*.5;e=1-d;f=1-e-d;d=c*c;return e+(f+(c*(c*(c*(c*2.480158728947673E-5+ --.001388888888887411)+.0416666666666666)+d*d*(c*(c*-1.1359647557788195E-11+2.087572321298175E-9)+-2.7557314351390663E-7))-a*b))}function TI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;H[d+4|0]=0;H[d+5|0]=0;H[d+6|0]=0;H[d+7|0]=0;H[d+8|0]=0;H[d+9|0]=0;H[d+10|0]=0;H[d+11|0]=0;H[d+12|0]=0;H[d+13|0]=0;H[d+14|0]=0;H[d+15|0]=0;return 0}function Jx(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+8>>2]=b;J[d+12>>2]=a;J[d+4>>2]=c;while(1){a=J[d+12>>2];b=(a|0)!=J[d+ -8>>2];if(!(!b|K[a|0]!=K[J[d+4>>2]])){J[d+12>>2]=a+1;J[d+4>>2]=J[d+4>>2]+1;continue}break}xb=d+16|0;return!b|0}function Cka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=-1;a:{b:{c:{d:switch(d|0){case 1:a=b+12|0;break c;case 0:break b;case 2:break d;default:break a}a=b+8|0}d=J[a>>2]}a=c+d|0;if(a>>>0>M[b+4>>2]){J[b+16>>2]=1;return-1}J[b+12>>2]=a;a=0}return a|0}function h8(a){a=a|0;var b=0,c=0,d=0;b=J[a+44>>2];c=J[a+24>>2];if(b>>>0>>0){J[a+44>>2]=c;b=c}d=-1;a:{if(!(K[a+48|0]&8))break a;c=J[a+16>>2];if(c>>>0< -b>>>0)J[a+16>>2]=b;else b=c;a=J[a+12>>2];if(a>>>0>=b>>>0)break a;d=J[a>>2]}return d|0}function bv(a,b){a=a|0;b=b|0;var c=0;c=J[a+136>>2];J[b>>2]=J[a+132>>2];J[b+4>>2]=c;c=J[a+160>>2];J[b+24>>2]=J[a+156>>2];J[b+28>>2]=c;c=J[a+152>>2];J[b+16>>2]=J[a+148>>2];J[b+20>>2]=c;c=J[a+144>>2];J[b+8>>2]=J[a+140>>2];J[b+12>>2]=c;return 0}function aj(a,b,c,d){var e=0;if(!(!a|b>>>0<=c>>>0)){a:{if(!d)break a;e=K[d|0];if(!e)break a;b=b-1|0;if(b>>>0<=c>>>0)break a;while(1){H[a+c|0]=e;c=c+1|0;e=K[d+1|0];if(!e)break a; -d=d+1|0;if(b>>>0>c>>>0)continue;break}}H[a+c|0]=0}return c}function HK(a,b){a=a|0;b=b|0;var c=0;c=J[a+192>>2];J[b+24>>2]=J[a+188>>2];J[b+28>>2]=c;c=J[a+184>>2];J[b+16>>2]=J[a+180>>2];J[b+20>>2]=c;c=J[a+176>>2];J[b+8>>2]=J[a+172>>2];J[b+12>>2]=c;c=J[a+168>>2];J[b>>2]=J[a+164>>2];J[b+4>>2]=c;return 0}function iba(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];bg(a,1,12);bg(a,1,12);if(J[b+68>>2]!=8){if(J[a+608>>2]>=J[a+600>>2])Xc(a);d=J[b+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=d;J[a+608>>2]=J[a+608>>2]+ -1;J[b+64>>2]=0;J[b+68>>2]=8}return 1}function Sg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=ac(b);if(c>>>0<2147483632){a:{if(c>>>0<=10){H[a+11|0]=c;d=a;break a}e=(c|15)+1|0;d=Pb(e);J[a+8>>2]=e|-2147483648;J[a>>2]=d;J[a+4>>2]=c}f=qc(d,b,c)+c|0,g=0,H[f|0]=g;return a|0}dd(a);B()}function uca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[b>>2];if((a|0)<=0){J[b>>2]=256;a=256}d=J[c>>2];if((d|0)<=0){d=256;J[c>>2]=256;a=J[b>>2]}if(a&15){J[b>>2]=a>>>0<4294967280?a+15&-16:0;d=J[c>>2]}if(d&15)J[c>>2]=d>>>0<4294967280? -d+15&-16:0}function kO(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b>>2];a:{if(c>>>0>65534)break a;if(H[a+20|0]&1)return Tv(J[a>>2],J[a+16>>2],b,1)|0;if((c|0)==J[a+24>>2]){Rv(a);c=J[a+28>>2];if(!c)break a;J[b>>2]=J[a+24>>2];return c|0}d=Sv(a,b,1)}return d|0}function QL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[((c<<2)+a|0)+268>>2];c=J[a+484>>2];e=J[a+488>>2];if((b|0)>=0){a=c+(((b+d|0)+e|0)-c&0-J[a+480>>2])|0;return((a|0)<0?c:a)|0}a=0-(c+(d+e-(b+c)&0-J[a+480>>2])|0)|0;return((a|0)>0?0-c|0:a)|0}function fia(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=((c|0)<=1?1:c)-1|0;c=0;while(1){a:{if((c|0)==(e|0)){c=e;break a}d=Ab[J[J[a>>2]+48>>2]](a)|0;if((d|0)==-1)return 0;H[b+c|0]=d;c=c+1|0;if((d|0)!=10)continue}break}H[b+c|0]=0;return b|0}function wL(a){a=a|0;var b=0,c=0;if(J[J[a+40>>2]>>2]){c=J[a>>2];b=J[c+552>>2];c=be(J[J[c+96>>2]+4>>2],10580);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;b=Ab[b|0](c)|0;if(!b)break a;Ab[J[b+8>>2]](J[J[a+40>>2]>>2])}J[J[a+40>>2]>>2]=0}}function MK(a){a=a|0;var b=0,c=0;if(J[J[a+40>>2]>> -2]){c=J[a>>2];b=J[c+320>>2];c=be(J[J[c+96>>2]+4>>2],10070);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;b=Ab[b|0](c)|0;if(!b)break a;Ab[J[b+8>>2]](J[J[a+40>>2]>>2])}J[J[a+40>>2]>>2]=0}}function xN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=6;a:{if(!d|!e)break a;g=L[a+152>>1];if(c){f=142;if(b>>>0>=g>>>0)break a;a=J[a+156>>2]+(b<<4)|0;J[c>>2]=J[a>>2];J[d>>2]=J[a+8>>2];g=J[a+12>>2]}J[e>>2]=g;f=0}return f|0}function ig(a,b){a=a|0;b=b|0;var c=0;b=(b|0)<=0?96:b;J[a+364>>2]=b;c=V(+(b|0)*1E4/254+ -.5);a:{if(R(c)<2147483648){b=~~c;break a}b=-2147483648}J[a+36>>2]=b;a=J[a+4>>2];if(a){H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24}}function ZO(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(J[a+4>>2])break a;e=c;g=a+52|0;f=J[g>>2];c=J[a+16>>2];if((e|0)!=(f+c|0))break a;e=J[a>>2];c=wm(a+16|0,d,f,c,b,e);if(!c){c=wm(g,d,0,f,b,e);if(!c)break a}J[a+4>>2]=c}}function pC(a,b,c,d,e){if((b|1|c)<0){J[e>>2]=6;return d}a:{if(!c){if(!d)break a;Ab[J[a+8>>2]](a,d);break a}if(!b){a=Ab[J[a+ -4>>2]](a,c)|0;J[e>>2]=!a<<6;return a}a=Ab[J[a+12>>2]](a,b,c,d)|0;J[e>>2]=!a<<6;return a?a:d}J[e>>2]=0;return 0}function mia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;H[a+24|0]=0;a:{if(!J[a+4>>2])break a;b:{c:switch(c|0){case 1:b=J[a+16>>2]+b|0;break b;case 0:break b;case 2:break c;default:break a}b=J[a+8>>2]+b|0}J[a+16>>2]=(b|0)>0?b:0;d=1}return d|0}function ji(a,b){a=a|0;b=b|0;var c=0;b=(b|0)<=0?96:b;J[a+368>>2]=b;c=V(+(b|0)*1E4/254+.5);a:{if(R(c)<2147483648){b=~~c;break a}b=-2147483648}J[a+40>>2]=b;a=J[a+ -4>>2];if(a){H[a+28|0]=b;H[a+29|0]=b>>>8;H[a+30|0]=b>>>16;H[a+31|0]=b>>>24}}function T5(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=+h;i=+i;var j=0,k=0;j=J[a+4>>2];a=J[a+8>>2];if((j|0)!=(a|0))while(1){k=J[j>>2];Ab[J[J[k>>2]+20>>2]](k,b,c,d,e,f,g,h,i);j=j+4|0;if((a|0)!=(j|0))continue;break}}function kW(a){a=a|0;var b=0,c=0;if(J[a+12>>2]==-559038737){c=J[a+32>>2];b=J[a>>2];if(b)Ab[J[c+8>>2]](c,b);J[a>>2]=0;b=J[a+24>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+28>>2];if(b)Ab[J[c+8>> -2]](c,b);J[a+12>>2]=0;J[a+28>>2]=0}}function H8(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;var h=0,i=0;h=O[a+56>>3];i=O[a+48>>3];a=J[a+4>>2];Ab[J[J[a>>2]+400>>2]](a,b,c,d,e,f,g)|0;O[c>>3]=i/h*O[c>>3];O[d>>3]=h/i*O[d>>3];O[f>>3]=O[f>>3]/i;O[g>>3]=O[g>>3]/h}function AY(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+16>>2];if(c){f=J[a+20>>2];a=0;while(1){e=(c-a>>>1|0)+a|0;d=J[(e<<4)+f>>2];if((d|0)==(b|0))return e+1|0;d=b>>>0>d>>>0;a=d?e+1|0:a;c=d?c:e;if(a>>>0>>0)continue;break}}return 0} -function lf(a,b,c){c=J[c+4>>2]&176;if((c|0)==32)return b;a:{if((c|0)!=16)break a;b:{c:{c=K[a|0];switch(c-43|0){case 0:case 2:break c;default:break b}}return a+1|0}if((c|0)!=48|(b-a|0)<2|(K[a+1|0]|32)!=120)break a;a=a+2|0}return a}function fja(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[a>>2]=234140;Nb(a+4|0,0,940);H[a+388|0]=255;J[a+344>>2]=1119092736;J[a+68>>2]=e;H[a+390|0]=1;J[a+336>>2]=-1;H[a+348|0]=1;ig(a,96);ji(a,96);H[a+462|0]=1;Af(a,b,c,d,e);return a|0}function Rw(a){var b=0,c=0;b=J[a+4>>2]; -a:{while(1){c=J[a+8>>2];if((b|0)==(c|0))break a;J[a+8>>2]=c-4;J[195395]=0;c=J[195395];J[195395]=0;if((c|0)!=1)continue;break}ga(0)|0;_b();B()}b=J[a>>2];if(b)Uw(J[a+16>>2],b,J[a+12>>2]-b>>2)}function eP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[c>>2];d=((d>>31)+d|0)+32768&-65536;c=J[c+4>>2];c=((c>>31)+c|0)+32768&-65536;a:{if(J[a+4>>2])break a;b=Sk((P((b|0)!=0,36)+a|0)+16|0,d>>16,c>>16,J[a>>2],0);if(!b)break a;J[a+4>>2]=b}}function zfa(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]= -b;J[c+20>>2]=21;Ab[J[J[a>>2]>>2]](a)}Ab[J[J[a>>2]+16>>2]](a);Ab[J[J[a+24>>2]+8>>2]](a);nE(a);Ab[J[J[a+404>>2]+16>>2]](a);Ab[J[J[a+24>>2]+16>>2]](a)}function pN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=vp(a,9803,d);a:{if(e)break a;e=vp(a,9929,d+8|0);if(e)break a;e=6;if(J[d>>2]!=1|J[d+8>>2]!=1)break a;J[b>>2]=J[d+12>>2];J[c>>2]=J[d+4>>2];e=0}xb=d+16|0;return e|0}function ZL(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:switch(J[J[J[a>>2]+96>>2]+64>>2]-35|0){case 5:if(K[a+615|0])break a;break;case 0:break b; -default:break a}a=J[b+16>>2]+(c<<3)|0;J[a>>2]=J[a>>2]+d}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|8}function w3(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=J[a+4>>2];a=J[a+8>>2];if((i|0)!=(a|0))while(1){j=J[i>>2];Ab[J[J[j>>2]+524>>2]](j,b,c,d,e,f,g,h);i=i+4|0;if((a|0)!=(i|0))continue;break}}function ny(a,b){var c=0;if(b>>>0>8){b=b>>>0<=4?4:b;a=a>>>0<=1?1:a;a:{while(1){c=Ow(b,a);if(c)break a;c=J[195927];if(c){Ab[c|0]();continue}break}a=pg(4);J[a>>2]=774300;J[a>>2]=774260;xa(a| -0,774376,1072);B()}return c}return Pb(a)}function gX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(!a)return 0;g=1;if((b|0)<=0)return 0;f=Hq(b,e);J[d>>2]=f;f=Pb(f);J[c>>2]=f;a:{if(Gq(a,b,f,d,e))break a;g=0;a=J[c>>2];if(!a)break a;Kb(a);J[c>>2]=0}return g|0}function Vy(a){var b=0,c=0,d=0;if(H[J[a>>2]]-48>>>0>=10)return 0;while(1){d=J[a>>2];c=-1;if(b>>>0<=214748364){c=H[d|0]-48|0;b=P(b,10);c=(c|0)>(b^2147483647)?-1:c+b|0}J[a>>2]=d+1;b=c;if(H[d+1|0]-48>>>0<10)continue;break}return b}function RP(a){a= -a|0;var b=0,c=0;a:{b:{if(!a)break b;b=a-24|0;c=J[b>>2]-1|0;J[b>>2]=c;if(K[b+13|0]|c)break b;b=J[b+8>>2];if(b){J[195395]=0;_(b|0,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a}Wk(a)}return}ga(0)|0;_b();B()}function J8(a,b){a=a|0;b=b|0;var c=0;b=xb-16|0;xb=b;c=J[a+4>>2];J[b+12>>2]=4;Ab[J[J[c>>2]+312>>2]](c,b+12|0)|0;c=J[a+4>>2];J[b+8>>2]=32;Ab[J[J[c>>2]+312>>2]](c,b+8|0)|0;c=J[a+4>>2];Ab[J[J[c>>2]+344>>2]](c)|0;H[a+64|0]=0;xb=b+16|0}function yoa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=0;a:{if(!Ak(a, -1751216995,c))break a;d=0;if(!Ak(a,1751413603,c+4|0))break a;d=Ak(a,1751934832,c+8|0)}b=c;e=J[c>>2];c=J[a+52>>2];J[b>>2]=e+(J[a+32>>2]<0?0-c|0:c);return d|0}function wS(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=xb-16|0;xb=f;e=tc(b,16,f+12|0);g=J[f+12>>2];if(!g){J[e+12>>2]=2;J[e+8>>2]=d;J[e>>2]=c;J[e+4>>2]=c;J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=e;J[a>>2]=b}xb=f+16|0;return g|0}function _1(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=(b|0)!=0&(c|0)!=0;if(e){a=J[J[a>>2]-12>>2]+a|0;Ab[J[J[a>>2]+ -12>>2]](a);J[a+28>>2]=b;d=K[d|0];J[a+12>>2]=b;J[a+4>>2]=b;H[a+32|0]=d;b=b+c|0;J[a+16>>2]=b;J[a+8>>2]=b}return e|0}function Zma(a){a=a|0;var b=0,c=0,d=0,e=0;b=161;c=J[a+16>>2];a:{if(M[a+20>>2]>>0)break a;d=J[a+32>>2];b=3;e=Pf(a,J[c>>2]);if((e|0)<0)break a;J[d+120>>2]=e;a=Pf(a,J[c+4>>2]);if((a|0)<0)break a;J[d+116>>2]=a;b=0}return b|0}function mpa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=xb-16|0;xb=a;J[a+12>>2]=0;e=a+12|0;a:{if($D(c,b,0,e))break a;d=Qb(J[a+12>>2]);if(!d)break a;if($D(c,b,d,e)){Kb(d); -break a}f=pu(d,J[a+12>>2],2,d,627)}xb=a+16|0;return f|0}function k_(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=416600;b=J[a+4>>2];d=J[a+8>>2];if((b|0)!=(d|0)){while(1){c=J[b>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);b=b+4|0;if((d|0)!=(b|0))continue;break}b=J[a+4>>2]}J[a+8>>2]=b;if(b)Kb(b);return a|0}function _O(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(J[a+4>>2])break a;d=J[a+16>>2];e=a+52|0;f=J[e>>2];if((d+f|0)!=(b|0))break a;g=J[a>>2];b=wm(a+16|0,c,0,d,0,g);if(!b){b=wm(e,c,d,f,0,g);if(!b)break a}J[a+4>>2]= -b}}function Ph(a,b){var c=0,d=0,e=0;a:{c=J[a+280>>2];if((c|0)<=0)break a;d=J[a+284>>2];a=0;while(1){b:{e=fc(J[P(a,12)+d>>2],b);a=a+1|0;if((c|0)<=(a|0))break b;if(e)continue}break}if(e)break a;return(P(a,12)+d|0)-12|0}return 0}function PO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=J[a>>2];d=a&2147483647;b=J[b>>2];e=b&2147483647;a:{if((d|0)==(e|0)){c=1;if(a>>>0>b>>>0)break a;return(a>>>0>>0?-1:0)|0}c=1;if(d>>>0>e>>>0)break a;c=d>>>0>>0?-1:0}return c|0}function Nx(a,b,c,d,e,f){var g=0,h=0,i=0;g=xb-16| -0;xb=g;H[g+15|0]=0;H[g+14|0]=f;H[g+13|0]=e;H[g+12|0]=37;if(f){e=K[g+13|0];H[g+13|0]=K[g+14|0];H[g+14|0]=e}h=c,i=($a(b|0,J[c>>2]-b|0,g+12|0,d|0,J[a>>2])|0)+b|0,J[h>>2]=i;xb=g+16|0}function Dd(a,b,c){var d=0,e=0,f=0;d=J[a+8>>2];f=J[a+4>>2];if(d>>>0>>0){e=J[a+20>>2];a:{if(e){b=Ab[e|0](a,d,b,c)|0;break a}e=b;b=f-d|0;b=b>>>0>>0?b:c;Mb(e,J[a>>2]+d|0,b)}J[a+8>>2]=b+d;a=b>>>0>>0?85:0}else a=85;return a}function Bpa(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;a=J[a+20>>2];if(e)H[d|0]= -0;g=J[a+116>>2];b=J[g+80>>2];f=J[a+120>>2];g=J[g+12>>2];if(!g)return Ab[b|0](a,f,c,d,e,0)|0;return Ab[b|0](a,f,c,d,e,J[g+60>>2])|0}function $5(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=393404;b=J[a+4>>2];d=J[a+8>>2];if((b|0)!=(d|0)){while(1){c=J[b>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);b=b+4|0;if((d|0)!=(b|0))continue;break}b=J[a+4>>2]}J[a+8>>2]=b;if(b)Kb(b);return a|0}function zpa(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;a=J[a+20>>2];J[e>>2]=0;if((d|0)==-1)d=ac(c);b=J[a+116>>2];f=J[b+84>>2];g=J[a+ -120>>2];b=J[b+12>>2];if(b)b=J[b+64>>2];else b=0;return Ab[f|0](a,g,c,d,e,b)|0}function eD(a,b,c,d,e){var f=0,g=0;f=xb-16|0;xb=f;a:{b:{if(!c|!d)break b;g=Kpa(d,0,c,0);if(zb)break b;b=ok(b,g);if(b)break a}b=J[a>>2];a=J[a+628>>2];J[f+8>>2]=d;J[f+4>>2]=c;J[f>>2]=e;Ob(a,b,263621,f);b=0}xb=f+16|0;return b}function ZH(a){var b=0;a:{if(!(!a|(a|0)==169776)){Kb(J[a+28>>2]);b=J[a>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a>>2]=0;if(J[a+12>>2]){J[a+16>>2]=0;Kb(J[a+20>>2])}Kb(a)}return}ga(0)| -0;_b();B()}function Lpa(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>>0)+e|0)|0;a=d>>31;b=c^a;f=f>>31;a=Mpa(h,e,b-a|0,(a^d)-((a>>>0>b>>>0)+a|0)|0)^f;b=a-f|0;zb=(g^zb)-((a>>>0>>0)+g|0)|0;return b}function Az(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=K[b+11|0];d=e<<24>>24<0;c=d?J[b>>2]:b;b=d?J[b+4>>2]:e;if((b|0)==-1)b=id(c);Ab[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;Mb(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b}function vg(a,b){a=a|0;b=b|0;var c=0;a= -J[a>>2];b=vd(b);c=J[a+8>>2];if(b>>>0>2]-c>>2>>>0)c=J[(b<<2)+c>>2]!=0;else c=0;if(!c){a=pg(4);J[a>>2]=774300;J[a>>2]=774612;xa(a|0,774660,3559);B()}return J[J[a+8>>2]+(b<<2)>>2]}function nk(a){a=a|0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+16>>2]=1344;J[a+12>>2]=1345;J[a+8>>2]=1346;J[a+4>>2]=1347;J[a>>2]=1348;J[a+124>>2]=0;J[a+128>>2]=0;J[a+116>>2]=126;J[a+120>>2]=0;J[a+112>>2]=246544;J[a+20>>2]=0;return a|0}function iG(a){a=a|0;var b=0,c=0,d=0;b=J[a+32>>2];if(!(!b|!J[b>>2])){while(1){d=(c<<2)+b|0; -a:{if(!J[d+36>>2])break a;Kb(J[d- -64>>2]);if(!K[b+4|0])break a;Kb(J[d+36>>2])}c=c+1|0;if(c>>>0>2])continue;break}Kb(b)}Kb(a)}function U5(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=J[a+4>>2];a=J[a+8>>2];if((i|0)!=(a|0))while(1){j=J[i>>2];Ab[J[J[j>>2]+16>>2]](j,b,c,d,e,f,g,h);i=i+4|0;if((a|0)!=(i|0))continue;break}}function Sd(a,b,c,d){var e=0,f=0;f=xb-16|0;xb=f;a:{b:{if(!b|!c)break b;e=Kpa(c,0,b,0);if(zb)break b;e=ok(0,e);if(e)break a}e=J[a>>2];a=J[a+628>>2];J[f+ -8>>2]=c;J[f+4>>2]=b;J[f>>2]=d;Ob(a,e,263621,f);e=0}xb=f+16|0;return e}function Qma(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+16>>2];if(M[a+20>>2]>=b+12>>>0){c=J[a+32>>2];d=c,e=Pf(a,J[b>>2]),J[d+132>>2]=e;d=c,e=Pf(a,J[b+4>>2]),J[d+136>>2]=e;d=c,e=Pf(a,J[b+8>>2]),J[d+140>>2]=e;a=0}else a=161;return a|0}function taa(a){a=a|0;var b=0,c=0;c=ok(J[a+912>>2],J[a+916>>2]+1E3|0);if(!c){b=J[a>>2];J[b+20>>2]=56;J[b+24>>2]=100;Ab[J[J[a>>2]>>2]](a)}J[a+912>>2]=c;J[a+784>>2]=1E3;b=J[a+916>>2];J[a+916>>2]=b+1E3;J[a+780>> -2]=b+c;return 1}function YU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-16|0;xb=d;J[d+12>>2]=c;J[d+8>>2]=c;e=-1;c=el(0,0,b,c);a:{if((c|0)<0)break a;f=a;c=c+1|0;a=Qb(c);J[f>>2]=a;if(!a)break a;e=el(a,c,b,J[d+12>>2])}xb=d+16|0;return e|0}function Jg(a,b){var c=0,d=0,e=0;a:{if(!a|!b)break a;c=J[a+16>>2];if((c|0)<=0)break a;a=a+20|0;c=a+(c<<2)|0;while(1){d=J[J[a>>2]>>2];if(fc(J[d+8>>2],b)){a=a+4|0;if(c>>>0>a>>>0)continue;break a}break}e=J[d+20>>2]}return e}function j_(a){a=a|0;var b=0,c=0,d=0;J[a>> -2]=416600;b=J[a+4>>2];d=J[a+8>>2];if((b|0)!=(d|0)){while(1){c=J[b>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);b=b+4|0;if((d|0)!=(b|0))continue;break}b=J[a+4>>2]}J[a+8>>2]=b;if(b)Kb(b);Kb(a)}function dh(a){a=a|0;J[a+8>>2]=0;J[a+4>>2]=415492;J[a>>2]=415428;H[a+15|0]=255;H[a+14|0]=255;H[a+13|0]=255;H[a+12|0]=255;J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;return a|0}function Z5(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=393404;b=J[a+4>>2];d=J[a+8>>2];if((b|0)!=(d|0)){while(1){c= -J[b>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);b=b+4|0;if((d|0)!=(b|0))continue;break}b=J[a+4>>2]}J[a+8>>2]=b;if(b)Kb(b);Kb(a)}function Efa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a=J[a+332>>2]+128|0;b=J[b+84>>2];f=P(J[b+32>>2],L[c+16>>1]);b=P(J[b>>2],L[c>>1])+4|0;H[J[d>>2]+e|0]=K[a+(f+b>>>3&1023)|0];H[J[d+4>>2]+e|0]=K[a+(b-f>>>3&1023)|0]}function wja(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=J[a+4>>2];if(!a)return 0;a:{if(!e|!f)break a;if(b>>>0>f>>>0)return Gc(f,0,d,a)|0;e=b>>>0>>0?e:b; -if(e+c>>>0<=f>>>0)break a;c=f-e|0}return Gc(b,c,d,a)|0}function is(a){a=a|0;var b=0,c=0,d=0,e=0;b=xb-16|0;xb=b;a:{if(!J[a+44>>2])break a;while(1){Td(b+12|0,a,c&255);d=K[b+15|0];e=(d|0)!=0;if(d)break a;c=c+1|0;if(M[a+44>>2]>(c&65535)>>>0)continue;break}}xb=b+16|0;return e|0}function Qna(a,b){a=a|0;b=b|0;var c=0,d=0;d=150;c=J[a+12>>2];a:{if((c|0)==24428|(c|0)==24468)break a;d=0;c=xf(be(J[J[J[a>>2]+96>>2]+4>>2],9005),10157,0);if(!c)break a;c=J[c>>2];if(!c)break a;d=Ab[c|0](a,b)|0}return d|0}function O9(a){a= -a|0;var b=0,c=0;b=J[a+584>>2];sC(a);J[a+672>>2]=J[b+128>>2];J[a+668>>2]=J[b+132>>2];c=J[b+124>>2];a:{b:{if(c&2){wk(b- -64|0);break b}if(!(c&1))break a;Tg(b- -64|0)}J[b+124>>2]=0}Kb(b);J[a+584>>2]=0;_i(a)}function o7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=16;J[c+8>>2]=27;J[a+8>>2]=J[a+8>>2]+16;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);xb=c+16|0}function k7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=16;J[c+8>>2]= -10;J[a+8>>2]=J[a+8>>2]+16;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);xb=c+16|0}function h7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=16;J[c+8>>2]=12;J[a+8>>2]=J[a+8>>2]+16;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);xb=c+16|0}function g7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=16;J[c+8>>2]=11;J[a+8>>2]=J[a+8>>2]+16;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>> -2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);xb=c+16|0}function Sl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+4>>2];if(!d)break a;e=J[a+44>>2];if(!e|b>>>0>=e>>>0)break a;b=(b<<2)+d|0;H[b+40|0]=K[c|0];H[b+41|0]=K[c+1|0];H[b+42|0]=K[c+2|0];H[b+43|0]=K[c+3|0];H[a+449|0]=0}}function Q6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=16;J[c+8>>2]=13;J[a+8>>2]=J[a+8>>2]+16;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>> -2],b+4|0,4);xb=c+16|0}function I6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=16;J[c+8>>2]=54;J[a+8>>2]=J[a+8>>2]+16;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);xb=c+16|0}function Hc(a){var b=0,c=0,d=0;c=J[a>>2];if(c){b=J[a+4>>2];d=c;if((b|0)!=(c|0)){while(1){if(H[b-1|0]<0)Kb(J[b-12>>2]);d=b-24|0;if(H[b-13|0]<0)Kb(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a>>2]}J[a+4>>2]=c;Kb(d)}}function $e(a,b,c){a=a|0;b=b|0;c=c|0;var d= -0,e=0,f=Q(0),g=Q(0);d=J[a+12>>2];e=a;f=N[c+12>>2];g=N[c+16>>2];a=J[a+32>>2];if(a)a=J[a>>2];else a=0;Ab[d|0](e,b,c,f,g,a);J[c>>2]=1;a=J[c+16>>2];J[c+4>>2]=J[c+12>>2];J[c+8>>2]=a}function vpa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=f|0;var g=0;a=J[b>>2];f=J[a+12>>2];g=J[b+4>>2];d=Q(Q(N[b+8>>2]*d)+Q(N[b+16>>2]*e));e=Q(N[b+12>>2]*e);b=J[a+32>>2];if(b)b=J[b>>2];else b=0;Ab[f|0](a,g,c,d,e,b)}function j7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=16;J[c+8>>2]=9;J[a+8>>2]=J[a+8>>2]+16;J[a+ -12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);Lb(J[a+4>>2],b+4|0,4);xb=c+16|0}function V8(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=xb-16|0;xb=d;if(!K[a+64|0])Ab[J[J[a>>2]+28>>2]](a);O[d>>3]=O[a+48>>3]*b+O[a+16>>3];O[d+8>>3]=O[a+56>>3]*c+O[a+24>>3];a=J[a+4>>2];Ab[J[J[a>>2]+316>>2]](a,d,d+8|0)|0;xb=d+16|0}function L3(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;var h=0,i=0;h=J[a+4>>2];a=J[a+8>>2];if((h|0)!=(a|0))while(1){i=J[h>>2];Ab[J[J[i>>2]+464>>2]](i,b,c, -d,e,f,g);h=h+4|0;if((a|0)!=(h|0))continue;break}}function z5(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;var h=0,i=0;h=J[a+4>>2];a=J[a+8>>2];if((h|0)!=(a|0))while(1){i=J[h>>2];Ab[J[J[i>>2]+92>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0))continue;break}}function gi(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;a:{g=J[a+4>>2];if(!g)break a;h=J[a+44>>2];if(!h|b>>>0>=h>>>0)break a;b=(b<<2)+g|0;H[b+41|0]=d;H[b+40|0]=e;H[b+42|0]=c;H[b+43|0]=f;H[a+449|0]=0}}function A5(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;var h=0,i=0;h=J[a+4>>2];a=J[a+8>>2];if((h|0)!=(a|0))while(1){i=J[h>>2];Ab[J[J[i>>2]+88>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0))continue;break}}function nba(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];if(J[b+68>>2]!=8){if(J[a+608>>2]>=J[a+600>>2])Xc(a);d=J[b+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=d;J[a+608>>2]=J[a+608>>2]+1;J[b+64>>2]=0;J[b+68>>2]=8}return 1}function be(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+16>>2];if((c|0)<=0)return 0;a=a+20| -0;c=a+(c<<2)|0;while(1){d=J[a>>2];if(!fc(J[J[d>>2]+8>>2],b))break a;a=a+4|0;if(c>>>0>a>>>0)continue;break}return 0}return d}function zc(a,b,c){var d=0,e=0,f=0;e=xb-16|0;xb=e;J[e+12>>2]=c;d=ek(a,b);a:{if(!d)break a;if(b>>>0<=65535){d=L[d+12>>1];if(!(J[((d>>>3&8188)+a|0)+40>>2]>>>d&1))break a}f=Ab[J[a+672>>2]](a,b,c)|0}xb=e+16|0;return f}function _oa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=J[b+32>>2];J[195395]=0;b=ha(692,b|0,c|0,d|0,e|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){c=!b;c=b|!e? -c:K[d|0]!=0;td();return c|0}b=Z()|0;td();ba(b|0);B()}function Nf(a){a=a|0;var b=0;J[a>>2]=234140;J[195395]=0;_(1097,a|0)|0;b=J[195395];J[195395]=0;a:{if((b|0)==1)break a;J[195395]=0;_(1098,a|0)|0;b=J[195395];J[195395]=0;if((b|0)==1)break a;return a|0}ga(0)|0;_b();B()}function Kpa(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=c>>>16|0;f=a>>>16|0;j=P(e,f);g=c&65535;h=a&65535;i=P(g,h);f=(i>>>16|0)+P(f,g)|0;e=(f&65535)+P(e,h)|0;zb=(P(b,c)+j|0)+P(a,d)+(f>>>16)+(e>>>16)|0;return i&65535|e<<16}function A9(a,b, -c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=J[a+584>>2];if(!(Ab[J[e+36>>2]](a,b,c,d)|0))return 0;if((c|0)>0){d=J[e+8>>2];while(1){Ab[J[e+40>>2]](a,b,d);b=b+d|0;c=c-d|0;if((c|0)>0)continue;break}}return 1}function sn(a,b,c){var d=0,e=0,f=0;d=J[a+12>>2];e=J[a+4>>2];a:{b:{if(!(d|(e|!c))){e=Pb(c);J[a+12>>2]=c;J[a+4>>2]=e;d=c;break b}if(!d)break a}f=J[a+8>>2];c=c+f>>>0>d>>>0?d-f|0:c;Mb(e+f|0,b,c);J[a+8>>2]=c+J[a+8>>2]}}function mga(a){a=a|0;var b=0,c=0;J[a+148>>2]=0;b=J[a+448>>2];a:{if(J[a+336>>2]>=2){J[b+ -28>>2]=1;break a}c=J[a+340>>2];if(J[a+328>>2]!=1){J[b+28>>2]=J[c+12>>2];break a}J[b+28>>2]=J[c+76>>2]}J[b+20>>2]=0;J[b+24>>2]=0}function km(a){a=a|0;var b=0;a:{if(!(!a|(a|0)==169776)){b=J[a>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a>>2]=0;if(J[a+4>>2]){J[a+8>>2]=0;Kb(J[a+12>>2])}Kb(a)}return}ga(0)|0;_b();B()}function i5(a,b){a=a|0;b=b|0;var c=0,d=0;J[b+72>>2]=1869968492;d=J[a+36>>2];J[b+124>>2]=d;c=J[a+24>>2];J[b+108>>2]=J[a+20>>2];J[b+112>>2]=c;c=J[a+32>>2];J[b+116>> -2]=J[a+28>>2];J[b+120>>2]=c;J[b+124>>2]=d&-2;return 0}function Vv(a,b){a=a|0;b=b|0;var c=0;c=J[b+4>>2];J[a+4>>2]=J[b>>2];J[a+8>>2]=c;J[a+28>>2]=J[b+24>>2];c=J[b+20>>2];J[a+20>>2]=J[b+16>>2];J[a+24>>2]=c;c=J[b+12>>2];J[a+12>>2]=J[b+8>>2];J[a+16>>2]=c;Gv(a,b,0);Gv(a,b,1)}function R8(a){a=a|0;var b=0,c=0;b=xb-16|0;xb=b;if(!K[a+64|0]){Ab[J[J[a>>2]+28>>2]](a);c=J[a+8>>2];Ab[J[J[c>>2]+64>>2]](b,c);Ab[J[J[a>>2]+32>>2]](a,O[b>>3],O[b+8>>3])}a=J[a+4>>2];Ab[J[J[a>>2]+340>>2]](a)|0;xb=b+16|0}function J7(a,b, -c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+12>>2]=36;J[d+8>>2]=36;J[a+8>>2]=J[a+8>>2]+36;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],d+8|0,4);Lb(J[a+4>>2],d+12|0,4);tl(a,b);Lb(J[a+4>>2],c,4);xb=d+16|0}function DM(a,b){a=a|0;b=b|0;var c=0,d=0;d=Lf(96672,b);a:{if(d)break a;d=0;if(!a)break a;c=J[a+4>>2];if(!c)break a;c=be(c,9005);if(!c)break a;c=J[J[c>>2]+20>>2];if(!c)break a;d=Ab[J[c+16>>2]](a,b)|0}return d|0}function Br(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!(!a|!b)){a=L[c+4>>1]|L[c+6>>1]<<16;d=L[c>>1]| -L[c+2>>1]<<16;I[b+90>>1]=d;I[b+92>>1]=d>>>16;I[b+94>>1]=a;I[b+96>>1]=a>>>16;I[b+98>>1]=L[c+8>>1];J[b+8>>2]=J[b+8>>2]|32}}function qN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=xb-16|0;xb=d;e=J[a+16>>2];a:{if((e|0)>0)while(1){if(!tm(a,c,d+12|0))if(!fc(b,J[d+12>>2]))break a;c=c+1|0;if((e|0)!=(c|0))continue;break}c=0}xb=d+16|0;return c|0}function nR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;J[e+12>>2]=d;d=Tf(e+8|0,e+12|0);J[195395]=0;a=ey(a,b,c);b=J[195395];J[195395]=0;if((b|0)!=1){re(d);xb=e+ -16|0;return a|0}a=Z()|0;re(d);ba(a|0);B()}function Zb(a,b,c){var d=0,e=0;if(!c)return 0;d=K[a|0];if(d)a:{while(1){e=K[b|0];if((e|0)!=(d|0)|!e)break a;c=c-1|0;if(!c)break a;b=b+1|0;d=K[a+1|0];a=a+1|0;if(d)continue;break}d=0}else d=0;return d-K[b|0]|0}function Xt(){var a=0,b=0;a=vc(1,40);if(!a)return 774844;J[a+8>>2]=0;J[a>>2]=1;J[a+4>>2]=1;b=J[193715];J[a+12>>2]=J[193714];J[a+16>>2]=b;b=J[193717];J[a+20>>2]=J[193716];J[a+24>>2]=b;J[a+28>>2]=J[193718];return a}function PA(a,b,c){var d=0;d=J[a+208>> -2];if(d)Ab[J[J[d>>2]+4>>2]](d);a:{if(!c){c=Pb(20);J[195395]=0;b=ca(2045,c|0,b|0)|0;d=J[195395];J[195395]=0;if((d|0)==1)break a;J[a+208>>2]=b}return}a=Z()|0;Kb(c);ba(a|0);B()}function NE(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(b-257>>>0<4294967040)break b;c=b;c:switch(L[a+26>>1]-1|0){case 0:c=c>>>0>=2?2:c;break b;case 7:break b;case 3:break c;default:break a}c=c>>>0>=16?16:c}J[a+48>>2]=c}}function Mn(a,b,c,d){var e=0,f=0;f=J[a+4>>2];if(f>>>0>b>>>0){e=J[a+20>>2];a:{if(e){c=Ab[e|0](a,b,c,d)|0;break a}e=c; -c=f-b|0;c=c>>>0>>0?c:d;Mb(e,J[a>>2]+b|0,c)}J[a+8>>2]=b+c;a=c>>>0>>0?85:0}else a=85;return a}function Lj(a,b){var c=0,d=0,e=0;c=a*a;d=c*a;e=c*c;a=d*e*(e*(c*.009465647849436732+.002974357433599673)+(c*.024528318116654728+.05338123784456704))+(d*(c*.13339200271297674+.3333313950307914)+a);return Q(b?-1/a:a)}function ry(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];a:{if(!c)break a;d=J[c+24>>2];b:{if((d|0)==J[c+28>>2]){b=Ab[J[J[c>>2]+52>>2]](c,b)|0;break b}J[c+24>>2]=d+4;J[d>>2]=b}if((b|0)!=-1)break a; -J[a>>2]=0}return a|0}function iu(a,b){if(b)J[b>>2]=J[a+68>>2];a:{if(K[a+63|0])break a;if(J[a+168>>2])return 0;J[a+72>>2]=0;I[a+62>>1]=256;J[a+84>>2]=J[a+80>>2];b=P(J[a+68>>2],20);if(!b)break a;Nb(J[a+88>>2],0,b)}return J[a+88>>2]}function hpa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;f=J[b+32>>2];b=0;J[195395]=0;c=aa(687,f|0,c|0,d|0)|0;d=J[195395];J[195395]=0;if((d|0)!=1){if(c){J[e>>2]=c;b=1}td();return b|0}b=Z()|0;td();ba(b|0);B()}function XL(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!(!K[a+ -616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break a;a=J[b+16>>2]+(c<<3)|0;J[a+4>>2]=J[a+4>>2]+d}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|16}function RE(a,b,c,d){var e=0;e=xb-16|0;xb=e;H[e+15|0]=0;H[e+12|0]=d>>>16;d=d<<8|(d&65280)>>>8;H[e+13|0]=d;H[e+14|0]=d>>>8;J[e+8>>2]=K[e+12|0]|K[e+13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);Rl(a,b,c,e+8|0,0);xb=e+16|0}function N5(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0;h=J[a+4>>2];a=J[a+8>>2];if((h|0)!=(a|0))while(1){i=J[h>>2];Ab[J[J[i>> -2]+40>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0))continue;break}}function M5(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0;h=J[a+4>>2];a=J[a+8>>2];if((h|0)!=(a|0))while(1){i=J[h>>2];Ab[J[J[i>>2]+44>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0))continue;break}}function zja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-32|0;xb=e;b=Pl(e+4|0,b,c);J[195395]=0;a=aa(1147,a|0,b|0,d|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){Og(b);xb=e+32|0;return a|0}a=Z()|0;Og(b);ba(a|0);B()}function mma(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;H[b+140|0]=K[b+140|0]|192;a=J[b+68>>2];if(a){c=J[b+80>>2];b=0;while(1){d=P(b,20)+c|0;e=d,f=Rs(J[d>>2]),I[e+18>>1]=f;b=b+1|0;if((b|0)!=(a|0))continue;break}}}function faa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;d=J[J[a+584>>2]>>2];while(1){a:{f=1;if((c|0)<=0)break a;e=(c|0)<(d|0)?c:d;c=c-e|0;f=-1;g=wC(a,b,e,0);b=b+e|0;if((g|0)>=0)continue}break}return f|0}function or(a,b,c){var d=0,e=0,f=0,g=0;e=J[a+8>>2];f=J[a+4>>2];if(e>>>0>>0){d=J[a+20>>2];a:{if(d){d= -Ab[d|0](a,e,b,c)|0;break a}g=b;b=f-e|0;d=b>>>0>>0?b:c;Mb(g,J[a>>2]+e|0,d)}J[a+8>>2]=J[a+8>>2]+d}return d}function oY(a,b){a=a|0;b=b|0;var c=0;c=J[a+248>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);c=Pb(8);J[195395]=0;J[c+4>>2]=b;J[c>>2]=427204;b=J[195395];J[195395]=0;if((b|0)!=1){J[a+248>>2]=c;return}a=Z()|0;Kb(c);ba(a|0);B()}function jba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if((c|0)>0){d=J[a+584>>2];while(1){NC(a,b,J[d+96>>2],J[d+12>>2]);Pc(J[d+96>>2],b,J[d+8>>2]);e=J[d+8>>2];b=e+b|0;c=c-e|0;if((c|0)> -0)continue;break}}return 1}function foa(a){a=a|0;var b=0,c=0;c=J[a+712>>2];a:{if(!(K[a+8|0]&8)|!J[a+540>>2])break a;b=xf(be(J[J[a+96>>2]+4>>2],9005),9908,0);if(!b)break a;b=J[b>>2];if(!b)break a;return Ab[b|0](a)|0}return J[c+1348>>2]}function cba(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+584>>2];c=J[b+396>>2]+1|0;J[b+396>>2]=c;if(!((c>>>0)%M[a+176>>2]|0)){a=b+536|0;c=J[a+4>>2];if(c)Ab[J[c+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0;H[b+393|0]=0;H[b+400|0]=0}}function ama(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;H[b+ -140|0]=K[b+140|0]|192;a=J[b+68>>2];if(a){c=J[b+80>>2];b=0;while(1){d=P(b,20)+c|0;e=d,f=Rs(J[d>>2]),H[e+18|0]=f;b=b+1|0;if((b|0)!=(a|0))continue;break}}}function Mfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;d=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];e=P(J[b+4>>2],L[c+2>>1]);b=P(J[b>>2],L[c>>1])+4|0;H[d|0]=K[a+(e+b>>>3&1023)|0];H[d+1|0]=K[a+(b-e>>>3&1023)|0]}function H0(a,b){a=a|0;b=b|0;var c=0;c=J[a+208>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);c=Pb(8);J[195395]=0;J[c+4>>2]=b;J[c>>2]=394144;b=J[195395]; -J[195395]=0;if((b|0)!=1){J[a+208>>2]=c;return}a=Z()|0;Kb(c);ba(a|0);B()}function EL(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=12;a:{if(fc(b,10673))break a;e=7;b:{c:{if(d){b=Wd(c,0);break c}b=J[c>>2]}switch(b-35|0){case 0:case 5:break b;default:break a}}J[a+64>>2]=b;e=0}return e|0}function wi(a){var b=0;Kb(J[a+156>>2]);a:{b=J[a+128>>2];if(b){J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a+128>>2]=0;J[a+104>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0}return}ga(0)|0;_b();B()}function sf(a){var b= -0,c=0,d=0,e=0;d=Nj(a);e=Ab[J[a+12>>2]](a)|0;if(!(H[a|0]&1)){b=J[a+56>>2];c=J[a+52>>2];if(c)J[c+56>>2]=b;if(b)J[b+52>>2]=c;if(J[194973]==(a|0))J[194973]=b;Kb(J[a+96>>2]);Kb(a)}return d|e}function q3(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;g=J[a+4>>2];a=J[a+8>>2];if((g|0)!=(a|0))while(1){h=J[g>>2];Ab[J[J[h>>2]+556>>2]](h,b,c,d,e,f);g=g+4|0;if((a|0)!=(g|0))continue;break}}function fd(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a:{if(!c)break a;if(b){if(M[a+20>>2]<=b>>>0)break a;return((J[c>> -2]+c|0)+(J[a+44>>2]<<2)|0)+P(J[a+52>>2],b)|0}d=(J[c>>2]+c|0)+(J[a+44>>2]<<2)|0}return d|0}function es(a,b){var c=0,d=0,e=0;c=J[a+156>>2];a:{if(!c)break a;d=J[c+4>>2];if(!(d&1))break a;e=J[a+88>>2];if(e){c=J[J[a+4>>2]+100>>2];Ab[J[c+8>>2]](c,e);c=J[a+156>>2];d=J[c+4>>2]}J[c+4>>2]=d&-2}J[a+88>>2]=b}function ema(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;H[b+140|0]=K[b+140|0]|64;a=J[b+68>>2];if(a){c=J[b+80>>2];b=0;while(1){d=P(b,20)+c|0;e=d,f=Rs(J[d>>2]),H[e+18|0]=f;b=b+1|0;if((b|0)!=(a|0))continue;break}}} -function U7(a){a=a|0;var b=0,c=0;J[a>>2]=392476;b=J[a+4>>2];c=J[J[b>>2]+8>>2];J[195395]=0;ea(c|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1){b=J[a+4>>2];if(b)Ab[J[J[b>>2]+4>>2]](b);Kb(a);return}ga(0)|0;_b();B()}function x3(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=J[a+4>>2];a=J[a+8>>2];if((g|0)!=(a|0))while(1){h=J[g>>2];Ab[J[J[h>>2]+520>>2]](h,b,c,d,e,f);g=g+4|0;if((a|0)!=(g|0))continue;break}}function VM(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=Ab[J[a+516>>2]](a,c? -1986884728:1752003704,b,d+12|0)|0;if(!e){J[(c?756:752)+a>>2]=J[d+12>>2];J[(c?856:852)+a>>2]=J[b+8>>2]}xb=d+16|0;return e|0}function Dp(a,b,c){var d=0;d=J[a+16>>2];if(!d){J[a+36>>2]=1;J[a+24>>2]=c;J[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(J[a+24>>2]!=2)break a;J[a+24>>2]=c;return}H[a+54|0]=1;J[a+24>>2]=2;J[a+36>>2]=J[a+36>>2]+1}}function zaa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0){c=J[a+804>>2];a:{if((c|0)<(b|0)){b=J[a>>2];J[b+20>>2]=123;Ab[J[b+4>>2]](a,-1);J[a+800>>2]=288864;b=2;break a}J[a+800>>2]= -J[a+800>>2]+b;b=c-b|0}J[a+804>>2]=b}}function mR(a){a=a|0;var b=0,c=0,d=0;b=xb-16|0;xb=b;J[b+12>>2]=a;a=Tf(b+8|0,b+12|0);J[195395]=0;c=J[J[194998]>>2]?4:1;d=J[195395];J[195395]=0;if((d|0)!=1){re(a);xb=b+16|0;return c|0}b=Z()|0;re(a);ba(b|0);B()}function gz(a){var b=0;a:{b=a;a=ac(a);if((((Ee(b,1,a,776256)|0)!=(a|0)?-1:0)|0)<0)break a;b:{if(J[194084]==10)break b;a=J[194069];if((a|0)==J[194068])break b;J[194069]=a+1;H[a|0]=10;break a}xq(776256,10)}}function dG(a,b){var c=0,d=0;if(ec(a,0,1)){d=J[b+4>> -2];c=J[a+84>>2]+P(J[a+72>>2],20)|0;J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+16>>2]=J[b+16>>2];d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;J[a+72>>2]=J[a+72>>2]+1}}function V7(a){a=a|0;var b=0,c=0;J[a>>2]=392476;b=J[a+4>>2];c=J[J[b>>2]+8>>2];J[195395]=0;ea(c|0,b|0);b=J[195395];J[195395]=0;if((b|0)!=1){b=J[a+4>>2];if(b)Ab[J[J[b>>2]+4>>2]](b);return a|0}ga(0)|0;_b();B()}function sba(a,b){a=a|0;b=b|0;var c=0;b=J[a+584>>2];J[b+72>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+60>>2]=L[a+94>>1]!=2?283424:283680;a=J[b+84>> -2];if(a){c=J[b+12>>2];J[a+4>>2]=0;J[a>>2]=c}J[b+108>>2]=0;return 1}function $c(a,b,c,d){var e=0,f=0;a:{if(b-a>>>0>>0)break a;while(1){a=Mc(a,c);e=(a|0)!=0&a>>>0>>0;if(!e)break a;a=a+d|0;f=K[a|0];if((f-48&255)>>>0<10|((f&-33)-65&255)>>>0<26)continue;break}}return e}function on(a){a=a|0;var b=0,c=0,d=0;b=J[a+88>>2];c=J[a+84>>2];if((b|0)!=(c|0))while(1){if(H[b-5|0]<0)Kb(J[b-16>>2]);d=b-28|0;if(H[b-17|0]<0)Kb(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}J[a+88>>2]=c}function of(a,b,c){var d=0,e= -0,f=0;if(!b){J[c>>2]=0;return 0}e=c;c=ac(b);d=c+1|0;f=!d;a:{if(c>>>0<=2147483646){c=Ab[J[a+4>>2]](a,d)|0;a=!c<<6;break a}c=0;a=d?6:0}if(!(f|a)){Mb(c,b,d);a=0}J[e>>2]=a;return c}function jj(a){a=a|0;var b=0;J[a>>2]=234140;J[195395]=0;_(1097,a|0)|0;b=J[195395];J[195395]=0;a:{if((b|0)!=1){J[195395]=0;_(1098,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)break a}ga(0)|0;_b();B()}Kb(a)}function So(a){var b=0,c=0;J[a>>2]=0;b=J[a+8>>2];if(b){c=J[a+12>>2];while(1){Kb(J[c>>2]);c=c+4|0;b=b-1|0;if(b)continue;break}}if(J[a+ -4>>2]){J[a+8>>2]=0;Kb(J[a+12>>2])}J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}function im(a,b){var c=0;a:{if((b|0)==65535)break a;if(b>>>0>=391){b=b-391|0;if(b>>>0>=M[a+1356>>2])break a;return J[J[a+1360>>2]+(b<<2)>>2]}a=J[a+3084>>2];if(!a)break a;c=Ab[J[a+20>>2]](b)|0}return c}function Wo(a,b){var c=0,d=0;c=xb+-64|0;xb=c;a:{if(!K[a|0]|(!a|!b))break a;b:{if((b|0)>=0){b=b>>>0>=63?63:b;a=Mb(c,a,b);H[a+b|0]=0;a=Vo(a);break b}a=Vo(a)}if(!a)break a;d=J[a+4>>2]}xb=c- -64|0;return d}function OS(a,b,c,d,e,f){a= -a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=xb-16|0;xb=b;a:{if(!(K[f+11|0]>>>7|0)){J[a+8>>2]=J[f+8>>2];c=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=c;break a}rf(a,J[f>>2],J[f+4>>2])}xb=b+16|0}function NI(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;a=J[a+20>>2];J[e>>2]=0;b=J[a+116>>2];f=J[b+36>>2];g=J[a+120>>2];b=J[b+12>>2];if(b)b=J[b+16>>2];else b=0;return Ab[f|0](a,g,c,d,e,b)|0}function Le(a,b,c,d,e){var f=0;f=xb-256|0;xb=f;if(!(e&73728|(c|0)<=(d|0))){d=c-d|0;c=d>>>0<256;Nb(f,b&255,c?d:256);if(!c)while(1){De(a, -f,256);d=d-256|0;if(d>>>0>255)continue;break}De(a,f,d)}xb=f+256|0}function Ki(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;while(1){d=J[a>>2];e=J[b>>2];if((d|0)==(e|0)){b=b+4|0;a=a+4|0;c=c-1|0;if(c)continue;break a}break}f=-1;if((d|0)<(e|0))break a;f=(d|0)>(e|0)}return f}function EX(a){a=a|0;var b=0;b=J[J[a+156>>2]>>2];J[a+184>>2]=0;J[a+188>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+192>>2]=0;J[a+188>>2]=b;lh(b);return 0}function zL(a,b){a=a|0;b=b|0;var c= -0,d=0;c=xb-16|0;xb=c;d=b;b=c+8|0;d=Nk(a,d,b,c+7|0);a:{if(d)break a;a=J[J[J[a+4>>2]+128>>2]+52>>2];if(!a)break a;Ab[J[J[a>>2]+4>>2]](J[a+4>>2],b)}xb=c+16|0;return d|0}function ifa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a:{if(b)break a;if(Ab[J[c+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;Ab[J[b>>2]](a)}}function xna(a,b){a=a|0;b=b|0;a=rh(a,b);if((K[a|0]|K[a+1|0]<<8)==256){b=K[a+8|0]|K[a+9|0]<<8;if(b)a=a+((b<<8|b>>>8)&65535)|0;else a=169776; -a=K[a|0]|K[a+1|0]<<8;a=(a<<8|a>>>8)&65535}else a=0;return a|0}function pka(a,b){a=a|0;b=b|0;var c=0;c=Pb(20);J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[195395]=0;fa(1074,c|0,a|0,b|0);a=J[195395];J[195395]=0;if((a|0)==1){a=Z()|0;wF(c+8|0);Kb(c);ba(a|0);B()}return c|0}function Mp(a){var b=0;J[195395]=0;a=_(1109,a|0)|0;b=J[195395];J[195395]=0;a:{if((b|0)==1){sa(ga(0)|0)|0;J[195395]=0;ja(3516);b=J[195395];J[195395]=0;a=0;if((b|0)==1)break a}return a}ga(0)|0;_b();B()}function qd(a){var b=0,c=0,d=0;b=J[a>> -2];d=J[a+4>>2];if((b|0)!=(d|0)){while(1){c=J[b>>2];if(c)Ab[J[J[c>>2]+4>>2]](c);b=b+4|0;if((d|0)!=(b|0))continue;break}b=J[a>>2]}J[a+4>>2]=b;if(b)Kb(b);return a}function pla(a,b,c){a=a|0;b=b|0;c=c|0;if(b>>>0<=1114109)a=K[(b&1|K[(b>>>1&7|L[(b>>>3&14|K[(b>>>7&15|K[(b>>>11|0)+170464|0]<<4)+171008|0]<<4)+188352>>1]<<3)+171776|0]<<1)+177272|0];else a=2;return a|0}function iv(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=xb-16|0;xb=e;g=J[b>>2];a:{if(g>>>0>=d>>>0)break a;h=c,i=Tb(a,1,g,d,J[c>>2],e+12|0),J[h>>2]=i;f= -J[e+12>>2];if(f)break a;J[b>>2]=d;f=0}xb=e+16|0;return f}function aB(a){var b=0,c=0,d=0,e=0;b=J[a>>2];if(b){c=b;d=J[a+4>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;Kb(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a>>2]}J[a+4>>2]=b;Kb(c)}}function a8(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[195395]=0;$(1924,a|0,b|0);b=J[195395];J[195395]=0;if((b|0)==1){c=Z()|0;b=J[a>>2];if(b){J[a+4>>2]=b;Kb(b)}ba(c|0);B()}return a|0}function C8(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]= -0;J[a>>2]=0;J[a+4>>2]=1072693248;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;return a|0}function v4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+324>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0))continue;break}}function mO(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-16|0;xb=c;J[c+12>>2]=b;d=0;a:{if(b>>>0>65535)break a;if(H[a+20|0]&1){d=Tv(J[a>>2],J[a+16>>2],c+12|0,0); -break a}d=Sv(a,c+12|0,0)}a=d;xb=c+16|0;return a|0}function kR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+20>>2];if(K[a+65|0]){a=J[e+8>>2];f=I[e+2>>1];g=J[e+4>>2]+(f<<3)|0;J[g+4>>2]=c>>10;J[g>>2]=b>>10;H[a+f|0]=d?1:2}I[e+2>>1]=L[e+2>>1]+1}function h4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+376>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0))continue;break}}function g4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f= -0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+380>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0))continue;break}}function R6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=115;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function Q4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+244>>2]](g,b,c,d,e);f=f+4| -0;if((a|0)!=(f|0))continue;break}}function N4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+256>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0))continue;break}}function N3(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+456>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0))continue;break}}function Gaa(a){a=a|0;var b=0;b=J[a+584>>2];J[a+672>>2]=J[b+892>>2];J[a+668>> -2]=J[b+896>>2];J[a+676>>2]=J[b+900>>2];if(J[b+488>>2])yC(b);b=J[b+912>>2];if(b)Kb(b);Kb(J[a+584>>2]);J[a+584>>2]=0;_i(a)}function z7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=58;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function w7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=19;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>> -2],b,4);xb=c+16|0}function n7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=57;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function l7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=17;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function e7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=21;J[a+8>> -2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function d7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=98;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function a7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=67;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4); -xb=c+16|0}function X6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=20;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function V6(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=48;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function Un(a,b,c){var d=0,e=0;a:{b:{if(!b|!c)break b;d=V(+(b|0)*+(c|0)/1E5+.5);if(!(d<=2147483647)| -!(d>=-2147483648))break a;if(R(d)<2147483648){e=~~d;break b}e=-2147483648}J[a>>2]=e;e=1}return e}function K7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=34;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function Fna(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[a+712>>2];a:{b:{if(!a)break b;d=6;if(J[a+1504>>2]==65535|M[a+20>>2]<=b>>>0)break a;if(!c)break b;J[c>>2]=L[J[a+1188>>2]+(b<<1)>>1]}d=0}return d|0}function E7(a, -b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=37;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function C7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=22;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function B7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=18;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+ -12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function A7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=12;J[c+8>>2]=40;J[a+8>>2]=J[a+8>>2]+12;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);Lb(J[a+4>>2],b,4);xb=c+16|0}function s3(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0;var f=0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+548>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0))continue;break}}function m3(a,b,c,d,e){a= -a|0;b=b|0;c=+c;d=+d;e=e|0;var f=0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+572>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0))continue;break}}function Eia(a){a=a|0;var b=0,c=0;b=J[a+24>>2];c=J[b+48>>2];if((Ab[J[J[c>>2]+16>>2]](c,J[b+52>>2],1,4096)|0)!=4096){c=J[a>>2];J[c+20>>2]=38;Ab[J[c>>2]](a)}J[b+4>>2]=4096;J[b>>2]=J[b+52>>2];return 1}function A3(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0;var f=0,g=0;f=J[a+4>>2];a=J[a+8>>2];if((f|0)!=(a|0))while(1){g=J[f>>2];Ab[J[J[g>>2]+ -508>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0))continue;break}}function Bma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=3;c=J[a+32>>2];a:{if(!c)break a;d=J[c+364>>2];if(!d)break a;b=160;if(K[d+557|0])break a;e=c,f=Pf(a,J[J[a+16>>2]>>2]),J[e+360>>2]=f;b=0}return b|0}function via(a){a=a|0;var b=0,c=0,d=0;b=J[a+928>>2];if(b)Kb(b);J[a+376>>2]=0;J[a+380>>2]=0;b=J[a+16>>2];J[a+372>>2]=b;c=J[a+20>>2];J[a+384>>2]=c;d=a;a=vc(P(b,c),1);J[d+928>>2]=a;return(a|0)!=0|0}function qla(a,b,c){a=a|0;b=b|0;c=c|0;if(b>>>0<=125258)a= -K[(b&3|K[(b>>>2&3|K[(b>>>4&3|K[(b>>>6&7|K[(b>>>9|0)+177650|0]<<3)+177896|0]<<2)+178248|0]<<2)+178708|0]<<2)+179264|0];else a=0;return a|0}function oC(a){var b=0,c=0;a:{if(K[a+12|0])break a;b=J[J[a+8>>2]>>2];c=J[J[a+4>>2]>>2];if((b|0)==(c|0))break a;while(1){a=b-12|0;if(H[b-1|0]<0)Kb(J[a>>2]);b=a;if((a|0)!=(c|0))continue;break}}}function hm(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;J[e+12>>2]=d;a:{if(J[a+156>>2]){eu(a,b,c,J[e+12>>2]);break a}a=J[189490];Ee(106203,9,1,a);Ty(a,c,J[e+12>> -2]);hl(10,a)}xb=e+16|0}function $D(a,b,c,d){var e=0,f=0,g=0;f=35;a:{if(!a|!(K[a+8|0]&8))break a;f=7;e=J[a+96>>2];g=J[J[e>>2]+32>>2];if(!g)break a;e=Ab[g|0](e,9632)|0;if(!e)break a;f=Ab[J[e>>2]](a,b,0,c,d)|0}return f}function xba(a,b){a=a|0;b=b|0;var c=0;b=xb-16|0;xb=b;c=1;a:{if(!Nn(a))break a;if(!Gg(a,286960,1)){Ob(J[a+628>>2],263551,264282,0);c=0;break a}J[b>>2]=1;c=xc(a,65536,b)}a=c;xb=b+16|0;return a|0}function ola(a,b,c){a=a|0;b=b|0;c=c|0;if(b>>>0<=65379)a=I[(K[(b>>>2&7|K[(b>>>5&7|K[(b>>>9|0)+ -179764|0]>>>(b>>>6&4)<<3&120)+179892|0]<<3)+180012|0]<<3|(b&3)<<1)+207040>>1];else a=0;return a+b|0}function ZK(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b>>2];J[b>>2]=0;if(c>>>0>254)return 0;while(1){if((c|0)==255)return 0;c=c+1|0;d=L[J[a+16>>2]+(c<<1)>>1];if(!d)continue;break}J[b>>2]=c;return d|0}function Pb(a){a=a|0;var b=0;a=a>>>0<=1?1:a;a:{while(1){b=Qb(a);if(b)break a;b=J[195927];if(b){Ab[b|0]();continue}break}a=pg(4);J[a>>2]=774300;J[a>>2]=774260;xa(a|0,774376,1072);B()}return b|0}function Mha(a,b){a= -a|0;b=b|0;var c=0;c=J[a>>2];if((b|0)<0){b=J[c+108>>2];if(!(J[c+104>>2]<3?b:0)){Ab[J[c+8>>2]](a);b=J[c+108>>2]}J[c+108>>2]=b+1;return}if(J[c+104>>2]>=(b|0))Ab[J[c+8>>2]](a)}function Gr(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;J[c+12>>2]=0;J[c+8>>2]=0;a:{if(!Hr(a,b,c+12|0,c+8|0))break a;d=b;b=J[c+8>>2];if(K[a+b|0]?(d|0)!=(b|0):0)break a;e=J[c+12>>2]}xb=c+16|0;return e}function Fd(a,b){a=a|0;b=b|0;J[a>>2]=234140;Nb(a+4|0,0,940);H[a+388|0]=255;J[a+344>>2]=1119092736;J[a+68>>2]=b;H[a+390|0]=1;J[a+336>>2]=-1; -H[a+348|0]=1;ig(a,96);ji(a,96);H[a+462|0]=1;return a|0}function tW(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;a=_a(J[a+60>>2],b|0,c|0,d&255,e+8|0)|0;if(a){J[194954]=a;a=-1}else a=0;xb=e+16|0;zb=a?-1:J[e+12>>2];return(a?-1:J[e+8>>2])|0}function nE(a){var b=0;b=a;a=Ab[J[J[a+4>>2]>>2]](a,1,32)|0;J[b+404>>2]=a;J[a+28>>2]=0;J[a+24>>2]=1474;J[a+20>>2]=1475;J[a+16>>2]=1476;J[a+12>>2]=1477;J[a+8>>2]=1478;J[a+4>>2]=1479;J[a>>2]=1480}function Mr(a,b){var c=0;c=35;a:{if(!a|!(K[a+8|0]&2))break a; -c=6;if((b|0)<0|J[a+28>>2]<=(b|0))break a;c=J[J[J[a+96>>2]+12>>2]+92>>2];if(c)return Ab[c|0](J[a+88>>2],b)|0;Lg(a,b);c=0}return c}function Fr(a,b){var c=0;a:{b:{if(!a|!b)break b;c=V(1E15/+(a|0)/+(b|0)+.5);b=c<=2147483647;if(R(c)<2147483648)a=~~c;else a=-2147483648;if(!b)break b;if(c>=-2147483648)break a}a=0}return a}function EV(a){a=a|0;J[a+24>>2]=500;J[a+28>>2]=400;I[a+20>>1]=256;J[a+12>>2]=86;J[a+16>>2]=30;J[a+48>>2]=2333;J[a+52>>2]=0;J[a+40>>2]=1667;J[a+44>>2]=275;J[a+32>>2]=1E3;J[a+36>>2]=275; -return 0}function qka(){var a=0,b=0;a=Pb(20);J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[195395]=0;J[a>>2]=0;J[a+4>>2]=0;b=J[195395];J[195395]=0;if((b|0)==1){b=Z()|0;wF(a+8|0);Kb(a);ba(b|0);B()}return a|0}function jx(a,b,c,d,e){var f=0;f=xb-16|0;xb=f;J[f+12>>2]=e;e=Tf(f+8|0,f+12|0);J[195395]=0;a=fl(a,b,c,d);b=J[195395];J[195395]=0;if((b|0)!=1){re(e);xb=f+16|0;return a}a=Z()|0;re(e);ba(a|0);B()}function cu(a,b){var c=0,d=0;c=1;a:{if((a|0)==(b|0))break a;c=0;if(!a|!b)break a;d=ac(a);if(d>>>0>ac(b)>>>0)break a; -if(Zb(a,b,d))break a;c=1;a=K[b+d|0];if(!a)break a;c=(a|0)==45}return c}function Cg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{e=J[a+208>>2];if(!(!J[a+156>>2]|!e)|!e)break a;Ab[J[J[e>>2]+52>>2]](e,(c?2:0)|b);if(!d)break a;a=J[a+208>>2];Ab[J[J[a>>2]+56>>2]](a)}}function yd(a,b){var c=0,d=0;c=85;a:{if((b|0)<0)break a;b=J[a+8>>2]+b|0;d=J[a+20>>2];b:{if(d){if(!(Ab[d|0](a,b,0,0)|0))break b;break a}if(b>>>0>M[a+4>>2])break a}J[a+8>>2]=b;c=0}return c}function nla(a,b,c){a=a|0;b=b|0;c=c|0;if(b>>>0<=917999)a= -K[(b&7|L[(b>>>2&30|K[(b>>>7&15|K[(b>>>11|0)+180348|0]<<4)+180798|0]<<5)+192448>>1]<<3)+181534|0];else a=2;return J[(a<<2)+207440>>2]}function ms(a,b){a=a|0;b=b|0;var c=0;a:{if(L[b+26>>1]>23)break a;c=J[b+336>>2];if((c|0)<0)break a;Td(a,b,c&255);return}b=J[b+340>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24}function ki(a){var b=0,c=0;b=xb-16|0;xb=b;H[b+14|0]=0;c=65535;a:{if(!a)break a;c=65535;if((Gc(b+14|0,1,2,a)|0)!=2)break a;a=K[b+14|0]|K[b+15|0]<<8;c=a<<8|a>>>8}a=c;xb=b+16|0;return a& -65535}function a9(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];if(b){b=Ab[J[J[b>>2]+16>>2]](b)|0;c=J[b+12>>2];d=J[b+4>>2];O[a+48>>3]=O[a+32>>3]/R(+(J[b+8>>2]-J[b>>2]|0));O[a+56>>3]=O[a+40>>3]/R(+(c-d|0))}}function wF(a){var b=0,c=0,d=0;b=J[a>>2];if(b){c=b;d=J[a+4>>2];if((b|0)!=(d|0)){while(1){c=d-20|0;if(H[d-9|0]<0)Kb(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[a>>2]}J[a+4>>2]=b;Kb(c)}}function ts(a,b,c){var d=0,e=0;d=(c-b>>>1|0)+b|0;e=J[(d<<2)+a>>2];if(b+1>>>0<=d>>>0)b=ts(a,b,d-1|0);else b=0;J[e+8>> -2]=b;b=d+1|0;if(b>>>0<=c>>>0)a=ts(a,b,c);else a=0;J[e+12>>2]=a;return e}function t4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+328>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function t3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+544>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function s4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f= -0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+332>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function rA(a){a=a|0;var b=0;J[a>>2]=415408;J[a>>2]=417436;J[195395]=0;b=a+4|0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;b=J[195395];J[195395]=0;if((b|0)!=1){J[a>>2]=416464;return a|0}ba(Z()|0);B()}function r4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+336>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue; -break}}function n3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+568>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function m4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+356>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function d5(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>> -2]+184>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function c5(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+188>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function Xk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-32|0;xb=c;g=c+12|0;f=c+21|0;d=f;e=c+32|0;if(!((d|0)==(e|0)|(b|0)>=0)){H[d|0]=45;d=d+1|0;b=0-b|0}zw(g,d,e,b);Aw(a,f,J[c+12>>2]);xb=e}function P3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+ -4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+448>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function M3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+460>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function K4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+268>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function J4(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+272>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function G3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+484>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function E4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+288>>2]](f,b, -c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function C3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+500>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function Bs(a){var b=0,c=0,d=0;b=J[a>>2];if(b){c=b;d=J[a+4>>2];if((b|0)!=(d|0)){while(1){c=d-12|0;if(H[d-1|0]<0)Kb(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[a>>2]}J[a+4>>2]=b;Kb(c)}}function A8(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=1072693248;J[a+ -32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0}function yq(a){var b=0;b=J[a+72>>2];J[a+72>>2]=b-1|b;b=J[a>>2];if(b&8){J[a>>2]=b|32;return-1}J[a+4>>2]=0;J[a+8>>2]=0;b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;J[a+16>>2]=b+J[a+48>>2];return 0}function y3(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+516>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function p3(a,b,c, -d){a=a|0;b=b|0;c=+c;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+560>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function aF(a,b){var c=0,d=0;J[a+16>>2]=10;J[a+12>>2]=11;J[a+8>>2]=0;J[a>>2]=80;J[a+4>>2]=241;b=Ab[J[b+4>>2]](b,964)|0;if(!b){J[a+20>>2]=b;return 64}c=a,d=Nb(b,0,964),J[c+20>>2]=d;return 0}function Zj(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0;h=Pb(56);O[h+48>>3]=g;O[h+40>>3]=f;O[h+32>>3]=e;O[h+24>>3]=d;O[h+16>>3]=c; -O[h+8>>3]=b;J[h>>2]=391916;return fh(a,h)|0}function TY(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=(b|0)!=0&(c|0)!=0;if(d){Ab[J[J[a>>2]+12>>2]](a);H[a+32|0]=1;J[a+28>>2]=b;J[a+12>>2]=b;J[a+4>>2]=b;b=b+c|0;J[a+16>>2]=b;J[a+8>>2]=b}return d|0}function Se(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0;h=Pb(56);O[h+48>>3]=g;O[h+40>>3]=f;O[h+32>>3]=e;O[h+24>>3]=d;O[h+16>>3]=c;O[h+8>>3]=b;J[h>>2]=391936;return fh(a,h)|0}function Py(a,b,c,d){a:{if(!a)break a;b:switch(b+2|0){case 0:H[a|0]=c;return;case 1:I[a>> -1]=c;return;case 2:case 3:J[a>>2]=c;return;case 5:break b;default:break a}J[a>>2]=c;J[a+4>>2]=d}}function I7(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=32;J[c+8>>2]=35;J[a+8>>2]=J[a+8>>2]+32;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],c+8|0,4);Lb(J[a+4>>2],c+12|0,4);tl(a,b);xb=c+16|0}function GS(){var a=0,b=0;a:{J[195797]=0;J[195796]=770856;J[195796]=765696;J[195796]=765320;J[195395]=0;a=na(3650)|0;b=J[195395];J[195395]=0;if((b|0)!=1){J[195798]=a;break a}ba(Z()|0);B()}}function F5(a,b,c,d){a=a|0; -b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+4>>2];a=J[a+8>>2];if((e|0)!=(a|0))while(1){f=J[e>>2];Ab[J[J[f>>2]+72>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0))continue;break}}function wea(a,b){a=a|0;b=b|0;var c=0;if(!J[a+208>>2]){c=J[a+392>>2];J[c+20>>2]=b;J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(!b){J[c+4>>2]=1550;return}b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}}function oq(a,b,c,d,e,f,g,h,i){var j=0;j=xb-16|0;xb=j;df(j,b,c,d,e,f,g,h,i^-2147483648);d=J[j>>2];c=J[j+4>>2];b=J[j+12>>2];J[a+8>>2]=J[j+8>>2];J[a+12>>2]= -b;J[a>>2]=d;J[a+4>>2]=c;xb=j+16|0}function ed(a){var b=0;a:{b=J[a+36>>2];if(b){J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;J[a+36>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}return}ga(0)|0;_b();B()}function _ba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=Hg(a);if(!c)return 1;while(1){f=Ab[J[a+544>>2]](a,b,e,d)|0;if((f|0)==1){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)==1|0}function Zba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=Ye(a);if(!c)return 1;while(1){f=Ab[J[a+ -544>>2]](a,b,e,d)|0;if((f|0)==1){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)==1|0}function Rp(a,b,c,d){var e=0;e=xb-16|0;xb=e;J[e+12>>2]=d;d=Tf(e+8|0,e+12|0);J[195395]=0;a=Wm(a,b,c);b=J[195395];J[195395]=0;if((b|0)!=1){re(d);xb=e+16|0;return a}a=Z()|0;re(d);ba(a|0);B()}function xj(a,b){var c=0;a:{c=J[a+12>>2];if((c|0)==(J[a+8>>2]+(J[a+16>>2]<<3)|0)){a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=130;return}J[c>>2]=b;b=J[a+12>>2];J[b+4>>2]=2;J[a+12>>2]=b+8}}function sJ(a){a=a|0;var b=0,c=0;b=J[a+4>> -2];c=J[J[b+712>>2]+3080>>2];a:{if(!c)break a;b=be(J[J[b+96>>2]+4>>2],11010);if(!b)break a;b=Ab[J[c+8>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function mL(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+420>>2];a:{if((c|0)>0){d=J[a+424>>2];a=0;while(1){if(!fc(b,J[(a<<2)+d>>2]))break a;a=a+1|0;if((c|0)!=(a|0))continue;break}}a=0}return a|0}function co(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(!b)break a;d=J[a+4>>2];if(!d)break a;e=J[a+44>>2];if(!e)break a;f=b;b=e<<2;c=c<<2;Mb(d+40|0,f,b>>>0>>0?b:c);H[a+ -449|0]=0}}function Hd(a,b){var c=0;a:{c=J[a+12>>2];if((c|0)==(J[a+8>>2]+(J[a+16>>2]<<3)|0)){a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=130;return}J[c>>2]=b;b=J[a+12>>2];J[b+4>>2]=0;J[a+12>>2]=b+8}}function FF(a){var b=0,c=0;if(!a)return;b=J[a+224>>2];if(b){c=J[b>>2];if(c)Kb(c);J[b>>2]=0;if(J[b+72>>2]==8)Tg(b+4|0);Kb(b);J[a+224>>2]=0}Ab[J[a+20>>2]](J[a+28>>2],J[a+48>>2])|0;Kb(a)}function wf(a){a=a|0;var b=0,c=0,d=0;b=J[a>>2];d=J[a+4>>2];if((b|0)!=(d|0)){while(1){c=J[b>>2];if(c)Ab[J[J[c>>2]+4>>2]](c); -b=b+4|0;if((d|0)!=(b|0))continue;break}b=J[a>>2]}J[a+4>>2]=b}function uK(a){a=a|0;var b=0,c=0,d=0;c=xb-16|0;xb=c;d=sE(J[J[a>>2]+504>>2],c+12|0);b=a;a=J[c+12>>2];J[b+44>>2]=a;if(a){b=J[a>>2];if(!(!b|!J[b+96>>2]))J[b+88>>2]=a}xb=c+16|0;return d|0}function oma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!((b|0)==2353|b-2524>>>0<2|(b|0)==2964)){a=J[a+12>>2];J[c>>2]=b;J[d>>2]=0;e=(Ab[J[a+40>>2]](a,b,c,d,J[a+72>>2])|0)!=0}return e|0}function fc(a,b){var c=0,d=0;c=K[a|0];d=K[b|0];a:{if(!c|(c|0)!=(d|0))break a; -while(1){d=K[b+1|0];c=K[a+1|0];if(!c)break a;b=b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break}}return c-d|0}function cW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=J[a+84>>2];d=c+256|0;f=bh(e,0,d);d=f?f-e|0:d;c=c>>>0>d>>>0?d:c;Mb(b,e,c);b=e+d|0;J[a+84>>2]=b;J[a+8>>2]=b;J[a+4>>2]=c+e;return c|0}function am(a,b){var c=0,d=0;b=b<<2;d=J[b+775216>>2];while(1){a:{c=J[(b+J[a+116>>2]|0)+20>>2]!=(d|0);if(c)break a;a=J[a+20>>2];if(!a)break a;if((a|0)!=775296)continue}break}return c}function t1(a){a=a|0;var b= -0;b=J[a+4>>2];J[b+180>>2]=-21;J[b+184>>2]=0;J[b+196>>2]=21;J[b+200>>2]=0;J[b+188>>2]=0;J[b+192>>2]=0;Ab[J[J[J[a+12>>2]+56>>2]+8>>2]](J[a+52>>2],0,0);return 0}function lk(a,b){var c=0,d=0;d=J[a+4>>2];c=J[a+12>>2];c=(c|0)<0?(c|0)<(d|0)?d:c:d-c|0;if(!b)b=(P(c,12)|0)/10|0;J[a+28>>2]=b;J[a+24>>2]=(b-c|0)/2;J[a+20>>2]=J[a+8>>2]+(J[a+16>>2]/-2|0)}function El(a){var b=0,c=0;a:{b:{if(!a)break b;b=V(1E10/+(a|0)+.5);c=b<=2147483647;if(R(b)<2147483648)a=~~b;else a=-2147483648;if(!c)break b;if(b>=-2147483648)break a}a= -0}return a}function DT(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;g=xb-16|0;xb=g;J[g+8>>2]=624576549;J[g+12>>2]=1394948685;h=a;a=g+16|0;b=_g(h,b,c,d,e,f,g+8|0,a);xb=a;return b|0}function nQ(a,b){a=a|0;b=b|0;J[a>>2]=774300;J[a>>2]=774428;if(K[b+11|0]>>>7|0)b=J[b>>2];J[195395]=0;ca(4042,a+4|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)return a|0;ba(Z()|0);B()}function kl(a){a=a|0;var b=0;b=J[190059];J[a>>2]=b;J[J[b-12>>2]+a>>2]=J[190067];J[a+12>>2]=759360;J[a+8>>2]=J[190068];if(H[a+ -55|0]<0)Kb(J[a+44>>2]);dl(a+12|0);Be(a- -64|0);return a|0}function he(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b=b+4|0}J[a+32>>2]=b;return c}function Sb(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;while(1){e=(d<<3)+b|0;f=J[e>>2];if(!f)break a;if((a|0)==(f|0))return J[e+4>>2];d=d+1|0;if((d|0)!=(c|0))continue;break}}return 0}function Bq(a,b,c){var d=0,e=0,f=0;a:{if(c)while(1){e=c>>>1|0;d=(e<<2)+b|0;f=WC(a, -d);b:{if((f|0)<0){c=e;break b}if(!f)break a;b=d+4|0;c=(e^-1)+c|0}if(c)continue;break}d=0}return d}function nM(a,b){a=a|0;b=b|0;var c=0;J[a+116>>2]=b;c=J[a>>2];if(H[c+8|0]&1){Lg(c,b);qp(a);return 0}b=Ab[J[J[c+540>>2]+108>>2]](c,b,a+12|0)|0;if(!b)return 0;J[a+116>>2]=-1;return b|0}function _p(a){a=a|0;var b=0,c=0;b=J[a+8>>2];if(b){a=J[a+16>>2];c=J[a+4>>2];J[b+108>>2]=J[a>>2];J[b+112>>2]=c;J[b+124>>2]=J[a+16>>2];c=J[a+12>>2];J[b+116>>2]=J[a+8>>2];J[b+120>>2]=c}}function TJ(a,b){a=a|0;b=b|0;var c=0;c= -Lf(24608,b);a:{if(c)break a;c=0;if(!a)break a;a=J[a+4>>2];if(!a)break a;a=be(a,9005);if(!a)break a;c=Ab[J[J[a>>2]+32>>2]](a,b)|0}return c|0}function uR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=xb-16|0;xb=a;J[a+12>>2]=e;J[a+8>>2]=d-c;b=xb-16|0;xb=b;xb=b+16|0;xb=a+16|0;b=a+8|0;a=a+12|0;return J[(M[b>>2]>2]?b:a)>>2]}function sK(a){a=a|0;var b=0,c=0,d=0;d=xb-16|0;xb=d;b=J[a+4>>2];c=J[b+504>>2];a:{if(!J[b+84>>2]){c=c+84|0;b=0;break a}b=c;c=d+12|0;b=bs(b,c)}J[a+160>>2]=J[c>>2];xb=d+16|0;return b| -0}function ana(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b>>2];d=J[a>>2];if((c|0)!=(d|0))return(c>>>0>d>>>0?-1:1)|0;a=J[a+4>>2];b=J[b+4>>2];if(a>>>0>=b>>>0)a=a>>>0>b>>>0;else a=-1;return a|0}function PK(a,b){a=a|0;b=b|0;var c=0,d=0;b=J[a>>2];c=J[b+712>>2];if(!J[c+1188>>2])return 163;d=J[J[c+3084>>2]+4>>2];if(!d)return 7;return Ab[d|0](J[b+100>>2],a,J[c+20>>2],7,0,b)|0}function Eh(a){var b=0,c=0;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a=xb-16|0;xb=a;J[a+12>> -2]=(c<<2)+b;xb=a+16|0;return J[a+12>>2]}function dca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=Hg(a);if(!c)return 1;while(1){f=Ab[J[a+540>>2]](a,b,e,d)|0;if(f){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)!=0|0}function dV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=J[c+4>>2];c=J[c>>2];J[d>>2]=c;J[d+4>>2]=e;J[d+8>>2]=c;J[d+12>>2]=e;a=ww(a,d,b);J[a>>2]=760544;xb=d+16|0;return a|0}function cca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=Ye(a);if(!c)return 1;while(1){f=Ab[J[a+540>> -2]](a,b,e,d)|0;if(f){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)!=0|0}function z3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+512>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function yka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(a){a:{if(c&8){c=0;if(!J[a+20>>2])break a;J[a+4>>2]=65535;d=a,e=Qb(65535),J[d>>2]=e;break a}c=J[a+4>>2]}J[a+8>>2]=c}return a|0}function x5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2]; -if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+112>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function w5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+116>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function v5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+120>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function v3(a,b,c){a=a|0;b=b|0;c=c|0;var d= -0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+528>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function u5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+124>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function u3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+540>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function s5(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+128>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function r3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+552>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function o5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+144>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue; -break}}function o3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+564>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function m5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+152>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function l4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+360>>2]](e,b,c);d=d+ -4|0;if((a|0)!=(d|0))continue;break}}function l3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+576>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function kF(a){var b=0,c=0;if(a>>>0<=4294963199){b=vc(1,20);J[b+8>>2]=a;J[b+12>>2]=-1414746709;c=Qb(a+4096|0);J[b+4>>2]=c;if(!c){Kb(b);return 0}Nb(c,0,a);Nb(a+c|0,0,4096)}return b}function k4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2]; -Ab[J[J[e>>2]+364>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function k3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+580>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function j5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+164>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function j4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d| -0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+368>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function i4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+372>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function f4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+384>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function e4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0; -d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+388>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function d4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+392>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function c4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+396>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function b4(a,b,c){a= -a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+400>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function a4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+404>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function _3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+408>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue; -break}}function Z3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+412>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function Y3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+416>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function X3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+420>>2]](e,b,c);d=d+ -4|0;if((a|0)!=(d|0))continue;break}}function V3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+428>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function U3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+432>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function Jj(a){var b=0,c=0;b=J[194101];c=a+7&-8;a=b+c|0;a:{if(a>>>0<=b>>>0?c:0)break a;if(a>>>0>Bb()<<16>>>0)if(!(db(a| -0)|0))break a;J[194101]=a;return b}J[194954]=48;return-1}function I3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+476>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function H3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+480>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function F3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e= -J[d>>2];Ab[J[J[e>>2]+488>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function B4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+300>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function i9(a,b){a=a|0;b=b|0;var c=0;a:{if(J[a+24>>2]!=2)break a;c=J[a+20>>2];if((Ab[J[J[c>>2]+24>>2]](c)|0)!=2)break a;PA(J[a+20>>2],b,0);a=J[a+20>>2];Ab[J[J[a>>2]+16>>2]](a)}}function Vha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-1;a:{if((b|0)==-1)break a; -if(!(Ab[J[J[a>>2]+20>>2]](a,b,c)|0))break a;d=b;if(!c)break a;d=Ab[J[J[a>>2]+24>>2]](a)|0}return d|0}function Tw(a,b){var c=0,d=0;c=J[a+4>>2];a:{while(1){if((b|0)==(c|0))break a;J[195395]=0;c=c-4|0;d=J[195395];J[195395]=0;if((d|0)!=1)continue;break}ga(0)|0;_b();B()}J[a+4>>2]=b}function Saa(a){a=a|0;var b=0,c=0,d=0;b=xb-224|0;xb=b;c=b+16|0;Ab[J[J[a>>2]+12>>2]](a,c);d=J[J[a+12>>2]+628>>2];J[b>>2]=c;Ob(d,281532,281665,b);gd(J[J[a+12>>2]+584>>2]+4|0,1);B()}function S5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0, -e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+24>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function QE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+4>>2];a=(f|0)!=0&J[a+44>>2]!=0;if(a){b=(b<<2)+f|0;H[c|0]=K[b+42|0];H[d|0]=K[b+41|0];H[e|0]=K[b+40|0]}return a|0}function NN(a,b){a=a|0;b=b|0;J[a+16>>2]=b;b=K[b+6|0]|K[b+7|0]<<8|(K[b+8|0]<<16|K[b+9|0]<<24);J[a+28>>2]=0;J[a+32>>2]=0;J[a+24>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);return 0}function MR(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[(a<<2)+764288>>2];else a=0;J[d>>2]=a;d=d+4|0;b=b+4|0;continue}break}return c|0}function G5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+68>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function D5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+76>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue; -break}}function u8(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+64>>2]=391152;J[a>>2]=391112;J[a+12>>2]=391512;J[a+8>>2]=391132;if(H[a+55|0]<0)Kb(J[a+44>>2]);Uf(a+12|0);Be(a- -64|0);return a|0}function K3(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+468>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function I9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];if((b|0)==317){J[d>>2]=L[c>>1];J[a+48>>2]=J[a+48>>2]|4;J[a+12>>2]=J[a+12>>2]|8;return 1}return Ab[J[d+ -48>>2]](a,b,c)|0}function Hja(a){a=a|0;var b=0;if(a){b=J[a>>2];a:{if(!b)break a;if(!K[a+8|0]){J[195395]=0;ea(1140,b|0);b=J[195395];J[195395]=0;if((b|0)!=1)break a;ga(0)|0;_b();B()}Kb(b)}Kb(a)}}function Baa(a,b){a=a|0;b=b|0;b=Ab[J[J[a+584>>2]+904>>2]](a,b)|0;if(b>>>0>2]){a=L[a+206>>1]<<3;if(b>>>0<0-a>>>0)b=((a+b|0)-1>>>0)/(a>>>0)|0;else b=0;b=P(b,a)}return b|0}function nh(a,b){var c=0;a:{if(!a|!b)break a;c=J[a+4>>2];if(!c)break a;a=I[a+2>>1];if((a|0)<=0)break a;a=(a<<3)+c|0;while(1){po(c,b); -c=c+8|0;if(a>>>0>c>>>0)continue;break}}}function bS(){var a=0;a:{J[195855]=0;J[195854]=770856;J[195854]=765696;J[195395]=0;_(3762,783424)|0;a=J[195395];J[195395]=0;if((a|0)!=1){J[195854]=768256;break a}ba(Z()|0);B()}}function _R(){var a=0;a:{J[195859]=0;J[195858]=770856;J[195858]=765696;J[195395]=0;_(3762,783440)|0;a=J[195395];J[195395]=0;if((a|0)!=1){J[195858]=768412;break a}ba(Z()|0);B()}}function Q5(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>> -2]+32>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function O5(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=J[a+4>>2];a=J[a+8>>2];if((d|0)!=(a|0))while(1){e=J[d>>2];Ab[J[J[e>>2]+36>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0))continue;break}}function Id(a,b,c){var d=0;d=xb-16|0;xb=d;J[195395]=0;J[d+12>>2]=b;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[c>>2];b=J[195395];J[195395]=0;if((b|0)!=1){xb=d+16|0;return a}ga(0)|0;_b();B()}function Hl(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+672>>2];b:{if(c){c=Ab[c|0](a,b)|0;break b}c= -Qb(b)}if(!c){if(K[a+206|0]&16)break a;gc(a,251456);B()}d=Nb(c,0,b)}return d}function Gh(a){var b=0,c=0;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a=xb-16|0;xb=a;J[a+12>>2]=b+c;xb=a+16|0;return J[a+12>>2]}function vL(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[b+552>>2];a:{if(!c)break a;b=be(J[J[b+96>>2]+4>>2],10580);if(!b)break a;b=Ab[J[c+4>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function nF(a){a=a|0;var b=0,c=0,d=0;a:{b:{if(a){b=ac(a);if((b|0)==-1)break a; -c=Qb(b+1|0);if(!c)break a;a=Mb(c,a,b);break b}a=Qb(1);if(!a)break a}d=a;H[a+b|0]=0}return d|0}function eu(a,b,c,d){var e=0;e=xb-112|0;xb=e;J[a+168>>2]=J[a+168>>2]+1;el(e,100,c,d);b=Ab[J[a+156>>2]](a,b,e,J[a+160>>2])|0;J[a+168>>2]=J[a+168>>2]-1;xb=e+112|0;return(b|0)!=0}function b6(a,b){a=a|0;b=b|0;var c=0;c=18;a:{if(J[b+72>>2]!=1869968492)break a;c=J[a>>2];a=a+20|0;c=tD(c,I[b+110>>1],I[b+108>>1],a);if(c)break a;pD(b+108|0,a);c=0}return c|0}function O8(a){a=a|0;var b=0,c=0;b=xb-16|0;xb=b;c=J[a+4>> -2];J[b+12>>2]=64;Ab[J[J[c>>2]+308>>2]](c,b+12|0)|0;a=J[a+4>>2];J[b+8>>2]=64;Ab[J[J[a>>2]+312>>2]](a,b+8|0)|0;xb=b+16|0}function LK(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[b+320>>2];a:{if(!c)break a;b=be(J[J[b+96>>2]+4>>2],10070);if(!b)break a;b=Ab[J[c+4>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function ky(a){var b=0,c=0;b=J[a>>2];if(b){c=J[b+12>>2];a:{if((c|0)==J[b+16>>2]){b=Ab[J[J[b>>2]+36>>2]](b)|0;break a}b=J[c>>2]}if((b|0)!=-1)return!J[a>>2];J[a>>2]=0}return 1}function haa(a,b){a=a|0;b=b|0;J[a+ -556>>2]=1738;J[a+548>>2]=1738;J[a+540>>2]=1738;J[a+560>>2]=1739;J[a+552>>2]=1739;J[a+544>>2]=1740;J[a+536>>2]=1741;J[a+532>>2]=1742;return 1}function TA(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=6;a:{if(J[b+72>>2]!=J[a+16>>2])break a;if(c)nh(b+108|0,c);e=0;if(!d)break a;me(b+108|0,J[d>>2],J[d+4>>2])}return e|0}function zka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!b)return 0;a=J[b+4>>2];e=J[b+12>>2];a=a>>>0>>0?a-e|0:d;Mb(c,e+J[b>>2]|0,a);J[b+12>>2]=a+J[b+12>>2];return a|0}function my(a){var b= -0,c=0;b=J[a>>2];if(b){c=J[b+12>>2];a:{if((c|0)==J[b+16>>2]){b=Ab[J[J[b>>2]+36>>2]](b)|0;break a}b=K[c|0]}if((b|0)!=-1)return!J[a>>2];J[a>>2]=0}return 1}function aC(a,b){var c=0;if(!a)return;if(!b)return;a=J[a>>2];c=J[b+12>>2];if(c)Ab[J[a+8>>2]](a,c);J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}function Uea(a,b){a=a|0;b=b|0;var c=0;c=J[a+396>>2];if(b){b=J[a>>2];J[b+20>>2]=3;Ab[J[b>>2]](a)}b=J[a+32>>2];J[c+52>>2]=0;J[c+56>>2]=0;J[c+48>>2]=b;J[c+60>>2]=J[a+272>>2]<<1}function Dda(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(a){Kpa(c,0,b,0);if(zb){Wb(a,252035);return 0}d=J[a+204>>2];J[a+204>>2]=d|1048576;e=Zd(a,P(b,c));J[a+204>>2]=d}return e|0}function m8(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+64>>2]=391152;J[a>>2]=391112;J[a+12>>2]=391512;J[a+8>>2]=391132;if(H[a+55|0]<0)Kb(J[a+44>>2]);Uf(a+12|0);Be(a- -64|0);Kb(a)}function jda(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!a)break a;J[a+180>>2]=b;J[a+444>>2]=d?d:1572;J[a+172>>2]=c?c:1573;if(!J[a+176>>2])break a;J[a+176>>2]=0;Wb(a,252170)}} -function Wu(a){var b=0;b=J[a+56>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)!=1){J[a+56>>2]=0;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;return}ga(0)|0;_b();B()}function LW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[c>>2]=0;d=6;a:{if(!b|!a)break a;b=b-1|0;if(b>>>0>=M[a+408>>2])break a;J[c>>2]=J[(J[a+416>>2]+(b<<4)|0)+4>>2];d=0}return d|0}function vO(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+16>>2]+6|0;a=J[b>>2];while(1){a=a+1|0;if(a>>>0>255){J[b>>2]=0;return 0}c=K[a+d|0];if(!c)continue;break}J[b>>2]= -a;return c|0}function mna(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=1;a:{if(!K[a|0]|J[a+8>>2]!=(b|0)|J[a+12>>2]!=(c|0))break a;if(c)if(cd(d,J[a+16>>2],c<<2))break a;e=0}return e|0}function Zd(a,b){var c=0;a:{if(!a|!b)break a;c=J[a+672>>2];b:{if(c){c=Ab[c|0](a,b)|0;break b}c=Qb(b)}if(c)break a;c=0;if(K[a+206|0]&16)break a;gc(a,251456);B()}return c}function VR(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;if(Ww()>>>0>>0){Ve(a);B()}Vw(c+8|0,a+16|0,b);b=J[c+8>>2];J[a+4>>2]=b;J[a>>2]=b;J[a+8>>2]=b+(J[c+ -12>>2]<<2);xb=c+16|0}function Up(a,b){var c=0,d=0;c=xb-16|0;xb=c;a:{if(!(K[b+11|0]>>>7|0)){J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;break a}Kp(a,J[b>>2],J[b+4>>2])}xb=c+16|0}function KR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{while(1){if((c|0)==(d|0))break a;a=J[c>>2];if(!(a>>>0>127|!(J[(a<<2)+764288>>2]&b))){c=c+4|0;continue}break}d=c}return d|0}function u7(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=59;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],b+8|0,4); -Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function t7(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=60;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function s7(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=61;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function r7(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=65;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>> -2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function q7(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=66;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function p7(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=68;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function Y6(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=28;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]=J[a+12>>2]+ -1;Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function Vka(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;$B(a,b,c);a=Qb(16);J[a>>2]=J[c>>2];J[a+4>>2]=J[c+4>>2];J[a+8>>2]=J[c+8>>2];J[a+12>>2]=J[c+12>>2];xb=c+16|0;return a|0}function U6(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=52;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]=J[a+12>>2]+1;Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function L7(a){a=a|0;var b=0;b=xb-16|0;xb=b;J[b+12>>2]=8;J[b+8>>2]=33;J[a+8>>2]=J[a+8>>2]+8;J[a+12>>2]= -J[a+12>>2]+1;Lb(J[a+4>>2],b+8|0,4);Lb(J[a+4>>2],b+12|0,4);xb=b+16|0}function zs(a){a=a|0;var b=0;J[a>>2]=234064;b=J[a+24>>2];if(!(K[a+28|0]|!b))Kb(b);J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=8;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;return a|0}function yM(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=J[a+24>>2];c=bc(b,c);a:{if(c)break a;c=Tc(b,d);if(c)break a;J[a+196>>2]=J[b+32>>2];J[a+200>>2]=J[b+36>>2];c=0}return c|0}function y5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+108>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function y4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+312>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function x4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+316>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function w4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+320>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function q4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+340>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function p5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+140>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function p4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+344>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function o4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+348>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function n5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+148>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function n4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+352>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function lja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;a=J[a+4>>2];if(a){J[d>>2]=c;c=xb-16|0;xb=c;J[c+12>>2]=d;a=Ry(a,b,d);xb=c+16|0}else a=-1;xb=d+16|0;return a|0}function l5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+156>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function k5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+160>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function h5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+168>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function g5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+172>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function f5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+176>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function e5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+180>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function b5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+192>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function Y5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+100>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function W4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+220>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function W3(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+424>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function V4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+224>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function U4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+228>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function T4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+232>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function T3(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+436>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function S4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+236>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function S3(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+440>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function R4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+240>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function R3(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+444>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function P4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+248>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function O4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+252>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function O3(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+452>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function M4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+260>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function LR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){a:{if((c|0)!=(d|0)){a=J[c>>2];if(a>>>0>127| -!(J[(a<<2)+764288>>2]&b))break a}else c=d;return c|0}c=c+4|0;continue}}function L4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+264>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function I4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+276>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function H4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+280>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function G4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+284>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function C4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+296>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function B3(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+504>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function Ae(a,b,c){var d=0,e=0,f=0;J[c>>2]=0;e=J[a+120>>2];d=J[a+116>>2];f=J[d+12>>2];d=J[d+28>>2];if(!f)return Ab[d|0](a,e,b,c,0)|0;return Ab[d|0](a,e,b,c,J[f+8>>2])|0}function A4(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+304>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function naa(a){a=a|0;var b=0,c=0,d=0;b=xb-224|0;xb=b;c=b+16|0;Ab[J[J[a>>2]+12>>2]](a,c);d=J[J[a+ -828>>2]+628>>2];J[b>>2]=c;Ob(d,268699,269046,b);Ll(a);gd(a+624|0,1);B()}function Qv(a,b){a=a|0;b=b|0;J[a+16>>2]=b;b=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);H[a+24|0]=0;J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);return 0}function K5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];Ab[J[J[d>>2]+52>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function H5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>> -2];Ab[J[J[d>>2]+64>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function Gk(a){a=a|0;var b=0;a:{if(!(!a|(a|0)==169776)){b=J[a+24>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;Kb(a)}return}ga(0)|0;_b();B()}function Eka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a=227736;a:{if((c&3)==1)break a;a=227743;if(c&4)break a;d=c>>>3&1;a=d?227733:0}c=0;if(!(!b|!d))c=Ni(b,a);return c|0}function C5(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a=J[a+8>>2];if((c|0)!=(a|0))while(1){d=J[c>>2]; -Ab[J[J[d>>2]+80>>2]](d,b);c=c+4|0;if((a|0)!=(c|0))continue;break}}function P8(a){a=a|0;var b=0,c=0;c=xb-16|0;xb=c;b=J[a+4>>2];J[c+12>>2]=4;Ab[J[J[b>>2]+312>>2]](b,c+12|0)|0;b=J[a+4>>2];Ab[J[J[b>>2]+344>>2]](b)|0;H[a+64|0]=0;xb=c+16|0}function VN(a,b){a=a|0;b=b|0;var c=0;if(!(!K[a+24|0]|J[a+28>>2]!=J[b>>2])){Ov(a);if(!K[a+24|0])return 0;c=J[a+32>>2];J[b>>2]=J[a+28>>2];return c|0}return Pv(a,b,1)|0}function pJ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!a)return 37;d=b?d:d|3;if(!(d&1?0:b))return fm(a,0,c, -d)|0;if(J[b>>2]==J[a+4>>2])a=fm(a,b,c,d);else a=35;return a|0}function hO(a,b){a=a|0;b=b|0;a=J[a+16>>2];b=b-(K[a+6|0]<<8|K[a+7|0])|0;if(b>>>0<(K[a+9|0]|K[a+8|0]<<8)>>>0){a=a+(b<<1)|0;a=K[a+10|0]<<8|K[a+11|0]}else a=0;return a|0}function v8(a){a=a|0;var b=0;J[a+56>>2]=391152;b=a-8|0;J[b>>2]=391112;J[a+4>>2]=391512;J[a>>2]=391132;if(H[a+47|0]<0)Kb(J[a+36>>2]);Uf(a+4|0);Be(a+56|0);return b|0}function YN(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=10;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>> -2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function TN(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=12;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function PN(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=13;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function D2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if(!d){e=1;if(M[a+4>>2]>>0)break a}e=J[a+12>>2];if(J[a+8>>2]!= -(b|0))zg(e,b,0);e=Gc(c,1,d,e)}return e|0}function xA(a){a=a|0;J[a>>2]=415408;H[a+35|0]=0;J[a+8>>2]=0;J[a+12>>2]=1077018624;J[a+4>>2]=416388;J[a>>2]=416328;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;return a|0}function nl(a){a=a|0;var b=0;a:{b=J[a+156>>2];if(b){if(Kf(b))break a;H[(J[J[a>>2]-12>>2]+a|0)+33|0]=1;return}a=J[a+208>>2];if(!a)break a;Ab[J[J[a>>2]+48>>2]](a)}}function nC(a,b){a=a|0;b=b|0;O[a>>3]=O[b>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+ -40>>3]=O[b+40>>3];return a|0}function bO(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=8;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function ZJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=1;e=b;c=J[b>>2]+1|0;b=J[a+16>>2];if(c>>>0>b>>>0){b=c-b|0;a=b>>>0>2];d=a?b+1|0:0;b=a?c:0}J[e>>2]=b;return d|0}function Ip(a,b){a=a|0;b=b|0;var c=0;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(c>>>0<=b>>>0){qn(a);B()}if(K[a+11|0]>>>7|0)a=J[a>>2]; -return(b<<2)+a|0}function n_(a){a=a|0;var b=0;J[a>>2]=416584;b=J[a+8>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}b=J[a+12>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+12>>2]=0}return a|0}function fba(a,b){a=a|0;b=b|0;b=xb-16|0;xb=b;if(Nn(a)){J[a+556>>2]=1682;J[a+548>>2]=1682;J[a+540>>2]=1682;J[b>>2]=11;a=xc(a,65536,b)}else a=0;xb=b+16|0;return a|0}function bo(a,b){var c=0,d=0;if(!((b|0)<0|J[J[a+20>>2]+20>>2]<(b|0))){J[a+4>>2]=b;c=a,d=fd(J[a+20>>2],0)+P(J[J[a+20>>2]+52>>2],b)|0,J[c+16>>2]=d}return J[a+16>> -2]}function Wha(a,b){a=a|0;b=b|0;J[a+2748>>2]=b;J[a+2740>>2]=J[b+28>>2];J[a+4>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+8>>2]=J[b+16>>2];J[a+16>>2]=J[b+20>>2];return 0}function zK(a,b){a=a|0;b=b|0;var c=0;c=J[b+96>>2];if(!((c|0)<0|J[a+300>>2]<=(c|0))){a=J[a+304>>2]+P(c,252)|0;b=Ab[J[b+40>>2]](b,0)|0;J[a+180>>2]=b;J[a+208>>2]=b}}function hba(a,b){a=a|0;b=b|0;b=xb-16|0;xb=b;if(Nn(a)){J[a+556>>2]=1682;J[a+548>>2]=1682;J[a+540>>2]=1682;J[b>>2]=7;a=xc(a,65536,b)}else a=0;xb=b+16|0;return a|0}function dq(a, -b,c,d){var e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;J[e+12>>2]=c;f=b;b=c-b|0;g=e,h=qc(d,f,b)+b|0,J[g+8>>2]=h;J[a>>2]=J[e+12>>2];J[a+4>>2]=J[e+8>>2];xb=e+16|0}function Oo(a){var b=0;a:{if(!(!a|(a|0)==169776)){b=J[a+44>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;Kb(a)}return}ga(0)|0;_b();B()}function BP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+12>>2]=J[c>>2];a=Ab[J[J[a>>2]+16>>2]](a,b,d+12|0)|0;if(a)J[c>>2]=J[d+12>>2];xb=d+16|0;return a|0}function tw(a,b,c,d){var e=0,f= -0;e=J[a+4>>2];f=J[a>>2];a=0;a:{if(!c)break a;a=e>>8;if(!(e&1))break a;a=J[a+J[c>>2]>>2]}Ab[J[J[f>>2]+28>>2]](f,b,a+c|0,e&2?d:2)}function Tga(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;Ab[J[J[a+472>>2]+12>>2]](a,b,J[c>>2],(J[f>>2]<<2)+e|0);J[f>>2]=J[f>>2]+1;J[c>>2]=J[c>>2]+1}function Rc(a){var b=0,c=0;b=xb-16|0;xb=b;J[195395]=0;c=J[195395];J[195395]=0;if((c|0)!=1){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;xb=b+16|0;return a}ga(0)|0;_b();B()}function Mx(a){a=a|0;var b=0,c=0;b=pg(8);J[195395]= -0;a=ca(3686,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){xa(a|0,774592,3687);B()}a=Z()|0;Wk(b);ba(a|0);B()}function Lf(a,b){var c=0;a:{if(!a|!b)break a;c=J[a>>2];if(!c)break a;while(1){if(!fc(c,b))return J[a+4>>2];c=J[a+8>>2];a=a+8|0;if(c)continue;break}}return 0}function z4(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+308>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function tQ(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[b+488>>2];J[a+24>>2]=J[b+420>> -2];J[a+28>>2]=J[b+424>>2];J[a+20>>2]=J[c+20>>2];J[a+16>>2]=J[c+24>>2];return 0}function r5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+132>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function qf(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=K[a+62|0];c=J[a+64>>2];b=(e=J[a+72>>2],f=c,g=hf(a),g?e:f);J[a+64>>2]=b;if(d){J[a+72>>2]=b;H[a+62|0]=1}return b-c|0}function q5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+ -136>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function n8(a){a=a|0;var b=0;J[a+56>>2]=391152;b=a-8|0;J[b>>2]=391112;J[a+4>>2]=391512;J[a>>2]=391132;if(H[a+47|0]<0)Kb(J[a+36>>2]);Uf(a+4|0);Be(a+56|0);Kb(b)}function iQ(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[b+488>>2];J[a+24>>2]=J[b+420>>2];J[a+28>>2]=J[b+424>>2];J[a+20>>2]=J[c+20>>2];J[a+16>>2]=J[c+28>>2];return 0}function ge(a,b){var c=0;c=J[a>>2];J[a>>2]=b;a:{if(c){a=J[a+4>>2];J[195395]=0;ea(a|0,c|0);a=J[195395];J[195395]=0;if((a|0)==1)break a}return}ga(0)| -0;_b();B()}function cK(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];b=J[c+132>>2];Lg(c,0);c=L[b+80>>1];J[a+24>>2]=c<<6;J[a+28>>2]=c-L[b+96>>1]<<6;J[a+36>>2]=L[b+102>>1]<<6;return 0}function bc(a,b){var c=0,d=0;d=J[a+20>>2];a:{b:{if(d){c=85;if(!(Ab[d|0](a,b,0,0)|0))break b;break a}c=85;if(M[a+4>>2]>>0)break a}J[a+8>>2]=b;c=0}return c}function aO(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a>>2];c=J[d+140>>2];Lg(d,b);J[a+24>>2]=J[c+40>>2]<<6;J[a+28>>2]=0-(J[c+44>>2]<<6);J[a+36>>2]=L[c+4>>1]<<6;return 0}function a5(a){a= -a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+196>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function _4(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+204>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function Z4(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+208>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function Y4(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a= -J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+212>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function X5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+104>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function X4(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+216>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function Wi(a,b){a:{if(L[a+1148>>1])break a;if(Jd(a))break a;return 0}H[b|0]= -K[J[a+1152>>2]];J[a+1152>>2]=J[a+1152>>2]+1;I[a+1148>>1]=L[a+1148>>1]-1;return 1}function WC(a,b){a=a|0;b=b|0;var c=0,d=0;a=J[a>>2];c=J[a>>2];b=J[b>>2];d=J[b>>2];if((c|0)!=(d|0))return c-d|0;a=J[a+8>>2];if(!a)return 0;return J[b+8>>2]-a|0}function Rd(a,b){a=a|0;b=b|0;if(b){O[a>>3]=O[b>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3]}}function J3(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>> -2]+472>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function Fc(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;d=J[a+204>>2];if(!(K[a+351|0]&32?(d&768)!=768:!(d&2048)))break a;e=a,f=Ad(J[a+384>>2],b,c),J[e+384>>2]=f}}function E3(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+492>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function D4(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+292>>2]](c);b=b+4|0;if((a| -0)!=(b|0))continue;break}}function D3(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+496>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function $4(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+200>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function vt(a){var b=0;a:{if(!(!a|(a|0)==169776)){b=J[a>>2];J[195395]=0;ea(583,b|0);b=J[195395];J[195395]=0;if((b|0)==1)break a;Kb(a)}return}ga(0)|0;_b();B()}function vha(a){a= -a|0;var b=0;b=J[a+456>>2];J[b+24>>2]=1;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=1359;Ab[J[J[a>>2]+16>>2]](a);Ab[J[J[a+460>>2]>>2]](a);J[a+160>>2]=0}function vF(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+24>>2]=b;J[a+12>>2]=J[c>>2];J[a+16>>2]=J[d>>2];b=J[e>>2];H[a+28|0]=f;J[a+20>>2]=b;J[a+8>>2]=0}function vC(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]<=b+3>>>0){J[a+32>>2]=b;return 0}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[a+32>>2]=b+4;return c}function rpa(a,b,c,d){a=a|0;b=b|0;c=c|0;d= -d|0;var e=0;a=J[b>>2];d=J[a+28>>2];b=J[b+4>>2];e=J[a+32>>2];if(!e){Ab[d|0](a,b,c,0);return}Ab[d|0](a,b,c,J[e+16>>2])}function pg(a){var b=0,c=0;J[195395]=0;b=a+27&-4;a=_(4059,b|0)|0;c=J[195395];J[195395]=0;a:{if((c|0)!=1){if(!a)break a;return Nb(a,0,b)+24|0}ga(0)|0}_b();B()}function pU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;J[e+12>>2]=b;J[e+8>>2]=d;b=Tf(e+4|0,e+12|0);a=Oy(a,c,J[e+8>>2]);re(b);xb=e+16|0;return a|0}function _9(a){a=a|0;var b=0,c=0;sC(a);b=J[a+584>>2];c=J[b+116>>2]; -if(c){Kb(c);b=J[a+584>>2]}c=J[b+144>>2];if(c){Kb(c);b=J[a+584>>2]}Kb(b);J[a+584>>2]=0;_i(a)}function Yd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=O[b>>3];e=O[c>>3];O[b>>3]=O[a+32>>3]+(d*O[a>>3]+e*O[a+16>>3]);O[c>>3]=O[a+40>>3]+(d*O[a+8>>3]+e*O[a+24>>3])}function V5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+12>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function Sp(a){var b=0,c=0;J[195395]=0;c=na(3765)|0;b=J[195395];J[195395]=0;if((b|0)!=1){b=a;a= -J[c>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;return}ga(0)|0;_b();B()}function R5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+28>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function L5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+48>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function J5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+56>>2]](c);b=b+4|0;if((a| -0)!=(b|0))continue;break}}function I5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+60>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function B5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+84>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function k$(a,b){a=a|0;b=b|0;var c=0;if(H[b+87|0]>=0){b=b+76|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}rf(a,J[b+76>>2],J[b+80>>2])}function j$(a, -b){a=a|0;b=b|0;var c=0;if(H[b+83|0]>=0){b=b+72|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}rf(a,J[b+72>>2],J[b+76>>2])}function bY(a,b){a=a|0;b=b|0;var c=0;if(H[b+23|0]>=0){b=b+12|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}rf(a,J[b+12>>2],J[b+16>>2])}function W5(a){a=a|0;var b=0,c=0;b=J[a+4>>2];a=J[a+8>>2];if((b|0)!=(a|0))while(1){c=J[b>>2];Ab[J[J[c>>2]+8>>2]](c);b=b+4|0;if((a|0)!=(b|0))continue;break}}function QQ(a){a=a|0;if(K[781972])return J[195492]; -if(!K[783096])H[783096]=1;bd(783072,228071);bd(783084,228063);H[781972]=1;J[195492]=783072;return 783072}function NQ(a){a=a|0;if(K[781980])return J[195494];if(!K[783128])H[783128]=1;ad(783104,770752);ad(783116,770764);H[781980]=1;J[195494]=783104;return 783104}function L_(a,b){a=a|0;b=b|0;var c=0;if(H[b+35|0]>=0){b=b+24|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}rf(a,J[b+24>>2],J[b+28>>2])}function LU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=0;while(1){if((b|0)!=(c|0)){a=J[b>> -2]+(a<<4)|0;d=a&-268435456;a=(d|d>>>24)^a;b=b+4|0;continue}break}return a|0}function IR(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[Em()+(J[b>>2]<<2)>>2];J[b>>2]=a;b=b+4|0;continue}break}return c|0}function GR(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[Dm()+(J[b>>2]<<2)>>2];J[b>>2]=a;b=b+4|0;continue}break}return c|0}function EA(a,b){a=a|0;b=b|0;var c=0;if(H[b+31|0]>=0){b=b+20|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]= -J[b+8>>2];return}rf(a,J[b+20>>2],J[b+24>>2])}function DA(a,b){a=a|0;b=b|0;var c=0;if(H[b+27|0]>=0){b=b+16|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}rf(a,J[b+16>>2],J[b+20>>2])}function Cba(a,b){a=a|0;b=b|0;J[a+556>>2]=1663;J[a+548>>2]=1663;J[a+540>>2]=1663;J[a+568>>2]=1664;J[a+560>>2]=1665;J[a+552>>2]=1665;J[a+544>>2]=1665;return 1}function wx(a){var b=0,c=0;b=xb-16|0;xb=b;c=b+12|0;J[c>>2]=a;J[195395]=0;ea(3758,c|0);a=J[195395];J[195395]=0;if((a|0)!=1){xb=b+16|0;return}ga(0)| -0;_b();B()}function voa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=0;a:{if(!Ak(a,1986098019,c))break a;if(!Ak(a,1986294627,c+4|0))break a;b=Ak(a,1986815856,c+8|0)}return b|0}function hN(a,b){a=a|0;b=b|0;var c=0;c=Ab[J[a+516>>2]](a,1668112752,b,a+512|0)|0;if(!c){c=Ne(b,J[a+512>>2],a+508|0);if(!c)return 0;J[a+512>>2]=0}return c|0}function PU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=0;while(1){if((b|0)!=(c|0)){a=H[b|0]+(a<<4)|0;d=a&-268435456;a=(d|d>>>24)^a;b=b+1|0;continue}break}return a|0}function mT(a){a=a|0;var b= -0,c=0;if(a){c=J[a>>2];b=J[a+108>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+108>>2]=0;b=J[a+116>>2];if(b)Ab[J[c+8>>2]](c,b);J[a+116>>2]=0}}function aP(a){a=a|0;var b=0;if(a){J[a+412>>2]=0;J[a+4>>2]=0;J[a+1960>>2]=0;J[a+1444>>2]=0;J[a+928>>2]=0;J[a+208>>2]=0;b=J[a>>2];if(a)Ab[J[b+8>>2]](b,a)}}function vc(a,b){var c=0,d=0;a:{if(!a)break a;c=Kpa(a,0,b,0);d=zb;if((a|b)>>>0<65536)break a;c=d?-1:c}a=Qb(c);if(!(!a|!(K[a-4|0]&3)))Nb(a,0,c);return a}function uk(a){var b=0,c=0;b=pg(8);J[195395]=0;a=ca(1070,b|0,a|0)|0; -c=J[195395];J[195395]=0;if((c|0)!=1){xa(a|0,774508,1071);B()}a=Z()|0;Wk(b);ba(a|0);B()}function hC(a){a=a|0;J[a+64>>2]=391152;J[a>>2]=391112;J[a+12>>2]=391512;J[a+8>>2]=391132;if(H[a+55|0]<0)Kb(J[a+44>>2]);Uf(a+12|0);Be(a- -64|0);return a|0}function Wf(a){var b=0,c=0;b=a*a;c=b*a;return Q(c*(b*b)*(b*2.718311493989822E-6+-1.9839334836096632E-4)+(c*(b*.008333329385889463+-.16666666641626524)+a))}function Kq(a){var b=0,c=0;b=pg(8);J[195395]=0;a=ca(3141,b|0,a|0)|0;c=J[195395];J[195395]=0;if((c|0)!=1){xa(a| -0,774560,1071);B()}a=Z()|0;Wk(b);ba(a|0);B()}function DI(a,b){var c=0,d=0,e=0;c=J[a+116>>2];d=J[c+40>>2];e=J[a+120>>2];c=J[c+12>>2];if(!c)return Ab[d|0](a,e,b,0)|0;return Ab[d|0](a,e,b,J[c+20>>2])|0}function $P(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=d+8|0;Ab[J[J[a>>2]+12>>2]](e,a,b);xb=d+16|0;return J[e>>2]==J[c>>2]&J[e+4>>2]==J[c+4>>2]}function mi(a,b){var c=0;c=J[a+28>>2];if(J[a+16>>2]){a=Ab[J[a+12>>2]](c,b)|0;return a}a=Ab[J[a+36>>2]](c,b)|0;b=a;a=(a|0)==-1;b=a?-1:b;zb=a?-1:0;return b} -function lQ(a,b){a=a|0;b=b|0;J[a>>2]=774300;J[a>>2]=774428;J[195395]=0;ca(4042,a+4|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)return a|0;ba(Z()|0);B()}function ce(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(!a)break a;c=J[a+92>>2];if(!c)break a;b=Ab[J[J[c+12>>2]+12>>2]](c,b)|0;d=b>>>0>2]?b:0}return d|0}function ZD(a,b,c){var d=0;d=8;a:{if(c>>>0>8)break a;d=c;if(d)break a;return-1}if(b>>>0<=7)a=cd(a+b|0,b+255376|0,b+d>>>0>8?8-b|0:d);else a=-1;return a}function Qf(a,b,c){var d=0,e=0,f=0;J[c>>2]=0; -d=J[a+116>>2];e=J[d+28>>2];f=J[a+120>>2];d=J[d+12>>2];if(d)d=J[d+8>>2];else d=0;return Ab[e|0](a,f,b,c,d)|0}function yc(a,b,c,d){var e=0;e=xb-16|0;xb=e;J[e+12>>2]=d;d=J[193929];if(d)Ab[d|0](b,c,J[e+12>>2]);d=J[194312];if(d)Ab[d|0](a,b,c,J[e+12>>2]);xb=e+16|0}function yR(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=H[b|0];if((a|0)>=0)a=J[Dm()+(H[b|0]<<2)>>2];H[b|0]=a;b=b+1|0;continue}break}return c|0}function maa(a){a=a|0;var b=0,c=0;b=xb-224|0;xb=b;c=b+16|0;Ab[J[J[a>>2]+12>>2]](a,c);a=J[J[a+ -828>>2]+628>>2];J[b>>2]=c;yc(a,268699,269046,b);xb=b+224|0}function jr(a,b,c){var d=0;a:{if(c>>>0<2)break a;while(1){d=K[b|0];if(!d)break a;H[a|0]=d;a=a+1|0;b=b+1|0;c=c-1|0;if(c>>>0>1)continue;break}}H[a|0]=0}function Ob(a,b,c,d){var e=0;e=xb-16|0;xb=e;J[e+12>>2]=d;d=J[193930];if(d)Ab[d|0](b,c,J[e+12>>2]);d=J[194310];if(d)Ab[d|0](a,b,c,J[e+12>>2]);xb=e+16|0}function Jw(a,b,c){var d=0;d=xb-16|0;xb=d;J[195395]=0;J[d+12>>2]=c;Iw(a,b,d+12|0);a=J[195395];J[195395]=0;if((a|0)!=1){xb=d+16|0;return}ga(0)| -0;_b();B()}function AR(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=H[b|0];if((a|0)>=0)a=J[Em()+(H[b|0]<<2)>>2];H[b|0]=a;b=b+1|0;continue}break}return c|0}function yfa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=(b|0)<=1?1:b;d=b>>>0>=100?100:b;if(b>>>0<=49){Pr(a,5E3/((d&65535)>>>0)|0,c);return}Pr(a,200-(d<<1)|0,c)}function sC(a){var b=0;b=J[a+584>>2];J[a+672>>2]=J[b+44>>2];J[a+668>>2]=J[b+48>>2];J[a+676>>2]=J[b+52>>2];J[a+516>>2]=J[b+56>>2];J[a+524>>2]=J[b+60>>2]}function WL(a,b,c){a=a|0;b=b|0;c=c| -0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+32&-64;return((a|0)>0?a:0)|0}a=0-((a-b|0)+32&-64)|0;return a>>31&a}function UP(a,b){a=a|0;b=b|0;var c=0;c=a;if(K[b+11|0]>>>7|0)a=J[b>>2];else a=b;if(K[b+11|0]>>>7|0)b=J[b+4>>2];else b=K[b+11|0]&127;return Jp(c,a,b)|0}function TL(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+63&-64;return((a|0)>0?a:0)|0}a=0-((a-b|0)+63&-64)|0;return a>>31&a}function Rq(a){a=a|0;var b=0,c=0;J[a>>2]=416464;J[195395]=0;b=a+4|0;ea(2126,b|0);c= -J[195395];J[195395]=0;if((c|0)!=1){qd(b);return a|0}ga(0)|0;_b();B()}function Qt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+540>>2];J[d>>2]=0;J[d+4>>2]=0;if(e)f=d,g=Ab[J[e+84>>2]](a,b,c)|0,J[f>>2]=g;return 0}function Q9(a,b){a=a|0;b=b|0;b=J[a+584>>2];if(!(H[b+124|0]&1))Ab[J[a+516>>2]](a)|0;J[b+64>>2]=J[a+596>>2];J[b+68>>2]=J[a+608>>2];return!Wl(b- -64|0)|0}function PL(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+16&-32;return((a|0)>0?a:0)|0}a=0-((a-b|0)+16& --32)|0;return a>>31&a}function Lw(a,b,c){var d=0;d=xb-16|0;xb=d;J[195395]=0;H[d+15|0]=c;Kw(a,b,d+15|0);a=J[195395];J[195395]=0;if((a|0)!=1){xb=d+16|0;return}ga(0)|0;_b();B()}function DR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];H[e|0]=a>>>0<128?a:d;e=e+1|0;b=b+4|0;continue}break}return c|0}function y_(a){a=a|0;J[a>>2]=415408;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=416512;J[a+24>>2]=0;J[a+28>>2]=0;return a|0}function re(a){a:{a=J[a>> -2];if(a){J[195395]=0;if(a)J[194998]=(a|0)==-1?779860:a;a=J[195395];J[195395]=0;if((a|0)==1)break a}return}ga(0)|0;_b();B()}function ns(a,b){a=a|0;b=b|0;return((P(K[a+1|0],601)+P(K[a|0],117)|0)+P(K[a+2|0],306)>>>10)-((P(K[b+1|0],601)+P(K[b|0],117)|0)+P(K[b+2|0],306)>>>10)|0}function VL(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b&-64;return((a|0)<0?32:a|32)|0}a=a-b&-64;return((a|0)<-32?-32:a^-32)|0}function Raa(a){a=a|0;var b=0,c=0;b=xb-224|0;xb=b;c=b+16|0;Ab[J[J[a>>2]+12>> -2]](a,c);a=J[J[a+12>>2]+628>>2];J[b>>2]=c;yc(a,281532,281665,b);xb=b+224|0}function L9(a,b){a=a|0;b=b|0;b=J[a+584>>2];if(J[b+124>>2]!=2)Ab[J[a+524>>2]](a)|0;J[b+76>>2]=J[a+596>>2];J[b+80>>2]=J[a+600>>2];return!Ns(b- -64|0)|0}function oQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=ac(b);d=Pb(c+13|0);J[d+8>>2]=0;J[d+4>>2]=c;J[d>>2]=c;e=a,f=Mb(d+12|0,b,c+1|0),J[e>>2]=f;return a|0}function o8(a){a=a|0;J[a+64>>2]=391152;J[a>>2]=391112;J[a+12>>2]=391512;J[a+8>>2]=391132;if(H[a+55|0]<0)Kb(J[a+44>>2]);Uf(a+12| -0);Be(a- -64|0);Kb(a)}function jk(a,b){var c=0;a:{if(a-1>>>0>253)break a;c=V(Qd(+(a>>>0)/255,+(b|0)*1E-5)*255+.5);if(c<4294967296&c>=0){a=~~c>>>0;break a}a=0}return a&255}function jR(a){a=a|0;var b=0;a=J[a+8>>2];if(!a)return 1;J[195395]=0;a=_(3774,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)return a|0;ga(0)|0;_b();B()}function Vj(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=1;J[a+4>>2]=415708;J[a>>2]=415660;H[a+19|0]=0;H[a+18|0]=0;H[a+17|0]=0;H[a+16|0]=0;J[a+24>>2]=0;return a|0}function vR(a,b,c,d,e){a=a|0;b=b| -0;c=c|0;d=d|0;e=e|0;while(1){if((b|0)!=(c|0)){a=H[b|0];H[e|0]=(a|0)<0?d:a;e=e+1|0;b=b+1|0;continue}break}return c|0}function lJ(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(!b)break b;c=J[a+12>>2];if(!c)break b;a=Ab[c|0](a,b,J[a+16>>2])|0;if(a)break a}a=169776}return a|0}function gia(a){a=a|0;var b=0,c=0;a:{c=J[a+4>>2];if(c){b=J[a+16>>2];if((b|0)>2])break a}H[a+24|0]=1;return-1}J[a+16>>2]=b+1;return K[b+c|0]}function eia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=a?J[a+180>>2]:0;if(d)if((Ab[J[J[d>>2]+12>> -2]](d,b,1,c,0,0)|0)==(c|0))break a;gc(a,239798);B()}}function bfa(a,b){a=a|0;b=b|0;var c=0;c=J[b+92>>2];J[a+40>>2]=L[b+68>>1];a:{if(di(b,1970170211)){J[b+92>>2]=0;break a}ZA(a,b);qx(a)}ci(b,c);return 0}function _e(a,b,c,d,e){var f=0;f=J[a+16>>2];if(f)return Ab[f|0](J[a+28>>2],b,c,d,e)|0;if(d)a=-1;else a=Ab[J[a+40>>2]](J[a+28>>2],b,c,e)|0;return a}function IX(a){a=a|0;var b=0;I[a+10>>1]=0;I[a+12>>1]=0;J[a+4>>2]=428360;J[a>>2]=428312;b=a+14|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;return a|0}function A1(a){a= -a|0;var b=0;a=J[J[a>>2]-20>>2]+a|0;b=J[a+156>>2];if(b){Kb(qd(b));J[a+156>>2]=0}b=a+124|0;nA(b);b=J[b>>2];H[a+212|0]=0;J[a+120>>2]=b}function gg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!J[a+932>>2])break a;if(!Ul(a,b,c))break a;d=K[(J[a+932>>2]+P(J[a+16>>2],c)|0)+b|0]}return d|0}function fB(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-16|0;xb=c;J[b>>2]=0;d=tc(a,4,c+12|0);e=J[c+12>>2];if(!e){J[d>>2]=a;J[b>>2]=d}xb=c+16|0;return e|0}function Yw(a,b,c){var d=0,e=0,f=0;d=xb-16|0;xb=d;e=d,f=Xw(b),J[e+12>>2]=f; -e=d,f=Xw(c),J[e+8>>2]=f;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+8>>2];xb=d+16|0}function DP(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(cf(a,J[b+8>>2],f)){Cp(b,c,d,e);return}a=J[a+8>>2];Ab[J[J[a>>2]+20>>2]](a,b,c,d,e,f)}function B8(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;O[a+40>>3]=g;O[a+32>>3]=f;O[a+24>>3]=e;O[a+16>>3]=d;O[a+8>>3]=c;O[a>>3]=b;return a|0}function jC(a,b){var c=0,d=0;if(!(!a|!b)){c=J[a>>2];if(c)while(1){d=J[c+4>>2];Ab[J[b+8>>2]](b,c);c=d;if(c)continue;break}J[a>>2]=0;J[a+ -4>>2]=0}}function cV(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+40>>2];while(1){if(c){c=c-1|0;d=c<<2;Ab[J[J[a+32>>2]+d>>2]](b,a,J[d+J[a+36>>2]>>2]);continue}break}}function C_(a){a=a|0;var b=0,c=0;J[a>>2]=416464;J[195395]=0;b=a+4|0;ea(2126,b|0);c=J[195395];J[195395]=0;if((c|0)==1){ga(0)|0;_b();B()}qd(b);Kb(a)}function ima(a){a=a|0;var b=0;b=a+24|0;jc(b,1668049255,1,1);a=J[194108];if(!a){du();a=J[194108]}if(a&4)jc(b,1801810542,1,0);jc(b,1818847073,1,0)}function e_(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];Lg(c,b); -J[a+24>>2]=J[c+204>>2]<<6;J[a+28>>2]=0-(J[c+208>>2]<<6);J[a+36>>2]=I[c+236>>1]<<6;return 0}function _x(a,b){a=a|0;b=b|0;var c=0;a:{if(!b)break a;a=J[a+12>>2];if((I[a+22>>1]+b|0)+I[a+58>>1]>>>0<=M[a+4>>2])break a;c=ie(a,b,0)}return c|0}function tZ(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;return a|0}function qia(a){a=a|0;var b=0;if(J[a+4>>2])a=0;else{J[a+8>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=Qb(1);H[a+12|0]=1;J[a+4>>2]=b; -a=(b|0)!=0}return a|0}function m_(a){a=a|0;var b=0;J[a>>2]=416584;b=J[a+8>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}b=J[a+12>>2];if(b)Ab[J[J[b>>2]+4>>2]](b);Kb(a)}function cia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=a?J[a+180>>2]:0;if(d)if((Ab[J[J[d>>2]+16>>2]](d,b,1,c)|0)==(c|0))break a;gc(a,239983);B()}}function an(a){var b=0,c=0;b=xb-16|0;xb=b;c=-1;a:{if(zq(a))break a;if((Ab[J[a+32>>2]](a,b+15|0,1)|0)!=1)break a;c=K[b+15|0]}xb=b+16|0;return c}function aca(a){a=a|0;var b=0,c=0;b=J[a+584>>2];J[a+ -672>>2]=J[b+24>>2];J[a+668>>2]=J[b+28>>2];c=J[b+12>>2];if(c)Kb(c);Kb(b);J[a+584>>2]=0;_i(a)}function Wma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a=J[a+12>>2];J[d>>2]=0;if(!(!b|!c))e=(Ab[J[a+36>>2]](a,b,c,d,J[a+68>>2])|0)!=0;return e|0}function Tl(a,b){a=a|0;b=b|0;var c=0,d=0;if(J[a+4>>2]){d=b?-1:0;c=b;b=L[a+26>>1];c=(b|0)==1?d:c;Nb(J[a+56>>2],(b|0)==4?P(c&15,17):c,J[a+32>>2])}}function Oy(a,b,c){var d=0;d=xb-144|0;xb=d;d=Nb(d,0,144);J[d+76>>2]=-1;J[d+44>>2]=a;J[d+32>>2]=3533;J[d+84>>2]=a;a=Ry(d, -b,c);xb=d+144|0;return a}function l6(a,b){a=a|0;b=b|0;var c=0;c=J[a+20>>2];J[b>>2]=c<<6;J[b+8>>2]=c+J[a+32>>2]<<6;c=J[a+24>>2];J[b+12>>2]=c<<6;J[b+4>>2]=c-J[a+28>>2]<<6}function fz(a){var b=0,c=0,d=0,e=0;b=J[a>>2]-1|0;b=(c=Jpa(b),d=0,e=b,e?c:d);if(!b){a=J[a+4>>2];a=(c=Jpa(a),d=0,e=a,e?c:d);b=a?a+32|0:0}return b}function eja(a){a=a|0;var b=0,c=0;a=J[a>>2];b=K[a|0];if(b)while(1){c=(b<<24>>24)+P(c,31)|0;b=K[a+1|0];a=a+1|0;if(b)continue;break}return c|0}function ON(a){a=a|0;var b=0,c=0;J[a+28>>2]=0;b= -J[a+36>>2];a:{if(!b)break a;c=J[a+32>>2];if(!c)break a;if(c)Ab[J[b+8>>2]](b,c);J[a+32>>2]=0}}function Ee(a,b,c,d){var e=0;e=P(b,c);a:{if(J[d+76>>2]<0){a=wq(a,e,d);break a}a=wq(a,e,d)}if((e|0)==(a|0))return b?c:0;return(a>>>0)/(b>>>0)|0}function B9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=d;d=J[a+584>>2];if(!(Ab[J[d+28>>2]](a,b,c,e)|0))return 0;Ab[J[d+40>>2]](a,b,c);return 1}function T9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];if((b|0)==65557){J[J[c>>2]>>2]=J[d+120>>2];return 1}return Ab[J[d+ -128>>2]](a,b,c)|0}function Al(a,b){var c=0,d=0;c=ac(b);d=J[a>>2];if(d){Kb(d);J[a>>2]=0}a:{if(!b)break a;d=a;c=c+1|0;a=Qb(c);J[d>>2]=a;if(!a)break a;Pc(a,b,c)}}function kja(a,b){a=a|0;b=b|0;var c=0;if(b)c=0;else{b=Pb(464);Nb(b,0,464);c=1}H[a+512|0]=c;J[a>>2]=b;H[a+4|0]=0;Nb(a+260|0,0,252);return a|0}function Yka(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;J[f+8>>2]=c;J[f>>2]=b;J[f+12>>2]=e;J[f+4>>2]=d;FE(a,f);xb=f+16|0}function Xf(a){var b=0;a=a*a;b=a*a;return Q(a*b*(a*2.439044879627741E-5+ --.001388676377460993)+(b*.04166662332373906+(a*-.499999997251031+1)))}function Sr(a,b){a:{if(!a)break a;a=J[a>>2];if(!a)break a;while(1){if(J[a+8>>2]==(b|0))return a;a=J[a+4>>2];if(a)continue;break}}return 0}function nc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=1;if(J[a+156>>2]){J[e+12>>2]=d;f=eu(a,b,c,d)}xb=e+16|0;return f|0}function hg(a){a=a|0;var b=0,c=0;if(!J[a+932>>2]){c=a;b=P(J[a+20>>2],J[a+16>>2]);a=Qb(b);J[c+932>>2]=a;if(!a)return 0;Nb(a,255,b)}return 1}function daa(a, -b){a=a|0;b=b|0;b=Qb(4);J[a+584>>2]=b;if(!b)return 0;a:{if(K[a+13|0]&4){b=Hg(a);break a}b=Ye(a)}J[J[a+584>>2]>>2]=b;return 1}function SB(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=+h;i=+i;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+20>>2]](a,b,c,d,e,f,g,h,i)}function Nw(a,b){J[a>>2]=774300;J[a>>2]=774408;J[195395]=0;ca(4042,a+4|0,b|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)return a;ba(Z()|0);B()}function CW(){var a=0,b=0,c=0;b=Pb(4);J[195395]=0;a=_(3522,b|0)|0;c=J[195395];J[195395]=0;if((c|0)!= -1)return a|0;a=Z()|0;Kb(b);ba(a|0);B()}function cP(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a:{if(c)break a;d=J[a>>2];c=bw(a+16|0,b,d);if(c)break a;c=bw(a+52|0,b,d)}return c|0}function Xba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];if((b|0)==65560){J[J[c>>2]>>2]=J[d>>2];return 1}return Ab[J[d+24>>2]](a,b,c)|0}function Kh(a){a=a|0;var b=0;a=J[a>>2];b=J[a+12>>2];a:{if((b|0)==J[a+16>>2]){a=Ab[J[J[a>>2]+36>>2]](a)|0;break a}a=K[b|0]}return a<<24>>24}function Ci(a,b){var c=0;a:{if(!a|!b|(!J[a+72>> -2]|!K[b|0]))break a;b=Pe(b,J[a+92>>2]);if(!b)break a;c=J[a+80>>2]+(J[b>>2]<<4)|0}return c}function ve(a){a=a|0;var b=0;J[a>>2]=427620;J[195395]=0;ea(3355,a|0);b=J[195395];J[195395]=0;if((b|0)!=1)return Iq(a)|0;ga(0)|0;_b();B()}function ne(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!J[a+932>>2])break a;if(!Ul(a,b,c))break a;H[(J[a+932>>2]+P(J[a+16>>2],c)|0)+b|0]=d}}function Vma(a,b){a=a|0;b=b|0;a=L[a+16>>1];a=1<>>8|0:0;b=L[b+16>>1];b=1<>>8|0:0;return(a>>>0>>0?-1:(a|0)!=(b|0))|0} -function UL(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b&-64;return((a|0)>0?a:0)|0}a=0-(a-b&-64)|0;return a>>31&a}function Ql(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!J[a+928>>2])break a;if(!Ul(a,b,c))break a;H[(J[a+928>>2]+P(J[a+16>>2],c)|0)+b|0]=d}}function Pl(a,b,c){a=a|0;b=b|0;c=c|0;J[a+20>>2]=c;J[a+16>>2]=0;J[a+4>>2]=b;J[a>>2]=241536;H[a+24|0]=0;J[a+8>>2]=c;H[a+12|0]=!b;return a|0}function zda(a,b,c){a=a|0;b=b|0;c=c|0;if(a){J[a+180>>2]=b;J[a+176>>2]=c?c:1566;if(J[a+172>> -2]){J[a+172>>2]=0;Wb(a,252170)}J[a+444>>2]=0}}function kk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-768|0;xb=d;a:{if(!a)break a;if(b){J[d+668>>2]=c;Ab[b|0](d,a);break a}Kb(a)}xb=d+768|0}function Qda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=Nb(a,0,256);d=K[J[b>>2]+c|0];b=K[J[b+4>>2]+c|0];J[a+32>>2]=d-b<<5;J[a>>2]=(b+d<<5)+-8192}function Ie(a,b,c,d,e){var f=0;f=xb-16|0;xb=f;J[f+12>>2]=c;J[f+8>>2]=e;c=Tf(f+4|0,f+12|0);a=el(a,b,d,J[f+8>>2]);re(c);xb=f+16|0;return a}function Cs(a,b){J[a+28>>2]=b;J[a+24>>2]=1060; -J[a+20>>2]=1061;J[a+16>>2]=1062;J[a+12>>2]=1063;J[a+8>>2]=1064;J[a+4>>2]=1065;J[a>>2]=1066}function zy(a,b){var c=0;c=J[a+24>>2];if((c|0)==J[a+28>>2])return Ab[J[J[a>>2]+52>>2]](a,b&255)|0;J[a+24>>2]=c+1;H[c|0]=b;return b&255}function tc(a,b,c){if((b|0)<=0){J[c>>2]=b?6:0;return 0}a=Ab[J[a+4>>2]](a,b)|0;if(!a){J[c>>2]=64;return 0}a=Nb(a,0,b);J[c>>2]=0;return a}function eW(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b;b=J[b>>2]+7&-8;J[c>>2]=b+16;d=a,e=nq(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2]),O[d>>3]=e}function dl(a){a= -a|0;var b=0,c=0;J[a>>2]=758952;b=J[a+4>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)Ab[J[J[b>>2]+8>>2]](b);return a|0}function Uf(a){a=a|0;var b=0,c=0;J[a>>2]=759200;b=J[a+4>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)Ab[J[J[b>>2]+8>>2]](b);return a|0}function MD(a,b){var c=0;c=J[a+200>>2];if((c&5)==5){J[a+200>>2]=c|24;if(!b){mc(a,0);return}Wb(a,255679);mc(a,b);return}gc(a,255634);B()}function J9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];if((b|0)==317){I[J[c>>2]>>1]=J[d>>2];return 1}return Ab[J[d+ -44>>2]](a,b,c)|0}function HP(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[J[b+488>>2]+4>>2];if(!c)return 7;return Ab[c|0](J[b+100>>2],a,J[b+420>>2],38,0,b)|0}function Bp(a,b,c,d,e,f){var g=0,h=0;g=J[a+4>>2];h=g>>8;a=J[a>>2];if(g&1)h=J[J[d>>2]+h>>2];Ab[J[J[a>>2]+20>>2]](a,b,c,d+h|0,g&2?e:2,f)}function Bg(a){a=a|0;J[a>>2]=415408;J[a+8>>2]=-16777216;J[a+12>>2]=-16777216;J[a+4>>2]=416172;J[a>>2]=416104;Nb(a+16|0,0,72);return a|0}function $U(a,b){a=a|0;b=b|0;J[a+20>>2]=0;J[a+24>>2]=b;J[a+12>>2]=0;J[a+4>>2]= -4098;J[a+8>>2]=6;J[a+16>>2]=!b;Nb(a+32|0,0,40);Sp(a+28|0)}function hka(a){a=a|0;var b=0;J[a>>2]=234032;b=J[a+4>>2];if(b)Kb(b);b=a+4|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;return a|0}function aga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[J[d>>2]+e|0]=K[(J[a+332>>2]+(P(J[J[b+84>>2]>>2],L[c>>1])+4>>>3&1023)|0)+128|0]}function W9(a){a=a|0;var b=0,c=0;c=J[a+584>>2];b=Qb(72008);J[c+144>>2]=b;if(b)a=1;else{Ob(J[a+628>>2],288976,271041,0);a=0}return a|0}function Fq(a){var b=0,c=0;b=J[a+4>>2];a:{if(!b)break a; -c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break a;Ab[J[J[b>>2]+8>>2]](b);Pw(b)}return a}function CN(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[J[b+544>>2]+4>>2];if(!c)return 7;return Ab[c|0](J[b+100>>2],a,J[b+16>>2],63,0,b)|0}function CF(a){J[a+28>>2]=0;J[a+24>>2]=1053;J[a+20>>2]=1054;J[a+16>>2]=1055;J[a+12>>2]=1056;J[a+8>>2]=1057;J[a+4>>2]=1058;J[a>>2]=1059}function jV(a,b,c){a=a|0;b=b|0;c=c|0;if(c>>>0>8){J[195395]=0;Kb(a);a=J[195395];J[195395]=0;if((a|0)==1){ga(0)|0;_b();B()}return}Kb(a)}function ZV(a){a=a|0; -J[a>>2]=758952;Sp(a+4|0);J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function VY(a){a=a|0;var b=0;J[a>>2]=427620;J[195395]=0;ea(3355,a|0);b=J[195395];J[195395]=0;if((b|0)==1){ga(0)|0;_b();B()}Kb(Iq(a))}function QV(a,b){a=a|0;b=b|0;J[a+4>>2]=b;H[a|0]=0;b=J[J[b>>2]-12>>2]+b|0;if(!J[b+16>>2]){b=J[b+72>>2];if(b)By(b);H[a|0]=1}return a|0}function Ll(a){a=a|0;var b=0;b=J[a+4>>2];if(b){Ab[J[b+36>>2]](a,1);if(J[a+16>>2]){J[a+308>>2]=0;J[a+20>>2]=200;return}J[a+ -20>>2]=100}}function JV(a){a=a|0;J[a>>2]=759200;Sp(a+4|0);J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function CV(a){a=a|0;var b=0;a=J[a>>2];b=J[a+12>>2];a:{if((b|0)==J[a+16>>2]){a=Ab[J[J[a>>2]+36>>2]](a)|0;break a}a=J[b>>2]}return a|0}function sja(a){a=a|0;var b=0,c=0;b=J[a+4>>2];if(!b)return-1;b=Mj(b);zg(J[a+4>>2],0,2);c=Mj(J[a+4>>2]);zg(J[a+4>>2],b,0);return c|0}function qZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a>>2]=426840;b=gA(a+8|0,b,+(c>>>0),+(d>>>0)); -J[a>>2]=425404;J[b>>2]=425768;return a|0}function Zc(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;c=c<<8|c>>>8;b=b+2|0}J[a+32>>2]=b;return c&65535}function Vw(a,b,c){var d=0;d=xb-16|0;xb=d;a:{if(!(K[b+120|0]|c>>>0>30)){H[b+120|0]=1;break a}b=$w(c)}xb=d+16|0;J[a+4>>2]=c;J[a>>2]=b}function yr(a,b,c,d){var e=0;e=a;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);ye(e,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24),c,d)}function rN(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0; -xb=e;a=tm(a,b,e+12|0);if(!a)jr(c,J[e+12>>2],d);xb=e+16|0;return a|0}function oO(a,b){a=a|0;b=b|0;var c=0;J[a+16>>2]=b;c=K[b+7|0];b=K[b+6|0];J[a+24>>2]=-1;J[a+28>>2]=0;J[a+32>>2]=(b<<8|c)>>>1;return 0}function mC(a,b){var c=0,d=0;if(!(!a|!b)){a=J[a>>2];while(1){if(!a)return;c=J[a+4>>2];d=Ab[b|0](a,0)|0;a=c;if(!d)continue;break}}}function Zm(a,b){var c=0,d=0;a:{if(b>>>0<=31){d=J[a>>2];c=a+4|0;break a}b=b-32|0;c=a}c=J[c>>2];J[a>>2]=d<>2]=c<>>32-b}function LZ(a,b){a=a|0;b=b|0;var c=0;if(b){a:{if(K[a+ -80|0])break a;c=J[a+76>>2];if(!c)break a;Kb(Fq(c))}H[a+80|0]=1;J[a+76>>2]=b}}function Hna(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];d=J[b>>2];a=J[a+4>>2];b=J[b+4>>2];c=Zb(c,d,a>>>0>>0?a:b);return(c?c:a-b|0)|0}function EK(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(b)J[b>>2]=J[a+152>>2];if(c)J[c>>2]=J[a+156>>2];if(d)J[d>>2]=J[a+160>>2];return 0}function Ar(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(!a|!b)){H[b+120|0]=e;J[b+116>>2]=d;J[b+112>>2]=c;J[b+8>>2]=J[b+8>>2]|128}}function Am(a,b,c,d,e){var f=0, -g=0;f=J[a+4>>2];g=f>>8;a=J[a>>2];if(f&1)g=J[J[c>>2]+g>>2];Ab[J[J[a>>2]+24>>2]](a,b,c+g|0,f&2?d:2,e)}function qaa(a){a=a|0;var b=0;b=J[a+828>>2];J[b+608>>2]=J[b+600>>2];Xc(b);J[a+780>>2]=J[b+596>>2];J[a+784>>2]=J[b+600>>2];return 1}function bQ(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[b+376>>2];J[a+16>>2]=c;J[a+20>>2]=J[b+380>>2]-c;J[a+24>>2]=J[b+384>>2];return 0}function Zka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;J[d+8>>2]=0;J[d+12>>2]=0;kE(a,b,c,0,d+8|0);xb=d+16|0;return J[d+8>>2]}function Gha(a){a= -a|0;J[a+216>>2]=0;J[a+436>>2]=0;J[a+144>>2]=0;a=J[a+460>>2];J[a+164>>2]=0;J[a+24>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}function $m(a,b){var c=0,d=0;c=J[a+4>>2];a:{if(b>>>0<=31){d=J[a>>2];break a}b=b-32|0;d=c;c=0}J[a+4>>2]=c>>>b;J[a>>2]=c<<32-b|d>>>b}function TB(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+16>>2]](a,b,c,d,e,f,g,h)}function iJ(a,b,c){a=a|0;b=b|0;c=c|0;if(ti(a,b,c))a=1;else{if(b>>>0<=255)a=ti(a,b+61440|0,c);else a=1;a=a&b>>>0<256}return a|0}function g$(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;O[b>>3]=O[a+24>>3];O[c>>3]=O[a+32>>3];O[d>>3]=O[a+40>>3];O[e>>3]=O[a+48>>3]}function f$(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;O[b>>3]=O[a+20>>3];O[c>>3]=O[a+28>>3];O[d>>3]=O[a+36>>3];O[e>>3]=O[a+44>>3]}function Xma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+12>>2];J[c>>2]=b;J[d>>2]=0;return(Ab[J[a+40>>2]](a,b,c,d,J[a+72>>2])|0)!=0|0}function OR(a){a=a|0;var b=0,c=0;b=J[J[a>>2]>>2];c=J[b+8>>2];a=J[b+4>>2];b=J[b>>2]+(c>>1)|0;if(c&1)a=J[a+J[b>>2]>>2];Ab[a|0](b)} -function Nha(a){a=a|0;var b=0,c=0;b=xb-224|0;xb=b;c=b+16|0;Ab[J[J[a>>2]+12>>2]](a,c);J[b>>2]=c;Sc(J[189490],247056,b);xb=b+224|0}function DX(a){a=a|0;J[a+32>>2]=0;I[a+22>>1]=0;I[a+24>>1]=0;I[a+26>>1]=0;I[a+28>>1]=0;J[a+4>>2]=428424;J[a>>2]=428404;return a|0}function Sx(a,b,c,d,e,f){a=Ab[J[J[a+8>>2]+4>>2]](a+8|0)|0;a=Nm(c,d,a,a+288|0,f,e,0)-a|0;if((a|0)<=287)J[b>>2]=((a|0)/12|0)%12}function SL(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b|0;return((a|0)>0?a:0)|0}a=b-a|0;return a>> -31&a}function Px(a,b,c,d,e,f){a=Ab[J[J[a+8>>2]+4>>2]](a+8|0)|0;a=Lm(c,d,a,a+288|0,f,e,0)-a|0;if((a|0)<=287)J[b>>2]=((a|0)/12|0)%12}function Io(a){a=a|0;var b=0;if(!(!a|(a|0)==169776)){b=J[a+228>>2];if(b){if(J[b>>2]){J[b+4>>2]=0;Kb(J[b+8>>2])}Kb(b)}Kb(jI(a))}}function FR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){J[d>>2]=H[b|0];d=d+4|0;b=b+1|0;continue}break}return c|0}function xR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){H[d|0]=K[b|0];d=d+1|0;b=b+1|0;continue}break}return c| -0}function x0(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;a=J[a+208>>2];if(a)Ab[J[J[a>>2]+464>>2]](a,b,c,d,e,f,g)}function ux(a){a:{if(!K[a+4|0]){J[195395]=0;ea(3758,a|0);a=J[195395];J[195395]=0;if((a|0)==1)break a}return}ga(0)|0;_b();B()}function Ei(a,b){J[195395]=0;a=aa(4045,(b<<1)+773248|0,2,a|0)|0;b=J[195395];J[195395]=0;if((b|0)!=1)return a;ga(0)|0;_b();B()}function jq(a){a=a|0;var b=0;b=J[a+12>>2];if((b|0)==J[a+16>>2])return Ab[J[J[a>>2]+40>>2]](a)|0;J[a+12>>2]=b+1;return K[b|0]} -function bP(a){a=a|0;J[a+12>>2]=1;J[a+16>>2]=0;J[a+4>>2]=0;J[a+76>>2]=0;J[a- -64>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0}function Yda(a,b,c){a=a|0;b=b|0;c=c|0;a=Nb(a,0,256);b=J[b>>2]+c|0;c=K[b|0];b=K[b+1|0];J[a+4>>2]=c-b<<5;J[a>>2]=(b+c<<5)+-8192}function Xw(a){var b=0;b=xb-16|0;xb=b;J[b+12>>2]=a;a=xb-16|0;xb=a;J[a+12>>2]=J[b+12>>2];xb=a+16|0;xb=b+16|0;return J[a+12>>2]}function XO(a){a=a|0;J[a+12>>2]=2;J[a+16>>2]=0;J[a+4>>2]=0;J[a+76>>2]=0;J[a- -64>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+28>>2]= -0}function Vq(a){a=a|0;var b=0;b=J[a+156>>2];if(b){Kb(qd(b));J[a+156>>2]=0}b=a+124|0;nA(b);b=J[b>>2];H[a+212|0]=0;J[a+120>>2]=b}function TP(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+16>>2];return(c>>>0>b>>>0|J[a+20>>2]+c>>>0<=b>>>0?d:L[J[a+24>>2]+(b<<1)>>1])|0}function SA(a,b,c){a=a|0;b=b|0;c=c|0;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(J[b+72>>2]==J[a+16>>2])fi(b+108|0,c)}function Pw(a){var b=0,c=0;a:{b=a+8|0;if(J[b>>2]){c=b;b=J[b>>2]-1|0;J[c>>2]=b;if((b|0)!=-1)break a}Ab[J[J[a>>2]+16>>2]](a)}} -function KP(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(cf(a,J[b+8>>2],0)){Dp(b,c,d);return}a=J[a+8>>2];Ab[J[J[a>>2]+28>>2]](a,b,c,d)}function F0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=J[a+208>>2];if(e)Ab[J[J[e>>2]+184>>2]](e,b,c,d);ef(a+124|0,J[b>>2],c)}function Ec(a){var b=0,c=0;if(J[a+20>>2]){b=J[a>>2];if(b){c=J[a+28>>2];Ab[J[c+8>>2]](c,b)}J[a>>2]=0}J[a+32>>2]=0;J[a+36>>2]=0}function gD(a,b,c){var d=0;d=J[a>>2];if(d){Kb(d);J[a>>2]=0}a:{if(!b)break a;d=a;a=Qb(c);J[d>>2]=a;if(!a)break a;Pc(a,b,c)}}function __(a){a= -a|0;var b=0;b=J[a+24>>2];if(b)return Ab[J[J[b>>2]+16>>2]](b)|0;return K[a+22|0]|K[a+21|0]<<8|K[a+20|0]<<16}function Uq(a){a=a|0;var b=0;b=J[a+208>>2];if(b){Ab[J[J[b>>2]+132>>2]](b);b=J[a+208>>2];Ab[J[J[b>>2]+12>>2]](b)}H[a+212|0]=1}function Tx(a,b,c,d,e,f){a=Ab[J[J[a+8>>2]>>2]](a+8|0)|0;a=Nm(c,d,a,a+168|0,f,e,0)-a|0;if((a|0)<=167)J[b>>2]=((a|0)/12|0)%7}function Qx(a,b,c,d,e,f){a=Ab[J[J[a+8>>2]>>2]](a+8|0)|0;a=Lm(c,d,a,a+168|0,f,e,0)-a|0;if((a|0)<=167)J[b>>2]=((a|0)/12|0)%7}function $_(a){a=a|0;var b= -0;b=J[a+28>>2];if(b)return Ab[J[J[b>>2]+16>>2]](b)|0;return K[a+26|0]|K[a+25|0]<<8|K[a+24|0]<<16}function mn(a,b){var c=0,d=0;c=J[b+72>>2];if(c){Ab[J[J[c>>2]+64>>2]](a,c);return}d=O[b+8>>3];O[a+8>>3]=O[b+24>>3];O[a>>3]=d}function WO(a){a=a|0;var b=0;J[a+140>>2]=0;J[a+112>>2]=0;b=J[a+12>>2];dw(a+28|0,b);dw(a- -64|0,b);J[a+12>>2]=0;J[a+16>>2]=0}function OE(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a+28>>2];d=J[a+24>>2];if(d)Ab[d|0](a);if(b)break a;Ab[J[c+8>>2]](c,a)}}function Lha(a){a=a|0;var b=0;Ab[J[J[a>> -2]+8>>2]](a);b=J[a+4>>2];if(b)Ab[J[b+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0;za(1);B()}function BB(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;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+88>>2]](a,b,c,d,e,f,g)}function AB(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;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+92>>2]](a,b,c,d,e,f,g)}function az(a,b,c,d,e,f,g,h,i){J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e&65535|(i>>>16&32768|(e&2147418112)>>>16)<<16}function t9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e= -0;e=J[a+584>>2];Ab[J[e+24>>2]](a,b,c);return Ab[J[e+12>>2]](a,b,c,d)|0}function rd(a,b){var c=0;a:{if(!a|!J[a+20>>2])break a;c=J[b>>2];if(!c)break a;a=J[a+28>>2];Ab[J[a+8>>2]](a,c)}J[b>>2]=0}function ks(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a;a=J[a+68>>2];J[(d+((c-1>>>0<9?c:a-1>>>0<9?a:0)<<2)|0)+400>>2]=b;return 1}function Vp(a,b,c){c=J[c>>2];while(1){a:{if((a|0)!=(b|0)){if((c|0)!=J[a>>2])break a}else a=b;return a}a=a+4|0;continue}}function R$(a){a=a|0;var b=0,c=0;J[a>>2]=415608;b=a-4|0;J[b>>2]=415552; -c=J[a+360>>2];if(c){Kb(c);J[a+360>>2]=0}return b|0}function $J(a,b){a=a|0;b=b|0;var c=0;b=J[J[a>>2]+132>>2];c=K[b+104|0];J[a+16>>2]=c;J[a+20>>2]=(K[b+105|0]-c|0)+1;return 0}function v7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=gh(J[a>>2],c,11927);if(!a)return 64;J[d>>2]=a;J[e>>2]=0;return 0}function sy(a){var b=0;b=J[a+12>>2];if((b|0)==J[a+16>>2])return Ab[J[J[a>>2]+40>>2]](a)|0;J[a+12>>2]=b+4;return J[b>>2]}function QY(a){a=a|0;var b=0;b=J[a+248>>2];J[a+248>>2]=0;Ab[J[J[a>>2]+124>>2]](a);J[a+248>> -2]=b;Ab[J[J[a>>2]+12>>2]](a)}function GV(a){a=a|0;var b=0;if((Ab[J[J[a>>2]+36>>2]](a)|0)==-1)return-1;b=a;a=J[a+12>>2];J[b+12>>2]=a+4;return J[a>>2]}function G7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=gh(J[a>>2],c,11828);if(!a)return 64;J[d>>2]=a;J[e>>2]=0;return 0}function w6(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2];return bC(c,a+28|0,b+28|0)|0}function kX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=J[a+4>>2];if(a)e=d,f=Gc(b,1,c,a),J[e>>2]=f;return(a|0)!= -0|0}function i0(a){a=a|0;var b=0;b=J[a+208>>2];J[a+208>>2]=0;Ab[J[J[a>>2]+16>>2]](a);J[a+208>>2]=b;Ab[J[J[a>>2]+32>>2]](a)}function _0(a,b){a=a|0;b=b|0;var c=0;b=J[(J[J[b>>2]-72>>2]+b|0)+120>>2]+680|0;c=J[b>>2];O[a+8>>3]=J[b+4>>2];O[a>>3]=c|0}function Yp(a,b,c){c=K[c|0];while(1){a:{if((a|0)!=(b|0)){if((c|0)!=K[a|0])break a}else a=b;return a}a=a+1|0;continue}}function XV(a){a=a|0;var b=0;if((Ab[J[J[a>>2]+36>>2]](a)|0)==-1)return-1;b=a;a=J[a+12>>2];J[b+12>>2]=a+1;return K[a|0]}function Gja(a,b){a=a| -0;b=b|0;var c=0,d=0;c=xb-16|0;xb=c;d=c+12|0;J[d>>2]=0;a=ws(d,a,b);xb=c+16|0;return(a?J[d>>2]:0)|0}function Bda(a){a=a|0;var b=0;a:{if(!a)break a;a=eE(2,J[a+672>>2],J[a+668>>2]);if(!a)break a;b=Nb(a,0,236)}return b|0}function BX(a){a=a|0;var b=0,c=0;J[a>>2]=428424;b=a-4|0;J[b>>2]=428404;c=J[a+28>>2];if(c){Kb(c);J[a+28>>2]=0}return b|0}function B$(a){a=a|0;var b=0,c=0;J[a>>2]=415708;b=a-4|0;J[b>>2]=415660;c=J[a+20>>2];if(c){Kb(c);J[a+20>>2]=0}return b|0}function lda(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!a)break a; -if((Ee(b,1,c,J[a+180>>2])|0)==(c|0))break a;gc(a,251869);B()}}function dz(a){var b=0;b=fb(-100,a|0,0)|0;if((b|0)==-31)b=eb(a|0)|0;if(b>>>0>=4294963201){J[194954]=0-b;b=-1}return b}function Hp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-32|0;xb=c;d=c+21|0;e=c+32|0;zw(c+12|0,d,e,b);Aw(a,d,J[c+12>>2]);xb=e}function Ada(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!a)break a;if((Gc(b,1,c,J[a+180>>2])|0)==(c|0))break a;gc(a,251881);B()}}function ou(a){var b=0;J[a+72>>2]=0;I[a+62>>1]=256;J[a+84>>2]=J[a+80>>2];b=P(J[a+68>> -2],20);if(b)Nb(J[a+88>>2],0,b)}function ol(a,b,c){a=a|0;b=b|0;c=c|0;a=J[J[a>>2]-12>>2]+a|0;J[a+4>>2]=b;J[a+12>>2]=b;b=b+c|0;J[a+16>>2]=b;J[a+8>>2]=b}function oD(a,b,c){ye(a,1229209940,b,c);b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;J[a+200>>2]=J[a+200>>2]|4}function nx(){J[195789]=0;J[195788]=770856;J[195788]=765696;H[783164]=0;J[195790]=0;J[195788]=764236;J[195790]=764288}function lx(a,b){a=a|0;b=b|0;a=J[a+4>>2]|J[a>>2]<<16;b=J[b+4>>2]|J[b>>2]<<16;return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)| -0}function jja(a,b){a=a|0;b=b|0;a:{a=J[a>>2];b=J[b>>2];if(K[a|0]!=K[b|0])break a;if(fc(a,b))break a;return 1}return 0}function UR(a){a=a|0;var b=0;b=J[a>>2];if(J[b>>2]){tx(b);b=J[a>>2]+16|0;a=J[a>>2];Uw(b,J[a>>2],J[a+8>>2]-J[a>>2]>>2)}}function Tf(a,b){var c=0;c=J[194998];b=J[b>>2];if(b)J[194998]=(b|0)==-1?779860:b;J[a>>2]=(c|0)==779860?-1:c;return a}function Og(a){a=a|0;var b=0;J[a>>2]=241536;b=J[a+4>>2];if(!(!b|!K[a+12|0])){Kb(b);J[a+4>>2]=0;J[a+8>>2]=0}return a|0}function NB(a,b,c,d,e,f,g){a=a| -0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+40>>2]](a,b,c,d,e,f,g)}function MB(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+44>>2]](a,b,c,d,e,f,g)}function Lt(){var a=0;a=vc(1,96);if(!a)return 775196;J[a+8>>2]=0;J[a>>2]=1;J[a+4>>2]=1;Mb(a+20|0,775216,76);return a}function A0(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];a=J[a+4>>2];Th(b,c>>6,a>>6);J[b+212>>2]=a<<2;J[b+208>>2]=c<<2;return 0}function yaa(a){a=a|0;var b=0;b=J[a>>2];J[b+20>>2]=123;Ab[J[b+4>> -2]](a,-1);J[a+804>>2]=2;J[a+800>>2]=288864;return 1}function hp(a){a=a|0;var b=0,c=0;b=J[J[a>>2]+100>>2];c=J[a+20>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+16>>2]=0;J[a+20>>2]=0}function OM(a){a=a|0;var b=0,c=0;b=J[a+868>>2];if(b){c=J[a+100>>2];rd(J[a+104>>2],b+12|0);if(b)Ab[J[c+8>>2]](c,b)}}function NM(a){a=a|0;var b=0,c=0;b=J[a+872>>2];if(b){c=J[a+100>>2];rd(J[a+104>>2],b+16|0);if(b)Ab[J[c+8>>2]](c,b)}}function sx(a){var b=0;b=J[a>>2];J[a>>2]=0;if(b){a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)Ab[J[J[b>>2]+ -8>>2]](b)}}function i8(a){a=a|0;var b=0,c=0;b=J[a>>2];if(b){c=J[a+28>>2];Ab[J[c+8>>2]](c,b)}J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0}function eq(a,b,c){var d=0;d=xb-16|0;xb=d;J[d+12>>2]=b;J[d+8>>2]=c;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+8>>2];xb=d+16|0}function Me(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=428736;b=J[a+4>>2];if(b){sf(b);J[a+4>>2]=0}return a|0}function Iv(a){a=a|0;var b=0,c=0;b=J[a+28>>2];c=J[a>>2];if(c)Ab[J[b+8>>2]](b,c);J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0}function Fm(a,b){var c=0;c= -xb-16|0;xb=c;J[c+12>>2]=J[a>>2];J[c+12>>2]=J[c+12>>2]+(b<<2);xb=c+16|0;return J[c+12>>2]}function xia(a,b,c){a=a|0;b=b|0;c=c|0;if(J[a+44>>2])a=0;else a=(J[a+56>>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;return a|0}function jN(a,b){a=a|0;b=b|0;var c=0;c=Ab[J[a+516>>2]](a,1751474532,b,0)|0;if(!c)c=Nc(b,95184,a+160|0);return c|0}function hF(a){var b=0;b=xb-16|0;xb=b;H[b+12|0]=0;a:{if(!a)break a;if((Gc(b+12|0,1,4,a)|0)!=4)break a}xb=b+16|0}function eN(a,b){a=a|0;b=b|0;var c=0;c=Ab[J[a+516>>2]](a,1886352244,b,0)| -0;if(!c)c=Nc(b,95680,a+476|0);return c|0}function _M(a,b){a=a|0;b=b|0;var c=0;c=Ab[J[a+516>>2]](a,1651008868,b,0)|0;if(!c)c=Nc(b,95184,a+160|0);return c|0}function XD(a,b){bi(a,b,32767,-1);if(J[a+644>>2]){cc(a,J[a+648>>2]);J[a+644>>2]=0;J[a+648>>2]=0}if(b)Nb(b,0,236)}function R1(a){a=a|0;var b=0;a=J[J[a>>2]-20>>2]+a|0;b=J[a+216>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+216>>2]=0}Vq(a)}function P5(a,b){a=a|0;b=b|0;var c=0;b=b+20|0;c=tD(J[a>>2],I[a+22>>1],I[a+20>>1],b);if(!c)pD(a+20|0,b);return c|0}function Hf(a, -b,c){J[195395]=0;aa(3547,b|0,c|0,a|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)return;ga(0)|0;_b();B()}function $g(a,b,c){J[195395]=0;aa(3534,b|0,c|0,a|0)|0;a=J[195395];J[195395]=0;if((a|0)!=1)return;ga(0)|0;_b();B()}function $M(a,b){a=a|0;b=b|0;var c=0;c=Ab[J[a+516>>2]](a,1346587732,b,0)|0;if(!c)c=Nc(b,95808,a+568|0);return c|0}function yS(){J[195815]=0;J[195814]=770856;J[195814]=765696;J[195816]=46;J[195817]=44;J[195814]=765408;Rc(783272)}function vy(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];a:{if(!c)break a; -if((zy(c,b)|0)!=-1)break a;J[a>>2]=0}return a|0}function bia(a){a=a|0;var b=0;a:{b=a?J[a+180>>2]:0;if(b)if(Ab[J[J[b>>2]+32>>2]](b)|0)break a;gc(a,240110);B()}}function Vi(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;b=b+2|0}J[a+32>>2]=b;return c}function Om(a,b){a:{J[195395]=0;fa(3560,a|0,b|0,1);a=J[195395];J[195395]=0;if((a|0)!=1)break a;ga(0)|0;_b();B()}}function Bd(a,b,c,d){if(d&16)return jf(J[a+148>>2],d>>>16|0,b);a=d&65280;if(!a)return 1;return(a|0)==(c&65280)}function BW(a){a= -a|0;var b=0,c=0;if(a){b=J[a>>2];if(b){c=J[b+24>>2];if(c)Kb(c);Dq(b+4|0,J[b+8>>2]);Kb(b)}Kb(a)}}function mM(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=b<<2;d=J[b+J[a+388>>2]>>2];c=dc(c,rm(a));J[b+J[a+388>>2]>>2]=c+d}function ch(a){a=a|0;var b=0;J[a+4>>2]=415608;J[a>>2]=415552;b=J[a+364>>2];if(b){Kb(b);J[a+364>>2]=0}return a|0}function NZ(a){a=a|0;a=779648;while(1){if(H[a-1|0]<0)Kb(J[a-12>>2]);a=a-16|0;if((a|0)!=777680)continue;break}}function Ff(a){a:{a=J[a+4>>2]&74;if(a){if((a|0)==64)return 8;if((a|0)!=8)break a; -return 16}return 0}return 10}function cf(a,b,c){if(!c)return J[a+4>>2]==J[b+4>>2];if((a|0)==(b|0))return 1;return!fc(J[a+4>>2],J[b+4>>2])}function c6(a,b){a=a|0;b=b|0;J[a+24>>2]=J[b+20>>2];J[a+4>>2]=J[b>>2];J[a+28>>2]=J[b+24>>2];ZB(a,b,0);ZB(a,b,1)}function Tp(a,b){var c=0;c=xb-16|0;xb=c;J[c+12>>2]=J[a>>2];J[c+12>>2]=J[c+12>>2]+b;xb=c+16|0;return J[c+12>>2]}function SV(a){a=a|0;var b=0;b=J[a+12>>2];if((b|0)==J[a+16>>2])return Ab[J[J[a>>2]+36>>2]](a)|0;return K[b|0]}function NL(a,b,c){a=a|0;b=b|0; -c=c|0;c=qm(a,b,c,1);if(!c)J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15;return c|0}function ii(a,b){a=a|0;b=b|0;var c=0;c=a;a=J[a+68>>2];return J[(c+((b-1>>>0<9?b:a-1>>>0<9?a:0)<<2)|0)+400>>2]}function g_(a){a=a|0;var b=0;J[a>>2]=416648;b=J[a+88>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+88>>2]=0}return a|0}function Zw(a,b){J[195395]=0;fa(3560,a|0,b<<2,4);a=J[195395];J[195395]=0;if((a|0)!=1)return;ga(0)|0;_b();B()}function Iw(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if(b){J[a>>2]=J[c>>2];b=b-1|0;a=a+4|0;continue}break}return a| -0}function Hy(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0}function HF(a){var b=0,c=0;b=xb-48|0;xb=b;a:{if(a){c=b+4|0;DF(c,a);a=GF(c);break a}a=GF(0)}xb=b+48|0;return a}function CX(a){a=a|0;var b=0;J[a+4>>2]=428424;J[a>>2]=428404;b=J[a+32>>2];if(b){Kb(b);J[a+32>>2]=0}return a|0}function C$(a){a=a|0;var b=0;J[a+4>>2]=415708;J[a>>2]=415660;b=J[a+24>>2];if(b){Kb(b);J[a+24>>2]=0}return a|0}function Bha(a){a=a|0;var b=0;b=J[a+440>>2];if(J[a+84>>2])Ab[J[J[a+ -480>>2]+8>>2]](a);J[b+12>>2]=J[b+12>>2]+1}function Aba(a,b){a=a|0;b=b|0;b=P(J[a+588>>2],b);J[a+604>>2]=b+J[a+604>>2];J[a+608>>2]=J[a+608>>2]-b;return 1}function ud(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=Pb(24);O[d+16>>3]=c;O[d+8>>3]=b;J[d>>2]=391896;return fh(a,d)|0}function le(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=Pb(24);O[d+16>>3]=c;O[d+8>>3]=b;J[d>>2]=391876;return fh(a,d)|0}function ah(a,b,c){if(c)while(1){if(J[a>>2]==(b|0))return a;a=a+4|0;c=c-1|0;if(c)continue;break}return 0}function Xe(a){var b=0;if(K[a+ -11|0]>>>7|0)a=J[a>>2];b=xb-16|0;xb=b;J[b+12>>2]=a;xb=b+16|0;return J[b+12>>2]}function Uia(a){a=a|0;var b=Q(0);b=Q(N[a+344>>2]+Q(.5));if(b=Q(0))return~~b>>>0|0;return 0}function Rx(a,b,c,d,e){b=ug(b,c,d,e,4);if(!(K[d|0]&4))J[a>>2]=((b|0)<69?b+2E3|0:b>>>0<100?b+1900|0:b)-1900}function Q_(a){a=a|0;var b=0;J[a>>2]=416388;b=a-4|0;J[b>>2]=416328;if(H[a+31|0]<0)Kb(J[a+20>>2]);return b|0}function Ox(a,b,c,d,e){b=tg(b,c,d,e,4);if(!(K[d|0]&4))J[a>>2]=((b|0)<69?b+2E3|0:b>>>0<100?b+1900|0:b)- -1900}function Jz(a,b,c){I[a+112>>1]=b;H[a+121|0]=0;I[a+114>>1]=c;if(K[a+131|0]){I[a+122>>1]=b;I[a+124>>1]=c}tf(a)}function Gz(a,b,c){I[a+122>>1]=b;H[a+131|0]=0;I[a+124>>1]=c;if(K[a+121|0]){I[a+112>>1]=b;I[a+114>>1]=c}tf(a)}function u_(a){a=a|0;var b=0;J[a>>2]=416552;b=J[a+8>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}return a|0}function TV(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)>=0)a=(J[J[a+8>>2]+((c&255)<<2)>>2]&b)!=0;else a=0;return a|0}function Pp(a,b,c){var d=0;d=xb-16|0;xb=d;sg(a,c);J[d+12>>2]=0; -J[(c<<2)+b>>2]=J[d+12>>2];xb=d+16|0;return a}function Kw(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if(b){H[a|0]=K[c|0];b=b-1|0;a=a+1|0;continue}break}return a|0}function E8(a,b){a=a|0;b=b|0;H[a|0]=K[b|0];H[a+1|0]=K[b+1|0];H[a+2|0]=K[b+2|0];H[a+3|0]=K[b+3|0];return a|0}function DN(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=0;tm(a,b,c+12|0);xb=c+16|0;return J[c+12>>2]}function qja(a){a=a|0;a=J[a+4>>2];if(!a)return 1;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];return a>>>4&1}function pja(a){a=a|0;a=J[a+ -4>>2];if(!a)return-1;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];return a>>>5&1}function UZ(a,b){a=a|0;b=b|0;H[a+600|0]=K[b|0];H[a+601|0]=K[b+1|0];H[a+602|0]=K[b+2|0];H[a+603|0]=K[b+3|0]}function Mja(a){a=a|0;var b=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!J[a+4>>2])Ab[J[J[a>>2]+4>>2]](a);return b|0}function Ima(a){a=a|0;var b=0;b=J[a+32>>2];if(!b)return 3;Pf(a,J[J[a+16>>2]>>2]);J[b+184>>2]=513;return 0}function Gka(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(e>>>0<=2)a=lz(b,c,d,e)?-1:0;else a=-1;return a|0} -function xja(a){a=a|0;var b=0,c=0;b=1;c=J[a+4>>2];if(!(!c|!K[a+8|0])){b=sf(c);J[a+4>>2]=0;b=!b}return b|0}function sg(a,b){if(K[a+11|0]>>>7|0){J[a+4>>2]=b;return}H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127}function kx(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;J[e>>2]=c;J[h>>2]=f;return 3}function Uv(a,b){a=a|0;b=b|0;a=J[J[a>>2]+4>>2];b=J[J[b>>2]+4>>2];return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)|0}function Mj(a){var b=0;a=iz(a);b=zb;if((b|0)>=0&a>>>0>=2147483648|(b|0)>0){J[194954]= -61;return-1}return a}function Dja(a){a=a|0;var b=0;J[a>>2]=240264;b=J[a+4>>2];if(!(!b|!K[a+8|0])){sf(b);J[a+4>>2]=0}return a|0}function vca(a,b){a=a|0;b=b|0;if((b|0)<=0){a=Ye(a);b=a>>>0>8192?1:8192/((a>>>0<=1?1:a)>>>0)|0}return b|0}function _ia(a){a=a|0;a=J[a>>2];return P(P(P(a&255,31)+(a>>>8&255)|0,31)+(a>>>16&255)|0,31)+(a>>>24|0)|0}function SU(a){a=a|0;var b=0;b=J[194998];if(a)J[194998]=(a|0)==-1?779860:a;return((b|0)==779860?-1:b)|0}function Em(){var a=0;J[195395]=0;a=J[195395];J[195395]=0;if((a| -0)!=1)return J[190218];ga(0)|0;_b();B()}function Dm(){var a=0;J[195395]=0;a=J[195395];J[195395]=0;if((a|0)!=1)return J[190604];ga(0)|0;_b();B()}function raa(a){a=a|0;var b=0;b=J[a+828>>2];J[b+604>>2]=J[a+780>>2];J[b+608>>2]=J[b+600>>2]-J[a+784>>2]}function nea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=Nb(a,0,256),e=(K[J[b>>2]+c|0]<<6)+-8192|0,J[d>>2]=e}function c8(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[d>>2]=0;if(!b)return 81;return Yi(b,333319,e)|0}function _7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0; -e=e|0;J[d>>2]=0;if(!b)return 81;return Yi(b,333312,e)|0}function O_(a){a=a|0;var b=0;J[a>>2]=416388;b=a-4|0;J[b>>2]=416328;if(H[a+31|0]<0)Kb(J[a+20>>2]);Kb(b)}function AS(){J[195809]=0;J[195808]=770856;J[195808]=765696;I[391620]=11310;J[195808]=765368;Rc(783244)}function u4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;a=tc(a,P(b,c),d+12|0);xb=d+16|0;return a|0}function WN(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;J[c+12>>2]=b;a=Pv(a,c+12|0,0);xb=c+16|0;return a|0}function OL(a,b){a=a|0;b=b|0;b=J[a>> -2];J[a+16>>2]=J[J[b+140>>2]+52>>2];J[a+20>>2]=J[b+144>>2];return 0}function ria(a){a=a|0;var b=0;b=J[a+4>>2];if(!(!b|!K[a+12|0])){Kb(b);J[a+4>>2]=0;J[a+8>>2]=0}return 1}function c1(a){a=a|0;a=J[(J[J[a>>2]+-64>>2]+a|0)+120>>2]+604|0;return K[a|0]|K[a+1|0]<<8|K[a+2|0]<<16}function aY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[b>>2]=J[a+24>>2];J[c>>2]=J[a+28>>2];J[d>>2]=J[a+32>>2]}function T$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[b>>2]=J[a+32>>2];J[c>>2]=J[a+36>>2];J[d>>2]=J[a+40>>2]}function CA(a,b,c,d){a=a|0; -b=b|0;c=c|0;d=d|0;J[b>>2]=J[a+28>>2];J[c>>2]=J[a+32>>2];J[d>>2]=J[a+36>>2]}function p1(a){a=a|0;a=J[(J[J[a>>2]-40>>2]+a|0)+120>>2]+600|0;return K[a|0]|K[a+1|0]<<8|K[a+2|0]<<16}function gca(a,b){a=a|0;b=b|0;J[a+528>>2]=0;J[a+516>>2]=1632;J[a+512>>2]=0;J[a+524>>2]=1632;return 1}function Uw(a,b,c){var d=0;d=xb-16|0;xb=d;a:{if((a|0)==(b|0)){H[b+120|0]=0;break a}Zw(b,c)}xb=d+16|0}function Qaa(a,b){a=a|0;b=b|0;a=J[a+12>>2];Ob(J[a+628>>2],281532,281759,0);gd(J[a+584>>2]+4|0,1);B()}function Paa(a,b){a=a| -0;b=b|0;a=J[a+12>>2];Ob(J[a+628>>2],281532,281759,0);gd(J[a+584>>2]+4|0,1);B()}function Oi(a){if(J[a+76>>2]<0)a=J[a+60>>2];else a=J[a+60>>2];if((a|0)<0){J[194954]=8;a=-1}return a}function NR(a,b,c){a=a|0;b=b|0;c=c|0;if(c>>>0<=127)a=(J[(c<<2)+764288>>2]&b)!=0;else a=0;return a|0}function Kna(a,b){a=a|0;b=b|0;a=J[a+712>>2];H[b|0]=0;if(!(!a|J[a+1504>>2]==65535))H[b|0]=1;return 0}function Hn(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}function FA(a){var b= -0;b=J[a>>2];J[a>>2]=0;if(b){if(!(!K[a+8|0]|H[b+31|0]>=0))Kb(J[b+20>>2]);Kb(b)}}function mr(a,b,c){if((b|0)>0){a=Ab[J[a+4>>2]](a,b)|0;J[c>>2]=!a<<6;return a}J[c>>2]=b?6:0;return 0}function lF(a){var b=0;b=J[a+4>>2];if(b)Kb(b);b=J[a+16>>2];if(b)Kb(b);b=J[a>>2];if(b)Kb(b);Kb(a)}function _ka(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+88>>2];if(!a)break a;b=J[a+36>>2]}return b|0}function zd(){var a=0;a=pg(4);J[a>>2]=774300;J[a>>2]=774260;J[a>>2]=774280;xa(a|0,774388,1072);B()}function zY(a,b){a=a|0;b=b|0; -var c=0;b=J[b+172>>2]+140|0;c=I[b>>1];O[a+8>>3]=I[b+2>>1];O[a>>3]=c|0}function qfa(a){a=a|0;J[J[a+388>>2]+12>>2]=0;Ab[J[J[a+404>>2]+4>>2]](a);Ab[J[J[a+404>>2]+8>>2]](a)}function nN(a,b){a=a|0;b=b|0;var c=0;c=J[J[a+12>>2]+48>>2];if(!c)return 150;return Ab[c|0](a,b)|0}function l_(a){a=a|0;J[a>>2]=415408;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=416600;J[a+12>>2]=0;return a|0}function dka(a){a=a|0;var b=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)Ab[J[J[a>>2]+4>>2]](a);return b|0}function _h(a){var b=0;b=K[a+3|0];H[a+ -3|0]=K[a|0];H[a|0]=b;b=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=b}function Wk(a){J[195395]=0;uw(a-24|0);a=J[195395];J[195395]=0;if((a|0)!=1)return;ga(0)|0;_b();B()}function To(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=Q(h);i=Q(i);j=j|0}function S$(a,b){a=a|0;b=b|0;H[a+368|0]=b;J[a+4>>2]=415608;J[a>>2]=415552;J[a+364>>2]=0;return a|0}function P$(a){a=a|0;var b=0;J[a>>2]=415608;b=a-4|0;J[b>>2]=415552;a=J[a+360>>2];if(a)Kb(a);Kb(b)}function Noa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d| -0;e=e|0;return Ab[J[J[a+548>>2]+40>>2]](a,b,c,d,e)|0}function E_(a){a=a|0;J[a>>2]=415408;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=416440;return a|0}function $0(a,b){a=a|0;b=b|0;var c=0;b=J[b+120>>2]+680|0;c=J[b>>2];O[a+8>>3]=J[b+4>>2];O[a>>3]=c|0}function zX(a){a=a|0;var b=0;J[a>>2]=428424;b=a-4|0;J[b>>2]=428404;a=J[a+28>>2];if(a)Kb(a);Kb(b)}function z$(a){a=a|0;var b=0;J[a>>2]=415708;b=a-4|0;J[b>>2]=415660;a=J[a+20>>2];if(a)Kb(a);Kb(b)}function n1(a){a=a|0;var b=0;a=J[(J[J[a>>2]-44>>2]+a|0)+ -120>>2];b=J[a+28>>2];return(b?b:a+36|0)|0}function Ud(a){var b=0;J[195395]=0;b=J[195395];J[195395]=0;if((b|0)!=1)return a;ga(0)|0;_b();B()}function SI(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;J[f>>2]=0;J[e>>2]=0;return 0}function Fda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!a|(c|0)!=156)a=d;else J[a+156>>2]=b;return a|0}function xda(a){a=a|0;var b=0;b=1;if(!(!a|!K[a+398|0])){J[a+208>>2]=J[a+208>>2]|2;b=7}return b|0}function qw(a){var b=0;a:{a=J[a>>2]-12|0;b=J[a+8>>2]-1|0;J[a+8>>2]=b;if((b| -0)>=0)break a;Kb(a)}}function pB(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;Oq(a+8|0,b,c,d,e,f,g,h)}function cc(a,b){a=a|0;b=b|0;var c=0;if(!(!a|!b)){c=J[a+676>>2];if(c){Ab[c|0](a,b);return}Kb(b)}}function aq(a){a=a|0;if((a|0)!=0&(a|0)!=760744&(a|0)!=760768&(a|0)!=781604&(a|0)!=781628)Kb(a)}function UW(a){a=a|0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=743888;J[a+12>>2]=0;J[a+16>>2]=0;return a|0}function TE(a){var b=0;a:{if(!J[a+932>>2])break a;if(!Ul(a,0,0))break a;b=J[a+932>>2]}return b} -function DL(a,b,c){a=a|0;b=b|0;c=c|0;if(fc(b,10673))a=12;else{J[c>>2]=J[a+64>>2];a=0}return a|0}function yK(a){a=a|0;var b=0;b=be(J[a+4>>2],10174);if(!b)return 11;J[a+28>>2]=J[b>>2];return 0}function sla(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=Q(g);h=h|0;i=i|0;return 0}function gC(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ab[J[J[b>>2]+16>>2]](a,b,J[c+8>>2],J[c+12>>2],0,d)}function Pq(a,b){a=a|0;b=b|0;a:{b=J[J[b+76>>2]>>2];if(b){zz(a,b);break a}J[a>>2]=0;H[a+11|0]=0}}function CP(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(cf(a,J[b+8>>2],f))Cp(b,c,d,e)}function vja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+4>>2];if(!a)return 0;return Ee(b,c,d,a)|0}function vJ(a){a=a|0;var b=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;J[a>>2]=b+1}return a|0}function td(){var a=0;J[195395]=0;a=J[195395];J[195395]=0;if((a|0)!=1)return;ga(0)|0;_b();B()}function gc(a,b){var c=0;a:{if(!a)break a;c=J[a+160>>2];if(!c)break a;Ab[c|0](a,b)}cE(a);B()}function Wq(a,b){var c=0;c=J[b>>2];J[a>>2]=c;J[J[c-12>> -2]+a>>2]=J[b+4>>2];oA(a+124|0);return a}function T1(a){a=a|0;var b=0;b=J[a+208>>2];J[a+208>>2]=0;Ab[J[J[a>>2]+16>>2]](a);J[a+208>>2]=b}function R_(a){a=a|0;J[a+4>>2]=416388;J[a>>2]=416328;if(H[a+35|0]<0)Kb(J[a+24>>2]);return a|0}function QA(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[J[a+12>>2]+56>>2]+12>>2]](J[a+52>>2],b,c)|0}function PY(a,b,c){a=a|0;b=b|0;c=c|0;J[a+4>>2]=b;J[a+12>>2]=b;b=b+c|0;J[a+16>>2]=b;J[a+8>>2]=b}function Hda(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(a){J[a+676>>2]=d;J[a+672>>2]=c;J[a+ -668>>2]=b}}function Eda(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(a){J[a+164>>2]=d;J[a+160>>2]=c;J[a+168>>2]=b}}function tn(a,b){var c=0;c=J[a+4>>2];if(c){Kb(c);J[a+4>>2]=0}c=Pb(b);J[a+12>>2]=b;J[a+4>>2]=c}function mx(a){a=a|0;var b=0;J[a>>2]=764236;b=J[a+8>>2];if(!(!b|!K[a+12|0]))Kb(b);return a|0}function f0(a,b,c,d,e,f,g,h,i){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;return 0}function Gy(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0}function FB(a,b,c,d){a= -a|0;b=b|0;c=c|0;d=d|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+72>>2]](a,b,c,d)}function Ema(a){a=a|0;a=a+24|0;jc(a,1818914159,0,1);jc(a,1986686319,0,1);jc(a,1953131887,0,1)}function EO(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+104>>2];I[a+144>>1]=0-c;J[a+140>>2]=0-P(I[b>>1],c)}function wV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return Ab[J[J[a>>2]+32>>2]](a,b,c,d,e)|0}function tK(a){a=a|0;if(Sr(J[J[a>>2]+504>>2]+108|0,J[a+44>>2])){pE(J[a+44>>2]);J[a+44>>2]=0}}function oB(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f| -0;g=g|0;h=h|0;Oq(a,b,c,d,e,f,g,h)}function k9(a){a=a|0;var b=0;J[a>>2]=388672;b=J[a+68>>2];if(b){Kb(b);J[a+68>>2]=0}return a|0}function id(a){var b=0,c=0;c=a;while(1){b=c;c=b+4|0;if(J[b>>2])continue;break}return b-a>>2}function Q$(a){a=a|0;var b=0;J[a+4>>2]=415608;J[a>>2]=415552;b=J[a+364>>2];if(b)Kb(b);Kb(a)}function xV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ae(a,J[a+8>>2]);return Fj(a,J[a+8>>2],b,c,d)|0}function waa(a){a=a|0;var b=0;b=J[a+828>>2];J[a+800>>2]=J[b+596>>2];J[a+804>>2]=J[b+608>>2]}function wW(a){a= -a|0;a=Ja(a|0)|0;a=(a|0)!=27?a:0;if(a){J[194954]=a;a=-1}else a=0;return a|0}function ula(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=Q(c);d=Q(d);e=Q(e);f=Q(f);g=Q(g);h=Q(h);i=i|0}function uO(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=0;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function paa(a){a=a|0;var b=0;b=J[a+828>>2];J[a+780>>2]=J[b+596>>2];J[a+784>>2]=J[b+600>>2]}function pV(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;xb=c+16|0;return(M[b>>2]>2]?b:a)|0}function pO(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=2;J[b>> -2]=K[a+5|0]|K[a+4|0]<<8;return 0}function n9(a,b){a=a|0;b=b|0;if(b){PA(J[a+20>>2],b,3);a=J[a+20>>2];Ab[J[J[a>>2]+16>>2]](a)}}function lS(a){a=a|0;var b=0,c=0;b=J[a>>2];c=J[a+4>>2];if(c)Ab[J[b+8>>2]](b,c);J[a+4>>2]=0}function jO(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=4;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function f_(a){a=a|0;var b=0;J[a>>2]=416648;b=J[a+88>>2];if(b)Ab[J[J[b>>2]+4>>2]](b);Kb(a)}function fO(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=6;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function cE(a){var b= -0;a:{if(!a)break a;b=J[a+156>>2];if(!b)break a;Ab[b|0](a,1)}Ha();B()}function T2(a,b,c){a=a|0;b=b|0;c=c|0;if(b)J[b>>2]=J[a+10056>>2];if(c)J[c>>2]=J[a+252>>2]}function S1(a){a=a|0;var b=0;b=J[a+216>>2];if(b){Ab[J[J[b>>2]+4>>2]](b);J[a+216>>2]=0}Vq(a)}function Mf(a,b){a=a|0;b=b|0;return(K[a+462|0]?b:b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0}function Jia(a){a=a|0;var b=0;b=a;a=J[a>>2];Ab[J[a+12>>2]](b,J[a+288>>2]);gd(a+132|0,1);B()}function E5(a,b,c){a=a|0;b=b|0;c=c|0;if(b)nh(a+20|0,b);if(c)me(a+20| -0,J[c>>2],J[c+4>>2])}function AX(a){a=a|0;var b=0;J[a+4>>2]=428424;J[a>>2]=428404;b=J[a+32>>2];if(b)Kb(b);Kb(a)}function A$(a){a=a|0;var b=0;J[a+4>>2]=415708;J[a>>2]=415660;b=J[a+24>>2];if(b)Kb(b);Kb(a)}function zn(a,b){if(b){zn(a,J[b>>2]);zn(a,J[b+4>>2]);if(H[b+31|0]<0)Kb(J[b+20>>2]);Kb(b)}}function u$(a){a=a|0;var b=0;J[a>>2]=415752;b=J[a+8>>2];if(b){Kb(b);J[a+8>>2]=0}return a|0}function t_(a){a=a|0;var b=0;J[a>>2]=416552;b=J[a+8>>2];if(b)Ab[J[J[b>>2]+4>>2]](b);Kb(a)}function rn(a,b){if(b){rn(a, -J[b>>2]);rn(a,J[b+4>>2]);if(H[b+31|0]<0)Kb(J[b+20>>2]);Kb(b)}}function r_(a){a=a|0;var b=0;J[a>>2]=416568;b=J[a+8>>2];if(b){Kb(b);J[a+8>>2]=0}return a|0}function rP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Ab[a|0](b,c,d,e)|0;yb=zb;return a|0}function pna(a,b,c){a=a|0;b=b|0;c=c|0;b=b&65535;return(ld(b?b+c|0:169776,J[a>>2])|0)!=-1|0}function mX(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;b=J[a+4>>2];if(b){sf(b);J[a+4>>2]=0}}function ll(a){a=a|0;var b=0;J[a>>2]=743888;b=J[a+4>>2];if(b)Kb(b);J[a+4>>2]= -0;return a|0}function jv(a,b,c){a=a|0;b=b|0;c=c|0;if(b)J[b>>2]=J[a+7928>>2];if(c)J[c>>2]=J[a+252>>2]}function ju(a){if(!J[a+4>>2])return;J[a+68>>2]=0;J[a+132>>2]=0;J[a+36>>2]=0;J[a+136>>2]=0}function _w(a,b,c){var d=0;d=xb-16|0;xb=d;sg(a,c);H[d+15|0]=0;H[b+c|0]=K[d+15|0];xb=d+16|0}function WP(a,b,c){a=a|0;b=b|0;c=c|0;if(!K[783704])H[783704]=1;J[a+4>>2]=776412;J[a>>2]=c}function Qq(a){a=a|0;var b=0;J[a>>2]=416440;b=J[a+4>>2];if(b){Kb(b);J[a+4>>2]=0}return a|0}function KX(a){a=a|0;var b=0;J[a>>2]=428292; -b=J[a+8>>2];if(b){Kb(b);J[a+8>>2]=0}return a|0}function sia(a){a=a|0;var b=0;J[a>>2]=241536;b=J[a+4>>2];if(!(!b|!K[a+12|0]))Kb(b);Kb(a)}function oz(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=(b|0)/(c|0)|0;J[a>>2]=d;J[a+4>>2]=b-P(c,d)}function laa(a,b){a=a|0;b=b|0;J[a+556>>2]=1736;J[a+548>>2]=1736;J[a+540>>2]=1736;return 1}function fla(){var a=0;a=xb-16|0;xb=a;J[a+12>>2]=0;XB(a+12|0);xb=a+16|0;return J[a+12>>2]}function fka(a){a=a|0;var b=0;J[a>>2]=234064;b=J[a+24>>2];if(!(K[a+28|0]|!b))Kb(b);Kb(a)}function cM(a, -b){a=a|0;b=b|0;a=J[a+4>>2];b=J[b+4>>2];return(a>>>0>>0?-1:a>>>0>b>>>0)|0}function Xr(a){a=a|0;var b=0;b=J[a+4>>2];if(b)Ab[J[b+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0}function VI(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[e>>2]=0;J[d>>2]=0;return 1}function UI(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[e>>2]=0;J[d>>2]=0;return 0}function Sma(a){a=a|0;var b=0;b=J[J[a+20>>2]+12>>2];if(b)Ab[b|0](J[a+100>>2]);Vs(a+24|0)}function P_(a){a=a|0;J[a+4>>2]=416388;J[a>>2]=416328;if(H[a+35|0]<0)Kb(J[a+ -24>>2]);Kb(a)}function Lga(a){a=a|0;var b=0;b=J[a+472>>2];J[b+92>>2]=J[a+316>>2];J[b+96>>2]=J[a+116>>2]}function Jf(a,b,c,d){var e=0;e=xb-16|0;xb=e;J[e+12>>2]=d;a=el(a,b,c,d);xb=e+16|0;return a}function yja(a){a=a|0;var b=0;J[a>>2]=240264;b=J[a+4>>2];if(!(!b|!K[a+8|0]))sf(b);Kb(a)}function js(a){a=a|0;a=Fd(a,3);J[a+944>>2]=0;J[a>>2]=241492;Nb(a+464|0,0,464);return a|0}function YL(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b+12>>2]+(c<<3)|0;J[a+4>>2]=J[a+4>>2]+d}function Opa(a,b){var c=0,d=0;c=b&31;d=(-1>>> -c&a)<>>a}function Gl(a,b){var c=0;c=xb-96|0;xb=c;if(!a){cE(0);B()}_D(J[a+348>>2],c,b);gc(a,c);B()}function vM(a){a=a|0;J[a+116>>2]=-1;J[a+304>>2]=-1;J[a+308>>2]=-1;H[a+112|0]=0;return 0}function tN(a){a=a|0;if(a>>>0<=127)a=K[(a>>>3|0)+94576|0]&1<<(a&7);else a=0;return a|0}function Ul(a,b,c){var d=0;if(!((c|b)<0|J[a+20>>2]<=(c|0)))d=J[a+16>>2]>(b|0);return d}function hk(a){var b=0,c=0;c=a;b=J[a+100>>2];a=J[a+60>>2];return bD(c,a>>>0>b>>>0?b:a)}function hca(a,b){a= -a|0;b=b|0;a=I[a>>1];b=I[b>>1];return((a|0)<(b|0)?-1:(a|0)>(b|0))|0}function dv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;jr(c,J[J[a+424>>2]+(b<<2)>>2],d);return 0}function _ma(a,b){a=a|0;b=b|0;a=L[a>>1];b=L[b>>1];return(a>>>0>>0?-1:a>>>0>b>>>0)|0}function Zaa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ob(J[a+628>>2],288672,281830,0);return 0}function TM(a){a=a|0;rd(J[a+104>>2],a+788|0);J[a+800>>2]=0;J[a+792>>2]=0;J[a+796>>2]=0}function SK(a,b){a=a|0;b=b|0;var c=0,d=0;c=a,d=Ab[J[b+52>>2]](b,0,0,0)|0,J[c+544>>2]=d} -function Kka(a,b){a=a|0;b=b|0;if(J[b+76>>2]<0)a=J[b>>2];else a=J[b>>2];return a>>>5&1}function $ma(a,b){a=a|0;b=b|0;a=J[a>>2];b=J[b>>2];return(a>>>0>>0?-1:a>>>0>b>>>0)|0}function tq(a,b,c){var d=0;d=xb-16|0;xb=d;J[d+12>>2]=c;a=Oy(a,b,c);xb=d+16|0;return a}function sA(a){a=a|0;var b=0;J[a>>2]=416440;b=J[a+4>>2];if(b){Kb(b);J[a+4>>2]=0}Kb(a)}function qC(a){a=a|0;if(K[a+64|0]){Ab[J[J[a>>2]+52>>2]](a,0);Ab[J[J[a>>2]+56>>2]](a)}}function iT(a,b,c){a=a|0;b=b|0;c=c|0;c=jq(J[b>>2])<<24;J[a+4>>2]=J[b>> -2];H[a|0]=c>>24}function c_(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+176>>2];J[c>>2]=J[a+180>>2];return 0}function bV(a,b){a=a|0;b=b|0;var c=0;c=a;a=J[b+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1}function XQ(a){a=a|0;a=782280;while(1){a=Yb(a-12|0);if((a|0)!=782112)continue;break}}function Wc(a,b,c){var d=0;d=J[a+172>>2];if(d){Ab[d|0](a,b,c);return}gc(a,251511);B()}function VQ(a){a=a|0;a=782456;while(1){a=Yc(a-12|0);if((a|0)!=782288)continue;break}}function UN(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+132>>2]; -J[c>>2]=J[a+136>>2];return 0}function TQ(a){a=a|0;a=782752;while(1){a=Yb(a-12|0);if((a|0)!=782464)continue;break}}function Sga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Mg(J[b>>2],c,d,0,e,J[a+112>>2])}function RQ(a){a=a|0;a=783056;while(1){a=Yc(a-12|0);if((a|0)!=782768)continue;break}}function OQ(a){a=a|0;a=783096;while(1){a=Yb(a-12|0);if((a|0)!=783072)continue;break}}function MQ(a){a=a|0;a=783128;while(1){a=Yc(a-12|0);if((a|0)!=783104)continue;break}}function Gd(a,b,c){var d=0;d=J[a+176>>2];if(d){Ab[d| -0](a,b,c);return}gc(a,251539);B()}function zR(a,b){a=a|0;b=b|0;if((b|0)>=0)b=J[Dm()+((b&255)<<2)>>2];return b<<24>>24}function uja(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(!a)return 0;return!zg(a,b,c)|0}function qha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ab[J[J[a+452>>2]+4>>2]](a,0,0,0,b,c,d)}function oja(a,b){a=a|0;b=b|0;a=J[a+4>>2];if(!a)return 0;return(hl(b,a)|0)==(b|0)|0}function kn(a,b,c,d,e,f,g,h,i){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}function bK(a,b){a=a|0;b=b|0;return Ab[J[J[J[J[a>> -2]+712>>2]+3084>>2]+12>>2]](a,b)|0}function _L(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b+12>>2]+(c<<3)|0;J[a>>2]=J[a>>2]+d}function RI(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(e)H[d|0]=0;return 0}function Q0(a){a=a|0;return J[(J[(J[J[a>>2]-96>>2]+a|0)+120>>2]+648|0)+12>>2]>>>31|0}function O0(a){a=a|0;return J[(J[(J[J[a>>2]-100>>2]+a|0)+120>>2]+648|0)+8>>2]>>>31|0}function BR(a,b){a=a|0;b=b|0;if((b|0)>=0)b=J[Em()+((b&255)<<2)>>2];return b<<24>>24}function us(a){var b=0;b=xb-96|0;xb=b;a=Mi(Oi(a), -b);xb=b+96|0;return a?0:J[b+24>>2]}function tia(a,b,c){a=a|0;b=b|0;c=c|0;return K[(J[a+928>>2]+P(J[a+16>>2],c)|0)+b|0]}function qU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ab[J[J[a>>2]+32>>2]](a,b,c,d)|0}function oX(a){a=a|0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=428736;return a|0}function lK(a,b){a=a|0;b=b|0;return Ab[J[J[J[J[a>>2]+712>>2]+3084>>2]+8>>2]](a,b)|0}function aU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ab[J[J[a>>2]+48>>2]](a,b,c,d)|0}function a6(a){a=a|0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>> -2]=393404;J[a+12>>2]=0;return a|0}function RB(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+24>>2]](a,b,c)}function Np(){var a=0;a=pg(4);J[a>>2]=774300;J[a>>2]=774260;xa(a|0,774376,1072);B()}function Lb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(a)Ee(b,1,c,a);return(a|0)!=0|0}function GB(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+68>>2]](a,b,c)}function EB(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+76>>2]](a,b,c)}function D8(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[a+ -2|0]=d;H[a+1|0]=c;H[a|0]=b}function Aia(a,b,c){a=a|0;b=b|0;c=c|0;return K[(J[a+932>>2]+P(J[a+16>>2],c)|0)+b|0]}function $z(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=J[a+4>>2];if(a)H[a+65|0]=0}function Vb(a){if(H[a+23|0]<0)Kb(J[a+12>>2]);if(H[a+11|0]<0)Kb(J[a>>2]);return a}function xaa(a){a=a|0;var b=0;b=J[a+916>>2];J[a+800>>2]=J[a+912>>2];J[a+804>>2]=b}function saa(a){a=a|0;var b=0;b=J[a+916>>2];J[a+780>>2]=J[a+912>>2];J[a+784>>2]=b}function rla(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f= -Q(f);g=Q(g);h=h|0}function l8(a){a=a|0;J[a>>2]=391512;if(H[a+43|0]<0)Kb(J[a+32>>2]);return Uf(a)|0}function Wia(a,b){a=a|0;b=b|0;var c=0;c=a;a=b-1>>>0<9;J[c+68>>2]=a?b:0;return a|0}function PB(a,b,c){a=a|0;b=+b;c=+c;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+32>>2]](a,b,c)}function OB(a,b,c){a=a|0;b=+b;c=+c;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+36>>2]](a,b,c)}function Gm(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=J[b>>2];J[a+4>>2]=J[c>>2];return a|0}function B_(a){a=a|0;J[a>>2]=415408;J[a+8>>2]=-16777216;J[a>>2]=416488;return a| -0}function sl(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=+h;i=+i}function _J(a,b){a=a|0;b=b|0;b=b-J[a+16>>2]|0;return(b>>>0>2]?b+1|0:0)|0}function Yha(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a>>2]+12>>2]](a,b,1,c,0,0)|0}function yQ(a){a=a|0;if(!K[782092]){Sg(782080,226148);H[782092]=1}return 782080}function wQ(a){a=a|0;if(!K[782108]){ij(782096,765640);H[782108]=1}return 782096}function q1(a){a=a|0;a=J[a+120>>2]+600|0;return K[a|0]|K[a+1|0]<<8|K[a+2|0]<<16}function d1(a){a= -a|0;a=J[a+120>>2]+604|0;return K[a|0]|K[a+1|0]<<8|K[a+2|0]<<16}function Xga(a){a=a|0;var b=0;b=J[a+472>>2];J[b+36>>2]=0;J[b+44>>2]=J[a+116>>2]}function QU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=xb-16|0;xb=b;qy(a,c,d);xb=b+16|0}function Mt(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[e>>2]=0;return 0}function MU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=xb-16|0;xb=b;cy(a,c,d);xb=b+16|0}function LQ(a){a=a|0;if(!K[781996]){Sg(781984,224949);H[781996]=1}return 781984}function IY(a){a=a|0;a=J[a+172>>2]+132| -0;return K[a|0]|K[a+1|0]<<8|K[a+2|0]<<16}function HQ(a){a=a|0;if(!K[782028]){Sg(782016,227976);H[782028]=1}return 782016}function FQ(a){a=a|0;if(!K[782044]){ij(782032,765520);H[782044]=1}return 782032}function CY(a){a=a|0;a=J[a+172>>2]+136|0;return K[a|0]|K[a+1|0]<<8|K[a+2|0]<<16}function CQ(a){a=a|0;if(!K[782060]){Sg(782048,227942);H[782060]=1}return 782048}function Bl(a){a=a|0;var b=0,c=0;b=J[a+628>>2];c=J[a+644>>2];iD(a);Ab[c|0](b)|0}function AQ(a){a=a|0;if(!K[782076]){ij(782064,765556);H[782076]= -1}return 782064}function qpa(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a+548>>2]+20>>2]](a,b,c)|0}function kpa(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a+548>>2]+24>>2]](a,b,c)|0}function Toa(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a+548>>2]+32>>2]](a,b,c)|0}function Roa(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a+548>>2]+36>>2]](a,b,c)|0}function Npa(a){var b=0;while(1){if(a){a=a-1&a;b=b+1|0;continue}break}return b}function Apa(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a+548>>2]+12>>2]](a,b,c)|0}function $S(a, -b,c){a=a|0;b=b|0;c=c|0;c=sy(J[b>>2]);J[a+4>>2]=J[b>>2];J[a>>2]=c}function lM(a,b,c){a=a|0;b=b|0;c=c|0;c=dc(c,rm(a));J[J[a+388>>2]+(b<<2)>>2]=c}function iM(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+388>>2]+(b<<2)|0;J[a>>2]=J[a>>2]+c}function eV(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)!=1){yw(a,c);return}Sg(a,225772)}function Nia(a,b){a=a|0;b=b|0;return(K[a+462|0]?b:b<<8|(b&65280)>>>8)<<16>>16}function LP(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(cf(a,J[b+8>>2],0))Dp(b,c,d)}function JQ(a){a=a|0;if(!K[782012]){ij(782E3,765484); -H[782012]=1}return 782E3}function JO(a){a=a|0;Ab[J[J[J[a+12>>2]+56>>2]+8>>2]](J[a+52>>2],0,0);return 0}function Ipa(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a+548>>2]+8>>2]](a,b,c)|0}function EZ(a){a=a|0;a:{if(K[a+81|0])break a;if(!eA(a))break a;H[a+81|0]=1}}function rS(){J[195831]=0;J[195830]=770856;J[195830]=765696;J[195830]=768540}function o1(a){a=a|0;var b=0;a=J[a+120>>2];b=J[a+28>>2];return(b?b:a+36|0)|0}function mda(a,b){a=a|0;b=b|0;if(a){J[a+280>>2]=b;J[a+204>>2]=J[a+204>>2]|2}}function mS(){J[195839]= -0;J[195838]=770856;J[195838]=765696;J[195838]=769036}function k8(a){a=a|0;J[a>>2]=391512;if(H[a+43|0]<0)Kb(J[a+32>>2]);Kb(Uf(a))}function jS(){J[195841]=0;J[195840]=770856;J[195840]=765696;J[195840]=769200}function i$(a,b,c){a=a|0;b=b|0;c=c|0;O[b>>3]=O[a+56>>3];O[c>>3]=O[a- -64>>3]}function hS(){J[195843]=0;J[195842]=770856;J[195842]=765696;J[195842]=769364}function fS(){J[195845]=0;J[195844]=770856;J[195844]=765696;J[195844]=769528}function cm(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0; -g=g|0;h=h|0}function Yc(a){if(K[a+11|0]>>>7|0)Cm(J[a>>2],J[a+8>>2]&2147483647);return a}function Yb(a){if(K[a+11|0]>>>7|0)Om(J[a>>2],J[a+8>>2]&2147483647);return a}function YR(){J[195863]=0;J[195862]=770856;J[195862]=765696;J[195862]=769692}function Xka(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return mE(a,b,c,d,e)|0}function Xha(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a>>2]+16>>2]](a,b,1,c)|0}function Mi(a,b){if((a|0)<0){J[194954]=8;return-1}return kz(a,228753,b,4096)}function Gp(a,b){var c=0;c=a; -a=(b>>>0)/100|0;return Ei(Ei(c,a),b-P(a,100)|0)}function Fp(a,b){var c=0;c=a;a=(b>>>0)/1E4|0;return Gp(Ei(c,a),b-P(a,1E4)|0)}function Ep(a,b){var c=0;c=a;a=(b>>>0)/1E6|0;return Fp(Ei(c,a),b-P(a,1E6)|0)}function zia(a){a=a|0;var b=0;b=J[a+4>>2];return(b?J[a+44>>2]?b+40|0:0:0)|0}function zB(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+4>>2];if(a)H[a+65|0]=0}function wO(a,b){a=a|0;b=b|0;return(b>>>0<=255?K[(J[a+16>>2]+b|0)+6|0]:0)|0}function lz(a,b,c,d){if(J[a+76>>2]<0)return mz(a,b,c,d);return mz(a,b,c,d)} -function hL(a,b){a=a|0;b=b|0;return(b>>>0<=255?L[J[a+16>>2]+(b<<1)>>1]:0)|0}function ZP(a,b,c){a=a|0;b=b|0;c=c|0;return J[b>>2]==(c|0)&J[b+4>>2]==(a|0)}function Foa(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a+552>>2]>>2]](a,b,c)|0}function kJ(a){a=a|0;var b=0;b=J[a+32>>2];if((b|0)==-1)b=Qe(a);return b|0}function h$(a,b,c){a=a|0;b=b|0;c=c|0;O[b>>3]=O[a+52>>3];O[c>>3]=O[a+60>>3]}function gka(a){a=a|0;var b=0;J[a>>2]=234032;b=J[a+4>>2];if(b)Kb(b);Kb(a)}function b9(a){a=a|0;var b=0;J[a>>2]=388672;b=J[a+ -68>>2];if(b)Kb(b);Kb(a)}function T_(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+48>>2];J[c>>2]=J[a+52>>2]}function Sc(a,b,c){var d=0;d=xb-16|0;xb=d;J[d+12>>2]=c;Sy(a,b,c);xb=d+16|0}function S_(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+44>>2];J[c>>2]=J[a+48>>2]}function Q3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ar(J[a+12>>2],b,c,d)|0}function JR(a,b){a=a|0;b=b|0;if(b>>>0<=127)b=J[Em()+(b<<2)>>2];return b|0}function IK(a){a=a|0;a=J[a+140>>2];if(!a)return 0;return a+(K[a|0]==47)|0}function HR(a,b){a=a|0;b=b|0; -if(b>>>0<=127)b=J[Dm()+(b<<2)>>2];return b|0}function uy(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a>>2]+48>>2]](a,b,c)|0}function tla(a,b,c,d,e,f,g){a=a|0;b=b|0;c=Q(c);d=Q(d);e=Q(e);f=Q(f);g=g|0}function t$(a){a=a|0;var b=0;J[a>>2]=415752;b=J[a+8>>2];if(b)Kb(b);Kb(a)}function q_(a){a=a|0;var b=0;J[a>>2]=416568;b=J[a+8>>2];if(b)Kb(b);Kb(a)}function qP(a,b){a=a|0;b=b|0;return Ab[J[J[J[a>>2]+488>>2]+12>>2]](a,b)|0}function KB(a,b){a=a|0;b=b|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+52>>2]](a,b)}function JX(a){a= -a|0;var b=0;J[a>>2]=428292;b=J[a+8>>2];if(b)Kb(b);Kb(a)}function HB(a,b){a=a|0;b=b|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+64>>2]](a,b)}function F8(a){a=a|0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;return a|0}function DB(a,b){a=a|0;b=b|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+80>>2]](a,b)}function BV(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[J[J[a>>2]+12>>2]](a,b,c)|0}function AP(a){a=a|0;if(!a)return 0;return(Bh(a,773780,773924,0)|0)!=0|0}function AN(a,b){a=a|0;b=b|0;return Ab[J[J[J[a>>2]+544>>2]+12>>2]](a,b)|0}function sP(a, -b){a=a|0;b=b|0;return Ab[J[J[J[a>>2]+488>>2]+8>>2]](a,b)|0}function pQ(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0}function kM(a,b){a=a|0;b=b|0;return Rb(J[J[a+388>>2]+(b<<2)>>2],rm(a))|0}function jaa(a,b){a=a|0;b=b|0;J[a+548>>2]=1737;J[a+540>>2]=1737;return 1}function gd(a,b){a=a|0;b=b|0;if(!J[195395]){J[195395]=a;J[195396]=b}cb()}function eka(a){a=a|0;var b=0;b=a;a=J[a+4>>2]+1|0;J[b+4>>2]=a;return a|0}function d6(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0}function Zla(a, -b,c){a=a|0;b=b|0;c=c|0;H[c+140|0]=K[c+140|0]&247;return 0}function Nma(a,b,c){a=a|0;b=b|0;c=c|0;H[c+140|0]=K[c+140|0]&127;return 0}function Fx(a,b){var c=0;c=J[b>>2];J[b>>2]=0;ge(a,c);J[a+4>>2]=J[b+4>>2]}function D_(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+4>>2];J[c>>2]=J[a+8>>2]}function Cla(a,b,c){a=a|0;b=b|0;c=c|0;a=J[b+16>>2];if(a)J[b+16>>2]=a-1}function BN(a,b){a=a|0;b=b|0;return Ab[J[J[J[a>>2]+544>>2]+8>>2]](a,b)|0}function $ba(a){a=a|0;J[a+84>>2]=131088;I[a+98>>1]=L[a+90>>1]==32844?1:3}function o_(a){a= -a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=416584;return a|0}function jca(a,b){a=a|0;b=b|0;Ob(J[a+628>>2],J[a>>2],265024,0);return 0}function dja(a){a=a|0;return(J[a+32>>2]+J[a+12>>2]|0)+(J[a+44>>2]<<2)|0}function aJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[d>>2]=0;return 0}function VV(a,b){a=a|0;b=b|0;ae(a,J[a+8>>2]);return If(a,J[a+8>>2],b)|0}function K0(a){a=a|0;return J[J[(J[J[a>>2]-116>>2]+a|0)+120>>2]+688>>2]}function $k(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[e>>2]=c;return 3}function w$(a){a= -a|0;J[a+8>>2]=0;I[a+4>>1]=0;J[a>>2]=415752;return a|0}function uL(a,b){a=a|0;b=b|0;J[a+16>>2]=J[J[a>>2]+712>>2]+668;return 0}function u1(a){a=a|0;return+O[J[(J[J[a>>2]-32>>2]+a|0)+120>>2]+640>>3]}function r1(a){a=a|0;return+O[J[(J[J[a>>2]-36>>2]+a|0)+120>>2]+632>>3]}function g1(a){a=a|0;return J[J[(J[J[a>>2]-56>>2]+a|0)+120>>2]+608>>2]}function e1(a){a=a|0;return J[J[(J[J[a>>2]-60>>2]+a|0)+120>>2]+612>>2]}function a1(a){a=a|0;return J[J[(J[J[a>>2]-68>>2]+a|0)+120>>2]+620>>2]}function _U(a){a=a|0; -J[a+16>>2]=J[a+16>>2]|1;if(H[a+20|0]&1){Ra();B()}}function Xaa(a,b){a=a|0;b=b|0;Ob(J[a+628>>2],288657,281830,0);return 0}function U0(a){a=a|0;return J[J[(J[J[a>>2]-84>>2]+a|0)+120>>2]+616>>2]}function Soa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return zt(a,b,c,d,0,0)|0}function S0(a){a=a|0;return J[J[(J[J[a>>2]-88>>2]+a|0)+120>>2]+628>>2]}function M2(a){a=a|0;sf(J[a+12>>2]);J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0}function M0(a){a=a|0;return J[J[(J[J[a>>2]-104>>2]+a|0)+120>>2]+16>>2]}function LX(a){a=a|0;J[a+ -8>>2]=0;I[a+6>>1]=0;J[a>>2]=428292;return a|0}function LO(a){a=a|0;return(a>>>0<=390?I[(a<<1)+35664>>1]+31440|0:0)|0}function Fla(a,b,c){a=a|0;b=b|0;c=c|0;a=J[b+4>>2];if(a)J[b+4>>2]=a-1}function Ch(a,b){a=a|0;b=b|0;H[a|0]=2;H[a+1|0]=3;H[a+2|0]=0;H[a+3|0]=4}function l1(a){a=a|0;return J[J[(J[J[a>>2]-48>>2]+a|0)+120>>2]+20>>2]}function j1(a){a=a|0;return J[J[(J[J[a>>2]-52>>2]+a|0)+120>>2]+24>>2]}function MO(a){a=a|0;return I[((a>>>0<=257?a:0)<<1)+35136>>1]+31440|0}function wpa(a,b){a=a|0;b=b|0;return Ab[J[J[a+ -548>>2]+16>>2]](a,b)|0}function vf(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}function pma(a,b,c){a=a|0;b=b|0;c=c|0;if(!K[J[a+100>>2]+5|0])cG(b)}function iha(a){a=a|0;var b=0;b=J[a>>2];J[b+20>>2]=47;Ab[J[b>>2]](a)}function bW(a,b){a=a|0;b=b|0;if(!J[195395]){J[195395]=a;J[195396]=b}}function Y_(a){a=a|0;a=J[a+28>>2];if(!a)return 255;return K[a+11|0]}function X_(a){a=a|0;a=J[a+24>>2];if(!a)return 255;return K[a+11|0]}function QR(a){a=a|0;var b=0;b=J[195463]+1|0;J[195463]=b;J[a+4>>2]=b} -function PS(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Up(a,f)}function Loa(a){a=a|0;var b=0;b=J[a+548>>2];if(b)Ab[J[b+44>>2]](a)}function Kf(a){a=a|0;var b=0;b=Pb(4);J[b>>2]=391956;return fh(a,b)|0}function Dia(a){a=a|0;a=J[a+24>>2];J[a+4>>2]=4096;J[a>>2]=J[a+52>>2]}function $oa(a,b){a=a|0;b=b|0;return Ab[J[J[a+548>>2]+28>>2]](a,b)|0}function lo(a){a=a|0;Kb(J[a+144>>2]);Kb(J[a+272>>2]);Kb(a);return 0}function k0(a,b){a=a|0;b=b|0;Sq(b,J[a>>2]<<2,J[a+4>>2]<<2);return 0}function Is(a,b){a=a|0; -b=b|0;a=pg(4);J[a>>2]=b;xa(a|0,774020,0);B()}function Gi(a,b){return b?a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24):a}function $q(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(a)H[a+65|0]=0}function ska(a,b){a=a|0;b=b|0;a=Nw(a,b);J[a>>2]=774476;return a|0}function j3(a,b){a=a|0;b=b|0;J[a+4>>2]=b;J[a>>2]=394144;return a|0}function dy(a,b,c){a=a|0;b=b|0;c=c|0;return fl(0,a,b,c?c:781656)|0}function Y0(a){a=a|0;return J[(J[J[a>>2]-76>>2]+a|0)+120>>2]+456|0}function WY(a,b){a=a|0;b=b|0;J[a+4>>2]=b;J[a>>2]=427204; -return a|0}function Qg(a,b){a=a|0;b=b|0;if(!J[a+4>>2])Mb(a+52|0,b+52|0,876)}function Ika(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ee(c,1,d,b)|0}function Hka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Gc(c,1,d,b)|0}function Gda(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return nu(d,b,c,d)|0}function ER(a,b,c){a=a|0;b=b|0;c=c|0;return(b>>>0<128?b:c)<<24>>24}function zm(a,b,c,d,e){b=Za(a|0,b|0,c|0,d|0,e|0)|0;zb=yb;return b}function q8(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;Be(a+12|0);return a|0}function npa(a){a=a|0;if(K[a+ -5|0])Yn(J[a+32>>2]);Ud(a+8|0);Kb(a)}function iz(a){if(J[a+76>>2]<0){a=jz(a);return a}a=jz(a);return a}function iia(a){a=a|0;return(J[a+4>>2]?J[a+16>>2]>J[a+8>>2]:-1)|0}function e3(a,b,c){a=a|0;b=+b;c=+c;a=J[a+4>>2];if(a)H[a+65|0]=0}function b8(a){a=a|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;return a|0}function Via(a,b,c){a=a|0;b=b|0;c=c|0;J[a+396>>2]=c;J[a+392>>2]=b}function Kma(a,b,c){a=a|0;b=b|0;c=c|0;hG(J[a+100>>2],b,J[a+4>>2])}function J1(a){a=a|0;a=J[a+208>>2];if(a)Ab[J[J[a>>2]+84>>2]](a)}function w1(a){a= -a|0;return J[(J[J[a>>2]-28>>2]+a|0)+120>>2]+4|0}function vX(a,b,c){a=a|0;b=b|0;c=c|0;I[a+140>>1]=b;I[a+142>>1]=c}function tja(a){a=a|0;a=J[a+4>>2];if(!a)return 0;return Mj(a)|0}function sZ(a,b){a=a|0;b=b|0;a=Nw(a,b);J[a>>2]=774528;return a|0}function rja(a){a=a|0;a=J[a+4>>2];if(!a)return 0;return!Nj(a)|0}function qQ(a){a=a|0;var b=0,c=0;b=a,c=Vd(),J[b>>2]=c;return a|0}function pia(a,b){a=a|0;b=b|0;if(b)H[a+12|0]=0;return J[a+4>>2]}function o$(a){a=a|0;return K[a+14|0]|K[a+13|0]<<8|K[a+12|0]<<16}function nja(a){a= -a|0;a=J[a+4>>2];if(!a)return-1;return ke(a)|0}function aA(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[a+89|0]=0}function _Z(a,b){a=a|0;b=b|0;if(J[a+20>>2]==(b|0))J[a+20>>2]=0}function ZZ(a,b){a=a|0;b=b|0;if(J[a+28>>2]==(b|0))J[a+28>>2]=0}function Z1(a,b){a=a|0;b=b|0;return gB(J[J[a>>2]-12>>2]+a|0,b)|0}function YZ(a,b){a=a|0;b=b|0;if(J[a+24>>2]==(b|0))J[a+24>>2]=0}function VA(a){a=a|0;var b=0;b=J[a>>2];if(a)Ab[J[b+8>>2]](b,a)}function HV(a,b,c){a=a|0;b=b|0;c=c|0;return oy(a,(b<<2)+a|0,c)|0}function zna(a){a= -a|0;return(a>>>0<=255?L[(a<<1)+24864>>1]:0)|0}function sma(a){a=a|0;a=a+24|0;jc(a,1818847073,1,0);Uc(a,0,912)}function pha(a){a=a|0;Vr(a,1);Vr(a,0);Kb(J[a+4>>2]);J[a+4>>2]=0}function pY(a){a=a|0;a=J[J[a+172>>2]+88>>2];return(a?a+4|0:0)|0}function ly(a,b){a=a|0;b=b|0;return Ab[J[J[a>>2]+28>>2]](a,b)|0}function hM(a,b,c){a=a|0;b=b|0;c=c|0;J[J[a+388>>2]+(b<<2)>>2]=c}function gV(a,b){a=a|0;b=b|0;return Ab[J[J[a>>2]+44>>2]](a,b)|0}function fo(a){var b=0;b=J[a+932>>2];if(b){Kb(b);J[a+932>>2]=0}}function dia(a, -b){a=a|0;b=b|0;oc(J[a+168>>2],b,255);gd(a,1);B()}function aK(a,b){a=a|0;b=b|0;Mb(b,J[a+132>>2]+4|0,156);return 0}function ZU(a,b){a=a|0;b=b|0;return a-48>>>0<10|(a|32)-97>>>0<6}function UB(a){a=a|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+12>>2]](a)}function R0(a){a=a|0;return J[(J[a+120>>2]+648|0)+12>>2]>>>31|0}function QB(a){a=a|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+28>>2]](a)}function LB(a){a=a|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+48>>2]](a)}function JU(a,b){a=a|0;b=b|0;return Ab[J[J[a>>2]+12>>2]](a,b)|0}function JB(a){a= -a|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+56>>2]](a)}function IB(a){a=a|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+60>>2]](a)}function HY(a){a=a|0;a=J[J[a+172>>2]+84>>2];return(a?a+4|0:0)|0}function GY(a){a=a|0;a=J[J[a+172>>2]+72>>2];return(a?a+4|0:0)|0}function FY(a){a=a|0;a=J[J[a+172>>2]+76>>2];return(a?a+4|0:0)|0}function Dka(a,b){a=a|0;b=b|0;if(!b)return-1;return J[b+16>>2]}function CB(a){a=a|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+84>>2]](a)}function uY(a){a=a|0;return L[(J[a+172>>2]+112|0)+6>>1]>>>15|0}function tY(a){a= -a|0;return L[(J[a+172>>2]+112|0)+4>>1]>>>15|0}function au(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=Q(d);e=Q(e);f=f|0}function aja(a,b){a=a|0;b=b|0;J[a+336>>2]=J[a+44>>2]>(b|0)?b:0}function aba(a){a=a|0;yc(J[a+628>>2],288464,281042,0);return 1}function _I(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return J[a+28>>2]}function ZI(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return J[a+32>>2]}function Yaa(a){a=a|0;Ob(J[a+628>>2],288688,281830,0);return 0}function Waa(a){a=a|0;Ob(J[a+628>>2],288640,281830,0);return 0}function VB(a){a= -a|0;a=J[a+4>>2];if(a)Ab[J[J[a>>2]+8>>2]](a)}function P0(a){a=a|0;return J[(J[a+120>>2]+648|0)+8>>2]>>>31|0}function Eg(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g}function AA(a){a=a|0;return K[a+10|0]|K[a+9|0]<<8|K[a+8|0]<<16}function $w(a){if(a>>>0>1073741823){zd();B()}return ny(a<<2,4)}function zi(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return 0}function u2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ic(d,c)|0}function py(a){a=a|0;J[a>>2]=759360;Yb(a+32|0);return dl(a)|0}function p$(a){a=a| -0;return K[a+6|0]|K[a+5|0]<<8|K[a+4|0]<<16}function i_(a){a=a|0;J[a>>2]=415408;J[a>>2]=416624;return a|0}function gQ(a,b,c){a=a|0;b=b|0;c=c|0;return Hw(a,b,c,id(c))|0}function g0(a){a=a|0;return L[(J[J[a>>2]-108>>2]+a|0)+216>>1]}function JN(a,b){a=a|0;b=b|0;J[b>>2]=-1;J[b+4>>2]=14;return 0}function I0(a){a=a|0;return J[(J[J[a>>2]-120>>2]+a|0)+156>>2]}function CK(a,b,c){a=a|0;b=b|0;c=c|0;if(c)J[c>>2]=b;return 0}function xP(a,b){a=a|0;b=b|0;return J[J[a+424>>2]+(b<<2)>>2]}function p8(a){a=a|0;a=J[J[a>> -2]-12>>2]+a|0;Be(a+12|0);Kb(a)}function kH(a,b,c){a=a|0;b=b|0;c=c|0;return J[a>>2]==(b|0)|0}function jZ(a,b){a=a|0;b=b|0;J[a+16>>2]=J[a>>2]+296;return 0}function gM(a,b){a=a|0;b=b|0;return J[J[a+388>>2]+(b<<2)>>2]}function e2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Lq(a+8|0,b,c,d)}function dm(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0}function Rma(a){a=a|0;return!(K[a+16|0]&32?K[a+12|0]&16:1)|0}function Nja(a){a=a|0;J[a+4>>2]=J[a+4>>2]+1;return J[a+4>>2]}function JL(a,b){a=a|0;b=b|0;J[J[a+8>>2]+308>> -2]=-1;return 0}function yn(a,b){if(b){yn(a,J[b>>2]);yn(a,J[b+4>>2]);Kb(b)}}function rl(a,b){a=a|0;b=b|0;a=J[a+4>>2];if(a)H[a+65|0]=0}function br(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;f=f|0}function _P(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}function Uj(a,b){if(b){Uj(a,J[b>>2]);Uj(a,J[b+4>>2]);Kb(b)}}function Tj(a,b){if(b){Tj(a,J[b>>2]);Tj(a,J[b+4>>2]);Kb(b)}}function Sj(a,b){if(b){Sj(a,J[b>>2]);Sj(a,J[b+4>>2]);Kb(b)}}function Qo(a){var b=0;b=J[a+28>>2];if(!b)b=oi(a);return b}function Qla(a){a= -a|0;var b=0;b=J[a+4>>2];if(b)iG(b);Kb(a)}function Fy(a,b,c){a=a|0;b=b|0;c=c|0;return oy(a,a+b|0,c)|0}function Dq(a,b){if(b){Dq(a,J[b>>2]);Dq(a,J[b+4>>2]);Kb(b)}}function wR(a,b,c){a=a|0;b=b|0;c=c|0;return((b|0)<0?c:b)|0}function v_(a){a=a|0;J[a+8>>2]=0;J[a>>2]=416552;return a|0}function vN(a){a=a|0;return a-48>>>0<10|(a&-33)-65>>>0<26}function s_(a){a=a|0;J[a+8>>2]=0;J[a>>2]=416568;return a|0}function iW(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;zb=0;return 0}function aQ(a,b,c){a=a|0;b=b|0;c=c|0;J[a+4>>2]= -b;J[a>>2]=c}function Pha(a){a=a|0;a=J[a>>2];J[a+20>>2]=0;J[a+108>>2]=0}function Li(a,b,c){a=a|0;b=b|0;c=c|0;return Ab[c|0](a,b)|0}function $la(a,b){a=a|0;b=b|0;return K[a+19|0]-K[b+19|0]|0}function x_(a,b){a=a|0;b=b|0;if(b-1>>>0<=1)J[a+16>>2]=b}function uaa(a){a=a|0;J[a+916>>2]=J[a+916>>2]-J[a+784>>2]}function gla(a,b,c){a=a|0;b=b|0;c=c|0;return Qb(P(b,c))|0}function cx(a){a=a|0;J[a>>2]=765368;Yb(a+12|0);return a|0}function bx(a){a=a|0;J[a>>2]=765408;Yb(a+16|0);return a|0}function av(a,b){a=a|0;b= -b|0;I[b>>1]=L[a+164>>1];return 0}function Gia(a){a=a|0;a=J[a+24>>2];H[(a?a-20|0:0)+56|0]=1}function GK(a,b){a=a|0;b=b|0;I[b>>1]=L[a+312>>1];return 0}function zp(a){a=a|0;J[a>>2]=774428;qw(a+4|0);return a|0}function xB(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[a+89|0]=0}function vn(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=0;J[c>>2]=0}function rw(a){a=a|0;J[a>>2]=774408;qw(a+4|0);return a|0}function eaa(a){a=a|0;a=J[a+584>>2];if(a)Kb(a);return 1}function dg(a){var b=0,c=0;b=a,c=Ad(0,0,0),J[b+384>>2]=c}function d2(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Lq(a,b,c,d)}function cl(a,b){var c=0;c=ny(b,1);J[a+4>>2]=b;J[a>>2]=c}function Z7(a){a=a|0;J[a>>2]=392260;qd(a+4|0);return a|0}function Wka(a,b,c){a=a|0;b=b|0;c=c|0;return Ug(a,b,c)|0}function Tia(a,b){a=a|0;b=Q(b);N[a+344>>2]=b>Q(0)?b:Q(0)}function HO(a){a=a|0;J[a+140>>2]=J[a+140>>2]+I[a+144>>1]}function oP(a){a=a|0;a=a<<13^a;a=a>>>17^a;return a<<5^a}function lia(a){a=a|0;return(J[a+4>>2]?J[a+16>>2]:-1)|0}function jla(a,b,c){a=a|0;b=b|0;c=c|0;return 1517976186}function fJ(a, -b,c){a=a|0;b=b|0;c=c|0;return ti(a,b,c)|0}function cja(a,b){a=a|0;b=b|0;return J[a>>2]==J[b>>2]|0}function cI(a){a=a|0;if(!(!a|(a|0)==169776))Kb(iI(a))}function SM(a,b,c){a=a|0;b=b|0;c=c|0;return Rr(a,b,c)|0}function Qw(a,b,c,d){a=rq(a,b,c,0,-2147483648);return a}function OP(a,b,c){a=a|0;b=b|0;c=c|0;return cf(a,b,0)|0}function Kga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[d>>2]=0}function Jga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[d>>2]=c}function $u(a,b){a=a|0;b=b|0;Mb(b,a+168|0,196);return 0}function yda(a){a= -a|0;if(a)J[a+208>>2]=J[a+208>>2]|1}function y1(a){a=a|0;return(J[J[a>>2]-24>>2]+a|0)+84|0}function xy(a){a=a|0;return Rm(J[J[a>>2]-12>>2]+a|0)|0}function o0(a){a=a|0;return xn(J[J[a>>2]-12>>2]+a|0)|0}function lV(a){a=a|0;return kl(J[J[a>>2]-12>>2]+a|0)|0}function kia(a){a=a|0;return(J[a+4>>2]?J[a+8>>2]:-1)|0}function by(a,b){a=a|0;b=b|0;Ab[J[J[b>>2]+24>>2]](a,b)}function b2(a){a=a|0;return Uh(J[J[a>>2]-12>>2]+a|0)|0}function ay(a,b){a=a|0;b=b|0;Ab[J[J[b>>2]+28>>2]](a,b)}function Yt(a){a=a|0;a=J[a+ -156>>2];if(a)J[a+36>>2]=0}function Xx(a,b){a=a|0;b=b|0;Ab[J[J[b>>2]+20>>2]](a,b)}function XK(a,b){a=a|0;b=b|0;J[b+376>>2]=J[b+376>>2]|1}function Uha(a){a=a|0;return Ab[J[J[a>>2]+28>>2]](a)|0}function SP(a){a=a|0;if(a){a=a-24|0;J[a>>2]=J[a>>2]+1}}function NV(a){a=a|0;return xl(J[J[a>>2]-12>>2]+a|0)|0}function JZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 12}function Fi(a,b){var c=0;c=$w(b);J[a+4>>2]=b;J[a>>2]=c}function F4(a,b){a=a|0;b=b|0;if(b)Ab[J[a+8>>2]](a,b)}function Dy(a){a=a|0;return Sm(J[J[a>> -2]-12>>2]+a|0)|0}function yz(a,b){a=a|0;b=b|0;a=J[a>>2];if(a)Az(a,b)}function te(a,b){a=bz(a,b);return K[a|0]==(b&255)?a:0}function tca(a,b,c){a=a|0;b=b|0;c=c|0;dk(b,(c|0)/2|0)}function rca(a,b,c){a=a|0;b=b|0;c=c|0;Zh(b,(c|0)/4|0)}function qca(a,b,c){a=a|0;b=b|0;c=c|0;vr(b,(c|0)/8|0)}function Zx(a){a=a|0;return Ab[J[J[a>>2]+12>>2]](a)|0}function Yx(a){a=a|0;return Ab[J[J[a>>2]+16>>2]](a)|0}function Uz(a){a=a|0;return L[a+10>>1]|L[a+12>>1]<<16}function SF(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0} -function HX(a){a=a|0;return L[a+14>>1]|L[a+16>>1]<<16}function Ay(a){a=a|0;return Ab[J[J[a>>2]+24>>2]](a)|0}function z8(a,b,c){a=+a;b=+b;c=+c;return R(a-b)<=c|0}function kG(a,b){a=a|0;b=b|0;return K[b+16|0]>>>7|0}function hd(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0}function W$(a){a=a|0;return L[a+12>>1]|K[a+14|0]<<16}function Jpa(a){if(a)return 31-S(a-1^a)|0;return 32}function DK(a,b){a=a|0;b=b|0;if(b)H[b|0]=1;return 0}function wc(a){a=a|0;if(!(!a|(a|0)==169776))Ub(a)}function tX(a){a=a|0;if(H[779671]< -0)Kb(J[194915])}function ql(a){a=a|0;a=J[a+4>>2];if(a)H[a+65|0]=0}function jia(a){a=a|0;return!J[a+4>>2]|K[a+24|0]!=0}function jM(a){a=a|0;return Rb(L[a+256>>1],rm(a))|0}function fY(a){a=a|0;return L[a+6>>1]|L[a+8>>1]<<16}function dX(a){a=a|0;if(H[779683]<0)Kb(J[194918])}function cX(a){a=a|0;if(H[779695]<0)Kb(J[194921])}function bX(a){a=a|0;if(H[779707]<0)Kb(J[194924])}function aX(a){a=a|0;if(H[779719]<0)Kb(J[194927])}function _W(a){a=a|0;if(H[779743]<0)Kb(J[194933])}function ZW(a){a=a|0;if(H[779755]< -0)Kb(J[194936])}function YW(a){a=a|0;if(H[779767]<0)Kb(J[194939])}function Y7(a){a=a|0;J[a>>2]=392260;qd(a+4|0);Kb(a)}function XW(a){a=a|0;if(H[779779]<0)Kb(J[194942])}function WW(a){a=a|0;if(H[779791]<0)Kb(J[194945])}function VW(a){a=a|0;if(H[779803]<0)Kb(J[194948])}function V$(a){a=a|0;return L[a+8>>1]|K[a+10|0]<<16}function FW(a){a=a|0;if(H[779815]<0)Kb(J[194951])}function CH(a,b,c){a=a|0;b=b|0;c=c|0;return K[b|0]}function Bw(a,b){a=a|0;b=b|0;return Fw(a,b,id(b))|0}function $W(a){a=a|0;if(H[779731]< -0)Kb(J[194930])}function yO(a,b){a=a|0;b=b|0;J[a+16>>2]=b;return 0}function xK(a,b){a=a|0;b=b|0;return Lf(102432,b)|0}function rY(a){a=a|0;a=L[a+58>>1];return(a?a:96)|0}function iB(a,b,c){a=a|0;b=b|0;c=c|0;Mq(a+8|0,b,c)}function hK(a,b){a=a|0;b=b|0;return Lf(103328,b)|0}function Yh(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0}function RK(a,b){a=a|0;b=b|0;return Lf(100320,b)|0}function zO(a,b){a=a|0;b=b|0;return Lf(93760,b)|0}function xoa(a){a=a|0;Ab[J[J[a+552>>2]+28>>2]](a)}function wY(a){a=a|0;return L[J[a+ -172>>2]+150>>1]}function vY(a){a=a|0;return L[J[a+172>>2]+156>>1]}function v1(a){a=a|0;return+O[J[a+120>>2]+640>>3]}function s1(a){a=a|0;return+O[J[a+120>>2]+632>>3]}function nT(a,b){a=a|0;b=b|0;return Lf(21344,b)|0}function mf(a,b){a=a|0;b=b|0;return my(a)^my(b)^1}function mW(a,b){a=a|0;b=b|0;return a-48>>>0<10|0}function m0(a){a=a|0;Kb(xn(J[J[a>>2]-12>>2]+a|0))}function kY(a,b){a=a|0;b=b|0;return Lf(30144,b)|0}function iP(a,b){a=a|0;b=b|0;return Lf(21600,b)|0}function h1(a){a=a|0;return J[J[a+120>> -2]+608>>2]}function f1(a){a=a|0;return J[J[a+120>>2]+612>>2]}function e$(a,b){a=a|0;b=b|0;return Lf(29504,b)|0}function b1(a){a=a|0;return J[J[a+120>>2]+620>>2]}function V0(a){a=a|0;return J[J[a+120>>2]+616>>2]}function T0(a){a=a|0;return J[J[a+120>>2]+628>>2]}function RO(a,b){a=a|0;b=b|0;return Lf(93648,b)|0}function Ny(a,b){if(!a)return 0;return Wm(a,b,0)}function L0(a){a=a|0;return J[J[a+120>>2]+688>>2]}function KY(a){a=a|0;return+O[J[a+172>>2]+104>>3]}function Gf(a,b){a=a|0;b=b|0;return ky(a)^ -ky(b)^1}function EY(a){a=a|0;return L[J[a+172>>2]+154>>1]}function DY(a){a=a|0;return L[J[a+172>>2]+144>>1]}function CL(a,b){a=a|0;b=b|0;return Lf(98352,b)|0}function BY(a){a=a|0;return L[J[a+172>>2]+148>>1]}function $1(a){a=a|0;Kb(Uh(J[J[a>>2]-12>>2]+a|0))}function sY(a){a=a|0;return L[J[a+172>>2]+92>>1]}function qB(a,b,c){a=a|0;b=b|0;c=c|0;H[a+89|0]=0}function m1(a){a=a|0;return J[J[a+120>>2]+20>>2]}function kna(a,b){a=a|0;b=b|0;return DG(a,b,1)|0}function k1(a){a=a|0;return J[J[a+120>>2]+24>>2]} -function jna(a,b){a=a|0;b=b|0;return DG(a,b,0)|0}function hna(a,b){a=a|0;b=b|0;return BG(a,b,1)|0}function gna(a,b){a=a|0;b=b|0;return BG(a,b,0)|0}function _ja(a,b){a=a|0;b=b|0;J[a+12>>2]=J[b>>2]}function Wd(a,b){return rq(a,b,10,-2147483648,0)}function Oka(a){a=a|0;return J[J[a+84>>2]+88>>2]}function N0(a){a=a|0;return J[J[a+120>>2]+16>>2]}function K_(a){a=a|0;return(K[a+20|0]?700:400)|0}function J_(a){a=a|0;return(K[a+16|0]?700:400)|0}function JY(a){a=a|0;return+O[J[a+172>>2]+96>>3]}function zS(a, -b){a=a|0;b=b|0;Cd(a,b,vd(781920))}function xS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781928))}function wJ(a){a=a|0;if(J[a+4>>2])J[a+4>>2]=0}function vS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781676))}function uv(a,b,c){a=a|0;b=b|0;c=c|0;return b|0}function uS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781684))}function tna(a,b,c){a=a|0;b=b|0;c=c|0;qH(a,b,c)}function tS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781692))}function sS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781700))}function qS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781740))}function pS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781748))} -function oS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781756))}function nS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781764))}function kS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781772))}function iS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781780))}function gS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781788))}function eS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781796))}function eM(a,b,c){a=a|0;b=b|0;c=c|0;return c|0}function dS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781708))}function dL(a,b){a=a|0;b=b|0;return Zu(a,0,0)|0}function cS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781716))}function aka(a,b){a=a| -0;b=b|0;J[a+4>>2]=J[b>>2]}function ZR(a,b){a=a|0;b=b|0;Cd(a,b,vd(781732))}function XR(a,b){a=a|0;b=b|0;Cd(a,b,vd(781804))}function WR(a,b){a=a|0;b=b|0;Cd(a,b,vd(781812))}function Um(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function Op(a,b,c,d){a=rq(a,b,c,-1,-1);return a}function MS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781660))}function LS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781668))}function KN(a,b){a=a|0;b=b|0;J[b>>2]=0;return 0}function JS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781864))}function IS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781856))} -function Hj(a,b){a=a|0;b=b|0;iy(a,J[a+16>>2]|b)}function HS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781872))}function FS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781880))}function ES(a,b){a=a|0;b=b|0;Cd(a,b,vd(781888))}function Dma(a){a=a|0;jc(a+24|0,1667329140,1,0)}function DS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781904))}function CS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781896))}function Bka(a,b){a=a|0;b=b|0;return J[b+12>>2]}function BS(a,b){a=a|0;b=b|0;Cd(a,b,vd(781912))}function $ja(a,b){a=a|0;b=b|0;J[a+8>>2]=J[b>>2]}function $R(a,b){a=a| -0;b=b|0;Cd(a,b,vd(781724))}function w_(a){a=a|0;J[a>>2]=416536;return a|0}function t2(a,b,c){a=a|0;b=+b;c=+c;H[a+89|0]=0}function pv(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0}function kla(a,b,c){a=a|0;b=b|0;c=c|0;return 7}function hB(a,b,c){a=a|0;b=b|0;c=c|0;Mq(a,b,c)}function Yja(a,b){a=a|0;b=b|0;H[a+40|0]=K[b|0]}function KW(a){a=a|0;J[a>>2]=743996;return a|0}function De(a,b,c){if(!(K[a|0]&32))wq(b,c,a)}function CZ(a,b,c){a=a|0;b=b|0;c=c|0;return 12}function zx(a,b,c){a=a|0;b=b|0;c=c|0;return-1}function yY(a){a= -a|0;return J[a+172>>2]+160|0}function xI(a){if(!(!a|(a|0)==775196))Lo(a)}function wy(a){a=a|0;iq(J[J[a>>2]-12>>2]+a|0)}function wia(a){a=a|0;return J[a+928>>2]!=0|0}function kV(a){a=a|0;fq(J[J[a>>2]-12>>2]+a|0)}function Z0(a){a=a|0;return J[a+120>>2]+456|0}function Xd(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function Ty(a,b,c){return Xy(a,b,c,3530,3531)}function SY(a,b){a=a|0;b=b|0;return gB(a,b)|0}function LV(a){a=a|0;hq(J[J[a>>2]-12>>2]+a|0)}function HG(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function Cy(a){a= -a|0;mq(J[J[a>>2]-12>>2]+a|0)}function Cia(a){a=a|0;return J[a+932>>2]!=0|0}function xw(a,b,c){a=a|0;b=b|0;c=c|0;yw(a,c)}function wha(a){a=a|0;J[J[a+456>>2]>>2]=1359}function pW(a){a=a|0;return Ja(J[a+60>>2])|0}function od(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0}function kda(a){a=a|0;if(a)Nj(J[a+180>>2])}function joa(a){a=a|0;return J[a+8>>2]>>>9&1}function bha(a){a=a|0;J[J[a+480>>2]+28>>2]=1}function UJ(a){a=a|0;return J[a>>2]==65535|0}function Jka(a,b){a=a|0;b=b|0;return sf(b)|0}function Fka(a,b){a=a|0; -b=b|0;return iz(b)|0}function xka(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0}function x1(a){a=a|0;return J[a+120>>2]+4|0}function tL(a){a=a|0;J[J[a+156>>2]+36>>2]=0}function s8(a){a=a|0;Be(a+4|0);return a-8|0}function k2(a,b){a=a|0;b=b|0;return Qb(b)|0}function Yj(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0}function TU(){return(J[J[194998]>>2]?4:1)|0}function Ria(a,b){a=a|0;b=b|0;J[a+332>>2]=b}function Pla(a,b,c){a=a|0;b=b|0;c=c|0;cG(b)}function PR(a){a=a|0;Ab[J[J[a>>2]+4>>2]](a)}function Hi(a){a=a|0;jq(J[a>>2]);return a| -0}function Gj(a){a=a|0;sy(J[a>>2]);return a|0}function EM(a){a=a|0;J[a+64>>2]=40;return 0}function zV(a){a=a|0;return vg(a,781700)|0}function xl(a){a=a|0;Be(a+12|0);return a|0}function kq(a){a=a|0;return vg(a,781864)|0}function gq(a){a=a|0;return vg(a,781856)|0}function bka(a,b){a=a|0;b=b|0;J[a+16>>2]=b}function _2(a,b){a=a|0;b=b|0;J[a+108>>2]=b}function Xp(a){a=a|0;return vg(a,781928)|0}function Wh(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d}function WX(a){a=a|0;return K[a+18|0]==1|0}function VX(a){a=a|0;return K[a+ -14|0]==1|0}function UX(a){a=a|0;return K[a+20|0]==1|0}function UE(a){a=a|0;return J[a+4>>2]!=0|0}function TX(a){a=a|0;return K[a+16|0]==1|0}function SZ(a,b){a=a|0;b=b|0;J[a+608>>2]=b}function SX(a){a=a|0;return K[a+19|0]==1|0}function RX(a){a=a|0;return K[a+15|0]==1|0}function Qia(a,b){a=a|0;b=b|0;H[a+460|0]=b}function Oia(a,b){a=a|0;b=b|0;H[a+461|0]=b}function Nka(a){a=a|0;return Wo(a,ac(a))|0}function L$(a){a=a|0;return K[a+28|0]==1|0}function K$(a){a=a|0;return K[a+24|0]==1|0}function J$(a){a= -a|0;return K[a+30|0]==1|0}function I$(a){a=a|0;return K[a+26|0]==1|0}function H$(a){a=a|0;return K[a+29|0]==1|0}function G$(a){a=a|0;return K[a+25|0]==1|0}function Coa(a){a=a|0;Kb(J[a+12>>2]);Kb(a)}function $p(a){a=a|0;return vg(a,781920)|0}function zg(a,b,c){return lz(a,b,b>>31,c)}function t5(a,b){a=a|0;b=b|0;fi(a+20|0,b)}function qE(a,b,c,d){return Wr(a,b,c,d,1)}function q0(a){a=a|0;zn(777668,J[194418])}function pZ(a){a=a|0;Ag(a+8|0);return a|0}function dR(a,b){a=a|0;b=b|0;Up(a,b+12|0)}function cz(a, -b){se(ac(a)+a|0,b);return a}function cR(a,b){a=a|0;b=b|0;Up(a,b+16|0)}function b_(a,b){a=a|0;b=b|0;J[a+20>>2]=b}function bR(a,b){a=a|0;b=b|0;Sg(a,227039)}function a_(a,b){a=a|0;b=b|0;J[a+28>>2]=b}function aR(a,b){a=a|0;b=b|0;ij(a,765440)}function _Q(a,b){a=a|0;b=b|0;ij(a,765460)}function WE(a,b){a=a|0;b=b|0;if(b)Kb(b)}function Sm(a){a=a|0;Be(a+8|0);return a|0}function Rm(a){a=a|0;Be(a+4|0);return a|0}function MZ(a){a=a|0;rn(779648,J[194913])}function JW(a){a=a|0;J[a>>2]=743996;Kb(a)}function $Z(a, -b){a=a|0;b=b|0;J[a+24>>2]=b}function $Q(a,b){a=a|0;b=b|0;Sg(a,227081)}function r8(a){a=a|0;Be(a+4|0);Kb(a-8|0)}function lB(a,b){a=a|0;b=b|0;Nq(a+8|0,b)}function YX(a,b){a=a|0;b=b|0;Oz(a,b-4|0)}function UV(a){a=a|0;return!J[a+16>>2]|0}function M$(a,b){a=a|0;b=b|0;BA(a,b-4|0)}function Fn(a,b){a=a|0;b=b|0;H[a+89|0]=0}function $ia(a){a=a|0;return J[a+368>>2]}function yia(a){a=a|0;return J[a+48>>2]}function uM(a){a=a|0;xv(a);H[a+112|0]=0}function ox(a,b){a=a|0;b=b|0;return b|0}function oZ(a){a=a|0;Ag(a); -return a-8|0}function nY(a){a=a|0;return J[a+248>>2]}function nV(a){a=a|0;return kl(a-8|0)|0}function jp(a){a=a|0;return J[a+364>>2]}function h0(a){a=a|0;return L[a+216>>1]}function fM(a){a=a|0;return L[a+256>>1]}function Zia(a){a=a|0;return J[a+52>>2]}function Yia(a){a=a|0;return J[a+44>>2]}function Xia(a){a=a|0;return L[a+26>>1]}function Sia(a){a=a|0;return K[a+348|0]}function RZ(a){a=a|0;return J[a+608>>2]}function QZ(a){a=a|0;return+O[a+632>>3]}function Pia(a){a=a|0;return K[a+460|0]}function PZ(a){a= -a|0;return+O[a+640>>3]}function OZ(a){a=a|0;return J[a+688>>2]}function OV(a){a=a|0;return xl(a-8|0)|0}function MY(a){a=a|0;return J[a+172>>2]}function Lx(a,b){a=a|0;b=b|0;Vx(a,1,45)}function Kx(a,b){a=a|0;b=b|0;Ux(a,1,45)}function J0(a){a=a|0;return J[a+156>>2]}function H6(a){a=a|0;aC(J[a>>2],a+28|0)}function G0(a){a=a|0;return J[a+208>>2]}function y$(a){a=a|0;return+M[a+12>>2]}function vl(a){a=a|0;return+O[a+16>>3]}function sQ(a,b){a=a|0;b=b|0;J[b>>2]=0}function rk(a){a=a|0;return J[a+20>>2]}function ng(a){a= -a|0;return J[a+16>>2]}function nJ(a){a=a|0;Ub(J[a>>2]);Kb(a)}function n$(a){a=a|0;return J[a+72>>2]}function li(a){a=a|0;return J[a+12>>2]}function l0(a){a=a|0;return K[a+213|0]}function ica(a,b){a=a|0;b=b|0;return 1}function fr(a){a=a|0;return+O[a+32>>3]}function fC(a){a=a|0;return+O[a+24>>3]}function er(a){a=a|0;return+O[a+40>>3]}function em(a){a=a|0;return J[a+24>>2]}function eC(a){a=a|0;return+O[a+48>>3]}function dY(a){a=a|0;return L[a+14>>1]}function cg(a){return _C(a,J[a+72>>2])}function cY(a){a= -a|0;return L[a+10>>1]}function Z_(a){a=a|0;return+O[a+12>>3]}function W2(a,b){a=a|0;b=b|0;on(a+8|0)}function V_(a){a=a|0;return+O[a+28>>3]}function VE(a){a=a|0;return J[a+68>>2]}function U_(a){a=a|0;return+O[a+36>>3]}function OX(a){a=a|0;return I[a+12>>1]}function Nz(a){a=a|0;return I[a+10>>1]}function MX(a){a=a|0;return I[a+14>>1]}function Kja(a){a=a|0;if(a)Kb(kd(a))}function KZ(a){a=a|0;return J[a+76>>2]}function Hm(a){a=a|0;return 2147483647}function GX(a){a=a|0;return+I[a+10>>1]}function Bc(a, -b){J[a+168>>2]=b;Is(a,1)}function zA(a){a=a|0;return K[a+11|0]}function x$(a){a=a|0;return+M[a+8>>2]}function wl(a){a=a|0;return+O[a+8>>3]}function vw(a,b){a=a|0;b=b|0;Ha();B()}function vA(a){a=a|0;return K[a+21|0]}function um(a,b){a=a|0;b=b|0;return 0}function uA(a){a=a|0;return K[a+17|0]}function t8(a){a=a|0;Be(a+12|0);Kb(a)}function l$(a){a=a|0;return K[a+15|0]}function ck(a){a=a|0;return J[a+8>>2]}function _X(a){a=a|0;return+I[a+8>>1]}function ZX(a){a=a|0;return+I[a+4>>1]}function XX(a){a=a|0; -return I[a+6>>1]}function Tz(a){a=a|0;return L[a+8>>1]}function Tm(a,b){a=a|0;b=b|0;return-1}function Sz(a){a=a|0;return L[a+4>>1]}function Of(a){a=a|0;return J[a+4>>2]}function O$(a){a=a|0;return+J[a+8>>2]}function NX(a){a=a|0;return I[a+8>>1]}function N$(a){a=a|0;return+J[a+4>>2]}function M_(a){a=a|0;return+O[a+4>>3]}function I_(a){a=a|0;return K[a+23|0]}function H_(a){a=a|0;return K[a+19|0]}function G_(a){a=a|0;return K[a+22|0]}function F_(a){a=a|0;return K[a+18|0]}function FX(a){a=a|0;return+I[a+ -6>>1]}function F$(a){a=a|0;return K[a+31|0]}function E$(a){a=a|0;return K[a+27|0]}function nZ(a){a=a|0;Ag(a+8|0);Kb(a)}function mZ(a){a=a|0;Ag(a);Kb(a-8|0)}function m$(a){a=a|0;return K[a+7|0]}function lpa(a){a=a|0;Ub(J[a+44>>2])}function jB(a,b){a=a|0;b=b|0;Nq(a,b)}function hW(a){a=a|0;ae(a,J[a+8>>2])}function fR(a){a=a|0;return H[a+8|0]}function eR(a){a=a|0;return H[a+9|0]}function YD(a,b){a=a|0;b=b|0;cc(a,b)}function Qha(a){a=a|0;uk(240805);B()}function KE(a,b,c){return cd(a,b,c)}function $b(a, -b,c){a=a|0;b=b|0;c=c|0}function xM(a){a=a|0;Ec(J[a+24>>2])}function qn(a){a=a|0;Kq(226954);B()}function ps(a){a=a|0;return J[a>>2]}function jy(a){a=a|0;return zp(a)|0}function iV(a){a=a|0;return Pb(a)|0}function dd(a){a=a|0;uk(226954);B()}function Xh(a,b,c){a=a|0;b=b|0;c=+c}function Ve(a){a=a|0;uk(225765);B()}function VZ(a){a=a|0;return a+408|0}function UO(a){a=a|0;return a+100|0}function Ti(a){a=a|0;uk(407732);B()}function TZ(a){a=a|0;return a+600|0}function TO(a){a=a|0;return a+112|0}function Si(a){a= -a|0;uk(396780);B()}function SO(a){a=a|0;return a+140|0}function Mia(a){a=a|0;return a+72|0}function KF(a){a=a|0;return Qb(a)|0}function zP(a){a=a|0;return 226238}function z1(a){a=a|0;return a+84|0}function yP(a){a=a|0;return 227678}function wP(a){a=a|0;return 226883}function vP(a){a=a|0;return 225135}function rka(a){a=a|0;if(a)Kb(a)}function kB(a,b){a=a|0;b=b|0;Kb(b)}function fV(a){a=a|0;return 226572}function YP(a){a=a|0;return 227706}function XP(a){a=a|0;return 226565}function Hx(a){return vg(a, -781748)}function Gx(a){return vg(a,781740)}function Ef(a,b){a=a|0;b=b|0;Rc(a)}function Dx(a){return vg(a,781764)}function Cx(a){return vg(a,781756)}function $f(a,b,c){a=a|0;b=+b;c=+c}function cv(a){a=a|0;J[a+16>>2]=0}function XZ(a){a=a|0;return a+4|0}function Rz(a){a=a|0;return a-4|0}function sR(a){a=a|0;xx(a);Kb(a)}function nX(a){a=a|0;Me(a);Kb(a)}function iR(a){a=a|0;cx(a);Kb(a)}function gR(a){a=a|0;bx(a);Kb(a)}function cq(a){a=a|0;zp(a);Kb(a)}function aV(a){a=a|0;bq(a);Kb(a)}function _V(a){a=a| -0;dl(a);Kb(a)}function TW(a){a=a|0;ll(a);Kb(a)}function Sy(a,b,c){Xy(a,b,c,0,0)}function SR(a){a=a|0;rx(a);Kb(a)}function Ppa(a,b){zb=a;return b}function KV(a){a=a|0;Uf(a);Kb(a)}function En(a){a=a|0;H[a+89|0]=0}function CR(a){a=a|0;mx(a);Kb(a)}function Ap(a){a=a|0;rw(a);Kb(a)}function zQ(a){a=a|0;Yc(782064)}function xQ(a){a=a|0;Yb(782080)}function vQ(a){a=a|0;Yc(782096)}function uf(a){a=a|0;return 255}function qe(a){a=a|0;return a|0}function ok(a,b){return ic(a,b)}function Zk(a,b,c){qc(a,b,c<<2)} -function Tha(a){a=a|0;Kb(ih(a))}function KQ(a){a=a|0;Yb(781984)}function Im(a){a=a|0;return 127}function IW(a){a=a|0;ll(a+12|0)}function GQ(a){a=a|0;Yb(782016)}function DQ(a){a=a|0;Yc(782032)}function BQ(a){a=a|0;Yb(782048)}function s2(a){a=a|0;nn(a+8|0)}function p9(a){a=a|0;Kb(rC(a))}function oV(a){a=a|0;Kb(py(a))}function nB(a){a=a|0;on(a+8|0)}function n0(a){a=a|0;Kb(xn(a))}function mq(a){a=a|0;Kb(Sm(a))}function mV(a){a=a|0;fq(a-8|0)}function iq(a){a=a|0;Kb(Rm(a))}function hq(a){a=a|0;Kb(xl(a))} -function fq(a){a=a|0;Kb(kl(a))}function ax(a){a=a|0;Kb(Qp(a))}function ad(a,b){Gw(a,b,id(b))}function a2(a){a=a|0;Kb(Uh(a))}function RA(a){a=a|0;return 96}function Qz(a){a=a|0;Kb(a-4|0)}function QP(){vw(228549,0);B()}function MV(a){a=a|0;hq(a-8|0)}function Iy(){return(bb()|0)>0}function IQ(a){a=a|0;Yc(782E3)}function z_(a){a=a|0;return 8}function kf(a){a=a|0;return 1}function h_(a){a=a|0;return 7}function ag(a){a=a|0;return 2}function _j(a){a=a|0;return 3}function Rh(a){a=a|0;return 0}function N_(a){a= -a|0;return 6}function Lc(a){a=a|0;return 0}function Jn(a){a=a|0;return 5}function Fg(a){a=a|0;return 4}function Ey(a){a=a|0;return-1}function tx(a){Tw(a,J[a>>2])}function Xb(a,b){a=a|0;b=b|0}function Pd(a,b,c){Nb(a,b,c)}function Pc(a,b,c){Mb(a,b,c)}function yJ(){return 169776}function ela(a){a=a|0;WB(a)}function bla(a){a=a|0;Yn(a)}function XU(){return 760872}function WU(){return 762416}function Lka(a){a=a|0;BI(a)}function mB(a){a=a|0;on(a)}function Oc(a,b){Nb(a,0,b)}function Dc(a){a=a|0;Kb(a)}function uP(){return xb| -0}function tP(a){a=a|0;xb=a}function aW(a){a=a|0;yb=a}function Vh(a){a=a|0;B()}function Uu(a){lu(a,601)}function UA(a){a=a|0;B()}function Cm(a,b){Zw(a,b)}function cF(){return 0}function Ic(a){ge(a,0)}function kc(a){a=a|0}function Be(a){bq(a)}function KS(){nx()}function JI(){}e=K;p(q);var Ab=c([null,gW,VO,uN,sM,cM,zi,FK,hma,_la,jja,eja,cja,_ia,hca,i8,F4,u4,$3,Q3,g3,f3,M2,D2,u2,k2,kB,JI,xD,JI,Is,D$,v$,mT,gT,bT,XS,lx,xP,jP,gP,fP,eP,cP,bP,aP,xp,$O,_O,ZO,YO,XO,PO,HO,GO,FO,EO,kc,DO,CO,$b,BO,AO,DN,vN,tN, -Uv,Uv,Iv,Iv,JM,IM,HM,GM,FM,BM,AM,zM,yM,xM,FL,qM,mM,lM,kM,jM,iM,hM,gM,fM,uv,eM,dM,bM,aM,$L,_L,ZL,YL,XL,WL,VL,UL,TL,SL,RL,QL,PL,JL,zL,pL,lx,Yu,cfa,Vv,jv,Xu,nu,Wha,Oga,ida,c6,T2,F1,e0,bfa,Vv,jv,Xu,Gda,QX,EV,kc,nT,lP,kP,iP,dP,wp,tO,lO,aO,UN,LN,OL,pv,HL,BL,uL,cv,hL,ZK,PK,hp,lK,bK,fp,kc,TJ,NJ,GJ,xJ,tJ,sJ,Yt,pJ,Qt,bJ,WI,Jt,Ipa,Apa,wpa,qpa,kpa,$oa,Toa,Roa,Noa,Loa,Foa,xoa,noa,loa,joa,foa,_na,Una,Qna,Mna,Kna,Fna,fda,Zca,zna,rH,nna,mna,UG,cna,bna,Zma,Uma,Qma,Ima,Bma,rma,c8,_7,rr,X7,R7,G7,v7,qr,pr,S6,H6,w6,l6, -b6,_5,P5,E5,t5,i5,fB,$b,Xd,E1,VA,t1,i1,TA,SA,QA,A0,k0,$$,U$,Lc,kc,e$,W_,un,A_,p_,e_,c_,WZ,JZ,CZ,jZ,cv,$Y,UY,LY,pv,AY,qY,kY,eY,PX,EX,wX,uX,fX,RW,Bz,LW,HW,yW,vW,uW,qW,oW,nW,kW,jW,kc,hW,qq,$V,VV,RV,DV,xV,Jh,hV,hy,VU,NU,_p,FU,_p,_x,oU,lU,cU,ZT,Wx,MT,ET,yT,rT,wS,lS,aS,tQ,pQ,mQ,jQ,iQ,bQ,_P,TP,NP,HP,hp,sP,qP,tR,_p,_x,kR,hR,ZQ,PQ,Wx,EQ,uQ,pP,oP,nP,mP,UO,TO,SO,hP,WO,aw,QO,OO,NO,MO,LO,RO,fB,$b,Xd,KO,VA,JO,IO,TA,SA,QA,oN,mN,lN,kN,zO,zN,jN,iN,hN,gN,fN,eN,dN,cN,bN,aN,$M,_M,ZM,tm,YM,XM,WM,VM,UM,TM,SM,RM,QM,PM, -OM,NM,Ev,MM,LM,KM,Rf,sN,yO,wO,vO,xO,uO,rO,qO,sO,pO,oO,mO,kO,nO,jO,hO,gO,iO,fO,dO,cO,eO,bO,_N,ZN,$N,YN,Qv,WN,VN,XN,TN,Qv,RN,QN,SN,PN,NN,ON,um,KN,IN,HN,GN,FN,EN,MN,JN,CN,hp,BN,AN,yN,xN,wN,rN,qN,pN,vp,nN,EM,kc,DM,CM,wM,vM,uM,tM,rM,Qt,pM,oM,nM,NL,ML,vj,op,LL,Av,KL,yv,IL,GL,zv,om,EL,DL,fp,kc,CL,AL,yL,xL,wL,vL,tL,sL,rL,qL,oL,nL,jp,dv,mL,bv,av,kf,$u,lL,kL,jL,_u,Zu,iL,gL,fL,eL,dL,cL,bL,Ok,aL,$K,_K,YK,XK,WK,VK,UK,TK,SK,fp,kc,RK,QK,OK,NK,MK,LK,Yt,KK,JK,IK,HK,GK,EK,DK,CK,BK,AK,zK,Xb,yK,kc,xK,wK,vK,uK,tK,sK, -rK,qK,pK,oK,dv,nK,jp,bv,av,kf,$u,mK,kK,jK,iK,hK,gK,fK,eK,dK,cK,aK,$J,_J,ZJ,lm,km,vJ,Qe,Ub,kJ,lJ,MJ,KJ,CJ,BJ,yJ,ep,wc,mm,nc,WJ,dp,wc,VJ,JJ,IJ,UJ,HJ,SJ,wc,RJ,FJ,QJ,EJ,Ru,DJ,PJ,Dna,OJ,Ou,LJ,Ju,Cu,jf,Au,Ac,zu,uu,qu,AJ,zJ,YJ,Kb,Ub,uJ,hm,au,au,rJ,To,od,af,Wt,oJ,nJ,mJ,jJ,iJ,hJ,gJ,fJ,eJ,dJ,cJ,QI,PI,OI,$I,NI,LI,YI,XI,Gpa,Fpa,Dpa,Cpa,Bpa,zpa,ypa,xpa,ppa,opa,mpa,npa,jpa,ipa,hpa,gpa,fpa,epa,dpa,cpa,bpa,apa,_oa,Zoa,Yoa,lpa,ce,Rt,ci,di,Zda,Rb,Xl,Ug,kE,dE,Oda,xr,Qoa,ri,Ooa,Moa,Koa,Joa,Ioa,Hoa,Goa,Eoa,Doa,Coa,Boa, -Aoa,zoa,yoa,woa,voa,uoa,toa,soa,roa,qoa,poa,ooa,Mla,Hk,Gk,moa,dI,cI,Poa,Jo,Io,Soa,aG,Nla,goa,coa,$e,Kk,Ho,_F,NH,bI,oi,Re,em,wt,Hna,wJ,koa,YH,ioa,hoa,YH,eoa,doa,boa,aoa,$na,XH,WH,Zna,VH,Yna,Xna,yi,Zl,UH,TH,qi,TH,Wna,Vna,Tna,sh,mg,Sna,QH,PH,OH,lt,Rna,Pna,Ona,Nna,CH,Lna,CH,Jna,Ina,dna,Gna,Ena,sna,rna,vna,Eo,qH,una,pH,oH,nH,lH,ona,lna,Xd,TG,TG,Xd,SG,SG,Xd,RG,RG,Xd,OG,OG,Xd,NG,NG,Xd,MG,MG,Xd,LG,LG,Xd,KG,KG,Xd,JG,JG,Xd,IG,IG,FG,kna,jna,FG,hna,gna,HG,kH,ina,qna,pna,fna,ena,yG,zG,Xd,xG,xG,Xd,wG,wG,Xd,vG, -vG,Xd,uG,uG,Xd,rG,rG,Xd,qG,qG,Xd,tG,tG,Xd,sG,sG,bG,Cna,Ana,ana,wna,Bna,Ys,$ma,xna,yna,_ma,Yma,Xma,Wma,Vma,XJ,tH,jc,Uc,Tma,Vs,kG,Rma,Oma,Nma,Mma,tna,qJ,lj,Ts,lj,Hma,sj,yk,kj,Lk,Gma,Fma,vma,uma,tma,Zla,kma,jma,cma,bma,$la,Wla,Vla,Ula,Tla,Sla,sc,pc,Lla,Kla,Jla,Ila,Hla,Gla,Fla,Ela,Dla,Cla,Bla,Ala,zla,yla,ZF,ZF,xla,XF,XF,wla,vla,ula,$b,hd,tla,$b,hd,sla,To,To,rla,$b,od,lG,Pt,Sma,qla,pla,ola,nla,mla,lla,Xoa,Woa,Voa,Uoa,kH,Pma,jG,iG,Lma,Kma,Jma,Ema,Dma,Cma,Dc,Ama,zma,yma,xma,wma,sma,qma,Dc,pma,oma,nma,mma, -lma,ima,gma,Dc,fma,eG,ema,dma,ama,Yla,Xla,Rla,Qla,Pla,eG,Ola,Nt,Nt,aJ,Mt,_I,ZI,VI,UI,zi,zi,TI,SI,RI,Mt,dm,cm,MI,Hpa,Epa,vpa,upa,tpa,spa,rpa,zi,zi,Xd,HG,kla,uv,jla,zi,zi,SF,gla,kB,RF,ila,hla,Uka,Tka,Ska,Rka,Kka,Jka,Gka,Fka,Ika,Hka,Eka,Dka,um,Cka,Bka,Aka,zka,yka,Kp,vka,uka,ska,rw,qe,xka,wka,zF,tka,xF,Pb,kka,As,yF,hka,gka,zs,fka,eka,dka,Tja,lX,Fd,Of,Aja,$ha,cka,ej,zja,gja,os,Dz,bja,co,Eja,mX,Tia,Cja,WE,Nf,jj,iV,kX,Sja,li,Sg,Qja,Oja,Rja,lo,Cz,hX,Dz,Lb,jX,iX,Pja,nF,mF,qe,Dc,Nja,Mja,Zja,bka,aka,$ja,_ja, -Yja,Vja,qX,sF,Uja,js,_n,Fja,qia,pia,kia,Bja,kja,Dc,ija,fd,nk,Jia,kc,Kha,Iia,Hia,Gia,Fia,Eia,Dia,Xr,Eha,Dha,ii,Uia,Sia,CE,zha,Af,ig,jp,ji,pk,gs,rk,Zia,yha,Cha,gd,qk,Dc,kh,se,Xr,Bfa,ng,xfa,wfa,yfa,vfa,$ia,ufa,tfa,Afa,_E,hja,Mda,oc,Bda,Ida,zda,eia,Eda,dia,Lda,PE,NE,gi,zia,QD,hg,yda,xda,ks,Cia,gg,Kda,ne,Jda,pda,nda,jda,cia,bia,Xia,mda,Yia,ms,Br,Ar,qD,fs,yia,Td,QE,fj,rda,oda,eg,qda,Qg,UE,Mia,uia,Bia,jh,eo,io,is,hs,ZE,VE,wia,via,xia,Pg,Aia,tia,Ql,Tl,oz,Rl,Bl,Yha,Xha,Vha,Lc,Uha,Xd,$b,Oia,YE,Of,dja,IE,aia, -HE,aja,fja,Sha,Rha,Sl,Via,Pia,Nia,GE,Rg,_r,Qia,Qha,zd,EE,Ria,Wia,Pl,Mf,hi,lia,fg,ns,Dja,yja,xja,wja,vja,uja,tja,sja,rja,qja,pja,oja,nja,mja,lja,jj,jj,jj,jj,jj,jj,Lia,Kia,Og,sia,ria,oia,nia,mia,UE,jia,iia,hia,gia,fia,Xd,_ha,Zha,ih,Tha,$b,$b,Pha,Oha,Nha,Mha,Lha,Jha,Iha,Hha,Gha,Fha,Bha,Aha,wha,AE,vha,uha,tha,sha,rha,qha,pha,Vr,oha,nha,mha,lha,kha,wE,vE,jha,Kl,iha,kc,hha,gha,fha,eha,dha,cha,bha,aha,$ga,_ga,kc,Zga,Yga,Xga,Wga,Vga,Uga,Tga,kc,Sga,Rga,Qga,Pga,Nga,Mga,Lga,Kga,Jga,Iga,Hga,Gga,Fga,Ega,Dga,Cga, -Bga,aga,bga,cga,dga,ega,fga,gga,_fa,Zfa,Yfa,Xfa,Wfa,Vfa,Ufa,Tfa,Sfa,Rfa,Qfa,Pfa,Ofa,Nfa,Mfa,Lfa,Kfa,Jfa,Ifa,Hfa,Gfa,Ffa,Efa,$fa,Aga,zga,yga,xga,wga,vga,uga,tga,sga,rga,qga,pga,oga,nga,mga,lga,kga,jga,Lc,iga,rfa,qfa,pfa,kc,ofa,nfa,mfa,lfa,kfa,jfa,ifa,hfa,gfa,ffa,efa,dfa,afa,$ea,kc,_ea,Zea,Yea,Xea,Wea,Vea,Uea,Tea,Sea,Rea,nea,oea,pea,qea,rea,sea,tea,lea,kea,jea,iea,hea,gea,fea,eea,dea,cea,bea,aea,$da,_da,Yda,Xda,Wda,Vda,Uda,Tda,Sda,Rda,Qda,uea,Pda,Nda,mea,Qea,Pea,lE,Oea,Nea,Mea,Lea,Kea,Jea,Iea,Hea,Gea, -Fea,Eea,Dea,Cea,Bea,Aea,zea,yea,xea,fE,wea,vea,hga,Dfa,Cfa,eE,Fda,Ha,Hda,Cda,Ed,Dda,YD,OF,Wb,cc,kk,Ada,wda,vda,uda,tda,sda,kda,lda,hda,gda,$b,qca,tca,sca,rca,eda,dda,cda,bda,ada,$ca,_ca,Yca,Xca,Wca,Vca,Uca,Tca,Sca,Rca,Qca,Pca,Oca,Nca,Mca,Lca,Kca,Jca,Ica,Hca,Gca,Fca,Eca,Dca,Cca,Bca,Aca,zca,yca,xca,wca,$b,Xd,WC,kca,lca,mca,ica,kf,uca,vca,kc,jca,nca,oca,pca,fca,$b,dca,cca,bca,aca,$ba,_ba,Zba,Yba,Xba,Wba,Vba,Uba,Tba,Sba,Rba,Qba,Pba,Oba,Nba,Mba,Lba,Kba,Jba,Iba,Hba,Gba,Fba,Eba,Dba,Bba,Aba,zba,wba,vba,uba, -yba,tba,sba,rba,qba,pba,oba,nba,mba,eba,kba,jba,iba,gba,cba,bba,aba,$aa,_aa,Zaa,Yaa,Xaa,Waa,Vaa,Uaa,Taa,Saa,Raa,kc,Qaa,Paa,Oaa,kc,xha,Maa,Laa,Kaa,Jaa,Iaa,Haa,Gaa,Faa,Eaa,Daa,Caa,Baa,Aaa,vaa,kc,zaa,yaa,xaa,waa,oaa,uaa,taa,saa,raa,qaa,paa,Ll,Qr,zfa,sfa,Xr,naa,maa,kaa,iaa,gaa,faa,wC,eaa,daa,baa,aaa,$9,_9,Z9,Y9,X9,W9,V9,T9,S9,R9,Q9,P9,O9,N9,M9,L9,K9,J9,I9,H9,G9,F9,E9,D9,C9,B9,A9,z9,y9,x9,w9,v9,u9,t9,s9,r9,Cba,caa,haa,jaa,laa,Naa,dba,hba,fba,xba,lba,gca,U9,eca,q9,_z,_q,cF,l9,dd,Wja,oY,OA,H0,vF,hQ,Z8,rf, -Y8,Ip,fQ,eX,Ve,Gw,Ve,G8,rC,p9,$b,h9,g9,f9,e9,d9,em,c9,li,o9,n9,m9,j9,i9,k9,b9,a9,qC,$8,_8,X8,W8,V8,U8,T8,S8,R8,Q8,P8,O8,N8,M8,L8,K8,J8,qC,I8,H8,oz,Bw,$U,JV,vV,x8,ff,Fw,cQ,hC,o8,v8,n8,u8,m8,xl,t8,s8,r8,q8,p8,Sm,mq,Dy,Cy,Rm,iq,xy,wy,l8,k8,Xb,Um,j8,gC,Lc,Lc,IV,h8,GV,g8,FV,f8,wl,vl,le,vl,wl,d8,ud,wl,vl,fC,fr,er,eC,Zj,wl,vl,fC,fr,er,eC,Se,Kf,qe,Dc,$7,Ve,qe,Dc,kf,Dc,ag,Dc,_j,Dc,Fg,Dc,Jn,a8,nC,qe,Dc,kf,Z7,Y7,ag,Dc,_j,oX,j3,tZ,xz,wz,z8,dn,gQ,yz,eh,U2,EZ,xZ,HZ,GZ,eh,zZ,vZ,C8,Rd,FZ,dQ,eh,He,sB,c2,b8,Ri,pn, -eh,He,He,He,He,He,C2,qA,Yd,B1,Vq,X1,l0,C0,eB,E0,dB,D0,Si,w0,Si,v0,XA,YA,P1,O1,N1,M1,Bn,An,bB,L1,u0,bB,K1,t0,s0,r0,W1,WA,V1,Xq,Si,y0,z0,x0,Si,B0,dh,w$,Vj,S$,F0,p0,ol,PY,QY,Uq,Of,U1,RY,Yz,KZ,NY,ij,nY,LZ,C1,ps,W7,a6,d3,rk,b_,I1,G1,nl,_Z,Ti,$Z,Ti,_A,D1,Cg,YZ,en,Tq,a_,F8,TZ,E8,UZ,ZZ,b0,H1,e8,Ui,Ti,c0,RZ,SZ,OZ,Dg,Bg,E_,D_,Wj,_f,i_,B_,XZ,cr,J1,yA,rA,Ti,l_,y_,xA,x_,JA,KA,Ti,d0,Dw,Cw,Hp,o_,v_,w_,s_,Of,ck,ng,ol,T1,z1,cF,Y1,GA,QZ,PZ,NA,VZ,G0,Pq,IZ,a0,q0,y8,wf,d_,pA,A8,D8,NZ,V7,U7,kc,kc,d6,sl,$b,kc,$f,$f,Eg, -Eg,kc,Xb,kc,kc,Xb,$b,od,$b,Xb,kc,vf,vf,Lc,Xb,kc,T7,S7,Q7,P7,O7,N7,M7,L7,K7,J7,I7,H7,F7,E7,D7,C7,B7,A7,z7,y7,x7,w7,u7,t7,s7,r7,q7,p7,o7,n7,m7,l7,k7,j7,i7,h7,g7,f7,e7,d7,b7,c7,a7,$6,_6,Z6,Y6,X6,W6,V6,U6,T6,R6,Q6,P6,O6,N6,M6,L6,K6,J6,I6,G6,F6,E6,D6,C6,B6,A6,z6,y6,x6,v6,u6,t6,s6,r6,q6,p6,o6,n6,m6,k6,j6,i6,od,h6,g6,f6,e6,$f,kc,$b,$b,od,$b,kc,kc,od,Xb,Yh,$b,Yj,br,cm,$b,hd,hd,$b,od,Yh,$b,dm,Yj,$b,od,Yh,$b,$b,$b,$b,$b,Xb,Xb,Xb,Xb,Xb,$b,Xb,Xb,hd,Xb,Xb,Xb,Xb,$b,Hn,$b,kc,Xh,Wh,Xh,Xb,Wh,$5,Z5,W5,V5,U5,T5,S5, -R5,Q5,O5,N5,M5,L5,K5,J5,I5,H5,G5,F5,D5,C5,B5,A5,z5,Jn,Y5,X5,y5,x5,w5,v5,u5,s5,r5,q5,p5,o5,n5,m5,l5,k5,j5,h5,g5,f5,e5,d5,c5,b5,a5,$4,_4,Z4,Y4,X4,W4,V4,U4,T4,S4,R4,Q4,P4,O4,N4,M4,L4,K4,J4,I4,H4,G4,E4,D4,C4,B4,A4,z4,y4,x4,w4,v4,t4,s4,r4,q4,p4,o4,n4,m4,l4,k4,j4,i4,h4,g4,f4,e4,d4,c4,b4,a4,_3,Z3,Y3,X3,W3,V3,U3,T3,S3,R3,P3,O3,N3,M3,L3,K3,J3,I3,H3,G3,F3,E3,D3,C3,B3,A3,z3,y3,x3,w3,v3,hd,hd,u3,t3,s3,r3,q3,p3,o3,n3,m3,l3,k3,$b,$b,$b,Xb,Xb,Xb,Xb,Xb,$b,Xb,Xb,hd,Xb,Xb,Xb,Xb,$b,Hn,$b,kc,Xh,Wh,Xh,Xb,Wh,qe,Dc,VB, -UB,TB,SB,RB,QB,PB,OB,NB,MB,LB,KB,JB,IB,HB,GB,FB,EB,DB,CB,BB,AB,ag,i3,h3,Xb,$b,$b,$b,$b,$b,kc,kc,rl,$b,Xb,$b,Xb,Xb,$b,Xb,Xb,Xb,Xb,od,od,Xb,kc,kc,kc,kc,kc,kc,Xb,Xb,Xb,Xb,Xb,Xb,hd,Xb,Xb,hd,Xb,Xb,od,od,rl,Xb,rl,zB,ql,Xb,$b,Xb,kc,rl,Xb,Xb,hd,od,od,od,Xb,Xb,Xb,Xb,od,$b,$b,$b,$b,hd,hd,$b,$b,$b,$b,$b,$b,$b,$b,$b,$b,Xb,$b,$b,Xb,Xb,Xb,od,Xb,hd,od,vf,e3,ql,$q,$q,zB,$b,ql,ql,od,Xb,Yh,$b,Yj,br,cm,$b,hd,hd,$b,od,Yh,$b,dm,Yj,$b,od,Yh,$b,$b,$b,$b,$b,Xb,Xb,Xb,Xb,Xb,$b,Xb,Xb,hd,Xb,Xb,rl,Xb,$b,Hn,$b,kc,Xh,Wh,Xh,Xb, -Wh,c3,a3,kc,kc,pB,sl,$b,kc,$f,$f,Eg,Eg,kc,Xb,kc,nB,lB,iB,e2,$b,Xb,kc,vf,vf,Fg,_2,Z2,Y2,$b,$b,$b,$b,$b,X2,kc,W2,$b,Xb,$b,Xb,Xb,$b,Xb,Xb,Xb,Xb,od,od,Xb,kc,kc,kc,kc,kc,kc,Xb,Xb,V2,Xb,Xb,Xb,hd,Xb,Xb,hd,Xb,Xb,od,od,Fn,Xb,Fn,xB,En,Xb,$b,Xb,kc,Fn,Xb,Xb,S2,R2,Q2,od,P2,wB,wB,O2,N2,vB,uB,vB,uB,L2,K2,J2,I2,H2,G2,F2,E2,tB,rB,tB,rB,B2,A2,$b,Xb,z2,y2,x2,Xb,w2,v2,vf,t2,En,qB,qB,xB,$b,s2,En,od,Xb,r2,q2,Yj,br,p2,o2,hd,hd,n2,m2,Yh,l2,j2,Yj,i2,h2,Yh,g2,f2,$b,$b,$b,Xb,Xb,Xb,Xb,Xb,$b,Xb,Xb,hd,Xb,Xb,Fn,Xb,$b,Hn,$b,kc, -Xh,Wh,Xh,Xb,Wh,b3,$2,kc,kc,oB,sl,$b,kc,$f,$f,Eg,Eg,kc,Xb,kc,mB,jB,hB,d2,$b,Xb,kc,vf,vf,Vh,QP,Uh,a2,_1,Z1,Lc,kc,S1,x1,v1,s1,q1,o1,m1,k1,h1,f1,d1,b1,$0,Z0,X0,V0,T0,Lc,R0,P0,N0,RA,Lc,L0,J0,Q1,b2,$1,kc,R1,y1,w1,u1,r1,p1,n1,l1,j1,g1,e1,c1,a1,_0,Y0,W0,U0,S0,Lc,Q0,O0,M0,RA,Lc,K0,I0,UA,Vh,UA,Vh,A1,Dn,Vh,kc,xn,n0,SF,um,j0,i0,kf,h0,f0,o0,m0,g0,qe,Dc,kf,qe,Dc,Lc,_$,Y$,kf,W$,Lc,ck,Lc,ng,uf,uf,EA,hd,$b,T$,Z$,X$,V$,Lc,Of,Lc,li,uf,uf,DA,hd,$b,CA,ch,Q$,ag,O$,BA,em,L$,J$,H$,ng,F$,rk,R$,P$,N$,M$,rk,K$,I$,G$,li,E$, -ng,C$,A$,_j,ng,ck,y$,uf,Rh,Rh,vn,B$,z$,li,Of,x$,uf,Rh,Rh,vn,u$,t$,Fg,Ge,r$,kf,kf,AA,o$,ng,n$,rk,zA,l$,k$,od,i$,g$,s$,q$,p$,AA,li,VE,ng,m$,zA,j$,f$,h$,od,d$,b$,_j,ag,$_,ck,vl,Y_,fr,er,T_,c$,a$,__,Of,Z_,X_,V_,U_,S_,R_,P_,ag,N_,wl,L_,K_,vA,I_,G_,Lc,Lc,Lc,Q_,O_,M_,EA,J_,uA,H_,F_,Lc,Lc,Lc,Qq,sA,uf,Rq,C_,_j,Dc,z_,sA,Jn,qe,Dc,u_,t_,r_,q_,n_,m_,k_,j_,Fg,Dc,h_,g_,f_,Lc,Dc,Lc,MW,qn,eQ,Hw,eh,eA,eh,He,He,He,He,He,He,w8,DZ,Hq,Gq,Xk,BZ,AZ,In,He,eh,eh,yZ,eh,UW,wZ,zz,cA,Xja,gX,sX,uZ,ln,PW,QW,OW,NW,Ve,sZ,rZ,MZ,Ag, -Vh,Oq,on,Nq,Mq,Lq,$b,Xb,pZ,nZ,kc,kc,pB,sl,$b,kc,$f,$f,Eg,Eg,kc,Xb,kc,nB,lB,iB,od,$b,Xb,kc,vf,vf,Fg,lZ,$b,$b,$b,$b,$b,$b,kZ,iZ,kn,hZ,gZ,fZ,hd,Xb,eZ,Xb,dZ,cZ,bZ,aZ,_Y,ZY,YY,od,XY,Xb,Xb,Xb,$b,Xb,Xb,Xb,hd,Xb,Xb,Xb,aA,aA,$b,$b,$b,$b,En,kc,hd,hd,Xb,Xb,Xb,Xb,Xb,Xb,Xb,Xb,Xb,Xb,$b,$b,$b,$b,$b,$b,Xb,oZ,mZ,kc,kc,oB,sl,$b,kc,$f,$f,Eg,Eg,kc,Xb,kc,mB,jB,hB,od,$b,Xb,kc,vf,vf,Vh,Dc,VB,UB,TB,SB,RB,QB,PB,OB,NB,MB,LB,KB,JB,IB,HB,GB,FB,EB,DB,CB,BB,AB,ag,$b,$b,$b,$b,$b,$b,$b,kc,kn,kn,hd,cm,$b,hd,Xb,$b,Xb,dm,kn,Xb,Xb, -Xb,hd,vf,od,hd,Xb,Xb,Xb,$b,Xb,Xb,Xb,hd,Xb,Xb,Xb,$z,$z,$b,$q,$b,$b,ql,kc,hd,hd,Xb,Xb,Xb,Xb,Xb,Xb,Xb,Xb,Xb,Xb,$b,$b,$b,$b,$b,$b,Xb,OY,$X,LX,DX,jY,mY,lY,gn,IX,ve,VY,kc,MY,KY,JY,IY,HY,GY,FY,EY,DY,CY,BY,zY,yY,xY,Lc,wY,vY,uY,tY,sY,rY,pY,ag,Lc,TY,SY,Lc,yX,ps,WY,qZ,Ip,B8,vX,Vz,Of,Iq,Vh,ml,hY,kf,Uz,Lc,Tz,Lc,dY,uf,uf,DA,hd,$b,CA,iY,gY,fY,Lc,Sz,Lc,cY,uf,uf,bY,hd,$b,aY,qe,Dc,ag,_X,Oz,Nz,WX,UX,SX,OX,vA,MX,Rz,Qz,ZX,YX,XX,VX,TX,RX,NX,uA,Nz,KX,JX,Fg,qe,Dc,_j,HX,Tz,GX,uf,Rh,Rh,vn,Rz,Qz,Uz,Sz,FX,uf,Rh,Rh,vn,CX,AX, -Jn,BX,zX,xX,Ve,rX,pX,Rj,lW,wW,dd,tX,Me,nX,dX,cX,bX,aX,$W,_W,ZW,YW,XW,WW,VW,ll,TW,SW,Az,KW,JW,IW,um,Dc,bV,vg,Ra,ua,PV,GW,DW,ZV,FW,EW,tW,sW,rW,pW,Li,Lc,iW,fW,eW,dW,cW,Fy,kq,em,QV,Ay,Hj,_U,jq,ng,rk,SV,UV,uy,HV,AV,Ay,Hj,gq,gV,zV,yV,wV,Um,kQ,uV,qe,jV,dl,_V,Xb,Um,Hy,Gy,Lc,Lc,YV,Ey,XV,Tm,WV,Tm,Sm,mq,Dy,Cy,Rm,iq,xy,wy,xl,hq,OV,MV,NV,LV,Uf,KV,Hy,Gy,Ey,Tm,Tm,py,oV,qV,gC,tV,sV,rV,kl,fq,nV,mV,lV,kV,kc,cV,dV,jy,qe,Dc,fV,aQ,$P,ZP,eV,cq,Of,bq,aV,$p,by,ay,Nm,Np,mf,Kh,JU,Hi,Gm,Ih,HU,je,Yx,Xx,EU,CU,$x,$x,yU,Mm,wU, -qU,Zx,uU,sU,Vd,pU,SU,Xp,by,ay,Lm,Gf,CV,ly,Gj,Hh,Yx,Xx,Km,aU,Zx,vy,YT,ly,Dh,TT,ST,Bj,Gm,YU,ZU,mW,ry,NT,bl,uy,HT,Aj,Gm,vq,lQ,zp,Um,kc,kT,Mx,jT,TV,iT,Jx,hT,Ix,Gm,eT,Jp,cT,aT,BV,$S,Ex,Ix,ZS,WS,VS,SS,RS,aq,NS,MS,LS,KS,JS,IS,HS,GS,FS,ES,DS,CS,BS,AS,zS,yS,xS,vS,uS,tS,sS,rS,qS,pS,oS,nS,mS,kS,jS,iS,hS,gS,fS,eS,dS,cS,bS,$R,_R,ZR,YR,XR,WR,VR,vx,UR,sQ,QR,TR,qQ,rQ,Sw,RR,OR,XU,WU,UU,Wm,fy,fl,nR,mR,ey,TU,dy,XQ,VQ,TQ,RQ,OQ,MQ,KQ,IQ,GQ,DQ,BQ,zQ,xQ,vQ,pV,Xb,rx,SR,PR,mx,CR,BR,AR,zR,yR,ox,xR,wR,vR,xx,sR,rR,qR,pR,oR, -Lc,lR,jR,cx,iR,fR,eR,dR,bR,$Q,bx,gR,ck,li,cR,aR,_Q,qe,Dc,Dc,NR,MR,LR,KR,JR,IR,HR,GR,ox,FR,ER,DR,Dc,kx,kx,$k,kf,kf,uR,kf,Dc,ix,hx,$k,Lc,Lc,gx,Fg,Dc,ix,hx,$k,Lc,Lc,gx,Fg,Dc,fx,ex,$k,Lc,Lc,dx,Fg,Dc,fx,ex,$k,Lc,Lc,dx,Fg,qe,Dc,RU,QU,PU,qe,Dc,OU,MU,LU,Dc,KU,IU,GU,DU,BU,AU,zU,xU,vU,tU,rU,Dc,nU,mU,kU,jU,iU,hU,gU,fU,eU,dU,bU,Dc,$T,_T,XT,WT,VT,UT,RT,QT,Dc,PT,OT,LT,KT,JT,IT,GT,FT,qe,Dc,ag,DT,CT,BT,AT,zT,xT,YQ,UQ,QQ,CQ,yQ,LQ,HQ,qe,Dc,ag,wT,vT,uT,tT,sT,qT,WQ,SQ,NQ,AQ,wQ,JQ,FQ,Qp,ax,pT,Qp,ax,oT,Dc,Im,Im,Ef,Ef, -Ef,Lx,Lc,Ch,Ch,Dc,Im,Im,Ef,Ef,Ef,Lx,Lc,Ch,Ch,Dc,Hm,Hm,Ef,Ef,Ef,Kx,Lc,Ch,Ch,Dc,Hm,Hm,Ef,Ef,Ef,Kx,Lc,Ch,Ch,Dc,lT,fT,Dc,dT,_S,Dc,YS,US,Dc,TS,QS,Dc,zx,PS,Xb,Dc,zx,OS,Xb,qe,Vh,Lc,Lc,Lc,Lc,Dc,oQ,Kw,Iw,Fy,UP,VP,nQ,ww,jy,Dc,YP,xw,Dc,XP,WP,xw,cq,PP,uw,vw,qe,Dc,kc,kc,OP,Dc,MP,CP,FP,LP,Dc,DP,GP,KP,Dc,EP,IP,JP,Dc,yP,Dc,wP,Dc,zP,Ap,Of,cq,Ap,Ap,Dc,vP]);function Bb(){return G.byteLength/65536|0}function Gb(Hb){Hb=Hb|0;var Cb=Bb()|0;var Db=Cb+Hb|0;if(Cb=65536,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+ -INITIAL_MEMORY+"! (STACK_SIZE="+65536+")");if(Module["wasmMemory"])wasmMemory=Module["wasmMemory"];else wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":2147483648/65536});updateMemoryViews();INITIAL_MEMORY=wasmMemory.buffer.byteLength;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[function(){window["AscFonts"].onLoadModule()}];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]]; -while(Module["preRun"].length)addOnPreRun(Module["preRun"].shift())}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length)addOnPostRun(Module["postRun"].shift())}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)} -function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}if(!Math.imul||Math.imul(4294967295,5)!==-5)Math.imul=function(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};if(!Math.fround){var froundBuffer=new Float32Array(1);Math.fround=function(x){froundBuffer[0]=x;return froundBuffer[0]}}if(!Math.clz32)Math.clz32=function(x){var n=32;var y=x>>16;if(y){n-=16;x=y}y=x>>8;if(y){n-=8;x=y}y=x>>4;if(y){n-=4;x=y}y=x>>2;if(y){n-=2;x=y}y=x>>1;if(y)return n-2;return n- -x};if(!Math.trunc)Math.trunc=function(x){return x<0?Math.ceil(x):Math.floor(x)};var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"])Module["monitorRunDependencies"](runDependencies)}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"])Module["monitorRunDependencies"](runDependencies);if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher); -runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){if(Module["onAbort"])Module["onAbort"](what);what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);throw e;}var dataURIPrefix="data:application/octet-stream;base64,";var isDataURI=function(filename){return filename.startsWith(dataURIPrefix)};var wasmBinaryFile; -wasmBinaryFile="fonts.wasm";if(!isDataURI(wasmBinaryFile))wasmBinaryFile=locateFile(wasmBinaryFile);function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);var binary=tryParseAsDataURI(file);if(binary)return binary;if(readBinary)return readBinary(file);throw"both async and sync fetching of the wasm failed";}function getBinaryPromise2(binaryFile){if(!wasmBinary&&!isDataURI(binaryFile)&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER))if(typeof fetch=="function")return fetch(binaryFile, -{credentials:"same-origin"}).then(function(response){if(!response["ok"])throw"failed to load wasm binary file at '"+binaryFile+"'";return response["arrayBuffer"]()}).catch(function(){return getBinarySync(binaryFile)});return Promise.resolve().then(function(){return getBinarySync(binaryFile)})}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(function(binary){return WebAssembly.instantiate(binary,imports)}).then(function(instance){return instance}).then(receiver, -function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(binaryFile)&&typeof fetch=="function")return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation"); -return instantiateArrayBuffer(binaryFile,imports,callback)})});return instantiateArrayBuffer(binaryFile,imports,callback)}function createWasm(){var info={"a":wasmImports};function receiveInstance(instance,module){wasmExports=instance.exports;wasmTable=wasmExports["Ca"];addOnInit(wasmExports["Ba"]);removeRunDependency("wasm-instantiate");return wasmExports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}if(Module["instantiateWasm"])try{return Module["instantiateWasm"](info, -receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult);return{}}function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}var callRuntimeCallbacks=function(callbacks){while(callbacks.length>0)callbacks.shift()(Module)};var noExitRuntime=Module["noExitRuntime"]||true;var exceptionCaught=[];var uncaughtExceptionCount= -0;var ___cxa_begin_catch=function(ptr){var info=new ExceptionInfo(ptr);if(!info.get_caught()){info.set_caught(true);uncaughtExceptionCount--}info.set_rethrown(false);exceptionCaught.push(info);___cxa_increment_exception_refcount(info.excPtr);return info.get_exception_ptr()};var exceptionLast=0;var ___cxa_end_catch=function(){_setThrew(0,0);var info=exceptionCaught.pop();___cxa_decrement_exception_refcount(info.excPtr);exceptionLast=0};function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr- -24;this.set_type=function(type){HEAPU32[this.ptr+4>>2]=type};this.get_type=function(){return HEAPU32[this.ptr+4>>2]};this.set_destructor=function(destructor){HEAPU32[this.ptr+8>>2]=destructor};this.get_destructor=function(){return HEAPU32[this.ptr+8>>2]};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+12>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+12>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+13>>0]=rethrown};this.get_rethrown= -function(){return HEAP8[this.ptr+13>>0]!=0};this.init=function(type,destructor){this.set_adjusted_ptr(0);this.set_type(type);this.set_destructor(destructor)};this.set_adjusted_ptr=function(adjustedPtr){HEAPU32[this.ptr+16>>2]=adjustedPtr};this.get_adjusted_ptr=function(){return HEAPU32[this.ptr+16>>2]};this.get_exception_ptr=function(){var isPointer=___cxa_is_pointer_type(this.get_type());if(isPointer)return HEAPU32[this.excPtr>>2];var adjusted=this.get_adjusted_ptr();if(adjusted!==0)return adjusted; -return this.excPtr}}var ___resumeException=function(ptr){if(!exceptionLast)exceptionLast=ptr;throw exceptionLast;};var findMatchingCatch=function(args){var thrown=exceptionLast;if(!thrown){setTempRet0(0);return 0}var info=new ExceptionInfo(thrown);info.set_adjusted_ptr(thrown);var thrownType=info.get_type();if(!thrownType){setTempRet0(0);return thrown}for(var arg in args){var caughtType=args[arg];if(caughtType===0||caughtType===thrownType)break;var adjusted_ptr_addr=info.ptr+16;if(___cxa_can_catch(caughtType, -thrownType,adjusted_ptr_addr)){setTempRet0(caughtType);return thrown}}setTempRet0(thrownType);return thrown};var ___cxa_find_matching_catch_2=function(){return findMatchingCatch([])};var ___cxa_find_matching_catch_3=function(arg0){return findMatchingCatch([arg0])};var ___cxa_rethrow=function(){var info=exceptionCaught.pop();if(!info)abort("no exception to throw");var ptr=info.excPtr;if(!info.get_rethrown()){exceptionCaught.push(info);info.set_rethrown(true);info.set_caught(false);uncaughtExceptionCount++}exceptionLast= -ptr;throw exceptionLast;};var ___cxa_throw=function(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;uncaughtExceptionCount++;throw exceptionLast;};var ___cxa_uncaught_exceptions=function(){return uncaughtExceptionCount};var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;var UTF8ArrayToString=function(heapOrArray,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr; -if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder)return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr));var str="";while(idx>10,56320|ch&1023)}}return str};var UTF8ToString=function(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""};var SYSCALLS={varargs:undefined,get:function(){var ret=HEAP32[+SYSCALLS.varargs>>2];SYSCALLS.varargs+=4;return ret},getp:function(){return SYSCALLS.get()},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret}};function ___syscall_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;return 0}var ___syscall_fstat64=function(fd,buf){}; -function ___syscall_ioctl(fd,op,varargs){SYSCALLS.varargs=varargs;return 0}var ___syscall_lstat64=function(path,buf){};var ___syscall_newfstatat=function(dirfd,path,buf,flags){};function ___syscall_openat(dirfd,path,flags,varargs){SYSCALLS.varargs=varargs}var ___syscall_rmdir=function(path){};var ___syscall_stat64=function(path,buf){};var ___syscall_unlinkat=function(dirfd,path,flags){};var nowIsMonotonic=true;var __emscripten_get_now_is_monotonic=function(){return nowIsMonotonic};var __emscripten_throw_longjmp= -function(){throw Infinity;};var _abort=function(){abort("")};var _emscripten_date_now=function(){return Date.now()};var _emscripten_get_now;_emscripten_get_now=function(){return performance.now()};var _emscripten_memcpy_js=Uint8Array.prototype.copyWithin?function(dest,src,num){return HEAPU8.copyWithin(dest,src,src+num)}:function(dest,src,num){return HEAPU8.set(HEAPU8.subarray(src,src+num),dest)};var getHeapMax=function(){return 2147483648};var growMemory=function(size){var b=wasmMemory.buffer;var pages= -(size-b.byteLength+65535)/65536;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=function(requestedSize){var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize)return false;var alignUp=function(x,multiple){return x+(multiple-x%multiple)%multiple};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,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement)return true}return false};var ENV={};var getExecutableName=function(){return thisProgram||"./this.program"};var getEnvStrings=function(){if(!getEnvStrings.strings){var lang=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"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 stringToAscii=function(str,buffer){for(var i=0;i>0]=str.charCodeAt(i);HEAP8[buffer>>0]=0};var _environ_get=function(__environ,environ_buf){var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAPU32[__environ+ -i*4>>2]=ptr;stringToAscii(string,ptr);bufSize+=string.length+1});return 0};var _environ_sizes_get=function(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAPU32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){return bufSize+=string.length+1});HEAPU32[penviron_buf_size>>2]=bufSize;return 0};var runtimeKeepaliveCounter=0;var keepRuntimeAlive=function(){return noExitRuntime||runtimeKeepaliveCounter>0};var _proc_exit=function(code){EXITSTATUS=code;if(!keepRuntimeAlive()){if(Module["onExit"])Module["onExit"](code); -ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=function(status,implicit){EXITSTATUS=status;_proc_exit(status)};var _exit=exitJS;var _fd_close=function(fd){return 52};var _fd_read=function(fd,iov,iovcnt,pnum){return 52};var convertI32PairToI53Checked=function(lo,hi){return 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 printChar=function(stream,curr){var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else buffer.push(curr)};var _fd_write=function(fd,iov,iovcnt,pnum){var num=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j>2]=num;return 0};var _llvm_eh_typeid_for=function(type){return type};var isLeapYear=function(year){return year% -4===0&&(year%100!==0||year%400===0)};var arraySum=function(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]);return sum};var MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];var MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];var addDays=function(date,days){var newDate=new Date(date.getTime());while(days>0){var leap=isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth- -newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11)newDate.setMonth(currentMonth+1);else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate};var lengthBytesUTF8=function(str){var len=0;for(var i=0;i=55296&&c<=57343){len+=4;++i}else len+=3}return len};var stringToUTF8Array= -function(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}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}}heap[outIdx]=0;return outIdx-startIdx};function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}var writeArrayToMemory=function(array, -buffer){HEAP8.set(array,buffer)};var _strftime=function(s,maxsize,format,tm){var tm_zone=HEAPU32[tm+40>>2];var date={tm_sec:HEAP32[tm>>2],tm_min:HEAP32[tm+4>>2],tm_hour:HEAP32[tm+8>>2],tm_mday:HEAP32[tm+12>>2],tm_mon:HEAP32[tm+16>>2],tm_year:HEAP32[tm+20>>2],tm_wday:HEAP32[tm+24>>2],tm_yday:HEAP32[tm+28>>2],tm_isdst:HEAP32[tm+32>>2],tm_gmtoff:HEAP32[tm+36>>2],tm_zone:tm_zone?UTF8ToString(tm_zone):""};var pattern=UTF8ToString(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y", -"%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var rule in EXPANSION_RULES_1)pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_1[rule]);var WEEKDAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday", -"Saturday"];var MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];function leadingSomething(value,digits,character){var str=typeof value=="number"?value.toString():value||"";while(str.length0?1:0}var compare;if((compare=sgn(date1.getFullYear()- -date2.getFullYear()))===0)if((compare=sgn(date1.getMonth()-date2.getMonth()))===0)compare=sgn(date1.getDate()-date2.getDate());return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31); -case 6:return new Date(janFourth.getFullYear()-1,11,30)}}function getWeekBasedYear(date){var thisDate=addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0){if(compareByDay(firstWeekStartNextYear, -thisDate)<=0)return thisDate.getFullYear()+1;return thisDate.getFullYear()}return thisDate.getFullYear()-1}var EXPANSION_RULES_2={"%a":function(date){return WEEKDAYS[date.tm_wday].substring(0,3)},"%A":function(date){return WEEKDAYS[date.tm_wday]},"%b":function(date){return MONTHS[date.tm_mon].substring(0,3)},"%B":function(date){return MONTHS[date.tm_mon]},"%C":function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)},"%d":function(date){return leadingNulls(date.tm_mday,2)},"%e":function(date){return leadingSomething(date.tm_mday, -2," ")},"%g":function(date){return getWeekBasedYear(date).toString().substring(2)},"%G":function(date){return getWeekBasedYear(date)},"%H":function(date){return leadingNulls(date.tm_hour,2)},"%I":function(date){var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)},"%j":function(date){return leadingNulls(date.tm_mday+arraySum(isLeapYear(date.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,date.tm_mon-1),3)},"%m":function(date){return leadingNulls(date.tm_mon+ -1,2)},"%M":function(date){return leadingNulls(date.tm_min,2)},"%n":function(){return"\n"},"%p":function(date){if(date.tm_hour>=0&&date.tm_hour<12)return"AM";return"PM"},"%S":function(date){return leadingNulls(date.tm_sec,2)},"%t":function(){return"\t"},"%u":function(date){return date.tm_wday||7},"%U":function(date){var days=date.tm_yday+7-date.tm_wday;return leadingNulls(Math.floor(days/7),2)},"%V":function(date){var val=Math.floor((date.tm_yday+7-(date.tm_wday+6)%7)/7);if((date.tm_wday+371-date.tm_yday- -2)%7<=2)val++;if(!val){val=52;var dec31=(date.tm_wday+7-date.tm_yday-1)%7;if(dec31==4||dec31==5&&isLeapYear(date.tm_year%400-1))val++}else if(val==53){var jan1=(date.tm_wday+371-date.tm_yday)%7;if(jan1!=4&&(jan1!=3||!isLeapYear(date.tm_year)))val=1}return leadingNulls(val,2)},"%w":function(date){return date.tm_wday},"%W":function(date){var days=date.tm_yday+7-(date.tm_wday+6)%7;return leadingNulls(Math.floor(days/7),2)},"%y":function(date){return(date.tm_year+1900).toString().substring(2)},"%Y":function(date){return date.tm_year+ -1900},"%z":function(date){var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)},"%Z":function(date){return date.tm_zone},"%%":function(){return"%"}};pattern=pattern.replace(/%%/g,"\x00\x00");for(var rule in EXPANSION_RULES_2)if(pattern.includes(rule))pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date));pattern=pattern.replace(/\0\0/g,"%");var bytes=intArrayFromString(pattern,false);if(bytes.length> -maxsize)return 0;writeArrayToMemory(bytes,s);return bytes.length-1};var _strftime_l=function(s,maxsize,format,tm,loc){return _strftime(s,maxsize,format,tm)};var wasmTableMirror=[];var wasmTable;var getWasmTableEntry=function(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func};var wasmImports={w:___cxa_begin_catch,y:___cxa_end_catch,b:___cxa_find_matching_catch_2,k:___cxa_find_matching_catch_3, -V:___cxa_rethrow,B:___cxa_throw,fa:___cxa_uncaught_exceptions,f:___resumeException,T:___syscall_fcntl64,pa:___syscall_fstat64,ra:___syscall_ioctl,ma:___syscall_lstat64,na:___syscall_newfstatat,U:___syscall_openat,ia:___syscall_rmdir,oa:___syscall_stat64,ja:___syscall_unlinkat,sa:__emscripten_get_now_is_monotonic,ga:__emscripten_throw_longjmp,L:_abort,ta:_emscripten_date_now,ua:_emscripten_memcpy_js,ha:_emscripten_resize_heap,ka:_environ_get,la:_environ_sizes_get,D:_exit,N:_fd_close,qa:_fd_read,ca:_fd_seek, -S:_fd_write,z:invoke_di,Q:invoke_diii,R:invoke_fiii,r:invoke_i,c:invoke_ii,wa:invoke_iid,v:invoke_iidd,K:invoke_iidddddd,g:invoke_iii,va:invoke_iiidd,xa:invoke_iiidddd,e:invoke_iiii,ya:invoke_iiiidddd,l:invoke_iiiii,ea:invoke_iiiiid,o:invoke_iiiiii,_:invoke_iiiiiidd,t:invoke_iiiiiii,C:invoke_iiiiiiii,F:invoke_iiiiiiiii,J:invoke_iiiiiiiiiiii,P:invoke_iiiiiiiiiiiiiii,ba:invoke_jiiii,n:invoke_v,i:invoke_vi,u:invoke_vidd,Z:invoke_viddddiii,h:invoke_vidi,d:invoke_vii,p:invoke_viidd,Y:invoke_viidi,X:invoke_viidiii, -Aa:invoke_viiffffffi,aa:invoke_viiffffi,j:invoke_viii,O:invoke_viiiddiidd,E:invoke_viiiffffffi,A:invoke_viiiffffi,x:invoke_viiiffi,m:invoke_viiii,q:invoke_viiiii,W:invoke_viiiiidd,H:invoke_viiiiii,s:invoke_viiiiiii,M:invoke_viiiiiiii,za:invoke_viiiiiiiii,G:invoke_viiiiiiiiii,I:invoke_viiiiiiiiiiiiiii,$:_llvm_eh_typeid_for,a:wasmMemory,da:_strftime_l};var wasmExports=createWasm();var ___wasm_call_ctors=function(){return(___wasm_call_ctors=wasmExports["Ba"])()};var _malloc=Module["_malloc"]=function(a0){return(_malloc= -Module["_malloc"]=wasmExports["Da"])(a0)};var _free=Module["_free"]=function(a0){return(_free=Module["_free"]=wasmExports["Ea"])(a0)};var ___errno_location=function(){return(___errno_location=wasmExports["__errno_location"])()};var _ASC_FT_Malloc=Module["_ASC_FT_Malloc"]=function(a0){return(_ASC_FT_Malloc=Module["_ASC_FT_Malloc"]=wasmExports["Fa"])(a0)};var _ASC_FT_Free=Module["_ASC_FT_Free"]=function(a0){return(_ASC_FT_Free=Module["_ASC_FT_Free"]=wasmExports["Ga"])(a0)};var _ASC_FT_Init=Module["_ASC_FT_Init"]= -function(){return(_ASC_FT_Init=Module["_ASC_FT_Init"]=wasmExports["Ha"])()};var _ASC_FT_Done_FreeType=Module["_ASC_FT_Done_FreeType"]=function(a0){return(_ASC_FT_Done_FreeType=Module["_ASC_FT_Done_FreeType"]=wasmExports["Ia"])(a0)};var _ASC_FT_Set_TrueType_HintProp=Module["_ASC_FT_Set_TrueType_HintProp"]=function(a0,a1){return(_ASC_FT_Set_TrueType_HintProp=Module["_ASC_FT_Set_TrueType_HintProp"]=wasmExports["Ja"])(a0,a1)};var _ASC_FT_Open_Face=Module["_ASC_FT_Open_Face"]=function(a0,a1,a2,a3){return(_ASC_FT_Open_Face= -Module["_ASC_FT_Open_Face"]=wasmExports["Ka"])(a0,a1,a2,a3)};var _ASC_FT_Done_Face=Module["_ASC_FT_Done_Face"]=function(a0){return(_ASC_FT_Done_Face=Module["_ASC_FT_Done_Face"]=wasmExports["La"])(a0)};var _ASC_FT_SetCMapForCharCode=Module["_ASC_FT_SetCMapForCharCode"]=function(a0,a1){return(_ASC_FT_SetCMapForCharCode=Module["_ASC_FT_SetCMapForCharCode"]=wasmExports["Ma"])(a0,a1)};var _ASC_FT_GetFaceInfo=Module["_ASC_FT_GetFaceInfo"]=function(a0){return(_ASC_FT_GetFaceInfo=Module["_ASC_FT_GetFaceInfo"]= -wasmExports["Na"])(a0)};var _ASC_FT_GetFaceMaxAdvanceX=Module["_ASC_FT_GetFaceMaxAdvanceX"]=function(a0){return(_ASC_FT_GetFaceMaxAdvanceX=Module["_ASC_FT_GetFaceMaxAdvanceX"]=wasmExports["Oa"])(a0)};var _ASC_FT_GetKerningX=Module["_ASC_FT_GetKerningX"]=function(a0,a1,a2){return(_ASC_FT_GetKerningX=Module["_ASC_FT_GetKerningX"]=wasmExports["Pa"])(a0,a1,a2)};var _ASC_FT_Set_Transform=Module["_ASC_FT_Set_Transform"]=function(a0,a1,a2,a3,a4){return(_ASC_FT_Set_Transform=Module["_ASC_FT_Set_Transform"]= -wasmExports["Qa"])(a0,a1,a2,a3,a4)};var _ASC_FT_Set_Char_Size=Module["_ASC_FT_Set_Char_Size"]=function(a0,a1,a2,a3,a4){return(_ASC_FT_Set_Char_Size=Module["_ASC_FT_Set_Char_Size"]=wasmExports["Ra"])(a0,a1,a2,a3,a4)};var _ASC_FT_Load_Glyph=Module["_ASC_FT_Load_Glyph"]=function(a0,a1,a2){return(_ASC_FT_Load_Glyph=Module["_ASC_FT_Load_Glyph"]=wasmExports["Sa"])(a0,a1,a2)};var _ASC_FT_Glyph_Get_CBox=Module["_ASC_FT_Glyph_Get_CBox"]=function(a0,a1){return(_ASC_FT_Glyph_Get_CBox=Module["_ASC_FT_Glyph_Get_CBox"]= -wasmExports["Ta"])(a0,a1)};var _ASC_FT_Get_Glyph_Measure_Params=Module["_ASC_FT_Get_Glyph_Measure_Params"]=function(a0,a1){return(_ASC_FT_Get_Glyph_Measure_Params=Module["_ASC_FT_Get_Glyph_Measure_Params"]=wasmExports["Ua"])(a0,a1)};var _ASC_FT_Get_Glyph_Render_Params=Module["_ASC_FT_Get_Glyph_Render_Params"]=function(a0,a1){return(_ASC_FT_Get_Glyph_Render_Params=Module["_ASC_FT_Get_Glyph_Render_Params"]=wasmExports["Va"])(a0,a1)};var _ASC_FT_Get_Glyph_Render_Buffer=Module["_ASC_FT_Get_Glyph_Render_Buffer"]= -function(a0){return(_ASC_FT_Get_Glyph_Render_Buffer=Module["_ASC_FT_Get_Glyph_Render_Buffer"]=wasmExports["Wa"])(a0)};var _ASC_HB_LanguageFromString=Module["_ASC_HB_LanguageFromString"]=function(a0){return(_ASC_HB_LanguageFromString=Module["_ASC_HB_LanguageFromString"]=wasmExports["Xa"])(a0)};var _ASC_HB_ShapeText=Module["_ASC_HB_ShapeText"]=function(a0,a1,a2,a3,a4,a5,a6){return(_ASC_HB_ShapeText=Module["_ASC_HB_ShapeText"]=wasmExports["Ya"])(a0,a1,a2,a3,a4,a5,a6)};var _ASC_HB_FontFree=Module["_ASC_HB_FontFree"]= -function(a0){return(_ASC_HB_FontFree=Module["_ASC_HB_FontFree"]=wasmExports["Za"])(a0)};var ___cxa_free_exception=function(a0){return(___cxa_free_exception=wasmExports["__cxa_free_exception"])(a0)};var _Zlib_Malloc=Module["_Zlib_Malloc"]=function(a0){return(_Zlib_Malloc=Module["_Zlib_Malloc"]=wasmExports["_a"])(a0)};var _Zlib_Free=Module["_Zlib_Free"]=function(a0){return(_Zlib_Free=Module["_Zlib_Free"]=wasmExports["$a"])(a0)};var _Zlib_Create=Module["_Zlib_Create"]=function(){return(_Zlib_Create= -Module["_Zlib_Create"]=wasmExports["ab"])()};var _Zlib_Open=Module["_Zlib_Open"]=function(a0,a1){return(_Zlib_Open=Module["_Zlib_Open"]=wasmExports["bb"])(a0,a1)};var _Zlib_Close=Module["_Zlib_Close"]=function(a0){return(_Zlib_Close=Module["_Zlib_Close"]=wasmExports["cb"])(a0)};var _Zlib_AddFile=Module["_Zlib_AddFile"]=function(a0,a1,a2,a3){return(_Zlib_AddFile=Module["_Zlib_AddFile"]=wasmExports["db"])(a0,a1,a2,a3)};var _Zlib_RemoveFile=Module["_Zlib_RemoveFile"]=function(a0,a1){return(_Zlib_RemoveFile= -Module["_Zlib_RemoveFile"]=wasmExports["eb"])(a0,a1)};var _Zlib_GetPaths=Module["_Zlib_GetPaths"]=function(a0){return(_Zlib_GetPaths=Module["_Zlib_GetPaths"]=wasmExports["fb"])(a0)};var _Zlib_GetFile=Module["_Zlib_GetFile"]=function(a0,a1){return(_Zlib_GetFile=Module["_Zlib_GetFile"]=wasmExports["gb"])(a0,a1)};var _Zlib_Save=Module["_Zlib_Save"]=function(a0){return(_Zlib_Save=Module["_Zlib_Save"]=wasmExports["hb"])(a0)};var _Raster_DecodeFile=Module["_Raster_DecodeFile"]=function(a0,a1,a2){return(_Raster_DecodeFile= -Module["_Raster_DecodeFile"]=wasmExports["ib"])(a0,a1,a2)};var _Raster_GetDecodedBuffer=Module["_Raster_GetDecodedBuffer"]=function(a0){return(_Raster_GetDecodedBuffer=Module["_Raster_GetDecodedBuffer"]=wasmExports["jb"])(a0)};var _Raster_GetWidth=Module["_Raster_GetWidth"]=function(a0){return(_Raster_GetWidth=Module["_Raster_GetWidth"]=wasmExports["kb"])(a0)};var _Raster_GetHeight=Module["_Raster_GetHeight"]=function(a0){return(_Raster_GetHeight=Module["_Raster_GetHeight"]=wasmExports["lb"])(a0)}; -var _Raster_GetStride=Module["_Raster_GetStride"]=function(a0){return(_Raster_GetStride=Module["_Raster_GetStride"]=wasmExports["mb"])(a0)};var _Raster_Destroy=Module["_Raster_Destroy"]=function(a0){return(_Raster_Destroy=Module["_Raster_Destroy"]=wasmExports["nb"])(a0)};var _Raster_EncodeImageData=Module["_Raster_EncodeImageData"]=function(a0,a1,a2,a3,a4,a5){return(_Raster_EncodeImageData=Module["_Raster_EncodeImageData"]=wasmExports["ob"])(a0,a1,a2,a3,a4,a5)};var _Raster_Encode=Module["_Raster_Encode"]= -function(a0,a1,a2){return(_Raster_Encode=Module["_Raster_Encode"]=wasmExports["pb"])(a0,a1,a2)};var _Raster_GetEncodedSize=Module["_Raster_GetEncodedSize"]=function(a0){return(_Raster_GetEncodedSize=Module["_Raster_GetEncodedSize"]=wasmExports["qb"])(a0)};var _Raster_GetEncodedBuffer=Module["_Raster_GetEncodedBuffer"]=function(a0){return(_Raster_GetEncodedBuffer=Module["_Raster_GetEncodedBuffer"]=wasmExports["rb"])(a0)};var _Raster_DestroyEncodedData=Module["_Raster_DestroyEncodedData"]=function(a0){return(_Raster_DestroyEncodedData= -Module["_Raster_DestroyEncodedData"]=wasmExports["sb"])(a0)};var _Image_GetFormat=Module["_Image_GetFormat"]=function(a0,a1){return(_Image_GetFormat=Module["_Image_GetFormat"]=wasmExports["tb"])(a0,a1)};var setTempRet0=function(a0){return(setTempRet0=wasmExports["ub"])(a0)};var _hyphenCreateApplication=Module["_hyphenCreateApplication"]=function(){return(_hyphenCreateApplication=Module["_hyphenCreateApplication"]=wasmExports["vb"])()};var _hyphenDestroyApplication=Module["_hyphenDestroyApplication"]= -function(a0){return(_hyphenDestroyApplication=Module["_hyphenDestroyApplication"]=wasmExports["wb"])(a0)};var _hyphenLoadDictionary=Module["_hyphenLoadDictionary"]=function(a0,a1,a2,a3){return(_hyphenLoadDictionary=Module["_hyphenLoadDictionary"]=wasmExports["xb"])(a0,a1,a2,a3)};var _hyphenCheckDictionary=Module["_hyphenCheckDictionary"]=function(a0,a1){return(_hyphenCheckDictionary=Module["_hyphenCheckDictionary"]=wasmExports["yb"])(a0,a1)};var _hyphenWord=Module["_hyphenWord"]=function(a0,a1,a2, -a3){return(_hyphenWord=Module["_hyphenWord"]=wasmExports["zb"])(a0,a1,a2,a3)};var _setThrew=function(a0,a1){return(_setThrew=wasmExports["Ab"])(a0,a1)};var stackSave=function(){return(stackSave=wasmExports["Bb"])()};var stackRestore=function(a0){return(stackRestore=wasmExports["Cb"])(a0)};var ___cxa_decrement_exception_refcount=function(a0){return(___cxa_decrement_exception_refcount=wasmExports["Db"])(a0)};var ___cxa_increment_exception_refcount=function(a0){return(___cxa_increment_exception_refcount= -wasmExports["Eb"])(a0)};var ___cxa_can_catch=function(a0,a1,a2){return(___cxa_can_catch=wasmExports["Fb"])(a0,a1,a2)};var ___cxa_is_pointer_type=function(a0){return(___cxa_is_pointer_type=wasmExports["Gb"])(a0)};var dynCall_jiiii=Module["dynCall_jiiii"]=function(a0,a1,a2,a3,a4){return(dynCall_jiiii=Module["dynCall_jiiii"]=wasmExports["Hb"])(a0,a1,a2,a3,a4)};function invoke_v(index){var sp=stackSave();try{getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiii(index, -a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(index,a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(index,a1){var sp=stackSave();try{getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(index){var sp=stackSave();try{return getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(index, -a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiii(index, -a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiffi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiiii(index, -a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiffffffi(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiffffi(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1, -a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiffffi(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiffffffi(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiii(index,a1,a2,a3, -a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e; -_setThrew(1,0)}}function invoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2, -a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiidddd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiidddd(index,a1, -a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_di(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iid(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidi(index,a1,a2,a3){var sp=stackSave(); -try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidd(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiidd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidddddd(index,a1,a2,a3,a4,a5,a6, -a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viidd(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiidd(index,a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiddiidd(index, -a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddddiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidd(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1, -0)}}function invoke_viidi(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viidiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiidd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+ -0)throw e;_setThrew(1,0)}}function invoke_iiiiid(index,a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_fiii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_diii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!== -e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}} -function invoke_jiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return dynCall_jiiii(index,a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0)return;preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"](); -postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else doRun()}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0)Module["preInit"].pop()()}run();function CReturnObject(){this.error=0;this.freeObj=0}CReturnObject.prototype.free=function(){Module["_ASC_FT_Free"](this.freeObj)};var g_return_obj=new CReturnObject;var g_return_obj_count= -new CReturnObject;g_return_obj_count.count=0;AscFonts.CopyStreamToMemory=function(data,size){var fontStreamPointer=Module["_ASC_FT_Malloc"](size);Module["HEAP8"].set(data,fontStreamPointer);return fontStreamPointer};AscFonts.GetUint8ArrayFromPointer=function(pointer,size){return new Uint8Array(Module["HEAP8"].buffer,pointer,size)};function CShapeString(size){this.size=size;this.pointer=Module["_malloc"](size)}CShapeString.prototype.getBuffer=function(){return new Uint8Array(Module["HEAPU8"].buffer, -this.pointer,this.size)};CShapeString.prototype.free=function(){Module["_free"](this.pointer)};CShapeString.prototype.set=function(index,value){Module["HEAPU8"][this.pointer+index]=value};AscFonts.AllocString=function(size){return new CShapeString(size)};AscFonts.FT_CreateLibrary=Module["_ASC_FT_Init"];AscFonts.FT_Done_Library=Module["_ASC_FT_Done_FreeType"];AscFonts.FT_Set_TrueType_HintProp=Module["_ASC_FT_Set_TrueType_HintProp"];AscFonts.FT_Open_Face=Module["_ASC_FT_Open_Face"];AscFonts.FT_Done_Face= -Module["_ASC_FT_Done_Face"];AscFonts.FT_SetCMapForCharCode=Module["_ASC_FT_SetCMapForCharCode"];AscFonts.FT_GetKerningX=Module["_ASC_FT_GetKerningX"];AscFonts.FT_GetFaceMaxAdvanceX=Module["_ASC_FT_GetFaceMaxAdvanceX"];AscFonts.FT_Set_Transform=Module["_ASC_FT_Set_Transform"];AscFonts.FT_Set_Char_Size=Module["_ASC_FT_Set_Char_Size"];AscFonts.FT_GetFaceInfo=function(face,reader){var pointer=Module["_ASC_FT_GetFaceInfo"](face);if(!pointer){g_return_obj.error=1;return g_return_obj}var len_buffer=Math.min(Module["HEAP8"].length- -pointer,1E3);reader.init(new Uint8Array(Module["HEAP8"].buffer,pointer,len_buffer));g_return_obj.freeObj=pointer;g_return_obj.error=0;return g_return_obj};AscFonts.FT_Load_Glyph=Module["_ASC_FT_Load_Glyph"];AscFonts.FT_SetCMapForCharCode=Module["_ASC_FT_SetCMapForCharCode"];AscFonts.FT_Get_Glyph_Measure_Params=function(face,vector_worker,reader){var pointer=Module["_ASC_FT_Get_Glyph_Measure_Params"](face,vector_worker?1:0);if(!pointer){g_return_obj_count.error=1;return g_return_obj_count}var len= -!vector_worker?15:Module["HEAP32"][pointer>>2];if(vector_worker)len=Module["HEAP32"][pointer>>2];reader.init(new Uint8Array(Module["HEAP8"].buffer,pointer+4,4*(len-1)));g_return_obj_count.freeObj=pointer;g_return_obj_count.count=len;g_return_obj_count.error=0;return g_return_obj_count};AscFonts.FT_Get_Glyph_Render_Params=function(face,render_mode,reader){var pointer=Module["_ASC_FT_Get_Glyph_Render_Params"](face,render_mode);if(!pointer){g_return_obj_count.error=1;return g_return_obj_count}reader.init(new Uint8Array(Module["HEAP8"].buffer, -pointer,4*6));g_return_obj.freeObj=pointer;g_return_obj.error=0;return g_return_obj};AscFonts.FT_Get_Glyph_Render_Buffer=function(face,size){var pointer=Module["_ASC_FT_Get_Glyph_Render_Buffer"](face);return new Uint8Array(Module["HEAP8"].buffer,pointer,size)};var hb_cache_languages={};AscFonts.HB_FontFree=Module["ASC_HB_FontFree"];AscFonts.HB_ShapeText=function(fontFile,text,features,script,direction,language,reader){if(!hb_cache_languages[language]){var langBuffer=language.toUtf8();var langPointer= -Module["_malloc"](langBuffer.length);Module["HEAP8"].set(langBuffer,langBuffer);hb_cache_languages[language]=Module["_ASC_HB_LanguageFromString"](langPointer);Module["_free"](langPointer)}var pointer=Module["_ASC_HB_ShapeText"](fontFile["GetFace"](),fontFile["GetHBFont"](),text.pointer,features,script,direction,hb_cache_languages[language]);if(!pointer){g_return_obj_count.error=1;return g_return_obj_count}var buffer=Module["HEAP8"];var len=(buffer[pointer+3]&255)<<24|(buffer[pointer+2]&255)<<16|(buffer[pointer+ -1]&255)<<8|buffer[pointer]&255;reader.init(buffer,pointer+4,len-4);fontFile["SetHBFont"](reader.readPointer64());g_return_obj_count.freeObj=pointer;g_return_obj_count.count=(len-12)/26;g_return_obj_count.error=0;return g_return_obj_count};function ZLib(){this.engine=0;this.files={}}ZLib.prototype.isModuleInit=false;ZLib.prototype.open=function(buf){if(!this.isModuleInit)return false;if(this.engine)this.close();if(!buf)return false;var arrayBuffer=undefined!==buf.byteLength?new Uint8Array(buf):buf; -var FileRawDataSize=arrayBuffer.length;var FileRawData=Module["_Zlib_Malloc"](FileRawDataSize);if(0==FileRawData)return false;Module["HEAP8"].set(arrayBuffer,FileRawData);this.engine=Module["_Zlib_Open"](FileRawData,FileRawDataSize);if(0==this.engine){Module["_Zlib_Free"](FileRawData);return false}var pointer=Module["_Zlib_GetPaths"](this.engine);if(0==pointer){Module["_Zlib_Close"](this.engine);Module["_Zlib_Free"](FileRawData);return false}var lenArray=new Int32Array(Module["HEAP8"].buffer,pointer, -4);var len=lenArray[0];len-=4;var buffer=new Uint8Array(Module["HEAP8"].buffer,pointer+4,len);var index=0;while(index0)return new Uint8Array(Module["HEAP8"].buffer,this.files[path].p,this.files[path].l);else{var _lenFile=new Int32Array(Module["HEAP8"].buffer,this.files[path].p,4);var len=_lenFile[0];return new Uint8Array(Module["HEAP8"].buffer,this.files[path].p+4,len)}var tmp=path.toUtf8();var pointer=Module["_Zlib_Malloc"](tmp.length); -if(0==pointer)return null;Module["HEAP8"].set(tmp,pointer);var pointerFile=Module["_Zlib_GetFile"](this.engine,pointer);if(0==pointerFile){Module["_Zlib_Free"](pointer);return null}var _lenFile=new Int32Array(Module["HEAP8"].buffer,pointerFile,4);var len=_lenFile[0];Module["_Zlib_Free"](pointer);this.files[path]={p:pointerFile,l:0};return new Uint8Array(Module["HEAP8"].buffer,pointerFile+4,len)};ZLib.prototype.addFile=function(path,data){if(!this.isModuleInit||!this.engine)return false;if(!data)return false; -if(undefined!==this.files[path])this.removeFile(path);var tmp=path.toUtf8();var pointer=Module["_Zlib_Malloc"](tmp.length);if(0==pointer)return false;Module["HEAP8"].set(tmp,pointer);var arrayBuffer=undefined!==data.byteLength?new Uint8Array(data):data;var FileRawDataSize=arrayBuffer.length;var FileRawData=Module["_Zlib_Malloc"](FileRawDataSize);if(0==FileRawData){Module["_Zlib_Free"](pointer);return false}Module["HEAP8"].set(arrayBuffer,FileRawData);Module["_Zlib_AddFile"](this.engine,pointer,FileRawData, -FileRawDataSize);this.files[path]={p:FileRawData,l:FileRawDataSize};Module["_Zlib_Free"](pointer);return true};ZLib.prototype.removeFile=function(path){if(!this.isModuleInit||!this.engine)return false;if(undefined===this.files[path])return false;var tmp=path.toUtf8();var pointer=Module["_Zlib_Malloc"](tmp.length);if(0==pointer)return false;Module["HEAP8"].set(tmp,pointer);Module["_Zlib_RemoveFile"](this.engine,pointer);if(this.files[path]&&this.files[path].p){Module["_Zlib_Free"](this.files[path].p); -delete this.files[path]}Module["_Zlib_Free"](pointer);return true};ZLib.prototype.close=function(){if(!this.isModuleInit||!this.engine)return;for(var i in this.files)if(this.files[i]&&this.files[i].p)Module["_Zlib_Free"](this.files[i].p);this.files={};if(this.engine)Module["_Zlib_Free"](this.engine);this.engine=0};ZLib.prototype.getImageType=function(path){var fileData=this.getFile(path);return Module["_Image_GetFormat"](this.files[path].p+4,fileData.length)};ZLib.prototype.getImageAsFormat=function(path, -format){var fileData=this.getFile(path);var encodedData=Module["_Raster_Encode"](this.files[path].p+4,fileData.length,format);var encodedSize=Module["_Raster_GetEncodedSize"](encodedData);var encodedBuffer=Module["_Raster_GetEncodedBuffer"](encodedData);var copyData=new Uint8Array(encodedSize);copyData.set(new Uint8Array(Module["HEAP8"].buffer,encodedBuffer,encodedSize));Module["_Raster_DestroyEncodedData"](encodedData);return copyData};ZLib.prototype.getImageAsSvg=function(path){var fileData=this.getFile(path); -var encodedData=Module["_Raster_Encode"](this.files[path].p+4,fileData.length,24);var encodedSize=Module["_Raster_GetEncodedSize"](encodedData);var encodedBuffer=Module["_Raster_GetEncodedBuffer"](encodedData);var string=String.prototype.fromUtf8(new Uint8Array(Module["HEAP8"].buffer,encodedBuffer,encodedSize));Module["_Raster_DestroyEncodedData"](encodedData);return string};ZLib.prototype.getImageBlob=function(path){var imageType=this.getImageType(path);if(imageType!=10&&imageType!=21)return new Blob([this.getFile(path)], -{type:AscCommon.openXml.GetMimeType(AscCommon.GetFileExtension(path))});var fileData=this.getFile(path);var encodedData=Module["_Raster_Encode"](this.files[path].p+4,fileData.length,24);var encodedSize=Module["_Raster_GetEncodedSize"](encodedData);var encodedBuffer=Module["_Raster_GetEncodedBuffer"](encodedData);var blob=new Blob([new Uint8Array(Module["HEAP8"].buffer,encodedBuffer,encodedSize)],{type:AscCommon.openXml.GetMimeType("svg")});Module["_Raster_DestroyEncodedData"](encodedData);return blob}; -window.AscCommon=window.AscCommon||{};window.AscCommon.CZLibEngineJS=ZLib;var hyphenApplication=0;AscFonts.Hyphen_Init=function(){hyphenApplication=Module["_hyphenCreateApplication"]()};AscFonts.Hyphen_Destroy=function(){Module["_hyphenDestroyApplication"](hyphenApplication)};AscFonts.Hyphen_CheckDictionary=function(lang){return false};AscFonts.Hyphen_LoadDictionary=function(lang,data){var dictSize=data.byteLength;var dictPointer=Module["_malloc"](dictSize);Module["HEAP8"].set(new Uint8ClampedArray(data), -dictPointer);var result=Module["_hyphenLoadDictionary"](hyphenApplication,lang,dictPointer,dictSize);Module["_free"](dictPointer);return result===0?true:false};AscFonts.Hyphen_Word=function(lang,word){var wordPointer=word.toUtf8Pointer(true);var wordLen=wordPointer.length;var hyphens=[];if(wordPointer){var ptr=Module._hyphenWord(hyphenApplication,lang,wordPointer.ptr,wordLen);var vector=new Uint8ClampedArray(Module["HEAP8"].buffer,ptr,wordLen+5);var pos=0;while(vector[pos]!=0){if(1===(vector[pos]& -1))hyphens.push(pos+1);pos++}wordPointer.free()}return hyphens};if(window["NATIVE_EDITOR_ENJINE"])window.immediateRun();AscFonts.onLoadModule()})(window,undefined); + +(function(window, undefined) { + +var AscFonts = window['AscFonts']; + +if (window["NATIVE_EDITOR_ENJINE"]) + window.setImmediate = function(fn) { fn(); }; + +var setImmediate = window.setImmediate; + +// correct fetch for desktop application + +var printErr = undefined; +var print = undefined; + +var fetch = ("undefined" !== typeof window) ? window.fetch : (("undefined" !== typeof self) ? self.fetch : null); +var getBinaryPromise = null; + +function internal_isLocal() +{ + if (window.navigator && window.navigator.userAgent.toLowerCase().indexOf("ascdesktopeditor") < 0) + return false; + if (window.location && window.location.protocol == "file:") + return true; + if (window.document && window.document.currentScript && 0 == window.document.currentScript.src.indexOf("file:///")) + return true; + return false; +} + +if (internal_isLocal()) +{ + fetch = undefined; // fetch not support file:/// scheme + getBinaryPromise = function() + { + var wasmPath = "ascdesktop://fonts/" + wasmBinaryFile.substr(8); + return new Promise(function (resolve, reject) + { + var xhr = new XMLHttpRequest(); + xhr.open('GET', wasmPath, true); + xhr.responseType = 'arraybuffer'; + + if (xhr.overrideMimeType) + xhr.overrideMimeType('text/plain; charset=x-user-defined'); + else + xhr.setRequestHeader('Accept-Charset', 'x-user-defined'); + + xhr.onload = function () + { + if (this.status == 200) + resolve(new Uint8Array(this.response)); + }; + xhr.send(null); + }); + } +} +else +{ + getBinaryPromise = function() { return getBinaryPromise2(); } +} + + +var ob;function pb(h){var f=0;return function(){return fh&&(h=Math.max(0,Ka+h));if(null==Za||Za>Ka)Za=Ka;Za=Number(Za);0>Za&&(Za=Math.max(0,Ka+Za));for(h=Number(h||0);hf||1342177279>>=1)h+=h;return Za}}); +Gd("Number.isFinite",function(h){return h?h:function(f){return"number"!==typeof f?!1:!isNaN(f)&&Infinity!==f&&-Infinity!==f}});Gd("Number.isInteger",function(h){return h?h:function(f){return Number.isFinite(f)?f===Math.floor(f):!1}});Gd("String.prototype.endsWith",function(h){return h?h:function(f,h){var Ka=Hd(this,f,"endsWith");f+="";void 0===h&&(h=Ka.length);h=Math.max(0,Math.min(h|0,Ka.length));for(var bb=f.length;0=bb}}); +Gd("String.prototype.padStart",function(h){return h?h:function(f,h){var Ka=Hd(this,null,"padStart");f-=Ka.length;h=void 0!==h?String(h):" ";return(0=gb}});Gd("Object.is",function(h){return h?h:function(f,h){return f===h?0!==f||1/f===1/h:f!==f&&h!==h}}); +Gd("Array.prototype.includes",function(h){return h?h:function(f,h){var Ka=this;Ka instanceof String&&(Ka=String(Ka));var bb=Ka.length;h=h||0;for(0>h&&(h=Math.max(h+bb,0));hf?-h:h}});Gd("Math.log1p",function(h){return h?h:function(f){f=Number(f);if(.25>f&&-.25f&&-.25f?-h:h}});Gd("Math.log10",function(h){return h?h:function(f){return Math.log(f)/Math.LN10}});Gd("Math.cosh",function(h){if(h)return h;var f=Math.exp;return function(h){h=Number(h);return(f(h)+f(-h))/2}});Gd("Math.sinh",function(h){if(h)return h;var f=Math.exp;return function(h){h=Number(h);return 0===h?h:(f(h)-f(-h))/2}}); +Gd("Math.acosh",function(h){return h?h:function(f){f=Number(f);return Math.log(f+Math.sqrt(f*f-1))}});Gd("Math.atanh",function(h){if(h)return h;var f=Math.log1p;return function(h){h=Number(h);return(f(h)-f(-h))/2}});Gd("Math.asinh",function(h){return h?h:function(f){f=Number(f);if(0===f)return f;var h=Math.log(Math.abs(f)+Math.sqrt(f*f+1));return 0>f?-h:h}});Gd("Array.prototype.findIndex",function(h){return h?h:function(f,h){return Fw(this,f,h).dn}}); + +Math.imul = Math.imul || function(a, b) { + var ah = (a >>> 16) & 0xffff; + var al = a & 0xffff; + var bh = (b >>> 16) & 0xffff; + var bl = b & 0xffff; + // сдвиг на 0 бит закрепляет знак в старшей части числа + // окончательный |0 преобразует беззнаковое значение обратно в знаковое значение + return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0)|0); +}; + +Math.fround = Math.fround || function(x) { + return new Float32Array([x])[0]; +}; + +Math.clz32 = Math.clz32 || function(value) { + value = Number(value) >>> 0; + return value !== 0 ? 31 - Math.floor(Math.log(value + 0.5) / Math.log(2)) : 32; +}; + +Uint8Array.prototype.copyWithin = Uint8Array.prototype.copyWithin || function(target, start, end) { + var tmpArray = this.subarray(start, end); + this.set(tmpArray, target); + return this; +}; + + +(function(){ + + if (undefined !== String.prototype.fromUtf8 && + undefined !== String.prototype.toUtf8) + return; + + var STRING_UTF8_BUFFER_LENGTH = 1024; + var STRING_UTF8_BUFFER = new ArrayBuffer(STRING_UTF8_BUFFER_LENGTH); + + /** + * Read string from utf8 + * @param {Uint8Array} buffer + * @param {number} [start=0] + * @param {number} [len] + * @returns {string} + */ + String.prototype.fromUtf8 = function(buffer, start, len) { + if (undefined === start) + start = 0; + if (undefined === len) + len = buffer.length - start; + + var result = ""; + var index = start; + var end = start + len; + while (index < end) + { + var u0 = buffer[index++]; + if (!(u0 & 128)) + { + result += String.fromCharCode(u0); + continue; + } + var u1 = buffer[index++] & 63; + if ((u0 & 224) == 192) + { + result += String.fromCharCode((u0 & 31) << 6 | u1); + continue; + } + var u2 = buffer[index++] & 63; + if ((u0 & 240) == 224) + u0 = (u0 & 15) << 12 | u1 << 6 | u2; + else + u0 = (u0 & 7) << 18 | u1 << 12 | u2 << 6 | buffer[index++] & 63; + if (u0 < 65536) + result += String.fromCharCode(u0); + else + { + var ch = u0 - 65536; + result += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023); + } + } + return result; + }; + + /** + * Convert string to utf8 array + * @returns {Uint8Array} + */ + String.prototype.toUtf8 = function(isNoEndNull, isUseBuffer) { + var inputLen = this.length; + var testLen = 6 * inputLen + 1; + var tmpStrings = (isUseBuffer && testLen < STRING_UTF8_BUFFER_LENGTH) ? STRING_UTF8_BUFFER : new ArrayBuffer(testLen); + + var code = 0; + var index = 0; + + var outputIndex = 0; + var outputDataTmp = new Uint8Array(tmpStrings); + var outputData = outputDataTmp; + + while (index < inputLen) + { + code = this.charCodeAt(index++); + if (code >= 0xD800 && code <= 0xDFFF && index < inputLen) + code = 0x10000 + (((code & 0x3FF) << 10) | (0x03FF & this.charCodeAt(index++))); + + if (code < 0x80) + outputData[outputIndex++] = code; + else if (code < 0x0800) + { + outputData[outputIndex++] = 0xC0 | (code >> 6); + outputData[outputIndex++] = 0x80 | (code & 0x3F); + } + else if (code < 0x10000) + { + outputData[outputIndex++] = 0xE0 | (code >> 12); + outputData[outputIndex++] = 0x80 | ((code >> 6) & 0x3F); + outputData[outputIndex++] = 0x80 | (code & 0x3F); + } + else if (code < 0x1FFFFF) + { + outputData[outputIndex++] = 0xF0 | (code >> 18); + outputData[outputIndex++] = 0x80 | ((code >> 12) & 0x3F); + outputData[outputIndex++] = 0x80 | ((code >> 6) & 0x3F); + outputData[outputIndex++] = 0x80 | (code & 0x3F); + } + else if (code < 0x3FFFFFF) + { + outputData[outputIndex++] = 0xF8 | (code >> 24); + outputData[outputIndex++] = 0x80 | ((code >> 18) & 0x3F); + outputData[outputIndex++] = 0x80 | ((code >> 12) & 0x3F); + outputData[outputIndex++] = 0x80 | ((code >> 6) & 0x3F); + outputData[outputIndex++] = 0x80 | (code & 0x3F); + } + else if (code < 0x7FFFFFFF) + { + outputData[outputIndex++] = 0xFC | (code >> 30); + outputData[outputIndex++] = 0x80 | ((code >> 24) & 0x3F); + outputData[outputIndex++] = 0x80 | ((code >> 18) & 0x3F); + outputData[outputIndex++] = 0x80 | ((code >> 12) & 0x3F); + outputData[outputIndex++] = 0x80 | ((code >> 6) & 0x3F); + outputData[outputIndex++] = 0x80 | (code & 0x3F); + } + } + + if (isNoEndNull !== true) + outputData[outputIndex++] = 0; + + return new Uint8Array(tmpStrings, 0, outputIndex); + }; + + function StringPointer(pointer, len) + { + this.ptr = pointer; + this.length = len; + } + StringPointer.prototype.free = function() + { + if (0 !== this.ptr) + Module["_free"](this.ptr); + }; + + String.prototype.toUtf8Pointer = function(isNoEndNull) { + var tmp = this.toUtf8(isNoEndNull, true); + var pointer = Module["_malloc"](tmp.length); + if (0 == pointer) + return null; + + Module["HEAP8"].set(tmp, pointer); + return new StringPointer(pointer, tmp.length); + }; + +})(); + + +var Module=typeof Module!="undefined"?Module:{}; +var Promise=function(){function noop(){}function bind(fn,thisArg){return function(){fn.apply(thisArg,arguments)}}function Promise(fn){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if(typeof fn!="function")throw new TypeError("not a function");this._state=0;this._handled=false;this._value=undefined;this._deferreds=[];doResolve(fn,this)}function handle(self,deferred){while(self._state===3)self=self._value;if(self._state===0){self._deferreds.push(deferred); +return}self._handled=true;Promise._immediateFn(function(){var cb=self._state===1?deferred.onFulfilled:deferred.onRejected;if(cb===null){(self._state===1?resolve:reject)(deferred.promise,self._value);return}var ret;try{ret=cb(self._value)}catch(e){reject(deferred.promise,e);return}resolve(deferred.promise,ret)})}function resolve(self,newValue){try{if(newValue===self)throw new TypeError("A promise cannot be resolved with itself.");if(newValue&&(typeof newValue=="object"||typeof newValue=="function")){var then= +newValue.then;if(newValue instanceof Promise){self._state=3;self._value=newValue;finale(self);return}else if(typeof then=="function"){doResolve(bind(then,newValue),self);return}}self._state=1;self._value=newValue;finale(self)}catch(e){reject(self,e)}}function reject(self,newValue){self._state=2;self._value=newValue;finale(self)}function finale(self){if(self._state===2&&self._deferreds.length===0)Promise._immediateFn(function(){if(!self._handled)Promise._unhandledRejectionFn(self._value)});for(var i= +0,len=self._deferreds.length;i=0;--a){f[48+a]=52+a;f[65+a]=a;f[97+a]=26+a}f[43]=62;f[47]=63;function l(m,n,o){var g,h,a=0,i=n,j=o.length,k=n+(j*3>>2)-(o[j-2]=="=")-(o[j-1]=="=");for(;a>4;if(i>2;if(i>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{if(I[a+212|0]){break i}S=a+236|0;T=a+124|0;R=C- -64|0;N=a+4|0;ba=a+8|0;b=H[e-12>>2];d=b+a|0;c=H[d+12>>2];k=H[d+8>>2];while(1){if(c>>>0<=k>>>0){break i}b=b+ba|0;l=e-12|0;j=0;j:{if(k+1>>>0>=c>>>0){h=0;break j}h=I[k|0]|I[k+1|0]<<8;H[b>>2]=k+2;d=H[l>>2]+N|0;b=d+4|0;c=H[d+8>>2];k=H[d+4>>2]}e=0;if(k+1>>>0>>0){j=I[k|0]|I[k+1|0]<<8;H[b>>2]=k+2;c=H[l>>2]+N|0;b=c+4|0;k=H[c+4>>2];c=H[c+8>>2]}if(k+3>>>0>>0){H[b>>2]=k+4;c=H[l>>2]+N|0;b=c+4|0;k=H[c+4>>2];c=H[c+8>>2]}if(c>>>0>k+3>>>0){e=I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24);H[b>>2]=k+4}H[a+116>>2]=e;c=H[l>>2]+N|0;b=c+4|0;ca=H[c>>2];L=H[c+4>>2];k:{l:{switch(h-16385|0){case 52:F[a+213|0]=1;b=H[l>>2]+N|0;j=b+4|0;z=0;e=H[b+8>>2];k=H[b+4>>2];if(e>>>0<=k+3>>>0){r=0}else{y=(x(2,I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24)),B());H[b+4>>2]=k+4;b=H[l>>2]+N|0;j=b+4|0;e=H[b+8>>2];k=H[b+4>>2];r=+y}if(k+3>>>0>>0){y=(x(2,I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24)),B());H[j>>2]=k+4;z=+y}b=H[a+208>>2];if(!b){break k}zb[H[H[b>>2]+468>>2]](b,r,z);break k;case 48:F[a+213|0]=1;b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}b=H[a+208>>2];if(!b){break k}zb[H[H[b>>2]+472>>2]](b);b=H[a+208>>2];zb[H[H[b>>2]+60>>2]](b);break k;case 50:l=j&65535;F[a+213|0]=1;m:{if(!H[a+208>>2]){break m}c=a+236|0;k=H[c>>2];if(!k){break m}e=l&255;b=c;while(1){d=e>>>0>K[k+16>>2];b=d?b:k;k=H[(d<<2)+k>>2];if(k){continue}break}if((b|0)==(c|0)|e>>>0>2]){break m}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=3){break m}c=H[b+20>>2];if(!c){break m}b=H[a+208>>2];zb[H[H[b>>2]+60>>2]](b);b=H[a+208>>2];ha=b,ja=c+4|0,la=l>>>8&15,ma=zb[H[H[a>>2]+88>>2]](a,2)|0,fa=H[H[b>>2]+72>>2],zb[fa](ha|0,ja|0,la|0,ma|0);b=H[a+208>>2];zb[H[H[b>>2]+476>>2]](b,l<<16>>16,c)}break k;case 49:f=xb-96|0;xb=f;F[a+213|0]=1;b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}c=j&65535;H[f+88>>2]=0;H[f+92>>2]=0;H[f+80>>2]=0;H[f+84>>2]=0;H[f+72>>2]=0;H[f+76>>2]=0;H[f+64>>2]=0;H[f+68>>2]=0;Ae((H[H[a>>2]-12>>2]+a|0)+4|0,f- -64|0);b=H[a+208>>2];if(b){zb[H[H[b>>2]+60>>2]](b);w=M[f+72>>3];M[f+40>>3]=w;r=M[f+64>>3];M[f+48>>3]=r+M[f+80>>3];M[f+56>>3]=w+M[f+88>>3];b=H[f+44>>2];H[f+8>>2]=H[f+40>>2];H[f+12>>2]=b;b=H[f+52>>2];H[f+16>>2]=H[f+48>>2];H[f+20>>2]=b;b=H[f+60>>2];H[f+24>>2]=H[f+56>>2];H[f+28>>2]=b;M[f+32>>3]=r;b=H[f+36>>2];H[f>>2]=H[f+32>>2];H[f+4>>2]=b;e=c>>>8&15;l=xb-32|0;xb=l;H[l+8>>2]=419120;g=l+8|4;H[g+4>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=424816;H[l+8>>2]=419680;H[g>>2]=419704;r=M[f+8>>3];A=M[f>>3];H[197455]=0;xa(1780,g|0,+A,+r)|0;b=H[197455];H[197455]=0;n:{o:{if((b|0)==1){break o}w=M[f+16>>3];H[197455]=0;xa(1781,g|0,+w,+r)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}r=M[f+24>>3];H[197455]=0;xa(1781,g|0,+w,+r)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}H[197455]=0;xa(1781,g|0,+A,+r)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}H[197455]=0;aa(1782,g|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}d=H[a+208>>2];if(d){b=H[H[a>>2]+88>>2];H[197455]=0;c=da(b|0,a|0,2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}b=H[H[d>>2]+72>>2];H[197455]=0;ka(b|0,d|0,g|0,e|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break o}}H[197455]=0;ia(1892,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break o}oe(g);xb=l+32|0;break n}a=$()|0;_()|0;oe(g);ea(a|0);X()}b=H[a+208>>2];zb[H[H[b>>2]+480>>2]](b,e,f- -64|0)}xb=f+96|0;break k;case 51:F[a+213|0]=1;if(!H[a+208>>2]){break k}k=H[S>>2];if(!k){break k}d=j&255;e=S;while(1){b=d>>>0>K[k+16>>2];e=b?e:k;k=H[(b<<2)+k>>2];if(k){continue}break};if((e|0)==(S|0)|d>>>0>2]){break k}b=H[e+20>>2];if((zb[H[H[b>>2]+12>>2]](b)|0)!=4){break k}c=H[e+20>>2];if(!c){break k}b=H[a+208>>2];zb[H[H[b>>2]+60>>2]](b);b=H[a+208>>2];zb[H[H[b>>2]+484>>2]](b,d,j>>>8&15,c);break k;case 2:H[c+4>>2]=e+L;b=H[a+208>>2];if(!b){break k}zb[H[H[b>>2]+488>>2]](b,H[l>>2]+N|0,e);break k;case 1:b=H[a+208>>2];if(!b){G[a+212>>1]=1;break k}zb[H[H[b>>2]+12>>2]](b);G[a+212>>1]=1;b=H[a+208>>2];if(!b){break k}zb[H[H[b>>2]+492>>2]](b);break k;case 3:F[a+213|0]=0;b=H[a+208>>2];if(!b){break k}zb[H[H[b>>2]+496>>2]](b);break k;case 0:f=0;h=0;e=H[a>>2]-12|0;b=H[e>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;d=H[e>>2]+a|0;c=d+8|0;j=H[c>>2];b=H[d+12>>2];if(b>>>0>j+3>>>0){f=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);H[d+8>>2]=j+4;c=H[e>>2]+a|0;b=H[c+12>>2];c=c+8|0;j=H[c>>2]}if(j+3>>>0>>0){h=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);H[c>>2]=j+4}H[a+216>>2]=h;j=0;b=H[e>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){j=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}F[a+213|0]=1;H[a+220>>2]=j;b=H[a+208>>2];if(b){zb[H[H[b>>2]+8>>2]](b);b=H[a+208>>2];zb[H[H[b>>2]+500>>2]](b,f,H[a+216>>2],H[a+220>>2])}break k;case 8:j=0;H[C+32>>2]=0;c=H[l>>2]+N|0;e=H[c+4>>2];b=H[c+8>>2];p:{if(e>>>0>=b>>>0){h=0;break p}h=I[e|0];e=e+1|0;H[c+4>>2]=e}F[C+32|0]=h;if(b>>>0>e>>>0){j=I[e|0];e=e+1|0;H[c+4>>2]=e}F[C+33|0]=j;j=0;q:{if(b>>>0<=e>>>0){h=0;break q}h=I[e|0];e=e+1|0;H[c+4>>2]=e}F[C+34|0]=h;if(b>>>0>e>>>0){j=I[e|0];H[c+4>>2]=e+1}F[C+35|0]=j;b=H[a+208>>2];if(b){zb[H[H[b>>2]+504>>2]](b,C+32|0)}F[a+213|0]=1;break k;case 17:r:{if(j&16384){J=0;z=0;D=0;i=xb-32|0;xb=i;d=H[a>>2]-12|0;c=H[d>>2]+a|0;h=c+8|0;f=H[h>>2];b=H[c+12>>2];if(b>>>0<=f+3>>>0){w=0}else{y=(x(2,I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24)),B());H[c+8>>2]=f+4;c=H[d>>2]+a|0;b=H[c+12>>2];h=c+8|0;f=H[h>>2];w=+y}if(f+3>>>0>>0){y=(x(2,I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24)),B());H[h>>2]=f+4;c=H[d>>2]+a|0;b=H[c+12>>2];D=+y;h=c+8|0;f=H[h>>2]}if(f+1>>>0>=b>>>0){A=0}else{c=(I[f|0]|I[f+1|0]<<8)<<16>>16;f=f+2|0;H[h>>2]=f;A=+(c|0)}if(f+1>>>0>>0){c=(I[f|0]|I[f+1|0]<<8)<<16>>16;f=f+2|0;H[h>>2]=f;J=+(c|0)}if(f+1>>>0>=b>>>0){r=0}else{c=(I[f|0]|I[f+1|0]<<8)<<16>>16;f=f+2|0;H[h>>2]=f;r=+(c|0)}if(f+1>>>0>>0){b=(I[f|0]|I[f+1|0]<<8)<<16>>16;H[h>>2]=f+2;z=+(b|0)}g=j&65535;c=a+236|0;f=H[c>>2];s:{if(!f){break s}e=g<<24>>24;b=c;while(1){d=e>>>0>K[f+16>>2];b=d?b:f;f=H[(d<<2)+f>>2];if(f){continue}break}if((b|0)==(c|0)|e>>>0>2]){break s}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=2){break s}b=H[b+20>>2];if(!b){break s}l=b+4|0;H[H[a+120>>2]+12>>2]=l;b=H[H[a+120>>2]+680>>2];M[i+8>>3]=J;M[i>>3]=A;M[i+16>>3]=r;M[i+24>>3]=z;Yp(a,A,J);z=J+z;t:{if(P(z)<2147483648){d=~~z;break t}d=-2147483648}r=A+r;u:{if(P(r)<2147483648){c=~~r;break u}c=-2147483648}r=D+-360;e=(b|0)==1;if(P(J)<2147483648){b=~~J}else{b=-2147483648}r=e?D:r;if(P(A)<2147483648){e=~~A}else{e=-2147483648}Sf(a,e,b,c,d,w,r);Rf(a,1,0,1);b=H[a+208>>2];if(b){zb[H[H[b>>2]+508>>2]](b,g&255,w,r,i)}b=H[a+120>>2];if((l|0)==H[b+12>>2]){H[b+12>>2]=0}}xb=i+32|0;break r}g=j&65535;D=0;f=xb+-64|0;xb=f;H[f+56>>2]=0;H[f+60>>2]=0;H[f+48>>2]=0;H[f+52>>2]=0;H[f+40>>2]=0;H[f+44>>2]=0;H[f+32>>2]=0;H[f+36>>2]=0;e=H[a>>2]-12|0;b=H[e>>2];d=b+a|0;h=d+8|0;j=H[h>>2];c=H[d+12>>2];if(c>>>0<=j+3>>>0){r=0}else{y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[d+8>>2]=j+4;b=H[e>>2];d=b+a|0;c=H[d+12>>2];h=d+8|0;j=H[h>>2];r=+y}if(j+3>>>0>>0){y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[h>>2]=j+4;D=+y;b=H[e>>2]}Ae((a+b|0)+4|0,f+32|0);c=a+236|0;j=H[c>>2];v:{if(!j){break v}e=g<<24>>24;b=c;while(1){d=e>>>0>K[j+16>>2];b=d?b:j;j=H[(d<<2)+j>>2];if(j){continue}break}if((b|0)==(c|0)|e>>>0>2]){break v}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=2){break v}b=H[b+20>>2];if(!b){break v}l=b+4|0;H[H[a+120>>2]+12>>2]=l;b=H[H[a+120>>2]+680>>2];w=M[f+56>>3];M[f+24>>3]=w;A=M[f+48>>3];M[f+16>>3]=A;J=M[f+40>>3];M[f+8>>3]=J;z=M[f+32>>3];M[f>>3]=z;Yp(a,z,J);w=J+w;w:{if(P(w)<2147483648){d=~~w;break w}d=-2147483648}w=z+A;x:{if(P(w)<2147483648){c=~~w;break x}c=-2147483648}w=D+-360;e=(b|0)==1;if(P(J)<2147483648){b=~~J}else{b=-2147483648}w=e?D:w;if(P(z)<2147483648){e=~~z}else{e=-2147483648}Sf(a,e,b,c,d,r,w);Rf(a,1,0,1);b=H[a+208>>2];if(b){zb[H[H[b>>2]+508>>2]](b,g&255,r,w,f)}b=H[a+120>>2];if((l|0)==H[b+12>>2]){H[b+12>>2]=0}}xb=f- -64|0}F[a+213|0]=1;break k;case 24:c=j&65535;y:{if(j&2048){d=xb+-64|0;xb=d;z:{A:{B:{C:{D:{E:{F:{b=H[H[a>>2]-12>>2]+a|0;e=H[b+8>>2];G:{if(e+3>>>0>=K[b+12>>2]){break G}t=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[b+8>>2]=e+4;if(t>>>0<3){break G}H[d+40>>2]=0;H[d+32>>2]=0;H[d+36>>2]=0;if((t|0)<0){H[197455]=0;ia(1867,d+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break h}break z}H[197455]=0;q=aa(899,t|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}b=a+236|0;h=H[b>>2];H:{if(!h){break H}s=c&255;e=b;while(1){c=s>>>0>K[h+16>>2];e=c?e:h;h=H[(c<<2)+h>>2];if(h){continue}break}if((b|0)==(e|0)|s>>>0>2]){break H}c=H[e+20>>2];b=H[H[c>>2]+12>>2];H[197455]=0;c=aa(b|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break E}if((c|0)!=2){break H}c=H[e+20>>2];if(!c){break H}b=H[a+120>>2];H[197455]=0;i=c+4|0;H[b+12>>2]=i;b=H[197455];H[197455]=0;if((b|0)==1){break E}H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;I:{if((q|0)==(q+t|0)){o=0;H[d+24>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;break I}J:{K:{if((t|0)<0){H[197455]=0;ia(1867,d|0);a=H[197455];H[197455]=0;if((a|0)!=1){break z}break K}H[197455]=0;c=aa(899,t|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break J}}h=$()|0;_()|0;a=H[d>>2];if(!a){break A}H[d+4>>2]=a;Kb(a);break A}H[d>>2]=c;H[d+8>>2]=c+t;p=Ob(c,q,t);H[d+56>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;if(t>>>0>=268435456){H[197455]=0;ia(1869,d+48|0);a=H[197455];H[197455]=0;if((a|0)!=1){break z}break B}H[197455]=0;c=t<<4;o=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}h=c+o|0;L:{if(t>>>0<2){break L}e=1;b=t-1|0;g=b&1;if((t|0)!=2){l=b&-2;f=0;while(1){b=(e<<4)+o|0;n=b-16|0;m=H[n+4>>2];c=H[n>>2];H[b+16>>2]=c;H[b+20>>2]=m;H[b>>2]=c;H[b+4>>2]=m;m=H[n+12>>2];c=H[n+8>>2];H[b+24>>2]=c;H[b+28>>2]=m;H[b+8>>2]=c;H[b+12>>2]=m;e=e+2|0;f=f+2|0;if((l|0)!=(f|0)){continue}break}}if(!g){break L}e=(e<<4)+o|0;c=e-16|0;b=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=b;b=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=b}H[d+24>>2]=h;H[d+20>>2]=h;H[d+16>>2]=o;H[d+4>>2]=p;Kb(p)}w=M[o+8>>3];r=M[o>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;e=1;if((b|0)==1){break F}if(t>>>0>1){while(1){b=(e<<4)+o|0;D=M[b+16>>3];J=M[b+24>>3];z=M[b+32>>3];A=M[b+40>>3];w=M[b>>3];r=M[b+8>>3];H[197455]=0;if(P(r)<2147483648){c=~~r}else{c=-2147483648}if(P(w)<2147483648){b=~~w}else{b=-2147483648}if(P(A)<2147483648){f=~~A}else{f=-2147483648}if(P(z)<2147483648){g=~~z}else{g=-2147483648}if(P(J)<2147483648){l=~~J}else{l=-2147483648}if(P(D)<2147483648){h=~~D}else{h=-2147483648}ua(1871,a|0,b|0,c|0,h|0,l|0,g|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break D}e=e+3|0;if(t>>>0>e>>>0){continue}break}}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break F}c=H[a+208>>2];if(c){b=H[H[c>>2]+512>>2];H[197455]=0;ga(b|0,c|0,s|0,d+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break F}}b=H[a+120>>2];H[197455]=0;if((i|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break F}b=H[d+16>>2];if(!b){break H}H[d+20>>2]=b;Kb(b)}Kb(q)}xb=d- -64|0;break y}h=$()|0;_()|0;o=H[d+16>>2];if(!o){break A}break C}h=$()|0;_()|0;break A}h=$()|0;_()|0}H[d+20>>2]=o;Kb(o);break A}h=$()|0;_()|0;a=H[d+48>>2];if(a){H[d+52>>2]=a;Kb(a)}H[d+4>>2]=p;Kb(p)}Kb(q);ea(h|0);X()}X()}if(c&16384){c=j&65535;q=xb+-64|0;xb=q;M:{N:{O:{P:{Q:{R:{l=H[a>>2]-12|0;b=H[l>>2]+a|0;d=H[b+8>>2];S:{if(d+3>>>0>=K[b+12>>2]){break S}m=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[b+8>>2]=d+4;if(m>>>0<3){break S}H[q+40>>2]=0;H[q+32>>2]=0;H[q+36>>2]=0;T:{U:{if(m>>>0>=1073741824){H[197455]=0;ia(1808,q+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break U}break M}H[197455]=0;e=m<<2;g=aa(899,e|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break T}}a=$()|0;_()|0;b=H[q+32>>2];if(b){H[q+36>>2]=b;Kb(b)}break d}n=c&255;H[q+32>>2]=g;i=e+g|0;H[q+40>>2]=i;d=0;p=Nb(g,0,e);H[q+36>>2]=i;c=a+4|0;while(1){g=p+(d<<2)|0;f=c+H[l>>2]|0;o=H[f+4>>2];b=H[f+8>>2];V:{if(o+1>>>0>=b>>>0){e=0;break V}e=I[o|0]|I[o+1|0]<<8;o=o+2|0;H[f+4>>2]=o}G[g>>1]=e;e=0;if(b>>>0>o+1>>>0){e=I[o|0]|I[o+1|0]<<8;H[f+4>>2]=o+2}G[g+2>>1]=e;d=d+1|0;if((m|0)!=(d|0)){continue}break}c=a+236|0;d=H[c>>2];W:{if(!d){break W}b=c;while(1){e=n>>>0>K[d+16>>2];b=e?b:d;d=H[(e<<2)+d>>2];if(d){continue}break}if((b|0)==(c|0)|n>>>0>2]){break W}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;X:{if((c|0)!=1){if((d|0)!=2){break W}c=H[b+20>>2];if(!c){break W}b=H[a+120>>2];H[197455]=0;f=c+4|0;H[b+12>>2]=f;b=H[197455];H[197455]=0;if((b|0)!=1){break X}}d=$()|0;_()|0;break N}H[q+8>>2]=0;H[q>>2]=0;H[q+4>>2]=0;s=i-p|0;m=s>>2;Y:{if((i|0)==(p|0)){h=0;H[q+24>>2]=0;H[q+16>>2]=0;H[q+20>>2]=0;break Y}Z:{_:{if((s|0)<0){H[197455]=0;ia(1808,q|0);a=H[197455];H[197455]=0;if((a|0)!=1){break M}break _}H[197455]=0;c=aa(899,s|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Z}}d=$()|0;_()|0;a=H[q>>2];if(!a){break N}H[q+4>>2]=a;Kb(a);break N}H[q>>2]=c;H[q+8>>2]=c+(m<<2);i=Ob(c,p,s);$:{if(s){H[q+56>>2]=0;H[q+48>>2]=0;H[q+52>>2]=0;c=(i+s|0)-i|0;if(c>>>0>=1073741821){H[197455]=0;ia(1869,q+48|0);a=H[197455];H[197455]=0;if((a|0)!=1){break M}break O}H[197455]=0;h=aa(899,c<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break O}g=c>>2;b=g>>>0>1?g:1;l=b&1;d=0;if(c>>>0>=8){e=b&-2;o=0;while(1){c=(d<<4)+h|0;b=i+(d<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1];b=d|1;c=(b<<4)+h|0;b=i+(b<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1];d=d+2|0;o=o+2|0;if((e|0)!=(o|0)){continue}break}}if(l){c=(d<<4)+h|0;b=i+(d<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1]}H[q+16>>2]=h;b=(g<<4)+h|0;H[q+24>>2]=b;H[q+20>>2]=b;break $}h=0;H[q+24>>2]=0;H[q+16>>2]=0;H[q+20>>2]=0}H[q+4>>2]=i;Kb(i)}w=M[h+8>>3];r=M[h>>3];H[197455]=0;ta(1870,a|0,+r,+w);c=H[197455];H[197455]=0;b=1;if((c|0)==1){break R}if(s>>>0>4){while(1){c=(b<<4)+h|0;D=M[c+16>>3];J=M[c+24>>3];z=M[c+32>>3];A=M[c+40>>3];w=M[c>>3];r=M[c+8>>3];H[197455]=0;if(P(r)<2147483648){d=~~r}else{d=-2147483648}if(P(w)<2147483648){c=~~w}else{c=-2147483648}if(P(A)<2147483648){g=~~A}else{g=-2147483648}if(P(z)<2147483648){l=~~z}else{l=-2147483648}if(P(J)<2147483648){e=~~J}else{e=-2147483648}if(P(D)<2147483648){i=~~D}else{i=-2147483648}ua(1871,a|0,c|0,d|0,i|0,e|0,l|0,g|0);c=H[197455];H[197455]=0;if((c|0)==1){break Q}b=b+3|0;if(m>>>0>b>>>0){continue}break}}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break R}c=H[a+208>>2];if(c){b=H[H[c>>2]+512>>2];H[197455]=0;ga(b|0,c|0,n|0,q+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break R}}b=H[a+120>>2];H[197455]=0;if((f|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break R}b=H[q+16>>2];if(!b){break W}H[q+20>>2]=b;Kb(b)}Kb(p)}xb=q- -64|0;break y}d=$()|0;_()|0;h=H[q+16>>2];if(!h){break N}break P}d=$()|0;_()|0}H[q+20>>2]=h;Kb(h);break N}d=$()|0;_()|0;a=H[q+48>>2];if(a){H[q+52>>2]=a;Kb(a)}H[q+4>>2]=i;Kb(i)}Kb(p);ea(d|0);X()}X()}d=j&65535;u=xb+-64|0;xb=u;aa:{ba:{ca:{da:{ea:{fa:{ga:{g=H[a>>2]-12|0;b=H[g>>2]+a|0;c=H[b+8>>2];ha:{if(c+3>>>0>=K[b+12>>2]){break ha}i=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(i>>>0<3){break ha}H[u+40>>2]=0;H[u+32>>2]=0;H[u+36>>2]=0;ia:{ja:{if(i>>>0>=268435456){H[197455]=0;ia(1869,u+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break ja}break ba}H[197455]=0;c=i<<4;t=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break ia}}a=$()|0;_()|0;b=H[u+32>>2];if(b){H[u+36>>2]=b;Kb(b)}break d}s=d&255;H[u+32>>2]=t;m=c+t|0;H[u+40>>2]=m;H[u+36>>2]=m;d=a+4|0;l=0;while(1){b=t+(l<<4)|0;f=d+H[g>>2]|0;e=H[f+4>>2];c=H[f+8>>2];if(e+3>>>0>=c>>>0){r=0}else{y=(x(2,I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24)),B());e=e+4|0;H[f+4>>2]=e;r=+y}M[b>>3]=r;if(c>>>0>e+3>>>0){y=(x(2,I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24)),B());H[f+4>>2]=e+4;r=+y}else{r=0}M[b+8>>3]=r;l=l+1|0;if((i|0)!=(l|0)){continue}break}c=a+236|0;l=H[c>>2];ka:{if(!l){break ka}b=c;while(1){d=s>>>0>K[l+16>>2];b=d?b:l;l=H[(d<<2)+l>>2];if(l){continue}break}if((b|0)==(c|0)|s>>>0>2]){break ka}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;la:{if((c|0)!=1){if((d|0)!=2){break ka}c=H[b+20>>2];if(!c){break ka}b=H[a+120>>2];H[197455]=0;i=c+4|0;H[b+12>>2]=i;b=H[197455];H[197455]=0;if((b|0)!=1){break la}}l=$()|0;_()|0;break ca}H[u+8>>2]=0;H[u>>2]=0;H[u+4>>2]=0;q=m-t|0;h=q>>4;ma:{if((m|0)==(t|0)){b=0;H[u+24>>2]=0;H[u+16>>2]=0;H[u+20>>2]=0;break ma}na:{oa:{if((q|0)<0){H[197455]=0;ia(1869,u|0);a=H[197455];H[197455]=0;if((a|0)!=1){break ba}break oa}H[197455]=0;c=aa(899,q|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break na}}l=$()|0;_()|0;a=H[u>>2];if(!a){break ca}H[u+4>>2]=a;Kb(a);break ca}H[u>>2]=c;H[u+8>>2]=c+(h<<4);v=Ob(c,t,q);pa:{if(q){H[u+56>>2]=0;H[u+48>>2]=0;H[u+52>>2]=0;d=(q+v|0)-v|0;if((d|0)<0){H[197455]=0;ia(1869,u+48|0);a=H[197455];H[197455]=0;if((a|0)!=1){break ba}break da}H[197455]=0;b=aa(899,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break da}m=d>>4;c=m>>>0>1?m:1;g=c&3;k=0;l=0;if(c-1>>>0>=3){e=c&-4;f=0;while(1){p=l<<4;d=p+b|0;n=p+v|0;c=H[n+4>>2];H[d>>2]=H[n>>2];H[d+4>>2]=c;c=H[n+12>>2];H[d+8>>2]=H[n+8>>2];H[d+12>>2]=c;c=p|16;d=c+b|0;n=c+v|0;c=H[n+12>>2];H[d+8>>2]=H[n+8>>2];H[d+12>>2]=c;c=H[n+4>>2];H[d>>2]=H[n>>2];H[d+4>>2]=c;c=p|32;d=c+b|0;n=c+v|0;c=H[n+12>>2];H[d+8>>2]=H[n+8>>2];H[d+12>>2]=c;c=H[n+4>>2];H[d>>2]=H[n>>2];H[d+4>>2]=c;c=p|48;d=c+b|0;n=c+v|0;c=H[n+12>>2];H[d+8>>2]=H[n+8>>2];H[d+12>>2]=c;c=H[n+4>>2];H[d>>2]=H[n>>2];H[d+4>>2]=c;l=l+4|0;f=f+4|0;if((e|0)!=(f|0)){continue}break}}if(g){while(1){c=l<<4;d=c+b|0;e=c+v|0;c=H[e+4>>2];H[d>>2]=H[e>>2];H[d+4>>2]=c;c=H[e+12>>2];H[d+8>>2]=H[e+8>>2];H[d+12>>2]=c;l=l+1|0;k=k+1|0;if((g|0)!=(k|0)){continue}break}}H[u+16>>2]=b;c=(m<<4)+b|0;H[u+24>>2]=c;H[u+20>>2]=c;break pa}b=0;H[u+24>>2]=0;H[u+16>>2]=0;H[u+20>>2]=0}H[u+4>>2]=v;Kb(v)}w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1870,a|0,+r,+w);c=H[197455];H[197455]=0;e=1;if((c|0)==1){break ga}if(q>>>0>16){while(1){c=(e<<4)+b|0;D=M[c+16>>3];J=M[c+24>>3];z=M[c+32>>3];A=M[c+40>>3];w=M[c>>3];r=M[c+8>>3];H[197455]=0;if(P(r)<2147483648){d=~~r}else{d=-2147483648}if(P(w)<2147483648){c=~~w}else{c=-2147483648}if(P(A)<2147483648){f=~~A}else{f=-2147483648}if(P(z)<2147483648){g=~~z}else{g=-2147483648}if(P(J)<2147483648){l=~~J}else{l=-2147483648}if(P(D)<2147483648){m=~~D}else{m=-2147483648}ua(1871,a|0,c|0,d|0,m|0,l|0,g|0,f|0);c=H[197455];H[197455]=0;if((c|0)==1){break fa}e=e+3|0;if(h>>>0>e>>>0){continue}break}}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break ga}c=H[a+208>>2];if(c){b=H[H[c>>2]+512>>2];H[197455]=0;ga(b|0,c|0,s|0,u+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break ga}}b=H[a+120>>2];H[197455]=0;if((i|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break ga}b=H[u+16>>2];if(!b){break ka}H[u+20>>2]=b;Kb(b)}Kb(t)}xb=u- -64|0;break aa}l=$()|0;_()|0;b=H[u+16>>2];if(!b){break ca}break ea}l=$()|0;_()|0}H[u+20>>2]=b;Kb(b);break ca}l=$()|0;_()|0;a=H[u+48>>2];if(a){H[u+52>>2]=a;Kb(a)}H[u+4>>2]=v;Kb(v)}Kb(t);break c}X()}}F[a+213|0]=1;break k;case 22:l=j&65535;qa:{if(j&2048){d=xb+-64|0;xb=d;b=H[a>>2]-12|0;e=H[b>>2]+a|0;c=e+8|0;f=H[c>>2];u=H[e+12>>2];if(u>>>0<=f+3>>>0){r=0}else{y=(x(2,I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24)),B());H[e+8>>2]=f+4;b=H[b>>2]+a|0;u=H[b+12>>2];c=b+8|0;f=H[c>>2];r=+y}ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{if(f+3>>>0>=u>>>0){break ya}q=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[c>>2]=f+4;if(q>>>0<3){break ya}H[d+40>>2]=0;H[d+32>>2]=0;H[d+36>>2]=0;if((q|0)<0){H[197455]=0;ia(1867,d+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break h}break ra}H[197455]=0;p=aa(899,q|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}b=a+236|0;f=H[b>>2];za:{if(!f){break za}n=l&255;c=b;while(1){e=n>>>0>K[f+16>>2];c=e?c:f;f=H[(e<<2)+f>>2];if(f){continue}break}if((b|0)==(c|0)|n>>>0>2]){break za}e=H[c+20>>2];b=H[H[e>>2]+12>>2];H[197455]=0;e=aa(b|0,e|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break wa}if((e|0)!=2){break za}c=H[c+20>>2];if(!c){break za}b=H[a+120>>2];H[197455]=0;i=c+4|0;H[b+12>>2]=i;b=H[197455];H[197455]=0;if((b|0)==1){break wa}H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;Aa:{if((p|0)==(q+p|0)){o=0;H[d+24>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;break Aa}Ba:{Ca:{if((q|0)<0){H[197455]=0;ia(1867,d|0);a=H[197455];H[197455]=0;if((a|0)!=1){break ra}break Ca}H[197455]=0;c=aa(899,q|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Ba}}f=$()|0;_()|0;a=H[d>>2];if(!a){break sa}H[d+4>>2]=a;Kb(a);break sa}H[d>>2]=c;H[d+8>>2]=c+q;s=Ob(c,p,q);H[d+56>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;if(q>>>0>=268435456){H[197455]=0;ia(1869,d+48|0);a=H[197455];H[197455]=0;if((a|0)!=1){break ra}break ta}H[197455]=0;c=q<<4;o=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ta}m=c+o|0;Da:{if(q>>>0<2){break Da}c=1;b=q-1|0;g=b&1;if((q|0)!=2){l=b&-2;u=0;while(1){b=(c<<4)+o|0;h=b-16|0;f=H[h+4>>2];e=H[h>>2];H[b+16>>2]=e;H[b+20>>2]=f;H[b>>2]=e;H[b+4>>2]=f;f=H[h+12>>2];e=H[h+8>>2];H[b+24>>2]=e;H[b+28>>2]=f;H[b+8>>2]=e;H[b+12>>2]=f;c=c+2|0;u=u+2|0;if((l|0)!=(u|0)){continue}break}}if(!g){break Da}e=(c<<4)+o|0;c=e-16|0;b=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=b;b=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=b}H[d+24>>2]=m;H[d+20>>2]=m;H[d+16>>2]=o;H[d+4>>2]=s;Kb(s)}A=M[o+8>>3];w=M[o>>3];H[197455]=0;ta(1870,a|0,+w,+A);b=H[197455];H[197455]=0;c=1;if((b|0)==1){break xa}if(q>>>0>1){while(1){b=(c<<4)+o|0;Q=M[b+16>>3];D=M[b+24>>3];J=M[b+32>>3];z=M[b+40>>3];A=M[b>>3];w=M[b+8>>3];H[197455]=0;if(P(w)<2147483648){e=~~w}else{e=-2147483648}if(P(A)<2147483648){b=~~A}else{b=-2147483648}if(P(z)<2147483648){f=~~z}else{f=-2147483648}if(P(J)<2147483648){g=~~J}else{g=-2147483648}if(P(D)<2147483648){l=~~D}else{l=-2147483648}if(P(Q)<2147483648){h=~~Q}else{h=-2147483648}ua(1871,a|0,b|0,e|0,h|0,l|0,g|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break va}c=c+3|0;if(q>>>0>c>>>0){continue}break}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break xa}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break xa}c=H[a+208>>2];if(c){b=H[H[c>>2]+516>>2];H[197455]=0;Pa(b|0,c|0,n|0,+r,d+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break xa}}b=H[a+120>>2];H[197455]=0;if((i|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break xa}b=H[d+16>>2];if(!b){break za}H[d+20>>2]=b;Kb(b)}Kb(p)}xb=d- -64|0;break qa}f=$()|0;_()|0;o=H[d+16>>2];if(!o){break sa}break ua}f=$()|0;_()|0;break sa}f=$()|0;_()|0}H[d+20>>2]=o;Kb(o);break sa}f=$()|0;_()|0;a=H[d+48>>2];if(a){H[d+52>>2]=a;Kb(a)}H[d+4>>2]=s;Kb(s)}Kb(p);break a}X()}if(l&16384){c=j&65535;d=xb+-64|0;xb=d;l=H[a>>2]-12|0;e=H[l>>2]+a|0;b=e+8|0;h=H[b>>2];o=H[e+12>>2];if(o>>>0<=h+3>>>0){r=0}else{y=(x(2,I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24)),B());H[e+8>>2]=h+4;b=H[l>>2]+a|0;o=H[b+12>>2];b=b+8|0;h=H[b>>2];r=+y}Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{if(h+3>>>0>=o>>>0){break Ka}s=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);H[b>>2]=h+4;if(s>>>0<3){break Ka}H[d+40>>2]=0;H[d+32>>2]=0;H[d+36>>2]=0;if(s>>>0>=1073741824){H[197455]=0;ia(1808,d+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break h}break Ea}H[197455]=0;e=s<<2;g=aa(899,e|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}n=c&255;H[d+32>>2]=g;f=e+g|0;H[d+40>>2]=f;m=0;p=Nb(g,0,e);H[d+36>>2]=f;e=a+4|0;while(1){g=e+H[l>>2]|0;b=H[g+4>>2];c=H[g+8>>2];La:{if(b+1>>>0>=c>>>0){o=0;break La}o=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[g+4>>2]=b}G[p>>1]=o;o=0;if(c>>>0>b+1>>>0){o=I[b|0]|I[b+1|0]<<8;H[g+4>>2]=b+2}G[p+2>>1]=o;m=m+1|0;if((s|0)!=(m|0)){continue}break}c=a+236|0;h=H[c>>2];Ma:{if(!h){break Ma}b=c;while(1){e=n>>>0>K[h+16>>2];b=e?b:h;h=H[(e<<2)+h>>2];if(h){continue}break}if((b|0)==(c|0)|n>>>0>2]){break Ma}e=H[b+20>>2];c=H[H[e>>2]+12>>2];H[197455]=0;e=aa(c|0,e|0)|0;c=H[197455];H[197455]=0;Na:{if((c|0)!=1){if((e|0)!=2){break Ma}c=H[b+20>>2];if(!c){break Ma}b=H[a+120>>2];H[197455]=0;i=c+4|0;H[b+12>>2]=i;b=H[197455];H[197455]=0;if((b|0)!=1){break Na}}h=$()|0;_()|0;break Fa}H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;Oa:{if((f|0)==(p|0)){o=0;H[d+24>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;break Oa}Pa:{e=f-p|0;Qa:{if((e|0)<0){H[197455]=0;ia(1808,d|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Ea}break Qa}H[197455]=0;c=aa(899,e|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Pa}}h=$()|0;_()|0;a=H[d>>2];if(!a){break Fa}H[d+4>>2]=a;Kb(a);break Fa}H[d>>2]=c;H[d+8>>2]=c+(e>>2<<2);f=Ob(c,p,e);Ra:{if(e){H[d+56>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;c=(e+f|0)-f|0;if(c>>>0>=1073741821){H[197455]=0;ia(1869,d+48|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Ea}break Ga}H[197455]=0;o=aa(899,c<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Ga}g=c>>2;b=g>>>0>1?g:1;l=b&1;h=0;if(c>>>0>=8){e=b&-2;m=0;while(1){c=(h<<4)+o|0;b=f+(h<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1];b=h|1;c=(b<<4)+o|0;b=f+(b<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1];h=h+2|0;m=m+2|0;if((e|0)!=(m|0)){continue}break}}if(l){c=(h<<4)+o|0;b=f+(h<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1]}H[d+16>>2]=o;b=(g<<4)+o|0;H[d+24>>2]=b;H[d+20>>2]=b;break Ra}o=0;H[d+24>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0}H[d+4>>2]=f;Kb(f)}A=M[o+8>>3];w=M[o>>3];H[197455]=0;ta(1870,a|0,+w,+A);c=H[197455];H[197455]=0;b=1;if((c|0)==1){break Ja}if(s>>>0>1){while(1){c=(b<<4)+o|0;Q=M[c+16>>3];D=M[c+24>>3];J=M[c+32>>3];z=M[c+40>>3];A=M[c>>3];w=M[c+8>>3];H[197455]=0;if(P(w)<2147483648){e=~~w}else{e=-2147483648}if(P(A)<2147483648){c=~~A}else{c=-2147483648}if(P(z)<2147483648){f=~~z}else{f=-2147483648}if(P(J)<2147483648){g=~~J}else{g=-2147483648}if(P(D)<2147483648){l=~~D}else{l=-2147483648}if(P(Q)<2147483648){h=~~Q}else{h=-2147483648}ua(1871,a|0,c|0,e|0,h|0,l|0,g|0,f|0);c=H[197455];H[197455]=0;if((c|0)==1){break Ia}b=b+3|0;if(s>>>0>b>>>0){continue}break}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ja}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break Ja}c=H[a+208>>2];if(c){b=H[H[c>>2]+516>>2];H[197455]=0;Pa(b|0,c|0,n|0,+r,d+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ja}}b=H[a+120>>2];H[197455]=0;if((i|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Ja}b=H[d+16>>2];if(!b){break Ma}H[d+20>>2]=b;Kb(b)}Kb(p)}xb=d- -64|0;break qa}h=$()|0;_()|0;o=H[d+16>>2];if(!o){break Fa}break Ha}h=$()|0;_()|0}H[d+20>>2]=o;Kb(o);break Fa}h=$()|0;_()|0;a=H[d+48>>2];if(a){H[d+52>>2]=a;Kb(a)}H[d+4>>2]=f;Kb(f)}Kb(p);ea(h|0);X()}X()}d=j&65535;v=xb+-64|0;xb=v;f=H[a>>2]-12|0;c=H[f>>2]+a|0;b=c+8|0;g=H[b>>2];h=H[c+12>>2];if(h>>>0<=g+3>>>0){r=0}else{y=(x(2,I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24)),B());H[c+8>>2]=g+4;b=H[f>>2]+a|0;h=H[b+12>>2];b=b+8|0;g=H[b>>2];r=+y}Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{if(g+3>>>0>=h>>>0){break Za}q=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[b>>2]=g+4;if(q>>>0<3){break Za}H[v+40>>2]=0;H[v+32>>2]=0;H[v+36>>2]=0;_a:{$a:{if(q>>>0>=268435456){H[197455]=0;ia(1869,v+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break $a}break Ta}H[197455]=0;c=q<<4;l=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break _a}}a=$()|0;_()|0;b=H[v+32>>2];if(b){H[v+36>>2]=b;Kb(b)}break d}s=d&255;H[v+32>>2]=l;i=c+l|0;H[v+40>>2]=i;H[v+36>>2]=i;d=a+4|0;e=0;while(1){g=d+H[f>>2]|0;b=H[g+4>>2];c=H[g+8>>2];if(b+3>>>0>=c>>>0){w=0}else{y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());b=b+4|0;H[g+4>>2]=b;w=+y}M[l>>3]=w;if(c>>>0>b+3>>>0){y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());H[g+4>>2]=b+4;w=+y}else{w=0}M[l+8>>3]=w;e=e+1|0;if((q|0)!=(e|0)){continue}break}c=a+236|0;g=H[c>>2];ab:{if(!g){break ab}b=c;while(1){d=s>>>0>K[g+16>>2];b=d?b:g;g=H[(d<<2)+g>>2];if(g){continue}break}if((b|0)==(c|0)|s>>>0>2]){break ab}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;bb:{if((c|0)!=1){if((d|0)!=2){break ab}c=H[b+20>>2];if(!c){break ab}b=H[a+120>>2];H[197455]=0;m=c+4|0;H[b+12>>2]=m;b=H[197455];H[197455]=0;if((b|0)!=1){break bb}}g=$()|0;_()|0;break Ua}H[v+8>>2]=0;H[v>>2]=0;H[v+4>>2]=0;cb:{if((i|0)==(l|0)){b=0;H[v+24>>2]=0;H[v+16>>2]=0;H[v+20>>2]=0;break cb}db:{d=i-l|0;eb:{if((d|0)<0){H[197455]=0;ia(1869,v|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Ta}break eb}H[197455]=0;c=aa(899,d|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break db}}g=$()|0;_()|0;a=H[v>>2];if(!a){break Ua}H[v+4>>2]=a;Kb(a);break Ua}H[v>>2]=c;H[v+8>>2]=c+(d>>4<<4);t=Ob(c,l,d);fb:{if(d){H[v+56>>2]=0;H[v+48>>2]=0;H[v+52>>2]=0;d=(d+t|0)-t|0;if((d|0)<0){H[197455]=0;ia(1869,v+48|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Ta}break Va}H[197455]=0;b=aa(899,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Va}h=d>>4;c=h>>>0>1?h:1;i=c&3;k=0;g=0;if(c-1>>>0>=3){e=c&-4;f=0;while(1){p=g<<4;d=p+b|0;n=p+t|0;c=H[n+4>>2];H[d>>2]=H[n>>2];H[d+4>>2]=c;c=H[n+12>>2];H[d+8>>2]=H[n+8>>2];H[d+12>>2]=c;c=p|16;d=c+b|0;n=c+t|0;c=H[n+12>>2];H[d+8>>2]=H[n+8>>2];H[d+12>>2]=c;c=H[n+4>>2];H[d>>2]=H[n>>2];H[d+4>>2]=c;c=p|32;d=c+b|0;n=c+t|0;c=H[n+12>>2];H[d+8>>2]=H[n+8>>2];H[d+12>>2]=c;c=H[n+4>>2];H[d>>2]=H[n>>2];H[d+4>>2]=c;c=p|48;d=c+b|0;n=c+t|0;c=H[n+12>>2];H[d+8>>2]=H[n+8>>2];H[d+12>>2]=c;c=H[n+4>>2];H[d>>2]=H[n>>2];H[d+4>>2]=c;g=g+4|0;f=f+4|0;if((e|0)!=(f|0)){continue}break}}if(i){while(1){c=g<<4;d=c+b|0;e=c+t|0;c=H[e+4>>2];H[d>>2]=H[e>>2];H[d+4>>2]=c;c=H[e+12>>2];H[d+8>>2]=H[e+8>>2];H[d+12>>2]=c;g=g+1|0;k=k+1|0;if((i|0)!=(k|0)){continue}break}}H[v+16>>2]=b;c=(h<<4)+b|0;H[v+24>>2]=c;H[v+20>>2]=c;break fb}b=0;H[v+24>>2]=0;H[v+16>>2]=0;H[v+20>>2]=0}H[v+4>>2]=t;Kb(t)}A=M[b+8>>3];w=M[b>>3];H[197455]=0;ta(1870,a|0,+w,+A);c=H[197455];H[197455]=0;e=1;if((c|0)==1){break Ya}if(q>>>0>1){while(1){c=(e<<4)+b|0;Q=M[c+16>>3];D=M[c+24>>3];J=M[c+32>>3];z=M[c+40>>3];A=M[c>>3];w=M[c+8>>3];H[197455]=0;if(P(w)<2147483648){d=~~w}else{d=-2147483648}if(P(A)<2147483648){c=~~A}else{c=-2147483648}if(P(z)<2147483648){i=~~z}else{i=-2147483648}if(P(J)<2147483648){f=~~J}else{f=-2147483648}if(P(D)<2147483648){g=~~D}else{g=-2147483648}if(P(Q)<2147483648){h=~~Q}else{h=-2147483648}ua(1871,a|0,c|0,d|0,h|0,g|0,f|0,i|0);c=H[197455];H[197455]=0;if((c|0)==1){break Xa}e=e+3|0;if(q>>>0>e>>>0){continue}break}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ya}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break Ya}c=H[a+208>>2];if(c){b=H[H[c>>2]+516>>2];H[197455]=0;Pa(b|0,c|0,s|0,+r,v+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ya}}b=H[a+120>>2];H[197455]=0;if((m|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Ya}b=H[v+16>>2];if(!b){break ab}H[v+20>>2]=b;Kb(b)}Kb(l)}xb=v- -64|0;break Sa}g=$()|0;_()|0;b=H[v+16>>2];if(!b){break Ua}break Wa}g=$()|0;_()|0}H[v+20>>2]=b;Kb(b);break Ua}g=$()|0;_()|0;a=H[v+48>>2];if(a){H[v+52>>2]=a;Kb(a)}H[v+4>>2]=t;Kb(t)}Kb(l);break b}X()}}F[a+213|0]=1;break k;case 23:gb:{if(j&16384){h=0;b=0;v=0;m=0;q=xb+-64|0;xb=q;s=H[a>>2]-12|0;e=H[s>>2]+a|0;d=e+8|0;g=H[d>>2];c=H[e+12>>2];if(c>>>0<=g+3>>>0){r=0}else{y=(x(2,I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24)),B());H[e+8>>2]=g+4;d=H[s>>2]+a|0;c=H[d+12>>2];d=d+8|0;g=H[d>>2];r=+y}f=j&65535;if(g+3>>>0>>0){m=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[d>>2]=g+4;d=H[s>>2]+a|0;c=H[d+12>>2];d=d+8|0;g=H[d>>2]}if(g+3>>>0>>0){v=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[d>>2]=g+4;d=H[s>>2]+a|0;c=H[d+12>>2];d=d+8|0;g=H[d>>2]}hb:{ib:{if(g+3>>>0>=c>>>0){H[q+40>>2]=0;H[q+32>>2]=0;H[q+36>>2]=0;break ib}e=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[d>>2]=g+4;H[q+40>>2]=0;H[q+32>>2]=0;H[q+36>>2]=0;if(!e){break ib}jb:{kb:{if(e>>>0>=1073741824){H[197455]=0;ia(1808,q+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break kb}break hb}g=0;H[197455]=0;c=e<<2;h=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break jb}}g=$()|0;_()|0;a=H[q+32>>2];if(!a){break b}H[q+36>>2]=a;Kb(a);break b}H[q+32>>2]=h;b=c+h|0;H[q+40>>2]=b;i=Nb(h,0,c);H[q+36>>2]=b;l=a+4|0;while(1){d=0;n=l+H[s>>2]|0;c=H[n+4>>2];b=H[n+8>>2];lb:{if(c+1>>>0>=b>>>0){k=0;break lb}k=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[n+4>>2]=c}G[i>>1]=k;if(b>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;H[n+4>>2]=c+2}G[i+2>>1]=d;g=g+1|0;if((e|0)!=(g|0)){continue}break}b=e}mb:{nb:{ob:{pb:{qb:{d=a+236|0;g=H[d>>2];rb:{if(!g){break rb}p=f&255;c=d;while(1){e=p>>>0>K[g+16>>2];c=e?c:g;g=H[(e<<2)+g>>2];if(g){continue}break}if((c|0)==(d|0)|p>>>0>2]){break rb}e=H[c+20>>2];d=H[H[e>>2]+12>>2];H[197455]=0;e=aa(d|0,e|0)|0;d=H[197455];H[197455]=0;sb:{if((d|0)!=1){if((e|0)!=2){break rb}d=H[c+20>>2];if(!d){break rb}c=H[a+120>>2];H[197455]=0;n=d+4|0;H[c+12>>2]=n;c=H[197455];H[197455]=0;if((c|0)!=1){break sb}}g=$()|0;_()|0;break mb}H[q+8>>2]=0;H[q>>2]=0;H[q+4>>2]=0;c=H[q+36>>2];tb:{if((c|0)==(h|0)){d=0;H[q+24>>2]=0;H[q+16>>2]=0;H[q+20>>2]=0;break tb}ub:{e=c-h|0;vb:{if((e|0)<0){H[197455]=0;ia(1808,q|0);a=H[197455];H[197455]=0;if((a|0)!=1){break hb}break vb}H[197455]=0;d=aa(899,e|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break ub}}g=$()|0;_()|0;a=H[q>>2];if(!a){break mb}H[q+4>>2]=a;Kb(a);break mb}H[q>>2]=d;H[q+8>>2]=d+(e>>2<<2);s=Ob(d,h,e);wb:{if(e){H[q+56>>2]=0;H[q+48>>2]=0;H[q+52>>2]=0;e=(e+s|0)-s|0;if(e>>>0>=1073741821){H[197455]=0;ia(1869,q+48|0);a=H[197455];H[197455]=0;if((a|0)!=1){break hb}break nb}H[197455]=0;d=aa(899,e<<2)|0;c=H[197455];H[197455]=0;if((c|0)==1){break nb}i=e>>2;c=i>>>0>1?i:1;f=c&1;g=0;if(e>>>0>=8){l=c&-2;k=0;while(1){e=(g<<4)+d|0;c=s+(g<<2)|0;M[e>>3]=G[c>>1];M[e+8>>3]=G[c+2>>1];c=g|1;e=(c<<4)+d|0;c=s+(c<<2)|0;M[e>>3]=G[c>>1];M[e+8>>3]=G[c+2>>1];g=g+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}if(f){e=(g<<4)+d|0;c=s+(g<<2)|0;M[e>>3]=G[c>>1];M[e+8>>3]=G[c+2>>1]}H[q+16>>2]=d;c=(i<<4)+d|0;H[q+24>>2]=c;H[q+20>>2]=c;break wb}d=0;H[q+24>>2]=0;H[q+16>>2]=0;H[q+20>>2]=0}H[q+4>>2]=s;Kb(s)}A=M[d+8>>3];w=M[d>>3];H[197455]=0;ta(1870,a|0,+w,+A);e=H[197455];H[197455]=0;c=1;if((e|0)==1){break qb}if(b>>>0>1){while(1){e=(c<<4)+d|0;Q=M[e+16>>3];D=M[e+24>>3];J=M[e+32>>3];z=M[e+40>>3];A=M[e>>3];w=M[e+8>>3];H[197455]=0;if(P(w)<2147483648){l=~~w}else{l=-2147483648}if(P(A)<2147483648){e=~~A}else{e=-2147483648}if(P(z)<2147483648){i=~~z}else{i=-2147483648}if(P(J)<2147483648){f=~~J}else{f=-2147483648}if(P(D)<2147483648){g=~~D}else{g=-2147483648}if(P(Q)<2147483648){j=~~Q}else{j=-2147483648}ua(1871,a|0,e|0,l|0,j|0,g|0,f|0,i|0);e=H[197455];H[197455]=0;if((e|0)==1){break pb}c=c+3|0;if(c>>>0>>0){continue}break}}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break qb}c=H[a+208>>2];if(c){b=H[H[c>>2]+520>>2];H[197455]=0;Za(b|0,c|0,p|0,+r,m|0,v|0,q+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break qb}}b=H[a+120>>2];H[197455]=0;if((n|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break qb}b=H[q+16>>2];if(!b){break rb}H[q+20>>2]=b;Kb(b)}if(h){H[q+36>>2]=h;Kb(h)}xb=q- -64|0;break gb}g=$()|0;_()|0;d=H[q+16>>2];if(!d){break mb}break ob}g=$()|0;_()|0}H[q+20>>2]=d;Kb(d);break mb}g=$()|0;_()|0;a=H[q+48>>2];if(a){H[q+52>>2]=a;Kb(a)}H[q+4>>2]=s;Kb(s)}if(!h){break b}H[q+36>>2]=h;Kb(h);break b}X()}l=0;b=0;o=0;u=0;t=xb+-64|0;xb=t;i=H[a>>2]-12|0;d=H[i>>2]+a|0;m=d+8|0;f=H[m>>2];c=H[d+12>>2];if(c>>>0<=f+3>>>0){r=0}else{y=(x(2,I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24)),B());H[d+8>>2]=f+4;d=H[i>>2]+a|0;c=H[d+12>>2];m=d+8|0;f=H[m>>2];r=+y}g=j&65535;if(f+3>>>0>>0){u=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[m>>2]=f+4;d=H[i>>2]+a|0;c=H[d+12>>2];m=d+8|0;f=H[m>>2]}if(f+3>>>0>>0){o=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[m>>2]=f+4;d=H[i>>2]+a|0;c=H[d+12>>2];m=d+8|0;f=H[m>>2]}xb:{yb:{zb:{if(f+3>>>0>=c>>>0){H[t+40>>2]=0;H[t+32>>2]=0;H[t+36>>2]=0;break zb}d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[m>>2]=f+4;H[t+40>>2]=0;H[t+32>>2]=0;H[t+36>>2]=0;if(!d){break zb}Ab:{Bb:{if(d>>>0>=268435456){H[197455]=0;ia(1869,t+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break Bb}break yb}m=0;H[197455]=0;c=d<<4;l=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Ab}}f=$()|0;_()|0;a=H[t+32>>2];if(!a){break a}H[t+36>>2]=a;Kb(a);break a}H[t+32>>2]=l;b=c+l|0;H[t+40>>2]=b;H[t+36>>2]=b;e=a+4|0;while(1){f=e+H[i>>2]|0;c=H[f+4>>2];b=H[f+8>>2];if(c+3>>>0>=b>>>0){w=0}else{y=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[f+4>>2]=c;w=+y}M[l>>3]=w;if(b>>>0>c+3>>>0){y=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[f+4>>2]=c+4;w=+y}else{w=0}M[l+8>>3]=w;m=m+1|0;if((d|0)!=(m|0)){continue}break}b=d}Cb:{Db:{Eb:{Fb:{Gb:{d=a+236|0;f=H[d>>2];Hb:{if(!f){break Hb}s=g&255;c=d;while(1){e=s>>>0>K[f+16>>2];c=e?c:f;f=H[(e<<2)+f>>2];if(f){continue}break}if((c|0)==(d|0)|s>>>0>2]){break Hb}e=H[c+20>>2];d=H[H[e>>2]+12>>2];H[197455]=0;e=aa(d|0,e|0)|0;d=H[197455];H[197455]=0;Ib:{if((d|0)!=1){if((e|0)!=2){break Hb}d=H[c+20>>2];if(!d){break Hb}c=H[a+120>>2];H[197455]=0;h=d+4|0;H[c+12>>2]=h;c=H[197455];H[197455]=0;if((c|0)!=1){break Ib}}f=$()|0;_()|0;break Cb}H[t+8>>2]=0;H[t>>2]=0;H[t+4>>2]=0;c=H[t+36>>2];Jb:{if((c|0)==(l|0)){c=0;H[t+24>>2]=0;H[t+16>>2]=0;H[t+20>>2]=0;break Jb}Kb:{e=c-l|0;Lb:{if((e|0)<0){H[197455]=0;ia(1869,t|0);a=H[197455];H[197455]=0;if((a|0)!=1){break yb}break Lb}H[197455]=0;d=aa(899,e|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break Kb}}f=$()|0;_()|0;a=H[t>>2];if(!a){break Cb}H[t+4>>2]=a;Kb(a);break Cb}H[t>>2]=d;H[t+8>>2]=d+(e>>4<<4);q=Ob(d,l,e);Mb:{if(e){H[t+56>>2]=0;H[t+48>>2]=0;H[t+52>>2]=0;e=(e+q|0)-q|0;if((e|0)<0){H[197455]=0;ia(1869,t+48|0);a=H[197455];H[197455]=0;if((a|0)!=1){break yb}break Db}H[197455]=0;c=aa(899,e|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Db}m=e>>4;d=m>>>0>1?m:1;i=d&3;j=0;f=0;if(d-1>>>0>=3){g=d&-4;k=0;while(1){p=f<<4;e=p+c|0;n=q+p|0;d=H[n+4>>2];H[e>>2]=H[n>>2];H[e+4>>2]=d;d=H[n+12>>2];H[e+8>>2]=H[n+8>>2];H[e+12>>2]=d;d=p|16;e=d+c|0;n=d+q|0;d=H[n+12>>2];H[e+8>>2]=H[n+8>>2];H[e+12>>2]=d;d=H[n+4>>2];H[e>>2]=H[n>>2];H[e+4>>2]=d;d=p|32;e=d+c|0;n=d+q|0;d=H[n+12>>2];H[e+8>>2]=H[n+8>>2];H[e+12>>2]=d;d=H[n+4>>2];H[e>>2]=H[n>>2];H[e+4>>2]=d;d=p|48;e=d+c|0;n=d+q|0;d=H[n+12>>2];H[e+8>>2]=H[n+8>>2];H[e+12>>2]=d;d=H[n+4>>2];H[e>>2]=H[n>>2];H[e+4>>2]=d;f=f+4|0;k=k+4|0;if((g|0)!=(k|0)){continue}break}}if(i){while(1){d=f<<4;e=d+c|0;g=d+q|0;d=H[g+4>>2];H[e>>2]=H[g>>2];H[e+4>>2]=d;d=H[g+12>>2];H[e+8>>2]=H[g+8>>2];H[e+12>>2]=d;f=f+1|0;j=j+1|0;if((i|0)!=(j|0)){continue}break}}H[t+16>>2]=c;d=(m<<4)+c|0;H[t+24>>2]=d;H[t+20>>2]=d;break Mb}c=0;H[t+24>>2]=0;H[t+16>>2]=0;H[t+20>>2]=0}H[t+4>>2]=q;Kb(q)}A=M[c+8>>3];w=M[c>>3];H[197455]=0;ta(1870,a|0,+w,+A);d=H[197455];H[197455]=0;m=1;if((d|0)==1){break Gb}if(b>>>0>1){while(1){d=(m<<4)+c|0;Q=M[d+16>>3];D=M[d+24>>3];J=M[d+32>>3];z=M[d+40>>3];A=M[d>>3];w=M[d+8>>3];H[197455]=0;if(P(w)<2147483648){e=~~w}else{e=-2147483648}if(P(A)<2147483648){d=~~A}else{d=-2147483648}if(P(z)<2147483648){i=~~z}else{i=-2147483648}if(P(J)<2147483648){f=~~J}else{f=-2147483648}if(P(D)<2147483648){g=~~D}else{g=-2147483648}if(P(Q)<2147483648){j=~~Q}else{j=-2147483648}ua(1871,a|0,d|0,e|0,j|0,g|0,f|0,i|0);d=H[197455];H[197455]=0;if((d|0)==1){break Fb}m=m+3|0;if(m>>>0>>0){continue}break}}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break Gb}c=H[a+208>>2];if(c){b=H[H[c>>2]+520>>2];H[197455]=0;Za(b|0,c|0,s|0,+r,u|0,o|0,t+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Gb}}b=H[a+120>>2];H[197455]=0;if((h|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Gb}b=H[t+16>>2];if(!b){break Hb}H[t+20>>2]=b;Kb(b)}if(l){H[t+36>>2]=l;Kb(l)}xb=t- -64|0;break xb}f=$()|0;_()|0;c=H[t+16>>2];if(!c){break Cb}break Eb}f=$()|0;_()|0}H[t+20>>2]=c;Kb(c);break Cb}f=$()|0;_()|0;a=H[t+48>>2];if(a){H[t+52>>2]=a;Kb(a)}H[t+4>>2]=q;Kb(q)}if(!l){break a}H[t+36>>2]=l;Kb(l);break a}X()}}F[a+213|0]=1;break k;case 53:h=0;c=0;u=0;m=0;p=xb-96|0;xb=p;l=H[a>>2]-12|0;e=H[l>>2]+a|0;o=e+8|0;d=H[o>>2];b=H[e+12>>2];if(b>>>0>d+3>>>0){h=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[e+8>>2]=d+4;d=H[l>>2]+a|0;b=H[d+12>>2];o=d+8|0;d=H[o>>2]}if(d+3>>>0>>0){m=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[o>>2]=d+4;d=H[l>>2]+a|0;b=H[d+12>>2];o=d+8|0;d=H[o>>2]}if(d+3>>>0>>0){u=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[o>>2]=d+4;d=H[l>>2]+a|0;b=H[d+12>>2];o=d+8|0;d=H[o>>2]}i=j&65535;Nb:{Ob:{Pb:{Qb:{Rb:{if(d+3>>>0>=b>>>0){break Rb}s=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[o>>2]=d+4;if(!s){break Rb}d=s+1|0;b=d+d|0;n=Qb(b>>>0>>0?-1:b);G[n+(s<<1)>>1]=0;f=H[l>>2]+a|0;g=H[f+12>>2];b=H[f+8>>2];d=(g-b|0)/2|0;l=d>>>0>>0?d:s;Sb:{if(!l){break Sb}if(g>>>0>b+1>>>0){d=0;if((l|0)!=1){e=l&-2;while(1){Tb:{if(g>>>0<=b+1>>>0){o=0;break Tb}o=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[f+8>>2]=b}G[n+(d<<1)>>1]=o;o=0;if(g>>>0>b+1>>>0){o=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[f+8>>2]=b}G[n+((d|1)<<1)>>1]=o;d=d+2|0;c=c+2|0;if((e|0)!=(c|0)){continue}break}}if(!(l&1)){break Sb}o=0;if(g>>>0>b+1>>>0){o=I[b|0]|I[b+1|0]<<8;H[f+8>>2]=b+2}G[n+(d<<1)>>1]=o;break Sb}Nb(n,0,l<<1)}H[p+88>>2]=0;H[p+80>>2]=0;H[p+84>>2]=0;zk(p+16|0,n,s);H[p+88>>2]=H[p+24>>2];b=H[p+20>>2];H[p+80>>2]=H[p+16>>2];H[p+84>>2]=b;Kb(n);H[197455]=0;ga(1874,p- -64|0,a|0,s|0);b=H[197455];H[197455]=0;Ub:{Vb:{Wb:{Xb:{if((b|0)!=1){if((u|0)==1){H[p+32>>2]=0;H[p+36>>2]=0;H[p+56>>2]=0;H[p+60>>2]=0;H[p+24>>2]=0;H[p+28>>2]=0;H[p+16>>2]=0;H[p+20>>2]=1072693248;H[p+48>>2]=0;H[p+52>>2]=0;H[p+40>>2]=0;H[p+44>>2]=1072693248;b=H[H[a>>2]-12>>2];H[197455]=0;lg((a+b|0)+4|0,p+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Xb}F[a+213|0]=1}if(!H[a+208>>2]){break Ub}o=0;b=I[p+91|0];l=b<<24>>24<0?H[p+84>>2]:b;c=H[p+68>>2];s=H[p+64>>2];e=c-s|0;if((l|0)!=e>>4){break Ub}H[p+24>>2]=0;H[p+16>>2]=0;H[p+20>>2]=0;if((c|0)==(s|0)){break Vb}if((e|0)>=0){break Wb}H[197455]=0;ia(1652,p+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break Qb}X()}d=$()|0;_()|0;break Ob}d=$()|0;_()|0;break Pb}d=0;H[197455]=0;o=aa(899,e|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Qb}H[p+16>>2]=o;c=l<<4;b=c+o|0;H[p+24>>2]=b;n=Nb(o,0,c);H[p+20>>2]=b;b=l>>>0>1?l:1;g=b&1;if(l>>>0>=2){l=b&-2;b=0;while(1){f=d<<4;e=f+n|0;c=f+s|0;M[e>>3]=M[c>>3];M[e+8>>3]=M[c+8>>3];c=f|16;e=c+n|0;c=c+s|0;M[e>>3]=M[c>>3];M[e+8>>3]=M[c+8>>3];d=d+2|0;b=b+2|0;if((l|0)!=(b|0)){continue}break}}if(!g){break Vb}b=d<<4;c=b+n|0;b=b+s|0;M[c>>3]=M[b>>3];M[c+8>>3]=M[b+8>>3]}c=a+236|0;d=H[c>>2];Yb:{if(!d){break Yb}g=i&255;b=c;while(1){e=g>>>0>K[d+16>>2];b=e?b:d;d=H[(e<<2)+d>>2];if(d){continue}break}if((b|0)==(c|0)|g>>>0>2]){break Yb}e=H[b+20>>2];d=H[H[e>>2]+12>>2];H[197455]=0;e=aa(d|0,e|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Qb}if((e|0)!=6){break Yb}d=H[b+20>>2];if(!d){break Yb}b=H[a+120>>2];H[197455]=0;l=d+4|0;H[b+16>>2]=l;b=H[197455];H[197455]=0;if((b|0)==1){break Qb}Zb:{if(i<<16>>16<0){F[p+11|0]=h>>>24;F[p+8|0]=h>>>16;b=h<<8|(h&65280)>>>8;F[p+9|0]=b;F[p+10|0]=b>>>8;c=H[a+120>>2];H[197455]=0;b=H[197455];H[197455]=0;_b:{if((b|0)==1){break _b}H[p+4>>2]=I[c+592|0]|I[c+593|0]<<8|(I[c+594|0]<<16|I[c+595|0]<<24);b=H[a+120>>2];H[197455]=0;F[b+592|0]=I[p+8|0];F[b+593|0]=I[p+9|0];F[b+594|0]=I[p+10|0];F[b+595|0]=I[p+11|0];b=H[197455];H[197455]=0;if((b|0)==1){break _b}c=H[a+208>>2];b=H[H[c>>2]+24>>2];H[197455]=0;ga(b|0,c|0,p+80|0,p+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break _b}c=H[a+208>>2];b=H[H[c>>2]+524>>2];H[197455]=0;La(b|0,c|0,g|0,h|0,m|0,u|0,0,p+80|0,p+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break _b}b=H[a+120>>2];H[197455]=0;F[b+592|0]=I[p+4|0];F[b+593|0]=I[p+5|0];F[b+594|0]=I[p+6|0];F[b+595|0]=I[p+7|0];b=H[197455];H[197455]=0;if((b|0)!=1){break Zb}}break Qb}d=H[c>>2];if(!d){break Yb}b=c;while(1){e=K[d+16>>2]>>0;b=e?b:d;d=H[(e<<2)+d>>2];if(d){continue}break}if((b|0)==(c|0)|K[b+16>>2]>h>>>0){break Yb}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Qb}if((d|0)!=1){break Yb}b=H[b+20>>2];if(!b){break Yb}F[p+10|0]=I[b+8|0];F[p+9|0]=I[b+9|0];F[p+8|0]=I[b+10|0];F[p+11|0]=I[b+11|0];c=H[a+120>>2];H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break Qb}H[p+4>>2]=I[c+592|0]|I[c+593|0]<<8|(I[c+594|0]<<16|I[c+595|0]<<24);b=H[a+120>>2];H[197455]=0;F[b+592|0]=I[p+8|0];F[b+593|0]=I[p+9|0];F[b+594|0]=I[p+10|0];F[b+595|0]=I[p+11|0];b=H[197455];H[197455]=0;if((b|0)==1){break Qb}c=H[a+208>>2];b=H[H[c>>2]+24>>2];H[197455]=0;ga(b|0,c|0,p+80|0,p+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Qb}c=H[a+208>>2];if(c){b=H[H[c>>2]+524>>2];H[197455]=0;La(b|0,c|0,g|0,h|0,m|0,u|0,0,p+80|0,p+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Qb}}b=H[a+120>>2];H[197455]=0;F[b+592|0]=I[p+4|0];F[b+593|0]=I[p+5|0];F[b+594|0]=I[p+6|0];F[b+595|0]=I[p+7|0];b=H[197455];H[197455]=0;if((b|0)==1){break Qb}}b=H[a+120>>2];H[197455]=0;if((l|0)==H[b+16>>2]){H[b+16>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Qb}F[a+213|0]=1;o=H[p+16>>2]}if(!o){break Ub}H[p+20>>2]=o;Kb(o)}b=H[p+64>>2];if(b){H[p+68>>2]=b;Kb(b)}if(F[p+91|0]>=0){break Rb}Kb(H[p+80>>2])}xb=p+96|0;break Nb}d=$()|0;_()|0;a=H[p+16>>2];if(!a){break Pb}H[p+20>>2]=a;Kb(a)}a=H[p+64>>2];if(!a){break Ob}H[p+68>>2]=a;Kb(a)}if(F[p+91|0]<0){Kb(H[p+80>>2])}ea(d|0);X()}break k;case 14:$b:{if(j&16384){u=0;v=0;m=0;e=0;n=xb-32|0;xb=n;c=H[H[a>>2]-12>>2]+a|0;h=H[c+8>>2];b=H[c+12>>2];if(h+1>>>0>>0){v=(I[h|0]|I[h+1|0]<<8)<<16>>16;h=h+2|0;H[c+8>>2]=h}if(b>>>0>h+1>>>0){u=(I[h|0]|I[h+1|0]<<8)<<16>>16;h=h+2|0;H[c+8>>2]=h}if(b>>>0>h+1>>>0){e=(I[h|0]|I[h+1|0]<<8)<<16>>16;h=h+2|0;H[c+8>>2]=h}if(b>>>0>h+1>>>0){m=(I[h|0]|I[h+1|0]<<8)<<16>>16;H[c+8>>2]=h+2}b=j&65535;c=a+236|0;h=H[c>>2];ac:{if(!h){break ac}i=b&255;b=c;while(1){d=i>>>0>K[h+16>>2];b=d?b:h;h=H[(d<<2)+h>>2];if(h){continue}break}if((b|0)==(c|0)|i>>>0>2]){break ac}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=2){break ac}f=H[b+20>>2];if(!f){break ac}b=H[f+28>>2];if(b){H[H[a+120>>2]+8>>2]=b+4}d=f+4|0;H[H[a+120>>2]+12>>2]=d;g=u<<16>>16;l=g+(m<<16>>16)|0;c=v<<16>>16;b=c+(e<<16>>16)|0;bc:{if(H[H[a+120>>2]+680>>2]==1){Sf(a,c,g,b,l,0,360);break bc}Sf(a,c,l,b,g,0,360)}Rf(a,1,0,1);b=H[a+208>>2];if(b){M[n+24>>3]=m<<16>>16;M[n+16>>3]=e<<16>>16;M[n+8>>3]=u<<16>>16;M[n>>3]=v<<16>>16;zb[H[H[b>>2]+528>>2]](b,i,n)}c=H[f+28>>2];if(c){b=H[a+120>>2];if(H[b+8>>2]==(c+4|0)){H[b+8>>2]=0}}b=H[a+120>>2];if((d|0)==H[b+12>>2]){H[b+12>>2]=0}}xb=n+32|0;break $b}b=j&65535;m=xb+-64|0;xb=m;H[m+56>>2]=0;H[m+60>>2]=0;H[m+48>>2]=0;H[m+52>>2]=0;H[m+40>>2]=0;H[m+44>>2]=0;H[m+32>>2]=0;H[m+36>>2]=0;Ae((H[H[a>>2]-12>>2]+a|0)+4|0,m+32|0);c=a+236|0;h=H[c>>2];cc:{if(!h){break cc}i=b&255;b=c;while(1){d=i>>>0>K[h+16>>2];b=d?b:h;h=H[(d<<2)+h>>2];if(h){continue}break}if((b|0)==(c|0)|i>>>0>2]){break cc}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=2){break cc}f=H[b+20>>2];if(!f){break cc}b=H[f+28>>2];if(b){H[H[a+120>>2]+8>>2]=b+4}g=f+4|0;H[H[a+120>>2]+12>>2]=g;w=M[m+48>>3];z=M[m+32>>3];b=H[H[a+120>>2]+680>>2];A=M[m+40>>3];r=A+M[m+56>>3];dc:{if(P(r)<2147483648){e=~~r;break dc}e=-2147483648}r=z+w;ec:{if(P(r)<2147483648){d=~~r;break ec}d=-2147483648}if(P(A)<2147483648){c=~~A}else{c=-2147483648}l=(b|0)!=1;if(P(z)<2147483648){b=~~z}else{b=-2147483648}fc:{if(!l){Sf(a,b,c,d,e,0,360);break fc}Sf(a,b,e,d,c,0,360)}Rf(a,1,0,1);b=H[a+208>>2];if(b){M[m+24>>3]=M[m+56>>3];M[m+16>>3]=M[m+48>>3];M[m+8>>3]=M[m+40>>3];M[m>>3]=M[m+32>>3];zb[H[H[b>>2]+528>>2]](b,i,m)}c=H[f+28>>2];if(c){b=H[a+120>>2];if(H[b+8>>2]==(c+4|0)){H[b+8>>2]=0}}b=H[a+120>>2];if((g|0)==H[b+12>>2]){H[b+12>>2]=0}}xb=m- -64|0}F[a+213|0]=1;break k;case 25:gc:{if(j&16384){D=0;z=0;f=0;g=xb-48|0;xb=g;H[g+40>>2]=0;H[g+44>>2]=0;H[g+32>>2]=0;H[g+36>>2]=0;H[g+24>>2]=0;H[g+28>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;l=H[a>>2]-12|0;b=H[l>>2]+a|0;c=b+8|0;k=H[c>>2];e=H[b+12>>2];if(e>>>0>k+3>>>0){f=I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24);H[b+8>>2]=k+4;b=H[l>>2]+a|0;e=H[b+12>>2];c=b+8|0;k=H[c>>2]}d=j&65535;hc:{ic:{if(k+3>>>0>=e>>>0){break ic}b=I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24);H[c>>2]=k+4;if((b|0)!=2){break ic}Ae((H[l>>2]+a|0)+4|0,g+16|0);l=H[H[a>>2]-12>>2]+a|0;e=H[l+8>>2];c=H[l+12>>2];if(e+1>>>0>=c>>>0){w=0}else{b=(I[e|0]|I[e+1|0]<<8)<<16>>16;e=e+2|0;H[l+8>>2]=e;w=+(b|0)}if(c>>>0>e+1>>>0){b=(I[e|0]|I[e+1|0]<<8)<<16>>16;e=e+2|0;H[l+8>>2]=e;D=+(b|0)}if(c>>>0<=e+1>>>0){r=0}else{b=(I[e|0]|I[e+1|0]<<8)<<16>>16;e=e+2|0;H[l+8>>2]=e;r=+(b|0)}if(c>>>0>e+1>>>0){b=(I[e|0]|I[e+1|0]<<8)<<16>>16;H[l+8>>2]=e+2;z=+(b|0)}c=Qb(48);H[g>>2]=c;b=c+48|0;H[g+8>>2]=b;M[c+40>>3]=D+z;r=w+r;M[c+32>>3]=r;M[c+24>>3]=D;M[c+16>>3]=r;M[c+8>>3]=D;M[c>>3]=w;H[197455]=0;H[g+4>>2]=b;wa(1880,a|0,d&255,f|0,g+16|0,g|0);b=H[197455];H[197455]=0;if((b|0)==1){break hc}Kb(c)}xb=g+48|0;break gc}a=$()|0;_()|0;Kb(c);break d}d=j&65535;k=0;l=xb-80|0;xb=l;H[l+72>>2]=0;H[l+76>>2]=0;b=l- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[l+56>>2]=0;H[l+60>>2]=0;H[l+48>>2]=0;H[l+52>>2]=0;e=H[a>>2]-12|0;c=H[e>>2]+a|0;h=c+8|0;j=H[h>>2];b=H[c+12>>2];if(b>>>0>j+3>>>0){k=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);H[c+8>>2]=j+4;c=H[e>>2]+a|0;b=H[c+12>>2];h=c+8|0;j=H[h>>2]}jc:{kc:{lc:{if(j+3>>>0>=b>>>0){break lc}b=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);H[h>>2]=j+4;if((b|0)!=2){break lc}c=l+48|0;Ae((H[e>>2]+a|0)+4|0,c);H[l+40>>2]=0;H[l+44>>2]=0;H[l+32>>2]=0;H[l+36>>2]=0;H[l+24>>2]=0;H[l+28>>2]=0;H[l+16>>2]=0;H[l+20>>2]=0;Ae((H[H[a>>2]-12>>2]+a|0)+4|0,l+16|0);w=M[l+32>>3];r=M[l+40>>3];z=M[l+24>>3];A=M[l+16>>3];e=Qb(48);H[l>>2]=e;b=e+48|0;H[l+8>>2]=b;M[e+40>>3]=z+r;r=A+w;M[e+32>>3]=r;M[e+24>>3]=z;M[e+16>>3]=r;M[e+8>>3]=z;M[e>>3]=A;H[197455]=0;H[l+4>>2]=b;wa(1880,a|0,d&255,k|0,c|0,l|0);b=H[197455];H[197455]=0;if((b|0)==1){break kc}Kb(e)}xb=l+80|0;break jc}a=$()|0;_()|0;Kb(e);break d}}F[a+213|0]=1;break k;case 26:f=j&65535;mc:{if(j&2048){o=0;k=0;n=xb-96|0;xb=n;H[n+72>>2]=0;H[n+76>>2]=0;b=n- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[n+56>>2]=0;H[n+60>>2]=0;H[n+48>>2]=0;H[n+52>>2]=0;c=H[a>>2]-12|0;m=H[c>>2];b=m+a|0;e=b+8|0;j=H[e>>2];u=H[b+12>>2];if(u>>>0>j+3>>>0){k=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);H[b+8>>2]=j+4;m=H[c>>2];b=m+a|0;u=H[b+12>>2];e=b+8|0;j=H[e>>2]}if(j+3>>>0>>0){o=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);H[e>>2]=j+4;m=H[c>>2]}Ae((m+a|0)+4|0,n+48|0);j=0;b=H[H[a>>2]-12>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){j=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}nc:{oc:{pc:{qc:{rc:{sc:{if((o|0)!=2&(j|0)!=3){break sc}u=0;H[n+40>>2]=0;H[n+32>>2]=0;H[n+36>>2]=0;tc:{uc:{if(!j){H[n+8>>2]=0;H[n>>2]=0;H[n+4>>2]=0;break uc}vc:{wc:{xc:{if((j|0)<0){H[197455]=0;ia(1867,n+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break xc}break vc}H[197455]=0;u=aa(899,j|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break wc}}j=$()|0;_()|0;a=H[n+32>>2];if(!a){break nc}H[n+36>>2]=a;Kb(a);break nc}H[n+32>>2]=u;b=j+u|0;H[n+40>>2]=b;H[n+36>>2]=b;H[n+8>>2]=0;H[n>>2]=0;H[n+4>>2]=0;if(!j){break uc}yc:{zc:{if((j|0)<0){H[197455]=0;ia(1867,n|0);a=H[197455];H[197455]=0;if((a|0)!=1){break vc}break zc}H[197455]=0;v=aa(899,j|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break yc}}j=$()|0;_()|0;a=H[n>>2];if(!a){break oc}H[n+4>>2]=a;Kb(a);break oc}H[n>>2]=v;b=j+v|0;H[n+8>>2]=b;Ob(v,u,j);H[n+4>>2]=b;H[n+88>>2]=0;H[n+80>>2]=0;H[n+84>>2]=0;Ac:{if(j>>>0<=268435455){H[197455]=0;c=j<<4;o=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Ac}g=c+o|0;Bc:{if(j>>>0<2){break Bc}m=1;b=j-1|0;d=b&1;if((j|0)!=2){c=b&-2;e=0;while(1){h=(m<<4)+o|0;i=h-16|0;l=H[i+4>>2];b=H[i>>2];H[h+16>>2]=b;H[h+20>>2]=l;H[h>>2]=b;H[h+4>>2]=l;l=H[i+12>>2];b=H[i+8>>2];H[h+24>>2]=b;H[h+28>>2]=l;H[h+8>>2]=b;H[h+12>>2]=l;m=m+2|0;e=e+2|0;if((c|0)!=(e|0)){continue}break}}if(!d){break Bc}d=(m<<4)+o|0;c=d-16|0;b=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=b;b=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=b}H[n+24>>2]=g;H[n+20>>2]=g;H[n+16>>2]=o;break tc}H[197455]=0;ia(1869,n+80|0);a=H[197455];H[197455]=0;if((a|0)!=1){break vc}}j=$()|0;_()|0;a=H[n+80>>2];if(!a){break qc}H[n+84>>2]=a;Kb(a);break qc}X()}v=0;H[n+24>>2]=0;H[n+16>>2]=0;H[n+20>>2]=0;o=0}H[197455]=0;wa(1880,a|0,f&255,k|0,n+48|0,n+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break rc}if(o){H[n+20>>2]=o;Kb(o)}if(v){H[n+4>>2]=v;Kb(v)}if(!u){break sc}Kb(u)}xb=n+96|0;break mc}j=$()|0;_()|0;if(o){H[n+20>>2]=o;Kb(o)}if(!v){break pc}}H[n+4>>2]=v;Kb(v)}if(!u){break nc}}Kb(u);ea(j|0);X()}ea(j|0);X()}if(f&16384){d=0;e=0;p=xb-96|0;xb=p;H[p+72>>2]=0;H[p+76>>2]=0;b=p- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[p+56>>2]=0;H[p+60>>2]=0;H[p+48>>2]=0;H[p+52>>2]=0;c=H[a>>2]-12|0;g=H[c>>2];b=g+a|0;h=b+8|0;l=H[h>>2];u=H[b+12>>2];if(u>>>0>l+3>>>0){e=I[l|0]|I[l+1|0]<<8|(I[l+2|0]<<16|I[l+3|0]<<24);H[b+8>>2]=l+4;g=H[c>>2];b=g+a|0;u=H[b+12>>2];h=b+8|0;l=H[h>>2]}if(l+3>>>0>>0){d=I[l|0]|I[l+1|0]<<8|(I[l+2|0]<<16|I[l+3|0]<<24);H[h>>2]=l+4;g=H[c>>2]}Ae((g+a|0)+4|0,p+48|0);g=0;i=H[a>>2]-12|0;b=H[i>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){g=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}m=j&65535;Cc:{Dc:{Ec:{Fc:{Gc:{Hc:{if((d|0)!=2&(g|0)!=3){break Hc}d=0;H[p+40>>2]=0;H[p+32>>2]=0;H[p+36>>2]=0;v=0;o=0;if(g){Ic:{Jc:{if(g>>>0>=1073741824){H[197455]=0;ia(1808,p+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break Jc}break Cc}l=0;H[197455]=0;c=g<<2;o=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Ic}}l=$()|0;_()|0;a=H[p+32>>2];if(!a){break c}H[p+36>>2]=a;Kb(a);break c}H[p+32>>2]=o;v=c+o|0;H[p+40>>2]=v;f=Nb(o,0,c);H[p+36>>2]=v;c=a+4|0;while(1){n=f+(l<<2)|0;u=0;s=c+H[i>>2]|0;h=H[s+4>>2];b=H[s+8>>2];Kc:{if(h+1>>>0>=b>>>0){k=0;break Kc}k=I[h|0]|I[h+1|0]<<8;h=h+2|0;H[s+4>>2]=h}G[n>>1]=k;if(b>>>0>h+1>>>0){u=I[h|0]|I[h+1|0]<<8;H[s+4>>2]=h+2}G[n+2>>1]=u;l=l+1|0;if((l|0)!=(g|0)){continue}break}}H[p+8>>2]=0;H[p>>2]=0;H[p+4>>2]=0;Lc:{Mc:{if((o|0)!=(v|0)){Nc:{c=v-o|0;Oc:{if((c|0)<0){H[197455]=0;ia(1808,p|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Cc}break Oc}H[197455]=0;d=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Nc}}l=$()|0;_()|0;d=H[p>>2];if(d){break Ec}break Dc}H[p>>2]=d;H[p+8>>2]=(c>>2<<2)+d;s=Ob(d,o,c);b=s+c|0;H[p+4>>2]=b;if(c){break Mc}}g=0;H[p+24>>2]=0;H[p+16>>2]=0;H[p+20>>2]=0;break Lc}H[p+88>>2]=0;H[p+80>>2]=0;H[p+84>>2]=0;c=b-s|0;if(c>>>0>=1073741821){H[197455]=0;ia(1869,p+80|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Cc}break Fc}H[197455]=0;g=aa(899,c<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Fc}n=c>>2;b=n>>>0>1?n:1;i=b&1;l=0;if(c>>>0>=8){f=b&-2;h=0;while(1){c=(l<<4)+g|0;b=s+(l<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1];b=l|1;c=(b<<4)+g|0;b=s+(b<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1];l=l+2|0;h=h+2|0;if((f|0)!=(h|0)){continue}break}}if(i){c=(l<<4)+g|0;b=s+(l<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1]}H[p+16>>2]=g;b=(n<<4)+g|0;H[p+24>>2]=b;H[p+20>>2]=b}H[197455]=0;wa(1880,a|0,m&255,e|0,p+48|0,p+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Gc}if(g){Kb(g)}if(d){H[p+4>>2]=d;Kb(d)}if(!o){break Hc}Kb(o)}xb=p+96|0;break mc}l=$()|0;_()|0;if(g){H[p+20>>2]=g;Kb(g)}if(!d){break Dc}break Ec}l=$()|0;_()|0;a=H[p+80>>2];if(!a){break Ec}H[p+84>>2]=a;Kb(a)}H[p+4>>2]=d;Kb(d)}if(!o){break c}Kb(o);break c}X()}i=j&65535;h=0;j=0;q=xb-96|0;xb=q;H[q+72>>2]=0;H[q+76>>2]=0;b=q- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[q+56>>2]=0;H[q+60>>2]=0;H[q+48>>2]=0;H[q+52>>2]=0;c=H[a>>2]-12|0;d=H[c>>2];b=d+a|0;e=b+8|0;g=H[e>>2];m=H[b+12>>2];if(m>>>0>g+3>>>0){j=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[b+8>>2]=g+4;d=H[c>>2];b=d+a|0;m=H[b+12>>2];e=b+8|0;g=H[e>>2]}if(g+3>>>0>>0){h=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[e>>2]=g+4;d=H[c>>2]}Ae((a+d|0)+4|0,q+48|0);u=0;f=H[a>>2]-12|0;b=H[f>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){u=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{if((h|0)!=2&(u|0)!=3){break Vc}h=0;H[q+40>>2]=0;H[q+32>>2]=0;H[q+36>>2]=0;d=0;o=0;if(u){Wc:{Xc:{if(u>>>0>=268435456){H[197455]=0;ia(1869,q+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break Xc}break Qc}g=0;H[197455]=0;c=u<<4;o=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Wc}}g=$()|0;_()|0;a=H[q+32>>2];if(!a){break b}H[q+36>>2]=a;Kb(a);break b}H[q+32>>2]=o;d=c+o|0;H[q+40>>2]=d;H[q+36>>2]=d;l=a+4|0;while(1){b=(g<<4)+o|0;m=l+H[f>>2]|0;e=H[m+4>>2];c=H[m+8>>2];if(e+3>>>0>=c>>>0){r=0}else{y=(x(2,I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24)),B());e=e+4|0;H[m+4>>2]=e;r=+y}M[b>>3]=r;if(c>>>0>e+3>>>0){y=(x(2,I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24)),B());H[m+4>>2]=e+4;r=+y}else{r=0}M[b+8>>3]=r;g=g+1|0;if((u|0)!=(g|0)){continue}break}}H[q+8>>2]=0;H[q>>2]=0;H[q+4>>2]=0;Yc:{Zc:{if((d|0)!=(o|0)){_c:{c=d-o|0;$c:{if((c|0)<0){H[197455]=0;ia(1869,q|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Qc}break $c}H[197455]=0;h=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break _c}}g=$()|0;_()|0;h=H[q>>2];if(h){break Sc}break Rc}H[q>>2]=h;H[q+8>>2]=(c>>4<<4)+h;p=Ob(h,o,c);b=p+c|0;H[q+4>>2]=b;if(c){break Zc}}d=0;H[q+24>>2]=0;H[q+16>>2]=0;H[q+20>>2]=0;break Yc}H[q+88>>2]=0;H[q+80>>2]=0;H[q+84>>2]=0;c=b-p|0;if((c|0)<0){H[197455]=0;ia(1869,q+80|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Qc}break Tc}H[197455]=0;d=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Tc}f=c>>4;b=f>>>0>1?f:1;l=b&3;m=0;g=0;if(b-1>>>0>=3){e=b&-4;u=0;while(1){s=g<<4;c=s+d|0;n=p+s|0;b=H[n+4>>2];H[c>>2]=H[n>>2];H[c+4>>2]=b;b=H[n+12>>2];H[c+8>>2]=H[n+8>>2];H[c+12>>2]=b;b=s|16;c=b+d|0;n=b+p|0;b=H[n+12>>2];H[c+8>>2]=H[n+8>>2];H[c+12>>2]=b;b=H[n+4>>2];H[c>>2]=H[n>>2];H[c+4>>2]=b;b=s|32;c=b+d|0;n=b+p|0;b=H[n+12>>2];H[c+8>>2]=H[n+8>>2];H[c+12>>2]=b;b=H[n+4>>2];H[c>>2]=H[n>>2];H[c+4>>2]=b;b=s|48;c=b+d|0;n=b+p|0;b=H[n+12>>2];H[c+8>>2]=H[n+8>>2];H[c+12>>2]=b;b=H[n+4>>2];H[c>>2]=H[n>>2];H[c+4>>2]=b;g=g+4|0;u=u+4|0;if((e|0)!=(u|0)){continue}break}}if(l){while(1){b=g<<4;c=b+d|0;e=b+p|0;b=H[e+4>>2];H[c>>2]=H[e>>2];H[c+4>>2]=b;b=H[e+12>>2];H[c+8>>2]=H[e+8>>2];H[c+12>>2]=b;g=g+1|0;m=m+1|0;if((l|0)!=(m|0)){continue}break}}H[q+16>>2]=d;b=(f<<4)+d|0;H[q+24>>2]=b;H[q+20>>2]=b}H[197455]=0;wa(1880,a|0,i&255,j|0,q+48|0,q+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Uc}if(d){Kb(d)}if(h){H[q+4>>2]=h;Kb(h)}if(!o){break Vc}Kb(o)}xb=q+96|0;break Pc}g=$()|0;_()|0;if(d){H[q+20>>2]=d;Kb(d)}if(!h){break Rc}break Sc}g=$()|0;_()|0;a=H[q+80>>2];if(!a){break Sc}H[q+84>>2]=a;Kb(a)}H[q+4>>2]=h;Kb(h)}if(!o){break b}Kb(o);break b}X()}}F[a+213|0]=1;break k;case 12:t=j&65535;ad:{if(j&2048){m=0;e=xb-80|0;xb=e;bd:{cd:{dd:{ed:{fd:{gd:{hd:{id:{jd:{kd:{b=H[H[a>>2]-12>>2]+a|0;c=H[b+8>>2];ld:{if(c+3>>>0>=K[b+12>>2]){break ld}j=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!j){break ld}H[e+56>>2]=0;H[e+48>>2]=0;H[e+52>>2]=0;if((j|0)<0){H[197455]=0;ia(1867,e+48|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}break bd}H[197455]=0;u=aa(899,j|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}H[e+48>>2]=u;b=a+236|0;l=H[b>>2];md:{if(!l){break md}q=t&255;c=b;while(1){d=q>>>0>K[l+16>>2];c=d?c:l;l=H[(d<<2)+l>>2];if(l){continue}break}if((b|0)==(c|0)|q>>>0>2]){break md}d=H[c+20>>2];b=H[H[d>>2]+12>>2];H[197455]=0;d=aa(b|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break id}if((d|0)!=2){break md}p=H[c+20>>2];if(!p){break md}b=H[a+120>>2];H[197455]=0;i=p+4|0;H[b+12>>2]=i;b=H[197455];H[197455]=0;if((b|0)==1){break id}c=H[p+28>>2];if(c){b=H[a+120>>2];H[197455]=0;H[b+8>>2]=c+4;b=H[197455];H[197455]=0;if((b|0)==1){break id}}H[e+40>>2]=0;H[e+32>>2]=0;H[e+36>>2]=0;nd:{od:{pd:{qd:{rd:{f=(u|0)==(j+u|0);sd:{if(!f){td:{ud:{if((j|0)<0){H[197455]=0;ia(1867,e+32|0);a=H[197455];H[197455]=0;if((a|0)!=1){break bd}break ud}H[197455]=0;c=aa(899,j|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break td}}l=$()|0;_()|0;a=H[e+32>>2];if(!a){break cd}H[e+36>>2]=a;Kb(a);break cd}H[e+32>>2]=c;H[e+40>>2]=c+j;v=Ob(c,u,j);H[e+72>>2]=0;H[e+64>>2]=0;H[e+68>>2]=0;if(j>>>0>=268435456){H[197455]=0;ia(1869,e- -64|0);a=H[197455];H[197455]=0;if((a|0)!=1){break bd}break ed}H[197455]=0;c=j<<4;o=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ed}n=c+o|0;vd:{if(j>>>0<2){break vd}c=1;b=j-1|0;g=b&1;if((j|0)!=2){l=b&-2;while(1){b=o+(c<<4)|0;s=b-16|0;h=H[s+4>>2];d=H[s>>2];H[b+16>>2]=d;H[b+20>>2]=h;H[b>>2]=d;H[b+4>>2]=h;h=H[s+12>>2];d=H[s+8>>2];H[b+24>>2]=d;H[b+28>>2]=h;H[b+8>>2]=d;H[b+12>>2]=h;c=c+2|0;m=m+2|0;if((l|0)!=(m|0)){continue}break}}if(!g){break vd}d=o+(c<<4)|0;c=d-16|0;b=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=b;b=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=b}if((n|0)!=(o|0)){H[197455]=0;ta(1870,a|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break kd}b=n-o|0;if(b>>>0>=17){b=b>>4;c=b>>>0>2?b:2;l=1;while(1){b=o+(l<<4)|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break kd}l=l+1|0;if((c|0)!=(l|0)){continue}break}}if(t&8192){H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break kd}}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break kd}}Kb(o);H[e+36>>2]=v;Kb(v);l=H[a+208>>2];if(!l){break nd}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;if(f){break sd}if((j|0)>=0){break rd}H[197455]=0;ia(1867,e|0);a=H[197455];H[197455]=0;if((a|0)!=1){break bd}break qd}l=H[a+208>>2];if(!l){break nd}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0}o=0;H[e+24>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;break od}H[197455]=0;o=aa(899,j|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break pd}}l=$()|0;_()|0;o=H[e>>2];if(o){break fd}break cd}H[e>>2]=o;b=j+o|0;H[e+8>>2]=b;Ob(o,u,j);H[e+4>>2]=b;H[e+72>>2]=0;H[e+64>>2]=0;H[e+68>>2]=0;if(j>>>0>268435455){break hd}H[197455]=0;c=j<<4;s=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break gd}h=c+s|0;wd:{if(j>>>0<2){break wd}c=1;b=j-1|0;g=b&1;if((j|0)!=2){d=b&-2;f=0;while(1){t=s+(c<<4)|0;n=t-16|0;m=H[n+4>>2];b=H[n>>2];H[t+16>>2]=b;H[t+20>>2]=m;H[t>>2]=b;H[t+4>>2]=m;m=H[n+12>>2];b=H[n+8>>2];H[t+24>>2]=b;H[t+28>>2]=m;H[t+8>>2]=b;H[t+12>>2]=m;c=c+2|0;f=f+2|0;if((d|0)!=(f|0)){continue}break}}if(!g){break wd}d=s+(c<<4)|0;c=d-16|0;b=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=b;b=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=b}H[e+24>>2]=h;H[e+20>>2]=h;H[e+16>>2]=s}b=H[H[l>>2]+540>>2];H[197455]=0;ga(b|0,l|0,q|0,e+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break jd}b=H[e+16>>2];if(b){H[e+20>>2]=b;Kb(b)}if(!o){break nd}H[e+4>>2]=o;Kb(o)}b=H[p+28>>2];if(b){c=H[a+120>>2];H[197455]=0;if(H[c+8>>2]==(b+4|0)){H[c+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break id}}b=H[a+120>>2];H[197455]=0;if((i|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break id}F[a+213|0]=1}Kb(u)}xb=e+80|0;break ad}l=$()|0;_()|0;Kb(o);break dd}l=$()|0;_()|0;a=H[e+16>>2];if(a){H[e+20>>2]=a;Kb(a)}if(!o){break cd}break fd}l=$()|0;_()|0;break cd}H[197455]=0;ia(1869,e- -64|0);a=H[197455];H[197455]=0;if((a|0)!=1){break bd}}l=$()|0;_()|0;a=H[e+64>>2];if(!a){break fd}H[e+68>>2]=a;Kb(a)}H[e+4>>2]=o;Kb(o);break cd}l=$()|0;_()|0;a=H[e+64>>2];if(!a){break dd}H[e+68>>2]=a;Kb(a)}H[e+36>>2]=v;Kb(v)}Kb(u);break c}X()}if(t&16384){s=j&65535;e=xb-80|0;xb=e;xd:{yd:{zd:{Ad:{Bd:{Cd:{Dd:{Ed:{Fd:{g=H[a>>2]-12|0;b=H[g>>2]+a|0;c=H[b+8>>2];Gd:{if(c+3>>>0>=K[b+12>>2]){break Gd}h=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!h){break Gd}H[e+56>>2]=0;H[e+48>>2]=0;H[e+52>>2]=0;if(h>>>0>=1073741824){H[197455]=0;ia(1808,e+48|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}break xd}H[197455]=0;c=h<<2;d=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}t=s&255;H[e+48>>2]=d;q=c+d|0;H[e+56>>2]=q;f=0;v=Nb(d,0,c);H[e+52>>2]=q;l=a+4|0;while(1){i=v+(f<<2)|0;m=l+H[g>>2]|0;b=H[m+4>>2];c=H[m+8>>2];Hd:{if(b+1>>>0>=c>>>0){d=0;break Hd}d=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[m+4>>2]=b}G[i>>1]=d;d=0;if(c>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[m+4>>2]=b+2}G[i+2>>1]=d;f=f+1|0;if((h|0)!=(f|0)){continue}break}c=a+236|0;f=H[c>>2];Id:{if(!f){break Id}b=c;while(1){d=t>>>0>K[f+16>>2];b=d?b:f;f=H[(d<<2)+f>>2];if(f){continue}break}if((b|0)==(c|0)|t>>>0>2]){break Id}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Dd}if((d|0)!=2){break Id}p=H[b+20>>2];if(!p){break Id}b=H[a+120>>2];H[197455]=0;n=p+4|0;H[b+12>>2]=n;b=H[197455];H[197455]=0;if((b|0)==1){break Dd}c=H[p+28>>2];if(c){b=H[a+120>>2];H[197455]=0;H[b+8>>2]=c+4;b=H[197455];H[197455]=0;if((b|0)==1){break Dd}}H[e+40>>2]=0;H[e+32>>2]=0;H[e+36>>2]=0;Jd:{Kd:{Ld:{Md:{Nd:{Od:{Pd:{h=(q|0)==(v|0);if(!h){Qd:{o=q-v|0;Rd:{if((o|0)<0){H[197455]=0;ia(1808,e+32|0);a=H[197455];H[197455]=0;if((a|0)!=1){break xd}break Rd}H[197455]=0;c=aa(899,o|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Qd}}f=$()|0;_()|0;a=H[e+32>>2];if(!a){break yd}H[e+36>>2]=a;Kb(a);break yd}H[e+32>>2]=c;i=o>>2;H[e+40>>2]=c+(i<<2);q=Ob(c,v,o);if(o){H[e+72>>2]=0;H[e+64>>2]=0;H[e+68>>2]=0;c=(o+q|0)-q|0;if(c>>>0>=1073741821){H[197455]=0;ia(1869,e- -64|0);a=H[197455];H[197455]=0;if((a|0)!=1){break xd}break Ad}H[197455]=0;u=aa(899,c<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Ad}m=c>>2;b=m>>>0>1?m:1;g=b&1;f=0;if(c>>>0>=8){l=b&-2;b=0;while(1){d=u+(f<<4)|0;c=q+(f<<2)|0;M[d>>3]=G[c>>1];M[d+8>>3]=G[c+2>>1];c=f|1;d=u+(c<<4)|0;c=q+(c<<2)|0;M[d>>3]=G[c>>1];M[d+8>>3]=G[c+2>>1];f=f+2|0;b=b+2|0;if((l|0)!=(b|0)){continue}break}}if(g){c=u+(f<<4)|0;b=q+(f<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1]}c=m<<4;if(c){w=M[u+8>>3];r=M[u>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break Fd}b=(c+u|0)-u|0;if(b>>>0>=17){b=b>>4;c=b>>>0>2?b:2;f=1;while(1){b=u+(f<<4)|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break Fd}f=f+1|0;if((c|0)!=(f|0)){continue}break}}if(s&8192){H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break Fd}}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break Fd}}Kb(u)}H[e+36>>2]=q;Kb(q);m=H[a+208>>2];if(!m){break Jd}d=0;H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;if(h){break Md}if((o|0)>=0){break Pd}H[197455]=0;ia(1808,e|0);a=H[197455];H[197455]=0;if((a|0)!=1){break xd}break Od}m=H[a+208>>2];if(!m){break Jd}d=0;H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;break Md}H[197455]=0;d=aa(899,o|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Nd}}f=$()|0;_()|0;d=H[e>>2];if(d){break Bd}break yd}H[e>>2]=d;H[e+8>>2]=(i<<2)+d;s=Ob(d,v,o);b=s+o|0;H[e+4>>2]=b;if(o){break Ld}}H[e+24>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;break Kd}H[e+72>>2]=0;H[e+64>>2]=0;H[e+68>>2]=0;c=b-s|0;if(c>>>0>=1073741821){H[197455]=0;ia(1869,e- -64|0);a=H[197455];H[197455]=0;if((a|0)!=1){break xd}break Cd}H[197455]=0;q=aa(899,c<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Cd}h=c>>2;b=h>>>0>1?h:1;i=b&1;f=0;if(c>>>0>=8){g=b&-2;b=0;while(1){l=q+(f<<4)|0;c=s+(f<<2)|0;M[l>>3]=G[c>>1];M[l+8>>3]=G[c+2>>1];c=f|1;l=q+(c<<4)|0;c=s+(c<<2)|0;M[l>>3]=G[c>>1];M[l+8>>3]=G[c+2>>1];f=f+2|0;b=b+2|0;if((g|0)!=(b|0)){continue}break}}if(i){c=q+(f<<4)|0;b=s+(f<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1]}H[e+16>>2]=q;b=q+(h<<4)|0;H[e+24>>2]=b;H[e+20>>2]=b}b=H[H[m>>2]+540>>2];H[197455]=0;ga(b|0,m|0,t|0,e+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ed}b=H[e+16>>2];if(b){H[e+20>>2]=b;Kb(b)}if(!d){break Jd}H[e+4>>2]=d;Kb(d)}b=H[p+28>>2];if(b){c=H[a+120>>2];H[197455]=0;if(H[c+8>>2]==(b+4|0)){H[c+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Dd}}b=H[a+120>>2];H[197455]=0;if((n|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Dd}F[a+213|0]=1}Kb(v)}xb=e+80|0;break ad}f=$()|0;_()|0;Kb(u);break zd}f=$()|0;_()|0;a=H[e+16>>2];if(a){H[e+20>>2]=a;Kb(a)}if(!d){break yd}break Bd}f=$()|0;_()|0;break yd}f=$()|0;_()|0;a=H[e+64>>2];if(!a){break Bd}H[e+68>>2]=a;Kb(a)}H[e+4>>2]=d;Kb(d);break yd}f=$()|0;_()|0;a=H[e+64>>2];if(!a){break zd}H[e+68>>2]=a;Kb(a)}H[e+36>>2]=q;Kb(q)}Kb(v);break a}X()}n=j&65535;E=xb-80|0;xb=E;Sd:{Td:{Ud:{Vd:{Wd:{Xd:{Yd:{Zd:{_d:{$d:{l=H[a>>2]-12|0;b=H[l>>2]+a|0;c=H[b+8>>2];ae:{if(c+3>>>0>=K[b+12>>2]){break ae}i=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!i){break ae}H[E+56>>2]=0;H[E+48>>2]=0;H[E+52>>2]=0;be:{ce:{if(i>>>0>=268435456){H[197455]=0;ia(1869,E+48|0);a=H[197455];H[197455]=0;if((a|0)==1){break ce}break Td}H[197455]=0;c=i<<4;v=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break be}}a=$()|0;_()|0;b=H[E+48>>2];if(b){H[E+52>>2]=b;Kb(b)}break d}q=n&255;H[E+48>>2]=v;f=c+v|0;H[E+56>>2]=f;H[E+52>>2]=f;e=a+4|0;k=0;while(1){c=v+(k<<4)|0;g=e+H[l>>2]|0;b=H[g+4>>2];d=H[g+8>>2];if(b+3>>>0>=d>>>0){r=0}else{y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());b=b+4|0;H[g+4>>2]=b;r=+y}M[c>>3]=r;if(d>>>0>b+3>>>0){y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());H[g+4>>2]=b+4;r=+y}else{r=0}M[c+8>>3]=r;k=k+1|0;if((i|0)!=(k|0)){continue}break}c=a+236|0;k=H[c>>2];de:{if(!k){break de}b=c;while(1){d=q>>>0>K[k+16>>2];b=d?b:k;k=H[(d<<2)+k>>2];if(k){continue}break}if((b|0)==(c|0)|q>>>0>2]){break de}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Zd}if((d|0)!=2){break de}p=H[b+20>>2];if(!p){break de}b=H[a+120>>2];H[197455]=0;i=p+4|0;H[b+12>>2]=i;b=H[197455];H[197455]=0;if((b|0)==1){break Zd}c=H[p+28>>2];if(c){b=H[a+120>>2];H[197455]=0;H[b+8>>2]=c+4;b=H[197455];H[197455]=0;if((b|0)==1){break Zd}}H[E+40>>2]=0;H[E+32>>2]=0;H[E+36>>2]=0;ee:{fe:{ge:{he:{ie:{je:{ke:{g=(f|0)==(v|0);if(!g){le:{u=f-v|0;me:{if((u|0)<0){H[197455]=0;ia(1869,E+32|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Td}break me}H[197455]=0;c=aa(899,u|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break le}}k=$()|0;_()|0;a=H[E+32>>2];if(!a){break Ud}H[E+36>>2]=a;Kb(a);break Ud}H[E+32>>2]=c;l=u>>4;H[E+40>>2]=c+(l<<4);o=Ob(c,v,u);if(u){H[E+72>>2]=0;H[E+64>>2]=0;H[E+68>>2]=0;c=(o+u|0)-o|0;if((c|0)<0){H[197455]=0;ia(1869,E- -64|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Td}break Wd}H[197455]=0;j=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Wd}m=c>>4;b=m>>>0>1?m:1;f=b&3;d=0;k=0;if(b-1>>>0>=3){e=b&-4;h=0;while(1){t=k<<4;c=t+j|0;s=o+t|0;b=H[s+4>>2];H[c>>2]=H[s>>2];H[c+4>>2]=b;b=H[s+12>>2];H[c+8>>2]=H[s+8>>2];H[c+12>>2]=b;b=t|16;c=b+j|0;s=b+o|0;b=H[s+12>>2];H[c+8>>2]=H[s+8>>2];H[c+12>>2]=b;b=H[s+4>>2];H[c>>2]=H[s>>2];H[c+4>>2]=b;b=t|32;c=b+j|0;s=b+o|0;b=H[s+12>>2];H[c+8>>2]=H[s+8>>2];H[c+12>>2]=b;b=H[s+4>>2];H[c>>2]=H[s>>2];H[c+4>>2]=b;b=t|48;c=b+j|0;s=b+o|0;b=H[s+12>>2];H[c+8>>2]=H[s+8>>2];H[c+12>>2]=b;b=H[s+4>>2];H[c>>2]=H[s>>2];H[c+4>>2]=b;k=k+4|0;h=h+4|0;if((e|0)!=(h|0)){continue}break}}if(f){while(1){b=k<<4;c=b+j|0;e=b+o|0;b=H[e+4>>2];H[c>>2]=H[e>>2];H[c+4>>2]=b;b=H[e+12>>2];H[c+8>>2]=H[e+8>>2];H[c+12>>2]=b;k=k+1|0;d=d+1|0;if((f|0)!=(d|0)){continue}break}}c=m<<4;if(c){w=M[j+8>>3];r=M[j>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break $d}b=(c+j|0)-j|0;if(b>>>0>=17){b=b>>4;c=b>>>0>2?b:2;k=1;while(1){b=j+(k<<4)|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break $d}k=k+1|0;if((c|0)!=(k|0)){continue}break}}if(n&8192){H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break $d}}H[197455]=0;ka(1872,a|0,1,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break $d}}Kb(j)}H[E+36>>2]=o;Kb(o);j=H[a+208>>2];if(!j){break ee}f=0;H[E+8>>2]=0;H[E>>2]=0;H[E+4>>2]=0;if(g){break he}if((u|0)>=0){break ke}H[197455]=0;ia(1869,E|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Td}break je}j=H[a+208>>2];if(!j){break ee}f=0;H[E+8>>2]=0;H[E>>2]=0;H[E+4>>2]=0;break he}H[197455]=0;f=aa(899,u|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break ie}}k=$()|0;_()|0;f=H[E>>2];if(f){break Xd}break Ud}H[E>>2]=f;H[E+8>>2]=(l<<4)+f;s=Ob(f,v,u);b=s+u|0;H[E+4>>2]=b;if(u){break ge}}H[E+24>>2]=0;H[E+16>>2]=0;H[E+20>>2]=0;break fe}H[E+72>>2]=0;H[E+64>>2]=0;H[E+68>>2]=0;c=b-s|0;if((c|0)<0){H[197455]=0;ia(1869,E- -64|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Td}break Yd}H[197455]=0;t=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Yd}g=c>>4;b=g>>>0>1?g:1;l=b&3;d=0;k=0;if(b-1>>>0>=3){e=b&-4;h=0;while(1){n=k<<4;c=n+t|0;m=n+s|0;b=H[m+4>>2];H[c>>2]=H[m>>2];H[c+4>>2]=b;b=H[m+12>>2];H[c+8>>2]=H[m+8>>2];H[c+12>>2]=b;b=n|16;c=b+t|0;m=b+s|0;b=H[m+12>>2];H[c+8>>2]=H[m+8>>2];H[c+12>>2]=b;b=H[m+4>>2];H[c>>2]=H[m>>2];H[c+4>>2]=b;b=n|32;c=b+t|0;m=b+s|0;b=H[m+12>>2];H[c+8>>2]=H[m+8>>2];H[c+12>>2]=b;b=H[m+4>>2];H[c>>2]=H[m>>2];H[c+4>>2]=b;b=n|48;c=b+t|0;m=b+s|0;b=H[m+12>>2];H[c+8>>2]=H[m+8>>2];H[c+12>>2]=b;b=H[m+4>>2];H[c>>2]=H[m>>2];H[c+4>>2]=b;k=k+4|0;h=h+4|0;if((e|0)!=(h|0)){continue}break}}if(l){while(1){b=k<<4;c=b+t|0;e=b+s|0;b=H[e+4>>2];H[c>>2]=H[e>>2];H[c+4>>2]=b;b=H[e+12>>2];H[c+8>>2]=H[e+8>>2];H[c+12>>2]=b;k=k+1|0;d=d+1|0;if((l|0)!=(d|0)){continue}break}}H[E+16>>2]=t;b=t+(g<<4)|0;H[E+24>>2]=b;H[E+20>>2]=b}b=H[H[j>>2]+540>>2];H[197455]=0;ga(b|0,j|0,q|0,E+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break _d}b=H[E+16>>2];if(b){H[E+20>>2]=b;Kb(b)}if(!f){break ee}H[E+4>>2]=f;Kb(f)}b=H[p+28>>2];if(b){c=H[a+120>>2];H[197455]=0;if(H[c+8>>2]==(b+4|0)){H[c+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Zd}}b=H[a+120>>2];H[197455]=0;if((i|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Zd}F[a+213|0]=1}Kb(v)}xb=E+80|0;break Sd}k=$()|0;_()|0;Kb(j);break Vd}k=$()|0;_()|0;a=H[E+16>>2];if(a){H[E+20>>2]=a;Kb(a)}if(!f){break Ud}break Xd}k=$()|0;_()|0;break Ud}k=$()|0;_()|0;a=H[E+64>>2];if(!a){break Xd}H[E+68>>2]=a;Kb(a)}H[E+4>>2]=f;Kb(f);break Ud}k=$()|0;_()|0;a=H[E+64>>2];if(!a){break Vd}H[E+68>>2]=a;Kb(a)}H[E+36>>2]=o;Kb(o)}Kb(v);ea(k|0);X()}X()}}F[a+213|0]=1;break k;case 20:v=0;f=xb-48|0;xb=f;b=H[H[a>>2]-12>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){v=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}b=j&65535;ne:{oe:{pe:{qe:{re:{c=a+236|0;e=H[c>>2];se:{te:{if(!e){break te}g=b&255;b=c;while(1){d=g>>>0>K[e+16>>2];b=d?b:e;e=H[(d<<2)+e>>2];if(e){continue}break}if((b|0)==(c|0)|g>>>0>2]){break te}d=H[b+20>>2];if((zb[H[H[d>>2]+12>>2]](d)|0)!=3){break te}l=H[b+20>>2];if(!l){break te}e=H[c>>2];if(!e){break se}b=c;while(1){d=K[e+16>>2]>>0;b=d?b:e;e=H[(d<<2)+e>>2];if(e){continue}break}if((b|0)==(c|0)|K[b+16>>2]>v>>>0){break se}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=2){break se}e=H[b+20>>2];if(!e){break se}d=e+4|0;H[H[a+120>>2]+12>>2]=d;b=H[e+28>>2];if(b){H[H[a+120>>2]+8>>2]=b+4}b=f+40|0;H[b>>2]=399272;H[197455]=0;m=f+24|0;H[m+4>>2]=0;H[m+8>>2]=0;H[m+12>>2]=0;H[m>>2]=424816;c=H[197455];H[197455]=0;ue:{if((c|0)!=1){H[197455]=0;i=f+8|0;H[i+4>>2]=0;H[i+8>>2]=0;H[i+12>>2]=0;H[i>>2]=424816;c=H[197455];H[197455]=0;if((c|0)==1){break re}H[197455]=0;wa(1882,b|0,m|0,i|0,l+4|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break qe}b=H[a+208>>2];H[197455]=0;ka(1883,m|0,b|0,1,0);b=H[197455];H[197455]=0;if((b|0)==1){break qe}b=H[a+208>>2];H[197455]=0;ka(1883,i|0,b|0,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break qe}c=H[a+208>>2];if(!c){break ue}b=H[H[c>>2]+544>>2];H[197455]=0;ka(b|0,c|0,g|0,v|0,m|0);b=H[197455];H[197455]=0;if((b|0)!=1){break ue}break qe}e=$()|0;_()|0;break oe}b=H[e+28>>2];if(b){c=H[a+120>>2];H[197455]=0;if(H[c+8>>2]==(b+4|0)){H[c+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break qe}}b=H[a+120>>2];H[197455]=0;if((d|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break qe}oe(i);oe(m)}F[a+213|0]=1}xb=f+48|0;break ne}e=$()|0;_()|0;break pe}e=$()|0;_()|0;oe(i)}oe(m)}ea(e|0);X()}break k;case 16:ve:{if(j&16384){c=j&65535;J=0;z=0;D=0;e=xb-32|0;xb=e;d=H[a>>2]-12|0;b=H[d>>2]+a|0;k=b+8|0;j=H[k>>2];f=H[b+12>>2];if(f>>>0<=j+3>>>0){A=0}else{y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[b+8>>2]=j+4;b=H[d>>2]+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2];A=+y}if(j+3>>>0>>0){y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[k>>2]=j+4;b=H[d>>2]+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2];D=+y}if(j+1>>>0>=f>>>0){w=0}else{b=(I[j|0]|I[j+1|0]<<8)<<16>>16;j=j+2|0;H[k>>2]=j;w=+(b|0)}if(j+1>>>0>>0){b=(I[j|0]|I[j+1|0]<<8)<<16>>16;j=j+2|0;H[k>>2]=j;J=+(b|0)}if(j+1>>>0>=f>>>0){r=0}else{b=(I[j|0]|I[j+1|0]<<8)<<16>>16;j=j+2|0;H[k>>2]=j;r=+(b|0)}if(j+1>>>0>>0){b=(I[j|0]|I[j+1|0]<<8)<<16>>16;H[k>>2]=j+2;z=+(b|0)}b=H[a+208>>2];if(b){M[e+24>>3]=z;M[e+16>>3]=r;M[e+8>>3]=J;M[e>>3]=w;zb[H[H[b>>2]+548>>2]](b,c&255,A,D,e)}xb=e+32|0;break ve}d=j&65535;D=0;l=xb+-64|0;xb=l;H[l+56>>2]=0;H[l+60>>2]=0;H[l+48>>2]=0;H[l+52>>2]=0;H[l+40>>2]=0;H[l+44>>2]=0;H[l+32>>2]=0;H[l+36>>2]=0;e=H[a>>2]-12|0;f=H[e>>2];b=f+a|0;h=b+8|0;j=H[h>>2];c=H[b+12>>2];if(c>>>0<=j+3>>>0){r=0}else{y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[b+8>>2]=j+4;f=H[e>>2];b=f+a|0;c=H[b+12>>2];h=b+8|0;j=H[h>>2];r=+y}if(j+3>>>0>>0){y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[h>>2]=j+4;D=+y;f=H[e>>2]}Ae((f+a|0)+4|0,l+32|0);b=H[a+208>>2];if(b){M[l+24>>3]=M[l+56>>3];M[l+16>>3]=M[l+48>>3];M[l+8>>3]=M[l+40>>3];M[l>>3]=M[l+32>>3];zb[H[H[b>>2]+548>>2]](b,d&255,r,D,l)}xb=l- -64|0}F[a+213|0]=1;break k;case 10:we:{if(j&16384){b=j&65535;s=xb-16|0;xb=s;xe:{ye:{ze:{Ae:{c=H[H[a>>2]-12>>2]+a|0;d=H[c+8>>2];Be:{if(d+3>>>0>=K[c+12>>2]){break Be}e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[c+8>>2]=d+4;if(!e){break Be}c=a+236|0;f=H[c>>2];if(!f){break Be}h=b&255;b=c;while(1){d=h>>>0>K[f+16>>2];b=d?b:f;f=H[(d<<2)+f>>2];if(f){continue}break}if((b|0)==(c|0)|h>>>0>2]){break Be}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=2){break Be}i=H[b+20>>2];if(!i){break Be}g=i+4|0;H[H[a+120>>2]+12>>2]=g;b=H[i+28>>2];if(b){H[H[a+120>>2]+8>>2]=b+4}H[s+8>>2]=0;H[s>>2]=0;H[s+4>>2]=0;Ce:{De:{if(e>>>0>=134217728){H[197455]=0;ia(1884,s|0);a=H[197455];H[197455]=0;if((a|0)==1){break De}X()}H[197455]=0;c=e<<5;d=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Ce}}f=$()|0;_()|0;a=H[s>>2];if(!a){break xe}H[s+4>>2]=a;Kb(a);break xe}H[s>>2]=d;b=c+d|0;H[s+8>>2]=b;Nb(d,0,c);H[s+4>>2]=b;l=e>>>0>1?e:1;c=a+4|0;v=0;while(1){n=c+H[H[a>>2]-12>>2]|0;b=H[n+4>>2];f=H[n+8>>2];Ee:{if(b+1>>>0>=f>>>0){m=0;break Ee}m=(I[b|0]|I[b+1|0]<<8)<<16>>16;b=b+2|0;H[n+4>>2]=b}e=0;Fe:{if(f>>>0<=b+1>>>0){j=0;break Fe}j=(I[b|0]|I[b+1|0]<<8)<<16>>16;b=b+2|0;H[n+4>>2]=b}if(f>>>0>b+1>>>0){e=(I[b|0]|I[b+1|0]<<8)<<16>>16;b=b+2|0;H[n+4>>2]=b}k=0;if(f>>>0>b+1>>>0){k=(I[b|0]|I[b+1|0]<<8)<<16>>16;H[n+4>>2]=b+2}b=v<<5;d=b+d|0;M[d+24>>3]=k<<16>>16;M[d+16>>3]=e<<16>>16;M[d+8>>3]=j<<16>>16;M[d>>3]=m<<16>>16;H[197455]=0;d=H[s>>2];ka(1885,a|0,b+d|0,1,0);b=H[197455];H[197455]=0;if((b|0)==1){break ze}v=v+1|0;if((l|0)!=(v|0)){continue}break}c=H[a+208>>2];if(c){b=H[H[c>>2]+552>>2];H[197455]=0;ga(b|0,c|0,h|0,s|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ae}}b=H[i+28>>2];if(b){c=H[a+120>>2];H[197455]=0;if(H[c+8>>2]==(b+4|0)){H[c+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Ae}}b=H[a+120>>2];H[197455]=0;if((g|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Ae}b=H[s>>2];if(!b){break Be}H[s+4>>2]=b;Kb(b)}xb=s+16|0;break we}f=$()|0;_()|0;d=H[s>>2];break ye}f=$()|0;_()|0}if(!d){break xe}H[s+4>>2]=d;Kb(d);break a}break a}b=j&65535;m=xb-48|0;xb=m;Ge:{He:{Ie:{Je:{Ke:{c=H[H[a>>2]-12>>2]+a|0;d=H[c+8>>2];Le:{if(d+3>>>0>=K[c+12>>2]){break Le}e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[c+8>>2]=d+4;if(!e){break Le}c=a+236|0;k=H[c>>2];if(!k){break Le}i=b&255;b=c;while(1){d=i>>>0>K[k+16>>2];b=d?b:k;k=H[(d<<2)+k>>2];if(k){continue}break}if((b|0)==(c|0)|i>>>0>2]){break Le}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=2){break Le}f=H[b+20>>2];if(!f){break Le}l=f+4|0;H[H[a+120>>2]+12>>2]=l;b=H[f+28>>2];if(b){H[H[a+120>>2]+8>>2]=b+4}H[m+40>>2]=0;H[m+32>>2]=0;H[m+36>>2]=0;Me:{Ne:{if(e>>>0>=134217728){H[197455]=0;ia(1884,m+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break Ne}X()}H[197455]=0;c=e<<5;k=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Me}}b=$()|0;_()|0;a=H[m+32>>2];if(!a){break He}H[m+36>>2]=a;Kb(a);break He}H[m+32>>2]=k;b=c+k|0;H[m+40>>2]=b;Nb(k,0,c);H[m+36>>2]=b;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]=0;H[m+4>>2]=0;e=e>>>0>1?e:1;d=a+4|0;b=0;while(1){c=H[H[a>>2]-12>>2];H[197455]=0;Ae(c+d|0,m);c=H[197455];H[197455]=0;if((c|0)==1){break Je}A=M[m>>3];w=M[m+8>>3];r=M[m+16>>3];c=b<<5;g=c+k|0;M[g+24>>3]=M[m+24>>3];M[g+16>>3]=r;M[g+8>>3]=w;M[g>>3]=A;H[197455]=0;k=H[m+32>>2];ka(1885,a|0,c+k|0,1,0);c=H[197455];H[197455]=0;if((c|0)==1){break Je}b=b+1|0;if((e|0)!=(b|0)){continue}break}c=H[a+208>>2];if(c){b=H[H[c>>2]+552>>2];H[197455]=0;ga(b|0,c|0,i|0,m+32|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ke}}b=H[f+28>>2];if(b){c=H[a+120>>2];H[197455]=0;if(H[c+8>>2]==(b+4|0)){H[c+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Ke}}b=H[a+120>>2];H[197455]=0;if((l|0)==H[b+12>>2]){H[b+12>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Ke}b=H[m+32>>2];if(!b){break Le}H[m+36>>2]=b;Kb(b)}xb=m+48|0;break Ge}b=$()|0;_()|0;k=H[m+32>>2];break Ie}b=$()|0;_()|0}if(!k){break He}H[m+36>>2]=k;Kb(k);ea(b|0);X()}ea(b|0);X()}}F[a+213|0]=1;break k;case 27:u=0;e=0;n=xb-80|0;xb=n;H[n+72>>2]=0;H[n+76>>2]=0;b=n- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[n+56>>2]=0;H[n+60>>2]=0;H[n+48>>2]=0;H[n+52>>2]=0;d=H[a>>2]-12|0;c=H[d>>2]+a|0;o=c+8|0;h=H[o>>2];b=H[c+12>>2];if(b>>>0>h+3>>>0){u=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);H[c+8>>2]=h+4;c=H[d>>2]+a|0;b=H[c+12>>2];o=c+8|0;h=H[o>>2]}if(h+3>>>0>>0){e=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);H[o>>2]=h+4;c=H[d>>2]+a|0;b=H[c+12>>2];o=c+8|0;h=H[o>>2]}f=j&65535;Oe:{Pe:{Qe:{if(h+3>>>0>=b>>>0){break Qe}m=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);H[o>>2]=h+4;if(!m){break Qe}Ae((H[d>>2]+a|0)+4|0,n+48|0);c=m+1|0;b=c+c|0;i=Qb(b>>>0>>0?-1:b);G[i+(m<<1)>>1]=0;g=H[H[a>>2]-12>>2]+a|0;l=H[g+12>>2];b=H[g+8>>2];c=(l-b|0)/2|0;d=c>>>0>>0?c:m;Re:{if(!d){break Re}if(l>>>0>b+1>>>0){h=0;if((d|0)!=1){c=d&-2;v=0;while(1){Se:{if(l>>>0<=b+1>>>0){o=0;break Se}o=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[g+8>>2]=b}G[i+(h<<1)>>1]=o;o=0;if(l>>>0>b+1>>>0){o=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[g+8>>2]=b}G[i+((h|1)<<1)>>1]=o;h=h+2|0;v=v+2|0;if((c|0)!=(v|0)){continue}break}}if(!(d&1)){break Re}o=0;if(l>>>0>b+1>>>0){o=I[b|0]|I[b+1|0]<<8;H[g+8>>2]=b+2}G[i+(h<<1)>>1]=o;break Re}Nb(i,0,d<<1)}H[n+40>>2]=0;H[n+32>>2]=0;H[n+36>>2]=0;H[197455]=0;ga(1887,n+16|0,i|0,m|0);b=H[197455];H[197455]=0;if((b|0)==1){break Pe}H[n+40>>2]=H[n+24>>2];b=H[n+20>>2];H[n+32>>2]=H[n+16>>2];H[n+36>>2]=b;Kb(i);Te:{if(!H[a+208>>2]){break Te}c=a+236|0;h=H[c>>2];if(!h){break Te}i=f&255;b=c;while(1){d=i>>>0>K[h+16>>2];b=d?b:h;h=H[(d<<2)+h>>2];if(h){continue}break}if((b|0)==(c|0)|i>>>0>2]){break Te}l=H[b+20>>2];d=H[H[l>>2]+12>>2];H[197455]=0;l=aa(d|0,l|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Pe}if((l|0)!=6){break Te}d=H[b+20>>2];if(!d){break Te}b=H[a+120>>2];v=0;H[197455]=0;g=d+4|0;H[b+16>>2]=g;b=H[197455];H[197455]=0;if((b|0)==1){break Pe}h=H[c>>2];Ue:{if(!h){break Ue}b=c;while(1){d=K[h+16>>2]>>0;b=d?b:h;h=H[(d<<2)+h>>2];if(h){continue}break}if((b|0)==(c|0)|K[b+16>>2]>e>>>0){break Ue}l=H[b+20>>2];d=H[H[l>>2]+12>>2];H[197455]=0;l=aa(d|0,l|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Pe}if((l|0)!=7){break Ue}v=H[b+20>>2]}b=H[a+120>>2];H[197455]=0;l=H[b+600>>2];b=H[197455];H[197455]=0;if((b|0)==1){break Pe}Ve:{if(!v){break Ve}h=0;We:{Xe:{switch(H[v+8>>2]-1|0){case 0:M[n+48>>3]=M[n+48>>3]+M[n+64>>3]*.5;h=6;break We;case 1:break Xe;default:break We}}M[n+48>>3]=M[n+64>>3]+M[n+48>>3];h=2}Ye:{Ze:{_e:{switch(H[v+12>>2]-1|0){case 0:D=M[n+72>>3]*.5;z=M[n+56>>3];h=h|1536;break Ze;case 1:break _e;default:break Ye}}D=M[n+56>>3];z=M[n+72>>3];h=h|512}M[n+56>>3]=z+D}b=H[a+120>>2];H[197455]=0;H[b+600>>2]=h;b=H[197455];H[197455]=0;if((b|0)!=1){break Ve}break Pe}$e:{if(f<<16>>16<0){F[n+19|0]=u>>>24;F[n+16|0]=u>>>16;b=u<<8|(u&65280)>>>8;F[n+17|0]=b;F[n+18|0]=b>>>8;c=H[a+120>>2];H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break Pe}H[n+12>>2]=I[c+592|0]|I[c+593|0]<<8|(I[c+594|0]<<16|I[c+595|0]<<24);b=H[a+120>>2];H[197455]=0;F[b+592|0]=I[n+16|0];F[b+593|0]=I[n+17|0];F[b+594|0]=I[n+18|0];F[b+595|0]=I[n+19|0];b=H[197455];H[197455]=0;if((b|0)==1){break Pe}c=H[a+208>>2];b=H[H[c>>2]+20>>2];H[197455]=0;d=b;b=I[n+43|0];Qa(d|0,c|0,n+32|0,(b<<24>>24<0?H[n+36>>2]:b)|0,+M[n+48>>3],+M[n+56>>3],0,2,1,1);break $e}h=H[c>>2];if(!h){break Te}b=c;while(1){d=K[h+16>>2]>>0;b=d?b:h;h=H[(d<<2)+h>>2];if(h){continue}break}if((b|0)==(c|0)|K[b+16>>2]>u>>>0){break Te}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Pe}if((d|0)!=1){break Te}b=H[b+20>>2];if(!b){break Te}F[n+18|0]=I[b+8|0];F[n+17|0]=I[b+9|0];F[n+16|0]=I[b+10|0];F[n+19|0]=I[b+11|0];c=H[a+120>>2];H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break Pe}H[n+12>>2]=I[c+592|0]|I[c+593|0]<<8|(I[c+594|0]<<16|I[c+595|0]<<24);b=H[a+120>>2];H[197455]=0;F[b+592|0]=I[n+16|0];F[b+593|0]=I[n+17|0];F[b+594|0]=I[n+18|0];F[b+595|0]=I[n+19|0];b=H[197455];H[197455]=0;if((b|0)==1){break Pe}c=H[a+208>>2];b=H[H[c>>2]+20>>2];H[197455]=0;d=b;b=I[n+43|0];r=M[n+48>>3];Qa(d|0,c|0,n+32|0,(b<<24>>24<0?H[n+36>>2]:b)|0,+r,+r,0,2,1,1)}b=H[197455];H[197455]=0;if((b|0)==1){break Pe}c=H[a+208>>2];if(c){b=H[H[c>>2]+556>>2];H[197455]=0;Fa(b|0,c|0,i|0,u|0,e|0,n+32|0,n+48|0);b=H[197455];H[197455]=0;if((b|0)==1){break Pe}}b=H[a+120>>2];H[197455]=0;F[b+592|0]=I[n+12|0];F[b+593|0]=I[n+13|0];F[b+594|0]=I[n+14|0];F[b+595|0]=I[n+15|0];b=H[197455];H[197455]=0;if((b|0)==1){break Pe}b=H[a+120>>2];H[197455]=0;H[b+600>>2]=l;b=H[197455];H[197455]=0;if((b|0)==1){break Pe}b=H[a+120>>2];H[197455]=0;if((g|0)==H[b+16>>2]){H[b+16>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Pe}F[a+213|0]=1}if(F[n+43|0]>=0){break Qe}Kb(H[n+32>>2])}xb=n+80|0;break Oe}a=$()|0;_()|0;if(F[n+43|0]<0){Kb(H[n+32>>2])}break d}break k;case 21:b=j&65535;af:{if(j&2048){f=xb-16|0;xb=f;d=H[a>>2]-12|0;b=H[d>>2]+a|0;h=b+8|0;k=H[h>>2];c=H[b+12>>2];if(c>>>0>k+3>>>0){H[b+8>>2]=k+4;b=H[d>>2]+a|0;c=H[b+12>>2];h=b+8|0;k=H[h>>2]}if(k+3>>>0>>0){H[h>>2]=k+4;b=H[d>>2]+a|0;c=H[b+12>>2];h=b+8|0;k=H[h>>2]}bf:{cf:{if(k+3>>>0>=c>>>0){break cf}b=F[k+3|0];H[h>>2]=k+4;H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;if((b|0)>=0){break cf}H[197455]=0;ia(1867,f|0);a=H[197455];H[197455]=0;if((a|0)!=1){break bf}break f}xb=f+16|0;break af}X()}if(b&16384){f=xb-16|0;xb=f;d=H[a>>2]-12|0;b=H[d>>2]+a|0;h=b+8|0;k=H[h>>2];c=H[b+12>>2];if(c>>>0>k+3>>>0){H[b+8>>2]=k+4;b=H[d>>2]+a|0;c=H[b+12>>2];h=b+8|0;k=H[h>>2]}if(k+3>>>0>>0){H[h>>2]=k+4;b=H[d>>2]+a|0;c=H[b+12>>2];h=b+8|0;k=H[h>>2]}df:{ef:{if(k+3>>>0>=c>>>0){break ef}b=I[k+3|0];H[h>>2]=k+4;H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;if(b>>>0<64){break ef}H[197455]=0;ia(1808,f|0);a=H[197455];H[197455]=0;if((a|0)!=1){break df}break f}xb=f+16|0;break af}X()}f=xb-16|0;xb=f;d=H[a>>2]-12|0;b=H[d>>2]+a|0;h=b+8|0;k=H[h>>2];c=H[b+12>>2];if(c>>>0>k+3>>>0){H[b+8>>2]=k+4;b=H[d>>2]+a|0;c=H[b+12>>2];h=b+8|0;k=H[h>>2]}if(k+3>>>0>>0){H[h>>2]=k+4;b=H[d>>2]+a|0;c=H[b+12>>2];h=b+8|0;k=H[h>>2]}ff:{gf:{hf:{if(k+3>>>0>=c>>>0){break hf}b=I[k+3|0];H[h>>2]=k+4;H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;if(b>>>0<16){break hf}H[197455]=0;ia(1869,f|0);a=H[197455];H[197455]=0;if((a|0)!=1){break gf}break f}xb=f+16|0;break ff}X()}}F[a+213|0]=1;break k;case 13:jf:{if(j&16384){h=0;o=0;u=0;n=xb-128|0;xb=n;c=H[a>>2]-12|0;e=H[c>>2]+a|0;f=e+8|0;b=H[f>>2];d=H[e+12>>2];if(d>>>0>b+3>>>0){h=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+8>>2]=b+4;b=H[c>>2]+a|0;d=H[b+12>>2];f=b+8|0;b=H[f>>2]}if(b+1>>>0>>0){o=(I[b|0]|I[b+1|0]<<8)<<16>>16;b=b+2|0;H[f>>2]=b}v=0;kf:{if(b+1>>>0>=d>>>0){m=0;break kf}m=(I[b|0]|I[b+1|0]<<8)<<16>>16;b=b+2|0;H[f>>2]=b}if(b+1>>>0>>0){v=(I[b|0]|I[b+1|0]<<8)<<16>>16;b=b+2|0;H[f>>2]=b}if(b+1>>>0>>0){u=(I[b|0]|I[b+1|0]<<8)<<16>>16;H[f>>2]=b+2}i=m<<16>>16;f=i+(u<<16>>16)|0;g=o<<16>>16;l=g+(v<<16>>16)|0;lf:{mf:{if((j&65535)<<16>>16<0){H[n+56>>2]=0;H[n+60>>2]=0;b=n- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[n+72>>2]=0;H[n+76>>2]=0;H[n+80>>2]=0;H[n+84>>2]=0;H[n+88>>2]=0;H[n+92>>2]=0;H[n+120>>2]=0;H[n+124>>2]=0;H[n+48>>2]=0;H[n+52>>2]=0;H[n+112>>2]=0;H[n+116>>2]=0;H[n+44>>2]=418012;H[n+40>>2]=417944;H[n+48>>2]=h;b=H[a+120>>2];H[197455]=0;d=n+40|4;H[b+8>>2]=d;b=H[197455];H[197455]=0;if((b|0)==1){break lf}b=H[a+120>>2];H[197455]=0;c=H[b+680>>2];b=H[197455];H[197455]=0;if((b|0)==1){break lf}H[197455]=0;b=(c|0)==1;Ya(1891,a|0,g|0,(b?i:f)|0,l|0,(b?f:i)|0,0,360);b=H[197455];H[197455]=0;if((b|0)==1){break lf}H[197455]=0;ka(1872,a|0,0,1,1);b=H[197455];H[197455]=0;if((b|0)==1){break lf}nf:{c=H[a+208>>2];if(!c){break nf}M[n+32>>3]=u<<16>>16;M[n+24>>3]=v<<16>>16;M[n+16>>3]=m<<16>>16;M[n+8>>3]=o<<16>>16;b=H[H[c>>2]+564>>2];H[197455]=0;ga(b|0,c|0,h|0,n+8|0);b=H[197455];H[197455]=0;if((b|0)!=1){break nf}break lf}b=H[a+120>>2];H[197455]=0;if((d|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break lf}H[n+44>>2]=418012;H[n+40>>2]=417944;if(F[n+127|0]>=0){break mf}Kb(H[n+116>>2]);break mf}c=a+236|0;d=H[c>>2];if(!d){break mf}b=c;while(1){e=K[d+16>>2]>>0;b=e?b:d;d=H[(e<<2)+d>>2];if(d){continue}break}if((b|0)==(c|0)|K[b+16>>2]>h>>>0){break mf}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=1){break mf}b=H[b+20>>2];if(!b){break mf}c=b+4|0;H[H[a+120>>2]+8>>2]=c;of:{if(H[H[a+120>>2]+680>>2]==1){Sf(a,g,i,l,f,0,360);break of}Sf(a,g,f,l,i,0,360)}Rf(a,0,1,1);b=H[a+208>>2];if(b){M[n+64>>3]=u<<16>>16;M[n+56>>3]=v<<16>>16;M[n+48>>3]=m<<16>>16;M[n+40>>3]=o<<16>>16;zb[H[H[b>>2]+564>>2]](b,h,n+40|0)}b=H[a+120>>2];if((c|0)==H[b+8>>2]){H[b+8>>2]=0}}xb=n+128|0;break jf}a=$()|0;_()|0;H[n+44>>2]=418012;H[n+40>>2]=417944;if(F[n+127|0]<0){Kb(H[n+116>>2])}break d}d=j&65535;m=0;i=xb-160|0;xb=i;H[i+152>>2]=0;H[i+156>>2]=0;H[i+144>>2]=0;H[i+148>>2]=0;H[i+136>>2]=0;H[i+140>>2]=0;H[i+128>>2]=0;H[i+132>>2]=0;c=H[a>>2]-12|0;b=H[c>>2];e=b+a|0;l=H[e+8>>2];if(l+3>>>0>2]){m=I[l|0]|I[l+1|0]<<8|(I[l+2|0]<<16|I[l+3|0]<<24);H[e+8>>2]=l+4;b=H[c>>2]}Ae((a+b|0)+4|0,i+128|0);A=M[i+136>>3];r=A+M[i+152>>3];pf:{if(P(r)<2147483648){g=~~r;break pf}g=-2147483648}c=d<<16;w=M[i+128>>3];r=w+M[i+144>>3];qf:{if(P(r)<2147483648){e=~~r;break qf}e=-2147483648}c=c>>16;if(P(A)<2147483648){l=~~A}else{l=-2147483648}c=(c|0)>=0;if(P(w)<2147483648){d=~~w}else{d=-2147483648}rf:{sf:{tf:{if(!c){H[i+56>>2]=0;H[i+60>>2]=0;b=i- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[i+72>>2]=0;H[i+76>>2]=0;H[i+80>>2]=0;H[i+84>>2]=0;H[i+88>>2]=0;H[i+92>>2]=0;H[i+120>>2]=0;H[i+124>>2]=0;H[i+48>>2]=0;H[i+52>>2]=0;H[i+112>>2]=0;H[i+116>>2]=0;H[i+44>>2]=418012;H[i+40>>2]=417944;H[i+48>>2]=m;b=H[a+120>>2];H[197455]=0;f=i+40|4;H[b+8>>2]=f;b=H[197455];H[197455]=0;if((b|0)==1){break sf}b=H[a+120>>2];H[197455]=0;c=H[b+680>>2];b=H[197455];H[197455]=0;if((b|0)==1){break sf}H[197455]=0;b=(c|0)==1;Ya(1891,a|0,d|0,(b?l:g)|0,e|0,(b?g:l)|0,0,360);b=H[197455];H[197455]=0;if((b|0)==1){break sf}H[197455]=0;ka(1872,a|0,0,1,1);b=H[197455];H[197455]=0;if((b|0)==1){break sf}uf:{c=H[a+208>>2];if(!c){break uf}M[i+32>>3]=M[i+152>>3];M[i+24>>3]=M[i+144>>3];M[i+16>>3]=M[i+136>>3];M[i+8>>3]=M[i+128>>3];b=H[H[c>>2]+564>>2];H[197455]=0;ga(b|0,c|0,m|0,i+8|0);b=H[197455];H[197455]=0;if((b|0)!=1){break uf}break sf}b=H[a+120>>2];H[197455]=0;if((f|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break sf}H[i+44>>2]=418012;H[i+40>>2]=417944;if(F[i+127|0]>=0){break tf}Kb(H[i+116>>2]);break tf}c=a+236|0;k=H[c>>2];if(!k){break tf}b=c;while(1){f=K[k+16>>2]>>0;b=f?b:k;k=H[(f<<2)+k>>2];if(k){continue}break}if((b|0)==(c|0)|K[b+16>>2]>m>>>0){break tf}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=1){break tf}b=H[b+20>>2];if(!b){break tf}c=b+4|0;H[H[a+120>>2]+8>>2]=c;vf:{if(H[H[a+120>>2]+680>>2]==1){Sf(a,d,l,e,g,0,360);break vf}Sf(a,d,g,e,l,0,360)}Rf(a,0,1,1);b=H[a+208>>2];if(b){M[i+64>>3]=M[i+152>>3];M[i+56>>3]=M[i+144>>3];M[i+48>>3]=M[i+136>>3];M[i+40>>3]=M[i+128>>3];zb[H[H[b>>2]+564>>2]](b,m,i+40|0)}b=H[a+120>>2];if((c|0)==H[b+8>>2]){H[b+8>>2]=0}}xb=i+160|0;break rf}a=$()|0;_()|0;H[i+44>>2]=418012;H[i+40>>2]=417944;if(F[i+127|0]<0){Kb(H[i+116>>2])}break d}}F[a+213|0]=1;break k;case 19:l=j&65535;j=0;i=xb-96|0;xb=i;b=H[H[a>>2]-12>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){j=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}wf:{xf:{c=a+236|0;e=H[c>>2];yf:{if(!e){break yf}f=l&255;b=c;while(1){d=f>>>0>K[e+16>>2];b=d?b:e;e=H[(d<<2)+e>>2];if(e){continue}break}if((b|0)==(c|0)|f>>>0>2]){break yf}d=H[b+20>>2];if((zb[H[H[d>>2]+12>>2]](d)|0)!=3){break yf}g=H[b+20>>2];if(!g){break yf}zf:{if(l<<16>>16<0){H[i+24>>2]=0;H[i+28>>2]=0;H[i+32>>2]=0;H[i+36>>2]=0;H[i+40>>2]=0;H[i+44>>2]=0;H[i+48>>2]=0;H[i+52>>2]=0;H[i+56>>2]=0;H[i+60>>2]=0;H[i+88>>2]=0;H[i+92>>2]=0;H[i+16>>2]=0;H[i+20>>2]=0;H[i+80>>2]=0;H[i+84>>2]=0;H[i+12>>2]=418012;H[i+8>>2]=417944;H[i+16>>2]=j;b=H[a+120>>2];H[197455]=0;c=i+8|4;H[b+8>>2]=c;b=H[197455];H[197455]=0;if((b|0)==1){break xf}b=H[a+208>>2];H[197455]=0;ka(1883,g+4|0,b|0,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break xf}d=H[a+208>>2];if(d){b=H[H[d>>2]+568>>2];H[197455]=0;ka(b|0,d|0,f|0,j|0,g|0);b=H[197455];H[197455]=0;if((b|0)==1){break xf}}b=H[a+120>>2];H[197455]=0;if((c|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break xf}H[i+12>>2]=418012;H[i+8>>2]=417944;if(F[i+95|0]>=0){break zf}Kb(H[i+84>>2]);break zf}e=H[c>>2];if(!e){break yf}b=c;while(1){d=K[e+16>>2]>>0;b=d?b:e;e=H[(d<<2)+e>>2];if(e){continue}break}if((b|0)==(c|0)|K[b+16>>2]>j>>>0){break yf}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=1){break yf}b=H[b+20>>2];if(!b){break yf}c=b+4|0;H[H[a+120>>2]+8>>2]=c;bz(g+4|0,H[a+208>>2],0,1);b=H[a+208>>2];if(b){zb[H[H[b>>2]+568>>2]](b,f,j,g)}b=H[a+120>>2];if((c|0)==H[b+8>>2]){H[b+8>>2]=0}}F[a+213|0]=1}xb=i+96|0;break wf}a=$()|0;_()|0;H[i+12>>2]=418012;H[i+8>>2]=417944;if(F[i+95|0]<0){Kb(H[i+84>>2])}break d}break k;case 15:Af:{if(j&16384){J=0;z=0;b=0;D=0;e=xb-32|0;xb=e;d=H[a>>2]-12|0;c=H[d>>2]+a|0;k=c+8|0;j=H[k>>2];f=H[c+12>>2];if(f>>>0>j+3>>>0){b=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);H[c+8>>2]=j+4;c=H[d>>2]+a|0;f=H[c+12>>2];k=c+8|0;j=H[k>>2]}if(j+3>>>0>=f>>>0){A=0}else{y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[k>>2]=j+4;c=H[d>>2]+a|0;f=H[c+12>>2];k=c+8|0;j=H[k>>2];A=+y}if(j+3>>>0>>0){y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[k>>2]=j+4;c=H[d>>2]+a|0;f=H[c+12>>2];k=c+8|0;j=H[k>>2];D=+y}if(j+1>>>0>=f>>>0){w=0}else{c=(I[j|0]|I[j+1|0]<<8)<<16>>16;j=j+2|0;H[k>>2]=j;w=+(c|0)}if(j+1>>>0>>0){c=(I[j|0]|I[j+1|0]<<8)<<16>>16;j=j+2|0;H[k>>2]=j;J=+(c|0)}if(j+1>>>0>=f>>>0){r=0}else{c=(I[j|0]|I[j+1|0]<<8)<<16>>16;j=j+2|0;H[k>>2]=j;r=+(c|0)}if(j+1>>>0>>0){c=(I[j|0]|I[j+1|0]<<8)<<16>>16;H[k>>2]=j+2;z=+(c|0)}c=H[a+208>>2];if(c){M[e+24>>3]=z;M[e+16>>3]=r;M[e+8>>3]=J;M[e>>3]=w;zb[H[H[c>>2]+572>>2]](c,b,A,D,e)}xb=e+32|0;break Af}b=0;D=0;l=xb+-64|0;xb=l;H[l+56>>2]=0;H[l+60>>2]=0;H[l+48>>2]=0;H[l+52>>2]=0;H[l+40>>2]=0;H[l+44>>2]=0;H[l+32>>2]=0;H[l+36>>2]=0;e=H[a>>2]-12|0;c=H[e>>2];d=c+a|0;k=d+8|0;j=H[k>>2];f=H[d+12>>2];if(f>>>0>j+3>>>0){b=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);H[d+8>>2]=j+4;c=H[e>>2];d=c+a|0;f=H[d+12>>2];k=d+8|0;j=H[k>>2]}if(j+3>>>0>=f>>>0){r=0}else{y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[k>>2]=j+4;c=H[e>>2];d=c+a|0;f=H[d+12>>2];k=d+8|0;j=H[k>>2];r=+y}if(j+3>>>0>>0){y=(x(2,I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24)),B());H[k>>2]=j+4;D=+y;c=H[e>>2]}Ae((a+c|0)+4|0,l+32|0);c=H[a+208>>2];if(c){M[l+24>>3]=M[l+56>>3];M[l+16>>3]=M[l+48>>3];M[l+8>>3]=M[l+40>>3];M[l>>3]=M[l+32>>3];zb[H[H[c>>2]+572>>2]](c,b,r,D,l)}xb=l- -64|0}F[a+213|0]=1;break k;case 11:i=j&65535;Bf:{if(j&2048){u=0;d=xb-144|0;xb=d;c=H[a>>2]-12|0;e=H[c>>2]+a|0;b=e+8|0;f=H[b>>2];v=H[e+12>>2];if(v>>>0>f+3>>>0){u=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[e+8>>2]=f+4;b=H[c>>2]+a|0;v=H[b+12>>2];b=b+8|0;f=H[b>>2]}Cf:{Df:{Ef:{Ff:{Gf:{Hf:{If:{Jf:{if(f+3>>>0>=v>>>0){break Jf}p=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[b>>2]=f+4;if(p>>>0<2){break Jf}H[d+136>>2]=0;H[d+128>>2]=0;H[d+132>>2]=0;if((p|0)<0){H[197455]=0;ia(1867,d+128|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}break Cf}H[197455]=0;n=aa(899,p|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}H[d+128>>2]=n;o=0;H[d+96>>2]=0;Kf:{if(!p){H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;break Kf}H[197455]=0;c=aa(899,p|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){f=$()|0;_()|0;a=H[d+96>>2];if(!a){break Df}H[d+100>>2]=a;Kb(a);break Df}H[d+96>>2]=c;H[d+104>>2]=c+p;h=Ob(c,n,p);H[d+16>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;if(p>>>0>=268435456){H[197455]=0;ia(1869,d+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Cf}break Ef}H[197455]=0;c=p<<4;o=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Ef}f=c+o|0;Lf:{if(p>>>0<2){break Lf}b=1;c=p-1|0;l=c&1;if((p|0)!=2){e=c&-2;v=0;while(1){s=(b<<4)+o|0;m=s-16|0;g=H[m+4>>2];c=H[m>>2];H[s+16>>2]=c;H[s+20>>2]=g;H[s>>2]=c;H[s+4>>2]=g;g=H[m+12>>2];c=H[m+8>>2];H[s+24>>2]=c;H[s+28>>2]=g;H[s+8>>2]=c;H[s+12>>2]=g;b=b+2|0;v=v+2|0;if((e|0)!=(v|0)){continue}break}}if(!l){break Lf}e=(b<<4)+o|0;c=e-16|0;b=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=b;b=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=b}H[d+120>>2]=f;H[d+116>>2]=f;H[d+112>>2]=o;H[d+100>>2]=h;Kb(h)}Mf:{if(i<<16>>16<0){H[d+24>>2]=0;H[d+28>>2]=0;H[d+32>>2]=0;H[d+36>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;H[d+88>>2]=0;H[d+92>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[d+80>>2]=0;H[d+84>>2]=0;H[d+12>>2]=418012;H[d+8>>2]=417944;H[d+16>>2]=u;b=H[a+120>>2];H[197455]=0;c=d+8|4;H[b+8>>2]=c;b=H[197455];H[197455]=0;if((b|0)==1){break Gf}w=M[o+8>>3];r=M[o>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break Gf}f=1;Nf:{if(p>>>0>1){while(1){b=(f<<4)+o|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break Nf}f=f+1|0;if((p|0)!=(f|0)){continue}break}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break Gf}H[197455]=0;ka(1872,a|0,0,1,1);b=H[197455];H[197455]=0;if((b|0)==1){break Gf}e=H[a+208>>2];if(e){b=H[H[e>>2]+576>>2];H[197455]=0;ga(b|0,e|0,u|0,d+112|0);b=H[197455];H[197455]=0;if((b|0)==1){break Gf}}b=H[a+120>>2];H[197455]=0;if((c|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Gf}H[d+12>>2]=418012;H[d+8>>2]=417944;if(F[d+95|0]>=0){break Mf}Kb(H[d+84>>2]);break Mf}break Gf}c=a+236|0;f=H[c>>2];if(!f){break Mf}b=c;while(1){e=K[f+16>>2]>>0;b=e?b:f;f=H[(e<<2)+f>>2];if(f){continue}break}if((b|0)==(c|0)|K[b+16>>2]>u>>>0){break Mf}e=H[b+20>>2];c=H[H[e>>2]+12>>2];H[197455]=0;e=aa(c|0,e|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break If}if((e|0)!=1){break Mf}c=H[b+20>>2];if(!c){break Mf}b=H[a+120>>2];H[197455]=0;c=c+4|0;H[b+8>>2]=c;b=H[197455];H[197455]=0;if((b|0)==1){break If}w=M[o+8>>3];r=M[o>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break If}f=1;if(p>>>0>1){while(1){b=(f<<4)+o|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break Hf}f=f+1|0;if((p|0)!=(f|0)){continue}break}}e=H[a+208>>2];if(e){b=H[H[e>>2]+576>>2];H[197455]=0;ga(b|0,e|0,u|0,d+112|0);b=H[197455];H[197455]=0;if((b|0)==1){break If}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break If}H[197455]=0;ka(1872,a|0,0,1,1);b=H[197455];H[197455]=0;if((b|0)==1){break If}b=H[a+120>>2];H[197455]=0;if((c|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break If}}b=H[d+112>>2];if(b){H[d+116>>2]=b;Kb(b)}Kb(n)}xb=d+144|0;break Bf}f=$()|0;_()|0;break Ff}f=$()|0;_()|0;break Ff}f=$()|0;_()|0;H[d+12>>2]=418012;H[d+8>>2]=417944;if(F[d+95|0]>=0){break Ff}Kb(H[d+84>>2])}a=H[d+112>>2];if(!a){break Df}H[d+116>>2]=a;Kb(a);break Df}f=$()|0;_()|0;a=H[d+8>>2];if(a){H[d+12>>2]=a;Kb(a)}H[d+100>>2]=h;Kb(h)}Kb(n);break a}X()}if(i&16384){g=j&65535;v=0;d=xb-144|0;xb=d;f=H[a>>2]-12|0;c=H[f>>2]+a|0;b=c+8|0;h=H[b>>2];j=H[c+12>>2];if(j>>>0>h+3>>>0){v=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);H[c+8>>2]=h+4;b=H[f>>2]+a|0;j=H[b+12>>2];b=b+8|0;h=H[b>>2]}Of:{Pf:{Qf:{Rf:{Sf:{Tf:{Uf:{Vf:{if(h+3>>>0>=j>>>0){break Vf}s=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);H[b>>2]=h+4;if(s>>>0<2){break Vf}H[d+136>>2]=0;H[d+128>>2]=0;H[d+132>>2]=0;if(s>>>0>=1073741824){H[197455]=0;ia(1808,d+128|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}break Of}H[197455]=0;c=s<<2;e=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}H[d+128>>2]=e;m=c+e|0;H[d+136>>2]=m;h=0;n=Nb(e,0,c);H[d+132>>2]=m;e=a+4|0;while(1){l=n+(h<<2)|0;i=e+H[f>>2]|0;o=H[i+4>>2];c=H[i+8>>2];Wf:{if(o+1>>>0>=c>>>0){b=0;break Wf}b=I[o|0]|I[o+1|0]<<8;o=o+2|0;H[i+4>>2]=o}G[l>>1]=b;b=0;if(c>>>0>o+1>>>0){b=I[o|0]|I[o+1|0]<<8;H[i+4>>2]=o+2}G[l+2>>1]=b;h=h+1|0;if((s|0)!=(h|0)){continue}break}o=0;H[d+104>>2]=0;H[d+96>>2]=0;H[d+100>>2]=0;Xf:{if((n|0)==(m|0)){H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;break Xf}Yf:{e=m-n|0;Zf:{if((e|0)<0){H[197455]=0;ia(1808,d+96|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Of}break Zf}H[197455]=0;c=aa(899,e|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Yf}}h=$()|0;_()|0;a=H[d+96>>2];if(!a){break Pf}H[d+100>>2]=a;Kb(a);break Pf}H[d+96>>2]=c;H[d+104>>2]=c+(e>>2<<2);i=Ob(c,n,e);_f:{if(e){H[d+16>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;c=(e+i|0)-i|0;if(c>>>0>=1073741821){H[197455]=0;ia(1869,d+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Of}break Qf}H[197455]=0;o=aa(899,c<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Qf}f=c>>2;b=f>>>0>1?f:1;l=b&1;h=0;if(c>>>0>=8){e=b&-2;j=0;while(1){c=(h<<4)+o|0;b=i+(h<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1];b=h|1;c=(b<<4)+o|0;b=i+(b<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1];h=h+2|0;j=j+2|0;if((e|0)!=(j|0)){continue}break}}if(l){c=(h<<4)+o|0;b=i+(h<<2)|0;M[c>>3]=G[b>>1];M[c+8>>3]=G[b+2>>1]}H[d+112>>2]=o;b=(f<<4)+o|0;H[d+120>>2]=b;H[d+116>>2]=b;break _f}H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0}H[d+100>>2]=i;Kb(i)}$f:{if(g<<16>>16<0){H[d+24>>2]=0;H[d+28>>2]=0;H[d+32>>2]=0;H[d+36>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;H[d+88>>2]=0;H[d+92>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[d+80>>2]=0;H[d+84>>2]=0;H[d+12>>2]=418012;H[d+8>>2]=417944;H[d+16>>2]=v;b=H[a+120>>2];H[197455]=0;c=d+8|4;H[b+8>>2]=c;b=H[197455];H[197455]=0;if((b|0)==1){break Sf}w=M[o+8>>3];r=M[o>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break Sf}h=1;ag:{if(s>>>0>1){while(1){b=(h<<4)+o|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break ag}h=h+1|0;if((s|0)!=(h|0)){continue}break}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break Sf}H[197455]=0;ka(1872,a|0,0,1,1);b=H[197455];H[197455]=0;if((b|0)==1){break Sf}e=H[a+208>>2];if(e){b=H[H[e>>2]+576>>2];H[197455]=0;ga(b|0,e|0,v|0,d+112|0);b=H[197455];H[197455]=0;if((b|0)==1){break Sf}}b=H[a+120>>2];H[197455]=0;if((c|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Sf}H[d+12>>2]=418012;H[d+8>>2]=417944;if(F[d+95|0]>=0){break $f}Kb(H[d+84>>2]);break $f}break Sf}c=a+236|0;h=H[c>>2];if(!h){break $f}b=c;while(1){e=K[h+16>>2]>>0;b=e?b:h;h=H[(e<<2)+h>>2];if(h){continue}break}if((b|0)==(c|0)|K[b+16>>2]>v>>>0){break $f}e=H[b+20>>2];c=H[H[e>>2]+12>>2];H[197455]=0;e=aa(c|0,e|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Uf}if((e|0)!=1){break $f}c=H[b+20>>2];if(!c){break $f}b=H[a+120>>2];H[197455]=0;c=c+4|0;H[b+8>>2]=c;b=H[197455];H[197455]=0;if((b|0)==1){break Uf}w=M[o+8>>3];r=M[o>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break Uf}h=1;if(s>>>0>1){while(1){b=(h<<4)+o|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break Tf}h=h+1|0;if((s|0)!=(h|0)){continue}break}}e=H[a+208>>2];if(e){b=H[H[e>>2]+576>>2];H[197455]=0;ga(b|0,e|0,v|0,d+112|0);b=H[197455];H[197455]=0;if((b|0)==1){break Uf}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break Uf}H[197455]=0;ka(1872,a|0,0,1,1);b=H[197455];H[197455]=0;if((b|0)==1){break Uf}b=H[a+120>>2];H[197455]=0;if((c|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Uf}}b=H[d+112>>2];if(b){H[d+116>>2]=b;Kb(b)}Kb(n)}xb=d+144|0;break Bf}h=$()|0;_()|0;break Rf}h=$()|0;_()|0;break Rf}h=$()|0;_()|0;H[d+12>>2]=418012;H[d+8>>2]=417944;if(F[d+95|0]>=0){break Rf}Kb(H[d+84>>2])}a=H[d+112>>2];if(!a){break Pf}H[d+116>>2]=a;Kb(a);break Pf}h=$()|0;_()|0;a=H[d+8>>2];if(a){H[d+12>>2]=a;Kb(a)}H[d+100>>2]=i;Kb(i)}Kb(n);ea(h|0);X()}X()}v=0;t=xb-144|0;xb=t;f=H[a>>2]-12|0;c=H[f>>2]+a|0;d=c+8|0;g=H[d>>2];b=H[c+12>>2];if(b>>>0>g+3>>>0){v=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[c+8>>2]=g+4;c=H[f>>2]+a|0;b=H[c+12>>2];d=c+8|0;g=H[d>>2]}l=j&65535;bg:{cg:{dg:{eg:{fg:{gg:{hg:{ig:{jg:{if(g+3>>>0>=b>>>0){break jg}p=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[d>>2]=g+4;if(p>>>0<2){break jg}H[t+136>>2]=0;H[t+128>>2]=0;H[t+132>>2]=0;kg:{lg:{if(p>>>0>=268435456){H[197455]=0;ia(1869,t+128|0);a=H[197455];H[197455]=0;if((a|0)==1){break lg}break cg}H[197455]=0;c=p<<4;s=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break kg}}a=$()|0;_()|0;b=H[t+128>>2];if(b){H[t+132>>2]=b;Kb(b)}break d}H[t+128>>2]=s;m=c+s|0;H[t+136>>2]=m;H[t+132>>2]=m;e=a+4|0;g=0;while(1){c=s+(g<<4)|0;i=e+H[f>>2]|0;b=H[i+4>>2];d=H[i+8>>2];if(b+3>>>0>=d>>>0){r=0}else{y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());b=b+4|0;H[i+4>>2]=b;r=+y}M[c>>3]=r;if(d>>>0>b+3>>>0){y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());H[i+4>>2]=b+4;r=+y}else{r=0}M[c+8>>3]=r;g=g+1|0;if((p|0)!=(g|0)){continue}break}d=0;H[t+104>>2]=0;H[t+96>>2]=0;H[t+100>>2]=0;mg:{if((m|0)==(s|0)){H[t+120>>2]=0;H[t+112>>2]=0;H[t+116>>2]=0;break mg}ng:{e=m-s|0;og:{if((e|0)<0){H[197455]=0;ia(1869,t+96|0);a=H[197455];H[197455]=0;if((a|0)!=1){break cg}break og}H[197455]=0;c=aa(899,e|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break ng}}g=$()|0;_()|0;a=H[t+96>>2];if(!a){break dg}H[t+100>>2]=a;Kb(a);break dg}H[t+96>>2]=c;H[t+104>>2]=c+(e>>4<<4);q=Ob(c,s,e);pg:{if(e){H[t+16>>2]=0;H[t+8>>2]=0;H[t+12>>2]=0;c=(e+q|0)-q|0;if((c|0)<0){H[197455]=0;ia(1869,t+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){break cg}break eg}H[197455]=0;d=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break eg}i=c>>4;b=i>>>0>1?i:1;f=b&3;k=0;g=0;if(b-1>>>0>=3){e=b&-4;h=0;while(1){n=g<<4;c=n+d|0;m=n+q|0;b=H[m+4>>2];H[c>>2]=H[m>>2];H[c+4>>2]=b;b=H[m+12>>2];H[c+8>>2]=H[m+8>>2];H[c+12>>2]=b;b=n|16;c=b+d|0;m=b+q|0;b=H[m+12>>2];H[c+8>>2]=H[m+8>>2];H[c+12>>2]=b;b=H[m+4>>2];H[c>>2]=H[m>>2];H[c+4>>2]=b;b=n|32;c=b+d|0;m=b+q|0;b=H[m+12>>2];H[c+8>>2]=H[m+8>>2];H[c+12>>2]=b;b=H[m+4>>2];H[c>>2]=H[m>>2];H[c+4>>2]=b;b=n|48;c=b+d|0;m=b+q|0;b=H[m+12>>2];H[c+8>>2]=H[m+8>>2];H[c+12>>2]=b;b=H[m+4>>2];H[c>>2]=H[m>>2];H[c+4>>2]=b;g=g+4|0;h=h+4|0;if((e|0)!=(h|0)){continue}break}}if(f){while(1){b=g<<4;c=b+d|0;e=b+q|0;b=H[e+4>>2];H[c>>2]=H[e>>2];H[c+4>>2]=b;b=H[e+12>>2];H[c+8>>2]=H[e+8>>2];H[c+12>>2]=b;g=g+1|0;k=k+1|0;if((f|0)!=(k|0)){continue}break}}H[t+112>>2]=d;b=(i<<4)+d|0;H[t+120>>2]=b;H[t+116>>2]=b;break pg}H[t+120>>2]=0;H[t+112>>2]=0;H[t+116>>2]=0}H[t+100>>2]=q;Kb(q)}qg:{if(l<<16>>16<0){H[t+24>>2]=0;H[t+28>>2]=0;H[t+32>>2]=0;H[t+36>>2]=0;H[t+40>>2]=0;H[t+44>>2]=0;H[t+48>>2]=0;H[t+52>>2]=0;H[t+56>>2]=0;H[t+60>>2]=0;H[t+88>>2]=0;H[t+92>>2]=0;H[t+16>>2]=0;H[t+20>>2]=0;H[t+80>>2]=0;H[t+84>>2]=0;H[t+12>>2]=418012;H[t+8>>2]=417944;H[t+16>>2]=v;b=H[a+120>>2];H[197455]=0;c=t+8|4;H[b+8>>2]=c;b=H[197455];H[197455]=0;if((b|0)==1){break gg}w=M[d+8>>3];r=M[d>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break gg}g=1;rg:{if(p>>>0>1){while(1){b=(g<<4)+d|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break rg}g=g+1|0;if((p|0)!=(g|0)){continue}break}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break gg}H[197455]=0;ka(1872,a|0,0,1,1);b=H[197455];H[197455]=0;if((b|0)==1){break gg}d=H[a+208>>2];if(d){b=H[H[d>>2]+576>>2];H[197455]=0;ga(b|0,d|0,v|0,t+112|0);b=H[197455];H[197455]=0;if((b|0)==1){break gg}}b=H[a+120>>2];H[197455]=0;if((c|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break gg}H[t+12>>2]=418012;H[t+8>>2]=417944;if(F[t+95|0]>=0){break qg}Kb(H[t+84>>2]);break qg}break gg}c=a+236|0;g=H[c>>2];if(!g){break qg}b=c;while(1){e=K[g+16>>2]>>0;b=e?b:g;g=H[(e<<2)+g>>2];if(g){continue}break}if((b|0)==(c|0)|K[b+16>>2]>v>>>0){break qg}e=H[b+20>>2];c=H[H[e>>2]+12>>2];H[197455]=0;e=aa(c|0,e|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ig}if((e|0)!=1){break qg}c=H[b+20>>2];if(!c){break qg}b=H[a+120>>2];H[197455]=0;c=c+4|0;H[b+8>>2]=c;b=H[197455];H[197455]=0;if((b|0)==1){break ig}w=M[d+8>>3];r=M[d>>3];H[197455]=0;ta(1870,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break ig}g=1;if(p>>>0>1){while(1){b=(g<<4)+d|0;w=M[b+8>>3];r=M[b>>3];H[197455]=0;ta(1881,a|0,+r,+w);b=H[197455];H[197455]=0;if((b|0)==1){break hg}g=g+1|0;if((p|0)!=(g|0)){continue}break}}d=H[a+208>>2];if(d){b=H[H[d>>2]+576>>2];H[197455]=0;ga(b|0,d|0,v|0,t+112|0);b=H[197455];H[197455]=0;if((b|0)==1){break ig}}H[197455]=0;ia(1865,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break ig}H[197455]=0;ka(1872,a|0,0,1,1);b=H[197455];H[197455]=0;if((b|0)==1){break ig}b=H[a+120>>2];H[197455]=0;if((c|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break ig}}b=H[t+112>>2];if(b){H[t+116>>2]=b;Kb(b)}Kb(s)}xb=t+144|0;break bg}g=$()|0;_()|0;break fg}g=$()|0;_()|0;break fg}g=$()|0;_()|0;H[t+12>>2]=418012;H[t+8>>2]=417944;if(F[t+95|0]>=0){break fg}Kb(H[t+84>>2])}a=H[t+112>>2];if(!a){break dg}H[t+116>>2]=a;Kb(a);break dg}g=$()|0;_()|0;a=H[t+8>>2];if(a){H[t+12>>2]=a;Kb(a)}H[t+100>>2]=q;Kb(q)}Kb(s);break b}X()}}F[a+213|0]=1;break k;case 9:sg:{if(j&16384){u=0;m=xb-112|0;xb=m;f=H[a>>2];c=f-12|0;d=H[c>>2]+a|0;o=d+8|0;b=H[o>>2];v=H[d+12>>2];if(v>>>0>b+3>>>0){u=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4;b=H[c>>2]+a|0;v=H[b+12>>2];o=b+8|0;b=H[o>>2]}e=j&65535;tg:{ug:{vg:{wg:{xg:{yg:{if(b+3>>>0>=v>>>0){break yg}g=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[o>>2]=b+4;if(!g){break yg}H[m+104>>2]=0;H[m+96>>2]=0;H[m+100>>2]=0;zg:{Ag:{if(g>>>0>=134217728){H[197455]=0;ia(1884,m+96|0);a=H[197455];H[197455]=0;if((a|0)==1){break Ag}X()}H[197455]=0;c=g<<5;d=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break zg}}f=$()|0;_()|0;a=H[m+96>>2];if(!a){break tg}H[m+100>>2]=a;Kb(a);break tg}H[m+96>>2]=d;b=c+d|0;H[m+104>>2]=b;v=0;Nb(d,0,c);H[m+100>>2]=b;d=a+4|0;while(1){i=d+H[f-12>>2]|0;o=H[i+4>>2];l=H[i+8>>2];Bg:{if(o+1>>>0>=l>>>0){k=0;break Bg}k=(I[o|0]|I[o+1|0]<<8)<<16>>16;o=o+2|0;H[i+4>>2]=o}f=0;Cg:{if(l>>>0<=o+1>>>0){c=0;break Cg}c=(I[o|0]|I[o+1|0]<<8)<<16>>16;o=o+2|0;H[i+4>>2]=o}if(l>>>0>o+1>>>0){f=(I[o|0]|I[o+1|0]<<8)<<16>>16;o=o+2|0;H[i+4>>2]=o}b=0;if(l>>>0>o+1>>>0){b=(I[o|0]|I[o+1|0]<<8)<<16>>16;H[i+4>>2]=o+2}l=H[m+96>>2]+(v<<5)|0;M[l+24>>3]=b<<16>>16;M[l+16>>3]=f<<16>>16;M[l+8>>3]=c<<16>>16;M[l>>3]=k<<16>>16;v=v+1|0;if((g|0)!=(v|0)){f=H[a>>2];continue}break}Dg:{if(e<<16>>16<0){H[m+24>>2]=0;H[m+28>>2]=0;H[m+32>>2]=0;H[m+36>>2]=0;H[m+40>>2]=0;H[m+44>>2]=0;H[m+48>>2]=0;H[m+52>>2]=0;H[m+56>>2]=0;H[m+60>>2]=0;H[m+88>>2]=0;H[m+92>>2]=0;H[m+16>>2]=0;H[m+20>>2]=0;H[m+80>>2]=0;H[m+84>>2]=0;H[m+12>>2]=418012;H[m+8>>2]=417944;H[m+16>>2]=u;b=H[a+120>>2];H[197455]=0;d=m+8|4;H[b+8>>2]=d;b=H[197455];H[197455]=0;Eg:{if((b|0)==1){break Eg}f=H[m+96>>2];c=H[m+100>>2];if((f|0)!=(c|0)){while(1){H[197455]=0;ka(1885,a|0,f|0,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break vg}f=f+32|0;if((c|0)!=(f|0)){continue}break}}c=H[a+208>>2];if(c){b=H[H[c>>2]+580>>2];H[197455]=0;ga(b|0,c|0,u|0,m+96|0);b=H[197455];H[197455]=0;if((b|0)==1){break Eg}}b=H[a+120>>2];H[197455]=0;if((d|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Eg}H[m+12>>2]=418012;H[m+8>>2]=417944;if(F[m+95|0]>=0){break Dg}Kb(H[m+84>>2]);break Dg}break vg}c=a+236|0;f=H[c>>2];if(!f){break Dg}b=c;while(1){d=K[f+16>>2]>>0;b=d?b:f;f=H[(d<<2)+f>>2];if(f){continue}break}if((b|0)==(c|0)|K[b+16>>2]>u>>>0){break Dg}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break xg}if((d|0)!=1){break Dg}c=H[b+20>>2];if(!c){break Dg}b=H[a+120>>2];H[197455]=0;d=c+4|0;H[b+8>>2]=d;b=H[197455];H[197455]=0;if((b|0)==1){break xg}f=H[m+96>>2];c=H[m+100>>2];if((f|0)!=(c|0)){while(1){H[197455]=0;ka(1885,a|0,f|0,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break wg}f=f+32|0;if((c|0)!=(f|0)){continue}break}}c=H[a+208>>2];if(c){b=H[H[c>>2]+580>>2];H[197455]=0;ga(b|0,c|0,u|0,m+96|0);b=H[197455];H[197455]=0;if((b|0)==1){break xg}}b=H[a+120>>2];H[197455]=0;if((d|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break xg}}b=H[m+96>>2];if(!b){break yg}H[m+100>>2]=b;Kb(b)}xb=m+112|0;break sg}f=$()|0;_()|0;break ug}f=$()|0;_()|0;break ug}f=$()|0;_()|0;H[m+12>>2]=418012;H[m+8>>2]=417944;if(F[m+95|0]>=0){break ug}Kb(H[m+84>>2])}a=H[m+96>>2];if(!a){break tg}H[m+100>>2]=a;Kb(a);break a}break a}l=j&65535;i=xb-144|0;xb=i;e=H[a>>2];c=e-12|0;d=H[c>>2]+a|0;k=d+8|0;b=H[k>>2];f=H[d+12>>2];Fg:{if(f>>>0<=b+3>>>0){j=0;break Fg}j=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4;b=H[c>>2]+a|0;f=H[b+12>>2];k=b+8|0;b=H[k>>2]}Gg:{Hg:{Ig:{Jg:{Kg:{Lg:{Mg:{Ng:{if(b+3>>>0>=f>>>0){break Ng}g=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[k>>2]=b+4;if(!g){break Ng}H[i+136>>2]=0;H[i+128>>2]=0;H[i+132>>2]=0;Og:{Pg:{if(g>>>0>=134217728){H[197455]=0;ia(1884,i+128|0);a=H[197455];H[197455]=0;if((a|0)==1){break Pg}X()}H[197455]=0;c=g<<5;d=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Og}}e=$()|0;_()|0;a=H[i+128>>2];if(!a){break Hg}H[i+132>>2]=a;Kb(a);break Hg}H[i+128>>2]=d;b=c+d|0;H[i+136>>2]=b;Nb(d,0,c);H[i+132>>2]=b;H[i+120>>2]=0;H[i+124>>2]=0;H[i+112>>2]=0;H[i+116>>2]=0;H[i+104>>2]=0;H[i+108>>2]=0;H[i+96>>2]=0;H[i+100>>2]=0;d=a+4|0;b=0;while(1){c=H[e-12>>2];H[197455]=0;Ae(c+d|0,i+96|0);c=H[197455];H[197455]=0;if((c|0)==1){break Mg}A=M[i+96>>3];w=M[i+104>>3];r=M[i+112>>3];c=H[i+128>>2]+(b<<5)|0;M[c+24>>3]=M[i+120>>3];M[c+16>>3]=r;M[c+8>>3]=w;M[c>>3]=A;b=b+1|0;if((g|0)!=(b|0)){e=H[a>>2];continue}break}Qg:{if(l<<16>>16<0){H[i+24>>2]=0;H[i+28>>2]=0;H[i+32>>2]=0;H[i+36>>2]=0;H[i+40>>2]=0;H[i+44>>2]=0;H[i+48>>2]=0;H[i+52>>2]=0;H[i+56>>2]=0;H[i+60>>2]=0;H[i+88>>2]=0;H[i+92>>2]=0;H[i+16>>2]=0;H[i+20>>2]=0;H[i+80>>2]=0;H[i+84>>2]=0;H[i+12>>2]=418012;H[i+8>>2]=417944;H[i+16>>2]=j;b=H[a+120>>2];H[197455]=0;d=i+8|4;H[b+8>>2]=d;b=H[197455];H[197455]=0;Rg:{if((b|0)==1){break Rg}e=H[i+128>>2];c=H[i+132>>2];if((e|0)!=(c|0)){while(1){H[197455]=0;ka(1885,a|0,e|0,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break Jg}e=e+32|0;if((c|0)!=(e|0)){continue}break}}c=H[a+208>>2];if(c){b=H[H[c>>2]+580>>2];H[197455]=0;ga(b|0,c|0,j|0,i+128|0);b=H[197455];H[197455]=0;if((b|0)==1){break Rg}}b=H[a+120>>2];H[197455]=0;if((d|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Rg}H[i+12>>2]=418012;H[i+8>>2]=417944;if(F[i+95|0]>=0){break Qg}Kb(H[i+84>>2]);break Qg}break Jg}c=a+236|0;e=H[c>>2];if(!e){break Qg}b=c;while(1){d=K[e+16>>2]>>0;b=d?b:e;e=H[(d<<2)+e>>2];if(e){continue}break}if((b|0)==(c|0)|K[b+16>>2]>j>>>0){break Qg}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Lg}if((d|0)!=1){break Qg}c=H[b+20>>2];if(!c){break Qg}b=H[a+120>>2];H[197455]=0;d=c+4|0;H[b+8>>2]=d;b=H[197455];H[197455]=0;if((b|0)==1){break Lg}e=H[i+128>>2];c=H[i+132>>2];if((e|0)!=(c|0)){while(1){H[197455]=0;ka(1885,a|0,e|0,0,1);b=H[197455];H[197455]=0;if((b|0)==1){break Kg}e=e+32|0;if((c|0)!=(e|0)){continue}break}}c=H[a+208>>2];if(c){b=H[H[c>>2]+580>>2];H[197455]=0;ga(b|0,c|0,j|0,i+128|0);b=H[197455];H[197455]=0;if((b|0)==1){break Lg}}b=H[a+120>>2];H[197455]=0;if((d|0)==H[b+8>>2]){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break Lg}}b=H[i+128>>2];if(!b){break Ng}H[i+132>>2]=b;Kb(b)}xb=i+144|0;break Gg}e=$()|0;_()|0;break Ig}e=$()|0;_()|0;break Ig}e=$()|0;_()|0;break Ig}e=$()|0;_()|0;H[i+12>>2]=418012;H[i+8>>2]=417944;if(F[i+95|0]>=0){break Ig}Kb(H[i+84>>2])}a=H[i+128>>2];if(!a){break Hg}H[i+132>>2]=a;Kb(a);ea(e|0);X()}ea(e|0);X()}}F[a+213|0]=1;break k;case 18:if(K[c+8>>2]>L+3>>>0){H[c+4>>2]=L+4}F[a+213|0]=1;break k;case 7:l=xb-16|0;xb=l;b=j&65535;s=b&255;Sg:{Tg:{switch((b>>>8&127)-1|0){case 0:xf(a,qz(a),s);break Sg;case 1:d=0;o=0;f=0;g=0;u=H[a>>2];n=u-12|0;b=H[n>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;c=H[n>>2]+a|0;e=H[c+8>>2];Ug:{if(e+3>>>0>2]){b=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4;if(b){break Ug}}d=Qb(64);H[d+28>>2]=0;H[d+32>>2]=0;G[d+24>>1]=0;H[d+16>>2]=0;H[d+20>>2]=1072693248;H[d+8>>2]=0;H[d+4>>2]=419196;H[d>>2]=419144;F[d+26|0]=0;H[d+36>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;b=H[n>>2]+a|0;e=b;c=H[b+12>>2];k=b+8|0;b=H[k>>2];if(c>>>0>b+3>>>0){o=I[b|0]|I[b+1|0]<<8;H[e+8>>2]=b+4;b=H[n>>2]+a|0;c=H[b+12>>2];k=b+8|0;b=H[k>>2]}if(b+3>>>0>>0){H[k>>2]=b+4;b=H[n>>2]+a|0;c=H[b+12>>2];k=b+8|0;b=H[k>>2]}if(b+3>>>0>>0){y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());H[k>>2]=b+4;r=+y}else{r=0}M[d+16>>3]=r;if(o&1){b=H[n>>2]+a|0;H[b+8>>2]=H[b+8>>2]+24}b=0;Vg:{if(!(o&2)){break Vg}c=96;e=H[n>>2]+a|0;i=H[e+8>>2];if(i+3>>>0>2]){c=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);H[e+8>>2]=i+4;if(c>>>0>2){break Vg}c=96-(c<<4)|0}H[d+8>>2]=c;b=c}Wg:{if(!(o&4)){break Wg}k=512;e=H[n>>2]+a|0;i=H[e+8>>2];Xg:{if(i+3>>>0>=K[e+12>>2]){break Xg}c=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);H[e+8>>2]=i+4;Yg:{switch(c|0){case 0:break Xg;case 1:break Yg;default:break Wg}}k=256}b=b|k;H[d+8>>2]=b}Zg:{if(!(o&8)){break Zg}k=8192;e=H[n>>2]+a|0;i=H[e+8>>2];_g:{if(i+3>>>0>=K[e+12>>2]){break _g}c=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);H[e+8>>2]=i+4;$g:{switch(c|0){case 0:break _g;case 1:break $g;default:break Zg}}k=4096}b=b|k;H[d+8>>2]=b}if(o&16){c=H[n>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>2]){y=(x(2,I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24)),B());H[c+8>>2]=e+4;r=+y}else{r=0}M[d+32>>3]=r}if(o&32){c=0;i=H[n>>2]+a|0;e=H[i+8>>2];if(e+3>>>0>2]){c=I[e|0];H[i+8>>2]=e+4}b=c&15|b;H[d+8>>2]=b}ah:{if(!(o&64)){break ah}k=96;e=H[n>>2]+a|0;i=H[e+8>>2];bh:{if(i+3>>>0>=K[e+12>>2]){break bh}c=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);H[e+8>>2]=i+4;ch:{switch(c|0){case 0:break bh;case 2:break ch;default:break ah}}k=64}H[d+8>>2]=b|k}if(o&128){b=H[n>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){y=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[b+8>>2]=c+4;r=+y}else{r=0}M[d+40>>3]=r}dh:{if(!(o&256)){break dh}b=H[n>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[d+52>>2]=f;i=Qb((f&536870911)!=(f|0)?-1:f<<3);H[d+48>>2]=i;if(!f){break dh}e=a+4|0;b=0;while(1){c=i+(b<<3)|0;m=e+H[n>>2]|0;h=H[m+4>>2];if(h+3>>>0>2]){y=(x(2,I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24)),B());H[m+4>>2]=h+4;r=+y}else{r=0}M[c>>3]=r;b=b+1|0;if((f|0)!=(b|0)){continue}break}}if(o&512){b=H[n>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4}if(o&1024){m=H[n>>2]+a|0;c=m+8|0;b=H[c>>2];eh:{if(b+3>>>0>=K[m+12>>2]){k=0;break eh}i=I[b+3|0];f=I[b+2|0];e=I[b+1|0];c=I[b|0];H[m+8>>2]=b+4;k=e<<10|c<<2|f<<18|i<<26;c=(H[n>>2]+a|0)+8|0;b=H[c>>2]}H[c>>2]=b+k}if(o&2048){k=H[n>>2];e=k+a|0;c=e+8|0;b=H[c>>2];if(b+3>>>0>2]){g=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+8>>2]=b+4;k=H[n>>2];c=(k+a|0)+8|0;b=H[c>>2]}f=H[(a+k|0)+4>>2];H[c>>2]=b+4;fh:{gh:{hh:{ih:{e=H[n>>2]+a|0;i=H[e+8>>2];if(i+3>>>0>=K[e+12>>2]){break ih}c=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);H[e+8>>2]=i+4;switch(c|0){case 1:break hh;case 0:break ih;default:break fh}}c=Qb(96);H[c+88>>2]=0;H[c>>2]=419324;oz((H[n>>2]+a|0)+4|0,c);if(H[c+4>>2]-1>>>0>1){break gh}e=H[H[a>>2]-12>>2]+a|0;H[e+8>>2]=H[e+8>>2]+4;fa=c,ma=oj(a),H[fa+88>>2]=ma;break gh}c=Qb(96);H[c>>2]=419432;nz((H[n>>2]+a|0)+4|0,c)}H[d+56>>2]=c}u=H[a>>2];e=H[u-12>>2]+a|0;c=H[e+8>>2];H[e+8>>2]=c+(H[e+4>>2]+(b+g-(c+f)|0)|0)}if(o&4096){i=u-12|0;k=H[i>>2];e=k+a|0;c=e+8|0;b=H[c>>2];jh:{if(b+3>>>0>=K[e+12>>2]){g=0;break jh}g=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+8>>2]=b+4;k=H[i>>2];c=(k+a|0)+8|0;b=H[c>>2]}f=H[(a+k|0)+4>>2];H[c>>2]=b+4;kh:{lh:{mh:{nh:{e=H[i>>2]+a|0;m=H[e+8>>2];if(m+3>>>0>=K[e+12>>2]){break nh}c=I[m|0]|I[m+1|0]<<8|(I[m+2|0]<<16|I[m+3|0]<<24);H[e+8>>2]=m+4;switch(c|0){case 1:break mh;case 0:break nh;default:break kh}}c=Qb(96);H[c+88>>2]=0;H[c>>2]=419324;oz((H[i>>2]+a|0)+4|0,c);if(H[c+4>>2]-1>>>0>1){break lh}e=H[H[a>>2]-12>>2]+a|0;H[e+8>>2]=H[e+8>>2]+4;fa=c,ma=oj(a),H[fa+88>>2]=ma;break lh}c=Qb(96);H[c>>2]=419432;nz((H[i>>2]+a|0)+4|0,c)}H[d+60>>2]=c}e=H[H[a>>2]-12>>2]+a|0;c=H[e+8>>2];H[e+8>>2]=c+(H[e+4>>2]+(b+g-(c+f)|0)|0)}fa=d,ma=qz(a),H[fa+28>>2]=ma}xf(a,d,s);break Sg;case 2:if(b<<16>>16<0){oh:{ph:{c=a+236|0;k=H[c>>2];if(!k){break ph}b=c;while(1){d=s>>>0>K[k+16>>2];b=d?b:k;k=H[(d<<2)+k>>2];if(k){continue}break}if((b|0)==(c|0)|s>>>0>2]){break ph}c=H[b+20>>2];if((zb[H[H[c>>2]+12>>2]](c)|0)!=255){break ph}k=H[b+20>>2];if(!k){break ph}pz(a,k);break oh}k=Qb(16);H[k+12>>2]=0;H[k+4>>2]=0;H[k+8>>2]=0;H[k>>2]=419096;pz(a,k);xf(a,k,s)}c=H[k+12>>2];if((c|0)!=H[k+8>>2]){break Sg}d=H[H[a>>2]-12>>2]+a|0;H[l+8>>2]=H[d+12>>2];b=H[d+8>>2];H[l>>2]=H[d+4>>2];H[l+4>>2]=b;b=H[k+4>>2];H[d+4>>2]=b;H[d+8>>2]=b;H[d+12>>2]=b+c;xf(a,oj(a),s);b=H[l+4>>2];c=H[H[a>>2]-12>>2]+a|0;H[c+4>>2]=H[l>>2];H[c+8>>2]=b;H[c+12>>2]=H[l+8>>2];break Sg}xf(a,oj(a),s);break Sg;case 3:n=xb-16|0;xb=n;d=Qb(16);H[d+4>>2]=0;H[d+8>>2]=0;H[d>>2]=419784;H[d+12>>2]=0;e=H[a>>2]-12|0;b=H[e>>2]+a|0;c=b;k=H[b+12>>2];j=b+8|0;b=H[j>>2];if(k>>>0>b+3>>>0){H[c+8>>2]=b+4;b=H[e>>2]+a|0;k=H[b+12>>2];j=b+8|0;b=H[j>>2]}qh:{rh:{sh:{th:{uh:{if(b+3>>>0>=k>>>0){H[n+12>>2]=0;g=1;break uh}c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[j>>2]=b+4;H[n+12>>2]=0;g=c+1|0;if(c>>>0>g>>>0){break th}}i=d+4|0;b=0;while(1){f=Qf(a,n+12|0);vh:{if(!f){break vh}if(H[d+12>>2]!=(b|0)){H[b>>2]=f;b=b+4|0;H[d+8>>2]=b;break vh}m=H[i>>2];h=b-m|0;c=h>>2;e=c+1|0;if(e>>>0>=1073741824){break sh}j=c<<2;b=h>>1;e=h>>>0<2147483644?b>>>0>e>>>0?b:e:1073741823;if(e){if(e>>>0>=1073741824){break rh}c=Qb(e<<2)}else{c=0}b=j+c|0;H[b>>2]=f;b=b+4|0;if((h|0)>0){Ob(c,m,h)}H[d+12>>2]=c+(e<<2);H[d+8>>2]=b;H[d+4>>2]=c;if(!m){break vh}Kb(m)}if(K[n+12>>2]>>0){continue}break}}xb=n+16|0;b=d;break qh}bd(i);X()}Td(413892);X()}xf(a,b,s);break Sg;case 4:u=0;wh:{if(!(b>>>15|0)){e=Qb(32);H[e+12>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e>>2]=418992;H[e+24>>2]=0;H[e+28>>2]=0;c=H[a>>2]-12|0;b=H[c>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;b=H[c>>2]+a|0;d=H[b+8>>2];xh:{if(d+3>>>0>=K[b+12>>2]){break xh}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[b+8>>2]=d+4;b=c-1|0;if(b>>>0<=1){H[e+16>>2]=c}yh:{switch(b|0){case 0:Rp(a,e,1);xf(a,e,s);break wh;case 1:break yh;default:break xh}}Qp(a,e,1)}xf(a,e,s);break wh}zh:{Ah:{Bh:{d=a+236|0;b=H[d>>2];Ch:{if(!b){break Ch}c=d;while(1){e=s>>>0>K[b+16>>2];c=e?c:b;b=H[(e<<2)+b>>2];if(b){continue}break}if((c|0)==(d|0)){break Ch}if(s>>>0>=K[c+16>>2]){break Bh}}g=H[a+116>>2];d=Qb(32);H[d+12>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[d>>2]=418992;H[d+24>>2]=0;H[d+28>>2]=0;b=-16;e=H[a>>2]-12|0;c=H[e>>2]+a|0;f=H[c+8>>2];if(f+3>>>0>2]){b=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[c+8>>2]=f+4;b=b-16|0}c=Qb(b);H[d+12>>2]=b;H[d+4>>2]=c;b=H[e>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;b=H[e>>2]+a|0;e=H[b+8>>2];Dh:{if(e+3>>>0>=K[b+12>>2]){break Dh}c=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[b+8>>2]=e+4;b=c-1|0;if(b>>>0<=1){H[d+16>>2]=c}Eh:{switch(b|0){case 0:Rp(a,d,0);break Dh;case 1:break Eh;default:break Dh}}Qp(a,d,0)}xf(a,d,s);b=H[d+16>>2];e=g-20|0;if((b|0)==2){break Ah}e=(b|0)==1?g-32|0:g;break Ah}e=H[a+116>>2];b=H[H[a>>2]-12>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;b=H[c+20>>2];if((zb[H[H[b>>2]+12>>2]](b)|0)!=5){break zh}d=H[c+20>>2];e=e-4|0}h=Qb(e);m=H[H[a>>2]-12>>2]+a|0;i=H[m+12>>2];c=H[m+8>>2];b=i-c|0;f=b>>>0>>0?b:e;Fh:{if(!f){break Fh}b=0;if((f|0)!=1){g=f&-2;while(1){Gh:{if(c>>>0>=i>>>0){j=0;break Gh}j=I[c|0];c=c+1|0;H[m+8>>2]=c}F[b+h|0]=j;j=0;if(c>>>0>>0){j=I[c|0];c=c+1|0;H[m+8>>2]=c}F[h+(b|1)|0]=j;b=b+2|0;u=u+2|0;if((g|0)!=(u|0)){continue}break}}if(!(f&1)){break Fh}j=0;if(c>>>0>>0){j=I[c|0];H[m+8>>2]=c+1}F[b+h|0]=j}b=H[d+12>>2];j=H[d+4>>2];Hh:{Ih:{if(!(b|(j|!e))){j=Qb(e);H[d+12>>2]=e;H[d+4>>2]=j;b=e;break Ih}if(!b){break Hh}}c=H[d+8>>2];b=c+e>>>0>b>>>0?b-c|0:e;Ob(c+j|0,h,b);H[d+8>>2]=b+H[d+8>>2]}Kb(h)}}break Sg;case 5:o=0;h=xb-16|0;xb=h;g=H[a>>2]-12|0;b=H[g>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;c=Qb(40);H[c+4>>2]=419568;H[c>>2]=419508;H[c+16>>2]=0;H[c+20>>2]=0;F[c+35|0]=0;H[c+24>>2]=0;b=H[g>>2]+a|0;e=b;k=H[b+12>>2];d=b+8|0;b=H[d>>2];if(k>>>0<=b+3>>>0){r=0}else{y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());H[e+8>>2]=b+4;b=H[g>>2]+a|0;k=H[b+12>>2];d=b+8|0;b=H[d>>2];r=+y}M[c+8>>3]=r;if(b+3>>>0>>0){o=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d>>2]=b+4;b=H[g>>2]+a|0;k=H[b+12>>2];d=b+8|0;b=H[d>>2]}H[c+16>>2]=o;Jh:{if(b+3>>>0>=k>>>0){break Jh}e=I[b|0];H[d>>2]=b+4;if(e&1){F[c+20|0]=1}if(e&2){F[c+21|0]=1}if(e&8){F[c+23|0]=1}if(!(e&4)){break Jh}F[c+22|0]=1}b=H[g>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;d=0;b=H[g>>2]+a|0;e=H[b+8>>2];if(e+3>>>0>2]){d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[b+8>>2]=e+4}e=d+1|0;b=e+e|0;n=Qb(b>>>0>>0?-1:b);G[n+(d<<1)>>1]=0;m=H[g>>2]+a|0;i=H[m+12>>2];b=H[m+8>>2];e=(i-b|0)/2|0;g=d>>>0>e>>>0?e:d;Kh:{if(!g){break Kh}if(i>>>0>b+1>>>0){f=0;if((g|0)!=1){e=g&-2;o=0;while(1){Lh:{if(i>>>0<=b+1>>>0){j=0;break Lh}j=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[m+8>>2]=b}G[n+(f<<1)>>1]=j;j=0;if(i>>>0>b+1>>>0){j=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[m+8>>2]=b}G[n+((f|1)<<1)>>1]=j;f=f+2|0;o=o+2|0;if((e|0)!=(o|0)){continue}break}}if(!(g&1)){break Kh}j=0;if(i>>>0>b+1>>>0){j=I[b|0]|I[b+1|0]<<8;H[m+8>>2]=b+2}G[n+(f<<1)>>1]=j;break Kh}Nb(n,0,g<<1)}zk(h,n,d);H[c+32>>2]=H[h+8>>2];b=H[h+4>>2];H[c+24>>2]=H[h>>2];H[c+28>>2]=b;Kb(n);xb=h+16|0;xf(a,c,s);break Sg;case 6:e=Qb(56);H[e>>2]=424336;d=0;D=0;h=H[H[a>>2]-12>>2]+a|0;c=H[h+8>>2];b=c+4|0;H[h+8>>2]=b;m=H[h+12>>2];if(m>>>0>c+7>>>0){b=c+8|0;c=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24)}else{c=0}H[e+4>>2]=c;c=b+4|0;H[h+8>>2]=c;if(m>>>0>b+7>>>0){d=I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]<<16|I[b+7|0]<<24);c=b+8|0;H[h+8>>2]=c}H[e+8>>2]=d;b=0;if(m>>>0>c+3>>>0){b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0}H[e+12>>2]=b;b=c+8|0;H[h+8>>2]=b;if(m>>>0>c+11>>>0){D=+(x(2,I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24)),B());b=c+12|0}M[e+16>>3]=D;c=b+4|0;H[h+8>>2]=c;if(m>>>0>b+7>>>0){y=(x(2,I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]<<16|I[b+7|0]<<24)),B());c=b+8|0;H[h+8>>2]=c;r=+y}else{r=0}M[e+24>>3]=r;Mh:{if(m>>>0<=c+3>>>0){b=c;r=0;break Mh}y=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());b=c+4|0;H[h+8>>2]=b;r=+y}M[e+32>>3]=r;if(m>>>0>b+3>>>0){y=(x(2,I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)),B());b=b+4|0;H[h+8>>2]=b;r=+y}else{r=0}M[e+40>>3]=r;c=0;Nh:{if(m>>>0<=b+3>>>0){d=0;break Nh}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[h+8>>2]=b}H[e+48>>2]=d;Oh:{if(m>>>0<=b+3>>>0){d=b;break Oh}i=I[b+3|0];f=I[b+2|0];g=I[b+1|0];c=I[b|0];d=b+4|0;H[h+8>>2]=d;c=g<<10|c<<2|f<<18|i<<26}b=0;if(m>>>0>d+3>>>0){b=I[d+1|0]<<11|I[d|0]<<3|I[d+2|0]<<19|I[d+3|0]<<27;d=d+4|0}H[h+8>>2]=(c+d|0)+b;xf(a,e,s);break Sg;case 7:break Tg;default:break Sg}}e=Qb(16);H[e+8>>2]=0;H[e>>2]=424408;j=0;o=0;g=H[H[a>>2]-12>>2]+a|0;c=H[g+8>>2];d=c+8|0;H[g+8>>2]=d;b=H[g+12>>2];Ph:{if(b>>>0>c+11>>>0){j=I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24);d=c+12|0;H[g+8>>2]=d;if(j>>>0>4){break Ph}}H[e+4>>2]=j;if(b>>>0>d>>>0){o=I[d|0];H[g+8>>2]=d+1}F[e+8|0]=o;d=0;j=0;b=H[g+8>>2];if(b>>>0>2]){j=I[b|0];H[g+8>>2]=b+1}F[e+9|0]=j;b=H[g+8>>2];if(b>>>0>2]){d=I[b|0];H[g+8>>2]=b+1}F[e+10|0]=d;d=0;j=0;b=H[g+8>>2];if(b>>>0>2]){j=I[b|0];H[g+8>>2]=b+1}F[e+11|0]=j;b=H[g+8>>2];if(K[g+12>>2]>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0}H[e+12>>2]=d;H[g+8>>2]=b+4}xf(a,e,s)}xb=l+16|0;break k;case 55:H[C+40>>2]=0;H[C+44>>2]=0;H[C+32>>2]=0;H[C+36>>2]=0;b=0;e=0;l=H[l>>2]+N|0;c=H[l+8>>2];k=H[l+4>>2];if(c>>>0>k+3>>>0){e=I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24);k=k+4|0;H[l+4>>2]=k}H[C+32>>2]=e;if(c>>>0>k+1>>>0){b=I[k|0]|I[k+1|0]<<8;k=k+2|0;H[l+4>>2]=k}G[C+36>>1]=b;b=0;if(c>>>0>k+1>>>0){b=I[k|0]|I[k+1|0]<<8;k=k+2|0;H[l+4>>2]=k}G[C+38>>1]=b;b=c-k|0;b=b>>>0<8?b:8;Qh:{if(!b){break Qh}if(c>>>0>k>>>0){k=k+1|0;H[l+4>>2]=k}if((b|0)==1){break Qh}if(c>>>0>k>>>0){k=k+1|0;H[l+4>>2]=k}if((b|0)==2){break Qh}if(c>>>0>k>>>0){k=k+1|0;H[l+4>>2]=k}if((b|0)==3){break Qh}if(c>>>0>k>>>0){k=k+1|0;H[l+4>>2]=k}if((b|0)==4){break Qh}if(c>>>0>k>>>0){k=k+1|0;H[l+4>>2]=k}if((b|0)==5){break Qh}if(c>>>0>k>>>0){k=k+1|0;H[l+4>>2]=k}if((b|0)==6){break Qh}e=(b|0)!=7;b=c>>>0>k>>>0;d=b?k+1|0:k;c=e&d>>>0>>0;k=c?d+1|0:d;if(!(b|c)){break Qh}H[l+4>>2]=k}b=I[k+4|0]|I[k+5|0]<<8|(I[k+6|0]<<16|I[k+7|0]<<24);H[C+40>>2]=I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24);H[C+44>>2]=b;c=H[H[a>>2]-12>>2]+N|0;b=H[c+4>>2];if(b+3>>>0>=K[c+8>>2]){break k}H[c+4>>2]=b+4;break k;case 28:k=H[c+8>>2];e=L;if(k>>>0>e+3>>>0){H[c+4>>2]=L+4;c=H[l>>2]+N|0;b=c+4|0;k=H[c+8>>2];e=H[c+4>>2]}if(e+3>>>0>=k>>>0){break k}H[b>>2]=e+4;break k;case 38:H[C+56>>2]=0;H[C+60>>2]=0;H[C+48>>2]=0;H[C+52>>2]=0;H[C+40>>2]=0;H[C+44>>2]=0;H[C+32>>2]=0;H[C+36>>2]=0;H[C+24>>2]=0;H[C+28>>2]=0;H[C+16>>2]=0;H[C+20>>2]=0;H[C+8>>2]=0;H[C+12>>2]=0;H[C>>2]=0;H[C+4>>2]=0;Ae(H[l>>2]+N|0,C+32|0);Ae(H[H[a>>2]-12>>2]+N|0,C);c=H[H[a>>2]-12>>2]+N|0;b=H[c+4>>2];if(b+3>>>0>=K[c+8>>2]){break k}H[c+4>>2]=b+4;break k;case 39:if(K[c+8>>2]<=L+3>>>0){break k}H[c+4>>2]=L+4;break k;case 40:if(K[c+8>>2]<=L+3>>>0){break k}H[c+4>>2]=L+4;break k;case 37:e=0;if(K[c+8>>2]>L+3>>>0){e=I[L|0]|I[L+1|0]<<8|(I[L+2|0]<<16|I[L+3|0]<<24);H[c+4>>2]=L+4}Xy(T,e);H[a+120>>2]=H[T>>2];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break k;case 36:e=0;if(K[c+8>>2]>L+3>>>0){e=I[L|0]|I[L+1|0]<<8|(I[L+2|0]<<16|I[L+3|0]<<24);H[c+4>>2]=L+4}Yy(T,e);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break k;case 57:if(j<<16>>16<0){m=xb-16|0;xb=m;H[m>>2]=0;i=j&32767;Rh:{if(!i){break Rh}H[197455]=0;c=i<<2;d=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){a=$()|0;_()|0;b=H[m>>2];if(b){H[m+4>>2]=b;Kb(b)}break d}H[m>>2]=d;b=c+d|0;H[m+8>>2]=b;u=0;g=Nb(d,0,c);H[m+4>>2]=b;f=0;d=a+4|0;l=H[a>>2]-12|0;h=d+H[l>>2]|0;b=H[h+4>>2];if(b>>>0>2]){f=I[b|0];H[h+4>>2]=b+1}c=H[m>>2];F[g|0]=f;b=H[h+4>>2];if(b>>>0>2]){u=I[b|0];H[h+4>>2]=b+1}F[g+1|0]=u;e=0;u=0;b=H[h+4>>2];if(b>>>0>2]){u=I[b|0];H[h+4>>2]=b+1}F[g+2|0]=u;b=H[h+4>>2];if(b>>>0>2]){e=I[b|0];H[h+4>>2]=b+1}F[g+3|0]=e;e=1;if(i>>>0>1){b=i>>>0>1?i:1;while(1){j=0;u=0;i=d+H[l>>2]|0;g=H[i+4>>2];if(g>>>0>2]){u=I[g|0];H[i+4>>2]=g+1}f=c+(e<<2)|0;F[f|0]=u;g=H[i+4>>2];if(g>>>0>2]){j=I[g|0];H[i+4>>2]=g+1}F[f+1|0]=j;j=0;u=0;g=H[i+4>>2];if(g>>>0>2]){u=I[g|0];H[i+4>>2]=g+1}F[f+2|0]=u;g=H[i+4>>2];if(g>>>0>2]){j=I[g|0];H[i+4>>2]=g+1}F[f+3|0]=j;e=e+1|0;if((b|0)!=(e|0)){continue}break}}b=H[m>>2];if(!b){break Rh}Kb(b)}xb=m+16|0;break k}v=0;m=xb-16|0;xb=m;H[m>>2]=0;Sh:{Th:{g=j&32767;if(g){H[197455]=0;d=g<<3;c=aa(899,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Th}H[m>>2]=c;l=c+d|0;H[m+8>>2]=l;e=g-1&536870911;d=g&3;Uh:{if(!d){b=c;break Uh}b=c;while(1){G[b>>1]=0;G[b+2>>1]=0;G[b+4>>1]=1024;G[b+6>>1]=1024;b=b+8|0;v=v+1|0;if((d|0)!=(v|0)){continue}break}}if(e>>>0>=3){while(1){G[b+24>>1]=0;G[b+26>>1]=0;G[b+28>>1]=1024;G[b+30>>1]=1024;G[b+16>>1]=0;G[b+18>>1]=0;G[b+20>>1]=1024;G[b+22>>1]=1024;G[b+8>>1]=0;G[b+10>>1]=0;G[b+12>>1]=1024;G[b+14>>1]=1024;G[b>>1]=0;G[b+2>>1]=0;G[b+4>>1]=1024;G[b+6>>1]=1024;b=b+32|0;if((l|0)!=(b|0)){continue}break}}H[m+4>>2]=l;if(g){l=g>>>0>1?g:1;e=a+4|0;d=H[a>>2]-12|0;v=0;while(1){f=c+(v<<3)|0;i=e+H[d>>2]|0;b=H[i+4>>2];g=H[i+8>>2];Vh:{if(b+1>>>0>=g>>>0){o=0;break Vh}o=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[i+4>>2]=b}G[f>>1]=o;o=0;Wh:{if(g>>>0<=b+1>>>0){k=0;break Wh}k=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[i+4>>2]=b}G[f+2>>1]=k;if(g>>>0>b+1>>>0){o=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[i+4>>2]=b}G[f+4>>1]=o;o=0;if(g>>>0>b+1>>>0){o=I[b|0]|I[b+1|0]<<8;H[i+4>>2]=b+2}G[f+6>>1]=o;v=v+1|0;if((l|0)!=(v|0)){continue}break}}Kb(c)}xb=m+16|0;break Sh}a=$()|0;_()|0;b=H[m>>2];if(b){H[m+4>>2]=b;Kb(b)}break d}break k;case 56:e=xb-48|0;xb=e;H[e+16>>2]=0;H[e+20>>2]=0;H[e+40>>2]=0;H[e+44>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=1072693248;H[e+32>>2]=0;H[e+36>>2]=0;H[e+24>>2]=0;H[e+28>>2]=1072693248;d=H[a>>2]-12|0;c=H[d>>2];b=c+a|0;k=b+8|0;j=H[k>>2];f=H[b+12>>2];if(j>>>0>>0){H[b+8>>2]=j+1;c=H[d>>2];b=c+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2]}if(f>>>0>j>>>0){H[k>>2]=j+1;c=H[d>>2];b=c+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2]}if(f>>>0>j>>>0){H[k>>2]=j+1;c=H[d>>2];b=c+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2]}if(f>>>0>j>>>0){H[k>>2]=j+1;c=H[d>>2];b=c+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2]}if(j+1>>>0>>0){H[k>>2]=j+2;c=H[d>>2];b=c+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2]}if(j+1>>>0>>0){H[k>>2]=j+2;c=H[d>>2];b=c+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2]}if(j+1>>>0>>0){H[k>>2]=j+2;c=H[d>>2];b=c+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2]}if(f>>>0>j>>>0){H[k>>2]=j+1;c=H[d>>2];b=c+a|0;f=H[b+12>>2];k=b+8|0;j=H[k>>2]}if(f>>>0>j>>>0){H[k>>2]=j+1;c=H[d>>2]}lg((a+c|0)+4|0,e);xb=e+48|0;break k;case 43:H[C+32>>2]=0;H[C+36>>2]=1072693248;H[C+48>>2]=0;H[C+52>>2]=0;H[C+40>>2]=0;H[C+44>>2]=0;H[C+56>>2]=0;H[C+60>>2]=1072693248;H[R+8>>2]=0;H[R+12>>2]=0;H[R>>2]=0;H[R+4>>2]=0;b=C+32|0;lg(H[l>>2]+N|0,b);xh(H[a+120>>2],b,j&8192?3:2);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}F[a+213|0]=1;break k;case 42:b=H[a+120>>2];H[b+400>>2]=0;H[b+404>>2]=1072693248;H[b+408>>2]=0;H[b+412>>2]=0;H[b+416>>2]=0;H[b+420>>2]=0;H[b+432>>2]=0;H[b+436>>2]=0;H[b+424>>2]=0;H[b+428>>2]=1072693248;H[b+440>>2]=0;H[b+444>>2]=0;W=M[b+624>>3];Y=+(H[b+664>>2]>>31|1);z=W*Y;U=z*0+0;Z=M[b+632>>3];Q=+(H[b+668>>2]>>31|1);A=Z*Q;r=A+0;D=U+r*0;J=U*0+r;w=D*0+J;M[b+568>>3]=w;r=z+0;V=A*0+0;z=r+V*0;A=r*0+V;r=z+A*0;M[b+544>>3]=r;M[b+520>>3]=w;M[b+496>>3]=r;w=D+J*0;M[b+560>>3]=w;r=z*0+A;M[b+552>>3]=r;M[b+512>>3]=w;M[b+504>>3]=r;w=U+ +H[b+656>>2];r=V+ +H[b+660>>2];A=w+r*0+0;r=w*0+r+0;w=A*0+r-Z*+H[b+644>>2]*Q;M[b+584>>3]=w;r=A+r*0-W*+H[b+640>>2]*Y;M[b+576>>3]=r;M[b+536>>3]=w;M[b+528>>3]=r;b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}F[a+213|0]=1;break k;case 46:z=0;if(K[c+8>>2]>L+3>>>0){y=(x(2,I[L|0]|I[L+1|0]<<8|(I[L+2|0]<<16|I[L+3|0]<<24)),B());H[c+4>>2]=L+4;z=+y*.017453292519943295}w=ze(z);M[C+56>>3]=w;r=ne(z);M[C+40>>3]=r;M[C+32>>3]=w;M[C+48>>3]=-r;H[R+8>>2]=0;H[R+12>>2]=0;H[R>>2]=0;H[R+4>>2]=0;xh(H[a+120>>2],C+32|0,j&8192?3:2);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}F[a+213|0]=1;break k;case 45:D=0;d=xb-48|0;xb=d;b=H[a>>2]-12|0;c=H[b>>2]+a|0;f=c+8|0;k=H[f>>2];h=H[c+12>>2];if(h>>>0<=k+3>>>0){r=0}else{y=(x(2,I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24)),B());H[c+8>>2]=k+4;b=H[b>>2]+a|0;h=H[b+12>>2];f=b+8|0;k=H[f>>2];r=+y}if(k+3>>>0>>0){y=(x(2,I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24)),B());H[f>>2]=k+4;D=+y}H[d+16>>2]=0;H[d+20>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=r;H[d+32>>2]=0;H[d+36>>2]=0;M[d+24>>3]=D;xh(H[a+120>>2],d,j&8192?3:2);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}F[a+213|0]=1;xb=d+48|0;break k;case 47:z=0;d=xb-48|0;xb=d;b=H[H[a>>2]-12>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){y=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[b+8>>2]=c+4;z=+y}M[a+224>>3]=z;Xh:{Yh:{Zh:{switch((j&255)-3|0){case 0:r=+O(O(K[a+216>>2])*O(72));break Yh;case 1:r=+K[a+216>>2];break Yh;case 2:r=+O(O(K[a+216>>2])/O(300));break Yh;case 3:break Zh;default:break Xh}}r=+O(O(K[a+216>>2])/O(25.399999618530273))}z=z*r;M[a+224>>3]=z}H[d+16>>2]=0;H[d+20>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=z;H[d+32>>2]=0;H[d+36>>2]=0;M[d+24>>3]=z;xh(H[a+120>>2],d,2);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}F[a+213|0]=1;xb=d+48|0;break k;case 41:H[C+32>>2]=0;H[C+36>>2]=1072693248;H[C+48>>2]=0;H[C+52>>2]=0;H[C+40>>2]=0;H[C+44>>2]=0;H[C+56>>2]=0;H[C+60>>2]=1072693248;H[R+8>>2]=0;H[R+12>>2]=0;H[R>>2]=0;H[R+4>>2]=0;b=C+32|0;lg(H[l>>2]+N|0,b);r=M[a+224>>3];M[C+32>>3]=r*M[C+32>>3];M[C+40>>3]=r*M[C+40>>3];M[C+48>>3]=r*M[C+48>>3];M[C+56>>3]=r*M[C+56>>3];M[C+64>>3]=r*M[C+64>>3];M[C+72>>3]=r*M[C+72>>3];xh(H[a+120>>2],b,4);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}F[a+213|0]=1;break k;case 44:break l;default:break k}}D=0;d=xb-48|0;xb=d;b=H[a>>2]-12|0;c=H[b>>2]+a|0;f=c+8|0;k=H[f>>2];h=H[c+12>>2];if(h>>>0<=k+3>>>0){r=0}else{y=(x(2,I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24)),B());H[c+8>>2]=k+4;b=H[b>>2]+a|0;h=H[b+12>>2];f=b+8|0;k=H[f>>2];r=+y}if(k+3>>>0>>0){y=(x(2,I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24)),B());H[f>>2]=k+4;D=+y}H[d+16>>2]=0;H[d+20>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d>>2]=0;H[d+4>>2]=1072693248;M[d+40>>3]=D;M[d+32>>3]=r;H[d+24>>2]=0;H[d+28>>2]=1072693248;xh(H[a+120>>2],d,j&8192?3:2);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}F[a+213|0]=1;xb=d+48|0}e=H[a>>2];b=e-12|0;d=H[b>>2]+N|0;c=H[d+4>>2];H[d+4>>2]=c+(H[d>>2]+(H[a+116>>2]+L-(c+ca)|0)|0);H[a+116>>2]=0;b=H[b>>2];d=N+b|0;c=H[d+8>>2];k=H[d+4>>2];if(c-k>>>0<12){break i}if(!I[a+212|0]){continue}break}}a=H[e-12>>2]+a|0;if(!I[a+29|0]){H[a+8>>2]=H[a+4>>2]}xb=C+80|0;return}a=$()|0;_()|0;b=H[d+32>>2];if(b){H[d+36>>2]=b;Kb(b)}break d}a=$()|0;_()|0;b=H[e+48>>2];if(b){H[e+52>>2]=b;Kb(b)}break d}a=$()|0;_()|0;b=H[f>>2];if(b){H[f+4>>2]=b;Kb(b)}break d}a=$()|0;_()|0;b=H[d+128>>2];if(b){H[d+132>>2]=b;Kb(b)}}ea(a|0);X()}ea(l|0);X()}ea(g|0);X()}ea(f|0);X()} +function g0(a){a=a|0;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,y=0,z=0,A=0,C=0,D=0,E=0,L=0,Q=0,R=0,S=0,U=O(0),V=0,W=0,Y=0,Z=0,fa=0;h=xb-160|0;xb=h;b=H[H[a>>2]-12>>2]+a|0;if(!H[b+4>>2]){F[b+29|0]=1}Y=a+29|0;v=a+4|0;Z=a+8|0;q=H[a>>2];d=H[q-12>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{while(1){m:{g=a+d|0;e=g+8|0;d=H[e>>2];f=H[g+12>>2];if(d>>>0>=f>>>0){break m}if(f-d>>>0<=7){F[g+29|0]=1;break l}b=q-12|0;n:{if(d+3>>>0>=f>>>0){c=0;break n}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[g+8>>2]=d+4;d=H[b>>2]+v|0;e=d+4|0;f=H[d+8>>2];d=H[d+4>>2]}o:{if(d+3>>>0>=f>>>0){break o}i=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[e>>2]=d+4;if(!i){break o}e=H[b>>2]+a|0;V=H[e+8>>2];d=i-8|0;if(d>>>0>H[e+12>>2]-V>>>0){F[e+29|0]=1;break l}fa=H[e+4>>2];H[a+116>>2]=d;if(c-123>>>0<=4294967173){if(H[a+36>>2]==1179469088&H[a+40>>2]==65536){break m}F[(H[b>>2]+a|0)+29|0]=1;break l}if(!((c|0)==1|W)){F[(H[b>>2]+a|0)+29|0]=1;break l}p:{q:{switch(c-1|0){case 113:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;H[h+48>>2]=0;H[h+52>>2]=1072693248;H[h+64>>2]=0;H[h+68>>2]=0;H[h+56>>2]=0;H[h+60>>2]=0;H[h+72>>2]=0;H[h+76>>2]=1072693248;F[h+95|0]=0;F[h+96|0]=0;F[h+97|0]=0;F[h+98|0]=0;H[h+88>>2]=0;H[h+92>>2]=0;H[h+80>>2]=0;H[h+84>>2]=0;f=0;e=0;d=H[b>>2]+v|0;Be(d,h);c=H[d+8>>2];b=H[d+4>>2];if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+16>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+20>>2]=f;f=0;r:{if(c>>>0<=b+3>>>0){e=0;break r}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+24>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+28>>2]=f;f=0;e=0;if(b>>>0>>0){e=I[b|0];H[d+4>>2]=b+1}F[h+32|0]=e;b=H[d+4>>2];if(b>>>0>2]){f=I[b|0];H[d+4>>2]=b+1}F[h+33|0]=f;f=0;b=0;c=H[d+4>>2];if(c>>>0>2]){b=I[c|0];H[d+4>>2]=c+1}F[h+34|0]=b;b=H[d+4>>2];if(b>>>0>2]){f=I[b|0];H[d+4>>2]=b+1}F[h+35|0]=f;b=0;c=H[d+8>>2];f=H[d+4>>2];s:{if(c>>>0<=f+3>>>0){e=0;break s}e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[d+4>>2]=f}H[h+36>>2]=e;if(c>>>0>f+3>>>0){b=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d+4>>2]=f+4}H[h+40>>2]=b;lg(d,h+48|0);f=0;b=0;c=H[d+4>>2];if(c>>>0>2]){b=I[c|0];H[d+4>>2]=c+1}F[h+96|0]=b;b=H[d+4>>2];if(b>>>0>2]){f=I[b|0];H[d+4>>2]=b+1}F[h+97|0]=f;f=0;b=0;c=H[d+4>>2];if(c>>>0>2]){b=I[c|0];H[d+4>>2]=c+1}F[h+98|0]=b;b=H[d+4>>2];if(b>>>0>2]){f=I[b|0];H[d+4>>2]=b+1}F[h+99|0]=f;f=0;c=H[d+8>>2];b=H[d+4>>2];t:{if(c>>>0<=b+3>>>0){e=0;break t}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+100>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+104>>2]=f;f=0;u:{if(c>>>0<=b+3>>>0){e=0;break u}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+108>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+112>>2]=f;f=0;v:{if(c>>>0<=b+3>>>0){e=0;break v}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+116>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+120>>2]=f;f=0;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+4>>2]=b+4}H[h+124>>2]=f;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+112>>2]](b,h,(H[H[a>>2]-12>>2]+a|0)+4|0)}q=0;i=xb-16|0;xb=i;H[i+12>>2]=0;w:{if(!(!(zb[H[H[a>>2]+132>>2]](a,H[h+104>>2],H[h+108>>2],H[h+112>>2],H[h+116>>2],108,i+12|0,i+8|0,i+4|0)|0)|!H[a+208>>2])){x:{if(!I[h+35|0]){d=H[i+4>>2];if(!d){d=0;break x}c=H[i+8>>2];if(!c){break x}while(1){e=0;if(c){while(1){F[(H[i+12>>2]+(N(c,q)+e<<2)|0)+3|0]=I[h+34|0];e=e+1|0;c=H[i+8>>2];if(e>>>0>>0){continue}break}d=H[i+4>>2]}else{c=0}q=q+1|0;if(q>>>0>>0){continue}break}break x}d=H[i+4>>2];if(!d){d=0;break x}c=H[i+8>>2];if(!c){break x}j=+I[h+34|0]/255;while(1){e=0;if(c){while(1){b=H[i+12>>2]+(N(c,q)+e<<2)|0;l=j*+I[b+3|0];y:{if(l<4294967296&l>=0){c=~~l>>>0;break y}c=0}F[b+3|0]=c;e=e+1|0;c=H[i+8>>2];if(e>>>0>>0){continue}break}d=H[i+4>>2]}else{c=0}q=q+1|0;if(q>>>0>>0){continue}break}}e=H[i+12>>2];g=H[a+208>>2];b=e;if(!g){break w}c=H[h+16>>2];l=+(c|0);b=H[h+20>>2];j=+(b|0);zb[H[H[g>>2]+16>>2]](g,l,j,+(c+H[h+24>>2]|0)-l,+(b+H[h+28>>2]|0)-j,e,H[i+8>>2],d)}b=H[i+12>>2]}if(b){Kb(b)}xb=i+16|0;break p;case 75:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;H[h+48>>2]=0;H[h+52>>2]=1072693248;H[h+64>>2]=0;H[h+68>>2]=0;H[h+56>>2]=0;H[h+60>>2]=0;H[h+72>>2]=0;H[h+76>>2]=1072693248;F[h+95|0]=0;F[h+96|0]=0;F[h+97|0]=0;F[h+98|0]=0;H[h+88>>2]=0;H[h+92>>2]=0;H[h+80>>2]=0;H[h+84>>2]=0;f=0;e=0;d=H[b>>2]+v|0;Be(d,h);c=H[d+8>>2];b=H[d+4>>2];if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+16>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+20>>2]=e;e=0;z:{if(c>>>0<=b+3>>>0){f=0;break z}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+24>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+28>>2]=e;e=0;A:{if(c>>>0<=b+3>>>0){f=0;break A}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+32>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+36>>2]=e;e=0;f=0;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+4>>2]=b+4}H[h+40>>2]=f;lg(d,h+48|0);b=H[d+4>>2];if(b>>>0>2]){e=I[b|0];H[d+4>>2]=b+1}F[h+96|0]=e;f=0;b=0;c=H[d+4>>2];if(c>>>0>2]){b=I[c|0];H[d+4>>2]=c+1}F[h+97|0]=b;b=H[d+4>>2];if(b>>>0>2]){f=I[b|0];H[d+4>>2]=b+1}F[h+98|0]=f;e=0;f=0;b=H[d+4>>2];if(b>>>0>2]){f=I[b|0];H[d+4>>2]=b+1}F[h+99|0]=f;c=H[d+8>>2];b=H[d+4>>2];if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+100>>2]=e;e=0;B:{if(c>>>0<=b+3>>>0){f=0;break B}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+104>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+108>>2]=e;e=0;C:{if(c>>>0<=b+3>>>0){f=0;break C}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+112>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+4>>2]=b+4}H[h+116>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+120>>2]](b,h,(H[H[a>>2]-12>>2]+a|0)+4|0)}g=xb-16|0;xb=g;H[g+12>>2]=0;D:{if(!(zb[H[H[a>>2]+132>>2]](a,H[h+104>>2],H[h+108>>2],H[h+112>>2],H[h+116>>2],100,g+12|0,g+8|0,g+4|0)|0)){break D}d=H[a+208>>2];if(!d){break D}c=H[h+16>>2];l=+(c|0);b=H[h+20>>2];j=+(b|0);zb[H[H[d>>2]+16>>2]](d,l,j,+(c+H[h+24>>2]|0)-l,+(b+H[h+28>>2]|0)-j,H[g+12>>2],H[g+8>>2],H[g+4>>2])}E:{F:{if(H[a+208>>2]){G:{H:{b=H[h+32>>2];if((b|0)<=10485960){if((b|0)==66){break H}if((b|0)!=5898313){break G}b=H[H[a+120>>2]+8>>2];if(!b){break G}c=Qb(4);H[g+12>>2]=c;F[c|0]=I[b+10|0];F[c+1|0]=I[b+9|0];b=I[b+8|0];F[c+3|0]=30;F[c+2|0]=b;H[g+4>>2]=1;H[g+8>>2]=1;break G}if((b|0)!=10485961){if((b|0)!=15728673){if((b|0)!=16711778){break G}b=Qb(4);H[g+12>>2]=b;F[b|0]=255;F[b+1|0]=255;F[b+2|0]=255;F[b+3|0]=255;H[g+4>>2]=1;H[g+8>>2]=1;break G}b=H[H[a+120>>2]+8>>2];if(!b){break G}c=Qb(4);H[g+12>>2]=c;F[c|0]=I[b+10|0];F[c+1|0]=I[b+9|0];b=I[b+8|0];F[c+3|0]=255;F[c+2|0]=b;H[g+4>>2]=1;H[g+8>>2]=1;break G}b=H[H[a+120>>2]+8>>2];if(!b){break G}c=Qb(4);H[g+12>>2]=c;F[c|0]=I[b+10|0];F[c+1|0]=I[b+9|0];b=I[b+8|0];F[c+3|0]=30;F[c+2|0]=b;H[g+4>>2]=1;H[g+8>>2]=1;break G}b=Qb(4);H[g+12>>2]=b;F[b|0]=0;F[b+1|0]=0;F[b+2|0]=0;F[b+3|0]=255;H[g+4>>2]=1;H[g+8>>2]=1}c=H[g+12>>2];if(!c){break E}e=H[a+208>>2];if(!e){break F}d=H[h+16>>2];l=+(d|0);b=H[h+20>>2];j=+(b|0);zb[H[H[e>>2]+16>>2]](e,l,j,+(d+H[h+24>>2]|0)-l,+(b+H[h+28>>2]|0)-j,c,H[g+8>>2],H[g+4>>2])}c=H[g+12>>2];if(!c){break E}}Kb(c)}xb=g+16|0;break p;case 80:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;d=0;f=0;e=H[b>>2]+v|0;Be(e,h);c=H[e+8>>2];b=H[e+4>>2];if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+16>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+20>>2]=f;f=0;I:{if(c>>>0<=b+3>>>0){d=0;break I}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+24>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+28>>2]=f;f=0;J:{if(c>>>0<=b+3>>>0){d=0;break J}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+32>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+36>>2]=f;f=0;K:{if(c>>>0<=b+3>>>0){d=0;break K}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+40>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+44>>2]=f;f=0;L:{if(c>>>0<=b+3>>>0){d=0;break L}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+48>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+52>>2]=f;f=0;M:{if(c>>>0<=b+3>>>0){d=0;break M}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+56>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+60>>2]=f;f=0;N:{if(c>>>0<=b+3>>>0){d=0;break N}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+64>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+4>>2]=b+4}H[h+68>>2]=f;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+116>>2]](b,h,(H[H[a>>2]-12>>2]+a|0)+4|0)}g=xb-16|0;xb=g;H[g+12>>2]=0;O:{if(!(!(zb[H[H[a>>2]+132>>2]](a,H[h+40>>2],H[h+44>>2],H[h+48>>2],H[h+52>>2],80,g+12|0,g+8|0,g+4|0)|0)|!H[a+208>>2])){kq(H[h+60>>2],g+12|0,H[g+8>>2],H[g+4>>2]);d=H[g+12>>2];e=H[a+208>>2];b=d;if(!e){break O}c=H[h+16>>2];l=+(c|0);b=H[h+20>>2];j=+(b|0);zb[H[H[e>>2]+16>>2]](e,l,j,+(c+H[h+64>>2]|0)-l,+(b+H[h+68>>2]|0)-j,d,H[g+8>>2],H[g+4>>2])}b=H[g+12>>2]}if(b){Kb(b)}xb=g+16|0;break p;case 79:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;d=0;f=0;e=H[b>>2]+v|0;Be(e,h);c=H[e+8>>2];b=H[e+4>>2];if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+16>>2]=f;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+20>>2]=d;d=0;P:{if(c>>>0<=b+3>>>0){f=0;break P}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+24>>2]=f;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+28>>2]=d;d=0;Q:{if(c>>>0<=b+3>>>0){f=0;break Q}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+32>>2]=f;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+36>>2]=d;d=0;R:{if(c>>>0<=b+3>>>0){f=0;break R}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+40>>2]=f;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+44>>2]=d;d=0;S:{if(c>>>0<=b+3>>>0){f=0;break S}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+48>>2]=f;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+52>>2]=d;d=0;T:{if(c>>>0<=b+3>>>0){f=0;break T}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+56>>2]=f;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+4>>2]=b}H[h+60>>2]=d;d=0;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+4>>2]=b+4}H[h+64>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+124>>2]](b,h,(H[H[a>>2]-12>>2]+a|0)+4|0)}c=xb-16|0;xb=c;H[c+12>>2]=0;U:{if(!(zb[H[H[a>>2]+132>>2]](a,H[h+40>>2],H[h+44>>2],H[h+48>>2],H[h+52>>2],76,c+12|0,c+8|0,c+4|0)|0)){break U}b=H[a+208>>2];if(!b){break U}l=+H[h>>2];j=+H[h+4>>2];zb[H[H[b>>2]+16>>2]](b,l,j,+H[h+8>>2]-l,+H[h+12>>2]-j,H[c+12>>2],H[c+8>>2],H[c+4>>2])}b=H[c+12>>2];if(b){Kb(b)}xb=c+16|0;break p;case 76:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;H[h+48>>2]=0;H[h+52>>2]=1072693248;H[h+64>>2]=0;H[h+68>>2]=0;H[h+56>>2]=0;H[h+60>>2]=0;H[h+72>>2]=0;H[h+76>>2]=1072693248;F[h+95|0]=0;F[h+96|0]=0;F[h+97|0]=0;F[h+98|0]=0;H[h+88>>2]=0;H[h+92>>2]=0;H[h+80>>2]=0;H[h+84>>2]=0;f=0;e=0;d=H[b>>2]+v|0;Be(d,h);c=H[d+8>>2];b=H[d+4>>2];if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+16>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+20>>2]=e;e=0;V:{if(c>>>0<=b+3>>>0){f=0;break V}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+24>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+28>>2]=e;e=0;W:{if(c>>>0<=b+3>>>0){f=0;break W}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+32>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+36>>2]=e;e=0;f=0;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+4>>2]=b+4}H[h+40>>2]=f;lg(d,h+48|0);b=H[d+4>>2];if(b>>>0>2]){e=I[b|0];H[d+4>>2]=b+1}F[h+96|0]=e;f=0;b=0;c=H[d+4>>2];if(c>>>0>2]){b=I[c|0];H[d+4>>2]=c+1}F[h+97|0]=b;b=H[d+4>>2];if(b>>>0>2]){f=I[b|0];H[d+4>>2]=b+1}F[h+98|0]=f;e=0;f=0;b=H[d+4>>2];if(b>>>0>2]){f=I[b|0];H[d+4>>2]=b+1}F[h+99|0]=f;c=H[d+8>>2];b=H[d+4>>2];if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+100>>2]=e;e=0;X:{if(c>>>0<=b+3>>>0){f=0;break X}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+104>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+108>>2]=e;e=0;Y:{if(c>>>0<=b+3>>>0){f=0;break Y}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+112>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+116>>2]=e;e=0;Z:{if(c>>>0<=b+3>>>0){f=0;break Z}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+4>>2]=b}H[h+120>>2]=f;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+4>>2]=b+4}H[h+124>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+128>>2]](b,h,(H[H[a>>2]-12>>2]+a|0)+4|0)}g=xb-16|0;xb=g;H[g+12>>2]=0;_:{if(!(!(zb[H[H[a>>2]+132>>2]](a,H[h+104>>2],H[h+108>>2],H[h+112>>2],H[h+116>>2],108,g+12|0,g+8|0,g+4|0)|0)|!H[a+208>>2])){kq(H[h+32>>2],g+12|0,H[g+8>>2],H[g+4>>2]);d=H[g+12>>2];e=H[a+208>>2];b=d;if(!e){break _}c=H[h+16>>2];l=+(c|0);b=H[h+20>>2];j=+(b|0);zb[H[H[e>>2]+16>>2]](e,l,j,+(c+H[h+24>>2]|0)-l,+(b+H[h+28>>2]|0)-j,d,H[g+8>>2],H[g+4>>2])}b=H[g+12>>2]}if(b){Kb(b)}xb=g+16|0;break p;case 28:f=0;e=0;k=xb-16|0;xb=k;H[k+8>>2]=0;H[k+12>>2]=0;d=H[H[a>>2]-12>>2]+a|0;b=H[d+8>>2];c=H[d+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[k>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[k+4>>2]=f;f=0;$:{if(c>>>0<=b+3>>>0){e=0;break $}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[k+8>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4}H[k+12>>2]=f;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){i=xb+-64|0;xb=i;c=H[k+8>>2];b=H[k>>2];d=(c|0)>(b|0);e=(d?1:-1)+c|0;H[k+8>>2]=e;d=b+(d?-1:1)|0;H[k>>2]=d;c=H[k+4>>2];b=H[k+12>>2];g=(c|0)<(b|0);c=(g?-1:1)+c|0;H[k+4>>2]=c;b=b+(g?1:-1)|0;H[k+12>>2]=b;M[i+40>>3]=c|0;M[i+48>>3]=e|0;M[i+56>>3]=b|0;M[i+32>>3]=d|0;c=zb[H[H[a>>2]+36>>2]](a)|0;b=H[c>>2];M[i+8>>3]=H[c+4>>2];M[i>>3]=b|0;b=H[c+8>>2];M[i+24>>3]=H[c+12>>2];M[i+16>>3]=b|0;b=H[a+208>>2];aa:{if(!b){break aa}zb[H[H[b>>2]+284>>2]](b,k);b=H[a+208>>2];zb[H[H[b>>2]+68>>2]](b,i+32|0,i);b=H[a+208>>2];if(!b){break aa}zb[H[H[b>>2]+84>>2]](b)}xb=i- -64|0}xb=k+16|0;break p;case 74:d=0;f=0;g=xb-16|0;xb=g;b=H[a>>2]-12|0;c=H[b>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>2]){d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4}H[g+12>>2]=d;b=H[b>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[g+8>>2]=f;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){c=g+12|0;b=g+8|0;d=H[a+208>>2];if(d){zb[H[H[d>>2]+288>>2]](d,c,b,(H[H[a>>2]-12>>2]+a|0)+4|0);b=H[a+208>>2];zb[H[H[b>>2]+60>>2]](b)}b=H[H[a>>2]-12>>2]+a|0;H[b+8>>2]=(H[a+116>>2]+H[b+8>>2]|0)-8}xb=g+16|0;break p;case 29:f=0;e=0;g=xb-16|0;xb=g;H[g+8>>2]=0;H[g+12>>2]=0;d=H[H[a>>2]-12>>2]+a|0;b=H[d+8>>2];c=H[d+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+4>>2]=f;f=0;ba:{if(c>>>0<=b+3>>>0){e=0;break ba}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+8>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4}H[g+12>>2]=f;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){c=xb-32|0;xb=c;b=H[g>>2];M[c+8>>3]=H[g+4>>2];M[c>>3]=b|0;b=H[g+8>>2];M[c+24>>3]=H[g+12>>2];M[c+16>>3]=b|0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+312>>2]](b,g);b=H[a+208>>2];zb[H[H[b>>2]+64>>2]](b,c)}xb=c+32|0}xb=g+16|0;break p;case 66:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];ca:{if(!b){break ca}zb[H[H[b>>2]+276>>2]](b,h);c=H[a+156>>2];if(!c){break ca}b=H[a+208>>2];zb[H[H[b>>2]+72>>2]](b,c,H[h>>2],H[a+120>>2]+496|0);b=H[a+156>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+156>>2]=0}b=H[a+208>>2];if(!b){break ca}zb[H[H[b>>2]+84>>2]](b)}break p;case 27:b=H[a+208>>2];da:{if(!b){break da}zb[H[H[b>>2]+292>>2]](b);b=H[a+208>>2];zb[H[H[b>>2]+60>>2]](b);b=H[a+208>>2];if(!b){break da}zb[H[H[b>>2]+84>>2]](b)}break p;case 0:b=0;d=0;Be((H[H[a>>2]-12>>2]+a|0)+4|0,a+4|0);Be((H[H[a>>2]-12>>2]+a|0)+4|0,a+20|0);i=H[a>>2]-12|0;c=H[i>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>2]){b=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4}H[a+36>>2]=b;b=H[i>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[a+40>>2]=d;d=0;b=0;c=H[i>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>2]){b=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4}H[a+44>>2]=b;b=H[i>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[a+48>>2]=d;d=0;b=0;c=H[i>>2]+a|0;e=H[c+8>>2];if(e+1>>>0>2]){b=I[e|0]|I[e+1|0]<<8;H[c+8>>2]=e+2}G[a+52>>1]=b;b=H[i>>2]+a|0;c=H[b+8>>2];if(c+1>>>0>2]){d=I[c|0]|I[c+1|0]<<8;H[b+8>>2]=c+2}G[a+54>>1]=d;d=0;b=0;c=H[i>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>2]){b=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4}H[a+56>>2]=b;b=H[i>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[a+60>>2]=d;e=0;d=0;b=H[i>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[a+64>>2]=d;g=H[i>>2]+a|0;b=H[g+8>>2];d=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[a+68>>2]=e;e=0;c=0;if(d>>>0>b+3>>>0){c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[a+72>>2]=c;g=H[i>>2]+a|0;d=H[g+8>>2];c=H[g+12>>2];if(d+3>>>0>>0){e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[g+8>>2]=d}H[a+76>>2]=e;b=0;if(c>>>0>d+3>>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[g+8>>2]=d+4}H[a+80>>2]=b;ea:{if(!(H[a+36>>2]==1179469088&H[a+40>>2]==65536)){F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break ea}b=H[H[a>>2]-12>>2]+a|0;H[b+8>>2]=(H[a+116>>2]+H[b+8>>2]|0)-80;A=+H[a+76>>2];e=a+68|0;w=+H[e>>2];y=+H[a+20>>2]/100/A*w;j=T(y+.5);fa:{if(P(j)<2147483648){c=~~j;break fa}c=-2147483648}H[a+84>>2]=c;s=+H[a+80>>2];p=+H[a+72>>2];l=+H[a+24>>2]/100/s*p;j=T(l+.5);ga:{if(P(j)<2147483648){b=~~j;break ga}b=-2147483648}H[a+104>>2]=b;H[a+100>>2]=c;H[a+88>>2]=b;j=T(+H[a+28>>2]/100/A*w-y+.5);ha:{if(P(j)<2147483648){d=~~j;break ha}d=-2147483648}c=d+c|0;H[a+92>>2]=c;j=T(+H[a+32>>2]/100/s*p-l+.5);ia:{if(P(j)<2147483648){d=~~j;break ia}d=-2147483648}b=d+b|0;H[a+112>>2]=b;H[a+108>>2]=c;H[a+96>>2]=b;Vy(H[a+120>>2],e);Uy(H[a+120>>2],e);b=H[a+208>>2];if(b){zb[H[H[b>>2]+8>>2]](b);b=H[a+208>>2];zb[H[H[b>>2]+108>>2]](b,a+4|0)}}break p;case 13:d=H[b>>2]+v|0;g=d;e=d+4|0;c=H[d+8>>2];d=H[d+4>>2];if(c>>>0>d+3>>>0){H[g+4>>2]=d+4;d=H[b>>2]+v|0;e=d+4|0;c=H[d+8>>2];d=H[d+4>>2]}if(d+3>>>0>>0){H[e>>2]=d+4;e=H[b>>2]+Z|0;d=H[e>>2]}H[e>>2]=(d+i|0)-20;c=H[b>>2]+v|0;b=H[c+4>>2];if(b+3>>>0>2]){H[c+4>>2]=b+4}Tp(a);break p;case 40:c=0;q=0;b=xb-32|0;xb=b;i=H[a>>2]-12|0;g=H[i>>2]+a|0;d=H[g+8>>2];e=H[g+12>>2];if(d+3>>>0>>0){q=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[g+8>>2]=d}H[b+24>>2]=q;if(e>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[g+8>>2]=d+4}H[b+28>>2]=c;d=0;c=H[i>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>2]){d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4}H[b+20>>2]=d;c=H[i>>2]+a|0;d=H[c+8>>2];if(d+3>>>0>2]){U=(x(2,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)),B());H[c+8>>2]=d+4;p=+U}else{p=0}M[b+8>>3]=p;c=H[i>>2]+a|0;d=H[c+8>>2];if(d+3>>>0>2]){U=(x(2,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)),B());H[c+8>>2]=d+4;p=+U}else{p=0}M[b>>3]=p;c=H[a+216>>2];if(!(I[c+213|0]?c:0)){i=b+24|0;g=b+20|0;e=b+8|0;c=H[a+208>>2];ja:{if(!c){break ja}if(H[a+156>>2]){if((zb[H[H[c>>2]+96>>2]](c)|0)==4){break ja}c=H[a+208>>2]}zb[H[H[c>>2]+324>>2]](c,i,g,e,b)}d=H[i+4>>2];g=H[g>>2];w=+(d+g|0);c=H[i>>2];y=+(c+g|0);s=+(d-g|0);p=+(c-g|0);l=M[b>>3];j=M[e>>3];c=H[a+156>>2];ka:{if(c){if(Je(c,p,s,y,w,j,l)){break ka}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break ka}c=H[a+208>>2];if(!c){break ka}zb[H[H[c>>2]+44>>2]](c,p,s,y,w,j,l)}c=H[a+208>>2];if(!(!(!H[a+156>>2]|!c)|!c)){zb[H[H[c>>2]+52>>2]](c,1);c=H[a+208>>2];zb[H[H[c>>2]+56>>2]](c)}}xb=b+32|0;break p;case 44:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;Qm(a,h,h+152|0,h+144|0,h+136|0,h+128|0);b=H[a+216>>2];if(I[b+213|0]?b:0){break p}d=h+152|0;c=h+144|0;b=H[a+208>>2];la:{if(!b){break la}if(H[a+156>>2]){if((zb[H[H[b>>2]+96>>2]](b)|0)==4){break la}b=H[a+208>>2]}zb[H[H[b>>2]+328>>2]](b,h,d,c)}A=qe(H[h>>2],H[h+4>>2],H[h+8>>2],H[h+12>>2],H[d>>2],H[d+4>>2]);j=qe(H[h>>2],H[h+4>>2],H[h+8>>2],H[h+12>>2],H[c>>2],H[c+4>>2]);d=H[a+120>>2];k=H[d+680>>2];i=H[d+664>>2];b=H[h+4>>2];c=H[h+12>>2];ma:{if(!((b|0)<=(c|0)|H[d+668>>2]>=0)){H[h+4>>2]=c;H[h+12>>2]=b;e=c;break ma}e=b;b=c}d=H[h>>2];g=H[h+8>>2];na:{if(!((i|0)>=0|(d|0)>=(g|0))){H[h>>2]=g;H[h+8>>2]=d;c=g;break na}c=d;d=g}w=A*-.017453292519943295;p=ze(w);y=j-A;s=y+-360;g=(k|0)==1;l=+(b-e|0);j=l*.5;z=p;p=+(d-c|0);l=qi(ne(w)/l*.5,z/p*.5);j=j+ +(e|0)-j*ne(l);oa:{if(P(j)<2147483648){d=~~j;break oa}d=-2147483648}w=+(d|0);j=p*.5;j=j*ze(l)+(j+ +(c|0));pa:{if(P(j)<2147483648){b=~~j;break pa}b=-2147483648}j=+(b|0);c=H[a+156>>2];qa:{ra:{if(c){if(Qd(c,j,w)){break ra}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break qa}c=H[a+208>>2];if(!c){break ra}zb[H[H[c>>2]+32>>2]](c,j,w)}c=H[a+120>>2];H[c+672>>2]=b;H[c+676>>2]=d}y=g?y:s;s=+H[h+12>>2];p=+H[h+8>>2];l=+H[h+4>>2];j=+H[h>>2];b=H[a+156>>2];sa:{if(b){if(Je(b,j,l,p,s,A,y)){break sa}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break sa}b=H[a+208>>2];if(!b){break sa}zb[H[H[b>>2]+44>>2]](b,j,l,p,s,A,y)}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,1);b=H[a+208>>2];zb[H[H[b>>2]+56>>2]](b)}break p;case 54:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;Qm(a,h,h+152|0,h+144|0,h+136|0,h+128|0);b=H[a+216>>2];if(I[b+213|0]?b:0){break p}d=h+152|0;c=h+144|0;b=H[a+208>>2];ta:{if(!b){break ta}if(H[a+156>>2]){if((zb[H[H[b>>2]+96>>2]](b)|0)==4){break ta}b=H[a+208>>2]}zb[H[H[b>>2]+332>>2]](b,h,d,c)}w=qe(H[h>>2],H[h+4>>2],H[h+8>>2],H[h+12>>2],H[d>>2],H[d+4>>2]);j=qe(H[h>>2],H[h+4>>2],H[h+8>>2],H[h+12>>2],H[c>>2],H[c+4>>2]);d=H[a+120>>2];i=H[(d+656|0)+8>>2];b=H[h+12>>2];c=H[h+4>>2];ua:{if(!(H[d+668>>2]>=0|(b|0)>=(c|0))){H[h+4>>2]=b;H[h+12>>2]=c;e=c;break ua}e=b;b=c}d=H[h+8>>2];g=H[h>>2];va:{if(!((d|0)<=(g|0)|(i|0)>=0)){H[h>>2]=d;H[h+8>>2]=g;c=g;break va}c=d;d=g}y=j-w;s=+(e|0);p=+(c|0);l=+(b|0);j=+(d|0);b=H[a+156>>2];wa:{if(b){if(Je(b,j,l,p,s,w,y)){break wa}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break wa}b=H[a+208>>2];if(!b){break wa}zb[H[H[b>>2]+44>>2]](b,j,l,p,s,w,y)}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,1);b=H[a+208>>2];zb[H[H[b>>2]+56>>2]](b)}break p;case 45:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;Qm(a,h,h+152|0,h+144|0,h+136|0,h+128|0);b=H[a+216>>2];if(I[b+213|0]?b:0){break p}e=h+152|0;b=h+144|0;d=H[a+208>>2];xa:{if(!d){break xa}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break xa}d=H[a+208>>2]}zb[H[H[d>>2]+336>>2]](d,h,e,b)}w=qe(H[h>>2],H[h+4>>2],H[h+8>>2],H[h+12>>2],H[e>>2],H[e+4>>2]);y=qe(H[h>>2],H[h+4>>2],H[h+8>>2],H[h+12>>2],H[b>>2],H[b+4>>2]);d=H[h>>2];c=H[h+8>>2];s=w*-.017453292519943295;p=ze(s);b=H[h+4>>2];l=+(H[h+12>>2]-b|0);j=l*.5;z=p;p=+(c-d|0);l=qi(ne(s)/l*.5,z/p*.5);j=j+ +(b|0)-j*ne(l);ya:{if(P(j)<2147483648){c=~~j;break ya}c=-2147483648}s=+(c|0);j=p*.5;j=j*ze(l)+(j+ +(d|0));za:{if(P(j)<2147483648){b=~~j;break za}b=-2147483648}j=+(b|0);d=H[a+156>>2];Aa:{Ba:{if(d){if(Qd(d,j,s)){break Ba}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Aa}d=H[a+208>>2];if(!d){break Ba}zb[H[H[d>>2]+32>>2]](d,j,s)}d=H[a+120>>2];H[d+672>>2]=b;H[d+676>>2]=c}y=y-w;s=+H[h+12>>2];p=+H[h+8>>2];l=+H[h+4>>2];j=+H[h>>2];b=H[a+156>>2];Ca:{Da:{Ea:{if(b){if(Je(b,j,l,p,s,w,y)){break Ea}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ea}b=H[a+208>>2];if(!b){d=H[e+4>>2];b=H[e>>2];break Da}zb[H[H[b>>2]+44>>2]](b,j,l,p,s,w,y)}d=H[e+4>>2];l=+(d|0);b=H[e>>2];j=+(b|0);c=H[a+156>>2];if(c){if(jd(c,j,l)){break Da}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ca}c=H[a+208>>2];if(!c){break Da}zb[H[H[c>>2]+36>>2]](c,j,l)}c=H[a+120>>2];H[c+672>>2]=b;H[c+676>>2]=d}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,3);b=H[a+208>>2];zb[H[H[b>>2]+56>>2]](b)}break p;case 41:f=0;e=0;g=xb-16|0;xb=g;H[g+8>>2]=0;H[g+12>>2]=0;d=H[H[a>>2]-12>>2]+a|0;b=H[d+8>>2];c=H[d+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+4>>2]=f;f=0;Fa:{if(c>>>0<=b+3>>>0){e=0;break Fa}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+8>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4}H[g+12>>2]=f;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){b=H[a+208>>2];Ga:{if(!b){break Ga}if(H[a+156>>2]){if((zb[H[H[b>>2]+96>>2]](b)|0)==4){break Ga}b=H[a+208>>2]}zb[H[H[b>>2]+340>>2]](b,g)}b=H[a+120>>2];d=H[b+664>>2];Ha:{if(H[b+668>>2]>=0){break Ha}c=H[g+4>>2];b=H[g+12>>2];if((c|0)<=(b|0)){break Ha}H[g+4>>2]=b;H[g+12>>2]=c}Ia:{if((d|0)>=0){break Ia}c=H[g>>2];b=H[g+8>>2];if((c|0)>=(b|0)){break Ia}H[g>>2]=b;H[g+8>>2]=c}b=H[g>>2];Ja:{if(H[H[a+120>>2]+680>>2]==1){s=+(b|0);p=+H[g+12>>2];l=+H[g+8>>2];j=+H[g+4>>2];b=H[a+156>>2];if(b){if(Je(b,s,j,l,p,0,360)){break Ja}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ja}b=H[a+208>>2];if(!b){break Ja}zb[H[H[b>>2]+44>>2]](b,s,j,l,p,0,360);break Ja}s=+(b|0);p=+H[g+4>>2];l=+H[g+8>>2];j=+H[g+12>>2];b=H[a+156>>2];if(b){if(Je(b,s,j,l,p,0,360)){break Ja}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ja}b=H[a+208>>2];if(!b){break Ja}zb[H[H[b>>2]+44>>2]](b,s,j,l,p,0,360)}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,3);b=H[a+208>>2];zb[H[H[b>>2]+56>>2]](b)}}xb=g+16|0;break p;case 82:b=xb-96|0;xb=b;H[b+16>>2]=0;H[b+20>>2]=0;H[b+68>>2]=0;H[b+72>>2]=0;H[b+76>>2]=0;H[b+80>>2]=0;H[b+88>>2]=0;H[b+92>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;c=H[H[a>>2]-12>>2];H[197455]=0;da(1802,(a+c|0)+4|0,b+8|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break k}c=H[a+216>>2];Ka:{if(c){H[197455]=0;d=I[c+213|0];c=H[197455];H[197455]=0;if((c|0)==1){break k}if(d){break Ka}}H[197455]=0;ba(1803,a|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break k}}c=H[b+88>>2];if(c){Kb(c);H[b+88>>2]=0}c=H[b+92>>2];if(c){Kb(c)}xb=b+96|0;break p;case 83:b=xb-96|0;xb=b;H[b+16>>2]=0;H[b+20>>2]=0;H[b+68>>2]=0;H[b+72>>2]=0;H[b+76>>2]=0;H[b+80>>2]=0;H[b+88>>2]=0;H[b+92>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;c=H[H[a>>2]-12>>2];H[197455]=0;da(1804,(a+c|0)+4|0,b+8|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break k}c=H[a+216>>2];La:{if(c){H[197455]=0;d=I[c+213|0];c=H[197455];H[197455]=0;if((c|0)==1){break k}if(d){break La}}H[197455]=0;ba(1805,a|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break k}}c=H[b+88>>2];if(c){Kb(c);H[b+88>>2]=0}c=H[b+92>>2];if(c){Kb(c)}xb=b+96|0;break p;case 61:f=0;e=0;g=xb-16|0;xb=g;H[g+8>>2]=0;H[g+12>>2]=0;d=H[H[a>>2]-12>>2]+a|0;b=H[d+8>>2];c=H[d+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+4>>2]=f;f=0;Ma:{if(c>>>0<=b+3>>>0){e=0;break Ma}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+8>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4}H[g+12>>2]=f;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){b=H[a+208>>2];if(b){zb[H[H[b>>2]+228>>2]](b,g)}b=H[a+156>>2];Na:{if(!b){break Na}zb[H[H[b>>2]+8>>2]](b,H[a+208>>2],0,1,-1);b=H[a+156>>2];if(!b){break Na}zb[H[H[b>>2]+4>>2]](b);H[a+156>>2]=0}}xb=g+16|0;break p;case 53:e=0;d=H[b>>2]+v|0;f=H[d+4>>2];b=H[d+8>>2];Oa:{if(f+3>>>0>=b>>>0){c=0;break Oa}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[d+4>>2]=f}H[h>>2]=c;if(b>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d+4>>2]=f+4}H[h+4>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];Pa:{if(!b){break Pa}if(H[a+156>>2]){if((zb[H[H[b>>2]+96>>2]](b)|0)==4){break Pa}b=H[a+208>>2]}zb[H[H[b>>2]+352>>2]](b,h)}d=H[h+4>>2];l=+(d|0);c=H[h>>2];j=+(c|0);b=H[a+156>>2];Qa:{Ra:{if(b){if(jd(b,j,l)){break Ra}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Qa}b=H[a+208>>2];if(!b){break Ra}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}break p;case 46:H[h+8>>2]=0;H[h+12>>2]=0;H[h>>2]=0;H[h+4>>2]=0;Qm(a,h,h+152|0,h+144|0,h+136|0,h+128|0);b=H[a+216>>2];if(I[b+213|0]?b:0){break p}d=h+152|0;c=h+144|0;b=H[a+208>>2];Sa:{if(!b){break Sa}if(H[a+156>>2]){if((zb[H[H[b>>2]+96>>2]](b)|0)==4){break Sa}b=H[a+208>>2]}zb[H[H[b>>2]+356>>2]](b,h,d,c)}w=qe(H[h>>2],H[h+4>>2],H[h+8>>2],H[h+12>>2],H[d>>2],H[d+4>>2]);y=qe(H[h>>2],H[h+4>>2],H[h+8>>2],H[h+12>>2],H[c>>2],H[c+4>>2])-w;s=+H[h+12>>2];p=+H[h+8>>2];l=+H[h+4>>2];j=+H[h>>2];b=H[a+156>>2];Ta:{if(b){if(Je(b,j,l,p,s,w,y)){break Ta}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ta}b=H[a+208>>2];if(!b){break Ta}zb[H[H[b>>2]+44>>2]](b,j,l,p,s,w,y)}d=(H[h+12>>2]+H[h+4>>2]|0)/2|0;l=+(d|0);c=(H[h+8>>2]+H[h>>2]|0)/2|0;j=+(c|0);b=H[a+156>>2];Ua:{Va:{if(b){if(jd(b,j,l)){break Va}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ua}b=H[a+208>>2];if(!b){break Va}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}b=H[a+156>>2];Wa:{if(b){if(hf(b)){break Wa}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Wa}b=H[a+208>>2];if(!b){break Wa}zb[H[H[b>>2]+48>>2]](b)}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,3);b=H[a+208>>2];zb[H[H[b>>2]+56>>2]](b)}break p;case 1:c=0;e=0;f=xb-32|0;xb=f;H[f+24>>2]=0;H[f+28>>2]=0;o=H[a>>2]-12|0;g=H[o>>2]+a|0;b=H[g+8>>2];d=H[g+12>>2];if(b+3>>>0>>0){c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+16>>2]=c;if(d>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+20>>2]=e;e=0;Xa:{if(d>>>0<=b+3>>>0){c=0;break Xa}c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+24>>2]=c;if(d>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[f+28>>2]=e;b=H[o>>2]+a|0;c=H[b+8>>2];Ya:{if(c+3>>>0>=K[b+12>>2]){break Ya}m=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!m){break Ya}H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;Za:{_a:{if(m>>>0>=536870912){H[197455]=0;ia(1806,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break _a}X()}H[197455]=0;c=m<<3;q=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Za}}b=$()|0;_()|0;a=H[f>>2];if(!a){break g}H[f+4>>2]=a;Kb(a);break g}H[f>>2]=q;b=c+q|0;H[f+8>>2]=b;e=0;r=Nb(q,0,c);H[f+4>>2]=b;g=H[o>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];$a:{if(b+3>>>0>=c>>>0){d=0;break $a}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[r>>2]=d;if(c>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[r+4>>2]=e;if(m>>>0>=2){n=a+4|0;b=1;while(1){i=r+(b<<3)|0;e=0;k=n+H[o>>2]|0;d=H[k+4>>2];g=H[k+8>>2];ab:{if(d+3>>>0>=g>>>0){c=0;break ab}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+4>>2]=d}H[i>>2]=c;if(g>>>0>d+3>>>0){e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[k+4>>2]=d+4}H[i+4>>2]=e;i=r+(b+1<<3)|0;e=0;k=n+H[o>>2]|0;d=H[k+4>>2];g=H[k+8>>2];bb:{if(d+3>>>0>=g>>>0){c=0;break bb}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+4>>2]=d}H[i>>2]=c;if(g>>>0>d+3>>>0){e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[k+4>>2]=d+4}H[i+4>>2]=e;i=r+(b+2<<3)|0;e=0;k=n+H[o>>2]|0;d=H[k+4>>2];g=H[k+8>>2];cb:{if(d+3>>>0>=g>>>0){c=0;break cb}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+4>>2]=d}H[i>>2]=c;if(g>>>0>d+3>>>0){e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[k+4>>2]=d+4}H[i+4>>2]=e;b=b+3|0;if(m>>>0>b>>>0){continue}break}}b=H[a+216>>2];db:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break j}if(c){break db}}H[197455]=0;ga(1807,a|0,f+16|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break j}q=H[f>>2];if(!q){break Ya}}H[f+4>>2]=q;Kb(q)}xb=f+32|0;break p;case 84:c=0;e=0;f=xb-32|0;xb=f;H[f+24>>2]=0;H[f+28>>2]=0;o=H[a>>2]-12|0;g=H[o>>2]+a|0;b=H[g+8>>2];d=H[g+12>>2];if(b+3>>>0>>0){c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+16>>2]=c;if(d>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+20>>2]=e;e=0;eb:{if(d>>>0<=b+3>>>0){c=0;break eb}c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+24>>2]=c;if(d>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[f+28>>2]=e;b=H[o>>2]+a|0;c=H[b+8>>2];fb:{if(c+3>>>0>=K[b+12>>2]){break fb}m=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!m){break fb}H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;gb:{hb:{if(m>>>0>=1073741824){H[197455]=0;ia(1808,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break hb}X()}H[197455]=0;c=m<<2;q=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break gb}}b=$()|0;_()|0;a=H[f>>2];if(!a){break g}H[f+4>>2]=a;Kb(a);break g}H[f>>2]=q;b=c+q|0;H[f+8>>2]=b;e=0;r=Nb(q,0,c);H[f+4>>2]=b;g=H[o>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];ib:{if(b+1>>>0>=c>>>0){d=0;break ib}d=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[g+8>>2]=b}G[r>>1]=d;if(c>>>0>b+1>>>0){e=I[b|0]|I[b+1|0]<<8;H[g+8>>2]=b+2}G[r+2>>1]=e;if(m>>>0>=2){n=a+4|0;b=1;while(1){i=r+(b<<2)|0;e=0;k=n+H[o>>2]|0;d=H[k+4>>2];g=H[k+8>>2];jb:{if(d+1>>>0>=g>>>0){c=0;break jb}c=I[d|0]|I[d+1|0]<<8;d=d+2|0;H[k+4>>2]=d}G[i>>1]=c;if(g>>>0>d+1>>>0){e=I[d|0]|I[d+1|0]<<8;H[k+4>>2]=d+2}G[i+2>>1]=e;i=r+(b+1<<2)|0;e=0;k=n+H[o>>2]|0;d=H[k+4>>2];g=H[k+8>>2];kb:{if(d+1>>>0>=g>>>0){c=0;break kb}c=I[d|0]|I[d+1|0]<<8;d=d+2|0;H[k+4>>2]=d}G[i>>1]=c;if(g>>>0>d+1>>>0){e=I[d|0]|I[d+1|0]<<8;H[k+4>>2]=d+2}G[i+2>>1]=e;i=r+(b+2<<2)|0;e=0;k=n+H[o>>2]|0;d=H[k+4>>2];g=H[k+8>>2];lb:{if(d+1>>>0>=g>>>0){c=0;break lb}c=I[d|0]|I[d+1|0]<<8;d=d+2|0;H[k+4>>2]=d}G[i>>1]=c;if(g>>>0>d+1>>>0){e=I[d|0]|I[d+1|0]<<8;H[k+4>>2]=d+2}G[i+2>>1]=e;b=b+3|0;if(m>>>0>b>>>0){continue}break}}b=H[a+216>>2];mb:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break j}if(c){break mb}}H[197455]=0;ga(1809,a|0,f+16|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break j}q=H[f>>2];if(!q){break fb}}H[f+4>>2]=q;Kb(q)}xb=f+32|0;break p;case 4:d=0;e=0;f=xb-32|0;xb=f;H[f+24>>2]=0;H[f+28>>2]=0;m=H[a>>2]-12|0;g=H[m>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+16>>2]=e;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+20>>2]=d;d=0;nb:{if(c>>>0<=b+3>>>0){e=0;break nb}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+24>>2]=e;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[f+28>>2]=d;ob:{pb:{b=H[m>>2]+a|0;c=H[b+8>>2];qb:{if(c+3>>>0>=K[b+12>>2]){c=0;H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;break qb}o=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;c=0;H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;if(!o){break qb}rb:{sb:{if(o>>>0>=536870912){H[197455]=0;ia(1806,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break sb}X()}d=0;H[197455]=0;e=o<<3;c=aa(899,e|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break rb}}d=$()|0;_()|0;a=H[f>>2];if(!a){break e}H[f+4>>2]=a;Kb(a);break e}H[f>>2]=c;b=c+e|0;H[f+8>>2]=b;r=Nb(c,0,e);H[f+4>>2]=b;n=a+4|0;while(1){b=H[m>>2];if(o-d>>>0<=1){F[(a+b|0)+29|0]=1;break pb}i=r+(d<<3)|0;e=0;k=b+n|0;b=H[k+4>>2];g=H[k+8>>2];tb:{if(b+3>>>0>=g>>>0){q=0;break tb}q=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[k+4>>2]=b}H[i>>2]=q;if(g>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[k+4>>2]=b+4}H[i+4>>2]=e;i=r+(d+1<<3)|0;e=0;k=n+H[m>>2]|0;b=H[k+4>>2];g=H[k+8>>2];ub:{if(b+3>>>0>=g>>>0){q=0;break ub}q=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[k+4>>2]=b}H[i>>2]=q;if(g>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[k+4>>2]=b+4}H[i+4>>2]=e;i=r+(d+2<<3)|0;e=0;k=n+H[m>>2]|0;b=H[k+4>>2];g=H[k+8>>2];vb:{if(b+3>>>0>=g>>>0){q=0;break vb}q=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[k+4>>2]=b}H[i>>2]=q;if(g>>>0>b+3>>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[k+4>>2]=b+4}H[i+4>>2]=e;d=d+3|0;if(o>>>0>d>>>0){continue}break}}wb:{b=H[a+216>>2];xb:{if(b){H[197455]=0;d=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break wb}if(d){break xb}}d=H[a+208>>2];yb:{if(!d){break yb}if(H[a+156>>2]){b=H[H[d>>2]+96>>2];H[197455]=0;d=aa(b|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break wb}if((d|0)==4){break yb}d=H[a+208>>2]}b=H[H[d>>2]+368>>2];H[197455]=0;ga(b|0,d|0,f+16|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break wb}c=H[f>>2]}if(H[f+4>>2]==(c|0)){break xb}d=0;while(1){H[197455]=0;b=(d<<3)+c|0;ka(1810,a|0,b|0,b+8|0,b+16|0);b=H[197455];H[197455]=0;if((b|0)==1){break wb}d=d+3|0;c=H[f>>2];if(d>>>0>2]-c>>3>>>0){continue}break}}if(c){break pb}break ob}break f}H[f+4>>2]=c;Kb(c)}xb=f+32|0;break p;case 87:d=0;e=0;f=xb-32|0;xb=f;H[f+24>>2]=0;H[f+28>>2]=0;m=H[a>>2]-12|0;g=H[m>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+16>>2]=e;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+20>>2]=d;d=0;zb:{if(c>>>0<=b+3>>>0){e=0;break zb}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[f+24>>2]=e;if(c>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[f+28>>2]=d;Ab:{Bb:{b=H[m>>2]+a|0;c=H[b+8>>2];Cb:{if(c+3>>>0>=K[b+12>>2]){c=0;H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;break Cb}o=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;c=0;H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;if(!o){break Cb}Db:{Eb:{if(o>>>0>=1073741824){H[197455]=0;ia(1808,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break Eb}X()}d=0;H[197455]=0;e=o<<2;c=aa(899,e|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Db}}d=$()|0;_()|0;a=H[f>>2];if(!a){break e}H[f+4>>2]=a;Kb(a);break e}H[f>>2]=c;b=c+e|0;H[f+8>>2]=b;r=Nb(c,0,e);H[f+4>>2]=b;n=a+4|0;while(1){b=H[m>>2];if(o-d>>>0<=1){F[(a+b|0)+29|0]=1;break Bb}i=r+(d<<2)|0;e=0;k=b+n|0;b=H[k+4>>2];g=H[k+8>>2];Fb:{if(b+1>>>0>=g>>>0){q=0;break Fb}q=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[k+4>>2]=b}G[i>>1]=q;if(g>>>0>b+1>>>0){e=I[b|0]|I[b+1|0]<<8;H[k+4>>2]=b+2}G[i+2>>1]=e;i=r+(d+1<<2)|0;e=0;k=n+H[m>>2]|0;b=H[k+4>>2];g=H[k+8>>2];Gb:{if(b+1>>>0>=g>>>0){q=0;break Gb}q=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[k+4>>2]=b}G[i>>1]=q;if(g>>>0>b+1>>>0){e=I[b|0]|I[b+1|0]<<8;H[k+4>>2]=b+2}G[i+2>>1]=e;i=r+(d+2<<2)|0;e=0;k=n+H[m>>2]|0;b=H[k+4>>2];g=H[k+8>>2];Hb:{if(b+1>>>0>=g>>>0){q=0;break Hb}q=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[k+4>>2]=b}G[i>>1]=q;if(g>>>0>b+1>>>0){e=I[b|0]|I[b+1|0]<<8;H[k+4>>2]=b+2}G[i+2>>1]=e;d=d+3|0;if(o>>>0>d>>>0){continue}break}}Ib:{b=H[a+216>>2];Jb:{if(b){H[197455]=0;d=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break Ib}if(d){break Jb}}d=H[a+208>>2];Kb:{if(!d){break Kb}if(H[a+156>>2]){b=H[H[d>>2]+96>>2];H[197455]=0;d=aa(b|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Ib}if((d|0)==4){break Kb}d=H[a+208>>2]}b=H[H[d>>2]+372>>2];H[197455]=0;ga(b|0,d|0,f+16|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ib}c=H[f>>2]}if(H[f+4>>2]==(c|0)){break Jb}d=0;while(1){H[197455]=0;b=(d<<2)+c|0;ka(1811,a|0,b|0,b+4|0,b+8|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ib}d=d+3|0;c=H[f>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}if(c){break Bb}break Ab}break f}H[f+4>>2]=c;Kb(c)}xb=f+32|0;break p;case 55:d=0;f=0;t=xb-32|0;xb=t;H[t+24>>2]=0;H[t+28>>2]=0;m=H[a>>2]-12|0;e=H[m>>2]+a|0;b=H[e+8>>2];c=H[e+12>>2];if(b+3>>>0>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+8>>2]=b}H[t+16>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+8>>2]=b}H[t+20>>2]=f;f=0;Lb:{if(c>>>0<=b+3>>>0){d=0;break Lb}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+8>>2]=b}H[t+24>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+8>>2]=b+4}H[t+28>>2]=f;b=H[m>>2]+a|0;c=H[b+8>>2];Mb:{if(c+3>>>0>=K[b+12>>2]){break Mb}k=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;H[t+12>>2]=k;if(!k){break Mb}e=a+4|0;b=0;r=Qb((k|0)!=(k&536870911)?-1:k<<3);while(1){g=r+(b<<3)|0;i=e+H[m>>2]|0;f=H[i+4>>2];c=H[i+8>>2];Nb:{if(f+3>>>0>=c>>>0){d=0;break Nb}d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[i+4>>2]=f}H[g>>2]=d;d=0;if(c>>>0>f+3>>>0){d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[i+4>>2]=f+4}H[g+4>>2]=d;b=b+1|0;if((k|0)!=(b|0)){continue}break}n=a+4|0;c=k>>>0>1?k:1;g=c&1;b=0;o=Qb(k);if(k>>>0>=2){c=c&-2;e=0;while(1){d=0;i=n+H[m>>2]|0;k=H[i+4>>2];if(k>>>0>2]){d=I[k|0];H[i+4>>2]=k+1}F[b+o|0]=d;d=0;i=n+H[m>>2]|0;k=H[i+4>>2];if(k>>>0>2]){d=I[k|0];H[i+4>>2]=k+1}F[o+(b|1)|0]=d;b=b+2|0;e=e+2|0;if((c|0)!=(e|0)){continue}break}}if(g){c=b+o|0;b=0;d=n+H[m>>2]|0;e=H[d+4>>2];if(e>>>0>2]){b=I[e|0];H[d+4>>2]=e+1}F[c|0]=b}b=H[a+216>>2];if(!(I[b+213|0]?b:0)){i=t+16|0;f=0;b=0;d=0;e=0;k=t+12|0;Ob:{if(!H[k>>2]){break Ob}while(1){g=d;c=b;b=r+(f<<3)|0;n=I[f+o|0];Pb:{Qb:{if((n|0)==6){Xp(a,b);d=0;break Qb}Rb:{Sb:{Tb:{if(n&2){Pm(a,b);d=0;if(n&1){break Tb}break Qb}if(!(n&4)){break Qb}d=1;Ub:{switch(g|0){case 0:break Pb;case 1:break Rb;case 2:break Ub;default:break Sb}}Ez(a,c,e,b);d=0;if(!(n&1)){break Qb}}Ek(a);break Qb}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ob}d=2;e=b}b=c}f=f+1|0;if(f>>>0>2]){continue}break}}f=H[a+208>>2];Vb:{if(!f){break Vb}if(H[a+156>>2]){if((zb[H[H[f>>2]+96>>2]](f)|0)==4){break Vb}f=H[a+208>>2]}zb[H[H[f>>2]+376>>2]](f,i,r,k,o)}}Kb(r);Kb(o)}xb=t+32|0;break p;case 91:d=0;f=0;t=xb-32|0;xb=t;H[t+24>>2]=0;H[t+28>>2]=0;m=H[a>>2]-12|0;e=H[m>>2]+a|0;b=H[e+8>>2];c=H[e+12>>2];if(b+3>>>0>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+8>>2]=b}H[t+16>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+8>>2]=b}H[t+20>>2]=f;f=0;Wb:{if(c>>>0<=b+3>>>0){d=0;break Wb}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[e+8>>2]=b}H[t+24>>2]=d;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+8>>2]=b+4}H[t+28>>2]=f;b=H[m>>2]+a|0;c=H[b+8>>2];Xb:{if(c+3>>>0>=K[b+12>>2]){break Xb}k=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;H[t+12>>2]=k;if(!k){break Xb}e=a+4|0;b=0;r=Qb((k|0)!=(k&1073741823)?-1:k<<2);while(1){g=r+(b<<2)|0;i=e+H[m>>2]|0;f=H[i+4>>2];c=H[i+8>>2];Yb:{if(f+1>>>0>=c>>>0){d=0;break Yb}d=I[f|0]|I[f+1|0]<<8;f=f+2|0;H[i+4>>2]=f}G[g>>1]=d;d=0;if(c>>>0>f+1>>>0){d=I[f|0]|I[f+1|0]<<8;H[i+4>>2]=f+2}G[g+2>>1]=d;b=b+1|0;if((k|0)!=(b|0)){continue}break}n=a+4|0;c=k>>>0>1?k:1;g=c&1;b=0;o=Qb(k);if(k>>>0>=2){c=c&-2;e=0;while(1){d=0;i=n+H[m>>2]|0;k=H[i+4>>2];if(k>>>0>2]){d=I[k|0];H[i+4>>2]=k+1}F[b+o|0]=d;d=0;i=n+H[m>>2]|0;k=H[i+4>>2];if(k>>>0>2]){d=I[k|0];H[i+4>>2]=k+1}F[o+(b|1)|0]=d;b=b+2|0;e=e+2|0;if((c|0)!=(e|0)){continue}break}}if(g){c=b+o|0;b=0;d=n+H[m>>2]|0;e=H[d+4>>2];if(e>>>0>2]){b=I[e|0];H[d+4>>2]=e+1}F[c|0]=b}b=H[a+216>>2];if(!(I[b+213|0]?b:0)){i=t+16|0;f=0;b=0;d=0;e=0;k=t+12|0;Zb:{if(!H[k>>2]){break Zb}while(1){g=d;c=b;b=r+(f<<2)|0;n=I[f+o|0];_b:{$b:{if((n|0)==6){Wp(a,b);d=0;break $b}ac:{bc:{cc:{if(n&2){Om(a,b);d=0;if(n&1){break cc}break $b}if(!(n&4)){break $b}d=1;dc:{switch(g|0){case 0:break _b;case 1:break ac;case 2:break dc;default:break bc}}Fz(a,c,e,b);d=0;if(!(n&1)){break $b}}Ek(a);break $b}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Zb}d=2;e=b}b=c}f=f+1|0;if(f>>>0>2]){continue}break}}f=H[a+208>>2];ec:{if(!f){break ec}if(H[a+156>>2]){if((zb[H[H[f>>2]+96>>2]](f)|0)==4){break ec}f=H[a+208>>2]}zb[H[H[f>>2]+380>>2]](f,i,r,k,o)}}Kb(r);Kb(o)}xb=t+32|0;break p;case 2:f=0;e=0;d=xb-32|0;xb=d;H[d+24>>2]=0;H[d+28>>2]=0;r=H[a>>2]-12|0;g=H[r>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+16>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+20>>2]=f;f=0;fc:{if(c>>>0<=b+3>>>0){e=0;break fc}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+24>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[d+28>>2]=f;b=H[r>>2]+a|0;c=H[b+8>>2];gc:{if(c+3>>>0>=K[b+12>>2]){break gc}o=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!o){break gc}H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;hc:{ic:{if(o>>>0>=536870912){H[197455]=0;ia(1806,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break ic}X()}H[197455]=0;g=o<<3;c=aa(899,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break hc}}b=$()|0;_()|0;a=H[d>>2];if(!a){break g}H[d+4>>2]=a;Kb(a);break g}H[d>>2]=c;e=c+g|0;H[d+8>>2]=e;b=0;k=Nb(c,0,g);H[d+4>>2]=e;i=a+4|0;while(1){n=k+(b<<3)|0;m=i+H[r>>2]|0;f=H[m+4>>2];g=H[m+8>>2];jc:{if(f+3>>>0>=g>>>0){e=0;break jc}e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[m+4>>2]=f}H[n>>2]=e;e=0;if(g>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[m+4>>2]=f+4}H[n+4>>2]=e;b=b+1|0;if((o|0)!=(b|0)){continue}break}b=H[a+216>>2];kc:{if(b){H[197455]=0;e=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break i}if(e){break kc}}H[197455]=0;ga(1812,a|0,d+16|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break i}c=H[d>>2];if(!c){break gc}}H[d+4>>2]=c;Kb(c)}xb=d+32|0;break p;case 85:f=0;e=0;d=xb-32|0;xb=d;H[d+24>>2]=0;H[d+28>>2]=0;r=H[a>>2]-12|0;g=H[r>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+16>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+20>>2]=f;f=0;lc:{if(c>>>0<=b+3>>>0){e=0;break lc}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+24>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[d+28>>2]=f;b=H[r>>2]+a|0;c=H[b+8>>2];mc:{if(c+3>>>0>=K[b+12>>2]){break mc}o=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!o){break mc}H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;nc:{oc:{if(o>>>0>=1073741824){H[197455]=0;ia(1808,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break oc}X()}H[197455]=0;g=o<<2;c=aa(899,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break nc}}b=$()|0;_()|0;a=H[d>>2];if(!a){break g}H[d+4>>2]=a;Kb(a);break g}H[d>>2]=c;e=c+g|0;H[d+8>>2]=e;b=0;k=Nb(c,0,g);H[d+4>>2]=e;i=a+4|0;while(1){n=k+(b<<2)|0;m=i+H[r>>2]|0;f=H[m+4>>2];g=H[m+8>>2];pc:{if(f+1>>>0>=g>>>0){e=0;break pc}e=I[f|0]|I[f+1|0]<<8;f=f+2|0;H[m+4>>2]=f}G[n>>1]=e;e=0;if(g>>>0>f+1>>>0){e=I[f|0]|I[f+1|0]<<8;H[m+4>>2]=f+2}G[n+2>>1]=e;b=b+1|0;if((o|0)!=(b|0)){continue}break}b=H[a+216>>2];qc:{if(b){H[197455]=0;e=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break i}if(e){break qc}}H[197455]=0;ga(1813,a|0,d+16|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break i}c=H[d>>2];if(!c){break mc}}H[d+4>>2]=c;Kb(c)}xb=d+32|0;break p;case 3:f=0;e=0;d=xb-32|0;xb=d;H[d+24>>2]=0;H[d+28>>2]=0;r=H[a>>2]-12|0;g=H[r>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+16>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+20>>2]=f;f=0;rc:{if(c>>>0<=b+3>>>0){e=0;break rc}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+24>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[d+28>>2]=f;b=H[r>>2]+a|0;c=H[b+8>>2];sc:{if(c+3>>>0>=K[b+12>>2]){break sc}o=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!o){break sc}H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;tc:{uc:{if(o>>>0>=536870912){H[197455]=0;ia(1806,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break uc}X()}H[197455]=0;g=o<<3;c=aa(899,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break tc}}b=$()|0;_()|0;a=H[d>>2];if(!a){break g}H[d+4>>2]=a;Kb(a);break g}H[d>>2]=c;e=c+g|0;H[d+8>>2]=e;b=0;k=Nb(c,0,g);H[d+4>>2]=e;i=a+4|0;while(1){n=k+(b<<3)|0;m=i+H[r>>2]|0;f=H[m+4>>2];g=H[m+8>>2];vc:{if(f+3>>>0>=g>>>0){e=0;break vc}e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[m+4>>2]=f}H[n>>2]=e;e=0;if(g>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[m+4>>2]=f+4}H[n+4>>2]=e;b=b+1|0;if((o|0)!=(b|0)){continue}break}b=H[a+216>>2];wc:{if(b){H[197455]=0;e=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break i}if(e){break wc}}H[197455]=0;ga(1814,a|0,d+16|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break i}c=H[d>>2];if(!c){break sc}}H[d+4>>2]=c;Kb(c)}xb=d+32|0;break p;case 86:f=0;e=0;d=xb-32|0;xb=d;H[d+24>>2]=0;H[d+28>>2]=0;r=H[a>>2]-12|0;g=H[r>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+16>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+20>>2]=f;f=0;xc:{if(c>>>0<=b+3>>>0){e=0;break xc}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+24>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[d+28>>2]=f;b=H[r>>2]+a|0;c=H[b+8>>2];yc:{if(c+3>>>0>=K[b+12>>2]){break yc}o=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!o){break yc}H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;zc:{Ac:{if(o>>>0>=1073741824){H[197455]=0;ia(1808,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break Ac}X()}H[197455]=0;g=o<<2;c=aa(899,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break zc}}b=$()|0;_()|0;a=H[d>>2];if(!a){break g}H[d+4>>2]=a;Kb(a);break g}H[d>>2]=c;e=c+g|0;H[d+8>>2]=e;b=0;k=Nb(c,0,g);H[d+4>>2]=e;i=a+4|0;while(1){n=k+(b<<2)|0;m=i+H[r>>2]|0;f=H[m+4>>2];g=H[m+8>>2];Bc:{if(f+1>>>0>=g>>>0){e=0;break Bc}e=I[f|0]|I[f+1|0]<<8;f=f+2|0;H[m+4>>2]=f}G[n>>1]=e;e=0;if(g>>>0>f+1>>>0){e=I[f|0]|I[f+1|0]<<8;H[m+4>>2]=f+2}G[n+2>>1]=e;b=b+1|0;if((o|0)!=(b|0)){continue}break}b=H[a+216>>2];Cc:{if(b){H[197455]=0;e=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break i}if(e){break Cc}}H[197455]=0;ga(1815,a|0,d+16|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break i}c=H[d>>2];if(!c){break yc}}H[d+4>>2]=c;Kb(c)}xb=d+32|0;break p;case 5:e=0;f=0;d=xb-32|0;xb=d;H[d+24>>2]=0;H[d+28>>2]=0;r=H[a>>2]-12|0;g=H[r>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+16>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+20>>2]=f;f=0;Dc:{if(c>>>0<=b+3>>>0){e=0;break Dc}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+24>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[d+28>>2]=f;b=H[r>>2]+a|0;c=H[b+8>>2];Ec:{if(c+3>>>0>=K[b+12>>2]){c=0;H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;f=0;break Ec}o=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;c=0;H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;f=0;if(!o){break Ec}Fc:{Gc:{if(o>>>0>=536870912){H[197455]=0;ia(1806,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break Gc}X()}b=0;H[197455]=0;e=o<<3;f=aa(899,e|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break Fc}}b=$()|0;_()|0;a=H[d>>2];if(!a){break g}H[d+4>>2]=a;Kb(a);break g}H[d>>2]=f;c=e+f|0;H[d+8>>2]=c;k=Nb(f,0,e);H[d+4>>2]=c;i=a+4|0;while(1){n=k+(b<<3)|0;q=0;m=i+H[r>>2]|0;e=H[m+4>>2];g=H[m+8>>2];Hc:{if(e+3>>>0>=g>>>0){u=0;break Hc}u=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);e=e+4|0;H[m+4>>2]=e}H[n>>2]=u;if(g>>>0>e+3>>>0){q=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[m+4>>2]=e+4}H[n+4>>2]=q;b=b+1|0;if((o|0)!=(b|0)){continue}break}}Ic:{Jc:{Kc:{b=H[a+216>>2];Lc:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break Kc}if(c){break Lc}c=H[d+4>>2]}if((c|0)!=(f|0)){b=0;while(1){H[197455]=0;ba(1816,a|0,(b<<3)+f|0);c=H[197455];H[197455]=0;if((c|0)==1){break Jc}b=b+1|0;if(b>>>0>2]-f>>3>>>0){continue}break}}b=H[a+208>>2];if(!b){break Lc}if(H[a+156>>2]){c=H[H[b>>2]+96>>2];H[197455]=0;c=aa(c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Kc}if((c|0)==4){break Lc}b=H[a+208>>2]}c=H[H[b>>2]+400>>2];H[197455]=0;ga(c|0,b|0,d+16|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break Kc}f=H[d>>2]}if(f){H[d+4>>2]=f;Kb(f)}xb=d+32|0;break Ic}b=$()|0;_()|0;f=H[d>>2];if(!f){break g}break h}b=$()|0;_()|0;if(!f){break g}break h}break p;case 88:e=0;f=0;d=xb-32|0;xb=d;H[d+24>>2]=0;H[d+28>>2]=0;r=H[a>>2]-12|0;g=H[r>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+16>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+20>>2]=f;f=0;Mc:{if(c>>>0<=b+3>>>0){e=0;break Mc}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[g+8>>2]=b}H[d+24>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[g+8>>2]=b+4}H[d+28>>2]=f;b=H[r>>2]+a|0;c=H[b+8>>2];Nc:{if(c+3>>>0>=K[b+12>>2]){c=0;H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;f=0;break Nc}o=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;c=0;H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;f=0;if(!o){break Nc}Oc:{Pc:{if(o>>>0>=1073741824){H[197455]=0;ia(1808,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break Pc}X()}b=0;H[197455]=0;e=o<<2;f=aa(899,e|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break Oc}}b=$()|0;_()|0;a=H[d>>2];if(!a){break g}H[d+4>>2]=a;Kb(a);break g}H[d>>2]=f;c=e+f|0;H[d+8>>2]=c;k=Nb(f,0,e);H[d+4>>2]=c;i=a+4|0;while(1){n=k+(b<<2)|0;q=0;m=i+H[r>>2]|0;e=H[m+4>>2];g=H[m+8>>2];Qc:{if(e+1>>>0>=g>>>0){u=0;break Qc}u=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[m+4>>2]=e}G[n>>1]=u;if(g>>>0>e+1>>>0){q=I[e|0]|I[e+1|0]<<8;H[m+4>>2]=e+2}G[n+2>>1]=q;b=b+1|0;if((o|0)!=(b|0)){continue}break}}Rc:{Sc:{Tc:{b=H[a+216>>2];Uc:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break Tc}if(c){break Uc}c=H[d+4>>2]}if((c|0)!=(f|0)){b=0;while(1){H[197455]=0;ba(1817,a|0,(b<<2)+f|0);c=H[197455];H[197455]=0;if((c|0)==1){break Sc}b=b+1|0;if(b>>>0>2]-f>>2>>>0){continue}break}}b=H[a+208>>2];if(!b){break Uc}if(H[a+156>>2]){c=H[H[b>>2]+96>>2];H[197455]=0;c=aa(c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Tc}if((c|0)==4){break Uc}b=H[a+208>>2]}c=H[H[b>>2]+404>>2];H[197455]=0;ga(c|0,b|0,d+16|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break Tc}f=H[d>>2]}if(f){H[d+4>>2]=f;Kb(f)}xb=d+32|0;break Rc}b=$()|0;_()|0;f=H[d>>2];if(!f){break g}break h}b=$()|0;_()|0;if(!f){break g}break h}break p;case 7:b=0;c=0;e=xb-32|0;xb=e;H[e+24>>2]=0;H[e+28>>2]=0;i=H[a>>2]-12|0;k=H[i>>2]+a|0;d=H[k+8>>2];g=H[k+12>>2];if(d+3>>>0>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+16>>2]=c;if(g>>>0>d+3>>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+20>>2]=b;b=0;Vc:{if(g>>>0<=d+3>>>0){c=0;break Vc}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+24>>2]=c;if(g>>>0>d+3>>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[k+8>>2]=d+4}H[e+28>>2]=b;b=H[i>>2]+a|0;g=b;d=H[b+12>>2];b=b+8|0;f=H[b>>2];Wc:{if(d>>>0<=f+3>>>0){c=0;break Wc}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[g+8>>2]=f+4;b=H[i>>2]+a|0;d=H[b+12>>2];b=b+8|0;f=H[b>>2]}if(f+3>>>0>>0){H[b>>2]=f+4}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;Xc:{if(!c){break Xc}H[197455]=0;ba(1818,e|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}g=a+4|0;b=0;while(1){f=0;d=g+H[H[a>>2]-12>>2]|0;i=H[d+4>>2];if(i+3>>>0>2]){f=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);H[d+4>>2]=i+4}k=H[e>>2]+N(b,12)|0;i=H[k>>2];d=H[k+4>>2]-i>>3;Yc:{if(d>>>0>>0){H[197455]=0;ba(1819,k|0,f-d|0);d=H[197455];H[197455]=0;if((d|0)!=1){break Yc}break d}if(d>>>0<=f>>>0){break Yc}H[k+4>>2]=i+(f<<3)}b=b+1|0;if((c|0)!=(b|0)){continue}break}if(!c){break Xc}r=a+4|0;n=H[a>>2]-12|0;q=0;k=H[e>>2];while(1){d=k+N(q,12)|0;b=H[d+4>>2];o=H[d>>2];if((b|0)!=(o|0)){b=b-o>>3;i=b>>>0>1?b:1;f=0;while(1){m=o+(f<<3)|0;t=r+H[n>>2]|0;b=H[t+4>>2];g=H[t+8>>2];Zc:{if(b+3>>>0>=g>>>0){d=0;break Zc}d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[t+4>>2]=b}H[m>>2]=d;d=0;if(g>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[t+4>>2]=b+4}H[m+4>>2]=d;f=f+1|0;if((i|0)!=(f|0)){continue}break}}q=q+1|0;if((q|0)!=(c|0)){continue}break}}b=H[a+216>>2];_c:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break d}if(c){break _c}}H[197455]=0;ga(1820,a|0,e+16|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}}d=H[e>>2];if(d){b=H[e+4>>2];if((d|0)==(b|0)){b=d}else{while(1){c=b-12|0;g=H[c>>2];if(g){H[b-8>>2]=g;Kb(g)}b=c;if((d|0)!=(b|0)){continue}break}b=H[e>>2]}H[e+4>>2]=d;Kb(b)}xb=e+32|0;break p;case 90:b=0;c=0;e=xb-32|0;xb=e;H[e+24>>2]=0;H[e+28>>2]=0;i=H[a>>2]-12|0;k=H[i>>2]+a|0;d=H[k+8>>2];g=H[k+12>>2];if(d+3>>>0>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+16>>2]=c;if(g>>>0>d+3>>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+20>>2]=b;b=0;$c:{if(g>>>0<=d+3>>>0){c=0;break $c}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+24>>2]=c;if(g>>>0>d+3>>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[k+8>>2]=d+4}H[e+28>>2]=b;b=H[i>>2]+a|0;g=b;d=H[b+12>>2];b=b+8|0;f=H[b>>2];ad:{if(d>>>0<=f+3>>>0){c=0;break ad}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[g+8>>2]=f+4;b=H[i>>2]+a|0;d=H[b+12>>2];b=b+8|0;f=H[b>>2]}if(f+3>>>0>>0){H[b>>2]=f+4}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;bd:{if(!c){break bd}H[197455]=0;ba(1821,e|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}g=a+4|0;b=0;while(1){f=0;d=g+H[H[a>>2]-12>>2]|0;i=H[d+4>>2];if(i+3>>>0>2]){f=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);H[d+4>>2]=i+4}k=H[e>>2]+N(b,12)|0;i=H[k>>2];d=H[k+4>>2]-i>>2;cd:{if(d>>>0>>0){H[197455]=0;ba(1822,k|0,f-d|0);d=H[197455];H[197455]=0;if((d|0)!=1){break cd}break d}if(d>>>0<=f>>>0){break cd}H[k+4>>2]=i+(f<<2)}b=b+1|0;if((c|0)!=(b|0)){continue}break}if(!c){break bd}r=a+4|0;n=H[a>>2]-12|0;q=0;k=H[e>>2];while(1){d=k+N(q,12)|0;b=H[d+4>>2];o=H[d>>2];if((b|0)!=(o|0)){b=b-o>>2;i=b>>>0>1?b:1;f=0;while(1){m=o+(f<<2)|0;t=r+H[n>>2]|0;b=H[t+4>>2];g=H[t+8>>2];dd:{if(b+1>>>0>=g>>>0){d=0;break dd}d=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[t+4>>2]=b}G[m>>1]=d;d=0;if(g>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[t+4>>2]=b+2}G[m+2>>1]=d;f=f+1|0;if((i|0)!=(f|0)){continue}break}}q=q+1|0;if((q|0)!=(c|0)){continue}break}}b=H[a+216>>2];ed:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break d}if(c){break ed}}H[197455]=0;ga(1823,a|0,e+16|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}}d=H[e>>2];if(d){b=H[e+4>>2];if((d|0)==(b|0)){b=d}else{while(1){c=b-12|0;g=H[c>>2];if(g){H[b-8>>2]=g;Kb(g)}b=c;if((d|0)!=(b|0)){continue}break}b=H[e>>2]}H[e+4>>2]=d;Kb(b)}xb=e+32|0;break p;case 6:b=0;c=0;e=xb-32|0;xb=e;H[e+24>>2]=0;H[e+28>>2]=0;i=H[a>>2]-12|0;k=H[i>>2]+a|0;d=H[k+8>>2];g=H[k+12>>2];if(d+3>>>0>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+16>>2]=b;if(g>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+20>>2]=c;c=0;fd:{if(g>>>0<=d+3>>>0){b=0;break fd}b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+24>>2]=b;if(g>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[k+8>>2]=d+4}H[e+28>>2]=c;b=H[i>>2]+a|0;d=b+8|0;f=H[d>>2];c=H[b+12>>2];gd:{if(c>>>0<=f+3>>>0){q=0;break gd}q=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[b+8>>2]=f+4;b=H[i>>2]+a|0;c=H[b+12>>2];d=b+8|0;f=H[d>>2]}b=1;if(f+3>>>0>>0){b=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d>>2]=f+4;b=!b}hd:{if(!(b?q:1)){break hd}if((!q|b)==1){F[(H[i>>2]+a|0)+29|0]=1;break hd}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;H[197455]=0;ba(1818,e|0,q|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}d=a+4|0;b=0;while(1){f=0;c=d+H[H[a>>2]-12>>2]|0;g=H[c+4>>2];if(g+3>>>0>2]){f=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[c+4>>2]=g+4}i=H[e>>2]+N(b,12)|0;g=H[i>>2];c=H[i+4>>2]-g>>3;id:{if(c>>>0>>0){H[197455]=0;ba(1819,i|0,f-c|0);c=H[197455];H[197455]=0;if((c|0)!=1){break id}break d}if(c>>>0<=f>>>0){break id}H[i+4>>2]=g+(f<<3)}b=b+1|0;if((q|0)!=(b|0)){continue}break}r=a+4|0;n=H[a>>2]-12|0;b=0;k=H[e>>2];while(1){d=k+N(b,12)|0;c=H[d+4>>2];o=H[d>>2];if((c|0)!=(o|0)){c=c-o>>3;i=c>>>0>1?c:1;f=0;while(1){m=o+(f<<3)|0;t=r+H[n>>2]|0;d=H[t+4>>2];g=H[t+8>>2];jd:{if(d+3>>>0>=g>>>0){c=0;break jd}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[t+4>>2]=d}H[m>>2]=c;c=0;if(g>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[t+4>>2]=d+4}H[m+4>>2]=c;f=f+1|0;if((i|0)!=(f|0)){continue}break}}b=b+1|0;if((q|0)!=(b|0)){continue}break}b=H[a+216>>2];kd:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break d}if(c){break kd}}H[197455]=0;ga(1824,a|0,e+16|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}}d=H[e>>2];if(!d){break hd}b=H[e+4>>2];if((d|0)==(b|0)){b=d}else{while(1){c=b-12|0;g=H[c>>2];if(g){H[b-8>>2]=g;Kb(g)}b=c;if((d|0)!=(b|0)){continue}break}b=H[e>>2]}H[e+4>>2]=d;Kb(b)}xb=e+32|0;break p;case 89:b=0;c=0;e=xb-32|0;xb=e;H[e+24>>2]=0;H[e+28>>2]=0;i=H[a>>2]-12|0;k=H[i>>2]+a|0;d=H[k+8>>2];g=H[k+12>>2];if(d+3>>>0>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+16>>2]=b;if(g>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+20>>2]=c;c=0;ld:{if(g>>>0<=d+3>>>0){b=0;break ld}b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[k+8>>2]=d}H[e+24>>2]=b;if(g>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[k+8>>2]=d+4}H[e+28>>2]=c;b=H[i>>2]+a|0;d=b+8|0;f=H[d>>2];c=H[b+12>>2];md:{if(c>>>0<=f+3>>>0){q=0;break md}q=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[b+8>>2]=f+4;b=H[i>>2]+a|0;c=H[b+12>>2];d=b+8|0;f=H[d>>2]}b=1;if(f+3>>>0>>0){b=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d>>2]=f+4;b=!b}nd:{if(!(b?q:1)){break nd}if((!q|b)==1){F[(H[i>>2]+a|0)+29|0]=1;break nd}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;H[197455]=0;ba(1821,e|0,q|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}d=a+4|0;b=0;while(1){f=0;c=d+H[H[a>>2]-12>>2]|0;g=H[c+4>>2];if(g+3>>>0>2]){f=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[c+4>>2]=g+4}i=H[e>>2]+N(b,12)|0;g=H[i>>2];c=H[i+4>>2]-g>>2;od:{if(c>>>0>>0){H[197455]=0;ba(1822,i|0,f-c|0);c=H[197455];H[197455]=0;if((c|0)!=1){break od}break d}if(c>>>0<=f>>>0){break od}H[i+4>>2]=g+(f<<2)}b=b+1|0;if((q|0)!=(b|0)){continue}break}r=a+4|0;n=H[a>>2]-12|0;b=0;k=H[e>>2];while(1){d=k+N(b,12)|0;c=H[d+4>>2];o=H[d>>2];if((c|0)!=(o|0)){c=c-o>>2;i=c>>>0>1?c:1;f=0;while(1){m=o+(f<<2)|0;t=r+H[n>>2]|0;d=H[t+4>>2];g=H[t+8>>2];pd:{if(d+1>>>0>=g>>>0){c=0;break pd}c=I[d|0]|I[d+1|0]<<8;d=d+2|0;H[t+4>>2]=d}G[m>>1]=c;c=0;if(g>>>0>d+1>>>0){c=I[d|0]|I[d+1|0]<<8;H[t+4>>2]=d+2}G[m+2>>1]=c;f=f+1|0;if((i|0)!=(f|0)){continue}break}}b=b+1|0;if((q|0)!=(b|0)){continue}break}b=H[a+216>>2];qd:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break d}if(c){break qd}}H[197455]=0;ga(1825,a|0,e+16|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}}d=H[e>>2];if(!d){break nd}b=H[e+4>>2];if((d|0)==(b|0)){b=d}else{while(1){c=b-12|0;g=H[c>>2];if(g){H[b-8>>2]=g;Kb(g)}b=c;if((d|0)!=(b|0)){continue}break}b=H[e>>2]}H[e+4>>2]=d;Kb(b)}xb=e+32|0;break p;case 95:f=0;b=xb-80|0;xb=b;H[b+40>>2]=0;H[b+44>>2]=0;H[b+32>>2]=0;H[b+36>>2]=0;H[b+76>>2]=0;c=H[H[a>>2]-12>>2];H[197455]=0;da(1826,(a+c|0)+4|0,b+32|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break c}rd:{sd:{td:{ud:{vd:{if(!H[b+72>>2]){break vd}if(!H[b+76>>2]){break ud}c=H[a+216>>2];if(c){H[197455]=0;d=I[c+213|0];c=H[197455];H[197455]=0;if((c|0)==1){break c}f=H[b+72>>2];if(!f|d){break vd}}d=0;while(1){H[b+24>>2]=0;H[b+28>>2]=1072693248;H[b+8>>2]=0;H[b+12>>2]=1072693248;H[b+16>>2]=0;H[b+20>>2]=1072693248;H[197455]=0;H[b>>2]=0;H[b+4>>2]=1072693248;ka(1827,a|0,H[b+76>>2]+N(d,48)|0,H[b+48>>2],b|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}d=d+1|0;f=H[b+72>>2];if(d>>>0>>0){continue}break}}d=H[b+76>>2];if(!d){break rd}if(!f){break sd}break td}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;d=H[b+76>>2];if(d){break td}break rd}f=0;while(1){d=N(f,48)+d|0;c=H[d+40>>2];if(c){Kb(c);H[d+40>>2]=0}c=H[d+44>>2];if(c){Kb(c);H[d+44>>2]=0}d=H[b+76>>2];f=f+1|0;if(f>>>0>2]){continue}break}if(!d){break rd}}Kb(d)}xb=b+80|0;break p;case 96:f=0;b=xb-80|0;xb=b;H[b+40>>2]=0;H[b+44>>2]=0;H[b+32>>2]=0;H[b+36>>2]=0;H[b+76>>2]=0;c=H[H[a>>2]-12>>2];H[197455]=0;da(1828,(a+c|0)+4|0,b+32|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break c}wd:{xd:{yd:{zd:{Ad:{if(!H[b+72>>2]){break Ad}if(!H[b+76>>2]){break zd}c=H[a+216>>2];if(c){H[197455]=0;d=I[c+213|0];c=H[197455];H[197455]=0;if((c|0)==1){break c}f=H[b+72>>2];if(!f|d){break Ad}}d=0;while(1){H[b+24>>2]=0;H[b+28>>2]=1072693248;H[b+8>>2]=0;H[b+12>>2]=1072693248;H[b+16>>2]=0;H[b+20>>2]=1072693248;H[197455]=0;H[b>>2]=0;H[b+4>>2]=1072693248;ka(1827,a|0,H[b+76>>2]+N(d,48)|0,H[b+48>>2],b|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}d=d+1|0;f=H[b+72>>2];if(d>>>0>>0){continue}break}}d=H[b+76>>2];if(!d){break wd}if(!f){break xd}break yd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;d=H[b+76>>2];if(d){break yd}break wd}f=0;while(1){d=N(f,48)+d|0;c=H[d+40>>2];if(c){Kb(c);H[d+40>>2]=0}c=H[d+44>>2];if(c){Kb(c);H[d+44>>2]=0}d=H[b+76>>2];f=f+1|0;if(f>>>0>2]){continue}break}if(!d){break wd}}Kb(d)}xb=b+80|0;break p;case 42:f=0;e=0;g=xb-16|0;xb=g;H[g+8>>2]=0;H[g+12>>2]=0;d=H[H[a>>2]-12>>2]+a|0;b=H[d+8>>2];c=H[d+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+4>>2]=f;f=0;Bd:{if(c>>>0<=b+3>>>0){e=0;break Bd}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+8>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4}H[g+12>>2]=f;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){b=H[a+208>>2];Cd:{if(!b){break Cd}if(H[a+156>>2]){if((zb[H[H[b>>2]+96>>2]](b)|0)==4){break Cd}b=H[a+208>>2]}zb[H[H[b>>2]+424>>2]](b,g)}b=H[a+156>>2];d=H[g+4>>2];l=+(d|0);c=H[g>>2];j=+(c|0);Dd:{if(H[H[a+120>>2]+680>>2]==1){Ed:{Fd:{if(b){if(Qd(b,j,l)){break Fd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ed}b=H[a+208>>2];if(!b){break Fd}zb[H[H[b>>2]+32>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}d=H[g+12>>2];l=+(d|0);c=H[g>>2];j=+(c|0);b=H[a+156>>2];Gd:{Hd:{if(b){if(jd(b,j,l)){break Hd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Gd}b=H[a+208>>2];if(!b){break Hd}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}d=H[g+12>>2];l=+(d|0);c=H[g+8>>2];j=+(c|0);b=H[a+156>>2];Id:{Jd:{if(b){if(jd(b,j,l)){break Jd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Id}b=H[a+208>>2];if(!b){break Jd}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}d=H[g+4>>2];l=+(d|0);c=H[g+8>>2];j=+(c|0);b=H[a+156>>2];Kd:{if(b){if(jd(b,j,l)){break Kd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Dd}b=H[a+208>>2];if(!b){break Kd}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d;break Dd}Ld:{Md:{if(b){if(Qd(b,j,l)){break Md}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Ld}b=H[a+208>>2];if(!b){break Md}zb[H[H[b>>2]+32>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}d=H[g+4>>2];l=+(d|0);c=H[g+8>>2];j=+(c|0);b=H[a+156>>2];Nd:{Od:{if(b){if(jd(b,j,l)){break Od}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Nd}b=H[a+208>>2];if(!b){break Od}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}d=H[g+12>>2];l=+(d|0);c=H[g+8>>2];j=+(c|0);b=H[a+156>>2];Pd:{Qd:{if(b){if(jd(b,j,l)){break Qd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Pd}b=H[a+208>>2];if(!b){break Qd}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}d=H[g+12>>2];l=+(d|0);c=H[g>>2];j=+(c|0);b=H[a+156>>2];Rd:{if(b){if(jd(b,j,l)){break Rd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Dd}b=H[a+208>>2];if(!b){break Rd}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}b=H[a+156>>2];Sd:{if(b){if(hf(b)){break Sd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Sd}b=H[a+208>>2];if(!b){break Sd}zb[H[H[b>>2]+48>>2]](b)}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,3);b=H[a+208>>2];zb[H[H[b>>2]+56>>2]](b)}}xb=g+16|0;break p;case 43:d=0;e=0;k=xb-32|0;xb=k;H[k+24>>2]=0;H[k+28>>2]=0;c=H[a>>2]-12|0;i=H[c>>2]+a|0;b=H[i+8>>2];g=H[i+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[i+8>>2]=b}H[k+16>>2]=e;if(g>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[i+8>>2]=b}H[k+20>>2]=d;d=0;Td:{if(g>>>0<=b+3>>>0){e=0;break Td}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[i+8>>2]=b}H[k+24>>2]=e;if(g>>>0>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[i+8>>2]=b+4}H[k+28>>2]=d;b=0;g=H[c>>2]+a|0;d=H[g+8>>2];c=H[g+12>>2];Ud:{if(d+3>>>0>=c>>>0){e=0;break Ud}e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[g+8>>2]=d}H[k+8>>2]=e;if(c>>>0>d+3>>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[g+8>>2]=d+4}H[k+12>>2]=b;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){n=k+16|0;g=k+8|0;d=H[a+208>>2];Vd:{if(!d){break Vd}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break Vd}d=H[a+208>>2]}zb[H[H[d>>2]+428>>2]](d,n,g)}e=H[n+4>>2];c=(H[n+12>>2]-e|0)/2|0;b=H[g+4>>2];i=(b|0)>(c|0)?c:b;d=H[n>>2];c=(H[n+8>>2]-d|0)/2|0;b=H[g>>2];g=(b|0)>(c|0)?c:b;c=d+g|0;l=+(c|0);b=H[a+156>>2];j=+(e|0);Wd:{if(H[H[a+120>>2]+680>>2]==1){Xd:{Yd:{if(b){if(Qd(b,l,j)){break Yd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Xd}b=H[a+208>>2];if(!b){break Yd}zb[H[H[b>>2]+32>>2]](b,l,j)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=e}b=H[n+4>>2];s=+(b+i|0);c=H[n>>2];p=+(g+c|0);l=+(b|0);j=+(c|0);b=H[a+156>>2];Zd:{_d:{$d:{if(b){if(Je(b,j,l,p,s,270,-90)){break $d}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break $d}b=H[a+208>>2];if(!b){d=H[n+12>>2]-i|0;break _d}zb[H[H[b>>2]+44>>2]](b,j,l,p,s,270,-90)}d=H[n+12>>2]-i|0;l=+(d|0);c=H[n>>2];j=+(c|0);b=H[a+156>>2];if(b){if(jd(b,j,l)){break _d}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Zd}b=H[a+208>>2];if(!b){break _d}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}b=H[n>>2];s=+(b+g|0);c=H[n+12>>2];p=+(c-i|0);l=+(c|0);j=+(b|0);b=H[a+156>>2];ae:{be:{ce:{if(b){if(Je(b,j,p,s,l,180,-90)){break ce}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break ce}b=H[a+208>>2];if(!b){d=H[n+8>>2]-g|0;break be}zb[H[H[b>>2]+44>>2]](b,j,p,s,l,180,-90)}d=H[n+8>>2]-g|0;l=+(d|0);c=H[n+12>>2];j=+(c|0);b=H[a+156>>2];if(b){if(jd(b,l,j)){break be}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break ae}b=H[a+208>>2];if(!b){break be}zb[H[H[b>>2]+36>>2]](b,l,j)}b=H[a+120>>2];H[b+672>>2]=d;H[b+676>>2]=c}b=H[n+12>>2];s=+(b-i|0);c=H[n+8>>2];p=+(c-g|0);l=+(b|0);j=+(c|0);b=H[a+156>>2];de:{ee:{fe:{if(b){if(Je(b,p,s,j,l,90,-90)){break fe}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break fe}b=H[a+208>>2];if(!b){d=i+H[n+4>>2]|0;break ee}zb[H[H[b>>2]+44>>2]](b,p,s,j,l,90,-90)}d=i+H[n+4>>2]|0;l=+(d|0);c=H[n+8>>2];j=+(c|0);b=H[a+156>>2];if(b){if(jd(b,j,l)){break ee}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break de}b=H[a+208>>2];if(!b){break ee}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}c=H[n+4>>2];s=+(i+c|0);b=H[n+8>>2];p=+(b-g|0);l=+(b|0);j=+(c|0);b=H[a+156>>2];ge:{he:{if(b){if(Je(b,p,j,l,s,0,-90)){break he}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break he}b=H[a+208>>2];if(!b){d=g+H[n>>2]|0;break ge}zb[H[H[b>>2]+44>>2]](b,p,j,l,s,0,-90)}d=g+H[n>>2]|0;l=+(d|0);c=H[n+4>>2];j=+(c|0);b=H[a+156>>2];if(b){if(jd(b,l,j)){break ge}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Wd}b=H[a+208>>2];if(!b){break ge}zb[H[H[b>>2]+36>>2]](b,l,j)}b=H[a+120>>2];H[b+672>>2]=d;H[b+676>>2]=c;break Wd}ie:{je:{if(b){if(Qd(b,l,j)){break je}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break ie}b=H[a+208>>2];if(!b){break je}zb[H[H[b>>2]+32>>2]](b,l,j)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=e}d=H[n+8>>2]-g|0;l=+(d|0);c=H[n+4>>2];j=+(c|0);b=H[a+156>>2];ke:{le:{if(b){if(jd(b,l,j)){break le}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break ke}b=H[a+208>>2];if(!b){break le}zb[H[H[b>>2]+36>>2]](b,l,j)}b=H[a+120>>2];H[b+672>>2]=d;H[b+676>>2]=c}b=H[n+4>>2];s=+(b+i|0);c=H[n+8>>2];p=+(c-g|0);l=+(c|0);j=+(b|0);b=H[a+156>>2];me:{ne:{oe:{if(b){if(Je(b,p,j,l,s,-90,90)){break oe}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break oe}b=H[a+208>>2];if(!b){d=H[n+12>>2]-i|0;break ne}zb[H[H[b>>2]+44>>2]](b,p,j,l,s,-90,90)}d=H[n+12>>2]-i|0;l=+(d|0);c=H[n+8>>2];j=+(c|0);b=H[a+156>>2];if(b){if(jd(b,j,l)){break ne}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break me}b=H[a+208>>2];if(!b){break ne}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}c=H[n+12>>2];s=+(c-i|0);b=H[n+8>>2];p=+(b-g|0);l=+(c|0);j=+(b|0);b=H[a+156>>2];pe:{qe:{re:{if(b){if(Je(b,p,s,j,l,0,90)){break re}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break re}b=H[a+208>>2];if(!b){d=g+H[n>>2]|0;break qe}zb[H[H[b>>2]+44>>2]](b,p,s,j,l,0,90)}d=g+H[n>>2]|0;l=+(d|0);c=H[n+12>>2];j=+(c|0);b=H[a+156>>2];if(b){if(jd(b,l,j)){break qe}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break pe}b=H[a+208>>2];if(!b){break qe}zb[H[H[b>>2]+36>>2]](b,l,j)}b=H[a+120>>2];H[b+672>>2]=d;H[b+676>>2]=c}c=H[n>>2];s=+(g+c|0);b=H[n+12>>2];p=+(b-i|0);l=+(b|0);j=+(c|0);b=H[a+156>>2];se:{te:{ue:{if(b){if(Je(b,j,p,s,l,90,90)){break ue}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break ue}b=H[a+208>>2];if(!b){d=i+H[n+4>>2]|0;break te}zb[H[H[b>>2]+44>>2]](b,j,p,s,l,90,90)}d=i+H[n+4>>2]|0;l=+(d|0);c=H[n>>2];j=+(c|0);b=H[a+156>>2];if(b){if(jd(b,j,l)){break te}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break se}b=H[a+208>>2];if(!b){break te}zb[H[H[b>>2]+36>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}c=H[n+4>>2];s=+(c+i|0);b=H[n>>2];p=+(b+g|0);l=+(c|0);j=+(b|0);b=H[a+156>>2];if(b){if(Je(b,j,l,p,s,180,90)){break Wd}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break Wd}b=H[a+208>>2];if(!b){break Wd}zb[H[H[b>>2]+44>>2]](b,j,l,p,s,180,90)}b=H[a+156>>2];ve:{if(b){if(hf(b)){break ve}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break ve}b=H[a+208>>2];if(!b){break ve}zb[H[H[b>>2]+48>>2]](b)}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,3);b=H[a+208>>2];zb[H[H[b>>2]+56>>2]](b)}}xb=k+32|0;break p;case 14:b=0;e=0;k=xb-16|0;xb=k;F[k+2|0]=0;g=H[a>>2]-12|0;i=H[g>>2]+a|0;d=H[i+8>>2];c=H[i+12>>2];if(d+3>>>0>>0){e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[i+8>>2]=d}H[k+8>>2]=e;if(c>>>0>d+3>>>0){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[i+8>>2]=d+4}H[k+12>>2]=b;d=0;g=H[g>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];we:{if(b>>>0>=c>>>0){e=0;break we}e=I[b|0];b=b+1|0;H[g+8>>2]=b}F[k|0]=e;if(b>>>0>>0){d=I[b|0];b=b+1|0;H[g+8>>2]=b}F[k+1|0]=d;d=0;xe:{if(b>>>0>=c>>>0){e=0;break xe}e=I[b|0];b=b+1|0;H[g+8>>2]=b}F[k+2|0]=e;if(b>>>0>>0){d=I[b|0];H[g+8>>2]=b+1}F[k+3|0]=d;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){e=k+8|0;g=xb-16|0;xb=g;b=H[a+208>>2];if(b){zb[H[H[b>>2]+432>>2]](b,e,k);b=H[a+208>>2]}else{b=0}F[g+12|0]=I[k+2|0];F[g+13|0]=I[k+1|0];c=I[k|0];F[g+15|0]=255;F[g+14|0]=c;if(b){d=H[e>>2];l=+(d|0);c=H[e+4>>2];j=+(c|0);zb[H[H[b>>2]+16>>2]](b,l,j,+(d+1|0)-l,+(c+1|0)-j,g+12|0,1,1)}xb=g+16|0}xb=k+16|0;break p;case 107:H[h+40>>2]=0;H[h+44>>2]=0;H[h+56>>2]=0;H[h+48>>2]=0;H[h+52>>2]=0;b=H[b>>2];H[197455]=0;da(1799,b+v|0,h|0)|0;b=H[197455];H[197455]=0;ye:{ze:{if((b|0)==1){break ze}b=H[a+216>>2];if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break ze}if(c){break ye}}H[197455]=0;ba(1801,a|0,h|0);b=H[197455];H[197455]=0;if((b|0)!=1){break ye}}a=$()|0;_()|0;b=H[h+56>>2];if(b){Kb(b)}break b}b=H[h+56>>2];if(!b){break p}Kb(b);break p;case 62:f=0;e=0;g=xb-16|0;xb=g;H[g+8>>2]=0;H[g+12>>2]=0;d=H[H[a>>2]-12>>2]+a|0;b=H[d+8>>2];c=H[d+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+4>>2]=f;f=0;Ae:{if(c>>>0<=b+3>>>0){e=0;break Ae}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+8>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4}H[g+12>>2]=f;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){Be:{b=H[a+208>>2];if(!b){break Be}zb[H[H[b>>2]+440>>2]](b,g);b=H[a+208>>2];if(!b){break Be}c=H[a+156>>2];if(!c){break Be}zb[H[H[c>>2]+8>>2]](c,b,1,1,-1);b=H[a+156>>2];if(!b){break Be}zb[H[H[b>>2]+4>>2]](b);H[a+156>>2]=0}}xb=g+16|0;break p;case 63:f=0;e=0;g=xb-16|0;xb=g;H[g+8>>2]=0;H[g+12>>2]=0;d=H[H[a>>2]-12>>2]+a|0;b=H[d+8>>2];c=H[d+12>>2];if(b+3>>>0>>0){e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+4>>2]=f;f=0;Ce:{if(c>>>0<=b+3>>>0){e=0;break Ce}e=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0;H[d+8>>2]=b}H[g+8>>2]=e;if(c>>>0>b+3>>>0){f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d+8>>2]=b+4}H[g+12>>2]=f;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){De:{b=H[a+208>>2];if(!b){break De}zb[H[H[b>>2]+444>>2]](b,g);b=H[a+208>>2];if(!b){break De}c=H[a+156>>2];if(!c){break De}zb[H[H[c>>2]+8>>2]](c,b,1,0,-1);b=H[a+156>>2];if(!b){break De}zb[H[H[b>>2]+4>>2]](b);H[a+156>>2]=0}}xb=g+16|0;break p;case 73:f=0;e=0;i=xb+-64|0;xb=i;H[i+56>>2]=0;H[i+60>>2]=0;g=H[a>>2]-12|0;c=H[g>>2]+a|0;d=H[c+8>>2];b=H[c+12>>2];if(d+3>>>0>>0){e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[c+8>>2]=d}H[i+48>>2]=e;if(b>>>0>d+3>>>0){f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[c+8>>2]=d}H[i+52>>2]=f;f=0;Ee:{if(b>>>0<=d+3>>>0){e=0;break Ee}e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[c+8>>2]=d}H[i+56>>2]=e;if(b>>>0>d+3>>>0){f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[c+8>>2]=d+4}H[i+60>>2]=f;Fe:{Ge:{He:{Ie:{c=H[g>>2]+a|0;d=H[c+8>>2];Je:{if(d+3>>>0>=K[c+12>>2]){break Je}b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[c+8>>2]=d+4;if(b>>>0<33){break Je}H[i+40>>2]=0;H[i+44>>2]=0;H[i+32>>2]=0;H[i+36>>2]=0;aq((H[g>>2]+a|0)+4|0,i+16|0);if(H[i+16>>2]!=32|H[i+20>>2]!=1){break Je}b=H[i+24>>2];if(!b){break Je}H[i+8>>2]=0;H[i>>2]=0;H[i+4>>2]=0;Ke:{Le:{if(b>>>0>=268435456){H[197455]=0;ia(1829,i|0);a=H[197455];H[197455]=0;if((a|0)==1){break Le}X()}H[197455]=0;c=b<<4;f=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break Ke}}d=$()|0;_()|0;a=H[i>>2];if(!a){break e}H[i+4>>2]=a;Kb(a);break e}H[i>>2]=f;e=c+f|0;H[i+8>>2]=e;d=Nb(f,0,c);H[i+4>>2]=e;if(c){c=a+4|0;while(1){b=H[H[a>>2]-12>>2];H[197455]=0;Be(b+c|0,d);b=H[197455];H[197455]=0;if((b|0)==1){break He}d=d+16|0;if((e|0)!=(d|0)){continue}break}}b=H[a+216>>2];Me:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break Ie}if(c){break Me}}H[197455]=0;ka(1831,a|0,i+48|0,i+16|0,i|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ie}f=H[i>>2];if(!f){break Je}}H[i+4>>2]=f;Kb(f)}xb=i- -64|0;break Fe}d=$()|0;_()|0;f=H[i>>2];if(!f){break e}break Ge}d=$()|0;_()|0}H[i+4>>2]=f;Kb(f);break e}break p;case 70:d=0;c=0;b=xb+-64|0;xb=b;H[b+56>>2]=0;H[b+60>>2]=0;i=H[a>>2]-12|0;g=H[i>>2]+a|0;f=H[g+8>>2];e=H[g+12>>2];if(f+3>>>0>>0){c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[g+8>>2]=f}H[b+48>>2]=c;if(e>>>0>f+3>>>0){d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[g+8>>2]=f}H[b+52>>2]=d;d=0;Ne:{if(e>>>0<=f+3>>>0){c=0;break Ne}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[g+8>>2]=f}H[b+56>>2]=c;if(e>>>0>f+3>>>0){d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[g+8>>2]=f+4}H[b+60>>2]=d;c=0;d=H[i>>2]+a|0;g=d;f=H[d+12>>2];u=d+8|0;e=H[u>>2];Oe:{if(f>>>0<=e+3>>>0){d=0;break Oe}d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[g+8>>2]=e+4;e=H[i>>2]+a|0;f=H[e+12>>2];u=e+8|0;e=H[u>>2]}if(e+3>>>0>>0){c=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[u>>2]=e+4}Pe:{Qe:{Re:{Se:{Te:{if(d>>>0<33){break Te}H[b+40>>2]=0;H[b+44>>2]=0;H[b+32>>2]=0;H[b+36>>2]=0;aq((H[i>>2]+a|0)+4|0,b+16|0);if(H[b+16>>2]!=32|H[b+20>>2]!=1){break Te}d=H[b+24>>2];if(!d){break Te}H[b+8>>2]=0;H[b>>2]=0;H[b+4>>2]=0;Ue:{Ve:{if(d>>>0>=268435456){H[197455]=0;ia(1829,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break Ve}X()}H[197455]=0;g=d<<4;d=aa(899,g|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break Ue}}e=$()|0;_()|0;a=H[b>>2];if(!a){break Qe}H[b+4>>2]=a;Kb(a);break Qe}H[b>>2]=d;k=d+g|0;H[b+8>>2]=k;e=Nb(d,0,g);H[b+4>>2]=k;if(g){i=a+4|0;while(1){g=H[H[a>>2]-12>>2];H[197455]=0;Be(g+i|0,e);g=H[197455];H[197455]=0;if((g|0)==1){break Re}e=e+16|0;if((k|0)!=(e|0)){continue}break}}e=H[a+216>>2];We:{if(e){H[197455]=0;g=I[e+213|0];e=H[197455];H[197455]=0;if((e|0)==1){break Se}if(g){break We}}H[197455]=0;wa(1832,a|0,b+48|0,c|0,b+16|0,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break Se}d=H[b>>2];if(!d){break Te}}H[b+4>>2]=d;Kb(d)}xb=b- -64|0;break Pe}e=$()|0;_()|0;d=H[b>>2];if(!d){break Qe}break a}e=$()|0;_()|0;break a}ea(e|0);X()}break p;case 71:d=0;c=0;b=xb+-64|0;xb=b;H[b+56>>2]=0;H[b+60>>2]=0;i=H[a>>2]-12|0;g=H[i>>2]+a|0;f=H[g+8>>2];e=H[g+12>>2];if(f+3>>>0>>0){c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[g+8>>2]=f}H[b+48>>2]=c;if(e>>>0>f+3>>>0){d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[g+8>>2]=f}H[b+52>>2]=d;d=0;Xe:{if(e>>>0<=f+3>>>0){c=0;break Xe}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[g+8>>2]=f}H[b+56>>2]=c;if(e>>>0>f+3>>>0){d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[g+8>>2]=f+4}H[b+60>>2]=d;Ye:{Ze:{_e:{$e:{d=H[i>>2]+a|0;e=H[d+8>>2];af:{if(e+3>>>0>=K[d+12>>2]){break af}c=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[d+8>>2]=e+4;if(c>>>0<33){break af}c=0;e=H[i>>2]+a|0;g=e;d=H[g+12>>2];f=g+8|0;e=H[f>>2];bf:{if(d>>>0<=e+3>>>0){u=0;break bf}u=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[g+8>>2]=e+4;e=H[i>>2]+a|0;d=H[e+12>>2];f=e+8|0;e=H[f>>2]}t=0;if(e+3>>>0>>0){c=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[f>>2]=e+4;e=H[i>>2]+a|0;d=H[e+12>>2];f=e+8|0;e=H[f>>2]}if(e+3>>>0>>0){t=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[f>>2]=e+4}H[b+40>>2]=0;H[b+44>>2]=0;H[b+32>>2]=0;H[b+36>>2]=0;aq((H[i>>2]+a|0)+4|0,b+16|0);if(H[b+16>>2]!=32|H[b+20>>2]!=1){break af}d=H[b+24>>2];if(!d){break af}H[b+8>>2]=0;H[b>>2]=0;H[b+4>>2]=0;cf:{df:{if(d>>>0>=268435456){H[197455]=0;ia(1829,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break df}X()}H[197455]=0;g=d<<4;d=aa(899,g|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break cf}}e=$()|0;_()|0;a=H[b>>2];if(!a){break Ze}H[b+4>>2]=a;Kb(a);break Ze}H[b>>2]=d;k=d+g|0;H[b+8>>2]=k;e=Nb(d,0,g);H[b+4>>2]=k;if(g){i=a+4|0;while(1){g=H[H[a>>2]-12>>2];H[197455]=0;Be(g+i|0,e);g=H[197455];H[197455]=0;if((g|0)==1){break _e}e=e+16|0;if((k|0)!=(e|0)){continue}break}}e=H[a+216>>2];ef:{if(e){H[197455]=0;g=I[e+213|0];e=H[197455];H[197455]=0;if((e|0)==1){break $e}if(g){break ef}}H[197455]=0;ua(1833,a|0,b+48|0,u|0,c|0,t|0,b+16|0,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break $e}d=H[b>>2];if(!d){break af}}H[b+4>>2]=d;Kb(d)}xb=b- -64|0;break Ye}e=$()|0;_()|0;d=H[b>>2];if(!d){break Ze}break a}e=$()|0;_()|0;break a}ea(e|0);X()}break p;case 117:o=xb-32|0;xb=o;c=H[a>>2];m=c-12|0;b=H[m>>2]+a|0;k=b;f=H[b+12>>2];e=b+8|0;b=H[e>>2];r=f>>>0>b+3>>>0;d=(r<<2)+b|0;i=d+3>>>0>>0;d=(i<<2)+d|0;g=d+3>>>0>>0;d=(g<<2)+d|0;n=d+3|0;ff:{if(!(g|(i|r))){if(f>>>0<=n>>>0){break ff}}H[k+8>>2]=d+((f>>>0>n>>>0)<<2);b=H[m>>2]+a|0;f=H[b+12>>2];e=b+8|0;b=H[e>>2]}q=0;gf:{if(b+3>>>0>=f>>>0){u=0;break gf}u=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e>>2]=b+4;b=H[m>>2]+a|0;f=H[b+12>>2];e=b+8|0;b=H[e>>2]}if(b+3>>>0>>0){q=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e>>2]=b+4;b=H[m>>2]+a|0;f=H[b+12>>2];e=b+8|0;b=H[e>>2]}t=0;if(b+3>>>0>>0){t=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e>>2]=b+4}hf:{jf:{kf:{lf:{if(!q|u-5>>>0<4294967294){break lf}d=u<<4;f=Qb(d);H[o+16>>2]=f;e=d+f|0;H[o+24>>2]=e;b=Nb(f,0,d);H[o+20>>2]=e;mf:{if(!d){break mf}d=a+4|0;while(1){nf:{c=H[c-12>>2];H[197455]=0;Pz(d+c|0,b);c=H[197455];H[197455]=0;if((c|0)==1){break nf}b=b+16|0;if((e|0)==(b|0)){break mf}c=H[a>>2];continue}break}b=$()|0;_()|0;break jf}H[o+8>>2]=0;H[o>>2]=0;H[o+4>>2]=0;if(q>>>0>=536870912){H[197455]=0;ia(1835,o|0);a=H[197455];H[197455]=0;if((a|0)==1){break kf}X()}H[197455]=0;c=q<<3;e=aa(899,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break kf}H[o>>2]=e;k=c+e|0;H[o+8>>2]=k;b=Nb(e,0,c);H[o+4>>2]=k;if(c){i=a+4|0;g=H[a>>2]-12|0;while(1){c=0;f=0;d=i+H[g>>2]|0;n=H[d+4>>2];if(n+3>>>0>2]){f=I[n|0]|I[n+1|0]<<8|(I[n+2|0]<<16|I[n+3|0]<<24);H[d+4>>2]=n+4}H[b>>2]=f;d=i+H[g>>2]|0;n=H[d+4>>2];if(n+3>>>0>2]){c=I[n|0]|I[n+1|0]<<8|(I[n+2|0]<<16|I[n+3|0]<<24);H[d+4>>2]=n+4}H[b+4>>2]=c;b=b+8|0;if((k|0)!=(b|0)){continue}break}}if((u|0)==4){b=H[H[a>>2]-12>>2]+a|0;H[b+8>>2]=H[b+8>>2]+(q<<2)}b=H[a+216>>2];of:{pf:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break kf}if(c){break pf}}H[197455]=0;ka(1836,a|0,o+16|0,o|0,t|0);b=H[197455];H[197455]=0;if((b|0)==1){break kf}e=H[o>>2];if(!e){break of}}H[o+4>>2]=e;Kb(e)}b=H[o+16>>2];if(!b){break lf}H[o+20>>2]=b;Kb(b)}xb=o+32|0;break hf}b=$()|0;_()|0;a=H[o>>2];if(a){H[o+4>>2]=a;Kb(a)}f=H[o+16>>2];if(f){break jf}break g}H[o+20>>2]=f;Kb(f);break g}break p;case 38:d=0;g=xb-16|0;xb=g;c=Qb(48);H[197455]=0;i=Ng(c);b=H[197455];H[197455]=0;qf:{if((b|0)!=1){b=H[a>>2]-12|0;c=H[b>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>2]){d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4}H[g+12>>2]=d;e=0;u=0;c=H[b>>2]+a|0;b=H[c+12>>2];d=H[c+8>>2];if(b>>>0>d+3>>>0){u=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[c+8>>2]=d}H[i+8>>2]=u;if(b>>>0>d>>>0){e=I[d|0];H[c+8>>2]=d+1}F[i+12|0]=e;d=0;e=0;b=H[c+8>>2];if(b>>>0>2]){e=I[b|0];H[c+8>>2]=b+1}F[i+13|0]=e;b=H[c+8>>2];if(b>>>0>2]){d=I[b|0];H[c+8>>2]=b+1}F[i+14|0]=d;d=0;e=0;b=H[c+8>>2];if(b>>>0>2]){e=I[b|0];H[c+8>>2]=b+1}F[i+15|0]=e;b=H[c+8>>2];if(K[c+12>>2]>b+3>>>0){d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[c+8>>2]=b+4}H[i+16>>2]=d;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){c=g+12|0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+152>>2]](b,c,i)}$e(a+124|0,H[c>>2],i)}xb=g+16|0;break qf}a=$()|0;_()|0;Kb(c);break b}break p;case 93:d=0;c=H[b>>2]+v|0;e=H[c+4>>2];if(e+3>>>0>2]){d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+4>>2]=e+4}H[h+152>>2]=d;Qz(H[b>>2]+v|0,h);b=H[a+216>>2];if(I[b+213|0]?b:0){break p}c=h+152|0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+272>>2]](b,c,h,(H[H[a>>2]-12>>2]+a|0)+4|0)}Gz(a,h,H[c>>2]);break p;case 92:d=0;c=H[b>>2]+v|0;e=H[c+4>>2];if(e+3>>>0>2]){d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+4>>2]=e+4}H[h+152>>2]=d;Qz(H[b>>2]+v|0,h);b=H[a+216>>2];if(I[b+213|0]?b:0){break p}c=h+152|0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+268>>2]](b,c,h,(H[H[a>>2]-12>>2]+a|0)+4|0)}Gz(a,h,H[c>>2]);break p;case 48:f=0;g=xb-16|0;xb=g;i=Qb(12);H[i+8>>2]=0;G[i+4>>1]=0;H[i>>2]=417676;b=H[a>>2]-12|0;c=H[b>>2]+a|0;d=H[c+8>>2];if(d+3>>>0>2]){f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[c+8>>2]=d+4}H[g+12>>2]=f;t=0;k=H[b>>2]+a|0;f=H[k+12>>2];e=H[k+8>>2];if(f>>>0>e+1>>>0){e=e+2|0;H[k+8>>2]=e}rf:{sf:{if(e+1>>>0>=f>>>0){G[i+4>>1]=0;break sf}b=I[e|0]|I[e+1|0]<<8;d=e+2|0;H[k+8>>2]=d;G[i+4>>1]=b;if(!b){break sf}e=Qb(b<<2);H[i+8>>2]=e;while(1){q=0;if(d>>>0>>0){q=I[d|0];H[k+8>>2]=d+1}c=(t<<2)+e|0;F[c|0]=q;d=0;q=0;b=H[k+8>>2];if(b>>>0>2]){q=I[b|0];H[k+8>>2]=b+1}F[c+1|0]=q;b=H[k+8>>2];if(b>>>0>2]){d=I[b|0];H[k+8>>2]=b+1}F[c+2|0]=d;d=0;b=H[k+8>>2];if(b>>>0>2]){d=I[b|0];H[k+8>>2]=b+1}F[c+3|0]=d;t=t+1|0;if(t>>>0>=J[i+4>>1]){break rf}f=H[k+12>>2];d=H[k+8>>2];e=H[i+8>>2];continue}}H[i+8>>2]=0}b=H[a+216>>2];if(!(I[b+213|0]?b:0)){c=g+12|0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+300>>2]](b,c,i)}$e(a+124|0,H[c>>2],i)}xb=g+16|0;break p;case 37:f=0;c=0;g=xb-16|0;xb=g;e=H[a>>2]-12|0;b=H[e>>2]+a|0;d=H[b+8>>2];if(d+3>>>0>2]){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[b+8>>2]=d+4}H[g+12>>2]=c;i=Qb(28);H[i+24>>2]=0;G[i+16>>1]=0;H[i+8>>2]=0;H[i+12>>2]=1;H[i+4>>2]=424656;H[i>>2]=424608;F[i+18|0]=0;b=H[e>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[i+8>>2]=f;f=0;b=H[e>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[g+8>>2]=f;t=0;b=H[e>>2]+a|0;u=b+8|0;d=H[u>>2];f=H[b+12>>2];if(f>>>0>d+3>>>0){H[b+8>>2]=d+4;b=H[e>>2]+a|0;f=H[b+12>>2];u=b+8|0;d=H[u>>2]}tf:{if(d>>>0>=f>>>0){b=d;c=0;break tf}c=I[d|0];b=d+1|0;H[u>>2]=b}F[i+16|0]=c;if(b>>>0>>0){t=I[b|0];b=b+1|0;H[u>>2]=b}F[i+17|0]=t;d=0;uf:{if(b>>>0>=f>>>0){t=0;break uf}t=I[b|0];b=b+1|0;H[u>>2]=b}F[i+18|0]=t;if(b>>>0>>0){d=I[b|0];H[u>>2]=b+1}F[i+19|0]=d;b=H[a+216>>2];if(!(I[b+213|0]?b:0)){d=g+12|0;c=g+8|0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+188>>2]](b,d,c,i)}H[i+12>>2]=H[c>>2];$e(a+124|0,H[d>>2],i)}xb=g+16|0;break p;case 81:n=xb-16|0;xb=n;b=H[a+116>>2];m=Qb(372);F[m+368|0]=b-4>>>0<321;H[m+4>>2]=417500;H[m>>2]=417444;f=0;H[m+364>>2]=0;b=H[a>>2]-12|0;c=H[b>>2]+a|0;d=H[c+8>>2];if(d+3>>>0>2]){f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[c+8>>2]=d+4}H[n+12>>2]=f;o=(H[b>>2]+a|0)+4|0;t=0;f=0;vf:{if(I[m+368|0]){Mz(o,m+8|0);i=H[o+8>>2];c=H[o+4>>2];d=(i-c|0)/2|0;b=d>>>0<64?d:64;wf:{if(!b){break wf}xf:{yf:{if(i>>>0>c+1>>>0){g=b&1;if((b|0)!=1){break yf}d=0;break xf}Nb(m+100|0,0,b<<1);break wf}b=b&126;d=0;while(1){zf:{if(i>>>0<=c+1>>>0){e=0;break zf}e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(m+(d<<1)|0)+100>>1]=e;e=0;if(i>>>0>c+1>>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(m+((d|1)<<1)|0)+100>>1]=e;d=d+2|0;t=t+2|0;if((b|0)!=(t|0)){continue}break}}if(g){e=0;if(i>>>0>c+1>>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(m+(d<<1)|0)+100>>1]=e}d=(i-c|0)/2|0}b=d>>>0<32?d:32;Af:{if(!b){break Af}Bf:{Cf:{if(i>>>0>c+1>>>0){g=b&1;if((b|0)!=1){break Cf}d=0;break Bf}Nb(m+228|0,0,b<<1);break Af}b=b&62;d=0;t=0;while(1){Df:{if(i>>>0<=c+1>>>0){e=0;break Df}e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(m+(d<<1)|0)+228>>1]=e;e=0;if(i>>>0>c+1>>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(m+((d|1)<<1)|0)+228>>1]=e;d=d+2|0;t=t+2|0;if((b|0)!=(t|0)){continue}break}}if(g){e=0;if(i>>>0>c+1>>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(m+(d<<1)|0)+228>>1]=e}d=(i-c|0)/2|0}g=d>>>0<18?d:18;if(!g){break vf}if(i>>>0>c+1>>>0){d=0;if((g|0)!=1){b=g&30;t=0;while(1){Ef:{if(i>>>0<=c+1>>>0){e=0;break Ef}e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(m+(d<<1)|0)+292>>1]=e;e=0;if(i>>>0>c+1>>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(m+((d|1)<<1)|0)+292>>1]=e;d=d+2|0;t=t+2|0;if((b|0)!=(t|0)){continue}break}}if(!(g&1)){break vf}e=0;if(i>>>0>c+1>>>0){e=I[c|0]|I[c+1|0]<<8;H[o+4>>2]=c+2}G[(m+(d<<1)|0)+292>>1]=e;break vf}Nb(m+292|0,0,g<<1);break vf}i=m+8|0;Mz(o,i);k=H[o+8>>2];c=H[o+4>>2];e=(k-c|0)/2|0;b=e>>>0<64?e:64;Ff:{if(!b){break Ff}Gf:{Hf:{if(k>>>0>c+1>>>0){g=b&1;if((b|0)!=1){break Hf}e=0;break Gf}Nb(i+92|0,0,b<<1);break Ff}b=b&126;e=0;while(1){If:{if(k>>>0<=c+1>>>0){d=0;break If}d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(i+(e<<1)|0)+92>>1]=d;d=0;if(k>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(i+((e|1)<<1)|0)+92>>1]=d;e=e+2|0;f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(g){d=0;if(k>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(i+(e<<1)|0)+92>>1]=d}e=(k-c|0)/2|0}d=e>>>0<32?e:32;Jf:{if(!d){break Jf}Kf:{Lf:{Mf:{if(k>>>0>c+1>>>0){g=d&1;if((d|0)!=1){break Mf}e=0;break Lf}Nb(i+220|0,0,d<<1);break Kf}b=d&62;e=0;f=0;while(1){Nf:{if(k>>>0<=c+1>>>0){d=0;break Nf}d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(i+(e<<1)|0)+220>>1]=d;d=0;if(k>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(i+((e|1)<<1)|0)+220>>1]=d;e=e+2|0;f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(g){d=0;if(k>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(i+(e<<1)|0)+220>>1]=d}b=(k-c|0)/2|0;d=b>>>0<32?b:32;if(!d){break Jf}}if(k>>>0>c+1>>>0){g=d&1;e=0;if((d|0)!=1){b=d&62;f=0;while(1){Of:{if(k>>>0<=c+1>>>0){d=0;break Of}d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(i+(e<<1)|0)+284>>1]=d;d=0;if(k>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[o+4>>2]=c}G[(i+((e|1)<<1)|0)+284>>1]=d;e=e+2|0;f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(!g){break Jf}d=0;if(k>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;H[o+4>>2]=c+2}G[(i+(e<<1)|0)+284>>1]=d;break Jf}Nb(i+284|0,0,d<<1)}k=H[o+8>>2];c=H[o+4>>2];if(k>>>0>c+3>>>0){t=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[o+4>>2]=c}H[m+356>>2]=t;Pf:{if(k>>>0<=c+3>>>0){H[m+360>>2]=0;H[m+364>>2]=0;break Pf}g=I[c+3|0];i=I[c|0];e=I[c+1|0];b=I[c+2|0];d=c+4|0;H[o+4>>2]=d;H[m+364>>2]=0;b=i|e<<8|b<<16|g<<24;H[m+360>>2]=b;Qf:{if((t|0)!=134248036|b-17>>>0<4294967280){break Qf}r=Qb(b<<2);H[m+364>>2]=r;if(k>>>0>c+7>>>0){c=0;while(1){t=0;if(k>>>0>d+3>>>0){t=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[o+4>>2]=d}H[r+(c<<2)>>2]=t;c=c+1|0;if(b>>>0>c>>>0){continue}break}break Qf}c=i&7;t=0;d=0;if(b-1>>>0>=7){b=b-c|0;e=0;while(1){g=d<<2;H[g+r>>2]=0;H[r+(g|4)>>2]=0;H[r+(g|8)>>2]=0;H[r+(g|12)>>2]=0;H[r+(g|16)>>2]=0;H[r+(g|20)>>2]=0;H[r+(g|24)>>2]=0;H[r+(g|28)>>2]=0;d=d+8|0;e=e+8|0;if((b|0)!=(e|0)){continue}break}}if(!c){break Qf}while(1){H[r+(d<<2)>>2]=0;d=d+1|0;t=t+1|0;if((c|0)!=(t|0)){continue}break}}}}b=H[a+216>>2];if(!(I[b+213|0]?b:0)){c=n+12|0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+164>>2]](b,c,m)}$e(a+124|0,H[c>>2],m)}xb=n+16|0;break p;case 94:b=0;d=0;n=xb-16|0;xb=n;r=H[a>>2]-12|0;c=H[r>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>2]){b=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4}H[n+12>>2]=b;b=H[r>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;b=H[r>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;b=H[r>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;b=H[r>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;e=H[a+116>>2];m=Qb(28);H[m+24>>2]=0;G[m+16>>1]=0;H[m+8>>2]=0;H[m+12>>2]=1;H[m+4>>2]=424656;H[m>>2]=424608;F[m+18|0]=0;u=Qb(8);H[n>>2]=u;b=u+8|0;H[n+8>>2]=b;H[u>>2]=0;H[u+4>>2]=0;H[n+4>>2]=b;b=H[r>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[m+8>>2]=d;d=0;b=0;c=H[r>>2]+a|0;g=H[c+8>>2];if(g+3>>>0>2]){b=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[c+8>>2]=g+4}H[m+12>>2]=b;b=H[r>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[u>>2]=d;d=0;g=H[r>>2]+a|0;b=H[g+8>>2];c=H[g+12>>2];Rf:{if(b>>>0>=c>>>0){q=0;break Rf}q=I[b|0];b=b+1|0;H[g+8>>2]=b}F[m+16|0]=q;if(b>>>0>>0){d=I[b|0];b=b+1|0;H[g+8>>2]=b}F[m+17|0]=d;d=0;Sf:{if(b>>>0>=c>>>0){q=0;break Sf}q=I[b|0];b=b+1|0;H[g+8>>2]=b}F[m+18|0]=q;if(b>>>0>>0){d=I[b|0];H[g+8>>2]=b+1}F[m+19|0]=d;d=0;b=H[r>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4}H[u+4>>2]=d;Tf:{Uf:{Vf:{Wf:{b=H[r>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>=K[b+12>>2]){H[m+20>>2]=0;q=e-44|0;break Wf}k=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;H[m+20>>2]=k;q=e-44|0;if(!k){break Wf}d=0;H[197455]=0;c=k<<2;g=aa(929,((k|0)!=(k&1073741823)?-1:c)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Uf}q=q-c|0;H[m+24>>2]=g;c=a+4|0;while(1){b=0;e=c+H[r>>2]|0;i=H[e+4>>2];if(i+3>>>0>2]){b=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);H[e+4>>2]=i+4}H[g+(d<<2)>>2]=b;d=d+1|0;if(k>>>0>d>>>0){continue}break}break Vf}H[m+24>>2]=0}b=H[r>>2]+a|0;H[b+8>>2]=H[b+8>>2]+q;b=H[a+216>>2];Xf:{Yf:{if(b){H[197455]=0;c=I[b+213|0];b=H[197455];H[197455]=0;if((b|0)==1){break Uf}if(c){break Yf}}H[197455]=0;ka(1838,a|0,n+12|0,m|0,n|0);b=H[197455];H[197455]=0;if((b|0)==1){break Uf}u=H[n>>2];if(!u){break Xf}}H[n+4>>2]=u;Kb(u)}xb=n+16|0;break Tf}a=$()|0;_()|0;b=H[n>>2];if(b){H[n+4>>2]=b;Kb(b)}ea(a|0);X()}break p;case 36:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+160>>2]](b,h)}Zy(a+124|0,H[h>>2]);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 39:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+176>>2]](b,h)}Wy(a+124|0,H[h>>2]);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 47:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+304>>2]](b,h)}i=a+124|0;g=H[h>>2];if((g|0)==-2147483633){H[H[i>>2]+392>>2]=0}c=i+24|0;d=H[c>>2];Zf:{if(!d){break Zf}b=c;while(1){e=g>>>0>K[d+16>>2];b=e?b:d;d=H[(e<<2)+d>>2];if(d){continue}break}if((b|0)==(c|0)|g>>>0>2]){break Zf}b=H[b+20>>2];if((zb[H[H[b>>2]+8>>2]](b)|0)!=4){break Zf}H[H[i>>2]+392>>2]=b}break p;case 58:b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+156>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}b=H[a+208>>2];if(b){zb[H[H[b>>2]+196>>2]](b)}c=Qb(16);H[197455]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=424816;b=H[197455];H[197455]=0;_f:{if((b|0)!=1){H[a+156>>2]=c;b=H[a+120>>2];c=H[b+676>>2];Qd(H[a+156>>2],+H[b+672>>2],+(c|0));break _f}a=$()|0;_()|0;Kb(c);break b}break p;case 59:b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+200>>2]](b)}break p;case 60:b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+204>>2]](b)}b=H[a+156>>2];$f:{if(!b){break $f}if(hf(b)){break $f}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1}break p;case 64:b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+208>>2]](b)}break p;case 65:b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+212>>2]](b)}break p;case 67:b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+216>>2]](b)}b=H[a+156>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+156>>2]=0}break p;case 26:e=0;d=H[b>>2]+v|0;f=H[d+4>>2];b=H[d+8>>2];ag:{if(f+3>>>0>=b>>>0){c=0;break ag}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[d+4>>2]=f}H[h>>2]=c;if(b>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d+4>>2]=f+4}H[h+4>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+220>>2]](b,h)}d=H[h+4>>2];l=+(d|0);c=H[h>>2];j=+(c|0);b=H[a+156>>2];bg:{cg:{if(b){if(Qd(b,j,l)){break cg}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break bg}b=H[a+208>>2];if(!b){break cg}zb[H[H[b>>2]+32>>2]](b,j,l)}b=H[a+120>>2];H[b+672>>2]=c;H[b+676>>2]=d}break p;case 56:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+224>>2]](b,h)}H[H[a+120>>2]+680>>2]=H[h>>2];break p;case 32:b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+136>>2]](b)}Yy(a+124|0,-1);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 33:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+140>>2]](b,h)}b=H[h>>2];dg:{if((b|0)>=0){F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break dg}Xy(a+124|0,b);H[a+120>>2]=H[a+124>>2];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}}break p;case 23:e=0;F[h+2|0]=0;g=H[b>>2]+v|0;b=H[g+4>>2];d=H[g+8>>2];eg:{if(b>>>0>=d>>>0){c=0;break eg}c=I[b|0];b=b+1|0;H[g+4>>2]=b}F[h|0]=c;if(b>>>0>>0){e=I[b|0];b=b+1|0;H[g+4>>2]=b}F[h+1|0]=e;e=0;fg:{if(b>>>0>=d>>>0){c=0;break fg}c=I[b|0];b=b+1|0;H[g+4>>2]=b}F[h+2|0]=c;if(b>>>0>>0){e=I[b|0];H[g+4>>2]=b+1}F[h+3|0]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+156>>2]](b,h)}b=H[a+120>>2];F[b+592|0]=I[h|0];F[b+593|0]=I[h+1|0];F[b+594|0]=I[h+2|0];F[b+595|0]=I[h+3|0];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 21:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+168>>2]](b,h)}H[H[a+120>>2]+600>>2]=H[h>>2];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 17:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+172>>2]](b,h)}H[H[a+120>>2]+604>>2]=H[h>>2];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 57:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+180>>2]](b,h)}H[H[a+120>>2]+608>>2]=H[h>>2];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 18:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+192>>2]](b,h)}H[H[a+120>>2]+612>>2]=H[h>>2];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 16:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+232>>2]](b,h)}g=H[a+120>>2];b=H[h>>2];H[g+4>>2]=b;gg:{hg:{switch(b-1|0){case 0:H[g+632>>2]=0;H[g+636>>2]=1072693248;H[g+624>>2]=0;H[g+628>>2]=1072693248;break gg;case 1:H[g+632>>2]=-1860025207;H[g+636>>2]=1070736456;H[g+624>>2]=-1860025207;H[g+628>>2]=1070736456;break gg;case 2:H[g+632>>2]=-2117046872;H[g+636>>2]=1067255514;H[g+624>>2]=-2117046872;H[g+628>>2]=1067255514;break gg;case 3:H[g+632>>2]=1889785610;H[g+636>>2]=1072106045;H[g+624>>2]=1889785610;H[g+628>>2]=1072106045;break gg;case 4:H[g+632>>2]=-1924145348;H[g+636>>2]=1068658327;H[g+624>>2]=-1924145348;H[g+628>>2]=1068658327;break gg;case 5:H[g+632>>2]=-1717986918;H[g+636>>2]=1068079513;H[g+624>>2]=-1717986918;H[g+628>>2]=1068079513;break gg;case 6:case 7:break hg;default:break gg}}e=H[g+648>>2];if((e|0)<2){break gg}d=H[g+664>>2];if((d|0)<2){break gg}ig:{switch(b-7|0){case 0:j=+(d|0)/+(e|0);M[g+624>>3]=j;M[g+632>>3]=j;break gg;case 1:break ig;default:break gg}}c=H[g+652>>2];if(!c){break gg}b=H[g+668>>2];if(!b){break gg}M[g+632>>3]=+(b|0)/+(c|0);M[g+624>>3]=+(d|0)/+(e|0)}Q=M[g+624>>3];R=+(H[g+664>>2]>>31|1);z=Q*R;S=z*0+0;C=M[g+400>>3];A=M[g+632>>3];w=+(H[g+668>>2]>>31|1);p=A*w;j=p+0;D=M[g+416>>3];l=S*C+j*D;E=M[g+408>>3];L=M[g+424>>3];j=S*E+j*L;y=l*0+j;M[g+568>>3]=y;s=l+j*0;M[g+560>>3]=s;j=z+0;z=p*0+0;p=C*j+D*z;j=j*E+z*L;l=p*0+j;M[g+552>>3]=l;j=p+j*0;M[g+544>>3]=j;M[g+520>>3]=y;M[g+512>>3]=s;M[g+504>>3]=l;M[g+496>>3]=j;l=S+ +H[g+656>>2];j=z+ +H[g+660>>2];p=C*l+D*j+M[g+432>>3];j=l*E+j*L+M[g+440>>3];l=p*0+j-A*+H[g+644>>2]*w;M[g+584>>3]=l;j=p+j*0-Q*+H[g+640>>2]*R;M[g+576>>3]=j;M[g+536>>3]=l;M[g+528>>3]=j;break p;case 9:e=0;d=H[b>>2]+v|0;f=H[d+4>>2];b=H[d+8>>2];jg:{if(f+3>>>0>=b>>>0){c=0;break jg}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[d+4>>2]=f}H[h>>2]=c;if(b>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d+4>>2]=f+4}H[h+4>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+236>>2]](b,h)}k=H[a+120>>2];e=H[h>>2];H[k+640>>2]=e;d=H[h+4>>2];H[k+644>>2]=d;g=H[k+648>>2];i=H[k+664>>2];kg:{if((g|0)<2|(i|0)<2){break kg}lg:{switch(H[k+4>>2]-7|0){case 0:j=+(i|0)/+(g|0);M[k+624>>3]=j;M[k+632>>3]=j;break kg;case 1:break lg;default:break kg}}c=H[k+652>>2];if(!c){break kg}b=H[k+668>>2];if(!b){break kg}M[k+632>>3]=+(b|0)/+(c|0);M[k+624>>3]=+(i|0)/+(g|0)}R=M[k+624>>3];z=+(i>>31|1);A=R*z;C=A*0+0;D=M[k+400>>3];w=M[k+632>>3];y=+(H[k+668>>2]>>31|1);s=w*y;j=s+0;E=M[k+416>>3];p=C*D+j*E;L=M[k+408>>3];Q=M[k+424>>3];j=C*L+j*Q;l=p*0+j;M[k+568>>3]=l;j=p+j*0;M[k+560>>3]=j;M[k+520>>3]=l;M[k+512>>3]=j;j=A+0;s=s*0+0;p=D*j+E*s;j=j*L+s*Q;l=p*0+j;M[k+552>>3]=l;j=p+j*0;M[k+544>>3]=j;M[k+504>>3]=l;M[k+496>>3]=j;l=C+ +H[k+656>>2];j=s+ +H[k+660>>2];p=D*l+E*j+M[k+432>>3];j=l*L+j*Q+M[k+440>>3];l=p*0+j-w*+(d|0)*y;M[k+584>>3]=l;j=p+j*0-R*+(e|0)*z;M[k+576>>3]=j;M[k+536>>3]=l;M[k+528>>3]=j;b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 8:e=0;d=H[b>>2]+v|0;f=H[d+4>>2];b=H[d+8>>2];mg:{if(f+3>>>0>=b>>>0){c=0;break mg}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[d+4>>2]=f}H[h>>2]=c;if(b>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d+4>>2]=f+4}H[h+4>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+240>>2]](b,h)}b=H[H[a+120>>2]+4>>2];ng:{if((b|0)!=7&(b|0)!=8){break ng}Vy(H[a+120>>2],h);b=H[a+208>>2];if(!b){break ng}zb[H[H[b>>2]+84>>2]](b)}break p;case 31:c=0;q=0;u=0;g=H[a>>2]-12|0;e=H[g>>2]+a|0;d=e+8|0;b=H[d>>2];f=H[e+12>>2];if(f>>>0>b+3>>>0){q=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+8>>2]=b+4;b=H[g>>2]+a|0;f=H[b+12>>2];d=b+8|0;b=H[d>>2]}t=0;if(b+3>>>0>>0){c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d>>2]=b+4;b=H[g>>2]+a|0;f=H[b+12>>2];d=b+8|0;b=H[d>>2]}if(b+3>>>0>>0){u=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d>>2]=b+4;b=H[g>>2]+a|0;f=H[b+12>>2];d=b+8|0;b=H[d>>2]}if(b+3>>>0>>0){t=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d>>2]=b+4}b=H[a+216>>2];if(!(I[b+213|0]?b:0)){b=H[a+208>>2];if(b){zb[H[H[b>>2]+244>>2]](b,q,c,u,t)}b=H[H[a+120>>2]+4>>2];og:{if((b|0)!=7&(b|0)!=8){break og}l=+(u|0)/+(t|0);b=H[a+120>>2];j=+H[b+648>>2]*(+(q|0)/+(c|0));pg:{if(P(j)<2147483648){c=~~j;break pg}c=-2147483648}d=c;H[b+648>>2]=d;j=+H[b+652>>2]*l;qg:{if(P(j)<2147483648){c=~~j;break qg}c=-2147483648}H[b+652>>2]=c;i=H[b+4>>2];rg:{if((i|0)!=7){break rg}g=H[b+664>>2];l=+(g|0);s=P(l/+(d|0));e=H[b+668>>2];j=+(e|0);p=P(j/+(c|0));if(s>p){e=g>>31|1;j=T(p*l/s+.5);sg:{if(P(j)<2147483648){g=~~j;break sg}g=-2147483648}H[b+664>>2]=g?g:e;break rg}e=e>>31|1;j=T(s*j/p+.5);tg:{if(P(j)<2147483648){g=~~j;break tg}g=-2147483648}H[b+668>>2]=g?g:e}g=H[b+664>>2];ug:{if((d|0)<2|(g|0)<2){break ug}vg:{switch(i-7|0){case 0:j=+(g|0)/+(d|0);M[b+624>>3]=j;M[b+632>>3]=j;break ug;case 1:break vg;default:break ug}}if(!c){break ug}e=H[b+668>>2];if(!e){break ug}M[b+632>>3]=+(e|0)/+(c|0);M[b+624>>3]=+(g|0)/+(d|0)}R=M[b+624>>3];z=+(g>>31|1);A=R*z;C=A*0+0;D=M[b+400>>3];w=M[b+632>>3];y=+(H[b+668>>2]>>31|1);s=w*y;j=s+0;E=M[b+416>>3];p=C*D+j*E;L=M[b+408>>3];Q=M[b+424>>3];j=C*L+j*Q;l=p*0+j;M[b+568>>3]=l;j=p+j*0;M[b+560>>3]=j;M[b+520>>3]=l;M[b+512>>3]=j;j=A+0;s=s*0+0;p=D*j+E*s;j=j*L+s*Q;l=p*0+j;M[b+552>>3]=l;j=p+j*0;M[b+544>>3]=j;M[b+504>>3]=l;M[b+496>>3]=j;l=C+ +H[b+656>>2];j=s+ +H[b+660>>2];p=D*l+E*j+M[b+432>>3];j=l*L+j*Q+M[b+440>>3];l=p*0+j-w*+H[b+644>>2]*y;M[b+584>>3]=l;j=p+j*0-R*+H[b+640>>2]*z;M[b+576>>3]=j;M[b+536>>3]=l;M[b+528>>3]=j;b=H[a+208>>2];if(!b){break og}zb[H[H[b>>2]+84>>2]](b)}}break p;case 11:e=0;d=H[b>>2]+v|0;f=H[d+4>>2];b=H[d+8>>2];wg:{if(f+3>>>0>=b>>>0){c=0;break wg}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[d+4>>2]=f}H[h>>2]=c;if(b>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d+4>>2]=f+4}H[h+4>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+248>>2]](b,h)}k=H[a+120>>2];e=H[h>>2];H[k+656>>2]=e;d=H[h+4>>2];H[k+660>>2]=d;g=H[k+648>>2];i=H[k+664>>2];xg:{if((g|0)<2|(i|0)<2){break xg}yg:{switch(H[k+4>>2]-7|0){case 0:j=+(i|0)/+(g|0);M[k+624>>3]=j;M[k+632>>3]=j;break xg;case 1:break yg;default:break xg}}c=H[k+652>>2];if(!c){break xg}b=H[k+668>>2];if(!b){break xg}M[k+632>>3]=+(b|0)/+(c|0);M[k+624>>3]=+(i|0)/+(g|0)}R=M[k+624>>3];z=+(i>>31|1);A=R*z;C=A*0+0;D=M[k+400>>3];w=M[k+632>>3];y=+(H[k+668>>2]>>31|1);s=w*y;j=s+0;E=M[k+416>>3];p=C*D+j*E;L=M[k+408>>3];Q=M[k+424>>3];j=C*L+j*Q;l=p*0+j;M[k+568>>3]=l;j=p+j*0;M[k+560>>3]=j;M[k+520>>3]=l;M[k+512>>3]=j;j=A+0;s=s*0+0;p=D*j+E*s;j=j*L+s*Q;l=p*0+j;M[k+552>>3]=l;j=p+j*0;M[k+544>>3]=j;M[k+504>>3]=l;M[k+496>>3]=j;l=C+ +(e|0);j=s+ +(d|0);p=M[k+432>>3]+(D*l+E*j);j=l*L+j*Q+M[k+440>>3];l=p*0+j-w*+H[k+644>>2]*y;M[k+584>>3]=l;j=p+j*0-R*+H[k+640>>2]*z;M[k+576>>3]=j;M[k+536>>3]=l;M[k+528>>3]=j;b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 10:e=0;d=H[b>>2]+v|0;f=H[d+4>>2];b=H[d+8>>2];zg:{if(f+3>>>0>=b>>>0){c=0;break zg}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[d+4>>2]=f}H[h>>2]=c;if(b>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d+4>>2]=f+4}H[h+4>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+252>>2]](b,h)}b=H[H[a+120>>2]+4>>2];Ag:{if((b|0)!=7&(b|0)!=8){break Ag}Uy(H[a+120>>2],h);b=H[a+208>>2];if(!b){break Ag}zb[H[H[b>>2]+84>>2]](b)}break p;case 30:c=0;q=0;u=0;g=H[a>>2]-12|0;e=H[g>>2]+a|0;d=e+8|0;b=H[d>>2];f=H[e+12>>2];if(f>>>0>b+3>>>0){q=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[e+8>>2]=b+4;b=H[g>>2]+a|0;f=H[b+12>>2];d=b+8|0;b=H[d>>2]}t=0;if(b+3>>>0>>0){c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d>>2]=b+4;b=H[g>>2]+a|0;f=H[b+12>>2];d=b+8|0;b=H[d>>2]}if(b+3>>>0>>0){u=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d>>2]=b+4;b=H[g>>2]+a|0;f=H[b+12>>2];d=b+8|0;b=H[d>>2]}if(b+3>>>0>>0){t=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[d>>2]=b+4}b=H[a+216>>2];if(!(I[b+213|0]?b:0)){b=H[a+208>>2];if(b){zb[H[H[b>>2]+256>>2]](b,q,c,u,t)}b=H[H[a+120>>2]+4>>2];Bg:{if((b|0)!=7&(b|0)!=8){break Bg}l=+(u|0)/+(t|0);b=H[a+120>>2];j=+H[b+664>>2]*(+(q|0)/+(c|0));Cg:{if(P(j)<2147483648){c=~~j;break Cg}c=-2147483648}H[b+664>>2]=c;j=+H[b+668>>2]*l;Dg:{if(P(j)<2147483648){d=~~j;break Dg}d=-2147483648}H[b+668>>2]=d;g=H[b+4>>2];Eg:{if((g|0)!=7){e=H[b+648>>2];break Eg}l=+(c|0);e=H[b+648>>2];s=P(l/+(e|0));j=+(d|0);p=P(j/+H[b+652>>2]);if(s>p){c=c>>31|1;j=T(p*l/s+.5);Fg:{if(P(j)<2147483648){i=~~j;break Fg}i=-2147483648}c=i?i:c;H[b+664>>2]=c;break Eg}d=d>>31|1;j=T(s*j/p+.5);Gg:{if(P(j)<2147483648){i=~~j;break Gg}i=-2147483648}d=i?i:d;H[b+668>>2]=d}Hg:{if((e|0)<2|(c|0)<2){break Hg}Ig:{switch(g-7|0){case 0:j=+(c|0)/+(e|0);M[b+624>>3]=j;M[b+632>>3]=j;break Hg;case 1:break Ig;default:break Hg}}g=H[b+652>>2];if(!g|!d){break Hg}M[b+632>>3]=+(d|0)/+(g|0);M[b+624>>3]=+(c|0)/+(e|0)}Q=M[b+624>>3];R=+(c>>31|1);z=Q*R;S=z*0+0;C=M[b+400>>3];A=M[b+632>>3];w=+(d>>31|1);p=A*w;j=p+0;D=M[b+416>>3];l=S*C+j*D;E=M[b+408>>3];L=M[b+424>>3];j=S*E+j*L;y=l*0+j;M[b+568>>3]=y;s=l+j*0;M[b+560>>3]=s;j=z+0;z=p*0+0;p=C*j+D*z;j=j*E+z*L;l=p*0+j;M[b+552>>3]=l;j=p+j*0;M[b+544>>3]=j;M[b+520>>3]=y;M[b+512>>3]=s;M[b+504>>3]=l;M[b+496>>3]=j;l=S+ +H[b+656>>2];j=z+ +H[b+660>>2];p=C*l+D*j+M[b+432>>3];j=l*E+j*L+M[b+440>>3];l=p*0+j-A*+H[b+644>>2]*w;M[b+584>>3]=l;j=p+j*0-Q*+H[b+640>>2]*R;M[b+576>>3]=j;M[b+536>>3]=l;M[b+528>>3]=j;b=H[a+208>>2];if(!b){break Bg}zb[H[H[b>>2]+84>>2]](b)}}break p;case 24:e=0;F[h+2|0]=0;g=H[b>>2]+v|0;b=H[g+4>>2];d=H[g+8>>2];Jg:{if(b>>>0>=d>>>0){c=0;break Jg}c=I[b|0];b=b+1|0;H[g+4>>2]=b}F[h|0]=c;if(b>>>0>>0){e=I[b|0];b=b+1|0;H[g+4>>2]=b}F[h+1|0]=e;e=0;Kg:{if(b>>>0>=d>>>0){c=0;break Kg}c=I[b|0];b=b+1|0;H[g+4>>2]=b}F[h+2|0]=c;if(b>>>0>>0){e=I[b|0];H[g+4>>2]=b+1}F[h+3|0]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+280>>2]](b,h)}b=H[a+120>>2];F[b+596|0]=I[h|0];F[b+597|0]=I[h+1|0];F[b+598|0]=I[h+2|0];F[b+599|0]=I[h+3|0];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 20:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+260>>2]](b,h)}H[H[a+120>>2]+616>>2]=H[h>>2];break p;case 97:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+264>>2]](b,h)}break p;case 19:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+296>>2]](b,h)}H[H[a+120>>2]+620>>2]=H[h>>2];b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 51:b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+308>>2]](b)}break p;case 114:d=0;b=H[b>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+316>>2]](b,h)}break p;case 12:e=0;d=H[b>>2]+v|0;f=H[d+4>>2];b=H[d+8>>2];Lg:{if(f+3>>>0>=b>>>0){c=0;break Lg}c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f+4|0;H[d+4>>2]=f}H[h>>2]=c;if(b>>>0>f+3>>>0){e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);H[d+4>>2]=f+4}H[h+4>>2]=e;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+320>>2]](b,h)}break p;case 34:H[h>>2]=0;H[h+4>>2]=1072693248;H[h+16>>2]=0;H[h+20>>2]=0;H[h+8>>2]=0;H[h+12>>2]=0;H[h+24>>2]=0;H[h+28>>2]=1072693248;H[h+40>>2]=0;H[h+44>>2]=0;H[h+32>>2]=0;H[h+36>>2]=0;lg(H[b>>2]+v|0,h);b=H[a+216>>2];if(I[b+213|0]?b:0){break p}b=H[a+208>>2];if(b){zb[H[H[b>>2]+148>>2]](b,h)}xh(H[a+120>>2],h,4);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 35:H[h>>2]=0;H[h+4>>2]=1072693248;H[h+16>>2]=0;H[h+20>>2]=0;H[h+8>>2]=0;H[h+12>>2]=0;H[h+24>>2]=0;H[h+28>>2]=1072693248;H[h+40>>2]=0;H[h+44>>2]=0;H[h+32>>2]=0;H[h+36>>2]=0;lg(H[b>>2]+v|0,h);d=0;b=H[H[a>>2]-12>>2]+v|0;c=H[b+4>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4}H[h+152>>2]=d;b=H[a+216>>2];if(I[b+213|0]?b:0){break p}c=h+152|0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+144>>2]](b,h,c)}xh(H[a+120>>2],h,H[c>>2]);b=H[a+208>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break p;case 69:m=xb-480|0;xb=m;c=H[a>>2]-12|0;b=H[c>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;b=H[(H[c>>2]+a|0)+8>>2];F[m+475|0]=4;b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);F[m+468|0]=0;H[m+464>>2]=b;b=H[c>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;H[197455]=0;c=pa(1839,m+464|0,0,-1,400908,4)|0;b=H[197455];H[197455]=0;Mg:{Ng:{Og:{Pg:{Qg:{Rg:{Sg:{if((b|0)!=1){Tg:{Ug:{if(c){break Ug}c=H[a+208>>2];if(!c){break Ug}f=H[a+216>>2];Vg:{if(f){d=H[a>>2];break Vg}H[197455]=0;d=aa(899,280)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Tg}H[197455]=0;f=ca(1840,d|0,c|0,a+4|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Sg}H[a+216>>2]=d;b=d+H[H[d>>2]-12>>2]|0;d=H[a>>2];H[b+20>>2]=H[(H[d-12>>2]+a|0)+20>>2]}d=H[(H[d-12>>2]+a|0)+8>>2];b=H[a+116>>2];H[197455]=0;c=H[H[f>>2]-12>>2]+f|0;H[c+4>>2]=d;H[c+12>>2]=d+(b-8|0);H[c+8>>2]=d;b=H[197455];H[197455]=0;if((b|0)==1){break Tg}c=H[a+208>>2];b=H[H[c>>2]+104>>2];H[197455]=0;ia(b|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break Tg}c=H[a+216>>2];b=H[H[c>>2]+16>>2];H[197455]=0;ia(b|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break Tg}c=H[a+208>>2];b=H[H[c>>2]+104>>2];H[197455]=0;ia(b|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break Tg}b=H[H[a>>2]-12>>2]+a|0;H[b+8>>2]=(H[a+116>>2]+H[b+8>>2]|0)-8;break Og}b=I[m+475|0];if(((b<<24>>24<0?H[m+468>>2]:b)|0)!=4){break Og}H[197455]=0;c=pa(1839,m+464|0,0,-1,402608,4)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Ng}if(c){break Og}d=H[a>>2]-12|0;c=H[d>>2]+a|0;e=H[c+8>>2];if(e+3>>>0>=K[c+12>>2]){break Og}b=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[c+8>>2]=e+4;if((b|0)!=-2147483647){break Og}b=H[d>>2]+a|0;H[b+8>>2]=H[b+8>>2]+12;b=H[d>>2]+a|0;c=H[b+8>>2];if(c+3>>>0>=K[b+12>>2]){break Og}k=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=c+4;if(!k){break Og}H[197455]=0;b=aa(1636,m+200|0)|0;c=H[197455];H[197455]=0;Wg:{if((c|0)!=1){c=H[a>>2]-12|0;H[b+20>>2]=H[(H[c>>2]+a|0)+20>>2];c=H[(H[c>>2]+a|0)+8>>2];H[197455]=0;H[b+4>>2]=c;H[b+12>>2]=c+k;H[b+8>>2]=c;c=H[197455];H[197455]=0;if((c|0)==1){break Qg}H[197455]=0;ia(1843,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break Qg}if(!I[b+29|0]){break Wg}ce(b);break Og}a=$()|0;_()|0;break Pg}d=H[a+208>>2];if(!d){H[197455]=0;ia(1844,a|0);c=H[197455];H[197455]=0;if((c|0)!=1){break Rg}break Qg}c=H[H[d>>2]+96>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Qg}Xg:{if((d|0)==2){c=H[a+208>>2];H[197455]=0;d=H[c+4>>2];c=H[197455];H[197455]=0;Yg:{Zg:{if((c|0)==1){break Zg}H[197455]=0;d=ca(1846,m+128|0,b|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Zg}H[197455]=0;ba(1642,b|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break Yg}H[197455]=0;ia(1847,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break Yg}H[197455]=0;ia(1844,a|0);c=H[197455];H[197455]=0;if((c|0)==1){break Yg}H[d>>2]=396108;c=H[d+68>>2];if(!c){break Rg}Kb(c);break Rg}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;H[d>>2]=396108;c=H[d+68>>2];if(!c){break Xg}Kb(c);ce(b);break Pg}d=H[a+208>>2];if(!d){break Rg}c=H[H[d>>2]+96>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Qg}if((d|0)!=4){break Rg}c=H[a+208>>2];H[197455]=0;M[m+120>>3]=M[c+48>>3];M[m+112>>3]=M[c+56>>3];c=H[197455];H[197455]=0;_g:{if((c|0)==1){break _g}H[197455]=0;j=M[m+112>>3];$g:{if(j<4294967296&j>=0){c=~~j>>>0;break $g}c=0}j=M[m+120>>3];ah:{if(j<4294967296&j>=0){d=~~j>>>0;break ah}d=0}ka(1849,b|0,4,d|0,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break _g}c=H[a+208>>2];H[197455]=0;r=H[c+84>>2];c=H[197455];H[197455]=0;bh:{ch:{dh:{eh:{fh:{gh:{hh:{ih:{jh:{kh:{lh:{mh:{nh:{oh:{ph:{qh:{rh:{sh:{th:{uh:{vh:{wh:{if((c|0)!=1){H[197455]=0;Bk(m+128|0,b);c=H[197455];H[197455]=0;if((c|0)==1){break wh}H[197455]=0;c=H[197455];H[197455]=0;if((c|0)==1){break vh}i=H[a+100>>2];g=H[a+108>>2];e=H[a+104>>2];d=H[a+112>>2];H[197455]=0;s=M[m+128>>3];p=M[m+144>>3];l=M[m+136>>3];j=M[m+152>>3];n=da(1853,m+96|0,402840)|0;c=H[197455];H[197455]=0;if((c|0)==1){break uh}H[197455]=0;ga(1754,r|0,n|0,1);c=H[197455];H[197455]=0;if((c|0)==1){break th}if(F[n+11|0]<0){Kb(H[n>>2])}H[197455]=0;n=da(1853,m+96|0,403036)|0;c=H[197455];H[197455]=0;if((c|0)==1){break sh}H[197455]=0;Da(1757,m+16|0,+P(+(g-i|0)/(p-s)));c=H[197455];H[197455]=0;if((c|0)==1){break rh}H[197455]=0;g=ca(1758,m+16|0,0,403320)|0;c=H[197455];H[197455]=0;if((c|0)==1){break qh}H[m+40>>2]=H[g+8>>2];c=H[g+4>>2];H[m+32>>2]=H[g>>2];H[m+36>>2]=c;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,m+32|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break ph}H[m+56>>2]=H[m+40>>2];H[m+40>>2]=0;c=H[m+36>>2];H[m+48>>2]=H[m+32>>2];H[m+52>>2]=c;H[m+32>>2]=0;H[m+36>>2]=0;H[197455]=0;Da(1757,m|0,+P(+(d-e|0)/(j-l)));c=H[197455];H[197455]=0;if((c|0)==1){break oh}H[197455]=0;d=I[m+11|0];c=d<<24>>24<0;d=ca(1759,m+48|0,(c?H[m>>2]:m)|0,(c?H[m+4>>2]:d)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break nh}H[m+72>>2]=H[d+8>>2];c=H[d+4>>2];H[m+64>>2]=H[d>>2];H[m+68>>2]=c;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,m- -64|0,41);c=H[197455];H[197455]=0;if((c|0)==1){break mh}H[m+88>>2]=H[m+72>>2];H[m+72>>2]=0;c=H[m+68>>2];H[m+80>>2]=H[m+64>>2];H[m+84>>2]=c;H[m+64>>2]=0;H[m+68>>2]=0;H[197455]=0;ga(1755,r|0,n|0,m+80|0);c=H[197455];H[197455]=0;if((c|0)==1){break lh}if(F[m+91|0]<0){Kb(H[m+80>>2])}if(F[m+75|0]<0){Kb(H[m+64>>2])}if(F[m+11|0]<0){Kb(H[m>>2])}if(F[m+59|0]<0){Kb(H[m+48>>2])}if(F[m+43|0]<0){Kb(H[m+32>>2])}if(F[m+27|0]<0){Kb(H[m+16>>2])}if(F[n+11|0]<0){Kb(H[n>>2])}H[197455]=0;d=da(1853,m+96|0,402840)|0;c=H[197455];H[197455]=0;if((c|0)==1){break eh}H[197455]=0;ka(1760,r|0,d|0,1,0);c=H[197455];H[197455]=0;if((c|0)==1){break dh}if(F[d+11|0]<0){Kb(H[d>>2])}H[197455]=0;d=H[b+240>>2];c=H[197455];H[197455]=0;xh:{if((c|0)==1){break xh}H[197455]=0;Op(d+8|0,r);c=H[197455];H[197455]=0;if((c|0)==1){break xh}H[197455]=0;ia(1847,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break xh}H[197455]=0;d=da(1853,m+96|0,402840)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ch}H[197455]=0;ka(1760,r|0,d|0,0,0);c=H[197455];H[197455]=0;if((c|0)==1){break bh}if(F[d+11|0]<0){Kb(H[d>>2])}H[197455]=0;ia(1844,a|0);c=H[197455];H[197455]=0;if((c|0)!=1){break Rg}}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;if(F[n+11|0]>=0){break Xg}Kb(H[n>>2]);ce(b);break Pg}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;break fh}a=$()|0;_()|0;break gh}a=$()|0;_()|0;break hh}a=$()|0;_()|0;break ih}a=$()|0;_()|0;break jh}a=$()|0;_()|0;break kh}a=$()|0;_()|0;if(F[m+91|0]>=0){break kh}Kb(H[m+80>>2])}if(F[m+75|0]>=0){break jh}Kb(H[m+64>>2])}if(F[m+11|0]>=0){break ih}Kb(H[m>>2])}if(F[m+59|0]>=0){break hh}Kb(H[m+48>>2])}if(F[m+43|0]>=0){break gh}Kb(H[m+32>>2])}if(F[m+27|0]>=0){break fh}Kb(H[m+16>>2])}if(F[n+11|0]>=0){break Xg}Kb(H[n>>2]);ce(b);break Pg}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;if(F[d+11|0]>=0){break Xg}Kb(H[d>>2]);ce(b);break Pg}a=$()|0;_()|0;ce(b);break Pg}a=$()|0;_()|0;if(F[d+11|0]>=0){break Xg}Kb(H[d>>2]);ce(b);break Pg}a=$()|0;_()|0}ce(b);break Pg}a=$()|0;_()|0;break Pg}break Ng}a=$()|0;_()|0;Kb(d);break Pg}c=H[H[a>>2]-12>>2]+a|0;H[c+8>>2]=k+H[c+8>>2];ce(b);break Og}a=$()|0;_()|0;ce(b)}if(F[m+475|0]<0){Kb(H[m+464>>2])}break b}if(F[m+475|0]<0){Kb(H[m+464>>2])}xb=m+480|0;break Mg}ha(0)|0;_()|0;Zb();X()}break p;default:break q}}d=H[a+208>>2];if(d){c=H[a>>2]-12|0;b=H[c>>2]+a|0;H[b+8>>2]=H[b+8>>2]-8;zb[H[H[d>>2]+452>>2]](d,(H[c>>2]+a|0)+4|0)}b=H[H[a>>2]-12>>2]+a|0;H[b+8>>2]=H[b+8>>2]+H[a+116>>2]}if(I[a+212|0]){break m}q=H[a>>2];b=q-12|0;d=H[b>>2]+v|0;c=H[d+4>>2];H[d+4>>2]=c+(H[d>>2]+(H[a+116>>2]+V-(c+fa)|0)|0);W=W+1|0}d=H[b>>2];if(!I[Y+d|0]){continue}}break}b=H[a>>2];c=H[b-12>>2]+a|0;if(!I[c+29|0]){H[c+8>>2]=H[c+4>>2]}if(!I[a+212|0]){Tp(a);b=H[a>>2]}zb[H[b+32>>2]](a)}xb=h+160|0;return}a=$()|0;_()|0;c=H[b+88>>2];if(c){Kb(c);H[b+88>>2]=0}c=H[b+92>>2];if(c){Kb(c);H[b+92>>2]=0}break b}b=$()|0;_()|0;a=H[f>>2];if(!a){break g}H[f+4>>2]=a;Kb(a);break g}b=$()|0;_()|0;a=H[d>>2];if(!a){break g}H[d+4>>2]=a;Kb(a);break g}H[d+4>>2]=f;Kb(f)}ea(b|0);X()}d=$()|0;_()|0;a=H[f>>2];if(!a){break e}H[f+4>>2]=a;Kb(a)}ea(d|0);X()}a=$()|0;_()|0;Kz(e);break b}a=$()|0;_()|0;d=0;c=H[b+76>>2];if(c){yh:{if(H[b+72>>2]){while(1){e=N(d,48)+c|0;c=H[e+40>>2];if(c){Kb(c);H[e+40>>2]=0}c=H[e+44>>2];if(c){Kb(c);H[e+44>>2]=0}c=H[b+76>>2];d=d+1|0;if(d>>>0>2]){continue}break}if(!c){break yh}}Kb(c)}H[b+76>>2]=0}}ea(a|0);X()}H[b+4>>2]=d;Kb(d);ea(e|0);X()} +function Yla(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;F[a+72|0]=0;v=I[163632];w=v|256;e=!I[a+16|0];while(1){a:{b:{if(!(e&1)){break b}e=H[a+12>>2];d=e+1|0;h=H[a+4>>2];if(d>>>0>h>>>0){break b}c:{if(e>>>0>>0){i=H[a>>2];c=I[i+e|0];if((c|0)==12){e=w;if(d>>>0>=h>>>0){break c}c=I[d+i|0]|256;e=d}if(e>>>0>=h>>>0){e=c;break c}H[a+12>>2]=e+1;break a}F[a+16|0]=1;c=65535;e=v;if((e|0)==12){break a}}F[a+16|0]=1;H[a+12>>2]=h;c=e;break a}c=H[a+92>>2]?11:14}d:{e:{f:{switch(c-10|0){case 0:case 19:e=H[a+24>>2]-1|0;g:{if(e>>>0>=K[a+32>>2]){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break g}e=H[a+36>>2]+(e<<5)|0}if(!H[e+20>>2]){break e}F[a+40|0]=1;break d;case 6:vG(a);break d;case 5:break f;default:break e}}c=H[a+32>>2];e=H[a+24>>2]-1|0;h:{if(c>>>0<=e>>>0){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break h}e=H[a+36>>2]+(e<<5)|0}if(H[e+20>>2]){F[a+40|0]=1;break d}e=H[a+24>>2];i:{j:{if(e){e=e-1|0;H[a+24>>2]=e;if(c>>>0<=e>>>0){break j}e=H[a+36>>2]+(e<<5)|0;break i}F[a+20|0]=1}e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992}f=M[e>>3];k:{if(P(f)<2147483648){e=~~f;break k}e=-2147483648}if((e|0)<0){F[a+20|0]=1;e=0}l:{if(I[a+177|0]|I[a+178|0]){F[a+40|0]=1;break l}H[a+160>>2]=e}H[a+24>>2]=0;F[a+177|0]=1;break d}f=0;k=0;l=0;g=0;u=0;s=xb-16|0;xb=s;m:{n:{o:{p:{q:{r:{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:{switch(c-1|0){default:switch(c-255|0){case 38:break t;case 37:break u;case 36:break v;case 35:break w;case 0:break P;default:break s};case 10:if(I[a+16|0]){F[a+40|0]=1}e=H[a+92>>2];R:{S:{if(e){e=e-1|0;H[a+92>>2]=e;if(e>>>0>=K[a+100>>2]){break S}e=H[a+104>>2]+N(e,28)|0;break R}F[a+88|0]=1}H[196254]=H[40914];e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992}c=H[e+4>>2];H[a+44>>2]=H[e>>2];H[a+48>>2]=c;H[a+68>>2]=H[e+24>>2];c=H[e+20>>2];H[a+60>>2]=H[e+16>>2];H[a+64>>2]=c;c=H[e+12>>2];H[a+52>>2]=H[e+8>>2];H[a+56>>2]=c;c=H[e+8>>2];d=H[e+12>>2];h=H[e>>2];i=H[e+4>>2];F[a+16|0]=I[e+16|0];H[a+8>>2]=c;H[a+12>>2]=d;H[a>>2]=h;H[a+4>>2]=i;break m;case 1:case 8:case 11:case 12:case 14:case 15:case 16:case 27:break s;case 30:break x;case 29:break y;case 26:break z;case 25:break A;case 24:break B;case 23:break C;case 7:break D;case 6:break E;case 5:break F;case 4:break G;case 3:break H;case 21:break I;case 20:break J;case 18:case 19:break K;case 2:case 22:break L;case 0:case 17:break M;case 28:break N;case 9:break O;case 13:break Q}}F[a+72|0]=1;H[a+24>>2]=0;break m}if(I[a+16|0]){break m}c=H[a+4>>2];e=H[a+12>>2];if(c>>>0>>0){break m}T:{if(c>>>0<=e>>>0){F[a+16|0]=1;e=163632;break T}e=e+H[a>>2]|0}c=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);d=c>>>8&65280|c>>>24;e=H[a+24>>2];U:{if(e>>>0>2]){H[a+24>>2]=e+1;e=H[a+36>>2]+(e<<5)|0;break U}F[a+20|0]=1;e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992}H[e+8>>2]=0;H[e+12>>2]=0;if(H[e+16>>2]>=0){H[e+20>>2]=0}M[e>>3]=+(d|(c<<8&16711680|c<<24))*152587890625e-16;if(I[a+16|0]){e=H[a+4>>2];break n}e=H[a+4>>2];c=H[a+12>>2];if(e>>>0>>0){break n}c=c+4|0;if(c>>>0>e>>>0){break n}H[a+12>>2]=c;break m}On(a,a+116|0,2);break m}On(a,a+108|0,1);break m}e=H[a+24>>2];H[a+24>>2]=0;H[a+76>>2]=H[a+76>>2]+(e>>>1|0);break m}e=H[a+24>>2];H[a+24>>2]=0;H[a+80>>2]=H[a+80>>2]+(e>>>1|0);break m}V:{if(I[a+74|0]){e=H[a+84>>2];break V}F[a+74|0]=1;e=H[a+80>>2]+(H[a+24>>2]>>>1|0)|0;H[a+80>>2]=e;e=(e+H[a+76>>2]|0)+7>>>3|0;H[a+84>>2]=e}if(I[a+16|0]){break m}c=H[a+12>>2];d=c+e|0;e=H[a+4>>2];if(d>>>0>e>>>0){break m}H[a+24>>2]=0;if(c>>>0<=e>>>0){H[a+12>>2]=d;break m}F[a+16|0]=1;H[a+12>>2]=e;break m}h=xb-16|0;xb=h;e=H[a+140>>2];H[h+8>>2]=H[a+136>>2];H[h+12>>2]=e;e=H[a+132>>2];H[h>>2]=H[a+128>>2];H[h+4>>2]=e;e=H[a+24>>2];W:{X:{if(e){e=e-1|0;H[a+24>>2]=e;if(e>>>0>=K[a+32>>2]){break X}e=H[a+36>>2]+(e<<5)|0;break W}F[a+20|0]=1}e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992}l=I[a+176|0];Y:{if(!l){break Y}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Y}d=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];if((c|0)!=1){j=c&-2;while(1){m=g|1;f=+L[i+(m<<2)>>2]*M[d+(m<<3)>>3]+(+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+f);g=g+2|0;k=k+2|0;if((j|0)!=(k|0)){continue}break}}f=c&1?+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Y}H[e+20>>2]=0}c=H[a+24>>2];Z:{_:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){break _}c=H[a+36>>2]+(c<<5)|0;break Z}F[a+20|0]=1}c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992}$:{if(!l){break $}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break $}l=d&1;i=H[c+24>>2];k=H[a+172>>2];f=M[c>>3];aa:{if((d|0)==1){g=0;break aa}j=d&-2;g=0;d=0;while(1){m=g|1;f=+L[k+(m<<2)>>2]*M[i+(m<<3)>>3]+(+L[k+(g<<2)>>2]*M[i+(g<<3)>>3]+f);g=g+2|0;d=d+2|0;if((j|0)!=(d|0)){continue}break}}f=l?+L[k+(g<<2)>>2]*M[i+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break $}H[c+20>>2]=0}M[h>>3]=M[h>>3]+M[c>>3];M[h+8>>3]=M[h+8>>3]+M[e>>3];js(b,h);e=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=e;e=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=e;xb=h+16|0;if(!I[a+73|0]){if(!I[a+74|0]){F[a+74|0]=1;e=H[a+80>>2]+(H[a+24>>2]>>>1|0)|0;H[a+80>>2]=e;H[a+84>>2]=(e+H[a+76>>2]|0)+7>>>3}F[a+73|0]=1}H[a+24>>2]=0;break m}e=H[a+140>>2];H[s+8>>2]=H[a+136>>2];H[s+12>>2]=e;e=H[a+132>>2];H[s>>2]=H[a+128>>2];H[s+4>>2]=e;e=H[a+24>>2];ba:{ca:{if(e){e=e-1|0;H[a+24>>2]=e;if(e>>>0>=K[a+32>>2]){break ca}c=H[a+36>>2]+(e<<5)|0;break ba}F[a+20|0]=1}e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;c=784992}if(!I[a+176|0]){break o}e=H[c+20>>2];if(!e|(e|0)!=H[a+168>>2]){break o}i=e&1;d=H[c+24>>2];h=H[a+172>>2];f=M[c>>3];if((e|0)==1){e=0;break p}g=e&-2;e=0;while(1){l=e|1;f=+L[h+(l<<2)>>2]*M[d+(l<<3)>>3]+(+L[h+(e<<2)>>2]*M[d+(e<<3)>>3]+f);e=e+2|0;k=k+2|0;if((g|0)!=(k|0)){continue}break}break p}e=H[a+140>>2];H[s+8>>2]=H[a+136>>2];H[s+12>>2]=e;e=H[a+132>>2];H[s>>2]=H[a+128>>2];H[s+4>>2]=e;e=H[a+24>>2];da:{ea:{if(e){e=e-1|0;H[a+24>>2]=e;if(e>>>0>=K[a+32>>2]){break ea}c=H[a+36>>2]+(e<<5)|0;break da}F[a+20|0]=1}e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;c=784992}if(!I[a+176|0]){break q}e=H[c+20>>2];if(!e|(e|0)!=H[a+168>>2]){break q}i=e&1;d=H[c+24>>2];h=H[a+172>>2];f=M[c>>3];if((e|0)==1){e=0;break r}g=e&-2;e=0;while(1){l=e|1;f=+L[h+(l<<2)>>2]*M[d+(l<<3)>>3]+(+L[h+(e<<2)>>2]*M[d+(e<<3)>>3]+f);e=e+2|0;k=k+2|0;if((g|0)!=(k|0)){continue}break}break r}e=0;h=xb-16|0;xb=h;k=H[a+24>>2];if(k>>>0>=2){c=2;while(1){d=e;e=c;c=H[a+140>>2];H[h+8>>2]=H[a+136>>2];H[h+12>>2]=c;c=H[a+132>>2];H[h>>2]=H[a+128>>2];H[h+4>>2]=c;if(d>>>0>=k>>>0){F[a+20|0]=1}m=H[a+32>>2];fa:{if(m>>>0<=d>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break fa}c=H[a+36>>2]+(d<<5)|0}n=I[a+176|0];ga:{if(!n){break ga}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break ga}l=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];k=0;if((i|0)!=1){o=i&-2;g=0;while(1){p=k|1;f=+L[j+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((o|0)!=(g|0)){continue}break}}f=i&1?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ga}H[c+20>>2]=0}d=d|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}ha:{if(d>>>0>=m>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break ha}d=H[a+36>>2]+(d<<5)|0}ia:{if(!n){break ia}i=H[d+20>>2];if(!i|(i|0)!=H[a+168>>2]){break ia}l=H[d+24>>2];j=H[a+172>>2];f=M[d>>3];k=0;if((i|0)!=1){m=i&-2;g=0;while(1){n=k|1;f=+L[j+(n<<2)>>2]*M[l+(n<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((m|0)!=(g|0)){continue}break}}f=i&1?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break ia}H[d+20>>2]=0}M[h>>3]=M[h>>3]+M[c>>3];M[h+8>>3]=M[h+8>>3]+M[d>>3];ch(b,h);c=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=c;c=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=c;c=e+2|0;k=H[a+24>>2];if(c>>>0<=k>>>0){continue}break}}xb=h+16|0;H[a+24>>2]=0;break m}e=0;h=xb-16|0;xb=h;g=H[a+24>>2];if(g>>>0>=2){c=2;while(1){d=e;e=c;c=H[a+140>>2];H[h+8>>2]=H[a+136>>2];H[h+12>>2]=c;c=H[a+132>>2];H[h>>2]=H[a+128>>2];H[h+4>>2]=c;if(d>>>0>=g>>>0){F[a+20|0]=1}ja:{if(d>>>0>=K[a+32>>2]){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ja}c=H[a+36>>2]+(d<<5)|0}ka:{if(!I[a+176|0]){break ka}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break ka}k=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];g=0;if((i|0)!=1){m=i&-2;l=0;while(1){n=g|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(g<<2)>>2]*M[k+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((m|0)!=(l|0)){continue}break}}f=i&1?+L[j+(g<<2)>>2]*M[k+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ka}H[c+20>>2]=0}M[h>>3]=M[h>>3]+M[c>>3];ch(b,h);c=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=c;c=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=c;c=d|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}la:{if(c>>>0>=K[a+32>>2]){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break la}c=H[a+36>>2]+(c<<5)|0}ma:{if(!I[a+176|0]){break ma}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break ma}i=H[c+24>>2];k=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){j=d&-2;l=0;while(1){m=g|1;f=+L[k+(m<<2)>>2]*M[i+(m<<3)>>3]+(+L[k+(g<<2)>>2]*M[i+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((j|0)!=(l|0)){continue}break}}f=d&1?+L[k+(g<<2)>>2]*M[i+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ma}H[c+20>>2]=0}M[h+8>>3]=M[h+8>>3]+M[c>>3];ch(b,h);c=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=c;c=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=c;g=H[a+24>>2];c=e+2|0;if(g>>>0>=c>>>0){continue}break}}if(e>>>0>>0){c=H[a+140>>2];H[h+8>>2]=H[a+136>>2];H[h+12>>2]=c;c=H[a+132>>2];H[h>>2]=H[a+128>>2];H[h+4>>2]=c;na:{if(K[a+32>>2]<=e>>>0){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break na}e=H[a+36>>2]+(e<<5)|0}oa:{if(!I[a+176|0]){break oa}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break oa}k=c&1;d=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];pa:{if((c|0)==1){g=0;break pa}c=c&-2;g=0;l=0;while(1){j=g|1;f=+L[i+(j<<2)>>2]*M[d+(j<<3)>>3]+(+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((c|0)!=(l|0)){continue}break}}f=k?+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break oa}H[e+20>>2]=0}M[h>>3]=M[h>>3]+M[e>>3];ch(b,h);e=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=e;e=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=e}xb=h+16|0;H[a+24>>2]=0;break m}e=0;h=xb-16|0;xb=h;g=H[a+24>>2];if(g>>>0>=2){c=2;while(1){d=e;e=c;c=H[a+140>>2];H[h+8>>2]=H[a+136>>2];H[h+12>>2]=c;c=H[a+132>>2];H[h>>2]=H[a+128>>2];H[h+4>>2]=c;if(d>>>0>=g>>>0){F[a+20|0]=1}qa:{if(d>>>0>=K[a+32>>2]){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break qa}c=H[a+36>>2]+(d<<5)|0}ra:{if(!I[a+176|0]){break ra}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break ra}k=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];g=0;if((i|0)!=1){m=i&-2;l=0;while(1){n=g|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(g<<2)>>2]*M[k+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((m|0)!=(l|0)){continue}break}}f=i&1?+L[j+(g<<2)>>2]*M[k+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ra}H[c+20>>2]=0}M[h+8>>3]=M[h+8>>3]+M[c>>3];ch(b,h);c=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=c;c=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=c;c=d|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}sa:{if(c>>>0>=K[a+32>>2]){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break sa}c=H[a+36>>2]+(c<<5)|0}ta:{if(!I[a+176|0]){break ta}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break ta}i=H[c+24>>2];k=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){j=d&-2;l=0;while(1){m=g|1;f=+L[k+(m<<2)>>2]*M[i+(m<<3)>>3]+(+L[k+(g<<2)>>2]*M[i+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((j|0)!=(l|0)){continue}break}}f=d&1?+L[k+(g<<2)>>2]*M[i+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ta}H[c+20>>2]=0}M[h>>3]=M[h>>3]+M[c>>3];ch(b,h);c=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=c;c=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=c;g=H[a+24>>2];c=e+2|0;if(g>>>0>=c>>>0){continue}break}}if(e>>>0>>0){c=H[a+140>>2];H[h+8>>2]=H[a+136>>2];H[h+12>>2]=c;c=H[a+132>>2];H[h>>2]=H[a+128>>2];H[h+4>>2]=c;ua:{if(K[a+32>>2]<=e>>>0){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break ua}e=H[a+36>>2]+(e<<5)|0}va:{if(!I[a+176|0]){break va}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break va}k=c&1;d=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];wa:{if((c|0)==1){g=0;break wa}c=c&-2;g=0;l=0;while(1){j=g|1;f=+L[i+(j<<2)>>2]*M[d+(j<<3)>>3]+(+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((c|0)!=(l|0)){continue}break}}f=k?+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break va}H[e+20>>2]=0}M[h+8>>3]=M[h+8>>3]+M[e>>3];ch(b,h);e=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=e;e=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=e}xb=h+16|0;H[a+24>>2]=0;break m}e=0;i=xb-48|0;xb=i;g=H[a+24>>2];if(g>>>0>=6){c=6;while(1){h=e;e=c;c=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=c;c=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=c;if(g>>>0<=h>>>0){F[a+20|0]=1}k=H[a+32>>2];xa:{if(k>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break xa}c=H[a+36>>2]+(h<<5)|0}j=I[a+176|0];ya:{if(!j){break ya}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break ya}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;l=0;while(1){p=g|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ya}H[c+20>>2]=0}d=h|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}za:{if(d>>>0>=k>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break za}d=H[a+36>>2]+(d<<5)|0}Aa:{if(!j){break Aa}m=H[d+20>>2];if(!m|(m|0)!=H[a+168>>2]){break Aa}n=H[d+24>>2];o=H[a+172>>2];f=M[d>>3];g=0;if((m|0)!=1){p=m&-2;l=0;while(1){r=g|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((p|0)!=(l|0)){continue}break}}f=m&1?+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Aa}H[d+20>>2]=0}M[i+32>>3]=M[i+32>>3]+M[c>>3];M[i+40>>3]=M[i+40>>3]+M[d>>3];c=H[i+44>>2];H[i+24>>2]=H[i+40>>2];H[i+28>>2]=c;c=H[i+36>>2];H[i+16>>2]=H[i+32>>2];H[i+20>>2]=c;c=h+2|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Ba:{if(c>>>0>=k>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ba}c=H[a+36>>2]+(c<<5)|0}Ca:{if(!j){break Ca}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Ca}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;l=0;while(1){p=g|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Ca}H[c+20>>2]=0}d=h+3|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Da:{if(d>>>0>=k>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Da}d=H[a+36>>2]+(d<<5)|0}Ea:{if(!j){break Ea}m=H[d+20>>2];if(!m|(m|0)!=H[a+168>>2]){break Ea}n=H[d+24>>2];o=H[a+172>>2];f=M[d>>3];g=0;if((m|0)!=1){p=m&-2;l=0;while(1){r=g|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((p|0)!=(l|0)){continue}break}}f=m&1?+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Ea}H[d+20>>2]=0}M[i+16>>3]=M[i+16>>3]+M[c>>3];M[i+24>>3]=M[i+24>>3]+M[d>>3];c=H[i+28>>2];H[i+8>>2]=H[i+24>>2];H[i+12>>2]=c;c=H[i+20>>2];H[i>>2]=H[i+16>>2];H[i+4>>2]=c;c=h+4|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Fa:{if(c>>>0>=k>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Fa}c=H[a+36>>2]+(c<<5)|0}Ga:{if(!j){break Ga}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Ga}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;l=0;while(1){p=g|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Ga}H[c+20>>2]=0}d=h+5|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ha:{if(d>>>0>=k>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Ha}d=H[a+36>>2]+(d<<5)|0}Ia:{if(!j){break Ia}h=H[d+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Ia}k=H[d+24>>2];j=H[a+172>>2];f=M[d>>3];g=0;if((h|0)!=1){m=h&-2;l=0;while(1){n=g|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(g<<2)>>2]*M[k+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((m|0)!=(l|0)){continue}break}}f=h&1?+L[j+(g<<2)>>2]*M[k+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Ia}H[d+20>>2]=0}M[i>>3]=M[i>>3]+M[c>>3];M[i+8>>3]=M[i+8>>3]+M[d>>3];Zd(b,i+32|0,i+16|0,i);c=H[i+12>>2];H[a+136>>2]=H[i+8>>2];H[a+140>>2]=c;c=H[i+4>>2];H[a+128>>2]=H[i>>2];H[a+132>>2]=c;g=H[a+24>>2];c=e+6|0;if(g>>>0>=c>>>0){continue}break}}xb=i+48|0;H[a+24>>2]=0;break m}e=0;i=xb-48|0;xb=i;g=H[a+24>>2];if(g>>>0>=8){p=g-2|0;c=6;while(1){h=e;e=c;c=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=c;c=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=c;if(g>>>0<=h>>>0){F[a+20|0]=1}l=H[a+32>>2];Ja:{if(l>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ja}c=H[a+36>>2]+(h<<5)|0}j=I[a+176|0];Ka:{if(!j){break Ka}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Ka}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;k=0;while(1){r=g|1;f=+L[n+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f);g=g+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Ka}H[c+20>>2]=0}d=h|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}La:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break La}d=H[a+36>>2]+(d<<5)|0}Ma:{if(!j){break Ma}m=H[d+20>>2];if(!m|(m|0)!=H[a+168>>2]){break Ma}n=H[d+24>>2];o=H[a+172>>2];f=M[d>>3];g=0;if((m|0)!=1){r=m&-2;k=0;while(1){t=g|1;f=+L[o+(t<<2)>>2]*M[n+(t<<3)>>3]+(+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f);g=g+2|0;k=k+2|0;if((r|0)!=(k|0)){continue}break}}f=m&1?+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Ma}H[d+20>>2]=0}M[i+32>>3]=M[i+32>>3]+M[c>>3];M[i+40>>3]=M[i+40>>3]+M[d>>3];c=H[i+44>>2];H[i+24>>2]=H[i+40>>2];H[i+28>>2]=c;c=H[i+36>>2];H[i+16>>2]=H[i+32>>2];H[i+20>>2]=c;c=h+2|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Na:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Na}c=H[a+36>>2]+(c<<5)|0}Oa:{if(!j){break Oa}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Oa}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;k=0;while(1){r=g|1;f=+L[n+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f);g=g+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Oa}H[c+20>>2]=0}d=h+3|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Pa:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Pa}d=H[a+36>>2]+(d<<5)|0}Qa:{if(!j){break Qa}m=H[d+20>>2];if(!m|(m|0)!=H[a+168>>2]){break Qa}n=H[d+24>>2];o=H[a+172>>2];f=M[d>>3];g=0;if((m|0)!=1){r=m&-2;k=0;while(1){t=g|1;f=+L[o+(t<<2)>>2]*M[n+(t<<3)>>3]+(+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f);g=g+2|0;k=k+2|0;if((r|0)!=(k|0)){continue}break}}f=m&1?+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Qa}H[d+20>>2]=0}M[i+16>>3]=M[i+16>>3]+M[c>>3];M[i+24>>3]=M[i+24>>3]+M[d>>3];c=H[i+28>>2];H[i+8>>2]=H[i+24>>2];H[i+12>>2]=c;c=H[i+20>>2];H[i>>2]=H[i+16>>2];H[i+4>>2]=c;c=h+4|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Ra:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ra}c=H[a+36>>2]+(c<<5)|0}Sa:{if(!j){break Sa}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Sa}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;k=0;while(1){r=g|1;f=+L[n+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f);g=g+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Sa}H[c+20>>2]=0}d=h+5|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ta:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Ta}d=H[a+36>>2]+(d<<5)|0}Ua:{if(!j){break Ua}h=H[d+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Ua}l=H[d+24>>2];j=H[a+172>>2];f=M[d>>3];g=0;if((h|0)!=1){m=h&-2;k=0;while(1){n=g|1;f=+L[j+(n<<2)>>2]*M[l+(n<<3)>>3]+(+L[j+(g<<2)>>2]*M[l+(g<<3)>>3]+f);g=g+2|0;k=k+2|0;if((m|0)!=(k|0)){continue}break}}f=h&1?+L[j+(g<<2)>>2]*M[l+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Ua}H[d+20>>2]=0}M[i>>3]=M[i>>3]+M[c>>3];M[i+8>>3]=M[i+8>>3]+M[d>>3];Zd(b,i+32|0,i+16|0,i);c=H[i+12>>2];H[a+136>>2]=H[i+8>>2];H[a+140>>2]=c;c=H[i+4>>2];H[a+128>>2]=H[i>>2];H[a+132>>2]=c;g=H[a+24>>2];c=e+6|0;if(p>>>0>=c>>>0){continue}break}c=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=c;c=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=c;if(e>>>0>=g>>>0){F[a+20|0]=1}j=H[a+32>>2];Va:{if(j>>>0<=e>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break Va}d=H[a+36>>2]+(e<<5)|0}m=I[a+176|0];Wa:{if(!m){break Wa}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Wa}n=c&1;h=H[d+24>>2];l=H[a+172>>2];f=M[d>>3];Xa:{if((c|0)==1){g=0;break Xa}c=c&-2;g=0;k=0;while(1){o=g|1;f=+L[l+(o<<2)>>2]*M[h+(o<<3)>>3]+(+L[l+(g<<2)>>2]*M[h+(g<<3)>>3]+f);g=g+2|0;k=k+2|0;if((c|0)!=(k|0)){continue}break}}f=n?+L[l+(g<<2)>>2]*M[h+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Wa}H[d+20>>2]=0}e=e|1;if(e>>>0>=K[a+24>>2]){F[a+20|0]=1}Ya:{if(e>>>0>=j>>>0){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Ya}e=H[a+36>>2]+(e<<5)|0}Za:{if(!m){break Za}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Za}l=c&1;h=H[e+24>>2];k=H[a+172>>2];f=M[e>>3];_a:{if((c|0)==1){g=0;break _a}j=c&-2;g=0;c=0;while(1){m=g|1;f=+L[k+(m<<2)>>2]*M[h+(m<<3)>>3]+(+L[k+(g<<2)>>2]*M[h+(g<<3)>>3]+f);g=g+2|0;c=c+2|0;if((j|0)!=(c|0)){continue}break}}f=l?+L[k+(g<<2)>>2]*M[h+(g<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Za}H[e+20>>2]=0}M[i+32>>3]=M[i+32>>3]+M[d>>3];M[i+40>>3]=M[i+40>>3]+M[e>>3];ch(b,i+32|0);e=H[i+44>>2];H[a+136>>2]=H[i+40>>2];H[a+140>>2]=e;e=H[i+36>>2];H[a+128>>2]=H[i+32>>2];H[a+132>>2]=e}xb=i+48|0;H[a+24>>2]=0;break m}e=0;i=xb-48|0;xb=i;k=H[a+24>>2];if(k>>>0>=8){m=k-6|0;c=2;while(1){h=e;e=c;c=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=c;c=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=c;if(h>>>0>=k>>>0){F[a+20|0]=1}n=H[a+32>>2];$a:{if(n>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break $a}d=H[a+36>>2]+(h<<5)|0}o=I[a+176|0];ab:{if(!o){break ab}g=H[d+20>>2];if(!g|(g|0)!=H[a+168>>2]){break ab}l=H[d+24>>2];j=H[a+172>>2];f=M[d>>3];c=0;if((g|0)!=1){p=g&-2;k=0;while(1){r=c|1;f=+L[j+(r<<2)>>2]*M[l+(r<<3)>>3]+(+L[j+(c<<2)>>2]*M[l+(c<<3)>>3]+f);c=c+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=g&1?+L[j+(c<<2)>>2]*M[l+(c<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break ab}H[d+20>>2]=0}c=h|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}bb:{if(c>>>0>=n>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;h=784992;break bb}h=H[a+36>>2]+(c<<5)|0}cb:{if(!o){break cb}g=H[h+20>>2];if(!g|(g|0)!=H[a+168>>2]){break cb}l=H[h+24>>2];j=H[a+172>>2];f=M[h>>3];c=0;if((g|0)!=1){n=g&-2;k=0;while(1){o=c|1;f=+L[j+(o<<2)>>2]*M[l+(o<<3)>>3]+(+L[j+(c<<2)>>2]*M[l+(c<<3)>>3]+f);c=c+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}f=g&1?+L[j+(c<<2)>>2]*M[l+(c<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break cb}H[h+20>>2]=0}M[i+32>>3]=M[i+32>>3]+M[d>>3];M[i+40>>3]=M[i+40>>3]+M[h>>3];ch(b,i+32|0);c=H[i+44>>2];H[a+136>>2]=H[i+40>>2];H[a+140>>2]=c;c=H[i+36>>2];H[a+128>>2]=H[i+32>>2];H[a+132>>2]=c;k=H[a+24>>2];c=e+2|0;if(m>>>0>=c>>>0){continue}break}d=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=d;d=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=d;if(e>>>0>=k>>>0){F[a+20|0]=1}g=H[a+32>>2];db:{if(g>>>0<=e>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break db}d=H[a+36>>2]+(e<<5)|0}j=I[a+176|0];eb:{if(!j){break eb}h=H[d+20>>2];if(!h|(h|0)!=H[a+168>>2]){break eb}o=h&1;m=H[d+24>>2];n=H[a+172>>2];f=M[d>>3];fb:{if((h|0)==1){k=0;break fb}h=h&-2;k=0;l=0;while(1){p=k|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(k<<2)>>2]*M[m+(k<<3)>>3]+f);k=k+2|0;l=l+2|0;if((h|0)!=(l|0)){continue}break}}f=o?+L[n+(k<<2)>>2]*M[m+(k<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break eb}H[d+20>>2]=0}h=e|1;if(h>>>0>=K[a+24>>2]){F[a+20|0]=1}gb:{if(g>>>0<=h>>>0){h=H[40915];H[196254]=H[40914];H[196255]=h;h=H[40913];H[196252]=H[40912];H[196253]=h;h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992;break gb}h=H[a+36>>2]+(h<<5)|0}hb:{if(!j){break hb}k=H[h+20>>2];if(!k|(k|0)!=H[a+168>>2]){break hb}o=k&1;m=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];ib:{if((k|0)==1){k=0;break ib}p=k&-2;k=0;l=0;while(1){r=k|1;f=+L[n+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[n+(k<<2)>>2]*M[m+(k<<3)>>3]+f);k=k+2|0;l=l+2|0;if((p|0)!=(l|0)){continue}break}}f=o?+L[n+(k<<2)>>2]*M[m+(k<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break hb}H[h+20>>2]=0}M[i+32>>3]=M[i+32>>3]+M[d>>3];M[i+40>>3]=M[i+40>>3]+M[h>>3];d=H[i+44>>2];H[i+24>>2]=H[i+40>>2];H[i+28>>2]=d;d=H[i+36>>2];H[i+16>>2]=H[i+32>>2];H[i+20>>2]=d;if(K[a+24>>2]<=c>>>0){F[a+20|0]=1}jb:{if(c>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break jb}d=H[a+36>>2]+(c<<5)|0}kb:{if(!j){break kb}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break kb}m=c&1;h=H[d+24>>2];l=H[a+172>>2];f=M[d>>3];lb:{if((c|0)==1){c=0;break lb}n=c&-2;c=0;k=0;while(1){o=c|1;f=+L[l+(o<<2)>>2]*M[h+(o<<3)>>3]+(+L[l+(c<<2)>>2]*M[h+(c<<3)>>3]+f);c=c+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}f=m?+L[l+(c<<2)>>2]*M[h+(c<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break kb}H[d+20>>2]=0}c=e+3|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}mb:{if(c>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;h=784992;break mb}h=H[a+36>>2]+(c<<5)|0}nb:{if(!j){break nb}c=H[h+20>>2];if(!c|(c|0)!=H[a+168>>2]){break nb}n=c&1;l=H[h+24>>2];m=H[a+172>>2];f=M[h>>3];ob:{if((c|0)==1){c=0;break ob}o=c&-2;c=0;k=0;while(1){p=c|1;f=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(c<<2)>>2]*M[l+(c<<3)>>3]+f);c=c+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=n?+L[m+(c<<2)>>2]*M[l+(c<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break nb}H[h+20>>2]=0}M[i+16>>3]=M[i+16>>3]+M[d>>3];M[i+24>>3]=M[i+24>>3]+M[h>>3];c=H[i+28>>2];H[i+8>>2]=H[i+24>>2];H[i+12>>2]=c;c=H[i+20>>2];H[i>>2]=H[i+16>>2];H[i+4>>2]=c;c=e+4|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}pb:{if(c>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break pb}d=H[a+36>>2]+(c<<5)|0}qb:{if(!j){break qb}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break qb}m=c&1;h=H[d+24>>2];l=H[a+172>>2];f=M[d>>3];rb:{if((c|0)==1){c=0;break rb}n=c&-2;c=0;k=0;while(1){o=c|1;f=+L[l+(o<<2)>>2]*M[h+(o<<3)>>3]+(+L[l+(c<<2)>>2]*M[h+(c<<3)>>3]+f);c=c+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}f=m?+L[l+(c<<2)>>2]*M[h+(c<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break qb}H[d+20>>2]=0}e=e+5|0;if(e>>>0>=K[a+24>>2]){F[a+20|0]=1}sb:{if(e>>>0>=g>>>0){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break sb}e=H[a+36>>2]+(e<<5)|0}tb:{if(!j){break tb}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break tb}l=c&1;h=H[e+24>>2];g=H[a+172>>2];f=M[e>>3];ub:{if((c|0)==1){c=0;break ub}j=c&-2;c=0;k=0;while(1){m=c|1;f=+L[g+(m<<2)>>2]*M[h+(m<<3)>>3]+(+L[g+(c<<2)>>2]*M[h+(c<<3)>>3]+f);c=c+2|0;k=k+2|0;if((j|0)!=(k|0)){continue}break}}f=l?+L[g+(c<<2)>>2]*M[h+(c<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break tb}H[e+20>>2]=0}M[i>>3]=M[i>>3]+M[d>>3];M[i+8>>3]=M[i+8>>3]+M[e>>3];Zd(b,i+32|0,i+16|0,i);e=H[i+12>>2];H[a+136>>2]=H[i+8>>2];H[a+140>>2]=e;e=H[i+4>>2];H[a+128>>2]=H[i>>2];H[a+132>>2]=e}xb=i+48|0;H[a+24>>2]=0;break m}e=0;i=xb-48|0;xb=i;c=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=c;c=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=c;g=H[a+24>>2];if(g&1){vb:{if(!H[a+32>>2]){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break vb}e=H[a+36>>2]}wb:{if(!I[a+176|0]){break wb}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break wb}k=c&1;d=H[e+24>>2];h=H[a+172>>2];f=M[e>>3];xb:{if((c|0)==1){g=0;break xb}c=c&-2;g=0;while(1){j=g|1;f=+L[h+(j<<2)>>2]*M[d+(j<<3)>>3]+(+L[h+(g<<2)>>2]*M[d+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((c|0)!=(l|0)){continue}break}}f=k?+L[h+(g<<2)>>2]*M[d+(g<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break wb}H[e+20>>2]=0}M[i+32>>3]=M[i+32>>3]+M[e>>3];g=H[a+24>>2];e=1}c=e|4;if(c>>>0<=g>>>0){while(1){h=e;e=c;if(g>>>0<=h>>>0){F[a+20|0]=1}j=H[a+32>>2];yb:{if(j>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break yb}c=H[a+36>>2]+(h<<5)|0}m=I[a+176|0];zb:{if(!m){break zb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break zb}k=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;l=0;while(1){p=g|1;f=+L[n+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[n+(g<<2)>>2]*M[k+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[k+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break zb}H[c+20>>2]=0}M[i+40>>3]=M[i+40>>3]+M[c>>3];c=H[i+44>>2];H[i+24>>2]=H[i+40>>2];H[i+28>>2]=c;c=H[i+36>>2];H[i+16>>2]=H[i+32>>2];H[i+20>>2]=c;c=h+1|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Ab:{if(c>>>0>=j>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ab}c=H[a+36>>2]+(c<<5)|0}Bb:{if(!m){break Bb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Bb}k=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;l=0;while(1){p=g|1;f=+L[n+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[n+(g<<2)>>2]*M[k+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[k+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Bb}H[c+20>>2]=0}d=h+2|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Cb:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Cb}d=H[a+36>>2]+(d<<5)|0}Db:{if(!m){break Db}k=H[d+20>>2];if(!k|(k|0)!=H[a+168>>2]){break Db}n=H[d+24>>2];o=H[a+172>>2];f=M[d>>3];g=0;if((k|0)!=1){p=k&-2;l=0;while(1){r=g|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((p|0)!=(l|0)){continue}break}}f=k&1?+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Db}H[d+20>>2]=0}M[i+16>>3]=M[i+16>>3]+M[c>>3];M[i+24>>3]=M[i+24>>3]+M[d>>3];c=H[i+28>>2];H[i+8>>2]=H[i+24>>2];H[i+12>>2]=c;c=H[i+20>>2];H[i>>2]=H[i+16>>2];H[i+4>>2]=c;c=h+3|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Eb:{if(c>>>0>=j>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Eb}c=H[a+36>>2]+(c<<5)|0}Fb:{if(!m){break Fb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Fb}h=H[c+24>>2];k=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){j=d&-2;l=0;while(1){m=g|1;f=+L[k+(m<<2)>>2]*M[h+(m<<3)>>3]+(+L[k+(g<<2)>>2]*M[h+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((j|0)!=(l|0)){continue}break}}f=d&1?+L[k+(g<<2)>>2]*M[h+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Fb}H[c+20>>2]=0}M[i+8>>3]=M[i+8>>3]+M[c>>3];Zd(b,i+32|0,i+16|0,i);c=H[i+12>>2];H[a+136>>2]=H[i+8>>2];H[a+140>>2]=c;c=H[i+4>>2];H[a+128>>2]=H[i>>2];H[a+132>>2]=c;c=H[i+12>>2];H[i+40>>2]=H[i+8>>2];H[i+44>>2]=c;c=H[i+4>>2];H[i+32>>2]=H[i>>2];H[i+36>>2]=c;g=H[a+24>>2];c=e+4|0;if(g>>>0>=c>>>0){continue}break}}xb=i+48|0;H[a+24>>2]=0;break m}e=0;i=xb-48|0;xb=i;c=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=c;c=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=c;g=H[a+24>>2];if(g&1){Gb:{if(!H[a+32>>2]){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Gb}e=H[a+36>>2]}Hb:{if(!I[a+176|0]){break Hb}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Hb}k=c&1;d=H[e+24>>2];h=H[a+172>>2];f=M[e>>3];Ib:{if((c|0)==1){g=0;break Ib}c=c&-2;g=0;while(1){j=g|1;f=+L[h+(j<<2)>>2]*M[d+(j<<3)>>3]+(+L[h+(g<<2)>>2]*M[d+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((c|0)!=(l|0)){continue}break}}f=k?+L[h+(g<<2)>>2]*M[d+(g<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Hb}H[e+20>>2]=0}M[i+40>>3]=M[i+40>>3]+M[e>>3];g=H[a+24>>2];e=1}c=e|4;if(c>>>0<=g>>>0){while(1){h=e;e=c;if(g>>>0<=h>>>0){F[a+20|0]=1}j=H[a+32>>2];Jb:{if(j>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Jb}c=H[a+36>>2]+(h<<5)|0}m=I[a+176|0];Kb:{if(!m){break Kb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Kb}k=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;l=0;while(1){p=g|1;f=+L[n+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[n+(g<<2)>>2]*M[k+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[k+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Kb}H[c+20>>2]=0}M[i+32>>3]=M[i+32>>3]+M[c>>3];c=H[i+44>>2];H[i+24>>2]=H[i+40>>2];H[i+28>>2]=c;c=H[i+36>>2];H[i+16>>2]=H[i+32>>2];H[i+20>>2]=c;c=h+1|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Lb:{if(c>>>0>=j>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Lb}c=H[a+36>>2]+(c<<5)|0}Mb:{if(!m){break Mb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Mb}k=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){o=d&-2;l=0;while(1){p=g|1;f=+L[n+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[n+(g<<2)>>2]*M[k+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}f=d&1?+L[n+(g<<2)>>2]*M[k+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Mb}H[c+20>>2]=0}d=h+2|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Nb:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Nb}d=H[a+36>>2]+(d<<5)|0}Ob:{if(!m){break Ob}k=H[d+20>>2];if(!k|(k|0)!=H[a+168>>2]){break Ob}n=H[d+24>>2];o=H[a+172>>2];f=M[d>>3];g=0;if((k|0)!=1){p=k&-2;l=0;while(1){r=g|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((p|0)!=(l|0)){continue}break}}f=k&1?+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Ob}H[d+20>>2]=0}M[i+16>>3]=M[i+16>>3]+M[c>>3];M[i+24>>3]=M[i+24>>3]+M[d>>3];c=H[i+28>>2];H[i+8>>2]=H[i+24>>2];H[i+12>>2]=c;c=H[i+20>>2];H[i>>2]=H[i+16>>2];H[i+4>>2]=c;c=h+3|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Pb:{if(c>>>0>=j>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Pb}c=H[a+36>>2]+(c<<5)|0}Qb:{if(!m){break Qb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Qb}h=H[c+24>>2];k=H[a+172>>2];f=M[c>>3];g=0;if((d|0)!=1){j=d&-2;l=0;while(1){m=g|1;f=+L[k+(m<<2)>>2]*M[h+(m<<3)>>3]+(+L[k+(g<<2)>>2]*M[h+(g<<3)>>3]+f);g=g+2|0;l=l+2|0;if((j|0)!=(l|0)){continue}break}}f=d&1?+L[k+(g<<2)>>2]*M[h+(g<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Qb}H[c+20>>2]=0}M[i>>3]=M[i>>3]+M[c>>3];Zd(b,i+32|0,i+16|0,i);c=H[i+12>>2];H[a+136>>2]=H[i+8>>2];H[a+140>>2]=c;c=H[i+4>>2];H[a+128>>2]=H[i>>2];H[a+132>>2]=c;c=H[i+12>>2];H[i+40>>2]=H[i+8>>2];H[i+44>>2]=c;c=H[i+4>>2];H[i+32>>2]=H[i>>2];H[i+36>>2]=c;g=H[a+24>>2];c=e+4|0;if(g>>>0>=c>>>0){continue}break}}xb=i+48|0;H[a+24>>2]=0;break m}j=xb-96|0;xb=j;H[j+88>>2]=0;H[j+92>>2]=0;H[j+80>>2]=0;H[j+84>>2]=0;H[j+72>>2]=0;H[j+76>>2]=0;H[j+64>>2]=0;H[j+68>>2]=0;H[j+56>>2]=0;H[j+60>>2]=0;H[j+48>>2]=0;H[j+52>>2]=0;d=H[a+24>>2];Rb:{if(!(d&4)){if(d>>>0<8){break Rb}c=8;e=0;while(1){h=e;e=c;c=H[a+140>>2];H[j+88>>2]=H[a+136>>2];H[j+92>>2]=c;c=H[a+132>>2];H[j+80>>2]=H[a+128>>2];H[j+84>>2]=c;if(d>>>0<=h>>>0){F[a+20|0]=1}l=H[a+32>>2];Sb:{if(l>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Sb}c=H[a+36>>2]+(h<<5)|0}m=I[a+176|0];Tb:{if(!m){break Tb}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Tb}g=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Tb}H[c+20>>2]=0}M[j+88>>3]=M[j+88>>3]+M[c>>3];c=H[j+92>>2];H[j+72>>2]=H[j+88>>2];H[j+76>>2]=c;c=H[j+84>>2];H[j+64>>2]=H[j+80>>2];H[j+68>>2]=c;c=h|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Ub:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ub}c=H[a+36>>2]+(c<<5)|0}Vb:{if(!m){break Vb}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Vb}g=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Vb}H[c+20>>2]=0}d=h|2;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Wb:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break Wb}i=H[a+36>>2]+(d<<5)|0}Xb:{if(!m){break Xb}g=H[i+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Xb}n=H[i+24>>2];o=H[a+172>>2];f=M[i>>3];d=0;if((g|0)!=1){p=g&-2;k=0;while(1){r=d|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=g&1?+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f:f;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=f;if(H[i+16>>2]<0){break Xb}H[i+20>>2]=0}M[j+64>>3]=M[j+64>>3]+M[c>>3];M[j+72>>3]=M[j+72>>3]+M[i>>3];c=H[j+76>>2];H[j+56>>2]=H[j+72>>2];H[j+60>>2]=c;c=H[j+68>>2];H[j+48>>2]=H[j+64>>2];H[j+52>>2]=c;c=h|3;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Yb:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Yb}c=H[a+36>>2]+(c<<5)|0}Zb:{if(!m){break Zb}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Zb}g=H[c+24>>2];l=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){m=i&-2;k=0;while(1){n=d|1;f=+L[l+(n<<2)>>2]*M[g+(n<<3)>>3]+(+L[l+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((m|0)!=(k|0)){continue}break}}f=i&1?+L[l+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Zb}H[c+20>>2]=0}M[j+48>>3]=M[j+48>>3]+M[c>>3];Zd(b,j+80|0,j- -64|0,j+48|0);c=H[j+60>>2];H[a+136>>2]=H[j+56>>2];H[a+140>>2]=c;c=H[j+52>>2];H[a+128>>2]=H[j+48>>2];H[a+132>>2]=c;c=H[j+60>>2];H[j+88>>2]=H[j+56>>2];H[j+92>>2]=c;c=H[j+52>>2];H[j+80>>2]=H[j+48>>2];H[j+84>>2]=c;c=h|4;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}g=H[a+32>>2];_b:{if(g>>>0<=c>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break _b}c=H[a+36>>2]+(c<<5)|0}l=I[a+176|0];$b:{if(!l){break $b}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break $b}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break $b}H[c+20>>2]=0}f=M[c>>3];c=H[j+92>>2];H[j+72>>2]=H[j+88>>2];H[j+76>>2]=c;M[j+80>>3]=f+M[j+80>>3];c=H[j+84>>2];H[j+64>>2]=H[j+80>>2];H[j+68>>2]=c;c=h|5;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}ac:{if(c>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ac}c=H[a+36>>2]+(c<<5)|0}bc:{if(!l){break bc}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break bc}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break bc}H[c+20>>2]=0}d=h|6;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}cc:{if(d>>>0>=g>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break cc}i=H[a+36>>2]+(d<<5)|0}dc:{if(!l){break dc}m=H[i+20>>2];if(!m|(m|0)!=H[a+168>>2]){break dc}n=H[i+24>>2];o=H[a+172>>2];f=M[i>>3];d=0;if((m|0)!=1){p=m&-2;k=0;while(1){r=d|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=m&1?+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f:f;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=f;if(H[i+16>>2]<0){break dc}H[i+20>>2]=0}M[j+64>>3]=M[j+64>>3]+M[c>>3];M[j+72>>3]=M[j+72>>3]+M[i>>3];c=H[j+76>>2];H[j+56>>2]=H[j+72>>2];H[j+60>>2]=c;c=H[j+68>>2];H[j+48>>2]=H[j+64>>2];H[j+52>>2]=c;c=h|7;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}ec:{if(c>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ec}c=H[a+36>>2]+(c<<5)|0}fc:{if(!l){break fc}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break fc}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break fc}H[c+20>>2]=0}M[j+56>>3]=M[j+56>>3]+M[c>>3];c=H[a+24>>2];if(!(c-h>>>0>15|!(c&1))){if(c>>>0<=e>>>0){F[a+20|0]=1}gc:{if(e>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break gc}c=H[a+36>>2]+(e<<5)|0}hc:{if(!l){break hc}h=H[c+20>>2];if(!h|(h|0)!=H[a+168>>2]){break hc}i=H[c+24>>2];g=H[a+172>>2];f=M[c>>3];d=0;if((h|0)!=1){l=h&-2;k=0;while(1){m=d|1;f=+L[g+(m<<2)>>2]*M[i+(m<<3)>>3]+(+L[g+(d<<2)>>2]*M[i+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}f=h&1?+L[g+(d<<2)>>2]*M[i+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break hc}H[c+20>>2]=0}M[j+48>>3]=M[j+48>>3]+M[c>>3]}Zd(b,j+80|0,j- -64|0,j+48|0);c=H[j+60>>2];H[a+136>>2]=H[j+56>>2];H[a+140>>2]=c;c=H[j+52>>2];H[a+128>>2]=H[j+48>>2];H[a+132>>2]=c;d=H[a+24>>2];c=e+8|0;if(d>>>0>=c>>>0){continue}break}break Rb}e=H[a+140>>2];H[j+40>>2]=H[a+136>>2];H[j+44>>2]=e;e=H[a+132>>2];H[j+32>>2]=H[a+128>>2];H[j+36>>2]=e;l=H[a+32>>2];ic:{if(!l){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break ic}e=H[a+36>>2]}g=I[a+176|0];jc:{if(!g){break jc}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break jc}m=c&1;h=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];kc:{if((c|0)==1){d=0;break kc}c=c&-2;d=0;while(1){n=d|1;f=+L[i+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((c|0)!=(k|0)){continue}break}}f=m?+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break jc}H[e+20>>2]=0}M[j+40>>3]=M[j+40>>3]+M[e>>3];e=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=e;e=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=e;if(K[a+24>>2]<=1){F[a+20|0]=1}lc:{if(l>>>0<=1){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break lc}e=H[a+36>>2]+32|0}mc:{if(!g){break mc}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break mc}m=c&1;h=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];nc:{if((c|0)==1){d=0;break nc}c=c&-2;d=0;k=0;while(1){n=d|1;f=+L[i+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((c|0)!=(k|0)){continue}break}}f=m?+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break mc}H[e+20>>2]=0}if(K[a+24>>2]<=2){F[a+20|0]=1}oc:{if(l>>>0<=2){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break oc}c=H[a+36>>2]- -64|0}pc:{if(!g){break pc}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break pc}m=d&1;h=H[c+24>>2];i=H[a+172>>2];f=M[c>>3];qc:{if((d|0)==1){d=0;break qc}n=d&-2;d=0;k=0;while(1){o=d|1;f=+L[i+(o<<2)>>2]*M[h+(o<<3)>>3]+(+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}f=m?+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break pc}H[c+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[e>>3];M[j+24>>3]=M[j+24>>3]+M[c>>3];e=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=e;e=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=e;if(K[a+24>>2]<=3){F[a+20|0]=1}rc:{if(l>>>0<=3){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break rc}e=H[a+36>>2]+96|0}sc:{if(!g){break sc}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break sc}m=c&1;h=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];tc:{if((c|0)==1){d=0;break tc}c=c&-2;d=0;k=0;while(1){n=d|1;f=+L[i+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((c|0)!=(k|0)){continue}break}}f=m?+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break sc}H[e+20>>2]=0}M[j>>3]=M[j>>3]+M[e>>3];d=12;e=4;c=H[a+24>>2];if(c>>>0>=12){while(1){c=e;e=d;Zd(b,j+32|0,j+16|0,j);d=H[j+12>>2];H[a+136>>2]=H[j+8>>2];H[a+140>>2]=d;d=H[j+4>>2];H[a+128>>2]=H[j>>2];H[a+132>>2]=d;d=H[j+12>>2];H[j+40>>2]=H[j+8>>2];H[j+44>>2]=d;d=H[j+4>>2];H[j+32>>2]=H[j>>2];H[j+36>>2]=d;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}l=H[a+32>>2];uc:{if(l>>>0<=c>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break uc}h=H[a+36>>2]+(c<<5)|0}m=I[a+176|0];vc:{if(!m){break vc}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break vc}g=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break vc}H[h+20>>2]=0}f=M[h>>3];d=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=d;M[j+32>>3]=f+M[j+32>>3];d=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=d;d=c|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}wc:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break wc}h=H[a+36>>2]+(d<<5)|0}xc:{if(!m){break xc}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break xc}g=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break xc}H[h+20>>2]=0}d=c|2;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}yc:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break yc}i=H[a+36>>2]+(d<<5)|0}zc:{if(!m){break zc}g=H[i+20>>2];if(!g|(g|0)!=H[a+168>>2]){break zc}n=H[i+24>>2];o=H[a+172>>2];f=M[i>>3];d=0;if((g|0)!=1){p=g&-2;k=0;while(1){r=d|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=g&1?+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f:f;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=f;if(H[i+16>>2]<0){break zc}H[i+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[h>>3];M[j+24>>3]=M[j+24>>3]+M[i>>3];d=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=d;d=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=d;d=c|3;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ac:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Ac}h=H[a+36>>2]+(d<<5)|0}Bc:{if(!m){break Bc}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Bc}g=H[h+24>>2];l=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){m=i&-2;k=0;while(1){n=d|1;f=+L[l+(n<<2)>>2]*M[g+(n<<3)>>3]+(+L[l+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((m|0)!=(k|0)){continue}break}}f=i&1?+L[l+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break Bc}H[h+20>>2]=0}M[j+8>>3]=M[j+8>>3]+M[h>>3];Zd(b,j+32|0,j+16|0,j);d=H[j+12>>2];H[a+136>>2]=H[j+8>>2];H[a+140>>2]=d;d=H[j+4>>2];H[a+128>>2]=H[j>>2];H[a+132>>2]=d;d=H[j+12>>2];H[j+40>>2]=H[j+8>>2];H[j+44>>2]=d;d=H[j+4>>2];H[j+32>>2]=H[j>>2];H[j+36>>2]=d;d=c+4|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}l=H[a+32>>2];Cc:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Cc}h=H[a+36>>2]+(d<<5)|0}g=I[a+176|0];Dc:{if(!g){break Dc}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Dc}m=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break Dc}H[h+20>>2]=0}M[j+40>>3]=M[j+40>>3]+M[h>>3];d=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=d;d=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=d;d=c+5|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ec:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Ec}h=H[a+36>>2]+(d<<5)|0}Fc:{if(!g){break Fc}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Fc}m=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break Fc}H[h+20>>2]=0}d=c+6|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Gc:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break Gc}i=H[a+36>>2]+(d<<5)|0}Hc:{if(!g){break Hc}m=H[i+20>>2];if(!m|(m|0)!=H[a+168>>2]){break Hc}n=H[i+24>>2];o=H[a+172>>2];f=M[i>>3];d=0;if((m|0)!=1){p=m&-2;k=0;while(1){r=d|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=m&1?+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f:f;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=f;if(H[i+16>>2]<0){break Hc}H[i+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[h>>3];M[j+24>>3]=M[j+24>>3]+M[i>>3];d=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=d;d=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=d;c=c+7|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Ic:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ic}c=H[a+36>>2]+(c<<5)|0}Jc:{if(!g){break Jc}h=H[c+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Jc}i=H[c+24>>2];m=H[a+172>>2];f=M[c>>3];d=0;if((h|0)!=1){n=h&-2;k=0;while(1){o=d|1;f=+L[m+(o<<2)>>2]*M[i+(o<<3)>>3]+(+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}f=h&1?+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Jc}H[c+20>>2]=0}M[j>>3]=M[j>>3]+M[c>>3];d=e+8|0;c=H[a+24>>2];if(d>>>0<=c>>>0){continue}break}}if(c>>>0>e>>>0){Kc:{if(e>>>0>=l>>>0){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;d=784992;break Kc}d=H[a+36>>2]+(e<<5)|0}Lc:{if(!g){break Lc}e=H[d+20>>2];if(!e|(e|0)!=H[a+168>>2]){break Lc}g=e&1;h=H[d+24>>2];i=H[a+172>>2];f=M[d>>3];Mc:{if((e|0)==1){e=0;break Mc}k=e&-2;e=0;c=0;while(1){l=e|1;f=+L[i+(l<<2)>>2]*M[h+(l<<3)>>3]+(+L[i+(e<<2)>>2]*M[h+(e<<3)>>3]+f);e=e+2|0;c=c+2|0;if((k|0)!=(c|0)){continue}break}}f=g?+L[i+(e<<2)>>2]*M[h+(e<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Lc}H[d+20>>2]=0}M[j+8>>3]=M[j+8>>3]+M[d>>3]}Zd(b,j+32|0,j+16|0,j);e=H[j+12>>2];H[a+136>>2]=H[j+8>>2];H[a+140>>2]=e;e=H[j+4>>2];H[a+128>>2]=H[j>>2];H[a+132>>2]=e}xb=j+96|0;H[a+24>>2]=0;break m}j=xb-96|0;xb=j;H[j+88>>2]=0;H[j+92>>2]=0;H[j+80>>2]=0;H[j+84>>2]=0;H[j+72>>2]=0;H[j+76>>2]=0;H[j+64>>2]=0;H[j+68>>2]=0;H[j+56>>2]=0;H[j+60>>2]=0;H[j+48>>2]=0;H[j+52>>2]=0;d=H[a+24>>2];Nc:{if(!(d&4)){if(d>>>0<8){break Nc}c=8;e=0;while(1){h=e;e=c;c=H[a+140>>2];H[j+88>>2]=H[a+136>>2];H[j+92>>2]=c;c=H[a+132>>2];H[j+80>>2]=H[a+128>>2];H[j+84>>2]=c;if(d>>>0<=h>>>0){F[a+20|0]=1}l=H[a+32>>2];Oc:{if(l>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Oc}c=H[a+36>>2]+(h<<5)|0}m=I[a+176|0];Pc:{if(!m){break Pc}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Pc}g=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Pc}H[c+20>>2]=0}f=M[c>>3];c=H[j+92>>2];H[j+72>>2]=H[j+88>>2];H[j+76>>2]=c;M[j+80>>3]=f+M[j+80>>3];c=H[j+84>>2];H[j+64>>2]=H[j+80>>2];H[j+68>>2]=c;c=h|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Qc:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Qc}c=H[a+36>>2]+(c<<5)|0}Rc:{if(!m){break Rc}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Rc}g=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Rc}H[c+20>>2]=0}d=h|2;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Sc:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break Sc}i=H[a+36>>2]+(d<<5)|0}Tc:{if(!m){break Tc}g=H[i+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Tc}n=H[i+24>>2];o=H[a+172>>2];f=M[i>>3];d=0;if((g|0)!=1){p=g&-2;k=0;while(1){r=d|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=g&1?+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f:f;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=f;if(H[i+16>>2]<0){break Tc}H[i+20>>2]=0}M[j+64>>3]=M[j+64>>3]+M[c>>3];M[j+72>>3]=M[j+72>>3]+M[i>>3];c=H[j+76>>2];H[j+56>>2]=H[j+72>>2];H[j+60>>2]=c;c=H[j+68>>2];H[j+48>>2]=H[j+64>>2];H[j+52>>2]=c;c=h|3;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Uc:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Uc}c=H[a+36>>2]+(c<<5)|0}Vc:{if(!m){break Vc}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Vc}g=H[c+24>>2];l=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){m=i&-2;k=0;while(1){n=d|1;f=+L[l+(n<<2)>>2]*M[g+(n<<3)>>3]+(+L[l+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((m|0)!=(k|0)){continue}break}}f=i&1?+L[l+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Vc}H[c+20>>2]=0}M[j+56>>3]=M[j+56>>3]+M[c>>3];Zd(b,j+80|0,j- -64|0,j+48|0);c=H[j+60>>2];H[a+136>>2]=H[j+56>>2];H[a+140>>2]=c;c=H[j+52>>2];H[a+128>>2]=H[j+48>>2];H[a+132>>2]=c;c=H[j+60>>2];H[j+88>>2]=H[j+56>>2];H[j+92>>2]=c;c=H[j+52>>2];H[j+80>>2]=H[j+48>>2];H[j+84>>2]=c;c=h|4;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}g=H[a+32>>2];Wc:{if(g>>>0<=c>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Wc}c=H[a+36>>2]+(c<<5)|0}l=I[a+176|0];Xc:{if(!l){break Xc}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Xc}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Xc}H[c+20>>2]=0}M[j+88>>3]=M[j+88>>3]+M[c>>3];c=H[j+92>>2];H[j+72>>2]=H[j+88>>2];H[j+76>>2]=c;c=H[j+84>>2];H[j+64>>2]=H[j+80>>2];H[j+68>>2]=c;c=h|5;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Yc:{if(c>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Yc}c=H[a+36>>2]+(c<<5)|0}Zc:{if(!l){break Zc}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Zc}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Zc}H[c+20>>2]=0}d=h|6;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}_c:{if(d>>>0>=g>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break _c}i=H[a+36>>2]+(d<<5)|0}$c:{if(!l){break $c}m=H[i+20>>2];if(!m|(m|0)!=H[a+168>>2]){break $c}n=H[i+24>>2];o=H[a+172>>2];f=M[i>>3];d=0;if((m|0)!=1){p=m&-2;k=0;while(1){r=d|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=m&1?+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f:f;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=f;if(H[i+16>>2]<0){break $c}H[i+20>>2]=0}M[j+64>>3]=M[j+64>>3]+M[c>>3];M[j+72>>3]=M[j+72>>3]+M[i>>3];c=H[j+76>>2];H[j+56>>2]=H[j+72>>2];H[j+60>>2]=c;c=H[j+68>>2];H[j+48>>2]=H[j+64>>2];H[j+52>>2]=c;c=h|7;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}ad:{if(c>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ad}c=H[a+36>>2]+(c<<5)|0}bd:{if(!l){break bd}i=H[c+20>>2];if(!i|(i|0)!=H[a+168>>2]){break bd}m=H[c+24>>2];n=H[a+172>>2];f=M[c>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break bd}H[c+20>>2]=0}M[j+48>>3]=M[j+48>>3]+M[c>>3];c=H[a+24>>2];if(!(c-h>>>0>15|!(c&1))){if(c>>>0<=e>>>0){F[a+20|0]=1}cd:{if(e>>>0>=g>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break cd}c=H[a+36>>2]+(e<<5)|0}dd:{if(!l){break dd}h=H[c+20>>2];if(!h|(h|0)!=H[a+168>>2]){break dd}i=H[c+24>>2];g=H[a+172>>2];f=M[c>>3];d=0;if((h|0)!=1){l=h&-2;k=0;while(1){m=d|1;f=+L[g+(m<<2)>>2]*M[i+(m<<3)>>3]+(+L[g+(d<<2)>>2]*M[i+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}f=h&1?+L[g+(d<<2)>>2]*M[i+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break dd}H[c+20>>2]=0}M[j+56>>3]=M[j+56>>3]+M[c>>3]}Zd(b,j+80|0,j- -64|0,j+48|0);c=H[j+60>>2];H[a+136>>2]=H[j+56>>2];H[a+140>>2]=c;c=H[j+52>>2];H[a+128>>2]=H[j+48>>2];H[a+132>>2]=c;d=H[a+24>>2];c=e+8|0;if(d>>>0>=c>>>0){continue}break}break Nc}e=H[a+140>>2];H[j+40>>2]=H[a+136>>2];H[j+44>>2]=e;e=H[a+132>>2];H[j+32>>2]=H[a+128>>2];H[j+36>>2]=e;l=H[a+32>>2];ed:{if(!l){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break ed}e=H[a+36>>2]}g=I[a+176|0];fd:{if(!g){break fd}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break fd}m=c&1;h=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];gd:{if((c|0)==1){d=0;break gd}c=c&-2;d=0;while(1){n=d|1;f=+L[i+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((c|0)!=(k|0)){continue}break}}f=m?+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break fd}H[e+20>>2]=0}M[j+32>>3]=M[j+32>>3]+M[e>>3];e=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=e;e=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=e;if(K[a+24>>2]<=1){F[a+20|0]=1}hd:{if(l>>>0<=1){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break hd}e=H[a+36>>2]+32|0}id:{if(!g){break id}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break id}m=c&1;h=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];jd:{if((c|0)==1){d=0;break jd}c=c&-2;d=0;k=0;while(1){n=d|1;f=+L[i+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((c|0)!=(k|0)){continue}break}}f=m?+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break id}H[e+20>>2]=0}if(K[a+24>>2]<=2){F[a+20|0]=1}kd:{if(l>>>0<=2){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break kd}c=H[a+36>>2]- -64|0}ld:{if(!g){break ld}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break ld}m=d&1;h=H[c+24>>2];i=H[a+172>>2];f=M[c>>3];md:{if((d|0)==1){d=0;break md}n=d&-2;d=0;k=0;while(1){o=d|1;f=+L[i+(o<<2)>>2]*M[h+(o<<3)>>3]+(+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}f=m?+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ld}H[c+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[e>>3];M[j+24>>3]=M[j+24>>3]+M[c>>3];e=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=e;e=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=e;if(K[a+24>>2]<=3){F[a+20|0]=1}nd:{if(l>>>0<=3){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break nd}e=H[a+36>>2]+96|0}od:{if(!g){break od}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break od}m=c&1;h=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];pd:{if((c|0)==1){d=0;break pd}c=c&-2;d=0;k=0;while(1){n=d|1;f=+L[i+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((c|0)!=(k|0)){continue}break}}f=m?+L[i+(d<<2)>>2]*M[h+(d<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break od}H[e+20>>2]=0}M[j+8>>3]=M[j+8>>3]+M[e>>3];d=12;e=4;c=H[a+24>>2];if(c>>>0>=12){while(1){c=e;e=d;Zd(b,j+32|0,j+16|0,j);d=H[j+12>>2];H[a+136>>2]=H[j+8>>2];H[a+140>>2]=d;d=H[j+4>>2];H[a+128>>2]=H[j>>2];H[a+132>>2]=d;d=H[j+12>>2];H[j+40>>2]=H[j+8>>2];H[j+44>>2]=d;d=H[j+4>>2];H[j+32>>2]=H[j>>2];H[j+36>>2]=d;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}l=H[a+32>>2];qd:{if(l>>>0<=c>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break qd}h=H[a+36>>2]+(c<<5)|0}m=I[a+176|0];rd:{if(!m){break rd}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break rd}g=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break rd}H[h+20>>2]=0}M[j+40>>3]=M[j+40>>3]+M[h>>3];d=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=d;d=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=d;d=c|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}sd:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break sd}h=H[a+36>>2]+(d<<5)|0}td:{if(!m){break td}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break td}g=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break td}H[h+20>>2]=0}d=c|2;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}ud:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break ud}i=H[a+36>>2]+(d<<5)|0}vd:{if(!m){break vd}g=H[i+20>>2];if(!g|(g|0)!=H[a+168>>2]){break vd}n=H[i+24>>2];o=H[a+172>>2];f=M[i>>3];d=0;if((g|0)!=1){p=g&-2;k=0;while(1){r=d|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=g&1?+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f:f;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=f;if(H[i+16>>2]<0){break vd}H[i+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[h>>3];M[j+24>>3]=M[j+24>>3]+M[i>>3];d=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=d;d=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=d;d=c|3;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}wd:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break wd}h=H[a+36>>2]+(d<<5)|0}xd:{if(!m){break xd}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break xd}g=H[h+24>>2];l=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){m=i&-2;k=0;while(1){n=d|1;f=+L[l+(n<<2)>>2]*M[g+(n<<3)>>3]+(+L[l+(d<<2)>>2]*M[g+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((m|0)!=(k|0)){continue}break}}f=i&1?+L[l+(d<<2)>>2]*M[g+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break xd}H[h+20>>2]=0}M[j>>3]=M[j>>3]+M[h>>3];Zd(b,j+32|0,j+16|0,j);d=H[j+12>>2];H[a+136>>2]=H[j+8>>2];H[a+140>>2]=d;d=H[j+4>>2];H[a+128>>2]=H[j>>2];H[a+132>>2]=d;d=H[j+12>>2];H[j+40>>2]=H[j+8>>2];H[j+44>>2]=d;d=H[j+4>>2];H[j+32>>2]=H[j>>2];H[j+36>>2]=d;d=c+4|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}l=H[a+32>>2];yd:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break yd}h=H[a+36>>2]+(d<<5)|0}g=I[a+176|0];zd:{if(!g){break zd}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break zd}m=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break zd}H[h+20>>2]=0}f=M[h>>3];d=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=d;M[j+32>>3]=f+M[j+32>>3];d=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=d;d=c+5|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ad:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Ad}h=H[a+36>>2]+(d<<5)|0}Bd:{if(!g){break Bd}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Bd}m=H[h+24>>2];n=H[a+172>>2];f=M[h>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;f=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}f=i&1?+L[n+(d<<2)>>2]*M[m+(d<<3)>>3]+f:f;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=f;if(H[h+16>>2]<0){break Bd}H[h+20>>2]=0}d=c+6|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Cd:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break Cd}i=H[a+36>>2]+(d<<5)|0}Dd:{if(!g){break Dd}m=H[i+20>>2];if(!m|(m|0)!=H[a+168>>2]){break Dd}n=H[i+24>>2];o=H[a+172>>2];f=M[i>>3];d=0;if((m|0)!=1){p=m&-2;k=0;while(1){r=d|1;f=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}f=m&1?+L[o+(d<<2)>>2]*M[n+(d<<3)>>3]+f:f;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=f;if(H[i+16>>2]<0){break Dd}H[i+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[h>>3];M[j+24>>3]=M[j+24>>3]+M[i>>3];d=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=d;d=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=d;c=c+7|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Ed:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ed}c=H[a+36>>2]+(c<<5)|0}Fd:{if(!g){break Fd}h=H[c+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Fd}i=H[c+24>>2];m=H[a+172>>2];f=M[c>>3];d=0;if((h|0)!=1){n=h&-2;k=0;while(1){o=d|1;f=+L[m+(o<<2)>>2]*M[i+(o<<3)>>3]+(+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+f);d=d+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}f=h&1?+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Fd}H[c+20>>2]=0}M[j+8>>3]=M[j+8>>3]+M[c>>3];d=e+8|0;c=H[a+24>>2];if(d>>>0<=c>>>0){continue}break}}if(c>>>0>e>>>0){Gd:{if(e>>>0>=l>>>0){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;d=784992;break Gd}d=H[a+36>>2]+(e<<5)|0}Hd:{if(!g){break Hd}e=H[d+20>>2];if(!e|(e|0)!=H[a+168>>2]){break Hd}g=e&1;h=H[d+24>>2];i=H[a+172>>2];f=M[d>>3];Id:{if((e|0)==1){e=0;break Id}k=e&-2;e=0;c=0;while(1){l=e|1;f=+L[i+(l<<2)>>2]*M[h+(l<<3)>>3]+(+L[i+(e<<2)>>2]*M[h+(e<<3)>>3]+f);e=e+2|0;c=c+2|0;if((k|0)!=(c|0)){continue}break}}f=g?+L[i+(e<<2)>>2]*M[h+(e<<3)>>3]+f:f;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=f;if(H[d+16>>2]<0){break Hd}H[d+20>>2]=0}M[j>>3]=M[j>>3]+M[d>>3]}Zd(b,j+32|0,j+16|0,j);e=H[j+12>>2];H[a+136>>2]=H[j+8>>2];H[a+140>>2]=e;e=H[j+4>>2];H[a+128>>2]=H[j>>2];H[a+132>>2]=e}xb=j+96|0;H[a+24>>2]=0;break m}h=xb-96|0;xb=h;Jd:{Kd:{Ld:{if(H[a+24>>2]==7){e=H[a+140>>2];H[h+88>>2]=H[a+136>>2];H[h+92>>2]=e;e=H[a+132>>2];H[h+80>>2]=H[a+128>>2];H[h+84>>2]=e;d=H[a+32>>2];Md:{if(!d){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Md}e=H[a+36>>2]}i=I[a+176|0];if(!i){break Kd}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Kd}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];if((c|0)==1){break Ld}c=c&-2;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}break Ld}F[a+40|0]=1;break Jd}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Kd}H[e+20>>2]=0}M[h+80>>3]=M[h+80>>3]+M[e>>3];e=H[h+92>>2];H[h+72>>2]=H[h+88>>2];H[h+76>>2]=e;e=H[h+84>>2];H[h+64>>2]=H[h+80>>2];H[h+68>>2]=e;if(K[a+24>>2]<=1){F[a+20|0]=1}Nd:{if(d>>>0<=1){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Nd}e=H[a+36>>2]+32|0}Od:{if(!i){break Od}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Od}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];Pd:{if((c|0)==1){l=0;break Pd}c=c&-2;l=0;g=0;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Od}H[e+20>>2]=0}if(K[a+24>>2]<=2){F[a+20|0]=1}Qd:{if(d>>>0<=2){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Qd}c=H[a+36>>2]- -64|0}Rd:{if(!i){break Rd}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Rd}m=g&1;k=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];Sd:{if((g|0)==1){l=0;break Sd}n=g&-2;l=0;g=0;while(1){o=l|1;f=+L[j+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Rd}H[c+20>>2]=0}M[h+64>>3]=M[h+64>>3]+M[e>>3];M[h+72>>3]=M[h+72>>3]+M[c>>3];e=H[h+76>>2];H[h+56>>2]=H[h+72>>2];H[h+60>>2]=e;e=H[h+68>>2];H[h+48>>2]=H[h+64>>2];H[h+52>>2]=e;if(K[a+24>>2]<=3){F[a+20|0]=1}Td:{if(d>>>0<=3){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Td}e=H[a+36>>2]+96|0}Ud:{if(!i){break Ud}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Ud}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];Vd:{if((c|0)==1){l=0;break Vd}c=c&-2;l=0;g=0;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Ud}H[e+20>>2]=0}M[h+48>>3]=M[h+48>>3]+M[e>>3];e=H[h+60>>2];H[h+40>>2]=H[h+56>>2];H[h+44>>2]=e;e=H[h+52>>2];H[h+32>>2]=H[h+48>>2];H[h+36>>2]=e;if(K[a+24>>2]<=4){F[a+20|0]=1}Wd:{if(d>>>0<=4){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Wd}e=H[a+36>>2]+128|0}Xd:{if(!i){break Xd}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Xd}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];Yd:{if((c|0)==1){l=0;break Yd}c=c&-2;l=0;g=0;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Xd}H[e+20>>2]=0}M[h+32>>3]=M[h+32>>3]+M[e>>3];e=H[h+44>>2];H[h+24>>2]=H[h+40>>2];H[h+28>>2]=e;e=H[h+36>>2];H[h+16>>2]=H[h+32>>2];H[h+20>>2]=e;if(K[a+24>>2]<=5){F[a+20|0]=1}Zd:{if(d>>>0<=5){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Zd}e=H[a+36>>2]+160|0}_d:{if(!i){break _d}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break _d}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];$d:{if((c|0)==1){l=0;break $d}c=c&-2;l=0;g=0;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break _d}H[e+20>>2]=0}f=M[e>>3];e=H[h+92>>2];c=H[h+88>>2];H[h+24>>2]=c;H[h+28>>2]=e;M[h+16>>3]=f+M[h+16>>3];H[h+8>>2]=c;H[h+12>>2]=e;e=H[h+20>>2];H[h>>2]=H[h+16>>2];H[h+4>>2]=e;if(K[a+24>>2]<=6){F[a+20|0]=1}ae:{if(d>>>0<=6){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break ae}e=H[a+36>>2]+192|0}be:{if(!i){break be}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break be}k=c&1;i=H[e+24>>2];g=H[a+172>>2];f=M[e>>3];ce:{if((c|0)==1){l=0;break ce}c=c&-2;l=0;d=0;while(1){j=l|1;f=+L[g+(j<<2)>>2]*M[i+(j<<3)>>3]+(+L[g+(l<<2)>>2]*M[i+(l<<3)>>3]+f);l=l+2|0;d=d+2|0;if((c|0)!=(d|0)){continue}break}}f=k?+L[g+(l<<2)>>2]*M[i+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break be}H[e+20>>2]=0}M[h>>3]=M[h>>3]+M[e>>3];Zd(b,h+80|0,h- -64|0,h+48|0);e=H[h+60>>2];H[a+136>>2]=H[h+56>>2];H[a+140>>2]=e;e=H[h+52>>2];H[a+128>>2]=H[h+48>>2];H[a+132>>2]=e;Zd(b,h+32|0,h+16|0,h);e=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=e;e=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=e}xb=h+96|0;H[a+24>>2]=0;break m}h=xb-96|0;xb=h;de:{ee:{fe:{if(H[a+24>>2]==13){e=H[a+140>>2];H[h+88>>2]=H[a+136>>2];H[h+92>>2]=e;e=H[a+132>>2];H[h+80>>2]=H[a+128>>2];H[h+84>>2]=e;d=H[a+32>>2];ge:{if(!d){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break ge}e=H[a+36>>2]}i=I[a+176|0];if(!i){break ee}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break ee}m=c&1;l=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];if((c|0)==1){break fe}c=c&-2;while(1){n=k|1;f=+L[j+(n<<2)>>2]*M[l+(n<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}break fe}F[a+40|0]=1;break de}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break ee}H[e+20>>2]=0}if(K[a+24>>2]<=1){F[a+20|0]=1}he:{if(d>>>0<=1){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break he}c=H[a+36>>2]+32|0}ie:{if(!i){break ie}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break ie}m=g&1;l=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];je:{if((g|0)==1){k=0;break je}n=g&-2;k=0;g=0;while(1){o=k|1;f=+L[j+(o<<2)>>2]*M[l+(o<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ie}H[c+20>>2]=0}M[h+80>>3]=M[h+80>>3]+M[e>>3];M[h+88>>3]=M[h+88>>3]+M[c>>3];e=H[h+92>>2];H[h+72>>2]=H[h+88>>2];H[h+76>>2]=e;e=H[h+84>>2];H[h+64>>2]=H[h+80>>2];H[h+68>>2]=e;if(K[a+24>>2]<=2){F[a+20|0]=1}ke:{if(d>>>0<=2){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break ke}e=H[a+36>>2]- -64|0}le:{if(!i){break le}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break le}m=c&1;l=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];me:{if((c|0)==1){k=0;break me}c=c&-2;k=0;g=0;while(1){n=k|1;f=+L[j+(n<<2)>>2]*M[l+(n<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break le}H[e+20>>2]=0}if(K[a+24>>2]<=3){F[a+20|0]=1}ne:{if(d>>>0<=3){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ne}c=H[a+36>>2]+96|0}oe:{if(!i){break oe}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break oe}m=g&1;l=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];pe:{if((g|0)==1){k=0;break pe}n=g&-2;k=0;g=0;while(1){o=k|1;f=+L[j+(o<<2)>>2]*M[l+(o<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break oe}H[c+20>>2]=0}M[h+64>>3]=M[h+64>>3]+M[e>>3];M[h+72>>3]=M[h+72>>3]+M[c>>3];e=H[h+76>>2];H[h+56>>2]=H[h+72>>2];H[h+60>>2]=e;e=H[h+68>>2];H[h+48>>2]=H[h+64>>2];H[h+52>>2]=e;if(K[a+24>>2]<=4){F[a+20|0]=1}qe:{if(d>>>0<=4){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break qe}e=H[a+36>>2]+128|0}re:{if(!i){break re}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break re}m=c&1;l=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];se:{if((c|0)==1){k=0;break se}c=c&-2;k=0;g=0;while(1){n=k|1;f=+L[j+(n<<2)>>2]*M[l+(n<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break re}H[e+20>>2]=0}if(K[a+24>>2]<=5){F[a+20|0]=1}te:{if(d>>>0<=5){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break te}c=H[a+36>>2]+160|0}ue:{if(!i){break ue}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break ue}m=g&1;l=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];ve:{if((g|0)==1){k=0;break ve}n=g&-2;k=0;g=0;while(1){o=k|1;f=+L[j+(o<<2)>>2]*M[l+(o<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break ue}H[c+20>>2]=0}M[h+48>>3]=M[h+48>>3]+M[e>>3];M[h+56>>3]=M[h+56>>3]+M[c>>3];e=H[h+60>>2];H[h+40>>2]=H[h+56>>2];H[h+44>>2]=e;e=H[h+52>>2];H[h+32>>2]=H[h+48>>2];H[h+36>>2]=e;if(K[a+24>>2]<=6){F[a+20|0]=1}we:{if(d>>>0<=6){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break we}e=H[a+36>>2]+192|0}xe:{if(!i){break xe}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break xe}m=c&1;l=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];ye:{if((c|0)==1){k=0;break ye}c=c&-2;k=0;g=0;while(1){n=k|1;f=+L[j+(n<<2)>>2]*M[l+(n<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break xe}H[e+20>>2]=0}if(K[a+24>>2]<=7){F[a+20|0]=1}ze:{if(d>>>0<=7){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ze}c=H[a+36>>2]+224|0}Ae:{if(!i){break Ae}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Ae}m=g&1;l=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];Be:{if((g|0)==1){k=0;break Be}n=g&-2;k=0;g=0;while(1){o=k|1;f=+L[j+(o<<2)>>2]*M[l+(o<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Ae}H[c+20>>2]=0}M[h+32>>3]=M[h+32>>3]+M[e>>3];M[h+40>>3]=M[h+40>>3]+M[c>>3];e=H[h+44>>2];H[h+24>>2]=H[h+40>>2];H[h+28>>2]=e;e=H[h+36>>2];H[h+16>>2]=H[h+32>>2];H[h+20>>2]=e;if(K[a+24>>2]<=8){F[a+20|0]=1}Ce:{if(d>>>0<=8){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Ce}e=H[a+36>>2]+256|0}De:{if(!i){break De}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break De}m=c&1;l=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];Ee:{if((c|0)==1){k=0;break Ee}c=c&-2;k=0;g=0;while(1){n=k|1;f=+L[j+(n<<2)>>2]*M[l+(n<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break De}H[e+20>>2]=0}if(K[a+24>>2]<=9){F[a+20|0]=1}Fe:{if(d>>>0<=9){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Fe}c=H[a+36>>2]+288|0}Ge:{if(!i){break Ge}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Ge}m=g&1;l=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];He:{if((g|0)==1){k=0;break He}n=g&-2;k=0;g=0;while(1){o=k|1;f=+L[j+(o<<2)>>2]*M[l+(o<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Ge}H[c+20>>2]=0}M[h+16>>3]=M[h+16>>3]+M[e>>3];M[h+24>>3]=M[h+24>>3]+M[c>>3];e=H[h+28>>2];H[h+8>>2]=H[h+24>>2];H[h+12>>2]=e;e=H[h+20>>2];H[h>>2]=H[h+16>>2];H[h+4>>2]=e;if(K[a+24>>2]<=10){F[a+20|0]=1}Ie:{if(d>>>0<=10){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Ie}e=H[a+36>>2]+320|0}Je:{if(!i){break Je}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Je}m=c&1;l=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];Ke:{if((c|0)==1){k=0;break Ke}c=c&-2;k=0;g=0;while(1){n=k|1;f=+L[j+(n<<2)>>2]*M[l+(n<<3)>>3]+(+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f);k=k+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(k<<2)>>2]*M[l+(k<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Je}H[e+20>>2]=0}if(K[a+24>>2]<=11){F[a+20|0]=1}Le:{if(d>>>0<=11){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Le}c=H[a+36>>2]+352|0}Me:{if(!i){break Me}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Me}l=d&1;i=H[c+24>>2];g=H[a+172>>2];f=M[c>>3];Ne:{if((d|0)==1){k=0;break Ne}j=d&-2;k=0;d=0;while(1){m=k|1;f=+L[g+(m<<2)>>2]*M[i+(m<<3)>>3]+(+L[g+(k<<2)>>2]*M[i+(k<<3)>>3]+f);k=k+2|0;d=d+2|0;if((j|0)!=(d|0)){continue}break}}f=l?+L[g+(k<<2)>>2]*M[i+(k<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Me}H[c+20>>2]=0}M[h>>3]=M[h>>3]+M[e>>3];M[h+8>>3]=M[h+8>>3]+M[c>>3];Zd(b,h+80|0,h- -64|0,h+48|0);e=H[h+60>>2];H[a+136>>2]=H[h+56>>2];H[a+140>>2]=e;e=H[h+52>>2];H[a+128>>2]=H[h+48>>2];H[a+132>>2]=e;Zd(b,h+32|0,h+16|0,h);e=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=e;e=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=e}xb=h+96|0;H[a+24>>2]=0;break m}d=xb-96|0;xb=d;Oe:{Pe:{Qe:{if(H[a+24>>2]==9){e=H[a+140>>2];H[d+88>>2]=H[a+136>>2];H[d+92>>2]=e;e=H[a+132>>2];H[d+80>>2]=H[a+128>>2];H[d+84>>2]=e;h=H[a+32>>2];Re:{if(!h){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Re}e=H[a+36>>2]}i=I[a+176|0];if(!i){break Pe}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Pe}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];if((c|0)==1){break Qe}c=c&-2;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}break Qe}F[a+40|0]=1;break Oe}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break Pe}H[e+20>>2]=0}if(K[a+24>>2]<=1){F[a+20|0]=1}Se:{if(h>>>0<=1){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Se}c=H[a+36>>2]+32|0}Te:{if(!i){break Te}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Te}m=g&1;k=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];Ue:{if((g|0)==1){l=0;break Ue}n=g&-2;l=0;g=0;while(1){o=l|1;f=+L[j+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Te}H[c+20>>2]=0}M[d+80>>3]=M[d+80>>3]+M[e>>3];M[d+88>>3]=M[d+88>>3]+M[c>>3];e=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=e;e=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=e;if(K[a+24>>2]<=2){F[a+20|0]=1}Ve:{if(h>>>0<=2){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Ve}e=H[a+36>>2]- -64|0}We:{if(!i){break We}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break We}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];Xe:{if((c|0)==1){l=0;break Xe}c=c&-2;l=0;g=0;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break We}H[e+20>>2]=0}if(K[a+24>>2]<=3){F[a+20|0]=1}Ye:{if(h>>>0<=3){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ye}c=H[a+36>>2]+96|0}Ze:{if(!i){break Ze}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Ze}m=g&1;k=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];_e:{if((g|0)==1){l=0;break _e}n=g&-2;l=0;g=0;while(1){o=l|1;f=+L[j+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break Ze}H[c+20>>2]=0}M[d+64>>3]=M[d+64>>3]+M[e>>3];M[d+72>>3]=M[d+72>>3]+M[c>>3];e=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=e;e=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=e;if(K[a+24>>2]<=4){F[a+20|0]=1}$e:{if(h>>>0<=4){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break $e}e=H[a+36>>2]+128|0}af:{if(!i){break af}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break af}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];bf:{if((c|0)==1){l=0;break bf}c=c&-2;l=0;g=0;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break af}H[e+20>>2]=0}M[d+48>>3]=M[d+48>>3]+M[e>>3];e=H[d+60>>2];H[d+40>>2]=H[d+56>>2];H[d+44>>2]=e;e=H[d+52>>2];H[d+32>>2]=H[d+48>>2];H[d+36>>2]=e;if(K[a+24>>2]<=5){F[a+20|0]=1}cf:{if(h>>>0<=5){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break cf}e=H[a+36>>2]+160|0}df:{if(!i){break df}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break df}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];ef:{if((c|0)==1){l=0;break ef}c=c&-2;l=0;g=0;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break df}H[e+20>>2]=0}M[d+32>>3]=M[d+32>>3]+M[e>>3];e=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=e;e=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=e;if(K[a+24>>2]<=6){F[a+20|0]=1}ff:{if(h>>>0<=6){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break ff}e=H[a+36>>2]+192|0}gf:{if(!i){break gf}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break gf}m=c&1;k=H[e+24>>2];j=H[a+172>>2];f=M[e>>3];hf:{if((c|0)==1){l=0;break hf}c=c&-2;l=0;g=0;while(1){n=l|1;f=+L[j+(n<<2)>>2]*M[k+(n<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break gf}H[e+20>>2]=0}if(K[a+24>>2]<=7){F[a+20|0]=1}jf:{if(h>>>0<=7){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break jf}c=H[a+36>>2]+224|0}kf:{if(!i){break kf}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break kf}m=g&1;k=H[c+24>>2];j=H[a+172>>2];f=M[c>>3];lf:{if((g|0)==1){l=0;break lf}n=g&-2;l=0;g=0;while(1){o=l|1;f=+L[j+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}f=m?+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break kf}H[c+20>>2]=0}M[d+16>>3]=M[d+16>>3]+M[e>>3];M[d+24>>3]=M[d+24>>3]+M[c>>3];e=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=e;e=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=e;if(K[a+24>>2]<=8){F[a+20|0]=1}mf:{if(h>>>0<=8){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break mf}e=H[a+36>>2]+256|0}nf:{if(!i){break nf}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break nf}k=c&1;h=H[e+24>>2];i=H[a+172>>2];f=M[e>>3];of:{if((c|0)==1){l=0;break of}c=c&-2;l=0;g=0;while(1){j=l|1;f=+L[i+(j<<2)>>2]*M[h+(j<<3)>>3]+(+L[i+(l<<2)>>2]*M[h+(l<<3)>>3]+f);l=l+2|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}f=k?+L[i+(l<<2)>>2]*M[h+(l<<3)>>3]+f:f;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=f;if(H[e+16>>2]<0){break nf}H[e+20>>2]=0}M[d>>3]=M[d>>3]+M[e>>3];e=H[a+140>>2];H[d+8>>2]=H[a+136>>2];H[d+12>>2]=e;Zd(b,d+80|0,d- -64|0,d+48|0);e=H[d+60>>2];H[a+136>>2]=H[d+56>>2];H[a+140>>2]=e;e=H[d+52>>2];H[a+128>>2]=H[d+48>>2];H[a+132>>2]=e;Zd(b,d+32|0,d+16|0,d);e=H[d+12>>2];H[a+136>>2]=H[d+8>>2];H[a+140>>2]=e;e=H[d+4>>2];H[a+128>>2]=H[d>>2];H[a+132>>2]=e}xb=d+96|0;H[a+24>>2]=0;break m}h=xb-96|0;xb=h;g=11;pf:{qf:{if(H[a+24>>2]==11){c=H[a+36>>2];i=H[a+32>>2];j=I[a+176|0];while(1){if(g>>>0<=k>>>0){F[a+20|0]=1}rf:{if(i>>>0<=k>>>0){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break rf}e=c+(k<<5)|0}sf:{if(!j){break sf}d=H[e+20>>2];if(!d|(d|0)!=H[a+168>>2]){break sf}m=H[e+24>>2];n=H[a+172>>2];q=M[e>>3];g=0;if((d|0)!=1){o=d&-2;l=0;while(1){p=g|1;q=+L[n+(p<<2)>>2]*M[m+(p<<3)>>3]+(+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}q=d&1?+L[n+(g<<2)>>2]*M[m+(g<<3)>>3]+q:q;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=q;if(H[e+16>>2]<0){break sf}H[e+20>>2]=0}d=k|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}tf:{if(d>>>0>=i>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break tf}d=c+(d<<5)|0}uf:{if(!j){break uf}m=H[d+20>>2];if(!m|(m|0)!=H[a+168>>2]){break uf}n=H[d+24>>2];o=H[a+172>>2];q=M[d>>3];g=0;if((m|0)!=1){p=m&-2;l=0;while(1){r=g|1;q=+L[o+(r<<2)>>2]*M[n+(r<<3)>>3]+(+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((p|0)!=(l|0)){continue}break}}q=m&1?+L[o+(g<<2)>>2]*M[n+(g<<3)>>3]+q:q;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=q;if(H[d+16>>2]<0){break uf}H[d+20>>2]=0}u=u+M[d>>3];f=f+M[e>>3];if(k>>>0>7){break qf}k=k+2|0;g=H[a+24>>2];continue}}F[a+40|0]=1;break pf}e=H[a+140>>2];H[h+88>>2]=H[a+136>>2];H[h+92>>2]=e;e=H[a+132>>2];H[h+80>>2]=H[a+128>>2];H[h+84>>2]=e;if(!H[a+24>>2]){F[a+20|0]=1}e=c;if(!i){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992}vf:{if(!j){break vf}d=H[e+20>>2];if(!d|(d|0)!=H[a+168>>2]){break vf}n=d&1;k=H[e+24>>2];m=H[a+172>>2];q=M[e>>3];wf:{if((d|0)==1){g=0;break wf}d=d&-2;g=0;l=0;while(1){o=g|1;q=+L[m+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((d|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=q;if(H[e+16>>2]<0){break vf}H[e+20>>2]=0}if(K[a+24>>2]<=1){F[a+20|0]=1}xf:{if(i>>>0<=1){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break xf}d=c+32|0}yf:{if(!j){break yf}g=H[d+20>>2];if(!g|(g|0)!=H[a+168>>2]){break yf}n=g&1;k=H[d+24>>2];m=H[a+172>>2];q=M[d>>3];zf:{if((g|0)==1){g=0;break zf}o=g&-2;g=0;l=0;while(1){p=g|1;q=+L[m+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=q;if(H[d+16>>2]<0){break yf}H[d+20>>2]=0}M[h+80>>3]=M[h+80>>3]+M[e>>3];M[h+88>>3]=M[h+88>>3]+M[d>>3];e=H[h+92>>2];H[h+72>>2]=H[h+88>>2];H[h+76>>2]=e;e=H[h+84>>2];H[h+64>>2]=H[h+80>>2];H[h+68>>2]=e;if(K[a+24>>2]<=2){F[a+20|0]=1}Af:{if(i>>>0<=2){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Af}e=c- -64|0}Bf:{if(!j){break Bf}d=H[e+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Bf}n=d&1;k=H[e+24>>2];m=H[a+172>>2];q=M[e>>3];Cf:{if((d|0)==1){g=0;break Cf}d=d&-2;g=0;l=0;while(1){o=g|1;q=+L[m+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((d|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=q;if(H[e+16>>2]<0){break Bf}H[e+20>>2]=0}if(K[a+24>>2]<=3){F[a+20|0]=1}Df:{if(i>>>0<=3){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Df}d=c+96|0}Ef:{if(!j){break Ef}g=H[d+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Ef}n=g&1;k=H[d+24>>2];m=H[a+172>>2];q=M[d>>3];Ff:{if((g|0)==1){g=0;break Ff}o=g&-2;g=0;l=0;while(1){p=g|1;q=+L[m+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=q;if(H[d+16>>2]<0){break Ef}H[d+20>>2]=0}M[h+64>>3]=M[h+64>>3]+M[e>>3];M[h+72>>3]=M[h+72>>3]+M[d>>3];e=H[h+76>>2];H[h+56>>2]=H[h+72>>2];H[h+60>>2]=e;e=H[h+68>>2];H[h+48>>2]=H[h+64>>2];H[h+52>>2]=e;if(K[a+24>>2]<=4){F[a+20|0]=1}Gf:{if(i>>>0<=4){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Gf}e=c+128|0}Hf:{if(!j){break Hf}d=H[e+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Hf}n=d&1;k=H[e+24>>2];m=H[a+172>>2];q=M[e>>3];If:{if((d|0)==1){g=0;break If}d=d&-2;g=0;l=0;while(1){o=g|1;q=+L[m+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((d|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=q;if(H[e+16>>2]<0){break Hf}H[e+20>>2]=0}if(K[a+24>>2]<=5){F[a+20|0]=1}Jf:{if(i>>>0<=5){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Jf}d=c+160|0}Kf:{if(!j){break Kf}g=H[d+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Kf}n=g&1;k=H[d+24>>2];m=H[a+172>>2];q=M[d>>3];Lf:{if((g|0)==1){g=0;break Lf}o=g&-2;g=0;l=0;while(1){p=g|1;q=+L[m+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=q;if(H[d+16>>2]<0){break Kf}H[d+20>>2]=0}M[h+48>>3]=M[h+48>>3]+M[e>>3];M[h+56>>3]=M[h+56>>3]+M[d>>3];e=H[h+60>>2];H[h+40>>2]=H[h+56>>2];H[h+44>>2]=e;e=H[h+52>>2];H[h+32>>2]=H[h+48>>2];H[h+36>>2]=e;if(K[a+24>>2]<=6){F[a+20|0]=1}Mf:{if(i>>>0<=6){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Mf}e=c+192|0}Nf:{if(!j){break Nf}d=H[e+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Nf}n=d&1;k=H[e+24>>2];m=H[a+172>>2];q=M[e>>3];Of:{if((d|0)==1){g=0;break Of}d=d&-2;g=0;l=0;while(1){o=g|1;q=+L[m+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((d|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=q;if(H[e+16>>2]<0){break Nf}H[e+20>>2]=0}if(K[a+24>>2]<=7){F[a+20|0]=1}Pf:{if(i>>>0<=7){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Pf}d=c+224|0}Qf:{if(!j){break Qf}g=H[d+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Qf}n=g&1;k=H[d+24>>2];m=H[a+172>>2];q=M[d>>3];Rf:{if((g|0)==1){g=0;break Rf}o=g&-2;g=0;l=0;while(1){p=g|1;q=+L[m+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=q;if(H[d+16>>2]<0){break Qf}H[d+20>>2]=0}M[h+32>>3]=M[h+32>>3]+M[e>>3];M[h+40>>3]=M[h+40>>3]+M[d>>3];e=H[h+44>>2];H[h+24>>2]=H[h+40>>2];H[h+28>>2]=e;e=H[h+36>>2];H[h+16>>2]=H[h+32>>2];H[h+20>>2]=e;if(K[a+24>>2]<=8){F[a+20|0]=1}Sf:{if(i>>>0<=8){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Sf}e=c+256|0}Tf:{if(!j){break Tf}d=H[e+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Tf}n=d&1;k=H[e+24>>2];m=H[a+172>>2];q=M[e>>3];Uf:{if((d|0)==1){g=0;break Uf}d=d&-2;g=0;l=0;while(1){o=g|1;q=+L[m+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((d|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=q;if(H[e+16>>2]<0){break Tf}H[e+20>>2]=0}if(K[a+24>>2]<=9){F[a+20|0]=1}Vf:{if(i>>>0<=9){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Vf}d=c+288|0}Wf:{if(!j){break Wf}g=H[d+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Wf}n=g&1;k=H[d+24>>2];m=H[a+172>>2];q=M[d>>3];Xf:{if((g|0)==1){g=0;break Xf}o=g&-2;g=0;l=0;while(1){p=g|1;q=+L[m+(p<<2)>>2]*M[k+(p<<3)>>3]+(+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((o|0)!=(l|0)){continue}break}}q=n?+L[m+(g<<2)>>2]*M[k+(g<<3)>>3]+q:q;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=q;if(H[d+16>>2]<0){break Wf}H[d+20>>2]=0}M[h+16>>3]=M[h+16>>3]+M[e>>3];M[h+24>>3]=M[h+24>>3]+M[d>>3];e=H[h+28>>2];H[h+8>>2]=H[h+24>>2];H[h+12>>2]=e;e=H[h+20>>2];H[h>>2]=H[h+16>>2];H[h+4>>2]=e;Yf:{Zf:{_f:{if(P(f)>P(u)){if(K[a+24>>2]<=10){F[a+20|0]=1}$f:{if(i>>>0<=10){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break $f}e=c+320|0}if(!j){break Zf}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Zf}k=c&1;d=H[e+24>>2];i=H[a+172>>2];q=M[e>>3];if((c|0)==1){g=0;break _f}c=c&-2;g=0;l=0;while(1){j=g|1;q=+L[i+(j<<2)>>2]*M[d+(j<<3)>>3]+(+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((c|0)!=(l|0)){continue}break}break _f}e=H[a+132>>2];H[h>>2]=H[a+128>>2];H[h+4>>2]=e;if(K[a+24>>2]<=10){F[a+20|0]=1}ag:{if(i>>>0<=10){e=H[40915];H[196254]=H[40914];H[196255]=e;e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break ag}e=c+320|0}bg:{if(!j){break bg}c=H[e+20>>2];if(!c|(c|0)!=H[a+168>>2]){break bg}k=c&1;d=H[e+24>>2];i=H[a+172>>2];q=M[e>>3];cg:{if((c|0)==1){g=0;break cg}c=c&-2;g=0;l=0;while(1){j=g|1;q=+L[i+(j<<2)>>2]*M[d+(j<<3)>>3]+(+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+q);g=g+2|0;l=l+2|0;if((c|0)!=(l|0)){continue}break}}q=k?+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+q:q;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=q;if(H[e+16>>2]<0){break bg}H[e+20>>2]=0}M[h+8>>3]=M[h+8>>3]+M[e>>3];break Yf}q=k?+L[i+(g<<2)>>2]*M[d+(g<<3)>>3]+q:q;H[e+8>>2]=0;H[e+12>>2]=0;M[e>>3]=q;if(H[e+16>>2]<0){break Zf}H[e+20>>2]=0}M[h>>3]=M[h>>3]+M[e>>3];e=H[a+140>>2];H[h+8>>2]=H[a+136>>2];H[h+12>>2]=e}Zd(b,h+80|0,h- -64|0,h+48|0);e=H[h+60>>2];H[a+136>>2]=H[h+56>>2];H[a+140>>2]=e;e=H[h+52>>2];H[a+128>>2]=H[h+48>>2];H[a+132>>2]=e;Zd(b,h+32|0,h+16|0,h);e=H[h+12>>2];H[a+136>>2]=H[h+8>>2];H[a+140>>2]=e;e=H[h+4>>2];H[a+128>>2]=H[h>>2];H[a+132>>2]=e}xb=h+96|0;H[a+24>>2]=0;break m}uG(c,a);break m}f=i?+L[h+(e<<2)>>2]*M[d+(e<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break q}H[c+20>>2]=0}M[s+8>>3]=M[s+8>>3]+M[c>>3];js(b,s);e=H[s+12>>2];H[a+136>>2]=H[s+8>>2];H[a+140>>2]=e;e=H[s+4>>2];H[a+128>>2]=H[s>>2];H[a+132>>2]=e;if(!I[a+73|0]){if(!I[a+74|0]){F[a+74|0]=1;e=H[a+80>>2]+(H[a+24>>2]>>>1|0)|0;H[a+80>>2]=e;H[a+84>>2]=(e+H[a+76>>2]|0)+7>>>3}F[a+73|0]=1}H[a+24>>2]=0;break m}f=i?+L[h+(e<<2)>>2]*M[d+(e<<3)>>3]+f:f;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=f;if(H[c+16>>2]<0){break o}H[c+20>>2]=0}M[s>>3]=M[s>>3]+M[c>>3];js(b,s);e=H[s+12>>2];H[a+136>>2]=H[s+8>>2];H[a+140>>2]=e;e=H[s+4>>2];H[a+128>>2]=H[s>>2];H[a+132>>2]=e;if(!I[a+73|0]){if(!I[a+74|0]){F[a+74|0]=1;e=H[a+80>>2]+(H[a+24>>2]>>>1|0)|0;H[a+80>>2]=e;H[a+84>>2]=(e+H[a+76>>2]|0)+7>>>3}F[a+73|0]=1}H[a+24>>2]=0;break m}F[a+16|0]=1;H[a+12>>2]=e}xb=s+16|0}e=0;dg:{if(I[a+88|0]|H[a+96>>2]<0|(I[a+20|0]|(I[a+40|0]|I[a+16|0]))){break dg}if(H[a+28>>2]<0){break dg}e=1;if(!I[a+72|0]){continue}}break}return e|0}function _la(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;F[a+72|0]=0;v=I[163632];w=v|256;c=!I[a+16|0];while(1){a:{b:{if(!(c&1)){break b}c=H[a+12>>2];d=c+1|0;h=H[a+4>>2];if(d>>>0>h>>>0){break b}c:{if(c>>>0>>0){g=H[a>>2];f=I[g+c|0];if((f|0)==12){c=w;if(d>>>0>=h>>>0){break c}f=I[d+g|0]|256;c=d}if(c>>>0>=h>>>0){c=f;break c}H[a+12>>2]=c+1;break a}F[a+16|0]=1;f=65535;c=v;if((c|0)==12){break a}}F[a+16|0]=1;H[a+12>>2]=h;f=c;break a}f=H[a+92>>2]?11:14}d:{e:{f:{switch(f-10|0){case 0:case 19:c=H[a+24>>2]-1|0;g:{if(c>>>0>=K[a+32>>2]){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break g}c=H[a+36>>2]+(c<<5)|0}if(!H[c+20>>2]){break e}F[a+40|0]=1;break d;case 6:vG(a);break d;case 5:break f;default:break e}}d=H[a+32>>2];c=H[a+24>>2]-1|0;h:{if(d>>>0<=c>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break h}c=H[a+36>>2]+(c<<5)|0}if(H[c+20>>2]){F[a+40|0]=1;break d}c=H[a+24>>2];i:{j:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=d>>>0){break j}c=H[a+36>>2]+(c<<5)|0;break i}F[a+20|0]=1}c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992}e=M[c>>3];k:{if(P(e)<2147483648){c=~~e;break k}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}l:{if(I[a+177|0]|I[a+178|0]){F[a+40|0]=1;break l}H[a+160>>2]=c}H[a+24>>2]=0;F[a+177|0]=1;break d}d=0;k=0;h=0;i=0;j=0;q=0;s=0;m:{n:{o:{p:{q:{r:{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:{switch(f-1|0){default:switch(f-255|0){case 38:break v;case 37:break w;case 36:break x;case 35:break y;case 0:break R;default:break u};case 10:if(I[a+16|0]){F[a+40|0]=1}c=H[a+92>>2];T:{U:{if(c){c=c-1|0;H[a+92>>2]=c;if(c>>>0>=K[a+100>>2]){break U}c=H[a+104>>2]+N(c,28)|0;break T}F[a+88|0]=1}H[196254]=H[40914];c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992}d=H[c+4>>2];H[a+44>>2]=H[c>>2];H[a+48>>2]=d;H[a+68>>2]=H[c+24>>2];d=H[c+20>>2];H[a+60>>2]=H[c+16>>2];H[a+64>>2]=d;d=H[c+12>>2];H[a+52>>2]=H[c+8>>2];H[a+56>>2]=d;d=H[c+8>>2];f=H[c+12>>2];h=H[c>>2];g=H[c+4>>2];F[a+16|0]=I[c+16|0];H[a+8>>2]=d;H[a+12>>2]=f;H[a>>2]=h;H[a+4>>2]=g;break m;case 1:case 8:case 11:case 12:case 14:case 15:case 16:case 27:break u;case 30:break z;case 29:break A;case 26:break B;case 25:break C;case 24:break D;case 23:break E;case 7:break F;case 6:break G;case 5:break H;case 4:break I;case 3:break J;case 21:break K;case 20:break L;case 18:case 19:break M;case 2:case 22:break N;case 0:case 17:break O;case 28:break P;case 9:break Q;case 13:break S}}F[a+72|0]=1;break o}if(I[a+16|0]){break m}d=H[a+4>>2];c=H[a+12>>2];if(d>>>0>>0){break m}V:{if(c>>>0>=d>>>0){F[a+16|0]=1;c=163632;break V}c=c+H[a>>2]|0}d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);f=d>>>8&65280|d>>>24;c=H[a+24>>2];W:{if(c>>>0>2]){H[a+24>>2]=c+1;c=H[a+36>>2]+(c<<5)|0;break W}F[a+20|0]=1;c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992}H[c+8>>2]=0;H[c+12>>2]=0;if(H[c+16>>2]>=0){H[c+20>>2]=0}M[c>>3]=+(f|(d<<8&16711680|d<<24))*152587890625e-16;if(I[a+16|0]){c=H[a+4>>2];break n}c=H[a+4>>2];d=H[a+12>>2];if(c>>>0>>0){break n}d=d+4|0;if(d>>>0>c>>>0){break n}H[a+12>>2]=d;break m}On(a,a+116|0,2);break m}On(a,a+108|0,1);break m}c=H[a+24>>2];H[a+24>>2]=0;H[a+76>>2]=H[a+76>>2]+(c>>>1|0);break m}c=H[a+24>>2];H[a+24>>2]=0;H[a+80>>2]=H[a+80>>2]+(c>>>1|0);break m}X:{if(I[a+74|0]){c=H[a+84>>2];break X}F[a+74|0]=1;c=H[a+80>>2]+(H[a+24>>2]>>>1|0)|0;H[a+80>>2]=c;c=(c+H[a+76>>2]|0)+7>>>3|0;H[a+84>>2]=c}if(I[a+16|0]){break m}f=H[a+12>>2];d=f+c|0;c=H[a+4>>2];if(d>>>0>c>>>0){break m}H[a+24>>2]=0;if(c>>>0>=f>>>0){H[a+12>>2]=d;break m}break n}c=H[a+24>>2];Y:{Z:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){break Z}d=H[a+36>>2]+(c<<5)|0;break Y}F[a+20|0]=1}c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992}q=M[a+136>>3];s=M[a+128>>3];g=I[a+176|0];_:{if(!g){break _}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break _}k=c&1;f=H[d+24>>2];h=H[a+172>>2];e=M[d>>3];$:{if((c|0)==1){c=0;break $}j=c&-2;c=0;while(1){n=c|1;e=+L[h+(n<<2)>>2]*M[f+(n<<3)>>3]+(+L[h+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;i=i+2|0;if((j|0)!=(i|0)){continue}break}}e=k?+L[h+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break _}H[d+20>>2]=0}c=H[a+24>>2];aa:{ba:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){break ba}f=H[a+36>>2]+(c<<5)|0;break aa}F[a+20|0]=1}c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992}ca:{if(!g){break ca}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break ca}k=c&1;h=H[f+24>>2];g=H[a+172>>2];e=M[f>>3];da:{if((c|0)==1){c=0;break da}j=c&-2;c=0;i=0;while(1){n=c|1;e=+L[g+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[g+(c<<2)>>2]*M[h+(c<<3)>>3]+e);c=c+2|0;i=i+2|0;if((j|0)!=(i|0)){continue}break}}e=k?+L[g+(c<<2)>>2]*M[h+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break ca}H[f+20>>2]=0}e=M[f>>3];u=M[d>>3];F[b|0]=0;M[a+136>>3]=q+u;M[a+128>>3]=s+e;break p}c=H[a+24>>2];ea:{fa:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){break fa}d=H[a+36>>2]+(c<<5)|0;break ea}F[a+20|0]=1}c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992}q=M[a+136>>3];s=M[a+128>>3];if(!I[a+176|0]){break q}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break q}g=c&1;f=H[d+24>>2];h=H[a+172>>2];e=M[d>>3];if((c|0)==1){c=0;break r}i=c&-2;c=0;while(1){j=c|1;e=+L[h+(j<<2)>>2]*M[f+(j<<3)>>3]+(+L[h+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;k=k+2|0;if((i|0)!=(k|0)){continue}break}break r}c=H[a+24>>2];ga:{ha:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){break ha}d=H[a+36>>2]+(c<<5)|0;break ga}F[a+20|0]=1}c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992}q=M[a+136>>3];s=M[a+128>>3];if(!I[a+176|0]){break s}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break s}g=c&1;f=H[d+24>>2];h=H[a+172>>2];e=M[d>>3];if((c|0)==1){c=0;break t}i=c&-2;c=0;while(1){j=c|1;e=+L[h+(j<<2)>>2]*M[f+(j<<3)>>3]+(+L[h+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;k=k+2|0;if((i|0)!=(k|0)){continue}break}break t}c=0;h=H[a+24>>2];if(h>>>0>=2){n=H[a+36>>2];l=H[a+32>>2];m=I[a+176|0];d=2;while(1){if(c>>>0>=h>>>0){F[a+20|0]=1}ia:{if(c>>>0>=l>>>0){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break ia}f=n+(c<<5)|0}q=M[a+136>>3];s=M[a+128>>3];ja:{if(!m){break ja}g=H[f+20>>2];if(!g|(g|0)!=H[a+168>>2]){break ja}i=H[f+24>>2];j=H[a+172>>2];e=M[f>>3];h=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=h|1;e=+L[j+(p<<2)>>2]*M[i+(p<<3)>>3]+(+L[j+(h<<2)>>2]*M[i+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[j+(h<<2)>>2]*M[i+(h<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break ja}H[f+20>>2]=0}c=c|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}ka:{if(c>>>0>=l>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ka}c=n+(c<<5)|0}la:{if(!m){break la}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break la}i=H[c+24>>2];j=H[a+172>>2];e=M[c>>3];h=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=h|1;e=+L[j+(p<<2)>>2]*M[i+(p<<3)>>3]+(+L[j+(h<<2)>>2]*M[i+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[j+(h<<2)>>2]*M[i+(h<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break la}H[c+20>>2]=0}u=q+M[c>>3];e=s+M[f>>3];ma:{if(I[b|0]){break ma}F[b|0]=1;q=M[a+128>>3];if(q>3]){M[b+8>>3]=q;q=M[a+128>>3]}if(M[b+24>>3]>3]=q}q=M[a+136>>3];if(q>3]){M[b+16>>3]=q;q=M[a+136>>3]}if(!(M[b+32>>3]>3]=q}M[a+136>>3]=u;M[a+128>>3]=e;if(M[b+8>>3]>e){M[b+8>>3]=e;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(M[b+32>>3]>3]=e}c=d;d=c+2|0;h=H[a+24>>2];if(d>>>0<=h>>>0){continue}break}}break o}c=0;i=H[a+24>>2];if(i>>>0>=2){n=H[a+36>>2];l=H[a+32>>2];m=I[a+176|0];h=2;while(1){c=h;if(d>>>0>=i>>>0){F[a+20|0]=1}na:{if(d>>>0>=l>>>0){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break na}f=n+(d<<5)|0}s=M[a+136>>3];q=M[a+128>>3];oa:{if(!m){break oa}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break oa}g=H[f+24>>2];j=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;k=0;while(1){p=i|1;e=+L[j+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e);i=i+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=h&1?+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break oa}H[f+20>>2]=0}q=q+M[f>>3];pa:{if(I[b|0]){break pa}F[b|0]=1;e=M[a+128>>3];if(e>3]){M[b+8>>3]=e;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(!(M[b+32>>3]>3]=e}M[a+136>>3]=s;M[a+128>>3]=q;e=q;if(e>3]){M[b+8>>3]=q;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(M[b+32>>3]>3]=e}d=d|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}qa:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break qa}d=n+(d<<5)|0}ra:{if(!m){break ra}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break ra}h=H[d+24>>2];g=H[a+172>>2];e=M[d>>3];i=0;if((f|0)!=1){j=f&-2;k=0;while(1){o=i|1;e=+L[g+(o<<2)>>2]*M[h+(o<<3)>>3]+(+L[g+(i<<2)>>2]*M[h+(i<<3)>>3]+e);i=i+2|0;k=k+2|0;if((j|0)!=(k|0)){continue}break}}e=f&1?+L[g+(i<<2)>>2]*M[h+(i<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break ra}H[d+20>>2]=0}e=s+M[d>>3];sa:{if(I[b|0]){break sa}F[b|0]=1;s=M[a+128>>3];if(s>3]){M[b+8>>3]=s;s=M[a+128>>3]}if(M[b+24>>3]>3]=s}s=M[a+136>>3];if(s>3]){M[b+16>>3]=s;s=M[a+136>>3]}if(!(M[b+32>>3]>3]=s}M[a+136>>3]=e;M[a+128>>3]=q;if(M[b+8>>3]>q){M[b+8>>3]=q;q=M[a+128>>3]}if(M[b+24>>3]>3]=q}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(M[b+32>>3]>3]=e}i=H[a+24>>2];d=c;h=c+2|0;if(i>>>0>=h>>>0){continue}break}}ta:{if(c>>>0>=i>>>0){break ta}ua:{if(K[a+32>>2]<=c>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ua}c=H[a+36>>2]+(c<<5)|0}q=M[a+136>>3];s=M[a+128>>3];va:{if(!I[a+176|0]){break va}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break va}g=d&1;f=H[c+24>>2];h=H[a+172>>2];e=M[c>>3];wa:{if((d|0)==1){i=0;break wa}d=d&-2;i=0;k=0;while(1){j=i|1;e=+L[h+(j<<2)>>2]*M[f+(j<<3)>>3]+(+L[h+(i<<2)>>2]*M[f+(i<<3)>>3]+e);i=i+2|0;k=k+2|0;if((d|0)!=(k|0)){continue}break}}e=g?+L[h+(i<<2)>>2]*M[f+(i<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break va}H[c+20>>2]=0}e=s+M[c>>3];xa:{if(I[b|0]){break xa}F[b|0]=1;s=M[a+128>>3];if(s>3]){M[b+8>>3]=s;s=M[a+128>>3]}if(M[b+24>>3]>3]=s}s=M[a+136>>3];if(s>3]){M[b+16>>3]=s;s=M[a+136>>3]}if(!(M[b+32>>3]>3]=s}M[a+136>>3]=q;M[a+128>>3]=e;if(M[b+8>>3]>e){M[b+8>>3]=e;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(!(M[b+32>>3]>3]=e}break o}c=0;i=H[a+24>>2];if(i>>>0>=2){n=H[a+36>>2];l=H[a+32>>2];m=I[a+176|0];h=2;while(1){c=h;if(d>>>0>=i>>>0){F[a+20|0]=1}ya:{if(d>>>0>=l>>>0){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break ya}f=n+(d<<5)|0}s=M[a+136>>3];q=M[a+128>>3];za:{if(!m){break za}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break za}g=H[f+24>>2];j=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;k=0;while(1){p=i|1;e=+L[j+(p<<2)>>2]*M[g+(p<<3)>>3]+(+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e);i=i+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=h&1?+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break za}H[f+20>>2]=0}s=s+M[f>>3];Aa:{if(I[b|0]){break Aa}F[b|0]=1;e=M[a+128>>3];if(e>3]){M[b+8>>3]=e;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(!(M[b+32>>3]>3]=e}M[a+136>>3]=s;M[a+128>>3]=q;e=q;if(e>3]){M[b+8>>3]=q;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(M[b+32>>3]>3]=e}d=d|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ba:{if(d>>>0>=l>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Ba}d=n+(d<<5)|0}Ca:{if(!m){break Ca}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Ca}h=H[d+24>>2];g=H[a+172>>2];e=M[d>>3];i=0;if((f|0)!=1){j=f&-2;k=0;while(1){o=i|1;e=+L[g+(o<<2)>>2]*M[h+(o<<3)>>3]+(+L[g+(i<<2)>>2]*M[h+(i<<3)>>3]+e);i=i+2|0;k=k+2|0;if((j|0)!=(k|0)){continue}break}}e=f&1?+L[g+(i<<2)>>2]*M[h+(i<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Ca}H[d+20>>2]=0}e=q+M[d>>3];Da:{if(I[b|0]){break Da}F[b|0]=1;q=M[a+128>>3];if(q>3]){M[b+8>>3]=q;q=M[a+128>>3]}if(M[b+24>>3]>3]=q}q=M[a+136>>3];if(q>3]){M[b+16>>3]=q;q=M[a+136>>3]}if(!(M[b+32>>3]>3]=q}M[a+136>>3]=s;M[a+128>>3]=e;if(M[b+8>>3]>e){M[b+8>>3]=e;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(M[b+32>>3]>3]=e}i=H[a+24>>2];d=c;h=c+2|0;if(i>>>0>=h>>>0){continue}break}}Ea:{if(c>>>0>=i>>>0){break Ea}Fa:{if(K[a+32>>2]<=c>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Fa}c=H[a+36>>2]+(c<<5)|0}s=M[a+136>>3];q=M[a+128>>3];Ga:{if(!I[a+176|0]){break Ga}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Ga}g=d&1;f=H[c+24>>2];h=H[a+172>>2];e=M[c>>3];Ha:{if((d|0)==1){i=0;break Ha}d=d&-2;i=0;k=0;while(1){j=i|1;e=+L[h+(j<<2)>>2]*M[f+(j<<3)>>3]+(+L[h+(i<<2)>>2]*M[f+(i<<3)>>3]+e);i=i+2|0;k=k+2|0;if((d|0)!=(k|0)){continue}break}}e=g?+L[h+(i<<2)>>2]*M[f+(i<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break Ga}H[c+20>>2]=0}s=s+M[c>>3];Ia:{if(I[b|0]){break Ia}F[b|0]=1;e=M[a+128>>3];if(e>3]){M[b+8>>3]=e;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(!(M[b+32>>3]>3]=e}M[a+136>>3]=s;M[a+128>>3]=q;if(M[b+8>>3]>q){M[b+8>>3]=q;q=M[a+128>>3]}if(M[b+24>>3]>3]=q}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(!(M[b+32>>3]>3]=e}break o}c=0;k=xb-48|0;xb=k;i=H[a+24>>2];if(i>>>0>=6){d=6;while(1){g=c;c=d;d=H[a+140>>2];H[k+40>>2]=H[a+136>>2];H[k+44>>2]=d;d=H[a+132>>2];H[k+32>>2]=H[a+128>>2];H[k+36>>2]=d;if(g>>>0>=i>>>0){F[a+20|0]=1}j=H[a+32>>2];Ja:{if(j>>>0<=g>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Ja}f=H[a+36>>2]+(g<<5)|0}n=I[a+176|0];Ka:{if(!n){break Ka}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Ka}l=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;d=0;while(1){p=i|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((o|0)!=(d|0)){continue}break}}e=h&1?+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Ka}H[f+20>>2]=0}d=g|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}La:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break La}h=H[a+36>>2]+(d<<5)|0}Ma:{if(!n){break Ma}l=H[h+20>>2];if(!l|(l|0)!=H[a+168>>2]){break Ma}m=H[h+24>>2];o=H[a+172>>2];e=M[h>>3];i=0;if((l|0)!=1){p=l&-2;d=0;while(1){r=i|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((p|0)!=(d|0)){continue}break}}e=l&1?+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Ma}H[h+20>>2]=0}M[k+32>>3]=M[k+32>>3]+M[f>>3];M[k+40>>3]=M[k+40>>3]+M[h>>3];d=H[k+44>>2];H[k+24>>2]=H[k+40>>2];H[k+28>>2]=d;d=H[k+36>>2];H[k+16>>2]=H[k+32>>2];H[k+20>>2]=d;d=g+2|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Na:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Na}f=H[a+36>>2]+(d<<5)|0}Oa:{if(!n){break Oa}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Oa}l=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;d=0;while(1){p=i|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((o|0)!=(d|0)){continue}break}}e=h&1?+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Oa}H[f+20>>2]=0}d=g+3|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Pa:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Pa}h=H[a+36>>2]+(d<<5)|0}Qa:{if(!n){break Qa}l=H[h+20>>2];if(!l|(l|0)!=H[a+168>>2]){break Qa}m=H[h+24>>2];o=H[a+172>>2];e=M[h>>3];i=0;if((l|0)!=1){p=l&-2;d=0;while(1){r=i|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((p|0)!=(d|0)){continue}break}}e=l&1?+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Qa}H[h+20>>2]=0}M[k+16>>3]=M[k+16>>3]+M[f>>3];M[k+24>>3]=M[k+24>>3]+M[h>>3];d=H[k+28>>2];H[k+8>>2]=H[k+24>>2];H[k+12>>2]=d;d=H[k+20>>2];H[k>>2]=H[k+16>>2];H[k+4>>2]=d;d=g+4|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ra:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Ra}f=H[a+36>>2]+(d<<5)|0}Sa:{if(!n){break Sa}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Sa}l=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;d=0;while(1){p=i|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((o|0)!=(d|0)){continue}break}}e=h&1?+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Sa}H[f+20>>2]=0}d=g+5|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ta:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Ta}h=H[a+36>>2]+(d<<5)|0}Ua:{if(!n){break Ua}g=H[h+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Ua}j=H[h+24>>2];n=H[a+172>>2];e=M[h>>3];i=0;if((g|0)!=1){l=g&-2;d=0;while(1){m=i|1;e=+L[n+(m<<2)>>2]*M[j+(m<<3)>>3]+(+L[n+(i<<2)>>2]*M[j+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((l|0)!=(d|0)){continue}break}}e=g&1?+L[n+(i<<2)>>2]*M[j+(i<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Ua}H[h+20>>2]=0}M[k>>3]=M[k>>3]+M[f>>3];M[k+8>>3]=M[k+8>>3]+M[h>>3];Nc(a,b,k+32|0,k+16|0,k);d=c+6|0;i=H[a+24>>2];if(d>>>0<=i>>>0){continue}break}}xb=k+48|0;break o}c=0;k=xb-48|0;xb=k;i=H[a+24>>2];Va:{if(i>>>0<8){break Va}p=i-2|0;h=6;while(1){g=c;c=h;d=H[a+140>>2];H[k+40>>2]=H[a+136>>2];H[k+44>>2]=d;d=H[a+132>>2];H[k+32>>2]=H[a+128>>2];H[k+36>>2]=d;if(g>>>0>=i>>>0){F[a+20|0]=1}j=H[a+32>>2];Wa:{if(j>>>0<=g>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Wa}d=H[a+36>>2]+(g<<5)|0}n=I[a+176|0];Xa:{if(!n){break Xa}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Xa}l=H[d+24>>2];m=H[a+172>>2];e=M[d>>3];i=0;if((f|0)!=1){o=f&-2;h=0;while(1){r=i|1;e=+L[m+(r<<2)>>2]*M[l+(r<<3)>>3]+(+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e);i=i+2|0;h=h+2|0;if((o|0)!=(h|0)){continue}break}}e=f&1?+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Xa}H[d+20>>2]=0}f=g|1;if(f>>>0>=K[a+24>>2]){F[a+20|0]=1}Ya:{if(f>>>0>=j>>>0){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break Ya}f=H[a+36>>2]+(f<<5)|0}Za:{if(!n){break Za}l=H[f+20>>2];if(!l|(l|0)!=H[a+168>>2]){break Za}m=H[f+24>>2];o=H[a+172>>2];e=M[f>>3];i=0;if((l|0)!=1){r=l&-2;h=0;while(1){t=i|1;e=+L[o+(t<<2)>>2]*M[m+(t<<3)>>3]+(+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e);i=i+2|0;h=h+2|0;if((r|0)!=(h|0)){continue}break}}e=l&1?+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Za}H[f+20>>2]=0}M[k+32>>3]=M[k+32>>3]+M[d>>3];M[k+40>>3]=M[k+40>>3]+M[f>>3];d=H[k+44>>2];H[k+24>>2]=H[k+40>>2];H[k+28>>2]=d;d=H[k+36>>2];H[k+16>>2]=H[k+32>>2];H[k+20>>2]=d;d=g+2|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}_a:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break _a}d=H[a+36>>2]+(d<<5)|0}$a:{if(!n){break $a}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break $a}l=H[d+24>>2];m=H[a+172>>2];e=M[d>>3];i=0;if((f|0)!=1){o=f&-2;h=0;while(1){r=i|1;e=+L[m+(r<<2)>>2]*M[l+(r<<3)>>3]+(+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e);i=i+2|0;h=h+2|0;if((o|0)!=(h|0)){continue}break}}e=f&1?+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break $a}H[d+20>>2]=0}f=g+3|0;if(f>>>0>=K[a+24>>2]){F[a+20|0]=1}ab:{if(f>>>0>=j>>>0){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break ab}f=H[a+36>>2]+(f<<5)|0}bb:{if(!n){break bb}l=H[f+20>>2];if(!l|(l|0)!=H[a+168>>2]){break bb}m=H[f+24>>2];o=H[a+172>>2];e=M[f>>3];i=0;if((l|0)!=1){r=l&-2;h=0;while(1){t=i|1;e=+L[o+(t<<2)>>2]*M[m+(t<<3)>>3]+(+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e);i=i+2|0;h=h+2|0;if((r|0)!=(h|0)){continue}break}}e=l&1?+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break bb}H[f+20>>2]=0}M[k+16>>3]=M[k+16>>3]+M[d>>3];M[k+24>>3]=M[k+24>>3]+M[f>>3];d=H[k+28>>2];H[k+8>>2]=H[k+24>>2];H[k+12>>2]=d;d=H[k+20>>2];H[k>>2]=H[k+16>>2];H[k+4>>2]=d;d=g+4|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}cb:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break cb}d=H[a+36>>2]+(d<<5)|0}db:{if(!n){break db}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break db}l=H[d+24>>2];m=H[a+172>>2];e=M[d>>3];i=0;if((f|0)!=1){o=f&-2;h=0;while(1){r=i|1;e=+L[m+(r<<2)>>2]*M[l+(r<<3)>>3]+(+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e);i=i+2|0;h=h+2|0;if((o|0)!=(h|0)){continue}break}}e=f&1?+L[m+(i<<2)>>2]*M[l+(i<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break db}H[d+20>>2]=0}f=g+5|0;if(f>>>0>=K[a+24>>2]){F[a+20|0]=1}eb:{if(f>>>0>=j>>>0){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break eb}f=H[a+36>>2]+(f<<5)|0}fb:{if(!n){break fb}g=H[f+20>>2];if(!g|(g|0)!=H[a+168>>2]){break fb}j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];i=0;if((g|0)!=1){l=g&-2;h=0;while(1){m=i|1;e=+L[n+(m<<2)>>2]*M[j+(m<<3)>>3]+(+L[n+(i<<2)>>2]*M[j+(i<<3)>>3]+e);i=i+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=g&1?+L[n+(i<<2)>>2]*M[j+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break fb}H[f+20>>2]=0}M[k>>3]=M[k>>3]+M[d>>3];M[k+8>>3]=M[k+8>>3]+M[f>>3];Nc(a,b,k+32|0,k+16|0,k);i=H[a+24>>2];h=c+6|0;if(p>>>0>=h>>>0){continue}break}if(c>>>0>=i>>>0){F[a+20|0]=1}n=H[a+32>>2];gb:{if(n>>>0<=c>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break gb}d=H[a+36>>2]+(c<<5)|0}q=M[a+136>>3];s=M[a+128>>3];l=I[a+176|0];hb:{if(!l){break hb}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break hb}m=f&1;g=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];ib:{if((f|0)==1){i=0;break ib}f=f&-2;i=0;h=0;while(1){o=i|1;e=+L[j+(o<<2)>>2]*M[g+(o<<3)>>3]+(+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e);i=i+2|0;h=h+2|0;if((f|0)!=(h|0)){continue}break}}e=m?+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break hb}H[d+20>>2]=0}c=c|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}jb:{if(c>>>0>=n>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break jb}c=H[a+36>>2]+(c<<5)|0}kb:{if(!l){break kb}f=H[c+20>>2];if(!f|(f|0)!=H[a+168>>2]){break kb}n=f&1;g=H[c+24>>2];j=H[a+172>>2];e=M[c>>3];lb:{if((f|0)==1){i=0;break lb}f=f&-2;i=0;h=0;while(1){l=i|1;e=+L[j+(l<<2)>>2]*M[g+(l<<3)>>3]+(+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e);i=i+2|0;h=h+2|0;if((f|0)!=(h|0)){continue}break}}e=n?+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break kb}H[c+20>>2]=0}u=q+M[c>>3];e=s+M[d>>3];mb:{if(I[b|0]){break mb}F[b|0]=1;q=M[a+128>>3];if(q>3]){M[b+8>>3]=q;q=M[a+128>>3]}if(M[b+24>>3]>3]=q}q=M[a+136>>3];if(q>3]){M[b+16>>3]=q;q=M[a+136>>3]}if(!(M[b+32>>3]>3]=q}M[a+136>>3]=u;M[a+128>>3]=e;if(M[b+8>>3]>e){M[b+8>>3]=e;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(!(M[b+32>>3]>3]=e}xb=k+48|0;break o}g=xb-48|0;xb=g;k=H[a+24>>2];if(k>>>0>=8){p=k-6|0;l=H[a+36>>2];m=H[a+32>>2];o=I[a+176|0];f=2;while(1){if(h>>>0>=k>>>0){F[a+20|0]=1}c=f;nb:{if(h>>>0>=m>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break nb}d=l+(h<<5)|0}q=M[a+136>>3];s=M[a+128>>3];ob:{if(!o){break ob}i=H[d+20>>2];if(!i|(i|0)!=H[a+168>>2]){break ob}j=H[d+24>>2];n=H[a+172>>2];e=M[d>>3];f=0;if((i|0)!=1){r=i&-2;k=0;while(1){t=f|1;e=+L[n+(t<<2)>>2]*M[j+(t<<3)>>3]+(+L[n+(f<<2)>>2]*M[j+(f<<3)>>3]+e);f=f+2|0;k=k+2|0;if((r|0)!=(k|0)){continue}break}}e=i&1?+L[n+(f<<2)>>2]*M[j+(f<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break ob}H[d+20>>2]=0}f=h|1;if(f>>>0>=K[a+24>>2]){F[a+20|0]=1}pb:{if(f>>>0>=m>>>0){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;h=784992;break pb}h=l+(f<<5)|0}qb:{if(!o){break qb}i=H[h+20>>2];if(!i|(i|0)!=H[a+168>>2]){break qb}j=H[h+24>>2];n=H[a+172>>2];e=M[h>>3];f=0;if((i|0)!=1){r=i&-2;k=0;while(1){t=f|1;e=+L[n+(t<<2)>>2]*M[j+(t<<3)>>3]+(+L[n+(f<<2)>>2]*M[j+(f<<3)>>3]+e);f=f+2|0;k=k+2|0;if((r|0)!=(k|0)){continue}break}}e=i&1?+L[n+(f<<2)>>2]*M[j+(f<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break qb}H[h+20>>2]=0}u=q+M[h>>3];e=s+M[d>>3];rb:{if(I[b|0]){break rb}F[b|0]=1;q=M[a+128>>3];if(q>3]){M[b+8>>3]=q;q=M[a+128>>3]}if(M[b+24>>3]>3]=q}q=M[a+136>>3];if(q>3]){M[b+16>>3]=q;q=M[a+136>>3]}if(!(M[b+32>>3]>3]=q}M[a+136>>3]=u;M[a+128>>3]=e;if(M[b+8>>3]>e){M[b+8>>3]=e;e=M[a+128>>3]}if(M[b+24>>3]>3]=e}e=M[a+136>>3];if(e>3]){M[b+16>>3]=e;e=M[a+136>>3]}if(M[b+32>>3]>3]=e}k=H[a+24>>2];h=c;f=c+2|0;if(p>>>0>=f>>>0){continue}break}c=H[a+140>>2];H[g+40>>2]=H[a+136>>2];H[g+44>>2]=c;c=H[a+132>>2];H[g+32>>2]=H[a+128>>2];H[g+36>>2]=c;if(h>>>0>=k>>>0){F[a+20|0]=1}i=H[a+32>>2];sb:{if(i>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break sb}c=H[a+36>>2]+(h<<5)|0}n=I[a+176|0];tb:{if(!n){break tb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break tb}o=d&1;l=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];ub:{if((d|0)==1){k=0;break ub}d=d&-2;k=0;j=0;while(1){p=k|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(k<<2)>>2]*M[l+(k<<3)>>3]+e);k=k+2|0;j=j+2|0;if((d|0)!=(j|0)){continue}break}}e=o?+L[m+(k<<2)>>2]*M[l+(k<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break tb}H[c+20>>2]=0}d=h|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}vb:{if(d>>>0>=i>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break vb}d=H[a+36>>2]+(d<<5)|0}wb:{if(!n){break wb}k=H[d+20>>2];if(!k|(k|0)!=H[a+168>>2]){break wb}o=k&1;l=H[d+24>>2];m=H[a+172>>2];e=M[d>>3];xb:{if((k|0)==1){k=0;break xb}p=k&-2;k=0;j=0;while(1){r=k|1;e=+L[m+(r<<2)>>2]*M[l+(r<<3)>>3]+(+L[m+(k<<2)>>2]*M[l+(k<<3)>>3]+e);k=k+2|0;j=j+2|0;if((p|0)!=(j|0)){continue}break}}e=o?+L[m+(k<<2)>>2]*M[l+(k<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break wb}H[d+20>>2]=0}M[g+32>>3]=M[g+32>>3]+M[c>>3];M[g+40>>3]=M[g+40>>3]+M[d>>3];c=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=c;c=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=c;if(K[a+24>>2]<=f>>>0){F[a+20|0]=1}yb:{if(f>>>0>=i>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break yb}c=H[a+36>>2]+(f<<5)|0}zb:{if(!n){break zb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break zb}m=d&1;j=H[c+24>>2];l=H[a+172>>2];e=M[c>>3];Ab:{if((d|0)==1){f=0;break Ab}d=d&-2;f=0;k=0;while(1){o=f|1;e=+L[l+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[l+(f<<2)>>2]*M[j+(f<<3)>>3]+e);f=f+2|0;k=k+2|0;if((d|0)!=(k|0)){continue}break}}e=m?+L[l+(f<<2)>>2]*M[j+(f<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break zb}H[c+20>>2]=0}d=h+3|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Bb:{if(d>>>0>=i>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Bb}d=H[a+36>>2]+(d<<5)|0}Cb:{if(!n){break Cb}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Cb}m=f&1;j=H[d+24>>2];l=H[a+172>>2];e=M[d>>3];Db:{if((f|0)==1){f=0;break Db}o=f&-2;f=0;k=0;while(1){p=f|1;e=+L[l+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[l+(f<<2)>>2]*M[j+(f<<3)>>3]+e);f=f+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=m?+L[l+(f<<2)>>2]*M[j+(f<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Cb}H[d+20>>2]=0}M[g+16>>3]=M[g+16>>3]+M[c>>3];M[g+24>>3]=M[g+24>>3]+M[d>>3];c=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=c;c=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=c;c=h+4|0;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}Eb:{if(c>>>0>=i>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Eb}c=H[a+36>>2]+(c<<5)|0}Fb:{if(!n){break Fb}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Fb}m=d&1;j=H[c+24>>2];l=H[a+172>>2];e=M[c>>3];Gb:{if((d|0)==1){f=0;break Gb}d=d&-2;f=0;k=0;while(1){o=f|1;e=+L[l+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[l+(f<<2)>>2]*M[j+(f<<3)>>3]+e);f=f+2|0;k=k+2|0;if((d|0)!=(k|0)){continue}break}}e=m?+L[l+(f<<2)>>2]*M[j+(f<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break Fb}H[c+20>>2]=0}d=h+5|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Hb:{if(d>>>0>=i>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Hb}d=H[a+36>>2]+(d<<5)|0}Ib:{if(!n){break Ib}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Ib}j=f&1;h=H[d+24>>2];i=H[a+172>>2];e=M[d>>3];Jb:{if((f|0)==1){f=0;break Jb}n=f&-2;f=0;k=0;while(1){l=f|1;e=+L[i+(l<<2)>>2]*M[h+(l<<3)>>3]+(+L[i+(f<<2)>>2]*M[h+(f<<3)>>3]+e);f=f+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}e=j?+L[i+(f<<2)>>2]*M[h+(f<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Ib}H[d+20>>2]=0}M[g>>3]=M[g>>3]+M[c>>3];M[g+8>>3]=M[g+8>>3]+M[d>>3];Nc(a,b,g+32|0,g+16|0,g)}xb=g+48|0;break o}c=0;k=xb-48|0;xb=k;f=H[a+140>>2];H[k+40>>2]=H[a+136>>2];H[k+44>>2]=f;f=H[a+132>>2];H[k+32>>2]=H[a+128>>2];H[k+36>>2]=f;i=H[a+24>>2];if(i&1){Kb:{if(!H[a+32>>2]){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Kb}c=H[a+36>>2]}Lb:{if(!I[a+176|0]){break Lb}f=H[c+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Lb}j=f&1;h=H[c+24>>2];g=H[a+172>>2];e=M[c>>3];Mb:{if((f|0)==1){i=0;break Mb}f=f&-2;i=0;while(1){n=i|1;e=+L[g+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[g+(i<<2)>>2]*M[h+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((f|0)!=(d|0)){continue}break}}e=j?+L[g+(i<<2)>>2]*M[h+(i<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break Lb}H[c+20>>2]=0}M[k+32>>3]=M[k+32>>3]+M[c>>3];i=H[a+24>>2];c=1}d=c|4;if(i>>>0>=d>>>0){while(1){g=c;c=d;if(g>>>0>=i>>>0){F[a+20|0]=1}n=H[a+32>>2];Nb:{if(n>>>0<=g>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Nb}f=H[a+36>>2]+(g<<5)|0}l=I[a+176|0];Ob:{if(!l){break Ob}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Ob}j=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;d=0;while(1){p=i|1;e=+L[m+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[m+(i<<2)>>2]*M[j+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((o|0)!=(d|0)){continue}break}}e=h&1?+L[m+(i<<2)>>2]*M[j+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Ob}H[f+20>>2]=0}M[k+40>>3]=M[k+40>>3]+M[f>>3];d=H[k+44>>2];H[k+24>>2]=H[k+40>>2];H[k+28>>2]=d;d=H[k+36>>2];H[k+16>>2]=H[k+32>>2];H[k+20>>2]=d;d=g+1|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Pb:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Pb}f=H[a+36>>2]+(d<<5)|0}Qb:{if(!l){break Qb}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Qb}j=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;d=0;while(1){p=i|1;e=+L[m+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[m+(i<<2)>>2]*M[j+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((o|0)!=(d|0)){continue}break}}e=h&1?+L[m+(i<<2)>>2]*M[j+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Qb}H[f+20>>2]=0}d=g+2|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Rb:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Rb}h=H[a+36>>2]+(d<<5)|0}Sb:{if(!l){break Sb}j=H[h+20>>2];if(!j|(j|0)!=H[a+168>>2]){break Sb}m=H[h+24>>2];o=H[a+172>>2];e=M[h>>3];i=0;if((j|0)!=1){p=j&-2;d=0;while(1){r=i|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((p|0)!=(d|0)){continue}break}}e=j&1?+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Sb}H[h+20>>2]=0}M[k+16>>3]=M[k+16>>3]+M[f>>3];M[k+24>>3]=M[k+24>>3]+M[h>>3];d=H[k+28>>2];H[k+8>>2]=H[k+24>>2];H[k+12>>2]=d;d=H[k+20>>2];H[k>>2]=H[k+16>>2];H[k+4>>2]=d;d=g+3|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Tb:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Tb}f=H[a+36>>2]+(d<<5)|0}Ub:{if(!l){break Ub}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Ub}g=H[f+24>>2];j=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){n=h&-2;d=0;while(1){l=i|1;e=+L[j+(l<<2)>>2]*M[g+(l<<3)>>3]+(+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((n|0)!=(d|0)){continue}break}}e=h&1?+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Ub}H[f+20>>2]=0}M[k+8>>3]=M[k+8>>3]+M[f>>3];Nc(a,b,k+32|0,k+16|0,k);d=H[a+140>>2];H[k+40>>2]=H[a+136>>2];H[k+44>>2]=d;d=H[a+132>>2];H[k+32>>2]=H[a+128>>2];H[k+36>>2]=d;d=c+4|0;i=H[a+24>>2];if(d>>>0<=i>>>0){continue}break}}xb=k+48|0;break o}c=0;k=xb-48|0;xb=k;f=H[a+140>>2];H[k+40>>2]=H[a+136>>2];H[k+44>>2]=f;f=H[a+132>>2];H[k+32>>2]=H[a+128>>2];H[k+36>>2]=f;i=H[a+24>>2];if(i&1){Vb:{if(!H[a+32>>2]){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Vb}c=H[a+36>>2]}Wb:{if(!I[a+176|0]){break Wb}f=H[c+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Wb}j=f&1;h=H[c+24>>2];g=H[a+172>>2];e=M[c>>3];Xb:{if((f|0)==1){i=0;break Xb}f=f&-2;i=0;while(1){n=i|1;e=+L[g+(n<<2)>>2]*M[h+(n<<3)>>3]+(+L[g+(i<<2)>>2]*M[h+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((f|0)!=(d|0)){continue}break}}e=j?+L[g+(i<<2)>>2]*M[h+(i<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break Wb}H[c+20>>2]=0}M[k+40>>3]=M[k+40>>3]+M[c>>3];i=H[a+24>>2];c=1}d=c|4;if(i>>>0>=d>>>0){while(1){g=c;c=d;if(g>>>0>=i>>>0){F[a+20|0]=1}n=H[a+32>>2];Yb:{if(n>>>0<=g>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Yb}f=H[a+36>>2]+(g<<5)|0}l=I[a+176|0];Zb:{if(!l){break Zb}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Zb}j=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;d=0;while(1){p=i|1;e=+L[m+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[m+(i<<2)>>2]*M[j+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((o|0)!=(d|0)){continue}break}}e=h&1?+L[m+(i<<2)>>2]*M[j+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Zb}H[f+20>>2]=0}M[k+32>>3]=M[k+32>>3]+M[f>>3];d=H[k+44>>2];H[k+24>>2]=H[k+40>>2];H[k+28>>2]=d;d=H[k+36>>2];H[k+16>>2]=H[k+32>>2];H[k+20>>2]=d;d=g+1|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}_b:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break _b}f=H[a+36>>2]+(d<<5)|0}$b:{if(!l){break $b}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break $b}j=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){o=h&-2;d=0;while(1){p=i|1;e=+L[m+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[m+(i<<2)>>2]*M[j+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((o|0)!=(d|0)){continue}break}}e=h&1?+L[m+(i<<2)>>2]*M[j+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break $b}H[f+20>>2]=0}d=g+2|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}ac:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break ac}h=H[a+36>>2]+(d<<5)|0}bc:{if(!l){break bc}j=H[h+20>>2];if(!j|(j|0)!=H[a+168>>2]){break bc}m=H[h+24>>2];o=H[a+172>>2];e=M[h>>3];i=0;if((j|0)!=1){p=j&-2;d=0;while(1){r=i|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((p|0)!=(d|0)){continue}break}}e=j&1?+L[o+(i<<2)>>2]*M[m+(i<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break bc}H[h+20>>2]=0}M[k+16>>3]=M[k+16>>3]+M[f>>3];M[k+24>>3]=M[k+24>>3]+M[h>>3];d=H[k+28>>2];H[k+8>>2]=H[k+24>>2];H[k+12>>2]=d;d=H[k+20>>2];H[k>>2]=H[k+16>>2];H[k+4>>2]=d;d=g+3|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}cc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break cc}f=H[a+36>>2]+(d<<5)|0}dc:{if(!l){break dc}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break dc}g=H[f+24>>2];j=H[a+172>>2];e=M[f>>3];i=0;if((h|0)!=1){n=h&-2;d=0;while(1){l=i|1;e=+L[j+(l<<2)>>2]*M[g+(l<<3)>>3]+(+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e);i=i+2|0;d=d+2|0;if((n|0)!=(d|0)){continue}break}}e=h&1?+L[j+(i<<2)>>2]*M[g+(i<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break dc}H[f+20>>2]=0}M[k>>3]=M[k>>3]+M[f>>3];Nc(a,b,k+32|0,k+16|0,k);d=H[a+140>>2];H[k+40>>2]=H[a+136>>2];H[k+44>>2]=d;d=H[a+132>>2];H[k+32>>2]=H[a+128>>2];H[k+36>>2]=d;d=c+4|0;i=H[a+24>>2];if(d>>>0<=i>>>0){continue}break}}xb=k+48|0;break o}f=0;i=xb-96|0;xb=i;H[i+88>>2]=0;H[i+92>>2]=0;H[i+80>>2]=0;H[i+84>>2]=0;H[i+72>>2]=0;H[i+76>>2]=0;H[i+64>>2]=0;H[i+68>>2]=0;H[i+56>>2]=0;H[i+60>>2]=0;H[i+48>>2]=0;H[i+52>>2]=0;d=H[a+24>>2];ec:{if(!(d&4)){if(d>>>0<8){break ec}c=8;while(1){h=f;f=c;c=H[a+140>>2];H[i+88>>2]=H[a+136>>2];H[i+92>>2]=c;c=H[a+132>>2];H[i+80>>2]=H[a+128>>2];H[i+84>>2]=c;if(d>>>0<=h>>>0){F[a+20|0]=1}n=H[a+32>>2];fc:{if(n>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break fc}c=H[a+36>>2]+(h<<5)|0}l=I[a+176|0];gc:{if(!l){break gc}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break gc}j=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[j+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[j+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break gc}H[c+20>>2]=0}M[i+88>>3]=M[i+88>>3]+M[c>>3];c=H[i+92>>2];H[i+72>>2]=H[i+88>>2];H[i+76>>2]=c;c=H[i+84>>2];H[i+64>>2]=H[i+80>>2];H[i+68>>2]=c;c=h|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}hc:{if(c>>>0>=n>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break hc}c=H[a+36>>2]+(c<<5)|0}ic:{if(!l){break ic}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break ic}j=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[j+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[j+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break ic}H[c+20>>2]=0}d=h|2;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}jc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break jc}g=H[a+36>>2]+(d<<5)|0}kc:{if(!l){break kc}j=H[g+20>>2];if(!j|(j|0)!=H[a+168>>2]){break kc}m=H[g+24>>2];o=H[a+172>>2];e=M[g>>3];d=0;if((j|0)!=1){p=j&-2;k=0;while(1){r=d|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=j&1?+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break kc}H[g+20>>2]=0}M[i+64>>3]=M[i+64>>3]+M[c>>3];M[i+72>>3]=M[i+72>>3]+M[g>>3];c=H[i+76>>2];H[i+56>>2]=H[i+72>>2];H[i+60>>2]=c;c=H[i+68>>2];H[i+48>>2]=H[i+64>>2];H[i+52>>2]=c;c=h|3;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}lc:{if(c>>>0>=n>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break lc}c=H[a+36>>2]+(c<<5)|0}mc:{if(!l){break mc}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break mc}j=H[c+24>>2];n=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){l=g&-2;k=0;while(1){m=d|1;e=+L[n+(m<<2)>>2]*M[j+(m<<3)>>3]+(+L[n+(d<<2)>>2]*M[j+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}e=g&1?+L[n+(d<<2)>>2]*M[j+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break mc}H[c+20>>2]=0}M[i+48>>3]=M[i+48>>3]+M[c>>3];Nc(a,b,i+80|0,i- -64|0,i+48|0);c=H[i+60>>2];H[i+88>>2]=H[i+56>>2];H[i+92>>2]=c;c=H[i+52>>2];H[i+80>>2]=H[i+48>>2];H[i+84>>2]=c;c=h|4;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}j=H[a+32>>2];nc:{if(j>>>0<=c>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break nc}c=H[a+36>>2]+(c<<5)|0}n=I[a+176|0];oc:{if(!n){break oc}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break oc}l=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break oc}H[c+20>>2]=0}e=M[c>>3];c=H[i+92>>2];H[i+72>>2]=H[i+88>>2];H[i+76>>2]=c;M[i+80>>3]=e+M[i+80>>3];c=H[i+84>>2];H[i+64>>2]=H[i+80>>2];H[i+68>>2]=c;c=h|5;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}pc:{if(c>>>0>=j>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break pc}c=H[a+36>>2]+(c<<5)|0}qc:{if(!n){break qc}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break qc}l=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break qc}H[c+20>>2]=0}d=h|6;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}rc:{if(d>>>0>=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break rc}g=H[a+36>>2]+(d<<5)|0}sc:{if(!n){break sc}l=H[g+20>>2];if(!l|(l|0)!=H[a+168>>2]){break sc}m=H[g+24>>2];o=H[a+172>>2];e=M[g>>3];d=0;if((l|0)!=1){p=l&-2;k=0;while(1){r=d|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=l&1?+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break sc}H[g+20>>2]=0}M[i+64>>3]=M[i+64>>3]+M[c>>3];M[i+72>>3]=M[i+72>>3]+M[g>>3];c=H[i+76>>2];H[i+56>>2]=H[i+72>>2];H[i+60>>2]=c;c=H[i+68>>2];H[i+48>>2]=H[i+64>>2];H[i+52>>2]=c;c=h|7;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}tc:{if(c>>>0>=j>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break tc}c=H[a+36>>2]+(c<<5)|0}uc:{if(!n){break uc}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break uc}l=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break uc}H[c+20>>2]=0}M[i+56>>3]=M[i+56>>3]+M[c>>3];c=H[a+24>>2];if(!(c-h>>>0>15|!(c&1))){if(c>>>0<=f>>>0){F[a+20|0]=1}vc:{if(f>>>0>=j>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break vc}c=H[a+36>>2]+(f<<5)|0}wc:{if(!n){break wc}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break wc}k=H[c+24>>2];j=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){n=g&-2;h=0;while(1){l=d|1;e=+L[j+(l<<2)>>2]*M[k+(l<<3)>>3]+(+L[j+(d<<2)>>2]*M[k+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((n|0)!=(h|0)){continue}break}}e=g&1?+L[j+(d<<2)>>2]*M[k+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break wc}H[c+20>>2]=0}M[i+48>>3]=M[i+48>>3]+M[c>>3]}Nc(a,b,i+80|0,i- -64|0,i+48|0);c=f+8|0;d=H[a+24>>2];if(c>>>0<=d>>>0){continue}break}break ec}c=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=c;c=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=c;n=H[a+32>>2];xc:{if(!n){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break xc}c=H[a+36>>2]}j=I[a+176|0];yc:{if(!j){break yc}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break yc}k=d&1;f=H[c+24>>2];g=H[a+172>>2];e=M[c>>3];zc:{if((d|0)==1){d=0;break zc}l=d&-2;d=0;while(1){m=d|1;e=+L[g+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=k?+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break yc}H[c+20>>2]=0}M[i+40>>3]=M[i+40>>3]+M[c>>3];c=H[i+44>>2];H[i+24>>2]=H[i+40>>2];H[i+28>>2]=c;c=H[i+36>>2];H[i+16>>2]=H[i+32>>2];H[i+20>>2]=c;if(K[a+24>>2]<=1){F[a+20|0]=1}Ac:{if(n>>>0<=1){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Ac}c=H[a+36>>2]+32|0}Bc:{if(!j){break Bc}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Bc}k=d&1;f=H[c+24>>2];g=H[a+172>>2];e=M[c>>3];Cc:{if((d|0)==1){d=0;break Cc}l=d&-2;d=0;h=0;while(1){m=d|1;e=+L[g+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=k?+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break Bc}H[c+20>>2]=0}if(K[a+24>>2]<=2){F[a+20|0]=1}Dc:{if(n>>>0<=2){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Dc}f=H[a+36>>2]- -64|0}Ec:{if(!j){break Ec}d=H[f+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Ec}l=d&1;g=H[f+24>>2];k=H[a+172>>2];e=M[f>>3];Fc:{if((d|0)==1){d=0;break Fc}m=d&-2;d=0;h=0;while(1){o=d|1;e=+L[k+(o<<2)>>2]*M[g+(o<<3)>>3]+(+L[k+(d<<2)>>2]*M[g+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[k+(d<<2)>>2]*M[g+(d<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Ec}H[f+20>>2]=0}M[i+16>>3]=M[i+16>>3]+M[c>>3];M[i+24>>3]=M[i+24>>3]+M[f>>3];c=H[i+28>>2];H[i+8>>2]=H[i+24>>2];H[i+12>>2]=c;c=H[i+20>>2];H[i>>2]=H[i+16>>2];H[i+4>>2]=c;if(K[a+24>>2]<=3){F[a+20|0]=1}Gc:{if(n>>>0<=3){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Gc}c=H[a+36>>2]+96|0}Hc:{if(!j){break Hc}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Hc}k=d&1;f=H[c+24>>2];g=H[a+172>>2];e=M[c>>3];Ic:{if((d|0)==1){d=0;break Ic}l=d&-2;d=0;h=0;while(1){m=d|1;e=+L[g+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=k?+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break Hc}H[c+20>>2]=0}M[i>>3]=M[i>>3]+M[c>>3];d=12;c=4;f=H[a+24>>2];if(f>>>0>=12){while(1){f=c;c=d;Nc(a,b,i+32|0,i+16|0,i);d=H[a+140>>2];H[i+40>>2]=H[a+136>>2];H[i+44>>2]=d;d=H[a+132>>2];H[i+32>>2]=H[a+128>>2];H[i+36>>2]=d;if(f>>>0>=K[a+24>>2]){F[a+20|0]=1}n=H[a+32>>2];Jc:{if(n>>>0<=f>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Jc}h=H[a+36>>2]+(f<<5)|0}l=I[a+176|0];Kc:{if(!l){break Kc}g=H[h+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Kc}j=H[h+24>>2];m=H[a+172>>2];e=M[h>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[j+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[j+(d<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Kc}H[h+20>>2]=0}e=M[h>>3];d=H[i+44>>2];H[i+24>>2]=H[i+40>>2];H[i+28>>2]=d;M[i+32>>3]=e+M[i+32>>3];d=H[i+36>>2];H[i+16>>2]=H[i+32>>2];H[i+20>>2]=d;d=f|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Lc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Lc}h=H[a+36>>2]+(d<<5)|0}Mc:{if(!l){break Mc}g=H[h+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Mc}j=H[h+24>>2];m=H[a+172>>2];e=M[h>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[j+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[j+(d<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Mc}H[h+20>>2]=0}d=f|2;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Nc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break Nc}g=H[a+36>>2]+(d<<5)|0}Oc:{if(!l){break Oc}j=H[g+20>>2];if(!j|(j|0)!=H[a+168>>2]){break Oc}m=H[g+24>>2];o=H[a+172>>2];e=M[g>>3];d=0;if((j|0)!=1){p=j&-2;k=0;while(1){r=d|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=j&1?+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break Oc}H[g+20>>2]=0}M[i+16>>3]=M[i+16>>3]+M[h>>3];M[i+24>>3]=M[i+24>>3]+M[g>>3];d=H[i+28>>2];H[i+8>>2]=H[i+24>>2];H[i+12>>2]=d;d=H[i+20>>2];H[i>>2]=H[i+16>>2];H[i+4>>2]=d;d=f|3;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Pc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Pc}h=H[a+36>>2]+(d<<5)|0}Qc:{if(!l){break Qc}g=H[h+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Qc}j=H[h+24>>2];n=H[a+172>>2];e=M[h>>3];d=0;if((g|0)!=1){l=g&-2;k=0;while(1){m=d|1;e=+L[n+(m<<2)>>2]*M[j+(m<<3)>>3]+(+L[n+(d<<2)>>2]*M[j+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}e=g&1?+L[n+(d<<2)>>2]*M[j+(d<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Qc}H[h+20>>2]=0}M[i+8>>3]=M[i+8>>3]+M[h>>3];Nc(a,b,i+32|0,i+16|0,i);d=H[i+12>>2];H[i+40>>2]=H[i+8>>2];H[i+44>>2]=d;d=H[i+4>>2];H[i+32>>2]=H[i>>2];H[i+36>>2]=d;d=f+4|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}n=H[a+32>>2];Rc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Rc}h=H[a+36>>2]+(d<<5)|0}j=I[a+176|0];Sc:{if(!j){break Sc}g=H[h+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Sc}l=H[h+24>>2];m=H[a+172>>2];e=M[h>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Sc}H[h+20>>2]=0}M[i+40>>3]=M[i+40>>3]+M[h>>3];d=H[i+44>>2];H[i+24>>2]=H[i+40>>2];H[i+28>>2]=d;d=H[i+36>>2];H[i+16>>2]=H[i+32>>2];H[i+20>>2]=d;d=f+5|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Tc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break Tc}h=H[a+36>>2]+(d<<5)|0}Uc:{if(!j){break Uc}g=H[h+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Uc}l=H[h+24>>2];m=H[a+172>>2];e=M[h>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[h+8>>2]=0;H[h+12>>2]=0;M[h>>3]=e;if(H[h+16>>2]<0){break Uc}H[h+20>>2]=0}d=f+6|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Vc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break Vc}g=H[a+36>>2]+(d<<5)|0}Wc:{if(!j){break Wc}l=H[g+20>>2];if(!l|(l|0)!=H[a+168>>2]){break Wc}m=H[g+24>>2];o=H[a+172>>2];e=M[g>>3];d=0;if((l|0)!=1){p=l&-2;k=0;while(1){r=d|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=l&1?+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break Wc}H[g+20>>2]=0}M[i+16>>3]=M[i+16>>3]+M[h>>3];M[i+24>>3]=M[i+24>>3]+M[g>>3];d=H[i+28>>2];H[i+8>>2]=H[i+24>>2];H[i+12>>2]=d;d=H[i+20>>2];H[i>>2]=H[i+16>>2];H[i+4>>2]=d;d=f+7|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Xc:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Xc}f=H[a+36>>2]+(d<<5)|0}Yc:{if(!j){break Yc}g=H[f+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Yc}k=H[f+24>>2];l=H[a+172>>2];e=M[f>>3];d=0;if((g|0)!=1){m=g&-2;h=0;while(1){o=d|1;e=+L[l+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[l+(d<<2)>>2]*M[k+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=g&1?+L[l+(d<<2)>>2]*M[k+(d<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Yc}H[f+20>>2]=0}M[i>>3]=M[i>>3]+M[f>>3];d=c+8|0;f=H[a+24>>2];if(d>>>0<=f>>>0){continue}break}}if(c>>>0>>0){Zc:{if(c>>>0>=n>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Zc}c=H[a+36>>2]+(c<<5)|0}_c:{if(!j){break _c}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break _c}k=d&1;f=H[c+24>>2];g=H[a+172>>2];e=M[c>>3];$c:{if((d|0)==1){d=0;break $c}j=d&-2;d=0;h=0;while(1){n=d|1;e=+L[g+(n<<2)>>2]*M[f+(n<<3)>>3]+(+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((j|0)!=(h|0)){continue}break}}e=k?+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break _c}H[c+20>>2]=0}M[i+8>>3]=M[i+8>>3]+M[c>>3]}Nc(a,b,i+32|0,i+16|0,i)}xb=i+96|0;break o}f=0;j=xb-96|0;xb=j;H[j+88>>2]=0;H[j+92>>2]=0;H[j+80>>2]=0;H[j+84>>2]=0;H[j+72>>2]=0;H[j+76>>2]=0;H[j+64>>2]=0;H[j+68>>2]=0;H[j+56>>2]=0;H[j+60>>2]=0;H[j+48>>2]=0;H[j+52>>2]=0;d=H[a+24>>2];ad:{if(!(d&4)){if(d>>>0<8){break ad}c=8;while(1){h=f;f=c;c=H[a+140>>2];H[j+88>>2]=H[a+136>>2];H[j+92>>2]=c;c=H[a+132>>2];H[j+80>>2]=H[a+128>>2];H[j+84>>2]=c;if(d>>>0<=h>>>0){F[a+20|0]=1}n=H[a+32>>2];bd:{if(n>>>0<=h>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break bd}c=H[a+36>>2]+(h<<5)|0}l=I[a+176|0];cd:{if(!l){break cd}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break cd}i=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[i+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break cd}H[c+20>>2]=0}e=M[c>>3];c=H[j+92>>2];H[j+72>>2]=H[j+88>>2];H[j+76>>2]=c;M[j+80>>3]=e+M[j+80>>3];c=H[j+84>>2];H[j+64>>2]=H[j+80>>2];H[j+68>>2]=c;c=h|1;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}dd:{if(c>>>0>=n>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break dd}c=H[a+36>>2]+(c<<5)|0}ed:{if(!l){break ed}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break ed}i=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[i+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break ed}H[c+20>>2]=0}d=h|2;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}fd:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break fd}g=H[a+36>>2]+(d<<5)|0}gd:{if(!l){break gd}i=H[g+20>>2];if(!i|(i|0)!=H[a+168>>2]){break gd}m=H[g+24>>2];o=H[a+172>>2];e=M[g>>3];d=0;if((i|0)!=1){p=i&-2;k=0;while(1){r=d|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=i&1?+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break gd}H[g+20>>2]=0}M[j+64>>3]=M[j+64>>3]+M[c>>3];M[j+72>>3]=M[j+72>>3]+M[g>>3];c=H[j+76>>2];H[j+56>>2]=H[j+72>>2];H[j+60>>2]=c;c=H[j+68>>2];H[j+48>>2]=H[j+64>>2];H[j+52>>2]=c;c=h|3;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}hd:{if(c>>>0>=n>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break hd}c=H[a+36>>2]+(c<<5)|0}id:{if(!l){break id}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break id}i=H[c+24>>2];n=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){l=g&-2;k=0;while(1){m=d|1;e=+L[n+(m<<2)>>2]*M[i+(m<<3)>>3]+(+L[n+(d<<2)>>2]*M[i+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}e=g&1?+L[n+(d<<2)>>2]*M[i+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break id}H[c+20>>2]=0}M[j+56>>3]=M[j+56>>3]+M[c>>3];Nc(a,b,j+80|0,j- -64|0,j+48|0);c=H[j+60>>2];H[j+88>>2]=H[j+56>>2];H[j+92>>2]=c;c=H[j+52>>2];H[j+80>>2]=H[j+48>>2];H[j+84>>2]=c;c=h|4;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}i=H[a+32>>2];jd:{if(i>>>0<=c>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break jd}c=H[a+36>>2]+(c<<5)|0}n=I[a+176|0];kd:{if(!n){break kd}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break kd}l=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break kd}H[c+20>>2]=0}M[j+88>>3]=M[j+88>>3]+M[c>>3];c=H[j+92>>2];H[j+72>>2]=H[j+88>>2];H[j+76>>2]=c;c=H[j+84>>2];H[j+64>>2]=H[j+80>>2];H[j+68>>2]=c;c=h|5;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}ld:{if(c>>>0>=i>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break ld}c=H[a+36>>2]+(c<<5)|0}md:{if(!n){break md}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break md}l=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break md}H[c+20>>2]=0}d=h|6;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}nd:{if(d>>>0>=i>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break nd}g=H[a+36>>2]+(d<<5)|0}od:{if(!n){break od}l=H[g+20>>2];if(!l|(l|0)!=H[a+168>>2]){break od}m=H[g+24>>2];o=H[a+172>>2];e=M[g>>3];d=0;if((l|0)!=1){p=l&-2;k=0;while(1){r=d|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=l&1?+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break od}H[g+20>>2]=0}M[j+64>>3]=M[j+64>>3]+M[c>>3];M[j+72>>3]=M[j+72>>3]+M[g>>3];c=H[j+76>>2];H[j+56>>2]=H[j+72>>2];H[j+60>>2]=c;c=H[j+68>>2];H[j+48>>2]=H[j+64>>2];H[j+52>>2]=c;c=h|7;if(c>>>0>=K[a+24>>2]){F[a+20|0]=1}pd:{if(c>>>0>=i>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break pd}c=H[a+36>>2]+(c<<5)|0}qd:{if(!n){break qd}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break qd}l=H[c+24>>2];m=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break qd}H[c+20>>2]=0}M[j+48>>3]=M[j+48>>3]+M[c>>3];c=H[a+24>>2];if(!(c-h>>>0>15|!(c&1))){if(c>>>0<=f>>>0){F[a+20|0]=1}rd:{if(f>>>0>=i>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break rd}c=H[a+36>>2]+(f<<5)|0}sd:{if(!n){break sd}g=H[c+20>>2];if(!g|(g|0)!=H[a+168>>2]){break sd}i=H[c+24>>2];k=H[a+172>>2];e=M[c>>3];d=0;if((g|0)!=1){n=g&-2;h=0;while(1){l=d|1;e=+L[k+(l<<2)>>2]*M[i+(l<<3)>>3]+(+L[k+(d<<2)>>2]*M[i+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((n|0)!=(h|0)){continue}break}}e=g&1?+L[k+(d<<2)>>2]*M[i+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break sd}H[c+20>>2]=0}M[j+56>>3]=M[j+56>>3]+M[c>>3]}Nc(a,b,j+80|0,j- -64|0,j+48|0);c=f+8|0;d=H[a+24>>2];if(c>>>0<=d>>>0){continue}break}break ad}c=H[a+140>>2];H[j+40>>2]=H[a+136>>2];H[j+44>>2]=c;c=H[a+132>>2];H[j+32>>2]=H[a+128>>2];H[j+36>>2]=c;f=H[a+32>>2];td:{if(!f){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break td}c=H[a+36>>2]}n=I[a+176|0];ud:{if(!n){break ud}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break ud}k=d&1;g=H[c+24>>2];i=H[a+172>>2];e=M[c>>3];vd:{if((d|0)==1){d=0;break vd}l=d&-2;d=0;while(1){m=d|1;e=+L[i+(m<<2)>>2]*M[g+(m<<3)>>3]+(+L[i+(d<<2)>>2]*M[g+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=k?+L[i+(d<<2)>>2]*M[g+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break ud}H[c+20>>2]=0}M[j+32>>3]=M[j+32>>3]+M[c>>3];c=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=c;c=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=c;if(K[a+24>>2]<=1){F[a+20|0]=1}wd:{if(f>>>0<=1){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break wd}c=H[a+36>>2]+32|0}xd:{if(!n){break xd}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break xd}k=d&1;g=H[c+24>>2];i=H[a+172>>2];e=M[c>>3];yd:{if((d|0)==1){d=0;break yd}l=d&-2;d=0;h=0;while(1){m=d|1;e=+L[i+(m<<2)>>2]*M[g+(m<<3)>>3]+(+L[i+(d<<2)>>2]*M[g+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=k?+L[i+(d<<2)>>2]*M[g+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break xd}H[c+20>>2]=0}if(K[a+24>>2]<=2){F[a+20|0]=1}zd:{if(f>>>0<=2){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break zd}g=H[a+36>>2]- -64|0}Ad:{if(!n){break Ad}d=H[g+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Ad}l=d&1;i=H[g+24>>2];k=H[a+172>>2];e=M[g>>3];Bd:{if((d|0)==1){d=0;break Bd}m=d&-2;d=0;h=0;while(1){o=d|1;e=+L[k+(o<<2)>>2]*M[i+(o<<3)>>3]+(+L[k+(d<<2)>>2]*M[i+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[k+(d<<2)>>2]*M[i+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break Ad}H[g+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[c>>3];M[j+24>>3]=M[j+24>>3]+M[g>>3];c=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=c;c=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=c;if(K[a+24>>2]<=3){F[a+20|0]=1}Cd:{if(f>>>0<=3){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Cd}c=H[a+36>>2]+96|0}Dd:{if(!n){break Dd}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Dd}k=d&1;g=H[c+24>>2];i=H[a+172>>2];e=M[c>>3];Ed:{if((d|0)==1){d=0;break Ed}l=d&-2;d=0;h=0;while(1){m=d|1;e=+L[i+(m<<2)>>2]*M[g+(m<<3)>>3]+(+L[i+(d<<2)>>2]*M[g+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=k?+L[i+(d<<2)>>2]*M[g+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break Dd}H[c+20>>2]=0}M[j+8>>3]=M[j+8>>3]+M[c>>3];d=12;c=4;h=H[a+24>>2];if(h>>>0>=12){while(1){h=c;c=d;Nc(a,b,j+32|0,j+16|0,j);d=H[a+140>>2];H[j+40>>2]=H[a+136>>2];H[j+44>>2]=d;d=H[a+132>>2];H[j+32>>2]=H[a+128>>2];H[j+36>>2]=d;if(h>>>0>=K[a+24>>2]){F[a+20|0]=1}n=H[a+32>>2];Fd:{if(n>>>0<=h>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Fd}f=H[a+36>>2]+(h<<5)|0}l=I[a+176|0];Gd:{if(!l){break Gd}g=H[f+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Gd}i=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[i+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Gd}H[f+20>>2]=0}M[j+40>>3]=M[j+40>>3]+M[f>>3];d=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=d;d=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=d;d=h|1;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Hd:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Hd}f=H[a+36>>2]+(d<<5)|0}Id:{if(!l){break Id}g=H[f+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Id}i=H[f+24>>2];m=H[a+172>>2];e=M[f>>3];d=0;if((g|0)!=1){o=g&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[i+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=g&1?+L[m+(d<<2)>>2]*M[i+(d<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Id}H[f+20>>2]=0}d=h|2;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Jd:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break Jd}g=H[a+36>>2]+(d<<5)|0}Kd:{if(!l){break Kd}i=H[g+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Kd}m=H[g+24>>2];o=H[a+172>>2];e=M[g>>3];d=0;if((i|0)!=1){p=i&-2;k=0;while(1){r=d|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=i&1?+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break Kd}H[g+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[f>>3];M[j+24>>3]=M[j+24>>3]+M[g>>3];d=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=d;d=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=d;d=h|3;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Ld:{if(d>>>0>=n>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992;break Ld}f=H[a+36>>2]+(d<<5)|0}Md:{if(!l){break Md}g=H[f+20>>2];if(!g|(g|0)!=H[a+168>>2]){break Md}i=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];d=0;if((g|0)!=1){l=g&-2;k=0;while(1){m=d|1;e=+L[n+(m<<2)>>2]*M[i+(m<<3)>>3]+(+L[n+(d<<2)>>2]*M[i+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}e=g&1?+L[n+(d<<2)>>2]*M[i+(d<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Md}H[f+20>>2]=0}M[j>>3]=M[j>>3]+M[f>>3];Nc(a,b,j+32|0,j+16|0,j);d=H[j+12>>2];H[j+40>>2]=H[j+8>>2];H[j+44>>2]=d;d=H[j+4>>2];H[j+32>>2]=H[j>>2];H[j+36>>2]=d;d=h+4|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}f=H[a+32>>2];Nd:{if(d>>>0>=f>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break Nd}g=H[a+36>>2]+(d<<5)|0}n=I[a+176|0];Od:{if(!n){break Od}i=H[g+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Od}l=H[g+24>>2];m=H[a+172>>2];e=M[g>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=i&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break Od}H[g+20>>2]=0}e=M[g>>3];d=H[j+44>>2];H[j+24>>2]=H[j+40>>2];H[j+28>>2]=d;M[j+32>>3]=e+M[j+32>>3];d=H[j+36>>2];H[j+16>>2]=H[j+32>>2];H[j+20>>2]=d;d=h+5|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Pd:{if(d>>>0>=f>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break Pd}g=H[a+36>>2]+(d<<5)|0}Qd:{if(!n){break Qd}i=H[g+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Qd}l=H[g+24>>2];m=H[a+172>>2];e=M[g>>3];d=0;if((i|0)!=1){o=i&-2;k=0;while(1){p=d|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=i&1?+L[m+(d<<2)>>2]*M[l+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break Qd}H[g+20>>2]=0}d=h+6|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Rd:{if(d>>>0>=f>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;i=784992;break Rd}i=H[a+36>>2]+(d<<5)|0}Sd:{if(!n){break Sd}l=H[i+20>>2];if(!l|(l|0)!=H[a+168>>2]){break Sd}m=H[i+24>>2];o=H[a+172>>2];e=M[i>>3];d=0;if((l|0)!=1){p=l&-2;k=0;while(1){r=d|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e);d=d+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=l&1?+L[o+(d<<2)>>2]*M[m+(d<<3)>>3]+e:e;H[i+8>>2]=0;H[i+12>>2]=0;M[i>>3]=e;if(H[i+16>>2]<0){break Sd}H[i+20>>2]=0}M[j+16>>3]=M[j+16>>3]+M[g>>3];M[j+24>>3]=M[j+24>>3]+M[i>>3];d=H[j+28>>2];H[j+8>>2]=H[j+24>>2];H[j+12>>2]=d;d=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=d;d=h+7|0;if(d>>>0>=K[a+24>>2]){F[a+20|0]=1}Td:{if(d>>>0>=f>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break Td}g=H[a+36>>2]+(d<<5)|0}Ud:{if(!n){break Ud}i=H[g+20>>2];if(!i|(i|0)!=H[a+168>>2]){break Ud}k=H[g+24>>2];l=H[a+172>>2];e=M[g>>3];d=0;if((i|0)!=1){m=i&-2;h=0;while(1){o=d|1;e=+L[l+(o<<2)>>2]*M[k+(o<<3)>>3]+(+L[l+(d<<2)>>2]*M[k+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=i&1?+L[l+(d<<2)>>2]*M[k+(d<<3)>>3]+e:e;H[g+8>>2]=0;H[g+12>>2]=0;M[g>>3]=e;if(H[g+16>>2]<0){break Ud}H[g+20>>2]=0}M[j+8>>3]=M[j+8>>3]+M[g>>3];d=c+8|0;h=H[a+24>>2];if(d>>>0<=h>>>0){continue}break}}if(c>>>0>>0){Vd:{if(c>>>0>=f>>>0){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Vd}c=H[a+36>>2]+(c<<5)|0}Wd:{if(!n){break Wd}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Wd}i=d&1;f=H[c+24>>2];g=H[a+172>>2];e=M[c>>3];Xd:{if((d|0)==1){d=0;break Xd}k=d&-2;d=0;h=0;while(1){n=d|1;e=+L[g+(n<<2)>>2]*M[f+(n<<3)>>3]+(+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e);d=d+2|0;h=h+2|0;if((k|0)!=(h|0)){continue}break}}e=i?+L[g+(d<<2)>>2]*M[f+(d<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break Wd}H[c+20>>2]=0}M[j>>3]=M[j>>3]+M[c>>3]}Nc(a,b,j+32|0,j+16|0,j)}xb=j+96|0;break o}g=xb-96|0;xb=g;Yd:{Zd:{_d:{if(H[a+24>>2]==7){c=H[a+140>>2];H[g+88>>2]=H[a+136>>2];H[g+92>>2]=c;c=H[a+132>>2];H[g+80>>2]=H[a+128>>2];H[g+84>>2]=c;i=H[a+32>>2];$d:{if(!i){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break $d}d=H[a+36>>2]}k=I[a+176|0];if(!k){break Zd}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Zd}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];if((c|0)==1){c=0;break _d}l=c&-2;c=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}break _d}F[a+40|0]=1;break Yd}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Zd}H[d+20>>2]=0}M[g+80>>3]=M[g+80>>3]+M[d>>3];c=H[g+92>>2];H[g+72>>2]=H[g+88>>2];H[g+76>>2]=c;c=H[g+84>>2];H[g+64>>2]=H[g+80>>2];H[g+68>>2]=c;if(K[a+24>>2]<=1){F[a+20|0]=1}ae:{if(i>>>0<=1){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break ae}d=H[a+36>>2]+32|0}be:{if(!k){break be}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break be}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];ce:{if((c|0)==1){c=0;break ce}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break be}H[d+20>>2]=0}if(K[a+24>>2]<=2){F[a+20|0]=1}de:{if(i>>>0<=2){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break de}f=H[a+36>>2]- -64|0}ee:{if(!k){break ee}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break ee}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];fe:{if((c|0)==1){c=0;break fe}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break ee}H[f+20>>2]=0}M[g+64>>3]=M[g+64>>3]+M[d>>3];M[g+72>>3]=M[g+72>>3]+M[f>>3];c=H[g+76>>2];H[g+56>>2]=H[g+72>>2];H[g+60>>2]=c;c=H[g+68>>2];H[g+48>>2]=H[g+64>>2];H[g+52>>2]=c;if(K[a+24>>2]<=3){F[a+20|0]=1}ge:{if(i>>>0<=3){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break ge}d=H[a+36>>2]+96|0}he:{if(!k){break he}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break he}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];ie:{if((c|0)==1){c=0;break ie}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break he}H[d+20>>2]=0}M[g+48>>3]=M[g+48>>3]+M[d>>3];c=H[g+60>>2];H[g+40>>2]=H[g+56>>2];H[g+44>>2]=c;c=H[g+52>>2];H[g+32>>2]=H[g+48>>2];H[g+36>>2]=c;if(K[a+24>>2]<=4){F[a+20|0]=1}je:{if(i>>>0<=4){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break je}d=H[a+36>>2]+128|0}ke:{if(!k){break ke}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break ke}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];le:{if((c|0)==1){c=0;break le}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break ke}H[d+20>>2]=0}M[g+32>>3]=M[g+32>>3]+M[d>>3];c=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=c;c=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=c;if(K[a+24>>2]<=5){F[a+20|0]=1}me:{if(i>>>0<=5){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break me}d=H[a+36>>2]+160|0}ne:{if(!k){break ne}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break ne}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];oe:{if((c|0)==1){c=0;break oe}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break ne}H[d+20>>2]=0}e=M[d>>3];c=H[g+92>>2];d=H[g+88>>2];H[g+24>>2]=d;H[g+28>>2]=c;M[g+16>>3]=e+M[g+16>>3];H[g+8>>2]=d;H[g+12>>2]=c;c=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=c;if(K[a+24>>2]<=6){F[a+20|0]=1}pe:{if(i>>>0<=6){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break pe}d=H[a+36>>2]+192|0}qe:{if(!k){break qe}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break qe}k=c&1;f=H[d+24>>2];i=H[a+172>>2];e=M[d>>3];re:{if((c|0)==1){c=0;break re}j=c&-2;c=0;h=0;while(1){n=c|1;e=+L[i+(n<<2)>>2]*M[f+(n<<3)>>3]+(+L[i+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((j|0)!=(h|0)){continue}break}}e=k?+L[i+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break qe}H[d+20>>2]=0}M[g>>3]=M[g>>3]+M[d>>3];Nc(a,b,g+80|0,g- -64|0,g+48|0);Nc(a,b,g+32|0,g+16|0,g)}xb=g+96|0;break o}g=xb-96|0;xb=g;se:{te:{ue:{if(H[a+24>>2]==13){c=H[a+140>>2];H[g+88>>2]=H[a+136>>2];H[g+92>>2]=c;c=H[a+132>>2];H[g+80>>2]=H[a+128>>2];H[g+84>>2]=c;i=H[a+32>>2];ve:{if(!i){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break ve}d=H[a+36>>2]}k=I[a+176|0];if(!k){break te}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break te}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];if((c|0)==1){c=0;break ue}l=c&-2;c=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}break ue}F[a+40|0]=1;break se}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break te}H[d+20>>2]=0}if(K[a+24>>2]<=1){F[a+20|0]=1}we:{if(i>>>0<=1){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break we}f=H[a+36>>2]+32|0}xe:{if(!k){break xe}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break xe}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];ye:{if((c|0)==1){c=0;break ye}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break xe}H[f+20>>2]=0}M[g+80>>3]=M[g+80>>3]+M[d>>3];M[g+88>>3]=M[g+88>>3]+M[f>>3];c=H[g+92>>2];H[g+72>>2]=H[g+88>>2];H[g+76>>2]=c;c=H[g+84>>2];H[g+64>>2]=H[g+80>>2];H[g+68>>2]=c;if(K[a+24>>2]<=2){F[a+20|0]=1}ze:{if(i>>>0<=2){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break ze}d=H[a+36>>2]- -64|0}Ae:{if(!k){break Ae}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Ae}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];Be:{if((c|0)==1){c=0;break Be}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Ae}H[d+20>>2]=0}if(K[a+24>>2]<=3){F[a+20|0]=1}Ce:{if(i>>>0<=3){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break Ce}f=H[a+36>>2]+96|0}De:{if(!k){break De}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break De}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];Ee:{if((c|0)==1){c=0;break Ee}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break De}H[f+20>>2]=0}M[g+64>>3]=M[g+64>>3]+M[d>>3];M[g+72>>3]=M[g+72>>3]+M[f>>3];c=H[g+76>>2];H[g+56>>2]=H[g+72>>2];H[g+60>>2]=c;c=H[g+68>>2];H[g+48>>2]=H[g+64>>2];H[g+52>>2]=c;if(K[a+24>>2]<=4){F[a+20|0]=1}Fe:{if(i>>>0<=4){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break Fe}d=H[a+36>>2]+128|0}Ge:{if(!k){break Ge}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Ge}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];He:{if((c|0)==1){c=0;break He}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Ge}H[d+20>>2]=0}if(K[a+24>>2]<=5){F[a+20|0]=1}Ie:{if(i>>>0<=5){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break Ie}f=H[a+36>>2]+160|0}Je:{if(!k){break Je}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Je}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];Ke:{if((c|0)==1){c=0;break Ke}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Je}H[f+20>>2]=0}M[g+48>>3]=M[g+48>>3]+M[d>>3];M[g+56>>3]=M[g+56>>3]+M[f>>3];c=H[g+60>>2];H[g+40>>2]=H[g+56>>2];H[g+44>>2]=c;c=H[g+52>>2];H[g+32>>2]=H[g+48>>2];H[g+36>>2]=c;if(K[a+24>>2]<=6){F[a+20|0]=1}Le:{if(i>>>0<=6){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break Le}d=H[a+36>>2]+192|0}Me:{if(!k){break Me}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Me}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];Ne:{if((c|0)==1){c=0;break Ne}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Me}H[d+20>>2]=0}if(K[a+24>>2]<=7){F[a+20|0]=1}Oe:{if(i>>>0<=7){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break Oe}f=H[a+36>>2]+224|0}Pe:{if(!k){break Pe}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Pe}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];Qe:{if((c|0)==1){c=0;break Qe}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Pe}H[f+20>>2]=0}M[g+32>>3]=M[g+32>>3]+M[d>>3];M[g+40>>3]=M[g+40>>3]+M[f>>3];c=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=c;c=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=c;if(K[a+24>>2]<=8){F[a+20|0]=1}Re:{if(i>>>0<=8){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break Re}d=H[a+36>>2]+256|0}Se:{if(!k){break Se}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Se}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];Te:{if((c|0)==1){c=0;break Te}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Se}H[d+20>>2]=0}if(K[a+24>>2]<=9){F[a+20|0]=1}Ue:{if(i>>>0<=9){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break Ue}f=H[a+36>>2]+288|0}Ve:{if(!k){break Ve}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Ve}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];We:{if((c|0)==1){c=0;break We}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Ve}H[f+20>>2]=0}M[g+16>>3]=M[g+16>>3]+M[d>>3];M[g+24>>3]=M[g+24>>3]+M[f>>3];c=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=c;c=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=c;if(K[a+24>>2]<=10){F[a+20|0]=1}Xe:{if(i>>>0<=10){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break Xe}d=H[a+36>>2]+320|0}Ye:{if(!k){break Ye}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Ye}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];Ze:{if((c|0)==1){c=0;break Ze}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Ye}H[d+20>>2]=0}if(K[a+24>>2]<=11){F[a+20|0]=1}_e:{if(i>>>0<=11){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break _e}f=H[a+36>>2]+352|0}$e:{if(!k){break $e}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break $e}k=c&1;h=H[f+24>>2];i=H[a+172>>2];e=M[f>>3];af:{if((c|0)==1){c=0;break af}j=c&-2;c=0;n=0;while(1){l=c|1;e=+L[i+(l<<2)>>2]*M[h+(l<<3)>>3]+(+L[i+(c<<2)>>2]*M[h+(c<<3)>>3]+e);c=c+2|0;n=n+2|0;if((j|0)!=(n|0)){continue}break}}e=k?+L[i+(c<<2)>>2]*M[h+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break $e}H[f+20>>2]=0}M[g>>3]=M[g>>3]+M[d>>3];M[g+8>>3]=M[g+8>>3]+M[f>>3];Nc(a,b,g+80|0,g- -64|0,g+48|0);Nc(a,b,g+32|0,g+16|0,g)}xb=g+96|0;break o}g=xb-96|0;xb=g;bf:{cf:{df:{if(H[a+24>>2]==9){c=H[a+140>>2];H[g+88>>2]=H[a+136>>2];H[g+92>>2]=c;c=H[a+132>>2];H[g+80>>2]=H[a+128>>2];H[g+84>>2]=c;i=H[a+32>>2];ef:{if(!i){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break ef}d=H[a+36>>2]}k=I[a+176|0];if(!k){break cf}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break cf}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];if((c|0)==1){c=0;break df}l=c&-2;c=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}break df}F[a+40|0]=1;break bf}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break cf}H[d+20>>2]=0}if(K[a+24>>2]<=1){F[a+20|0]=1}ff:{if(i>>>0<=1){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break ff}f=H[a+36>>2]+32|0}gf:{if(!k){break gf}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break gf}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];hf:{if((c|0)==1){c=0;break hf}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break gf}H[f+20>>2]=0}M[g+80>>3]=M[g+80>>3]+M[d>>3];M[g+88>>3]=M[g+88>>3]+M[f>>3];c=H[g+92>>2];H[g+72>>2]=H[g+88>>2];H[g+76>>2]=c;c=H[g+84>>2];H[g+64>>2]=H[g+80>>2];H[g+68>>2]=c;if(K[a+24>>2]<=2){F[a+20|0]=1}jf:{if(i>>>0<=2){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break jf}d=H[a+36>>2]- -64|0}kf:{if(!k){break kf}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break kf}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];lf:{if((c|0)==1){c=0;break lf}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break kf}H[d+20>>2]=0}if(K[a+24>>2]<=3){F[a+20|0]=1}mf:{if(i>>>0<=3){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break mf}f=H[a+36>>2]+96|0}nf:{if(!k){break nf}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break nf}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];of:{if((c|0)==1){c=0;break of}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break nf}H[f+20>>2]=0}M[g+64>>3]=M[g+64>>3]+M[d>>3];M[g+72>>3]=M[g+72>>3]+M[f>>3];c=H[g+76>>2];H[g+56>>2]=H[g+72>>2];H[g+60>>2]=c;c=H[g+68>>2];H[g+48>>2]=H[g+64>>2];H[g+52>>2]=c;if(K[a+24>>2]<=4){F[a+20|0]=1}pf:{if(i>>>0<=4){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break pf}d=H[a+36>>2]+128|0}qf:{if(!k){break qf}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break qf}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];rf:{if((c|0)==1){c=0;break rf}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break qf}H[d+20>>2]=0}M[g+48>>3]=M[g+48>>3]+M[d>>3];c=H[g+60>>2];H[g+40>>2]=H[g+56>>2];H[g+44>>2]=c;c=H[g+52>>2];H[g+32>>2]=H[g+48>>2];H[g+36>>2]=c;if(K[a+24>>2]<=5){F[a+20|0]=1}sf:{if(i>>>0<=5){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break sf}d=H[a+36>>2]+160|0}tf:{if(!k){break tf}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break tf}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];uf:{if((c|0)==1){c=0;break uf}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break tf}H[d+20>>2]=0}M[g+32>>3]=M[g+32>>3]+M[d>>3];c=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=c;c=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=c;if(K[a+24>>2]<=6){F[a+20|0]=1}vf:{if(i>>>0<=6){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break vf}d=H[a+36>>2]+192|0}wf:{if(!k){break wf}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break wf}n=c&1;f=H[d+24>>2];j=H[a+172>>2];e=M[d>>3];xf:{if((c|0)==1){c=0;break xf}l=c&-2;c=0;h=0;while(1){m=c|1;e=+L[j+(m<<2)>>2]*M[f+(m<<3)>>3]+(+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}}e=n?+L[j+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break wf}H[d+20>>2]=0}if(K[a+24>>2]<=7){F[a+20|0]=1}yf:{if(i>>>0<=7){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;f=784992;break yf}f=H[a+36>>2]+224|0}zf:{if(!k){break zf}c=H[f+20>>2];if(!c|(c|0)!=H[a+168>>2]){break zf}l=c&1;j=H[f+24>>2];n=H[a+172>>2];e=M[f>>3];Af:{if((c|0)==1){c=0;break Af}m=c&-2;c=0;h=0;while(1){o=c|1;e=+L[n+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((m|0)!=(h|0)){continue}break}}e=l?+L[n+(c<<2)>>2]*M[j+(c<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break zf}H[f+20>>2]=0}M[g+16>>3]=M[g+16>>3]+M[d>>3];M[g+24>>3]=M[g+24>>3]+M[f>>3];c=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=c;c=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=c;if(K[a+24>>2]<=8){F[a+20|0]=1}Bf:{if(i>>>0<=8){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break Bf}d=H[a+36>>2]+256|0}Cf:{if(!k){break Cf}c=H[d+20>>2];if(!c|(c|0)!=H[a+168>>2]){break Cf}k=c&1;f=H[d+24>>2];i=H[a+172>>2];e=M[d>>3];Df:{if((c|0)==1){c=0;break Df}j=c&-2;c=0;h=0;while(1){n=c|1;e=+L[i+(n<<2)>>2]*M[f+(n<<3)>>3]+(+L[i+(c<<2)>>2]*M[f+(c<<3)>>3]+e);c=c+2|0;h=h+2|0;if((j|0)!=(h|0)){continue}break}}e=k?+L[i+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Cf}H[d+20>>2]=0}M[g>>3]=M[g>>3]+M[d>>3];c=H[a+140>>2];H[g+8>>2]=H[a+136>>2];H[g+12>>2]=c;Nc(a,b,g+80|0,g- -64|0,g+48|0);Nc(a,b,g+32|0,g+16|0,g)}xb=g+96|0;break o}g=xb-96|0;xb=g;h=11;Ef:{Ff:{if(H[a+24>>2]==11){c=H[a+36>>2];i=H[a+32>>2];n=I[a+176|0];while(1){if(h>>>0<=j>>>0){F[a+20|0]=1}Gf:{if(i>>>0<=j>>>0){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Gf}d=c+(j<<5)|0}Hf:{if(!n){break Hf}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Hf}l=H[d+24>>2];m=H[a+172>>2];e=M[d>>3];h=0;if((f|0)!=1){o=f&-2;k=0;while(1){p=h|1;e=+L[m+(p<<2)>>2]*M[l+(p<<3)>>3]+(+L[m+(h<<2)>>2]*M[l+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=f&1?+L[m+(h<<2)>>2]*M[l+(h<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Hf}H[d+20>>2]=0}f=j|1;if(f>>>0>=K[a+24>>2]){F[a+20|0]=1}If:{if(f>>>0>=i>>>0){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break If}f=c+(f<<5)|0}Jf:{if(!n){break Jf}l=H[f+20>>2];if(!l|(l|0)!=H[a+168>>2]){break Jf}m=H[f+24>>2];o=H[a+172>>2];e=M[f>>3];h=0;if((l|0)!=1){p=l&-2;k=0;while(1){r=h|1;e=+L[o+(r<<2)>>2]*M[m+(r<<3)>>3]+(+L[o+(h<<2)>>2]*M[m+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((p|0)!=(k|0)){continue}break}}e=l&1?+L[o+(h<<2)>>2]*M[m+(h<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Jf}H[f+20>>2]=0}q=q+M[f>>3];s=s+M[d>>3];if(j>>>0>7){break Ff}j=j+2|0;h=H[a+24>>2];continue}}F[a+40|0]=1;break Ef}d=H[a+140>>2];H[g+88>>2]=H[a+136>>2];H[g+92>>2]=d;d=H[a+132>>2];H[g+80>>2]=H[a+128>>2];H[g+84>>2]=d;if(!H[a+24>>2]){F[a+20|0]=1}f=c;if(!i){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;f=784992}Kf:{if(!n){break Kf}d=H[f+20>>2];if(!d|(d|0)!=H[a+168>>2]){break Kf}m=d&1;j=H[f+24>>2];l=H[a+172>>2];e=M[f>>3];Lf:{if((d|0)==1){h=0;break Lf}d=d&-2;h=0;k=0;while(1){o=h|1;e=+L[l+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((d|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Kf}H[f+20>>2]=0}if(K[a+24>>2]<=1){F[a+20|0]=1}Mf:{if(i>>>0<=1){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Mf}d=c+32|0}Nf:{if(!n){break Nf}h=H[d+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Nf}m=h&1;j=H[d+24>>2];l=H[a+172>>2];e=M[d>>3];Of:{if((h|0)==1){h=0;break Of}o=h&-2;h=0;k=0;while(1){p=h|1;e=+L[l+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Nf}H[d+20>>2]=0}M[g+80>>3]=M[g+80>>3]+M[f>>3];M[g+88>>3]=M[g+88>>3]+M[d>>3];d=H[g+92>>2];H[g+72>>2]=H[g+88>>2];H[g+76>>2]=d;d=H[g+84>>2];H[g+64>>2]=H[g+80>>2];H[g+68>>2]=d;if(K[a+24>>2]<=2){F[a+20|0]=1}Pf:{if(i>>>0<=2){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Pf}d=c- -64|0}Qf:{if(!n){break Qf}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Qf}m=f&1;j=H[d+24>>2];l=H[a+172>>2];e=M[d>>3];Rf:{if((f|0)==1){h=0;break Rf}f=f&-2;h=0;k=0;while(1){o=h|1;e=+L[l+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((f|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Qf}H[d+20>>2]=0}if(K[a+24>>2]<=3){F[a+20|0]=1}Sf:{if(i>>>0<=3){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break Sf}f=c+96|0}Tf:{if(!n){break Tf}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Tf}m=h&1;j=H[f+24>>2];l=H[a+172>>2];e=M[f>>3];Uf:{if((h|0)==1){h=0;break Uf}o=h&-2;h=0;k=0;while(1){p=h|1;e=+L[l+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Tf}H[f+20>>2]=0}M[g+64>>3]=M[g+64>>3]+M[d>>3];M[g+72>>3]=M[g+72>>3]+M[f>>3];d=H[g+76>>2];H[g+56>>2]=H[g+72>>2];H[g+60>>2]=d;d=H[g+68>>2];H[g+48>>2]=H[g+64>>2];H[g+52>>2]=d;if(K[a+24>>2]<=4){F[a+20|0]=1}Vf:{if(i>>>0<=4){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break Vf}d=c+128|0}Wf:{if(!n){break Wf}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break Wf}m=f&1;j=H[d+24>>2];l=H[a+172>>2];e=M[d>>3];Xf:{if((f|0)==1){h=0;break Xf}f=f&-2;h=0;k=0;while(1){o=h|1;e=+L[l+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((f|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break Wf}H[d+20>>2]=0}if(K[a+24>>2]<=5){F[a+20|0]=1}Yf:{if(i>>>0<=5){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break Yf}f=c+160|0}Zf:{if(!n){break Zf}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break Zf}m=h&1;j=H[f+24>>2];l=H[a+172>>2];e=M[f>>3];_f:{if((h|0)==1){h=0;break _f}o=h&-2;h=0;k=0;while(1){p=h|1;e=+L[l+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break Zf}H[f+20>>2]=0}M[g+48>>3]=M[g+48>>3]+M[d>>3];M[g+56>>3]=M[g+56>>3]+M[f>>3];d=H[g+60>>2];H[g+40>>2]=H[g+56>>2];H[g+44>>2]=d;d=H[g+52>>2];H[g+32>>2]=H[g+48>>2];H[g+36>>2]=d;if(K[a+24>>2]<=6){F[a+20|0]=1}$f:{if(i>>>0<=6){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break $f}d=c+192|0}ag:{if(!n){break ag}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break ag}m=f&1;j=H[d+24>>2];l=H[a+172>>2];e=M[d>>3];bg:{if((f|0)==1){h=0;break bg}f=f&-2;h=0;k=0;while(1){o=h|1;e=+L[l+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((f|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break ag}H[d+20>>2]=0}if(K[a+24>>2]<=7){F[a+20|0]=1}cg:{if(i>>>0<=7){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break cg}f=c+224|0}dg:{if(!n){break dg}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break dg}m=h&1;j=H[f+24>>2];l=H[a+172>>2];e=M[f>>3];eg:{if((h|0)==1){h=0;break eg}o=h&-2;h=0;k=0;while(1){p=h|1;e=+L[l+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break dg}H[f+20>>2]=0}M[g+32>>3]=M[g+32>>3]+M[d>>3];M[g+40>>3]=M[g+40>>3]+M[f>>3];d=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=d;d=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=d;if(K[a+24>>2]<=8){F[a+20|0]=1}fg:{if(i>>>0<=8){d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break fg}d=c+256|0}gg:{if(!n){break gg}f=H[d+20>>2];if(!f|(f|0)!=H[a+168>>2]){break gg}m=f&1;j=H[d+24>>2];l=H[a+172>>2];e=M[d>>3];hg:{if((f|0)==1){h=0;break hg}f=f&-2;h=0;k=0;while(1){o=h|1;e=+L[l+(o<<2)>>2]*M[j+(o<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((f|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break gg}H[d+20>>2]=0}if(K[a+24>>2]<=9){F[a+20|0]=1}ig:{if(i>>>0<=9){f=H[40915];H[196254]=H[40914];H[196255]=f;f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break ig}f=c+288|0}jg:{if(!n){break jg}h=H[f+20>>2];if(!h|(h|0)!=H[a+168>>2]){break jg}m=h&1;j=H[f+24>>2];l=H[a+172>>2];e=M[f>>3];kg:{if((h|0)==1){h=0;break kg}o=h&-2;h=0;k=0;while(1){p=h|1;e=+L[l+(p<<2)>>2]*M[j+(p<<3)>>3]+(+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((o|0)!=(k|0)){continue}break}}e=m?+L[l+(h<<2)>>2]*M[j+(h<<3)>>3]+e:e;H[f+8>>2]=0;H[f+12>>2]=0;M[f>>3]=e;if(H[f+16>>2]<0){break jg}H[f+20>>2]=0}M[g+16>>3]=M[g+16>>3]+M[d>>3];M[g+24>>3]=M[g+24>>3]+M[f>>3];d=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=d;d=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=d;lg:{mg:{ng:{if(P(s)>P(q)){if(K[a+24>>2]<=10){F[a+20|0]=1}og:{if(i>>>0<=10){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break og}c=c+320|0}if(!n){break mg}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break mg}j=d&1;f=H[c+24>>2];i=H[a+172>>2];e=M[c>>3];if((d|0)==1){h=0;break ng}d=d&-2;h=0;k=0;while(1){n=h|1;e=+L[i+(n<<2)>>2]*M[f+(n<<3)>>3]+(+L[i+(h<<2)>>2]*M[f+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((d|0)!=(k|0)){continue}break}break ng}d=H[a+132>>2];H[g>>2]=H[a+128>>2];H[g+4>>2]=d;if(K[a+24>>2]<=10){F[a+20|0]=1}pg:{if(i>>>0<=10){c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break pg}c=c+320|0}qg:{if(!n){break qg}d=H[c+20>>2];if(!d|(d|0)!=H[a+168>>2]){break qg}j=d&1;f=H[c+24>>2];i=H[a+172>>2];e=M[c>>3];rg:{if((d|0)==1){h=0;break rg}d=d&-2;h=0;k=0;while(1){n=h|1;e=+L[i+(n<<2)>>2]*M[f+(n<<3)>>3]+(+L[i+(h<<2)>>2]*M[f+(h<<3)>>3]+e);h=h+2|0;k=k+2|0;if((d|0)!=(k|0)){continue}break}}e=j?+L[i+(h<<2)>>2]*M[f+(h<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break qg}H[c+20>>2]=0}M[g+8>>3]=M[g+8>>3]+M[c>>3];break lg}e=j?+L[i+(h<<2)>>2]*M[f+(h<<3)>>3]+e:e;H[c+8>>2]=0;H[c+12>>2]=0;M[c>>3]=e;if(H[c+16>>2]<0){break mg}H[c+20>>2]=0}M[g>>3]=M[g>>3]+M[c>>3];c=H[a+140>>2];H[g+8>>2]=H[a+136>>2];H[g+12>>2]=c}Nc(a,b,g+80|0,g- -64|0,g+48|0);Nc(a,b,g+32|0,g+16|0,g)}xb=g+96|0;break o}uG(f,a);break m}e=g?+L[h+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break s}H[d+20>>2]=0}e=M[d>>3];F[b|0]=0;M[a+136>>3]=q+e;M[a+128>>3]=s;break p}e=g?+L[h+(c<<2)>>2]*M[f+(c<<3)>>3]+e:e;H[d+8>>2]=0;H[d+12>>2]=0;M[d>>3]=e;if(H[d+16>>2]<0){break q}H[d+20>>2]=0}e=M[d>>3];F[b|0]=0;M[a+136>>3]=q;M[a+128>>3]=s+e}if(!I[a+73|0]){if(!I[a+74|0]){F[a+74|0]=1;c=H[a+80>>2]+(H[a+24>>2]>>>1|0)|0;H[a+80>>2]=c;H[a+84>>2]=(c+H[a+76>>2]|0)+7>>>3}F[a+73|0]=1}}H[a+24>>2]=0;break m}F[a+16|0]=1;H[a+12>>2]=c}}c=0;sg:{if(I[a+88|0]|H[a+96>>2]<0|(I[a+20|0]|(I[a+40|0]|I[a+16|0]))){break sg}if(H[a+28>>2]<0){break sg}c=1;if(!I[a+72|0]){continue}}break}return c|0}function yha(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,u=0,v=0,w=0,x=0,y=0,z=O(0),A=0,B=0,C=0,D=0,E=0,M=0,Q=0,R=0,S=0,U=0,V=0,W=0,Y=0,Z=0,fa=0,ka=0,na=O(0),qa=0,ta=0,va=0,xa=0,za=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0;if(!b){b=I[245401]|I[245402]<<8;F[a+88|0]=b;F[a+89|0]=b>>>8;c=I[245397]|I[245398]<<8|(I[245399]<<16|I[245400]<<24);b=I[245393]|I[245394]<<8|(I[245395]<<16|I[245396]<<24);F[a+80|0]=b;F[a+81|0]=b>>>8;F[a+82|0]=b>>>16;F[a+83|0]=b>>>24;F[a+84|0]=c;F[a+85|0]=c>>>8;F[a+86|0]=c>>>16;F[a+87|0]=c>>>24;c=I[245389]|I[245390]<<8|(I[245391]<<16|I[245392]<<24);b=I[245385]|I[245386]<<8|(I[245387]<<16|I[245388]<<24);F[a+72|0]=b;F[a+73|0]=b>>>8;F[a+74|0]=b>>>16;F[a+75|0]=b>>>24;F[a+76|0]=c;F[a+77|0]=c>>>8;F[a+78|0]=c>>>16;F[a+79|0]=c>>>24;return 0}Y=zb[H[H[b>>2]+24>>2]](b)|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(c>>>0<=1){h=Qb(940);H[197455]=0;q=Bd(h,1);d=H[197455];H[197455]=0;if((d|0)==1){break h}H[h>>2]=247588;yg(q,a);n=xb-96|0;xb=n;r:{s:{if(!b){break s}m=zb[H[H[b>>2]+24>>2]](b)|0;d=H[H[b>>2]+12>>2];H[197455]=0;e=ma(d|0,b|0,n+80|0,14,1,0,0)|0;d=H[197455];H[197455]=0;t:{u:{if((d|0)==1){break u}v:{if(!e){d=oa(4)|0;H[d>>2]=245654;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break v}break u}H[197455]=0;e=Bf(h,J[n+82>>1]|J[n+84>>1]<<16);d=H[197455];H[197455]=0;if((d|0)==1){break u}G[n+82>>1]=e;G[n+84>>1]=e>>>16;H[197455]=0;e=Bf(h,J[n+90>>1]|J[n+92>>1]<<16);d=H[197455];H[197455]=0;if((d|0)==1){break u}G[n+90>>1]=e;G[n+92>>1]=e>>>16;H[197455]=0;f=G[n+80>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break u}if(((e?f:f<<8|(f&65280)>>>8)&65535)!=19778){G[n+90>>1]=0;G[n+92>>1]=0;d=H[H[b>>2]+20>>2];H[197455]=0;ca(d|0,b|0,m|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break u}}H[197455]=0;e=ca(1053,h|0,b|0,n+40|0)|0;d=H[197455];H[197455]=0;w:{if((d|0)!=1){if(e){break w}d=oa(4)|0;H[d>>2]=245797;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break v}}d=ha(782408)|0;break t}v=H[n+48>>2];i=v;if((i|0)<0){i=0-v|0;H[n+48>>2]=i}d=H[n+44>>2];x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{if(H[h+332>>2]==-1){H[h+68>>2]=1;H[h+20>>2]=i;H[h+16>>2]=d;i=246250;break J}j=J[n+54>>1];f=H[n+40>>2];k=H[n+56>>2];H[197455]=0;e=pa(978,h|0,d|0,i|0,j|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break H}if(!e){i=246501;break J}H[197455]=0;D=T(+H[n+64>>2]*254/1e4+.5);K:{if(P(D)<2147483648){e=~~D;break K}e=-2147483648}Yf(h,e);d=H[197455];H[197455]=0;if((d|0)==1){break H}H[197455]=0;D=T(+H[n+68>>2]*254/1e4+.5);L:{if(P(D)<2147483648){e=~~D;break L}e=-2147483648}Sh(h,e);d=H[197455];H[197455]=0;if((d|0)==1){break H}i=246620;if(!H[h+332>>2]){break I}}d=oa(4)|0;H[d>>2]=i;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)==1){break H}break v}H[197455]=0;g=H[h+4>>2];e=H[h+44>>2];d=H[197455];H[197455]=0;if((d|0)==1){break x}i=g?e?g+40|0:0:0;M:{if(!i){break M}e=H[n+72>>2];d=J[n+54>>1];g=e?e:d>>>0<9?1<>2];d=H[197455];H[197455]=0;if((d|0)==1){break x}H[197455]=0;e=H[h+8>>2];d=H[197455];H[197455]=0;if((d|0)==1){break x}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,i|0,N(g,3)|0,1,f|0,e|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}f=H[h+44>>2];N:{if(!f){d=J[h+26>>1];if(d>>>0>8){break M}f=1<>>0>1;f=d;if(e){continue}break}break M}H[197455]=0;f=H[h+4>>2];d=H[197455];H[197455]=0;if((d|0)==1){break x}H[197455]=0;e=H[h+8>>2];d=H[197455];H[197455]=0;if((d|0)==1){break x}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,i|0,g<<2,1,f|0,e|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}e=H[h+44>>2];if(!e){break M}f=0;if(e-1>>>0>=7){d=e&-8;while(1){g=f<<2;F[(g+i|0)+3|0]=0;F[(i+(g|4)|0)+3|0]=0;F[(i+(g|8)|0)+3|0]=0;F[(i+(g|12)|0)+3|0]=0;F[(i+(g|16)|0)+3|0]=0;F[(i+(g|20)|0)+3|0]=0;F[(i+(g|24)|0)+3|0]=0;F[(i+(g|28)|0)+3|0]=0;f=f+8|0;r=r+8|0;if((d|0)!=(r|0)){continue}break}}d=e&7;if(!d){break M}while(1){F[(i+(f<<2)|0)+3|0]=0;f=f+1|0;x=x+1|0;if((d|0)!=(x|0)){continue}break}}i=246620;O:{if(H[h+332>>2]){break O}P:{Q:{R:{S:{switch(j-1|0){case 31:T:{if((k|0)==3){d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+28|0,12,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}if((H[n+28>>2]&H[n+32>>2]&H[n+36>>2])!=-1){break T}}H[n+28>>2]=16711680;H[n+32>>2]=65280;H[n+36>>2]=255}e=J[n+90>>1]|J[n+92>>1]<<16;if(e){d=H[H[b>>2]+20>>2];H[197455]=0;ca(d|0,b|0,e+m|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}}i=247034;U:{switch(k|0){case 0:case 3:break U;default:break O}}e=N(H[h+20>>2],H[h+16>>2])<<2;r=Tb(e);V:{if(r){d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,r|0,e|0,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break V}W:{if(k){break W}H[197455]=0;aa(1020,h|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break V}H[197455]=0;e=H[h+928>>2];d=H[197455];H[197455]=0;if((d|0)==1){break V}if(!e){break W}X:{e=H[h+20>>2];Y:{if((e|0)<=0){break Y}g=0;k=H[h+16>>2];if((k|0)<=0){break Y}j=r+3|0;f=0;while(1){if((k|0)>0){e=j+(N(g,k)<<2)|0;d=0;while(1){m=I[e|0];H[197455]=0;te(h,d,g,m);i=H[197455];H[197455]=0;if((i|0)==1){break X}e=e+4|0;f=(m|0)!=0|f;d=d+1|0;k=H[h+16>>2];if((d|0)<(k|0)){continue}break}e=H[h+20>>2]}g=g+1|0;if((g|0)<(e|0)){continue}break}if(f&1){break W}}H[197455]=0;sD(h);d=H[197455];H[197455]=0;if((d|0)!=1){break W}d=ha(782408)|0;break t}d=ha(782408)|0;break t}H[197455]=0;pr(h,r,H[n+28>>2],H[n+32>>2],H[n+36>>2],32);d=H[197455];H[197455]=0;if((d|0)==1){break V}Kb(r);break z}d=oa(4)|0;H[d>>2]=246630;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break v}}d=ha(782408)|0;break t;case 23:e=J[n+90>>1]|J[n+92>>1]<<16;if(e){d=H[H[b>>2]+20>>2];H[197455]=0;ca(d|0,b|0,e+m|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}}i=247034;if(k){break O}d=H[h+32>>2];k=H[h+56>>2];H[197455]=0;e=H[h+4>>2];f=H[197455];H[197455]=0;if((f|0)==1){break x}H[197455]=0;i=H[h+8>>2];f=H[197455];H[197455]=0;if((f|0)!=1){break R}break x;case 15:Z:{if((k|0)==3){d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+16|0,12,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break Z}break y}H[n+24>>2]=31;H[n+16>>2]=31744;H[n+20>>2]=992}e=J[n+90>>1]|J[n+92>>1]<<16;if(e){d=H[H[b>>2]+20>>2];H[197455]=0;ca(d|0,b|0,e+m|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break y}}j=H[h+56>>2];i=H[h+20>>2];g=H[h+16>>2];H[197455]=0;f=H[h+4>>2];d=H[197455];H[197455]=0;if((d|0)==1){break y}H[197455]=0;e=H[h+8>>2];d=H[197455];H[197455]=0;if((d|0)==1){break y}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,j|0,N(i,(g+1|0)/2|0)<<2,1,f|0,e|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break y}d=H[h+56>>2];H[197455]=0;pr(h,d,H[n+16>>2],H[n+20>>2],H[n+24>>2],16);d=H[197455];H[197455]=0;if((d|0)==1){break y}break z;case 0:case 3:case 7:break S;default:break z}}d=J[n+90>>1]|J[n+92>>1]<<16;_:{if(!d){break _}e=d+m|0;if(e>>>0>2]){break _}d=H[H[b>>2]+20>>2];H[197455]=0;ca(d|0,b|0,e|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}}i=247239;$:{switch(k|0){case 1:break P;case 2:break Q;case 0:break $;default:break O}}d=H[h+32>>2];k=H[h+56>>2];H[197455]=0;e=H[h+4>>2];f=H[197455];H[197455]=0;if((f|0)==1){break x}H[197455]=0;i=H[h+8>>2];f=H[197455];H[197455]=0;if((f|0)==1){break x}}f=H[H[b>>2]+12>>2];H[197455]=0;ma(f|0,b|0,k|0,d|0,1,e|0,i|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}break z}F[n+16|0]=0;H[197455]=0;F[n+15|0]=0;g=Xc(h,0);d=H[197455];H[197455]=0;if((d|0)==1){break A}k=0;f=0;e=0;while(1){d=H[H[b>>2]+12>>2];H[197455]=0;i=ma(d|0,b|0,n+16|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break B}if(!i){break z}if(!I[n+16|0]){d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+16|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break B}aa:{switch(I[n+16|0]){case 0:e=e+1|0;k=0;f=0;continue;case 2:d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+14|0,1,1,0,0)|0;d=H[197455];H[197455]=0;ba:{if((d|0)==1){break ba}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+13|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ba}e=I[n+13|0]+e|0;f=(I[n+14|0]>>>1|0)+f|0;continue}d=ha(782408)|0;break t;case 1:break z;default:break aa}}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+15|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break B}ca:{if((e|0)<0){break ca}H[197455]=0;i=H[h+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break E}if((e|0)>(i|0)){break ca}H[197455]=0;i=Xc(h,0);d=H[197455];H[197455]=0;if((d|0)==1){break E}H[197455]=0;g=H[h+52>>2];d=H[197455];H[197455]=0;if((d|0)==1){break E}g=i+N(e,g)|0}if(!I[n+16|0]){continue}i=0;while(1){da:{ea:{m=f+g|0;fa:{if(m>>>0>=H[h+56>>2]+H[h+32>>2]>>>0){if(i&1){break fa}break da}d=i&1;j=I[n+15|0];if(k){F[m|0]=I[m|0]|(d?j&15:(j&240)>>>4|0);f=f+1|0;if(d){break fa}break da}if(!d){break ea}F[m|0]=j<<4}if((I[n+16|0]-1|0)==(i|0)){break da}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+15|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break da}d=ha(782408)|0;break t}F[m|0]=j&240}k=!k;i=i+1|0;d=I[n+16|0];if(i>>>0>>0){continue}break}if(!(d+1&2)){continue}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+15|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}d=ha(782408)|0;break t}ga:{if((e|0)<0){break ga}H[197455]=0;i=H[h+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break G}if((e|0)>(i|0)){break ga}H[197455]=0;i=Xc(h,0);d=H[197455];H[197455]=0;if((d|0)==1){break G}H[197455]=0;g=H[h+52>>2];d=H[197455];H[197455]=0;if((d|0)==1){break G}g=i+N(e,g)|0}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+15|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break G}if(!I[n+16|0]){continue}i=0;while(1){m=f+g|0;ha:{if(m>>>0>=H[h+56>>2]+H[h+32>>2]>>>0){break ha}d=i&1;j=I[n+15|0];if(k){F[m|0]=I[m|0]|(d?j&15:(j&240)>>>4|0);f=f+1|0;break ha}if(d){F[m|0]=j<<4;break ha}F[m|0]=j&240}k=!k;i=i+1|0;if(i>>>0>2]+12>>2];H[197455]=0;g=ma(d|0,b|0,n+16|0,1,1,0,0)|0;d=H[197455];H[197455]=0;ja:{ka:{la:{ma:{na:{if((d|0)!=1){if(!g){break z}if(I[n+16|0]){break ja}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+16|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break D}i=1;d=0;switch(I[n+16|0]){case 0:break ma;case 2:break na;case 1:break z;default:break ka}}d=ha(782408)|0;break t}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+14|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break la}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+13|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break la}d=I[n+14|0]+e|0;i=I[n+13|0]}k=i+k|0;e=d;continue}d=ha(782408)|0;break t}H[197455]=0;g=H[h+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break D}if((g|0)>=(k|0)){H[197455]=0;g=Xc(h,0);d=H[197455];H[197455]=0;if((d|0)==1){break D}H[197455]=0;f=H[h+52>>2];d=H[197455];H[197455]=0;if((d|0)==1){break D}f=g+N(f,k)|0}H[197455]=0;j=I[n+16|0];i=H[h+4>>2];d=H[197455];H[197455]=0;if((d|0)==1){break D}H[197455]=0;g=H[h+8>>2];d=H[197455];H[197455]=0;if((d|0)==1){break D}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,e+f|0,j|0,1,i|0,g|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break D}d=I[n+16|0];if(d&1){d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+15|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break D}d=I[n+16|0]}e=(d&255)+e|0;continue}H[197455]=0;g=H[h+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break F}if((g|0)>=(k|0)){H[197455]=0;g=Xc(h,0);d=H[197455];H[197455]=0;if((d|0)==1){break F}H[197455]=0;f=H[h+52>>2];d=H[197455];H[197455]=0;if((d|0)==1){break F}f=g+N(f,k)|0}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,n+15|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break F}if(!I[n+16|0]){continue}i=0;while(1){d=e+f|0;if(d>>>0>=H[h+56>>2]+H[h+32>>2]>>>0){continue ia}F[d|0]=I[n+15|0];e=e+1|0;i=i+1|0;if(i>>>0>2]=i;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break v}break x}d=ha(782408)|0;break t}d=ha(782408)|0;break t}d=ha(782408)|0;break t}d=ha(782408)|0;break t}d=ha(782408)|0;break t}d=ha(782408)|0;break t}d=ha(782408)|0;break t}d=ha(782408)|0;break t}if((v|0)<0){H[197455]=0;ca(1058,h|0,0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}}e=1;break s}d=ha(782408)|0;break t}d=ha(782408)|0;break t}X()}d=ha(782408)|0}if((_()|0)!=(ya(782408)|0)){break a}d=sa(d|0)|0;if(I[d|0]){Ld(h+72|0,d,255)}e=H[h+332>>2]==-1&H[h+68>>2]==1;ra()}xb=n+96|0;break r}if(!e){break q}break d}oa:{switch(c-3|0){case 2:break o;case 0:break p;default:break oa}}if(!(c&-3)){break n}if(!(c&-5)){break m}pa:{switch(c-6|0){case 1:break k;case 0:break l;default:break pa}}if(!(c&-9)){break j}if((c|0)!=9){break f}break i}he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](h);if(c){break e}}h=Qb(964);H[197455]=0;q=lr(h);d=H[197455];H[197455]=0;if((d|0)==1){break h}yg(q,a);u=xb-848|0;xb=u;k=Tb(40);H[k>>2]=0;H[197455]=0;m=aa(899,516)|0;f=H[197455];H[197455]=0;qa:{ra:{sa:{ta:{ua:{if((f|0)==1){break ua}g=4;j=-1;va:{if(!f){break va}e=H[197456];if(!e){break va}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){break ta}H[197455]=0;da(956,m|0,q+460|0)|0;f=H[197455];H[197455]=0;j=-1;wa:{if(!f){break wa}e=H[197456];if(!e){break wa}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){break ta}if((f|0)==1){d=$()|0;_()|0;H[197455]=0;Kb(m);f=H[197455];H[197455]=0;j=-1;xa:{if(!f){break xa}e=H[197456];if(!e){break xa}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)!=1){break sa}break ta}H[q+940>>2]=m;d=H[H[b>>2]+24>>2];H[197455]=0;m=aa(d|0,b|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ua}j=-1;ya:{if(!f){break ya}e=H[197456];if(!e){break ya}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){break ta}d=H[q+940>>2];H[197455]=0;ca(958,d|0,b|0,1)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ua}j=-1;za:{if(!f){break za}e=H[197456];if(!e){break za}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){break ta}d=H[H[b>>2]+20>>2];H[197455]=0;ca(d|0,b|0,m|0,0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ua}j=-1;Aa:{if(!f){break Aa}e=H[197456];if(!e){break Aa}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){break ta}m=I[H[H[q+940>>2]>>2]+460|0];H[197455]=0;Xc(q,0);f=H[197455];H[197455]=0;if((f|0)==1){break ua}j=-1;Ba:{if(!f){break Ba}e=H[197456];if(!e){break Ba}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}Q=!m;e=_()|0;if((j|0)==1){break ta}H[197455]=0;H[u+352>>2]=q+72;m=Hj(u- -64|0);f=H[197455];H[197455]=0;if((f|0)==1){break ua}j=-1;Ca:{if(!f){break Ca}e=H[197456];if(!e){break Ca}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}o=q+52|0;e=_()|0;if((j|0)==1){break ta}H[u+64>>2]=961;H[u+360>>2]=m;H[u+44>>2]=962;H[u+40>>2]=963;H[u+36>>2]=964;H[u+32>>2]=965;H[u+28>>2]=966;H[197455]=0;H[u+16>>2]=967;H[u+12>>2]=968;H[u+8>>2]=969;H[u+48>>2]=b;H[u+20>>2]=0;H[u+24>>2]=0;d=aa(929,4096)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ua}j=-1;Da:{if(!f){break Da}e=H[197456];if(!e){break Da}j=Sb(H[f>>2],k,4);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){break ta}H[u+52>>2]=d;m=u+52|0;e=0;t=u+196|0;k=sd(t,1,k,4);g=_()|0;break ta}a=$()|0;Kb(k);break b}Ea:while(1){Fa:{d=e;Ga:{if(d){H[197455]=0;ia(970,u+360|0);f=H[197455];H[197455]=0;j=-1;Ha:{if(!f){break Ha}e=H[197456];if(!e){break Ha}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)!=1){break Ga}break Fa}H[197455]=0;ga(971,u+360|0,80,488);f=H[197455];H[197455]=0;j=-1;Ia:{if(!f){break Ia}e=H[197456];if(!e){break Ia}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[197455]=0;H[u+384>>2]=u+20;da(972,u+360|0,1)|0;f=H[197455];H[197455]=0;j=-1;Ja:{if(!f){break Ja}e=H[197456];if(!e){break Ja}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[197455]=0;v=Ug(q,3);f=H[197455];H[197455]=0;j=-1;Ka:{if(!f){break Ka}e=H[197456];if(!e){break Ka}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}if(v&128){H[u+404>>2]=1}if(v&256){H[197455]=0;H[u+444>>2]=1;z=O(L[q+344>>2]+O(.5));La:{if(z=O(0)){i=~~z>>>0;break La}i=0}f=H[197455];H[197455]=0;j=-1;Ma:{if(!f){break Ma}e=H[197456];if(!e){break Ma}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[u+456>>2]=i}if(v&512){H[u+448>>2]=H[q+960>>2]}if(v&1024){H[u+452>>2]=0}if(v&2048){H[u+436>>2]=0}H[197455]=0;H[u+408>>2]=1;i=I[q+348|0];f=H[197455];H[197455]=0;j=-1;Na:{if(!f){break Na}e=H[197456];if(!e){break Na}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[u+412>>2]=i;j=-1;Oa:{if(H[q+332>>2]==-1){H[197455]=0;ia(976,u+360|0);f=H[197455];H[197455]=0;Pa:{if(!f){break Pa}e=H[197456];if(!e){break Pa}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[q+16>>2]=H[u+472>>2];e=H[u+476>>2];H[q+68>>2]=3;H[q+20>>2]=e;break Oa}H[197455]=0;aa(977,u+360|0)|0;f=H[197455];H[197455]=0;Qa:{if(!f){break Qa}e=H[197456];if(!e){break Qa}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[197455]=0;pa(978,q|0,H[u+472>>2],H[u+476>>2],H[u+484>>2]<<3,3)|0;f=H[197455];H[197455]=0;j=-1;Ra:{if(!f){break Ra}e=H[197456];if(!e){break Ra}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}Sa:{if(!H[q+4>>2]){break Sa}Ta:{Ua:{Va:{if(!Q){na=L[q+640>>2];Wa:{if(na==O(0)){break Wa}z=L[q+648>>2];if(z==O(0)){break Wa}H[197455]=0;z=O(na/z);Xa:{if(O(P(z))>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}}na=L[q+644>>2];if(na==O(0)){break Ta}z=L[q+648>>2];if(z==O(0)){break Ta}z=O(na/z);if(!(O(P(z))>1]|!J[u+652>>1]){break Ta}H[197455]=0;i=H[q+364>>2];f=H[197455];H[197455]=0;j=-1;_a:{if(!f){break _a}e=H[197456];if(!e){break _a}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}z=O(O(O(J[u+654>>1])/O(J[u+652>>1]))*O(i|0));if(!(O(P(z))>1]*2.54+.5);$a:{if(P(D)<2147483648){e=~~D;break $a}e=-2147483648}Yf(q,e);f=H[197455];H[197455]=0;j=-1;ab:{if(!f){break ab}e=H[197456];if(!e){break ab}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}D=T(+J[u+654>>1]*2.54+.5);if(!(P(D)<2147483648)){break Va}e=~~D;break Ua;default:break Za}}H[197455]=0;Yf(q,J[u+652>>1]);f=H[197455];H[197455]=0;j=-1;bb:{if(!f){break bb}e=H[197456];if(!e){break bb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}e=J[u+654>>1];break Ua}e=-2147483648}H[197455]=0;Sh(q,e);f=H[197455];H[197455]=0;j=-1;cb:{if(!f){break cb}e=H[197456];if(!e){break cb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}}db:{if(H[u+404>>2]==1){H[197455]=0;Jj(q);f=H[197455];H[197455]=0;j=-1;eb:{if(!f){break eb}e=H[197456];if(!e){break eb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}e=256;if((f|0)==1){break Fa}break db}if(!H[u+444>>2]){e=0;break db}e=H[u+496>>2];i=H[e+8>>2];f=H[e+4>>2];e=H[e>>2];H[197455]=0;gr(q,H[u+492>>2],e,f,i);f=H[197455];H[197455]=0;j=-1;fb:{if(!f){break fb}e=H[197456];if(!e){break fb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}e=H[u+492>>2]}H[q+44>>2]=e;e=H[H[u+364>>2]+8>>2];H[197455]=0;w=N(H[u+484>>2],H[u+472>>2]);B=la(e|0,u+360|0,1,w|0,1)|0;f=H[197455];H[197455]=0;j=-1;gb:{if(!f){break gb}e=H[197456];if(!e){break gb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[197455]=0;n=H[q+20>>2];f=H[197455];H[197455]=0;j=-1;hb:{if(!f){break hb}e=H[197456];if(!e){break hb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[197455]=0;r=Xc(q,0);f=H[197455];H[197455]=0;j=-1;ib:{if(!f){break ib}e=H[197456];if(!e){break ib}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[197455]=0;v=H[q+52>>2];f=H[197455];H[197455]=0;j=-1;jb:{if(!f){break jb}e=H[197456];if(!e){break jb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}H[197455]=0;i=H[q+20>>2];f=H[197455];H[197455]=0;j=-1;kb:{if(!f){break kb}e=H[197456];if(!e){break kb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}lb:{if(K[u+500>>2]>=K[u+476>>2]){break lb}x=n-1|0;r=r+N(v,i-1|0)|0;if((w|0)<=0){while(1){if(H[q+332>>2]){break Sa}H[197455]=0;ca(986,u+360|0,B|0,1)|0;f=H[197455];H[197455]=0;j=-1;mb:{if(!f){break mb}e=H[197456];if(!e){break mb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue Ea}nb:{if((f|0)==1){break nb}ob:{if(H[u+444>>2]?0:H[u+396>>2]==4){break ob}i=H[B>>2];H[197455]=0;j=H[q+52>>2];f=H[197455];H[197455]=0;s=-1;pb:{if(!f){break pb}e=H[197456];if(!e){break pb}s=Sb(H[f>>2],k,g);if(!s){break ra}ja(e|0)}e=_()|0;if((s|0)==1){continue Ea}if((f|0)==1){break nb}if(!r|!i){break ob}e=(w|0)<0?j:(j|0)<(w|0)?j:w;if((e|0)<=0){break ob}Ob(r,i,e)}if((x|0)>0){H[197455]=0;i=H[q+52>>2];f=H[197455];H[197455]=0;j=-1;qb:{if(!f){break qb}e=H[197456];if(!e){break qb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue Ea}if((f|0)==1){break nb}r=r-i|0}x=x-1|0;if(K[u+500>>2]>2]){continue}break lb}break}break Fa}while(1){if(H[q+332>>2]){break Sa}H[197455]=0;ca(986,u+360|0,B|0,1)|0;f=H[197455];H[197455]=0;j=-1;rb:{if(!f){break rb}e=H[197456];if(!e){break rb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue Ea}if((f|0)==1){break Fa}v=H[B>>2];sb:{if(!(H[u+444>>2]|H[u+396>>2]!=4)){f=0;e=0;if(H[o>>2]<=0){break sb}while(1){j=e+r|0;i=I[v+(f|3)|0];F[j|0]=(N(i,I[v+(f|2)|0])>>>0)/255;F[j+1|0]=(N(i,I[v+(f|1)|0])>>>0)/255;F[j+2|0]=(N(i,I[f+v|0])>>>0)/255;e=e+3|0;if((e|0)>=H[o>>2]){break sb}f=f+4|0;if((w|0)>(f|0)){continue}break}break sb}H[197455]=0;i=H[q+52>>2];f=H[197455];H[197455]=0;s=-1;tb:{if(!f){break tb}e=H[197456];if(!e){break tb}s=Sb(H[f>>2],k,g);if(!s){break ra}ja(e|0)}e=_()|0;if((s|0)==1){continue Ea}if((f|0)==1){break Fa}if(!r|!v){break sb}e=(w|0)<0?i:(i|0)<(w|0)?i:w;if((e|0)<=0){break sb}Ob(r,v,e)}if((x|0)>0){H[197455]=0;i=H[q+52>>2];f=H[197455];H[197455]=0;j=-1;ub:{if(!f){break ub}e=H[197456];if(!e){break ub}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue Ea}if((f|0)==1){break Fa}r=r-i|0}x=x-1|0;if(K[u+500>>2]>2]){continue}break}}H[197455]=0;aa(987,u+360|0)|0;f=H[197455];H[197455]=0;j=-1;vb:{if(!f){break vb}e=H[197456];if(!e){break vb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}if(H[u+444>>2]|H[u+396>>2]!=3){break Oa}H[197455]=0;j=Xc(q,0);f=H[197455];H[197455]=0;r=-1;wb:{if(!f){break wb}e=H[197456];if(!e){break wb}r=Sb(H[f>>2],k,g);if(!r){break ra}ja(e|0)}e=_()|0;if((r|0)==1){continue}if((f|0)==1){break Fa}if(H[q+20>>2]<=0){break Oa}l=0;xb:{while(1){if(H[q+332>>2]){H[197455]=0;ba(988,t|0,1);f=H[197455];H[197455]=0;yb:{if(!f){break yb}e=H[197456];if(!e){break yb}if(!Sb(H[f>>2],k,g)){break ra}ja(e|0)}e=_()|0;continue Ea}e=H[q+16>>2];H[197455]=0;Kj(q,j,N(e,3));f=H[197455];H[197455]=0;r=-1;zb:{if(!f){break zb}e=H[197456];if(!e){break zb}r=Sb(H[f>>2],k,g);if(!r){break ra}ja(e|0)}e=_()|0;if((r|0)==1){continue Ea}if((f|0)==1){break xb}j=H[o>>2]+j|0;l=l+1|0;if((l|0)>2]){continue}break}break Oa}break Fa}H[197455]=0;ba(988,t|0,1);f=H[197455];H[197455]=0;Ab:{if(!f){break Ab}e=H[197456];if(!e){break Ab}if(!Sb(H[f>>2],k,g)){break ra}ja(e|0)}e=_()|0;continue}H[197455]=0;ia(970,u+360|0);f=H[197455];H[197455]=0;j=-1;Bb:{if(!f){break Bb}e=H[197456];if(!e){break Bb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}if((f|0)==1){break Fa}}e=H[m>>2];if(e){H[197455]=0;Kb(e);f=H[197455];H[197455]=0;j=-1;Cb:{if(!f){break Cb}e=H[197456];if(!e){break Cb}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}}Kb(k);xb=u+848|0;d=!d;break qa}d=$()|0;_()|0;e=H[m>>2];if(!e){break sa}H[197455]=0;Kb(e);f=H[197455];H[197455]=0;j=-1;Db:{if(!f){break Db}e=H[197456];if(!e){break Db}j=Sb(H[f>>2],k,g);if(!j){break ra}ja(e|0)}e=_()|0;if((j|0)==1){continue}break}}Kb(k);break a}Kb(k);ed(f,e);X()}if(d){break c}he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](q);if(c){break e}}h=Qb(944);H[197455]=0;q=Bd(h,5);d=H[197455];H[197455]=0;if((d|0)==1){break h}H[h+940>>2]=0;H[h>>2]=247632;yg(q,a);e=0;k=0;d=0;g=0;n=xb-1360|0;xb=n;Eb:{Fb:{Gb:{if(!b){break Gb}j=zb[H[H[b>>2]+24>>2]](b)|0;m=H[h+352>>2];zb[H[H[b>>2]+12>>2]](b,n+1352|0,6,1,0,0)|0;f=G[n+1354>>1];G[n+1354>>1]=I[h+458|0]?f:f<<8|(f&65280)>>>8;f=G[n+1356>>1];i=(I[h+458|0]?f:f<<8|(f&65280)>>>8)<<16>>16;G[n+1356>>1]=i;if(J[n+1352>>1]|(J[n+1354>>1]-1&65535)>>>0>1){break Gb}f=i&65535;H[h+356>>2]=f;r=Tb(f<<4);if(i){while(1){f=r+(k<<4)|0;zb[H[H[b>>2]+12>>2]](b,f,16,1,0,0)|0;e=G[f+4>>1];G[f+4>>1]=I[h+458|0]?e:e<<8|(e&65280)>>>8;e=G[f+6>>1];G[f+6>>1]=I[h+458|0]?e:e<<8|(e&65280)>>>8;Ja=f,Ka=Bf(h,H[f+8>>2]),H[Ja+8>>2]=Ka;Ja=f,Ka=Bf(h,H[f+12>>2]),H[Ja+12>>2]=Ka;e=J[n+1356>>1];k=k+1|0;if(e>>>0>k>>>0){continue}break}}k=0;Hb:{Ib:{Jb:{if(!((m|0)<0|(e|0)<=(m|0))){if(H[h+332>>2]==-1){f=r+(m<<4)|0;e=I[f|0];H[h+16>>2]=e;d=I[f+1|0];H[h+20>>2]=d;if(!(d|e)){zb[H[H[b>>2]+20>>2]](b,j+H[f+12>>2]|0,0)|0;d=Bd(n+288|0,0);H[197455]=0;H[d+332>>2]=-1;e=H[197455];H[197455]=0;if((e|0)==1){break Fb}H[197455]=0;f=ca(955,d|0,b|0,4)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Fb}if(f){H[197455]=0;ca(1066,h|0,d|0,1)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Fb}H[h+356>>2]=J[n+1356>>1]}Zf(d)}Kb(r);H[h+68>>2]=5;k=1;break Gb}f=r+(m<<4)|0;zb[H[H[b>>2]+20>>2]](b,j+H[f+12>>2]|0,0)|0;Kb:{if(!(I[f|0]|I[f+1|0])){d=Bd(n+288|0,0);H[197455]=0;f=ca(955,d|0,b|0,4)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Kb}if(f){H[197455]=0;ca(1066,h|0,d|0,1)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Kb}H[h+356>>2]=J[n+1356>>1]}H[197455]=0;H[h+68>>2]=5;e=H[197455];H[197455]=0;if((e|0)==1){break Kb}Zf(d);break Hb}e=n+1312|0;zb[H[H[b>>2]+12>>2]](b,e,40,1,0,0)|0;Rh(h,e);v=J[n+1326>>1];cl(h,I[f|0],I[f+1|0],v,5);f=n+288|0;e=H[n+1344>>2];e=e?e:H[h+44>>2];zb[H[H[b>>2]+12>>2]](b,f,(e>>>0<256?e:256)<<2,1,0,0)|0;fr(h,f,H[h+44>>2]);Lb:{if(v>>>0<=24){zb[H[H[b>>2]+12>>2]](b,H[h+56>>2],H[h+32>>2],1,0,0)|0;k=H[h+20>>2];break Lb}e=N(H[h+20>>2],H[h+16>>2])<<2;f=Tb(e);zb[H[H[b>>2]+12>>2]](b,f,e,1,0,0)|0;if(!H[h+928>>2]){rn(h)}k=H[h+20>>2];if((k|0)>0){e=f;while(1){k=Xc(h,g);i=0;if(H[h+16>>2]>0){while(1){F[k|0]=I[e|0];F[k+1|0]=I[e+1|0];F[k+2|0]=I[e+2|0];te(h,i,g,I[e+3|0]);e=e+4|0;k=k+3|0;i=i+1|0;if((i|0)>2]){continue}break}}g=g+1|0;k=H[h+20>>2];if((g|0)<(k|0)){continue}break}}Kb(f)}e=0;j=(H[h+16>>2]+31|0)/32<<2;f=N(j,k);o=Tb(f);if(!(zb[H[H[b>>2]+12>>2]](b,o,f,1,0,0)|0)){break Ib}Mb:{Nb:{if((f|0)<=0){break Nb}while(1){if(!(I[e+o|0]!=255|I[o+(e|1)|0]!=255|(I[o+(e|2)|0]!=255|I[o+(e|3)|0]!=255))){e=e+4|0;if((f|0)!=(e|0)){continue}break Nb}break}k=H[h+928>>2]!=0;if(!k){rn(h)}e=H[h+20>>2];Ob:{if((e|0)<=0){break Ob}i=H[h+16>>2];if((i|0)<=0){break Ob}g=0;while(1){if((i|0)>0){f=N(g,j);e=0;while(1){if(I[o+(f+(e>>>3|0)|0)|0]>>>((e^-1)&7)&1){te(h,e,g,0);k=1;i=H[h+16>>2]}e=e+1|0;if((i|0)>(e|0)){continue}break}e=H[h+20>>2]}g=g+1|0;if((g|0)<(e|0)){continue}break}}if(!(k&1)){qn(h);e=H[h+20>>2]}if((e|0)<=0){break Mb}f=H[h+16>>2];if((f|0)<=0){break Mb}m=0;i=0;k=0;while(1){if((f|0)>0){g=N(j,k);e=0;while(1){Pb:{if(!(I[o+(g+(e>>>3|0)|0)|0]>>>((e^-1)&7)&1)){break Pb}Ii(n+16|0,h,e,k,0);f=H[n+16>>2];if(!i){i=1;m=Wf(h,e,k);d=f;break Pb}i=((d|0)!=(f|0))+i|0}e=e+1|0;f=H[h+16>>2];if((e|0)<(f|0)){continue}break}e=H[h+20>>2]}k=k+1|0;if((k|0)<(e|0)){continue}break}if(!((i|0)!=1|v>>>0>8)){H[n+12>>2]=d;H[n+284>>2]=d;F[n+15|0]=0;H[h+340>>2]=I[n+12|0]|I[n+13|0]<<8|(I[n+14|0]<<16|I[n+15|0]<<24);H[h+336>>2]=H[h+44>>2]>(m|0)?m:0;qn(h);break Jb}if(v>>>0>8){break Ib}break Jb}H[h+336>>2]=0;e=0;i=0;k=xb-32|0;xb=k;Qb:{if(!H[h+4>>2]){break Qb}if(J[h+26>>1]<=8){if(Hi(h)){if(H[h+924>>2]){d=H[h+384>>2];g=H[h+376>>2];if((d|0)>=(g|0)){break Qb}e=H[h+372>>2];i=H[h+380>>2];if((e|0)>=(i|0)){break Qb}while(1){if((e|0)<(i|0)){while(1){f=H[h+924>>2];if(f){i=I[f+(N(H[h+16>>2],d)+e|0)|0]}else{i=1}if(i){pn(h,e,d,Ph(h,e,d)^255)}e=e+1|0;i=H[h+380>>2];if((e|0)<(i|0)){continue}break}g=H[h+376>>2]}d=d+1|0;if((g|0)<=(d|0)){break Qb}e=H[h+372>>2];continue}}if(!H[h+32>>2]){break Qb}e=H[h+56>>2];while(1){F[e|0]=I[e|0]^-1;e=e+1|0;d=d+1|0;if(d>>>0>2]){continue}break}break Qb}j=H[h+44>>2];if(!j){break Qb}d=H[h+4>>2];g=d?j?d+40|0:0:0;if((j|0)!=1){f=j&-2;while(1){d=e<<2;m=d+g|0;F[m|0]=I[m|0]^-1;F[m+1|0]=I[m+1|0]^-1;F[m+2|0]=I[m+2|0]^-1;d=g+(d|4)|0;F[d|0]=I[d|0]^-1;F[d+1|0]=I[d+1|0]^-1;F[d+2|0]=I[d+2|0]^-1;e=e+2|0;i=i+2|0;if((f|0)!=(i|0)){continue}break}}if(!(j&1)){break Qb}d=g+(e<<2)|0;F[d|0]=I[d|0]^-1;F[d+1|0]=I[d+1|0]^-1;F[d+2|0]=I[d+2|0]^-1;break Qb}Rb:{if(!H[h+924>>2]){if(!H[h+32>>2]){break Rb}e=H[h+56>>2];while(1){F[e|0]=I[e|0]^-1;e=e+1|0;d=d+1|0;if(d>>>0>2]){continue}break}break Rb}d=H[h+384>>2];g=H[h+376>>2];if((d|0)>=(g|0)){break Rb}e=H[h+372>>2];i=H[h+380>>2];if((e|0)>=(i|0)){break Rb}while(1){if((e|0)<(i|0)){while(1){f=H[h+924>>2];if(f){i=I[f+(N(H[h+16>>2],d)+e|0)|0]}else{i=1}if(i){xg(k+24|0,h,e,d,1);F[k+19|0]=I[k+27|0];F[k+18|0]=I[k+26|0]^-1;F[k+17|0]=I[k+25|0]^-1;F[k+16|0]=I[k+24|0]^-1;H[k+12>>2]=H[k+16>>2];hr(h,e,d,k+12|0,0)}e=e+1|0;i=H[h+380>>2];if((e|0)<(i|0)){continue}break}g=H[h+376>>2]}d=d+1|0;if((g|0)<=(d|0)){break Rb}e=H[h+372>>2];continue}}F[h+340|0]=I[h+340|0]^-1;F[h+341|0]=I[h+341|0]^-1;F[h+342|0]=I[h+342|0]^-1}xb=k+32|0;break Ib}if(v>>>0<9){break Jb}break Ib}break Fb}Kb(r);break Gb}i=0;Nb(n+16|0,0,256);d=H[h+20>>2];Sb:{if((d|0)<=0){break Sb}f=H[h+16>>2];if((f|0)<=0){break Sb}while(1){e=0;if((f|0)>0){while(1){Ja=Ph(h,e,i)+(n+16|0)|0,Ka=1,F[Ja|0]=Ka;e=e+1|0;f=H[h+16>>2];if((e|0)<(f|0)){continue}break}d=H[h+20>>2]}i=i+1|0;if((i|0)<(d|0)){continue}break}}m=H[h+44>>2];while(1){m=m-1|0;if((m|0)<0){break Ib}if(I[(n+16|0)+m|0]){continue}break}Tb:{if((d|0)<=0){break Tb}i=H[h+16>>2];if((i|0)<=0){break Tb}k=0;f=m&255;g=0;while(1){if((i|0)>0){d=N(g,j);e=0;while(1){if(I[o+(d+(e>>>3|0)|0)|0]>>>((e^-1)&7)&1){Tg(h,e,g,f);k=1;i=H[h+16>>2]}e=e+1|0;if((i|0)>(e|0)){continue}break}d=H[h+20>>2]}g=g+1|0;if((g|0)<(d|0)){continue}break}if(!(k&1)){break Tb}H[h+336>>2]=H[h+44>>2]>(m|0)?m:0}qn(h)}Kb(o)}Kb(r);k=1}xb=n+1360|0;break Eb}a=$()|0;_()|0;Zf(d);break b}if(k){break d}H[a+356>>2]=H[h+356>>2];he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](h);if(c){break e}}h=Qb(1088);H[197455]=0;q=aa(950,h|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break h}yg(q,a);i=0;k=0;g=0;r=0;l=0;p=xb-3472|0;xb=p;Ub:{Vb:{Wb:{Xb:{Yb:{Zb:{_b:{if(!b){break _b}zb[H[H[b>>2]+12>>2]](b,p+3456|0,13,1,0,0)|0;if(H[p+3456>>2]!=944130375){break _b}d=G[p+3464>>1];G[p+3464>>1]=I[q+458|0]?d:d<<8|(d&65280)>>>8;d=G[p+3462>>1];d=(I[q+458|0]?d:d<<8|(d&65280)>>>8)<<16>>16;G[p+3462>>1]=d;if(H[q+332>>2]==-1){H[q+16>>2]=d&65535;d=J[p+3464>>1];H[q+68>>2]=2;H[q+20>>2]=d;i=1;break _b}e=1;f=F[p+3466|0];d=1<<(f&7)+1;G[p+2666>>1]=d;G[p+2664>>1]=(f>>>4&7)+1;if((f|0)<0){zb[H[H[b>>2]+12>>2]](b,p+2664|4,N(d,3),1,0,0)|0;e=0}o=p+3456|0;t=0;n=xb-800|0;xb=n;m=zb[H[H[b>>2]+24>>2]](b)|0;Ob(n+8|0,p+2664|0,772);d=1;$b:{if((zb[H[H[b>>2]+12>>2]](b,n+7|0,1,1,0,0)|0)!=1){break $b}j=n+8|4;while(1){f=d;v=I[n+7|0];ac:{if(!(!v|d&1)){d=0;break ac}d=!v;bc:{cc:{switch((v<<24>>24)-33|0){case 0:fD(q,b);break bc;case 26:break $b;case 11:break cc;default:break ac}}zb[H[H[b>>2]+12>>2]](b,n+784|0,9,1,0,0)|0;d=G[n+784>>1];G[n+784>>1]=I[q+458|0]?d:d<<8|(d&65280)>>>8;d=G[n+786>>1];G[n+786>>1]=I[q+458|0]?d:d<<8|(d&65280)>>>8;d=G[n+788>>1];G[n+788>>1]=I[q+458|0]?d:d<<8|(d&65280)>>>8;d=G[n+790>>1];d=(I[q+458|0]?d:d<<8|(d&65280)>>>8)<<16>>16;G[n+790>>1]=d;s=I[o+6|0]|I[o+7|0]<<8;dc:{if(s){break dc}s=0;if(I[o+8|0]|I[o+9|0]<<8){break dc}s=J[n+788>>1];F[o+8|0]=d;F[o+9|0]=d>>>8;F[o+6|0]=s;F[o+7|0]=s>>>8}if(J[n+788>>1]+J[n+784>>1]>>>0>s>>>0){break bc}s=d&65535;if(s+J[n+786>>1]>>>0>(I[o+8|0]|I[o+9|0]<<8)>>>0){break bc}d=I[n+792|0];if(d&128){d=2<<(d&7);G[n+10>>1]=d;zb[H[H[b>>2]+12>>2]](b,j,N(d,3),1,0,0)|0;s=J[n+790>>1];d=I[n+792|0]}H[n>>2]=0;H[q+976>>2]=s;H[q+964>>2]=d&64;H[q+980>>2]=0;H[q+984>>2]=16384;H[q+968>>2]=0;H[q+972>>2]=8;d=zb[H[H[b>>2]+24>>2]](b)|0;eD(q,b,0,G[n+788>>1],n);ec:{if(H[n>>2]){s=0;zb[H[H[b>>2]+20>>2]](b,d,0)|0;F[n+799|0]=0;while(1){if(!(zb[H[H[b>>2]+12>>2]](b,n+799|0,1,1,0,0)|0)){break ec}d=s&255;s=I[n+799|0];if(d|(s|0)!=44){continue}break}zb[H[H[b>>2]+20>>2]](b,-1,1)|0;zb[H[H[b>>2]+24>>2]](b)|0;break ec}zb[H[H[b>>2]+20>>2]](b,(H[q+984>>2]-H[q+988>>2]|0)+1|0,1)|0}t=t+1|0}d=f}if((zb[H[H[b>>2]+12>>2]](b,n+7|0,1,1,0,0)|0)==1){continue}break}}zb[H[H[b>>2]+20>>2]](b,m,0)|0;xb=n+800|0;H[q+356>>2]=t;d=H[q+352>>2];if((d|0)<0|(d|0)>=(t|0)){break _b}x=(t|0)==1?0:e;v=p+2664|4;d=0;f=1;while(1){e=f;fc:{gc:while(1){f=e;while(1){if((zb[H[H[b>>2]+12>>2]](b,p+2663|0,1,1,0,0)|0)!=1){break fc}i=0;if(H[q+332>>2]>0){break _b}i=F[p+2663|0];e=!i;if(!((f|e)&1)){e=0;continue gc}hc:{if((i|0)!=33){i=i-44|0;if(!i){break hc}if((i|0)==15){break fc}continue gc}if(fD(q,b)){continue}break fc}zb[H[H[b>>2]+12>>2]](b,p+3440|0,9,1,0,0)|0;e=G[p+3440>>1];G[p+3440>>1]=I[q+458|0]?e:e<<8|(e&65280)>>>8;e=G[p+3442>>1];G[p+3442>>1]=I[q+458|0]?e:e<<8|(e&65280)>>>8;e=G[p+3444>>1];G[p+3444>>1]=I[q+458|0]?e:e<<8|(e&65280)>>>8;e=G[p+3446>>1];e=(I[q+458|0]?e:e<<8|(e&65280)>>>8)<<16>>16;G[p+3446>>1]=e;R=J[p+3462>>1];Q=J[p+3444>>1];if(R>>>0>1]>>>0){continue}s=J[p+3464>>1];u=e&65535;if(s>>>0>1]>>>0){continue}break}break}i=I[p+3448|0];ic:{if(!(i&128)){m=J[p+2666>>1];e=v;break ic}e=p+1888|0;m=2<<(i&7);zb[H[H[b>>2]+12>>2]](b,e,N(m,3),1,0,0)|0}i=p+800|0;dr(i);H[197455]=0;ba(1059,i|0,q|0);i=H[197455];H[197455]=0;if((i|0)==1){break Wb}t=m<<16;j=t>>16;A=(j|0)<3?1:(j|0)<17?4:8;jc:{if(!r){H[197455]=0;pa(978,p+800|0,J[p+3462>>1],J[p+3464>>1],A|0,2)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Wb}l=H[q+336>>2];d=I[q+943|0];H[197455]=0;al(p+800|0,d);d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;i=aa(899,940)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;k=pa(1069,i|0,p+800|0,1,1,1)|0;d=H[197455];H[197455]=0;if((d|0)!=1){H[197455]=0;F[k+457|0]=0;d=H[197455];H[197455]=0;if((d|0)!=1){break jc}break Wb}a=$()|0;_()|0;Kb(i);break Vb}kc:{switch((d&7)-2|0){case 0:H[197455]=0;wa(1112,p+800|0,q|0,0,0,0);d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;al(p+800|0,l&255);d=H[197455];H[197455]=0;if((d|0)==1){break Wb}break jc;case 1:H[197455]=0;wa(1112,p+800|0,q|0,0,0,0);d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;n=H[k+16>>2];d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;o=H[k+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;i=J[k+26>>1];d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;pa(978,p+800|0,n|0,o|0,i|0,2)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;w=H[p+804>>2];d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;B=H[k+4>>2];d=H[197455];H[197455]=0;if((d|0)==1){break Wb}H[197455]=0;n=H[p+832>>2];o=H[p+812>>2];i=H[p+844>>2];d=H[197455];H[197455]=0;if((d|0)==1){break Wb}Ob(w,B,(n+o|0)+(i<<2)|0);break jc;default:break kc}}H[197455]=0;wa(1112,p+800|0,q|0,1,1,1);d=H[197455];H[197455]=0;if((d|0)==1){break Wb}}H[197455]=0;pa(978,q|0,J[p+3444>>1],J[p+3446>>1],A|0,2)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Wb}lc:{if((F[p+3448|0]|F[p+3466|0])>=0){break lc}mc:{if(t>>16<=0){d=0;break mc}i=0;if((m&65535)!=1){B=j&-2;m=0;while(1){n=p+544|0;w=e+N(i,3)|0;F[n+i|0]=I[w|0];o=p+288|0;F[o+i|0]=I[w+1|0];d=p+32|0;F[d+i|0]=I[w+2|0];t=i|1;w=e+N(t,3)|0;F[n+t|0]=I[w|0];F[o+t|0]=I[w+1|0];F[d+t|0]=I[w+2|0];i=i+2|0;m=m+2|0;if((B|0)!=(m|0)){continue}break}}d=j;if(!(d&1)){break mc}d=e+N(i,3)|0;F[(p+544|0)+i|0]=I[d|0];F[(p+288|0)+i|0]=I[d+1|0];F[(p+32|0)+i|0]=I[d+2|0];d=j}e=H[q+336>>2];if(!((e|0)<0|d>>>0>255)){i=256-d|0;Nb((p+32|0)+d|0,255,i);Nb((p+288|0)+d|0,255,i);Nb((p+544|0)+d|0,255,i)}H[197455]=0;gr(q,(e|0)>=0?256:j,p+544|0,p+288|0,p+32|0);d=H[197455];H[197455]=0;if((d|0)!=1){break lc}a=$()|0;_()|0;break Vb}H[197455]=0;m=aa(899,24)|0;d=H[197455];H[197455]=0;nc:{oc:{pc:{if((d|0)==1){break pc}H[m+20>>2]=q;H[197455]=0;e=Xc(q,0);d=H[197455];H[197455]=0;if((d|0)==1){break oc}H[m>>2]=0;H[m+4>>2]=0;H[m+16>>2]=e;H[m+8>>2]=0;H[m+12>>2]=0;d=H[m+20>>2];H[197455]=0;e=H[d+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break pc}H[m+4>>2]=e-1;d=H[m+20>>2];H[197455]=0;j=Xc(d,0);d=H[197455];H[197455]=0;if((d|0)==1){break pc}d=H[m+20>>2];H[197455]=0;i=H[d+52>>2];d=H[197455];H[197455]=0;if((d|0)==1){break pc}d=H[m+20>>2];H[197455]=0;e=H[d+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break pc}H[m+16>>2]=j+N(i,e-1|0);H[p+544>>2]=0;H[q+984>>2]=16384;H[q+964>>2]=I[p+3448|0]&64;H[q+976>>2]=J[p+3446>>1];H[q+980>>2]=0;H[q+968>>2]=0;H[q+972>>2]=8;d=H[H[b>>2]+24>>2];H[197455]=0;w=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;pa(1114,q|0,b|0,m|0,G[p+3444>>1],p+544|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}Kb(m);if(!H[q+332>>2]){break nc}Sg(p+800|0);i=0;break _b}a=$()|0;_()|0;break Vb}a=$()|0;_()|0;Kb(m);break Vb}x=(!r&(Q|0)!=(R|0)&(u|0)!=(s|0))+x|0;qc:{if(x>>>0<=1){H[197455]=0;da(1115,p+800|0,A|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;dD(p+800|0,q,p+3440|0);d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;H[(p+800|0)+336>>2]=H[p+844>>2]>(l|0)?l:0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;i=H[q+4>>2];e=H[q+44>>2];d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;ga(921,p+800|0,(i?e?i+40|0:0:0)|0,256);d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;ca(1066,q|0,p+800|0,0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break qc}break Xb}H[q+352>>2]=H[q+356>>2]-1;rc:{if(g){break rc}H[197455]=0;e=aa(899,940)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;g=pa(1118,e|0,J[p+3462>>1],J[p+3464>>1],24,2)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break rc}a=$()|0;_()|0;Kb(e);break Vb}e=J[p+3446>>1];if(!e){break qc}m=0;d=J[p+3444>>1];while(1){sc:{if(!(d&65535)){d=0;break sc}B=m^-1;i=0;while(1){tc:{H[197455]=0;n=J[p+3442>>1];o=J[p+3464>>1];j=J[p+3440>>1];Ii(p+24|0,q,i,B+(e&65535)|0,1);d=H[197455];H[197455]=0;if((d|0)==1){break tc}H[197455]=0;H[p+12>>2]=H[p+24>>2];on(g,i+j|0,(o-m|0)+(n^-1)|0,p+12|0,0);d=H[197455];H[197455]=0;if((d|0)==1){break tc}e=J[p+3446>>1];d=J[p+3444>>1];i=i+1|0;if(d>>>0>i>>>0){continue}break sc}break}a=$()|0;_()|0;break Vb}m=m+1|0;if(m>>>0<(e&65535)>>>0){continue}break}}m=I[q+940|0];uc:{if(H[p+544>>2]){H[197455]=0;ca(1119,p|0,b|0,w|0)|0;break uc}i=H[H[b>>2]+20>>2];e=H[q+984>>2];d=H[q+988>>2];H[197455]=0;ca(i|0,b|0,(e-d|0)+1|0,1)|0}d=H[197455];H[197455]=0;if((d|0)==1){break Xb}if(!(g|!I[q+457|0])){vc:{if(r){break vc}H[197455]=0;aa(917,q|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}o=H[q+356>>2];H[197455]=0;e=aa(929,((o|0)!=(o&1073741823)?-1:o<<2)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[q+936>>2]=e;if((o|0)<=0){break vc}H[e>>2]=0;if((o|0)==1){break vc}d=o-1|0;j=d&3;i=1;if(o-2>>>0>=3){d=d&-4;e=0;while(1){o=i<<2;H[o+H[q+936>>2]>>2]=0;H[(o+H[q+936>>2]|0)+4>>2]=0;H[(o+H[q+936>>2]|0)+8>>2]=0;H[(o+H[q+936>>2]|0)+12>>2]=0;i=i+4|0;e=e+4|0;if((d|0)!=(e|0)){continue}break}}e=0;if(!j){break vc}while(1){H[H[q+936>>2]+(i<<2)>>2]=0;i=i+1|0;e=e+1|0;if((j|0)!=(e|0)){continue}break}}H[197455]=0;e=aa(899,940)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;pa(1069,e|0,q|0,1,1,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Zb}d=r<<2;H[d+H[q+936>>2]>>2]=e;d=H[d+H[q+936>>2]>>2];H[197455]=0;F[d+457|0]=0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}}if(!(m&24)){if(k){zb[H[H[k>>2]+4>>2]](k)}H[197455]=0;e=aa(899,940)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}H[197455]=0;k=pa(1069,e|0,q|0,1,1,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Yb}H[197455]=0;F[k+457|0]=0;d=H[197455];H[197455]=0;if((d|0)==1){break Xb}}d=m>>>2|0;e=H[q+352>>2]!=(r|0)|I[q+457|0]!=0;r=e+r|0;Sg(p+800|0);if(e){continue}}break}wc:{xc:{if(!(!g|(x|0)<2)){if(F[q+940|0]&1){Nd(p+16|0,q,I[q+336|0]);H[p+8>>2]=H[p+16>>2];F[p+11|0]=0;H[g+340>>2]=I[p+8|0]|I[p+9|0]<<8|(I[p+10|0]<<16|I[p+11|0]<<24);H[g+336>>2]=0}$k(q,g,1);break xc}if(!g){break wc}}zb[H[H[g>>2]+4>>2]](g)}i=1;if(!k){break _b}zb[H[H[k>>2]+4>>2]](k)}xb=p+3472|0;break Ub}a=$()|0;_()|0;Kb(e);break Vb}a=$()|0;_()|0;Kb(e);break Vb}a=$()|0;_()|0;break Vb}a=$()|0;_()|0}Sg(p+800|0);break b}if(i){break c}H[a+356>>2]=H[q+356>>2];he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](q);if(c){break e}}h=Qb(940);H[197455]=0;q=Bd(h,4);d=H[197455];H[197455]=0;if((d|0)==1){break h}H[h>>2]=247676;yg(q,a);R=0;y=xb-32|0;xb=y;r=Tb(40);H[r>>2]=0;H[197455]=0;Xc(h,0);g=H[197455];H[197455]=0;l=4;if((g|0)==1){a=$()|0;Kb(r);break b}d=-1;yc:{zc:{e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,4);if(!d){break zc}ja(e|0)}Ac:{Bc:{e=_()|0;Cc:{if((d|0)==1){break Cc}H[197455]=0;f=la(1006,245690,0,0,0)|0;g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,4);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Cc}Dc:{Ec:{if((g|0)==1){break Ec}H[y+28>>2]=f;R=245824;if(!f){break Bc}H[197455]=0;f=aa(1007,f|0)|0;g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,4);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Cc}if((g|0)==1){break Ec}H[y+24>>2]=f;if(f){break Dc}H[197455]=0;ga(1008,y+28|0,0,0);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,4);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Cc}R=246132;if((g|0)!=1){break Bc}}g=0;break Ac}r=sd(H[y+28>>2],1,r,4);l=_()|0;e=0}g=1;break Ac}g=2}Fc:{while(1){Gc:{Hc:{Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{switch(g|0){case 0:m=1;d=0;g=ha(782408)|0;break Jc;case 1:if(!e){break Nc}H[197455]=0;ga(1008,y+28|0,y+24|0,0);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}R=246501;if((g|0)==1){break Mc}g=2;continue;default:break Oc}}d=oa(4)|0;H[d>>2]=R;H[197455]=0;ga(1009,d|0,782408,0);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}if((g|0)==1){break Mc}X()}H[197455]=0;ga(1010,H[y+28>>2],b|0,1011);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}if((g|0)==1){break Mc}H[197455]=0;d=h+72|0;e=H[y+28>>2];if(e){H[e+164>>2]=0;H[e+160>>2]=1013;H[e+168>>2]=d}g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}if((g|0)==1){break Mc}H[197455]=0;ba(1014,H[y+28>>2],H[y+24>>2]);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}if((g|0)==1){break Mc}m=H[y+24>>2];if(H[h+332>>2]==-1){H[h+16>>2]=H[m>>2];d=H[m+4>>2];H[h+68>>2]=4;H[h+20>>2]=d;H[197455]=0;ba(988,H[y+28>>2],1);g=H[197455];H[197455]=0;e=H[197456];if(!(!g|!e)){if(!Sb(H[g>>2],r,l)){break zc}ja(e|0)}e=_()|0;break Hc}e=24;i=3;d=1;j=0;f=1;k=0;Pc:{Qc:{switch(I[m+25|0]){case 6:d=0;i=4;break Pc;default:e=I[246604]|I[246605]<<8|(I[246606]<<16|I[246607]<<24);d=I[246600]|I[246601]<<8|(I[246602]<<16|I[246603]<<24);F[h+87|0]=d;F[h+88|0]=d>>>8;F[h+89|0]=d>>>16;F[h+90|0]=d>>>24;F[h+91|0]=e;F[h+92|0]=e>>>8;F[h+93|0]=e>>>16;F[h+94|0]=e>>>24;e=I[246597]|I[246598]<<8|(I[246599]<<16|I[246600]<<24);d=I[246593]|I[246594]<<8|(I[246595]<<16|I[246596]<<24);F[h+80|0]=d;F[h+81|0]=d>>>8;F[h+82|0]=d>>>16;F[h+83|0]=d>>>24;F[h+84|0]=e;F[h+85|0]=e>>>8;F[h+86|0]=e>>>16;F[h+87|0]=e>>>24;e=I[246589]|I[246590]<<8|(I[246591]<<16|I[246592]<<24);d=I[246585]|I[246586]<<8|(I[246587]<<16|I[246588]<<24);F[h+72|0]=d;F[h+73|0]=d>>>8;F[h+74|0]=d>>>16;F[h+75|0]=d>>>24;F[h+76|0]=e;F[h+77|0]=e>>>8;F[h+78|0]=e>>>16;F[h+79|0]=e>>>24;H[197455]=0;ba(988,H[y+28>>2],1);g=H[197455];H[197455]=0;e=H[197456];if(!(!g|!e)){if(!Sb(H[g>>2],r,l)){break zc}ja(e|0)}e=_()|0;break Hc;case 4:f=2;j=1;d=0;break;case 2:break Pc;case 0:case 3:break Qc}}e=I[m+30|0];e=j?8:d?e>>>0>8?8:e:e;i=f;d=0;k=j}g=H[m+4>>2];f=H[m>>2];H[197455]=0;f=pa(978,h|0,f|0,g|0,e|0,4)|0;g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}Rc:{Sc:{if((g|0)==1){break Sc}if(!f){H[197455]=0;ba(988,H[y+28>>2],1);g=H[197455];H[197455]=0;e=H[197456];if(!(!g|!e)){if(!Sb(H[g>>2],r,l)){break zc}ja(e|0)}e=_()|0;break Hc}Tc:{Uc:{Vc:{Wc:{e=H[y+24>>2];switch(I[e+120|0]){case 1:break Vc;case 0:break Wc;default:break Tc}}e=H[e+112>>2];H[197455]=0;Yf(h,e);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break Sc}e=H[H[y+24>>2]+116>>2];break Uc}e=H[e+112>>2];H[197455]=0;D=T(+(e>>>0)*254/1e4+.5);Xc:{if(P(D)<2147483648){e=~~D;break Xc}e=-2147483648}Yf(h,e);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break Sc}D=T(+K[H[y+24>>2]+116>>2]*254/1e4+.5);if(P(D)<2147483648){e=~~D;break Uc}e=-2147483648}H[197455]=0;Sh(h,e);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break Sc}}e=H[y+24>>2];f=J[e+20>>1];if(f){e=H[e+16>>2];H[197455]=0;nD(h,e,f);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break Sc}e=J[H[y+24>>2]+20>>1];H[197455]=0;mD(h,e);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)!=1){break Rc}break Sc}if(I[e+24|0]==2){H[197455]=0;Qh(h,0,0,0,0,0);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break Sc}H[197455]=0;Qh(h,1,85,85,85,0);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break Sc}H[197455]=0;Qh(h,2,170,170,170,0);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break Sc}H[197455]=0;Qh(h,3,255,255,255,0);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break Sc}break Rc}H[197455]=0;Jj(h);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)!=1){break Rc}}m=1;d=0;g=ha(782408)|0;break Jc}f=H[y+24>>2];e=I[f+24|0]>>>3|0;o=((e>>>0>1?e:1)<<3)-8|0;Yc:{Zc:{_c:{$c:{ad:{bd:{switch(J[f+22>>1]){case 1:if(I[f+25|0]==3){H[h+336>>2]=I[f+80|0];break ad}H[h+336>>2]=J[f+88>>1]>>>o;break ad;case 0:break ad;default:break bd}}H[197455]=0;m=H[h+4>>2];f=H[h+44>>2];g=H[197455];H[197455]=0;j=-1;e=H[197456];if(!(!g|!e)){j=Sb(H[g>>2],r,l);if(!j){break zc}ja(e|0)}e=_()|0;if((j|0)==1){break Hc}if((g|0)==1){break $c}w=m?f?m+40|0:0:0;if(!w){break ad}B=H[h+44>>2];f=H[y+24>>2];e=J[f+22>>1];v=(e|0)>(B|0)?B:e;cd:{if(!v){break cd}n=H[f+76>>2];f=0;g=0;if(v-1>>>0>=3){m=v&-4;s=0;while(1){F[(w+(g<<2)|0)+3|0]=I[g+n|0];j=g|1;F[(w+(j<<2)|0)+3|0]=I[j+n|0];j=g|2;F[(w+(j<<2)|0)+3|0]=I[j+n|0];j=g|3;F[(w+(j<<2)|0)+3|0]=I[j+n|0];g=g+4|0;s=s+4|0;if((m|0)!=(s|0)){continue}break}}j=v&3;if(!j){break cd}while(1){F[(w+(g<<2)|0)+3|0]=I[g+n|0];g=g+1|0;f=f+1|0;if((j|0)!=(f|0)){continue}break}}dd:{if(e>>>0>=B>>>0){break dd}j=B+(e^-1)|0;g=0;f=B-e&7;if(f){while(1){F[(w+(e<<2)|0)+3|0]=255;e=e+1|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}}if(j>>>0<7){break dd}while(1){f=w+(e<<2)|0;F[f+3|0]=255;F[f+7|0]=255;F[f+11|0]=255;F[f+15|0]=255;F[f+19|0]=255;F[f+23|0]=255;F[f+27|0]=255;F[f+31|0]=255;e=e+8|0;if((B|0)!=(e|0)){continue}break}}F[h+389|0]=1}ed:{if(!d){break ed}H[197455]=0;f=pC(H[y+28>>2],H[y+24>>2],y+20|0,y+16|0,y+12|0);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}if((g|0)==1){break _c}if(!f){break ed}d=H[y+24>>2];F[h+342|0]=J[d+82>>1]>>>o;F[h+341|0]=J[d+84>>1]>>>o;d=J[d+86>>1];F[h+343|0]=0;H[h+336>>2]=0;F[h+340|0]=d>>>o}fd:{gd:{if(!(i&1)){H[197455]=0;aa(1020,h|0)|0;g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}if((g|0)==1){break gd}}if(I[H[y+24>>2]+25|0]&2){H[197455]=0;d=H[y+28>>2];if(d){H[d+208>>2]=H[d+208>>2]|1}g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}if((g|0)==1){break gd}}if(H[h+332>>2]){H[197455]=0;ba(988,H[y+28>>2],1);g=H[197455];H[197455]=0;e=H[197456];if(!(!g|!e)){if(!Sb(H[g>>2],r,l)){break zc}ja(e|0)}e=_()|0;break Hc}d=H[H[y+24>>2]+12>>2];H[197455]=0;p=aa(929,d+8|0)|0;g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)!=1){break fd}}m=1;d=0;g=ha(782408)|0;break Jc}H[197455]=0;d=1;e=H[y+28>>2];if(!(!e|!I[e+398|0])){H[e+208>>2]=H[e+208>>2]|2;d=7}g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}v=d;hd:{id:{if((g|0)==1){break id}jd:{if((v|0)>=2){H[197455]=0;d=Ug(h,4);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break id}d=d|1;break jd}H[197455]=0;d=Ug(h,4);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)==1){break id}d=d&-2}H[197455]=0;mr(h,d,0);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}e=_()|0;if((m|0)==1){break Hc}if((g|0)!=1){break hd}}m=1;d=0;g=ha(782408)|0;break Jc}d=H[y+24>>2];u=I[d+30|0]>>>3|0;A=I[d+24|0]>>>3|0;m=0;if((v|0)>0){x=N(A,3);w=A<<1;B=v-1|0;m=1;Q=0;while(1){H[197455]=0;d=H[h+20>>2];g=H[197455];H[197455]=0;f=-1;e=H[197456];if(!(!g|!e)){f=Sb(H[g>>2],r,l);if(!f){break zc}ja(e|0)}e=_()|0;if((f|0)==1){break Hc}if((g|0)==1){break Kc}H[197455]=0;n=Xc(h,0);g=H[197455];H[197455]=0;f=-1;d=d-1|0;e=H[197456];if(!(!g|!e)){f=Sb(H[g>>2],r,l);if(!f){break zc}ja(e|0)}e=_()|0;if((f|0)==1){break Hc}if((g|0)==1){break Kc}H[197455]=0;o=H[h+52>>2];g=H[197455];H[197455]=0;f=-1;e=H[197456];if(!(!g|!e)){f=Sb(H[g>>2],r,l);if(!f){break zc}ja(e|0)}e=_()|0;if((f|0)==1){break Hc}if((g|0)==1){break Kc}H[197455]=0;j=H[h+20>>2];g=H[197455];H[197455]=0;f=-1;e=H[197456];if(!(!g|!e)){f=Sb(H[g>>2],r,l);if(!f){break zc}ja(e|0)}e=_()|0;if((f|0)==1){break Hc}if((g|0)==1){break Kc}f=n+N(o,j-1|0)|0;M=0;while(1){if(H[h+332>>2]){H[197455]=0;ba(988,H[y+28>>2],1);g=H[197455];H[197455]=0;e=H[197456];if(!(!g|!e)){if(!Sb(H[g>>2],r,l)){break zc}ja(e|0)}e=_()|0;break Hc}H[197455]=0;j=H[h+928>>2];g=H[197455];H[197455]=0;s=-1;e=H[197456];if(!(!g|!e)){s=Sb(H[g>>2],r,l);if(!s){break zc}ja(e|0)}e=_()|0;if((s|0)==1){break Hc}if((g|0)==1){break Lc}kd:{if(j){j=H[h+20>>2]+(M^-1)|0;ld:{if((j|0)<0){break ld}H[197455]=0;o=H[h+20>>2];g=H[197455];H[197455]=0;s=-1;e=H[197456];if(!(!g|!e)){s=Sb(H[g>>2],r,l);if(!s){break zc}ja(e|0)}e=_()|0;if((s|0)==1){break Hc}if((g|0)==1){break Yc}if((j|0)>(o|0)){break ld}H[197455]=0;o=Xc(h,0);g=H[197455];H[197455]=0;f=-1;e=H[197456];if(!(!g|!e)){f=Sb(H[g>>2],r,l);if(!f){break zc}ja(e|0)}e=_()|0;if((f|0)==1){break Hc}if((g|0)==1){break Yc}H[197455]=0;d=H[h+52>>2];g=H[197455];H[197455]=0;f=-1;e=H[197456];if(!(!g|!e)){f=Sb(H[g>>2],r,l);if(!f){break zc}ja(e|0)}e=_()|0;if((f|0)==1){break Hc}if((g|0)==1){break Yc}f=o+N(d,j)|0;d=j}e=H[h+16>>2];md:{if(!I[H[y+24>>2]+28|0]|!Q|((Q|0)==7|(e|0)<=0)){break md}s=0;if(k){while(1){n=N(u,s);F[n+p|0]=I[f+s|0];H[197455]=0;o=Xf(h,s,j);g=H[197455];H[197455]=0;t=-1;e=H[197456];if(!(!g|!e)){t=Sb(H[g>>2],r,l);if(!t){break zc}ja(e|0)}e=_()|0;if((t|0)==1){break Hc}if((g|0)!=1){F[p+(n+A|0)|0]=o;s=s+1|0;if((s|0)>2]){continue}break md}break}d=0;g=ha(782408)|0;break Jc}while(1){n=N(u,s);e=N(s,3)+f|0;F[n+p|0]=I[e|0];F[p+(n+A|0)|0]=I[e+1|0];F[p+(n+w|0)|0]=I[e+2|0];H[197455]=0;o=Xf(h,s,j);g=H[197455];H[197455]=0;S=-1;e=H[197456];if(!(!g|!e)){S=Sb(H[g>>2],r,l);if(!S){break zc}ja(e|0)}e=_()|0;if((S|0)==1){break Hc}if((g|0)==1){break Zc}F[p+(n+x|0)|0]=o;s=s+1|0;if((s|0)>2]){continue}break}}H[197455]=0;ga(1026,H[y+28>>2],p|0,0);g=H[197455];H[197455]=0;s=-1;e=H[197456];if(!(!g|!e)){s=Sb(H[g>>2],r,l);if(!s){break zc}ja(e|0)}e=_()|0;if((s|0)==1){break Hc}if((g|0)==1){break Yc}if(H[h+16>>2]<=0){break kd}s=0;if(k){while(1){e=N(u,s);F[f+s|0]=I[e+p|0];e=I[p+(e+A|0)|0];H[197455]=0;te(h,s,j,e);g=H[197455];H[197455]=0;t=-1;e=H[197456];if(!(!g|!e)){t=Sb(H[g>>2],r,l);if(!t){break zc}ja(e|0)}e=_()|0;if((t|0)==1){break Hc}if((g|0)!=1){s=s+1|0;if((s|0)>2]){continue}break kd}break}d=0;g=ha(782408)|0;break Jc}while(1){e=N(s,3)+f|0;g=N(u,s);F[e|0]=I[g+p|0];F[e+1|0]=I[p+(g+A|0)|0];F[e+2|0]=I[p+(g+w|0)|0];e=I[p+(g+x|0)|0];H[197455]=0;te(h,s,j,e);g=H[197455];H[197455]=0;t=-1;e=H[197456];if(!(!g|!e)){t=Sb(H[g>>2],r,l);if(!t){break zc}ja(e|0)}e=_()|0;if((t|0)==1){break Hc}if((g|0)!=1){s=s+1|0;if((s|0)>=H[h+16>>2]){break kd}continue}break}d=0;g=ha(782408)|0;break Jc}g=H[y+24>>2];nd:{if(!I[g+28|0]|!Q){break nd}o=H[g+12>>2];if(!(!f|(o|0)<=0)){H[197455]=0;j=H[h+52>>2];g=H[197455];H[197455]=0;t=-1;e=H[197456];if(!(!g|!e)){t=Sb(H[g>>2],r,l);if(!t){break zc}ja(e|0)}e=_()|0;if((t|0)==1){break Hc}if((g|0)==1){break Lc}Ob(p,f,(j|0)<(o|0)?j:o);g=H[y+24>>2]}if(I[g+24|0]<9){break nd}g=N(H[h+16>>2],i);if((g|0)<=0){break nd}o=g-1|0;e=0;j=g&3;if(j){while(1){g=g-1|0;F[p+N(A,g)|0]=I[g+p|0];e=e+1|0;if((j|0)!=(e|0)){continue}break}}if(o>>>0<3){break nd}while(1){e=g-1|0;F[p+N(e,A)|0]=I[e+p|0];e=g-2|0;F[p+N(e,A)|0]=I[e+p|0];e=g-3|0;F[p+N(e,A)|0]=I[e+p|0];g=g-4|0;F[p+N(A,g)|0]=I[g+p|0];if(e>>>0>1){continue}break}}H[197455]=0;ga(1026,H[y+28>>2],p|0,0);g=H[197455];H[197455]=0;s=-1;e=H[197456];if(!(!g|!e)){s=Sb(H[g>>2],r,l);if(!s){break zc}ja(e|0)}e=_()|0;if((s|0)==1){break Hc}if((g|0)==1){break Lc}n=H[y+24>>2];od:{if(I[n+24|0]<9){break od}t=N(H[h+16>>2],i);if((t|0)<=0){break od}e=0;g=0;if(t-1>>>0>=3){o=t&-4;s=0;while(1){F[g+p|0]=I[p+N(g,A)|0];j=g|1;F[j+p|0]=I[p+N(j,A)|0];j=g|2;F[j+p|0]=I[p+N(j,A)|0];j=g|3;F[j+p|0]=I[p+N(j,A)|0];g=g+4|0;s=s+4|0;if((o|0)!=(s|0)){continue}break}}j=t&3;if(!j){break od}while(1){F[g+p|0]=I[p+N(g,A)|0];g=g+1|0;e=e+1|0;if((j|0)!=(e|0)){continue}break}}o=H[n+12>>2];H[197455]=0;j=H[h+52>>2];g=H[197455];H[197455]=0;t=-1;e=H[197456];if(!(!g|!e)){t=Sb(H[g>>2],r,l);if(!t){break zc}ja(e|0)}e=_()|0;if((t|0)==1){break Hc}if((g|0)==1){break Lc}e=(o|0)<0?j:(j|0)<(o|0)?j:o;if(!(!f|(e|0)<=0)){Ob(f,p,e)}e=H[h+16>>2];if(!(I[H[y+24>>2]+24|0]!=2|(B|0)!=(Q|0)|(e|0)<=0)){while(1){g=e-1|0;j=(g>>>1|0)+f|0;t=j;o=4-((g&1)<<2)|0;s=I[j|0]&(15<>>2|0)+f|0]&3<>>j&15)<>>0>1;e=g;if(j){continue}break}}if((d|0)>0){H[197455]=0;o=H[h+52>>2];g=H[197455];H[197455]=0;j=-1;e=H[197456];if(!(!g|!e)){j=Sb(H[g>>2],r,l);if(!j){break zc}ja(e|0)}e=_()|0;if((j|0)==1){break Hc}if((g|0)==1){break Lc}f=f-o|0}d=d-1|0}M=M+1|0;if((M|0)>2]){continue}break}Q=Q+1|0;m=(v|0)>(Q|0);if((v|0)!=(Q|0)){continue}break}}H[197455]=0;Kb(p);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}H[197455]=0;ba(1028,H[y+28>>2],H[y+24>>2]);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}d=0;if((g|0)!=1){H[197455]=0;ga(1008,y+28|0,y+24|0,0);g=H[197455];H[197455]=0;j=-1;e=H[197456];if(!(!g|!e)){j=Sb(H[g>>2],r,l);if(!j){break zc}ja(e|0)}d=1;e=_()|0;if((j|0)==1){break Hc}if((g|0)!=1){break Fc}}g=ha(782408)|0;break Jc}m=1;d=0;g=ha(782408)|0;break Jc}g=ha(782408)|0;m=1;d=0;e=_()|0;break Ic}d=0;g=ha(782408)|0;break Jc}d=0;g=ha(782408)|0;break Jc}g=0;continue}d=0;g=ha(782408)|0;break Jc}d=0;g=ha(782408)|0}e=_()|0}if((ya(782408)|0)==(e|0)){e=sa(g|0)|0;if((d|m)&1){if(I[e|0]){H[197455]=0;Ld(h+72|0,e,255);g=H[197455];H[197455]=0;d=-1;e=H[197456];if(!(!g|!e)){d=Sb(H[g>>2],r,l);if(!d){break zc}ja(e|0)}e=_()|0;if((d|0)==1){break Hc}}d=H[h+332>>2]==-1&H[h+68>>2]==4;break Gc}H[197455]=0;ga(1008,y+28|0,y+24|0,0);g=H[197455];H[197455]=0;m=-1;e=H[197456];if(!(!g|!e)){m=Sb(H[g>>2],r,l);if(!m){break zc}ja(e|0)}d=1;e=_()|0;if((m|0)==1){break Hc}if((g|0)!=1){break Gc}g=$()|0;_()|0;ra()}Kb(r);ea(g|0);X()}g=1;continue}break}ra()}Kb(r);xb=y+32|0;break yc}Kb(r);ed(g,e);X()}if(d){break d}he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](h);if(c){break e}}h=Qb(952);H[197455]=0;q=Bd(h,6);d=H[197455];H[197455]=0;if((d|0)==1){break h}H[h+948>>2]=0;F[h+944|0]=0;H[h+940>>2]=0;H[h>>2]=248924;yg(q,a);i=0;s=0;g=0;S=0;k=xb-336|0;xb=k;C=iD(b,245592);H[k+332>>2]=0;H[k+328>>2]=0;G[k+326>>1]=1;G[k+324>>1]=1;H[k+320>>2]=-1;G[k+318>>1]=0;G[k+316>>1]=1;G[k+314>>1]=1;pd:{qd:{rd:{sd:{td:{ud:{vd:{wd:{xd:{if(!C){f=oa(4)|0;d=245922;break xd}H[197455]=0;e=aa(1081,C|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[h+356>>2]=e;d=J[h+352>>1];H[197455]=0;e=da(1082,C|0,d|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}if(!e){f=oa(4)|0;d=246213;break xd}H[197455]=0;H[k+272>>2]=k+328;ca(1083,C|0,256,k+272|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[197455]=0;H[k+256>>2]=k+332;ca(1083,C|0,257,k+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[197455]=0;H[k+240>>2]=k+324;ca(1083,C|0,277,k+240|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[197455]=0;H[k+224>>2]=k+326;ca(1083,C|0,258,k+224|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[197455]=0;H[k+208>>2]=k+320;ca(1083,C|0,278,k+208|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[197455]=0;H[k+192>>2]=k+318;ca(1083,C|0,262,k+192|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[197455]=0;H[k+176>>2]=k+314;ca(1083,C|0,274,k+176|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}if(H[h+332>>2]==-1){H[h+16>>2]=H[k+328>>2];d=H[k+332>>2];H[h+68>>2]=6;H[h+20>>2]=d;f=oa(4)|0;d=246438;break xd}H[197455]=0;H[k+160>>2]=k+312;ca(1084,C|0,296,k+160|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[197455]=0;H[k+144>>2]=k+308;e=ca(1083,C|0,282,k+144|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}if(e){z=L[k+308>>2];if(J[k+312>>1]==3){z=O(O(z*O(2.5399999618530273))+O(.5));L[k+308>>2]=z}H[197455]=0;if(O(P(z))>2]=k+308;e=ca(1083,C|0,283,k+128|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}if(e){z=L[k+308>>2];if(J[k+312>>1]==3){z=O(O(z*O(2.5399999618530273))+O(.5));L[k+308>>2]=z}H[197455]=0;if(O(P(z))>2]=k+304;e=ca(1083,C|0,286,k+112|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}if(e){z=L[k+304>>2];yd:{if(O(P(z))>2]=e}H[197455]=0;H[k+96>>2]=k+304;e=ca(1083,C|0,287,k+96|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}if(e){z=L[k+304>>2];zd:{if(O(P(z))>2]=e}H[h+336>>2]=-1;H[h+44>>2]=0;d=H[k+332>>2];if(d>>>0>2]){H[197455]=0;H[k+320>>2]=d;H[k+80>>2]=d;ca(1085,C|0,278,k+80|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}}Ad:{Bd:{Cd:{Dd:{f=J[k+318>>1];if(f>>>0>6){break Dd}d=1<>1];switch(l-1|0){case 3:break Ed;case 0:break Fd;default:break Bd}}H[h+44>>2]=2;e=1;G[h+26>>1]=1;break Ad}H[h+44>>2]=16;e=4;G[h+26>>1]=4;break Ad}if(f-32844>>>0<2){break Cd}e=4;l=J[k+326>>1];if((l|0)!=4){break Bd}H[h+44>>2]=16;G[h+26>>1]=4;break Ad}e=24;G[h+26>>1]=24;i=1;break Ad}H[h+44>>2]=256;e=8;G[h+26>>1]=8;if((f|0)!=3|l>>>0<9){break Ad}H[h+44>>2]=0;e=24;G[h+26>>1]=24}if(H[h+332>>2]){f=oa(4)|0;d=246620;break xd}H[197455]=0;pa(978,h|0,H[k+328>>2],H[k+332>>2],e|0,6)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}if(H[h+4>>2]){break wd}f=oa(4)|0;d=246859}H[f>>2]=d;H[197455]=0;ga(1009,f|0,782408,0);d=H[197455];H[197455]=0;if((d|0)==1){break ud}break vd}d=J[k+324>>1];if((d|0)==4){H[197455]=0;aa(1020,h|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}d=J[k+324>>1]}if(!((d&65535)!=2|J[k+326>>1]!=8)){H[197455]=0;aa(1020,h|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}}H[197455]=0;H[k+64>>2]=k+316;ca(1083,C|0,259,k- -64|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ud}H[197455]=0;mr(h,J[k+316>>1],0);d=H[197455];H[197455]=0;if((d|0)==1){break ud}Gd:{Hd:{Id:{Jd:{Kd:{Ld:{Md:{Nd:{Od:{Pd:{Qd:{Rd:{Sd:{Td:{Ud:{Vd:{Wd:{Xd:{if(i){H[197455]=0;g=aa(1086,N(H[k+328>>2],H[k+332>>2])<<2)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Gd}if(!g){f=247003;break Hd}H[197455]=0;e=pa(1087,C|0,H[k+328>>2],H[k+332>>2],g|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Gd}if(!e){H[197455]=0;Kb(g);d=H[197455];H[197455]=0;f=247303;if((d|0)!=1){break Hd}break Gd}i=H[k+332>>2];if(i){x=H[h+56>>2];l=g;while(1){if(H[h+332>>2]){break Wd}e=0;f=x;if(H[k+328>>2]){while(1){d=(e<<2)+l|0;F[f|0]=J[d+2>>1];F[f+1|0]=H[d>>2]>>>8;F[f+2|0]=H[d>>2];if(J[k+324>>1]==4){d=I[d+3|0];H[197455]=0;te(h,e,E,d);d=H[197455];H[197455]=0;if((d|0)==1){break Xd}}f=f+3|0;e=e+1|0;d=H[k+328>>2];if(e>>>0>>0){continue}break}i=H[k+332>>2];e=d}x=H[h+52>>2]+x|0;l=(e<<2)+l|0;E=E+1|0;if(E>>>0>>0){continue}break}}H[197455]=0;Kb(g);d=H[197455];H[197455]=0;if((d|0)==1){break Gd}break Id}e=J[k+318>>1];d=J[k+326>>1];if(!((e|0)!=3|d>>>0<25)){d=oa(4)|0;H[d>>2]=247432;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break vd}f=ha(782408)|0;break td}B=(e|0)==3&d>>>0>8;x=oc(B?1<>2]=247917;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break vd}f=ha(782408)|0;break td}v=d>>>0<8?d:8;Yd:{Zd:{switch(e|0){case 0:case 1:if((d|0)==1){if((e|0)==1){F[x+4|0]=255;F[x+5|0]=255;F[x+6|0]=255;break Yd}F[x+2|0]=255;F[x|0]=255;F[x+1|0]=255;break Yd}i=1<>>0)|0;if((e|0)!=1){f=0;if(v){while(1){e=(f<<2)+x|0;d=N(f,j)^-1;F[e+2|0]=d;F[e+1|0]=d;F[e|0]=d;d=f|1;e=(d<<2)+x|0;d=N(d,j)^-1;F[e+2|0]=d;F[e+1|0]=d;F[e|0]=d;f=f+2|0;E=E+2|0;if((i|0)!=(E|0)){continue}break}}if(v){break Yd}e=(f<<2)+x|0;d=N(f,j)^-1;F[e+2|0]=d;F[e+1|0]=d;F[e|0]=d;break Yd}f=0;if(v){while(1){e=(f<<2)+x|0;d=N(f,j);F[e+2|0]=d;F[e+1|0]=d;F[e|0]=d;d=f|1;e=(d<<2)+x|0;d=N(d,j);F[e+2|0]=d;F[e+1|0]=d;F[e|0]=d;f=f+2|0;E=E+2|0;if((i|0)!=(E|0)){continue}break}}if(v){break Yd}e=(f<<2)+x|0;d=N(f,j);F[e+2|0]=d;F[e+1|0]=d;F[e|0]=d;break Yd;case 3:break Zd;default:break Yd}}H[197455]=0;H[k+48>>2]=k+300;H[k+52>>2]=k+296;H[k+56>>2]=k+292;ca(1083,C|0,320,k+48|0)|0;d=H[197455];H[197455]=0;e=1;if((d|0)==1){break Vd}_d:{if(B){break _d}f=1<>2];i=H[k+296>>2];d=H[k+300>>2];while(1){if((f|0)<=0){e=B;break _d}f=f-1|0;if(J[d+(f<<1)>>1]>255|J[i+(f<<1)>>1]>255){break _d}if(J[j+(f<<1)>>1]<=255){continue}break}}f=-1<<(B?J[k+326>>1]:v)^-1;m=H[k+292>>2];j=H[k+296>>2];i=H[k+300>>2];if(!e){while(1){e=(f<<2)+x|0;d=f<<1;F[e+2|0]=I[d+i|0];F[e+1|0]=I[d+j|0];F[e|0]=I[d+m|0];d=(f|0)>0;f=f-1|0;if(d){continue}break Yd}}while(1){e=(f<<2)+x|0;d=f<<1;F[e+2|0]=J[d+i>>1]/257;F[e+1|0]=J[d+j>>1]/257;F[e|0]=J[d+m>>1]/257;d=(f|0)>0;f=f-1|0;if(d){continue}break}}if(!B){H[197455]=0;ga(921,h|0,x|0,1<>1];v=J[k+326>>1];m=H[k+328>>2];o=aa(1089,C|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Td}j=H[h+32>>2];i=H[h+52>>2];H[197455]=0;n=J[k+326>>1];f=H[k+320>>2];e=J[k+324>>1];qa=H[C+12>>2]>>>10&1;d=H[197455];H[197455]=0;$d:{ae:{be:{ce:{if((d|0)!=1){H[k+300>>2]=0;H[k+296>>2]=0;de:{if(!qa){d=N(e,j);e=(d|0)>(o|0)?o:d;d=N(f,i);f=N(n>>>0>8?(n|0)!=16?n+7>>>3|0:1:1,(d|0)<(e|0)?e:d);break de}H[197455]=0;H[k+32>>2]=k+300;ca(1083,C|0,322,k+32|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break $d}H[197455]=0;H[k+16>>2]=k+296;ca(1083,C|0,323,k+16|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break $d}H[k+320>>2]=H[k+296>>2];H[197455]=0;i=aa(1091,C|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break $d}H[197455]=0;g=H[k+300>>2];f=H[k+328>>2];e=aa(1091,C|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break $d}f=N(i,((f>>>0)/(g>>>0)|0)+1|0);g=Tb(e)}d=N(r,N(m,v))+7>>>3|0;e=J[k+326>>1];m=f<<((e|0)==16);j=Tb(m);if((e|0)!=16|qa){break ce}m=J[k+324>>1];e=H[k+328>>2];i=Tb(f);if(i){break be}if(!j){break Jd}Kb(j);break Jd}f=ha(782408)|0;break td}if(!j){break Jd}r=0;e=1;break ae}e=N(e,m)&536870911;if(!j){r=d;m=f;d=e;j=i;e=1;break ae}W=Tb(H[k+332>>2]);r=d;s=j;m=f;d=e;j=i;e=0}n=e;f=H[k+332>>2];ee:{if(!f){break ee}Fa=n?d:r;Ga=n?j:s;Ha=d&536870910;Ia=d&1;y=d&536870908;Ca=d&3;Da=d-1|0;while(1){if(H[h+332>>2]){Kb(j);d=oa(4)|0;H[d>>2]=246620;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break vd}break Ld}e=H[k+320>>2];v=e+S>>>0>f>>>0?f-S|0:e;fe:{if(qa){H[197455]=0;fa=aa(1092,C|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Md}H[197455]=0;w=aa(1093,C|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Nd}if(!H[k+328>>2]){break fe}Ea=fa-w|0;ta=w&7;p=w-1|0;A=!v|!w;xa=0;va=0;M=0;while(1){H[197455]=0;f=ma(1094,C|0,g|0,va|0,S|0,0,0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Sd}if((f|0)<0){Kb(g);Kb(j);d=oa(4)|0;H[d>>2]=248142;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break vd}f=ha(782408)|0;break td}ge:{if(fa>>>0>2]+M>>>0){if(!v|(M|0)==(fa|0)){break ge}e=N(w,xa);Q=fa+(e^-1)|0;o=fa-M|0;R=w-o|0;u=Ea+R|0;E=fa-e&7;f=j+M|0;t=v;e=g;while(1){l=0;i=o;if(E){while(1){F[f|0]=I[e|0];f=f+1|0;e=e+1|0;i=i-1|0;l=l+1|0;if((E|0)!=(l|0)){continue}break}}if(Q>>>0>=7){while(1){F[f|0]=I[e|0];F[f+1|0]=I[e+1|0];F[f+2|0]=I[e+2|0];F[f+3|0]=I[e+3|0];F[f+4|0]=I[e+4|0];F[f+5|0]=I[e+5|0];F[f+6|0]=I[e+6|0];F[f+7|0]=I[e+7|0];f=f+8|0;e=e+8|0;i=i-8|0;if(i){continue}break}}e=e+R|0;f=f+u|0;t=t-1|0;if(t){continue}break}break ge}if(A){break ge}f=j+M|0;o=v;e=g;while(1){l=0;i=w;if(ta){while(1){F[f|0]=I[e|0];f=f+1|0;e=e+1|0;i=i-1|0;l=l+1|0;if((ta|0)!=(l|0)){continue}break}}if(p>>>0>=7){while(1){F[f|0]=I[e|0];F[f+1|0]=I[e+1|0];F[f+2|0]=I[e+2|0];F[f+3|0]=I[e+3|0];F[f+4|0]=I[e+4|0];F[f+5|0]=I[e+5|0];F[f+6|0]=I[e+6|0];F[f+7|0]=I[e+7|0];f=f+8|0;e=e+8|0;i=i-8|0;if(i){continue}break}}f=f+Ea|0;o=o-1|0;if(o){continue}break}}xa=xa+1|0;M=w+M|0;va=H[k+300>>2]+va|0;if(va>>>0>2]){continue}break}break fe}H[197455]=0;f=ca(1095,C|0,S|0,0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Kd}H[197455]=0;f=la(1096,C|0,f|0,Ga|0,N(v,Fa)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Kd}if((f|0)==-1){break ee}}if(v){Q=Z-v|0;M=0;while(1){Z=v+(M^-1)|0;A=N(Z,d);p=J[k+326>>1];he:{if(B|(p|0)!=16){break he}ie:{if(!n){if(d){break ie}F[(H[k+332>>2]+(M+Q|0)|0)+W|0]=8;break he}w=H[k+328>>2];if(!w){break he}o=A+1|0;f=0;if((w|0)!=1){i=w&-2;l=0;while(1){F[(f+A|0)+j|0]=I[(o+(f<<1)|0)+j|0];e=f|1;F[(e+A|0)+j|0]=I[(o+(e<<1)|0)+j|0];f=f+2|0;l=l+2|0;if((i|0)!=(l|0)){continue}break}}if(!(w&1)){break he}F[(f+A|0)+j|0]=I[(o+(f<<1)|0)+j|0];break he}u=N(r,Z);R=u+1|0;E=0;f=0;e=0;t=0;if(Da>>>0>=3){while(1){i=f<<1;l=I[(R+(i|6)|0)+s|0];w=I[(R+(i|4)|0)+s|0];o=I[(R+(i|2)|0)+s|0];i=I[(i+R|0)+s|0];e=e&255;e=e>>>0>>0?i:e;e=e>>>0>>0?o:e;e=e>>>0>>0?w:e;e=e>>>0>>0?l:e;f=f+4|0;t=t+4|0;if((y|0)!=(t|0)){continue}break}}if(Ca){while(1){i=I[(R+(f<<1)|0)+s|0];e=e&255;e=e>>>0>>0?i:e;f=f+1|0;E=E+1|0;if((Ca|0)!=(E|0)){continue}break}}je:{if(!(e&255)){f=8;break je}f=0;if(e<<24>>24<0){break je}while(1){f=f+1|0;e=e<<25>>24;if((e|0)>=0){continue}break}}F[(H[k+332>>2]+(M+Q|0)|0)+W|0]=f;if(!d){break he}i=8-f|0;f=0;l=0;if(Da){while(1){e=(u+(f<<1)|0)+s|0;F[(f+A|0)+j|0]=(I[e|0]|I[e+1|0]<<8)>>>i;e=f|1;o=(e+A|0)+j|0;e=(u+(e<<1)|0)+s|0;F[o|0]=(I[e|0]|I[e+1|0]<<8)>>>i;f=f+2|0;l=l+2|0;if((Ha|0)!=(l|0)){continue}break}}if(!Ia){break he}e=(u+(f<<1)|0)+s|0;F[(f+A|0)+j|0]=(I[e|0]|I[e+1|0]<<8)>>>i}ke:{le:{switch(J[k+324>>1]-1|0){case 0:if(B){if(!n){jD(H[h+56>>2]+N(H[h+52>>2],H[k+332>>2]+(M+Q|0)|0)|0,N(r,Z)+s|0,H[k+328>>2],p,x);break ke}jD(H[h+56>>2]+N(H[h+52>>2],H[k+332>>2]+(M+Q|0)|0)|0,j+A|0,H[k+328>>2],p,x);break ke}if(!((p|0)!=16&(p|0)!=J[h+26>>1])){e=H[h+52>>2];Ob(H[h+56>>2]+N(e,H[k+332>>2]+(M+Q|0)|0)|0,j+A|0,d>>>0>>0?d:e);break ke}o=H[h+56>>2]+N(H[h+52>>2],H[k+332>>2]+(M+Q|0)|0)|0;t=j+A|0;e=H[k+328>>2];f=0;me:{if(p>>>0<=8){if((e|0)<=0){break me}w=-1<>>8-f|0;break ne}l=f-8|0;E=I[t|0]<>>16-f;t=t+1|0}F[o|0]=w&E;i=(f|0)>7;f=i?l:f;o=o+1|0;t=(i&!l)+t|0;i=e>>>0>1;e=e-1|0;if(i){continue}break}break me}if(p>>>0<=15){if((e|0)<=0){break me}l=p-8|0;w=p+7|0;while(1){i=e;e=I[t|0]|I[t+1|0]<<8|(I[t+2|0]<<16|I[t+3|0]<<24);F[o|0]=(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))>>>24-f;e=f+p|0;oe:{if((e|0)>=8){e=(f+w|0)-((e|0)<15?e:15)|0;f=(f+l|0)-(e&-8)|0;t=t+1+(e>>>3)|0;break oe}f=e}o=o+1|0;e=i-1|0;if(i>>>0>=2){continue}break}break me}if(p>>>0>=32){if((e|0)<=0){break me}w=e-1|0;i=e&3;if(i){while(1){F[o|0]=I[t+3|0];t=t+4|0;o=o+1|0;e=e-1|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}}if(w>>>0<3){break me}while(1){F[o|0]=I[t+3|0];F[o+1|0]=I[t+7|0];F[o+2|0]=I[t+11|0];F[o+3|0]=I[t+15|0];t=t+16|0;o=o+4|0;f=e-5|0;e=e-4|0;if(f>>>0<4294967294){continue}break}break me}if((e|0)<=0){break me}l=p-8|0;w=p+7|0;while(1){i=e;e=I[t|0]|I[t+1|0]<<8|(I[t+2|0]<<16|I[t+3|0]<<24);ta=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);e=f+p|0;F[o|0]=ta>>>e-8;pe:{if((e|0)>=8){e=(f+w|0)-((e|0)<15?e:15)|0;f=(f+l|0)-(e&-8)|0;t=t+1+(e>>>3)|0;break pe}f=e}o=o+1|0;e=i-1|0;if(i>>>0>=2){continue}break}}break ke;case 1:f=H[k+332>>2];qe:{if(H[h+928>>2]){break qe}H[197455]=0;aa(1020,h|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break qe}f=ha(782408)|0;break td}if(!d){break ke}e=f+(M+Q|0)|0;l=0;f=0;while(1){o=(l+A|0)+j|0;i=I[o|0];H[197455]=0;Tg(h,f,e,i);i=H[197455];H[197455]=0;if((i|0)==1){break Rd}i=I[o+1|0];H[197455]=0;te(h,f,e,i);i=H[197455];H[197455]=0;if((i|0)==1){break Rd}o=f+1|0;i=H[k+328>>2];f=(i|0)>(o|0)?o:0;e=e-((i|0)<=(o|0))|0;l=l+2|0;if(l>>>0>>0){continue}break};break ke;default:break le}}re:{if(J[h+26>>1]==24){break re}H[197455]=0;pa(978,h|0,H[k+328>>2],H[k+332>>2],24,6)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Od}if(J[k+324>>1]!=4){break re}H[197455]=0;aa(1020,h|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Od}}if(!H[k+328>>2]){break ke}f=H[k+332>>2]+(M+Q|0)|0;o=0;e=0;while(1){l=0;t=0;u=A+N(J[k+324>>1],o)|0;i=u+2|0;if((i|0)<(m|0)){w=F[i+j|0];i=w&255;t=(w|0)<0?i|-256:i;Z=j+u|0;w=F[Z+1|0];i=w&255;l=(w|0)<0?i|-256:i;i=I[Z|0]}else{i=0}D=(+(i|0)/2.55+16)/116;za=Kd(D+ +(t|0)*-.005,3)*1.0883;ka=za*1.057311;U=Kd(+(l|0)*.002+D,3)*.95047;V=Kd(D,3);D=U*.055648+V*-.204043;Ba=za*.041556+(U*-.969256+V*1.875992);V=za*-.498535+(U*3.240479+V*-1.53715);se:{if(V>.00304){U=Kd(V,.41667)*1.055+-.055;break se}U=V*12.92}V=U;D=ka+D;te:{if(Ba>.00304){U=Kd(Ba,.41667)*1.055+-.055;break te}U=Ba*12.92}ka=U;ue:{if(D>.00304){U=Kd(D,.41667)*1.055+-.055;break ue}U=D*12.92}D=U;V=V*255;ve:{if(P(V)<2147483648){i=~~V;break ve}i=-2147483648}i=(i|0)<255?i:255;F[k+290|0]=(i|0)>0?i:0;ka=ka*255;we:{if(P(ka)<2147483648){i=~~ka;break we}i=-2147483648}i=(i|0)<255?i:255;F[k+289|0]=(i|0)>0?i:0;D=D*255;xe:{if(P(D)<2147483648){i=~~D;break xe}i=-2147483648}i=(i|0)<255?i:255;F[k+288|0]=(i|0)>0?i:0;H[197455]=0;H[k+12>>2]=H[k+288>>2];on(h,e,f,k+12|0,0);i=H[197455];H[197455]=0;ye:{if((i|0)!=1){if(J[k+324>>1]!=4){break ye}i=I[(j+u|0)+3|0];H[197455]=0;te(h,e,f,i);i=H[197455];H[197455]=0;if((i|0)!=1){break ye}}f=ha(782408)|0;break td}w=e+1|0;i=H[k+328>>2];e=(i|0)>(w|0)?w:0;f=f-((i|0)<=(w|0))|0;o=o+1|0;if(i>>>0>o>>>0){continue}break}}M=M+1|0;if(v>>>0>M>>>0){continue}break}}S=H[k+320>>2]+S|0;Z=0-S|0;f=H[k+332>>2];if(S>>>0>>0){continue}break}}Kb(j);if(!n){Kb(s)}if(B|(!W|J[k+324>>1]!=1|J[k+326>>1]!=16)){break Pd}E=H[k+332>>2];if(!E){break Pd}v=E&3;e=0;if(E-1>>>0<3){l=8;f=0;break Qd}m=E&-4;f=0;l=8;i=0;while(1){d=I[f+W|0];j=(d|0)>(l|0)?l:d;d=I[(f|1)+W|0];j=(d|0)>(j|0)?j:d;d=I[(f|2)+W|0];j=(d|0)>(j|0)?j:d;d=I[(f|3)+W|0];l=(d|0)>(j|0)?j:d;f=f+4|0;i=i+4|0;if((m|0)!=(i|0)){continue}break}break Qd}f=ha(782408)|0;break td}f=ha(782408)|0;break td}H[197455]=0;Kb(g);d=H[197455];H[197455]=0;f=246620;if((d|0)!=1){break Hd}break Gd}f=ha(782408)|0;break td}f=ha(782408)|0;break td}f=ha(782408)|0;break td}f=ha(782408)|0;break td}f=ha(782408)|0;break td}if(v){while(1){d=I[f+W|0];l=(d|0)>(l|0)?l:d;f=f+1|0;e=e+1|0;if((v|0)!=(e|0)){continue}break}}if(!E){break Pd}o=0;while(1){d=I[o+W|0];if(!(!H[k+328>>2]|(d|0)<=(l|0))){d=d-l|0;f=H[h+56>>2]+N(H[h+52>>2],o)|0;e=0;while(1){F[f|0]=I[f|0]>>>d;f=f+1|0;e=e+1|0;if(e>>>0>2]){continue}break}E=H[k+332>>2]}o=o+1|0;if(E>>>0>o>>>0){continue}break}}if(W){Kb(W)}if(qa){Kb(g)}if(x){Kb(x)}ze:{Ae:{Be:{switch(J[k+314>>1]-2|0){case 1:H[197455]=0;ca(1058,h|0,0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ld}break Ae;case 2:H[197455]=0;ca(1058,h|0,0,1)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break Id}break Ld;case 3:H[197455]=0;da(1098,h|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ld}break Ae;case 4:H[197455]=0;da(1099,h|0,0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break Id}break Ld;case 6:break ze;case 0:break Ae;case 5:break Be;default:break Id}}H[197455]=0;da(1099,h|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ld}}H[197455]=0;ca(1100,h|0,0,1)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break Id}break Ld}H[197455]=0;da(1098,h|0,0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break Id}break Ld}f=ha(782408)|0;break td}f=ha(782408)|0;break td}f=ha(782408)|0;break td}f=ha(782408)|0;break td}f=ha(782408)|0;break td}if(x){Kb(x)}if(g){Kb(g)}d=oa(4)|0;H[d>>2]=247984;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break vd}f=ha(782408)|0;break td}zq(C);d=1;break sd}d=oa(4)|0;H[d>>2]=f;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break vd}}f=ha(782408)|0;break td}X()}f=ha(782408)|0}if((_()|0)!=(ya(782408)|0)){break qd}d=sa(f|0)|0;if(I[d|0]){Ld(h+72|0,d,255)}if(C){H[197455]=0;ia(1080,C|0);d=H[197455];H[197455]=0;if((d|0)==1){break rd}}d=H[h+332>>2]==-1&H[h+68>>2]==6;ra()}xb=k+336|0;break pd}f=$()|0;_()|0;ra()}ea(f|0);X()}if(d){break d}H[a+356>>2]=H[h+356>>2];he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](h);if(c){break e}}h=Qb(940);H[197455]=0;q=Bd(h,7);d=H[197455];H[197455]=0;if((d|0)==1){break h}H[h>>2]=247720;yg(q,a);o=xb-800|0;xb=o;Ce:{De:{if(b){d=H[H[b>>2]+12>>2];H[197455]=0;e=ma(d|0,b|0,o+776|0,18,1,0,0)|0;d=H[197455];H[197455]=0;Ee:{Fe:{if((d|0)==1){break Fe}Ge:{if(!e){d=oa(4)|0;H[d>>2]=245675;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break Ge}break Fe}H[197455]=0;f=(I[o+779|0]|I[o+780|0]<<8)<<16>>16;e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break Fe}d=(e?f:f<<8|(f&65280)>>>8)<<16>>16;F[o+779|0]=d;F[o+780|0]=d>>>8;H[197455]=0;f=(I[o+781|0]|I[o+782|0]<<8)<<16>>16;e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break Fe}d=(e?f:f<<8|(f&65280)>>>8)<<16>>16;F[o+781|0]=d;F[o+782|0]=d>>>8;H[197455]=0;f=G[o+784>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break Fe}G[o+784>>1]=e?f:f<<8|(f&65280)>>>8;H[197455]=0;f=G[o+786>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break Fe}G[o+786>>1]=e?f:f<<8|(f&65280)>>>8;H[197455]=0;f=G[o+788>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break Fe}G[o+788>>1]=e?f:f<<8|(f&65280)>>>8;H[197455]=0;d=G[o+790>>1];f=(I[h+458|0]?d:d<<8|(d&65280)>>>8)<<16>>16;d=H[197455];H[197455]=0;if((d|0)==1){break Fe}G[o+790>>1]=f;d=245855;He:{Ie:{Je:{Ke:{Le:{Me:{Ne:{Oe:{Pe:{Qe:{Re:{Se:{Te:{Ue:{m=I[o+778|0]-1|0;e=m&255;Ve:{if(e>>>0>=11|!(1799>>>e&1)){break Ve}d=246117;if(!f){break Ve}j=J[o+788>>1];if(!j){break Ve}i=I[o+792|0];if(!i|(I[o+781|0]|I[o+782|0]<<8)>>>0>256){break Ve}e=i-8|0;if(e>>>0>24|!(1<>2]==-1){H[h+68>>2]=7;H[h+20>>2]=f&65535;H[h+16>>2]=j;d=1;break De}e=I[o+776|0];if(e){d=H[H[b>>2]+20>>2];H[197455]=0;ca(d|0,b|0,e|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Te}j=J[o+788>>1];i=I[o+792|0];f=J[o+790>>1]}H[197455]=0;pa(978,h|0,j|0,f&65535,i|0,7)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Te}if(I[o+792|0]==32){H[197455]=0;aa(1020,h|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Te}}H[197455]=0;e=H[h+4>>2];d=H[197455];H[197455]=0;if((d|0)==1){break Te}d=246484;if(!e){break Ve}d=246620;if(!H[h+332>>2]){break Ue}}e=oa(4)|0;H[e>>2]=d;H[197455]=0;ga(1009,e|0,782408,0);d=H[197455];H[197455]=0;if((d|0)==1){break Te}break Ge}We:{if(!I[o+777|0]){break We}e=H[H[b>>2]+12>>2];d=0;H[197455]=0;ma(e|0,b|0,o|0,N(I[o+781|0]|I[o+782|0]<<8,3)|0,1,0,0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Se}if(!(I[o+781|0]|I[o+782|0]<<8)){break We}while(1){e=o+N(d,3)|0;g=I[e|0];f=I[e+1|0];e=I[e+2|0];H[197455]=0;Qh(h,d&255,e,f,g,0);e=H[197455];H[197455]=0;if((e|0)==1){break Re}d=d+1|0;if(d>>>0<(I[o+781|0]|I[o+782|0]<<8)>>>0){continue}break}}if((I[o+778|0]&247)==3){H[197455]=0;Jj(h);d=H[197455];H[197455]=0;if((d|0)==1){break Te}}H[197455]=0;r=I[o+793|0];f=Xc(h,0);d=H[197455];H[197455]=0;if((d|0)==1){break Pe}v=r&32;if(!J[o+790>>1]){break Ne}m=1792>>>m&1;if(v){g=255;d=0;while(1){if(H[h+332>>2]){break Ke}e=H[H[b>>2]+36>>2];H[197455]=0;i=aa(e|0,b|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Je}if(i){break Ie}j=J[o+790>>1]+(d^-1)|0;Xe:{if((j|0)<0){break Xe}H[197455]=0;i=H[h+20>>2];e=H[197455];H[197455]=0;if((e|0)==1){break Je}if((i|0)<(j|0)){break Xe}H[197455]=0;i=Xc(h,0);e=H[197455];H[197455]=0;if((e|0)==1){break Je}H[197455]=0;f=H[h+52>>2];e=H[197455];H[197455]=0;if((e|0)==1){break Je}f=i+N(f,j)|0}e=J[o+788>>1];Ye:{if(!m){H[197455]=0;ua(1135,h|0,f|0,o+776|0,b|0,e|0,d|0,0);e=H[197455];H[197455]=0;if((e|0)!=1){break Ye}break Je}H[197455]=0;g=Aa(1136,h|0,f|0,o+776|0,b|0,e|0,d|0,g&255)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Je}}d=d+1|0;if(d>>>0>1]){continue}break}break Ne}d=0;if(m){break Oe}while(1){if(H[h+332>>2]){break Ke}e=H[H[b>>2]+36>>2];H[197455]=0;g=aa(e|0,b|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Qe}if(g){break Ie}H[197455]=0;g=H[h+20>>2];e=H[197455];H[197455]=0;if((e|0)==1){break Qe}if((d|0)<=(g|0)){H[197455]=0;g=Xc(h,0);e=H[197455];H[197455]=0;if((e|0)==1){break Qe}H[197455]=0;f=H[h+52>>2];e=H[197455];H[197455]=0;if((e|0)==1){break Qe}f=g+N(d,f)|0}H[197455]=0;ua(1135,h|0,f|0,o+776|0,b|0,J[o+788>>1],d|0,0);e=H[197455];H[197455]=0;if((e|0)==1){break Qe}d=d+1|0;if(d>>>0>1]){continue}break}break Ne}d=ha(782408)|0;break Ee}d=ha(782408)|0;break Ee}d=ha(782408)|0;break Ee}d=ha(782408)|0;break Ee}d=ha(782408)|0;break Ee}k=255;while(1){if(H[h+332>>2]){break Ke}e=H[H[b>>2]+36>>2];H[197455]=0;g=aa(e|0,b|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Me}if(g){break Ie}H[197455]=0;g=H[h+20>>2];e=H[197455];H[197455]=0;if((e|0)==1){break Me}if((d|0)<=(g|0)){H[197455]=0;g=Xc(h,0);e=H[197455];H[197455]=0;if((e|0)==1){break Me}H[197455]=0;f=H[h+52>>2];e=H[197455];H[197455]=0;if((e|0)==1){break Me}f=g+N(d,f)|0}H[197455]=0;k=Aa(1136,h|0,f|0,o+776|0,b|0,J[o+788>>1],d|0,k&255)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Me}d=d+1|0;if(d>>>0>1]){continue}break}}if(r&16){H[197455]=0;ca(1100,h|0,0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Le}}d=1;if(!v|I[o+792|0]!=32){break De}H[197455]=0;aa(1137,h|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Le}break De}d=ha(782408)|0;break Ee}d=ha(782408)|0;break Ee}e=246620;break He}d=ha(782408)|0;break Ee}e=246933}d=oa(4)|0;H[d>>2]=e;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break Ge}d=ha(782408)|0;break Ee}X()}d=ha(782408)|0}if((_()|0)!=(ya(782408)|0)){break a}d=sa(d|0)|0;if(I[d|0]){Ld(h+72|0,d,255)}ra()}d=0}xb=o+800|0;break Ce}if(d){break d}he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](h);if(c){break e}}h=Qb(940);H[197455]=0;q=Bd(h,8);d=H[197455];H[197455]=0;if((d|0)==1){break h}H[h>>2]=247764;yg(q,a);f=0;l=xb-912|0;xb=l;Ze:{_e:{if(b){d=H[H[b>>2]+12>>2];H[197455]=0;e=ma(d|0,b|0,l+784|0,128,1,0,0)|0;d=H[197455];H[197455]=0;$e:{af:{if((d|0)==1){break af}bf:{cf:{df:{if(!e){e=245571;break df}H[197455]=0;g=G[l+788>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break af}G[l+788>>1]=e?g:g<<8|(g&65280)>>>8;H[197455]=0;g=G[l+790>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break af}G[l+790>>1]=e?g:g<<8|(g&65280)>>>8;H[197455]=0;g=G[l+792>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break af}G[l+792>>1]=e?g:g<<8|(g&65280)>>>8;H[197455]=0;g=G[l+794>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break af}G[l+794>>1]=e?g:g<<8|(g&65280)>>>8;H[197455]=0;g=G[l+796>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break af}G[l+796>>1]=e?g:g<<8|(g&65280)>>>8;H[197455]=0;g=G[l+798>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break af}G[l+798>>1]=e?g:g<<8|(g&65280)>>>8;H[197455]=0;g=G[l+850>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break af}G[l+850>>1]=e?g:g<<8|(g&65280)>>>8;H[197455]=0;g=G[l+852>>1];e=I[h+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break af}G[l+852>>1]=e?g:g<<8|(g&65280)>>>8;if(I[l+784|0]!=10){e=245900;break df}e=246176;if(I[l+786|0]!=1){break df}i=J[l+788>>1];e=J[l+792>>1];g=J[l+790>>1];d=J[l+794>>1];H[h+364>>2]=J[l+796>>1];H[h+368>>2]=J[l+798>>1];k=e-i|0;if((k|0)<0){e=245900;break df}e=245900;B=d-g|0;if((B|0)<0){break df}i=B+1|0;r=k+1|0;if(H[h+332>>2]==-1){H[h+68>>2]=8;H[h+20>>2]=i;H[h+16>>2]=r;d=1;break _e}e=246346;d=F[l+849|0];if((d|0)>4){break df}e=F[l+787|0];ef:{if(!((e|0)!=8|(d|0)<3)){H[197455]=0;pa(978,h|0,r|0,i|0,24,8)|0;d=H[197455];H[197455]=0;if((d|0)==1){break af}if(I[l+849|0]!=4){break ef}H[197455]=0;aa(1020,h|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break ef}break af}H[197455]=0;pa(978,h|0,r|0,i|0,((d|0)==4?(e|0)==1?4:e:e)|0,8)|0;d=H[197455];H[197455]=0;if((d|0)==1){break af}}e=246620;if(!H[h+332>>2]){break cf}}d=oa(4)|0;H[d>>2]=e;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)==1){break af}break bf}g=246620;ff:{gf:{hf:{v=N(F[l+849|0],N(i,J[l+850>>1]));f=Tb(v);if(!f){break hf}jf:{kf:{lf:{mf:{if((v|0)>0){e=f;d=v;while(1){g=H[H[b>>2]+36>>2];H[197455]=0;i=aa(g|0,b|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break mf}if(i){g=246889;break hf}g=H[H[b>>2]+12>>2];H[197455]=0;ma(g|0,b|0,l+783|0,1,1,0,0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break mf}j=I[l+783|0];nf:{if((j&192)!=192){F[e|0]=j;d=d-1|0;e=e+1|0;break nf}g=H[H[b>>2]+12>>2];H[197455]=0;ma(g|0,b|0,l+783|0,1,1,0,0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break mf}i=j&63;if(i>>>0>d>>>0){g=247054;break hf}d=d-i|0;if(!i){break nf}m=i-1|0;g=0;j=j&7;if(j){while(1){F[e|0]=I[l+783|0];e=e+1|0;i=i-1|0;g=g+1|0;if((j|0)!=(g|0)){continue}break}}if(m>>>0<7){break nf}while(1){F[e|0]=I[l+783|0];g=I[l+783|0];F[e+3|0]=g;F[e+2|0]=g;F[e+1|0]=g;g=I[l+783|0];F[e+6|0]=g;F[e+5|0]=g;F[e+4|0]=g;F[e+7|0]=I[l+783|0];e=e+8|0;g=i-9|0;i=i-8|0;if(g>>>0<4294967294){continue}break}}if((d|0)>0){continue}break}}e=I[l+833|0]|I[l+834|0]<<8|(I[l+835|0]<<16|I[l+836|0]<<24);d=I[l+829|0]|I[l+830|0]<<8|(I[l+831|0]<<16|I[l+832|0]<<24);F[l+29|0]=d;F[l+30|0]=d>>>8;F[l+31|0]=d>>>16;F[l+32|0]=d>>>24;F[l+33|0]=e;F[l+34|0]=e>>>8;F[l+35|0]=e>>>16;F[l+36|0]=e>>>24;d=I[l+837|0]|I[l+838|0]<<8|(I[l+839|0]<<16|I[l+840|0]<<24);F[l+37|0]=d;F[l+38|0]=d>>>8;F[l+39|0]=d>>>16;F[l+40|0]=d>>>24;d=I[l+841|0]|I[l+842|0]<<8;F[l+41|0]=d;F[l+42|0]=d>>>8;F[l+43|0]=I[l+843|0];F[l|0]=I[l+800|0];d=I[l+801|0]|I[l+802|0]<<8|(I[l+803|0]<<16|I[l+804|0]<<24);F[l+1|0]=d;F[l+2|0]=d>>>8;F[l+3|0]=d>>>16;F[l+4|0]=d>>>24;e=I[l+809|0]|I[l+810|0]<<8|(I[l+811|0]<<16|I[l+812|0]<<24);d=I[l+805|0]|I[l+806|0]<<8|(I[l+807|0]<<16|I[l+808|0]<<24);F[l+5|0]=d;F[l+6|0]=d>>>8;F[l+7|0]=d>>>16;F[l+8|0]=d>>>24;F[l+9|0]=e;F[l+10|0]=e>>>8;F[l+11|0]=e>>>16;F[l+12|0]=e>>>24;e=I[l+817|0]|I[l+818|0]<<8|(I[l+819|0]<<16|I[l+820|0]<<24);d=I[l+813|0]|I[l+814|0]<<8|(I[l+815|0]<<16|I[l+816|0]<<24);F[l+13|0]=d;F[l+14|0]=d>>>8;F[l+15|0]=d>>>16;F[l+16|0]=d>>>24;F[l+17|0]=e;F[l+18|0]=e>>>8;F[l+19|0]=e>>>16;F[l+20|0]=e>>>24;e=I[l+825|0]|I[l+826|0]<<8|(I[l+827|0]<<16|I[l+828|0]<<24);d=I[l+821|0]|I[l+822|0]<<8|(I[l+823|0]<<16|I[l+824|0]<<24);F[l+21|0]=d;F[l+22|0]=d>>>8;F[l+23|0]=d>>>16;F[l+24|0]=d>>>24;F[l+25|0]=e;F[l+26|0]=e>>>8;F[l+27|0]=e>>>16;F[l+28|0]=e>>>24;H[l+44>>2]=H[l+844>>2];i=I[l+787|0];e=I[l+849|0];if(!((i|0)!=8|(e|0)!=1)){d=H[H[b>>2]+12>>2];e=0;H[197455]=0;ma(d|0,b|0,l+783|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break gf}g=247178;if(I[l+783|0]!=12){break hf}while(1){d=H[H[b>>2]+12>>2];H[197455]=0;g=l+N(e,3)|0;ma(d|0,b|0,g|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break lf}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,g+1|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break lf}d=H[H[b>>2]+12>>2];H[197455]=0;ma(d|0,b|0,g+2|0,1,1,0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break lf}e=e+1|0;if((e|0)!=256){continue}break}i=I[l+787|0];e=I[l+849|0]}if(!((i&255)!=1|(e&255)!=1)){G[l+2>>1]=65280;G[l+4>>1]=65535;G[l>>1]=0}of:{pf:{if(H[h+44>>2]){d=0;while(1){e=l+N(d,3)|0;i=I[e+2|0];g=I[e+1|0];e=I[e|0];H[197455]=0;Qh(h,d&255,e,g,i,0);e=H[197455];H[197455]=0;if((e|0)==1){break pf}d=d+1|0;if(d>>>0>2]){continue}break}}g=246620;e=Tb(r+(J[l+850>>1]<<3)|0);if(!e){break hf}n=k+1|0;d=0;qf:{while(1){if(H[h+332>>2]){i=246620;break of}k=d;i=I[l+849|0];o=i<<24>>24;g=J[l+850>>1];j=N(o,N(g,d))+f|0;w=B-d|0;r=I[l+787|0];rf:{sf:{if((i|0)!=3){break sf}d=0;if((r|0)!=8){break sf}while(1){g=g&65535;m=I[((g<<1)+d|0)+j|0];i=I[d+j|0];g=I[(d+g|0)+j|0];H[197455]=0;ir(h,d,w,i|g<<8|m<<16);g=H[197455];H[197455]=0;if((g|0)==1){break qf}d=d+1|0;if((n|0)==(d|0)){break rf}g=J[l+850>>1];continue}}tf:{if((i|0)!=4){break tf}d=0;if((r|0)!=8){break tf}while(1){g=g&65535;m=I[((g<<1)+d|0)+j|0];i=I[d+j|0];g=I[(d+g|0)+j|0];H[197455]=0;ir(h,d,w,i|g<<8|m<<16);g=H[197455];H[197455]=0;if((g|0)==1){break jf}uf:{g=N(J[l+850>>1],3)+d|0;if(g>>>0>=v>>>0){break uf}g=I[g+j|0];H[197455]=0;te(h,d,w,g);g=H[197455];H[197455]=0;if((g|0)!=1){break uf}d=ha(782408)|0;break ff}d=d+1|0;if((n|0)==(d|0)){break rf}g=J[l+850>>1];continue}}vf:{if((i|0)==1){d=e;i=g<<16>>16;wf:{xf:{switch((r<<24>>24)-1|0){case 0:if((i|0)<=0){break wf}while(1){g=I[j|0];F[d+7|0]=g&1;F[d|0]=g>>>7;F[d+6|0]=g>>>1&1;F[d+5|0]=g>>>2&1;F[d+4|0]=g>>>3&1;F[d+3|0]=g>>>4&1;F[d+2|0]=g>>>5&1;F[d+1|0]=g>>>6&1;d=d+8|0;j=j+1|0;g=i&65535;i=i-1|0;if(g>>>0>1){continue}break};break wf;case 1:if((i|0)<=0){break wf}if(i&1){g=I[j|0];F[d+3|0]=g&3;F[d|0]=g>>>6;F[d+2|0]=g>>>2&3;F[d+1|0]=g>>>4&3;d=d+4|0;j=j+1|0;g=i-1|0}else{g=i}if((i|0)==1){break wf}while(1){i=I[j|0];F[d+3|0]=i&3;F[d|0]=i>>>6;F[d+2|0]=i>>>2&3;F[d+1|0]=i>>>4&3;i=I[j+1|0];F[d+7|0]=i&3;F[d+4|0]=i>>>6;F[d+6|0]=i>>>2&3;F[d+5|0]=i>>>4&3;d=d+8|0;j=j+2|0;i=g-3|0;g=g-2|0;if((i&65535)>>>0<65534){continue}break};break wf;case 3:if((i|0)<=0){break wf}o=i-1|0;r=i&3;if(r){g=0;while(1){m=I[j|0];F[d+1|0]=m&15;F[d|0]=m>>>4;d=d+2|0;j=j+1|0;i=i-1|0;g=g+1|0;if((r|0)!=(g&65535)){continue}break}}if((o&65535)>>>0<3){break wf}while(1){g=I[j|0];F[d+1|0]=g&15;F[d|0]=g>>>4;g=I[j+1|0];F[d+3|0]=g&15;F[d+2|0]=g>>>4;g=I[j+2|0];F[d+5|0]=g&15;F[d+4|0]=g>>>4;g=I[j+3|0];F[d+7|0]=g&15;F[d+6|0]=g>>>4;d=d+8|0;j=j+4|0;g=i-5|0;i=i-4|0;if((g&65535)>>>0<65534){continue}break};break wf;case 7:break xf;default:break wf}}if((i|0)<=0){break wf}r=i-1|0;m=i&7;if(m){g=0;while(1){F[d|0]=I[j|0];d=d+1|0;j=j+1|0;i=i-1|0;g=g+1|0;if((m|0)!=(g&65535)){continue}break}}if((r&65535)>>>0<7){break wf}while(1){F[d|0]=I[j|0];F[d+1|0]=I[j+1|0];F[d+2|0]=I[j+2|0];F[d+3|0]=I[j+3|0];F[d+4|0]=I[j+4|0];F[d+5|0]=I[j+5|0];F[d+6|0]=I[j+6|0];F[d+7|0]=I[j+7|0];d=d+8|0;j=j+8|0;g=i-9|0;i=i-8|0;if((g&65535)>>>0<65534){continue}break}}break vf}m=e;t=0;r=(r|0)==1&(o|0)<5;s=g<<16>>16;yf:{if(!r|(s|0)<=0){break yf}d=s<<3;i=Nb(m,0,(d|1)-((d|0)<=0?d:1)|0);if((o|0)<=0){break yf}g=j;d=i;while(1){x=I[g|0];if(x&128){F[d|0]=I[d|0]|1}if(x&64){F[d+1|0]=I[d+1|0]|1}if(x&32){F[d+2|0]=I[d+2|0]|1}if(x&16){F[d+3|0]=I[d+3|0]|1}if(x&8){F[d+4|0]=I[d+4|0]|1}if(x&4){F[d+5|0]=I[d+5|0]|1}if(x&2){F[d+6|0]=I[d+6|0]|1}if(x&1){F[d+7|0]=I[d+7|0]|1}g=g+1|0;d=d+8|0;t=t+1|0;if((s|0)!=(t|0)){continue}break}if((o|0)==1){break yf}t=0;j=j+s|0;g=j;d=i;while(1){x=I[g|0];if(x&128){F[d|0]=I[d|0]|2}if(x&64){F[d+1|0]=I[d+1|0]|2}if(x&32){F[d+2|0]=I[d+2|0]|2}if(x&16){F[d+3|0]=I[d+3|0]|2}if(x&8){F[d+4|0]=I[d+4|0]|2}if(x&4){F[d+5|0]=I[d+5|0]|2}if(x&2){F[d+6|0]=I[d+6|0]|2}if(x&1){F[d+7|0]=I[d+7|0]|2}g=g+1|0;d=d+8|0;t=t+1|0;if((s|0)!=(t|0)){continue}break}if((o|0)==2){break yf}t=0;j=j+s|0;g=j;d=i;while(1){i=I[g|0];if(i&128){F[d|0]=I[d|0]|4}if(i&64){F[d+1|0]=I[d+1|0]|4}if(i&32){F[d+2|0]=I[d+2|0]|4}if(i&16){F[d+3|0]=I[d+3|0]|4}if(i&8){F[d+4|0]=I[d+4|0]|4}if(i&4){F[d+5|0]=I[d+5|0]|4}if(i&2){F[d+6|0]=I[d+6|0]|4}if(i&1){F[d+7|0]=I[d+7|0]|4}g=g+1|0;d=d+8|0;t=t+1|0;if((s|0)!=(t|0)){continue}break}if((o|0)==3){break yf}j=j+s|0;g=0;while(1){d=I[j|0];if(d&128){F[m|0]=I[m|0]|8}if(d&64){F[m+1|0]=I[m+1|0]|8}if(d&32){F[m+2|0]=I[m+2|0]|8}if(d&16){F[m+3|0]=I[m+3|0]|8}if(d&8){F[m+4|0]=I[m+4|0]|8}if(d&4){F[m+5|0]=I[m+5|0]|8}if(d&2){F[m+6|0]=I[m+6|0]|8}if(d&1){F[m+7|0]=I[m+7|0]|8}j=j+1|0;m=m+8|0;g=g+1|0;if((s|0)!=(g|0)){continue}break}}if(r){break vf}i=247844;break of}d=0;while(1){g=I[d+e|0];H[197455]=0;Tg(h,d,w,g);g=H[197455];H[197455]=0;if((g|0)==1){break kf}d=d+1|0;if((n|0)!=(d|0)){continue}break}}d=k+1|0;if((k|0)!=(B|0)){continue}break}Kb(f);Kb(e);d=1;break _e}d=ha(782408)|0;break ff}e=0;d=ha(782408)|0;break ff}d=oa(4)|0;H[d>>2]=i;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break bf}break gf}e=0;d=ha(782408)|0;break ff}e=0;d=ha(782408)|0;break ff}d=ha(782408)|0;break ff}d=ha(782408)|0;break ff}d=oa(4)|0;H[d>>2]=g;e=0;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)!=1){break bf}}d=ha(782408)|0}g=_()|0;break $e}X()}d=ha(782408)|0;e=0;g=_()|0}if((ya(782408)|0)!=(g|0)){break a}d=sa(d|0)|0;if(I[d|0]){Ld(h+72|0,d,255)}if(f){Kb(f)}if(e){Kb(e)}ra()}d=0}xb=l+912|0;break Ze}if(d){break d}he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](h);if(c){break e}}h=Qb(940);H[197455]=0;q=Bd(h,9);d=H[197455];H[197455]=0;if((d|0)!=1){break g}}a=$()|0;_()|0;Kb(h);break b}H[h>>2]=247808;yg(q,a);j=0;zf:{if(b){Af:{Bf:{Cf:{Df:{Ef:{Ff:{Gf:{Hf:{while(1){d=H[H[b>>2]+36>>2];H[197455]=0;e=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Hf}if(!e){d=H[H[b>>2]+48>>2];H[197455]=0;e=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Hf}j=e&127|j<<7;if(e&128){continue}}break}while(1){d=H[H[b>>2]+36>>2];H[197455]=0;e=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ef}if(!e){d=H[H[b>>2]+48>>2];H[197455]=0;e=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ef}if(e&128){continue}}break}e=0;while(1){d=H[H[b>>2]+36>>2];H[197455]=0;f=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ff}if(!f){d=H[H[b>>2]+48>>2];H[197455]=0;f=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ff}e=f&127|e<<7;if(f&128){continue}}break}d=0;while(1){f=H[H[b>>2]+36>>2];H[197455]=0;g=aa(f|0,b|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Gf}if(!g){f=H[H[b>>2]+48>>2];H[197455]=0;g=aa(f|0,b|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Gf}d=g&127|d<<7;if(g&128){continue}}break}f=H[H[b>>2]+36>>2];H[197455]=0;g=aa(f|0,b|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Bf}f=245643;if(!g){break Df}break Cf}d=ha(782408)|0;break Af}d=ha(782408)|0;break Af}d=ha(782408)|0;break Af}d=ha(782408)|0;break Af}f=245878;if(j){break Cf}H[h+20>>2]=d;H[h+16>>2]=e;f=246280;if((e|0)<=0|(d|0)<=0){break Cf}if(H[h+332>>2]==-1){H[h+68>>2]=9;f=1;break zf}H[197455]=0;pa(978,h|0,e|0,d|0,1,9)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Bf}H[197455]=0;e=H[h+4>>2];d=H[197455];H[197455]=0;if((d|0)==1){break Bf}f=246465;if(!e){break Cf}H[197455]=0;Jj(h);d=H[197455];H[197455]=0;if((d|0)==1){break Bf}e=H[h+16>>2];H[197455]=0;Xc(h,0);d=H[197455];H[197455]=0;m=(e+7|0)/8|0;If:{if((d|0)==1){break If}H[197455]=0;j=H[h+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break If}H[197455]=0;i=Xc(h,0);d=H[197455];H[197455]=0;if((d|0)==1){break If}H[197455]=0;g=H[h+52>>2];d=H[197455];H[197455]=0;if((d|0)==1){break If}H[197455]=0;e=H[h+20>>2];d=H[197455];H[197455]=0;if((d|0)==1){break If}f=1;if(H[h+20>>2]<=0){break zf}e=i+N(g,e-1|0)|0;d=0;while(1){Jf:{f=H[H[b>>2]+12>>2];H[197455]=0;ma(f|0,b|0,e|0,m|0,1,0,0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Jf}j=j-1|0;if((j|0)>0){H[197455]=0;g=H[h+52>>2];f=H[197455];H[197455]=0;if((f|0)==1){break Jf}e=e-g|0}f=1;d=d+1|0;if((d|0)>2]){continue}break zf}break}d=ha(782408)|0;break Af}d=ha(782408)|0;break Af}d=oa(4)|0;H[d>>2]=f;H[197455]=0;ga(1009,d|0,782408,0);d=H[197455];H[197455]=0;if((d|0)==1){break Bf}X()}d=ha(782408)|0}if((_()|0)!=(ya(782408)|0)){break a}d=sa(d|0)|0;if(I[d|0]){Ld(h+72|0,d,255)}ra()}f=0;break zf}if(f){break d}he(a+72|0,q+72|0);zb[H[H[b>>2]+20>>2]](b,Y,0)|0;zb[H[H[h>>2]+4>>2]](h);if(c){break e}}c=I[247158]|I[247159]<<8|(I[247160]<<16|I[247161]<<24);b=I[247154]|I[247155]<<8|(I[247156]<<16|I[247157]<<24);F[a+96|0]=b;F[a+97|0]=b>>>8;F[a+98|0]=b>>>16;F[a+99|0]=b>>>24;F[a+100|0]=c;F[a+101|0]=c>>>8;F[a+102|0]=c>>>16;F[a+103|0]=c>>>24;c=I[247150]|I[247151]<<8|(I[247152]<<16|I[247153]<<24);b=I[247146]|I[247147]<<8|(I[247148]<<16|I[247149]<<24);F[a+88|0]=b;F[a+89|0]=b>>>8;F[a+90|0]=b>>>16;F[a+91|0]=b>>>24;F[a+92|0]=c;F[a+93|0]=c>>>8;F[a+94|0]=c>>>16;F[a+95|0]=c>>>24;c=I[247142]|I[247143]<<8|(I[247144]<<16|I[247145]<<24);b=I[247138]|I[247139]<<8|(I[247140]<<16|I[247141]<<24);F[a+80|0]=b;F[a+81|0]=b>>>8;F[a+82|0]=b>>>16;F[a+83|0]=b>>>24;F[a+84|0]=c;F[a+85|0]=c>>>8;F[a+86|0]=c>>>16;F[a+87|0]=c>>>24;c=I[247134]|I[247135]<<8|(I[247136]<<16|I[247137]<<24);b=I[247130]|I[247131]<<8|(I[247132]<<16|I[247133]<<24);F[a+72|0]=b;F[a+73|0]=b>>>8;F[a+74|0]=b>>>16;F[a+75|0]=b>>>24;F[a+76|0]=c;F[a+77|0]=c>>>8;F[a+78|0]=c>>>16;F[a+79|0]=c>>>24;return 0}return 0}$k(a,q,1);zb[H[H[h>>2]+4>>2]](h);return 1}$k(a,q,1);zb[H[H[h>>2]+4>>2]](q);return 1}ea(a|0);X()}ea(d|0);X()}function MX(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=xb-1600|0;xb=c;a:{b:{c:{d:{if(H[a>>2]==-1){break d}d=xb-80|0;xb=d;Qy(d- -64|0,a);e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{f=I[d+75|0];g=f<<24>>24<0?H[d+68>>2]:f;v:{if(!g){break v}H[197455]=0;f=aa(899,32)|0;e=H[197455];H[197455]=0;if((e|0)==1){break g}H[d+48>>2]=f;H[d+52>>2]=7;H[d+56>>2]=-2147483640;H[197455]=0;Mb(f,432412,7);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[f+28>>2]=0;H[197455]=0;f=a+44|0;ga(2941,f|0,d+48|0,1);e=H[197455];H[197455]=0;if((e|0)==1){break u}if(F[d+59|0]<0){Kb(H[d+48>>2])}H[197455]=0;e=aa(899,16)|0;h=H[197455];H[197455]=0;if((h|0)==1){break t}H[d+32>>2]=e;H[d+36>>2]=2;H[d+40>>2]=-2147483644;H[197455]=0;Mb(e,432444,2);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[e+8>>2]=0;H[197455]=0;ga(2942,f|0,d+32|0,d- -64|0);e=H[197455];H[197455]=0;if((e|0)==1){break s}if(F[d+43|0]<0){Kb(H[d+32>>2])}H[197455]=0;e=aa(899,32)|0;h=H[197455];H[197455]=0;if((h|0)==1){break r}H[d+32>>2]=e;H[d+36>>2]=5;H[d+40>>2]=-2147483640;H[197455]=0;Mb(e,428576,5);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[e+20>>2]=0;i=M[a+24>>3];w:{if(i!=0){j=M[a+8>>3];H[197455]=0;fa(1756,d+16|0,+(j*8/i),-1);e=H[197455];H[197455]=0;if((e|0)!=1){break w}a=$()|0;_()|0;break p}F[d+27|0]=1;H[197455]=0;Mb(d+16|0,432456,1);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[d+20>>2]=0}H[197455]=0;ga(2942,f|0,d+32|0,d+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break q}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+43|0]<0){Kb(H[d+32>>2])}H[197455]=0;e=aa(899,32)|0;h=H[197455];H[197455]=0;if((h|0)==1){break o}H[d+32>>2]=e;H[d+36>>2]=6;H[d+40>>2]=-2147483640;H[197455]=0;Mb(e,428600,6);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[e+24>>2]=0;i=M[a+32>>3];x:{if(i!=0){j=M[a+8>>3];H[197455]=0;fa(1756,d+16|0,+(j*8/i),-1);e=H[197455];H[197455]=0;if((e|0)!=1){break x}a=$()|0;_()|0;break m}F[d+27|0]=1;H[197455]=0;Mb(d+16|0,432456,1);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[d+20>>2]=0}H[197455]=0;ga(2942,f|0,d+32|0,d+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break n}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+43|0]<0){Kb(H[d+32>>2])}H[197455]=0;e=aa(899,64)|0;h=H[197455];H[197455]=0;if((h|0)==1){break l}H[d+32>>2]=e;H[d+36>>2]=12;H[d+40>>2]=-2147483632;H[197455]=0;Mb(e,432464,12);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[e+48>>2]=0;H[197455]=0;ga(2943,f|0,d+32|0,432516);e=H[197455];H[197455]=0;if((e|0)==1){break k}if(F[d+43|0]<0){Kb(H[d+32>>2])}H[197455]=0;e=aa(899,64)|0;h=H[197455];H[197455]=0;if((h|0)==1){break j}H[d+32>>2]=e;H[d+36>>2]=15;H[d+40>>2]=-2147483632;H[197455]=0;Mb(e,432588,15);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[e+60>>2]=0;H[197455]=0;ga(2943,f|0,d+32|0,432652);e=H[197455];H[197455]=0;if((e|0)==1){break i}if(F[d+43|0]<0){Kb(H[d+32>>2])}H[197455]=0;e=aa(899,32)|0;h=H[197455];H[197455]=0;if((h|0)==1){break g}H[d>>2]=e;H[d+4>>2]=7;H[d+8>>2]=-2147483640;H[197455]=0;Mb(e,432412,7);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[e+28>>2]=0;H[197455]=0;ka(2944,f|0,d|0,1,0);f=H[197455];H[197455]=0;if((f|0)==1){break h}if(F[d+11|0]>=0){break v}Kb(H[d>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}xb=d+80|0;d=(g|0)!=0;break e}a=$()|0;_()|0;if(F[d+59|0]>=0){break f}Kb(H[d+48>>2]);break f}a=$()|0;_()|0;break f}a=$()|0;_()|0;if(F[d+43|0]>=0){break f}Kb(H[d+32>>2]);break f}a=$()|0;_()|0;break f}a=$()|0;_()|0;if(F[d+27|0]>=0){break p}Kb(H[d+16>>2])}if(F[d+43|0]>=0){break f}Kb(H[d+32>>2]);break f}a=$()|0;_()|0;break f}a=$()|0;_()|0;if(F[d+27|0]>=0){break m}Kb(H[d+16>>2])}if(F[d+43|0]>=0){break f}Kb(H[d+32>>2]);break f}a=$()|0;_()|0;break f}a=$()|0;_()|0;if(F[d+43|0]>=0){break f}Kb(H[d+32>>2]);break f}a=$()|0;_()|0;break f}a=$()|0;_()|0;if(F[d+43|0]>=0){break f}Kb(H[d+32>>2]);break f}a=$()|0;_()|0;if(F[d+11|0]>=0){break f}Kb(H[d>>2]);break f}a=$()|0;_()|0}if(F[d+75|0]<0){Kb(H[d+64>>2])}break b}if(!d){break d}d=xb-192|0;xb=d;y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{if(H[a+40>>2]<0){break _}f=Qb(32);H[d+176>>2]=f;H[d+180>>2]=4;H[d+184>>2]=-2147483640;H[197455]=0;Mb(f,428540,4);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[f+16>>2]=0;H[197455]=0;f=a+44|0;ga(2941,f|0,d+176|0,1);e=H[197455];H[197455]=0;if((e|0)==1){break Z}if(F[d+187|0]<0){Kb(H[d+176>>2])}F[d+171|0]=1;H[197455]=0;Mb(d+160|0,428560,1);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[197455]=0;H[d+164>>2]=0;ga(2943,f|0,d+160|0,432696);e=H[197455];H[197455]=0;if((e|0)==1){break Y}if(F[d+171|0]<0){Kb(H[d+160>>2])}F[d+171|0]=1;H[197455]=0;Mb(d+160|0,428568,1);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[197455]=0;H[d+164>>2]=0;ga(2943,f|0,d+160|0,432696);e=H[197455];H[197455]=0;if((e|0)==1){break X}if(F[d+171|0]<0){Kb(H[d+160>>2])}e=Qb(32);H[d+160>>2]=e;H[d+164>>2]=5;H[d+168>>2]=-2147483640;H[197455]=0;Mb(e,428576,5);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[e+20>>2]=0;i=M[a+8>>3];H[197455]=0;fa(1756,d+144|0,+(i*8),-1);e=H[197455];H[197455]=0;if((e|0)==1){break W}H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);e=H[197455];H[197455]=0;if((e|0)==1){break V}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}e=Qb(32);H[d+160>>2]=e;H[d+164>>2]=6;H[d+168>>2]=-2147483640;H[197455]=0;Mb(e,428600,6);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[e+24>>2]=0;i=M[a+8>>3];H[197455]=0;fa(1756,d+144|0,+(i*8),-1);e=H[197455];H[197455]=0;if((e|0)==1){break U}H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);e=H[197455];H[197455]=0;if((e|0)==1){break T}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}e=Qb(32);H[d+160>>2]=e;H[d+164>>2]=4;H[d+168>>2]=-2147483640;H[197455]=0;Mb(e,428628,4);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[e+16>>2]=0;e=I[a+40|0];H[197455]=0;ba(1778,d+48|0,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break S}H[197455]=0;e=ca(1758,d+48|0,0,428508)|0;g=H[197455];H[197455]=0;if((g|0)==1){break R}H[d+72>>2]=H[e+8>>2];g=H[e+4>>2];H[d+64>>2]=H[e>>2];H[d+68>>2]=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;e=da(1699,d- -64|0,428528)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Q}H[d+88>>2]=H[e+8>>2];g=H[e+4>>2];H[d+80>>2]=H[e>>2];H[d+84>>2]=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;e=I[a+41|0];H[197455]=0;ba(1778,d+32|0,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break P}H[197455]=0;e=I[d+43|0];g=e<<24>>24<0;e=ca(1759,d+80|0,(g?H[d+32>>2]:d+32|0)|0,(g?H[d+36>>2]:e)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break O}H[d+104>>2]=H[e+8>>2];g=H[e+4>>2];H[d+96>>2]=H[e>>2];H[d+100>>2]=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;e=da(1699,d+96|0,428528)|0;g=H[197455];H[197455]=0;if((g|0)==1){break N}H[d+120>>2]=H[e+8>>2];g=H[e+4>>2];H[d+112>>2]=H[e>>2];H[d+116>>2]=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;e=I[a+42|0];H[197455]=0;ba(1778,d+16|0,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break M}H[197455]=0;e=I[d+27|0];g=e<<24>>24<0;e=ca(1759,d+112|0,(g?H[d+16>>2]:d+16|0)|0,(g?H[d+20>>2]:e)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break L}H[d+136>>2]=H[e+8>>2];g=H[e+4>>2];H[d+128>>2]=H[e>>2];H[d+132>>2]=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+128|0,41);e=H[197455];H[197455]=0;if((e|0)==1){break K}H[d+152>>2]=H[d+136>>2];H[d+136>>2]=0;e=H[d+132>>2];H[d+144>>2]=H[d+128>>2];H[d+148>>2]=e;H[d+128>>2]=0;H[d+132>>2]=0;H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);e=H[197455];H[197455]=0;if((e|0)==1){break J}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+43|0]<0){Kb(H[d+32>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}e=Qb(32);H[d>>2]=e;H[d+4>>2]=4;H[d+8>>2]=-2147483640;H[197455]=0;Mb(e,428540,4);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[e+16>>2]=0;H[197455]=0;ka(2944,f|0,d|0,1,1);f=H[197455];H[197455]=0;if((f|0)==1){break A}if(F[d+11|0]>=0){break _}Kb(H[d>>2])}xb=d+192|0;break y}a=$()|0;_()|0;if(F[d+187|0]>=0){break b}Kb(H[d+176>>2]);break b}a=$()|0;_()|0;break z}a=$()|0;_()|0;break z}a=$()|0;_()|0;break z}a=$()|0;_()|0;if(F[d+155|0]>=0){break z}Kb(H[d+144>>2]);break z}a=$()|0;_()|0;break z}a=$()|0;_()|0;if(F[d+155|0]>=0){break z}Kb(H[d+144>>2]);break z}a=$()|0;_()|0;break z}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;break D}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;_()|0;break G}a=$()|0;_()|0;break H}a=$()|0;_()|0;break I}a=$()|0;_()|0;if(F[d+155|0]>=0){break I}Kb(H[d+144>>2])}if(F[d+139|0]>=0){break H}Kb(H[d+128>>2])}if(F[d+27|0]>=0){break G}Kb(H[d+16>>2])}if(F[d+123|0]>=0){break F}Kb(H[d+112>>2])}if(F[d+107|0]>=0){break E}Kb(H[d+96>>2])}if(F[d+43|0]>=0){break D}Kb(H[d+32>>2])}if(F[d+91|0]>=0){break C}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break B}Kb(H[d+64>>2])}if(F[d+59|0]>=0){break z}Kb(H[d+48>>2]);break z}a=$()|0;_()|0;if(F[d+11|0]>=0){break b}Kb(H[d>>2]);break b}if(F[d+171|0]>=0){break b}Kb(H[d+160>>2]);break b}$:{aa:{switch(H[a>>2]){case 1:H[c+984>>2]=0;H[c+988>>2]=0;H[c+976>>2]=0;H[c+980>>2]=1071644672;H[c+1592>>2]=0;H[c+1596>>2]=1075838976;H[c+1584>>2]=0;H[c+1588>>2]=1071644672;Dm(a,c+976|0,c+1584|0);break $;case 2:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074528256;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+1580>>2]=8;H[c+1088>>2]=0;H[c+1092>>2]=1075576832;H[c+1072>>2]=0;H[c+1076>>2]=1075314688;H[c+1056>>2]=0;H[c+1060>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1074790400;H[c+1024>>2]=0;H[c+1028>>2]=1074266112;H[c+1008>>2]=0;H[c+1012>>2]=1073741824;H[c+992>>2]=0;H[c+996>>2]=1072693248;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1576>>2]=c+976;b=H[c+1580>>2];H[c>>2]=H[c+1576>>2];H[c+4>>2]=b;ba:{d=fd(c+1584|0,c);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ba}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}a=$()|0;_()|0;c=H[d>>2];if(!c){break b}H[d+4>>2]=c;Kb(c);break b;case 3:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074528256;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+1572>>2]=8;H[c+1088>>2]=0;H[c+1092>>2]=0;H[c+1072>>2]=0;H[c+1076>>2]=1072693248;H[c+1056>>2]=0;H[c+1060>>2]=1073741824;H[c+1040>>2]=0;H[c+1044>>2]=1074266112;H[c+1024>>2]=0;H[c+1028>>2]=1074790400;H[c+1008>>2]=0;H[c+1012>>2]=1075052544;H[c+992>>2]=0;H[c+996>>2]=1075314688;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1075576832;H[c+1568>>2]=c+976;b=H[c+1572>>2];H[c+8>>2]=H[c+1568>>2];H[c+12>>2]=b;ca:{d=fd(c+1584|0,c+8|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ca}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 4:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1071644672;H[c+1016>>2]=0;H[c+1020>>2]=0;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1564>>2]=2;H[c+1008>>2]=0;H[c+1012>>2]=1071644672;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1560>>2]=c+976;b=H[c+1564>>2];H[c+16>>2]=H[c+1560>>2];H[c+20>>2]=b;da:{d=td(c+1584|0,c+16|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break da}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 5:b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1152>>2]=0;H[c+1156>>2]=0;H[c+1136>>2]=0;H[c+1140>>2]=1075576832;H[c+1120>>2]=0;H[c+1124>>2]=1072693248;H[c+1104>>2]=0;H[c+1108>>2]=1075314688;H[c+1088>>2]=0;H[c+1092>>2]=1073741824;H[c+1072>>2]=0;H[c+1076>>2]=1075052544;H[c+1056>>2]=0;H[c+1060>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1073741824;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1556>>2]=12;H[c+1552>>2]=c+976;b=H[c+1556>>2];H[c+32>>2]=H[c+1552>>2];H[c+36>>2]=b;d=fd(c+1584|0,c+32|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075052544;H[c+1016>>2]=0;H[c+1020>>2]=1074921472;H[c+1e3>>2]=0;H[c+1004>>2]=1074528256;H[c+1548>>2]=2;H[c+1544>>2]=c+976;b=H[c+1548>>2];H[c+24>>2]=H[c+1544>>2];H[c+28>>2]=b;H[c+1008>>2]=0;H[c+1012>>2]=1074266112;H[c+992>>2]=0;H[c+996>>2]=1075052544;H[c+984>>2]=0;H[c+988>>2]=1074528256;H[c+976>>2]=0;H[c+980>>2]=1074266112;ea:{d=td(c+1584|0,c+24|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break ea}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 6:H[c+1e3>>2]=0;H[c+1004>>2]=1074921472;H[c+1540>>2]=2;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1536>>2]=c+976;b=H[c+1540>>2];H[c+40>>2]=H[c+1536>>2];H[c+44>>2]=b;fa:{d=fd(c+1584|0,c+40|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break fa}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 7:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075445760;H[c+1016>>2]=0;H[c+1020>>2]=1074921472;H[c+1e3>>2]=0;H[c+1004>>2]=1074003968;H[c+1532>>2]=4;H[c+1024>>2]=0;H[c+1028>>2]=1074790400;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1528>>2]=c+976;b=H[c+1532>>2];H[c+48>>2]=H[c+1528>>2];H[c+52>>2]=b;ga:{d=fd(c+1584|0,c+48|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ga}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 8:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074003968;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1524>>2]=8;H[c+1088>>2]=0;H[c+1092>>2]=1075314688;H[c+1072>>2]=0;H[c+1076>>2]=1073741824;H[c+1056>>2]=0;H[c+1060>>2]=1074790400;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1073741824;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1520>>2]=c+976;b=H[c+1524>>2];H[c+56>>2]=H[c+1520>>2];H[c+60>>2]=b;ha:{d=fd(c+1584|0,c+56|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ha}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 9:b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1216>>2]=0;H[c+1220>>2]=1075314688;H[c+1200>>2]=0;H[c+1204>>2]=1073741824;H[c+1184>>2]=0;H[c+1188>>2]=1074790400;H[c+1168>>2]=0;H[c+1172>>2]=0;H[c+1152>>2]=0;H[c+1156>>2]=1075314688;H[c+1136>>2]=0;H[c+1140>>2]=1073741824;H[c+1120>>2]=0;H[c+1124>>2]=1074790400;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1088>>2]=0;H[c+1092>>2]=1075314688;H[c+1072>>2]=0;H[c+1076>>2]=1073741824;H[c+1056>>2]=0;H[c+1060>>2]=1074790400;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1073741824;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1516>>2]=16;H[c+1512>>2]=c+976;b=H[c+1516>>2];H[c+64>>2]=H[c+1512>>2];H[c+68>>2]=b;ia:{d=fd(c+1584|0,c- -64|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ia}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 10:b=c+1352|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1336|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1320|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1304|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1344>>2]=0;H[c+1348>>2]=1075576832;H[c+1328>>2]=0;H[c+1332>>2]=1074266112;H[c+1312>>2]=0;H[c+1316>>2]=1075314688;H[c+1296>>2]=0;H[c+1300>>2]=1074790400;H[c+1280>>2]=0;H[c+1284>>2]=1073741824;H[c+1264>>2]=0;H[c+1268>>2]=0;H[c+1248>>2]=0;H[c+1252>>2]=1075052544;H[c+1232>>2]=0;H[c+1236>>2]=1072693248;H[c+1216>>2]=0;H[c+1220>>2]=1075314688;H[c+1200>>2]=0;H[c+1204>>2]=1074790400;H[c+1184>>2]=0;H[c+1188>>2]=1073741824;H[c+1168>>2]=0;H[c+1172>>2]=0;H[c+1152>>2]=0;H[c+1156>>2]=1075576832;H[c+1136>>2]=0;H[c+1140>>2]=1074266112;H[c+1120>>2]=0;H[c+1124>>2]=1075314688;H[c+1104>>2]=0;H[c+1108>>2]=1074790400;H[c+1088>>2]=0;H[c+1092>>2]=1073741824;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1056>>2]=0;H[c+1060>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1073741824;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1508>>2]=24;H[c+1504>>2]=c+976;b=H[c+1508>>2];H[c+72>>2]=H[c+1504>>2];H[c+76>>2]=b;ja:{d=fd(c+1584|0,c+72|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ja}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 11:b=c+1448|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1432|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1416|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1400|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1384|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1368|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1352|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1336|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1320|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1304|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1440>>2]=0;H[c+1444>>2]=1075576832;H[c+1424>>2]=0;H[c+1428>>2]=1075052544;H[c+1408>>2]=0;H[c+1412>>2]=1074266112;H[c+1392>>2]=0;H[c+1396>>2]=1075314688;H[c+1376>>2]=0;H[c+1380>>2]=1074790400;H[c+1360>>2]=0;H[c+1364>>2]=1073741824;H[c+1344>>2]=0;H[c+1348>>2]=0;H[c+1328>>2]=0;H[c+1332>>2]=1075576832;H[c+1312>>2]=0;H[c+1316>>2]=1075052544;H[c+1296>>2]=0;H[c+1300>>2]=1074266112;H[c+1280>>2]=0;H[c+1284>>2]=1072693248;H[c+1264>>2]=0;H[c+1268>>2]=1075314688;H[c+1248>>2]=0;H[c+1252>>2]=1074790400;H[c+1232>>2]=0;H[c+1236>>2]=1073741824;H[c+1216>>2]=0;H[c+1220>>2]=0;H[c+1200>>2]=0;H[c+1204>>2]=1075576832;H[c+1184>>2]=0;H[c+1188>>2]=1074266112;H[c+1168>>2]=0;H[c+1172>>2]=1072693248;H[c+1152>>2]=0;H[c+1156>>2]=1075314688;H[c+1136>>2]=0;H[c+1140>>2]=1074790400;H[c+1120>>2]=0;H[c+1124>>2]=1073741824;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1088>>2]=0;H[c+1092>>2]=1075576832;H[c+1072>>2]=0;H[c+1076>>2]=1075052544;H[c+1056>>2]=0;H[c+1060>>2]=1074266112;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1073741824;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1500>>2]=30;H[c+1496>>2]=c+976;b=H[c+1500>>2];H[c+80>>2]=H[c+1496>>2];H[c+84>>2]=b;ka:{d=fd(c+1584|0,c+80|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ka}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 12:b=c+1480|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1464|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1448|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1432|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1416|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1400|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1384|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1368|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1352|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1336|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1320|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1304|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1472>>2]=0;H[c+1476>>2]=1075576832;H[c+1456>>2]=0;H[c+1460>>2]=1075052544;H[c+1440>>2]=0;H[c+1444>>2]=1074266112;H[c+1424>>2]=0;H[c+1428>>2]=1072693248;H[c+1408>>2]=0;H[c+1412>>2]=1075314688;H[c+1392>>2]=0;H[c+1396>>2]=1074790400;H[c+1376>>2]=0;H[c+1380>>2]=1073741824;H[c+1360>>2]=0;H[c+1364>>2]=0;H[c+1344>>2]=0;H[c+1348>>2]=1075576832;H[c+1328>>2]=0;H[c+1332>>2]=1075052544;H[c+1312>>2]=0;H[c+1316>>2]=1074266112;H[c+1296>>2]=0;H[c+1300>>2]=1072693248;H[c+1280>>2]=0;H[c+1284>>2]=1075314688;H[c+1264>>2]=0;H[c+1268>>2]=1074790400;H[c+1248>>2]=0;H[c+1252>>2]=1073741824;H[c+1232>>2]=0;H[c+1236>>2]=0;H[c+1216>>2]=0;H[c+1220>>2]=1075576832;H[c+1200>>2]=0;H[c+1204>>2]=1075052544;H[c+1184>>2]=0;H[c+1188>>2]=1074266112;H[c+1168>>2]=0;H[c+1172>>2]=1072693248;H[c+1152>>2]=0;H[c+1156>>2]=1075314688;H[c+1136>>2]=0;H[c+1140>>2]=1074790400;H[c+1120>>2]=0;H[c+1124>>2]=1073741824;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1088>>2]=0;H[c+1092>>2]=1075576832;H[c+1072>>2]=0;H[c+1076>>2]=1075052544;H[c+1056>>2]=0;H[c+1060>>2]=1074266112;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1073741824;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1492>>2]=32;H[c+1488>>2]=c+976;b=H[c+1492>>2];H[c+88>>2]=H[c+1488>>2];H[c+92>>2]=b;la:{d=fd(c+1584|0,c+88|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break la}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 13:b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075576832;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1200>>2]=0;H[c+1204>>2]=1075314688;H[c+1168>>2]=0;H[c+1172>>2]=1073741824;H[c+1136>>2]=0;H[c+1140>>2]=1074790400;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1072>>2]=0;H[c+1076>>2]=1075314688;H[c+1040>>2]=0;H[c+1044>>2]=1073741824;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1074266112;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+972>>2]=8;H[c+968>>2]=c+976;b=H[c+972>>2];H[c+104>>2]=H[c+968>>2];H[c+108>>2]=b;d=td(c+1584|0,c+104|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+1248>>2]=0;H[c+1252>>2]=1075576832;H[c+1232>>2]=0;H[c+1236>>2]=1075052544;H[c+1216>>2]=0;H[c+1220>>2]=1074266112;H[c+1200>>2]=0;H[c+1204>>2]=1072693248;H[c+1184>>2]=0;H[c+1188>>2]=0;H[c+1168>>2]=0;H[c+1172>>2]=1075576832;H[c+1152>>2]=0;H[c+1156>>2]=1075052544;H[c+1136>>2]=0;H[c+1140>>2]=1074266112;H[c+1120>>2]=0;H[c+1124>>2]=1072693248;H[c+1104>>2]=0;H[c+1108>>2]=1075576832;H[c+1088>>2]=0;H[c+1092>>2]=1075052544;H[c+1072>>2]=0;H[c+1076>>2]=1074266112;H[c+1056>>2]=0;H[c+1060>>2]=1072693248;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1024>>2]=0;H[c+1028>>2]=1075576832;H[c+1008>>2]=0;H[c+1012>>2]=1075052544;H[c+992>>2]=0;H[c+996>>2]=1074266112;H[c+984>>2]=0;H[c+988>>2]=1073217536;H[c+976>>2]=0;H[c+980>>2]=1072693248;H[c+964>>2]=18;H[c+960>>2]=c+976;b=H[c+964>>2];H[c+96>>2]=H[c+960>>2];H[c+100>>2]=b;ma:{d=fd(c+1584|0,c+96|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ma}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 14:b=c+1480|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1472|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1464|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1448|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1440|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1432|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1416|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1408|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1400|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1384|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1376|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1368|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1352|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1344|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1336|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1320|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1312|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1304|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1280|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1248|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1456>>2]=0;H[c+1460>>2]=1074266112;H[c+1424>>2]=0;H[c+1428>>2]=0;H[c+1392>>2]=0;H[c+1396>>2]=1075052544;H[c+1360>>2]=0;H[c+1364>>2]=1072693248;H[c+1328>>2]=0;H[c+1332>>2]=1074266112;H[c+1296>>2]=0;H[c+1300>>2]=0;H[c+1264>>2]=0;H[c+1268>>2]=1075052544;H[c+1232>>2]=0;H[c+1236>>2]=1072693248;H[c+1200>>2]=0;H[c+1204>>2]=1074266112;H[c+1168>>2]=0;H[c+1172>>2]=0;H[c+1136>>2]=0;H[c+1140>>2]=1075052544;H[c+1104>>2]=0;H[c+1108>>2]=1072693248;H[c+1072>>2]=0;H[c+1076>>2]=1074266112;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=1075052544;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1072693248;H[c+956>>2]=16;H[c+952>>2]=c+976;b=H[c+956>>2];H[c+120>>2]=H[c+952>>2];H[c+124>>2]=b;d=td(c+1584|0,c+120|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075707904;H[c+1016>>2]=0;H[c+1020>>2]=1075183616;H[c+1e3>>2]=0;H[c+1004>>2]=1074528256;H[c+948>>2]=4;H[c+944>>2]=c+976;b=H[c+948>>2];H[c+112>>2]=H[c+944>>2];H[c+116>>2]=b;H[c+1024>>2]=0;H[c+1028>>2]=1075576832;H[c+1008>>2]=0;H[c+1012>>2]=1075576832;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1073217536;H[c+976>>2]=0;H[c+980>>2]=1075576832;na:{d=fd(c+1584|0,c+112|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break na}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 15:b=c+1352|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1344|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1336|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1320|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1312|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1304|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1280|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1248|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1328>>2]=0;H[c+1332>>2]=0;H[c+1296>>2]=0;H[c+1300>>2]=1074266112;H[c+1264>>2]=0;H[c+1268>>2]=0;H[c+1232>>2]=0;H[c+1236>>2]=0;H[c+1200>>2]=0;H[c+1204>>2]=1075052544;H[c+1168>>2]=0;H[c+1172>>2]=1072693248;H[c+1136>>2]=0;H[c+1140>>2]=0;H[c+1104>>2]=0;H[c+1108>>2]=1074266112;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=1075052544;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1072693248;H[c+940>>2]=12;H[c+936>>2]=c+976;b=H[c+940>>2];H[c+136>>2]=H[c+936>>2];H[c+140>>2]=b;d=td(c+1584|0,c+136|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}H[c+1e3>>2]=0;H[c+1004>>2]=1075445760;H[c+932>>2]=2;H[c+928>>2]=c+976;b=H[c+932>>2];H[c+128>>2]=H[c+928>>2];H[c+132>>2]=b;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1074003968;H[c+976>>2]=0;H[c+980>>2]=1075576832;oa:{d=fd(c+1584|0,c+128|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break oa}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 16:b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1280|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1248|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1264>>2]=0;H[c+1268>>2]=0;H[c+1232>>2]=0;H[c+1236>>2]=0;H[c+1200>>2]=0;H[c+1204>>2]=0;H[c+1168>>2]=0;H[c+1172>>2]=1074790400;H[c+1136>>2]=0;H[c+1140>>2]=0;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1074266112;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+924>>2]=10;H[c+920>>2]=c+976;b=H[c+924>>2];H[c+144>>2]=H[c+920>>2];H[c+148>>2]=b;pa:{d=td(c+1584|0,c+144|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break pa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 17:b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1248|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1232>>2]=0;H[c+1236>>2]=0;H[c+1200>>2]=0;H[c+1204>>2]=0;H[c+1168>>2]=0;H[c+1172>>2]=0;H[c+1136>>2]=0;H[c+1140>>2]=1072693248;H[c+1104>>2]=0;H[c+1108>>2]=1075052544;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+916>>2]=9;H[c+912>>2]=c+976;b=H[c+916>>2];H[c+152>>2]=H[c+912>>2];H[c+156>>2]=b;qa:{d=td(c+1584|0,c+152|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break qa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 18:b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1216>>2]=0;H[c+1220>>2]=1075576832;H[c+1200>>2]=0;H[c+1204>>2]=1074266112;H[c+1184>>2]=0;H[c+1188>>2]=1075314688;H[c+1168>>2]=0;H[c+1172>>2]=1073741824;H[c+1152>>2]=0;H[c+1156>>2]=1075052544;H[c+1136>>2]=0;H[c+1140>>2]=1072693248;H[c+1120>>2]=0;H[c+1124>>2]=1074790400;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1088>>2]=0;H[c+1092>>2]=1075576832;H[c+1072>>2]=0;H[c+1076>>2]=1074266112;H[c+1056>>2]=0;H[c+1060>>2]=1075314688;H[c+1040>>2]=0;H[c+1044>>2]=1073741824;H[c+1024>>2]=0;H[c+1028>>2]=1075052544;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+908>>2]=16;H[c+904>>2]=c+976;b=H[c+908>>2];H[c+160>>2]=H[c+904>>2];H[c+164>>2]=b;ra:{d=fd(c+1584|0,c+160|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ra}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 19:b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1216>>2]=0;H[c+1220>>2]=1074790400;H[c+1200>>2]=0;H[c+1204>>2]=0;H[c+1184>>2]=0;H[c+1188>>2]=1075052544;H[c+1168>>2]=0;H[c+1172>>2]=1072693248;H[c+1152>>2]=0;H[c+1156>>2]=1075314688;H[c+1136>>2]=0;H[c+1140>>2]=1073741824;H[c+1120>>2]=0;H[c+1124>>2]=1075576832;H[c+1104>>2]=0;H[c+1108>>2]=1074266112;H[c+1088>>2]=0;H[c+1092>>2]=1074790400;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1056>>2]=0;H[c+1060>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1073741824;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1074266112;H[c+900>>2]=16;H[c+896>>2]=c+976;b=H[c+900>>2];H[c+168>>2]=H[c+896>>2];H[c+172>>2]=b;sa:{d=fd(c+1584|0,c+168|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break sa}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 20:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075707904;H[c+1016>>2]=0;H[c+1020>>2]=1075707904;H[c+1e3>>2]=0;H[c+1004>>2]=1074528256;H[c+892>>2]=4;H[c+1024>>2]=0;H[c+1028>>2]=1075576832;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1074528256;H[c+976>>2]=0;H[c+980>>2]=0;H[c+888>>2]=c+976;b=H[c+892>>2];H[c+184>>2]=H[c+888>>2];H[c+188>>2]=b;d=fd(c+1584|0,c+184|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1416|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1408|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1400|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1384|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1376|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1368|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1352|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1344|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1336|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1320|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1312|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1304|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1280|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1248|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075314688;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1392>>2]=0;H[c+1396>>2]=1074266112;H[c+1360>>2]=0;H[c+1364>>2]=1075314688;H[c+1328>>2]=0;H[c+1332>>2]=1073741824;H[c+1296>>2]=0;H[c+1300>>2]=1075052544;H[c+1264>>2]=0;H[c+1268>>2]=1072693248;H[c+1232>>2]=0;H[c+1236>>2]=1074790400;H[c+1200>>2]=0;H[c+1204>>2]=0;H[c+1168>>2]=0;H[c+1172>>2]=1074266112;H[c+1136>>2]=0;H[c+1140>>2]=1075314688;H[c+1104>>2]=0;H[c+1108>>2]=1073741824;H[c+1072>>2]=0;H[c+1076>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1073741824;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+884>>2]=14;H[c+880>>2]=c+976;b=H[c+884>>2];H[c+176>>2]=H[c+880>>2];H[c+180>>2]=b;ta:{d=td(c+1584|0,c+176|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break ta}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 21:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075707904;H[c+1016>>2]=0;H[c+1020>>2]=1075707904;H[c+1e3>>2]=0;H[c+1004>>2]=1074528256;H[c+876>>2]=4;H[c+1024>>2]=0;H[c+1028>>2]=1075576832;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1074528256;H[c+976>>2]=0;H[c+980>>2]=0;H[c+872>>2]=c+976;b=H[c+876>>2];H[c+200>>2]=H[c+872>>2];H[c+204>>2]=b;d=fd(c+1584|0,c+200|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1416|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1408|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1400|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1384|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1376|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1368|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1352|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1344|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1336|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1320|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1312|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1304|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1280|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1248|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1392>>2]=0;H[c+1396>>2]=1074266112;H[c+1360>>2]=0;H[c+1364>>2]=1074790400;H[c+1328>>2]=0;H[c+1332>>2]=0;H[c+1296>>2]=0;H[c+1300>>2]=1075052544;H[c+1264>>2]=0;H[c+1268>>2]=1072693248;H[c+1232>>2]=0;H[c+1236>>2]=1075314688;H[c+1200>>2]=0;H[c+1204>>2]=1073741824;H[c+1168>>2]=0;H[c+1172>>2]=1074266112;H[c+1136>>2]=0;H[c+1140>>2]=1074790400;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1072>>2]=0;H[c+1076>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1008>>2]=0;H[c+1012>>2]=1075314688;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1073741824;H[c+868>>2]=14;H[c+864>>2]=c+976;b=H[c+868>>2];H[c+192>>2]=H[c+864>>2];H[c+196>>2]=b;ua:{d=td(c+1584|0,c+192|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break ua}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 22:H[c+1e3>>2]=0;H[c+1004>>2]=1075707904;H[c+860>>2]=2;H[c+992>>2]=0;H[c+996>>2]=0;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1075576832;H[c+856>>2]=c+976;b=H[c+860>>2];H[c+216>>2]=H[c+856>>2];H[c+220>>2]=b;d=fd(c+1584|0,c+216|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074266112;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1200>>2]=0;H[c+1204>>2]=1075314688;H[c+1168>>2]=0;H[c+1172>>2]=1075052544;H[c+1136>>2]=0;H[c+1140>>2]=1074790400;H[c+1104>>2]=0;H[c+1108>>2]=1074266112;H[c+1072>>2]=0;H[c+1076>>2]=1073741824;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1073741824;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+852>>2]=8;H[c+848>>2]=c+976;b=H[c+852>>2];H[c+208>>2]=H[c+848>>2];H[c+212>>2]=b;va:{d=td(c+1584|0,c+208|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break va}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 23:H[c+1e3>>2]=0;H[c+1004>>2]=1075707904;H[c+844>>2]=2;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+840>>2]=c+976;b=H[c+844>>2];H[c+232>>2]=H[c+840>>2];H[c+236>>2]=b;d=fd(c+1584|0,c+232|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1200>>2]=0;H[c+1204>>2]=0;H[c+1168>>2]=0;H[c+1172>>2]=0;H[c+1136>>2]=0;H[c+1140>>2]=1072693248;H[c+1104>>2]=0;H[c+1108>>2]=1073741824;H[c+1072>>2]=0;H[c+1076>>2]=1074266112;H[c+1040>>2]=0;H[c+1044>>2]=1074790400;H[c+1008>>2]=0;H[c+1012>>2]=1075052544;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1075314688;H[c+836>>2]=8;H[c+832>>2]=c+976;b=H[c+836>>2];H[c+224>>2]=H[c+832>>2];H[c+228>>2]=b;wa:{d=td(c+1584|0,c+224|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break wa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 24:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074921472;H[c+1016>>2]=0;H[c+1020>>2]=0;H[c+1e3>>2]=0;H[c+1004>>2]=1075838976;H[c+828>>2]=2;H[c+1008>>2]=0;H[c+1012>>2]=1074921472;H[c+992>>2]=0;H[c+996>>2]=1071644672;H[c+984>>2]=0;H[c+988>>2]=0;H[c+976>>2]=0;H[c+980>>2]=1071644672;H[c+824>>2]=c+976;b=H[c+828>>2];H[c+240>>2]=H[c+824>>2];H[c+244>>2]=b;xa:{d=td(c+1584|0,c+240|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break xa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 25:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1074921472;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+820>>2]=2;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+816>>2]=c+976;b=H[c+820>>2];H[c+248>>2]=H[c+816>>2];H[c+252>>2]=b;ya:{d=td(c+1584|0,c+248|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break ya}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 26:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=0;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=0;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074003968;H[c+1016>>2]=0;H[c+1020>>2]=0;H[c+1e3>>2]=0;H[c+1004>>2]=1075838976;H[c+812>>2]=4;H[c+1072>>2]=0;H[c+1076>>2]=1075445760;H[c+1040>>2]=0;H[c+1044>>2]=1074921472;H[c+1008>>2]=0;H[c+1012>>2]=1074003968;H[c+992>>2]=0;H[c+996>>2]=1071644672;H[c+984>>2]=0;H[c+988>>2]=0;H[c+976>>2]=0;H[c+980>>2]=1071644672;H[c+808>>2]=c+976;b=H[c+812>>2];H[c+256>>2]=H[c+808>>2];H[c+260>>2]=b;za:{d=td(c+1584|0,c+256|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break za}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 27:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+804>>2]=4;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+800>>2]=c+976;b=H[c+804>>2];H[c+264>>2]=H[c+800>>2];H[c+268>>2]=b;Aa:{d=td(c+1584|0,c+264|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Aa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 28:i=M[a+8>>3];M[a+8>>3]=i+i;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074921472;H[c+1016>>2]=0;H[c+1020>>2]=0;H[c+1e3>>2]=0;H[c+1004>>2]=1075838976;H[c+796>>2]=2;H[c+1008>>2]=0;H[c+1012>>2]=1074921472;H[c+992>>2]=0;H[c+996>>2]=1071644672;H[c+984>>2]=0;H[c+988>>2]=0;H[c+976>>2]=0;H[c+980>>2]=1071644672;H[c+792>>2]=c+976;b=H[c+796>>2];H[c+272>>2]=H[c+792>>2];H[c+276>>2]=b;Ba:{d=td(c+1584|0,c+272|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ba}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}M[a+8>>3]=M[a+8>>3]*.5;break $}break c;case 29:i=M[a+8>>3];M[a+8>>3]=i+i;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1074921472;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+788>>2]=2;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+784>>2]=c+976;b=H[c+788>>2];H[c+280>>2]=H[c+784>>2];H[c+284>>2]=b;Ca:{d=td(c+1584|0,c+280|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ca}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}M[a+8>>3]=M[a+8>>3]*.5;break $}break c;case 30:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074528256;H[c+1016>>2]=0;H[c+1020>>2]=1074528256;H[c+1e3>>2]=0;H[c+1004>>2]=1074003968;H[c+780>>2]=8;H[c+1088>>2]=0;H[c+1092>>2]=1075576832;H[c+1072>>2]=0;H[c+1076>>2]=1074266112;H[c+1056>>2]=0;H[c+1060>>2]=1075314688;H[c+1040>>2]=0;H[c+1044>>2]=1073741824;H[c+1024>>2]=0;H[c+1028>>2]=1075052544;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1074003968;H[c+976>>2]=0;H[c+980>>2]=0;H[c+776>>2]=c+976;b=H[c+780>>2];H[c+288>>2]=H[c+776>>2];H[c+292>>2]=b;Da:{d=fd(c+1584|0,c+288|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break Da}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 31:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074528256;H[c+1016>>2]=0;H[c+1020>>2]=1074528256;H[c+1e3>>2]=0;H[c+1004>>2]=1074003968;H[c+772>>2]=8;H[c+1088>>2]=0;H[c+1092>>2]=1074790400;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1056>>2]=0;H[c+1060>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1073741824;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1074003968;H[c+976>>2]=0;H[c+980>>2]=1074266112;H[c+768>>2]=c+976;b=H[c+772>>2];H[c+296>>2]=H[c+768>>2];H[c+300>>2]=b;Ea:{d=fd(c+1584|0,c+296|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ea}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 32:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1074921472;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+764>>2]=2;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+760>>2]=c+976;b=H[c+764>>2];H[c+304>>2]=H[c+760>>2];H[c+308>>2]=b;Fa:{d=td(c+1584|0,c+304|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Fa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 33:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074921472;H[c+1016>>2]=0;H[c+1020>>2]=1074790400;H[c+1e3>>2]=0;H[c+1004>>2]=1074790400;H[c+756>>2]=2;H[c+1008>>2]=0;H[c+1012>>2]=1074921472;H[c+992>>2]=0;H[c+996>>2]=1071644672;H[c+984>>2]=0;H[c+988>>2]=0;H[c+976>>2]=0;H[c+980>>2]=1071644672;H[c+752>>2]=c+976;b=H[c+756>>2];H[c+312>>2]=H[c+752>>2];H[c+316>>2]=b;Ga:{d=td(c+1584|0,c+312|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ga}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 34:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074528256;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+748>>2]=8;H[c+1088>>2]=0;H[c+1092>>2]=1075052544;H[c+1072>>2]=0;H[c+1076>>2]=1073741824;H[c+1056>>2]=0;H[c+1060>>2]=1075576832;H[c+1040>>2]=0;H[c+1044>>2]=1074266112;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+744>>2]=c+976;b=H[c+748>>2];H[c+320>>2]=H[c+744>>2];H[c+324>>2]=b;Ha:{d=fd(c+1584|0,c+320|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ha}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 35:i=M[a+8>>3];M[a+8>>3]=i+i;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1073741824;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1104>>2]=0;H[c+1108>>2]=1074790400;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=1074266112;H[c+1008>>2]=0;H[c+1012>>2]=1075314688;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1073741824;H[c+740>>2]=5;H[c+736>>2]=c+976;b=H[c+740>>2];H[c+328>>2]=H[c+736>>2];H[c+332>>2]=b;Ia:{d=td(c+1584|0,c+328|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ia}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}M[a+8>>3]=M[a+8>>3]*.5;break $}break c;case 36:b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1152>>2]=0;H[c+1156>>2]=1075052544;H[c+1136>>2]=0;H[c+1140>>2]=1073741824;H[c+1120>>2]=0;H[c+1124>>2]=1075314688;H[c+1104>>2]=0;H[c+1108>>2]=1072693248;H[c+1088>>2]=0;H[c+1092>>2]=1075576832;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1056>>2]=0;H[c+1060>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1073741824;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+732>>2]=12;H[c+728>>2]=c+976;b=H[c+732>>2];H[c+344>>2]=H[c+728>>2];H[c+348>>2]=b;d=fd(c+1584|0,c+344|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075052544;H[c+1016>>2]=0;H[c+1020>>2]=1075707904;H[c+1e3>>2]=0;H[c+1004>>2]=1074528256;H[c+724>>2]=2;H[c+720>>2]=c+976;b=H[c+724>>2];H[c+336>>2]=H[c+720>>2];H[c+340>>2]=b;H[c+1008>>2]=0;H[c+1012>>2]=1074266112;H[c+992>>2]=0;H[c+996>>2]=1075052544;H[c+984>>2]=0;H[c+988>>2]=1074528256;H[c+976>>2]=0;H[c+980>>2]=1074266112;Ja:{d=td(c+1584|0,c+336|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ja}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 37:b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075183616;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+716>>2]=6;H[c+1056>>2]=0;H[c+1060>>2]=1075576832;H[c+1040>>2]=0;H[c+1044>>2]=1074790400;H[c+1024>>2]=0;H[c+1028>>2]=1072693248;H[c+1008>>2]=0;H[c+1012>>2]=1075576832;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1073217536;H[c+976>>2]=0;H[c+980>>2]=1072693248;H[c+712>>2]=c+976;b=H[c+716>>2];H[c+360>>2]=H[c+712>>2];H[c+364>>2]=b;d=fd(c+1584|0,c+360|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074790400;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1072>>2]=0;H[c+1076>>2]=1073741824;H[c+1040>>2]=0;H[c+1044>>2]=1075052544;H[c+1008>>2]=0;H[c+1012>>2]=1073741824;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1075052544;H[c+708>>2]=4;H[c+704>>2]=c+976;b=H[c+708>>2];H[c+352>>2]=H[c+704>>2];H[c+356>>2]=b;Ka:{d=td(c+1584|0,c+352|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ka}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 38:b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074528256;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+1120>>2]=0;H[c+1124>>2]=1075576832;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1088>>2]=0;H[c+1092>>2]=1075314688;H[c+1072>>2]=0;H[c+1076>>2]=1072693248;H[c+1056>>2]=0;H[c+1060>>2]=1075052544;H[c+1040>>2]=0;H[c+1044>>2]=1073741824;H[c+1024>>2]=0;H[c+1028>>2]=1074790400;H[c+1008>>2]=0;H[c+1012>>2]=1075052544;H[c+992>>2]=0;H[c+996>>2]=1075314688;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1075576832;H[c+700>>2]=10;H[c+696>>2]=c+976;b=H[c+700>>2];H[c+368>>2]=H[c+696>>2];H[c+372>>2]=b;La:{d=fd(c+1584|0,c+368|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break La}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}H[c+984>>2]=0;H[c+988>>2]=1074921472;H[c+976>>2]=0;H[c+980>>2]=1074266112;H[c+1592>>2]=0;H[c+1596>>2]=1074921472;H[c+1584>>2]=0;H[c+1588>>2]=1075052544;Dm(a,c+976|0,c+1584|0);break $}break c;case 39:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1071644672;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+692>>2]=4;H[c+1072>>2]=0;H[c+1076>>2]=1074921472;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=1071644672;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+688>>2]=c+976;b=H[c+692>>2];H[c+376>>2]=H[c+688>>2];H[c+380>>2]=b;Ma:{d=td(c+1584|0,c+376|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ma}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 40:b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1264>>2]=0;H[c+1268>>2]=1075576832;H[c+1248>>2]=0;H[c+1252>>2]=1075052544;H[c+1232>>2]=0;H[c+1236>>2]=1072693248;H[c+1216>>2]=0;H[c+1220>>2]=1075314688;H[c+1200>>2]=0;H[c+1204>>2]=1073741824;H[c+1184>>2]=0;H[c+1188>>2]=1074266112;H[c+1168>>2]=0;H[c+1172>>2]=1072693248;H[c+1152>>2]=0;H[c+1156>>2]=1074790400;H[c+1136>>2]=0;H[c+1140>>2]=0;H[c+1120>>2]=0;H[c+1124>>2]=1075576832;H[c+1104>>2]=0;H[c+1108>>2]=1075052544;H[c+1088>>2]=0;H[c+1092>>2]=1072693248;H[c+1072>>2]=0;H[c+1076>>2]=1075314688;H[c+1056>>2]=0;H[c+1060>>2]=1073741824;H[c+1040>>2]=0;H[c+1044>>2]=1075052544;H[c+1024>>2]=0;H[c+1028>>2]=1074266112;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+684>>2]=19;H[c+680>>2]=c+976;b=H[c+684>>2];H[c+384>>2]=H[c+680>>2];H[c+388>>2]=b;Na:{d=fd(c+1584|0,c+384|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break Na}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 41:b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1216>>2]=0;H[c+1220>>2]=1075576832;H[c+1200>>2]=0;H[c+1204>>2]=1075052544;H[c+1184>>2]=0;H[c+1188>>2]=1074266112;H[c+1168>>2]=0;H[c+1172>>2]=1072693248;H[c+1152>>2]=0;H[c+1156>>2]=1075314688;H[c+1136>>2]=0;H[c+1140>>2]=1074790400;H[c+1120>>2]=0;H[c+1124>>2]=1073741824;H[c+1104>>2]=0;H[c+1108>>2]=0;H[c+1088>>2]=0;H[c+1092>>2]=1075576832;H[c+1072>>2]=0;H[c+1076>>2]=1075052544;H[c+1056>>2]=0;H[c+1060>>2]=1074266112;H[c+1040>>2]=0;H[c+1044>>2]=1072693248;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1073741824;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+676>>2]=16;H[c+672>>2]=c+976;b=H[c+676>>2];H[c+400>>2]=H[c+672>>2];H[c+404>>2]=b;d=fd(c+1584|0,c+400|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074790400;H[c+1016>>2]=0;H[c+1020>>2]=1075183616;H[c+1e3>>2]=0;H[c+1004>>2]=1074921472;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1074921472;H[c+976>>2]=0;H[c+980>>2]=0;H[c+668>>2]=4;H[c+664>>2]=c+976;b=H[c+668>>2];H[c+392>>2]=H[c+664>>2];H[c+396>>2]=b;Oa:{d=td(c+1584|0,c+392|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Oa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 42:b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075183616;H[c+1016>>2]=0;H[c+1020>>2]=1074528256;H[c+1e3>>2]=0;H[c+1004>>2]=1074003968;H[c+660>>2]=6;H[c+1056>>2]=0;H[c+1060>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=1075576832;H[c+1024>>2]=0;H[c+1028>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=1074266112;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1073217536;H[c+976>>2]=0;H[c+980>>2]=1074266112;H[c+656>>2]=c+976;b=H[c+660>>2];H[c+408>>2]=H[c+656>>2];H[c+412>>2]=b;Pa:{d=fd(c+1584|0,c+408|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break Pa}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 43:b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+652>>2]=7;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1056>>2]=0;H[c+1060>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1024>>2]=0;H[c+1028>>2]=1075314688;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1073741824;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+648>>2]=c+976;b=H[c+652>>2];H[c+416>>2]=H[c+648>>2];H[c+420>>2]=b;Qa:{d=fd(c+1584|0,c+416|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break Qa}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 44:b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074921472;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1074003968;H[c+644>>2]=6;H[c+1056>>2]=0;H[c+1060>>2]=1075314688;H[c+1040>>2]=0;H[c+1044>>2]=1073741824;H[c+1024>>2]=0;H[c+1028>>2]=1074790400;H[c+1008>>2]=0;H[c+1012>>2]=1075314688;H[c+992>>2]=0;H[c+996>>2]=1073741824;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+640>>2]=c+976;b=H[c+644>>2];H[c+424>>2]=H[c+640>>2];H[c+428>>2]=b;Ra:{d=fd(c+1584|0,c+424|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ra}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 45:b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074003968;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+636>>2]=5;H[c+1040>>2]=0;H[c+1044>>2]=1075314688;H[c+1024>>2]=0;H[c+1028>>2]=1074790400;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1075052544;H[c+984>>2]=0;H[c+988>>2]=1073217536;H[c+976>>2]=0;H[c+980>>2]=0;H[c+632>>2]=c+976;b=H[c+636>>2];H[c+440>>2]=H[c+632>>2];H[c+444>>2]=b;d=fd(c+1584|0,c+440|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074790400;H[c+1016>>2]=0;H[c+1020>>2]=1074528256;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1072>>2]=0;H[c+1076>>2]=1075707904;H[c+1040>>2]=0;H[c+1044>>2]=1074790400;H[c+1008>>2]=0;H[c+1012>>2]=1073741824;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1075314688;H[c+628>>2]=4;H[c+624>>2]=c+976;b=H[c+628>>2];H[c+432>>2]=H[c+624>>2];H[c+436>>2]=b;Sa:{d=td(c+1584|0,c+432|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Sa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 46:b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075707904;H[c+1016>>2]=0;H[c+1020>>2]=1075707904;H[c+1e3>>2]=0;H[c+1004>>2]=1074528256;H[c+620>>2]=4;H[c+1024>>2]=0;H[c+1028>>2]=1075576832;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=1074528256;H[c+976>>2]=0;H[c+980>>2]=0;H[c+616>>2]=c+976;b=H[c+620>>2];H[c+456>>2]=H[c+616>>2];H[c+460>>2]=b;d=fd(c+1584|0,c+456|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1288|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1280|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1272|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1248|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074266112;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1264>>2]=0;H[c+1268>>2]=1074266112;H[c+1232>>2]=0;H[c+1236>>2]=0;H[c+1200>>2]=0;H[c+1204>>2]=1075052544;H[c+1168>>2]=0;H[c+1172>>2]=1072693248;H[c+1136>>2]=0;H[c+1140>>2]=0;H[c+1104>>2]=0;H[c+1108>>2]=1074266112;H[c+1072>>2]=0;H[c+1076>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=1075052544;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+612>>2]=10;H[c+608>>2]=c+976;b=H[c+612>>2];H[c+448>>2]=H[c+608>>2];H[c+452>>2]=b;Ta:{d=td(c+1584|0,c+448|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ta}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 47:b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074003968;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+604>>2]=6;H[c+1056>>2]=0;H[c+1060>>2]=0;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1024>>2]=0;H[c+1028>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=1075576832;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1073217536;H[c+976>>2]=0;H[c+980>>2]=0;H[c+600>>2]=c+976;b=H[c+604>>2];H[c+472>>2]=H[c+600>>2];H[c+476>>2]=b;d=fd(c+1584|0,c+472|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1256|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1248|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1240|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1224|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1216|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1208|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1074790400;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1071644672;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1071644672;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1232>>2]=0;H[c+1236>>2]=0;H[c+1200>>2]=0;H[c+1204>>2]=0;H[c+1168>>2]=0;H[c+1172>>2]=1074266112;H[c+1136>>2]=0;H[c+1140>>2]=1075052544;H[c+1104>>2]=0;H[c+1108>>2]=1072693248;H[c+1072>>2]=0;H[c+1076>>2]=1074790400;H[c+1040>>2]=0;H[c+1044>>2]=1074790400;H[c+1008>>2]=0;H[c+1012>>2]=1075052544;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1072693248;H[c+596>>2]=9;H[c+592>>2]=c+976;b=H[c+596>>2];H[c+464>>2]=H[c+592>>2];H[c+468>>2]=b;Ua:{d=td(c+1584|0,c+464|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ua}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 48:b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=0;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075838976;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1071644672;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=0;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1074921472;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+588>>2]=4;H[c+1072>>2]=0;H[c+1076>>2]=1074921472;H[c+1040>>2]=0;H[c+1044>>2]=1071644672;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075838976;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+584>>2]=c+976;b=H[c+588>>2];H[c+480>>2]=H[c+584>>2];H[c+484>>2]=b;Va:{d=td(c+1584|0,c+480|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Va}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 49:i=M[a+8>>3];M[a+8>>3]=i+i;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074528256;H[c+1016>>2]=0;H[c+1020>>2]=1074528256;H[c+1e3>>2]=0;H[c+1004>>2]=-1075838976;H[c+580>>2]=6;H[c+1056>>2]=0;H[c+1060>>2]=1075576832;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1024>>2]=0;H[c+1028>>2]=1075576832;H[c+1008>>2]=0;H[c+1012>>2]=0;H[c+992>>2]=0;H[c+996>>2]=1075576832;H[c+984>>2]=0;H[c+988>>2]=-1075838976;H[c+976>>2]=0;H[c+980>>2]=0;H[c+576>>2]=c+976;b=H[c+580>>2];H[c+496>>2]=H[c+576>>2];H[c+500>>2]=b;d=fd(c+1584|0,c+496|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1184|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1152|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1074266112;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1074266112;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=-1075838976;H[c+1168>>2]=0;H[c+1172>>2]=1074266112;H[c+1136>>2]=0;H[c+1140>>2]=1075052544;H[c+1104>>2]=0;H[c+1108>>2]=1072693248;H[c+1072>>2]=0;H[c+1076>>2]=1074266112;H[c+1040>>2]=0;H[c+1044>>2]=1075052544;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1075052544;H[c+984>>2]=0;H[c+988>>2]=-1075838976;H[c+976>>2]=0;H[c+980>>2]=1074266112;H[c+572>>2]=7;H[c+568>>2]=c+976;b=H[c+572>>2];H[c+488>>2]=H[c+568>>2];H[c+492>>2]=b;Wa:{d=td(c+1584|0,c+488|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Wa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}M[a+8>>3]=M[a+8>>3]*.5;break $}break c;case 50:M[a+8>>3]=M[a+8>>3]*4;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075838976;H[c+1016>>2]=0;H[c+1020>>2]=1075052544;H[c+1e3>>2]=0;H[c+1004>>2]=1072693248;H[c+564>>2]=2;H[c+1008>>2]=0;H[c+1012>>2]=1074790400;H[c+992>>2]=0;H[c+996>>2]=1074790400;H[c+984>>2]=0;H[c+988>>2]=1072693248;H[c+976>>2]=0;H[c+980>>2]=0;H[c+560>>2]=c+976;b=H[c+564>>2];H[c+504>>2]=H[c+560>>2];H[c+508>>2]=b;Xa:{d=td(c+1584|0,c+504|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Xa}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}M[a+8>>3]=M[a+8>>3]*.25;break $}break c;case 51:b=c+1192|0;H[b>>2]=0;H[b+4>>2]=1075707904;b=c+1176|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1160|0;H[b>>2]=0;H[b+4>>2]=1075445760;b=c+1144|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1073217536;H[c+1016>>2]=0;H[c+1020>>2]=1073217536;H[c+1e3>>2]=0;H[c+1004>>2]=1071644672;H[c+1184>>2]=0;H[c+1188>>2]=1075576832;H[c+1168>>2]=0;H[c+1172>>2]=0;H[c+1152>>2]=0;H[c+1156>>2]=1075314688;H[c+1136>>2]=0;H[c+1140>>2]=1072693248;H[c+1120>>2]=0;H[c+1124>>2]=1075052544;H[c+1104>>2]=0;H[c+1108>>2]=1073741824;H[c+1088>>2]=0;H[c+1092>>2]=1074790400;H[c+1072>>2]=0;H[c+1076>>2]=1074266112;H[c+1056>>2]=0;H[c+1060>>2]=1074790400;H[c+1040>>2]=0;H[c+1044>>2]=1073741824;H[c+1024>>2]=0;H[c+1028>>2]=1075052544;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1075314688;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+556>>2]=14;H[c+552>>2]=c+976;b=H[c+556>>2];H[c+512>>2]=H[c+552>>2];H[c+516>>2]=b;Ya:{d=fd(c+1584|0,c+512|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break Ya}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 52:H[c+1e3>>2]=0;H[c+1004>>2]=1075445760;H[c+548>>2]=2;H[c+992>>2]=0;H[c+996>>2]=1074266112;H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=1074266112;H[c+544>>2]=c+976;b=H[c+548>>2];H[c+528>>2]=H[c+544>>2];H[c+532>>2]=b;d=fd(c+1584|0,c+528|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ba(2939,a|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}b=b+16|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(b){H[d+4>>2]=b;Kb(b)}b=c+1128|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1120|0;H[b>>2]=0;H[b+4>>2]=1075052544;b=c+1112|0;H[b>>2]=0;H[b+4>>2]=1075183616;b=c+1096|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1088|0;H[b>>2]=0;H[b+4>>2]=1075314688;b=c+1080|0;H[b>>2]=0;H[b+4>>2]=1074921472;b=c+1064|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1056|0;H[b>>2]=0;H[b+4>>2]=1075576832;b=c+1048|0;H[b>>2]=0;H[b+4>>2]=1074528256;b=c+1032|0;H[b>>2]=0;H[b+4>>2]=1074003968;b=c+1024|0;H[b>>2]=0;H[b+4>>2]=1075314688;H[c+1016>>2]=0;H[c+1020>>2]=1074003968;H[c+1e3>>2]=0;H[c+1004>>2]=1073217536;H[c+1104>>2]=0;H[c+1108>>2]=1073741824;H[c+1072>>2]=0;H[c+1076>>2]=1072693248;H[c+1040>>2]=0;H[c+1044>>2]=0;H[c+1008>>2]=0;H[c+1012>>2]=1072693248;H[c+992>>2]=0;H[c+996>>2]=1075052544;H[c+984>>2]=0;H[c+988>>2]=1073217536;H[c+976>>2]=0;H[c+980>>2]=1073741824;H[c+540>>2]=5;H[c+536>>2]=c+976;b=H[c+540>>2];H[c+520>>2]=H[c+536>>2];H[c+524>>2]=b;Za:{d=td(c+1584|0,c+520|0);b=H[d>>2];f=H[d+4>>2];if((b|0)!=(f|0)){while(1){H[197455]=0;ga(2940,a|0,b|0,b+16|0);e=H[197455];H[197455]=0;if((e|0)==1){break Za}b=b+32|0;if((f|0)!=(b|0)){continue}break}b=H[d>>2]}if(!b){break $}H[d+4>>2]=b;Kb(b);break $}break c;case 0:break aa;default:break d}}H[c+984>>2]=0;H[c+988>>2]=1071644672;H[c+976>>2]=0;H[c+980>>2]=0;H[c+1592>>2]=0;H[c+1596>>2]=1071644672;H[c+1584>>2]=0;H[c+1588>>2]=1075838976;Dm(a,c+976|0,c+1584|0)}b=xb-16|0;xb=b;d=Qb(32);H[b>>2]=d;H[b+4>>2]=7;H[b+8>>2]=-2147483640;H[197455]=0;Mb(d,432412,7);f=H[197455];H[197455]=0;_a:{if((f|0)!=1){H[d+28>>2]=0;H[197455]=0;ka(2944,a+44|0,b|0,0,1);a=H[197455];H[197455]=0;if((a|0)!=1){if(F[b+11|0]<0){Kb(H[b>>2])}xb=b+16|0;break _a}a=$()|0;_()|0;if(F[b+11|0]<0){Kb(H[b>>2])}break b}break a}b=1}xb=c+1600|0;return b|0}a=$()|0;_()|0;c=H[d>>2];if(!c){break b}H[d+4>>2]=c;Kb(c)}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()} +function eX(a){a=a|0;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;o=xb-32|0;xb=o;if(!H[a+4>>2]){F[a+29|0]=1}b=H[a+240>>2];if(b){zb[H[H[b>>2]+8>>2]](b)}a:{b:{g=H[a+12>>2];d=H[a+8>>2];if(g>>>0<=d+3>>>0){break b}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[a+40>>2]=c;b=d+4|0;H[a+8>>2]=b;if((c|0)!=-1698247209){break b}c=0;if(d+5>>>0>>0){c=I[d+4|0]|I[d+5|0]<<8;b=d+6|0;H[a+8>>2]=b}G[a+44>>1]=c;c:{if(b+1>>>0>=g>>>0){c=b;break c}f=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}G[a+46>>1]=f;b=0;d:{if(c+1>>>0>=g>>>0){f=0;break d}f=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[a+48>>1]=f;if(c+1>>>0>>0){b=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[a+50>>1]=b;b=0;e:{if(c+1>>>0>=g>>>0){f=0;break e}f=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[a+52>>1]=f;if(c+1>>>0>>0){b=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[a+54>>1]=b;b=0;f:{if(c+3>>>0>=g>>>0){f=0;break f}f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+8>>2]=c}H[a+56>>2]=f;if(c+1>>>0>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}G[a+60>>1]=b;b=H[a+8>>2];d=H[a+12>>2];while(1){c=0;if(b>>>0>>0){c=I[b|0];b=b+1|0;H[a+8>>2]=b}if(!c){continue}break}H[a+8>>2]=b-1;g=H[a+12>>2];c=H[a+8>>2];break a}c=H[a+4>>2];H[a+8>>2]=c;G[a+54>>1]=0;G[a+56>>1]=0;G[a+58>>1]=0;G[a+60>>1]=0;H[a+48>>2]=0;H[a+52>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0}b=0;g:{if(c+1>>>0>=g>>>0){f=0;break g}f=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[a+64>>1]=f;if(c+1>>>0>>0){b=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[a+66>>1]=b;b=0;h:{if(c+1>>>0>=g>>>0){f=0;break h}f=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[a+68>>1]=f;if(c+3>>>0>>0){b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+8>>2]=c}H[a+72>>2]=b;b=0;i:{if(c+1>>>0>=g>>>0){f=0;break i}f=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[a+76>>1]=f;if(c+3>>>0>>0){b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+8>>2]=c}H[a+80>>2]=b;b=0;if(c+1>>>0>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}G[a+84>>1]=b;b=xb-16|0;xb=b;c=H[a+240>>2];if(c){zb[H[H[c>>2]+100>>2]](c,a+40|0,a- -64|0)}j:{if((J[a+64>>1]-1&65535)>>>0>=2){F[a+29|0]=1;break j}if(J[a+66>>1]!=9){F[a+29|0]=1;break j}if((J[a+68>>1]|512)!=768){F[a+29|0]=1;break j}vy(H[a+168>>2],8);if(H[a+240>>2]){k:{if(H[a+40>>2]==-1698247209){H[b+8>>2]=1024;H[b+12>>2]=1024;H[b>>2]=0;H[b+4>>2]=0;H[b>>2]=G[a+46>>1];H[b+4>>2]=G[a+48>>1];H[b+8>>2]=G[a+50>>1];H[b+12>>2]=G[a+52>>1];d=H[b+8>>2]-H[b>>2]|0;c=d>>31;if((c^d)-c>>>0<=1){H[b+8>>2]=H[a+180>>2];H[b>>2]=H[a+172>>2]}d=H[b+12>>2]-H[b+4>>2]|0;c=d>>31;if((c^d)-c>>>0>1){break k}H[b+4>>2]=H[a+176>>2];H[b+12>>2]=H[a+184>>2];break k}c=H[a+184>>2];H[b+8>>2]=H[a+180>>2];H[b+12>>2]=c;c=H[a+176>>2];H[b>>2]=H[a+172>>2];H[b+4>>2]=c}c=H[b+4>>2];H[a+88>>2]=H[b>>2];H[a+92>>2]=c;c=H[b+12>>2];H[a+96>>2]=H[b+8>>2];H[a+100>>2]=c;uy(H[a+168>>2],G[a+88>>1],G[a+92>>1]);ty(H[a+168>>2],H[a+96>>2]-H[a+88>>2]<<16>>16,H[a+100>>2]-H[a+92>>2]<<16>>16);ry(H[a+168>>2],G[a+88>>1],G[a+92>>1]);qy(H[a+168>>2],H[a+96>>2]-H[a+88>>2]<<16>>16,H[a+100>>2]-H[a+92>>2]<<16>>16);c=J[a+54>>1];if(c){n=1440/+(c>>>0);sy(H[a+168>>2],n,n)}if(H[a+240>>2]){break j}}F[a+188|0]=1}xb=b+16|0;l:{m:{n:{o:{p:{q:{r:{if(!I[a+29|0]){l=a+4|0;c=H[a+8>>2];while(1){e=H[a+12>>2];d=e-c|0;if(d>>>0<=5){F[a+29|0]=1;break o}H[a+36>>2]=c-H[a+4>>2];b=0;if(e>>>0>c+3>>>0){b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+8>>2]=c;d=e-c|0}if(d>>>0>>0){F[a+29|0]=1;break o}s:{t:{if(e>>>0<=c+1>>>0){H[a+32>>2]=b<<1;break t}d=I[c|0]|I[c+1|0]<<8;H[a+32>>2]=b<<1;b=c+2|0;H[a+8>>2]=b;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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{if(d>>>0<=761){if(d>>>0<=495){pa:{switch(d-247|0){case 51:break ma;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 14:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 49:case 50:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 76:case 77:case 78:case 79:case 80:case 81:break s;case 17:break B;case 55:break C;case 16:break D;case 13:break E;case 15:break F;case 12:break G;case 82:break H;case 11:break I;case 48:break M;case 54:break U;case 53:break V;case 75:break W;case 0:break $;case 52:break ka;default:break pa}}if(!d){break t}if((d|0)!=30){break s}b=H[a+240>>2];if(b){zb[H[H[b>>2]+276>>2]](b)}qa:{ra:{d=a+120|0;c=H[d>>2];if(!c){break ra}b=Qb(296);H[197455]=0;vm(b);f=H[197455];H[197455]=0;if((f|0)==1){a=$()|0;_()|0;Kb(b);break l}f=H[c+60>>2];H[b+60>>2]=(c|0)==(f|0)?b:f;f=H[c+64>>2];H[b+64>>2]=(f|0)==(c+40|0)?b+40|0:f;H[b+68>>2]=H[c+68>>2];H[b+72>>2]=H[c+72>>2];H[b+76>>2]=H[c+76>>2];G[b+80>>1]=J[c+80>>1];M[b+88>>3]=M[c+88>>3];M[b+96>>3]=M[c+96>>3];G[b+104>>1]=J[c+104>>1];G[b+106>>1]=J[c+106>>1];G[b+108>>1]=J[c+108>>1];G[b+110>>1]=J[c+110>>1];F[b+112|0]=I[c+112|0];F[b+113|0]=I[c+113|0];G[b+114>>1]=J[c+114>>1];G[b+116>>1]=J[c+116>>1];G[b+118>>1]=J[c+118>>1];G[b+120>>1]=J[c+120>>1];F[b+122|0]=I[c+122|0];F[b+123|0]=I[c+123|0];F[b+124|0]=I[c+124|0];F[b+125|0]=I[c+125|0];F[b+126|0]=I[c+126|0];F[b+127|0]=I[c+127|0];F[b+128|0]=I[c+128|0];F[b+129|0]=I[c+129|0];F[b+130|0]=I[c+130|0];F[b+131|0]=I[c+131|0];H[b+132>>2]=H[c+132>>2];G[b+136>>1]=J[c+136>>1];G[b+138>>1]=J[c+138>>1];G[b+140>>1]=J[c+140>>1];G[b+142>>1]=J[c+142>>1];G[b+144>>1]=J[c+144>>1];G[b+146>>1]=J[c+146>>1];f=J[c+148>>1];H[b+160>>2]=0;H[b+164>>2]=0;H[b+152>>2]=0;H[b+156>>2]=1072693248;G[b+148>>1]=f;H[b+168>>2]=0;H[b+172>>2]=0;H[b+184>>2]=0;H[b+188>>2]=0;H[b+176>>2]=0;H[b+180>>2]=1072693248;H[b+192>>2]=0;H[b+196>>2]=0;M[b+200>>3]=M[c+200>>3];M[b+208>>3]=M[c+208>>3];M[b+216>>3]=M[c+216>>3];M[b+224>>3]=M[c+224>>3];M[b+232>>3]=M[c+232>>3];M[b+240>>3]=M[c+240>>3];M[b+248>>3]=M[c+248>>3];M[b+256>>3]=M[c+256>>3];M[b+264>>3]=M[c+264>>3];M[b+272>>3]=M[c+272>>3];M[b+280>>3]=M[c+280>>3];M[b+288>>3]=M[c+288>>3];if(!b){break ra}c=H[d+8>>2];if((c|0)!=H[d+12>>2]){H[c>>2]=b;H[d+8>>2]=c+4;H[d>>2]=b;break qa}sa:{e=d+4|0;g=H[e>>2];f=c-g|0;h=f>>2;c=h+1|0;if(c>>>0<1073741824){e=f>>1;e=f>>>0<2147483644?c>>>0>>0?e:c:1073741823;if(e){if(e>>>0>=1073741824){break sa}c=Qb(e<<2)}else{c=0}h=c+(h<<2)|0;H[h>>2]=b;if((f|0)>0){Ob(c,g,f)}H[d+12>>2]=c+(e<<2);H[d+8>>2]=h+4;H[d+4>>2]=c;if(g){Kb(g)}H[d>>2]=b;break qa}bd(e);X()}Td(239085);X()}F[H[d+16>>2]+29|0]=1;b=0}H[a+168>>2]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}switch(d-496|0){case 56:break oa;case 27:break v;case 28:break w;case 29:break x;case 30:break y;case 26:break z;case 25:break A;case 17:break J;case 31:break N;case 33:break O;case 48:break P;case 36:break Q;case 68:break T;case 0:break X;case 9:break _;case 35:break la;default:break s}}ta:{if(d>>>0<=1563){if(d>>>0<=1039){switch(d-762|0){case 0:break Z;case 1:break aa;case 2:break ba;case 42:break ga;case 43:break ha;default:break s}}ua:{switch(d-1040|0){case 25:break na;case 8:break ta;case 1:case 3:case 4:case 7:case 9:case 10:case 12:case 13:case 14:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break s;case 0:break K;case 2:break L;case 6:break R;case 5:break S;case 15:break da;case 11:break fa;default:break ua}}if((d|0)==1313){break ca}if((d|0)!=1336){break s}e=xb-16|0;xb=e;d=H[a+12>>2];c=H[a+8>>2];va:{if(d>>>0<=c+1>>>0){break va}b=I[c|0]|I[c+1|0]<<8;f=c+2|0;H[a+8>>2]=f;if(!b){break va}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;H[197455]=0;g=N(b,12);c=aa(899,g|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break n}H[e>>2]=c;H[e+8>>2]=c+g;h=c;c=N((g-12>>>0)/12|0,12)+12|0;k=Nb(h,0,c);H[e+4>>2]=c+k;g=0;while(1){c=0;if(f+1>>>0>>0){c=I[f|0]|I[f+1|0]<<8;H[a+8>>2]=f+2}d=k+N(g,12)|0;f=H[d>>2];h=H[d+4>>2]-f>>2;wa:{if(h>>>0>>0){H[197455]=0;ba(3159,d|0,c-h|0);c=H[197455];H[197455]=0;if((c|0)!=1){break wa}break n}if(c>>>0>=h>>>0){break wa}H[d+4>>2]=f+(c<<2)}g=g+1|0;if((b|0)!=(g|0)){d=H[a+12>>2];f=H[a+8>>2];continue}break}p=b>>>0>1?b:1;h=H[a+12>>2];i=0;while(1){b=k+N(i,12)|0;j=H[b>>2];m=H[b+4>>2]-j>>>2&65535;xa:{if(!m){break xa}g=0;c=H[a+8>>2];ya:{if(h>>>0<=c+1>>>0){f=0;break ya}f=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[j>>1]=f;if(h>>>0>c+1>>>0){g=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[j+2>>1]=g;g=1;if(m>>>0<2){break xa}while(1){f=j+(g<<2)|0;d=0;za:{if(h>>>0<=c+1>>>0){b=0;break za}b=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[f>>1]=b;if(h>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[f+2>>1]=d;g=g+1|0;if((m|0)!=(g|0)){continue}break}}i=i+1|0;if((p|0)!=(i|0)){continue}break}H[197455]=0;ba(3160,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break n}b=H[e>>2];if(!b){break va}g=H[e+4>>2];if((b|0)==(g|0)){c=b}else{while(1){c=g-12|0;d=H[c>>2];if(d){H[g-8>>2]=d;Kb(d)}g=c;if((c|0)!=(b|0)){continue}break}c=H[e>>2]}H[e+4>>2]=b;Kb(c)}xb=e+16|0;break s}Aa:{Ba:{if(d>>>0<=2337){Ca:{switch(d-1564|0){case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break s;case 10:break u;case 0:break ea;case 1:break ja;default:break Ca}}switch(d-2071|0){case 25:break Aa;case 0:break Ba;case 1:case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:break s;case 3:break ia;default:break Y}}Da:{Ea:{Fa:{Ga:{if(d>>>0<=2850){if((d|0)==2338){break Ga}if((d|0)==2368){break Fa}if((d|0)!=2610){break s}g=0;j=0;f=0;e=0;k=0;d=0;m=0;i=0;p=xb-16|0;xb=p;H[p+8>>2]=0;H[p+12>>2]=0;h=H[a+12>>2];c=H[a+8>>2];if(h>>>0>c+1>>>0){i=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(h>>>0>c+1>>>0){m=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(h>>>0>c+1>>>0){g=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}Ha:{if(h>>>0<=c+1>>>0){b=c;break Ha}d=I[c|0]|I[c+1|0]<<8;b=c+2|0;H[a+8>>2]=b}Ia:{if(g<<16>>16<=0){break Ia}if(d&6){Ja:{if(h>>>0<=b+1>>>0){c=b;break Ja}f=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}G[p+8>>1]=f;if(h>>>0>c+1>>>0){j=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[p+10>>1]=j;j=0;Ka:{if(h>>>0<=c+1>>>0){b=0;break Ka}b=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[p+12>>1]=b;La:{if(h>>>0<=c+1>>>0){b=c;break La}j=I[c|0]|I[c+1|0]<<8;b=c+2|0;H[a+8>>2]=b}G[p+14>>1]=j}c=0;s=Qb(g+1|0);F[s+g|0]=0;Ma:{Na:{f=h-b|0;f=f>>>0>>0?f:g;if(!f){break Na}if((f|0)!=1){u=f&65534;while(1){Oa:{if(b>>>0>=h>>>0){j=0;break Oa}j=I[b|0];b=b+1|0;H[a+8>>2]=b}F[c+s|0]=j;j=0;if(b>>>0>>0){j=I[b|0];b=b+1|0;H[a+8>>2]=b}F[s+(c|1)|0]=j;c=c+2|0;k=k+2|0;if((u|0)!=(k|0)){continue}break}}if(f&1){j=0;if(b>>>0>>0){j=I[b|0];H[a+8>>2]=b+1}F[c+s|0]=j}if(g<<16>>16>0){break Na}break Ma}b=g<<1;f=d&8192;if(!(f?0:(b|0)<=(H[a+32>>2]+(H[a+36>>2]+(H[a+4>>2]-H[a+8>>2]|0)|0)|0))&(!f|(H[a+32>>2]+(H[a+36>>2]+(H[a+4>>2]-H[a+8>>2]|0)|0)|0)>2]=H[a+8>>2]+1}e=Qb(b);c=H[a+8>>2];h=H[a+12>>2];if(f){k=0;if((g|0)!=1){u=g&65534;j=0;while(1){v=k<<1;f=v+e|0;Pa:{if(h>>>0<=c+1>>>0){b=c;c=0;break Pa}b=c+2|0;c=I[c|0]|I[c+1|0]<<8}G[f>>1]=c;f=b+2|0;H[a+8>>2]=f;c=0;if(h>>>0>b+3>>>0){c=I[f|0]|I[b+3|0]<<8;b=f}G[(v|2)+e>>1]=c;c=b+4|0;H[a+8>>2]=c;k=k+2|0;j=j+2|0;if((u|0)!=(j|0)){continue}break}}if(!(g&1)){break Ma}b=0;if(h>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;c=c+2|0}G[(k<<1)+e>>1]=b;H[a+8>>2]=c+2;break Ma}if(h>>>0>c+1>>>0){b=0;if((g|0)!=1){f=g&65534;j=0;while(1){u=b<<1;v=u+e|0;Qa:{if(h>>>0<=c+1>>>0){k=0;break Qa}k=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[v>>1]=k;k=0;if(h>>>0>c+1>>>0){k=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[(u|2)+e>>1]=k;b=b+2|0;j=j+2|0;if((f|0)!=(j|0)){continue}break}}if(!(g&1)){break Ma}f=(b<<1)+e|0;b=0;if(h>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}G[f>>1]=b;break Ma}Nb(e,0,b)}b=i<<16>>16;c=m<<16>>16;f=g<<16>>16;h=p+8|0;g=H[a+240>>2];if(g){zb[H[H[g>>2]+144>>2]](g,b,c,f,d,h,s,e)}Ey(a,s,f,c,b,e);Kb(s);if(!e){break Ia}Kb(e)}xb=p+16|0;break s}if(d>>>0<=3378){if((d|0)==2851){break Da}if((d|0)!=2881){break s}c=o+8|0;Ly(l,c);b=xb-16|0;xb=b;d=H[a+240>>2];if(d){zb[H[H[d>>2]+112>>2]](d,c,l)}Ra:{if((H[a+32>>2]&-2)==28){H[a+8>>2]=H[a+8>>2]+2;break Ra}d=G[c+18>>1];f=d+G[c+14>>1]|0;g=G[c+16>>1];H[b+12>>2]=g+G[c+12>>1];H[b+8>>2]=f;H[b+4>>2]=g;H[b>>2]=d;ym(a,b,b,0,H[c>>2])}xb=b+16|0;break s}if((d|0)==3379){break Ea}if((d|0)!=3907){break s}f=0;g=0;c=H[l+8>>2];e=H[l+4>>2];if(c>>>0>e+3>>>0){f=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);e=e+4|0;H[l+4>>2]=e}b=o+8|0;H[b>>2]=f;if(c>>>0>e+1>>>0){g=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+4>>1]=g;g=0;Sa:{if(c>>>0<=e+1>>>0){f=0;break Sa}f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+6>>1]=f;if(c>>>0>e+1>>>0){g=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+8>>1]=g;g=0;Ta:{if(c>>>0<=e+1>>>0){f=0;break Ta}f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+10>>1]=f;if(c>>>0>e+1>>>0){g=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+12>>1]=g;g=0;Ua:{if(c>>>0<=e+1>>>0){f=0;break Ua}f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+14>>1]=f;if(c>>>0>e+1>>>0){g=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+16>>1]=g;g=0;Va:{if(c>>>0<=e+1>>>0){f=0;break Va}f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+18>>1]=f;if(c>>>0>e+1>>>0){g=I[e|0]|I[e+1|0]<<8;H[l+4>>2]=e+2}G[b+20>>1]=g;c=xb-32|0;xb=c;d=H[a+240>>2];if(d){zb[H[H[d>>2]+124>>2]](d,b,l)}f=G[b+20>>1];g=f+G[b+16>>1]|0;d=c+16|0;e=G[b+18>>1];H[d+12>>2]=e+G[b+14>>1];H[d+8>>2]=g;H[d+4>>2]=e;H[d>>2]=f;f=G[b+12>>1];g=f+G[b+8>>1]|0;e=G[b+10>>1];H[c+12>>2]=e+G[b+6>>1];H[c+8>>2]=g;H[c+4>>2]=e;H[c>>2]=f;ym(a,d,c,J[b+4>>1],H[b>>2]);xb=c+32|0;break s}f=0;g=0;c=0;b=0;e=xb-16|0;xb=e;d=H[a+12>>2];j=H[a+8>>2];if(d>>>0>j+3>>>0){g=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);j=j+4|0;H[a+8>>2]=j}H[e>>2]=g;if(d>>>0>j+1>>>0){f=I[j|0]|I[j+1|0]<<8;j=j+2|0;H[a+8>>2]=j}G[e+4>>1]=f;Wa:{if(d>>>0<=j+1>>>0){f=0;break Wa}f=I[j|0]|I[j+1|0]<<8;j=j+2|0;H[a+8>>2]=j}G[e+6>>1]=f;if(d>>>0>j+1>>>0){c=I[j|0]|I[j+1|0]<<8;j=j+2|0;H[a+8>>2]=j}G[e+8>>1]=c;f=0;if(d>>>0>j+1>>>0){b=I[j|0]|I[j+1|0]<<8;j=j+2|0;H[a+8>>2]=j}G[e+10>>1]=b;if(d>>>0>j+1>>>0){f=I[j|0]|I[j+1|0]<<8;j=j+2|0;H[a+8>>2]=j}G[e+12>>1]=f;g=0;if(d>>>0>j+1>>>0){g=I[j|0]|I[j+1|0]<<8;j=j+2|0;H[a+8>>2]=j}G[e+14>>1]=g;Xa:{Ya:{if((H[a+32>>2]&-2)==24){H[a+8>>2]=j+2;break Ya}Za:{if(H[a+16>>2]){i=d>>>0>j+1>>>0;f=(i<<1)+j|0;h=d>>>0>f+1>>>0;b=(h<<1)+f|0;k=d>>>0>b+1>>>0;b=(k<<1)+b|0;m=b+2|0;g=d>>>0>b+1>>>0;c=g?m:b;h=h|k;_a:{if(!(g|(h|i))){if(c>>>0>=d>>>0){break _a}}j=c>>>0>>0?c+1|0:g?m:h?b:f;H[a+8>>2]=j}if(d>>>0<=j>>>0){break Za}H[a+8>>2]=j+1;break Za}zm(a,g<<16>>16,f<<16>>16);zm(a,b+g<<16>>16,c+f<<16>>16)}if((H[a+32>>2]+(H[a+36>>2]+(H[a+4>>2]-H[a+8>>2]|0)|0)|0)>=0){break Ya}F[a+29|0]=1;break Xa}c=a+4|0;b=H[a+240>>2];if(b){zb[H[H[b>>2]+104>>2]](b,e,c)}}xb=e+16|0;break s}f=0;c=0;b=xb-16|0;xb=b;d=H[a+12>>2];e=H[a+8>>2];if(d>>>0>e+3>>>0){c=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);e=e+4|0;H[a+8>>2]=e}H[b>>2]=c;if(d>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[a+8>>2]=e}G[b+4>>1]=f;f=0;$a:{if(d>>>0<=e+1>>>0){c=0;break $a}c=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[a+8>>2]=e}G[b+6>>1]=c;if(d>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[a+8>>2]=e}G[b+8>>1]=f;f=0;ab:{if(d>>>0<=e+1>>>0){c=0;break ab}c=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[a+8>>2]=e}G[b+10>>1]=c;if(d>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[a+8>>2]=e}G[b+12>>1]=f;f=0;if(d>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;H[a+8>>2]=e+2}G[b+14>>1]=f;f=a+4|0;c=xb-16|0;xb=c;d=H[a+240>>2];if(d){zb[H[H[d>>2]+108>>2]](d,b,f)}bb:{if((H[a+32>>2]&-2)==24){f=H[a+8>>2];if(H[b>>2]==15728673){d=0;if(K[a+12>>2]>f+1>>>0){d=I[f|0]|I[f+1|0]<<8;H[a+8>>2]=f+2}Dy(a,15728673,G[b+10>>1],G[b+12>>1],G[b+14>>1],J[b+4>>1]+d<<16>>16);break bb}H[a+8>>2]=f+2;break bb}d=G[b+14>>1];f=d+G[b+10>>1]|0;g=G[b+12>>1];H[c+12>>2]=g+G[b+8>>1];H[c+8>>2]=f;H[c+4>>2]=g;H[c>>2]=d;ym(a,c,c,0,H[b>>2])}xb=c+16|0;xb=b+16|0;break s}f=0;g=0;c=H[l+8>>2];e=H[l+4>>2];if(c>>>0>e+1>>>0){g=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}b=o+8|0;G[b>>1]=g;if(c>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+2>>1]=f;f=0;cb:{if(c>>>0<=e+1>>>0){g=0;break cb}g=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+4>>1]=g;if(c>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+6>>1]=f;f=0;db:{if(c>>>0<=e+1>>>0){g=0;break db}g=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+8>>1]=g;if(c>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+10>>1]=f;f=0;eb:{if(c>>>0<=e+1>>>0){g=0;break eb}g=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+12>>1]=g;if(c>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[l+4>>2]=e}G[b+14>>1]=f;f=0;if(c>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;H[l+4>>2]=e+2}G[b+16>>1]=f;c=xb-16|0;xb=c;d=H[a+240>>2];if(d){zb[H[H[d>>2]+116>>2]](d,b,l)}d=J[b+16>>1];f=d+J[b+12>>1]|0;g=J[b+14>>1];H[c+12>>2]=g+J[b+10>>1];H[c+8>>2]=f;H[c+4>>2]=g;H[c>>2]=d;ym(a,c,c,J[b>>1],0);xb=c+16|0;break s}b=xb-32|0;xb=b;k=a+4|0;Ly(k,b+8|0);fb:{gb:{if((H[a+32>>2]&-2)==28){H[a+8>>2]=H[a+8>>2]+2;break gb}hb:{if(H[a+16>>2]){c=H[a+12>>2];d=H[a+8>>2];e=c>>>0>d+1>>>0;h=(e<<1)+d|0;j=c>>>0>h+1>>>0;f=(j<<1)+h|0;m=c>>>0>f+1>>>0;f=(m<<1)+f|0;p=f+2|0;i=c>>>0>f+1>>>0;g=i?p:f;j=j|m;ib:{if(!(i|(j|e))){if(c>>>0<=g>>>0){break ib}}d=c>>>0>g>>>0?g+1|0:i?p:j?f:h;H[a+8>>2]=d}if(c>>>0<=d>>>0){break hb}H[a+8>>2]=d+1;break hb}zm(a,G[b+26>>1],G[b+24>>1]);zm(a,J[b+22>>1]+J[b+26>>1]<<16>>16,J[b+20>>1]+J[b+24>>1]<<16>>16)}if((H[a+32>>2]+(H[a+36>>2]+(H[a+4>>2]-H[a+8>>2]|0)|0)|0)>=0){break gb}F[a+29|0]=1;break fb}d=b+8|0;c=H[a+240>>2];if(c){zb[H[H[c>>2]+120>>2]](c,d,k)}}xb=b+32|0;break s}i=0;k=0;h=0;e=0;f=0;g=0;c=0;b=0;j=H[a+12>>2];d=H[a+8>>2];if(j>>>0>d+1>>>0){k=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){i=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){e=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){h=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){g=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){f=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){b=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){c=(I[d|0]|I[d+1|0]<<8)<<16>>16;H[a+8>>2]=d+2}d=k<<16>>16;j=i<<16>>16;k=e<<16>>16;h=h<<16>>16;e=g<<16>>16;i=f<<16>>16;f=b<<16>>16;c=c<<16>>16;b=H[a+240>>2];if(b){zb[H[H[b>>2]+132>>2]](b,d,j,k,h,e,i,f,c);g=H[a+240>>2]}else{g=0}n=+(e+f|0)*.5;t=+(k|0)-n;q=+(c+i|0)*.5;w=+(h|0)-q;r=qi(t,w);x=+(d|0)-n;y=+(j|0)-q;z=qi(x,y);r=r*180/3.141592653589793;r=t<0?w<0?r+360:r:r;t=r*3.141592653589793/180;n=ne(t)*(P(+(e-f|0))*.5)+n;jb:{if(P(n)<2147483648){b=~~n;break jb}b=-2147483648}n=ze(t)*(P(+(i-c|0))*.5)+q;kb:{if(P(n)<2147483648){d=~~n;break kb}d=-2147483648}lb:{if(g){zb[H[H[g>>2]+32>>2]](g,+(d|0),+(b|0));break lb}if(I[a+188|0]){H[a+172>>2]=d;F[a+188|0]=0;H[a+180>>2]=d;H[a+184>>2]=b;H[a+176>>2]=b;break lb}h=a+172|0;mb:{if((d|0)>=H[h>>2]){h=a+180|0;if((d|0)<=H[h>>2]){break mb}}H[h>>2]=d}if((b|0)>2]){H[a+176>>2]=b;break lb}if((b|0)<=H[a+184>>2]){break lb}H[a+184>>2]=b}g=H[a+168>>2];G[g+132>>1]=d;G[g+134>>1]=b;b=H[a+240>>2];nb:{if(!b){d=a+172|0;ob:{if(I[a+188|0]){H[a+172>>2]=c;F[a+188|0]=0;H[a+180>>2]=c;H[a+184>>2]=f;H[a+176>>2]=f;b=f;break ob}b=d;pb:{if(H[b>>2]<=(c|0)){b=a+180|0;if(H[b>>2]>=(c|0)){break pb}}H[b>>2]=c}h=a+176|0;b=H[h>>2];c=f;qb:{if((b|0)<=(c|0)){c=b;h=a+184|0;if((f|0)<=H[h>>2]){break qb}}H[h>>2]=f;b=c}c=H[d>>2]}rb:{if((c|0)<=(i|0)){d=a+180|0;if((i|0)<=H[d>>2]){break rb}}H[d>>2]=i}if((b|0)>(e|0)){H[a+176>>2]=e;break nb}if((e|0)<=H[a+184>>2]){break nb}H[a+184>>2]=e;break nb}n=z*180/3.141592653589793;zb[H[H[b>>2]+44>>2]](b,+(c|0),+(f|0),+(i|0),+(e|0),r,(x<0?y<0?n+360:n:n)-r);b=H[a+240>>2];if(!b){break nb}zb[H[H[b>>2]+52>>2]](b,1);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}break s}i=0;k=0;h=0;e=0;f=0;g=0;c=0;b=0;j=H[a+12>>2];d=H[a+8>>2];if(j>>>0>d+1>>>0){k=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){i=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){e=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){h=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){g=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){f=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){b=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){c=(I[d|0]|I[d+1|0]<<8)<<16>>16;H[a+8>>2]=d+2}j=k<<16>>16;k=i<<16>>16;e=e<<16>>16;h=h<<16>>16;g=g<<16>>16;i=f<<16>>16;f=b<<16>>16;c=c<<16>>16;b=H[a+240>>2];if(b){zb[H[H[b>>2]+136>>2]](b,j,k,e,h,g,i,f,c)}n=qe(c,f,i,g,h,e);q=qe(c,f,i,g,k,j);b=H[a+240>>2];sb:{if(b){zb[H[H[b>>2]+32>>2]](b,+(h|0),+(e|0));break sb}if(I[a+188|0]){H[a+172>>2]=h;F[a+188|0]=0;H[a+180>>2]=h;H[a+184>>2]=e;H[a+176>>2]=e;break sb}d=a+172|0;tb:{if((h|0)>=H[d>>2]){d=a+180|0;if((h|0)<=H[d>>2]){break tb}}H[d>>2]=h}if((e|0)>2]){H[a+176>>2]=e;break sb}if((e|0)<=H[a+184>>2]){break sb}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=h;G[b+134>>1]=e;ub:{vb:{wb:{xb:{b=H[a+240>>2];if(!b){d=a+172|0;yb:{if(I[a+188|0]){H[a+172>>2]=c;F[a+188|0]=0;H[a+180>>2]=c;H[a+184>>2]=f;H[a+176>>2]=f;b=f;break yb}b=d;zb:{if(H[b>>2]<=(c|0)){b=a+180|0;if(H[b>>2]>=(c|0)){break zb}}H[b>>2]=c}m=a+176|0;b=H[m>>2];c=f;Ab:{if((b|0)<=(c|0)){c=b;m=a+184|0;if((f|0)<=H[m>>2]){break Ab}}H[m>>2]=f;b=c}c=H[d>>2]}Bb:{if((c|0)<=(i|0)){d=a+180|0;if((i|0)<=H[d>>2]){break Bb}}H[d>>2]=i}if((b|0)<=(g|0)){break xb}c=a+176|0;break wb}zb[H[H[b>>2]+44>>2]](b,+(c|0),+(f|0),+(i|0),+(g|0),n,q-n);b=H[a+240>>2];if(!b){break vb}zb[H[H[b>>2]+36>>2]](b,+(h|0),+(e|0));break ub}c=a+184|0;if((g|0)<=H[c>>2]){break vb}}H[c>>2]=g}if(I[a+188|0]){H[a+172>>2]=h;F[a+188|0]=0;H[a+180>>2]=h;H[a+184>>2]=e;H[a+176>>2]=e;break ub}c=a+172|0;Cb:{if((h|0)>=H[c>>2]){c=a+180|0;if((h|0)<=H[c>>2]){break Cb}}H[c>>2]=h}if((e|0)>2]){H[a+176>>2]=e;break ub}if((e|0)<=H[a+184>>2]){break ub}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=h;G[b+134>>1]=e;b=H[a+240>>2];if(b){zb[H[H[b>>2]+52>>2]](b,3);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}b=H[a+168>>2];G[b+132>>1]=k;G[b+134>>1]=j;break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}Db:{if(e>>>0<=b+1>>>0){c=b;break Db}d=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}b=0;Eb:{if(e>>>0<=c+1>>>0){i=0;break Eb}i=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}h=f<<16>>16;j=d<<16>>16;d=i<<16>>16;g=b<<16>>16;Fb:{Gb:{b=H[a+240>>2];if(b){zb[H[H[b>>2]+140>>2]](b,h,j,d,g);b=H[a+240>>2];if(b){break Gb}}f=a+172|0;Hb:{if(I[a+188|0]){H[a+172>>2]=g;F[a+188|0]=0;H[a+180>>2]=g;H[a+184>>2]=d;H[a+176>>2]=d;b=d;c=g;break Hb}b=f;Ib:{if((g|0)>=H[b>>2]){b=a+180|0;if((g|0)<=H[b>>2]){break Ib}}H[b>>2]=g}e=a+176|0;b=H[e>>2];c=d;Jb:{if((b|0)<=(c|0)){c=b;e=a+184|0;if((d|0)<=H[e>>2]){break Jb}}H[e>>2]=d;b=c}c=H[f>>2]}Kb:{if((c|0)<=(j|0)){f=a+180|0;if((j|0)<=H[f>>2]){break Kb}}H[f>>2]=j}if((b|0)>(h|0)){H[a+176>>2]=h;break Fb}if((h|0)<=H[a+184>>2]){break Fb}H[a+184>>2]=h;break Fb}zb[H[H[b>>2]+44>>2]](b,+(g|0),+(d|0),+(j|0),+(h|0),0,360);b=H[a+240>>2];if(!b){break Fb}zb[H[H[b>>2]+52>>2]](b,3);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}b=H[a+168>>2];G[b+132>>1]=(g+j|0)/2;G[b+134>>1]=(d+h|0)/2;break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}c=d&65535;h=0;d=f&65535;wm(a+120|0,d);b=H[a+240>>2];if(b){zb[H[H[b>>2]+148>>2]](b,d,c)}k=H[H[a+168>>2]+76>>2];Lb:{if(!k){break Lb}b=J[k+18>>1];if(b){c=a+180|0;d=a+172|0;while(1){g=H[k+32>>2]+(h<<4)|0;if(J[g>>1]>=2){f=0;while(1){j=f<<2;i=G[j+H[g+8>>2]>>1];e=G[g+2>>1];b=H[a+240>>2];Mb:{if(b){zb[H[H[b>>2]+32>>2]](b,+(i|0),+(e|0));break Mb}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break Mb}b=d;Nb:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break Nb}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break Mb}if((e|0)<=H[a+184>>2]){break Mb}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[(j+H[g+8>>2]|0)+2>>1];e=G[g+2>>1];b=H[a+240>>2];Ob:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break Ob}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break Ob}b=d;Pb:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break Pb}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break Ob}if((e|0)<=H[a+184>>2]){break Ob}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[(j+H[g+8>>2]|0)+2>>1];e=G[g+4>>1];b=H[a+240>>2];Qb:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break Qb}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break Qb}b=d;Rb:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break Rb}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break Qb}if((e|0)<=H[a+184>>2]){break Qb}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[j+H[g+8>>2]>>1];e=G[g+4>>1];b=H[a+240>>2];Sb:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break Sb}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break Sb}b=d;Tb:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break Tb}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break Sb}if((e|0)<=H[a+184>>2]){break Sb}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[j+H[g+8>>2]>>1];e=G[g+2>>1];b=H[a+240>>2];Ub:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break Ub}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break Ub}b=d;Vb:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break Vb}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break Ub}if((e|0)<=H[a+184>>2]){break Ub}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;f=f+1|0;if(f>>>0>1]>>>1>>>0){continue}break}b=J[k+18>>1]}h=h+1|0;if(h>>>0>16>>>0){continue}break}}b=H[a+240>>2];if(!b){break Lb}zb[H[H[b>>2]+52>>2]](b,2);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}Wb:{if(e>>>0<=b+1>>>0){c=b;break Wb}d=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}b=0;Xb:{if(e>>>0<=c+1>>>0){i=0;break Xb}i=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}c=f&65535;d=d&65535;f=i<<16>>16;g=b<<16>>16;h=0;b=H[a+240>>2];if(b){zb[H[H[b>>2]+152>>2]](b,c,d,f,g)}wm(a+120|0,c);k=H[H[a+168>>2]+76>>2];Yb:{if(!k){break Yb}b=J[k+18>>1];if(b){c=a+180|0;d=a+172|0;while(1){g=H[k+32>>2]+(h<<4)|0;if(J[g>>1]>=2){f=0;while(1){j=f<<2;i=G[j+H[g+8>>2]>>1];e=G[g+2>>1];b=H[a+240>>2];Zb:{if(b){zb[H[H[b>>2]+32>>2]](b,+(i|0),+(e|0));break Zb}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break Zb}b=d;_b:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break _b}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break Zb}if((e|0)<=H[a+184>>2]){break Zb}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[(j+H[g+8>>2]|0)+2>>1];e=G[g+2>>1];b=H[a+240>>2];$b:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break $b}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break $b}b=d;ac:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break ac}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break $b}if((e|0)<=H[a+184>>2]){break $b}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[(j+H[g+8>>2]|0)+2>>1];e=G[g+4>>1];b=H[a+240>>2];bc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break bc}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break bc}b=d;cc:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break cc}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break bc}if((e|0)<=H[a+184>>2]){break bc}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[j+H[g+8>>2]>>1];e=G[g+4>>1];b=H[a+240>>2];dc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break dc}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break dc}b=d;ec:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break ec}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break dc}if((e|0)<=H[a+184>>2]){break dc}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[j+H[g+8>>2]>>1];e=G[g+2>>1];b=H[a+240>>2];fc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break fc}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break fc}b=d;gc:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break gc}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break fc}if((e|0)<=H[a+184>>2]){break fc}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;f=f+1|0;if(f>>>0>1]>>>1>>>0){continue}break}b=J[k+18>>1]}h=h+1|0;if(h>>>0>16>>>0){continue}break}}b=H[a+240>>2];if(!b){break Yb}zb[H[H[b>>2]+52>>2]](b,1);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}c=b&65535;b=H[a+240>>2];if(b){zb[H[H[b>>2]+156>>2]](b,c)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}c=f<<16>>16;d=d<<16>>16;hc:{ic:{b=H[a+240>>2];if(!b){break ic}zb[H[H[b>>2]+160>>2]](b,c,d);b=H[a+240>>2];if(!b){break ic}zb[H[H[b>>2]+36>>2]](b,+(d|0),+(c|0));break hc}if(I[a+188|0]){H[a+172>>2]=d;F[a+188|0]=0;H[a+180>>2]=d;H[a+184>>2]=c;H[a+176>>2]=c;break hc}b=a+172|0;jc:{if((d|0)>=H[b>>2]){b=a+180|0;if((d|0)<=H[b>>2]){break jc}}H[b>>2]=d}if((c|0)>2]){H[a+176>>2]=c;break hc}if((c|0)<=H[a+184>>2]){break hc}H[a+184>>2]=c}b=H[a+168>>2];G[b+132>>1]=d;G[b+134>>1]=c;b=H[a+240>>2];if(b){zb[H[H[b>>2]+52>>2]](b,1);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;h=0;c=H[a+240>>2];if(c){zb[H[H[c>>2]+164>>2]](c,b)}wm(a+120|0,b);k=H[H[a+168>>2]+76>>2];kc:{if(!k){break kc}b=J[k+18>>1];if(b){c=a+180|0;d=a+172|0;while(1){g=H[k+32>>2]+(h<<4)|0;if(J[g>>1]>=2){f=0;while(1){j=f<<2;i=G[j+H[g+8>>2]>>1];e=G[g+2>>1];b=H[a+240>>2];lc:{if(b){zb[H[H[b>>2]+32>>2]](b,+(i|0),+(e|0));break lc}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break lc}b=d;mc:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break mc}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break lc}if((e|0)<=H[a+184>>2]){break lc}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[(j+H[g+8>>2]|0)+2>>1];e=G[g+2>>1];b=H[a+240>>2];nc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break nc}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break nc}b=d;oc:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break oc}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break nc}if((e|0)<=H[a+184>>2]){break nc}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[(j+H[g+8>>2]|0)+2>>1];e=G[g+4>>1];b=H[a+240>>2];pc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break pc}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break pc}b=d;qc:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break qc}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break pc}if((e|0)<=H[a+184>>2]){break pc}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[j+H[g+8>>2]>>1];e=G[g+4>>1];b=H[a+240>>2];rc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break rc}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break rc}b=d;sc:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break sc}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break rc}if((e|0)<=H[a+184>>2]){break rc}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;i=G[j+H[g+8>>2]>>1];e=G[g+2>>1];b=H[a+240>>2];tc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(i|0),+(e|0));break tc}if(I[a+188|0]){H[a+180>>2]=i;H[a+172>>2]=i;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break tc}b=d;uc:{if((i|0)>=H[b>>2]){b=c;if((i|0)<=H[b>>2]){break uc}}H[b>>2]=i}if((e|0)>2]){H[a+176>>2]=e;break tc}if((e|0)<=H[a+184>>2]){break tc}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=i;G[b+134>>1]=e;f=f+1|0;if(f>>>0>1]>>>1>>>0){continue}break}b=J[k+18>>1]}h=h+1|0;if(h>>>0>16>>>0){continue}break}}b=H[a+240>>2];if(!b){break kc}zb[H[H[b>>2]+52>>2]](b,2);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}break s}d=0;f=0;if(e>>>0>c+5>>>0){f=I[c+2|0]|I[c+3|0]<<8|(I[c+4|0]<<16|I[c+5|0]<<24);b=c+6|0;H[a+8>>2]=b}vc:{if(e>>>0<=b+1>>>0){c=b;break vc}d=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}b=0;wc:{if(e>>>0<=c+1>>>0){g=0;break wc}g=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}i=0;if(e>>>0>c+1>>>0){i=(I[c|0]|I[c+1|0]<<8)<<16>>16;H[a+8>>2]=c+2}Dy(a,f,d<<16>>16,g<<16>>16,b<<16>>16,i<<16>>16);break s}i=0;k=0;h=0;e=0;f=0;g=0;c=0;b=0;j=H[a+12>>2];d=H[a+8>>2];if(j>>>0>d+1>>>0){k=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){i=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){e=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){h=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){g=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){f=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){b=(I[d|0]|I[d+1|0]<<8)<<16>>16;d=d+2|0;H[a+8>>2]=d}if(j>>>0>d+1>>>0){c=(I[d|0]|I[d+1|0]<<8)<<16>>16;H[a+8>>2]=d+2}h=h<<16>>16;d=e<<16>>16;m=i<<16>>16;k=k<<16>>16;i=g<<16>>16;j=f<<16>>16;f=b<<16>>16;c=c<<16>>16;b=H[a+240>>2];if(b){zb[H[H[b>>2]+172>>2]](b,h,d,m,k,i,j,f,c)}q=qe(c,f,j,i,h,d);n=qe(c,f,j,i,m,k);g=(f+i|0)/2|0;e=(c+j|0)/2|0;b=H[a+240>>2];xc:{if(b){zb[H[H[b>>2]+32>>2]](b,+(e<<16>>16),+(g<<16>>16));break xc}if(I[a+188|0]){H[a+172>>2]=e;F[a+188|0]=0;H[a+180>>2]=e;H[a+184>>2]=g;H[a+176>>2]=g;break xc}b=a+172|0;yc:{if((e|0)>=H[b>>2]){b=a+180|0;if((e|0)<=H[b>>2]){break yc}}H[b>>2]=e}if((g|0)>2]){H[a+176>>2]=g;break xc}if((g|0)<=H[a+184>>2]){break xc}H[a+184>>2]=g}b=H[a+168>>2];G[b+132>>1]=e;G[b+134>>1]=g;b=H[a+240>>2];zc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(h|0),+(d|0));break zc}if(I[a+188|0]){H[a+172>>2]=h;F[a+188|0]=0;H[a+180>>2]=h;H[a+184>>2]=d;H[a+176>>2]=d;break zc}b=a+172|0;Ac:{if((h|0)>=H[b>>2]){b=a+180|0;if((h|0)<=H[b>>2]){break Ac}}H[b>>2]=h}if((d|0)>2]){H[a+176>>2]=d;break zc}if((d|0)<=H[a+184>>2]){break zc}H[a+184>>2]=d}b=H[a+168>>2];G[b+132>>1]=h;G[b+134>>1]=d;Bc:{Cc:{Dc:{Ec:{b=H[a+240>>2];if(!b){d=a+172|0;Fc:{if(I[a+188|0]){H[a+172>>2]=c;F[a+188|0]=0;H[a+180>>2]=c;H[a+184>>2]=f;H[a+176>>2]=f;b=f;break Fc}b=d;Gc:{if(H[b>>2]<=(c|0)){b=a+180|0;if(H[b>>2]>=(c|0)){break Gc}}H[b>>2]=c}h=a+176|0;b=H[h>>2];c=f;Hc:{if((b|0)<=(c|0)){c=b;h=a+184|0;if((f|0)<=H[h>>2]){break Hc}}H[h>>2]=f;b=c}c=H[d>>2]}Ic:{if((c|0)<=(j|0)){d=a+180|0;if((j|0)<=H[d>>2]){break Ic}}H[d>>2]=j}if((b|0)<=(i|0)){break Ec}c=a+176|0;break Dc}zb[H[H[b>>2]+44>>2]](b,+(c|0),+(f|0),+(j|0),+(i|0),q,((e|0)>(h|0)?n:(e|0)>(m|0)?n:(g|0)<(k|0)?n:(d|0)<(g|0)?n:n+-360)-q);b=H[a+240>>2];if(!b){break Cc}zb[H[H[b>>2]+36>>2]](b,+(e<<16>>16),+(g<<16>>16));break Bc}c=a+184|0;if((i|0)<=H[c>>2]){break Cc}}H[c>>2]=i}if(I[a+188|0]){H[a+172>>2]=e;F[a+188|0]=0;H[a+180>>2]=e;H[a+184>>2]=g;H[a+176>>2]=g;break Bc}c=a+172|0;Jc:{if((e|0)>=H[c>>2]){c=a+180|0;if((e|0)<=H[c>>2]){break Jc}}H[c>>2]=e}if((g|0)>2]){H[a+176>>2]=g;break Bc}if((g|0)<=H[a+184>>2]){break Bc}H[a+184>>2]=g}b=H[a+168>>2];G[b+132>>1]=e;G[b+134>>1]=g;b=H[a+240>>2];if(b){zb[H[H[b>>2]+52>>2]](b,3);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}break s}m=0;f=xb-16|0;xb=f;g=H[a+12>>2];c=H[a+8>>2];Kc:{if(g>>>0<=c+1>>>0){break Kc}e=(I[c|0]|I[c+1|0]<<8)<<16>>16;b=c+2|0;H[a+8>>2]=b;if((e|0)<=0){break Kc}i=e&65535;d=i<<2;h=Qb(d);H[f>>2]=h;j=d+h|0;H[f+8>>2]=j;h=Nb(h,0,d);H[f+4>>2]=j;d=0;if(g>>>0>c+3>>>0){d=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}G[h>>1]=d;d=1;Lc:{if(g>>>0<=b+1>>>0){c=b;break Lc}m=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}G[h+2>>1]=m;if(e>>>0>1){while(1){e=h+(d<<2)|0;b=0;Mc:{if(g>>>0<=c+1>>>0){m=0;break Mc}m=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[e>>1]=m;if(g>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}G[e+2>>1]=b;d=d+1|0;if((i|0)!=(d|0)){continue}break}}H[197455]=0;ba(3161,a|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){a=$()|0;_()|0;b=H[f>>2];if(b){H[f+4>>2]=b;Kb(b)}break l}b=H[f>>2];if(!b){break Kc}H[f+4>>2]=b;Kb(b)}xb=f+16|0;break s}h=0;b=xb-16|0;xb=b;Nc:{Oc:{d=H[a+12>>2];c=H[a+8>>2];Pc:{if(d>>>0<=c+1>>>0){break Pc}f=(I[c|0]|I[c+1|0]<<8)<<16>>16;k=c+2|0;H[a+8>>2]=k;if((f|0)<=0){break Pc}g=f&65535;c=g<<2;f=Qb(c);H[b>>2]=f;e=c+f|0;H[b+8>>2]=e;i=Nb(f,0,c);H[b+4>>2]=e;while(1){c=i+(h<<2)|0;Qc:{if(d>>>0<=k+1>>>0){f=0;break Qc}f=I[k|0]|I[k+1|0]<<8;k=k+2|0;H[a+8>>2]=k}G[c>>1]=f;f=0;if(d>>>0>k+1>>>0){f=I[k|0]|I[k+1|0]<<8;k=k+2|0;H[a+8>>2]=k}G[c+2>>1]=f;h=h+1|0;if((g|0)!=(h|0)){continue}break}H[197455]=0;ba(3162,a|0,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break Oc}c=H[b>>2];if(!c){break Pc}H[b+4>>2]=c;Kb(c)}xb=b+16|0;break Nc}a=$()|0;_()|0;c=H[b>>2];if(c){H[b+4>>2]=c;Kb(c)}break l}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}Rc:{if(e>>>0<=b+1>>>0){c=b;break Rc}d=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}b=0;Sc:{if(e>>>0<=c+1>>>0){i=0;break Sc}i=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}c=f<<16>>16;f=d<<16>>16;d=i<<16>>16;g=b<<16>>16;Tc:{Uc:{b=H[a+240>>2];if(!b){break Uc}zb[H[H[b>>2]+188>>2]](b,c,f,d,g);b=H[a+240>>2];if(!b){break Uc}zb[H[H[b>>2]+32>>2]](b,+(g|0),+(d|0));break Tc}if(I[a+188|0]){H[a+172>>2]=g;F[a+188|0]=0;H[a+180>>2]=g;H[a+184>>2]=d;H[a+176>>2]=d;break Tc}b=a+172|0;Vc:{if((g|0)>=H[b>>2]){b=a+180|0;if((g|0)<=H[b>>2]){break Vc}}H[b>>2]=g}if((d|0)>2]){H[a+176>>2]=d;break Tc}if((d|0)<=H[a+184>>2]){break Tc}H[a+184>>2]=d}b=H[a+168>>2];G[b+132>>1]=g;G[b+134>>1]=d;b=H[a+240>>2];Wc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(f|0),+(d|0));break Wc}if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;H[a+184>>2]=d;H[a+176>>2]=d;break Wc}b=a+172|0;Xc:{if((f|0)>=H[b>>2]){b=a+180|0;if((f|0)<=H[b>>2]){break Xc}}H[b>>2]=f}if((d|0)>2]){H[a+176>>2]=d;break Wc}if((d|0)<=H[a+184>>2]){break Wc}H[a+184>>2]=d}b=H[a+168>>2];G[b+132>>1]=f;G[b+134>>1]=d;b=H[a+240>>2];Yc:{if(b){zb[H[H[b>>2]+36>>2]](b,+(f|0),+(c|0));break Yc}if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;H[a+184>>2]=c;H[a+176>>2]=c;break Yc}b=a+172|0;Zc:{if((f|0)>=H[b>>2]){b=a+180|0;if((f|0)<=H[b>>2]){break Zc}}H[b>>2]=f}if((c|0)>2]){H[a+176>>2]=c;break Yc}if((c|0)<=H[a+184>>2]){break Yc}H[a+184>>2]=c}b=H[a+168>>2];G[b+132>>1]=f;G[b+134>>1]=c;b=H[a+240>>2];_c:{if(b){zb[H[H[b>>2]+36>>2]](b,+(g|0),+(c|0));break _c}if(I[a+188|0]){H[a+172>>2]=g;F[a+188|0]=0;H[a+180>>2]=g;H[a+184>>2]=c;H[a+176>>2]=c;break _c}b=a+172|0;$c:{if((g|0)>=H[b>>2]){b=a+180|0;if((g|0)<=H[b>>2]){break $c}}H[b>>2]=g}if((c|0)>2]){H[a+176>>2]=c;break _c}if((c|0)<=H[a+184>>2]){break _c}H[a+184>>2]=c}b=H[a+168>>2];G[b+132>>1]=g;G[b+134>>1]=c;b=H[a+240>>2];ad:{if(!b){break ad}zb[H[H[b>>2]+48>>2]](b);b=H[a+240>>2];if(!b){break ad}zb[H[H[b>>2]+52>>2]](b,3);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}b=H[a+168>>2];G[b+132>>1]=(f+g|0)/2;G[b+134>>1]=(c+d|0)/2;break s}h=0;e=0;f=0;g=0;c=0;b=0;d=H[a+12>>2];i=H[a+8>>2];if(d>>>0>i+1>>>0){e=(I[i|0]|I[i+1|0]<<8)<<16>>16;i=i+2|0;H[a+8>>2]=i}if(d>>>0>i+1>>>0){h=(I[i|0]|I[i+1|0]<<8)<<16>>16;i=i+2|0;H[a+8>>2]=i}if(d>>>0>i+1>>>0){g=(I[i|0]|I[i+1|0]<<8)<<16>>16;i=i+2|0;H[a+8>>2]=i}if(d>>>0>i+1>>>0){f=(I[i|0]|I[i+1|0]<<8)<<16>>16;i=i+2|0;H[a+8>>2]=i}if(d>>>0>i+1>>>0){b=(I[i|0]|I[i+1|0]<<8)<<16>>16;i=i+2|0;H[a+8>>2]=i}if(d>>>0>i+1>>>0){c=(I[i|0]|I[i+1|0]<<8)<<16>>16;H[a+8>>2]=i+2}e=e<<16>>16;d=h<<16>>16;i=g<<16>>16;h=f<<16>>16;g=b<<16>>16;f=c<<16>>16;bd:{cd:{b=H[a+240>>2];if(!b){j=d+f|0;break cd}zb[H[H[b>>2]+192>>2]](b,e,d,i,h,g,f);j=d+f|0;b=H[a+240>>2];if(!b){break cd}zb[H[H[b>>2]+32>>2]](b,+(j<<16>>16),+(g|0));break bd}b=j<<16>>16;if(I[a+188|0]){H[a+172>>2]=b;F[a+188|0]=0;H[a+180>>2]=b;H[a+184>>2]=g;H[a+176>>2]=g;break bd}c=a+172|0;dd:{if((b|0)>=H[c>>2]){c=a+180|0;if((b|0)<=H[c>>2]){break dd}}H[c>>2]=b}if((g|0)>2]){H[a+176>>2]=g;break bd}if((g|0)<=H[a+184>>2]){break bd}H[a+184>>2]=g}b=H[a+168>>2];G[b+132>>1]=j;G[b+134>>1]=g;m=h-d|0;b=H[a+240>>2];ed:{if(b){zb[H[H[b>>2]+36>>2]](b,+(m<<16>>16),+(g|0));break ed}b=m<<16>>16;if(I[a+188|0]){H[a+172>>2]=b;F[a+188|0]=0;H[a+180>>2]=b;H[a+184>>2]=g;H[a+176>>2]=g;break ed}c=a+172|0;fd:{if((b|0)>=H[c>>2]){c=a+180|0;if((b|0)<=H[c>>2]){break fd}}H[c>>2]=b}if((g|0)>2]){H[a+176>>2]=g;break ed}if((g|0)<=H[a+184>>2]){break ed}H[a+184>>2]=g}b=H[a+168>>2];c=m<<16>>16;G[b+132>>1]=c;G[b+134>>1]=g;k=e+g|0;gd:{hd:{b=H[a+240>>2];if(!b){d=a+172|0;id:{if(I[a+188|0]){H[a+172>>2]=c;F[a+188|0]=0;H[a+180>>2]=c;H[a+184>>2]=g;H[a+176>>2]=g;b=g;break id}b=d;jd:{if(H[b>>2]<=(c|0)){b=a+180|0;if(H[b>>2]>=(c|0)){break jd}}H[b>>2]=c}p=a+176|0;b=H[p>>2];c=g;kd:{if((b|0)<=(c|0)){c=b;p=a+184|0;if((g|0)<=H[p>>2]){break kd}}H[p>>2]=g;b=c}c=H[d>>2]}ld:{if((c|0)<=(h|0)){d=a+180|0;if((h|0)<=H[d>>2]){break ld}}H[d>>2]=h}c=b;b=k<<16>>16;md:{nd:{if((c|0)>(b|0)){d=a+176|0;break nd}d=a+184|0;if((b|0)<=H[d>>2]){break md}}H[d>>2]=b}e=i-e|0;break hd}n=+(h|0);zb[H[H[b>>2]+44>>2]](b,+(c|0),+(g|0),n,+(k<<16>>16),270,90);e=i-e|0;b=H[a+240>>2];if(!b){break hd}zb[H[H[b>>2]+36>>2]](b,n,+(e<<16>>16));break gd}if(I[a+188|0]){H[a+172>>2]=h;F[a+188|0]=0;H[a+180>>2]=h;b=e<<16>>16;H[a+184>>2]=b;H[a+176>>2]=b;break gd}c=a+172|0;od:{if((h|0)>=H[c>>2]){c=a+180|0;if((h|0)<=H[c>>2]){break od}}H[c>>2]=h}b=e<<16>>16;if((b|0)>2]){H[a+176>>2]=b;break gd}if((b|0)<=H[a+184>>2]){break gd}H[a+184>>2]=b}b=H[a+168>>2];G[b+132>>1]=h;c=e<<16>>16;G[b+134>>1]=c;pd:{qd:{rd:{sd:{b=H[a+240>>2];if(!b){c=a+172|0;b=m<<16>>16;td:{if(I[a+188|0]){H[a+172>>2]=b;F[a+188|0]=0;H[a+180>>2]=b;d=e<<16>>16;H[a+184>>2]=d;H[a+176>>2]=d;break td}d=c;ud:{if(H[c>>2]<=(b|0)){d=a+180|0;if(H[d>>2]>=(b|0)){break ud}}H[d>>2]=b}m=e<<16>>16;b=m;p=a+176|0;d=H[p>>2];vd:{if((b|0)>=(d|0)){b=d;p=a+184|0;if((m|0)<=H[p>>2]){break vd}}H[p>>2]=m;d=b}b=H[c>>2]}wd:{if((b|0)<=(h|0)){c=a+180|0;if((h|0)<=H[c>>2]){break wd}}H[c>>2]=h}if((d|0)<=(i|0)){break sd}h=a+176|0;break rd}n=+(i|0);zb[H[H[b>>2]+44>>2]](b,+(m<<16>>16),+(c|0),+(h|0),n,0,90);b=H[a+240>>2];if(!b){break qd}zb[H[H[b>>2]+36>>2]](b,+(j<<16>>16),n);break pd}h=a+184|0;if((i|0)<=H[h>>2]){break qd}}H[h>>2]=i}c=j<<16>>16;if(I[a+188|0]){H[a+172>>2]=c;F[a+188|0]=0;H[a+180>>2]=c;H[a+184>>2]=i;H[a+176>>2]=i;break pd}b=a+172|0;xd:{if((c|0)>=H[b>>2]){b=a+180|0;if((c|0)<=H[b>>2]){break xd}}H[b>>2]=c}if((i|0)>2]){H[a+176>>2]=i;break pd}if((i|0)<=H[a+184>>2]){break pd}H[a+184>>2]=i}b=H[a+168>>2];c=j<<16>>16;G[b+132>>1]=c;G[b+134>>1]=i;yd:{zd:{Ad:{Bd:{b=H[a+240>>2];if(!b){h=a+172|0;Cd:{if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;e=e<<16>>16;H[a+184>>2]=e;H[a+176>>2]=e;c=f;break Cd}b=h;Dd:{if(H[b>>2]<=(f|0)){b=a+180|0;if(H[b>>2]>=(f|0)){break Dd}}H[b>>2]=f}b=e<<16>>16;c=b;d=a+176|0;e=H[d>>2];Ed:{if((b|0)>=(e|0)){c=e;d=a+184|0;if((b|0)<=H[d>>2]){break Ed}}H[d>>2]=b;e=c}c=H[h>>2]}b=j<<16>>16;Fd:{if((c|0)<=(b|0)){h=a+180|0;if((b|0)<=H[h>>2]){break Fd}}H[h>>2]=b}if((e|0)<=(i|0)){break Bd}h=a+176|0;break Ad}n=+(f|0);zb[H[H[b>>2]+44>>2]](b,n,+(e<<16>>16),+(c|0),+(i|0),90,90);b=H[a+240>>2];if(!b){break zd}zb[H[H[b>>2]+36>>2]](b,n,+(k<<16>>16));break yd}h=a+184|0;if((i|0)<=H[h>>2]){break zd}}H[h>>2]=i}if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;b=k<<16>>16;H[a+184>>2]=b;H[a+176>>2]=b;break yd}h=a+172|0;Gd:{if(H[h>>2]<=(f|0)){h=a+180|0;if(H[h>>2]>=(f|0)){break Gd}}H[h>>2]=f}b=k<<16>>16;if((b|0)>2]){H[a+176>>2]=b;break yd}if((b|0)<=H[a+184>>2]){break yd}H[a+184>>2]=b}b=H[a+168>>2];G[b+132>>1]=f;c=k<<16>>16;G[b+134>>1]=c;b=H[a+240>>2];Hd:{if(!b){h=a+172|0;Id:{if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;H[a+184>>2]=g;H[a+176>>2]=g;b=g;break Id}b=h;Jd:{if(H[b>>2]<=(f|0)){b=a+180|0;if(H[b>>2]>=(f|0)){break Jd}}H[b>>2]=f}e=a+176|0;b=H[e>>2];f=g;Kd:{if((b|0)<=(g|0)){f=b;e=a+184|0;if((g|0)<=H[e>>2]){break Kd}}H[e>>2]=g;b=f}f=H[h>>2]}c=j<<16>>16;Ld:{if((c|0)>=(f|0)){h=a+180|0;if((c|0)<=H[h>>2]){break Ld}}H[h>>2]=c}c=b;b=k<<16>>16;if((c|0)>(b|0)){H[a+176>>2]=b;break Hd}if((b|0)<=H[a+184>>2]){break Hd}H[a+184>>2]=b;break Hd}zb[H[H[b>>2]+44>>2]](b,+(f|0),+(g|0),+(j<<16>>16),+(c|0),180,90);b=H[a+240>>2];if(!b){break Hd}zb[H[H[b>>2]+48>>2]](b);b=H[a+240>>2];if(!b){break Hd}zb[H[H[b>>2]+52>>2]](b,3);b=H[a+240>>2];zb[H[H[b>>2]+56>>2]](b)}break s}d=0;F[o+10|0]=0;f=0;if(b>>>0>>0){f=I[c+2|0];b=c+3|0;H[a+8>>2]=b}F[o+8|0]=f;Md:{if(b>>>0>=e>>>0){c=b;break Md}d=I[b|0];c=b+1|0;H[a+8>>2]=c}F[o+9|0]=d;b=0;Nd:{if(c>>>0>=e>>>0){d=0;break Nd}d=I[c|0];c=c+1|0;H[a+8>>2]=c}F[o+10|0]=d;if(c>>>0>>0){b=I[c|0];c=c+1|0;H[a+8>>2]=c}F[o+11|0]=b;b=0;Od:{if(e>>>0<=c+1>>>0){d=0;break Od}d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}d=d<<16>>16;f=b<<16>>16;b=xb-16|0;xb=b;c=o+8|0;F[b+12|0]=I[c+2|0];F[b+13|0]=I[c+1|0];g=I[c|0];F[b+15|0]=255;F[b+14|0]=g;g=H[a+240>>2];if(g){zb[H[H[g>>2]+196>>2]](g,c,d,f);c=H[a+240>>2];zb[H[H[c>>2]+16>>2]](c,+(f|0),+(d|0),1,1,b+12|0,1,1)}xb=b+16|0;break s}i=0;f=0;c=H[a+12>>2];b=H[a+8>>2];Pd:{if(c>>>0<=b+1>>>0){break Pd}h=I[b|0];g=I[b+1|0];d=b+2|0;H[a+8>>2]=d;g=(h|g<<8)<<16>>16;if((g|0)<=0){break Pd}e=g&65535;b=Qb(e+1|0);F[b+e|0]=0;j=c-d|0;e=e>>>0>j>>>0?j:e;Qd:{if(!e){break Qd}if((e|0)!=1){j=e&65534;while(1){Rd:{if(c>>>0<=d>>>0){m=0;break Rd}m=I[d|0];d=d+1|0;H[a+8>>2]=d}F[b+i|0]=m;m=0;if(c>>>0>d>>>0){m=I[d|0];d=d+1|0;H[a+8>>2]=d}F[b+(i|1)|0]=m;i=i+2|0;f=f+2|0;if((j|0)!=(f|0)){continue}break}}if(!(e&1)){break Qd}m=0;if(c>>>0>d>>>0){m=I[d|0];d=d+1|0;H[a+8>>2]=d}F[b+i|0]=m}if(h&1){d=d+1|0;H[a+8>>2]=d}i=0;Sd:{if(c>>>0<=d+1>>>0){m=0;break Sd}m=I[d|0]|I[d+1|0]<<8;d=d+2|0;H[a+8>>2]=d}if(c>>>0>d+1>>>0){i=I[d|0]|I[d+1|0]<<8;H[a+8>>2]=d+2}c=m<<16>>16;d=i<<16>>16;f=H[a+240>>2];if(f){zb[H[H[f>>2]+200>>2]](f,g,b,d,c)}Ey(a,b,g,d,c,0);Kb(b)}break s}d=0;F[o+11|0]=0;F[o+12|0]=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}G[o+8>>1]=f;Td:{if(b>>>0>=e>>>0){c=b;break Td}d=I[b|0];c=b+1|0;H[a+8>>2]=c}F[o+10|0]=d;b=0;Ud:{if(c>>>0>=e>>>0){d=0;break Ud}d=I[c|0];c=c+1|0;H[a+8>>2]=c}F[o+11|0]=d;if(c>>>0>>0){b=I[c|0];c=c+1|0;H[a+8>>2]=c}F[o+12|0]=b;b=0;Vd:{if(c>>>0>=e>>>0){d=0;break Vd}d=I[c|0];c=c+1|0;H[a+8>>2]=c}F[o+13|0]=d;if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}G[o+14>>1]=b;b=o+8|0;c=H[a+240>>2];if(c){zb[H[H[c>>2]+204>>2]](c,b)}c=Qb(40);H[197455]=0;b=Cy(c,b);d=H[197455];H[197455]=0;Wd:{if((d|0)!=1){Xd:{switch(J[b+8>>1]-3|0){case 0:case 3:F[b+10|0]=0;F[b+11|0]=0;F[b+12|0]=0;F[b+13|0]=0;G[b+8>>1]=0;break;default:break Xd}}ri(a+120|0,b);break Wd}break m}break s}b=Qb(60);G[b+26>>1]=0;G[b+28>>1]=0;G[b+30>>1]=0;G[b+32>>1]=0;H[b+4>>2]=436100;H[b>>2]=436044;G[b+34>>1]=0;G[b+36>>1]=0;G[b+38>>1]=0;G[b+40>>1]=0;G[b+42>>1]=0;G[b+44>>1]=0;G[b+46>>1]=0;G[b+48>>1]=0;G[b+50>>1]=0;G[b+52>>1]=0;G[b+54>>1]=0;G[b+56>>1]=0;e=0;g=0;c=H[l+8>>2];h=H[l+4>>2];if(c>>>0>h+1>>>0){e=I[h|0]|I[h+1|0]<<8;h=h+2|0;H[l+4>>2]=h}G[b+8>>1]=e;if(c>>>0>h+1>>>0){g=I[h|0]|I[h+1|0]<<8;h=h+2|0;H[l+4>>2]=h}G[b+10>>1]=g;g=0;Yd:{if(c>>>0<=h+1>>>0){e=0;break Yd}e=I[h|0]|I[h+1|0]<<8;h=h+2|0;H[l+4>>2]=h}G[b+12>>1]=e;if(c>>>0>h+1>>>0){g=I[h|0]|I[h+1|0]<<8;h=h+2|0;H[l+4>>2]=h}G[b+14>>1]=g;g=0;Zd:{if(c>>>0<=h+1>>>0){e=0;break Zd}e=I[h|0]|I[h+1|0]<<8;h=h+2|0;H[l+4>>2]=h}G[b+16>>1]=e;if(c>>>0>h>>>0){g=I[h|0];H[l+4>>2]=h+1}F[b+18|0]=g;e=0;h=0;c=H[l+4>>2];if(c>>>0>2]){h=I[c|0];H[l+4>>2]=c+1}F[b+19|0]=h;c=H[l+4>>2];if(c>>>0>2]){e=I[c|0];H[l+4>>2]=c+1}F[b+20|0]=e;e=0;h=0;c=H[l+4>>2];if(c>>>0>2]){h=I[c|0];H[l+4>>2]=c+1}F[b+21|0]=h;c=H[l+4>>2];if(c>>>0>2]){e=I[c|0];H[l+4>>2]=c+1}F[b+22|0]=e;e=0;h=0;c=H[l+4>>2];if(c>>>0>2]){h=I[c|0];H[l+4>>2]=c+1}F[b+23|0]=h;c=H[l+4>>2];if(c>>>0>2]){e=I[c|0];H[l+4>>2]=c+1}F[b+24|0]=e;e=0;c=H[l+4>>2];if(c>>>0>2]){e=I[c|0];H[l+4>>2]=c+1}F[b+25|0]=e;e=b+26|0;_d:{$d:{c=H[l+4>>2];if(c>>>0>=K[l+8>>2]){break $d}d=I[c|0];H[l+4>>2]=c+1;F[b+26|0]=d;if(!d){break _d}h=0;while(1){f=b+(h|1)|0;e=f+26|0;c=H[l+4>>2];if(c>>>0>=K[l+8>>2]){break $d}d=I[c|0];H[l+4>>2]=c+1;F[f+26|0]=d;if(!d){break _d}h=h+2|0;if((h|0)==32){break _d}f=b+h|0;e=f+26|0;c=H[l+4>>2];if(c>>>0>=K[l+8>>2]){break $d}d=I[c|0];H[l+4>>2]=c+1;F[f+26|0]=d;if(d){continue}break}break _d}F[e|0]=0}c=H[a+240>>2];if(c){zb[H[H[c>>2]+208>>2]](c,b)}ri(a+120|0,b);break s}b=Qb(12);H[b+8>>2]=0;H[b>>2]=436208;G[b+6>>1]=0;e=0;g=H[l+8>>2];h=H[l+4>>2];if(g>>>0>h+1>>>0){e=I[h|0]|I[h+1|0]<<8;h=h+2|0;H[l+4>>2]=h}G[b+4>>1]=e;ae:{be:{if(h+1>>>0>=g>>>0){G[b+6>>1]=0;break be}c=I[h|0]|I[h+1|0]<<8;k=h+2|0;H[l+4>>2]=k;G[b+6>>1]=c;if(!c){break be}h=Qb(c<<2);H[b+8>>2]=h;e=0;while(1){f=0;if(g>>>0>k>>>0){f=I[k|0];H[l+4>>2]=k+1}c=(e<<2)+h|0;F[c|0]=f;k=0;f=0;d=H[l+4>>2];if(d>>>0>2]){f=I[d|0];H[l+4>>2]=d+1}F[c+1|0]=f;d=H[l+4>>2];if(d>>>0>2]){k=I[d|0];H[l+4>>2]=d+1}F[c+2|0]=k;k=0;d=H[l+4>>2];if(d>>>0>2]){k=I[d|0];H[l+4>>2]=d+1}F[c+3|0]=k;e=e+1|0;if(e>>>0>=J[b+6>>1]){break ae}g=H[l+8>>2];k=H[l+4>>2];h=H[b+8>>2];continue}}H[b+8>>2]=0}c=H[a+240>>2];if(c){zb[H[H[c>>2]+212>>2]](c,b)}ri(a+120|0,b);break s}c=Qb(40);H[197455]=0;g=xm(c);b=H[197455];H[197455]=0;ce:{if((b|0)!=1){de:{if(!H[a+16>>2]){break de}b=H[a+12>>2];d=H[a+8>>2];e=b>>>0>d+1>>>0;h=(e<<1)+d|0;j=b>>>0>h+1>>>0;c=(j<<1)+h|0;k=b>>>0>c+1>>>0;c=(k<<1)+c|0;m=c+2|0;i=b>>>0>c+1>>>0;f=i?m:c;j=j|k;ee:{if(!(i|(j|e))){if(b>>>0<=f>>>0){break ee}}d=b>>>0>f>>>0?f+1|0:i?m:j?c:h;H[a+8>>2]=d}if(b>>>0<=d>>>0){break de}H[a+8>>2]=d+1}c=a+4|0;b=H[a+240>>2];if(b){zb[H[H[b>>2]+216>>2]](b,g,c)}ri(a+120|0,g);break ce}break m}break s}f=0;c=0;b=Qb(20);G[b+14>>1]=0;H[b+4>>2]=436732;H[b>>2]=436684;F[b+16|0]=0;d=H[a+12>>2];e=H[a+8>>2];if(d>>>0>e+1>>>0){c=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[a+8>>2]=e}G[b+8>>1]=c;if(d>>>0>e+1>>>0){f=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[a+8>>2]=e}G[b+10>>1]=f;f=0;fe:{if(d>>>0<=e+1>>>0){c=0;break fe}c=I[e|0]|I[e+1|0]<<8;e=e+2|0;H[a+8>>2]=e}G[b+12>>1]=c;if(d>>>0>e>>>0){f=I[e|0];e=e+1|0;H[a+8>>2]=e}F[b+14|0]=f;f=0;ge:{if(d>>>0<=e>>>0){c=0;break ge}c=I[e|0];e=e+1|0;H[a+8>>2]=e}F[b+15|0]=c;if(d>>>0>e>>>0){f=I[e|0];e=e+1|0;H[a+8>>2]=e}F[b+16|0]=f;f=0;if(d>>>0>e>>>0){f=I[e|0];H[a+8>>2]=e+1}F[b+17|0]=f;c=H[a+240>>2];if(c){zb[H[H[c>>2]+220>>2]](c,b)}ri(a+120|0,b);break s}if((d|0)!=1791){break s}b=Qb(36);G[b+22>>1]=0;G[b+24>>1]=0;G[b+26>>1]=0;G[b+28>>1]=0;H[b+4>>2]=436288;H[b>>2]=436268;g=0;f=0;d=H[l+8>>2];h=H[l+4>>2];if(d>>>0>h+1>>>0){g=I[h|0]|I[h+1|0]<<8;h=h+2|0;H[l+4>>2]=h}G[b+8>>1]=g;he:{if(d>>>0<=h+1>>>0){G[b+10>>1]=0;break he}g=I[h|0]|I[h+1|0]<<8;c=h+2|0;H[l+4>>2]=c;G[b+10>>1]=g;ie:{if((g|0)!=6){break ie}g=0;if(d>>>0>h+5>>>0){g=I[h+2|0]|I[h+3|0]<<8|(I[h+4|0]<<16|I[h+5|0]<<24);c=h+6|0;H[l+4>>2]=c}H[b+12>>2]=g;je:{if(d>>>0<=c+1>>>0){g=c;break je}f=I[c|0]|I[c+1|0]<<8;g=c+2|0;H[l+4>>2]=g}G[b+16>>1]=f;c=0;ke:{if(d>>>0<=g+1>>>0){h=0;break ke}h=I[g|0]|I[g+1|0]<<8;g=g+2|0;H[l+4>>2]=g}G[b+18>>1]=h;if(d>>>0>g+1>>>0){c=I[g|0]|I[g+1|0]<<8;g=g+2|0;H[l+4>>2]=g}G[b+20>>1]=c;c=0;le:{if(d>>>0<=g+1>>>0){f=0;break le}f=I[g|0]|I[g+1|0]<<8;g=g+2|0;H[l+4>>2]=g}G[b+22>>1]=f;if(d>>>0>g+1>>>0){c=I[g|0]|I[g+1|0]<<8;g=g+2|0;H[l+4>>2]=g}G[b+24>>1]=c;c=0;me:{if(d>>>0<=g+1>>>0){f=0;break me}f=I[g|0]|I[g+1|0]<<8;g=g+2|0;H[l+4>>2]=g}G[b+26>>1]=f;if(d>>>0>g+1>>>0){c=I[g|0]|I[g+1|0]<<8;H[l+4>>2]=g+2}G[b+28>>1]=c;if(h<<16>>16>0){c=Qb((h&65535)<<4);H[b+32>>2]=c;Ky(l,c);if(G[b+18>>1]<2){break ie}g=1;h=1;while(1){Ky(l,H[b+32>>2]+(g<<4)|0);h=h+1|0;g=h&65535;if((g|0)>1]){continue}break}break ie}H[b+32>>2]=0}}c=H[a+240>>2];if(c){zb[H[H[c>>2]+224>>2]](c,b)}ri(a+120|0,b);break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+228>>2]](c,b)}wy(a+120|0,b);b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}g=f&65535;b=d&65535;d=xb-16|0;xb=d;c=Qb(40);H[197455]=0;f=xm(c);e=H[197455];H[197455]=0;ne:{if((e|0)!=1){c=H[a+240>>2];oe:{if(!c){break oe}zb[H[H[c>>2]+232>>2]](c,g,b,f,a+4|0);H[d+12>>2]=0;H[d+8>>2]=0;H[d+4>>2]=0;c=H[a+8>>2];g=H[a+32>>2]+(H[a+36>>2]+(H[a+4>>2]-c|0)|0)|0;if(!g){break oe}NA(c,g,b,d+12|0,d+8|0,d+4|0);e=H[d+12>>2];h=H[d+8>>2];i=H[d+4>>2];b=xb-80|0;xb=b;F[b+27|0]=0;H[197455]=0;H[b+16>>2]=0;ba(1925,b- -64|0,b+16|0);c=H[197455];H[197455]=0;pe:{qe:{if((c|0)!=1){if(F[b+27|0]<0){Kb(H[b+16>>2])}g=F[b+75|0];if((g|0)<0?H[b+68>>2]:g&255){break qe}break pe}a=$()|0;_()|0;if(F[b+27|0]>=0){break l}Kb(H[b+16>>2]);break l}H[197455]=0;c=b+16|0;H[c>>2]=0;H[c+4>>2]=0;F[c+40|0]=0;H[c+32>>2]=0;H[c+36>>2]=-1074790400;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;g=H[197455];H[197455]=0;re:{se:{te:{ue:{ve:{if((g|0)!=1){H[197455]=0;H[c+16>>2]=e;g=H[197455];H[197455]=0;if((g|0)==1){break se}H[197455]=0;H[b+12>>2]=h;H[c+4>>2]=H[b+12>>2];g=H[197455];H[197455]=0;if((g|0)==1){break se}H[197455]=0;H[b+12>>2]=i;H[c+8>>2]=H[b+12>>2];g=H[197455];H[197455]=0;if((g|0)==1){break se}H[197455]=0;g=ca(1641,c|0,b- -64|0,4)|0;e=H[197455];H[197455]=0;if((e|0)==1){break se}if(!g){break te}G[f+8>>1]=5;g=f+16|0;if((g|0)==(b- -64|0)){break ue}h=I[b+75|0];e=h<<24>>24;if(F[f+27|0]>=0){if((e|0)<0){break ve}e=H[b+68>>2];H[g>>2]=H[b+64>>2];H[g+4>>2]=e;H[g+8>>2]=H[b+72>>2];break ue}H[197455]=0;i=g;g=(e|0)<0;ca(1897,i|0,(g?H[b+64>>2]:b- -64|0)|0,(g?H[b+68>>2]:h)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break se}break ue}a=$()|0;_()|0;break re}H[197455]=0;ca(1898,g|0,H[b+64>>2],H[b+68>>2])|0;g=H[197455];H[197455]=0;if((g|0)!=1){break ue}break se}H[b+12>>2]=0;H[197455]=0;H[b+8>>2]=0;la(945,c|0,b+12|0,b+8|0,4)|0;g=H[197455];H[197455]=0;if((g|0)==1){break se}H[f+28>>2]=H[b+12>>2];H[197455]=0;g=H[c+4>>2];e=H[197455];H[197455]=0;if((e|0)==1){break se}H[f+32>>2]=g;H[197455]=0;g=H[c+8>>2];e=H[197455];H[197455]=0;if((e|0)==1){break se}H[f+36>>2]=g}H[197455]=0;H[c+16>>2]=0;g=H[197455];H[197455]=0;if((g|0)==1){break se}id(c);g=I[b+75|0];break pe}a=$()|0;_()|0;id(c)}if(F[b+75|0]>=0){break l}Kb(H[b+64>>2]);break l}if(g<<24>>24<0){Kb(H[b+64>>2])}xb=b+80|0}ri(a+120|0,f);xb=d+16|0;break ne}a=$()|0;_()|0;Kb(c);break l}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}c=b&65535;b=H[a+240>>2];we:{if(!b){break we}zb[H[H[b>>2]+236>>2]](b,c);b=H[a+240>>2];zb[H[H[b>>2]+60>>2]](b);b=H[a+240>>2];if(!b){break we}zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+240>>2]](c,b)}wm(a+120|0,b);b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}f=b&65535;b=H[a+240>>2];if(b){zb[H[H[b>>2]+244>>2]](b,f)}c=a+144|0;d=H[c>>2];xe:{if(!d){break xe}b=c;while(1){g=f>>>0>K[d+16>>2];b=g?b:d;d=H[(g<<2)+d>>2];if(d){continue}break}if((b|0)==(c|0)|f>>>0>2]){break xe}b=H[b+20>>2];if((zb[H[H[b>>2]+8>>2]](b)|0)!=4){break xe}H[H[a+120>>2]+68>>2]=b}b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}ye:{if(e>>>0<=b+1>>>0){c=b;break ye}d=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}b=0;ze:{if(e>>>0<=c+1>>>0){i=0;break ze}i=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}c=xb+-64|0;xb=c;f=f<<16>>16;g=i<<16>>16;e=(f|0)>(g|0);f=(e?1:-1)+f<<16>>16;M[c+56>>3]=f|0;d=d<<16>>16;b=b<<16>>16;h=(d|0)>(b|0);i=(h?1:-1)+d<<16>>16;M[c+48>>3]=i|0;g=g+(e?-1:1)<<16>>16;M[c+40>>3]=g|0;e=b+(h?-1:1)<<16>>16;M[c+32>>3]=e|0;b=H[a+168>>2];d=G[b+104>>1];h=G[b+106>>1];M[c+8>>3]=h|0;M[c>>3]=d|0;j=J[b+108>>1];M[c+24>>3]=h+J[b+110>>1]<<16>>16;M[c+16>>3]=d+j<<16>>16;b=H[a+240>>2];Ae:{if(!b){break Ae}zb[H[H[b>>2]+248>>2]](b,f,i,g,e);b=H[a+240>>2];zb[H[H[b>>2]+68>>2]](b,c+32|0,c);b=H[a+240>>2];if(!b){break Ae}zb[H[H[b>>2]+84>>2]](b)}xb=c- -64|0;break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}Be:{if(e>>>0<=b+1>>>0){c=b;break Be}d=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}b=0;Ce:{if(e>>>0<=c+1>>>0){i=0;break Ce}i=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}c=xb-32|0;xb=c;f=f<<16>>16;M[c+24>>3]=f|0;d=d<<16>>16;M[c+16>>3]=d|0;g=i<<16>>16;M[c+8>>3]=g|0;e=b<<16>>16;M[c>>3]=e|0;b=H[a+240>>2];De:{if(!b){break De}zb[H[H[b>>2]+252>>2]](b,e,g,d,f);b=H[a+240>>2];zb[H[H[b>>2]+64>>2]](b,c);b=H[a+240>>2];if(!b){break De}zb[H[H[b>>2]+84>>2]](b)}xb=c+32|0;break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}d=d<<16>>16;c=f<<16>>16;Ee:{Fe:{b=H[a+240>>2];if(!b){break Fe}zb[H[H[b>>2]+256>>2]](b,d,c);b=H[a+240>>2];if(!b){break Fe}zb[H[H[b>>2]+32>>2]](b,+(d|0),+(c|0));break Ee}if(I[a+188|0]){H[a+172>>2]=d;F[a+188|0]=0;H[a+180>>2]=d;H[a+184>>2]=c;H[a+176>>2]=c;break Ee}b=a+172|0;Ge:{if((d|0)>=H[b>>2]){b=a+180|0;if((d|0)<=H[b>>2]){break Ge}}H[b>>2]=d}if((c|0)>2]){H[a+176>>2]=c;break Ee}if((c|0)<=H[a+184>>2]){break Ee}H[a+184>>2]=c}b=H[a+168>>2];G[b+132>>1]=d;G[b+134>>1]=c;break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}c=d<<16>>16;d=f<<16>>16;b=H[a+240>>2];He:{if(!b){break He}zb[H[H[b>>2]+256>>2]](b,c,d);b=H[a+240>>2];if(!b){break He}zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}c=d<<16>>16;d=f<<16>>16;b=H[a+240>>2];if(b){zb[H[H[b>>2]+264>>2]](b,c,d)}b=H[a+168>>2];G[b+114>>1]=c+J[b+114>>1];G[b+116>>1]=d+J[b+116>>1];c=G[b+108>>1];Ie:{if((c|0)<2){break Ie}d=G[b+118>>1];if((d|0)<2){break Ie}Je:{switch(J[b+80>>1]-7|0){case 0:n=+(d|0)/+(c|0);M[b+88>>3]=n;M[b+96>>3]=n;break Ie;case 1:break Je;default:break Ie}}M[b+88>>3]=+(d|0)/+(c|0);M[b+96>>3]=+G[b+120>>1]/+G[b+110>>1]}_e(b);b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}c=d<<16>>16;d=f<<16>>16;b=H[a+240>>2];if(b){zb[H[H[b>>2]+268>>2]](b,c,d)}b=H[a+168>>2];G[b+104>>1]=c+J[b+104>>1];G[b+106>>1]=d+J[b+106>>1];c=G[b+108>>1];Ke:{if((c|0)<2){break Ke}d=G[b+118>>1];if((d|0)<2){break Ke}Le:{switch(J[b+80>>1]-7|0){case 0:n=+(d|0)/+(c|0);M[b+88>>3]=n;M[b+96>>3]=n;break Ke;case 1:break Le;default:break Ke}}M[b+88>>3]=+(d|0)/+(c|0);M[b+96>>3]=+G[b+120>>1]/+G[b+110>>1]}_e(b);b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=H[a+240>>2];if(b){zb[H[H[b>>2]+272>>2]](b)}Me:{d=H[a+128>>2];b=H[a+124>>2];c=d-b|0;if(c>>>0<=7){F[H[a+136>>2]+29|0]=1;b=H[a+120>>2];break Me}c=H[(b+c|0)-4>>2];g=d-4|0;H[a+128>>2]=g;if(c){Fp(c);Kb(c);g=H[a+128>>2];b=H[a+124>>2]}if((b|0)!=(g|0)){b=H[g-4>>2];H[a+120>>2]=b;break Me}Ip(238458);X()}H[a+168>>2]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}Ne:{if(e>>>0<=b+1>>>0){c=b;break Ne}d=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}b=0;Oe:{if(e>>>0<=c+1>>>0){i=0;break Oe}i=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}g=f<<16>>16;c=d<<16>>16;d=i<<16>>16;f=b<<16>>16;b=H[a+240>>2];if(b){zb[H[H[b>>2]+280>>2]](b,g,c,d,f)}b=J[H[a+168>>2]+80>>1];Pe:{if((b|0)!=7&(b|0)!=8){break Pe}n=+(d|0);q=+(c|0)/n;b=H[a+168>>2];n=+G[b+118>>1]*(+(f|0)/n);Qe:{if(P(n)<2147483648){c=~~n;break Qe}c=-2147483648}G[b+118>>1]=c;n=+G[b+120>>1]*q;Re:{if(P(n)<2147483648){d=~~n;break Re}d=-2147483648}G[b+120>>1]=d;f=G[b+108>>1];Se:{if((f|0)<2|(c|0)<2){break Se}Te:{switch(J[b+80>>1]-7|0){case 0:n=+(c|0)/+(f|0);M[b+88>>3]=n;M[b+96>>3]=n;break Se;case 1:break Te;default:break Se}}M[b+88>>3]=+(c|0)/+(f|0);M[b+96>>3]=+(d|0)/+G[b+110>>1]}_e(b);b=H[a+240>>2];if(!b){break Pe}zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}Ue:{if(e>>>0<=b+1>>>0){c=b;break Ue}d=I[b|0]|I[b+1|0]<<8;c=b+2|0;H[a+8>>2]=c}b=0;Ve:{if(e>>>0<=c+1>>>0){i=0;break Ve}i=(I[c|0]|I[c+1|0]<<8)<<16>>16;c=c+2|0;H[a+8>>2]=c}if(e>>>0>c+1>>>0){b=I[c|0]|I[c+1|0]<<8;H[a+8>>2]=c+2}g=f<<16>>16;c=d<<16>>16;d=i<<16>>16;b=b<<16>>16;f=H[a+240>>2];if(f){zb[H[H[f>>2]+284>>2]](f,g,c,d,b)}f=J[H[a+168>>2]+80>>1];We:{if((f|0)!=7&(f|0)!=8){break We}n=+(d|0);sy(H[a+168>>2],+(b|0)/n,+(c|0)/n);b=H[a+240>>2];if(!b){break We}zb[H[H[b>>2]+84>>2]](b)}break s}d=0;F[o+10|0]=0;f=0;if(b>>>0>>0){f=I[c+2|0];b=c+3|0;H[a+8>>2]=b}F[o+8|0]=f;Xe:{if(b>>>0>=e>>>0){c=b;break Xe}d=I[b|0];c=b+1|0;H[a+8>>2]=c}F[o+9|0]=d;b=0;Ye:{if(c>>>0>=e>>>0){d=0;break Ye}d=I[c|0];c=c+1|0;H[a+8>>2]=c}F[o+10|0]=d;if(c>>>0>>0){b=I[c|0];H[a+8>>2]=c+1}F[o+11|0]=b;b=o+8|0;c=H[a+240>>2];if(c){zb[H[H[c>>2]+288>>2]](c,b)}c=H[a+168>>2];F[c+128|0]=I[b|0];F[c+129|0]=I[b+1|0];F[c+130|0]=I[b+2|0];F[c+131|0]=I[b+3|0];b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+292>>2]](c,b)}G[H[a+168>>2]+136>>1]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;if(e>>>0>c+3>>>0){d=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){H[a+8>>2]=b+2}b=d&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+296>>2]](c,b)}G[H[a+168>>2]+138>>1]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+300>>2]](c,b)}vy(H[a+168>>2],b);b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+304>>2]](c,b)}G[H[a+168>>2]+140>>1]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+308>>2]](c,b)}G[H[a+168>>2]+142>>1]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+312>>2]](c,b)}G[H[a+168>>2]+144>>1]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+316>>2]](c,b)}G[H[a+168>>2]+146>>1]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}b=0;if(e>>>0>c+3>>>0){b=I[c+2|0]|I[c+3|0]<<8;H[a+8>>2]=c+4}b=b&65535;c=H[a+240>>2];if(c){zb[H[H[c>>2]+320>>2]](c,b)}G[H[a+168>>2]+148>>1]=b;b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;F[o+10|0]=0;f=0;if(b>>>0>>0){f=I[c+2|0];b=c+3|0;H[a+8>>2]=b}F[o+8|0]=f;Ze:{if(b>>>0>=e>>>0){c=b;break Ze}d=I[b|0];c=b+1|0;H[a+8>>2]=c}F[o+9|0]=d;b=0;_e:{if(c>>>0>=e>>>0){d=0;break _e}d=I[c|0];c=c+1|0;H[a+8>>2]=c}F[o+10|0]=d;if(c>>>0>>0){b=I[c|0];H[a+8>>2]=c+1}F[o+11|0]=b;b=o+8|0;c=H[a+240>>2];if(c){zb[H[H[c>>2]+324>>2]](c,b)}c=H[a+168>>2];F[c+124|0]=I[b|0];F[c+125|0]=I[b+1|0];F[c+126|0]=I[b+2|0];F[c+127|0]=I[b+3|0];b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}c=f&65535;d=d&65535;b=H[a+240>>2];$e:{if(!b){break $e}zb[H[H[b>>2]+328>>2]](b,c,d);b=H[a+240>>2];if(!b){break $e}zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}b=d<<16>>16;c=f<<16>>16;d=H[a+240>>2];if(d){zb[H[H[d>>2]+332>>2]](d,b,c)}d=J[H[a+168>>2]+80>>1];af:{if((d|0)!=7&(d|0)!=8){break af}qy(H[a+168>>2],b,c);b=H[a+240>>2];if(!b){break af}zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}b=d<<16>>16;c=f<<16>>16;d=H[a+240>>2];if(d){zb[H[H[d>>2]+336>>2]](d,b,c)}ry(H[a+168>>2],b,c);b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}b=d<<16>>16;c=f<<16>>16;d=H[a+240>>2];if(d){zb[H[H[d>>2]+340>>2]](d,b,c)}d=J[H[a+168>>2]+80>>1];bf:{if((d|0)!=7&(d|0)!=8){break bf}ty(H[a+168>>2],b,c);b=H[a+240>>2];if(!b){break bf}zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}b=d<<16>>16;c=f<<16>>16;d=H[a+240>>2];if(d){zb[H[H[d>>2]+344>>2]](d,b,c)}uy(H[a+168>>2],b,c);b=H[a+240>>2];if(b){zb[H[H[b>>2]+84>>2]](b)}break s}d=0;f=0;if(e>>>0>c+3>>>0){f=I[c+2|0]|I[c+3|0]<<8;b=c+4|0;H[a+8>>2]=b}if(e>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[a+8>>2]=b+2}b=f&65535;c=d&65535;m=0;h=0;f=xb-464|0;xb=f;d=H[a+240>>2];if(d){zb[H[H[d>>2]+348>>2]](d,b,c)}cf:{df:{ef:{ff:{gf:{hf:{jf:{kf:{lf:{mf:{nf:{of:{pf:{qf:{rf:{sf:{tf:{uf:{vf:{wf:{xf:{yf:{zf:{Af:{Bf:{Cf:{Df:{Ef:{Ff:{if((b|0)!=15|c>>>0<34){break Ff}d=H[a+12>>2];g=H[a+8>>2];Gf:{if(d>>>0<=g+3>>>0){c=0;break Gf}c=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g+4|0;H[a+8>>2]=g}if(g+3>>>0>>0){m=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g+4|0;H[a+8>>2]=g}if(g+3>>>0>=d>>>0){break Ff}e=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);b=g+4|0;H[a+8>>2]=b;if((c|0)!=1128680791|(m|0)!=1|(e|0)!=65536){break Ff}if(g+5>>>0>>0){b=g+6|0;H[a+8>>2]=b}Hf:{if(b+3>>>0>=d>>>0){g=b;break Hf}c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);g=b+4|0;H[a+8>>2]=g;if(c){break Ff}}if(g+3>>>0>>0){g=g+4|0;H[a+8>>2]=g}If:{if(g+3>>>0>=d>>>0){m=0;break If}m=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g+4|0;H[a+8>>2]=g}if(g+3>>>0>>0){h=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g+4|0;H[a+8>>2]=g}c=0;if(g+3>>>0>>0){c=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g+4|0;H[a+8>>2]=g}b=H[a+248>>2];Jf:{if(b){k=H[a+244>>2];c=b;i=H[a+252>>2];break Jf}b=H[a+244>>2];if(b){Kb(b);H[a+244>>2]=0;g=H[a+8>>2];d=H[a+12>>2]}H[a+248>>2]=c;H[a+252>>2]=0;k=Qb(c);H[a+244>>2]=k;i=0}e=d-g|0;b=c-i|0;b=b>>>0>>0?b:m;e=b>>>0>e>>>0?e:b;if(e){m=0;i=k?c?i+k|0:0:0;while(1){c=0;if(d>>>0>g>>>0){c=I[g|0];H[a+8>>2]=g+1}F[i+m|0]=c;m=m+1|0;if((e|0)!=(m|0)){d=H[a+12>>2];g=H[a+8>>2];continue}break}i=H[a+252>>2];c=H[a+248>>2]}b=b+i|0;H[a+252>>2]=b>>>0>>0?b:c;if(h){break Ff}b=f+208|0;c=bq(b);H[(H[H[c>>2]-12>>2]+b|0)+20>>2]=H[a+20>>2];g=H[a+248>>2];b=H[a+244>>2];H[197455]=0;d=c+H[H[c>>2]-12>>2]|0;H[d+4>>2]=b;H[d+12>>2]=b+g;H[d+8>>2]=b;b=H[197455];H[197455]=0;if((b|0)==1){break ef}H[197455]=0;ia(1908,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break ef}if(I[(H[H[c>>2]-12>>2]+(f+208|0)|0)+29|0]){b=H[a+244>>2];if(b){Kb(b);H[a+244>>2]=0}H[a+248>>2]=0;H[a+252>>2]=0;yf(c);break Ff}b=H[a+240>>2];if(!b){b=H[a+244>>2];Kf:{if(!b){H[a+248>>2]=0;H[a+252>>2]=0;break Kf}Kb(b);H[a+244>>2]=0;H[a+248>>2]=0;H[a+252>>2]=0;b=H[a+240>>2];if(!b){break Kf}d=H[H[b>>2]+128>>2];H[197455]=0;ia(d|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break ef}}F[a+256|0]=1;yf(c);break Ff}d=H[H[b>>2]+96>>2];H[197455]=0;b=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ef}Lf:{if((b|0)==2){b=H[H[c>>2]-12>>2];d=H[a+240>>2];H[197455]=0;d=H[d+4>>2];g=H[197455];H[197455]=0;Mf:{Nf:{if((g|0)==1){break Nf}H[197455]=0;d=ca(1846,f+136|0,b+(f+208|0)|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Nf}H[197455]=0;ba(1910,c|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break Mf}H[197455]=0;ia(1911,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break Mf}b=H[a+240>>2];if(b){g=H[H[b>>2]+128>>2];H[197455]=0;ia(g|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break Mf}}F[a+256|0]=1;H[d>>2]=396108;b=H[d+68>>2];if(!b){break Lf}Kb(b);break Lf}b=$()|0;_()|0;break df}b=$()|0;_()|0;H[d>>2]=396108;a=H[d+68>>2];if(!a){break df}Kb(a);break df}b=H[a+240>>2];d=H[H[b>>2]+96>>2];H[197455]=0;b=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ef}if((b|0)!=4){break Lf}b=H[a+240>>2];H[197455]=0;M[f+128>>3]=M[b+48>>3];M[f+120>>3]=M[b+56>>3];b=H[197455];H[197455]=0;if((b|0)==1){break Ef}H[197455]=0;qa(1916,c|0,4,+M[f+128>>3],+M[f+120>>3]);b=H[197455];H[197455]=0;if((b|0)==1){break Ef}b=H[a+240>>2];H[197455]=0;d=H[b+84>>2];b=H[197455];H[197455]=0;if((b|0)==1){break Df}H[197455]=0;Bk(f+136|0,a);b=H[197455];H[197455]=0;if((b|0)==1){break Cf}H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break Bf}b=H[c+100>>2];e=H[c+108>>2];h=H[c+104>>2];i=H[c+112>>2];H[197455]=0;n=M[f+136>>3];q=M[f+152>>3];r=M[f+144>>3];t=M[f+160>>3];g=da(1853,f+104|0,436432)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Af}H[197455]=0;ga(1754,d|0,g|0,1);j=H[197455];H[197455]=0;if((j|0)==1){break zf}if(F[g+11|0]<0){Kb(H[g>>2])}H[197455]=0;g=da(1853,f+104|0,436440)|0;j=H[197455];H[197455]=0;if((j|0)==1){break yf}H[197455]=0;Da(1757,f+24|0,+P((q-n)/+(e-b|0)));b=H[197455];H[197455]=0;if((b|0)==1){break xf}H[197455]=0;b=ca(1758,f+24|0,0,436480)|0;e=H[197455];H[197455]=0;if((e|0)==1){break wf}H[f+48>>2]=H[b+8>>2];e=H[b+4>>2];H[f+40>>2]=H[b>>2];H[f+44>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+40|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break vf}H[f- -64>>2]=H[f+48>>2];H[f+48>>2]=0;b=H[f+44>>2];H[f+56>>2]=H[f+40>>2];H[f+60>>2]=b;H[f+40>>2]=0;H[f+44>>2]=0;H[197455]=0;Da(1757,f+8|0,+P((t-r)/+(i-h|0)));b=H[197455];H[197455]=0;if((b|0)==1){break uf}H[197455]=0;b=I[f+19|0];e=b<<24>>24<0;b=ca(1759,f+56|0,(e?H[f+8>>2]:f+8|0)|0,(e?H[f+12>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break tf}H[f+80>>2]=H[b+8>>2];e=H[b+4>>2];H[f+72>>2]=H[b>>2];H[f+76>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+72|0,41);b=H[197455];H[197455]=0;if((b|0)==1){break sf}H[f+96>>2]=H[f+80>>2];H[f+80>>2]=0;b=H[f+76>>2];H[f+88>>2]=H[f+72>>2];H[f+92>>2]=b;H[f+72>>2]=0;H[f+76>>2]=0;H[197455]=0;ga(1755,d|0,g|0,f+88|0);b=H[197455];H[197455]=0;if((b|0)==1){break rf}if(F[f+99|0]<0){Kb(H[f+88>>2])}if(F[f+83|0]<0){Kb(H[f+72>>2])}if(F[f+19|0]<0){Kb(H[f+8>>2])}if(F[f+67|0]<0){Kb(H[f+56>>2])}if(F[f+51|0]<0){Kb(H[f+40>>2])}if(F[f+35|0]<0){Kb(H[f+24>>2])}if(F[g+11|0]<0){Kb(H[g>>2])}H[197455]=0;g=da(1853,f+104|0,436432)|0;b=H[197455];H[197455]=0;if((b|0)==1){break kf}H[197455]=0;ka(1760,d|0,g|0,1,0);b=H[197455];H[197455]=0;if((b|0)==1){break jf}if(F[g+11|0]<0){Kb(H[g>>2])}H[197455]=0;b=H[c+208>>2];g=H[197455];H[197455]=0;if((g|0)==1){break hf}H[197455]=0;Op(b+8|0,d);b=H[197455];H[197455]=0;if((b|0)==1){break hf}H[197455]=0;ia(1911,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break hf}H[197455]=0;g=da(1853,f+104|0,436432)|0;b=H[197455];H[197455]=0;if((b|0)==1){break gf}H[197455]=0;ka(1760,d|0,g|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break ff}if(F[g+11|0]<0){Kb(H[g>>2])}b=H[a+240>>2];if(b){d=H[H[b>>2]+128>>2];H[197455]=0;ia(d|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break hf}}F[a+256|0]=1}b=H[a+244>>2];if(b){Kb(b);H[a+244>>2]=0}H[a+248>>2]=0;H[a+252>>2]=0;yf(c)}xb=f+464|0;break cf}b=$()|0;_()|0;break df}b=$()|0;_()|0;break df}b=$()|0;_()|0;break df}b=$()|0;_()|0;break df}b=$()|0;_()|0;break df}b=$()|0;_()|0;if(F[g+11|0]>=0){break df}Kb(H[g>>2]);break df}b=$()|0;_()|0;break df}b=$()|0;_()|0;break lf}b=$()|0;_()|0;break mf}b=$()|0;_()|0;break nf}b=$()|0;_()|0;break of}b=$()|0;_()|0;break pf}b=$()|0;_()|0;break qf}b=$()|0;_()|0;if(F[f+99|0]>=0){break qf}Kb(H[f+88>>2])}if(F[f+83|0]>=0){break pf}Kb(H[f+72>>2])}if(F[f+19|0]>=0){break of}Kb(H[f+8>>2])}if(F[f+67|0]>=0){break nf}Kb(H[f+56>>2])}if(F[f+51|0]>=0){break mf}Kb(H[f+40>>2])}if(F[f+35|0]>=0){break lf}Kb(H[f+24>>2])}if(F[g+11|0]>=0){break df}Kb(H[g>>2]);break df}b=$()|0;_()|0;break df}b=$()|0;_()|0;if(F[g+11|0]>=0){break df}Kb(H[g>>2]);break df}b=$()|0;_()|0;break df}b=$()|0;_()|0;break df}b=$()|0;_()|0;if(F[g+11|0]>=0){break df}Kb(H[g>>2]);break df}b=$()|0;_()|0}yf(c);ea(b|0);X()}break s}b=H[a+240>>2];if(b){zb[H[H[b>>2]+128>>2]](b)}F[a+256|0]=1}if(I[a+256|0]){break q}b=H[a+8>>2];c=(H[a+36>>2]+(H[a+4>>2]+(H[a+32>>2]-b|0)|0)|0)+b|0;H[a+8>>2]=c;if(!I[a+29|0]){continue}break}break r}if(I[a+256|0]){break q}}F[a+29|0]=1;break p}if(I[a+29|0]){break p}H[a+8>>2]=H[a+4>>2]}b=H[a+240>>2];if(b){zb[H[H[b>>2]+12>>2]](b)}zb[H[H[a>>2]+12>>2]](a)}xb=o+32|0;return}a=$()|0;_()|0;Kz(e);break l}a=$()|0;_()|0;Kb(c)}ea(a|0);X()}function Cha(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,u=0,v=0,w=0,x=O(0),y=0,z=0,A=0,B=0,C=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{switch(c-1|0){case 0:c=Qb(940);H[197455]=0;l=Bd(c,1);e=H[197455];H[197455]=0;if((e|0)==1){break h}H[c>>2]=247588;zg(l,a);h=xb+-64|0;xb=h;j=Vg(c,b);j:{if(j){break j}e=(H[c+32>>2]+H[c+12>>2]|0)+(H[c+44>>2]<<2)|0;G[h+54>>1]=0;G[h+56>>1]=0;d=H[c+12>>2];g=H[c+44>>2]<<2;G[h+48>>1]=I[c+458|0]?19778:5063245;e=Bf(c,e+14|0);G[h+50>>1]=e;G[h+52>>1]=e>>>16;e=Bf(c,(d+g|0)+14|0);G[h+58>>1]=e;G[h+60>>1]=e>>>16;if(!(H[c+44>>2]|!H[c+928>>2])){e=H[c+32>>2];H[h+24>>2]=H[c+28>>2];H[h+28>>2]=e;e=H[c+24>>2];d=H[c+20>>2];H[h+16>>2]=d;H[h+20>>2]=e;e=H[c+48>>2];H[h+40>>2]=H[c+44>>2];H[h+44>>2]=e;e=H[c+40>>2];H[h+32>>2]=H[c+36>>2];H[h+36>>2]=e;g=H[c+16>>2];e=H[c+12>>2];H[h+24>>2]=0;H[h+8>>2]=e;H[h+12>>2]=g;G[h+22>>1]=32;d=N((H[h+12>>2]<<5|31)/32|0,d)<<2;H[h+28>>2]=d;e=Bf(c,(d+e|0)+14|0);G[h+50>>1]=e;G[h+52>>1]=e>>>16;e=h+8|0;Rh(c,e);zb[H[H[b>>2]+16>>2]](b,h+48|0,14,1)|0;zb[H[H[b>>2]+16>>2]](b,e,40,1)|0;g=qD(c);if(H[h+16>>2]<=0){break j}while(1){f=0;d=Xc(c,k);if(H[h+12>>2]>0){while(1){zb[H[H[b>>2]+16>>2]](b,d,3,1)|0;zb[H[H[b>>2]+16>>2]](b,g,1,1)|0;g=g+1|0;d=d+3|0;f=f+1|0;if((f|0)>2]){continue}break}}k=k+1|0;if((k|0)>2]){continue}break}break j}zb[H[H[b>>2]+16>>2]](b,h+48|0,14,1)|0;d=I[c+16|0]|I[c+17|0]<<8|(I[c+18|0]<<16|I[c+19|0]<<24);e=H[c+4>>2];g=I[c+12|0]|I[c+13|0]<<8|(I[c+14|0]<<16|I[c+15|0]<<24);F[e|0]=g;F[e+1|0]=g>>>8;F[e+2|0]=g>>>16;F[e+3|0]=g>>>24;F[e+4|0]=d;F[e+5|0]=d>>>8;F[e+6|0]=d>>>16;F[e+7|0]=d>>>24;d=I[c+48|0]|I[c+49|0]<<8|(I[c+50|0]<<16|I[c+51|0]<<24);g=I[c+44|0]|I[c+45|0]<<8|(I[c+46|0]<<16|I[c+47|0]<<24);F[e+32|0]=g;F[e+33|0]=g>>>8;F[e+34|0]=g>>>16;F[e+35|0]=g>>>24;F[e+36|0]=d;F[e+37|0]=d>>>8;F[e+38|0]=d>>>16;F[e+39|0]=d>>>24;d=I[c+40|0]|I[c+41|0]<<8|(I[c+42|0]<<16|I[c+43|0]<<24);g=I[c+36|0]|I[c+37|0]<<8|(I[c+38|0]<<16|I[c+39|0]<<24);F[e+24|0]=g;F[e+25|0]=g>>>8;F[e+26|0]=g>>>16;F[e+27|0]=g>>>24;F[e+28|0]=d;F[e+29|0]=d>>>8;F[e+30|0]=d>>>16;F[e+31|0]=d>>>24;d=I[c+32|0]|I[c+33|0]<<8|(I[c+34|0]<<16|I[c+35|0]<<24);g=I[c+28|0]|I[c+29|0]<<8|(I[c+30|0]<<16|I[c+31|0]<<24);F[e+16|0]=g;F[e+17|0]=g>>>8;F[e+18|0]=g>>>16;F[e+19|0]=g>>>24;F[e+20|0]=d;F[e+21|0]=d>>>8;F[e+22|0]=d>>>16;F[e+23|0]=d>>>24;d=I[c+24|0]|I[c+25|0]<<8|(I[c+26|0]<<16|I[c+27|0]<<24);g=I[c+20|0]|I[c+21|0]<<8|(I[c+22|0]<<16|I[c+23|0]<<24);F[e+8|0]=g;F[e+9|0]=g>>>8;F[e+10|0]=g>>>16;F[e+11|0]=g>>>24;F[e+12|0]=d;F[e+13|0]=d>>>8;F[e+14|0]=d>>>16;F[e+15|0]=d>>>24;Rh(c,H[c+4>>2]);zb[H[H[b>>2]+16>>2]](b,H[c+4>>2],(H[c+32>>2]+H[c+12>>2]|0)+(H[c+44>>2]<<2)|0,1)|0;Rh(c,H[c+4>>2])}xb=h- -64|0;if(j^1){break e}break d;case 4:c=Qb(944);H[197455]=0;l=Bd(c,5);e=H[197455];H[197455]=0;if((e|0)==1){break h}H[c+940>>2]=0;H[c>>2]=247632;zg(l,a);e=0;h=xb-1072|0;xb=h;k:{l:{m:{n:{o:{if(Vg(c,b)){break o}d=H[c+4>>2];f=d?H[c+44>>2]?d+40|0:0:0;k=J[c+26>>1];if(!f&k>>>0<9){break o}e=H[c+20>>2];d=H[c+16>>2];j=H[c+32>>2];m=H[c+928>>2]!=0;g=H[c+44>>2];G[h+1068>>1]=1;H[h+1064>>2]=65536;q=j;j=m&!g;m=j?N(d,e)<<2:q;H[c+940>>2]=22;H[h+1060>>2]=22;j=j?32:k;G[h+1054>>1]=j;G[h+1052>>1]=0;F[h+1051|0]=0;F[h+1048|0]=d;F[h+1050|0]=g;o=(d+31|0)/32<<2;n=N(o,e);k=(m+(n+(g<<2)|0)|0)+40|0;H[h+1056>>2]=k;F[h+1049|0]=e;g=h+1040|0;H[g>>2]=0;H[g+4>>2]=0;H[h+1032>>2]=0;H[h+1036>>2]=0;H[h+1028>>2]=m;H[h+1024>>2]=0;G[h+1022>>1]=j;G[h+1020>>1]=1;H[h+1016>>2]=e<<1;H[h+1012>>2]=d;H[h+1008>>2]=40;q=zD(h- -64|0,c,1,1,1);H[197455]=0;j=Yk(h+32|0,0,0);e=H[197455];H[197455]=0;p:{q:{r:{if((e|0)!=1){if(!(H[c+20>>2]<256&H[c+16>>2]<=255)){G[h+1048>>1]=0;H[197455]=0;aa(952,j|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break m}H[197455]=0;ca(951,q|0,j|0,4)|0;e=H[197455];H[197455]=0;if((e|0)==1){break m}H[197455]=0;k=H[j+4>>2]?H[j+8>>2]:-1;e=H[197455];H[197455]=0;if((e|0)==1){break m}H[h+1056>>2]=k}H[197455]=0;e=G[h+1066>>1];d=I[c+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break m}G[h+1066>>1]=d?e:e<<8|(e&65280)>>>8;H[197455]=0;e=G[h+1068>>1];d=I[c+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break m}G[h+1068>>1]=d?e:e<<8|(e&65280)>>>8;e=H[H[b>>2]+16>>2];H[197455]=0;la(e|0,b|0,h+1064|0,6,1)|0;e=H[197455];H[197455]=0;if((e|0)==1){break m}H[197455]=0;e=G[h+1066>>1];d=I[c+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break m}G[h+1066>>1]=d?e:e<<8|(e&65280)>>>8;H[197455]=0;e=G[h+1068>>1];d=I[c+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break m}G[h+1068>>1]=d?e:e<<8|(e&65280)>>>8;H[197455]=0;e=G[h+1052>>1];d=I[c+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break m}G[h+1052>>1]=d?e:e<<8|(e&65280)>>>8;H[197455]=0;e=G[h+1054>>1];d=I[c+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break m}G[h+1054>>1]=d?e:e<<8|(e&65280)>>>8;H[197455]=0;e=Bf(c,H[h+1056>>2]);d=H[197455];H[197455]=0;if((d|0)==1){break m}H[h+1056>>2]=e;H[197455]=0;e=Bf(c,H[h+1060>>2]);d=H[197455];H[197455]=0;if((d|0)==1){break m}H[h+1060>>2]=e;e=H[H[b>>2]+16>>2];H[197455]=0;la(e|0,b|0,h+1048|0,16,1)|0;e=H[197455];H[197455]=0;if((e|0)==1){break m}H[197455]=0;e=G[h+1052>>1];d=I[c+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break m}G[h+1052>>1]=d?e:e<<8|(e&65280)>>>8;H[197455]=0;e=G[h+1054>>1];d=I[c+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break m}G[h+1054>>1]=d?e:e<<8|(e&65280)>>>8;H[197455]=0;e=Bf(c,H[h+1056>>2]);d=H[197455];H[197455]=0;if((d|0)==1){break m}H[h+1056>>2]=e;H[197455]=0;e=Bf(c,H[h+1060>>2]);d=H[197455];H[197455]=0;if((d|0)==1){break m}H[h+1060>>2]=e;H[c+940>>2]=H[c+940>>2]+k;e=1;if(!(I[h+1048|0]|I[h+1049|0])){H[197455]=0;d=H[j+4>>2];g=H[197455];H[197455]=0;if((g|0)==1){break m}g=H[H[b>>2]+16>>2];H[197455]=0;la(g|0,b|0,d|0,k|0,1)|0;b=H[197455];H[197455]=0;if((b|0)==1){break m}break p}H[197455]=0;Rh(c,h+1008|0);e=H[197455];H[197455]=0;if((e|0)==1){break m}e=H[H[b>>2]+16>>2];H[197455]=0;la(e|0,b|0,h+1008|0,40,1)|0;e=H[197455];H[197455]=0;if((e|0)==1){break m}H[197455]=0;Rh(c,h+1008|0);e=H[197455];H[197455]=0;if((e|0)==1){break m}k=H[c+336>>2];H[197455]=0;nr(h+28|0,c);e=H[197455];H[197455]=0;if((e|0)==1){break m}s:{if(!f){break s}if((k|0)>=0){e=I[c+336|0];H[197455]=0;Qh(c,e,0,0,0,0);e=H[197455];H[197455]=0;if((e|0)==1){break m}}e=H[H[b>>2]+16>>2];d=H[c+44>>2];H[197455]=0;la(e|0,b|0,f|0,d<<2,1)|0;e=H[197455];H[197455]=0;if((e|0)==1){break m}if((k|0)<0){break s}e=I[c+336|0];d=H[h+28>>2];H[h+24>>2]=d;H[197455]=0;H[h+12>>2]=d;_k(c,e,h+12|0);e=H[197455];H[197455]=0;if((e|0)==1){break m}}H[197455]=0;e=H[c+928>>2];d=H[197455];H[197455]=0;if((d|0)==1){break m}if(!(!H[c+44>>2]&(e|0)!=0)){break r}g=Tb(m);if(H[c+20>>2]>0){e=g;while(1){H[197455]=0;d=Xc(c,p);f=H[197455];H[197455]=0;t:{if((f|0)!=1){f=0;if(H[c+16>>2]<=0){break t}while(1){u:{F[e|0]=I[d|0];F[e+1|0]=I[d+1|0];F[e+2|0]=I[d+2|0];H[197455]=0;i=Xf(c,f,p);r=H[197455];H[197455]=0;if((r|0)==1){break u}F[e+3|0]=i;e=e+4|0;d=d+3|0;f=f+1|0;if((f|0)>2]){continue}break t}break}break m}break m}p=p+1|0;if((p|0)>2]){continue}break}}e=H[H[b>>2]+16>>2];H[197455]=0;la(e|0,b|0,g|0,m|0,1)|0;e=H[197455];H[197455]=0;if((e|0)!=1){Kb(g);break q}break m}e=$()|0;_()|0;break l}e=H[c+56>>2];d=H[H[b>>2]+16>>2];H[197455]=0;la(d|0,b|0,e|0,m|0,1)|0;e=H[197455];H[197455]=0;if((e|0)==1){break m}}g=oc(n,1);if(g){H[197455]=0;p=kr(c);e=H[197455];H[197455]=0;if((e|0)==1){break m}H[197455]=0;m=H[c+928>>2]!=0;e=H[197455];H[197455]=0;v:{if((e|0)!=1){w:{if(H[c+20>>2]<=0){break w}f=H[c+16>>2];if((f|0)<=0){break w}d=0;while(1){x:{if((f|0)<=0){break x}i=g+N(d,o)|0;e=0;if(p){while(1){y:{f=0;if(m){H[197455]=0;f=Xf(c,e,d);r=H[197455];H[197455]=0;if((r|0)==1){break y}f=!f}H[197455]=0;xg(h+16|0,c,e,d,1);r=H[197455];H[197455]=0;if((r|0)==1){break m}H[197455]=0;r=I[h+19|0];Ii(h+16|0,c,e,d,0);s=H[197455];H[197455]=0;if((s|0)==1){break m}s=i+(e>>>3|0)|0;t=(e^-1)&7;u=I[s|0]&kma(-2,t);f=r?f:1;F[s|0]=((k|0)>=0?H[h+16>>2]==H[h+28>>2]?1:f:f)<>2];if((e|0)<(f|0)){continue}break x}break}break m}z:{while(1){f=0;if(m){H[197455]=0;f=Xf(c,e,d);r=H[197455];H[197455]=0;if((r|0)==1){break z}f=!f}H[197455]=0;Ii(h+16|0,c,e,d,0);r=H[197455];H[197455]=0;if((r|0)!=1){r=i+(e>>>3|0)|0;s=(e^-1)&7;t=I[r|0]&kma(-2,s);F[r|0]=((k|0)>=0?H[h+16>>2]==H[h+28>>2]?1:f:f)<>2];if((e|0)>=(f|0)){break x}continue}break}break m}break m}d=d+1|0;if((d|0)>2]){continue}break}}d=H[H[b>>2]+16>>2];H[197455]=0;e=1;la(d|0,b|0,g|0,n|0,1)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break v}}break m}Kb(g);break p}e=0}wg(j);H[q>>2]=245276;H[197455]=0;aa(917,q|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break n}H[197455]=0;aa(918,q|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break n}}xb=h+1072|0;break k}ha(0)|0;_()|0;Zb();X()}e=$()|0;_()|0;wg(j)}Zf(q);ea(e|0);X()}if(e){break e}break d;case 5:c=Qb(952);H[197455]=0;l=Bd(c,6);e=H[197455];H[197455]=0;if((e|0)==1){break h}H[c+948>>2]=0;F[c+944|0]=0;H[c+940>>2]=0;H[c>>2]=248924;zg(l,a);e=248169;A:{B:{C:{D:{if(!b){break D}e=248241;if(!H[c+4>>2]){break D}E:{e=H[c+940>>2];if(e){break E}H[197455]=0;e=da(1101,b|0,248255)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}H[c+940>>2]=e;if(e){break E}e=248340;break D}d=H[c+948>>2];if(d){F[c+944|0]=1;b=1}else{b=I[c+944|0]!=0}d=d+1|0;H[c+948>>2]=d;H[197455]=0;b=pa(1102,c|0,e|0,b|0,d|0,d|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break B}e=248392;if(!b){break D}b=H[c+940>>2];break C}b=oa(4)|0;H[b>>2]=e;H[197455]=0;ga(1009,b|0,782408,0);b=H[197455];H[197455]=0;if((b|0)==1){break B}X()}zq(b);H[c+948>>2]=0;F[c+944|0]=0;H[c+940>>2]=0;b=1;break A}b=ha(782408)|0;if((_()|0)==(ya(782408)|0)){b=sa(b|0)|0;if(I[b|0]){Ld(c+72|0,b,255)}F:{b=H[c+940>>2];if(b){H[197455]=0;ia(1080,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break F}H[c+948>>2]=0;F[c+944|0]=0;H[c+940>>2]=0}ra();b=0;break A}b=$()|0;_()|0;ra()}ea(b|0);X()}if(b){break e}break d;case 2:c=Qb(964);H[197455]=0;l=lr(c);e=H[197455];H[197455]=0;if((e|0)==1){break h}zg(l,a);f=xb-800|0;xb=f;h=Tb(40);H[h>>2]=0;H[197455]=0;e=b;k=Vg(l,b);g=H[197455];H[197455]=0;G:{if((g|0)==1){break a}m=4;d=-1;H:{I:{J:{K:{if(!g){break K}b=H[197456];if(!b){break K}d=Sb(H[g>>2],h,4);if(!d){break J}ja(b|0)}b=_()|0;L:{if((d|0)==1){break L}b=0;if(k){break H}M:{N:{r=l+44|0;if(!H[r>>2]){break N}H[197455]=0;k=Hi(l);g=H[197455];H[197455]=0;if((g|0)==1){break a}d=-1;O:{if(!g){break O}b=H[197456];if(!b){break O}d=Sb(H[g>>2],h,4);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){break M}if(k){break N}b=I[245736]|I[245737]<<8|(I[245738]<<16|I[245739]<<24);F[l+111|0]=b;F[l+112|0]=b>>>8;F[l+113|0]=b>>>16;F[l+114|0]=b>>>24;b=I[245733]|I[245734]<<8|(I[245735]<<16|I[245736]<<24);e=I[245729]|I[245730]<<8|(I[245731]<<16|I[245732]<<24);F[l+104|0]=e;F[l+105|0]=e>>>8;F[l+106|0]=e>>>16;F[l+107|0]=e>>>24;F[l+108|0]=b;F[l+109|0]=b>>>8;F[l+110|0]=b>>>16;F[l+111|0]=b>>>24;b=I[245725]|I[245726]<<8|(I[245727]<<16|I[245728]<<24);e=I[245721]|I[245722]<<8|(I[245723]<<16|I[245724]<<24);F[l+96|0]=e;F[l+97|0]=e>>>8;F[l+98|0]=e>>>16;F[l+99|0]=e>>>24;F[l+100|0]=b;F[l+101|0]=b>>>8;F[l+102|0]=b>>>16;F[l+103|0]=b>>>24;b=I[245717]|I[245718]<<8|(I[245719]<<16|I[245720]<<24);e=I[245713]|I[245714]<<8|(I[245715]<<16|I[245716]<<24);F[l+88|0]=e;F[l+89|0]=e>>>8;F[l+90|0]=e>>>16;F[l+91|0]=e>>>24;F[l+92|0]=b;F[l+93|0]=b>>>8;F[l+94|0]=b>>>16;F[l+95|0]=b>>>24;b=I[245709]|I[245710]<<8|(I[245711]<<16|I[245712]<<24);e=I[245705]|I[245706]<<8|(I[245707]<<16|I[245708]<<24);F[l+80|0]=e;F[l+81|0]=e>>>8;F[l+82|0]=e>>>16;F[l+83|0]=e>>>24;F[l+84|0]=b;F[l+85|0]=b>>>8;F[l+86|0]=b>>>16;F[l+87|0]=b>>>24;b=I[245701]|I[245702]<<8|(I[245703]<<16|I[245704]<<24);e=I[245697]|I[245698]<<8|(I[245699]<<16|I[245700]<<24);F[l+72|0]=e;F[l+73|0]=e>>>8;F[l+74|0]=e>>>16;F[l+75|0]=e>>>24;F[l+76|0]=b;F[l+77|0]=b>>>8;F[l+78|0]=b>>>16;F[l+79|0]=b>>>24;b=0;break H}b=H[H[e>>2]+24>>2];H[197455]=0;p=aa(b|0,e|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break a}d=-1;P:{if(!g){break P}b=H[197456];if(!b){break P}d=Sb(H[g>>2],h,4);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){break M}H[197455]=0;o=l+72|0;H[f+360>>2]=o;k=Hj(f+72|0);g=H[197455];H[197455]=0;if((g|0)==1){break a}d=-1;Q:{if(!g){break Q}b=H[197456];if(!b){break Q}d=Sb(H[g>>2],h,4);if(!d){break J}ja(b|0)}t=f+360|0;b=_()|0;if((d|0)==1){break L}H[f+72>>2]=961;H[f+368>>2]=k;h=sd(f+204|0,1,h,4);m=_()|0;b=0}}R:while(1){k=b;if(b){b=H[t>>2];H[197455]=0;he(o,b);g=H[197455];H[197455]=0;d=-1;S:{if(!g){break S}b=H[197456];if(!b){break S}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}H[197455]=0;ia(993,f+368|0);g=H[197455];H[197455]=0;if((g|0)==1){break a}d=-1;T:{if(!g){break T}b=H[197456];if(!b){break T}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}break I}H[197455]=0;ga(994,f+368|0,80,432);g=H[197455];H[197455]=0;if((g|0)==1){break a}d=-1;U:{if(!g){break U}b=H[197456];if(!b){break U}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}H[f+52>>2]=962;H[f+48>>2]=963;H[f+44>>2]=964;H[f+40>>2]=965;H[f+36>>2]=966;H[f+24>>2]=967;H[f+20>>2]=968;H[f+16>>2]=969;H[f+56>>2]=e;H[f+28>>2]=0;H[f+32>>2]=0;H[197455]=0;j=aa(929,4096)|0;g=H[197455];H[197455]=0;if((g|0)==1){break a}d=-1;V:{if(!g){break V}b=H[197456];if(!b){break V}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}H[f+60>>2]=j;H[197455]=0;H[f+392>>2]=f+8;j=H[l+16>>2];g=H[197455];H[197455]=0;d=-1;W:{if(!g){break W}b=H[197456];if(!b){break W}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}X:{if((g|0)==1){break X}H[197455]=0;H[f+396>>2]=j;j=H[l+20>>2];g=H[197455];H[197455]=0;d=-1;Y:{if(!g){break Y}b=H[197456];if(!b){break Y}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break X}H[197455]=0;H[f+400>>2]=j;j=Hi(l);g=H[197455];H[197455]=0;d=-1;Z:{if(!g){break Z}b=H[197456];if(!b){break Z}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break X}H[197455]=0;H[f+408>>2]=j?1:2;H[f+404>>2]=j?1:3;ia(996,f+368|0);g=H[197455];H[197455]=0;d=-1;_:{if(!g){break _}b=H[197456];if(!b){break _}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break X}H[197455]=0;j=Ug(l,3);g=H[197455];H[197455]=0;d=-1;$:{if(!g){break $}b=H[197456];if(!b){break $}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}aa:{if((g|0)==1){break aa}if(j&2){H[f+580>>2]=1}if(j&8){H[f+584>>2]=1}if(j&4){H[197455]=0;ba(997,f+368|0,1);g=H[197455];H[197455]=0;d=-1;ba:{if(!g){break ba}b=H[197456];if(!b){break ba}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}}if(j&64){H[f+596>>2]=H[l+952>>2]}H[197455]=0;x=O(L[l+344>>2]+O(.5));ca:{if(x=O(0)){q=~~x>>>0;break ca}q=0}g=H[197455];H[197455]=0;d=-1;da:{if(!g){break da}b=H[197456];if(!b){break da}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;ga(998,f+368|0,q|0,j&1);g=H[197455];H[197455]=0;d=-1;ea:{if(!g){break ea}b=H[197456];if(!b){break ea}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}if(j&16){H[197455]=0;ia(999,f+368|0);g=H[197455];H[197455]=0;d=-1;fa:{if(!g){break fa}b=H[197456];if(!b){break fa}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}}b=H[f+452>>2];H[b+8>>2]=2;H[b+12>>2]=2;H[b+184>>2]=1;H[b+188>>2]=1;H[b+96>>2]=1;H[b+100>>2]=1;if(j&4096){H[b+184>>2]=1;H[b+188>>2]=1;H[b+96>>2]=1;H[b+100>>2]=1;H[b+8>>2]=2;H[b+12>>2]=1}if(j&8192){H[b+184>>2]=1;H[b+188>>2]=1;H[b+96>>2]=1;H[b+100>>2]=1;H[b+8>>2]=1;H[b+12>>2]=1}H[197455]=0;F[f+618|0]=1;j=H[l+364>>2];g=H[197455];H[197455]=0;d=-1;ga:{if(!g){break ga}b=H[197456];if(!b){break ga}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;G[f+620>>1]=j;j=H[l+368>>2];g=H[197455];H[197455]=0;d=-1;ha:{if(!g){break ha}b=H[197456];if(!b){break ha}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;G[f+622>>1]=j;ba(1001,f+368|0,1);g=H[197455];H[197455]=0;d=-1;ia:{if(!g){break ia}b=H[197456];if(!b){break ia}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}b=H[H[f+372>>2]+8>>2];q=H[l+52>>2];H[197455]=0;n=la(b|0,f+368|0,1,q+8|0,1)|0;g=H[197455];H[197455]=0;d=-1;ja:{if(!g){break ja}b=H[197456];if(!b){break ja}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;Xc(l,0);g=H[197455];H[197455]=0;d=-1;ka:{if(!g){break ka}b=H[197456];if(!b){break ka}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;i=H[l+20>>2];g=H[197455];H[197455]=0;d=-1;la:{if(!g){break la}b=H[197456];if(!b){break la}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;j=Xc(l,0);g=H[197455];H[197455]=0;d=-1;ma:{if(!g){break ma}b=H[197456];if(!b){break ma}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;s=H[l+52>>2];g=H[197455];H[197455]=0;d=-1;na:{if(!g){break na}b=H[197456];if(!b){break na}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;u=H[l+20>>2];g=H[197455];H[197455]=0;d=-1;oa:{if(!g){break oa}b=H[197456];if(!b){break oa}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}pa:{if((q|0)<=0){while(1){if(K[f+628>>2]>=K[f+400>>2]){break pa}qa:{if(!H[r>>2]){b=H[n>>2];H[197455]=0;Kj(l,b,q);g=H[197455];H[197455]=0;d=-1;ra:{if(!g){break ra}b=H[197456];if(!b){break ra}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue R}if((g|0)==1){break qa}}i=i-1|0;if((i|0)>0){H[197455]=0;g=H[197455];H[197455]=0;d=-1;sa:{if(!g){break sa}b=H[197456];if(!b){break sa}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue R}if((g|0)==1){break qa}}H[197455]=0;ca(1002,f+368|0,n|0,1)|0;g=H[197455];H[197455]=0;d=-1;ta:{if(!g){break ta}b=H[197456];if(!b){break ta}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue R}if((g|0)!=1){continue}}break}break X}d=j+N(s,u-1|0)|0;while(1){if(K[f+628>>2]>=K[f+400>>2]){break pa}ua:{if(!d){break ua}u=H[n>>2];if(!u){break ua}H[197455]=0;j=H[l+52>>2];g=H[197455];H[197455]=0;s=-1;va:{if(!g){break va}b=H[197456];if(!b){break va}s=Sb(H[g>>2],h,m);if(!s){break J}ja(b|0)}b=_()|0;if((s|0)==1){continue R}if((g|0)==1){break aa}Ob(u,d,(j|0)<(q|0)?j:q)}if(!H[r>>2]){b=H[n>>2];H[197455]=0;Kj(l,b,q);g=H[197455];H[197455]=0;j=-1;wa:{if(!g){break wa}b=H[197456];if(!b){break wa}j=Sb(H[g>>2],h,m);if(!j){break J}ja(b|0)}b=_()|0;if((j|0)==1){continue R}if((g|0)==1){break aa}}i=i-1|0;if((i|0)>0){H[197455]=0;s=H[l+52>>2];g=H[197455];H[197455]=0;j=-1;xa:{if(!g){break xa}b=H[197456];if(!b){break xa}j=Sb(H[g>>2],h,m);if(!j){break J}ja(b|0)}b=_()|0;if((j|0)==1){continue R}if((g|0)==1){break aa}d=d-s|0}H[197455]=0;ca(1002,f+368|0,n|0,1)|0;g=H[197455];H[197455]=0;j=-1;ya:{if(!g){break ya}b=H[197456];if(!b){break ya}j=Sb(H[g>>2],h,m);if(!j){break J}ja(b|0)}b=_()|0;if((j|0)==1){continue R}if((g|0)!=1){continue}break}break aa}H[197455]=0;ia(1003,f+368|0);g=H[197455];H[197455]=0;d=-1;za:{if(!g){break za}b=H[197456];if(!b){break za}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}H[197455]=0;ia(993,f+368|0);g=H[197455];H[197455]=0;d=-1;Aa:{if(!g){break Aa}b=H[197456];if(!b){break Aa}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}b=H[l+940>>2];if(!(!b|!I[H[b>>2]+460|0])){H[197455]=0;AD(b);g=H[197455];H[197455]=0;d=-1;Ba:{if(!g){break Ba}b=H[197456];if(!b){break Ba}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}b=H[H[e>>2]+20>>2];H[197455]=0;ca(b|0,e|0,p|0,0)|0;g=H[197455];H[197455]=0;d=-1;Ca:{if(!g){break Ca}b=H[197456];if(!b){break Ca}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}b=H[l+940>>2];H[197455]=0;ca(958,b|0,e|0,2)|0;g=H[197455];H[197455]=0;d=-1;Da:{if(!g){break Da}b=H[197456];if(!b){break Da}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}b=H[H[e>>2]+20>>2];H[197455]=0;ca(b|0,e|0,p|0,0)|0;g=H[197455];H[197455]=0;d=-1;Ea:{if(!g){break Ea}b=H[197456];if(!b){break Ea}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}b=H[l+940>>2];H[197455]=0;da(1005,b|0,e|0)|0;g=H[197455];H[197455]=0;d=-1;Fa:{if(!g){break Fa}b=H[197456];if(!b){break Fa}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}if((g|0)==1){break aa}}b=H[f+60>>2];if(!b){break I}H[197455]=0;Kb(b);g=H[197455];H[197455]=0;d=-1;Ga:{if(!g){break Ga}b=H[197456];if(!b){break Ga}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}break I}}k=$()|0;_()|0;b=H[f+60>>2];if(b){H[197455]=0;Kb(b);g=H[197455];H[197455]=0;d=-1;Ha:{if(!g){break Ha}b=H[197456];if(!b){break Ha}d=Sb(H[g>>2],h,m);if(!d){break J}ja(b|0)}b=_()|0;if((d|0)==1){continue}}break}Kb(h);ea(k|0);X()}Kb(h);ed(g,b);X()}b=!k}Kb(h);xb=f+800|0;break G}if(b){break c}break b;case 1:c=Qb(1088);H[197455]=0;l=aa(950,c|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break h}zg(l,a);e=0;if(!Vg(l,b)){Ia:{if(J[l+26>>1]>=9){j=xb-1152|0;xb=j;d=b;ar(l,b);b=ac(H[l+1080>>2]);b=b>>>0<255?b:255;if(b){zb[H[H[d>>2]+44>>2]](d,33)|0;zb[H[H[d>>2]+44>>2]](d,254)|0;zb[H[H[d>>2]+44>>2]](d,b&255)|0;zb[H[H[d>>2]+16>>2]](d,H[l+1080>>2],b,1)|0;zb[H[H[d>>2]+44>>2]](d,0)|0}b=j- -64|0;dr(b);e=H[l+20>>2];g=H[l+16>>2];H[197455]=0;pa(978,b|0,g|0,e|0,8,0)|0;b=H[197455];H[197455]=0;Ja:{Ka:{La:{Ma:{Na:{Oa:{if((b|0)==1){break Oa}H[197455]=0;H[(j- -64|0)+336>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){break Oa}f=H[l+20>>2];n=H[l+16>>2];H[197455]=0;h=aa(929,N(f,n)<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Na}if(!(!f|!n)){b=1;g=f;k=h;while(1){e=0;q=0;if(b){while(1){H[197455]=0;Ii(j+40|0,l,q,m,1);b=H[197455];H[197455]=0;if((b|0)==1){break Ma}F[k|0]=I[j+40|0];F[k+1|0]=I[j+41|0];F[k+2|0]=I[j+42|0];F[k+3|0]=I[j+43|0];k=k+4|0;e=H[l+16>>2];q=q+1|0;if(e>>>0>q>>>0){continue}break}g=H[l+20>>2]}b=e;m=m+1|0;if(m>>>0>>0){continue}break}}H[197455]=0;b=aa(899,12)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break La}k=$()|0;_()|0;break Ka}k=$()|0;_()|0;break Ka}k=$()|0;_()|0;break Ka}k=$()|0;_()|0;break Ka}H[b+8>>2]=f;H[b+4>>2]=n;H[b>>2]=h;e=b+12|0;H[j+48>>2]=e;H[j+44>>2]=e;H[j+40>>2]=b;H[j+36>>2]=0;H[197455]=0;ka(1120,j+24|0,j+56|0,j+40|0,j+36|0);b=H[197455];H[197455]=0;Pa:{Qa:{if((b|0)!=1){f=H[H[j+24>>2]>>2];k=0;while(1){b=H[H[j+36>>2]+(k<<2)>>2];H[j+16>>2]=b;H[197455]=0;H[j+12>>2]=b;_k(j- -64|0,k&255,j+12|0);b=H[197455];H[197455]=0;if((b|0)==1){break Qa}k=k+1|0;if((k|0)!=256){continue}break}g=H[l+20>>2];if(!(!g|!H[l+16>>2])){q=H[f>>2];b=1;m=0;while(1){e=0;k=0;if(b){while(1){b=I[q|0];H[197455]=0;Tg(j- -64|0,k,m,b);b=H[197455];H[197455]=0;if((b|0)==1){break Qa}q=q+1|0;e=H[l+16>>2];k=k+1|0;if(e>>>0>k>>>0){continue}break}g=H[l+20>>2]}b=e;m=m+1|0;if(m>>>0>>0){continue}break}}Kb(h);b=H[j+36>>2];if(b){Kb(b)}if(f){b=H[f>>2];if(b){Kb(b)}Kb(f)}H[197455]=0;b=j- -64|0;H[b+396>>2]=0;H[b+392>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){break Qa}b=H[H[d>>2]+44>>2];H[197455]=0;da(b|0,d|0,33)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Qa}b=H[H[d>>2]+44>>2];H[197455]=0;da(b|0,d|0,249)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Qa}H[197455]=0;F[j+1004|0]=H[j+400>>2]!=-1;e=I[(j- -64|0)+456|0];b=H[197455];H[197455]=0;if((b|0)==1){break Qa}F[j+1007|0]=H[j+400>>2];b=G[j+424>>1];F[j+1005|0]=b;F[j+1006|0]=b>>>8;H[197455]=0;F[j+1004|0]=I[j+1004|0]|e<<2&28;e=I[(j- -64|0)+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break Qa}b=(e?b:b<<8|(b&65280)>>>8)<<16>>16;F[j+1005|0]=b;F[j+1006|0]=b>>>8;b=H[H[d>>2]+44>>2];H[197455]=0;da(b|0,d|0,4)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Qa}b=H[H[d>>2]+16>>2];H[197455]=0;la(b|0,d|0,j+1004|0,4,1)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Qa}H[197455]=0;b=(I[j+1005|0]|I[j+1006|0]<<8)<<16>>16;e=I[(j- -64|0)+458|0];g=H[197455];H[197455]=0;if((g|0)==1){break Qa}b=(e?b:b<<8|(b&65280)>>>8)<<16>>16;F[j+1005|0]=b;F[j+1006|0]=b>>>8;b=H[H[d>>2]+44>>2];H[197455]=0;da(b|0,d|0,0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Qa}H[197455]=0;ga(1124,j- -64|0,d|0,1);b=H[197455];H[197455]=0;if((b|0)==1){break Qa}b=H[H[d>>2]+44>>2];H[197455]=0;da(b|0,d|0,59)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Qa}b=H[j+24>>2];if(b){H[j+28>>2]=b;Kb(b)}b=H[j+40>>2];if(b){H[j+44>>2]=b;Kb(b)}Sg(j- -64|0);xb=j+1152|0;break Ja}k=$()|0;_()|0;break Pa}k=$()|0;_()|0;a=H[j+24>>2];if(!a){break Pa}H[j+28>>2]=a;Kb(a)}a=H[j+40>>2];if(!a){break Ka}H[j+44>>2]=a;Kb(a)}Sg(j- -64|0);ea(k|0);X()}e=1;break Ia}Ra:{if(H[l+356>>2]<2){break Ra}e=H[l+936>>2];if(!e){break Ra}f=H[l+356>>2];k=xb-1088|0;xb=k;Sa:{Ta:{Ua:{Va:{Wa:{Xa:{if(!b){g=245776;break Xa}g=246295;if(!e|(f|0)<=0){break Xa}h=H[e>>2];if(!h){break Xa}g=0;d=e;Ya:{Za:{while(1){H[197455]=0;j=H[h+4>>2]!=0;h=H[197455];H[197455]=0;_a:{$a:{if((h|0)==1){break $a}h=246608;if(!j){break Za}d=H[d>>2];H[197455]=0;d=H[d+44>>2];h=H[197455];H[197455]=0;if((h|0)==1){break $a}if(d){break _a}h=246742;break Za}g=ha(782408)|0;b=_()|0;break Va}g=g+1|0;if((f|0)==(g|0)){break Ya}d=e+(g<<2)|0;h=H[d>>2];if(h){continue}break}h=246389}b=oa(4)|0;H[b>>2]=h;H[197455]=0;ga(1009,b|0,782408,0);b=H[197455];H[197455]=0;if((b|0)!=1){break Wa}g=ha(782408)|0;b=_()|0;break Va}H[197455]=0;aa(950,k|0)|0;d=H[197455];H[197455]=0;ab:{bb:{cb:{if((d|0)!=1){d=H[e>>2];H[197455]=0;ba(1125,k|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break bb}H[197455]=0;ba(1126,k|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[l+1084>>2];if((d|0)==1){break cb}H[k+1084>>2]=((d|0)>1?d:1)-1;d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,33)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,255)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,11)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[H[b>>2]+16>>2];H[197455]=0;la(d|0,b|0,247458,11,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,3)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[H[b>>2]+44>>2];H[197455]=0;g=d;d=H[k+1084>>2];da(g|0,b|0,d&255)|0;g=H[197455];H[197455]=0;if((g|0)==1){break bb}g=H[H[b>>2]+44>>2];H[197455]=0;da(g|0,b|0,d>>>8&255)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break cb}break bb}g=ha(782408)|0;b=_()|0;break Va}H[197455]=0;g=I[k+456|0];d=H[197455];H[197455]=0;db:{eb:{if((d|0)==1){break eb}H[197455]=0;d=I[l+456|0];h=H[197455];H[197455]=0;if((h|0)==1){break eb}H[197455]=0;F[k+456|0]=d;d=H[197455];H[197455]=0;if((d|0)==1){break eb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,33)|0;d=H[197455];H[197455]=0;if((d|0)==1){break eb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,249)|0;d=H[197455];H[197455]=0;if((d|0)==1){break eb}H[197455]=0;F[k+940|0]=H[k+336>>2]!=-1;h=I[k+456|0];d=H[197455];H[197455]=0;if((d|0)==1){break eb}F[k+943|0]=H[k+336>>2];d=G[k+360>>1];F[k+941|0]=d;F[k+942|0]=d>>>8;H[197455]=0;F[k+940|0]=I[k+940|0]|h<<2&28;h=I[k+458|0];j=H[197455];H[197455]=0;if((j|0)==1){break eb}d=(h?d:d<<8|(d&65280)>>>8)<<16>>16;F[k+941|0]=d;F[k+942|0]=d>>>8;d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,4)|0;d=H[197455];H[197455]=0;if((d|0)==1){break eb}d=H[H[b>>2]+16>>2];H[197455]=0;la(d|0,b|0,k+940|0,4,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break eb}H[197455]=0;d=(I[k+941|0]|I[k+942|0]<<8)<<16>>16;h=I[k+458|0];j=H[197455];H[197455]=0;if((j|0)==1){break eb}d=(h?d:d<<8|(d&65280)>>>8)<<16>>16;F[k+941|0]=d;F[k+942|0]=d>>>8;d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break eb}H[197455]=0;F[k+456|0]=g;d=H[197455];H[197455]=0;if((d|0)!=1){break db}}g=ha(782408)|0;break ab}d=ac(H[l+1080>>2]);d=d>>>0<255?d:255;if(d){g=H[H[b>>2]+44>>2];H[197455]=0;da(g|0,b|0,33)|0;g=H[197455];H[197455]=0;if((g|0)==1){break bb}g=H[H[b>>2]+44>>2];H[197455]=0;da(g|0,b|0,254)|0;g=H[197455];H[197455]=0;if((g|0)==1){break bb}g=H[H[b>>2]+44>>2];H[197455]=0;da(g|0,b|0,d&255)|0;g=H[197455];H[197455]=0;if((g|0)==1){break bb}g=H[l+1080>>2];h=H[H[b>>2]+16>>2];H[197455]=0;la(h|0,b|0,g|0,d|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break bb}}H[197455]=0;ga(1124,k|0,b|0,0);d=H[197455];H[197455]=0;if((d|0)==1){break bb}fb:{if((f|0)>=2){h=k+940|0;g=1;while(1){d=H[e+(g<<2)>>2];H[197455]=0;ba(1125,k|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break fb}H[197455]=0;j=I[k+456|0];d=H[197455];H[197455]=0;gb:{hb:{if((d|0)==1){break hb}H[197455]=0;d=I[l+456|0];m=H[197455];H[197455]=0;if((m|0)==1){break hb}H[197455]=0;F[k+456|0]=d;d=H[197455];H[197455]=0;if((d|0)==1){break hb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,33)|0;d=H[197455];H[197455]=0;if((d|0)==1){break hb}d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,249)|0;d=H[197455];H[197455]=0;if((d|0)==1){break hb}H[197455]=0;F[k+940|0]=H[k+336>>2]!=-1;m=I[k+456|0];d=H[197455];H[197455]=0;if((d|0)==1){break hb}d=G[k+360>>1];F[k+941|0]=d;F[k+942|0]=d>>>8;F[k+943|0]=H[k+336>>2];H[197455]=0;F[k+940|0]=I[k+940|0]|m<<2&28;m=I[k+458|0];q=H[197455];H[197455]=0;if((q|0)==1){break hb}d=(m?d:d<<8|(d&65280)>>>8)<<16>>16;F[k+941|0]=d;F[k+942|0]=d>>>8;d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,4)|0;d=H[197455];H[197455]=0;if((d|0)==1){break hb}d=H[H[b>>2]+16>>2];H[197455]=0;la(d|0,b|0,h|0,4,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break hb}H[197455]=0;d=(I[k+941|0]|I[k+942|0]<<8)<<16>>16;m=I[k+458|0];q=H[197455];H[197455]=0;if((q|0)==1){break hb}d=(m?d:d<<8|(d&65280)>>>8)<<16>>16;F[k+941|0]=d;F[k+942|0]=d>>>8;d=H[H[b>>2]+44>>2];H[197455]=0;da(d|0,b|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break hb}H[197455]=0;F[k+456|0]=j;d=H[197455];H[197455]=0;if((d|0)!=1){break gb}}g=ha(782408)|0;break ab}H[197455]=0;ga(1124,k|0,b|0,0);d=H[197455];H[197455]=0;if((d|0)==1){break fb}g=g+1|0;if((f|0)!=(g|0)){continue}break}}e=H[H[b>>2]+44>>2];H[197455]=0;da(e|0,b|0,59)|0;b=H[197455];H[197455]=0;g=1;if((b|0)==1){break bb}Sg(k);break Ua}g=ha(782408)|0;break ab}g=ha(782408)|0}b=_()|0;Sg(k);break Va}b=oa(4)|0;H[b>>2]=g;H[197455]=0;ga(1009,b|0,782408,0);b=H[197455];H[197455]=0;if((b|0)!=1){break Wa}g=ha(782408)|0;b=_()|0;break Va}X()}if((ya(782408)|0)!=(b|0)){break Ta}b=sa(g|0)|0;if(I[b|0]){Ld(l+72|0,b,255)}ra();g=0}xb=k+1088|0;e=g;break Sa}ea(g|0);X()}break Ia}ar(l,b);zb[H[H[b>>2]+44>>2]](b,33)|0;zb[H[H[b>>2]+44>>2]](b,249)|0;F[l+940|0]=H[l+336>>2]!=-1;d=I[l+456|0];e=G[l+360>>1];F[l+941|0]=e;F[l+942|0]=e>>>8;F[l+943|0]=H[l+336>>2];F[l+940|0]=I[l+940|0]|d<<2&28;e=I[l+458|0]?e:e<<8|(e&65280)>>>8;F[l+941|0]=e;F[l+942|0]=e>>>8;zb[H[H[b>>2]+44>>2]](b,4)|0;e=1;zb[H[H[b>>2]+16>>2]](b,l+940|0,4,1)|0;d=(I[l+941|0]|I[l+942|0]<<8)<<16>>16;d=I[l+458|0]?d:d<<8|(d&65280)>>>8;F[l+941|0]=d;F[l+942|0]=d>>>8;zb[H[H[b>>2]+44>>2]](b,0)|0;d=ac(H[l+1080>>2]);d=d>>>0<255?d:255;if(d){zb[H[H[b>>2]+44>>2]](b,33)|0;zb[H[H[b>>2]+44>>2]](b,254)|0;zb[H[H[b>>2]+44>>2]](b,d&255)|0;zb[H[H[b>>2]+16>>2]](b,H[l+1080>>2],d,1)|0;zb[H[H[b>>2]+44>>2]](b,0)|0}cD(l,b,0);zb[H[H[b>>2]+44>>2]](b,59)|0}}if(e){break c}break b;case 3:c=Qb(940);H[197455]=0;l=Bd(c,4);e=H[197455];H[197455]=0;if((e|0)==1){break h}H[c>>2]=247676;zg(l,a);n=xb-304|0;xb=n;h=Tb(40);H[h>>2]=0;H[197455]=0;q=b;g=Vg(c,b);d=H[197455];H[197455]=0;j=4;ib:{if((d|0)==1){break a}b=-1;jb:{f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,4);if(!b){break jb}ja(f|0)}kb:{lb:{mb:{f=_()|0;nb:{if((b|0)==1){break nb}d=0;if(g){break kb}H[197455]=0;Xc(c,0);d=H[197455];H[197455]=0;if((d|0)==1){break a}b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,4);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break nb}H[197455]=0;g=la(1030,245690,0,0,0)|0;d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,4);if(!b){break jb}ja(f|0)}i=n+48|0;f=_()|0;if((b|0)==1){break nb}i=n+48|0;ob:{pb:{if((d|0)==1){break pb}H[n+44>>2]=g;y=245824;i=n+48|0;if(!g){break mb}H[197455]=0;e=aa(1007,g|0)|0;d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,4);if(!b){break jb}ja(f|0)}i=n+48|0;f=_()|0;if((b|0)==1){break nb}i=n+48|0;if((d|0)==1){break pb}H[n+40>>2]=e;if(e){break ob}H[197455]=0;ba(1031,n+44|0,0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,4);if(!b){break jb}ja(f|0)}i=n+48|0;f=_()|0;if((b|0)==1){break nb}y=246132;i=n+48|0;if((d|0)!=1){break mb}}d=0;break lb}i=n+48|0;h=sd(g,1,h,4);j=_()|0;f=0}d=1;break lb}d=2}while(1){qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{Eb:{Fb:{switch(d|0){case 0:b=ha(782408)|0;break rb;case 1:if(!f){break Eb}b=H[H[n+40>>2]+16>>2];if(b){Kb(b)}H[197455]=0;ba(1031,n+44|0,n+40|0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}y=246837;if((d|0)==1){break Db}d=2;continue;default:break Fb}}b=oa(4)|0;H[b>>2]=y;H[197455]=0;ga(1009,b|0,782408,0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Db}X()}H[197455]=0;ka(1032,g|0,q|0,1033,1034);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Db}H[197455]=0;e=H[c+16>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Db}H[H[n+40>>2]>>2]=e;H[197455]=0;e=H[c+20>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Db}H[H[n+40>>2]+4>>2]=e;H[197455]=0;e=J[c+26>>1];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Db}F[H[n+40>>2]+30|0]=e;H[197455]=0;e=J[c+26>>1];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Db}F[H[n+40>>2]+29|0]=e>>>0>8?3:1;H[197455]=0;e=J[c+26>>1];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Db}b=H[n+40>>2];G[b+26>>1]=0;H[b+8>>2]=0;F[b+24|0]=(e>>>0)/I[b+29|0];H[197455]=0;e=Ug(c,4);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Bb}F[H[n+40>>2]+28|0]=e&1;b=-1;d=-1;e=(e&14)-2|0;if(e>>>0<5){d=H[(e<<2)+248896>>2]}H[197455]=0;if(g){H[g+280>>2]=d;H[g+204>>2]=H[g+204>>2]|2}d=H[197455];H[197455]=0;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}Gb:{if((d|0)!=1){H[197455]=0;u=Hi(c);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}Hb:{if((d|0)==1){break Hb}H[197455]=0;e=H[c+44>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Hb}F[H[n+40>>2]+25|0]=e?u?0:3:2;H[197455]=0;e=H[c+928>>2]!=0;d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)!=1){break Gb}}b=ha(782408)|0;break rb}b=ha(782408)|0;break rb}if(e){b=H[n+40>>2];F[b+24|0]=8;F[b+25|0]=I[b+25|0]|4;F[b+29|0]=I[b+29|0]+1;F[b+30|0]=I[b+30|0]+8}G[n+32>>1]=J[124446];b=J[124444]|J[124445]<<16;H[n+24>>2]=J[124442]|J[124443]<<16;H[n+28>>2]=b;H[197455]=0;nr(n+20|0,c);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Ab}if(H[c+336>>2]>=0){G[n+30>>1]=I[n+20|0];G[n+28>>1]=I[n+21|0];G[n+26>>1]=I[n+22|0]}H[197455]=0;Dq(g,H[n+40>>2],n+24|0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Ab}b=H[c+40>>2];e=H[c+36>>2];H[197455]=0;Cq(g,H[n+40>>2],e,b,1);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Ab}b=H[n+40>>2];e=I[b+28|0];d=I[b+25|0];k=I[b+24|0];f=H[b+4>>2];m=H[b>>2];H[197455]=0;wb(1041,g|0,b|0,m|0,f|0,k|0,d|0,e|0,0,0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Ab}e=H[c+336>>2];Ib:{if((e|0)<0){break Ib}b=H[n+40>>2];G[b+22>>1]=1;F[b+80|0]=e;H[b+76>>2]=i;H[b+8>>2]=H[b+8>>2]|16;G[b+82>>1]=I[n+22|0];G[b+84>>1]=I[n+21|0];d=I[n+20|0];G[b+88>>1]=e&255;G[b+86>>1]=d;if(!e|(u|!H[c+44>>2])){break Ib}H[197455]=0;er(c,0,e&255);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Ab}}H[197455]=0;e=H[c+4>>2];k=H[c+44>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Ab}Jb:{if(!(e?k?e+40|0:0:0)){break Jb}if(!u){b=H[n+40>>2];H[b+8>>2]=H[b+8>>2]|8}H[197455]=0;b=H[c+48>>2];d=H[197455];H[197455]=0;e=-1;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}Kb:{Lb:{if((d|0)==1){break Lb}if(!b){H[197455]=0;b=H[c+44>>2];d=H[197455];H[197455]=0;e=-1;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}if((d|0)==1){break Lb}}if(I[c+389|0]){if((b|0)>0){p=0;e=0;while(1){H[197455]=0;Nd(n+16|0,c,e&255);d=H[197455];H[197455]=0;k=-1;f=H[197456];if(!(!d|!f)){k=Sb(H[d>>2],h,j);if(!k){break jb}ja(f|0)}f=_()|0;if((k|0)==1){break qb}if((d|0)==1){break Cb}F[(n+48|0)+p|0]=I[n+19|0];e=e+1|0;p=e&65535;if((p|0)<(b|0)){continue}break}}e=H[n+40>>2];G[e+22>>1]=b;H[e+76>>2]=i;H[e+8>>2]=H[e+8>>2]|16}H[197455]=0;e=-1;k=aa(929,(A=-1,B=gma(b,0,3,0),C=yb,C?A:B)|0)|0;d=H[197455];H[197455]=0;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}if((d|0)!=1){break Kb}}b=ha(782408)|0;break rb}e=H[n+40>>2];G[e+20>>1]=b;H[e+16>>2]=k;if((b|0)<=0){break Jb}e=0;while(1){H[197455]=0;d=N(e,3)+k|0;oD(c,e&255,d,d+1|0,d+2|0);d=H[197455];H[197455]=0;k=-1;f=H[197456];if(!(!d|!f)){k=Sb(H[d>>2],h,j);if(!k){break jb}ja(f|0)}f=_()|0;if((k|0)==1){break qb}if((d|0)!=1){e=e+1|0;if((e|0)==(b|0)){break Jb}k=H[H[n+40>>2]+16>>2];continue}break}b=ha(782408)|0;break rb}H[197455]=0;e=H[c+928>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Ab}Mb:{if(!(J[c+26>>1]==24&(e|0)!=0)|H[c+336>>2]<0){break Mb}f=H[c+20>>2];if((f|0)<=0){break Mb}k=0;d=H[c+16>>2];if((d|0)<=0){break Mb}while(1){b=0;if((d|0)>0){while(1){H[197455]=0;Ii(n+12|0,c,b,k,0);d=H[197455];H[197455]=0;e=-1;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}Nb:{if((d|0)!=1){if(H[n+12>>2]!=H[n+20>>2]){break Nb}H[197455]=0;te(c,b,k,0);d=H[197455];H[197455]=0;e=-1;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}if((d|0)!=1){break Nb}}b=ha(782408)|0;break rb}b=b+1|0;d=H[c+16>>2];if((b|0)<(d|0)){continue}break}f=H[c+20>>2]}k=k+1|0;if((k|0)<(f|0)){continue}break}}e=H[c+52>>2];b=H[n+40>>2];d=N(N(H[b>>2],I[b+29|0]),I[b+24|0]>>>3|0);s=d>>>0>>0?e:d;H[b+12>>2]=s;H[197455]=0;r=aa(929,s|0)|0;d=H[197455];H[197455]=0;e=-1;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}if((d|0)==1){break yb}H[197455]=0;ba(1047,g|0,b|0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break yb}H[197455]=0;b=1;if(!(!g|!I[g+398|0])){H[g+208>>2]=H[g+208>>2]|2;b=7}k=b;d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break vb}if((k|0)<=0){break wb}v=0;if(u){break xb}while(1){H[197455]=0;t=H[c+20>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break zb}H[197455]=0;e=Xc(c,0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break zb}H[197455]=0;m=H[c+52>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break zb}H[197455]=0;o=H[c+20>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break zb}p=H[c+20>>2]-1|0;o=e+N(m,o-1|0)|0;Ob:{while(1){H[197455]=0;e=H[c+928>>2];d=H[197455];H[197455]=0;b=-1;t=t-1|0;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}b=(e|0)!=0;Pb:{Qb:{Rb:{if((d|0)==1){break Rb}Sb:{Tb:{if(b){b=H[c+16>>2];if((b|0)<=0){break Sb}while(1){H[197455]=0;e=-1;m=b-1|0;xg(n+8|0,c,m,p,1);d=H[197455];H[197455]=0;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}if((d|0)==1){break Tb}d=I[n+9|0];f=I[n+8|0];e=r+N(m,I[H[n+40>>2]+29|0])|0;F[e|0]=I[n+10|0];F[e+2|0]=f;F[e+1|0]=d;H[197455]=0;z=Xf(c,m,p);d=H[197455];H[197455]=0;w=-1;f=H[197456];if(!(!d|!f)){w=Sb(H[d>>2],h,j);if(!w){break jb}ja(f|0)}f=_()|0;if((w|0)==1){break qb}if((d|0)!=1){F[e+3|0]=z;e=b>>>0>1;b=m;if(!e){break Sb}continue}break}b=ha(782408)|0;break rb}if(!(!o|(s|0)<=0)){H[197455]=0;b=H[c+52>>2];d=H[197455];H[197455]=0;e=-1;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}if((d|0)==1){break Rb}Ob(r,o,(b|0)<(s|0)?b:s)}if(I[H[n+40>>2]+25|0]==2){H[197455]=0;Kj(c,r,s);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Rb}}H[197455]=0;ba(1049,g|0,r|0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Rb}break Pb}b=ha(782408)|0;break rb}H[197455]=0;ba(1049,g|0,r|0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)!=1){break Qb}}b=ha(782408)|0;break rb}p=p-1|0}if((t|0)>0){H[197455]=0;e=H[c+52>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Ob}o=o-e|0;continue}break}v=v+1|0;if((k|0)!=(v|0)){continue}break wb}break}b=ha(782408)|0;break rb}d=0;continue}b=ha(782408)|0;break rb}b=ha(782408)|0;break rb}b=ha(782408)|0;break rb}b=ha(782408)|0;break rb}b=ha(782408)|0;break rb}while(1){H[197455]=0;t=H[c+20>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break tb}H[197455]=0;e=Xc(c,0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break tb}H[197455]=0;m=H[c+52>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break tb}H[197455]=0;o=H[c+20>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break tb}p=H[c+20>>2]-1|0;o=e+N(m,o-1|0)|0;Ub:{while(1){H[197455]=0;e=H[c+928>>2];d=H[197455];H[197455]=0;b=-1;t=t-1|0;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break sb}Vb:{if(!e){if(!(!o|(s|0)<=0)){H[197455]=0;b=H[c+52>>2];d=H[197455];H[197455]=0;e=-1;f=H[197456];if(!(!d|!f)){e=Sb(H[d>>2],h,j);if(!e){break jb}ja(f|0)}f=_()|0;if((e|0)==1){break qb}if((d|0)==1){break sb}Ob(r,o,(b|0)<(s|0)?b:s)}if(I[H[n+40>>2]+25|0]==2){H[197455]=0;Kj(c,r,s);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break sb}}H[197455]=0;ba(1049,g|0,r|0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)!=1){break Vb}break sb}Wb:{e=H[c+16>>2];if((e|0)<=0){break Wb}Xb:{while(1){H[197455]=0;b=-1;m=e-1|0;xg(n+8|0,c,m,p,1);d=H[197455];H[197455]=0;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)!=1){w=r+N(m,I[H[n+40>>2]+29|0])|0;F[w|0]=I[n+8|0];H[197455]=0;z=Xf(c,m,p);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break Xb}F[w+1|0]=z;b=e>>>0>1;e=m;if(!b){break Wb}continue}break}b=ha(782408)|0;break rb}b=ha(782408)|0;break rb}H[197455]=0;ba(1049,g|0,r|0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break sb}p=p-1|0}if((t|0)<=0){break Ub}H[197455]=0;e=H[c+52>>2];d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)!=1){o=o-e|0;continue}break}b=ha(782408)|0;break rb}v=v+1|0;if((k|0)!=(v|0)){continue}break}}H[197455]=0;Kb(r);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}Yb:{if(u|!H[c+44>>2]){break Yb}b=H[c+336>>2];if((b|0)<=0){break Yb}H[197455]=0;er(c,b&255,0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break vb}}H[197455]=0;ba(1050,g|0,H[n+40>>2]);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)==1){break vb}b=H[H[n+40>>2]+16>>2];if(b){H[197455]=0;Kb(b);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}H[H[n+40>>2]+16>>2]=0}H[197455]=0;ba(1031,n+44|0,n+40|0);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}if((d|0)!=1){break ub}}b=ha(782408)|0;break rb}d=1;break kb}b=ha(782408)|0;break rb}b=ha(782408)|0}if((_()|0)==(ya(782408)|0)){b=sa(b|0)|0;if(I[b|0]){H[197455]=0;Ld(c+72|0,b,255);d=H[197455];H[197455]=0;b=-1;f=H[197456];if(!(!d|!f)){b=Sb(H[d>>2],h,j);if(!b){break jb}ja(f|0)}f=_()|0;if((b|0)==1){break qb}}ra();d=0;break kb}Kb(h);ea(b|0);X()}d=1;continue}}Kb(h);xb=n+304|0;break ib}Kb(h);ed(d,f);X()}if(d){break e}break d;case 6:c=Qb(940);H[197455]=0;l=Bd(c,7);e=H[197455];H[197455]=0;if((e|0)==1){break h}H[c>>2]=247720;zg(l,a);e=xb-800|0;xb=e;d=0;Zb:{if(Vg(c,b)){break Zb}if(J[c+26>>1]<=7){b=I[247301]|I[247302]<<8;F[c+96|0]=b;F[c+97|0]=b>>>8;b=I[247297]|I[247298]<<8|(I[247299]<<16|I[247300]<<24);d=I[247293]|I[247294]<<8|(I[247295]<<16|I[247296]<<24);F[c+88|0]=d;F[c+89|0]=d>>>8;F[c+90|0]=d>>>16;F[c+91|0]=d>>>24;F[c+92|0]=b;F[c+93|0]=b>>>8;F[c+94|0]=b>>>16;F[c+95|0]=b>>>24;b=I[247289]|I[247290]<<8|(I[247291]<<16|I[247292]<<24);d=I[247285]|I[247286]<<8|(I[247287]<<16|I[247288]<<24);F[c+80|0]=d;F[c+81|0]=d>>>8;F[c+82|0]=d>>>16;F[c+83|0]=d>>>24;F[c+84|0]=b;F[c+85|0]=b>>>8;F[c+86|0]=b>>>16;F[c+87|0]=b>>>24;b=I[247281]|I[247282]<<8|(I[247283]<<16|I[247284]<<24);d=I[247277]|I[247278]<<8|(I[247279]<<16|I[247280]<<24);F[c+72|0]=d;F[c+73|0]=d>>>8;F[c+74|0]=d>>>16;F[c+75|0]=d>>>24;F[c+76|0]=b;F[c+77|0]=b>>>8;F[c+78|0]=b>>>16;F[c+79|0]=b>>>24;d=0;break Zb}F[e+776|0]=0;d=H[c+4>>2];F[e+777|0]=((d?H[c+44>>2]?d+40|0:0:0)|0)!=0;g=J[c+26>>1];d=(g|0)==8;F[e+783|0]=d?24:0;F[e+778|0]=d?1:2;k=H[c+20>>2];h=H[c+16>>2];F[e+793|0]=0;F[e+792|0]=g;d=d<<8;if(!(!H[c+928>>2]|(g|0)!=24)){F[e+792|0]=32}F[e+779|0]=0;F[e+780|0]=0;d=I[c+458|0]?d:d<<8|(d&65280)>>>8;F[e+781|0]=d;F[e+782|0]=d>>>8;G[e+784>>1]=0;G[e+786>>1]=0;d=h<<16>>16;G[e+788>>1]=I[c+458|0]?d:d<<8|(d&65280)>>>8;d=k<<16>>16;G[e+790>>1]=I[c+458|0]?d:d<<8|(d&65280)>>>8;zb[H[H[b>>2]+16>>2]](b,e+776|0,18,1)|0;d=(I[e+779|0]|I[e+780|0]<<8)<<16>>16;d=I[c+458|0]?d:d<<8|(d&65280)>>>8;F[e+779|0]=d;F[e+780|0]=d>>>8;d=(I[e+781|0]|I[e+782|0]<<8)<<16>>16;d=I[c+458|0]?d:d<<8|(d&65280)>>>8;F[e+781|0]=d;F[e+782|0]=d>>>8;d=G[e+784>>1];G[e+784>>1]=I[c+458|0]?d:d<<8|(d&65280)>>>8;d=G[e+786>>1];G[e+786>>1]=I[c+458|0]?d:d<<8|(d&65280)>>>8;d=G[e+788>>1];G[e+788>>1]=I[c+458|0]?d:d<<8|(d&65280)>>>8;d=G[e+790>>1];G[e+790>>1]=I[c+458|0]?d:d<<8|(d&65280)>>>8;if(J[c+26>>1]==8){k=0;d=H[c+4>>2];d=d?H[c+44>>2]?d+40|0:0:0;while(1){g=e+N(k,3)|0;h=d+(k<<2)|0;F[g|0]=I[h|0];F[g+1|0]=I[h+1|0];F[g+2|0]=I[h+2|0];h=k|1;g=e+N(h,3)|0;h=d+(h<<2)|0;F[g|0]=I[h|0];F[g+1|0]=I[h+1|0];F[g+2|0]=I[h+2|0];k=k+2|0;if((k|0)!=256){continue}break}zb[H[H[b>>2]+16>>2]](b,e,768,1)|0}k=0;g=Xc(c,0);_b:{if(!(J[c+26>>1]!=8?H[c+928>>2]:0)){if(!J[e+790>>1]){break _b}while(1){if(H[c+20>>2]>=(k|0)){g=Xc(c,0)+N(H[c+52>>2],k)|0}zb[H[H[b>>2]+16>>2]](b,g,N(J[e+788>>1],J[c+26>>1]>>>3|0),1)|0;k=k+1|0;if(k>>>0>1]){continue}break}break _b}d=J[e+788>>1];g=Tb(d<<2);$b:{if(!J[e+790>>1]){break $b}while(1){k=0;h=0;ac:{if(!d){d=0;break ac}while(1){xg(e,c,h,f,1);d=I[e+2|0];j=I[e+1|0];F[g+k|0]=I[e|0];F[g+(k|1)|0]=j;F[g+(k|2)|0]=d;A=g+(k|3)|0,B=Xf(c,h,f),F[A|0]=B;k=k+4|0;d=J[e+788>>1];h=h+1|0;if(d>>>0>h>>>0){continue}break}}zb[H[H[b>>2]+16>>2]](b,g,d<<2,1)|0;f=f+1|0;if(f>>>0>=J[e+790>>1]){break $b}d=J[e+788>>1];continue}}Kb(g)}d=1}xb=e+800|0;if(d){break e}break d;case 7:c=Qb(940);H[197455]=0;l=Bd(c,8);e=H[197455];H[197455]=0;if((e|0)==1){break h}H[c>>2]=247764;zg(l,a);i=xb-176|0;xb=i;bc:{cc:{dc:{e=0;ec:{if(Vg(c,b)){break ec}m=b;Nb(i+48|3,0,125);G[i+54>>1]=0;d=1;F[i+50|0]=1;G[i+48>>1]=1290;b=H[c+16>>2];G[i+56>>1]=b-1;G[i+58>>1]=J[c+20>>1]-1;G[i+60>>1]=H[c+364>>2];G[i+62>>1]=H[c+368>>2];e=H[c+44>>2];G[i+116>>1]=!e;fc:{gc:{g=J[c+26>>1]-8|0;hc:{if(!g|(g|0)==16){F[i+51|0]=8;H[197455]=0;F[i+113|0]=e?1:3;b=H[c+928>>2];e=H[197455];H[197455]=0;if((e|0)==1){break gc}if(!H[c+44>>2]&(b|0)!=0){F[i+113|0]=4;k=4}else{k=I[i+113|0]}b=H[c+16>>2];G[i+114>>1]=b;d=I[i+51|0];break hc}F[i+51|0]=1;b=b+7>>>3|0;G[i+114>>1]=b;k=(e|0)==16?4:1;F[i+113|0]=k}ic:{jc:{kc:{lc:{mc:{nc:{oc:{pc:{qc:{e=(d&255)!=1;rc:{if(!(e|(k&255)!=1)){G[i+66>>1]=65280;G[i+68>>1]=65535;G[i+64>>1]=0;break rc}if((k&255)!=4|e){break rc}H[197455]=0;Nd(i+16|0,c,0);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+66|0]=I[i+16|0];F[i+65|0]=I[i+17|0];F[i+64|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,1);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+69|0]=I[i+16|0];F[i+68|0]=I[i+17|0];F[i+67|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,2);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+72|0]=I[i+16|0];F[i+71|0]=I[i+17|0];F[i+70|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,3);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+75|0]=I[i+16|0];F[i+74|0]=I[i+17|0];F[i+73|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,4);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+78|0]=I[i+16|0];F[i+77|0]=I[i+17|0];F[i+76|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,5);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+81|0]=I[i+16|0];F[i+80|0]=I[i+17|0];F[i+79|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,6);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+84|0]=I[i+16|0];F[i+83|0]=I[i+17|0];F[i+82|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,7);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+87|0]=I[i+16|0];F[i+86|0]=I[i+17|0];F[i+85|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,8);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+90|0]=I[i+16|0];F[i+89|0]=I[i+17|0];F[i+88|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,9);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+93|0]=I[i+16|0];F[i+92|0]=I[i+17|0];F[i+91|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,10);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+96|0]=I[i+16|0];F[i+95|0]=I[i+17|0];F[i+94|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,11);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+99|0]=I[i+16|0];F[i+98|0]=I[i+17|0];F[i+97|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,12);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+102|0]=I[i+16|0];F[i+101|0]=I[i+17|0];F[i+100|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,13);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+105|0]=I[i+16|0];F[i+104|0]=I[i+17|0];F[i+103|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,14);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+108|0]=I[i+16|0];F[i+107|0]=I[i+17|0];F[i+106|0]=I[i+18|0];H[197455]=0;Nd(i+16|0,c,15);b=H[197455];H[197455]=0;if((b|0)==1){break qc}F[i+111|0]=I[i+16|0];F[i+110|0]=I[i+17|0];F[i+109|0]=I[i+18|0];b=J[i+114>>1]}H[197455]=0;G[i+114>>1]=b+1&65534;b=G[i+52>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+52>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+54>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+54>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+56>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+56>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+58>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+58>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+60>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+60>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+62>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+62>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+114>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+114>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+116>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+116>>1]=e?b:b<<8|(b&65280)>>>8;b=H[H[m>>2]+16>>2];H[197455]=0;b=la(b|0,m|0,i+48|0,128,1)|0;e=H[197455];H[197455]=0;if((e|0)==1){break gc}if(!b){b=oa(4)|0;H[b>>2]=248111;H[197455]=0;ga(1009,b|0,782408,0);b=H[197455];H[197455]=0;if((b|0)!=1){break cc}break gc}H[197455]=0;b=G[i+52>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+52>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+54>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+54>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+56>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+56>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+58>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+58>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+60>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+60>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+62>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+62>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+114>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+114>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;b=G[i+116>>1];e=I[c+458|0];d=H[197455];H[197455]=0;if((d|0)==1){break gc}G[i+116>>1]=e?b:b<<8|(b&65280)>>>8;H[197455]=0;o=Yk(i+16|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break ic}H[197455]=0;aa(952,o|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break kc}if(H[c+44>>2]){break pc}f=H[c+20>>2];if((f|0)>0){d=I[i+113|0];while(1){q=f;f=f-1|0;j=0;sc:{if(d<<24>>24<=0){break sc}tc:{while(1){uc:{h=H[c+16>>2];vc:{if((h|0)<=0){break vc}d=0;b=0;k=0;p=0;g=0;wc:{xc:{yc:{zc:{Ac:{Bc:{Cc:{Dc:{Ec:{e=j;switch(e|0){case 3:break Bc;case 2:break Cc;case 1:break Dc;case 0:break Ec;default:break vc}}while(1){H[197455]=0;xg(i+8|0,c,e,f,1);g=H[197455];H[197455]=0;if((g|0)==1){break uc}g=b&255;b=I[i+10|0];Fc:{Gc:{Hc:{if((g|0)!=(b|0)){Ic:{switch(d&255){case 1:if(g>>>0<192){break Gc}break;case 0:break Fc;default:break Ic}}k=d|-64;break Hc}k=255;if((d&255)!=63){break Fc}}d=H[H[o>>2]+44>>2];H[197455]=0;da(d|0,o|0,k&255)|0;d=H[197455];H[197455]=0;if((d|0)==1){break uc}}k=H[H[o>>2]+44>>2];d=0;H[197455]=0;da(k|0,o|0,g|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break uc}}d=d+1|0;e=e+1|0;h=H[c+16>>2];if((e|0)<(h|0)){continue}break}break Ac}while(1){Jc:{H[197455]=0;xg(i+8|0,c,k,f,1);e=H[197455];H[197455]=0;if((e|0)==1){break Jc}g=b&255;b=I[i+9|0];Kc:{Lc:{Mc:{if((g|0)!=(b|0)){Nc:{switch(d&255){case 1:if(g>>>0<192){break Lc}break;case 0:break Kc;default:break Nc}}e=d|-64;break Mc}e=255;if((d&255)!=63){break Kc}}d=H[H[o>>2]+44>>2];H[197455]=0;da(d|0,o|0,e&255)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Jc}}e=H[H[o>>2]+44>>2];d=0;H[197455]=0;da(e|0,o|0,g|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Jc}}d=d+1|0;k=k+1|0;h=H[c+16>>2];if((k|0)<(h|0)){continue}break Ac}break}b=ha(782408)|0;break jc}while(1){Oc:{H[197455]=0;xg(i+8|0,c,p,f,1);e=H[197455];H[197455]=0;if((e|0)==1){break Oc}g=b&255;b=I[i+8|0];Pc:{Qc:{Rc:{if((g|0)!=(b|0)){Sc:{switch(d&255){case 1:if(g>>>0<192){break Qc}break;case 0:break Pc;default:break Sc}}e=d|-64;break Rc}e=255;if((d&255)!=63){break Pc}}d=H[H[o>>2]+44>>2];H[197455]=0;da(d|0,o|0,e&255)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Oc}}e=H[H[o>>2]+44>>2];d=0;H[197455]=0;da(e|0,o|0,g|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Oc}}d=d+1|0;h=H[c+16>>2];p=p+1|0;if((h|0)>(p|0)){continue}break Ac}break}b=ha(782408)|0;break jc}while(1){e=b;H[197455]=0;b=I[H[c+928>>2]+(N(H[c+16>>2],f)+g|0)|0];k=H[197455];H[197455]=0;if((k|0)==1){break zc}k=e&255;Tc:{Uc:{Vc:{if((k|0)!=(b|0)){Wc:{switch(d&255){case 1:if(k>>>0<192){break Uc}break;case 0:break Tc;default:break Wc}}e=d|-64;break Vc}e=255;if((d&255)!=63){break Tc}}d=H[H[o>>2]+44>>2];H[197455]=0;da(d|0,o|0,e&255)|0;e=H[197455];H[197455]=0;if((e|0)==1){break zc}}e=H[H[o>>2]+44>>2];d=0;H[197455]=0;da(e|0,o|0,k|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break zc}}d=d+1|0;g=g+1|0;h=H[c+16>>2];if((g|0)<(h|0)){continue}break}}switch(d&255){case 0:break vc;case 1:break yc;default:break xc}}b=ha(782408)|0;break jc}if(b>>>0<192){break wc}}e=H[H[o>>2]+44>>2];H[197455]=0;da(e|0,o|0,(d|192)&255)|0;e=H[197455];H[197455]=0;if((e|0)==1){break tc}}e=H[H[o>>2]+44>>2];H[197455]=0;da(e|0,o|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break tc}}if(h&1){b=H[H[o>>2]+44>>2];H[197455]=0;da(b|0,o|0,0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break tc}}d=F[i+113|0];j=j+1|0;if((d|0)>(j|0)){continue}break sc}break}b=ha(782408)|0;break jc}b=ha(782408)|0;break jc}if((q|0)>=2){continue}break}}H[197455]=0;b=H[o+4>>2];e=H[197455];H[197455]=0;if((e|0)==1){break lc}H[197455]=0;e=H[o+16>>2];d=H[o+4>>2];g=H[197455];H[197455]=0;if((g|0)==1){break lc}g=H[H[m>>2]+16>>2];H[197455]=0;la(g|0,m|0,b|0,(d?e:-1)|0,1)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break oc}break lc}b=ha(782408)|0;d=_()|0;break fc}if(J[c+26>>1]==8){Xc:{Yc:{g=H[c+20>>2];if((g|0)>0){while(1){k=g-1|0;f=0;d=0;b=0;e=H[c+16>>2];Zc:{if((e|0)<=0){break Zc}while(1){e=b;H[197455]=0;b=Wf(c,f,k);h=H[197455];H[197455]=0;if((h|0)==1){break mc}e=e&255;_c:{$c:{ad:{if((e|0)!=(b|0)){h=d;bd:{switch(d&255){case 1:if(e>>>0<192){break $c}break;case 0:break _c;default:break bd}}p=h|-64;break ad}p=255;h=d;if((d&255)!=63){break _c}}d=H[H[o>>2]+44>>2];H[197455]=0;da(d|0,o|0,p&255)|0;d=H[197455];H[197455]=0;if((d|0)==1){break mc}}d=H[H[o>>2]+44>>2];h=0;H[197455]=0;da(d|0,o|0,e|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break mc}}d=h+1|0;e=H[c+16>>2];f=f+1|0;if((e|0)>(f|0)){continue}break}f=h&255;if((f|0)==255){break Zc}if(!(!f&b>>>0<192)){f=H[H[o>>2]+44>>2];H[197455]=0;da(f|0,o|0,(d|192)&255)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Yc}}d=H[H[o>>2]+44>>2];H[197455]=0;da(d|0,o|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Yc}}if(e&1){b=H[H[o>>2]+44>>2];H[197455]=0;da(b|0,o|0,0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Yc}}b=(g|0)>1;g=k;if(b){continue}break}}H[197455]=0;b=H[o+4>>2];e=H[197455];H[197455]=0;if((e|0)==1){break lc}H[197455]=0;e=H[o+16>>2];d=H[o+4>>2];g=H[197455];H[197455]=0;if((g|0)==1){break lc}g=H[H[m>>2]+16>>2];H[197455]=0;la(g|0,m|0,b|0,(d?e:-1)|0,1)|0;b=H[197455];H[197455]=0;if((b|0)==1){break lc}if(J[c+26>>1]!=8){break oc}b=H[H[m>>2]+44>>2];H[197455]=0;da(b|0,m|0,12)|0;b=H[197455];H[197455]=0;if((b|0)==1){break lc}b=Tb(768);d=0;while(1){H[197455]=0;Nd(i+8|0,c,d&255);e=H[197455];H[197455]=0;if((e|0)==1){break Xc}g=I[i+9|0];k=I[i+8|0];e=b+N(d,3)|0;F[e|0]=I[i+10|0];F[e+2|0]=k;F[e+1|0]=g;d=d+1|0;if((d|0)!=256){continue}break}e=H[H[m>>2]+16>>2];H[197455]=0;la(e|0,m|0,b|0,768,1)|0;e=H[197455];H[197455]=0;if((e|0)!=1){Kb(b);break oc}b=ha(782408)|0;break jc}b=ha(782408)|0;break jc}b=ha(782408)|0;break jc}H[197455]=0;b=H[c+4>>2];b=b?H[c+44>>2]?b+40|0:0:0;e=H[197455];H[197455]=0;cd:{dd:{ed:{if((e|0)!=1){H[197455]=0;b=or(b,b+4|0);e=H[197455];H[197455]=0;if((e|0)==1){break ed}d=J[c+26>>1];r=Tb(J[i+114>>1]);e=H[c+16>>2];p=Tb(e);g=H[c+20>>2];if((g|0)<=0){break cd}t=(d|0)==1&(b|0)>0;q=r+1|0;n=r-1|0;break dd}b=ha(782408)|0;break jc}b=ha(782408)|0;break jc}while(1){h=g-1|0;d=0;fd:{gd:{hd:{id:{jd:{if((e|0)<=0){break jd}while(1){H[197455]=0;b=Wf(c,d,h);e=H[197455];H[197455]=0;if((e|0)==1){break id}F[d+p|0]=b;d=d+1|0;e=H[c+16>>2];if((d|0)<(e|0)){continue}break}if(!(t&(e|0)>0)){break jd}b=0;d=0;if(e-1>>>0>=3){k=e&-4;f=0;while(1){j=d+p|0;F[j|0]=1-I[j|0];j=p+(d|1)|0;F[j|0]=1-I[j|0];j=p+(d|2)|0;F[j|0]=1-I[j|0];j=p+(d|3)|0;F[j|0]=1-I[j|0];d=d+4|0;f=f+4|0;if((k|0)!=(f|0)){continue}break}}k=e&3;if(!k){break jd}while(1){f=d+p|0;F[f|0]=1-I[f|0];d=d+1|0;b=b+1|0;if((k|0)!=(b|0)){continue}break}}j=0;if(F[i+113|0]<=0){break fd}while(1){if((e|0)>0){k=1<>1];kd:{ld:{md:{if(b>>>0<2){e=k;break md}s=b+r|0;b=q;while(1){d=1;nd:{while(1){f=b+1|0;e=I[b|0];b=k&255;if((e|0)!=(b|0)|(d&255)>>>0>62){break nd}d=d+1|0;b=f;if(s>>>0>b>>>0){continue}break}e=k;break ld}if(!(b>>>0<192&(d&255)>>>0<=1)){k=H[H[o>>2]+44>>2];H[197455]=0;da(k|0,o|0,(d|192)&255)|0;d=H[197455];H[197455]=0;if((d|0)==1){break gd}}d=H[H[o>>2]+44>>2];H[197455]=0;da(d|0,o|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break gd}k=e;b=f;if(s>>>0>b>>>0){continue}break}}d=1;if((e&255)>>>0<192){break kd}}b=H[H[o>>2]+44>>2];H[197455]=0;da(b|0,o|0,(d|192)&255)|0;b=H[197455];H[197455]=0;if((b|0)==1){break hd}}b=H[H[o>>2]+44>>2];H[197455]=0;da(b|0,o|0,e&255)|0;b=H[197455];H[197455]=0;if((b|0)==1){break hd}j=j+1|0;if((j|0)>=F[i+113|0]){break fd}e=H[c+16>>2];continue}}b=ha(782408)|0;break jc}b=ha(782408)|0;break jc}b=ha(782408)|0;break jc}if((g|0)<2){break cd}e=H[c+16>>2];g=h;continue}}Kb(r);Kb(p);H[197455]=0;b=H[o+4>>2];e=H[197455];H[197455]=0;if((e|0)==1){break nc}H[197455]=0;e=H[o+16>>2];d=H[o+4>>2];g=H[197455];H[197455]=0;if((g|0)==1){break nc}g=H[H[m>>2]+16>>2];H[197455]=0;la(g|0,m|0,b|0,(d?e:-1)|0,1)|0;b=H[197455];H[197455]=0;if((b|0)==1){break nc}}wg(o);e=1;break ec}b=ha(782408)|0;break jc}b=ha(782408)|0;break jc}b=ha(782408)|0;break jc}b=ha(782408)|0}d=_()|0;wg(o);break fc}b=ha(782408)|0;d=_()|0;break fc}b=ha(782408)|0;d=_()|0}if((ya(782408)|0)!=(d|0)){break dc}b=sa(b|0)|0;if(I[b|0]){Ld(c+72|0,b,255)}ra();e=0}xb=i+176|0;break bc}ea(b|0)}X()}if(e){break e}break d;case 8:break i;default:break f}}c=Qb(940);H[197455]=0;l=Bd(c,9);e=H[197455];H[197455]=0;if((e|0)!=1){break g}}a=$()|0;_()|0;Kb(c);ea(a|0);X()}H[c>>2]=247808;zg(l,a);e=0;g=b;if(!Vg(c,b)){od:{if(J[c+26>>1]!=1){b=I[246929]|I[246930]<<8|(I[246931]<<16|I[246932]<<24);e=I[246925]|I[246926]<<8|(I[246927]<<16|I[246928]<<24);F[c+94|0]=e;F[c+95|0]=e>>>8;F[c+96|0]=e>>>16;F[c+97|0]=e>>>24;F[c+98|0]=b;F[c+99|0]=b>>>8;F[c+100|0]=b>>>16;F[c+101|0]=b>>>24;b=I[246923]|I[246924]<<8|(I[246925]<<16|I[246926]<<24);e=I[246919]|I[246920]<<8|(I[246921]<<16|I[246922]<<24);F[c+88|0]=e;F[c+89|0]=e>>>8;F[c+90|0]=e>>>16;F[c+91|0]=e>>>24;F[c+92|0]=b;F[c+93|0]=b>>>8;F[c+94|0]=b>>>16;F[c+95|0]=b>>>24;b=I[246915]|I[246916]<<8|(I[246917]<<16|I[246918]<<24);e=I[246911]|I[246912]<<8|(I[246913]<<16|I[246914]<<24);F[c+80|0]=e;F[c+81|0]=e>>>8;F[c+82|0]=e>>>16;F[c+83|0]=e>>>24;F[c+84|0]=b;F[c+85|0]=b>>>8;F[c+86|0]=b>>>16;F[c+87|0]=b>>>24;b=I[246907]|I[246908]<<8|(I[246909]<<16|I[246910]<<24);e=I[246903]|I[246904]<<8|(I[246905]<<16|I[246906]<<24);F[c+72|0]=e;F[c+73|0]=e>>>8;F[c+74|0]=e>>>16;F[c+75|0]=e>>>24;F[c+76|0]=b;F[c+77|0]=b>>>8;F[c+78|0]=b>>>16;F[c+79|0]=b>>>24;break od}k=H[c+20>>2];h=H[c+16>>2];zb[H[H[g>>2]+44>>2]](g,0)|0;zb[H[H[g>>2]+44>>2]](g,0)|0;while(1){b=e;e=b+7|0;if(h>>>e|0){continue}break}pd:{if(b){while(1){if(!(zb[H[H[g>>2]+44>>2]](g,(h>>>b|128)&255)|0)){break pd}e=(b|0)<8;b=b-7|0;if(!e){continue}break}}zb[H[H[g>>2]+44>>2]](g,h&127)|0}e=0;while(1){b=e;e=b+7|0;if(k>>>e|0){continue}break}qd:{if(b){while(1){if(!(zb[H[H[g>>2]+44>>2]](g,(k>>>b|128)&255)|0)){break qd}e=(b|0)<8;b=b-7|0;if(!e){continue}break}}zb[H[H[g>>2]+44>>2]](g,k&127)|0}e=0;Xc(c,0);f=H[c+20>>2];b=Xc(c,0);d=1;if(!k){break od}h=h+7>>>3|0;b=b+N(H[c+52>>2],H[c+20>>2]-1|0)|0;while(1){zb[H[H[g>>2]+16>>2]](g,b,h,1)|0;f=f-1|0;b=(f|0)>0?b-H[c+52>>2]|0:b;e=e+1|0;if((k|0)!=(e|0)){continue}break}}}if(d){break e}break d}b=I[246547]|I[246548]<<8|(I[246549]<<16|I[246550]<<24);c=I[246543]|I[246544]<<8|(I[246545]<<16|I[246546]<<24);F[a+87|0]=c;F[a+88|0]=c>>>8;F[a+89|0]=c>>>16;F[a+90|0]=c>>>24;F[a+91|0]=b;F[a+92|0]=b>>>8;F[a+93|0]=b>>>16;F[a+94|0]=b>>>24;b=I[246540]|I[246541]<<8|(I[246542]<<16|I[246543]<<24);c=I[246536]|I[246537]<<8|(I[246538]<<16|I[246539]<<24);F[a+80|0]=c;F[a+81|0]=c>>>8;F[a+82|0]=c>>>16;F[a+83|0]=c>>>24;F[a+84|0]=b;F[a+85|0]=b>>>8;F[a+86|0]=b>>>16;F[a+87|0]=b>>>24;b=I[246532]|I[246533]<<8|(I[246534]<<16|I[246535]<<24);c=I[246528]|I[246529]<<8|(I[246530]<<16|I[246531]<<24);F[a+72|0]=c;F[a+73|0]=c>>>8;F[a+74|0]=c>>>16;F[a+75|0]=c>>>24;F[a+76|0]=b;F[a+77|0]=b>>>8;F[a+78|0]=b>>>16;F[a+79|0]=b>>>24;return 0}zb[H[H[c>>2]+4>>2]](c);return 1}he(a+72|0,l+72|0);zb[H[H[c>>2]+4>>2]](c);return 0}zb[H[H[c>>2]+4>>2]](l);return 1}he(a+72|0,l+72|0);zb[H[H[c>>2]+4>>2]](l);return 0}a=$()|0;Kb(h);ea(a|0);X()}function BG(){var a=0,b=0,c=0,d=0;b=xb-16|0;xb=b;a:{if(nb(b+12|0,b+8|0)|0){break a}a=Tb((H[b+12>>2]<<2)+4|0);H[197020]=a;if(!a){break a}a=Tb(H[b+8>>2]);if(a){H[H[197020]+(H[b+12>>2]<<2)>>2]=0;if(!(mb(H[197020],a|0)|0)){break a}}H[197020]=0}xb=b+16|0;a=xb-880|0;xb=a;G[a+8>>1]=16437;b=Qb(80);H[a+16>>2]=18;H[a+20>>2]=-2147483628;H[a+12>>2]=b;H[197455]=0;Mb(b,400932,18);c=H[197455];H[197455]=0;b:{c:{d:{if((c|0)!=1){e:{H[b+72>>2]=0;H[197455]=0;G[a+24>>1]=16433;b=aa(899,80)|0;c=H[197455];H[197455]=0;f:{g:{if((c|0)!=1){H[a+28>>2]=b;H[a+32>>2]=17;H[a+36>>2]=-2147483628;H[197455]=0;Mb(b,402616,17);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+68>>2]=0;H[197455]=0;G[a+40>>1]=16435;b=aa(899,80)|0;c=H[197455];H[197455]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{if((c|0)!=1){H[a+44>>2]=b;H[a+48>>2]=19;H[a+52>>2]=-2147483628;H[197455]=0;Mb(b,402848,19);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+76>>2]=0;H[197455]=0;G[a+56>>1]=16434;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ea}H[a+60>>2]=b;c=a- -64|0;H[c>>2]=19;H[c+4>>2]=-2147483628;H[197455]=0;Mb(b,403076,19);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+76>>2]=0;H[197455]=0;G[a+72>>1]=16436;b=aa(899,96)|0;c=H[197455];H[197455]=0;if((c|0)==1){break da}H[a+76>>2]=b;H[a+80>>2]=21;H[a+84>>2]=-2147483624;H[197455]=0;Mb(b,403348,21);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+84>>2]=0;H[197455]=0;G[a+88>>1]=16387;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ca}H[a+92>>2]=b;H[a+96>>2]=15;H[a+100>>2]=-2147483632;H[197455]=0;Mb(b,403520,15);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+60>>2]=0;H[197455]=0;G[a+104>>1]=16386;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ba}H[a+108>>2]=b;H[a+112>>2]=17;H[a+116>>2]=-2147483628;H[197455]=0;Mb(b,403748,17);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+68>>2]=0;H[197455]=0;G[a+120>>1]=16388;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break aa}H[a+124>>2]=b;H[a+128>>2]=13;H[a+132>>2]=-2147483632;H[197455]=0;Mb(b,403940,13);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+52>>2]=0;H[197455]=0;G[a+136>>1]=16385;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break $}H[a+140>>2]=b;H[a+144>>2]=14;H[a+148>>2]=-2147483632;H[197455]=0;Mb(b,404116,14);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+56>>2]=0;H[197455]=0;G[a+152>>1]=16393;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break _}H[a+156>>2]=b;H[a+160>>2]=13;H[a+164>>2]=-2147483632;H[197455]=0;Mb(b,404292,13);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+52>>2]=0;H[197455]=0;G[a+168>>1]=16402;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Z}H[a+172>>2]=b;H[a+176>>2]=15;H[a+180>>2]=-2147483632;H[197455]=0;Mb(b,404480,15);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+60>>2]=0;H[197455]=0;G[a+184>>1]=16409;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Y}H[a+188>>2]=b;H[a+192>>2]=19;H[a+196>>2]=-2147483628;H[197455]=0;Mb(b,404676,19);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+76>>2]=0;H[197455]=0;G[a+200>>1]=16407;b=aa(899,96)|0;c=H[197455];H[197455]=0;if((c|0)==1){break X}H[a+204>>2]=b;H[a+208>>2]=23;H[a+212>>2]=-2147483624;H[197455]=0;Mb(b,404888,23);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+92>>2]=0;H[197455]=0;G[a+216>>1]=16408;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break W}H[a+220>>2]=b;H[a+224>>2]=17;H[a+228>>2]=-2147483628;H[197455]=0;Mb(b,405108,17);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+68>>2]=0;H[197455]=0;G[a+232>>1]=16438;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break V}H[a+236>>2]=b;H[a+240>>2]=24;H[a+244>>2]=-2147483620;H[197455]=0;Mb(b,417752,24);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+96>>2]=0;H[197455]=0;G[a+248>>1]=16399;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break U}H[a+252>>2]=b;H[a+256>>2]=19;H[a+260>>2]=-2147483628;H[197455]=0;Mb(b,405288,19);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+76>>2]=0;H[197455]=0;G[a+264>>1]=16410;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break T}H[a+268>>2]=b;H[a+272>>2]=17;H[a+276>>2]=-2147483628;H[197455]=0;Mb(b,405464,17);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+68>>2]=0;H[197455]=0;G[a+280>>1]=16411;b=aa(899,96)|0;c=H[197455];H[197455]=0;if((c|0)==1){break S}H[a+284>>2]=b;H[a+288>>2]=23;H[a+292>>2]=-2147483624;H[197455]=0;Mb(b,405648,23);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+92>>2]=0;H[197455]=0;G[a+296>>1]=16397;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break R}H[a+300>>2]=b;H[a+304>>2]=17;H[a+308>>2]=-2147483628;H[197455]=0;Mb(b,405836,17);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+68>>2]=0;H[197455]=0;G[a+312>>1]=16405;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Q}H[a+316>>2]=b;H[a+320>>2]=16;H[a+324>>2]=-2147483628;H[197455]=0;Mb(b,405996,16);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+64>>2]=0;H[197455]=0;G[a+328>>1]=16401;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break P}H[a+332>>2]=b;H[a+336>>2]=15;H[a+340>>2]=-2147483632;H[197455]=0;Mb(b,406180,15);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+60>>2]=0;H[197455]=0;G[a+344>>1]=16395;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break O}H[a+348>>2]=b;H[a+352>>2]=17;H[a+356>>2]=-2147483628;H[197455]=0;Mb(b,406328,17);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+68>>2]=0;H[197455]=0;G[a+360>>1]=16412;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break N}H[a+364>>2]=b;H[a+368>>2]=18;H[a+372>>2]=-2147483628;H[197455]=0;Mb(b,406524,18);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+72>>2]=0;H[197455]=0;G[a+376>>1]=16406;b=aa(899,96)|0;c=H[197455];H[197455]=0;if((c|0)==1){break M}H[a+380>>2]=b;H[a+384>>2]=23;H[a+388>>2]=-2147483624;H[197455]=0;Mb(b,406704,23);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+92>>2]=0;H[197455]=0;G[a+392>>1]=16398;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break L}H[a+396>>2]=b;H[a+400>>2]=19;H[a+404>>2]=-2147483628;H[197455]=0;Mb(b,406948,19);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+76>>2]=0;H[197455]=0;G[a+408>>1]=16404;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break K}H[a+412>>2]=b;H[a+416>>2]=16;H[a+420>>2]=-2147483628;H[197455]=0;Mb(b,407144,16);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+64>>2]=0;H[197455]=0;G[a+424>>1]=16400;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break J}H[a+428>>2]=b;H[a+432>>2]=15;H[a+436>>2]=-2147483632;H[197455]=0;Mb(b,407320,15);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+60>>2]=0;H[197455]=0;G[a+440>>1]=16396;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break I}H[a+444>>2]=b;H[a+448>>2]=19;H[a+452>>2]=-2147483628;H[197455]=0;Mb(b,407504,19);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+76>>2]=0;H[197455]=0;G[a+456>>1]=16394;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break H}H[a+460>>2]=b;H[a+464>>2]=17;H[a+468>>2]=-2147483628;H[197455]=0;Mb(b,407684,17);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+68>>2]=0;H[197455]=0;G[a+472>>1]=16403;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break G}H[a+476>>2]=b;H[a+480>>2]=18;H[a+484>>2]=-2147483628;H[197455]=0;Mb(b,407872,18);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+72>>2]=0;H[197455]=0;G[a+488>>1]=16392;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break F}H[a+492>>2]=b;H[a+496>>2]=14;H[a+500>>2]=-2147483632;H[197455]=0;Mb(b,408108,14);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+56>>2]=0;H[197455]=0;G[a+504>>1]=16440;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break E}H[a+508>>2]=b;H[a+512>>2]=26;H[a+516>>2]=-2147483620;H[197455]=0;Mb(b,408296,26);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+104>>2]=0;H[197455]=0;G[a+520>>1]=16414;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break D}H[a+524>>2]=b;H[a+528>>2]=24;H[a+532>>2]=-2147483620;H[197455]=0;Mb(b,408540,24);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+96>>2]=0;H[197455]=0;G[a+536>>1]=16419;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break C}H[a+540>>2]=b;H[a+544>>2]=26;H[a+548>>2]=-2147483620;H[197455]=0;Mb(b,408772,26);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+104>>2]=0;H[197455]=0;G[a+552>>1]=16420;b=aa(899,128)|0;c=H[197455];H[197455]=0;if((c|0)==1){break B}H[a+556>>2]=b;H[a+560>>2]=29;H[a+564>>2]=-2147483616;H[197455]=0;Mb(b,408972,29);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+116>>2]=0;H[197455]=0;G[a+568>>1]=16417;b=aa(899,128)|0;c=H[197455];H[197455]=0;if((c|0)==1){break A}H[a+572>>2]=b;H[a+576>>2]=28;H[a+580>>2]=-2147483616;H[197455]=0;Mb(b,409204,28);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+112>>2]=0;H[197455]=0;G[a+584>>1]=16418;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break z}H[a+588>>2]=b;H[a+592>>2]=26;H[a+596>>2]=-2147483620;H[197455]=0;Mb(b,409468,26);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+104>>2]=0;H[197455]=0;G[a+600>>1]=16413;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break y}H[a+604>>2]=b;H[a+608>>2]=26;H[a+612>>2]=-2147483620;H[197455]=0;Mb(b,409756,26);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+104>>2]=0;H[197455]=0;G[a+616>>1]=16416;b=aa(899,96)|0;c=H[197455];H[197455]=0;if((c|0)==1){break x}H[a+620>>2]=b;H[a+624>>2]=23;H[a+628>>2]=-2147483624;H[197455]=0;Mb(b,410016,23);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+92>>2]=0;H[197455]=0;G[a+632>>1]=16415;b=aa(899,128)|0;c=H[197455];H[197455]=0;if((c|0)==1){break w}H[a+636>>2]=b;H[a+640>>2]=28;H[a+644>>2]=-2147483616;H[197455]=0;Mb(b,410236,28);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+112>>2]=0;H[197455]=0;G[a+648>>1]=16423;b=aa(899,96)|0;c=H[197455];H[197455]=0;if((c|0)==1){break v}H[a+652>>2]=b;H[a+656>>2]=22;H[a+660>>2]=-2147483624;H[197455]=0;Mb(b,410492,22);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+88>>2]=0;H[197455]=0;G[a+664>>1]=16424;b=aa(899,128)|0;c=H[197455];H[197455]=0;if((c|0)==1){break u}H[a+668>>2]=b;H[a+672>>2]=30;H[a+676>>2]=-2147483616;H[197455]=0;Mb(b,410704,30);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+120>>2]=0;H[197455]=0;G[a+680>>1]=16425;b=aa(899,96)|0;c=H[197455];H[197455]=0;if((c|0)==1){break t}H[a+684>>2]=b;H[a+688>>2]=20;H[a+692>>2]=-2147483624;H[197455]=0;Mb(b,410944,20);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+80>>2]=0;H[197455]=0;G[a+696>>1]=16422;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break s}H[a+700>>2]=b;H[a+704>>2]=15;H[a+708>>2]=-2147483632;H[197455]=0;Mb(b,411116,15);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+60>>2]=0;H[197455]=0;G[a+712>>1]=16421;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break r}H[a+716>>2]=b;H[a+720>>2]=12;H[a+724>>2]=-2147483632;H[197455]=0;Mb(b,411276,12);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+48>>2]=0;H[197455]=0;G[a+728>>1]=16442;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break q}H[a+732>>2]=b;H[a+736>>2]=17;H[a+740>>2]=-2147483628;H[197455]=0;Mb(b,411444,17);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+68>>2]=0;H[197455]=0;G[a+744>>1]=16441;b=aa(899,96)|0;c=H[197455];H[197455]=0;if((c|0)==1){break p}H[a+748>>2]=b;H[a+752>>2]=21;H[a+756>>2]=-2147483624;H[197455]=0;Mb(b,411600,21);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+84>>2]=0;H[197455]=0;G[a+760>>1]=16428;b=aa(899,128)|0;c=H[197455];H[197455]=0;if((c|0)==1){break o}H[a+764>>2]=b;H[a+768>>2]=30;H[a+772>>2]=-2147483616;H[197455]=0;Mb(b,411792,30);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+120>>2]=0;H[197455]=0;G[a+776>>1]=16427;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break n}H[a+780>>2]=b;H[a+784>>2]=27;H[a+788>>2]=-2147483620;H[197455]=0;Mb(b,412e3,27);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+108>>2]=0;H[197455]=0;G[a+792>>1]=16431;b=aa(899,128)|0;c=H[197455];H[197455]=0;if((c|0)==1){break m}H[a+796>>2]=b;H[a+800>>2]=28;H[a+804>>2]=-2147483616;H[197455]=0;Mb(b,412268,28);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+112>>2]=0;H[197455]=0;G[a+808>>1]=16430;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break l}H[a+812>>2]=b;H[a+816>>2]=27;H[a+820>>2]=-2147483620;H[197455]=0;Mb(b,412536,27);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+108>>2]=0;H[197455]=0;G[a+824>>1]=16432;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break k}H[a+828>>2]=b;H[a+832>>2]=24;H[a+836>>2]=-2147483620;H[197455]=0;Mb(b,412816,24);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+96>>2]=0;H[197455]=0;G[a+840>>1]=16426;b=aa(899,112)|0;c=H[197455];H[197455]=0;if((c|0)==1){break j}H[a+844>>2]=b;H[a+848>>2]=25;H[a+852>>2]=-2147483620;H[197455]=0;Mb(b,413040,25);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+100>>2]=0;H[197455]=0;G[a+856>>1]=16429;b=aa(899,128)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[a+860>>2]=b;H[a+864>>2]=31;H[a+868>>2]=-2147483616;H[197455]=0;Mb(b,413296,31);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[b+124>>2]=0;H[196482]=0;H[196483]=0;H[196481]=785928;b=a+872|0;c=a+8|0;while(1){H[197455]=0;wa(1922,a+872|0,785924,785928,c|0,c|0);d=H[197455];H[197455]=0;if((d|0)==1){break h}c=c+16|0;if((b|0)!=(c|0)){continue}break}while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}b=b-16|0;if((b|0)!=(a+8|0)){continue}break}xb=a+880|0;break d}c=$()|0;_()|0;b=a+40|0;break g}c=$()|0;_()|0;b=a+56|0;break g}c=$()|0;_()|0;b=a+72|0;break g}c=$()|0;_()|0;b=a+88|0;break g}c=$()|0;_()|0;b=a+104|0;break g}c=$()|0;_()|0;b=a+120|0;break g}c=$()|0;_()|0;b=a+136|0;break g}c=$()|0;_()|0;b=a+152|0;break g}c=$()|0;_()|0;b=a+168|0;break g}c=$()|0;_()|0;b=a+184|0;break g}c=$()|0;_()|0;b=a+200|0;break g}c=$()|0;_()|0;b=a+216|0;break g}c=$()|0;_()|0;b=a+232|0;break g}c=$()|0;_()|0;b=a+248|0;break g}c=$()|0;_()|0;b=a+264|0;break g}c=$()|0;_()|0;b=a+280|0;break g}c=$()|0;_()|0;b=a+296|0;break g}c=$()|0;_()|0;b=a+312|0;break g}c=$()|0;_()|0;b=a+328|0;break g}c=$()|0;_()|0;b=a+344|0;break g}c=$()|0;_()|0;b=a+360|0;break g}c=$()|0;_()|0;b=a+376|0;break g}c=$()|0;_()|0;b=a+392|0;break g}c=$()|0;_()|0;b=a+408|0;break g}c=$()|0;_()|0;b=a+424|0;break g}c=$()|0;_()|0;b=a+440|0;break g}c=$()|0;_()|0;b=a+456|0;break g}c=$()|0;_()|0;b=a+472|0;break g}c=$()|0;_()|0;b=a+488|0;break g}c=$()|0;_()|0;b=a+504|0;break g}c=$()|0;_()|0;b=a+520|0;break g}c=$()|0;_()|0;b=a+536|0;break g}c=$()|0;_()|0;b=a+552|0;break g}c=$()|0;_()|0;b=a+568|0;break g}c=$()|0;_()|0;b=a+584|0;break g}c=$()|0;_()|0;b=a+600|0;break g}c=$()|0;_()|0;b=a+616|0;break g}c=$()|0;_()|0;b=a+632|0;break g}c=$()|0;_()|0;b=a+648|0;break g}c=$()|0;_()|0;b=a+664|0;break g}c=$()|0;_()|0;b=a+680|0;break g}c=$()|0;_()|0;b=a+696|0;break g}c=$()|0;_()|0;b=a+712|0;break g}c=$()|0;_()|0;b=a+728|0;break g}c=$()|0;_()|0;b=a+744|0;break g}c=$()|0;_()|0;b=a+760|0;break g}c=$()|0;_()|0;b=a+776|0;break g}c=$()|0;_()|0;b=a+792|0;break g}c=$()|0;_()|0;b=a+808|0;break g}c=$()|0;_()|0;b=a+824|0;break g}c=$()|0;_()|0;b=a+840|0;break g}c=$()|0;_()|0;b=a+856|0;break g}c=$()|0;_()|0;Nm(785924,H[196482]);break f}c=$()|0;_()|0;b=a+24|0}}break c}}break b}H[196484]=0;b=Qb(32);H[196485]=b;H[196486]=7;H[196487]=-2147483640;H[197455]=0;Mb(b,401012,7);a=H[197455];H[197455]=0;fa:{ga:{if((a|0)!=1){H[b+28>>2]=0;H[196488]=1;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=785952;break ga}H[196489]=b;H[196490]=10;H[196491]=-2147483636;H[197455]=0;Mb(b,402688,10);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+40>>2]=0;H[196492]=2;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=785968;break ga}H[196493]=b;H[196494]=14;H[196495]=-2147483632;H[197455]=0;Mb(b,402928,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196496]=3;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=785984;break ga}H[196497]=b;H[196498]=11;H[196499]=-2147483636;H[197455]=0;Mb(b,403156,11);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+44>>2]=0;H[196500]=4;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786e3;break ga}H[196501]=b;H[196502]=12;H[196503]=-2147483632;H[197455]=0;Mb(b,403436,12);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+48>>2]=0;H[196504]=5;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786016;break ga}H[196505]=b;H[196506]=16;H[196507]=-2147483628;H[197455]=0;Mb(b,403584,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196508]=6;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786032;break ga}H[196509]=b;H[196510]=14;H[196511]=-2147483632;H[197455]=0;Mb(b,403820,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196512]=7;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786048;break ga}H[196513]=b;H[196514]=16;H[196515]=-2147483628;H[197455]=0;Mb(b,403996,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196516]=8;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786064;break ga}H[196517]=b;H[196518]=15;H[196519]=-2147483632;H[197455]=0;Mb(b,404176,15);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+60>>2]=0;H[196520]=9;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786080;break ga}H[196521]=b;H[196522]=18;H[196523]=-2147483628;H[197455]=0;Mb(b,404348,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196524]=10;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786096;break ga}H[196525]=b;H[196526]=18;H[196527]=-2147483628;H[197455]=0;Mb(b,404544,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196528]=11;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786112;break ga}H[196529]=b;H[196530]=20;H[196531]=-2147483624;H[197455]=0;Mb(b,404756,20);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+80>>2]=0;H[196532]=12;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786128;break ga}H[196533]=b;H[196534]=20;H[196535]=-2147483624;H[197455]=0;Mb(b,404984,20);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+80>>2]=0;H[196536]=13;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786144;break ga}H[196537]=b;H[196538]=17;H[196539]=-2147483628;H[197455]=0;Mb(b,405180,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196540]=14;H[197455]=0;b=aa(899,32)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786160;break ga}H[196541]=b;H[196542]=7;H[196543]=-2147483640;H[197455]=0;Mb(b,417852,7);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+28>>2]=0;H[196544]=15;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786176;break ga}H[196545]=b;H[196546]=13;H[196547]=-2147483632;H[197455]=0;Mb(b,405368,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196548]=16;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786192;break ga}H[196549]=b;H[196550]=18;H[196551]=-2147483628;H[197455]=0;Mb(b,405536,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196552]=17;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786208;break ga}H[196553]=b;H[196554]=14;H[196555]=-2147483632;H[197455]=0;Mb(b,405744,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196556]=18;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786224;break ga}H[196557]=b;H[196558]=13;H[196559]=-2147483632;H[197455]=0;Mb(b,405908,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196560]=19;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786240;break ga}H[196561]=b;H[196562]=19;H[196563]=-2147483628;H[197455]=0;Mb(b,406064,19);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+76>>2]=0;H[196564]=20;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786256;break ga}H[196565]=b;H[196566]=11;H[196567]=-2147483636;H[197455]=0;Mb(b,406244,11);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+44>>2]=0;H[196568]=21;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786272;break ga}H[196569]=b;H[196570]=21;H[196571]=-2147483624;H[197455]=0;Mb(b,406400,21);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+84>>2]=0;H[196572]=22;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786288;break ga}H[196573]=b;H[196574]=16;H[196575]=-2147483628;H[197455]=0;Mb(b,406600,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196576]=23;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786304;break ga}H[196577]=b;H[196578]=22;H[196579]=-2147483624;H[197455]=0;Mb(b,406800,22);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+88>>2]=0;H[196580]=24;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786320;break ga}H[196581]=b;H[196582]=16;H[196583]=-2147483628;H[197455]=0;Mb(b,407028,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196584]=25;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786336;break ga}H[196585]=b;H[196586]=14;H[196587]=-2147483632;H[197455]=0;Mb(b,407212,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196588]=26;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786352;break ga}H[196589]=b;H[196590]=17;H[196591]=-2147483628;H[197455]=0;Mb(b,407384,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196592]=27;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786368;break ga}H[196593]=b;H[196594]=12;H[196595]=-2147483632;H[197455]=0;Mb(b,407584,12);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+48>>2]=0;H[196596]=28;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786384;break ga}H[196597]=b;H[196598]=14;H[196599]=-2147483632;H[197455]=0;Mb(b,407756,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196600]=29;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786400;break ga}H[196601]=b;H[196602]=19;H[196603]=-2147483628;H[197455]=0;Mb(b,407948,19);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+76>>2]=0;H[196604]=30;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786416;break ga}H[196605]=b;H[196606]=21;H[196607]=-2147483624;H[197455]=0;Mb(b,408168,21);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+84>>2]=0;H[196608]=31;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786432;break ga}H[196609]=b;H[196610]=22;H[196611]=-2147483624;H[197455]=0;Mb(b,408404,22);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+88>>2]=0;H[196612]=32;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786448;break ga}H[196613]=b;H[196614]=20;H[196615]=-2147483624;H[197455]=0;Mb(b,408640,20);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+80>>2]=0;H[196616]=33;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786464;break ga}H[196617]=b;H[196618]=10;H[196619]=-2147483636;H[197455]=0;Mb(b,408880,10);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+40>>2]=0;H[196620]=34;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786480;break ga}H[196621]=b;H[196622]=13;H[196623]=-2147483632;H[197455]=0;Mb(b,409092,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196624]=35;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786496;break ga}H[196625]=b;H[196626]=21;H[196627]=-2147483624;H[197455]=0;Mb(b,409320,21);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+84>>2]=0;H[196628]=36;H[197455]=0;b=aa(899,112)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786512;break ga}H[196629]=b;H[196630]=24;H[196631]=-2147483620;H[197455]=0;Mb(b,409576,24);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+96>>2]=0;H[196632]=37;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786528;break ga}H[196633]=b;H[196634]=16;H[196635]=-2147483628;H[197455]=0;Mb(b,409864,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196636]=38;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786544;break ga}H[196637]=b;H[196638]=13;H[196639]=-2147483632;H[197455]=0;Mb(b,410112,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196640]=39;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786560;break ga}H[196641]=b;H[196642]=23;H[196643]=-2147483624;H[197455]=0;Mb(b,410352,23);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+92>>2]=0;H[196644]=40;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786576;break ga}H[196645]=b;H[196646]=16;H[196647]=-2147483628;H[197455]=0;Mb(b,410584,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196648]=41;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786592;break ga}H[196649]=b;H[196650]=12;H[196651]=-2147483632;H[197455]=0;Mb(b,410828,12);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+48>>2]=0;H[196652]=42;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786608;break ga}H[196653]=b;H[196654]=11;H[196655]=-2147483636;H[197455]=0;Mb(b,411028,11);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+44>>2]=0;H[196656]=43;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786624;break ga}H[196657]=b;H[196658]=13;H[196659]=-2147483632;H[197455]=0;Mb(b,411180,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196660]=44;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786640;break ga}H[196661]=b;H[196662]=13;H[196663]=-2147483632;H[197455]=0;Mb(b,411328,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196664]=45;H[197455]=0;b=aa(899,32)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786656;break ga}H[196665]=b;H[196666]=7;H[196667]=-2147483640;H[197455]=0;Mb(b,411516,7);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+28>>2]=0;H[196668]=46;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786672;break ga}H[196669]=b;H[196670]=9;H[196671]=-2147483636;H[197455]=0;Mb(b,411688,9);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+36>>2]=0;H[196672]=47;H[197455]=0;b=aa(899,32)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786688;break ga}H[196673]=b;H[196674]=7;H[196675]=-2147483640;H[197455]=0;Mb(b,411916,7);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+28>>2]=0;H[196676]=48;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786704;break ga}H[196677]=b;H[196678]=17;H[196679]=-2147483628;H[197455]=0;Mb(b,412112,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196680]=49;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786720;break ga}H[196681]=b;H[196682]=17;H[196683]=-2147483628;H[197455]=0;Mb(b,412384,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196684]=50;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786736;break ga}H[196685]=b;H[196686]=21;H[196687]=-2147483624;H[197455]=0;Mb(b,412648,21);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+84>>2]=0;H[196688]=51;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786752;break ga}H[196689]=b;H[196690]=17;H[196691]=-2147483628;H[197455]=0;Mb(b,412916,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196692]=52;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786768;break ga}H[196693]=b;H[196694]=18;H[196695]=-2147483628;H[197455]=0;Mb(b,413144,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196696]=53;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786784;break ga}H[196697]=b;H[196698]=16;H[196699]=-2147483628;H[197455]=0;Mb(b,413424,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196700]=54;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786800;break ga}H[196701]=b;H[196702]=10;H[196703]=-2147483636;H[197455]=0;Mb(b,413572,10);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+40>>2]=0;H[196704]=55;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786816;break ga}H[196705]=b;H[196706]=9;H[196707]=-2147483636;H[197455]=0;Mb(b,413728,9);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+36>>2]=0;H[196708]=56;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786832;break ga}H[196709]=b;H[196710]=12;H[196711]=-2147483632;H[197455]=0;Mb(b,413960,12);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+48>>2]=0;H[196712]=57;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786848;break ga}H[196713]=b;H[196714]=19;H[196715]=-2147483628;H[197455]=0;Mb(b,414084,19);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+76>>2]=0;H[196716]=58;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786864;break ga}H[196717]=b;H[196718]=17;H[196719]=-2147483628;H[197455]=0;Mb(b,414260,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196720]=59;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786880;break ga}H[196721]=b;H[196722]=13;H[196723]=-2147483632;H[197455]=0;Mb(b,414412,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196724]=60;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786896;break ga}H[196725]=b;H[196726]=11;H[196727]=-2147483636;H[197455]=0;Mb(b,414532,11);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+44>>2]=0;H[196728]=61;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786912;break ga}H[196729]=b;H[196730]=15;H[196731]=-2147483632;H[197455]=0;Mb(b,414700,15);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+60>>2]=0;H[196732]=62;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786928;break ga}H[196733]=b;H[196734]=12;H[196735]=-2147483632;H[197455]=0;Mb(b,414816,12);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+48>>2]=0;H[196736]=63;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786944;break ga}H[196737]=b;H[196738]=21;H[196739]=-2147483624;H[197455]=0;Mb(b,414960,21);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+84>>2]=0;H[196740]=64;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786960;break ga}H[196741]=b;H[196742]=14;H[196743]=-2147483632;H[197455]=0;Mb(b,415128,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196744]=65;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786976;break ga}H[196745]=b;H[196746]=15;H[196747]=-2147483632;H[197455]=0;Mb(b,415224,15);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+60>>2]=0;H[196748]=66;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=786992;break ga}H[196749]=b;H[196750]=13;H[196751]=-2147483632;H[197455]=0;Mb(b,415360,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196752]=67;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787008;break ga}H[196753]=b;H[196754]=18;H[196755]=-2147483628;H[197455]=0;Mb(b,415452,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196756]=68;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787024;break ga}H[196757]=b;H[196758]=13;H[196759]=-2147483632;H[197455]=0;Mb(b,415564,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196760]=69;H[197455]=0;b=aa(899,32)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787040;break ga}H[196761]=b;H[196762]=7;H[196763]=-2147483640;H[197455]=0;Mb(b,401012,7);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+28>>2]=0;H[196764]=70;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787056;break ga}H[196765]=b;H[196766]=14;H[196767]=-2147483632;H[197455]=0;Mb(b,416472,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196768]=71;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787072;break ga}H[196769]=b;H[196770]=11;H[196771]=-2147483636;H[197455]=0;Mb(b,420120,11);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+44>>2]=0;H[196772]=72;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787088;break ga}H[196773]=b;H[196774]=12;H[196775]=-2147483632;H[197455]=0;Mb(b,420192,12);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+48>>2]=0;H[196776]=73;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787104;break ga}H[196777]=b;H[196778]=13;H[196779]=-2147483632;H[197455]=0;Mb(b,420268,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196780]=74;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787120;break ga}H[196781]=b;H[196782]=12;H[196783]=-2147483632;H[197455]=0;Mb(b,420348,12);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+48>>2]=0;H[196784]=75;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787136;break ga}H[196785]=b;H[196786]=20;H[196787]=-2147483624;H[197455]=0;Mb(b,420424,20);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+80>>2]=0;H[196788]=76;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787152;break ga}H[196789]=b;H[196790]=10;H[196791]=-2147483636;H[197455]=0;Mb(b,420532,10);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+40>>2]=0;H[196792]=77;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787168;break ga}H[196793]=b;H[196794]=14;H[196795]=-2147483632;H[197455]=0;Mb(b,420600,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196796]=78;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787184;break ga}H[196797]=b;H[196798]=11;H[196799]=-2147483636;H[197455]=0;Mb(b,420696,11);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+44>>2]=0;H[196800]=79;H[197455]=0;b=aa(899,48)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787200;break ga}H[196801]=b;H[196802]=10;H[196803]=-2147483636;H[197455]=0;Mb(b,420780,10);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+40>>2]=0;H[196804]=80;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787216;break ga}H[196805]=b;H[196806]=21;H[196807]=-2147483624;H[197455]=0;Mb(b,420860,21);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+84>>2]=0;H[196808]=81;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787232;break ga}H[196809]=b;H[196810]=17;H[196811]=-2147483628;H[197455]=0;Mb(b,420984,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196812]=82;H[197455]=0;b=aa(899,112)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787248;break ga}H[196813]=b;H[196814]=26;H[196815]=-2147483620;H[197455]=0;Mb(b,421092,26);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+104>>2]=0;H[196816]=83;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787264;break ga}H[196817]=b;H[196818]=15;H[196819]=-2147483632;H[197455]=0;Mb(b,421236,15);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+60>>2]=0;H[196820]=84;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787280;break ga}H[196821]=b;H[196822]=15;H[196823]=-2147483632;H[197455]=0;Mb(b,421328,15);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+60>>2]=0;H[196824]=85;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787296;break ga}H[196825]=b;H[196826]=16;H[196827]=-2147483628;H[197455]=0;Mb(b,421420,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196828]=86;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787312;break ga}H[196829]=b;H[196830]=13;H[196831]=-2147483632;H[197455]=0;Mb(b,421520,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196832]=87;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787328;break ga}H[196833]=b;H[196834]=14;H[196835]=-2147483632;H[197455]=0;Mb(b,421608,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196836]=88;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787344;break ga}H[196837]=b;H[196838]=18;H[196839]=-2147483628;H[197455]=0;Mb(b,421696,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196840]=89;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787360;break ga}H[196841]=b;H[196842]=16;H[196843]=-2147483628;H[197455]=0;Mb(b,421800,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196844]=90;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787376;break ga}H[196845]=b;H[196846]=18;H[196847]=-2147483628;H[197455]=0;Mb(b,421912,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196848]=91;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787392;break ga}H[196849]=b;H[196850]=17;H[196851]=-2147483628;H[197455]=0;Mb(b,422032,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196852]=92;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787408;break ga}H[196853]=b;H[196854]=14;H[196855]=-2147483632;H[197455]=0;Mb(b,422140,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196856]=93;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787424;break ga}H[196857]=b;H[196858]=19;H[196859]=-2147483628;H[197455]=0;Mb(b,422236,19);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+76>>2]=0;H[196860]=94;H[197455]=0;b=aa(899,112)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787440;break ga}H[196861]=b;H[196862]=27;H[196863]=-2147483620;H[197455]=0;Mb(b,422360,27);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+108>>2]=0;H[196864]=95;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787456;break ga}H[196865]=b;H[196866]=16;H[196867]=-2147483628;H[197455]=0;Mb(b,422516,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196868]=96;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787472;break ga}H[196869]=b;H[196870]=16;H[196871]=-2147483628;H[197455]=0;Mb(b,422612,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196872]=97;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787488;break ga}H[196873]=b;H[196874]=16;H[196875]=-2147483628;H[197455]=0;Mb(b,422700,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196876]=98;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787504;break ga}H[196877]=b;H[196878]=14;H[196879]=-2147483632;H[197455]=0;Mb(b,422808,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196880]=99;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787520;break ga}H[196881]=b;H[196882]=20;H[196883]=-2147483624;H[197455]=0;Mb(b,422908,20);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+80>>2]=0;H[196884]=100;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787536;break ga}H[196885]=b;H[196886]=17;H[196887]=-2147483628;H[197455]=0;Mb(b,423016,17);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+68>>2]=0;H[196888]=101;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787552;break ga}H[196889]=b;H[196890]=20;H[196891]=-2147483624;H[197455]=0;Mb(b,423112,20);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+80>>2]=0;H[196892]=102;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787568;break ga}H[196893]=b;H[196894]=13;H[196895]=-2147483632;H[197455]=0;Mb(b,423220,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196896]=103;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787584;break ga}H[196897]=b;H[196898]=20;H[196899]=-2147483624;H[197455]=0;Mb(b,423308,20);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+80>>2]=0;H[196900]=104;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787600;break ga}H[196901]=b;H[196902]=15;H[196903]=-2147483632;H[197455]=0;Mb(b,423424,15);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+60>>2]=0;H[196904]=105;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787616;break ga}H[196905]=b;H[196906]=16;H[196907]=-2147483628;H[197455]=0;Mb(b,423520,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196908]=106;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787632;break ga}H[196909]=b;H[196910]=16;H[196911]=-2147483628;H[197455]=0;Mb(b,423620,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196912]=107;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787648;break ga}H[196913]=b;H[196914]=16;H[196915]=-2147483628;H[197455]=0;Mb(b,423716,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196916]=108;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787664;break ga}H[196917]=b;H[196918]=16;H[196919]=-2147483628;H[197455]=0;Mb(b,423812,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196920]=109;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787680;break ga}H[196921]=b;H[196922]=16;H[196923]=-2147483628;H[197455]=0;Mb(b,423912,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196924]=110;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787696;break ga}H[196925]=b;H[196926]=16;H[196927]=-2147483628;H[197455]=0;Mb(b,424012,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196928]=111;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787712;break ga}H[196929]=b;H[196930]=23;H[196931]=-2147483624;H[197455]=0;Mb(b,424116,23);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+92>>2]=0;H[196932]=112;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787728;break ga}H[196933]=b;H[196934]=18;H[196935]=-2147483628;H[197455]=0;Mb(b,424252,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196936]=113;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787744;break ga}H[196937]=b;H[196938]=18;H[196939]=-2147483628;H[197455]=0;Mb(b,425212,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196940]=114;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787760;break ga}H[196941]=b;H[196942]=14;H[196943]=-2147483632;H[197455]=0;Mb(b,425288,14);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+56>>2]=0;H[196944]=115;H[197455]=0;b=aa(899,64)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787776;break ga}H[196945]=b;H[196946]=13;H[196947]=-2147483632;H[197455]=0;Mb(b,425348,13);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+52>>2]=0;H[196948]=116;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787792;break ga}H[196949]=b;H[196950]=18;H[196951]=-2147483628;H[197455]=0;Mb(b,425404,18);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+72>>2]=0;H[196952]=117;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787808;break ga}H[196953]=b;H[196954]=16;H[196955]=-2147483628;H[197455]=0;Mb(b,425480,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196956]=118;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787824;break ga}H[196957]=b;H[196958]=16;H[196959]=-2147483628;H[197455]=0;Mb(b,425548,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196960]=119;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787840;break ga}H[196961]=b;H[196962]=16;H[196963]=-2147483628;H[197455]=0;Mb(b,425616,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196964]=120;H[197455]=0;b=aa(899,80)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787856;break ga}H[196965]=b;H[196966]=16;H[196967]=-2147483628;H[197455]=0;Mb(b,425684,16);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+64>>2]=0;H[196968]=121;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787872;break ga}H[196969]=b;H[196970]=23;H[196971]=-2147483624;H[197455]=0;Mb(b,425752,23);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+92>>2]=0;H[196972]=122;H[197455]=0;b=aa(899,96)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=787888;break ga}H[196973]=b;H[196974]=22;H[196975]=-2147483624;H[197455]=0;Mb(b,425848,22);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+88>>2]=0;break fa}break b}b=$()|0;_()|0;while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}a=a-16|0;if((a|0)!=785936){continue}break}ea(b|0);X()}a=xb-864|0;xb=a;H[a+8>>2]=0;b=Qb(48);H[a+16>>2]=10;H[a+20>>2]=-2147483636;H[a+12>>2]=b;H[197455]=0;Mb(b,425940,10);c=H[197455];H[197455]=0;ha:{if((c|0)!=1){ia:{H[b+40>>2]=0;H[197455]=0;H[a+24>>2]=1;b=aa(899,48)|0;c=H[197455];H[197455]=0;ja:{ka:{if((c|0)!=1){H[a+28>>2]=b;H[a+32>>2]=8;H[a+36>>2]=-2147483636;H[197455]=0;Mb(b,425984,8);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+32>>2]=0;H[197455]=0;H[a+40>>2]=2;b=aa(899,48)|0;c=H[197455];H[197455]=0;la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{_a:{$a:{ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{if((c|0)!=1){H[a+44>>2]=b;H[a+48>>2]=9;H[a+52>>2]=-2147483636;H[197455]=0;Mb(b,426020,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+56>>2]=3;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break hb}H[a+60>>2]=b;c=a- -64|0;H[c>>2]=9;H[c+4>>2]=-2147483636;H[197455]=0;Mb(b,426060,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+72>>2]=4;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break gb}H[a+76>>2]=b;H[a+80>>2]=5;H[a+84>>2]=-2147483640;H[197455]=0;Mb(b,426100,5);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+20>>2]=0;H[197455]=0;H[a+88>>2]=5;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break fb}H[a+92>>2]=b;H[a+96>>2]=9;H[a+100>>2]=-2147483636;H[197455]=0;Mb(b,426124,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+104>>2]=6;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break eb}H[a+108>>2]=b;H[a+112>>2]=9;H[a+116>>2]=-2147483636;H[197455]=0;Mb(b,426164,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+120>>2]=7;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break db}H[a+124>>2]=b;H[a+128>>2]=9;H[a+132>>2]=-2147483636;H[197455]=0;Mb(b,426204,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+136>>2]=8;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break cb}H[a+140>>2]=b;H[a+144>>2]=9;H[a+148>>2]=-2147483636;H[197455]=0;Mb(b,426244,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+152>>2]=9;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break bb}H[a+156>>2]=b;H[a+160>>2]=9;H[a+164>>2]=-2147483636;H[197455]=0;Mb(b,426284,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+168>>2]=10;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ab}H[a+172>>2]=b;H[a+176>>2]=9;H[a+180>>2]=-2147483636;H[197455]=0;Mb(b,426324,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+184>>2]=11;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break $a}H[a+188>>2]=b;H[a+192>>2]=9;H[a+196>>2]=-2147483636;H[197455]=0;Mb(b,426364,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+200>>2]=12;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break _a}H[a+204>>2]=b;H[a+208>>2]=9;H[a+212>>2]=-2147483636;H[197455]=0;Mb(b,426404,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+216>>2]=13;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Za}H[a+220>>2]=b;H[a+224>>2]=9;H[a+228>>2]=-2147483636;H[197455]=0;Mb(b,426444,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+232>>2]=14;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ya}H[a+236>>2]=b;H[a+240>>2]=9;H[a+244>>2]=-2147483636;H[197455]=0;Mb(b,426484,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+248>>2]=15;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Xa}H[a+252>>2]=b;H[a+256>>2]=9;H[a+260>>2]=-2147483636;H[197455]=0;Mb(b,426524,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+264>>2]=16;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Wa}H[a+268>>2]=b;H[a+272>>2]=9;H[a+276>>2]=-2147483636;H[197455]=0;Mb(b,426564,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+280>>2]=17;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Va}H[a+284>>2]=b;H[a+288>>2]=9;H[a+292>>2]=-2147483636;H[197455]=0;Mb(b,426604,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+296>>2]=18;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ua}H[a+300>>2]=b;H[a+304>>2]=14;H[a+308>>2]=-2147483632;H[197455]=0;Mb(b,426644,14);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+56>>2]=0;H[197455]=0;H[a+312>>2]=19;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ta}H[a+316>>2]=b;H[a+320>>2]=12;H[a+324>>2]=-2147483632;H[197455]=0;Mb(b,426704,12);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+48>>2]=0;H[197455]=0;H[a+328>>2]=20;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Sa}H[a+332>>2]=b;H[a+336>>2]=14;H[a+340>>2]=-2147483632;H[197455]=0;Mb(b,426756,14);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+56>>2]=0;H[197455]=0;H[a+344>>2]=21;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ra}H[a+348>>2]=b;H[a+352>>2]=12;H[a+356>>2]=-2147483632;H[197455]=0;Mb(b,426816,12);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+48>>2]=0;H[197455]=0;H[a+360>>2]=22;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Qa}H[a+364>>2]=b;H[a+368>>2]=13;H[a+372>>2]=-2147483632;H[197455]=0;Mb(b,426868,13);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+52>>2]=0;H[197455]=0;H[a+376>>2]=23;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Pa}H[a+380>>2]=b;H[a+384>>2]=11;H[a+388>>2]=-2147483636;H[197455]=0;Mb(b,426924,11);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+44>>2]=0;H[197455]=0;H[a+392>>2]=24;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Oa}H[a+396>>2]=b;H[a+400>>2]=10;H[a+404>>2]=-2147483636;H[197455]=0;Mb(b,426972,10);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+40>>2]=0;H[197455]=0;H[a+408>>2]=25;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Na}H[a+412>>2]=b;H[a+416>>2]=12;H[a+420>>2]=-2147483632;H[197455]=0;Mb(b,427016,12);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+48>>2]=0;H[197455]=0;H[a+424>>2]=26;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ma}H[a+428>>2]=b;H[a+432>>2]=9;H[a+436>>2]=-2147483636;H[197455]=0;Mb(b,427068,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+440>>2]=27;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break La}H[a+444>>2]=b;H[a+448>>2]=11;H[a+452>>2]=-2147483636;H[197455]=0;Mb(b,427108,11);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+44>>2]=0;H[197455]=0;H[a+456>>2]=28;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ka}H[a+460>>2]=b;H[a+464>>2]=10;H[a+468>>2]=-2147483636;H[197455]=0;Mb(b,427156,10);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+40>>2]=0;H[197455]=0;H[a+472>>2]=29;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ja}H[a+476>>2]=b;H[a+480>>2]=12;H[a+484>>2]=-2147483632;H[197455]=0;Mb(b,427200,12);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+48>>2]=0;H[197455]=0;H[a+488>>2]=30;b=aa(899,80)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ia}H[a+492>>2]=b;H[a+496>>2]=16;H[a+500>>2]=-2147483628;H[197455]=0;Mb(b,427252,16);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+64>>2]=0;H[197455]=0;H[a+504>>2]=31;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ha}H[a+508>>2]=b;H[a+512>>2]=14;H[a+516>>2]=-2147483632;H[197455]=0;Mb(b,427320,14);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+56>>2]=0;H[197455]=0;H[a+520>>2]=32;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ga}H[a+524>>2]=b;H[a+528>>2]=14;H[a+532>>2]=-2147483632;H[197455]=0;Mb(b,427380,14);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+56>>2]=0;H[197455]=0;H[a+536>>2]=33;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Fa}H[a+540>>2]=b;H[a+544>>2]=12;H[a+548>>2]=-2147483632;H[197455]=0;Mb(b,427440,12);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+48>>2]=0;H[197455]=0;H[a+552>>2]=34;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ea}H[a+556>>2]=b;H[a+560>>2]=13;H[a+564>>2]=-2147483632;H[197455]=0;Mb(b,427492,13);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+52>>2]=0;H[197455]=0;H[a+568>>2]=35;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Da}H[a+572>>2]=b;H[a+576>>2]=13;H[a+580>>2]=-2147483632;H[197455]=0;Mb(b,427548,13);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+52>>2]=0;H[197455]=0;H[a+584>>2]=36;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ca}H[a+588>>2]=b;H[a+592>>2]=6;H[a+596>>2]=-2147483640;H[197455]=0;Mb(b,427604,6);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+24>>2]=0;H[197455]=0;H[a+600>>2]=37;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Ba}H[a+604>>2]=b;H[a+608>>2]=4;H[a+612>>2]=-2147483640;H[197455]=0;Mb(b,427632,4);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+16>>2]=0;H[197455]=0;H[a+616>>2]=38;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Aa}H[a+620>>2]=b;H[a+624>>2]=9;H[a+628>>2]=-2147483636;H[197455]=0;Mb(b,427652,9);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+36>>2]=0;H[197455]=0;H[a+632>>2]=39;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break za}H[a+636>>2]=b;H[a+640>>2]=10;H[a+644>>2]=-2147483636;H[197455]=0;Mb(b,427692,10);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+40>>2]=0;H[197455]=0;H[a+648>>2]=40;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ya}H[a+652>>2]=b;H[a+656>>2]=5;H[a+660>>2]=-2147483640;H[197455]=0;Mb(b,427736,5);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+20>>2]=0;H[197455]=0;H[a+664>>2]=41;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break xa}H[a+668>>2]=b;H[a+672>>2]=5;H[a+676>>2]=-2147483640;H[197455]=0;Mb(b,427760,5);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+20>>2]=0;H[197455]=0;H[a+680>>2]=42;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break wa}H[a+684>>2]=b;H[a+688>>2]=5;H[a+692>>2]=-2147483640;H[197455]=0;Mb(b,427784,5);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+20>>2]=0;H[197455]=0;H[a+696>>2]=43;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break va}H[a+700>>2]=b;H[a+704>>2]=7;H[a+708>>2]=-2147483640;H[197455]=0;Mb(b,427808,7);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+28>>2]=0;H[197455]=0;H[a+712>>2]=44;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ua}H[a+716>>2]=b;H[a+720>>2]=10;H[a+724>>2]=-2147483636;H[197455]=0;Mb(b,427840,10);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+40>>2]=0;H[197455]=0;H[a+728>>2]=45;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ta}H[a+732>>2]=b;H[a+736>>2]=7;H[a+740>>2]=-2147483640;H[197455]=0;Mb(b,427884,7);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+28>>2]=0;H[197455]=0;H[a+744>>2]=46;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break sa}H[a+748>>2]=b;H[a+752>>2]=7;H[a+756>>2]=-2147483640;H[197455]=0;Mb(b,427916,7);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+28>>2]=0;H[197455]=0;H[a+760>>2]=47;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ra}H[a+764>>2]=b;H[a+768>>2]=6;H[a+772>>2]=-2147483640;H[197455]=0;Mb(b,427948,6);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+24>>2]=0;H[197455]=0;H[a+776>>2]=48;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break qa}H[a+780>>2]=b;H[a+784>>2]=5;H[a+788>>2]=-2147483640;H[197455]=0;Mb(b,427976,5);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+20>>2]=0;H[197455]=0;H[a+792>>2]=49;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break pa}H[a+796>>2]=b;H[a+800>>2]=13;H[a+804>>2]=-2147483632;H[197455]=0;Mb(b,428e3,13);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+52>>2]=0;H[197455]=0;H[a+808>>2]=50;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break oa}H[a+812>>2]=b;H[a+816>>2]=13;H[a+820>>2]=-2147483632;H[197455]=0;Mb(b,428056,13);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+52>>2]=0;H[197455]=0;H[a+824>>2]=51;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break na}H[a+828>>2]=b;H[a+832>>2]=15;H[a+836>>2]=-2147483632;H[197455]=0;Mb(b,428112,15);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+60>>2]=0;H[197455]=0;H[a+840>>2]=52;b=aa(899,64)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ma}H[a+844>>2]=b;H[a+848>>2]=12;H[a+852>>2]=-2147483632;H[197455]=0;Mb(b,428176,12);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[b+48>>2]=0;H[196977]=0;H[196978]=0;H[196976]=787908;b=a+856|0;c=a+8|0;while(1){H[197455]=0;wa(2947,a+856|0,787904,787908,c|0,c|0);d=H[197455];H[197455]=0;if((d|0)==1){break la}c=c+16|0;if((b|0)!=(c|0)){continue}break}while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}b=b-16|0;if((b|0)!=(a+8|0)){continue}break}xb=a+864|0;break ha}c=$()|0;_()|0;b=a+40|0;break ka}c=$()|0;_()|0;b=a+56|0;break ka}c=$()|0;_()|0;b=a+72|0;break ka}c=$()|0;_()|0;b=a+88|0;break ka}c=$()|0;_()|0;b=a+104|0;break ka}c=$()|0;_()|0;b=a+120|0;break ka}c=$()|0;_()|0;b=a+136|0;break ka}c=$()|0;_()|0;b=a+152|0;break ka}c=$()|0;_()|0;b=a+168|0;break ka}c=$()|0;_()|0;b=a+184|0;break ka}c=$()|0;_()|0;b=a+200|0;break ka}c=$()|0;_()|0;b=a+216|0;break ka}c=$()|0;_()|0;b=a+232|0;break ka}c=$()|0;_()|0;b=a+248|0;break ka}c=$()|0;_()|0;b=a+264|0;break ka}c=$()|0;_()|0;b=a+280|0;break ka}c=$()|0;_()|0;b=a+296|0;break ka}c=$()|0;_()|0;b=a+312|0;break ka}c=$()|0;_()|0;b=a+328|0;break ka}c=$()|0;_()|0;b=a+344|0;break ka}c=$()|0;_()|0;b=a+360|0;break ka}c=$()|0;_()|0;b=a+376|0;break ka}c=$()|0;_()|0;b=a+392|0;break ka}c=$()|0;_()|0;b=a+408|0;break ka}c=$()|0;_()|0;b=a+424|0;break ka}c=$()|0;_()|0;b=a+440|0;break ka}c=$()|0;_()|0;b=a+456|0;break ka}c=$()|0;_()|0;b=a+472|0;break ka}c=$()|0;_()|0;b=a+488|0;break ka}c=$()|0;_()|0;b=a+504|0;break ka}c=$()|0;_()|0;b=a+520|0;break ka}c=$()|0;_()|0;b=a+536|0;break ka}c=$()|0;_()|0;b=a+552|0;break ka}c=$()|0;_()|0;b=a+568|0;break ka}c=$()|0;_()|0;b=a+584|0;break ka}c=$()|0;_()|0;b=a+600|0;break ka}c=$()|0;_()|0;b=a+616|0;break ka}c=$()|0;_()|0;b=a+632|0;break ka}c=$()|0;_()|0;b=a+648|0;break ka}c=$()|0;_()|0;b=a+664|0;break ka}c=$()|0;_()|0;b=a+680|0;break ka}c=$()|0;_()|0;b=a+696|0;break ka}c=$()|0;_()|0;b=a+712|0;break ka}c=$()|0;_()|0;b=a+728|0;break ka}c=$()|0;_()|0;b=a+744|0;break ka}c=$()|0;_()|0;b=a+760|0;break ka}c=$()|0;_()|0;b=a+776|0;break ka}c=$()|0;_()|0;b=a+792|0;break ka}c=$()|0;_()|0;b=a+808|0;break ka}c=$()|0;_()|0;b=a+824|0;break ka}c=$()|0;_()|0;b=a+840|0;break ka}c=$()|0;_()|0;Gm(787904,H[196977]);break ja}c=$()|0;_()|0;b=a+24|0}}break c}}break b}F[787927]=0;H[196979]=0;F[787939]=1;H[197455]=0;Mb(787928,751996,1);b=H[197455];H[197455]=0;ib:{if((b|0)!=1){jb:{H[196983]=0;F[787951]=1;H[197455]=0;Mb(787940,752004,1);b=H[197455];H[197455]=0;if((b|0)==1){break jb}H[196986]=0;b=Qb(16);H[196988]=b;H[196989]=2;H[196990]=-2147483644;H[197455]=0;Mb(b,752012,2);a=H[197455];H[197455]=0;if((a|0)==1){break jb}H[b+8>>2]=0;b=Qb(16);H[196991]=b;H[196992]=2;H[196993]=-2147483644;H[197455]=0;Mb(b,752024,2);a=H[197455];H[197455]=0;if((a|0)==1){break jb}H[b+8>>2]=0;F[787987]=1;H[197455]=0;Mb(787976,752036,1);b=H[197455];H[197455]=0;if((b|0)==1){break jb}H[196995]=0;F[787999]=1;H[197455]=0;Mb(787988,752044,1);b=H[197455];H[197455]=0;if((b|0)==1){break jb}H[196998]=0;F[788011]=1;H[197455]=0;Mb(788e3,752052,1);b=H[197455];H[197455]=0;if((b|0)==1){break jb}H[197001]=0;b=Qb(32);H[197003]=b;H[197004]=4;H[197005]=-2147483640;H[197455]=0;Mb(b,752060,4);a=H[197455];H[197455]=0;if((a|0)==1){break jb}H[b+16>>2]=0;b=Qb(32);H[197006]=b;H[197007]=5;H[197008]=-2147483640;H[197455]=0;Mb(b,752080,5);a=H[197455];H[197455]=0;if((a|0)==1){break jb}H[b+20>>2]=0;F[788047]=1;H[197455]=0;Mb(788036,752104,1);b=H[197455];H[197455]=0;if((b|0)==1){break jb}H[197010]=0;F[788059]=1;H[197455]=0;Mb(788048,752112,1);b=H[197455];H[197455]=0;if((b|0)==1){break jb}H[197013]=0;break ib}}break b}F[788071]=0;H[197015]=0;H[197059]=788116;H[197041]=42;return}while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}b=b-16|0;if((b|0)!=(a+8|0)){continue}break}ea(c|0);X()}ha(0)|0;_()|0;Zb();X()}function NX(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=xb-160|0;xb=i;a:{b:{c:{d:{e:{f:{g:{h:{h=H[a+72>>2];if(!h){a=pe(i+136|0,428628,428676);h=H[b+4>>2];if(h>>>0>2]){if(F[a+11|0]>=0){e=H[i+140>>2];H[h>>2]=H[i+136>>2];H[h+4>>2]=e;H[h+8>>2]=H[i+144>>2];break h}e=H[a+4>>2];g=H[a>>2];H[197455]=0;ga(1647,h|0,g|0,e|0);e=H[197455];H[197455]=0;if((e|0)!=1){break h}break e}H[197455]=0;ba(1777,b|0,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){if(F[a+23|0]>=0){break g}Kb(H[a+12>>2]);break g}break d}i:{j:{k:{l:{if(!(zb[H[H[h>>2]+40>>2]](h)|0)){break l}h=H[a+72>>2];h=zb[H[H[h>>2]+40>>2]](h)|0;if(!h){break l}h=Oe(h,419276,419284,4);if(!h){break l}h=H[h+28>>2];if(!h){break l}h=h+4|0;break k}h=H[a+72>>2];h=zb[H[H[h>>2]+36>>2]](h)|0}e=zb[H[H[h>>2]+16>>2]](h)|0;if(!((e|0)!=1?h:0)){a=pe(i+136|0,428628,428676);h=H[b+4>>2];if(h>>>0>2]){if(F[a+11|0]>=0){e=H[i+140>>2];H[h>>2]=H[i+136>>2];H[h+4>>2]=e;H[h+8>>2]=H[i+144>>2];break j}e=H[a+4>>2];g=H[a>>2];H[197455]=0;ga(1647,h|0,g|0,e|0);e=H[197455];H[197455]=0;if((e|0)!=1){break j}break e}H[197455]=0;ba(1777,b|0,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){if(F[a+23|0]>=0){break i}Kb(H[a+12>>2]);break i}break d}m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{switch(e|0){case 0:a=i+32|0;Ol(a,zb[H[H[h>>2]+8>>2]](h)&255);H[197455]=0;a=ca(1758,a|0,0,428508)|0;e=H[197455];H[197455]=0;y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{if((e|0)!=1){H[i+56>>2]=H[a+8>>2];e=H[a+4>>2];H[i+48>>2]=H[a>>2];H[i+52>>2]=e;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;a=da(1699,i+48|0,428528)|0;e=H[197455];H[197455]=0;if((e|0)==1){break P}H[i+72>>2]=H[a+8>>2];e=H[a+4>>2];H[i+64>>2]=H[a>>2];H[i+68>>2]=e;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;a=H[H[h>>2]+8>>2];H[197455]=0;a=aa(a|0,h|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break O}H[197455]=0;ba(1778,i+16|0,a>>>8&255);a=H[197455];H[197455]=0;if((a|0)==1){break O}H[197455]=0;a=I[i+27|0];e=a<<24>>24<0;a=ca(1759,i- -64|0,(e?H[i+16>>2]:i+16|0)|0,(e?H[i+20>>2]:a)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break N}H[i+88>>2]=H[a+8>>2];e=H[a+4>>2];H[i+80>>2]=H[a>>2];H[i+84>>2]=e;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;a=da(1699,i+80|0,428528)|0;e=H[197455];H[197455]=0;if((e|0)==1){break M}H[i+104>>2]=H[a+8>>2];e=H[a+4>>2];H[i+96>>2]=H[a>>2];H[i+100>>2]=e;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;a=H[H[h>>2]+8>>2];H[197455]=0;a=aa(a|0,h|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break L}H[197455]=0;ba(1778,i|0,a>>>16&255);a=H[197455];H[197455]=0;if((a|0)==1){break L}H[197455]=0;a=I[i+11|0];e=a<<24>>24<0;a=ca(1759,i+96|0,(e?H[i>>2]:i)|0,(e?H[i+4>>2]:a)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break K}H[i+120>>2]=H[a+8>>2];e=H[a+4>>2];H[i+112>>2]=H[a>>2];H[i+116>>2]=e;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;a=da(1699,i+112|0,430648)|0;e=H[197455];H[197455]=0;if((e|0)==1){break J}g=H[a>>2];H[i+128>>2]=H[a+4>>2];e=I[a+7|0]|I[a+8|0]<<8|(I[a+9|0]<<16|I[a+10|0]<<24);F[i+131|0]=e;F[i+132|0]=e>>>8;F[i+133|0]=e>>>16;F[i+134|0]=e>>>24;H[a>>2]=0;H[a+4>>2]=0;e=F[a+11|0];H[a+8>>2]=0;H[197455]=0;a=aa(899,32)|0;f=H[197455];H[197455]=0;if((f|0)==1){break G}H[i+136>>2]=a;H[i+140>>2]=4;H[i+144>>2]=-2147483640;H[197455]=0;Mb(a,428628,4);f=H[197455];H[197455]=0;if((f|0)==1){break b}H[a+16>>2]=0;H[i+152>>2]=H[i+128>>2];a=I[i+131|0]|I[i+132|0]<<8|(I[i+133|0]<<16|I[i+134|0]<<24);F[i+155|0]=a;F[i+156|0]=a>>>8;F[i+157|0]=a>>>16;F[i+158|0]=a>>>24;H[i+148>>2]=g;F[i+159|0]=e;H[i+128>>2]=0;F[i+131|0]=0;F[i+132|0]=0;F[i+133|0]=0;F[i+134|0]=0;e=H[b+4>>2];if(e>>>0>2]){if(F[i+147|0]>=0){a=H[i+140>>2];H[e>>2]=H[i+136>>2];H[e+4>>2]=a;H[e+8>>2]=H[i+144>>2];break o}H[197455]=0;ga(1647,e|0,H[i+136>>2],H[i+140>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){break o}a=$()|0;_()|0;H[b+4>>2]=e;break H}H[197455]=0;ba(1777,b|0,i+136|0);a=H[197455];H[197455]=0;if((a|0)==1){break I}if(F[i+159|0]>=0){break n}Kb(H[i+148>>2]);break n}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;break D}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;_()|0}Vb(i+136|0);break F}a=$()|0;_()|0;if((e|0)>=0){break F}Kb(g)}if(F[i+123|0]>=0){break E}Kb(H[i+112>>2])}if(F[i+11|0]>=0){break D}Kb(H[i>>2])}if(F[i+107|0]>=0){break C}Kb(H[i+96>>2])}if(F[i+91|0]>=0){break B}Kb(H[i+80>>2])}if(F[i+27|0]>=0){break A}Kb(H[i+16>>2])}if(F[i+75|0]>=0){break z}Kb(H[i+64>>2])}if(F[i+59|0]>=0){break y}Kb(H[i+48>>2])}if(F[i+43|0]>=0){break m}Kb(H[i+32>>2]);break a;case 2:g=i+112|0;l=zb[H[H[h>>2]+24>>2]](h)|0;e=xb-224|0;xb=e;Q:{R:{S:{T:{U:{h=H[a+72>>2];if(h){if(zb[H[H[h>>2]+36>>2]](h)|0){break U}}H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;break T}h=H[a+72>>2];m=M[zb[H[H[h>>2]+68>>2]](h,2)>>3];h=H[a+72>>2];V:{if(!(zb[H[H[h>>2]+40>>2]](h)|0)){m=1/m;break V}h=H[a+72>>2];h=zb[H[H[h>>2]+40>>2]](h)|0;m=+zb[H[H[h>>2]+16>>2]](h);if(m!=0){m=P(m);if(m!=1){break V}m=1;h=H[a+72>>2];h=zb[H[H[h>>2]+40>>2]](h)|0;if(zb[H[H[h>>2]+12>>2]](h)&983040){break V}}h=H[a+72>>2];m=1/M[zb[H[H[h>>2]+68>>2]](h,2)>>3]}n=M[a+8>>3];W:{if(n==1.7976931348623157e308){break W}o=M[a+24>>3];if(o==2.2250738585072014e-308){break W}n=o-n;if(n==0){break W}o=M[a+40>>3];if(o==0){break W}m=m*(n/o)}h=e+112|0;f=H[a+72>>2];f=zb[H[H[f>>2]+36>>2]](f)|0;Ol(h,zb[H[H[f>>2]+8>>2]](f)&255);H[197455]=0;h=ca(1758,h|0,0,430876)|0;f=H[197455];H[197455]=0;X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{if((f|0)!=1){H[e+136>>2]=H[h+8>>2];f=H[h+4>>2];H[e+128>>2]=H[h>>2];H[e+132>>2]=f;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+128|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ma}H[e+152>>2]=H[h+8>>2];f=H[h+4>>2];H[e+144>>2]=H[h>>2];H[e+148>>2]=f;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;h=H[a+72>>2];f=H[H[h>>2]+36>>2];H[197455]=0;h=aa(f|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break La}f=H[H[h>>2]+8>>2];H[197455]=0;h=aa(f|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break La}H[197455]=0;ba(1778,e+96|0,h>>>8&255);h=H[197455];H[197455]=0;if((h|0)==1){break La}H[197455]=0;h=I[e+107|0];f=h<<24>>24<0;h=ca(1759,e+144|0,(f?H[e+96>>2]:e+96|0)|0,(f?H[e+100>>2]:h)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ka}H[e+168>>2]=H[h+8>>2];f=H[h+4>>2];H[e+160>>2]=H[h>>2];H[e+164>>2]=f;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+160|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ja}H[e+184>>2]=H[h+8>>2];f=H[h+4>>2];H[e+176>>2]=H[h>>2];H[e+180>>2]=f;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;h=H[a+72>>2];f=H[H[h>>2]+36>>2];H[197455]=0;h=aa(f|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ia}f=H[H[h>>2]+8>>2];H[197455]=0;h=aa(f|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ia}H[197455]=0;ba(1778,e+80|0,h>>>16&255);h=H[197455];H[197455]=0;if((h|0)==1){break Ia}H[197455]=0;h=I[e+91|0];f=h<<24>>24<0;h=ca(1759,e+176|0,(f?H[e+80>>2]:e+80|0)|0,(f?H[e+84>>2]:h)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ha}H[e+200>>2]=H[h+8>>2];f=H[h+4>>2];H[e+192>>2]=H[h>>2];H[e+196>>2]=f;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+192|0,430900)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ga}H[e+216>>2]=H[h+8>>2];f=H[h+4>>2];H[e+208>>2]=H[h>>2];H[e+212>>2]=f;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;h=H[a+72>>2];f=H[H[h>>2]+36>>2];H[197455]=0;h=aa(f|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Fa}f=H[H[h>>2]+28>>2];H[197455]=0;h=aa(f|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Fa}H[197455]=0;fa(1756,e- -64|0,+(h>>>0),0);h=H[197455];H[197455]=0;if((h|0)==1){break Fa}H[197455]=0;h=I[e+75|0];f=h<<24>>24<0;h=ca(1759,e+208|0,(f?H[e+64>>2]:e- -64|0)|0,(f?H[e+68>>2]:h)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ea}H[e+8>>2]=H[h+8>>2];f=H[h+4>>2];H[e>>2]=H[h>>2];H[e+4>>2]=f;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e|0,430648)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Da}f=H[h>>2];H[h>>2]=0;H[h+4>>2]=0;j=F[h+11|0];H[h+8>>2]=0;if(F[e+11|0]<0){Kb(H[e>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}H[e+216>>2]=0;H[e+208>>2]=0;H[e+212>>2]=0;h=H[a+72>>2];k=H[H[h>>2]+48>>2];H[197455]=0;h=aa(k|0,h|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break sa}Na:{if((h|0)==1){break Na}h=H[a+72>>2];k=H[H[h>>2]+52>>2];H[197455]=0;h=aa(k|0,h|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break ra}H[197455]=0;ba(1778,e+112|0,h&255);h=H[197455];H[197455]=0;if((h|0)==1){break ra}H[197455]=0;h=ca(1758,e+112|0,0,428508)|0;k=H[197455];H[197455]=0;if((k|0)==1){break qa}H[e+136>>2]=H[h+8>>2];k=H[h+4>>2];H[e+128>>2]=H[h>>2];H[e+132>>2]=k;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+128|0,428528)|0;k=H[197455];H[197455]=0;if((k|0)==1){break pa}H[e+152>>2]=H[h+8>>2];k=H[h+4>>2];H[e+144>>2]=H[h>>2];H[e+148>>2]=k;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;h=H[a+72>>2];k=H[H[h>>2]+52>>2];H[197455]=0;h=aa(k|0,h|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break oa}H[197455]=0;ba(1778,e+96|0,h>>>8&255);h=H[197455];H[197455]=0;if((h|0)==1){break oa}H[197455]=0;h=I[e+107|0];k=h<<24>>24<0;h=ca(1759,e+144|0,(k?H[e+96>>2]:e+96|0)|0,(k?H[e+100>>2]:h)|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break na}H[e+168>>2]=H[h+8>>2];k=H[h+4>>2];H[e+160>>2]=H[h>>2];H[e+164>>2]=k;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+160|0,428528)|0;k=H[197455];H[197455]=0;if((k|0)==1){break ma}H[e+184>>2]=H[h+8>>2];k=H[h+4>>2];H[e+176>>2]=H[h>>2];H[e+180>>2]=k;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;h=H[a+72>>2];k=H[H[h>>2]+52>>2];H[197455]=0;h=aa(k|0,h|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break la}H[197455]=0;ba(1778,e+80|0,h>>>16&255);h=H[197455];H[197455]=0;if((h|0)==1){break la}H[197455]=0;h=I[e+91|0];k=h<<24>>24<0;h=ca(1759,e+176|0,(k?H[e+80>>2]:e+80|0)|0,(k?H[e+84>>2]:h)|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break ka}H[e+200>>2]=H[h+8>>2];k=H[h+4>>2];H[e+192>>2]=H[h>>2];H[e+196>>2]=k;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+192|0,430648)|0;k=H[197455];H[197455]=0;if((k|0)==1){break ja}H[e+8>>2]=H[h+8>>2];k=H[h+4>>2];H[e>>2]=H[h>>2];H[e+4>>2]=k;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=I[e+11|0];k=h<<24>>24<0;ca(1759,e+208|0,(k?H[e>>2]:e)|0,(k?H[e+4>>2]:h)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break ia}if(F[e+11|0]<0){Kb(H[e>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+123|0]>=0){break Na}Kb(H[e+112>>2])}H[197455]=0;H[e+40>>2]=-1;H[e>>2]=-1;H[e+4>>2]=0;H[e+48>>2]=0;H[e+52>>2]=0;H[e+44>>2]=752128;H[e+56>>2]=0;H[e+60>>2]=0;h=H[197455];H[197455]=0;if((h|0)==1){break $}M[e+32>>3]=d;M[e+24>>3]=c;h=H[a+56>>2]+1|0;H[a+56>>2]=h;H[e+4>>2]=h;H[e>>2]=l;h=H[a+72>>2];l=H[H[h>>2]+36>>2];H[197455]=0;h=aa(l|0,h|0)|0;l=H[197455];H[197455]=0;Oa:{if((l|0)==1){break Oa}l=H[H[h>>2]+8>>2];H[197455]=0;l=aa(l|0,h|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break Oa}h=H[a+72>>2];k=H[H[h>>2]+36>>2];H[197455]=0;h=aa(k|0,h|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break Oa}k=H[H[h>>2]+28>>2];H[197455]=0;h=aa(k|0,h|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break Oa}F[e+20|0]=h;H[e+16>>2]=l;M[e+8>>3]=m;h=H[a+72>>2];l=H[H[h>>2]+48>>2];H[197455]=0;h=aa(l|0,h|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break Oa}if((h|0)!=1){h=H[a+72>>2];l=H[H[h>>2]+52>>2];H[197455]=0;h=aa(l|0,h|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break Oa}H[e+40>>2]=h}H[197455]=0;h=aa(2933,e|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break Oa}if(!h){break Y}H[197455]=0;ba(2934,e+192|0,e+44|0);h=H[197455];H[197455]=0;if((h|0)==1){break _}H[197455]=0;k=a+60|0;a=I[e+203|0];h=a<<24>>24<0;ca(1759,k|0,(h?H[e+192>>2]:e+192|0)|0,(h?H[e+196>>2]:a)|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break Z}if(F[e+203|0]<0){Kb(H[e+192>>2])}H[197455]=0;ba(2935,g|0,e|0);a=H[197455];H[197455]=0;if((a|0)!=1){break X}}a=$()|0;_()|0;break S}a=$()|0;_()|0;break ta}a=$()|0;_()|0;break ua}a=$()|0;_()|0;break va}a=$()|0;_()|0;break wa}a=$()|0;_()|0;break xa}a=$()|0;_()|0;break ya}a=$()|0;_()|0;break za}a=$()|0;_()|0;break Aa}a=$()|0;_()|0;break Ba}a=$()|0;_()|0;break Ca}a=$()|0;_()|0;if(F[e+11|0]>=0){break Ca}Kb(H[e>>2])}if(F[e+75|0]>=0){break Ba}Kb(H[e+64>>2])}if(F[e+219|0]>=0){break Aa}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break za}Kb(H[e+192>>2])}if(F[e+91|0]>=0){break ya}Kb(H[e+80>>2])}if(F[e+187|0]>=0){break xa}Kb(H[e+176>>2])}if(F[e+171|0]>=0){break wa}Kb(H[e+160>>2])}if(F[e+107|0]>=0){break va}Kb(H[e+96>>2])}if(F[e+155|0]>=0){break ua}Kb(H[e+144>>2])}if(F[e+139|0]>=0){break ta}Kb(H[e+128>>2])}if(F[e+123|0]>=0){break a}Kb(H[e+112>>2]);break a}a=$()|0;_()|0;break R}a=$()|0;_()|0;break R}a=$()|0;_()|0;break aa}a=$()|0;_()|0;break ba}a=$()|0;_()|0;break ca}a=$()|0;_()|0;break da}a=$()|0;_()|0;break ea}a=$()|0;_()|0;break fa}a=$()|0;_()|0;break ga}a=$()|0;_()|0;break ha}a=$()|0;_()|0;if(F[e+11|0]>=0){break ha}Kb(H[e>>2])}if(F[e+203|0]>=0){break ga}Kb(H[e+192>>2])}if(F[e+91|0]>=0){break fa}Kb(H[e+80>>2])}if(F[e+187|0]>=0){break ea}Kb(H[e+176>>2])}if(F[e+171|0]>=0){break da}Kb(H[e+160>>2])}if(F[e+107|0]>=0){break ca}Kb(H[e+96>>2])}if(F[e+155|0]>=0){break ba}Kb(H[e+144>>2])}if(F[e+139|0]>=0){break aa}Kb(H[e+128>>2])}if(F[e+123|0]>=0){break R}Kb(H[e+112>>2]);break R}a=$()|0;_()|0;break R}a=$()|0;_()|0;break S}a=$()|0;_()|0;if(F[e+203|0]>=0){break S}Kb(H[e+192>>2]);break S}H[a+56>>2]=H[a+56>>2]-1;H[g+8>>2]=0;H[g>>2]=0;H[g+4>>2]=0}yk(e+44|0);if(F[e+219|0]<0){Kb(H[e+208>>2])}if((j|0)>=0){break T}Kb(f)}xb=e+224|0;break Q}yk(e+44|0)}if(F[e+219|0]<0){Kb(H[e+208>>2])}if((j|0)>=0){break a}Kb(f);break a}h=I[i+123|0];a=h<<24>>24;if(!((a|0)<0?H[i+116>>2]:h)){break t}H[197455]=0;ga(1785,i+80|0,430708,i+112|0);a=H[197455];H[197455]=0;Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{if((a|0)!=1){H[197455]=0;a=da(1699,i+80|0,430648)|0;h=H[197455];H[197455]=0;if((h|0)==1){break Ua}H[i+104>>2]=H[a+8>>2];h=H[a+4>>2];H[i+96>>2]=H[a>>2];H[i+100>>2]=h;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;h=ca(2930,i+136|0,428628,i+96|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break Ta}H[197455]=0;ba(1792,b|0,h|0);a=H[197455];H[197455]=0;if((a|0)==1){break Sa}Vb(h);if(F[i+107|0]<0){Kb(H[i+96>>2])}if(F[i+91|0]<0){Kb(H[i+80>>2])}if(F[i+123|0]>=0){break f}Kb(H[i+112>>2]);break f}a=$()|0;_()|0;break Pa}a=$()|0;_()|0;break Qa}a=$()|0;_()|0;break Ra}a=$()|0;_()|0;Vb(h)}if(F[i+107|0]>=0){break Qa}Kb(H[i+96>>2])}if(F[i+91|0]>=0){break Pa}Kb(H[i+80>>2])}if(F[i+123|0]>=0){break m}break c;case 10:case 11:case 12:case 13:case 14:break v;case 3:break w;case 5:break x;default:break u}}e=xb-384|0;xb=e;Va:{if(!(H[a+72>>2]?h:0)){H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break Va}g=e+336|0;H[g>>2]=0;H[g+4>>2]=0;F[g+40|0]=0;H[g+32>>2]=0;H[g+36>>2]=-1074790400;F[g+21|0]=0;F[g+22|0]=0;F[g+23|0]=0;F[g+24|0]=0;F[g+25|0]=0;F[g+26|0]=0;F[g+27|0]=0;F[g+28|0]=0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[e+332>>2]=0;H[e+328>>2]=0;f=H[H[h>>2]+36>>2];H[197455]=0;ba(f|0,e+312|0,h|0);f=H[197455];H[197455]=0;Wa:{Xa:{Ya:{Za:{if((f|0)!=1){j=I[e+323|0];f=j<<24>>24;f=(f|0)<0;j=f?H[e+316>>2]:j;if(f){Kb(H[e+312>>2])}_a:{$a:{ab:{bb:{cb:{db:{eb:{if(!j){H[e+312>>2]=0;f=H[H[h>>2]+48>>2];H[197455]=0;ka(f|0,h|0,e+312|0,e+332|0,e+328|0);f=H[197455];H[197455]=0;if((f|0)==1){break Ya}f=H[e+312>>2];if(H[e+328>>2]?!f|!H[e+332>>2]:1){H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break Wa}H[197455]=0;H[g+16>>2]=f;f=H[197455];H[197455]=0;if((f|0)==1){break Ya}H[e+280>>2]=H[e+332>>2];H[197455]=0;H[g+4>>2]=H[e+280>>2];f=H[197455];H[197455]=0;fb:{if((f|0)!=1){H[197455]=0;H[e+280>>2]=H[e+328>>2];H[g+8>>2]=H[e+280>>2];f=H[197455];H[197455]=0;if((f|0)==1){break fb}H[197455]=0;H[e+280>>2]=H[e+332>>2]<<2;H[g+12>>2]=H[e+280>>2];f=H[197455];H[197455]=0;if((f|0)!=1){break eb}a=$()|0;_()|0;break Xa}a=$()|0;_()|0;break Xa}a=$()|0;_()|0;break Xa}f=H[H[h>>2]+36>>2];H[197455]=0;ba(f|0,e+312|0,h|0);f=H[197455];H[197455]=0;if((f|0)==1){break db}H[197455]=0;ca(2936,g|0,e+312|0,0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break cb}if(F[e+323|0]<0){Kb(H[e+312>>2])}H[197455]=0;f=H[g+4>>2];j=H[197455];H[197455]=0;if((j|0)==1){break bb}H[197455]=0;H[e+332>>2]=f;f=H[g+8>>2];j=H[197455];H[197455]=0;if((j|0)==1){break bb}H[e+328>>2]=f}H[e+308>>2]=0;H[e+320>>2]=0;H[197455]=0;H[e+312>>2]=0;H[e+316>>2]=0;la(945,g|0,e+308|0,e+304|0,4)|0;f=H[197455];H[197455]=0;if((f|0)==1){break $a}H[197455]=0;H[g+16>>2]=0;f=H[197455];H[197455]=0;if((f|0)==1){break $a}f=H[e+308>>2];if(f){j=H[e+304>>2];if(j){break ab}}H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break Za}a=$()|0;_()|0;break Xa}a=$()|0;_()|0;if(F[e+323|0]>=0){break Xa}Kb(H[e+312>>2]);break Xa}a=$()|0;_()|0;break Xa}H[e+300>>2]=0;H[197455]=0;H[e+296>>2]=0;pa(2937,f|0,j|0,e+300|0,e+296|0,2)|0;f=H[197455];H[197455]=0;gb:{if((f|0)!=1){f=H[e+308>>2];if(f){Kb(f)}if(H[e+296>>2]?H[e+300>>2]:0){break gb}H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break Za}a=$()|0;_()|0;break _a}f=H[a+56>>2]+1|0;H[a+56>>2]=f;H[197455]=0;fa(1756,e+264|0,+(f>>>0),0);f=H[197455];H[197455]=0;hb:{ib:{jb:{kb:{lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{Tb:{Ub:{if((f|0)!=1){H[197455]=0;f=ca(1758,e+264|0,0,430908)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Ub}H[e+288>>2]=H[f+8>>2];j=H[f+4>>2];H[e+280>>2]=H[f>>2];H[e+284>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+291|0];j=f<<24>>24<0;ca(1759,e+312|0,(j?H[e+280>>2]:e+280|0)|0,(j?H[e+284>>2]:f)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Tb}if(F[e+291|0]<0){Kb(H[e+280>>2])}if(F[e+275|0]<0){Kb(H[e+264>>2])}H[197455]=0;ka(2938,e+280|0,H[e+300>>2],H[e+296>>2],0);f=H[197455];H[197455]=0;if((f|0)==1){break Rb}f=H[a+72>>2];j=H[H[f>>2]+68>>2];H[197455]=0;f=da(j|0,f|0,2)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Qb}c=M[f>>3];f=H[a+72>>2];j=H[H[f>>2]+40>>2];H[197455]=0;f=aa(j|0,f|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Qb}Vb:{if(!f){c=1/c;break Vb}f=H[a+72>>2];j=H[H[f>>2]+40>>2];H[197455]=0;f=aa(j|0,f|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Qb}j=H[H[f>>2]+16>>2];H[197455]=0;c=+za(j|0,f|0);f=H[197455];H[197455]=0;if((f|0)==1){break Qb}if(c!=0){c=P(c);if(c!=1){break Vb}f=H[a+72>>2];j=H[H[f>>2]+40>>2];H[197455]=0;f=aa(j|0,f|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Qb}j=H[H[f>>2]+12>>2];H[197455]=0;f=aa(j|0,f|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Qb}c=1;if(f&983040){break Vb}}f=H[a+72>>2];j=H[H[f>>2]+68>>2];H[197455]=0;f=da(j|0,f|0,2)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Qb}c=1/M[f>>3]}d=M[a+8>>3];Wb:{if(d==1.7976931348623157e308){break Wb}m=M[a+24>>3];if(m==2.2250738585072014e-308){break Wb}d=m-d;if(d==0){break Wb}m=M[a+40>>3];if(m==0){break Wb}c=c*(d/m)}H[197455]=0;fa(1756,e+264|0,+(c*+K[e+332>>2]),-1);f=H[197455];H[197455]=0;if((f|0)==1){break Pb}H[197455]=0;fa(1756,e+248|0,+(c*+K[e+328>>2]),-1);f=H[197455];H[197455]=0;if((f|0)==1){break Ob}H[197455]=0;ga(1785,e+8|0,430956,e+312|0);f=H[197455];H[197455]=0;if((f|0)==1){break Nb}H[197455]=0;f=da(1699,e+8|0,428380)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Mb}H[e+32>>2]=H[f+8>>2];j=H[f+4>>2];H[e+24>>2]=H[f>>2];H[e+28>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+24|0,428392)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Lb}H[e+48>>2]=H[f+8>>2];j=H[f+4>>2];H[e+40>>2]=H[f>>2];H[e+44>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+275|0];j=f<<24>>24<0;f=ca(1759,e+40|0,(j?H[e+264>>2]:e+264|0)|0,(j?H[e+268>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Kb}H[e- -64>>2]=H[f+8>>2];j=H[f+4>>2];H[e+56>>2]=H[f>>2];H[e+60>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+56|0,428424)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Jb}H[e+80>>2]=H[f+8>>2];j=H[f+4>>2];H[e+72>>2]=H[f>>2];H[e+76>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+259|0];j=f<<24>>24<0;f=ca(1759,e+72|0,(j?H[e+248>>2]:e+248|0)|0,(j?H[e+252>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Ib}H[e+96>>2]=H[f+8>>2];j=H[f+4>>2];H[e+88>>2]=H[f>>2];H[e+92>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+88|0,431012)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Hb}H[e+112>>2]=H[f+8>>2];j=H[f+4>>2];H[e+104>>2]=H[f>>2];H[e+108>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+104|0,431144)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Gb}H[e+128>>2]=H[f+8>>2];j=H[f+4>>2];H[e+120>>2]=H[f>>2];H[e+124>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+291|0];j=f<<24>>24<0;f=ca(1759,e+120|0,(j?H[e+280>>2]:e+280|0)|0,(j?H[e+284>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Fb}H[e+144>>2]=H[f+8>>2];j=H[f+4>>2];H[e+136>>2]=H[f>>2];H[e+140>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+136|0,431312)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Eb}H[e+160>>2]=H[f+8>>2];j=H[f+4>>2];H[e+152>>2]=H[f>>2];H[e+156>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+275|0];j=f<<24>>24<0;f=ca(1759,e+152|0,(j?H[e+264>>2]:e+264|0)|0,(j?H[e+268>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Db}H[e+176>>2]=H[f+8>>2];j=H[f+4>>2];H[e+168>>2]=H[f>>2];H[e+172>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+168|0,428424)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Cb}H[e+192>>2]=H[f+8>>2];j=H[f+4>>2];H[e+184>>2]=H[f>>2];H[e+188>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+259|0];j=f<<24>>24<0;f=ca(1759,e+184|0,(j?H[e+248>>2]:e+248|0)|0,(j?H[e+252>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Bb}H[e+208>>2]=H[f+8>>2];j=H[f+4>>2];H[e+200>>2]=H[f>>2];H[e+204>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+200|0,429784)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Ab}H[e+224>>2]=H[f+8>>2];j=H[f+4>>2];H[e+216>>2]=H[f>>2];H[e+220>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+216|0,431400)|0;j=H[197455];H[197455]=0;if((j|0)==1){break zb}H[e+240>>2]=H[f+8>>2];j=H[f+4>>2];H[e+232>>2]=H[f>>2];H[e+236>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+243|0];j=f<<24>>24<0;ca(1759,a+60|0,(j?H[e+232>>2]:e+232|0)|0,(j?H[e+236>>2]:f)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break yb}if(F[e+243|0]<0){Kb(H[e+232>>2])}if(F[e+227|0]<0){Kb(H[e+216>>2])}if(F[e+211|0]<0){Kb(H[e+200>>2])}if(F[e+195|0]<0){Kb(H[e+184>>2])}if(F[e+179|0]<0){Kb(H[e+168>>2])}if(F[e+163|0]<0){Kb(H[e+152>>2])}if(F[e+147|0]<0){Kb(H[e+136>>2])}if(F[e+131|0]<0){Kb(H[e+120>>2])}if(F[e+115|0]<0){Kb(H[e+104>>2])}if(F[e+99|0]<0){Kb(H[e+88>>2])}if(F[e+83|0]<0){Kb(H[e+72>>2])}if(F[e+67|0]<0){Kb(H[e+56>>2])}if(F[e+51|0]<0){Kb(H[e+40>>2])}if(F[e+35|0]<0){Kb(H[e+24>>2])}if(F[e+19|0]<0){Kb(H[e+8>>2])}f=H[e+300>>2];if(f){Kb(f)}f=H[e+316>>2];H[i+112>>2]=H[e+312>>2];H[i+116>>2]=f;H[i+120>>2]=H[e+320>>2];H[e+320>>2]=0;H[e+312>>2]=0;H[e+316>>2]=0;if(F[e+259|0]<0){Kb(H[e+248>>2])}if(F[e+275|0]<0){Kb(H[e+264>>2])}if(F[e+291|0]>=0){break Za}Kb(H[e+280>>2]);break Za}a=$()|0;_()|0;break _a}a=$()|0;_()|0;break Sb}a=$()|0;_()|0;if(F[e+291|0]>=0){break Sb}Kb(H[e+280>>2])}if(F[e+275|0]>=0){break _a}Kb(H[e+264>>2]);break _a}a=$()|0;_()|0;break _a}a=$()|0;_()|0;break hb}a=$()|0;_()|0;break hb}a=$()|0;_()|0;break ib}a=$()|0;_()|0;break jb}a=$()|0;_()|0;break kb}a=$()|0;_()|0;break lb}a=$()|0;_()|0;break mb}a=$()|0;_()|0;break nb}a=$()|0;_()|0;break ob}a=$()|0;_()|0;break pb}a=$()|0;_()|0;break qb}a=$()|0;_()|0;break rb}a=$()|0;_()|0;break sb}a=$()|0;_()|0;break tb}a=$()|0;_()|0;break ub}a=$()|0;_()|0;break vb}a=$()|0;_()|0;break wb}a=$()|0;_()|0;break xb}a=$()|0;_()|0;if(F[e+243|0]>=0){break xb}Kb(H[e+232>>2])}if(F[e+227|0]>=0){break wb}Kb(H[e+216>>2])}if(F[e+211|0]>=0){break vb}Kb(H[e+200>>2])}if(F[e+195|0]>=0){break ub}Kb(H[e+184>>2])}if(F[e+179|0]>=0){break tb}Kb(H[e+168>>2])}if(F[e+163|0]>=0){break sb}Kb(H[e+152>>2])}if(F[e+147|0]>=0){break rb}Kb(H[e+136>>2])}if(F[e+131|0]>=0){break qb}Kb(H[e+120>>2])}if(F[e+115|0]>=0){break pb}Kb(H[e+104>>2])}if(F[e+99|0]>=0){break ob}Kb(H[e+88>>2])}if(F[e+83|0]>=0){break nb}Kb(H[e+72>>2])}if(F[e+67|0]>=0){break mb}Kb(H[e+56>>2])}if(F[e+51|0]>=0){break lb}Kb(H[e+40>>2])}if(F[e+35|0]>=0){break kb}Kb(H[e+24>>2])}if(F[e+19|0]>=0){break jb}Kb(H[e+8>>2])}if(F[e+259|0]>=0){break ib}Kb(H[e+248>>2])}if(F[e+275|0]>=0){break hb}Kb(H[e+264>>2])}if(F[e+291|0]>=0){break _a}Kb(H[e+280>>2]);break _a}a=$()|0;_()|0}if(F[e+323|0]>=0){break Xa}Kb(H[e+312>>2]);break Xa}a=$()|0;_()|0;break Xa}if(F[e+323|0]>=0){break Wa}Kb(H[e+312>>2]);break Wa}a=$()|0;_()|0}id(g);break a}id(g)}xb=e+384|0;g=I[i+123|0];e=g<<24>>24;if((e|0)<0?H[i+116>>2]:g){H[197455]=0;ga(1785,i+80|0,430708,i+112|0);a=H[197455];H[197455]=0;Xb:{Yb:{Zb:{_b:{$b:{ac:{if((a|0)!=1){H[197455]=0;a=da(1699,i+80|0,430648)|0;h=H[197455];H[197455]=0;if((h|0)==1){break ac}H[i+104>>2]=H[a+8>>2];h=H[a+4>>2];H[i+96>>2]=H[a>>2];H[i+100>>2]=h;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;h=ca(2930,i+136|0,428628,i+96|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break $b}H[197455]=0;ba(1792,b|0,h|0);a=H[197455];H[197455]=0;if((a|0)==1){break _b}Vb(h);if(F[i+107|0]<0){Kb(H[i+96>>2])}if(F[i+91|0]<0){Kb(H[i+80>>2])}if(F[i+123|0]>=0){break f}Kb(H[i+112>>2]);break f}a=$()|0;_()|0;break Xb}a=$()|0;_()|0;break Yb}a=$()|0;_()|0;break Zb}a=$()|0;_()|0;Vb(h)}if(F[i+107|0]>=0){break Yb}Kb(H[i+96>>2])}if(F[i+91|0]>=0){break Xb}Kb(H[i+80>>2])}if(F[i+123|0]>=0){break m}break c}if((e|0)>=0){break w}Kb(H[i+112>>2])}e=xb-384|0;xb=e;bc:{if(!(H[a+72>>2]?h:0)){H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break bc}zb[H[H[h>>2]+36>>2]](e+368|0,h);f=I[e+379|0];g=f<<24>>24;cc:{if(!((g|0)<0?H[e+372>>2]:f)){H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break cc}H[197455]=0;g=e+320|0;H[g>>2]=0;H[g+4>>2]=0;F[g+40|0]=0;H[g+32>>2]=0;H[g+36>>2]=-1074790400;F[g+21|0]=0;F[g+22|0]=0;F[g+23|0]=0;F[g+24|0]=0;F[g+25|0]=0;F[g+26|0]=0;F[g+27|0]=0;F[g+28|0]=0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;f=H[197455];H[197455]=0;dc:{ec:{fc:{gc:{hc:{ic:{jc:{if((f|0)!=1){H[197455]=0;ca(2936,g|0,e+368|0,0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break jc}H[e+316>>2]=0;H[e+304>>2]=0;H[197455]=0;H[e+296>>2]=0;H[e+300>>2]=0;la(945,g|0,e+316|0,e+312|0,4)|0;f=H[197455];H[197455]=0;if((f|0)==1){break hc}f=H[e+316>>2];if(f){j=H[e+312>>2];if(j){break ic}}H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break dc}a=$()|0;_()|0;break ec}a=$()|0;_()|0;break fc}H[e+292>>2]=0;H[197455]=0;H[e+288>>2]=0;pa(2937,f|0,j|0,e+292|0,e+288|0,2)|0;f=H[197455];H[197455]=0;kc:{if((f|0)!=1){f=H[e+316>>2];if(f){Kb(f)}if(H[e+288>>2]?H[e+292>>2]:0){break kc}H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break dc}a=$()|0;_()|0;break gc}f=H[a+56>>2]+1|0;H[a+56>>2]=f;H[197455]=0;fa(1756,e+256|0,+(f>>>0),0);f=H[197455];H[197455]=0;lc:{mc:{nc:{oc:{pc:{qc:{rc:{sc:{tc:{uc:{vc:{wc:{xc:{yc:{zc:{Ac:{Bc:{Cc:{Dc:{Ec:{Fc:{Gc:{Hc:{Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{if((f|0)!=1){H[197455]=0;f=ca(1758,e+256|0,0,431448)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Xc}H[e+280>>2]=H[f+8>>2];j=H[f+4>>2];H[e+272>>2]=H[f>>2];H[e+276>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+283|0];j=f<<24>>24<0;ca(1759,e+296|0,(j?H[e+272>>2]:e+272|0)|0,(j?H[e+276>>2]:f)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Wc}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}H[197455]=0;ka(2938,e+272|0,H[e+292>>2],H[e+288>>2],0);f=H[197455];H[197455]=0;if((f|0)==1){break Uc}H[197455]=0;f=H[g+4>>2];j=H[197455];H[197455]=0;if((j|0)==1){break Tc}H[197455]=0;fa(1756,e+256|0,+(f|0),-1);f=H[197455];H[197455]=0;if((f|0)==1){break Tc}H[197455]=0;f=H[g+8>>2];j=H[197455];H[197455]=0;if((j|0)==1){break Sc}H[197455]=0;fa(1756,e+240|0,+(f|0),-1);f=H[197455];H[197455]=0;if((f|0)==1){break Sc}H[197455]=0;ga(1785,e|0,430956,e+296|0);f=H[197455];H[197455]=0;if((f|0)==1){break Rc}H[197455]=0;f=da(1699,e|0,428380)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Qc}H[e+24>>2]=H[f+8>>2];j=H[f+4>>2];H[e+16>>2]=H[f>>2];H[e+20>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+16|0,428392)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Pc}H[e+40>>2]=H[f+8>>2];j=H[f+4>>2];H[e+32>>2]=H[f>>2];H[e+36>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+267|0];j=f<<24>>24<0;f=ca(1759,e+32|0,(j?H[e+256>>2]:e+256|0)|0,(j?H[e+260>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Oc}H[e+56>>2]=H[f+8>>2];j=H[f+4>>2];H[e+48>>2]=H[f>>2];H[e+52>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+48|0,428424)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Nc}H[e+72>>2]=H[f+8>>2];j=H[f+4>>2];H[e+64>>2]=H[f>>2];H[e+68>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+251|0];j=f<<24>>24<0;f=ca(1759,e- -64|0,(j?H[e+240>>2]:e+240|0)|0,(j?H[e+244>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Mc}H[e+88>>2]=H[f+8>>2];j=H[f+4>>2];H[e+80>>2]=H[f>>2];H[e+84>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+80|0,431484)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Lc}H[e+104>>2]=H[f+8>>2];j=H[f+4>>2];H[e+96>>2]=H[f>>2];H[e+100>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+96|0,431144)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Kc}H[e+120>>2]=H[f+8>>2];j=H[f+4>>2];H[e+112>>2]=H[f>>2];H[e+116>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+283|0];j=f<<24>>24<0;f=ca(1759,e+112|0,(j?H[e+272>>2]:e+272|0)|0,(j?H[e+276>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Jc}H[e+136>>2]=H[f+8>>2];j=H[f+4>>2];H[e+128>>2]=H[f>>2];H[e+132>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+128|0,431312)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Ic}H[e+152>>2]=H[f+8>>2];j=H[f+4>>2];H[e+144>>2]=H[f>>2];H[e+148>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+267|0];j=f<<24>>24<0;f=ca(1759,e+144|0,(j?H[e+256>>2]:e+256|0)|0,(j?H[e+260>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Hc}H[e+168>>2]=H[f+8>>2];j=H[f+4>>2];H[e+160>>2]=H[f>>2];H[e+164>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+160|0,428424)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Gc}H[e+184>>2]=H[f+8>>2];j=H[f+4>>2];H[e+176>>2]=H[f>>2];H[e+180>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+251|0];j=f<<24>>24<0;f=ca(1759,e+176|0,(j?H[e+240>>2]:e+240|0)|0,(j?H[e+244>>2]:f)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Fc}H[e+200>>2]=H[f+8>>2];j=H[f+4>>2];H[e+192>>2]=H[f>>2];H[e+196>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+192|0,429784)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Ec}H[e+216>>2]=H[f+8>>2];j=H[f+4>>2];H[e+208>>2]=H[f>>2];H[e+212>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=da(1699,e+208|0,431400)|0;j=H[197455];H[197455]=0;if((j|0)==1){break Dc}H[e+232>>2]=H[f+8>>2];j=H[f+4>>2];H[e+224>>2]=H[f>>2];H[e+228>>2]=j;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;f=I[e+235|0];j=f<<24>>24<0;ca(1759,a+60|0,(j?H[e+224>>2]:e+224|0)|0,(j?H[e+228>>2]:f)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Cc}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+59|0]<0){Kb(H[e+48>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+11|0]<0){Kb(H[e>>2])}f=H[e+292>>2];if(f){Kb(f)}f=H[e+300>>2];H[i+112>>2]=H[e+296>>2];H[i+116>>2]=f;H[i+120>>2]=H[e+304>>2];H[e+304>>2]=0;H[e+296>>2]=0;H[e+300>>2]=0;if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+283|0]>=0){break dc}Kb(H[e+272>>2]);break dc}a=$()|0;_()|0;break gc}a=$()|0;_()|0;break Vc}a=$()|0;_()|0;if(F[e+283|0]>=0){break Vc}Kb(H[e+272>>2])}if(F[e+267|0]>=0){break gc}Kb(H[e+256>>2]);break gc}a=$()|0;_()|0;break gc}a=$()|0;_()|0;break lc}a=$()|0;_()|0;break mc}a=$()|0;_()|0;break nc}a=$()|0;_()|0;break oc}a=$()|0;_()|0;break pc}a=$()|0;_()|0;break qc}a=$()|0;_()|0;break rc}a=$()|0;_()|0;break sc}a=$()|0;_()|0;break tc}a=$()|0;_()|0;break uc}a=$()|0;_()|0;break vc}a=$()|0;_()|0;break wc}a=$()|0;_()|0;break xc}a=$()|0;_()|0;break yc}a=$()|0;_()|0;break zc}a=$()|0;_()|0;break Ac}a=$()|0;_()|0;break Bc}a=$()|0;_()|0;if(F[e+235|0]>=0){break Bc}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break Ac}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break zc}Kb(H[e+192>>2])}if(F[e+187|0]>=0){break yc}Kb(H[e+176>>2])}if(F[e+171|0]>=0){break xc}Kb(H[e+160>>2])}if(F[e+155|0]>=0){break wc}Kb(H[e+144>>2])}if(F[e+139|0]>=0){break vc}Kb(H[e+128>>2])}if(F[e+123|0]>=0){break uc}Kb(H[e+112>>2])}if(F[e+107|0]>=0){break tc}Kb(H[e+96>>2])}if(F[e+91|0]>=0){break sc}Kb(H[e+80>>2])}if(F[e+75|0]>=0){break rc}Kb(H[e+64>>2])}if(F[e+59|0]>=0){break qc}Kb(H[e+48>>2])}if(F[e+43|0]>=0){break pc}Kb(H[e+32>>2])}if(F[e+27|0]>=0){break oc}Kb(H[e+16>>2])}if(F[e+11|0]>=0){break nc}Kb(H[e>>2])}if(F[e+251|0]>=0){break mc}Kb(H[e+240>>2])}if(F[e+267|0]>=0){break lc}Kb(H[e+256>>2])}if(F[e+283|0]>=0){break gc}Kb(H[e+272>>2]);break gc}a=$()|0;_()|0}if(F[e+307|0]>=0){break fc}Kb(H[e+296>>2])}id(g)}if(F[e+379|0]<0){Kb(H[e+368>>2])}break a}if(F[e+307|0]<0){Kb(H[e+296>>2])}id(g);g=F[e+379|0]}if((g|0)>=0){break bc}Kb(H[e+368>>2])}xb=e+384|0;g=I[i+123|0];e=g<<24>>24;if((e|0)<0?H[i+116>>2]:g){H[197455]=0;ga(1785,i+96|0,430708,i+112|0);a=H[197455];H[197455]=0;Yc:{Zc:{_c:{$c:{ad:{bd:{if((a|0)!=1){H[197455]=0;a=da(1699,i+96|0,430648)|0;h=H[197455];H[197455]=0;if((h|0)==1){break bd}e=H[a>>2];H[i+80>>2]=H[a+4>>2];h=I[a+7|0]|I[a+8|0]<<8|(I[a+9|0]<<16|I[a+10|0]<<24);F[i+83|0]=h;F[i+84|0]=h>>>8;F[i+85|0]=h>>>16;F[i+86|0]=h>>>24;H[a>>2]=0;H[a+4>>2]=0;g=F[a+11|0];H[a+8>>2]=0;H[197455]=0;a=aa(899,32)|0;h=H[197455];H[197455]=0;if((h|0)==1){break _c}H[i+136>>2]=a;H[i+140>>2]=4;H[i+144>>2]=-2147483640;H[197455]=0;Mb(a,428628,4);h=H[197455];H[197455]=0;if((h|0)==1){break b}H[a+16>>2]=0;h=I[i+83|0]|I[i+84|0]<<8|(I[i+85|0]<<16|I[i+86|0]<<24);F[i+155|0]=h;F[i+156|0]=h>>>8;F[i+157|0]=h>>>16;F[i+158|0]=h>>>24;H[i+152>>2]=H[i+80>>2];H[i+148>>2]=e;F[i+159|0]=g;h=H[b+4>>2];cd:{if(h>>>0>2]){H[197455]=0;ga(1647,h|0,a|0,4);a=H[197455];H[197455]=0;if((a|0)==1){a=$()|0;_()|0;H[b+4>>2]=h;break $c}a=H[i+152>>2];H[h+12>>2]=H[i+148>>2];H[h+16>>2]=a;H[h+20>>2]=H[i+156>>2];H[i+148>>2]=0;H[i+152>>2]=0;H[i+156>>2]=0;H[b+4>>2]=h+24;break cd}H[197455]=0;ba(1777,b|0,i+136|0);a=H[197455];H[197455]=0;if((a|0)==1){break ad}if(F[i+159|0]>=0){break cd}Kb(H[i+148>>2])}if(F[i+147|0]<0){Kb(H[i+136>>2])}if(F[i+107|0]<0){Kb(H[i+96>>2])}if(F[i+123|0]>=0){break f}Kb(H[i+112>>2]);break f}a=$()|0;_()|0;break Yc}a=$()|0;_()|0;break Zc}a=$()|0;_()|0}Vb(i+136|0);break Zc}a=$()|0;_()|0;if((g|0)>=0){break Zc}Kb(e)}if(F[i+107|0]>=0){break Yc}Kb(H[i+96>>2])}if(F[i+123|0]>=0){break m}break c}if((e|0)>=0){break v}Kb(H[i+112>>2])}e=xb-448|0;xb=e;dd:{if(!h){H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0;break dd}H[e+440>>2]=0;H[e+432>>2]=0;H[e+436>>2]=0;g=H[H[h>>2]+16>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;ed:{fd:{if((f|0)==1){break fd}gd:{hd:{id:{if((g|0)==10){break id}g=H[H[h>>2]+16>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break fd}if((g|0)==13){break id}g=H[H[h>>2]+16>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break fd}if((g|0)!=14){break hd}}g=H[a+56>>2]+1|0;H[a+56>>2]=g;H[197455]=0;fa(1756,e+416|0,+(g>>>0),0);g=H[197455];H[197455]=0;jd:{kd:{ld:{md:{nd:{od:{pd:{qd:{rd:{sd:{td:{ud:{vd:{wd:{xd:{yd:{zd:{Ad:{Bd:{Cd:{Dd:{Ed:{Fd:{Gd:{Hd:{Id:{Jd:{Kd:{Ld:{Md:{Nd:{Od:{Pd:{Qd:{Rd:{Sd:{Td:{Ud:{Vd:{Wd:{Xd:{Yd:{Zd:{_d:{$d:{ae:{be:{if((g|0)!=1){H[197455]=0;g=ca(1758,e+416|0,0,431496)|0;f=H[197455];H[197455]=0;if((f|0)==1){break be}j=H[g>>2];H[e+400>>2]=H[g+4>>2];f=I[g+7|0]|I[g+8|0]<<8|(I[g+9|0]<<16|I[g+10|0]<<24);F[e+403|0]=f;F[e+404|0]=f>>>8;F[e+405|0]=f>>>16;F[e+406|0]=f>>>24;H[g>>2]=0;H[g+4>>2]=0;f=I[g+11|0];H[g+8>>2]=0;if(F[e+443|0]<0){Kb(H[e+432>>2])}H[e+432>>2]=j;H[e+436>>2]=H[e+400>>2];g=I[e+403|0]|I[e+404|0]<<8|(I[e+405|0]<<16|I[e+406|0]<<24);F[e+439|0]=g;F[e+440|0]=g>>>8;F[e+441|0]=g>>>16;F[e+442|0]=g>>>24;F[e+443|0]=f;if(F[e+427|0]<0){Kb(H[e+416>>2])}H[197455]=0;ga(1785,e+160|0,431560,e+432|0);g=H[197455];H[197455]=0;if((g|0)==1){break ae}H[197455]=0;g=da(1699,e+160|0,431484)|0;f=H[197455];H[197455]=0;if((f|0)==1){break $d}H[e+184>>2]=H[g+8>>2];f=H[g+4>>2];H[e+176>>2]=H[g>>2];H[e+180>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+176|0,431644)|0;f=H[197455];H[197455]=0;if((f|0)==1){break _d}H[e+200>>2]=H[g+8>>2];f=H[g+4>>2];H[e+192>>2]=H[g>>2];H[e+196>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+8>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Zd}H[197455]=0;ba(1778,e+144|0,g&255);g=H[197455];H[197455]=0;if((g|0)==1){break Zd}H[197455]=0;g=I[e+155|0];f=g<<24>>24<0;g=ca(1759,e+192|0,(f?H[e+144>>2]:e+144|0)|0,(f?H[e+148>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Yd}H[e+216>>2]=H[g+8>>2];f=H[g+4>>2];H[e+208>>2]=H[g>>2];H[e+212>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+208|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Xd}H[e+232>>2]=H[g+8>>2];f=H[g+4>>2];H[e+224>>2]=H[g>>2];H[e+228>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+8>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Wd}H[197455]=0;ba(1778,e+128|0,g>>>8&255);g=H[197455];H[197455]=0;if((g|0)==1){break Wd}H[197455]=0;g=I[e+139|0];f=g<<24>>24<0;g=ca(1759,e+224|0,(f?H[e+128>>2]:e+128|0)|0,(f?H[e+132>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Vd}H[e+248>>2]=H[g+8>>2];f=H[g+4>>2];H[e+240>>2]=H[g>>2];H[e+244>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+240|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ud}H[e+264>>2]=H[g+8>>2];f=H[g+4>>2];H[e+256>>2]=H[g>>2];H[e+260>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+8>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Td}H[197455]=0;ba(1778,e+112|0,g>>>16&255);g=H[197455];H[197455]=0;if((g|0)==1){break Td}H[197455]=0;g=I[e+123|0];f=g<<24>>24<0;g=ca(1759,e+256|0,(f?H[e+112>>2]:e+112|0)|0,(f?H[e+116>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Sd}H[e+280>>2]=H[g+8>>2];f=H[g+4>>2];H[e+272>>2]=H[g>>2];H[e+276>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+272|0,431784)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Rd}H[e+296>>2]=H[g+8>>2];f=H[g+4>>2];H[e+288>>2]=H[g>>2];H[e+292>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+288|0,431804)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Qd}H[e+312>>2]=H[g+8>>2];f=H[g+4>>2];H[e+304>>2]=H[g>>2];H[e+308>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+12>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Pd}H[197455]=0;ba(1778,e+96|0,g&255);g=H[197455];H[197455]=0;if((g|0)==1){break Pd}H[197455]=0;g=I[e+107|0];f=g<<24>>24<0;g=ca(1759,e+304|0,(f?H[e+96>>2]:e+96|0)|0,(f?H[e+100>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Od}H[e+328>>2]=H[g+8>>2];f=H[g+4>>2];H[e+320>>2]=H[g>>2];H[e+324>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+320|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Nd}H[e+344>>2]=H[g+8>>2];f=H[g+4>>2];H[e+336>>2]=H[g>>2];H[e+340>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+12>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Md}H[197455]=0;ba(1778,e+80|0,g>>>8&255);g=H[197455];H[197455]=0;if((g|0)==1){break Md}H[197455]=0;g=I[e+91|0];f=g<<24>>24<0;g=ca(1759,e+336|0,(f?H[e+80>>2]:e+80|0)|0,(f?H[e+84>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ld}H[e+360>>2]=H[g+8>>2];f=H[g+4>>2];H[e+352>>2]=H[g>>2];H[e+356>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+352|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Kd}H[e+376>>2]=H[g+8>>2];f=H[g+4>>2];H[e+368>>2]=H[g>>2];H[e+372>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+12>>2];H[197455]=0;h=aa(g|0,h|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Jd}H[197455]=0;ba(1778,e- -64|0,h>>>16&255);h=H[197455];H[197455]=0;if((h|0)==1){break Jd}H[197455]=0;h=I[e+75|0];g=h<<24>>24<0;h=ca(1759,e+368|0,(g?H[e+64>>2]:e- -64|0)|0,(g?H[e+68>>2]:h)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Id}H[e+392>>2]=H[h+8>>2];g=H[h+4>>2];H[e+384>>2]=H[h>>2];H[e+388>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+384|0,431784)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Hd}H[e+408>>2]=H[h+8>>2];g=H[h+4>>2];H[e+400>>2]=H[h>>2];H[e+404>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+400|0,431952)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Gd}H[e+424>>2]=H[h+8>>2];g=H[h+4>>2];H[e+416>>2]=H[h>>2];H[e+420>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;f=a+60|0;a=I[e+427|0];h=a<<24>>24<0;ca(1759,f|0,(h?H[e+416>>2]:e+416|0)|0,(h?H[e+420>>2]:a)|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break Fd}if(F[e+427|0]<0){Kb(H[e+416>>2])}if(F[e+411|0]<0){Kb(H[e+400>>2])}if(F[e+395|0]<0){Kb(H[e+384>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+379|0]<0){Kb(H[e+368>>2])}if(F[e+363|0]<0){Kb(H[e+352>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+347|0]<0){Kb(H[e+336>>2])}if(F[e+331|0]<0){Kb(H[e+320>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+315|0]<0){Kb(H[e+304>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}H[i+120>>2]=H[e+440>>2];a=H[e+436>>2];H[i+112>>2]=H[e+432>>2];H[i+116>>2]=a;H[e+440>>2]=0;H[e+432>>2]=0;H[e+436>>2]=0;break gd}a=$()|0;_()|0;break ed}a=$()|0;_()|0;if(F[e+427|0]>=0){break ed}Kb(H[e+416>>2]);break ed}a=$()|0;_()|0;break ed}a=$()|0;_()|0;break jd}a=$()|0;_()|0;break kd}a=$()|0;_()|0;break ld}a=$()|0;_()|0;break md}a=$()|0;_()|0;break nd}a=$()|0;_()|0;break od}a=$()|0;_()|0;break pd}a=$()|0;_()|0;break qd}a=$()|0;_()|0;break rd}a=$()|0;_()|0;break sd}a=$()|0;_()|0;break td}a=$()|0;_()|0;break ud}a=$()|0;_()|0;break vd}a=$()|0;_()|0;break wd}a=$()|0;_()|0;break xd}a=$()|0;_()|0;break yd}a=$()|0;_()|0;break zd}a=$()|0;_()|0;break Ad}a=$()|0;_()|0;break Bd}a=$()|0;_()|0;break Cd}a=$()|0;_()|0;break Dd}a=$()|0;_()|0;break Ed}a=$()|0;_()|0;if(F[e+427|0]>=0){break Ed}Kb(H[e+416>>2])}if(F[e+411|0]>=0){break Dd}Kb(H[e+400>>2])}if(F[e+395|0]>=0){break Cd}Kb(H[e+384>>2])}if(F[e+75|0]>=0){break Bd}Kb(H[e+64>>2])}if(F[e+379|0]>=0){break Ad}Kb(H[e+368>>2])}if(F[e+363|0]>=0){break zd}Kb(H[e+352>>2])}if(F[e+91|0]>=0){break yd}Kb(H[e+80>>2])}if(F[e+347|0]>=0){break xd}Kb(H[e+336>>2])}if(F[e+331|0]>=0){break wd}Kb(H[e+320>>2])}if(F[e+107|0]>=0){break vd}Kb(H[e+96>>2])}if(F[e+315|0]>=0){break ud}Kb(H[e+304>>2])}if(F[e+299|0]>=0){break td}Kb(H[e+288>>2])}if(F[e+283|0]>=0){break sd}Kb(H[e+272>>2])}if(F[e+123|0]>=0){break rd}Kb(H[e+112>>2])}if(F[e+267|0]>=0){break qd}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break pd}Kb(H[e+240>>2])}if(F[e+139|0]>=0){break od}Kb(H[e+128>>2])}if(F[e+235|0]>=0){break nd}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break md}Kb(H[e+208>>2])}if(F[e+155|0]>=0){break ld}Kb(H[e+144>>2])}if(F[e+203|0]>=0){break kd}Kb(H[e+192>>2])}if(F[e+187|0]>=0){break jd}Kb(H[e+176>>2])}if(F[e+171|0]>=0){break ed}Kb(H[e+160>>2]);break ed}g=H[H[h>>2]+16>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break fd}ce:{if((g|0)!=11){g=H[H[h>>2]+16>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break fd}if((g|0)!=12){break ce}}g=H[a+56>>2]+1|0;H[a+56>>2]=g;H[197455]=0;fa(1756,e+416|0,+(g>>>0),0);g=H[197455];H[197455]=0;de:{ee:{fe:{ge:{he:{ie:{je:{ke:{le:{me:{ne:{oe:{pe:{qe:{re:{se:{te:{ue:{ve:{we:{xe:{ye:{ze:{Ae:{Be:{Ce:{De:{Ee:{Fe:{Ge:{He:{Ie:{Je:{Ke:{Le:{Me:{Ne:{Oe:{Pe:{Qe:{Re:{Se:{Te:{Ue:{Ve:{We:{Xe:{Ye:{Ze:{_e:{$e:{af:{bf:{cf:{df:{ef:{ff:{gf:{hf:{jf:{kf:{lf:{mf:{nf:{if((g|0)!=1){H[197455]=0;g=ca(1758,e+416|0,0,432024)|0;f=H[197455];H[197455]=0;if((f|0)==1){break nf}j=H[g>>2];H[e+400>>2]=H[g+4>>2];f=I[g+7|0]|I[g+8|0]<<8|(I[g+9|0]<<16|I[g+10|0]<<24);F[e+403|0]=f;F[e+404|0]=f>>>8;F[e+405|0]=f>>>16;F[e+406|0]=f>>>24;H[g>>2]=0;H[g+4>>2]=0;f=I[g+11|0];H[g+8>>2]=0;if(F[e+443|0]<0){Kb(H[e+432>>2])}H[e+432>>2]=j;H[e+436>>2]=H[e+400>>2];g=I[e+403|0]|I[e+404|0]<<8|(I[e+405|0]<<16|I[e+406|0]<<24);F[e+439|0]=g;F[e+440|0]=g>>>8;F[e+441|0]=g>>>16;F[e+442|0]=g>>>24;F[e+443|0]=f;if(F[e+427|0]<0){Kb(H[e+416>>2])}H[e+56>>2]=0;H[e+60>>2]=-1042284544;H[e+48>>2]=0;H[e+52>>2]=-1042284544;g=H[H[h>>2]+44>>2];H[197455]=0;ga(g|0,h|0,e+56|0,e+48|0);g=H[197455];H[197455]=0;if((g|0)==1){break mf}H[e+424>>2]=0;H[e+416>>2]=0;H[e+420>>2]=0;of:{if(M[e+56>>3]==-2147483648&M[e+48>>3]==-2147483648){break of}g=H[H[h>>2]+40>>2];H[197455]=0;wa(g|0,h|0,e+320|0,e+304|0,e+288|0,e+272|0);g=H[197455];H[197455]=0;if((g|0)==1){break lf}c=M[e+288>>3];if(c==0){break of}d=M[e+272>>3];if(d==0){break of}c=(M[e+56>>3]-M[e+320>>3])/c;M[e+56>>3]=c;M[e+48>>3]=(M[e+48>>3]-M[e+304>>3])/d;H[197455]=0;fa(1756,e+352|0,+c,-1);g=H[197455];H[197455]=0;if((g|0)==1){break kf}H[197455]=0;g=ca(1758,e+352|0,0,432088)|0;f=H[197455];H[197455]=0;if((f|0)==1){break jf}H[e+376>>2]=H[g+8>>2];f=H[g+4>>2];H[e+368>>2]=H[g>>2];H[e+372>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+368|0,432112)|0;f=H[197455];H[197455]=0;if((f|0)==1){break hf}H[e+392>>2]=H[g+8>>2];f=H[g+4>>2];H[e+384>>2]=H[g>>2];H[e+388>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;fa(1756,e+336|0,+M[e+48>>3],-1);g=H[197455];H[197455]=0;if((g|0)==1){break gf}H[197455]=0;g=I[e+347|0];f=g<<24>>24<0;g=ca(1759,e+384|0,(f?H[e+336>>2]:e+336|0)|0,(f?H[e+340>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ff}H[e+408>>2]=H[g+8>>2];f=H[g+4>>2];H[e+400>>2]=H[g>>2];H[e+404>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+400|0,432140)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ef}j=H[g>>2];H[e+256>>2]=H[g+4>>2];f=I[g+7|0]|I[g+8|0]<<8|(I[g+9|0]<<16|I[g+10|0]<<24);F[e+259|0]=f;F[e+260|0]=f>>>8;F[e+261|0]=f>>>16;F[e+262|0]=f>>>24;H[g>>2]=0;H[g+4>>2]=0;f=I[g+11|0];H[g+8>>2]=0;if(F[e+427|0]<0){Kb(H[e+416>>2])}H[e+416>>2]=j;H[e+420>>2]=H[e+256>>2];g=I[e+259|0]|I[e+260|0]<<8|(I[e+261|0]<<16|I[e+262|0]<<24);F[e+423|0]=g;F[e+424|0]=g>>>8;F[e+425|0]=g>>>16;F[e+426|0]=g>>>24;F[e+427|0]=f;if(F[e+411|0]<0){Kb(H[e+400>>2])}if(F[e+347|0]<0){Kb(H[e+336>>2])}if(F[e+395|0]<0){Kb(H[e+384>>2])}if(F[e+379|0]<0){Kb(H[e+368>>2])}if(F[e+363|0]>=0){break of}Kb(H[e+352>>2])}H[197455]=0;ga(1785,e+112|0,432172,e+432|0);g=H[197455];H[197455]=0;if((g|0)==1){break $e}H[197455]=0;g=da(1699,e+112|0,432256)|0;f=H[197455];H[197455]=0;if((f|0)==1){break _e}H[e+136>>2]=H[g+8>>2];f=H[g+4>>2];H[e+128>>2]=H[g>>2];H[e+132>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=I[e+427|0];f=g<<24>>24<0;g=ca(1759,e+128|0,(f?H[e+416>>2]:e+416|0)|0,(f?H[e+420>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ze}H[e+152>>2]=H[g+8>>2];f=H[g+4>>2];H[e+144>>2]=H[g>>2];H[e+148>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+144|0,432264)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ye}H[e+168>>2]=H[g+8>>2];f=H[g+4>>2];H[e+160>>2]=H[g>>2];H[e+164>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+160|0,431644)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Xe}H[e+184>>2]=H[g+8>>2];f=H[g+4>>2];H[e+176>>2]=H[g>>2];H[e+180>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+8>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break We}H[197455]=0;ba(1778,e+96|0,g&255);g=H[197455];H[197455]=0;if((g|0)==1){break We}H[197455]=0;g=I[e+107|0];f=g<<24>>24<0;g=ca(1759,e+176|0,(f?H[e+96>>2]:e+96|0)|0,(f?H[e+100>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ve}H[e+200>>2]=H[g+8>>2];f=H[g+4>>2];H[e+192>>2]=H[g>>2];H[e+196>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+192|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ue}H[e+216>>2]=H[g+8>>2];f=H[g+4>>2];H[e+208>>2]=H[g>>2];H[e+212>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+8>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Te}H[197455]=0;ba(1778,e+80|0,g>>>8&255);g=H[197455];H[197455]=0;if((g|0)==1){break Te}H[197455]=0;g=I[e+91|0];f=g<<24>>24<0;g=ca(1759,e+208|0,(f?H[e+80>>2]:e+80|0)|0,(f?H[e+84>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Se}H[e+232>>2]=H[g+8>>2];f=H[g+4>>2];H[e+224>>2]=H[g>>2];H[e+228>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+224|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Re}H[e+248>>2]=H[g+8>>2];f=H[g+4>>2];H[e+240>>2]=H[g>>2];H[e+244>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+8>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Qe}H[197455]=0;ba(1778,e- -64|0,g>>>16&255);g=H[197455];H[197455]=0;if((g|0)==1){break Qe}H[197455]=0;g=I[e+75|0];f=g<<24>>24<0;g=ca(1759,e+240|0,(f?H[e+64>>2]:e- -64|0)|0,(f?H[e+68>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Pe}H[e+264>>2]=H[g+8>>2];f=H[g+4>>2];H[e+256>>2]=H[g>>2];H[e+260>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+256|0,431784)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Oe}H[e+280>>2]=H[g+8>>2];f=H[g+4>>2];H[e+272>>2]=H[g>>2];H[e+276>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+272|0,431804)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ne}H[e+296>>2]=H[g+8>>2];f=H[g+4>>2];H[e+288>>2]=H[g>>2];H[e+292>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+12>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Me}H[197455]=0;ba(1778,e+32|0,g&255);g=H[197455];H[197455]=0;if((g|0)==1){break Me}H[197455]=0;g=I[e+43|0];f=g<<24>>24<0;g=ca(1759,e+288|0,(f?H[e+32>>2]:e+32|0)|0,(f?H[e+36>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Le}H[e+312>>2]=H[g+8>>2];f=H[g+4>>2];H[e+304>>2]=H[g>>2];H[e+308>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+304|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ke}H[e+328>>2]=H[g+8>>2];f=H[g+4>>2];H[e+320>>2]=H[g>>2];H[e+324>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+12>>2];H[197455]=0;g=aa(g|0,h|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Je}H[197455]=0;ba(1778,e+16|0,g>>>8&255);g=H[197455];H[197455]=0;if((g|0)==1){break Je}H[197455]=0;g=I[e+27|0];f=g<<24>>24<0;g=ca(1759,e+320|0,(f?H[e+16>>2]:e+16|0)|0,(f?H[e+20>>2]:g)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ie}H[e+344>>2]=H[g+8>>2];f=H[g+4>>2];H[e+336>>2]=H[g>>2];H[e+340>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;g=da(1699,e+336|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break He}H[e+360>>2]=H[g+8>>2];f=H[g+4>>2];H[e+352>>2]=H[g>>2];H[e+356>>2]=f;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;g=H[H[h>>2]+12>>2];H[197455]=0;h=aa(g|0,h|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Ge}H[197455]=0;ba(1778,e|0,h>>>16&255);h=H[197455];H[197455]=0;if((h|0)==1){break Ge}H[197455]=0;h=I[e+11|0];g=h<<24>>24<0;h=ca(1759,e+352|0,(g?H[e>>2]:e)|0,(g?H[e+4>>2]:h)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Fe}H[e+376>>2]=H[h+8>>2];g=H[h+4>>2];H[e+368>>2]=H[h>>2];H[e+372>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+368|0,431784)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Ee}H[e+392>>2]=H[h+8>>2];g=H[h+4>>2];H[e+384>>2]=H[h>>2];H[e+388>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;h=da(1699,e+384|0,432272)|0;g=H[197455];H[197455]=0;if((g|0)==1){break De}H[e+408>>2]=H[h+8>>2];g=H[h+4>>2];H[e+400>>2]=H[h>>2];H[e+404>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;f=a+60|0;a=I[e+411|0];h=a<<24>>24<0;ca(1759,f|0,(h?H[e+400>>2]:e+400|0)|0,(h?H[e+404>>2]:a)|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break Ce}if(F[e+411|0]<0){Kb(H[e+400>>2])}if(F[e+395|0]<0){Kb(H[e+384>>2])}if(F[e+379|0]<0){Kb(H[e+368>>2])}if(F[e+11|0]<0){Kb(H[e>>2])}if(F[e+363|0]<0){Kb(H[e+352>>2])}if(F[e+347|0]<0){Kb(H[e+336>>2])}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+331|0]<0){Kb(H[e+320>>2])}if(F[e+315|0]<0){Kb(H[e+304>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}H[i+120>>2]=H[e+440>>2];a=H[e+436>>2];H[i+112>>2]=H[e+432>>2];H[i+116>>2]=a;H[e+440>>2]=0;H[e+432>>2]=0;H[e+436>>2]=0;if(F[e+427|0]>=0){break gd}Kb(H[e+416>>2]);break gd}a=$()|0;_()|0;break ed}a=$()|0;_()|0;if(F[e+427|0]>=0){break ed}Kb(H[e+416>>2]);break ed}a=$()|0;_()|0;break ed}a=$()|0;_()|0;break de}a=$()|0;_()|0;break de}a=$()|0;_()|0;break af}a=$()|0;_()|0;break bf}a=$()|0;_()|0;break cf}a=$()|0;_()|0;break df}a=$()|0;_()|0;if(F[e+411|0]>=0){break df}Kb(H[e+400>>2])}if(F[e+347|0]>=0){break cf}Kb(H[e+336>>2])}if(F[e+395|0]>=0){break bf}Kb(H[e+384>>2])}if(F[e+379|0]>=0){break af}Kb(H[e+368>>2])}if(F[e+363|0]>=0){break de}Kb(H[e+352>>2]);break de}a=$()|0;_()|0;break de}a=$()|0;_()|0;break ee}a=$()|0;_()|0;break fe}a=$()|0;_()|0;break ge}a=$()|0;_()|0;break he}a=$()|0;_()|0;break ie}a=$()|0;_()|0;break je}a=$()|0;_()|0;break ke}a=$()|0;_()|0;break le}a=$()|0;_()|0;break me}a=$()|0;_()|0;break ne}a=$()|0;_()|0;break oe}a=$()|0;_()|0;break pe}a=$()|0;_()|0;break qe}a=$()|0;_()|0;break re}a=$()|0;_()|0;break se}a=$()|0;_()|0;break te}a=$()|0;_()|0;break ue}a=$()|0;_()|0;break ve}a=$()|0;_()|0;break we}a=$()|0;_()|0;break xe}a=$()|0;_()|0;break ye}a=$()|0;_()|0;break ze}a=$()|0;_()|0;break Ae}a=$()|0;_()|0;break Be}a=$()|0;_()|0;if(F[e+411|0]>=0){break Be}Kb(H[e+400>>2])}if(F[e+395|0]>=0){break Ae}Kb(H[e+384>>2])}if(F[e+379|0]>=0){break ze}Kb(H[e+368>>2])}if(F[e+11|0]>=0){break ye}Kb(H[e>>2])}if(F[e+363|0]>=0){break xe}Kb(H[e+352>>2])}if(F[e+347|0]>=0){break we}Kb(H[e+336>>2])}if(F[e+27|0]>=0){break ve}Kb(H[e+16>>2])}if(F[e+331|0]>=0){break ue}Kb(H[e+320>>2])}if(F[e+315|0]>=0){break te}Kb(H[e+304>>2])}if(F[e+43|0]>=0){break se}Kb(H[e+32>>2])}if(F[e+299|0]>=0){break re}Kb(H[e+288>>2])}if(F[e+283|0]>=0){break qe}Kb(H[e+272>>2])}if(F[e+267|0]>=0){break pe}Kb(H[e+256>>2])}if(F[e+75|0]>=0){break oe}Kb(H[e+64>>2])}if(F[e+251|0]>=0){break ne}Kb(H[e+240>>2])}if(F[e+235|0]>=0){break me}Kb(H[e+224>>2])}if(F[e+91|0]>=0){break le}Kb(H[e+80>>2])}if(F[e+219|0]>=0){break ke}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break je}Kb(H[e+192>>2])}if(F[e+107|0]>=0){break ie}Kb(H[e+96>>2])}if(F[e+187|0]>=0){break he}Kb(H[e+176>>2])}if(F[e+171|0]>=0){break ge}Kb(H[e+160>>2])}if(F[e+155|0]>=0){break fe}Kb(H[e+144>>2])}if(F[e+139|0]>=0){break ee}Kb(H[e+128>>2])}if(F[e+123|0]>=0){break de}Kb(H[e+112>>2])}if(F[e+427|0]>=0){break ed}Kb(H[e+416>>2]);break ed}H[i+112>>2]=0;H[i+116>>2]=0;H[i+120>>2]=0}if(F[e+443|0]>=0){break dd}Kb(H[e+432>>2]);break dd}a=$()|0;_()|0}if(F[e+443|0]<0){Kb(H[e+432>>2])}break a}xb=e+448|0;h=I[i+123|0];a=h<<24>>24;if((a|0)<0?H[i+116>>2]:h){H[197455]=0;ga(1785,i+96|0,430708,i+112|0);a=H[197455];H[197455]=0;pf:{qf:{rf:{sf:{tf:{uf:{if((a|0)!=1){H[197455]=0;a=da(1699,i+96|0,430648)|0;h=H[197455];H[197455]=0;if((h|0)==1){break uf}e=H[a>>2];H[i+80>>2]=H[a+4>>2];h=I[a+7|0]|I[a+8|0]<<8|(I[a+9|0]<<16|I[a+10|0]<<24);F[i+83|0]=h;F[i+84|0]=h>>>8;F[i+85|0]=h>>>16;F[i+86|0]=h>>>24;H[a>>2]=0;H[a+4>>2]=0;g=F[a+11|0];H[a+8>>2]=0;H[197455]=0;a=aa(899,32)|0;h=H[197455];H[197455]=0;if((h|0)==1){break rf}H[i+136>>2]=a;H[i+140>>2]=4;H[i+144>>2]=-2147483640;H[197455]=0;Mb(a,428628,4);h=H[197455];H[197455]=0;if((h|0)==1){break b}H[a+16>>2]=0;h=I[i+83|0]|I[i+84|0]<<8|(I[i+85|0]<<16|I[i+86|0]<<24);F[i+155|0]=h;F[i+156|0]=h>>>8;F[i+157|0]=h>>>16;F[i+158|0]=h>>>24;H[i+152>>2]=H[i+80>>2];H[i+148>>2]=e;F[i+159|0]=g;h=H[b+4>>2];vf:{if(h>>>0>2]){H[197455]=0;ga(1647,h|0,a|0,4);a=H[197455];H[197455]=0;if((a|0)==1){a=$()|0;_()|0;H[b+4>>2]=h;break sf}a=H[i+152>>2];H[h+12>>2]=H[i+148>>2];H[h+16>>2]=a;H[h+20>>2]=H[i+156>>2];H[i+148>>2]=0;H[i+152>>2]=0;H[i+156>>2]=0;H[b+4>>2]=h+24;break vf}H[197455]=0;ba(1777,b|0,i+136|0);a=H[197455];H[197455]=0;if((a|0)==1){break tf}if(F[i+159|0]>=0){break vf}Kb(H[i+148>>2])}if(F[i+147|0]<0){Kb(H[i+136>>2])}if(F[i+107|0]<0){Kb(H[i+96>>2])}if(F[i+123|0]>=0){break f}Kb(H[i+112>>2]);break f}a=$()|0;_()|0;break pf}a=$()|0;_()|0;break qf}a=$()|0;_()|0}Vb(i+136|0);break qf}a=$()|0;_()|0;if((g|0)>=0){break qf}Kb(e)}if(F[i+107|0]>=0){break pf}Kb(H[i+96>>2])}if(F[i+123|0]>=0){break m}break c}if((a|0)>=0){break u}Kb(H[i+112>>2])}h=pe(i+136|0,428628,428676);e=H[b+4>>2];if(e>>>0>2]){if(F[h+11|0]>=0){a=H[i+140>>2];H[e>>2]=H[i+136>>2];H[e+4>>2]=a;H[e+8>>2]=H[i+144>>2];break q}a=H[h+4>>2];g=H[h>>2];H[197455]=0;ga(1647,e|0,g|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break q}a=$()|0;_()|0;H[b+4>>2]=e;break r}H[197455]=0;ba(1777,b|0,h|0);a=H[197455];H[197455]=0;if((a|0)==1){break s}if(F[h+23|0]>=0){break p}Kb(H[h+12>>2]);break p}if((a|0)>=0){break f}Kb(H[i+112>>2]);break f}a=$()|0;_()|0}Vb(h);break m}a=H[h+16>>2];H[e+12>>2]=H[h+12>>2];H[e+16>>2]=a;H[e+20>>2]=H[h+20>>2];H[h+12>>2]=0;H[h+16>>2]=0;H[h+20>>2]=0;H[b+4>>2]=e+24}if(F[h+11|0]>=0){break f}Kb(H[h>>2]);break f}a=H[i+152>>2];H[e+12>>2]=H[i+148>>2];H[e+16>>2]=a;H[e+20>>2]=H[i+156>>2];H[i+148>>2]=0;H[i+152>>2]=0;H[i+156>>2]=0;H[b+4>>2]=e+24}if(F[i+147|0]<0){Kb(H[i+136>>2])}if(F[i+123|0]<0){Kb(H[i+112>>2])}if(F[i+11|0]<0){Kb(H[i>>2])}if(F[i+107|0]<0){Kb(H[i+96>>2])}if(F[i+91|0]<0){Kb(H[i+80>>2])}if(F[i+27|0]<0){Kb(H[i+16>>2])}if(F[i+75|0]<0){Kb(H[i+64>>2])}if(F[i+59|0]<0){Kb(H[i+48>>2])}if(F[i+43|0]<0){Kb(H[i+32>>2])}if((zb[H[H[h>>2]+28>>2]](h)|0)==255){break f}a=i+112|0;Ce(a,+(zb[H[H[h>>2]+28>>2]](h)>>>0)/255,3);H[197455]=0;h=ca(2931,i+136|0,430656,a|0)|0;a=H[197455];H[197455]=0;wf:{xf:{if((a|0)!=1){H[197455]=0;ba(1792,b|0,h|0);a=H[197455];H[197455]=0;if((a|0)==1){break xf}Vb(h);if(F[i+123|0]>=0){break f}Kb(H[i+112>>2]);break f}a=$()|0;_()|0;break wf}a=$()|0;_()|0;Vb(h)}if(F[i+123|0]>=0){break m}break c}break a}e=H[a+16>>2];H[h+12>>2]=H[a+12>>2];H[h+16>>2]=e;H[h+20>>2]=H[a+20>>2];H[a+12>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[b+4>>2]=h+24}if(F[a+11|0]>=0){break f}Kb(H[a>>2]);break f}e=H[a+16>>2];H[h+12>>2]=H[a+12>>2];H[h+16>>2]=e;H[h+20>>2]=H[a+20>>2];H[a+12>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[b+4>>2]=h+24}if(F[a+11|0]>=0){break f}Kb(H[a>>2])}xb=i+160|0;return}e=$()|0;_()|0;H[b+4>>2]=h;Vb(a);ea(e|0);X()}b=$()|0;_()|0;Vb(a);ea(b|0);X()}Kb(H[i+112>>2]);break a}ha(0)|0;_()|0;Zb();X()}ea(a|0);X()} +function vK(a){a=a|0;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,L=0,M=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;k=xb+-64|0;xb=k;c=H[a>>2];b=0;a:{if(H[H[c+96>>2]+64>>2]!=40){break a}b=0;if(!I[a+613|0]){break a}b=0;if(I[c+9|0]&32){break a}b=(I[a+340|0]>>>2^-1)&1}G[a+616>>1]=0;F[a+615|0]=b;b=H[a+384>>2];e=J[a+152>>1];f=b+e<<1;f=f>>>0>30?f:30;if(f>>>0>1]){G[a+188>>1]=f}H[a+628>>2]=0;H[a+620>>2]=0;b:{if(e){e=N(e,10);b=(e>>>0>50?e:50)+(b>>>0<500?50:(b>>>0)/10|0)|0;break b}b=N(b,22)+300|0}H[a+624>>2]=b;c=H[c+16>>2];H[a+260>>2]=0;c=N(c,100);b=b>>>0>>0?b:c;H[a+632>>2]=b;H[a+624>>2]=b;c:{if(J[a+220>>1]!=J[a+222>>1]){c=83;f=84;h=85;b=82;break c}c=87;f=88;h=89;b=86}H[a+608>>2]=b;H[a+604>>2]=c;H[a+600>>2]=f;H[a+596>>2]=h;e=G[a+302>>1];d:{if((e&65535)==16384){b=G[a+298>>1];H[a+568>>2]=b;c=b;break d}b=G[a+304>>1];if((b|0)==16384){b=G[a+300>>1];H[a+568>>2]=b;c=J[a+298>>1];break d}c=G[a+298>>1];b=N(b,G[a+300>>1])+N(e,c)>>14;H[a+568>>2]=b}e:{if((c&65535)==16384){H[a+576>>2]=90;break e}if(J[a+300>>1]==16384){H[a+576>>2]=91;break e}H[a+576>>2]=92}f:{if(J[a+294>>1]==16384){H[a+580>>2]=90;break f}if(J[a+296>>1]==16384){H[a+580>>2]=91;break f}H[a+580>>2]=93}H[a+592>>2]=94;H[a+588>>2]=95;g:{if((b|0)!=16384){break g}h:{if((e|0)==16384){f=97;c=96;break h}if(J[a+304>>1]!=16384){break g}f=99;c=98}H[a+592>>2]=c;H[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023){H[a+568>>2]=16384}H[a+260>>2]=0;b=H[a+316>>2];if(!(b&248)){H[a+572>>2]=H[(b<<24>>22)+98152>>2]}x=a+180|0;y=a+144|0;n=a+72|0;o=a+36|0;p=a+108|0;c=H[a+364>>2];i:{j:{while(1){j=H[a+360>>2];i=I[j+c|0];F[a+372|0]=i;f=F[i+96128|0];H[a+376>>2]=f;k:{if((i&254)!=64){h=H[a+368>>2];break k}h=H[a+368>>2];b=c+1|0;if((h|0)<=(b|0)){h=131;break j}f=2-N(I[b+j|0],f)|0;H[a+376>>2]=f}if((c+f|0)>(h|0)){h=131;break j}b=I[i+96384|0];e=b>>>4|0;c=H[a+16>>2]-e|0;H[a+28>>2]=c;if((c|0)<0){if(I[a+565|0]){h=129;break j}if(b>>>0>=16){Nb(H[a+24>>2],0,(e>>>0>1?e:1)<<2)}H[a+28>>2]=0;c=0}l:{m:{if((i|0)==145){b=H[H[a>>2]+736>>2];if(!b){e=H[a+32>>2];break l}e=H[b>>2]+c|0;break m}e=(b&15)+c|0}H[a+32>>2]=e}h=130;b=H[a+20>>2];if((b|0)<(e|0)){break j}H[a+12>>2]=0;F[a+380|0]=1;g=H[a+24>>2];d=g+(c<<2)|0;h=135;n:{o:{p:{q:{r:{s:{t:{switch(i|0){case 0:case 1:case 2:case 3:case 4:case 5:c=i<<14&16384;b=c^16384;if(i>>>0<=3){G[a+296>>1]=b;G[a+294>>1]=c;G[a+300>>1]=b;G[a+298>>1]=c}u:{if(i&2){c=J[a+302>>1];break u}G[a+302>>1]=c;G[a+304>>1]=b}v:{if((c&65535)==16384){b=G[a+298>>1];H[a+568>>2]=b;e=b;break v}b=G[a+304>>1];if((b|0)==16384){b=G[a+300>>1];H[a+568>>2]=b;e=J[a+298>>1];break v}e=G[a+298>>1];b=N(b,G[a+300>>1])+N(e,c<<16>>16)>>14;H[a+568>>2]=b}f=90;H[a+576>>2]=(e&65535)!=16384?J[a+300>>1]==16384?91:92:90;f=J[a+294>>1]!=16384?J[a+296>>1]==16384?91:93:f;H[a+592>>2]=94;H[a+588>>2]=95;H[a+580>>2]=f;w:{if((b|0)!=16384){break w}x:{if((c&65535)==16384){f=97;c=96;break x}if(J[a+304>>1]!=16384){break w}f=99;c=98}H[a+592>>2]=c;H[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023){H[a+568>>2]=16384}H[a+260>>2]=0;break s;case 6:case 7:y:{b=J[d+4>>1];if(b>>>0>1]){c=J[d>>1];if(c>>>0>1]){break y}}if(!I[a+565|0]){break s}h=134;break j}c=H[a+88>>2]+(c<<3)|0;e=H[c+4>>2];f=H[a+124>>2]+(b<<3)|0;d=H[f+4>>2];b=e-d|0;g=H[c>>2];f=H[f>>2];c=(g|0)==(f|0)&(d|0)==(e|0);e=c?16384:g-f|0;c=c|!(i&1);f=c?b:e;b=c?e:0-b|0;if(f|b){H[k+28>>2]=f;H[k+24>>2]=b;Lj(k+24|0);G[a+298>>1]=H[k+24>>2]/4;G[a+300>>1]=H[k+28>>2]/4}c=J[a+298>>1]|J[a+300>>1]<<16;G[a+294>>1]=c;G[a+296>>1]=c>>>16;e=G[a+302>>1];b=c<<16>>16;z:{if((e&65535)==16384){break z}f=G[a+304>>1];b=c>>16;if((f|0)==16384){break z}b=N(f,c>>16)+N(e,c<<16>>16)>>14}H[a+592>>2]=94;H[a+588>>2]=95;H[a+568>>2]=b;f=(c&-65536)==1073741824;c=(c&65535)==16384;H[a+580>>2]=c?90:f?91:93;H[a+576>>2]=c?90:f?91:92;A:{if((b|0)!=16384){break A}B:{if((e|0)==16384){f=97;c=96;break B}if(J[a+304>>1]!=16384){break A}f=99;c=98}H[a+592>>2]=c;H[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023){H[a+568>>2]=16384}H[a+260>>2]=0;break s;case 8:case 9:C:{b=J[d+4>>1];if(b>>>0>1]){c=J[d>>1];if(c>>>0>1]){break C}}if(!I[a+565|0]){break s}h=134;break j}c=H[a+88>>2]+(c<<3)|0;e=H[c+4>>2];f=H[a+124>>2]+(b<<3)|0;d=H[f+4>>2];b=e-d|0;g=H[c>>2];f=H[f>>2];c=(g|0)==(f|0)&(d|0)==(e|0);e=c?16384:g-f|0;c=c|!(i&1);f=c?b:e;b=c?e:0-b|0;D:{if(!(f|b)){c=J[a+302>>1];break D}H[k+28>>2]=f;H[k+24>>2]=b;Lj(k+24|0);c=H[k+24>>2]/4|0;G[a+302>>1]=c;G[a+304>>1]=H[k+28>>2]/4}E:{if((c&65535)==16384){b=G[a+298>>1];H[a+568>>2]=b;e=b;break E}b=G[a+304>>1];if((b|0)==16384){b=G[a+300>>1];H[a+568>>2]=b;e=J[a+298>>1];break E}e=G[a+298>>1];b=N(b,G[a+300>>1])+N(e,c<<16>>16)>>14;H[a+568>>2]=b}f=90;H[a+576>>2]=(e&65535)!=16384?J[a+300>>1]==16384?91:92:90;f=J[a+294>>1]!=16384?J[a+296>>1]==16384?91:93:f;H[a+592>>2]=94;H[a+588>>2]=95;H[a+580>>2]=f;F:{if((b|0)!=16384){break F}G:{if((c&65535)==16384){f=97;c=96;break G}if(J[a+304>>1]!=16384){break F}f=99;c=98}H[a+592>>2]=c;H[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023){H[a+568>>2]=16384}H[a+260>>2]=0;break s;case 10:b=G[d+4>>1];c=G[d>>1];if(b|c){H[k+28>>2]=b;H[k+24>>2]=c;Lj(k+24|0);G[a+298>>1]=H[k+24>>2]/4;G[a+300>>1]=H[k+28>>2]/4}c=J[a+298>>1]|J[a+300>>1]<<16;G[a+294>>1]=c;G[a+296>>1]=c>>>16;e=G[a+302>>1];b=c<<16>>16;H:{if((e&65535)==16384){break H}f=G[a+304>>1];b=c>>16;if((f|0)==16384){break H}b=N(f,c>>16)+N(e,c<<16>>16)>>14}H[a+592>>2]=94;H[a+588>>2]=95;H[a+568>>2]=b;f=(c&-65536)==1073741824;c=(c&65535)==16384;H[a+580>>2]=c?90:f?91:93;H[a+576>>2]=c?90:f?91:92;I:{if((b|0)!=16384){break I}J:{if((e|0)==16384){f=97;c=96;break J}if(J[a+304>>1]!=16384){break I}f=99;c=98}H[a+592>>2]=c;H[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023){H[a+568>>2]=16384}H[a+260>>2]=0;break s;case 11:b=G[d+4>>1];c=G[d>>1];K:{if(!(b|c)){c=J[a+302>>1];break K}H[k+28>>2]=b;H[k+24>>2]=c;Lj(k+24|0);c=H[k+24>>2]/4|0;G[a+302>>1]=c;G[a+304>>1]=H[k+28>>2]/4}L:{if((c&65535)==16384){b=G[a+298>>1];H[a+568>>2]=b;e=b;break L}b=G[a+304>>1];if((b|0)==16384){b=G[a+300>>1];H[a+568>>2]=b;e=J[a+298>>1];break L}e=G[a+298>>1];b=N(b,G[a+300>>1])+N(e,c<<16>>16)>>14;H[a+568>>2]=b}f=90;H[a+576>>2]=(e&65535)!=16384?J[a+300>>1]==16384?91:92:90;f=J[a+294>>1]!=16384?J[a+296>>1]==16384?91:93:f;H[a+592>>2]=94;H[a+588>>2]=95;H[a+580>>2]=f;M:{if((b|0)!=16384){break M}N:{if((c&65535)==16384){f=97;c=96;break N}if(J[a+304>>1]!=16384){break M}f=99;c=98}H[a+592>>2]=c;H[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023){H[a+568>>2]=16384}H[a+260>>2]=0;break s;case 12:b=G[a+298>>1];H[d+4>>2]=G[a+300>>1];H[d>>2]=b;break s;case 13:b=G[a+302>>1];H[d+4>>2]=G[a+304>>1];H[d>>2]=b;break s;case 14:e=J[a+298>>1]|J[a+300>>1]<<16;G[a+302>>1]=e;d=e>>>16|0;G[a+304>>1]=d;c=e<<16>>16;f=90;O:{if((e&65535)==16384){h=90;b=c;break O}h=91;b=16384;if((d|0)==16384){break O}h=92;b=e>>16;b=N(c,c)+N(b,b)>>>14|0}H[a+576>>2]=h;H[a+568>>2]=b;f=J[a+294>>1]!=16384?J[a+296>>1]==16384?91:93:f;H[a+592>>2]=94;H[a+588>>2]=95;H[a+580>>2]=f;P:{if((b|0)!=16384){break P}Q:{if((e&65535)==16384){f=97;c=96;break Q}if((d|0)!=16384){break P}f=99;c=98}H[a+592>>2]=c;H[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023){H[a+568>>2]=16384}H[a+260>>2]=0;break s;case 15:R:{c=J[d+12>>1];b=J[a+44>>1];S:{if(c>>>0>=b>>>0){break S}f=J[d+16>>1];if(f>>>0>=b>>>0){break S}g=J[d+4>>1];b=J[a+80>>1];if(g>>>0>=b>>>0){break S}i=J[d+8>>1];if(i>>>0>=b>>>0){break S}b=J[d>>1];if(b>>>0>1]){break R}}if(!I[a+565|0]){break s}h=134;break j}d=H[a+52>>2];q=c<<3;c=d+q|0;e=H[c>>2];s=f<<3;h=s+d|0;j=H[h>>2];m=H[a+88>>2];f=g<<3;g=m+f|0;d=H[g+4>>2];l=i<<3;i=l+m|0;m=H[i+4>>2];t=H[g>>2];g=H[i>>2]-t|0;u=H[c+4>>2];r=H[h+4>>2]-u|0;v=0-r|0;i=m-d|0;h=j-e|0;c=ic(g,v,64)+ic(i,h,64)|0;j=c>>31;r=ic(g,h,64)+ic(i,r,64)|0;m=r>>31;T:{if(((m^r)-m|0)<(N((c^j)-j|0,19)|0)){e=ic(e-t|0,v,64)+ic(u-d|0,h,64)|0;d=ic(e,g,c);e=ic(e,i,c);c=H[a+124>>2];f=f+H[a+88>>2]|0;H[c+(b<<3)>>2]=d+H[f>>2];e=e+H[f+4>>2]|0;break T}c=H[a+124>>2];e=H[a+52>>2];d=e+q|0;g=H[a+88>>2];i=g+l|0;f=f+g|0;e=e+s|0;H[c+(b<<3)>>2]=((H[d>>2]+(H[i>>2]+H[f>>2]|0)|0)+H[e>>2]|0)/4;e=(H[e+4>>2]+(H[d+4>>2]+(H[i+4>>2]+H[f+4>>2]|0)|0)|0)/4|0}H[((b<<3)+c|0)+4>>2]=e;b=b+H[a+132>>2]|0;F[b|0]=I[b|0]|24;break s;case 16:G[a+288>>1]=H[d>>2];break s;case 17:G[a+290>>1]=H[d>>2];break s;case 18:G[a+292>>1]=H[d>>2];break s;case 19:b=x;U:{switch(H[d>>2]){default:if(!I[a+565|0]){break s}h=134;break j;case 1:b=y;break;case 0:break U}}c=H[b+4>>2];H[o>>2]=H[b>>2];H[o+4>>2]=c;H[o+32>>2]=H[b+32>>2];c=H[b+28>>2];H[o+24>>2]=H[b+24>>2];H[o+28>>2]=c;c=H[b+20>>2];H[o+16>>2]=H[b+16>>2];H[o+20>>2]=c;c=H[b+12>>2];H[o+8>>2]=H[b+8>>2];H[o+12>>2]=c;G[a+348>>1]=H[d>>2];break s;case 20:b=x;V:{switch(H[d>>2]){default:if(!I[a+565|0]){break s}h=134;break j;case 1:b=y;break;case 0:break V}}c=H[b+4>>2];H[n>>2]=H[b>>2];H[n+4>>2]=c;H[n+32>>2]=H[b+32>>2];c=H[b+28>>2];H[n+24>>2]=H[b+24>>2];H[n+28>>2]=c;c=H[b+20>>2];H[n+16>>2]=H[b+16>>2];H[n+20>>2]=c;c=H[b+12>>2];H[n+8>>2]=H[b+8>>2];H[n+12>>2]=c;G[a+350>>1]=H[d>>2];break s;case 21:b=x;W:{switch(H[d>>2]){default:if(!I[a+565|0]){break s}h=134;break j;case 1:b=y;break;case 0:break W}}c=H[b+4>>2];H[p>>2]=H[b>>2];H[p+4>>2]=c;H[p+32>>2]=H[b+32>>2];c=H[b+28>>2];H[p+24>>2]=H[b+24>>2];H[p+28>>2]=c;c=H[b+20>>2];H[p+16>>2]=H[b+16>>2];H[p+20>>2]=c;c=H[b+12>>2];H[p+8>>2]=H[b+8>>2];H[p+12>>2]=c;G[a+352>>1]=H[d>>2];break s;case 22:b=x;X:{switch(H[d>>2]){default:if(!I[a+565|0]){break s}h=134;break j;case 1:b=y;break;case 0:break X}}c=H[b+4>>2];H[o>>2]=H[b>>2];H[o+4>>2]=c;H[o+32>>2]=H[b+32>>2];c=H[b+28>>2];H[o+24>>2]=H[b+24>>2];H[o+28>>2]=c;c=H[b+20>>2];H[o+16>>2]=H[b+16>>2];H[o+20>>2]=c;c=H[b+12>>2];H[o+8>>2]=H[b+8>>2];H[o+12>>2]=c;H[n+32>>2]=H[b+32>>2];c=H[b+28>>2];H[n+24>>2]=H[b+24>>2];H[n+28>>2]=c;c=H[b+20>>2];H[n+16>>2]=H[b+16>>2];H[n+20>>2]=c;c=H[b+12>>2];H[n+8>>2]=H[b+8>>2];H[n+12>>2]=c;c=H[b+4>>2];H[n>>2]=H[b>>2];H[n+4>>2]=c;H[p+32>>2]=H[b+32>>2];c=H[b+28>>2];H[p+24>>2]=H[b+24>>2];H[p+28>>2]=c;c=H[b+20>>2];H[p+16>>2]=H[b+16>>2];H[p+20>>2]=c;c=H[b+12>>2];H[p+8>>2]=H[b+8>>2];H[p+12>>2]=c;c=H[b+4>>2];H[p>>2]=H[b>>2];H[p+4>>2]=c;b=J[d>>1];G[a+352>>1]=b;G[a+350>>1]=b;G[a+348>>1]=b;break s;case 23:b=H[d>>2];if((b|0)<0){h=132;break j}H[a+308>>2]=b>>>0<65535?b:65535;break s;case 24:H[a+572>>2]=100;H[a+316>>2]=1;break s;case 25:H[a+572>>2]=101;H[a+316>>2]=0;break s;case 26:H[a+312>>2]=H[d>>2];break s;case 27:b=H[a+364>>2];c=H[a+368>>2];e=1;while(1){b=b+f|0;H[a+364>>2]=b;if((b|0)>=(c|0)){h=131;break j}d=I[b+j|0];F[a+372|0]=d;f=F[d+96128|0];H[a+376>>2]=f;if((d&254)==64){g=b+1|0;if((g|0)>=(c|0)){h=131;break j}f=2-N(I[g+j|0],f)|0;H[a+376>>2]=f}if((c|0)<(b+f|0)){h=131;break j}Y:{switch(d-88|0){case 0:e=e+1|0;if(e){continue}break s;case 1:e=e-1|0;break;default:break Y}}if(e){continue}break};break s;case 28:b=132;e=c;c=H[d>>2];Z:{if(!(e|c)){break Z}c=c+H[a+364>>2]|0;H[a+364>>2]=c;if((c|0)<0){break Z}e=H[a+432>>2];if((e|0)>0&(c|0)>H[H[(H[a+440>>2]+(e<<4)|0)-4>>2]+8>>2]){break Z}F[a+380|0]=0;if(H[d>>2]>=0){break s}c=H[a+628>>2]+1|0;H[a+628>>2]=c;b=139;if(c>>>0<=K[a+632>>2]){break s}}H[a+12>>2]=b;break r;case 29:H[a+324>>2]=H[d>>2];break s;case 30:H[a+328>>2]=H[d>>2];break s;case 31:Q=a,R=Rb(H[d>>2],H[a+264>>2]),H[Q+332>>2]=R;break s;case 32:H[d+4>>2]=H[d>>2];break s;case 34:H[a+32>>2]=0;break s;case 35:Q=d,R=lma(H[d>>2],H[d+4>>2]),H[Q>>2]=R;H[d+4>>2]=yb;break s;case 36:H[d>>2]=H[a+16>>2];break s;case 37:b=H[d>>2];_:{if(!((b|0)>0&(b|0)<=(c|0))){b=0;if(!I[a+565|0]){break _}H[a+12>>2]=134;H[d>>2]=0;break s}b=H[(c-b<<2)+g>>2]}H[d>>2]=b;break s;case 38:b=H[d>>2];if(!((b|0)>0&(b|0)<=(c|0))){if(!I[a+565|0]){break s}h=134;break j}c=(c-b<<2)+g|0;e=H[c>>2];$c(c,c+4|0,(b<<2)-4|0);H[(H[a+24>>2]+(H[a+28>>2]<<2)|0)-4>>2]=e;break s;case 39:$:{b=J[d>>1];if(b>>>0>1]){c=J[d+4>>1];if(c>>>0>1]){break $}}if(!I[a+565|0]){break s}h=134;break j}d=b;e=H[a+52>>2]+(c<<3)|0;b=H[a+88>>2]+(b<<3)|0;b=(zb[H[a+576>>2]](a,H[e>>2]-H[b>>2]|0,H[e+4>>2]-H[b+4>>2]|0)|0)/2|0;zb[H[a+588>>2]](a,n,d,b);zb[H[a+588>>2]](a,o,c,0-b|0);break s;case 40:ei(a);break s;case 41:b=J[d>>1];if(b>>>0>=J[a+44>>1]){if(!I[a+565|0]){break s}h=134;break j}b=b+H[a+60>>2]|0;c=b;d=I[b|0];b=J[a+302>>1]?-9:-1;F[c|0]=d&(J[a+304>>1]?b&239:b);break s;case 42:b=134;f=H[d+4>>2];c=H[a+424>>2]+1|0;aa:{if(f>>>0>=c>>>0){break aa}e=H[a+408>>2];g=H[a+400>>2];ba:{if((g|0)==(c|0)){c=e+N(f,24)|0;if((f|0)==H[(e?c:0)+12>>2]){break ba}}c=e;e=c?c+N(g,24)|0:0;ca:{if(c>>>0>=e>>>0){break ca}while(1){if((f|0)==H[c+12>>2]){break ca}c=c+24|0;if(e>>>0>c>>>0){continue}break}}if((c|0)==(e|0)){break aa}}if(!I[c+16|0]){break aa}b=130;e=H[a+432>>2];if((e|0)>=H[a+436>>2]){break aa}if(H[d>>2]<=0){break s}b=H[a+440>>2]+(e<<4)|0;H[b>>2]=H[a+356>>2];H[b+4>>2]=H[a+364>>2]+1;f=H[d>>2];H[b+12>>2]=c;H[b+8>>2]=f;H[a+432>>2]=e+1;b=H[c>>2];da:{if(b-4>>>0<=4294967292){H[a+12>>2]=132;break da}e=(b-1<<3)+a|0;f=H[e+448>>2];if(!f){H[a+12>>2]=138;break da}e=H[e+452>>2];c=H[c+4>>2];if((e|0)<(c|0)){H[a+12>>2]=131;break da}H[a+368>>2]=e;H[a+360>>2]=f;H[a+364>>2]=c;H[a+356>>2]=b}F[a+380|0]=0;c=H[a+620>>2]+H[d>>2]|0;H[a+620>>2]=c;b=139;if(c>>>0<=K[a+624>>2]){break s}}H[a+12>>2]=b;break r;case 43:h=134;b=H[a+424>>2]+1|0;e=H[d>>2];if(b>>>0<=e>>>0){break j}c=H[a+408>>2];if(!c){break j}f=H[a+400>>2];ea:{if((f|0)==(b|0)){b=c+N(e,24)|0;if((e|0)==H[b+12>>2]){break ea}}d=c+N(f,24)|0;b=c;fa:{if((f|0)<=0){break fa}while(1){if((e|0)==H[b+12>>2]){break fa}b=b+24|0;if(d>>>0>b>>>0){continue}break}}if((b|0)==(d|0)){break j}}if(!I[b+16|0]){break j}h=130;e=H[a+432>>2];if((e|0)>=H[a+436>>2]){break j}c=H[a+440>>2]+(e<<4)|0;H[c>>2]=H[a+356>>2];f=H[a+364>>2];H[c+12>>2]=b;H[c+8>>2]=1;H[c+4>>2]=f+1;H[a+432>>2]=e+1;c=H[b>>2];ga:{if(c-4>>>0<=4294967292){H[a+12>>2]=132;break ga}e=(c-1<<3)+a|0;f=H[e+448>>2];if(!f){H[a+12>>2]=138;break ga}e=H[e+452>>2];b=H[b+4>>2];if((e|0)<(b|0)){H[a+12>>2]=131;break ga}H[a+368>>2]=e;H[a+360>>2]=f;H[a+364>>2]=b;H[a+356>>2]=c}F[a+380|0]=0;break s;case 44:g=H[a+356>>2];if((g|0)==3){h=156;break j}b=H[a+408>>2];ha:{ia:{if(!b){e=H[a+400>>2];h=H[d>>2];c=0;break ia}e=H[a+400>>2];c=N(e,24)+b|0;h=H[d>>2];ja:{if((e|0)<=0){break ja}while(1){if(H[b+12>>2]==(h|0)){break ja}b=b+24|0;if(c>>>0>b>>>0){continue}break}}if((b|0)!=(c|0)){break ha}}if(K[a+404>>2]<=e>>>0){h=140;break j}H[a+400>>2]=e+1;b=c}if(h>>>0>65535){h=140;break j}H[b+12>>2]=h;H[b>>2]=g;c=H[a+364>>2];H[b+20>>2]=0;G[b+16>>1]=1;H[b+4>>2]=c+1;if(K[a+424>>2]>>0){H[a+424>>2]=h}d=H[a+368>>2];while(1){c=c+f|0;H[a+364>>2]=c;if((c|0)>=(d|0)){h=131;break j}e=I[c+j|0];F[a+372|0]=e;f=F[e+96128|0];H[a+376>>2]=f;if((e&254)==64){g=c+1|0;if((g|0)>=(d|0)){h=131;break j}f=2-N(I[g+j|0],f)|0;H[a+376>>2]=f}if((d|0)<(c+f|0)){h=131;break j}h=137;ka:{switch(e-44|0){case 1:H[b+8>>2]=c;break s;case 0:break j;default:break ka}}if((e|0)!=137){continue}break};break j;case 33:case 89:case 126:case 127:H[a+16>>2]=e;break q;default:if(i>>>0>=224){c=H[d+4>>2];b=0;la:{ma:{f=H[d>>2];e=f&65535;na:{if(e>>>0>=J[a+80>>1]){break na}d=c+1|0;if(d>>>0>=H[a+384>>2]+1>>>0){break na}if(J[a+288>>1]>1]){break ma}}if(!I[a+565|0]){break la}H[a+12>>2]=134;break la}if(d){b=zb[H[a+600>>2]](a,c)|0}c=H[a+332>>2];g=b-c|0;d=g>>31;b=H[a+328>>2]>((d^g)-d|0)?(b|0)>=0?c:0-c|0:b;if(!J[a+350>>1]){d=G[a+302>>1];c=d>>31;i=(c^d)-c|0;c=b>>31;h=(c^b)-c|0;j=h>>>16|0;m=N(i,j);g=m<<16|8192;q=e<<3;c=q+H[a+84>>2]|0;s=H[a+48>>2]+(J[a+288>>1]<<3)|0;l=g;r=i;i=h&65535;g=g+N(r,i)|0;g=(m>>>16|0)+(l>>>0>g>>>0)<<18|g>>>14;H[c>>2]=H[s>>2]+((b^d)>=0?g:0-g|0);d=G[a+304>>1];g=d>>31;h=(d^g)-g|0;j=N(h,j);g=j<<16|8192;m=g;g=g+N(h,i)|0;g=(j>>>16|0)+(m>>>0>g>>>0)<<18|g>>>14;H[c+4>>2]=H[s+4>>2]+((b^d)>=0?g:0-g|0);g=H[c+4>>2];d=q+H[a+88>>2]|0;H[d>>2]=H[c>>2];H[d+4>>2]=g}e=e<<3;c=e+H[a+84>>2]|0;d=H[a+48>>2]+(J[a+288>>1]<<3)|0;c=zb[H[a+580>>2]](a,H[c>>2]-H[d>>2]|0,H[c+4>>2]-H[d+4>>2]|0)|0;e=e+H[a+88>>2]|0;d=H[a+52>>2]+(J[a+288>>1]<<3)|0;g=zb[H[a+576>>2]](a,H[e>>2]-H[d>>2]|0,H[e+4>>2]-H[d+4>>2]|0)|0;b=I[a+320|0]?(b^c)<0?0-b|0:b:b;e=I[a+372|0];oa:{if(e&4){if(J[a+348>>1]==J[a+350>>1]){i=b-c|0;d=i>>31;b=H[a+324>>2]<((d^i)-d|0)?c:b}b=zb[H[a+572>>2]](a,b,e&3)|0;e=I[a+372|0];break oa}d=H[(((e&3)<<2)+a|0)+268>>2];if((b|0)>=0){b=b+d|0;b=(b|0)>0?b:0;break oa}b=b-d|0;b=b>>31&b}d=a+72|0;pa:{if(!(e&8)){break pa}e=H[a+312>>2];if((c|0)>=0){b=(b|0)>(e|0)?b:e;break pa}c=0-e|0;b=(b|0)<(c|0)?b:c}zb[H[a+588>>2]](a,d,f&65535,b-g|0)}G[a+290>>1]=J[a+288>>1];if(I[a+372|0]&16){G[a+288>>1]=f}G[a+292>>1]=f;break s}if(i>>>0>=192){qa:{ra:{f=H[d>>2];d=f&65535;if(d>>>0>1]){b=J[a+288>>1];if(b>>>0>1]){break ra}}if(!I[a+565|0]){break qa}H[a+12>>2]=134;break qa}sa:{if(!(J[a+350>>1]?J[a+348>>1]:0)){c=H[a+84>>2]+(d<<3)|0;b=H[a+48>>2]+(b<<3)|0;b=zb[H[a+580>>2]](a,H[c>>2]-H[b>>2]|0,H[c+4>>2]-H[b+4>>2]|0)|0;break sa}b=H[a+56>>2]+(b<<3)|0;c=H[a+92>>2]+(d<<3)|0;e=H[a+224>>2];if((e|0)==H[a+228>>2]){b=Rb(zb[H[a+580>>2]](a,H[c>>2]-H[b>>2]|0,H[c+4>>2]-H[b+4>>2]|0)|0,H[a+224>>2]);break sa}b=(R=a,S=Rb(H[c>>2]-H[b>>2]|0,e),T=Rb(H[c+4>>2]-H[b+4>>2]|0,H[a+228>>2]),Q=H[a+580>>2],zb[Q](R|0,S|0,T|0)|0)}e=H[a+328>>2];ta:{if((e|0)<=0){break ta}c=H[a+332>>2];if((c+e|0)<=(b|0)|(c-e|0)>=(b|0)){break ta}b=(b|0)>=0?c:0-c|0}e=I[a+372|0];ua:{if(e&4){c=zb[H[a+572>>2]](a,b,e&3)|0;e=I[a+372|0];break ua}c=H[(((e&3)<<2)+a|0)+268>>2];if((b|0)>=0){c=b+c|0;c=(c|0)>0?c:0;break ua}c=b-c|0;c=c>>31&c}g=a+72|0;va:{if(!(e&8)){break va}e=H[a+312>>2];if((b|0)>=0){c=(c|0)>(e|0)?c:e;break va}b=0-e|0;c=(b|0)>(c|0)?c:b}e=c;b=H[a+88>>2]+(d<<3)|0;c=H[a+52>>2]+(J[a+288>>1]<<3)|0;T=a,S=g,R=f&65535,U=e-(zb[H[a+576>>2]](a,H[b>>2]-H[c>>2]|0,H[b+4>>2]-H[c+4>>2]|0)|0)|0,Q=H[a+588>>2],zb[Q](T|0,S|0,R|0,U|0)}G[a+292>>1]=f;G[a+290>>1]=J[a+288>>1];if(I[a+372|0]&16){G[a+288>>1]=f}break s}if(i>>>0>=184){b=I[a+372|0]+65353&65535;if(b>>>0>=(H[a+20>>2]-H[a+16>>2]|0)+1>>>0){H[a+12>>2]=130;break s}e=H[a+364>>2];c=e+1|0;H[a+364>>2]=c;wa:{if(!b){break wa}H[a+364>>2]=e+3;g=c;c=H[a+360>>2];H[d>>2]=(I[g+c|0]<<8|I[(c+e|0)+2|0])<<16>>16;e=1;if((b|0)==1){break wa}f=b-1|0;g=f&1;if((b|0)!=2){f=f&-2;b=0;while(1){i=H[a+364>>2];H[a+364>>2]=i+2;h=d+(e<<2)|0;i=c+i|0;i=I[i|0]|I[i+1|0]<<8;H[h>>2]=(i<<8|i>>>8)<<16>>16;i=H[a+364>>2];H[a+364>>2]=i+2;i=c+i|0;i=I[i|0]|I[i+1|0]<<8;H[h+4>>2]=(i<<8|i>>>8)<<16>>16;e=e+2|0;b=b+2|0;if((f|0)!=(b|0)){continue}break}}if(!g){break wa}b=H[a+364>>2];H[a+364>>2]=b+2;b=b+c|0;b=I[b|0]|I[b+1|0]<<8;H[d+(e<<2)>>2]=(b<<8|b>>>8)<<16>>16}F[a+380|0]=0;break s}if(i>>>0>=176){e=I[a+372|0]+65361|0;b=e&65535;if(b>>>0<(H[a+20>>2]-H[a+16>>2]|0)+1>>>0){if(b){f=H[a+360>>2];b=1;c=1;while(1){H[(d+(b<<2)|0)-4>>2]=I[f+(H[a+364>>2]+b|0)|0];c=c+1|0;b=c&65535;if(b>>>0<=(e&65535)>>>0){continue}break}}break s}H[a+12>>2]=130;break s}ei(a);break s;case 146:if(H[H[a>>2]+736>>2]){H[d>>2]=17;break s}ei(a);break s;case 145:if(H[H[a>>2]+736>>2]){i=0;h=0;c=H[H[a>>2]+736>>2];b=H[c>>2];if(b>>>0>=(H[a+20>>2]-H[a+16>>2]|0)+1>>>0){H[a+12>>2]=130;break s}e=H[c+8>>2];xa:{if(e){if(!b){break xa}c=0;if(b-1>>>0>=3){g=b&-4;while(1){f=c<<2;H[f+d>>2]=H[e+f>>2]>>2;j=f|4;H[j+d>>2]=H[e+j>>2]>>2;j=f|8;H[j+d>>2]=H[e+j>>2]>>2;f=f|12;H[f+d>>2]=H[e+f>>2]>>2;c=c+4|0;h=h+4|0;if((g|0)!=(h|0)){continue}break}}b=b&3;if(!b){break xa}while(1){f=c<<2;H[f+d>>2]=H[e+f>>2]>>2;c=c+1|0;i=i+1|0;if((b|0)!=(i|0)){continue}break}break xa}if(!b){break xa}Nb(d,0,b<<2)}break s}ei(a);break s;case 143:case 144:ei(a);break s;case 142:c=H[d+4>>2];if(c-4>>>0<=4294967292){if(!I[a+565|0]){break s}h=134;break j}b=H[d>>2];e=1<>2]+96>>2]+64>>2]!=40){break s}F[a+615|0]=(b|0)!=4;break s;case 141:b=H[d>>2];if((b|0)<0){break s}H[a+344>>2]=b&65535;break s;case 140:b=H[d+4>>2];if((b|0)>=H[d>>2]){break s}H[d>>2]=b;break s;case 139:b=H[d+4>>2];if((b|0)<=H[d>>2]){break s}H[d>>2]=b;break s;case 138:b=H[d+8>>2];c=H[d+4>>2];H[d+8>>2]=H[d>>2];H[d>>2]=c;H[d+4>>2]=b;break s;case 137:g=H[a+356>>2];if((g|0)==3){h=156;break j}e=H[a+412>>2];b=H[a+420>>2];ya:{za:{if(!b){c=0;break za}c=N(e,24)+b|0;Aa:{if((e|0)<=0){break Aa}i=H[d>>2];while(1){if((i|0)==H[b+12>>2]){break Aa}b=b+24|0;if(c>>>0>b>>>0){continue}break}}if((b|0)!=(c|0)){break ya}}if(e>>>0>=K[a+416>>2]){h=141;break j}H[a+412>>2]=e+1;b=c}c=H[d>>2];if(c>>>0>255){h=141;break j}H[b+12>>2]=c;c=H[a+364>>2];F[b+16|0]=1;H[b>>2]=g;H[b+4>>2]=c+1;e=H[d>>2];if(e>>>0>K[a+428>>2]){H[a+428>>2]=e&255}d=H[a+368>>2];while(1){c=c+f|0;H[a+364>>2]=c;if((c|0)>=(d|0)){h=131;break j}e=I[c+j|0];F[a+372|0]=e;f=F[e+96128|0];H[a+376>>2]=f;if((e&254)==64){g=c+1|0;if((g|0)>=(d|0)){h=131;break j}f=2-N(I[g+j|0],f)|0;H[a+376>>2]=f}if((d|0)<(c+f|0)){h=131;break j}h=137;Ba:{switch(e-44|0){default:if((e|0)!=137){continue}break j;case 0:break j;case 1:break Ba}}break};H[b+8>>2]=c;break s;case 136:b=0;c=H[d>>2];b=c&1?H[H[H[a>>2]+96>>2]+64>>2]:b;b=c&2?I[a+285|0]?b|256:b:b;b=c&4?I[a+286|0]?b|512:b:b;b=c&8?H[H[a>>2]+736>>2]?b|1024:b:b;b=c&32?I[a+612|0]?b|4096:b:b;Ca:{if(!I[a+613|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40){break Ca}e=c<<7;b=e&8192|b;if(c&256){b=I[a+614|0]?b|32768:b}b=e&393216|b;if(!(c&4096)){break Ca}b=I[a+618|0]?b|524288:b}H[d>>2]=b;break s;case 134:case 135:Da:{b=J[d>>1];if(b>>>0>1]){c=J[d+4>>1];if(c>>>0>1]){break Da}}if(!I[a+565|0]){break s}h=134;break j}e=b<<3;f=e+H[a+84>>2]|0;d=H[f+4>>2];g=c<<3;c=g+H[a+120>>2]|0;h=H[c+4>>2];b=d-h|0;f=H[f>>2];j=H[c>>2];c=(f|0)==(j|0)&(d|0)==(h|0);f=c?16384:f-j|0;c=c|!(i&1);d=c?b:f;b=c?f:0-b|0;if(d|b){H[k+28>>2]=d;H[k+24>>2]=b;Lj(k+24|0);G[a+294>>1]=H[k+24>>2]/4;G[a+296>>1]=H[k+28>>2]/4}e=e+H[a+88>>2]|0;f=H[e+4>>2];d=g+H[a+124>>2]|0;g=H[d+4>>2];b=f-g|0;i=H[e>>2];d=H[d>>2];e=(i|0)==(d|0)&(f|0)==(g|0);f=e?16384:i-d|0;c=c|e;e=c?b:f;b=c?f:0-b|0;if(e|b){H[k+28>>2]=e;H[k+24>>2]=b;Lj(k+24|0);G[a+298>>1]=H[k+24>>2]/4;G[a+300>>1]=H[k+28>>2]/4}e=J[a+302>>1];Ea:{if((e|0)==16384){b=G[a+298>>1];H[a+568>>2]=b;h=b;break Ea}b=G[a+304>>1];if((b|0)==16384){b=G[a+300>>1];H[a+568>>2]=b;h=J[a+298>>1];break Ea}h=G[a+298>>1];b=N(b,G[a+300>>1])+N(h,e<<16>>16)>>14;H[a+568>>2]=b}c=90;H[a+576>>2]=(h&65535)!=16384?J[a+300>>1]==16384?91:92:90;c=J[a+294>>1]!=16384?J[a+296>>1]==16384?91:93:c;H[a+592>>2]=94;H[a+588>>2]=95;H[a+580>>2]=c;Fa:{if((b|0)!=16384){break Fa}Ga:{if((e|0)==16384){f=97;c=96;break Ga}if(J[a+304>>1]!=16384){break Fa}f=99;c=98}H[a+592>>2]=c;H[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023){H[a+568>>2]=16384}H[a+260>>2]=0;break s;case 133:b=H[d>>2];c=b&255;if((c|0)==255){F[a+341|0]=1;break s}if(!c){F[a+341|0]=0;break s}if(!(!(b&256)|c>>>0>1])){F[a+341|0]=1}if(!(!(b&512)|!I[a+285|0])){F[a+341|0]=1}if(!(!(b&1024)|!I[a+286|0])){F[a+341|0]=1}if(!(!(b&2048)|c>>>0>=J[a+256>>1])){F[a+341|0]=0}if(!(!(b&4096)|!I[a+285|0])){F[a+341|0]=0}if(!(b&8192)|!I[a+286|0]){break s}F[a+341|0]=0;break s;case 131:case 132:ei(a);break s;case 130:if(!(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40))){if(I[a+617|0]){break s}}Ha:{e=J[d+4>>1];b=J[a+152>>1];if(e>>>0>=b>>>0){break Ha}c=J[d>>1];if(b>>>0<=c>>>0){break Ha}if(c>>>0>e>>>0){break s}f=0;b=c;d=e-b|0;g=d+1&3;if(g){while(1){c=H[a+168>>2]+c|0;F[c|0]=I[c|0]&254;b=b+1|0;c=b&65535;f=f+1|0;if((g|0)!=(f&65535)){continue}break}}if((d&65535)>>>0<3){break s}while(1){c=H[a+168>>2]+c|0;F[c|0]=I[c|0]&254;c=H[a+168>>2]+(b+1&65535)|0;F[c|0]=I[c|0]&254;c=H[a+168>>2]+(b+2&65535)|0;F[c|0]=I[c|0]&254;c=H[a+168>>2]+(b+3&65535)|0;F[c|0]=I[c|0]&254;b=b+4|0;c=b&65535;if(e>>>0>=c>>>0){continue}break}break s}if(!I[a+565|0]){break s}h=134;break j;case 129:if(!(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40))){if(I[a+617|0]){break s}}Ia:{e=J[d+4>>1];b=J[a+152>>1];if(e>>>0>=b>>>0){break Ia}c=J[d>>1];if(b>>>0<=c>>>0){break Ia}if(c>>>0>e>>>0){break s}f=0;b=c;d=e-b|0;g=d+1&3;if(g){while(1){c=H[a+168>>2]+c|0;F[c|0]=I[c|0]|1;b=b+1|0;c=b&65535;f=f+1|0;if((g|0)!=(f&65535)){continue}break}}if((d&65535)>>>0<3){break s}while(1){c=H[a+168>>2]+c|0;F[c|0]=I[c|0]|1;c=H[a+168>>2]+(b+1&65535)|0;F[c|0]=I[c|0]|1;c=H[a+168>>2]+(b+2&65535)|0;F[c|0]=I[c|0]|1;c=H[a+168>>2]+(b+3&65535)|0;F[c|0]=I[c|0]|1;b=b+4|0;c=b&65535;if(e>>>0>=c>>>0){continue}break}break s}if(!I[a+565|0]){break s}h=134;break j;case 128:Ja:{if(!(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40))){if(I[a+617|0]){break Ja}}Ka:{b=H[a+308>>2];if((b|0)<=H[a+16>>2]){if((b|0)>0){break Ka}break Ja}if(!I[a+565|0]){break Ja}H[a+12>>2]=129;break Ja}while(1){c=c-1|0;H[a+28>>2]=c;c=J[(c<<2)+g>>1];La:{if(c>>>0>=J[a+152>>1]){if(!I[a+565|0]){break La}h=134;break j}b=c+H[a+168>>2]|0;F[b|0]=I[b|0]^1;b=H[a+308>>2]}e=b-1|0;H[a+308>>2]=e;c=H[a+28>>2];if((b|0)<2){break Ja}g=H[a+24>>2];b=e;continue}}H[a+32>>2]=c;H[a+308>>2]=1;break s;case 125:H[a+572>>2]=102;H[a+316>>2]=3;break s;case 124:H[a+572>>2]=103;H[a+316>>2]=4;break s;case 123:ei(a);break s;case 122:H[a+572>>2]=104;H[a+316>>2]=5;break s;case 121:if(H[d+4>>2]){break s}b=132;e=c;c=H[d>>2];Ma:{if(!(e|c)){break Ma}c=c+H[a+364>>2]|0;H[a+364>>2]=c;if((c|0)<0){break Ma}e=H[a+432>>2];if((e|0)>0&(c|0)>H[H[(H[a+440>>2]+(e<<4)|0)-4>>2]+8>>2]){break Ma}F[a+380|0]=0;if(H[d>>2]>=0){break s}c=H[a+628>>2]+1|0;H[a+628>>2]=c;b=139;if(c>>>0<=K[a+632>>2]){break s}}H[a+12>>2]=b;break r;case 120:if(!H[d+4>>2]){break s}b=132;e=c;c=H[d>>2];Na:{if(!(e|c)){break Na}c=c+H[a+364>>2]|0;H[a+364>>2]=c;if((c|0)<0){break Na}e=H[a+432>>2];if((e|0)>0&(c|0)>H[H[(H[a+440>>2]+(e<<4)|0)-4>>2]+8>>2]){break Na}F[a+380|0]=0;if(H[d>>2]>=0){break s}c=H[a+628>>2]+1|0;H[a+628>>2]=c;b=139;if(c>>>0<=K[a+632>>2]){break s}}H[a+12>>2]=b;break r;case 119:e=H[d>>2];c=e>>>4|0;b=H[(c&12)+98200>>2];Oa:{Pa:{Qa:{Ra:{c=c&3;switch(c-1|0){case 2:break Pa;case 1:break Qa;case 0:break Ra;default:break Oa}}c=b>>>10|0;break Oa}c=b>>>9|0;break Oa}c=N(b,3)>>>10|0}H[a+484>>2]=c;H[a+572>>2]=105;H[a+316>>2]=7;c=e&15;if(c){c=(N(b,c-4|0)|0)/8|0}else{c=b-1|0}H[a+488>>2]=c>>8;H[a+480>>2]=b>>>8;break s;case 118:e=H[d>>2];c=e>>>4|0;b=H[(c&12)+98184>>2];Sa:{Ta:{Ua:{Va:{c=c&3;switch(c-1|0){case 2:break Ta;case 1:break Ua;case 0:break Va;default:break Sa}}c=b>>>10|0;break Sa}c=b>>>9|0;break Sa}c=N(b,3)>>>10|0}H[a+484>>2]=c;H[a+572>>2]=106;H[a+316>>2]=6;c=e&15;if(c){c=(N(b,c-4|0)|0)/8|0}else{c=b-1|0}H[a+488>>2]=c>>8;H[a+480>>2]=b>>>8;break s;case 115:case 116:case 117:e=zb[H[a+596>>2]](a)|0;c=1;f=H[d>>2];Wa:{if(!f){break Wa}while(1){b=H[a+28>>2];if((b|0)<=1){if(I[a+565|0]){H[a+12>>2]=129}H[a+28>>2]=0;break Wa}d=b-2|0;H[a+28>>2]=d;g=b<<2;b=H[a+24>>2];g=H[(g+b|0)-4>>2];Xa:{if(g>>>0>=K[a+384>>2]){if(!I[a+565|0]){break Xa}h=134;break j}d=H[b+(d<<2)>>2];b=d>>>4&15;Ya:{Za:{switch(I[a+372|0]-116|0){case 0:b=b|16;break Ya;case 1:break Za;default:break Ya}}b=b|32}if((e|0)!=(J[a+336>>1]+b|0)){break Xa}b=d&15;zb[H[a+608>>2]](a,g,(b>>>0>7?-7:-8)+b<<6-J[a+338>>1])}c=c+1|0;if(f>>>0>=c>>>0){continue}break}}H[a+32>>2]=H[a+28>>2];break s;case 113:case 114:ku(a,d);break s;case 112:b=H[d>>2];if(b>>>0>=K[a+384>>2]){if(!I[a+565|0]){break s}h=134;break j}c=Rb(H[d+4>>2],H[a+264>>2]);H[H[a+388>>2]+(b<<2)>>2]=c;break s;case 108:case 109:case 110:case 111:b=H[(((i&3)<<2)+a|0)+268>>2];c=H[d>>2];if((c|0)>=0){b=b+c|0;H[d>>2]=(b|0)>0?b:0;break s}b=c-b|0;H[d>>2]=b>>31&b;break s;case 104:case 105:case 106:case 107:Q=d,U=zb[H[a+572>>2]](a,H[d>>2],i&3)|0,H[Q>>2]=U;break s;case 103:H[d>>2]=H[d>>2]+63&-64;break s;case 102:H[d>>2]=H[d>>2]&-64;break s;case 101:H[d>>2]=0-H[d>>2];break s;case 100:b=H[d>>2];if((b|0)>=0){break s}H[d>>2]=0-b;break s;case 99:Q=d,U=ic(H[d>>2],H[d+4>>2],64),H[Q>>2]=U;break s;case 98:b=H[d+4>>2];if(!b){h=133;break j}Q=d,U=rr(H[d>>2],64,b),H[Q>>2]=U;break s;case 97:H[d>>2]=H[d>>2]-H[d+4>>2];break s;case 96:H[d>>2]=H[d+4>>2]+H[d>>2];break s;case 95:b=H[d>>2];if(b>>>0>6){h=132;break j}G[a+338>>1]=b;break s;case 94:G[a+336>>1]=H[d>>2];break s;case 93:ku(a,d);break s;case 92:H[d>>2]=!H[d>>2];break s;case 91:H[d>>2]=H[d>>2]?1:H[d+4>>2]!=0;break s;case 90:if(!H[d>>2]){H[d>>2]=0;break s}H[d>>2]=H[d+4>>2]!=0;break s;case 88:if(H[d>>2]){break s}c=H[a+364>>2];e=H[a+368>>2];l=1;_a:while(1){c=c+f|0;H[a+364>>2]=c;$a:{if((l|0)==1){if((c|0)>=(e|0)){h=131;break j}b=I[c+j|0];F[a+372|0]=b;f=F[b+96128|0];H[a+376>>2]=f;if((b&254)==64){d=c+1|0;if((d|0)>=(e|0)){h=131;break j}f=2-N(I[d+j|0],f)|0;H[a+376>>2]=f}if((e|0)<(c+f|0)){h=131;break j}ab:{switch(b-88|0){case 1:break s;case 0:break $a;default:break ab}}l=1;if((b|0)!=27){continue}break s}if((c|0)>=(e|0)){h=131;break j}bb:{while(1){d=I[c+j|0];F[a+372|0]=d;f=F[d+96128|0];H[a+376>>2]=f;if((d&254)==64){b=c+1|0;if((b|0)>=(e|0)){h=131;break j}f=2-N(I[b+j|0],f)|0;H[a+376>>2]=f}b=c+f|0;if((b|0)>(e|0)){h=131;break j}if((d|0)!=27){switch(d-88|0){case 0:break $a;case 1:break bb;default:continue _a}}H[a+364>>2]=b;c=b;if((b|0)<(e|0)){continue}break}h=131;break j}l=l-1|0;if(l){continue}break s}l=l+1|0;continue};case 87:Q=d,U=!(zb[H[a+572>>2]](a,H[d>>2],3)&127),H[Q>>2]=U;break s;case 86:Q=d,U=(zb[H[a+572>>2]](a,H[d>>2],3)&127)==64,H[Q>>2]=U;break s;case 85:H[d>>2]=H[d>>2]!=H[d+4>>2];break s;case 84:H[d>>2]=H[d>>2]==H[d+4>>2];break s;case 83:H[d>>2]=H[d>>2]>=H[d+4>>2];break s;case 82:H[d>>2]=H[d>>2]>H[d+4>>2];break s;case 81:H[d>>2]=H[d>>2]<=H[d+4>>2];break s;case 80:H[d>>2]=H[d>>2]>2];break s;case 78:F[a+320|0]=0;break s;case 77:F[a+320|0]=1;break s;case 76:if(H[H[H[a>>2]+96>>2]+64>>2]==35){Q=d,U=zb[H[a+596>>2]](a)|0,H[Q>>2]=U;break s}H[d>>2]=H[a+216>>2];break s;case 75:Q=d,U=zb[H[a+596>>2]](a)|0,H[Q>>2]=U;break s;case 73:case 74:cb:{db:{c=J[d>>1];if(c>>>0>1]){b=J[d+4>>1];if(b>>>0>1]){break db}}b=0;if(!I[a+565|0]){break cb}H[a+12>>2]=134;H[d>>2]=0;break s}if(i&1){c=H[a+52>>2]+(c<<3)|0;b=H[a+88>>2]+(b<<3)|0;Q=d,U=zb[H[a+576>>2]](a,H[c>>2]-H[b>>2]|0,H[c+4>>2]-H[b+4>>2]|0)|0,H[Q>>2]=U;break s}if(!(J[a+350>>1]?J[a+348>>1]:0)){c=H[a+48>>2]+(c<<3)|0;b=H[a+84>>2]+(b<<3)|0;Q=d,U=zb[H[a+580>>2]](a,H[c>>2]-H[b>>2]|0,H[c+4>>2]-H[b+4>>2]|0)|0,H[Q>>2]=U;break s}b=H[a+92>>2]+(b<<3)|0;c=H[a+56>>2]+(c<<3)|0;e=H[a+224>>2];if((e|0)==H[a+228>>2]){Q=d,U=Rb(zb[H[a+580>>2]](a,H[c>>2]-H[b>>2]|0,H[c+4>>2]-H[b+4>>2]|0)|0,H[a+224>>2]),H[Q>>2]=U;break s}b=(U=a,R=Rb(H[c>>2]-H[b>>2]|0,e),S=Rb(H[c+4>>2]-H[b+4>>2]|0,H[a+228>>2]),Q=H[a+580>>2],zb[Q](U|0,R|0,S|0)|0)}H[d>>2]=b;break s;case 72:b=J[d>>1];if(b>>>0>=J[a+116>>1]){if(!I[a+565|0]){break s}h=134;break j}c=b<<3;e=c+H[a+124>>2]|0;e=zb[H[a+576>>2]](a,H[e>>2],H[e+4>>2])|0;zb[H[a+588>>2]](a,p,b,H[d+4>>2]-e|0);if(J[a+352>>1]){break s}b=c+H[a+120>>2]|0;c=c+H[a+124>>2]|0;e=H[c+4>>2];H[b>>2]=H[c>>2];H[b+4>>2]=e;break s;case 70:case 71:b=H[d>>2];eb:{if(b>>>0>=J[a+116>>1]){b=0;if(!I[a+565|0]){break eb}H[a+12>>2]=134;H[d>>2]=0;break s}if(i&1){b=H[a+120>>2]+(b<<3)|0;Q=d,S=zb[H[a+580>>2]](a,H[b>>2],H[b+4>>2])|0,H[Q>>2]=S;break s}b=H[a+124>>2]+(b<<3)|0;b=zb[H[a+576>>2]](a,H[b>>2],H[b+4>>2])|0}H[d>>2]=b;break s;case 69:b=H[d>>2];fb:{if(b>>>0>=K[a+384>>2]){b=0;if(!I[a+565|0]){break fb}h=134;break j}b=zb[H[a+600>>2]](a,b)|0}H[d>>2]=b;break s;case 68:b=H[d>>2];if(b>>>0>=K[a+384>>2]){if(!I[a+565|0]){break s}h=134;break j}zb[H[a+604>>2]](a,b,H[d+4>>2]);break s;case 67:b=H[d>>2];gb:{if(b>>>0>=J[a+472>>1]){b=0;if(!I[a+565|0]){break gb}h=134;break j}b=H[H[a+476>>2]+(b<<2)>>2]}H[d>>2]=b;break s;case 66:b=H[d>>2];if(b>>>0>=J[a+472>>1]){if(!I[a+565|0]){break s}h=134;break j}H[H[a+476>>2]+(b<<2)>>2]=H[d+4>>2];break s;case 65:h=130;g=(b-H[a+16>>2]|0)+1|0;b=H[a+364>>2];c=b+j|0;e=I[c+1|0];if(g>>>0<=e>>>0){break j}f=b+2|0;H[a+364>>2]=f;hb:{if(!e){break hb}H[a+364>>2]=b+4;H[d>>2]=(I[c+3|0]|I[f+j|0]<<8)<<16>>16;b=1;if((e|0)==1){break hb}c=e-1|0;f=c&1;if((e|0)!=2){g=c&-2;c=0;while(1){i=H[a+364>>2];H[a+364>>2]=i+2;h=d+(b<<2)|0;i=i+j|0;i=I[i|0]|I[i+1|0]<<8;H[h>>2]=(i<<8|i>>>8)<<16>>16;i=H[a+364>>2];H[a+364>>2]=i+2;i=i+j|0;i=I[i|0]|I[i+1|0]<<8;H[h+4>>2]=(i<<8|i>>>8)<<16>>16;b=b+2|0;c=c+2|0;if((g|0)!=(c|0)){continue}break}}if(!f){break hb}c=H[a+364>>2];H[a+364>>2]=c+2;d=d+(b<<2)|0;b=c+j|0;b=I[b|0]|I[b+1|0]<<8;H[d>>2]=(b<<8|b>>>8)<<16>>16}F[a+380|0]=0;H[a+32>>2]=e+H[a+32>>2];break s;case 64:h=130;c=j+H[a+364>>2]|0;e=I[c+1|0];if(e>>>0>=(b-H[a+16>>2]|0)+1>>>0){break j}ib:{if(!e){break ib}b=2;H[d>>2]=I[c+2|0];if((e|0)==1){break ib}c=e-1|0;f=c&1;if((e|0)!=2){g=c&-2;c=0;while(1){i=d+(b<<2)|0;H[i-4>>2]=I[j+(H[a+364>>2]+(b|1)|0)|0];b=b+2|0;H[i>>2]=I[j+(b+H[a+364>>2]|0)|0];c=c+2|0;if((g|0)!=(c|0)){continue}break}}if(!f){break ib}H[(d+(b<<2)|0)-4>>2]=I[(j+(H[a+364>>2]+b|0)|0)+1|0]}H[a+32>>2]=e+H[a+32>>2];break s;case 62:case 63:jb:{kb:{c=J[d>>1];if(c>>>0>1]){b=H[d+4>>2];if(b>>>0>2]){break kb}}if(!I[a+565|0]){break jb}H[a+12>>2]=134;break jb}b=zb[H[a+600>>2]](a,b)|0;if(!J[a+348>>1]){f=G[a+302>>1];e=f>>31;g=(e^f)-e|0;e=b>>31;i=(e^b)-e|0;h=i>>>16|0;j=N(g,h);d=j<<16|8192;m=c<<3;e=m+H[a+48>>2]|0;q=d;s=g;g=i&65535;d=d+N(s,g)|0;d=(j>>>16|0)+(q>>>0>d>>>0)<<18|d>>>14;H[e>>2]=(b^f)>=0?d:0-d|0;f=G[a+304>>1];d=f>>31;i=(d^f)-d|0;h=N(i,h);d=h<<16|8192;j=d;d=d+N(g,i)|0;d=(h>>>16|0)+(j>>>0>d>>>0)<<18|d>>>14;H[e+4>>2]=(b^f)>=0?d:0-d|0;d=H[e+4>>2];f=m+H[a+52>>2]|0;H[f>>2]=H[e>>2];H[f+4>>2]=d}e=H[a+52>>2]+(c<<3)|0;e=zb[H[a+576>>2]](a,H[e>>2],H[e+4>>2])|0;if(F[a+372|0]&1){d=b-e|0;f=d>>31;b=zb[H[a+572>>2]](a,H[a+324>>2]<((d^f)-f|0)?e:b,3)|0}zb[H[a+588>>2]](a,o,c,b-e|0)}G[a+290>>1]=c;G[a+288>>1]=c;break s;case 61:H[a+572>>2]=107;H[a+316>>2]=2;break s;case 60:lb:{b=H[a+308>>2];if(!(J[a+288>>1]>1]&(b|0)<=H[a+16>>2])){if(!I[a+565|0]){break lb}H[a+12>>2]=134;break lb}if((b|0)<=0){break lb}while(1){c=c-1|0;H[a+28>>2]=c;c=J[(c<<2)+g>>1];mb:{if(c>>>0>=J[a+80>>1]){if(!I[a+565|0]){break mb}h=134;break j}d=c;b=H[a+88>>2]+(c<<3)|0;c=H[a+52>>2]+(J[a+288>>1]<<3)|0;S=a,R=n,U=d,T=0-(zb[H[a+576>>2]](a,H[b>>2]-H[c>>2]|0,H[b+4>>2]-H[c+4>>2]|0)|0)|0,Q=H[a+588>>2],zb[Q](S|0,R|0,U|0,T|0);b=H[a+308>>2]}e=b-1|0;H[a+308>>2]=e;c=H[a+28>>2];if((b|0)<2){break lb}g=H[a+24>>2];b=e;continue}}H[a+32>>2]=c;H[a+308>>2]=1;break s;case 58:case 59:nb:{b=J[d>>1];if(b>>>0>1]){c=J[a+288>>1];if(c>>>0>1]){break nb}}if(!I[a+565|0]){break s}h=134;break j}if(!J[a+350>>1]){c=H[a+48>>2]+(c<<3)|0;g=H[c+4>>2];e=b<<3;f=e+H[a+84>>2]|0;H[f>>2]=H[c>>2];H[f+4>>2]=g;zb[H[a+592>>2]](a,n,b,H[d+4>>2]);c=e+H[a+88>>2]|0;e=e+H[a+84>>2]|0;f=H[e+4>>2];H[c>>2]=H[e>>2];H[c+4>>2]=f;c=J[a+288>>1]}e=H[a+88>>2]+(b<<3)|0;c=H[a+52>>2]+(c<<3)|0;c=zb[H[a+576>>2]](a,H[e>>2]-H[c>>2]|0,H[e+4>>2]-H[c+4>>2]|0)|0;zb[H[a+588>>2]](a,n,b,H[d+4>>2]-c|0);G[a+292>>1]=b;G[a+290>>1]=J[a+288>>1];if(!(F[a+372|0]&1)){break s}G[a+288>>1]=b;break s;case 57:ob:{pb:{b=H[a+308>>2];qb:{if((b|0)>H[a+16>>2]){if(I[a+565|0]){break qb}break ob}c=1;c=!J[a+348>>1]|!J[a+350>>1]?c:!J[a+352>>1];e=J[a+290>>1];if(e>>>0>1]){break pb}if(!I[a+565|0]){break ob}}H[a+12>>2]=134;break ob}g=H[(c?48:56)+a>>2];f=e<<3;d=g+f|0;m=H[a+52>>2];i=m+f|0;h=0;f=0;j=J[a+292>>1];if(j>>>0>1]){rb:{if(c){b=H[a+84>>2]+(j<<3)|0;f=zb[H[a+580>>2]](a,H[b>>2]-H[d>>2]|0,H[b+4>>2]-H[(g+(e<<3)|0)+4>>2]|0)|0;break rb}b=H[a+224>>2];if((b|0)==H[a+228>>2]){b=H[a+92>>2]+(j<<3)|0;f=zb[H[a+580>>2]](a,H[b>>2]-H[d>>2]|0,H[b+4>>2]-H[(g+(e<<3)|0)+4>>2]|0)|0;break rb}f=(T=a,U=Rb(H[H[a+92>>2]+(j<<3)>>2]-H[d>>2]|0,b),R=Rb(H[(H[a+92>>2]+(J[a+292>>1]<<3)|0)+4>>2]-H[(g+(e<<3)|0)+4>>2]|0,H[a+228>>2]),Q=H[a+580>>2],zb[Q](T|0,U|0,R|0)|0)}b=H[a+88>>2]+(J[a+292>>1]<<3)|0;h=zb[H[a+576>>2]](a,H[b>>2]-H[i>>2]|0,H[b+4>>2]-H[(m+(e<<3)|0)+4>>2]|0)|0;b=H[a+308>>2]}if((b|0)<=0){break ob}e=e<<3;j=e+m|0;e=e+g|0;if(c){while(1){c=H[a+28>>2]-1|0;H[a+28>>2]=c;c=H[H[a+24>>2]+(c<<2)>>2];sb:{if(c>>>0>=J[a+116>>1]){if(!I[a+565|0]){break sb}h=134;break j}g=c<<3;b=g+H[a+120>>2]|0;b=zb[H[a+580>>2]](a,H[b>>2]-H[d>>2]|0,H[b+4>>2]-H[e+4>>2]|0)|0;g=g+H[a+124>>2]|0;g=zb[H[a+576>>2]](a,H[g>>2]-H[i>>2]|0,H[g+4>>2]-H[j+4>>2]|0)|0;m=a;c=c&65535;if(!(!b|!f)){b=ic(b,h,f)}zb[H[a+588>>2]](m,p,c,b-g|0);b=H[a+308>>2]}c=b;b=c-1|0;H[a+308>>2]=b;if((c|0)>1){continue}break ob}}while(1){c=H[a+28>>2]-1|0;H[a+28>>2]=c;c=H[H[a+24>>2]+(c<<2)>>2];tb:{if(c>>>0>=J[a+116>>1]){if(!I[a+565|0]){break tb}h=134;break j}b=H[a+224>>2];ub:{if((b|0)==H[a+228>>2]){b=H[a+128>>2]+(c<<3)|0;b=zb[H[a+580>>2]](a,H[b>>2]-H[d>>2]|0,H[b+4>>2]-H[e+4>>2]|0)|0;break ub}g=c<<3;b=(R=a,U=Rb(H[g+H[a+128>>2]>>2]-H[d>>2]|0,b),T=Rb(H[(g+H[a+128>>2]|0)+4>>2]-H[e+4>>2]|0,H[a+228>>2]),Q=H[a+580>>2],zb[Q](R|0,U|0,T|0)|0)}g=H[a+124>>2]+(c<<3)|0;g=zb[H[a+576>>2]](a,H[g>>2]-H[i>>2]|0,H[g+4>>2]-H[j+4>>2]|0)|0;m=a;c=c&65535;if(!(!b|!f)){b=ic(b,h,f)}zb[H[a+588>>2]](m,p,c,b-g|0);b=H[a+308>>2]}c=b;b=c-1|0;H[a+308>>2]=b;if((c|0)>1){continue}break}}H[a+308>>2]=1;H[a+32>>2]=H[a+28>>2];break s;case 56:f=1;f=!J[a+348>>1]|!J[a+350>>1]?f:!J[a+352>>1];vb:{b=H[a+308>>2];if((b|0)>=H[a+16>>2]){if(!I[a+565|0]){break vb}H[a+12>>2]=134;break vb}if((b|0)<=0){break vb}e=G[a+304>>1];i=e>>31;b=H[d>>2];d=b>>31;i=(e^i)-i|0;h=(b^d)-d|0;j=h>>>16|0;m=N(i,j);d=m<<16|8192;q=d;s=i;i=h&65535;d=d+N(s,i)|0;d=(m>>>16|0)+(q>>>0>d>>>0)<<18|d>>>14;h=(b^e)>=0?d:0-d|0;e=G[a+302>>1];d=e>>31;m=j;j=(d^e)-d|0;m=N(m,j);d=m<<16|8192;q=d;d=d+N(i,j)|0;d=(m>>>16|0)+(q>>>0>d>>>0)<<18|d>>>14;e=(b^e)>=0?d:0-d|0;while(1){b=c-1|0;H[a+28>>2]=b;b=J[(b<<2)+g>>1];wb:{if(b>>>0>=J[a+116>>1]){if(!I[a+565|0]){break wb}h=134;break j}xb:{yb:{zb:{Ab:{if(H[H[H[a>>2]+96>>2]+64>>2]==40){if(I[a+615|0]){Bb:{if(f){break Bb}if(I[a+617|0]?I[a+616|0]:0){break wb}if(J[a+304>>1]?I[a+564|0]:0){break Bb}if(!(I[b+H[a+132>>2]|0]&16)){break wb}}if(J[a+302>>1]){c=b+H[a+132>>2]|0;F[c|0]=I[c|0]|8}if(!J[a+304>>1]){break wb}if(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40|(!I[a+616|0]|!I[a+617|0])){break yb}break xb}if(J[a+302>>1]){break Ab}break zb}if(!J[a+302>>1]){break zb}}c=H[a+124>>2]+(b<<3)|0;H[c>>2]=e+H[c>>2];c=b+H[a+132>>2]|0;F[c|0]=I[c|0]|8}if(!J[a+304>>1]){break wb}if(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40)){break yb}if(I[a+617|0]){break xb}}c=H[a+124>>2]+(b<<3)|0;H[c+4>>2]=h+H[c+4>>2]}b=b+H[a+132>>2]|0;F[b|0]=I[b|0]|16}b=H[a+308>>2];H[a+308>>2]=b-1;c=H[a+28>>2];if((b|0)<2){break vb}g=H[a+24>>2];continue}}H[a+32>>2]=c;H[a+308>>2]=1;break s;case 54:case 55:if(K[d>>2]>=2){if(!I[a+565|0]){break s}H[a+12>>2]=134;break s}if(oo(a,k+16|0,k+12|0,k+24|0,k+22|0)){break s}Cb:{Db:{switch(J[a+352>>1]){case 0:b=J[a+116>>1];break Cb;case 1:break Db;default:break s}}b=G[a+118>>1];if((b|0)<=0){break s}b=J[(H[a+136>>2]+((b&65535)<<1)|0)-2>>1]+1|0}if(!(b&65535)){break s}c=H[k+12>>2];e=H[k+16>>2];f=H[k+40>>2];d=H[a+124>>2];if((f|0)==(d|0)){d=b&65535;b=0;g=J[k+22>>1];while(1){Eb:{if((b|0)==(g|0)){break Eb}if(!(!J[a+302>>1]|(I[a+615|0]?H[H[H[a>>2]+96>>2]+64>>2]==40:0))){i=f+(b<<3)|0;H[i>>2]=e+H[i>>2]}if(!J[a+304>>1]){break Eb}if(!(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40))){if(I[a+617|0]){break Eb}}i=f+(b<<3)|0;H[i+4>>2]=c+H[i+4>>2]}b=b+1|0;if((d|0)!=(b|0)){continue}break}break s}f=J[a+302>>1];if(!J[a+304>>1]){if(!f){break s}f=H[H[H[a>>2]+96>>2]+64>>2];c=0;g=b&65535;if((g|0)!=1){g=g&65534;h=0;while(1){if(!(I[a+615|0]?(f|0)==40:0)){i=d+(c<<3)|0;H[i>>2]=e+H[i>>2]}if(!(I[a+615|0]?(f|0)==40:0)){i=d+((c|1)<<3)|0;H[i>>2]=e+H[i>>2]}c=c+2|0;h=h+2|0;if((g|0)!=(h|0)){continue}break}}if(!(b&1)|(I[a+615|0]?(f|0)==40:0)){break s}b=d+(c<<3)|0;H[b>>2]=e+H[b>>2];break s}g=H[H[H[a>>2]+96>>2]+64>>2];if(!f){if((g|0)!=40){e=0;f=0;g=b&65535;if(g-1>>>0>=3){i=g&65532;l=0;while(1){g=f<<3;h=g+d|0;H[h+4>>2]=c+H[h+4>>2];h=d+(g|8)|0;H[h+4>>2]=c+H[h+4>>2];h=d+(g|16)|0;H[h+4>>2]=c+H[h+4>>2];g=d+(g|24)|0;H[g+4>>2]=c+H[g+4>>2];f=f+4|0;l=l+4|0;if((i|0)!=(l|0)){continue}break}}b=b&3;if(!b){break s}while(1){g=d+(f<<3)|0;H[g+4>>2]=c+H[g+4>>2];f=f+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}break s}if(!I[a+615|0]){e=0;f=0;g=b&65535;if(g-1>>>0>=3){i=g&65532;l=0;while(1){g=f<<3;h=g+d|0;H[h+4>>2]=c+H[h+4>>2];h=d+(g|8)|0;H[h+4>>2]=c+H[h+4>>2];h=d+(g|16)|0;H[h+4>>2]=c+H[h+4>>2];g=d+(g|24)|0;H[g+4>>2]=c+H[g+4>>2];f=f+4|0;l=l+4|0;if((i|0)!=(l|0)){continue}break}}b=b&3;if(!b){break s}while(1){g=d+(f<<3)|0;H[g+4>>2]=c+H[g+4>>2];f=f+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}break s}if(!I[a+616|0]){e=0;f=0;g=b&65535;if(g-1>>>0>=3){i=g&65532;l=0;while(1){g=f<<3;h=g+d|0;H[h+4>>2]=c+H[h+4>>2];h=d+(g|8)|0;H[h+4>>2]=c+H[h+4>>2];h=d+(g|16)|0;H[h+4>>2]=c+H[h+4>>2];g=d+(g|24)|0;H[g+4>>2]=c+H[g+4>>2];f=f+4|0;l=l+4|0;if((i|0)!=(l|0)){continue}break}}b=b&3;if(!b){break s}while(1){g=d+(f<<3)|0;H[g+4>>2]=c+H[g+4>>2];f=f+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}break s}if(I[a+617|0]){break s}e=0;f=0;g=b&65535;if(g-1>>>0>=3){i=g&65532;l=0;while(1){g=f<<3;h=g+d|0;H[h+4>>2]=c+H[h+4>>2];h=d+(g|8)|0;H[h+4>>2]=c+H[h+4>>2];h=d+(g|16)|0;H[h+4>>2]=c+H[h+4>>2];g=d+(g|24)|0;H[g+4>>2]=c+H[g+4>>2];f=f+4|0;l=l+4|0;if((i|0)!=(l|0)){continue}break}}b=b&3;if(!b){break s}while(1){g=d+(f<<3)|0;H[g+4>>2]=c+H[g+4>>2];f=f+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}break s}if((g|0)==40){b=b&65535;g=I[a+615|0];f=0;while(1){Fb:{Gb:{if(!g){i=d+(f<<3)|0;H[i>>2]=e+H[i>>2];break Gb}if(!I[a+616|0]){break Gb}if(I[a+617|0]){break Fb}}i=d+(f<<3)|0;H[i+4>>2]=c+H[i+4>>2]}f=f+1|0;if((b|0)!=(f|0)){continue}break}break s}h=0;f=b&65535;if((f|0)!=1){g=f&65534;l=0;while(1){i=h<<3;f=i+d|0;H[f>>2]=e+H[f>>2];H[f+4>>2]=c+H[f+4>>2];f=d+(i|8)|0;H[f>>2]=e+H[f>>2];H[f+4>>2]=c+H[f+4>>2];h=h+2|0;l=l+2|0;if((g|0)!=(l|0)){continue}break}}if(!(b&1)){break s}b=d+(h<<3)|0;H[b>>2]=e+H[b>>2];H[b+4>>2]=c+H[b+4>>2];break s;case 52:case 53:b=H[d>>2]<<16;c=b>>16;if(c>>>0>=(J[a+352>>1]?G[a+118>>1]:1)>>>0){if(!I[a+565|0]){break s}H[a+12>>2]=134;break s}if(oo(a,k+16|0,k+12|0,k+24|0,k+22|0)){break s}b=(b?(J[(H[a+136>>2]+(c<<1)|0)-2>>1]-J[a+140>>1]|0)+1|0:0)&65535;if(J[a+352>>1]){c=(J[H[a+136>>2]+(c<<1)>>1]-J[a+140>>1]|0)+1|0}else{c=J[a+116>>1]}c=c&65535;if(b>>>0>=c>>>0){break s}e=J[k+22>>1];f=H[k+12>>2];d=H[k+16>>2];g=H[k+40>>2];while(1){i=H[a+124>>2];Hb:{if((i|0)==(g|0)&(b|0)==(e|0)){break Hb}if(J[a+302>>1]){if(!(I[a+615|0]?H[H[H[a>>2]+96>>2]+64>>2]==40:0)){i=i+(b<<3)|0;H[i>>2]=d+H[i>>2]}i=H[a+132>>2]+b|0;F[i|0]=I[i|0]|8}if(!J[a+304>>1]){break Hb}Ib:{if(!(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40))){if(I[a+617|0]){break Ib}}i=H[a+124>>2]+(b<<3)|0;H[i+4>>2]=f+H[i+4>>2]}i=H[a+132>>2]+b|0;F[i|0]=I[i|0]|16}b=b+1|0;if((c|0)!=(b|0)){continue}break};break s;case 50:case 51:Jb:{if(H[a+16>>2]>2]){if(!I[a+565|0]){break Jb}H[a+12>>2]=134;break Jb}if(oo(a,k+16|0,k+12|0,k+24|0,k+22|0)){break s}if(H[a+308>>2]<=0){break Jb}c=H[k+12>>2];e=H[k+16>>2];while(1){b=H[a+28>>2]-1|0;H[a+28>>2]=b;b=J[H[a+24>>2]+(b<<2)>>1];Kb:{if(b>>>0>=J[a+116>>1]){if(!I[a+565|0]){break Kb}H[a+12>>2]=134;break s}if(J[a+302>>1]){if(!(I[a+615|0]?H[H[H[a>>2]+96>>2]+64>>2]==40:0)){f=H[a+124>>2]+(b<<3)|0;H[f>>2]=e+H[f>>2]}f=b+H[a+132>>2]|0;F[f|0]=I[f|0]|8}if(!J[a+304>>1]){break Kb}Lb:{if(!(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40))){if(I[a+617|0]){break Lb}}f=H[a+124>>2]+(b<<3)|0;H[f+4>>2]=c+H[f+4>>2]}b=b+H[a+132>>2]|0;F[b|0]=I[b|0]|16}b=H[a+308>>2];H[a+308>>2]=b-1;if((b|0)>1){continue}break}}H[a+308>>2]=1;H[a+32>>2]=H[a+28>>2];break s;case 48:case 49:Mb:{if(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40){break Mb}if(I[a+617|0]?I[a+616|0]:0){break s}if(i&1){F[a+616|0]=1;break Mb}F[a+617|0]=1}if(!J[a+154>>1]){break s}Nb:{if(i&1){t=H[a+156>>2];H[k+24>>2]=t;l=H[a+160>>2];H[k+28>>2]=l;r=H[a+164>>2];H[k+32>>2]=r;s=8;break Nb}t=H[a+156>>2]+4|0;H[k+24>>2]=t;l=H[a+160>>2]+4|0;H[k+28>>2]=l;r=H[a+164>>2]+4|0;H[k+32>>2]=r;s=16}q=J[a+152>>1];H[k+36>>2]=q;v=0;b=q;j=0;while(1){c=J[H[a+172>>2]+(v<<1)>>1]-J[a+176>>1]|0;b=b&65535;u=b>>>0>c>>>0?c:b-1|0;Ob:{if(u>>>0>>0){f=j;break Ob}b=H[a+168>>2];e=j;Pb:{while(1){Qb:{f=e+1|0;if(I[b+e|0]&s){i=f;h=e;g=e;Rb:{Sb:{C=f>>>0>u>>>0;if(!C){while(1){d=i;Tb:{if(!(I[d+b|0]&s)){c=g;break Tb}b=g+1|0;c=d;if(h>>>0>>0|c>>>0>=q>>>0|g>>>0>=q>>>0){break Tb}i=H[(d<<3)+r>>2];c=H[(g<<3)+r>>2];Ub:{if((i|0)>=(c|0)){m=i;i=c;c=d;break Ub}m=c;c=g;g=d}c=c<<3;w=H[c+l>>2];A=H[c+t>>2];D=w-A|0;g=g<<3;c=H[g+l>>2];B=H[g+t>>2];E=c-B|0;Vb:{if(!((c|0)==(w|0)|(i|0)==(m|0))){M=m-i|0;O=w-c|0;m=0;w=0;while(1){g=b<<3;P=g+l|0;g=H[g+t>>2];Wb:{if((g|0)<=(B|0)){z=g+E|0;break Wb}z=g+D|0;if((g|0)>=(A|0)){break Wb}if(!(m&255)){w=dc(O,M)}m=1;z=Rb(H[(b<<3)+r>>2]-i|0,w)+c|0}H[P>>2]=z;b=b+1|0;if(h>>>0>=b>>>0){continue}break}break Vb}while(1){i=b<<3;g=H[i+t>>2];H[i+l>>2]=(g|0)>(B|0)?(g|0)<(A|0)?c:g+D|0:g+E|0;b=b+1|0;if(h>>>0>=b>>>0){continue}break}}c=d}i=d+1|0;if(u>>>0>=i>>>0){b=H[a+168>>2];h=d;g=c;continue}break}if((c|0)!=(e|0)){break Sb}}b=e<<3;c=H[b+l>>2];b=H[b+t>>2];if((c|0)==(b|0)){break Pb}d=c-b|0;if(e>>>0<=j>>>0){break Qb}b=(j^-1)+e|0;c=0;g=e-j&3;if(g){while(1){h=(j<<3)+l|0;H[h>>2]=d+H[h>>2];j=j+1|0;c=c+1|0;if((g|0)!=(c|0)){continue}break}}if(b>>>0>2){break Rb}break Qb}ju(k+24|0,c+1&65535,u,c,e);if(!e){break Pb}ju(k+24|0,j,e-1|0,c,e);break Pb}while(1){b=(j<<3)+l|0;H[b>>2]=d+H[b>>2];H[b+8>>2]=d+H[b+8>>2];H[b+16>>2]=d+H[b+16>>2];H[b+24>>2]=d+H[b+24>>2];j=j+4|0;if((j|0)!=(e|0)){continue}break}break Qb}e=f;if(u>>>0>=e>>>0){continue}break Ob}break}if(C){break Pb}while(1){b=(f<<3)+l|0;H[b>>2]=d+H[b>>2];f=f+1|0;if(u>>>0>=f>>>0){continue}break}}f=i}v=v+1|0;if((v|0)>=G[a+154>>1]){break s}b=J[a+152>>1];j=f;continue};case 46:case 47:b=J[d>>1];if(b>>>0>=J[a+44>>1]){if(!I[a+565|0]){break s}h=134;break j}if(i&1){c=H[a+52>>2]+(b<<3)|0;c=zb[H[a+576>>2]](a,H[c>>2],H[c+4>>2])|0;c=(zb[H[a+572>>2]](a,c,3)|0)-c|0}else{c=0}zb[H[a+588>>2]](a,o,b,c);G[a+290>>1]=b;G[a+288>>1]=b;break s;case 79:break j;case 45:break t}}c=H[a+432>>2];if((c|0)<=0){h=136;break j}b=c-1|0;H[a+432>>2]=b;b=H[a+440>>2]+(b<<4)|0;e=H[b+8>>2];H[b+8>>2]=e-1;F[a+380|0]=0;if((e|0)>=2){H[a+432>>2]=c;H[a+364>>2]=H[H[b+12>>2]+4>>2];break s}c=H[b>>2];if(c-4>>>0<4294967293){h=132;break j}e=(c-1<<3)+a|0;f=H[e+448>>2];if(!f){h=138;break j}e=H[e+452>>2];b=H[b+4>>2];if((e|0)<(b|0)){h=131;break j}H[a+368>>2]=e;H[a+360>>2]=f;H[a+364>>2]=b;H[a+356>>2]=c}b=H[a+12>>2]}if(b){h=128;if((b|0)!=128){break i}b=H[a+420>>2];if(!b){break j}c=H[a+412>>2];if((c|0)<=0){break j}c=N(c,24)+b|0;while(1){if(!(!I[b+16|0]|I[a+372|0]!=I[b+12|0])){c=H[a+432>>2];if((c|0)>=H[a+436>>2]){h=134;break j}c=H[a+440>>2]+(c<<4)|0;H[c>>2]=H[a+356>>2];e=H[a+364>>2];H[c+12>>2]=b;H[c+8>>2]=1;H[c+4>>2]=e+1;c=H[b>>2];if(c-4>>>0<4294967293){h=132;break j}e=(c-1<<3)+a|0;f=H[e+448>>2];if(!f){h=138;break j}e=H[e+452>>2];b=H[b+4>>2];if((e|0)>=(b|0)){break o}h=131;break j}b=b+24|0;if(c>>>0>b>>>0){continue}break}break j}H[a+16>>2]=H[a+32>>2];if(!I[a+380|0]){break p}}H[a+364>>2]=H[a+364>>2]+H[a+376>>2]}L=L+1|0;if(L>>>0<=1e6){break n}b=139;break i}H[a+368>>2]=e;H[a+360>>2]=f;H[a+364>>2]=b;H[a+356>>2]=c}c=H[a+364>>2];if((c|0)>=H[a+368>>2]){b=0;h=131;if(H[a+432>>2]>0){break j}break i}if(!I[a+492|0]){continue}break}b=0;break i}H[a+12>>2]=h;b=h}xb=k- -64|0;return b|0}function Iba(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,u=0,v=0,w=0,x=0,y=0;l=xb-16|0;xb=l;a:{b:{c:{d:{if(!a){break d}if(!(I[a+204|0]&64)){H[a+216>>2]=0;n=xb-16|0;xb=n;d=H[a+464>>2];e:{f:{g:{e=H[a+460>>2];if(e){if(!d){break g}if(w=fn(n+12|0,e,d),x=0,y=H[n+12>>2]-105001>>>0>=4294957295,y?w:x){break f}e=H[a+208>>2]|8192;break e}if(d){w=a,x=Ok(d),H[w+460>>2]=x;break f}H[a+460>>2]=1e5;H[a+464>>2]=1e5;break f}w=a,x=Ok(e),H[w+464>>2]=x}e=H[a+208>>2]&-8193}H[a+208>>2]=e;if((e&262272)==262144){G[a+394>>1]=0;e=e&-41943297;H[a+208>>2]=e;H[a+204>>2]=H[a+204>>2]&-8193}h:{if(e&256){if(I[a+401|0]&2){break h}H[a+200>>2]=H[a+200>>2]|2048;break h}if((e&16512)!=16512){break h}d=J[a+426>>1];if((d|0)!=J[a+428>>1]|(d|0)!=J[a+430>>1]){break h}G[a+432>>1]=d;H[a+200>>2]=H[a+200>>2]|2048}h=J[a+394>>1];j=I[a+401|0];i:{if((j|0)==3){j:{k:{if(!h){H[a+204>>2]=H[a+204>>2]&-8193;break k}j=H[a+504>>2];d=0;while(1){k=I[d+j|0];if((k|0)!=255){if(k){d=e;break j}i=1}d=d+1|0;if((h|0)!=(d|0)){continue}break}d=e&-8388609;H[a+208>>2]=d;H[a+204>>2]=H[a+204>>2]&-8193;if(i){break j}}d=e&-8388993;H[a+208>>2]=d}if((d&4352)!=4352){break i}e=H[a+388>>2]+N(I[a+424|0],3)|0;G[a+426>>1]=I[e|0];G[a+428>>1]=I[e+1|0];G[a+430>>1]=I[e+2|0];if(!h|(d&34078720)!=524288){break i}d=0;if(h-1>>>0>=3){e=h&65532;while(1){i=H[a+504>>2]+d|0;F[i|0]=I[i|0]^-1;i=H[a+504>>2]+(d|1)|0;F[i|0]=I[i|0]^-1;i=H[a+504>>2]+(d|2)|0;F[i|0]=I[i|0]^-1;i=H[a+504>>2]+(d|3)|0;F[i|0]=I[i|0]^-1;d=d+4|0;g=g+4|0;if((e|0)!=(g|0)){continue}break}}e=h&3;if(e){while(1){g=H[a+504>>2]+d|0;F[g|0]=I[g|0]^-1;d=d+1|0;f=f+1|0;if((e|0)!=(f|0)){continue}break}}d=H[a+208>>2];break i}l:{if(j&4){d=e;break l}if(h){d=e;break l}d=e&-385;H[a+208>>2]=d}if(j&2|(d&4352)!=4352){break i}g=J[a+516>>1];f=J[a+432>>1];m:{n:{switch(I[a+402|0]-1|0){case 0:g=N(g,255);f=N(f,255);break m;case 1:g=N(g,85);f=N(f,85);break m;case 3:break n;default:break m}}g=N(g,17);f=N(f,17)}G[a+428>>1]=f;G[a+430>>1]=f;G[a+426>>1]=f;if(d&33554432){break i}G[a+512>>1]=g;G[a+514>>1]=g;G[a+510>>1]=g}e=J[a+428>>1]|J[a+430>>1]<<16;f=J[a+424>>1]|J[a+426>>1]<<16;G[a+434>>1]=f;G[a+436>>1]=f>>>16;G[a+438>>1]=e;G[a+440>>1]=e>>>16;G[a+442>>1]=J[a+432>>1];o:{p:{q:{if(d&8192){break q}if(d&6291456){if(H[a+460>>2]-105001>>>0<4294957295|H[a+464>>2]-105001>>>0<4294957295){break q}d=H[a+208>>2]}r:{if(!(d&128)){break r}if(H[a+460>>2]-105001>>>0<4294957295|H[a+464>>2]-105001>>>0<4294957295){break q}if(I[a+418|0]!=3){break r}if(H[a+420>>2]-105001>>>0<4294957295){break q}}f=H[a+208>>2];if(f&8388608){if(H[a+464>>2]-105001>>>0<4294957295){break q}f=H[a+208>>2]}if(!(f&128)|I[a+401|0]!=3){break o}m=J[a+394>>1];if(m){g=I[a+430|0];h=I[a+428|0];i=I[a+426|0];j=H[a+388>>2];d=0;while(1){k=H[a+504>>2]+d|0;f=I[k|0];s:{if((f|0)==255){break s}if(!f){e=j+N(d,3)|0;F[e+2|0]=g;F[e+1|0]=h;F[e|0]=i;break s}e=j+N(d,3)|0;f=(N(i,f^255)+N(f,I[e|0])|0)+128|0;F[e|0]=f+((f&65280)>>>8|0)>>>8;f=I[k|0];f=(N(h,f^255)+N(f,I[e+1|0])|0)+128|0;F[e+1|0]=((f&65280)>>>8|0)+f>>>8;o=e;f=I[k|0];e=(N(g,f^255)+N(f,I[e+2|0])|0)+128|0;F[o+2|0]=((e&65280)>>>8|0)+e>>>8}d=d+1|0;if((m|0)!=(d|0)){continue}break}f=H[a+208>>2]}f=f&-129;break p}d=I[a+402|0];i=0;if(H[a+472>>2]?1:H[a+468>>2]){Xb(a,265119);vC(a)}t:{if(d>>>0<=8){d=H[a+464>>2];u:{if((d|0)<=0){d=1e5;break u}e=H[a+460>>2];v:{if(!e){break v}p=T(1e15/+(e|0)/+(d|0)+.5);e=p<=2147483647;if(P(p)<2147483648){d=~~p}else{d=-2147483648}if(!e){break v}if(p>=-2147483648){break u}}d=0}f=Rd(a,256);H[a+468>>2]=f;w:{if(d-95e3>>>0<10001){d=0;while(1){F[d+f|0]=d;e=d|1;F[e+f|0]=e;e=d|2;F[e+f|0]=e;e=d|3;F[e+f|0]=e;e=d|4;F[e+f|0]=e;e=d|5;F[e+f|0]=e;e=d|6;F[e+f|0]=e;e=d|7;F[e+f|0]=e;d=d+8|0;if((d|0)!=256){continue}break}break w}v=+(d|0)*1e-5;d=0;while(1){g=d+f|0;x:{if(d-1>>>0<=253){p=T(Kd(+(d>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){e=~~p>>>0;break x}e=0;break x}e=d}F[g|0]=e;d=d+1|0;if((d|0)!=256){continue}break}}if(!(H[a+208>>2]&6291584)){break t}d=H[a+460>>2];y:{z:{if(!d){break z}p=T(1e10/+(d|0)+.5);e=p<=2147483647;if(P(p)<2147483648){d=~~p}else{d=-2147483648}if(!e){break z}if(p>=-2147483648){break y}}d=0}f=Rd(a,256);H[a+480>>2]=f;A:{if(d-95e3>>>0<10001){d=0;while(1){F[d+f|0]=d;e=d|1;F[e+f|0]=e;e=d|2;F[e+f|0]=e;e=d|3;F[e+f|0]=e;e=d|4;F[e+f|0]=e;e=d|5;F[e+f|0]=e;e=d|6;F[e+f|0]=e;e=d|7;F[e+f|0]=e;d=d+8|0;if((d|0)!=256){continue}break}break A}v=+(d|0)*1e-5;d=0;while(1){g=d+f|0;B:{if(d-1>>>0<=253){p=T(Kd(+(d>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){e=~~p>>>0;break B}e=0;break B}e=d}F[g|0]=e;d=d+1|0;if((d|0)!=256){continue}break}}d=H[a+464>>2];C:{if((d|0)>0){p=T(1e10/+(d|0)+.5);e=p>=-2147483648;if(P(p)<2147483648){d=~~p}else{d=-2147483648}d=p<=2147483647?e?d:0:0;break C}d=H[a+460>>2]}f=Rd(a,256);H[a+476>>2]=f;if(d-95e3>>>0<10001){d=0;while(1){F[d+f|0]=d;e=d|1;F[e+f|0]=e;e=d|2;F[e+f|0]=e;e=d|3;F[e+f|0]=e;e=d|4;F[e+f|0]=e;e=d|5;F[e+f|0]=e;e=d|6;F[e+f|0]=e;e=d|7;F[e+f|0]=e;d=d+8|0;if((d|0)!=256){continue}break}break t}v=+(d|0)*1e-5;d=0;while(1){g=d+f|0;D:{if(d-1>>>0<=253){p=T(Kd(+(d>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){e=~~p>>>0;break D}e=0;break D}e=d}F[g|0]=e;d=d+1|0;if((d|0)!=256){continue}break}break t}d=a;h=d;E:{if(I[d+401|0]&2){e=I[a+494|0];f=I[a+493|0];g=I[a+492|0];f=f>>>0>g>>>0?f:g;e=e>>>0>f>>>0?e:f;break E}e=I[a+495|0]}d=(e-1&255)>>>0<15?16-e|0:0;e=d&255;f=H[a+208>>2]&67109888;d=(f?e>>>0>5?e:5:d)&255;e=d>>>0<8?d:8;H[h+456>>2]=e;d=H[a+464>>2];F:{G:{if(f){if((d|0)<=0){p=1}else{p=T(+H[a+460>>2]*1e-5*+(d|0)+.5);f=p>=-2147483648;if(P(p)<2147483648){d=~~p}else{d=-2147483648}p=p<=2147483647?f?+(d|0)*1e-5:0:0}g=8-e|0;q=1<>2]=f;h=16-e|0;d=0;while(1){w=f+(d<<2)|0,x=Rd(a,512),H[w>>2]=x;d=d+1|0;if((q|0)!=(d|0)){continue}break}j=255>>>e|0;r=-1<>>0)/65535,p)*65535+.5);H:{if(v<4294967296&v>=0){h=~~v>>>0;break H}h=0}m=(N(h,r)+32768>>>0)/65535|0;if(m>>>0>=d>>>0){h=0;s=m-d|0;u=s+1&3;if(u){while(1){G[H[f+((d&j)<<2)>>2]+(d>>>g<<1)>>1]=k;d=d+1|0;h=h+1|0;if((u|0)!=(h|0)){continue}break}}if(s>>>0>=3){while(1){G[H[f+((d&j)<<2)>>2]+(d>>>g<<1)>>1]=k;h=d+1|0;G[H[f+((h&j)<<2)>>2]+(h>>>g<<1)>>1]=k;h=d+2|0;G[H[f+((h&j)<<2)>>2]+(h>>>g<<1)>>1]=k;h=d+3|0;G[H[f+((h&j)<<2)>>2]+(h>>>g<<1)>>1]=k;d=d+4|0;if((h|0)!=(m|0)){continue}break}}d=m+1|0}i=i+1|0;if((i|0)!=255){continue}break}break G}f=a+472|0;I:{if((d|0)<=0){d=1e5;break I}g=H[a+460>>2];J:{if(!g){break J}p=T(1e15/+(g|0)/+(d|0)+.5);g=p<=2147483647;if(P(p)<2147483648){d=~~p}else{d=-2147483648}if(!g){break J}if(p>=-2147483648){break I}}d=0}Gq(a,f,e,d);break F}i=q<<8;if(i>>>0<=d>>>0){break F}h=0;k=i+(d^-1)|0;m=0-d&3;if(m){while(1){G[H[f+((d&j)<<2)>>2]+(d>>>g<<1)>>1]=65535;d=d+1|0;h=h+1|0;if((m|0)!=(h|0)){continue}break}}if(k>>>0<3){break F}while(1){G[H[f+((d&j)<<2)>>2]+(d>>>g<<1)>>1]=65535;h=d+1|0;G[H[f+((h&j)<<2)>>2]+(h>>>g<<1)>>1]=65535;h=d+2|0;G[H[f+((h&j)<<2)>>2]+(h>>>g<<1)>>1]=65535;h=d+3|0;G[H[f+((h&j)<<2)>>2]+(h>>>g<<1)>>1]=65535;d=d+4|0;if((i|0)!=(d|0)){continue}break}}if(!(H[a+208>>2]&6291584)){break t}f=a+488|0;d=H[a+460>>2];K:{L:{if(!d){break L}p=T(1e10/+(d|0)+.5);g=p<=2147483647;if(P(p)<2147483648){d=~~p}else{d=-2147483648}if(!g){break L}if(p>=-2147483648){break K}}d=0}Gq(a,f,e,d);d=a;g=d+484|0;f=H[d+464>>2];M:{if((f|0)>0){p=T(1e10/+(f|0)+.5);h=p>=-2147483648;if(P(p)<2147483648){f=~~p}else{f=-2147483648}f=p<=2147483647?h?f:0:0;break M}f=H[a+460>>2]}Gq(d,g,e,f)}f=H[a+208>>2];if(f&128){if(f&6291456){Xb(a,260392)}if(I[a+401|0]==3){k=J[a+392>>1];j=H[a+388>>2];f=1e5;d=1e5;N:{O:{P:{switch(I[a+418|0]-1|0){case 1:e=H[a+480>>2];h=J[a+430>>1];d=I[e+h|0];m=J[a+428>>1];g=I[m+e|0];q=J[a+426>>1];f=I[q+e|0];i=H[a+468>>2];e=I[i+h|0];h=I[i+m|0];i=I[i+q|0];break N;case 0:d=H[a+464>>2];break O;case 2:break P;default:break O}}d=Ok(H[a+420>>2]);f=Hq(H[a+420>>2],H[a+464>>2])}i=J[a+426>>1];Q:{if(f-105001>>>0<4294957295){i=Ej(i,f);h=Ej(J[a+428>>1],f);e=Ej(J[a+430>>1],f);break Q}h=I[a+428|0];e=I[a+430|0]}f=J[a+426>>1];if(d-105001>>>0<4294957295){f=Ej(f,d);g=Ej(J[a+428>>1],d);d=Ej(J[a+430>>1],d);break N}d=I[a+430|0];g=I[a+428|0]}if(k){r=d&255;s=g&255;u=f&255;d=0;while(1){R:{S:{if(J[a+394>>1]<=d>>>0){break S}m=H[a+504>>2]+d|0;g=I[m|0];if((g|0)==255){break S}if(!g){f=j+N(d,3)|0;F[f+2|0]=e;F[f+1|0]=h;F[f|0]=i;break R}q=H[a+480>>2];f=j+N(d,3)|0;g=(N(u,g^255)+N(g,I[q+I[f|0]|0])|0)+128|0;o=g+(g>>>8&255)>>>8&255;g=H[a+476>>2];F[f|0]=I[o+g|0];o=I[m|0];o=(N(s,o^255)+N(o,I[q+I[f+1|0]|0])|0)+128|0;F[f+1|0]=I[g+((o>>>8&255)+o>>>8&255)|0];o=f;m=I[m|0];f=(N(r,m^255)+N(m,I[q+I[f+2|0]|0])|0)+128|0;F[o+2|0]=I[g+((f>>>8&255)+f>>>8&255)|0];break R}f=j+N(d,3)|0;g=H[a+468>>2];F[f|0]=I[g+I[f|0]|0];F[f+1|0]=I[g+I[f+1|0]|0];F[f+2|0]=I[g+I[f+2|0]|0]}d=d+1|0;if((k|0)!=(d|0)){continue}break}}f=H[a+208>>2]&-8321;break p}T:{U:{switch(I[a+418|0]-1|0){case 1:d=Ok(H[a+460>>2]);e=Hq(H[a+460>>2],H[a+464>>2]);break T;case 2:d=Ok(H[a+420>>2]);e=Hq(H[a+420>>2],H[a+464>>2]);break T;default:hc(a,260597);X();case 0:break U}}d=H[a+464>>2];e=1e5}g=e-105001>>>0<4294957295;h=d-105001>>>0<4294957295;if(h){w=a,x=Lh(a,J[a+432>>1],d),G[w+442>>1]=x}if(g){w=a,x=Lh(a,J[a+432>>1],e),G[w+432>>1]=x}f=J[a+426>>1];V:{if(!(!((f|0)!=J[a+428>>1]|(f|0)!=J[a+430>>1])&(f|0)==J[a+432>>1])){if(h){w=a,x=Lh(a,f,d),G[w+436>>1]=x;w=a,x=Lh(a,J[a+428>>1],d),G[w+438>>1]=x;w=a,x=Lh(a,J[a+430>>1],d),G[w+440>>1]=x}if(!g){break V}w=a,x=Lh(a,J[a+426>>1],e),G[w+426>>1]=x;w=a,x=Lh(a,J[a+428>>1],e),G[w+428>>1]=x;w=a,x=Lh(a,J[a+430>>1],e),G[w+430>>1]=x;break V}G[a+430>>1]=f;G[a+428>>1]=f;G[a+426>>1]=f;d=J[a+442>>1];G[a+440>>1]=d;G[a+438>>1]=d;G[a+436>>1]=d}F[a+418|0]=1;f=H[a+208>>2];break o}if(I[a+401|0]!=3|(f&6291456?f&4096:0)){break o}h=J[a+392>>1];if(h){i=H[a+388>>2];e=H[a+468>>2];g=0;while(1){d=i+N(g,3)|0;F[d|0]=I[e+I[d|0]|0];F[d+1|0]=I[e+I[d+1|0]|0];F[d+2|0]=I[e+I[d+2|0]|0];g=g+1|0;if((h|0)!=(g|0)){continue}break}}f=f&-8193}H[a+208>>2]=f}W:{if((f&4104)!=8|I[a+401|0]!=3){break W}H[a+208>>2]=f&-9;h=J[a+392>>1];d=I[a+492|0];X:{if(!h|(d-1&255)>>>0>6){break X}g=8-d|0;i=H[a+388>>2];f=0;d=0;if(h-1>>>0>=3){j=h&65532;e=0;while(1){k=i+N(d,3)|0;F[k|0]=I[k|0]>>>g;k=i+N(d|1,3)|0;F[k|0]=I[k|0]>>>g;k=i+N(d|2,3)|0;F[k|0]=I[k|0]>>>g;k=i+N(d|3,3)|0;F[k|0]=I[k|0]>>>g;d=d+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}e=h&3;if(!e){break X}while(1){j=i+N(d,3)|0;F[j|0]=I[j|0]>>>g;d=d+1|0;f=f+1|0;if((e|0)!=(f|0)){continue}break}}d=I[a+493|0];Y:{if(!h|(d-1&255)>>>0>6){break Y}g=8-d|0;i=H[a+388>>2];f=0;d=0;if(h-1>>>0>=3){j=h&65532;e=0;while(1){k=i+N(d,3)|0;F[k+1|0]=I[k+1|0]>>>g;k=i+N(d|1,3)|0;F[k+1|0]=I[k+1|0]>>>g;k=i+N(d|2,3)|0;F[k+1|0]=I[k+1|0]>>>g;k=i+N(d|3,3)|0;F[k+1|0]=I[k+1|0]>>>g;d=d+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}e=h&3;if(!e){break Y}while(1){j=i+N(d,3)|0;F[j+1|0]=I[j+1|0]>>>g;d=d+1|0;f=f+1|0;if((e|0)!=(f|0)){continue}break}}d=I[a+494|0];if(!h|(d-1&255)>>>0>6){break W}e=8-d|0;i=H[a+388>>2];g=0;d=0;if(h-1>>>0>=3){j=h&65532;f=0;while(1){k=i+N(d,3)|0;F[k+2|0]=I[k+2|0]>>>e;k=i+N(d|1,3)|0;F[k+2|0]=I[k+2|0]>>>e;k=i+N(d|2,3)|0;F[k+2|0]=I[k+2|0]>>>e;k=i+N(d|3,3)|0;F[k+2|0]=I[k+2|0]>>>e;d=d+4|0;f=f+4|0;if((j|0)!=(f|0)){continue}break}}f=h&3;if(!f){break W}while(1){h=i+N(d,3)|0;F[h+2|0]=I[h+2|0]>>>e;d=d+1|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}}xb=n+16|0;Z:{if(I[a+398|0]){d=H[a+324>>2];f=H[a+208>>2];H[a+328>>2]=f&2?d:d+7>>>3|0;g=H[a+320>>2];d=I[a+399|0];e=I[d+269960|0];H[a+340>>2]=((g+e|0)+(I[d+269953|0]^-1)>>>0)/(e>>>0);break Z}H[a+328>>2]=H[a+324>>2];g=H[a+320>>2];H[a+340>>2]=g;f=H[a+208>>2]}e=I[a+404|0];e=f&4?I[a+402|0]<8?8:e:e;d=e&255;h=f&4096;_:{if(!h){break _}$:{switch(I[a+401|0]){case 3:d=J[a+394>>1]?32:24;break _;case 0:d=e&255;d=(d>>>0>8?d:8)<<(J[a+394>>1]!=0);break _;case 2:break $;default:break _}}if(!J[a+394>>1]){break _}d=((e&255)<<2>>>0)/3|0}e=f&32768;aa:{if(!e){break aa}ba:{switch(I[a+401|0]){case 0:d=d>>>0<9?16:32;break aa;case 2:case 3:break ba;default:break aa}}d=d>>>0>32?64:32}ca:{if(!(f&16384)){break ca}da:{if(!(e|!(!J[a+394>>1]|!h))){e=I[a+401|0];if((e|0)!=4){break da}}d=d>>>0<17?32:64;break ca}if(d>>>0<=8){d=(e|0)==6?32:24;break ca}d=(e|0)==6?64:48}if(f&1048576){e=N(I[a+197|0],I[a+196|0]);d=d>>>0>>0?e:d}F[a+409|0]=0;F[a+408|0]=d;e=g+7&-8;d=((d+7>>>3|0)+(d>>>0>7?N(e,d>>>3|0):N(d,e)>>>3|0)|0)+49|0;if(d>>>0>K[a+736>>2]){cc(a,H[a+680>>2]);cc(a,H[a+748>>2]);ea:{if(I[a+398|0]){e=Rk(a,d);break ea}e=Rd(a,d)}H[a+680>>2]=e;e=Rd(a,d);H[a+748>>2]=e;H[a+736>>2]=d;H[a+352>>2]=e+31;H[a+356>>2]=H[a+680>>2]+31}d=H[a+336>>2];if((d|0)==-1){hc(a,269967);X()}Nb(H[a+352>>2],0,d+1|0);H[a+204>>2]=H[a+204>>2]|64}f=H[a+340>>2];H[l>>2]=f;F[l+8|0]=I[a+401|0];F[l+9|0]=I[a+402|0];F[l+10|0]=I[a+405|0];e=I[a+404|0];F[l+11|0]=e;g=e>>>0>=8?N(f,e>>>3|0):N(e,f)+7>>>3|0;H[l+4>>2]=g;fa:{if(!I[a+398|0]|!(I[a+208|0]&2)){break fa}d=H[a+344>>2];ga:{switch(I[a+399|0]){case 0:if(!(d&7)){break fa}if(c){sg(a,c,1)}Jh(a);break d;case 1:if(!(d&7)&K[a+320>>2]>4){break fa}if(c){sg(a,c,1)}Jh(a);break d;case 2:if((d&7)==4){break fa}if(!(!c|!(d&4))){sg(a,c,1)}Jh(a);break d;case 3:if(!(d&3)&K[a+320>>2]>2){break fa}if(c){sg(a,c,1)}Jh(a);break d;case 4:if((d&3)==2){break fa}if(!(!c|!(d&2))){sg(a,c,1)}Jh(a);break d;case 5:if(!(d&1)&K[a+320>>2]>1){break fa}if(c){sg(a,c,1)}Jh(a);break d;default:break ga}}if(d&1){break fa}Jh(a);break d}if(!(I[a+200|0]&4)){break c}H[a+224>>2]=H[a+356>>2];h=a+212|0;H[a+228>>2]=(e>>>0>=8?N(f,e>>>3|0):N(e,f)+7>>>3|0)+1;while(1){if(!H[a+216>>2]){e=H[a+380>>2];ha:{while(1){if(e){break ha}mc(a,0);e=en(a);H[a+380>>2]=e;if(H[a+348>>2]==1229209940){continue}break}hc(a,260660);X()}d=H[a+272>>2];H[a+216>>2]=d;f=H[a+268>>2];H[a+212>>2]=f;if(d>>>0>e>>>0){H[a+216>>2]=e;d=e}if(a){vd(a,f,d);xc(a,f,d)}H[a+380>>2]=H[a+380>>2]-H[a+216>>2]}d=Vh(h,1);ia:{if(d){if((d|0)==1){if(H[a+380>>2]?1:H[a+228>>2]|H[a+216>>2]){Nq(a,260993)}H[a+200>>2]=H[a+200>>2]|8;H[a+204>>2]=H[a+204>>2]|32;break ia}b=a;a=H[a+236>>2];hc(b,a?a:261089);X()}if(H[a+228>>2]){continue}}break}e=H[a+356>>2];d=I[e|0];if(d){if(d>>>0>4){break b}e=e+1|0;f=H[a+352>>2]+1|0;d=d-1|0;if(d>>>0<=3){if(!H[a+752>>2]){H[a+752>>2]=1407;H[a+760>>2]=1408;H[a+756>>2]=1409;H[a+764>>2]=(I[a+404|0]+7&504)==8?1410:1411}zb[H[((d<<2)+a|0)+752>>2]](l,e,f)}g=H[l+4>>2];e=H[a+356>>2]}Ob(H[a+352>>2],e,g+1|0);if(!(!(I[a+660|0]&4)|I[a+664|0]!=64)){d=H[a+356>>2]+1|0;g=I[l+8|0];ja:{if(!(g&2)){break ja}f=H[l>>2];ka:{switch(I[l+9|0]-8|0){case 0:e=3;la:{switch(g-2|0){case 4:e=4;break;case 0:break la;default:break ja}}if(!f){break ja}if((f|0)!=1){i=f&-2;g=0;while(1){h=I[d+1|0];F[d|0]=h+I[d|0];F[d+2|0]=h+I[d+2|0];d=d+e|0;h=I[d+1|0];F[d+2|0]=h+I[d+2|0];F[d|0]=h+I[d|0];d=d+e|0;g=g+2|0;if((i|0)!=(g|0)){continue}break}}if(!(f&1)){break ja}e=I[d+1|0];F[d|0]=e+I[d|0];F[d+2|0]=e+I[d+2|0];break ja;case 8:break ka;default:break ja}}h=6;ma:{switch(g-2|0){case 4:h=8;break;case 0:break ma;default:break ja}}if(!f){break ja}e=0;while(1){g=I[d+3|0]|I[d+2|0]<<8;i=g+(I[d+5|0]|I[d+4|0]<<8)|0;F[d+5|0]=i;g=g+(I[d+1|0]|I[d|0]<<8)|0;F[d+1|0]=g;F[d+4|0]=i>>>8;F[d|0]=g>>>8;d=d+h|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}}if(H[a+208>>2]){na:{oa:{pa:{qa:{d=H[a+356>>2];if(d){if((H[a+204>>2]&16448)==16384){break qa}e=H[a+208>>2];ra:{if(!(e&4096)){break ra}if(I[l+8|0]==3){j=d+1|0;n=H[a+388>>2];s=H[a+504>>2];q=J[a+394>>1];sa:{if(I[l+8|0]!=3){break sa}i=H[l>>2];d=I[l+9|0];ta:{if(d>>>0<=7){ua:{va:{switch(d-1|0){case 0:if(!i){break ua}f=i+j|0;d=0-i&7;e=i-1|0;g=j+(e>>>3|0)|0;if(e){e=i&-2;h=0;while(1){F[f-1|0]=I[g|0]>>>d&1;f=f-2|0;o=g;g=(d|0)==7;k=o-g|0;d=g?0:d+1|0;F[f|0]=I[k|0]>>>d&1;g=(d|0)==7;d=g?0:d+1|0;g=k-g|0;h=h+2|0;if((e|0)!=(h|0)){continue}break}}if(!(i&1)){break ua}F[f-1|0]=I[g|0]>>>d&1;break ua;case 1:if(!i){break ua}f=i+j|0;e=i-1|0;g=j+(e>>>2|0)|0;d=((i<<1)+6^-1)&6;if(e){e=i&-2;h=0;while(1){F[f-1|0]=I[g|0]>>>d&3;f=f-2|0;o=g;g=(d|0)==6;k=o-g|0;d=g?0:d+2|0;F[f|0]=I[k|0]>>>d&3;g=(d|0)==6;d=g?0:d+2|0;g=k-g|0;h=h+2|0;if((e|0)!=(h|0)){continue}break}}if(!(i&1)){break ua}F[f-1|0]=I[g|0]>>>d&3;break ua;case 3:break va;default:break ua}}if(!i){break ua}f=i+j|0;d=i<<2&4;e=i-1|0;g=j+(e>>>1|0)|0;if(e){e=i&-2;h=0;while(1){F[f-1|0]=I[g|0]>>>d&15;f=f-2|0;o=g;g=(d|0)==4;k=o-g|0;d=g?0:d+4|0;F[f|0]=I[k|0]>>>d&15;g=(d|0)==4;d=g?0:d+4|0;g=k-g|0;h=h+2|0;if((e|0)!=(h|0)){continue}break}}if(!(i&1)){break ua}F[f-1|0]=I[g|0]>>>d&15}F[l+11|0]=8;F[l+9|0]=8;H[l+4>>2]=i;break ta}if((d|0)!=8){break sa}}wa:{if(q){k=i<<2;e=4;m=6;r=32;if(!i){break wa}d=i+j|0;f=j+k|0;h=0;while(1){j=f-1|0;d=d-1|0;g=I[d|0];if((g|0)<(q|0)){g=I[g+s|0]}else{g=255}F[j|0]=g;F[f-2|0]=I[(n+N(I[d|0],3)|0)+2|0];F[f-3|0]=I[(n+N(I[d|0],3)|0)+1|0];f=f-4|0;F[f|0]=I[n+N(I[d|0],3)|0];h=h+1|0;if((i|0)!=(h|0)){continue}break}break wa}e=3;k=N(i,3);m=2;r=24;if(!i){break wa}d=i+j|0;f=j+k|0;g=0;while(1){d=d-1|0;F[f-1|0]=I[(n+N(I[d|0],3)|0)+2|0];F[f-2|0]=I[(n+N(I[d|0],3)|0)+1|0];f=f-3|0;F[f|0]=I[n+N(I[d|0],3)|0];g=g+1|0;if((i|0)!=(g|0)){continue}break}}F[l+11|0]=r;F[l+9|0]=8;F[l+10|0]=e;F[l+8|0]=m;H[l+4>>2]=k}break ra}d=d+1|0;if(!(!J[a+394>>1]|!(e&33554432))){TB(l,d,a+508|0);break ra}TB(l,d,0)}d=H[a+208>>2];xa:{if((d&262272)!=262144){break xa}ya:{switch(I[l+8|0]-4|0){case 0:case 2:break ya;default:break xa}}Fq(l,H[a+356>>2]+1|0,0);d=H[a+208>>2]}za:{if(!(d&6291456)){break za}d=H[a+356>>2]+1|0;g=0;e=0;h=0;s=0;f=I[l+8|0];if((f&3)==2){q=f&4;j=J[a+656>>1];k=J[a+658>>1];n=32768-(j+k|0)|0;i=H[l>>2];Aa:{if(I[l+9|0]==8){if(!(!H[a+476>>2]|!H[a+480>>2])){if(!i){break Aa}g=d;while(1){f=I[d|0];m=I[d+1|0];r=I[d+2|0];Ba:{Ca:{if(!((f|0)==(m|0)&(r|0)==(f|0))){h=h|1;o=f;f=H[a+480>>2];f=H[a+476>>2]+(((N(j,I[o+f|0])+N(k,I[f+m|0])|0)+N(n,I[f+r|0])|0)+16384>>>15|0)|0;break Ca}m=H[a+468>>2];if(!m){break Ba}f=f+m|0}f=I[f|0]}F[g|0]=f;Da:{if(!q){g=g+1|0;d=d+3|0;break Da}F[g+1|0]=I[d+3|0];g=g+2|0;d=d+4|0}e=e+1|0;if((i|0)!=(e|0)){continue}break}break Aa}if(!i){break Aa}if(!q){f=d;while(1){e=I[d|0];m=I[d+1|0];q=I[d+2|0];if(!((e|0)==(m|0)&(q|0)==(e|0))){h=h|1;e=(N(k,m)+N(e,j)|0)+N(n,q)>>>15|0}d=d+3|0;F[f|0]=e;f=f+1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}break Aa}e=d;while(1){f=I[d|0];m=I[d+1|0];q=I[d+2|0];if(!((f|0)==(m|0)&(q|0)==(f|0))){h=h|1;f=(N(k,m)+N(f,j)|0)+N(n,q)>>>15|0}F[e|0]=f;F[e+1|0]=I[d+3|0];e=e+2|0;d=d+4|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}break Aa}if(!(!H[a+488>>2]|!H[a+484>>2])){if(!i){break Aa}f=d;while(1){m=I[d+1|0];g=I[d|0];r=m|g<<8;o=I[d+3|0];u=I[d+2|0];e=I[d+4|0]|I[d+5|0]<<8;e=e<<8|e>>>8;Ea:{if(!((r|0)!=(o|u<<8)|(r|0)!=(e&65535))){e=H[a+472>>2];if(!e){break Ea}m=J[H[e+(o>>>H[a+456>>2]<<2)>>2]+(u<<1)>>1];g=m>>>8|0;break Ea}m=H[a+488>>2];g=H[a+456>>2];e=((N(j,J[H[m+((r&255)>>>g<<2)>>2]+(r>>>7&510)>>1])+N(k,J[H[m+(o>>>g<<2)>>2]+(u<<1)>>1])|0)+N(n,J[H[m+((e&255)>>>g<<2)>>2]+(e>>>7&510)>>1])|0)+16384|0;m=J[H[H[a+484>>2]+((e>>>15&255)>>>g<<2)>>2]+(e>>>22&510)>>1];g=m>>>8|0;h=h|1}F[f+1|0]=m;F[f|0]=g;Fa:{if(!q){f=f+2|0;d=d+6|0;break Fa}F[f+2|0]=I[d+6|0];F[f+3|0]=I[d+7|0];f=f+4|0;d=d+8|0}s=s+1|0;if((i|0)!=(s|0)){continue}break}break Aa}if(!i){break Aa}e=d;while(1){f=I[e+1|0]|I[e|0]<<8;m=I[e+3|0]|I[e+2|0]<<8;r=I[e+5|0]|I[e+4|0]<<8;s=((N(f,j)+N(m,k)|0)+N(r,n)|0)+16384|0;F[d+1|0]=s>>>15;F[d|0]=s>>>23;f=(f|0)!=(m|0)|(f|0)!=(r|0);Ga:{if(!q){e=e+6|0;d=d+2|0;break Ga}F[d+2|0]=I[e+6|0];F[d+3|0]=I[e+7|0];e=e+8|0;d=d+4|0}h=f|h;g=g+1|0;if((i|0)!=(g|0)){continue}break}}d=I[l+10|0]-2|0;F[l+10|0]=d;F[l+8|0]=I[l+8|0]&253;d=N(d,I[l+9|0]);F[l+11|0]=d;d=d&255;Ha:{if(d>>>0>=8){d=N(i,d>>>3|0);break Ha}d=N(d,i)+7>>>3|0}H[l+4>>2]=d}if(!h){d=H[a+208>>2];break za}F[a+653|0]=1;d=H[a+208>>2];if((d&6291456)==4194304){Xb(a,261487);d=H[a+208>>2]}if((d&6291456)==2097152){break pa}}if(!(!(d&16384)|I[a+201|0]&8)){SB(l,H[a+356>>2]+1|0);d=H[a+208>>2]}if(d&128){d=H[a+356>>2]+1|0;k=H[a+204>>2]&8192;i=H[l>>2];e=H[a+456>>2];n=H[a+488>>2];m=H[a+484>>2];h=H[a+472>>2];f=H[a+480>>2];j=H[a+476>>2];g=H[a+468>>2];Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{switch(I[l+8|0]){case 0:Va:{switch(I[l+9|0]-1|0){case 0:if(!i){break Ia}g=0;f=7;while(1){e=I[d|0];if(J[a+516>>1]==(e>>>f&1)){e=e&32639>>>7-f;F[d|0]=e;F[d|0]=e|J[a+432>>1]<>>f&3;Wa:{if((k|0)==J[a+516>>1]){j=e&16191>>>6-f;F[d|0]=j;e=J[a+432>>1];break Wa}j=e&16191>>>6-f;e=I[g+N(k,85)|0]>>>6|0}F[d|0]=e<>>f&15;Xa:{if((k|0)==J[a+516>>1]){j=e&3855>>>4-f;F[d|0]=j;e=J[a+432>>1];break Xa}j=e&3855>>>4-f;e=I[g+N(k,17)|0]>>>4|0}F[d|0]=e<>1]){e=I[a+432|0]}else{e=I[e+g|0]}F[d|0]=e;e=I[d+1|0];Ya:{if((e|0)!=J[a+516>>1]){e=I[e+g|0];break Ya}e=I[a+432|0]}F[d+1|0]=e;d=d+2|0;f=f+2|0;if((h|0)!=(f|0)){continue}break}}if(!(i&1)){break Ia}e=I[d|0];if((e|0)==J[a+516>>1]){break Ta}F[d|0]=I[e+g|0];break Ia;case 15:break Va;default:break Ia}}if(!h){break Ma}if(!i){break Ia}g=0;while(1){j=I[d+1|0];f=I[d|0];Za:{if(J[a+516>>1]==(j|f<<8)){F[d|0]=I[a+433|0];j=I[a+432|0];break Za}j=J[H[h+(j>>>e<<2)>>2]+(f<<1)>>1];F[d|0]=j>>>8}F[d+1|0]=j;d=d+2|0;g=g+1|0;if((i|0)!=(g|0)){continue}break};break Ia;case 2:if(I[l+9|0]==8){if(!g){break Na}if(!i){break Ia}h=0;while(1){f=I[d|0];e=I[d+1|0];_a:{if(!((f|0)!=J[a+510>>1]|(e|0)!=J[a+512>>1]|J[a+514>>1]!=I[d+2|0])){F[d|0]=I[a+426|0];F[d+1|0]=I[a+428|0];F[d+2|0]=I[a+430|0];break _a}F[d|0]=I[f+g|0];F[d+1|0]=I[e+g|0];F[d+2|0]=I[g+I[d+2|0]|0]}d=d+3|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}break Ia}if(!h){break Oa}if(!i){break Ia}f=0;while(1){g=I[d+4|0];j=I[d+5|0];q=I[d+1|0];m=I[d|0];n=I[d+3|0];k=I[d+2|0];$a:{if(!(J[a+510>>1]!=(q|m<<8)|J[a+512>>1]!=(n|k<<8)|J[a+514>>1]!=(j|g<<8))){F[d|0]=I[a+427|0];F[d+1|0]=I[a+426|0];F[d+2|0]=I[a+429|0];F[d+3|0]=I[a+428|0];F[d+4|0]=I[a+431|0];g=I[a+430|0];break $a}m=J[H[h+(q>>>e<<2)>>2]+(m<<1)>>1];m=m<<8|m>>>8;F[d|0]=m;F[d+1|0]=m>>>8;k=J[H[h+(n>>>e<<2)>>2]+(k<<1)>>1];k=k<<8|k>>>8;F[d+2|0]=k;F[d+3|0]=k>>>8;g=J[H[h+(j>>>e<<2)>>2]+(g<<1)>>1];F[d+4|0]=g>>>8}F[d+5|0]=g;d=d+6|0;f=f+1|0;if((i|0)!=(f|0)){continue}break};break Ia;case 4:if(I[l+9|0]==8){if(!(g?!f|!j:1)){break Pa}if(!i){break Ia}g=0;while(1){e=I[d+1|0];if((e|0)!=255){if(e){e=(N(J[a+432>>1],e^255)+N(e,I[d|0])|0)+128&65535;e=(e>>>8|0)+e>>>8|0}else{e=I[a+432|0]}F[d|0]=e}d=d+2|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}break Ia}if(!(n?!h|!m:1)){break Qa}if(!i){break Ia}g=0;while(1){e=I[d+3|0]|I[d+2|0]<<8;ab:{if((e|0)==65535){break ab}if(!e){F[d|0]=I[a+433|0];F[d+1|0]=I[a+432|0];break ab}e=(N(J[a+432>>1],e^65535)+N(e,I[d+1|0]|I[d|0]<<8)|0)+32768|0;e=(e>>>16|0)+e|0;F[d+1|0]=e>>>16;F[d|0]=e>>>24}d=d+4|0;g=g+1|0;if((i|0)!=(g|0)){continue}break};break Ia;case 6:break Ua;default:break Ia}}if(I[l+9|0]==8){if(!(g?!f|!j:1)){break Ra}if(!i){break Ia}g=0;while(1){e=I[d+3|0];bb:{if((e|0)==255){break bb}if(!e){F[d|0]=I[a+426|0];F[d+1|0]=I[a+428|0];F[d+2|0]=I[a+430|0];break bb}f=e^255;h=(N(e,I[d|0])+N(f,J[a+426>>1])|0)+128|0;F[d|0]=(h>>>8&255)+h>>>8;h=(N(e,I[d+1|0])+N(f,J[a+428>>1])|0)+128|0;F[d+1|0]=(h>>>8&255)+h>>>8;e=(N(e,I[d+2|0])+N(f,J[a+430>>1])|0)+128|0;F[d+2|0]=(e>>>8&255)+e>>>8}d=d+4|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}break Ia}if(!(n?!h|!m:1)){break Sa}if(!i){break Ia}g=0;while(1){e=I[d+7|0]|I[d+6|0]<<8;cb:{if((e|0)==65535){break cb}if(!e){F[d|0]=I[a+427|0];F[d+1|0]=I[a+426|0];F[d+2|0]=I[a+429|0];F[d+3|0]=I[a+428|0];F[d+4|0]=I[a+431|0];F[d+5|0]=I[a+430|0];break cb}f=e^65535;h=(N(e,I[d+1|0]|I[d|0]<<8)+N(f,J[a+426>>1])|0)+32768|0;h=(h>>>16|0)+h|0;F[d+1|0]=h>>>16;F[d|0]=h>>>24;h=(N(e,I[d+3|0]|I[d+2|0]<<8)+N(f,J[a+428>>1])|0)+32768|0;h=(h>>>16|0)+h|0;F[d+2|0]=h>>>24;F[d+3|0]=h>>>16;e=(N(e,I[d+5|0]|I[d+4|0]<<8)+N(f,J[a+430>>1])|0)+32768|0;e=(e>>>16|0)+e|0;F[d+4|0]=e>>>24;F[d+5|0]=e>>>16}d=d+8|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}break Ia}F[d|0]=I[a+432|0];break Ia}if(!i){break Ia}f=0;while(1){db:{eb:{q=I[d+7|0]|I[d+6|0]<<8;if(q){if((q|0)!=65535){break eb}g=J[H[h+(I[d+1|0]>>>e<<2)>>2]+(I[d|0]<<1)>>1];g=g<<8|g>>>8;F[d|0]=g;F[d+1|0]=g>>>8;g=J[H[h+(I[d+3|0]>>>e<<2)>>2]+(I[d+2|0]<<1)>>1];g=g<<8|g>>>8;F[d+2|0]=g;F[d+3|0]=g>>>8;g=J[H[h+(I[d+5|0]>>>e<<2)>>2]+(I[d+4|0]<<1)>>1];g=g<<8|g>>>8;F[d+4|0]=g;F[d+5|0]=g>>>8;break db}F[d|0]=I[a+427|0];F[d+1|0]=I[a+426|0];F[d+2|0]=I[a+429|0];F[d+3|0]=I[a+428|0];F[d+4|0]=I[a+431|0];F[d+5|0]=I[a+430|0];break db}r=q^65535;g=(N(q,J[H[n+(I[d+1|0]>>>e<<2)>>2]+(I[d|0]<<1)>>1])+N(r,J[a+436>>1])|0)+32768|0;j=(g>>>16|0)+g|0;g=j>>>24|0;j=j>>>16|0;if(!k){j=J[H[m+((j&255)>>>e<<2)>>2]+(g<<1)>>1];g=j>>>8|0}F[d+1|0]=j;F[d|0]=g;g=(N(q,J[H[n+(I[d+3|0]>>>e<<2)>>2]+(I[d+2|0]<<1)>>1])+N(r,J[a+438>>1])|0)+32768|0;j=(g>>>16|0)+g|0;g=j>>>24|0;j=j>>>16|0;if(!k){j=J[H[m+((j&255)>>>e<<2)>>2]+(g<<1)>>1];g=j>>>8|0}F[d+3|0]=j;F[d+2|0]=g;g=(N(q,J[H[n+(I[d+5|0]>>>e<<2)>>2]+(I[d+4|0]<<1)>>1])+N(r,J[a+440>>1])|0)+32768|0;j=(g>>>16|0)+g|0;g=j>>>24|0;j=j>>>16|0;if(!k){j=J[H[m+((j&255)>>>e<<2)>>2]+(g<<1)>>1];g=j>>>8|0}F[d+5|0]=j;F[d+4|0]=g}d=d+8|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}break Ia}if(!i){break Ia}h=0;while(1){fb:{gb:{n=I[d+3|0];if(n){if((n|0)!=255){break gb}F[d|0]=I[g+I[d|0]|0];F[d+1|0]=I[g+I[d+1|0]|0];F[d+2|0]=I[g+I[d+2|0]|0];break fb}F[d|0]=I[a+426|0];F[d+1|0]=I[a+428|0];F[d+2|0]=I[a+430|0];break fb}m=n^255;e=(N(n,I[f+I[d|0]|0])+N(m,J[a+436>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!k){e=I[j+(e&255)|0]}F[d|0]=e;e=(N(n,I[f+I[d+1|0]|0])+N(m,J[a+438>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!k){e=I[j+(e&255)|0]}F[d+1|0]=e;e=(N(n,I[f+I[d+2|0]|0])+N(m,J[a+440>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!k){e=I[j+(e&255)|0]}F[d+2|0]=e}d=d+4|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}break Ia}if(!i){break Ia}f=0;while(1){hb:{ib:{g=I[d+3|0]|I[d+2|0]<<8;if(g){if((g|0)!=65535){break ib}g=J[H[h+(I[d+1|0]>>>e<<2)>>2]+(I[d|0]<<1)>>1];g=g<<8|g>>>8;F[d|0]=g;F[d+1|0]=g>>>8;break hb}F[d|0]=I[a+433|0];F[d+1|0]=I[a+432|0];break hb}g=(N(g,J[H[n+(I[d+1|0]>>>e<<2)>>2]+(I[d|0]<<1)>>1])+N(J[a+442>>1],g^65535)|0)+32768|0;j=(g>>>16|0)+g|0;g=j>>>16|0;if(k){j=j>>>24|0}else{g=J[H[m+((g&255)>>>e<<2)>>2]+(j>>>23&510)>>1];j=g>>>8|0}F[d+1|0]=g;F[d|0]=j}d=d+4|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}break Ia}if(!i){break Ia}h=0;while(1){jb:{kb:{e=I[d+1|0];if(e){if((e|0)!=255){break kb}e=I[g+I[d|0]|0];break jb}e=I[a+432|0];break jb}e=(N(J[a+442>>1],e^255)+N(e,I[f+I[d|0]|0])|0)+128&65535;e=(e>>>8|0)+e>>>8|0;if(k){break jb}e=I[j+(e&255)|0]}F[d|0]=e;d=d+2|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}break Ia}if(!i){break Ia}f=0;while(1){if(!(J[a+510>>1]!=(I[d+1|0]|I[d|0]<<8)|J[a+512>>1]!=(I[d+3|0]|I[d+2|0]<<8)|J[a+514>>1]!=(I[d+5|0]|I[d+4|0]<<8))){F[d|0]=I[a+427|0];F[d+1|0]=I[a+426|0];F[d+2|0]=I[a+429|0];F[d+3|0]=I[a+428|0];F[d+4|0]=I[a+431|0];F[d+5|0]=I[a+430|0]}d=d+6|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}break Ia}if(!i){break Ia}f=0;while(1){if(!(J[a+510>>1]!=I[d|0]|J[a+512>>1]!=I[d+1|0]|J[a+514>>1]!=I[d+2|0])){F[d|0]=I[a+426|0];F[d+1|0]=I[a+428|0];F[d+2|0]=I[a+430|0]}d=d+3|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}break Ia}if(!i){break Ia}if((i|0)!=1){e=i&-2;f=0;while(1){if(J[a+516>>1]==(I[d+1|0]|I[d|0]<<8)){F[d|0]=I[a+433|0];F[d+1|0]=I[a+432|0]}if(J[a+516>>1]==(I[d+3|0]|I[d+2|0]<<8)){F[d+2|0]=I[a+433|0];F[d+3|0]=I[a+432|0]}d=d+4|0;f=f+2|0;if((e|0)!=(f|0)){continue}break}}if(!(i&1)|J[a+516>>1]!=(I[d+1|0]|I[d|0]<<8)){break Ia}F[d|0]=I[a+433|0];F[d+1|0]=I[a+432|0];break Ia}if(!i){break Ia}if((i|0)!=1){e=i&-2;f=0;while(1){if(J[a+516>>1]==I[d|0]){F[d|0]=I[a+432|0]}if(J[a+516>>1]==I[d+1|0]){F[d+1|0]=I[a+432|0]}d=d+2|0;f=f+2|0;if((e|0)!=(f|0)){continue}break}}if(!(i&1)|J[a+516>>1]!=I[d|0]){break Ia}F[d|0]=I[a+432|0];break Ia}if(!i){break Ia}g=0;f=4;while(1){e=I[d|0];if(J[a+516>>1]==(e>>>f&15)){e=e&3855>>>4-f;F[d|0]=e;F[d|0]=e|J[a+432>>1]<>1]==(e>>>f&3)){e=e&16191>>>6-f;F[d|0]=e;F[d|0]=e|J[a+432>>1]<>2]}lb:{if((d&6299648)!=8192){break lb}mb:{if(!(d&128)){f=I[a+401|0];break mb}if(J[a+394>>1]){break lb}f=I[a+401|0];if(f&4){break lb}}if((f|0)==3){break lb}d=H[a+356>>2]+1|0;k=0;g=H[l>>2];i=H[a+456>>2];h=H[a+472>>2];e=I[l+9|0];f=H[a+468>>2];nb:{if(!(f?e>>>0<=8:0)&(!h|(e|0)!=16)){break nb}ob:{pb:{qb:{switch(I[l+8|0]){case 2:if((e|0)!=8){if(!g){break nb}e=0;while(1){f=J[H[h+(I[d+1|0]>>>i<<2)>>2]+(I[d|0]<<1)>>1];f=f<<8|f>>>8;F[d|0]=f;F[d+1|0]=f>>>8;f=J[H[h+(I[d+3|0]>>>i<<2)>>2]+(I[d+2|0]<<1)>>1];f=f<<8|f>>>8;F[d+2|0]=f;F[d+3|0]=f>>>8;f=J[H[h+(I[d+5|0]>>>i<<2)>>2]+(I[d+4|0]<<1)>>1];f=f<<8|f>>>8;F[d+4|0]=f;F[d+5|0]=f>>>8;d=d+6|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}break nb}if(!g){break nb}if((g|0)!=1){h=g&-2;e=0;while(1){F[d|0]=I[f+I[d|0]|0];F[d+1|0]=I[f+I[d+1|0]|0];F[d+2|0]=I[f+I[d+2|0]|0];F[d+3|0]=I[f+I[d+3|0]|0];F[d+4|0]=I[f+I[d+4|0]|0];F[d+5|0]=I[f+I[d+5|0]|0];d=d+6|0;e=e+2|0;if((h|0)!=(e|0)){continue}break}}break pb;case 6:if((e|0)!=8){if(!g){break nb}e=0;while(1){f=J[H[h+(I[d+1|0]>>>i<<2)>>2]+(I[d|0]<<1)>>1];f=f<<8|f>>>8;F[d|0]=f;F[d+1|0]=f>>>8;f=J[H[h+(I[d+3|0]>>>i<<2)>>2]+(I[d+2|0]<<1)>>1];f=f<<8|f>>>8;F[d+2|0]=f;F[d+3|0]=f>>>8;f=J[H[h+(I[d+5|0]>>>i<<2)>>2]+(I[d+4|0]<<1)>>1];f=f<<8|f>>>8;F[d+4|0]=f;F[d+5|0]=f>>>8;d=d+8|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}break nb}if(!g){break nb}if((g|0)!=1){h=g&-2;e=0;while(1){F[d|0]=I[f+I[d|0]|0];F[d+1|0]=I[f+I[d+1|0]|0];F[d+2|0]=I[f+I[d+2|0]|0];F[d+4|0]=I[f+I[d+4|0]|0];F[d+5|0]=I[f+I[d+5|0]|0];F[d+6|0]=I[f+I[d+6|0]|0];d=d+8|0;e=e+2|0;if((h|0)!=(e|0)){continue}break}}break pb;case 4:if((e|0)!=8){if(!g){break nb}if((g|0)!=1){f=g&-2;e=0;while(1){j=J[H[h+(I[d+1|0]>>>i<<2)>>2]+(I[d|0]<<1)>>1];j=j<<8|j>>>8;F[d|0]=j;F[d+1|0]=j>>>8;j=J[H[h+(I[d+5|0]>>>i<<2)>>2]+(I[d+4|0]<<1)>>1];j=j<<8|j>>>8;F[d+4|0]=j;F[d+5|0]=j>>>8;d=d+8|0;e=e+2|0;if((f|0)!=(e|0)){continue}break}}break ob}if(!g){break nb}if(g-1>>>0>=3){h=g&-4;e=0;while(1){F[d|0]=I[f+I[d|0]|0];F[d+2|0]=I[f+I[d+2|0]|0];F[d+4|0]=I[f+I[d+4|0]|0];F[d+6|0]=I[f+I[d+6|0]|0];d=d+8|0;e=e+4|0;if((h|0)!=(e|0)){continue}break}}g=g&3;if(!g){break nb}e=0;while(1){F[d|0]=I[f+I[d|0]|0];d=d+2|0;e=e+1|0;if((g|0)!=(e|0)){continue}break};break nb;case 0:break qb;default:break nb}}rb:{sb:{tb:{if(!(!g|(e|0)!=2)){e=d;while(1){j=I[e|0];n=j&48;o=I[f+(N(n,5)|n>>>2|n>>>4)|0]>>>2&48;n=j&192;o=o|I[f+(n|j>>>6|n>>>2|n>>>4)|0]&192;n=j&12;F[e|0]=o|I[f+(N(n,21)|n>>>2)|0]>>>4&12|I[f+N(j&3,85)|0]>>>6;e=e+1|0;k=k+4|0;if(g>>>0>k>>>0){continue}break}e=I[l+9|0]}switch(e-4|0){case 0:break rb;case 4:break sb;case 12:break tb;default:break nb}}if(!g){break nb}if((g|0)!=1){f=g&-2;e=0;while(1){j=J[H[h+(I[d+1|0]>>>i<<2)>>2]+(I[d|0]<<1)>>1];j=j<<8|j>>>8;F[d|0]=j;F[d+1|0]=j>>>8;j=J[H[h+(I[d+3|0]>>>i<<2)>>2]+(I[d+2|0]<<1)>>1];j=j<<8|j>>>8;F[d+2|0]=j;F[d+3|0]=j>>>8;d=d+4|0;e=e+2|0;if((f|0)!=(e|0)){continue}break}}break ob}if(!g){break nb}if(g-1>>>0>=3){h=g&-4;e=0;while(1){F[d|0]=I[f+I[d|0]|0];F[d+1|0]=I[f+I[d+1|0]|0];F[d+2|0]=I[f+I[d+2|0]|0];F[d+3|0]=I[f+I[d+3|0]|0];d=d+4|0;e=e+4|0;if((h|0)!=(e|0)){continue}break}}g=g&3;if(!g){break nb}e=0;while(1){F[d|0]=I[f+I[d|0]|0];d=d+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}break nb}if(!g){break nb}e=0;while(1){h=I[d|0];F[d|0]=I[f+N(h&15,17)|0]>>>4|I[f+(h&240|h>>>4)|0]&240;d=d+1|0;e=e+2|0;if(g>>>0>e>>>0){continue}break}break nb}if(!(g&1)){break nb}F[d|0]=I[f+I[d|0]|0];F[d+1|0]=I[f+I[d+1|0]|0];F[d+2|0]=I[f+I[d+2|0]|0];break nb}if(!(g&1)){break nb}e=J[H[h+(I[d+1|0]>>>i<<2)>>2]+(I[d|0]<<1)>>1];e=e<<8|e>>>8;F[d|0]=e;F[d+1|0]=e>>>8}d=H[a+208>>2]}ub:{if((d&262272)!=262272){break ub}vb:{switch(I[l+8|0]-4|0){case 0:case 2:break vb;default:break ub}}Fq(l,H[a+356>>2]+1|0,0);d=H[a+208>>2]}if(d&64){d=H[a+356>>2]+1|0;h=H[a+588>>2];e=H[a+592>>2];wb:{if(I[l+9|0]!=8){break wb}f=H[l>>2];xb:{yb:{zb:{Ab:{Bb:{g=I[l+8|0];if(!(!h|(g|0)!=2)){if(!f){break Bb}g=0;e=d;while(1){F[e|0]=I[h+(I[d+1|0]<<2&992|I[d|0]<<7&31744|I[d+2|0]>>>3)|0];e=e+1|0;d=d+3|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}F[l+10|0]=1;F[l+8|0]=3;d=I[l+9|0];F[l+11|0]=d;if(d>>>0>=8){break yb}break xb}if(!(!h|(g|0)!=6)){if(!f){break Ab}g=0;e=d;while(1){F[e|0]=I[h+(I[d+1|0]<<2&992|I[d|0]<<7&31744|I[d+2|0]>>>3)|0];e=e+1|0;d=d+4|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}F[l+10|0]=1;F[l+8|0]=3;d=I[l+9|0];F[l+11|0]=d;if(d>>>0>=8){break zb}break xb}if(!f|(!e|(g|0)!=3)){break wb}if(f-1>>>0>=3){h=f&-4;g=0;while(1){F[d|0]=I[e+I[d|0]|0];F[d+1|0]=I[e+I[d+1|0]|0];F[d+2|0]=I[e+I[d+2|0]|0];F[d+3|0]=I[e+I[d+3|0]|0];d=d+4|0;g=g+4|0;if((h|0)!=(g|0)){continue}break}}f=f&3;if(!f){break wb}g=0;while(1){F[d|0]=I[e+I[d|0]|0];d=d+1|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}break wb}G[l+10>>1]=2049;F[l+8|0]=3;d=8;break yb}G[l+10>>1]=2049;F[l+8|0]=3;d=8}H[l+4>>2]=N(f,d>>>3|0);break wb}H[l+4>>2]=N(f,d>>>3|0);break wb}H[l+4>>2]=N(d,f)+7>>>3}if(!H[l+4>>2]){break oa}d=H[a+208>>2]}if(!(!(d&16384)|!(I[a+201|0]&8))){SB(l,H[a+356>>2]+1|0);d=H[a+208>>2]}if(d&32){uC(l,H[a+356>>2]+1|0);d=H[a+208>>2]}if(d&8){d=H[a+356>>2]+1|0;e=xb-16|0;i=I[l+8|0];Cb:{if((i|0)==3){break Cb}f=I[l+9|0];Db:{if(i&2){h=I[a+497|0];H[e+4>>2]=f-I[a+498|0];H[e+8>>2]=f-I[a+499|0];g=3;break Db}h=I[a+500|0];g=1}j=f-h|0;H[e>>2]=j;if(i&4){H[(e|g<<2)>>2]=f-I[a+501|0];g=g+1|0}h=(h|0)!=0&(j|0)>0;H[e>>2]=h?j:0;Eb:{if((g|0)==1){break Eb}i=H[e+4>>2];j=(i|0)<(f|0)&(i|0)>0;H[e+4>>2]=j?i:0;h=j?1:h;if((g|0)==2){break Eb}i=H[e+8>>2];j=(i|0)<(f|0)&(i|0)>0;H[e+8>>2]=j?i:0;h=j?1:h;if((g|0)==3){break Eb}i=H[e+12>>2];j=(i|0)<(f|0)&(i|0)>0;H[e+12>>2]=j?i:0;h=j?1:h}if(!h){break Cb}Fb:{switch(kma(f-2|0,31)|0){case 0:e=H[l+4>>2];if((e|0)<=0){break Cb}e=d+e|0;while(1){F[d|0]=I[d|0]>>>1&85;d=d+1|0;if(e>>>0>d>>>0){continue}break};break Cb;case 1:f=H[l+4>>2];if((f|0)<=0){break Cb}e=H[e>>2];g=N(15>>>e|0,17);f=d+f|0;while(1){F[d|0]=g&I[d|0]>>>e;d=d+1|0;if(f>>>0>d>>>0){continue}break};break Cb;case 3:f=H[l+4>>2];if((f|0)<=0){break Cb}h=d+f|0;f=0;while(1){F[d|0]=I[d|0]>>>H[e+(f<<2)>>2];f=f+1|0;f=(f|0)<(g|0)?f:0;d=d+1|0;if(h>>>0>d>>>0){continue}break};break Cb;case 7:break Fb;default:break Cb}}f=H[l+4>>2];if((f|0)<=0){break Cb}h=d+f|0;f=0;while(1){i=(I[d+1|0]|I[d|0]<<8)>>>H[e+(f<<2)>>2]|0;i=i<<8|i>>>8;F[d|0]=i;F[d+1|0]=i>>>8;f=f+1|0;f=(f|0)<(g|0)?f:0;d=d+2|0;if(h>>>0>d>>>0){continue}break}}d=H[a+208>>2]}if(d&4){g=H[a+356>>2]+1|0;e=I[l+9|0];if(e>>>0<=7){d=H[l>>2];Gb:{Hb:{switch(e-1|0){case 0:if(!d){break Gb}f=d+g|0;e=0-d&7;h=d-1|0;g=g+(h>>>3|0)|0;if(h){i=d&-2;h=0;while(1){F[f-1|0]=I[g|0]>>>e&1;f=f-2|0;j=g;g=(e|0)==7;j=j-g|0;e=g?0:e+1|0;F[f|0]=I[j|0]>>>e&1;g=(e|0)==7;e=g?0:e+1|0;g=j-g|0;h=h+2|0;if((i|0)!=(h|0)){continue}break}}if(!(d&1)){break Gb}F[f-1|0]=I[g|0]>>>e&1;break Gb;case 1:if(!d){break Gb}f=d+g|0;h=d-1|0;g=g+(h>>>2|0)|0;e=((d<<1)+6^-1)&6;if(h){i=d&-2;h=0;while(1){F[f-1|0]=I[g|0]>>>e&3;f=f-2|0;j=g;g=(e|0)==6;j=j-g|0;e=g?0:e+2|0;F[f|0]=I[j|0]>>>e&3;g=(e|0)==6;e=g?0:e+2|0;g=j-g|0;h=h+2|0;if((i|0)!=(h|0)){continue}break}}if(!(d&1)){break Gb}F[f-1|0]=I[g|0]>>>e&3;break Gb;case 3:break Hb;default:break Gb}}if(!d){break Gb}f=d+g|0;e=d<<2&4;h=d-1|0;g=g+(h>>>1|0)|0;if(h){i=d&-2;h=0;while(1){F[f-1|0]=I[g|0]>>>e&15;f=f-2|0;j=(e|0)==4;g=g-j|0;e=(e|0)!=4;F[f|0]=I[g|0]>>>(e<<2)&15;g=g-e|0;e=j<<2;h=h+2|0;if((i|0)!=(h|0)){continue}break}}if(!(d&1)){break Gb}F[f-1|0]=I[g|0]>>>e&15}F[l+9|0]=8;e=I[l+10|0];F[l+11|0]=e<<3;H[l+4>>2]=N(d,e)}d=H[a+208>>2]}if(d&1){qC(l,H[a+356>>2]+1|0);d=H[a+208>>2]}if(d&65536){sC(l,H[a+356>>2]+1|0);d=H[a+208>>2]}if(d&32768){d=H[a+356>>2]+1|0;g=H[a+204>>2];f=0;i=J[a+416>>1];e=i>>>8|0;h=H[l>>2];Ib:{Jb:{Kb:{switch(I[l+8|0]){case 0:Lb:{switch(I[l+9|0]-8|0){case 0:if(g&128){g=d+h|0;d=h+g|0;k=2;Mb:{if(h>>>0<2){break Mb}e=h-1|0;f=e&3;if(h-2>>>0>=3){j=e&-4;e=0;while(1){F[d-1|0]=i;n=I[g-1|0];F[d-3|0]=i;F[d-2|0]=n;n=I[g-2|0];F[d-5|0]=i;F[d-4|0]=n;n=I[g-3|0];F[d-7|0]=i;F[d-6|0]=n;d=d-8|0;g=g-4|0;F[d|0]=I[g|0];e=e+4|0;if((j|0)!=(e|0)){continue}break}}if(!f){break Mb}e=0;while(1){F[d-1|0]=i;d=d-2|0;g=g-1|0;F[d|0]=I[g|0];e=e+1|0;if((f|0)!=(e|0)){continue}break}}F[d-1|0]=i;j=1;n=16;break Jb}j=1;n=16;k=2;if(!h){break Jb}m=h&3;g=d+h|0;d=h+g|0;Nb:{if(h-1>>>0<3){e=d;break Nb}q=h&-4;while(1){e=I[g-1|0];F[d-2|0]=i;F[d-1|0]=e;e=I[g-2|0];F[d-4|0]=i;F[d-3|0]=e;e=I[g-3|0];F[d-6|0]=i;F[d-5|0]=e;g=g-4|0;r=I[g|0];e=d-8|0;F[e|0]=i;F[d-7|0]=r;d=e;f=f+4|0;if((q|0)!=(f|0)){continue}break}}if(!m){break Jb}d=0;while(1){g=g-1|0;j=I[g|0];f=e-2|0;F[f|0]=i;F[e-1|0]=j;j=1;e=f;d=d+1|0;if((m|0)!=(d|0)){continue}break};break Jb;case 8:break Lb;default:break Ib}}if(g&128){f=d;d=h<<1;g=f+d|0;d=g+d|0;k=2;Ob:{if(h>>>0<2){break Ob}f=h-1|0;j=f&1;if((h|0)!=2){n=f&-2;f=0;while(1){F[d-2|0]=e;F[d-1|0]=i;F[d-3|0]=I[g-1|0];m=I[g-2|0];F[d-5|0]=i;F[d-4|0]=m;F[d-6|0]=e;F[d-7|0]=I[g-3|0];d=d-8|0;g=g-4|0;F[d|0]=I[g|0];f=f+2|0;if((n|0)!=(f|0)){continue}break}}if(!j){break Ob}F[d-2|0]=e;F[d-1|0]=i;F[d-3|0]=I[g-1|0];d=d-4|0;F[d|0]=I[g-2|0]}F[d-2|0]=e;F[d-1|0]=i;n=32;j=2;break Jb}n=32;if(h){Pb:{g=d;d=h<<1;g=g+d|0;d=g+d|0;if((h|0)!=1){j=h&-2;while(1){F[d-1|0]=I[g-1|0];k=I[g-2|0];F[d-3|0]=i;F[d-2|0]=k;F[d-4|0]=e;F[d-5|0]=I[g-3|0];g=g-4|0;k=I[g|0];F[d-7|0]=i;F[d-6|0]=k;d=d-8|0;F[d|0]=e;f=f+2|0;if((j|0)!=(f|0)){continue}break}}if(!(h&1)){break Pb}F[d-1|0]=I[g-1|0];f=I[g-2|0];F[d-3|0]=i;F[d-2|0]=f;F[d-4|0]=e}}k=2;j=2;break Jb;case 2:break Kb;default:break Ib}}Qb:{switch(I[l+9|0]-8|0){case 0:if(g&128){g=d+N(h,3)|0;d=h+g|0;j=2;if(h>>>0>=2){e=1;while(1){F[d-1|0]=i;F[d-2|0]=I[g-1|0];F[d-3|0]=I[g-2|0];d=d-4|0;g=g-3|0;F[d|0]=I[g|0];e=e+1|0;if((h|0)!=(e|0)){continue}break}}F[d-1|0]=i;n=32;k=4;break Jb}j=2;n=32;k=4;if(!h){break Jb}g=d+N(h,3)|0;d=h+g|0;e=0;while(1){F[d-1|0]=I[g-1|0];F[d-2|0]=I[g-2|0];g=g-3|0;m=I[g|0];f=d-4|0;F[f|0]=i;F[d-3|0]=m;d=f;e=e+1|0;if((h|0)!=(e|0)){continue}break};break Jb;case 8:break Qb;default:break Ib}}if(g&128){f=1;g=d+N(h,6)|0;d=g+(h<<1)|0;if(h>>>0>=2){while(1){F[d-2|0]=e;F[d-1|0]=i;F[d-3|0]=I[g-1|0];F[d-4|0]=I[g-2|0];F[d-5|0]=I[g-3|0];F[d-6|0]=I[g-4|0];F[d-7|0]=I[g-5|0];d=d-8|0;g=g-6|0;F[d|0]=I[g|0];f=f+1|0;if((h|0)!=(f|0)){continue}break}}F[d-2|0]=e;F[d-1|0]=i;j=3;n=64;k=4;break Jb}j=3;n=64;k=4;if(!h){break Jb}g=d+N(h,6)|0;d=g+(h<<1)|0;while(1){F[d-1|0]=I[g-1|0];F[d-2|0]=I[g-2|0];F[d-3|0]=I[g-3|0];F[d-4|0]=I[g-4|0];F[d-5|0]=I[g-5|0];g=g-6|0;m=I[g|0];F[d-7|0]=i;F[d-6|0]=m;d=d-8|0;F[d|0]=e;f=f+1|0;if((h|0)!=(f|0)){continue}break}}F[l+11|0]=n;F[l+10|0]=k;H[l+4>>2]=h<>2]}if(d&524288){d=H[a+356>>2]+1|0;f=H[l>>2];Rb:{Sb:{switch(I[l+8|0]-4|0){case 2:if(I[l+9|0]==8){if(!f){break Rb}d=d+H[l+4>>2]|0;if(f-1>>>0>=3){g=f&-4;e=0;while(1){h=d-1|0;F[h|0]=I[h|0]^-1;h=d-5|0;F[h|0]=I[h|0]^-1;h=d-9|0;F[h|0]=I[h|0]^-1;h=d-13|0;F[h|0]=I[h|0]^-1;d=d-16|0;e=e+4|0;if((g|0)!=(e|0)){continue}break}}f=f&3;if(!f){break Rb}e=0;while(1){g=d-1|0;F[g|0]=I[g|0]^-1;d=d-4|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}break Rb}if(!f){break Rb}d=d+H[l+4>>2]|0;if((f|0)!=1){g=f&-2;e=0;while(1){h=d-1|0;F[h|0]=I[h|0]^-1;h=d-2|0;F[h|0]=I[h|0]^-1;h=d-9|0;F[h|0]=I[h|0]^-1;h=d-10|0;F[h|0]=I[h|0]^-1;d=d-16|0;e=e+2|0;if((g|0)!=(e|0)){continue}break}}if(!(f&1)){break Rb}e=d-1|0;F[e|0]=I[e|0]^-1;d=d-2|0;F[d|0]=I[d|0]^-1;break Rb;case 0:break Sb;default:break Rb}}if(I[l+9|0]==8){if(!f){break Rb}d=d+H[l+4>>2]|0;if(f-1>>>0>=3){g=f&-4;e=0;while(1){h=d-1|0;F[h|0]=I[h|0]^-1;h=d-3|0;F[h|0]=I[h|0]^-1;h=d-5|0;F[h|0]=I[h|0]^-1;h=d-7|0;F[h|0]=I[h|0]^-1;d=d-8|0;e=e+4|0;if((g|0)!=(e|0)){continue}break}}f=f&3;if(!f){break Rb}e=0;while(1){g=d-1|0;F[g|0]=I[g|0]^-1;d=d-2|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}break Rb}if(!f){break Rb}d=d+H[l+4>>2]|0;if((f|0)!=1){g=f&-2;e=0;while(1){h=d-1|0;F[h|0]=I[h|0]^-1;h=d-2|0;F[h|0]=I[h|0]^-1;h=d-5|0;F[h|0]=I[h|0]^-1;h=d-6|0;F[h|0]=I[h|0]^-1;d=d-8|0;e=e+2|0;if((g|0)!=(e|0)){continue}break}}if(!(f&1)){break Rb}e=d-1|0;F[e|0]=I[e|0]^-1;d=d-2|0;F[d|0]=I[d|0]^-1}d=H[a+208>>2]}if(d&131072){d=H[a+356>>2]+1|0;e=H[l>>2];Tb:{Ub:{switch(I[l+8|0]-4|0){case 2:if(I[l+9|0]==8){if(!e){break Tb}d=d+H[l+4>>2]|0;if((e|0)!=1){g=e&-2;f=0;while(1){h=d-1|0;i=I[h|0];j=h;h=d-2|0;F[j|0]=I[h|0];j=d-3|0;k=I[j|0];o=j;j=d-4|0;F[o|0]=I[j|0];F[h|0]=k;F[j|0]=i;h=d-5|0;i=I[h|0];j=h;h=d-6|0;F[j|0]=I[h|0];j=h;h=d-7|0;F[j|0]=I[h|0];d=d-8|0;F[h|0]=I[d|0];F[d|0]=i;f=f+2|0;if((g|0)!=(f|0)){continue}break}}if(!(e&1)){break Tb}e=d-1|0;f=I[e|0];g=e;e=d-2|0;F[g|0]=I[e|0];g=d-3|0;h=I[g|0];d=d-4|0;F[g|0]=I[d|0];F[e|0]=h;F[d|0]=f;break Tb}if(!e){break Tb}d=d+H[l+4>>2]|0;f=0;while(1){g=d-2|0;i=I[g|0]|I[g+1|0]<<8;h=d-4|0;j=I[h|0]|I[h+1|0]<<8;F[g|0]=j;F[g+1|0]=j>>>8;g=d-6|0;j=I[g|0]|I[g+1|0]<<8;F[h|0]=j;F[h+1|0]=j>>>8;d=d-8|0;h=I[d|0]|I[d+1|0]<<8;F[g|0]=h;F[g+1|0]=h>>>8;F[d|0]=i;F[d+1|0]=i>>>8;f=f+1|0;if((e|0)!=(f|0)){continue}break};break Tb;case 0:break Ub;default:break Tb}}if(I[l+9|0]==8){if(!e){break Tb}d=d+H[l+4>>2]|0;if(e-1>>>0>=3){g=e&-4;f=0;while(1){h=d-1|0;i=I[h|0];j=h;h=d-2|0;F[j|0]=I[h|0];F[h|0]=i;h=d-3|0;i=I[h|0];j=h;h=d-4|0;F[j|0]=I[h|0];F[h|0]=i;h=d-5|0;i=I[h|0];j=h;h=d-6|0;F[j|0]=I[h|0];F[h|0]=i;h=d-7|0;i=I[h|0];d=d-8|0;F[h|0]=I[d|0];F[d|0]=i;f=f+4|0;if((g|0)!=(f|0)){continue}break}}e=e&3;if(!e){break Tb}f=0;while(1){g=d-1|0;h=I[g|0];d=d-2|0;F[g|0]=I[d|0];F[d|0]=h;f=f+1|0;if((e|0)!=(f|0)){continue}break}break Tb}if(!e){break Tb}d=d+H[l+4>>2]|0;if((e|0)!=1){i=e&-2;f=0;while(1){g=d-4|0;h=kma(I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24),16);F[g|0]=h;F[g+1|0]=h>>>8;F[g+2|0]=h>>>16;F[g+3|0]=h>>>24;d=d-8|0;g=kma(I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24),16);F[d|0]=g;F[d+1|0]=g>>>8;F[d+2|0]=g>>>16;F[d+3|0]=g>>>24;f=f+2|0;if((i|0)!=(f|0)){continue}break}}if(!(e&1)){break Tb}d=d-4|0;e=kma(I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24),16);F[d|0]=e;F[d+1|0]=e>>>8;F[d+2|0]=e>>>16;F[d+3|0]=e>>>24}d=H[a+208>>2]}if(d&16){tC(l,H[a+356>>2]+1|0);d=H[a+208>>2]}if(d&1048576){d=H[a+184>>2];if(d){zb[d|0](a,l,H[a+356>>2]+1|0)}d=I[a+196|0];if(d){F[l+9|0]=d}d=I[a+197|0];Vb:{if(!d){d=I[l+10|0];break Vb}F[l+10|0]=d}e=N(I[l+9|0],d);F[l+11|0]=e;d=H[l>>2];e=e&255;Wb:{if(e>>>0>=8){d=N(d,e>>>3|0);break Wb}d=N(d,e)+7>>>3|0}H[l+4>>2]=d}break na}hc(a,261109);X()}hc(a,261265);X()}hc(a,261487);X()}hc(a,261876);X()}}d=I[l+11|0];e=I[a+409|0];Xb:{if(!e){F[a+409|0]=d;if(d>>>0<=I[a+408|0]){break Xb}hc(a,261440);X()}if((d|0)!=(e|0)){break a}}Yb:{Zb:{if(!I[a+398|0]){break Zb}f=H[a+208>>2];if(!(f&2)){break Zb}m=I[a+399|0];if(m>>>0<=5){g=0;q=xb-16|0;xb=q;k=H[a+356>>2]+1|0;if(!(!l|!k)){n=H[(m<<2)+269824>>2];d=H[l>>2];j=N(n,d);_b:{$b:{ac:{bc:{cc:{dc:{e=I[l+11|0];switch(e-1|0){case 3:break bc;case 1:break cc;case 0:break dc;default:break ac}}i=7;r=d-1|0;g=r&7;ec:{if(f&65536){h=-1;e=j-1&7;break ec}t=7;g=g^7;i=0;h=1;e=0-j&7}if(!d){break $b}f=k+(j-1>>>3|0)|0;k=k+(r>>>3|0)|0;d=(n|0)>1?n:1;r=d&2147483646;s=d&1;n=0;u=(m|0)==6;while(1){m=I[k|0]>>>g&1;d=0;if(!u){while(1){F[f|0]=I[f|0]&32639>>>7-e|m<>>7-e|m<>>7-e|m<>>0>2]){continue}break}break $b}i=6;g=(d<<1)+6&6;fc:{if(f&65536){h=-2;e=(j<<1)+6&6;break fc}t=6;g=g^6;h=2;i=0;e=((j<<1)+6^-1)&6}if(!d){break $b}f=k+(j-1>>>2|0)|0;k=k+(d-1>>>2|0)|0;d=(n|0)>1?n:1;r=d&2147483646;s=d&1;n=0;u=(m|0)==6;while(1){m=I[k|0]>>>g&3;d=0;if(!u){while(1){F[f|0]=I[f|0]&16191>>>6-e|m<>>6-e|m<>>6-e|m<>>0>2]){continue}break}break $b}i=4;g=d<<2&4;gc:{if(f&65536){g=g^4;h=-4;e=(j<<2^-1)&4;break gc}t=4;i=0;h=4;e=j<<2&4}if(!d){break $b}f=k+(j-1>>>1|0)|0;k=k+(d-1>>>1|0)|0;d=(n|0)>1?n:1;r=d&2147483646;s=d&1;n=0;u=(m|0)==6;while(1){m=I[k|0]>>>g&15;d=0;if(!u){while(1){F[f|0]=I[f|0]&3855>>>4-e|m<>>4-e|m<>>4-e|m<>>0>2]){continue}break}break $b}if(!d){break _b}e=e>>>3|0;f=0-e|0;h=(n|0)>1?n:1;t=h&2147483644;n=h&3;d=k+N(e,d-1|0)|0;i=k+N(e,j-1|0)|0;k=h-1>>>0<3;while(1){Ob(q+8|0,d,e);h=0;if(!k){while(1){o=i;i=q+8|0;i=Ob(Ob(Ob(Ob(o,i,e)+f|0,i,e)+f|0,i,e)+f|0,i,e)+f|0;h=h+4|0;if((t|0)!=(h|0)){continue}break}}h=0;if(n){while(1){i=Ob(i,q+8|0,e)+f|0;h=h+1|0;if((n|0)!=(h|0)){continue}break}}d=d+f|0;g=g+1|0;if(g>>>0>2]){continue}break}}e=I[l+11|0]}H[l>>2]=j;d=e&255;hc:{if(d>>>0>=8){d=N(j,d>>>3|0);break hc}d=N(d,j)+7>>>3|0}H[l+4>>2]=d}xb=q+16|0}if(c){sg(a,c,1)}if(!b){break Yb}sg(a,b,0);break Yb}if(b){sg(a,b,-1)}if(!c){break Yb}sg(a,c,-1)}Jh(a);b=H[a+520>>2];if(!b){break d}zb[b|0](a,H[a+344>>2],I[a+399|0])}xb=l+16|0;return}hc(a,260513);X()}hc(a,261308);X()}hc(a,261696);X()}function hE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=O(0),E=0,M=0;q=xb-32|0;xb=q;H[c+144>>2]=0;F[c+140|0]=0;g=H[c+68>>2];a:{if(g>>>0>67108862){break a}l=g<<6;H[c+148>>2]=l>>>0>16384?l:16384;if(g>>>0>4194302){break a}g=g<<10;H[c+152>>2]=g>>>0>16384?g:16384}C=H[c+40>>2];i=H[c+68>>2];if(i){g=H[a+96>>2];l=H[c+80>>2];if(i-1>>>0>=7){k=i&-8;while(1){H[(l+N(f,20)|0)+4>>2]=g;H[(l+N(f|1,20)|0)+4>>2]=g;H[(l+N(f|2,20)|0)+4>>2]=g;H[(l+N(f|3,20)|0)+4>>2]=g;H[(l+N(f|4,20)|0)+4>>2]=g;H[(l+N(f|5,20)|0)+4>>2]=g;H[(l+N(f|6,20)|0)+4>>2]=g;H[(l+N(f|7,20)|0)+4>>2]=g;f=f+8|0;j=j+8|0;if((k|0)!=(j|0)){continue}break}}k=i&7;if(k){while(1){H[(l+N(f,20)|0)+4>>2]=g;f=f+1|0;h=h+1|0;if((k|0)!=(h|0)){continue}break}}g=0;while(1){f=l+N(g,20)|0;Mi(f,c);j=f+16|0;h=J[j>>1];b:{c:{if((h&31)==24&H[f>>2]-127995>>>0<=4){break c}if(!(!g|H[f>>2]-127462>>>0>25)){f=l+N(g-1|0,20)|0;if(H[f>>2]-127462>>>0>25){break b}if(!(I[f+16|0]&128)){break c}break b}if((h&287)==257){G[f+16>>1]=h|128;f=g+1|0;if(f>>>0>=i>>>0){break b}k=l+N(f,20)|0;h=H[k>>2];if(h>>>0<=131069){h=I[((h&56|I[(I[(h>>>11|0)+229200|0]>>>(h>>>8&4)<<4&240|h>>>6&15)+229264|0]<<6)>>>3|0)+229424|0]>>>(h&7)&1}else{h=0}if(!h){break b}Mi(k,c);j=k+16|0;h=J[k+16>>1];g=f;break c}if(H[f>>2]-917536>>>0>95){break b}}G[j>>1]=h|128}g=g+1|0;if(i>>>0>g>>>0){continue}break}}d:{if(!(1<>2]+16>>1]&7168)|(H[c+132>>2]|(H[c+16>>2]&17)!=1)){break d}H[q+8>>2]=0;f=H[b+80>>2];if(!(zb[H[f+164>>2]](b,H[b+84>>2],9676,q+8|0,H[f+20>>2])|0)){break d}H[q+20>>2]=0;H[q+24>>2]=0;H[q+12>>2]=0;H[q+16>>2]=0;H[q+8>>2]=9676;Mi(q+8|0,c);H[c+72>>2]=0;H[c+64>>2]=0;F[c+61|0]=1;F[c+62|0]=0;H[c+84>>2]=H[c+80>>2];H[c+64>>2]=0;f=H[c+80>>2];g=H[f+4>>2];h=H[f+8>>2];l=H[q+20>>2];i=H[q+24>>2];k=H[q+8>>2];if(ec(c,0,1)){f=H[c+84>>2]+N(H[c+72>>2],20)|0;H[f+12>>2]=l;H[f+16>>2]=i;H[f+8>>2]=h;H[f+4>>2]=g;H[f>>2]=k;H[c+72>>2]=H[c+72>>2]+1}cf(c)}e:{n=H[c+144>>2];if(!(n&1)){break e}l=H[c+68>>2];if(!H[c+20>>2]){if(!l){break e}f=l-1|0;g=0;while(1){f:{if((f|0)==(g|0)){g=l;break f}g=g+1|0;if(I[(H[c+80>>2]+N(g,20)|0)+16|0]&128){continue}}break}h=0;k=l;while(1){if(g-h>>>0>=2){Jd(c,h,g);k=H[c+68>>2]}f=g+1|0;h=f>>>0>>0?k:f;f=g;while(1){g:{f=f+1|0;if(k>>>0<=f>>>0){f=h;break g}if(I[(H[c+80>>2]+N(f,20)|0)+16|0]&128){continue}}break}i=g>>>0>>0;h=g;g=f;if(i){continue}break}break e}if(!l){break e}g=l-1|0;f=0;while(1){h:{if((f|0)==(g|0)){f=l;break h}f=f+1|0;if(I[(H[c+80>>2]+N(f,20)|0)+16|0]&128){continue}}break}g=0;h=l;while(1){i=f;s=f>>>0>h>>>0?h:f;p=s-g|0;i:{if(p>>>0<2){break i}n=n|32;H[c+144>>2]=n;if(g>>>0>=s>>>0){break i}m=H[c+80>>2];f=-1;k=g;r=s+(g^-1)|0;if(r>>>0>=3){t=p&-4;o=0;while(1){j=m+N(k,20)|0;u=H[j+8>>2];f=f>>>0>>0?f:u;u=H[j+28>>2];f=f>>>0>>0?f:u;u=H[j+48>>2];f=f>>>0>>0?f:u;j=H[j+68>>2];f=f>>>0>>0?f:j;k=k+4|0;o=o+4|0;if((t|0)!=(o|0)){continue}break}}j=0;o=p&3;if(o){while(1){t=H[(m+N(k,20)|0)+8>>2];f=f>>>0>>0?f:t;k=k+1|0;j=j+1|0;if((o|0)!=(j|0)){continue}break}}if(p&1){k=m+N(g,20)|0;if(H[k+8>>2]!=(f|0)){H[c+144>>2]=n;H[k+4>>2]=H[k+4>>2]|3}g=g+1|0}if(!r){break i}while(1){k=m+N(g,20)|0;if(H[k+8>>2]!=(f|0)){n=n|32;H[c+144>>2]=n;H[k+4>>2]=H[k+4>>2]|3}k=m+N(g+1|0,20)|0;if(H[k+8>>2]!=(f|0)){n=n|32;H[c+144>>2]=n;H[k+4>>2]=H[k+4>>2]|3}g=g+2|0;if((s|0)!=(g|0)){continue}break}}f=i+1|0;g=f>>>0>>0?h:f;f=i;while(1){j:{f=f+1|0;if(h>>>0<=f>>>0){f=g;break j}if(I[(H[c+80>>2]+N(f,20)|0)+16|0]&128){continue}}break}if(i>>>0>=l>>>0){break e}h=H[c+68>>2];g=i;continue}}h=H[c+40>>2];k:{l:{m:{k=Yn(H[c+44>>2]);n:{if(!((k|0)!=5|(h|0)!=4)){l=H[c+68>>2];if(!l){k=5;break n}i=H[c+80>>2];k=0;n=1;f=0;while(1){o:{g=1;j=J[(i+N(k,20)|0)+16>>1]&31;if((j|0)!=13){g=f;if(1<>>0>k>>>0;f=g;if((k|0)!=(l|0)){continue}}break}k=g&1?n&1?5:4:5}f=h&-2;if((f|0)!=4){break m}}if((h|0)==(k|0)){break k}if(k){break l}break k}if((h|0)==6|(f|0)!=6){break k}}Zj(c,781,H[c+20>>2]==1);H[c+40>>2]=H[c+40>>2]^1}s=a+60|0;p:{if(!H[H[a+80>>2]+16>>2]){break p}if(!Ac(c,b,105256,0)){break p}zb[H[H[a+80>>2]+16>>2]](s,c,b);Ac(c,b,105431,0)}k=H[c+80>>2];l=H[c+68>>2];if(!(!l|(C&-3)!=5)){j=H[a+200>>2];h=H[c+12>>2];g=0;while(1){f=k+N(g,20)|0;i=zb[H[h+28>>2]](h,H[f>>2],H[h+60>>2])|0;q:{r:{if((i|0)==H[f>>2]){break r}H[q+8>>2]=0;o=H[b+80>>2];if(!(zb[H[o+164>>2]](b,H[b+84>>2],i,q+8|0,H[o+20>>2])|0)){break r}H[f>>2]=i;break q}H[f+4>>2]=j|H[f+4>>2]}g=g+1|0;if((l|0)!=(g|0)){continue}break}}if(!(!l|(I[a+212|0]&8|(C&-2)!=6))){f=0;while(1){s:{t:{u:{v:{w:{x:{y:{i=k+N(f,20)|0;h=H[i>>2];g=h>>>8|0;switch(g-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break s;case 16:break u;case 0:break x;default:break y}}switch(g-254|0){case 1:break v;case 0:break w;default:break s}}g=65074;z:{switch(h-8211|0){case 1:g=65073;break t;case 18:g=65072;break t;case 0:break t;case 19:break z;default:break s}}g=65049;break t}g=65076;if((h|0)==65103){break t}break s}g=65045;A:{switch(h-65281|0){case 7:g=65077;break t;case 8:g=65078;break t;case 11:g=65040;break t;case 25:g=65043;break t;case 26:g=65044;break t;case 30:g=65046;break t;case 58:g=65095;break t;case 60:g=65096;break t;case 62:g=65075;break t;case 90:g=65079;break t;case 0:break t;case 92:break A;default:break s}}g=65080;break t}g=h-12289|0;if(g>>>0>=23|!(7995267>>>g&1)){break s}g=H[(g<<2)+151680>>2]}if((g|0)==(h|0)){break s}H[q+8>>2]=0;h=H[b+80>>2];if(!(zb[H[h+164>>2]](b,H[b+84>>2],g,q+8|0,H[h+20>>2])|0)){break s}H[i>>2]=g}f=f+1|0;if((l|0)!=(f|0)){continue}break}}m=b;o=xb-48|0;xb=o;i=c;B:{if(!H[c+68>>2]){break B}b=H[s+20>>2];c=H[b+24>>2];H[o+24>>2]=m;H[o+20>>2]=i;H[o+16>>2]=s;H[o+28>>2]=H[i+12>>2];H[o+32>>2]=H[i+32>>2];f=H[b+28>>2];H[o+36>>2]=f?f:771;b=H[b+32>>2];H[o+40>>2]=b?b:772;H[i+72>>2]=0;H[i+64>>2]=0;F[i+61|0]=1;F[i+62|0]=0;H[i+84>>2]=H[i+80>>2];H[i+64>>2]=0;r=(c|0)==4?2:c;t=r&-3;p=H[i+68>>2];f=0;h=1;C:{D:{E:{while(1){b=f+1|0;g=b>>>0

>>0?p:b;b=f;while(1){F:{c=b;b=b+1|0;if(p>>>0<=b>>>0){c=g;break F}if(!(1<>2]+N(b,20)|0)+16>>1]&7168)){continue}}break}if((t|0)!=1){b=H[i+80>>2]+N(f,20)|0;g=b;l=b+12|0;b=H[m+80>>2];b=zb[H[b+168>>2]](m,H[m+84>>2],c-f|0,g,20,l,20,H[b+24>>2])|0;if(I[i+61|0]){G:{if(H[i+84>>2]==H[i+80>>2]){f=H[i+72>>2];if((f|0)==H[i+64>>2]){break G}}if(!ec(i,b,b)){break E}$c(H[i+84>>2]+N(H[i+72>>2],20)|0,H[i+80>>2]+N(H[i+64>>2],20)|0,N(b,20));f=H[i+72>>2]}H[i+72>>2]=b+f}f=b+H[i+64>>2]|0;H[i+64>>2]=f}H:{if(!I[i+60|0]|c>>>0<=f>>>0){break H}while(1){jE(o+16|0,(t|0)!=1);f=H[i+64>>2];if(f>>>0>=c>>>0){break H}if(I[i+60|0]){continue}break}}if(!I[i+60|0]|(f|0)==(p|0)){break E}b=f+1|0;b=b>>>0

>>0?p:b;g=b-1|0;while(1){I:{c=f;f=c+1|0;if(p>>>0<=f>>>0){c=g;f=b;break I}if(1<>2]+N(f,20)|0)+16>>1]&7168){continue}}break}j=H[o+20>>2];h=H[j+64>>2];J:{if(h>>>0>=f>>>0|!I[j+60|0]){break J}l=j- -64|0;g=H[j+80>>2];b=h;K:{while(1){k=H[g+N(b,20)>>2];if(!((k&-16)==65024|k-918e3>>>0>=4294967056)){k=(b|0)==(c|0);b=b+1|0;if(!k){continue}break K}break}n=H[o+24>>2];L:{if(c>>>0<=h>>>0){break L}k=j+72|0;while(1){g=H[j+80>>2]+N(h,20)|0;H[g+12>>2]=0;h=g+12|0;u=H[g>>2];b=H[n+80>>2];g=H[g+20>>2];M:{if(!((g&-16)!=65024&g-918e3>>>0<4294967056)){g=zb[H[b+172>>2]](n,H[n+84>>2],u,g,h,H[b+28>>2])|0;b=H[j+80>>2]+N(H[j+64>>2],20)|0;u=H[b>>2];N:{O:{if(g){if(!ec(j,2,1)){break N}b=H[j+64>>2];Jd(j,b,b+2|0);b=H[j+64>>2];P:{if(b>>>0>2]){h=H[j+72>>2];g=H[j+84>>2];b=H[j+80>>2]+N(b,20)|0;break P}g=H[j+84>>2];h=H[j+72>>2];b=g+N(h?h-1|0:0,20)|0}g=N(h,20)+g|0;h=H[b+4>>2];H[g>>2]=H[b>>2];H[g+4>>2]=h;H[g+16>>2]=H[b+16>>2];h=H[b+12>>2];H[g+8>>2]=H[b+8>>2];H[g+12>>2]=h;H[g>>2]=u;H[l>>2]=H[l>>2]+2;b=k;break O}H[b+12>>2]=0;g=b+12|0;b=H[n+80>>2];zb[H[b+164>>2]](n,H[n+84>>2],u,g,H[b+20>>2])|0;Q:{if(I[j+61|0]){R:{if(H[j+84>>2]==H[j+80>>2]){b=H[k>>2];if((b|0)==H[l>>2]){break R}}if(!ec(j,1,1)){b=H[l>>2];break Q}g=H[j+80>>2]+N(H[j+64>>2],20)|0;h=H[g+4>>2];b=H[j+84>>2]+N(H[j+72>>2],20)|0;H[b>>2]=H[g>>2];H[b+4>>2]=h;H[b+16>>2]=H[g+16>>2];h=H[g+12>>2];H[b+8>>2]=H[g+8>>2];H[b+12>>2]=h;b=H[j+72>>2]}H[k>>2]=b+1}b=H[l>>2]+1|0;H[l>>2]=b}b=H[j+80>>2]+N(b,20)|0;H[b+12>>2]=0;h=H[b>>2];g=b+12|0;b=H[n+80>>2];zb[H[b+164>>2]](n,H[n+84>>2],h,g,H[b+20>>2])|0;b=l;if(!I[j+61|0]){break O}S:{if(H[j+84>>2]==H[j+80>>2]){b=H[k>>2];if((b|0)==H[l>>2]){break S}}if(!ec(j,1,1)){break N}g=H[j+80>>2]+N(H[j+64>>2],20)|0;h=H[g+4>>2];b=H[j+84>>2]+N(H[j+72>>2],20)|0;H[b>>2]=H[g>>2];H[b+4>>2]=h;H[b+16>>2]=H[g+16>>2];h=H[g+12>>2];H[b+8>>2]=H[g+8>>2];H[b+12>>2]=h;b=H[j+72>>2]}H[k>>2]=b+1;b=l}H[b>>2]=H[b>>2]+1}h=H[l>>2];if(h>>>0>=f>>>0){break M}while(1){if(!I[j+60|0]){break M}b=H[j+80>>2]+N(h,20)|0;g=H[b>>2];if((g&-16)!=65024&g-918e3>>>0<4294967056){break M}H[b+12>>2]=0;h=b+12|0;b=H[n+80>>2];zb[H[b+164>>2]](n,H[n+84>>2],g,h,H[b+20>>2])|0;T:{if(I[j+61|0]){U:{if(H[j+84>>2]==H[j+80>>2]){b=H[k>>2];if((b|0)==H[l>>2]){break U}}if(!ec(j,1,1)){h=H[l>>2];break T}g=H[j+80>>2]+N(H[j+64>>2],20)|0;h=H[g+4>>2];b=H[j+84>>2]+N(H[j+72>>2],20)|0;H[b>>2]=H[g>>2];H[b+4>>2]=h;H[b+16>>2]=H[g+16>>2];h=H[g+12>>2];H[b+8>>2]=H[g+8>>2];H[b+12>>2]=h;b=H[j+72>>2]}H[k>>2]=b+1}h=H[l>>2]+1|0;H[l>>2]=h}if(f>>>0>h>>>0){continue}break}break M}zb[H[b+164>>2]](n,H[n+84>>2],u,h,H[b+20>>2])|0;if(I[j+61|0]){V:{if(H[j+84>>2]==H[j+80>>2]){b=H[k>>2];if((b|0)==H[l>>2]){break V}}if(!ec(j,1,1)){h=H[l>>2];break M}g=H[j+80>>2]+N(H[j+64>>2],20)|0;h=H[g+4>>2];b=H[j+84>>2]+N(H[j+72>>2],20)|0;H[b>>2]=H[g>>2];H[b+4>>2]=h;H[b+16>>2]=H[g+16>>2];h=H[g+12>>2];H[b+8>>2]=H[g+8>>2];H[b+12>>2]=h;b=H[j+72>>2]}H[k>>2]=b+1}h=H[l>>2]+1|0;H[l>>2]=h}if(c>>>0<=h>>>0){break L}if(I[j+60|0]){continue}break}}if(f>>>0<=h>>>0){break J}b=H[j+80>>2]+N(h,20)|0;H[b+12>>2]=0;f=H[b>>2];c=b+12|0;b=H[n+80>>2];zb[H[b+164>>2]](n,H[n+84>>2],f,c,H[b+20>>2])|0;if(I[j+61|0]){W:{if(H[j+84>>2]==H[j+80>>2]){b=H[j+72>>2];if((b|0)==H[j+64>>2]){break W}}if(!ec(j,1,1)){break J}c=H[j+80>>2]+N(H[j+64>>2],20)|0;f=H[c+4>>2];b=H[j+84>>2]+N(H[j+72>>2],20)|0;H[b>>2]=H[c>>2];H[b+4>>2]=f;H[b+16>>2]=H[c+16>>2];f=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=f;b=H[j+72>>2]}H[j+72>>2]=b+1}H[l>>2]=H[l>>2]+1;break J}while(1){jE(o+16|0,!r);if(K[l>>2]>=f>>>0){break J}if(I[j+60|0]){continue}break}}f=H[i+64>>2];if(p>>>0>f>>>0){h=0;if(I[i+60|0]){continue}}break}cf(i);break D}cf(i);g=1;if(h&1){break C}}g=0;if(!Ac(i,m,105046,0)){break C}g=H[i+68>>2];if(g){c=0;while(1){h=H[i+80>>2];b=J[(h+N(c,20)|0)+16>>1];X:{if(!(1<>>0<256){b=c;break X}b=c+1|0;f=b>>>0>>0?g:b;b=c;while(1){Y:{b=b+1|0;if(g>>>0<=b>>>0){b=f;break Y}l=J[(h+N(b,20)|0)+16>>1];if(!(1<>>0>255){continue}}break}if(b-c>>>0>32){break X}Ws(i,c,b,773);f=H[H[s+20>>2]+44>>2];if(!f){break X}zb[f|0](s,i,c,b)}c=b+1|0;if(g>>>0>c>>>0){continue}break}}Ac(i,m,105284,0);g=0}Z:{if(!(I[i+144|0]&16)){break Z}c=H[i+68>>2];if(c>>>0<3){break Z}b=1;f=2;while(1){h=b;b=f;f=N(h,20);h=H[i+80>>2];f=f+h|0;_:{if(H[f>>2]!=847){break _}h=J[(h+N(b,20)|0)+16>>1];if(!(!(1<>>0<256)){l=h>>>8|0;h=J[f-4>>1];if(l>>>0<(1<>>8|0:0)>>>0){break _}}G[f+16>>1]=J[f+16>>1]&65471;c=H[i+68>>2]}f=b+1|0;if(f>>>0>>0){continue}break}}if(!I[i+60|0]|g|(r&-2)!=2){break B}H[i+72>>2]=0;H[i+64>>2]=0;F[i+61|0]=1;F[i+62|0]=0;H[i+84>>2]=H[i+80>>2];g=H[i+68>>2];$:{if(I[i+61|0]){aa:{if(H[i+84>>2]==H[i+80>>2]){b=H[i+72>>2];if((b|0)==H[i+64>>2]){break aa}}if(!ec(i,1,1)){b=H[i+64>>2];break $}c=H[i+80>>2]+N(H[i+64>>2],20)|0;f=H[c+4>>2];b=H[i+84>>2]+N(H[i+72>>2],20)|0;H[b>>2]=H[c>>2];H[b+4>>2]=f;H[b+16>>2]=H[c+16>>2];f=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=f;b=H[i+72>>2]}H[i+72>>2]=b+1}b=H[i+64>>2]+1|0;H[i+64>>2]=b}ba:{if(b>>>0>=g>>>0){break ba}f=0;while(1){ca:{da:{c=H[i+80>>2]+N(b,20)|0;h=J[c+16>>1];if(!(1<>2];l=H[i+72>>2];k=l-1|0;if((k|0)!=(f|0)){n=h>>>8|0;h=J[(b+N(l?k:0,20)|0)+16>>1];if(n>>>0<=(1<>>8|0:0)>>>0){break da}}h=N(f,20);if(!(zb[H[o+40>>2]](o+16|0,H[h+b>>2],H[c>>2],o+12|0)|0)){break da}H[o+8>>2]=0;b=H[m+80>>2];if(!(zb[H[b+164>>2]](m,H[m+84>>2],H[o+12>>2],o+8|0,H[b+20>>2])|0)){break da}ea:{if(!I[i+61|0]){b=H[i+72>>2];break ea}fa:{if(H[i+84>>2]==H[i+80>>2]){b=H[i+72>>2];if((b|0)==H[i+64>>2]){break fa}}if(!ec(i,1,1)){break ba}c=H[i+80>>2]+N(H[i+64>>2],20)|0;l=H[c+4>>2];b=H[i+84>>2]+N(H[i+72>>2],20)|0;H[b>>2]=H[c>>2];H[b+4>>2]=l;H[b+16>>2]=H[c+16>>2];l=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=l;b=H[i+72>>2]}b=b+1|0;H[i+72>>2]=b}H[i+64>>2]=H[i+64>>2]+1;eh(i,f,b);H[i+72>>2]=H[i+72>>2]-1;b=h+H[i+84>>2]|0;H[b>>2]=H[o+12>>2];H[b+12>>2]=H[o+8>>2];Mi(h+H[i+84>>2]|0,i);b=H[i+64>>2];break ca}ga:{if(!I[i+61|0]){c=H[i+72>>2];break ga}ha:{if(H[i+84>>2]==H[i+80>>2]){b=H[i+72>>2];if((b|0)==H[i+64>>2]){break ha}}if(!ec(i,1,1)){break ba}c=H[i+80>>2]+N(H[i+64>>2],20)|0;h=H[c+4>>2];b=H[i+84>>2]+N(H[i+72>>2],20)|0;H[b>>2]=H[c>>2];H[b+4>>2]=h;H[b+16>>2]=H[c+16>>2];h=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=h;b=H[i+72>>2]}c=b+1|0;H[i+72>>2]=c}b=H[i+64>>2]+1|0;H[i+64>>2]=b;h=c-1|0;c=J[(H[i+84>>2]+N(c?h:0,20)|0)+16>>1];f=1<>>0<256?h:f:h}if(b>>>0>>0){continue}break}}cf(i)}xb=o+48|0;k=H[i+144>>2];ia:{if(!(k&1)|!(I[a+212|0]&4)){break ia}ja:{if((H[i+40>>2]&-3)==4){t=H[a+188>>2];h=t|H[a+192>>2];c=a+196|0;break ja}t=H[a+188>>2];h=t|H[a+196>>2];c=a+192|0}b=H[i+68>>2];if(!b){break ia}r=H[c>>2]|t;l=H[i+80>>2];c=0;while(1){x=l+N(c,20)|0;if(H[x>>2]==8260){g=c+1|0;j=c;while(1){f=j;if(f){j=f-1|0;if((J[(l+N(j,20)|0)+16>>1]&31)==13){continue}}break}n=g;ka:{if(b>>>0<=g>>>0){break ka}while(1){if((J[(l+N(n,20)|0)+16>>1]&31)!=13){break ka}n=n+1|0;if((b|0)!=(n|0)){continue}break}n=b}j=H[i+68>>2];u=j>>>0>>0?j:n;w=u-f|0;la:{if(w>>>0<2){break la}k=k|32;H[i+144>>2]=k;if(f>>>0>=u>>>0){break la}j=-1;o=f;A=u+(f^-1)|0;if(A>>>0>=3){B=w&-4;p=0;while(1){v=l+N(o,20)|0;y=H[v+8>>2];j=j>>>0>>0?j:y;y=H[v+28>>2];j=j>>>0>>0?j:y;y=H[v+48>>2];j=j>>>0>>0?j:y;v=H[v+68>>2];j=j>>>0>>0?j:v;o=o+4|0;p=p+4|0;if((B|0)!=(p|0)){continue}break}}p=0;v=w&3;if(v){while(1){B=H[(l+N(o,20)|0)+8>>2];j=j>>>0>>0?j:B;o=o+1|0;p=p+1|0;if((v|0)!=(p|0)){continue}break}}o=f;if(w&1){o=l+N(f,20)|0;if(H[o+8>>2]!=(j|0)){H[i+144>>2]=k;H[o+4>>2]=H[o+4>>2]|3}o=f+1|0}if(!A){break la}while(1){p=l+N(o,20)|0;if(H[p+8>>2]!=(j|0)){k=k|32;H[i+144>>2]=k;H[p+4>>2]=H[p+4>>2]|3}p=l+N(o+1|0,20)|0;if(H[p+8>>2]!=(j|0)){k=k|32;H[i+144>>2]=k;H[p+4>>2]=H[p+4>>2]|3}o=o+2|0;if((u|0)!=(o|0)){continue}break}}ma:{if(c>>>0<=f>>>0){break ma}o=(f^-1)+c|0;j=0;p=c-f&3;if(p){while(1){u=l+N(f,20)|0;H[u+4>>2]=H[u+4>>2]|h;f=f+1|0;j=j+1|0;if((p|0)!=(j|0)){continue}break}}if(o>>>0<=2){break ma}while(1){j=l+N(f,20)|0;H[j+4>>2]=H[j+4>>2]|h;H[j+24>>2]=H[j+24>>2]|h;H[j+44>>2]=H[j+44>>2]|h;j=j- -64|0;H[j>>2]=H[j>>2]|h;f=f+4|0;if((f|0)!=(c|0)){continue}break}}H[x+4>>2]=H[x+4>>2]|t;na:{if(g>>>0>=n>>>0){break na}f=0;j=(c^-1)+n&3;if(j){while(1){o=l+N(g,20)|0;H[o+4>>2]=r|H[o+4>>2];g=g+1|0;f=f+1|0;if((j|0)!=(f|0)){continue}break}}if((n-c|0)-2>>>0<3){break na}while(1){c=l+N(g,20)|0;H[c+4>>2]=r|H[c+4>>2];H[c+24>>2]=r|H[c+24>>2];H[c+44>>2]=r|H[c+44>>2];c=c- -64|0;H[c>>2]=r|H[c>>2];g=g+4|0;if((n|0)!=(g|0)){continue}break}}c=n-1|0}c=c+1|0;if(b>>>0>c>>>0){continue}break}}b=H[H[a+80>>2]+36>>2];if(b){zb[b|0](s,i,m)}if(e){c=0;while(1){b=(c<<4)+d|0;h=H[b+8>>2];if(!(!h&H[b+12>>2]==-1)){o=H[b+4>>2];oa:{pa:{f=H[a+116>>2];if((f|0)<=0){break pa}g=H[b>>2];n=H[a+120>>2];f=f-1|0;k=0;while(1){qa:{l=f+k>>>1|0;j=n+N(l,36)|0;p=H[j>>2];ra:{if(p>>>0>g>>>0){f=l-1|0;break ra}if(g>>>0<=p>>>0){break qa}k=l+1|0}if((f|0)>=(k|0)){continue}break pa}break}k=H[j+24>>2];f=H[j+20>>2];break oa}k=0;f=0}g=o<>2];o=0;sa:{if(!k){break sa}l=H[i+68>>2];if(!l){break sa}j=g&k;k=k^-1;b=H[i+80>>2];g=0;if((l|0)!=1){p=l&-2;while(1){n=b+N(g,20)|0;r=H[n+8>>2];if(!(r>>>0>>0|f>>>0<=r>>>0)){H[n+4>>2]=j|k&H[n+4>>2]}n=b+N(g|1,20)|0;r=H[n+8>>2];if(!(r>>>0>>0|f>>>0<=r>>>0)){H[n+4>>2]=j|k&H[n+4>>2]}g=g+2|0;o=o+2|0;if((p|0)!=(o|0)){continue}break}}if(!(l&1)){break sa}l=h;h=H[(b+N(g,20)|0)+8>>2];if(l>>>0>h>>>0|f>>>0<=h>>>0){break sa}b=b+N(g,20)|0;H[b+4>>2]=j|k&H[b+4>>2]}}c=c+1|0;if((e|0)!=(c|0)){continue}break}}if(I[a+212|0]&128){g=H[i+68>>2];if(g){h=H[i+80>>2];k=0;while(1){f=h+N(k,20)|0;c=J[f+16>>1];if((c&31)==12){b=c>>>8|0;ta:{if(c>>>0>51199){d=b;break ta}ua:{va:{d=H[f>>2];if((d&-256)==3584){if(c>>>0<=255){e=0;wa:{switch(d-3633|0){case 128:case 131:case 132:case 133:case 134:case 138:case 155:case 156:e=230;break ua;case 0:case 3:case 4:case 5:case 6:case 22:case 27:case 28:case 29:break va;case 139:break wa;default:break ua}}e=220;break ua}e=222;if((d|0)==3642){break ua}}d=220;xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{e=b;switch(b-3|0){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 27:case 30:case 115:case 126:case 128:break ta;case 119:case 129:break xa;case 104:break ya;case 0:break za;case 23:case 24:case 25:case 26:case 28:case 29:case 31:case 32:case 33:break Aa;case 8:case 11:break Ba;case 7:break Ca;case 10:break Da;default:break ua}}d=214;break ta}d=232;break ta}d=228;break ta}d=230;break ta}d=222;break ta}d=232;break ta}d=230;break ta}e=232}d=e}G[f+16>>1]=c&255|d<<8}k=k+1|0;if((g|0)!=(k|0)){continue}break}}}c=H[i+68>>2];Ea:{if(!c){break Ea}b=H[i+80>>2];g=0;f=0;if(c-1>>>0>=3){d=c&-4;h=0;while(1){e=b+N(f,20)|0;H[e>>2]=H[e+12>>2];e=b+N(f|1,20)|0;H[e>>2]=H[e+12>>2];e=b+N(f|2,20)|0;H[e>>2]=H[e+12>>2];e=b+N(f|3,20)|0;H[e>>2]=H[e+12>>2];f=f+4|0;h=h+4|0;if((d|0)!=(h|0)){continue}break}}c=c&3;if(!c){break Ea}while(1){d=b+N(f,20)|0;H[d>>2]=H[d+12>>2];f=f+1|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}}H[i+36>>2]=2;Fa:{b=H[m+16>>2];d=H[b+140>>2];Ga:{if(d){break Ga}while(1){c=H[b+48>>2];if(!c){d=163632;break Ga}d=Yr(c);if(!d){d=163632}c=H[b+140>>2];H[b+140>>2]=c?c:d;if(!c){break Ga}if(!(!d|(d|0)==163632)){c=H[d>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break Fa}Kb(d)}d=H[b+140>>2];if(!d){continue}break}}c=H[i+68>>2];if(c){b=H[d>>2];b=b?b:163632;e=K[b+16>>2]<12?163632:H[b+12>>2];d=0;while(1){b=N(d,20);f=b+H[i+80>>2]|0;E=f,M=Ye(e,H[f>>2]),G[E+12>>1]=M;F[(b+H[i+80>>2]|0)+14|0]=0;F[(b+H[i+80>>2]|0)+15|0]=0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}f=J[a+212>>1];Ha:{if(!(f&64)){break Ha}c=H[i+68>>2];if(!c){break Ha}d=H[i+80>>2];f=0;while(1){b=d+N(f,20)|0;e=J[b+16>>1];Ia:{if((e&31)==12){g=8;if(!(e&32)|I[b+12|0]&16){break Ia}}g=2}G[b+12>>1]=g;f=f+1|0;if((c|0)!=(f|0)){continue}break}f=J[a+212>>1]}Ja:{if(f&8192){e=xb-80|0;xb=e;c=xb-48|0;xb=c;d=H[m+16>>2]+156|0;b=H[d>>2];Ka:{if(b){break Ka}g=d-108|0;while(1){b=H[g>>2];if(!b){b=163632;break Ka}H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;f=kd(b);F[c+40|0]=1;H[c+36>>2]=f;b=Jt(c,dd(b,1836020344));if(!b){b=163632}f=H[d>>2];H[d>>2]=f?f:b;if(!f){break Ka}if(!(!b|(b|0)==163632)){Wb(b)}b=H[d>>2];if(!b){continue}break}}xb=c+48|0;La:{Ma:{Na:{Oa:{c=K[b+16>>2]<8?163632:H[b+12>>2];Pa:{if(I[c|0]|I[c+1|0]<<8){d=_j(e,s,m,i,b);H[197455]=0;b=la(580,i|0,m|0,104992,0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Na}if(b){Qa:{if(!I[H[d+16>>2]+60|0]){break Qa}H[d+72>>2]=0;b=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(!f){break Qa}c=c+8|0;b=0;while(1){g=H[d+4>>2];g=H[(K[g+116>>2]>b>>>0?H[g+120>>2]+(b<<2)|0:163632)>>2];H[197455]=0;ga(581,c|0,d|0,g|0);g=H[197455];H[197455]=0;if((g|0)==1){break Na}if(!I[H[d+16>>2]+60|0]){break Qa}g=c;c=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);c=g+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}H[197455]=0;la(580,i|0,m|0,105241,0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Na}}b=H[d+52>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){break Pa}break La}c=xb-48|0;xb=c;d=H[m+16>>2]+160|0;b=H[d>>2];Ra:{if(b){break Ra}g=d-112|0;while(1){b=H[g>>2];if(!b){b=163632;break Ra}H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;f=kd(b);F[c+40|0]=1;H[c+36>>2]=f;b=It(c,dd(b,1836020340));if(!b){b=163632}f=H[d>>2];H[d>>2]=f?f:b;if(!f){break Ra}if(!(!b|(b|0)==163632)){Wb(b)}b=H[d>>2];if(!b){continue}break}}xb=c+48|0;c=K[b+16>>2]<8?163632:H[b+12>>2];if(!(I[c|0]|I[c+1|0]<<8)){break Pa}d=_j(e,s,m,i,b);H[197455]=0;b=la(580,i|0,m|0,105451,0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Oa}if(b){Sa:{if(!I[H[d+16>>2]+60|0]){break Sa}H[d+72>>2]=0;b=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(!f){break Sa}c=c+8|0;b=0;while(1){g=H[d+4>>2];g=H[(K[g+116>>2]>b>>>0?H[g+120>>2]+(b<<2)|0:163632)>>2];H[197455]=0;ga(582,c|0,d|0,g|0);g=H[197455];H[197455]=0;if((g|0)==1){break Oa}if(!I[H[d+16>>2]+60|0]){break Sa}g=c;c=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);c=g+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}H[197455]=0;la(580,i|0,m|0,105577,0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Oa}}b=H[d+52>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break La}}xb=e+80|0;break Ja}b=$()|0;_()|0;a=H[d+52>>2];H[197455]=0;ia(579,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Ma}break La}b=$()|0;_()|0;a=H[d+52>>2];H[197455]=0;ia(579,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break La}}ea(b|0);X()}break Fa}f=0;o=0;j=xb-16|0;xb=j;c=H[m+16>>2];b=H[c+144>>2];Ta:{if(b){break Ta}while(1){d=H[c+48>>2];if(!d){b=163632;break Ta}b=oc(1,12);Ua:{if(!b){b=163632;break Ua}Yh(b,d)}d=H[c+144>>2];H[c+144>>2]=d?d:b;if(!d){break Ta}af(b);b=H[c+144>>2];if(!b){continue}break}}b=H[b>>2];b=b?b:163632;H[j+8>>2]=K[b+16>>2]<10?163632:H[b+12>>2];b=H[c+144>>2];Va:{if(b){break Va}while(1){d=H[c+48>>2];if(!d){b=163632;break Va}b=oc(1,12);Wa:{if(!b){b=163632;break Wa}Yh(b,d)}d=H[c+144>>2];H[c+144>>2]=d?d:b;if(!d){break Va}af(b);b=H[c+144>>2];if(!b){continue}break}}H[j+12>>2]=H[b+8>>2];if(Ac(i,m,105496,0)){h=xb-176|0;xb=h;b=rf(h+24|0,0,m,i);H[b+104>>2]=714;c=H[a+152>>2];if(c){e=J[81816];while(1){r=c>>>0>o>>>0?H[a+156>>2]+(o<<3)|0:163632;if(K[r>>2]>f>>>0){while(1){c=f<<3;n=J[(K[a+128>>2]>f>>>0?c+H[a+132>>2]|0:163632)>>1];H[h+16>>2]=n;if(Ac(i,m,124932,h+16|0)){H[b+128>>2]=n;d=163632;g=K[a+128>>2]>f>>>0?c+H[a+132>>2]|0:163632;l=H[g+4>>2];H[b+36>>2]=0;H[b+120>>2]=l;H[b+28>>2]=0;H[b+32>>2]=0;c=H[b+132>>2];H[b+12>>2]=c;k=H[b+124>>2]==1;F[b+16|0]=k;H[b+80>>2]=0;H[b+20>>2]=l;F[b+17|0]=I[b+142|0];H[b+72>>2]=0;H[b+76>>2]=0;H[b+56>>2]=c;H[b+64>>2]=-1;F[b+61|0]=1;H[b+8>>2]=b;H[b+52>>2]=b;p=k|I[b+141|0]!=0;F[b+60|0]=p;t=I[g+2|0];H[b+12>>2]=c;H[b+20>>2]=l;H[b+56>>2]=c;H[b+72>>2]=0;H[b+76>>2]=0;H[b+80>>2]=0;H[b+28>>2]=0;H[b+32>>2]=0;F[b+16|0]=k;H[b+36>>2]=0;H[b+64>>2]=-1;F[b+61|0]=1;F[b+60|0]=p;p=t>>>1&1;F[b+142|0]=p;F[b+17|0]=p;H[b+8>>2]=b;H[b+52>>2]=b;t=I[g+2|0];H[b+36>>2]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+20>>2]=l;F[b+17|0]=p;F[b+16|0]=k;H[b+12>>2]=c;H[b+72>>2]=0;H[b+76>>2]=0;H[b+64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=c;u=t&1;F[b+141|0]=u;F[b+60|0]=(k|t)&1;H[b+8>>2]=b;H[b+52>>2]=b;F[b+143|0]=I[g+2|0]>>>2&1;c=163632;g=H[j+8>>2];t=I[g+8|0]|I[g+9|0]<<8;if(t){c=g+((t<<8|t>>>8)&65535)|0}g=I[c|0]|I[c+1|0]<<8;Xa:{if(n>>>0>=((g<<8|g>>>8)&65535)>>>0){break Xa}g=(n<<1)+c|0;g=I[g+2|0]|I[g+3|0]<<8;if(!g){break Xa}d=((g<<8|g>>>8)&65535)+c|0}g=H[b+100>>2];w=H[g+68>>2];Ya:{if(!w|!l){break Ya}t=H[j+12>>2];c=I[d+2|0]|I[d+3|0]<<8;v=c<<8|c>>>8;c=v&65535;if(v&16){z=c;c=I[d+4|0]|I[d+5|0]<<8;c=(((c<<8|c>>>8)&65535)<<1)+d|0;c=I[c+6|0]|I[c+7|0]<<8;c=z|(c<<8|c>>>8)<<16}t=t+N(n,24)|0;H[b+36>>2]=0;H[b+132>>2]=c;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+20>>2]=l;F[b+17|0]=p;F[b+16|0]=k;H[b+12>>2]=c;H[b+72>>2]=0;H[b+76>>2]=0;H[b+64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=c;F[b+60|0]=k|u;H[b+8>>2]=b;H[b+52>>2]=b;Za:{c=I[d|0]|I[d+1|0]<<8;_a:{if((c|0)!=1792){if((c|0)!=2048){break _a}break Za}c=I[d+4|0]|I[d+5|0]<<8?I[d+6|0]|I[d+7|0]<<8:e;$a:{if(!(c&65535)){d=163632;c=e;break $a}d=((c<<8|(c&65280)>>>8)&65535)+d|0;c=I[d|0]|I[d+1|0]<<8}if((c&65535)!=256){break _a}if((I[d+2|0]|I[d+3|0]<<8)==2048){break Za}}H[g+72>>2]=0;H[g+64>>2]=0;F[g+61|0]=1;F[g+62|0]=0;H[g+84>>2]=H[g+80>>2];H[g+64>>2]=0;Xr(b,t);cf(g);break Ya}H[g+64>>2]=w-1;DF(b,t)}H[h>>2]=n;Ac(i,m,124959,h)}f=f+1|0;if(f>>>0>2]){continue}break}}c=H[r+4>>2];if(c){zb[c|0](s,m,i)}c=H[a+152>>2];o=o+1|0;if(c>>>0>o>>>0){continue}break}}xb=h+176|0;Ac(i,m,105742,0)}xb=j+16|0}at(i);c=H[i+88>>2];d=H[i+80>>2];b=H[i+68>>2];ab:{if((H[i+40>>2]&-2)==4){e=H[m+80>>2];zb[H[e+184>>2]](m,H[m+84>>2],b,d,20,c,20,H[e+40>>2]);if(!Wj(m,9)|!b){break ab}k=0;while(1){e=N(k,20);ci(m,H[e+d>>2],q+8|0,q+28|0);e=c+e|0;H[e+8>>2]=H[e+8>>2]-H[q+8>>2];H[e+12>>2]=H[e+12>>2]-H[q+28>>2];k=k+1|0;if((b|0)!=(k|0)){continue}break}break ab}e=H[m+80>>2];zb[H[e+188>>2]](m,H[m+84>>2],b,d,20,c+4|0,20,H[e+44>>2]);if(!b){break ab}k=0;while(1){e=N(k,20);_n(m,H[e+d>>2],q+8|0,q+28|0);e=c+e|0;H[e+8>>2]=H[e+8>>2]-H[q+8>>2];H[e+12>>2]=H[e+12>>2]-H[q+28>>2];k=k+1|0;if((b|0)!=(k|0)){continue}break}}if(I[i+144|0]&4){h=0;b=xb-16|0;xb=b;l=H[i+68>>2];if(l){c=H[i+88>>2];k=H[i+80>>2];e=(H[i+40>>2]&-2)!=4;while(1){d=N(h,20);f=d+k|0;bb:{if((J[f+16>>1]&31)!=29|I[f+12|0]&32){break bb}g=H[i+28>>2];cb:{if(!g|(g|0)!=H[f>>2]){break cb}if(!e){H[c+d>>2]=H[m+20>>2]/4;break cb}H[(c+d|0)+4>>2]=H[m+24>>2]/-4}db:{eb:{fb:{gb:{hb:{f=J[f+16>>1];f=(f&31)==29?f>>>8|0:0;switch(f-1|0){case 20:break db;case 19:break eb;case 18:break fb;case 16:break gb;case 0:case 1:case 2:case 3:case 4:case 5:case 15:break hb;default:break bb}}if(!e){H[c+d>>2]=(H[m+20>>2]+(f>>>1|0)|0)/(f|0);break bb}H[(c+d|0)+4>>2]=0-((H[m+24>>2]+(f>>>1|0)|0)/(f|0)|0);break bb}if(!e){g=c+d|0;d=H[m+20>>2];f=d>>31;E=g,M=hma(d<<2,f<<2|d>>>30,18,0),H[E>>2]=M;break bb}g=c+d|0;d=0-H[m+24>>2]|0;f=d>>31;E=g,M=hma(d<<2,f<<2|d>>>30,18,0),H[E+4>>2]=M;break bb}H[b+12>>2]=0;f=H[m+80>>2];ib:{if(zb[H[f+164>>2]](m,H[m+84>>2],48,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(zb[H[f+164>>2]](m,H[m+84>>2],49,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(zb[H[f+164>>2]](m,H[m+84>>2],50,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(zb[H[f+164>>2]](m,H[m+84>>2],51,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(zb[H[f+164>>2]](m,H[m+84>>2],52,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(zb[H[f+164>>2]](m,H[m+84>>2],53,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(zb[H[f+164>>2]](m,H[m+84>>2],54,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(zb[H[f+164>>2]](m,H[m+84>>2],55,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(zb[H[f+164>>2]](m,H[m+84>>2],56,b+12|0,H[f+20>>2])|0){break ib}H[b+12>>2]=0;f=H[m+80>>2];if(!(zb[H[f+164>>2]](m,H[m+84>>2],57,b+12|0,H[f+20>>2])|0)){break bb}}f=H[m+80>>2];g=H[b+12>>2];if(!e){E=c+d|0,M=zb[H[f+176>>2]](m,H[m+84>>2],g,H[f+32>>2])|0,H[E>>2]=M;break bb}E=c+d|0,M=zb[H[f+180>>2]](m,H[m+84>>2],g,H[f+36>>2])|0,H[E+4>>2]=M;break bb}H[b+12>>2]=0;f=H[m+80>>2];if(!(zb[H[f+164>>2]](m,H[m+84>>2],46,b+12|0,H[f+20>>2])|0)){H[b+12>>2]=0;f=H[m+80>>2];if(!(zb[H[f+164>>2]](m,H[m+84>>2],44,b+12|0,H[f+20>>2])|0)){break bb}}f=H[m+80>>2];g=H[b+12>>2];if(!e){E=c+d|0,M=zb[H[f+176>>2]](m,H[m+84>>2],g,H[f+32>>2])|0,H[E>>2]=M;break bb}E=c+d|0,M=zb[H[f+180>>2]](m,H[m+84>>2],g,H[f+36>>2])|0,H[E+4>>2]=M;break bb}if(!e){d=c+d|0;H[d>>2]=H[d>>2]/2;break bb}d=c+d|0;H[d+4>>2]=H[d+4>>2]/2}h=h+1|0;if((l|0)!=(h|0)){continue}break}}xb=b+16|0}p=0;p=F[a+213|0]&1?(H[i+40>>2]&-3)==4:p;t=H[i+88>>2];u=H[i+80>>2];o=H[i+68>>2];if(!(!Wj(m,9)|!o)){k=0;while(1){b=N(k,20);ci(m,H[b+u>>2],q+8|0,q+28|0);b=b+t|0;H[b+8>>2]=H[b+8>>2]+H[q+8>>2];H[b+12>>2]=H[b+12>>2]+H[q+28>>2];k=k+1|0;if((o|0)!=(k|0)){continue}break}}d=0;f=0;k=0;b=H[i+68>>2];jb:{if(!b){break jb}if(b-1>>>0>=3){c=b&-4;while(1){e=N(d,20);F[(e+H[i+88>>2]|0)+18|0]=0;G[(e+H[i+88>>2]|0)+16>>1]=0;e=N(d|1,20);F[(e+H[i+88>>2]|0)+18|0]=0;G[(e+H[i+88>>2]|0)+16>>1]=0;e=N(d|2,20);F[(e+H[i+88>>2]|0)+18|0]=0;G[(e+H[i+88>>2]|0)+16>>1]=0;e=N(d|3,20);F[(e+H[i+88>>2]|0)+18|0]=0;G[(e+H[i+88>>2]|0)+16>>1]=0;d=d+4|0;f=f+4|0;if((c|0)!=(f|0)){continue}break}}b=b&3;if(!b){break jb}while(1){c=N(d,20);F[(c+H[i+88>>2]|0)+18|0]=0;G[(c+H[i+88>>2]|0)+16>>1]=0;d=d+1|0;k=k+1|0;if((b|0)!=(k|0)){continue}break}}kb:{if(!(I[a+212|0]&32)|H[H[a+80>>2]+48>>2]!=1){break kb}c=H[i+68>>2];if(!c){break kb}d=H[i+80>>2];if(p){k=0;while(1){b=N(k,20);if(I[(b+d|0)+12|0]&8){b=b+H[i+88>>2]|0;e=H[b+4>>2];H[b+4>>2]=0;f=H[b>>2];H[b>>2]=0;H[b+8>>2]=H[b+8>>2]-f;H[b+12>>2]=H[b+12>>2]-e}k=k+1|0;if((c|0)!=(k|0)){continue}break}break kb}f=0;if((c|0)!=1){b=c&-2;k=0;while(1){e=N(f,20);if(I[(e+d|0)+12|0]&8){e=e+H[i+88>>2]|0;H[e>>2]=0;H[e+4>>2]=0}e=N(f|1,20);if(I[(e+d|0)+12|0]&8){e=e+H[i+88>>2]|0;H[e>>2]=0;H[e+4>>2]=0}f=f+2|0;k=k+2|0;if((b|0)!=(k|0)){continue}break}}if(!(c&1)){break kb}b=N(f,20);if(!(I[(b+d|0)+12|0]&8)){break kb}b=b+H[i+88>>2]|0;H[b>>2]=0;H[b+4>>2]=0}k=0;b=J[s+152>>1];lb:{if(b&512){l=xb-16|0;xb=l;b=H[m+16>>2];h=H[b+148>>2];mb:{if(h){break mb}while(1){c=H[b+48>>2];if(!c){h=163632;break mb}h=oc(1,12);nb:{if(!h){h=163632;break nb}hl(h,c)}c=H[b+148>>2];H[b+148>>2]=c?c:h;if(!c){break mb}af(h);h=H[b+148>>2];if(!h){continue}break}}c=H[h>>2];c=c?c:163632;H[l+8>>2]=K[c+16>>2]<10?163632:H[c+12>>2];h=H[b+148>>2];ob:{if(h){break ob}while(1){c=H[b+48>>2];if(!c){h=163632;break ob}h=oc(1,12);pb:{if(!h){h=163632;break pb}hl(h,c)}c=H[b+148>>2];H[b+148>>2]=c?c:h;if(!c){break ob}af(h);h=H[b+148>>2];if(!h){continue}break}}H[l+12>>2]=H[h+8>>2];if(Ac(i,m,105907,0)){d=0;e=xb-176|0;xb=e;b=rf(e+24|0,1,m,i);H[b+104>>2]=715;c=H[s+104>>2];if(c){while(1){w=c>>>0>k>>>0?H[s+108>>2]+(k<<3)|0:163632;if(K[w>>2]>d>>>0){while(1){c=d<<3;j=J[(K[s+80>>2]>d>>>0?c+H[s+84>>2]|0:163632)>>1];H[e+16>>2]=j;if(Ac(i,m,124932,e+16|0)){H[b+128>>2]=j;h=163632;n=K[s+80>>2]>d>>>0?c+H[s+84>>2]|0:163632;f=H[n+4>>2];H[b+36>>2]=0;H[b+120>>2]=f;H[b+28>>2]=0;H[b+32>>2]=0;c=H[b+132>>2];H[b+12>>2]=c;g=H[b+124>>2]==1;F[b+16|0]=g;H[b+80>>2]=0;H[b+20>>2]=f;F[b+17|0]=I[b+142|0];H[b+72>>2]=0;H[b+76>>2]=0;H[b+56>>2]=c;H[b+64>>2]=-1;F[b+61|0]=1;H[b+8>>2]=b;H[b+52>>2]=b;r=g|I[b+141|0]!=0;F[b+60|0]=r;v=I[n+2|0];H[b+12>>2]=c;H[b+20>>2]=f;H[b+56>>2]=c;H[b+72>>2]=0;H[b+76>>2]=0;H[b+80>>2]=0;H[b+28>>2]=0;H[b+32>>2]=0;F[b+16|0]=g;H[b+36>>2]=0;H[b+64>>2]=-1;F[b+61|0]=1;F[b+60|0]=r;r=v>>>1&1;F[b+142|0]=r;F[b+17|0]=r;H[b+8>>2]=b;H[b+52>>2]=b;v=I[n+2|0];H[b+36>>2]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+20>>2]=f;F[b+17|0]=r;F[b+16|0]=g;H[b+12>>2]=c;H[b+72>>2]=0;H[b+76>>2]=0;H[b+64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=c;x=v&1;F[b+141|0]=x;F[b+60|0]=(g|v)&1;H[b+8>>2]=b;H[b+52>>2]=b;F[b+143|0]=I[n+2|0]>>>2&1;c=163632;n=H[l+8>>2];v=I[n+8|0]|I[n+9|0]<<8;if(v){c=n+((v<<8|v>>>8)&65535)|0}n=I[c|0]|I[c+1|0]<<8;qb:{if(j>>>0>=((n<<8|n>>>8)&65535)>>>0){break qb}n=(j<<1)+c|0;n=I[n+2|0]|I[n+3|0]<<8;if(!n){break qb}h=((n<<8|n>>>8)&65535)+c|0}n=H[b+100>>2];if(!(!H[n+68>>2]|!f)){v=H[l+12>>2]+N(j,24)|0;c=I[h+2|0]|I[h+3|0]<<8;A=c<<8|c>>>8;c=A&65535;if(A&16){z=c;c=I[h+4|0]|I[h+5|0]<<8;c=(((c<<8|c>>>8)&65535)<<1)+h|0;c=I[c+6|0]|I[c+7|0]<<8;c=z|(c<<8|c>>>8)<<16}H[b+36>>2]=0;H[b+132>>2]=c;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+20>>2]=f;F[b+17|0]=r;F[b+16|0]=g;H[b+12>>2]=c;H[b+72>>2]=0;H[b+76>>2]=0;H[b+64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=c;F[b+60|0]=g|x;H[b+8>>2]=b;H[b+52>>2]=b;H[n+64>>2]=0;Xr(b,v)}H[e>>2]=j;Ac(i,m,124959,e)}d=d+1|0;if(d>>>0>2]){continue}break}}c=H[w+4>>2];if(c){zb[c|0](s,m,i)}k=k+1|0;c=H[s+104>>2];if(k>>>0>>0){continue}break}}xb=e+176|0;Ac(i,m,106050,0)}xb=l+16|0;break lb}if(!(b&4096)){break lb}d=xb-80|0;xb=d;b=xb-48|0;xb=b;c=H[m+16>>2]+164|0;h=H[c>>2];rb:{if(h){break rb}f=c-116|0;while(1){e=H[f>>2];if(!e){h=163632;break rb}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;g=kd(e);F[b+40|0]=1;H[b+36>>2]=g;h=Ht(b,dd(e,1801810552));if(!h){h=163632}e=H[c>>2];H[c>>2]=e?e:h;if(!e){break rb}if(!(!h|(h|0)==163632)){Wb(h)}h=H[c>>2];if(!h){continue}break}}xb=b+48|0;c=H[h+16>>2];e=H[h+12>>2];b=_j(d,s,m,i,h);H[197455]=0;f=la(580,i|0,m|0,105807,0)|0;g=H[197455];H[197455]=0;sb:{tb:{if((g|0)==1){break tb}if(f){f=H[m+16>>2];H[197455]=0;f=aa(587,f+168|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break tb}H[b+64>>2]=f;H[197455]=0;da(588,(c>>>0<8?163632:e)|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break tb}H[197455]=0;la(580,i|0,m|0,105981,0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break tb}}b=H[b+52>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){xb=d+80|0;break sb}break Fa}a=$()|0;_()|0;b=H[b+52>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){ea(a|0);X()}break Fa}}b=J[s+152>>1];ub:{if(b&1024){d=xb-80|0;xb=d;b=xb-48|0;xb=b;c=H[m+16>>2]+136|0;h=H[c>>2];vb:{if(h){break vb}f=c-88|0;while(1){e=H[f>>2];if(!e){h=163632;break vb}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;g=kd(e);F[b+40|0]=1;H[b+36>>2]=g;h=PF(b,dd(e,1801810542));if(!h){h=163632}e=H[c>>2];H[c>>2]=e?e:h;if(!e){break vb}if(!(!h|(h|0)==163632)){Wb(h)}h=H[c>>2];if(!h){continue}break}}xb=b+48|0;c=H[h+12>>2];e=H[h+16>>2];b=_j(d,s,m,i,h);H[197455]=0;f=la(580,i|0,m|0,105085,0)|0;g=H[197455];H[197455]=0;wb:{if((g|0)==1){break wb}if(f){xb:{yb:{zb:{c=e>>>0<4?163632:c;e=I[c|0]|I[c+1|0]<<8;switch((e<<8|e>>>8)&65535){case 1:break yb;case 0:break zb;default:break xb}}H[197455]=0;da(710,c|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break xb}break wb}H[197455]=0;da(711,c|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break wb}}H[197455]=0;la(580,i|0,m|0,105296,0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break wb}}Mt(b);xb=d+80|0;break ub}a=$()|0;_()|0;Mt(b);ea(a|0);X()}if(!(b&2048)){break ub}h=0;f=xb-48|0;xb=f;Ab:{Bb:{if((H[i+40>>2]&-2)==4){if(Wj(m,11)){break Bb}break Ab}if(!Wj(m,12)){break Ab}}if(!Ac(i,m,105468,0)){break Ab}A=(H[i+40>>2]&-3)!=5;Cb:{if(A){break Cb}e=H[i+68>>2];if(e>>>0>=2){g=H[i+80>>2];c=e-1|0;while(1){b=g+N(c,20)|0;H[f+40>>2]=H[b+16>>2];d=H[b+12>>2];H[f+32>>2]=H[b+8>>2];H[f+36>>2]=d;d=H[b+4>>2];H[f+24>>2]=H[b>>2];H[f+28>>2]=d;d=g+N(h,20)|0;H[b+16>>2]=H[d+16>>2];l=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=l;l=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=l;H[d+16>>2]=H[f+40>>2];b=H[f+36>>2];H[d+8>>2]=H[f+32>>2];H[d+12>>2]=b;b=H[f+28>>2];H[d>>2]=H[f+24>>2];H[d+4>>2]=b;h=h+1|0;c=c-1|0;if(h>>>0>>0){continue}break}}if(!I[i+62|0]){break Cb}b=H[i+68>>2];b=b>>>0>>0?b:e;if(b>>>0<2){break Cb}e=H[i+88>>2];c=b-1|0;h=0;while(1){b=e+N(c,20)|0;H[f+40>>2]=H[b+16>>2];d=H[b+12>>2];H[f+32>>2]=H[b+8>>2];H[f+36>>2]=d;d=H[b+4>>2];H[f+24>>2]=H[b>>2];H[f+28>>2]=d;d=e+N(h,20)|0;H[b+16>>2]=H[d+16>>2];g=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=g;g=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=g;H[d+16>>2]=H[f+40>>2];b=H[f+36>>2];H[d+8>>2]=H[f+32>>2];H[d+12>>2]=b;b=H[f+28>>2];H[d>>2]=H[f+24>>2];H[d+4>>2]=b;h=h+1|0;c=c-1|0;if(h>>>0>>0){continue}break}}H[f+16>>2]=m;H[f+20>>2]=H[i+40>>2];F[f+12|0]=0;H[f+8>>2]=f+16;k=H[s+144>>2];c=0;j=xb-160|0;xb=j;if(Ac(i,m,105847,0)){if(I[i+16|0]&64){Rc(i,2,0,-1,1,0)}b=rf(j+8|0,1,m,i);H[b+120>>2]=k;H[b+132>>2]=8;H[b+36>>2]=0;H[b+8>>2]=b;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+52>>2]=b;H[b+20>>2]=k;F[b+17|0]=I[b+142|0];H[b+12>>2]=8;H[b+72>>2]=0;H[b+76>>2]=0;H[b- -64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=8;d=H[b+124>>2]==1;F[b+16|0]=d;F[b+60|0]=d|I[b+141|0]!=0;e=H[i+68>>2];if(e){n=b+4|0;g=H[i+88>>2];w=H[i+80>>2];B=(H[i+40>>2]&-2)!=4;while(1){Db:{Eb:{r=N(c,20);h=r+w|0;if(!(k&H[h+4>>2])){break Eb}H[b+40>>2]=1;H[b+4>>2]=c;d=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[d+68>>2];F[b+24|0]=H[d+64>>2]==(c|0)?I[(r+H[d+80>>2]|0)+15|0]:0;if(!Ne(n,j+4|0)){break Eb}v=H[h>>2];y=H[n>>2];h=N(y,20);x=H[h+w>>2];z=H[f+8>>2];d=H[z>>2];l=H[d+80>>2];Fb:{if((H[z+4>>2]&-2)==4){d=zb[H[l+200>>2]](d,H[d+84>>2],v,x,H[l+56>>2])|0;break Fb}d=zb[H[l+204>>2]](d,H[d+84>>2],v,x,H[l+60>>2])|0}if(d){Gb:{if(!B){if(I[f+12|0]){H[(g+h|0)+12>>2]=d;H[i+144>>2]=H[i+144>>2]|8;break Gb}l=g+r|0;z=l;x=H[l>>2];l=d>>1;H[z>>2]=x+l;h=g+h|0;d=d-l|0;H[h>>2]=d+H[h>>2];H[h+8>>2]=d+H[h+8>>2];break Gb}if(I[f+12|0]){H[(g+h|0)+8>>2]=d;H[i+144>>2]=H[i+144>>2]|8;break Gb}l=g+r|0;z=l;x=H[l+4>>2];l=d>>1;H[z+4>>2]=x+l;h=g+h|0;d=d-l|0;H[h+4>>2]=d+H[h+4>>2];H[h+12>>2]=d+H[h+12>>2]}ag(i,c,y+1|0)}c=H[n>>2];break Db}c=c+1|0}if(e>>>0>c>>>0){continue}break}}Ac(i,m,105999,0)}xb=j+160|0;Hb:{if(A){break Hb}e=H[i+68>>2];if(e>>>0>=2){g=H[i+80>>2];c=e-1|0;h=0;while(1){b=g+N(c,20)|0;H[f+40>>2]=H[b+16>>2];d=H[b+12>>2];H[f+32>>2]=H[b+8>>2];H[f+36>>2]=d;d=H[b+4>>2];H[f+24>>2]=H[b>>2];H[f+28>>2]=d;d=g+N(h,20)|0;H[b+16>>2]=H[d+16>>2];l=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=l;l=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=l;H[d+16>>2]=H[f+40>>2];b=H[f+36>>2];H[d+8>>2]=H[f+32>>2];H[d+12>>2]=b;b=H[f+28>>2];H[d>>2]=H[f+24>>2];H[d+4>>2]=b;h=h+1|0;c=c-1|0;if(h>>>0>>0){continue}break}}if(!I[i+62|0]){break Hb}b=H[i+68>>2];b=b>>>0>>0?b:e;if(b>>>0<2){break Hb}e=H[i+88>>2];c=b-1|0;h=0;while(1){b=e+N(c,20)|0;H[f+40>>2]=H[b+16>>2];d=H[b+12>>2];H[f+32>>2]=H[b+8>>2];H[f+36>>2]=d;d=H[b+4>>2];H[f+24>>2]=H[b>>2];H[f+28>>2]=d;d=e+N(h,20)|0;H[b+16>>2]=H[d+16>>2];g=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=g;g=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=g;H[d+16>>2]=H[f+40>>2];b=H[f+36>>2];H[d+8>>2]=H[f+32>>2];H[d+12>>2]=b;b=H[f+28>>2];H[d>>2]=H[f+24>>2];H[d+4>>2]=b;h=h+1|0;c=c-1|0;if(h>>>0>>0){continue}break}}Ac(i,m,105661,0)}xb=f+48|0}if(I[s+153|0]&64){Ib:{c=xb-80|0;xb=c;d=Gt(H[m+16>>2]+172|0);b=_j(c,s,m,i,163632);H[197455]=0;da(590,d|0,b|0)|0;d=H[197455];H[197455]=0;Jb:{if((d|0)!=1){b=H[b+52>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break Jb}xb=c+80|0;break Ib}a=$()|0;_()|0;b=H[b+52>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break Jb}ea(a|0);X()}break Fa}}Kb:{if(!(I[a+212|0]&32)|H[H[a+80>>2]+48>>2]!=2){break Kb}c=H[i+68>>2];if(!c){break Kb}d=H[i+80>>2];if(p){k=0;while(1){b=N(k,20);if(I[(b+d|0)+12|0]&8){b=b+H[i+88>>2]|0;e=H[b+4>>2];H[b+4>>2]=0;f=H[b>>2];H[b>>2]=0;H[b+8>>2]=H[b+8>>2]-f;H[b+12>>2]=H[b+12>>2]-e}k=k+1|0;if((c|0)!=(k|0)){continue}break}break Kb}f=0;if((c|0)!=1){b=c&-2;k=0;while(1){e=N(f,20);if(I[(e+d|0)+12|0]&8){e=e+H[i+88>>2]|0;H[e>>2]=0;H[e+4>>2]=0}e=N(f|1,20);if(I[(e+d|0)+12|0]&8){e=e+H[i+88>>2]|0;H[e>>2]=0;H[e+4>>2]=0}f=f+2|0;k=k+2|0;if((b|0)!=(k|0)){continue}break}}if(!(c&1)){break Kb}b=N(f,20);if(!(I[(b+d|0)+12|0]&8)){break Kb}b=b+H[i+88>>2]|0;H[b>>2]=0;H[b+4>>2]=0}Lb:{if(!(I[i+144|0]&2)|I[i+16|0]&12){break Lb}b=H[i+68>>2];if(!b){break Lb}c=H[i+88>>2];d=H[i+80>>2];f=0;if((b|0)!=1){g=b&-2;j=0;while(1){e=N(f,20);h=e+d|0;if(!(!(I[h+16|0]&32)|I[h+12|0]&16)){e=c+e|0;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0}e=N(f|1,20);h=e+d|0;if(!(!(I[h+16|0]&32)|I[h+12|0]&16)){e=c+e|0;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0}f=f+2|0;j=j+2|0;if((g|0)!=(j|0)){continue}break}}if(!(b&1)){break Lb}b=d+N(f,20)|0;if(!(I[b+16|0]&32)|I[b+12|0]&16){break Lb}b=c+N(f,20)|0;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0}if(I[a+213|0]&32){h=0;b=H[i+68>>2];Mb:{if(!b){break Mb}c=H[i+88>>2];e=H[i+80>>2];d=0;if((b|0)!=1){g=b&-2;while(1){f=N(d,20);if(H[f+e>>2]==65535){f=c+f|0;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0}f=N(d|1,20);if(H[f+e>>2]==65535){f=c+f|0;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0}d=d+2|0;h=h+2|0;if((g|0)!=(h|0)){continue}break}}if(!(b&1)){break Mb}b=N(d,20);if(H[b+e>>2]!=65535){break Mb}b=b+c|0;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0}}c=xb-16|0;xb=c;f=Ys(i,c+12|0);e=H[c+12>>2];if(!(!(I[i+144|0]&8)|!e)){b=H[i+40>>2];d=0;while(1){EF(f,e,d,b);d=d+1|0;e=H[c+12>>2];if(d>>>0>>0){continue}break}}if(!(!e|L[m+28>>2]==O(0))){d=0;while(1){b=f+N(d,20)|0;g=H[b+12>>2];if(g){D=O(O(T(O(O(L[m+32>>2]*O(g|0))+O(.5))))+O(H[b+8>>2]));Nb:{if(O(P(D))>2]=e;e=H[c+12>>2]}d=d+1|0;if(e>>>0>d>>>0){continue}break}}xb=c+16|0;if(!(!Wj(m,9)|!o)){k=0;while(1){b=N(k,20);ci(m,H[b+u>>2],q+8|0,q+28|0);b=b+t|0;H[b+8>>2]=H[b+8>>2]-H[q+8>>2];H[b+12>>2]=H[b+12>>2]-H[q+28>>2];k=k+1|0;if((o|0)!=(k|0)){continue}break}}if(I[a+212|0]&128){e=0;if(Ac(i,m,105133,0)){d=1;b=H[i+68>>2];if(b>>>0>1){c=H[i+80>>2];while(1){if(!(1<>1]&7168)){kE(s,m,i,e,d,p);e=d}d=d+1|0;if((b|0)!=(d|0)){continue}break}}kE(s,m,i,e,b,p);Ac(i,m,105316,0)}}if((H[i+40>>2]&-3)==5){$h(i)}Ob:{if(!(I[i+144|0]&2)){break Ob}c=H[i+16>>2];if(c&4){break Ob}d=H[i+80>>2];b=H[i+68>>2];e=H[i+28>>2];H[q+8>>2]=e;Pb:{if(c&8){break Pb}if(!e){H[q+8>>2]=0;c=H[m+80>>2];if(!(zb[H[c+164>>2]](m,H[m+84>>2],32,q+8|0,H[c+20>>2])|0)){break Pb}}if(!b){break Ob}f=0;while(1){c=d+N(f,20)|0;if(!(!(I[c+16|0]&32)|I[c+12|0]&16)){H[c>>2]=H[q+8>>2]}f=f+1|0;if((b|0)!=(f|0)){continue}break}break Ob}FF(i,782)}if(I[a+213|0]&32){FF(i,586)}Qb:{if(!H[H[a+80>>2]+20>>2]){break Qb}if(!Ac(i,m,105592,0)){break Qb}zb[H[H[a+80>>2]+20>>2]](s,i,m);Ac(i,m,105824,0)}Rb:{if(!(I[i+144|0]&32)){break Rb}c=H[i+68>>2];if(!c){break Rb}d=H[i+80>>2];a=c-1|0;f=0;while(1){Sb:{if((a|0)==(f|0)){f=c;break Sb}b=N(f,20);f=f+1|0;b=b+d|0;if(H[b+8>>2]==H[b+28>>2]){continue}}break}h=0;while(1){a=f;Tb:{if(f>>>0<=h>>>0){break Tb}b=a-h|0;e=b&3;j=0;f=0;k=h;l=a+(h^-1)>>>0<3;if(!l){o=b&-4;b=0;while(1){g=d+N(k,20)|0;f=H[g- -64>>2]&3|(H[g+44>>2]&3|(H[g+24>>2]&3|(H[g+4>>2]&3|f)));k=k+4|0;b=b+4|0;if((o|0)!=(b|0)){continue}break}}if(e){while(1){f=H[(d+N(k,20)|0)+4>>2]&3|f;k=k+1|0;j=j+1|0;if((e|0)!=(j|0)){continue}break}}if(!f){break Tb}k=0;if(e){while(1){b=d+N(h,20)|0;H[b+4>>2]=H[b+4>>2]|f;h=h+1|0;k=k+1|0;if((e|0)!=(k|0)){continue}break}}if(l){break Tb}while(1){b=d+N(h,20)|0;H[b+4>>2]=H[b+4>>2]|f;H[b+24>>2]=H[b+24>>2]|f;H[b+44>>2]=H[b+44>>2]|f;b=b- -64|0;H[b>>2]=H[b>>2]|f;h=h+4|0;if((a|0)!=(h|0)){continue}break}}b=a+1|0;b=b>>>0>>0?c:b;e=b-1|0;f=a;while(1){Ub:{if((e|0)==(f|0)){f=b;break Ub}g=N(f,20);f=f+1|0;g=d+g|0;if(H[g+8>>2]==H[g+28>>2]){continue}}break}h=a;if(c>>>0>h>>>0){continue}break}}H[i+40>>2]=C;H[i+148>>2]=1073741823;H[i+152>>2]=536870911;F[i+140|0]=0;xb=q+32|0;return 1}ha(0)|0;_()|0;Zb();X()}function bma(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,u=0,v=0,w=0,y=0,A=0;n=xb-16|0;xb=n;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{switch(a-1|0){default:switch(a-255|0){case 36:break j;case 35:break k;case 0:break D;case 38:break h;case 37:break i;default:break g};case 10:if(I[b+16|0]){F[b+40|0]=1}a=H[b+92>>2];F:{G:{if(a){a=a-1|0;H[b+92>>2]=a;if(a>>>0>=K[b+100>>2]){break G}a=H[b+104>>2]+N(a,28)|0;break F}F[b+88|0]=1}H[196254]=H[40914];a=H[40913];H[196252]=H[40912];H[196253]=a;a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}c=H[a+4>>2];H[b+44>>2]=H[a>>2];H[b+48>>2]=c;H[b+68>>2]=H[a+24>>2];c=H[a+20>>2];H[b+60>>2]=H[a+16>>2];H[b+64>>2]=c;c=H[a+12>>2];H[b+52>>2]=H[a+8>>2];H[b+56>>2]=c;c=H[a+8>>2];e=H[a+12>>2];f=H[a>>2];g=H[a+4>>2];F[b+16|0]=I[a+16|0];H[b+8>>2]=c;H[b+12>>2]=e;H[b>>2]=f;H[b+4>>2]=g;break a;case 30:break l;case 29:break m;case 26:break n;case 25:break o;case 24:break p;case 23:break q;case 7:break r;case 6:break s;case 5:break t;case 4:break u;case 3:break v;case 21:break w;case 20:break x;case 18:case 19:break y;case 2:case 22:break z;case 0:case 17:break A;case 28:break B;case 9:break C;case 13:break E;case 1:case 8:case 11:case 12:case 14:case 15:case 16:case 27:break g}}if(!I[b+144|0]){if(F[b+24|0]&1){H:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break H}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}H[b+148>>2]=0;F[b+72|0]=1;H[b+24>>2]=0;break a}if(I[b+16|0]){break a}f=H[b+12>>2];g=f+4|0;e=H[b+4>>2];if(g>>>0>e>>>0){break a}I:{if(e>>>0<=f>>>0){F[b+16|0]=1;a=163632;break I}a=f+H[b>>2]|0}a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);d=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=H[b+24>>2];J:{if(a>>>0>2]){H[b+24>>2]=a+1;c=H[b+36>>2]+(a<<3)|0;a=e;break J}F[b+20|0]=1;a=H[40909];H[196248]=H[40908];H[196249]=a;c=784992;a=H[b+4>>2]}M[c>>3]=+(d|0)*152587890625e-16;if(!(a>>>0>>0|e>>>0<=f>>>0|a>>>0>>0)){H[b+12>>2]=g;break a}F[b+16|0]=1;H[b+12>>2]=a;break a}Qn(b,b+116|0,2);break a}Qn(b,b+108|0,1);break a}if(I[b+144|0]|a>>>0>18){break b}if(1<>2];a=e>>>0>1;break c}K:{if(I[b+144|0]|a>>>0>23){break K}L:{M:{c=1<>2];a=e>>>0>2;break L}e=H[b+24>>2];a=e&1;break L}e=H[b+24>>2];a=e>>>0>1}if(!(!a|!e)){N:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break N}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}H[b+148>>2]=0;a=H[b+24>>2];H[b+24>>2]=0;H[b+80>>2]=H[b+80>>2]+(a>>>1|0);break a}if(!I[b+144|0]){if(F[b+24|0]&1){O:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break O}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}H[b+148>>2]=1;F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}P:{if(I[b+74|0]){a=H[b+84>>2];break P}F[b+74|0]=1;a=H[b+80>>2]+(H[b+24>>2]>>>1|0)|0;H[b+80>>2]=a;a=(a+H[b+76>>2]|0)+7>>>3|0;H[b+84>>2]=a}if(I[b+16|0]){break a}c=H[b+12>>2];e=c+a|0;a=H[b+4>>2];if(e>>>0>a>>>0){break a}H[b+148>>2]=0;H[b+24>>2]=0;if(a>>>0>=c>>>0){H[b+12>>2]=e;break a}F[b+16|0]=1;H[b+12>>2]=a;break a}f=H[b+24>>2];if(!I[b+144|0]){if(f>>>0>=3){Q:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break Q}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}H[b+148>>2]=1;F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}a=H[b+140>>2];H[n+8>>2]=H[b+136>>2];H[n+12>>2]=a;a=H[b+132>>2];H[n>>2]=H[b+128>>2];H[n+4>>2]=a;if(!f){e=784992;break e}a=f-1|0;H[b+24>>2]=a;g=H[b+32>>2];R:{if(g>>>0<=a>>>0){e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break R}e=H[b+36>>2]+(a<<3)|0}if(!a){break e}a=f-2|0;H[b+24>>2]=a;if(a>>>0>=g>>>0){a=H[40909];f=H[40908];H[196248]=f;H[196249]=a;x(0,f|0);x(1,a|0);h=+z();break d}h=M[H[b+36>>2]+(a<<3)>>3];break d}f=H[b+24>>2];if(!I[b+144|0]){if(f>>>0>=2){S:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break S}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}H[b+148>>2]=1;F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}a=H[b+140>>2];H[n+8>>2]=H[b+136>>2];H[n+12>>2]=a;a=H[b+132>>2];H[n>>2]=H[b+128>>2];H[n+4>>2]=a;T:{if(f){a=f-1|0;H[b+24>>2]=a;if(a>>>0>=K[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);h=+z();break T}h=M[H[b+36>>2]+(a<<3)>>3];break T}F[b+20|0]=1;a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);h=+z()}M[n>>3]=h+M[n>>3];ls(c,n);a=H[n+12>>2];H[b+136>>2]=H[n+8>>2];H[b+140>>2]=a;a=H[n+4>>2];H[b+128>>2]=H[n>>2];H[b+132>>2]=a;if(!I[b+73|0]){if(!I[b+74|0]){F[b+74|0]=1;a=H[b+80>>2]+(H[b+24>>2]>>>1|0)|0;H[b+80>>2]=a;H[b+84>>2]=(a+H[b+76>>2]|0)+7>>>3}F[b+73|0]=1}H[b+24>>2]=0;H[b+148>>2]=0;break a}f=H[b+24>>2];if(!I[b+144|0]){if(f>>>0>=2){U:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break U}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}H[b+148>>2]=1;F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}a=H[b+140>>2];H[n+8>>2]=H[b+136>>2];H[n+12>>2]=a;a=H[b+132>>2];H[n>>2]=H[b+128>>2];H[n+4>>2]=a;V:{if(f){a=f-1|0;H[b+24>>2]=a;if(a>>>0>=K[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);h=+z();break V}h=M[H[b+36>>2]+(a<<3)>>3];break V}F[b+20|0]=1;a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);h=+z()}M[n+8>>3]=h+M[n+8>>3];ls(c,n);a=H[n+12>>2];H[b+136>>2]=H[n+8>>2];H[b+140>>2]=a;a=H[n+4>>2];H[b+128>>2]=H[n>>2];H[b+132>>2]=a;if(!I[b+73|0]){if(!I[b+74|0]){F[b+74|0]=1;a=H[b+80>>2]+(H[b+24>>2]>>>1|0)|0;H[b+80>>2]=a;H[b+84>>2]=(a+H[b+76>>2]|0)+7>>>3}F[b+73|0]=1}H[b+24>>2]=0;H[b+148>>2]=0;break a}r=H[b+24>>2];if(r>>>0>=2){g=H[40908];d=H[40909];e=2;a=0;while(1){f=H[b+140>>2];H[n+8>>2]=H[b+136>>2];H[n+12>>2]=f;f=H[b+132>>2];H[n>>2]=H[b+128>>2];H[n+4>>2]=f;if(a>>>0>=r>>>0){F[b+20|0]=1}j=H[b+32>>2];W:{if(j>>>0<=a>>>0){H[196248]=g;H[196249]=d;f=784992;break W}f=H[b+36>>2]+(a<<3)|0}a=a|1;if(a>>>0>=r>>>0){F[b+20|0]=1}X:{if(a>>>0>=j>>>0){H[196248]=g;H[196249]=d;a=784992;break X}a=H[b+36>>2]+(a<<3)|0}M[n>>3]=M[n>>3]+M[f>>3];M[n+8>>3]=M[n+8>>3]+M[a>>3];dh(c,n);a=H[n+12>>2];H[b+136>>2]=H[n+8>>2];H[b+140>>2]=a;a=H[n+4>>2];H[b+128>>2]=H[n>>2];H[b+132>>2]=a;a=e;e=e+2|0;r=H[b+24>>2];if(e>>>0<=r>>>0){continue}break}}H[b+24>>2]=0;H[b+148>>2]=0;break a}a=0;g=xb-16|0;xb=g;f=b;p=H[b+24>>2];if(p>>>0>=2){a=H[40909];d=a;j=H[40908];x(0,j|0);x(1,d|0);h=+z();b=2;while(1){a=b;b=H[f+140>>2];H[g+8>>2]=H[f+136>>2];H[g+12>>2]=b;b=H[f+132>>2];H[g>>2]=H[f+128>>2];H[g+4>>2]=b;if(e>>>0>=p>>>0){F[f+20|0]=1}Y:{if(K[f+32>>2]<=e>>>0){H[196248]=j;H[196249]=d;i=h;break Y}i=M[H[f+36>>2]+(e<<3)>>3]}M[g>>3]=M[g>>3]+i;dh(c,g);b=H[g+12>>2];H[f+136>>2]=H[g+8>>2];H[f+140>>2]=b;b=H[g+4>>2];H[f+128>>2]=H[g>>2];H[f+132>>2]=b;b=e|1;if(b>>>0>=K[f+24>>2]){F[f+20|0]=1}Z:{if(b>>>0>=K[f+32>>2]){H[196248]=j;H[196249]=d;i=h;break Z}i=M[H[f+36>>2]+(b<<3)>>3]}M[g+8>>3]=M[g+8>>3]+i;dh(c,g);b=H[g+12>>2];H[f+136>>2]=H[g+8>>2];H[f+140>>2]=b;b=H[g+4>>2];H[f+128>>2]=H[g>>2];H[f+132>>2]=b;e=a;b=e+2|0;p=H[f+24>>2];if(b>>>0<=p>>>0){continue}break}}if(a>>>0

>>0){b=H[f+140>>2];H[g+8>>2]=H[f+136>>2];H[g+12>>2]=b;b=H[f+132>>2];H[g>>2]=H[f+128>>2];H[g+4>>2]=b;_:{if(K[f+32>>2]<=a>>>0){a=H[40909];b=H[40908];H[196248]=b;H[196249]=a;x(0,b|0);x(1,a|0);h=+z();break _}h=M[H[f+36>>2]+(a<<3)>>3]}M[g>>3]=M[g>>3]+h;dh(c,g);a=H[g+12>>2];H[f+136>>2]=H[g+8>>2];H[f+140>>2]=a;a=H[g+4>>2];H[f+128>>2]=H[g>>2];H[f+132>>2]=a}xb=g+16|0;H[f+24>>2]=0;H[f+148>>2]=0;break a}a=0;g=xb-16|0;xb=g;f=b;p=H[b+24>>2];if(p>>>0>=2){a=H[40909];d=a;j=H[40908];x(0,j|0);x(1,d|0);h=+z();b=2;while(1){a=b;b=H[f+140>>2];H[g+8>>2]=H[f+136>>2];H[g+12>>2]=b;b=H[f+132>>2];H[g>>2]=H[f+128>>2];H[g+4>>2]=b;if(e>>>0>=p>>>0){F[f+20|0]=1}$:{if(K[f+32>>2]<=e>>>0){H[196248]=j;H[196249]=d;i=h;break $}i=M[H[f+36>>2]+(e<<3)>>3]}M[g+8>>3]=M[g+8>>3]+i;dh(c,g);b=H[g+12>>2];H[f+136>>2]=H[g+8>>2];H[f+140>>2]=b;b=H[g+4>>2];H[f+128>>2]=H[g>>2];H[f+132>>2]=b;b=e|1;if(b>>>0>=K[f+24>>2]){F[f+20|0]=1}aa:{if(b>>>0>=K[f+32>>2]){H[196248]=j;H[196249]=d;i=h;break aa}i=M[H[f+36>>2]+(b<<3)>>3]}M[g>>3]=M[g>>3]+i;dh(c,g);b=H[g+12>>2];H[f+136>>2]=H[g+8>>2];H[f+140>>2]=b;b=H[g+4>>2];H[f+128>>2]=H[g>>2];H[f+132>>2]=b;e=a;b=e+2|0;p=H[f+24>>2];if(b>>>0<=p>>>0){continue}break}}if(a>>>0

>>0){b=H[f+140>>2];H[g+8>>2]=H[f+136>>2];H[g+12>>2]=b;b=H[f+132>>2];H[g>>2]=H[f+128>>2];H[g+4>>2]=b;ba:{if(K[f+32>>2]<=a>>>0){a=H[40909];b=H[40908];H[196248]=b;H[196249]=a;x(0,b|0);x(1,a|0);h=+z();break ba}h=M[H[f+36>>2]+(a<<3)>>3]}M[g+8>>3]=M[g+8>>3]+h;dh(c,g);a=H[g+12>>2];H[f+136>>2]=H[g+8>>2];H[f+140>>2]=a;a=H[g+4>>2];H[f+128>>2]=H[g>>2];H[f+132>>2]=a}xb=g+16|0;H[f+24>>2]=0;H[f+148>>2]=0;break a}g=xb-48|0;xb=g;j=H[b+24>>2];if(j>>>0>=6){d=H[40908];m=H[40909];a=6;while(1){f=H[b+140>>2];H[g+40>>2]=H[b+136>>2];H[g+44>>2]=f;f=H[b+132>>2];H[g+32>>2]=H[b+128>>2];H[g+36>>2]=f;if(e>>>0>=j>>>0){F[b+20|0]=1}l=H[b+32>>2];ca:{if(l>>>0<=e>>>0){H[196248]=d;H[196249]=m;f=784992;break ca}f=H[b+36>>2]+(e<<3)|0}k=e|1;if(k>>>0>=j>>>0){F[b+20|0]=1}da:{if(l>>>0<=k>>>0){H[196248]=d;H[196249]=m;k=784992;break da}k=H[b+36>>2]+(k<<3)|0}M[g+32>>3]=M[g+32>>3]+M[f>>3];M[g+40>>3]=M[g+40>>3]+M[k>>3];f=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=f;f=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=f;f=e+2|0;if(f>>>0>=j>>>0){F[b+20|0]=1}ea:{if(f>>>0>=l>>>0){H[196248]=d;H[196249]=m;f=784992;break ea}f=H[b+36>>2]+(f<<3)|0}k=e+3|0;if(k>>>0>=j>>>0){F[b+20|0]=1}fa:{if(l>>>0<=k>>>0){H[196248]=d;H[196249]=m;k=784992;break fa}k=H[b+36>>2]+(k<<3)|0}M[g+16>>3]=M[g+16>>3]+M[f>>3];M[g+24>>3]=M[g+24>>3]+M[k>>3];f=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=f;f=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=f;f=e+4|0;if(f>>>0>=j>>>0){F[b+20|0]=1}ga:{if(f>>>0>=l>>>0){H[196248]=d;H[196249]=m;f=784992;break ga}f=H[b+36>>2]+(f<<3)|0}e=e+5|0;if(e>>>0>=j>>>0){F[b+20|0]=1}ha:{if(e>>>0>=l>>>0){H[196248]=d;H[196249]=m;e=784992;break ha}e=H[b+36>>2]+(e<<3)|0}M[g>>3]=M[g>>3]+M[f>>3];M[g+8>>3]=M[g+8>>3]+M[e>>3];_d(c,g+32|0,g+16|0,g);e=H[g+12>>2];H[b+136>>2]=H[g+8>>2];H[b+140>>2]=e;e=H[g+4>>2];H[b+128>>2]=H[g>>2];H[b+132>>2]=e;e=a;a=e+6|0;j=H[b+24>>2];if(a>>>0<=j>>>0){continue}break}}xb=g+48|0;H[b+24>>2]=0;H[b+148>>2]=0;break a}g=xb-48|0;xb=g;k=H[b+24>>2];if(k>>>0>=8){o=k-2|0;d=H[40908];j=H[40909];a=6;while(1){f=H[b+140>>2];H[g+40>>2]=H[b+136>>2];H[g+44>>2]=f;f=H[b+132>>2];H[g+32>>2]=H[b+128>>2];H[g+36>>2]=f;if(e>>>0>=k>>>0){F[b+20|0]=1}m=H[b+32>>2];ia:{if(m>>>0<=e>>>0){H[196248]=d;H[196249]=j;f=784992;break ia}f=H[b+36>>2]+(e<<3)|0}l=e|1;if(l>>>0>=k>>>0){F[b+20|0]=1}ja:{if(m>>>0<=l>>>0){H[196248]=d;H[196249]=j;l=784992;break ja}l=H[b+36>>2]+(l<<3)|0}M[g+32>>3]=M[g+32>>3]+M[f>>3];M[g+40>>3]=M[g+40>>3]+M[l>>3];f=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=f;f=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=f;f=e+2|0;if(f>>>0>=k>>>0){F[b+20|0]=1}ka:{if(f>>>0>=m>>>0){H[196248]=d;H[196249]=j;f=784992;break ka}f=H[b+36>>2]+(f<<3)|0}l=e+3|0;if(l>>>0>=k>>>0){F[b+20|0]=1}la:{if(m>>>0<=l>>>0){H[196248]=d;H[196249]=j;l=784992;break la}l=H[b+36>>2]+(l<<3)|0}M[g+16>>3]=M[g+16>>3]+M[f>>3];M[g+24>>3]=M[g+24>>3]+M[l>>3];f=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=f;f=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=f;f=e+4|0;if(f>>>0>=k>>>0){F[b+20|0]=1}ma:{if(f>>>0>=m>>>0){H[196248]=d;H[196249]=j;f=784992;break ma}f=H[b+36>>2]+(f<<3)|0}e=e+5|0;if(e>>>0>=k>>>0){F[b+20|0]=1}na:{if(e>>>0>=m>>>0){H[196248]=d;H[196249]=j;e=784992;break na}e=H[b+36>>2]+(e<<3)|0}M[g>>3]=M[g>>3]+M[f>>3];M[g+8>>3]=M[g+8>>3]+M[e>>3];_d(c,g+32|0,g+16|0,g);e=H[g+12>>2];H[b+136>>2]=H[g+8>>2];H[b+140>>2]=e;e=H[g+4>>2];H[b+128>>2]=H[g>>2];H[b+132>>2]=e;k=H[b+24>>2];e=a;a=e+6|0;if(o>>>0>=a>>>0){continue}break}a=H[b+140>>2];H[g+40>>2]=H[b+136>>2];H[g+44>>2]=a;a=H[b+132>>2];H[g+32>>2]=H[b+128>>2];H[g+36>>2]=a;if(e>>>0>=k>>>0){F[b+20|0]=1}f=H[b+32>>2];oa:{if(f>>>0<=e>>>0){a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break oa}a=H[b+36>>2]+(e<<3)|0}e=e|1;if(e>>>0>=k>>>0){F[b+20|0]=1}pa:{if(e>>>0>=f>>>0){e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break pa}e=H[b+36>>2]+(e<<3)|0}M[g+32>>3]=M[g+32>>3]+M[a>>3];M[g+40>>3]=M[g+40>>3]+M[e>>3];dh(c,g+32|0);a=H[g+44>>2];H[b+136>>2]=H[g+40>>2];H[b+140>>2]=a;a=H[g+36>>2];H[b+128>>2]=H[g+32>>2];H[b+132>>2]=a}xb=g+48|0;H[b+24>>2]=0;H[b+148>>2]=0;break a}g=xb-48|0;xb=g;k=H[b+24>>2];if(k>>>0>=8){m=k-6|0;d=H[40908];j=H[40909];a=2;while(1){f=H[b+140>>2];H[g+40>>2]=H[b+136>>2];H[g+44>>2]=f;f=H[b+132>>2];H[g+32>>2]=H[b+128>>2];H[g+36>>2]=f;if(e>>>0>=k>>>0){F[b+20|0]=1}l=H[b+32>>2];qa:{if(l>>>0<=e>>>0){H[196248]=d;H[196249]=j;f=784992;break qa}f=H[b+36>>2]+(e<<3)|0}e=e|1;if(e>>>0>=k>>>0){F[b+20|0]=1}ra:{if(e>>>0>=l>>>0){H[196248]=d;H[196249]=j;e=784992;break ra}e=H[b+36>>2]+(e<<3)|0}M[g+32>>3]=M[g+32>>3]+M[f>>3];M[g+40>>3]=M[g+40>>3]+M[e>>3];dh(c,g+32|0);e=H[g+44>>2];H[b+136>>2]=H[g+40>>2];H[b+140>>2]=e;e=H[g+36>>2];H[b+128>>2]=H[g+32>>2];H[b+132>>2]=e;k=H[b+24>>2];e=a;a=e+2|0;if(m>>>0>=a>>>0){continue}break}f=H[b+140>>2];H[g+40>>2]=H[b+136>>2];H[g+44>>2]=f;f=H[b+132>>2];H[g+32>>2]=H[b+128>>2];H[g+36>>2]=f;if(e>>>0>=k>>>0){F[b+20|0]=1}d=H[b+32>>2];sa:{if(d>>>0<=e>>>0){f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break sa}f=H[b+36>>2]+(e<<3)|0}j=e|1;if(j>>>0>=k>>>0){F[b+20|0]=1}ta:{if(d>>>0<=j>>>0){j=H[40909];H[196248]=H[40908];H[196249]=j;j=784992;break ta}j=H[b+36>>2]+(j<<3)|0}M[g+32>>3]=M[g+32>>3]+M[f>>3];M[g+40>>3]=M[g+40>>3]+M[j>>3];f=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=f;f=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=f;if(a>>>0>=k>>>0){F[b+20|0]=1}ua:{if(a>>>0>=d>>>0){a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break ua}a=H[b+36>>2]+(a<<3)|0}f=e+3|0;if(f>>>0>=k>>>0){F[b+20|0]=1}va:{if(d>>>0<=f>>>0){f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break va}f=H[b+36>>2]+(f<<3)|0}M[g+16>>3]=M[g+16>>3]+M[a>>3];M[g+24>>3]=M[g+24>>3]+M[f>>3];a=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=a;a=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=a;a=e+4|0;if(a>>>0>=k>>>0){F[b+20|0]=1}wa:{if(a>>>0>=d>>>0){a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break wa}a=H[b+36>>2]+(a<<3)|0}e=e+5|0;if(e>>>0>=k>>>0){F[b+20|0]=1}xa:{if(d>>>0<=e>>>0){e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break xa}e=H[b+36>>2]+(e<<3)|0}M[g>>3]=M[g>>3]+M[a>>3];M[g+8>>3]=M[g+8>>3]+M[e>>3];_d(c,g+32|0,g+16|0,g);a=H[g+12>>2];H[b+136>>2]=H[g+8>>2];H[b+140>>2]=a;a=H[g+4>>2];H[b+128>>2]=H[g>>2];H[b+132>>2]=a}xb=g+48|0;H[b+24>>2]=0;H[b+148>>2]=0;break a}g=xb-48|0;xb=g;a=H[b+140>>2];H[g+40>>2]=H[b+136>>2];H[g+44>>2]=a;a=H[b+132>>2];H[g+32>>2]=H[b+128>>2];H[g+36>>2]=a;j=H[b+24>>2];if(j&1){ya:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);h=+z();break ya}h=M[H[b+36>>2]>>3]}M[g+32>>3]=M[g+32>>3]+h;e=1}a=e|4;if(j>>>0>=a>>>0){f=H[40909];d=f;m=H[40908];x(0,m|0);x(1,d|0);h=+z();while(1){if(e>>>0>=j>>>0){F[b+20|0]=1}l=H[b+32>>2];za:{if(l>>>0<=e>>>0){H[196248]=m;H[196249]=d;i=h;break za}i=M[H[b+36>>2]+(e<<3)>>3]}M[g+40>>3]=M[g+40>>3]+i;f=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=f;f=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=f;f=e+1|0;if(f>>>0>=j>>>0){F[b+20|0]=1}Aa:{if(f>>>0>=l>>>0){H[196248]=m;H[196249]=d;f=784992;break Aa}f=H[b+36>>2]+(f<<3)|0}k=e+2|0;if(k>>>0>=j>>>0){F[b+20|0]=1}Ba:{if(l>>>0<=k>>>0){H[196248]=m;H[196249]=d;k=784992;break Ba}k=H[b+36>>2]+(k<<3)|0}M[g+16>>3]=M[g+16>>3]+M[f>>3];M[g+24>>3]=M[g+24>>3]+M[k>>3];f=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=f;f=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=f;e=e+3|0;if(e>>>0>=j>>>0){F[b+20|0]=1}Ca:{if(e>>>0>=l>>>0){H[196248]=m;H[196249]=d;i=h;break Ca}i=M[H[b+36>>2]+(e<<3)>>3]}M[g+8>>3]=M[g+8>>3]+i;_d(c,g+32|0,g+16|0,g);e=H[g+12>>2];H[b+136>>2]=H[g+8>>2];H[b+140>>2]=e;e=H[g+4>>2];H[b+128>>2]=H[g>>2];H[b+132>>2]=e;e=H[g+12>>2];H[g+40>>2]=H[g+8>>2];H[g+44>>2]=e;e=H[g+4>>2];H[g+32>>2]=H[g>>2];H[g+36>>2]=e;e=a;a=e+4|0;j=H[b+24>>2];if(a>>>0<=j>>>0){continue}break}}xb=g+48|0;H[b+24>>2]=0;H[b+148>>2]=0;break a}g=xb-48|0;xb=g;a=H[b+140>>2];H[g+40>>2]=H[b+136>>2];H[g+44>>2]=a;a=H[b+132>>2];H[g+32>>2]=H[b+128>>2];H[g+36>>2]=a;j=H[b+24>>2];if(j&1){Da:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);h=+z();break Da}h=M[H[b+36>>2]>>3]}M[g+40>>3]=M[g+40>>3]+h;e=1}a=e|4;if(j>>>0>=a>>>0){f=H[40909];d=f;m=H[40908];x(0,m|0);x(1,d|0);h=+z();while(1){if(e>>>0>=j>>>0){F[b+20|0]=1}l=H[b+32>>2];Ea:{if(l>>>0<=e>>>0){H[196248]=m;H[196249]=d;i=h;break Ea}i=M[H[b+36>>2]+(e<<3)>>3]}M[g+32>>3]=M[g+32>>3]+i;f=H[g+44>>2];H[g+24>>2]=H[g+40>>2];H[g+28>>2]=f;f=H[g+36>>2];H[g+16>>2]=H[g+32>>2];H[g+20>>2]=f;f=e+1|0;if(f>>>0>=j>>>0){F[b+20|0]=1}Fa:{if(f>>>0>=l>>>0){H[196248]=m;H[196249]=d;f=784992;break Fa}f=H[b+36>>2]+(f<<3)|0}k=e+2|0;if(k>>>0>=j>>>0){F[b+20|0]=1}Ga:{if(l>>>0<=k>>>0){H[196248]=m;H[196249]=d;k=784992;break Ga}k=H[b+36>>2]+(k<<3)|0}M[g+16>>3]=M[g+16>>3]+M[f>>3];M[g+24>>3]=M[g+24>>3]+M[k>>3];f=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=f;f=H[g+20>>2];H[g>>2]=H[g+16>>2];H[g+4>>2]=f;f=e+3|0;if(f>>>0>=j>>>0){F[b+20|0]=1}e=a;Ha:{if(f>>>0>=l>>>0){H[196248]=m;H[196249]=d;i=h;break Ha}i=M[H[b+36>>2]+(f<<3)>>3]}M[g>>3]=M[g>>3]+i;_d(c,g+32|0,g+16|0,g);a=H[g+12>>2];H[b+136>>2]=H[g+8>>2];H[b+140>>2]=a;a=H[g+4>>2];H[b+128>>2]=H[g>>2];H[b+132>>2]=a;a=H[g+12>>2];H[g+40>>2]=H[g+8>>2];H[g+44>>2]=a;a=H[g+4>>2];H[g+32>>2]=H[g>>2];H[g+36>>2]=a;a=e+4|0;j=H[b+24>>2];if(a>>>0<=j>>>0){continue}break}}xb=g+48|0;H[b+24>>2]=0;H[b+148>>2]=0;break a}g=c;c=0;d=xb-96|0;xb=d;H[d+88>>2]=0;H[d+92>>2]=0;H[d+80>>2]=0;H[d+84>>2]=0;H[d+72>>2]=0;H[d+76>>2]=0;H[d+64>>2]=0;H[d+68>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;f=b;j=H[b+24>>2];Ia:{if(!(j&4)){if(j>>>0<8){break Ia}a=H[40909];e=a;m=H[40908];x(0,m|0);x(1,e|0);h=+z();b=8;while(1){a=c;c=b;b=H[f+140>>2];H[d+88>>2]=H[f+136>>2];H[d+92>>2]=b;b=H[f+132>>2];H[d+80>>2]=H[f+128>>2];H[d+84>>2]=b;if(a>>>0>=j>>>0){F[f+20|0]=1}l=H[f+32>>2];Ja:{if(l>>>0<=a>>>0){H[196248]=m;H[196249]=e;i=h;break Ja}i=M[H[f+36>>2]+(a<<3)>>3]}M[d+88>>3]=M[d+88>>3]+i;b=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=b;b=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=b;b=a|1;if(b>>>0>=j>>>0){F[f+20|0]=1}Ka:{if(b>>>0>=l>>>0){H[196248]=m;H[196249]=e;b=784992;break Ka}b=H[f+36>>2]+(b<<3)|0}k=a|2;if(k>>>0>=j>>>0){F[f+20|0]=1}La:{if(l>>>0<=k>>>0){H[196248]=m;H[196249]=e;k=784992;break La}k=H[f+36>>2]+(k<<3)|0}M[d+64>>3]=M[d+64>>3]+M[b>>3];M[d+72>>3]=M[d+72>>3]+M[k>>3];b=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=b;b=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=b;b=a|3;if(b>>>0>=j>>>0){F[f+20|0]=1}Ma:{if(b>>>0>=l>>>0){H[196248]=m;H[196249]=e;i=h;break Ma}i=M[H[f+36>>2]+(b<<3)>>3]}M[d+48>>3]=M[d+48>>3]+i;_d(g,d+80|0,d- -64|0,d+48|0);b=H[d+60>>2];H[f+136>>2]=H[d+56>>2];H[f+140>>2]=b;b=H[d+52>>2];H[f+128>>2]=H[d+48>>2];H[f+132>>2]=b;b=H[d+60>>2];H[d+88>>2]=H[d+56>>2];H[d+92>>2]=b;b=H[d+52>>2];H[d+80>>2]=H[d+48>>2];H[d+84>>2]=b;j=H[f+24>>2];b=a|4;if(j>>>0<=b>>>0){F[f+20|0]=1}l=H[f+32>>2];Na:{if(l>>>0<=b>>>0){H[196248]=m;H[196249]=e;i=h;break Na}i=M[H[f+36>>2]+(b<<3)>>3]}b=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=b;M[d+80>>3]=M[d+80>>3]+i;b=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=b;b=a|5;if(b>>>0>=j>>>0){F[f+20|0]=1}Oa:{if(b>>>0>=l>>>0){H[196248]=m;H[196249]=e;b=784992;break Oa}b=H[f+36>>2]+(b<<3)|0}k=a|6;if(k>>>0>=j>>>0){F[f+20|0]=1}Pa:{if(l>>>0<=k>>>0){H[196248]=m;H[196249]=e;k=784992;break Pa}k=H[f+36>>2]+(k<<3)|0}M[d+64>>3]=M[d+64>>3]+M[b>>3];M[d+72>>3]=M[d+72>>3]+M[k>>3];b=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=b;b=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=b;b=a|7;if(b>>>0>=j>>>0){F[f+20|0]=1}Qa:{if(b>>>0>=l>>>0){H[196248]=m;H[196249]=e;i=h;break Qa}i=M[H[f+36>>2]+(b<<3)>>3]}M[d+56>>3]=M[d+56>>3]+i;if(!(!(j&1)|j-a>>>0>15)){if(c>>>0>=j>>>0){F[f+20|0]=1}Ra:{if(c>>>0>=l>>>0){H[196248]=m;H[196249]=e;i=h;break Ra}i=M[H[f+36>>2]+(c<<3)>>3]}M[d+48>>3]=M[d+48>>3]+i}_d(g,d+80|0,d- -64|0,d+48|0);a=H[d+60>>2];H[f+136>>2]=H[d+56>>2];H[f+140>>2]=a;a=H[d+52>>2];H[f+128>>2]=H[d+48>>2];H[f+132>>2]=a;b=c+8|0;j=H[f+24>>2];if(b>>>0<=j>>>0){continue}break}break Ia}a=H[f+140>>2];H[d+40>>2]=H[f+136>>2];H[d+44>>2]=a;a=H[f+132>>2];H[d+32>>2]=H[f+128>>2];H[d+36>>2]=a;Sa:{Ta:{c=H[f+32>>2];Ua:{if(!c){M[d+40>>3]=M[d+40>>3]+M[20454];a=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=a;a=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=a;e=784992;break Ua}M[d+40>>3]=M[d+40>>3]+M[H[f+36>>2]>>3];a=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=a;a=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=a;if((c|0)==1){e=784992;break Ua}e=H[f+36>>2]+8|0;if(c>>>0>2){break Ta}}a=H[40909];b=H[40908];H[196248]=b;H[196249]=a;x(0,b|0);x(1,a|0);h=+z();break Sa}h=M[H[f+36>>2]+16>>3]}i=M[e>>3];M[d+24>>3]=M[d+24>>3]+h;M[d+16>>3]=i+M[d+16>>3];a=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=a;a=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=a;Va:{if(c>>>0<=3){a=H[40909];b=H[40908];H[196248]=b;H[196249]=a;x(0,b|0);x(1,a|0);h=+z();break Va}h=M[H[f+36>>2]+24>>3]}M[d>>3]=M[d>>3]+h;b=12;a=4;if(j>>>0>=12){a=H[40909];m=a;l=H[40908];x(0,l|0);x(1,a|0);h=+z();e=4;while(1){a=b;_d(g,d+32|0,d+16|0,d);b=H[d+12>>2];H[f+136>>2]=H[d+8>>2];H[f+140>>2]=b;b=H[d+4>>2];H[f+128>>2]=H[d>>2];H[f+132>>2]=b;b=H[d+12>>2];H[d+40>>2]=H[d+8>>2];H[d+44>>2]=b;b=H[d+4>>2];H[d+32>>2]=H[d>>2];H[d+36>>2]=b;c=H[f+24>>2];if(c>>>0<=e>>>0){F[f+20|0]=1}j=H[f+32>>2];Wa:{if(j>>>0<=e>>>0){H[196248]=l;H[196249]=m;i=h;break Wa}i=M[H[f+36>>2]+(e<<3)>>3]}b=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=b;M[d+32>>3]=M[d+32>>3]+i;b=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=b;b=e|1;if(b>>>0>=c>>>0){F[f+20|0]=1}Xa:{if(b>>>0>=j>>>0){H[196248]=l;H[196249]=m;b=784992;break Xa}b=H[f+36>>2]+(b<<3)|0}k=e|2;if(k>>>0>=c>>>0){F[f+20|0]=1}Ya:{if(j>>>0<=k>>>0){H[196248]=l;H[196249]=m;k=784992;break Ya}k=H[f+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[b>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];b=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=b;b=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=b;b=e|3;if(b>>>0>=c>>>0){F[f+20|0]=1}Za:{if(b>>>0>=j>>>0){H[196248]=l;H[196249]=m;i=h;break Za}i=M[H[f+36>>2]+(b<<3)>>3]}M[d+8>>3]=M[d+8>>3]+i;_d(g,d+32|0,d+16|0,d);b=H[d+12>>2];H[f+136>>2]=H[d+8>>2];H[f+140>>2]=b;b=H[d+4>>2];H[f+128>>2]=H[d>>2];H[f+132>>2]=b;b=H[d+12>>2];H[d+40>>2]=H[d+8>>2];H[d+44>>2]=b;b=H[d+4>>2];H[d+32>>2]=H[d>>2];H[d+36>>2]=b;j=H[f+24>>2];b=e+4|0;if(j>>>0<=b>>>0){F[f+20|0]=1}c=H[f+32>>2];_a:{if(b>>>0>=c>>>0){H[196248]=l;H[196249]=m;i=h;break _a}i=M[H[f+36>>2]+(b<<3)>>3]}M[d+40>>3]=M[d+40>>3]+i;b=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=b;b=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=b;b=e+5|0;if(b>>>0>=j>>>0){F[f+20|0]=1}$a:{if(b>>>0>=c>>>0){H[196248]=l;H[196249]=m;b=784992;break $a}b=H[f+36>>2]+(b<<3)|0}k=e+6|0;if(k>>>0>=j>>>0){F[f+20|0]=1}ab:{if(c>>>0<=k>>>0){H[196248]=l;H[196249]=m;k=784992;break ab}k=H[f+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[b>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];b=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=b;b=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=b;b=e+7|0;if(b>>>0>=j>>>0){F[f+20|0]=1}bb:{if(b>>>0>=c>>>0){H[196248]=l;H[196249]=m;i=h;break bb}i=M[H[f+36>>2]+(b<<3)>>3]}M[d>>3]=M[d>>3]+i;e=a;b=e+8|0;if(j>>>0>=b>>>0){continue}break}}if(a>>>0>>0){cb:{if(a>>>0>=c>>>0){a=H[40909];b=H[40908];H[196248]=b;H[196249]=a;x(0,b|0);x(1,a|0);h=+z();break cb}h=M[H[f+36>>2]+(a<<3)>>3]}M[d+8>>3]=M[d+8>>3]+h}_d(g,d+32|0,d+16|0,d);a=H[d+12>>2];H[f+136>>2]=H[d+8>>2];H[f+140>>2]=a;a=H[d+4>>2];H[f+128>>2]=H[d>>2];H[f+132>>2]=a}xb=d+96|0;H[f+24>>2]=0;H[f+148>>2]=0;break a}g=c;c=0;d=xb-96|0;xb=d;H[d+88>>2]=0;H[d+92>>2]=0;H[d+80>>2]=0;H[d+84>>2]=0;H[d+72>>2]=0;H[d+76>>2]=0;H[d+64>>2]=0;H[d+68>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;f=b;j=H[b+24>>2];db:{if(!(j&4)){if(j>>>0<8){break db}a=H[40909];e=a;m=H[40908];x(0,m|0);x(1,e|0);h=+z();b=8;while(1){a=c;c=b;b=H[f+140>>2];H[d+88>>2]=H[f+136>>2];H[d+92>>2]=b;b=H[f+132>>2];H[d+80>>2]=H[f+128>>2];H[d+84>>2]=b;if(a>>>0>=j>>>0){F[f+20|0]=1}l=H[f+32>>2];eb:{if(l>>>0<=a>>>0){H[196248]=m;H[196249]=e;i=h;break eb}i=M[H[f+36>>2]+(a<<3)>>3]}b=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=b;M[d+80>>3]=M[d+80>>3]+i;b=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=b;b=a|1;if(b>>>0>=j>>>0){F[f+20|0]=1}fb:{if(b>>>0>=l>>>0){H[196248]=m;H[196249]=e;b=784992;break fb}b=H[f+36>>2]+(b<<3)|0}k=a|2;if(k>>>0>=j>>>0){F[f+20|0]=1}gb:{if(l>>>0<=k>>>0){H[196248]=m;H[196249]=e;k=784992;break gb}k=H[f+36>>2]+(k<<3)|0}M[d+64>>3]=M[d+64>>3]+M[b>>3];M[d+72>>3]=M[d+72>>3]+M[k>>3];b=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=b;b=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=b;b=a|3;if(b>>>0>=j>>>0){F[f+20|0]=1}hb:{if(b>>>0>=l>>>0){H[196248]=m;H[196249]=e;i=h;break hb}i=M[H[f+36>>2]+(b<<3)>>3]}M[d+56>>3]=M[d+56>>3]+i;_d(g,d+80|0,d- -64|0,d+48|0);b=H[d+60>>2];H[f+136>>2]=H[d+56>>2];H[f+140>>2]=b;b=H[d+52>>2];H[f+128>>2]=H[d+48>>2];H[f+132>>2]=b;b=H[d+60>>2];H[d+88>>2]=H[d+56>>2];H[d+92>>2]=b;b=H[d+52>>2];H[d+80>>2]=H[d+48>>2];H[d+84>>2]=b;j=H[f+24>>2];b=a|4;if(j>>>0<=b>>>0){F[f+20|0]=1}l=H[f+32>>2];ib:{if(l>>>0<=b>>>0){H[196248]=m;H[196249]=e;i=h;break ib}i=M[H[f+36>>2]+(b<<3)>>3]}M[d+88>>3]=M[d+88>>3]+i;b=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=b;b=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=b;b=a|5;if(b>>>0>=j>>>0){F[f+20|0]=1}jb:{if(b>>>0>=l>>>0){H[196248]=m;H[196249]=e;b=784992;break jb}b=H[f+36>>2]+(b<<3)|0}k=a|6;if(k>>>0>=j>>>0){F[f+20|0]=1}kb:{if(l>>>0<=k>>>0){H[196248]=m;H[196249]=e;k=784992;break kb}k=H[f+36>>2]+(k<<3)|0}M[d+64>>3]=M[d+64>>3]+M[b>>3];M[d+72>>3]=M[d+72>>3]+M[k>>3];b=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=b;b=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=b;b=a|7;if(b>>>0>=j>>>0){F[f+20|0]=1}lb:{if(b>>>0>=l>>>0){H[196248]=m;H[196249]=e;i=h;break lb}i=M[H[f+36>>2]+(b<<3)>>3]}M[d+48>>3]=M[d+48>>3]+i;if(!(!(j&1)|j-a>>>0>15)){if(c>>>0>=j>>>0){F[f+20|0]=1}mb:{if(c>>>0>=l>>>0){H[196248]=m;H[196249]=e;i=h;break mb}i=M[H[f+36>>2]+(c<<3)>>3]}M[d+56>>3]=M[d+56>>3]+i}_d(g,d+80|0,d- -64|0,d+48|0);a=H[d+60>>2];H[f+136>>2]=H[d+56>>2];H[f+140>>2]=a;a=H[d+52>>2];H[f+128>>2]=H[d+48>>2];H[f+132>>2]=a;b=c+8|0;j=H[f+24>>2];if(b>>>0<=j>>>0){continue}break}break db}a=H[f+140>>2];H[d+40>>2]=H[f+136>>2];H[d+44>>2]=a;a=H[f+132>>2];H[d+32>>2]=H[f+128>>2];H[d+36>>2]=a;nb:{ob:{c=H[f+32>>2];pb:{if(!c){M[d+32>>3]=M[d+32>>3]+M[20454];a=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=a;a=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=a;e=784992;break pb}M[d+32>>3]=M[d+32>>3]+M[H[f+36>>2]>>3];a=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=a;a=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=a;if((c|0)==1){e=784992;break pb}e=H[f+36>>2]+8|0;if(c>>>0>2){break ob}}a=H[40909];b=H[40908];H[196248]=b;H[196249]=a;x(0,b|0);x(1,a|0);h=+z();break nb}h=M[H[f+36>>2]+16>>3]}i=M[e>>3];M[d+24>>3]=M[d+24>>3]+h;M[d+16>>3]=i+M[d+16>>3];a=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=a;a=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=a;qb:{if(c>>>0<=3){a=H[40909];b=H[40908];H[196248]=b;H[196249]=a;x(0,b|0);x(1,a|0);h=+z();break qb}h=M[H[f+36>>2]+24>>3]}M[d+8>>3]=M[d+8>>3]+h;b=12;a=4;if(j>>>0>=12){a=H[40909];m=a;l=H[40908];x(0,l|0);x(1,a|0);h=+z();e=4;while(1){a=b;_d(g,d+32|0,d+16|0,d);b=H[d+12>>2];H[f+136>>2]=H[d+8>>2];H[f+140>>2]=b;b=H[d+4>>2];H[f+128>>2]=H[d>>2];H[f+132>>2]=b;b=H[d+12>>2];H[d+40>>2]=H[d+8>>2];H[d+44>>2]=b;b=H[d+4>>2];H[d+32>>2]=H[d>>2];H[d+36>>2]=b;c=H[f+24>>2];if(c>>>0<=e>>>0){F[f+20|0]=1}j=H[f+32>>2];rb:{if(j>>>0<=e>>>0){H[196248]=l;H[196249]=m;i=h;break rb}i=M[H[f+36>>2]+(e<<3)>>3]}M[d+40>>3]=M[d+40>>3]+i;b=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=b;b=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=b;b=e|1;if(b>>>0>=c>>>0){F[f+20|0]=1}sb:{if(b>>>0>=j>>>0){H[196248]=l;H[196249]=m;b=784992;break sb}b=H[f+36>>2]+(b<<3)|0}k=e|2;if(k>>>0>=c>>>0){F[f+20|0]=1}tb:{if(j>>>0<=k>>>0){H[196248]=l;H[196249]=m;k=784992;break tb}k=H[f+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[b>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];b=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=b;b=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=b;b=e|3;if(b>>>0>=c>>>0){F[f+20|0]=1}ub:{if(b>>>0>=j>>>0){H[196248]=l;H[196249]=m;i=h;break ub}i=M[H[f+36>>2]+(b<<3)>>3]}M[d>>3]=M[d>>3]+i;_d(g,d+32|0,d+16|0,d);b=H[d+12>>2];H[f+136>>2]=H[d+8>>2];H[f+140>>2]=b;b=H[d+4>>2];H[f+128>>2]=H[d>>2];H[f+132>>2]=b;b=H[d+12>>2];H[d+40>>2]=H[d+8>>2];H[d+44>>2]=b;b=H[d+4>>2];H[d+32>>2]=H[d>>2];H[d+36>>2]=b;j=H[f+24>>2];b=e+4|0;if(j>>>0<=b>>>0){F[f+20|0]=1}c=H[f+32>>2];vb:{if(b>>>0>=c>>>0){H[196248]=l;H[196249]=m;i=h;break vb}i=M[H[f+36>>2]+(b<<3)>>3]}b=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=b;M[d+32>>3]=M[d+32>>3]+i;b=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=b;b=e+5|0;if(b>>>0>=j>>>0){F[f+20|0]=1}wb:{if(b>>>0>=c>>>0){H[196248]=l;H[196249]=m;b=784992;break wb}b=H[f+36>>2]+(b<<3)|0}k=e+6|0;if(k>>>0>=j>>>0){F[f+20|0]=1}xb:{if(c>>>0<=k>>>0){H[196248]=l;H[196249]=m;k=784992;break xb}k=H[f+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[b>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];b=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=b;b=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=b;b=e+7|0;if(b>>>0>=j>>>0){F[f+20|0]=1}yb:{if(b>>>0>=c>>>0){H[196248]=l;H[196249]=m;i=h;break yb}i=M[H[f+36>>2]+(b<<3)>>3]}M[d+8>>3]=M[d+8>>3]+i;e=a;b=e+8|0;if(j>>>0>=b>>>0){continue}break}}if(a>>>0>>0){zb:{if(a>>>0>=c>>>0){a=H[40909];b=H[40908];H[196248]=b;H[196249]=a;x(0,b|0);x(1,a|0);h=+z();break zb}h=M[H[f+36>>2]+(a<<3)>>3]}M[d>>3]=M[d>>3]+h}_d(g,d+32|0,d+16|0,d);a=H[d+12>>2];H[f+136>>2]=H[d+8>>2];H[f+140>>2]=a;a=H[d+4>>2];H[f+128>>2]=H[d>>2];H[f+132>>2]=a}xb=d+96|0;H[f+24>>2]=0;H[f+148>>2]=0;break a}e=xb-96|0;xb=e;Ab:{if(H[b+24>>2]==7){a=H[b+140>>2];H[e+88>>2]=H[b+136>>2];H[e+92>>2]=a;a=H[b+132>>2];H[e+80>>2]=H[b+128>>2];H[e+84>>2]=a;Bb:{Cb:{f=H[b+32>>2];Db:{if(!f){M[e+80>>3]=M[e+80>>3]+M[20454];a=H[e+92>>2];H[e+72>>2]=H[e+88>>2];H[e+76>>2]=a;a=H[e+84>>2];H[e+64>>2]=H[e+80>>2];H[e+68>>2]=a;a=784992;break Db}M[e+80>>3]=M[e+80>>3]+M[H[b+36>>2]>>3];a=H[e+92>>2];H[e+72>>2]=H[e+88>>2];H[e+76>>2]=a;a=H[e+84>>2];H[e+64>>2]=H[e+80>>2];H[e+68>>2]=a;if((f|0)==1){a=784992;break Db}a=H[b+36>>2]+8|0;if(f>>>0>2){break Cb}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break Bb}h=M[H[b+36>>2]+16>>3]}i=M[a>>3];M[e+72>>3]=M[e+72>>3]+h;M[e+64>>3]=i+M[e+64>>3];a=H[e+76>>2];H[e+56>>2]=H[e+72>>2];H[e+60>>2]=a;a=H[e+68>>2];H[e+48>>2]=H[e+64>>2];H[e+52>>2]=a;Eb:{Fb:{Gb:{Hb:{Ib:{if(f>>>0<=3){a=H[40909];g=H[40908];H[196248]=g;H[196249]=a;h=M[e+48>>3];x(0,g|0);x(1,a|0);y=e,A=h+ +z(),M[y+48>>3]=A;a=H[e+60>>2];H[e+40>>2]=H[e+56>>2];H[e+44>>2]=a;a=H[e+52>>2];H[e+32>>2]=H[e+48>>2];H[e+36>>2]=a;break Ib}M[e+48>>3]=M[e+48>>3]+M[H[b+36>>2]+24>>3];a=H[e+60>>2];H[e+40>>2]=H[e+56>>2];H[e+44>>2]=a;a=H[e+52>>2];H[e+32>>2]=H[e+48>>2];H[e+36>>2]=a;if((f|0)!=4){break Hb}}M[e+32>>3]=M[e+32>>3]+M[20454];a=H[e+44>>2];H[e+24>>2]=H[e+40>>2];H[e+28>>2]=a;a=H[e+36>>2];H[e+16>>2]=H[e+32>>2];H[e+20>>2]=a;break Gb}M[e+32>>3]=M[e+32>>3]+M[H[b+36>>2]+32>>3];a=H[e+44>>2];H[e+24>>2]=H[e+40>>2];H[e+28>>2]=a;a=H[e+36>>2];H[e+16>>2]=H[e+32>>2];H[e+20>>2]=a;if(f>>>0>5){break Fb}}a=H[40909];g=H[40908];H[196248]=g;H[196249]=a;x(0,g|0);x(1,a|0);h=+z();break Eb}h=M[H[b+36>>2]+40>>3]}a=H[e+92>>2];g=H[e+88>>2];H[e+24>>2]=g;H[e+28>>2]=a;M[e+16>>3]=M[e+16>>3]+h;H[e+8>>2]=g;H[e+12>>2]=a;a=H[e+20>>2];H[e>>2]=H[e+16>>2];H[e+4>>2]=a;Jb:{if(f>>>0<=6){a=H[40909];f=H[40908];H[196248]=f;H[196249]=a;x(0,f|0);x(1,a|0);h=+z();break Jb}h=M[H[b+36>>2]+48>>3]}M[e>>3]=M[e>>3]+h;_d(c,e+80|0,e- -64|0,e+48|0);a=H[e+60>>2];H[b+136>>2]=H[e+56>>2];H[b+140>>2]=a;a=H[e+52>>2];H[b+128>>2]=H[e+48>>2];H[b+132>>2]=a;_d(c,e+32|0,e+16|0,e);a=H[e+12>>2];H[b+136>>2]=H[e+8>>2];H[b+140>>2]=a;a=H[e+4>>2];H[b+128>>2]=H[e>>2];H[b+132>>2]=a;break Ab}F[b+40|0]=1}xb=e+96|0;H[b+24>>2]=0;H[b+148>>2]=0;break a}e=xb-96|0;xb=e;Kb:{if(H[b+24>>2]==13){a=H[b+140>>2];H[e+88>>2]=H[b+136>>2];H[e+92>>2]=a;a=H[b+132>>2];H[e+80>>2]=H[b+128>>2];H[e+84>>2]=a;Lb:{Mb:{f=H[b+32>>2];Nb:{if(!f){a=784992;break Nb}a=H[b+36>>2];if((f|0)!=1){break Mb}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break Lb}h=M[H[b+36>>2]+8>>3]}i=M[a>>3];M[e+88>>3]=M[e+88>>3]+h;M[e+80>>3]=i+M[e+80>>3];a=H[e+92>>2];H[e+72>>2]=H[e+88>>2];H[e+76>>2]=a;a=H[e+84>>2];H[e+64>>2]=H[e+80>>2];H[e+68>>2]=a;Ob:{Pb:{Qb:{if(f>>>0<3){a=784992;break Qb}a=H[b+36>>2]+16|0;if((f|0)!=3){break Pb}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break Ob}h=M[H[b+36>>2]+24>>3]}i=M[a>>3];M[e+72>>3]=M[e+72>>3]+h;M[e+64>>3]=i+M[e+64>>3];a=H[e+76>>2];H[e+56>>2]=H[e+72>>2];H[e+60>>2]=a;a=H[e+68>>2];H[e+48>>2]=H[e+64>>2];H[e+52>>2]=a;Rb:{Sb:{Tb:{if(f>>>0<5){a=784992;break Tb}a=H[b+36>>2]+32|0;if((f|0)!=5){break Sb}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break Rb}h=M[H[b+36>>2]+40>>3]}i=M[a>>3];M[e+56>>3]=M[e+56>>3]+h;M[e+48>>3]=i+M[e+48>>3];a=H[e+60>>2];H[e+40>>2]=H[e+56>>2];H[e+44>>2]=a;a=H[e+52>>2];H[e+32>>2]=H[e+48>>2];H[e+36>>2]=a;Ub:{Vb:{Wb:{if(f>>>0<7){a=784992;break Wb}a=H[b+36>>2]+48|0;if((f|0)!=7){break Vb}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break Ub}h=M[H[b+36>>2]+56>>3]}i=M[a>>3];M[e+40>>3]=M[e+40>>3]+h;M[e+32>>3]=i+M[e+32>>3];a=H[e+44>>2];H[e+24>>2]=H[e+40>>2];H[e+28>>2]=a;a=H[e+36>>2];H[e+16>>2]=H[e+32>>2];H[e+20>>2]=a;Xb:{Yb:{Zb:{if(f>>>0<9){a=784992;break Zb}a=H[b+36>>2]- -64|0;if((f|0)!=9){break Yb}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break Xb}h=M[H[b+36>>2]+72>>3]}i=M[a>>3];M[e+24>>3]=M[e+24>>3]+h;M[e+16>>3]=i+M[e+16>>3];a=H[e+28>>2];H[e+8>>2]=H[e+24>>2];H[e+12>>2]=a;a=H[e+20>>2];H[e>>2]=H[e+16>>2];H[e+4>>2]=a;_b:{$b:{ac:{if(f>>>0<11){a=784992;break ac}a=H[b+36>>2]+80|0;if((f|0)!=11){break $b}}f=H[40909];g=H[40908];H[196248]=g;H[196249]=f;x(0,g|0);x(1,f|0);h=+z();break _b}h=M[H[b+36>>2]+88>>3]}i=M[a>>3];M[e+8>>3]=M[e+8>>3]+h;M[e>>3]=i+M[e>>3];_d(c,e+80|0,e- -64|0,e+48|0);a=H[e+60>>2];H[b+136>>2]=H[e+56>>2];H[b+140>>2]=a;a=H[e+52>>2];H[b+128>>2]=H[e+48>>2];H[b+132>>2]=a;_d(c,e+32|0,e+16|0,e);a=H[e+12>>2];H[b+136>>2]=H[e+8>>2];H[b+140>>2]=a;a=H[e+4>>2];H[b+128>>2]=H[e>>2];H[b+132>>2]=a;break Kb}F[b+40|0]=1}xb=e+96|0;H[b+24>>2]=0;H[b+148>>2]=0;break a}e=xb-96|0;xb=e;bc:{if(H[b+24>>2]==9){a=H[b+140>>2];H[e+88>>2]=H[b+136>>2];H[e+92>>2]=a;a=H[b+132>>2];H[e+80>>2]=H[b+128>>2];H[e+84>>2]=a;cc:{dc:{f=H[b+32>>2];ec:{if(!f){a=784992;break ec}a=H[b+36>>2];if((f|0)!=1){break dc}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break cc}h=M[H[b+36>>2]+8>>3]}i=M[a>>3];M[e+88>>3]=M[e+88>>3]+h;M[e+80>>3]=i+M[e+80>>3];a=H[e+92>>2];H[e+72>>2]=H[e+88>>2];H[e+76>>2]=a;a=H[e+84>>2];H[e+64>>2]=H[e+80>>2];H[e+68>>2]=a;fc:{gc:{hc:{if(f>>>0<3){a=784992;break hc}a=H[b+36>>2]+16|0;if((f|0)!=3){break gc}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break fc}h=M[H[b+36>>2]+24>>3]}i=M[a>>3];M[e+72>>3]=M[e+72>>3]+h;M[e+64>>3]=i+M[e+64>>3];a=H[e+76>>2];H[e+56>>2]=H[e+72>>2];H[e+60>>2]=a;a=H[e+68>>2];H[e+48>>2]=H[e+64>>2];H[e+52>>2]=a;ic:{jc:{kc:{lc:{mc:{if(f>>>0<=4){M[e+48>>3]=M[e+48>>3]+M[20454];a=H[e+60>>2];H[e+40>>2]=H[e+56>>2];H[e+44>>2]=a;a=H[e+52>>2];H[e+32>>2]=H[e+48>>2];H[e+36>>2]=a;break mc}M[e+48>>3]=M[e+48>>3]+M[H[b+36>>2]+32>>3];a=H[e+60>>2];H[e+40>>2]=H[e+56>>2];H[e+44>>2]=a;a=H[e+52>>2];H[e+32>>2]=H[e+48>>2];H[e+36>>2]=a;if((f|0)!=5){break lc}}a=H[40909];g=H[40908];H[196248]=g;H[196249]=a;h=M[e+32>>3];x(0,g|0);x(1,a|0);y=e,A=h+ +z(),M[y+32>>3]=A;a=H[e+44>>2];H[e+24>>2]=H[e+40>>2];H[e+28>>2]=a;a=H[e+36>>2];H[e+16>>2]=H[e+32>>2];H[e+20>>2]=a;a=784992;break kc}M[e+32>>3]=M[e+32>>3]+M[H[b+36>>2]+40>>3];a=H[e+44>>2];H[e+24>>2]=H[e+40>>2];H[e+28>>2]=a;a=H[e+36>>2];H[e+16>>2]=H[e+32>>2];H[e+20>>2]=a;if(f>>>0<7){a=784992;break kc}a=H[b+36>>2]+48|0;if((f|0)!=7){break jc}}g=H[40909];d=H[40908];H[196248]=d;H[196249]=g;x(0,d|0);x(1,g|0);h=+z();break ic}h=M[H[b+36>>2]+56>>3]}i=M[a>>3];M[e+24>>3]=M[e+24>>3]+h;M[e+16>>3]=i+M[e+16>>3];a=H[e+28>>2];H[e+8>>2]=H[e+24>>2];H[e+12>>2]=a;a=H[e+20>>2];H[e>>2]=H[e+16>>2];H[e+4>>2]=a;nc:{if(f>>>0<=8){a=H[40909];f=H[40908];H[196248]=f;H[196249]=a;x(0,f|0);x(1,a|0);h=+z();break nc}h=M[H[b+36>>2]+64>>3]}M[e>>3]=M[e>>3]+h;a=H[b+140>>2];H[e+8>>2]=H[b+136>>2];H[e+12>>2]=a;_d(c,e+80|0,e- -64|0,e+48|0);a=H[e+60>>2];H[b+136>>2]=H[e+56>>2];H[b+140>>2]=a;a=H[e+52>>2];H[b+128>>2]=H[e+48>>2];H[b+132>>2]=a;_d(c,e+32|0,e+16|0,e);a=H[e+12>>2];H[b+136>>2]=H[e+8>>2];H[b+140>>2]=a;a=H[e+4>>2];H[b+128>>2]=H[e>>2];H[b+132>>2]=a;break bc}F[b+40|0]=1}xb=e+96|0;H[b+24>>2]=0;H[b+148>>2]=0;break a}d=xb-96|0;xb=d;oc:{pc:{qc:{f=b;rc:{sc:{if(H[b+24>>2]==11){a=H[f+36>>2];m=H[40908];l=H[40909];b=784992;e=784992;tc:{uc:{vc:{wc:{xc:{yc:{zc:{Ac:{Bc:{o=H[f+32>>2];switch(o|0){case 0:break Ac;case 1:break Bc;default:break zc}}e=a}H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);i=+z()+0;h=M[e>>3]+0;g=0;break yc}i=M[a+8>>3]+0;h=M[a>>3]+0;g=1;if(o>>>0<3){break yc}if((o|0)!=3){break xc}b=a+16|0;s=1;g=1}H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);i=i+ +z();h=h+M[b>>3];b=784992;break wc}i=i+M[a+24>>3];h=h+M[a+16>>3];if(o>>>0<5){t=1;g=1;s=1;b=784992;break wc}if((o|0)!=5){break vc}t=1;g=1;s=1;u=1;b=a+32|0}H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);i=i+ +z();h=h+M[b>>3];b=784992;break uc}i=i+M[a+40>>3];h=h+M[a+32>>3];if(o>>>0<7){w=1;t=1;g=1;s=1;u=1;b=784992;break uc}if((o|0)!=7){break tc}w=1;t=1;g=1;s=1;u=1;k=1;b=a+48|0}H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);v=i+ +z();h=h+M[b>>3];e=784992;break sc}v=i+M[a+56>>3];h=h+M[a+48>>3];if(o>>>0<9){j=1;w=1;t=1;g=1;s=1;u=1;k=1;break sc}if((o|0)==9){e=a- -64|0;j=1;w=1;t=1;g=1;s=1;u=1;k=1;r=1;break sc}i=M[a+64>>3];q=M[a+72>>3];b=H[f+140>>2];H[d+88>>2]=H[f+136>>2];H[d+92>>2]=b;b=H[f+132>>2];H[d+80>>2]=H[f+128>>2];H[d+84>>2]=b;e=f+128|0;v=v+q;h=h+i;p=1;j=1;w=1;t=1;s=1;u=1;k=1;r=1;b=a;break rc}F[f+40|0]=1;break oc}H[196248]=m;H[196249]=l;q=M[e>>3];b=H[f+140>>2];H[d+88>>2]=H[f+136>>2];H[d+92>>2]=b;b=H[f+132>>2];H[d+80>>2]=H[f+128>>2];H[d+84>>2]=b;e=f+128|0;x(0,m|0);x(1,l|0);i=+z();v=v+i;h=h+q;if(!o){H[196248]=m;H[196249]=l;b=784992;if(g){break rc}break qc}b=a;if(!g){break qc}b=a}i=M[a+8>>3];break pc}H[196248]=m;H[196249]=l}q=M[b>>3];M[d+88>>3]=M[d+88>>3]+i;M[d+80>>3]=q+M[d+80>>3];b=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=b;b=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=b;Cc:{if(!s){H[196248]=m;H[196249]=l;b=784992;break Cc}b=a+16|0}Dc:{if(!t){H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);i=+z();break Dc}i=M[a+24>>3]}q=M[b>>3];M[d+72>>3]=M[d+72>>3]+i;M[d+64>>3]=q+M[d+64>>3];b=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=b;b=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=b;Ec:{if(!u){H[196248]=m;H[196249]=l;b=784992;break Ec}b=a+32|0}Fc:{if(!w){H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);i=+z();break Fc}i=M[a+40>>3]}q=M[b>>3];M[d+56>>3]=M[d+56>>3]+i;M[d+48>>3]=q+M[d+48>>3];b=H[d+60>>2];H[d+40>>2]=H[d+56>>2];H[d+44>>2]=b;b=H[d+52>>2];H[d+32>>2]=H[d+48>>2];H[d+36>>2]=b;Gc:{if(!k){H[196248]=m;H[196249]=l;b=784992;break Gc}b=a+48|0}Hc:{if(!j){H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);i=+z();break Hc}i=M[a+56>>3]}q=M[b>>3];M[d+40>>3]=M[d+40>>3]+i;M[d+32>>3]=q+M[d+32>>3];b=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=b;b=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=b;Ic:{if(!r){H[196248]=m;H[196249]=l;b=784992;break Ic}b=a- -64|0}Jc:{if(!p){H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);i=+z();break Jc}i=M[a+72>>3]}q=M[b>>3];M[d+24>>3]=M[d+24>>3]+i;M[d+16>>3]=q+M[d+16>>3];b=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=b;b=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=b;Kc:{if(P(h)>P(v)){Lc:{if(o>>>0<=10){H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);h=+z();break Lc}h=M[a+80>>3]}M[d>>3]=M[d>>3]+h;a=H[f+140>>2];H[d+8>>2]=H[f+136>>2];H[d+12>>2]=a;break Kc}b=H[e+4>>2];H[d>>2]=H[e>>2];H[d+4>>2]=b;Mc:{if(o>>>0<=10){H[196248]=m;H[196249]=l;x(0,m|0);x(1,l|0);h=+z();break Mc}h=M[a+80>>3]}M[d+8>>3]=M[d+8>>3]+h}_d(c,d+80|0,d- -64|0,d+48|0);a=H[d+60>>2];H[e+8>>2]=H[d+56>>2];H[e+12>>2]=a;a=H[d+52>>2];H[e>>2]=H[d+48>>2];H[e+4>>2]=a;_d(c,d+32|0,d+16|0,d);a=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=a;a=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=a}xb=d+96|0;H[f+24>>2]=0;H[f+148>>2]=0;break a}Qi(a,b);break a}e=H[b+24>>2];a=e&1;break c}F[b+20|0]=1;a=H[40909];f=H[40908];H[196248]=f;H[196249]=a;x(0,f|0);x(1,a|0);h=+z()}M[n>>3]=h+M[n>>3];M[n+8>>3]=M[n+8>>3]+M[e>>3];ls(c,n);a=H[n+12>>2];H[b+136>>2]=H[n+8>>2];H[b+140>>2]=a;a=H[n+4>>2];H[b+128>>2]=H[n>>2];H[b+132>>2]=a;if(!I[b+73|0]){if(!I[b+74|0]){F[b+74|0]=1;a=H[b+80>>2]+(H[b+24>>2]>>>1|0)|0;H[b+80>>2]=a;H[b+84>>2]=(a+H[b+76>>2]|0)+7>>>3}F[b+73|0]=1}H[b+24>>2]=0;H[b+148>>2]=0;break a}if(!(!a|!e)){Nc:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break Nc}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}H[b+148>>2]=0;a=H[b+24>>2];H[b+24>>2]=0;H[b+76>>2]=H[b+76>>2]+(a>>>1|0)}xb=n+16|0}function zG(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,u=0,v=0,w=0,y=0,A=0,B=0,C=0,D=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{switch(a-1|0){default:switch(a-255|0){case 38:break l;case 37:break m;case 36:break n;case 35:break o;case 0:break H;default:break k};case 10:if(I[b+16|0]){F[b+40|0]=1}a=H[b+92>>2];J:{K:{if(a){a=a-1|0;H[b+92>>2]=a;if(a>>>0>=K[b+100>>2]){break K}a=H[b+104>>2]+N(a,28)|0;break J}F[b+88|0]=1}H[196254]=H[40914];a=H[40913];H[196252]=H[40912];H[196253]=a;a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}c=H[a+4>>2];H[b+44>>2]=H[a>>2];H[b+48>>2]=c;H[b+68>>2]=H[a+24>>2];c=H[a+20>>2];H[b+60>>2]=H[a+16>>2];H[b+64>>2]=c;c=H[a+12>>2];H[b+52>>2]=H[a+8>>2];H[b+56>>2]=c;c=H[a+8>>2];e=H[a+12>>2];i=H[a>>2];d=H[a+4>>2];F[b+16|0]=I[a+16|0];H[b+8>>2]=c;H[b+12>>2]=e;H[b>>2]=i;H[b+4>>2]=d;return;case 1:case 8:case 11:case 12:case 14:case 15:case 16:case 27:break k;case 30:break p;case 29:break q;case 26:break r;case 25:break s;case 24:break t;case 23:break u;case 7:break v;case 6:break w;case 5:break x;case 4:break y;case 3:break z;case 21:break A;case 20:break B;case 18:case 19:break C;case 2:case 22:break D;case 0:case 17:break E;case 28:break F;case 9:break G;case 13:break I}}if(!I[b+144|0]){if(F[b+24|0]&1){L:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break L}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}H[b+148>>2]=0;F[b+72|0]=1;H[b+24>>2]=0;return}if(I[b+16|0]){break j}e=H[b+12>>2];i=e+4|0;c=H[b+4>>2];if(i>>>0>c>>>0){break j}M:{if(c>>>0<=e>>>0){F[b+16|0]=1;a=163632;break M}a=e+H[b>>2]|0}a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);d=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=H[b+24>>2];N:{if(a>>>0>2]){H[b+24>>2]=a+1;f=H[b+36>>2]+(a<<3)|0;a=c;break N}F[b+20|0]=1;a=H[40909];H[196248]=H[40908];H[196249]=a;f=784992;a=H[b+4>>2]}M[f>>3]=+(d|0)*152587890625e-16;if(!(a>>>0>>0|c>>>0<=e>>>0|a>>>0>>0)){H[b+12>>2]=i;return}break a}Qn(b,b+116|0,2);return}Qn(b,b+108|0,1);return}if(I[b+144|0]|a>>>0>18){break e}if(1<>2];a=c>>>0>1;break f}O:{if(I[b+144|0]|a>>>0>23){break O}P:{Q:{c=1<>2];a=c>>>0>2;break P}c=H[b+24>>2];a=c&1;break P}c=H[b+24>>2];a=c>>>0>1}if(!(!a|!c)){R:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break R}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}H[b+148>>2]=0;a=H[b+24>>2];H[b+24>>2]=0;H[b+80>>2]=H[b+80>>2]+(a>>>1|0);return}if(!I[b+144|0]){if(F[b+24|0]&1){S:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break S}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}H[b+148>>2]=1;F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}T:{if(I[b+74|0]){a=H[b+84>>2];break T}F[b+74|0]=1;a=H[b+80>>2]+(H[b+24>>2]>>>1|0)|0;H[b+80>>2]=a;a=(a+H[b+76>>2]|0)+7>>>3|0;H[b+84>>2]=a}if(I[b+16|0]){break j}c=H[b+12>>2];e=c+a|0;a=H[b+4>>2];if(e>>>0>a>>>0){break j}H[b+148>>2]=0;H[b+24>>2]=0;if(a>>>0>=c>>>0){H[b+12>>2]=e;return}break a}d=H[b+24>>2];if(!I[b+144|0]){if(d>>>0>=3){U:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break U}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}H[b+148>>2]=1;F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}n=M[b+136>>3];g=M[b+128>>3];if(!d){i=784992;break h}a=d-1|0;H[b+24>>2]=a;e=H[b+32>>2];V:{if(e>>>0<=a>>>0){i=H[40909];H[196248]=H[40908];H[196249]=i;i=784992;break V}i=H[b+36>>2]+(a<<3)|0}if(!a){break h}a=d-2|0;if(e>>>0<=a>>>0){e=H[40909];d=H[40908];H[196248]=d;H[196249]=e;x(0,d|0);x(1,e|0);h=+z();break g}h=M[H[b+36>>2]+(a<<3)>>3];break g}i=H[b+24>>2];if(!I[b+144|0]){if(i>>>0>=2){W:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break W}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}H[b+148>>2]=1;F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}n=M[b+136>>3];g=M[b+128>>3];X:{if(i){a=i-1|0;if(a>>>0>=K[b+32>>2]){e=H[40909];i=H[40908];H[196248]=i;H[196249]=e;x(0,i|0);x(1,e|0);h=+z();break X}h=M[H[b+36>>2]+(a<<3)>>3];break X}F[b+20|0]=1;a=0;e=H[40909];i=H[40908];H[196248]=i;H[196249]=e;x(0,i|0);x(1,e|0);h=+z()}F[c|0]=0;M[b+136>>3]=n;break d}i=H[b+24>>2];if(!I[b+144|0]){if(i>>>0>=2){Y:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break Y}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}H[b+148>>2]=1;F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}h=M[b+136>>3];n=M[b+128>>3];Z:{if(i){a=i-1|0;if(a>>>0>=K[b+32>>2]){e=H[40909];i=H[40908];H[196248]=i;H[196249]=e;x(0,i|0);x(1,e|0);g=+z();break Z}g=M[H[b+36>>2]+(a<<3)>>3];break Z}F[b+20|0]=1;a=0;e=H[40909];i=H[40908];H[196248]=i;H[196249]=e;x(0,i|0);x(1,e|0);g=+z()}F[c|0]=0;M[b+136>>3]=h+g;M[b+128>>3]=n;break c}a=0;d=H[b+24>>2];if(d>>>0>=2){f=H[b+36>>2];l=H[b+32>>2];e=H[40909];j=e;m=H[40908];x(0,m|0);x(1,e|0);n=+z();e=2;while(1){if(a>>>0>=d>>>0){F[b+20|0]=1}_:{if(a>>>0>=l>>>0){H[196248]=m;H[196249]=j;i=784992;break _}i=f+(a<<3)|0}a=a|1;if(a>>>0>=d>>>0){F[b+20|0]=1}g=M[b+128>>3];r=M[b+136>>3];$:{if(a>>>0>=l>>>0){H[196248]=m;H[196249]=j;h=n;break $}h=M[f+(a<<3)>>3]}o=r+h;h=g+M[i>>3];aa:{if(I[c|0]){break aa}F[c|0]=1;if(M[c+8>>3]>g){M[c+8>>3]=g;g=M[b+128>>3]}if(M[c+24>>3]>3]=g}g=M[b+136>>3];if(g>3]){M[c+16>>3]=g;g=M[b+136>>3]}if(!(M[c+32>>3]>3]=g}M[b+136>>3]=o;M[b+128>>3]=h;if(M[c+8>>3]>h){M[c+8>>3]=h;h=M[b+128>>3]}if(M[c+24>>3]>3]=h}h=M[b+136>>3];if(h>3]){M[c+16>>3]=h;h=M[b+136>>3]}if(M[c+32>>3]>3]=h}a=e;e=a+2|0;if(d>>>0>=e>>>0){continue}break}}break b}a=0;d=H[b+24>>2];if(d>>>0>=2){f=H[b+36>>2];l=H[b+32>>2];a=H[40909];j=a;m=H[40908];x(0,m|0);x(1,a|0);r=+z();i=2;while(1){a=i;if(d>>>0<=e>>>0){F[b+20|0]=1}g=M[b+128>>3];ba:{if(e>>>0>=l>>>0){H[196248]=m;H[196249]=j;h=r;break ba}h=M[f+(e<<3)>>3]}p=M[b+136>>3];h=g+h;ca:{if(I[c|0]){break ca}F[c|0]=1;if(M[c+8>>3]>g){M[c+8>>3]=g;g=M[b+128>>3]}if(M[c+24>>3]>3]=g}g=M[b+136>>3];if(g>3]){M[c+16>>3]=g;g=M[b+136>>3]}if(!(M[c+32>>3]>3]=g}M[b+136>>3]=p;M[b+128>>3]=h;g=h;n=M[c+8>>3];if(g>3]=h;n=h;g=M[b+128>>3]}o=M[c+24>>3];if(o>3]=g;o=g}s=M[c+16>>3];g=M[b+136>>3];if(s>g){M[c+16>>3]=g;s=g;g=M[b+136>>3]}t=M[c+32>>3];if(g>t){M[c+32>>3]=g;t=g}e=e|1;if(e>>>0>=d>>>0){F[b+20|0]=1}g=p;da:{if(e>>>0>=l>>>0){H[196248]=m;H[196249]=j;p=r;break da}p=M[f+(e<<3)>>3]}p=g+p;ea:{if(I[c|0]){break ea}F[c|0]=1;g=n;n=M[b+128>>3];if(g>n){M[c+8>>3]=n;n=M[b+128>>3]}if(n>o){M[c+24>>3]=n}n=M[b+136>>3];if(s>n){M[c+16>>3]=n;n=M[b+136>>3]}if(!(n>t)){break ea}M[c+32>>3]=n}M[b+136>>3]=p;M[b+128>>3]=h;if(M[c+8>>3]>h){M[c+8>>3]=h;h=M[b+128>>3]}if(M[c+24>>3]>3]=h}h=M[b+136>>3];if(h>3]){M[c+16>>3]=h;h=M[b+136>>3]}if(M[c+32>>3]>3]=h}e=a;i=a+2|0;if(d>>>0>=i>>>0){continue}break}}fa:{if(a>>>0>=d>>>0){break fa}g=M[b+128>>3];ga:{if(K[b+32>>2]<=a>>>0){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);h=+z();break ga}h=M[H[b+36>>2]+(a<<3)>>3]}n=M[b+136>>3];h=g+h;ha:{if(I[c|0]){break ha}F[c|0]=1;if(M[c+8>>3]>g){M[c+8>>3]=g;g=M[b+128>>3]}if(M[c+24>>3]>3]=g}g=M[b+136>>3];if(g>3]){M[c+16>>3]=g;g=M[b+136>>3]}if(!(M[c+32>>3]>3]=g}M[b+136>>3]=n;M[b+128>>3]=h;if(M[c+8>>3]>h){M[c+8>>3]=h;h=M[b+128>>3]}if(M[c+24>>3]>3]=h}h=M[b+136>>3];if(h>3]){M[c+16>>3]=h;h=M[b+136>>3]}if(!(M[c+32>>3]>3]=h}break b}a=0;d=H[b+24>>2];if(d>>>0>=2){f=H[b+36>>2];l=H[b+32>>2];a=H[40909];j=a;m=H[40908];x(0,m|0);x(1,a|0);r=+z();i=2;while(1){a=i;if(d>>>0<=e>>>0){F[b+20|0]=1}n=M[b+136>>3];ia:{if(e>>>0>=l>>>0){H[196248]=m;H[196249]=j;g=r;break ia}g=M[f+(e<<3)>>3]}h=M[b+128>>3];p=n+g;ja:{if(I[c|0]){break ja}F[c|0]=1;g=h;if(g>3]){M[c+8>>3]=h;g=M[b+128>>3]}if(M[c+24>>3]>3]=g}g=M[b+136>>3];if(g>3]){M[c+16>>3]=g;g=M[b+136>>3]}if(!(M[c+32>>3]>3]=g}M[b+136>>3]=p;M[b+128>>3]=h;g=h;n=M[c+8>>3];if(g>3]=h;n=h;g=M[b+128>>3]}o=M[c+24>>3];if(o>3]=g;o=g}s=M[c+16>>3];g=M[b+136>>3];if(s>g){M[c+16>>3]=g;s=g;g=M[b+136>>3]}t=M[c+32>>3];if(g>t){M[c+32>>3]=g;t=g}e=e|1;if(e>>>0>=d>>>0){F[b+20|0]=1}ka:{if(e>>>0>=l>>>0){H[196248]=m;H[196249]=j;g=r;break ka}g=M[f+(e<<3)>>3]}h=h+g;la:{if(I[c|0]){break la}F[c|0]=1;g=M[b+128>>3];if(n>g){M[c+8>>3]=g;g=M[b+128>>3]}if(g>o){M[c+24>>3]=g}g=M[b+136>>3];if(s>g){M[c+16>>3]=g;g=M[b+136>>3]}if(!(g>t)){break la}M[c+32>>3]=g}M[b+136>>3]=p;M[b+128>>3]=h;if(M[c+8>>3]>h){M[c+8>>3]=h;h=M[b+128>>3]}if(M[c+24>>3]>3]=h}h=M[b+136>>3];if(h>3]){M[c+16>>3]=h;h=M[b+136>>3]}if(M[c+32>>3]>3]=h}e=a;i=a+2|0;if(d>>>0>=i>>>0){continue}break}}ma:{if(a>>>0>=d>>>0){break ma}n=M[b+136>>3];na:{if(K[b+32>>2]<=a>>>0){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);g=+z();break na}g=M[H[b+36>>2]+(a<<3)>>3]}h=M[b+128>>3];n=n+g;oa:{if(I[c|0]){break oa}F[c|0]=1;g=h;if(g>3]){M[c+8>>3]=h;g=M[b+128>>3]}if(M[c+24>>3]>3]=g}g=M[b+136>>3];if(g>3]){M[c+16>>3]=g;g=M[b+136>>3]}if(!(M[c+32>>3]>3]=g}M[b+136>>3]=n;M[b+128>>3]=h;if(M[c+8>>3]>h){M[c+8>>3]=h;h=M[b+128>>3]}if(M[c+24>>3]>3]=h}h=M[b+136>>3];if(h>3]){M[c+16>>3]=h;h=M[b+136>>3]}if(!(M[c+32>>3]>3]=h}break b}i=c;a=0;d=xb-48|0;xb=d;f=H[b+24>>2];if(f>>>0>=6){l=H[40908];j=H[40909];c=6;while(1){e=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=e;e=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=e;if(a>>>0>=f>>>0){F[b+20|0]=1}m=H[b+32>>2];pa:{if(m>>>0<=a>>>0){H[196248]=l;H[196249]=j;e=784992;break pa}e=H[b+36>>2]+(a<<3)|0}k=a|1;if(k>>>0>=f>>>0){F[b+20|0]=1}qa:{if(k>>>0>=m>>>0){H[196248]=l;H[196249]=j;k=784992;break qa}k=H[b+36>>2]+(k<<3)|0}M[d+32>>3]=M[d+32>>3]+M[e>>3];M[d+40>>3]=M[d+40>>3]+M[k>>3];e=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=e;e=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=e;e=a+2|0;if(e>>>0>=f>>>0){F[b+20|0]=1}ra:{if(e>>>0>=m>>>0){H[196248]=l;H[196249]=j;e=784992;break ra}e=H[b+36>>2]+(e<<3)|0}k=a+3|0;if(k>>>0>=f>>>0){F[b+20|0]=1}sa:{if(k>>>0>=m>>>0){H[196248]=l;H[196249]=j;k=784992;break sa}k=H[b+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[e>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];e=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=e;e=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=e;e=a+4|0;if(e>>>0>=f>>>0){F[b+20|0]=1}ta:{if(e>>>0>=m>>>0){H[196248]=l;H[196249]=j;e=784992;break ta}e=H[b+36>>2]+(e<<3)|0}a=a+5|0;if(a>>>0>=f>>>0){F[b+20|0]=1}ua:{if(a>>>0>=m>>>0){H[196248]=l;H[196249]=j;a=784992;break ua}a=H[b+36>>2]+(a<<3)|0}M[d>>3]=M[d>>3]+M[e>>3];M[d+8>>3]=M[d+8>>3]+M[a>>3];Nc(b,i,d+32|0,d+16|0,d);a=c;c=a+6|0;f=H[b+24>>2];if(c>>>0<=f>>>0){continue}break}}xb=d+48|0;break b}a=0;d=xb-48|0;xb=d;f=H[b+24>>2];va:{if(f>>>0<8){break va}q=f-2|0;l=H[40908];j=H[40909];e=6;while(1){i=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=i;i=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=i;if(a>>>0>=f>>>0){F[b+20|0]=1}m=H[b+32>>2];wa:{if(m>>>0<=a>>>0){H[196248]=l;H[196249]=j;i=784992;break wa}i=H[b+36>>2]+(a<<3)|0}k=a|1;if(k>>>0>=f>>>0){F[b+20|0]=1}xa:{if(k>>>0>=m>>>0){H[196248]=l;H[196249]=j;k=784992;break xa}k=H[b+36>>2]+(k<<3)|0}M[d+32>>3]=M[d+32>>3]+M[i>>3];M[d+40>>3]=M[d+40>>3]+M[k>>3];i=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=i;i=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=i;i=a+2|0;if(i>>>0>=f>>>0){F[b+20|0]=1}ya:{if(i>>>0>=m>>>0){H[196248]=l;H[196249]=j;i=784992;break ya}i=H[b+36>>2]+(i<<3)|0}k=a+3|0;if(k>>>0>=f>>>0){F[b+20|0]=1}za:{if(k>>>0>=m>>>0){H[196248]=l;H[196249]=j;k=784992;break za}k=H[b+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[i>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];i=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=i;i=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=i;i=a+4|0;if(i>>>0>=f>>>0){F[b+20|0]=1}Aa:{if(i>>>0>=m>>>0){H[196248]=l;H[196249]=j;i=784992;break Aa}i=H[b+36>>2]+(i<<3)|0}a=a+5|0;if(a>>>0>=f>>>0){F[b+20|0]=1}Ba:{if(a>>>0>=m>>>0){H[196248]=l;H[196249]=j;a=784992;break Ba}a=H[b+36>>2]+(a<<3)|0}M[d>>3]=M[d>>3]+M[i>>3];M[d+8>>3]=M[d+8>>3]+M[a>>3];Nc(b,c,d+32|0,d+16|0,d);f=H[b+24>>2];a=e;e=a+6|0;if(q>>>0>=e>>>0){continue}break}if(a>>>0>=f>>>0){F[b+20|0]=1}i=H[b+32>>2];Ca:{if(i>>>0<=a>>>0){e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Ca}e=H[b+36>>2]+(a<<3)|0}a=a|1;if(a>>>0>=f>>>0){F[b+20|0]=1}g=M[b+128>>3];h=M[b+136>>3];Da:{if(a>>>0>=i>>>0){a=H[40909];i=H[40908];H[196248]=i;H[196249]=a;x(0,i|0);x(1,a|0);n=+z();break Da}n=M[H[b+36>>2]+(a<<3)>>3]}n=h+n;h=g+M[e>>3];Ea:{if(I[c|0]){break Ea}F[c|0]=1;if(M[c+8>>3]>g){M[c+8>>3]=g;g=M[b+128>>3]}if(M[c+24>>3]>3]=g}g=M[b+136>>3];if(g>3]){M[c+16>>3]=g;g=M[b+136>>3]}if(!(M[c+32>>3]>3]=g}M[b+136>>3]=n;M[b+128>>3]=h;if(M[c+8>>3]>h){M[c+8>>3]=h;h=M[b+128>>3]}if(M[c+24>>3]>3]=h}h=M[b+136>>3];if(h>3]){M[c+16>>3]=h;h=M[b+136>>3]}if(!(M[c+32>>3]>3]=h}xb=d+48|0;break b}a=0;d=xb-48|0;xb=d;f=H[b+24>>2];if(f>>>0>=8){q=f-6|0;l=H[b+36>>2];j=H[b+32>>2];e=H[40909];m=e;k=H[40908];x(0,k|0);x(1,e|0);n=+z();e=2;while(1){if(a>>>0>=f>>>0){F[b+20|0]=1}Fa:{if(a>>>0>=j>>>0){H[196248]=k;H[196249]=m;i=784992;break Fa}i=l+(a<<3)|0}a=a|1;if(a>>>0>=f>>>0){F[b+20|0]=1}g=M[b+128>>3];r=M[b+136>>3];Ga:{if(a>>>0>=j>>>0){H[196248]=k;H[196249]=m;h=n;break Ga}h=M[l+(a<<3)>>3]}o=r+h;h=g+M[i>>3];Ha:{if(I[c|0]){break Ha}F[c|0]=1;if(M[c+8>>3]>g){M[c+8>>3]=g;g=M[b+128>>3]}if(M[c+24>>3]>3]=g}g=M[b+136>>3];if(g>3]){M[c+16>>3]=g;g=M[b+136>>3]}if(!(M[c+32>>3]>3]=g}M[b+136>>3]=o;M[b+128>>3]=h;if(M[c+8>>3]>h){M[c+8>>3]=h;h=M[b+128>>3]}if(M[c+24>>3]>3]=h}h=M[b+136>>3];if(h>3]){M[c+16>>3]=h;h=M[b+136>>3]}if(M[c+32>>3]>3]=h}a=e;e=a+2|0;if(q>>>0>=e>>>0){continue}break}i=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=i;i=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=i;if(a>>>0>=f>>>0){F[b+20|0]=1}l=H[b+32>>2];Ia:{if(l>>>0<=a>>>0){i=H[40909];H[196248]=H[40908];H[196249]=i;i=784992;break Ia}i=H[b+36>>2]+(a<<3)|0}j=a|1;if(j>>>0>=f>>>0){F[b+20|0]=1}Ja:{if(j>>>0>=l>>>0){j=H[40909];H[196248]=H[40908];H[196249]=j;j=784992;break Ja}j=H[b+36>>2]+(j<<3)|0}M[d+32>>3]=M[d+32>>3]+M[i>>3];M[d+40>>3]=M[d+40>>3]+M[j>>3];i=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=i;i=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=i;if(e>>>0>=f>>>0){F[b+20|0]=1}Ka:{if(e>>>0>=l>>>0){e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Ka}e=H[b+36>>2]+(e<<3)|0}i=a+3|0;if(i>>>0>=f>>>0){F[b+20|0]=1}La:{if(i>>>0>=l>>>0){i=H[40909];H[196248]=H[40908];H[196249]=i;i=784992;break La}i=H[b+36>>2]+(i<<3)|0}M[d+16>>3]=M[d+16>>3]+M[e>>3];M[d+24>>3]=M[d+24>>3]+M[i>>3];e=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=e;e=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=e;e=a+4|0;if(e>>>0>=f>>>0){F[b+20|0]=1}Ma:{if(e>>>0>=l>>>0){e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break Ma}e=H[b+36>>2]+(e<<3)|0}a=a+5|0;if(a>>>0>=f>>>0){F[b+20|0]=1}Na:{if(a>>>0>=l>>>0){a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break Na}a=H[b+36>>2]+(a<<3)|0}M[d>>3]=M[d>>3]+M[e>>3];M[d+8>>3]=M[d+8>>3]+M[a>>3];Nc(b,c,d+32|0,d+16|0,d)}xb=d+48|0;break b}i=c;a=0;d=xb-48|0;xb=d;c=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=c;c=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=c;f=H[b+24>>2];if(f&1){Oa:{if(!H[b+32>>2]){a=H[40909];c=H[40908];H[196248]=c;H[196249]=a;x(0,c|0);x(1,a|0);g=+z();break Oa}g=M[H[b+36>>2]>>3]}M[d+32>>3]=M[d+32>>3]+g;a=1}c=a|4;if(f>>>0>=c>>>0){e=H[40909];l=e;j=H[40908];x(0,j|0);x(1,e|0);g=+z();while(1){if(a>>>0>=f>>>0){F[b+20|0]=1}m=H[b+32>>2];Pa:{if(m>>>0<=a>>>0){H[196248]=j;H[196249]=l;h=g;break Pa}h=M[H[b+36>>2]+(a<<3)>>3]}M[d+40>>3]=M[d+40>>3]+h;e=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=e;e=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=e;e=a+1|0;if(e>>>0>=f>>>0){F[b+20|0]=1}Qa:{if(e>>>0>=m>>>0){H[196248]=j;H[196249]=l;e=784992;break Qa}e=H[b+36>>2]+(e<<3)|0}k=a+2|0;if(k>>>0>=f>>>0){F[b+20|0]=1}Ra:{if(k>>>0>=m>>>0){H[196248]=j;H[196249]=l;k=784992;break Ra}k=H[b+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[e>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];e=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=e;e=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=e;e=a+3|0;if(e>>>0>=f>>>0){F[b+20|0]=1}a=c;Sa:{if(e>>>0>=m>>>0){H[196248]=j;H[196249]=l;h=g;break Sa}h=M[H[b+36>>2]+(e<<3)>>3]}M[d+8>>3]=M[d+8>>3]+h;Nc(b,i,d+32|0,d+16|0,d);c=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=c;c=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=c;c=a+4|0;f=H[b+24>>2];if(c>>>0<=f>>>0){continue}break}}xb=d+48|0;break b}i=c;a=0;d=xb-48|0;xb=d;c=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=c;c=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=c;f=H[b+24>>2];if(f&1){Ta:{if(!H[b+32>>2]){a=H[40909];c=H[40908];H[196248]=c;H[196249]=a;x(0,c|0);x(1,a|0);g=+z();break Ta}g=M[H[b+36>>2]>>3]}M[d+40>>3]=M[d+40>>3]+g;a=1}c=a|4;if(f>>>0>=c>>>0){e=H[40909];l=e;j=H[40908];x(0,j|0);x(1,e|0);g=+z();while(1){if(a>>>0>=f>>>0){F[b+20|0]=1}m=H[b+32>>2];Ua:{if(m>>>0<=a>>>0){H[196248]=j;H[196249]=l;h=g;break Ua}h=M[H[b+36>>2]+(a<<3)>>3]}M[d+32>>3]=M[d+32>>3]+h;e=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=e;e=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=e;e=a+1|0;if(e>>>0>=f>>>0){F[b+20|0]=1}Va:{if(e>>>0>=m>>>0){H[196248]=j;H[196249]=l;e=784992;break Va}e=H[b+36>>2]+(e<<3)|0}k=a+2|0;if(k>>>0>=f>>>0){F[b+20|0]=1}Wa:{if(k>>>0>=m>>>0){H[196248]=j;H[196249]=l;k=784992;break Wa}k=H[b+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[e>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];e=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=e;e=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=e;e=a+3|0;if(e>>>0>=f>>>0){F[b+20|0]=1}a=c;Xa:{if(e>>>0>=m>>>0){H[196248]=j;H[196249]=l;h=g;break Xa}h=M[H[b+36>>2]+(e<<3)>>3]}M[d>>3]=M[d>>3]+h;Nc(b,i,d+32|0,d+16|0,d);c=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=c;c=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=c;c=a+4|0;f=H[b+24>>2];if(c>>>0<=f>>>0){continue}break}}xb=d+48|0;break b}d=c;a=0;f=xb-96|0;xb=f;H[f+88>>2]=0;H[f+92>>2]=0;H[f+80>>2]=0;H[f+84>>2]=0;H[f+72>>2]=0;H[f+76>>2]=0;H[f+64>>2]=0;H[f+68>>2]=0;H[f+56>>2]=0;H[f+60>>2]=0;H[f+48>>2]=0;H[f+52>>2]=0;l=H[b+24>>2];Ya:{if(!(l&4)){if(l>>>0<8){break Ya}c=H[40909];i=c;j=H[40908];x(0,j|0);x(1,c|0);g=+z();c=8;while(1){e=a;a=c;c=H[b+140>>2];H[f+88>>2]=H[b+136>>2];H[f+92>>2]=c;c=H[b+132>>2];H[f+80>>2]=H[b+128>>2];H[f+84>>2]=c;if(e>>>0>=l>>>0){F[b+20|0]=1}m=H[b+32>>2];Za:{if(m>>>0<=e>>>0){H[196248]=j;H[196249]=i;h=g;break Za}h=M[H[b+36>>2]+(e<<3)>>3]}M[f+88>>3]=M[f+88>>3]+h;c=H[f+92>>2];H[f+72>>2]=H[f+88>>2];H[f+76>>2]=c;c=H[f+84>>2];H[f+64>>2]=H[f+80>>2];H[f+68>>2]=c;c=e|1;if(c>>>0>=l>>>0){F[b+20|0]=1}_a:{if(c>>>0>=m>>>0){H[196248]=j;H[196249]=i;c=784992;break _a}c=H[b+36>>2]+(c<<3)|0}k=e|2;if(k>>>0>=l>>>0){F[b+20|0]=1}$a:{if(k>>>0>=m>>>0){H[196248]=j;H[196249]=i;k=784992;break $a}k=H[b+36>>2]+(k<<3)|0}M[f+64>>3]=M[f+64>>3]+M[c>>3];M[f+72>>3]=M[f+72>>3]+M[k>>3];c=H[f+76>>2];H[f+56>>2]=H[f+72>>2];H[f+60>>2]=c;c=H[f+68>>2];H[f+48>>2]=H[f+64>>2];H[f+52>>2]=c;c=e|3;if(c>>>0>=l>>>0){F[b+20|0]=1}ab:{if(c>>>0>=m>>>0){H[196248]=j;H[196249]=i;h=g;break ab}h=M[H[b+36>>2]+(c<<3)>>3]}M[f+48>>3]=M[f+48>>3]+h;Nc(b,d,f+80|0,f- -64|0,f+48|0);c=H[f+60>>2];H[f+88>>2]=H[f+56>>2];H[f+92>>2]=c;c=H[f+52>>2];H[f+80>>2]=H[f+48>>2];H[f+84>>2]=c;l=H[b+24>>2];c=e|4;if(l>>>0<=c>>>0){F[b+20|0]=1}m=H[b+32>>2];bb:{if(m>>>0<=c>>>0){H[196248]=j;H[196249]=i;h=g;break bb}h=M[H[b+36>>2]+(c<<3)>>3]}c=H[f+92>>2];H[f+72>>2]=H[f+88>>2];H[f+76>>2]=c;M[f+80>>3]=M[f+80>>3]+h;c=H[f+84>>2];H[f+64>>2]=H[f+80>>2];H[f+68>>2]=c;c=e|5;if(c>>>0>=l>>>0){F[b+20|0]=1}cb:{if(c>>>0>=m>>>0){H[196248]=j;H[196249]=i;c=784992;break cb}c=H[b+36>>2]+(c<<3)|0}k=e|6;if(k>>>0>=l>>>0){F[b+20|0]=1}db:{if(k>>>0>=m>>>0){H[196248]=j;H[196249]=i;k=784992;break db}k=H[b+36>>2]+(k<<3)|0}M[f+64>>3]=M[f+64>>3]+M[c>>3];M[f+72>>3]=M[f+72>>3]+M[k>>3];c=H[f+76>>2];H[f+56>>2]=H[f+72>>2];H[f+60>>2]=c;c=H[f+68>>2];H[f+48>>2]=H[f+64>>2];H[f+52>>2]=c;c=e|7;if(c>>>0>=l>>>0){F[b+20|0]=1}eb:{if(c>>>0>=m>>>0){H[196248]=j;H[196249]=i;h=g;break eb}h=M[H[b+36>>2]+(c<<3)>>3]}M[f+56>>3]=M[f+56>>3]+h;if(!(!(l&1)|l-e>>>0>15)){if(a>>>0>=l>>>0){F[b+20|0]=1}fb:{if(a>>>0>=m>>>0){H[196248]=j;H[196249]=i;h=g;break fb}h=M[H[b+36>>2]+(a<<3)>>3]}M[f+48>>3]=M[f+48>>3]+h}Nc(b,d,f+80|0,f- -64|0,f+48|0);c=a+8|0;l=H[b+24>>2];if(c>>>0<=l>>>0){continue}break}break Ya}a=H[b+140>>2];H[f+40>>2]=H[b+136>>2];H[f+44>>2]=a;a=H[b+132>>2];H[f+32>>2]=H[b+128>>2];H[f+36>>2]=a;gb:{hb:{a=H[b+32>>2];ib:{if(!a){M[f+40>>3]=M[f+40>>3]+M[20454];c=H[f+44>>2];H[f+24>>2]=H[f+40>>2];H[f+28>>2]=c;c=H[f+36>>2];H[f+16>>2]=H[f+32>>2];H[f+20>>2]=c;i=784992;break ib}M[f+40>>3]=M[f+40>>3]+M[H[b+36>>2]>>3];c=H[f+44>>2];H[f+24>>2]=H[f+40>>2];H[f+28>>2]=c;c=H[f+36>>2];H[f+16>>2]=H[f+32>>2];H[f+20>>2]=c;if((a|0)==1){i=784992;break ib}i=H[b+36>>2]+8|0;if(a>>>0>2){break hb}}c=H[40909];e=H[40908];H[196248]=e;H[196249]=c;x(0,e|0);x(1,c|0);g=+z();break gb}g=M[H[b+36>>2]+16>>3]}h=M[i>>3];M[f+24>>3]=M[f+24>>3]+g;M[f+16>>3]=h+M[f+16>>3];c=H[f+28>>2];H[f+8>>2]=H[f+24>>2];H[f+12>>2]=c;c=H[f+20>>2];H[f>>2]=H[f+16>>2];H[f+4>>2]=c;jb:{if(a>>>0<=3){c=H[40909];e=H[40908];H[196248]=e;H[196249]=c;x(0,e|0);x(1,c|0);g=+z();break jb}g=M[H[b+36>>2]+24>>3]}M[f>>3]=M[f>>3]+g;c=12;e=4;if(l>>>0>=12){a=H[40909];j=a;m=H[40908];x(0,m|0);x(1,a|0);g=+z();i=4;while(1){e=c;Nc(b,d,f+32|0,f+16|0,f);a=H[b+140>>2];H[f+40>>2]=H[b+136>>2];H[f+44>>2]=a;a=H[b+132>>2];H[f+32>>2]=H[b+128>>2];H[f+36>>2]=a;c=H[b+24>>2];if(c>>>0<=i>>>0){F[b+20|0]=1}l=H[b+32>>2];kb:{if(l>>>0<=i>>>0){H[196248]=m;H[196249]=j;h=g;break kb}h=M[H[b+36>>2]+(i<<3)>>3]}a=H[f+44>>2];H[f+24>>2]=H[f+40>>2];H[f+28>>2]=a;M[f+32>>3]=M[f+32>>3]+h;a=H[f+36>>2];H[f+16>>2]=H[f+32>>2];H[f+20>>2]=a;a=i|1;if(a>>>0>=c>>>0){F[b+20|0]=1}lb:{if(a>>>0>=l>>>0){H[196248]=m;H[196249]=j;a=784992;break lb}a=H[b+36>>2]+(a<<3)|0}k=i|2;if(k>>>0>=c>>>0){F[b+20|0]=1}mb:{if(l>>>0<=k>>>0){H[196248]=m;H[196249]=j;k=784992;break mb}k=H[b+36>>2]+(k<<3)|0}M[f+16>>3]=M[f+16>>3]+M[a>>3];M[f+24>>3]=M[f+24>>3]+M[k>>3];a=H[f+28>>2];H[f+8>>2]=H[f+24>>2];H[f+12>>2]=a;a=H[f+20>>2];H[f>>2]=H[f+16>>2];H[f+4>>2]=a;a=i|3;if(a>>>0>=c>>>0){F[b+20|0]=1}nb:{if(a>>>0>=l>>>0){H[196248]=m;H[196249]=j;h=g;break nb}h=M[H[b+36>>2]+(a<<3)>>3]}M[f+8>>3]=M[f+8>>3]+h;Nc(b,d,f+32|0,f+16|0,f);a=H[f+12>>2];H[f+40>>2]=H[f+8>>2];H[f+44>>2]=a;a=H[f+4>>2];H[f+32>>2]=H[f>>2];H[f+36>>2]=a;l=H[b+24>>2];c=i+4|0;if(l>>>0<=c>>>0){F[b+20|0]=1}a=H[b+32>>2];ob:{if(c>>>0>=a>>>0){H[196248]=m;H[196249]=j;h=g;break ob}h=M[H[b+36>>2]+(c<<3)>>3]}M[f+40>>3]=M[f+40>>3]+h;c=H[f+44>>2];H[f+24>>2]=H[f+40>>2];H[f+28>>2]=c;c=H[f+36>>2];H[f+16>>2]=H[f+32>>2];H[f+20>>2]=c;c=i+5|0;if(c>>>0>=l>>>0){F[b+20|0]=1}pb:{if(a>>>0<=c>>>0){H[196248]=m;H[196249]=j;c=784992;break pb}c=H[b+36>>2]+(c<<3)|0}k=i+6|0;if(k>>>0>=l>>>0){F[b+20|0]=1}qb:{if(a>>>0<=k>>>0){H[196248]=m;H[196249]=j;k=784992;break qb}k=H[b+36>>2]+(k<<3)|0}M[f+16>>3]=M[f+16>>3]+M[c>>3];M[f+24>>3]=M[f+24>>3]+M[k>>3];c=H[f+28>>2];H[f+8>>2]=H[f+24>>2];H[f+12>>2]=c;c=H[f+20>>2];H[f>>2]=H[f+16>>2];H[f+4>>2]=c;c=i+7|0;if(c>>>0>=l>>>0){F[b+20|0]=1}rb:{if(a>>>0<=c>>>0){H[196248]=m;H[196249]=j;h=g;break rb}h=M[H[b+36>>2]+(c<<3)>>3]}M[f>>3]=M[f>>3]+h;i=e;c=e+8|0;if(l>>>0>=c>>>0){continue}break}}if(e>>>0>>0){sb:{if(a>>>0<=e>>>0){a=H[40909];c=H[40908];H[196248]=c;H[196249]=a;x(0,c|0);x(1,a|0);g=+z();break sb}g=M[H[b+36>>2]+(e<<3)>>3]}M[f+8>>3]=M[f+8>>3]+g}Nc(b,d,f+32|0,f+16|0,f)}xb=f+96|0;break b}i=c;a=0;d=xb-96|0;xb=d;H[d+88>>2]=0;H[d+92>>2]=0;H[d+80>>2]=0;H[d+84>>2]=0;H[d+72>>2]=0;H[d+76>>2]=0;H[d+64>>2]=0;H[d+68>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;m=H[b+24>>2];tb:{if(!(m&4)){if(m>>>0<8){break tb}c=H[40909];f=c;l=H[40908];x(0,l|0);x(1,c|0);g=+z();c=8;while(1){e=a;a=c;c=H[b+140>>2];H[d+88>>2]=H[b+136>>2];H[d+92>>2]=c;c=H[b+132>>2];H[d+80>>2]=H[b+128>>2];H[d+84>>2]=c;if(e>>>0>=m>>>0){F[b+20|0]=1}j=H[b+32>>2];ub:{if(j>>>0<=e>>>0){H[196248]=l;H[196249]=f;h=g;break ub}h=M[H[b+36>>2]+(e<<3)>>3]}c=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=c;M[d+80>>3]=M[d+80>>3]+h;c=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=c;c=e|1;if(c>>>0>=m>>>0){F[b+20|0]=1}vb:{if(c>>>0>=j>>>0){H[196248]=l;H[196249]=f;c=784992;break vb}c=H[b+36>>2]+(c<<3)|0}k=e|2;if(k>>>0>=m>>>0){F[b+20|0]=1}wb:{if(j>>>0<=k>>>0){H[196248]=l;H[196249]=f;k=784992;break wb}k=H[b+36>>2]+(k<<3)|0}M[d+64>>3]=M[d+64>>3]+M[c>>3];M[d+72>>3]=M[d+72>>3]+M[k>>3];c=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=c;c=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=c;c=e|3;if(c>>>0>=m>>>0){F[b+20|0]=1}xb:{if(c>>>0>=j>>>0){H[196248]=l;H[196249]=f;h=g;break xb}h=M[H[b+36>>2]+(c<<3)>>3]}M[d+56>>3]=M[d+56>>3]+h;Nc(b,i,d+80|0,d- -64|0,d+48|0);c=H[d+60>>2];H[d+88>>2]=H[d+56>>2];H[d+92>>2]=c;c=H[d+52>>2];H[d+80>>2]=H[d+48>>2];H[d+84>>2]=c;j=H[b+24>>2];c=e|4;if(j>>>0<=c>>>0){F[b+20|0]=1}m=H[b+32>>2];yb:{if(m>>>0<=c>>>0){H[196248]=l;H[196249]=f;h=g;break yb}h=M[H[b+36>>2]+(c<<3)>>3]}M[d+88>>3]=M[d+88>>3]+h;c=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=c;c=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=c;c=e|5;if(c>>>0>=j>>>0){F[b+20|0]=1}zb:{if(c>>>0>=m>>>0){H[196248]=l;H[196249]=f;c=784992;break zb}c=H[b+36>>2]+(c<<3)|0}k=e|6;if(k>>>0>=j>>>0){F[b+20|0]=1}Ab:{if(k>>>0>=m>>>0){H[196248]=l;H[196249]=f;k=784992;break Ab}k=H[b+36>>2]+(k<<3)|0}M[d+64>>3]=M[d+64>>3]+M[c>>3];M[d+72>>3]=M[d+72>>3]+M[k>>3];c=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=c;c=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=c;c=e|7;if(c>>>0>=j>>>0){F[b+20|0]=1}Bb:{if(c>>>0>=m>>>0){H[196248]=l;H[196249]=f;h=g;break Bb}h=M[H[b+36>>2]+(c<<3)>>3]}M[d+48>>3]=M[d+48>>3]+h;if(!(!(j&1)|j-e>>>0>15)){if(a>>>0>=j>>>0){F[b+20|0]=1}Cb:{if(a>>>0>=m>>>0){H[196248]=l;H[196249]=f;h=g;break Cb}h=M[H[b+36>>2]+(a<<3)>>3]}M[d+56>>3]=M[d+56>>3]+h}Nc(b,i,d+80|0,d- -64|0,d+48|0);c=a+8|0;m=H[b+24>>2];if(c>>>0<=m>>>0){continue}break}break tb}a=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=a;a=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=a;Db:{Eb:{l=H[b+32>>2];Fb:{if(!l){M[d+32>>3]=M[d+32>>3]+M[20454];a=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=a;a=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=a;e=784992;break Fb}M[d+32>>3]=M[d+32>>3]+M[H[b+36>>2]>>3];a=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=a;a=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=a;if((l|0)==1){e=784992;break Fb}e=H[b+36>>2]+8|0;if(l>>>0>2){break Eb}}a=H[40909];c=H[40908];H[196248]=c;H[196249]=a;x(0,c|0);x(1,a|0);g=+z();break Db}g=M[H[b+36>>2]+16>>3]}h=M[e>>3];M[d+24>>3]=M[d+24>>3]+g;M[d+16>>3]=h+M[d+16>>3];a=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=a;a=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=a;Gb:{if(l>>>0<=3){a=H[40909];c=H[40908];H[196248]=c;H[196249]=a;x(0,c|0);x(1,a|0);g=+z();break Gb}g=M[H[b+36>>2]+24>>3]}M[d+8>>3]=M[d+8>>3]+g;c=12;a=4;if(m>>>0>=12){a=H[40909];f=a;j=H[40908];x(0,j|0);x(1,a|0);g=+z();e=4;while(1){a=c;Nc(b,i,d+32|0,d+16|0,d);c=H[b+140>>2];H[d+40>>2]=H[b+136>>2];H[d+44>>2]=c;c=H[b+132>>2];H[d+32>>2]=H[b+128>>2];H[d+36>>2]=c;l=H[b+24>>2];if(l>>>0<=e>>>0){F[b+20|0]=1}m=H[b+32>>2];Hb:{if(m>>>0<=e>>>0){H[196248]=j;H[196249]=f;h=g;break Hb}h=M[H[b+36>>2]+(e<<3)>>3]}M[d+40>>3]=M[d+40>>3]+h;c=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=c;c=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=c;c=e|1;if(c>>>0>=l>>>0){F[b+20|0]=1}Ib:{if(c>>>0>=m>>>0){H[196248]=j;H[196249]=f;c=784992;break Ib}c=H[b+36>>2]+(c<<3)|0}k=e|2;if(k>>>0>=l>>>0){F[b+20|0]=1}Jb:{if(k>>>0>=m>>>0){H[196248]=j;H[196249]=f;k=784992;break Jb}k=H[b+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[c>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];c=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=c;c=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=c;c=e|3;if(c>>>0>=l>>>0){F[b+20|0]=1}Kb:{if(c>>>0>=m>>>0){H[196248]=j;H[196249]=f;h=g;break Kb}h=M[H[b+36>>2]+(c<<3)>>3]}M[d>>3]=M[d>>3]+h;Nc(b,i,d+32|0,d+16|0,d);c=H[d+12>>2];H[d+40>>2]=H[d+8>>2];H[d+44>>2]=c;c=H[d+4>>2];H[d+32>>2]=H[d>>2];H[d+36>>2]=c;m=H[b+24>>2];c=e+4|0;if(m>>>0<=c>>>0){F[b+20|0]=1}l=H[b+32>>2];Lb:{if(c>>>0>=l>>>0){H[196248]=j;H[196249]=f;h=g;break Lb}h=M[H[b+36>>2]+(c<<3)>>3]}c=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=c;M[d+32>>3]=M[d+32>>3]+h;c=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=c;c=e+5|0;if(c>>>0>=m>>>0){F[b+20|0]=1}Mb:{if(c>>>0>=l>>>0){H[196248]=j;H[196249]=f;c=784992;break Mb}c=H[b+36>>2]+(c<<3)|0}k=e+6|0;if(k>>>0>=m>>>0){F[b+20|0]=1}Nb:{if(l>>>0<=k>>>0){H[196248]=j;H[196249]=f;k=784992;break Nb}k=H[b+36>>2]+(k<<3)|0}M[d+16>>3]=M[d+16>>3]+M[c>>3];M[d+24>>3]=M[d+24>>3]+M[k>>3];c=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=c;c=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=c;c=e+7|0;if(c>>>0>=m>>>0){F[b+20|0]=1}Ob:{if(c>>>0>=l>>>0){H[196248]=j;H[196249]=f;h=g;break Ob}h=M[H[b+36>>2]+(c<<3)>>3]}M[d+8>>3]=M[d+8>>3]+h;e=a;c=a+8|0;if(m>>>0>=c>>>0){continue}break}}if(a>>>0>>0){Pb:{if(a>>>0>=l>>>0){a=H[40909];c=H[40908];H[196248]=c;H[196249]=a;x(0,c|0);x(1,a|0);g=+z();break Pb}g=M[H[b+36>>2]+(a<<3)>>3]}M[d>>3]=M[d>>3]+g}Nc(b,i,d+32|0,d+16|0,d)}xb=d+96|0;break b}a=xb-96|0;xb=a;Qb:{if(H[b+24>>2]==7){e=H[b+140>>2];H[a+88>>2]=H[b+136>>2];H[a+92>>2]=e;e=H[b+132>>2];H[a+80>>2]=H[b+128>>2];H[a+84>>2]=e;Rb:{Sb:{e=H[b+32>>2];Tb:{if(!e){M[a+80>>3]=M[a+80>>3]+M[20454];i=H[a+92>>2];H[a+72>>2]=H[a+88>>2];H[a+76>>2]=i;i=H[a+84>>2];H[a+64>>2]=H[a+80>>2];H[a+68>>2]=i;i=784992;break Tb}M[a+80>>3]=M[a+80>>3]+M[H[b+36>>2]>>3];i=H[a+92>>2];H[a+72>>2]=H[a+88>>2];H[a+76>>2]=i;i=H[a+84>>2];H[a+64>>2]=H[a+80>>2];H[a+68>>2]=i;if((e|0)==1){i=784992;break Tb}i=H[b+36>>2]+8|0;if(e>>>0>2){break Sb}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break Rb}g=M[H[b+36>>2]+16>>3]}h=M[i>>3];M[a+72>>3]=M[a+72>>3]+g;M[a+64>>3]=h+M[a+64>>3];i=H[a+76>>2];H[a+56>>2]=H[a+72>>2];H[a+60>>2]=i;i=H[a+68>>2];H[a+48>>2]=H[a+64>>2];H[a+52>>2]=i;Ub:{Vb:{Wb:{Xb:{Yb:{if(e>>>0<=3){i=H[40909];d=H[40908];H[196248]=d;H[196249]=i;g=M[a+48>>3];x(0,d|0);x(1,i|0);C=a,D=g+ +z(),M[C+48>>3]=D;i=H[a+60>>2];H[a+40>>2]=H[a+56>>2];H[a+44>>2]=i;i=H[a+52>>2];H[a+32>>2]=H[a+48>>2];H[a+36>>2]=i;break Yb}M[a+48>>3]=M[a+48>>3]+M[H[b+36>>2]+24>>3];i=H[a+60>>2];H[a+40>>2]=H[a+56>>2];H[a+44>>2]=i;i=H[a+52>>2];H[a+32>>2]=H[a+48>>2];H[a+36>>2]=i;if((e|0)!=4){break Xb}}M[a+32>>3]=M[a+32>>3]+M[20454];i=H[a+44>>2];H[a+24>>2]=H[a+40>>2];H[a+28>>2]=i;i=H[a+36>>2];H[a+16>>2]=H[a+32>>2];H[a+20>>2]=i;break Wb}M[a+32>>3]=M[a+32>>3]+M[H[b+36>>2]+32>>3];i=H[a+44>>2];H[a+24>>2]=H[a+40>>2];H[a+28>>2]=i;i=H[a+36>>2];H[a+16>>2]=H[a+32>>2];H[a+20>>2]=i;if(e>>>0>5){break Vb}}i=H[40909];d=H[40908];H[196248]=d;H[196249]=i;x(0,d|0);x(1,i|0);g=+z();break Ub}g=M[H[b+36>>2]+40>>3]}i=H[a+92>>2];d=H[a+88>>2];H[a+24>>2]=d;H[a+28>>2]=i;M[a+16>>3]=M[a+16>>3]+g;H[a+8>>2]=d;H[a+12>>2]=i;i=H[a+20>>2];H[a>>2]=H[a+16>>2];H[a+4>>2]=i;Zb:{if(e>>>0<=6){e=H[40909];i=H[40908];H[196248]=i;H[196249]=e;x(0,i|0);x(1,e|0);g=+z();break Zb}g=M[H[b+36>>2]+48>>3]}M[a>>3]=M[a>>3]+g;Nc(b,c,a+80|0,a- -64|0,a+48|0);Nc(b,c,a+32|0,a+16|0,a);break Qb}F[b+40|0]=1}xb=a+96|0;break b}a=xb-96|0;xb=a;_b:{if(H[b+24>>2]==13){e=H[b+140>>2];H[a+88>>2]=H[b+136>>2];H[a+92>>2]=e;e=H[b+132>>2];H[a+80>>2]=H[b+128>>2];H[a+84>>2]=e;$b:{ac:{i=H[b+32>>2];bc:{if(!i){e=784992;break bc}e=H[b+36>>2];if((i|0)!=1){break ac}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break $b}g=M[H[b+36>>2]+8>>3]}h=M[e>>3];M[a+88>>3]=M[a+88>>3]+g;M[a+80>>3]=h+M[a+80>>3];e=H[a+92>>2];H[a+72>>2]=H[a+88>>2];H[a+76>>2]=e;e=H[a+84>>2];H[a+64>>2]=H[a+80>>2];H[a+68>>2]=e;cc:{dc:{ec:{if(i>>>0<3){e=784992;break ec}e=H[b+36>>2]+16|0;if((i|0)!=3){break dc}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break cc}g=M[H[b+36>>2]+24>>3]}h=M[e>>3];M[a+72>>3]=M[a+72>>3]+g;M[a+64>>3]=h+M[a+64>>3];e=H[a+76>>2];H[a+56>>2]=H[a+72>>2];H[a+60>>2]=e;e=H[a+68>>2];H[a+48>>2]=H[a+64>>2];H[a+52>>2]=e;fc:{gc:{hc:{if(i>>>0<5){e=784992;break hc}e=H[b+36>>2]+32|0;if((i|0)!=5){break gc}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break fc}g=M[H[b+36>>2]+40>>3]}h=M[e>>3];M[a+56>>3]=M[a+56>>3]+g;M[a+48>>3]=h+M[a+48>>3];e=H[a+60>>2];H[a+40>>2]=H[a+56>>2];H[a+44>>2]=e;e=H[a+52>>2];H[a+32>>2]=H[a+48>>2];H[a+36>>2]=e;ic:{jc:{kc:{if(i>>>0<7){e=784992;break kc}e=H[b+36>>2]+48|0;if((i|0)!=7){break jc}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break ic}g=M[H[b+36>>2]+56>>3]}h=M[e>>3];M[a+40>>3]=M[a+40>>3]+g;M[a+32>>3]=h+M[a+32>>3];e=H[a+44>>2];H[a+24>>2]=H[a+40>>2];H[a+28>>2]=e;e=H[a+36>>2];H[a+16>>2]=H[a+32>>2];H[a+20>>2]=e;lc:{mc:{nc:{if(i>>>0<9){e=784992;break nc}e=H[b+36>>2]- -64|0;if((i|0)!=9){break mc}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break lc}g=M[H[b+36>>2]+72>>3]}h=M[e>>3];M[a+24>>3]=M[a+24>>3]+g;M[a+16>>3]=h+M[a+16>>3];e=H[a+28>>2];H[a+8>>2]=H[a+24>>2];H[a+12>>2]=e;e=H[a+20>>2];H[a>>2]=H[a+16>>2];H[a+4>>2]=e;oc:{pc:{qc:{if(i>>>0<11){e=784992;break qc}e=H[b+36>>2]+80|0;if((i|0)!=11){break pc}}i=H[40909];d=H[40908];H[196248]=d;H[196249]=i;x(0,d|0);x(1,i|0);g=+z();break oc}g=M[H[b+36>>2]+88>>3]}h=M[e>>3];M[a+8>>3]=M[a+8>>3]+g;M[a>>3]=h+M[a>>3];Nc(b,c,a+80|0,a- -64|0,a+48|0);Nc(b,c,a+32|0,a+16|0,a);break _b}F[b+40|0]=1}xb=a+96|0;break b}a=xb-96|0;xb=a;rc:{if(H[b+24>>2]==9){e=H[b+140>>2];H[a+88>>2]=H[b+136>>2];H[a+92>>2]=e;e=H[b+132>>2];H[a+80>>2]=H[b+128>>2];H[a+84>>2]=e;sc:{tc:{i=H[b+32>>2];uc:{if(!i){e=784992;break uc}e=H[b+36>>2];if((i|0)!=1){break tc}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break sc}g=M[H[b+36>>2]+8>>3]}h=M[e>>3];M[a+88>>3]=M[a+88>>3]+g;M[a+80>>3]=h+M[a+80>>3];e=H[a+92>>2];H[a+72>>2]=H[a+88>>2];H[a+76>>2]=e;e=H[a+84>>2];H[a+64>>2]=H[a+80>>2];H[a+68>>2]=e;vc:{wc:{xc:{if(i>>>0<3){e=784992;break xc}e=H[b+36>>2]+16|0;if((i|0)!=3){break wc}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break vc}g=M[H[b+36>>2]+24>>3]}h=M[e>>3];M[a+72>>3]=M[a+72>>3]+g;M[a+64>>3]=h+M[a+64>>3];e=H[a+76>>2];H[a+56>>2]=H[a+72>>2];H[a+60>>2]=e;e=H[a+68>>2];H[a+48>>2]=H[a+64>>2];H[a+52>>2]=e;yc:{zc:{Ac:{Bc:{Cc:{if(i>>>0<=4){M[a+48>>3]=M[a+48>>3]+M[20454];e=H[a+60>>2];H[a+40>>2]=H[a+56>>2];H[a+44>>2]=e;e=H[a+52>>2];H[a+32>>2]=H[a+48>>2];H[a+36>>2]=e;break Cc}M[a+48>>3]=M[a+48>>3]+M[H[b+36>>2]+32>>3];e=H[a+60>>2];H[a+40>>2]=H[a+56>>2];H[a+44>>2]=e;e=H[a+52>>2];H[a+32>>2]=H[a+48>>2];H[a+36>>2]=e;if((i|0)!=5){break Bc}}e=H[40909];d=H[40908];H[196248]=d;H[196249]=e;g=M[a+32>>3];x(0,d|0);x(1,e|0);C=a,D=g+ +z(),M[C+32>>3]=D;e=H[a+44>>2];H[a+24>>2]=H[a+40>>2];H[a+28>>2]=e;e=H[a+36>>2];H[a+16>>2]=H[a+32>>2];H[a+20>>2]=e;e=784992;break Ac}M[a+32>>3]=M[a+32>>3]+M[H[b+36>>2]+40>>3];e=H[a+44>>2];H[a+24>>2]=H[a+40>>2];H[a+28>>2]=e;e=H[a+36>>2];H[a+16>>2]=H[a+32>>2];H[a+20>>2]=e;if(i>>>0<7){e=784992;break Ac}e=H[b+36>>2]+48|0;if((i|0)!=7){break zc}}d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);g=+z();break yc}g=M[H[b+36>>2]+56>>3]}h=M[e>>3];M[a+24>>3]=M[a+24>>3]+g;M[a+16>>3]=h+M[a+16>>3];e=H[a+28>>2];H[a+8>>2]=H[a+24>>2];H[a+12>>2]=e;e=H[a+20>>2];H[a>>2]=H[a+16>>2];H[a+4>>2]=e;Dc:{if(i>>>0<=8){e=H[40909];i=H[40908];H[196248]=i;H[196249]=e;x(0,i|0);x(1,e|0);g=+z();break Dc}g=M[H[b+36>>2]+64>>3]}M[a>>3]=M[a>>3]+g;e=H[b+140>>2];H[a+8>>2]=H[b+136>>2];H[a+12>>2]=e;Nc(b,c,a+80|0,a- -64|0,a+48|0);Nc(b,c,a+32|0,a+16|0,a);break rc}F[b+40|0]=1}xb=a+96|0;break b}i=c;d=xb-96|0;xb=d;Ec:{Fc:{Gc:{Hc:{Ic:{if(H[b+24>>2]==11){a=H[b+36>>2];f=H[40908];j=H[40909];u=784992;c=784992;Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{k=H[b+32>>2];switch(k|0){case 0:break Qc;case 1:break Rc;default:break Pc}}c=a}H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);h=+z()+0;g=M[c>>3]+0;e=0;break Oc}h=M[a+8>>3]+0;g=M[a>>3]+0;e=1;if(k>>>0<3){break Oc}if((k|0)!=3){break Nc}u=a+16|0;m=1;e=1}H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);h=h+ +z();g=g+M[u>>3];c=784992;break Mc}h=h+M[a+24>>3];g=g+M[a+16>>3];if(k>>>0<5){l=1;e=1;m=1;c=784992;break Mc}if((k|0)!=5){break Lc}l=1;e=1;m=1;q=1;c=a+32|0}H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);h=h+ +z();g=g+M[c>>3];c=784992;break Kc}h=h+M[a+40>>3];g=g+M[a+32>>3];if(k>>>0<7){v=1;l=1;e=1;m=1;q=1;c=784992;break Kc}if((k|0)!=7){break Jc}v=1;l=1;e=1;m=1;q=1;w=1;c=a+48|0}H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);n=h+ +z();g=g+M[c>>3];c=784992;break Ic}n=h+M[a+56>>3];g=g+M[a+48>>3];if(k>>>0<9){y=1;v=1;l=1;e=1;m=1;q=1;w=1;break Ic}if((k|0)==9){c=a- -64|0;y=1;v=1;l=1;e=1;m=1;q=1;w=1;B=1;break Ic}h=M[a+64>>3];o=M[a+72>>3];c=H[b+140>>2];H[d+88>>2]=H[b+136>>2];H[d+92>>2]=c;c=H[b+132>>2];H[d+80>>2]=H[b+128>>2];H[d+84>>2]=c;A=b+128|0;n=n+o;g=g+h;u=1;y=1;v=1;l=1;m=1;q=1;w=1;B=1;c=a;break Hc}F[b+40|0]=1;break Ec}u=0;H[196248]=f;H[196249]=j;o=M[c>>3];c=H[b+140>>2];H[d+88>>2]=H[b+136>>2];H[d+92>>2]=c;c=H[b+132>>2];H[d+80>>2]=H[b+128>>2];H[d+84>>2]=c;A=b+128|0;x(0,f|0);x(1,j|0);h=+z();n=n+h;g=g+o;if(!k){H[196248]=f;H[196249]=j;c=784992;if(e){break Hc}break Gc}c=a;if(!e){break Gc}c=a}h=M[a+8>>3];break Fc}H[196248]=f;H[196249]=j}o=M[c>>3];M[d+88>>3]=M[d+88>>3]+h;M[d+80>>3]=o+M[d+80>>3];c=H[d+92>>2];H[d+72>>2]=H[d+88>>2];H[d+76>>2]=c;c=H[d+84>>2];H[d+64>>2]=H[d+80>>2];H[d+68>>2]=c;Sc:{if(!m){H[196248]=f;H[196249]=j;c=784992;break Sc}c=a+16|0}Tc:{if(!l){H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);h=+z();break Tc}h=M[a+24>>3]}o=M[c>>3];M[d+72>>3]=M[d+72>>3]+h;M[d+64>>3]=o+M[d+64>>3];c=H[d+76>>2];H[d+56>>2]=H[d+72>>2];H[d+60>>2]=c;c=H[d+68>>2];H[d+48>>2]=H[d+64>>2];H[d+52>>2]=c;Uc:{if(!q){H[196248]=f;H[196249]=j;c=784992;break Uc}c=a+32|0}Vc:{if(!v){H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);h=+z();break Vc}h=M[a+40>>3]}o=M[c>>3];M[d+56>>3]=M[d+56>>3]+h;M[d+48>>3]=o+M[d+48>>3];c=H[d+60>>2];H[d+40>>2]=H[d+56>>2];H[d+44>>2]=c;c=H[d+52>>2];H[d+32>>2]=H[d+48>>2];H[d+36>>2]=c;Wc:{if(!w){H[196248]=f;H[196249]=j;c=784992;break Wc}c=a+48|0}Xc:{if(!y){H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);h=+z();break Xc}h=M[a+56>>3]}o=M[c>>3];M[d+40>>3]=M[d+40>>3]+h;M[d+32>>3]=o+M[d+32>>3];c=H[d+44>>2];H[d+24>>2]=H[d+40>>2];H[d+28>>2]=c;c=H[d+36>>2];H[d+16>>2]=H[d+32>>2];H[d+20>>2]=c;Yc:{if(!B){H[196248]=f;H[196249]=j;c=784992;break Yc}c=a- -64|0}Zc:{if(!u){H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);h=+z();break Zc}h=M[a+72>>3]}o=M[c>>3];M[d+24>>3]=M[d+24>>3]+h;M[d+16>>3]=o+M[d+16>>3];c=H[d+28>>2];H[d+8>>2]=H[d+24>>2];H[d+12>>2]=c;c=H[d+20>>2];H[d>>2]=H[d+16>>2];H[d+4>>2]=c;_c:{if(P(g)>P(n)){$c:{if(k>>>0<=10){H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);g=+z();break $c}g=M[a+80>>3]}M[d>>3]=M[d>>3]+g;a=H[b+140>>2];H[d+8>>2]=H[b+136>>2];H[d+12>>2]=a;break _c}c=H[A+4>>2];H[d>>2]=H[A>>2];H[d+4>>2]=c;ad:{if(k>>>0<=10){H[196248]=f;H[196249]=j;x(0,f|0);x(1,j|0);g=+z();break ad}g=M[a+80>>3]}M[d+8>>3]=M[d+8>>3]+g}Nc(b,i,d+80|0,d- -64|0,d+48|0);Nc(b,i,d+32|0,d+16|0,d)}xb=d+96|0;break b}Qi(a,b)}return}c=H[b+24>>2];a=c&1;break f}F[b+20|0]=1;a=0;e=H[40909];d=H[40908];H[196248]=d;H[196249]=e;x(0,d|0);x(1,e|0);h=+z()}o=M[i>>3];F[c|0]=0;M[b+136>>3]=n+o;break d}if(!(!a|!c)){bd:{if(!H[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;break bd}a=H[b+36>>2];e=H[a>>2];a=H[a+4>>2]}F[b+145|0]=1;H[b+152>>2]=e;H[b+156>>2]=a}F[b+144|0]=1}H[b+148>>2]=0;a=H[b+24>>2];H[b+24>>2]=0;H[b+76>>2]=H[b+76>>2]+(a>>>1|0);return}M[b+128>>3]=g+h}if(!I[b+73|0]){if(!I[b+74|0]){F[b+74|0]=1;a=H[b+80>>2]+(a>>>1|0)|0;H[b+80>>2]=a;H[b+84>>2]=(a+H[b+76>>2]|0)+7>>>3}F[b+73|0]=1}}H[b+24>>2]=0;H[b+148>>2]=0;return}F[b+16|0]=1;H[b+12>>2]=a}function TX(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;g=xb-416|0;xb=g;a:{b:{c:{d:{e:{h=H[a+72>>2];f:{if(!h){break f}if(!(zb[H[H[h>>2]+32>>2]](h)|0)){break f}MA(g+400|0,b);h=I[g+411|0];b=h<<24>>24;if((b|0)<0?H[g+404>>2]:h){H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{if((b|0)!=1){H[g+392>>2]=0;H[g+384>>2]=0;H[g+388>>2]=0;j=M[c>>3];m=M[c+8>>3];b=H[a+72>>2];h=H[H[b>>2]+44>>2];H[197455]=0;b=aa(h|0,b|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break ta}if(!(!(b&1)|M[c>>3]!=0|M[c+8>>3]!=0)){b=H[a+72>>2];c=H[H[b>>2]+60>>2];H[197455]=0;ba(c|0,g+56|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break sa}j=M[g+56>>3];b=H[a+72>>2];c=H[H[b>>2]+60>>2];H[197455]=0;ba(c|0,g+56|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break ra}m=M[g+64>>3]}H[g+352>>2]=0;H[g+356>>2]=0;H[g+376>>2]=0;H[g+380>>2]=0;H[g+344>>2]=0;H[g+348>>2]=0;H[g+336>>2]=0;H[g+340>>2]=1072693248;H[g+368>>2]=0;H[g+372>>2]=0;H[g+360>>2]=0;H[g+364>>2]=1072693248;b=H[a+72>>2];c=H[H[b>>2]+68>>2];H[197455]=0;b=da(c|0,b|0,2)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ma}M[g+336>>3]=M[b>>3];M[g+344>>3]=M[b+8>>3];M[g+352>>3]=M[b+16>>3];M[g+360>>3]=M[b+24>>3];M[g+368>>3]=M[b+32>>3];M[g+376>>3]=M[b+40>>3];b=H[a+72>>2];c=H[H[b>>2]+48>>2];H[197455]=0;p=aa(c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break la}if((p|0)!=2){break na}b=H[a+72>>2];c=H[H[b>>2]+52>>2];H[197455]=0;b=aa(c|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ka}H[197455]=0;ba(1778,g+240|0,b&255);b=H[197455];H[197455]=0;if((b|0)==1){break ka}H[197455]=0;b=ca(1758,g+240|0,0,428508)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ja}H[g+264>>2]=H[b+8>>2];c=H[b+4>>2];H[g+256>>2]=H[b>>2];H[g+260>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,g+256|0,428528)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[g+280>>2]=H[b+8>>2];c=H[b+4>>2];H[g+272>>2]=H[b>>2];H[g+276>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;b=H[a+72>>2];c=H[H[b>>2]+52>>2];H[197455]=0;b=aa(c|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ha}H[197455]=0;ba(1778,g+224|0,b>>>8&255);b=H[197455];H[197455]=0;if((b|0)==1){break ha}H[197455]=0;b=I[g+235|0];c=b<<24>>24<0;b=ca(1759,g+272|0,(c?H[g+224>>2]:g+224|0)|0,(c?H[g+228>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ga}H[g+296>>2]=H[b+8>>2];c=H[b+4>>2];H[g+288>>2]=H[b>>2];H[g+292>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,g+288|0,428528)|0;c=H[197455];H[197455]=0;if((c|0)==1){break fa}H[g+312>>2]=H[b+8>>2];c=H[b+4>>2];H[g+304>>2]=H[b>>2];H[g+308>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;b=H[a+72>>2];c=H[H[b>>2]+52>>2];H[197455]=0;b=aa(c|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ea}H[197455]=0;ba(1778,g+208|0,b>>>16&255);b=H[197455];H[197455]=0;if((b|0)==1){break ea}H[197455]=0;b=I[g+219|0];c=b<<24>>24<0;b=ca(1759,g+304|0,(c?H[g+208>>2]:g+208|0)|0,(c?H[g+212>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break da}c=g- -64|0;H[c>>2]=H[b+8>>2];h=H[b+4>>2];H[g+56>>2]=H[b>>2];H[g+60>>2]=h;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,g+56|0,41);b=H[197455];H[197455]=0;if((b|0)==1){break ca}H[g+328>>2]=H[c>>2];H[c>>2]=0;b=H[g+60>>2];H[g+320>>2]=H[g+56>>2];H[g+324>>2]=b;H[g+56>>2]=0;H[g+60>>2]=0;if(F[g+219|0]<0){Kb(H[g+208>>2])}if(F[g+315|0]<0){Kb(H[g+304>>2])}if(F[g+299|0]<0){Kb(H[g+288>>2])}if(F[g+235|0]<0){Kb(H[g+224>>2])}if(F[g+283|0]<0){Kb(H[g+272>>2])}if(F[g+267|0]<0){Kb(H[g+256>>2])}if(F[g+251|0]<0){Kb(H[g+240>>2])}F[g+67|0]=1;H[197455]=0;Mb(g+56|0,428332,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[g+60>>2]=0;H[g+312>>2]=0;H[g+304>>2]=0;H[g+308>>2]=0;b=H[a+76>>2];H[197455]=0;ga(1754,b|0,g+56|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break W}if(F[g+67|0]<0){Kb(H[g+56>>2])}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break V}H[g+304>>2]=b;H[g+308>>2]=4;H[g+312>>2]=-2147483640;H[197455]=0;Mb(b,428540,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;b=H[d>>2];H[197455]=0;fa(1756,g+272|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break U}F[g+67|0]=1;H[197455]=0;Mb(g+56|0,428560,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=H[g+280>>2];H[g+280>>2]=0;H[g+76>>2]=b;H[g+60>>2]=0;b=H[g+272>>2];c=H[g+276>>2];H[g+272>>2]=0;H[g+276>>2]=0;H[g+68>>2]=b;H[g+72>>2]=c;b=H[d+4>>2];H[197455]=0;fa(1756,g+256|0,+(b|0),-1);c=H[197455];H[197455]=0;b=1;h=g+80|0;if((c|0)==1){break T}F[g+91|0]=1;H[197455]=0;Mb(h,428568,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[g+84>>2]=0;b=H[g+260>>2];H[g+92>>2]=H[g+256>>2];H[g+96>>2]=b;b=H[g+264>>2];H[g+264>>2]=0;H[g+100>>2]=b;H[g+256>>2]=0;H[g+260>>2]=0;b=H[d>>2];c=H[d+8>>2];H[197455]=0;fa(1756,g+240|0,+(c-b|0),-1);c=H[197455];H[197455]=0;b=1;h=g+104|0;if((c|0)==1){break S}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break R}H[g+108>>2]=5;H[g+112>>2]=-2147483640;H[g+104>>2]=b;H[197455]=0;Mb(b,428576,5);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+20>>2]=0;H[g+124>>2]=H[g+248>>2];b=H[g+244>>2];H[g+116>>2]=H[g+240>>2];H[g+120>>2]=b;H[g+248>>2]=0;H[g+240>>2]=0;H[g+244>>2]=0;b=H[d+4>>2];c=H[d+12>>2];H[197455]=0;fa(1756,g+224|0,+(c-b|0),-1);b=H[197455];H[197455]=0;h=g+128|0;if((b|0)==1){break Q}H[197455]=0;c=aa(899,32)|0;d=H[197455];H[197455]=0;b=1;if((d|0)==1){break P}H[g+132>>2]=6;H[g+136>>2]=-2147483640;H[g+128>>2]=c;H[197455]=0;Mb(c,428600,6);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+24>>2]=0;H[g+148>>2]=H[g+232>>2];c=H[g+228>>2];H[g+140>>2]=H[g+224>>2];H[g+144>>2]=c;H[g+232>>2]=0;H[197455]=0;H[g+224>>2]=0;H[g+228>>2]=0;h=g+152|0;ca(2917,h|0,428628,g+320|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break P}H[197455]=0;h=g+176|0;c=ca(2918,h|0,428648,428676)|0;d=H[197455];H[197455]=0;if((d|0)==1){break P}H[g+204>>2]=6;H[197455]=0;H[g+200>>2]=g+56;b=H[g+204>>2];H[g+16>>2]=H[g+200>>2];H[g+20>>2]=b;d=da(1763,g+288|0,g+16|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break O}F[g+219|0]=0;H[g+208>>2]=0;H[197455]=0;ka(1767,a|0,g+304|0,d|0,g+208|0);b=H[197455];H[197455]=0;if((b|0)==1){break N}if(F[g+219|0]<0){Kb(H[g+208>>2])}b=H[d>>2];if(!b){break oa}h=H[d+4>>2];if((b|0)!=(h|0)){break qa}c=b;break pa}f=$()|0;_()|0;break b}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}while(1){if(F[h-1|0]<0){Kb(H[h-12>>2])}c=h-24|0;if(F[h-13|0]<0){Kb(H[c>>2])}h=c;if((c|0)!=(b|0)){continue}break}c=H[d>>2]}H[d+4>>2]=b;Kb(c)}if(F[g+199|0]<0){Kb(H[g+188>>2])}if(F[g+187|0]<0){Kb(H[g+176>>2])}if(F[g+175|0]<0){Kb(H[g+164>>2])}if(F[g+163|0]<0){Kb(H[g+152>>2])}if(F[g+151|0]<0){Kb(H[g+140>>2])}if(F[g+139|0]<0){Kb(H[g+128>>2])}if(F[g+127|0]<0){Kb(H[g+116>>2])}if(F[g+115|0]<0){Kb(H[g+104>>2])}if(F[g+103|0]<0){Kb(H[g+92>>2])}if(F[g+91|0]<0){Kb(H[g+80>>2])}if(F[g+79|0]<0){Kb(H[g+68>>2])}if(F[g+67|0]<0){Kb(H[g+56>>2])}if(F[g+235|0]<0){Kb(H[g+224>>2])}if(F[g+251|0]<0){Kb(H[g+240>>2])}if(F[g+267|0]<0){Kb(H[g+256>>2])}if(F[g+283|0]<0){Kb(H[g+272>>2])}if(F[g+315|0]<0){Kb(H[g+304>>2])}if(F[g+331|0]>=0){break na}Kb(H[g+320>>2])}b=H[a+72>>2];c=H[H[b>>2]+28>>2];H[197455]=0;c=aa(c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break D}if(!c){break g}H[197455]=0;ba(1778,g+240|0,c&255);b=H[197455];H[197455]=0;if((b|0)==1){break C}H[197455]=0;b=ca(1758,g+240|0,0,428508)|0;d=H[197455];H[197455]=0;if((d|0)==1){break B}H[g+264>>2]=H[b+8>>2];d=H[b+4>>2];H[g+256>>2]=H[b>>2];H[g+260>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,g+256|0,428528)|0;d=H[197455];H[197455]=0;if((d|0)==1){break A}H[g+280>>2]=H[b+8>>2];d=H[b+4>>2];H[g+272>>2]=H[b>>2];H[g+276>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1778,g+224|0,c>>>8&255);b=H[197455];H[197455]=0;if((b|0)==1){break z}H[197455]=0;b=I[g+235|0];d=b<<24>>24<0;b=ca(1759,g+272|0,(d?H[g+224>>2]:g+224|0)|0,(d?H[g+228>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break y}H[g+296>>2]=H[b+8>>2];d=H[b+4>>2];H[g+288>>2]=H[b>>2];H[g+292>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,g+288|0,428528)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}H[g+312>>2]=H[b+8>>2];d=H[b+4>>2];H[g+304>>2]=H[b>>2];H[g+308>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1778,g+208|0,c>>>16&255);b=H[197455];H[197455]=0;if((b|0)==1){break w}H[197455]=0;b=I[g+219|0];c=b<<24>>24<0;b=ca(1759,g+304|0,(c?H[g+208>>2]:g+208|0)|0,(c?H[g+212>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break v}H[g+328>>2]=H[b+8>>2];c=H[b+4>>2];H[g+320>>2]=H[b>>2];H[g+324>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,g+320|0,41);b=H[197455];H[197455]=0;if((b|0)==1){break u}c=F[g+331|0];b=I[g+327|0]|I[g+328|0]<<8|(I[g+329|0]<<16|I[g+330|0]<<24);H[g+328>>2]=0;d=H[g+320>>2];h=H[g+324>>2];H[g+320>>2]=0;H[g+324>>2]=0;H[g+32>>2]=h;F[g+35|0]=b;F[g+36|0]=b>>>8;F[g+37|0]=b>>>16;F[g+38|0]=b>>>24;H[197455]=0;b=aa(899,32)|0;h=H[197455];H[197455]=0;if((h|0)==1){break r}H[g+56>>2]=b;H[g+60>>2]=4;H[g+64>>2]=-2147483640;H[197455]=0;Mb(b,428628,4);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[b+16>>2]=0;H[g+72>>2]=H[g+32>>2];b=I[g+35|0]|I[g+36|0]<<8|(I[g+37|0]<<16|I[g+38|0]<<24);F[g+75|0]=b;F[g+76|0]=b>>>8;F[g+77|0]=b>>>16;F[g+78|0]=b>>>24;H[g+68>>2]=d;F[g+79|0]=c;H[g+32>>2]=0;F[g+35|0]=0;F[g+36|0]=0;F[g+37|0]=0;F[g+38|0]=0;b=H[g+388>>2];if(b>>>0>=K[g+392>>2]){break E}if(F[g+67|0]<0){break F}c=H[g+60>>2];H[b>>2]=H[g+56>>2];H[b+4>>2]=c;H[b+8>>2]=H[g- -64>>2];break i}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break X}f=$()|0;_()|0;break Y}f=$()|0;_()|0;break Z}f=$()|0;_()|0;break _}f=$()|0;_()|0;break $}f=$()|0;_()|0;break aa}f=$()|0;_()|0;break ba}f=$()|0;_()|0;if(F[g+67|0]>=0){break ba}Kb(H[g+56>>2])}if(F[g+219|0]>=0){break aa}Kb(H[g+208>>2])}if(F[g+315|0]>=0){break $}Kb(H[g+304>>2])}if(F[g+299|0]>=0){break _}Kb(H[g+288>>2])}if(F[g+235|0]>=0){break Z}Kb(H[g+224>>2])}if(F[g+283|0]>=0){break Y}Kb(H[g+272>>2])}if(F[g+267|0]>=0){break X}Kb(H[g+256>>2])}if(F[g+251|0]>=0){break c}Kb(H[g+240>>2]);break c}f=$()|0;_()|0;yc(g+304|0);if(F[g+67|0]>=0){break G}Kb(H[g+56>>2]);break G}f=$()|0;_()|0;break G}f=$()|0;_()|0;break H}f=$()|0;_()|0;break I}f=$()|0;_()|0;break J}f=$()|0;b=1;_()|0;break K}f=$()|0;b=1;_()|0;break K}f=$()|0;_()|0;break L}f=$()|0;_()|0;break M}f=$()|0;_()|0;if(F[g+219|0]<0){Kb(H[g+208>>2])}yc(d)}Vb(g+176|0);Vb(g+152|0);Vb(g+128|0);Vb(g+104|0);Vb(g+80|0);Vb(g+56|0);b=0;h=c}if(F[g+235|0]>=0){break K}Kb(H[g+224>>2])}if(F[g+251|0]>=0){break J}Kb(H[g+240>>2])}if(F[g+267|0]>=0){break I}Kb(H[g+256>>2])}if(F[g+283|0]<0){Kb(H[g+272>>2])}if(!b|(g+56|0)==(h|0)){break H}while(1){h=Vb(h-24|0);if((h|0)!=(g+56|0)){continue}break}}if(F[g+315|0]>=0){break G}Kb(H[g+304>>2])}if(F[g+331|0]>=0){break c}Kb(H[g+320>>2]);break c}H[197455]=0;ga(1647,b|0,H[g+56>>2],H[g+60>>2]);c=H[197455];H[197455]=0;if((c|0)!=1){break i}f=$()|0;_()|0;H[g+388>>2]=b;break s}H[197455]=0;ba(1777,g+384|0,g+56|0);b=H[197455];H[197455]=0;if((b|0)==1){break t}if(F[g+79|0]>=0){break h}Kb(H[g+68>>2]);break h}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break j}f=$()|0;_()|0;break k}f=$()|0;_()|0;break l}f=$()|0;_()|0;break m}f=$()|0;_()|0;break n}f=$()|0;_()|0;break o}f=$()|0;_()|0;break p}f=$()|0;_()|0;break q}f=$()|0;_()|0}Vb(g+56|0);break q}f=$()|0;_()|0;if((c|0)>=0){break q}Kb(d)}if(F[g+331|0]>=0){break p}Kb(H[g+320>>2])}if(F[g+219|0]>=0){break o}Kb(H[g+208>>2])}if(F[g+315|0]>=0){break n}Kb(H[g+304>>2])}if(F[g+299|0]>=0){break m}Kb(H[g+288>>2])}if(F[g+235|0]>=0){break l}Kb(H[g+224>>2])}if(F[g+283|0]>=0){break k}Kb(H[g+272>>2])}if(F[g+267|0]>=0){break j}Kb(H[g+256>>2])}if(F[g+251|0]>=0){break c}Kb(H[g+240>>2]);break c}c=H[g+72>>2];H[b+12>>2]=H[g+68>>2];H[b+16>>2]=c;H[b+20>>2]=H[g+76>>2];H[g+68>>2]=0;H[g+72>>2]=0;H[g+76>>2]=0;H[g+388>>2]=b+24}if(F[g+67|0]<0){Kb(H[g+56>>2])}if(F[g+331|0]<0){Kb(H[g+320>>2])}if(F[g+219|0]<0){Kb(H[g+208>>2])}if(F[g+315|0]<0){Kb(H[g+304>>2])}if(F[g+299|0]<0){Kb(H[g+288>>2])}if(F[g+235|0]<0){Kb(H[g+224>>2])}if(F[g+283|0]<0){Kb(H[g+272>>2])}if(F[g+267|0]<0){Kb(H[g+256>>2])}if(F[g+251|0]>=0){break g}Kb(H[g+240>>2])}b=H[a+72>>2];c=H[H[b>>2]+32>>2];H[197455]=0;c=aa(c|0,b|0)|0;b=H[197455];H[197455]=0;ua:{va:{wa:{xa:{if((b|0)!=1){if(!c){break ua}b=H[H[c>>2]+8>>2];H[197455]=0;k=+za(b|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break xa}H[197455]=0;k=P(k);o=k<.01?18:k;fa(1756,g+320|0,+o,-1);b=H[197455];H[197455]=0;ya:{za:{Aa:{Ba:{if((b|0)!=1){H[197455]=0;b=aa(899,48)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ba}H[g+56>>2]=b;H[g+60>>2]=9;H[g+64>>2]=-2147483636;H[197455]=0;Mb(b,428696,9);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+36>>2]=0;H[g+76>>2]=H[g+328>>2];H[g+328>>2]=0;b=H[g+324>>2];H[g+68>>2]=H[g+320>>2];H[g+72>>2]=b;H[g+320>>2]=0;H[g+324>>2]=0;b=H[g+388>>2];if(b>>>0>2]){if(F[g+67|0]>=0){d=H[g+60>>2];H[b>>2]=H[g+56>>2];H[b+4>>2]=d;H[b+8>>2]=H[g- -64>>2];break wa}H[197455]=0;ga(1647,b|0,H[g+56>>2],H[g+60>>2]);d=H[197455];H[197455]=0;if((d|0)!=1){break wa}f=$()|0;_()|0;H[g+388>>2]=b;break za}H[197455]=0;ba(1777,g+384|0,g+56|0);b=H[197455];H[197455]=0;if((b|0)==1){break Aa}if(F[g+79|0]>=0){break va}Kb(H[g+68>>2]);break va}f=$()|0;_()|0;break c}f=$()|0;_()|0;break ya}f=$()|0;_()|0}Vb(g+56|0)}if(F[g+331|0]>=0){break c}Kb(H[g+320>>2]);break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}d=H[g+72>>2];H[b+12>>2]=H[g+68>>2];H[b+16>>2]=d;H[b+20>>2]=H[g+76>>2];H[g+68>>2]=0;H[g+72>>2]=0;H[g+76>>2]=0;H[g+388>>2]=b+24}if(F[g+67|0]<0){Kb(H[g+56>>2])}if(F[g+331|0]<0){Kb(H[g+320>>2])}b=H[H[c>>2]+12>>2];H[197455]=0;ba(b|0,g+320|0,c|0);b=H[197455];H[197455]=0;Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{if((b|0)!=1){h=I[g+331|0];b=h<<24>>24;d=H[g+324>>2];if((b|0)<0?d:h){Nb(g+56|0,0,104);H[197455]=0;b=aa(899,12)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Fa}d=H[H[c>>2]+12>>2];H[197455]=0;ba(d|0,b|0,c|0);d=H[197455];H[197455]=0;if((d|0)==1){break Na}H[g+56>>2]=b;b=H[H[a+72>>2]+20>>2];d=H[H[b>>2]+136>>2];H[197455]=0;b=ca(d|0,b|0,g+56|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ma}Oa:{if(!b){break Oa}H[197455]=0;d=jq(g+320|0,b);h=H[197455];H[197455]=0;if((h|0)==1){break Ma}if(d){break Oa}H[197455]=0;ga(1785,g+272|0,428736,g+320|0);d=H[197455];H[197455]=0;if((d|0)==1){break La}H[197455]=0;d=da(1699,g+272|0,428764)|0;h=H[197455];H[197455]=0;if((h|0)==1){break Ka}H[g+296>>2]=H[d+8>>2];h=H[d+4>>2];H[g+288>>2]=H[d>>2];H[g+292>>2]=h;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;d=I[b+11|0];h=H[b>>2];i=H[b+4>>2];H[197455]=0;l=b;b=d<<24>>24<0;b=ca(1759,g+288|0,(b?h:l)|0,(b?i:d)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ja}H[g+312>>2]=H[b+8>>2];d=H[b+4>>2];H[g+304>>2]=H[b>>2];H[g+308>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,g+304|0,428736)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ia}h=H[b>>2];H[g+256>>2]=H[b+4>>2];d=I[b+7|0]|I[b+8|0]<<8|(I[b+9|0]<<16|I[b+10|0]<<24);F[g+259|0]=d;F[g+260|0]=d>>>8;F[g+261|0]=d>>>16;F[g+262|0]=d>>>24;H[b>>2]=0;H[b+4>>2]=0;i=I[b+11|0];H[b+8>>2]=0;if(F[g+331|0]<0){Kb(H[g+320>>2])}H[g+320>>2]=h;b=g+320|4;d=I[g+259|0]|I[g+260|0]<<8|(I[g+261|0]<<16|I[g+262|0]<<24);F[b+3|0]=d;F[b+4|0]=d>>>8;F[b+5|0]=d>>>16;F[b+6|0]=d>>>24;H[b>>2]=H[g+256>>2];F[g+331|0]=i;if(F[g+315|0]<0){Kb(H[g+304>>2])}if(F[g+299|0]<0){Kb(H[g+288>>2])}if(F[g+283|0]>=0){break Oa}Kb(H[g+272>>2])}Sm(g+56|0);d=H[g+324>>2];h=I[g+331|0];b=h}if(b<<24>>24<0?d:h){break Da}break Ca}f=$()|0;_()|0;break c}f=$()|0;_()|0;Kb(b);break Ea}f=$()|0;_()|0;break Ea}f=$()|0;_()|0;break Ea}f=$()|0;_()|0;break Ga}f=$()|0;_()|0;break Ha}f=$()|0;_()|0;if(F[g+315|0]>=0){break Ha}Kb(H[g+304>>2])}if(F[g+299|0]>=0){break Ga}Kb(H[g+288>>2])}if(F[g+283|0]>=0){break Ea}Kb(H[g+272>>2]);break Ea}f=$()|0;_()|0}Sm(g+56|0);break d}H[197455]=0;b=ca(1786,g+56|0,428824,g+320|0)|0;d=H[197455];H[197455]=0;Pa:{Qa:{Ra:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){h=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=h;H[d+8>>2]=H[g- -64>>2];break Qa}h=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break Qa}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break Ra}if(F[b+23|0]>=0){break Pa}Kb(H[b+12>>2]);break Pa}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}h=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=h;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]>=0){break Ca}Kb(H[b>>2])}b=H[H[c>>2]+16>>2];H[197455]=0;b=aa(b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}Sa:{if((b|0)<551){break Sa}H[197455]=0;b=ca(1787,g+56|0,428872,428920)|0;d=H[197455];H[197455]=0;Ta:{Ua:{Va:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){h=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=h;H[d+8>>2]=H[g- -64>>2];break Ua}h=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break Ua}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break Va}if(F[b+23|0]>=0){break Ta}Kb(H[b+12>>2]);break Ta}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}h=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=h;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]>=0){break Sa}Kb(H[b>>2])}b=H[H[c>>2]+20>>2];H[197455]=0;b=aa(b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}Wa:{if(!b){break Wa}H[197455]=0;b=ca(1788,g+56|0,428940,428984)|0;d=H[197455];H[197455]=0;Xa:{Ya:{Za:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){h=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=h;H[d+8>>2]=H[g- -64>>2];break Ya}h=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break Ya}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break Za}if(F[b+23|0]>=0){break Xa}Kb(H[b+12>>2]);break Xa}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}h=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=h;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]>=0){break Wa}Kb(H[b>>2])}b=H[H[c>>2]+28>>2];H[197455]=0;b=aa(b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}_a:{$a:{ab:{bb:{cb:{if(b){b=H[H[c>>2]+24>>2];H[197455]=0;b=aa(b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}if(b){break cb}}b=H[H[c>>2]+28>>2];H[197455]=0;b=aa(b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break bb}break e}H[197455]=0;b=ca(1789,g+56|0,429012,429076)|0;d=H[197455];H[197455]=0;db:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){h=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=h;H[d+8>>2]=H[g- -64>>2];break ab}h=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break ab}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break db}if(F[b+23|0]>=0){break $a}Kb(H[b+12>>2]);break $a}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}eb:{fb:{if(b){H[197455]=0;b=ca(1790,g+56|0,429012,429168)|0;d=H[197455];H[197455]=0;gb:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){h=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=h;H[d+8>>2]=H[g- -64>>2];break fb}h=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break fb}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break gb}if(F[b+23|0]>=0){break eb}Kb(H[b+12>>2]);break eb}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}b=H[H[c>>2]+24>>2];H[197455]=0;b=aa(b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!b){break _a}H[197455]=0;b=ca(1791,g+56|0,429012,429208)|0;d=H[197455];H[197455]=0;hb:{ib:{jb:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){h=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=h;H[d+8>>2]=H[g- -64>>2];break ib}h=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break ib}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break jb}if(F[b+23|0]>=0){break hb}Kb(H[b+12>>2]);break hb}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}h=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=h;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]>=0){break _a}Kb(H[b>>2]);break _a}h=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=h;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]>=0){break _a}Kb(H[b>>2]);break _a}h=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=h;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]>=0){break _a}Kb(H[b>>2])}b=H[a+72>>2];d=H[H[b>>2]+44>>2];H[197455]=0;b=aa(d|0,b|0)|0;d=H[197455];H[197455]=0;kb:{lb:{mb:{nb:{if((d|0)!=1){d=H[a+72>>2];h=H[H[d>>2]+44>>2];H[197455]=0;d=aa(h|0,d|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break lb}h=(b&31)-(b&1)|0;if(!(h&24)){break nb}h=h-24|0;break mb}f=$()|0;_()|0;break d}ob:{pb:{i=d>>>8|0;if(!(!(h&8)&(i|0)!=2)){H[197455]=0;b=ca(2919,g+56|0,429260,429332)|0;d=H[197455];H[197455]=0;qb:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){l=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=l;H[d+8>>2]=H[g- -64>>2];break pb}l=H[b+4>>2];n=H[b>>2];H[197455]=0;ga(1647,d|0,n|0,l|0);l=H[197455];H[197455]=0;if((l|0)!=1){break pb}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break qb}if(F[b+23|0]>=0){break ob}Kb(H[b+12>>2]);break ob}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}if((i|0)==6){H[197455]=0;b=ca(2920,g+56|0,429260,429352)|0;d=H[197455];H[197455]=0;rb:{if((d|0)!=1){H[197455]=0;ba(1792,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break rb}Vb(b);break mb}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}m=m+o;break mb}l=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=l;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]<0){Kb(H[b>>2])}h=(i|0)==2?h:h-8|0}sb:{tb:{ub:{vb:{switch(h-2|0){case 0:h=H[f>>2];b=H[f+4>>2];if((h|0)!=(b|0)){k=0;while(1){k=k+M[h>>3];h=h+8|0;if((b|0)!=(h|0)){continue}break}j=j-k;break sb}H[197455]=0;b=ca(2921,g+56|0,429380,429428)|0;d=H[197455];H[197455]=0;wb:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){h=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=h;H[d+8>>2]=H[g- -64>>2];break ub}h=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break ub}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break wb}if(F[b+23|0]>=0){break tb}Kb(H[b+12>>2]);break tb}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d;case 4:break vb;default:break sb}}h=H[f>>2];b=H[f+4>>2];if((h|0)!=(b|0)){k=0;while(1){k=k+M[h>>3];h=h+8|0;if((b|0)!=(h|0)){continue}break}j=j+k*-.5;break sb}H[197455]=0;b=ca(2922,g+56|0,429380,429352)|0;d=H[197455];H[197455]=0;xb:{yb:{zb:{if((d|0)!=1){d=H[g+388>>2];if(d>>>0>2]){if(F[b+11|0]>=0){h=H[g+60>>2];H[d>>2]=H[g+56>>2];H[d+4>>2]=h;H[d+8>>2]=H[g- -64>>2];break yb}h=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break yb}f=$()|0;_()|0;H[g+388>>2]=d;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break zb}if(F[b+23|0]>=0){break xb}Kb(H[b+12>>2]);break xb}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}h=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=h;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]>=0){break sb}Kb(H[b>>2]);break sb}h=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=h;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=d+24}if(F[b+11|0]>=0){break sb}Kb(H[b>>2])}if(M[e+8>>3]<-1e-5){k=M[g+360>>3];M[g+360>>3]=P(k);m=o+m;M[g+376>>3]=k*(m+m-o)+M[g+376>>3]}b=H[H[c>>2]+32>>2];H[197455]=0;b=aa(b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break lb}if(b){b=H[H[c>>2]+32>>2];H[197455]=0;b=aa(b|0,c|0)|0;c=H[197455];H[197455]=0;Ab:{Bb:{Cb:{if((c|0)==1){break Cb}c=H[a+72>>2];d=H[H[c>>2]+68>>2];H[197455]=0;c=da(d|0,c|0,2)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Cb}u=M[e+8>>3];k=M[c+24>>3];H[197455]=0;q=+((b|0)/-10|0);k=k<0?-q:q;fa(1756,g+224|0,+k,-1);b=H[197455];H[197455]=0;k=ne(k*3.141592653589793/180);Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{Tb:{Ub:{Vb:{if((b|0)!=1){H[197455]=0;b=ca(1758,g+224|0,0,429484)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Vb}H[g+248>>2]=H[b+8>>2];c=H[b+4>>2];H[g+240>>2]=H[b>>2];H[g+244>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,g+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break Ub}H[g+264>>2]=H[g+248>>2];H[g+248>>2]=0;b=H[g+244>>2];H[g+256>>2]=H[g+240>>2];H[g+260>>2]=b;H[g+240>>2]=0;H[g+244>>2]=0;H[197455]=0;k=-o*k;j=u<-1e-5?k+j:j;fa(1756,g+208|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Tb}H[197455]=0;b=I[g+219|0];c=b<<24>>24<0;b=ca(1759,g+256|0,(c?H[g+208>>2]:g+208|0)|0,(c?H[g+212>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Sb}H[g+280>>2]=H[b+8>>2];c=H[b+4>>2];H[g+272>>2]=H[b>>2];H[g+276>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,g+272|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break Rb}H[g+296>>2]=H[g+280>>2];H[g+280>>2]=0;b=H[g+276>>2];H[g+288>>2]=H[g+272>>2];H[g+292>>2]=b;H[g+272>>2]=0;H[g+276>>2]=0;H[197455]=0;m=k+m;fa(1756,g+32|0,+m,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Qb}H[197455]=0;b=I[g+43|0];c=b<<24>>24<0;b=ca(1759,g+288|0,(c?H[g+32>>2]:g+32|0)|0,(c?H[g+36>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Pb}H[g+312>>2]=H[b+8>>2];c=H[b+4>>2];H[g+304>>2]=H[b>>2];H[g+308>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,g+304|0,41);b=H[197455];H[197455]=0;if((b|0)==1){break Ob}c=F[g+315|0];b=I[g+311|0]|I[g+312|0]<<8|(I[g+313|0]<<16|I[g+314|0]<<24);H[g+312>>2]=0;d=H[g+304>>2];h=H[g+308>>2];H[g+304>>2]=0;H[g+308>>2]=0;H[g+48>>2]=h;F[g+51|0]=b;F[g+52|0]=b>>>8;F[g+53|0]=b>>>16;F[g+54|0]=b>>>24;H[197455]=0;b=aa(899,48)|0;h=H[197455];H[197455]=0;if((h|0)==1){break Lb}H[g+56>>2]=b;H[g+60>>2]=9;H[g+64>>2]=-2147483636;H[197455]=0;Mb(b,429444,9);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[b+36>>2]=0;H[g+72>>2]=H[g+48>>2];b=I[g+51|0]|I[g+52|0]<<8|(I[g+53|0]<<16|I[g+54|0]<<24);F[g+75|0]=b;F[g+76|0]=b>>>8;F[g+77|0]=b>>>16;F[g+78|0]=b>>>24;H[g+68>>2]=d;F[g+79|0]=c;H[g+48>>2]=0;F[g+51|0]=0;F[g+52|0]=0;F[g+53|0]=0;F[g+54|0]=0;b=H[g+388>>2];if(b>>>0>2]){if(F[g+67|0]>=0){c=H[g+60>>2];H[b>>2]=H[g+56>>2];H[b+4>>2]=c;H[b+8>>2]=H[g- -64>>2];break Bb}H[197455]=0;ga(1647,b|0,H[g+56>>2],H[g+60>>2]);c=H[197455];H[197455]=0;if((c|0)!=1){break Bb}f=$()|0;_()|0;H[g+388>>2]=b;break Mb}H[197455]=0;ba(1777,g+384|0,g+56|0);b=H[197455];H[197455]=0;if((b|0)==1){break Nb}if(F[g+79|0]>=0){break Ab}Kb(H[g+68>>2]);break Ab}f=$()|0;_()|0;break d}f=$()|0;_()|0;break Db}f=$()|0;_()|0;break Eb}f=$()|0;_()|0;break Fb}f=$()|0;_()|0;break Gb}f=$()|0;_()|0;break Hb}f=$()|0;_()|0;break Ib}f=$()|0;_()|0;break Jb}f=$()|0;_()|0;break Kb}f=$()|0;_()|0}Vb(g+56|0);break Kb}f=$()|0;_()|0;if((c|0)>=0){break Kb}Kb(d)}if(F[g+315|0]>=0){break Jb}Kb(H[g+304>>2])}if(F[g+43|0]>=0){break Ib}Kb(H[g+32>>2])}if(F[g+299|0]>=0){break Hb}Kb(H[g+288>>2])}if(F[g+283|0]>=0){break Gb}Kb(H[g+272>>2])}if(F[g+219|0]>=0){break Fb}Kb(H[g+208>>2])}if(F[g+267|0]>=0){break Eb}Kb(H[g+256>>2])}if(F[g+251|0]>=0){break Db}Kb(H[g+240>>2])}if(F[g+235|0]>=0){break d}Kb(H[g+224>>2]);break d}f=$()|0;_()|0;break d}c=H[g+72>>2];H[b+12>>2]=H[g+68>>2];H[b+16>>2]=c;H[b+20>>2]=H[g+76>>2];H[g+68>>2]=0;H[g+72>>2]=0;H[g+76>>2]=0;H[g+388>>2]=b+24}if(F[g+67|0]<0){Kb(H[g+56>>2])}if(F[g+315|0]<0){Kb(H[g+304>>2])}if(F[g+43|0]<0){Kb(H[g+32>>2])}if(F[g+299|0]<0){Kb(H[g+288>>2])}if(F[g+283|0]<0){Kb(H[g+272>>2])}if(F[g+219|0]<0){Kb(H[g+208>>2])}if(F[g+267|0]<0){Kb(H[g+256>>2])}if(F[g+251|0]<0){Kb(H[g+240>>2])}if(F[g+235|0]<0){Kb(H[g+224>>2])}j=M[e+8>>3]>1e-5?k+j:j}H[197455]=0;ga(1766,a|0,g+384|0,g+336|0);b=H[197455];H[197455]=0;if((b|0)!=1){break kb}}f=$()|0;_()|0;break d}H[197455]=0;b=ca(2923,g+56|0,429516,429556)|0;c=H[197455];H[197455]=0;Wb:{Xb:{Yb:{if((c|0)!=1){c=H[g+388>>2];if(c>>>0>2]){if(F[b+11|0]>=0){d=H[g+60>>2];H[c>>2]=H[g+56>>2];H[c+4>>2]=d;H[c+8>>2]=H[g- -64>>2];break Xb}d=H[b+4>>2];e=H[b>>2];H[197455]=0;ga(1647,c|0,e|0,d|0);d=H[197455];H[197455]=0;if((d|0)!=1){break Xb}f=$()|0;_()|0;H[g+388>>2]=c;Vb(b);break d}H[197455]=0;ba(1777,g+384|0,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break Yb}if(F[b+23|0]>=0){break Wb}Kb(H[b+12>>2]);break Wb}f=$()|0;_()|0;break d}f=$()|0;_()|0;Vb(b);break d}d=H[b+16>>2];H[c+12>>2]=H[b+12>>2];H[c+16>>2]=d;H[c+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=c+24}if(F[b+11|0]<0){Kb(H[b>>2])}b=F[g+411|0];c=(b|0)<0;d=c?H[g+400>>2]:g+400|0;h=c?H[g+404>>2]:b&255;e=d+(h<<2)|0;Zb:{_b:{if((h|0)<=0){break _b}c=d;while(1){if(!h){break _b}h=ig(c,10,h);if(!h){break _b}if(!oi(h,429592,1)){break Zb}c=h+4|0;b=e-c|0;h=b>>2;if((b|0)>3){continue}break}}h=e}H[g+312>>2]=0;H[g+304>>2]=0;H[g+308>>2]=0;$b:{ac:{bc:{cc:{dc:{i=H[f>>2];b=H[f+4>>2];if((i|0)!=(b|0)){c=b-i>>3;b=I[g+411|0];b=b<<24>>24<0?H[g+404>>2]:b;if(c>>>0>=b>>>0){break dc}}H[197455]=0;fa(1756,g+56|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break cc}if(F[g+315|0]<0){Kb(H[g+304>>2])}H[g+312>>2]=H[g- -64>>2];b=H[g+60>>2];H[g+304>>2]=H[g+56>>2];H[g+308>>2]=b;break bc}H[g+64>>2]=0;H[g+56>>2]=0;H[g+60>>2]=0;ec:{if(b>>>0>=536870912){H[197455]=0;ia(1654,g+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break ec}X()}H[197455]=0;f=b<<3;c=aa(899,f|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break ec}H[g+56>>2]=c;l=c+f|0;H[g+64>>2]=l;f=Nb(c,0,f);H[g+60>>2]=l;M[f>>3]=j;fc:{if(b>>>0<2){break fc}n=b-1|0;l=n&3;c=1;if(b-2>>>0>=3){v=n&-4;n=0;while(1){b=c<<3;r=b+f|0;s=b+i|0;j=M[s-8>>3]+j;M[r>>3]=j;t=b+8|0;j=M[s>>3]+j;M[f+t>>3]=j;b=b+16|0;j=M[i+t>>3]+j;M[b+f>>3]=j;j=M[b+i>>3]+j;M[r+24>>3]=j;c=c+4|0;n=n+4|0;if((v|0)!=(n|0)){continue}break}}if(!l){break fc}b=0;while(1){n=c<<3;j=M[(n+i|0)-8>>3]+j;M[f+n>>3]=j;c=c+1|0;b=b+1|0;if((l|0)!=(b|0)){continue}break}}H[197455]=0;ga(2924,g+288|0,g+56|0,-1);b=H[197455];H[197455]=0;if((b|0)!=1){if(F[g+315|0]<0){Kb(H[g+304>>2])}H[g+312>>2]=H[g+296>>2];b=H[g+292>>2];H[g+304>>2]=H[g+288>>2];H[g+308>>2]=b;b=H[g+56>>2];if(!b){break bc}H[g+60>>2]=b;Kb(b);break bc}}f=$()|0;_()|0;a=H[g+56>>2];if(!a){break ac}H[g+60>>2]=a;Kb(a);break ac}f=$()|0;_()|0;break ac}gc:{hc:{ic:{jc:{kc:{lc:{f=(e|0)==(h|0)?-1:h-d>>2;if((f|0)==-1){H[197455]=0;b=ca(1762,g+56|0,428560,g+304|0)|0;c=H[197455];H[197455]=0;mc:{if((c|0)!=1){c=H[g+388>>2];if(c>>>0>2]){if(F[b+11|0]>=0){d=H[g+60>>2];H[c>>2]=H[g+56>>2];H[c+4>>2]=d;H[c+8>>2]=H[g- -64>>2];break lc}d=H[b+4>>2];e=H[b>>2];H[197455]=0;ga(1647,c|0,e|0,d|0);d=H[197455];H[197455]=0;if((d|0)!=1){break lc}f=$()|0;_()|0;H[g+388>>2]=c;Vb(b);break ac}H[197455]=0;ba(1777,g+384|0,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break mc}if(F[b+23|0]>=0){break kc}Kb(H[b+12>>2]);break kc}f=$()|0;_()|0;break ac}f=$()|0;_()|0;Vb(b);break ac}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;nc:{oc:{pc:{qc:{rc:{sc:{tc:{uc:{vc:{wc:{xc:{yc:{zc:{if((c|0)!=1){H[g+56>>2]=b;H[g+60>>2]=4;H[g+64>>2]=-2147483640;H[197455]=0;Mb(b,429600,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;b=H[a+76>>2];H[197455]=0;ga(1754,b|0,g+56|0,H[g+384>>2]!=H[g+388>>2]|0);b=H[197455];H[197455]=0;if((b|0)==1){break zc}h=H[g+384>>2];b=H[g+388>>2];if((h|0)!=(b|0)){while(1){c=H[a+76>>2];H[197455]=0;ga(1755,c|0,h|0,h+12|0);c=H[197455];H[197455]=0;if((c|0)==1){break zc}h=h+24|0;if((b|0)!=(h|0)){continue}break}b=H[a+76>>2];H[197455]=0;ka(1760,b|0,g+56|0,1,0);b=H[197455];H[197455]=0;if((b|0)==1){break zc}}if(F[g+67|0]<0){Kb(H[g+56>>2])}i=g+80|0;j=o*1.6;c=0;while(1){H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break yc}H[g+288>>2]=b;H[g+292>>2]=5;H[g+296>>2]=-2147483640;H[197455]=0;Mb(b,429620,5);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+20>>2]=0;H[197455]=0;b=ca(1762,g+56|0,428560,g+304|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break xc}H[197455]=0;fa(1756,g+256|0,+m,-1);d=H[197455];H[197455]=0;if((d|0)==1){break rc}H[197455]=0;F[g+91|0]=1;Mb(i,428568,1);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[g+84>>2]=0;d=H[g+260>>2];H[g+92>>2]=H[g+256>>2];H[g+96>>2]=d;H[g+100>>2]=H[g+264>>2];H[g+264>>2]=0;H[g+28>>2]=2;H[g+24>>2]=b;H[g+256>>2]=0;H[g+260>>2]=0;H[197455]=0;b=H[g+28>>2];H[g+8>>2]=H[g+24>>2];H[g+12>>2]=b;b=da(1763,g+272|0,g+8|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break wc}H[197455]=0;d=g+400|0;c=pa(1645,g+240|0,d|0,c|0,f-c|0,d|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break vc}H[197455]=0;ka(1767,a|0,g+288|0,b|0,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break uc}if(F[g+251|0]<0){Kb(H[g+240>>2])}b=H[g+272>>2];if(b){h=H[g+276>>2];if((b|0)==(h|0)){c=b}else{while(1){if(F[h-1|0]<0){Kb(H[h-12>>2])}c=h-24|0;if(F[h-13|0]<0){Kb(H[c>>2])}h=c;if((c|0)!=(b|0)){continue}break}c=H[g+272>>2]}H[g+276>>2]=b;Kb(c)}if(F[g+103|0]<0){Kb(H[g+92>>2])}if(F[g+91|0]<0){Kb(H[g+80>>2])}if(F[g+79|0]<0){Kb(H[g+68>>2])}if(F[g+67|0]<0){Kb(H[g+56>>2])}if(F[g+267|0]<0){Kb(H[g+256>>2])}if(F[g+299|0]<0){Kb(H[g+288>>2])}d=F[g+411|0];b=(d|0)<0;d=b?H[g+404>>2]:d&255;c=-1;Ac:{if(d>>>0<=f>>>0){break Ac}b=b?H[g+400>>2]:g+400|0;h=b+(f<<2)|0;c=b+(d<<2)|0;Bc:{while(1){if(!ig(429592,H[h>>2],1)){break Bc}h=h+4|0;if((c|0)!=(h|0)){continue}break}c=-1;break Ac}c=h-b>>2}m=j+m;d=I[g+411|0];b=d<<24>>24<0;d=b?H[g+404>>2]:d;if(d>>>0>=c>>>0){e=b?H[g+400>>2]:g+400|0;b=e+(d<<2)|0;h=e+(c<<2)|0;d=b-h|0;Cc:{Dc:{if((d|0)<4){break Dc}while(1){h=ig(h,10,d>>>2|0);if(!h){break Dc}if(!oi(h,429592,1)){break Cc}h=h+4|0;d=b-h|0;if((d|0)>3){continue}break}}h=b}f=(b|0)==(h|0)?-1:h-e>>2}else{f=-1}if((c|0)!=-1){continue}break}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break pc}H[g+56>>2]=b;H[g+60>>2]=4;H[g+64>>2]=-2147483640;H[197455]=0;Mb(b,429600,4);c=H[197455];H[197455]=0;if((c|0)==1){break nc}H[b+16>>2]=0;b=H[a+76>>2];H[197455]=0;ka(1760,b|0,g+56|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break oc}if(F[g+67|0]>=0){break jc}Kb(H[g+56>>2]);break jc}f=$()|0;_()|0;break ac}f=$()|0;_()|0;if(F[g+67|0]>=0){break ac}Kb(H[g+56>>2]);break ac}f=$()|0;_()|0;break ac}f=$()|0;_()|0;break qc}f=$()|0;_()|0;break sc}f=$()|0;_()|0;break tc}f=$()|0;_()|0;if(F[g+251|0]>=0){break tc}Kb(H[g+240>>2])}yc(b)}Vb(g+80|0);Vb(g+56|0);if(F[g+267|0]>=0){break qc}Kb(H[g+256>>2]);break qc}f=$()|0;_()|0;Vb(g+56|0)}if(F[g+299|0]>=0){break ac}Kb(H[g+288>>2]);break ac}f=$()|0;_()|0;break ac}f=$()|0;_()|0;if(F[g+67|0]>=0){break ac}Kb(H[g+56>>2]);break ac}break a}d=H[b+16>>2];H[c+12>>2]=H[b+12>>2];H[c+16>>2]=d;H[c+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[g+388>>2]=c+24}if(F[b+11|0]<0){Kb(H[b>>2])}H[197455]=0;fa(1756,g+288|0,+m,-1);b=H[197455];H[197455]=0;Ec:{Fc:{Gc:{Hc:{if((b|0)!=1){F[g+67|0]=1;H[197455]=0;Mb(g+56|0,428568,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=H[g+296>>2];H[g+296>>2]=0;H[g+76>>2]=b;H[g+60>>2]=0;b=H[g+288>>2];c=H[g+292>>2];H[g+288>>2]=0;H[g+292>>2]=0;H[g+68>>2]=b;H[g+72>>2]=c;b=H[g+388>>2];if(b>>>0>2]){if(F[g+67|0]>=0){c=H[g+60>>2];H[b>>2]=H[g+56>>2];H[b+4>>2]=c;H[b+8>>2]=H[g- -64>>2];break Fc}H[197455]=0;ga(1647,b|0,H[g+56>>2],0);c=H[197455];H[197455]=0;if((c|0)!=1){break Fc}f=$()|0;_()|0;H[g+388>>2]=b;break Gc}H[197455]=0;ba(1777,g+384|0,g+56|0);b=H[197455];H[197455]=0;if((b|0)==1){break Hc}if(F[g+79|0]>=0){break Ec}Kb(H[g+68>>2]);break Ec}f=$()|0;_()|0;break ac}f=$()|0;_()|0}Vb(g+56|0);if(F[g+299|0]>=0){break ac}Kb(H[g+288>>2]);break ac}c=H[g+72>>2];H[b+12>>2]=H[g+68>>2];H[b+16>>2]=c;H[b+20>>2]=H[g+76>>2];H[g+68>>2]=0;H[g+72>>2]=0;H[g+76>>2]=0;H[g+388>>2]=b+24}if(F[g+67|0]<0){Kb(H[g+56>>2])}if(F[g+299|0]<0){Kb(H[g+288>>2])}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ic}H[g+56>>2]=b;H[g+60>>2]=4;H[g+64>>2]=-2147483640;H[197455]=0;Mb(b,429600,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;H[197455]=0;ka(1767,a|0,g+56|0,g+384|0,g+400|0);b=H[197455];H[197455]=0;if((b|0)==1){break hc}if(F[g+67|0]>=0){break jc}Kb(H[g+56>>2])}if((p|0)==2){break gc}break $b}f=$()|0;_()|0;break ac}f=$()|0;_()|0;if(F[g+67|0]>=0){break ac}Kb(H[g+56>>2]);break ac}a=H[a+76>>2];F[g+67|0]=1;H[197455]=0;Mb(g+56|0,428332,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;H[g+60>>2]=0;ka(1760,a|0,g+56|0,0,1);a=H[197455];H[197455]=0;if((a|0)!=1){if(F[g+67|0]>=0){break $b}Kb(H[g+56>>2]);break $b}f=$()|0;_()|0;if(F[g+67|0]>=0){break ac}Kb(H[g+56>>2])}if(F[g+315|0]>=0){break d}Kb(H[g+304>>2]);break d}if(F[g+315|0]<0){Kb(H[g+304>>2])}if(F[g+331|0]>=0){break ua}Kb(H[g+320>>2])}a=H[g+384>>2];if(a){h=H[g+388>>2];if((a|0)==(h|0)){b=a}else{while(1){if(F[h-1|0]<0){Kb(H[h-12>>2])}b=h-24|0;if(F[h-13|0]<0){Kb(H[b>>2])}h=b;if((b|0)!=(a|0)){continue}break}b=H[g+384>>2]}H[g+388>>2]=a;Kb(b)}b=I[g+411|0]}if(b<<24>>24>=0){break f}Kb(H[g+400>>2])}xb=g+416|0;return}f=$()|0;_()|0}if(F[g+331|0]>=0){break c}Kb(H[g+320>>2])}yc(g+384|0)}if(F[g+411|0]<0){Kb(H[g+400>>2])}ea(f|0);X()}ha(0)|0;_()|0;Zb();X()}function lk(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,J=0,L=0,M=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;k=xb-15984|0;xb=k;H[k+15976>>2]=g;H[k+15980>>2]=f;o=H[a+176>>2];m=o;i=H[H[m+536>>2]+544>>2];O=H[a+52>>2];B=H[a>>2];Nb(k+15824|0,0,128);H[k+15968>>2]=0;f=k+15808|0;H[f>>2]=0;H[f+4>>2]=0;f=k+15700|0;H[f>>2]=0;H[f+4>>2]=0;f=k+15708|0;H[f>>2]=0;H[f+4>>2]=0;H[k+15960>>2]=0;H[k+15964>>2]=0;H[k+15792>>2]=0;H[k+15796>>2]=0;H[k+15800>>2]=0;H[k+15804>>2]=0;H[k+15776>>2]=0;H[k+15780>>2]=0;H[k+15768>>2]=10;H[k+15772>>2]=0;H[k+15760>>2]=20;H[k+15764>>2]=0;E=a+4|0;H[k+15756>>2]=E;H[k+15752>>2]=B;H[k+15744>>2]=0;H[k+15748>>2]=0;H[k+15736>>2]=10;H[k+15740>>2]=0;H[k+15728>>2]=20;H[k+15732>>2]=0;H[k+15724>>2]=E;H[k+15720>>2]=B;H[k+15692>>2]=0;H[k+15696>>2]=0;H[k+15688>>2]=E;Nb(k+15528|0,0,160);H[k+15532>>2]=10;H[k+15524>>2]=8;H[k+15520>>2]=E;H[k+15516>>2]=B;H[k+3908>>2]=c;H[k+3904>>2]=a;Nb(k+11660|0,0,3856);f=I[a+184|0];H[k+11664>>2]=O;F[k+11661|0]=f;P=k+15516|0;H[k+11656>>2]=P;Q=k+11648|0;H[k+11652>>2]=Q;H[k+11648>>2]=a;Nb(k+7792|0,0,3856);H[k+7796>>2]=O;F[k+7793|0]=f;H[k+7788>>2]=P;H[k+7784>>2]=Q;H[k+7780>>2]=a;Nb(k+3924|0,0,3856);H[k+3928>>2]=O;F[k+3925|0]=f;H[k+3920>>2]=P;H[k+3916>>2]=Q;H[k+3912>>2]=a;H[k+15548>>2]=H[a+40>>2];J=48;f=H[a+48>>2];H[k+15556>>2]=O;H[k+15552>>2]=f;j=H[d+4>>2];f=H[d>>2];H[k+15588>>2]=a+240;H[k+15584>>2]=g;H[k+15560>>2]=f;H[k+15564>>2]=j;H[k+15580>>2]=k+15688;H[k+15576>>2]=k+15720;H[k+15572>>2]=k+15752;F[k+15570|0]=I[a+185|0];f=H[a+228>>2];H[k+15592>>2]=f;j=H[a+232>>2];H[k+15604>>2]=6554;H[k+15596>>2]=j;F[k+15569|0]=0;F[k+15571|0]=1;g=f;f=f>>31;g=(g^f)-f|0;f=j>>31;f=(f^j)-f|0;H[k+15600>>2]=((f|0)<(g|0)?g:f)<<1;f=I[a+9|0];F[k+15791|0]=(f|0)!=0;H[h>>2]=H[H[m+536>>2]+540>>2]<<16;J=f?H[H[m+532>>2]+1556>>2]:J;H[k+32>>2]=0;j=pc(B,20,k+32|0);a:{b:{c:{d:{if(!H[k+32>>2]){H[j+4>>2]=E;H[j>>2]=B;f=Ub(B,8,0,J,0,k+32|0);H[j+8>>2]=f;if(!H[k+32>>2]){break d}if(j){zb[H[B+8>>2]](B,j)}}l=64;j=0;b=1;break c}H[j+16>>2]=J;H[j+12>>2]=f;H[k+32>>2]=0;C=Ub(B,1,0,272,0,k+32|0);f=H[a+4>>2];if(H[k+32>>2]){b=0;if(f){break a}l=64;break b}if(f){b=0;break a}R=i<<16;T=k+3912|0;y=k+15688|4;f=H[b+4>>2];H[C>>2]=H[b>>2];H[C+4>>2]=f;f=H[b+12>>2];H[C+8>>2]=H[b+8>>2];H[C+12>>2]=f;L=a+92|0;U=k+44|0;V=k+15608|0;M=k|4;S=2e7;t=C;b=0;e:while(1){z=0;while(1){f=b;l=t+12|0;b=H[l>>2];q=H[t+8>>2];f:{if(b>>>0>=q>>>0){g=A?11:14;i=b;break f}i=b+1|0;H[l>>2]=i;g:{g=I[b|0];switch(g-11|0){case 0:case 3:break g;default:break f}}g=I[a+9|0]?0:g}r=I[a+8|0];if(r){h:{if(f&255){break h}i:{switch(g-1|0){case 0:case 2:case 9:case 10:case 11:case 12:case 13:break h;default:break i}}if(g>>>0>31){break h}H[j+12>>2]=H[j+8>>2];b=0;continue}m=(g|0)==12;b=g>>>0>31;D=D&255?b?D:m?D:0:D;u=(u|0)<=0?u:(g|0)==10?u:(g|0)==11?u:m?u:b?u:0}if(H[a+4>>2]){b=0;break a}S=S-1|0;if(!S){b=0;l=18;break b}b=f;j:{k:{l:{m:{n:{o:{p:{switch(g|0){case 15:if(!I[a+9|0]){break n}if(I[a+93|0]){break j}b=H[j+12>>2];if((b|0)==H[j+8>>2]){g=0;b=H[j+4>>2];if(!b|H[b>>2]){break l}H[b>>2]=161;H[a+120>>2]=0;b=f;break k}if(H[b-4>>2]!=2){g=0;b=H[j+4>>2];if(!b|H[b>>2]){break l}H[b>>2]=160;break l}b=b-8|0;H[j+12>>2]=b;g=H[b>>2];if((g|0)>=0){break l}break n;case 16:if(!I[a+9|0]){break n}l=18;b=0;if(!H[a+96>>2]){break c}q:{if(!(zb[H[H[a+548>>2]+12>>2]](L,H[a+120>>2],H[a+124>>2],H[a+128>>2])|0)){break q}g=zb[H[H[a+548>>2]+16>>2]](L,H[a+120>>2],H[a+124>>2],H[a+128>>2])|0;if(!g){break q}l=g;break c}g=H[j+12>>2];r:{if((g|0)==H[j+8>>2]){g=0;b=H[j+4>>2];if(!b|H[b>>2]){break r}H[b>>2]=161;break r}if(H[g-4>>2]!=2){g=0;b=H[j+4>>2];if(!b|H[b>>2]){break r}H[b>>2]=160;break r}g=g-8|0;H[j+12>>2]=g;g=H[g>>2];if(J>>>0>>0){break c}}n=0;i=H[j+12>>2];b=H[j+8>>2];m=i-b>>3;v=N(H[L+20>>2],g);if(g){r=m-v|0;l=r+g|0;while(1){s=H[L+24>>2];q=i-b>>3;w=n+r|0;s:{if(q>>>0<=w>>>0){m=0;x=H[j+4>>2];if(!x|H[x>>2]){break s}H[x>>2]=130;break s}t:{u:{v:{m=(w<<3)+b|0;switch(H[m+4>>2]-1|0){case 0:break u;case 1:break v;default:break t}}m=H[m>>2]<<16;break s}m=H[m>>2];m=((m>>31)+m|0)- -8192>>14;break s}m=H[m>>2]}x=1;if(K[L+20>>2]>=2){while(1){q=H[s+4>>2];w:{if(i-b>>3>>>0<=l>>>0){b=0;i=H[j+4>>2];if(!i|H[i>>2]){break w}H[i>>2]=130;break w}x:{y:{z:{b=(l<<3)+b|0;switch(H[b+4>>2]-1|0){case 0:break y;case 1:break z;default:break x}}b=H[b>>2]<<16;break w}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break w}b=H[b>>2]}l=l+1|0;s=s+4|0;m=Rb(q,b)+m|0;i=H[j+12>>2];b=H[j+8>>2];x=x+1|0;if(x>>>0>2]){continue}break}q=i-b>>3}A:{if(q>>>0>>0){i=H[j+4>>2];if(!i|H[i>>2]){break A}H[i>>2]=130;break A}i=w<<3;H[i+b>>2]=m;b=H[j+8>>2];H[(i+b|0)+4>>2]=0}i=H[j+12>>2];n=n+1|0;if((n|0)!=(g|0)){continue}break}m=i-b>>3}b=v-g|0;B:{if(m>>>0>>0){b=H[j+4>>2];if(!b|H[b>>2]){break B}H[b>>2]=161;break B}H[j+12>>2]=i-(b<<3)}F[a+93|0]=1;b=f;continue;case 1:case 18:g=k+15752|0;i=k+15791|0;C:{if(!r){if(I[k+15692|0]){break n}f=0;break C}f=H[H[o+32>>2]+4>>2]}Kl(a,j,g,h,i,f);if(!I[o+548|0]){break k}break m;case 3:case 23:g=k+15720|0;i=k+15791|0;D:{if(!r){if(I[k+15692|0]){break n}f=0;break D}f=H[H[o+32>>2]>>2]}Kl(a,j,g,h,i,f);if(I[o+548|0]){break m}break k;case 4:g=H[j+12>>2];m=H[j+8>>2];if(!(I[k+15791|0]|g-m>>>0<16)){E:{F:{switch(H[m+4>>2]-1|0){case 1:b=H[m>>2]<<16;break E;case 0:b=H[m>>2];b=((b>>31)+b|0)- -8192>>14;break E;default:break F}}b=H[m>>2]}H[h>>2]=b+R}F[k+15791|0]=1;if(I[o+548|0]){break m}i=H[k+15976>>2];G:{if((g|0)==(m|0)){g=0;b=H[j+4>>2];if(!b|H[b>>2]){break G}H[b>>2]=161;break G}b=g-8|0;H[j+12>>2]=b;H:{switch(H[b+4>>2]-1|0){case 1:g=H[b>>2]<<16;break G;case 0:b=H[b>>2];g=((b>>31)+b|0)- -8192>>14;break G;default:break H}}g=H[b>>2]}b=g+i|0;H[k+15976>>2]=b;if(H[o+468>>2]){break n}Vi(k+3904|0,H[k+15980>>2],b);break n;case 5:I:{b=H[j+8>>2];l=H[j+12>>2];if((b|0)==(l|0)){break I}q=l-b>>3;g=0;while(1){m=H[k+15980>>2];n=l-b>>3;J:{if(n>>>0<=g>>>0){l=0;i=H[j+4>>2];if(!i|H[i>>2]){break J}H[i>>2]=130;break J}K:{L:{M:{i=(g<<3)+b|0;switch(H[i+4>>2]-1|0){case 0:break L;case 1:break M;default:break K}}l=H[i>>2]<<16;break J}i=H[i>>2];l=((i>>31)+i|0)- -8192>>14;break J}l=H[i>>2]}l=l+m|0;H[k+15980>>2]=l;m=H[k+15976>>2];i=g|1;N:{if(i>>>0>=n>>>0){b=0;i=H[j+4>>2];if(!i|H[i>>2]){break N}H[i>>2]=130;l=H[k+15980>>2];break N}O:{P:{Q:{b=(i<<3)+b|0;switch(H[b+4>>2]-1|0){case 1:break Q;case 0:break P;default:break O}}b=H[b>>2]<<16;break N}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break N}b=H[b>>2]}b=b+m|0;H[k+15976>>2]=b;ii(k+3904|0,l,b);b=H[j+8>>2];g=g+2|0;if(q>>>0<=g>>>0){break I}l=H[j+12>>2];continue}}H[j+12>>2]=b;b=f;continue;case 6:case 7:l=H[j+8>>2];p=H[j+12>>2];if((l|0)!=(p|0)){b=p-l>>3;m=b>>>0>1?b:1;b=(g|0)==6;g=0;while(1){R:{if(p-l>>3>>>0<=g>>>0){l=0;i=H[j+4>>2];if(!i|H[i>>2]){break R}H[i>>2]=130;break R}S:{T:{U:{i=(g<<3)+l|0;switch(H[i+4>>2]-1|0){case 0:break T;case 1:break U;default:break S}}l=H[i>>2]<<16;break R}i=H[i>>2];l=((i>>31)+i|0)- -8192>>14;break R}l=H[i>>2]}V:{if(b&255){l=H[k+15980>>2]+l|0;H[k+15980>>2]=l;p=H[k+15976>>2];break V}p=H[k+15976>>2]+l|0;H[k+15976>>2]=p;l=H[k+15980>>2]}ii(k+3904|0,l,p);g=g+1|0;if((m|0)!=(g|0)){b=b^1;p=H[j+12>>2];l=H[j+8>>2];continue}break}l=H[j+8>>2]}H[j+12>>2]=l;b=f;continue;case 8:case 24:b=0;l=H[j+12>>2];p=H[j+8>>2];i=l-p|0;if(i>>>0<48){break o}r=i>>3;i=6;while(1){m=i;v=l-p>>3;W:{if(v>>>0<=b>>>0){i=0;l=H[j+4>>2];if(!l|H[l>>2]){break W}H[l>>2]=130;break W}X:{Y:{Z:{i=(b<<3)+p|0;switch(H[i+4>>2]-1|0){case 0:break Y;case 1:break Z;default:break X}}i=H[i>>2]<<16;break W}i=H[i>>2];i=((i>>31)+i|0)- -8192>>14;break W}i=H[i>>2]}s=H[k+15980>>2];l=b|1;_:{if(l>>>0>=v>>>0){n=0;l=H[j+4>>2];if(!l|H[l>>2]){break _}H[l>>2]=130;break _}$:{aa:{ba:{l=(l<<3)+p|0;switch(H[l+4>>2]-1|0){case 0:break aa;case 1:break ba;default:break $}}n=H[l>>2]<<16;break _}l=H[l>>2];n=((l>>31)+l|0)- -8192>>14;break _}n=H[l>>2]}q=H[k+15976>>2];l=b+2|0;ca:{if(l>>>0>=v>>>0){l=0;x=H[j+4>>2];if(!x|H[x>>2]){break ca}H[x>>2]=130;break ca}da:{ea:{fa:{l=(l<<3)+p|0;switch(H[l+4>>2]-1|0){case 0:break ea;case 1:break fa;default:break da}}l=H[l>>2]<<16;break ca}l=H[l>>2];l=((l>>31)+l|0)- -8192>>14;break ca}l=H[l>>2]}x=i+s|0;i=b+3|0;ga:{if(i>>>0>=v>>>0){w=0;i=H[j+4>>2];if(!i|H[i>>2]){break ga}H[i>>2]=130;break ga}ha:{ia:{ja:{i=(i<<3)+p|0;switch(H[i+4>>2]-1|0){case 0:break ia;case 1:break ja;default:break ha}}w=H[i>>2]<<16;break ga}i=H[i>>2];w=((i>>31)+i|0)- -8192>>14;break ga}w=H[i>>2]}s=n+q|0;q=l+x|0;i=b+4|0;ka:{if(i>>>0>=v>>>0){l=0;i=H[j+4>>2];if(!i|H[i>>2]){break ka}H[i>>2]=130;break ka}la:{ma:{na:{i=(i<<3)+p|0;switch(H[i+4>>2]-1|0){case 0:break ma;case 1:break na;default:break la}}l=H[i>>2]<<16;break ka}i=H[i>>2];l=((i>>31)+i|0)- -8192>>14;break ka}l=H[i>>2]}n=s+w|0;l=l+q|0;b=b+5|0;oa:{if(b>>>0>=v>>>0){b=0;i=H[j+4>>2];if(!i|H[i>>2]){break oa}H[i>>2]=130;break oa}pa:{qa:{ra:{b=(b<<3)+p|0;switch(H[b+4>>2]-1|0){case 0:break qa;case 1:break ra;default:break pa}}b=H[b>>2]<<16;break oa}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break oa}b=H[b>>2]}b=b+n|0;hh(k+3904|0,x,s,q,n,l,b);H[k+15976>>2]=b;H[k+15980>>2]=l;i=m+6|0;if(r>>>0>>0){b=m;break o}else{l=H[j+12>>2];p=H[j+8>>2];b=m;continue}};default:if(g>>>0<=246){b=H[j+12>>2];if((b|0)==(H[j+8>>2]+(H[j+16>>2]<<3)|0)){b=f;f=H[j+4>>2];if(!f|H[f>>2]){continue}H[f>>2]=130;continue}H[b>>2]=g-139;b=H[j+12>>2];H[b+4>>2]=2;H[j+12>>2]=b+8;b=f;continue}if(g>>>0<=250){sa:{if(i>>>0>>0){H[l>>2]=i+1;l=I[i|0];break sa}l=0;b=H[t>>2];if(!b|H[b>>2]){break sa}H[b>>2]=85}b=H[j+12>>2];if((b|0)==(H[j+8>>2]+(H[j+16>>2]<<3)|0)){b=f;f=H[j+4>>2];if(!f|H[f>>2]){continue}H[f>>2]=130;continue}H[b>>2]=((g<<8)+l|0)-63124;b=H[j+12>>2];H[b+4>>2]=2;H[j+12>>2]=b+8;b=f;continue}if((g|0)!=255){g=0-(g<<8)|0;ta:{if(i>>>0>>0){H[l>>2]=i+1;b=I[i|0];break ta}b=0;i=H[t>>2];if(!i|H[i>>2]){break ta}H[i>>2]=85}Ui(j,(g-b|0)+64148|0);b=f;continue}ua:{if(i>>>0>>0){g=i+1|0;H[l>>2]=g;s=I[i|0];break ua}s=0;b=H[t>>2];if(!(!b|H[b>>2])){H[b>>2]=85}g=i}va:{if(g>>>0>>0){b=g+1|0;H[l>>2]=b;i=I[g|0];break va}i=0;b=H[t>>2];if(!(!b|H[b>>2])){H[b>>2]=85}b=g}wa:{if(b>>>0>>0){g=b+1|0;H[l>>2]=g;n=I[b|0];break wa}n=0;g=H[t>>2];if(!(!g|H[g>>2])){H[g>>2]=85}g=b}xa:{if(g>>>0>>0){H[l>>2]=g+1;g=I[g|0];break xa}g=0;b=H[t>>2];if(!b|H[b>>2]){break xa}H[b>>2]=85}b=i<<16|s<<24|n<<8|g;if(r){Ui(j,b);D=b+32e3>>>0<64001?D:D&255?D:1;b=f;continue}Cd(j,b);b=f;continue;case 28:ya:{if(i>>>0>>0){g=i+1|0;H[l>>2]=g;b=I[i|0];break ya}b=0;g=H[t>>2];if(!(!g|H[g>>2])){H[g>>2]=85}g=i}za:{if(g>>>0>>0){H[l>>2]=g+1;g=I[g|0];break za}g=0;i=H[t>>2];if(!i|H[i>>2]){break za}H[i>>2]=85}i=H[j+12>>2];if((i|0)==(H[j+8>>2]+(H[j+16>>2]<<3)|0)){b=f;f=H[j+4>>2];if(!f|H[f>>2]){continue}H[f>>2]=130;continue}H[i>>2]=(g<<16|b<<24)>>16;b=H[j+12>>2];H[b+4>>2]=2;H[j+12>>2]=b+8;b=f;continue;case 30:case 31:i=H[j+8>>2];b=H[j+12>>2]-i>>3;x=b&-3;b=b&2;if(x>>>0>b>>>0){w=(g|0)==31;while(1){Aa:{if(w&255){v=H[j+8>>2];r=H[j+12>>2]-v>>3;Ba:{if(r>>>0<=b>>>0){p=0;g=H[j+4>>2];if(!g|H[g>>2]){break Ba}H[g>>2]=130;break Ba}Ca:{Da:{Ea:{g=v+(b<<3)|0;switch(H[g+4>>2]-1|0){case 0:break Da;case 1:break Ea;default:break Ca}}p=H[g>>2]<<16;break Ba}g=H[g>>2];p=((g>>31)+g|0)- -8192>>14;break Ba}p=H[g>>2]}q=H[k+15980>>2];l=H[k+15976>>2];g=b+1|0;Fa:{if(r>>>0<=g>>>0){i=0;m=H[j+4>>2];if(!m|H[m>>2]){break Fa}H[m>>2]=130;break Fa}Ga:{Ha:{Ia:{i=v+(g<<3)|0;switch(H[i+4>>2]-1|0){case 0:break Ha;case 1:break Ia;default:break Ga}}i=H[i>>2]<<16;break Fa}i=H[i>>2];i=((i>>31)+i|0)- -8192>>14;break Fa}i=H[i>>2]}m=b+2|0;Ja:{if(m>>>0>=r>>>0){n=0;m=H[j+4>>2];if(!m|H[m>>2]){break Ja}H[m>>2]=130;break Ja}Ka:{La:{Ma:{m=v+(m<<3)|0;switch(H[m+4>>2]-1|0){case 0:break La;case 1:break Ma;default:break Ka}}n=H[m>>2]<<16;break Ja}m=H[m>>2];n=((m>>31)+m|0)- -8192>>14;break Ja}n=H[m>>2]}p=p+q|0;s=l+n|0;m=b+3|0;Na:{if(m>>>0>=r>>>0){w=0;m=H[j+4>>2];if(!m|H[m>>2]){break Na}H[m>>2]=130;break Na}Oa:{Pa:{Qa:{m=v+(m<<3)|0;switch(H[m+4>>2]-1|0){case 0:break Pa;case 1:break Qa;default:break Oa}}w=H[m>>2]<<16;break Na}m=H[m>>2];w=((m>>31)+m|0)- -8192>>14;break Na}w=H[m>>2]}n=i+p|0;i=s+w|0;w=0;if((x-b|0)!=5){g=b;m=n;break Aa}b=b+4|0;Ra:{if(b>>>0>=r>>>0){m=H[j+4>>2];b=0;if(!m|H[m>>2]){break Ra}H[m>>2]=130;m=n;break Aa}Sa:{Ta:{Ua:{b=v+(b<<3)|0;switch(H[b+4>>2]-1|0){case 0:break Ta;case 1:break Ua;default:break Sa}}m=(H[b>>2]<<16)+n|0;break Aa}b=H[b>>2];m=(((b>>31)+b|0)- -8192>>14)+n|0;break Aa}b=H[b>>2]}m=b+n|0;break Aa}p=H[k+15980>>2];r=H[j+8>>2];q=H[j+12>>2]-r>>3;Va:{if(q>>>0<=b>>>0){l=0;g=H[j+4>>2];if(!g|H[g>>2]){break Va}H[g>>2]=130;break Va}Wa:{Xa:{Ya:{g=r+(b<<3)|0;switch(H[g+4>>2]-1|0){case 0:break Xa;case 1:break Ya;default:break Wa}}l=H[g>>2]<<16;break Va}g=H[g>>2];l=((g>>31)+g|0)- -8192>>14;break Va}l=H[g>>2]}n=H[k+15976>>2];g=b+1|0;Za:{if(q>>>0<=g>>>0){m=0;i=H[j+4>>2];if(!i|H[i>>2]){break Za}H[i>>2]=130;break Za}_a:{$a:{ab:{i=r+(g<<3)|0;switch(H[i+4>>2]-1|0){case 0:break $a;case 1:break ab;default:break _a}}m=H[i>>2]<<16;break Za}i=H[i>>2];m=((i>>31)+i|0)- -8192>>14;break Za}m=H[i>>2]}i=b+2|0;bb:{if(i>>>0>=q>>>0){w=0;i=H[j+4>>2];if(!i|H[i>>2]){break bb}H[i>>2]=130;break bb}cb:{db:{eb:{i=r+(i<<3)|0;switch(H[i+4>>2]-1|0){case 0:break db;case 1:break eb;default:break cb}}w=H[i>>2]<<16;break bb}i=H[i>>2];w=((i>>31)+i|0)- -8192>>14;break bb}w=H[i>>2]}l=l+n|0;n=m+p|0;i=b+3|0;fb:{if(i>>>0>=q>>>0){m=0;i=H[j+4>>2];if(!i|H[i>>2]){break fb}H[i>>2]=130;break fb}gb:{hb:{ib:{i=r+(i<<3)|0;switch(H[i+4>>2]-1|0){case 0:break hb;case 1:break ib;default:break gb}}m=H[i>>2]<<16;break fb}i=H[i>>2];m=((i>>31)+i|0)- -8192>>14;break fb}m=H[i>>2]}s=l+w|0;m=m+n|0;w=1;if((x-b|0)!=5){g=b;i=s;break Aa}b=b+4|0;jb:{if(b>>>0>=q>>>0){b=0;i=H[j+4>>2];if(!i|H[i>>2]){break jb}H[i>>2]=130;break jb}kb:{lb:{mb:{b=r+(b<<3)|0;switch(H[b+4>>2]-1|0){case 0:break lb;case 1:break mb;default:break kb}}b=H[b>>2]<<16;break jb}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break jb}b=H[b>>2]}i=b+s|0}hh(k+3904|0,p,l,n,s,m,i);H[k+15976>>2]=i;H[k+15980>>2]=m;b=g+4|0;if(x>>>0>b>>>0){continue}break}i=H[j+8>>2]}H[j+12>>2]=i;b=f;continue;case 27:b=H[j+8>>2];r=H[j+12>>2]-b>>3;s=r&-3;g=r&2;if(s>>>0>g>>>0){while(1){nb:{if(r-g&1){p=H[j+8>>2];b=H[j+12>>2]-p>>3;ob:{if(g>>>0>=b>>>0){l=0;i=H[j+4>>2];if(!i|H[i>>2]){break ob}H[i>>2]=130;break ob}pb:{qb:{rb:{i=(g<<3)+p|0;switch(H[i+4>>2]-1|0){case 0:break qb;case 1:break rb;default:break pb}}l=H[i>>2]<<16;break ob}i=H[i>>2];l=((i>>31)+i|0)- -8192>>14;break ob}l=H[i>>2]}g=g+1|0;i=H[k+15976>>2]+l|0;break nb}p=H[j+8>>2];b=H[j+12>>2]-p>>3;i=H[k+15976>>2]}sb:{if(b>>>0<=g>>>0){l=0;m=H[j+4>>2];if(!m|H[m>>2]){break sb}H[m>>2]=130;break sb}tb:{ub:{vb:{m=(g<<3)+p|0;switch(H[m+4>>2]-1|0){case 0:break ub;case 1:break vb;default:break tb}}l=H[m>>2]<<16;break sb}m=H[m>>2];l=((m>>31)+m|0)- -8192>>14;break sb}l=H[m>>2]}n=H[k+15980>>2];m=g+1|0;wb:{if(m>>>0>=b>>>0){m=0;q=H[j+4>>2];if(!q|H[q>>2]){break wb}H[q>>2]=130;break wb}xb:{yb:{zb:{m=(m<<3)+p|0;switch(H[m+4>>2]-1|0){case 0:break yb;case 1:break zb;default:break xb}}m=H[m>>2]<<16;break wb}m=H[m>>2];m=((m>>31)+m|0)- -8192>>14;break wb}m=H[m>>2]}q=l+n|0;l=g+2|0;Ab:{if(l>>>0>=b>>>0){l=0;n=H[j+4>>2];if(!n|H[n>>2]){break Ab}H[n>>2]=130;break Ab}Bb:{Cb:{Db:{l=(l<<3)+p|0;switch(H[l+4>>2]-1|0){case 0:break Cb;case 1:break Db;default:break Bb}}l=H[l>>2]<<16;break Ab}l=H[l>>2];l=((l>>31)+l|0)- -8192>>14;break Ab}l=H[l>>2]}n=m+q|0;l=i+l|0;m=b;b=g+3|0;Eb:{if(m>>>0<=b>>>0){b=0;m=H[j+4>>2];if(!m|H[m>>2]){break Eb}H[m>>2]=130;break Eb}Fb:{Gb:{Hb:{b=(b<<3)+p|0;switch(H[b+4>>2]-1|0){case 0:break Gb;case 1:break Hb;default:break Fb}}b=H[b>>2]<<16;break Eb}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break Eb}b=H[b>>2]}b=b+n|0;hh(k+3904|0,q,i,n,l,b,l);H[k+15976>>2]=l;H[k+15980>>2]=b;g=g+4|0;if(s>>>0>g>>>0){continue}break}b=H[j+8>>2]}H[j+12>>2]=b;b=f;continue;case 26:b=H[j+8>>2];r=H[j+12>>2]-b>>3;s=r&-3;g=r&2;if(s>>>0>g>>>0){while(1){Ib:{if(r-g&1){p=H[j+8>>2];b=H[j+12>>2]-p>>3;Jb:{if(g>>>0>=b>>>0){l=0;i=H[j+4>>2];if(!i|H[i>>2]){break Jb}H[i>>2]=130;break Jb}Kb:{Lb:{Mb:{i=(g<<3)+p|0;switch(H[i+4>>2]-1|0){case 0:break Lb;case 1:break Mb;default:break Kb}}l=H[i>>2]<<16;break Jb}i=H[i>>2];l=((i>>31)+i|0)- -8192>>14;break Jb}l=H[i>>2]}g=g+1|0;i=H[k+15980>>2]+l|0;break Ib}p=H[j+8>>2];b=H[j+12>>2]-p>>3;i=H[k+15980>>2]}Nb:{if(b>>>0<=g>>>0){l=0;m=H[j+4>>2];if(!m|H[m>>2]){break Nb}H[m>>2]=130;break Nb}Ob:{Pb:{Qb:{m=(g<<3)+p|0;switch(H[m+4>>2]-1|0){case 0:break Pb;case 1:break Qb;default:break Ob}}l=H[m>>2]<<16;break Nb}m=H[m>>2];l=((m>>31)+m|0)- -8192>>14;break Nb}l=H[m>>2]}n=H[k+15976>>2];m=g+1|0;Rb:{if(m>>>0>=b>>>0){m=0;q=H[j+4>>2];if(!q|H[q>>2]){break Rb}H[q>>2]=130;break Rb}Sb:{Tb:{Ub:{m=(m<<3)+p|0;switch(H[m+4>>2]-1|0){case 0:break Tb;case 1:break Ub;default:break Sb}}m=H[m>>2]<<16;break Rb}m=H[m>>2];m=((m>>31)+m|0)- -8192>>14;break Rb}m=H[m>>2]}q=l+n|0;l=g+2|0;Vb:{if(l>>>0>=b>>>0){n=0;l=H[j+4>>2];if(!l|H[l>>2]){break Vb}H[l>>2]=130;break Vb}Wb:{Xb:{Yb:{l=(l<<3)+p|0;switch(H[l+4>>2]-1|0){case 0:break Xb;case 1:break Yb;default:break Wb}}n=H[l>>2]<<16;break Vb}l=H[l>>2];n=((l>>31)+l|0)- -8192>>14;break Vb}n=H[l>>2]}x=i+m|0;l=n+q|0;m=b;b=g+3|0;Zb:{if(m>>>0<=b>>>0){b=0;m=H[j+4>>2];if(!m|H[m>>2]){break Zb}H[m>>2]=130;break Zb}_b:{$b:{ac:{b=(b<<3)+p|0;switch(H[b+4>>2]-1|0){case 0:break $b;case 1:break ac;default:break _b}}b=H[b>>2]<<16;break Zb}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break Zb}b=H[b>>2]}b=b+l|0;hh(k+3904|0,i,q,x,l,x,b);H[k+15976>>2]=b;H[k+15980>>2]=x;g=g+4|0;if(s>>>0>g>>>0){continue}break}b=H[j+8>>2]}H[j+12>>2]=b;b=f;continue;case 25:l=H[j+12>>2];b=H[j+8>>2];i=l-b|0;x=i>>3;g=0;if(i>>>0>48){while(1){m=H[k+15980>>2];n=l-b>>3;bc:{if(n>>>0<=g>>>0){l=0;i=H[j+4>>2];if(!i|H[i>>2]){break bc}H[i>>2]=130;break bc}cc:{dc:{ec:{i=(g<<3)+b|0;switch(H[i+4>>2]-1|0){case 0:break dc;case 1:break ec;default:break cc}}l=H[i>>2]<<16;break bc}i=H[i>>2];l=((i>>31)+i|0)- -8192>>14;break bc}l=H[i>>2]}l=l+m|0;H[k+15980>>2]=l;m=H[k+15976>>2];i=g|1;fc:{if(i>>>0>=n>>>0){b=0;i=H[j+4>>2];if(!i|H[i>>2]){break fc}H[i>>2]=130;l=H[k+15980>>2];break fc}gc:{hc:{ic:{b=(i<<3)+b|0;switch(H[b+4>>2]-1|0){case 0:break hc;case 1:break ic;default:break gc}}b=H[b>>2]<<16;break fc}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break fc}b=H[b>>2]}b=b+m|0;H[k+15976>>2]=b;ii(k+3904|0,l,b);i=g+2|0;if(x>>>0>g+8>>>0){l=H[j+12>>2];b=H[j+8>>2];g=i;continue}break}g=i}if(g>>>0>>0){while(1){w=H[j+8>>2];v=H[j+12>>2]-w>>3;jc:{if(v>>>0<=g>>>0){p=0;b=H[j+4>>2];if(!b|H[b>>2]){break jc}H[b>>2]=130;break jc}kc:{lc:{mc:{b=w+(g<<3)|0;switch(H[b+4>>2]-1|0){case 0:break lc;case 1:break mc;default:break kc}}p=H[b>>2]<<16;break jc}b=H[b>>2];p=((b>>31)+b|0)- -8192>>14;break jc}p=H[b>>2]}l=H[k+15980>>2];b=g|1;nc:{if(b>>>0>=v>>>0){i=0;b=H[j+4>>2];if(!b|H[b>>2]){break nc}H[b>>2]=130;break nc}oc:{pc:{qc:{b=w+(b<<3)|0;switch(H[b+4>>2]-1|0){case 0:break pc;case 1:break qc;default:break oc}}i=H[b>>2]<<16;break nc}b=H[b>>2];i=((b>>31)+b|0)- -8192>>14;break nc}i=H[b>>2]}m=H[k+15976>>2];b=g+2|0;rc:{if(b>>>0>=v>>>0){n=0;b=H[j+4>>2];if(!b|H[b>>2]){break rc}H[b>>2]=130;break rc}sc:{tc:{uc:{b=w+(b<<3)|0;switch(H[b+4>>2]-1|0){case 0:break tc;case 1:break uc;default:break sc}}n=H[b>>2]<<16;break rc}b=H[b>>2];n=((b>>31)+b|0)- -8192>>14;break rc}n=H[b>>2]}r=l+p|0;b=g+3|0;vc:{if(b>>>0>=v>>>0){l=0;b=H[j+4>>2];if(!b|H[b>>2]){break vc}H[b>>2]=130;break vc}wc:{xc:{yc:{b=w+(b<<3)|0;switch(H[b+4>>2]-1|0){case 0:break xc;case 1:break yc;default:break wc}}l=H[b>>2]<<16;break vc}b=H[b>>2];l=((b>>31)+b|0)- -8192>>14;break vc}l=H[b>>2]}s=i+m|0;q=n+r|0;b=g+4|0;zc:{if(b>>>0>=v>>>0){n=0;b=H[j+4>>2];if(!b|H[b>>2]){break zc}H[b>>2]=130;break zc}Ac:{Bc:{Cc:{b=w+(b<<3)|0;switch(H[b+4>>2]-1|0){case 0:break Bc;case 1:break Cc;default:break Ac}}n=H[b>>2]<<16;break zc}b=H[b>>2];n=((b>>31)+b|0)- -8192>>14;break zc}n=H[b>>2]}l=l+s|0;m=n+q|0;b=g+5|0;Dc:{if(b>>>0>=v>>>0){b=0;i=H[j+4>>2];if(!i|H[i>>2]){break Dc}H[i>>2]=130;break Dc}Ec:{Fc:{Gc:{b=w+(b<<3)|0;switch(H[b+4>>2]-1|0){case 0:break Fc;case 1:break Gc;default:break Ec}}b=H[b>>2]<<16;break Dc}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break Dc}b=H[b>>2]}b=b+l|0;hh(k+3904|0,r,s,q,l,m,b);H[k+15976>>2]=b;H[k+15980>>2]=m;g=g+6|0;if(x>>>0>g>>>0){continue}break}}H[j+12>>2]=H[j+8>>2];b=f;continue;case 22:g=H[j+12>>2];m=H[j+8>>2];if(!(I[k+15791|0]|g-m>>>0<16)){Hc:{Ic:{switch(H[m+4>>2]-1|0){case 1:b=H[m>>2]<<16;break Hc;case 0:b=H[m>>2];b=((b>>31)+b|0)- -8192>>14;break Hc;default:break Ic}}b=H[m>>2]}H[h>>2]=b+R}F[k+15791|0]=1;if(I[o+548|0]){break m}i=H[k+15980>>2];Jc:{if((g|0)==(m|0)){g=0;b=H[j+4>>2];if(!b|H[b>>2]){break Jc}H[b>>2]=161;break Jc}b=g-8|0;H[j+12>>2]=b;Kc:{switch(H[b+4>>2]-1|0){case 1:g=H[b>>2]<<16;break Jc;case 0:b=H[b>>2];g=((b>>31)+b|0)- -8192>>14;break Jc;default:break Kc}}g=H[b>>2]}b=g+i|0;H[k+15980>>2]=b;if(H[o+468>>2]){break n}Vi(k+3904|0,b,H[k+15976>>2]);b=f;break k;case 21:m=H[j+12>>2];n=H[j+8>>2];if(!(I[k+15791|0]|m-n>>>0<24)){Lc:{Mc:{switch(H[n+4>>2]-1|0){case 1:b=H[n>>2]<<16;break Lc;case 0:b=H[n>>2];b=((b>>31)+b|0)- -8192>>14;break Lc;default:break Mc}}b=H[n>>2]}H[h>>2]=b+R}F[k+15791|0]=1;if(I[o+548|0]){break m}i=H[k+15976>>2];Nc:{Oc:{Pc:{if((m|0)==(n|0)){b=H[j+4>>2];if(!(!b|H[b>>2])){H[b>>2]=161}H[k+15976>>2]=i;p=H[k+15980>>2];break Pc}l=m-8|0;H[j+12>>2]=l;Qc:{Rc:{switch(H[l+4>>2]-1|0){case 0:g=H[l>>2];b=((g>>31)+g|0)- -8192>>14;break Qc;default:b=H[l>>2];break Qc;case 1:break Rc}}b=H[l>>2]<<16}H[k+15976>>2]=b+i;p=H[k+15980>>2];if((l|0)!=(n|0)){break Oc}}g=0;b=H[j+4>>2];if(!b|H[b>>2]){break Nc}H[b>>2]=161;break Nc}b=m-16|0;H[j+12>>2]=b;Sc:{switch(H[b+4>>2]-1|0){case 1:g=H[b>>2]<<16;break Nc;case 0:b=H[b>>2];g=((b>>31)+b|0)- -8192>>14;break Nc;default:break Sc}}g=H[b>>2]}b=g+p|0;H[k+15980>>2]=b;if(H[o+468>>2]){break n}Vi(k+3904|0,b,H[k+15976>>2]);b=f;break k;case 19:case 20:if(I[k+15692|0]?H[j+12>>2]-H[j+8>>2]>>>0>=16:0){break n}b=0;Kl(a,j,k+15720|0,h,k+15791|0,0);if(I[o+548|0]){l=0;break c}if((g|0)==19){b=H[k+15740>>2]+H[k+15772>>2]|0;if(b>>>0>=97){b=H[k+15688>>2];if(!b|H[b>>2]){break n}H[b>>2]=18;b=f;break k}H[k+15696>>2]=b;G[k+15692>>1]=257;H[k+15700>>2]=b+7>>>3;if(!b){break n}g=0;while(1){b=H[l>>2];Tc:{if(b>>>0>2]){H[l>>2]=b+1;b=I[b|0];break Tc}b=0;i=H[t>>2];if(!i|H[i>>2]){break Tc}H[i>>2]=85}F[(g+k|0)+15704|0]=b;g=g+1|0;if(g>>>0>2]){continue}break}break n}Nb(U,0,3856);b=I[a+184|0];H[k+48>>2]=O;F[k+45|0]=b;H[k+40>>2]=P;H[k+36>>2]=Q;H[k+32>>2]=a;H[M+16>>2]=0;H[M+20>>2]=0;H[M+8>>2]=0;H[M+12>>2]=0;H[M>>2]=0;H[M+4>>2]=0;H[k>>2]=E;b=H[k+15740>>2]+H[k+15772>>2]|0;Uc:{if(b>>>0>=97){if(H[a+4>>2]){break Uc}H[a+4>>2]=18;break Uc}H[k+8>>2]=b;G[k+4>>1]=257;H[k+12>>2]=b+7>>>3;if(!b){break Uc}g=0;while(1){b=H[l>>2];Vc:{if(b>>>0>2]){H[l>>2]=b+1;b=I[b|0];break Vc}b=0;i=H[t>>2];if(!i|H[i>>2]){break Vc}H[i>>2]=85}F[(g+k|0)+16|0]=b;g=g+1|0;if(g>>>0>2]){continue}break}}gk(k+32|0,k+15752|0,k+15720|0,k,0,0);b=f;break k;case 14:if(!(!r|f&255)){Vi(k+3904|0,H[k+15980>>2],H[k+15976>>2]);H[k+15772>>2]=0;H[k+15740>>2]=0;H[y+16>>2]=0;H[y+20>>2]=0;H[y+8>>2]=0;H[y+12>>2]=0;H[y>>2]=0;H[y+4>>2]=0;H[k+15688>>2]=E;F[k+15693|0]=1;if((A|0)>0){g=A;Wc:{if(!(g&1)){break Wc}g=A-1|0;if(g>>>0<17){l=g;break Wc}l=0;if(H[a+4>>2]){break Wc}H[a+4>>2]=130}if((A|0)!=1){while(1){b=g-1|0;if(!(H[a+4>>2]|b>>>0<17)){H[a+4>>2]=130}g=g-2|0;l=g;Xc:{if(g>>>0<17){break Xc}l=0;if(H[a+4>>2]){break Xc}H[a+4>>2]=130}if(b>>>0>1){continue}break}}t=(l<<4)+C|0;A=0}H[t+12>>2]=H[t+4>>2];b=1;break k}b=H[j+12>>2]-H[j+8>>2]|0;Yc:{Zc:{if((b|0)!=8){if((b|0)!=40){break Yc}if(!I[k+15791|0]){break Zc}break Yc}if(I[k+15791|0]){break Yc}}W=h,X=Dg(j,0)+R|0,H[W>>2]=X}F[k+15791|0]=1;if(I[o+548|0]){break m}b=k+3904|0;if(I[b+11664|0]){F[b+11665|0]=1;ii(b,H[b+11736>>2],H[b+11740>>2]);if(I[b+11744|0]){fk(b,b+8|0,b+11704|0,H[b+11712>>2],H[b+11716>>2],1)}F[b+11744|0]=0;G[b+11664>>1]=0;F[b+11667|0]=1}if(I[a+9|0]|I[a+8|0]|H[j+12>>2]-H[j+8>>2]>>>0<9){break m}l=18;_c:{if(e){break _c}b=Se(j);e=Se(j);W=k,X=Ec(j),H[W+15976>>2]=X;W=k,X=Ec(j),H[W+15980>>2]=X;l=hv(o,b,k+32|0);if(l){break _c}f=k+32|0;lk(a,f,c,d,1,H[k+15980>>2],H[k+15976>>2],k);b=f|4;zb[H[o+600>>2]](H[o+4>>2],b,H[k+40>>2]-H[k+36>>2]|0);l=hv(o,e,f);if(l){break _c}l=0;lk(a,k+32|0,c,d,1,0,0,k);zb[H[o+600>>2]](H[o+4>>2],b,H[k+40>>2]-H[k+36>>2]|0)}b=0;break c;case 13:if(!r){break n}g=H[j+12>>2];i=H[j+8>>2];$c:{if((g|0)==(i|0)){p=0;b=H[j+4>>2];if(!b|H[b>>2]){break $c}H[b>>2]=161;break $c}g=g-8|0;H[j+12>>2]=g;ad:{switch(H[g+4>>2]-1|0){case 1:p=H[g>>2]<<16;break $c;case 0:b=H[g>>2];p=((b>>31)+b|0)- -8192>>14;break $c;default:break ad}}p=H[g>>2]}b=H[o+36>>2];H[b+4>>2]=0;H[b>>2]=p;bd:{if((g|0)==(i|0)){g=0;b=H[j+4>>2];if(!b|H[b>>2]){break bd}H[b>>2]=161;break bd}b=g-8|0;H[j+12>>2]=b;cd:{switch(H[b+4>>2]-1|0){case 1:g=H[b>>2]<<16;break bd;case 0:b=H[b>>2];g=((b>>31)+b|0)- -8192>>14;break bd;default:break cd}}g=H[b>>2]}b=H[o+32>>2];H[b>>2]=H[b>>2]+g;F[k+15791|0]=1;if(I[o+47|0]){break m}if(!(f&255)){b=0;break k}H[k+15980>>2]=H[k+15980>>2]+g;b=f;break k;case 12:dd:{if(i>>>0>=q>>>0){b=H[t>>2];if(b){g=0;if(H[b>>2]){break dd}H[b>>2]=85}g=0;break dd}H[l>>2]=i+1;ed:{fd:{gd:{hd:{g=I[i|0];switch(g-8|0){case 0:case 5:case 11:case 17:case 23:case 24:break k;case 29:break ed;case 28:break fd;case 27:break gd;case 26:break hd;default:break dd}}Jl(j,k+15980|0,k+15976|0,k+3904|0,31308,0);continue}Jl(j,k+15980|0,k+15976|0,k+3904|0,31320,0);break k}Jl(j,k+15980|0,k+15976|0,k+3904|0,31332,0);continue}Jl(j,k+15980|0,k+15976|0,k+3904|0,31344,1);continue}if(I[a+9|0]|g>>>0>37){break n}if(!(!r|(u|0)<=0|(g|0)==17)){u=0;b=f;break k}b=f;id:{jd:{kd:{ld:{switch(g-1|0){case 0:case 1:if(!r){break n}l=Dg(j,0);n=Dg(j,2);m=Dg(j,4);i=Dg(j,1);b=H[j+8>>2];md:{if(H[j+12>>2]-b>>>0<=15){b=H[j+4>>2];if(!b|H[b>>2]){break md}H[b>>2]=130;break md}H[b+16>>2]=n-(i+l|0);H[H[j+8>>2]+20>>2]=0}i=Dg(j,3);b=H[j+8>>2];nd:{if(H[j+12>>2]-b>>>0<=31){b=H[j+4>>2];if(!b|H[b>>2]){break nd}H[b>>2]=130;break nd}H[b+32>>2]=m-(i+n|0);H[H[j+8>>2]+36>>2]=0}Kl(a,j,(g|0)==1?k+15720|0:k+15752|0,h,k+15791|0,H[H[o+32>>2]+(((g|0)!=1)<<2)>>2]);b=f;if(I[o+548|0]){break m}break k;case 2:b=Ec(j);Ui(j,(Ec(j)|0)!=0&(b|0)!=0);b=f;continue;case 3:Ui(j,(Ec(j)|Ec(j))!=0);continue;case 4:Ui(j,!Ec(j));continue;case 5:if(!r){break k}h=H[o+4>>2];l=18;g=Se(j);b=Se(j);u=Ec(j);f=Ec(j);y=Ec(j);od:{if(I[o+47|0]|e){break od}e=H[H[h+128>>2]+52>>2];pd:{if(!H[o+580>>2]){if(!e){break od}J=H[H[o+32>>2]>>2];break pd}J=H[H[o+32>>2]>>2];if(e){break pd}b=gv(o,b);g=gv(o,g)}if((b|g)<0){break od}m=f+J|0;qd:{if(I[o+46|0]){e=H[o+8>>2];d=H[H[e+156>>2]>>2];l=lD(d,2);if(l){break od}c=H[d+88>>2];H[c+32>>2]=g;H[c+8>>2]=0;H[c+12>>2]=0;G[c+4>>1]=514;H[c>>2]=b;G[c+36>>1]=2;b=m-y|0;H[c+40>>2]=(((b>>31)+b|0)+32768&-65536)>>16;H[c+44>>2]=((u+(u>>31)|0)+32768&-65536)>>16;H[e+128>>2]=2;b=H[d+52>>2];H[e+72>>2]=1668246896;H[e+132>>2]=b;H[d+84>>2]=2;break qd}e=H[o+12>>2];H[e+56>>2]=0;H[e+84>>2]=0;f=H[e+24>>2];if(f){f=f+(G[e+22>>1]<<3)|0}else{f=0}H[e+60>>2]=f;h=e- -64|0;f=H[e+28>>2];if(f){f=f+G[e+22>>1]|0}else{f=0}H[h>>2]=f;f=H[e+32>>2];if(f){f=f+(G[e+20>>1]<<1)|0}else{f=0}H[e+68>>2]=f;if(I[e+16|0]){f=G[e+22>>1]<<3;H[e+76>>2]=f+H[e+40>>2];H[e+80>>2]=f+H[e+44>>2]}f=H[e+52>>2];if(f){f=f+(H[e+48>>2]<<5)|0}else{f=0}H[e+88>>2]=f;l=fv(H[o+4>>2],b,k+32|0);if(l){break od}b=H[o+36>>2];s=H[b>>2];q=H[b+4>>2];b=H[o+32>>2];n=H[b>>2];i=H[b+4>>2];lk(a,k+32|0,c,d,1,0,0,k+3900|0);e=H[H[H[o+4>>2]+128>>2]+52>>2];b=H[k+36>>2];H[k+4>>2]=H[k+40>>2]-b;H[k>>2]=b;if(e){zb[H[H[e>>2]+4>>2]](H[e+4>>2],k)}rd:{if(I[k+15791|0]){b=H[o+32>>2];break rd}b=H[o+36>>2];s=H[b>>2];q=H[b+4>>2];b=H[o+32>>2];n=H[b>>2];i=H[b+4>>2]}H[b>>2]=0;H[b+4>>2]=0;l=fv(H[o+4>>2],g,k+32|0);if(l){break od}lk(a,k+32|0,c,d,1,m-y|0,u,k+3900|0);c=H[H[H[o+4>>2]+128>>2]+52>>2];b=H[k+36>>2];H[k+4>>2]=H[k+40>>2]-b;H[k>>2]=b;if(c){zb[H[H[c>>2]+4>>2]](H[c+4>>2],k)}b=H[o+32>>2];H[b>>2]=n;H[b+4>>2]=i;b=H[o+36>>2];H[b>>2]=s;H[b+4>>2]=q}l=0}b=0;break c;case 6:if(!r){break n}b=Ec(j);H[H[o+36>>2]+4>>2]=b;b=Ec(j);H[H[o+36>>2]>>2]=b;g=Ec(j);b=Ec(j);i=H[o+32>>2];H[i>>2]=b+H[i>>2];H[i+4>>2]=g+H[i+4>>2];F[k+15791|0]=1;if(I[o+47|0]){break m}if(!(f&255)){b=0;break k}H[k+15980>>2]=b+H[k+15980>>2];H[k+15976>>2]=g+H[k+15976>>2];b=f;break k;case 8:b=Ec(j);if((b|0)==-2147483648){Cd(j,2147483647);b=f;continue}g=b;b=b>>31;Cd(j,(g^b)-b|0);b=f;continue;case 9:Cd(j,Ec(j)+Ec(j)|0);continue;case 10:b=Ec(j);Cd(j,Ec(j)-b|0);b=f;continue;case 11:sd:{if(!(!r|!(D&255))){D=0;g=Se(j);f=Se(j);break sd}g=Ec(j);f=Ec(j)}Cd(j,dc(f,g));continue;case 13:b=Ec(j);if((b|0)==-2147483648){Cd(j,2147483647);b=f;continue}Cd(j,0-b|0);b=f;continue;case 14:Ui(j,(Ec(j)|0)==(Ec(j)|0));continue;case 15:if(!r){continue}m=Se(j);n=Se(j);g=H[j+8>>2];td:{switch(m|0){case 0:l=18;b=0;if((n|0)!=3|(!H[o+468>>2]|H[o+472>>2]!=7?f&255:0)){break c}Cd(j,H[k+15980>>2]);Cd(j,H[k+15976>>2]);z=2;break jd;case 1:if(n){break j}u=0;b=0;z=0;if(!(f&255)){continue}ud:{g=H[o+12>>2];if((G[g+22>>1]+G[g+58>>1]|0)+6>>>0<=K[g+4>>2]){break ud}if(!ee(g,6,0)){break ud}l=0;break c}H[o+468>>2]=1;H[o+472>>2]=0;break id;case 2:l=18;if(n){b=0;break c}u=0;b=0;z=0;if(!(f&255)){continue}if(!H[o+468>>2]){break c}i=H[o+472>>2];H[o+472>>2]=i+1;b=f;if(i-1>>>0>5){continue}g=H[o+12>>2];if((G[g+22>>1]+G[g+58>>1]|0)+1>>>0>K[g+4>>2]){b=0;if(ee(g,1,0)){break c}}b=i<<1;b=(k+15792|0)+((i>>>0>3?b-6|0:b)<<2)|0;H[b-8>>2]=H[k+15980>>2];H[b-4>>2]=H[k+15976>>2];b=f;vd:{switch(i-3|0){case 0:case 3:break vd;default:continue}}hh(k+3904|0,H[k+15792>>2],H[k+15796>>2],H[k+15800>>2],H[k+15804>>2],H[k+15808>>2],H[k+15812>>2]);continue e;case 3:z=1;if((n|0)!=1){break j}u=0;b=0;if(!(f&255)){continue}H[k+15772>>2]=0;H[k+15740>>2]=0;H[y+16>>2]=0;H[y+20>>2]=0;H[y+8>>2]=0;H[y+12>>2]=0;H[y>>2]=0;H[y+4>>2]=0;F[k+15693|0]=1;H[k+15688>>2]=E;b=f;continue;case 12:case 13:H[j+12>>2]=g;break id;case 14:case 15:case 16:case 17:case 18:b=0;l=18;i=H[o+644>>2];if(!i){break c}z=(m+((m|0)==18)|0)-13|0;if((n|0)!=(N(z,H[i>>2])|0)){break c}u=(H[j+12>>2]-g>>3)-n|0;b=z+u|0;s=0;while(1){l=Dg(j,u);g=1;if(K[i>>2]>=2){while(1){l=Rb(Dg(j,b),H[H[i+136>>2]+(g<<2)>>2])+l|0;b=b+1|0;g=g+1|0;if(g>>>0>2]){continue}break}}g=H[j+8>>2];wd:{if(H[j+12>>2]-g>>3>>>0>>0){g=H[j+4>>2];if(!g|H[g>>2]){break wd}H[g>>2]=130;break wd}m=g;g=u<<3;H[m+g>>2]=l;H[(g+H[j+8>>2]|0)+4>>2]=0}u=u+1|0;s=s+1|0;if((z|0)!=(s|0)){continue}break};b=n-z|0;g=H[j+12>>2];if(b>>>0>g-H[j+8>>2]>>3>>>0){u=0;b=f;f=H[j+4>>2];if(!f|H[f>>2]){continue}H[f>>2]=161;continue}H[j+12>>2]=g-(b<<3);break jd;case 19:l=18;b=0;if((n|0)!=1){break c}m=H[o+644>>2];if(!m){break c}i=Se(j);if((i|0)<0){break c}g=H[m>>2];if(K[o+652>>2]>>0){break c}Ob(H[o+648>>2]+(i<<2)|0,H[m+136>>2],g<<2);break id;case 20:if((n|0)!=2){break j}Cd(j,Ec(j)+Ec(j)|0);break kd;case 21:if((n|0)!=2){break j}b=Ec(j);Cd(j,Ec(j)-b|0);break kd;case 22:if((n|0)!=2){break j}b=Ec(j);Cd(j,Rb(Ec(j),b));break kd;case 23:l=18;b=0;if((n|0)!=2){break c}i=Ec(j);g=Ec(j);if(!i){break c}Cd(j,dc(g,i));break kd;case 24:l=18;b=0;if(!H[o+644>>2]|(n|0)!=2){break c}g=Se(j);if((g|0)<0|g>>>0>=K[o+652>>2]){break c}b=Ec(j);H[H[o+648>>2]+(g<<2)>>2]=b;break id;case 25:l=18;b=0;if(!H[o+644>>2]|(n|0)!=1){break c}g=Se(j);if((g|0)<0|g>>>0>=K[o+652>>2]){break c}Cd(j,H[H[o+648>>2]+(g<<2)>>2]);break kd;case 27:if((n|0)!=4){break j}g=Ec(j);b=Ec(j);Cd(j,(W=Ec(j),X=Ec(j),Y=(b|0)>(g|0),Y?W:X));break kd;case 28:if(n){break j}g=H[o+536>>2];i=H[g+648>>2];b=i<<13^i;b=b>>>17^b;H[g+648>>2]=b^b<<5;z=1;Cd(j,(i&65535)+1|0);break jd;default:break td}}b=0;l=18;if((n|0)<0){break c}z=0;if((m|0)<0){break c}u=0;b=f;g=1;f=n>>>0<3?n:3;if(!f){continue}while(1){W=(k+15960|0)+(f-g<<2)|0,X=Ec(j),H[W>>2]=X;i=(f|0)==(g|0);g=g+1|0;if(!i){continue}break};u=f;continue;case 16:if(!r){continue}if((z|0)>0){z=z-1|0;continue}if(!u){break j}u=u-1|0;Cd(j,H[(k+15960|0)+(u<<2)>>2]);continue;case 17:Ec(j);continue;case 19:g=Se(j);f=Ec(j);if(g>>>0>31){continue}H[(k+15824|0)+(g<<2)>>2]=f;continue;case 20:f=Se(j);if(f>>>0>31){continue}Cd(j,H[(k+15824|0)+(f<<2)>>2]);continue;case 21:g=Ec(j);b=Ec(j);Cd(j,(W=Ec(j),X=Ec(j),Y=(b|0)>(g|0),Y?W:X));b=f;continue;case 22:g=H[o+536>>2];i=H[g+648>>2];b=i<<13^i;b=b>>>17^b;H[g+648>>2]=b^b<<5;Cd(j,(i&65535)+1|0);b=f;continue;case 23:b=Ec(j);Cd(j,Rb(Ec(j),b));b=f;continue;case 25:i=Ec(j);xd:{if((i|0)<=0){g=0;break xd}b=i>>>(i>>>0>9)|0;while(1){g=b;b=(dc(i,b)+b|0)+1>>1;if((b|0)!=(g|0)){continue}break}}Cd(j,g);b=f;continue;case 26:b=Ec(j);Cd(j,b);Cd(j,b);b=f;continue;case 27:g=Ec(j);b=Ec(j);Cd(j,g);Cd(j,b);b=f;continue;case 28:i=Se(j);g=H[j+12>>2];f=H[j+8>>2];if((g|0)==(f|0)){continue}f=g-f>>3;g=f-1|0;yd:{if((i|0)<0){break yd}g=0;if(f>>>0<=i>>>0){break yd}g=f+(i^-1)|0}Cd(j,Dg(j,g));continue;case 29:b=Se(j);m=0;v=Se(j);zd:{if((v|0)<2){break zd}if(v>>>0>H[j+12>>2]-H[j+8>>2]>>3>>>0){b=H[j+4>>2];if(!b|H[b>>2]){break zd}H[b>>2]=130;break zd}x=(b|0)%(v|0)|0;if(!x){break zd}r=0-v|0;s=0;q=2;b=-1;g=-1;while(1){Ad:{if((b|0)!=(g|0)){l=H[j+8>>2];n=s;i=q;break Ad}l=H[j+8>>2];g=b+1|0;b=l+(g<<3)|0;n=H[b>>2];i=H[b+4>>2];b=g}b=b+x|0;b=((b|0)<(v|0)?v&b>>31:r)+b|0;l=(b<<3)+l|0;s=H[l>>2];q=H[l+4>>2];H[l>>2]=n;H[l+4>>2]=i;m=m+1|0;if((v|0)!=(m|0)){continue}break}}b=f;continue;case 32:break ld;default:break k}}if(!r|!(f&255)){break n}W=k,X=Ec(j),H[W+15976>>2]=X;W=k,X=Ec(j),H[W+15980>>2]=X;H[o+468>>2]=0;break k}z=1}u=0;b=f;continue}u=0;b=f;continue e;case 11:if((A|0)<=0){break j}A=A-1|0;f=A;if(f>>>0>=17){H[a+4>>2]=130;f=0}t=(f<<4)+C|0;continue;case 10:case 29:l=18;b=0;i=(A|0)>16;if(i&!r|(i?r:0)){break c}A=A+1|0;i=A;if(i>>>0>=17){H[a+4>>2]=130;i=0}m=i<<4;i=H[j+12>>2];Bd:{if((i|0)==H[j+8>>2]){s=0;i=H[j+4>>2];if(!i|H[i>>2]){break Bd}H[i>>2]=161;break Bd}if(H[i-4>>2]!=2){s=0;i=H[j+4>>2];if(!i|H[i>>2]){break Bd}H[i>>2]=160;break Bd}i=i-8|0;H[j+12>>2]=i;s=H[i>>2]}t=m+C|0;Cd:{if(!r){break Cd}i=H[o+616>>2];if(!i){break Cd}i=Me(s,i);if(!i){s=-1;break Cd}s=H[i>>2]}H[t>>2]=0;H[t+4>>2]=0;H[t+8>>2]=0;H[t+12>>2]=0;if((g|0)==29){g=H[o+568>>2]+s|0;if(g>>>0>=K[o+560>>2]){break c}g=H[o+576>>2]+(g<<2)|0;b=H[g>>2];H[t+4>>2]=b;H[t+12>>2]=b;H[t+8>>2]=H[g+4>>2];b=f;continue}g=H[o+564>>2]+s|0;if(g>>>0>=K[o+556>>2]){break c}i=g<<2;m=i+H[o+572>>2]|0;g=H[m>>2];H[t+4>>2]=g;Dd:{if(I[o+48|0]){b=H[o+612>>2];if(b){if(!g){g=0;b=0;break Dd}b=H[b+i>>2]+g|0;break Dd}b=H[o+608>>2];g=((b|0)>0?b:0)+g|0;H[t+4>>2]=g;b=H[m+4>>2];break Dd}b=H[m+4>>2]}H[t+12>>2]=g;H[t+8>>2]=b;b=f;continue;case 0:case 2:case 17:break k;case 9:break p}}if(!r){break n}if(I[k+15568|0]){F[k+15569|0]=1;ii(k+3904|0,H[k+15640>>2],H[k+15644>>2]);if(I[k+15648|0]){fk(k+3904|0,T,V,H[k+15616>>2],H[k+15620>>2],1)}F[k+15648|0]=0;G[k+15568>>1]=0;F[k+15571|0]=1}F[k+15791|0]=1;b=f;break k}if((g|0)==24){i=H[k+15980>>2];l=H[j+8>>2];m=H[j+12>>2]-l>>3;Ed:{if(m>>>0<=b>>>0){s=0;g=H[j+4>>2];if(!g|H[g>>2]){break Ed}H[g>>2]=130;break Ed}Fd:{Gd:{Hd:{g=l+(b<<3)|0;switch(H[g+4>>2]-1|0){case 0:break Gd;case 1:break Hd;default:break Fd}}s=H[g>>2]<<16;break Ed}g=H[g>>2];s=((g>>31)+g|0)- -8192>>14;break Ed}s=H[g>>2]}g=i+s|0;H[k+15980>>2]=g;i=H[k+15976>>2];b=b|1;Id:{if(b>>>0>=m>>>0){b=0;m=H[j+4>>2];if(!m|H[m>>2]){break Id}H[m>>2]=130;g=H[k+15980>>2];break Id}Jd:{Kd:{Ld:{b=l+(b<<3)|0;switch(H[b+4>>2]-1|0){case 0:break Kd;case 1:break Ld;default:break Jd}}b=H[b>>2]<<16;break Id}b=H[b>>2];b=((b>>31)+b|0)- -8192>>14;break Id}b=H[b>>2]}b=b+i|0;H[k+15976>>2]=b;ii(k+3904|0,g,b)}H[j+12>>2]=H[j+8>>2];b=f;continue}b=f;break k}b=0;l=0;break c}H[a+120>>2]=g;b=f}H[j+12>>2]=H[j+8>>2];continue}break}break}l=18;b=0}if(H[a+4>>2]){break a}}H[a+4>>2]=l}a=k+15536|0;H[a>>2]=0;H[a+4>>2]=0;H[k+15528>>2]=0;d=H[k+15516>>2];c=k+15544|0;a=H[c>>2];if(a){zb[H[d+8>>2]](d,a)}H[c>>2]=0;H[k+15740>>2]=0;H[k+15744>>2]=0;H[k+15732>>2]=0;c=H[k+15720>>2];a=H[k+15748>>2];if(a){zb[H[c+8>>2]](c,a)}H[k+15748>>2]=0;H[k+15772>>2]=0;H[k+15776>>2]=0;H[k+15764>>2]=0;c=H[k+15752>>2];a=H[k+15780>>2];if(a){zb[H[c+8>>2]](c,a)}H[k+15780>>2]=0;if(C){zb[H[B+8>>2]](B,C)}if(!b){b=H[j>>2];a=H[j+8>>2];if(a){zb[H[b+8>>2]](b,a)}H[j+8>>2]=0;if(j){zb[H[b+8>>2]](b,j)}}xb=k+15984|0}function Jja(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,u=0,v=0,w=0;e=xb-160|0;xb=e;H[e+156>>2]=c;q=H[c+80>>2];H[e+152>>2]=q;h=q;b=0;a:{m=H[c+68>>2];if(!m){break a}f=m;while(1){b:{if(I[h+18|0]!=6){p=f;break b}g=J[h+12>>1]&16;if(!(I[h+16|0]&32)){p=f;break b}if(g){p=f;break b}j=j+1|0;d=!!f;b=d+b|0;h=N(d,20)+h|0;g=(d|0)!=(f|0);p=f-d|0;f=p;if(g){continue}}break}d=1;if(!p){p=0;break a}c:while(1){d:{if(!d){H[196252]=H[40912];g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;g=784992;break d}g=h}d=j;if(I[g+18|0]!=14){break a}while(1){d=d+1|0;if(m>>>0<=d>>>0){break a}g=q+N(d,20)|0;e:{if(I[g+18|0]!=6){i=J[g+16>>1];break e}i=J[g+16>>1];if(!(i&32)){break e}if(!(J[g+12>>1]&16)){continue}}break}g=h;f=p;if(!(1<>1]&16;if(!(I[g+16|0]&32)){d=p;continue c}g=h;d=p;f=d;if(!i){continue}break}continue}}H[e+140>>2]=140220;H[e+128>>2]=124893;H[e+120>>2]=b;H[e+116>>2]=p;H[e+112>>2]=h;H[e+136>>2]=e+152;H[e+132>>2]=e+156;H[e+96>>2]=0;H[e+100>>2]=1;H[e+104>>2]=j;H[e+108>>2]=1;f:{if(p){l=j;k=h;i=p;while(1){b=k;while(1){l=l+1|0;t=i;g=!!i;i=i-g|0;f=N(g,20);k=f+b|0;g:{if((g|0)==(t|0)){g=t;break g}d=l;h:{i:{f=b+f|0;switch(I[f+18|0]-6|0){case 8:break h;case 0:break i;default:break g}}if(!(I[f+16|0]&32)){break g}b=k;if(!(J[f+12>>1]&16)){continue}break g}while(1){d=d+1|0;if(m>>>0<=d>>>0){break g}b=q+N(d,20)|0;j:{if(I[b+18|0]!=6){f=J[b+16>>1];break j}f=J[b+16>>1];if(!(f&32)){break j}if(!(J[b+12>>1]&16)){continue}}break}b=k;if(1<>1]&16)){continue}break k}while(1){d=d+1|0;if(m>>>0<=d>>>0){break k}h=q+N(d,20)|0;n:{if(I[h+18|0]!=6){f=J[h+16>>1];break n}f=J[h+16>>1];if(!(f&32)){break n}if(!(J[h+12>>1]&16)){continue}}break}h=b;if(1<>2];f=H[e+136>>2];H[e+88>>2]=f;H[e+92>>2]=q;m=H[e+132>>2];h=H[e+128>>2];H[e+80>>2]=h;H[e+84>>2]=m;n=H[e+124>>2];i=H[e+120>>2];H[e+72>>2]=i;H[e+76>>2]=n;k=H[e+116>>2];b=e- -64|0;d=H[e+112>>2];H[b>>2]=d;H[b+4>>2]=k;j=H[e+108>>2];l=e+56|0;g=H[e+104>>2];H[l>>2]=g;H[l+4>>2]=j;p=H[e+100>>2];b=H[e+96>>2];H[e+48>>2]=b;H[e+52>>2]=p;H[e+40>>2]=f;H[e+44>>2]=q;H[e+32>>2]=h;H[e+36>>2]=m;H[e+24>>2]=i;H[e+28>>2]=n;H[e+16>>2]=d;H[e+20>>2]=k;H[e+8>>2]=g;H[e+12>>2]=j;H[e>>2]=b;H[e+4>>2]=p;d=H[e+48>>2];o:{if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(!d){break o}H[e+48>>2]=d-N(H[e+52>>2],d);break o}if(!d){break o}H[e+48>>2]=d-N(H[e+52>>2],d);while(1){Yd(l);d=d-1|0;if(!H[e+68>>2]){break o}if(d){continue}break}}u=e+8|0;d=H[e>>2];g=H[e+20>>2];p:{if(!g){g=0;H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(!d){break p}H[e>>2]=d-N(H[e+4>>2],d);break p}if(!d){break p}H[e>>2]=d-N(H[e+4>>2],d);while(1){Yd(u);d=d-1|0;g=H[e+20>>2];if(!g){break p}if(d){continue}break}}j=H[e+96>>2];l=H[e+116>>2];if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(!v){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}w=e+104|0;p=0;o=1;d=(j|0)==(t|0);while(1){q:{r:{s:{if(!d){if(I[p+142160|0]!=2){break r}if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e+48>>2];i=H[e+68>>2];if(!i){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>=j>>>0){break s}H[e+48>>2]=d+N(H[e+52>>2],j-d|0);break r}if(d>>>0>>0){n=j-d|0;H[e+48>>2]=d+N(n,H[e+52>>2]);q=H[e+60>>2];m=H[e+88>>2];k=H[e+84>>2];h=H[e+56>>2];while(1){n=n-1|0;b=i;while(1){h=h+q|0;H[e+56>>2]=h;f=!!b;i=b-f|0;H[e+68>>2]=i;H[e+72>>2]=f+H[e+72>>2];d=H[e+64>>2]+N(f,20)|0;H[e+64>>2]=d;if((b|0)==(f|0)){break r}t:{u:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break t}b=i;if(!(J[d+12>>1]&16)){continue}break t;case 8:break u;default:break t}}b=H[H[k>>2]+68>>2];d=h;while(1){d=d+1|0;if(b>>>0<=d>>>0){break t}s=H[m>>2]+N(d,20)|0;v:{if(I[s+18|0]!=6){f=J[s+16>>1];break v}f=J[s+16>>1];if(!(f&32)){break v}if(!(J[s+12>>1]&16)){continue}}break}b=i;if(1<>>0<=j>>>0){break r}b=d-j|0;H[e+48>>2]=d-N(b,H[e+52>>2]);h=H[e+72>>2];s=H[e+60>>2];q=H[e+88>>2];m=H[e+84>>2];k=H[e+56>>2];while(1){b=b-1|0;while(1){k=k-s|0;H[e+56>>2]=k;d=!!h;h=h-d|0;H[e+72>>2]=h;i=d+i|0;H[e+68>>2]=i;d=H[e+64>>2]+N(d,-20)|0;H[e+64>>2]=d;if(!i){break r}w:{x:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break w}if(!(J[d+12>>1]&16)){continue}break w;case 8:break x;default:break w}}n=H[H[m>>2]+68>>2];d=k;while(1){d=d+1|0;if(n>>>0<=d>>>0){break w}r=H[q>>2]+N(d,20)|0;y:{if(I[r+18|0]!=6){f=J[r+16>>1];break y}f=J[r+16>>1];if(!(f&32)){break y}if(!(J[r+12>>1]&16)){continue}}break}if(1<>1]-1|0;break q}z:{p=H[c+68>>2];if(!p){break z}i=p-1|0;d=0;g=H[c+80>>2];b=I[g+15|0];while(1){A:{if((d|0)==(i|0)){d=p;break A}d=d+1|0;if((b|0)==I[(g+N(d,20)|0)+15|0]){continue}}break}if(!p){break z}q=H[c+80>>2];h=0;k=p;while(1){f=d;m=d>>>0>k>>>0?k:d;v=m-h|0;B:{if(v>>>0<2){break B}i=H[c+144>>2]|32;H[c+144>>2]=i;if(h>>>0>=m>>>0){break B}d=-1;b=h;t=m+(b^-1)|0;if(t>>>0>=3){j=v&-4;l=0;while(1){n=q+N(b,20)|0;g=H[n+8>>2];d=d>>>0>>0?d:g;g=H[n+28>>2];d=d>>>0>>0?d:g;g=H[n+48>>2];d=d>>>0>>0?d:g;g=H[n+68>>2];d=d>>>0>>0?d:g;b=b+4|0;l=l+4|0;if((j|0)!=(l|0)){continue}break}}g=0;l=v&3;if(l){while(1){j=H[(q+N(b,20)|0)+8>>2];d=d>>>0>>0?d:j;b=b+1|0;g=g+1|0;if((l|0)!=(g|0)){continue}break}}if(v&1){b=q+N(h,20)|0;if(H[b+8>>2]!=(d|0)){H[c+144>>2]=i;H[b+4>>2]=H[b+4>>2]|3}h=h+1|0}if(!t){break B}while(1){b=q+N(h,20)|0;if(H[b+8>>2]!=(d|0)){i=i|32;H[c+144>>2]=i;H[b+4>>2]=H[b+4>>2]|3}b=q+N(h+1|0,20)|0;if(H[b+8>>2]!=(d|0)){i=i|32;H[c+144>>2]=i;H[b+4>>2]=H[b+4>>2]|3}h=h+2|0;if((m|0)!=(h|0)){continue}break}}b=f+1|0;b=b>>>0>>0?k:b;g=I[(q+N(f,20)|0)+15|0];d=f;while(1){C:{d=d+1|0;if(k>>>0<=d>>>0){d=b;break C}if((g|0)==I[(q+N(d,20)|0)+15|0]){continue}}break}if(f>>>0>=p>>>0){break z}k=H[c+68>>2];h=f;continue}}h=H[a+124>>2];l=H[h>>2];if(!(!l|!p)){g=p-1|0;f=0;k=H[c+80>>2];b=I[k+15|0];while(1){D:{if((f|0)==(g|0)){f=p;break D}f=f+1|0;if((b|0)==I[(k+N(f,20)|0)+15|0]){continue}}break}d=0;while(1){b=f;g=b-d|0;j=I[(k+N(d,20)|0)+18|0]==18?1:g>>>0<3?g:3;i=j+d|0;E:{if(i>>>0<=d>>>0){break E}f=0;if(j){while(1){g=k+N(d,20)|0;H[g+4>>2]=l|H[g+4>>2];d=d+1|0;f=f+1|0;if((j|0)!=(f|0)){continue}break}}if(j-1>>>0<=2){break E}while(1){g=k+N(d,20)|0;H[g+4>>2]=l|H[g+4>>2];H[g+24>>2]=l|H[g+24>>2];H[g+44>>2]=l|H[g+44>>2];g=g- -64|0;H[g>>2]=l|H[g>>2];d=d+4|0;if((i|0)!=(d|0)){continue}break}}g=b+1|0;g=g>>>0

>>0?p:g;i=g-1|0;d=I[(k+N(b,20)|0)+15|0];f=b;while(1){F:{if((f|0)==(i|0)){f=g;break F}f=f+1|0;if((d|0)==I[(k+N(f,20)|0)+15|0]){continue}}break}d=b;if(d>>>0

>>0){continue}break}}G:{if(H[h+4>>2]){break G}g=H[a+56>>2];f=g-1|0;b=0;if((g|0)<=0){break G}i=H[a+36>>2];j=H[a+60>>2];h=f;H:{while(1){I:{g=b+h>>>1|0;a=H[j+N(g,36)>>2];J:{if(a>>>0>=1769172845){h=g-1|0;break J}if((a|0)==1769172844){break I}b=g+1|0}k=0;if((b|0)<=(h|0)){continue}break H}break}k=H[(j+N(g,36)|0)+28>>2]}h=0;g=(i|0)==(k|0)?0:k;H[e+96>>2]=g;b=f;while(1){K:{d=b+h>>>1|0;a=H[j+N(d,36)>>2];L:{if(a>>>0<=1768843636){if((a|0)==1768843636){k=H[(j+N(d,36)|0)+28>>2];break K}h=d+1|0;break L}b=d-1|0}k=0;if((b|0)>=(h|0)){continue}}break}h=0;a=(i|0)==(k|0)?0:k;H[e+100>>2]=a;g=a|g;b=f;while(1){M:{d=b+h>>>1|0;a=H[j+N(d,36)>>2];N:{if(a>>>0<=1835361385){if((a|0)==1835361385){k=H[(j+N(d,36)|0)+28>>2];break M}h=d+1|0;break N}b=d-1|0}k=0;if((b|0)>=(h|0)){continue}}break}b=0;a=(i|0)==(k|0)?0:k;H[e+104>>2]=a;g=a|g;while(1){O:{d=b+f>>>1|0;a=H[j+N(d,36)>>2];P:{if(a>>>0<=1718185569){if((a|0)==1718185569){h=H[(j+N(d,36)|0)+28>>2];break O}b=d+1|0;break P}f=d-1|0}h=0;if((b|0)<=(f|0)){continue}}break}a=(h|0)==(i|0)?0:h;H[e+108>>2]=a;a=a|g;if(!a|!p){break G}l=a^-1;b=p-1|0;d=0;f=H[c+80>>2];k=I[f+15|0];a=k;while(1){Q:{if((b|0)==(d|0)){d=p;break Q}d=d+1|0;if((a|0)==I[(f+N(d,20)|0)+15|0]){continue}}break}g=0;h=0;i=4;while(1){a=g;g=d;b=k&15;R:{if(b>>>0>8){break R}if(!(1<>>0<=h>>>0){break S}d=a+(h^-1)|0;i=H[(e+96|((i|0)==3?8:4))>>2];k=0;c=a-h&3;if(c){while(1){b=f+N(h,20)|0;H[b+4>>2]=i|l&H[b+4>>2];h=h+1|0;k=k+1|0;if((c|0)!=(k|0)){continue}break}}if(d>>>0<3){break S}while(1){b=f+N(h,20)|0;H[b+4>>2]=i|l&H[b+4>>2];H[b+24>>2]=i|l&H[b+24>>2];H[b+44>>2]=i|l&H[b+44>>2];b=b- -64|0;H[b>>2]=i|l&H[b>>2];h=h+4|0;if((a|0)!=(h|0)){continue}break}}U:{if(a>>>0>=g>>>0){break U}i=H[(e+96|j<<2)>>2];k=0;d=a;c=g-d&3;if(c){while(1){b=f+N(d,20)|0;H[b+4>>2]=i|l&H[b+4>>2];d=d+1|0;k=k+1|0;if((c|0)!=(k|0)){continue}break}}if((a^-1)+g>>>0<3){break U}while(1){b=f+N(d,20)|0;H[b+4>>2]=i|l&H[b+4>>2];H[b+24>>2]=i|l&H[b+24>>2];H[b+44>>2]=i|l&H[b+44>>2];b=b- -64|0;H[b>>2]=i|l&H[b>>2];d=d+4|0;if((g|0)!=(d|0)){continue}break}}i=j}b=g+1|0;b=b>>>0

>>0?p:b;c=b-1|0;k=I[(f+N(g,20)|0)+15|0];d=g;while(1){V:{if((c|0)==(d|0)){d=b;break V}d=d+1|0;if(I[(f+N(d,20)|0)+15|0]==(k&255)){continue}}break}h=a;if(g>>>0

>>0){continue}break}}xb=e+160|0;return}if(d>>>0<=j>>>0){break r}H[e+48>>2]=d+N(H[e+52>>2],j-d|0)}f=p<<1;i=G[f+141680>>1]+140352|0;b=F[p+141808|0];h=I[f+140224|0];W:{X:{if(!l){H[196252]=H[40912];d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;k=I[785010];if(h>>>0>k>>>0){break W}if(I[f+140225|0]>=k>>>0){break X}break W}k=I[H[e+112>>2]+18|0];if(h>>>0>k>>>0|I[f+140225|0]>>0){break W}}b=k-h|0}b=F[b+i|0]}p=F[b+141872|0];b=F[b+141952|0];Y:{if(!b){break Y}Z:{_:{switch(b-3|0){case 4:r=H[e+100>>2]+j|0;q=H[e+108>>2];$:{if(l){j=H[e+104>>2];d=H[e+112>>2];m=H[e+132>>2];n=H[e+136>>2];while(1){j=j+q|0;h=l;i=!!h;l=h-i|0;f=N(i,20);b=f+d|0;aa:{if((h|0)==(i|0)){i=h;break aa}ba:{ca:{f=d+f|0;switch(I[f+18|0]-6|0){case 8:break ba;case 0:break ca;default:break aa}}if(!(I[f+16|0]&32)){break aa}d=b;if(!(J[f+12>>1]&16)){continue}break aa}k=H[H[m>>2]+68>>2];d=j;while(1){d=d+1|0;if(k>>>0<=d>>>0){break aa}s=H[n>>2]+N(d,20)|0;da:{if(I[s+18|0]!=6){f=J[s+16>>1];break da}f=J[s+16>>1];if(!(f&32)){break da}if(!(J[s+12>>1]&16)){continue}}break}d=b;if(1<>2];ea:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],r-d|0);break ea}if(d>>>0<=r>>>0){break ea}H[e>>2]=d+N(H[e+4>>2],r-d|0);break ea}if(d>>>0>>0){h=r-d|0;H[e>>2]=d+N(h,H[e+4>>2]);k=H[e+12>>2];l=H[e+40>>2];j=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+k|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break ea}fa:{ga:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break fa}b=g;if(!(J[d+12>>1]&16)){continue}break fa;case 8:break ga;default:break fa}}b=H[H[j>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break fa}n=H[l>>2]+N(d,20)|0;ha:{if(I[n+18|0]!=6){f=J[n+16>>1];break ha}f=J[n+16>>1];if(!(f&32)){break ha}if(!(J[n+12>>1]&16)){continue}}break}b=g;if(1<>>0<=r>>>0){break ea}b=d;d=d-r|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){Yd(u);d=d-1|0;g=H[e+20>>2];if(!g){break ea}if(d){continue}break}}d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|2;while(1){i=H[e+8>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;g=H[e+20>>2];continue}};case 10:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];ia:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break ia}if(d>>>0<=j>>>0){break ia}H[e>>2]=d+N(H[e+4>>2],j-d|0);break ia}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break ia}ja:{ka:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break ja}b=g;if(!(J[d+12>>1]&16)){continue}break ja;case 8:break ka;default:break ja}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break ja}m=H[k>>2]+N(d,20)|0;la:{if(I[m+18|0]!=6){f=J[m+16>>1];break la}f=J[m+16>>1];if(!(f&32)){break la}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break ia}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){ma:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break ma}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|8;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)!=16){break Y}break Z}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 9:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];na:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break na}if(d>>>0<=j>>>0){break na}H[e>>2]=d+N(H[e+4>>2],j-d|0);break na}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break na}oa:{pa:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break oa}b=g;if(!(J[d+12>>1]&16)){continue}break oa;case 8:break pa;default:break oa}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break oa}m=H[k>>2]+N(d,20)|0;qa:{if(I[m+18|0]!=6){f=J[m+16>>1];break qa}f=J[m+16>>1];if(!(f&32)){break qa}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break na}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){ra:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break ra}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|7;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 11:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];sa:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break sa}if(d>>>0<=j>>>0){break sa}H[e>>2]=d+N(H[e+4>>2],j-d|0);break sa}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break sa}ta:{ua:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break ta}b=g;if(!(J[d+12>>1]&16)){continue}break ta;case 8:break ua;default:break ta}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break ta}m=H[k>>2]+N(d,20)|0;va:{if(I[m+18|0]!=6){f=J[m+16>>1];break va}f=J[m+16>>1];if(!(f&32)){break va}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break sa}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){wa:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break wa}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|6;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 2:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];xa:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break xa}if(d>>>0<=j>>>0){break xa}H[e>>2]=d+N(H[e+4>>2],j-d|0);break xa}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break xa}ya:{za:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break ya}b=g;if(!(J[d+12>>1]&16)){continue}break ya;case 8:break za;default:break ya}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break ya}m=H[k>>2]+N(d,20)|0;Aa:{if(I[m+18|0]!=6){f=J[m+16>>1];break Aa}f=J[m+16>>1];if(!(f&32)){break Aa}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break xa}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){Ba:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break Ba}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|5;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 7:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];Ca:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break Ca}if(d>>>0<=j>>>0){break Ca}H[e>>2]=d+N(H[e+4>>2],j-d|0);break Ca}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break Ca}Da:{Ea:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break Da}b=g;if(!(J[d+12>>1]&16)){continue}break Da;case 8:break Ea;default:break Da}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break Da}m=H[k>>2]+N(d,20)|0;Fa:{if(I[m+18|0]!=6){f=J[m+16>>1];break Fa}f=J[m+16>>1];if(!(f&32)){break Fa}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break Ca}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){Ga:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break Ga}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|4;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 8:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];Ha:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break Ha}if(d>>>0<=j>>>0){break Ha}H[e>>2]=d+N(H[e+4>>2],j-d|0);break Ha}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break Ha}Ia:{Ja:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break Ia}b=g;if(!(J[d+12>>1]&16)){continue}break Ia;case 8:break Ja;default:break Ia}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break Ia}m=H[k>>2]+N(d,20)|0;Ka:{if(I[m+18|0]!=6){f=J[m+16>>1];break Ka}f=J[m+16>>1];if(!(f&32)){break Ka}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break Ha}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){La:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break La}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|3;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 3:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];Ma:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break Ma}if(d>>>0<=j>>>0){break Ma}H[e>>2]=d+N(H[e+4>>2],j-d|0);break Ma}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break Ma}Na:{Oa:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break Na}b=g;if(!(J[d+12>>1]&16)){continue}break Na;case 8:break Oa;default:break Na}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break Na}m=H[k>>2]+N(d,20)|0;Pa:{if(I[m+18|0]!=6){f=J[m+16>>1];break Pa}f=J[m+16>>1];if(!(f&32)){break Pa}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break Ma}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){Qa:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break Qa}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|2;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 6:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];Ra:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break Ra}if(d>>>0<=j>>>0){break Ra}H[e>>2]=d+N(H[e+4>>2],j-d|0);break Ra}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break Ra}Sa:{Ta:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break Sa}b=g;if(!(J[d+12>>1]&16)){continue}break Sa;case 8:break Ta;default:break Sa}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break Sa}m=H[k>>2]+N(d,20)|0;Ua:{if(I[m+18|0]!=6){f=J[m+16>>1];break Ua}f=J[m+16>>1];if(!(f&32)){break Ua}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break Ra}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){Va:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break Va}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|1;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 5:if(!l){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}d=H[e>>2];Wa:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],j-d|0);break Wa}if(d>>>0<=j>>>0){break Wa}H[e>>2]=d+N(H[e+4>>2],j-d|0);break Wa}if(d>>>0>>0){h=j-d|0;H[e>>2]=d+N(h,H[e+4>>2]);n=H[e+12>>2];k=H[e+40>>2];l=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+n|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break Wa}Xa:{Ya:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break Xa}b=g;if(!(J[d+12>>1]&16)){continue}break Xa;case 8:break Ya;default:break Xa}}b=H[H[l>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break Xa}m=H[k>>2]+N(d,20)|0;Za:{if(I[m+18|0]!=6){f=J[m+16>>1];break Za}f=J[m+16>>1];if(!(f&32)){break Za}if(!(J[m+12>>1]&16)){continue}}break}b=g;if(1<>>0<=j>>>0){break Wa}b=d;d=d-j|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){_a:{Yd(u);d=d-1|0;if(!H[e+20>>2]){break _a}if(d){continue}}break}j=H[e+96>>2]}H[e+96>>2]=j-H[e+100>>2];Yd(w);d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4;while(1){i=H[e+8>>2];g=H[e+20>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;continue}};case 0:r=H[e+100>>2]+j|0;q=H[e+108>>2];$a:{if(l){j=H[e+104>>2];d=H[e+112>>2];m=H[e+132>>2];n=H[e+136>>2];while(1){j=j+q|0;h=l;i=!!h;l=h-i|0;f=N(i,20);b=f+d|0;ab:{if((h|0)==(i|0)){i=h;break ab}bb:{cb:{f=d+f|0;switch(I[f+18|0]-6|0){case 8:break bb;case 0:break cb;default:break ab}}if(!(I[f+16|0]&32)){break ab}d=b;if(!(J[f+12>>1]&16)){continue}break ab}k=H[H[m>>2]+68>>2];d=j;while(1){d=d+1|0;if(k>>>0<=d>>>0){break ab}s=H[n>>2]+N(d,20)|0;db:{if(I[s+18|0]!=6){f=J[s+16>>1];break db}f=J[s+16>>1];if(!(f&32)){break db}if(!(J[s+12>>1]&16)){continue}}break}d=b;if(1<>2];eb:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],r-d|0);break eb}if(d>>>0<=r>>>0){break eb}H[e>>2]=d+N(H[e+4>>2],r-d|0);break eb}if(d>>>0>>0){h=r-d|0;H[e>>2]=d+N(h,H[e+4>>2]);k=H[e+12>>2];l=H[e+40>>2];j=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+k|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break eb}fb:{gb:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break fb}b=g;if(!(J[d+12>>1]&16)){continue}break fb;case 8:break gb;default:break fb}}b=H[H[j>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break fb}n=H[l>>2]+N(d,20)|0;hb:{if(I[n+18|0]!=6){f=J[n+16>>1];break hb}f=J[n+16>>1];if(!(f&32)){break hb}if(!(J[n+12>>1]&16)){continue}}break}b=g;if(1<>>0<=r>>>0){break eb}b=d;d=d-r|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){Yd(u);d=d-1|0;g=H[e+20>>2];if(!g){break eb}if(d){continue}break}}d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|8;while(1){i=H[e+8>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;g=H[e+20>>2];continue}};case 1:break _;default:break Y}}r=H[e+100>>2]+j|0;q=H[e+108>>2];ib:{if(l){j=H[e+104>>2];d=H[e+112>>2];m=H[e+132>>2];n=H[e+136>>2];while(1){j=j+q|0;h=l;i=!!h;l=h-i|0;f=N(i,20);b=f+d|0;jb:{if((h|0)==(i|0)){i=h;break jb}kb:{lb:{f=d+f|0;switch(I[f+18|0]-6|0){case 8:break kb;case 0:break lb;default:break jb}}if(!(I[f+16|0]&32)){break jb}d=b;if(!(J[f+12>>1]&16)){continue}break jb}k=H[H[m>>2]+68>>2];d=j;while(1){d=d+1|0;if(k>>>0<=d>>>0){break jb}s=H[n>>2]+N(d,20)|0;mb:{if(I[s+18|0]!=6){f=J[s+16>>1];break mb}f=J[s+16>>1];if(!(f&32)){break mb}if(!(J[s+12>>1]&16)){continue}}break}d=b;if(1<>2];nb:{if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(d>>>0>>0){H[e>>2]=d+N(H[e+4>>2],r-d|0);break nb}if(d>>>0<=r>>>0){break nb}H[e>>2]=d+N(H[e+4>>2],r-d|0);break nb}if(d>>>0>>0){h=r-d|0;H[e>>2]=d+N(h,H[e+4>>2]);k=H[e+12>>2];l=H[e+40>>2];j=H[e+36>>2];i=H[e+8>>2];while(1){h=h-1|0;b=g;while(1){i=i+k|0;H[e+8>>2]=i;f=!!b;g=b-f|0;H[e+20>>2]=g;H[e+24>>2]=f+H[e+24>>2];d=H[e+16>>2]+N(f,20)|0;H[e+16>>2]=d;if((b|0)==(f|0)){break nb}ob:{pb:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break ob}b=g;if(!(J[d+12>>1]&16)){continue}break ob;case 8:break pb;default:break ob}}b=H[H[j>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break ob}n=H[l>>2]+N(d,20)|0;qb:{if(I[n+18|0]!=6){f=J[n+16>>1];break qb}f=J[n+16>>1];if(!(f&32)){break qb}if(!(J[n+12>>1]&16)){continue}}break}b=g;if(1<>>0<=r>>>0){break nb}b=d;d=d-r|0;H[e>>2]=b-N(d,H[e+4>>2]);while(1){Yd(u);d=d-1|0;g=H[e+20>>2];if(!g){break nb}if(d){continue}break}}d=H[e+56>>2];if(!H[e+68>>2]){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=o<<4|7;while(1){i=H[e+8>>2];if(!g){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}if(d>>>0>=i>>>0){o=o+1|0;if((o|0)==16){break Z}break Y}else{F[(H[e+152>>2]+N(d,20)|0)+15|0]=h;d=d+1|0;g=H[e+20>>2];continue}}}o=1}rb:{if(I[p+142224|0]!=1){break rb}k=H[e+48>>2];i=H[e+68>>2];if(!i){H[196252]=H[40912];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;if(!k){break rb}H[e+48>>2]=k-N(H[e+52>>2],k);break rb}if(!k){break rb}H[e+48>>2]=k-N(H[e+52>>2],k);l=H[e+72>>2];m=H[e+60>>2];n=H[e+88>>2];j=H[e+84>>2];h=H[e+56>>2];while(1){k=k-1|0;while(1){h=h-m|0;H[e+56>>2]=h;b=!!l;l=l-b|0;H[e+72>>2]=l;i=b+i|0;H[e+68>>2]=i;b=H[e+64>>2]+N(b,-20)|0;H[e+64>>2]=b;if(!i){break rb}sb:{tb:{switch(I[b+18|0]-6|0){case 0:if(!(I[b+16|0]&32)){break sb}if(!(J[b+12>>1]&16)){continue}break sb;case 8:break tb;default:break sb}}b=H[H[j>>2]+68>>2];d=h;while(1){d=d+1|0;if(b>>>0<=d>>>0){break sb}q=H[n>>2]+N(d,20)|0;ub:{if(I[q+18|0]!=6){f=J[q+16>>1];break ub}f=J[q+16>>1];if(!(f&32)){break ub}if(!(J[q+12>>1]&16)){continue}}break}if(1<>2]+H[e+100>>2]|0;H[e+96>>2]=j;b=H[e+116>>2];i=H[e+104>>2];n=H[e+108>>2];k=H[e+136>>2];h=H[e+132>>2];vb:{while(1){i=i+n|0;H[e+104>>2]=i;f=!!b;l=b-f|0;H[e+116>>2]=l;H[e+120>>2]=f+H[e+120>>2];d=H[e+112>>2]+N(f,20)|0;H[e+112>>2]=d;if((b|0)!=(f|0)){wb:{switch(I[d+18|0]-6|0){case 0:if(!(I[d+16|0]&32)){break vb}b=l;if(!(J[d+12>>1]&16)){continue}break vb;case 8:break wb;default:break vb}}b=H[H[h>>2]+68>>2];d=i;while(1){d=d+1|0;if(b>>>0<=d>>>0){break vb}m=H[k>>2]+N(d,20)|0;xb:{if(I[m+18|0]!=6){f=J[m+16>>1];break xb}f=J[m+16>>1];if(!(f&32)){break xb}if(!(J[m+12>>1]&16)){continue}}break}b=l;if(1<>2];e=H[d+4>>2];D=H[b+540>>2];a:{if(!D){D=rg(e,8760);if(!D){l=11;break a}H[b+540>>2]=D;H[b+516>>2]=H[D>>2];d=H[b+96>>2]}qa=b,ra=nf(d,10021,1),H[qa+544>>2]=ra;if(!H[b+548>>2]){qa=b,ra=nf(Vd(e,10174),10252,0),H[qa+548>>2]=ra}if(!H[b+552>>2]){qa=b,ra=nf(Vd(e,10174),10390,0),H[qa+552>>2]=ra}ja=H[a+28>>2];H[b+140>>2]=0;H[b+132>>2]=0;H[b+136>>2]=0;w=H[a+8>>2];d=hd(a,g);l=H[g>>2];if(l){break a}ka=b+132|0;oa=g+96|0;while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((d|0)<=1954115632){if((d|0)<=131071){if((d|0)==-1519689116|(d|0)==-1519619212){break o}l=2;if((d|0)==65536){break o}break a}if((d|0)<=1953658212){if((d|0)==131072){break o}l=2;if((d|0)==1330926671){break o}break a}if((d|0)==1953658213){break o}l=2;if((d|0)==1953784678){break o}break a}if((d|0)==2001684018){break m}if((d|0)==2001684038){break n}l=2;if((d|0)!=1954115633){break a}}H[ka>>2]=1953784678;if((d|0)!=1953784678){break l}l=Ic(a,94560,ka);H[g>>2]=l;if(l){break a}d=H[b+140>>2];if(d){break k}l=8;break a}l=bc(a,w);H[g>>2]=l;if(l){break a}v=H[a+28>>2];H[g+16>>2]=0;l=Ic(a,94576,g+40|0);H[g+16>>2]=l;if(l){break a}l=8;d=H[g+44>>2];if((d|0)==1953784678|(d|0)==2001684038){break a}d=H[g+48>>2];if((d|0)!=H[a+4>>2]){break a}e=J[g+52>>1];if(!e|d>>>0<=N(e,20)+44>>>0){break a}e=e<<4|12;d=H[g+56>>2];if(e>>>0>=d>>>0|d&3){break a}d=H[g+68>>2];p:{if(!H[g+64>>2]){if(!(d|H[g+72>>2])){break p}break a}if(!d){break p}if(!H[g+72>>2]){break a}}if(!(H[g+80>>2]?H[g+76>>2]:1)){break a}d=0;q=pc(v,e,g+16|0);if(H[g+16>>2]){j=0;l=0;break d}j=pc(v,40,g+16|0);if(H[g+16>>2]){l=0;break d}i=J[g+52>>1];l=i;w=0;if(i){while(1){w=w+1|0;e=l>>>0>1;l=l>>>1|0;if(e){continue}break}}F[q|0]=I[g+47|0];F[q+1|0]=J[g+46>>1];F[q+2|0]=H[g+44>>2]>>>8;F[q+3|0]=H[g+44>>2];F[q+4|0]=I[g+53|0];f=I[g+52|0];e=i<<4;m=w-1|0;i=16<>>8;F[q+9|0]=m;F[q+8|0]=m>>>8;F[q+7|0]=i;F[q+6|0]=i>>>8;F[q+5|0]=f;l=Ub(v,24,0,J[g+52>>1],0,g+16|0);if(H[g+16>>2]){break d}d=Ub(v,4,0,J[g+52>>1],0,g+16|0);if(H[g+16>>2]){break d}e=Jc(a,N(J[g+52>>1],20));H[g+16>>2]=e;if(e){break d}e=0;r=0;if(J[g+52>>1]){while(1){f=N(r,24)+l|0;qa=f,ra=de(a),H[qa>>2]=ra;qa=f,ra=de(a),H[qa+4>>2]=ra;qa=f,ra=de(a),H[qa+8>>2]=ra;qa=f,ra=de(a),H[qa+12>>2]=ra;qa=f,ra=de(a),H[qa+16>>2]=ra;i=e;e=H[f>>2];if(i>>>0>=e>>>0){wc(a);H[g+16>>2]=8;break d}H[(r<<2)+d>>2]=f;r=r+1|0;if(r>>>0>1]){continue}break}}wc(a);th(d,J[g+52>>1],4,66);u=J[g+52>>1];f=u<<4|12;w=N(u,20)+44|0;q:{if(!u){r=f;break q}n=0;i=H[g+56>>2];e=H[g+48>>2];r=f;while(1){r:{k=H[(n<<2)+d>>2];s:{if(H[k+4>>2]!=(w|0)){break s}h=H[k+8>>2];if(h>>>0>e>>>0|e-h>>>0>>0){break s}m=H[k+12>>2];if(m>>>0>i>>>0|i-m>>>0>>0){break s}if(h>>>0<=m>>>0){break r}}H[g+16>>2]=8;break d}H[k+20>>2]=r;r=(m+3&-4)+r|0;w=(h+3&-4)+w|0;n=n+1|0;if((u|0)!=(n|0)){continue}break}}t:{e=H[g+64>>2];if(!e){break t}if((e|0)==(w|0)){w=H[g+68>>2]+w|0;if(w>>>0<=K[g+48>>2]){break t}}H[g+16>>2]=8;break d}i=H[g+76>>2];if(!i){e=H[g+48>>2];break e}if((i|0)==(w+3&-4)){e=H[g+48>>2];w=i+H[g+80>>2]|0;if(e>>>0>=w>>>0){break e}}H[g+16>>2]=8;break d}l=bc(a,w);H[g>>2]=l;if(l){break a}p=H[a+28>>2];H[g+108>>2]=0;H[g+32>>2]=0;H[g+36>>2]=0;H[g+24>>2]=0;H[g+28>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+12>>2]=0;l=Ic(a,94640,g+40|0);H[g+108>>2]=l;if(l){break a}l=8;if(H[g+44>>2]==2001684018){break a}i=H[g+48>>2];if((i|0)!=H[a+4>>2]){break a}f=J[g+52>>1];if(!f|i>>>0<=N(f,20)+48>>>0){break a}r=H[g+68>>2];e=H[g+64>>2];u:{if(!e){d=H[g+72>>2]|r;r=0;if(!d){break u}break a}if(!r){break u}if(!H[g+72>>2]){break a}}if(i-e>>>0>>0|e>>>0>=i>>>0){break a}e=H[g+76>>2];d=H[g+80>>2];if(!e&(d|0)!=0|e>>>0>=i>>>0|d>>>0>i-e>>>0){break a}w=0;H[g+104>>2]=0;ea=Ub(p,32,0,f,0,g+108|0);if(H[g+108>>2]){l=0;r=0;break f}r=Ub(p,4,0,J[g+52>>1],0,g+108|0);if(H[g+108>>2]){l=0;break f}j=0;n=0;v:{if(!J[g+52>>1]){l=0;break v}while(1){m=(j<<5)+ea|0;d=Gd(a,g+108|0);F[m|0]=d;if(H[g+108>>2]){l=0;break f}e=d&63;w:{if((e|0)==63){e=hd(a,g+108|0);H[m+4>>2]=e;if(H[g+108>>2]){break g}d=I[m|0];break w}e=H[(e<<2)+94704>>2];H[m+4>>2]=e}x:{if(!((e|0)!=1819239265&(e|0)!=1735162214)){e=d&255;q=e>>>0>63;f=(e>>>0<64)<<8;break x}e=d&255;q=e>>>0<64;f=(e>>>0>63)<<8}e=Au(a,m+8|0);H[g+108>>2]=e;if(e){break g}e=H[m+8>>2];H[m+12>>2]=e;y:{z:{if(!q){e=Au(a,m+12|0);H[g+108>>2]=e;if(e){break g}i=H[m+12>>2];if(H[m+4>>2]==1819239265){break z}e=i}if((n^-1)>>>0>>0){break h}break y}e=0;if(i){break h}}H[m+24>>2]=e;H[m+20>>2]=n;H[m+16>>2]=f|(d&192)>>>6;H[(j<<2)+r>>2]=m;n=e+n|0;j=j+1|0;l=J[g+52>>1];if(j>>>0>>0){continue}break}}d=H[((l<<2)+r|0)-4>>2];e=H[d+24>>2];d=e+H[d+20>>2]|0;H[g+84>>2]=d;if(d>>>0>>0){break h}H[g+92>>2]=0;G[g+96>>1]=1;A:{if(H[g+44>>2]==1953784678){d=hd(a,g+108|0);H[g+92>>2]=d;if(H[g+108>>2]){break g}if((d|0)!=65536&(d|0)!=131072){break h}d=gi(a,oa);H[g+108>>2]=d;if(d){break g}d=J[g+96>>1];if(!d){break h}d=Ub(p,12,0,d,0,g+108|0);H[g+104>>2]=d;if(H[g+108>>2]){l=0;break f}if(!J[g+96>>1]){break A}q=d+4|0;e=gi(a,q);H[g+108>>2]=e;if(e){l=0;break f}while(1){i=N(w,12)+d|0;qa=i,ra=hd(a,g+108|0),H[qa>>2]=ra;if(H[g+108>>2]){break g}l=0;qa=i,ra=Ub(p,2,0,J[q>>1],0,g+108|0),H[qa+8>>2]=ra;if(H[g+108>>2]){w=0;break f}j=0;B:{if(!J[q>>1]){e=0;break B}e=0;d=0;while(1){f=gi(a,g+6|0);H[g+108>>2]=f;if(f){break g}m=J[g+6>>1];if(m>>>0>=J[g+52>>1]){H[g+108>>2]=8;break g}G[H[i+8>>2]+(d<<1)>>1]=m;f=H[H[(m<<2)+r>>2]+4>>2];e=(f|0)==1735162214?m:e;j=(f|0)==1819239265?m:j;d=d+1|0;if(d>>>0>1]){continue}break}}if((j-e|0)!=1|e>>>0>j>>>0?e|j:0){break h}w=w+1|0;if(w>>>0>=J[g+96>>1]){break A}d=H[g+104>>2];q=(d+N(w,12)|0)+4|0;e=gi(a,q);H[g+108>>2]=e;if(!e){continue}break}w=0;break f}H[g+104>>2]=0}d=H[a+8>>2];H[g+88>>2]=d;f=(d+H[g+60>>2]|0)+3|0;l=f&-4;e=H[g+48>>2];if(l>>>0>e>>>0){break h}d=H[g+64>>2];if(d){if((d|0)!=(l|0)){break h}l=H[g+68>>2]+(f|3)&-4}d=H[g+76>>2];if(d){if((d|0)!=(l|0)){break h}l=H[g+80>>2]+(l|3)&-4}if((e+3&-4)!=(l|0)){break h}C:{ba=c>>31;l=ba+((c^ba)-ba&65535)|0;fa=J[g+96>>1];if((l|0)<(fa|0)){break C}l=0;if((c|0)<0){break C}H[g+108>>2]=6;break g}D:{if(!H[g+92>>2]){l=J[g+52>>1];break D}w=0;m=H[g+104>>2]+N(l,12)|0;n=Ub(p,4,0,J[m+4>>1],0,g+108|0);if(H[g+108>>2]){l=0;break f}f=J[m+4>>1];E:{if(!f){break E}l=0;if((f|0)!=1){e=f&65534;j=0;while(1){H[n+(l<<2)>>2]=H[(J[H[m+8>>2]+(l<<1)>>1]<<2)+r>>2];d=l|1;H[n+(d<<2)>>2]=H[(J[H[m+8>>2]+(d<<1)>>1]<<2)+r>>2];l=l+2|0;j=j+2|0;if((e|0)!=(j|0)){continue}break}}if(!(f&1)){break E}H[n+(l<<2)>>2]=H[(J[H[m+8>>2]+(l<<1)>>1]<<2)+r>>2]}r=Ub(p,4,J[g+52>>1],f,r,g+108|0);if(H[g+108>>2]){break g}i=J[m+4>>1];F:{if(!i){break F}j=0;l=0;if(i-1>>>0>=3){f=i&65532;e=0;while(1){q=l<<2;H[q+r>>2]=H[n+q>>2];d=q|4;H[d+r>>2]=H[d+n>>2];d=q|8;H[d+r>>2]=H[d+n>>2];d=q|12;H[d+r>>2]=H[d+n>>2];l=l+4|0;e=e+4|0;if((f|0)!=(e|0)){continue}break}}e=i&3;if(!e){break F}while(1){d=l<<2;H[d+r>>2]=H[d+n>>2];l=l+1|0;j=j+1|0;if((e|0)!=(j|0)){continue}break}}if(n){zb[H[p+8>>2]](p,n)}H[g+44>>2]=H[m>>2];l=J[m+4>>1];G[g+52>>1]=l}e=(l&65535)<<4|12;H[g+8>>2]=e;f=H[g+56>>2];if(f>>>0>e>>>0){d=H[g+48>>2];d=d>>>0>>6>>>0?d<<6:f;e=d>>>0<67108864?d:67108864;H[g+8>>2]=e}q=pc(p,e,g+108|0);H[g+12>>2]=q;l=0;if(H[g+108>>2]){w=0;break f}w=pc(p,40,g+108|0);if(H[g+108>>2]){break f}F[q|0]=I[g+47|0];F[q+1|0]=J[g+46>>1];F[q+2|0]=H[g+44>>2]>>>8;F[q+3|0]=H[g+44>>2];i=J[g+52>>1];if(i){d=0;l=i;while(1){f=d;d=d+1|0;j=l>>>0>1;l=l>>>1|0;if(j){continue}break}F[q+4|0]=i>>>8;j=I[g+52|0];d=i<<4;i=16<>>8;F[q+9|0]=f;F[q+8|0]=f>>>8;F[q+7|0]=i;F[q+6|0]=i>>>8;F[q+5|0]=j;d=J[g+52>>1]}else{d=0}qa=g,ra=to(q,12),H[qa+16>>2]=ra;th(r,d,4,67);d=H[g+84>>2];if(!d|d>>>0>e>>>0){break i}l=pc(p,d,g+108|0);if(H[g+108>>2]){break f}d=Jc(a,H[g+60>>2]);H[g+108>>2]=d;if(d){break f}H[g+108>>2]=7;wc(a);if(H[g+108>>2]){break f}la=H[g+84>>2];P=g+8|0;m=0;n=0;o=0;ca=0;da=0;h=xb-48|0;xb=h;H[h+16>>2]=0;e=H[g+12>>2];H[h+12>>2]=e;U=J[g+52>>1];q=U<<4|12;H[h+8>>2]=q;H[h>>2]=0;B=g+16|0;ga=H[B>>2];G:{H:{if(U){I:{while(1){E=H[(m<<2)+r>>2];if(H[E+4>>2]==1735162214){break I}m=m+1|0;if((U|0)!=(m|0)){continue}break}E=0}H[B+12>>2]=E;V=B+12|0;m=0;J:{while(1){d=H[(m<<2)+r>>2];if(H[d+4>>2]!=1819239265){m=m+1|0;if((U|0)!=(m|0)){continue}break J}break}H[B+16>>2]=d;m=8;if(!E|(H[d+16>>2]^H[E+16>>2])&256){break G}d=B+16|0;break H}H[B+16>>2]=0;m=8;if(E){break G}d=B+16|0;break H}H[B+12>>2]=0;H[B+16>>2]=0;V=B+12|0;d=B+16|0}ma=d;x=Ub(p,1,0,16,0,h+16|0);K:{L:{if(H[h+16>>2]){break L}o=pc(p,40,h+16|0);if(H[h+16>>2]){break L}H[o+32>>2]=0;H[o+8>>2]=0;H[o+4>>2]=la;H[o>>2]=l;H[o+20>>2]=0;H[o+24>>2]=0;M:{N:{O:{if(!U){break O}pa=l+8|0;ha=12;while(1){i=H[(da<<2)+r>>2];d=H[i+28>>2];f=H[i+16>>2];aa=H[i+8>>2];X=H[i+4>>2];v=H[i+24>>2];i=H[i+20>>2];E=bc(o,i);H[h+16>>2]=E;if(i+v>>>0>la>>>0|E){break M}P:{Q:{if((X|0)==1751672161){d=ud(o,34);H[h+44>>2]=d;if(d){break N}ca=nc(o,h+44|0);if(H[h+44>>2]){break N}G[B+6>>1]=ca;if(!(f&256)){break Q}break N}G[B+6>>1]=ca;H[h+4>>2]=0;if(f&256){R:{S:{T:{U:{V:{W:{if((X|0)!=1819239265){if((X|0)==1752003704){break W}if((X|0)!=1735162214){break N}m=0;H[h+44>>2]=0;H[h+40>>2]=e;n=H[o+8>>2];H[h+36>>2]=q;t=Ub(p,12,0,7,0,h+44|0);if(H[h+44>>2]){break S}d=ud(o,4);H[h+44>>2]=d;if(d){break S}Z=nc(o,h+44|0);if(H[h+44>>2]){break S}ia=nc(o,h+44|0);E=0;z=0;j=0;if(H[h+44>>2]){break R}G[B+4>>1]=Z;v=Z+1|0;if(H[H[B+16>>2]+8>>2]!=(N(v,ia?4:2)|0)|K[H[V>>2]+12>>2]<36){break T}e=hd(o,h+44|0);if(H[h+44>>2]){break R}if(e>>>0>H[H[V>>2]+12>>2]-36>>>0){break T}H[t+8>>2]=e;d=n+36|0;H[t+4>>2]=d;H[t>>2]=d;i=hd(o,h+44|0);if(H[h+44>>2]){break R}e=e+36|0;if(i>>>0>H[H[V>>2]+12>>2]-e>>>0){break T}H[t+20>>2]=i;d=e+n|0;H[t+16>>2]=d;H[t+12>>2]=d;f=hd(o,h+44|0);if(H[h+44>>2]){break R}e=e+i|0;if(f>>>0>H[H[V>>2]+12>>2]-e>>>0){break T}H[t+32>>2]=f;d=e+n|0;H[t+28>>2]=d;H[t+24>>2]=d;i=hd(o,h+44|0);if(H[h+44>>2]){break R}e=e+f|0;if(i>>>0>H[H[V>>2]+12>>2]-e>>>0){break T}H[t+44>>2]=i;d=e+n|0;H[t+40>>2]=d;H[t+36>>2]=d;f=hd(o,h+44|0);if(H[h+44>>2]){break R}e=e+i|0;if(f>>>0>H[H[V>>2]+12>>2]-e>>>0){break T}H[t+56>>2]=f;d=e+n|0;H[t+52>>2]=d;H[t+48>>2]=d;i=hd(o,h+44|0);if(H[h+44>>2]){break R}f=e+f|0;if(i>>>0>H[H[V>>2]+12>>2]-f>>>0){break T}H[t+68>>2]=i;d=f+n|0;H[t+64>>2]=d;H[t+60>>2]=d;e=hd(o,h+44|0);if(H[h+44>>2]){break R}d=f+i|0;if(e>>>0>H[H[V>>2]+12>>2]-d>>>0){break T}H[t+80>>2]=e;d=d+n|0;H[t+76>>2]=d;H[t+72>>2]=d;m=Ub(p,4,0,v,0,h+44|0);if(H[h+44>>2]){break S}na=H[t+64>>2];H[t+64>>2]=na+(Z+31>>>3&16380);z=Ub(p,1,0,5120,0,h+44|0);if(H[h+44>>2]){break R}qa=B,ra=Ub(p,2,0,Z,0,h+44|0),H[qa+8>>2]=ra;if(H[h+44>>2]){break R}d=5120;_=0;j=q;X:{if(Z){while(1){H[h+32>>2]=0;G[h+30>>1]=0;e=bc(o,(_>>>3|0)+na|0);H[h+44>>2]=e;if(e){break U}f=Gd(o,h+44|0);if(H[h+44>>2]){break U}e=bc(o,H[t+4>>2]);H[h+44>>2]=e;if(e){break U}W=nc(o,h+44|0);if(H[h+44>>2]){break U}Y=f&128>>>(_&7);H[t+4>>2]=H[t+4>>2]+2;Y:{Z:{if(W){if((W|0)==65535){F[h+22|0]=0;G[h+28>>1]=0;if(!Y){break U}f=0;j=xb-16|0;xb=j;n=H[t+52>>2];s=bc(o,n);H[j+12>>2]=s;_:{if(s){break _}e=32;while(1){if(e&32){e=nc(o,j+12|0);s=H[j+12>>2];if(s){break _}f=e>>>8&1|f;k=e&1?6:4;i=k+2|0;$:{if(e&8){break $}i=k+4|0;if(e&64){break $}i=k|e>>>4&8}s=ud(o,i);H[j+12>>2]=s;if(!s){continue}break _}break}H[h+24>>2]=H[o+8>>2]-n;F[h+22|0]=f;s=H[j+12>>2]}xb=j+16|0;if(s){break U}if(I[h+22|0]){e=bc(o,H[t+40>>2]);H[h+44>>2]=e;if(e){break U}e=gi(o,h+28|0);H[h+44>>2]=e;if(e){break U}H[t+40>>2]=H[o+8>>2];e=J[h+28>>1]}else{e=0}j=(H[h+24>>2]+(e&65535)|0)+12|0;aa:{if(j>>>0<=d>>>0){j=d;break aa}z=Ub(p,1,d,j,z,h+44|0);if(H[h+44>>2]){break U}}d=H[h+32>>2]+z|0;F[d|0]=255;F[d+1|0]=255;H[h+32>>2]=H[h+32>>2]+2;d=bc(o,H[t+64>>2]);H[h+44>>2]=d;if(d){break U}qa=h,ra=nc(o,h+44|0),G[qa+30>>1]=ra;if(H[h+44>>2]){break U}d=bc(o,H[t+64>>2]);H[h+44>>2]=d;if(d){break U}d=wd(o,H[h+32>>2]+z|0,8);H[h+44>>2]=d;if(d){break U}H[t+64>>2]=H[t+64>>2]+8;H[h+32>>2]=H[h+32>>2]+8;d=bc(o,H[t+52>>2]);H[h+44>>2]=d;if(d){break U}e=H[h+24>>2];d=wd(o,H[h+32>>2]+z|0,e);H[h+44>>2]=d;if(d){break U}H[t+52>>2]=e+H[t+52>>2];d=e+H[h+32>>2]|0;H[h+32>>2]=d;if(I[h+22|0]){d=d+z|0;F[d|0]=I[h+29|0];F[d+1|0]=I[h+28|0];H[h+32>>2]=H[h+32>>2]+2;d=bc(o,H[t+76>>2]);H[h+44>>2]=d;if(d){break U}e=J[h+28>>1];d=wd(o,H[h+32>>2]+z|0,e);H[h+44>>2]=d;if(d){break U}H[t+76>>2]=e+H[t+76>>2];H[h+32>>2]=e+H[h+32>>2]}d=j;break Y}j=Ub(p,2,0,W,0,h+44|0);if(H[h+44>>2]){break X}f=bc(o,H[t+16>>2]);H[h+44>>2]=f;i=0;e=0;if(f){break X}while(1){f=gi(o,h+28|0);H[h+44>>2]=f;if(f){break X}f=J[h+28>>1];G[(i<<1)+j>>1]=f;C=e+f|0;if(C>>>0>>0){break X}e=C;i=i+1|0;if((W|0)!=(i|0)){continue}break}H[t+16>>2]=H[o+8>>2];if(K[t+32>>2]>>0){break X}k=H[t+44>>2];i=H[t+40>>2];n=i-H[t+36>>2]|0;if(k>>>0>>0){break X}u=H[o>>2];f=H[t+28>>2];H[h+24>>2]=0;y=Ub(p,12,0,e,0,h+44|0);ba:{if(H[h+44>>2]){break ba}A=f+u|0;$=i+u|0;f=0;Q=0;L=0;M=0;i=0;R=8;u=k-n|0;ca:{if(u>>>0>>0){break ca}if(C){while(1){S=I[A+M|0];T=S&127;e=1;da:{if(T>>>0<84){break da}e=2;if(T>>>0<120){break da}e=T>>>0<124?3:4}i=e+f|0;if(u>>>0>>0|e>>>0>i>>>0){break ca}ea:{if(T>>>0<=9){s=0;e=I[f+$|0]|T<<7&1792;O=S&1?e:0-e|0;break ea}if(T>>>0<=19){O=0;e=I[f+$|0]|(T<<7)+768&1792;s=S&1?e:0-e|0;break ea}if(T>>>0<=83){n=I[f+$|0];f=T-20|0;e=n&15|f<<2&48;O=S&2?e+1|0:e^-1;e=f&48|n>>>4;s=S&1?e+1|0:e^-1;break ea}if(T>>>0<=119){k=f+$|0;n=T-84|0;f=((n&255)>>>0)/12|0;e=I[k|0]|f<<8;s=S&1?e+1|0:e^-1;e=I[k+1|0]|n-N(f,12)<<6&768;O=S&2?e+1|0:e^-1;break ea}if(T>>>0<=123){n=f+$|0;f=I[n+1|0];e=I[n|0]<<4|f>>>4;s=S&1?e:0-e|0;e=I[n+2|0]|f<<8&3840;O=S&2?e:0-e|0;break ea}f=f+$|0;e=I[f|0]<<8|I[f+1|0];s=S&1?e:0-e|0;e=I[f+3|0]|I[f+2|0]<<8;O=S&2?e:0-e|0}if((2147483647-L|0)<(s|0)&(L|0)>0|(L|0)<0&(-2147483648-L|0)>(s|0)|((2147483647-Q|0)<(O|0)&(Q|0)>0|(Q|0)<0&(-2147483648-Q|0)>(O|0))){break ca}e=y+N(M,12)|0;F[e+8|0]=((S^-1)&128)>>>7;Q=O+Q|0;H[e+4>>2]=Q;L=s+L|0;H[e>>2]=L;f=i;M=M+1|0;if((C|0)!=(M|0)){continue}break}}H[h+24>>2]=i;R=0}if(R){break ba}H[t+28>>2]=C+H[t+28>>2];e=H[t+40>>2]+H[h+24>>2]|0;H[t+40>>2]=e;e=bc(o,e);H[h+44>>2]=e;if(e){break ba}e=gi(o,h+22|0);H[h+44>>2]=e;if(e){break ba}H[t+40>>2]=H[o+8>>2];if(C>>>0>134217727){break ba}n=(J[h+22>>1]+(N(C,5)+(W<<1)|0)|0)+12|0;fa:{if(n>>>0<=d>>>0){n=d;break fa}z=Ub(p,1,d,n,z,h+44|0);if(H[h+44>>2]){break ba}}e=H[h+32>>2]+z|0;d=W<<8|W>>>8;F[e|0]=d;F[e+1|0]=d>>>8;H[h+32>>2]=H[h+32>>2]+2;ga:{if(Y){d=bc(o,H[t+64>>2]);H[h+44>>2]=d;if(d){break ba}qa=h,ra=nc(o,h+44|0),G[qa+30>>1]=ra;if(H[h+44>>2]){break ba}d=bc(o,H[t+64>>2]);H[h+44>>2]=d;if(d){break ba}d=wd(o,H[h+32>>2]+z|0,8);H[h+44>>2]=d;if(d){break ba}H[t+64>>2]=H[t+64>>2]+8;break ga}f=0;d=0;e=0;M=0;ha:{if(!C){i=0;break ha}s=1;e=H[y+4>>2];d=H[y>>2];if((C|0)==1){i=e;f=d;break ha}f=C-1|0;u=f&1;ia:{if((C|0)==2){f=d;i=e;break ia}k=f&-2;f=d;i=e;while(1){A=y+N(s,12)|0;Q=H[A+16>>2];Y=H[A+4>>2];i=(i|0)<(Y|0)?Y:i;i=(i|0)<(Q|0)?Q:i;R=H[A+12>>2];A=H[A>>2];f=(f|0)<(A|0)?A:f;f=(f|0)<(R|0)?R:f;e=(e|0)>(Y|0)?Y:e;e=(e|0)>(Q|0)?Q:e;d=(d|0)>(A|0)?A:d;d=(d|0)>(R|0)?R:d;s=s+2|0;M=M+2|0;if((k|0)!=(M|0)){continue}break}}if(!u){break ha}k=y+N(s,12)|0;u=H[k+4>>2];i=(i|0)<(u|0)?u:i;k=H[k>>2];f=(f|0)<(k|0)?k:f;e=(e|0)>(u|0)?u:e;d=(d|0)>(k|0)?k:d}F[z+9|0]=i;F[z+7|0]=f;F[z+5|0]=e;F[z+3|0]=d;F[z+8|0]=i>>>8;F[z+6|0]=f>>>8;F[z+4|0]=e>>>8;F[z+2|0]=d>>>8;G[h+30>>1]=d}H[h+32>>2]=10;f=z+10|0;e=-1;i=0;while(1){d=f;e=J[(i<<1)+j>>1]+e|0;if((e|0)>65535){break ba}f=e<<8|(e&65280)>>>8;F[d|0]=f;F[d+1|0]=f>>>8;H[h+32>>2]=H[h+32>>2]+2;f=d+2|0;i=i+1|0;if((W|0)!=(i|0)){continue}break}f=J[h+22>>1];e=f<<8|f>>>8;F[d+2|0]=e;F[d+3|0]=e>>>8;H[h+32>>2]=H[h+32>>2]+2;d=bc(o,H[t+76>>2]);H[h+44>>2]=d;if(d){break ba}d=wd(o,H[h+32>>2]+z|0,f);H[h+44>>2]=d;if(d){break ba}H[t+76>>2]=f+H[t+76>>2];H[h+32>>2]=f+H[h+32>>2];e=0;s=0;i=0;L=0;M=0;R=0;f=(f+(W<<1)|0)+12|0;ja:{ka:{la:{if(C){A=255;while(1){k=y+N(R,12)|0;u=H[k+4>>2];d=I[k+8|0]!=0;k=H[k>>2];ma:{if((k|0)==(e|0)){d=d|16;break ma}e=k-e|0;if(e+255>>>0<=510){L=L+1|0;d=((e|0)>0?18:2)|d;break ma}L=L+2|0}na:{if((s|0)==(u|0)){d=d|32;break na}e=u-s|0;if(e+255>>>0<=510){M=M+1|0;d=((e|0)>0?36:4)|d;break na}M=M+2|0}oa:{if(!((i&255)==255|(A&255)!=(d|0))){e=(f+z|0)-1|0;F[e|0]=I[e|0]|8;i=i+1|0;break oa}if(i&255){e=8;if(f>>>0>=n>>>0){break ja}F[f+z|0]=i;f=f+1|0}e=8;if(f>>>0>=n>>>0){break ja}F[f+z|0]=d;f=f+1|0;i=0}A=d;e=k;s=u;R=R+1|0;if((C|0)!=(R|0)){continue}break}if(i&255){d=8;if(f>>>0>=n>>>0){break ka}F[f+z|0]=i;e=f+1|0}else{e=f}d=8;f=L+M|0;if(f>>>0>>0){break ka}f=e+f|0;if(f>>>0>>0|f>>>0>n>>>0){break ka}f=e+L|0;if(!C){break la}i=0;d=0;A=0;while(1){u=d;s=y+N(A,12)|0;d=H[s+4>>2];k=i;i=H[s>>2];pa:{if((k|0)==(i|0)){break pa}k=i-k|0;if(k+255>>>0<=510){s=k;k=k>>31;F[e+z|0]=(s^k)-k;e=e+1|0;break pa}s=e+z|0;k=k<<8|(k&65280)>>>8;F[s|0]=k;F[s+1|0]=k>>>8;e=e+2|0}qa:{if((d|0)==(u|0)){break qa}k=d-u|0;if(k+255>>>0<=510){u=k;k=k>>31;F[f+z|0]=(u^k)-k;f=f+1|0;break qa}u=f+z|0;k=k<<8|(k&65280)>>>8;F[u|0]=k;F[u+1|0]=k>>>8;f=f+2|0}A=A+1|0;if((C|0)!=(A|0)){continue}break}break la}d=8;if(f>>>0>n>>>0){break ka}}H[h+32>>2]=f;d=0}e=d}if(!e){break Z}}E=y;break T}if(!Y){break Y}break U}if(y){zb[H[p+8>>2]](p,y)}if(j){zb[H[p+8>>2]](p,j)}d=n}H[(_<<2)+m>>2]=H[h+36>>2]-q;if(uu(h+40|0,P,h+36|0,z,H[h+32>>2],p)){break U}k=xb-16|0;xb=k;f=H[h+40>>2];j=H[h+36>>2];F[k+10|0]=0;G[k+8>>1]=0;i=8;ra:{if(j>>>0>4294967292){break ra}e=j+3&-4;sa:{if((j|0)==(e|0)){e=j;break sa}H[k+12>>2]=0;if(e>>>0>31457280){break ra}n=H[P>>2];if(n>>>0>>0){f=Ub(p,1,n,e,f,k+12|0);if(H[k+12>>2]){break ra}H[P>>2]=e}Ob(f+j|0,k+8|0,e-j|0);if(H[k+12>>2]){break ra}}H[h+40>>2]=f;H[h+36>>2]=e;i=0}xb=k+16|0;if(i){break U}qa=h,ra=H[h+4>>2]+to(z,H[h+32>>2])|0,H[qa+4>>2]=ra;if(W){G[H[B+8>>2]+(_<<1)>>1]=J[h+30>>1]}_=_+1|0;if((_|0)!=(Z|0)){continue}break}j=H[h+36>>2]}d=H[V>>2];e=j-H[d+28>>2]|0;H[d+8>>2]=e;H[H[ma>>2]+28>>2]=j;H[(Z<<2)+m>>2]=e;j=0;d=0;e=0;f=0;A=0;C=xb-16|0;xb=C;H[C+8>>2]=0;ta:{if(v>>>0<=1073741823){k=H[h+36>>2];O=H[h+40>>2];y=N(v,ia?4:2);e=Ub(p,1,0,y,0,C+8|0);if(H[C+8>>2]){break ta}ua:{if(!v){break ua}va:{if(ia){d=e;if((v|0)!=1){i=v&-2;s=0;while(1){f=A<<2;n=H[f+m>>2];n=n<<24|n<<8&16711680|(n>>>8&65280|n>>>24);F[d|0]=n;F[d+1|0]=n>>>8;F[d+2|0]=n>>>16;F[d+3|0]=n>>>24;f=H[(f|4)+m>>2];f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);F[d+4|0]=f;F[d+5|0]=f>>>8;F[d+6|0]=f>>>16;F[d+7|0]=f>>>24;A=A+2|0;d=d+8|0;s=s+2|0;if((i|0)!=(s|0)){continue}break}}if(!(v&1)){break va}f=H[(A<<2)+m>>2];f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);F[d|0]=f;F[d+1|0]=f>>>8;F[d+2|0]=f>>>16;F[d+3|0]=f>>>24;break va}d=e;if(v-1>>>0>=3){n=v&-4;s=0;while(1){u=f<<2;i=H[u+m>>2];F[d+1|0]=i>>>1;F[d|0]=i>>>9;i=H[(u|4)+m>>2];F[d+3|0]=i>>>1;F[d+2|0]=i>>>9;i=H[(u|8)+m>>2];F[d+5|0]=i>>>1;F[d+4|0]=i>>>9;i=H[(u|12)+m>>2];F[d+7|0]=i>>>1;F[d+6|0]=i>>>9;f=f+4|0;d=d+8|0;s=s+4|0;if((n|0)!=(s|0)){continue}break}}n=v&3;if(!n){break va}while(1){i=H[(f<<2)+m>>2];F[d+1|0]=i>>>1;F[d|0]=i>>>9;f=f+1|0;d=d+2|0;A=A+1|0;if((n|0)!=(A|0)){continue}break}}d=0;i=y&-4;if(!i){f=0;break ua}f=0;while(1){f=(I[(d|3)+e|0]|(I[(d|1)+e|0]<<16|I[d+e|0]<<24|I[(d|2)+e|0]<<8))+f|0;d=d+4|0;if(i>>>0>d>>>0){continue}break}d=i}if((d|0)!=(y|0)){s=0;if(d>>>0>>0){n=y-d|0;A=0;while(1){i=d<<3&16;s=I[(d|1)+e|0]<<(i^16)|(I[d+e|0]<<(i^24)|s);d=d+2|0;A=A+2|0;if((n|0)!=(A|0)){continue}break}}f=f+s|0}H[h>>2]=f;H[C+12>>2]=0;wa:{f=k+y|0;if(f>>>0>31457280){break wa}d=H[P>>2];if(d>>>0>>0){O=Ub(p,1,d,f,O,C+12|0);if(H[C+12>>2]){break wa}H[P>>2]=f}Ob(k+O|0,e,y);if(H[C+12>>2]){break wa}H[h+40>>2]=O;H[h+36>>2]=f;break ta}if(H[C+8>>2]){break ta}}H[C+8>>2]=8}if(e){zb[H[p+8>>2]](p,e)}xb=C+16|0;if(!H[C+8>>2]){break V}}break T}H[h+4>>2]=H[h>>2];q=d;break P}m=ca;if(!n){j=0;k=xb-16|0;xb=k;d=8;xa:{if(!U){break xa}ya:{while(1){m=H[(j<<2)+r>>2];if(H[m+4>>2]==1835104368){break ya}j=j+1|0;if((U|0)!=(j|0)){continue}break}m=0}j=0;while(1){e=H[(j<<2)+r>>2];if(H[e+4>>2]!=1751474532){j=j+1|0;if((U|0)!=(j|0)){continue}break xa}break}if(!m|!H[B+16>>2]){break xa}d=bc(o,H[m+20>>2]);if(d){break xa}d=ud(o,8);H[k+12>>2]=d;if(d){break xa}i=nc(o,k+12|0);d=H[k+12>>2];if(d){break xa}G[B+4>>1]=i;d=bc(o,H[e+20>>2]);H[k+12>>2]=d;if(d){break xa}d=ud(o,50);H[k+12>>2]=d;if(d){break xa}e=nc(o,k+12|0);d=H[k+12>>2];if(d){break xa}qa=B,ra=Ub(p,2,0,i,0,k+12|0),H[qa+8>>2]=ra;d=H[k+12>>2];if(d){break xa}d=0;if(!i){break xa}f=e?4:2;j=H[H[B+16>>2]+20>>2];m=0;if(!e){while(1){d=bc(o,j);H[k+12>>2]=d;if(d){break xa}e=nc(o,k+12|0);d=H[k+12>>2];if(d){break xa}d=bc(o,H[H[B+12>>2]+20>>2]+(e<<1)|0);H[k+12>>2]=d;if(d){break xa}d=ud(o,2);H[k+12>>2]=d;if(d){break xa}d=nc(o,k+12|0);G[H[B+8>>2]+(m<<1)>>1]=d;d=H[k+12>>2];if(d){break xa}j=f+j|0;d=0;m=m+1|0;if((i|0)!=(m|0)){continue}break xa}}while(1){d=bc(o,j);H[k+12>>2]=d;if(d){break xa}e=hd(o,k+12|0);d=H[k+12>>2];if(d){break xa}d=bc(o,e+H[H[B+12>>2]+20>>2]|0);H[k+12>>2]=d;if(d){break xa}d=ud(o,2);H[k+12>>2]=d;if(d){break xa}d=nc(o,k+12|0);G[H[B+8>>2]+(m<<1)>>1]=d;d=H[k+12>>2];if(d){break xa}j=f+j|0;d=0;m=m+1|0;if((i|0)!=(m|0)){continue}break}}xb=k+16|0;if(d){break N}m=J[B+6>>1]}v=J[B+4>>1];d=m&65535;u=H[B+8>>2];j=0;s=0;A=0;y=xb-16|0;xb=y;H[y+12>>2]=0;H[y+8>>2]=H[h+12>>2];H[y+4>>2]=H[h+8>>2];e=Gd(o,y+12|0);za:{Aa:{Ba:{if(H[y+12>>2]|e&252|(!(e&3)|!d)){break Ba}if(v>>>0<=(d-1&65535)>>>0){break Aa}A=Ub(p,2,0,d,0,y+12|0);if(H[y+12>>2]){break Ba}s=Ub(p,2,0,v,0,y+12|0);if(H[y+12>>2]){break Aa}m=e&2;f=e&1;i=0;while(1){e=nc(o,y+12|0);if(H[y+12>>2]){break Aa}G[(i<<1)+A>>1]=e;i=i+1|0;if((d|0)!=(i|0)){continue}break}Ca:{if(!f){while(1){e=nc(o,y+12|0);if(H[y+12>>2]){break Ba}G[(j<<1)+s>>1]=e;j=j+1|0;if((d|0)!=(j|0)){continue}break}break Ca}i=0;if(d-1>>>0>=3){f=d&65532;E=0;while(1){k=j<<1;G[k+s>>1]=J[k+u>>1];e=k|2;G[e+s>>1]=J[e+u>>1];e=k|4;G[e+s>>1]=J[e+u>>1];e=k|6;G[e+s>>1]=J[e+u>>1];j=j+4|0;E=E+4|0;if((f|0)!=(E|0)){continue}break}}f=d&3;if(!f){break Ca}while(1){e=j<<1;G[e+s>>1]=J[e+u>>1];j=j+1|0;i=i+1|0;if((f|0)!=(i|0)){continue}break}}Da:{if(d>>>0>=v>>>0){break Da}if(!m){j=d;while(1){e=nc(o,y+12|0);if(H[y+12>>2]){break Ba}G[(j<<1)+s>>1]=e;j=j+1|0;if((v|0)!=(j|0)){continue}break}break Da}m=v+(d^-1)|0;i=v-d&3;Ea:{if(!i){e=d;break Ea}j=0;e=d;while(1){f=e<<1;G[f+s>>1]=J[f+u>>1];e=e+1|0;j=j+1|0;if((i|0)!=(j|0)){continue}break}}if(m>>>0<3){break Da}while(1){i=e<<1;G[i+s>>1]=J[i+u>>1];f=i+2|0;G[f+s>>1]=J[f+u>>1];f=i+4|0;G[f+s>>1]=J[f+u>>1];f=i+6|0;G[f+s>>1]=J[f+u>>1];e=e+4|0;if((v|0)!=(e|0)){continue}break}}i=0;m=d+v<<1;j=Ub(p,1,0,m,0,y+12|0);if(H[y+12>>2]){break Aa}if(v){e=j;while(1){if(d>>>0>i>>>0){f=(i<<1)+A|0;F[e|0]=I[f+1|0];F[e+1|0]=I[f|0];e=e+2|0}f=(i<<1)+s|0;F[e|0]=I[f+1|0];F[e+1|0]=I[f|0];e=e+2|0;i=i+1|0;if((v|0)!=(i|0)){continue}break}}qa=h,ra=to(j,m),H[qa+4>>2]=ra;if(uu(y+8|0,P,y+4|0,j,m,p)){break Aa}H[h+12>>2]=H[y+8>>2];H[h+8>>2]=H[y+4>>2];if(A){zb[H[p+8>>2]](p,A)}if(s){zb[H[p+8>>2]](p,s)}if(j){zb[H[p+8>>2]](p,j)}d=H[y+12>>2];break za}j=0}if(A){zb[H[p+8>>2]](p,A)}if(s){zb[H[p+8>>2]](p,s)}if(j){zb[H[p+8>>2]](p,j)}d=H[y+12>>2];d=d?d:8}xb=y+16|0;if(d){break N}e=H[h+12>>2];break P}e=H[ma>>2];d=H[h+36>>2];H[e+8>>2]=d-H[e+28>>2];H[h+8>>2]=d;break R}j=0}if(H[h+44>>2]){break R}H[h+44>>2]=8;break R}E=0;z=0;j=0}e=H[h+40>>2];H[h+12>>2]=e;if(t){zb[H[p+8>>2]](p,t)}d=p;if(m){zb[H[d+8>>2]](d,m)}if(j){zb[H[d+8>>2]](d,j)}if(z){zb[H[d+8>>2]](d,z)}if(E){zb[H[p+8>>2]](p,E)}n=1;if(!H[h+44>>2]){break P}break N}if((X|0)!=1751474532){break Q}if(v>>>0<12){break N}d=i+pa|0;F[d|0]=0;F[d+1|0]=0;F[d+2|0]=0;F[d+3|0]=0}u=i+l|0;m=0;z=0;j=v&-4;if(j){while(1){z=(I[u+(m|3)|0]|(I[u+(m|1)|0]<<16|I[m+u|0]<<24|I[u+(m|2)|0]<<8))+z|0;m=m+4|0;if(m>>>0>>0){continue}break}}if((j|0)!=(v|0)){m=0;Fa:{if(j>>>0>=v>>>0){break Fa}k=v&1;if((v|0)!=(j|1)){i=(v&3)-k|0;f=0;while(1){d=j<<3&16;m=I[u+(j|1)|0]<<(d^16)|(I[j+u|0]<<(d^24)|m);j=j+2|0;f=f+2|0;if((i|0)!=(f|0)){continue}break}}if(!k){break Fa}m=I[j+u|0]<<((j<<3^-1)&24)|m}z=m+z|0}H[h+4>>2]=z;H[h+44>>2]=0;f=q+v|0;if(f>>>0>31457280){break N}d=H[P>>2];if(d>>>0>>0){e=Ub(p,1,d,f,e,h+44|0);if(H[h+44>>2]){break N}H[P>>2]=f}Ob(e+q|0,u,v);H[h+12>>2]=e;H[h+8>>2]=f;if(H[h+44>>2]){break N}}v=H[h+4>>2];F[x+15|0]=aa;F[x+11|0]=q;F[x+7|0]=v;F[x+3|0]=X;F[x+14|0]=aa>>>8;F[x+13|0]=aa>>>16;F[x+12|0]=aa>>>24;F[x+10|0]=q>>>8;F[x+9|0]=q>>>16;F[x+8|0]=q>>>24;F[x+6|0]=v>>>8;F[x+5|0]=v>>>16;F[x+4|0]=v>>>24;F[x+2|0]=X>>>8;F[x+1|0]=X>>>16;F[x|0]=X>>>24;H[h+44>>2]=0;f=ha+16|0;Ga:{if(f>>>0>31457280){d=e;break Ga}d=H[P>>2];Ha:{if(d>>>0>=f>>>0){d=e;break Ha}d=Ub(p,1,d,f,e,h+44|0);if(H[h+44>>2]){d=e;break Ga}H[P>>2]=f}i=I[x+4|0]|I[x+5|0]<<8|(I[x+6|0]<<16|I[x+7|0]<<24);j=d+ha|0;e=I[x|0]|I[x+1|0]<<8|(I[x+2|0]<<16|I[x+3|0]<<24);F[j|0]=e;F[j+1|0]=e>>>8;F[j+2|0]=e>>>16;F[j+3|0]=e>>>24;F[j+4|0]=i;F[j+5|0]=i>>>8;F[j+6|0]=i>>>16;F[j+7|0]=i>>>24;i=I[x+12|0]|I[x+13|0]<<8|(I[x+14|0]<<16|I[x+15|0]<<24);e=I[x+8|0]|I[x+9|0]<<8|(I[x+10|0]<<16|I[x+11|0]<<24);F[j+8|0]=e;F[j+9|0]=e>>>8;F[j+10|0]=e>>>16;F[j+11|0]=e>>>24;F[j+12|0]=i;F[j+13|0]=i>>>8;F[j+14|0]=i>>>16;F[j+15|0]=i>>>24;H[h+12>>2]=d;ha=f}u=I[x+12|0]|I[x+13|0]<<8|(I[x+14|0]<<16|I[x+15|0]<<24);k=I[x+8|0]|I[x+9|0]<<8|(I[x+10|0]<<16|I[x+11|0]<<24);j=I[x+4|0]|I[x+5|0]<<8|(I[x+6|0]<<16|I[x+7|0]<<24);i=I[x|0]|I[x+1|0]<<8|(I[x+2|0]<<16|I[x+3|0]<<24);f=H[h+8>>2];F[h+42|0]=0;G[h+40>>1]=0;if(f>>>0>4294967292){break N}m=f+3&-4;Ia:{if((f|0)==(m|0)){e=d;m=f;break Ia}H[h+44>>2]=0;if(m>>>0>31457280){break N}e=H[P>>2];Ja:{if(e>>>0>=m>>>0){e=d;break Ja}e=Ub(p,1,e,m,d,h+44|0);if(H[h+44>>2]){break N}H[P>>2]=m}Ob(e+f|0,h+40|0,m-f|0);if(H[h+44>>2]){break N}}H[h+12>>2]=e;H[h+8>>2]=m;if(q+aa>>>0>m>>>0){break N}ga=v+ga+((((j<<8&16711680|j<<24|(j>>>8&65280|j>>>24))+(i<<8&16711680|i<<24|(i>>>8&65280|i>>>24))|0)+(k<<8&16711680|k<<24|(k>>>8&65280|k>>>24))|0)+(u<<8&16711680|u<<24|(u>>>8&65280|u>>>24)))|0;q=m;da=da+1|0;if((da|0)!=(U|0)){continue}break}if(!U){break O}m=0;while(1){d=H[(m<<2)+r>>2];if(H[d+4>>2]!=1751474532){m=m+1|0;if((U|0)!=(m|0)){continue}break O}break}H[B+20>>2]=d;if(K[d+8>>2]<12){break N}f=H[d+28>>2]+e|0;d=-1313820742-ga|0;d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);F[f+8|0]=d;F[f+9|0]=d>>>8;F[f+10|0]=d>>>16;F[f+11|0]=d>>>24;H[g+100>>2]=H[h+8>>2];H[g+12>>2]=e;break K}H[B+20>>2]=0}E=H[h+16>>2]}if(E){break L}H[h+16>>2]=8}H[g+12>>2]=H[h+12>>2]}if(x){zb[H[p+8>>2]](p,x)}Ka:{if(!o){break Ka}d=H[o+24>>2];if(!d){break Ka}zb[d|0](o)}if(o){zb[H[p+8>>2]](p,o)}m=H[h+16>>2]}xb=h+48|0;H[g+108>>2]=m;if(m){break f}d=H[g+12>>2];j=H[g+100>>2];e=H[g+8>>2];if(j>>>0>>0){d=Ub(p,1,e,j,d,g+108|0);H[g+12>>2]=d;if(H[g+108>>2]){break f}j=H[g+100>>2]}H[w+32>>2]=0;H[w+8>>2]=0;H[w+4>>2]=j;H[w>>2]=d;H[w+20>>2]=0;H[w+24>>2]=0;a=H[a+28>>2];H[w+24>>2]=68;H[w+28>>2]=a;SC(H[b+104>>2],H[b+8>>2]>>>10&1);H[b+104>>2]=w;H[b+8>>2]=H[b+8>>2]&-1025;c=ba;break f}H[b+136>>2]=65536;H[b+140>>2]=1;a=pc(ja,4,g);H[b+144>>2]=a;l=H[g>>2];if(l){break a}H[a>>2]=w;H[g+40>>2]=0;break j}l=10;if(d>>>0>H[a+4>>2]>>>5>>>0){break a}qa=b,ra=Ub(ja,4,0,d,0,g),H[qa+144>>2]=ra;l=H[g>>2];if(l){break a}l=Jc(a,H[b+140>>2]<<2);H[g>>2]=l;if(l){break a}if(H[b+140>>2]>0){l=0;while(1){d=de(a);H[H[b+144>>2]+(l<<2)>>2]=d;l=l+1|0;if((l|0)>2]){continue}break}}wc(a);l=H[g>>2];H[g+40>>2]=l;if(l){break a}}k=H[b+104>>2];d=H[b+144>>2];a=c>>31;i=(a^c)-a|0;a=(i&65535)+a|0;if((a|0)>=H[b+140>>2]){l=6;if((c|0)>=0){break a}a=0}l=bc(k,H[d+(a<<2)>>2]);H[g+40>>2]=l;if(l){break a}l=zb[H[D+88>>2]](b,k)|0;H[g+40>>2]=l;if(l){break a}f=H[b+100>>2];La:{Ma:{if(zb[H[b+516>>2]](b,1719034226,k,g+16|0)|K[g+16>>2]<20){break Ma}D=hd(k,g+40|0);if(H[g+40>>2]){break Ma}j=nc(k,g+40|0);if(H[g+40>>2]){break Ma}a=ud(k,2);H[g+40>>2]=a;if(a){break Ma}l=nc(k,g+40|0);if(H[g+40>>2]){break Ma}q=nc(k,g+40|0);if(H[g+40>>2]){break Ma}d=nc(k,g+40|0);if(H[g+40>>2]){break Ma}n=nc(k,g+40|0);if(!H[g+40>>2]){break La}}D=0;j=0;l=0;q=0;d=0;n=0}r=0;a=0;Na:{if((D|0)!=65536|(q|0)!=20|(!l|l>>>0>16382)){break Na}e=l<<2;Oa:{if((e+4|0)!=(n|0)){if((e+6|0)!=(n|0)){break Na}if(d>>>0<=32511){break Oa}break Na}if(d>>>0>32511){break Na}}if(K[g+16>>2]<(N(l,20)+j|0)+N(d,n)>>>0){break Na}H[b+740>>2]=H[b+740>>2]|1;a=d}Pa:{if(!(F[b+740|0]&1)){e=0;break Pa}h=l<<2;e=pc(f,h,g+40|0);if(H[g+40>>2]){break Pa}r=pc(f,h,g+40|0);if(H[g+40>>2]){break Pa}m=(H[k+8>>2]+j|0)-16|0;if(l){D=m+8|0;j=0;d=e;while(1){qa=g,ra=Xm(k,D,d,4),H[qa+40>>2]=ra;d=d+4|0;D=q+D|0;j=j+1|0;if((l|0)!=(j|0)){continue}break}}Qa:{if(!a){D=0;break Qa}l=(m+N(l,q)|0)+4|0;D=0;while(1){qa=g,ra=Xm(k,l,r,h),H[qa+40>>2]=ra;if(!md(e,r,h)){break Qa}l=l+n|0;D=D+1|0;if((D|0)!=(a|0)){continue}break}D=a}a=((a|0)==(D|0))+a|0}if(e){zb[H[f+8>>2]](f,e)}if(r){zb[H[f+8>>2]](f,r)}d=i>>>16|0;Ra:{if(!(zb[H[b+516>>2]](b,1735162214,k,0)|0)){break Ra}if(!(zb[H[b+516>>2]](b,1128678962,k,0)|0)){break Ra}a=zb[H[b+516>>2]](b,1128678944,k,0)|0?a:0}Sa:{if(d>>>0>(a&65535)>>>0){if((c|0)>=0){break Sa}a=0}H[b+12>>2]=a<<16;H[b+4>>2]=c;H[b>>2]=H[b+140>>2];if(fa){H[b>>2]=fa}l=H[g+40>>2];break a}l=6;break a}H[g+108>>2]=8;l=0;break f}H[g+108>>2]=8}w=0;l=0}if(ea){zb[H[p+8>>2]](p,ea)}if(r){zb[H[p+8>>2]](p,r)}if(l){zb[H[p+8>>2]](p,l)}a=H[g+24>>2];if(a){zb[H[p+8>>2]](p,a)}a=H[g+104>>2];if(a){l=0;if(J[g+96>>1]){while(1){d=H[a+8>>2];if(d){zb[H[p+8>>2]](p,d)}H[a+8>>2]=0;a=a+12|0;l=l+1|0;if(l>>>0>1]){continue}break}a=H[g+104>>2]}if(a){zb[H[p+8>>2]](p,a)}H[g+104>>2]=0}if(!H[g+108>>2]){H[g>>2]=0;break b}a=H[g+12>>2];if(a){zb[H[p+8>>2]](p,a)}if(w){Ta:{if(!w){break Ta}a=H[w+24>>2];if(!a){break Ta}zb[a|0](w)}if(w){zb[H[p+8>>2]](p,w)}}l=H[g+108>>2];break c}if(!(H[g+56>>2]==(r|0)&(e|0)==(w|0))){H[g+16>>2]=8;break d}q=Ub(v,1,f,r,q,g+16|0);if(H[g+16>>2]){break d}if(J[g+52>>1]){r=q+12|0;e=0;while(1){k=N(e,24)+l|0;F[r|0]=I[k+3|0];F[r+1|0]=J[k+2>>1];F[r+2|0]=H[k>>2]>>>8;F[r+3|0]=H[k>>2];F[r+4|0]=I[k+19|0];F[r+5|0]=J[k+18>>1];F[r+6|0]=H[k+16>>2]>>>8;F[r+7|0]=H[k+16>>2];F[r+8|0]=I[k+23|0];F[r+9|0]=J[k+22>>1];F[r+10|0]=H[k+20>>2]>>>8;F[r+11|0]=H[k+20>>2];F[r+12|0]=I[k+15|0];F[r+13|0]=J[k+14>>1];F[r+14|0]=H[k+12>>2]>>>8;F[r+15|0]=H[k+12>>2];f=bc(a,H[k+4>>2]);H[g+16>>2]=f;if(f){break d}f=Jc(a,H[k+8>>2]);H[g+16>>2]=f;if(f){break d}Ua:{i=H[k+8>>2];f=H[k+12>>2];if((i|0)==(f|0)){Ob(H[k+20>>2]+q|0,H[a+32>>2],i);break Ua}H[g+108>>2]=f;n=g+108|0;m=H[a+32>>2];i=H[k+8>>2];h=xb+-64|0;xb=h;w=6;f=H[k+20>>2]+q|0;Va:{if(!n|(!f|!v)){break Va}H[h+20>>2]=f;H[h+12>>2]=i;H[h+8>>2]=m;f=H[n>>2];H[h+48>>2]=v;H[h+44>>2]=16;H[h+40>>2]=17;H[h+24>>2]=f;if(Jr(h+8|0,47,8969)){break Va}f=Vh(h+8|0,4);Wa:{if((f|0)!=1){Bg(h+8|0);if(f){break Wa}w=10;break Va}H[n>>2]=H[h+28>>2];f=Bg(h+8|0)}w=0;f=f+5|0;if(f>>>0>2){break Va}w=H[(f<<2)+29288>>2]}xb=h- -64|0;H[g+16>>2]=w;if(!w){if(H[g+108>>2]==H[k+12>>2]){break Ua}H[g+16>>2]=8}wc(a);break d}wc(a);m=H[k+12>>2];i=H[k+20>>2];f=m+i|0;if(f&3){Nb(f+q|0,0,((m^-1)-i&3)+1|0)}r=r+16|0;e=e+1|0;if(e>>>0>1]){continue}break}}e=H[g+56>>2];H[j+32>>2]=0;H[j+8>>2]=0;H[j+4>>2]=e;H[j>>2]=q;H[j+20>>2]=0;H[j+24>>2]=0;a=H[a+28>>2];H[j+24>>2]=69;H[j+28>>2]=a;SC(H[b+104>>2],H[b+8>>2]>>>10&1);H[b+104>>2]=j;H[b+8>>2]=H[b+8>>2]&-1025}if(l){zb[H[v+8>>2]](v,l)}if(d){zb[H[v+8>>2]](v,d)}if(!H[g+16>>2]){H[g>>2]=0;break b}if(q){zb[H[v+8>>2]](v,q)}Xa:{if(!j){break Xa}a=H[j+24>>2];if(!a){break Xa}zb[a|0](j)}if(j){zb[H[v+8>>2]](v,j)}l=H[g+16>>2]}H[g>>2]=l;if(l){break a}}a=H[b+104>>2];w=H[a+8>>2];d=hd(a,g);l=H[g>>2];if(!l){continue}break}}xb=g+112|0;return l|0}function OX(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=xb-304|0;xb=c;a:{b:{c:{d:{e:{f:{g:{h:{d=H[a+72>>2];i:{if(!d){break i}f=zb[H[H[d>>2]+40>>2]](d)|0;if(!f){break i}if((zb[H[H[f>>2]+12>>2]](f)|0)==5){break i}j:{k:{l:{m:{n:{o:{p:{q:{d=H[a+72>>2];switch((zb[H[H[d>>2]+76>>2]](d)|0)-1|0){case 15:break p;case 0:break q;case 10:break i;default:break o}}d=pe(c+280|0,428648,430024);e=H[b+4>>2];if(e>>>0>2]){if(F[d+11|0]>=0){h=H[c+284>>2];H[e>>2]=H[c+280>>2];H[e+4>>2]=h;H[e+8>>2]=H[c+288>>2];break l}h=H[d+4>>2];j=H[d>>2];H[197455]=0;ga(1647,e|0,j|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break l}break f}H[197455]=0;ba(1777,b|0,d|0);e=H[197455];H[197455]=0;if((e|0)!=1){if(F[d+23|0]>=0){break k}Kb(H[d+12>>2]);break k}break e}d=pe(c+280|0,428648,430076);e=H[b+4>>2];if(e>>>0>2]){if(F[d+11|0]>=0){h=H[c+284>>2];H[e>>2]=H[c+280>>2];H[e+4>>2]=h;H[e+8>>2]=H[c+288>>2];break n}h=H[d+4>>2];j=H[d>>2];H[197455]=0;ga(1647,e|0,j|0,h|0);h=H[197455];H[197455]=0;if((h|0)!=1){break n}break f}H[197455]=0;ba(1777,b|0,d|0);e=H[197455];H[197455]=0;if((e|0)!=1){if(F[d+23|0]>=0){break m}Kb(H[d+12>>2]);break m}break e}d=c+184|0;Ol(d,zb[H[H[f>>2]+8>>2]](f)&255);H[197455]=0;d=ca(1758,d|0,0,428508)|0;e=H[197455];H[197455]=0;r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{if((e|0)!=1){H[c+208>>2]=H[d+8>>2];e=H[d+4>>2];H[c+200>>2]=H[d>>2];H[c+204>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=da(1699,c+200|0,428528)|0;e=H[197455];H[197455]=0;if((e|0)==1){break K}H[c+224>>2]=H[d+8>>2];e=H[d+4>>2];H[c+216>>2]=H[d>>2];H[c+220>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;d=H[H[f>>2]+8>>2];H[197455]=0;d=aa(d|0,f|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break J}H[197455]=0;ba(1778,c+168|0,d>>>8&255);d=H[197455];H[197455]=0;if((d|0)==1){break J}H[197455]=0;d=I[c+179|0];e=d<<24>>24<0;d=ca(1759,c+216|0,(e?H[c+168>>2]:c+168|0)|0,(e?H[c+172>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break I}H[c+240>>2]=H[d+8>>2];e=H[d+4>>2];H[c+232>>2]=H[d>>2];H[c+236>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=da(1699,c+232|0,428528)|0;e=H[197455];H[197455]=0;if((e|0)==1){break H}H[c+256>>2]=H[d+8>>2];e=H[d+4>>2];H[c+248>>2]=H[d>>2];H[c+252>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;d=H[H[f>>2]+8>>2];H[197455]=0;d=aa(d|0,f|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break G}H[197455]=0;ba(1778,c+152|0,d>>>16&255);d=H[197455];H[197455]=0;if((d|0)==1){break G}H[197455]=0;d=I[c+163|0];e=d<<24>>24<0;d=ca(1759,c+248|0,(e?H[c+152>>2]:c+152|0)|0,(e?H[c+156>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break F}H[c+272>>2]=H[d+8>>2];e=H[d+4>>2];H[c+264>>2]=H[d>>2];H[c+268>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+264|0,41);d=H[197455];H[197455]=0;if((d|0)==1){break E}e=F[c+275|0];d=I[c+271|0]|I[c+272|0]<<8|(I[c+273|0]<<16|I[c+274|0]<<24);H[c+272>>2]=0;h=H[c+264>>2];j=H[c+268>>2];H[c+264>>2]=0;H[c+268>>2]=0;H[c+128>>2]=j;F[c+131|0]=d;F[c+132|0]=d>>>8;F[c+133|0]=d>>>16;F[c+134|0]=d>>>24;H[197455]=0;d=aa(899,32)|0;j=H[197455];H[197455]=0;if((j|0)==1){break B}H[c+280>>2]=d;H[c+284>>2]=6;H[c+288>>2]=-2147483640;H[197455]=0;Mb(d,428648,6);j=H[197455];H[197455]=0;if((j|0)==1){break a}H[d+24>>2]=0;H[c+296>>2]=H[c+128>>2];d=I[c+131|0]|I[c+132|0]<<8|(I[c+133|0]<<16|I[c+134|0]<<24);F[c+299|0]=d;F[c+300|0]=d>>>8;F[c+301|0]=d>>>16;F[c+302|0]=d>>>24;H[c+292>>2]=h;F[c+303|0]=e;H[c+128>>2]=0;F[c+131|0]=0;F[c+132|0]=0;F[c+133|0]=0;F[c+134|0]=0;d=H[b+4>>2];if(d>>>0>2]){if(F[c+291|0]>=0){e=H[c+284>>2];H[d>>2]=H[c+280>>2];H[d+4>>2]=e;H[d+8>>2]=H[c+288>>2];break s}H[197455]=0;ga(1647,d|0,H[c+280>>2],H[c+284>>2]);e=H[197455];H[197455]=0;if((e|0)!=1){break s}a=$()|0;_()|0;H[b+4>>2]=d;break C}H[197455]=0;ba(1777,b|0,c+280|0);d=H[197455];H[197455]=0;if((d|0)==1){break D}if(F[c+303|0]>=0){break r}Kb(H[c+292>>2]);break r}a=$()|0;_()|0;break t}a=$()|0;_()|0;break u}a=$()|0;_()|0;break v}a=$()|0;_()|0;break w}a=$()|0;_()|0;break x}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0}Vb(c+280|0);break A}a=$()|0;_()|0;if((e|0)>=0){break A}Kb(h)}if(F[c+275|0]>=0){break z}Kb(H[c+264>>2])}if(F[c+163|0]>=0){break y}Kb(H[c+152>>2])}if(F[c+259|0]>=0){break x}Kb(H[c+248>>2])}if(F[c+243|0]>=0){break w}Kb(H[c+232>>2])}if(F[c+179|0]>=0){break v}Kb(H[c+168>>2])}if(F[c+227|0]>=0){break u}Kb(H[c+216>>2])}if(F[c+211|0]>=0){break t}Kb(H[c+200>>2])}if(F[c+195|0]>=0){break b}Kb(H[c+184>>2]);break b}e=H[c+296>>2];H[d+12>>2]=H[c+292>>2];H[d+16>>2]=e;H[d+20>>2]=H[c+300>>2];H[c+292>>2]=0;H[c+296>>2]=0;H[c+300>>2]=0;H[b+4>>2]=d+24}if(F[c+291|0]<0){Kb(H[c+280>>2])}if(F[c+275|0]<0){Kb(H[c+264>>2])}if(F[c+163|0]<0){Kb(H[c+152>>2])}if(F[c+259|0]<0){Kb(H[c+248>>2])}if(F[c+243|0]<0){Kb(H[c+232>>2])}if(F[c+179|0]<0){Kb(H[c+168>>2])}if(F[c+227|0]<0){Kb(H[c+216>>2])}if(F[c+211|0]<0){Kb(H[c+200>>2])}if(F[c+195|0]>=0){break j}Kb(H[c+184>>2]);break j}h=H[d+16>>2];H[e+12>>2]=H[d+12>>2];H[e+16>>2]=h;H[e+20>>2]=H[d+20>>2];H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[b+4>>2]=e+24}if(F[d+11|0]>=0){break j}Kb(H[d>>2]);break j}h=H[d+16>>2];H[e+12>>2]=H[d+12>>2];H[e+16>>2]=h;H[e+20>>2]=H[d+20>>2];H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[b+4>>2]=e+24}if(F[d+11|0]>=0){break j}Kb(H[d>>2])}g=+zb[H[H[f>>2]+16>>2]](f);L:{if(g!=0){g=P(g);if(g!=1){break L}g=1;if(zb[H[H[f>>2]+12>>2]](f)&983040){break L}}d=H[a+72>>2];g=+zb[H[H[d>>2]+96>>2]](d)/96;i=M[a+8>>3];M:{if(i==1.7976931348623157e308){break M}l=M[a+24>>3];if(l==2.2250738585072014e-308){break M}i=l-i;if(i==0){break M}l=M[a+40>>3];if(l==0){break M}g=g*(i/l)}a=H[a+72>>2];g=g/P(M[zb[H[H[a>>2]+68>>2]](a,2)>>3])}Ce(c+264|0,g,-1);H[197455]=0;a=aa(899,64)|0;d=H[197455];H[197455]=0;N:{O:{P:{Q:{if((d|0)!=1){H[c+280>>2]=a;H[c+284>>2]=12;H[c+288>>2]=-2147483632;H[197455]=0;Mb(a,430152,12);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a+48>>2]=0;H[c+300>>2]=H[c+272>>2];H[c+272>>2]=0;a=H[c+268>>2];H[c+292>>2]=H[c+264>>2];H[c+296>>2]=a;H[c+264>>2]=0;H[c+268>>2]=0;d=H[b+4>>2];if(d>>>0>2]){if(F[c+291|0]>=0){a=H[c+284>>2];H[d>>2]=H[c+280>>2];H[d+4>>2]=a;H[d+8>>2]=H[c+288>>2];break O}H[197455]=0;ga(1647,d|0,H[c+280>>2],H[c+284>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){break O}a=$()|0;_()|0;H[b+4>>2]=d;break P}H[197455]=0;ba(1777,b|0,c+280|0);a=H[197455];H[197455]=0;if((a|0)==1){break Q}if(F[c+303|0]>=0){break N}Kb(H[c+292>>2]);break N}a=$()|0;_()|0;break d}a=$()|0;_()|0}Vb(c+280|0);break d}a=H[c+296>>2];H[d+12>>2]=H[c+292>>2];H[d+16>>2]=a;H[d+20>>2]=H[c+300>>2];H[c+292>>2]=0;H[c+296>>2]=0;H[c+300>>2]=0;H[b+4>>2]=d+24}if(F[c+291|0]<0){Kb(H[c+280>>2])}if(F[c+275|0]<0){Kb(H[c+264>>2])}R:{if((zb[H[H[f>>2]+20>>2]](f)|0)==255){break R}Ce(c+264|0,+(zb[H[H[f>>2]+20>>2]](f)>>>0)/255,3);H[197455]=0;a=aa(899,64)|0;d=H[197455];H[197455]=0;S:{T:{U:{V:{if((d|0)!=1){H[c+280>>2]=a;H[c+284>>2]=14;H[c+288>>2]=-2147483632;H[197455]=0;Mb(a,430204,14);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a+56>>2]=0;H[c+300>>2]=H[c+272>>2];H[c+272>>2]=0;a=H[c+268>>2];H[c+292>>2]=H[c+264>>2];H[c+296>>2]=a;H[c+264>>2]=0;H[c+268>>2]=0;d=H[b+4>>2];if(d>>>0>2]){if(F[c+291|0]>=0){a=H[c+284>>2];H[d>>2]=H[c+280>>2];H[d+4>>2]=a;H[d+8>>2]=H[c+288>>2];break T}H[197455]=0;ga(1647,d|0,H[c+280>>2],H[c+284>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){break T}a=$()|0;_()|0;H[b+4>>2]=d;break U}H[197455]=0;ba(1777,b|0,c+280|0);a=H[197455];H[197455]=0;if((a|0)==1){break V}if(F[c+303|0]>=0){break S}Kb(H[c+292>>2]);break S}a=$()|0;_()|0;break d}a=$()|0;_()|0}Vb(c+280|0);break d}a=H[c+296>>2];H[d+12>>2]=H[c+292>>2];H[d+16>>2]=a;H[d+20>>2]=H[c+300>>2];H[c+292>>2]=0;H[c+296>>2]=0;H[c+300>>2]=0;H[b+4>>2]=d+24}if(F[c+291|0]<0){Kb(H[c+280>>2])}if(F[c+275|0]>=0){break R}Kb(H[c+264>>2])}Ce(c+264|0,+zb[H[H[f>>2]+24>>2]](f),-1);H[197455]=0;a=aa(899,80)|0;d=H[197455];H[197455]=0;W:{X:{Y:{Z:{if((d|0)!=1){H[c+280>>2]=a;H[c+284>>2]=17;H[c+288>>2]=-2147483628;H[197455]=0;Mb(a,430264,17);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a+68>>2]=0;H[c+300>>2]=H[c+272>>2];H[c+272>>2]=0;a=H[c+268>>2];H[c+292>>2]=H[c+264>>2];H[c+296>>2]=a;H[c+264>>2]=0;H[c+268>>2]=0;d=H[b+4>>2];if(d>>>0>2]){if(F[c+291|0]>=0){a=H[c+284>>2];H[d>>2]=H[c+280>>2];H[d+4>>2]=a;H[d+8>>2]=H[c+288>>2];break X}H[197455]=0;ga(1647,d|0,H[c+280>>2],H[c+284>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){break X}a=$()|0;_()|0;H[b+4>>2]=d;break Y}H[197455]=0;ba(1777,b|0,c+280|0);a=H[197455];H[197455]=0;if((a|0)==1){break Z}if(F[c+303|0]>=0){break W}Kb(H[c+292>>2]);break W}a=$()|0;_()|0;break d}a=$()|0;_()|0}Vb(c+280|0);break d}a=H[c+296>>2];H[d+12>>2]=H[c+292>>2];H[d+16>>2]=a;H[d+20>>2]=H[c+300>>2];H[c+292>>2]=0;H[c+296>>2]=0;H[c+300>>2]=0;H[b+4>>2]=d+24}if(F[c+291|0]<0){Kb(H[c+280>>2])}if(F[c+275|0]<0){Kb(H[c+264>>2])}h=zb[H[H[f>>2]+12>>2]](f)|0;H[c+272>>2]=0;H[c+264>>2]=0;H[c+268>>2]=0;a=h&3840;_:{$:{if((a|0)!=512){if((a|0)==256){d=430360;a=6;break $}if(a){break _}d=430336;a=5;break $}d=430388;a=4}H[197455]=0;ca(1653,c+264|0,d|0,a|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break h}}a=4;d=430388;aa:{ba:{ca:{da:{j=h&240;switch(j-80|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break aa;case 16:break ba;case 0:break da;default:break ca}}a=6;d=430360;break ba}if((j|0)!=64){break aa}a=5;d=430336}H[197455]=0;ca(1653,c+264|0,d|0,a|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break h}}H[197455]=0;d=ca(2926,c+280|0,430408,c+264|0)|0;a=H[197455];H[197455]=0;ea:{fa:{ga:{if((a|0)!=1){e=H[b+4>>2];if(e>>>0>2]){if(F[d+11|0]>=0){a=H[c+284>>2];H[e>>2]=H[c+280>>2];H[e+4>>2]=a;H[e+8>>2]=H[c+288>>2];break fa}a=H[d+4>>2];k=H[d>>2];H[197455]=0;ga(1647,e|0,k|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break fa}a=$()|0;_()|0;H[b+4>>2]=e;Vb(d);break g}H[197455]=0;ba(1777,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break ga}if(F[d+23|0]>=0){break ea}Kb(H[d+12>>2]);break ea}a=$()|0;_()|0;break g}a=$()|0;_()|0;Vb(d);break g}a=H[d+16>>2];H[e+12>>2]=H[d+12>>2];H[e+16>>2]=a;H[e+20>>2]=H[d+20>>2];H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[b+4>>2]=e+24}if(F[d+11|0]<0){Kb(H[d>>2])}ha:{ia:{ja:{ka:{la:{a=h&61440;if(a){if((a|0)!=4096){if((a|0)!=8192){break ha}H[197455]=0;d=ca(2927,c+280|0,430468,430532)|0;a=H[197455];H[197455]=0;ma:{if((a|0)!=1){e=H[b+4>>2];if(e>>>0>2]){if(F[d+11|0]>=0){a=H[c+284>>2];H[e>>2]=H[c+280>>2];H[e+4>>2]=a;H[e+8>>2]=H[c+288>>2];break ja}a=H[d+4>>2];k=H[d>>2];H[197455]=0;ga(1647,e|0,k|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break ja}a=$()|0;_()|0;H[b+4>>2]=e;Vb(d);break g}H[197455]=0;ba(1777,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break ma}if(F[d+23|0]>=0){break ia}Kb(H[d+12>>2]);break ia}a=$()|0;_()|0;break g}a=$()|0;_()|0;Vb(d);break g}H[197455]=0;d=ca(2927,c+280|0,430468,430556)|0;a=H[197455];H[197455]=0;na:{if((a|0)!=1){e=H[b+4>>2];if(e>>>0>2]){if(F[d+11|0]>=0){a=H[c+284>>2];H[e>>2]=H[c+280>>2];H[e+4>>2]=a;H[e+8>>2]=H[c+288>>2];break la}a=H[d+4>>2];k=H[d>>2];H[197455]=0;ga(1647,e|0,k|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break la}a=$()|0;_()|0;H[b+4>>2]=e;Vb(d);break g}H[197455]=0;ba(1777,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break na}if(F[d+23|0]>=0){break ka}Kb(H[d+12>>2]);break ka}a=$()|0;_()|0;break g}a=$()|0;_()|0;Vb(d);break g}H[197455]=0;d=ca(2927,c+280|0,430468,430336)|0;a=H[197455];H[197455]=0;oa:{pa:{qa:{if((a|0)!=1){e=H[b+4>>2];if(e>>>0>2]){if(F[d+11|0]>=0){a=H[c+284>>2];H[e>>2]=H[c+280>>2];H[e+4>>2]=a;H[e+8>>2]=H[c+288>>2];break pa}a=H[d+4>>2];k=H[d>>2];H[197455]=0;ga(1647,e|0,k|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break pa}a=$()|0;_()|0;H[b+4>>2]=e;Vb(d);break g}H[197455]=0;ba(1777,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break qa}if(F[d+23|0]>=0){break oa}Kb(H[d+12>>2]);break oa}a=$()|0;_()|0;break g}a=$()|0;_()|0;Vb(d);break g}a=H[d+16>>2];H[e+12>>2]=H[d+12>>2];H[e+16>>2]=a;H[e+20>>2]=H[d+20>>2];H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[b+4>>2]=e+24}if(F[d+11|0]>=0){break ha}Kb(H[d>>2]);break ha}a=H[d+16>>2];H[e+12>>2]=H[d+12>>2];H[e+16>>2]=a;H[e+20>>2]=H[d+20>>2];H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[b+4>>2]=e+24}if(F[d+11|0]>=0){break ha}Kb(H[d>>2]);break ha}a=H[d+16>>2];H[e+12>>2]=H[d+12>>2];H[e+16>>2]=a;H[e+20>>2]=H[d+20>>2];H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[b+4>>2]=e+24}if(F[d+11|0]>=0){break ha}Kb(H[d>>2])}H[c+148>>2]=0;H[c+144>>2]=0;a=H[H[f>>2]+32>>2];H[197455]=0;ga(a|0,f|0,c+148|0,c+144|0);a=H[197455];H[197455]=0;ra:{sa:{ta:{ua:{va:{if((a|0)!=1){a=H[c+148>>2];if(!(!a|!H[c+144>>2])){d=0;H[c+256>>2]=0;H[c+248>>2]=0;H[c+252>>2]=0;if((j|0)==64){wa:{xa:{ya:{while(1){za:{i=M[(d<<3)+a>>3];H[197455]=0;fa(1756,c+232|0,+(g*(i-+((d&1?-1:1)|0))),-1);a=H[197455];H[197455]=0;if((a|0)==1){break za}H[197455]=0;ba(1650,c+232|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break ya}H[c+288>>2]=H[c+240>>2];H[c+240>>2]=0;a=H[c+236>>2];f=H[c+232>>2];H[c+280>>2]=f;H[c+284>>2]=a;H[c+232>>2]=0;H[c+236>>2]=0;H[197455]=0;e=f;a=F[c+291|0];f=(a|0)<0;ca(1759,c+248|0,(f?e:c+280|0)|0,(f?H[c+284>>2]:a&255)|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break xa}if(F[c+291|0]<0){Kb(H[c+280>>2])}if(F[c+243|0]<0){Kb(H[c+232>>2])}d=d+1|0;if(d>>>0>=K[c+144>>2]){break va}a=H[c+148>>2];continue}break}a=$()|0;_()|0;break ua}a=$()|0;_()|0;break wa}a=$()|0;_()|0;if(F[c+291|0]>=0){break wa}Kb(H[c+280>>2])}if(F[c+243|0]>=0){break ua}Kb(H[c+232>>2]);break ua}Aa:{Ba:{Ca:{while(1){Da:{i=M[(d<<3)+a>>3];H[197455]=0;fa(1756,c+232|0,+(g*i),-1);a=H[197455];H[197455]=0;if((a|0)==1){break Da}H[197455]=0;ba(1650,c+232|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break Ca}H[c+288>>2]=H[c+240>>2];H[c+240>>2]=0;a=H[c+236>>2];f=H[c+232>>2];H[c+280>>2]=f;H[c+284>>2]=a;H[c+232>>2]=0;H[c+236>>2]=0;H[197455]=0;e=f;a=F[c+291|0];f=(a|0)<0;ca(1759,c+248|0,(f?e:c+280|0)|0,(f?H[c+284>>2]:a&255)|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break Ba}if(F[c+291|0]<0){Kb(H[c+280>>2])}if(F[c+243|0]<0){Kb(H[c+232>>2])}d=d+1|0;if(d>>>0>=K[c+144>>2]){break va}a=H[c+148>>2];continue}break}a=$()|0;_()|0;break ua}a=$()|0;_()|0;break Aa}a=$()|0;_()|0;if(F[c+291|0]>=0){break Aa}Kb(H[c+280>>2])}if(F[c+243|0]>=0){break ua}Kb(H[c+232>>2]);break ua}Ea:{switch((h&15)-1|0){case 0:H[197455]=0;fa(1756,c+216|0,+(g*4),-1);a=H[197455];H[197455]=0;Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{if((a|0)!=1){H[197455]=0;ba(1650,c+216|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break Na}H[c+240>>2]=H[c+224>>2];H[c+224>>2]=0;a=H[c+220>>2];H[c+232>>2]=H[c+216>>2];H[c+236>>2]=a;H[c+216>>2]=0;H[c+220>>2]=0;H[197455]=0;fa(1756,c+200|0,+(g+g),-1);a=H[197455];H[197455]=0;if((a|0)==1){break Ma}H[197455]=0;a=I[c+211|0];d=a<<24>>24<0;a=ca(1759,c+232|0,(d?H[c+200>>2]:c+200|0)|0,(d?H[c+204>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break La}H[c+256>>2]=H[a+8>>2];d=H[a+4>>2];H[c+248>>2]=H[a>>2];H[c+252>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;d=ca(2928,c+280|0,430580,c+248|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break Ka}H[197455]=0;ba(1792,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break Ja}Vb(d);if(F[c+259|0]<0){Kb(H[c+248>>2])}if(F[c+211|0]<0){Kb(H[c+200>>2])}if(F[c+243|0]<0){Kb(H[c+232>>2])}if(F[c+227|0]>=0){break ra}Kb(H[c+216>>2]);break ra}a=$()|0;_()|0;break g}a=$()|0;_()|0;break Fa}a=$()|0;_()|0;break Ga}a=$()|0;_()|0;break Ha}a=$()|0;_()|0;break Ia}a=$()|0;_()|0;Vb(d)}if(F[c+259|0]>=0){break Ha}Kb(H[c+248>>2])}if(F[c+211|0]>=0){break Ga}Kb(H[c+200>>2])}if(F[c+243|0]>=0){break Fa}Kb(H[c+232>>2])}if(F[c+227|0]>=0){break g}Kb(H[c+216>>2]);break g;case 1:H[197455]=0;fa(1756,c+216|0,+g,-1);a=H[197455];H[197455]=0;Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{if((a|0)!=1){H[197455]=0;ba(1650,c+216|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break Wa}H[c+240>>2]=H[c+224>>2];H[c+224>>2]=0;a=H[c+220>>2];H[c+232>>2]=H[c+216>>2];H[c+236>>2]=a;H[c+216>>2]=0;H[c+220>>2]=0;H[197455]=0;fa(1756,c+200|0,+g,-1);a=H[197455];H[197455]=0;if((a|0)==1){break Va}H[197455]=0;a=I[c+211|0];d=a<<24>>24<0;a=ca(1759,c+232|0,(d?H[c+200>>2]:c+200|0)|0,(d?H[c+204>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ua}H[c+256>>2]=H[a+8>>2];d=H[a+4>>2];H[c+248>>2]=H[a>>2];H[c+252>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;d=ca(2928,c+280|0,430580,c+248|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break Ta}H[197455]=0;ba(1792,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break Sa}Vb(d);if(F[c+259|0]<0){Kb(H[c+248>>2])}if(F[c+211|0]<0){Kb(H[c+200>>2])}if(F[c+243|0]<0){Kb(H[c+232>>2])}if(F[c+227|0]>=0){break ra}Kb(H[c+216>>2]);break ra}a=$()|0;_()|0;break g}a=$()|0;_()|0;break Oa}a=$()|0;_()|0;break Pa}a=$()|0;_()|0;break Qa}a=$()|0;_()|0;break Ra}a=$()|0;_()|0;Vb(d)}if(F[c+259|0]>=0){break Qa}Kb(H[c+248>>2])}if(F[c+211|0]>=0){break Pa}Kb(H[c+200>>2])}if(F[c+243|0]>=0){break Oa}Kb(H[c+232>>2])}if(F[c+227|0]>=0){break g}Kb(H[c+216>>2]);break g;case 2:H[197455]=0;fa(1756,c+152|0,+(g*4),-1);a=H[197455];H[197455]=0;Xa:{Ya:{Za:{_a:{$a:{ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{ib:{jb:{kb:{lb:{mb:{nb:{ob:{pb:{if((a|0)!=1){H[197455]=0;ba(1650,c+152|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break pb}H[c+176>>2]=H[c+160>>2];H[c+160>>2]=0;a=H[c+156>>2];H[c+168>>2]=H[c+152>>2];H[c+172>>2]=a;H[c+152>>2]=0;H[c+156>>2]=0;H[197455]=0;i=g+g;fa(1756,c+128|0,+i,-1);a=H[197455];H[197455]=0;if((a|0)==1){break ob}H[197455]=0;a=I[c+139|0];d=a<<24>>24<0;a=ca(1759,c+168|0,(d?H[c+128>>2]:c+128|0)|0,(d?H[c+132>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break nb}H[c+192>>2]=H[a+8>>2];d=H[a+4>>2];H[c+184>>2]=H[a>>2];H[c+188>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;ba(1650,c+184|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break mb}H[c+208>>2]=H[c+192>>2];H[c+192>>2]=0;a=H[c+188>>2];H[c+200>>2]=H[c+184>>2];H[c+204>>2]=a;H[c+184>>2]=0;H[c+188>>2]=0;H[197455]=0;fa(1756,c+112|0,+g,-1);a=H[197455];H[197455]=0;if((a|0)==1){break lb}H[197455]=0;a=I[c+123|0];d=a<<24>>24<0;a=ca(1759,c+200|0,(d?H[c+112>>2]:c+112|0)|0,(d?H[c+116>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break kb}H[c+224>>2]=H[a+8>>2];d=H[a+4>>2];H[c+216>>2]=H[a>>2];H[c+220>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;ba(1650,c+216|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break jb}H[c+240>>2]=H[c+224>>2];H[c+224>>2]=0;a=H[c+220>>2];H[c+232>>2]=H[c+216>>2];H[c+236>>2]=a;H[c+216>>2]=0;H[c+220>>2]=0;H[197455]=0;fa(1756,c+96|0,+i,-1);a=H[197455];H[197455]=0;if((a|0)==1){break ib}H[197455]=0;a=I[c+107|0];d=a<<24>>24<0;a=ca(1759,c+232|0,(d?H[c+96>>2]:c+96|0)|0,(d?H[c+100>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break hb}H[c+256>>2]=H[a+8>>2];d=H[a+4>>2];H[c+248>>2]=H[a>>2];H[c+252>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;d=ca(2928,c+280|0,430580,c+248|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break gb}H[197455]=0;ba(1792,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break fb}Vb(d);if(F[c+259|0]<0){Kb(H[c+248>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+243|0]<0){Kb(H[c+232>>2])}if(F[c+227|0]<0){Kb(H[c+216>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+211|0]<0){Kb(H[c+200>>2])}if(F[c+195|0]<0){Kb(H[c+184>>2])}if(F[c+139|0]<0){Kb(H[c+128>>2])}if(F[c+179|0]<0){Kb(H[c+168>>2])}if(F[c+163|0]>=0){break ra}Kb(H[c+152>>2]);break ra}a=$()|0;_()|0;break g}a=$()|0;_()|0;break Xa}a=$()|0;_()|0;break Ya}a=$()|0;_()|0;break Za}a=$()|0;_()|0;break _a}a=$()|0;_()|0;break $a}a=$()|0;_()|0;break ab}a=$()|0;_()|0;break bb}a=$()|0;_()|0;break cb}a=$()|0;_()|0;break db}a=$()|0;_()|0;break eb}a=$()|0;_()|0;Vb(d)}if(F[c+259|0]>=0){break db}Kb(H[c+248>>2])}if(F[c+107|0]>=0){break cb}Kb(H[c+96>>2])}if(F[c+243|0]>=0){break bb}Kb(H[c+232>>2])}if(F[c+227|0]>=0){break ab}Kb(H[c+216>>2])}if(F[c+123|0]>=0){break $a}Kb(H[c+112>>2])}if(F[c+211|0]>=0){break _a}Kb(H[c+200>>2])}if(F[c+195|0]>=0){break Za}Kb(H[c+184>>2])}if(F[c+139|0]>=0){break Ya}Kb(H[c+128>>2])}if(F[c+179|0]>=0){break Xa}Kb(H[c+168>>2])}if(F[c+163|0]>=0){break g}Kb(H[c+152>>2]);break g;case 3:break Ea;default:break ra}}H[197455]=0;fa(1756,c+80|0,+(g*4),-1);a=H[197455];H[197455]=0;qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{Tb:{Ub:{Vb:{Wb:{if((a|0)!=1){H[197455]=0;ba(1650,c+80|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break Wb}H[c+104>>2]=H[c+88>>2];H[c+88>>2]=0;a=H[c+84>>2];H[c+96>>2]=H[c+80>>2];H[c+100>>2]=a;H[c+80>>2]=0;H[c+84>>2]=0;H[197455]=0;i=g+g;fa(1756,c- -64|0,+i,-1);a=H[197455];H[197455]=0;if((a|0)==1){break Vb}H[197455]=0;a=I[c+75|0];d=a<<24>>24<0;a=ca(1759,c+96|0,(d?H[c+64>>2]:c- -64|0)|0,(d?H[c+68>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ub}H[c+120>>2]=H[a+8>>2];d=H[a+4>>2];H[c+112>>2]=H[a>>2];H[c+116>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;ba(1650,c+112|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break Tb}H[c+136>>2]=H[c+120>>2];H[c+120>>2]=0;a=H[c+116>>2];H[c+128>>2]=H[c+112>>2];H[c+132>>2]=a;H[c+112>>2]=0;H[c+116>>2]=0;H[197455]=0;fa(1756,c+48|0,+g,-1);a=H[197455];H[197455]=0;if((a|0)==1){break Sb}H[197455]=0;a=I[c+59|0];d=a<<24>>24<0;a=ca(1759,c+128|0,(d?H[c+48>>2]:c+48|0)|0,(d?H[c+52>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Rb}H[c+160>>2]=H[a+8>>2];d=H[a+4>>2];H[c+152>>2]=H[a>>2];H[c+156>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;ba(1650,c+152|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break Qb}H[c+176>>2]=H[c+160>>2];H[c+160>>2]=0;a=H[c+156>>2];H[c+168>>2]=H[c+152>>2];H[c+172>>2]=a;H[c+152>>2]=0;H[c+156>>2]=0;H[197455]=0;fa(1756,c+32|0,+i,-1);a=H[197455];H[197455]=0;if((a|0)==1){break Pb}H[197455]=0;a=I[c+43|0];d=a<<24>>24<0;a=ca(1759,c+168|0,(d?H[c+32>>2]:c+32|0)|0,(d?H[c+36>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ob}H[c+192>>2]=H[a+8>>2];d=H[a+4>>2];H[c+184>>2]=H[a>>2];H[c+188>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;ba(1650,c+184|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break Nb}H[c+208>>2]=H[c+192>>2];H[c+192>>2]=0;a=H[c+188>>2];H[c+200>>2]=H[c+184>>2];H[c+204>>2]=a;H[c+184>>2]=0;H[c+188>>2]=0;H[197455]=0;fa(1756,c+16|0,+g,-1);a=H[197455];H[197455]=0;if((a|0)==1){break Mb}H[197455]=0;a=I[c+27|0];d=a<<24>>24<0;a=ca(1759,c+200|0,(d?H[c+16>>2]:c+16|0)|0,(d?H[c+20>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Lb}H[c+224>>2]=H[a+8>>2];d=H[a+4>>2];H[c+216>>2]=H[a>>2];H[c+220>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;ba(1650,c+216|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break Kb}H[c+240>>2]=H[c+224>>2];H[c+224>>2]=0;a=H[c+220>>2];H[c+232>>2]=H[c+216>>2];H[c+236>>2]=a;H[c+216>>2]=0;H[c+220>>2]=0;H[197455]=0;fa(1756,c|0,+i,-1);a=H[197455];H[197455]=0;if((a|0)==1){break Jb}H[197455]=0;a=I[c+11|0];d=a<<24>>24<0;a=ca(1759,c+232|0,(d?H[c>>2]:c)|0,(d?H[c+4>>2]:a)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Ib}H[c+256>>2]=H[a+8>>2];d=H[a+4>>2];H[c+248>>2]=H[a>>2];H[c+252>>2]=d;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;d=ca(2928,c+280|0,430580,c+248|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break Hb}H[197455]=0;ba(1792,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break Gb}Vb(d);if(F[c+259|0]<0){Kb(H[c+248>>2])}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+243|0]<0){Kb(H[c+232>>2])}if(F[c+227|0]<0){Kb(H[c+216>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+211|0]<0){Kb(H[c+200>>2])}if(F[c+195|0]<0){Kb(H[c+184>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}if(F[c+179|0]<0){Kb(H[c+168>>2])}if(F[c+163|0]<0){Kb(H[c+152>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+139|0]<0){Kb(H[c+128>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+91|0]>=0){break ra}Kb(H[c+80>>2]);break ra}a=$()|0;_()|0;break g}a=$()|0;_()|0;break qb}a=$()|0;_()|0;break rb}a=$()|0;_()|0;break sb}a=$()|0;_()|0;break tb}a=$()|0;_()|0;break ub}a=$()|0;_()|0;break vb}a=$()|0;_()|0;break wb}a=$()|0;_()|0;break xb}a=$()|0;_()|0;break yb}a=$()|0;_()|0;break zb}a=$()|0;_()|0;break Ab}a=$()|0;_()|0;break Bb}a=$()|0;_()|0;break Cb}a=$()|0;_()|0;break Db}a=$()|0;_()|0;break Eb}a=$()|0;_()|0;break Fb}a=$()|0;_()|0;Vb(d)}if(F[c+259|0]>=0){break Eb}Kb(H[c+248>>2])}if(F[c+11|0]>=0){break Db}Kb(H[c>>2])}if(F[c+243|0]>=0){break Cb}Kb(H[c+232>>2])}if(F[c+227|0]>=0){break Bb}Kb(H[c+216>>2])}if(F[c+27|0]>=0){break Ab}Kb(H[c+16>>2])}if(F[c+211|0]>=0){break zb}Kb(H[c+200>>2])}if(F[c+195|0]>=0){break yb}Kb(H[c+184>>2])}if(F[c+43|0]>=0){break xb}Kb(H[c+32>>2])}if(F[c+179|0]>=0){break wb}Kb(H[c+168>>2])}if(F[c+163|0]>=0){break vb}Kb(H[c+152>>2])}if(F[c+59|0]>=0){break ub}Kb(H[c+48>>2])}if(F[c+139|0]>=0){break tb}Kb(H[c+128>>2])}if(F[c+123|0]>=0){break sb}Kb(H[c+112>>2])}if(F[c+75|0]>=0){break rb}Kb(H[c+64>>2])}if(F[c+107|0]>=0){break qb}Kb(H[c+96>>2])}if(F[c+91|0]>=0){break g}Kb(H[c+80>>2]);break g}a=$()|0;_()|0;break g}a=F[c+259|0];Xb:{if((a|0)<0){a=H[c+252>>2]-1|0;H[c+252>>2]=a;a=H[c+248>>2]+(a<<2)|0;break Xb}a=(a&255)-1|0;F[c+259|0]=a;a=(c+248|0)+(a<<2)|0}H[a>>2]=0;H[197455]=0;d=ca(2929,c+280|0,430580,c+248|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=$()|0;_()|0;break ua}f=H[b+4>>2];Yb:{if(f>>>0>2]){if(F[d+11|0]>=0){a=H[c+284>>2];H[f>>2]=H[c+280>>2];H[f+4>>2]=a;H[f+8>>2]=H[c+288>>2];break ta}a=H[d+4>>2];e=H[d>>2];H[197455]=0;ga(1647,f|0,e|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break ta}a=$()|0;_()|0;H[b+4>>2]=f;break Yb}H[197455]=0;ba(1777,b|0,d|0);a=H[197455];H[197455]=0;if((a|0)!=1){if(F[d+23|0]>=0){break sa}Kb(H[d+12>>2]);break sa}a=$()|0;_()|0}Vb(d)}if(F[c+259|0]>=0){break g}Kb(H[c+248>>2]);break g}a=H[d+16>>2];H[f+12>>2]=H[d+12>>2];H[f+16>>2]=a;H[f+20>>2]=H[d+20>>2];H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[b+4>>2]=f+24}if(F[d+11|0]<0){Kb(H[d>>2])}if(F[c+259|0]>=0){break ra}Kb(H[c+248>>2])}if(F[c+275|0]>=0){break i}Kb(H[c+264>>2])}xb=c+304|0;return}a=$()|0;_()|0}if(F[c+275|0]>=0){break b}Kb(H[c+264>>2]);break b}a=$()|0;_()|0;H[b+4>>2]=e;break c}a=$()|0;_()|0;break c}if(F[c+275|0]>=0){break b}Kb(H[c+264>>2]);break b}Vb(d)}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function wja(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,L=0,M=0,O=0,P=0,R=0,S=0,T=0;d=H[a+8>>2];H[b>>2]=H[a+4>>2];H[b+4>>2]=d;H[b+16>>2]=H[a+20>>2];d=H[a+16>>2];H[b+8>>2]=H[a+12>>2];H[b+12>>2]=d;H[b+20>>2]=H[a+152>>2];u=c;c=0;q=xb-160|0;xb=q;r=b+24|0;H[r+12>>2]=-2147483648;H[q>>2]=0;H[q+4>>2]=0;j=a+24|0;H[r>>2]=H[j+24>>2];F[r+8|0]=I[j+32|0];MF(H[j>>2],1196643650,H[j+36>>2],H[j+44>>2],q+20|0,q+12|0);H[r+4>>2]=H[j+28>>2];F[r+9|0]=I[j+33|0];MF(H[j>>2],1196445523,H[j+40>>2],H[j+48>>2],q+24|0,q+16|0);d=H[j- -64>>2];a:{if(!d){break a}Pr(H[j+68>>2],d,28,744);g=H[j+64>>2];if(g>>>0>=2){p=1;while(1){i=g>>>0>p>>>0;b:{if(!i){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break b}d=H[j+68>>2]+N(p,28)|0}f=H[d>>2];h=c>>>0>>0;c:{if(!h){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break c}d=H[j+68>>2]+N(c,28)|0}d:{if((f|0)!=H[d>>2]){e:{if(!i){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break e}d=H[j+68>>2]+N(p,28)|0}c=c+1|0;f:{if(g>>>0<=c>>>0){H[196254]=H[40914];e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break f}e=H[j+68>>2]+N(c,28)|0}f=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=f;H[e+24>>2]=H[d+24>>2];f=H[d+20>>2];H[e+16>>2]=H[d+16>>2];H[e+20>>2]=f;f=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=f;break d}g:{if(!i){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break g}d=H[j+68>>2]+N(p,28)|0}h:{if(F[d+12|0]&1){i:{if(!h){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break i}d=H[j+68>>2]+N(c,28)|0}H[d+12>>2]=H[d+12>>2]|1;j:{if(!i){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break j}d=H[j+68>>2]+N(p,28)|0}e=H[d+8>>2];k:{if(!h){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break k}d=H[j+68>>2]+N(c,28)|0}H[d+8>>2]=e;l:{if(!i){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break l}d=H[j+68>>2]+N(p,28)|0}e=H[d+16>>2];if(!h){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;H[196252]=e;break h}H[(H[j+68>>2]+N(c,28)|0)+16>>2]=e;break h}m:{n:{o:{p:{q:{if(c>>>0>>0){d=N(c,28);if(!(F[(d+H[j+68>>2]|0)+12|0]&1)){break p}g=d+H[j+68>>2]|0;break q}d=H[40911];H[196250]=H[40910];H[196251]=d;H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;if(!(F[785004]&1)){break o}}H[g+12>>2]=H[g+12>>2]^1}if(h){break n}}H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break m}d=H[j+68>>2]+N(c,28)|0}r:{if(!i){H[196254]=H[40914];e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;f=784992;break r}f=H[j+68>>2]+N(p,28)|0}e=H[d+8>>2];d=H[f+8>>2];e=d>>>0>>0?e:d;s:{if(!h){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break s}d=H[j+68>>2]+N(c,28)|0}H[d+8>>2]=e}t:{if(!i){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break t}d=H[j+68>>2]+N(p,28)|0}u:{if(!h){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break u}g=H[j+68>>2]+N(c,28)|0;H[g+12>>2]=H[g+12>>2]|H[d+12>>2]&2}v:{if(!i){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break v}d=H[j+68>>2]+N(p,28)|0}e=H[g+20>>2];d=H[d+20>>2];e=d>>>0>e>>>0?e:d;w:{if(!h){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break w}d=H[j+68>>2]+N(c,28)|0}H[d+20>>2]=e;e=H[j+64>>2];f=e>>>0>c>>>0;x:{if(!f){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break x}d=H[j+68>>2]+N(c,28)|0}y:{if(e>>>0<=p>>>0){H[196254]=H[40914];e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;h=784992;break y}h=H[j+68>>2]+N(p,28)|0}e=H[d+24>>2];d=H[h+24>>2];e=d>>>0>e>>>0?e:d;z:{if(!f){H[196254]=H[40914];d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break z}d=H[j+68>>2]+N(c,28)|0}H[d+24>>2]=e}g=H[j+64>>2];p=p+1|0;if(g>>>0>p>>>0){continue}break}}c=c+1|0;c=(c|0)>0?c:0;if(c>>>0>>0){H[j+64>>2]=c;g=c}if(!g){break a}o=q+36|0;f=3;v=H[q+4>>2];k=H[q>>2];p=0;while(1){A:{if(g>>>0<=p>>>0){H[196254]=H[40914];c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;h=784992;break A}h=H[j+68>>2]+N(p,28)|0}d=H[h+8>>2];B:{C:{if(F[h+12|0]&1){c=0;if((d|0)==1){break C}}if(!d){break B}c=32-Q(d)|0;c=c>>>0<8?c:8}e=c+f|0;if(e>>>0>30){break B}c=H[h>>2];k=(c|0)==H[q+12>>2]?H[h+20>>2]:k;d=LF(H[j>>2],1196643650,H[j+36>>2],H[j+44>>2],c,q+32|0);c=H[h>>2];v=(c|0)==H[q+16>>2]?H[h+24>>2]:v;n=0;D:{E:{if(LF(H[j>>2],1196445523,H[j+40>>2],H[j+48>>2],c,o)|d){break E}c=H[h+12>>2];if(c&16){if(NF(H[j>>2],1196643650,H[h>>2],q+32|0)|NF(H[j>>2],1196445523,H[h>>2],o)){break E}c=H[h+12>>2]}n=1;if(!(c&2)){break D}}F:{G:{H:{d=H[r+28>>2];if((d|0)>=0){c=d;w=H[r+32>>2];i=w+1|0;i=(i|0)>0?i:0;if(c>>>0>=i>>>0){break G}while(1){c=((c>>>1|0)+c|0)+8|0;if(i>>>0>=c>>>0){continue}break}if(!(c>>>0>>0|c>>>0>119304646)){d=tc(H[r+36>>2],N(c,36));if(d){break H}}H[r+28>>2]=-1}H[196256]=H[40916];c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break F}H[r+28>>2]=c;H[r+36>>2]=d;w=H[r+32>>2]}if(i>>>0>w>>>0){Nb(H[r+36>>2]+N(w,36)|0,0,N(i-w|0,36))}H[r+32>>2]=i;c=(H[r+36>>2]+N(i,36)|0)-36|0}H[c>>2]=H[h>>2];H[c+4>>2]=H[q+32>>2];H[c+8>>2]=H[q+36>>2];H[c+12>>2]=H[h+20>>2];H[c+16>>2]=H[h+24>>2];d=(I[h+12|0]>>>1&2|I[c+32|0]&-3)^2;F[c+32|0]=d;d=(I[h+12|0]>>>1&4|d&-5)^4;F[c+32|0]=d;w=d&-9|I[h+12|0]>>>2&8;F[c+32|0]=w;I:{if(!(!(F[h+12|0]&1)|H[h+8>>2]!=1)){m=-2147483648;e=f;f=31;break I}m=(1<>2]=H[r+12>>2]|m&H[h+16>>2]<>2]=m;H[c+20>>2]=f;F[c+32|0]=w&254|n;H[c+28>>2]=1<>2]}p=p+1|0;if(p>>>0>>0){continue}break}H[q+4>>2]=v;H[q>>2]=k;if(!g){break a}H[j+64>>2]=0}J:{K:{L:{d=H[j+72>>2];if((d|0)>=0){c=H[j+76>>2];e=c+1|0;e=(e|0)>0?e:0;if(e>>>0<=d>>>0){break K}c=d;while(1){c=((c>>>1|0)+c|0)+8|0;if(e>>>0>=c>>>0){continue}break}if(!(c>>>0>>0|c>>>0>536870910)){d=tc(H[j+80>>2],c<<3);if(d){break L}}H[j+72>>2]=-1}c=H[40909];H[196248]=H[40908];H[196249]=c;d=784992;break J}H[j+72>>2]=c;H[j+80>>2]=d;c=H[j+76>>2]}if(c>>>0>>0){Nb(H[j+80>>2]+(c<<3)|0,0,e-c<<3)}H[j+76>>2]=e;d=(H[j+80>>2]+(e<<3)|0)-8|0}c=H[j+52>>2];H[d+4>>2]=0;H[d>>2]=c;H[j+52>>2]=H[j+52>>2]+1;M:{N:{O:{d=H[j+84>>2];if((d|0)>=0){c=H[j+88>>2];e=c+1|0;e=(e|0)>0?e:0;if(e>>>0<=d>>>0){break N}c=d;while(1){c=((c>>>1|0)+c|0)+8|0;if(e>>>0>=c>>>0){continue}break}if(!(c>>>0>>0|c>>>0>536870910)){d=tc(H[j+92>>2],c<<3);if(d){break O}}H[j+84>>2]=-1}c=H[40909];o=c;h=H[40908];H[196248]=h;H[196249]=c;d=784992;break M}H[j+84>>2]=c;H[j+92>>2]=d;c=H[j+88>>2]}if(c>>>0>>0){Nb(H[j+92>>2]+(c<<3)|0,0,e-c<<3)}H[j+88>>2]=e;h=H[40908];o=H[40909];d=(H[j+92>>2]+(e<<3)|0)-8|0}c=H[j+56>>2];H[d+4>>2]=0;H[d>>2]=c;H[j+56>>2]=H[j+56>>2]+1;i=o;d=(i&65535)<<16|h>>>16;while(1){D=M<<2;R=D+j|0;if(H[R+52>>2]){S=D+124976|0;T=u+D|0;c=N(M,12);l=c+r|0;P=l- -64|0;O=c+j|0;s=q+D|0;A=(q+20|0)+D|0;w=0;e=0;L=0;while(1){y=H[A>>2];P:{if((y|0)==65535|H[s>>2]!=(w|0)){break P}B=H[T>>2];v=0;C=H[S>>2];z=JF(H[j>>2],C);while(1){H[q+28>>2]=32;KF(H[j>>2],C,y,B,v,q+28|0,q+32|0);m=0;c=H[q+28>>2];if(!c){break P}while(1){n=(q+32|0)+(m<<2)|0;if(z>>>0>K[n>>2]){Q:{R:{S:{c=H[l+40>>2];if((c|0)>=0){g=c;f=H[l+44>>2];k=f+1|0;k=(k|0)>0?k:0;if(c>>>0>=k>>>0){break R}while(1){g=((g>>>1|0)+g|0)+8|0;if(k>>>0>=g>>>0){continue}break}if(!(c>>>0>g>>>0|g>>>0>536870910)){c=tc(H[l+48>>2],g<<3);if(c){break S}}H[l+40>>2]=-1}H[196248]=h;H[196249]=o;c=784992;f=d;break Q}H[l+48>>2]=c;H[l+40>>2]=g;f=H[l+44>>2]}if(f>>>0>>0){Nb(H[l+48>>2]+(f<<3)|0,0,k-f<<3)}H[l+44>>2]=k;f=H[l+48>>2]+(k<<3)|0;c=f-8|0;f=I[f-6|0]}H[c+4>>2]=-2147483648;g=H[n>>2];F[c+2|0]=f&248|3;G[c>>1]=g;c=H[q+28>>2]}m=m+1|0;if(m>>>0>>0){continue}break}v=c+v|0;if((c|0)==32){continue}break}}p=0;m=H[r+32>>2];if(m){while(1){T:{if(m>>>0<=p>>>0){H[196256]=H[40916];c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break T}c=H[r+36>>2]+N(p,36)|0}U:{if(H[(c+D|0)+12>>2]!=(w|0)){break U}m=H[r+32>>2];V:{if(p>>>0>=m>>>0){H[196256]=H[40916];c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;m=H[r+32>>2];c=784992;break V}c=H[r+36>>2]+N(p,36)|0}v=H[(c+D|0)+4>>2];y=H[T>>2];W:{if(m>>>0<=p>>>0){H[196256]=H[40916];c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;m=H[r+32>>2];c=784992;break W}c=H[r+36>>2]+N(p,36)|0}B=H[c+24>>2];X:{if(m>>>0<=p>>>0){H[196256]=H[40916];c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;m=H[r+32>>2];c=784992;break X}c=H[r+36>>2]+N(p,36)|0}g=I[c+32|0];Y:{if(m>>>0<=p>>>0){H[196256]=H[40916];c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;m=H[r+32>>2];c=784992;break Y}c=H[r+36>>2]+N(p,36)|0}f=I[c+32|0];Z:{if(m>>>0<=p>>>0){H[196256]=H[40916];c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break Z}c=H[r+36>>2]+N(p,36)|0}C=I[c+32|0]>>>1&4|(f>>>1&2|g>>>1&1);x=0;z=H[S>>2];n=JF(H[j>>2],z);while(1){H[q+28>>2]=32;KF(H[j>>2],z,v,y,x,q+28|0,q+32|0);m=0;c=H[q+28>>2];if(!c){break U}while(1){k=(q+32|0)+(m<<2)|0;if(n>>>0>K[k>>2]){_:{$:{aa:{c=H[l+40>>2];if((c|0)>=0){f=H[l+44>>2];g=f+1|0;E=(g|0)>0?g:0;g=c;if(E>>>0<=c>>>0){break $}while(1){g=((g>>>1|0)+g|0)+8|0;if(E>>>0>=g>>>0){continue}break}if(!(c>>>0>g>>>0|g>>>0>536870910)){c=tc(H[l+48>>2],g<<3);if(c){break aa}}H[l+40>>2]=-1}H[196248]=h;H[196249]=o;c=784992;f=d;break _}H[l+48>>2]=c;H[l+40>>2]=g;f=H[l+44>>2]}if(f>>>0>>0){Nb(H[l+48>>2]+(f<<3)|0,0,E-f<<3)}H[l+44>>2]=E;f=H[l+48>>2]+(E<<3)|0;c=f-8|0;f=I[f-6|0]}H[c+4>>2]=B;g=H[k>>2];F[c+2|0]=C|f&248;G[c>>1]=g;c=H[q+28>>2]}m=m+1|0;if(m>>>0>>0){continue}break}x=c+x|0;if((c|0)==32){continue}break}}m=H[r+32>>2];p=p+1|0;if(m>>>0>p>>>0){continue}break}}c=H[l+44>>2];ba:{if(c>>>0<=e>>>0){e=c;break ba}Pr(H[l+48>>2]+(e<<3)|0,c-e|0,8,745);c=H[l+44>>2];m=e+1|0;if(c>>>0>m>>>0){while(1){ca:{if(c>>>0<=m>>>0){H[196248]=h;H[196249]=o;c=H[l+44>>2];f=h;break ca}f=J[H[l+48>>2]+(m<<3)>>1]}da:{if(c>>>0<=e>>>0){H[196248]=h;H[196249]=o;g=h;break da}g=J[H[l+48>>2]+(e<<3)>>1]}c=H[l+44>>2];ea:{if((f&65535)!=(g&65535)){fa:{if(c>>>0<=m>>>0){H[196248]=h;H[196249]=o;c=H[l+44>>2];f=784992;break fa}f=H[l+48>>2]+(m<<3)|0}e=e+1|0;ga:{if(e>>>0>=c>>>0){H[196248]=h;H[196249]=o;g=784992;break ga}g=H[l+48>>2]+(e<<3)|0}c=H[f+4>>2];H[g>>2]=H[f>>2];H[g+4>>2]=c;break ea}ha:{if(c>>>0<=m>>>0){H[196248]=h;H[196249]=o;c=H[l+44>>2];f=i;break ha}f=H[(H[l+48>>2]+(m<<3)|0)+4>>2]}ia:{if(c>>>0<=e>>>0){H[196248]=h;H[196249]=o;c=H[l+44>>2];g=784992;n=i;break ia}g=H[l+48>>2]+(e<<3)|0;n=H[g+4>>2]}k=n;H[g+4>>2]=f|k;ja:{if(c>>>0<=m>>>0){H[196248]=h;H[196249]=o;c=H[l+44>>2];f=d;break ja}f=I[(H[l+48>>2]+(m<<3)|0)+2|0]}ka:{if(c>>>0<=e>>>0){H[196248]=h;H[196249]=o;c=784992;g=d;break ka}c=H[l+48>>2]+(e<<3)|0;g=I[c+2|0]}F[c+2|0]=g&(f|254);c=H[l+44>>2];la:{if(m>>>0>=c>>>0){H[196248]=h;H[196249]=o;c=H[l+44>>2];f=d;break la}f=I[(H[l+48>>2]+(m<<3)|0)+2|0]}ma:{if(c>>>0<=e>>>0){H[196248]=h;H[196249]=o;c=784992;g=d;break ma}c=H[l+48>>2]+(e<<3)|0;g=I[c+2|0]}F[c+2|0]=g&(f|253)}c=H[l+44>>2];m=m+1|0;if(c>>>0>m>>>0){continue}break}m=e+1|0}e=c;c=(m|0)>0?m:0;if(e>>>0<=c>>>0){break ba}H[l+44>>2]=c;e=c}na:{if(K[O+76>>2]<=L>>>0){break na}n=L<<3;if(H[n+H[O+80>>2]>>2]!=(w|0)){break na}oa:{pa:{qa:{c=H[P>>2];if((c|0)>=0){f=c;g=H[l+68>>2];k=g+1|0;k=(k|0)>0?k:0;if(c>>>0>=k>>>0){break pa}while(1){f=((f>>>1|0)+f|0)+8|0;if(k>>>0>=f>>>0){continue}break}if(!(c>>>0>f>>>0|f>>>0>536870910)){c=tc(H[l+72>>2],f<<3);if(c){break qa}}H[P>>2]=-1}H[196248]=h;H[196249]=o;c=784992;break oa}H[l+72>>2]=c;H[P>>2]=f;g=H[l+68>>2]}if(g>>>0>>0){Nb(H[l+72>>2]+(g<<3)|0,0,k-g<<3)}H[l+68>>2]=k;c=(H[l+72>>2]+(k<<3)|0)-8|0}H[c>>2]=e;ra:{if(K[O+76>>2]<=L>>>0){H[196248]=h;H[196249]=o;f=i;break ra}f=H[(n+H[O+80>>2]|0)+4>>2]}H[c+4>>2]=f;L=L+1|0}w=w+1|0;if(w>>>0>2]){continue}break}}M=M+1|0;if((M|0)!=2){continue}break}xb=q+160|0;if(F[a+148|0]&1){e=b+112|0;k=0;f=a+120|0;c=H[f+20>>2];sa:{if(!c){break sa}et(H[f+24>>2],c,16);n=H[f+20>>2];if(n>>>0>=2){c=1;while(1){g=c>>>0>>0;ta:{if(!g){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break ta}d=H[f+24>>2]+(c<<4)|0}h=H[d>>2];i=k>>>0>>0;ua:{if(!i){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break ua}d=H[f+24>>2]+(k<<4)|0}va:{if((h|0)==H[d>>2]){wa:{if(c>>>0>>0){d=c<<4;if(I[(d+H[f+24>>2]|0)+8|0]){break va}d=d+H[f+24>>2]|0;break wa}d=H[40911];h=H[40910];H[196250]=h;H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;if(h&255){break va}d=784992}h=H[d+4>>2];xa:{if(!i){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break xa}d=H[f+24>>2]+(k<<4)|0}if((h^H[d+4>>2])>>>0<2){break va}}ya:{if(!g){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break ya}d=H[f+24>>2]+(c<<4)|0}k=k+1|0;za:{if(n>>>0<=k>>>0){h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;i=784992;break za}i=H[f+24>>2]+(k<<4)|0}h=H[d+4>>2];H[i>>2]=H[d>>2];H[i+4>>2]=h;h=H[d+12>>2];H[i+8>>2]=H[d+8>>2];H[i+12>>2]=h;n=H[f+20>>2]}c=c+1|0;if(n>>>0>c>>>0){continue}break}}c=k+1|0;c=(c|0)>0?c:0;if(c>>>0>=n>>>0){break sa}H[f+20>>2]=c}i=e;B=0;c=f;d=Lt(H[c>>2]+156|0);Aa:{if(I[d|0]|I[d+1|0]<<8){c=I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24);n=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(n){c=d+8|0;C=H[40908];while(1){x=0;d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);e=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);h=c;c=I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24);k=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);Ba:{if(!k){break Ba}c=H[f+20>>2];if((c|0)<=0){break Ba}d=c-1|0;u=H[f+24>>2];while(1){s=(x|0)<0?163632:(h+N(x,12)|0)+16|0;c=I[s+2|0]|I[s+3|0]<<8;A=(c<<8|c>>>8)&65535;c=I[s|0]|I[s+1|0]<<8;v=(c<<8|c>>>8)&65535;while(1){y=0;c=d;Ca:{while(1){Da:{Ea:{Fa:{z=c+y>>>1|0;o=u+(z<<4)|0;g=H[o>>2];Ga:{if((g|0)!=(v|0)){if((g|0)>(v|0)){break Ga}break Ea}g=H[o+4>>2];if((g|0)==(A|0)){break Fa}if((g|0)<=(A|0)){break Ea}}c=z-1|0;break Da}c=I[s+8|0]|I[s+9|0]<<8|(I[s+10|0]<<16|I[s+11|0]<<24);e=I[s+7|0]|((c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))&e|(I[s+5|0]<<16|I[s+4|0]<<24)|I[s+6|0]<<8);break Ca}y=z+1|0}if((c|0)>=(y|0)){continue}break}if((v|0)!=3){break Ca}v=37;c=(A|0)==3;A=1;if(c){continue}}break}x=x+1|0;if((k|0)!=(x|0)){continue}break}}Ha:{Ia:{Ja:{d=H[i>>2];if((d|0)>=0){c=d;k=H[i+4>>2];g=k+1|0;g=(g|0)>0?g:0;if(c>>>0>=g>>>0){break Ia}while(1){c=((c>>>1|0)+c|0)+8|0;if(g>>>0>=c>>>0){continue}break}if(!(c>>>0>>0|c>>>0>1073741822)){d=tc(H[i+8>>2],c<<2);if(d){break Ja}}H[i>>2]=-1}H[196248]=C;break Ha}H[i>>2]=c;H[i+8>>2]=d;k=H[i+4>>2]}if(g>>>0>k>>>0){Nb(H[i+8>>2]+(k<<2)|0,0,g-k<<2)}H[i+4>>2]=g;c=H[i+8>>2];H[196248]=C;c=(c+(g<<2)|0)-4|0;if((c|0)==784992){break Ha}H[c>>2]=e}c=I[h+4|0]|I[h+5|0]<<8|(I[h+6|0]<<16|I[h+7|0]<<24);c=h+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;B=B+1|0;if((n|0)!=(B|0)){continue}break}}break Aa}d=Kt(H[c>>2]+160|0);if(I[d|0]|I[d+1|0]<<8){c=I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24);n=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(n){c=d+8|0;C=H[40908];while(1){v=0;d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);e=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);h=c;g=I[c+8|0]|I[c+9|0]<<8;Ka:{if(!g){break Ka}c=H[f+20>>2];if((c|0)<=0){break Ka}d=c-1|0;k=H[f+24>>2];c=(g<<8|g>>>8)&65535;u=c>>>0>1?c:1;while(1){s=h+N(v,12)|0;c=I[s+14|0]|I[s+15|0]<<8;x=(c<<8|c>>>8)&65535;c=I[s+12|0]|I[s+13|0]<<8;A=(c<<8|c>>>8)&65535;while(1){y=0;c=d;La:{while(1){Ma:{Na:{Oa:{z=c+y>>>1|0;o=k+(z<<4)|0;g=H[o>>2];Pa:{if((g|0)!=(A|0)){if((g|0)>(A|0)){break Pa}break Na}g=H[o+4>>2];if((g|0)==(x|0)){break Oa}if((g|0)<=(x|0)){break Na}}c=z-1|0;break Ma}c=I[s+20|0]|I[s+21|0]<<8|(I[s+22|0]<<16|I[s+23|0]<<24);e=I[s+19|0]|((c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))&e|(I[s+17|0]<<16|I[s+16|0]<<24)|I[s+18|0]<<8);break La}y=z+1|0}if((c|0)>=(y|0)){continue}break}if((A|0)!=3){break La}A=37;c=(x|0)==3;x=1;if(c){continue}}break}v=v+1|0;if((u|0)!=(v|0)){continue}break}}Qa:{Ra:{Sa:{d=H[i>>2];if((d|0)>=0){c=d;k=H[i+4>>2];g=k+1|0;g=(g|0)>0?g:0;if(c>>>0>=g>>>0){break Ra}while(1){c=((c>>>1|0)+c|0)+8|0;if(g>>>0>=c>>>0){continue}break}if(!(c>>>0>>0|c>>>0>1073741822)){d=tc(H[i+8>>2],c<<2);if(d){break Sa}}H[i>>2]=-1}H[196248]=C;break Qa}H[i>>2]=c;H[i+8>>2]=d;k=H[i+4>>2]}if(g>>>0>k>>>0){Nb(H[i+8>>2]+(k<<2)|0,0,g-k<<2)}H[i+4>>2]=g;c=H[i+8>>2];H[196248]=C;c=(c+(g<<2)|0)-4|0;if((c|0)==784992){break Qa}H[c>>2]=e}c=I[h+4|0]|I[h+5|0]<<8|(I[h+6|0]<<16|I[h+7|0]<<24);c=h+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;B=B+1|0;if((n|0)!=(B|0)){continue}break}}}}}u=H[b+60>>2];Ta:{Ua:{Va:{c=b;Wa:{Xa:{Ya:{o=H[c+56>>2];if((o|0)>0){e=o-1|0;f=e;Za:{_a:{while(1){h=f+t>>>1|0;d=H[u+N(h,36)>>2];$a:{if(d>>>0>=1718772068){f=h-1|0;break $a}if((d|0)==1718772067){break _a}t=h+1|0}if((f|0)>=(t|0)){continue}break}d=0;break Za}d=H[(u+N(h,36)|0)+28>>2]}H[b+128>>2]=d;t=0;f=e;while(1){i=f+t>>>1|0;h=H[u+N(i,36)>>2];ab:{if(h>>>0>=1853189491){f=i-1|0;break ab}if((h|0)==1853189490){break Ya}t=i+1|0}if((f|0)>=(t|0)){continue}break}h=0;break Xa}H[b+136>>2]=0;H[b+128>>2]=0;H[b+132>>2]=0;g=J[b+152>>1]&-5;G[b+152>>1]=g;d=b+152|0;break Wa}h=H[(u+N(i,36)|0)+28>>2]}H[c+132>>2]=h;f=0;bb:{cb:{while(1){i=e+f>>>1|0;c=H[u+N(i,36)>>2];db:{if(c>>>0>=1684959086){e=i-1|0;break db}if((c|0)==1684959085){break cb}f=i+1|0}if((e|0)>=(f|0)){continue}break}c=0;break bb}c=H[(u+N(i,36)|0)+28>>2]}H[b+136>>2]=c;eb:{fb:{if(d){d=b+152|0;t=J[b+152>>1];break fb}d=b+152|0;t=J[b+152>>1];f=0;if(!h|!c){break eb}}f=4}g=t&-5|f;G[d>>1]=g;e=0;if((o|0)>0){break Va}}H[b+140>>2]=0;break Ua}f=o-1|0;t=f;gb:{hb:{while(1){h=e+t>>>1|0;c=H[u+N(h,36)>>2];ib:{if(c>>>0>=1920232558){t=h-1|0;break ib}if((c|0)==1920232557){break hb}e=h+1|0}if((e|0)<=(t|0)){continue}break}c=0;break gb}c=H[(u+N(h,36)|0)+28>>2]}H[b+140>>2]=c;e=0;while(1){jb:{h=e+f>>>1|0;c=H[u+N(h,36)>>2];kb:{if(c>>>0>=1986359925){f=h-1|0;break kb}if((c|0)==1986359924){break jb}e=h+1|0}if((e|0)<=(f|0)){continue}break Ua}break}c=8;if(H[(u+N(h,36)|0)+28>>2]){break Ta}}c=0}e=c|g&-9;G[d>>1]=e;i=(H[a+4>>2]&-2)==4?1801810542:1986753134;f=0;lb:{mb:{nb:{ob:{if((o|0)<=0){H[b+144>>2]=0;n=e&65534;G[b+152>>1]=n;break ob}t=o-1|0;n=t;pb:{qb:{while(1){h=f+n>>>1|0;c=H[u+N(h,36)>>2];rb:{if(c>>>0>i>>>0){n=h-1|0;break rb}if(c>>>0>=i>>>0){break qb}f=h+1|0}if((f|0)<=(n|0)){continue}break}c=0;break pb}c=H[(u+N(h,36)|0)+24>>2]}H[b+144>>2]=c;f=0;n=e&-2|(c|0)!=0;G[b+152>>1]=n;while(1){e=f+t>>>1|0;c=H[u+N(e,36)>>2];sb:{if(c>>>0>=1953653100){t=e-1|0;break sb}if((c|0)==1953653099){break nb}f=e+1|0}if((f|0)<=(t|0)){continue}break}}H[b+148>>2]=0;break mb}c=H[(u+N(e,36)|0)+24>>2];H[b+148>>2]=c;f=2;if(c){break lb}}f=0}G[d>>1]=f|n&65533;n=65535;tb:{if((o|0)<=0){break tb}f=o-1|0;t=0;while(1){ub:{e=f+t>>>1|0;c=H[u+N(e,36)>>2];vb:{if(c>>>0>i>>>0){f=e-1|0;break vb}if(c>>>0>=i>>>0){break ub}t=e+1|0}if((f|0)>=(t|0)){continue}break tb}break}n=H[(u+N(e,36)|0)+8>>2]}i=H[H[b+20>>2]+40>>2];h=(i|0)!=H[b+28>>2];wb:{xb:{f=H[a>>2];c=H[f+140>>2];yb:{if(c){break yb}while(1){c=H[f+48>>2];if(!c){c=163632;break yb}c=Yr(c);if(!c){c=163632}e=H[f+140>>2];H[f+140>>2]=e?e:c;if(!e){break yb}if(!(!c|(c|0)==163632)){e=H[c>>2];H[197455]=0;ia(579,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break xb}Kb(c)}c=H[f+140>>2];if(!c){continue}break}}c=H[c>>2];c=c?c:163632;c=K[c+16>>2]<12?163632:H[c+12>>2];e=(I[c+4|0]|I[c+5|0]<<8)!=0;break wb}ha(0)|0;_()|0;Zb();X()}c=J[b+152>>1];if(!e){c=c|64;G[d>>1]=c}t=1;G[d>>1]=c&57343|(F[a+148|0]&1)<<13;c=xb-48|0;xb=c;o=H[a>>2]+164|0;g=H[o>>2];zb:{if(g){break zb}f=o-116|0;while(1){g=H[f>>2];if(!g){g=163632;break zb}H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;e=kd(g);F[c+40|0]=1;H[c+36>>2]=e;g=Ht(c,dd(g,1801810552));if(!g){g=163632}e=H[o>>2];H[o>>2]=e?e:g;if(!e){break zb}if(!(!g|(g|0)==163632)){Wb(g)}g=H[o>>2];if(!g){continue}break}}xb=c+48|0;e=0;c=K[g+16>>2]<8?163632:H[g+12>>2];g=(I[c|0]|I[c+1|0]<<8)!=0;o=!g;if(!(F[a+148|0]&1)){t=!HF(H[a>>2])}if(!(h&(i|0)!=0)){e=H[a>>2];f=H[e+148>>2];Ab:{if(f){break Ab}while(1){c=H[e+48>>2];if(!c){f=163632;break Ab}f=oc(1,12);Bb:{if(!f){f=163632;break Bb}hl(f,c)}c=H[e+148>>2];H[e+148>>2]=c?c:f;if(!c){break Ab}af(f);f=H[e+148>>2];if(!f){continue}break}}c=H[f>>2];c=c?c:163632;c=K[c+16>>2]<10?163632:H[c+12>>2];e=(I[c|0]|I[c+1|0]<<8|(I[c+2|0]|I[c+3|0]<<8))!=0}Cb:{Db:{if(!(o|(t|e^1)!=1)){c=J[d>>1]|4096;break Db}c=J[d>>1];if(!e){break Cb}c=c|512}G[d>>1]=c}Eb:{if(c&4096|(c&512?(n|0)!=65535:0)){break Eb}if(g){c=c|4096}else{c=Zr(H[a>>2]+136|0);e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=J[d>>1];if(!(e<<8&16711680|e<<24|(e>>>8&65280|e>>>24))){break Eb}c=c|1024}G[d>>1]=c}n=c&-2049|(c&4608?0:(c<<1^-1)&2048);G[d>>1]=n;f=0;Fb:{if(!(I[a+148|0]&2)|c&4096){break Fb}f=32;if(!(c&1024)){break Fb}c=0;Gb:{Hb:{Ib:{i=Zr(H[a>>2]+136|0);e=I[i|0]|I[i+1|0]<<8;switch((e<<8|e>>>8)&65535){case 1:break Hb;case 0:break Ib;default:break Gb}}e=I[i+2|0]|I[i+3|0]<<8;if(!e){break Gb}c=1;if(I[i+8|0]==1){break Gb}h=(e<<8|e>>>8)&65535;f=h>>>0>1?h:1;e=i+4|0;c=0;while(1){c=c+1|0;if((f|0)!=(c|0)){g=e;e=I[e+2|0]|I[e+3|0]<<8;e=g+((e<<8|e>>>8)&65535)|0;if(I[e+4|0]!=1){continue}}break}c=c>>>0>>0;break Gb}e=I[i+4|0]|I[i+5|0]<<8|(I[i+6|0]<<16|I[i+7|0]<<24);f=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(!f){break Gb}c=1;if(I[i+13|0]==1){break Gb}c=i+8|0;e=0;while(1){e=e+1|0;if((f|0)!=(e|0)){h=c;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=h+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;if(I[c+5|0]!=1){continue}}break}c=e>>>0>>0}n=J[d>>1];f=c?0:32}f=f|n&-33;G[b+152>>1]=f;c=H[b+56>>2];Jb:{Kb:{if((c|0)<=0){break Kb}h=H[b+60>>2];c=c-1|0;e=0;while(1){Lb:{i=c+e>>>1|0;b=H[h+N(i,36)>>2];Mb:{if(b>>>0>=1835102828){c=i-1|0;break Mb}if((b|0)==1835102827){break Lb}e=i+1|0}if((c|0)>=(e|0)){continue}break Kb}break}b=16;if(H[(h+N(i,36)|0)+28>>2]){break Jb}}b=0}c=b|f&-17;G[d>>1]=c;f=0;e=0;Nb:{if(n&4608){break Nb}e=256;if(!(n&1024)){break Nb}b=0;Ob:{Pb:{Qb:{i=Zr(H[a>>2]+136|0);c=I[i|0]|I[i+1|0]<<8;switch((c<<8|c>>>8)&65535){case 1:break Pb;case 0:break Qb;default:break Ob}}c=I[i+2|0]|I[i+3|0]<<8;if(!c){break Ob}b=1;if(I[i+9|0]&4){break Ob}h=(c<<8|c>>>8)&65535;e=h>>>0>1?h:1;c=i+4|0;b=0;while(1){b=b+1|0;if((e|0)!=(b|0)){g=c;c=I[c+2|0]|I[c+3|0]<<8;c=g+((c<<8|c>>>8)&65535)|0;if(!(I[c+5|0]&4)){continue}}break}b=b>>>0>>0;break Ob}c=I[i+4|0]|I[i+5|0]<<8|(I[i+6|0]<<16|I[i+7|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(!e){break Ob}b=1;if(I[i+12|0]&64){break Ob}b=i+8|0;c=0;while(1){c=c+1|0;if((e|0)!=(c|0)){h=b;b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=h+(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))|0;if(!(I[b+4|0]&64)){continue}}break}b=c>>>0>>0}c=J[d>>1];e=b?0:256}b=e|c&-257;G[d>>1]=b;b=b&-129|(e?I[a+148|0]<<5&128:0);c=c&8192?b&-257:b;G[d>>1]=c;if(c&2){a=Gt(H[a>>2]+172|0);f=((I[a|0]|I[a+1|0]<<8|(I[a+2|0]|I[a+3|0]<<8))!=0)<<14;c=J[d>>1]}G[d>>1]=c&49151|f}function Vh(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=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;s=xb-16|0;xb=s;y=-2;a:{if(!H[a+36>>2]|(!a|!H[a+32>>2])){break a}f=H[a+28>>2];if(!f|H[f>>2]!=(a|0)){break a}e=H[f+4>>2];if(e-16180>>>0>31){break a}p=H[a+12>>2];if(!p){break a}d=H[a>>2];if(!(H[a+4>>2]?d:1)){break a}if((e|0)==16191){H[f+4>>2]=16192;e=16192}S=b-5|0;T=f+92|0;A=f+756|0;D=f+116|0;E=f+88|0;B=f+112|0;z=f+1332|0;g=H[f+64>>2];C=H[a+4>>2];i=C;h=H[f+60>>2];n=H[a+16>>2];v=n;b:{c:{d:while(1){e:{c=-3;k=1;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{switch(e-16180|0){case 23:l=H[f+76>>2];c=d;e=i;break B;case 21:k=H[f+76>>2];break D;case 18:e=H[f+108>>2];break M;case 27:e=H[f+12>>2];break f;case 16:if(g>>>0>=14){break V}if(!i){break e}e=g+8|0;c=d+1|0;k=i-1|0;h=(I[d|0]<>>0<=5){break W}d=c;i=k;g=e;break V;case 9:if(g>>>0>=32){break ba}if(!i){break e}c=d+1|0;e=i-1|0;h=(I[d|0]<>>0<=23){break ca}d=c;i=e;break ba;case 1:if(g>>>0>=16){break ma}if(!i){break e}e=g+8|0;c=d+1|0;k=i-1|0;h=(I[d|0]<>>0<=7){break na}d=c;i=k;g=e;break ma;case 28:break h;case 8:break k;case 7:break l;case 6:break m;case 5:break n;case 24:break A;case 22:break C;case 20:break K;case 30:break b;case 19:break L;case 26:break R;case 25:break S;case 17:break U;case 29:break c;case 15:break X;case 14:break Y;case 13:break Z;case 12:break _;case 11:break $;case 10:break aa;case 4:break fa;case 3:break ia;case 2:break la;case 0:break oa;default:break a}}l=H[f+12>>2];if(!l){break Q}pa:{if(g>>>0>=16){e=h;break pa}if(!i){break e}k=g+8|0;c=d+1|0;j=i-1|0;e=(I[d|0]<>>0>7){d=c;i=j;g=k;break pa}if(!j){d=c;i=0;h=e;g=k;c=o;break c}g=g+16|0;i=i-2|0;e=(I[d+1|0]<>2]){H[f+40>>2]=15}h=0;c=yd(0,0,0);H[f+28>>2]=c;F[s+12|0]=e;F[s+13|0]=e>>>8;Y=f,Z=yd(c,s+12|0,2),H[Y+28>>2]=Z;H[f+4>>2]=16181;g=0;e=H[f+4>>2];continue}if(!k){d=c;i=0;g=e;c=o;break c}g=g+16|0;i=i-2|0;h=(I[d+1|0]<>2]=h;if((h&255)!=8){H[a+24>>2]=239251;H[f+4>>2]=16209;e=H[f+4>>2];continue}if(h&57344){H[a+24>>2]=238304;H[f+4>>2]=16209;e=H[f+4>>2];continue}c=H[f+36>>2];if(c){H[c>>2]=h>>>8&1}if(!(!(h&512)|!(I[f+12|0]&4))){F[s+12|0]=h;F[s+13|0]=h>>>8;Y=f,Z=yd(H[f+28>>2],s+12|0,2),H[Y+28>>2]=Z}H[f+4>>2]=16182;g=0;h=0;break ka}if(g>>>0>31){break ja}}if(!i){break e}c=d+1|0;e=i-1|0;h=(I[d|0]<>>0>23){d=c;i=e;break ja}k=g+8|0;if(!e){d=c;i=0;g=k;c=o;break c}c=d+2|0;e=i-2|0;h=(I[d+1|0]<>>0>15){d=c;i=e;break ja}k=g+16|0;if(!e){d=c;i=0;g=k;c=o;break c}c=d+3|0;e=i-3|0;h=(I[d+2|0]<>>0>7){d=c;i=e;break ja}g=g+24|0;if(!e){d=c;i=0;c=o;break c}i=i-4|0;h=(I[d+3|0]<>2];if(c){H[c+4>>2]=h}if(!(!(I[f+21|0]&2)|!(I[f+12|0]&4))){F[s+12|0]=h;F[s+13|0]=h>>>8;F[s+14|0]=h>>>16;F[s+15|0]=h>>>24;Y=f,Z=yd(H[f+28>>2],s+12|0,4),H[Y+28>>2]=Z}H[f+4>>2]=16183;g=0;h=0;break ha}if(g>>>0>15){break ga}}if(!i){break e}c=d+1|0;e=i-1|0;h=(I[d|0]<>>0>7){d=c;i=e;break ga}g=g+8|0;if(!e){d=c;i=0;c=o;break c}i=i-2|0;h=(I[d+1|0]<>2];if(c){H[c+12>>2]=h>>>8;H[c+8>>2]=h&255}if(!(!(I[f+21|0]&2)|!(I[f+12|0]&4))){F[s+12|0]=h;F[s+13|0]=h>>>8;Y=f,Z=yd(H[f+28>>2],s+12|0,2),H[Y+28>>2]=Z}H[f+4>>2]=16184;e=0;g=0;h=0;c=H[f+20>>2];if(c&1024){break ea}break p}c=H[f+20>>2];if(!(c&1024)){e=g;break p}e=h;if(g>>>0>15){break da}}if(!i){i=0;h=e;c=o;break c}k=d+1|0;j=i-1|0;h=(I[d|0]<>>0>7){d=k;i=j;break da}g=g+8|0;if(!j){d=k;i=0;c=o;break c}i=i-2|0;h=(I[d+1|0]<>2]=h;g=H[f+36>>2];if(g){H[g+20>>2]=h}g=0;if(!(!(c&512)|!(I[f+12|0]&4))){F[s+12|0]=h;F[s+13|0]=h>>>8;Y=f,Z=yd(H[f+28>>2],s+12|0,2),H[Y+28>>2]=Z}h=0;break o}k=g+8|0;if(!e){d=c;i=0;g=k;c=o;break c}c=d+2|0;e=i-2|0;h=(I[d+1|0]<>>0>15){d=c;i=e;break ba}k=g+16|0;if(!e){d=c;i=0;g=k;c=o;break c}c=d+3|0;e=i-3|0;h=(I[d+2|0]<>>0>7){d=c;i=e;break ba}g=g+24|0;if(!e){d=c;i=0;c=o;break c}i=i-4|0;h=(I[d+3|0]<>>8&65280|h>>>24);H[f+28>>2]=c;H[a+48>>2]=c;H[f+4>>2]=16190;h=0;g=0}if(!H[f+16>>2]){H[a+16>>2]=n;H[a+12>>2]=p;H[a+4>>2]=i;H[a>>2]=d;H[f+64>>2]=g;H[f+60>>2]=h;y=2;break a}c=Yg(0,0,0);H[f+28>>2]=c;H[a+48>>2]=c;H[f+4>>2]=16191}if(S>>>0<2){break i}}ra:{sa:{if(!H[f+8>>2]){if(g>>>0<3){break sa}break ra}H[f+4>>2]=16206;h=h>>>(g&7)|0;g=g&-8;e=H[f+4>>2];continue}if(!i){break e}i=i-1|0;h=(I[d|0]<>2]=h&1;e=16193;ta:{ua:{va:{switch((h>>>1&3)-1|0){case 0:H[f+80>>2]=239952;H[f+88>>2]=9;H[f+92>>2]=5;H[f+84>>2]=242e3;H[f+4>>2]=16199;if((b|0)!=6){break ta}g=g-3|0;h=h>>>3|0;c=o;break c;case 1:e=16196;break ua;case 2:break va;default:break ua}}H[a+24>>2]=239177;e=16209}H[f+4>>2]=e}g=g-3|0;h=h>>>3|0;e=H[f+4>>2];continue}h=h>>>(g&7)|0;g=g&-8;wa:{if(g>>>0>31){break wa}if(!i){break e}e=g+8|0;c=d+1|0;k=i-1|0;h=(I[d|0]<>>0>23){d=c;i=k;g=e;break wa}if(!k){d=c;i=0;g=e;c=o;break c}k=g+16|0;c=d+2|0;j=i-2|0;h=(I[d+1|0]<>>0>15){d=c;i=j;g=k;break wa}if(!j){d=c;i=0;g=k;c=o;break c}e=g+24|0;c=d+3|0;j=i-3|0;h=(I[d+2|0]<>>16|0)){H[a+24>>2]=238421;H[f+4>>2]=16209;e=H[f+4>>2];continue}H[f+4>>2]=16194;H[f+68>>2]=c;h=0;g=0;if((b|0)!=6){break Y}break i}H[f+4>>2]=16195}c=H[f+68>>2];if(c){c=c>>>0>>0?c:i;e=c>>>0>>0?c:n;if(!e){break i}c=Ob(p,d,e);H[f+68>>2]=H[f+68>>2]-e;p=c+e|0;n=n-e|0;d=d+e|0;i=i-e|0;e=H[f+4>>2];continue}H[f+4>>2]=16191;e=H[f+4>>2];continue}if(!k){d=c;i=0;g=e;c=o;break c}g=g+16|0;i=i-2|0;h=(I[d+1|0]<>2]=e+257;c=h>>>5&31;H[f+104>>2]=c+1;j=(h>>>10&15)+4|0;H[f+96>>2]=j;g=g-14|0;h=h>>>14|0;if(!(c>>>0<30&e>>>0<=29)){H[a+24>>2]=238385;H[f+4>>2]=16209;e=H[f+4>>2];continue}H[f+4>>2]=16197;e=0;H[f+108>>2]=0;break T}e=H[f+108>>2];j=H[f+96>>2];if(e>>>0>=j>>>0){break N}}c=e;while(1){if(g>>>0<=2){if(!i){break e}i=i-1|0;h=(I[d|0]<>2]=e;G[((J[(c<<1)+239904>>1]<<1)+f|0)+116>>1]=h&7;g=g-3|0;h=h>>>3|0;c=e;if(j>>>0>c>>>0){continue}break}break N}if(!n){break z}F[p|0]=H[f+68>>2];H[f+4>>2]=16200;n=n-1|0;p=p+1|0;e=H[f+4>>2];continue}e=H[f+12>>2];if(!e){e=0;break O}xa:{if(g>>>0>31){k=d;break xa}if(!i){break e}c=g+8|0;k=d+1|0;j=i-1|0;h=(I[d|0]<>>0>23){i=j;g=c;break xa}if(!j){d=k;i=0;g=c;c=o;break c}j=g+16|0;k=d+2|0;l=i-2|0;h=(I[d+1|0]<>>0>15){i=l;g=j;break xa}if(!l){d=k;i=0;g=j;c=o;break c}c=g+24|0;k=d+3|0;l=i-3|0;h=(I[d+2|0]<>>0>7){i=l;g=c;break xa}if(!l){d=k;i=0;g=c;c=o;break c}g=g+32|0;k=d+4|0;i=i-4|0;h=(I[d+3|0]<>2]=j+H[a+20>>2];H[f+32>>2]=j+H[f+32>>2];c=e&4;if(!(!c|(n|0)==(v|0))){c=p-j|0;d=H[f+28>>2];ya:{if(H[f+20>>2]){d=yd(d,c,j);break ya}d=Yg(d,c,j)}H[f+28>>2]=d;H[a+48>>2]=d;e=H[f+12>>2];c=e&4}if(!c|H[f+28>>2]==((H[f+20>>2]?h:h<<8&16711680|h<<24|(h>>>8&65280|h>>>24))|0)){break P}H[a+24>>2]=238949;H[f+4>>2]=16209;d=k;v=n;e=H[f+4>>2];continue}H[f+4>>2]=16192;break r}d=k;h=0;g=0;v=n}H[f+4>>2]=16207;break f}if(e>>>0<=18){k=0;c=e;o=3-c&3;if(o){while(1){G[((J[(c<<1)+239904>>1]<<1)+f|0)+116>>1]=0;c=c+1|0;k=k+1|0;if((o|0)!=(k|0)){continue}break}}if(e-16>>>0>=3){while(1){e=f+116|0;o=c<<1;G[e+(J[o+239904>>1]<<1)>>1]=0;G[e+(J[o+239906>>1]<<1)>>1]=0;G[e+(J[o+239908>>1]<<1)>>1]=0;G[e+(J[o+239910>>1]<<1)>>1]=0;c=c+4|0;if((c|0)!=19){continue}break}}H[f+108>>2]=19}H[f+88>>2]=7;H[f+80>>2]=z;H[f+112>>2]=z;e=0;o=Ir(0,D,19,B,E,A);if(o){H[a+24>>2]=238279;H[f+4>>2]=16209;e=H[f+4>>2];continue}H[f+4>>2]=16198;H[f+108>>2]=0;o=0}r=H[f+100>>2];t=r+H[f+104>>2]|0;if(t>>>0>e>>>0){q=-1<>2]^-1;w=H[f+80>>2];while(1){l=g;k=i;j=d;u=h&q;m=I[(w+(u<<2)|0)+1|0];za:{if(m>>>0<=g>>>0){c=g;break za}while(1){if(!k){break J}m=I[j|0]<>>0>c>>>0){continue}break}d=j;i=k}g=J[(w+(u<<2)|0)+2>>1];Aa:{if(g>>>0<=15){k=e+1|0;H[f+108>>2]=k;G[((e<<1)+f|0)+116>>1]=g;g=c-m|0;h=h>>>m|0;e=k;break Aa}Ba:{Ca:{Da:{switch(g-16|0){case 0:g=m+2|0;if(g>>>0>c>>>0){while(1){if(!i){break q}i=i-1|0;h=(I[d|0]<>>0>c>>>0){continue}break}}g=c-m|0;c=h>>>m|0;if(!e){H[a+24>>2]=238355;H[f+4>>2]=16209;h=c;e=H[f+4>>2];continue d}g=g-2|0;h=c>>>2|0;k=(c&3)+3|0;c=J[((e<<1)+f|0)+114>>1];break Ba;case 1:g=m+3|0;if(g>>>0>c>>>0){while(1){if(!i){break q}i=i-1|0;h=(I[d|0]<>>0>c>>>0){continue}break}}g=(c-m|0)-3|0;c=h>>>m|0;h=c>>>3|0;k=(c&7)+3|0;break Ca;default:break Da}}g=m+7|0;if(g>>>0>c>>>0){while(1){if(!i){break q}i=i-1|0;h=(I[d|0]<>>0>c>>>0){continue}break}}g=(c-m|0)-7|0;c=h>>>m|0;h=c>>>7|0;k=(c&127)+11|0}c=0}if(t>>>0>>0){break G}m=k-1|0;j=0;l=k&3;if(l){while(1){G[((e<<1)+f|0)+116>>1]=c;e=e+1|0;k=k-1|0;j=j+1|0;if((l|0)!=(j|0)){continue}break}}if(m>>>0>=3){while(1){j=(e<<1)+f|0;G[j+118>>1]=c;G[j+116>>1]=c;G[j+120>>1]=c;G[j+122>>1]=c;e=e+4|0;k=k-4|0;if(k){continue}break}}H[f+108>>2]=e}if(e>>>0>>0){continue}break}}if(!J[f+628>>1]){H[a+24>>2]=238866;H[f+4>>2]=16209;e=H[f+4>>2];continue}H[f+88>>2]=9;H[f+80>>2]=z;H[f+112>>2]=z;o=Ir(1,D,r,B,E,A);if(o){H[a+24>>2]=238251;H[f+4>>2]=16209;e=H[f+4>>2];continue}H[f+92>>2]=6;H[f+84>>2]=H[f+112>>2];o=Ir(2,((H[f+100>>2]<<1)+f|0)+116|0,H[f+104>>2],B,T,A);if(o){H[a+24>>2]=238329;H[f+4>>2]=16209;e=H[f+4>>2];continue}H[f+4>>2]=16199;o=0;if((b|0)!=6){break L}c=0;break c}H[f+4>>2]=16200}if(!(i>>>0<6|n>>>0<258)){H[a+16>>2]=n;H[a+12>>2]=p;H[a+4>>2]=i;H[a>>2]=d;H[f+64>>2]=g;H[f+60>>2]=h;j=H[a+12>>2];d=H[a+16>>2];c=j+d|0;L=c+(v^-1)|0;l=H[a+28>>2];r=H[l+52>>2];U=(c+(r^-1)|0)-v|0;M=r&7;N=H[l+44>>2];V=r+N|0;O=c-257|0;W=(d-v|0)+j|0;i=H[a>>2];P=(i+H[a+4>>2]|0)-5|0;X=-1<>2]^-1;p=-1<>2]^-1;Q=H[l+84>>2];R=H[l+80>>2];e=H[l+64>>2];m=H[l+60>>2];k=H[l+56>>2];u=H[l+48>>2];w=r-1>>>0<7;while(1){if(e>>>0<=14){m=((I[i|0]<>>d|0;d=J[c+2>>1];Ea:{Fa:{Ga:{c=I[c|0];if(!c){break Ga}Ha:{Ia:{Ja:{while(1){if(c&16){n=d&65535;d=c&15;Ka:{if(!d){g=i;c=m;break Ka}La:{if(d>>>0<=e>>>0){g=i;break La}m=(I[i|0]<>>d|0}if(e>>>0<=14){c=((I[g|0]<>>d|0;d=J[i+2>>1];c=I[i|0];if(c&16){break Ja}while(1){if(!(c&64)){c=(((-1<>>d|0;d=J[c+2>>1];c=I[c|0];if(!(c&16)){continue}break Ja}break}n=239229;i=g;break Ia}g=c&255;if(!(g&64)){c=(((-1<>>d|0;d=J[c+2>>1];c=I[c|0];if(!c){break Ga}continue}break}n=239201;d=16191;if(c&32){break Ha}break Ia}q=d&65535;c=c&15;Ma:{if(c>>>0<=e>>>0){d=e;i=g;break Ma}m=(I[g|0]<>>0<=d>>>0){break Ma}m=(I[g+1|0]<>>c|0;Na:{x=g+q|0;d=j-W|0;if(x>>>0>d>>>0){h=x-d|0;if(!(!H[l+7108>>2]|h>>>0<=u>>>0)){n=238970;break Ia}Oa:{Pa:{if(!r){c=k+(N-h|0)|0;if(h>>>0>=n>>>0){break Oa}t=(q+(g+L|0)|0)-j|0;g=0;d=h;q=d&7;if(q){while(1){F[j|0]=I[c|0];d=d-1|0;j=j+1|0;c=c+1|0;g=g+1|0;if((q|0)!=(g|0)){continue}break}}if(t>>>0<7){break Pa}while(1){F[j|0]=I[c|0];F[j+1|0]=I[c+1|0];F[j+2|0]=I[c+2|0];F[j+3|0]=I[c+3|0];F[j+4|0]=I[c+4|0];F[j+5|0]=I[c+5|0];F[j+6|0]=I[c+6|0];F[j+7|0]=I[c+7|0];j=j+8|0;c=c+8|0;d=d-8|0;if(d){continue}break}break Pa}if(h>>>0>r>>>0){c=k+(V-h|0)|0;h=h-r|0;if(h>>>0>=n>>>0){break Oa}t=(q+(g+U|0)|0)-j|0;g=0;d=h;q=d&7;if(q){while(1){F[j|0]=I[c|0];d=d-1|0;j=j+1|0;c=c+1|0;g=g+1|0;if((q|0)!=(g|0)){continue}break}}if(t>>>0>=7){while(1){F[j|0]=I[c|0];F[j+1|0]=I[c+1|0];F[j+2|0]=I[c+2|0];F[j+3|0]=I[c+3|0];F[j+4|0]=I[c+4|0];F[j+5|0]=I[c+5|0];F[j+6|0]=I[c+6|0];F[j+7|0]=I[c+7|0];j=j+8|0;c=c+8|0;d=d-8|0;if(d){continue}break}}n=n-h|0;if(r>>>0>=n>>>0){c=k;break Oa}g=0;d=r;c=k;if(M){while(1){F[j|0]=I[c|0];d=d-1|0;j=j+1|0;c=c+1|0;g=g+1|0;if((M|0)!=(g|0)){continue}break}}if(!w){while(1){F[j|0]=I[c|0];F[j+1|0]=I[c+1|0];F[j+2|0]=I[c+2|0];F[j+3|0]=I[c+3|0];F[j+4|0]=I[c+4|0];F[j+5|0]=I[c+5|0];F[j+6|0]=I[c+6|0];F[j+7|0]=I[c+7|0];j=j+8|0;c=c+8|0;d=d-8|0;if(d){continue}break}}c=j-x|0;n=n-r|0;break Oa}c=k+(r-h|0)|0;if(h>>>0>=n>>>0){break Oa}t=(q+(g+L|0)|0)-j|0;g=0;d=h;q=d&7;if(q){while(1){F[j|0]=I[c|0];d=d-1|0;j=j+1|0;c=c+1|0;g=g+1|0;if((q|0)!=(g|0)){continue}break}}if(t>>>0<7){break Pa}while(1){F[j|0]=I[c|0];F[j+1|0]=I[c+1|0];F[j+2|0]=I[c+2|0];F[j+3|0]=I[c+3|0];F[j+4|0]=I[c+4|0];F[j+5|0]=I[c+5|0];F[j+6|0]=I[c+6|0];F[j+7|0]=I[c+7|0];j=j+8|0;c=c+8|0;d=d-8|0;if(d){continue}break}}c=j-x|0;n=n-h|0}Qa:{if(n>>>0<3){break Qa}d=0;h=n-3|0;g=((h>>>0)/3|0)+1&3;if(g){while(1){F[j|0]=I[c|0];F[j+1|0]=I[c+1|0];F[j+2|0]=I[c+2|0];n=n-3|0;j=j+3|0;c=c+3|0;d=d+1|0;if((g|0)!=(d|0)){continue}break}}if(h>>>0<9){break Qa}while(1){F[j|0]=I[c|0];F[j+1|0]=I[c+1|0];F[j+2|0]=I[c+2|0];F[j+3|0]=I[c+3|0];F[j+4|0]=I[c+4|0];F[j+5|0]=I[c+5|0];F[j+6|0]=I[c+6|0];F[j+7|0]=I[c+7|0];F[j+8|0]=I[c+8|0];F[j+9|0]=I[c+9|0];F[j+10|0]=I[c+10|0];F[j+11|0]=I[c+11|0];j=j+12|0;c=c+12|0;n=n-12|0;if(n>>>0>2){continue}break}}if(!n){break Fa}F[j|0]=I[c|0];if((n|0)!=1){break Na}j=j+1|0;break Fa}g=j-x|0;while(1){c=j;d=g;F[c|0]=I[d|0];F[c+1|0]=I[d+1|0];F[c+2|0]=I[d+2|0];j=c+3|0;g=d+3|0;n=n-3|0;if(n>>>0>2){continue}break}if(!n){break Fa}F[c+3|0]=I[g|0];if((n|0)==1){j=c+4|0;break Fa}F[c+4|0]=I[d+4|0];j=c+5|0;break Fa}F[j+1|0]=I[c+1|0];j=j+2|0;break Fa}H[a+24>>2]=n;d=16209}H[l+4>>2]=d;break Ea}F[j|0]=d;j=j+1|0}if(i>>>0>=P>>>0){break Ea}if(j>>>0>>0){continue}}break}H[a+12>>2]=j;d=i-(e>>>3|0)|0;H[a>>2]=d;H[a+16>>2]=(O-j|0)+257;H[a+4>>2]=(P-d|0)+5;d=e&7;H[l+64>>2]=d;H[l+60>>2]=(-1<>2];h=H[f+60>>2];i=H[a+4>>2];d=H[a>>2];n=H[a+16>>2];p=H[a+12>>2];if(H[f+4>>2]!=16191){break r}H[f+7112>>2]=-1;e=H[f+4>>2];continue}H[f+7112>>2]=0;k=g;e=i;c=d;q=H[f+80>>2];r=-1<>2]^-1;m=r&h;l=I[(q+(m<<2)|0)+1|0];Ra:{if(l>>>0<=g>>>0){j=g;break Ra}while(1){if(!e){break H}l=I[c|0]<>>0>j>>>0){continue}break}}d=q+(m<<2)|0;u=J[d+2>>1];k=I[d|0];if(!k|k&240){break F}i=e;d=c;g=j;r=-1<>>l|0)+u|0;m=I[(q+(t<<2)|0)+1|0];Sa:{if(g>>>0>=m+l>>>0){k=j;break Sa}while(1){if(!i){break I}m=I[d|0]<>>l|0)+u|0;m=I[(q+(t<<2)|0)+1|0];if(g>>>0>>0){continue}break}}j=k-l|0;h=h>>>l|0;c=q+(t<<2)|0;k=I[c|0];u=J[c+2>>1];break E}d=d+i|0;g=(i<<3)+g|0;break e}d=c+e|0;g=(e<<3)+j|0;break e}d=d+i|0;g=(i<<3)+g|0;break e}H[a+24>>2]=238355;H[f+4>>2]=16209;e=H[f+4>>2];continue}m=l;l=0;d=c;i=e}H[f+68>>2]=u&65535;H[f+7112>>2]=l+m;g=j-m|0;h=h>>>m|0;if(!k){H[f+4>>2]=16205;e=H[f+4>>2];continue}if(k&32){H[f+4>>2]=16191;H[f+7112>>2]=-1;e=H[f+4>>2];continue}if(k&64){H[a+24>>2]=239201;H[f+4>>2]=16209;e=H[f+4>>2];continue}H[f+4>>2]=16201;k=k&15;H[f+76>>2]=k}j=d;l=i;Ta:{if(!k){c=H[f+68>>2];break Ta}c=d;e=g;if(k>>>0>e>>>0){while(1){if(!i){break u}i=i-1|0;h=(I[c|0]<>>0>e>>>0){continue}break}}H[f+7112>>2]=H[f+7112>>2]+k;c=H[f+68>>2]+((-1<>2]=c;g=e-k|0;h=h>>>k|0}H[f+4>>2]=16202;H[f+7116>>2]=c}k=g;e=i;c=d;q=H[f+84>>2];r=-1<>2]^-1;m=r&h;l=I[(q+(m<<2)|0)+1|0];Ua:{if(l>>>0<=g>>>0){j=g;break Ua}while(1){if(!e){break v}l=I[c|0]<>>0>j>>>0){continue}break}}d=q+(m<<2)|0;u=J[d+2>>1];m=I[d|0];Va:{if(m&240){k=l;d=H[f+7112>>2];break Va}i=e;d=c;g=j;r=-1<>>l|0)+u|0;k=I[(q+(t<<2)|0)+1|0];Wa:{if(g>>>0>=l+k>>>0){m=j;break Wa}while(1){if(!i){break w}k=I[d|0]<>>l|0)+u|0;k=I[(q+(t<<2)|0)+1|0];if(g>>>0>>0){continue}break}c=d;e=i}j=m-l|0;h=h>>>l|0;d=q+(t<<2)|0;m=I[d|0];u=J[d+2>>1];d=H[f+7112>>2]+l|0}H[f+7112>>2]=d+k;g=j-k|0;h=h>>>k|0;if(m&64){H[a+24>>2]=239229;H[f+4>>2]=16209;d=c;i=e;e=H[f+4>>2];continue}H[f+4>>2]=16203;l=m&15;H[f+76>>2]=l;H[f+72>>2]=u&65535}Xa:{if(!l){d=c;i=e;break Xa}k=g;i=e;j=c;Ya:{if(g>>>0>=l>>>0){d=c;break Ya}while(1){if(!i){break x}i=i-1|0;h=(I[j|0]<>>0>k>>>0){continue}break}}H[f+7112>>2]=H[f+7112>>2]+l;H[f+72>>2]=H[f+72>>2]+((-1<>>l|0}H[f+4>>2]=16204}if(n){break y}}n=0;break i}e=H[f+72>>2];c=v-n|0;Za:{if(e>>>0>c>>>0){c=e-c|0;if(!(!H[f+7108>>2]|c>>>0<=K[f+48>>2])){H[a+24>>2]=238970;H[f+4>>2]=16209;e=H[f+4>>2];continue}e=H[f+52>>2];_a:{if(e>>>0>>0){c=c-e|0;e=H[f+56>>2]+(H[f+44>>2]-c|0)|0;break _a}e=H[f+56>>2]+(e-c|0)|0}k=H[f+68>>2];c=c>>>0>>0?c:k;break Za}e=p-e|0;k=H[f+68>>2];c=k}j=c>>>0>>0?c:n;H[f+68>>2]=k-j;m=j-1|0;k=0;l=j&7;if(!l){break t}c=j;while(1){F[p|0]=I[e|0];c=c-1|0;p=p+1|0;e=e+1|0;k=k+1|0;if((l|0)!=(k|0)){continue}break}break s}d=c+e|0;g=(e<<3)+g|0;break e}d=c+e|0;g=(e<<3)+j|0;break e}d=d+i|0;g=(i<<3)+g|0;break e}d=j+l|0;g=(l<<3)+g|0;break e}c=j}if(m>>>0>=7){while(1){F[p|0]=I[e|0];F[p+1|0]=I[e+1|0];F[p+2|0]=I[e+2|0];F[p+3|0]=I[e+3|0];F[p+4|0]=I[e+4|0];F[p+5|0]=I[e+5|0];F[p+6|0]=I[e+6|0];F[p+7|0]=I[e+7|0];p=p+8|0;e=e+8|0;c=c-8|0;if(c){continue}break}}n=n-j|0;if(H[f+68>>2]){break r}H[f+4>>2]=16200;e=H[f+4>>2];continue}e=H[f+4>>2];continue}i=0;g=c;c=o;break c}c=H[f+36>>2];if(c){H[c+16>>2]=0}g=e}H[f+4>>2]=16185}k=H[f+20>>2];if(k&1024){e=H[f+68>>2];l=e>>>0>>0?e:i;if(l){j=H[f+36>>2];$a:{if(!j){break $a}c=H[j+16>>2];if(!c){break $a}e=H[j+20>>2]-e|0;k=e+c|0;c=H[j+24>>2];Ob(k,d,c>>>0>>0?c-e|0:l);k=H[f+20>>2]}if(!(!(k&512)|!(I[f+12|0]&4))){Y=f,Z=yd(H[f+28>>2],d,l),H[Y+28>>2]=Z}e=H[f+68>>2]-l|0;H[f+68>>2]=e;i=i-l|0;d=d+l|0}if(e){break i}}H[f+4>>2]=16186;H[f+68>>2]=0}ab:{if(I[f+21|0]&8){e=0;if(!i){break j}while(1){j=I[d+e|0];k=H[f+36>>2];bb:{if(!k){break bb}c=H[k+28>>2];if(!c){break bb}l=H[k+32>>2];k=H[f+68>>2];if(l>>>0<=k>>>0){break bb}H[f+68>>2]=k+1;F[c+k|0]=j}e=e+1|0;if(i>>>0>e>>>0?j:0){continue}break}if(!(!(I[f+21|0]&2)|!(I[f+12|0]&4))){Y=f,Z=yd(H[f+28>>2],d,e),H[Y+28>>2]=Z}d=d+e|0;i=i-e|0;if(!j){break ab}break i}c=H[f+36>>2];if(!c){break ab}H[c+28>>2]=0}H[f+4>>2]=16187;H[f+68>>2]=0}cb:{if(I[f+21|0]&16){e=0;if(!i){break j}while(1){j=I[d+e|0];k=H[f+36>>2];db:{if(!k){break db}c=H[k+36>>2];if(!c){break db}l=H[k+40>>2];k=H[f+68>>2];if(l>>>0<=k>>>0){break db}H[f+68>>2]=k+1;F[c+k|0]=j}e=e+1|0;if(i>>>0>e>>>0?j:0){continue}break}if(!(!(I[f+21|0]&2)|!(I[f+12|0]&4))){Y=f,Z=yd(H[f+28>>2],d,e),H[Y+28>>2]=Z}d=d+e|0;i=i-e|0;if(!j){break cb}break i}c=H[f+36>>2];if(!c){break cb}H[c+36>>2]=0}H[f+4>>2]=16188}j=H[f+20>>2];if(j&512){eb:{if(g>>>0>15){e=d;break eb}if(!i){break e}c=g+8|0;e=d+1|0;k=i-1|0;h=(I[d|0]<>>0>7){i=k;g=c;break eb}if(!k){d=e;i=0;g=c;c=o;break c}g=g+16|0;e=d+2|0;i=i-2|0;h=(I[d+1|0]<>1]==(h|0))){H[a+24>>2]=239004;H[f+4>>2]=16209;d=e;e=H[f+4>>2];continue}h=0;g=0;d=e}c=H[f+36>>2];if(c){H[c+48>>2]=1;H[c+44>>2]=j>>>9&1}c=yd(0,0,0);H[f+28>>2]=c;H[a+48>>2]=c;H[f+4>>2]=16191;e=H[f+4>>2];continue}i=0}k=o}c=k;break c}H[f+20>>2]=0;c=H[f+36>>2];if(c){H[c+48>>2]=-1}if(!(((e<<8&65280)+(e>>>8|0)>>>0)%31|0?0:l&1)){H[a+24>>2]=238903;H[f+4>>2]=16209;h=e;e=H[f+4>>2];continue}if((e&15)!=8){H[a+24>>2]=239251;H[f+4>>2]=16209;h=e;e=H[f+4>>2];continue}h=e>>>4|0;l=h&15;k=l+8|0;j=l>>>0<=7;c=H[f+40>>2];if(!c){H[f+40>>2]=k;c=k}if(!(c>>>0>=k>>>0&j)){g=g-4|0;H[a+24>>2]=239065;H[f+4>>2]=16209;e=H[f+4>>2];continue}H[f+24>>2]=256<>2]=c;H[a+48>>2]=c;H[f+4>>2]=e&8192?16189:16191;g=0;e=H[f+4>>2];continue}fb:{if(!(!e|!H[f+20>>2])){gb:{if(g>>>0>31){e=d;break gb}if(!i){break e}c=g+8|0;e=d+1|0;k=i-1|0;h=(I[d|0]<>>0>23){i=k;g=c;break gb}if(!k){d=e;i=0;g=c;c=o;break c}k=g+16|0;e=d+2|0;j=i-2|0;h=(I[d+1|0]<>>0>15){i=j;g=k;break gb}if(!j){d=e;i=0;g=k;c=o;break c}c=g+24|0;e=d+3|0;j=i-3|0;h=(I[d+2|0]<>>0>7){i=j;g=c;break gb}if(!j){d=e;i=0;g=c;c=o;break c}g=g+32|0;e=d+4|0;i=i-4|0;h=(I[d+3|0]<>2]!=(h|0)){break fb}d=e;g=0;h=0}H[f+4>>2]=16208;c=1;break c}H[a+24>>2]=238926;H[f+4>>2]=16209;d=e;e=H[f+4>>2];continue}break}i=0;c=o}H[a+16>>2]=n;H[a+12>>2]=p;H[a+4>>2]=i;H[a>>2]=d;H[f+64>>2]=g;H[f+60>>2]=h;hb:{ib:{jb:{if(H[f+44>>2]){break jb}if((n|0)==(v|0)){break ib}d=H[f+4>>2];if(d>>>0>16208){break ib}if((b|0)!=4|d>>>0<=16205){break jb}break ib}k=v-n|0;h=H[a+28>>2];i=H[h+56>>2];kb:{if(!i){o=1;i=zb[H[a+32>>2]](H[a+40>>2],1<>2],1)|0;H[h+56>>2]=i;if(!i){break kb}}e=H[h+44>>2];if(!e){H[h+48>>2]=0;H[h+52>>2]=0;e=1<>2];H[h+44>>2]=e}lb:{if(e>>>0<=k>>>0){Ob(i,p-e|0,e);H[h+52>>2]=0;break lb}g=H[h+52>>2];d=e-g|0;e=d>>>0>>0;i=g+i|0;g=e?d:k;Ob(i,p-k|0,g);if(e){d=k-g|0;Ob(H[h+56>>2],p-d|0,d);H[h+52>>2]=d;break lb}o=0;d=g+H[h+52>>2]|0;e=d;d=H[h+44>>2];H[h+52>>2]=(e|0)==(d|0)?0:e;e=d;d=H[h+48>>2];if(e>>>0<=d>>>0){break kb}H[h+48>>2]=d+g;break kb}H[h+48>>2]=H[h+44>>2];o=0}if(o){break hb}n=H[a+16>>2];i=H[a+4>>2]}H[a+8>>2]=H[a+8>>2]+(C-i|0);e=v-n|0;H[a+20>>2]=e+H[a+20>>2];H[f+32>>2]=e+H[f+32>>2];if(!(!(I[f+12|0]&4)|(n|0)==(v|0))){g=H[a+12>>2]-e|0;d=H[f+28>>2];mb:{if(H[f+20>>2]){d=yd(d,g,e);break mb}d=Yg(d,g,e)}H[f+28>>2]=d;H[a+48>>2]=d}d=a;a=H[f+4>>2];H[d+44>>2]=((H[f+64>>2]+((H[f+8>>2]!=0)<<6)|0)+(((a|0)==16191)<<7)|0)+((a|0)==16199?256:((a|0)==16194)<<8);a=c?c:-5;y=(b|0)==4?a:(i|0)==(C|0)?(n|0)==(v|0)?a:c:c;break a}H[f+4>>2]=16210}y=-4}xb=s+16|0;return y}function kB(a){a=a|0;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;e=xb-784|0;xb=e;c=a;p=1;a:{if(!H[c+8>>2]){break a}b:{a=H[c+12>>2];if(!(a&4096)){break b}H[c+12>>2]=a&-4097;if(zb[H[c+536>>2]](c)|0){break b}Pb(H[c+628>>2],H[c>>2],273066,0);p=0;break a}zb[H[c+564>>2]](c);c:{if(!(I[c+12|0]&64)|H[c+608>>2]<=0){break c}if(Uc(c)){break c}Pb(H[c+628>>2],H[c>>2],273499,0);p=0;break a}a=H[c+12>>2];d:{if(!(a&512)){break d}p=H[c+596>>2];if(!p){break d}Kb(p);H[c+608>>2]=0;H[c+596>>2]=0;H[c+600>>2]=0;a=H[c+12>>2]}H[c+12>>2]=a&-81;a=0;while(1){b=a|1;p=H[((a>>>3&536870908)+c|0)+40>>2];d=(p>>>b&1?(b|0)!=65?a>>>0<4?2:1:0:0)+((0-(p>>>(a&30)&1)&(a>>>0<5?2:1))+d|0)|0;a=a+2|0;if((a|0)!=128){continue}break}r=H[c+236>>2]+d|0;s=N(r,12);p=Tb(s);if(!p){Pb(H[c+628>>2],H[c>>2],274173,0);p=0;break a}e:{a=H[c+16>>2];if(!a){a=(zb[H[c+640>>2]](H[c+628>>2],0,2)|0)+1&-2;H[c+16>>2]=a;H[e+624>>2]=a;a=H[c+12>>2];if(a&128){Hh(e+624|0);a=H[c+12>>2]}f:{g:{if(a&8192){zb[H[c+640>>2]](H[c+628>>2],H[c+496>>2],0)|0;if((zb[H[c+636>>2]](H[c+628>>2],e+624|0,4)|0)!=4){a=H[c+628>>2];H[e+576>>2]=H[c>>2];Pb(a,293040,275844,e+576|0);break e}a=J[c+492>>1]-1|0;G[c+492>>1]=a;if(!(a&65535)){break g}H[c+496>>2]=H[c+496>>2]+4;break f}a=H[c+460>>2];if(!a){H[c+460>>2]=H[c+16>>2];zb[H[c+640>>2]](H[c+628>>2],4,0)|0;if((zb[H[c+636>>2]](H[c+628>>2],e+624|0,4)|0)==4){break f}Pb(H[c+628>>2],H[c>>2],276361,0);break e}H[e+704>>2]=a;while(1){h:{if((zb[H[c+640>>2]](H[c+628>>2],a,0)|0)==H[e+704>>2]){if((zb[H[c+632>>2]](H[c+628>>2],e+592|0,2)|0)==2){break h}}Pb(H[c+628>>2],293040,271096,0);break e}if(I[c+12|0]&128){a=I[e+593|0];F[e+593|0]=I[e+592|0];F[e+592|0]=a}zb[H[c+640>>2]](H[c+628>>2],N(J[e+592>>1],12),1)|0;if((zb[H[c+632>>2]](H[c+628>>2],e+704|0,4)|0)!=4){Pb(H[c+628>>2],293040,271885,0);break e}if(I[c+12|0]&128){Hh(e+704|0)}a=H[e+704>>2];if(a){continue}break}a=zb[H[c+640>>2]](H[c+628>>2],0,1)|0;zb[H[c+640>>2]](H[c+628>>2],a-4|0,0)|0;if((zb[H[c+636>>2]](H[c+628>>2],e+624|0,4)|0)==4){break f}Pb(H[c+628>>2],293040,272474,0);break e}H[c+12>>2]=H[c+12>>2]&-8193}a=H[c+16>>2]}a=(s|2)+a|0;a=((a&1)+a|0)+4|0;H[c+488>>2]=a;zb[H[c+640>>2]](H[c+628>>2],a,0)|0;G[c+476>>1]=J[c+476>>1]+1;Kc(e+592|0,c+40|0,16);a=H[e+592>>2];if(!(J[c+168>>1]|(a|0)>=0)){H[e+592>>2]=a&2147483647;s=s-12|0;r=r-1|0}u=H[c+660>>2];if((u|0)>0){w=c+144|0;x=c+140|0;y=c+132|0;z=c+128|0;A=2-p|0;v=e+706|0;d=p;while(1){o=H[H[c+656>>2]+(t<<2)>>2];n=J[o+12>>1];i:{j:{if((n|0)==65){f=H[c+236>>2];if((f|0)<=0){break i}k=H[c+240>>2];l=0;i=0;a=0;if(f-1>>>0>=3){b=f&-4;q=0;while(1){i=H[k+N(a,12)>>2]==(o|0)|i|H[k+N(a|1,12)>>2]==(o|0)|H[k+N(a|2,12)>>2]==(o|0)|H[k+N(a|3,12)>>2]==(o|0);a=a+4|0;q=q+4|0;if((b|0)!=(q|0)){continue}break}}b=f&3;if(b){while(1){i=H[k+N(a,12)>>2]==(o|0)|i;a=a+1|0;l=l+1|0;if((b|0)!=(l|0)){continue}break}}if(i){break j}break i}if(!(H[(e+592|0)+(n>>>3&8188)>>2]>>>n&1)){break i}}k:{l:{m:{n:{o:{p:{q:{switch(n-1|0){case 24:a=I[c+13|0]&4?324:273;if((a|0)!=H[o>>2]){break i}G[d+2>>1]=4;G[d>>1]=a;a=H[c+180>>2];H[d+4>>2]=a;b=H[c+184>>2];if((a|0)!=1){break p}H[d+8>>2]=H[b>>2];break k;case 23:a=I[c+13|0]&4?325:279;if((a|0)!=H[o>>2]){break i}G[d+2>>1]=4;G[d>>1]=a;a=H[c+180>>2];H[d+4>>2]=a;b=H[c+188>>2];if((a|0)==1){H[d+8>>2]=H[b>>2];break k}if(od(c,d,b)){break k}break e;case 16:a=H[c+100>>2];H[d+4>>2]=1;G[d>>1]=278;if(a>>>0>=65536){G[d+2>>1]=4;H[d+8>>2]=a;break k}G[d+2>>1]=3;a=a&H[H[c+468>>2]+12>>2];if(J[c+456>>1]==19789){a=a<>2]+12>>2]}H[d+8>>2]=a;break k;case 25:H[d>>2]=196928;H[d+4>>2]=1<>1];a=H[c+488>>2];if(!od(c,d,H[c+152>>2])){break e}if(!od(c,d,H[c+156>>2])){break e}if(!od(c,d,H[c+160>>2])){break e}H[d+8>>2]=a;H[d+4>>2]=N(H[d+4>>2],3);break k;case 0:a=H[c+56>>2];H[d+4>>2]=1;G[d>>1]=256;r:{if(a>>>0>=65536){G[d+2>>1]=4;break r}G[d+2>>1]=3;a=H[H[c+468>>2]+12>>2]&a;if(J[c+456>>1]!=19789){break r}a=a<>2]+12>>2]}H[d+8>>2]=a;a=H[c+60>>2];H[d+16>>2]=1;G[d+12>>1]=257;s:{if(a>>>0>=65536){G[d+14>>1]=4;break s}G[d+14>>1]=3;a=H[H[c+468>>2]+12>>2]&a;if(J[c+456>>1]!=19789){break s}a=a<>2]+12>>2]}H[d+20>>2]=a;d=d+12|0;break k;case 1:a=H[c+68>>2];H[d+4>>2]=1;G[d>>1]=322;t:{if(a>>>0>=65536){G[d+2>>1]=4;break t}G[d+2>>1]=3;a=H[H[c+468>>2]+12>>2]&a;if(J[c+456>>1]!=19789){break t}a=a<>2]+12>>2]}H[d+8>>2]=a;a=H[c+72>>2];H[d+16>>2]=1;G[d+12>>1]=323;u:{if(a>>>0>=65536){G[d+14>>1]=4;break u}G[d+14>>1]=3;a=H[H[c+468>>2]+12>>2]&a;if(J[c+456>>1]!=19789){break u}a=a<>2]+12>>2]}H[d+20>>2]=a;d=d+12|0;break k;case 6:a=J[c+88>>1];H[d>>2]=196867;H[d+4>>2]=1;a=a&H[H[c+468>>2]+12>>2];if(J[c+456>>1]==19789){a=a<>2]+12>>2]}H[d+8>>2]=a;break k;case 7:a=J[c+90>>1];H[d>>2]=196870;H[d+4>>2]=1;a=a&H[H[c+468>>2]+12>>2];if(J[c+456>>1]==19789){a=a<>2]+12>>2]}H[d+8>>2]=a;break k;case 3:H[d>>2]=327966;H[d+4>>2]=1;if(!zi(c,d,x)){break e}H[d+12>>2]=327967;H[d+16>>2]=1;d=d+12|0;if(zi(c,d,w)){break k}break e;case 2:H[d>>2]=327962;H[d+4>>2]=1;if(!zi(c,d,z)){break e}H[d+12>>2]=327963;H[d+16>>2]=1;d=d+12|0;if(zi(c,d,y)){break k}break e;case 5:case 17:case 18:case 31:n=H[o>>2];k=J[c+98>>1];v:{if(k>>>0>=11){h=Tb(k<<1);if(h){H[e+496>>2]=e+624;Cc(c,n,e+496|0);break v}Pb(H[c+628>>2],H[c>>2],278591,0);break e}H[e+512>>2]=e+624;Cc(c,n,e+512|0);h=e+704|0;if(!k){break o}}l=0;a=0;if(k-1>>>0>=3){b=k&65532;q=0;while(1){f=a<<1;G[f+h>>1]=J[e+624>>1];G[(f|2)+h>>1]=J[e+624>>1];G[(f|4)+h>>1]=J[e+624>>1];G[(f|6)+h>>1]=J[e+624>>1];a=a+4|0;q=q+4|0;if((b|0)!=(q|0)){continue}break}}b=k&3;if(b){while(1){G[(a<<1)+h>>1]=J[e+624>>1];a=a+1|0;l=l+1|0;if((b|0)!=(l|0)){continue}break}}H[d+4>>2]=k;G[d+2>>1]=3;G[d>>1]=n;w:{if(k>>>0<=2){b=J[h>>1];if(J[c+456>>1]==19789){b=b<<16;H[d+8>>2]=b;a=1;if((k|0)!=2){break w}H[d+8>>2]=b|J[h+2>>1];break w}H[d+8>>2]=b;a=1;if((k|0)!=2){break w}H[d+8>>2]=b|J[h+2>>1]<<16;break w}a=od(c,d,h)}if((e+704|0)!=(h|0)){Kb(h)}if(a){break k}break e;case 32:case 33:a=7;b=J[c+84>>1];b=(b>>>3|0)+((b&7)!=0)|0;x:{y:{switch(J[c+86>>1]-1|0){case 2:a=(b|0)==4?11:12;break x;case 1:a=b>>>0<2?6:(b|0)==2?8:9;break x;case 0:break y;default:break x}}a=b>>>0>1?(b|0)==2?3:4:1}b=a;k=H[o>>2];j=J[c+98>>1];if(j>>>0>=11){a=Tb(j<<3);if(a){H[e+528>>2]=e+616;Cc(c,k,e+528|0);break m}Pb(H[c+628>>2],H[c>>2],278959,0);break e}H[e+544>>2]=e+616;Cc(c,k,e+544|0);a=e+624|0;if(j){break m}l=1;break l;case 22:case 36:case 38:a=H[o>>2];H[e+564>>2]=v;H[e+560>>2]=e+704;Cc(c,a,e+560|0);H[d+4>>2]=2;G[d+2>>1]=3;G[d>>1]=a;a=J[e+704>>1];if(J[c+456>>1]==19789){H[d+8>>2]=J[e+706>>1]|a<<16;break k}H[d+8>>2]=a|J[e+706>>1]<<16;break k;case 45:H[d>>2]=131405;b=H[c+228>>2];H[d+4>>2]=b;f=H[c+232>>2];if(b>>>0<=4){a=I[f|0]<<24;if(J[c+456>>1]==19789){H[d+8>>2]=a;if(b>>>0<2){break k}a=a|F[f+1|0]<<16;H[d+8>>2]=a;if((b|0)==2){break k}a=a|F[f+2|0]<<8;H[d+8>>2]=a;if((b|0)!=4){break k}H[d+8>>2]=a|F[f+3|0];break k}a=a>>24;H[d+8>>2]=a;if(b>>>0<2){break k}a=a|F[f+1|0]<<8;H[d+8>>2]=a;if((b|0)==2){break k}a=a|F[f+2|0]<<16;H[d+8>>2]=a;if((b|0)!=4){break k}H[d+8>>2]=a|I[f+3|0]<<24;break k}if(od(c,d,f)){break k}break e;case 43:a=2<>1];z:{A:{switch(J[c+98>>1]-J[c+168>>1]|0){default:b=3;if(gD(H[c+216>>2],H[c+224>>2],a)){break z}case 2:b=3;if(gD(H[c+216>>2],H[c+220>>2],a)){break z}break;case 0:case 1:break A}}b=1}H[d>>2]=196909;H[d+4>>2]=1<>1];f=H[c+488>>2];a=0;while(1){if(!od(c,d,H[((a<<2)+c|0)+216>>2])){break e}a=a+1|0;if((b|0)!=(a|0)){continue}break};H[d+8>>2]=f;H[d+4>>2]=N(b,H[d+4>>2]);break k;case 48:a=H[o>>2];G[d+2>>1]=4;G[d>>1]=a;b=J[c+196>>1];H[d+4>>2]=b;a=H[c+200>>2];if((b|0)==1){H[d+8>>2]=H[a>>2];G[c+492>>1]=b;H[c+12>>2]=H[c+12>>2]|8192;break n}if(!od(c,d,a)){break e}a=H[d+4>>2];if(!a){break k}G[c+492>>1]=a;H[c+12>>2]=H[c+12>>2]|8192;if((a|0)==1){break n}H[c+496>>2]=H[d+8>>2];break k;default:break q}}f=H[o>>2];if((f|0)==336){H[e+4>>2]=v;H[e>>2]=e+704;Cc(c,336,e);H[d>>2]=196944;H[d+4>>2]=2;a=J[e+704>>1];if(J[c+456>>1]==19789){H[d+8>>2]=J[e+706>>1]|a<<16;break k}H[d+8>>2]=a|J[e+706>>1]<<16;break k}b=J[o+6>>1];G[e+616>>1]=b;G[d>>1]=f;a=H[o+8>>2];H[d+4>>2]=b;G[d+2>>1]=a;B:{C:{switch(a-1|0){case 2:case 7:if(I[o+15|0]){D:{if((b|0)==65533){H[e+52>>2]=e+704;H[e+48>>2]=e+624;Cc(c,f,e+48|0);a=H[e+624>>2];break D}H[e+68>>2]=e+704;H[e+64>>2]=e+616;Cc(c,f,e- -64|0);a=J[e+616>>1]}H[d+4>>2]=a;f=H[e+704>>2];if(a>>>0>2){break B}b=J[f>>1];if(J[c+456>>1]==19789){b=b<<16;H[d+8>>2]=b;if((a|0)!=2){break k}H[d+8>>2]=b|J[f+2>>1];break k}H[d+8>>2]=b;if((a|0)!=2){break k}H[d+8>>2]=b|J[f+2>>1]<<16;break k}if((b|0)==1){H[e+16>>2]=e+704;Cc(c,f,e+16|0);b=J[d+2>>1]<<2;a=H[b+H[c+468>>2]>>2]&J[e+704>>1];if(J[c+456>>1]==19789){a=a<>2]>>2]}H[d+8>>2]=a;break k}H[e+32>>2]=e+704;Cc(c,f,e+32|0);f=H[e+704>>2];b=H[d+4>>2];if(b>>>0<=2){a=J[f>>1];if(J[c+456>>1]==19789){a=a<<16;H[d+8>>2]=a;if((b|0)!=2){break k}H[d+8>>2]=a|J[f+2>>1];break k}H[d+8>>2]=a;if((b|0)!=2){break k}H[d+8>>2]=a|J[f+2>>1]<<16;break k}if(od(c,d,f)){break k}break e;case 3:case 8:case 12:if(I[o+15|0]){E:{if((b|0)==65533){H[e+116>>2]=e+704;H[e+112>>2]=e+624;Cc(c,f,e+112|0);b=H[e+624>>2];break E}H[e+132>>2]=e+704;H[e+128>>2]=e+616;Cc(c,f,e+128|0);b=J[e+616>>1]}H[d+4>>2]=b;a=H[e+704>>2];if((b|0)==1){H[d+8>>2]=H[a>>2];break k}if(od(c,d,a)){break k}break e}if((b|0)==1){H[e+80>>2]=d+8;Cc(c,f,e+80|0);break k}H[e+96>>2]=e+704;Cc(c,f,e+96|0);a=H[e+704>>2];if(H[d+4>>2]==1){H[d+8>>2]=H[a>>2];break k}if(od(c,d,a)){break k}break e;case 4:case 9:if(I[o+15|0]){F:{if((b|0)==65533){H[e+180>>2]=e+704;H[e+176>>2]=e+624;Cc(c,f,e+176|0);a=H[e+624>>2];break F}H[e+196>>2]=e+704;H[e+192>>2]=e+616;Cc(c,f,e+192|0);a=J[e+616>>1]}H[d+4>>2]=a;if(zi(c,d,H[e+704>>2])){break k}break e}if((b|0)==1){a=e+704|0;H[e+144>>2]=a;Cc(c,f,e+144|0);if(zi(c,d,a)){break k}break e}H[e+160>>2]=e+704;Cc(c,f,e+160|0);if(zi(c,d,H[e+704>>2])){break k}break e;case 10:if(I[o+15|0]){G:{if((b|0)==65533){H[e+244>>2]=e+704;H[e+240>>2]=e+624;Cc(c,f,e+240|0);b=H[e+624>>2];break G}H[e+260>>2]=e+704;H[e+256>>2]=e+616;Cc(c,f,e+256|0);b=J[e+616>>1]}H[d+4>>2]=b;a=H[e+704>>2];if((b|0)==1){H[d+8>>2]=H[a>>2];break k}if(od(c,d,a)){break k}break e}if((b|0)==1){H[e+208>>2]=e+704;Cc(c,f,e+208|0);if(H[d+4>>2]==1){H[d+8>>2]=H[e+704>>2];break k}if(od(c,d,e+704|0)){break k}break e}H[e+224>>2]=e+704;Cc(c,f,e+224|0);a=H[e+704>>2];if(H[d+4>>2]==1){H[d+8>>2]=H[a>>2];break k}if(od(c,d,a)){break k}break e;case 11:if(I[o+15|0]){H:{if((b|0)==65533){H[e+308>>2]=e+704;H[e+304>>2]=e+624;Cc(c,f,e+304|0);a=H[e+624>>2];break H}H[e+324>>2]=e+704;H[e+320>>2]=e+616;Cc(c,f,e+320|0);a=J[e+616>>1]}H[d+4>>2]=a;if(od(c,d,H[e+704>>2])){break k}break e}if((b|0)==1){a=e+704|0;H[e+272>>2]=a;Cc(c,f,e+272|0);if(od(c,d,a)){break k}break e}H[e+288>>2]=e+704;Cc(c,f,e+288|0);if(od(c,d,H[e+704>>2])){break k}break e;case 1:I:{if(I[o+15|0]){if((b|0)==65533){H[e+356>>2]=e+704;H[e+352>>2]=e+624;Cc(c,f,e+352|0);break I}H[e+372>>2]=e+704;H[e+368>>2]=e+616;Cc(c,f,e+368|0);break I}H[e+336>>2]=e+704;Cc(c,f,e+336|0)}f=H[e+704>>2];b=ac(f)+1|0;H[d+4>>2]=b;if(b>>>0<=4){a=I[f|0]<<24;if(J[c+456>>1]==19789){H[d+8>>2]=a;if(b>>>0<2){break k}a=a|F[f+1|0]<<16;H[d+8>>2]=a;if((b|0)==2){break k}a=a|F[f+2|0]<<8;H[d+8>>2]=a;if((b|0)!=4){break k}H[d+8>>2]=a|F[f+3|0];break k}a=a>>24;H[d+8>>2]=a;if(b>>>0<2){break k}a=a|F[f+1|0]<<8;H[d+8>>2]=a;if((b|0)==2){break k}a=a|F[f+2|0]<<16;H[d+8>>2]=a;if((b|0)!=4){break k}H[d+8>>2]=a|I[f+3|0]<<24;break k}if(od(c,d,f)){break k}break e;case 0:case 5:if(I[o+15|0]){J:{if((b|0)==65533){H[e+420>>2]=e+704;H[e+416>>2]=e+624;Cc(c,f,e+416|0);a=H[e+624>>2];break J}H[e+436>>2]=e+704;H[e+432>>2]=e+616;Cc(c,f,e+432|0);a=J[e+616>>1]}H[d+4>>2]=a;f=H[e+704>>2];if(a>>>0<=4){b=I[f|0]<<24;if(J[c+456>>1]==19789){H[d+8>>2]=b;if(a>>>0<2){break k}b=b|F[f+1|0]<<16;H[d+8>>2]=b;if((a|0)==2){break k}b=b|F[f+2|0]<<8;H[d+8>>2]=b;if((a|0)!=4){break k}H[d+8>>2]=b|F[f+3|0];break k}b=b>>24;H[d+8>>2]=b;if(a>>>0<2){break k}b=b|F[f+1|0]<<8;H[d+8>>2]=b;if((a|0)==2){break k}b=b|F[f+2|0]<<16;H[d+8>>2]=b;if((a|0)!=4){break k}H[d+8>>2]=b|I[f+3|0]<<24;break k}if(od(c,d,f)){break k}break e}if((b|0)==1){H[e+384>>2]=e+704;Cc(c,f,e+384|0);b=H[d+4>>2];if(b>>>0<=4){a=I[e+704|0]<<24;if(J[c+456>>1]==19789){H[d+8>>2]=a;if(b>>>0<2){break k}a=a|F[e+705|0]<<16;H[d+8>>2]=a;if((b|0)==2){break k}a=a|F[e+706|0]<<8;H[d+8>>2]=a;if((b|0)!=4){break k}H[d+8>>2]=a|F[e+707|0];break k}a=a>>24;H[d+8>>2]=a;if(b>>>0<2){break k}a=a|F[e+705|0]<<8;H[d+8>>2]=a;if((b|0)==2){break k}a=a|F[e+706|0]<<16;H[d+8>>2]=a;if((b|0)!=4){break k}H[d+8>>2]=a|I[e+707|0]<<24;break k}if(od(c,d,e+704|0)){break k}break e}H[e+400>>2]=e+704;Cc(c,f,e+400|0);f=H[e+704>>2];b=H[d+4>>2];if(b>>>0<=4){a=I[f|0]<<24;if(J[c+456>>1]==19789){H[d+8>>2]=a;if(b>>>0<2){break k}a=a|F[f+1|0]<<16;H[d+8>>2]=a;if((b|0)==2){break k}a=a|F[f+2|0]<<8;H[d+8>>2]=a;if((b|0)!=4){break k}H[d+8>>2]=a|F[f+3|0];break k}a=a>>24;H[d+8>>2]=a;if(b>>>0<2){break k}a=a|F[f+1|0]<<8;H[d+8>>2]=a;if((b|0)==2){break k}a=a|F[f+2|0]<<16;H[d+8>>2]=a;if((b|0)!=4){break k}H[d+8>>2]=a|I[f+3|0]<<24;break k}if(od(c,d,f)){break k}break e;case 6:break C;default:break k}}K:{L:{switch(b-65533|0){case 2:H[e+468>>2]=e+704;H[e+464>>2]=e+616;Cc(c,f,e+464|0);a=J[e+616>>1];H[d+4>>2]=a;break K;case 0:H[e+484>>2]=e+704;H[e+480>>2]=e+624;Cc(c,f,e+480|0);a=H[e+624>>2];H[d+4>>2]=a;break K;default:break L}}H[e+448>>2]=e+704;Cc(c,f,e+448|0);a=H[d+4>>2]}f=H[e+704>>2];if(a>>>0<=4){b=I[f|0]<<24;if(J[c+456>>1]==19789){H[d+8>>2]=b;if(a>>>0<2){break k}b=b|F[f+1|0]<<16;H[d+8>>2]=b;if((a|0)==2){break k}b=b|F[f+2|0]<<8;H[d+8>>2]=b;if((a|0)!=4){break k}H[d+8>>2]=b|F[f+3|0];break k}b=b>>24;H[d+8>>2]=b;if(a>>>0<2){break k}b=b|F[f+1|0]<<8;H[d+8>>2]=b;if((a|0)==2){break k}b=b|F[f+2|0]<<16;H[d+8>>2]=b;if((a|0)!=4){break k}H[d+8>>2]=b|I[f+3|0]<<24;break k}if(od(c,d,f)){break k}break e}if(!od(c,d,f)){break e}break k}if(od(c,d,b)){break k}break e}H[d+4>>2]=k;G[d+2>>1]=3;G[d>>1]=n;a=J[e+704>>1];H[d+8>>2]=J[c+456>>1]==19789?a<<16:a;break k}H[c+496>>2]=(H[c+16>>2]+(d+A|0)|0)+8;break k}l=0;h=0;if(j-1>>>0>=3){f=j&65532;q=0;while(1){n=h<<3;M[n+a>>3]=M[e+616>>3];M[(n|8)+a>>3]=M[e+616>>3];M[(n|16)+a>>3]=M[e+616>>3];M[(n|24)+a>>3]=M[e+616>>3];h=h+4|0;q=q+4|0;if((f|0)!=(q|0)){continue}break}}f=j&3;if(!f){break l}while(1){M[(h<<3)+a>>3]=M[e+616>>3];h=h+1|0;l=l+1|0;if((f|0)!=(l|0)){continue}break}l=0}h=e+704|0;M:{N:{if(N(b>>>0<=13?H[(b<<2)+290752>>2]:0,j)>>>0<81){break N}h=Tb(N(b>>>0<=13?H[(b<<2)+290752>>2]:0,j));if(h){break N}q=0;Pb(H[c+628>>2],H[c>>2],279207,0);break M}H[d+4>>2]=j;G[d+2>>1]=b;G[d>>1]=k;q=0;O:{P:{Q:{switch(b-1|0){case 5:if(!l){l=0;i=0;if(j-1>>>0>=3){n=j&65532;k=0;while(1){f=i+h|0;g=M[(i<<3)+a>>3];R:{if(P(g)<2147483648){b=~~g;break R}b=-2147483648}F[f|0]=b;f=i|1;m=f+h|0;g=M[(f<<3)+a>>3];S:{if(P(g)<2147483648){b=~~g;break S}b=-2147483648}F[m|0]=b;f=i|2;m=f+h|0;g=M[(f<<3)+a>>3];T:{if(P(g)<2147483648){b=~~g;break T}b=-2147483648}F[m|0]=b;f=i|3;m=f+h|0;g=M[(f<<3)+a>>3];U:{if(P(g)<2147483648){b=~~g;break U}b=-2147483648}F[m|0]=b;i=i+4|0;k=k+4|0;if((n|0)!=(k|0)){continue}break}}f=j&3;if(f){while(1){j=i+h|0;g=M[(i<<3)+a>>3];V:{if(P(g)<2147483648){b=~~g;break V}b=-2147483648}F[j|0]=b;i=i+1|0;l=l+1|0;if((f|0)!=(l|0)){continue}break}}j=H[d+4>>2]}if(j>>>0<=4){b=I[h|0]<<24;if(J[c+456>>1]==19789){H[d+8>>2]=b;if(j>>>0<2){break P}b=b|F[h+1|0]<<16;H[d+8>>2]=b;if((j|0)==2){break P}b=b|F[h+2|0]<<8;H[d+8>>2]=b;if((j|0)!=4){break P}H[d+8>>2]=b|F[h+3|0];break P}b=b>>24;H[d+8>>2]=b;if(j>>>0<2){break P}b=b|F[h+1|0]<<8;H[d+8>>2]=b;if((j|0)==2){break P}b=b|F[h+2|0]<<16;H[d+8>>2]=b;if((j|0)!=4){break P}H[d+8>>2]=b|I[h+3|0]<<24;break P}if(od(c,d,h)){break P}break O;case 2:W:{if(l){break W}l=0;i=0;if(j-1>>>0>=3){n=j&65532;k=0;while(1){f=(i<<1)+h|0;g=M[(i<<3)+a>>3];X:{if(g<4294967296&g>=0){b=~~g>>>0;break X}b=0}G[f>>1]=b;f=i|1;m=(f<<1)+h|0;g=M[(f<<3)+a>>3];Y:{if(g<4294967296&g>=0){b=~~g>>>0;break Y}b=0}G[m>>1]=b;f=i|2;m=(f<<1)+h|0;g=M[(f<<3)+a>>3];Z:{if(g<4294967296&g>=0){b=~~g>>>0;break Z}b=0}G[m>>1]=b;f=i|3;m=(f<<1)+h|0;g=M[(f<<3)+a>>3];_:{if(g<4294967296&g>=0){b=~~g>>>0;break _}b=0}G[m>>1]=b;i=i+4|0;k=k+4|0;if((n|0)!=(k|0)){continue}break}}f=j&3;if(!f){break W}while(1){k=(i<<1)+h|0;g=M[(i<<3)+a>>3];$:{if(g<4294967296&g>=0){b=~~g>>>0;break $}b=0}G[k>>1]=b;i=i+1|0;l=l+1|0;if((f|0)!=(l|0)){continue}break}}if(j>>>0<=2){b=J[h>>1];if(J[c+456>>1]==19789){b=b<<16;H[d+8>>2]=b;if((j|0)!=2){break P}H[d+8>>2]=b|J[h+2>>1];break P}H[d+8>>2]=b;if((j|0)!=2){break P}H[d+8>>2]=b|J[h+2>>1]<<16;break P}if(od(c,d,h)){break P}break O;case 7:aa:{if(l){break aa}l=0;i=0;if(j-1>>>0>=3){n=j&65532;k=0;while(1){f=(i<<1)+h|0;g=M[(i<<3)+a>>3];ba:{if(P(g)<2147483648){b=~~g;break ba}b=-2147483648}G[f>>1]=b;f=i|1;m=(f<<1)+h|0;g=M[(f<<3)+a>>3];ca:{if(P(g)<2147483648){b=~~g;break ca}b=-2147483648}G[m>>1]=b;f=i|2;m=(f<<1)+h|0;g=M[(f<<3)+a>>3];da:{if(P(g)<2147483648){b=~~g;break da}b=-2147483648}G[m>>1]=b;f=i|3;m=(f<<1)+h|0;g=M[(f<<3)+a>>3];ea:{if(P(g)<2147483648){b=~~g;break ea}b=-2147483648}G[m>>1]=b;i=i+4|0;k=k+4|0;if((n|0)!=(k|0)){continue}break}}f=j&3;if(!f){break aa}while(1){k=(i<<1)+h|0;g=M[(i<<3)+a>>3];fa:{if(P(g)<2147483648){b=~~g;break fa}b=-2147483648}G[k>>1]=b;i=i+1|0;l=l+1|0;if((f|0)!=(l|0)){continue}break}}if(j>>>0<=2){b=J[h>>1];if(J[c+456>>1]==19789){b=b<<16;H[d+8>>2]=b;if((j|0)!=2){break P}H[d+8>>2]=b|J[h+2>>1];break P}H[d+8>>2]=b;if((j|0)!=2){break P}H[d+8>>2]=b|J[h+2>>1]<<16;break P}if(od(c,d,h)){break P}break O;case 3:ga:{if(l){break ga}l=0;i=0;if(j-1>>>0>=3){n=j&65532;k=0;while(1){f=(i<<2)+h|0;g=M[(i<<3)+a>>3];ha:{if(g<4294967296&g>=0){b=~~g>>>0;break ha}b=0}H[f>>2]=b;f=i|1;m=(f<<2)+h|0;g=M[(f<<3)+a>>3];ia:{if(g<4294967296&g>=0){b=~~g>>>0;break ia}b=0}H[m>>2]=b;f=i|2;m=(f<<2)+h|0;g=M[(f<<3)+a>>3];ja:{if(g<4294967296&g>=0){b=~~g>>>0;break ja}b=0}H[m>>2]=b;f=i|3;m=(f<<2)+h|0;g=M[(f<<3)+a>>3];ka:{if(g<4294967296&g>=0){b=~~g>>>0;break ka}b=0}H[m>>2]=b;i=i+4|0;k=k+4|0;if((n|0)!=(k|0)){continue}break}}f=j&3;if(f){while(1){j=(i<<2)+h|0;g=M[(i<<3)+a>>3];la:{if(g<4294967296&g>=0){b=~~g>>>0;break la}b=0}H[j>>2]=b;i=i+1|0;l=l+1|0;if((f|0)!=(l|0)){continue}break}}if(H[d+4>>2]!=1){break ga}H[d+8>>2]=H[h>>2];break P}if(od(c,d,h)){break P}break O;case 8:ma:{if(l){break ma}l=0;i=0;if(j-1>>>0>=3){n=j&65532;k=0;while(1){f=(i<<2)+h|0;g=M[(i<<3)+a>>3];na:{if(P(g)<2147483648){b=~~g;break na}b=-2147483648}H[f>>2]=b;f=i|1;m=(f<<2)+h|0;g=M[(f<<3)+a>>3];oa:{if(P(g)<2147483648){b=~~g;break oa}b=-2147483648}H[m>>2]=b;f=i|2;m=(f<<2)+h|0;g=M[(f<<3)+a>>3];pa:{if(P(g)<2147483648){b=~~g;break pa}b=-2147483648}H[m>>2]=b;f=i|3;m=(f<<2)+h|0;g=M[(f<<3)+a>>3];qa:{if(P(g)<2147483648){b=~~g;break qa}b=-2147483648}H[m>>2]=b;i=i+4|0;k=k+4|0;if((n|0)!=(k|0)){continue}break}}f=j&3;if(f){while(1){j=(i<<2)+h|0;g=M[(i<<3)+a>>3];ra:{if(P(g)<2147483648){b=~~g;break ra}b=-2147483648}H[j>>2]=b;i=i+1|0;l=l+1|0;if((f|0)!=(l|0)){continue}break}}if(H[d+4>>2]!=1){break ma}H[d+8>>2]=H[h>>2];break P}if(od(c,d,h)){break P}break O;case 10:sa:{if(l){break sa}l=0;i=0;if(j-1>>>0>=3){f=j&65532;k=0;while(1){L[(i<<2)+h>>2]=M[(i<<3)+a>>3];b=i|1;L[(b<<2)+h>>2]=M[(b<<3)+a>>3];b=i|2;L[(b<<2)+h>>2]=M[(b<<3)+a>>3];b=i|3;L[(b<<2)+h>>2]=M[(b<<3)+a>>3];i=i+4|0;k=k+4|0;if((f|0)!=(k|0)){continue}break}}b=j&3;if(b){while(1){L[(i<<2)+h>>2]=M[(i<<3)+a>>3];i=i+1|0;l=l+1|0;if((b|0)!=(l|0)){continue}break}}if((j|0)!=1){break sa}H[d+8>>2]=H[h>>2];break P}if(od(c,d,h)){break P}break O;case 11:if(!od(c,d,a)){break O}break P;case 0:break Q;default:break O}}if(!l){l=0;i=0;if(j-1>>>0>=3){n=j&65532;k=0;while(1){f=i+h|0;g=M[(i<<3)+a>>3];ta:{if(g<4294967296&g>=0){b=~~g>>>0;break ta}b=0}F[f|0]=b;f=i|1;m=f+h|0;g=M[(f<<3)+a>>3];ua:{if(g<4294967296&g>=0){b=~~g>>>0;break ua}b=0}F[m|0]=b;f=i|2;m=f+h|0;g=M[(f<<3)+a>>3];va:{if(g<4294967296&g>=0){b=~~g>>>0;break va}b=0}F[m|0]=b;f=i|3;m=f+h|0;g=M[(f<<3)+a>>3];wa:{if(g<4294967296&g>=0){b=~~g>>>0;break wa}b=0}F[m|0]=b;i=i+4|0;k=k+4|0;if((n|0)!=(k|0)){continue}break}}f=j&3;if(f){while(1){j=i+h|0;g=M[(i<<3)+a>>3];xa:{if(g<4294967296&g>=0){b=~~g>>>0;break xa}b=0}F[j|0]=b;i=i+1|0;l=l+1|0;if((f|0)!=(l|0)){continue}break}}j=H[d+4>>2]}if(j>>>0<=4){b=I[h|0]<<24;if(J[c+456>>1]==19789){H[d+8>>2]=b;if(j>>>0<2){break P}b=b|F[h+1|0]<<16;H[d+8>>2]=b;if((j|0)==2){break P}b=b|F[h+2|0]<<8;H[d+8>>2]=b;if((j|0)!=4){break P}H[d+8>>2]=b|F[h+3|0];break P}b=b>>24;H[d+8>>2]=b;if(j>>>0<2){break P}b=b|F[h+1|0]<<8;H[d+8>>2]=b;if((j|0)==2){break P}b=b|F[h+2|0]<<16;H[d+8>>2]=b;if((j|0)!=4){break P}H[d+8>>2]=b|I[h+3|0]<<24;break P}if(!od(c,d,h)){break O}}q=1}if((e+704|0)==(h|0)){break M}Kb(h)}if((e+624|0)!=(a|0)){Kb(a)}if(!q){break e}}d=d+12|0;f=J[o+12>>1];if((f|0)==65){break i}b=(e+592|0)+(f>>>3&8188)|0;a=H[b>>2];B=b,C=kma(-2,f)&a,H[B>>2]=C}t=t+1|0;if((u|0)!=(t|0)){continue}break}}G[e+624>>1]=r;H[e+704>>2]=H[c+20>>2];if(I[c+12|0]&128){if(r&65535){d=r;a=p;while(1){yj(a,2);Gh(a+4|0,2);d=d-1|0;G[e+624>>1]=d;a=a+12|0;if(d&65535){continue}break}}G[e+624>>1]=r;a=I[e+625|0];F[e+625|0]=I[e+624|0];F[e+624|0]=a;Hh(e+704|0)}zb[H[c+640>>2]](H[c+628>>2],H[c+16>>2],0)|0;if((zb[H[c+636>>2]](H[c+628>>2],e+624|0,2)|0)!=2){Pb(H[c+628>>2],H[c>>2],274508,0);break e}if((zb[H[c+636>>2]](H[c+628>>2],p,s)|0)!=(s|0)){Pb(H[c+628>>2],H[c>>2],275123,0);break e}if((zb[H[c+636>>2]](H[c+628>>2],e+704|0,4)|0)!=4){Pb(H[c+628>>2],H[c>>2],272474,0);break e}yq(c);H[c+12>>2]=H[c+12>>2]&-9;zb[H[c+572>>2]](c);an(c);H[c+16>>2]=0;H[c+20>>2]=0;H[c+480>>2]=-1;H[c+484>>2]=0;H[c+472>>2]=-1;Kb(p);p=1;break a}Kb(p);p=0}xb=e+784|0;return p|0}function pE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;c=0;if(!(I[b+16|0]&16)){H[b+72>>2]=0;H[b+64>>2]=0;F[b+61|0]=1;F[b+62|0]=0;H[b+84>>2]=H[b+80>>2];g=H[b+68>>2];a:{b:{c:{a=H[b+44>>2];if((a|0)<=1332902240){if((a|0)>1198879348){break c}if((a|0)>1147500128){break b}if((a|0)!=1113943655){if((a|0)!=1114792296){break a}H[b+64>>2]=0;if(g>>>0<2){break a}a=1;while(1){if(!I[b+60|0]){break a}f=69688;d:{e:{f:{g:{h:{e=H[b+80>>2];switch(H[e+N(c,20)>>2]-69637|0){case 0:break f;case 10:break g;case 6:break h;default:break e}}f=69694;break f}f=69698}d=H[e+N(a,20)>>2];i:{if(I[b+61|0]){j:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break j}}if(!ec(b,1,1)){break i}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=a;H[e+16>>2]=H[c+16>>2];a=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}if((d|0)!=(f|0)){break d}ke(b);break d}if(I[b+61|0]){k:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break k}}if(!ec(b,1,1)){break d}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];a=c+1|0;if(g>>>0>a>>>0){continue}break}break a}H[b+64>>2]=0;if(g>>>0<2){break a}a=1;while(1){if(!I[b+60|0]){break a}f=2494;l:{m:{n:{o:{p:{e=H[b+80>>2];switch(H[e+N(c,20)>>2]-2437|0){case 0:break n;case 7:break o;case 6:break p;default:break m}}f=2499;break n}f=2530}d=H[e+N(a,20)>>2];q:{if(I[b+61|0]){r:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break r}}if(!ec(b,1,1)){break q}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=a;H[e+16>>2]=H[c+16>>2];a=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}if((d|0)!=(f|0)){break l}ke(b);break l}if(I[b+61|0]){s:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break s}}if(!ec(b,1,1)){break l}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];a=c+1|0;if(g>>>0>a>>>0){continue}break}break a}if((a|0)<=1415671147){t:{u:{switch(a-1399418468|0){default:if((a|0)==1332902241){break t}if((a|0)!=1415670642){break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}v:{w:{x:{y:{z:{A:{e=H[b+80>>2];switch(H[e+N(c,20)>>2]-71296|0){case 6:break z;case 0:break A;default:break x}}a=H[e+N(f,20)>>2]-71341|0;if(a>>>0>8|!(1<>2]){a=c;if(H[b+72>>2]==(c|0)){break B}}if(!ec(b,1,1)){break y}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;ke(b);break v}d=H[e+N(f,20)>>2];C:{if(I[b+61|0]){D:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break D}}if(!ec(b,1,1)){break C}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=a;H[e+16>>2]=H[c+16>>2];a=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}if((d|0)!=71346){break v}}ke(b);break v}if(I[b+61|0]){E:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break E}}if(!ec(b,1,1)){break v}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break v}if(I[b+61|0]){F:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break F}}if(!ec(b,1,1)){break v}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break};break a;case 0:H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}G:{H:{d=H[b+80>>2];if(H[d+N(c,20)>>2]==70320){a=H[d+N(f,20)>>2];if(a-70373>>>0>=4&(a|0)!=70368){break H}I:{if(I[b+61|0]){J:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break J}}if(!ec(b,1,1)){break I}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}ke(b);break G}if(I[b+61|0]){K:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break K}}if(!ec(b,1,1)){break G}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break G}if(I[b+61|0]){L:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break L}}if(!ec(b,1,1)){break G}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break};break a;case 1:case 2:case 3:break a;case 4:break u}}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}M:{N:{O:{P:{Q:{R:{S:{T:{U:{d=H[b+80>>2];switch(H[d+N(c,20)>>2]-3461|0){case 0:break R;case 12:break S;case 8:break T;case 6:case 10:case 15:break U;default:break O}}a=H[d+N(f,20)>>2]==3551;break Q}a=H[d+N(f,20)>>2]==3544;break Q}a=H[d+N(f,20)>>2]-3530|0;if(a>>>0>20|!(1<>2]){a=c;if(H[b+72>>2]==(c|0)){break V}}if(!ec(b,1,1)){break P}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;ke(b);break M}a=H[d+N(f,20)>>2]-3535>>>0<3}W:{if(I[b+61|0]){X:{if((d|0)==H[b+84>>2]){d=c;if(H[b+72>>2]==(c|0)){break X}}if(!ec(b,1,1)){break W}d=H[b+80>>2]+N(H[b+64>>2],20)|0;c=H[d+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[d>>2];H[e+4>>2]=c;H[e+16>>2]=H[d+16>>2];c=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=c;c=H[b+64>>2];d=H[b+72>>2]}H[b+72>>2]=d+1}H[b+64>>2]=c+1}if(!a){break M}}ke(b);break M}if(I[b+61|0]){Y:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Y}}if(!ec(b,1,1)){break M}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break M}Cg(b)}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}break a}H[b+64>>2]=0;if(g>>>0<2){break a}a=1;while(1){if(!I[b+60|0]){break a}f=2878;Z:{_:{$:{aa:{e=H[b+80>>2];switch(H[e+N(c,20)>>2]-2821|0){case 0:break $;case 10:case 14:break aa;default:break _}}f=2903}d=H[e+N(a,20)>>2];ba:{if(I[b+61|0]){ca:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break ca}}if(!ec(b,1,1)){break ba}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=a;H[e+16>>2]=H[c+16>>2];a=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}if((d|0)!=(f|0)){break Z}ke(b);break Z}if(I[b+61|0]){da:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break da}}if(!ec(b,1,1)){break Z}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];a=c+1|0;if(g>>>0>a>>>0){continue}break}break a}if((a|0)!=1415671148){if((a|0)!=1415933045){if((a|0)!=1416196712){break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}ea:{fa:{ga:{ha:{ia:{ja:{ka:{d=H[b+80>>2];a=H[d+N(c,20)>>2];switch(a-70785|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 11:break ha;case 10:case 12:break ja;case 0:break ka;default:break ia}}a=H[d+N(f,20)>>2]==70832;break fa}a=H[d+N(f,20)>>2]==70842;break fa}if((a|0)==70826){break ga}}if(I[b+61|0]){la:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break la}}if(!ec(b,1,1)){break ea}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break ea}a=H[d+N(f,20)>>2]-70837>>>0<2}ma:{if(I[b+61|0]){na:{if((d|0)==H[b+84>>2]){d=c;if(H[b+72>>2]==(c|0)){break na}}if(!ec(b,1,1)){break ma}d=H[b+80>>2]+N(H[b+64>>2],20)|0;c=H[d+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[d>>2];H[e+4>>2]=c;H[e+16>>2]=H[d+16>>2];c=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=c;c=H[b+64>>2];d=H[b+72>>2]}H[b+72>>2]=d+1}H[b+64>>2]=c+1}if(!a){break ea}ke(b)}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}oa:{pa:{e=H[b+80>>2];d=H[e+N(c,20)>>2];a=d-3135|0;qa:{if(!(a>>>0>11|!(1<>2]==3157;break qa}if((d|0)!=3090){break pa}a=H[e+N(f,20)>>2];a=(a|0)==3148|(a|0)==3157}ra:{if(I[b+61|0]){sa:{if((e|0)==H[b+84>>2]){d=c;if(H[b+72>>2]==(c|0)){break sa}}if(!ec(b,1,1)){break ra}d=H[b+80>>2]+N(H[b+64>>2],20)|0;c=H[d+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[d>>2];H[e+4>>2]=c;H[e+16>>2]=H[d+16>>2];c=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=c;c=H[b+64>>2];d=H[b+72>>2]}H[b+72>>2]=d+1}H[b+64>>2]=c+1}if(!a){break oa}ke(b);break oa}if(I[b+61|0]){ta:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break ta}}if(!ec(b,1,1)){break oa}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}a=H[b+80>>2];ua:{if(H[a+N(c,20)>>2]==2949){d=H[a+N(f,20)>>2];va:{if(I[b+61|0]){wa:{if((a|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break wa}}if(!ec(b,1,1)){break va}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=a;H[e+16>>2]=H[c+16>>2];a=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}if((d|0)!=3010){break ua}ke(b);break ua}if(I[b+61|0]){xa:{if((a|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break xa}}if(!ec(b,1,1)){break ua}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}break a}if((a|0)<=1298954604){if((a|0)!=1198879349){if((a|0)!=1265525857){break a}H[b+64>>2]=0;if(g>>>0<2){break a}a=1;while(1){if(!I[b+60|0]){break a}f=3262;ya:{za:{Aa:{Ba:{e=H[b+80>>2];switch(H[e+N(c,20)>>2]-3209|0){case 0:case 2:break Aa;case 9:break Ba;default:break za}}f=3276}d=H[e+N(a,20)>>2];Ca:{if(I[b+61|0]){Da:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Da}}if(!ec(b,1,1)){break Ca}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=a;H[e+16>>2]=H[c+16>>2];a=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}if((d|0)!=(f|0)){break ya}ke(b);break ya}if(I[b+61|0]){Ea:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Ea}}if(!ec(b,1,1)){break ya}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];a=c+1|0;if(g>>>0>a>>>0){continue}break}break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{d=H[b+80>>2];a=H[d+N(c,20)>>2];switch(a-2674|0){case 1:break Pa;case 0:break Qa;default:break Ra}}if((a|0)!=2565){break Ja}a=H[d+N(f,20)>>2]-2622|0;if(a>>>0>14|!(1<>2]){a=c;if(H[b+72>>2]==(c|0)){break Ma}}if(ec(b,1,1)){break Na}break Ka}a=H[d+N(f,20)>>2]-2623|0;if(a>>>0>8|!(1<>2]-2625|0;if(a>>>0>10|!(1<>2]){a=c;if(H[b+72>>2]==(c|0)){break Ma}}if(ec(b,1,1)){break Na}break Ka}if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Ma}}if(!ec(b,1,1)){break Ka}}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+72>>2];a=H[b+64>>2]}H[b+72>>2]=c+1}H[b+64>>2]=a+1}ke(b);break Fa}if(I[b+61|0]){Sa:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Sa}}if(!ec(b,1,1)){break Fa}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break Fa}if(I[b+61|0]){Ta:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Ta}}if(!ec(b,1,1)){break Fa}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break Fa}if(I[b+61|0]){Ua:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Ua}}if(!ec(b,1,1)){break Fa}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break Fa}if(I[b+61|0]){Va:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Va}}if(!ec(b,1,1)){break Fa}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}break a}if((a|0)!=1298954605){if((a|0)!=1299145833){break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}a=H[b+80>>2];Wa:{if((H[a+N(c,20)>>2]&-2)==71168){d=H[a+N(f,20)>>2]-71225|0;Xa:{if(I[b+61|0]){Ya:{if((a|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Ya}}if(!ec(b,1,1)){break Xa}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=a;H[e+16>>2]=H[c+16>>2];a=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}if(d>>>0>1){break Wa}ke(b);break Wa}if(I[b+61|0]){Za:{if((a|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Za}}if(!ec(b,1,1)){break Wa}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}_a:{$a:{ab:{bb:{cb:{db:{d=H[b+80>>2];switch(H[d+N(c,20)>>2]-3335|0){case 11:break bb;case 7:break cb;case 0:case 2:break db;default:break $a}}a=H[d+N(f,20)>>2]==3415;break ab}a=H[d+N(f,20)>>2]==3398;break ab}a=H[d+N(f,20)>>2];a=(a|0)==3390|(a|0)==3415}eb:{if(I[b+61|0]){fb:{if((d|0)==H[b+84>>2]){d=c;if(H[b+72>>2]==(c|0)){break fb}}if(!ec(b,1,1)){break eb}d=H[b+80>>2]+N(H[b+64>>2],20)|0;c=H[d+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[d>>2];H[e+4>>2]=c;H[e+16>>2]=H[d+16>>2];c=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=c;c=H[b+64>>2];d=H[b+72>>2]}H[b+72>>2]=d+1}H[b+64>>2]=c+1}if(!a){break _a}ke(b);break _a}if(I[b+61|0]){gb:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break gb}}if(!ec(b,1,1)){break _a}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}break a}if((a|0)!=1147500129){if((a|0)!=1198877298){break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}hb:{ib:{jb:{e=H[b+80>>2];a=H[e+N(c,20)>>2];kb:{if((a|0)!=2757){if((a|0)!=2693){break jb}a=H[e+N(f,20)>>2]-2750|0;if(a>>>0>14|!(1<>2]){a=c;if(H[b+72>>2]==(c|0)){break lb}}if(!ec(b,1,1)){break kb}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;ke(b);break hb}d=H[e+N(f,20)>>2];mb:{if(I[b+61|0]){nb:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break nb}}if(!ec(b,1,1)){break mb}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=a;H[e+16>>2]=H[c+16>>2];a=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1}if((d|0)!=2750){break hb}}ke(b);break hb}if(I[b+61|0]){ob:{if((e|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break ob}}if(!ec(b,1,1)){break hb}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break hb}Cg(b)}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}break a}H[b+64>>2]=0;if(g>>>0<2){break a}f=1;while(1){if(!I[b+60|0]){break a}pb:{qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{d=H[b+80>>2];switch(H[d+N(c,20)>>2]-2309|0){case 4:break xb;case 43:break yb;case 10:break zb;case 1:break Ab;case 0:break Bb;default:break ub}}a=H[d+N(f,20)>>2]-2362|0;if(a>>>0>29|!(1<>2]){a=c;if(H[b+72>>2]==(c|0)){break Cb}}if(!ec(b,1,1)){break vb}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;ke(b);break pb}a=H[d+N(f,20)>>2];if(a-2373>>>0>=4&(a|0)!=2362){break rb}if(I[b+61|0]){Db:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Db}}if(!ec(b,1,1)){break vb}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;ke(b);break pb}a=H[d+N(f,20)>>2]-2373>>>0<3;break wb}if(H[d+N(f,20)>>2]!=2381){break sb}a=c+2|0;if(a>>>0>=g>>>0){break tb}a=H[d+N(a,20)>>2];Cg(b);if((a|0)!=2311){break pb}Cg(b);ke(b);break pb}a=H[d+N(f,20)>>2]==2369}Eb:{if(I[b+61|0]){Fb:{if((d|0)==H[b+84>>2]){d=c;if(H[b+72>>2]==(c|0)){break Fb}}if(!ec(b,1,1)){break Eb}d=H[b+80>>2]+N(H[b+64>>2],20)|0;c=H[d+4>>2];e=H[b+84>>2]+N(H[b+72>>2],20)|0;H[e>>2]=H[d>>2];H[e+4>>2]=c;H[e+16>>2]=H[d+16>>2];c=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=c;c=H[b+64>>2];d=H[b+72>>2]}H[b+72>>2]=d+1}H[b+64>>2]=c+1}if(!a){break pb}}ke(b);break pb}if(I[b+61|0]){Gb:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Gb}}if(!ec(b,1,1)){break pb}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break pb}Cg(b);break pb}if(I[b+61|0]){Hb:{if((d|0)==H[b+84>>2]){a=c;if(H[b+72>>2]==(c|0)){break Hb}}if(!ec(b,1,1)){break pb}c=H[b+80>>2]+N(H[b+64>>2],20)|0;a=H[c+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+16>>2]=H[c+16>>2];a=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=a;c=H[b+64>>2];a=H[b+72>>2]}H[b+72>>2]=a+1}H[b+64>>2]=c+1;break pb}Cg(b);break pb}Cg(b)}c=H[b+64>>2];f=c+1|0;if(g>>>0>f>>>0){continue}break}}cf(b)}}function WH(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,y=0,z=0,A=0,B=0;m=xb-80|0;xb=m;a:{b:{switch(I[a+7|0]){case 0:c=H[b+4>>2];if(!(F[c+152|0]&1)){break a}g=I[a+4|0];if(g&16){break a}H[m+8>>2]=a;h=1;H[m+12>>2]=b;F[m+68|0]=g>>>6&1;H[m+64>>2]=m+8;o=m- -64|0;q=H[c+144>>2];p=xb-160|0;xb=p;j=H[b+16>>2];i=H[b+8>>2];if(Ac(j,i,106210,0)){if(I[j+16|0]&64){Rc(j,2,0,-1,1,0)}b=rf(p+8|0,1,i,j);H[b+120>>2]=q;H[b+132>>2]=8;H[b+36>>2]=0;H[b+8>>2]=b;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+52>>2]=b;H[b+20>>2]=q;F[b+17|0]=I[b+142|0];H[b+12>>2]=8;H[b+72>>2]=0;H[b+76>>2]=0;H[b- -64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=8;a=H[b+124>>2]==1;F[b+16|0]=a;F[b+60|0]=a|I[b+141|0]!=0;g=H[j+68>>2];if(g){k=b+4|0;l=H[j+88>>2];w=H[j+80>>2];A=(H[j+40>>2]&-2)!=4;while(1){c:{d:{t=N(e,20);c=t+w|0;if(!(q&H[c+4>>2])){break d}H[b+40>>2]=1;H[b+4>>2]=e;a=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[a+68>>2];F[b+24|0]=H[a+64>>2]==(e|0)?I[(t+H[a+80>>2]|0)+15|0]:0;if(!Ne(k,p+4|0)){break d}a=H[o>>2];d=H[a>>2];z=H[c>>2];B=H[k>>2];n=N(B,20);v=H[n+w>>2];f=H[a+4>>2];c=0;r=163632;a=I[d+12|0]|I[d+13|0]<<8|(I[d+14|0]<<16|I[d+15|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);e:{if((a|0)<=0){break e}a=a-1|0;while(1){f:{g:{h:{s=a+c>>>1|0;u=d+N(s,6)|0;y=I[u+28|0]|I[u+29|0]<<8;y=(y<<8|y>>>8)&65535;i:{if((y|0)==(z|0)){u=I[u+30|0]|I[u+31|0]<<8;u=(u<<8|u>>>8)&65535;if(u>>>0>v>>>0){break i}if((u|0)==(v|0)){break h}break g}if(z>>>0>=y>>>0){break g}}a=s-1|0;break f}r=(d+N(s,6)|0)+28|0;break e}c=s+1|0}if((a|0)>=(c|0)){continue}break}}a=I[r+4|0]|I[r+5|0]<<8;c=(a<<8|a>>>8)<<16>>16;a=c;j:{if(!f){break j}a=c;r=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);r=r<<24|r<<8&16711680|(r>>>8&65280|r>>>24);if(!r){break j}a=0;k:{if(r>>>0>2147483646){break k}c=c+d|0;if(c>>>0>2]){break k}d=H[f+28>>2];if(d>>>0>>0){break k}x=d-c|0;d=r<<1;if(x>>>0>>0){break k}d=H[f+32>>2]-d|0;H[f+32>>2]=d;if((d|0)<=0){break k}a=I[c|0]|I[c+1|0]<<8;a=(a<<8|a>>>8)<<16>>16}}if(a){l:{if(!A){a=a<<16;d=a>>31;a=gma(H[i+40>>2],H[i+44>>2],a>>16,d)+32768|0;f=yb;f=a>>>0<32768?f+1|0:f;a=(f&65535)<<16|a>>>16;if(I[o+4|0]){H[(l+n|0)+12>>2]=a;H[j+144>>2]=H[j+144>>2]|8;break l}c=l+t|0;d=a>>1;H[c>>2]=d+H[c>>2];c=l+n|0;a=a-d|0;H[c>>2]=a+H[c>>2];H[c+8>>2]=a+H[c+8>>2];break l}a=a<<16;f=a>>31;a=gma(H[i+48>>2],H[i+52>>2],a>>16,f)+32768|0;f=yb;f=a>>>0<32768?f+1|0:f;a=(f&65535)<<16|a>>>16;if(I[o+4|0]){H[(l+n|0)+8>>2]=a;H[j+144>>2]=H[j+144>>2]|8;break l}c=l+t|0;d=a>>1;H[c+4>>2]=d+H[c+4>>2];c=l+n|0;a=a-d|0;H[c+4>>2]=a+H[c+4>>2];H[c+12>>2]=a+H[c+12>>2]}ag(j,e,B+1|0)}e=H[k>>2];break c}e=e+1|0}if(g>>>0>e>>>0){continue}break}}Ac(j,i,106229,0)}xb=p+160|0;break a;case 1:g=I[a+4|0];c=F[H[b+4>>2]+152|0]&1|g&64;n=!c;if(c){H[m+12>>2]=a;H[m+8>>2]=b;c=I[a+28|0]|I[a+29|0]<<8|(I[a+30|0]<<16|I[a+31|0]<<24);H[m+52>>2]=0;F[m+56|0]=g>>>6&1;a=a+12|0;H[m+16>>2]=a+(c<<8&16711680|c<<24|(c>>>8&65280|c>>>24));c=H[H[b+8>>2]+16>>2];H[m+68>>2]=H[b+16>>2];H[m+64>>2]=a;a=H[c+32>>2];if((a|0)==-1){a=De(c)}H[m+72>>2]=a;g=m+8|0;j=m- -64|0;a=H[j+4>>2];H[a+64>>2]=0;m:{if(!I[a+60|0]){break m}while(1){b=0;n:{if(K[a+68>>2]<=e>>>0){break n}c=H[H[a+80>>2]+N(e,20)>>2];b=2;if((c|0)==65535){break n}a=H[j>>2];e=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=Re((e<<8&16711680|e<<24|(e>>>8&65280|e>>>24))+a|0,c,H[j+8>>2]);b=1;if(!a){break n}a=I[a|0]|I[a+1|0]<<8;b=(a<<8|a>>>8)&65535}a=H[j>>2];e=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);c=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);d=c>>>0>b>>>0;o=N(c,h);e=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);f=a+(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))|0;e=((d?b:1)+o<<1)+f|0;e=I[e|0]|I[e+1|0]<<8;k=N((e<<8|e>>>8)&65535,6);e=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);l=a+(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))|0;e=k+l|0;i=I[e|0]|I[e+1|0]<<8;o:{p:{if((I[e+4|0]|I[e+5|0]<<8)!=65535){break p}q:{if(!h){break q}h=I[e+2|0]|I[e+3|0]<<8;if(!(h&64?i:1)){break q}a=f+((d?b:1)<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=l+N((a<<8|a>>>8)&65535,6)|0;if((I[a+4|0]|I[a+5|0]<<8)!=65535|(i|0)!=(I[a|0]|I[a+1|0]<<8)|(h^(I[a+2|0]|I[a+3|0]<<8))&64){break p}}a=f+(o+!c<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=l+N((a<<8|a>>>8)&65535,6)|0;if((I[a+4|0]|I[a+5|0]<<8)==65535){break o}}a=H[j+4>>2];b=H[a+64>>2];h=I[a+61|0]?H[a+72>>2]:b;if(!h|b>>>0>=K[a+68>>2]){break o}Rc(a,3,h-1|0,b+1|0,1,1)}a=I[e+2|0]|I[e+3|0]<<8;a=a<<8|a>>>8;h=a&65535;b=H[j+4>>2];if(a&8192){H[g+44>>2]=0}r:{if(!(h&32768)){break r}a=H[g+44>>2];if(a>>>0<=7){h=H[b+64>>2];H[g+44>>2]=a+1;H[(g+(a<<2)|0)+12>>2]=h;break r}H[g+44>>2]=0}h=I[e+4|0]|I[e+5|0]<<8;s:{if((h|0)==65535){break s}c=H[g+44>>2];if(!c){break s}t:{a=H[g+4>>2];a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);d=a>>>0>1?a:1;u:{if(4294967295/(d>>>0)>>>0<=c>>>0){break u}f=N(c,d);if(f>>>0>2147483646){break u}h=H[g+8>>2]+((h<<8|h>>>8)&65534)|0;a=H[g>>2];if(!f){break t}if(K[a+24>>2]>h>>>0){break u}l=H[a+28>>2];if(l>>>0>>0){break u}f=f<<1;if(f>>>0>l-h>>>0){break u}f=H[a+32>>2]-f|0;H[a+32>>2]=f;if((f|0)>0){break t}}H[g+44>>2]=0;break s}l=H[H[a+4>>2]+144>>2];o=d<<1;while(1){c=c-1|0;H[g+44>>2]=c;d=H[(g+(c<<2)|0)+12>>2];if(d>>>0>2]){a=I[h|0]|I[h+1|0]<<8;c=(a<<8|a>>>8)<<16>>16;a=c&-2;q=c&1;f=I[g+48|0];c=H[b+88>>2];v:{if((H[b+40>>2]&-2)==4){if(f){c=c+N(d,20)|0;if((a|0)==-32768){G[c+16>>1]=0;F[c+18|0]=0;H[c+12>>2]=0;break v}if(!I[c+18|0]){break v}k=c;d=H[c+12>>2];c=H[H[g>>2]+8>>2];a=gma(H[c+48>>2],H[c+52>>2],a,a>>31)+32768|0;c=yb;c=a>>>0<32768?c+1|0:c;H[k+12>>2]=d+((c&65535)<<16|a>>>16);H[b+144>>2]=H[b+144>>2]|8;break v}d=N(d,20);if(!(l&H[(d+H[b+80>>2]|0)+4>>2])){break v}c=c+d|0;d=H[H[g>>2]+8>>2];a=gma(H[d+40>>2],H[d+44>>2],a,a>>31)+32768|0;d=yb;d=a>>>0<32768?d+1|0:d;a=(d&65535)<<16|a>>>16;H[c>>2]=a+H[c>>2];H[c+8>>2]=a+H[c+8>>2];break v}if(f){c=c+N(d,20)|0;if((a|0)==-32768){G[c+16>>1]=0;F[c+18|0]=0;H[c+8>>2]=0;break v}if(!I[c+18|0]){break v}k=c;d=H[c+8>>2];c=H[H[g>>2]+8>>2];c=gma(H[c+40>>2],H[c+44>>2],a,a>>31)+32768|0;a=yb;a=c>>>0<32768?a+1|0:a;H[k+8>>2]=d+((a&65535)<<16|c>>>16);H[b+144>>2]=H[b+144>>2]|8;break v}d=N(d,20);if(!(l&H[(d+H[b+80>>2]|0)+4>>2])){break v}c=c+d|0;d=H[H[g>>2]+8>>2];a=gma(H[d+48>>2],H[d+52>>2],a,a>>31)+32768|0;f=yb;f=a>>>0<32768?f+1|0:f;a=(f&65535)<<16|a>>>16;H[c+4>>2]=a+H[c+4>>2];H[c+12>>2]=a+H[c+12>>2]}if(q){break s}c=H[g+44>>2]}h=h+o|0;if(c){continue}break}}a=H[j+4>>2];h=H[a+64>>2];if((h|0)==H[a+68>>2]|!I[a+60|0]){break m}w:{if(I[e+2|0]&64){b=H[a+152>>2];H[a+152>>2]=b-1;if((b|0)>0){break w}}if(I[a+61|0]){x:{if(H[a+84>>2]==H[a+80>>2]){b=h;if(H[a+72>>2]==(b|0)){break x}}if(!ec(a,1,1)){break w}e=H[a+80>>2]+N(H[a+64>>2],20)|0;h=H[e+4>>2];b=H[a+84>>2]+N(H[a+72>>2],20)|0;H[b>>2]=H[e>>2];H[b+4>>2]=h;H[b+16>>2]=H[e+16>>2];h=H[e+12>>2];H[b+8>>2]=H[e+8>>2];H[b+12>>2]=h;h=H[a+64>>2];b=H[a+72>>2]}H[a+72>>2]=b+1}H[a+64>>2]=h+1}a=H[j+4>>2];if(!I[a+60|0]){break m}h=(i<<8|i>>>8)&65535;e=H[a+64>>2];continue}}}h=!n;break a;case 2:c=H[b+4>>2];if(!(F[c+152|0]&1)){break a}g=I[a+4|0];if(g&16){break a}H[m+8>>2]=a;h=1;H[m+12>>2]=b;F[m+68|0]=g>>>6&1;H[m+64>>2]=m+8;q=m- -64|0;p=H[c+144>>2];k=xb-160|0;xb=k;j=H[b+16>>2];l=H[b+8>>2];if(Ac(j,l,106210,0)){if(I[j+16|0]&64){Rc(j,2,0,-1,1,0)}b=rf(k+8|0,1,l,j);H[b+120>>2]=p;H[b+132>>2]=8;H[b+36>>2]=0;H[b+8>>2]=b;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+52>>2]=b;H[b+20>>2]=p;F[b+17|0]=I[b+142|0];H[b+12>>2]=8;H[b+72>>2]=0;H[b+76>>2]=0;H[b- -64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=8;a=H[b+124>>2]==1;F[b+16|0]=a;F[b+60|0]=a|I[b+141|0]!=0;g=H[j+68>>2];if(g){t=b+4|0;n=H[j+88>>2];u=H[j+80>>2];z=(H[j+40>>2]&-2)!=4;while(1){y:{z:{r=N(e,20);c=r+u|0;if(!(p&H[c+4>>2])){break z}H[b+40>>2]=1;H[b+4>>2]=e;a=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[a+68>>2];F[b+24|0]=H[a+64>>2]==(e|0)?I[(r+H[a+80>>2]|0)+15|0]:0;if(!Ne(t,k+4|0)){break z}v=H[t>>2];o=N(v,20);w=H[o+u>>2];i=0;s=0;f=H[q>>2];d=H[f>>2];a=I[d+16|0]|I[d+17|0]<<8|(I[d+18|0]<<16|I[d+19|0]<<24);x=H[c>>2];f=H[f+4>>2];c=H[f+56>>2];a=Re((a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))+d|0,x,c);if(a){a=I[a|0]|I[a+1|0]<<8;s=(a<<8|a>>>8)&65535}a=I[d+20|0]|I[d+21|0]<<8|(I[d+22|0]<<16|I[d+23|0]<<24);a=Re(d+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0,w,c);if(a){a=I[a|0]|I[a+1|0]<<8;i=(a<<8|a>>>8)&65535}c=0;A=H[f+24>>2];a=I[d+24|0]|I[d+25|0]<<8|(I[d+26|0]<<16|I[d+27|0]<<24);a=(d+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0)+(i+s<<1)|0;A:{B:{if(A>>>0>a>>>0){break B}i=H[f+28>>2];if(i>>>0>>0|i-a>>>0<2){break B}w=H[f+32>>2]-2|0;H[f+32>>2]=w;if((w|0)<=0){break B}a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)<<16>>16;s=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);s=s<<24|s<<8&16711680|(s>>>8&65280|s>>>24);if(!s){break A}if(s>>>0>2147483646){break B}a=a+d|0;if(a>>>0>>0|a>>>0>i>>>0){break B}d=s<<1;if(d>>>0>i-a>>>0){break B}d=w-d|0;H[f+32>>2]=d;if((d|0)<=0){break B}a=I[a|0]|I[a+1|0]<<8;c=(a<<8|a>>>8)<<16>>16}a=c}if(a){C:{if(!z){a=a<<16;f=a>>31;a=gma(H[l+40>>2],H[l+44>>2],a>>16,f)+32768|0;c=yb;c=a>>>0<32768?c+1|0:c;a=(c&65535)<<16|a>>>16;if(I[q+4|0]){H[(n+o|0)+12>>2]=a;H[j+144>>2]=H[j+144>>2]|8;break C}c=n+r|0;d=a>>1;H[c>>2]=d+H[c>>2];c=n+o|0;a=a-d|0;H[c>>2]=a+H[c>>2];H[c+8>>2]=a+H[c+8>>2];break C}a=a<<16;c=a>>31;a=gma(H[l+48>>2],H[l+52>>2],a>>16,c)+32768|0;d=yb;d=a>>>0<32768?d+1|0:d;a=(d&65535)<<16|a>>>16;if(I[q+4|0]){H[(n+o|0)+8>>2]=a;H[j+144>>2]=H[j+144>>2]|8;break C}c=n+r|0;d=a>>1;H[c+4>>2]=d+H[c+4>>2];c=n+o|0;a=a-d|0;H[c+4>>2]=a+H[c+4>>2];H[c+12>>2]=a+H[c+12>>2]}ag(j,e,v+1|0)}e=H[t>>2];break y}e=e+1|0}if(g>>>0>e>>>0){continue}break}}Ac(j,l,106229,0)}xb=k+160|0;break a;case 4:H[m+8>>2]=b;H[m+12>>2]=I[a+28|0]>>>6;c=I[a+31|0];g=I[a+30|0];d=I[a+29|0];H[m+24>>2]=0;F[m+20|0]=0;a=a+12|0;H[m+16>>2]=a+(c|(g<<8|d<<16));c=H[H[b+8>>2]+16>>2];H[m+68>>2]=H[b+16>>2];H[m+64>>2]=a;a=H[c+32>>2];if((a|0)==-1){a=De(c)}H[m+72>>2]=a;g=m+8|0;l=m- -64|0;a=H[l+4>>2];H[a+64>>2]=0;D:{if(!I[a+60|0]){break D}while(1){b=0;E:{if(K[a+68>>2]<=e>>>0){break E}c=H[H[a+80>>2]+N(e,20)>>2];b=2;if((c|0)==65535){break E}a=H[l>>2];e=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=Re((e<<8&16711680|e<<24|(e>>>8&65280|e>>>24))+a|0,c,H[l+8>>2]);b=1;if(!a){break E}a=I[a|0]|I[a+1|0]<<8;b=(a<<8|a>>>8)&65535}a=H[l>>2];e=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);c=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);d=c>>>0>b>>>0;i=N(c,h);e=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);f=a+(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))|0;e=((d?b:1)+i<<1)+f|0;e=I[e|0]|I[e+1|0]<<8;k=N((e<<8|e>>>8)&65535,6);e=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);e=a+(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))|0;j=k+e|0;n=I[j|0]|I[j+1|0]<<8;F:{G:{if((I[j+4|0]|I[j+5|0]<<8)!=65535){break G}H:{if(!h){break H}h=I[j+2|0]|I[j+3|0]<<8;if(!(h&64?n:1)){break H}a=f+((d?b:1)<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=e+N((a<<8|a>>>8)&65535,6)|0;if((I[a+4|0]|I[a+5|0]<<8)!=65535|(n|0)!=(I[a|0]|I[a+1|0]<<8)|(h^(I[a+2|0]|I[a+3|0]<<8))&64){break G}}a=f+(i+!c<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=e+N((a<<8|a>>>8)&65535,6)|0;if((I[a+4|0]|I[a+5|0]<<8)==65535){break F}}a=H[l+4>>2];b=H[a+64>>2];e=I[a+61|0]?H[a+72>>2]:b;if(!e|b>>>0>=K[a+68>>2]){break F}Rc(a,3,e-1|0,b+1|0,1,1)}b=xb-32|0;xb=b;h=H[l+4>>2];I:{J:{if(!I[g+12|0]){break J}a=I[j+4|0]|I[j+5|0]<<8;if((a|0)==65535){break J}o=H[h+64>>2];if(o>>>0>=K[h+68>>2]){break J}c=(a<<8|a>>>8)&65535;q=H[h+88>>2];K:{L:{switch(H[g+4>>2]){case 0:a=H[g+8>>2]+(c<<2)|0;e=H[g>>2];if(a>>>0>2]){break I}c=H[e+28>>2];if(c>>>0>>0|c-a>>>0<4){break I}c=H[e+32>>2]-4|0;H[e+32>>2]=c;if((c|0)<=0){break I}f=I[a+2|0]|I[a+3|0]<<8;c=I[a|0]|I[a+1|0]<<8;H[b+12>>2]=0;H[b+8>>2]=0;d=H[H[H[e+16>>2]+80>>2]+N(H[g+16>>2],20)>>2];a=H[e+8>>2];H[b+20>>2]=0;H[b+16>>2]=0;e=H[a+80>>2];if(!(zb[H[e+212>>2]](a,H[a+84>>2],d,(c<<8|c>>>8)&65535,b+20|0,b+16|0,H[e+68>>2])|0)){break I}ci(a,d,b+28|0,b+24|0);H[b+20>>2]=H[b+20>>2]-H[b+28>>2];H[b+16>>2]=H[b+16>>2]-H[b+24>>2];a=H[g>>2];e=H[a+8>>2];a=H[a+16>>2];i=H[H[a+80>>2]+N(H[a+64>>2],20)>>2];a=xb-16|0;xb=a;c=b+8|0;H[c>>2]=0;d=b+12|0;H[d>>2]=0;k=(f<<8|(f&65280)>>>8)&65535;f=H[e+80>>2];f=zb[H[f+212>>2]](e,H[e+84>>2],i,k,d,c,H[f+68>>2])|0;if(f){ci(e,i,a+12|0,a+8|0);H[d>>2]=H[d>>2]-H[a+12>>2];H[c>>2]=H[c>>2]-H[a+8>>2]}xb=a+16|0;if(!f){break I}a=q+N(o,20)|0;H[a+8>>2]=H[b+20>>2]-H[b+12>>2];H[a+12>>2]=H[b+16>>2]-H[b+8>>2];break K;case 1:a=H[g+8>>2]+(c<<2)|0;e=H[g>>2];if(a>>>0>2]){break I}c=H[e+28>>2];if(c>>>0>>0|c-a>>>0<4){break I}c=H[e+32>>2]-4|0;H[e+32>>2]=c;if((c|0)<=0){break I}f=I[a+2|0]|I[a+3|0]<<8;p=I[a|0]|I[a+1|0]<<8;i=163632;c=163632;a=H[e+64>>2];d=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);d=Re(d?a+d|0:164042,H[H[H[e+16>>2]+80>>2]+N(H[g+16>>2],20)>>2],H[e+56>>2]);if(d){e=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);c=a+(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))|0;a=I[d|0]|I[d+1|0]<<8;a=c+((a<<8|a>>>8)&65535)|0;e=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);c=(p<<8|(p&65280)>>>8)&65535;c=(e<<8&16711680|e<<24|(e>>>8&65280|e>>>24))>>>0>c>>>0?(a+(c<<2)|0)+4|0:163632}d=H[g>>2];a=H[d+64>>2];e=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);k=e?a+e|0:164042;e=H[d+16>>2];d=Re(k,H[H[e+80>>2]+N(H[e+64>>2],20)>>2],H[d+56>>2]);if(d){e=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);e=a+(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))|0;a=I[d|0]|I[d+1|0]<<8;a=e+((a<<8|a>>>8)&65535)|0;e=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);d=(f<<8|f>>>8)&65535;i=(e<<8&16711680|e<<24|(e>>>8&65280|e>>>24))>>>0>d>>>0?(a+(d<<2)|0)+4|0:163632}e=H[H[g>>2]+8>>2];p=H[e+40>>2];a=H[e+44>>2];k=a;a=I[c|0]|I[c+1|0]<<8;a=(a<<8|a>>>8)<<16;d=a>>31;a=gma(p,k,a>>16,d)+32768|0;f=yb;f=a>>>0<32768?f+1|0:f;t=q+N(o,20)|0;x=(f&65535)<<16|a>>>16;a=I[i|0]|I[i+1|0]<<8;d=(a<<8|a>>>8)<<16;f=d>>31;a=gma(p,k,d>>16,f)+32768|0;f=yb;f=a>>>0<32768?f+1|0:f;H[t+8>>2]=x-((f&65535)<<16|a>>>16);a=H[e+52>>2];p=a;e=H[e+48>>2];a=I[c+2|0]|I[c+3|0]<<8;d=(a<<8|a>>>8)<<16;f=d>>31;a=gma(e,p,d>>16,f)+32768|0;c=yb;c=a>>>0<32768?c+1|0:c;k=(c&65535)<<16|a>>>16;a=I[i+2|0]|I[i+3|0]<<8;f=(a<<8|a>>>8)<<16;c=f>>31;e=gma(e,p,f>>16,c)+32768|0;a=yb;a=e>>>0<32768?a+1|0:a;H[t+12>>2]=k-((a&65535)<<16|e>>>16);break K;case 2:break L;default:break K}}e=H[g+8>>2]+(c<<3)|0;a=H[g>>2];if(e>>>0>2]){break I}c=H[a+28>>2];if(c>>>0>>0|c-e>>>0<8){break I}c=H[a+32>>2]-8|0;H[a+32>>2]=c;if((c|0)<=0){break I}i=I[e+6|0]|I[e+7|0]<<8;p=I[e+2|0]|I[e+3|0]<<8;c=H[a+8>>2];d=H[c+40>>2];a=H[c+44>>2];k=a;a=I[e|0]|I[e+1|0]<<8;f=(a<<8|a>>>8)<<16;a=f>>31;a=gma(d,k,f>>16,a)+32768|0;f=yb;f=a>>>0<32768?f+1|0:f;t=q+N(o,20)|0;x=(f&65535)<<16|a>>>16;a=I[e+4|0]|I[e+5|0]<<8;a=(a<<8|a>>>8)<<16;f=a>>31;a=gma(d,k,a>>16,f)+32768|0;d=yb;d=a>>>0<32768?d+1|0:d;H[t+8>>2]=x-((d&65535)<<16|a>>>16);a=H[c+52>>2];e=a;f=H[c+48>>2];a=(p<<8|p>>>8)<<16;d=a>>31;a=gma(f,e,a>>16,d)+32768|0;c=yb;c=a>>>0<32768?c+1|0:c;k=(c&65535)<<16|a>>>16;d=(i<<8|i>>>8)<<16;c=d>>31;a=gma(f,e,d>>16,c)+32768|0;f=yb;f=a>>>0<32768?f+1|0:f;H[t+12>>2]=k-((f&65535)<<16|a>>>16)}a=q+N(o,20)|0;F[a+18|0]=1;G[a+16>>1]=H[g+16>>2]-H[h+64>>2];H[h+144>>2]=H[h+144>>2]|8}if(!(I[j+2|0]&128)){break I}F[g+12|0]=1;H[g+16>>2]=H[h+64>>2]}xb=b+32|0;a=H[l+4>>2];h=H[a+64>>2];if((h|0)==H[a+68>>2]|!I[a+60|0]){break D}M:{if(I[j+2|0]&64){b=H[a+152>>2];H[a+152>>2]=b-1;if((b|0)>0){break M}}if(I[a+61|0]){N:{if(H[a+84>>2]==H[a+80>>2]){b=h;if(H[a+72>>2]==(b|0)){break N}}if(!ec(a,1,1)){break M}e=H[a+80>>2]+N(H[a+64>>2],20)|0;h=H[e+4>>2];b=H[a+84>>2]+N(H[a+72>>2],20)|0;H[b>>2]=H[e>>2];H[b+4>>2]=h;H[b+16>>2]=H[e+16>>2];h=H[e+12>>2];H[b+8>>2]=H[e+8>>2];H[b+12>>2]=h;h=H[a+64>>2];b=H[a+72>>2]}H[a+72>>2]=b+1}H[a+64>>2]=h+1}a=H[l+4>>2];if(!I[a+60|0]){break D}h=(n<<8|n>>>8)&65535;e=H[a+64>>2];continue}}h=1;break a;case 6:break b;default:break a}}c=H[b+4>>2];if(!(F[c+152|0]&1)){break a}g=I[a+4|0];if(g&16){break a}H[m+8>>2]=a;h=1;H[m+12>>2]=b;F[m+68|0]=g>>>6&1;H[m+64>>2]=m+8;t=m- -64|0;r=H[c+144>>2];s=xb-160|0;xb=s;l=H[b+16>>2];o=H[b+8>>2];if(Ac(l,o,106210,0)){if(I[l+16|0]&64){Rc(l,2,0,-1,1,0)}c=rf(s+8|0,1,o,l);H[c+120>>2]=r;H[c+132>>2]=8;H[c+36>>2]=0;H[c+8>>2]=c;H[c+28>>2]=0;H[c+32>>2]=0;H[c+80>>2]=0;H[c+52>>2]=c;H[c+20>>2]=r;F[c+17|0]=I[c+142|0];H[c+12>>2]=8;H[c+72>>2]=0;H[c+76>>2]=0;H[c- -64>>2]=-1;F[c+61|0]=1;H[c+56>>2]=8;a=H[c+124>>2]==1;F[c+16|0]=a;F[c+60|0]=a|I[c+141|0]!=0;j=H[l+68>>2];if(j){u=c+4|0;q=H[l+88>>2];z=H[l+80>>2];A=(H[l+40>>2]&-2)!=4;while(1){O:{P:{w=N(e,20);b=w+z|0;if(!(r&H[b+4>>2])){break P}H[c+40>>2]=1;H[c+4>>2]=e;a=H[H[c+8>>2]+100>>2];H[c+44>>2]=H[a+68>>2];F[c+24|0]=H[a+64>>2]==(e|0)?I[(w+H[a+80>>2]|0)+15|0]:0;if(!Ne(u,s+4|0)){break P}b=H[b>>2];B=H[u>>2];p=N(B,20);i=H[p+z>>2];g=0;d=H[t>>2];f=H[d>>2];a=I[f+20|0]|I[f+21|0]<<8|(I[f+22|0]<<16|I[f+23|0]<<24);a=(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))+f|0;n=H[d+4>>2];k=H[n+56>>2];Q:{R:{S:{if(F[f+15|0]&1){d=it(a,b,k);a=I[f+24|0]|I[f+25|0]<<8|(I[f+26|0]<<16|I[f+27|0]<<24);b=it(f+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0,i,k);a=d+b|0;if(a>>>0>>0|a>>>0>1073741822){break R}v=H[n+24>>2];b=I[f+28|0]|I[f+29|0]<<8|(I[f+30|0]<<16|I[f+31|0]<<24);a=(f+(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))|0)+(a<<2)|0;if(v>>>0>a>>>0){break R}b=H[n+28>>2];if(b>>>0>>0|b-a>>>0<4){break R}k=H[n+32>>2]-4|0;H[n+32>>2]=k;if((k|0)<=0){break R}a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);d=I[f+8|0]|I[f+9|0]<<8|(I[f+10|0]<<16|I[f+11|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(!d){break Q}if(d>>>0>2147483646){break R}x=a;a=I[f+32|0]|I[f+33|0]<<8|(I[f+34|0]<<16|I[f+35|0]<<24);i=x+(f+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0)|0;if(v>>>0>i>>>0|b>>>0>>0){break R}a=d<<1;if(a>>>0>b-i>>>0){break R}a=k-a|0;H[n+32>>2]=a;if((a|0)>0){break S}break R}T:{if((I[a|0]|I[a+1|0]<<8)==2560){U:{d=I[a+4|0]|I[a+5|0]<<8;d=(d<<8|d>>>8)&65535;if(d>>>0<=b>>>0){d=b-d|0;v=I[a+6|0]|I[a+7|0]<<8;if(d>>>0<((v<<8|v>>>8)&65535)>>>0){break U}}a=J[81816];b=(a<<8|a>>>8)&65535;break T}b=I[a+2|0]|I[a+3|0]<<8;if(!b){b=0;break T}x=a;b=(b<<8|b>>>8)&65535;a=N(b,d);a=(a|0)<0?163632:(x+a|0)+8|0;b=b>>>0>1?b:1;v=b&3;if(b-1>>>0<3){b=0}else{y=b&65532;b=0;while(1){d=a;a=a+4|0;b=b+4|0;if((y|0)!=(b|0)){continue}break}b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(!v){break T}while(1){b=I[a|0]|b<<8;a=a+1|0;g=g+1|0;if((v|0)!=(g|0)){continue}break}break T}a=Re(a,b,k);a=a?a:163632;a=I[a|0]|I[a+1|0]<<8;b=a<<8|a>>>8}v=b&65535;a=I[f+24|0]|I[f+25|0]<<8|(I[f+26|0]<<16|I[f+27|0]<<24);a=f+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0;V:{if((I[a|0]|I[a+1|0]<<8)==2560){W:{b=I[a+4|0]|I[a+5|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0<=i>>>0){g=I[a+6|0]|I[a+7|0]<<8;k=(g<<8|g>>>8)&65535;g=i-b|0;if(k>>>0>g>>>0){break W}}a=J[81816];b=(a<<8|a>>>8)&65535;break V}b=I[a+2|0]|I[a+3|0]<<8;if(!b){b=0;break V}i=0;k=a;b=(b<<8|b>>>8)&65535;a=N(b,g);a=(a|0)<0?163632:(k+a|0)+8|0;b=b>>>0>1?b:1;d=b&3;if(b-1>>>0<3){b=0}else{k=b&65532;b=0;while(1){g=a;a=a+4|0;b=b+4|0;if((k|0)!=(b|0)){continue}break}b=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(!d){break V}while(1){b=I[a|0]|b<<8;a=a+1|0;i=i+1|0;if((d|0)!=(i|0)){continue}break}break V}a=Re(a,i,k);a=a?a:163632;a=I[a|0]|I[a+1|0]<<8;b=a<<8|a>>>8}g=0;y=H[n+24>>2];a=I[f+28|0]|I[f+29|0]<<8|(I[f+30|0]<<16|I[f+31|0]<<24);a=(f+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0)+(v+(b&65535)<<1)|0;if(y>>>0>a>>>0){break R}b=H[n+28>>2];if(b>>>0>>0|b-a>>>0<2){break R}k=H[n+32>>2]-2|0;H[n+32>>2]=k;if((k|0)<=0){break R}a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)<<16>>16;d=I[f+8|0]|I[f+9|0]<<8|(I[f+10|0]<<16|I[f+11|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(!d){break Q}if(d>>>0>2147483646){break R}x=a;a=I[f+32|0]|I[f+33|0]<<8|(I[f+34|0]<<16|I[f+35|0]<<24);i=x+(f+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0)|0;if(y>>>0>i>>>0|b>>>0>>0){break R}a=d<<1;if(a>>>0>b-i>>>0){break R}a=k-a|0;H[n+32>>2]=a;if((a|0)<=0){break R}}a=I[i|0]|I[i+1|0]<<8;g=(a<<8|a>>>8)<<16>>16}a=g}if(a){X:{if(!A){d=a<<16;f=d>>31;a=gma(H[o+40>>2],H[o+44>>2],d>>16,f)+32768|0;f=yb;f=a>>>0<32768?f+1|0:f;a=(f&65535)<<16|a>>>16;if(I[t+4|0]){H[(p+q|0)+12>>2]=a;H[l+144>>2]=H[l+144>>2]|8;break X}b=q+w|0;g=a>>1;H[b>>2]=g+H[b>>2];b=p+q|0;a=a-g|0;H[b>>2]=a+H[b>>2];H[b+8>>2]=a+H[b+8>>2];break X}d=a<<16;f=d>>31;b=gma(H[o+48>>2],H[o+52>>2],d>>16,f)+32768|0;a=yb;a=b>>>0<32768?a+1|0:a;a=(a&65535)<<16|b>>>16;if(I[t+4|0]){H[(p+q|0)+8>>2]=a;H[l+144>>2]=H[l+144>>2]|8;break X}b=q+w|0;g=a>>1;H[b+4>>2]=g+H[b+4>>2];b=p+q|0;a=a-g|0;H[b+4>>2]=a+H[b+4>>2];H[b+12>>2]=a+H[b+12>>2]}ag(l,e,B+1|0)}e=H[u>>2];break O}e=e+1|0}if(j>>>0>e>>>0){continue}break}}Ac(l,o,106229,0)}xb=s+160|0}xb=m+80|0;return h|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,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;f=xb-784|0;xb=f;H[f+700>>2]=0;e=H[a+20>>2];H[a+16>>2]=e;a:{if(!e){break a}b:{d=J[a+32>>1];if(!d){break b}c=H[a+24>>2];if(!c){break b}while(1){if((e|0)!=H[c+(b<<2)>>2]){b=b+1|0;if((d|0)!=(b|0)){continue}break b}break}break a}b=d+1|0;G[a+32>>1]=b;b=b&65535;c:{if((b|0)<=H[a+28>>2]){m=H[a+24>>2];break c}m=HB(a,H[a+24>>2],b,8,282883);if(!m){break a}H[a+24>>2]=m;b=J[a+32>>1];H[a+28>>2]=b<<1}H[((b<<2)+m|0)-4>>2]=e;zb[H[a+572>>2]](a);G[a+476>>1]=J[a+476>>1]+1;h=xb-80|0;xb=h;H[a+16>>2]=H[a+20>>2];l=a+20|0;if(l){H[l>>2]=0}d:{e:{f:{if(!(I[a+13|0]&8)){c=0;if((zb[H[a+640>>2]](H[a+628>>2],H[a+16>>2],0)|0)!=H[a+16>>2]){b=H[a+628>>2];H[h+32>>2]=H[a>>2];Pb(b,291424,287237,h+32|0);break d}if((zb[H[a+632>>2]](H[a+628>>2],h+78|0,2)|0)!=2){b=H[a+628>>2];H[h+16>>2]=H[a>>2];Pb(b,291424,287369,h+16|0);break d}if(I[a+12|0]&128){b=I[h+79|0];F[h+79|0]=I[h+78|0];F[h+78|0]=b}e=Md(a,J[h+78>>1],12,287543);if(!e){break d}if((zb[H[a+632>>2]](H[a+628>>2],e,N(J[h+78>>1],12))|0)!=(N(J[h+78>>1],12)|0)){b=H[a+628>>2];H[h>>2]=H[a>>2];Pb(b,291424,287684,h);Kb(e);break d}if(!l){break e}zb[H[a+632>>2]](H[a+628>>2],l,4)|0;break f}g:{b=H[a+616>>2];if(b>>>0>=2){d=H[a+16>>2];if(d>>>0<=b-2>>>0){break g}}b=H[a+628>>2];H[h+48>>2]=H[a>>2];Pb(b,291424,287369,h+48|0);c=0;break d}Kc(h+78|0,d+H[a+612>>2]|0,2);if(I[a+12|0]&128){b=I[h+79|0];F[h+79|0]=I[h+78|0];F[h+78|0]=b}c=0;e=Md(a,J[h+78>>1],12,287543);if(!e){break d}b=N(J[h+78>>1],12);d=d+2|0;if(K[a+616>>2]>>0){b=H[a+628>>2];H[h+64>>2]=H[a>>2];Pb(b,291424,287793,h- -64|0);Kb(e);break d}Kc(e,d+H[a+612>>2]|0,b);if(!l){break e}b=d+N(J[h+78>>1],12)|0;if(K[a+616>>2]>>0){break f}Kc(l,b+H[a+612>>2]|0,4)}if(!(I[a+12|0]&128)){break e}Hh(l)}H[f+700>>2]=e;c=J[h+78>>1]}xb=h+80|0;q=c;if(!c){c=H[a+628>>2];b=H[a>>2];H[f+4>>2]=H[a+20>>2];H[f>>2]=b;Pb(c,273840,270253,f);break a}H[a+12>>2]=H[a+12>>2]&-65;yq(a);an(a);H[f+688>>2]=1;rc(a,284,f+688|0);h=q;e=h;l=H[f+700>>2];b=l;h:{while(1){if(I[a+12|0]&128){yj(b,2);Gh(b+4|0,2)}if(J[b>>1]==277){if(!_m(a,b)){break h}G[b>>1]=0}b=b+12|0;c=(e|0)>1;e=e-1|0;if(c){continue}break}b=h;g=l;d=0;while(1){n=b;c=J[g>>1];i:{if(!c){break i}e=H[a+660>>2];b=e>>>0>d>>>0?d:0;if(c>>>0>2]+(b<<2)>>2]>>2]){b=0;if(!r){c=H[a+628>>2];H[f+672>>2]=H[a>>2];sc(c,273840,271195,f+672|0);e=H[a+660>>2]}r=1}j:{if(b>>>0>=e>>>0){break j}c=J[g>>1];k=H[a+656>>2];k:{while(1){m=H[k+(b<<2)>>2];d=H[m>>2];if(d>>>0>=c>>>0){break k}b=b+1|0;if((e|0)!=(b|0)){continue}break}d=e;j=1;break i}if((c|0)!=(d|0)){break j}if(!J[m+12>>1]){d=b;G[g>>1]=0;break i}d=b+1|0;i=d>>>0>>0?e:d;o=i-1|0;p=J[g+2>>1];l:{while(1){d=b;b=H[m+8>>2];if((p|0)==(b&65535)|d>>>0>=e>>>0|!b){break l}b=d+1|0;m:{if(e>>>0<=b>>>0){b=i;d=o;break m}m=H[k+(b<<2)>>2];if(H[m>>2]==(c|0)){continue}}break}e=H[a+628>>2];c=H[a>>2];H[f+664>>2]=H[H[k+(d<<2)>>2]+16>>2];H[f+660>>2]=p;H[f+656>>2]=c;sc(e,273840,272020,f+656|0);d=b;G[g>>1]=0;break i}e=J[m+4>>1];b=e<<16>>16;n:{o:{p:{switch(e-65533|0){case 1:b=J[a+98>>1];break;case 0:case 2:break o;default:break p}}e=H[g+4>>2];if(e>>>0>>0){break n}if(b>>>0>=e>>>0){break o}i=H[a+628>>2];o=H[a>>2];e=H[rd(a,c)+16>>2];c=H[g+4>>2];H[f+648>>2]=b;H[f+644>>2]=c;H[f+640>>2]=e;sc(i,o,283317,f+640|0);c=J[g>>1]}q:{r:{s:{t:{u:{b=c&65535;switch(b-256|0){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:case 21:case 24:case 25:case 26:case 27:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:break i;case 17:case 23:case 68:case 69:break r;case 3:break s;case 0:case 1:case 22:case 28:case 66:case 67:case 82:break t;default:break u}}if(b-32997>>>0>=2){break i}}if(!_m(a,g)){break h}break q}if(H[g+4>>2]==1){b=H[g+8>>2];v:{if(J[a+456>>1]==19789){c=J[g+2>>1]<<2;e=c+H[a+468>>2]|0;b=b>>>H[c+H[a+464>>2]>>2]|0;break v}e=H[a+468>>2]+(J[g+2>>1]<<2)|0}b=H[e>>2]&b;H[f+692>>2]=b;H[f+592>>2]=b&65535;if(rc(a,259,f+592|0)){break i}break h}if(J[g+2>>1]==4){if(!sB(a,g,f+692|0)){break h}b=J[g>>1];H[f+608>>2]=J[f+692>>1];if(rc(a,b,f+608|0)){break q}break h}if(!rB(a,g,f+698|0)){break h}b=J[g>>1];H[f+624>>2]=J[f+698>>1];if(rc(a,b,f+624|0)){break q}break h}c=J[m+12>>1];b=(c>>>3&8188)+a|0;H[b+40>>2]=H[b+40>>2]|1<>1]=0;break i}i=H[a+628>>2];o=H[a>>2];e=H[rd(a,c)+16>>2];c=H[g+4>>2];H[f+584>>2]=b;H[f+580>>2]=c;H[f+576>>2]=e;sc(i,o,283105,f+576|0);G[g>>1]=0;break i}d=b;j=1}g=g+12|0;b=n-1|0;if((n|0)>1){continue}break}if(j){b=0;e=h;g=l;while(1){o=e;i=J[g>>1];w:{if(!i){break w}e=H[a+660>>2];b=e>>>0>b>>>0&i>>>0>=K[H[H[a+656>>2]+(b<<2)>>2]>>2]?b:0;x:{y:{z:{if(b>>>0>=e>>>0){break z}m=H[a+656>>2];A:{while(1){c=H[H[(b<<2)+m>>2]>>2];if(c>>>0>=i>>>0){break A}b=b+1|0;if((e|0)!=(b|0)){continue}break}b=e;break z}if((c|0)==(i|0)){break y}}d=H[a+628>>2];c=H[a>>2];H[f+568>>2]=i;H[f+564>>2]=i;H[f+560>>2]=c;sc(d,273840,272600,f+560|0);i=J[g>>1];e=J[g+2>>1];c=0;n=xb-16|0;xb=n;d=Tb(20);B:{if(!d){break B}Id(d,0,20);H[d+12>>2]=16842817;H[d+8>>2]=e;H[d+4>>2]=-131075;H[d>>2]=i;e=Tb(32);H[d+16>>2]=e;if(!e){Kb(d);break B}H[n>>2]=i;Ad(e,278738,n);c=d}xb=n+16|0;C:{if(og(a,c,1)){m=H[a+656>>2];e=H[a+660>>2];if(e){break C}e=0;b=0;break y}d=H[a+628>>2];c=J[g>>1];H[f+532>>2]=c;H[f+528>>2]=c;sc(d,273840,273177,f+528|0);break x}c=J[g>>1];b=0;while(1){if(c>>>0<=K[H[(b<<2)+m>>2]>>2]){break y}b=b+1|0;if((e|0)!=(b|0)){continue}break}b=e}d=H[(b<<2)+m>>2];i=J[g+2>>1];while(1){c=b;b=H[d+8>>2];if((i|0)==(b&65535)){b=c;break w}if(c>>>0>=e>>>0){b=c;break w}if(!b){b=c;break w}b=c+1|0;if(e>>>0>b>>>0){d=H[(b<<2)+m>>2];if(H[d>>2]==J[g>>1]){continue}}break}e=H[a+628>>2];d=H[a>>2];H[f+552>>2]=H[H[(c<<2)+m>>2]+16>>2];H[f+548>>2]=i;H[f+544>>2]=d;sc(e,273840,272020,f+544|0)}G[g>>1]=0}g=g+12|0;e=o-1|0;if((o|0)>1){continue}break}}D:{if(J[a+88>>1]!=6|J[a+138>>1]!=2){break D}e=0;b=l;while(1){if(J[b>>1]!=273){b=b+12|0;e=e+1|0;if(q>>>0>(e&65535)>>>0){continue}break D}break}if(H[b+4>>2]!=1){break D}e=0;b=l;while(1){if(J[b>>1]!=279){b=b+12|0;e=e+1|0;if(q>>>0>(e&65535)>>>0){continue}break D}break}if(H[b+4>>2]!=1){break D}G[a+138>>1]=1;sc(H[a+628>>2],273840,273858,0)}b=H[a+40>>2];if(!(b&2)){b=H[a+628>>2];a=H[a>>2];H[f+20>>2]=274561;H[f+16>>2]=a;Pb(b,291408,282760,f+16|0);break h}E:{if(!(b&4)){b=DB(a);H[a+68>>2]=H[a+56>>2];H[a+72>>2]=H[a+100>>2];H[a+76>>2]=H[a- -64>>2];c=H[a+12>>2]&-1025;break E}b=AB(a);c=H[a+12>>2]|1024}H[a+12>>2]=c;H[a+180>>2]=b;if(!b){b=H[a+628>>2];a=H[a>>2];H[f+36>>2]=c&1024?275762:276320;H[f+32>>2]=a;Pb(b,273840,275256,f+32|0);break h}H[a+176>>2]=b;if(J[a+138>>1]==2){H[a+176>>2]=(b>>>0)/J[a+98>>1]}F:{G:{d=H[a+40>>2];if(!(d&33554432)){c=c&1024;if(c|J[a+88>>1]!=6|(b|0)!=1){break G}H[a+40>>2]=d|33554432}n=a+184|0;p=a+188|0;e=l;H:{while(1){o=h;I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{j=J[e>>1];T:{if(j>>>0<=529){switch(j-255|0){case 1:case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 19:case 20:case 21:case 22:case 23:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 67:case 68:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 82:case 83:break K;case 0:break M;case 42:case 66:case 81:break O;case 46:case 65:break P;case 24:case 70:break Q;case 18:case 69:break R;case 85:case 86:break S;case 3:case 25:case 26:case 84:break T;default:break L}}U:{switch(j-530|0){case 1:break K;case 2:break N;case 0:break O;default:break U}}if((j|0)!=32996){break K}}if(H[e+4>>2]==1){c=H[e+8>>2];V:{if(J[a+456>>1]==19789){b=J[e+2>>1]<<2;g=b+H[a+468>>2]|0;c=c>>>H[b+H[a+464>>2]>>2]|0;break V}g=H[a+468>>2]+(J[e+2>>1]<<2)|0}b=H[g>>2]&c;H[f+692>>2]=b;H[f+256>>2]=b&65535;if(rc(a,j,f+256|0)){break I}break h}if(!((j|0)!=258|J[e+2>>1]!=4)){if(!sB(a,e,f+692|0)){break h}b=J[e>>1];H[f+272>>2]=J[f+692>>1];if(rc(a,b,f+272|0)){break I}break h}if(!rB(a,e,f+698|0)){break h}b=J[e>>1];H[f+288>>2]=J[f+698>>1];if(rc(a,b,f+288|0)){break I}break h}c=H[e+4>>2];k=J[a+98>>1];if(c>>>0>>0){break H}if(c>>>0>k>>>0){h=H[a+628>>2];d=H[a>>2];c=H[rd(a,j)+16>>2];b=H[e+4>>2];H[f+376>>2]=k;H[f+372>>2]=b;H[f+368>>2]=c;sc(h,d,283317,f+368|0);c=H[e+4>>2]}b=f+704|0;if(c>>>0>=11){b=Md(a,c,8,288229);if(!b){break h}}W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{c=J[e+2>>1];switch(c-1|0){case 11:break Z;case 10:break $;case 4:case 9:break aa;case 3:case 8:break ba;case 2:case 7:break ca;case 0:case 5:break da;default:break _}}if(!vq(a,e,b)){break X}h=H[e+4>>2];d=h-1|0;if(J[e+2>>1]==1){if((d|0)<0){break Y}g=0;c=d;i=h&3;if(i){while(1){M[(c<<3)+b>>3]=I[b+c|0];c=c-1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}if(d>>>0<3){break Y}while(1){M[(c<<3)+b>>3]=I[b+c|0];d=c-1|0;M[(d<<3)+b>>3]=I[b+d|0];d=c-2|0;M[(d<<3)+b>>3]=I[b+d|0];d=c-3|0;M[(d<<3)+b>>3]=I[b+d|0];c=c-4|0;if(d){continue}break}break Y}if((d|0)<0){break Y}g=0;c=d;i=h&3;if(i){while(1){M[(c<<3)+b>>3]=F[b+c|0];c=c-1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}if(d>>>0<3){break Y}while(1){M[(c<<3)+b>>3]=F[b+c|0];d=c-1|0;M[(d<<3)+b>>3]=F[b+d|0];d=c-2|0;M[(d<<3)+b>>3]=F[b+d|0];d=c-3|0;M[(d<<3)+b>>3]=F[b+d|0];c=c-4|0;if(d){continue}break}break Y}ea:{fa:{ga:{c=H[e+4>>2];if(c>>>0<=2){if(J[a+456>>1]==19789){h=0;ha:{switch(c-1|0){case 0:g=H[e+8>>2]>>>16|0;break fa;case 1:break ha;default:break ea}}d=H[e+8>>2];G[b+2>>1]=d;g=d>>>16|0;break fa}h=0;ia:{switch(c-1|0){case 0:break ga;case 1:break ia;default:break ea}}g=H[e+8>>2];G[b+2>>1]=g>>>16;break fa}if(!re(a,e,b)){break X}h=H[e+4>>2];break ea}g=H[e+8>>2]}G[b>>1]=g;h=c}d=h-1|0;if(J[e+2>>1]==3){if((d|0)<0){break Y}g=0;c=d;i=h&3;if(i){while(1){M[(c<<3)+b>>3]=J[(c<<1)+b>>1];c=c-1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}if(d>>>0<3){break Y}while(1){M[(c<<3)+b>>3]=J[(c<<1)+b>>1];d=c-1|0;M[(d<<3)+b>>3]=J[(d<<1)+b>>1];d=c-2|0;M[(d<<3)+b>>3]=J[(d<<1)+b>>1];d=c-3|0;M[(d<<3)+b>>3]=J[(d<<1)+b>>1];c=c-4|0;if(d){continue}break}break Y}if((d|0)<0){break Y}g=0;c=d;i=h&3;if(i){while(1){M[(c<<3)+b>>3]=G[(c<<1)+b>>1];c=c-1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}if(d>>>0<3){break Y}while(1){M[(c<<3)+b>>3]=G[(c<<1)+b>>1];d=c-1|0;M[(d<<3)+b>>3]=G[(d<<1)+b>>1];d=c-2|0;M[(d<<3)+b>>3]=G[(d<<1)+b>>1];d=c-3|0;M[(d<<3)+b>>3]=G[(d<<1)+b>>1];c=c-4|0;if(d){continue}break}break Y}ja:{if(H[e+4>>2]==1){H[b>>2]=H[e+8>>2];break ja}if(!re(a,e,b)){break X}c=J[e+2>>1]}h=H[e+4>>2];d=h-1|0;if((c&65535)==4){if((d|0)<0){break Y}g=0;c=d;i=h&3;if(i){while(1){M[(c<<3)+b>>3]=K[(c<<2)+b>>2];c=c-1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}if(d>>>0<3){break Y}while(1){M[(c<<3)+b>>3]=K[(c<<2)+b>>2];d=c-1|0;M[(d<<3)+b>>3]=K[(d<<2)+b>>2];d=c-2|0;M[(d<<3)+b>>3]=K[(d<<2)+b>>2];d=c-3|0;M[(d<<3)+b>>3]=K[(d<<2)+b>>2];c=c-4|0;if(d){continue}break}break Y}if((d|0)<0){break Y}g=0;c=d;i=h&3;if(i){while(1){M[(c<<3)+b>>3]=H[(c<<2)+b>>2];c=c-1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}if(d>>>0<3){break Y}while(1){M[(c<<3)+b>>3]=H[(c<<2)+b>>2];d=c-1|0;M[(d<<3)+b>>3]=H[(d<<2)+b>>2];d=c-2|0;M[(d<<3)+b>>3]=H[(d<<2)+b>>2];d=c-3|0;M[(d<<3)+b>>3]=H[(d<<2)+b>>2];c=c-4|0;if(d){continue}break}break Y}if(!qB(a,e,b)){break X}h=H[e+4>>2];d=h-1|0;if((d|0)<0){break Y}g=0;c=d;i=h&3;if(i){while(1){M[(c<<3)+b>>3]=L[(c<<2)+b>>2];c=c-1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}if(d>>>0<3){break Y}while(1){M[(c<<3)+b>>3]=L[(c<<2)+b>>2];d=c-1|0;M[(d<<3)+b>>3]=L[(d<<2)+b>>2];d=c-2|0;M[(d<<3)+b>>3]=L[(d<<2)+b>>2];d=c-3|0;M[(d<<3)+b>>3]=L[(d<<2)+b>>2];c=c-4|0;if(d){continue}break}break Y}ka:{if(H[e+4>>2]==1){L[b>>2]=L[e+8>>2];j=0;h=1;break ka}if(!re(a,e,b)){break X}h=H[e+4>>2];j=h-1|0;if((j|0)<0){break Y}}g=0;c=j;d=c+1&3;if(d){while(1){M[(c<<3)+b>>3]=L[(c<<2)+b>>2];c=c-1|0;g=g+1|0;if((d|0)!=(g|0)){continue}break}}if(j>>>0<3){break Y}while(1){M[(c<<3)+b>>3]=L[(c<<2)+b>>2];d=c-1|0;M[(d<<3)+b>>3]=L[(d<<2)+b>>2];d=c-2|0;M[(d<<3)+b>>3]=L[(d<<2)+b>>2];d=c-3|0;M[(d<<3)+b>>3]=L[(d<<2)+b>>2];c=c-4|0;if(d){continue}break}break Y}h=H[a+628>>2];d=H[a>>2];t=f,u=H[rd(a,J[e>>1])+16>>2],H[t+340>>2]=u;H[f+336>>2]=c;Pb(h,d,288640,f+336|0);break X}if(!re(a,e,b)){break X}h=H[e+4>>2]}c=1;s=M[b>>3];r=0;g=1;d=(h|0)<(k|0)?h:k;if((d|0)<=1){break W}while(1){if(M[(c<<3)+b>>3]==s){g=g+1|0;c=g&65535;if((d|0)>(c|0)){continue}break W}break}d=H[a+628>>2];c=H[a>>2];t=f,u=H[rd(a,J[e>>1])+16>>2],H[t+352>>2]=u;Pb(d,c,288381,f+352|0)}r=1;s=0}if((f+704|0)!=(b|0)){Kb(b)}if(r){break h}b=J[e>>1];M[f+320>>3]=s;if(rc(a,b,f+320|0)){break I}break h}if(pB(a,e,H[a+180>>2],n)){break I}break h}if(pB(a,e,H[a+180>>2],p)){break I}break h}h=J[a+84>>1];b=1<>2]=b;c=H[e+4>>2];la:{if((j|0)!=320){d=b;if((c|0)==(b|0)){break la}}i=3<>>0>c>>>0){break J}d=c;if(i>>>0>=c>>>0){break la}g=H[a+628>>2];h=H[a>>2];d=H[rd(a,j)+16>>2];c=H[e+4>>2];H[f+424>>2]=i;H[f+420>>2]=c;H[f+416>>2]=d;sc(g,h,283317,f+416|0);d=H[e+4>>2]}c=b<<1;H[f+692>>2]=c;d=Md(a,d,2,278309);if(!d){break I}if(re(a,e,d)){if(H[e+4>>2]==1<>1]){H[f+692>>2]=0;c=0}b=J[e>>1];H[f+384>>2]=d;H[f+392>>2]=d+(c<<1);H[f+388>>2]=c+d;rc(a,b,f+384|0)}Kb(d);break I}b=H[e+4>>2];if(b>>>0>=3){d=H[a+628>>2];c=H[a>>2];b=H[rd(a,j)+16>>2];H[f+436>>2]=H[e+4>>2];H[f+432>>2]=b;sc(d,c,287978,f+432|0);break I}ma:{switch(J[e+2>>1]-1|0){case 0:case 5:if(!vq(a,e,f+704|0)){break I}b=J[e>>1];H[f+448>>2]=I[f+704|0];H[f+452>>2]=I[f+705|0];rc(a,b,f+448|0);break I;case 2:case 7:break ma;default:break I}}na:{if(J[a+456>>1]==19789){d=0;g=0;oa:{switch(b-1|0){case 0:g=H[e+8>>2]>>>16|0;break na;case 1:break oa;default:break na}}d=H[e+8>>2];g=d>>>16|0;break na}d=0;g=0;pa:{switch(b-1|0){case 0:g=J[e+8>>1];break na;case 1:break pa;default:break na}}g=H[e+8>>2];d=g>>>16|0}H[f+468>>2]=d&65535;H[f+464>>2]=g&65535;rc(a,j,f+464|0);break I}if(J[e+2>>1]==5){_m(a,e);break I}k=Md(a,H[e+4>>2],4,291488);if(!k){break I}qa:{ra:{if(H[e+4>>2]==1){H[k>>2]=H[e+8>>2];break ra}if(!re(a,e,k)){break qa}}j=Md(a,H[e+4>>2],4,291488);if(!j){break qa}g=H[e+4>>2];sa:{if(!g){break sa}h=0;b=0;if(g-1>>>0>=3){d=g&-4;r=0;while(1){i=b<<2;L[i+j>>2]=K[i+k>>2];c=i|4;L[c+j>>2]=K[c+k>>2];c=i|8;L[c+j>>2]=K[c+k>>2];c=i|12;L[c+j>>2]=K[c+k>>2];b=b+4|0;r=r+4|0;if((d|0)!=(r|0)){continue}break}}d=g&3;if(!d){break sa}while(1){c=b<<2;L[c+j>>2]=K[c+k>>2];b=b+1|0;h=h+1|0;if((d|0)!=(h|0)){continue}break}}b=J[e>>1];H[f+480>>2]=j;rc(a,b,f+480|0);Kb(j)}Kb(k);break I}H[f+692>>2]=0;b=H[e+8>>2];ta:{if(J[a+456>>1]==19789){c=J[e+2>>1]<<2;g=c+H[a+468>>2]|0;b=b>>>H[c+H[a+464>>2]>>2]|0;break ta}g=H[a+468>>2]+(J[e+2>>1]<<2)|0}c=1;ua:{switch((H[g>>2]&b)-2|0){case 1:c=2;break;case 0:break ua;default:break I}}H[f+496>>2]=c;H[f+692>>2]=c;rc(a,254,f+496|0);break I}if(!j){break I}}_m(a,e);break I}h=H[a+628>>2];d=H[a>>2];c=H[rd(a,j)+16>>2];b=H[e+4>>2];H[f+408>>2]=i;H[f+404>>2]=b;H[f+400>>2]=c;sc(h,d,283105,f+400|0)}e=e+12|0;h=o-1|0;if((o|0)>1){continue}break}va:{if(J[a+88>>1]!=6){break va}wa:{if(!(F[a+41|0]&1)){sc(H[a+628>>2],273840,278627,0);H[f+240>>2]=6;if(rc(a,262,f+240|0)){break wa}break h}if(J[a+90>>1]!=2){break wa}G[a+90>>1]=6;sc(H[a+628>>2],273840,279081,0)}b=H[a+40>>2];if(!(b&64)){sc(H[a+628>>2],273840,279393,0);H[f+224>>2]=8;if(!rc(a,258,f+224|0)){break h}b=H[a+40>>2]}if(b&65536){break va}xa:{switch(J[a+90>>1]){case 2:case 6:sc(H[a+628>>2],273840,279741,0);H[f+192>>2]=3;if(rc(a,277,f+192|0)){break va}break h;case 0:case 1:break xa;default:break va}}sc(H[a+628>>2],273840,280123,0);H[f+208>>2]=1;if(!rc(a,277,f+208|0)){break h}}if(!(I[a+43|0]&4|J[a+90>>1]!=3)){b=H[a+628>>2];a=H[a>>2];H[f+52>>2]=280335;H[f+48>>2]=a;Pb(b,291408,282760,f+48|0);break h}c=J[a+88>>1];ya:{if((c|0)==6){break ya}if(!(F[a+43|0]&1)){za:{Aa:{switch(J[a+138>>1]-1|0){case 1:if(H[a+180>>2]==J[a+98>>1]){break za}break F;case 0:break Aa;default:break za}}if(K[a+180>>2]>1){break F}}c=H[a+628>>2];b=H[a>>2];t=f,u=H[rd(a,279)+16>>2],H[t+132>>2]=u;H[f+128>>2]=b;sc(c,273840,280773,f+128|0);if((uq(a,l,q)|0)>=0){break ya}break h}Ba:{if(!H[H[n>>2]>>2]|H[a+180>>2]!=1){break Ba}b=H[H[p>>2]>>2];Ca:{if(!b){break Ca}if((c|0)==1){if(b>>>0>(zb[H[a+648>>2]](H[a+628>>2])|0)-H[H[a+184>>2]>>2]>>>0){break Ca}}if(H[a+8>>2]|J[a+88>>1]!=1){break Ba}if(K[H[a+188>>2]>>2]>=N(Ve(a),H[a+60>>2])>>>0){break Ba}}c=H[a+628>>2];b=H[a>>2];t=f,u=H[rd(a,279)+16>>2],H[t+180>>2]=u;H[f+176>>2]=b;sc(c,273840,281002,f+176|0);if((uq(a,l,q)|0)>=0){break ya}break h}if(J[a+138>>1]!=1|K[a+180>>2]<3|J[a+88>>1]!=1){break ya}b=H[p>>2];c=H[b+4>>2];if(!c){break ya}b=H[b>>2];if(!b|(b|0)==(c|0)){break ya}c=H[a+628>>2];b=H[a>>2];t=f,u=H[rd(a,279)+16>>2],H[t+164>>2]=u;H[f+160>>2]=b;sc(c,273840,281353,f+160|0);if((uq(a,l,q)|0)<0){break h}}if(l){Kb(l);H[f+700>>2]=0}h=H[a+40>>2];if(!(h&524288)){G[a+106>>1]=-1<>1]^-1}d=H[a+180>>2];Da:{if(d>>>0<2){break Da}H[a+192>>2]=1;l=H[a+184>>2];e=H[l>>2];b=1;while(1){c=e;e=H[l+(b<<2)>>2];if(c>>>0<=e>>>0){b=b+1|0;if((d|0)!=(b|0)){continue}break Da}break}H[a+192>>2]=0}if(!(h&128)){H[f+112>>2]=1;rc(a,259,f+112|0);d=H[a+180>>2]}if(!((d|0)!=1|J[a+88>>1]!=1|(H[a+12>>2]&33792)!=32768)){i=0;l=0;q=xb-16|0;xb=q;o=H[H[a+184>>2]>>2];e=H[H[a+188>>2]>>2];h=1;k=zB(a,1);Ea:{if((k|0)<=8192){if((k|0)<=0){break Ea}h=8192/((k&65535)>>>0)|0;k=N(k,h)}if(K[a+100>>2]<=h>>>0|0-k>>>0<=e>>>0){break Ea}b=e-1|0;c=b+k|0;if(b>>>0>c>>>0){break Ea}n=(c>>>0)/(k>>>0)|0;p=Md(a,n,4,289037);j=Md(a,n,4,289108);if(!(!p|!j)){b=n>>>0>1?n:1;d=b&1;if(n>>>0>=2){c=b&-2;while(1){b=i<<2;g=e>>>0>k>>>0?k:e;H[b+p>>2]=g;H[b+j>>2]=o;b=b|4;e=e-g|0;k=e>>>0>g>>>0?g:e;H[b+p>>2]=k;r=b+j|0;b=g+o|0;H[r>>2]=b;e=e-k|0;o=b+k|0;i=i+2|0;l=l+2|0;if((c|0)!=(l|0)){continue}break}}if(d){b=i<<2;H[b+p>>2]=e>>>0>k>>>0?k:e;H[b+j>>2]=o}H[a+176>>2]=n;H[a+180>>2]=n;H[q>>2]=h;rc(a,278,q);Kb(H[a+188>>2]);Kb(H[a+184>>2]);H[a+192>>2]=1;H[a+184>>2]=j;H[a+188>>2]=p;break Ea}if(p){Kb(p)}if(!j){break Ea}Kb(j)}xb=q+16|0}H[a+508>>2]=-1;H[a+500>>2]=-1;H[a+504>>2]=-1;H[a+480>>2]=-1;H[a+472>>2]=-1;b=Ve(a);H[a+588>>2]=b;if(!b){b=H[a+628>>2];H[f+64>>2]=H[a>>2];Pb(b,273840,281568,f- -64|0);g=0;break a}if(I[a+13|0]&4){b=pg(a);H[a+508>>2]=b;g=1;if(b){break a}b=H[a+628>>2];H[f+96>>2]=H[a>>2];Pb(b,273840,281929,f+96|0);g=0;break a}g=1;if(Cj(a)){break a}b=H[a+628>>2];H[f+80>>2]=H[a>>2];Pb(b,273840,282036,f+80|0);g=0;break a}d=H[a+628>>2];c=H[a>>2];b=H[rd(a,j)+16>>2];a=H[e+4>>2];H[f+312>>2]=k;H[f+308>>2]=a;H[f+304>>2]=b;sc(d,c,283105,f+304|0);break h}b=H[a+628>>2];a=H[a>>2];H[f+516>>2]=c?276868:277388;H[f+512>>2]=a;Pb(b,291408,282760,f+512|0);break h}b=H[a+628>>2];a=H[a>>2];H[f+148>>2]=280612;H[f+144>>2]=a;Pb(b,291408,282760,f+144|0)}g=0;if(!l){break a}Kb(l)}xb=f+784|0;return g}function vi(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;e=xb-304|0;xb=e;a:{f=H[b+80>>2];if(!f){H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;break a}b:{c:{if(!c){c=Oe(f,415316,417912,-1);if(!c){H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;break a}c=H[c+156>>2];if(!c){break c}}p=H[c+4>>2];y=H[c+8>>2];if((p|0)!=(y|0)){break b}}H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;break a}H[e+296>>2]=0;H[e+288>>2]=0;H[e+292>>2]=0;H[e+280>>2]=0;H[e+272>>2]=0;H[e+276>>2]=0;d:{if(!d){m=1;n=1;o=0;break d}q=M[d+32>>3];n=M[d+24>>3];r=M[d+16>>3];s=M[d+8>>3];m=M[d>>3];o=M[d+40>>3]}k=e+272|4;c=e+16|4;d=0;e:{f:{while(1){f=H[p>>2];g=H[H[f>>2]+8>>2];H[197455]=0;g=aa(g|0,f|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break f}g:{if((g|0)==1){break g}h=I[e+283|0];g=h<<24>>24<0;h=g?H[e+276>>2]:h;if(!h){break g}H[197455]=0;ca(1759,e+288|0,(g?H[e+272>>2]:e+272|0)|0,h|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break f}if(F[e+283|0]<0){H[H[e+272>>2]>>2]=0;H[e+276>>2]=0;break g}F[e+283|0]=0;H[e+272>>2]=0}g=H[H[f>>2]+8>>2];H[197455]=0;g=aa(g|0,f|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break f}h:{i:{switch(g-1|0){case 0:i=M[f+8>>3];j=M[f+16>>3];H[197455]=0;fa(1756,e+240|0,+(q+(i*m+r*j)),-1);d=H[197455];H[197455]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{if((d|0)!=1){H[197455]=0;d=ca(1758,e+240|0,0,405252)|0;f=H[197455];H[197455]=0;if((f|0)==1){break r}H[e+264>>2]=H[d+8>>2];f=H[d+4>>2];H[e+256>>2]=H[d>>2];H[e+260>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+256|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break q}H[e+8>>2]=H[e+264>>2];H[e+264>>2]=0;d=H[e+260>>2];H[e>>2]=H[e+256>>2];H[e+4>>2]=d;H[e+256>>2]=0;H[e+260>>2]=0;H[197455]=0;fa(1756,e+224|0,+(o+(i*s+n*j)),-1);d=H[197455];H[197455]=0;if((d|0)==1){break p}H[197455]=0;d=I[e+235|0];f=d<<24>>24<0;d=ca(1759,e|0,(f?H[e+224>>2]:e+224|0)|0,(f?H[e+228>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break o}H[e+24>>2]=H[d+8>>2];f=H[d+4>>2];H[e+16>>2]=H[d>>2];H[e+20>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+16|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break n}d=I[c+3|0]|I[c+4|0]<<8|(I[c+5|0]<<16|I[c+6|0]<<24);g=H[c>>2];f=I[e+27|0];H[e+24>>2]=0;H[e+208>>2]=g;g=H[e+16>>2];H[e+16>>2]=0;H[e+20>>2]=0;F[e+211|0]=d;F[e+212|0]=d>>>8;F[e+213|0]=d>>>16;F[e+214|0]=d>>>24;s:{if(F[e+283|0]>=0){H[e+272>>2]=g;d=I[e+211|0]|I[e+212|0]<<8|(I[e+213|0]<<16|I[e+214|0]<<24);F[k+3|0]=d;F[k+4|0]=d>>>8;F[k+5|0]=d>>>16;F[k+6|0]=d>>>24;H[k>>2]=H[e+208>>2];F[e+283|0]=f;break s}Kb(H[e+272>>2]);H[e+272>>2]=g;g=F[e+27|0];d=I[e+211|0]|I[e+212|0]<<8|(I[e+213|0]<<16|I[e+214|0]<<24);F[k+3|0]=d;F[k+4|0]=d>>>8;F[k+5|0]=d>>>16;F[k+6|0]=d>>>24;H[k>>2]=H[e+208>>2];F[e+283|0]=f;if((g|0)>=0){break s}Kb(H[e+16>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+11|0]<0){Kb(H[e>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}d=1;break h}c=$()|0;_()|0;break e}c=$()|0;_()|0;break j}c=$()|0;_()|0;break k}c=$()|0;_()|0;break l}c=$()|0;_()|0;break m}c=$()|0;_()|0;if(F[e+27|0]>=0){break m}Kb(H[e+16>>2])}if(F[e+235|0]>=0){break l}Kb(H[e+224>>2])}if(F[e+11|0]>=0){break k}Kb(H[e>>2])}if(F[e+267|0]>=0){break j}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break e}Kb(H[e+240>>2]);break e;case 1:i=M[f+16>>3];j=M[f+8>>3];t:{if((d|0)==2){break t}H[197455]=0;da(1699,e+288|0,411076)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break t}c=$()|0;_()|0;break e}H[197455]=0;fa(1756,e+240|0,+(q+(j*m+r*i)),-1);d=H[197455];H[197455]=0;u:{v:{w:{x:{y:{z:{A:{B:{C:{if((d|0)!=1){H[197455]=0;ba(1650,e+240|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break C}H[e+264>>2]=H[e+248>>2];H[e+248>>2]=0;d=H[e+244>>2];H[e+256>>2]=H[e+240>>2];H[e+260>>2]=d;H[e+240>>2]=0;H[e+244>>2]=0;H[197455]=0;fa(1756,e+224|0,+(o+(j*s+n*i)),-1);d=H[197455];H[197455]=0;if((d|0)==1){break B}H[197455]=0;d=I[e+235|0];f=d<<24>>24<0;d=ca(1759,e+256|0,(f?H[e+224>>2]:e+224|0)|0,(f?H[e+228>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break A}H[e+8>>2]=H[d+8>>2];f=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break z}H[e+24>>2]=H[e+8>>2];H[e+8>>2]=0;d=H[e+4>>2];f=H[e>>2];H[e+16>>2]=f;H[e+20>>2]=d;H[e>>2]=0;H[e+4>>2]=0;H[197455]=0;h=f;d=F[e+27|0];f=(d|0)<0;ca(1759,e+288|0,(f?h:e+16|0)|0,(f?H[e+20>>2]:d&255)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break y}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+11|0]<0){Kb(H[e>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}d=2;break h}c=$()|0;_()|0;break e}c=$()|0;_()|0;break u}c=$()|0;_()|0;break v}c=$()|0;_()|0;break w}c=$()|0;_()|0;break x}c=$()|0;_()|0;if(F[e+27|0]>=0){break x}Kb(H[e+16>>2])}if(F[e+11|0]>=0){break w}Kb(H[e>>2])}if(F[e+235|0]>=0){break v}Kb(H[e+224>>2])}if(F[e+267|0]>=0){break u}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break e}Kb(H[e+240>>2]);break e;case 2:D:{if((d|0)==3){break D}H[197455]=0;da(1699,e+288|0,415324)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break D}c=$()|0;_()|0;break e}i=M[f+24>>3];j=M[f+32>>3];t=M[f+40>>3];l=M[f+48>>3];u=M[f+8>>3];v=M[f+16>>3];H[197455]=0;fa(1756,e+112|0,+(q+(u*m+r*v)),-1);d=H[197455];H[197455]=0;E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{if((d|0)!=1){H[197455]=0;ba(1650,e+112|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break ia}H[e+136>>2]=H[e+120>>2];H[e+120>>2]=0;d=H[e+116>>2];H[e+128>>2]=H[e+112>>2];H[e+132>>2]=d;H[e+112>>2]=0;H[e+116>>2]=0;H[197455]=0;fa(1756,e+96|0,+(o+(u*s+n*v)),-1);d=H[197455];H[197455]=0;if((d|0)==1){break ha}H[197455]=0;d=I[e+107|0];f=d<<24>>24<0;d=ca(1759,e+128|0,(f?H[e+96>>2]:e+96|0)|0,(f?H[e+100>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ga}H[e+152>>2]=H[d+8>>2];f=H[d+4>>2];H[e+144>>2]=H[d>>2];H[e+148>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+144|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break fa}H[e+168>>2]=H[e+152>>2];H[e+152>>2]=0;d=H[e+148>>2];H[e+160>>2]=H[e+144>>2];H[e+164>>2]=d;H[e+144>>2]=0;H[e+148>>2]=0;H[197455]=0;fa(1756,e+80|0,+(q+(i*m+r*j)),-1);d=H[197455];H[197455]=0;if((d|0)==1){break ea}H[197455]=0;d=I[e+91|0];f=d<<24>>24<0;d=ca(1759,e+160|0,(f?H[e+80>>2]:e+80|0)|0,(f?H[e+84>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break da}H[e+184>>2]=H[d+8>>2];f=H[d+4>>2];H[e+176>>2]=H[d>>2];H[e+180>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+176|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break ca}H[e+200>>2]=H[e+184>>2];H[e+184>>2]=0;d=H[e+180>>2];H[e+192>>2]=H[e+176>>2];H[e+196>>2]=d;H[e+176>>2]=0;H[e+180>>2]=0;H[197455]=0;fa(1756,e- -64|0,+(o+(i*s+n*j)),-1);d=H[197455];H[197455]=0;if((d|0)==1){break ba}H[197455]=0;d=I[e+75|0];f=d<<24>>24<0;d=ca(1759,e+192|0,(f?H[e+64>>2]:e- -64|0)|0,(f?H[e+68>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break aa}H[e+216>>2]=H[d+8>>2];f=H[d+4>>2];H[e+208>>2]=H[d>>2];H[e+212>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+208|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break $}H[e+232>>2]=H[e+216>>2];H[e+216>>2]=0;d=H[e+212>>2];H[e+224>>2]=H[e+208>>2];H[e+228>>2]=d;H[e+208>>2]=0;H[e+212>>2]=0;H[197455]=0;fa(1756,e+48|0,+(q+(t*m+r*l)),-1);d=H[197455];H[197455]=0;if((d|0)==1){break _}H[197455]=0;d=I[e+59|0];f=d<<24>>24<0;d=ca(1759,e+224|0,(f?H[e+48>>2]:e+48|0)|0,(f?H[e+52>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Z}H[e+248>>2]=H[d+8>>2];f=H[d+4>>2];H[e+240>>2]=H[d>>2];H[e+244>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+240|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break Y}H[e+264>>2]=H[e+248>>2];H[e+248>>2]=0;d=H[e+244>>2];H[e+256>>2]=H[e+240>>2];H[e+260>>2]=d;H[e+240>>2]=0;H[e+244>>2]=0;H[197455]=0;fa(1756,e+32|0,+(o+(t*s+n*l)),-1);d=H[197455];H[197455]=0;if((d|0)==1){break X}H[197455]=0;d=I[e+43|0];f=d<<24>>24<0;d=ca(1759,e+256|0,(f?H[e+32>>2]:e+32|0)|0,(f?H[e+36>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break W}H[e+8>>2]=H[d+8>>2];f=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break V}H[e+24>>2]=H[e+8>>2];H[e+8>>2]=0;d=H[e+4>>2];f=H[e>>2];H[e+16>>2]=f;H[e+20>>2]=d;H[e>>2]=0;H[e+4>>2]=0;H[197455]=0;h=f;d=F[e+27|0];f=(d|0)<0;ca(1759,e+288|0,(f?h:e+16|0)|0,(f?H[e+20>>2]:d&255)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break U}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+11|0]<0){Kb(H[e>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+59|0]<0){Kb(H[e+48>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}d=3;break h}c=$()|0;_()|0;break e}c=$()|0;_()|0;break E}c=$()|0;_()|0;break F}c=$()|0;_()|0;break G}c=$()|0;_()|0;break H}c=$()|0;_()|0;break I}c=$()|0;_()|0;break J}c=$()|0;_()|0;break K}c=$()|0;_()|0;break L}c=$()|0;_()|0;break M}c=$()|0;_()|0;break N}c=$()|0;_()|0;break O}c=$()|0;_()|0;break P}c=$()|0;_()|0;break Q}c=$()|0;_()|0;break R}c=$()|0;_()|0;break S}c=$()|0;_()|0;break T}c=$()|0;_()|0;if(F[e+27|0]>=0){break T}Kb(H[e+16>>2])}if(F[e+11|0]>=0){break S}Kb(H[e>>2])}if(F[e+43|0]>=0){break R}Kb(H[e+32>>2])}if(F[e+267|0]>=0){break Q}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break P}Kb(H[e+240>>2])}if(F[e+59|0]>=0){break O}Kb(H[e+48>>2])}if(F[e+235|0]>=0){break N}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break M}Kb(H[e+208>>2])}if(F[e+75|0]>=0){break L}Kb(H[e+64>>2])}if(F[e+203|0]>=0){break K}Kb(H[e+192>>2])}if(F[e+187|0]>=0){break J}Kb(H[e+176>>2])}if(F[e+91|0]>=0){break I}Kb(H[e+80>>2])}if(F[e+171|0]>=0){break H}Kb(H[e+160>>2])}if(F[e+155|0]>=0){break G}Kb(H[e+144>>2])}if(F[e+107|0]>=0){break F}Kb(H[e+96>>2])}if(F[e+139|0]>=0){break E}Kb(H[e+128>>2])}if(F[e+123|0]>=0){break e}Kb(H[e+112>>2]);break e;case 3:l=M[f+48>>3];j=M[f+32>>3];t=M[f+24>>3];i=M[f+8>>3];H[197455]=0;u=P(t-i)*.5;fa(1756,e+80|0,+u,-1);d=H[197455];H[197455]=0;l=l*3.141592653589793/180;v=ne(l);l=ze(l);ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{if((d|0)!=1){H[197455]=0;d=ca(1758,e+80|0,0,415416)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Pa}H[e+104>>2]=H[d+8>>2];g=H[d+4>>2];H[e+96>>2]=H[d>>2];H[e+100>>2]=g;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+96|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break Oa}H[e+120>>2]=H[e+104>>2];H[e+104>>2]=0;d=H[e+100>>2];H[e+112>>2]=H[e+96>>2];H[e+116>>2]=d;H[e+96>>2]=0;H[e+100>>2]=0;H[197455]=0;z=P(j-i)*.5;fa(1756,e- -64|0,+z,-1);d=H[197455];H[197455]=0;if((d|0)==1){break Na}H[197455]=0;d=I[e+75|0];g=d<<24>>24<0;d=ca(1759,e+112|0,(g?H[e+64>>2]:e- -64|0)|0,(g?H[e+68>>2]:d)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Ma}H[e+136>>2]=H[d+8>>2];g=H[d+4>>2];H[e+128>>2]=H[d>>2];H[e+132>>2]=g;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+128|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break La}H[e+152>>2]=H[e+136>>2];H[e+136>>2]=0;d=H[e+132>>2];H[e+144>>2]=H[e+128>>2];H[e+148>>2]=d;H[e+128>>2]=0;H[e+132>>2]=0;H[197455]=0;d=da(1699,e+144|0,405612)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Ka}H[e+168>>2]=H[d+8>>2];g=H[d+4>>2];H[e+160>>2]=H[d>>2];H[e+164>>2]=g;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;w=M[f+40>>3];x=M[f+48>>3];H[197455]=0;d=da(1699,e+160|0,(P(x-w)<=180?405804:405964)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break Ja}H[e+184>>2]=H[d+8>>2];g=H[d+4>>2];H[e+176>>2]=H[d>>2];H[e+180>>2]=g;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+176|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break Ia}H[e+200>>2]=H[e+184>>2];H[e+184>>2]=0;d=H[e+180>>2];H[e+192>>2]=H[e+176>>2];H[e+196>>2]=d;H[e+176>>2]=0;H[e+180>>2]=0;w=M[f+40>>3];x=M[f+48>>3];H[197455]=0;d=da(1699,e+192|0,(P(x-w)<=180?405964:405804)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ha}H[e+216>>2]=H[d+8>>2];f=H[d+4>>2];H[e+208>>2]=H[d>>2];H[e+212>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+208|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break Ga}H[e+232>>2]=H[e+216>>2];H[e+216>>2]=0;d=H[e+212>>2];H[e+224>>2]=H[e+208>>2];H[e+228>>2]=d;H[e+208>>2]=0;H[e+212>>2]=0;H[197455]=0;fa(1756,e+48|0,+(u*l+(i+t)*.5),-1);d=H[197455];H[197455]=0;if((d|0)==1){break Fa}H[197455]=0;d=I[e+59|0];f=d<<24>>24<0;d=ca(1759,e+224|0,(f?H[e+48>>2]:e+48|0)|0,(f?H[e+52>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ea}H[e+248>>2]=H[d+8>>2];f=H[d+4>>2];H[e+240>>2]=H[d>>2];H[e+244>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e+240|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break Da}H[e+264>>2]=H[e+248>>2];H[e+248>>2]=0;d=H[e+244>>2];H[e+256>>2]=H[e+240>>2];H[e+260>>2]=d;H[e+240>>2]=0;H[e+244>>2]=0;H[197455]=0;fa(1756,e+32|0,+(z*v+(i+j)*.5),-1);d=H[197455];H[197455]=0;if((d|0)==1){break Ca}H[197455]=0;d=I[e+43|0];f=d<<24>>24<0;d=ca(1759,e+256|0,(f?H[e+32>>2]:e+32|0)|0,(f?H[e+36>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ba}H[e+8>>2]=H[d+8>>2];f=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,e|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break Aa}H[e+24>>2]=H[e+8>>2];H[e+8>>2]=0;d=H[e+4>>2];f=H[e>>2];H[e+16>>2]=f;H[e+20>>2]=d;H[e>>2]=0;H[e+4>>2]=0;H[197455]=0;h=f;d=F[e+27|0];f=(d|0)<0;ca(1759,e+288|0,(f?h:e+16|0)|0,(f?H[e+20>>2]:d&255)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break za}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+11|0]<0){Kb(H[e>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+59|0]<0){Kb(H[e+48>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}d=4;break h}c=$()|0;_()|0;break e}c=$()|0;_()|0;break ja}c=$()|0;_()|0;break ka}c=$()|0;_()|0;break la}c=$()|0;_()|0;break ma}c=$()|0;_()|0;break na}c=$()|0;_()|0;break oa}c=$()|0;_()|0;break pa}c=$()|0;_()|0;break qa}c=$()|0;_()|0;break ra}c=$()|0;_()|0;break sa}c=$()|0;_()|0;break ta}c=$()|0;_()|0;break ua}c=$()|0;_()|0;break va}c=$()|0;_()|0;break wa}c=$()|0;_()|0;break xa}c=$()|0;_()|0;break ya}c=$()|0;_()|0;if(F[e+27|0]>=0){break ya}Kb(H[e+16>>2])}if(F[e+11|0]>=0){break xa}Kb(H[e>>2])}if(F[e+43|0]>=0){break wa}Kb(H[e+32>>2])}if(F[e+267|0]>=0){break va}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break ua}Kb(H[e+240>>2])}if(F[e+59|0]>=0){break ta}Kb(H[e+48>>2])}if(F[e+235|0]>=0){break sa}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break ra}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break qa}Kb(H[e+192>>2])}if(F[e+187|0]>=0){break pa}Kb(H[e+176>>2])}if(F[e+171|0]>=0){break oa}Kb(H[e+160>>2])}if(F[e+155|0]>=0){break na}Kb(H[e+144>>2])}if(F[e+139|0]>=0){break ma}Kb(H[e+128>>2])}if(F[e+75|0]>=0){break la}Kb(H[e+64>>2])}if(F[e+123|0]>=0){break ka}Kb(H[e+112>>2])}if(F[e+107|0]>=0){break ja}Kb(H[e+96>>2])}if(F[e+91|0]>=0){break e}Kb(H[e+80>>2]);break e;case 4:break i;default:break h}}H[197455]=0;da(1699,e+288|0,415528)|0;f=H[197455];H[197455]=0;d=5;if((f|0)==1){break f}}p=p+4|0;if((y|0)!=(p|0)){continue}break}d=I[e+299|0];c=d<<24>>24<0;Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{_a:{$a:{ab:{if(!(c?H[e+292>>2]:d)|H[(c?H[e+288>>2]:e+288|0)>>2]==77){break ab}c=H[b+80>>2];d=H[H[c>>2]+60>>2];H[197455]=0;ba(d|0,e+16|0,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break $a}H[197455]=0;fa(1756,e+192|0,+M[e+16>>3],-1);c=H[197455];H[197455]=0;if((c|0)==1){break $a}H[197455]=0;c=ca(1758,e+192|0,0,405252)|0;d=H[197455];H[197455]=0;if((d|0)==1){break _a}H[e+216>>2]=H[c+8>>2];d=H[c+4>>2];H[e+208>>2]=H[c>>2];H[e+212>>2]=d;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,e+208|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break Za}H[e+232>>2]=H[e+216>>2];H[e+216>>2]=0;c=H[e+212>>2];H[e+224>>2]=H[e+208>>2];H[e+228>>2]=c;H[e+208>>2]=0;H[e+212>>2]=0;b=H[b+80>>2];c=H[H[b>>2]+60>>2];H[197455]=0;ba(c|0,e|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break Ya}H[197455]=0;fa(1756,e+176|0,+M[e+8>>3],-1);b=H[197455];H[197455]=0;if((b|0)==1){break Ya}H[197455]=0;b=I[e+187|0];c=b<<24>>24<0;b=ca(1759,e+224|0,(c?H[e+176>>2]:e+176|0)|0,(c?H[e+180>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Xa}H[e+248>>2]=H[b+8>>2];c=H[b+4>>2];H[e+240>>2]=H[b>>2];H[e+244>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break Wa}H[e+264>>2]=H[e+248>>2];H[e+248>>2]=0;b=H[e+244>>2];c=H[e+240>>2];H[e+256>>2]=c;H[e+260>>2]=b;H[e+240>>2]=0;H[e+244>>2]=0;H[197455]=0;d=c;b=F[e+267|0];c=(b|0)<0;la(1768,e+288|0,0,(c?d:e+256|0)|0,(c?H[e+260>>2]:b&255)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Va}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]>=0){break ab}Kb(H[e+192>>2])}b=H[e+292>>2];H[a>>2]=H[e+288>>2];H[a+4>>2]=b;H[a+8>>2]=H[e+296>>2];H[e+296>>2]=0;H[e+288>>2]=0;H[e+292>>2]=0;if(F[e+283|0]>=0){break a}Kb(H[e+272>>2]);if(F[e+299|0]>=0){break a}Kb(H[e+288>>2]);break a}c=$()|0;_()|0;break e}c=$()|0;_()|0;break Qa}c=$()|0;_()|0;break Ra}c=$()|0;_()|0;break Sa}c=$()|0;_()|0;break Ta}c=$()|0;_()|0;break Ua}c=$()|0;_()|0;if(F[e+267|0]>=0){break Ua}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break Ta}Kb(H[e+240>>2])}if(F[e+187|0]>=0){break Sa}Kb(H[e+176>>2])}if(F[e+235|0]>=0){break Ra}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break Qa}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break e}Kb(H[e+192>>2]);break e}c=$()|0;_()|0}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}ea(c|0);X()}xb=e+304|0}function lba(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,y=0;k=xb-16|0;xb=k;a:{b:{c:{if(!a){break c}if(!(H[a+344>>2]|I[a+399|0])){if(!(I[a+201|0]&4)){break b}d=H[a+320>>2];e=N(I[a+403|0],I[a+406|0]);d:{if(e>>>0>=8){d=N(d,e>>>3|0);break d}d=N(d,e)+7>>>3|0}F[a+408|0]=e;F[a+409|0]=I[a+404|0];e=d+1|0;d=Rd(a,e);H[a+356>>2]=d;F[d|0]=0;d=I[a+400|0];if(d&16){d=Rd(a,H[a+336>>2]+1|0);H[a+360>>2]=d;F[d|0]=1;d=I[a+400|0]}e:{if((d&255)>>>0<32){break e}x=a,y=Rk(a,e),H[x+352>>2]=y;c=I[a+400|0];if(c&32){d=Rd(a,H[a+336>>2]+1|0);H[a+364>>2]=d;F[d|0]=2;c=I[a+400|0]}if(c&64){d=Rd(a,H[a+336>>2]+1|0);H[a+368>>2]=d;F[d|0]=3;c=I[a+400|0]}if(c<<24>>24>=0){break e}d=Rd(a,H[a+336>>2]+1|0);H[a+372>>2]=d;F[d|0]=4}f:{g:{if(I[a+398|0]){d=H[a+324>>2];if(!(I[a+208|0]&2)){H[a+328>>2]=d+7>>>3;d=H[a+320>>2]+7>>>3|0;break f}H[a+328>>2]=d;break g}H[a+328>>2]=H[a+324>>2]}d=H[a+320>>2]}H[a+332>>2]=d;PB(a,1);d=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=d}h:{if(!I[a+398|0]|!(I[a+208|0]&2)){break h}i:{switch(I[a+399|0]){case 0:if(!(I[a+344|0]&7)){break h}Qg(a);break c;case 1:if(!(I[a+344|0]&7)&K[a+320>>2]>4){break h}Qg(a);break c;case 2:if((H[a+344>>2]&7)==4){break h}Qg(a);break c;case 3:if(!(I[a+344|0]&3)&K[a+320>>2]>2){break h}Qg(a);break c;case 4:if((H[a+344>>2]&3)==2){break h}Qg(a);break c;case 5:if(!(F[a+344|0]&1)&K[a+320>>2]>1){break h}Qg(a);break c;case 6:break i;default:break h}}if(F[a+344|0]&1){break h}Qg(a);break c}F[k+8|0]=I[a+401|0];c=H[a+332>>2];H[k>>2]=c;e=I[a+406|0];F[k+10|0]=e;d=I[a+403|0];F[k+9|0]=d;d=N(d,e);F[k+11|0]=d;d=d&255;j:{if(d>>>0>=8){d=N(c,d>>>3|0);break j}d=N(c,d)+7>>>3|0}H[k+4>>2]=d;Ob(H[a+356>>2]+1|0,b,d);k:{if(!I[a+398|0]){break k}h=I[a+399|0];if(!(I[a+208|0]&2)|h>>>0>5){break k}c=H[a+356>>2]+1|0;if(h>>>0<=5){l:{m:{n:{o:{p:{q:{b=I[k+11|0];switch(b-1|0){case 3:break o;case 1:break p;case 0:break q;default:break m}}d=I[h+270133|0];l=H[k>>2];if(d>>>0>=l>>>0){break l}i=I[h+270140|0];e=c;g=7;b=d;while(1){f=(I[c+(b>>>3|0)|0]>>>((b^-1)&7)&1)<>>0>b>>>0){continue}break}if((g|0)!=7){break n}break l}d=I[h+270133|0];l=H[k>>2];if(d>>>0>=l>>>0){break l}i=I[h+270140|0];e=c;g=6;b=d;while(1){f=(I[c+(b>>>2|0)|0]>>>((b<<1^-1)&6)&3)<>>0>b>>>0){continue}break}if((g|0)!=6){break n}break l}d=I[h+270133|0];l=H[k>>2];if(d>>>0>=l>>>0){break l}i=I[h+270140|0];b=d;g=4;e=c;while(1){f=(I[c+(b>>>1|0)|0]>>>((b<<2^-1)&4)&15)<>>0>b>>>0){continue}break}if((g|0)==4){break l}}F[e|0]=f;break l}d=I[h+270133|0];i=H[k>>2];if(d>>>0>=i>>>0){break l}l=b>>>3|0;g=I[h+270140|0];b=d;f=c;while(1){e=c+N(b,l)|0;if((e|0)!=(f|0)){Ob(f,e,l)}f=f+l|0;b=b+g|0;if(i>>>0>b>>>0){continue}break}}b=I[h+270140|0];d=((b+H[k>>2]|0)+(d^-1)>>>0)/(b>>>0)|0;H[k>>2]=d;b=I[k+11|0];u:{if(b>>>0>=8){b=N(d,b>>>3|0);break u}b=N(b,d)+7>>>3|0}H[k+4>>2]=b}if(H[k>>2]){break k}Qg(a);break c}if(H[a+208>>2]){v:{if(!a){break v}b=H[a+208>>2];w:{if(!(b&1048576)){break w}d=H[a+188>>2];if(!d){break w}zb[d|0](a,k,H[a+356>>2]+1|0);b=H[a+208>>2]}x:{if(!(b&32768)){break x}if(I[a+401|0]&5){Xb(a,259033);b=H[a+208>>2]&-32769;H[a+208>>2]=b;break x}Fq(k,H[a+356>>2]+1|0,(H[a+204>>2]>>>7^-1)&1);b=H[a+208>>2]}if(b&65536){sC(k,H[a+356>>2]+1|0);b=H[a+208>>2]}if(b&4){d=H[a+356>>2]+1|0;l=I[a+402|0];c=0;f=0;if(!(I[k+9|0]!=8|I[k+10|0]!=1)){y:{z:{A:{switch(l-1|0){case 0:b=H[k>>2];if(!b){break y}i=b&1;B:{if((b|0)==1){e=128;b=d;break B}g=b&-2;e=128;b=d;while(1){c=(I[d|0]?e:0)|c;if(e>>>0>=2){e=e>>>1|0}else{F[b|0]=c;b=b+1|0;c=0;e=128}c=(I[d+1|0]?e:0)|c;C:{if(e>>>0<=1){F[b|0]=c;b=b+1|0;c=0;e=128;break C}e=e>>>1|0}d=d+2|0;f=f+2|0;if((g|0)!=(f|0)){continue}break}}D:{if(!i){break D}c=(I[d|0]?e:0)|c;if(e>>>0<=1){F[b|0]=c;b=b+1|0;e=128;c=0;break D}e=e>>>1|0}if((e|0)!=128){break z}break y;case 1:b=H[k>>2];if(!b){break y}i=b&1;E:{if((b|0)==1){e=6;b=d;break E}g=b&-2;e=6;b=d;while(1){c=(I[d|0]&3)<>2];if(!b){break y}i=b&1;H:{if((b|0)==1){e=4;b=d;break H}g=b&-2;e=4;b=d;while(1){c=(I[d|0]&15)<>2];b=b&255;K:{if(b>>>0>=8){b=N(d,b>>>3|0);break K}b=N(b,d)+7>>>3|0}H[k+4>>2]=b}b=H[a+208>>2]}if(b&16){tC(k,H[a+356>>2]+1|0);b=H[a+208>>2]}if(b&8){c=H[a+356>>2]+1|0;n=xb-32|0;e=I[k+8|0];L:{if((e|0)==3){break L}m=I[k+9|0];M:{if(e&2){h=I[a+497|0];b=I[a+498|0];H[n+4>>2]=b;H[n+20>>2]=m-b;b=I[a+499|0];H[n+8>>2]=b;H[n+24>>2]=m-b;g=3;break M}h=I[a+500|0];g=1}H[n>>2]=h;d=m-h|0;H[n+16>>2]=d;if(e&4){e=g<<2;b=I[a+501|0];H[(e|n)>>2]=b;H[(e|n+16)>>2]=m-b;g=g+1|0}if(m>>>0<=7){g=H[k+4>>2];if(!g){break L}e=I[a+500|0];b=(m|0)==4?(e|0)==3?17:255:255;e=(e|0)==1?(m|0)==2?85:b:b;while(1){i=I[c|0];F[c|0]=0;if(m){f=0;b=d;if((b|0)>0){while(1){f=i<0){continue}break}}F[c|0]=e&i>>>0-b|f}c=c+1|0;j=j+1|0;if((g|0)!=(j|0)){continue}break}break L}l=N(H[k>>2],g);if((m|0)==8){if(!l){break L}while(1){e=I[c|0];F[c|0]=0;d=(j>>>0)%(g>>>0)<<2;b=H[d+(n+16|0)>>2];d=H[d+n>>2];if((b|0)>(0-d|0)){f=0;if((b|0)>0){while(1){f=e<0){continue}break}}F[c|0]=e>>>0-b|f}c=c+1|0;j=j+1|0;if((l|0)!=(j|0)){continue}break}break L}if(!l){break L}while(1){f=0;j=0;d=(q>>>0)%(g>>>0)<<2;b=H[d+(n+16|0)>>2];e=H[d+n>>2];if((b|0)>(0-e|0)){i=I[c+1|0]|I[c|0]<<8;while(1){d=(b|0)>0;f=(d?i<>>0-b|0)|f;b=b-e|0;if(d){continue}break}j=(f&65280)>>>8|0}F[c+1|0]=f;F[c|0]=j;c=c+2|0;q=q+1|0;if((l|0)!=(q|0)){continue}break}}b=H[a+208>>2]}if(b&131072){b=H[a+356>>2]+1|0;N:{O:{switch(I[k+8|0]-4|0){case 2:i=H[k>>2];if(I[k+9|0]==8){if(!i){break N}if((i|0)!=1){g=i&-2;d=0;while(1){c=I[b|0];F[b|0]=I[b+1|0];e=I[b+2|0]|I[b+3|0]<<8;F[b+1|0]=e;F[b+2|0]=e>>>8;F[b+3|0]=c;c=I[b+4|0];F[b+4|0]=I[b+5|0];e=I[b+6|0]|I[b+7|0]<<8;F[b+5|0]=e;F[b+6|0]=e>>>8;F[b+7|0]=c;b=b+8|0;d=d+2|0;if((g|0)!=(d|0)){continue}break}}if(!(i&1)){break N}e=I[b|0];F[b|0]=I[b+1|0];d=I[b+2|0]|I[b+3|0]<<8;F[b+1|0]=d;F[b+2|0]=d>>>8;F[b+3|0]=e;break N}if(!i){break N}d=0;while(1){c=I[b|0]|I[b+1|0]<<8;F[b|0]=I[b+2|0];e=I[b+3|0]|I[b+4|0]<<8;F[b+3|0]=I[b+5|0];F[b+1|0]=e;F[b+2|0]=e>>>8;e=I[b+6|0]|I[b+7|0]<<8;F[b+4|0]=e;F[b+5|0]=e>>>8;F[b+6|0]=c;F[b+7|0]=c>>>8;b=b+8|0;d=d+1|0;if((i|0)!=(d|0)){continue}break};break N;case 0:break O;default:break N}}g=H[k>>2];if(I[k+9|0]==8){if(!g){break N}if(g-1>>>0>=3){c=g&-4;d=0;while(1){e=I[b+1|0];F[b+1|0]=I[b|0];F[b|0]=e;e=I[b+2|0];F[b+2|0]=I[b+3|0];F[b+3|0]=e;e=I[b+4|0];F[b+4|0]=I[b+5|0];F[b+5|0]=e;e=I[b+6|0];F[b+6|0]=I[b+7|0];F[b+7|0]=e;b=b+8|0;d=d+4|0;if((c|0)!=(d|0)){continue}break}}c=g&3;if(!c){break N}d=0;while(1){e=I[b+1|0];F[b+1|0]=I[b|0];F[b|0]=e;b=b+2|0;d=d+1|0;if((c|0)!=(d|0)){continue}break}break N}if(!g){break N}if((g|0)!=1){e=g&-2;d=0;while(1){c=kma(I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24),16);F[b|0]=c;F[b+1|0]=c>>>8;F[b+2|0]=c>>>16;F[b+3|0]=c>>>24;c=kma(I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]<<16|I[b+7|0]<<24),16);F[b+4|0]=c;F[b+5|0]=c>>>8;F[b+6|0]=c>>>16;F[b+7|0]=c>>>24;b=b+8|0;d=d+2|0;if((e|0)!=(d|0)){continue}break}}if(!(g&1)){break N}d=kma(I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24),16);F[b|0]=d;F[b+1|0]=d>>>8;F[b+2|0]=d>>>16;F[b+3|0]=d>>>24}b=H[a+208>>2]}P:{if(!(b&524288)){break P}b=H[a+356>>2]+1|0;Q:{switch(I[k+8|0]-4|0){case 2:e=H[k>>2];if(I[k+9|0]==8){if(!e){break P}if(e-1>>>0>=3){d=e&-4;c=0;while(1){F[b+3|0]=I[b+3|0]^-1;F[b+7|0]=I[b+7|0]^-1;F[b+11|0]=I[b+11|0]^-1;F[b+15|0]=I[b+15|0]^-1;b=b+16|0;c=c+4|0;if((d|0)!=(c|0)){continue}break}}d=e&3;if(!d){break P}c=0;while(1){F[b+3|0]=I[b+3|0]^-1;b=b+4|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}break P}if(!e){break P}if(e-1>>>0>=3){d=e&-4;c=0;while(1){F[b+6|0]=I[b+6|0]^-1;F[b+7|0]=I[b+7|0]^-1;F[b+14|0]=I[b+14|0]^-1;F[b+15|0]=I[b+15|0]^-1;F[b+22|0]=I[b+22|0]^-1;F[b+23|0]=I[b+23|0]^-1;F[b+30|0]=I[b+30|0]^-1;F[b+31|0]=I[b+31|0]^-1;b=b+32|0;c=c+4|0;if((d|0)!=(c|0)){continue}break}}d=e&3;if(!d){break P}c=0;while(1){F[b+6|0]=I[b+6|0]^-1;F[b+7|0]=I[b+7|0]^-1;b=b+8|0;c=c+1|0;if((d|0)!=(c|0)){continue}break};break P;case 0:break Q;default:break P}}e=H[k>>2];if(I[k+9|0]==8){if(!e){break P}if(e-1>>>0>=3){d=e&-4;c=0;while(1){F[b+1|0]=I[b+1|0]^-1;F[b+3|0]=I[b+3|0]^-1;F[b+5|0]=I[b+5|0]^-1;F[b+7|0]=I[b+7|0]^-1;b=b+8|0;c=c+4|0;if((d|0)!=(c|0)){continue}break}}d=e&3;if(!d){break P}c=0;while(1){F[b+1|0]=I[b+1|0]^-1;b=b+2|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}break P}if(!e){break P}if(e-1>>>0>=3){d=e&-4;c=0;while(1){F[b+2|0]=I[b+2|0]^-1;F[b+3|0]=I[b+3|0]^-1;F[b+6|0]=I[b+6|0]^-1;F[b+7|0]=I[b+7|0]^-1;F[b+10|0]=I[b+10|0]^-1;F[b+11|0]=I[b+11|0]^-1;F[b+14|0]=I[b+14|0]^-1;F[b+15|0]=I[b+15|0]^-1;b=b+16|0;c=c+4|0;if((d|0)!=(c|0)){continue}break}}d=e&3;if(!d){break P}c=0;while(1){F[b+2|0]=I[b+2|0]^-1;F[b+3|0]=I[b+3|0]^-1;b=b+4|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}b=H[a+208>>2];if(b&1){qC(k,H[a+356>>2]+1|0);b=H[a+208>>2]}if(!(b&32)){break v}uC(k,H[a+356>>2]+1|0)}}b=I[k+11|0];if((b|0)!=I[a+404|0]|(b|0)!=I[a+409|0]){break a}if(!(!(I[a+660|0]&4)|I[a+664|0]!=64)){b=H[a+356>>2]+1|0;e=I[k+8|0];R:{if(!(e&2)){break R}i=H[k>>2];S:{switch(I[k+9|0]-8|0){case 0:d=3;T:{switch(e-2|0){case 4:d=4;break;case 0:break T;default:break R}}if(!i){break R}if((i|0)!=1){g=i&-2;e=0;while(1){c=I[b+1|0];F[b|0]=I[b|0]-c;F[b+2|0]=I[b+2|0]-c;c=b+d|0;b=I[c+1|0];F[c+2|0]=I[c+2|0]-b;F[c|0]=I[c|0]-b;b=c+d|0;e=e+2|0;if((g|0)!=(e|0)){continue}break}}if(!(i&1)){break R}d=I[b+1|0];F[b|0]=I[b|0]-d;F[b+2|0]=I[b+2|0]-d;break R;case 8:break S;default:break R}}f=6;U:{switch(e-2|0){case 4:f=8;break;case 0:break U;default:break R}}if(!i){break R}d=0;while(1){e=I[b+3|0]|I[b+2|0]<<8;c=(I[b+5|0]|I[b+4|0]<<8)-e|0;F[b+5|0]=c;e=(I[b+1|0]|I[b|0]<<8)-e|0;F[b+1|0]=e;F[b+4|0]=c>>>8;F[b|0]=e>>>8;b=b+f|0;d=d+1|0;if((i|0)!=(d|0)){continue}break}}}b=0;c=0;h=0;t=I[k+11|0];l=t+7|0;j=a;i=H[a+356>>2];o=H[k+4>>2];e=2147483647;q=I[a+400|0];V:{if(!(q&8)|(q|0)==8){break V}if(!o){e=0;break V}f=i;e=0;if(o-1>>>0>=3){g=o&-4;while(1){d=F[f+1|0];a=d&255;e=((d|0)>=0?a:256-a|0)+e|0;d=F[f+2|0];a=d&255;e=e+((d|0)>=0?a:256-a|0)|0;d=F[f+3|0];a=d&255;e=e+((d|0)>=0?a:256-a|0)|0;d=F[f+4|0];a=d&255;e=e+((d|0)>=0?a:256-a|0)|0;f=f+4|0;c=c+4|0;if((g|0)!=(c|0)){continue}break}}c=o&3;if(!c){break V}while(1){d=F[f+1|0];a=d&255;e=((d|0)>=0?a:256-a|0)+e|0;f=f+1|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}v=l>>>3|0;l=H[j+352>>2];W:{X:{Y:{Z:{if((q|0)==16){c=i+1|0;f=H[j+360>>2]+1|0;if(!t){a=0;b=c;break Y}a=v>>>0>1?v:1;g=a&7;if(a-1>>>0<7){b=c;break Z}d=a&56;b=c;while(1){F[f|0]=I[b|0];F[f+1|0]=I[b+1|0];F[f+2|0]=I[b+2|0];F[f+3|0]=I[b+3|0];F[f+4|0]=I[b+4|0];F[f+5|0]=I[b+5|0];F[f+6|0]=I[b+6|0];F[f+7|0]=I[b+7|0];f=f+8|0;b=b+8|0;h=h+8|0;if((d|0)!=(h|0)){continue}break}break Z}f=i;if(!(q&16)){break W}a=i+1|0;f=H[j+360>>2]+1|0;_:{if(!t){d=0;c=0;b=a;break _}d=v>>>0>1?v:1;w=d&3;$:{if(d-1>>>0<3){b=a;c=0;break $}g=d&60;c=0;b=a;while(1){s=F[b|0];F[f|0]=s;r=F[b+1|0];F[f+1|0]=r;n=F[b+2|0];F[f+2|0]=n;m=F[b+3|0];F[f+3|0]=m;p=c;c=s&255;p=p+((s|0)>=0?c:256-c|0)|0;c=r&255;p=p+((r|0)>=0?c:256-c|0)|0;c=n&255;p=p+((n|0)>=0?c:256-c|0)|0;c=m&255;c=p+((m|0)>=0?c:256-c|0)|0;f=f+4|0;b=b+4|0;h=h+4|0;if((g|0)!=(h|0)){continue}break}}if(!w){break _}while(1){g=F[b|0];F[f|0]=g;h=c;c=g&255;c=h+((g|0)>=0?c:256-c|0)|0;f=f+1|0;b=b+1|0;u=u+1|0;if((w|0)!=(u|0)){continue}break}}aa:{if(d>>>0>=o>>>0){break aa}while(1){g=I[b|0]-I[a|0]|0;F[f|0]=g;h=c;c=g&255;c=h+(g<<24>>24>=0?c:256-c|0)|0;if(e>>>0>>0){break aa}f=f+1|0;a=a+1|0;b=b+1|0;d=d+1|0;if(o>>>0>d>>>0){continue}break}}f=i;if(c>>>0>=e>>>0){break W}g=j+360|0;e=c;break X}if(!g){break Y}h=0;while(1){F[f|0]=I[b|0];f=f+1|0;b=b+1|0;h=h+1|0;if((g|0)!=(h|0)){continue}break}}g=j+360|0;if(a>>>0>=o>>>0){break X}m=(a^-1)+o|0;d=o-a&3;if(d){h=0;while(1){F[f|0]=I[b|0]-I[c|0];f=f+1|0;c=c+1|0;b=b+1|0;a=a+1|0;h=h+1|0;if((d|0)!=(h|0)){continue}break}}if(m>>>0<3){break X}while(1){F[f|0]=I[b|0]-I[c|0];F[f+1|0]=I[b+1|0]-I[c+1|0];F[f+2|0]=I[b+2|0]-I[c+2|0];F[f+3|0]=I[b+3|0]-I[c+3|0];f=f+4|0;c=c+4|0;b=b+4|0;a=a+4|0;if((o|0)!=(a|0)){continue}break}}f=H[g>>2]}ba:{ca:{da:{if((q|0)==32){f=H[j+364>>2];if(!o){break ba}g=o&3;ea:{if(o-1>>>0<3){b=l;c=i;break ea}d=o&-4;a=0;b=l;c=i;while(1){F[f+1|0]=I[c+1|0]-I[b+1|0];F[f+2|0]=I[c+2|0]-I[b+2|0];F[f+3|0]=I[c+3|0]-I[b+3|0];F[f+4|0]=I[c+4|0]-I[b+4|0];c=c+4|0;f=f+4|0;b=b+4|0;a=a+4|0;if((d|0)!=(a|0)){continue}break}}u=j+364|0;if(g){a=0;while(1){F[f+1|0]=I[c+1|0]-I[b+1|0];c=c+1|0;f=f+1|0;b=b+1|0;a=a+1|0;if((g|0)!=(a|0)){continue}break}}d=e;break da}if(!(q&32)){break ca}u=j+364|0;fa:{if(!o){d=0;break fa}c=H[j+364>>2];g=0;a=i;h=l;d=0;while(1){m=I[a+1|0]-I[h+1|0]|0;F[c+1|0]=m;b=m&255;d=(m<<24>>24>=0?b:256-b|0)+d|0;if(e>>>0>>0){break fa}a=a+1|0;c=c+1|0;h=h+1|0;g=g+1|0;if((o|0)!=(g|0)){continue}break}}if(d>>>0>=e>>>0){break ca}}f=H[u>>2];e=d}ga:{ha:{ia:{ja:{if((q|0)==64){b=l+1|0;a=i+1|0;c=H[j+368>>2]+1|0;if(!t){d=0;f=a;break ia}d=v>>>0>1?v:1;m=d&3;if(d-1>>>0<3){f=a;break ja}g=d&60;h=0;f=a;while(1){F[c|0]=I[f|0]-(I[b|0]>>>1|0);F[c+1|0]=I[f+1|0]-(I[b+1|0]>>>1|0);F[c+2|0]=I[f+2|0]-(I[b+2|0]>>>1|0);F[c+3|0]=I[f+3|0]-(I[b+3|0]>>>1|0);c=c+4|0;b=b+4|0;f=f+4|0;h=h+4|0;if((g|0)!=(h|0)){continue}break}break ja}if(!(q&64)){break ga}c=l+1|0;d=i+1|0;a=H[j+368>>2]+1|0;ka:{if(!t){h=0;b=d;g=0;break ka}g=v>>>0>1?v:1;n=g&1;la:{if(t>>>0<9){h=0;b=d;break la}m=g&62;h=0;b=d;u=0;while(1){s=I[b|0]-(I[c|0]>>>1|0)|0;F[a|0]=s;r=I[b+1|0]-(I[c+1|0]>>>1|0)|0;F[a+1|0]=r;p=h;h=s&255;p=p+(s<<24>>24>=0?h:256-h|0)|0;h=r&255;h=p+(r<<24>>24>=0?h:256-h|0)|0;a=a+2|0;c=c+2|0;b=b+2|0;u=u+2|0;if((m|0)!=(u|0)){continue}break}}if(!n){break ka}m=I[b|0]-(I[c|0]>>>1|0)|0;F[a|0]=m;p=h;h=m&255;h=p+(m<<24>>24>=0?h:256-h|0)|0;a=a+1|0;c=c+1|0;b=b+1|0}ma:{if(g>>>0>=o>>>0){break ma}while(1){m=I[b|0]-(I[d|0]+I[c|0]>>>1|0)|0;F[a|0]=m;p=h;h=m&255;h=p+(m<<24>>24>=0?h:256-h|0)|0;if(h>>>0>e>>>0){break ma}b=b+1|0;c=c+1|0;d=d+1|0;a=a+1|0;g=g+1|0;if(o>>>0>g>>>0){continue}break}}if(e>>>0<=h>>>0){break ga}g=j+368|0;e=h;break ha}if(!m){break ia}h=0;while(1){F[c|0]=I[f|0]-(I[b|0]>>>1|0);c=c+1|0;b=b+1|0;f=f+1|0;h=h+1|0;if((m|0)!=(h|0)){continue}break}}g=j+368|0;if(d>>>0>=o>>>0){break ha}h=d+1|0;if(o-d&1){F[c|0]=I[f|0]-(I[i+1|0]+I[b|0]>>>1|0);c=c+1|0;f=f+1|0;d=h;b=b+1|0;a=i+2|0}if((h|0)==(o|0)){break ha}while(1){F[c|0]=I[f|0]-(I[a|0]+I[b|0]>>>1|0);F[c+1|0]=I[f+1|0]-(I[a+1|0]+I[b+1|0]>>>1|0);c=c+2|0;a=a+2|0;b=b+2|0;f=f+2|0;d=d+2|0;if((o|0)!=(d|0)){continue}break}}f=H[g>>2]}na:{oa:{pa:{if((q|0)==128){e=l+1|0;a=i+1|0;f=H[j+372>>2]+1|0;if(!t){g=0;b=a;c=e;break oa}g=v>>>0>1?v:1;i=g&3;if(g-1>>>0<3){c=e;b=a;break pa}d=g&60;h=0;c=e;b=a;while(1){F[f|0]=I[b|0]-I[c|0];F[f+1|0]=I[b+1|0]-I[c+1|0];F[f+2|0]=I[b+2|0]-I[c+2|0];F[f+3|0]=I[b+3|0]-I[c+3|0];f=f+4|0;c=c+4|0;b=b+4|0;h=h+4|0;if((d|0)!=(h|0)){continue}break}break pa}if(!(q&128)){break ba}d=l+1|0;g=i+1|0;a=H[j+372>>2]+1|0;qa:{if(!t){h=0;b=g;c=d;q=0;break qa}q=v>>>0>1?v:1;m=q&1;ra:{if(t>>>0<9){h=0;c=d;b=g;break ra}l=q&62;h=0;c=d;b=g;u=0;while(1){r=I[b|0]-I[c|0]|0;F[a|0]=r;n=I[b+1|0]-I[c+1|0]|0;F[a+1|0]=n;i=r&255;h=(r<<24>>24>=0?i:256-i|0)+h|0;i=n&255;h=h+(n<<24>>24>=0?i:256-i|0)|0;a=a+2|0;c=c+2|0;b=b+2|0;u=u+2|0;if((l|0)!=(u|0)){continue}break}}if(!m){break qa}l=I[b|0]-I[c|0]|0;F[a|0]=l;i=l&255;h=(l<<24>>24>=0?i:256-i|0)+h|0;a=a+1|0;c=c+1|0;b=b+1|0}sa:{if(o>>>0<=q>>>0){break sa}while(1){n=I[g|0];t=I[d|0];w=n-t|0;m=w>>31;l=I[c|0];s=l-t|0;i=s+w|0;r=i>>31;p=l;m=(m^w)-m|0;l=(i^r)-r|0;i=m>>>0>l>>>0?t:p;p=i;i=s>>31;i=(i^s)-i|0;l=I[b|0]-(i>>>0>m>>>0?p:i>>>0>l>>>0?p:n)|0;F[a|0]=l;i=l&255;h=(l<<24>>24>=0?i:256-i|0)+h|0;if(h>>>0>e>>>0){break sa}c=c+1|0;d=d+1|0;g=g+1|0;b=b+1|0;a=a+1|0;q=q+1|0;if(o>>>0>q>>>0){continue}break}}if(e>>>0<=h>>>0){break ba}h=j+372|0;break na}if(!i){break oa}h=0;while(1){F[f|0]=I[b|0]-I[c|0];f=f+1|0;c=c+1|0;b=b+1|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}}h=j+372|0;if(g>>>0>=o>>>0){break na}while(1){m=I[a|0];w=I[e|0];s=m-w|0;l=s>>31;i=I[c|0];r=i-w|0;d=r+s|0;n=d>>31;p=i;l=(l^s)-l|0;i=(d^n)-n|0;d=l>>>0>i>>>0?w:p;p=d;d=r>>31;d=(d^r)-d|0;F[f|0]=I[b|0]-(d>>>0>l>>>0?p:d>>>0>i>>>0?p:m);f=f+1|0;b=b+1|0;a=a+1|0;e=e+1|0;c=c+1|0;g=g+1|0;if((o|0)!=(g|0)){continue}break}}f=H[h>>2]}a=H[k+4>>2];H[j+216>>2]=0;H[j+212>>2]=f;d=j+212|0;b=a+1|0;f=0;ta:{ua:{while(1){if(!f){H[j+216>>2]=b;b=0}if(_f(d,0)){a=H[j+236>>2];if(a){break ua}hc(j,264530);X()}if(!H[j+228>>2]){se(j,1229209940,H[j+268>>2],H[j+272>>2]);a=H[j+272>>2];H[j+224>>2]=H[j+268>>2];H[j+228>>2]=a;H[j+200>>2]=H[j+200>>2]|4}f=H[j+216>>2];if(f|b){continue}break}b=H[j+352>>2];if(b){a=H[j+356>>2];H[j+356>>2]=b;H[j+352>>2]=a}Qg(j);b=H[j+452>>2]+1|0;H[j+452>>2]=b;a=H[j+448>>2];if(!(!a|a>>>0>b>>>0)){va:{if(!j|K[j+344>>2]>=K[j+328>>2]){break va}wa:{a=j+212|0;if(_f(a,2)){break wa}while(1){b=H[j+228>>2];if(!b){QB(j,H[j+268>>2],H[j+272>>2]);if(!_f(a,2)){continue}break wa}break}a=H[j+272>>2];if((a|0)!=(b|0)){QB(j,H[j+268>>2],a-b|0)}H[j+452>>2]=0;a=H[j+444>>2];if(a){zb[a|0](j)}break va}a=H[j+236>>2];if(!a){hc(j,260280);X()}hc(j,a);X()}}break ta}hc(j,a);X()}a=H[j+524>>2];if(!a){break c}zb[a|0](j,H[j+344>>2],I[j+399|0])}xb=k+16|0;return}hc(a,259783);X()}hc(a,260032);X()}function TH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,L=0,M=0;s=xb-16|0;xb=s;f=11;g=H[H[b+96>>2]+4>>2];n=rg(g,9005);a:{if(!n){break a}y=nf(H[b+96>>2],10901,1);D=rg(g,11010);h=rg(g,11108);if(!h){break a}H[b+556>>2]=h;E=nf(H[b+96>>2],10595,1);f=bc(a,0);if(f){break a}C=zb[H[n+4>>2]](a,b,c,d,e)|0;b:{if(!C){f=2;if(H[b+148>>2]!=1330926671){break a}f=0;if((c|0)<0){break a}c:{if(!(zb[H[b+516>>2]](b,1751474532,a,0)|0)){f=zb[H[n+8>>2]](a,b,c,d,e)|0;if(!f){break c}break a}f=zb[H[n+32>>2]](b,a)|0;if(f){break a}u=1}f=zb[H[b+516>>2]](b,1128678962,a,0)|0;H[s+12>>2]=f;if(!f){d=1;F[b+732|0]=1;break b}if((f&255)!=142){break a}d=0;f=zb[H[b+516>>2]](b,1128678944,a,0)|0;H[s+12>>2]=f;if(!f){break b}break a}d=0;f=bc(a,0);if(f){break a}H[s+12>>2]=0;u=1}z=H[b+100>>2];n=pc(z,3136,s+12|0);f=H[s+12>>2];if(f){break a}H[b+712>>2]=n;e=b;i=xb-80|0;xb=i;t=H[a+28>>2];k=Nb(n,0,3136);H[i+72>>2]=0;b=i- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[i+56>>2]=0;H[i+60>>2]=0;H[i+48>>2]=0;H[i+52>>2]=0;H[i+40>>2]=0;H[i+44>>2]=0;r=H[a+8>>2];F[k+32|0]=d;H[k+8>>2]=t;H[k+4>>2]=a;H[k>>2]=g;H[k+12>>2]=r;b=Ic(a,27632,k);H[i+76>>2]=b;d:{if(b){break d}e:{if(d){if(!(I[k+24|0]==2&I[k+26|0]>4)){H[i+76>>2]=2;break d}L=k,M=nc(a,i+76|0),H[L+28>>2]=M;if(H[i+76>>2]){break d}b=I[k+26|0];break e}f=Gd(a,i+76|0);if(H[i+76>>2]){break d}f:{if(I[k+24|0]!=1){break f}b=I[k+26|0];if(b>>>0<4){break f}if(f>>>0<5){break e}}H[i+76>>2]=2;break d}b=bc(a,b+r|0);H[i+76>>2]=b;if(b){if(!u){break d}H[i+76>>2]=2;break d}g:{if(d){H[k+1240>>2]=0;H[k+1244>>2]=0;H[k+1272>>2]=0;b=k+1264|0;H[b>>2]=0;H[b+4>>2]=0;f=k+1256|0;H[f>>2]=0;H[f+4>>2]=0;f=k+1248|0;H[f>>2]=0;H[f+4>>2]=0;H[k+1260>>2]=H[a+8>>2];f=b;b=H[k+28>>2];H[f>>2]=b;b=ud(a,b);H[i+76>>2]=b;if(b){break d}b=Th(k+108|0,a,1,1);H[i+76>>2]=b;if(b){break d}break g}b=Th(k+36|0,a,0,0);H[i+76>>2]=b;if(b){if(!u){break d}H[i+76>>2]=2;break d}b=H[k+48>>2];if(!(b>>>0<2|b>>>0<=K[k+60>>2])){H[i+76>>2]=u?2:3;break d}b=Th(k+1240|0,a,0,0);H[i+76>>2]=b;if(b){break d}b=Th(i+40|0,a,1,0);H[i+76>>2]=b;if(b){break d}b=Th(k+108|0,a,1,0);H[i+76>>2]=b;if(b){break d}b=Ar(i+40|0,k+1360|0,k+1364|0,k+1368|0);H[i+76>>2]=b;if(b){break d}if(K[k+48>>2]<=K[k+1252>>2]){break g}H[i+76>>2]=3;break d}H[k+1356>>2]=H[i+52>>2];h:{i:{if(u){A=c&65535;b=H[k+48>>2];if(A>>>0>>0|(c|0)<=0){break i}H[i+76>>2]=6;break d}if(K[k+48>>2]<2){break h}H[i+76>>2]=3;break d}H[k+16>>2]=b}if((c|0)<0){break d}b=ND(k+1372|0,k+1240|0,A,a,r,d?12288:4096,k,e);H[i+76>>2]=b;if(b){break d}b=bc(a,r+H[k+1484>>2]|0);H[i+76>>2]=b;if(b){break d}b=Th(k+1204|0,a,0,d);H[i+76>>2]=b;if(b){break d}j:{if(!(!d&H[k+1504>>2]==65535)){f=k+3112|0;b=xb-16|0;xb=b;h=H[a+28>>2];k:{l:{g=H[k+1552>>2];if(!g){break l}g=bc(a,g+r|0);H[b+12>>2]=g;if(g){break k}g=ud(a,2);H[b+12>>2]=g;if(g){break k}q=H[a+8>>2];g=nc(a,b+12|0);if(H[b+12>>2]){break k}if((g|0)!=1){H[b+12>>2]=3;break k}g=hd(a,b+12|0);if(H[b+12>>2]){break k}p=nc(a,b+12|0);H[f>>2]=p;if(H[b+12>>2]){break k}j=Ub(h,4,0,p,0,b+12|0);if(H[b+12>>2]){break k}if(H[f>>2]){while(1){L=(l<<2)+j|0,M=hd(a,b+12|0),H[L>>2]=M;if(H[b+12>>2]){break k}l=l+1|0;if(l>>>0>2]){continue}break}}g=bc(a,g+q|0);H[b+12>>2]=g;if(g){break k}L=f,M=nc(a,b+12|0),G[L+8>>1]=M;if(H[b+12>>2]){break k}g=nc(a,b+12|0);H[f+12>>2]=g;if(H[b+12>>2]){break k}o=Ub(h,4,0,g,0,b+12|0);H[f+16>>2]=o;if(H[b+12>>2]){break k}m:{if(!H[f+12>>2]){break m}g=Ub(h,12,0,J[f+8>>1],0,b+12|0);H[o>>2]=g;if(H[b+12>>2]){break k}while(1){n:{if(!J[f+8>>1]){g=0;break n}p=nc(a,b+12|0);if(H[b+12>>2]){break k}l=0;while(1){v=nc(a,b+12|0);if(H[b+12>>2]){break k}x=nc(a,b+12|0);if(H[b+12>>2]){break k}g=N(l,12)+g|0;H[g+8>>2]=x<<16>>16<<2;H[g+4>>2]=v<<16>>16<<2;H[g>>2]=p<<16>>16<<2;l=l+1|0;g=J[f+8>>1];if(l>>>0>=g>>>0){break n}g=H[o>>2];p=nc(a,b+12|0);if(!H[b+12>>2]){continue}break}break k}m=m+1|0;if(m>>>0>=K[f+12>>2]){break m}o=H[f+16>>2]+(m<<2)|0;g=Ub(h,12,0,g,0,b+12|0);H[o>>2]=g;if(!H[b+12>>2]){continue}break}break k}l=Ub(h,8,0,H[f>>2],0,b+12|0);H[f+4>>2]=l;if(H[b+12>>2]){break k}if(!H[f>>2]){break l}g=bc(a,q+H[j>>2]|0);H[b+12>>2]=g;if(g){break k}g=0;while(1){m=ud(a,4);H[b+12>>2]=m;if(m){break k}m=(g<<3)+l|0;l=nc(a,b+12|0);H[m>>2]=l;if(H[b+12>>2]){break k}L=m,M=Ub(h,4,0,l,0,b+12|0),H[L+4>>2]=M;if(H[b+12>>2]){break k}if(H[m>>2]){l=0;while(1){p=nc(a,b+12|0);H[H[m+4>>2]+(l<<2)>>2]=p;if(H[b+12>>2]){break k}l=l+1|0;if(l>>>0>2]){continue}break}}g=g+1|0;if(g>>>0>=K[f>>2]){break l}l=H[f+4>>2];m=bc(a,q+H[(g<<2)+j>>2]|0);H[b+12>>2]=m;if(!m){continue}break}break k}H[b+12>>2]=0}if(j){zb[H[h+8>>2]](h,j)}if(H[b+12>>2]){$s(f,h);f=H[b+12>>2]}else{f=0}xb=b+16|0;H[i+76>>2]=f;if(f){break d}b=bc(a,r+H[k+1536>>2]|0);H[i+76>>2]=b;if(b){break d}b=Th(i,a,0,d);H[i+76>>2]=b;if(b){break d}f=H[i+12>>2];o:{if(f>>>0>256){break o}H[k+2024>>2]=f;b=0;f=Ub(t,652,0,f,0,i+76|0);if(H[i+76>>2]){break o}g=H[i+12>>2];p:{if(!g){break p}if(g-1>>>0>=3){j=g&-4;h=k+2028|0;while(1){H[h+(b<<2)>>2]=f+N(b,652);m=b|1;H[h+(m<<2)>>2]=f+N(m,652);m=b|2;H[h+(m<<2)>>2]=f+N(m,652);m=b|3;H[h+(m<<2)>>2]=f+N(m,652);b=b+4|0;w=w+4|0;if((j|0)!=(w|0)){continue}break}}h=g&3;if(h){while(1){H[(k+(b<<2)|0)+2028>>2]=f+N(b,652);b=b+1|0;B=B+1|0;if((h|0)!=(B|0)){continue}break}}if(!g){b=0;break p}f=d?16384:4096;b=0;while(1){g=ND(H[(k+(b<<2)|0)+2028>>2],i,b,a,r,f,k,e);H[i+76>>2]=g;if(g){break o}b=b+1|0;g=H[i+12>>2];if(b>>>0>>0){continue}break}b=g>>>0>1}if(b?0:d){break o}h=k+3052|0;g=H[k+1216>>2];f=xb-16|0;xb=f;b=bc(a,r+H[k+1540>>2]|0);H[f+12>>2]=b;q:{if(b){break q}j=Gd(a,f+12|0);b=H[f+12>>2];if(b){break q}H[h+20>>2]=0;F[h|0]=j;b=3;r:{switch(j&255){case 3:g=nc(a,f+12|0);b=H[f+12>>2];if(b){break q}b=3;if(!g){break q}g=N(g,3)+2|0;break;case 0:break r;default:break q}}H[h+12>>2]=g;b=Ke(a,g,h+8|0)}xb=f+16|0;H[i+76>>2]=b}b=H[i>>2];if(b){f=i+32|0;g=H[b+28>>2];if(H[i+32>>2]){nd(b,f)}b=H[i+28>>2];if(b){zb[H[g+8>>2]](g,b)}H[f>>2]=0;H[i+24>>2]=0;H[i+28>>2]=0;H[i+16>>2]=0;H[i+20>>2]=0;H[i+8>>2]=0;H[i+12>>2]=0;H[i>>2]=0;H[i+4>>2]=0}if(!H[i+76>>2]){break j}break d}H[k+2024>>2]=0}if(!H[k+1484>>2]){H[i+76>>2]=3;break d}H[k+20>>2]=H[k+1216>>2];b=Ar(k+108|0,k+1352|0,0,0);H[i+76>>2]=b;if(b){break d}s:{if(d){break s}f=H[k+20>>2];if(!f){break s}g=k+1180|0;b=H[k+1476>>2];p=H[k+1504>>2]!=65535&u;h=xb-16|0;xb=h;l=H[a+28>>2];H[h+8>>2]=0;t:{u:{v:{w:{if(b>>>0>=3){b=b+r|0;H[g+4>>2]=b;b=bc(a,b);H[h+8>>2]=b;if(b){break u}L=g,M=Gd(a,h+8|0)&255,H[L>>2]=M;if(H[h+8>>2]){break u}b=Ub(l,2,0,f,0,h+8|0);H[g+8>>2]=b;if(H[h+8>>2]){break u}G[b>>1]=0;x:{switch(H[g>>2]){case 0:b=1;j=Jc(a,(f<<1)-2|0);H[h+8>>2]=j;if(j){break u}if(f>>>0>=2){while(1){j=Tc(a);G[H[g+8>>2]+(b<<1)>>1]=j;b=b+1|0;if((f|0)!=(b|0)){continue}break}}wc(a);break w;case 1:case 2:b=1;if(f>>>0<=1){break w}while(1){m=nc(a,h+8|0);if(H[h+8>>2]){break u}y:{if(H[g>>2]==2){j=nc(a,h+8|0);if(!H[h+8>>2]){break y}break u}j=Gd(a,h+8|0);if(H[h+8>>2]){break u}j=j&255}z:{if(b>>>0>=f>>>0){break z}o=(j^65535)>>>0>>0?m^65535:j;q=H[g+8>>2];j=0;while(1){G[q+(b<<1)>>1]=m;b=b+1|0;if(f>>>0<=b>>>0){break z}m=m+1|0;t=j>>>0>>0;j=j+1|0;if(t){continue}break}}if(b>>>0>>0){continue}break};break w;default:break x}}H[h+8>>2]=3;break u}H[g+4>>2]=b;A:{switch(b|0){case 0:if(f>>>0>=230){H[h+8>>2]=3;break u}b=Ub(l,2,0,f,0,h+8|0);H[g+8>>2]=b;if(H[h+8>>2]){break u}Ob(b,27664,f<<1);break w;case 1:if(f>>>0>=167){H[h+8>>2]=3;break u}b=Ub(l,2,0,f,0,h+8|0);H[g+8>>2]=b;if(H[h+8>>2]){break u}Ob(b,28128,f<<1);break w;case 2:break A;default:break v}}if(f>>>0>=88){H[h+8>>2]=3;break u}b=Ub(l,2,0,f,0,h+8|0);H[g+8>>2]=b;if(H[h+8>>2]){break u}Ob(b,28464,f<<1)}B:{if(!p){b=H[h+8>>2];break B}b=0;H[h+12>>2]=0;C:{if(H[g+16>>2]){break C}m=0;if(f){t=f&3;o=H[g+8>>2];p=0;D:{if(f-1>>>0<3){j=0;break D}v=f&-4;j=0;while(1){q=b<<1;x=J[o+(q|6)>>1];w=J[o+(q|4)>>1];B=J[o+(q|2)>>1];q=J[o+q>>1];j=j&65535;j=j>>>0>>0?q:j;j=j>>>0>>0?B:j;j=j>>>0>>0?w:j;j=j>>>0>>0?x:j;b=b+4|0;m=m+4|0;if((v|0)!=(m|0)){continue}break}}if(t){while(1){m=J[o+(b<<1)>>1];j=j&65535;j=j>>>0>>0?m:j;b=b+1|0;p=p+1|0;if((t|0)!=(p|0)){continue}break}}m=j&65535}j=Ub(l,2,0,m+1|0,0,h+12|0);H[g+12>>2]=j;b=H[h+12>>2];if(b){break C}E:{if((f|0)<=0){break E}p=H[g+8>>2];b=f;q=b&3;if(q){o=0;while(1){b=b-1|0;G[j+(J[p+(b<<1)>>1]<<1)>>1]=b;o=o+1|0;if((q|0)!=(o|0)){continue}break}}if(f-1>>>0<3){break E}while(1){o=b-1|0;G[j+(J[p+(o<<1)>>1]<<1)>>1]=o;o=b-2|0;G[j+(J[p+(o<<1)>>1]<<1)>>1]=o;o=b-3|0;G[j+(J[p+(o<<1)>>1]<<1)>>1]=o;b=b-4|0;G[j+(J[p+(b<<1)>>1]<<1)>>1]=b;if(o>>>0>1){continue}break}}H[g+20>>2]=f;H[g+16>>2]=m;b=0}H[h+8>>2]=b}if(b){break u}b=0;break t}H[h+8>>2]=3}b=H[g+8>>2];if(b){zb[H[l+8>>2]](l,b)}H[g+8>>2]=0;b=H[g+12>>2];if(b){zb[H[l+8>>2]](l,b)}H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;b=H[h+8>>2]}xb=h+16|0;H[i+76>>2]=b;if(b){break d}if(H[k+1504>>2]!=65535){break s}p=k+144|0;h=H[k+20>>2];j=a;b=H[k+1480>>2];o=0;m=xb-16|0;xb=m;H[m+8>>2]=0;a=3;F:{if(!H[g+8>>2]){break F}f=g;a=Nb(p+12|0,0,1024);if(b>>>0>=2){a=b+r|0;H[p+4>>2]=a;a=bc(j,a);H[m+8>>2]=a;if(a){break F}L=p,M=Gd(j,m+8|0)&255,H[L>>2]=M;a=H[m+8>>2];if(a){break F}g=Gd(j,m+8|0);a=H[m+8>>2];if(a){break F}l=g&255;a=3;G:{H:{switch(H[p>>2]&127){case 0:H[p+8>>2]=l+1;a=Jc(j,l);H[m+8>>2]=a;if(a){break F}I:{if(!g){break I}a=1;b=H[j+32>>2];if((g|0)!=1){o=l&254;g=0;while(1){if(a>>>0>>0){r=p+(I[b|0]<<1)|0;G[r+524>>1]=a;G[r+12>>1]=J[H[f+8>>2]+(a<<1)>>1]}r=a+1|0;if(r>>>0>>0){q=p+(I[b+1|0]<<1)|0;G[q+524>>1]=r;G[q+12>>1]=J[H[f+8>>2]+(r<<1)>>1]}b=b+2|0;a=a+2|0;g=g+2|0;if((o|0)!=(g|0)){continue}break}}if(!(l&1)|a>>>0>=h>>>0){break I}b=p+(I[b|0]<<1)|0;G[b+524>>1]=a;G[b+12>>1]=J[H[f+8>>2]+(a<<1)>>1]}wc(j);break G;case 1:break H;default:break F}}H[p+8>>2]=0;if(!g){break G}g=1;while(1){b=g;v=Gd(j,m+8|0);a=H[m+8>>2];if(a){break F}q=Gd(j,m+8|0);a=H[m+8>>2];if(a){break F}t=q&255;a=t+1|0;r=H[p+8>>2];if(t>>>0>=r>>>0){H[p+8>>2]=a;r=a}g=a+b|0;J:{if(g>>>0<=b>>>0){break J}a=v&255;if(!(t&1)){if(b>>>0>>0){t=p+(a<<1)|0;G[t+524>>1]=b;G[t+12>>1]=J[H[f+8>>2]+(b<<1)>>1]}b=b+1|0;a=a+1|0}if(!q){break J}while(1){if(!(a>>>0>255|b>>>0>=h>>>0)){q=p+(a<<1)|0;G[q+524>>1]=b;G[q+12>>1]=J[H[f+8>>2]+(b<<1)>>1]}q=b+1|0;K:{if(q>>>0>=h>>>0){break K}t=a+1|0;if(t>>>0>255){break K}t=p+(t<<1)|0;G[t+524>>1]=q;G[t+12>>1]=J[H[f+8>>2]+(q<<1)>>1]}a=a+2|0;b=b+2|0;if((g|0)!=(b|0)){continue}break}}o=o+1|0;if((l|0)!=(o|0)){continue}break}if(r>>>0<257){break G}H[p+8>>2]=256}if(!(I[p|0]&128)){a=H[m+8>>2];break F}b=Gd(j,m+8|0);a=H[m+8>>2];if(a|!b){break F}r=b&255;b=0;while(1){l=Gd(j,m+8|0);a=H[m+8>>2];if(a){break F}g=nc(j,m+8|0);a=H[m+8>>2];if(a){break F}l=p+((l&255)<<1)|0;G[l+12>>1]=g;L:{if(!h){break L}o=H[f+8>>2];a=0;while(1){if((g|0)==J[o+(a<<1)>>1]){G[l+524>>1]=a;break L}a=a+1|0;if((h|0)!=(a|0)){continue}break}}a=0;b=b+1|0;if((r|0)!=(b|0)){continue}break}break F}M:{N:{O:{P:{switch(b|0){case 0:Ob(a,24864,512);break O;case 1:break P;default:break N}}Ob(a,28640,512)}H[p+8>>2]=0;a=H[j+28>>2];H[m+12>>2]=0;b=H[f+16>>2];if(!b){b=0;j=a;if(h){q=h&3;r=H[f+8>>2];Q:{if(h-1>>>0<3){l=0;a=0;break Q}t=h&-4;l=0;a=0;g=0;while(1){o=a<<1;v=J[r+(o|6)>>1];x=J[r+(o|4)>>1];w=J[r+(o|2)>>1];o=J[o+r>>1];l=l&65535;l=l>>>0>>0?o:l;l=l>>>0>>0?w:l;l=l>>>0>>0?x:l;l=l>>>0>>0?v:l;a=a+4|0;g=g+4|0;if((t|0)!=(g|0)){continue}break}}if(q){while(1){g=J[r+(a<<1)>>1];l=l&65535;l=g>>>0>l>>>0?g:l;a=a+1|0;b=b+1|0;if((q|0)!=(b|0)){continue}break}}b=l&65535}j=Ub(j,2,0,b+1|0,0,m+12|0);H[f+12>>2]=j;a=H[m+12>>2];if(a){break M}R:{if((h|0)<=0){break R}r=H[f+8>>2];a=h;l=a&3;if(l){g=0;while(1){a=a-1|0;G[j+(J[r+(a<<1)>>1]<<1)>>1]=a;g=g+1|0;if((l|0)!=(g|0)){continue}break}}if(h-1>>>0<3){break R}while(1){g=a-1|0;G[j+(J[r+(g<<1)>>1]<<1)>>1]=g;g=a-2|0;G[j+(J[r+(g<<1)>>1]<<1)>>1]=g;g=a-3|0;G[j+(J[r+(g<<1)>>1]<<1)>>1]=g;a=a-4|0;G[j+(J[r+(a<<1)>>1]<<1)>>1]=a;if(g>>>0>1){continue}break}}H[f+20>>2]=h;H[f+16>>2]=b}H[m+8>>2]=0;a=0;while(1){S:{T:{g=p+(a<<1)|0;h=J[g+12>>1];if(!h|b>>>0>>0){break T}h=J[H[f+12>>2]+(h<<1)>>1];if(!h){break T}G[g+524>>1]=h;a=a+1|0;H[p+8>>2]=a;break S}G[g+524>>1]=0;G[g+12>>1]=0;a=a+1|0}if((a|0)!=256){continue}break}a=0;break F}a=3}H[m+8>>2]=a}xb=m+16|0;H[i+76>>2]=a;if(a){break d}}L=k,M=nt(k,A),H[L+1348>>2]=M}a=H[i+40>>2];if(a){b=H[a+28>>2];if(H[i+72>>2]){nd(a,i+72|0)}a=H[i+68>>2];if(a){zb[H[b+8>>2]](b,a)}}xb=i+80|0;a=H[i+76>>2];f=a;H[s+12>>2]=a;if(a){break a}if((c|0)<0){H[e>>2]=H[n+16>>2];f=0;break a}H[n+3088>>2]=E;H[n+3084>>2]=y;H[n+3080>>2]=D;j=c&65535;H[e+4>>2]=j;H[e+16>>2]=H[n+20>>2];if(!(y|H[n+1504>>2]!=65535)){f=11;H[s+12>>2]=11;break a}U:{if(!(H[e+8>>2]&256)|c>>>0<65536){break U}b=H[e+548>>2];if(!b){break U}a=H[e+552>>2];f=zb[H[b+28>>2]](e,c>>>16|0)|0;H[s+12>>2]=f;if(f){break a}if(!a){break U}zb[H[a+28>>2]](e)}if(!I[n+1436|0]){H[n+1440>>2]=u?1e3:J[e+68>>1]}f=H[n+1432>>2];if(!f){f=H[n+1428>>2]}a=f>>31;a=(a^f)-a|0;V:{if((a|0)==65536){f=H[n+1448>>2];break V}L=n,M=dc(H[n+1440>>2],a),H[L+1440>>2]=M;L=n,M=dc(H[n+1420>>2],a),H[L+1420>>2]=M;L=n,M=dc(H[n+1428>>2],a),H[L+1428>>2]=M;L=n,M=dc(H[n+1424>>2],a),H[L+1424>>2]=M;L=n,M=dc(H[n+1432>>2],a),H[L+1432>>2]=M;L=n,M=dc(H[n+1444>>2],a),H[L+1444>>2]=M;f=dc(H[n+1448>>2],a);H[n+1448>>2]=f}H[n+1448>>2]=f>>16;H[n+1444>>2]=G[n+1446>>1];a=H[n+2024>>2];if(a){r=n+2028|0;f=n+1420|0;while(1){a=a-1|0;b=H[r+(a<<2)>>2];W:{if(I[b+64|0]){if(!I[n+1436|0]){break W}c=1;g=H[n+1440>>2];if(g>>>0>=2){c=H[b+68>>2];c=c>>>0>1?c>>>0>g>>>0?g:c:1}g=b+48|0;if(!(!f|!g)){i=H[f>>2];k=H[g>>2];h=c<<16;m=ic(i,k,h);l=H[f+4>>2];p=H[g+8>>2];o=ic(l,p,h);q=i;i=H[g+4>>2];A=ic(q,i,h);q=l;l=H[g+12>>2];q=ic(q,l,h);y=H[f+8>>2];t=ic(y,k,h);k=H[f+12>>2];L=g,M=t+ic(k,p,h)|0,H[L+8>>2]=M;H[g+4>>2]=q+A;H[g>>2]=m+o;L=g,M=ic(y,i,h)+ic(k,l,h)|0,H[L+12>>2]=M}if(!(!f|(b|0)==-72)){h=H[f+8>>2];i=H[f+12>>2];k=H[b+72>>2];g=c<<16;l=ic(k,H[f>>2],g);m=H[b+76>>2];L=b,M=l+ic(m,H[f+4>>2],g)|0,H[L+72>>2]=M;L=b,M=ic(k,h,g)+ic(m,i,g)|0,H[L+76>>2]=M}L=b,M=ic(H[b+68>>2],H[n+1440>>2],c),H[L+68>>2]=M;break W}c=H[f+4>>2];H[b+48>>2]=H[f>>2];H[b+52>>2]=c;c=H[f+12>>2];H[b+56>>2]=H[f+8>>2];H[b+60>>2]=c;c=H[n+1448>>2];H[b+72>>2]=H[n+1444>>2];H[b+76>>2]=c;H[b+68>>2]=H[n+1440>>2]}c=H[b+60>>2];if(!c){c=H[b+56>>2]}g=c;c=c>>31;c=(g^c)-c|0;if((c|0)==65536){c=H[b+76>>2]}else{L=b,M=dc(H[b+68>>2],c),H[L+68>>2]=M;L=b,M=dc(H[b+48>>2],c),H[L+48>>2]=M;L=b,M=dc(H[b+56>>2],c),H[L+56>>2]=M;L=b,M=dc(H[b+52>>2],c),H[L+52>>2]=M;L=b,M=dc(H[b+60>>2],c),H[L+60>>2]=M;L=b,M=dc(H[b+72>>2],c),H[L+72>>2]=M;c=dc(H[b+76>>2],c)}H[b+76>>2]=c>>16;H[b+72>>2]=G[b+74>>1];if(a){continue}break}}if(u){H[e>>2]=H[n+16>>2];if(H[n+1504>>2]!=65535){a=H[n+1196>>2]+1|0}else{a=H[n+1216>>2]}H[e+16>>2]=a;H[e+52>>2]=G[n+1458>>1];a=G[n+1462>>1];H[e+56>>2]=a;H[e+60>>2]=H[n+1464>>2]+65535>>16;b=H[n+1468>>2]+65535>>16;H[e- -64>>2]=b;c=H[n+1440>>2];G[e+72>>1]=a;G[e+70>>1]=b;G[e+68>>1]=c;a=b-a|0;b=(N(c&65535,12)>>>0)/10|0;G[e+74>>1]=(a|0)>b<<16>>16?a:b;G[e+80>>1]=J[n+1406>>1];G[e+82>>1]=J[n+1410>>1];a=H[n+1388>>2];X:{if(!a){break X}a=xl(n,a);if(!a){break X}L=e,M=jf(z,a,s),H[L+20>>2]=M}Y:{Z:{_:{if(!H[e+20>>2]){c=nt(n,j);H[e+20>>2]=c;if(!c){break _}a=ac(c);$:{if((a|0)<6){break $}f=c+7|0;b=a+1|0;while(1){if(I[c+6|0]!=43|(I[c+5|0]-91&255)>>>0<230|((I[c+4|0]-91&255)>>>0<230|(I[c+3|0]-91&255)>>>0<230)){break $}if((I[c+2|0]-91&255)>>>0<230|(I[c+1|0]-91&255)>>>0<230|(I[c|0]-91&255)>>>0<230){break $}a=b-7|0;if((b|0)>=8){$c(c,f,a)}g=(b|0)>13;b=a;if(g){continue}break}}if(!H[e+20>>2]){break _}}b=xl(n,H[n+1384>>2]);if(!b){break Z}a=H[e+20>>2];if(!a){break Z}f=I[b|0];if(!f){break Z}while(1){aa:{ba:{g=f&255;c=g-32|0;if(!((c|0)!=13?c:0)){if((g|0)==I[a|0]){break ba}break aa}c=a;f=I[a|0];if((g|0)==(f|0)){break ba}while(1){ca:{da:{a=f&255;switch(a-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break Z;case 0:case 13:break da;default:break ca}}f=I[c+1|0];a=c+1|0;c=a;if((f|0)!=(g|0)){continue}break ba}break}if(a){break Z}f=jf(z,b,s);if(!f){break Z}c=H[e+20>>2];g=ac(c);b=ac(f);ea:{if((g|0)<=(b|0)){break ea}a=1;if((b|0)>0){while(1){if(I[c+(g-a|0)|0]!=I[(b-a|0)+f|0]){break ea}h=(a|0)==(b|0);a=a+1|0;if(!h){continue}break}}a=g+(b^-1)|0;if((a|0)<=0){break ea}while(1){b=a+c|0;g=I[b|0];h=g-32|0;if(!((1<>>0<=13:0)|(g|0)==95)){F[b+1|0]=0;break ea}b=(a|0)>1;a=a-1|0;if(b){continue}break}}break Y}a=a+1|0}f=I[b+1|0];b=b+1|0;if(f){continue}break}break Z}a=xl(n,H[n+1544>>2]);if(!a){break Z}L=e,M=jf(z,a,s),H[L+20>>2]=M}f=jf(z,11235,s)}H[e+24>>2]=f;a=C?2065:2073;H[e+8>>2]=H[e+8>>2]|(I[n+1396|0]?a|4:a);f=H[n+1400>>2]!=0;a=xl(n,H[n+1392>>2]);fa:{if(!a){break fa}if(fc(a,11389)){if(fc(a,11470)){break fa}}f=f|2}ga:{if(f&2){break ga}a=H[e+24>>2];if(!a){break ga}if(gc(a,11389,4)){if(gc(a,11470,5)){break ga}}f=f|2}H[e+12>>2]=f}b=H[n+1504>>2];if(!((b|0)!=65535|d)){H[e+8>>2]=H[e+8>>2]|512}if(!(!u|(b|0)==65535)){H[e+8>>2]=H[e+8>>2]|4096}a=H[e+36>>2];ha:{ia:{if(a){c=H[e+40>>2];f=0;while(1){ja:{ka:{d=H[c+(f<<2)>>2];switch(J[d+8>>1]){case 0:break ia;case 3:break ka;default:break ja}}if(J[d+10>>1]==1){break ia}}f=f+1|0;if((a|0)!=(f|0)){continue}break}}if((b|0)!=65535&u){break ha}H[s>>2]=e;H[s+4>>2]=1970170211;H[s+8>>2]=65539;b=of(24468,0,s,0);H[s+12>>2]=b;la:{if(!b){break la}b=b&255;if((b|0)==163){break la}if((b|0)!=7){break ha}}H[s+12>>2]=0;if(H[e+92>>2]|(a|0)==H[e+36>>2]){break ia}H[e+92>>2]=H[H[e+40>>2]+(a<<2)>>2]}if(!H[n+152>>2]){break ha}G[s+8>>1]=7;H[s>>2]=e;b=1094995778;f=0;ma:{na:{switch(H[n+148>>2]){case 1:b=1094992453;f=1;break ma;case 0:break ma;default:break na}}b=1094992451;f=2}H[s+4>>2]=b;G[s+10>>1]=f;L=s,M=of(24428,0,s,0),H[L+12>>2]=M}f=H[s+12>>2]}xb=s+16|0;return f|0}function P6(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=+h;i=+i;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=O(0),r=O(0),s=0,t=0,u=0,w=O(0),x=0,y=0,z=0,A=0,B=O(0),D=0,E=O(0),G=0,J=0,N=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,Y=0;j=xb-224|0;xb=j;if(I[a+64|0]){zb[H[H[a>>2]+52>>2]](a,0);zb[H[H[a>>2]+56>>2]](a)}k=H[a+8>>2];u=zb[H[H[k>>2]+32>>2]](k)|0;a:{if(!u){break a}n=M[a+48>>3];p=M[a+56>>3];k=H[a+8>>2];k=zb[H[H[k>>2]+68>>2]](k,g)|0;M[j+176>>3]=M[k>>3];x=M[k+8>>3];M[j+184>>3]=x;z=M[k+16>>3];M[j+192>>3]=z;M[j+200>>3]=M[k+24>>3];y=M[k+32>>3];M[j+208>>3]=y;A=M[k+40>>3];M[j+216>>3]=A;k=H[a+4>>2];zb[H[H[k>>2]+404>>2]](k)|0;k=H[a+4>>2];M[j+104>>3]=p*x/n;M[j+56>>3]=n*z/p;M[j+40>>3]=n*y;M[j+168>>3]=p*A;zb[H[H[k>>2]+396>>2]](k,j+176|0,j+104|0,j+56|0,j+200|0,j+40|0,j+168|0)|0;z=1;A=P(+zb[H[H[u>>2]+8>>2]](u));if(A<5){k=H[a+4>>2];l=j+160|0;o=j+152|0;s=j+136|0;m=j+128|0;zb[H[H[k>>2]+400>>2]](k,j+168|0,l,o,j+144|0,s,m)|0;k=H[a+4>>2];z=M[j+144>>3];n=M[j+168>>3];M[j+176>>3]=n/P(n);M[j+104>>3]=z/P(z);zb[H[H[k>>2]+396>>2]](k,j+176|0,l,o,j+104|0,s,m)|0;A=A*z}M[j+120>>3]=P(A*M[a+56>>3]/25.4*72);k=j+104|0;zb[H[H[u>>2]+12>>2]](k,u);l=H[a+4>>2];o=H[H[l>>2]+236>>2];H[197455]=0;da(o|0,l|0,k|0)|0;k=H[197455];H[197455]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((k|0)==1){break o}k=H[a+4>>2];l=H[H[k>>2]+252>>2];H[197455]=0;da(l|0,k|0,j+120|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break o}H[j+100>>2]=0;k=H[H[u>>2]+16>>2];H[197455]=0;k=aa(k|0,u|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break n}if((k|0)>=551){H[j+100>>2]=H[j+100>>2]|1}k=H[H[u>>2]+20>>2];H[197455]=0;k=aa(k|0,u|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break n}if(k){H[j+100>>2]=H[j+100>>2]|2}k=H[H[u>>2]+28>>2];H[197455]=0;k=aa(k|0,u|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break n}if(k){H[j+100>>2]=H[j+100>>2]|4}k=H[H[u>>2]+24>>2];H[197455]=0;l=aa(k|0,u|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break n}k=H[j+100>>2];if(l){k=k|128;H[j+100>>2]=k}l=H[a+4>>2];H[j+176>>2]=k;k=H[H[l>>2]+260>>2];H[197455]=0;da(k|0,l|0,j+176|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break m}k=H[H[u>>2]+32>>2];H[197455]=0;l=aa(k|0,u|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break l}k=H[a+8>>2];o=H[H[k>>2]+80>>2];H[197455]=0;s=aa(o|0,k|0)|0;m=H[197455];H[197455]=0;k=xb-16|0;xb=k;w=O(+(l|0)/10*3.141592653589793/180);r=w;o=(C(w),v(2));l=o&2147483647;p:{if(l>>>0<=1061752794){if(l>>>0<964689920){break p}r=Nf(+r);break p}if(l>>>0<=1081824209){n=+r;if(l>>>0<=1075235811){if((o|0)<0){r=O(-Of(n+1.5707963267948966));break p}r=Of(n+-1.5707963267948966);break p}r=Nf(-(((o|0)>=0?-3.141592653589793:3.141592653589793)+n));break p}if(l>>>0<=1088565717){n=+r;if(l>>>0<=1085271519){if((o|0)<0){r=Of(n+4.71238898038469);break p}r=O(-Of(n+-4.71238898038469));break p}r=Nf(((o|0)>=0?-6.283185307179586:6.283185307179586)+n);break p}if(l>>>0>=2139095040){r=O(r-r);break p}q:{switch(ay(r,k+8|0)&3){case 0:r=Nf(M[k+8>>3]);break p;case 1:r=Of(M[k+8>>3]);break p;case 2:r=Nf(-M[k+8>>3]);break p;default:break q}}r=O(-Of(M[k+8>>3]))}xb=k+16|0;k=xb-16|0;xb=k;o=(C(w),v(2));l=o&2147483647;r:{if(l>>>0<=1061752794){q=O(1);if(l>>>0<964689920){break r}q=Of(+w);break r}if(l>>>0<=1081824209){n=+w;if(l>>>0>=1075235812){q=O(-Of(((o|0)>=0?-3.141592653589793:3.141592653589793)+n));break r}if((o|0)<0){q=Nf(n+1.5707963267948966);break r}q=Nf(1.5707963267948966-n);break r}if(l>>>0<=1088565717){if(l>>>0>=1085271520){q=Of(((o|0)>=0?-6.283185307179586:6.283185307179586)+ +w);break r}if((o|0)<0){q=Nf(-4.71238898038469-+w);break r}q=Nf(+w+-4.71238898038469);break r}q=O(w-w);if(l>>>0>=2139095040){break r}s:{switch(ay(w,k+8|0)&3){case 0:q=Of(M[k+8>>3]);break r;case 1:q=Nf(-M[k+8>>3]);break r;case 2:q=O(-Of(M[k+8>>3]));break r;default:break s}}q=Nf(M[k+8>>3])}xb=k+16|0;if((m|0)==1){break j}n=M[a+48>>3];k=H[a+8>>2];l=H[H[k>>2]+24>>2];H[197455]=0;p=+za(l|0,k|0);k=H[197455];H[197455]=0;if((k|0)==1){break j}M[j+88>>3]=z*(n*+(s|0)*p);k=H[a+4>>2];l=H[H[k>>2]+276>>2];H[197455]=0;da(l|0,k|0,j+88|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break j}H[j+84>>2]=0;H[j+80>>2]=0;H[j+76>>2]=0;H[j+72>>2]=0;H[j+68>>2]=1065353216;s=H[H[a+8>>2]+20>>2];H[j+64>>2]=0;H[j+56>>2]=0;H[j+60>>2]=0;k=F[b+11|0];l=(k|0)<0;k=l?H[b+4>>2]:k&255;if((k|0)<=0){break g}o=l?H[b>>2]:b;m=o+(k<<2)|0;l=o;while(1){if(!k){break g}k=ig(l,10,k);if(!k){break g}if(!oi(k,396284,1)){break k}l=k+4|0;t=m-l|0;k=t>>2;if((t|0)>=4){continue}break}break g}f=$()|0;_()|0;break d}f=$()|0;_()|0;break d}f=$()|0;_()|0;break d}f=$()|0;_()|0;break d}if((k|0)==(m|0)|(k-o|0)==-4){break g}l=I[b+11|0];k=l<<24>>24<0;l=k?H[b+4>>2]:l;if(!l){break f}m=k?H[b>>2]:b;k=0;while(1){k=(k<<2)+m|0;l=(l<<2)+m|0;while(1){if(ig(396284,H[k>>2],1)){k=k+4|0;if((l|0)!=(k|0)){continue}break f}break}o=k-m|0;if((o|0)==-4){break f}k=-1;m=I[b+11|0];l=m<<24>>24<0;t=l?H[b+4>>2]:m;m=o>>2;if(t>>>0>=m>>>0){o=t<<2;t=l?H[b>>2]:b;o=o+t|0;k=t+(m<<2)|0;l=o-k|0;t:{u:{if((l|0)<4){break u}while(1){k=ig(k,10,l>>>2|0);if(!k){break u}if(!oi(k,396284,1)){break t}k=k+4|0;l=o-k|0;if((l|0)>3){continue}break}}k=o}k=(k|0)==(o|0)?-1:k-t>>2}H[197455]=0;o=pa(1645,j+176|0,b|0,m|0,k-m|0,b|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break i}l=H[j+60>>2];v:{if(l>>>0>2]){o=H[j+180>>2];H[l>>2]=H[j+176>>2];H[l+4>>2]=o;H[l+8>>2]=H[j+184>>2];H[j+60>>2]=l+12;break v}H[197455]=0;ba(1646,j+56|0,o|0);l=H[197455];H[197455]=0;if((l|0)==1){break h}if(F[j+187|0]>=0){break v}Kb(H[j+176>>2])}l=I[b+11|0];o=l<<24>>24<0;m=o?H[b>>2]:b;l=o?H[b+4>>2]:l;if(l>>>0>k>>>0){continue}break}break f}f=$()|0;_()|0;break d}f=$()|0;_()|0;break e}f=$()|0;_()|0;if(F[j+187|0]>=0){break e}Kb(H[j+176>>2]);break e}w:{x:{y:{if(F[b+11|0]>=0){H[j+184>>2]=H[b+8>>2];k=H[b+4>>2];H[j+176>>2]=H[b>>2];H[j+180>>2]=k;break y}k=H[b+4>>2];b=H[b>>2];H[197455]=0;ga(1647,j+176|0,b|0,k|0);b=H[197455];H[197455]=0;if((b|0)==1){break x}}H[197455]=0;ga(1648,j+56|0,j+176|0,j+188|0);b=H[197455];H[197455]=0;if((b|0)==1){break w}if(F[j+187|0]>=0){break f}Kb(H[j+176>>2]);break f}f=$()|0;_()|0;break e}f=$()|0;_()|0;if(F[j+187|0]>=0){break e}Kb(H[j+176>>2]);break e}l=H[j+56>>2];J=H[j+60>>2];if((l|0)==(J|0)){break b}x=+q;R=(f|0)!=0&c>>>0>1;o=(g|0)==1;S=z*e;T=z*d;b=c-1|0;U=b&-4;N=b&3;d=+r;y=i>0?-d:d;V=-y;e=0;r=O(0);W=c-2>>>0>2;z:{A:{B:{C:{D:{while(1){E:{F:{G:{if(!s){b=I[l+11|0];k=b<<24>>24;if(!f){m=H[l+4>>2];break G}m=H[l+4>>2];c=(k|0)<0?m:b;if(!c){break G}G=c-1|0;H:{if(!G){p=0;break H}p=0;m=0;k=0;if(c-2>>>0>=3){Y=G&-4;b=0;while(1){t=k<<3;p=p+M[t+f>>3]+M[(t|8)+f>>3]+M[(t|16)+f>>3]+M[(t|24)+f>>3];k=k+4|0;b=b+4|0;if((Y|0)!=(b|0)){continue}break}}b=G&3;if(!b){break H}while(1){p=p+M[(k<<3)+f>>3];k=k+1|0;m=m+1|0;if((b|0)!=(m|0)){continue}break}}d=M[j+120>>3];p=d*+(c>>>0)+p;break F}H[j+176>>2]=0;H[j+180>>2]=1079115776;H[j+40>>2]=0;H[j+44>>2]=1079115776;b=H[H[s>>2]+144>>2];H[197455]=0;ma(b|0,s|0,j+104|0,j+120|0,j+100|0,j+176|0,j+40|0)|0;b=H[197455];H[197455]=0;I:{J:{K:{if((b|0)!=1){M[j+176>>3]=M[j+88>>3]*72/25.4;b=H[H[s>>2]+32>>2];H[197455]=0;ba(b|0,s|0,j+176|0);b=H[197455];H[197455]=0;L:{M:{if((b|0)!=1){b=H[H[s>>2]+24>>2];H[197455]=0;d=M[j+120>>3];b=aa(b|0,s|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break M}N:{if(!b){n=d;break N}c=H[H[b>>2]+36>>2];H[197455]=0;c=aa(c|0,b|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break M}k=H[H[b>>2]+40>>2];H[197455]=0;k=aa(k|0,b|0)|0;m=H[197455];H[197455]=0;if((m|0)==1){break M}m=H[H[b>>2]+32>>2];H[197455]=0;m=aa(m|0,b|0)|0;t=H[197455];H[197455]=0;if((t|0)==1){break M}t=H[H[b>>2]+40>>2];H[197455]=0;b=aa(t|0,b|0)|0;t=H[197455];H[197455]=0;if((t|0)==1){break M}n=d*(+((c|0)/(k|0)|0)*.35277777777777775);d=d*(+((m|0)/(b|0)|0)*.35277777777777775)}if(!R){break L}p=0;m=0;k=0;b=0;if(W){break K}break J}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}H[j+176>>2]=0;H[j+40>>2]=0;b=H[H[s>>2]+84>>2];H[197455]=0;la(b|0,s|0,l|0,j+176|0,j+40|0)|0;b=H[197455];H[197455]=0;O:{if((b|0)!=1){b=H[H[s>>2]+120>>2];H[197455]=0;ba(b|0,j+176|0,s|0);b=H[197455];H[197455]=0;if((b|0)==1){break O}q=L[j+176>>2];r=O(q*O(.35277777910232544));q=O(O(L[j+180>>2]-q)*O(.35277777910232544));break I}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}while(1){c=k<<3;p=p+M[c+f>>3]+M[(c|8)+f>>3]+M[(c|16)+f>>3]+M[(c|24)+f>>3];k=k+4|0;b=b+4|0;if((U|0)!=(b|0)){continue}break}}if(N){while(1){p=p+M[(k<<3)+f>>3];k=k+1|0;m=m+1|0;if((N|0)!=(m|0)){continue}break}}D=M[a+48>>3];H[j+48>>2]=0;H[j+40>>2]=0;H[j+44>>2]=0;b=I[l+11|0];c=H[l+4>>2];H[197455]=0;b=da(1649,l|0,(b<<24>>24<0?c:b)-1|0)|0;c=H[197455];H[197455]=0;P:{if((c|0)==1){break P}b=H[b>>2];H[197455]=0;ba(1650,j+40|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break P}H[j+176>>2]=0;H[j+32>>2]=0;b=H[H[s>>2]+84>>2];H[197455]=0;la(b|0,s|0,j+40|0,j+176|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break P}b=H[H[s>>2]+120>>2];H[197455]=0;ba(b|0,j+176|0,s|0);b=H[197455];H[197455]=0;if((b|0)==1){break P}p=+O(L[j+180>>2]-L[j+176>>2])*.35277777777777775+p*D;if(F[j+51|0]<0){Kb(H[j+40>>2])}q=O(p);r=O(0);break I}f=$()|0;_()|0;if(F[j+51|0]>=0){break e}Kb(H[j+40>>2]);break e}b=H[H[s>>2]+184>>2];H[197455]=0;ma(b|0,s|0,j+84|0,j+80|0,j+76|0,j+72|0,j+68|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){L[j+80>>2]=L[j+80>>2]*O(.35277777910232544);L[j+72>>2]=L[j+72>>2]*O(.35277777910232544);L[j+68>>2]=L[j+68>>2]*O(.17638888955116272);L[j+84>>2]=r;L[j+76>>2]=q+r;E=O(-O(n-P(d)));break E}f=$()|0;_()|0;break e}d=M[j+120>>3];p=d*+(((k|0)<0?m:b)>>>0)}n=d*1.2;q=O(p)}d=M[a+24>>3];D=M[a+56>>3];M[j+176>>3]=M[a+48>>3]*T+M[a+16>>3];M[j+40>>3]=e+(d+D*S);b=H[a+8>>2];c=H[H[b>>2]+44>>2];H[197455]=0;b=aa(c|0,b|0)|0;c=H[197455];H[197455]=0;Q:{R:{if((c|0)!=1){c=H[a+8>>2];k=H[H[c>>2]+44>>2];H[197455]=0;c=aa(k|0,c|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break z}w=O(n);k=(b&31)-(b&1)|0;if(!(k&24)){break R}k=k-24|0;break Q}f=$()|0;_()|0;break e}b=c>>>8|0;if(!(!(k&8)&(b|0)!=2)){d=+O(O(E*O(.5))+w);M[j+176>>3]=d*y+M[j+176>>3];M[j+40>>3]=M[j+40>>3]-d*x;k=(b|0)==2?k:k-8|0;break Q}if((b|0)==6){d=+O(O(O(E*O(.5))+w)*O(.5));M[j+176>>3]=M[j+176>>3]-d*y;M[j+40>>3]=d*x+M[j+40>>3];break Q}d=+E;M[j+176>>3]=d*y+M[j+176>>3];M[j+40>>3]=M[j+40>>3]-d*x}S:{T:{switch(k-2|0){case 0:d=+O(-q);M[j+176>>3]=d*x+M[j+176>>3];M[j+40>>3]=d*y+M[j+40>>3];break S;case 4:break T;default:break S}}d=+O(q*O(-.5));M[j+176>>3]=d*x+M[j+176>>3];M[j+40>>3]=d*y+M[j+40>>3]}b=H[H[u>>2]+28>>2];H[197455]=0;b=aa(b|0,u|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break z}if(b){B=O(M[j+176>>3]);L[j+84>>2]=L[j+84>>2]+B;L[j+76>>2]=L[j+76>>2]+B;B=O(M[j+40>>3]);L[j+80>>2]=L[j+80>>2]+B;L[j+72>>2]=L[j+72>>2]+B}U:{if((g|0)!=1){break U}b=H[a+4>>2];c=H[H[b>>2]+400>>2];H[197455]=0;Aa(c|0,b|0,j+168|0,j+160|0,j+152|0,j+144|0,j+136|0,j+128|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break A}p=0;d=0;if(h<-1e-5){n=+O(P(q));M[j+176>>3]=M[j+176>>3]+n;b=H[a+8>>2];c=H[H[b>>2]+88>>2];H[197455]=0;b=aa(c|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break A}d=M[j+176>>3];V:{if(b){d=d+d-n;n=M[j+168>>3];d=d*n;break V}d=d+d+n;n=M[j+168>>3];d=d*n}M[j+168>>3]=P(n)}if(i<-1e-5){p=M[j+144>>3];M[j+144>>3]=P(p);Q=+O(P(w));n=M[j+40>>3]+Q;M[j+40>>3]=n;p=p*(n+n-Q)}b=H[a+4>>2];c=H[H[b>>2]+404>>2];H[197455]=0;aa(c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break A}b=H[a+4>>2];M[j+32>>3]=d+M[j+136>>3];M[j+24>>3]=p+M[j+128>>3];c=H[H[b>>2]+396>>2];H[197455]=0;Aa(c|0,b|0,j+168|0,j+160|0,j+152|0,j+144|0,j+32|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break U}f=$()|0;_()|0;break e}b=H[H[u>>2]+32>>2];H[197455]=0;b=aa(b|0,u|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break B}c=o;W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{if(b){b=H[a+4>>2];c=H[H[b>>2]+400>>2];H[197455]=0;Aa(c|0,b|0,j+168|0,j+160|0,j+152|0,j+144|0,j+136|0,j+128|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}d=M[j+176>>3];n=M[j+40>>3];M[j+176>>3]=d*x+y*n;M[j+40>>3]=n*x-y*d;b=H[a+4>>2];c=H[H[b>>2]+404>>2];H[197455]=0;aa(c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ea}b=H[a+4>>2];d=M[j+168>>3];M[j+32>>3]=d*x;n=M[j+144>>3];M[j+24>>3]=y*n;M[j+16>>3]=d*V;M[j+8>>3]=n*x;c=H[H[b>>2]+396>>2];H[197455]=0;Aa(c|0,b|0,j+32|0,j+24|0,j+16|0,j+8|0,j+136|0,j+128|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break da}c=1}b=H[a+8>>2];k=H[H[b>>2]+48>>2];H[197455]=0;b=aa(k|0,b|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break B}if((b|0)!=2){break W}b=H[a+4>>2];k=H[H[b>>2]+136>>2];H[197455]=0;da(k|0,b|0,396292)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}b=H[a+4>>2];H[j+32>>2]=255;k=H[H[b>>2]+152>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ca}b=H[a+4>>2];k=H[a+8>>2];m=H[H[k>>2]+52>>2];H[197455]=0;k=aa(m|0,k|0)|0;m=H[197455];H[197455]=0;if((m|0)==1){break ba}H[j+32>>2]=k;k=H[H[b>>2]+144>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ba}b=H[a+4>>2];H[j+32>>2]=4;k=H[H[b>>2]+308>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break aa}b=H[a+4>>2];k=H[H[b>>2]+352>>2];H[197455]=0;aa(k|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}b=H[a+4>>2];d=+r;M[j+32>>3]=M[j+176>>3]+d;n=+E;M[j+24>>3]=M[j+40>>3]+n;k=H[H[b>>2]+316>>2];H[197455]=0;ca(k|0,b|0,j+32|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break $}b=H[a+4>>2];p=+q;M[j+32>>3]=M[j+176>>3]+d+p;M[j+24>>3]=M[j+40>>3]+n;k=H[H[b>>2]+320>>2];H[197455]=0;ca(k|0,b|0,j+32|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break _}b=H[a+4>>2];M[j+32>>3]=M[j+176>>3]+d+p;p=+w;M[j+24>>3]=M[j+40>>3]+n+p;k=H[H[b>>2]+320>>2];H[197455]=0;ca(k|0,b|0,j+32|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Z}b=H[a+4>>2];M[j+32>>3]=M[j+176>>3]+d;M[j+24>>3]=M[j+40>>3]+n+p;k=H[H[b>>2]+320>>2];H[197455]=0;ca(k|0,b|0,j+32|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Y}b=H[a+4>>2];k=H[H[b>>2]+348>>2];H[197455]=0;da(k|0,b|0,396296)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}b=H[a+4>>2];H[j+32>>2]=4;k=H[H[b>>2]+312>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break X}b=H[a+4>>2];k=H[H[b>>2]+344>>2];H[197455]=0;aa(k|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break W}break B}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}b=H[H[u>>2]+28>>2];H[197455]=0;b=aa(b|0,u|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break B}fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{if(b){b=H[a+4>>2];M[j+32>>3]=L[j+68>>2];k=H[H[b>>2]+68>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ma}b=H[a+4>>2];F[j+32|0]=0;k=H[H[b>>2]+92>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break la}b=H[a+4>>2];F[j+32|0]=0;k=H[H[b>>2]+84>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ka}b=H[a+4>>2];H[j+32>>2]=4;k=H[H[b>>2]+308>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ja}b=H[a+4>>2];k=H[H[b>>2]+352>>2];H[197455]=0;aa(k|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}b=H[a+4>>2];M[j+32>>3]=L[j+84>>2];M[j+24>>3]=L[j+80>>2];k=H[H[b>>2]+316>>2];H[197455]=0;ca(k|0,b|0,j+32|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ia}b=H[a+4>>2];M[j+32>>3]=L[j+76>>2];M[j+24>>3]=L[j+72>>2];k=H[H[b>>2]+320>>2];H[197455]=0;ca(k|0,b|0,j+32|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ha}b=H[a+4>>2];k=H[H[b>>2]+348>>2];H[197455]=0;da(k|0,b|0,396300)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}b=H[a+4>>2];H[j+32>>2]=4;k=H[H[b>>2]+312>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break ga}b=H[a+4>>2];k=H[H[b>>2]+344>>2];H[197455]=0;aa(k|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}}b=H[a+4>>2];k=H[H[b>>2]+136>>2];H[197455]=0;da(k|0,b|0,396292)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}b=H[a+4>>2];k=H[a+8>>2];m=H[H[k>>2]+28>>2];H[197455]=0;k=aa(m|0,k|0)|0;m=H[197455];H[197455]=0;if((m|0)!=1){H[j+32>>2]=k;k=H[H[b>>2]+144>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break fa}}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}b=H[a+4>>2];H[j+32>>2]=255;k=H[H[b>>2]+152>>2];H[197455]=0;da(k|0,b|0,j+32|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){na:{if(!f){b=H[a+4>>2];H[j+32>>2]=0;H[j+36>>2]=0;H[j+24>>2]=0;H[j+28>>2]=0;k=H[H[b>>2]+292>>2];H[197455]=0;ma(k|0,b|0,l|0,j+176|0,j+40|0,j+32|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break na}f=$()|0;_()|0;break e}H[197455]=0;H[j+8>>2]=0;b=da(1651,l|0,j+8|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break D}if(!b|!H[j+8>>2]){break na}d=z*M[a+48>>3];p=0;k=0;while(1){m=H[a+4>>2];H[j+4>>2]=H[b+(k<<2)>>2];M[j+32>>3]=p+M[j+176>>3];H[j+24>>2]=0;H[j+28>>2]=0;H[j+16>>2]=0;H[j+20>>2]=0;t=H[H[m>>2]+288>>2];H[197455]=0;ma(t|0,m|0,j+4|0,j+32|0,j+40|0,j+24|0,j+16|0)|0;m=H[197455];H[197455]=0;if((m|0)==1){break C}p=M[(k<<3)+f>>3]*d+p;k=k+1|0;if(k>>>0>2]){continue}break}Kb(b)}if(c){b=H[a+4>>2];c=H[H[b>>2]+404>>2];H[197455]=0;aa(c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}}e=A*D*1.5+e;l=l+12|0;if((J|0)==(l|0)){break c}continue}break}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0;break e}f=$()|0;_()|0}zr(j+56|0)}if(F[j+115|0]<0){Kb(H[j+104>>2])}ea(f|0);X()}l=H[j+56>>2]}if(l){k=H[j+60>>2];if((l|0)==(k|0)){a=l}else{while(1){a=k-12|0;if(F[k-1|0]<0){Kb(H[a>>2])}k=a;if((l|0)!=(k|0)){continue}break}a=H[j+56>>2]}H[j+60>>2]=l;Kb(a)}if(F[j+115|0]>=0){break a}Kb(H[j+104>>2])}xb=j+224|0}function Jla(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=O(0),n=0,o=0,p=0,q=O(0),r=0,s=0,t=0,u=O(0),v=0,w=0,x=0,y=0;l=1;h=xb-48|0;xb=h;n=b+148|0;g=H[n>>2];a:{b:{if(g){break b}v=n-148|0;while(1){p=H[v>>2];if(!p){g=163632;break b}c:{g=oc(1,8);if(g){H[h+8>>2]=0;H[h+12>>2]=0;H[h+16>>2]=0;H[h+20>>2]=0;F[h+24|0]=0;H[h+28>>2]=0;H[h+32>>2]=0;H[h>>2]=0;H[h+4>>2]=0;e=kd(p);F[h+40|0]=1;H[h+36>>2]=e;f=dd(p,1935829368);i=0;o=xb-16|0;xb=o;if(!(!f|!H[f>>2])){H[f>>2]=H[f>>2]+1}e=f;H[h+32>>2]=f;d:{e:{f:{g:{h:{while(1){F[h+24|0]=i;i=H[e+12>>2];H[h+4>>2]=i;r=H[e+16>>2];H[h+8>>2]=r+i;k=1073741823;H[h+28>>2]=0;if(r>>>0<=67108862){k=r<<6;k=k>>>0>16384?k:16384;k=k>>>0<1073741823?k:1073741823}H[h+12>>2]=k;H[h+20>>2]=0;H[h>>2]=0;if(!i){Wb(e);H[h+32>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;break d}if((r|0)<=7){break g}H[h+12>>2]=k-8;if(!(I[i|0]|I[i+1|0]<<8)){break g}H[o+8>>2]=i;i:{e=i+4|0;if(sG(e,h,o+8|0)){if(!H[h+28>>2]){break i}H[h+28>>2]=0;if(i>>>0>2]){break g}k=H[h+8>>2];if(k>>>0>>0|k-i>>>0<=7){break g}k=H[h+12>>2]-8|0;H[h+12>>2]=k;if(!(I[i|0]|I[i+1|0]<<8)|(k|0)<=0){break g}H[o+12>>2]=i;i=sG(e,h,o+12|0);e=H[h+32>>2];if(H[h+28>>2]){break f}Wb(e);H[h+32>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;if(i){break h}break e}if(I[h+24|0]|!H[h+28>>2]){break g}k=ve(f);H[h+4>>2]=k;H[h+8>>2]=k+H[f+16>>2];e=H[h+32>>2];i=1;if(k){continue}break f}break}Wb(H[h+32>>2]);H[h+32>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0}if(H[f+4>>2]){H[f+4>>2]=0}break d}e=H[h+32>>2]}Wb(e);H[h+32>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0}Wb(f);f=163632}xb=o+16|0;H[g>>2]=f;e=H[p+32>>2];if((e|0)==-1){e=De(p)}H[g+4>>2]=e;e=H[n>>2];H[n>>2]=e?e:g;if(!e){break b}e=H[g>>2];H[197455]=0;ia(579,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break a}Kb(g);break c}g=163632;e=H[n>>2];H[n>>2]=e?e:163632;if(e){break c}break b}g=H[n>>2];if(!g){continue}break}}xb=h+48|0;n=xb-16|0;xb=n;k=g;e=H[g>>2];e=e?e:163632;e=K[e+16>>2]<8?163632:H[e+12>>2];if(I[e|0]|I[e+1|0]<<8){H[n+12>>2]=0;H[n+8>>2]=0;H[n+4>>2]=0;e=c;i=H[k>>2];f=i?i:163632;o=K[f+16>>2]<8?163632:H[f+12>>2];f=I[o+4|0]|I[o+5|0]<<8|(I[o+6|0]<<16|I[o+7|0]<<24);p=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);if(p){if((p|0)!=1){f=H[a+56>>2];g=H[a+60>>2];f=f>>>0>g>>>0?f:g;r=f?f:1073741824;f=I[o+8|0]|I[o+9|0]<<8|(I[o+10|0]<<16|I[o+11|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);f=f?f+o|0:163632;f=I[f|0]|I[f+1|0]<<8;h=(f<<8|f>>>8)&65535;f=1;while(1){g=f>>>0

>>0?(o+(f<<2)|0)+8|0:163632;g=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);g=g?g+o|0:163632;g=I[g|0]|I[g+1|0]<<8;g=(g<<8|g>>>8)&65535;if(!(!(g>>>0>=r>>>0&g>>>0>>0)&(g>>>0<=h>>>0|h>>>0>=r>>>0))){j=f;h=g}f=f+1|0;if((p|0)!=(f|0)){continue}break}}f=j>>>0

>>0?(o+(j<<2)|0)+8|0:163632;f=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);g=f?f+o|0:163632}else{g=163632}o=I[g|0]|I[g+1|0]<<8;j=163632;j:{if(!o){break j}r=H[k+4>>2];v=g-H[i+12>>2]|0;w=H[i+16>>2]-v|0;k=g+4|0;f=8;k:{while(1){j=f;l:{m:{if(e>>>0>=r>>>0){break m}f=e+1|0;f=(f|0)<0?163632:k+(f<<2)|0;f=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);e=(e|0)<0?163632:k+(e<<2)|0;e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);h=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(f>>>0<=h>>>0){break m}e=f-h|0;if(e>>>0<9){break m}if(f>>>0<=w>>>0){break l}}j=163632;break j}p=e-8|0;e=h?g+h|0:163632;f=I[e+4|0]|I[e+5|0]<<8|(I[e+6|0]<<16|I[e+7|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);if((f|0)!=1685418085){break k}if(p>>>0>=2){e=I[e+8|0]|I[e+9|0]<<8;e=(e<<8|e>>>8)&65535;f=j-1|0;if(j){continue}}break}j=163632;break j}j=163632;if((f|0)!=1886283552){break j}f=n+4|0;if(f){H[f>>2]=(o<<8|o>>>8)&65535}f=n+12|0;if(f){j=f;f=I[e|0]|I[e+1|0]<<8;H[j>>2]=(f<<8|f>>>8)<<16>>16}f=n+8|0;if(f){e=I[e+2|0]|I[e+3|0]<<8;H[f>>2]=(e<<8|e>>>8)<<16>>16}j=ct(i,(h+v|0)+8|0,p)}h=j;e=H[h+12>>2];g=H[h+16>>2];f=H[n+12>>2];H[d>>2]=f;g=g>>>0<29?163632:e;e=I[g+20|0]|I[g+21|0]<<8|(I[g+22|0]<<16|I[g+23|0]<<24);e=H[n+8>>2]+(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))|0;H[d+4>>2]=e;j=I[g+16|0]|I[g+17|0]<<8|(I[g+18|0]<<16|I[g+19|0]<<24);j=j<<24|j<<8&16711680|(j>>>8&65280|j>>>24);H[d+8>>2]=j;g=I[g+20|0]|I[g+21|0]<<8|(I[g+22|0]<<16|I[g+23|0]<<24);i=0-(g<<24|g<<8&16711680|(g>>>8&65280|g>>>24))|0;H[d+12>>2]=i;w=d;g=H[n+4>>2];n:{if(g){e=H[a+16>>2];j=H[e+28>>2];if(!j){j=kc(e);f=H[d>>2];g=H[n+4>>2];e=H[a+16>>2]}m=O(O(j>>>0)/O(g>>>0));q=O(m*O(f|0));j=H[a+20>>2];f=H[e+28>>2];if(!f){f=kc(e);e=H[a+16>>2]}q=O(T(O(O(O(q*O(j|0))/O(f>>>0))+O(.5))));o:{if(O(P(q))>2]=f;q=O(m*O(H[d+4>>2]));j=H[a+24>>2];f=H[e+28>>2];if(!f){f=kc(e);e=H[a+16>>2]}q=O(T(O(O(O(q*O(j|0))/O(f>>>0))+O(.5))));p:{if(O(P(q))>2]=f;q=O(m*O(H[d+8>>2]));j=H[a+20>>2];f=H[e+28>>2];if(!f){f=kc(e);e=H[a+16>>2]}q=O(T(O(O(O(q*O(j|0))/O(f>>>0))+O(.5))));q:{if(O(P(q))>2]=f;u=O(O(m*O(H[d+12>>2]))*O(H[a+24>>2]));f=H[e+28>>2];if(!f){f=kc(e)}m=O(T(O(O(u/O(f>>>0))+O(.5))));if(O(P(m))>2];p=g;r=H[a+40>>2];g=f<<16;f=g>>31;g=gma(r,p,g>>16,f)+32768|0;f=yb;f=g>>>0<32768?f+1|0:f;H[d>>2]=(f&65535)<<16|g>>>16;k=H[a+48>>2];o=H[a+52>>2];g=j<<16;f=g>>31;f=gma(r,p,g>>16,f)+32768|0;g=yb;g=f>>>0<32768?g+1|0:g;H[d+8>>2]=(g&65535)<<16|f>>>16;f=e<<16;g=f>>31;f=gma(k,o,f>>16,g)+32768|0;e=yb;e=f>>>0<32768?e+1|0:e;H[d+4>>2]=(e&65535)<<16|f>>>16;g=i<<16;e=g>>31;e=gma(k,o,g>>16,e)+32768|0;f=yb;f=e>>>0<32768?f+1|0:f;e=(f&65535)<<16|e>>>16}H[w+12>>2]=e;Wb(h);e=H[n+4>>2]!=0}else{e=0}xb=n+16|0;r:{s:{if(e){break s}e=H[b+60>>2];t:{if(e){break t}while(1){f=H[b>>2];if(!f){e=163632;break t}u:{e=oc(1,28);if(e){nl(e,f);f=H[b+60>>2];H[b+60>>2]=f?f:e;if(!f){break t}f=H[e+24>>2];H[197455]=0;ia(579,f|0);f=H[197455];H[197455]=0;if((f|0)==1){break r}Kb(e);break u}e=163632;f=H[b+60>>2];H[b+60>>2]=f?f:163632;if(f){break u}break t}e=H[b+60>>2];if(!e){continue}break}}if(lG(e,a,c,d)){break s}e=H[b+64>>2];v:{if(e){break v}while(1){f=H[b>>2];if(!f){e=163632;break v}e=oc(1,244);w:{if(e){g=Nn(e,f);f=H[b+64>>2];H[b+64>>2]=f?f:e;if(!f){break v}ol(g);Kb(e);break w}e=163632;f=H[b+64>>2];H[b+64>>2]=f?f:163632;if(!f){break v}}e=H[b+64>>2];if(!e){continue}break}}f=xb-32|0;xb=f;H[f+24>>2]=0;H[f+28>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f>>2]=0;H[f+4>>2]=0;k=Rn(e,c,f,0);x:{if(!k){break x}s=M[f+16>>3];t=M[f>>3];y:{if(!(s>t)){H[d>>2]=0;H[d+8>>2]=0;break y}h=H[a+20>>2];m=O(t);j=H[a+16>>2];g=H[j+28>>2];if(g){e=h}else{g=kc(j);j=H[a+16>>2];e=H[a+20>>2]}i=e;m=O(T(O(O(O(m*O(h|0))/O(g>>>0))+O(.5))));z:{if(O(P(m))>2]=e;g=H[j+28>>2];if(!g){g=kc(j);e=H[d>>2]}m=O(T(O(O(O(O(s)*O(i|0))/O(g>>>0))+O(.5))));A:{if(O(P(m))>2]=j-e}s=M[f+24>>3];t=M[f+8>>3];if(!(s>t)){H[d+4>>2]=0;H[d+12>>2]=0;break x}h=H[a+24>>2];m=O(s);j=H[a+16>>2];g=H[j+28>>2];if(g){e=h}else{g=kc(j);j=H[a+16>>2];e=H[a+24>>2]}i=e;m=O(T(O(O(O(m*O(h|0))/O(g>>>0))+O(.5))));B:{if(O(P(m))>2]=g;e=H[j+28>>2];if(!e){e=kc(j);g=H[d+4>>2]}m=O(T(O(O(O(O(t)*O(i|0))/O(e>>>0))+O(.5))));C:{if(O(P(m))>2]=e-g}xb=f+32|0;if(k){break s}e=H[b+68>>2];D:{if(e){break D}while(1){f=H[b>>2];if(!f){e=163632;break D}e=oc(1,132);E:{if(e){g=kG(e,f);f=H[b+68>>2];H[b+68>>2]=f?f:e;if(!f){break D}hs(g);Kb(e);break E}e=163632;f=H[b+68>>2];H[b+68>>2]=f?f:163632;if(!f){break D}}e=H[b+68>>2];if(!e){continue}break}}f=0;j=0;g=0;i=xb-240|0;xb=i;F:{G:{if(!(!H[e>>2]|K[e+128>>2]<=c>>>0)){o=xG(H[e+96>>2],c);F[i+72|0]=0;f=i- -64|0;H[f>>2]=0;H[f+4>>2]=0;H[i+92>>2]=0;H[i+84>>2]=0;H[i+88>>2]=0;H[i+108>>2]=0;H[i+112>>2]=0;F[i+116|0]=0;H[i+160>>2]=0;H[i+152>>2]=0;H[i+156>>2]=0;H[i+192>>2]=0;H[i+196>>2]=0;H[i+228>>2]=0;H[i+56>>2]=0;H[i+60>>2]=0;H[i+100>>2]=0;H[i+104>>2]=0;H[i+184>>2]=0;H[i+188>>2]=0;H[i+220>>2]=0;H[i+224>>2]=0;k=H[e+88>>2];f=I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24);r=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);H:{if(r>>>0<=c>>>0){H[i+48>>2]=H[40910];f=H[40909];H[i+40>>2]=H[40908];H[i+44>>2]=f;break H}n=I[k+4|0];I:{if(!n){break I}p=n&3;f=(k+N(c,n)|0)+5|0;if(n-1>>>0<3){j=0}else{v=n&252;while(1){h=f;f=f+4|0;j=j+4|0;if((v|0)!=(j|0)){continue}break}j=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);j=j<<24|j<<8&16711680|(j>>>8&65280|j>>>24)}if(!p){break I}while(1){j=I[f|0]|j<<8;f=f+1|0;g=g+1|0;if((p|0)!=(g|0)){continue}break}}H[197455]=0;f=pl(k,c);g=H[197455];H[197455]=0;if((g|0)==1){break G}H[i+48>>2]=0;H[i+44>>2]=f;H[i+40>>2]=((k+N(n,r+1|0)|0)+j|0)+4}h=H[(o>>>0>2]?H[e+124>>2]+N(o,28)|0:163632)+20>>2];f=H[a+68>>2];j=H[a+72>>2];k=H[e+80>>2];g=0;H[197455]=0;ka(652,i+56|0,i+40|0,k|0,h|0);h=H[197455];H[197455]=0;if((h|0)==1){break G}H[i+204>>2]=f;H[i+200>>2]=j;h=H[e+84>>2];H[i+208>>2]=h;F[i+233|0]=0;F[i+234|0]=0;H[i+228>>2]=0;H[i+220>>2]=0;H[i+224>>2]=0;F[i+232|0]=!j|!f?g:(I[h|0]|I[h+1|0]<<8)!=0;H[i+216>>2]=H[(o>>>0>2]?H[e+124>>2]+N(o,28)|0:163632)+24>>2];H[197455]=0;H[i+32>>2]=0;H[i+36>>2]=-1042284544;H[i+24>>2]=0;H[i+28>>2]=-1042284544;H[i+16>>2]=-4194304;H[i+20>>2]=1105199103;H[i+8>>2]=-4194304;H[i+12>>2]=1105199103;F[i|0]=0;f=da(653,i+56|0,i|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break G}J:{if(!f){break J}s=M[i+24>>3];t=M[i+8>>3];K:{if(!(s>t)){H[d>>2]=0;H[d+8>>2]=0;break K}j=H[a+20>>2];g=H[a+16>>2];h=H[g+28>>2];if(h){e=j}else{H[197455]=0;h=aa(654,g|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break G}g=H[a+16>>2];s=M[i+24>>3];e=H[a+20>>2]}m=O(T(O(O(O(O(t)*O(j|0))/O(h>>>0))+O(.5))));L:{if(O(P(m))>2]=j;h=H[g+28>>2];if(!h){H[197455]=0;h=aa(654,g|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break G}j=H[d>>2]}m=O(T(O(O(O(O(s)*O(e|0))/O(h>>>0))+O(.5))));M:{if(O(P(m))>2]=e-j}s=M[i+16>>3];t=M[i+32>>3];if(!(s>2]=0;H[d+12>>2]=0;break J}j=H[a+24>>2];g=H[a+16>>2];h=H[g+28>>2];if(h){e=j}else{H[197455]=0;h=aa(654,g|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break G}g=H[a+16>>2];s=M[i+16>>3];e=H[a+24>>2]}m=O(T(O(O(O(O(t)*O(j|0))/O(h>>>0))+O(.5))));N:{if(O(P(m))>2]=j;h=H[g+28>>2];if(!h){H[197455]=0;h=aa(654,g|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break G}j=H[d+4>>2]}m=O(T(O(O(O(O(s)*O(e|0))/O(h>>>0))+O(.5))));O:{if(O(P(m))>2]=e-j}Pn(i+56|0)}xb=i+240|0;break F}a=$()|0;_()|0;Pn(i+56|0);ea(a|0);X()}if(f){break s}l=H[b+144>>2];P:{if(l){break P}while(1){j=H[b>>2];if(!j){l=163632;break P}h=0;g=xb-48|0;xb=g;f=oc(1,12);if(f){H[g+8>>2]=0;H[g+12>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;F[g+24|0]=0;H[g+28>>2]=0;H[g+32>>2]=0;H[g>>2]=0;H[g+4>>2]=0;e=kd(j);F[g+40|0]=1;H[g+36>>2]=e;l=dd(j,1128418371);i=xb-16|0;xb=i;if(!(!l|!H[l>>2])){H[l>>2]=H[l>>2]+1}e=l;H[g+32>>2]=e;Q:{R:{S:{T:{U:{while(1){F[g+24|0]=h;h=H[e+12>>2];H[g+4>>2]=h;n=H[e+16>>2];H[g+8>>2]=n+h;k=1073741823;H[g+28>>2]=0;if(n>>>0<=67108862){k=n<<6;k=k>>>0>16384?k:16384;k=k>>>0<1073741823?k:1073741823}H[g+12>>2]=k;H[g+20>>2]=0;H[g>>2]=0;if(!h){Wb(e);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;break Q}if((n|0)<=7){break T}H[g+12>>2]=k-8;if(((I[h|0]|I[h+1|0]<<8)&65279)!=512){break T}H[i+8>>2]=h;V:{e=h+4|0;if(tG(e,g,i+8|0)){if(!H[g+28>>2]){break V}H[g+28>>2]=0;if(h>>>0>2]){break T}k=H[g+8>>2];if(k>>>0>>0|k-h>>>0<=7){break T}k=H[g+12>>2]-8|0;H[g+12>>2]=k;if(((I[h|0]|I[h+1|0]<<8)&65279)!=512|(k|0)<=0){break T}H[i+12>>2]=h;h=tG(e,g,i+12|0);e=H[g+32>>2];if(H[g+28>>2]){break S}Wb(e);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;if(h){break U}break R}if(I[g+24|0]|!H[g+28>>2]){break T}k=ve(l);H[g+4>>2]=k;H[g+8>>2]=k+H[l+16>>2];e=H[g+32>>2];h=1;if(k){continue}break S}break}Wb(H[g+32>>2]);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0}if(H[l+4>>2]){H[l+4>>2]=0}break Q}e=H[g+32>>2]}Wb(e);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0}Wb(l);l=163632}xb=i+16|0;H[f>>2]=l;H[g+8>>2]=0;H[g+12>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;F[g+24|0]=0;H[g+28>>2]=0;H[g+32>>2]=0;H[g>>2]=0;H[g+4>>2]=0;e=kd(j);F[g+40|0]=1;H[g+36>>2]=e;e=dd(j,1128416340);if(!(!e|!H[e>>2])){H[e>>2]=H[e>>2]+1}F[g+24|0]=0;H[g+32>>2]=e;h=H[e+12>>2];H[g+4>>2]=h;i=H[e+16>>2];H[g+8>>2]=i+h;H[g+28>>2]=0;if(i>>>0>67108862){l=1073741823}else{l=i<<6;l=l>>>0>16384?l:16384;l=l>>>0<1073741823?l:1073741823}H[g+12>>2]=l;H[g+20>>2]=0;H[g>>2]=0;W:{if(!h){Wb(e);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;break W}X:{if((i|0)>=4){H[g+12>>2]=l-4;l=I[h|0]|I[h+1|0]<<8;Wb(e);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;if((l&65279)!=512){break X}if(H[e+4>>2]){H[e+4>>2]=0}break W}Wb(e);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0}Wb(e);e=163632}H[f+4>>2]=e;x=f,y=wl(j),H[x+8>>2]=y}xb=g+48|0;l=f;if(!f){l=163632}e=H[b+144>>2];H[b+144>>2]=e?e:l;if(!e){break P}if(!(!l|(l|0)==163632)){e=H[l>>2];H[197455]=0;ia(579,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break r}H[l>>2]=0;e=H[l+4>>2];H[197455]=0;ia(579,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break r}Kb(l)}l=H[b+144>>2];if(!l){continue}break}}e=a;f=c;j=xb-16|0;xb=j;b=163632;a=H[l>>2];a=a?a:163632;h=K[a+16>>2]<8?163632:H[a+12>>2];a=I[h+4|0]|I[h+5|0]<<8|(I[h+6|0]<<16|I[h+7|0]<<24);i=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(i){b=0;if((i|0)!=1){a=H[e+56>>2];b=H[e+60>>2];a=a>>>0>b>>>0?a:b;k=a?a:1073741824;c=I[(I[h+52|0]>>0>=k>>>0&c>>>0>g>>>0)&(c>>>0>=k>>>0|c>>>0>=g>>>0))){b=a;c=g}a=a+1|0;if((i|0)!=(a|0)){continue}break}}b=b>>>0>>0?(h+N(b,48)|0)+8|0:163632}a=0;c=I[b+8|0]|I[b+9|0]<<8|(I[b+10|0]<<16|I[b+11|0]<<24);g=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);Y:{if(!g){break Y}c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);h=h+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;while(1){Z:{c=(a|0)<0?163632:h+(a<<3)|0;i=I[c|0]|I[c+1|0]<<8;if(f>>>0<((i<<8|i>>>8)&65535)>>>0){break Z}i=I[c+2|0]|I[c+3|0]<<8;if(f>>>0>((i<<8|i>>>8)&65535)>>>0){break Z}a=0;if(!I[b+44|0]|!I[b+45|0]){break Y}H[j+12>>2]=0;H[j+8>>2]=0;H[j+4>>2]=0;g=0;i=I[c|0]|I[c+1|0]<<8;i=(i<<8|i>>>8)&65535;_:{if(i>>>0>f>>>0){break _}k=I[c+2|0]|I[c+3|0]<<8;if(f>>>0>((k<<8|k>>>8)&65535)>>>0){break _}c=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?c+h|0:163632;h=I[c+2|0]|I[c+3|0]<<8;H[j+4>>2]=(h<<8|h>>>8)&65535;h=f-i|0;$:{aa:{f=I[c|0]|I[c+1|0]<<8;switch(((f<<8|f>>>8)&65535)-1|0){case 2:break $;case 0:break aa;default:break _}}i=c+8|0;f=h+1|0;f=(f|0)<0?163632:i+(f<<2)|0;g=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);k=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);g=(h|0)<0?163632:i+(h<<2)|0;h=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);h=h<<24|h<<8&16711680|(h>>>8&65280|h>>>24);if(k>>>0>h>>>0){c=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);H[j+12>>2]=h+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24));c=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[j+8>>2]=f-(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))}g=h>>>0>>0;break _}i=c+8|0;f=h+1|0;f=(f|0)<0?163632:i+(f<<1)|0;f=I[f|0]|I[f+1|0]<<8;f=f<<8|f>>>8;h=(h|0)<0?163632:i+(h<<1)|0;h=I[h|0]|I[h+1|0]<<8;h=h<<8|h>>>8;if((f&65535)>>>0<=(h&65535)>>>0){break _}c=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);g=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=h&65535;H[j+12>>2]=g+c;H[j+8>>2]=(f&65535)-c;g=1}if(!g){break Y}c=H[l+4>>2];h=c?c:163632;c=H[h+16>>2];f=H[j+12>>2];if(c>>>0>>0){break Y}g=H[j+8>>2];if(g>>>0>c-f>>>0){break Y}ba:{ca:{switch(H[j+4>>2]-17|0){case 0:if(g>>>0>=9){break ba}break Y;case 1:break ca;default:break Y}}if(g>>>0<12){break Y}}m=O(K[l+8>>2]);q=O(m/O(I[b+45|0]));g=H[e+48>>2];l=H[e+52>>2];a=f+(c>>>0<4?163632:H[h+12>>2])|0;c=gma(g,l,I[a|0],0);f=0-((c>>>0>32768)+yb|0)|0;c=32768-c|0;u=O(T(O(O(q*O((f&65535)<<16|c>>>16))+O(.5))));da:{if(O(P(u))>31;f=F[a+3|0];k=f;n=f>>31;f=I[a+1|0];a=H[e+40>>2];e=H[e+44>>2];b=I[b+44|0];H[d+12>>2]=c;m=O(m/O(b>>>0));b=gma(f,0,a,e)+32768|0;f=yb;f=b>>>0<32768?f+1|0:f;u=O(T(O(O(m*O((f&65535)<<16|b>>>16))+O(.5))));ea:{if(O(P(u))>2]=b;b=gma(k,n,g,l)+32768|0;g=yb;g=b>>>0<32768?g+1|0:g;q=O(T(O(O(q*O((g&65535)<<16|b>>>16))+O(.5))));fa:{if(O(P(q))>2]=b;a=gma(a,e,h,i)+32768|0;e=yb;e=a>>>0<32768?e+1|0:e;m=O(T(O(O(m*O((e&65535)<<16|a>>>16))+O(.5))));ga:{if(O(P(m))>2]=a;a=1;break Y}a=a+1|0;if((g|0)!=(a|0)){continue}break}a=0}xb=j+16|0;l=a}return l|0}}ha(0)|0;_()|0;Zb();X()}function z0(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;c=xb-272|0;xb=c;a:{b:{c:{d:{e:{f:{g:{b=H[a+80>>2];h:{if(!b){break h}d=I[g+11|0];if(H[h+4>>2]-H[h>>2]>>4!=((d<<24>>24<0?H[g+4>>2]:d)|0)){break h}d=zb[H[H[b>>2]+32>>2]](b)|0;if(!d){break h}MA(c+256|0,g);e=I[c+267|0];b=e<<24>>24;if((b|0)<0?H[c+260>>2]:e){H[c+248>>2]=0;H[c+240>>2]=0;H[c+244>>2]=0;b=H[a+80>>2];e=H[H[b>>2]+68>>2];H[197455]=0;da(e|0,b|0,2)|0;b=H[197455];H[197455]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{if((b|0)!=1){b=H[a+80>>2];e=H[H[b>>2]+28>>2];H[197455]=0;e=aa(e|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break E}if(!e){break i}H[197455]=0;ba(1778,c+136|0,e&255);b=H[197455];H[197455]=0;if((b|0)==1){break D}H[197455]=0;b=ca(1758,c+136|0,0,411384)|0;f=H[197455];H[197455]=0;if((f|0)==1){break C}H[c+160>>2]=H[b+8>>2];f=H[b+4>>2];H[c+152>>2]=H[b>>2];H[c+156>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,c+152|0,411548)|0;f=H[197455];H[197455]=0;if((f|0)==1){break B}H[c+176>>2]=H[b+8>>2];f=H[b+4>>2];H[c+168>>2]=H[b>>2];H[c+172>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1778,c+120|0,e>>>8&255);b=H[197455];H[197455]=0;if((b|0)==1){break A}H[197455]=0;b=I[c+131|0];f=b<<24>>24<0;b=ca(1759,c+168|0,(f?H[c+120>>2]:c+120|0)|0,(f?H[c+124>>2]:b)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break z}H[c+192>>2]=H[b+8>>2];f=H[b+4>>2];H[c+184>>2]=H[b>>2];H[c+188>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,c+184|0,411548)|0;f=H[197455];H[197455]=0;if((f|0)==1){break y}H[c+208>>2]=H[b+8>>2];f=H[b+4>>2];H[c+200>>2]=H[b>>2];H[c+204>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1778,c+104|0,e>>>16&255);b=H[197455];H[197455]=0;if((b|0)==1){break x}H[197455]=0;b=I[c+115|0];e=b<<24>>24<0;b=ca(1759,c+200|0,(e?H[c+104>>2]:c+104|0)|0,(e?H[c+108>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break w}H[c+224>>2]=H[b+8>>2];e=H[b+4>>2];H[c+216>>2]=H[b>>2];H[c+220>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+216|0,41);b=H[197455];H[197455]=0;if((b|0)==1){break v}e=F[c+227|0];b=I[c+223|0]|I[c+224|0]<<8|(I[c+225|0]<<16|I[c+226|0]<<24);H[c+224>>2]=0;f=H[c+216>>2];g=H[c+220>>2];H[c+216>>2]=0;H[c+220>>2]=0;H[c+232>>2]=g;F[c+235|0]=b;F[c+236|0]=b>>>8;F[c+237|0]=b>>>16;F[c+238|0]=b>>>24;H[197455]=0;b=aa(899,32)|0;g=H[197455];H[197455]=0;if((g|0)==1){break t}H[c>>2]=b;H[c+4>>2]=4;H[c+8>>2]=-2147483640;H[197455]=0;Mb(b,411236,4);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[b+16>>2]=0;H[c+16>>2]=H[c+232>>2];b=I[c+235|0]|I[c+236|0]<<8|(I[c+237|0]<<16|I[c+238|0]<<24);F[c+19|0]=b;F[c+20|0]=b>>>8;F[c+21|0]=b>>>16;F[c+22|0]=b>>>24;H[c+12>>2]=f;F[c+23|0]=e;H[c+232>>2]=0;F[c+235|0]=0;F[c+236|0]=0;F[c+237|0]=0;F[c+238|0]=0;b=H[c+244>>2];if(b>>>0>2]){if(F[c+11|0]>=0){e=H[c+4>>2];H[b>>2]=H[c>>2];H[b+4>>2]=e;H[b+8>>2]=H[c+8>>2];break k}H[197455]=0;ga(1647,b|0,H[c>>2],H[c+4>>2]);e=H[197455];H[197455]=0;if((e|0)!=1){break k}a=$()|0;_()|0;H[c+244>>2]=b;Vb(c);break s}H[197455]=0;ba(1777,c+240|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break u}if(F[c+23|0]>=0){break j}Kb(H[c+12>>2]);break j}a=$()|0;_()|0;break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;break n}a=$()|0;_()|0;break o}a=$()|0;_()|0;break p}a=$()|0;_()|0;break q}a=$()|0;_()|0;break r}a=$()|0;_()|0;break s}a=$()|0;_()|0;Vb(c);break s}a=$()|0;_()|0;if((e|0)>=0){break s}Kb(f)}if(F[c+227|0]>=0){break r}Kb(H[c+216>>2])}if(F[c+115|0]>=0){break q}Kb(H[c+104>>2])}if(F[c+211|0]>=0){break p}Kb(H[c+200>>2])}if(F[c+195|0]>=0){break o}Kb(H[c+184>>2])}if(F[c+131|0]>=0){break n}Kb(H[c+120>>2])}if(F[c+179|0]>=0){break m}Kb(H[c+168>>2])}if(F[c+163|0]>=0){break l}Kb(H[c+152>>2])}if(F[c+147|0]>=0){break b}Kb(H[c+136>>2]);break b}e=H[c+16>>2];H[b+12>>2]=H[c+12>>2];H[b+16>>2]=e;H[b+20>>2]=H[c+20>>2];H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+244>>2]=b+24}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+227|0]<0){Kb(H[c+216>>2])}if(F[c+115|0]<0){Kb(H[c+104>>2])}if(F[c+211|0]<0){Kb(H[c+200>>2])}if(F[c+195|0]<0){Kb(H[c+184>>2])}if(F[c+131|0]<0){Kb(H[c+120>>2])}if(F[c+179|0]<0){Kb(H[c+168>>2])}if(F[c+163|0]<0){Kb(H[c+152>>2])}if(F[c+147|0]>=0){break i}Kb(H[c+136>>2])}b=H[H[d>>2]+8>>2];H[197455]=0;i=+za(b|0,d|0);b=H[197455];H[197455]=0;F:{G:{if((b|0)!=1){H[197455]=0;i=P(i);fa(1756,c+216|0,+(i<.01?18:i),-1);b=H[197455];H[197455]=0;H:{I:{J:{K:{if((b|0)!=1){H[197455]=0;b=aa(899,48)|0;e=H[197455];H[197455]=0;if((e|0)==1){break K}H[c>>2]=b;H[c+4>>2]=9;H[c+8>>2]=-2147483636;H[197455]=0;Mb(b,411728,9);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[b+36>>2]=0;H[c+20>>2]=H[c+224>>2];H[c+224>>2]=0;b=H[c+220>>2];H[c+12>>2]=H[c+216>>2];H[c+16>>2]=b;H[c+216>>2]=0;H[c+220>>2]=0;b=H[c+244>>2];if(b>>>0>2]){if(F[c+11|0]>=0){e=H[c+4>>2];H[b>>2]=H[c>>2];H[b+4>>2]=e;H[b+8>>2]=H[c+8>>2];break G}H[197455]=0;ga(1647,b|0,H[c>>2],H[c+4>>2]);e=H[197455];H[197455]=0;if((e|0)!=1){break G}a=$()|0;_()|0;H[c+244>>2]=b;break I}H[197455]=0;ba(1777,c+240|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break J}if(F[c+23|0]>=0){break F}Kb(H[c+12>>2]);break F}a=$()|0;_()|0;break b}a=$()|0;_()|0;break H}a=$()|0;_()|0}Vb(c)}if(F[c+227|0]>=0){break b}Kb(H[c+216>>2]);break b}a=$()|0;_()|0;break b}e=H[c+16>>2];H[b+12>>2]=H[c+12>>2];H[b+16>>2]=e;H[b+20>>2]=H[c+20>>2];H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+244>>2]=b+24}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+227|0]<0){Kb(H[c+216>>2])}b=H[H[d>>2]+12>>2];H[197455]=0;ba(b|0,c+216|0,d|0);b=H[197455];H[197455]=0;L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{if((b|0)!=1){g=I[c+227|0];b=g<<24>>24;e=H[c+220>>2];if((b|0)<0?e:g){b=Nb(c,0,104);H[197455]=0;e=aa(899,12)|0;f=H[197455];H[197455]=0;if((f|0)==1){break O}f=H[H[d>>2]+12>>2];H[197455]=0;ba(f|0,e|0,d|0);f=H[197455];H[197455]=0;if((f|0)==1){break W}H[b>>2]=e;e=H[H[a+80>>2]+20>>2];f=H[H[e>>2]+136>>2];H[197455]=0;e=ca(f|0,e|0,b|0,1)|0;f=H[197455];H[197455]=0;if((f|0)==1){break V}X:{if(!e){break X}H[197455]=0;f=jq(b+216|0,e);g=H[197455];H[197455]=0;if((g|0)==1){break V}if(f){break X}H[197455]=0;ga(1785,b+168|0,411948,b+216|0);f=H[197455];H[197455]=0;if((f|0)==1){break U}H[197455]=0;f=da(1699,b+168|0,412184)|0;g=H[197455];H[197455]=0;if((g|0)==1){break T}H[b+192>>2]=H[f+8>>2];g=H[f+4>>2];H[b+184>>2]=H[f>>2];H[b+188>>2]=g;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;f=I[e+11|0];g=H[e>>2];j=H[e+4>>2];H[197455]=0;k=e;e=f<<24>>24<0;e=ca(1759,b+184|0,(e?g:k)|0,(e?j:f)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break S}H[b+208>>2]=H[e+8>>2];f=H[e+4>>2];H[b+200>>2]=H[e>>2];H[b+204>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;e=da(1699,b+200|0,411948)|0;f=H[197455];H[197455]=0;if((f|0)==1){break R}g=H[e>>2];H[b+152>>2]=H[e+4>>2];f=I[e+7|0]|I[e+8|0]<<8|(I[e+9|0]<<16|I[e+10|0]<<24);F[b+155|0]=f;F[b+156|0]=f>>>8;F[b+157|0]=f>>>16;F[b+158|0]=f>>>24;H[e>>2]=0;H[e+4>>2]=0;j=I[e+11|0];H[e+8>>2]=0;if(F[b+227|0]<0){Kb(H[b+216>>2])}H[b+216>>2]=g;e=b+216|4;f=I[b+155|0]|I[b+156|0]<<8|(I[b+157|0]<<16|I[b+158|0]<<24);F[e+3|0]=f;F[e+4|0]=f>>>8;F[e+5|0]=f>>>16;F[e+6|0]=f>>>24;H[e>>2]=H[b+152>>2];F[b+227|0]=j;if(F[b+211|0]<0){Kb(H[b+200>>2])}if(F[b+195|0]<0){Kb(H[b+184>>2])}if(F[b+179|0]>=0){break X}Kb(H[b+168>>2])}Sm(b);e=H[b+220>>2];g=I[b+227|0];b=g}if(b<<24>>24<0?e:g){break M}break L}a=$()|0;_()|0;break b}a=$()|0;_()|0;Kb(e);break N}a=$()|0;_()|0;break N}a=$()|0;_()|0;break N}a=$()|0;_()|0;break P}a=$()|0;_()|0;break Q}a=$()|0;_()|0;if(F[b+211|0]>=0){break Q}Kb(H[b+200>>2])}if(F[b+195|0]>=0){break P}Kb(H[b+184>>2])}if(F[b+179|0]>=0){break N}Kb(H[b+168>>2]);break N}a=$()|0;_()|0}Sm(b);break c}H[197455]=0;b=ca(1786,c|0,412456,c+216|0)|0;e=H[197455];H[197455]=0;Y:{Z:{_:{if((e|0)!=1){e=H[c+244>>2];if(e>>>0>2]){if(F[b+11|0]>=0){f=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=f;H[e+8>>2]=H[c+8>>2];break Z}f=H[b+4>>2];g=H[b>>2];H[197455]=0;ga(1647,e|0,g|0,f|0);f=H[197455];H[197455]=0;if((f|0)!=1){break Z}a=$()|0;_()|0;H[c+244>>2]=e;Vb(b);break c}H[197455]=0;ba(1777,c+240|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break _}if(F[b+23|0]>=0){break Y}Kb(H[b+12>>2]);break Y}a=$()|0;_()|0;break c}a=$()|0;_()|0;Vb(b);break c}f=H[b+16>>2];H[e+12>>2]=H[b+12>>2];H[e+16>>2]=f;H[e+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[c+244>>2]=e+24}if(F[b+11|0]>=0){break L}Kb(H[b>>2])}b=H[H[d>>2]+16>>2];H[197455]=0;b=aa(b|0,d|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break d}$:{if((b|0)<551){break $}H[197455]=0;b=ca(1787,c|0,412736,412988)|0;e=H[197455];H[197455]=0;aa:{ba:{ca:{if((e|0)!=1){e=H[c+244>>2];if(e>>>0>2]){if(F[b+11|0]>=0){f=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=f;H[e+8>>2]=H[c+8>>2];break ba}f=H[b+4>>2];g=H[b>>2];H[197455]=0;ga(1647,e|0,g|0,f|0);f=H[197455];H[197455]=0;if((f|0)!=1){break ba}a=$()|0;_()|0;H[c+244>>2]=e;Vb(b);break c}H[197455]=0;ba(1777,c+240|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ca}if(F[b+23|0]>=0){break aa}Kb(H[b+12>>2]);break aa}a=$()|0;_()|0;break c}a=$()|0;_()|0;Vb(b);break c}f=H[b+16>>2];H[e+12>>2]=H[b+12>>2];H[e+16>>2]=f;H[e+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[c+244>>2]=e+24}if(F[b+11|0]>=0){break $}Kb(H[b>>2])}b=H[H[d>>2]+20>>2];H[197455]=0;b=aa(b|0,d|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break d}da:{if(!b){break da}H[197455]=0;b=ca(1788,c|0,413220,413492)|0;e=H[197455];H[197455]=0;ea:{fa:{ga:{if((e|0)!=1){e=H[c+244>>2];if(e>>>0>2]){if(F[b+11|0]>=0){f=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=f;H[e+8>>2]=H[c+8>>2];break fa}f=H[b+4>>2];g=H[b>>2];H[197455]=0;ga(1647,e|0,g|0,f|0);f=H[197455];H[197455]=0;if((f|0)!=1){break fa}a=$()|0;_()|0;H[c+244>>2]=e;Vb(b);break c}H[197455]=0;ba(1777,c+240|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break ga}if(F[b+23|0]>=0){break ea}Kb(H[b+12>>2]);break ea}a=$()|0;_()|0;break c}a=$()|0;_()|0;Vb(b);break c}f=H[b+16>>2];H[e+12>>2]=H[b+12>>2];H[e+16>>2]=f;H[e+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[c+244>>2]=e+24}if(F[b+11|0]>=0){break da}Kb(H[b>>2])}b=H[H[d>>2]+28>>2];H[197455]=0;b=aa(b|0,d|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break d}ha:{ia:{ja:{ka:{la:{if(b){b=H[H[d>>2]+24>>2];H[197455]=0;b=aa(b|0,d|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break d}if(b){break la}}b=H[H[d>>2]+28>>2];H[197455]=0;b=aa(b|0,d|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break ka}break d}H[197455]=0;b=ca(1789,c|0,413616,413768)|0;d=H[197455];H[197455]=0;ma:{if((d|0)!=1){d=H[c+244>>2];if(d>>>0>2]){if(F[b+11|0]>=0){e=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=e;H[d+8>>2]=H[c+8>>2];break ja}e=H[b+4>>2];f=H[b>>2];H[197455]=0;ga(1647,d|0,f|0,e|0);e=H[197455];H[197455]=0;if((e|0)!=1){break ja}a=$()|0;_()|0;H[c+244>>2]=d;Vb(b);break c}H[197455]=0;ba(1777,c+240|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break ma}if(F[b+23|0]>=0){break ia}Kb(H[b+12>>2]);break ia}a=$()|0;_()|0;break c}a=$()|0;_()|0;Vb(b);break c}na:{oa:{if(b){H[197455]=0;b=ca(1790,c|0,413616,414012)|0;d=H[197455];H[197455]=0;pa:{if((d|0)!=1){d=H[c+244>>2];if(d>>>0>2]){if(F[b+11|0]>=0){e=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=e;H[d+8>>2]=H[c+8>>2];break oa}e=H[b+4>>2];f=H[b>>2];H[197455]=0;ga(1647,d|0,f|0,e|0);e=H[197455];H[197455]=0;if((e|0)!=1){break oa}a=$()|0;_()|0;H[c+244>>2]=d;Vb(b);break c}H[197455]=0;ba(1777,c+240|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break pa}if(F[b+23|0]>=0){break na}Kb(H[b+12>>2]);break na}a=$()|0;_()|0;break c}a=$()|0;_()|0;Vb(b);break c}b=H[H[d>>2]+24>>2];H[197455]=0;b=aa(b|0,d|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break d}if(!b){break ha}H[197455]=0;b=ca(1791,c|0,413616,414164)|0;d=H[197455];H[197455]=0;qa:{if((d|0)!=1){H[197455]=0;ba(1792,c+240|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break qa}Vb(b);break ha}a=$()|0;_()|0;break c}a=$()|0;_()|0;Vb(b);break c}e=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=e;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[c+244>>2]=d+24}if(F[b+11|0]>=0){break ha}Kb(H[b>>2]);break ha}e=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=e;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[c+244>>2]=d+24}if(F[b+11|0]>=0){break ha}Kb(H[b>>2])}H[197455]=0;e=a+8|0;ga(1766,e|0,c+240|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ia(1764,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}a=0;H[c+208>>2]=0;H[c+200>>2]=0;H[c+204>>2]=0;H[c+192>>2]=0;H[c+184>>2]=0;H[c+188>>2]=0;ra:{sa:{g=H[h>>2];b=H[h+4>>2];if((g|0)==(b|0)){break sa}ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{while(1){i=M[g>>3];H[197455]=0;fa(1756,c+168|0,+i,-1);a=H[197455];H[197455]=0;if((a|0)==1){break Aa}H[197455]=0;ba(1650,c+168|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break za}H[c+8>>2]=H[c+176>>2];H[c+176>>2]=0;a=H[c+172>>2];d=H[c+168>>2];H[c>>2]=d;H[c+4>>2]=a;H[c+168>>2]=0;H[c+172>>2]=0;H[197455]=0;f=d;a=F[c+11|0];d=(a|0)<0;ca(1759,c+200|0,(d?f:c)|0,(d?H[c+4>>2]:a&255)|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break ya}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+179|0]<0){Kb(H[c+168>>2])}i=M[g+8>>3];H[197455]=0;fa(1756,c+168|0,+i,-1);a=H[197455];H[197455]=0;if((a|0)==1){break wa}H[197455]=0;ba(1650,c+168|0,32);a=H[197455];H[197455]=0;if((a|0)==1){break va}H[c+8>>2]=H[c+176>>2];H[c+176>>2]=0;a=H[c+172>>2];d=H[c+168>>2];H[c>>2]=d;H[c+4>>2]=a;H[c+168>>2]=0;H[c+172>>2]=0;H[197455]=0;f=d;a=F[c+11|0];d=(a|0)<0;ca(1759,c+184|0,(d?f:c)|0,(d?H[c+4>>2]:a&255)|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break ua}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+179|0]<0){Kb(H[c+168>>2])}g=g+16|0;if((b|0)!=(g|0)){continue}break}a=F[c+211|0];if((a|0)>=0){break sa}a=H[c+204>>2]-1|0;H[c+204>>2]=a;a=H[c+200>>2]+(a<<2)|0;break ra}a=$()|0;_()|0;break e}a=$()|0;_()|0;break xa}a=$()|0;_()|0;if(F[c+11|0]>=0){break xa}Kb(H[c>>2])}if(F[c+179|0]>=0){break e}Kb(H[c+168>>2]);break e}a=$()|0;_()|0;break e}a=$()|0;_()|0;break ta}a=$()|0;_()|0;if(F[c+11|0]>=0){break ta}Kb(H[c>>2])}if(F[c+179|0]>=0){break e}Kb(H[c+168>>2]);break e}a=(a&255)-1|0;F[c+211|0]=a;a=(c+200|0)+(a<<2)|0}H[a>>2]=0;a=F[c+195|0];Ba:{if((a|0)<0){a=H[c+188>>2]-1|0;H[c+188>>2]=a;a=H[c+184>>2]+(a<<2)|0;break Ba}a=(a&255)-1|0;F[c+195|0]=a;a=(c+184|0)+(a<<2)|0}H[a>>2]=0;H[197455]=0;b=ca(1762,c|0,410448,c+200|0)|0;a=H[197455];H[197455]=0;Ca:{Da:{Ea:{if((a|0)!=1){d=H[c+244>>2];if(d>>>0>2]){if(F[b+11|0]>=0){a=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+8>>2]=H[c+8>>2];break Da}a=H[b+4>>2];f=H[b>>2];H[197455]=0;ga(1647,d|0,f|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Da}a=$()|0;_()|0;H[c+244>>2]=d;Vb(b);break e}H[197455]=0;ba(1777,c+240|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break Ea}if(F[b+23|0]>=0){break Ca}Kb(H[b+12>>2]);break Ca}a=$()|0;_()|0;break e}a=$()|0;_()|0;Vb(b);break e}a=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=a;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[c+244>>2]=d+24}if(F[b+11|0]<0){Kb(H[b>>2])}H[197455]=0;b=ca(1762,c|0,410652,c+184|0)|0;a=H[197455];H[197455]=0;Fa:{Ga:{Ha:{if((a|0)!=1){d=H[c+244>>2];if(d>>>0>2]){if(F[b+11|0]>=0){a=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=a;H[d+8>>2]=H[c+8>>2];break Ga}a=H[b+4>>2];f=H[b>>2];H[197455]=0;ga(1647,d|0,f|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break Ga}a=$()|0;_()|0;H[c+244>>2]=d;Vb(b);break e}H[197455]=0;ba(1777,c+240|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break Ha}if(F[b+23|0]>=0){break Fa}Kb(H[b+12>>2]);break Fa}a=$()|0;_()|0;break e}a=$()|0;_()|0;Vb(b);break e}a=H[b+16>>2];H[d+12>>2]=H[b+12>>2];H[d+16>>2]=a;H[d+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[c+244>>2]=d+24}if(F[b+11|0]<0){Kb(H[b>>2])}H[197455]=0;a=aa(899,32)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}H[c>>2]=a;H[c+4>>2]=4;H[c+8>>2]=-2147483640;H[197455]=0;Mb(a,414332,4);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+16>>2]=0;H[197455]=0;ka(1767,e|0,c|0,c+240|0,c+256|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+195|0]<0){Kb(H[c+184>>2])}if(F[c+211|0]<0){Kb(H[c+200>>2])}if(F[c+227|0]<0){Kb(H[c+216>>2])}a=H[c+240>>2];if(a){g=H[c+244>>2];if((a|0)==(g|0)){b=a}else{while(1){if(F[g-1|0]<0){Kb(H[g-12>>2])}b=g-24|0;if(F[g-13|0]<0){Kb(H[b>>2])}g=b;if((b|0)!=(a|0)){continue}break}b=H[c+240>>2]}H[c+244>>2]=a;Kb(b)}b=I[c+267|0]}if(b<<24>>24>=0){break h}Kb(H[c+256>>2])}xb=c+272|0;return}a=$()|0;_()|0;break e}a=$()|0;_()|0;if(F[c+11|0]>=0){break e}Kb(H[c>>2])}if(F[c+195|0]<0){Kb(H[c+184>>2])}if(F[c+211|0]>=0){break c}Kb(H[c+200>>2]);break c}a=$()|0;_()|0}if(F[c+227|0]>=0){break b}Kb(H[c+216>>2])}yc(c+240|0);if(F[c+267|0]<0){Kb(H[c+256>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function EZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,J=0,L=0,O=0;a:{if(!H[a+208>>2]){break a}f=a+236|0;j=H[f>>2];if(!j){break a}i=f;while(1){h=K[j+16>>2]>>0;i=h?i:j;j=H[(h<<2)+j>>2];if(j){continue}break}if((f|0)==(i|0)|K[i+16>>2]>b>>>0){break a}b=H[i+20>>2];if((zb[H[H[b>>2]+12>>2]](b)|0)!=5){break a}f=H[i+20>>2];if(!f){break a}b=H[f+4>>2];if(!b){break a}h=H[f+8>>2];if(!h|(H[e+4>>2]-H[e>>2]|0)!=48){break a}b:{switch(H[f+16>>2]-1|0){case 0:p=H[f+24>>2];j=H[f+28>>2];c=xb-48|0;xb=c;c:{d:{e:{if(!b|!h){break e}t=(p|0)!=0&(j|0)!=0;f:{if(t){break f}H[c>>2]=0;H[c+4>>2]=0;F[c+40|0]=0;H[c+32>>2]=0;H[c+36>>2]=-1074790400;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[197455]=0;f=la(947,c|0,b|0,h|0,0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break d}if(!f){id(c);break e}H[197455]=0;p=H[c+4>>2];b=H[197455];H[197455]=0;if((b|0)==1){break d}H[197455]=0;j=H[c+8>>2];b=H[197455];H[197455]=0;if((b|0)==1){break d}H[197455]=0;b=H[c+16>>2];f=H[197455];H[197455]=0;if((f|0)==1){break d}H[197455]=0;H[c+16>>2]=0;f=H[197455];H[197455]=0;if((f|0)==1){break d}if(!(!j|!p|(!b|j+1>>>0<3))){C=(j|0)/2<<2;D=p<<2;E=(j<<2)-4|0;while(1){G=N(p,q);A=N(E-q|0,p);i=0;while(1){f=i+G|0;w=(f|3)+b|0;B=I[w|0];x=(f|2)+b|0;J=I[x|0];h=(f|1)+b|0;L=I[h|0];f=b+f|0;r=I[f|0];O=f;f=i+A|0;l=f+b|0;F[O|0]=I[l|0];n=(f|1)+b|0;F[h|0]=I[n|0];h=(f|2)+b|0;F[x|0]=I[h|0];f=(f|3)+b|0;F[w|0]=I[f|0];F[l|0]=r;F[n|0]=L;F[h|0]=J;F[f|0]=B;i=i+4|0;if(D>>>0>i>>>0){continue}break}q=q+4|0;if(C>>>0>q>>>0){continue}break}id(c);break f}id(c)}H[c+8>>2]=1024;H[c+12>>2]=1024;H[c>>2]=0;H[c+4>>2]=0;g=M[d>>3];g:{if(P(g)<2147483648){f=~~g;break g}f=-2147483648}H[c>>2]=f;m=M[d+8>>3];h:{if(P(m)<2147483648){f=~~m;break h}f=-2147483648}H[c+4>>2]=f;g=g+M[d+16>>3];i:{if(P(g)<2147483648){f=~~g;break i}f=-2147483648}H[c+8>>2]=f;g=m+M[d+24>>3];j:{if(P(g)<2147483648){d=~~g;break j}d=-2147483648}H[c+12>>2]=d;i=mz(b,p,j,c);d=H[e>>2];m=M[d>>3];y=M[d+16>>3];u=M[d+40>>3];g=M[d+8>>3];s=P(+(H[c+12>>2]-H[c+4>>2]|0));k:{if(s<4294967296&s>=0){d=~~s>>>0;break k}d=0}e=H[a+208>>2];v=y-m;z=u-g;a=i?i:b;s=P(+(H[c+8>>2]-H[c>>2]|0));l:{if(s<4294967296&s>=0){f=~~s>>>0;break l}f=0}zb[H[H[e>>2]+16>>2]](e,m,g,v,z,a,f,d);if(!(t|!b)){Kb(b)}if(!i){break e}Kb(i)}xb=c+48|0;break c}a=$()|0;_()|0;id(c);ea(a|0);X()}return;case 1:break b;default:break a}}i=H[f+20>>2];f=xb-464|0;xb=f;m:{n:{o:{p:{q:{r:{if(!i|(!b|!h)){break r}s:{if(i-3>>>0<=2){j=bq(f+32|0);H[197455]=0;c=j+H[H[j>>2]-12>>2]|0;H[c+4>>2]=b;H[c+12>>2]=b+h;H[c+8>>2]=b;b=H[197455];H[197455]=0;t:{u:{if((b|0)==1){break u}H[(H[H[j>>2]-12>>2]+(f+32|0)|0)+20>>2]=H[(H[H[a>>2]-12>>2]+a|0)+20>>2];H[197455]=0;ia(1908,j|0);b=H[197455];H[197455]=0;if((b|0)==1){break u}if(I[(H[H[j>>2]-12>>2]+(f+32|0)|0)+29|0]){break s}c=H[a+208>>2];b=H[H[c>>2]+96>>2];H[197455]=0;c=aa(b|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break u}if((c|0)==2){H[197455]=0;b=H[197455];H[197455]=0;v:{if((b|0)==1){break p}c=H[(H[H[a>>2]-12>>2]+a|0)+20>>2];b=H[H[0]+464>>2];H[197455]=0;ba(b|0,0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break p}H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break p}g=P(+(H[j+108>>2]-H[j+100>>2]|0));w:{if(P(g)<2147483648){c=~~g;break w}c=-2147483648}H[f+16>>2]=c;g=P(+(H[j+112>>2]-H[j+104>>2]|0));x:{if(P(g)<2147483648){b=~~g;break x}b=-2147483648}H[f+460>>2]=b;M[f>>3]=+(c|0)*25.4/72;H[197455]=0;M[f+448>>3]=+(b|0)*25.4/72;i=N(b,c);l=aa(929,i<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break p}y:{if((i|0)<=0){break y}c=0;if(i-1>>>0>=7){b=i&-8;while(1){h=c<<2;H[h+l>>2]=16777215;H[l+(h|4)>>2]=16777215;H[l+(h|8)>>2]=16777215;H[l+(h|12)>>2]=16777215;H[l+(h|16)>>2]=16777215;H[l+(h|20)>>2]=16777215;H[l+(h|24)>>2]=16777215;H[l+(h|28)>>2]=16777215;c=c+8|0;q=q+8|0;if((b|0)!=(q|0)){continue}break}}b=i&7;if(!b){break y}while(1){H[l+(c<<2)>>2]=16777215;c=c+1|0;n=n+1|0;if((b|0)!=(n|0)){continue}break}}H[197455]=0;k=f+400|0;H[k>>2]=0;H[k+4>>2]=0;F[k+40|0]=0;H[k+32>>2]=0;H[k+36>>2]=-1074790400;F[k+21|0]=0;F[k+22|0]=0;F[k+23|0]=0;F[k+24|0]=0;F[k+25|0]=0;F[k+26|0]=0;F[k+27|0]=0;F[k+28|0]=0;H[k+16>>2]=0;H[k+20>>2]=0;H[k+8>>2]=0;H[k+12>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){break p}H[197455]=0;H[k+16>>2]=l;b=H[197455];H[197455]=0;if((b|0)==1){break o}H[197455]=0;H[k+4>>2]=H[f+16>>2];b=H[197455];H[197455]=0;if((b|0)==1){break o}H[197455]=0;H[k+8>>2]=H[f+460>>2];b=H[197455];H[197455]=0;if((b|0)==1){break o}H[197455]=0;H[f+328>>2]=0-(H[f+16>>2]<<2);H[k+12>>2]=H[f+328>>2];b=H[197455];H[197455]=0;if((b|0)==1){break o}b=H[H[0]+492>>2];H[197455]=0;ba(b|0,0,k|0);b=H[197455];H[197455]=0;if((b|0)==1){break o}b=H[H[0]+484>>2];H[197455]=0;ba(b|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break o}b=H[H[0]+36>>2];H[197455]=0;da(b|0,0,f|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}b=H[H[0]+28>>2];H[197455]=0;da(b|0,0,f+448|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}H[f+328>>2]=3;b=H[H[0]+308>>2];H[197455]=0;da(b|0,0,f+328|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}b=H[H[j>>2]-12>>2];H[f+352>>2]=0;H[f+356>>2]=0;H[f+344>>2]=0;H[f+348>>2]=0;H[f+328>>2]=396108;H[f+396>>2]=0;M[f+368>>3]=M[f+448>>3];M[f+360>>3]=M[f>>3];H[f+332>>2]=0;c=b+(f+32|0)|0;H[f+336>>2]=c;b=H[H[c>>2]+16>>2];H[197455]=0;n=aa(b|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}h=H[n+12>>2];i=H[n+4>>2];c=H[n+8>>2];b=H[n>>2];F[f+392|0]=0;H[197455]=0;M[f+376>>3]=M[f+360>>3]/P(+(c-b|0));M[f+384>>3]=M[f+368>>3]/P(+(h-i|0));ba(1910,j|0,f+328|0);b=H[197455];H[197455]=0;if((b|0)==1){break v}H[197455]=0;ia(1911,j|0);b=H[197455];H[197455]=0;if((b|0)==1){break v}H[f+296>>2]=3;b=H[H[0]+312>>2];H[197455]=0;da(b|0,0,f+296|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break v}H[197455]=0;q=H[f+16>>2];t=H[f+460>>2];p=H[k+16>>2];b=H[197455];H[197455]=0;if((b|0)==1){break v}if(!(!t|!q|(!p|t+1>>>0<3))){C=(t|0)/2<<2;D=q<<2;E=(t<<2)-4|0;c=0;while(1){G=N(c,q);A=N(q,E-c|0);b=0;while(1){i=b+G|0;w=p+(i|3)|0;B=I[w|0];x=p+(i|2)|0;J=I[x|0];h=p+(i|1)|0;L=I[h|0];i=i+p|0;r=I[i|0];O=i;i=b+A|0;l=i+p|0;F[O|0]=I[l|0];n=p+(i|1)|0;F[h|0]=I[n|0];h=p+(i|2)|0;F[x|0]=I[h|0];i=p+(i|3)|0;F[w|0]=I[i|0];F[l|0]=r;F[n|0]=L;F[h|0]=J;F[i|0]=B;b=b+4|0;if(D>>>0>b>>>0){continue}break}c=c+4|0;if(C>>>0>c>>>0){continue}break}}H[197455]=0;b=f+296|0;H[b+8>>2]=1024;H[b+12>>2]=1024;H[b>>2]=0;H[b+4>>2]=0;c=H[197455];H[197455]=0;if((c|0)==1){break v}g=M[d>>3];z:{if(P(g)<2147483648){c=~~g;break z}c=-2147483648}H[b>>2]=c;m=M[d+8>>3];A:{if(P(m)<2147483648){c=~~m;break A}c=-2147483648}H[b+4>>2]=c;g=g+M[d+16>>3];B:{if(P(g)<2147483648){c=~~g;break B}c=-2147483648}H[b+8>>2]=c;g=m+M[d+24>>3];C:{if(P(g)<2147483648){c=~~g;break C}c=-2147483648}H[b+12>>2]=c;H[197455]=0;l=la(1913,p|0,q|0,t|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break v}n=H[a+208>>2];c=H[e>>2];v=M[c+16>>3];s=M[c+8>>3];z=M[c>>3];h=H[b>>2];i=H[b+8>>2];d=H[b+4>>2];c=H[b+12>>2];b=H[a+120>>2];H[197455]=0;y=M[b+624>>3];b=H[197455];H[197455]=0;g=P(+(c-d|0));D:{if(g<4294967296&g>=0){d=~~g>>>0;break D}d=0}g=P(+(i-h|0));E:{if(g<4294967296&g>=0){c=~~g>>>0;break E}c=0}if((b|0)==1){break v}b=H[e>>2];u=M[b+40>>3];m=M[b+8>>3];a=H[a+120>>2];H[197455]=0;g=M[a+632>>3];a=H[197455];H[197455]=0;if((a|0)==1){break v}a=H[H[n>>2]+16>>2];H[197455]=0;_a(a|0,n|0,+z,+s,+(v-z-y),+(u-m-g),(l?l:p)|0,(c>>>0>q>>>0?q:c)|0,(d>>>0>t>>>0?t:d)|0);a=H[197455];H[197455]=0;if((a|0)==1){break v}if(l){Kb(l)}H[f+328>>2]=396108;a=H[f+396>>2];if(a){Kb(a)}id(k);break s}e=$()|0;_()|0;H[f+328>>2]=396108;a=H[f+396>>2];if(a){Kb(a)}id(k);break q}if(I[(H[H[j>>2]-12>>2]+(f+32|0)|0)+29|0]){break s}c=H[a+208>>2];b=H[H[c>>2]+96>>2];H[197455]=0;c=aa(b|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break u}if((c|0)!=4){break s}H[197455]=0;qa(1916,j|0,4,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break u}H[197455]=0;ia(1911,j|0);b=H[197455];H[197455]=0;if((b|0)==1){break u}c=H[a+120>>2];H[197455]=0;b=H[197455];H[197455]=0;F:{if((b|0)!=1){b=H[e>>2];M[f+400>>3]=M[b>>3];M[f+408>>3]=M[b+8>>3];m=M[b+16>>3];b=H[a+120>>2];H[197455]=0;g=M[b+624>>3];b=H[197455];H[197455]=0;if((b|0)==1){break p}M[f+416>>3]=m-g;m=M[H[e>>2]+40>>3];b=H[a+120>>2];H[197455]=0;g=M[b+632>>3];b=H[197455];H[197455]=0;if((b|0)==1){break p}M[f+424>>3]=m-g;H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break p}s=M[d+16>>3];y=M[d+24>>3];v=M[d+8>>3];u=M[d>>3];m=+H[j+100>>2];M[f+296>>3]=u-m;b=H[H[a>>2]+44>>2];H[197455]=0;g=+za(b|0,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break p}M[f+312>>3]=u+s-(g+m);m=+H[j+104>>2];M[f+304>>3]=v-m;b=H[H[a>>2]+40>>2];H[197455]=0;g=+za(b|0,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break p}M[f+320>>3]=v+y-(g+m);M[f+328>>3]=M[c+400>>3];M[f+336>>3]=M[c+408>>3];M[f+344>>3]=M[c+416>>3];M[f+352>>3]=M[c+424>>3];g=M[c+440>>3];M[f+360>>3]=M[c+432>>3]-+H[a+100>>2];M[f+368>>3]=g-+H[a+104>>2];c=H[a+208>>2];H[197455]=0;b=H[j+208>>2];a=H[197455];H[197455]=0;if((a|0)==1){break p}H[197455]=0;ba(1919,f|0,b+8|0);a=H[197455];H[197455]=0;if((a|0)==1){break p}H[197455]=0;wa(1920,c+8|0,f|0,f+400|0,f+296|0,f+328|0);a=H[197455];H[197455]=0;if((a|0)==1){break F}if(F[f+11|0]>=0){break s}Kb(H[f>>2]);yf(j);break r}break p}e=$()|0;_()|0;if(F[f+11|0]>=0){break t}Kb(H[f>>2]);break q}e=$()|0;_()|0}break q}if(i-1>>>0>1){break r}k=My(f+32|0);H[197455]=0;H[k+4>>2]=b;H[k+12>>2]=b+h;H[k+8>>2]=b;b=H[197455];H[197455]=0;G:{H:{I:{if((b|0)==1){break I}H[k+20>>2]=H[(H[H[a>>2]-12>>2]+a|0)+20>>2];H[197455]=0;ia(1843,k|0);b=H[197455];H[197455]=0;if((b|0)==1){break I}if(I[k+29|0]){break G}i=H[a+208>>2];b=H[H[i>>2]+96>>2];H[197455]=0;i=aa(b|0,i|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break I}if((i|0)==2){H[197455]=0;b=H[197455];H[197455]=0;J:{K:{L:{M:{N:{O:{P:{O=f;Q:{R:{S:{T:{U:{if((b|0)==1){break U}c=H[(H[H[a>>2]-12>>2]+a|0)+20>>2];b=H[H[0]+464>>2];H[197455]=0;ba(b|0,0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break U}H[197455]=0;Bk(f+296|0,k);b=H[197455];H[197455]=0;if((b|0)==1){break T}g=P(M[f+312>>3]-M[f+296>>3]);V:{if(P(g)<2147483648){c=~~g;break V}c=-2147483648}H[f+460>>2]=c;g=P(M[f+320>>3]-M[f+304>>3]);W:{if(P(g)<2147483648){b=~~g;break W}b=-2147483648}H[f+28>>2]=b;M[f+448>>3]=+(c|0)*25.4/72;H[197455]=0;M[f+16>>3]=+(b|0)*25.4/72;h=N(b,c);r=aa(929,h<<2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break S}X:{if((h|0)<=0){break X}c=0;if(h-1>>>0>=7){b=h&-8;while(1){l=c<<2;H[l+r>>2]=16777215;H[r+(l|4)>>2]=16777215;H[r+(l|8)>>2]=16777215;H[r+(l|12)>>2]=16777215;H[r+(l|16)>>2]=16777215;H[r+(l|20)>>2]=16777215;H[r+(l|24)>>2]=16777215;H[r+(l|28)>>2]=16777215;c=c+8|0;q=q+8|0;if((b|0)!=(q|0)){continue}break}}b=h&7;if(!b){break X}while(1){H[r+(c<<2)>>2]=16777215;c=c+1|0;n=n+1|0;if((b|0)!=(n|0)){continue}break}}H[197455]=0;o=f+400|0;H[o>>2]=0;H[o+4>>2]=0;F[o+40|0]=0;H[o+32>>2]=0;H[o+36>>2]=-1074790400;F[o+21|0]=0;F[o+22|0]=0;F[o+23|0]=0;F[o+24|0]=0;F[o+25|0]=0;F[o+26|0]=0;F[o+27|0]=0;F[o+28|0]=0;H[o+16>>2]=0;H[o+20>>2]=0;H[o+8>>2]=0;H[o+12>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){break P}H[197455]=0;H[o+16>>2]=r;b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;H[o+4>>2]=H[f+460>>2];b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;H[o+8>>2]=H[f+28>>2];b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;H[f+328>>2]=0-(H[f+460>>2]<<2);H[o+12>>2]=H[f+328>>2];b=H[197455];H[197455]=0;if((b|0)==1){break N}b=H[H[0]+492>>2];H[197455]=0;ba(b|0,0,o|0);b=H[197455];H[197455]=0;if((b|0)==1){break O}b=H[H[0]+484>>2];H[197455]=0;ba(b|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break O}b=H[H[0]+36>>2];H[197455]=0;da(b|0,0,f+448|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break O}b=H[H[0]+28>>2];H[197455]=0;da(b|0,0,f+16|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break O}H[f+328>>2]=3;b=H[H[0]+308>>2];H[197455]=0;da(b|0,0,f+328|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break M}H[f+352>>2]=0;H[f+356>>2]=0;H[f+344>>2]=0;H[f+348>>2]=0;H[f+336>>2]=k;H[f+328>>2]=396108;H[f+396>>2]=0;M[f+368>>3]=M[f+16>>3];M[f+360>>3]=M[f+448>>3];H[f+332>>2]=0;b=H[H[k>>2]+16>>2];H[197455]=0;l=aa(b|0,k|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break L}n=H[l+12>>2];h=H[l+4>>2];c=H[l+8>>2];b=H[l>>2];F[f+392|0]=0;H[197455]=0;M[f+376>>3]=M[f+360>>3]/P(+(c-b|0));M[f+384>>3]=M[f+368>>3]/P(+(n-h|0));ba(1642,k|0,f+328|0);b=H[197455];H[197455]=0;if((b|0)==1){break J}H[197455]=0;ia(1847,k|0);b=H[197455];H[197455]=0;if((b|0)==1){break J}H[f>>2]=3;b=H[H[0]+312>>2];H[197455]=0;da(b|0,0,f|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break J}H[197455]=0;p=H[f+460>>2];q=H[f+28>>2];j=H[o+16>>2];b=H[197455];H[197455]=0;if((b|0)==1){break J}if(!(!q|!p|(!j|q+1>>>0<3))){t=(q|0)/2<<2;C=p<<2;D=(q<<2)-4|0;c=0;while(1){E=N(c,p);G=N(p,D-c|0);b=0;while(1){h=b+E|0;A=j+(h|3)|0;w=I[A|0];B=j+(h|2)|0;x=I[B|0];n=j+(h|1)|0;J=I[n|0];h=h+j|0;L=I[h|0];i=h;h=b+G|0;r=h+j|0;F[i|0]=I[r|0];l=j+(h|1)|0;F[n|0]=I[l|0];n=j+(h|2)|0;F[B|0]=I[n|0];h=j+(h|3)|0;F[A|0]=I[h|0];F[r|0]=L;F[l|0]=J;F[n|0]=x;F[h|0]=w;b=b+4|0;if(C>>>0>b>>>0){continue}break}c=c+4|0;if(t>>>0>c>>>0){continue}break}}H[197455]=0;H[f+8>>2]=1024;H[f+12>>2]=1024;H[f>>2]=0;H[f+4>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){break J}g=M[d>>3];if(!(P(g)<2147483648)){break R}b=~~g;break Q}e=$()|0;_()|0;break H}e=$()|0;_()|0;break H}e=$()|0;_()|0;break H}b=-2147483648}H[O>>2]=b;m=M[d+8>>3];Y:{if(P(m)<2147483648){b=~~m;break Y}b=-2147483648}H[f+4>>2]=b;g=g+M[d+16>>3];Z:{if(P(g)<2147483648){b=~~g;break Z}b=-2147483648}H[f+8>>2]=b;g=m+M[d+24>>3];_:{if(P(g)<2147483648){b=~~g;break _}b=-2147483648}H[f+12>>2]=b;H[197455]=0;r=la(1913,j|0,p|0,q|0,f|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break J}l=H[a+208>>2];b=H[e>>2];v=M[b+16>>3];s=M[b+8>>3];z=M[b>>3];n=H[f>>2];h=H[f+8>>2];i=H[f+4>>2];c=H[f+12>>2];b=H[a+120>>2];H[197455]=0;y=M[b+624>>3];d=H[197455];H[197455]=0;g=P(+(c-i|0));$:{if(g<4294967296&g>=0){c=~~g>>>0;break $}c=0}g=P(+(h-n|0));aa:{if(g<4294967296&g>=0){b=~~g>>>0;break aa}b=0}ba:{if((d|0)==1){break ba}d=H[e>>2];u=M[d+40>>3];m=M[d+8>>3];a=H[a+120>>2];H[197455]=0;g=M[a+632>>3];a=H[197455];H[197455]=0;if((a|0)==1){break ba}a=H[H[l>>2]+16>>2];H[197455]=0;_a(a|0,l|0,+z,+s,+(v-z-y),+(u-m-g),(r?r:j)|0,(b>>>0>p>>>0?p:b)|0,(c>>>0>q>>>0?q:c)|0);a=H[197455];H[197455]=0;if((a|0)==1){break ba}break K}break J}e=$()|0;_()|0;break H}e=$()|0;_()|0;id(o);break H}e=$()|0;_()|0;id(o);break H}e=$()|0;_()|0;id(o);break H}e=$()|0;_()|0;id(o);break H}if(r){Kb(r)}H[f+328>>2]=396108;a=H[f+396>>2];if(a){Kb(a)}id(o);break G}e=$()|0;_()|0;H[f+328>>2]=396108;a=H[f+396>>2];if(a){Kb(a)}id(o);break H}if(I[k+29|0]){break G}i=H[a+208>>2];b=H[H[i>>2]+96>>2];H[197455]=0;i=aa(b|0,i|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break I}if((i|0)!=4){break G}H[197455]=0;ka(1849,k|0,4,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break I}H[197455]=0;ia(1847,k|0);b=H[197455];H[197455]=0;if((b|0)==1){break I}h=H[a+120>>2];H[197455]=0;b=H[197455];H[197455]=0;ca:{da:{ea:{if((b|0)!=1){b=H[e>>2];M[f+400>>3]=M[b>>3];M[f+408>>3]=M[b+8>>3];m=M[b+16>>3];b=H[a+120>>2];H[197455]=0;g=M[b+624>>3];b=H[197455];H[197455]=0;if((b|0)==1){break ea}M[f+416>>3]=m-g;m=M[H[e>>2]+40>>3];b=H[a+120>>2];H[197455]=0;g=M[b+632>>3];b=H[197455];H[197455]=0;if((b|0)==1){break ea}M[f+424>>3]=m-g;g=M[d>>3];M[f+296>>3]=g;m=M[d+8>>3];M[f+304>>3]=m;M[f+312>>3]=g+M[d+16>>3];g=m+M[d+24>>3];M[f+320>>3]=g;d=a+236|0;e=H[d>>2];fa:{if(!e){break fa}b=d;while(1){i=K[e+16>>2]>>0;b=i?b:e;e=H[(i<<2)+e>>2];if(e){continue}break}if((b|0)==(d|0)|K[b+16>>2]>c>>>0){break fa}d=H[b+20>>2];c=H[H[d>>2]+12>>2];H[197455]=0;d=aa(c|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break da}if((d|0)!=8){break fa}b=H[b+20>>2];if(!b|(H[b+4>>2]&-2)==2){break fa}M[f+304>>3]=g;M[f+320>>3]=m}M[f+328>>3]=M[h+496>>3];M[f+336>>3]=M[h+504>>3];M[f+344>>3]=M[h+512>>3];M[f+352>>3]=M[h+520>>3];g=M[h+536>>3];M[f+360>>3]=M[h+528>>3]-+H[a+100>>2];M[f+368>>3]=g-+H[a+104>>2];c=H[a+208>>2];H[197455]=0;b=H[k+240>>2];a=H[197455];H[197455]=0;if((a|0)!=1){H[197455]=0;ba(1919,f|0,b+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){break ca}}e=$()|0;_()|0;break H}e=$()|0;_()|0;break H}e=$()|0;_()|0;break H}e=$()|0;_()|0;break H}H[197455]=0;wa(1920,c+8|0,f|0,f+400|0,f+296|0,f+328|0);a=H[197455];H[197455]=0;if((a|0)!=1){if(F[f+11|0]>=0){break G}Kb(H[f>>2]);break G}e=$()|0;_()|0;if(F[f+11|0]>=0){break H}Kb(H[f>>2]);break H}e=$()|0;_()|0}ce(k);ea(e|0);X()}ce(k);break r}yf(j)}xb=f+464|0;break m}yf(j);ea(e|0);X()}a=$()|0;_()|0;break n}a=$()|0;_()|0;id(k)}yf(j);ea(a|0);X()}}}function Pfa(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;e=xb-3104|0;xb=e;H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;b=H[c+4>>2];j=H[c>>2];o=b-j|0;k=(o|0)/12|0;a:{if(!(!d|(b|0)==(j|0))){H[197455]=0;b=aa(929,1024)|0;j=H[197455];H[197455]=0;b:{c:{d:{if((j|0)!=1){H[d>>2]=b;x=Nb(b,0,1024);if((o|0)<=0){break b}r=(k|0)>1?k:1;while(1){b=H[c>>2]+N(g,12)|0;d=H[b+8>>2];j=H[b+4>>2];H[197455]=0;b=aa(899,12)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}H[b+8>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[197455]=0;m=N(d,j);h=aa(929,m|0)|0;n=H[197455];H[197455]=0;if((n|0)==1){break a}H[b+8>>2]=d;H[b+4>>2]=j;H[b>>2]=h;Nb(h,0,m);e:{if(H[a+8>>2]!=(f|0)){H[f>>2]=b;f=f+4|0;H[a+4>>2]=f;break e}j=H[a>>2];d=f-j|0;s=d>>2;f=s+1|0;if(f>>>0>=1073741824){H[197455]=0;ia(1128,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}break d}h=d>>1;n=d>>>0<2147483644?f>>>0>>0?h:f:1073741823;f:{if(!n){h=0;break f}if(n>>>0>=1073741824){H[197455]=0;ia(1129,248043);b=H[197455];H[197455]=0;if((b|0)!=1){break d}break a}H[197455]=0;h=aa(899,n<<2)|0;f=H[197455];H[197455]=0;if((f|0)==1){break a}}f=(s<<2)+h|0;H[f>>2]=b;f=f+4|0;if((d|0)>0){Ob(h,j,d)}H[a+8>>2]=(n<<2)+h;H[a+4>>2]=f;H[a>>2]=h;if(!j){break e}Kb(j)}i=i+m|0;g=g+1|0;if((r|0)!=(g|0)){continue}break}break c}break a}X()}g=i<<3}H[197455]=0;j=aa(929,g|0)|0;b=H[197455];H[197455]=0;g:{h:{i:{if((b|0)!=1){if((o|0)<=0){break g}i=(k|0)>1?k:1;f=j;while(1){b=H[H[a>>2]+(p<<2)>>2];j:{if(!b){break j}h=N(H[b+8>>2],H[b+4>>2]);if(!h){break j}d=H[H[c>>2]+N(p,12)>>2];g=0;if((h|0)!=1){n=h&-2;k=0;while(1){if(I[d+3|0]>=5){o=H[b>>2];m=H[d>>2];H[f>>2]=m;H[f+4>>2]=g+o;F[f+3|0]=m>>>24|15;f=f+8|0}if(I[d+7|0]>=5){o=H[b>>2];m=H[d+4>>2];H[f>>2]=m;H[f+4>>2]=o+(g|1);F[f+3|0]=m>>>24|15;f=f+8|0}d=d+8|0;g=g+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}if(!(h&1)|I[d+3|0]<5){break j}b=H[b>>2];d=H[d>>2];H[f>>2]=d;H[f+4>>2]=b+g;F[f+3|0]=d>>>24|15;f=f+8|0}p=p+1|0;if((i|0)!=(p|0)){continue}break}if((f|0)==(j|0)){break g}G[e+52>>1]=0;G[e- -64>>1]=0;G[e+76>>1]=0;G[e+88>>1]=0;G[e+100>>1]=0;G[e+112>>1]=0;G[e+124>>1]=0;G[e+136>>1]=0;G[e+40>>1]=0;H[e+32>>2]=0;H[e+36>>2]=0;H[e+44>>2]=0;H[e+48>>2]=0;H[e+56>>2]=0;H[e+60>>2]=0;H[e+68>>2]=0;H[e+72>>2]=0;H[e+80>>2]=0;H[e+84>>2]=0;H[e+92>>2]=0;H[e+96>>2]=0;H[e+104>>2]=0;H[e+108>>2]=0;H[e+116>>2]=0;H[e+120>>2]=0;H[e+128>>2]=0;H[e+132>>2]=0;G[e+148>>1]=0;G[e+160>>1]=0;G[e+172>>1]=0;G[e+184>>1]=0;G[e+196>>1]=0;G[e+208>>1]=0;G[e+220>>1]=0;G[e+232>>1]=0;G[e+244>>1]=0;H[e+140>>2]=0;H[e+144>>2]=0;H[e+152>>2]=0;H[e+156>>2]=0;H[e+164>>2]=0;H[e+168>>2]=0;H[e+176>>2]=0;H[e+180>>2]=0;H[e+188>>2]=0;H[e+192>>2]=0;H[e+200>>2]=0;H[e+204>>2]=0;H[e+212>>2]=0;H[e+216>>2]=0;H[e+224>>2]=0;H[e+228>>2]=0;H[e+236>>2]=0;H[e+240>>2]=0;G[e+256>>1]=0;G[e+268>>1]=0;G[e+280>>1]=0;G[e+292>>1]=0;G[e+304>>1]=0;G[e+316>>1]=0;G[e+328>>1]=0;G[e+340>>1]=0;G[e+352>>1]=0;H[e+248>>2]=0;H[e+252>>2]=0;H[e+260>>2]=0;H[e+264>>2]=0;H[e+272>>2]=0;H[e+276>>2]=0;H[e+284>>2]=0;H[e+288>>2]=0;H[e+296>>2]=0;H[e+300>>2]=0;H[e+308>>2]=0;H[e+312>>2]=0;H[e+320>>2]=0;H[e+324>>2]=0;H[e+332>>2]=0;H[e+336>>2]=0;H[e+344>>2]=0;H[e+348>>2]=0;G[e+364>>1]=0;H[e+356>>2]=0;H[e+360>>2]=0;G[e+376>>1]=0;H[e+368>>2]=0;H[e+372>>2]=0;G[e+388>>1]=0;H[e+380>>2]=0;H[e+384>>2]=0;G[e+400>>1]=0;H[e+392>>2]=0;H[e+396>>2]=0;G[e+412>>1]=0;H[e+404>>2]=0;H[e+408>>2]=0;G[e+424>>1]=0;H[e+416>>2]=0;H[e+420>>2]=0;G[e+436>>1]=0;H[e+428>>2]=0;H[e+432>>2]=0;G[e+448>>1]=0;H[e+440>>2]=0;H[e+444>>2]=0;G[e+460>>1]=0;H[e+452>>2]=0;H[e+456>>2]=0;G[e+472>>1]=0;H[e+464>>2]=0;H[e+468>>2]=0;G[e+484>>1]=0;H[e+476>>2]=0;H[e+480>>2]=0;G[e+496>>1]=0;H[e+488>>2]=0;H[e+492>>2]=0;G[e+508>>1]=0;H[e+500>>2]=0;H[e+504>>2]=0;G[e+520>>1]=0;H[e+512>>2]=0;H[e+516>>2]=0;G[e+532>>1]=0;H[e+524>>2]=0;H[e+528>>2]=0;G[e+544>>1]=0;H[e+536>>2]=0;H[e+540>>2]=0;G[e+556>>1]=0;H[e+548>>2]=0;H[e+552>>2]=0;G[e+568>>1]=0;H[e+560>>2]=0;H[e+564>>2]=0;G[e+580>>1]=0;H[e+572>>2]=0;H[e+576>>2]=0;G[e+592>>1]=0;H[e+584>>2]=0;H[e+588>>2]=0;G[e+604>>1]=0;H[e+596>>2]=0;H[e+600>>2]=0;G[e+616>>1]=0;H[e+608>>2]=0;H[e+612>>2]=0;G[e+628>>1]=0;H[e+620>>2]=0;H[e+624>>2]=0;G[e+640>>1]=0;H[e+632>>2]=0;H[e+636>>2]=0;G[e+652>>1]=0;H[e+644>>2]=0;H[e+648>>2]=0;G[e+664>>1]=0;H[e+656>>2]=0;H[e+660>>2]=0;G[e+676>>1]=0;H[e+668>>2]=0;H[e+672>>2]=0;G[e+688>>1]=0;H[e+680>>2]=0;H[e+684>>2]=0;G[e+700>>1]=0;H[e+692>>2]=0;H[e+696>>2]=0;G[e+712>>1]=0;H[e+704>>2]=0;H[e+708>>2]=0;G[e+724>>1]=0;H[e+716>>2]=0;H[e+720>>2]=0;G[e+736>>1]=0;H[e+728>>2]=0;H[e+732>>2]=0;G[e+748>>1]=0;H[e+740>>2]=0;H[e+744>>2]=0;G[e+760>>1]=0;H[e+752>>2]=0;H[e+756>>2]=0;G[e+772>>1]=0;H[e+764>>2]=0;H[e+768>>2]=0;G[e+784>>1]=0;H[e+776>>2]=0;H[e+780>>2]=0;G[e+796>>1]=0;H[e+788>>2]=0;H[e+792>>2]=0;G[e+808>>1]=0;H[e+800>>2]=0;H[e+804>>2]=0;G[e+820>>1]=0;H[e+812>>2]=0;H[e+816>>2]=0;G[e+832>>1]=0;H[e+824>>2]=0;H[e+828>>2]=0;G[e+844>>1]=0;H[e+836>>2]=0;H[e+840>>2]=0;G[e+856>>1]=0;H[e+848>>2]=0;H[e+852>>2]=0;G[e+868>>1]=0;H[e+860>>2]=0;H[e+864>>2]=0;G[e+880>>1]=0;H[e+872>>2]=0;H[e+876>>2]=0;G[e+892>>1]=0;H[e+884>>2]=0;H[e+888>>2]=0;G[e+904>>1]=0;H[e+896>>2]=0;H[e+900>>2]=0;G[e+916>>1]=0;H[e+908>>2]=0;H[e+912>>2]=0;G[e+928>>1]=0;H[e+920>>2]=0;H[e+924>>2]=0;G[e+940>>1]=0;H[e+932>>2]=0;H[e+936>>2]=0;G[e+952>>1]=0;H[e+944>>2]=0;H[e+948>>2]=0;G[e+964>>1]=0;H[e+956>>2]=0;H[e+960>>2]=0;G[e+976>>1]=0;H[e+968>>2]=0;H[e+972>>2]=0;G[e+988>>1]=0;H[e+980>>2]=0;H[e+984>>2]=0;G[e+1e3>>1]=0;H[e+992>>2]=0;H[e+996>>2]=0;G[e+1012>>1]=0;H[e+1004>>2]=0;H[e+1008>>2]=0;G[e+1024>>1]=0;H[e+1016>>2]=0;H[e+1020>>2]=0;G[e+1036>>1]=0;H[e+1028>>2]=0;H[e+1032>>2]=0;G[e+1048>>1]=0;H[e+1040>>2]=0;H[e+1044>>2]=0;G[e+1060>>1]=0;H[e+1052>>2]=0;H[e+1056>>2]=0;G[e+1072>>1]=0;H[e+1064>>2]=0;H[e+1068>>2]=0;G[e+1084>>1]=0;H[e+1076>>2]=0;H[e+1080>>2]=0;G[e+1096>>1]=0;H[e+1088>>2]=0;H[e+1092>>2]=0;G[e+1108>>1]=0;H[e+1100>>2]=0;H[e+1104>>2]=0;G[e+1120>>1]=0;H[e+1112>>2]=0;H[e+1116>>2]=0;G[e+1132>>1]=0;H[e+1124>>2]=0;H[e+1128>>2]=0;G[e+1144>>1]=0;H[e+1136>>2]=0;H[e+1140>>2]=0;G[e+1156>>1]=0;H[e+1148>>2]=0;H[e+1152>>2]=0;G[e+1168>>1]=0;H[e+1160>>2]=0;H[e+1164>>2]=0;G[e+1180>>1]=0;H[e+1172>>2]=0;H[e+1176>>2]=0;G[e+1192>>1]=0;H[e+1184>>2]=0;H[e+1188>>2]=0;G[e+1204>>1]=0;H[e+1196>>2]=0;H[e+1200>>2]=0;G[e+1216>>1]=0;H[e+1208>>2]=0;H[e+1212>>2]=0;G[e+1228>>1]=0;H[e+1220>>2]=0;H[e+1224>>2]=0;G[e+1240>>1]=0;H[e+1232>>2]=0;H[e+1236>>2]=0;G[e+1252>>1]=0;H[e+1244>>2]=0;H[e+1248>>2]=0;G[e+1264>>1]=0;H[e+1256>>2]=0;H[e+1260>>2]=0;G[e+1276>>1]=0;H[e+1268>>2]=0;H[e+1272>>2]=0;G[e+1288>>1]=0;H[e+1280>>2]=0;H[e+1284>>2]=0;G[e+1300>>1]=0;H[e+1292>>2]=0;H[e+1296>>2]=0;G[e+1312>>1]=0;H[e+1304>>2]=0;H[e+1308>>2]=0;G[e+1324>>1]=0;H[e+1316>>2]=0;H[e+1320>>2]=0;G[e+1336>>1]=0;H[e+1328>>2]=0;H[e+1332>>2]=0;G[e+1348>>1]=0;H[e+1340>>2]=0;H[e+1344>>2]=0;G[e+1360>>1]=0;H[e+1352>>2]=0;H[e+1356>>2]=0;G[e+1372>>1]=0;H[e+1364>>2]=0;H[e+1368>>2]=0;G[e+1384>>1]=0;H[e+1376>>2]=0;H[e+1380>>2]=0;G[e+1396>>1]=0;H[e+1388>>2]=0;H[e+1392>>2]=0;G[e+1408>>1]=0;H[e+1400>>2]=0;H[e+1404>>2]=0;G[e+1420>>1]=0;H[e+1412>>2]=0;H[e+1416>>2]=0;G[e+1432>>1]=0;H[e+1424>>2]=0;H[e+1428>>2]=0;G[e+1444>>1]=0;H[e+1436>>2]=0;H[e+1440>>2]=0;G[e+1456>>1]=0;H[e+1448>>2]=0;H[e+1452>>2]=0;G[e+1468>>1]=0;H[e+1460>>2]=0;H[e+1464>>2]=0;G[e+1480>>1]=0;H[e+1472>>2]=0;H[e+1476>>2]=0;G[e+1492>>1]=0;H[e+1484>>2]=0;H[e+1488>>2]=0;G[e+1504>>1]=0;H[e+1496>>2]=0;H[e+1500>>2]=0;G[e+1516>>1]=0;H[e+1508>>2]=0;H[e+1512>>2]=0;G[e+1528>>1]=0;H[e+1520>>2]=0;H[e+1524>>2]=0;G[e+1540>>1]=0;H[e+1532>>2]=0;H[e+1536>>2]=0;G[e+1552>>1]=0;H[e+1544>>2]=0;H[e+1548>>2]=0;G[e+1564>>1]=0;H[e+1556>>2]=0;H[e+1560>>2]=0;G[e+1576>>1]=0;H[e+1568>>2]=0;H[e+1572>>2]=0;G[e+1588>>1]=0;H[e+1580>>2]=0;H[e+1584>>2]=0;G[e+1600>>1]=0;H[e+1592>>2]=0;H[e+1596>>2]=0;G[e+1612>>1]=0;H[e+1604>>2]=0;H[e+1608>>2]=0;G[e+1624>>1]=0;H[e+1616>>2]=0;H[e+1620>>2]=0;G[e+1636>>1]=0;H[e+1628>>2]=0;H[e+1632>>2]=0;G[e+1648>>1]=0;H[e+1640>>2]=0;H[e+1644>>2]=0;G[e+1660>>1]=0;H[e+1652>>2]=0;H[e+1656>>2]=0;G[e+1672>>1]=0;H[e+1664>>2]=0;H[e+1668>>2]=0;G[e+1684>>1]=0;H[e+1676>>2]=0;H[e+1680>>2]=0;G[e+1696>>1]=0;H[e+1688>>2]=0;H[e+1692>>2]=0;G[e+1708>>1]=0;H[e+1700>>2]=0;H[e+1704>>2]=0;G[e+1720>>1]=0;H[e+1712>>2]=0;H[e+1716>>2]=0;G[e+1732>>1]=0;H[e+1724>>2]=0;H[e+1728>>2]=0;G[e+1744>>1]=0;H[e+1736>>2]=0;H[e+1740>>2]=0;G[e+1756>>1]=0;H[e+1748>>2]=0;H[e+1752>>2]=0;G[e+1768>>1]=0;H[e+1760>>2]=0;H[e+1764>>2]=0;G[e+1780>>1]=0;H[e+1772>>2]=0;H[e+1776>>2]=0;G[e+1792>>1]=0;H[e+1784>>2]=0;H[e+1788>>2]=0;G[e+1804>>1]=0;H[e+1796>>2]=0;H[e+1800>>2]=0;G[e+1816>>1]=0;H[e+1808>>2]=0;H[e+1812>>2]=0;G[e+1828>>1]=0;H[e+1820>>2]=0;H[e+1824>>2]=0;G[e+1840>>1]=0;H[e+1832>>2]=0;H[e+1836>>2]=0;G[e+1852>>1]=0;H[e+1844>>2]=0;H[e+1848>>2]=0;G[e+1864>>1]=0;H[e+1856>>2]=0;H[e+1860>>2]=0;G[e+1876>>1]=0;H[e+1868>>2]=0;H[e+1872>>2]=0;G[e+1888>>1]=0;H[e+1880>>2]=0;H[e+1884>>2]=0;G[e+1900>>1]=0;H[e+1892>>2]=0;H[e+1896>>2]=0;G[e+1912>>1]=0;H[e+1904>>2]=0;H[e+1908>>2]=0;G[e+1924>>1]=0;H[e+1916>>2]=0;H[e+1920>>2]=0;G[e+1936>>1]=0;H[e+1928>>2]=0;H[e+1932>>2]=0;G[e+1948>>1]=0;H[e+1940>>2]=0;H[e+1944>>2]=0;G[e+1960>>1]=0;H[e+1952>>2]=0;H[e+1956>>2]=0;G[e+1972>>1]=0;H[e+1964>>2]=0;H[e+1968>>2]=0;G[e+1984>>1]=0;H[e+1976>>2]=0;H[e+1980>>2]=0;G[e+1996>>1]=0;H[e+1988>>2]=0;H[e+1992>>2]=0;G[e+2008>>1]=0;H[e+2e3>>2]=0;H[e+2004>>2]=0;G[e+2020>>1]=0;H[e+2012>>2]=0;H[e+2016>>2]=0;G[e+2032>>1]=0;H[e+2024>>2]=0;H[e+2028>>2]=0;G[e+2044>>1]=0;H[e+2036>>2]=0;H[e+2040>>2]=0;G[e+2056>>1]=0;H[e+2048>>2]=0;H[e+2052>>2]=0;G[e+2068>>1]=0;H[e+2060>>2]=0;H[e+2064>>2]=0;G[e+2080>>1]=0;H[e+2072>>2]=0;H[e+2076>>2]=0;G[e+2092>>1]=0;H[e+2084>>2]=0;H[e+2088>>2]=0;G[e+2104>>1]=0;H[e+2096>>2]=0;H[e+2100>>2]=0;G[e+2116>>1]=0;H[e+2108>>2]=0;H[e+2112>>2]=0;G[e+2128>>1]=0;H[e+2120>>2]=0;H[e+2124>>2]=0;G[e+2140>>1]=0;H[e+2132>>2]=0;H[e+2136>>2]=0;G[e+2152>>1]=0;H[e+2144>>2]=0;H[e+2148>>2]=0;G[e+2164>>1]=0;H[e+2156>>2]=0;H[e+2160>>2]=0;G[e+2176>>1]=0;H[e+2168>>2]=0;H[e+2172>>2]=0;G[e+2188>>1]=0;H[e+2180>>2]=0;H[e+2184>>2]=0;G[e+2200>>1]=0;H[e+2192>>2]=0;H[e+2196>>2]=0;G[e+2212>>1]=0;H[e+2204>>2]=0;H[e+2208>>2]=0;G[e+2224>>1]=0;H[e+2216>>2]=0;H[e+2220>>2]=0;G[e+2236>>1]=0;H[e+2228>>2]=0;H[e+2232>>2]=0;G[e+2248>>1]=0;H[e+2240>>2]=0;H[e+2244>>2]=0;G[e+2260>>1]=0;H[e+2252>>2]=0;H[e+2256>>2]=0;G[e+2272>>1]=0;H[e+2264>>2]=0;H[e+2268>>2]=0;G[e+2284>>1]=0;H[e+2276>>2]=0;H[e+2280>>2]=0;G[e+2296>>1]=0;H[e+2288>>2]=0;H[e+2292>>2]=0;G[e+2308>>1]=0;H[e+2300>>2]=0;H[e+2304>>2]=0;G[e+2320>>1]=0;H[e+2312>>2]=0;H[e+2316>>2]=0;G[e+2332>>1]=0;H[e+2324>>2]=0;H[e+2328>>2]=0;G[e+2344>>1]=0;H[e+2336>>2]=0;H[e+2340>>2]=0;G[e+2356>>1]=0;H[e+2348>>2]=0;H[e+2352>>2]=0;G[e+2368>>1]=0;H[e+2360>>2]=0;H[e+2364>>2]=0;G[e+2380>>1]=0;H[e+2372>>2]=0;H[e+2376>>2]=0;G[e+2392>>1]=0;H[e+2384>>2]=0;H[e+2388>>2]=0;G[e+2404>>1]=0;H[e+2396>>2]=0;H[e+2400>>2]=0;G[e+2416>>1]=0;H[e+2408>>2]=0;H[e+2412>>2]=0;G[e+2428>>1]=0;H[e+2420>>2]=0;H[e+2424>>2]=0;G[e+2440>>1]=0;H[e+2432>>2]=0;H[e+2436>>2]=0;G[e+2452>>1]=0;H[e+2444>>2]=0;H[e+2448>>2]=0;G[e+2464>>1]=0;H[e+2456>>2]=0;H[e+2460>>2]=0;G[e+2476>>1]=0;H[e+2468>>2]=0;H[e+2472>>2]=0;G[e+2488>>1]=0;H[e+2480>>2]=0;H[e+2484>>2]=0;G[e+2500>>1]=0;H[e+2492>>2]=0;H[e+2496>>2]=0;G[e+2512>>1]=0;H[e+2504>>2]=0;H[e+2508>>2]=0;G[e+2524>>1]=0;H[e+2516>>2]=0;H[e+2520>>2]=0;G[e+2536>>1]=0;H[e+2528>>2]=0;H[e+2532>>2]=0;G[e+2548>>1]=0;H[e+2540>>2]=0;H[e+2544>>2]=0;G[e+2560>>1]=0;H[e+2552>>2]=0;H[e+2556>>2]=0;G[e+2572>>1]=0;H[e+2564>>2]=0;H[e+2568>>2]=0;G[e+2584>>1]=0;H[e+2576>>2]=0;H[e+2580>>2]=0;G[e+2596>>1]=0;H[e+2588>>2]=0;H[e+2592>>2]=0;G[e+2608>>1]=0;H[e+2600>>2]=0;H[e+2604>>2]=0;G[e+2620>>1]=0;H[e+2612>>2]=0;H[e+2616>>2]=0;G[e+2632>>1]=0;H[e+2624>>2]=0;H[e+2628>>2]=0;G[e+2644>>1]=0;H[e+2636>>2]=0;H[e+2640>>2]=0;G[e+2656>>1]=0;H[e+2648>>2]=0;H[e+2652>>2]=0;G[e+2668>>1]=0;H[e+2660>>2]=0;H[e+2664>>2]=0;G[e+2680>>1]=0;H[e+2672>>2]=0;H[e+2676>>2]=0;G[e+2692>>1]=0;H[e+2684>>2]=0;H[e+2688>>2]=0;G[e+2704>>1]=0;H[e+2696>>2]=0;H[e+2700>>2]=0;G[e+2716>>1]=0;H[e+2708>>2]=0;H[e+2712>>2]=0;G[e+2728>>1]=0;H[e+2720>>2]=0;H[e+2724>>2]=0;G[e+2740>>1]=0;H[e+2732>>2]=0;H[e+2736>>2]=0;G[e+2752>>1]=0;H[e+2744>>2]=0;H[e+2748>>2]=0;G[e+2764>>1]=0;H[e+2756>>2]=0;H[e+2760>>2]=0;G[e+2776>>1]=0;H[e+2768>>2]=0;H[e+2772>>2]=0;G[e+2788>>1]=0;H[e+2780>>2]=0;H[e+2784>>2]=0;G[e+2800>>1]=0;H[e+2792>>2]=0;H[e+2796>>2]=0;G[e+2812>>1]=0;H[e+2804>>2]=0;H[e+2808>>2]=0;G[e+2824>>1]=0;H[e+2816>>2]=0;H[e+2820>>2]=0;G[e+2836>>1]=0;H[e+2828>>2]=0;H[e+2832>>2]=0;G[e+2848>>1]=0;H[e+2840>>2]=0;H[e+2844>>2]=0;G[e+2860>>1]=0;H[e+2852>>2]=0;H[e+2856>>2]=0;G[e+2872>>1]=0;H[e+2864>>2]=0;H[e+2868>>2]=0;G[e+2884>>1]=0;H[e+2876>>2]=0;H[e+2880>>2]=0;G[e+2896>>1]=0;H[e+2888>>2]=0;H[e+2892>>2]=0;G[e+2908>>1]=0;H[e+2900>>2]=0;H[e+2904>>2]=0;G[e+2920>>1]=0;H[e+2912>>2]=0;H[e+2916>>2]=0;G[e+2932>>1]=0;H[e+2924>>2]=0;H[e+2928>>2]=0;G[e+2944>>1]=0;H[e+2936>>2]=0;H[e+2940>>2]=0;G[e+2956>>1]=0;H[e+2948>>2]=0;H[e+2952>>2]=0;G[e+2968>>1]=0;H[e+2960>>2]=0;H[e+2964>>2]=0;G[e+2980>>1]=0;H[e+2972>>2]=0;H[e+2976>>2]=0;G[e+2992>>1]=0;H[e+2984>>2]=0;H[e+2988>>2]=0;G[e+3004>>1]=0;H[e+2996>>2]=0;H[e+3e3>>2]=0;G[e+3016>>1]=0;H[e+3008>>2]=0;H[e+3012>>2]=0;G[e+3028>>1]=0;H[e+3020>>2]=0;H[e+3024>>2]=0;G[e+3040>>1]=0;H[e+3032>>2]=0;H[e+3036>>2]=0;G[e+3052>>1]=0;H[e+3044>>2]=0;H[e+3048>>2]=0;G[e+3064>>1]=0;H[e+3056>>2]=0;H[e+3060>>2]=0;G[e+3076>>1]=0;H[e+3068>>2]=0;H[e+3072>>2]=0;G[e+3088>>1]=0;H[e+3080>>2]=0;H[e+3084>>2]=0;G[e+24>>1]=0;H[e+16>>2]=0;H[e+20>>2]=0;G[e+8>>1]=0;H[e>>2]=0;H[e+4>>2]=0;H[e+32>>2]=j;c=f-j|0;v=c>>>3|0;H[e+36>>2]=v;d=0;b=0;if(c>>>0<16){break h}m=I[j|0];g=m;k=g;r=I[j+1|0];h=r;n=h;s=1;d=j;f=I[d+3|0];o=f;i=f;b=I[d+2|0];p=b;c=b;while(1){f=f&255;o=(f|0)<(o|0)?o:f;i=(f|0)>(i|0)?i:f;p=(b|0)<(p|0)?p:b;c=(b|0)>(c|0)?c:b;n=(n|0)>(r|0)?n:r;h=(h|0)<(r|0)?h:r;b=m&255;k=(b|0)<(k|0)?k:b;g=(b|0)>(g|0)?g:b;s=s+1|0;if((v|0)==(s|0)){break i}f=I[d+11|0];b=I[d+10|0];r=I[d+9|0];m=I[d+8|0];d=d+8|0;continue}}break a}b=k-g|0;f=n-h|0;h=(b|0)>(f|0)?b:f;c=p-c|0;g=(c|0)<(h|0)?h:c;i=o-i|0;d=(g|0)>(i|0)?g:i;b=(g|0)<(i|0)?3:(c|0)>(h|0)?2:(b|0)<(f|0)}F[e+41|0]=b;F[e+40|0]=d;m=0;c=1;while(1){h=c&3;n=0;k:{if(m>>>0<3){k=-1;d=e+32|0;f=0;g=0;break k}y=c&2147483644;k=-1;f=0;d=e+32|0;g=0;o=0;while(1){i=I[d+8|0];p=(g|0)>(i|0)?g:i;r=I[d+20|0];s=(p|0)>(r|0)?p:r;v=I[d+32|0];b=(s|0)>(v|0)?s:v;g=s>>>0>>0?f|2:p>>>0>>0?f|1:g>>>0>>0?f:k;i=I[d+44|0];k=i>>>0>b>>>0?f|3:g;g=(b|0)>(i|0)?b:i;d=d+48|0;f=f+4|0;o=o+4|0;if((y|0)!=(o|0)){continue}break}}if(h){while(1){b=I[d+8|0];k=b>>>0>g>>>0?f:k;g=(b|0)<(g|0)?g:b;d=d+12|0;f=f+1|0;n=n+1|0;if((h|0)!=(n|0)){continue}break}}l:{if((k|0)<0){h=c;break l}H[197455]=0;b=(e+32|0)+N(k,12)|0;bD(b,e+16|0,e);d=H[197455];H[197455]=0;if((d|0)==1){break a}d=H[e+20>>2];H[b>>2]=H[e+16>>2];H[b+4>>2]=d;G[b+8>>1]=J[e+24>>1];b=(e+32|0)+N(c,12)|0;G[b+8>>1]=J[e+8>>1];d=H[e+4>>2];H[b>>2]=H[e>>2];H[b+4>>2]=d;m=m+1|0;h=255;c=c+1|0;if((c|0)!=255){continue}}break}d=0;while(1){i=d+1|0;f=(i<<2)+x|0;a=0;c=(e+32|0)+N(d,12)|0;b=H[c>>2];m:{if(!b){break m}if(!I[c+8|0]){a=H[b>>2];break m}l=+I[b+3|0];q=+I[b+2|0];t=+I[b+1|0];u=+I[b|0];a=H[c+4>>2];n:{if(a>>>0<2){break n}l=l+l;q=q+q;t=t+t;u=u+u;if((a|0)==2){break n}if((a|0)!=3){g=a-2&-2;d=0;while(1){l=l+ +I[b+11|0]+ +I[b+19|0];q=q+ +I[b+10|0]+ +I[b+18|0];t=t+ +I[b+9|0]+ +I[b+17|0];u=u+ +I[b+8|0]+ +I[b+16|0];b=b+16|0;d=d+2|0;if((g|0)!=(d|0)){continue}break}}if(!(a&1)){break n}u=u+ +I[b+8|0];l=l+ +I[b+11|0];q=q+ +I[b+10|0];t=t+ +I[b+9|0]}w=q;q=+(a>>>0);w=w/q+.5;o:{if(w<4294967296&w>=0){a=~~w>>>0;break o}a=0}b=a<<16;l=l/q+.5;p:{if(l<4294967296&l>=0){a=~~l>>>0;break p}a=0}b=b|a<<24;l=t/q+.5;q:{if(l<4294967296&l>=0){a=~~l>>>0;break q}a=0}a=b|a<<8;l=u/q+.5;if(l<4294967296&l>=0){a=a|~~l>>>0}}H[f>>2]=a;if(H[c+4>>2]){d=H[c>>2];f=0;while(1){F[H[d+4>>2]]=i;d=d+8|0;f=f+1|0;if(f>>>0>2]){continue}break}}d=i;if((h|0)!=(d|0)){continue}break}}Kb(j)}xb=e+3104|0;return}c=$()|0;_()|0;b=H[a>>2];if(b){H[a+4>>2]=b;Kb(b)}ea(c|0);X()}function Kx(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,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,G=0;p=xb-48|0;xb=p;a:{if(c>>>0<=2){c=c<<2;x=H[c+766348>>2];A=H[c+766336>>2];while(1){c=H[b+4>>2];b:{if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;c=I[c|0];break b}c=Wc(b)}if((c|0)==32|c-9>>>0<5){continue}break}n=1;c:{d:{switch(c-43|0){case 0:case 2:break d;default:break c}}n=(c|0)==45?-1:1;c=H[b+4>>2];if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;c=I[c|0];break c}c=Wc(b)}e:{f:{while(1){if(F[g+238056|0]==(c|32)){g:{if(g>>>0>6){break g}c=H[b+4>>2];if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;c=I[c|0];break g}c=Wc(b)}g=g+1|0;if((g|0)!=8){continue}break f}break}if((g|0)!=3){if((g|0)==8){break f}if(!d|g>>>0<4){break e}if((g|0)==8){break f}}c=H[b+116>>2];if((c|0)>0|(c|0)>=0){H[b+4>>2]=H[b+4>>2]-1}if(!d|g>>>0<4){break f}c=(c|0)<0;while(1){if(!c){H[b+4>>2]=H[b+4>>2]-1}g=g-1|0;if(g>>>0>3){continue}break}}g=xb-16|0;xb=g;d=(C(O(O(n|0)*O(Z))),v(2));b=d&2147483647;h:{if(b-8388608>>>0<=2130706431){c=b;b=b>>>7|0;j=c<<25;c=b+1065353216|0;break h}j=d<<25;c=d>>>7|2147418112;if(b>>>0>=2139095040){break h}j=0;c=0;if(!b){break h}c=b;b=Q(b);He(g,c,0,0,0,b+81|0);i=H[g>>2];h=H[g+4>>2];j=H[g+8>>2];c=H[g+12>>2]^65536|16265-b<<16}H[p>>2]=i;H[p+4>>2]=h;H[p+8>>2]=j;H[p+12>>2]=d&-2147483648|c;xb=g+16|0;i=H[p+8>>2];h=H[p+12>>2];j=H[p>>2];k=H[p+4>>2];break a}i:{j:{k:{if(g){break k}g=0;while(1){if(F[g+238829|0]!=(c|32)){break k}l:{if(g>>>0>1){break l}c=H[b+4>>2];if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;c=I[c|0];break l}c=Wc(b)}g=g+1|0;if((g|0)!=3){continue}break}break j}m:{switch(g|0){case 0:n:{if((c|0)!=48){break n}g=H[b+4>>2];o:{if((g|0)!=H[b+104>>2]){H[b+4>>2]=g+1;g=I[g|0];break o}g=Wc(b)}if((g&-33)==88){f=xb-432|0;xb=f;c=H[b+4>>2];p:{if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;g=I[c|0];break p}g=Wc(b)}q:{r:{while(1){if((g|0)!=48){s:{if((g|0)!=46){break q}c=H[b+4>>2];if((c|0)==H[b+104>>2]){break s}H[b+4>>2]=c+1;g=I[c|0];break r}}else{c=H[b+4>>2];if((c|0)!=H[b+104>>2]){s=1;H[b+4>>2]=c+1;g=I[c|0]}else{s=1;g=Wc(b)}continue}break}g=Wc(b)}e=1;if((g|0)!=48){break q}while(1){c=q;q=c-1|0;r=r-!c|0;c=H[b+4>>2];t:{if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;g=I[c|0];break t}g=Wc(b)}if((g|0)==48){continue}break}s=1}k=1073676288;u:{while(1){v:{c=g|32;w:{x:{E=g-48|0;if(E>>>0<10){break x}if((g|0)!=46&c-97>>>0>=6){break u}if((g|0)!=46){break x}if(e){break v}e=1;q=i;r=h;break w}c=(g|0)>57?c-87|0:E;y:{if((h|0)<=0&i>>>0<=7|(h|0)<0){t=c+(t<<4)|0;break y}if(!h&i>>>0<=28){ff(f+48|0,c);ld(f+32|0,y,z,j,k,0,0,0,1073414144);y=H[f+32>>2];z=H[f+36>>2];j=H[f+40>>2];k=H[f+44>>2];ld(f+16|0,H[f+48>>2],H[f+52>>2],H[f+56>>2],H[f+60>>2],y,z,j,k);Ze(f,H[f+16>>2],H[f+20>>2],H[f+24>>2],H[f+28>>2],l,o,u,w);u=H[f+8>>2];w=H[f+12>>2];l=H[f>>2];o=H[f+4>>2];break y}if(m|!c){break y}ld(f+80|0,y,z,j,k,0,0,0,1073610752);Ze(f- -64|0,H[f+80>>2],H[f+84>>2],H[f+88>>2],H[f+92>>2],l,o,u,w);u=H[f+72>>2];w=H[f+76>>2];m=1;l=H[f+64>>2];o=H[f+68>>2]}c=i+1|0;h=c?h:h+1|0;i=c;s=1}c=H[b+4>>2];if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;g=I[c|0]}else{g=Wc(b)}continue}break}g=46}z:{if(!s){c=H[b+116>>2];A:{B:{if((c|0)>0|(c|0)>=0){c=H[b+4>>2];H[b+4>>2]=c-1;if(!d){break B}H[b+4>>2]=c-2;if(!e){break A}H[b+4>>2]=c-3;break A}if(d){break A}}Mf(b,0,0)}Lf(f+96|0,+(n|0)*0);l=H[f+96>>2];o=H[f+100>>2];c=H[f+108>>2];b=H[f+104>>2];break z}if((h|0)<=0&i>>>0<=7|(h|0)<0){j=i;k=h;while(1){t=t<<4;c=j+1|0;k=c?k:k+1|0;j=c;if((c|0)!=8|k){continue}break}}C:{D:{E:{if((g&-33)==80){j=Ix(b,d);c=yb;k=c;if(j|(c|0)!=-2147483648){break C}if(d){c=H[b+116>>2];if((c|0)>0|(c|0)>=0){break E}break D}l=0;o=0;Mf(b,0,0);c=0;b=0;break z}j=0;k=0;if(H[b+116>>2]<0){break C}}H[b+4>>2]=H[b+4>>2]-1}j=0;k=0}if(!t){Lf(f+112|0,+(n|0)*0);l=H[f+112>>2];o=H[f+116>>2];c=H[f+124>>2];b=H[f+120>>2];break z}b=e?q:i;h=(e?r:h)<<2|b>>>30;c=j+(b<<2)|0;b=h+k|0;b=c>>>0>>0?b+1|0:b;i=c-32|0;h=b-(c>>>0<32)|0;b=h;if(i>>>0>0-x>>>0&(b|0)>=0|(b|0)>0){H[197018]=68;ff(f+160|0,n);ld(f+144|0,H[f+160>>2],H[f+164>>2],H[f+168>>2],H[f+172>>2],-1,-1,-1,2147418111);ld(f+128|0,H[f+144>>2],H[f+148>>2],H[f+152>>2],H[f+156>>2],-1,-1,-1,2147418111);l=H[f+128>>2];o=H[f+132>>2];c=H[f+140>>2];b=H[f+136>>2];break z}b=x-226|0;c=b>>31;if((h|0)>=(c|0)&b>>>0<=i>>>0|(c|0)<(h|0)){if((t|0)>=0){while(1){Ze(f+416|0,l,o,u,w,0,0,0,-1073807360);c=qp(l,o,u,w,1073610752);b=(c|0)<0;Ze(f+400|0,l,o,u,w,b?l:H[f+416>>2],b?o:H[f+420>>2],b?u:H[f+424>>2],b?w:H[f+428>>2]);b=i;i=b-1|0;h=h-!b|0;u=H[f+408>>2];w=H[f+412>>2];l=H[f+400>>2];o=H[f+404>>2];t=t<<1|(c|0)>=0;if((t|0)>=0){continue}break}}h=h-((x>>31)+(i>>>0>>0)|0)|0;b=(i-x|0)+32|0;h=b>>>0<32?h+1|0:h;c=b>>>0>>0&(h|0)<=0|(h|0)<0?(b|0)>0?b:0:A;F:{if((c|0)>=113){ff(f+384|0,n);q=H[f+392>>2];r=H[f+396>>2];y=H[f+384>>2];z=H[f+388>>2];h=0;b=0;break F}Lf(f+352|0,sh(1,144-c|0));ff(f+336|0,n);y=H[f+336>>2];z=H[f+340>>2];q=H[f+344>>2];r=H[f+348>>2];Nx(f+368|0,H[f+352>>2],H[f+356>>2],H[f+360>>2],H[f+364>>2],y,z,q,r);B=H[f+376>>2];D=H[f+380>>2];h=H[f+372>>2];b=H[f+368>>2]}c=!(t&1)&((mi(l,o,u,w,0,0,0,0)|0)!=0&(c|0)<32);bj(f+320|0,c+t|0);ld(f+304|0,y,z,q,r,H[f+320>>2],H[f+324>>2],H[f+328>>2],H[f+332>>2]);d=b;Ze(f+272|0,H[f+304>>2],H[f+308>>2],H[f+312>>2],H[f+316>>2],b,h,B,D);b=c;ld(f+288|0,y,z,q,r,b?0:l,b?0:o,b?0:u,b?0:w);Ze(f+256|0,H[f+288>>2],H[f+292>>2],H[f+296>>2],H[f+300>>2],H[f+272>>2],H[f+276>>2],H[f+280>>2],H[f+284>>2]);pp(f+240|0,H[f+256>>2],H[f+260>>2],H[f+264>>2],H[f+268>>2],d,h,B,D);b=H[f+240>>2];c=H[f+244>>2];d=H[f+248>>2];h=H[f+252>>2];if(!mi(b,c,d,h,0,0,0,0)){H[197018]=68}Mx(f+224|0,b,c,d,h,i);l=H[f+224>>2];o=H[f+228>>2];c=H[f+236>>2];b=H[f+232>>2];break z}H[197018]=68;ff(f+208|0,n);ld(f+192|0,H[f+208>>2],H[f+212>>2],H[f+216>>2],H[f+220>>2],0,0,0,65536);ld(f+176|0,H[f+192>>2],H[f+196>>2],H[f+200>>2],H[f+204>>2],0,0,0,65536);l=H[f+176>>2];o=H[f+180>>2];c=H[f+188>>2];b=H[f+184>>2]}H[p+16>>2]=l;H[p+20>>2]=o;H[p+24>>2]=b;H[p+28>>2]=c;xb=f+432|0;i=H[p+24>>2];h=H[p+28>>2];j=H[p+16>>2];k=H[p+20>>2];break a}if(H[b+116>>2]<0){break n}H[b+4>>2]=H[b+4>>2]-1}g=b;f=n;t=d;d=0;n=0;e=xb-8976|0;xb=e;D=x+A|0;E=0-D|0;G:{H:{while(1){if((c|0)!=48){I:{if((c|0)!=46){break G}b=H[g+4>>2];if((b|0)==H[g+104>>2]){break I}H[g+4>>2]=b+1;c=I[b|0];break H}}else{b=H[g+4>>2];if((b|0)!=H[g+104>>2]){d=1;H[g+4>>2]=b+1;c=I[b|0]}else{d=1;c=Wc(g)}continue}break}c=Wc(g)}m=1;if((c|0)!=48){break G}while(1){b=i;i=b-1|0;h=h-!b|0;b=H[g+4>>2];J:{if((b|0)!=H[g+104>>2]){H[g+4>>2]=b+1;c=I[b|0];break J}c=Wc(g)}if((c|0)==48){continue}break}d=1}H[e+784>>2]=0;K:{L:{b=(c|0)==46;l=c-48|0;M:{N:{O:{P:{if(b|l>>>0<=9){while(1){Q:{if(b&1){if(!m){i=j;h=k;m=1;break Q}b=!d;break P}b=j+1|0;k=b?k:k+1|0;j=b;if((n|0)<=2044){B=(c|0)==48?B:j;b=(e+784|0)+(n<<2)|0;if(s){l=(N(H[b>>2],10)+c|0)-48|0}H[b>>2]=l;d=1;c=s+1|0;b=(c|0)==9;s=b?0:c;n=b+n|0;break Q}if((c|0)==48){break Q}H[e+8960>>2]=H[e+8960>>2]|1;B=18396}b=H[g+4>>2];R:{if((b|0)!=H[g+104>>2]){H[g+4>>2]=b+1;c=I[b|0];break R}c=Wc(g)}b=(c|0)==46;l=c-48|0;if(b|l>>>0<10){continue}break}}i=m?i:j;h=m?h:k;if(!(!d|(c&-33)!=69)){l=Ix(g,t);b=yb;o=b;S:{if(l|(b|0)!=-2147483648){break S}if(!t){break M}l=0;o=0;if(H[g+116>>2]<0){break S}H[g+4>>2]=H[g+4>>2]-1}if(!d){break N}h=h+o|0;b=i+l|0;h=b>>>0>>0?h+1|0:h;i=b;break L}b=!d;if((c|0)<0){break O}}if(H[g+116>>2]<0){break O}H[g+4>>2]=H[g+4>>2]-1}if(!b){break L}}H[197018]=28}j=0;k=0;Mf(g,0,0);c=0;b=0;break K}b=H[e+784>>2];if(!b){Lf(e,+(f|0)*0);j=H[e>>2];k=H[e+4>>2];c=H[e+12>>2];b=H[e+8>>2];break K}if(!(j>>>0>9&(k|0)>=0|(k|0)>0|((i|0)!=(j|0)|(h|0)!=(k|0))|(b>>>A|0?(A|0)<=30:0))){ff(e+48|0,f);bj(e+32|0,b);ld(e+16|0,H[e+48>>2],H[e+52>>2],H[e+56>>2],H[e+60>>2],H[e+32>>2],H[e+36>>2],H[e+40>>2],H[e+44>>2]);j=H[e+16>>2];k=H[e+20>>2];c=H[e+28>>2];b=H[e+24>>2];break K}if(i>>>0>(x|0)/-2>>>0&(h|0)>=0|(h|0)>0){H[197018]=68;ff(e+96|0,f);ld(e+80|0,H[e+96>>2],H[e+100>>2],H[e+104>>2],H[e+108>>2],-1,-1,-1,2147418111);ld(e- -64|0,H[e+80>>2],H[e+84>>2],H[e+88>>2],H[e+92>>2],-1,-1,-1,2147418111);j=H[e+64>>2];k=H[e+68>>2];c=H[e+76>>2];b=H[e+72>>2];break K}b=x-226|0;c=i>>>0>>0;b=b>>31;if(c&(h|0)<=(b|0)|(b|0)>(h|0)){H[197018]=68;ff(e+144|0,f);ld(e+128|0,H[e+144>>2],H[e+148>>2],H[e+152>>2],H[e+156>>2],0,0,0,65536);ld(e+112|0,H[e+128>>2],H[e+132>>2],H[e+136>>2],H[e+140>>2],0,0,0,65536);j=H[e+112>>2];k=H[e+116>>2];c=H[e+124>>2];b=H[e+120>>2];break K}if(s){if((s|0)<=8){b=(e+784|0)+(n<<2)|0;g=H[b>>2];while(1){g=N(g,10);s=s+1|0;if((s|0)!=9){continue}break}H[b>>2]=g}n=n+1|0}T:{m=i;if((B|0)>(i|0)|(B|0)>=9|(i|0)>17){break T}if((m|0)==9){ff(e+192|0,f);bj(e+176|0,H[e+784>>2]);ld(e+160|0,H[e+192>>2],H[e+196>>2],H[e+200>>2],H[e+204>>2],H[e+176>>2],H[e+180>>2],H[e+184>>2],H[e+188>>2]);j=H[e+160>>2];k=H[e+164>>2];c=H[e+172>>2];b=H[e+168>>2];break K}if((m|0)<=8){ff(e+272|0,f);bj(e+256|0,H[e+784>>2]);ld(e+240|0,H[e+272>>2],H[e+276>>2],H[e+280>>2],H[e+284>>2],H[e+256>>2],H[e+260>>2],H[e+264>>2],H[e+268>>2]);ff(e+224|0,H[(0-m<<2)+766336>>2]);yx(e+208|0,H[e+240>>2],H[e+244>>2],H[e+248>>2],H[e+252>>2],H[e+224>>2],H[e+228>>2],H[e+232>>2],H[e+236>>2]);j=H[e+208>>2];k=H[e+212>>2];c=H[e+220>>2];b=H[e+216>>2];break K}b=(N(m,-3)+A|0)+27|0;c=H[e+784>>2];if(c>>>b|0?(b|0)<=30:0){break T}ff(e+352|0,f);bj(e+336|0,c);ld(e+320|0,H[e+352>>2],H[e+356>>2],H[e+360>>2],H[e+364>>2],H[e+336>>2],H[e+340>>2],H[e+344>>2],H[e+348>>2]);ff(e+304|0,H[(m<<2)+766264>>2]);ld(e+288|0,H[e+320>>2],H[e+324>>2],H[e+328>>2],H[e+332>>2],H[e+304>>2],H[e+308>>2],H[e+312>>2],H[e+316>>2]);j=H[e+288>>2];k=H[e+292>>2];c=H[e+300>>2];b=H[e+296>>2];break K}while(1){c=n;n=c-1|0;if(!H[(e+784|0)+(n<<2)>>2]){continue}break}s=0;b=(m|0)%9|0;U:{if(!b){b=0;break U}d=(m|0)>=0?b:b+9|0;V:{if(!c){b=0;c=0;break V}i=H[(0-d<<2)+766336>>2];k=1e9/(i|0)|0;l=0;g=0;b=0;while(1){h=l;j=(e+784|0)+(g<<2)|0;n=H[j>>2];l=(n>>>0)/(i>>>0)|0;h=h+l|0;H[j>>2]=h;h=!h&(b|0)==(g|0);b=h?b+1&2047:b;m=h?m-9|0:m;l=N(k,n-N(i,l)|0);g=g+1|0;if((g|0)!=(c|0)){continue}break}if(!l){break V}H[(e+784|0)+(c<<2)>>2]=l;c=c+1|0}m=(m-d|0)+9|0}while(1){j=(e+784|0)+(b<<2)|0;W:{while(1){if(((m|0)!=36|K[j>>2]>=10384593)&(m|0)>=36){break W}d=c+2047|0;l=0;while(1){g=d&2047;n=(e+784|0)+(g<<2)|0;d=H[n>>2];k=d>>>3|0;i=d<<29;d=i+l|0;k=d>>>0>>0?k+1|0:k;i=d;h=k;if(!h&i>>>0<1000000001){l=0}else{l=ima(i,h,1e9,0);i=i-gma(l,yb,1e9,0)|0}H[n>>2]=i;c=(g|0)!=(c-1&2047)?c:(b|0)==(g|0)?c:i?c:g;d=g-1|0;if((b|0)!=(g|0)){continue}break}s=s-29|0;if(!l){continue}break}b=b-1&2047;if((c|0)==(b|0)){d=e+784|0;i=d+((c+2046&2047)<<2)|0;c=c-1&2047;H[i>>2]=H[i>>2]|H[d+(c<<2)>>2]}m=m+9|0;H[(e+784|0)+(b<<2)>>2]=l;continue}break}X:{Y:while(1){i=c+1&2047;k=(e+784|0)+((c-1&2047)<<2)|0;while(1){h=(m|0)>45?9:1;Z:{while(1){d=b;g=0;_:{while(1){$:{b=d+g&2047;if((b|0)==(c|0)){break $}b=H[(e+784|0)+(b<<2)>>2];j=H[(g<<2)+766288>>2];if(b>>>0>>0){break $}if(b>>>0>j>>>0){break _}g=g+1|0;if((g|0)!=4){continue}}break}if((m|0)!=36){break _}i=0;h=0;g=0;j=0;k=0;while(1){b=d+g&2047;if((b|0)==(c|0)){c=c+1&2047;H[(e+(c<<2)|0)+780>>2]=0}bj(e+768|0,H[(e+784|0)+(b<<2)>>2]);ld(e+752|0,i,h,j,k,0,0,1342177280,1075633366);Ze(e+736|0,H[e+752>>2],H[e+756>>2],H[e+760>>2],H[e+764>>2],H[e+768>>2],H[e+772>>2],H[e+776>>2],H[e+780>>2]);j=H[e+744>>2];k=H[e+748>>2];i=H[e+736>>2];h=H[e+740>>2];g=g+1|0;if((g|0)!=4){continue}break}ff(e+720|0,f);ld(e+704|0,i,h,j,k,H[e+720>>2],H[e+724>>2],H[e+728>>2],H[e+732>>2]);j=H[e+712>>2];k=H[e+716>>2];i=0;h=0;l=H[e+704>>2];o=H[e+708>>2];t=s+113|0;g=t-x|0;n=(g|0)<(A|0);b=n?(g|0)>0?g:0:A;if((b|0)<=112){break Z}break X}s=h+s|0;b=c;if((d|0)==(b|0)){continue}break}j=1e9>>>h|0;n=-1<>2];g=(t>>>h|0)+g|0;H[l>>2]=g;g=!g&(b|0)==(d|0);b=g?b+1&2047:b;m=g?m-9|0:m;g=N(j,n&t);d=d+1&2047;if((d|0)!=(c|0)){continue}break}if(!g){continue}if((b|0)!=(i|0)){H[(e+784|0)+(c<<2)>>2]=g;c=i;continue Y}H[k>>2]=H[k>>2]|1;continue}break}break}Lf(e+656|0,sh(1,225-b|0));Nx(e+688|0,H[e+656>>2],H[e+660>>2],H[e+664>>2],H[e+668>>2],l,o,j,k);y=H[e+696>>2];z=H[e+700>>2];u=H[e+688>>2];w=H[e+692>>2];Lf(e+640|0,sh(1,113-b|0));Lx(e+672|0,l,o,j,k,H[e+640>>2],H[e+644>>2],H[e+648>>2],H[e+652>>2]);i=H[e+672>>2];h=H[e+676>>2];q=H[e+680>>2];r=H[e+684>>2];pp(e+624|0,l,o,j,k,i,h,q,r);Ze(e+608|0,u,w,y,z,H[e+624>>2],H[e+628>>2],H[e+632>>2],H[e+636>>2]);j=H[e+616>>2];k=H[e+620>>2];l=H[e+608>>2];o=H[e+612>>2]}m=d+4&2047;aa:{if((m|0)==(c|0)){break aa}m=H[(e+784|0)+(m<<2)>>2];ba:{if(m>>>0<=499999999){if(!m&(d+5&2047)==(c|0)){break ba}Lf(e+496|0,+(f|0)*.25);Ze(e+480|0,i,h,q,r,H[e+496>>2],H[e+500>>2],H[e+504>>2],H[e+508>>2]);q=H[e+488>>2];r=H[e+492>>2];i=H[e+480>>2];h=H[e+484>>2];break ba}if((m|0)!=5e8){Lf(e+592|0,+(f|0)*.75);Ze(e+576|0,i,h,q,r,H[e+592>>2],H[e+596>>2],H[e+600>>2],H[e+604>>2]);q=H[e+584>>2];r=H[e+588>>2];i=H[e+576>>2];h=H[e+580>>2];break ba}G=+(f|0);if((d+5&2047)==(c|0)){Lf(e+528|0,G*.5);Ze(e+512|0,i,h,q,r,H[e+528>>2],H[e+532>>2],H[e+536>>2],H[e+540>>2]);q=H[e+520>>2];r=H[e+524>>2];i=H[e+512>>2];h=H[e+516>>2];break ba}Lf(e+560|0,G*.75);Ze(e+544|0,i,h,q,r,H[e+560>>2],H[e+564>>2],H[e+568>>2],H[e+572>>2]);q=H[e+552>>2];r=H[e+556>>2];i=H[e+544>>2];h=H[e+548>>2]}if((b|0)>111){break aa}Lx(e+464|0,i,h,q,r,0,0,0,1073676288);if(mi(H[e+464>>2],H[e+468>>2],H[e+472>>2],H[e+476>>2],0,0,0,0)){break aa}Ze(e+448|0,i,h,q,r,0,0,0,1073676288);q=H[e+456>>2];r=H[e+460>>2];i=H[e+448>>2];h=H[e+452>>2]}Ze(e+432|0,l,o,j,k,i,h,q,r);pp(e+416|0,H[e+432>>2],H[e+436>>2],H[e+440>>2],H[e+444>>2],u,w,y,z);j=H[e+424>>2];k=H[e+428>>2];l=H[e+416>>2];o=H[e+420>>2];ca:{if((-2-D|0)>=(t&2147483647)){break ca}H[e+408>>2]=j;H[e+412>>2]=k&2147483647;H[e+400>>2]=l;H[e+404>>2]=o;ld(e+384|0,l,o,j,k,0,0,0,1073610752);m=H[e+400>>2];f=H[e+404>>2];x=H[e+408>>2];t=H[e+412>>2];c=qp(m,f,x,t,1081081856);d=(c|0)<0;j=d?j:H[e+392>>2];k=d?k:H[e+396>>2];l=d?l:H[e+384>>2];o=d?o:H[e+388>>2];s=((c|0)>=0)+s|0;if((s+110|0)<=(E|0)){if((((qp(m,f,x,t,1081081856)|0)<0?n:n&(b|0)!=(g|0))|0)!=1){break ca}if(!mi(i,h,q,r,0,0,0,0)){break ca}}H[197018]=68}Mx(e+368|0,l,o,j,k,s);j=H[e+368>>2];k=H[e+372>>2];c=H[e+380>>2];b=H[e+376>>2]}H[p+40>>2]=b;H[p+44>>2]=c;H[p+32>>2]=j;H[p+36>>2]=k;xb=e+8976|0;i=H[p+40>>2];h=H[p+44>>2];j=H[p+32>>2];k=H[p+36>>2];break a;case 3:break j;default:break m}}c=H[b+116>>2];if((c|0)>0|(c|0)>=0){H[b+4>>2]=H[b+4>>2]-1}break i}da:{c=H[b+4>>2];ea:{if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;c=I[c|0];break ea}c=Wc(b)}if((c|0)==40){g=1;break da}h=2147450880;if(H[b+116>>2]<0){break a}H[b+4>>2]=H[b+4>>2]-1;break a}while(1){fa:{c=H[b+4>>2];ga:{if((c|0)!=H[b+104>>2]){H[b+4>>2]=c+1;c=I[c|0];break ga}c=Wc(b)}if(!(c-48>>>0<10|c-65>>>0<26|(c|0)==95)){if(c-97>>>0>=26){break fa}}g=g+1|0;continue}break}h=2147450880;if((c|0)==41){break a}c=H[b+116>>2];if((c|0)>0|(c|0)>=0){H[b+4>>2]=H[b+4>>2]-1}ha:{if(d){if(g){break ha}break a}break i}while(1){g=g-1|0;if((c|0)>0|(c|0)>=0){H[b+4>>2]=H[b+4>>2]-1}if(g){continue}break}break a}H[197018]=28;Mf(b,0,0)}h=0}H[a>>2]=j;H[a+4>>2]=k;H[a+8>>2]=i;H[a+12>>2]=h;xb=p+48|0}function Jp(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;d=xb-784|0;xb=d;Lp(a);i=H[a+72>>2];i=zb[H[H[i>>2]+68>>2]](i,2)|0;e=H[a+56>>2]+1|0;H[a+56>>2]=e;f=d+752|0;Ce(f,+(e>>>0),0);H[197455]=0;e=ca(1758,f|0,0,429800)|0;f=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{if((f|0)!=1){H[d+776>>2]=H[e+8>>2];f=H[e+4>>2];H[d+768>>2]=H[e>>2];H[d+772>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;if(F[d+763|0]<0){Kb(H[d+752>>2])}g=M[i>>3];h=M[c>>3];H[197455]=0;fa(1756,d+240|0,+(h*g),-1);e=H[197455];H[197455]=0;if((e|0)==1){break Qa}H[197455]=0;e=ca(1758,d+240|0,0,429852)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Pa}H[d+264>>2]=H[e+8>>2];f=H[e+4>>2];H[d+256>>2]=H[e>>2];H[d+260>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+256|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break Oa}H[d+280>>2]=H[d+264>>2];H[d+264>>2]=0;e=H[d+260>>2];H[d+272>>2]=H[d+256>>2];H[d+276>>2]=e;H[d+256>>2]=0;H[d+260>>2]=0;g=M[i+24>>3];h=M[c+8>>3];H[197455]=0;fa(1756,d+224|0,+(h*g),-1);e=H[197455];H[197455]=0;if((e|0)==1){break Na}H[197455]=0;e=I[d+235|0];f=e<<24>>24<0;e=ca(1759,d+272|0,(f?H[d+224>>2]:d+224|0)|0,(f?H[d+228>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ma}H[d+296>>2]=H[e+8>>2];f=H[e+4>>2];H[d+288>>2]=H[e>>2];H[d+292>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;e=da(1699,d+288|0,429896)|0;f=H[197455];H[197455]=0;if((f|0)==1){break La}H[d+312>>2]=H[e+8>>2];f=H[e+4>>2];H[d+304>>2]=H[e>>2];H[d+308>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;g=M[i>>3];h=M[c+16>>3];H[197455]=0;fa(1756,d+208|0,+(h*g),-1);e=H[197455];H[197455]=0;if((e|0)==1){break Ka}H[197455]=0;e=I[d+219|0];f=e<<24>>24<0;e=ca(1759,d+304|0,(f?H[d+208>>2]:d+208|0)|0,(f?H[d+212>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ja}H[d+328>>2]=H[e+8>>2];f=H[e+4>>2];H[d+320>>2]=H[e>>2];H[d+324>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+320|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break Ia}H[d+344>>2]=H[d+328>>2];H[d+328>>2]=0;e=H[d+324>>2];H[d+336>>2]=H[d+320>>2];H[d+340>>2]=e;H[d+320>>2]=0;H[d+324>>2]=0;g=M[i>>3];h=M[c+8>>3];H[197455]=0;fa(1756,d+192|0,+(h*g),-1);e=H[197455];H[197455]=0;if((e|0)==1){break Ha}H[197455]=0;e=I[d+203|0];f=e<<24>>24<0;e=ca(1759,d+336|0,(f?H[d+192>>2]:d+192|0)|0,(f?H[d+196>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Ga}H[d+360>>2]=H[e+8>>2];f=H[e+4>>2];H[d+352>>2]=H[e>>2];H[d+356>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;e=da(1699,d+352|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Fa}H[d+376>>2]=H[e+8>>2];f=H[e+4>>2];H[d+368>>2]=H[e>>2];H[d+372>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;g=M[i>>3];h=M[c+16>>3];H[197455]=0;fa(1756,d+176|0,+(h*g),-1);e=H[197455];H[197455]=0;if((e|0)==1){break Ea}H[197455]=0;e=I[d+187|0];f=e<<24>>24<0;e=ca(1759,d+368|0,(f?H[d+176>>2]:d+176|0)|0,(f?H[d+180>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Da}H[d+392>>2]=H[e+8>>2];f=H[e+4>>2];H[d+384>>2]=H[e>>2];H[d+388>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+384|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break Ca}H[d+408>>2]=H[d+392>>2];H[d+392>>2]=0;e=H[d+388>>2];H[d+400>>2]=H[d+384>>2];H[d+404>>2]=e;H[d+384>>2]=0;H[d+388>>2]=0;g=M[i+24>>3];h=M[c+24>>3];H[197455]=0;fa(1756,d+160|0,+(h*g),-1);e=H[197455];H[197455]=0;if((e|0)==1){break Ba}H[197455]=0;e=I[d+171|0];f=e<<24>>24<0;e=ca(1759,d+400|0,(f?H[d+160>>2]:d+160|0)|0,(f?H[d+164>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break Aa}H[d+424>>2]=H[e+8>>2];f=H[e+4>>2];H[d+416>>2]=H[e>>2];H[d+420>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;e=da(1699,d+416|0,428528)|0;f=H[197455];H[197455]=0;if((f|0)==1){break za}H[d+440>>2]=H[e+8>>2];f=H[e+4>>2];H[d+432>>2]=H[e>>2];H[d+436>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;g=M[i>>3];h=M[c>>3];H[197455]=0;fa(1756,d+144|0,+(h*g),-1);e=H[197455];H[197455]=0;if((e|0)==1){break ya}H[197455]=0;e=I[d+155|0];f=e<<24>>24<0;e=ca(1759,d+432|0,(f?H[d+144>>2]:d+144|0)|0,(f?H[d+148>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break xa}H[d+456>>2]=H[e+8>>2];f=H[e+4>>2];H[d+448>>2]=H[e>>2];H[d+452>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+448|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break wa}H[d+472>>2]=H[d+456>>2];H[d+456>>2]=0;e=H[d+452>>2];H[d+464>>2]=H[d+448>>2];H[d+468>>2]=e;H[d+448>>2]=0;H[d+452>>2]=0;g=M[i+24>>3];h=M[c+24>>3];H[197455]=0;fa(1756,d+128|0,+(h*g),-1);c=H[197455];H[197455]=0;if((c|0)==1){break va}H[197455]=0;c=I[d+139|0];e=c<<24>>24<0;c=ca(1759,d+464|0,(e?H[d+128>>2]:d+128|0)|0,(e?H[d+132>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ua}H[d+488>>2]=H[c+8>>2];e=H[c+4>>2];H[d+480>>2]=H[c>>2];H[d+484>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;c=da(1699,d+480|0,429912)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ta}H[d+504>>2]=H[c+8>>2];e=H[c+4>>2];H[d+496>>2]=H[c>>2];H[d+500>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;g=M[i>>3];h=M[b>>3];H[197455]=0;fa(1756,d+112|0,+(h*g),-1);c=H[197455];H[197455]=0;if((c|0)==1){break sa}H[197455]=0;c=I[d+123|0];e=c<<24>>24<0;c=ca(1759,d+496|0,(e?H[d+112>>2]:d+112|0)|0,(e?H[d+116>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ra}H[d+520>>2]=H[c+8>>2];e=H[c+4>>2];H[d+512>>2]=H[c>>2];H[d+516>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+512|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break qa}H[d+536>>2]=H[d+520>>2];H[d+520>>2]=0;c=H[d+516>>2];H[d+528>>2]=H[d+512>>2];H[d+532>>2]=c;H[d+512>>2]=0;H[d+516>>2]=0;g=M[i+24>>3];h=M[b+8>>3];H[197455]=0;fa(1756,d+96|0,+(h*g),-1);c=H[197455];H[197455]=0;if((c|0)==1){break pa}H[197455]=0;c=I[d+107|0];e=c<<24>>24<0;c=ca(1759,d+528|0,(e?H[d+96>>2]:d+96|0)|0,(e?H[d+100>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break oa}H[d+552>>2]=H[c+8>>2];e=H[c+4>>2];H[d+544>>2]=H[c>>2];H[d+548>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;c=da(1699,d+544|0,429896)|0;e=H[197455];H[197455]=0;if((e|0)==1){break na}H[d+568>>2]=H[c+8>>2];e=H[c+4>>2];H[d+560>>2]=H[c>>2];H[d+564>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;g=M[i>>3];h=M[b+16>>3];H[197455]=0;fa(1756,d+80|0,+(h*g),-1);c=H[197455];H[197455]=0;if((c|0)==1){break ma}H[197455]=0;c=I[d+91|0];e=c<<24>>24<0;c=ca(1759,d+560|0,(e?H[d+80>>2]:d+80|0)|0,(e?H[d+84>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break la}H[d+584>>2]=H[c+8>>2];e=H[c+4>>2];H[d+576>>2]=H[c>>2];H[d+580>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+576|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break ka}H[d+600>>2]=H[d+584>>2];H[d+584>>2]=0;c=H[d+580>>2];H[d+592>>2]=H[d+576>>2];H[d+596>>2]=c;H[d+576>>2]=0;H[d+580>>2]=0;g=M[i+24>>3];h=M[b+8>>3];H[197455]=0;fa(1756,d- -64|0,+(h*g),-1);c=H[197455];H[197455]=0;if((c|0)==1){break ja}H[197455]=0;c=I[d+75|0];e=c<<24>>24<0;c=ca(1759,d+592|0,(e?H[d+64>>2]:d- -64|0)|0,(e?H[d+68>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ia}H[d+616>>2]=H[c+8>>2];e=H[c+4>>2];H[d+608>>2]=H[c>>2];H[d+612>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;c=da(1699,d+608|0,428528)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ha}H[d+632>>2]=H[c+8>>2];e=H[c+4>>2];H[d+624>>2]=H[c>>2];H[d+628>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;g=M[i>>3];h=M[b+16>>3];H[197455]=0;fa(1756,d+48|0,+(h*g),-1);c=H[197455];H[197455]=0;if((c|0)==1){break ga}H[197455]=0;c=I[d+59|0];e=c<<24>>24<0;c=ca(1759,d+624|0,(e?H[d+48>>2]:d+48|0)|0,(e?H[d+52>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break fa}H[d+648>>2]=H[c+8>>2];e=H[c+4>>2];H[d+640>>2]=H[c>>2];H[d+644>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+640|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break ea}H[d+664>>2]=H[d+648>>2];H[d+648>>2]=0;c=H[d+644>>2];H[d+656>>2]=H[d+640>>2];H[d+660>>2]=c;H[d+640>>2]=0;H[d+644>>2]=0;g=M[i+24>>3];h=M[b+24>>3];H[197455]=0;fa(1756,d+32|0,+(h*g),-1);c=H[197455];H[197455]=0;if((c|0)==1){break da}H[197455]=0;c=I[d+43|0];e=c<<24>>24<0;c=ca(1759,d+656|0,(e?H[d+32>>2]:d+32|0)|0,(e?H[d+36>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ca}H[d+680>>2]=H[c+8>>2];e=H[c+4>>2];H[d+672>>2]=H[c>>2];H[d+676>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;c=da(1699,d+672|0,428528)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ba}H[d+696>>2]=H[c+8>>2];e=H[c+4>>2];H[d+688>>2]=H[c>>2];H[d+692>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;g=M[i>>3];h=M[b>>3];H[197455]=0;fa(1756,d+16|0,+(h*g),-1);c=H[197455];H[197455]=0;if((c|0)==1){break aa}H[197455]=0;c=I[d+27|0];e=c<<24>>24<0;c=ca(1759,d+688|0,(e?H[d+16>>2]:d+16|0)|0,(e?H[d+20>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break $}H[d+712>>2]=H[c+8>>2];e=H[c+4>>2];H[d+704>>2]=H[c>>2];H[d+708>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+704|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break _}H[d+728>>2]=H[d+712>>2];H[d+712>>2]=0;c=H[d+708>>2];H[d+720>>2]=H[d+704>>2];H[d+724>>2]=c;H[d+704>>2]=0;H[d+708>>2]=0;g=M[i+24>>3];h=M[b>>3];H[197455]=0;fa(1756,d|0,+(h*g),-1);b=H[197455];H[197455]=0;if((b|0)==1){break Z}H[197455]=0;b=I[d+11|0];c=b<<24>>24<0;b=ca(1759,d+720|0,(c?H[d>>2]:d)|0,(c?H[d+4>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Y}H[d+744>>2]=H[b+8>>2];c=H[b+4>>2];H[d+736>>2]=H[b>>2];H[d+740>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,d+736|0,429928)|0;c=H[197455];H[197455]=0;if((c|0)==1){break X}H[d+760>>2]=H[b+8>>2];c=H[b+4>>2];H[d+752>>2]=H[b>>2];H[d+756>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[d+747|0]<0){Kb(H[d+736>>2])}if(F[d+11|0]<0){Kb(H[d>>2])}if(F[d+731|0]<0){Kb(H[d+720>>2])}if(F[d+715|0]<0){Kb(H[d+704>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+699|0]<0){Kb(H[d+688>>2])}if(F[d+683|0]<0){Kb(H[d+672>>2])}if(F[d+43|0]<0){Kb(H[d+32>>2])}if(F[d+667|0]<0){Kb(H[d+656>>2])}if(F[d+651|0]<0){Kb(H[d+640>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+635|0]<0){Kb(H[d+624>>2])}if(F[d+619|0]<0){Kb(H[d+608>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+603|0]<0){Kb(H[d+592>>2])}if(F[d+587|0]<0){Kb(H[d+576>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+571|0]<0){Kb(H[d+560>>2])}if(F[d+555|0]<0){Kb(H[d+544>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+539|0]<0){Kb(H[d+528>>2])}if(F[d+523|0]<0){Kb(H[d+512>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+507|0]<0){Kb(H[d+496>>2])}if(F[d+491|0]<0){Kb(H[d+480>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}if(F[d+475|0]<0){Kb(H[d+464>>2])}if(F[d+459|0]<0){Kb(H[d+448>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+443|0]<0){Kb(H[d+432>>2])}if(F[d+427|0]<0){Kb(H[d+416>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}if(F[d+411|0]<0){Kb(H[d+400>>2])}if(F[d+395|0]<0){Kb(H[d+384>>2])}if(F[d+187|0]<0){Kb(H[d+176>>2])}if(F[d+379|0]<0){Kb(H[d+368>>2])}if(F[d+363|0]<0){Kb(H[d+352>>2])}if(F[d+203|0]<0){Kb(H[d+192>>2])}if(F[d+347|0]<0){Kb(H[d+336>>2])}if(F[d+331|0]<0){Kb(H[d+320>>2])}if(F[d+219|0]<0){Kb(H[d+208>>2])}if(F[d+315|0]<0){Kb(H[d+304>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}H[197455]=0;ka(1796,a+84|0,d+768|0,d+752|0,1);a=H[197455];H[197455]=0;if((a|0)==1){break c}if(F[d+763|0]<0){Kb(H[d+752>>2])}if(F[d+779|0]<0){Kb(H[d+768>>2])}xb=d+784|0;return}a=$()|0;_()|0;if(F[d+763|0]>=0){break a}Kb(H[d+752>>2]);ea(a|0);X()}a=$()|0;_()|0;break b}a=$()|0;_()|0;break d}a=$()|0;_()|0;break e}a=$()|0;_()|0;break f}a=$()|0;_()|0;break g}a=$()|0;_()|0;break h}a=$()|0;_()|0;break i}a=$()|0;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;break n}a=$()|0;_()|0;break o}a=$()|0;_()|0;break p}a=$()|0;_()|0;break q}a=$()|0;_()|0;break r}a=$()|0;_()|0;break s}a=$()|0;_()|0;break t}a=$()|0;_()|0;break u}a=$()|0;_()|0;break v}a=$()|0;_()|0;break w}a=$()|0;_()|0;break x}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;break D}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;_()|0;break G}a=$()|0;_()|0;break H}a=$()|0;_()|0;break I}a=$()|0;_()|0;break J}a=$()|0;_()|0;break K}a=$()|0;_()|0;break L}a=$()|0;_()|0;break M}a=$()|0;_()|0;break N}a=$()|0;_()|0;break O}a=$()|0;_()|0;break P}a=$()|0;_()|0;break Q}a=$()|0;_()|0;break R}a=$()|0;_()|0;break S}a=$()|0;_()|0;break T}a=$()|0;_()|0;break U}a=$()|0;_()|0;break V}a=$()|0;_()|0;break W}a=$()|0;_()|0;if(F[d+747|0]>=0){break W}Kb(H[d+736>>2])}if(F[d+11|0]>=0){break V}Kb(H[d>>2])}if(F[d+731|0]>=0){break U}Kb(H[d+720>>2])}if(F[d+715|0]>=0){break T}Kb(H[d+704>>2])}if(F[d+27|0]>=0){break S}Kb(H[d+16>>2])}if(F[d+699|0]>=0){break R}Kb(H[d+688>>2])}if(F[d+683|0]>=0){break Q}Kb(H[d+672>>2])}if(F[d+43|0]>=0){break P}Kb(H[d+32>>2])}if(F[d+667|0]>=0){break O}Kb(H[d+656>>2])}if(F[d+651|0]>=0){break N}Kb(H[d+640>>2])}if(F[d+59|0]>=0){break M}Kb(H[d+48>>2])}if(F[d+635|0]>=0){break L}Kb(H[d+624>>2])}if(F[d+619|0]>=0){break K}Kb(H[d+608>>2])}if(F[d+75|0]>=0){break J}Kb(H[d+64>>2])}if(F[d+603|0]>=0){break I}Kb(H[d+592>>2])}if(F[d+587|0]>=0){break H}Kb(H[d+576>>2])}if(F[d+91|0]>=0){break G}Kb(H[d+80>>2])}if(F[d+571|0]>=0){break F}Kb(H[d+560>>2])}if(F[d+555|0]>=0){break E}Kb(H[d+544>>2])}if(F[d+107|0]>=0){break D}Kb(H[d+96>>2])}if(F[d+539|0]>=0){break C}Kb(H[d+528>>2])}if(F[d+523|0]>=0){break B}Kb(H[d+512>>2])}if(F[d+123|0]>=0){break A}Kb(H[d+112>>2])}if(F[d+507|0]>=0){break z}Kb(H[d+496>>2])}if(F[d+491|0]>=0){break y}Kb(H[d+480>>2])}if(F[d+139|0]>=0){break x}Kb(H[d+128>>2])}if(F[d+475|0]>=0){break w}Kb(H[d+464>>2])}if(F[d+459|0]>=0){break v}Kb(H[d+448>>2])}if(F[d+155|0]>=0){break u}Kb(H[d+144>>2])}if(F[d+443|0]>=0){break t}Kb(H[d+432>>2])}if(F[d+427|0]>=0){break s}Kb(H[d+416>>2])}if(F[d+171|0]>=0){break r}Kb(H[d+160>>2])}if(F[d+411|0]>=0){break q}Kb(H[d+400>>2])}if(F[d+395|0]>=0){break p}Kb(H[d+384>>2])}if(F[d+187|0]>=0){break o}Kb(H[d+176>>2])}if(F[d+379|0]>=0){break n}Kb(H[d+368>>2])}if(F[d+363|0]>=0){break m}Kb(H[d+352>>2])}if(F[d+203|0]>=0){break l}Kb(H[d+192>>2])}if(F[d+347|0]>=0){break k}Kb(H[d+336>>2])}if(F[d+331|0]>=0){break j}Kb(H[d+320>>2])}if(F[d+219|0]>=0){break i}Kb(H[d+208>>2])}if(F[d+315|0]>=0){break h}Kb(H[d+304>>2])}if(F[d+299|0]>=0){break g}Kb(H[d+288>>2])}if(F[d+235|0]>=0){break f}Kb(H[d+224>>2])}if(F[d+283|0]>=0){break e}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break d}Kb(H[d+256>>2])}if(F[d+251|0]>=0){break b}Kb(H[d+240>>2]);break b}a=$()|0;_()|0;if(F[d+763|0]>=0){break b}Kb(H[d+752>>2])}if(F[d+779|0]>=0){break a}Kb(H[d+768>>2])}ea(a|0);X()}function qaa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=O(0),m=0,n=0,o=O(0),p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=O(0);u=b;k=xb-1120|0;xb=k;b=k+96|0;Nb(b,0,1024);g=xb-208|0;xb=g;j=a;a:{if(!H[a+512>>2]){a=I[270657]|I[270658]<<8|(I[270659]<<16|I[270660]<<24);f=I[270653]|I[270654]<<8|(I[270655]<<16|I[270656]<<24);F[b+46|0]=f;F[b+47|0]=f>>>8;F[b+48|0]=f>>>16;F[b+49|0]=f>>>24;F[b+50|0]=a;F[b+51|0]=a>>>8;F[b+52|0]=a>>>16;F[b+53|0]=a>>>24;a=I[270651]|I[270652]<<8|(I[270653]<<16|I[270654]<<24);f=I[270647]|I[270648]<<8|(I[270649]<<16|I[270650]<<24);F[b+40|0]=f;F[b+41|0]=f>>>8;F[b+42|0]=f>>>16;F[b+43|0]=f>>>24;F[b+44|0]=a;F[b+45|0]=a>>>8;F[b+46|0]=a>>>16;F[b+47|0]=a>>>24;a=I[270643]|I[270644]<<8|(I[270645]<<16|I[270646]<<24);f=I[270639]|I[270640]<<8|(I[270641]<<16|I[270642]<<24);F[b+32|0]=f;F[b+33|0]=f>>>8;F[b+34|0]=f>>>16;F[b+35|0]=f>>>24;F[b+36|0]=a;F[b+37|0]=a>>>8;F[b+38|0]=a>>>16;F[b+39|0]=a>>>24;a=I[270635]|I[270636]<<8|(I[270637]<<16|I[270638]<<24);f=I[270631]|I[270632]<<8|(I[270633]<<16|I[270634]<<24);F[b+24|0]=f;F[b+25|0]=f>>>8;F[b+26|0]=f>>>16;F[b+27|0]=f>>>24;F[b+28|0]=a;F[b+29|0]=a>>>8;F[b+30|0]=a>>>16;F[b+31|0]=a>>>24;a=I[270627]|I[270628]<<8|(I[270629]<<16|I[270630]<<24);f=I[270623]|I[270624]<<8|(I[270625]<<16|I[270626]<<24);F[b+16|0]=f;F[b+17|0]=f>>>8;F[b+18|0]=f>>>16;F[b+19|0]=f>>>24;F[b+20|0]=a;F[b+21|0]=a>>>8;F[b+22|0]=a>>>16;F[b+23|0]=a>>>24;a=I[270619]|I[270620]<<8|(I[270621]<<16|I[270622]<<24);f=I[270615]|I[270616]<<8|(I[270617]<<16|I[270618]<<24);F[b+8|0]=f;F[b+9|0]=f>>>8;F[b+10|0]=f>>>16;F[b+11|0]=f>>>24;F[b+12|0]=a;F[b+13|0]=a>>>8;F[b+14|0]=a>>>16;F[b+15|0]=a>>>24;a=I[270611]|I[270612]<<8|(I[270613]<<16|I[270614]<<24);f=I[270607]|I[270608]<<8|(I[270609]<<16|I[270610]<<24);F[b|0]=f;F[b+1|0]=f>>>8;F[b+2|0]=f>>>16;F[b+3|0]=f>>>24;F[b+4|0]=a;F[b+5|0]=a>>>8;F[b+6|0]=a>>>16;F[b+7|0]=a>>>24;break a}a=J[j+84>>1];b:{if(!(1<>>0<=16:0)){H[g>>2]=a;Ad(b,271146,g);break b}a=J[j+98>>1]-J[j+168>>1]|0;H[g+192>>2]=g+206;c:{d:{e:{f:{g:{h:{i:{if(!Cc(j,262,g+192|0)){h=1;j:{switch(a-1|0){case 2:break a;case 0:break i;default:break j}}H[g+16>>2]=280976;Ad(b,271980,g+16|0);break b}h=1;k:{i=J[g+206>>1];switch(i|0){case 6:case 8:break a;case 0:case 1:case 3:break h;case 4:case 7:break c;case 5:break f;case 2:break g;default:break k}}switch(i-32844|0){case 1:break d;case 0:break e;default:break c}}i=1;G[g+206>>1]=1}if(J[j+138>>1]!=1){break a}a=J[j+98>>1];if((a|0)==1){break a}f=J[j+84>>1];if(f>>>0>7){break a}H[g+48>>2]=f;H[g+44>>2]=a;H[g+40>>2]=273022;H[g+36>>2]=i;H[g+32>>2]=280976;Ad(b,272696,g+32|0);break b}if((a|0)>2){break a}H[g+84>>2]=a;H[g+80>>2]=274e3;Ad(b,273683,g+80|0);break b}H[g+128>>2]=g+204;Qe(j,332,g+128|0);a=J[g+204>>1];if((a|0)!=1){H[g+116>>2]=a;H[g+112>>2]=275116;Ad(b,274744,g+112|0);break b}a=J[j+98>>1];if(a>>>0<=3){H[g+100>>2]=a;H[g+96>>2]=273022;Ad(b,274744,g+96|0);break b}break a}if(J[j+88>>1]==34676){break a}H[g+148>>2]=34676;H[g+144>>2]=276387;Ad(b,275978,g+144|0);break b}if((J[j+88>>1]&65534)!=34676){H[g+180>>2]=34676;H[g+184>>2]=34677;H[g+176>>2]=276387;Ad(b,277007,g+176|0);break b}a=J[j+138>>1];if((a|0)==1){break a}H[g+164>>2]=a;H[g+160>>2]=278081;Ad(b,277710,g+160|0);break b}H[g+68>>2]=i;H[g+64>>2]=280976;Ad(b,278699,g- -64|0)}h=0}xb=g+208|0;l:{m:{if(!h){break m}f=k+96|0;b=0;h=xb-512|0;xb=h;g=k+8|0;H[g+76>>2]=0;H[g+80>>2]=0;H[g+44>>2]=0;H[g+36>>2]=0;H[g+40>>2]=0;G[g+30>>1]=4;H[g+4>>2]=e;H[g>>2]=j;H[h+464>>2]=g+24;Qe(j,258,h+464|0);a=J[g+24>>1];n:{if(!(1<>>0<=16:0)){H[h>>2]=a;Ad(f,271146,h);break n}H[g+12>>2]=0;H[h+448>>2]=g+26;Qe(j,277,h+448|0);H[h+436>>2]=h+492;H[h+432>>2]=h+490;Qe(j,338,h+432|0);o:{if(!J[h+490>>1]){break o}p:{q:{b=J[H[h+492>>2]>>1];switch(b|0){case 1:case 2:break p;case 0:break q;default:break o}}b=1;if(J[g+26>>1]<=3){break o}}H[g+12>>2]=b}e=g+32|0;H[h+416>>2]=e;if(!Cc(j,262,h+416|0)){G[g+32>>1]=0}a=J[g+26>>1];i=J[h+490>>1];r:{if(i){b=a;break r}b=4;i=0;if((a|0)!=4){b=a;break r}if(J[g+32>>1]!=2){break r}i=1;H[g+12>>2]=1;G[h+490>>1]=1}H[h+400>>2]=h+486;Qe(j,259,h+400|0);H[h+384>>2]=h+488;Qe(j,284,h+384|0);H[h+368>>2]=e;b=(b&65535)-i|0;s:{t:{u:{v:{w:{x:{y:{z:{A:{if(!Cc(j,262,h+368|0)){B:{switch(b-1|0){case 0:H[h+160>>2]=h+496;Cc(j,259,h+160|0);a=J[h+496>>1];if(!(a-2>>>0>=3&(a|0)!=32771)){G[g+32>>1]=0;break A}G[g+32>>1]=1;break A;case 2:break t;default:break B}}H[h+16>>2]=280976;Ad(f,271980,h+16|0);b=0;break n}C:{D:{a=J[g+32>>1];switch(a|0){case 8:break s;case 4:case 7:break u;case 5:break x;case 2:break y;case 6:break z;case 0:case 1:break A;case 3:break C;default:break D}}switch(a-32844|0){case 1:break v;case 0:break w;default:break u}}H[h+200>>2]=h+472;H[h+196>>2]=h+476;H[h+192>>2]=h+480;if(!Cc(j,320,h+192|0)){b=0;a=I[279037]|I[279038]<<8|(I[279039]<<16|I[279040]<<24);e=I[279033]|I[279034]<<8|(I[279035]<<16|I[279036]<<24);F[f+24|0]=e;F[f+25|0]=e>>>8;F[f+26|0]=e>>>16;F[f+27|0]=e>>>24;F[f+28|0]=a;F[f+29|0]=a>>>8;F[f+30|0]=a>>>16;F[f+31|0]=a>>>24;a=I[279029]|I[279030]<<8|(I[279031]<<16|I[279032]<<24);e=I[279025]|I[279026]<<8|(I[279027]<<16|I[279028]<<24);F[f+16|0]=e;F[f+17|0]=e>>>8;F[f+18|0]=e>>>16;F[f+19|0]=e>>>24;F[f+20|0]=a;F[f+21|0]=a>>>8;F[f+22|0]=a>>>16;F[f+23|0]=a>>>24;a=I[279021]|I[279022]<<8|(I[279023]<<16|I[279024]<<24);e=I[279017]|I[279018]<<8|(I[279019]<<16|I[279020]<<24);F[f+8|0]=e;F[f+9|0]=e>>>8;F[f+10|0]=e>>>16;F[f+11|0]=e>>>24;F[f+12|0]=a;F[f+13|0]=a>>>8;F[f+14|0]=a>>>16;F[f+15|0]=a>>>24;a=I[279013]|I[279014]<<8|(I[279015]<<16|I[279016]<<24);e=I[279009]|I[279010]<<8|(I[279011]<<16|I[279012]<<24);F[f|0]=e;F[f+1|0]=e>>>8;F[f+2|0]=e>>>16;F[f+3|0]=e>>>24;F[f+4|0]=a;F[f+5|0]=a>>>8;F[f+6|0]=a>>>16;F[f+7|0]=a>>>24;break n}a=2<>1];w=g,x=Tb(a),H[w+36>>2]=x;w=g,x=Tb(a),H[w+40>>2]=x;e=Tb(a);H[g+44>>2]=e;i=H[g+36>>2];if(e?!i|!H[g+40>>2]:1){b=0;a=I[279203]|I[279204]<<8|(I[279205]<<16|I[279206]<<24);e=I[279199]|I[279200]<<8|(I[279201]<<16|I[279202]<<24);F[f+24|0]=e;F[f+25|0]=e>>>8;F[f+26|0]=e>>>16;F[f+27|0]=e>>>24;F[f+28|0]=a;F[f+29|0]=a>>>8;F[f+30|0]=a>>>16;F[f+31|0]=a>>>24;a=I[279195]|I[279196]<<8|(I[279197]<<16|I[279198]<<24);e=I[279191]|I[279192]<<8|(I[279193]<<16|I[279194]<<24);F[f+16|0]=e;F[f+17|0]=e>>>8;F[f+18|0]=e>>>16;F[f+19|0]=e>>>24;F[f+20|0]=a;F[f+21|0]=a>>>8;F[f+22|0]=a>>>16;F[f+23|0]=a>>>24;a=I[279187]|I[279188]<<8|(I[279189]<<16|I[279190]<<24);e=I[279183]|I[279184]<<8|(I[279185]<<16|I[279186]<<24);F[f+8|0]=e;F[f+9|0]=e>>>8;F[f+10|0]=e>>>16;F[f+11|0]=e>>>24;F[f+12|0]=a;F[f+13|0]=a>>>8;F[f+14|0]=a>>>16;F[f+15|0]=a>>>24;a=I[279179]|I[279180]<<8|(I[279181]<<16|I[279182]<<24);e=I[279175]|I[279176]<<8|(I[279177]<<16|I[279178]<<24);F[f|0]=e;F[f+1|0]=e>>>8;F[f+2|0]=e>>>16;F[f+3|0]=e>>>24;F[f+4|0]=a;F[f+5|0]=a>>>8;F[f+6|0]=a>>>16;F[f+7|0]=a>>>24;break n}Kc(i,H[h+480>>2],a);Kc(H[g+40>>2],H[h+476>>2],a);Kc(H[g+44>>2],H[h+472>>2],a)}if(J[h+488>>1]!=1){break s}a=J[g+26>>1];if((a|0)==1){break s}e=J[g+24>>1];if(e>>>0>7){break s}b=J[g+32>>1];H[h+144>>2]=e;H[h+140>>2]=a;H[h+136>>2]=273022;H[h+132>>2]=b;H[h+128>>2]=280976;Ad(f,272696,h+128|0);b=0;break n}if(J[h+488>>1]!=1|J[h+486>>1]!=7){break s}H[h+208>>2]=1;rc(j,65538,h+208|0);G[g+32>>1]=2;break s}if((b|0)>2){break s}H[h+228>>2]=b;H[h+224>>2]=274e3;Ad(f,273683,h+224|0);b=0;break n}H[h+272>>2]=h+496;Qe(j,332,h+272|0);a=J[h+496>>1];if((a|0)!=1){H[h+260>>2]=a;H[h+256>>2]=275116;Ad(f,274744,h+256|0);b=0;break n}a=J[g+26>>1];if(a>>>0>3){break s}H[h+244>>2]=a;H[h+240>>2]=273022;Ad(f,274744,h+240|0);b=0;break n}if(J[h+486>>1]!=34676){H[h+308>>2]=34676;H[h+304>>2]=276387;Ad(f,275978,h+304|0);b=0;break n}H[h+288>>2]=3;rc(j,65560,h+288|0);G[g+32>>1]=1;G[g+24>>1]=8;break s}if((J[h+486>>1]&65534)!=34676){H[h+356>>2]=34676;H[h+360>>2]=34677;H[h+352>>2]=276387;Ad(f,277007,h+352|0);b=0;break n}a=J[h+488>>1];if((a|0)!=1){H[h+340>>2]=a;H[h+336>>2]=278081;Ad(f,277710,h+336|0);b=0;break n}H[h+320>>2]=3;rc(j,65560,h+320|0);G[g+32>>1]=2;G[g+24>>1]=8;break s}H[h+180>>2]=a;H[h+176>>2]=280976;Ad(f,278699,h+176|0);b=0;break n}G[g+32>>1]=2}H[g+56>>2]=0;H[g+60>>2]=0;H[g+72>>2]=0;a=g- -64|0;H[a>>2]=0;H[a+4>>2]=0;H[h+112>>2]=g+16;Cc(j,256,h+112|0);H[h+96>>2]=g+20;Cc(j,257,h+96|0);H[h+80>>2]=g+28;Qe(j,274,h+80|0);b=J[h+488>>1]!=2|(b|0)<2;H[g+8>>2]=b;a=H[H[g>>2]+12>>2]>>>10&1;if(b){H[g+52>>2]=0;H[g+48>>2]=a?1421:1422;E:{F:{G:{switch(J[g+32>>1]){case 2:H:{switch(J[g+24>>1]-8|0){case 0:I:{switch(H[g+12>>2]-1|0){case 0:H[g+52>>2]=1423;break F;case 1:H[g+52>>2]=1424;break F;default:break I}}H[g+52>>2]=1425;break F;case 8:break H;default:break F}}J:{switch(H[g+12>>2]-1|0){case 0:H[g+52>>2]=1426;break F;case 1:H[g+52>>2]=1427;break F;default:break J}}H[g+52>>2]=1428;break F;case 5:if(!$m(g)|J[g+24>>1]!=8){break F}if(!H[g+56>>2]){H[g+52>>2]=1429;break F}H[g+52>>2]=1430;break F;case 3:if(!$m(g)){break F}K:{switch(J[g+24>>1]-1|0){case 7:H[g+52>>2]=1431;break F;case 3:H[g+52>>2]=1432;break F;case 1:H[g+52>>2]=1433;break F;case 0:break K;default:break F}}H[g+52>>2]=1434;break F;case 0:case 1:if(!$m(g)){break F}L:{switch(J[g+24>>1]-1|0){case 15:H[g+52>>2]=1435;break F;case 7:H[g+52>>2]=1436;break F;case 3:H[g+52>>2]=1437;break F;case 1:H[g+52>>2]=1438;break F;case 0:break L;default:break F}}H[g+52>>2]=1439;break F;case 6:if(J[g+24>>1]!=8){break F}if(!FB(g)){break F}a=H[g>>2];H[h+36>>2]=h+508;H[h+32>>2]=h+496;Qe(a,530,h+32|0);b=1440;M:{switch((J[h+508>>1]|J[h+496>>1]<<4)-17|0){case 49:H[g+52>>2]=1441;break F;case 48:H[g+52>>2]=1442;break F;case 17:H[g+52>>2]=1443;break F;case 16:H[g+52>>2]=1444;break F;case 1:H[g+52>>2]=1445;break F;case 0:b=1446;break;case 51:break M;default:break F}}H[g+52>>2]=b;break F;case 8:break G;default:break E}}if(!$m(g)|J[g+24>>1]!=8){break F}N:{O:{if(H[g+72>>2]){break O}a=Tb(18124);H[g+72>>2]=a;if(a){break O}Pb(H[H[g>>2]+628>>2],784384,283168,0);a=0;break N}a=H[g>>2];H[h+48>>2]=h+508;Qe(a,318,h+48|0);H[h+500>>2]=1120403456;a=H[h+508>>2];l=L[a+4>>2];L[h+496>>2]=O(L[a>>2]/l)*O(100);L[h+504>>2]=O(O(O(O(1)-L[a>>2])-l)/l)*O(100);i=0;b=0;a=H[g+72>>2];H[a>>2]=1500;Kc(a+28|0,784264,84);e=H[a>>2];l=O(O(L[a- -64>>2]-L[a+88>>2])/O(e|0));L[a+4>>2]=l;P:{Q:{if((e|0)<0){L[a+8>>2]=l;break Q}m=1/+L[a+100>>2];q=e+1|0;r=q&1;o=O(K[a+76>>2]);n=+(e|0);if(e){s=q&-2;p=a+112|0;while(1){w=p+(i<<2)|0,y=O(O(Kd(+(i|0)/n,m))*o),L[w>>2]=y;v=i|1;w=p+(v<<2)|0,y=O(O(Kd(+(v|0)/n,m))*o),L[w>>2]=y;i=i+2|0;b=b+2|0;if((s|0)!=(b|0)){continue}break}}if(r){w=(i<<2)+a|0,y=O(O(Kd(+(i|0)/n,m))*o),L[w+112>>2]=y}L[a+8>>2]=l;i=0;if((e|0)<0){break Q}m=1/+L[a+104>>2];o=O(K[a+80>>2]);if(e){r=q&-2;p=a+6116|0;b=0;while(1){w=p+(i<<2)|0,y=O(O(Kd(+(i|0)/n,m))*o),L[w>>2]=y;s=i|1;w=p+(s<<2)|0,y=O(O(Kd(+(s|0)/n,m))*o),L[w>>2]=y;i=i+2|0;b=b+2|0;if((r|0)!=(b|0)){continue}break}}if(q&1){w=((i<<2)+a|0)+6116|0,y=O(O(Kd(+(i|0)/n,m))*o),L[w>>2]=y}L[a+12>>2]=l;i=0;if((e|0)<0){break P}m=1/+L[a+108>>2];l=O(K[a+84>>2]);if(e){p=q&-2;e=a+12120|0;b=0;while(1){w=e+(i<<2)|0,y=O(O(Kd(+(i|0)/n,m))*l),L[w>>2]=y;r=i|1;w=e+(r<<2)|0,y=O(O(Kd(+(r|0)/n,m))*l),L[w>>2]=y;i=i+2|0;b=b+2|0;if((p|0)!=(b|0)){continue}break}}if(!(q&1)){break P}w=((i<<2)+a|0)+12120|0,y=O(O(Kd(+(i|0)/n,m))*l),L[w>>2]=y;break P}L[a+12>>2]=l}L[a+16>>2]=L[h+496>>2];L[a+20>>2]=L[h+500>>2];L[a+24>>2]=L[h+504>>2];a=1447}H[g+52>>2]=a}if(!H[g+48>>2]){break E}b=1;if(H[g+52>>2]){break n}}b=0;a=I[279647]|I[279648]<<8|(I[279649]<<16|I[279650]<<24);F[f+24|0]=a;F[f+25|0]=a>>>8;F[f+26|0]=a>>>16;F[f+27|0]=a>>>24;a=I[279643]|I[279644]<<8|(I[279645]<<16|I[279646]<<24);e=I[279639]|I[279640]<<8|(I[279641]<<16|I[279642]<<24);F[f+16|0]=e;F[f+17|0]=e>>>8;F[f+18|0]=e>>>16;F[f+19|0]=e>>>24;F[f+20|0]=a;F[f+21|0]=a>>>8;F[f+22|0]=a>>>16;F[f+23|0]=a>>>24;a=I[279635]|I[279636]<<8|(I[279637]<<16|I[279638]<<24);e=I[279631]|I[279632]<<8|(I[279633]<<16|I[279634]<<24);F[f+8|0]=e;F[f+9|0]=e>>>8;F[f+10|0]=e>>>16;F[f+11|0]=e>>>24;F[f+12|0]=a;F[f+13|0]=a>>>8;F[f+14|0]=a>>>16;F[f+15|0]=a>>>24;a=I[279627]|I[279628]<<8|(I[279629]<<16|I[279630]<<24);e=I[279623]|I[279624]<<8|(I[279625]<<16|I[279626]<<24);F[f|0]=e;F[f+1|0]=e>>>8;F[f+2|0]=e>>>16;F[f+3|0]=e>>>24;F[f+4|0]=a;F[f+5|0]=a>>>8;F[f+6|0]=a>>>16;F[f+7|0]=a>>>24;break n}H[g+52>>2]=0;H[g+48>>2]=a?1448:1449;R:{S:{T:{switch(J[g+32>>1]-2|0){case 0:U:{switch(J[g+24>>1]-8|0){case 0:V:{switch(H[g+12>>2]-1|0){case 0:H[g+52>>2]=1450;break S;case 1:H[g+52>>2]=1451;break S;default:break V}}H[g+52>>2]=1452;break S;case 8:break U;default:break S}}W:{switch(H[g+12>>2]-1|0){case 0:H[g+52>>2]=1453;break S;case 1:H[g+52>>2]=1454;break S;default:break W}}H[g+52>>2]=1455;break S;case 4:break T;default:break R}}if(J[g+24>>1]!=8|J[g+26>>1]!=3){break S}if(!FB(g)){break S}a=H[g>>2];H[h+68>>2]=h+508;H[h+64>>2]=h+496;Qe(a,530,h- -64|0);if((J[h+508>>1]|J[h+496>>1]<<4)!=17){break S}H[g+52>>2]=1456}if(!H[g+48>>2]){break R}b=1;if(H[g+52>>2]){break n}}b=0;a=I[279647]|I[279648]<<8|(I[279649]<<16|I[279650]<<24);F[f+24|0]=a;F[f+25|0]=a>>>8;F[f+26|0]=a>>>16;F[f+27|0]=a>>>24;a=I[279643]|I[279644]<<8|(I[279645]<<16|I[279646]<<24);e=I[279639]|I[279640]<<8|(I[279641]<<16|I[279642]<<24);F[f+16|0]=e;F[f+17|0]=e>>>8;F[f+18|0]=e>>>16;F[f+19|0]=e>>>24;F[f+20|0]=a;F[f+21|0]=a>>>8;F[f+22|0]=a>>>16;F[f+23|0]=a>>>24;a=I[279635]|I[279636]<<8|(I[279637]<<16|I[279638]<<24);e=I[279631]|I[279632]<<8|(I[279633]<<16|I[279634]<<24);F[f+8|0]=e;F[f+9|0]=e>>>8;F[f+10|0]=e>>>16;F[f+11|0]=e>>>24;F[f+12|0]=a;F[f+13|0]=a>>>8;F[f+14|0]=a>>>16;F[f+15|0]=a>>>24;a=I[279627]|I[279628]<<8|(I[279629]<<16|I[279630]<<24);e=I[279623]|I[279624]<<8|(I[279625]<<16|I[279626]<<24);F[f|0]=e;F[f+1|0]=e>>>8;F[f+2|0]=e>>>16;F[f+3|0]=e>>>24;F[f+4|0]=a;F[f+5|0]=a>>>8;F[f+6|0]=a>>>16;F[f+7|0]=a>>>24}xb=h+512|0;if(!b){break m}G[k+38>>1]=4;a=H[k+56>>2];X:{if(!a){a=H[k+8>>2];Pb(H[a+628>>2],H[a>>2],279881,0);t=0;break X}if(!H[k+60>>2]){a=H[k+8>>2];Pb(H[a+628>>2],H[a>>2],280273,0);t=0;break X}b=H[k+28>>2];t=zb[a|0](k+8|0,(N(c-b|0,u)<<2)+d|0,u,b)|0}a=H[k+64>>2];if(a){Kb(a);H[k+64>>2]=0}a=H[k+68>>2];if(a){Kb(a);H[k+68>>2]=0}a=H[k+72>>2];if(a){Kb(a);H[k+72>>2]=0}a=H[k+76>>2];if(a){Kb(a);H[k+76>>2]=0}a=H[k+80>>2];if(a){Kb(a);H[k+80>>2]=0}a=H[k+44>>2];if(a){Kb(a);Kb(H[k+48>>2]);Kb(H[k+52>>2])}break l}a=H[j+628>>2];b=H[j>>2];H[k>>2]=k+96;Pb(a,b,280628,k)}xb=k+1120|0;return t|0}function Ny(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=xb-480|0;xb=i;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{if(!h|!g|(e==0|d==0)){break C}if(!f){break C}if(!((g|0)!=1|(h|0)!=1)){H[197455]=0;fa(1756,i+456|0,+b,-1);g=H[197455];H[197455]=0;D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{if((g|0)!=1){F[i+35|0]=1;H[197455]=0;Mb(i+24|0,434368,1);g=H[197455];H[197455]=0;if((g|0)==1){break a}g=H[i+464>>2];H[i+464>>2]=0;H[i+44>>2]=g;H[i+28>>2]=0;g=H[i+456>>2];h=H[i+460>>2];H[i+456>>2]=0;H[i+460>>2]=0;H[i+36>>2]=g;H[i+40>>2]=h;H[197455]=0;fa(1756,i+440|0,+c,-1);j=H[197455];H[197455]=0;g=1;h=i+48|0;if((j|0)==1){break ka}F[i+59|0]=1;H[197455]=0;Mb(h,434376,1);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[i+52>>2]=0;g=H[i+444>>2];H[i+60>>2]=H[i+440>>2];H[i+64>>2]=g;g=H[i+448>>2];H[i+448>>2]=0;H[i+68>>2]=g;H[i+440>>2]=0;H[i+444>>2]=0;H[197455]=0;fa(1756,i+424|0,+d,-1);j=H[197455];H[197455]=0;g=1;h=i+72|0;if((j|0)==1){break ja}H[197455]=0;g=aa(899,32)|0;j=H[197455];H[197455]=0;if((j|0)==1){break ia}H[i+76>>2]=5;H[i+80>>2]=-2147483640;H[i+72>>2]=g;H[197455]=0;Mb(g,433808,5);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[g+20>>2]=0;H[i+92>>2]=H[i+432>>2];g=H[i+428>>2];H[i+84>>2]=H[i+424>>2];H[i+88>>2]=g;H[i+432>>2]=0;H[i+424>>2]=0;H[i+428>>2]=0;H[197455]=0;fa(1756,i+408|0,+e,-1);g=H[197455];H[197455]=0;h=i+96|0;if((g|0)==1){break ha}H[197455]=0;j=aa(899,32)|0;k=H[197455];H[197455]=0;g=1;if((k|0)==1){break ga}H[i+100>>2]=6;H[i+104>>2]=-2147483640;H[i+96>>2]=j;H[197455]=0;Mb(j,433832,6);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[j+24>>2]=0;H[i+116>>2]=H[i+416>>2];g=H[i+412>>2];H[i+108>>2]=H[i+408>>2];H[i+112>>2]=g;H[i+416>>2]=0;H[i+408>>2]=0;H[i+412>>2]=0;g=I[f+2|0];H[197455]=0;ba(1778,i+272|0,g|0);h=H[197455];H[197455]=0;g=1;if((h|0)==1){break fa}H[197455]=0;g=ca(1758,i+272|0,0,434648)|0;h=H[197455];H[197455]=0;if((h|0)==1){break ea}H[i+296>>2]=H[g+8>>2];h=H[g+4>>2];H[i+288>>2]=H[g>>2];H[i+292>>2]=h;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,i+288|0,44);h=H[197455];H[197455]=0;g=1;if((h|0)==1){break da}H[i+312>>2]=H[i+296>>2];H[i+296>>2]=0;g=H[i+292>>2];H[i+304>>2]=H[i+288>>2];H[i+308>>2]=g;H[i+288>>2]=0;H[i+292>>2]=0;g=I[f+1|0];H[197455]=0;ba(1778,i+256|0,g|0);g=H[197455];H[197455]=0;if((g|0)==1){break ca}H[197455]=0;g=I[i+267|0];h=g<<24>>24<0;h=ca(1759,i+304|0,(h?H[i+256>>2]:i+256|0)|0,(h?H[i+260>>2]:g)|0)|0;j=H[197455];H[197455]=0;g=1;if((j|0)==1){break ba}H[i+328>>2]=H[h+8>>2];g=H[h+4>>2];H[i+320>>2]=H[h>>2];H[i+324>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;ba(1650,i+320|0,44);g=H[197455];H[197455]=0;if((g|0)==1){break aa}H[i+344>>2]=H[i+328>>2];H[i+328>>2]=0;g=H[i+324>>2];H[i+336>>2]=H[i+320>>2];H[i+340>>2]=g;H[i+320>>2]=0;H[i+324>>2]=0;g=I[f|0];H[197455]=0;ba(1778,i+240|0,g|0);h=H[197455];H[197455]=0;g=1;if((h|0)==1){break $}H[197455]=0;g=I[i+251|0];h=g<<24>>24<0;g=ca(1759,i+336|0,(h?H[i+240>>2]:i+240|0)|0,(h?H[i+244>>2]:g)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break _}H[i+360>>2]=H[g+8>>2];h=H[g+4>>2];H[i+352>>2]=H[g>>2];H[i+356>>2]=h;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,i+352|0,44);h=H[197455];H[197455]=0;g=1;if((h|0)==1){break Z}H[i+376>>2]=H[i+360>>2];H[i+360>>2]=0;h=H[i+356>>2];H[i+368>>2]=H[i+352>>2];H[i+372>>2]=h;H[i+352>>2]=0;H[i+356>>2]=0;f=I[f+3|0];H[197455]=0;ba(1778,i+224|0,f|0);f=H[197455];H[197455]=0;if((f|0)==1){break Y}H[197455]=0;f=I[i+235|0];g=f<<24>>24<0;f=ca(1759,i+368|0,(g?H[i+224>>2]:i+224|0)|0,(g?H[i+228>>2]:f)|0)|0;h=H[197455];H[197455]=0;g=1;if((h|0)==1){break X}H[i+392>>2]=H[f+8>>2];h=H[f+4>>2];H[i+384>>2]=H[f>>2];H[i+388>>2]=h;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;ba(1650,i+384|0,41);f=H[197455];H[197455]=0;if((f|0)==1){break W}h=F[i+395|0];f=I[i+391|0]|I[i+392|0]<<8|(I[i+393|0]<<16|I[i+394|0]<<24);H[i+392>>2]=0;j=H[i+384>>2];g=H[i+388>>2];H[i+384>>2]=0;H[i+388>>2]=0;H[i+400>>2]=g;F[i+403|0]=f;F[i+404|0]=f>>>8;F[i+405|0]=f>>>16;F[i+406|0]=f>>>24;H[197455]=0;f=aa(899,32)|0;k=H[197455];H[197455]=0;g=1;if((k|0)==1){break U}H[i+124>>2]=4;H[i+128>>2]=-2147483640;H[i+120>>2]=f;H[197455]=0;Mb(f,434628,4);g=H[197455];H[197455]=0;if((g|0)==1){break a}g=0;H[f+16>>2]=0;H[i+132>>2]=j;H[i+136>>2]=H[i+400>>2];f=I[i+403|0]|I[i+404|0]<<8|(I[i+405|0]<<16|I[i+406|0]<<24);F[i+139|0]=f;F[i+140|0]=f>>>8;F[i+141|0]=f>>>16;F[i+142|0]=f>>>24;H[i+476>>2]=5;F[i+143|0]=h;H[197455]=0;H[i+400>>2]=0;F[i+403|0]=0;F[i+404|0]=0;F[i+405|0]=0;F[i+406|0]=0;H[i+472>>2]=i+24;f=H[i+476>>2];H[i+8>>2]=H[i+472>>2];H[i+12>>2]=f;j=da(1763,i+176|0,i+8|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break V}if(F[i+143|0]<0){Kb(H[i+132>>2])}if(F[i+131|0]<0){Kb(H[i+120>>2])}if(F[i+119|0]<0){Kb(H[i+108>>2])}if(F[i+107|0]<0){Kb(H[i+96>>2])}if(F[i+95|0]<0){Kb(H[i+84>>2])}if(F[i+83|0]<0){Kb(H[i+72>>2])}if(F[i+71|0]<0){Kb(H[i+60>>2])}if(F[i+59|0]<0){Kb(H[i+48>>2])}if(F[i+47|0]<0){Kb(H[i+36>>2])}if(F[i+35|0]<0){Kb(H[i+24>>2])}if(F[i+395|0]<0){Kb(H[i+384>>2])}if(F[i+235|0]<0){Kb(H[i+224>>2])}if(F[i+379|0]<0){Kb(H[i+368>>2])}if(F[i+363|0]<0){Kb(H[i+352>>2])}if(F[i+251|0]<0){Kb(H[i+240>>2])}if(F[i+347|0]<0){Kb(H[i+336>>2])}if(F[i+331|0]<0){Kb(H[i+320>>2])}if(F[i+267|0]<0){Kb(H[i+256>>2])}if(F[i+315|0]<0){Kb(H[i+304>>2])}if(F[i+299|0]<0){Kb(H[i+288>>2])}if(F[i+283|0]<0){Kb(H[i+272>>2])}if(F[i+419|0]<0){Kb(H[i+408>>2])}if(F[i+435|0]<0){Kb(H[i+424>>2])}if(F[i+451|0]<0){Kb(H[i+440>>2])}if(F[i+467|0]<0){Kb(H[i+456>>2])}H[197455]=0;f=a+8|0;ga(1766,f|0,j|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break c}H[197455]=0;a=aa(899,32)|0;g=H[197455];H[197455]=0;if((g|0)==1){break c}H[i+24>>2]=a;H[i+28>>2]=4;H[i+32>>2]=-2147483640;H[197455]=0;Mb(a,434384,4);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[a+16>>2]=0;F[i+467|0]=0;H[197455]=0;H[i+456>>2]=0;ka(1767,f|0,i+24|0,j|0,i+456|0);a=H[197455];H[197455]=0;if((a|0)==1){break D}if(F[i+467|0]<0){Kb(H[i+456>>2])}if(F[i+35|0]<0){Kb(H[i+24>>2])}a=H[j>>2];if(!a){break C}h=H[j+4>>2];if((a|0)==(h|0)){f=a}else{while(1){if(F[h-1|0]<0){Kb(H[h-12>>2])}f=h-24|0;if(F[h-13|0]<0){Kb(H[f>>2])}h=f;if((a|0)!=(f|0)){continue}break}f=H[j>>2]}H[j+4>>2]=a;Kb(f);break C}a=$()|0;_()|0;ea(a|0);X()}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;g=1;_()|0;break G}a=$()|0;g=1;_()|0;break G}a=$()|0;_()|0;break H}a=$()|0;_()|0;break I}a=$()|0;g=1;_()|0;break J}a=$()|0;_()|0;break K}a=$()|0;g=1;_()|0;break L}a=$()|0;_()|0;break M}a=$()|0;g=1;_()|0;break N}a=$()|0;_()|0;break O}a=$()|0;g=1;_()|0;break P}a=$()|0;_()|0;break Q}a=$()|0;_()|0;break R}a=$()|0;_()|0;break S}a=$()|0;_()|0;break T}a=$()|0;_()|0;Vb(i+120|0);Vb(i+96|0);Vb(i+72|0);Vb(i+48|0);Vb(i+24|0);break T}a=$()|0;_()|0;if((h|0)>=0){break T}Kb(j)}if(F[i+395|0]>=0){break S}Kb(H[i+384>>2])}if(F[i+235|0]>=0){break R}Kb(H[i+224>>2])}if(F[i+379|0]>=0){break Q}Kb(H[i+368>>2])}if(F[i+363|0]>=0){break P}Kb(H[i+352>>2])}if(F[i+251|0]>=0){break O}Kb(H[i+240>>2])}if(F[i+347|0]>=0){break N}Kb(H[i+336>>2])}if(F[i+331|0]>=0){break M}Kb(H[i+320>>2])}if(F[i+267|0]>=0){break L}Kb(H[i+256>>2])}if(F[i+315|0]>=0){break K}Kb(H[i+304>>2])}if(F[i+299|0]>=0){break J}Kb(H[i+288>>2])}if(F[i+283|0]>=0){break I}Kb(H[i+272>>2])}h=i+120|0}if(F[i+419|0]>=0){break G}Kb(H[i+408>>2])}if(F[i+435|0]>=0){break F}Kb(H[i+424>>2])}if(F[i+451|0]>=0){break E}Kb(H[i+440>>2])}if(F[i+467|0]<0){Kb(H[i+456>>2])}if(!g|(i+24|0)==(h|0)){break d}while(1){h=Vb(h-24|0);if((h|0)!=(i+24|0)){continue}break}break d}a=$()|0;_()|0;if(F[i+467|0]<0){Kb(H[i+456>>2])}if(F[i+35|0]<0){Kb(H[i+24>>2])}break b}l=i+176|0;j=l;H[j>>2]=0;H[j+4>>2]=0;F[j+40|0]=0;H[j+32>>2]=0;H[j+36>>2]=-1074790400;F[j+21|0]=0;F[j+22|0]=0;F[j+23|0]=0;F[j+24|0]=0;F[j+25|0]=0;F[j+26|0]=0;F[j+27|0]=0;F[j+28|0]=0;H[j+16>>2]=0;H[j+20>>2]=0;H[j+8>>2]=0;H[j+12>>2]=0;H[197455]=0;H[j+16>>2]=f;f=H[197455];H[197455]=0;la:{ma:{na:{oa:{pa:{if((f|0)!=1){H[197455]=0;H[i+24>>2]=g;H[l+4>>2]=H[i+24>>2];f=H[197455];H[197455]=0;if((f|0)==1){break pa}H[197455]=0;H[i+24>>2]=h;H[l+8>>2]=H[i+24>>2];f=H[197455];H[197455]=0;if((f|0)==1){break oa}H[i+336>>2]=0;H[197455]=0;H[i+320>>2]=0;la(945,l|0,i+336|0,i+320|0,4)|0;f=H[197455];H[197455]=0;if((f|0)==1){break h}H[197455]=0;H[l+16>>2]=0;f=H[197455];H[197455]=0;if((f|0)==1){break h}f=H[i+320>>2];if((f|0)<=0){break la}H[197455]=0;f=um(f,0);g=H[197455];H[197455]=0;if((g|0)==1){break na}H[197455]=0;H[i+304>>2]=f;j=aa(929,f|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){break ma}break f}a=$()|0;_()|0;break e}a=$()|0;_()|0;break e}a=$()|0;_()|0;break e}a=$()|0;_()|0;break e}H[197455]=0;tm(H[i+336>>2],H[i+320>>2],j,i+304|0,0);f=H[197455];H[197455]=0;if((f|0)==1){break f}k=H[i+304>>2];if(k>>>0>=1073741808){H[197455]=0;ia(1640,i+456|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}X()}qa:{ra:{if(k>>>0>=2){H[197455]=0;f=k+4&-4;h=aa(899,f<<2)|0;g=H[197455];H[197455]=0;if((g|0)==1){break g}H[i+456>>2]=h;H[i+460>>2]=k;H[i+464>>2]=f|-2147483648;break ra}F[i+467|0]=k;h=i+456|0;if(!k){break qa}}n=k-1|0;m=k&7;sa:{if(!m){f=j;break sa}g=0;f=j;while(1){H[h>>2]=I[f|0];h=h+4|0;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}if(n>>>0<7){break qa}g=j+k|0;while(1){H[h>>2]=I[f|0];H[h+4>>2]=I[f+1|0];H[h+8>>2]=I[f+2|0];H[h+12>>2]=I[f+3|0];H[h+16>>2]=I[f+4|0];H[h+20>>2]=I[f+5|0];H[h+24>>2]=I[f+6|0];H[h+28>>2]=I[f+7|0];h=h+32|0;f=f+8|0;if((g|0)!=(f|0)){continue}break}}H[h>>2]=0;Kb(j);H[197455]=0;fa(1756,i+424|0,+b,-1);f=H[197455];H[197455]=0;if((f|0)==1){break B}F[i+35|0]=1;H[197455]=0;Mb(i+24|0,434368,1);f=H[197455];H[197455]=0;if((f|0)==1){break a}f=H[i+432>>2];H[i+432>>2]=0;H[i+44>>2]=f;H[i+28>>2]=0;f=H[i+424>>2];g=H[i+428>>2];H[i+424>>2]=0;H[i+428>>2]=0;H[i+36>>2]=f;H[i+40>>2]=g;H[197455]=0;fa(1756,i+408|0,+c,-1);g=H[197455];H[197455]=0;f=1;h=i+48|0;if((g|0)==1){break A}F[i+59|0]=1;H[197455]=0;Mb(h,434376,1);f=H[197455];H[197455]=0;if((f|0)==1){break a}H[i+52>>2]=0;f=H[i+412>>2];H[i+60>>2]=H[i+408>>2];H[i+64>>2]=f;f=H[i+416>>2];H[i+416>>2]=0;H[i+68>>2]=f;H[i+408>>2]=0;H[i+412>>2]=0;H[197455]=0;fa(1756,i+384|0,+d,-1);g=H[197455];H[197455]=0;f=1;h=i+72|0;if((g|0)==1){break z}H[197455]=0;f=aa(899,32)|0;g=H[197455];H[197455]=0;if((g|0)==1){break y}H[i+76>>2]=5;H[i+80>>2]=-2147483640;H[i+72>>2]=f;H[197455]=0;Mb(f,433808,5);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[f+20>>2]=0;H[i+92>>2]=H[i+392>>2];f=H[i+388>>2];H[i+84>>2]=H[i+384>>2];H[i+88>>2]=f;H[i+392>>2]=0;H[i+384>>2]=0;H[i+388>>2]=0;H[197455]=0;fa(1756,i+368|0,+e,-1);f=H[197455];H[197455]=0;h=i+96|0;if((f|0)==1){break x}H[197455]=0;g=aa(899,32)|0;j=H[197455];H[197455]=0;f=1;if((j|0)==1){break w}H[i+100>>2]=6;H[i+104>>2]=-2147483640;H[i+96>>2]=g;H[197455]=0;Mb(g,433832,6);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[g+24>>2]=0;H[i+116>>2]=H[i+376>>2];g=H[i+372>>2];H[i+108>>2]=H[i+368>>2];H[i+112>>2]=g;H[i+376>>2]=0;H[197455]=0;H[i+368>>2]=0;H[i+372>>2]=0;h=i+120|0;ca(2955,h|0,434668,434748)|0;g=H[197455];H[197455]=0;if((g|0)==1){break w}H[197455]=0;ga(1785,i+352|0,434852,i+456|0);f=H[197455];H[197455]=0;if((f|0)==1){break v}H[197455]=0;g=aa(899,48)|0;h=H[197455];H[197455]=0;f=1;if((h|0)==1){break u}H[i+148>>2]=10;H[i+152>>2]=-2147483636;H[i+144>>2]=g;H[197455]=0;Mb(g,434808,10);f=H[197455];H[197455]=0;if((f|0)==1){break a}f=0;H[g+40>>2]=0;H[i+164>>2]=H[i+360>>2];g=H[i+356>>2];H[i+156>>2]=H[i+352>>2];H[i+160>>2]=g;H[i+360>>2]=0;H[i+172>>2]=6;H[197455]=0;H[i+352>>2]=0;H[i+356>>2]=0;H[i+168>>2]=i+24;g=H[i+172>>2];H[i+16>>2]=H[i+168>>2];H[i+20>>2]=g;g=da(1763,i+440|0,i+16|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break t}if(F[i+167|0]<0){Kb(H[i+156>>2])}if(F[i+155|0]<0){Kb(H[i+144>>2])}if(F[i+143|0]<0){Kb(H[i+132>>2])}if(F[i+131|0]<0){Kb(H[i+120>>2])}if(F[i+119|0]<0){Kb(H[i+108>>2])}if(F[i+107|0]<0){Kb(H[i+96>>2])}if(F[i+95|0]<0){Kb(H[i+84>>2])}if(F[i+83|0]<0){Kb(H[i+72>>2])}if(F[i+71|0]<0){Kb(H[i+60>>2])}if(F[i+59|0]<0){Kb(H[i+48>>2])}if(F[i+47|0]<0){Kb(H[i+36>>2])}if(F[i+35|0]<0){Kb(H[i+24>>2])}if(F[i+363|0]<0){Kb(H[i+352>>2])}if(F[i+379|0]<0){Kb(H[i+368>>2])}if(F[i+395|0]<0){Kb(H[i+384>>2])}if(F[i+419|0]<0){Kb(H[i+408>>2])}if(F[i+435|0]<0){Kb(H[i+424>>2])}H[197455]=0;f=a+8|0;ga(1766,f|0,g|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break m}H[197455]=0;ia(1764,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break m}H[197455]=0;a=aa(899,32)|0;h=H[197455];H[197455]=0;if((h|0)==1){break l}H[i+24>>2]=a;H[i+28>>2]=5;H[i+32>>2]=-2147483640;H[197455]=0;Mb(a,434944,5);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[a+20>>2]=0;F[i+435|0]=0;H[197455]=0;H[i+424>>2]=0;ka(1767,f|0,i+24|0,g|0,i+424|0);a=H[197455];H[197455]=0;if((a|0)==1){break k}if(F[i+435|0]<0){Kb(H[i+424>>2])}if(F[i+35|0]<0){Kb(H[i+24>>2])}a=H[g>>2];if(a){h=H[g+4>>2];if((a|0)==(h|0)){f=a}else{while(1){if(F[h-1|0]<0){Kb(H[h-12>>2])}f=h-24|0;if(F[h-13|0]<0){Kb(H[f>>2])}h=f;if((a|0)!=(f|0)){continue}break}f=H[g>>2]}H[g+4>>2]=a;Kb(f)}if(F[i+467|0]>=0){break la}Kb(H[i+456>>2])}a=H[i+336>>2];if(a){Kb(a)}id(l)}xb=i+480|0;return}a=$()|0;_()|0;break i}a=$()|0;_()|0;break n}a=$()|0;_()|0;break o}a=$()|0;f=1;_()|0;break p}a=$()|0;f=1;_()|0;break p}a=$()|0;_()|0;break q}a=$()|0;f=1;_()|0;break r}a=$()|0;_()|0;break s}a=$()|0;_()|0;Vb(i+144|0);Vb(i+120|0);Vb(i+96|0);Vb(i+72|0);Vb(i+48|0);Vb(i+24|0)}if(F[i+363|0]>=0){break r}Kb(H[i+352>>2])}h=i+144|0}if(F[i+379|0]>=0){break p}Kb(H[i+368>>2])}if(F[i+395|0]>=0){break o}Kb(H[i+384>>2])}if(F[i+419|0]>=0){break n}Kb(H[i+408>>2])}if(F[i+435|0]<0){Kb(H[i+424>>2])}if(!f|(i+24|0)==(h|0)){break i}while(1){h=Vb(h-24|0);if((h|0)!=(i+24|0)){continue}break}break i}a=$()|0;_()|0;break j}a=$()|0;_()|0;break j}a=$()|0;_()|0;if(F[i+435|0]<0){Kb(H[i+424>>2])}if(F[i+35|0]>=0){break j}Kb(H[i+24>>2])}yc(g)}if(F[i+467|0]>=0){break e}Kb(H[i+456>>2]);break e}a=$()|0;_()|0;break e}a=$()|0;_()|0;break e}a=$()|0;_()|0}id(l)}ea(a|0);X()}a=$()|0;_()|0}yc(j);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function _z(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=xb-448|0;xb=i;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{if(!h|!g|(e==0|d==0)){break C}if(!f){break C}if(!((g|0)!=1|(h|0)!=1)){H[197455]=0;fa(1756,i+304|0,+b,-1);g=H[197455];H[197455]=0;D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{if((g|0)!=1){F[i+331|0]=1;H[197455]=0;Mb(i+320|0,410448,1);g=H[197455];H[197455]=0;if((g|0)==1){break a}g=H[i+312>>2];H[i+312>>2]=0;H[i+340>>2]=g;H[i+324>>2]=0;g=H[i+304>>2];h=H[i+308>>2];H[i+304>>2]=0;H[i+308>>2]=0;H[i+332>>2]=g;H[i+336>>2]=h;H[197455]=0;fa(1756,i+288|0,+c,-1);j=H[197455];H[197455]=0;g=1;h=i+344|0;if((j|0)==1){break ka}F[i+355|0]=1;H[197455]=0;Mb(h,410652,1);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[i+348>>2]=0;g=H[i+292>>2];H[i+356>>2]=H[i+288>>2];H[i+360>>2]=g;g=H[i+296>>2];H[i+296>>2]=0;H[i+364>>2]=g;H[i+288>>2]=0;H[i+292>>2]=0;H[197455]=0;fa(1756,i+272|0,+d,-1);j=H[197455];H[197455]=0;g=1;h=i+368|0;if((j|0)==1){break ja}H[197455]=0;g=aa(899,32)|0;j=H[197455];H[197455]=0;if((j|0)==1){break ia}H[i+372>>2]=5;H[i+376>>2]=-2147483640;H[i+368>>2]=g;H[197455]=0;Mb(g,403488,5);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[g+20>>2]=0;H[i+388>>2]=H[i+280>>2];g=H[i+276>>2];H[i+380>>2]=H[i+272>>2];H[i+384>>2]=g;H[i+280>>2]=0;H[i+272>>2]=0;H[i+276>>2]=0;H[197455]=0;fa(1756,i+256|0,+e,-1);g=H[197455];H[197455]=0;h=i+392|0;if((g|0)==1){break ha}H[197455]=0;j=aa(899,32)|0;k=H[197455];H[197455]=0;g=1;if((k|0)==1){break ga}H[i+396>>2]=6;H[i+400>>2]=-2147483640;H[i+392>>2]=j;H[197455]=0;Mb(j,403652,6);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[j+24>>2]=0;H[i+412>>2]=H[i+264>>2];g=H[i+260>>2];H[i+404>>2]=H[i+256>>2];H[i+408>>2]=g;H[i+264>>2]=0;H[i+256>>2]=0;H[i+260>>2]=0;g=I[f+2|0];H[197455]=0;ba(1778,i+120|0,g|0);h=H[197455];H[197455]=0;g=1;if((h|0)==1){break fa}H[197455]=0;g=ca(1758,i+120|0,0,411384)|0;h=H[197455];H[197455]=0;if((h|0)==1){break ea}H[i+144>>2]=H[g+8>>2];h=H[g+4>>2];H[i+136>>2]=H[g>>2];H[i+140>>2]=h;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,i+136|0,44);h=H[197455];H[197455]=0;g=1;if((h|0)==1){break da}H[i+160>>2]=H[i+144>>2];H[i+144>>2]=0;g=H[i+140>>2];H[i+152>>2]=H[i+136>>2];H[i+156>>2]=g;H[i+136>>2]=0;H[i+140>>2]=0;g=I[f+1|0];H[197455]=0;ba(1778,i+104|0,g|0);g=H[197455];H[197455]=0;if((g|0)==1){break ca}H[197455]=0;g=I[i+115|0];h=g<<24>>24<0;h=ca(1759,i+152|0,(h?H[i+104>>2]:i+104|0)|0,(h?H[i+108>>2]:g)|0)|0;j=H[197455];H[197455]=0;g=1;if((j|0)==1){break ba}H[i+176>>2]=H[h+8>>2];g=H[h+4>>2];H[i+168>>2]=H[h>>2];H[i+172>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;ba(1650,i+168|0,44);g=H[197455];H[197455]=0;if((g|0)==1){break aa}H[i+192>>2]=H[i+176>>2];H[i+176>>2]=0;g=H[i+172>>2];H[i+184>>2]=H[i+168>>2];H[i+188>>2]=g;H[i+168>>2]=0;H[i+172>>2]=0;g=I[f|0];H[197455]=0;ba(1778,i+88|0,g|0);h=H[197455];H[197455]=0;g=1;if((h|0)==1){break $}H[197455]=0;g=I[i+99|0];h=g<<24>>24<0;g=ca(1759,i+184|0,(h?H[i+88>>2]:i+88|0)|0,(h?H[i+92>>2]:g)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break _}H[i+208>>2]=H[g+8>>2];h=H[g+4>>2];H[i+200>>2]=H[g>>2];H[i+204>>2]=h;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,i+200|0,44);h=H[197455];H[197455]=0;g=1;if((h|0)==1){break Z}H[i+224>>2]=H[i+208>>2];H[i+208>>2]=0;h=H[i+204>>2];H[i+216>>2]=H[i+200>>2];H[i+220>>2]=h;H[i+200>>2]=0;H[i+204>>2]=0;f=I[f+3|0];H[197455]=0;ba(1778,i+72|0,f|0);f=H[197455];H[197455]=0;if((f|0)==1){break Y}H[197455]=0;f=I[i+83|0];g=f<<24>>24<0;f=ca(1759,i+216|0,(g?H[i+72>>2]:i+72|0)|0,(g?H[i+76>>2]:f)|0)|0;h=H[197455];H[197455]=0;g=1;if((h|0)==1){break X}H[i+240>>2]=H[f+8>>2];h=H[f+4>>2];H[i+232>>2]=H[f>>2];H[i+236>>2]=h;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;ba(1650,i+232|0,41);f=H[197455];H[197455]=0;if((f|0)==1){break W}h=F[i+243|0];f=I[i+239|0]|I[i+240|0]<<8|(I[i+241|0]<<16|I[i+242|0]<<24);H[i+240>>2]=0;j=H[i+232>>2];g=H[i+236>>2];H[i+232>>2]=0;H[i+236>>2]=0;H[i+248>>2]=g;F[i+251|0]=f;F[i+252|0]=f>>>8;F[i+253|0]=f>>>16;F[i+254|0]=f>>>24;H[197455]=0;f=aa(899,32)|0;k=H[197455];H[197455]=0;g=1;if((k|0)==1){break U}H[i+420>>2]=4;H[i+424>>2]=-2147483640;H[i+416>>2]=f;H[197455]=0;Mb(f,411236,4);g=H[197455];H[197455]=0;if((g|0)==1){break a}g=0;H[f+16>>2]=0;H[i+428>>2]=j;H[i+432>>2]=H[i+248>>2];f=I[i+251|0]|I[i+252|0]<<8|(I[i+253|0]<<16|I[i+254|0]<<24);F[i+435|0]=f;F[i+436|0]=f>>>8;F[i+437|0]=f>>>16;F[i+438|0]=f>>>24;H[i+444>>2]=5;F[i+439|0]=h;H[197455]=0;H[i+248>>2]=0;F[i+251|0]=0;F[i+252|0]=0;F[i+253|0]=0;F[i+254|0]=0;H[i+440>>2]=i+320;f=H[i+444>>2];H[i>>2]=H[i+440>>2];H[i+4>>2]=f;j=da(1763,i+24|0,i|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break V}if(F[i+439|0]<0){Kb(H[i+428>>2])}if(F[i+427|0]<0){Kb(H[i+416>>2])}if(F[i+415|0]<0){Kb(H[i+404>>2])}if(F[i+403|0]<0){Kb(H[i+392>>2])}if(F[i+391|0]<0){Kb(H[i+380>>2])}if(F[i+379|0]<0){Kb(H[i+368>>2])}if(F[i+367|0]<0){Kb(H[i+356>>2])}if(F[i+355|0]<0){Kb(H[i+344>>2])}if(F[i+343|0]<0){Kb(H[i+332>>2])}if(F[i+331|0]<0){Kb(H[i+320>>2])}if(F[i+243|0]<0){Kb(H[i+232>>2])}if(F[i+83|0]<0){Kb(H[i+72>>2])}if(F[i+227|0]<0){Kb(H[i+216>>2])}if(F[i+211|0]<0){Kb(H[i+200>>2])}if(F[i+99|0]<0){Kb(H[i+88>>2])}if(F[i+195|0]<0){Kb(H[i+184>>2])}if(F[i+179|0]<0){Kb(H[i+168>>2])}if(F[i+115|0]<0){Kb(H[i+104>>2])}if(F[i+163|0]<0){Kb(H[i+152>>2])}if(F[i+147|0]<0){Kb(H[i+136>>2])}if(F[i+131|0]<0){Kb(H[i+120>>2])}if(F[i+267|0]<0){Kb(H[i+256>>2])}if(F[i+283|0]<0){Kb(H[i+272>>2])}if(F[i+299|0]<0){Kb(H[i+288>>2])}if(F[i+315|0]<0){Kb(H[i+304>>2])}H[197455]=0;f=a+8|0;ga(1766,f|0,j|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break c}H[197455]=0;a=aa(899,32)|0;g=H[197455];H[197455]=0;if((g|0)==1){break c}H[i+320>>2]=a;H[i+324>>2]=4;H[i+328>>2]=-2147483640;H[197455]=0;Mb(a,410880,4);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[a+16>>2]=0;F[i+315|0]=0;H[197455]=0;H[i+304>>2]=0;ka(1767,f|0,i+320|0,j|0,i+304|0);a=H[197455];H[197455]=0;if((a|0)==1){break D}if(F[i+315|0]<0){Kb(H[i+304>>2])}if(F[i+331|0]<0){Kb(H[i+320>>2])}a=H[j>>2];if(!a){break C}h=H[j+4>>2];if((a|0)==(h|0)){f=a}else{while(1){if(F[h-1|0]<0){Kb(H[h-12>>2])}f=h-24|0;if(F[h-13|0]<0){Kb(H[f>>2])}h=f;if((a|0)!=(f|0)){continue}break}f=H[j>>2]}H[j+4>>2]=a;Kb(f);break C}a=$()|0;_()|0;ea(a|0);X()}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;g=1;_()|0;break G}a=$()|0;g=1;_()|0;break G}a=$()|0;_()|0;break H}a=$()|0;_()|0;break I}a=$()|0;g=1;_()|0;break J}a=$()|0;_()|0;break K}a=$()|0;g=1;_()|0;break L}a=$()|0;_()|0;break M}a=$()|0;g=1;_()|0;break N}a=$()|0;_()|0;break O}a=$()|0;g=1;_()|0;break P}a=$()|0;_()|0;break Q}a=$()|0;_()|0;break R}a=$()|0;_()|0;break S}a=$()|0;_()|0;break T}a=$()|0;_()|0;Vb(i+416|0);Vb(i+392|0);Vb(i+368|0);Vb(i+344|0);Vb(i+320|0);break T}a=$()|0;_()|0;if((h|0)>=0){break T}Kb(j)}if(F[i+243|0]>=0){break S}Kb(H[i+232>>2])}if(F[i+83|0]>=0){break R}Kb(H[i+72>>2])}if(F[i+227|0]>=0){break Q}Kb(H[i+216>>2])}if(F[i+211|0]>=0){break P}Kb(H[i+200>>2])}if(F[i+99|0]>=0){break O}Kb(H[i+88>>2])}if(F[i+195|0]>=0){break N}Kb(H[i+184>>2])}if(F[i+179|0]>=0){break M}Kb(H[i+168>>2])}if(F[i+115|0]>=0){break L}Kb(H[i+104>>2])}if(F[i+163|0]>=0){break K}Kb(H[i+152>>2])}if(F[i+147|0]>=0){break J}Kb(H[i+136>>2])}if(F[i+131|0]>=0){break I}Kb(H[i+120>>2])}h=i+416|0}if(F[i+267|0]>=0){break G}Kb(H[i+256>>2])}if(F[i+283|0]>=0){break F}Kb(H[i+272>>2])}if(F[i+299|0]>=0){break E}Kb(H[i+288>>2])}if(F[i+315|0]<0){Kb(H[i+304>>2])}if(!g|(i+320|0)==(h|0)){break d}while(1){h=Vb(h-24|0);if((h|0)!=(i+320|0)){continue}break}break d}a=$()|0;_()|0;if(F[i+315|0]<0){Kb(H[i+304>>2])}if(F[i+331|0]<0){Kb(H[i+320>>2])}break b}l=i+24|0;j=l;H[j>>2]=0;H[j+4>>2]=0;F[j+40|0]=0;H[j+32>>2]=0;H[j+36>>2]=-1074790400;F[j+21|0]=0;F[j+22|0]=0;F[j+23|0]=0;F[j+24|0]=0;F[j+25|0]=0;F[j+26|0]=0;F[j+27|0]=0;F[j+28|0]=0;H[j+16>>2]=0;H[j+20>>2]=0;H[j+8>>2]=0;H[j+12>>2]=0;H[197455]=0;H[j+16>>2]=f;f=H[197455];H[197455]=0;la:{ma:{na:{oa:{pa:{if((f|0)!=1){H[197455]=0;H[i+320>>2]=g;H[l+4>>2]=H[i+320>>2];f=H[197455];H[197455]=0;if((f|0)==1){break pa}H[197455]=0;H[i+320>>2]=h;H[l+8>>2]=H[i+320>>2];f=H[197455];H[197455]=0;if((f|0)==1){break oa}H[i+184>>2]=0;H[197455]=0;H[i+168>>2]=0;la(945,l|0,i+184|0,i+168|0,4)|0;f=H[197455];H[197455]=0;if((f|0)==1){break h}H[197455]=0;H[l+16>>2]=0;f=H[197455];H[197455]=0;if((f|0)==1){break h}f=H[i+168>>2];if((f|0)<=0){break la}H[197455]=0;f=um(f,0);g=H[197455];H[197455]=0;if((g|0)==1){break na}H[197455]=0;H[i+152>>2]=f;j=aa(929,f|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){break ma}break f}a=$()|0;_()|0;break e}a=$()|0;_()|0;break e}a=$()|0;_()|0;break e}a=$()|0;_()|0;break e}H[197455]=0;tm(H[i+184>>2],H[i+168>>2],j,i+152|0,0);f=H[197455];H[197455]=0;if((f|0)==1){break f}k=H[i+152>>2];if(k>>>0>=1073741808){H[197455]=0;ia(1640,i+304|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}X()}qa:{ra:{if(k>>>0>=2){H[197455]=0;f=k+4&-4;h=aa(899,f<<2)|0;g=H[197455];H[197455]=0;if((g|0)==1){break g}H[i+304>>2]=h;H[i+308>>2]=k;H[i+312>>2]=f|-2147483648;break ra}F[i+315|0]=k;h=i+304|0;if(!k){break qa}}n=k-1|0;m=k&7;sa:{if(!m){f=j;break sa}g=0;f=j;while(1){H[h>>2]=I[f|0];h=h+4|0;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}if(n>>>0<7){break qa}g=j+k|0;while(1){H[h>>2]=I[f|0];H[h+4>>2]=I[f+1|0];H[h+8>>2]=I[f+2|0];H[h+12>>2]=I[f+3|0];H[h+16>>2]=I[f+4|0];H[h+20>>2]=I[f+5|0];H[h+24>>2]=I[f+6|0];H[h+28>>2]=I[f+7|0];h=h+32|0;f=f+8|0;if((g|0)!=(f|0)){continue}break}}H[h>>2]=0;Kb(j);H[197455]=0;fa(1756,i+272|0,+b,-1);f=H[197455];H[197455]=0;if((f|0)==1){break B}F[i+331|0]=1;H[197455]=0;Mb(i+320|0,410448,1);f=H[197455];H[197455]=0;if((f|0)==1){break a}f=H[i+280>>2];H[i+280>>2]=0;H[i+340>>2]=f;H[i+324>>2]=0;f=H[i+272>>2];g=H[i+276>>2];H[i+272>>2]=0;H[i+276>>2]=0;H[i+332>>2]=f;H[i+336>>2]=g;H[197455]=0;fa(1756,i+256|0,+c,-1);g=H[197455];H[197455]=0;f=1;h=i+344|0;if((g|0)==1){break A}F[i+355|0]=1;H[197455]=0;Mb(h,410652,1);f=H[197455];H[197455]=0;if((f|0)==1){break a}H[i+348>>2]=0;f=H[i+260>>2];H[i+356>>2]=H[i+256>>2];H[i+360>>2]=f;f=H[i+264>>2];H[i+264>>2]=0;H[i+364>>2]=f;H[i+256>>2]=0;H[i+260>>2]=0;H[197455]=0;fa(1756,i+232|0,+d,-1);g=H[197455];H[197455]=0;f=1;h=i+368|0;if((g|0)==1){break z}H[197455]=0;f=aa(899,32)|0;g=H[197455];H[197455]=0;if((g|0)==1){break y}H[i+372>>2]=5;H[i+376>>2]=-2147483640;H[i+368>>2]=f;H[197455]=0;Mb(f,403488,5);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[f+20>>2]=0;H[i+388>>2]=H[i+240>>2];f=H[i+236>>2];H[i+380>>2]=H[i+232>>2];H[i+384>>2]=f;H[i+240>>2]=0;H[i+232>>2]=0;H[i+236>>2]=0;H[197455]=0;fa(1756,i+216|0,+e,-1);f=H[197455];H[197455]=0;h=i+392|0;if((f|0)==1){break x}H[197455]=0;g=aa(899,32)|0;j=H[197455];H[197455]=0;f=1;if((j|0)==1){break w}H[i+396>>2]=6;H[i+400>>2]=-2147483640;H[i+392>>2]=g;H[197455]=0;Mb(g,403652,6);f=H[197455];H[197455]=0;if((f|0)==1){break a}H[g+24>>2]=0;H[i+412>>2]=H[i+224>>2];f=H[i+220>>2];H[i+404>>2]=H[i+216>>2];H[i+408>>2]=f;H[i+224>>2]=0;H[i+216>>2]=0;H[i+220>>2]=0;H[197455]=0;ga(1785,i+200|0,414580,i+304|0);g=H[197455];H[197455]=0;f=1;if((g|0)==1){break v}H[197455]=0;f=aa(899,48)|0;g=H[197455];H[197455]=0;if((g|0)==1){break u}H[i+420>>2]=10;H[i+424>>2]=-2147483636;H[i+416>>2]=f;H[197455]=0;Mb(f,414468,10);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[f+40>>2]=0;H[i+436>>2]=H[i+208>>2];f=H[i+204>>2];H[i+428>>2]=H[i+200>>2];H[i+432>>2]=f;H[i+208>>2]=0;H[i+20>>2]=5;H[197455]=0;H[i+200>>2]=0;H[i+204>>2]=0;H[i+16>>2]=i+320;f=H[i+20>>2];H[i+8>>2]=H[i+16>>2];H[i+12>>2]=f;g=da(1763,i+288|0,i+8|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break t}if(F[i+439|0]<0){Kb(H[i+428>>2])}if(F[i+427|0]<0){Kb(H[i+416>>2])}if(F[i+415|0]<0){Kb(H[i+404>>2])}if(F[i+403|0]<0){Kb(H[i+392>>2])}if(F[i+391|0]<0){Kb(H[i+380>>2])}if(F[i+379|0]<0){Kb(H[i+368>>2])}if(F[i+367|0]<0){Kb(H[i+356>>2])}if(F[i+355|0]<0){Kb(H[i+344>>2])}if(F[i+343|0]<0){Kb(H[i+332>>2])}if(F[i+331|0]<0){Kb(H[i+320>>2])}if(F[i+211|0]<0){Kb(H[i+200>>2])}if(F[i+227|0]<0){Kb(H[i+216>>2])}if(F[i+243|0]<0){Kb(H[i+232>>2])}if(F[i+267|0]<0){Kb(H[i+256>>2])}if(F[i+283|0]<0){Kb(H[i+272>>2])}H[197455]=0;f=a+8|0;ga(1766,f|0,g|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break m}H[197455]=0;ia(1764,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break m}H[197455]=0;a=aa(899,32)|0;h=H[197455];H[197455]=0;if((h|0)==1){break l}H[i+320>>2]=a;H[i+324>>2]=5;H[i+328>>2]=-2147483640;H[197455]=0;Mb(a,414764,5);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[a+20>>2]=0;F[i+283|0]=0;H[197455]=0;H[i+272>>2]=0;ka(1767,f|0,i+320|0,g|0,i+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break k}if(F[i+283|0]<0){Kb(H[i+272>>2])}if(F[i+331|0]<0){Kb(H[i+320>>2])}a=H[g>>2];if(a){h=H[g+4>>2];if((a|0)==(h|0)){f=a}else{while(1){if(F[h-1|0]<0){Kb(H[h-12>>2])}f=h-24|0;if(F[h-13|0]<0){Kb(H[f>>2])}h=f;if((a|0)!=(f|0)){continue}break}f=H[g>>2]}H[g+4>>2]=a;Kb(f)}if(F[i+315|0]>=0){break la}Kb(H[i+304>>2])}a=H[i+184>>2];if(a){Kb(a)}id(l)}xb=i+448|0;return}a=$()|0;_()|0;break i}a=$()|0;_()|0;break n}a=$()|0;_()|0;break o}a=$()|0;f=1;_()|0;break p}a=$()|0;f=1;_()|0;break p}a=$()|0;_()|0;break q}a=$()|0;_()|0;break r}a=$()|0;_()|0;f=1;break s}a=$()|0;_()|0;Vb(i+416|0);Vb(i+392|0);Vb(i+368|0);Vb(i+344|0);Vb(i+320|0);f=0}if(F[i+211|0]>=0){break r}Kb(H[i+200>>2])}h=i+416|0}if(F[i+227|0]>=0){break p}Kb(H[i+216>>2])}if(F[i+243|0]>=0){break o}Kb(H[i+232>>2])}if(F[i+267|0]>=0){break n}Kb(H[i+256>>2])}if(F[i+283|0]<0){Kb(H[i+272>>2])}if(!f|(i+320|0)==(h|0)){break i}while(1){h=Vb(h-24|0);if((h|0)!=(i+320|0)){continue}break}break i}a=$()|0;_()|0;break j}a=$()|0;_()|0;break j}a=$()|0;_()|0;if(F[i+283|0]<0){Kb(H[i+272>>2])}if(F[i+331|0]>=0){break j}Kb(H[i+320>>2])}yc(g)}if(F[i+315|0]>=0){break e}Kb(H[i+304>>2]);break e}a=$()|0;_()|0;break e}a=$()|0;_()|0;break e}a=$()|0;_()|0}id(l)}ea(a|0);X()}a=$()|0;_()|0}yc(j);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function pda(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;c=H[a+20>>2];if((c|0)!=100){d=H[a>>2];H[d+24>>2]=c;H[d+20>>2]=21;zb[H[H[a>>2]>>2]](a)}if(b){Uq(a,0)}zb[H[H[a>>2]+16>>2]](a);zb[H[H[a+24>>2]+8>>2]](a);l=xb-2608|0;xb=l;h=zb[H[H[a+4>>2]>>2]](a,1,36)|0;H[a+388>>2]=h;H[h+16>>2]=0;H[h+8>>2]=1304;H[h+4>>2]=1305;H[h>>2]=1306;if(!(K[a+32>>2]<16777216&K[a+28>>2]<=16777215)){b=H[a>>2];H[b+20>>2]=42;H[b+24>>2]=65500;zb[H[H[a>>2]>>2]](a)}d=H[a+56>>2];c=H[a+376>>2];e=N(c,H[a+60>>2]);a:{if(d>>>0>=e>>>0){H[a+64>>2]=N(c,H[a+28>>2]);b=1;c=N(c,H[a+32>>2]);break a}if(e>>>0<=d<<1>>>0){b=2;H[a+64>>2]=(N(c,H[a+28>>2])+1|0)/2;c=(N(H[a+376>>2],H[a+32>>2])+1|0)/2|0;break a}b=3;if(e>>>0<=N(d,3)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+2|0)/3;c=(N(H[a+376>>2],H[a+32>>2])+2|0)/3|0;break a}if(e>>>0<=d<<2>>>0){b=4;H[a+64>>2]=(N(c,H[a+28>>2])+3|0)/4;c=(N(H[a+376>>2],H[a+32>>2])+3|0)/4|0;break a}b=5;if(e>>>0<=N(d,5)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+4|0)/5;c=(N(H[a+376>>2],H[a+32>>2])+4|0)/5|0;break a}b=6;if(e>>>0<=N(d,6)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+5|0)/6;c=(N(H[a+376>>2],H[a+32>>2])+5|0)/6|0;break a}b=7;if(e>>>0<=N(d,7)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+6|0)/7;c=(N(H[a+376>>2],H[a+32>>2])+6|0)/7|0;break a}if(e>>>0<=d<<3>>>0){b=8;H[a+64>>2]=(N(c,H[a+28>>2])+7|0)/8;c=(N(H[a+376>>2],H[a+32>>2])+7|0)/8|0;break a}b=9;if(e>>>0<=N(d,9)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+8|0)/9;c=(N(H[a+376>>2],H[a+32>>2])+8|0)/9|0;break a}b=10;if(e>>>0<=N(d,10)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+9|0)/10;c=(N(H[a+376>>2],H[a+32>>2])+9|0)/10|0;break a}b=11;if(e>>>0<=N(d,11)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+10|0)/11;c=(N(H[a+376>>2],H[a+32>>2])+10|0)/11|0;break a}b=12;if(e>>>0<=N(d,12)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+11|0)/12;c=(N(H[a+376>>2],H[a+32>>2])+11|0)/12|0;break a}b=13;if(e>>>0<=N(d,13)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+12|0)/13;c=(N(H[a+376>>2],H[a+32>>2])+12|0)/13|0;break a}b=14;if(e>>>0<=N(d,14)>>>0){H[a+64>>2]=(N(c,H[a+28>>2])+13|0)/14;c=(N(H[a+376>>2],H[a+32>>2])+13|0)/14|0;break a}c=N(c,H[a+28>>2]);b=15;if(e>>>0<=N(d,15)>>>0){H[a+64>>2]=(c+14|0)/15;c=(N(H[a+376>>2],H[a+32>>2])+14|0)/15|0;break a}b=16;H[a+64>>2]=(c+15|0)/16;c=(N(H[a+376>>2],H[a+32>>2])+15|0)/16|0}H[a+280>>2]=b;H[a+276>>2]=b;H[a+68>>2]=c;b=H[a+376>>2];if(b-17>>>0<=4294967279){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=7;H[H[a>>2]+28>>2]=H[a+376>>2];zb[H[H[a>>2]>>2]](a);b=H[a+376>>2]}c=b-2|0;if(c>>>0<=5){c=H[(c<<2)+258500>>2]}else{c=254352}H[a+380>>2]=c;H[a+384>>2]=(b|0)<8?N(b,b)-1|0:63;b=H[a+68>>2];b:{if(!(!b|!H[a+64>>2]|H[a+76>>2]<=0)){if(H[a+36>>2]>0){break b}}b=H[a>>2];H[b+20>>2]=33;zb[H[b>>2]](a);b=H[a+68>>2]}if(!(H[a+64>>2]<65501&(b|0)<=65500)){b=H[a>>2];H[b+20>>2]=42;H[b+24>>2]=65500;zb[H[H[a>>2]>>2]](a)}b=H[a+72>>2];if((b|0)!=8){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=16;zb[H[H[a>>2]>>2]](a)}e=H[a+76>>2];if((e|0)>=11){b=H[a>>2];H[b+24>>2]=e;H[b+20>>2]=27;H[H[a>>2]+28>>2]=10;zb[H[H[a>>2]>>2]](a);e=H[a+76>>2]}H[a+268>>2]=1;H[a+272>>2]=1;f=1;c:{if((e|0)<=0){break c}b=H[a+84>>2];i=1;while(1){c=H[b+8>>2];d:{if(c-5>>>0>=4294967292){d=H[b+12>>2];if(d-5>>>0>4294967291){break d}}c=H[a>>2];H[c+20>>2]=19;zb[H[c>>2]](a);e=H[a+76>>2];d=H[b+12>>2];f=H[a+272>>2];c=H[b+8>>2];i=H[a+268>>2]}f=(d|0)<(f|0)?f:d;H[a+272>>2]=f;i=(c|0)<(i|0)?i:c;H[a+268>>2]=i;b=b+88|0;g=g+1|0;if((g|0)<(e|0)){continue}break}if((e|0)<=0){break c}b=H[a+84>>2];g=0;while(1){H[b+4>>2]=g;d=H[a+276>>2];i=H[a+224>>2]?8:4;e:{if((d|0)>(i|0)){c=d;break e}e=H[a+268>>2];j=H[b+8>>2];if((e|0)%(j<<1)|0){c=d;break e}f=2;while(1){c=N(d,f);if((i|0)<(c|0)){break e}f=f<<1;if(!((e|0)%(N(j,f)|0)|0)){continue}break}}H[b+36>>2]=c;e=H[a+280>>2];f:{if((e|0)>(i|0)){d=e;break f}j=H[a+272>>2];n=H[b+12>>2];if((j|0)%(n<<1)|0){d=e;break f}f=2;while(1){d=N(e,f);if((i|0)<(d|0)){break f}f=f<<1;if(!((j|0)%(N(n,f)|0)|0)){continue}break}}H[b+40>>2]=d;e=d<<1;g:{if((e|0)<(c|0)){H[b+36>>2]=e;break g}c=c<<1;if((c|0)>=(d|0)){break g}H[b+40>>2]=c}c=N(H[a+376>>2],H[a+268>>2]);H[b+28>>2]=((c+N(H[b+8>>2],H[a+64>>2])|0)-1|0)/(c|0);c=N(H[a+376>>2],H[a+272>>2]);H[b+32>>2]=((c+N(H[b+12>>2],H[a+68>>2])|0)-1|0)/(c|0);c=N(H[a+376>>2],H[a+268>>2]);H[b+44>>2]=((c+N(H[b+36>>2],N(H[b+8>>2],H[a+64>>2]))|0)-1|0)/(c|0);c=N(H[a+376>>2],H[a+272>>2]);c=((c+N(H[b+40>>2],N(H[b+12>>2],H[a+68>>2]))|0)-1|0)/(c|0)|0;H[b+52>>2]=1;H[b+48>>2]=c;b=b+88|0;g=g+1|0;if((g|0)>2]){continue}break}f=H[a+272>>2]}b=N(H[a+376>>2],f);H[a+284>>2]=((b+H[a+68>>2]|0)-1|0)/(b|0);g=H[a+204>>2];h:{if(g){if(H[a+200>>2]<=0){b=H[a>>2];H[b+20>>2]=20;H[b+24>>2]=0;zb[H[H[a>>2]>>2]](a);g=H[a+204>>2]}i:{if(!(!H[g+20>>2]&H[g+24>>2]==63)){b=1;H[a+264>>2]=1;f=H[a+76>>2];if((f|0)<=0){break i}Nb(l,255,f<<8);break i}b=0;H[a+264>>2]=0;f=H[a+76>>2];if((f|0)<=0){break i}Nb(l+2560|0,0,f<<2)}if(H[a+200>>2]>0){b=1;while(1){d=b;j:{k:{n=H[g>>2];if(n-5>>>0>4294967291){break k}b=H[a>>2];H[b+24>>2]=n;H[b+20>>2]=27;H[H[a>>2]+28>>2]=4;zb[H[H[a>>2]>>2]](a);if((n|0)>0){break k}i=0;break j}b=H[g+4>>2];if(!((b|0)>=0&(b|0)>2])){b=H[a>>2];H[b+24>>2]=d;H[b+20>>2]=20;zb[H[H[a>>2]>>2]](a)}b=1;i=1;if((n|0)==1){break j}while(1){e=(b<<2)+g|0;c=H[e+4>>2];if(!((c|0)>=0&(c|0)>2])){f=H[a>>2];H[f+24>>2]=d;H[f+20>>2]=20;zb[H[H[a>>2]>>2]](a)}if((c|0)<=H[e>>2]){c=H[a>>2];H[c+24>>2]=d;H[c+20>>2]=20;zb[H[H[a>>2]>>2]](a)}b=b+1|0;if((n|0)!=(b|0)){continue}break}}f=H[g+32>>2];q=H[g+28>>2];j=H[g+24>>2];e=H[g+20>>2];l:{if(H[a+264>>2]){m:{n:{if((e|0)>(j|0)|e>>>0>63|((q|0)<0|(j|0)>63)){break n}if((f|0)<0|(q|0)>10){break n}if((f|0)<11){break m}}b=H[a>>2];H[b+24>>2]=d;H[b+20>>2]=18;zb[H[H[a>>2]>>2]](a)}o:{p:{if(!e){if(j){break p}break o}if((n|0)==1){break o}}b=H[a>>2];H[b+24>>2]=d;H[b+20>>2]=18;zb[H[H[a>>2]>>2]](a)}if(!i){break l}c=e+1|0;o=q-1|0;s=(j-e|0)+1&1;i=0;while(1){r=H[((i<<2)+g|0)+4>>2];if(!(!e|H[l+(r<<8)>>2]>=0)){b=H[a>>2];H[b+24>>2]=d;H[b+20>>2]=18;zb[H[H[a>>2]>>2]](a)}q:{if((e|0)>(j|0)){break q}b=e;if(!q){if((f|0)!=(o|0)){if(s){b=(l+(r<<8)|0)+(e<<2)|0;if(H[b>>2]>=0){k=H[a>>2];H[k+24>>2]=d;H[k+20>>2]=18;zb[H[H[a>>2]>>2]](a)}H[b>>2]=f;b=c}if((e|0)==(j|0)){break q}while(1){k=l+(r<<8)|0;m=k+(b<<2)|0;if(H[m>>2]>=0){p=H[a>>2];H[p+24>>2]=d;H[p+20>>2]=18;zb[H[H[a>>2]>>2]](a)}H[m>>2]=f;m=b+1|0;k=k+(m<<2)|0;if(H[k>>2]>=0){p=H[a>>2];H[p+24>>2]=d;H[p+20>>2]=18;zb[H[H[a>>2]>>2]](a)}H[k>>2]=f;b=b+2|0;if((j|0)!=(m|0)){continue}break}break q}if(s){b=(l+(r<<8)|0)+(e<<2)|0;if(H[b>>2]>0){k=H[a>>2];H[k+24>>2]=d;H[k+20>>2]=18;zb[H[H[a>>2]>>2]](a)}H[b>>2]=f;b=c}if((e|0)==(j|0)){break q}while(1){k=l+(r<<8)|0;m=k+(b<<2)|0;if(H[m>>2]>0){p=H[a>>2];H[p+24>>2]=d;H[p+20>>2]=18;zb[H[H[a>>2]>>2]](a)}H[m>>2]=f;m=b+1|0;k=k+(m<<2)|0;if(H[k>>2]>0){p=H[a>>2];H[p+24>>2]=d;H[p+20>>2]=18;zb[H[H[a>>2]>>2]](a)}H[k>>2]=f;b=b+2|0;if((j|0)!=(m|0)){continue}break}break q}while(1){k=(l+(r<<8)|0)+(b<<2)|0;m=H[k>>2];if(!(!((m|0)<0|(m|0)!=(q|0))&(f|0)==(o|0))){m=H[a>>2];H[m+24>>2]=d;H[m+20>>2]=18;zb[H[H[a>>2]>>2]](a)}H[k>>2]=f;k=(b|0)!=(j|0);b=b+1|0;if(k){continue}break}}i=i+1|0;if((n|0)!=(i|0)){continue}break}break l}r:{if(!(q|((j|0)!=63|e))){if(!f){break r}}b=H[a>>2];H[b+24>>2]=d;H[b+20>>2]=18;zb[H[H[a>>2]>>2]](a)}b=0;if(!i){break l}while(1){c=(l+2560|0)+(H[((b<<2)+g|0)+4>>2]<<2)|0;if(H[c>>2]){e=H[a>>2];H[e+24>>2]=d;H[e+20>>2]=20;zb[H[H[a>>2]>>2]](a)}H[c>>2]=1;b=b+1|0;if((n|0)!=(b|0)){continue}break}}b=d+1|0;g=g+36|0;if((d|0)>2]){continue}break}f=H[a+76>>2];b=H[a+264>>2]}s:{if(b){if((f|0)<=0){break s}b=0;while(1){if(H[l+(b<<8)>>2]<0){c=H[a>>2];H[c+20>>2]=46;zb[H[c>>2]](a);f=H[a+76>>2]}b=b+1|0;if((f|0)>(b|0)){continue}break}break s}if((f|0)<=0){break s}b=0;while(1){if(!H[(l+2560|0)+(b<<2)>>2]){c=H[a>>2];H[c+20>>2]=46;zb[H[c>>2]](a);f=H[a+76>>2]}b=b+1|0;if((f|0)>(b|0)){continue}break}}if(H[a+376>>2]>7){break h}f=0;if(H[a+200>>2]<=0){H[a+200>>2]=0;break h}e=H[a+204>>2];b=0;while(1){if((b|0)!=(f|0)){d=e+N(f,36)|0;g=H[d+4>>2];c=e+N(b,36)|0;H[c>>2]=H[d>>2];H[c+4>>2]=g;H[c+32>>2]=H[d+32>>2];g=H[d+28>>2];H[c+24>>2]=H[d+24>>2];H[c+28>>2]=g;g=H[d+20>>2];H[c+16>>2]=H[d+16>>2];H[c+20>>2]=g;g=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=g}d=H[a+384>>2];c=e+N(b,36)|0;if((d|0)>=H[c+20>>2]){if((d|0)>2]){H[c+24>>2]=d}b=b+1|0}f=f+1|0;if((f|0)>2]){continue}break}H[a+200>>2]=b;break h}H[a+200>>2]=1;H[a+264>>2]=0}if(!(H[a+212>>2]|!H[a+264>>2]&H[a+376>>2]>7)){H[a+216>>2]=1}H[h+20>>2]=0;b=H[a+216>>2];H[h+24>>2]=0;H[h+32>>2]=0;c=H[a+200>>2]<<1;t:{if(b){break t}c=H[a+200>>2]}H[h+28>>2]=c;xb=l+2608|0;if(!H[a+208>>2]){b=zb[H[H[a+4>>2]>>2]](a,1,12)|0;H[a+408>>2]=b;H[b>>2]=1307;u:{v:{w:{switch(H[a+40>>2]-1|0){case 0:if(H[a+36>>2]!=1){break v}break u;case 1:case 2:if(H[a+36>>2]!=3){break v}break u;case 3:case 4:if(H[a+36>>2]!=4){break v}break u;default:break w}}if(H[a+36>>2]>0){break u}}c=H[a>>2];H[c+20>>2]=10;zb[H[c>>2]](a)}x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{c=H[a+80>>2];switch(c-1|0){case 4:break C;case 3:break D;case 2:break E;case 1:break F;case 0:break G;default:break B}}if(H[a+76>>2]!=1){c=H[a>>2];H[c+20>>2]=11;zb[H[c>>2]](a)}H:{switch(H[a+40>>2]-1|0){case 0:H[b+4>>2]=1308;break x;case 1:H[b+4>>2]=1309;break A;case 2:H[b+4>>2]=1308;break x;default:break H}}break z}if(H[a+76>>2]!=3){c=H[a>>2];H[c+20>>2]=11;zb[H[c>>2]](a)}if(H[a+40>>2]==2){break y}break z}if(H[a+76>>2]!=3){c=H[a>>2];H[c+20>>2]=11;zb[H[c>>2]](a)}I:{switch(H[a+40>>2]-2|0){case 0:H[b+4>>2]=1312;break A;case 1:break y;default:break I}}break z}if(H[a+76>>2]!=4){c=H[a>>2];H[c+20>>2]=11;zb[H[c>>2]](a)}if(H[a+40>>2]==4){break y}break z}if(H[a+76>>2]!=4){c=H[a>>2];H[c+20>>2]=11;zb[H[c>>2]](a)}J:{switch(H[a+40>>2]-4|0){case 0:H[b+4>>2]=1313;break A;case 1:break y;default:break J}}break z}if(!((c|0)==H[a+40>>2]&H[a+76>>2]==H[a+36>>2])){c=H[a>>2];H[c+20>>2]=28;zb[H[c>>2]](a)}H[b+4>>2]=1311;break x}H[b>>2]=1310;break x}b=H[a>>2];H[b+20>>2]=28;zb[H[b>>2]](a);break x}H[b+4>>2]=1311}e=0;b=zb[H[H[a+4>>2]>>2]](a,1,112)|0;H[a+412>>2]=b;H[b+8>>2]=0;H[b+4>>2]=1321;H[b>>2]=1322;if(H[a+220>>2]){c=H[a>>2];H[c+20>>2]=26;zb[H[c>>2]](a)}K:{if(H[a+76>>2]<=0){break K}n=b+102|0;q=b+92|0;f=b+12|0;r=b+52|0;d=H[a+84>>2];i=1;while(1){c=H[a+272>>2];g=H[a+268>>2];j=H[a+276>>2];o=H[d+36>>2];s=H[d+8>>2];l=e<<2;h=(N(H[d+40>>2],H[d+12>>2])|0)/H[a+280>>2]|0;H[l+r>>2]=h;j=(N(o,s)|0)/(j|0)|0;L:{if(!((j|0)!=(g|0)|(c|0)!=(h|0))){c=f+l|0;if(H[a+228>>2]){H[c>>2]=1323;H[b+8>>2]=1;break L}H[c>>2]=1324;break L}o=(g|0)!=j<<1;if(!(o|(c|0)!=(h|0))){H[f+l>>2]=1325;i=0;break L}if(!((c|0)!=h<<1|o)){c=f+l|0;if(H[a+228>>2]){H[c>>2]=1326;H[b+8>>2]=1;break L}H[c>>2]=1327;break L}M:{k=g;g=(g|0)/(j|0)|0;if(k-N(g,j)|0){break M}k=c;c=(c|0)/(h|0)|0;if(k-N(c,h)|0){break M}H[f+l>>2]=1328;F[e+q|0]=g;F[e+n|0]=c;i=0;break L}c=H[a>>2];H[c+20>>2]=39;zb[H[c>>2]](a)}d=d+88|0;e=e+1|0;if((e|0)>2]){continue}break}if(i|!H[a+228>>2]){break K}b=H[a>>2];H[b+20>>2]=101;zb[H[b+4>>2]](a,0)}c=0;d=0;l=0;h=zb[H[H[a+4>>2]>>2]](a,1,64)|0;H[a+396>>2]=h;H[h>>2]=1329;N:{if(H[H[a+412>>2]+8>>2]){H[h+4>>2]=1330;b=H[a+272>>2];d=zb[H[H[a+4>>2]>>2]](a,1,N(N(b,H[a+76>>2]),20))|0;if(H[a+76>>2]<=0){break N}n=N(b,5);g=b<<2;q=N(b,12);r=N(b,3);e=H[a+84>>2];if((b|0)<=0){while(1){t=h+(c<<2)|0,u=Ob(d+g|0,zb[H[H[a+4>>2]+8>>2]](a,1,(N(H[a+268>>2],N(H[a+276>>2],H[e+28>>2]))|0)/H[e+8>>2]|0,r)|0,q),H[t+8>>2]=u;e=e+88|0;d=(n<<2)+d|0;c=c+1|0;if((c|0)>2]){continue}break}break N}j=b<<1;s=b&-2;k=b&1;while(1){f=zb[H[H[a+4>>2]+8>>2]](a,1,(N(H[a+268>>2],N(H[a+276>>2],H[e+28>>2]))|0)/H[e+8>>2]|0,r)|0;m=Ob(d+g|0,f,q);c=0;i=0;if((b|0)!=1){while(1){o=c<<2;H[o+d>>2]=H[f+(c+j<<2)>>2];H[(c+g<<2)+d>>2]=H[f+o>>2];o=c|1;p=o<<2;H[p+d>>2]=H[f+(j+o<<2)>>2];H[(g+o<<2)+d>>2]=H[f+p>>2];c=c+2|0;i=i+2|0;if((s|0)!=(i|0)){continue}break}}if(k){i=c<<2;H[i+d>>2]=H[f+(c+j<<2)>>2];H[(c+g<<2)+d>>2]=H[f+i>>2]}H[(h+(l<<2)|0)+8>>2]=m;e=e+88|0;d=(n<<2)+d|0;l=l+1|0;if((l|0)>2]){continue}break}break N}H[h+4>>2]=1331;if(H[a+76>>2]<=0){break N}b=h+8|0;c=H[a+84>>2];while(1){t=b+(d<<2)|0,u=zb[H[H[a+4>>2]+8>>2]](a,1,(N(H[a+268>>2],N(H[a+276>>2],H[c+28>>2]))|0)/H[c+8>>2]|0,H[a+272>>2])|0,H[t>>2]=u;c=c+88|0;d=d+1|0;if((d|0)>2]){continue}break}}}b=zb[H[H[a+4>>2]>>2]](a,1,156)|0;H[a+416>>2]=b;H[b+84>>2]=0;H[b+88>>2]=0;H[b>>2]=1332;H[b+92>>2]=0;H[b+96>>2]=0;H[b+140>>2]=0;H[b+144>>2]=0;H[b+148>>2]=0;H[b+152>>2]=0;O:{if(H[a+212>>2]){b=zb[H[H[a+4>>2]>>2]](a,1,208)|0;H[a+420>>2]=b;H[b+8>>2]=1369;H[b>>2]=1370;Nb(b+76|0,0,128);F[b+204|0]=113;break O}b=zb[H[H[a+4>>2]>>2]](a,1,140)|0;H[a+420>>2]=b;H[b+44>>2]=0;H[b+48>>2]=0;H[b>>2]=1376;H[b+52>>2]=0;H[b+56>>2]=0;H[b+60>>2]=0;H[b+64>>2]=0;H[b+68>>2]=0;H[b+72>>2]=0;H[b+76>>2]=0;H[b+80>>2]=0;H[b+84>>2]=0;H[b+88>>2]=0;H[b+92>>2]=0;H[b+96>>2]=0;H[b+100>>2]=0;H[b+104>>2]=0;if(H[a+264>>2]){H[b+136>>2]=0}}c=H[a+200>>2]<=1?H[a+216>>2]!=0:1;b=zb[H[H[a+4>>2]>>2]](a,1,104)|0;H[a+400>>2]=b;H[b>>2]=1385;P:{if(c){if(H[a+76>>2]<=0){break P}e=b- -64|0;b=H[a+84>>2];c=0;while(1){d=H[b+8>>2];h=(d+H[b+28>>2]|0)-1|0;g=h-((h|0)%(d|0)|0)|0;d=H[b+12>>2];h=(d+H[b+32>>2]|0)-1|0;t=e+(c<<2)|0,u=zb[H[H[a+4>>2]+20>>2]](a,1,0,g,h-((h|0)%(d|0)|0)|0,d)|0,H[t>>2]=u;b=b+88|0;c=c+1|0;if((c|0)>2]){continue}break}break P}c=zb[H[H[a+4>>2]+4>>2]](a,1,1280)|0;H[b+64>>2]=0;H[b+24>>2]=c;H[b+60>>2]=c+1152;H[b+56>>2]=c+1024;H[b+52>>2]=c+896;H[b+48>>2]=c+768;H[b+44>>2]=c+640;H[b+40>>2]=c+512;H[b+36>>2]=c+384;H[b+32>>2]=c+256;H[b+28>>2]=c+128}c=0;b=zb[H[H[a+4>>2]>>2]](a,1,64)|0;H[a+392>>2]=b;H[b>>2]=1389;if(!(H[a+208>>2]|H[a+76>>2]<=0)){d=b+24|0;b=H[a+84>>2];while(1){t=d+(c<<2)|0,u=zb[H[H[a+4>>2]+8>>2]](a,1,N(H[b+36>>2],H[b+28>>2]),N(H[b+40>>2],H[b+12>>2]))|0,H[t>>2]=u;b=b+88|0;c=c+1|0;if((c|0)>2]){continue}break}}QC(a);zb[H[H[a+4>>2]+24>>2]](a);zb[H[H[a+404>>2]>>2]](a);zb[H[H[a+388>>2]>>2]](a);H[a+260>>2]=0;H[a+20>>2]=H[a+208>>2]?102:101}function SH(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;h=xb-48|0;xb=h;a:{b:{switch(I[a+7|0]){case 0:H[h+4>>2]=0;H[h+8>>2]=0;F[h|0]=0;c=H[b+12>>2];H[h+36>>2]=H[b+16>>2];H[h+32>>2]=a+12;a=H[c+32>>2];if((a|0)==-1){a=De(c)}H[h+40>>2]=a;c=0;f=h+32|0;a=H[f+4>>2];H[a+64>>2]=0;c:{if(!I[a+60|0]){break c}while(1){b=0;d:{if(K[a+68>>2]<=c>>>0){break d}e=H[H[a+80>>2]+N(c,20)>>2];b=2;if((e|0)==65535){break d}a=H[f>>2];c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=Re((c<<8&16711680|c<<24|(c>>>8&65280|c>>>24))+a|0,e,H[f+8>>2]);b=1;if(!a){break d}a=I[a|0]|I[a+1|0]<<8;b=(a<<8|a>>>8)&65535}a=H[f>>2];c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);g=i>>>0>b>>>0;o=N(d,i);c=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);l=a+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;c=((g?b:1)+o<<1)+l|0;c=I[c|0]|I[c+1|0]<<8;e=((c<<8|c>>>8)&65535)<<2;c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);m=a+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;c=e+m|0;e=I[c|0]|I[c+1|0]<<8;k=I[c+2|0]|I[c+3|0]<<8;j=H[h+4>>2];n=H[h+8>>2];e:{f:{if(j>>>0>>0?k&3840:0){break f}if(!(!d|!(k&64?e:1))){a=l+((g?b:1)<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=m+(((a<<8|a>>>8)&65535)<<2)|0;b=I[a+2|0]|I[a+3|0]<<8;if((j>>>0>>0?b&3840:0)|(e|0)!=(I[a|0]|I[a+1|0]<<8)|(b^k)&64){break f}}a=l+(o+!i<<1)|0;a=I[a|0]|I[a+1|0]<<8;if(!(I[(m+(((a<<8|a>>>8)&65535)<<2)|0)+3|0]&15)|j>>>0>=n>>>0){break e}}a=H[f+4>>2];b=H[a+64>>2];d=I[a+61|0]?H[a+72>>2]:b;if(!d|b>>>0>=K[a+68>>2]){break e}Rc(a,3,d-1|0,b+1|0,1,1)}pt(h,f,c);a=H[f+4>>2];d=H[a+64>>2];if((d|0)==H[a+68>>2]|!I[a+60|0]){break c}g:{if(I[c+2|0]&64){b=H[a+152>>2];H[a+152>>2]=b-1;if((b|0)>0){break g}}if(I[a+61|0]){h:{if(H[a+84>>2]==H[a+80>>2]){b=d;if(H[a+72>>2]==(b|0)){break h}}if(!ec(a,1,1)){break g}d=H[a+80>>2]+N(H[a+64>>2],20)|0;c=H[d+4>>2];b=H[a+84>>2]+N(H[a+72>>2],20)|0;H[b>>2]=H[d>>2];H[b+4>>2]=c;H[b+16>>2]=H[d+16>>2];c=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=c;d=H[a+64>>2];b=H[a+72>>2]}H[a+72>>2]=b+1}H[a+64>>2]=d+1}a=H[f+4>>2];if(!I[a+60|0]){break c}d=(e<<8|e>>>8)&65535;c=H[a+64>>2];continue}}c=I[h|0]!=0;break a;case 1:F[h|0]=0;H[h+4>>2]=b;c=H[b+68>>2];F[h+12|0]=0;H[h+8>>2]=c;f=I[c+4|0]|I[c+5|0]<<8;c=a+12|0;H[h+20>>2]=c;H[h+16>>2]=0;F[h+13|0]=(f|0)!=0;a=I[a+28|0]|I[a+29|0]<<8|(I[a+30|0]<<16|I[a+31|0]<<24);H[h+24>>2]=c+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24));f=H[b+12>>2];H[h+36>>2]=H[b+16>>2];H[h+32>>2]=c;a=H[f+32>>2];if((a|0)==-1){a=De(f)}H[h+40>>2]=a;c=0;f=h+32|0;a=H[f+4>>2];H[a+64>>2]=0;i:{if(!I[a+60|0]){break i}while(1){b=0;j:{if(K[a+68>>2]<=c>>>0){break j}e=H[H[a+80>>2]+N(c,20)>>2];b=2;if((e|0)==65535){break j}a=H[f>>2];c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=Re((c<<8&16711680|c<<24|(c>>>8&65280|c>>>24))+a|0,e,H[f+8>>2]);b=1;if(!a){break j}a=I[a|0]|I[a+1|0]<<8;b=(a<<8|a>>>8)&65535}a=H[f>>2];c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);g=i>>>0>b>>>0;n=N(d,i);c=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);m=a+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;c=((g?b:1)+n<<1)+m|0;c=I[c|0]|I[c+1|0]<<8;e=((c<<8|c>>>8)&65535)<<3;c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);k=a+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;a=e+k|0;l=I[a|0]|I[a+1|0]<<8;c=H[f+4>>2];e=H[c+64>>2];o=H[c+68>>2];j=!I[h+12|0]&(e|0)==(o|0);k:{l:{if(!j&((I[a+4|0]|I[a+5|0]<<8)!=65535|(I[a+6|0]|I[a+7|0]<<8)!=65535)){break l}m:{if(!d){break m}d=I[a+2|0]|I[a+3|0]<<8;if(!(d&64?l:1)){break m}b=m+((g?b:1)<<1)|0;b=I[b|0]|I[b+1|0]<<8;b=k+(((b<<8|b>>>8)&65535)<<3)|0;if(!j&((I[b+4|0]|I[b+5|0]<<8)!=65535|(I[b+6|0]|I[b+7|0]<<8)!=65535)|((d^(I[b+2|0]|I[b+3|0]<<8))&64|(l|0)!=(I[b|0]|I[b+1|0]<<8))){break l}}if(j){break k}b=m+(n+!i<<1)|0;b=I[b|0]|I[b+1|0]<<8;b=k+(((b<<8|b>>>8)&65535)<<3)|0;if((I[b+4|0]|I[b+5|0]<<8)!=65535){break l}if((I[b+6|0]|I[b+7|0]<<8)==65535){break k}}b=I[c+61|0]?H[c+72>>2]:e;if(!b|e>>>0>=o>>>0){break k}Rc(c,3,b-1|0,e+1|0,1,1)}c=a;n=0;d=H[f+4>>2];n:{if(I[h+12|0]?0:H[d+64>>2]==H[d+68>>2]){break n}a=I[c+4|0]|I[c+5|0]<<8;o:{if((a|0)==65535){break o}b=H[h+24>>2];a=b+(((a<<8|a>>>8)&65535)<<2)|0;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);o=Re((a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))+b|0,H[H[d+80>>2]+N(H[h+16>>2],20)>>2],H[f+8>>2]);if(!o){break o}a=H[d+64>>2]+1|0;b=H[d+68>>2];m=a>>>0>>0?a:b;b=H[h+16>>2];k=m-b|0;p:{if(k>>>0<=1){g=H[d+80>>2];break p}e=H[d+144>>2]|32;H[d+144>>2]=e;g=H[d+80>>2];if(b>>>0>=m>>>0){break p}i=-1;a=b;r=m+(a^-1)|0;if(r>>>0>=3){q=k&-4;while(1){j=N(a,20)+g|0;p=H[j+8>>2];i=i>>>0

>>0?i:p;p=H[j+28>>2];i=i>>>0

>>0?i:p;p=H[j+48>>2];i=i>>>0

>>0?i:p;j=H[j+68>>2];i=i>>>0>>0?i:j;a=a+4|0;n=n+4|0;if((q|0)!=(n|0)){continue}break}}n=k&3;if(n){j=0;while(1){q=H[(N(a,20)+g|0)+8>>2];i=i>>>0>>0?i:q;a=a+1|0;j=j+1|0;if((n|0)!=(j|0)){continue}break}}a=b;if(k&1){a=N(b,20)+g|0;if(H[a+8>>2]!=(i|0)){H[d+144>>2]=e;H[a+4>>2]=H[a+4>>2]|3}a=b+1|0}if(!r){break p}while(1){k=N(a,20)+g|0;if(H[k+8>>2]!=(i|0)){e=e|32;H[d+144>>2]=e;H[k+4>>2]=H[k+4>>2]|3}k=N(a+1|0,20)+g|0;if(H[k+8>>2]!=(i|0)){e=e|32;H[d+144>>2]=e;H[k+4>>2]=H[k+4>>2]|3}a=a+2|0;if((m|0)!=(a|0)){continue}break}}a=N(b,20)+g|0;b=I[o|0]|I[o+1|0]<<8;b=(b<<8|b>>>8)&65535;H[a>>2]=b;if(I[h+13|0]){s=a,t=Ye(H[h+8>>2],b),G[s+12>>1]=t}F[h|0]=1}a=I[c+6|0]|I[c+7|0]<<8;q:{if((a|0)==65535){break q}b=H[h+24>>2];a=b+(((a<<8|a>>>8)&65535)<<2)|0;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);g=(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))+b|0;a=H[d+64>>2];b=H[d+68>>2]-1|0;b=a>>>0>>0?a:b;e=N(b,20);a=Re(g,H[e+H[d+80>>2]>>2],H[f+8>>2]);if(!a){break q}g=e;e=H[d+80>>2];a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)&65535;H[g+e>>2]=a;if(I[h+13|0]){s=e+N(b,20)|0,t=Ye(H[h+8>>2],a),G[s+12>>1]=t}F[h|0]=1}if(!(I[c+2|0]&128)){break n}F[h+12|0]=1;H[h+16>>2]=H[d+64>>2]}a=H[f+4>>2];d=H[a+64>>2];if((d|0)==H[a+68>>2]|!I[a+60|0]){break i}r:{if(I[c+2|0]&64){b=H[a+152>>2];H[a+152>>2]=b-1;if((b|0)>0){break r}}if(I[a+61|0]){s:{if(H[a+84>>2]==H[a+80>>2]){b=d;if(H[a+72>>2]==(b|0)){break s}}if(!ec(a,1,1)){break r}d=H[a+80>>2]+N(H[a+64>>2],20)|0;c=H[d+4>>2];b=H[a+84>>2]+N(H[a+72>>2],20)|0;H[b>>2]=H[d>>2];H[b+4>>2]=c;H[b+16>>2]=H[d+16>>2];c=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=c;d=H[a+64>>2];b=H[a+72>>2]}H[a+72>>2]=b+1}H[a+64>>2]=d+1}a=H[f+4>>2];if(!I[a+60|0]){break i}d=(l<<8|l>>>8)&65535;c=H[a+64>>2];continue}}c=I[h|0]!=0;break a;case 2:c=xb-304|0;xb=c;a=a+12|0;H[c+24>>2]=a;F[c+16|0]=0;H[c+20>>2]=b;f=I[a+16|0]|I[a+17|0]<<8|(I[a+18|0]<<16|I[a+19|0]<<24);H[c+28>>2]=a+(f<<24|f<<8&16711680|(f>>>8&65280|f>>>24));f=I[a+20|0]|I[a+21|0]<<8|(I[a+22|0]<<16|I[a+23|0]<<24);H[c+32>>2]=a+(f<<24|f<<8&16711680|(f>>>8&65280|f>>>24));f=I[a+24|0]|I[a+25|0]<<8|(I[a+26|0]<<16|I[a+27|0]<<24);H[c+40>>2]=0;H[c+36>>2]=a+(f<<8&16711680|f<<24|(f>>>8&65280|f>>>24));f=H[b+12>>2];H[c+4>>2]=H[b+16>>2];H[c>>2]=a;a=H[f+32>>2];if((a|0)==-1){a=De(f)}H[c+8>>2]=a;f=c+16|0;b=0;a=H[c+4>>2];H[a+72>>2]=0;H[a+64>>2]=0;F[a+61|0]=1;F[a+62|0]=0;H[a+84>>2]=H[a+80>>2];a=H[c+4>>2];H[a+64>>2]=0;t:{if(!I[a+60|0]){break t}while(1){e=0;u:{if(K[a+68>>2]<=b>>>0){break u}i=H[H[a+80>>2]+N(b,20)>>2];e=2;if((i|0)==65535){break u}a=H[c>>2];b=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=Re((b<<8&16711680|b<<24|(b>>>8&65280|b>>>24))+a|0,i,H[c+8>>2]);e=1;if(!a){break u}a=I[a|0]|I[a+1|0]<<8;e=(a<<8|a>>>8)&65535}a=H[c>>2];b=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);i=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);g=i>>>0>e>>>0;n=N(d,i);b=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);k=a+(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))|0;b=((g?e:1)+n<<1)+k|0;b=I[b|0]|I[b+1|0]<<8;j=N((b<<8|b>>>8)&65535,6);b=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);b=a+(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))|0;l=j+b|0;m=I[l|0]|I[l+1|0]<<8;j=I[l+2|0]|I[l+3|0]<<8;v:{w:{if(j&32){break w}if(!(!d|!(j&64?m:1))){a=k+((g?e:1)<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=b+N((a<<8|a>>>8)&65535,6)|0;d=I[a+2|0]|I[a+3|0]<<8;if(d&32|(m|0)!=(I[a|0]|I[a+1|0]<<8)|(d^j)&64){break w}}a=k+(n+!i<<1)|0;a=I[a|0]|I[a+1|0]<<8;if(!(I[(b+N((a<<8|a>>>8)&65535,6)|0)+2|0]&32)){break v}}a=H[c+4>>2];b=H[a+64>>2];d=I[a+61|0]?H[a+72>>2]:b;if(!d|b>>>0>=K[a+68>>2]){break v}Rc(a,3,d-1|0,b+1|0,1,1)}k=0;e=H[c+4>>2];b=I[l+2|0]|I[l+3|0]<<8;if(b&128){a=H[f+24>>2];x:{if(!a){i=H[e+72>>2];a=0;break x}i=H[e+72>>2];a=a-((i|0)==H[(f+((a-1&63)<<2)|0)+28>>2])|0}H[f+24>>2]=a+1;H[(f+((a&63)<<2)|0)+28>>2]=i}y:{if(!(b&32)){break y}i=H[f+24>>2];if(!i|K[e+64>>2]>=K[e+68>>2]){break y}r=H[e+72>>2];a=I[l+4|0]|I[l+5|0]<<8;b=H[f+12>>2]+(((a<<8|a>>>8)&65535)<<2)|0;while(1){z:{if(!i){H[f+24>>2]=0;break z}i=i-1|0;q=f+((i&63)<<2)|0;if(!bf(e,H[q+28>>2])){break y}a=H[f+4>>2];j=H[a+24>>2];if(j>>>0>b>>>0){break z}d=H[a+28>>2];if(d>>>0>>0|d-b>>>0<4){break z}n=H[a+32>>2];g=n-4|0;H[a+32>>2]=g;if((g|0)<=0){break z}g=I[b|0];o=I[b+3|0]|(I[b+1|0]<<16|g<<24|I[b+2|0]<<8);g=H[H[e+80>>2]+N(H[e+64>>2],20)>>2]+(o&1073741823|g<<26>>31&-1073741824)|0;g=(g|0)<0?163632:H[f+16>>2]+(g<<1)|0;if(g>>>0>>0|d>>>0>>0|d-g>>>0<2){break z}p=n-6|0;H[a+32>>2]=p;if((p|0)<=0){break z}g=I[g|0]|I[g+1|0]<<8;k=((g<<8|g>>>8)&65535)+k|0;if(o>>>0>=1073741824){g=(k|0)<0?163632:H[f+20>>2]+(k<<1)|0;if(g>>>0>>0|d>>>0>>0|d-g>>>0<2){break z}d=a;a=n-8|0;H[d+32>>2]=a;if((a|0)<=0){break z}a=I[g|0]|I[g+1|0]<<8;if(!ec(e,1,1)){break y}j=(a<<8|a>>>8)&65535;a=H[e+64>>2];A:{if(a>>>0>2]){d=H[e+72>>2];g=H[e+84>>2];a=H[e+80>>2]+N(a,20)|0;break A}g=H[e+84>>2];d=H[e+72>>2];a=g+N(d?d-1|0:0,20)|0}d=N(d,20)+g|0;g=H[a+4>>2];H[d>>2]=H[a>>2];H[d+4>>2]=g;H[d+16>>2]=H[a+16>>2];g=H[a+12>>2];H[d+8>>2]=H[a+8>>2];H[d+12>>2]=g;H[d>>2]=j;H[e+64>>2]=H[e+64>>2]+1;H[e+72>>2]=H[e+72>>2]+1;d=H[f+24>>2]-1|0;j=H[(f+((d&63)<<2)|0)+28>>2];if(d>>>0>i>>>0){while(1){H[f+24>>2]=d;if(!bf(e,H[(f+((d&63)<<2)|0)+28>>2])){break y}if(!ec(e,1,1)){break y}a=H[e+64>>2];B:{if(a>>>0>2]){d=H[e+72>>2];g=H[e+84>>2];a=H[e+80>>2]+N(a,20)|0;break B}g=H[e+84>>2];d=H[e+72>>2];a=g+N(d?d-1|0:0,20)|0}d=N(d,20)+g|0;g=H[a+4>>2];H[d>>2]=H[a>>2];H[d+4>>2]=g;H[d+16>>2]=H[a+16>>2];g=H[a+12>>2];H[d+8>>2]=H[a+8>>2];H[d+12>>2]=g;H[d>>2]=65535;H[e+64>>2]=H[e+64>>2]+1;H[e+72>>2]=H[e+72>>2]+1;d=H[f+24>>2]-1|0;if(i>>>0>>0){continue}break}}if(!bf(e,j+1|0)){break y}eh(e,H[q+28>>2],H[e+72>>2])}b=b+4|0;if((o|0)>=0){continue}}break}bf(e,r)}a=H[c+4>>2];b=H[a+64>>2];if((b|0)==H[a+68>>2]|!I[a+60|0]){break t}C:{if(I[l+2|0]&64){d=H[a+152>>2];H[a+152>>2]=d-1;if((d|0)>0){break C}}if(I[a+61|0]){D:{if(H[a+84>>2]==H[a+80>>2]){d=b;if(H[a+72>>2]==(b|0)){break D}}if(!ec(a,1,1)){break C}d=H[a+80>>2]+N(H[a+64>>2],20)|0;e=H[d+4>>2];b=H[a+84>>2]+N(H[a+72>>2],20)|0;H[b>>2]=H[d>>2];H[b+4>>2]=e;H[b+16>>2]=H[d+16>>2];e=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=e;b=H[a+64>>2];d=H[a+72>>2]}H[a+72>>2]=d+1}H[a+64>>2]=b+1}a=H[c+4>>2];if(!I[a+60|0]){break t}d=(m<<8|m>>>8)&65535;b=H[a+64>>2];continue}}cf(a);xb=c+304|0;c=I[c+16|0];break a;case 4:c=qt(a+12|0,b);break a;case 5:break b;default:break a}}H[h+8>>2]=0;F[h|0]=0;H[h+4>>2]=b;c=I[a+28|0]|I[a+29|0]<<8|(I[a+30|0]<<16|I[a+31|0]<<24);a=a+12|0;H[h+12>>2]=(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))+a;c=H[b+12>>2];H[h+36>>2]=H[b+16>>2];H[h+32>>2]=a;a=H[c+32>>2];if((a|0)==-1){a=De(c)}H[h+40>>2]=a;c=0;f=h+32|0;a=H[f+4>>2];H[a+72>>2]=0;H[a+64>>2]=0;F[a+61|0]=1;F[a+62|0]=0;H[a+84>>2]=H[a+80>>2];a=H[f+4>>2];H[a+64>>2]=0;E:{if(!I[a+60|0]){break E}while(1){b=0;F:{if(K[a+68>>2]<=c>>>0){break F}e=H[H[a+80>>2]+N(c,20)>>2];b=2;if((e|0)==65535){break F}a=H[f>>2];c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=Re((c<<8&16711680|c<<24|(c>>>8&65280|c>>>24))+a|0,e,H[f+8>>2]);b=1;if(!a){break F}a=I[a|0]|I[a+1|0]<<8;b=(a<<8|a>>>8)&65535}a=H[f>>2];c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);g=i>>>0>b>>>0;j=N(d,i);c=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);l=a+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;c=((g?b:1)+j<<1)+l|0;c=I[c|0]|I[c+1|0]<<8;e=((c<<8|c>>>8)&65535)<<3;c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);m=a+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;c=e+m|0;e=I[c|0]|I[c+1|0]<<8;k=I[c+2|0]|I[c+3|0]<<8;G:{H:{if((I[c+4|0]|I[c+5|0]<<8)!=65535|(I[c+6|0]|I[c+7|0]<<8)!=65535?k&65283:0){break H}if(!(!d|!(k&64?e:1))){a=l+((g?b:1)<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=m+(((a<<8|a>>>8)&65535)<<3)|0;b=I[a+2|0]|I[a+3|0]<<8;if(((I[a+4|0]|I[a+5|0]<<8)!=65535|(I[a+6|0]|I[a+7|0]<<8)!=65535?b&65283:0)|((b^k)&64|(e|0)!=(I[a|0]|I[a+1|0]<<8))){break H}}a=l+(j+!i<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=m+(((a<<8|a>>>8)&65535)<<3)|0;if(!((I[a+2|0]|I[a+3|0]<<8)&65283)){break G}if((I[a+4|0]|I[a+5|0]<<8)!=65535){break H}if((I[a+6|0]|I[a+7|0]<<8)==65535){break G}}a=H[f+4>>2];b=H[a+64>>2];d=I[a+61|0]?H[a+72>>2]:b;if(!d|b>>>0>=K[a+68>>2]){break G}Rc(a,3,d-1|0,b+1|0,1,1)}ot(h,f,c);a=H[f+4>>2];d=H[a+64>>2];if((d|0)==H[a+68>>2]|!I[a+60|0]){break E}I:{if(I[c+2|0]&64){b=H[a+152>>2];H[a+152>>2]=b-1;if((b|0)>0){break I}}if(I[a+61|0]){J:{if(H[a+84>>2]==H[a+80>>2]){b=d;if(H[a+72>>2]==(b|0)){break J}}if(!ec(a,1,1)){break I}d=H[a+80>>2]+N(H[a+64>>2],20)|0;c=H[d+4>>2];b=H[a+84>>2]+N(H[a+72>>2],20)|0;H[b>>2]=H[d>>2];H[b+4>>2]=c;H[b+16>>2]=H[d+16>>2];c=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=c;d=H[a+64>>2];b=H[a+72>>2]}H[a+72>>2]=b+1}H[a+64>>2]=d+1}a=H[f+4>>2];if(!I[a+60|0]){break E}d=(e<<8|e>>>8)&65535;c=H[a+64>>2];continue}}cf(a);c=I[h|0]!=0}xb=h+48|0;return c|0}function Dfa(a){a=a|0;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;m=xb-256|0;xb=m;c=H[a+436>>2];while(1){a:{b:{c:{if(c){break c}if(!H[H[a+460>>2]+12>>2]){f=H[a+24>>2];c=H[f+4>>2];if(!c){if(!(zb[H[f+12>>2]](a)|0)){c=0;break b}c=H[f+4>>2]}e=H[f>>2];d=I[e|0];g=c-1|0;if(g){c=e+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){c=0;break b}g=H[f+4>>2];c=H[f>>2]}e=c+1|0;c=I[c|0];if(!((d|0)==255&(c|0)==216)){b=H[a>>2];H[b+24>>2]=d;H[b+20>>2]=55;H[H[a>>2]+28>>2]=c;zb[H[H[a>>2]>>2]](a)}H[a+436>>2]=c;H[f+4>>2]=g-1;H[f>>2]=e;break c}if(!$q(a)){c=0;break b}c=H[a+436>>2]}d:{e:{switch(c-1|0){case 215:c=H[a>>2];H[c+20>>2]=104;zb[H[c+4>>2]](a,1);c=H[a+460>>2];if(H[c+12>>2]){c=H[a>>2];H[c+20>>2]=63;zb[H[c>>2]](a);c=H[a+460>>2]}F[a+232|0]=0;F[a+233|0]=0;F[a+234|0]=0;F[a+235|0]=0;F[a+236|0]=0;F[a+237|0]=0;F[a+238|0]=0;F[a+239|0]=0;F[a+240|0]=0;F[a+241|0]=0;F[a+242|0]=0;F[a+243|0]=0;F[a+244|0]=0;F[a+245|0]=0;F[a+246|0]=0;F[a+247|0]=0;F[a+256|0]=1;F[a+257|0]=1;F[a+258|0]=1;F[a+259|0]=1;F[a+260|0]=1;F[a+261|0]=1;F[a+262|0]=1;F[a+263|0]=1;F[a+248|0]=1;F[a+249|0]=1;F[a+250|0]=1;F[a+251|0]=1;F[a+252|0]=1;F[a+253|0]=1;F[a+254|0]=1;F[a+255|0]=1;F[a+272|0]=5;F[a+273|0]=5;F[a+274|0]=5;F[a+275|0]=5;F[a+276|0]=5;F[a+277|0]=5;F[a+278|0]=5;F[a+279|0]=5;F[a+264|0]=5;F[a+265|0]=5;F[a+266|0]=5;F[a+267|0]=5;F[a+268|0]=5;F[a+269|0]=5;F[a+270|0]=5;F[a+271|0]=5;H[a+304>>2]=0;H[a+40>>2]=0;H[a+280>>2]=0;H[a+284>>2]=0;F[a+300|0]=0;H[a+292>>2]=65537;H[a+296>>2]=0;F[a+290|0]=0;G[a+288>>1]=257;H[c+12>>2]=1;break a;case 192:c=0;if(Wk(a,0,0,0)){break a}break b;case 193:c=0;if(Wk(a,0,1,0)){break a}break b;case 200:c=0;if(Wk(a,0,0,1)){break a}break b;case 201:c=0;if(Wk(a,0,1,1)){break a}break b;case 194:case 196:case 197:case 198:case 199:case 202:case 204:case 205:case 206:f=H[a>>2];H[f+24>>2]=c;H[f+20>>2]=62;zb[H[H[a>>2]>>2]](a);break a;case 217:h=H[a+24>>2];c=H[h+4>>2];b=H[h>>2];if(!H[H[a+460>>2]+16>>2]){f=H[a>>2];H[f+20>>2]=64;zb[H[f>>2]](a)}if(!c){if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}b=H[h>>2];c=H[h+4>>2]}d=I[b|0];e=c-1|0;if(e){c=b+1|0}else{if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}e=H[h+4>>2];c=H[h>>2]}b=I[c|0];e=e-1|0;if(e){c=c+1|0}else{if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}e=H[h+4>>2];c=H[h>>2]}f=H[a>>2];g=I[c|0];H[f+24>>2]=g;H[f+20>>2]=105;f=1;zb[H[H[a>>2]+4>>2]](a,1);f:{g:{h:{if(((g<<1)+6|0)!=(b|d<<8)|g>>>0>4){break h}if(g){H[a+336>>2]=g;b=c+1|0;c=e-1|0;break g}if(!H[a+224>>2]){break h}H[a+336>>2]=g;b=c+1|0;c=e-1|0;break f}d=H[a>>2];H[d+20>>2]=12;zb[H[d>>2]](a);H[a+336>>2]=g;b=c+1|0;c=e-1|0;if(!g){break f}}f=0;while(1){if(!c){if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}b=H[h>>2];c=H[h+4>>2]}j=I[b|0];i=c-1|0;if(i){d=b+1|0}else{if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}i=H[h+4>>2];d=H[h>>2]}c=H[a+216>>2];k=I[d|0];l=H[a+36>>2];i:{if((l|0)>0){e=N(l,88)+c|0;b=0;while(1){if((j|0)==H[c>>2]){break i}c=c+88|0;b=b+1|0;if((l|0)!=(b|0)){continue}break}c=e}e=H[a>>2];H[e+24>>2]=j;H[e+20>>2]=4;zb[H[H[a>>2]>>2]](a)}H[((f<<2)+a|0)+340>>2]=c;H[c+24>>2]=k&15;H[c+20>>2]=k>>>4;e=H[a>>2];H[e+24>>2]=j;H[e+28>>2]=H[c+20>>2];c=H[c+24>>2];H[e+20>>2]=106;H[e+32>>2]=c;zb[H[e+4>>2]](a,1);b=d+1|0;c=i-1|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}f=0}if(!c){if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}b=H[h>>2];c=H[h+4>>2]}H[a+408>>2]=I[b|0];e=c-1|0;if(e){c=b+1|0}else{if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}e=H[h+4>>2];c=H[h>>2]}H[a+412>>2]=I[c|0];g=e-1|0;if(g){d=c+1|0}else{if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}g=H[h+4>>2];d=H[h>>2]}c=I[d|0];H[a+420>>2]=c&15;H[a+416>>2]=c>>>4;e=H[a>>2];H[e+24>>2]=H[a+408>>2];H[e+28>>2]=H[a+412>>2];H[e+32>>2]=H[a+416>>2];H[e+36>>2]=H[a+420>>2];H[e+20>>2]=107;c=1;zb[H[e+4>>2]](a,1);H[H[a+460>>2]+20>>2]=0;if(!f){H[a+144>>2]=H[a+144>>2]+1}H[h+4>>2]=g-1;H[h>>2]=d+1;H[a+436>>2]=0;break b;case 216:c=H[a>>2];H[c+20>>2]=87;zb[H[c+4>>2]](a,1);H[a+436>>2]=0;c=2;break b;case 203:d=H[a+24>>2];c=H[d+4>>2];if(!c){if(!(zb[H[d+12>>2]](a)|0)){c=0;break b}c=H[d+4>>2]}f=H[d>>2];g=I[f|0];b=c-1|0;if(b){c=f+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){c=0;break b}b=H[d+4>>2];c=H[d>>2]}e=c+1|0;b=b-1|0;f=I[c|0]|g<<8;c=f-2|0;if(f>>>0>=3){while(1){f=c;if(!b){if(!(zb[H[d+12>>2]](a)|0)){c=0;break b}b=H[d+4>>2];e=H[d>>2]}g=I[e|0];i=b-1|0;if(i){c=e+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){c=0;break b}i=H[d+4>>2];c=H[d>>2]}e=I[c|0];b=H[a>>2];H[b+24>>2]=g;H[b+20>>2]=81;H[H[a>>2]+28>>2]=e;zb[H[H[a>>2]+4>>2]](a,1);j:{k:{l:{if(g>>>0>=32){b=H[a>>2];H[b+24>>2]=g;H[b+20>>2]=29;zb[H[H[a>>2]>>2]](a);break l}if(g>>>0<16){break k}}F[(a+g|0)+248|0]=e;break j}b=a+g|0;g=e>>>4|0;F[b+248|0]=g;h=b;b=e&15;F[h+232|0]=b;if(b>>>0<=g>>>0){break j}b=H[a>>2];H[b+24>>2]=e;H[b+20>>2]=30;zb[H[H[a>>2]>>2]](a)}e=c+1|0;b=i-1|0;c=f-2|0;if((f|0)>2){continue}break}}if(c){c=H[a>>2];H[c+20>>2]=12;zb[H[c>>2]](a)}H[d+4>>2]=b;H[d>>2]=e;break a;case 195:d=H[a+24>>2];c=H[d+4>>2];if(!c){if(!(zb[H[d+12>>2]](a)|0)){break d}c=H[d+4>>2]}f=H[d>>2];e=I[f|0];c=c-1|0;if(c){f=f+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}c=H[d+4>>2];f=H[d>>2]}b=f+1|0;c=c-1|0;e=I[f|0]|e<<8;f=e-2|0;if(e>>>0>=19){while(1){if(!c){if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d>>2];c=H[d+4>>2]}e=H[a>>2];g=I[b|0];H[e+24>>2]=g;H[e+20>>2]=82;zb[H[H[a>>2]+4>>2]](a,1);e=c-1|0;if(e){c=b+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}e=H[d+4>>2];c=H[d>>2]}i=I[c|0];b=e-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}j=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}k=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}l=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}n=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}o=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}p=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}q=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}r=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}s=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}t=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}u=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}v=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}w=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d+4>>2];c=H[d>>2]}x=I[c|0];e=b-1|0;if(e){c=c+1|0}else{if(!(zb[H[d+12>>2]](a)|0)){break d}e=H[d+4>>2];c=H[d>>2]}y=I[c|0];b=H[a>>2];H[b+24>>2]=i;H[b+20>>2]=88;H[b+52>>2]=q;H[b+48>>2]=p;H[b+44>>2]=o;H[b+40>>2]=n;H[b+36>>2]=l;H[b+32>>2]=k;H[b+28>>2]=j;zb[H[b+4>>2]](a,2);b=H[a>>2];H[b+24>>2]=r;H[b+20>>2]=88;H[b+52>>2]=y;H[b+48>>2]=x;H[b+44>>2]=w;H[b+40>>2]=v;H[b+36>>2]=u;H[b+32>>2]=t;H[b+28>>2]=s;zb[H[b+4>>2]](a,2);h=((((((((((((l+(k+(j+i|0)|0)|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=f-17|0;if(!(h>>>0<=256&(f|0)>=(h|0))){b=H[a>>2];H[b+20>>2]=9;zb[H[b>>2]](a)}b=c+1|0;c=e-1|0;e=0;if(h){while(1){if(!c){if(!(zb[H[d+12>>2]](a)|0)){break d}b=H[d>>2];c=H[d+4>>2]}F[e+m|0]=I[b|0];b=b+1|0;c=c-1|0;e=e+1|0;if(h>>>0>e>>>0){continue}break}}e=g-16|0;A=g&16;z=A?((e<<2)+a|0)+196|0:((g<<2)+a|0)+180|0;e=A?e:g;if(e>>>0>=4){g=H[a>>2];H[g+24>>2]=e;H[g+20>>2]=31;zb[H[H[a>>2]>>2]](a)}f=f-h|0;e=H[z>>2];if(!e){e=zb[H[H[a+4>>2]>>2]](a,0,280)|0;H[e+276>>2]=0;H[z>>2]=e}F[e+16|0]=y;F[e+15|0]=x;F[e+14|0]=w;F[e+13|0]=v;F[e+12|0]=u;F[e+11|0]=t;F[e+10|0]=s;F[e+9|0]=r;F[e+8|0]=q;F[e+7|0]=p;F[e+6|0]=o;F[e+5|0]=n;F[e+4|0]=l;F[e+3|0]=k;F[e+2|0]=j;F[e+1|0]=i;F[e|0]=0;Ob(H[z>>2]+17|0,m,256);if((f|0)>16){continue}break}}if(f){f=H[a>>2];H[f+20>>2]=12;zb[H[f>>2]](a)}H[d+4>>2]=c;H[d>>2]=b;break a;case 218:h=H[a+24>>2];c=H[h+4>>2];if(!c){if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}c=H[h+4>>2]}f=H[h>>2];d=I[f|0];b=c-1|0;if(b){c=f+1|0}else{if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}b=H[h+4>>2];c=H[h>>2]}f=c+1|0;g=b-1|0;d=I[c|0]|d<<8;c=d-2|0;if(d>>>0>=3){while(1){if(!g){if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}g=H[h+4>>2];f=H[h>>2]}j=I[f|0];d=H[a>>2];H[d+20>>2]=83;e=d;d=j&15;H[e+24>>2]=d;H[H[a>>2]+28>>2]=j>>>4;zb[H[H[a>>2]+4>>2]](a,1);if(d>>>0>=4){e=H[a>>2];H[e+24>>2]=d;H[e+20>>2]=32;zb[H[H[a>>2]>>2]](a)}d=(d<<2)+a|0;b=H[d+164>>2];if(!b){b=zb[H[H[a+4>>2]>>2]](a,0,132)|0;H[b+128>>2]=0;H[d+164>>2]=b}e=c-1|0;m:{n:{o:{k=j>>>0<16;p:{if(!k){if(c>>>0>128){break o}G[b+120>>1]=1;G[b+122>>1]=1;G[b+124>>1]=1;G[b+126>>1]=1;G[b+112>>1]=1;G[b+114>>1]=1;G[b+116>>1]=1;G[b+118>>1]=1;G[b+104>>1]=1;G[b+106>>1]=1;G[b+108>>1]=1;G[b+110>>1]=1;G[b+96>>1]=1;G[b+98>>1]=1;G[b+100>>1]=1;G[b+102>>1]=1;G[b+88>>1]=1;G[b+90>>1]=1;G[b+92>>1]=1;G[b+94>>1]=1;G[b+80>>1]=1;G[b+82>>1]=1;G[b+84>>1]=1;G[b+86>>1]=1;G[b+72>>1]=1;G[b+74>>1]=1;G[b+76>>1]=1;G[b+78>>1]=1;G[b+64>>1]=1;G[b+66>>1]=1;G[b+68>>1]=1;G[b+70>>1]=1;G[b+56>>1]=1;G[b+58>>1]=1;G[b+60>>1]=1;G[b+62>>1]=1;G[b+48>>1]=1;G[b+50>>1]=1;G[b+52>>1]=1;G[b+54>>1]=1;G[b+40>>1]=1;G[b+42>>1]=1;G[b+44>>1]=1;G[b+46>>1]=1;G[b+32>>1]=1;G[b+34>>1]=1;G[b+36>>1]=1;G[b+38>>1]=1;G[b+24>>1]=1;G[b+26>>1]=1;G[b+28>>1]=1;G[b+30>>1]=1;G[b+16>>1]=1;G[b+18>>1]=1;G[b+20>>1]=1;G[b+22>>1]=1;G[b+8>>1]=1;G[b+10>>1]=1;G[b+12>>1]=1;G[b+14>>1]=1;G[b>>1]=1;G[b+2>>1]=1;G[b+4>>1]=1;G[b+6>>1]=1;c=e>>>1|0;break p}if(c>>>0>64){break o}G[b+120>>1]=1;G[b+122>>1]=1;G[b+124>>1]=1;G[b+126>>1]=1;G[b+112>>1]=1;G[b+114>>1]=1;G[b+116>>1]=1;G[b+118>>1]=1;G[b+104>>1]=1;G[b+106>>1]=1;G[b+108>>1]=1;G[b+110>>1]=1;G[b+96>>1]=1;G[b+98>>1]=1;G[b+100>>1]=1;G[b+102>>1]=1;G[b+88>>1]=1;G[b+90>>1]=1;G[b+92>>1]=1;G[b+94>>1]=1;G[b+80>>1]=1;G[b+82>>1]=1;G[b+84>>1]=1;G[b+86>>1]=1;G[b+72>>1]=1;G[b+74>>1]=1;G[b+76>>1]=1;G[b+78>>1]=1;G[b+64>>1]=1;G[b+66>>1]=1;G[b+68>>1]=1;G[b+70>>1]=1;G[b+56>>1]=1;G[b+58>>1]=1;G[b+60>>1]=1;G[b+62>>1]=1;G[b+48>>1]=1;G[b+50>>1]=1;G[b+52>>1]=1;G[b+54>>1]=1;G[b+40>>1]=1;G[b+42>>1]=1;G[b+44>>1]=1;G[b+46>>1]=1;G[b+32>>1]=1;G[b+34>>1]=1;G[b+36>>1]=1;G[b+38>>1]=1;G[b+24>>1]=1;G[b+26>>1]=1;G[b+28>>1]=1;G[b+30>>1]=1;G[b+16>>1]=1;G[b+18>>1]=1;G[b+20>>1]=1;G[b+22>>1]=1;G[b+8>>1]=1;G[b+10>>1]=1;G[b+12>>1]=1;G[b+14>>1]=1;G[b>>1]=1;G[b+2>>1]=1;G[b+4>>1]=1;G[b+6>>1]=1;c=e}i=255568;q:{r:{s:{t:{u:{v:{w:{d=c;switch(c-4|0){case 0:break r;case 45:break s;case 32:break t;case 21:break u;case 12:break v;case 5:break w;default:break q}}i=255456;break r}i=255328;break r}i=255152;break r}i=254944;break r}i=254672}g=g-1|0;f=f+1|0;break n}g=g-1|0;i=254352;f=f+1|0;if(d){break n}d=0;break m}g=g-1|0;d=64;i=254352;f=f+1|0}c=0;if(j>>>0<=15){while(1){if(!g){if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}g=H[h+4>>2];f=H[h>>2]}G[(H[(c<<2)+i>>2]<<1)+b>>1]=I[f|0];f=f+1|0;g=g-1|0;c=c+1|0;if((d|0)!=(c|0)){continue}break m}}while(1){if(!g){if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}g=H[h+4>>2];f=H[h>>2]}j=I[f|0];g=g-1|0;if(g){f=f+1|0}else{if(!(zb[H[h+12>>2]](a)|0)){c=0;break b}g=H[h+4>>2];f=H[h>>2]}G[(H[(c<<2)+i>>2]<<1)+b>>1]=I[f|0]|j<<8;f=f+1|0;g=g-1|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}i=0;x:{c=H[a>>2];if(H[c+104>>2]<2){break x}while(1){j=i<<1;H[c+24>>2]=J[j+b>>1];H[c+28>>2]=J[(j|2)+b>>1];H[c+32>>2]=J[(j|4)+b>>1];H[c+36>>2]=J[(j|6)+b>>1];H[c+40>>2]=J[(j|8)+b>>1];H[c+44>>2]=J[(j|10)+b>>1];H[c+48>>2]=J[(j|12)+b>>1];j=J[(j|14)+b>>1];H[c+20>>2]=95;H[c+52>>2]=j;zb[H[c+4>>2]](a,2);if(i>>>0>55){break x}i=i+8|0;c=H[a>>2];continue}}c=e-((k?0:d)+d|0)|0;if((c|0)>0){continue}break}}if(c){c=H[a>>2];H[c+20>>2]=12;zb[H[c>>2]](a)}H[h+4>>2]=g;H[h>>2]=f;break a;case 220:f=H[a+24>>2];b=H[f+4>>2];if(!b){if(!(zb[H[f+12>>2]](a)|0)){c=0;break b}b=H[f+4>>2]}c=H[f>>2];d=I[c|0];b=b-1|0;if(b){c=c+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){c=0;break b}b=H[f+4>>2];c=H[f>>2]}b=b-1|0;if((I[c|0]|d<<8)!=4){d=H[a>>2];H[d+20>>2]=12;zb[H[d>>2]](a)}if(b){c=c+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){c=0;break b}b=H[f+4>>2];c=H[f>>2]}d=I[c|0];g=b-1|0;if(g){c=c+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){c=0;break b}g=H[f+4>>2];c=H[f>>2]}e=I[c|0];b=H[a>>2];H[b+20>>2]=84;d=e|d<<8;H[b+24>>2]=d;zb[H[H[a>>2]+4>>2]](a,1);H[a+280>>2]=d;H[f+4>>2]=g-1;H[f>>2]=c+1;break a;case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:if(zb[H[(H[a+460>>2]+(c<<2)|0)-864>>2]](a)|0){break a}c=0;break b;case 253:if(zb[H[H[a+460>>2]+28>>2]](a)|0){break a}c=0;break b;case 0:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:f=H[a>>2];H[f+24>>2]=c;H[f+20>>2]=94;zb[H[H[a>>2]+4>>2]](a,1);break a;case 219:c=H[a+24>>2];b=H[c+4>>2];if(!b){if(!(zb[H[c+12>>2]](a)|0)){c=0;break b}b=H[c+4>>2]}f=H[c>>2];d=I[f|0];e=b-1|0;if(e){f=f+1|0}else{if(!(zb[H[c+12>>2]](a)|0)){c=0;break b}e=H[c+4>>2];f=H[c>>2]}b=I[f|0];g=H[a>>2];H[g+20>>2]=93;H[g+24>>2]=H[a+436>>2];d=b|d<<8;b=d-2|0;H[H[a>>2]+28>>2]=b;zb[H[H[a>>2]+4>>2]](a,1);H[c+4>>2]=e-1;H[c>>2]=f+1;if(d>>>0<3){break a}zb[H[H[a+24>>2]+16>>2]](a,b);break a;default:f=H[a>>2];H[f+24>>2]=c;H[f+20>>2]=70;zb[H[H[a>>2]>>2]](a);break a;case 191:break e}}c=0;if(Wk(a,1,0,0)){break a}break b}c=0}xb=m+256|0;return c|0}c=0;H[a+436>>2]=0;continue}}function _f(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;c=-2;a:{b:{c:{d:{if(!H[a+36>>2]|(!a|!H[a+32>>2])){break d}d=H[a+28>>2];if(!d|H[d>>2]!=(a|0)){break d}e:{f:{e=H[d+4>>2];switch(e-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break d;case 0:case 12:case 16:case 34:case 46:case 56:break e;default:break f}}if((e|0)==666){break e}if((e|0)!=42){break d}}if(b>>>0>5){break d}g:{h:{if(!H[a+12>>2]){break h}f=H[a+4>>2];if(H[a>>2]?0:f){break h}if((b|0)==4|(e|0)!=666){break g}}H[a+24>>2]=H[61284];return-2}if(!H[a+16>>2]){break b}c=H[d+40>>2];H[d+40>>2]=b;i:{if(H[d+20>>2]){ue(d);h=H[d+20>>2];e=H[a+16>>2];c=e>>>0>h>>>0?h:e;j:{if(!c){break j}Ob(H[a+12>>2],H[d+16>>2],c);H[a+12>>2]=c+H[a+12>>2];H[d+16>>2]=c+H[d+16>>2];H[a+20>>2]=c+H[a+20>>2];e=H[a+16>>2]-c|0;H[a+16>>2]=e;f=H[d+20>>2];h=f-c|0;H[d+20>>2]=h;if((c|0)!=(f|0)){break j}H[d+16>>2]=H[d+8>>2]}if(e){e=H[d+4>>2];break i}break a}if((b|0)==4|f|((b<<1)+(b>>>0>4?-9:0)|0)>((c<<1)+((c|0)>4?-9:0)|0)){break i}break b}k:{l:{m:{n:{if((e|0)!=42){if((e|0)!=666){break n}if(!H[a+4>>2]){break m}break b}f=(H[d+48>>2]<<12)-30720|0;c=0;o:{if(H[d+136>>2]>1){break o}e=H[d+132>>2];if((e|0)<2){break o}c=64;if(e>>>0<6){break o}c=(e|0)==6?128:192}H[d+20>>2]=h+1;c=c|f;c=H[d+108>>2]?c|32:c;F[H[d+8>>2]+h|0]=c>>>8;e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=(c|(c>>>0)%31)^31;if(H[d+108>>2]){c=H[a+48>>2];e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c>>>24;e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c>>>16;c=H[a+48>>2];e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c>>>8;e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c}m=a,n=Yg(0,0,0),H[m+48>>2]=n;H[d+4>>2]=113;Nj(a);if(H[d+20>>2]){break a}e=H[d+4>>2]}p:{q:{r:{s:{t:{u:{if((e|0)==57){m=a,n=yd(0,0,0),H[m+48>>2]=n;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=31;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=139;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=8;c=H[d+28>>2];if(c){break u}c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=0;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=0;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=0;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=0;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=0;c=2;e=H[d+132>>2];if((e|0)!=9){c=H[d+136>>2]>1?4:((e|0)<2)<<2}e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=3;H[d+4>>2]=113;Nj(a);if(H[d+20>>2]){break a}e=H[d+4>>2]}switch(e-69|0){case 34:break q;case 22:break r;case 4:break s;case 0:break t;default:break p}}e=H[c+36>>2];f=H[c+28>>2];g=H[c+16>>2];h=H[c+44>>2];i=H[c>>2];j=H[d+20>>2];H[d+20>>2]=j+1;c=2;F[j+H[d+8>>2]|0]=((h|0)!=0)<<1|(i|0)!=0|((g|0)!=0)<<2|((f|0)!=0)<<3|((e|0)!=0)<<4;e=H[H[d+28>>2]+4>>2];f=H[d+20>>2];H[d+20>>2]=f+1;F[f+H[d+8>>2]|0]=e;e=H[H[d+28>>2]+4>>2];f=H[d+20>>2];H[d+20>>2]=f+1;F[f+H[d+8>>2]|0]=e>>>8;e=J[H[d+28>>2]+6>>1];f=H[d+20>>2];H[d+20>>2]=f+1;F[f+H[d+8>>2]|0]=e;e=I[H[d+28>>2]+7|0];f=H[d+20>>2];H[d+20>>2]=f+1;F[f+H[d+8>>2]|0]=e;e=H[d+132>>2];if((e|0)!=9){c=H[d+136>>2]>1?4:((e|0)<2)<<2}e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c;c=H[H[d+28>>2]+12>>2];e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c;c=H[d+28>>2];if(H[c+16>>2]){c=H[c+20>>2];e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c;c=H[H[d+28>>2]+20>>2];e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c>>>8;c=H[d+28>>2]}if(H[c+44>>2]){m=a,n=yd(H[a+48>>2],H[d+8>>2],H[d+20>>2]),H[m+48>>2]=n}H[d+4>>2]=69;H[d+32>>2]=0}f=H[d+28>>2];e=H[f+16>>2];if(e){h=H[d+12>>2];c=H[d+20>>2];g=H[d+32>>2];f=J[f+20>>1]-g|0;if(h>>>0>>0){while(1){h=h-c|0;Ob(H[d+8>>2]+c|0,e+g|0,h);e=H[d+12>>2];H[d+20>>2]=e;if(!(!H[H[d+28>>2]+44>>2]|c>>>0>=e>>>0)){m=a,n=yd(H[a+48>>2],H[d+8>>2]+c|0,e-c|0),H[m+48>>2]=n}H[d+32>>2]=h+H[d+32>>2];c=H[a+28>>2];ue(c);e=H[c+20>>2];g=H[a+16>>2];e=e>>>0>>0?e:g;v:{if(!e){break v}Ob(H[a+12>>2],H[c+16>>2],e);H[a+12>>2]=e+H[a+12>>2];H[c+16>>2]=e+H[c+16>>2];H[a+20>>2]=e+H[a+20>>2];H[a+16>>2]=H[a+16>>2]-e;g=H[c+20>>2];H[c+20>>2]=g-e;if((e|0)!=(g|0)){break v}H[c+16>>2]=H[c+8>>2]}if(H[d+20>>2]){break a}g=H[d+32>>2];e=H[H[d+28>>2]+16>>2];c=0;f=f-h|0;h=H[d+12>>2];if(f>>>0>h>>>0){continue}break}}Ob(H[d+8>>2]+c|0,e+g|0,f);e=H[d+20>>2]+f|0;H[d+20>>2]=e;if(!(!H[H[d+28>>2]+44>>2]|c>>>0>=e>>>0)){m=a,n=yd(H[a+48>>2],H[d+8>>2]+c|0,e-c|0),H[m+48>>2]=n}H[d+32>>2]=0}H[d+4>>2]=73}if(H[H[d+28>>2]+28>>2]){c=H[d+20>>2];f=c;while(1){w:{if(H[d+12>>2]!=(c|0)){break w}if(!(!H[H[d+28>>2]+44>>2]|c>>>0<=f>>>0)){m=a,n=yd(H[a+48>>2],H[d+8>>2]+f|0,c-f|0),H[m+48>>2]=n}c=H[a+28>>2];ue(c);e=H[c+20>>2];f=H[a+16>>2];e=e>>>0>>0?e:f;x:{if(!e){break x}Ob(H[a+12>>2],H[c+16>>2],e);H[a+12>>2]=e+H[a+12>>2];H[c+16>>2]=e+H[c+16>>2];H[a+20>>2]=e+H[a+20>>2];H[a+16>>2]=H[a+16>>2]-e;f=H[c+20>>2];H[c+20>>2]=f-e;if((e|0)!=(f|0)){break x}H[c+16>>2]=H[c+8>>2]}c=0;f=0;if(!H[d+20>>2]){break w}break a}e=H[H[d+28>>2]+28>>2];g=H[d+32>>2];H[d+32>>2]=g+1;e=I[e+g|0];H[d+20>>2]=c+1;F[H[d+8>>2]+c|0]=e;if(e){c=H[d+20>>2];continue}break}y:{if(!H[H[d+28>>2]+44>>2]){break y}c=H[d+20>>2];if(c>>>0<=f>>>0){break y}m=a,n=yd(H[a+48>>2],H[d+8>>2]+f|0,c-f|0),H[m+48>>2]=n}H[d+32>>2]=0}H[d+4>>2]=91}z:{if(!H[H[d+28>>2]+36>>2]){break z}c=H[d+20>>2];f=c;while(1){A:{if(H[d+12>>2]!=(c|0)){break A}if(!(!H[H[d+28>>2]+44>>2]|c>>>0<=f>>>0)){m=a,n=yd(H[a+48>>2],H[d+8>>2]+f|0,c-f|0),H[m+48>>2]=n}c=H[a+28>>2];ue(c);e=H[c+20>>2];f=H[a+16>>2];e=e>>>0>>0?e:f;B:{if(!e){break B}Ob(H[a+12>>2],H[c+16>>2],e);H[a+12>>2]=e+H[a+12>>2];H[c+16>>2]=e+H[c+16>>2];H[a+20>>2]=e+H[a+20>>2];H[a+16>>2]=H[a+16>>2]-e;f=H[c+20>>2];H[c+20>>2]=f-e;if((e|0)!=(f|0)){break B}H[c+16>>2]=H[c+8>>2]}c=0;f=0;if(!H[d+20>>2]){break A}break a}e=H[H[d+28>>2]+36>>2];g=H[d+32>>2];H[d+32>>2]=g+1;e=I[e+g|0];H[d+20>>2]=c+1;F[H[d+8>>2]+c|0]=e;if(e){c=H[d+20>>2];continue}break}if(!H[H[d+28>>2]+44>>2]){break z}c=H[d+20>>2];if(c>>>0<=f>>>0){break z}m=a,n=yd(H[a+48>>2],H[d+8>>2]+f|0,c-f|0),H[m+48>>2]=n}H[d+4>>2]=103}if(H[H[d+28>>2]+44>>2]){c=H[d+20>>2];if(K[d+12>>2]>>0){Nj(a);if(H[d+20>>2]){break c}c=0}e=H[a+48>>2];H[d+20>>2]=c+1;F[H[d+8>>2]+c|0]=e;c=H[a+48>>2];e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c>>>8;m=a,n=yd(0,0,0),H[m+48>>2]=n}H[d+4>>2]=113;Nj(a);if(!H[d+20>>2]){break p}break a}if(H[a+4>>2]){break l}}if(H[d+116>>2]){break l}if(!b|H[d+4>>2]==666){break k}}c=H[d+132>>2];C:{if(!c){c=aE(d,b);break C}D:{switch(H[d+136>>2]-2|0){case 0:E:{F:{while(1){G:{if(H[d+116>>2]){break G}Bn(d);if(H[d+116>>2]){break G}if(b){break F}c=0;break E}H[d+96>>2]=0;c=I[H[d+56>>2]+H[d+108>>2]|0];e=H[d+5792>>2];G[H[d+5796>>2]+(e<<1)>>1]=0;H[d+5792>>2]=e+1;F[e+H[d+5784>>2]|0]=c;c=(c<<2)+d|0;G[c+148>>1]=J[c+148>>1]+1;H[d+116>>2]=H[d+116>>2]-1;f=H[d+108>>2]+1|0;H[d+108>>2]=f;if(H[d+5792>>2]!=(H[d+5788>>2]-1|0)){continue}c=H[d+92>>2];if((c|0)>=0){e=c+H[d+56>>2]|0}else{e=0}qf(d,e,f-c|0,0);H[d+92>>2]=H[d+108>>2];c=H[d>>2];e=H[c+28>>2];ue(e);f=H[e+20>>2];g=H[c+16>>2];f=f>>>0>>0?f:g;H:{if(!f){break H}Ob(H[c+12>>2],H[e+16>>2],f);H[c+12>>2]=f+H[c+12>>2];H[e+16>>2]=f+H[e+16>>2];H[c+20>>2]=f+H[c+20>>2];H[c+16>>2]=H[c+16>>2]-f;c=H[e+20>>2];H[e+20>>2]=c-f;if((c|0)!=(f|0)){break H}H[e+16>>2]=H[e+8>>2]}if(H[H[d>>2]+16>>2]){continue}break}c=0;break E}H[d+5812>>2]=0;if((b|0)==4){c=H[d+92>>2];if((c|0)>=0){e=c+H[d+56>>2]|0}else{e=0}qf(d,e,H[d+108>>2]-c|0,1);H[d+92>>2]=H[d+108>>2];c=H[d>>2];e=H[c+28>>2];ue(e);f=H[e+20>>2];g=H[c+16>>2];f=f>>>0>>0?f:g;I:{if(!f){break I}Ob(H[c+12>>2],H[e+16>>2],f);H[c+12>>2]=f+H[c+12>>2];H[e+16>>2]=f+H[e+16>>2];H[c+20>>2]=f+H[c+20>>2];H[c+16>>2]=H[c+16>>2]-f;c=H[e+20>>2];H[e+20>>2]=c-f;if((c|0)!=(f|0)){break I}H[e+16>>2]=H[e+8>>2]}c=H[H[d>>2]+16>>2]?3:2;break E}J:{if(!H[d+5792>>2]){break J}c=H[d+92>>2];if((c|0)>=0){e=c+H[d+56>>2]|0}else{e=0}qf(d,e,H[d+108>>2]-c|0,0);H[d+92>>2]=H[d+108>>2];c=H[d>>2];e=H[c+28>>2];ue(e);f=H[e+20>>2];g=H[c+16>>2];f=f>>>0>>0?f:g;K:{if(!f){break K}Ob(H[c+12>>2],H[e+16>>2],f);H[c+12>>2]=f+H[c+12>>2];H[e+16>>2]=f+H[e+16>>2];H[c+20>>2]=f+H[c+20>>2];H[c+16>>2]=H[c+16>>2]-f;c=H[e+20>>2];H[e+20>>2]=c-f;if((c|0)!=(f|0)){break K}H[e+16>>2]=H[e+8>>2]}if(H[H[d>>2]+16>>2]){break J}c=0;break E}c=1}break C;case 1:L:{while(1){M:{N:{O:{g=H[d+116>>2];if(g>>>0>=259){H[d+96>>2]=0;break O}Bn(d);g=H[d+116>>2];c=0;if(!(g>>>0>=259|b)){break L}if(g){H[d+96>>2]=0;if(g>>>0>2){break O}j=H[d+108>>2];break N}H[d+5812>>2]=0;if((b|0)==4){c=H[d+92>>2];if((c|0)>=0){e=c+H[d+56>>2]|0}else{e=0}qf(d,e,H[d+108>>2]-c|0,1);H[d+92>>2]=H[d+108>>2];c=H[d>>2];e=H[c+28>>2];ue(e);f=H[e+20>>2];g=H[c+16>>2];f=f>>>0>>0?f:g;P:{if(!f){break P}Ob(H[c+12>>2],H[e+16>>2],f);H[c+12>>2]=f+H[c+12>>2];H[e+16>>2]=f+H[e+16>>2];H[c+20>>2]=f+H[c+20>>2];H[c+16>>2]=H[c+16>>2]-f;c=H[e+20>>2];H[e+20>>2]=c-f;if((c|0)!=(f|0)){break P}H[e+16>>2]=H[e+8>>2]}c=H[H[d>>2]+16>>2]?3:2;break L}Q:{if(!H[d+5792>>2]){break Q}c=H[d+92>>2];if((c|0)>=0){e=c+H[d+56>>2]|0}else{e=0}qf(d,e,H[d+108>>2]-c|0,0);H[d+92>>2]=H[d+108>>2];c=H[d>>2];e=H[c+28>>2];ue(e);f=H[e+20>>2];g=H[c+16>>2];f=f>>>0>>0?f:g;R:{if(!f){break R}Ob(H[c+12>>2],H[e+16>>2],f);H[c+12>>2]=f+H[c+12>>2];H[e+16>>2]=f+H[e+16>>2];H[c+20>>2]=f+H[c+20>>2];H[c+16>>2]=H[c+16>>2]-f;c=H[e+20>>2];H[e+20>>2]=c-f;if((c|0)!=(f|0)){break R}H[e+16>>2]=H[e+8>>2]}if(H[H[d>>2]+16>>2]){break Q}c=0;break L}c=1;break L}j=H[d+108>>2];if(!j){j=0;break N}k=H[d+56>>2]+j|0;c=k-1|0;h=I[c|0];if((h|0)!=I[k|0]|(h|0)!=I[c+2|0]|(h|0)!=I[c+3|0]){break N}l=k+258|0;c=-1;S:{T:{U:{V:{W:{X:{while(1){f=c+k|0;if((h|0)==I[f+4|0]){if((h|0)!=I[f+5|0]){break X}if((h|0)!=I[f+6|0]){break W}if((h|0)!=I[f+7|0]){break V}e=c+8|0;i=e+k|0;if((h|0)!=I[i|0]){break S}if((h|0)!=I[f+9|0]){break U}if((h|0)!=I[f+10|0]){break T}i=f+11|0;if((h|0)!=I[i|0]){break S}f=(c|0)<247;c=e;if(f){continue}break S}break}i=f+4|0;break S}i=f+5|0;break S}i=f+6|0;break S}i=f+7|0;break S}i=f+9|0;break S}i=f+10|0}c=(i-l|0)+258|0;c=c>>>0>>0?c:g;H[d+96>>2]=c;if(c>>>0<3){break N}e=H[d+5792>>2];G[H[d+5796>>2]+(e<<1)>>1]=1;H[d+5792>>2]=e+1;c=c-3|0;F[e+H[d+5784>>2]|0]=c;c=((I[(c&255)+242896|0]<<2)+d|0)+1176|0;G[c>>1]=J[c>>1]+1;c=((I[242384]<<2)+d|0)+2440|0;G[c>>1]=J[c>>1]+1;c=H[d+96>>2];H[d+96>>2]=0;H[d+116>>2]=H[d+116>>2]-c;g=c+H[d+108>>2]|0;H[d+108>>2]=g;break M}c=I[H[d+56>>2]+j|0];e=H[d+5792>>2];G[H[d+5796>>2]+(e<<1)>>1]=0;H[d+5792>>2]=e+1;F[e+H[d+5784>>2]|0]=c;c=(c<<2)+d|0;G[c+148>>1]=J[c+148>>1]+1;H[d+116>>2]=H[d+116>>2]-1;g=H[d+108>>2]+1|0;H[d+108>>2]=g}if(H[d+5792>>2]!=(H[d+5788>>2]-1|0)){continue}c=H[d+92>>2];if((c|0)>=0){e=c+H[d+56>>2]|0}else{e=0}qf(d,e,g-c|0,0);H[d+92>>2]=H[d+108>>2];c=H[d>>2];e=H[c+28>>2];ue(e);f=H[e+20>>2];g=H[c+16>>2];f=f>>>0>>0?f:g;Y:{if(!f){break Y}Ob(H[c+12>>2],H[e+16>>2],f);H[c+12>>2]=f+H[c+12>>2];H[e+16>>2]=f+H[e+16>>2];H[c+20>>2]=f+H[c+20>>2];H[c+16>>2]=H[c+16>>2]-f;c=H[e+20>>2];H[e+20>>2]=c-f;if((c|0)!=(f|0)){break Y}H[e+16>>2]=H[e+8>>2]}if(H[H[d>>2]+16>>2]){continue}break}c=0}break C;default:break D}}c=zb[H[N(c,12)+237944>>2]](d,b)|0}if((c&-2)==2){H[d+4>>2]=666}if(!(c&-3)){c=0;if(H[a+16>>2]){break d}break a}if((c|0)!=1){break k}Z:{_:{switch(b-1|0){case 0:e=H[d+5820>>2];c=J[d+5816>>1]|2<>1]=c;$:{if((e|0)>=14){e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=I[d+5817|0];e=H[d+5820>>2];c=2>>>16-e|0;G[d+5816>>1]=c;e=e-13|0;break $}e=e+3|0}H[d+5820>>2]=e;aa:{if((e|0)>=10){e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=I[d+5817|0];c=0;G[d+5816>>1]=0;e=H[d+5820>>2]-9|0;break aa}e=e+7|0}H[d+5820>>2]=e;ba:{ca:{if((e|0)==16){e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=I[d+5817|0];G[d+5816>>1]=0;c=0;break ca}if((e|0)<8){break ba}e=H[d+20>>2];H[d+20>>2]=e+1;F[e+H[d+8>>2]|0]=c;G[d+5816>>1]=I[d+5817|0];c=H[d+5820>>2]-8|0}H[d+5820>>2]=c}break Z;case 4:break Z;default:break _}}An(d,0,0,0);if((b|0)!=3){break Z}c=H[d+68>>2];e=(H[d+76>>2]<<1)-2|0;G[c+e>>1]=0;Nb(c,0,e);if(H[d+116>>2]){break Z}H[d+5812>>2]=0;H[d+92>>2]=0;H[d+108>>2]=0}Nj(a);if(H[a+16>>2]){break k}break a}c=0;if((b|0)!=4){break d}c=1;e=H[d+24>>2];if((e|0)<=0){break d}b=H[a+48>>2];da:{if((e|0)==2){c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b;b=H[a+48>>2];c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b>>>8;b=J[a+50>>1];c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b;b=I[a+51|0];c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b;b=H[a+8>>2];c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b;b=H[a+8>>2];c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b>>>8;b=J[a+10>>1];c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b;b=I[a+11|0];break da}c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b>>>24;c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b>>>16;b=H[a+48>>2];c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b>>>8}c=H[d+20>>2];H[d+20>>2]=c+1;F[c+H[d+8>>2]|0]=b;Nj(a);a=H[d+24>>2];if((a|0)>0){H[d+24>>2]=0-a}c=!H[d+20>>2]}return c}H[d+40>>2]=-1;return 0}H[a+24>>2]=H[61287];return-5}H[d+40>>2]=-1;return 0}function vla(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;d=xb-144|0;xb=d;H[a+88>>2]=0;H[a+92>>2]=0;H[a+104>>2]=0;H[a+108>>2]=0;H[a+96>>2]=0;H[a+100>>2]=0;H[a+112>>2]=-1;H[a+116>>2]=-1;H[a+120>>2]=-1;H[a+124>>2]=-1;H[a+128>>2]=-1;H[a+132>>2]=-1;H[a+136>>2]=-1;H[a+140>>2]=-1;H[a+144>>2]=-1;H[a+148>>2]=-1;H[a+152>>2]=-1;H[a+168>>2]=0;H[a+172>>2]=0;H[a+160>>2]=0;H[a+164>>2]=8720;H[a+176>>2]=0;H[a+180>>2]=0;H[a+184>>2]=0;H[a+188>>2]=0;o=a+192|0;c=o;H[c>>2]=0;H[c+4>>2]=0;H[a+200>>2]=0;H[a+204>>2]=0;H[a+208>>2]=0;H[a+212>>2]=0;if(!I[a+44|0]){c=kd(b);F[a+44|0]=1;H[a+40>>2]=c}b=dd(b,1128678944);if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}i=a+4|0;F[i+24|0]=0;H[i+32>>2]=b;h=H[b+12>>2];H[i+4>>2]=h;j=H[b+16>>2];H[i+8>>2]=j+h;H[i+28>>2]=0;if(j>>>0>67108862){c=1073741823}else{c=j<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}H[i+12>>2]=c;H[i+20>>2]=0;H[i>>2]=0;a:{if(!h){Wb(b);H[i+32>>2]=0;H[i+4>>2]=0;H[i+8>>2]=0;break a}b:{if((j|0)>=4){H[i+12>>2]=c-4;c=I[h|0];Wb(b);H[i+32>>2]=0;H[i+4>>2]=0;H[i+8>>2]=0;if((c|0)!=1){break b}if(H[b+4>>2]){H[b+4>>2]=0}break a}Wb(b);H[i+32>>2]=0;H[i+4>>2]=0;H[i+8>>2]=0}Wb(b);b=163632}H[a>>2]=b;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}F[a+28|0]=0;H[a+36>>2]=b;c=H[b+12>>2];H[a+8>>2]=c;b=H[b+16>>2];H[a+12>>2]=b+c;H[a+4>>2]=0;H[a+32>>2]=0;if(b>>>0>67108862){b=1073741823}else{b=b<<6;b=b>>>0>16384?b:16384;b=b>>>0<1073741823?b:1073741823}H[a+16>>2]=b;H[a+24>>2]=0;c:{d:{e:{f:{b=H[a>>2];if(K[b+16>>2]>=4){m=H[b+12>>2];if((m|0)!=163632){break f}}Xe(a);break e}b=m+I[m+2|0]|0;H[a+56>>2]=b;g:{if((b|0)!=163632){if(bh(b,i)){break g}}Xe(a);break e}h=H[a+56>>2];b=0;h:{if((h|0)==163632){break h}c=I[h|0]|I[h+1|0]<<8;b=2;if(!c){break h}b=(c<<8|c>>>8)&65535;c=I[h+2|0];k=N(b+1|0,c);i:{if(!c){break i}j=c&3;b=(h+N(b,c)|0)+3|0;if(c-1>>>0<3){e=0}else{g=c&252;while(1){c=b;b=b+4|0;e=e+4|0;if((g|0)!=(e|0)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}if(!j){break i}while(1){e=I[b|0]|e<<8;b=b+1|0;f=f+1|0;if((j|0)!=(f|0)){continue}break}}b=(e+k|0)+2|0}b=b+h|0;H[a+60>>2]=b;j:{k:{if((b|0)==163632){break k}if(!bh(b,i)){break k}b=H[a+60>>2];if(I[b|0]|I[b+1|0]<<8){break j}}Xe(a);break e}$F(d+8|0,b,0);l:{m:{n:{b=H[d+12>>2];switch(b+1|0){case 1:break l;case 0:break m;default:break n}}c=H[d+8>>2];if(c>>>0>2]){break m}f=H[a+12>>2];if(f>>>0>>0|b>>>0>f-c>>>0){break m}b=H[a+16>>2]-b|0;H[a+16>>2]=b;if((b|0)>0){break l}}Xe(a);break e}b=a+88|0;H[d+104>>2]=0;H[d+108>>2]=0;H[d+96>>2]=H[d+16>>2];H[d+132>>2]=0;H[d+136>>2]=0;c=H[d+12>>2];H[d+88>>2]=H[d+8>>2];H[d+92>>2]=c;H[d+100>>2]=0;F[d+108|0]=0;c=Tb(4744);H[d+120>>2]=0;H[d+124>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;o:{if(!c){H[d+116>>2]=-1;break o}H[d+124>>2]=c;H[d+116>>2]=593;Nb(c,0,4104);H[d+120>>2]=513}F[d+128|0]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[a+152>>2]=-1;H[a+144>>2]=-1;H[a+148>>2]=-1;H[a+136>>2]=-1;H[a+140>>2]=-1;H[a+128>>2]=-1;H[a+132>>2]=-1;H[a+120>>2]=-1;H[a+124>>2]=-1;H[a+112>>2]=-1;H[a+116>>2]=-1;H[a+160>>2]=0;H[a+164>>2]=8720;H[a+176>>2]=0;H[a+180>>2]=0;H[a+184>>2]=0;H[a+188>>2]=0;H[a+168>>2]=0;H[a+172>>2]=0;H[197455]=0;b=da(703,d+88|0,b|0)|0;c=H[197455];H[197455]=0;p:{q:{r:{if((c|0)!=1){if(b){break q}H[197455]=0;ia(657,a|0);c=H[197455];H[197455]=0;if((c|0)!=1){break r}}break d}H[d+120>>2]=0;Kb(H[d+124>>2]);if(b){break p}break e}H[d+120>>2]=0;Kb(H[d+124>>2])}s:{b=H[a+172>>2];if(b>>>0<=2){H[a+52>>2]=163632;break s}b=b+m|0;H[a+52>>2]=b;if((b|0)!=163632){f=0;g=H[i+4>>2];t:{if(g>>>0>b>>>0){break t}k=H[i+8>>2];if(k>>>0<=b>>>0){break t}c=H[i+12>>2];h=c-1|0;H[i+12>>2]=h;if((h|0)<=0){break t}u:{v:{switch(I[b|0]){case 0:b=(b+(H[i+36>>2]<<1)|0)-1|0;if(b>>>0>>0|b>>>0>k>>>0|k-b>>>0<2){break t}b=c-3|0;H[i+12>>2]=b;f=(b|0)>0;break t;case 1:f=1;e=H[i+36>>2]-1|0;if(!e){break t}j=b+1|0;c=0;while(1){b=j+N(c,3)|0;if(b>>>0>>0|b>>>0>k>>>0|k-b>>>0<3){break u}h=h-3|0;H[i+12>>2]=h;if((h|0)<=0){break u}b=I[b+2|0];if(b>>>0>=e>>>0){break u}c=c+1|0;e=(b^-1)+e|0;if(e){continue}break};break t;case 2:break v;default:break t}}f=1;j=H[i+36>>2]-1|0;if(!j){break t}e=0;while(1){c=b+(e<<2)|0;f=c+1|0;if(f>>>0>>0|f>>>0>k>>>0|k-f>>>0<4){break u}h=h-4|0;H[i+12>>2]=h;if((h|0)<=0){break u}c=I[c+3|0]|I[c+4|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0>=j>>>0){break u}f=1;e=e+1|0;j=(c^-1)+j|0;if(j){continue}break}break t}f=0}if(f){break s}}Xe(a);break e}H[a+84>>2]=1;w:{x:{if(H[a+148>>2]!=-1){b=H[a+108>>2];b=b?b+m|0:163632;H[a+76>>2]=b;c=H[a+176>>2];H[a+80>>2]=c?c+m|0:163632;y:{z:{if((b|0)==163632){break z}if(!bh(b,i)){break z}b=H[a+80>>2];if((b|0)==163632){break z}c=H[a+76>>2];c=I[c|0]|I[c+1|0]<<8;e=(c<<8|c>>>8)&65535;c=0;k=H[i+4>>2];A:{if(k>>>0>b>>>0){break A}g=H[i+8>>2];if(g>>>0<=b>>>0){break A}n=H[i+12>>2];f=n-1|0;H[i+12>>2]=f;if((f|0)<=0){break A}B:{switch(I[b|0]){case 0:c=1;h=H[i+36>>2];if(!h){break A}j=1;l=b+1|0;if(!(l>>>0>>0|g>>>0<=l>>>0)){c=n-2|0;e=c&c>>31;C:{if((c|0)<=0){b=e;break C}b=f-h|0;f=0;D:{while(1){f=f+1|0;if((h|0)==(f|0)){break D}j=f+l|0;if(j>>>0>>0){b=c;break D}if(g>>>0<=j>>>0){b=c;break D}c=c-1|0;if((c|0)>0){continue}break}b=e}j=f>>>0>>0}H[i+12>>2]=b}c=!j;break A;case 3:break B;default:break A}}c=ZF(b+1|0,i,e)}if(c){break y}}Xe(a);break e}b=H[a+76>>2];b=I[b|0]|I[b+1|0]<<8;H[a+48>>2]=163632;H[a+84>>2]=(b<<8|b>>>8)&65535;b=a+48|0;if(H[a+148>>2]==-1){break x}if(H[a+52>>2]!=163632){break w}Xe(a);break e}H[a+80>>2]=163632;H[a+76>>2]=163632;H[a+48>>2]=163632;b=a+48|0}c=H[a+168>>2];if(c>>>0<2){break w}e=b;b=c+m|0;H[e>>2]=b;if((b|0)!=163632){E:{F:{h=H[i+4>>2];if(h>>>0>b>>>0){break F}c=H[i+8>>2];if(c>>>0<=b>>>0){break F}f=H[i+12>>2];e=f-1|0;H[i+12>>2]=e;if((e|0)<=0){break F}e=0;G:{H:{I:{J:{K:{g=I[b|0];switch(g&127){case 1:break J;case 0:break K;default:break G}}j=b+1|0;if(j>>>0>>0|c>>>0<=j>>>0){break F}f=f-2|0;H[i+12>>2]=f;if(!f){break F}j=I[b+1|0];if(!j){break H}k=b+2|0;if(k>>>0>>0|c>>>0>>0){break F}if(j>>>0<=c-k>>>0){break I}break F}e=b+1|0;if(e>>>0>>0|c>>>0<=e>>>0){break F}f=f-2|0;H[i+12>>2]=f;if(!f){break F}j=I[b+1|0];if(!j){break H}e=b+2|0;if(e>>>0>>0|c>>>0>>0){break F}k=c-e|0;e=j<<1;if(k>>>0>>0){break F}f=f-e|0;H[i+12>>2]=f;if((f|0)>0){break H}break F}f=f-j|0;H[i+12>>2]=f;if((f|0)<=0){break G}}e=1;j=g<<24>>24;if((j|0)>=0){break G}e=163632;L:{M:{switch(j&127){case 0:e=b+1|0;b=I[b+1|0];e=(b?e+b|0:163632)+1|0;break L;case 1:break M;default:break L}}e=I[b+1|0];e=(e?b+(e<<1)|0:163632)+2|0}if(e>>>0>>0|c>>>0<=e>>>0){break F}b=f-1|0;H[i+12>>2]=b;if(!b){break F}j=I[e|0];if(j){f=e+1|0;if(f>>>0>>0|c>>>0>>0){break F}e=c-f|0;c=N(j,3);if(e>>>0>>0){break F}b=b-c|0;H[i+12>>2]=b;e=0;if((b|0)<=0){break G}}e=1}break E}e=0}if(e){break w}}Xe(a);break e}b=H[a+60>>2];b=_F(b)+b|0;H[a+64>>2]=b;N:{if((b|0)!=163632){if(bh(b,i)){break N}}Xe(a);break e}b=H[a+64>>2];b=_F(b)+b|0;H[a+68>>2]=b;O:{if((b|0)==163632){break O}if(bh(b,i)){break O}Xe(a);break e}b=H[a+104>>2];b=b?b+m|0:163632;H[a+72>>2]=b;P:{if((b|0)!=163632){if(bh(b,i)){break P}}Xe(a);break e}b=H[a+72>>2];b=I[b|0]|I[b+1|0]<<8;b=(b<<8|b>>>8)&65535;H[a+216>>2]=b;if((b|0)!=H[a+40>>2]){Xe(a);break e}c=H[a+84>>2];h=a+204|0;b=H[h>>2];Q:{if((b|0)>=0){k=(c|0)>0?c:0;if(k>>>0>b>>>0){c=b;while(1){c=((c>>>1|0)+c|0)+8|0;if(k>>>0>=c>>>0){continue}break}R:{if(!(b>>>0>c>>>0|c>>>0>178956969)){f=0;j=0;e=Tb(N(c,24));if(e){l=H[h+4>>2];S:{if(!l){break S}b=0;if(l-1>>>0>=7){n=l&-8;while(1){g=e+N(b,24)|0;H[g>>2]=0;H[g+4>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;g=e+N(b|1,24)|0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;g=e+N(b|2,24)|0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;g=e+N(b|3,24)|0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;g=e+N(b|4,24)|0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;g=e+N(b|5,24)|0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;g=e+N(b|6,24)|0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;g=e+N(b|7,24)|0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;b=b+8|0;f=f+8|0;if((n|0)!=(f|0)){continue}break}}g=l&7;if(g){while(1){f=e+N(b,24)|0;H[f>>2]=0;H[f+4>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;b=b+1|0;j=j+1|0;if((g|0)!=(j|0)){continue}break}}if(!l){f=0;break S}j=0;while(1){f=N(j,24);b=f+e|0;f=f+H[h+8>>2]|0;H[b>>2]=H[f>>2];g=H[b+4>>2];H[b+4>>2]=H[f+4>>2];H[f+4>>2]=g;g=H[b+8>>2];H[b+8>>2]=H[f+8>>2];H[f+8>>2]=g;g=H[b+12>>2];H[b+12>>2]=H[f+12>>2];H[f+12>>2]=g;g=H[f+20>>2];H[b+16>>2]=H[f+16>>2];H[b+20>>2]=g;f=H[h+4>>2];j=j+1|0;if(f>>>0>j>>>0){continue}break}if(!f){f=0;break S}b=f;while(1){b=H[h+8>>2]+N(b,24)|0;H[b-16>>2]=0;j=b-12|0;Kb(H[j>>2]);H[j>>2]=0;b=b-20|0;H[b>>2]=0;H[b+4>>2]=0;b=H[h+4>>2]-1|0;H[h+4>>2]=b;if(b){continue}break}}H[h+4>>2]=f;Kb(H[h+8>>2])}if(e){break R}}H[h>>2]=-1;b=0;break Q}H[h>>2]=c;H[h+8>>2]=e}c=H[h+4>>2];T:{if(k>>>0>c>>>0){while(1){H[h+4>>2]=c+1;b=H[h+8>>2]+N(c,24)|0;H[b>>2]=0;H[b+4>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;c=H[h+4>>2];if(k>>>0>c>>>0){continue}break T}}if(c>>>0<=k>>>0){break T}while(1){b=H[h+8>>2]+N(c,24)|0;H[b-16>>2]=0;c=b-12|0;Kb(H[c>>2]);H[c>>2]=0;b=b-20|0;H[b>>2]=0;H[b+4>>2]=0;c=H[h+4>>2]-1|0;H[h+4>>2]=c;if(c>>>0>k>>>0){continue}break}}H[h+4>>2]=k;b=1}else{b=0}}if(b){U:{if(H[a+84>>2]){e=0;while(1){V:{if(K[a+208>>2]<=e>>>0){b=H[40913];H[196252]=H[40912];H[196253]=b;b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;b=784992;break V}b=H[a+212>>2]+N(e,24)|0}H[b>>2]=0;H[b+4>>2]=0;H[b+20>>2]=163632;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;e=e+1|0;b=H[a+84>>2];if(e>>>0>>0){continue}break}if(H[a+148>>2]==-1){break U}if(!b){break e}f=0;W:{while(1){b=d+72|0;$F(b,H[a+76>>2],f);if(!Mn(b,i)){Xe(a);break e}H[d+96>>2]=H[d+80>>2];b=H[d+76>>2];H[d+88>>2]=H[d+72>>2];H[d+92>>2]=b;F[d+108|0]=0;F[d+104|0]=0;H[d+100>>2]=0;b=Tb(4744);H[d+120>>2]=0;H[d+124>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;X:{if(!b){H[d+116>>2]=-1;break X}H[d+116>>2]=593;H[d+124>>2]=b;Nb(b,0,4104);H[d+120>>2]=513}H[197455]=0;F[d+128|0]=0;c=aa(704,o|0)|0;b=H[197455];H[197455]=0;Y:{Z:{_:{$:{if((b|0)==1){break $}b=H[40915];H[196254]=H[40914];H[196255]=b;b=H[40913];e=H[40912];H[196252]=e;H[196253]=b;h=H[40911];j=H[40910];H[196250]=j;H[196251]=h;k=H[40909];g=H[40908];H[196248]=g;H[196249]=k;if((c|0)!=784992){H[c>>2]=0;H[c+4>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+24>>2]=0;H[c+28>>2]=-1;H[197455]=0;l=da(705,d+88|0,c|0)|0;n=H[197455];H[197455]=0;if((n|0)==1){break $}if(l){break _}}H[197455]=0;ia(657,a|0);b=H[197455];H[197455]=0;e=1;if((b|0)!=1){break Z}}a=$()|0;_()|0;break W}aa:{if(K[a+208>>2]<=f>>>0){H[196252]=e;H[196253]=b;H[196250]=j;H[196251]=h;H[196248]=g;H[196249]=k;b=784992;break aa}b=H[a+212>>2]+N(f,24)|0}e=H[c+20>>2];c=H[c+16>>2];H[d+64>>2]=0;H[d+60>>2]=e;H[d+56>>2]=c+m;H[197455]=0;c=Mn(d+56|0,i);e=H[197455];H[197455]=0;ba:{if((e|0)!=1){if(c){break ba}H[197455]=0;ia(657,a|0);b=H[197455];H[197455]=0;e=1;if((b|0)!=1){break Z}}a=$()|0;_()|0;break W}H[d+16>>2]=H[d- -64>>2];c=H[d+60>>2];H[d+8>>2]=H[d+56>>2];H[d+12>>2]=c;F[d+28|0]=0;F[d+24|0]=0;H[d+20>>2]=0;c=Tb(4744);H[d+40>>2]=0;H[d+44>>2]=0;H[d+32>>2]=0;H[d+36>>2]=0;ca:{if(!c){H[d+36>>2]=-1;break ca}H[d+36>>2]=593;H[d+44>>2]=c;Nb(c,0,4104);H[d+40>>2]=513}F[d+48|0]=0;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[b+20>>2]=163632;H[197455]=0;c=da(707,d+8|0,b|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Y}da:{if(c){c=b;b=H[b+16>>2];b=b?b+H[d+56>>2]|0:163632;H[c+20>>2]=b;e=0;if((b|0)==163632){break da}H[197455]=0;b=bh(b,i);c=H[197455];H[197455]=0;if((c|0)==1){break Y}if(b){break da}}H[197455]=0;ia(657,a|0);b=H[197455];H[197455]=0;e=1;if((b|0)==1){break Y}}H[d+40>>2]=0;Kb(H[d+44>>2])}H[d+120>>2]=0;Kb(H[d+124>>2]);if(e){break e}f=f+1|0;if(f>>>0>=K[a+84>>2]){break e}continue}break}a=$()|0;_()|0;H[d+40>>2]=0;Kb(H[d+44>>2])}break c}if(H[a+148>>2]!=-1){break e}}ea:{if(!H[a+208>>2]){b=H[40913];H[196252]=H[40912];H[196253]=b;b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;b=784992;break ea}b=H[a+212>>2]}c=H[a+180>>2];f=H[a+184>>2];H[d+16>>2]=0;H[d+12>>2]=f;H[d+8>>2]=c+m;if(!Mn(d+8|0,i)){Xe(a);break e}H[d+96>>2]=H[d+16>>2];c=H[d+12>>2];H[d+88>>2]=H[d+8>>2];H[d+92>>2]=c;F[d+108|0]=0;F[d+104|0]=0;H[d+100>>2]=0;c=Tb(4744);H[d+120>>2]=0;H[d+124>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;fa:{if(!c){H[d+116>>2]=-1;break fa}H[d+116>>2]=593;H[d+124>>2]=c;Nb(c,0,4104);H[d+120>>2]=513}F[d+128|0]=0;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[b+20>>2]=163632;H[197455]=0;c=da(707,d+88|0,b|0)|0;f=H[197455];H[197455]=0;ga:{if((f|0)==1){break ga}ha:{if(c){c=b;b=H[b+16>>2];b=b?b+H[d+8>>2]|0:163632;H[c+20>>2]=b;if((b|0)==163632){break ha}H[197455]=0;b=bh(b,i);c=H[197455];H[197455]=0;if((c|0)==1){break ga}if(b){break ha}}H[197455]=0;ia(657,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break ga}}H[d+120>>2]=0;Kb(H[d+124>>2]);break e}break d}Xe(a)}xb=d+144|0;return}a=$()|0;_()|0}H[d+120>>2]=0;Kb(H[d+124>>2]);ea(a|0);X()}function tn(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,B=0,C=0,D=0,E=O(0);l=xb-48|0;xb=l;a:{if((g|0)>=5){F[a+60|0]=I[248313];b=I[248309]|I[248310]<<8|(I[248311]<<16|I[248312]<<24);c=I[248305]|I[248306]<<8|(I[248307]<<16|I[248308]<<24);F[a+52|0]=c;F[a+53|0]=c>>>8;F[a+54|0]=c>>>16;F[a+55|0]=c>>>24;F[a+56|0]=b;F[a+57|0]=b>>>8;F[a+58|0]=b>>>16;F[a+59|0]=b>>>24;b=I[248301]|I[248302]<<8|(I[248303]<<16|I[248304]<<24);c=I[248297]|I[248298]<<8|(I[248299]<<16|I[248300]<<24);F[a+44|0]=c;F[a+45|0]=c>>>8;F[a+46|0]=c>>>16;F[a+47|0]=c>>>24;F[a+48|0]=b;F[a+49|0]=b>>>8;F[a+50|0]=b>>>16;F[a+51|0]=b>>>24;b=I[248293]|I[248294]<<8|(I[248295]<<16|I[248296]<<24);c=I[248289]|I[248290]<<8|(I[248291]<<16|I[248292]<<24);F[a+36|0]=c;F[a+37|0]=c>>>8;F[a+38|0]=c>>>16;F[a+39|0]=c>>>24;F[a+40|0]=b;F[a+41|0]=b>>>8;F[a+42|0]=b>>>16;F[a+43|0]=b>>>24;b=I[248285]|I[248286]<<8|(I[248287]<<16|I[248288]<<24);c=I[248281]|I[248282]<<8|(I[248283]<<16|I[248284]<<24);F[a+28|0]=c;F[a+29|0]=c>>>8;F[a+30|0]=c>>>16;F[a+31|0]=c>>>24;F[a+32|0]=b;F[a+33|0]=b>>>8;F[a+34|0]=b>>>16;F[a+35|0]=b>>>24;b=I[248277]|I[248278]<<8|(I[248279]<<16|I[248280]<<24);c=I[248273]|I[248274]<<8|(I[248275]<<16|I[248276]<<24);F[a+20|0]=c;F[a+21|0]=c>>>8;F[a+22|0]=c>>>16;F[a+23|0]=c>>>24;F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24;b=I[248269]|I[248270]<<8|(I[248271]<<16|I[248272]<<24);c=I[248265]|I[248266]<<8|(I[248267]<<16|I[248268]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[248261]|I[248262]<<8|(I[248263]<<16|I[248264]<<24);c=I[248257]|I[248258]<<8|(I[248259]<<16|I[248260]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;break a}b:{c:{j=H[b>>2];i=H[b+4>>2];if(i>>>0>=2){h=H[a+264>>2];s=I[!h+j|0]<<8|I[((h|0)!=0)+j|0]}v=N(s,12);w=v+4|0;if(j+w>>>0<=H[c>>2]+d>>>0){if(s){break c}break b}j=0;b=I[248338]|I[248339]<<8;F[a+28|0]=b;F[a+29|0]=b>>>8;b=I[248334]|I[248335]<<8|(I[248336]<<16|I[248337]<<24);c=I[248330]|I[248331]<<8|(I[248332]<<16|I[248333]<<24);F[a+20|0]=c;F[a+21|0]=c>>>8;F[a+22|0]=c>>>16;F[a+23|0]=c>>>24;F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24;b=I[248326]|I[248327]<<8|(I[248328]<<16|I[248329]<<24);c=I[248322]|I[248323]<<8|(I[248324]<<16|I[248325]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[248318]|I[248319]<<8|(I[248320]<<16|I[248321]<<24);c=I[248314]|I[248315]<<8|(I[248316]<<16|I[248317]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;break a}z=e+5|0;A=e+37|0;B=e+77|0;C=g+1|0;x=e+196|0;h=a+4|0;while(1){H[l+40>>2]=0;H[l+44>>2]=0;k=j;j=N(t,12)|2;n=i>>>0>>0?i:j;p=k+n|0;o=0;j=0;k=0;d:{i=i-n|0;if(i>>>0<2){break d}n=H[a+264>>2];k=!n;y=(n|0)!=0;j=I[k+p|0]<<8|I[p+y|0];if(i>>>0<4){k=0;break d}u=k;k=p+2|0;k=I[u+k|0]<<8|I[k+y|0];if(i>>>0>=8){o=p+4|0;e:{if(n){n=I[o+1|0]<<16|I[o|0]<<24|I[o+2|0]<<8;o=o+3|0;break e}n=I[o+2|0]<<16|I[o+3|0]<<24|I[o+1|0]<<8}o=I[o|0]|n}if(k>>>0<13){break d}j=0;a=I[248388]|I[248389]<<8|(I[248390]<<16|I[248391]<<24);b=I[248384]|I[248385]<<8|(I[248386]<<16|I[248387]<<24);F[h+24|0]=b;F[h+25|0]=b>>>8;F[h+26|0]=b>>>16;F[h+27|0]=b>>>24;F[h+28|0]=a;F[h+29|0]=a>>>8;F[h+30|0]=a>>>16;F[h+31|0]=a>>>24;a=I[248380]|I[248381]<<8|(I[248382]<<16|I[248383]<<24);b=I[248376]|I[248377]<<8|(I[248378]<<16|I[248379]<<24);F[h+16|0]=b;F[h+17|0]=b>>>8;F[h+18|0]=b>>>16;F[h+19|0]=b>>>24;F[h+20|0]=a;F[h+21|0]=a>>>8;F[h+22|0]=a>>>16;F[h+23|0]=a>>>24;a=I[248372]|I[248373]<<8|(I[248374]<<16|I[248375]<<24);b=I[248368]|I[248369]<<8|(I[248370]<<16|I[248371]<<24);F[h+8|0]=b;F[h+9|0]=b>>>8;F[h+10|0]=b>>>16;F[h+11|0]=b>>>24;F[h+12|0]=a;F[h+13|0]=a>>>8;F[h+14|0]=a>>>16;F[h+15|0]=a>>>24;a=I[248364]|I[248365]<<8|(I[248366]<<16|I[248367]<<24);b=I[248360]|I[248361]<<8|(I[248362]<<16|I[248363]<<24);F[h|0]=b;F[h+1|0]=b>>>8;F[h+2|0]=b>>>16;F[h+3|0]=b>>>24;F[h+4|0]=a;F[h+5|0]=a>>>8;F[h+6|0]=a>>>16;F[h+7|0]=a>>>24;break a}o=N(H[(k<<2)+248416>>2],o);f:{if((o|0)>=5){n=0;if(i>>>0>=12){i=p+8|0;g:{if(H[a+264>>2]){n=I[i+1|0]<<16|I[i|0]<<24|I[i+2|0]<<8;i=i+3|0;break g}n=I[i+2|0]<<16|I[i+3|0]<<24|I[i+1|0]<<8}n=I[i|0]|n}if(n+o>>>0>d>>>0){j=0;a=I[248530]|I[248531]<<8|(I[248532]<<16|I[248533]<<24);b=I[248526]|I[248527]<<8|(I[248528]<<16|I[248529]<<24);F[h+30|0]=b;F[h+31|0]=b>>>8;F[h+32|0]=b>>>16;F[h+33|0]=b>>>24;F[h+34|0]=a;F[h+35|0]=a>>>8;F[h+36|0]=a>>>16;F[h+37|0]=a>>>24;a=I[248524]|I[248525]<<8|(I[248526]<<16|I[248527]<<24);b=I[248520]|I[248521]<<8|(I[248522]<<16|I[248523]<<24);F[h+24|0]=b;F[h+25|0]=b>>>8;F[h+26|0]=b>>>16;F[h+27|0]=b>>>24;F[h+28|0]=a;F[h+29|0]=a>>>8;F[h+30|0]=a>>>16;F[h+31|0]=a>>>24;a=I[248516]|I[248517]<<8|(I[248518]<<16|I[248519]<<24);b=I[248512]|I[248513]<<8|(I[248514]<<16|I[248515]<<24);F[h+16|0]=b;F[h+17|0]=b>>>8;F[h+18|0]=b>>>16;F[h+19|0]=b>>>24;F[h+20|0]=a;F[h+21|0]=a>>>8;F[h+22|0]=a>>>16;F[h+23|0]=a>>>24;a=I[248508]|I[248509]<<8|(I[248510]<<16|I[248511]<<24);b=I[248504]|I[248505]<<8|(I[248506]<<16|I[248507]<<24);F[h+8|0]=b;F[h+9|0]=b>>>8;F[h+10|0]=b>>>16;F[h+11|0]=b>>>24;F[h+12|0]=a;F[h+13|0]=a>>>8;F[h+14|0]=a>>>16;F[h+15|0]=a>>>24;a=I[248500]|I[248501]<<8|(I[248502]<<16|I[248503]<<24);b=I[248496]|I[248497]<<8|(I[248498]<<16|I[248499]<<24);F[h|0]=b;F[h+1|0]=b>>>8;F[h+2|0]=b>>>16;F[h+3|0]=b>>>24;F[h+4|0]=a;F[h+5|0]=a>>>8;F[h+6|0]=a>>>16;F[h+7|0]=a>>>24;break a}i=H[c+4>>2];p=i>>>0>>0?i:n;n=i-p|0;i=p+H[c>>2]|0;break f}u=i;i=i>>>0<8?i:8;n=u-i|0;i=i+p|0}H[l+44>>2]=n;H[l+40>>2]=i;p=i+o|0;if(p>>>0>K[f>>2]){H[f>>2]=p}h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{if((j|0)<=37376){if((j|0)<=33433){P:{switch(j-271|0){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break h;case 12:break n;case 11:break o;case 25:break w;case 3:break A;case 1:break N;case 0:break O;default:break P}}switch(j-513|0){case 1:break l;case 0:break m;default:break h}}if((j|0)<=34849){Q:{switch(j-33434|0){case 1:case 2:break h;case 0:break D;case 3:break I;default:break Q}}if((j|0)!=34665){break h}break i}R:{switch(j-34850|0){case 1:case 2:case 3:case 4:break h;case 5:break q;case 0:break r;default:break R}}S:{switch(j-36864|0){case 1:case 2:break h;case 3:break L;case 0:break M;default:break S}}if((j|0)!=37122){break h}m=Sd(a,l+40|0,k);if(!(P(m)<2147483648)){break p}H[e+164>>2]=~~m;break h}if((j|0)<=37509){switch(j-37377|0){case 6:break s;case 7:break t;case 3:break u;case 8:break B;case 0:break C;case 5:break E;case 9:break F;case 2:break G;case 1:case 4:break H;default:break h}}T:{switch(j-40962|0){case 2:break h;case 3:break i;case 0:case 1:break z;default:break T}}U:{switch(j-41486|0){case 2:break v;case 1:break x;case 0:break y;default:break U}}if((j|0)!=37510){break h}V:{if(n>>>0>>0|(o|0)<=0){break V}k=o-1|0;if(I[k+i|0]!=32){break V}while(1){W:{F[i+k|0]=0;if(!k){break W}i=H[l+40>>2];k=k-1|0;if(I[i+k|0]==32){continue}}break}n=H[l+44>>2]}if(n>>>0<5){break j}i=H[l+40>>2];if(md(i,248555,5)){break J}if(!(I[i+5|0]&223)){break K}k=i+5|0;i=204;break k}if(n>>>0<31){break h}Ld(z,i,31);break h}if(n>>>0<39){break h}Ld(A,i,39);break h}if(n>>>0<4){break h}Ld(e,i,4);break h}if(n>>>0<19){break h}Ld(B,i,19);break h}if(I[i+6|0]&223){k=i+6|0;i=205;break k}if(I[i+7|0]&223){k=i+7|0;i=206;break k}if(I[i+8|0]&223){k=i+8|0;i=207;break k}if(!(I[i+9|0]&223)){break j}k=i+9|0;i=208;break k}if(n>>>0<199){break j}Ld(x,i,199);break j}D=e,E=O(Sd(a,l+40|0,k)),L[D+132>>2]=E;break h}if(L[e+132>>2]!=O(0)){break j}D=e,E=O(vh(Sd(a,l+40|0,k)*.6931471824645996*.5)),L[D+132>>2]=E;break j}D=e,E=O(Sd(a,l+40|0,k)),L[D+192>>2]=E;break h}D=e,E=O(Sd(a,l+40|0,k)),L[D+124>>2]=E;break h}D=e,E=O(Sd(a,l+40|0,k)),L[D+136>>2]=E;break h}D=e,E=O(Sd(a,l+40|0,k)),L[D+128>>2]=E;break h}if(L[e+128>>2]!=O(0)){break h}D=e,E=O(1/vh(Sd(a,l+40|0,k)*.6931471824645996)),L[D+128>>2]=E;break h}m=Sd(a,l+40|0,k);X:{if(P(m)<2147483648){i=~~m;break X}i=-2147483648}if(i&7){H[e+120>>2]=1;break h}H[e+120>>2]=0;break h}m=Sd(a,l+40|0,k);Y:{if(P(m)<2147483648){i=~~m;break Y}i=-2147483648}H[e+108>>2]=i;if(i-9>>>0>4294967287){break h}F[h+24|0]=I[248585];i=I[248581]|I[248582]<<8|(I[248583]<<16|I[248584]<<24);j=I[248577]|I[248578]<<8|(I[248579]<<16|I[248580]<<24);F[h+16|0]=j;F[h+17|0]=j>>>8;F[h+18|0]=j>>>16;F[h+19|0]=j>>>24;F[h+20|0]=i;F[h+21|0]=i>>>8;F[h+22|0]=i>>>16;F[h+23|0]=i>>>24;i=I[248573]|I[248574]<<8|(I[248575]<<16|I[248576]<<24);j=I[248569]|I[248570]<<8|(I[248571]<<16|I[248572]<<24);F[h+8|0]=j;F[h+9|0]=j>>>8;F[h+10|0]=j>>>16;F[h+11|0]=j>>>24;F[h+12|0]=i;F[h+13|0]=i>>>8;F[h+14|0]=i>>>16;F[h+15|0]=i>>>24;i=I[248565]|I[248566]<<8|(I[248567]<<16|I[248568]<<24);j=I[248561]|I[248562]<<8|(I[248563]<<16|I[248564]<<24);F[h|0]=j;F[h+1|0]=j>>>8;F[h+2|0]=j>>>16;F[h+3|0]=j>>>24;F[h+4|0]=i;F[h+5|0]=i>>>8;F[h+6|0]=i>>>16;F[h+7|0]=i>>>24;H[e+108>>2]=0;break h}m=Sd(a,l+40|0,k);Z:{if(P(m)<2147483648){i=~~m;break Z}i=-2147483648}if((i|0)<=H[a+260>>2]){break j}H[a+260>>2]=i;break j}D=e,E=O(Sd(a,l+40|0,k)),L[D+168>>2]=E;break h}D=e,E=O(Sd(a,l+40|0,k)),L[D+172>>2]=E;break h}_:{$:{aa:{ba:{m=Sd(a,l+40|0,k);ca:{if(P(m)<2147483648){i=~~m;break ca}i=-2147483648}switch(i-1|0){case 4:break _;case 3:break $;case 2:break aa;case 0:case 1:break ba;default:break h}}H[e+188>>2]=1065353216;break h}H[e+188>>2]=1053397798;break h}H[e+188>>2]=1025589893;break h}H[e+188>>2]=941957453;break h}da:{ea:{fa:{ga:{m=Sd(a,l+40|0,k);ha:{if(P(m)<2147483648){i=~~m;break ha}i=-2147483648}switch(i-1|0){case 4:break da;case 3:break ea;case 2:break fa;case 0:case 1:break ga;default:break h}}H[e+176>>2]=1065353216;break h}H[e+176>>2]=1053397798;break h}H[e+176>>2]=1025589893;break h}H[e+176>>2]=941957453;break h}D=e,E=O(Sd(a,l+40|0,k)),L[D+144>>2]=E;break h}m=Sd(a,l+40|0,k);if(P(m)<2147483648){H[e+148>>2]=~~m;break h}H[e+148>>2]=-2147483648;break h}m=Sd(a,l+40|0,k);if(P(m)<2147483648){H[e+152>>2]=~~m;break h}H[e+152>>2]=-2147483648;break h}m=Sd(a,l+40|0,k);if(P(m)<2147483648){H[e+156>>2]=~~m;break h}H[e+156>>2]=-2147483648;break h}m=Sd(a,l+40|0,k);ia:{if(P(m)<2147483648){i=~~m;break ia}i=-2147483648}H[e+160>>2]=i;if((i|0)>49){break h}H[e+160>>2]=N(i,200);break h}H[e+164>>2]=-2147483648;break h}D=e,E=O(Sd(a,l+40|0,k)),L[D+180>>2]=E;break h}D=e,E=O(Sd(a,l+40|0,k)),L[D+184>>2]=E;break h}m=Sd(a,l+40|0,k);if(m<4294967296&m>=0){q=~~m>>>0;break h}q=0;break h}m=Sd(a,l+40|0,k);if(m<4294967296&m>=0){r=~~m>>>0;break h}r=0;break h}if(i>>>0>n>>>0){break j}Ld(x,k,199)}if((j|0)==40965){break i}if((j|0)!=34665){break h}}if(n>>>0<4){break h}j=H[l+40>>2];ja:{if(H[a+264>>2]){i=I[j+1|0]<<16|I[j|0]<<24|I[j+2|0]<<8;j=j+3|0;break ja}i=I[j+2|0]<<16|I[j+3|0]<<24|I[j+1|0]<<8}i=I[j|0]|i;if(i>>>0<9){break h}j=H[c+4>>2];if(j>>>0>>0){j=0;a=I[248655]|I[248656]<<8;F[h+24|0]=a;F[h+25|0]=a>>>8;a=I[248651]|I[248652]<<8|(I[248653]<<16|I[248654]<<24);b=I[248647]|I[248648]<<8|(I[248649]<<16|I[248650]<<24);F[h+16|0]=b;F[h+17|0]=b>>>8;F[h+18|0]=b>>>16;F[h+19|0]=b>>>24;F[h+20|0]=a;F[h+21|0]=a>>>8;F[h+22|0]=a>>>16;F[h+23|0]=a>>>24;a=I[248643]|I[248644]<<8|(I[248645]<<16|I[248646]<<24);b=I[248639]|I[248640]<<8|(I[248641]<<16|I[248642]<<24);F[h+8|0]=b;F[h+9|0]=b>>>8;F[h+10|0]=b>>>16;F[h+11|0]=b>>>24;F[h+12|0]=a;F[h+13|0]=a>>>8;F[h+14|0]=a>>>16;F[h+15|0]=a>>>24;a=I[248635]|I[248636]<<8|(I[248637]<<16|I[248638]<<24);b=I[248631]|I[248632]<<8|(I[248633]<<16|I[248634]<<24);F[h|0]=b;F[h+1|0]=b>>>8;F[h+2|0]=b>>>16;F[h+3|0]=b>>>24;F[h+4|0]=a;F[h+5|0]=a>>>8;F[h+6|0]=a>>>16;F[h+7|0]=a>>>24;break a}k=H[c>>2];H[l+24>>2]=k;H[l+32>>2]=i+k;H[l+28>>2]=j;H[l+36>>2]=j-i;tn(a,l+32|0,l+24|0,d,e,f,C)}i=H[b+4>>2];t=t+1|0;if((t|0)==(s|0)){break b}j=H[b>>2];continue}}ka:{if(i>>>0>>0){break ka}b=H[b>>2]+(v|2)|0;i=H[a+264>>2];b=I[b+!i|0]<<8|I[b+((i|0)!=0)|0];if(!b){break ka}i=H[c+4>>2];if(i>>>0>>0){j=0;b=I[248655]|I[248656]<<8;F[a+28|0]=b;F[a+29|0]=b>>>8;b=I[248651]|I[248652]<<8|(I[248653]<<16|I[248654]<<24);c=I[248647]|I[248648]<<8|(I[248649]<<16|I[248650]<<24);F[a+20|0]=c;F[a+21|0]=c>>>8;F[a+22|0]=c>>>16;F[a+23|0]=c>>>24;F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24;b=I[248643]|I[248644]<<8|(I[248645]<<16|I[248646]<<24);c=I[248639]|I[248640]<<8|(I[248641]<<16|I[248642]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[248635]|I[248636]<<8|(I[248637]<<16|I[248638]<<24);c=I[248631]|I[248632]<<8|(I[248633]<<16|I[248634]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;break a}h=H[c>>2];H[l+8>>2]=h;H[l+16>>2]=b+h;H[l+12>>2]=i;H[l+20>>2]=i-b;tn(a,l+16|0,l+8|0,d,e,f,g+1|0)}j=1;if(!r|!q|q+r>>>0>d>>>0){break a}a=H[c>>2];H[e+456>>2]=r;H[e+452>>2]=a+q}xb=l+48|0;return j}function ufa(a){a=a|0;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;a:{b:{c:{d:{e:{f:{g:{c=H[a+20>>2];switch(c-202|0){case 2:break c;case 1:break f;case 0:break g;default:break e}}l=zb[H[H[a+4>>2]>>2]](a,1,28)|0;H[a+440>>2]=l;H[l+8>>2]=0;H[l+4>>2]=1194;H[l>>2]=1195;$C(a);c=zb[H[H[a+4>>2]>>2]](a,1,1408)|0;e=c+256|0;H[a+332>>2]=e;d=Nb(c,0,256);while(1){F[b+e|0]=b;c=b|1;F[c+e|0]=c;c=b|2;F[c+e|0]=c;c=b|3;F[c+e|0]=c;c=b|4;F[c+e|0]=c;c=b|5;F[c+e|0]=c;c=b|6;F[c+e|0]=c;c=b|7;F[c+e|0]=c;b=b+8|0;if((b|0)!=256){continue}break}Nb(d+512|0,255,384);Nb(d+896|0,0,384);Ob(d+1280|0,H[a+332>>2],128);H[l+12>>2]=0;b=_C(a);H[l+20>>2]=0;H[l+24>>2]=0;H[l+16>>2]=b;h:{if(!H[a+84>>2]){H[a+108>>2]=0;H[a+100>>2]=0;H[a+104>>2]=0;break h}if(!H[a+64>>2]){H[a+108>>2]=0;H[a+100>>2]=0;H[a+104>>2]=0}if(H[a+68>>2]){b=H[a>>2];H[b+20>>2]=48;zb[H[b>>2]](a)}i:{if(H[a+120>>2]!=3){H[a+136>>2]=0;H[a+108>>2]=0;H[a+100>>2]=1;H[a+104>>2]=0;break i}if(H[a+136>>2]){H[a+104>>2]=1;break i}if(H[a+92>>2]){H[a+108>>2]=1;break i}H[a+100>>2]=1}if(H[a+100>>2]){b=zb[H[H[a+4>>2]>>2]](a,1,88)|0;H[a+480>>2]=b;H[b+68>>2]=0;H[b+12>>2]=1215;H[b+8>>2]=1216;H[b>>2]=1217;H[b+52>>2]=0;if(H[a+120>>2]>=5){b=H[a>>2];H[b+20>>2]=57;H[b+24>>2]=4;zb[H[H[a>>2]>>2]](a)}j=H[a+96>>2];if((j|0)>=257){b=H[a>>2];H[b+20>>2]=59;H[b+24>>2]=256;zb[H[H[a>>2]>>2]](a);j=H[a+96>>2]}k=H[a+120>>2];j:{if((k|0)>=2){b=k-1|0;d=b&-8;e=b&7;b=k-2>>>0<7;f=1;while(1){c=0;g=f;f=f+1|0;h=f;if(!b){while(1){h=N(N(N(N(N(N(N(N(f,h),f),f),f),f),f),f),f);c=c+8|0;if((d|0)!=(c|0)){continue}break}}c=0;if(e){while(1){h=N(f,h);c=c+1|0;if((e|0)!=(c|0)){continue}break}}if((h|0)<=(j|0)){continue}break}break j}g=(j|0)>1?j:1;h=g+1|0}n=H[a+480>>2];d=1;if(g>>>0<=1){b=H[a>>2];H[b+24>>2]=h;H[b+20>>2]=58;zb[H[H[a>>2]>>2]](a)}k:{if((k|0)<=0){break k}e=k&3;b=0;l:{if(k-1>>>0<3){f=0;break l}c=k&-4;f=0;o=n+32|0;while(1){i=f<<2;H[i+o>>2]=g;H[o+(i|4)>>2]=g;H[o+(i|8)>>2]=g;H[o+(i|12)>>2]=g;f=f+4|0;d=N(N(N(N(d,g),g),g),g);s=s+4|0;if((c|0)!=(s|0)){continue}break}}if(e){while(1){H[(n+(f<<2)|0)+32>>2]=g;f=f+1|0;d=N(d,g);b=b+1|0;if((e|0)!=(b|0)){continue}break}}g=k-1|0;m:{if(H[a+44>>2]!=2){e=n+32|0;b=H[e>>2];h=b+1|0;c=N(h,(d|0)/(b|0)|0);if((j|0)<(c|0)){break k}f=0;b=e;break m}e=n+36|0;b=H[e>>2];h=b+1|0;c=N(h,(d|0)/(b|0)|0);if((j|0)<(c|0)){break k}f=0;b=e;while(1){d=c;H[b>>2]=h;if((f|0)!=(g|0)){f=f+1|0;b=(n+(H[(f<<2)+255920>>2]<<2)|0)+32|0;c=H[b>>2];h=c+1|0;c=N(h,(d|0)/(c|0)|0);if((j|0)>=(c|0)){continue}}f=0;b=e;c=H[b>>2];h=c+1|0;c=N(h,(d|0)/(c|0)|0);if((j|0)>=(c|0)){continue}break}break k}while(1){d=c;H[b>>2]=h;if((f|0)!=(g|0)){f=f+1|0;b=(n+(f<<2)|0)+32|0;c=H[b>>2];h=c+1|0;c=N(h,(d|0)/(c|0)|0);if((j|0)>=(c|0)){continue}}f=0;b=e;c=H[b>>2];h=c+1|0;c=N(h,(d|0)/(c|0)|0);if((j|0)>=(c|0)){continue}break}}b=H[a+120>>2];c=H[a>>2];H[c+24>>2]=d;n:{if((b|0)==3){H[c+28>>2]=H[n+32>>2];H[c+32>>2]=H[n+36>>2];H[c+36>>2]=H[n+40>>2];h=96;b=c;break n}h=97;b=H[a>>2]}H[c+20>>2]=h;zb[H[b+4>>2]](a,1);r=zb[H[H[a+4>>2]+8>>2]](a,1,d,H[a+120>>2])|0;f=H[a+120>>2];if((f|0)>0){b=d;while(1){c=b;e=p<<2;q=H[(e+n|0)+32>>2];b=(b|0)/(q|0)|0;if(!((q|0)<=0|(b|0)<=0)){t=e+r|0;k=q-1|0;o=k>>>1|0;i=b&-4;j=b&3;e=b-1|0;m=0;while(1){h=N(b,m);if((h|0)<(d|0)){u=(N(m,255)+o|0)/(k|0)|0;while(1){s=0;f=0;g=0;if(e>>>0>=3){while(1){F[H[t>>2]+(f+h|0)|0]=u;F[H[t>>2]+((f|1)+h|0)|0]=u;F[H[t>>2]+((f|2)+h|0)|0]=u;F[H[t>>2]+((f|3)+h|0)|0]=u;f=f+4|0;g=g+4|0;if((i|0)!=(g|0)){continue}break}}if(j){while(1){F[H[t>>2]+(f+h|0)|0]=u;f=f+1|0;s=s+1|0;if((j|0)!=(s|0)){continue}break}}h=c+h|0;if((h|0)<(d|0)){continue}break}}m=m+1|0;if((q|0)!=(m|0)){continue}break}f=H[a+120>>2]}p=p+1|0;if((p|0)<(f|0)){continue}break}}H[n+20>>2]=d;H[n+16>>2]=r;VC(a);if(!(H[a+88>>2]!=2|H[a+120>>2]<=0)){c=(H[a+112>>2]<<1)+4|0;b=H[a+480>>2];f=0;while(1){v=b+(f<<2)|0,w=zb[H[H[a+4>>2]+4>>2]](a,1,c)|0,H[v+68>>2]=w;f=f+1|0;if((f|0)>2]){continue}break}}H[l+20>>2]=H[a+480>>2]}if(!(H[a+104>>2]?1:H[a+108>>2])){break h}d=0;e=zb[H[H[a+4>>2]>>2]](a,1,44)|0;H[a+480>>2]=e;H[e+40>>2]=0;H[e+32>>2]=0;H[e+12>>2]=1223;H[e>>2]=1224;if(H[a+120>>2]!=3){b=H[a>>2];H[b+20>>2]=48;zb[H[b>>2]](a)}v=e,w=zb[H[H[a+4>>2]>>2]](a,1,128)|0,H[v+24>>2]=w;while(1){b=zb[H[H[a+4>>2]+4>>2]](a,1,4096)|0;c=d<<2;H[c+H[e+24>>2]>>2]=b;b=zb[H[H[a+4>>2]+4>>2]](a,1,4096)|0;H[H[e+24>>2]+(c|4)>>2]=b;d=d+2|0;if((d|0)!=32){continue}break}H[e+28>>2]=1;o:{if(H[a+108>>2]){c=8;g=58;d=H[a+96>>2];p:{if((d|0)>=8){if(d>>>0<257){break p}g=59;c=256}b=H[a>>2];H[b+24>>2]=c;H[b+20>>2]=g;zb[H[H[a>>2]>>2]](a)}b=zb[H[H[a+4>>2]+8>>2]](a,1,d,3)|0;H[e+20>>2]=d;H[e+16>>2]=b;break o}H[e+16>>2]=0}if(H[a+88>>2]){H[a+88>>2]=2;v=e,w=zb[H[H[a+4>>2]+4>>2]](a,1,N(H[a+112>>2],6)+12|0)|0,H[v+32>>2]=w;UC(a)}H[l+24>>2]=H[a+480>>2]}if(!H[a+68>>2]){q:{if(H[l+16>>2]){b=zb[H[H[a+4>>2]>>2]](a,1,48)|0;H[a+472>>2]=b;H[b+8>>2]=0;H[b>>2]=1230;c=N(H[a+120>>2],H[a+112>>2]);H[b+40>>2]=c;r:{if(H[a+316>>2]==2){H[b+12>>2]=1231;H[b+4>>2]=1232;v=b,w=zb[H[H[a+4>>2]+4>>2]](a,1,c)|0,H[v+32>>2]=w;b=H[a+472>>2];break r}H[b+32>>2]=0;H[b+12>>2]=1233;H[b+4>>2]=1234}v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+16>>2]=w;v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+20>>2]=w;v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+24>>2]=w;f=zb[H[H[a+4>>2]>>2]](a,1,1024)|0;H[b+28>>2]=f;g=H[b+24>>2];e=H[b+20>>2];c=H[b+16>>2];b=0;d=-128;while(1){i=b<<2;H[i+c>>2]=N(d,91881)+32768>>16;H[e+i>>2]=N(d,116130)+32768>>16;H[g+i>>2]=N(d,-46802);H[f+i>>2]=N(d,-22554)+32768;d=d+1|0;b=b+1|0;if((b|0)!=256){continue}break}break q}c=zb[H[H[a+4>>2]>>2]](a,1,24)|0;H[a+476>>2]=c;H[c>>2]=1235;s:{t:{u:{switch(H[a+40>>2]-1|0){case 0:if(H[a+36>>2]!=1){break t}break s;case 1:case 2:if(H[a+36>>2]!=3){break t}break s;case 3:case 4:if(H[a+36>>2]!=4){break t}break s;default:break u}}if(H[a+36>>2]>0){break s}}b=H[a>>2];H[b+20>>2]=11;zb[H[b>>2]](a)}v:{w:{x:{y:{z:{b=H[a+44>>2];switch(b-1|0){case 3:break x;case 1:break y;case 0:break z;default:break w}}H[a+120>>2]=1;A:{switch(H[a+40>>2]-1|0){case 0:case 2:H[c+4>>2]=1236;g=H[a+36>>2];if((g|0)<2){break v}b=g-1|0;e=b&7;c=H[a+216>>2];d=1;if(g-2>>>0>=7){b=b&-8;f=0;while(1){g=c+N(d,88)|0;H[g+52>>2]=0;H[g+140>>2]=0;H[g+228>>2]=0;H[g+316>>2]=0;H[g+404>>2]=0;H[g+492>>2]=0;H[g+580>>2]=0;H[g+668>>2]=0;d=d+8|0;f=f+8|0;if((b|0)!=(f|0)){continue}break}}if(!e){break v}b=0;while(1){H[(c+N(d,88)|0)+52>>2]=0;d=d+1|0;b=b+1|0;if((e|0)!=(b|0)){continue}break};break v;default:break A}}b=H[a>>2];H[b+20>>2]=28;zb[H[b>>2]](a);break v}H[a+120>>2]=3;B:{switch(H[a+40>>2]-1|0){case 2:H[c+4>>2]=1237;b=H[a+476>>2];v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+8>>2]=w;v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+12>>2]=w;v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+16>>2]=w;f=zb[H[H[a+4>>2]>>2]](a,1,1024)|0;H[b+20>>2]=f;g=H[b+16>>2];e=H[b+12>>2];c=H[b+8>>2];d=0;b=-128;while(1){i=d<<2;H[i+c>>2]=N(b,91881)+32768>>16;H[e+i>>2]=N(b,116130)+32768>>16;H[g+i>>2]=N(b,-46802);H[f+i>>2]=N(b,-22554)+32768;b=b+1|0;d=d+1|0;if((d|0)!=256){continue}break};break v;case 0:H[c+4>>2]=1238;break v;case 1:H[c+4>>2]=1239;break v;default:break B}}b=H[a>>2];H[b+20>>2]=28;zb[H[b>>2]](a);break v}H[a+120>>2]=4;C:{switch(H[a+40>>2]-4|0){case 1:H[c+4>>2]=1240;b=H[a+476>>2];v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+8>>2]=w;v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+12>>2]=w;v=b,w=zb[H[H[a+4>>2]>>2]](a,1,1024)|0,H[v+16>>2]=w;f=zb[H[H[a+4>>2]>>2]](a,1,1024)|0;H[b+20>>2]=f;g=H[b+16>>2];e=H[b+12>>2];c=H[b+8>>2];d=0;b=-128;while(1){i=d<<2;H[i+c>>2]=N(b,91881)+32768>>16;H[e+i>>2]=N(b,116130)+32768>>16;H[g+i>>2]=N(b,-46802);H[f+i>>2]=N(b,-22554)+32768;b=b+1|0;d=d+1|0;if((d|0)!=256){continue}break};break v;case 0:H[c+4>>2]=1239;break v;default:break C}}b=H[a>>2];H[b+20>>2]=28;zb[H[b>>2]](a);break v}if((b|0)==H[a+40>>2]){H[a+120>>2]=H[a+36>>2];H[c+4>>2]=1239;break v}b=H[a>>2];H[b+20>>2]=28;zb[H[b>>2]](a)}H[a+124>>2]=H[a+84>>2]?1:H[a+120>>2];c=0;d=zb[H[H[a+4>>2]>>2]](a,1,160)|0;H[a+472>>2]=d;H[d+8>>2]=0;H[d+4>>2]=1241;H[d>>2]=1242;if(H[a+304>>2]){b=H[a>>2];H[b+20>>2]=26;zb[H[b>>2]](a)}if(H[a+36>>2]>0){k=d+12|0;o=d+150|0;i=d+140|0;q=d+52|0;f=d+100|0;b=H[a+216>>2];while(1){r=H[a+316>>2];j=H[a+312>>2];g=H[a+320>>2];e=H[b+36>>2];d=H[b+8>>2];m=c<<2;p=(N(H[b+40>>2],H[b+12>>2])|0)/H[a+324>>2]|0;H[m+f>>2]=p;e=(N(d,e)|0)/(g|0)|0;D:{if(!H[b+52>>2]){H[m+q>>2]=1243;break D}if(!((e|0)!=(j|0)|(r|0)!=(p|0))){H[m+q>>2]=1244;break D}d=(j|0)!=e<<1;E:{if(!(d|(r|0)!=(p|0))){H[m+q>>2]=1245;break E}if(!((r|0)!=p<<1|d)){H[m+q>>2]=1246;break E}F:{d=e;e=(j|0)/(e|0)|0;if(j-N(d,e)|0){break F}d=(r|0)/(p|0)|0;if(r-N(d,p)|0){break F}H[m+q>>2]=1247;F[c+i|0]=e;F[c+o|0]=d;break E}d=H[a>>2];H[d+20>>2]=39;zb[H[d>>2]](a)}e=H[a+312>>2];d=(e+H[a+112>>2]|0)-1|0;v=k+m|0,w=zb[H[H[a+4>>2]+8>>2]](a,1,d-((d|0)%(e|0)|0)|0,H[a+316>>2])|0,H[v>>2]=w}b=b+88|0;c=c+1|0;if((c|0)>2]){continue}break}}}b=H[a+108>>2];e=zb[H[H[a+4>>2]>>2]](a,1,28)|0;H[a+452>>2]=e;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=1248;if(H[a+84>>2]){G:{d=H[a+316>>2];H[e+16>>2]=d;c=H[a+4>>2];if(b){b=(d+H[a+116>>2]|0)-1|0;v=e,w=zb[H[c+16>>2]](a,1,0,N(H[a+120>>2],H[a+112>>2]),b-((b|0)%(d|0)|0)|0,H[e+16>>2])|0,H[v+8>>2]=w;break G}v=e,w=zb[H[c+8>>2]](a,1,N(H[a+120>>2],H[a+112>>2]),d)|0,H[v+12>>2]=w}}}b=0;c=zb[H[H[a+4>>2]>>2]](a,1,84)|0;H[a+468>>2]=c;H[c>>2]=1252;if(H[a+36>>2]>0){e=c+44|0;d=H[a+216>>2];while(1){c=zb[H[H[a+4>>2]>>2]](a,1,256)|0;H[d+84>>2]=c;Nb(c,0,256);H[e+(b<<2)>>2]=-1;d=d+88|0;b=b+1|0;if((b|0)>2]){continue}break}}H:{if(H[a+228>>2]){d=0;b=zb[H[H[a+4>>2]>>2]](a,1,188)|0;H[a+464>>2]=b;H[b>>2]=1284;Nb(b+56|0,0,128);F[b+184|0]=113;I:{if(!H[a+224>>2]){break I}b=zb[H[H[a+4>>2]>>2]](a,1,H[a+36>>2]<<8)|0;H[a+160>>2]=b;if(H[a+36>>2]<=0){break I}while(1){b=Nb(b,255,256)+256|0;d=d+1|0;if((d|0)>2]){continue}break}}break H}d=0;b=zb[H[H[a+4>>2]>>2]](a,1,216)|0;H[a+464>>2]=b;H[b>>2]=1290;J:{if(!H[a+224>>2]){H[b+64>>2]=0;H[b+68>>2]=0;H[b+88>>2]=0;H[b+92>>2]=0;H[b+80>>2]=0;H[b+84>>2]=0;H[b+72>>2]=0;H[b+76>>2]=0;break J}c=zb[H[H[a+4>>2]>>2]](a,1,H[a+36>>2]<<8)|0;H[a+160>>2]=c;if(H[a+36>>2]>0){while(1){c=Nb(c,255,256)+256|0;d=d+1|0;if((d|0)>2]){continue}break}}H[b+44>>2]=0;H[b+48>>2]=0;H[b+52>>2]=0;H[b+56>>2]=0}}b=H[H[a+456>>2]+16>>2]?1:H[a+64>>2]!=0;c=0;f=zb[H[H[a+4>>2]>>2]](a,1,116)|0;H[a+448>>2]=f;H[f+112>>2]=0;H[f+8>>2]=1297;H[f>>2]=1298;K:{if(b){if(H[a+36>>2]>0){g=f+72|0;d=H[a+216>>2];while(1){e=H[d+8>>2];b=(e+H[d+28>>2]|0)-1|0;h=b-((b|0)%(e|0)|0)|0;e=H[d+12>>2];b=(e+H[d+32>>2]|0)-1|0;v=g+(c<<2)|0,w=zb[H[H[a+4>>2]+20>>2]](a,1,1,h,b-((b|0)%(e|0)|0)|0,H[a+224>>2]?N(e,3):e)|0,H[v>>2]=w;d=d+88|0;c=c+1|0;if((c|0)>2]){continue}break}}H[f+12>>2]=1299;H[f+4>>2]=1300;H[f+16>>2]=f+72;break K}b=zb[H[H[a+4>>2]+4>>2]](a,1,1280)|0;H[f+32>>2]=b;H[f+16>>2]=0;H[f+12>>2]=1301;H[f+4>>2]=1302;H[f+68>>2]=b+1152;H[f+64>>2]=b+1024;H[f+60>>2]=b+896;H[f+56>>2]=b+768;H[f+52>>2]=b+640;H[f+48>>2]=b+512;H[f+44>>2]=b+384;H[f+40>>2]=b+256;H[f+36>>2]=b+128}if(!H[a+68>>2]){d=0;o=zb[H[H[a+4>>2]>>2]](a,1,80)|0;H[a+444>>2]=o;H[o>>2]=1200;c=H[a+324>>2];L:{if(H[H[a+472>>2]+8>>2]){if((c|0)<=1){b=H[a>>2];H[b+20>>2]=48;zb[H[b>>2]](a);c=H[a+324>>2]}k=H[a+444>>2];b=zb[H[H[a+4>>2]>>2]](a,1,H[a+36>>2]<<3)|0;H[k+56>>2]=b;g=H[a+36>>2];H[k+60>>2]=b+(g<<2);if((g|0)>0){i=c+4|0;b=H[a+216>>2];while(1){f=(N(H[b+40>>2],H[b+12>>2])|0)/H[a+324>>2]|0;g=N(f,i);c=zb[H[H[a+4>>2]>>2]](a,1,g<<3)|0;e=d<<2;c=c+(f<<2)|0;H[e+H[k+56>>2]>>2]=c;H[e+H[k+60>>2]>>2]=c+(g<<2);b=b+88|0;d=d+1|0;g=H[a+36>>2];if((d|0)<(g|0)){continue}break}}c=H[a+324>>2];e=c+2|0;break L}g=H[a+36>>2];e=c}M:{if((g|0)<=0){break M}g=o+8|0;b=H[a+216>>2];d=0;while(1){v=g+(d<<2)|0,w=zb[H[H[a+4>>2]+8>>2]](a,1,N(H[b+36>>2],H[b+28>>2]),N(e,(N(H[b+40>>2],H[b+12>>2])|0)/(c|0)|0))|0,H[v>>2]=w;d=d+1|0;if((d|0)>=H[a+36>>2]){break M}b=b+88|0;c=H[a+324>>2];continue}}}zb[H[H[a+4>>2]+24>>2]](a);zb[H[H[a+456>>2]+8>>2]](a);e=H[a+8>>2];if(!(!H[H[a+456>>2]+16>>2]|(H[a+64>>2]|!e))){c=H[a+224>>2];d=H[a+36>>2];H[e+4>>2]=0;b=H[a+328>>2];H[e+12>>2]=0;H[e+8>>2]=N(b,c?N(d,3)+2|0:d);H[e+16>>2]=H[a+108>>2]?3:2;H[l+12>>2]=H[l+12>>2]+1}b=207;if(H[a+64>>2]){break b}H[a+20>>2]=203}N:{if(!H[H[a+456>>2]+16>>2]){break N}b=H[a+8>>2];while(1){if(b){zb[H[b>>2]](a)}O:{d=zb[H[H[a+456>>2]>>2]](a)|0;switch(d|0){case 0:break a;case 2:break N;default:break O}}b=H[a+8>>2];if(!b|(d&-3)!=1){continue}c=H[b+4>>2]+1|0;H[b+4>>2]=c;e=c;c=H[b+8>>2];if((e|0)<(c|0)){continue}H[b+8>>2]=c+H[a+328>>2];continue}}H[a+152>>2]=H[a+144>>2];break d}b=H[a>>2];H[b+24>>2]=c;H[b+20>>2]=21;zb[H[H[a>>2]>>2]](a)}if(H[a+20>>2]==204){break c}zb[H[H[a+440>>2]>>2]](a);H[a+20>>2]=204;H[a+140>>2]=0}if(H[H[a+440>>2]+8>>2]){e=a+140|0;b=H[a+140>>2];while(1){c=H[a+116>>2];if(c>>>0>b>>>0){d=H[a+8>>2];if(d){H[d+8>>2]=c;H[d+4>>2]=b;zb[H[d>>2]](a);b=H[a+140>>2]}d=0;zb[H[H[a+444>>2]+4>>2]](a,0,e,0);c=b;b=H[a+140>>2];if((c|0)!=(b|0)){continue}break a}zb[H[H[a+440>>2]+4>>2]](a);zb[H[H[a+440>>2]>>2]](a);b=0;H[a+140>>2]=0;if(H[H[a+440>>2]+8>>2]){continue}break}}b=H[a+68>>2]?206:205}H[a+20>>2]=b;d=1}return d|0}function oba(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;a:{b:{if(!a|!b){break b}c=a;f=b;if(!(!a|!b|I[a+201|0]&4)){a=xb-16|0;xb=a;H[a+8>>2]=1196314761;H[a+12>>2]=169478669;H[c+744>>2]=18;b=I[c+407|0];Qc(c,b+(a+8|0)|0,8-b|0);if(I[c+407|0]<=2){H[c+200>>2]=H[c+200>>2]|4096}xb=a+16|0;if(!(!(I[c+201|0]&16)|!H[c+660>>2])){Xb(c,258830);H[c+660>>2]=0}d=H[f>>2];g=H[f+4>>2];b=I[f+24|0];l=I[f+26|0];e=I[f+27|0];k=I[f+28|0];a=xb-16|0;xb=a;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m=I[f+25|0];switch(m|0){case 6:break h;case 4:break i;case 3:break j;case 2:break k;case 0:break l;default:break g}}if(b>>>0<=16){i=1;if(1<>>0<8){break f}break d}i=2;n:{switch(b-8|0){case 0:case 8:break e;default:break n}}hc(c,259697);X()}i=4;o:{switch(b-8|0){case 0:case 8:break e;default:break o}}hc(c,259941);X()}hc(c,260153);X()}i=1;if(!(139>>>o&1)){break d}}F[c+405|0]=i;if(l){Xb(c,260319)}p:{q:{r:{if(!(!(I[c+660|0]&4)|I[c+201|0]&16)){if(!e){break p}if((m&-5)!=2|(e|0)!=64){break r}break p}if(!e){break q}}Xb(c,260483)}e=0}if(k>>>0>=2){Xb(c,260627);k=1}F[c+401|0]=m;F[c+402|0]=b;F[c+696|0]=0;F[c+664|0]=e;F[c+398|0]=k;H[c+324>>2]=g;H[c+320>>2]=d;i=I[c+405|0];l=N(i,b);F[c+404|0]=l;F[c+406|0]=i;F[c+403|0]=b;H[c+332>>2]=d;i=l&255;s:{if(i>>>0>=8){i=N(d,i>>>3|0);break s}i=N(d,i)+7>>>3|0}H[c+336>>2]=i;F[a+15|0]=k;F[a+14|0]=e;F[a+13|0]=0;F[a+12|0]=m;F[a+11|0]=b;F[a+6|0]=d;F[a+5|0]=d>>>8;F[a+4|0]=d>>>16;F[a+3|0]=d>>>24;F[a+10|0]=g;F[a+9|0]=g>>>8;F[a+8|0]=g>>>16;F[a+7|0]=g>>>24;se(c,1229472850,a+3|0,13);H[c+252>>2]=c;H[c+248>>2]=1401;H[c+244>>2]=1400;t:{u:{v:{b=I[c+400|0];if(!b){if(I[c+401|0]!=3&I[c+402|0]>7){break v}F[c+400|0]=8;b=8}d=H[c+204>>2];if(d&1){break t}b=(b|0)!=8;break u}F[c+400|0]=248;b=1;d=H[c+204>>2];if(d&1){break t}}H[c+296>>2]=b}if(!(d&2)){H[c+280>>2]=-1}if(!(d&4)){H[c+292>>2]=8}if(!(d&8)){H[c+288>>2]=15}if(d&16){b=H[c+284>>2]}else{H[c+284>>2]=8;b=8}H[c+316>>2]=0;H[c+304>>2]=b;H[c+276>>2]=0;H[c+200>>2]=1;H[c+300>>2]=H[c+280>>2];b=H[c+292>>2];H[c+308>>2]=H[c+288>>2];H[c+312>>2]=b;xb=a+16|0;break c}hc(c,259519);X()}a=H[f+8>>2];if(a&1){a=xb-16|0;xb=a;b=H[f+40>>2];b=b<<8&16711680|b<<24|(b>>>8&65280|b>>>24);F[a+12|0]=b;F[a+13|0]=b>>>8;F[a+14|0]=b>>>16;F[a+15|0]=b>>>24;se(c,1732332865,a+12|0,4);xb=a+16|0;a=H[f+8>>2]}if(a&2048){a=xb-16|0;xb=a;b=I[f+44|0];if(b>>>0>=4){Xb(c,261363)}F[a+15|0]=b;se(c,1934772034,a+15|0,1);xb=a+16|0;a=H[f+8>>2]}if(a&4096){g=H[f+196>>2];e=H[f+200>>2];a=H[f+204>>2];b=0;d=xb-32|0;xb=d;H[d+16>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d>>2]=0;H[d+4>>2]=0;i=ac(g);w:{x:{a=e?a:0;if((a|0)<4){break x}b=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if((b|0)>=0){break x}Xb(c,261764);break w}if((a|0)<(b|0)){Xb(c,261936);break w}if((a|0)>(b|0)){Xb(c,262207);a=b}if(a){a=dn(c,e,a,0,d)}else{a=0}if(c){H[c+744>>2]=34;F[d+28|0]=105;F[d+29|0]=67;F[d+30|0]=67;F[d+31|0]=80;b=(a+i|0)+2|0;F[d+27|0]=b;F[d+26|0]=b>>>8;F[d+25|0]=b>>>16;F[d+24|0]=b>>>24;Qc(c,d+24|0,8);H[c+348>>2]=1766015824;Uf(c);xc(c,d+28|0,4);H[c+744>>2]=66;if(!(!g|!i)){Qc(c,g,i);xc(c,g,i)}F[d+24|0]=0;F[d+25|0]=0;b=d+24|0;Qc(c,b,2);xc(c,b,2)}if(a){Mk(c,d,a)}if(!c){break w}H[c+744>>2]=130;a=H[c+384>>2];a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);F[d+24|0]=a;F[d+25|0]=a>>>8;F[d+26|0]=a>>>16;F[d+27|0]=a>>>24;Qc(c,d+24|0,4)}xb=d+32|0;a=H[f+8>>2]}if(a&2){d=xb-16|0;xb=d;e=I[f+25|0];y:{z:{if(e&2){b=8;A:{a=I[f+68|0];b=(e|0)!=3?I[c+403|0]:b;B:{if(!a|a>>>0>b>>>0){break B}g=I[f+69|0];if(!g|b>>>0>>0){break B}i=I[f+70|0];if(!i){break B}if(b>>>0>=i>>>0){break A}}Xb(c,262551);break y}F[d+14|0]=i;F[d+13|0]=g;F[d+12|0]=a;a=3;break z}a=I[f+71|0];if(!(a>>>0<=I[c+403|0]?a:0)){Xb(c,262551);break y}F[d+12|0]=a;a=1}g=d+12|0;if(e&4){b=I[f+72|0];if(!(b>>>0<=I[c+403|0]?b:0)){Xb(c,262551);break y}F[a+(d+12|0)|0]=b;a=a+1|0}se(c,1933723988,g,a)}xb=d+16|0;a=H[f+8>>2]}if(a&4){a=xb-32|0;xb=a;b=H[f+128>>2];d=H[f+132>>2];e=H[f+136>>2];g=H[f+140>>2];i=H[f+144>>2];k=H[f+148>>2];m=H[f+152>>2];l=H[f+156>>2];if(Kq(c,b,d,e,g,i,k,m,l)){F[a+31|0]=l;F[a+30|0]=l>>>8;F[a+29|0]=l>>>16;F[a+28|0]=l>>>24;F[a+27|0]=m;F[a+26|0]=m>>>8;F[a+25|0]=m>>>16;F[a+24|0]=m>>>24;F[a+23|0]=k;F[a+22|0]=k>>>8;F[a+21|0]=k>>>16;F[a+20|0]=k>>>24;F[a+19|0]=i;F[a+18|0]=i>>>8;F[a+17|0]=i>>>16;F[a+16|0]=i>>>24;F[a+15|0]=g;F[a+14|0]=g>>>8;F[a+13|0]=g>>>16;F[a+12|0]=g>>>24;F[a+11|0]=e;F[a+10|0]=e>>>8;F[a+9|0]=e>>>16;F[a+8|0]=e>>>24;F[a+7|0]=d;F[a+6|0]=d>>>8;F[a+5|0]=d>>>16;F[a+4|0]=d>>>24;F[a+3|0]=b;F[a+2|0]=b>>>8;F[a+1|0]=b>>>16;F[a|0]=b>>>24;se(c,1665684045,a,32)}xb=a+32|0}a=H[f+192>>2];if(!(!a|(a|0)<=0)){a=H[f+188>>2];while(1){d=Lq(c,a);C:{if((d|0)==1){break C}b=I[a+16|0];if(!b|b&2|(b&4|b&8)){break C}if(!(F[c+206|0]&1?1:I[a+3|0]&32|(d|0)==3)){break C}b=H[a+12>>2];if(!b){Xb(c,259173);b=H[a+12>>2]}Aq(c,a,H[a+8>>2],b)}a=a+20|0;if(a>>>0>2]+N(H[f+192>>2],20)>>>0){continue}break}}H[c+200>>2]=H[c+200>>2]|1024}e=H[f+8>>2];D:{if(e&8){b=H[f+16>>2];e=J[f+20>>1];a=xb-16|0;xb=a;E:{F:{d=I[c+401|0];if((d|0)==3){if(e>>>0<=1<>>0?e|H[c+660>>2]&1:0){break F}hc(c,260924);X()}if(!(e|H[c+660>>2]&1?e>>>0<=256:0)){Xb(c,260924);break E}if(d&2){break F}Xb(c,261209);break E}G[c+392>>1]=e;H[c+744>>2]=34;F[a+8|0]=80;F[a+9|0]=76;F[a+10|0]=84;F[a+11|0]=69;d=N(e,3);F[a+7|0]=d;F[a+6|0]=d>>>8;F[a+5|0]=d>>>16;F[a+4|0]=d>>>24;Qc(c,a+4|0,8);H[c+348>>2]=1347179589;Uf(c);xc(c,a+8|0,4);H[c+744>>2]=66;if(e){d=0;while(1){F[a+1|0]=I[b|0];F[a+2|0]=I[b+1|0];F[a+3|0]=I[b+2|0];g=a+1|0;Qc(c,g,3);xc(c,g,3);b=b+3|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}H[c+744>>2]=130;b=H[c+384>>2];b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);F[a+12|0]=b;F[a+13|0]=b>>>8;F[a+14|0]=b>>>16;F[a+15|0]=b>>>24;Qc(c,a+12|0,4);H[c+200>>2]=H[c+200>>2]|2}xb=a+16|0;e=H[f+8>>2];break D}if(I[f+25|0]==3){break a}}if(e&16){if(!(!J[f+22>>1]|(!(I[c+210|0]&8)|I[f+25|0]!=3))){e=0;while(1){a=H[f+76>>2]+e|0;F[a|0]=I[a|0]^-1;e=e+1|0;if(e>>>0>1]){continue}break}}d=H[f+76>>2];b=J[f+22>>1];a=xb-16|0;xb=a;G:{H:{switch(I[f+25|0]){case 3:if(!(b>>>0<=J[c+392>>1]?b:0)){Xb(c,262801);break G}se(c,1951551059,d,b);break G;case 0:b=J[f+88>>1];if((b|0)>=1<>>8;F[a+10|0]=b;F[a+11|0]=b>>>8;se(c,1951551059,a+10|0,2);break G;case 2:d=J[f+82>>1];b=d>>>8|0;d=b|d<<8;F[a+10|0]=d;F[a+11|0]=d>>>8;e=J[f+84>>1];d=e>>>8|0;e=d|e<<8;F[a+12|0]=e;F[a+13|0]=e>>>8;g=J[f+86>>1];e=g>>>8|0;g=e|g<<8;F[a+14|0]=g;F[a+15|0]=g>>>8;if(!(!(e|(b|d))|I[c+402|0]!=8)){Xb(c,263084);break G}se(c,1951551059,a+10|0,6);break G;default:break H}}Xb(c,263183)}xb=a+16|0;e=H[f+8>>2]}if(e&32){b=xb-16|0;xb=b;I:{J:{a=I[f+25|0];if((a|0)==3){d=J[c+392>>1];if(!(d|!(F[c+660|0]&1))){a=I[f+90|0];break J}a=I[f+90|0];if(d>>>0>a>>>0){break J}Xb(c,263294);break I}if(a&2){d=J[f+92>>1];a=d>>>8|0;d=a|d<<8;F[b+10|0]=d;F[b+11|0]=d>>>8;e=J[f+94>>1];d=e>>>8|0;e=d|e<<8;F[b+12|0]=e;F[b+13|0]=e>>>8;g=J[f+96>>1];e=g>>>8|0;g=e|g<<8;F[b+14|0]=g;F[b+15|0]=g>>>8;if(!(!(e|(a|d))|I[c+402|0]!=8)){Xb(c,263518);break I}se(c,1649100612,b+10|0,6);break I}a=J[f+98>>1];if((a|0)>=1<>>8;F[b+10|0]=a;F[b+11|0]=a>>>8;se(c,1649100612,b+10|0,2);break I}F[b+10|0]=a;se(c,1649100612,b+10|0,1)}xb=b+16|0;e=H[f+8>>2]}if(e&64){e=H[f+124>>2];b=0;a=xb-16|0;xb=a;d=J[f+20>>1];K:{if((d|0)>J[c+392>>1]){Xb(c,263761);break K}H[c+744>>2]=34;F[a+8|0]=104;F[a+9|0]=73;F[a+10|0]=83;F[a+11|0]=84;F[a+7|0]=d<<1;F[a+6|0]=d>>>7;F[a+5|0]=d>>>15;F[a+4|0]=d>>>23;Qc(c,a+4|0,8);H[c+348>>2]=1749635924;Uf(c);xc(c,a+8|0,4);H[c+744>>2]=66;if(d){while(1){g=J[e+(b<<1)>>1];g=g<<8|g>>>8;F[a+1|0]=g;F[a+2|0]=g>>>8;g=a+1|0;Qc(c,g,2);xc(c,g,2);b=b+1|0;if((d|0)!=(b|0)){continue}break}}H[c+744>>2]=130;b=H[c+384>>2];b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);F[a+12|0]=b;F[a+13|0]=b>>>8;F[a+14|0]=b>>>16;F[a+15|0]=b>>>24;Qc(c,a+12|0,4)}xb=a+16|0;e=H[f+8>>2]}if(e&256){b=H[f+100>>2];d=H[f+104>>2];a=xb-16|0;xb=a;e=I[f+108|0];if(e>>>0>=2){Xb(c,263867)}F[a+15|0]=e;F[a+14|0]=d;F[a+13|0]=d>>>8;F[a+12|0]=d>>>16;F[a+11|0]=d>>>24;F[a+10|0]=b;F[a+9|0]=b>>>8;F[a+8|0]=b>>>16;F[a+7|0]=b>>>24;se(c,1866876531,a+7|0,9);xb=a+16|0;e=H[f+8>>2]}if(e&1024){g=H[f+160>>2];i=H[f+164>>2];k=H[f+168>>2];e=I[f+181|0];m=H[f+172>>2];h=H[f+176>>2];b=0;a=xb-16|0;xb=a;n=I[f+180|0];if(n>>>0>=4){Xb(c,264034)}p=ac(g);o=ac(m)+((e|0)!=0)|0;d=(p+o|0)+11|0;l=Rd(c,e<<2);if(e){r=e-1|0;while(1){q=b<<2;j=ac(H[q+h>>2])+((b|0)!=(r|0))|0;H[l+q>>2]=j;d=d+j|0;b=b+1|0;if((e|0)!=(b|0)){continue}break}}L:{if(!c){break L}H[c+744>>2]=34;F[a+6|0]=112;F[a+7|0]=67;F[a+8|0]=65;F[a+9|0]=76;F[a+5|0]=d;F[a+4|0]=d>>>8;F[a+3|0]=d>>>16;F[a+2|0]=d>>>24;Qc(c,a+2|0,8);H[c+348>>2]=1883455820;Uf(c);xc(c,a+6|0,4);H[c+744>>2]=66;if(!g){break L}b=p+1|0;if(!b){break L}Qc(c,g,b);xc(c,g,b)}F[a+11|0]=e;F[a+10|0]=n;F[a+9|0]=k;F[a+8|0]=k>>>8;F[a+7|0]=k>>>16;F[a+6|0]=k>>>24;F[a+5|0]=i;F[a+4|0]=i>>>8;F[a+3|0]=i>>>16;F[a+2|0]=i>>>24;M:{N:{if(!c){break N}b=a+2|0;Qc(c,b,10);xc(c,b,10);if(!(!m|!o)){Qc(c,m,o);xc(c,m,o)}if(e){if(!c){break N}b=0;while(1){g=b<<2;d=H[g+h>>2];O:{if(!d){break O}g=H[g+l>>2];if(!g){break O}Qc(c,d,g);xc(c,d,g)}b=b+1|0;if((e|0)!=(b|0)){continue}break}}cc(c,l);if(!c){break M}H[c+744>>2]=130;b=H[c+384>>2];b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);F[a+12|0]=b;F[a+13|0]=b>>>8;F[a+14|0]=b>>>16;F[a+15|0]=b>>>24;Qc(c,a+12|0,4);break M}cc(c,l)}xb=a+16|0;e=H[f+8>>2]}if(e&16384){e=I[f+220|0];b=H[f+228>>2];a=xb+-64|0;xb=a;g=H[f+224>>2];d=ac(g);i=ac(b);k=(d+i|0)+2|0;P:{if(k>>>0>=65){Xb(c,264251);break P}F[a|0]=e;Ob(a|1,g,d+1|0);Ob((a+d|0)+2|0,b,i);se(c,1933787468,a,k)}xb=a- -64|0;e=H[f+8>>2]}if(e&128){b=H[f+112>>2];d=H[f+116>>2];a=xb-16|0;xb=a;e=I[f+120|0];if(e>>>0>=2){Xb(c,264287)}F[a+15|0]=e;F[a+14|0]=d;F[a+13|0]=d>>>8;F[a+12|0]=d>>>16;F[a+11|0]=d>>>24;F[a+10|0]=b;F[a+9|0]=b>>>8;F[a+8|0]=b>>>16;F[a+7|0]=b>>>24;se(c,1883789683,a+7|0,9);xb=a+16|0;e=H[f+8>>2]}if(e&512){LB(c,f+60|0);H[c+200>>2]=H[c+200>>2]|512;e=H[f+8>>2]}if(!(!(e&8192)|H[f+216>>2]<=0)){e=0;while(1){h=xb-16|0;xb=h;n=H[f+212>>2]+(e<<4)|0;a=I[n+4|0];d=H[n+12>>2];b=ac(H[n>>2]);Q:{R:{if(c){p=n+4|0;H[c+744>>2]=34;F[h+6|0]=115;F[h+7|0]=80;F[h+8|0]=76;F[h+9|0]=84;r=(a|0)==8?6:10;a=(b+N(r,d)|0)+2|0;F[h+5|0]=a;F[h+4|0]=a>>>8;F[h+3|0]=a>>>16;F[h+2|0]=a>>>24;Qc(c,h+2|0,8);H[c+348>>2]=1934642260;Uf(c);xc(c,h+6|0,4);H[c+744>>2]=66;a=b+1|0;S:{if(!a){break S}b=H[n>>2];if(!b){break S}Qc(c,b,a);xc(c,b,a)}Qc(c,p,1);xc(c,p,1);if(H[n+12>>2]<=0){break R}g=h+11|0;i=h+10|0;k=h+9|0;m=h+7|0;l=h+6|0;o=h+5|0;j=H[n+8>>2];while(1){a=J[j>>1];T:{if(I[p|0]!=8){a=a<<8|(a&65280)>>>8;F[h+2|0]=a;F[h+3|0]=a>>>8;a=J[j+2>>1];a=a<<8|a>>>8;F[h+4|0]=a;F[h+5|0]=a>>>8;a=J[j+4>>1];a=a<<8|a>>>8;F[h+6|0]=a;F[h+7|0]=a>>>8;q=J[j+6>>1];F[h+8|0]=q>>>8;b=i;d=k;a=g;break T}F[h+2|0]=a;F[h+3|0]=I[j+2|0];F[h+4|0]=I[j+4|0];q=I[j+6|0];b=l;d=o;a=m}F[d|0]=q;d=b;b=J[j+8>>1];F[d|0]=b>>>8;F[a|0]=b;a=h+2|0;Qc(c,a,r);xc(c,a,r);j=j+10|0;if(j>>>0>2]+N(H[n+12>>2],10)>>>0){continue}break}break R}a=H[n+12>>2];if((a|0)<=0){break Q}j=H[n+8>>2];a=j+N(a,10)|0;if(I[n+4|0]==8){while(1){F[h+2|0]=I[j|0];F[h+3|0]=I[j+2|0];F[h+4|0]=I[j+4|0];F[h+5|0]=I[j+6|0];b=J[j+8>>1];b=b<<8|b>>>8;F[h+6|0]=b;F[h+7|0]=b>>>8;j=j+10|0;if(a>>>0>j>>>0){continue}break R}}while(1){b=J[j>>1];b=b<<8|b>>>8;F[h+2|0]=b;F[h+3|0]=b>>>8;b=J[j+2>>1];b=b<<8|b>>>8;F[h+4|0]=b;F[h+5|0]=b>>>8;b=J[j+4>>1];b=b<<8|b>>>8;F[h+6|0]=b;F[h+7|0]=b>>>8;b=J[j+6>>1];b=b<<8|b>>>8;F[h+8|0]=b;F[h+9|0]=b>>>8;b=J[j+8>>1];b=b<<8|b>>>8;F[h+10|0]=b;F[h+11|0]=b>>>8;j=j+10|0;if(a>>>0>j>>>0){continue}break}}if(!c){break Q}H[c+744>>2]=130;a=H[c+384>>2];a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);F[h+12|0]=a;F[h+13|0]=a>>>8;F[h+14|0]=a>>>16;F[h+15|0]=a>>>24;Qc(c,h+12|0,4)}xb=h+16|0;e=e+1|0;if((e|0)>2]){continue}break}}if(H[f+48>>2]>0){a=H[f+56>>2];while(1){d=N(s,28);b=d+a|0;e=H[b>>2];U:{if((e|0)>0){MB(c,e,H[b+4>>2],H[b+20>>2],H[b+24>>2],H[b+8>>2]);a=H[f+56>>2];b=d+a|0;if(H[b>>2]==-1){H[b>>2]=-3;break U}H[b>>2]=-2;break U}V:{switch(e+1|0){case 1:NB(c,H[b+4>>2],H[b+8>>2]);a=H[f+56>>2];H[d+a>>2]=-2;break U;case 0:break V;default:break U}}cn(c,H[b+4>>2],H[b+8>>2]);a=H[f+56>>2];H[d+a>>2]=-3}s=s+1|0;if((s|0)>2]){continue}break}}a=H[f+192>>2];if(!a|(a|0)<=0){break b}e=H[f+188>>2];while(1){b=Lq(c,e);W:{if((b|0)==1){break W}a=I[e+16|0];if(!a|!(a&2)|(a&4|a&8)){break W}if(!(F[c+206|0]&1?1:I[e+3|0]&32|(b|0)==3)){break W}Aq(c,e,H[e+8>>2],H[e+12>>2])}e=e+20|0;if(e>>>0>2]+N(H[f+192>>2],20)>>>0){continue}break}}return}hc(c,259351);X()}function cD(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;H[a+944>>2]=0;e=H[a+20>>2];H[a+948>>2]=e-1;H[a+952>>2]=N(e,H[a+16>>2]);zb[H[H[b>>2]+44>>2]](b,44)|0;e=H[a+392>>2];zb[H[H[b>>2]+44>>2]](b,e&255)|0;zb[H[H[b>>2]+44>>2]](b,e>>>8&255)|0;e=H[a+396>>2];zb[H[H[b>>2]+44>>2]](b,e&255)|0;zb[H[H[b>>2]+44>>2]](b,e>>>8&255)|0;e=H[a+16>>2];zb[H[H[b>>2]+44>>2]](b,e&255)|0;zb[H[H[b>>2]+44>>2]](b,e>>>8&255)|0;e=H[a+20>>2];zb[H[H[b>>2]+44>>2]](b,e&255)|0;zb[H[H[b>>2]+44>>2]](b,e>>>8&255)|0;zb[H[H[b>>2]+44>>2]](b,(c?I[a+26|0]-1|128:0)&255)|0;a:{if(!c){break a}c=H[a+44>>2];if(!c){break a}e=H[a+4>>2];e=e?c?e+40|0:0:0;while(1){c=e+(h<<2)|0;zb[H[H[b>>2]+44>>2]](b,I[c+2|0])|0;zb[H[H[b>>2]+44>>2]](b,I[c+1|0])|0;zb[H[H[b>>2]+44>>2]](b,I[c|0])|0;h=h+1|0;if(h>>>0>2]){continue}break}}c=J[a+26>>1];c=c>>>0>2?c:2;zb[H[H[b>>2]+44>>2]](b,c&255)|0;b:{c:{switch(Ug(a,2)-1|0){case 0:H[a+1060>>2]=b;c=c+1|0;H[a+1056>>2]=c;H[a+1052>>2]=0;H[a+1044>>2]=c;H[a+956>>2]=0;H[a+960>>2]=0;H[a+1072>>2]=0;e=1<>2]=e;G[a+1048>>1]=-1<>2]=e+1;G[a+1050>>1]=e+2;c=H[a+952>>2];d:{if(c){H[a+952>>2]=c-1;c=Wf(a,H[a+944>>2],H[a+948>>2]);e=H[a+944>>2]+1|0;H[a+944>>2]=e;if((e|0)==H[a+16>>2]){H[a+944>>2]=0;H[a+948>>2]=H[a+948>>2]-1}vg(a,G[a+1064>>1]);while(1){h=-1;e=H[a+952>>2];e:{if(!e){break e}H[a+952>>2]=e-1;h=Wf(a,H[a+944>>2],H[a+948>>2]);e=H[a+944>>2]+1|0;H[a+944>>2]=e;if((e|0)!=H[a+16>>2]){break e}H[a+944>>2]=0;H[a+948>>2]=H[a+948>>2]-1}vg(a,c<<16>>16);c=G[a+1050>>1];f:{if((c|0)<=4095){G[a+1050>>1]=c+1;break f}H[a+1052>>2]=1;c=G[a+1064>>1];G[a+1050>>1]=c+2;vg(a,c)}c=h;if((c|0)!=-1){continue}break}break d}vg(a,G[a+1064>>1])}vg(a,G[a+1068>>1]);break b;case 1:d=xb-336|0;xb=d;H[a+1060>>2]=b;c=c+1|0;H[a+1056>>2]=c;g=1<>2]=g;H[d+28>>2]=c;H[d+24>>2]=c;H[d+8>>2]=0;H[d+32>>2]=0;H[d+328>>2]=0;H[d+16>>2]=0;H[d+20>>2]=1;H[d+68>>2]=c;H[d+64>>2]=g;H[d+60>>2]=g+1;e=g-1|0;H[d+40>>2]=e;H[d+4>>2]=g+2;H[d+52>>2]=4093-g;H[d+36>>2]=e;e=(c|0)<4?9:g-2|0;H[d+48>>2]=e;H[d+44>>2]=e;if((c|0)>=8){c=d+72|0;h=0;while(1){H[d+328>>2]=h+1;F[(d+h|0)+72|0]=g;h=H[d+328>>2];if((h|0)>=255){e=H[a+1060>>2];zb[H[H[e>>2]+44>>2]](e,h&255)|0;e=H[a+1060>>2];zb[H[H[e>>2]+16>>2]](e,c,1,H[d+328>>2])|0;H[d+328>>2]=0;h=0}g=H[d+64>>2]>>>8|0;H[d+64>>2]=g;e=H[d+68>>2];H[d+68>>2]=e-8;if((e|0)>15){continue}break}}while(1){c=H[a+952>>2];g:{if(!c){h=-1;break g}H[a+952>>2]=c-1;h=Wf(a,H[a+944>>2],H[a+948>>2]);c=H[a+944>>2]+1|0;H[a+944>>2]=c;if((c|0)!=H[a+16>>2]){break g}H[a+944>>2]=0;H[a+948>>2]=H[a+948>>2]-1}g=H[d+8>>2];h:{if((g|0)<=0){break h}c=H[d>>2];if((c|0)==(h|0)){break h}i:{if((g|0)==1){Rg(a,c,d);break i}if(H[d+20>>2]){nn(a,g,d);break i}if(!((c|0)==H[d+12>>2]&H[d+16>>2]>=2)){j=0;i=1;e=I[d+52|0]|I[d+53|0]<<8|(I[d+54|0]<<16|I[d+55|0]<<24);f=N(e+1|0,e)>>>1|0;j:{if(f>>>0>g>>>0){c=g;break j}c=g;while(1){j=e+j|0;c=c-f|0;if(f>>>0<=c>>>0){continue}break}}e=c;k:{l:{m:{switch(c|0){case 0:break k;case 1:break l;default:break m}}while(1){i=i<<1;f=e>>>0>3;e=e>>>2|0;if(f){continue}break}while(1){e=i;i=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(i|0)){break l}if((e+1|0)!=(i|0)){continue}break}}f=c<<1;while(1){c=e;e=c-1|0;if(f>>>0<=N(c+1|0,c)>>>0){continue}break}while(1){e=c;c=c+1|0;if(f>>>0>N(e,c)>>>0){continue}break}j=e+j|0}n:{if((j+1|0)>=(g|0)){if((g|0)<=0){break n}while(1){Rg(a,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24),d);c=g>>>0>1;g=g-1|0;if(c){continue}break}break n}e=I[d+68|0]|I[d+69|0]<<8|(I[d+70|0]<<16|I[d+71|0]<<24);c=e+(I[d+24|0]|I[d+25|0]<<8|(I[d+26|0]<<16|I[d+27|0]<<24))|0;F[d+68|0]=c;F[d+69|0]=c>>>8;F[d+70|0]=c>>>16;F[d+71|0]=c>>>24;e=I[d+64|0]|I[d+65|0]<<8|(I[d+66|0]<<16|I[d+67|0]<<24)|(I[d+56|0]|I[d+57|0]<<8|(I[d+58|0]<<16|I[d+59|0]<<24))<>>8;F[d+66|0]=e>>>16;F[d+67|0]=e>>>24;if((c|0)>=8){i=d+72|0;c=I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24);while(1){f=c+1|0;F[d+328|0]=f;F[d+329|0]=f>>>8;F[d+330|0]=f>>>16;F[d+331|0]=f>>>24;F[(c+d|0)+72|0]=e;c=I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24);if((c|0)>=255){e=H[a+1060>>2];zb[H[H[e>>2]+44>>2]](e,c&255)|0;c=H[a+1060>>2];zb[H[H[c>>2]+16>>2]](c,i,1,I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24))|0;F[d+328|0]=0;F[d+329|0]=0;F[d+330|0]=0;F[d+331|0]=0;c=0}e=(I[d+64|0]|I[d+65|0]<<8|(I[d+66|0]<<16|I[d+67|0]<<24))>>>8|0;F[d+64|0]=e;F[d+65|0]=e>>>8;F[d+66|0]=e>>>16;F[d+67|0]=e>>>24;j=I[d+68|0]|I[d+69|0]<<8|(I[d+70|0]<<16|I[d+71|0]<<24);f=j-8|0;F[d+68|0]=f;F[d+69|0]=f>>>8;F[d+70|0]=f>>>16;F[d+71|0]=f>>>24;if((j|0)>15){continue}break}}F[d+32|0]=0;F[d+33|0]=0;F[d+34|0]=0;F[d+35|0]=0;F[d+16|0]=0;F[d+17|0]=0;F[d+18|0]=0;F[d+19|0]=0;F[d+20|0]=1;F[d+21|0]=0;F[d+22|0]=0;F[d+23|0]=0;c=I[d+28|0]|I[d+29|0]<<8|(I[d+30|0]<<16|I[d+31|0]<<24);F[d+24|0]=c;F[d+25|0]=c>>>8;F[d+26|0]=c>>>16;F[d+27|0]=c>>>24;c=I[d+40|0]|I[d+41|0]<<8|(I[d+42|0]<<16|I[d+43|0]<<24);F[d+36|0]=c;F[d+37|0]=c>>>8;F[d+38|0]=c>>>16;F[d+39|0]=c>>>24;c=I[d+48|0]|I[d+49|0]<<8|(I[d+50|0]<<16|I[d+51|0]<<24);F[d+44|0]=c;F[d+45|0]=c>>>8;F[d+46|0]=c>>>16;F[d+47|0]=c>>>24;nn(a,g,d)}break i}k=0;l=I[d+52|0]|I[d+53|0]<<8|(I[d+54|0]<<16|I[d+55|0]<<24);o=I[d+16|0]|I[d+17|0]<<8|(I[d+18|0]<<16|I[d+19|0]<<24);n=(g|0)/(o|0)|0;i=g-N(n,o)|0;j=(i|0)!=0;c=I[d+32|0]|I[d+33|0]<<8|(I[d+34|0]<<16|I[d+35|0]<<24);o:{if((l|0)>=(j+(c+n|0)|0)){f=N(l+1|0,l)>>>1|0;break o}m=1;f=N(l+1|0,l)>>>1|0;n=l-c|0;i=g-N(o,n)|0;p:{if(f>>>0>i>>>0){c=i;break p}c=i;while(1){k=k+l|0;c=c-f|0;if(f>>>0<=c>>>0){continue}break}}j=c;e=c;q:{r:{s:{switch(c|0){case 0:break q;case 1:break r;default:break s}}while(1){m=m<<1;e=j>>>0>3;j=j>>>2|0;if(e){continue}break}while(1){e=m;m=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(m|0)){break r}if((e+1|0)!=(m|0)){continue}break}}j=c<<1;while(1){c=e;e=c-1|0;if(j>>>0<=N(c+1|0,c)>>>0){continue}break}while(1){e=c;c=c+1|0;if(j>>>0>N(e,c)>>>0){continue}break}k=e+k|0}j=k+1|0}m=0;t:{if(f>>>0>g>>>0){c=g;break t}c=g;while(1){m=m+l|0;c=c-f|0;if(f>>>0<=c>>>0){continue}break}}e=1;k=c;f=c;u:{v:{w:{switch(c|0){case 0:break u;case 1:break v;default:break w}}while(1){e=e<<1;f=k>>>0>3;k=k>>>2|0;if(f){continue}break}while(1){f=e;e=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(f|0)){break v}if((f+1|0)!=(e|0)){continue}break}}k=c<<1;while(1){c=f;f=c-1|0;if(k>>>0<=N(c+1|0,c)>>>0){continue}break}while(1){e=c;c=c+1|0;if(k>>>0>N(e,c)>>>0){continue}break}m=e+m|0}x:{if(m+1>>>0>>0){e=I[d+68|0]|I[d+69|0]<<8|(I[d+70|0]<<16|I[d+71|0]<<24);c=e+(I[d+24|0]|I[d+25|0]<<8|(I[d+26|0]<<16|I[d+27|0]<<24))|0;F[d+68|0]=c;F[d+69|0]=c>>>8;F[d+70|0]=c>>>16;F[d+71|0]=c>>>24;f=I[d+64|0]|I[d+65|0]<<8|(I[d+66|0]<<16|I[d+67|0]<<24)|(I[d+56|0]|I[d+57|0]<<8|(I[d+58|0]<<16|I[d+59|0]<<24))<>>8;F[d+66|0]=f>>>16;F[d+67|0]=f>>>24;if((c|0)>=8){i=d+72|0;c=I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24);while(1){e=c+1|0;F[d+328|0]=e;F[d+329|0]=e>>>8;F[d+330|0]=e>>>16;F[d+331|0]=e>>>24;F[(c+d|0)+72|0]=f;c=I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24);if((c|0)>=255){e=H[a+1060>>2];zb[H[H[e>>2]+44>>2]](e,c&255)|0;c=H[a+1060>>2];zb[H[H[c>>2]+16>>2]](c,i,1,I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24))|0;F[d+328|0]=0;F[d+329|0]=0;F[d+330|0]=0;F[d+331|0]=0;c=0}f=(I[d+64|0]|I[d+65|0]<<8|(I[d+66|0]<<16|I[d+67|0]<<24))>>>8|0;F[d+64|0]=f;F[d+65|0]=f>>>8;F[d+66|0]=f>>>16;F[d+67|0]=f>>>24;j=I[d+68|0]|I[d+69|0]<<8|(I[d+70|0]<<16|I[d+71|0]<<24);e=j-8|0;F[d+68|0]=e;F[d+69|0]=e>>>8;F[d+70|0]=e>>>16;F[d+71|0]=e>>>24;if((j|0)>15){continue}break}}F[d+32|0]=0;F[d+33|0]=0;F[d+34|0]=0;F[d+35|0]=0;F[d+16|0]=0;F[d+17|0]=0;F[d+18|0]=0;F[d+19|0]=0;F[d+20|0]=1;F[d+21|0]=0;F[d+22|0]=0;F[d+23|0]=0;c=I[d+28|0]|I[d+29|0]<<8|(I[d+30|0]<<16|I[d+31|0]<<24);F[d+24|0]=c;F[d+25|0]=c>>>8;F[d+26|0]=c>>>16;F[d+27|0]=c>>>24;c=I[d+40|0]|I[d+41|0]<<8|(I[d+42|0]<<16|I[d+43|0]<<24);F[d+36|0]=c;F[d+37|0]=c>>>8;F[d+38|0]=c>>>16;F[d+39|0]=c>>>24;c=I[d+48|0]|I[d+49|0]<<8|(I[d+50|0]<<16|I[d+51|0]<<24);F[d+44|0]=c;F[d+45|0]=c>>>8;F[d+46|0]=c>>>16;F[d+47|0]=c>>>24;nn(a,g,d);break x}F[d+44|0]=l;F[d+45|0]=l>>>8;F[d+46|0]=l>>>16;F[d+47|0]=l>>>24;y:{if((n|0)<=0){break y}Rg(a,((I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24))+o|0)-2|0,d);if((n|0)==1){break y}while(1){Rg(a,((I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24))+(I[d+16|0]|I[d+17|0]<<8|(I[d+18|0]<<16|I[d+19|0]<<24))|0)-2|0,d);c=(n|0)>2;n=n-1|0;if(c){continue}break}}z:{if(!i){break z}if(I[d+20|0]|I[d+21|0]<<8|(I[d+22|0]<<16|I[d+23|0]<<24)){nn(a,i,d);break z}if((i|0)==1){Rg(a,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24),d);break z}Rg(a,((I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24))+i|0)-2|0,d)}c=I[d+48|0]|I[d+49|0]<<8|(I[d+50|0]<<16|I[d+51|0]<<24);F[d+44|0]=c;F[d+45|0]=c>>>8;F[d+46|0]=c>>>16;F[d+47|0]=c>>>24;if((c|0)<=(I[d+32|0]|I[d+33|0]<<8|(I[d+34|0]<<16|I[d+35|0]<<24))){e=I[d+68|0]|I[d+69|0]<<8|(I[d+70|0]<<16|I[d+71|0]<<24);g=e+(I[d+24|0]|I[d+25|0]<<8|(I[d+26|0]<<16|I[d+27|0]<<24))|0;F[d+68|0]=g;F[d+69|0]=g>>>8;F[d+70|0]=g>>>16;F[d+71|0]=g>>>24;f=I[d+64|0]|I[d+65|0]<<8|(I[d+66|0]<<16|I[d+67|0]<<24)|(I[d+56|0]|I[d+57|0]<<8|(I[d+58|0]<<16|I[d+59|0]<<24))<>>8;F[d+66|0]=f>>>16;F[d+67|0]=f>>>24;e=d;if((g|0)>=8){i=d+72|0;c=I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24);while(1){g=c+1|0;F[d+328|0]=g;F[d+329|0]=g>>>8;F[d+330|0]=g>>>16;F[d+331|0]=g>>>24;F[(c+d|0)+72|0]=f;c=I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24);if((c|0)>=255){g=H[a+1060>>2];zb[H[H[g>>2]+44>>2]](g,c&255)|0;c=H[a+1060>>2];zb[H[H[c>>2]+16>>2]](c,i,1,I[d+328|0]|I[d+329|0]<<8|(I[d+330|0]<<16|I[d+331|0]<<24))|0;F[d+328|0]=0;F[d+329|0]=0;F[d+330|0]=0;F[d+331|0]=0;c=0}f=(I[d+64|0]|I[d+65|0]<<8|(I[d+66|0]<<16|I[d+67|0]<<24))>>>8|0;F[d+64|0]=f;F[d+65|0]=f>>>8;F[d+66|0]=f>>>16;F[d+67|0]=f>>>24;j=I[d+68|0]|I[d+69|0]<<8|(I[d+70|0]<<16|I[d+71|0]<<24);g=j-8|0;F[d+68|0]=g;F[d+69|0]=g>>>8;F[d+70|0]=g>>>16;F[d+71|0]=g>>>24;if((j|0)>15){continue}break}c=I[d+48|0]|I[d+49|0]<<8|(I[d+50|0]<<16|I[d+51|0]<<24)}F[e+44|0]=c;F[e+45|0]=c>>>8;F[e+46|0]=c>>>16;F[e+47|0]=c>>>24;F[d+32|0]=0;F[d+33|0]=0;F[d+34|0]=0;F[d+35|0]=0;F[d+16|0]=0;F[d+17|0]=0;F[d+18|0]=0;F[d+19|0]=0;F[d+20|0]=1;F[d+21|0]=0;F[d+22|0]=0;F[d+23|0]=0;c=I[d+28|0]|I[d+29|0]<<8|(I[d+30|0]<<16|I[d+31|0]<<24);F[d+24|0]=c;F[d+25|0]=c>>>8;F[d+26|0]=c>>>16;F[d+27|0]=c>>>24;c=I[d+40|0]|I[d+41|0]<<8|(I[d+42|0]<<16|I[d+43|0]<<24);F[d+36|0]=c;F[d+37|0]=c>>>8;F[d+38|0]=c>>>16;F[d+39|0]=c>>>24}}}g=0;H[d+8>>2]=0}if((h|0)!=-1){if(H[d>>2]==(h|0)){H[d+8>>2]=g+1;continue}H[d>>2]=h;H[d+8>>2]=1;continue}break};c=H[d+68>>2];i=c+H[d+24>>2]|0;H[d+68>>2]=i;g=H[d+64>>2]|H[d+60>>2]<>2]=g;if((i|0)>=8){c=d+72|0;h=H[d+328>>2];while(1){H[d+328>>2]=h+1;F[(d+h|0)+72|0]=g;h=H[d+328>>2];if((h|0)>=255){e=H[a+1060>>2];zb[H[H[e>>2]+44>>2]](e,h&255)|0;e=H[a+1060>>2];zb[H[H[e>>2]+16>>2]](e,c,1,H[d+328>>2])|0;H[d+328>>2]=0;h=0}g=H[d+64>>2]>>>8|0;H[d+64>>2]=g;e=H[d+68>>2];i=e-8|0;H[d+68>>2]=i;if((e|0)>15){continue}break}}A:{B:{C:{if((i|0)<=0){h=H[d+328>>2];break C}c=H[d+328>>2];H[d+328>>2]=c+1;F[(c+d|0)+72|0]=g;h=H[d+328>>2];if((h|0)>254){break B}}if((h|0)<=0){break A}}c=H[a+1060>>2];zb[H[H[c>>2]+44>>2]](c,h&255)|0;a=H[a+1060>>2];zb[H[H[a>>2]+16>>2]](a,d+72|0,1,H[d+328>>2])|0}xb=d+336|0;break b;default:break c}}H[a+1060>>2]=b;c=c+1|0;H[a+1056>>2]=c;H[a+1052>>2]=0;H[a+1044>>2]=c;H[a+956>>2]=0;H[a+960>>2]=0;H[a+1072>>2]=0;h=-1;e=1<>2]=e;G[a+1048>>1]=-1<>2]=e+1;G[a+1050>>1]=e+2;c=H[a+952>>2];D:{if(!c){break D}H[a+952>>2]=c-1;h=Wf(a,H[a+944>>2],H[a+948>>2]);c=H[a+944>>2]+1|0;H[a+944>>2]=c;if((c|0)!=H[a+16>>2]){break D}H[a+944>>2]=0;H[a+948>>2]=H[a+948>>2]-1}Nb(H[a+1036>>2],255,20012);vg(a,G[a+1064>>1]);c=H[a+952>>2];if(c){while(1){H[a+952>>2]=c-1;e=Wf(a,H[a+944>>2],H[a+948>>2]);c=H[a+944>>2]+1|0;H[a+944>>2]=c;if((c|0)==H[a+16>>2]){H[a+944>>2]=0;H[a+948>>2]=H[a+948>>2]-1}f=H[a+1036>>2];c=e<<4^h;i=H[f+(c<<2)>>2];g=(e<<12)+h|0;E:{if((i|0)==(g|0)){e=J[H[a+1040>>2]+(c<<1)>>1];break E}if((i|0)>=0){i=c?c-5003|0:-1;while(1){c=c+i|0;c=(c|0)<0?c+5003|0:c;d=H[f+(c<<2)>>2];if((d|0)==(g|0)){e=J[H[a+1040>>2]+(c<<1)>>1];break E}if((d|0)>0){continue}break}}vg(a,h<<16>>16);f=G[a+1050>>1];if((f|0)<=4095){G[a+1050>>1]=f+1;G[H[a+1040>>2]+(c<<1)>>1]=f;H[H[a+1036>>2]+(c<<2)>>2]=g;break E}Nb(H[a+1036>>2],255,20012);H[a+1052>>2]=1;c=G[a+1064>>1];G[a+1050>>1]=c+2;vg(a,c)}h=e;c=H[a+952>>2];if(c){continue}break}}vg(a,h<<16>>16);vg(a,G[a+1068>>1])}zb[H[H[b>>2]+44>>2]](b,0)|0}function Py(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,r=0,s=0,t=0,u=0,v=0;g=xb-32|0;xb=g;p=H[b+100>>2];d=1;a:{b:{c:{d:{e:{f:{g:{if(bc(a,0)){break g}e=Ic(a,29600,b+184|0);H[g+28>>2]=e;if(e){break g}d=3;if(H[b+184>>2]!=1885562369){break g}f=H[b+188>>2];if(!f){break g}e=H[a+4>>2];if(e>>>0<16){break g}d=e>>>4|0;if(!(f>>>0<=9&d>>>0>=f>>>0)){f=e>>>0<144?d:9;H[b+188>>2]=f}e=0;f=Ub(p,16,0,f,0,g+28|0);H[b+192>>2]=f;d=H[g+28>>2];if(d){break g}if(H[b+188>>2]){while(1){d=Ic(a,29616,f);H[g+28>>2]=d;if(d){break d}f=f+16|0;e=e+1|0;d=H[b+188>>2];if(e>>>0>>0){continue}break}f=H[b+192>>2];if((d|0)==1){break f}e=d}d=0;h:{i:{while(1){i=d+1|0;if((i|0)==(e|0)){j=e-1|0;e=H[a+4>>2];f=H[b+192>>2];break i}m=d^-1;h=H[f+12>>2];d=0;j=0;while(1){k=(j<<4)+f|0;j=j+1|0;l=(j<<4)+f|0;e=H[l+12>>2];if(h>>>0>e>>>0){d=H[k+12>>2];H[g+16>>2]=H[k+8>>2];H[g+20>>2]=d;d=H[k+4>>2];H[g+8>>2]=H[k>>2];H[g+12>>2]=d;d=H[l+12>>2];H[k+8>>2]=H[l+8>>2];H[k+12>>2]=d;d=H[l+4>>2];H[k>>2]=H[l>>2];H[k+4>>2]=d;d=H[g+20>>2];H[l+8>>2]=H[g+16>>2];H[l+12>>2]=d;d=H[g+12>>2];H[l>>2]=H[g+8>>2];H[l+4>>2]=d;e=H[l+12>>2];d=1}h=H[k+8>>2];if(h>>>0>e>>>0|K[k+12>>2]>e-h>>>0){break h}h=e;e=H[b+188>>2];if(m+e>>>0>j>>>0){continue}break}j=e-1|0;if(d){d=i;if(j>>>0>d>>>0){continue}}break}e=H[a+4>>2];f=H[b+192>>2];i=f;if(!j){break e}}i=(j<<4)+f|0;h=0;d=f;while(1){k=H[d+8>>2];if(!(k>>>0<=e>>>0&K[d+12>>2]<=e-k>>>0)){H[g+28>>2]=8;break d}d=d+16|0;h=h+1|0;if((j|0)!=(h|0)){continue}break}break e}H[g+28>>2]=9;break d}H[g+4>>2]=d;break b}e=H[a+4>>2];i=f}d=H[i+12>>2];if(d>>>0>e>>>0){H[g+28>>2]=8;break d}d=e-d|0;if(d>>>0>2]){H[i+8>>2]=d}H[g+4>>2]=0;break c}d=H[b+192>>2];if(d){zb[H[p+8>>2]](p,d)}f=0;H[b+192>>2]=0;d=H[g+28>>2];H[g+4>>2]=d;if(d){break b}}H[b>>2]=1;H[b+4>>2]=0;d=0;if((c|0)<0){break a}h=H[b+100>>2];j=3;j:{k:{c=H[b+188>>2];l:{if(!c){break l}d=0;while(1){if(H[(d<<4)+f>>2]==1){j=83;c=H[((d<<4)+f|0)+12>>2];e=H[a+8>>2];if(c>>>0>>0){break l}if(ud(a,c-e|0)){break l}k=H[((d<<4)+f|0)+8>>2];c=0;H[g+8>>2]=0;d=Pe(a,g+8|0);if(!H[g+8>>2]){break k}d=0;break j}d=d+1|0;if((c|0)!=(d|0)){continue}break}}H[g+8>>2]=j;c=0;d=0;break j}if(d>>>0>255){d=0;break j}f=d&4;m:{if(f){e=hd(a,g+8|0);break m}e=Pe(a,g+8|0)}if(H[g+8>>2]){d=0;break j}if(e>>>0>(k>>>0)/9>>>0){H[g+8>>2]=8;d=0;break j}i=e>>>0<256?e:256;H[b+280>>2]=i;d=Ub(h,12,0,i,0,g+8|0);if(H[g+8>>2]){break j}n:{if(!i){break n}j=0;if(!f){while(1){l=Ic(a,29680,N(j,12)+d|0);H[g+8>>2]=l;if(l){break j}j=j+1|0;if((i|0)!=(j|0)){continue}break n}}while(1){l=Ic(a,29648,N(j,12)+d|0);H[g+8>>2]=l;if(l){break j}j=j+1|0;if((i|0)!=(j|0)){continue}break}}j=ud(a,N(e-i|0,9));H[g+8>>2]=j;if(j){H[g+8>>2]=83;break j}o:{j=e&3;if(!j){break o}j=ud(a,4-j|0);H[g+8>>2]=j;if(!j){break o}H[g+8>>2]=83;break j}p:{if(f){f=hd(a,g+8|0);break p}f=Pe(a,g+8|0)}if(H[g+8>>2]){break j}if(f>>>0>k+N(e,-9)>>>0){H[g+8>>2]=8;break j}f=f>>>0<16777472?f:16777472;c=Ub(h,1,0,f+1|0,0,g+8|0);if(H[g+8>>2]){break j}e=wd(a,c,f);H[g+8>>2]=e;if(e){break j}j=0;l=Ub(h,12,0,i,0,g+8|0);if(H[g+8>>2]){break j}H[b+284>>2]=l;if(i){while(1){k=N(j,12);e=k+d|0;m=H[e>>2];if(!((m|0)>=0&f>>>0>=m>>>0)){H[g+8>>2]=9;break j}k=l+k|0;u=k,v=jf(h,c+m|0,g+8|0),H[u>>2]=v;if(H[g+8>>2]){break j}m=I[e+4|0];F[k+4|0]=m;e=H[e+8>>2];q:{if(m){if(!(e>>>0<=f>>>0&(e|0)>=0)){H[g+8>>2]=9;break j}u=k,v=jf(h,c+e|0,g+8|0),H[u+8>>2]=v;if(!H[g+8>>2]){break q}break j}H[k+8>>2]=e}j=j+1|0;if((i|0)!=(j|0)){continue}break}}H[g+8>>2]=0}if(d){zb[H[h+8>>2]](h,d)}if(c){zb[H[h+8>>2]](h,c)}c=H[g+8>>2];H[g+4>>2]=c;if(c){break b}r:{s:{c=H[b+188>>2];if(!c){break s}f=H[b+192>>2];d=0;while(1){if(H[(d<<4)+f>>2]!=256){d=d+1|0;if((d|0)!=(c|0)){continue}break s}break}k=0;break r}c=yy(a,b,2);H[g+4>>2]=c;if(c){break b}c=H[b+188>>2];f=H[b+192>>2];k=1}if(!c){H[g+4>>2]=3;break b}h=H[b+100>>2];d=0;t:{u:{while(1){if(H[(d<<4)+f>>2]==4){c=83;e=H[((d<<4)+f|0)+12>>2];i=H[a+8>>2];if(e>>>0>>0){break t}if(ud(a,e-i|0)){break t}f=H[((d<<4)+f|0)+8>>2];H[g+28>>2]=0;e=Pe(a,g+28|0);c=H[g+28>>2];if(c){break t}if(((e|256)&-256)==256){break u}H[g+4>>2]=3;break b}d=d+1|0;if((d|0)!=(c|0)){continue}break}H[g+4>>2]=3;break b}i=e&4;v:{if(e>>>0<=255){if(i){d=hd(a,g+28|0);break v}d=Pe(a,g+28|0);break v}if(i){d=nc(a,g+28|0);break v}d=IA(a,g+28|0)}c=3;if(H[g+28>>2]){break t}w:{if(e>>>0<=255){c=8;if(d-1>>>0<(f>>>0)/12>>>0){break w}break t}c=8;if(d-1>>>0>=(f>>>0)/5>>>0){break t}}c=(d>>>0<65534?d:65534)+1|0;H[b+288>>2]=c;d=Ub(h,16,0,c,0,g+28|0);H[b+292>>2]=d;c=H[g+28>>2];if(c){break t}x:{y:{z:{A:{if(K[b+288>>2]<2){break A}c=d+16|0;f=1;if(e>>>0<=255){d=i?29840:29872;while(1){e=Ic(a,d,c);H[g+28>>2]=e;H[c+12>>2]=0;if(e){break y}if(!(G[c+2>>1]>=G[c>>1]&G[c+6>>1]>=(0-G[c+8>>1]|0))){H[c>>2]=0;H[c+4>>2]=0;G[c+8>>1]=0}c=c+16|0;f=f+1|0;if(f>>>0>2]){continue}break}break A}while(1){d=Ic(a,29904,g+8|0);if(d){break z}G[c>>1]=I[g+8|0]-128;G[c+2>>1]=I[g+9|0]-128;G[c+4>>1]=I[g+10|0]-128;e=I[g+11|0]-128|0;G[c+6>>1]=e;d=I[g+12|0];G[c+10>>1]=0;G[c+8>>1]=d-128;H[g+28>>2]=0;H[c+12>>2]=0;if(!((e|0)>=(128-d|0)&G[c+2>>1]>=G[c>>1])){H[c>>2]=0;H[c+4>>2]=0;G[c+8>>1]=0}c=c+16|0;f=f+1|0;if(f>>>0>2]){continue}break}}H[g+4>>2]=0;break x}H[g+28>>2]=d;H[c+12>>2]=0}c=H[b+292>>2];if(c){zb[H[h+8>>2]](h,c)}H[b+292>>2]=0;c=H[g+28>>2];H[g+4>>2]=c;if(c){break b}}e=H[b+188>>2];if(!e){H[g+4>>2]=3;break b}c=H[b+192>>2];d=0;B:{C:{D:{E:{while(1){if(H[c+(d<<4)>>2]==8){f=83;e=H[(c+(d<<4)|0)+12>>2];h=H[a+8>>2];if(e>>>0>>0){break C}if(ud(a,e-h|0)){break C}e=H[(c+(d<<4)|0)+8>>2];f=Jc(a,8);H[g+8>>2]=f;if(f){break C}h=LA(a);i=h&4;if(!i){break E}c=de(a);break D}d=d+1|0;if((e|0)!=(d|0)){continue}break}H[g+4>>2]=3;break b}c=LA(a)}wc(a);if(h>>>0>255){H[g+4>>2]=3;break b}f=3;c=c>>>0<65534?c:65534;if((c|0)!=(H[b+288>>2]-1|0)){break C}F:{if(!c){break F}f=(H[a+8>>2]+(c<<2)|0)+16|0;d=1;if(!i){while(1){j=Pe(a,g+8|0);H[(H[b+292>>2]+(d<<4)|0)+12>>2]=f+(e>>>0>>0?0:j);j=(c|0)==(d|0);d=d+1|0;if(!j){continue}break F}}while(1){j=hd(a,g+8|0);H[(H[b+292>>2]+(d<<4)|0)+12>>2]=f+(e>>>0>>0?0:j);j=(c|0)!=(d|0);d=d+1|0;if(j){continue}break}}f=H[g+8>>2];if(f){break C}G:{if(i){hd(a,g+8|0);f=H[g+8>>2];if(f){break C}hd(a,g+8|0);f=H[g+8>>2];if(f){break C}hd(a,g+8|0);f=H[g+8>>2];if(f){break C}hd(a,g+8|0);break G}Pe(a,g+8|0);f=H[g+8>>2];if(f){break C}Pe(a,g+8|0);f=H[g+8>>2];if(f){break C}Pe(a,g+8|0);f=H[g+8>>2];if(f){break C}Pe(a,g+8|0)}f=H[g+8>>2];if(!f){break B}}H[g+4>>2]=f;break b}H[b+312>>2]=h;H[g+4>>2]=0;f=0;i=xb-16|0;xb=i;h=3;e=H[b+188>>2];H:{if(!e){break H}l=b+296|0;d=H[b+192>>2];c=H[b+100>>2];while(1){if(H[d+(f<<4)>>2]==32){h=83;d=H[(d+(f<<4)|0)+12>>2];e=H[a+8>>2];if(d>>>0>>0){break H}if(ud(a,d-e|0)){break H}H[i+12>>2]=0;d=Pe(a,i+12|0);h=H[i+12>>2];if(h){break H}h=3;if(d>>>0>255){break H}m=d&4;I:{if(m){h=Ic(a,29936,l);break I}h=Ic(a,29968,l)}H[i+12>>2]=h;if(h){break H}h=8;d=J[b+298>>1];f=J[b+296>>1];if(d>>>0>>0|d>>>0>255){break H}e=J[b+302>>1];j=J[b+300>>1];if(e>>>0>>0|e>>>0>255){break H}d=N((e-j|0)+1|0,(d-f|0)+1|0);u=b,v=Ub(c,2,0,d,0,i+12|0),H[u+308>>2]=v;h=H[i+12>>2];if(h){break H}d=Jc(a,d<<1);H[i+12>>2]=d;J:{if(!d){e=J[b+304>>1];c=e>>>8|0;f=J[b+300>>1];K:{L:{if(c>>>0>>0|J[b+302>>1]>>0){break L}d=J[l>>1];e=e&255;if(d>>>0>e>>>0){break L}j=J[b+298>>1];if(j>>>0>=e>>>0){break K}}d=J[b+296>>1];G[b+304>>1]=d+(f<<8);j=J[b+298>>1];c=f;e=d}h=1;c=H[a+32>>2]+(((e&65535)-d|0)+N((j-d|0)+1|0,c-f|0)<<1)|0;c=I[c+!m|0]<<8|I[c+((m|0)!=0)|0];if((c|0)!=65535){c=c+1&65535;h=c>>>0>2]?c:1}c=H[b+292>>2];d=(h<<4)+c|0;e=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=e;e=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=e;M:{h=J[b+300>>1];if(h>>>0>J[b+302>>1]){break M}c=J[b+296>>1];d=J[b+298>>1];if(c>>>0>d>>>0){break M}f=H[b+308>>2];while(1){N:{if((c&65535)>>>0>d>>>0){break N}if(!m){while(1){d=wi(a);G[f>>1]=(d|0)==65535?-1:d+1|0;f=f+2|0;d=J[b+298>>1];c=c+1|0;if(d>>>0>=(c&65535)>>>0){continue}break N}}while(1){d=Tc(a);G[f>>1]=(d|0)==65535?-1:d+1|0;f=f+2|0;d=J[b+298>>1];c=c+1|0;if(d>>>0>=(c&65535)>>>0){continue}break}}h=h+1|0;if(J[b+302>>1]<(h&65535)>>>0){break M}c=J[l>>1];continue}}wc(a);break J}d=H[b+308>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+308>>2]=0}h=H[i+12>>2];break H}f=f+1|0;if((e|0)!=(f|0)){continue}break}}xb=i+16|0;H[g+4>>2]=h;if(h){break b}if(!k){a=yy(a,b,256);H[g+4>>2]=a;if(a){break b}}a=H[b+8>>2];H[b+8>>2]=a|18;if(I[b+199|0]){H[b+8>>2]=a|22}a=0;f=0;h=0;i=0;j=0;m=xb-16|0;xb=m;H[m+12>>2]=0;H[b+12>>2]=0;r=1;q=H[b+100>>2];l=H[b+280>>2];O:{P:{if((l|0)<=0){k=1;h=1;break P}o=H[b+284>>2];while(1){Q:{c=a;e=fc(H[o+N(c,12)>>2],11280);a=c+1|0;if((l|0)<=(a|0)){break Q}if(e){continue}}break}a=0;d=2;R:{if(e){break R}c=o+N(c,12)|0;if(!I[c+4|0]){break R}S:{switch(I[H[c+8>>2]]-73|0){case 0:case 6:case 32:case 38:break S;default:break R}}H[b+12>>2]=1;h=(I[H[c+8>>2]]&223)==79?11357:11500;d=3}while(1){T:{e=a;f=fc(H[o+N(a,12)>>2],11622);a=a+1|0;if((l|0)<=(a|0)){break T}if(f){continue}}break}a=0;k=1;U:{if(f){break U}e=o+N(e,12)|0;k=1;if(!I[e+4|0]){break U}k=1;if((I[H[e+8>>2]]|32)!=98){break U}H[b+12>>2]=d;j=11719;k=0}while(1){V:{d=a;e=fc(H[o+N(d,12)>>2],11814);a=d+1|0;if((l|0)<=(a|0)){break V}if(e){continue}}break}a=0;c=0;W:{if(e){break W}d=o+N(d,12)|0;c=0;if(!I[d+4|0]){break W}d=H[d+8>>2];e=I[d|0];c=0;if(!e){break W}c=0;if((e|0)==78){break W}c=0;if((e|0)==110){break W}c=d}while(1){X:{f=a;r=fc(H[o+N(a,12)>>2],11907);a=a+1|0;if((l|0)<=(a|0)){break X}if(r){continue}}break}d=0;e=0;Y:{if(r){break Y}Z:{a=o+N(f,12)|0;if(!I[a+4|0]){break Z}a=H[a+8>>2];f=I[a|0];if(!f|(f|0)==78){break Z}e=0;if((f|0)==110){break Y}d=a;i=ac(d);e=i+1|0;break Y}e=0}_:{if(k){j=0;break _}s=ac(j);e=(s+e|0)+1|0}f=0;if(h){t=ac(h);e=(t+e|0)+1|0;a=h}else{a=0}o=a;$:{if(!c){a=0;break $}a=ac(c);e=(e+a|0)+1|0;f=c}r=!h;h=!c;if(e){break O}}e=8;i=7;d=11981}c=pc(q,e,m+12|0);H[b+24>>2]=c;e=H[m+12>>2];if(!e){if(d){l=Ob(c,d,i);aa:{if(!i){break aa}e=0;c=0;if(i-1>>>0>=3){q=i&-4;d=0;while(1){n=c+l|0;if(I[n|0]==32){F[n|0]=45}n=l+(c|1)|0;if(I[n|0]==32){F[n|0]=45}n=l+(c|2)|0;if(I[n|0]==32){F[n|0]=45}n=l+(c|3)|0;if(I[n|0]==32){F[n|0]=45}c=c+4|0;d=d+4|0;if((q|0)!=(d|0)){continue}break}}d=i&3;if(!d){break aa}while(1){q=c+l|0;if(I[q|0]==32){F[q|0]=45}c=c+1|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}c=i+l|0}if(!k){if(H[b+24>>2]!=(c|0)){F[c|0]=32;c=c+1|0}c=Ob(c,j,s)+s|0}if(!r){if(H[b+24>>2]!=(c|0)){F[c|0]=32;c=c+1|0}c=Ob(c,o,t)+t|0}if(!h){if(H[b+24>>2]!=(c|0)){F[c|0]=32;c=c+1|0}f=Ob(c,f,a);ba:{if(!a){a=0;break ba}e=0;c=0;if(a-1>>>0>=3){h=a&-4;d=0;while(1){i=c+f|0;if(I[i|0]==32){F[i|0]=45}i=f+(c|1)|0;if(I[i|0]==32){F[i|0]=45}i=f+(c|2)|0;if(I[i|0]==32){F[i|0]=45}i=f+(c|3)|0;if(I[i|0]==32){F[i|0]=45}c=c+4|0;d=d+4|0;if((h|0)!=(d|0)){continue}break}}d=a&3;if(!d){break ba}while(1){h=c+f|0;if(I[h|0]==32){F[h|0]=45}c=c+1|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}c=a+f|0}F[c|0]=0;e=H[m+12>>2]}xb=m+16|0;H[g+4>>2]=e;if(e){break b}a=wh(b,10323);ca:{if(!(!a|!I[a+4|0])){u=b,v=jf(p,H[a+8>>2],g+4|0),H[u+20>>2]=v;if(!H[g+4>>2]){break ca}break b}H[b+20>>2]=0}H[b+28>>2]=1;H[b+16>>2]=H[b+288>>2];a=Ub(p,16,0,1,0,g+4|0);H[b+32>>2]=a;if(H[g+4>>2]){break b}H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;c=32767;d=H[b+208>>2]+H[b+204>>2]|0;e=d&32768?0-d|0:d;f=d;d=d>>31;d=(f^d)-d|0;G[a>>1]=d>>>0>32767?32767:e;f=wh(b,10453);da:{if(f){d=H[f+8>>2];e=d>>31;if((d^e)-e>>>0>327665){break da}c=(d+5|0)/10|0;c=c&32768?0-c|0:c;break da}c=ic(d>>>0>32767?32767:e<<16>>16,2,3)}G[a+2>>1]=c;c=wh(b,10604);if(c){d=H[c+8>>2];c=d>>31;c=(c^d)-c|0;if(c>>>0<=328898){c=ic(c,460800,72270)}else{c=32767}H[a+4>>2]=c}c=wh(b,10739);if(c){c=H[c+8>>2];d=c>>31;if((c^d)-d>>>0<=32767){c=c<<16;d=c>>16;c=((c|0)<0?0-d|0:d)<<6}else{c=2097088}H[a+12>>2]=c}d=wh(b,10842);c=0;ea:{if(!d){break ea}d=H[d+8>>2];e=d>>31;c=32767;if((d^e)-e>>>0>32767){break ea}c=(d&32768?0-d|0:d)<<16>>16}fa:{ga:{ha:{ia:{d=wh(b,10937);if(d){f=32767;d=H[d+8>>2];e=d>>31;if((d^e)-e>>>0>32767){break ia}f=d&32768?0-d|0:d;d=H[a+12>>2];if(d){break ga}d=H[a+4>>2];H[a+12>>2]=d;if(!(f&65535)){break fa}e=a+12|0;break ha}d=H[a+12>>2];if(d){break fa}d=H[a+4>>2];H[a+12>>2]=d;break fa}d=H[a+12>>2];if(d){break ga}d=H[a+4>>2];H[a+12>>2]=d;e=a+12|0}d=ic(d,f<<16>>16,72);H[e>>2]=d}if(!c|!(f&65535)){break fa}d=ic(d,c,f<<16>>16)}H[a+8>>2]=d;a=wh(b,11043);c=wh(b,11171);if(!(!a|!I[a+4|0]|(!c|!I[c+4|0]))){u=b,v=jf(p,H[c+8>>2],g+4|0),H[u+176>>2]=v;if(H[g+4>>2]){break b}u=b,v=jf(p,H[a+8>>2],g+4|0),H[u+180>>2]=v}if(H[g+4>>2]){break b}d=0;break a}H[g+4>>2]=c}d=3}xb=g+32|0;return d}function uja(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;l=xb-32|0;xb=l;a:{if(!b){n=1;if(!H[e>>2]|(!e|!f)){break a}H[e>>2]=0;break a}h=b;j=I[h+1|0];b=I[h|0];b:{if((b|0)==120){m=h;i=0;if((j|0)==45){break b}}g=h+1|0;m=0;c:{if(!j){break c}n=h;while(1){i=g;d:{if((b&255)!=45|I[n+2|0]!=45){break d}k=k?k:n;if((j|0)!=120){break d}m=i;break c}g=i+1|0;j=I[i+1|0];if(!j){break c}b=I[i|0];n=i;continue}}i=k?k:g}n=gE(m,c,d,105153,783)^1;b=gE(m,e,f,105278,784);if(!f|!e|(!H[e>>2]|b)){break a}H[l+24>>2]=h;b=h;e:{f:{g:{while(1){g=_c(b,105712);if(!g|g>>>0>=i>>>0){break g}b=g+8|0;g=I[g+8|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26){continue}break}H[f>>2]=1095782472;break f}b=h;h:{while(1){g=_c(b,105858);if(!g|g>>>0>=i>>>0){break h}b=g+8|0;g=I[g+8|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26){continue}break}H[f>>2]=1346851360;break f}b=h;i:{while(1){g=_c(b,106041);if(!g|g>>>0>=i>>>0){break i}b=g+8|0;g=I[g+8|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26){continue}break}H[f>>2]=1213809952;break f}b=h;j:{while(1){g=_c(b,106263);if(!g|g>>>0>=i>>>0){break j}b=g+8|0;g=I[g+8|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26){continue}break}H[f>>2]=1347571488;break f}b=h;k:{while(1){g=_c(b,106288);if(!g|g>>>0>=i>>>0){break k}b=g+7|0;g=I[g+7|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26){continue}break}H[f>>2]=1230000200;break f}b=h;l:{while(1){g=_c(b,106311);if(!g|g>>>0>=i>>>0){break l}b=g+5|0;g=I[g+5|0];if((g-48&255)>>>0<10|((g&-33)-65&255)>>>0<26){continue}break}H[f>>2]=1262961952;break f}if(Hc(h,i,106340)){H[f>>2]=1398362693;break f}if(Hc(h,i,106360)){H[f>>2]=1398362698;break f}if(Hc(h,i,106366)){H[f>>2]=1398362702;break f}m:{n:{switch(F[h|0]-97|0){case 0:b=1;if(fc(h+1|0,106392)){break m}H[f>>2]=1245859616;break e;case 2:b=1;g=h+1|0;if(uc(g,106445)){H[f>>2]=1514686496;break e}if(uc(g,106456)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,106501)){H[f>>2]=1514686496;break e}if(uc(g,106527)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163048)){H[f>>2]=1514686496;break e}if(uc(g,163059)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,106075)){H[f>>2]=1514686496;break e}if(uc(g,106109)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163070)){H[f>>2]=1514686496;break e}if(uc(g,163081)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163092)){H[f>>2]=1514686496;break e}if(uc(g,163103)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,124948)){H[f>>2]=1514686496;break e}if(uc(g,163114)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163125)){H[f>>2]=1514686496;break e}if(uc(g,163136)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,106178)){H[f>>2]=1514689312;break e}if(uc(g,106202)){H[f>>2]=1514689568;break e}if(uc(g,106221)){H[f>>2]=1514689312;break e}if(uc(g,163147)){H[f>>2]=1514689568;break e}if(uc(g,163155)){H[f>>2]=1514689312;break e}if(uc(g,163163)){H[f>>2]=1514689568;break e}if(uc(g,163171)){H[f>>2]=1514689312;break e}if(uc(g,163179)){H[f>>2]=1514689568;break e}if(uc(g,163187)){H[f>>2]=1514689312;break e}if(uc(g,163195)){H[f>>2]=1514689568;break e}if(uc(g,163203)){H[f>>2]=1514689312;break e}if(uc(g,163211)){H[f>>2]=1514689568;break e}if(uc(g,163219)){H[f>>2]=1514689312;break e}if(uc(g,163227)){H[f>>2]=1514689568;break e}if(uc(g,163235)){H[f>>2]=1514689312;break e}if(uc(g,163243)){H[f>>2]=1514689568;break e}o:{if(gc(g,163251,3)){break o}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break o}H[f>>2]=1514689568;break e}p:{if(gc(g,163267,3)){break p}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break p}H[f>>2]=1514689568;break e}q:{if(gc(g,163271,3)){break q}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break q}H[f>>2]=1514689568;break e}r:{if(gc(g,163275,3)){break r}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break r}H[f>>2]=1514689568;break e}s:{if(gc(g,163279,3)){break s}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break s}H[f>>2]=1514689568;break e}t:{if(gc(g,163283,3)){break t}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break t}H[f>>2]=1514689568;break e}u:{if(gc(g,163287,3)){break u}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break u}H[f>>2]=1514689568;break e}if(gc(g,163291,3)){break m}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break m}H[f>>2]=1514689568;break e;case 6:b=1;g=h+1|0;if(uc(g,163295)){H[f>>2]=1514686496;break e}if(uc(g,163306)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163317)){H[f>>2]=1514689312;break e}if(uc(g,163325)){H[f>>2]=1514689568;break e}if(uc(g,163333)){H[f>>2]=1230132256;break e}if(gc(g,163340,3)){break m}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break m}H[f>>2]=1514689568;break e;case 7:b=1;g=h+1|0;if(uc(g,163344)){H[f>>2]=1514686496;break e}if(uc(g,163355)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163366)){H[f>>2]=1514686496;break e}if(uc(g,163377)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163388)){H[f>>2]=1514689312;break e}if(uc(g,163396)){H[f>>2]=1514689568;break e}if(uc(g,163404)){H[f>>2]=1514689312;break e}if(uc(g,163412)){H[f>>2]=1514689568;break e}v:{if(gc(g,163420,3)){break v}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break v}H[f>>2]=1514689568;break e}if(gc(g,163424,3)){break m}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break m}H[f>>2]=1514689568;break e;case 8:b=1;g=h+1|0;if(!fc(g,163428)){H[f>>2]=1312904736;if(K[e>>2]<2){break e}H[f+4>>2]=1096042528;b=2;break e}if(!fc(g,163436)){H[f>>2]=1514689312;break e}if(fc(g,163441)){break m}H[f>>2]=1280596512;break e;case 11:b=1;if(!uc(h+1|0,163219)){break m}H[f>>2]=1514689312;break e;case 12:b=1;g=h+1|0;if(uc(g,106075)){H[f>>2]=1514686496;break e}if(uc(g,106109)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163171)){H[f>>2]=1514689312;break e}if(uc(g,163179)){H[f>>2]=1514689568;break e}w:{if(gc(g,163275,3)){break w}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break w}H[f>>2]=1514689568;break e}if(gc(g,163446,3)){break m}if(!Hc(h,i,163450)){break m}H[f>>2]=1297043028;break e;case 13:b=1;g=h+1|0;if(uc(g,163295)){H[f>>2]=1514686496;break e}if(uc(g,163306)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163317)){H[f>>2]=1514689312;break e}if(uc(g,163325)){H[f>>2]=1514689568;break e}x:{if(gc(g,163340,3)){break x}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break x}H[f>>2]=1514689568;break e}if(!fc(g,163454)){H[f>>2]=1313821216;break e}if(fc(g,163460)){break m}H[f>>2]=1314475552;break e;case 17:if(gc(h+1|0,163466,2)){break m}if(!Hc(h,i,163469)){break m}H[f>>2]=1297042464;b=1;if(K[e>>2]<2){break e}H[f+4>>2]=1380928800;b=2;break e;case 22:b=1;g=h+1|0;if(uc(g,163473)){H[f>>2]=1514686496;break e}if(uc(g,163484)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(uc(g,163495)){H[f>>2]=1514689312;break e}if(uc(g,163503)){H[f>>2]=1514689568;break e}if(gc(g,163511,3)){break m}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break m}H[f>>2]=1514689568;break e;case 24:b=1;if(!uc(h+1|0,163515)){break m}H[f>>2]=1514689312;break e;case 25:break n;default:break m}}b=1;g=h+1|0;if(uc(g,163523)){H[f>>2]=1514686496;break e}if(uc(g,163533)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!fc(g,163543)){H[f>>2]=1514689312;break e}if(uc(g,163553)){H[f>>2]=1514689312;break e}if(uc(g,163560)){H[f>>2]=1514689568;break e}if(!fc(g,163567)){H[f>>2]=1514689312;break e}if(gc(g,163573,2)){break m}if(Hc(h,i,163255)){H[f>>2]=1514686496;break e}if(Hc(h,i,163259)){H[f>>2]=1514689613;if(K[e>>2]<2){break e}H[f+4>>2]=1514686496;b=2;break e}if(!Hc(h,i,163263)){break m}H[f>>2]=1514689568;break e}g=ie(h,45);y:{if(!g|(i-h|0)<6){break y}b=g+1|0;h=ie(b,45);z:{if(h){h=h+(g^-1)|0;break z}h=ac(b)}if((h|0)!=3|((I[b|0]&223)-65&255)>>>0>25){break y}H[l+24>>2]=b}H[l+12>>2]=1409;H[l+16>>2]=0;H[l+8>>2]=151776;b=H[l+12>>2];A:{if((b|0)<=0){H[l+28>>2]=0;b=0;break A}h=b-1|0;p=H[l+8>>2];i=H[l+24>>2];b=ie(i,45);if(b){o=b-i|0;b=0;while(1){m=b+h>>>1|0;j=p+(m<<3)|0;k=ie(j,45);B:{if(k){k=k-j|0;break B}k=ac(j)}j=gc(i,j,k>>>0>>0?o:k);C:{if((j|0)<0){h=m-1|0;break C}if(!j){H[l+28>>2]=m;b=1;break A}b=m+1|0}if((b|0)<=(h|0)){continue}break}H[l+28>>2]=b;b=0;break A}o=ac(i);b=0;while(1){m=b+h>>>1|0;j=p+(m<<3)|0;k=ie(j,45);D:{if(k){k=k-j|0;break D}k=ac(j)}j=gc(i,j,k>>>0>>0?o:k);E:{if((j|0)>=0){if(!j){H[l+28>>2]=m;b=1;break A}b=m+1|0;break E}h=m-1|0}if((b|0)<=(h|0)){continue}break}H[l+28>>2]=b;b=0}if(b){b=H[l+28>>2];while(1){h=b;if(h){b=h-1|0;if(!fc((h<<3)+151776|0,(b<<3)+151776|0)){continue}}break}if(!H[e>>2]){b=0;break e}b=0;i=1409-h|0;i=i>>>0>1409?0:i;g=(h<<3)+151776|0;while(1){if((b|0)==(i|0)){b=i;break e}m=b+h<<3;j=H[m+151780>>2];if(!j){break e}if(fc(m+151776|0,g)){break e}H[(b<<2)+f>>2]=j;b=b+1|0;if(b>>>0>2]){continue}break}break e}i=H[l+24>>2];b=0;if(!g){g=ac(i)+i|0}if((g-i|0)!=3){break e}h=xb-16|0;xb=h;F:{if(!i){break F}g=I[i|0];if(!g){break F}F[h+12|0]=g;g=I[i+1|0];b=1;G:{if(!g){break G}F[h+13|0]=g;i=I[i+2|0];b=2;if(!i){break G}F[h+14|0]=i;b=3}if(b>>>0<=3){Nb(b+(h+12|0)|0,32,4-b|0)}b=I[h+12|0]|I[h+13|0]<<8|(I[h+14|0]<<16|I[h+15|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}xb=h+16|0;H[f>>2]=b&-538976257}b=1}H[e>>2]=b}if(!(!d|!c|(!n|!H[c>>2]))){b=0;H:{I:{J:{K:{L:{M:{N:{O:{P:{if((a|0)<=1298954604){if((a|0)<=1198877297){g=1651402546;if((a|0)==1113943655){break K}if((a|0)!=1147500129){break I}g=1684370994;break K}if((a|0)==1198877298){break P}if((a|0)==1198879349){break O}if((a|0)!=1265525857){break I}g=1802396722;break K}if((a|0)<=1332902240){if((a|0)==1298954605){break N}g=1836674354;if((a|0)==1299803506){break J}break I}if((a|0)==1332902241){break M}if((a|0)==1415671148){break L}if((a|0)!=1415933045){break I}g=1952803890;break K}g=1735029298;break K}g=1735750194;break K}g=1835822386;break K}g=1869773106;break K}g=1953328178}H[d>>2]=g|51;b=1;if(K[c>>2]<2){break H}}H[(b<<2)+d>>2]=g;b=b+1|0;if(b>>>0>=K[c>>2]){break H}}e=(b<<2)+d|0;Q:{R:{S:{T:{U:{if((a|0)<=1315663726){if(!a){break H}if((a|0)==1214870113){break T}if((a|0)!=1281453935){break U}d=1818324768;break Q}if((a|0)<=1500080488){if((a|0)==1315663727){break R}if((a|0)!=1449224553){break U}d=1986095392;break Q}if((a|0)==1500080489){break S}d=1835103336;if((a|0)==1517122664){break Q}}d=a|536870912;break Q}d=1801547361;break Q}d=2036932640;break Q}d=1852534560}H[e>>2]=d;b=b+1|0}H[c>>2]=b}xb=l+32|0}function ro(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,z=0,A=0,B=0,C=0,D=0;e=xb-176|0;xb=e;H[e+172>>2]=0;p=H[a+12>>2];m=H[a>>2];if(J[m+290>>1]>>0){G[m+290>>1]=c}H[a+20>>2]=b;t=65536;l=65536;if(!(F[a+16|0]&1)){g=H[H[a+4>>2]+44>>2];t=H[g+8>>2];l=H[g+4>>2]}v=H[H[m+128>>2]+52>>2];a:{b:{if(v){g=zb[H[H[v>>2]>>2]](H[v+4>>2],b,e+120|0)|0;H[e+172>>2]=g;if(g){break a}g=H[e+124>>2];H[a+28>>2]=g;H[e+160>>2]=0;H[e+164>>2]=0;H[e+152>>2]=0;H[e+156>>2]=0;H[e+144>>2]=0;H[e+148>>2]=0;H[e+136>>2]=0;H[e+140>>2]=0;H[e+128>>2]=0;H[e+132>>2]=0;f=H[e+120>>2];h=e+128|0;H[h+32>>2]=0;H[e+136>>2]=0;H[e+132>>2]=g;H[e+128>>2]=f;H[e+148>>2]=0;H[e+152>>2]=0;H[a+24>>2]=h;g=0;break b}g=jo(m,b,a+28|0)}f=H[a+28>>2];c:{if((f|0)>0){h=H[m+728>>2];if(!(h|H[H[m+128>>2]+52>>2])){H[e+172>>2]=8;break c}f=zb[H[m+520>>2]](a,b,g+h|0,f)|0;H[e+172>>2]=f;if(f){break c}C=e,D=zb[H[m+528>>2]](a)|0,H[C+172>>2]=D;zb[H[m+524>>2]](a);if(H[e+172>>2]){break c}f=H[a+28>>2]}if(!(J[a+32>>1]?f:0)){H[a+36>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+48>>2]=0}f=H[a>>2];h=H[a+24>>2];G[e+80>>1]=0;G[e>>1]=0;G[e+40>>1]=0;G[e+64>>1]=0;j=H[h+8>>2];zb[H[H[f+540>>2]+140>>2]](f,0,b,e+80|0,e+40|0);d:{if(I[f+292|0]){zb[H[H[f+540>>2]+140>>2]](f,1,b,e,e- -64|0);break d}i=H[a+48>>2];if(J[f+372>>1]!=65535){k=G[f+442>>1];G[e>>1]=k-i;i=k-G[f+444>>1]|0;f=i>>31;G[e+64>>1]=(f^i)-f;break d}k=G[f+220>>1];G[e>>1]=k-i;i=k-G[f+222>>1]|0;f=i>>31;G[e+64>>1]=(f^i)-f}f=bc(h,j);if(f){H[e+172>>2]=f;break c}h=G[e+80>>1];H[a+52>>2]=h;f=J[e+40>>1];H[a+56>>2]=f;j=G[e>>1];H[a+172>>2]=j;k=J[e+64>>1];H[a+176>>2]=k;if(!I[a+64|0]){H[a+60>>2]=f;F[a+64|0]=1}H[e+172>>2]=0;if(d){break c}d=H[a+28>>2];if(!(J[a+32>>1]?d:0)){g=H[a>>2];c=0;e:{if(H[H[g+96>>2]+64>>2]!=40){break e}d=H[a+156>>2];c=0;if(!d){break e}c=I[d+613|0]!=0&I[d+618|0]!=0}H[a+80>>2]=0;H[a+72>>2]=0;c=c?f>>>1|0:0;H[a+188>>2]=c;d=j+H[a+48>>2]|0;H[a+184>>2]=d;H[a+180>>2]=c;c=H[a+36>>2]-h|0;H[a+68>>2]=c;H[a+192>>2]=d-k;H[a+76>>2]=c+f;c=H[H[g+128>>2]+52>>2];f:{if(!c){break f}d=H[H[c>>2]+8>>2];if(!d){break f}H[e+92>>2]=0;H[e+88>>2]=f;H[e+84>>2]=0;H[e+80>>2]=h;if(zb[d|0](H[c+4>>2],b,0,e+80|0)|0){break f}d=G[e+80>>1];c=J[e+88>>1];H[a+172>>2]=0;H[a+176>>2]=0;H[a+56>>2]=c;H[a+52>>2]=d;if(I[a+64|0]){break f}H[a+60>>2]=c;F[a+64|0]=1}g:{if(!(I[m+9|0]&128?1:J[m+6>>1]&32767)){break g}H[e+76>>2]=16843009;H[e+64>>2]=65536;H[e+68>>2]=196610;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;H[e+80>>2]=H[a+68>>2];H[e+84>>2]=H[a+72>>2];H[e+88>>2]=H[a+76>>2];H[e+92>>2]=H[a+80>>2];H[e+96>>2]=H[a+180>>2];H[e+100>>2]=H[a+184>>2];H[e+104>>2]=H[a+188>>2];H[e+108>>2]=H[a+192>>2];H[e+40>>2]=262148;H[e+52>>2]=e- -64;H[e+48>>2]=e+76;H[e+44>>2]=e+80;b=io(H[a>>2],b,e+40|0,e,4);H[e+172>>2]=b;if(b){break c}H[a+68>>2]=H[e+80>>2];H[a+72>>2]=H[e+84>>2];H[a+76>>2]=H[e+88>>2];H[a+80>>2]=H[e+92>>2];H[a+180>>2]=H[e+96>>2];H[a+184>>2]=H[e+100>>2];H[a+188>>2]=H[e+104>>2];H[a+192>>2]=H[e+108>>2];b=H[H[a>>2]+740>>2];if(!(b&2)){H[a+60>>2]=((H[e+8>>2]-H[e>>2]|0)+32&-64)/64}if(b&16){break g}H[a+176>>2]=((H[e+24>>2]-H[e+16>>2]|0)+32&-64)/64}if(!(F[a+16|0]&1)){C=a,D=Rb(H[a+68>>2],l),H[C+68>>2]=D;C=a,D=Rb(H[a+76>>2],l),H[C+76>>2]=D;C=a,D=Rb(H[a+180>>2],l),H[C+180>>2]=D;C=a,D=Rb(H[a+184>>2],t),H[C+184>>2]=D;C=a,D=Rb(H[a+188>>2],l),H[C+188>>2]=D;C=a,D=Rb(H[a+192>>2],t),H[C+192>>2]=D}H[e+172>>2]=0;break c}n=H[a>>2];i=0;h:{if(H[H[n+96>>2]+64>>2]!=40){break h}o=H[a+156>>2];i=0;if(!o){break h}i=I[o+613|0]!=0&I[o+618|0]!=0}H[a+80>>2]=0;H[a+72>>2]=0;i=i?f>>>1|0:0;H[a+188>>2]=i;j=j+H[a+48>>2]|0;H[a+184>>2]=j;H[a+180>>2]=i;i=H[a+36>>2]-h|0;H[a+68>>2]=i;H[a+192>>2]=j-k;H[a+76>>2]=f+i;i=H[H[n+128>>2]+52>>2];i:{if(!i){break i}j=H[H[i>>2]+8>>2];if(!j){break i}H[e+92>>2]=0;H[e+88>>2]=f;H[e+84>>2]=0;H[e+80>>2]=h;j:{if(zb[j|0](H[i+4>>2],b,0,e+80|0)|0){break j}f=G[e+80>>1];d=J[e+88>>1];H[a+172>>2]=0;H[a+176>>2]=0;H[a+56>>2]=d;H[a+52>>2]=f;if(I[a+64|0]){break j}H[a+60>>2]=d;F[a+64|0]=1}d=H[a+28>>2]}d=zb[H[m+520>>2]](a,b,(g+H[m+728>>2]|0)+10|0,d-10|0)|0;H[e+172>>2]=d;if(d){break c}k:{d=G[a+32>>1];if((d|0)>0){b=zb[H[m+532>>2]](a)|0;H[e+172>>2]=b;if(b){break k}zb[H[m+524>>2]](a);b=0;j=xb-16|0;xb=j;f=H[a+12>>2];H[j+12>>2]=0;d=H[H[a>>2]+100>>2];g=H[a+72>>2];i=G[f+58>>1];c=H[f+60>>2]+(i<<3)|0;H[c>>2]=H[a+68>>2];H[c+4>>2]=g;g=H[a+80>>2];k=i+1|0;c=H[f+60>>2]+(k<<3)|0;H[c>>2]=H[a+76>>2];H[c+4>>2]=g;g=H[a+184>>2];o=i+2|0;c=H[f+60>>2]+(o<<3)|0;H[c>>2]=H[a+180>>2];H[c+4>>2]=g;g=H[a+192>>2];n=i+3|0;c=H[f+60>>2]+(n<<3)|0;H[c>>2]=H[a+188>>2];H[c+4>>2]=g;c=f- -64|0;F[i+H[c>>2]|0]=0;F[k+H[c>>2]|0]=0;F[o+H[c>>2]|0]=0;F[n+H[c>>2]|0]=0;c=i+4|0;g=H[a>>2];l:{if(I[g+9|0]&128?1:J[g+6>>1]&32767){b=Ub(d,8,0,c,0,j+12|0);if(H[j+12>>2]){break l}g=io(H[a>>2],H[a+20>>2],f+56|0,b,c);H[j+12>>2]=g;h=H[H[a>>2]+740>>2];if(!(h&2)){H[a+60>>2]=((H[(k<<3)+b>>2]-H[(i<<3)+b>>2]|0)+32&-64)/64}if(!(h&16)){H[a+176>>2]=((H[(n<<3)+b>>2]-H[(o<<3)+b>>2]|0)+32&-64)/64}if(g){break l}}g=H[a+16>>2];if(!(g&2)){g=J[f+58>>1];G[a+128>>1]=g;G[a+130>>1]=J[f+56>>1];H[a+132>>2]=H[f+76>>2];h=H[f+60>>2];H[a+136>>2]=h;l=H[f+80>>2];H[a+140>>2]=l;H[a+144>>2]=H[f+64>>2];q=H[f+68>>2];G[a+152>>1]=0;H[a+148>>2]=q;Ob(l,h,(g<<3)+32|0);g=H[a+16>>2]}l=0;h=0;m:{if(g&1){break m}g=H[f+60>>2];q=g+(c<<3)|0;c=H[H[a+4>>2]+44>>2];l=H[c+8>>2];h=H[c+4>>2];c=H[a>>2];if(!(J[c+6>>1]&32767|I[c+9|0]&128)){if((i|0)<=-4){break m}while(1){C=g,D=Rb(H[g>>2],h),H[C>>2]=D;C=g,D=Rb(H[g+4>>2],l),H[C+4>>2]=D;g=g+8|0;if(q>>>0>g>>>0){continue}break}break m}if((i|0)<-3){break m}c=b;while(1){C=g,D=Rb(H[c>>2],h)+32>>6,H[C>>2]=D;C=g,D=Rb(H[c+4>>2],l)+32>>6,H[C+4>>2]=D;c=c+8|0;g=g+8|0;if(q>>>0>g>>>0){continue}break}}g=H[a>>2];n:{if(!(!(I[g+740|0]&2)|I[a+16|0]&2)){C=a,D=Rb(H[a+68>>2],h),H[C+68>>2]=D;C=a,D=Rb(H[a+76>>2],h),H[C+76>>2]=D;g=H[a>>2];break n}c=H[f+60>>2]+(i<<3)|0;i=H[c+4>>2];H[a+68>>2]=H[c>>2];H[a+72>>2]=i;c=H[f+60>>2]+(k<<3)|0;i=H[c+4>>2];H[a+76>>2]=H[c>>2];H[a+80>>2]=i}o:{if(!(!(I[g+740|0]&16)|I[a+16|0]&2)){C=a,D=Rb(H[a+180>>2],h),H[C+180>>2]=D;C=a,D=Rb(H[a+184>>2],l),H[C+184>>2]=D;C=a,D=Rb(H[a+188>>2],h),H[C+188>>2]=D;C=a,D=Rb(H[a+192>>2],l),H[C+192>>2]=D;break o}c=H[f+60>>2]+(o<<3)|0;g=H[c+4>>2];H[a+180>>2]=H[c>>2];H[a+184>>2]=g;c=H[f+60>>2]+(n<<3)|0;g=H[c+4>>2];H[a+188>>2]=H[c>>2];H[a+192>>2]=g}if(I[a+16|0]&2){break l}G[a+128>>1]=J[a+128>>1]+4;C=j,D=_t(a,0),H[C+12>>2]=D}if(b){zb[H[d+8>>2]](d,b)}xb=j+16|0;a=H[j+12>>2];H[e+172>>2]=a;if(a){break c}Xk(p);break c}if((d|0)>=0){break k}n=H[m+100>>2];G[a+32>>1]=65535;f=a+204|0;p:{q:{d=H[a+204>>2];r:{if(d){g=c;while(1){if(!g){g=d;while(1){H[g+8>>2]=-1;g=H[g+4>>2];if(g){continue}break}if(Oq(f,b)){break r}H[d+8>>2]=b;break p}g=g-1|0;d=H[d+4>>2];if(d){continue}break}}if(!Oq(f,b)){break q}}H[e+172>>2]=21;break k}d=pc(n,12,e+172|0);if(H[e+172>>2]){break k}H[d+8>>2]=b;if(!(!f|!d)){g=H[f+4>>2];H[d>>2]=g;H[d+4>>2]=0;H[(g?g+4|0:f)>>2]=d;H[f+4>>2]=d}}j=G[p+22>>1];w=G[p+20>>1];d=zb[H[m+536>>2]](a)|0;H[e+172>>2]=d;if(d){break k}z=H[a+164>>2];zb[H[m+524>>2]](a);if(I[m+9|0]&128?1:J[m+6>>1]&32767){s=H[p+84>>2];d=s+4|0;G[e+80>>1]=d;G[e+82>>1]=d;f=0;q=d<<16>>16;i=Ub(n,8,0,q,0,e+172|0);h=0;g=0;d=0;s:{if(H[e+172>>2]){break s}k=Ub(n,1,0,q,0,e+172|0);d=0;if(H[e+172>>2]){break s}o=Ub(n,2,0,q,0,e+172|0);d=0;if(H[e+172>>2]){break s}g=Ub(n,8,0,q,0,e+172|0);d=0;if(H[e+172>>2]){break s}s=s<<16;u=s>>16;if((s|0)>0){d=H[p+88>>2];while(1){r=i+(f<<3)|0;H[r>>2]=H[d+8>>2];H[r+4>>2]=H[d+12>>2];F[f+k|0]=1;G[o+(f<<1)>>1]=h;d=d+32|0;h=h+1|0;f=h<<16>>16;if((u|0)>(f|0)){continue}break}}d=i+(f<<3)|0;H[d>>2]=H[a+68>>2];H[d+4>>2]=H[a+72>>2];F[f+k|0]=1;G[o+(f<<1)>>1]=h;f=h+1|0;d=f<<16>>16;r=i+(d<<3)|0;H[r>>2]=H[a+76>>2];H[r+4>>2]=H[a+80>>2];F[d+k|0]=1;G[o+(d<<1)>>1]=f;f=h+2|0;d=f<<16>>16;r=i+(d<<3)|0;H[r>>2]=H[a+180>>2];H[r+4>>2]=H[a+184>>2];F[d+k|0]=1;G[o+(d<<1)>>1]=f;f=h+3|0;d=f<<16>>16;h=i+(d<<3)|0;H[h>>2]=H[a+188>>2];H[h+4>>2]=H[a+192>>2];F[d+k|0]=1;G[o+(d<<1)>>1]=f;H[e+92>>2]=o;H[e+88>>2]=k;H[e+84>>2]=i;b=io(m,b,e+80|0,g,q);H[e+172>>2]=b;t:{if(b){break t}u:{if((s|0)<=0){d=0;break u}b=H[p+88>>2];d=0;f=0;while(1){if(I[b+4|0]&2){d=i+(d<<3)|0;H[b+8>>2]=G[d>>1];H[b+12>>2]=G[d+4>>1]}b=b+32|0;f=f+1|0;d=f<<16>>16;if((u|0)>(d|0)){continue}break}}b=i+(d<<3)|0;H[a+68>>2]=H[b>>2];H[a+72>>2]=H[b+4>>2];H[a+76>>2]=H[b+8>>2];H[a+80>>2]=H[b+12>>2];H[a+180>>2]=H[b+16>>2];H[a+184>>2]=H[b+20>>2];H[a+188>>2]=H[b+24>>2];H[a+192>>2]=H[b+28>>2];b=H[m+740>>2];if(!(b&2)){d=(q<<3)+g|0;H[a+60>>2]=((H[d-24>>2]-H[d-32>>2]|0)+32&-64)/64}if(b&16){break t}b=(q<<3)+g|0;H[a+176>>2]=((H[b-8>>2]-H[b-16>>2]|0)+32&-64)/64}f=o;h=i;d=k}if(h){zb[H[n+8>>2]](n,h)}if(d){zb[H[n+8>>2]](n,d)}if(f){zb[H[n+8>>2]](n,f)}if(g){zb[H[n+8>>2]](n,g)}if(H[e+172>>2]){break c}}b=H[a+16>>2];if(!(b&1)){C=a,D=Rb(H[a+68>>2],l),H[C+68>>2]=D;C=a,D=Rb(H[a+76>>2],l),H[C+76>>2]=D;C=a,D=Rb(H[a+180>>2],l),H[C+180>>2]=D;C=a,D=Rb(H[a+184>>2],t),H[C+184>>2]=D;C=a,D=Rb(H[a+188>>2],l),H[C+188>>2]=D;C=a,D=Rb(H[a+192>>2],t),H[C+192>>2]=D;b=H[a+16>>2]}if(b&1024){Xk(p);H[H[a+8>>2]+72>>2]=1668246896;break c}n=H[p+48>>2];o=H[p+84>>2];q=H[a+28>>2];t=H[a+24>>2];Xk(p);v:{if(!o){g=0;b=j;break v}s=c+1|0;b=0;while(1){c=G[p+22>>1];d=H[a+176>>2];f=H[a+60>>2];h=H[a+188>>2];i=H[a+192>>2];k=H[a+180>>2];l=H[a+184>>2];u=H[a+76>>2];r=H[a+80>>2];A=H[a+68>>2];B=H[a+72>>2];x=b<<5;g=n<<5;y=ro(a,H[x+(g+H[p+52>>2]|0)>>2],s,0);H[e+172>>2]=y;if(y){break c}g=x+(g+H[p+52>>2]|0)|0;if(!(I[g+5|0]&2)){H[a+188>>2]=h;H[a+192>>2]=i;H[a+180>>2]=k;H[a+184>>2]=l;H[a+76>>2]=u;H[a+80>>2]=r;H[a+68>>2]=A;H[a+72>>2]=B;H[a+176>>2]=d;H[a+60>>2]=f}u=J[p+22>>1];if((u|0)!=(c&65535)){l=0;i=xb-32|0;xb=i;k=H[a+12>>2];H[i+12>>2]=H[k+24>>2]+(c<<3);G[i+10>>1]=J[k+22>>1]-c;h=J[g+4>>1];r=h&200;if(r){Wg(i+8|0,g+16|0);h=J[g+4>>1]}f=H[g+12>>2];d=H[g+8>>2];w:{x:{if(!(h&2)){l=21;d=d+j|0;if(d>>>0>=c>>>0){break w}c=c+f|0;if(c>>>0>=G[k+22>>1]>>>0){break w}f=d<<3;d=H[k+24>>2];h=f+d|0;c=d+(c<<3)|0;f=H[h+4>>2]-H[c+4>>2]|0;d=H[h>>2]-H[c>>2]|0;break x}if(!(d|f)){break w}if(!(!r|!(h&2048))){c=sr(H[g+16>>2],H[g+20>>2]);h=sr(H[g+28>>2],H[g+24>>2]);d=Rb(d,c);f=Rb(f,h)}if(F[a+16|0]&1){break x}c=H[H[a+4>>2]+44>>2];h=H[c+8>>2];d=Rb(d,H[c+4>>2]);f=Rb(f,h);if(!(I[g+4|0]&4)|I[a+16|0]&2){break x}d=H[H[H[a>>2]+96>>2]+64>>2]==35?d+32&-64:d;f=f+32&-64}l=0;if(!(d|f)){break w}je(i+8|0,d,f)}xb=i+32|0;H[e+172>>2]=l;if(l){break c}}b=b+1|0;if((o|0)!=(b|0)){continue}break}b=u<<16>>16}H[a+164>>2]=z;H[a+28>>2]=q;H[a+24>>2]=t;if(!(!g|I[a+16|0]&2|(!(F[g+5|0]&1)|b>>>0<=j>>>0))){g=xb-16|0;xb=g;b=H[a+12>>2];d=G[b+22>>1];c=d+4|0;y:{if(!(!c|K[b+4>>2]>=G[b+58>>1]+(c+d|0)>>>0)){d=ee(b,c,0);if(d){break y}d=G[b+22>>1]}c=H[b+24>>2]+(d<<3)|0;d=H[a+72>>2];H[c>>2]=H[a+68>>2];H[c+4>>2]=d;d=H[a+80>>2];c=H[b+24>>2]+(G[b+22>>1]<<3)|0;H[c+8>>2]=H[a+76>>2];H[c+12>>2]=d;d=H[a+184>>2];c=H[b+24>>2]+(G[b+22>>1]<<3)|0;H[c+16>>2]=H[a+180>>2];H[c+20>>2]=d;d=H[a+192>>2];c=H[b+24>>2]+(G[b+22>>1]<<3)|0;H[c+24>>2]=H[a+188>>2];H[c+28>>2]=d;F[H[b+28>>2]+G[b+22>>1]|0]=0;F[(G[b+22>>1]+H[b+28>>2]|0)+1|0]=0;F[(G[b+22>>1]+H[b+28>>2]|0)+2|0]=0;F[(G[b+22>>1]+H[b+28>>2]|0)+3|0]=0;c=H[a+24>>2];d=bc(c,H[a+164>>2]);H[g+12>>2]=d;if(d){break y}b=nc(c,g+12|0);d=H[g+12>>2];if(d){break y}z:{if(b>>>0>J[H[a>>2]+286>>1]){d=22;if((b|0)>H[a+28>>2]){break y}d=H[a+156>>2];H[g+8>>2]=H[d+392>>2];d=$t(H[d+8>>2],g+8|0,d+396|0,b);H[g+12>>2]=d;h=H[a+156>>2];H[h+392>>2]=J[g+8>>1];if(!d){break z}break y}if(!b){d=0;break y}h=H[a+156>>2]}d=wd(c,H[h+396>>2],b);H[g+12>>2]=d;if(d){break y}c=H[H[a+156>>2]+396>>2];d=H[a+8>>2];H[d+140>>2]=b;H[d+136>>2]=c;b=H[a+12>>2];f=J[b+22>>1];G[a+128>>1]=f-j;G[a+130>>1]=J[b+20>>1]-w;c=j<<3;H[a+132>>2]=c+H[b+40>>2];H[a+136>>2]=c+H[b+24>>2];H[a+140>>2]=c+H[b+44>>2];d=H[b+28>>2]+j|0;H[a+144>>2]=d;b=H[b+32>>2];G[a+152>>1]=j;c=1;H[a+148>>2]=b+(w<<1);if((f|0)!=(j&65535)){F[d|0]=I[d|0]&231;d=J[a+128>>1];if(d>>>0>=2){while(1){b=H[a+144>>2]+c|0;F[b|0]=I[b|0]&231;c=c+1|0;d=J[a+128>>1];if(c>>>0>>0){continue}break}}b=d+4|0}else{b=4}G[a+128>>1]=b;d=_t(a,1)}xb=g+16|0;H[e+172>>2]=d;if(d){break c}}if(!H[p+48>>2]|!(I[H[p+52>>2]+5|0]&4)){break c}H[p+36>>2]=H[p+36>>2]|64;break c}zb[H[m+524>>2]](a)}if(!v){break a}a=H[H[m+128>>2]+52>>2];zb[H[H[a>>2]+4>>2]](H[a+4>>2],e+120|0)}xb=e+176|0;return H[e+172>>2]}function RH(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,y=0,z=0;g=xb-304|0;xb=g;a:{b:{switch(I[a+3|0]){case 0:H[g+4>>2]=0;H[g+8>>2]=0;F[g|0]=0;c=H[b+12>>2];H[g+292>>2]=H[b+16>>2];H[g+288>>2]=a+8;a=H[c+32>>2];if((a|0)==-1){a=De(c)}H[g+296>>2]=a;a=0;h=g+288|0;c=H[h+4>>2];H[c+64>>2]=0;c:{if(!I[c+60|0]){break c}while(1){i=K[c+68>>2]<=r>>>0;d=0;d:{if(i){break d}b=H[H[c+80>>2]+N(r,20)>>2];d=2;if((b|0)==65535){break d}e=H[h>>2];d=I[e+2|0]|I[e+3|0]<<8;j=b;f=((d<<8|d>>>8)&65535)+e|0;b=I[f|0]|I[f+1|0]<<8;e=j-((b<<8|b>>>8)&65535)|0;b=I[f+2|0]|I[f+3|0]<<8;d=1;if(e>>>0>=((b<<8|b>>>8)&65535)>>>0){break d}d=I[(e+f|0)+4|0]}f=H[h>>2];m=I[f|0]|I[f+1|0]<<8;n=(m<<8|m>>>8)&65535;o=n>>>0>d>>>0;e=N(a,n);b=I[f+4|0]|I[f+5|0]<<8;p=(b<<8|b>>>8)&65535;s=p+f|0;b=I[f+6|0]|I[f+7|0]<<8;q=f+((b<<8|b>>>8)&65535)|0;l=(I[((o?d:1)+e|0)+s|0]<<2)+q|0;b=I[l|0]|I[l+1|0]<<8;b=(((b<<8|b>>>8)&65535)-p|0)/(n|0)|0;k=I[l+2|0]|I[l+3|0]<<8;j=H[g+4>>2];f=H[g+8>>2];e:{f:{if(j>>>0>>0?k&3840:0){break f}if(!(!a|!(k&64?b:1))){a=q+(I[s+(o?d:1)|0]<<2)|0;d=I[a+2|0]|I[a+3|0]<<8;if(f>>>0>j>>>0?d&3840:0){break f}a=I[a|0]|I[a+1|0]<<8;if((d^k)&64|(b|0)!=((((a<<8|a>>>8)&65535)-p|0)/(n|0)|0)){break f}}if(!(I[(q+(I[s+(e+!m|0)|0]<<2)|0)+3|0]&15)|f>>>0<=j>>>0){break e}}a=I[c+61|0]?H[c+72>>2]:r;if(i|!a){break e}Rc(c,3,a-1|0,r+1|0,1,1)}pt(g,h,l);a=H[h+4>>2];c=H[a+64>>2];if((c|0)==H[a+68>>2]|!I[a+60|0]){break c}g:{if(I[l+2|0]&64){d=H[a+152>>2];H[a+152>>2]=d-1;if((d|0)>0){break g}}if(I[a+61|0]){h:{if(H[a+84>>2]==H[a+80>>2]){d=c;if(H[a+72>>2]==(c|0)){break h}}if(!ec(a,1,1)){break g}d=H[a+80>>2]+N(H[a+64>>2],20)|0;c=H[d+4>>2];e=H[a+84>>2]+N(H[a+72>>2],20)|0;H[e>>2]=H[d>>2];H[e+4>>2]=c;H[e+16>>2]=H[d+16>>2];c=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=c;c=H[a+64>>2];d=H[a+72>>2]}H[a+72>>2]=d+1}H[a+64>>2]=c+1}c=H[h+4>>2];if(!I[c+60|0]){break c}r=H[c+64>>2];a=b;continue}}c=I[g|0]!=0;break a;case 1:F[g|0]=0;H[g+4>>2]=b;d=H[b+68>>2];F[g+12|0]=0;H[g+8>>2]=d;d=I[d+4|0]|I[d+5|0]<<8;e=a+8|0;H[g+20>>2]=e;H[g+16>>2]=0;F[g+13|0]=(d|0)!=0;a=I[a+16|0]|I[a+17|0]<<8;H[g+24>>2]=e+((a<<8|a>>>8)&65535);d=H[b+12>>2];H[g+292>>2]=H[b+16>>2];H[g+288>>2]=e;a=H[d+32>>2];if((a|0)==-1){a=De(d)}H[g+296>>2]=a;a=0;x=g+288|0;r=H[x+4>>2];H[r+64>>2]=0;i:{if(!I[r+60|0]){break i}while(1){e=H[r+68>>2];f=e>>>0<=c>>>0;b=0;j:{if(f){break j}d=H[H[r+80>>2]+N(c,20)>>2];b=2;if((d|0)==65535){break j}i=H[x>>2];b=I[i+2|0]|I[i+3|0]<<8;j=((b<<8|b>>>8)&65535)+i|0;b=I[j|0]|I[j+1|0]<<8;i=d-((b<<8|b>>>8)&65535)|0;d=I[j+2|0]|I[j+3|0]<<8;b=1;if(i>>>0>=((d<<8|d>>>8)&65535)>>>0){break j}b=I[(i+j|0)+4|0]}j=H[x>>2];o=I[j|0]|I[j+1|0]<<8;m=(o<<8|o>>>8)&65535;p=m>>>0>b>>>0;i=N(a,m);d=I[j+4|0]|I[j+5|0]<<8;s=(d<<8|d>>>8)&65535;q=s+j|0;d=I[j+6|0]|I[j+7|0]<<8;k=j+((d<<8|d>>>8)&65535)|0;t=(I[((p?b:1)+i|0)+q|0]<<3)+k|0;d=I[t|0]|I[t+1|0]<<8;d=(((d<<8|d>>>8)&65535)-s|0)/(m|0)|0;j=!I[g+12|0]&(c|0)==(e|0);k:{l:{if(!j&((I[t+4|0]|I[t+5|0]<<8)!=65535|(I[t+6|0]|I[t+7|0]<<8)!=65535)){break l}m:{if(!a){break m}e=I[t+2|0]|I[t+3|0]<<8;if(!(e&64?d:1)){break m}b=k+(I[q+(p?b:1)|0]<<3)|0;if(!j&((I[b+4|0]|I[b+5|0]<<8)!=65535|(I[b+6|0]|I[b+7|0]<<8)!=65535)){break l}a=I[b|0]|I[b+1|0]<<8;if((e^(I[b+2|0]|I[b+3|0]<<8))&64|(d|0)!=((((a<<8|a>>>8)&65535)-s|0)/(m|0)|0)){break l}}if(j){break k}a=k+(I[q+(i+!o|0)|0]<<3)|0;if((I[a+4|0]|I[a+5|0]<<8)!=65535){break l}if((I[a+6|0]|I[a+7|0]<<8)==65535){break k}}a=I[r+61|0]?H[r+72>>2]:c;if(f|!a){break k}Rc(r,3,a-1|0,c+1|0,1,1)}o=0;u=H[x+4>>2];e=H[u+64>>2];n:{if(I[g+12|0]?0:(e|0)==H[u+68>>2]){break n}c=H[g+4>>2];p=H[c+24>>2];h=H[g+24>>2];s=H[g+20>>2];v=H[u+80>>2];a=H[g+16>>2];k=v+N(a,20)|0;b=I[t+4|0]|I[t+5|0]<<8;i=h+(s+((H[k>>2]+((b<<8|b>>>8)&65535)<<1)-h|0)&-2)|0;o:{if(p>>>0>i>>>0){break o}b=H[c+28>>2];if(b>>>0>>0|b-i>>>0<2){break o}b=H[c+32>>2]-2|0;H[c+32>>2]=b;if((b|0)<=0){break o}q=I[i|0]|I[i+1|0]<<8;if(!q){break o}e=e+1|0;b=H[u+68>>2];l=b>>>0>e>>>0?e:b;n=l-a|0;p:{if(n>>>0<2){break p}r=H[u+144>>2]|32;H[u+144>>2]=r;if(a>>>0>=l>>>0){break p}w=-1;b=a;j=l+(a^-1)|0;if(j>>>0>=3){f=n&-4;while(1){m=N(b,20)+v|0;e=H[m+8>>2];i=e>>>0>w>>>0?w:e;e=H[m+28>>2];i=e>>>0>i>>>0?i:e;e=H[m+48>>2];i=e>>>0>i>>>0?i:e;e=H[m+68>>2];w=e>>>0>i>>>0?i:e;b=b+4|0;o=o+4|0;if((f|0)!=(o|0)){continue}break}}i=n&3;if(i){f=0;while(1){e=H[(N(b,20)+v|0)+8>>2];w=e>>>0>w>>>0?w:e;b=b+1|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}}b=a;if(n&1){b=N(a,20)+v|0;if(H[b+8>>2]!=(w|0)){H[u+144>>2]=r;H[b+4>>2]=H[b+4>>2]|3}b=a+1|0}if(!j){break p}while(1){e=N(b,20)+v|0;if(H[e+8>>2]!=(w|0)){r=r|32;H[u+144>>2]=r;H[e+4>>2]=H[e+4>>2]|3}e=N(b+1|0,20)+v|0;if(H[e+8>>2]!=(w|0)){r=r|32;H[u+144>>2]=r;H[e+4>>2]=H[e+4>>2]|3}b=b+2|0;if((l|0)!=(b|0)){continue}break}}b=(q<<8|q>>>8)&65535;H[k>>2]=b;if(I[g+13|0]){y=N(a,20)+v|0,z=Ye(H[g+8>>2],b),G[y+12>>1]=z;c=H[g+4>>2];p=H[c+24>>2];h=H[g+24>>2];v=H[u+80>>2];s=H[g+20>>2]}F[g|0]=1}b=H[u+64>>2];a=H[u+68>>2]-1|0;e=a>>>0>b>>>0?b:a;b=N(e,20)+v|0;a=I[t+6|0]|I[t+7|0]<<8;i=(((H[b>>2]+((a<<8|a>>>8)&65535)<<1)-h|0)+s&-2)+h|0;q:{if(i>>>0

>>0){break q}a=H[c+28>>2];if(a>>>0>>0|a-i>>>0<2){break q}a=H[c+32>>2]-2|0;H[c+32>>2]=a;if((a|0)<=0){break q}a=I[i|0]|I[i+1|0]<<8;if(!a){break q}a=(a<<8|a>>>8)&65535;H[b>>2]=a;if(I[g+13|0]){y=N(e,20)+v|0,z=Ye(H[g+8>>2],a),G[y+12>>1]=z}F[g|0]=1}if(!(I[t+2|0]&128)){break n}F[g+12|0]=1;H[g+16>>2]=H[u+64>>2]}a=H[x+4>>2];c=H[a+64>>2];if((c|0)==H[a+68>>2]|!I[a+60|0]){break i}r:{if(I[t+2|0]&64){b=H[a+152>>2];H[a+152>>2]=b-1;if((b|0)>0){break r}}if(I[a+61|0]){s:{if(H[a+84>>2]==H[a+80>>2]){b=c;if(H[a+72>>2]==(c|0)){break s}}if(!ec(a,1,1)){break r}c=H[a+80>>2]+N(H[a+64>>2],20)|0;b=H[c+4>>2];e=H[a+84>>2]+N(H[a+72>>2],20)|0;H[e>>2]=H[c>>2];H[e+4>>2]=b;H[e+16>>2]=H[c+16>>2];b=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=b;c=H[a+64>>2];b=H[a+72>>2]}H[a+72>>2]=b+1}H[a+64>>2]=c+1}r=H[x+4>>2];if(!I[r+60|0]){break i}c=H[r+64>>2];a=d;continue}}c=I[g|0]!=0;break a;case 2:F[g|0]=0;d=a+8|0;H[g+8>>2]=d;H[g+4>>2]=b;c=I[a+16|0]|I[a+17|0]<<8;H[g+12>>2]=d+((c<<8|c>>>8)&65535);c=I[a+18|0]|I[a+19|0]<<8;H[g+16>>2]=d+((c<<8|c>>>8)&65535);a=I[a+20|0]|I[a+21|0]<<8;H[g+24>>2]=0;H[g+20>>2]=d+((a<<8|a>>>8)&65535);c=H[b+12>>2];H[g+292>>2]=H[b+16>>2];H[g+288>>2]=d;a=H[c+32>>2];if((a|0)==-1){a=De(c)}H[g+296>>2]=a;a=0;n=g+288|0;b=H[n+4>>2];H[b+72>>2]=0;H[b+64>>2]=0;F[b+61|0]=1;F[b+62|0]=0;H[b+84>>2]=H[b+80>>2];c=H[n+4>>2];H[c+64>>2]=0;t:{if(!I[c+60|0]){break t}while(1){i=K[c+68>>2]<=l>>>0;d=0;u:{if(i){break u}b=H[H[c+80>>2]+N(l,20)>>2];d=2;if((b|0)==65535){break u}e=H[n>>2];d=I[e+2|0]|I[e+3|0]<<8;j=b;f=((d<<8|d>>>8)&65535)+e|0;b=I[f|0]|I[f+1|0]<<8;e=j-((b<<8|b>>>8)&65535)|0;b=I[f+2|0]|I[f+3|0]<<8;d=1;if(e>>>0>=((b<<8|b>>>8)&65535)>>>0){break u}d=I[(e+f|0)+4|0]}f=H[n>>2];p=I[f|0]|I[f+1|0]<<8;o=(p<<8|p>>>8)&65535;s=o>>>0>d>>>0;e=N(a,o);b=I[f+4|0]|I[f+5|0]<<8;q=(b<<8|b>>>8)&65535;k=q+f|0;b=I[f+6|0]|I[f+7|0]<<8;j=f+((b<<8|b>>>8)&65535)|0;m=(I[((s?d:1)+e|0)+k|0]<<2)+j|0;b=I[m|0]|I[m+1|0]<<8;b=(((b<<8|b>>>8)&65535)-q|0)/(o|0)|0;f=I[m+2|0]|I[m+3|0]<<8;v:{w:{if(f&65343){break w}if(!(!a|!(f&64?b:1))){a=j+(I[k+(s?d:1)|0]<<2)|0;d=I[a+2|0]|I[a+3|0]<<8;if(d&65343){break w}a=I[a|0]|I[a+1|0]<<8;if((d^f)&64|(b|0)!=((((a<<8|a>>>8)&65535)-q|0)/(o|0)|0)){break w}}a=j+(I[k+(e+!p|0)|0]<<2)|0;if(!((I[a+2|0]|I[a+3|0]<<8)&65343)){break v}}a=I[c+61|0]?H[c+72>>2]:l;if(i|!a){break v}Rc(c,3,a-1|0,l+1|0,1,1)}q=0;h=H[n+4>>2];a=I[m+2|0]|I[m+3|0]<<8;if(a&128){c=H[g+24>>2];x:{if(!c){f=H[h+72>>2];c=0;break x}f=H[h+72>>2];c=c-((f|0)==H[(((c-1&63)<<2)+g|0)+28>>2])|0}H[g+24>>2]=c+1;H[(((c&63)<<2)+g|0)+28>>2]=f}a=a&65343;y:{if(!a){break y}o=H[g+24>>2];if(!o|K[h+64>>2]>=K[h+68>>2]){break y}i=H[h+72>>2];c=H[g+8>>2]+((a<<8|a>>>8)&65535)|0;a=H[g+12>>2];l=(c-a&-4)+a|0;while(1){z:{if(!o){H[g+24>>2]=0;break z}o=o-1|0;e=((o&63)<<2)+g|0;if(!bf(h,H[e+28>>2])){break y}p=H[g+4>>2];f=H[p+24>>2];if(f>>>0>l>>>0){break z}s=H[p+28>>2];if(s>>>0>>0|s-l>>>0<4){break z}d=H[p+32>>2];a=d-4|0;H[p+32>>2]=a;if((a|0)<=0){break z}a=I[l|0];j=I[l+3|0]|(I[l+1|0]<<16|a<<24|I[l+2|0]<<8);k=(H[H[h+80>>2]+N(H[h+64>>2],20)>>2]+(a<<25&1073741824)|0)+(j&1073741823)|0;c=H[g+8>>2];a=H[g+16>>2];k=(k+(c-a>>>1|0)<<1)+a|0;if(k>>>0>>0|k>>>0>s>>>0|s-k>>>0<2){break z}a=d-6|0;H[p+32>>2]=a;if((a|0)<=0){break z}a=I[k|0]|I[k+1|0]<<8;q=((a<<8|a>>>8)&65535)+q|0;if(j>>>0>=1073741824){a=H[g+20>>2];q=(c+q|0)-a>>>1|0;c=(q<<1)+a|0;if(c>>>0>>0|c>>>0>s>>>0|s-c>>>0<2){break z}a=d-8|0;H[p+32>>2]=a;if((a|0)<=0){break z}a=I[c|0]|I[c+1|0]<<8;if(!ec(h,1,1)){break y}d=(a<<8|a>>>8)&65535;a=H[h+64>>2];A:{if(a>>>0>2]){k=H[h+72>>2];f=H[h+84>>2];a=H[h+80>>2]+N(a,20)|0;break A}f=H[h+84>>2];k=H[h+72>>2];a=f+N(k?k-1|0:0,20)|0}c=H[a+4>>2];f=N(k,20)+f|0;H[f>>2]=H[a>>2];H[f+4>>2]=c;H[f+16>>2]=H[a+16>>2];c=H[a+12>>2];H[f+8>>2]=H[a+8>>2];H[f+12>>2]=c;H[f>>2]=d;H[h+64>>2]=H[h+64>>2]+1;H[h+72>>2]=H[h+72>>2]+1;a=H[g+24>>2]-1|0;c=H[(((a&63)<<2)+g|0)+28>>2];if(a>>>0>o>>>0){while(1){H[g+24>>2]=a;if(!bf(h,H[(((a&63)<<2)+g|0)+28>>2])){break y}if(!ec(h,1,1)){break y}a=H[h+64>>2];B:{if(a>>>0>2]){k=H[h+80>>2]+N(a,20)|0;a=H[h+72>>2];f=H[h+84>>2];break B}f=H[h+84>>2];a=H[h+72>>2];k=f+N(a?a-1|0:0,20)|0}d=N(a,20)+f|0;a=H[k+4>>2];H[d>>2]=H[k>>2];H[d+4>>2]=a;H[d+16>>2]=H[k+16>>2];a=H[k+12>>2];H[d+8>>2]=H[k+8>>2];H[d+12>>2]=a;H[d>>2]=65535;H[h+64>>2]=H[h+64>>2]+1;H[h+72>>2]=H[h+72>>2]+1;a=H[g+24>>2]-1|0;if(o>>>0>>0){continue}break}}if(!bf(h,c+1|0)){break y}eh(h,H[e+28>>2],H[h+72>>2])}l=l+4|0;if((j|0)>=0){continue}}break}bf(h,i)}c=H[n+4>>2];a=H[c+64>>2];if((a|0)==H[c+68>>2]|!I[c+60|0]){break t}C:{if(I[m+2|0]&64){d=H[c+152>>2];H[c+152>>2]=d-1;if((d|0)>0){break C}}if(I[c+61|0]){D:{if(H[c+84>>2]==H[c+80>>2]){d=a;if(H[c+72>>2]==(a|0)){break D}}if(!ec(c,1,1)){break C}d=H[c+80>>2]+N(H[c+64>>2],20)|0;a=H[d+4>>2];e=H[c+84>>2]+N(H[c+72>>2],20)|0;H[e>>2]=H[d>>2];H[e+4>>2]=a;H[e+16>>2]=H[d+16>>2];a=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=a;a=H[c+64>>2];d=H[c+72>>2]}H[c+72>>2]=d+1}H[c+64>>2]=a+1}c=H[n+4>>2];if(!I[c+60|0]){break t}l=H[c+64>>2];a=b;continue}}cf(c);c=I[g|0]!=0;break a;case 4:c=qt(a+8|0,b);break a;case 5:break b;default:break a}}H[g+8>>2]=0;F[g|0]=0;H[g+4>>2]=b;c=I[a+16|0]|I[a+17|0]<<8;a=a+8|0;H[g+12>>2]=((c<<8|c>>>8)&65535)+a;c=H[b+12>>2];H[g+292>>2]=H[b+16>>2];H[g+288>>2]=a;a=H[c+32>>2];if((a|0)==-1){a=De(c)}H[g+296>>2]=a;a=0;m=g+288|0;b=H[m+4>>2];H[b+72>>2]=0;H[b+64>>2]=0;F[b+61|0]=1;F[b+62|0]=0;H[b+84>>2]=H[b+80>>2];c=H[m+4>>2];H[c+64>>2]=0;E:{if(!I[c+60|0]){break E}while(1){i=K[c+68>>2]<=l>>>0;d=0;F:{if(i){break F}b=H[H[c+80>>2]+N(l,20)>>2];d=2;if((b|0)==65535){break F}e=H[m>>2];d=I[e+2|0]|I[e+3|0]<<8;j=b;f=((d<<8|d>>>8)&65535)+e|0;b=I[f|0]|I[f+1|0]<<8;e=j-((b<<8|b>>>8)&65535)|0;b=I[f+2|0]|I[f+3|0]<<8;d=1;if(e>>>0>=((b<<8|b>>>8)&65535)>>>0){break F}d=I[(e+f|0)+4|0]}f=H[m>>2];p=I[f|0]|I[f+1|0]<<8;o=(p<<8|p>>>8)&65535;s=o>>>0>d>>>0;e=N(a,o);b=I[f+4|0]|I[f+5|0]<<8;q=(b<<8|b>>>8)&65535;k=q+f|0;b=I[f+6|0]|I[f+7|0]<<8;j=f+((b<<8|b>>>8)&65535)|0;n=(I[((s?d:1)+e|0)+k|0]<<3)+j|0;b=I[n|0]|I[n+1|0]<<8;b=(((b<<8|b>>>8)&65535)-q|0)/(o|0)|0;f=I[n+2|0]|I[n+3|0]<<8;G:{H:{if((I[n+4|0]|I[n+5|0]<<8)!=65535|(I[n+6|0]|I[n+7|0]<<8)!=65535?f&65283:0){break H}if(!(!a|!(f&64?b:1))){a=j+(I[k+(s?d:1)|0]<<3)|0;d=I[a+2|0]|I[a+3|0]<<8;if((I[a+4|0]|I[a+5|0]<<8)!=65535|(I[a+6|0]|I[a+7|0]<<8)!=65535?d&65283:0){break H}a=I[a|0]|I[a+1|0]<<8;if((d^f)&64|(b|0)!=((((a<<8|a>>>8)&65535)-q|0)/(o|0)|0)){break H}}a=j+(I[k+(e+!p|0)|0]<<3)|0;if(!((I[a+2|0]|I[a+3|0]<<8)&65283)){break G}if((I[a+4|0]|I[a+5|0]<<8)!=65535){break H}if((I[a+6|0]|I[a+7|0]<<8)==65535){break G}}a=I[c+61|0]?H[c+72>>2]:l;if(i|!a){break G}Rc(c,3,a-1|0,l+1|0,1,1)}ot(g,m,n);c=H[m+4>>2];a=H[c+64>>2];if((a|0)==H[c+68>>2]|!I[c+60|0]){break E}I:{if(I[n+2|0]&64){d=H[c+152>>2];H[c+152>>2]=d-1;if((d|0)>0){break I}}if(I[c+61|0]){J:{if(H[c+84>>2]==H[c+80>>2]){d=a;if(H[c+72>>2]==(a|0)){break J}}if(!ec(c,1,1)){break I}d=H[c+80>>2]+N(H[c+64>>2],20)|0;a=H[d+4>>2];e=H[c+84>>2]+N(H[c+72>>2],20)|0;H[e>>2]=H[d>>2];H[e+4>>2]=a;H[e+16>>2]=H[d+16>>2];a=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=a;a=H[c+64>>2];d=H[c+72>>2]}H[c+72>>2]=d+1}H[c+64>>2]=a+1}c=H[m+4>>2];if(!I[c+60|0]){break E}l=H[c+64>>2];a=b;continue}}cf(c);c=I[g|0]!=0}xb=g+304|0;return c|0}function fB(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=xb-32|0;xb=i;g=H[a+584>>2];b=H[g+168>>2];if(!b){b=zb[H[a+648>>2]](H[a+628>>2])|0;H[g+168>>2]=b}c=H[g+196>>2];a:{if(!c){break a}if(b>>>0<=c>>>0){H[g+196>>2]=0;H[g+200>>2]=0;break a}d=H[g+200>>2];if(c+d>>>0<=b>>>0?d:0){break a}H[g+200>>2]=b-c}H[g+1124>>2]=0;H[g+1128>>2]=0;c=H[a+180>>2];H[g+1144>>2]=0;G[g+1148>>1]=0;H[g+1132>>2]=c;b=0;while(1){b:{c:{d:{if(b&65535){break d}if(Fd(g)){break d}b=0;break c}e:{f:{g:{h:{i:{c=H[g+1152>>2];if(I[c|0]!=255){break i}c=c+1|0;H[g+1152>>2]=c;b=J[g+1148>>1]-1|0;G[g+1148>>1]=b;j:{k:{l:{m:{n:{o:{while(1){if(!(b&65535)){if(!Fd(g)){b=0;break c}b=J[g+1148>>1];c=H[g+1152>>2]}f=I[c|0];b=b-1|0;G[g+1148>>1]=b;c=c+1|0;H[g+1152>>2]=c;p:{switch(f-192|0){case 26:break j;case 0:case 1:case 3:break l;case 4:break m;case 27:break n;case 29:break o;case 63:continue;case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 62:break p;case 24:break b;default:break k}}break}if(!(b&65535)){if(!Fd(g)){b=0;break c}b=J[g+1148>>1];c=H[g+1152>>2]}d=I[c|0];b=b-1|0;G[g+1148>>1]=b;c=c+1|0;H[g+1152>>2]=c;if(!(b&65535)){if(!Fd(g)){b=0;break c}b=J[g+1148>>1];c=H[g+1152>>2]}e=I[c|0];b=b-1|0;G[g+1148>>1]=b;h=c+1|0;H[g+1152>>2]=h;c=e|d<<8;if(c>>>0<=1){b=0;if(I[g+205|0]){break c}Pb(H[a+628>>2],295552,279063,0);break c}if((c|0)==2){break b}l=b;b=b&65535;e=c-2|0;c=e&65535;d=b>>>0>>0?b:c;G[g+1148>>1]=l-d;H[g+1152>>2]=d+h;if(b>>>0>=c>>>0){break b}F[g+1140|0]=0;c=H[g+1144>>2];b=e-d|0;b=(c>>>0<(b&65535)>>>0?c:b)&65535;H[g+1144>>2]=c-b;H[g+1136>>2]=b+H[g+1136>>2];break b}b=H[a+584>>2];c=J[b+1148>>1];if(!c){if(!Fd(b)){b=0;break c}c=J[b+1148>>1]}d=H[b+1152>>2];e=I[d|0];c=c-1|0;G[b+1148>>1]=c;d=d+1|0;H[b+1152>>2]=d;if(!(c&65535)){if(!Fd(b)){b=0;break c}d=H[b+1152>>2];c=J[b+1148>>1]}h=I[d|0];c=c-1|0;G[b+1148>>1]=c;d=d+1|0;H[b+1152>>2]=d;if((h|e<<8)!=4){b=0;Pb(H[a+628>>2],295584,280091,0);break c}if(!(c&65535)){if(!Fd(b)){b=0;break c}d=H[b+1152>>2];c=J[b+1148>>1]}e=I[d|0];c=c-1|0;G[b+1148>>1]=c;d=d+1|0;H[b+1152>>2]=d;if(!(c&65535)){if(!Fd(b)){b=0;break c}d=H[b+1152>>2];c=J[b+1148>>1]}h=I[d|0];G[b+1148>>1]=c-1;H[b+1152>>2]=d+1;G[b+300>>1]=h|e<<8;break b}b=H[a+584>>2];c=J[b+1148>>1];if(!c){if(!Fd(b)){b=0;break c}c=J[b+1148>>1]}d=H[b+1152>>2];e=I[d|0];c=c-1|0;G[b+1148>>1]=c;d=d+1|0;H[b+1152>>2]=d;if(!(c&65535)){if(!Fd(b)){b=0;break c}d=H[b+1152>>2];c=J[b+1148>>1]}h=I[d|0];c=c-1|0;G[b+1148>>1]=c;j=d+1|0;H[b+1152>>2]=j;d=I[b+205|0];e=h|e<<8;if(e>>>0<=2){b=0;if(d){break c}Pb(H[a+628>>2],295616,280449,0);break c}f=e-2|0;if(d){l=c;c=c&65535;d=f&65535;e=c>>>0>>0?c:d;G[b+1148>>1]=l-e;H[b+1152>>2]=e+j;if(c>>>0>=d>>>0){break b}F[b+1140|0]=0;c=H[b+1144>>2];d=f-e|0;d=(c>>>0<(d&65535)>>>0?c:d)&65535;H[b+1144>>2]=c-d;H[b+1136>>2]=d+H[b+1136>>2];break b}while(1){if((f&65535)>>>0<=64){b=0;Pb(H[a+628>>2],295616,280449,0);break c}c=Tb(73);if(!c){b=0;Pb(H[a+628>>2],295616,280533,0);break c}H[c>>2]=73;H[c+4>>2]=1124129791;d=J[b+1148>>1];e=65;h=c+8|0;while(1){if(!(d&65535)){if(!Fd(b)){b=0;break c}d=J[b+1148>>1]}k=e&65535;l=d&65535;j=k>>>0>>0?k:l;Kc(h,H[b+1152>>2],j);H[b+1152>>2]=j+H[b+1152>>2];d=J[b+1148>>1]-j|0;G[b+1148>>1]=d;h=h+j|0;e=e-j|0;if(k>>>0>l>>>0){continue}break}d=I[c+8|0]&15;if(d>>>0>=4){b=0;Pb(H[a+628>>2],295616,280449,0);break c}d=b+(d<<2)|0;e=H[d+252>>2];if(e){Kb(e)}H[d+252>>2]=c;f=f-65|0;if(f&65535){continue}break}break b}b=H[a+584>>2];c=J[b+1148>>1];if(!c){if(!Fd(b)){b=0;break c}c=J[b+1148>>1]}d=H[b+1152>>2];e=I[d|0];c=c-1|0;G[b+1148>>1]=c;d=d+1|0;H[b+1152>>2]=d;if(!(c&65535)){if(!Fd(b)){b=0;break c}d=H[b+1152>>2];c=J[b+1148>>1]}h=I[d|0];c=c-1|0;G[b+1148>>1]=c;j=d+1|0;H[b+1152>>2]=j;f=I[b+205|0];d=h|e<<8;if(d>>>0<=2){b=0;if(f){break c}Pb(H[a+628>>2],295648,280894,0);break c}if(f){l=c;c=c&65535;h=d-2|0;d=h&65535;e=c>>>0>>0?c:d;G[b+1148>>1]=l-e;H[b+1152>>2]=e+j;if(c>>>0>=d>>>0){break b}F[b+1140|0]=0;c=H[b+1144>>2];d=h-e|0;d=(c>>>0<(d&65535)>>>0?c:d)&65535;H[b+1144>>2]=c-d;H[b+1136>>2]=d+H[b+1136>>2];break b}f=d+6|0;c=Tb(f);if(!c){b=0;Pb(H[a+628>>2],295648,280533,0);break c}F[c+7|0]=h;F[c+6|0]=e;F[c+4|0]=255;F[c+5|0]=196;H[c>>2]=f;e=d-2|0;d=J[b+1148>>1];h=c+8|0;while(1){if(!(d&65535)){if(!Fd(b)){b=0;break c}d=J[b+1148>>1]}j=e&65535;k=d&65535;f=j>>>0>>0?j:k;Kc(h,H[b+1152>>2],f);H[b+1152>>2]=f+H[b+1152>>2];d=J[b+1148>>1]-f|0;G[b+1148>>1]=d;h=f+h|0;e=e-f|0;if(j>>>0>k>>>0){continue}break}q:{r:{d=I[c+8|0];e=d&240;if(e){if((e|0)==16){break q}break r}if(d>>>0>=4){b=0;Pb(H[a+628>>2],295648,280894,0);break c}b=b+(d<<2)|0;d=H[b+268>>2];if(d){Kb(d)}H[b+268>>2]=c;break b}b=0;Pb(H[a+628>>2],295648,280894,0);break c}d=d&15;if(d>>>0>=4){b=0;Pb(H[a+628>>2],295648,280894,0);break c}b=b+(d<<2)|0;d=H[b+284>>2];if(d){Kb(d)}H[b+284>>2]=c;break b}b=H[a+584>>2];if(I[b+303|0]){c=279063;break e}if(!I[b+205|0]){F[b+304|0]=f}c=J[b+1148>>1];if(!c){if(!Fd(b)){break f}c=J[b+1148>>1]}d=H[b+1152>>2];h=I[d|0];c=c-1|0;G[b+1148>>1]=c;e=d+1|0;H[b+1152>>2]=e;if(!(c&65535)){if(!Fd(b)){break f}e=H[b+1152>>2];c=J[b+1148>>1]}d=I[e|0];c=c-1|0;G[b+1148>>1]=c;e=e+1|0;H[b+1152>>2]=e;d=d|h<<8;if(d>>>0<=10){if(I[b+205|0]){break f}c=281136;break e}d=d-8|0;h=((d&65535)>>>0)/3|0;if(d-N(h,3)&65535){if(I[b+205|0]){break f}c=281136;break e}d=I[b+205|0];if(!(d|(h|0)==I[b+192|0])){c=281293;break e}if(!(c&65535)){if(!Fd(b)){break f}d=I[b+205|0];e=H[b+1152>>2];c=J[b+1148>>1]}j=I[e|0];F[i+15|0]=j;G[b+1148>>1]=c-1;H[b+1152>>2]=e+1;if((j|0)!=8){if(d&255){break f}c=281605;break e}s:{if(d&255){c=J[b+1148>>1];d=c>>>0<4;e=d?c:4;H[b+1152>>2]=e+H[b+1152>>2];G[b+1148>>1]=c-e;if(d){F[b+1140|0]=0;c=H[b+1144>>2];d=4-e|0;d=(c>>>0<(d&65535)>>>0?c:d)&65535;H[b+1144>>2]=c-d;H[b+1136>>2]=d+H[b+1136>>2]}break s}if(!cB(b,i+16|0)){break f}c=J[i+16>>1];if(!(c>>>0>=K[b+176>>2]|c>>>0>=K[b+188>>2])){c=281807;break e}H[b+312>>2]=c;if(!cB(b,i+16|0)){break f}c=J[i+16>>1];if(!(c>>>0>=K[b+172>>2]|c>>>0>=K[b+180>>2])){c=281988;break e}H[b+308>>2]=c}if(!Kk(b,i+15|0)){break f}if((h|0)!=I[i+15|0]){break g}c=0;if(!Kk(b,i+15|0)){break f}while(1){if(!I[b+205|0]){F[(b+c|0)+316|0]=I[i+15|0]}if(!Kk(b,i+15|0)){break f}t:{u:{v:{if(I[b+205|0]){d=I[i+15|0];if(c){break v}e=d&15;F[b+209|0]=e;d=d>>>4|0;F[b+208|0]=d;if(!(1<>>0>4|(!(1<>>0>4)){break u}break t}d=I[i+15|0];F[(b+c|0)+319|0]=d;if(I[b+210|0]){break t}if(!c){if((d|0)==(I[b+209|0]|I[b+208|0]<<4)){break t}c=282203;break e}if((d|0)==17){break t}c=282203;break e}if((d|0)==17){break t}}F[b+210|0]=1}if(!Kk(b,i+15|0)){break f}w:{x:{if(I[b+205|0]){c=c+1|0;if((h|0)==(c|0)){break x}break w}F[(b+c|0)+322|0]=I[i+15|0];c=c+1|0;if((h|0)!=(c|0)){break w}F[b+303|0]=1}if(!I[g+205|0]){if((f|0)==218){break h}break b}b=1;break c}if(Kk(b,i+15|0)){continue}break}break f}a=H[a+628>>2];H[i>>2]=f;Pb(a,295552,279466,i);b=0;break c}b=1;if(I[g+205|0]){break c}if(eB(a)){break i}b=0;break c}b=1;if(I[g+205|0]){break c}}b=1;if(I[g+303|0]){break c}y:{j=H[a+584>>2];b=H[j+216>>2];if(!b){f=a+628|0;c=282514;break y}c=0;F[j+1140|0]=0;z:{e=I[j+192|0];if(!e){break z}f=a+628|0;k=j+322|0;while(1){A:{B:{if(!b){d=c-1|0;break B}C:{if(!c){break C}d=c-1|0;if(H[(j+(d<<2)|0)+216>>2]==(b|0)){break B}e=0;h=0;if(c>>>0<=1){break C}while(1){if(H[(j+(e<<2)|0)+216>>2]!=(b|0)){h=h+1|0;e=h&255;if((e|0)<(d|0)){continue}break C}break}c=282695;break y}d=Tb(73);if(!d){c=280533;break y}F[d+8|0]=c;H[d>>2]=73;H[d+4>>2]=1124129791;b=0;e=j+(c<<2)|0;zb[H[a+640>>2]](H[a+628>>2],H[e+216>>2],0)|0;if((zb[H[a+632>>2]](H[a+628>>2],d+9|0,64)|0)!=64){break c}H[e+252>>2]=d;F[(c+j|0)+322|0]=c;e=I[j+192|0];break A}F[c+k|0]=I[d+k|0]}c=c+1|0;if(c>>>0>=(e&255)>>>0){break z}b=H[(j+(c<<2)|0)+216>>2];continue}}F[g+304|0]=192;h=I[g+192|0];D:{if(!h){F[g+319|0]=I[g+209|0]|I[g+208|0]<<4;break D}d=0;b=0;f=h-1|0;if(f>>>0>=7){j=h&248;c=g+316|0;e=0;while(1){F[b+c|0]=b;k=b|1;F[k+c|0]=k;k=b|2;F[k+c|0]=k;k=b|3;F[k+c|0]=k;k=b|4;F[k+c|0]=k;k=b|5;F[k+c|0]=k;k=b|6;F[k+c|0]=k;k=b|7;F[k+c|0]=k;b=b+8|0;e=e+8|0;if((j|0)!=(e|0)){continue}break}}c=h&7;if(c){while(1){F[(b+g|0)+316|0]=b;b=b+1|0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}F[g+319|0]=I[g+209|0]|I[g+208|0]<<4;if(h>>>0<2){break D}b=1;if(h-2>>>0>=7){e=f&-8;c=0;while(1){d=b+g|0;F[d+319|0]=17;F[d+320|0]=17;F[d+321|0]=17;F[d+322|0]=17;F[d+323|0]=17;F[d+324|0]=17;F[d+325|0]=17;F[d+326|0]=17;b=b+8|0;c=c+8|0;if((e|0)!=(c|0)){continue}break}}d=f&7;if(!d){break D}c=0;while(1){F[(b+g|0)+319|0]=17;b=b+1|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}F[g+303|0]=1;H[g+308>>2]=H[g+180>>2];H[g+312>>2]=H[g+188>>2];f=H[a+584>>2];b=H[f+228>>2];if(!b){Pb(H[a+628>>2],295792,282514,0);b=0;break c}F[f+1140|0]=0;E:{e=I[f+192|0];if(!e){break E}j=f+328|0;c=0;while(1){F:{G:{if(!b){d=c-1|0;break G}H:{I:{if(!c){break I}d=c-1|0;if(H[(f+(d<<2)|0)+228>>2]==(b|0)){break G}e=0;h=0;if(c>>>0<=1){break I}while(1){if(H[(f+(e<<2)|0)+228>>2]!=(b|0)){h=h+1|0;e=h&255;if((e|0)<(d|0)){continue}break I}break}Pb(H[a+628>>2],295792,282908,0);break H}zb[H[a+640>>2]](H[a+628>>2],b,0)|0;if((zb[H[a+632>>2]](H[a+628>>2],i+16|0,16)|0)!=16){break H}d=I[i+31|0]+(I[i+30|0]+(I[i+29|0]+(I[i+28|0]+(I[i+27|0]+(I[i+26|0]+(I[i+25|0]+(I[i+24|0]+(I[i+23|0]+(I[i+22|0]+(I[i+21|0]+(I[i+20|0]+(I[i+19|0]+(I[i+18|0]+(I[i+17|0]+I[i+16|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;e=d+25|0;b=Tb(e);if(!b){Pb(H[a+628>>2],295792,280533,0);b=0;break c}F[b+8|0]=c;F[b+4|0]=255;F[b+5|0]=196;H[b>>2]=e;e=d+19|0;F[b+7|0]=e;F[b+6|0]=e>>>8;F[b+9|0]=I[i+16|0];F[b+10|0]=I[i+17|0];F[b+11|0]=I[i+18|0];F[b+12|0]=I[i+19|0];F[b+13|0]=I[i+20|0];F[b+14|0]=I[i+21|0];F[b+15|0]=I[i+22|0];F[b+16|0]=I[i+23|0];F[b+17|0]=I[i+24|0];F[b+18|0]=I[i+25|0];F[b+19|0]=I[i+26|0];F[b+20|0]=I[i+27|0];F[b+21|0]=I[i+28|0];F[b+22|0]=I[i+29|0];F[b+23|0]=I[i+30|0];F[b+24|0]=I[i+31|0];if((zb[H[a+632>>2]](H[a+628>>2],b+25|0,d)|0)!=(d|0)){break H}H[(f+(c<<2)|0)+268>>2]=b;F[(c+f|0)+328|0]=c<<4;e=I[f+192|0];break F}b=0;break c}F[c+j|0]=I[d+j|0]}c=c+1|0;if(c>>>0>=(e&255)>>>0){break E}b=H[(f+(c<<2)|0)+228>>2];continue}}d=0;h=0;b=xb-16|0;xb=b;J:{e=H[a+584>>2];c=H[e+240>>2];if(!c){Pb(H[a+628>>2],295840,282514,0);break J}F[e+1140|0]=0;j=I[e+192|0];if(!j){h=1;break J}k=e+328|0;while(1){K:{L:{if(!c){f=d-1|0;break L}M:{if(!d){break M}f=d-1|0;if(H[(e+(f<<2)|0)+240>>2]==(c|0)){break L}h=0;j=0;if(d>>>0<=1){break M}while(1){if(H[(e+(h<<2)|0)+240>>2]!=(c|0)){j=j+1|0;h=j&255;if((h|0)<(f|0)){continue}break M}break}h=0;Pb(H[a+628>>2],295840,283074,0);break J}h=0;zb[H[a+640>>2]](H[a+628>>2],c,0)|0;if((zb[H[a+632>>2]](H[a+628>>2],b,16)|0)!=16){break J}f=I[b+15|0]+(I[b+14|0]+(I[b+13|0]+(I[b+12|0]+(I[b+11|0]+(I[b+10|0]+(I[b+9|0]+(I[b+8|0]+(I[b+7|0]+(I[b+6|0]+(I[b+5|0]+(I[b+4|0]+(I[b+3|0]+(I[b+2|0]+(I[b|0]+I[b+1|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;j=f+25|0;c=Tb(j);if(!c){Pb(H[a+628>>2],295840,280533,0);break J}F[c+4|0]=255;F[c+5|0]=196;H[c>>2]=j;F[c+8|0]=d|16;j=f+19|0;F[c+7|0]=j;F[c+6|0]=j>>>8;F[c+9|0]=I[b|0];F[c+10|0]=I[b+1|0];F[c+11|0]=I[b+2|0];F[c+12|0]=I[b+3|0];F[c+13|0]=I[b+4|0];F[c+14|0]=I[b+5|0];F[c+15|0]=I[b+6|0];F[c+16|0]=I[b+7|0];F[c+17|0]=I[b+8|0];F[c+18|0]=I[b+9|0];F[c+19|0]=I[b+10|0];F[c+20|0]=I[b+11|0];F[c+21|0]=I[b+12|0];F[c+22|0]=I[b+13|0];F[c+23|0]=I[b+14|0];F[c+24|0]=I[b+15|0];if((zb[H[a+632>>2]](H[a+628>>2],c+25|0,f)|0)!=(f|0)){break J}H[(e+(d<<2)|0)+284>>2]=c;c=d+e|0;F[c+328|0]=I[c+328|0]|d;j=I[e+192|0];break K}c=d+k|0;F[c|0]=I[c|0]|I[f+k|0]&15}h=1;d=d+1|0;if(d>>>0>=(j&255)>>>0){break J}c=H[(e+(d<<2)|0)+240>>2];continue}}xb=b+16|0;if(!h){b=0;break c}b=1;a=I[g+192|0];if(a>>>0<2){break c}d=a-1|0;h=d&7;c=1;if(a-2>>>0>=7){d=d&-8;e=0;a=g+325|0;while(1){f=c+7|0;F[f+a|0]=f;f=c+6|0;F[f+a|0]=f;f=c+5|0;F[f+a|0]=f;f=c+4|0;F[f+a|0]=f;f=c+3|0;F[f+a|0]=f;f=c+2|0;F[f+a|0]=f;f=c+1|0;F[f+a|0]=f;F[a+c|0]=c;c=c+8|0;e=e+8|0;if((d|0)!=(e|0)){continue}break}}if(!h){break c}d=0;while(1){F[(c+g|0)+325|0]=c;c=c+1|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}break c}b=0;Pb(H[f>>2],295744,c,0);break c}if(I[b+205|0]){break f}c=281136;break e}b=0;break c}Pb(H[a+628>>2],295680,c,0);b=0}xb=i+32|0;return b}b=J[g+1148>>1];continue}}function Fia(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=O(0),q=0,r=O(0),s=0,t=O(0),u=O(0),v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;w=xb-16|0;xb=w;if(!I[785472]){H[196364]=1801810542;H[196365]=0;H[196360]=1684826471;H[196361]=0;H[196356]=1751935335;H[196357]=0;H[196352]=1668049255;H[196353]=0;H[196350]=0;H[196351]=-1;H[196348]=1818847073;H[196349]=0;F[785472]=1;H[196366]=0;H[196367]=-1;H[196362]=0;H[196363]=-1;H[196358]=0;H[196359]=-1;H[196354]=0;H[196355]=-1}if(!b){m=a;a=H[a+104>>2];a:{if(!H[a+20>>2]){o=dt(H[a>>2],H[a+4>>2],1,m,0);a=o;n=H[m+4>>2];h=xb-48|0;xb=h;H[h+8>>2]=0;H[h+12>>2]=0;H[h+16>>2]=0;H[h+20>>2]=0;F[h+24|0]=0;H[h+28>>2]=0;H[h+32>>2]=0;H[h>>2]=0;H[h+4>>2]=0;F[h+40|0]=0;H[h+36>>2]=65536;a=a?a:163632;if(!(!a|!H[a>>2])){H[a>>2]=H[a>>2]+1}if(!(!a|!H[a>>2])){H[a>>2]=H[a>>2]+1}b=a;H[h+32>>2]=a;b:{c:{d:{e:{f:{while(1){F[h+24|0]=j;i=H[b+12>>2];H[h+4>>2]=i;j=H[b+16>>2];H[h+8>>2]=j+i;H[h+28>>2]=0;if(j>>>0<=67108862){j=j<<6;j=j>>>0>16384?j:16384;j=j>>>0<1073741823?j:1073741823}else{j=1073741823}H[h+12>>2]=j;H[h+20>>2]=0;H[h>>2]=0;if(!i){Wb(b);H[h+32>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;break b}j=Ss(i,h);b=H[h+28>>2];g:{if(j){if(!b){break g}H[h+28>>2]=0;b=Ss(i,h);i=H[h+28>>2];Wb(H[h+32>>2]);H[h+32>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;if(!b){break c}if(!i){break f}break c}if(I[h+24|0]|!b){break e}i=ve(a);H[h+4>>2]=i;H[h+8>>2]=i+H[a+16>>2];b=H[h+32>>2];j=1;if(i){continue}break d}break}Wb(H[h+32>>2]);H[h+32>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0}if(H[a+4>>2]){H[a+4>>2]=0}break b}b=H[h+32>>2]}Wb(b);H[h+32>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0}Wb(a);a=163632}b=a;i=oc(1,8);h:{if(i){G[i+4>>1]=n;H[i>>2]=b;a=oc(1,212);i:{if(a){H[a+8>>2]=0;H[a>>2]=1;H[a+4>>2]=1;H[a+32>>2]=-1;H[a+20>>2]=598;H[a+16>>2]=i;H[a+12>>2]=599;H[a+36>>2]=a;H[a+48>>2]=a;break i}Wb(b);Kb(i);a=783228}H[a+24>>2]=n;break h}Wb(b);a=783228}xb=h+48|0;Wb(o);break a}a=oc(1,212);j:{if(a){H[a+8>>2]=0;H[a>>2]=1;H[a+4>>2]=1;H[a+32>>2]=-1;H[a+20>>2]=0;H[a+16>>2]=m;H[a+12>>2]=621;H[a+36>>2]=a;H[a+48>>2]=a;break j}a=783228}}b=H[m+4>>2];if(H[a+4>>2]){H[a+24>>2]=b}b=J[m+68>>1];if(H[a+4>>2]){H[a+28>>2]=b}n=a;b=a;i=0;v=xb-16|0;xb=v;a=a?a:783228;j=oc(1,104);k:{if(!j){j=783672;break k}H[j+8>>2]=0;H[j>>2]=1;H[j+4>>2]=1;if(H[a+4>>2]){H[a+4>>2]=0}H[j+12>>2]=783672;if(!(!a|!H[a>>2])){H[a>>2]=H[a>>2]+1}H[j+80>>2]=783776;H[j+16>>2]=a;H[j+92>>2]=j;a=wl(a);H[j+48>>2]=65536;H[j+52>>2]=0;H[j+20>>2]=a;H[j+24>>2]=a;H[j+40>>2]=65536;H[j+44>>2]=0}while(1){l:{a=H[196245];if(a){break l}a=Gs();Es(a,659);Ds(a,660);Cs(a,661);Fs(a,662);Bs(a,663);if(H[a+4>>2]){h=H[a+88>>2];if(h){zb[h|0](H[a+16>>2])}H[a+88>>2]=0;H[a+160>>2]=664;H[a+16>>2]=0}if(H[a+4>>2]){h=H[a+116>>2];if(h){zb[h|0](H[a+44>>2])}H[a+116>>2]=0;H[a+188>>2]=665;H[a+44>>2]=0}As(a,666);vs(a,667);zs(a,668);ys(a,669);ws(a,670);if(H[a+4>>2]){H[a+4>>2]=0}h=H[196245];a=a?a:783776;H[196245]=h?h:a;if(!h){break l}if(!a|(a|0)==783776){continue}tl(a);continue}break}ts(j,a,H[j+16>>2]+48|0,0);m:{if(!b){break m}a=H[b+24>>2];if(!H[j+4>>2]|a>>>0<65536){break m}b=(a>>>16|0)-1|0;a=fE(H[j+16>>2],b,0,0);H[v+12>>2]=a;if(a){s=oc(a,4);if(!s){break m}}fE(H[j+16>>2],b,v+12|0,s);o=H[v+12>>2];if(H[j+4>>2]){n:{if(o){q=oc(o,4);x=oc(o,4);if(!(x?q:0)){Kb(q);Kb(x);break n}Ob(x,s,o<<2)}k=H[j+16>>2];b=ss(k+120|0);if(o){while(1){a=i<<2;l=a+q|0;r=L[a+s>>2];t=r;a=I[b+4|0]|I[b+5|0]<<8;if(a){h=b+((a<<8|a>>>8)&65535)|0}else{h=163632}a=I[b+8|0]|I[b+9|0]<<8;a=((a<<8|a>>>8)&65535)>>>0>i>>>0?h+N(i,20)|0:163632;h=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);p=O(O(h<<24|h<<8&16711680|(h>>>8&65280|h>>>24))*O(152587890625e-16));u=t;h=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);t=O(O(h<<24|h<<8&16711680|(h>>>8&65280|h>>>24))*O(152587890625e-16));t=p<=t?p:t;u=r>=t?u:t;a=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);r=O(O(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))*O(152587890625e-16));r=p>=r?p:r;u=r>=u?u:r;if(p!=u){p=O(T(O(O(O(O(u-p)/(p>u?O(p-t):O(r-p)))*O(16384))+O(.5))));o:{if(O(P(p))>2]=a;i=i+1|0;if((o|0)!=(i|0)){continue}break}}i=xb-48|0;xb=i;k=k+124|0;h=H[k>>2];p:{if(h){break p}y=k-76|0;while(1){a=H[y>>2];if(!a){h=163632;break p}H[i+8>>2]=0;H[i+12>>2]=0;H[i+16>>2]=0;H[i+20>>2]=0;F[i+24|0]=0;H[i+28>>2]=0;H[i+32>>2]=0;H[i>>2]=0;H[i+4>>2]=0;b=kd(a);F[i+40|0]=1;H[i+36>>2]=b;h=0;a=dd(a,1635148146);if(!(!a|!H[a>>2])){H[a>>2]=H[a>>2]+1}b=a;H[i+32>>2]=a;q:{r:{s:{t:{u:{while(1){F[i+24|0]=h;h=H[b+12>>2];H[i+4>>2]=h;l=H[b+16>>2];H[i+8>>2]=l+h;H[i+28>>2]=0;if(l>>>0<=67108862){l=l<<6;l=l>>>0>16384?l:16384;l=l>>>0<1073741823?l:1073741823}else{l=1073741823}H[i+12>>2]=l;H[i+20>>2]=0;H[i>>2]=0;if(!h){Wb(b);H[i+32>>2]=0;H[i+4>>2]=0;H[i+8>>2]=0;break q}l=qs(h,i);b=H[i+28>>2];v:{if(l){if(!b){break v}H[i+28>>2]=0;b=qs(h,i);h=H[i+28>>2];Wb(H[i+32>>2]);H[i+32>>2]=0;H[i+4>>2]=0;H[i+8>>2]=0;if(!b){break r}if(!h){break u}break r}if(I[i+24|0]|!b){break t}l=ve(a);H[i+4>>2]=l;H[i+8>>2]=l+H[a+16>>2];b=H[i+32>>2];h=1;if(l){continue}break s}break}Wb(H[i+32>>2]);H[i+32>>2]=0;H[i+4>>2]=0;H[i+8>>2]=0}if(H[a+4>>2]){H[a+4>>2]=0}break q}b=H[i+32>>2]}Wb(b);H[i+32>>2]=0;H[i+4>>2]=0;H[i+8>>2]=0}Wb(a);a=163632}h=a;if(!a){h=163632}a=H[k>>2];H[k>>2]=a?a:h;if(!a){break p}if(!(!h|(h|0)==163632)){Wb(h)}h=H[k>>2];if(!h){continue}break}}xb=i+48|0;a=K[h+16>>2]<8?163632:H[h+12>>2];b=I[a+6|0]|I[a+7|0]<<8;b=(b<<8|b>>>8)&65535;y=b>>>0>>0?b:o;if(y){i=a+8|0;while(1){a=(z<<2)+q|0;B=a;h=H[a>>2];a=I[i|0]|I[i+1|0]<<8;b=(a<<8|a>>>8)&65535;w:{if(b>>>0<=1){if(!a){break w}a=I[i+2|0]|I[i+3|0]<<8;b=h-((a<<8|a>>>8)<<16>>16)|0;a=I[i+4|0]|I[i+5|0]<<8;h=b+((a<<8|a>>>8)<<16>>16)|0;break w}a=I[i+2|0]|I[i+3|0]<<8;a=(a<<8|a>>>8)<<16>>16;if((a|0)>=(h|0)){b=h-a|0;a=I[i+4|0]|I[i+5|0]<<8;h=b+((a<<8|a>>>8)<<16>>16)|0;break w}a=1;b=b-1|0;x:{if(b>>>0<2){break x}while(1){k=(a<<2)+i|0;k=I[k+2|0]|I[k+3|0]<<8;if((k<<8|k>>>8)<<16>>16>=(h|0)){break x}a=a+1|0;if((b|0)!=(a|0)){continue}break}a=b}b=(a<<2)+i|0;k=I[b+2|0]|I[b+3|0]<<8;l=(k<<8|k>>>8)<<16>>16;if((l|0)<=(h|0)){a=I[b+4|0]|I[b+5|0]<<8;h=(h-l|0)+((a<<8|a>>>8)<<16>>16)|0;break w}A=k;b=a-1|0;k=(b<<2)+i|0;k=I[k+2|0]|I[k+3|0]<<8;if((A|0)==(k|0)){a=(b<<2)+i|0;a=I[a+4|0]|I[a+5|0]<<8;h=(a<<8|a>>>8)<<16>>16;break w}A=h;h=(k<<8|k>>>8)<<16>>16;k=a<<2;a=i+2|0;k=k+a|0;k=I[k+2|0]|I[k+3|0]<<8;a=a+(b<<2)|0;a=I[a+2|0]|I[a+3|0]<<8;a=(a<<8|a>>>8)<<16>>16;p=O(T(O(O(O(O(O(A-h|0)*O(((k<<8|k>>>8)<<16>>16)-a|0))/O(l-h|0))+O(a|0))+O(.5))));if(O(P(p))>2]=h;a=I[i|0]|I[i+1|0]<<8;i=((((a<<8|a>>>8)&65535)<<2)+i|0)+2|0;z=z+1|0;if((y|0)!=(z|0)){continue}break}}Kb(H[j+72>>2]);Kb(H[j+76>>2]);H[j+76>>2]=x;H[j+72>>2]=q;H[j+68>>2]=o}}Kb(s)}xb=v+16|0;Ps(n);b=j;ps(b,m,0);if(H[b+88>>2]==622){a=H[H[b+84>>2]+24>>2];j=J[a+68>>1];m=H[a+88>>2];a=H[m+16>>2];h=gma(j,0,a,a>>31)+32768|0;a=yb;a=h>>>0<32768?a+1|0:a;i=(a&65535)<<16|h>>>16;a=H[m+20>>2];a=gma(a,a>>31,j,0)+32768|0;j=yb;j=a>>>0<32768?j+1|0:j;a=(j&65535)<<16|a>>>16;if(H[b+4>>2]){H[b+24>>2]=a;H[b+20>>2]=i;j=H[b+16>>2];h=H[j+28>>2];if(!h){h=kc(j);i=H[b+20>>2];a=H[b+24>>2]}n=h>>31;C=b,D=hma(a<<16,a>>31<<16|a>>>16,h,n),H[C+48>>2]=D;H[b+52>>2]=yb;C=b,D=hma(i<<16,i>>31<<16|i>>>16,h,n),H[C+40>>2]=D;H[b+44>>2]=yb;L[b+32>>2]=a?O(O(L[b+28>>2]*O(i|0))/O(a|0)):O(0)}}h=xb-32|0;xb=h;a=H[b+16>>2];i=H[a+12>>2];y:{if(i){a=zb[i|0](a,0,H[a+16>>2])|0;if(a){break y}}a=163632}if(h+28|0){H[h+28>>2]=H[a+16>>2]}m=H[a+12>>2];H[h+24>>2]=0;while(1){z:{i=H[196244];if(i){break z}A:{if(Rz(h+8|0)){break A}i=H[h+8>>2];if(!i){break A}j=H[196244];H[196244]=j?j:i;if(!j){break z}if(i){kv(i)}continue}i=0;j=H[196244];H[196244]=j;if(j){continue}}break}n=H[h+28>>2];o=H[H[b+16>>2]+24>>2];q=h+24|0;j=xb-32|0;xb=j;if(m){H[j+16>>2]=0;H[j+8>>2]=n;H[j+4>>2]=m;H[j>>2]=1;i=Qq(i,j,o,q,1)}else{i=6}xb=j+32|0;B:{if(i){Wb(a);break B}if(Kh(H[h+24>>2],1937337698)){Kh(H[h+24>>2],1970170211)}m=H[b+20>>2];i=m>>31;n=H[b+24>>2];j=n>>31;kC(H[h+24>>2],(i^m)-i|0,(j^n)-j|0,0,0);i=H[b+20>>2];j=H[b+24>>2];if((i|j)<0){H[h+12>>2]=0;H[h+16>>2]=0;H[h+20>>2]=j>>31|1;H[h+8>>2]=i>>31|1;RC(H[h+24>>2],h+8|0)}i=H[h+24>>2];H[i+44>>2]=a;H[i+48>>2]=636;ps(b,i,1);if(!H[b+4>>2]|H[b+88>>2]!=622){break B}H[H[b+84>>2]+28>>2]=2}xb=h+32|0}H[196349]=d&1;H[196365]=d>>>4&1;H[196361]=d>>>3&1;H[196357]=d>>>2&1;H[196353]=d>>>1&1;a=_s();if(H[a+4>>2]){H[a+40>>2]=f}if(H[a+4>>2]){H[a+44>>2]=e}if(H[a+4>>2]){H[a+48>>2]=g}e=0;if(H[a+4>>2]){H[a+20>>2]=0}d=ac(c);g=d;i=xb-16|0;xb=i;f=a;C:{if(!H[a+4>>2]){break C}m=H[f+24>>2];if((g|0)==-1){g=ac(c)}d=(d|0)==-1?g:d;if(d>>>0>268435455){break C}a=H[f+68>>2]+(d>>>2|0)|0;if(!(!a|a>>>0>2])){if(!fh(f,a)){break C}}a=c;D:{if((d|0)<=0){d=a;break D}n=a+d|0;while(1){d=Xs(a,n,i+8|0,m);o=H[i+8>>2];h=H[f+68>>2];j=h+1|0;E:{if(!(j>>>0>2]|h>>>0>j>>>0)){if(!fh(f,j)){break E}h=H[f+68>>2]}h=H[f+80>>2]+N(h,20)|0;H[h+8>>2]=0;H[h+12>>2]=0;H[h+4>>2]=0;H[h>>2]=o;H[h+16>>2]=0;H[h+8>>2]=a-c;H[f+68>>2]=H[f+68>>2]+1}a=d;if(n>>>0>a>>>0){continue}break}}H[f+136>>2]=0;a=c+g|0;F:{if(a>>>0<=d>>>0){break F}while(1){d=Xs(d,a,i+4|0,m);c=H[i+4>>2];g=H[f+136>>2];H[f+136>>2]=g+1;H[(f+(g<<2)|0)+112>>2]=c;if(a>>>0<=d>>>0){break F}if(K[f+136>>2]<5){continue}break}}H[f+36>>2]=1}xb=i+16|0;a=0;G:{if(H[f+44>>2]|!H[f+68>>2]){break G}while(1){c=H[f+12>>2];c=zb[H[c+32>>2]](c,H[H[f+80>>2]+N(a,20)>>2],H[c- -64>>2])|0;if(!((c|0)==1516858984|(c|0)==1517910393|(c|0)==1517976186)){H[f+44>>2]=c;break G}a=a+1|0;if(a>>>0>2]){continue}break}}if(!H[f+40>>2]){a=Yn(H[f+44>>2]);H[f+40>>2]=a?a:4}if(!H[f+48>>2]){a=0;c=H[196241];if(c){a=c}else{c=Zn(105740);if(c){a=H[c+4>>2]}c=H[196241];H[196241]=c?c:a}H[f+48>>2]=a}Dn(b,f,785392,5,0);a=w+12|0;if(a){H[a>>2]=H[f+68>>2]}q=H[f+80>>2];v=Ys(f,a);c=H[w+12>>2];a=N(c,26)+12|0;h=oc(1,a);F[h+4|0]=b;F[h+5|0]=b>>>8;F[h+6|0]=b>>>16;F[h+7|0]=b>>>24;F[h+8|0]=0;F[h+9|0]=0;F[h+10|0]=0;F[h+11|0]=0;F[h|0]=a;F[h+1|0]=a>>>8;F[h+2|0]=a>>>16;F[h+3|0]=a>>>24;if(c){d=h+12|0;while(1){s=N(e,20);i=s+q|0;j=H[i>>2];H:{I:{c=H[b+16>>2];a=H[c+140>>2];J:{if(a){break J}while(1){a=H[c+48>>2];if(!a){a=163632;break J}a=Yr(a);if(!a){a=163632}g=H[c+140>>2];H[c+140>>2]=g?g:a;if(!g){break J}if(!(!a|(a|0)==163632)){g=H[a>>2];H[197455]=0;ia(579,g|0);g=H[197455];H[197455]=0;if((g|0)==1){break I}Kb(a)}a=H[c+140>>2];if(!a){continue}break}}c=163632;a=H[a>>2];a=a?a:163632;a=K[a+16>>2]<12?163632:H[a+12>>2];g=I[a+4|0]|I[a+5|0]<<8;if(g){c=a+((g<<8|g>>>8)&65535)|0}a=0;K:{L:{M:{N:{g=I[c|0]|I[c+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break M;case 0:break N;default:break K}}a=I[c+2|0]|I[c+3|0]<<8;a=j-((a<<8|a>>>8)&65535)|0;g=((a<<1)+c|0)+6|0;c=I[c+4|0]|I[c+5|0]<<8;a=a>>>0<((c<<8|c>>>8)&65535)>>>0?g:163632;break L}o=164024;a=I[c+2|0]|I[c+3|0]<<8;O:{if(!a){break O}a=((a<<8|a>>>8)&65535)-1|0;g=0;while(1){m=a+g>>>1|0;n=N(m,6)+c|0;k=I[n+4|0]|I[n+5|0]<<8;P:{if(j>>>0>=((k<<8|k>>>8)&65535)>>>0){g=I[n+6|0]|I[n+7|0]<<8;if(j>>>0>((g<<8|g>>>8)&65535)>>>0){g=m+1|0;break P}o=(N(m,6)+c|0)+4|0;break O}a=m-1|0}if((a|0)>=(g|0)){continue}break}}a=o+4|0}a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)&65535}break H}ha(0)|0;_()|0;Zb();X()}c=H[i+4>>2];a=a&255;F[d|0]=a;F[d+1|0]=a>>>8;F[d+2|0]=a>>>16;F[d+3|0]=a>>>24;a=c&3;F[d+1|0]=a;F[d+2|0]=a>>>8;F[d+3|0]=a>>>16;F[d+4|0]=a>>>24;a=H[i>>2];F[d+2|0]=a;F[d+3|0]=a>>>8;F[d+4|0]=a>>>16;F[d+5|0]=a>>>24;a=H[i+8>>2];F[d+6|0]=a;F[d+7|0]=a>>>8;F[d+8|0]=a>>>16;F[d+9|0]=a>>>24;a=v+s|0;c=H[a>>2];F[d+10|0]=c;F[d+11|0]=c>>>8;F[d+12|0]=c>>>16;F[d+13|0]=c>>>24;c=H[a+4>>2];F[d+14|0]=c;F[d+15|0]=c>>>8;F[d+16|0]=c>>>16;F[d+17|0]=c>>>24;c=H[a+8>>2];F[d+18|0]=c;F[d+19|0]=c>>>8;F[d+20|0]=c>>>16;F[d+21|0]=c>>>24;a=H[a+12>>2];F[d+22|0]=a;F[d+23|0]=a>>>8;F[d+24|0]=a>>>16;F[d+25|0]=a>>>24;d=d+26|0;e=e+1|0;if(e>>>0>2]){continue}break}}ai(f);xb=w+16|0;return h|0}function dba(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=xb-160|0;xb=e;H[e+156>>2]=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{switch(b-254|0){default:switch(b-32995|0){case 2:break p;case 1:break r;case 3:break s;case 0:break v;default:break h};case 0:H[e+156>>2]=c+4;H[a+80>>2]=H[c>>2];f=1;break g;case 2:H[e+156>>2]=c+4;H[a+56>>2]=H[c>>2];f=1;break g;case 3:H[e+156>>2]=c+4;H[a+60>>2]=H[c>>2];f=1;break g;case 4:H[e+156>>2]=c+4;c=H[c>>2];G[a+84>>1]=c;f=1;if(!(I[a+12|0]&128)){break g}x:{y:{z:{A:{B:{c=c&65535;switch(c-16|0){case 16:break y;case 8:break z;case 0:break A;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break g;default:break B}}if((c|0)==64){break x}if((c|0)!=128){break g}H[a+652>>2]=1417;break g}H[a+652>>2]=1418;break g}H[a+652>>2]=1419;break g}H[a+652>>2]=1420;break g}H[a+652>>2]=1417;break g;case 5:H[e+156>>2]=c+4;c=J[c>>1];if(I[a+40|0]&128){f=1;if((c|0)==J[a+88>>1]){break g}zb[H[a+572>>2]](a);H[a+12>>2]=H[a+12>>2]&-33}i=H[196375];C:{if(i){while(1){d=H[i+4>>2];if((c|0)==J[d+4>>1]){break C}i=H[i>>2];if(i){continue}break}}if(H[196104]){d=784416;while(1){if((c|0)==J[d+4>>1]){break C}f=H[d+12>>2];d=d+12|0;if(f){continue}break}}d=0}H[a+556>>2]=1460;H[a+548>>2]=1461;H[a+540>>2]=1462;H[a+520>>2]=1463;H[a+516>>2]=1464;H[a+512>>2]=1;H[a+528>>2]=1;H[a+580>>2]=1465;H[a+576>>2]=1466;H[a+572>>2]=1467;H[a+568>>2]=1468;H[a+564>>2]=1467;H[a+560>>2]=1469;H[a+552>>2]=1470;H[a+544>>2]=1471;H[a+536>>2]=1464;H[a+532>>2]=1463;H[a+524>>2]=1464;H[a+12>>2]=H[a+12>>2]&-131329;if(d){f=zb[H[d+8>>2]](a,c)|0}else{f=1}if(!f){break c}G[a+88>>1]=c;break g;case 8:H[e+156>>2]=c+4;G[a+90>>1]=H[c>>2];f=1;break g;case 9:H[e+156>>2]=c+4;G[a+92>>1]=H[c>>2];f=1;break g;case 12:H[e+156>>2]=c+4;d=H[c>>2];if(d-3>>>0<4294967294){break b}G[a+94>>1]=d;f=1;break g;case 20:H[e+156>>2]=c+4;d=H[c>>2];if(d-9>>>0<4294967288){break b}G[a+96>>1]=d;f=1;break g;case 23:H[e+156>>2]=c+4;c=H[c>>2];if(!c){break b}G[a+98>>1]=c;f=1;break g;case 24:H[e+156>>2]=c+4;c=H[c>>2];if(!c){break e}H[a+100>>2]=c;f=1;if(I[a+40|0]&4){break g}H[a+72>>2]=c;H[a+68>>2]=H[a+56>>2];break g;case 26:H[e+156>>2]=c+4;G[a+104>>1]=H[c>>2];f=1;break g;case 27:H[e+156>>2]=c+4;G[a+106>>1]=H[c>>2];f=1;break g;case 86:c=c+7&-8;H[e+156>>2]=c+8;M[a+112>>3]=M[c>>3];f=1;break g;case 87:c=c+7&-8;H[e+156>>2]=c+8;M[a+120>>3]=M[c>>3];f=1;break g;case 28:c=c+7&-8;H[e+156>>2]=c+8;L[a+128>>2]=M[c>>3];f=1;break g;case 29:c=c+7&-8;H[e+156>>2]=c+8;L[a+132>>2]=M[c>>3];f=1;break g;case 30:H[e+156>>2]=c+4;d=H[c>>2];if(d-3>>>0<4294967294){break b}G[a+138>>1]=d;f=1;break g;case 32:c=c+7&-8;H[e+156>>2]=c+8;L[a+140>>2]=M[c>>3];f=1;break g;case 33:c=c+7&-8;H[e+156>>2]=c+8;L[a+144>>2]=M[c>>3];f=1;break g;case 42:H[e+156>>2]=c+4;d=H[c>>2];if(d-4>>>0<4294967293){break b}G[a+136>>1]=d;f=1;break g;case 43:G[a+148>>1]=H[c>>2];H[e+156>>2]=c+8;G[a+150>>1]=H[c+4>>2];f=1;break g;case 67:G[a+164>>1]=H[c>>2];H[e+156>>2]=c+8;G[a+166>>1]=H[c+4>>2];f=1;break g;case 66:d=J[a+84>>1];H[e+156>>2]=c+4;f=H[c>>2];g=H[a+152>>2];if(g){Kb(g);H[a+152>>2]=0}d=1<>>0>>0){break D}h=Tb(g);H[a+152>>2]=h;if(!h){break D}Kc(h,f,g)}f=H[c+4>>2];g=H[a+156>>2];if(g){Kb(g);H[a+156>>2]=0}E:{if(!f){break E}g=d+d|0;if(g>>>0>>0){break E}h=Tb(g);H[a+156>>2]=h;if(!h){break E}Kc(h,f,g)}H[e+156>>2]=c+12;c=H[c+8>>2];f=H[a+160>>2];if(f){Kb(f);H[a+160>>2]=0}f=1;if(!c){break g}g=d;d=d+d|0;if(g>>>0>d>>>0){break g}g=Tb(d);H[a+160>>2]=g;if(!g){break g}Kc(g,c,d);break g;case 278:break j;case 47:break l;case 276:break m;case 277:break n;case 76:break o;case 85:break q;case 69:break t;case 68:break u;case 84:break w;case 1:case 6:case 7:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 22:case 25:case 31:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 80:case 81:case 82:case 83:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 217:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 240:case 241:case 242:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:case 275:break h;case 79:break i}}d=H[c>>2];h=d&65535;if(h>>>0>J[a+98>>1]){break b}g=H[c+4>>2];if(g?0:d){break b}if(d){c=0;while(1){f=g+(c<<1)|0;i=J[f>>1];if(i>>>0>=3){if((i|0)!=999){break b}G[f>>1]=2}c=c+1|0;if((d|0)!=(c|0)){continue}break}}G[a+168>>1]=d;c=H[a+172>>2];if(c){Kb(c);H[a+172>>2]=0}if(!g){break k}f=1;d=h<<1;c=Tb(d);H[a+172>>2]=c;if(!c){break g}Kc(c,g,d);break g}H[e+156>>2]=c+4;c=H[c>>2];G[a+168>>1]=(c|0)!=0;if(!c){break k}f=1;G[e+144>>1]=1;c=e+144|0;d=H[a+172>>2];if(d){Kb(d);H[a+172>>2]=0}F:{if(!c){break F}d=Tb(2);H[a+172>>2]=d;if(!d){break F}Kc(d,c,2)}break g}H[e+156>>2]=c+4;c=H[c>>2];if(c&15){if(H[a+8>>2]){break d}d=H[a>>2];f=H[a+628>>2];H[e+80>>2]=c;sc(f,d,275377,e+80|0)}H[a+68>>2]=c;H[a+12>>2]=H[a+12>>2]|1024;f=1;break g}H[e+156>>2]=c+4;c=H[c>>2];if(c&15){if(H[a+8>>2]){break d}d=H[a>>2];f=H[a+628>>2];H[e+96>>2]=c;sc(f,d,275884,e+96|0)}H[a+72>>2]=c;H[a+12>>2]=H[a+12>>2]|1024;f=1;break g}H[e+156>>2]=c+4;c=H[c>>2];if(!c){break e}H[a+76>>2]=c;f=1;break g}H[e+156>>2]=c+4;d=H[c>>2];if(d>>>0>3){break b}d=d<<4;c=d&31;G[a+86>>1]=(d&63)>>>0>=32?196609>>>c|0:((1<>>c;f=1;break g}H[e+156>>2]=c+4;d=H[c>>2];if(d-7>>>0<4294967290){break b}G[a+86>>1]=d;G:{if((d|0)==5){if(J[a+84>>1]!=32|H[a+652>>2]!=1420){break G}H[a+652>>2]=1418;f=1;break g}f=1;if((d-5&65535)>>>0>1){break g}}f=1;if(J[a+84>>1]!=64|H[a+652>>2]!=1417){break g}H[a+652>>2]=1420;break g}H[e+156>>2]=c+4;H[a- -64>>2]=H[c>>2];f=1;break g}if(!(I[a+13|0]&32)){d=H[c>>2];G[a+196>>1]=d;H[e+156>>2]=c+8;c=H[c+4>>2];d=d&65535;f=H[a+200>>2];if(f){Kb(f);H[a+200>>2]=0}H:{if(!c){break H}f=d<<2;d=Tb(f);H[a+200>>2]=d;if(!d){break H}Kc(d,c,f)}f=1;break g}b=H[a+628>>2];H[e+112>>2]=H[a>>2];Pb(b,275069,276327,e+112|0);break a}H[e+156>>2]=c+4;G[a+208>>1]=H[c>>2];f=1;break g}G[a+204>>1]=H[c>>2];H[e+156>>2]=c+8;G[a+206>>1]=H[c+4>>2];f=1;break g}j=(J[a+98>>1]-J[a+168>>1]|0)>1?3:1;while(1){d=J[a+84>>1];g=H[c>>2];h=(f<<2)+a|0;i=H[h+216>>2];if(i){Kb(i);H[h+216>>2]=0}I:{if(!g){break I}i=1<>>0>>0){break I}i=h;h=Tb(d);H[i+216>>2]=h;if(!h){break I}Kc(h,g,d)}c=c+4|0;f=f+1|0;if((j|0)!=(f|0)){continue}break}H[e+156>>2]=c}f=1;break g}H[e+156>>2]=c+4;c=H[c>>2];d=H[a+212>>2];if(d){Kb(d);H[a+212>>2]=0}f=1;if(!c){break g}d=Tb(24);H[a+212>>2]=d;if(!d){break g}Kc(d,c,24);break g}h=H[c>>2];H[e+156>>2]=c+8;g=J[a+98>>1];d=g;if(!h){break f}if(!g){break a}d=h;h=H[c+4>>2];i=d+h|0;c=h;d=g;while(1){if(I[c|0]){while(1){if(c>>>0>=i>>>0){break f}j=I[c+1|0];c=c+1|0;if(j){continue}break}}c=c+1|0;d=d-1|0;if(d&65535){continue}break}if((c|0)==(h|0)){break a}c=c-h|0;JB(a+232|0,h,c);H[a+228>>2]=c;f=1;break g}J:{K:{L:{h=zj(a,b);M:{if(!h){c=b>>>0>65535?273761:274454;b=277446;break M}if(J[h+12>>1]==65){c=0;g=H[a+236>>2];if((g|0)>0){break L}f=H[a+240>>2];break K}c=b>>>0>65535?273761:274454;b=H[h+16>>2]}d=H[a+628>>2];a=H[a>>2];H[e+8>>2]=b;H[e+4>>2]=c;H[e>>2]=a;Pb(d,275069,277214,e);break a}f=H[a+240>>2];while(1){d=N(c,12)+f|0;if(H[H[d>>2]>>2]==(b|0)){c=N(c,12)+f|0;f=H[c+8>>2];if(!f){break J}Kb(f);H[c+8>>2]=0;break J}c=c+1|0;if((g|0)!=(c|0)){continue}break}}c=g+1|0;H[a+236>>2]=c;c=Ij(f,N(c,12));if(!c){b=H[a+628>>2];H[e+32>>2]=H[a>>2];Pb(b,275069,277995,e+32|0);f=0;break a}H[a+240>>2]=c;d=(c+N(H[a+236>>2],12)|0)-12|0;H[d>>2]=h;H[d+4>>2]=0;H[d+8>>2]=0}c=H[h+8>>2]-1|0;if(c>>>0<=12){g=H[(c<<2)+290808>>2]}else{g=0}if(!g){b=H[a+628>>2];a=H[a>>2];c=H[h+8>>2];H[e+24>>2]=H[h+16>>2];H[e+20>>2]=c;H[e+16>>2]=a;Pb(b,275069,278801,e+16|0);f=0;break a}N:{if(I[h+15|0]){c=H[e+156>>2];H[e+156>>2]=c+4;c=H[c>>2];break N}c=1;O:{P:{f=G[h+6>>1];switch((f&65535)-65533|0){case 1:break P;case 0:case 2:break N;default:break O}}c=J[a+98>>1];break N}c=f}H[d+4>>2]=c;if(H[h+8>>2]==2){c=H[e+156>>2];H[e+156>>2]=c+4;Lk(d+8|0,H[c>>2]);f=1;break g}c=Md(a,g,c,279041);H[d+8>>2]=c;if(!c){break c}Q:{if(!(I[h+15|0]|J[h+6>>1]>65532)){i=H[d+4>>2];if((i|0)<2){break Q}}R:{S:{T:{f=H[h>>2];switch(f-321|0){case 0:case 15:break R;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break S;default:break T}}if((f|0)==297|(f|0)==530){break R}}f=H[e+156>>2];H[e+156>>2]=f+4;Kc(c,H[f>>2],N(g,H[d+4>>2]));f=1;break g}i=H[d+4>>2]}f=1;if((i|0)<=0){break g}i=0;while(1){U:{V:{switch(H[h+8>>2]-1|0){case 0:case 6:j=H[e+156>>2];H[e+156>>2]=j+4;F[e+144|0]=H[j>>2];Kc(c,e+144|0,g);break U;case 5:j=H[e+156>>2];H[e+156>>2]=j+4;F[e+144|0]=H[j>>2];Kc(c,e+144|0,g);break U;case 2:j=H[e+156>>2];H[e+156>>2]=j+4;G[e+144>>1]=H[j>>2];Kc(c,e+144|0,g);break U;case 7:j=H[e+156>>2];H[e+156>>2]=j+4;G[e+144>>1]=H[j>>2];Kc(c,e+144|0,g);break U;case 3:case 12:j=H[e+156>>2];H[e+156>>2]=j+4;H[e+144>>2]=H[j>>2];Kc(c,e+144|0,g);break U;case 8:j=H[e+156>>2];H[e+156>>2]=j+4;H[e+144>>2]=H[j>>2];Kc(c,e+144|0,g);break U;case 4:case 9:case 10:j=H[e+156>>2]+7&-8;H[e+156>>2]=j+8;L[e+144>>2]=M[j>>3];Kc(c,e+144|0,g);break U;case 11:j=H[e+156>>2]+7&-8;H[e+156>>2]=j+8;M[e+144>>3]=M[j>>3];Kc(c,e+144|0,g);break U;default:break V}}f=0;Id(c,0,g)}c=c+g|0;i=i+1|0;if((i|0)>2]){continue}break}if(!f){break c}}c=J[rd(a,b)+12>>1];b=(J[rd(a,b)+12>>1]>>>3&8188)+a|0;H[b+40>>2]=H[b+40>>2]|1<>2]=H[a+12>>2]|8;break a}b=H[a+628>>2];H[e+128>>2]=H[a>>2];H[e+132>>2]=g;H[e+136>>2]=g-(d&65535);Pb(b,272587,280014,e+128|0);break a}c=0}d=H[a+628>>2];f=H[a>>2];k=e,l=H[rd(a,b)+16>>2],H[k+72>>2]=l;H[e+68>>2]=c;H[e+64>>2]=f;Pb(d,275069,279593,e- -64|0)}f=0;break a}c=H[a+628>>2];f=H[a>>2];k=e,l=H[rd(a,b)+16>>2],H[k+56>>2]=l;H[e+52>>2]=d;H[e+48>>2]=f;Pb(c,275069,279348,e+48|0);f=0}xb=e+160|0;return f|0}function VX(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;d=xb-304|0;xb=d;a=H[a+72>>2];a:{if(!a){break a}if(!c){c=zb[H[H[a>>2]+68>>2]](a,2)|0}h=M[c+40>>3];i=M[c+32>>3];j=M[c+24>>3];k=M[c>>3];l=M[c+16>>3];m=M[c+8>>3];b:{c:{d:{e:{f:{g:{c=H[b>>2];e=H[b+4>>2];a=0;h:{if((c|0)==(e|0)){break h}while(1){i:{a=I[c+11|0];if(((a<<24>>24<0?H[c+4>>2]:a)|0)!=9){break i}H[197455]=0;a=pa(1924,c|0,0,-1,429444,9)|0;f=H[197455];H[197455]=0;if((f|0)==1){break g}if(a){break i}a=c;break h}c=c+24|0;if((e|0)!=(c|0)){continue}break}a=0}H[d+296>>2]=0;H[d+288>>2]=0;H[d+292>>2]=0;c=k!=1|j!=1;e=!c;f=i!=0|h!=0;if(!(e|f)){H[197455]=0;fa(1756,d+240|0,+k,-1);c=H[197455];H[197455]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{if((c|0)!=1){H[197455]=0;c=ca(1758,d+240|0,0,430732)|0;e=H[197455];H[197455]=0;if((e|0)==1){break r}H[d+264>>2]=H[c+8>>2];e=H[c+4>>2];H[d+256>>2]=H[c>>2];H[d+260>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+256|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break q}H[d+280>>2]=H[d+264>>2];H[d+264>>2]=0;c=H[d+260>>2];H[d+272>>2]=H[d+256>>2];H[d+276>>2]=c;H[d+256>>2]=0;H[d+260>>2]=0;H[197455]=0;fa(1756,d+224|0,+j,-1);c=H[197455];H[197455]=0;if((c|0)==1){break p}H[197455]=0;c=I[d+235|0];e=c<<24>>24<0;c=ca(1759,d+272|0,(e?H[d+224>>2]:d+224|0)|0,(e?H[d+228>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break o}H[d+8>>2]=H[c+8>>2];e=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d|0,41);c=H[197455];H[197455]=0;if((c|0)==1){break n}e=I[d+11|0];c=I[d+7|0]|I[d+8|0]<<8|(I[d+9|0]<<16|I[d+10|0]<<24);H[d+8>>2]=0;f=H[d>>2];g=H[d+4>>2];H[d>>2]=0;H[d+4>>2]=0;H[d+200>>2]=g;F[d+203|0]=c;F[d+204|0]=c>>>8;F[d+205|0]=c>>>16;F[d+206|0]=c>>>24;s:{if(F[d+299|0]>=0){H[d+288>>2]=f;H[d+292>>2]=H[d+200>>2];c=I[d+203|0]|I[d+204|0]<<8|(I[d+205|0]<<16|I[d+206|0]<<24);F[d+295|0]=c;F[d+296|0]=c>>>8;F[d+297|0]=c>>>16;F[d+298|0]=c>>>24;F[d+299|0]=e;break s}Kb(H[d+288>>2]);H[d+288>>2]=f;F[d+299|0]=e;H[d+292>>2]=H[d+200>>2];c=I[d+203|0]|I[d+204|0]<<8|(I[d+205|0]<<16|I[d+206|0]<<24);F[d+295|0]=c;F[d+296|0]=c>>>8;F[d+297|0]=c>>>16;F[d+298|0]=c>>>24;if(F[d+11|0]>=0){break s}Kb(H[d>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+251|0]>=0){break f}Kb(H[d+240>>2]);break f}a=$()|0;_()|0;break e}a=$()|0;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;if(F[d+11|0]>=0){break m}Kb(H[d>>2])}if(F[d+235|0]>=0){break l}Kb(H[d+224>>2])}if(F[d+283|0]>=0){break k}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break j}Kb(H[d+256>>2])}if(F[d+251|0]>=0){break e}Kb(H[d+240>>2]);break e}g=c;c=!f;if(!(g|c)){H[197455]=0;fa(1756,d+240|0,+i,-1);c=H[197455];H[197455]=0;t:{u:{v:{w:{x:{y:{z:{A:{B:{if((c|0)!=1){H[197455]=0;c=ca(1758,d+240|0,0,430760)|0;e=H[197455];H[197455]=0;if((e|0)==1){break B}H[d+264>>2]=H[c+8>>2];e=H[c+4>>2];H[d+256>>2]=H[c>>2];H[d+260>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+256|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break A}H[d+280>>2]=H[d+264>>2];H[d+264>>2]=0;c=H[d+260>>2];H[d+272>>2]=H[d+256>>2];H[d+276>>2]=c;H[d+256>>2]=0;H[d+260>>2]=0;H[197455]=0;fa(1756,d+224|0,+h,-1);c=H[197455];H[197455]=0;if((c|0)==1){break z}H[197455]=0;c=I[d+235|0];e=c<<24>>24<0;c=ca(1759,d+272|0,(e?H[d+224>>2]:d+224|0)|0,(e?H[d+228>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break y}H[d+8>>2]=H[c+8>>2];e=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d|0,41);c=H[197455];H[197455]=0;if((c|0)==1){break x}e=I[d+11|0];c=I[d+7|0]|I[d+8|0]<<8|(I[d+9|0]<<16|I[d+10|0]<<24);H[d+8>>2]=0;f=H[d>>2];g=H[d+4>>2];H[d>>2]=0;H[d+4>>2]=0;H[d+200>>2]=g;F[d+203|0]=c;F[d+204|0]=c>>>8;F[d+205|0]=c>>>16;F[d+206|0]=c>>>24;C:{if(F[d+299|0]>=0){H[d+288>>2]=f;H[d+292>>2]=H[d+200>>2];c=I[d+203|0]|I[d+204|0]<<8|(I[d+205|0]<<16|I[d+206|0]<<24);F[d+295|0]=c;F[d+296|0]=c>>>8;F[d+297|0]=c>>>16;F[d+298|0]=c>>>24;F[d+299|0]=e;break C}Kb(H[d+288>>2]);H[d+288>>2]=f;F[d+299|0]=e;H[d+292>>2]=H[d+200>>2];c=I[d+203|0]|I[d+204|0]<<8|(I[d+205|0]<<16|I[d+206|0]<<24);F[d+295|0]=c;F[d+296|0]=c>>>8;F[d+297|0]=c>>>16;F[d+298|0]=c>>>24;if(F[d+11|0]>=0){break C}Kb(H[d>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+251|0]>=0){break f}Kb(H[d+240>>2]);break f}a=$()|0;_()|0;break e}a=$()|0;_()|0;break t}a=$()|0;_()|0;break u}a=$()|0;_()|0;break v}a=$()|0;_()|0;break w}a=$()|0;_()|0;if(F[d+11|0]>=0){break w}Kb(H[d>>2])}if(F[d+235|0]>=0){break v}Kb(H[d+224>>2])}if(F[d+283|0]>=0){break u}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break t}Kb(H[d+256>>2])}if(F[d+251|0]>=0){break e}Kb(H[d+240>>2]);break e}if(c|e){break b}H[197455]=0;fa(1756,d+104|0,+k,-1);c=H[197455];H[197455]=0;D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{if((c|0)!=1){H[197455]=0;c=ca(1758,d+104|0,0,430804)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ha}H[d+128>>2]=H[c+8>>2];e=H[c+4>>2];H[d+120>>2]=H[c>>2];H[d+124>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+120|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break ga}H[d+144>>2]=H[d+128>>2];H[d+128>>2]=0;c=H[d+124>>2];H[d+136>>2]=H[d+120>>2];H[d+140>>2]=c;H[d+120>>2]=0;H[d+124>>2]=0;H[197455]=0;fa(1756,d+88|0,+m,-1);c=H[197455];H[197455]=0;if((c|0)==1){break fa}H[197455]=0;c=I[d+99|0];e=c<<24>>24<0;c=ca(1759,d+136|0,(e?H[d+88>>2]:d+88|0)|0,(e?H[d+92>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ea}H[d+160>>2]=H[c+8>>2];e=H[c+4>>2];H[d+152>>2]=H[c>>2];H[d+156>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+152|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break da}H[d+176>>2]=H[d+160>>2];H[d+160>>2]=0;c=H[d+156>>2];H[d+168>>2]=H[d+152>>2];H[d+172>>2]=c;H[d+152>>2]=0;H[d+156>>2]=0;H[197455]=0;fa(1756,d+72|0,+l,-1);c=H[197455];H[197455]=0;if((c|0)==1){break ca}H[197455]=0;c=I[d+83|0];e=c<<24>>24<0;c=ca(1759,d+168|0,(e?H[d+72>>2]:d+72|0)|0,(e?H[d+76>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ba}H[d+192>>2]=H[c+8>>2];e=H[c+4>>2];H[d+184>>2]=H[c>>2];H[d+188>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+184|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break aa}H[d+208>>2]=H[d+192>>2];H[d+192>>2]=0;c=H[d+188>>2];H[d+200>>2]=H[d+184>>2];H[d+204>>2]=c;H[d+184>>2]=0;H[d+188>>2]=0;H[197455]=0;fa(1756,d+56|0,+j,-1);c=H[197455];H[197455]=0;if((c|0)==1){break $}H[197455]=0;c=I[d+67|0];e=c<<24>>24<0;c=ca(1759,d+200|0,(e?H[d+56>>2]:d+56|0)|0,(e?H[d+60>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break _}H[d+232>>2]=H[c+8>>2];e=H[c+4>>2];H[d+224>>2]=H[c>>2];H[d+228>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+224|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break Z}H[d+248>>2]=H[d+232>>2];H[d+232>>2]=0;c=H[d+228>>2];H[d+240>>2]=H[d+224>>2];H[d+244>>2]=c;H[d+224>>2]=0;H[d+228>>2]=0;H[197455]=0;fa(1756,d+40|0,+i,-1);c=H[197455];H[197455]=0;if((c|0)==1){break Y}H[197455]=0;c=I[d+51|0];e=c<<24>>24<0;c=ca(1759,d+240|0,(e?H[d+40>>2]:d+40|0)|0,(e?H[d+44>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break X}H[d+264>>2]=H[c+8>>2];e=H[c+4>>2];H[d+256>>2]=H[c>>2];H[d+260>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+256|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break W}H[d+280>>2]=H[d+264>>2];H[d+264>>2]=0;c=H[d+260>>2];H[d+272>>2]=H[d+256>>2];H[d+276>>2]=c;H[d+256>>2]=0;H[d+260>>2]=0;H[197455]=0;fa(1756,d+24|0,+h,-1);c=H[197455];H[197455]=0;if((c|0)==1){break V}H[197455]=0;c=I[d+35|0];e=c<<24>>24<0;c=ca(1759,d+272|0,(e?H[d+24>>2]:d+24|0)|0,(e?H[d+28>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break U}H[d+8>>2]=H[c+8>>2];e=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d|0,41);c=H[197455];H[197455]=0;if((c|0)==1){break T}e=I[d+11|0];c=I[d+7|0]|I[d+8|0]<<8|(I[d+9|0]<<16|I[d+10|0]<<24);H[d+8>>2]=0;f=H[d>>2];g=H[d+4>>2];H[d>>2]=0;H[d+4>>2]=0;H[d+216>>2]=g;F[d+219|0]=c;F[d+220|0]=c>>>8;F[d+221|0]=c>>>16;F[d+222|0]=c>>>24;ia:{if(F[d+299|0]>=0){H[d+288>>2]=f;H[d+292>>2]=H[d+216>>2];c=I[d+219|0]|I[d+220|0]<<8|(I[d+221|0]<<16|I[d+222|0]<<24);F[d+295|0]=c;F[d+296|0]=c>>>8;F[d+297|0]=c>>>16;F[d+298|0]=c>>>24;F[d+299|0]=e;break ia}Kb(H[d+288>>2]);H[d+288>>2]=f;F[d+299|0]=e;H[d+292>>2]=H[d+216>>2];c=I[d+219|0]|I[d+220|0]<<8|(I[d+221|0]<<16|I[d+222|0]<<24);F[d+295|0]=c;F[d+296|0]=c>>>8;F[d+297|0]=c>>>16;F[d+298|0]=c>>>24;if(F[d+11|0]>=0){break ia}Kb(H[d>>2])}if(F[d+35|0]<0){Kb(H[d+24>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+211|0]<0){Kb(H[d+200>>2])}if(F[d+195|0]<0){Kb(H[d+184>>2])}if(F[d+83|0]<0){Kb(H[d+72>>2])}if(F[d+179|0]<0){Kb(H[d+168>>2])}if(F[d+163|0]<0){Kb(H[d+152>>2])}if(F[d+99|0]<0){Kb(H[d+88>>2])}if(F[d+147|0]<0){Kb(H[d+136>>2])}if(F[d+131|0]<0){Kb(H[d+120>>2])}if(F[d+115|0]>=0){break f}Kb(H[d+104>>2]);break f}a=$()|0;_()|0;break e}a=$()|0;_()|0;break D}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;_()|0;break G}a=$()|0;_()|0;break H}a=$()|0;_()|0;break I}a=$()|0;_()|0;break J}a=$()|0;_()|0;break K}a=$()|0;_()|0;break L}a=$()|0;_()|0;break M}a=$()|0;_()|0;break N}a=$()|0;_()|0;break O}a=$()|0;_()|0;break P}a=$()|0;_()|0;break Q}a=$()|0;_()|0;break R}a=$()|0;_()|0;break S}a=$()|0;_()|0;if(F[d+11|0]>=0){break S}Kb(H[d>>2])}if(F[d+35|0]>=0){break R}Kb(H[d+24>>2])}if(F[d+283|0]>=0){break Q}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break P}Kb(H[d+256>>2])}if(F[d+51|0]>=0){break O}Kb(H[d+40>>2])}if(F[d+251|0]>=0){break N}Kb(H[d+240>>2])}if(F[d+235|0]>=0){break M}Kb(H[d+224>>2])}if(F[d+67|0]>=0){break L}Kb(H[d+56>>2])}if(F[d+211|0]>=0){break K}Kb(H[d+200>>2])}if(F[d+195|0]>=0){break J}Kb(H[d+184>>2])}if(F[d+83|0]>=0){break I}Kb(H[d+72>>2])}if(F[d+179|0]>=0){break H}Kb(H[d+168>>2])}if(F[d+163|0]>=0){break G}Kb(H[d+152>>2])}if(F[d+99|0]>=0){break F}Kb(H[d+88>>2])}if(F[d+147|0]>=0){break E}Kb(H[d+136>>2])}if(F[d+131|0]>=0){break D}Kb(H[d+120>>2])}if(F[d+115|0]>=0){break e}Kb(H[d+104>>2]);break e}ha(0)|0;_()|0;Zb();X()}if(a){H[197455]=0;ga(2915,d|0,d+288|0,32);b=H[197455];H[197455]=0;ja:{if((b|0)!=1){H[197455]=0;c=a+12|0;a=I[d+11|0];b=a<<24>>24<0;la(1768,c|0,0,(b?H[d>>2]:d)|0,(b?H[d+4>>2]:a)|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break ja}if(F[d+11|0]>=0){break b}Kb(H[d>>2]);break b}a=$()|0;_()|0;break e}a=$()|0;_()|0;if(F[d+11|0]>=0){break e}Kb(H[d>>2]);break e}H[197455]=0;c=ca(2916,d|0,429444,d+288|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){e=H[b+4>>2];if(e>>>0>2]){if(F[c+11|0]>=0){a=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=a;H[e+8>>2]=H[d+8>>2];break d}a=H[c+4>>2];f=H[c>>2];H[197455]=0;ga(1647,e|0,f|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break d}a=$()|0;_()|0;H[b+4>>2]=e;Vb(c);break e}H[197455]=0;ba(1777,b|0,c|0);a=H[197455];H[197455]=0;if((a|0)!=1){if(F[c+23|0]>=0){break c}Kb(H[c+12>>2]);break c}a=$()|0;_()|0;Vb(c);break e}a=$()|0;_()|0}if(F[d+299|0]<0){Kb(H[d+288>>2])}ea(a|0);X()}a=H[c+16>>2];H[e+12>>2]=H[c+12>>2];H[e+16>>2]=a;H[e+20>>2]=H[c+20>>2];H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[b+4>>2]=e+24}if(F[c+11|0]>=0){break b}Kb(H[c>>2])}if(F[d+299|0]>=0){break a}Kb(H[d+288>>2])}xb=d+304|0}function s9(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,L=0,M=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;k=xb-26352|0;xb=k;S=H[b+92>>2];H[a+40>>2]=J[b+68>>1];c=0;a:{if(Kh(b,1970170211)){break a}c=H[b+100>>2];Nb(k+19664|4,0,2756);H[k+19664>>2]=c;H[a+9856>>2]=0;H[a+52>>2]=0;g=H[H[(H[H[a>>2]+8>>2]<<2)+16352>>2]+16>>2];c=I[g|0];b:{if(!c){break b}while(1){if((c&255)==32){while(1){c=I[g+1|0];g=g+1|0;if((c|0)==32){continue}break}}l=c&255;d=g+1|0;j=H[a+36>>2];if(c<<24>>24<0){c=l>>>0<240;e=l>>>0<224;f=e?1:c?2:3;h=f-1|0;l=(e?31:c?15:7)&l;e=0;c=f;while(1){l=I[d|0]&63|l<<6;c=c-1|0;d=d+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}if(h>>>0>=3){while(1){l=I[d+3|0]&63|((I[d+1|0]&63|(l<<12|(I[d|0]&63)<<6))<<12|(I[d+2|0]&63)<<6);d=d+4|0;c=c-4|0;if(c){continue}break}}d=(f+g|0)+1|0}g=d;j=H[j>>2];d=0;while(1){c=I[g|0];if((c|32)!=32){g=g+1|0;d=c;if(c<<24>>24>=0){continue}c=d>>>0<240;e=d>>>0<224;f=e?1:c?2:3;i=f-1|0;d=(e?31:c?15:7)&d;h=0;e=f;c=g;while(1){d=I[c|0]&63|d<<6;e=e-1|0;c=c+1|0;h=h+1|0;if((f|0)!=(h|0)){continue}break}if(i>>>0>=3){while(1){d=I[c+3|0]&63|((I[c+1|0]&63|(d<<12|(I[c|0]&63)<<6))<<12|(I[c+2|0]&63)<<6);c=c+4|0;e=e-4|0;if(e){continue}break}}g=f+g|0;continue}break}c:{if(!d){c=Wd(j,l);if(c){break c}c=I[g|0]}if(c&255){continue}break b}break}if(Ag(b,c,1)){break b}c=H[b+84>>2];if(G[c+110>>1]<=0){break b}d=Nb(k,0,19652);e=H[a+40>>2];H[d+8>>2]=65536;H[d+12>>2]=65536;H[d+40>>2]=e;H[d+4>>2]=b;H[d+22404>>2]=0;H[d+22412>>2]=d;if(rl(d+19664|0,c+108|0)){break b}if(xi(d+19664|0,0)){break b}h=0;Jk(d+19664|0,0,0,0);e=H[d+19708>>2];if((e|0)>0){c=H[d+19716>>2];g=c+N(e,44)|0;while(1){e=H[c+20>>2];if(!(!e|H[e+20>>2]!=(c|0)|(h>>>0>15|c>>>0>=e>>>0))){f=G[c+2>>1]-G[e+2>>1]|0;e=f>>31;H[(N(h,12)+a|0)+56>>2]=(e^f)-e;h=h+1|0}c=c+44|0;if(g>>>0>c>>>0){continue}break}}H[d+26304>>2]=h;Wm(d+26304|0,a+56|0,K[d+40>>2]/100|0);H[a+52>>2]=H[d+26304>>2];if(xi(d+19664|0,1)){break b}h=0;Jk(d+19664|0,0,0,1);e=H[d+21056>>2];if((e|0)>0){c=H[d+21064>>2];g=c+N(e,44)|0;while(1){e=H[c+20>>2];if(!(!e|H[e+20>>2]!=(c|0)|(h>>>0>15|c>>>0>=e>>>0))){f=G[c+2>>1]-G[e+2>>1]|0;e=f>>31;H[(N(h,12)+a|0)+9860>>2]=(e^f)-e;h=h+1|0}c=c+44|0;if(g>>>0>c>>>0){continue}break}}H[d+26304>>2]=h;Wm(d+26304|0,a+9860|0,K[d+40>>2]/100|0);H[a+9856>>2]=H[d+26304>>2]}if(H[a+52>>2]){c=H[a+56>>2]}else{c=(N(H[a+40>>2],50)|0)/2048|0}F[a+256|0]=0;H[a+252>>2]=c;H[a+248>>2]=(c|0)/5;if(H[a+9856>>2]){c=H[a+9860>>2]}else{c=(N(H[a+40>>2],50)|0)/2048|0}F[a+10060|0]=0;H[a+10056>>2]=c;H[a+10052>>2]=(c|0)/5;dq(k+19664|0);T=K[a+40>>2]/14|0;P=H[a>>2];c=(H[P+12>>2]<<3)+6560|0;d=H[c>>2];if((d|0)!=5531){while(1){s=c;g=d+1024|0;d=I[g|0];d:{if(!d){break d}v=0;u=0;l=0;p=0;while(1){if((d&255)==32){while(1){d=I[g+1|0];g=g+1|0;if((d|0)==32){continue}break}}m=d&255;c=g+1|0;j=H[a+36>>2];if(d<<24>>24<0){d=m>>>0<240;e=m>>>0<224;f=e?1:d?2:3;h=f-1|0;m=(e?31:d?15:7)&m;e=0;d=f;while(1){m=I[c|0]&63|m<<6;d=d-1|0;c=c+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}if(h>>>0>=3){while(1){m=I[c+3|0]&63|((I[c+1|0]&63|(m<<12|(I[c|0]&63)<<6))<<12|(I[c+2|0]&63)<<6);c=c+4|0;d=d-4|0;if(d){continue}break}}c=(f+g|0)+1|0}g=c;j=H[j>>2];d=0;while(1){c=I[g|0];if((c|32)!=32){g=g+1|0;d=c;if(c<<24>>24>=0){continue}c=d>>>0<240;e=d>>>0<224;f=e?1:c?2:3;i=f-1|0;d=(e?31:c?15:7)&d;h=0;e=f;c=g;while(1){d=I[c|0]&63|d<<6;e=e-1|0;c=c+1|0;h=h+1|0;if((f|0)!=(h|0)){continue}break}if(i>>>0>=3){while(1){d=I[c+3|0]&63|((I[c+1|0]&63|(d<<12|(I[c|0]&63)<<6))<<12|(I[c+2|0]&63)<<6);c=c+4|0;e=e-4|0;if(e){continue}break}}g=f+g|0;continue}break}e:{if(d){break e}c=Wd(j,m);A=F[s+4|0]&1?-2147483648:2147483647;m=0;f:{if(!c){break f}if(Ag(b,c,1)){break f}c=H[b+84>>2];if(G[c+110>>1]<3){break f}M=0;m=G[c+108>>1];g:{if((m|0)<=0){i=0;C=J[s+4>>1];break g}C=H[c+120>>2];B=H[c+116>>2];q=H[c+112>>2];j=-1;w=0;x=0;f=0;i=0;d=0;while(1){n=G[C+(i<<1)>>1];h:{if((n|0)<=(f|0)){e=j;break h}i:{if(I[s+4|0]&3){j:{if(!((n-f|0)+1&1)){h=f;c=d;e=j;break j}h=f+1|0;c=H[((f<<3)+q|0)+4>>2];k:{if(!((j|0)<0|(d|0)<(c|0))){p=(c|0)>(p|0)?p:c;c=d;e=j;break k}l=(c|0)<(l|0)?l:c;d=c;e=f}}if((f|0)==(n|0)){break i}while(1){d=H[((h<<3)+q|0)+4>>2];l:{if(!((d|0)<=(c|0)&(e|0)>=0)){l=(d|0)<(l|0)?l:d;e=h;break l}p=(d|0)>(p|0)?p:d;d=c}o=h+1|0;c=H[((o<<3)+q|0)+4>>2];m:{if(!((e|0)<0|(d|0)<(c|0))){p=(c|0)>(p|0)?p:c;c=d;break m}l=(c|0)<(l|0)?l:c;e=o}h=h+2|0;d=c;if((n|0)!=(o|0)){continue}break}break i}n:{if(!((n-f|0)+1&1)){h=f;c=d;e=j;break n}h=f+1|0;c=H[((f<<3)+q|0)+4>>2];o:{if(!((j|0)<0|(d|0)>(c|0))){l=(c|0)<(l|0)?l:c;c=d;e=j;break o}p=(c|0)>(p|0)?p:c;d=c;e=f}}if((f|0)==(n|0)){break i}while(1){d=H[((h<<3)+q|0)+4>>2];p:{if(!((e|0)>=0&(d|0)>=(c|0))){p=(d|0)>(p|0)?p:d;e=h;break p}l=(d|0)<(l|0)?l:d;d=c}o=h+1|0;c=H[((o<<3)+q|0)+4>>2];q:{if(!((e|0)<0|(d|0)>(c|0))){l=(c|0)<(l|0)?l:c;c=d;break q}p=(c|0)>(p|0)?p:c;e=o}h=h+2|0;d=c;if((n|0)!=(o|0)){continue}break}}c=(e|0)==(j|0);w=c?w:f;x=c?x:n;j=e}f=n+1|0;i=i+1|0;if((m|0)!=(i|0)){continue}break}if((e|0)<0){i=d;C=J[s+4>>1];break g}L=H[(e<<3)+q>>2];j=e;c=(I[e+B|0]&3)==1?e:-1;h=c;r:{while(1){f=(j|0)>(w|0)?j-1|0:x;o=(f<<3)+q|0;n=H[o+4>>2]-d|0;i=n>>31;n=(i^n)-i|0;if(n>>>0>=6){o=H[o>>2]-L|0;i=o>>31;if((i^o)-i>>>0<=N(n,20)>>>0){break r}}j=(I[f+B|0]&3)==1;h=j?(h|0)<0?f:h:h;c=j?f:c;j=f;if((f|0)!=(e|0)){continue}break}j=e}f=e;s:{while(1){i=(f|0)<(x|0)?f+1|0:w;O=(i<<3)+q|0;n=H[O+4>>2]-d|0;o=n>>31;n=(n^o)-o|0;if(n>>>0>=6){m=H[O>>2]-L|0;o=m>>31;if((m^o)-o>>>0<=N(n,20)>>>0){break s}}f=(I[i+B|0]&3)==1;c=f?(c|0)<0?i:c:c;h=f?i:h;f=i;if((f|0)!=(e|0)){continue}break}f=e}C=J[s+4>>1];t:{u:{if(!(C&16)){break u}o=H[(f<<3)+q>>2]-H[(j<<3)+q>>2]|0;i=o>>31;n=H[a+40>>2];Q=(n>>>0)/25|0;if(Q>>>0<=(i^o)-i>>>0){break u}i=e;if(((f-j|0)+2|0)>(x-w|0)){break u}while(1){i=(i|0)>(w|0)?i-1|0:x;R=H[(i<<3)+q>>2];if((R|0)==(L|0)&(e|0)!=(i|0)){continue}break}m=0;if((e|0)==(i|0)){break f}U=n>>>2|0;D=0;o=f;e=f;n=0;while(1){if(!D){m=(I[e+B|0]&3)==1?e:-1;n=m;o=e}e=(e|0)<(x|0)?e+1|0:w;D=0;y=(o<<3)+q|0;i=H[y+4>>2];z=d-i|0;t=z>>31;v:{if((t^z)-t>>>0>U>>>0){break v}t=(e<<3)+q|0;r=H[t+4>>2]-i|0;z=r>>31;z=(r^z)-z|0;w:{if(z>>>0<=5){t=H[t>>2];y=H[y>>2];r=t-y|0;D=r>>31;r=(r^D)-D|0;break w}t=H[t>>2];y=H[y>>2];E=t-y|0;r=E>>31;r=(r^E)-r|0;if(r>>>0<=N(z,20)>>>0){break v}}D=1;E=(I[e+B|0]&3)==1;m=E?(m|0)<0?e:m:m;n=E?e:n;if((L|0)>(R|0)^(t|0)>(y|0)|(r|0)<(Q|0)){break v}d=N(z,20);while(1){e=(e|0)<(x|0)?e+1|0:w;f=H[((e<<3)+q|0)+4>>2]-i|0;c=f>>31;x:{if((c^f)-c>>>0<6){break x}f=H[O>>2]-y|0;c=f>>31;if(d>>>0<(c^f)-c>>>0){break x}f=(e|0)>(w|0)?e-1|0:x;break t}m=(I[e+B|0]&3)==1?(m|0)<0?e:m:m;n=e;if((e|0)!=(j|0)){continue}break}f=j;n=f;break t}if((e|0)!=(j|0)){continue}break}}i=d;o=j;m=c;n=h}if((m|n)>=0){d=H[(n<<3)+q>>2]-H[(m<<3)+q>>2]|0;c=d>>31;if((c^d)-c>>>0>T>>>0){break g}}if((I[o+B|0]&3)==1&(I[f+B|0]&3)==1){break g}m=0;M=1;if(C&4){break f}}if(C&1){c=(i|0)>(A|0);A=c?i:A;m=c&M;break f}c=(i|0)<(A|0);A=c?i:A;m=c&M}if(A-2147483647>>>0<2){break e}H[(m?(k+19664|0)+(u<<2)|0:(v<<2)+k|0)>>2]=A;u=m+u|0;v=!m+v|0}d=I[g|0];if(d){continue}break}if(!(u|v)){break d}y:{if(u>>>0<2){break y}g=1;c=u-1|0;f=c&1;if((u|0)!=2){j=c&-2;m=0;while(1){e=H[(k+19664|0)+(g<<2)>>2];c=g;while(1){d=c-1|0;h=(k+19664|0)+(d<<2)|0;i=H[h>>2];if((i|0)>(e|0)){H[(k+19664|0)+(c<<2)>>2]=i;H[h>>2]=e;c=d;if(c){continue}}break}c=g+1|0;e=H[(k+19664|0)+(c<<2)>>2];while(1){d=c-1|0;h=(k+19664|0)+(d<<2)|0;i=H[h>>2];if((i|0)>(e|0)){H[(k+19664|0)+(c<<2)>>2]=i;H[h>>2]=e;c=d;if(c){continue}}break}g=g+2|0;m=m+2|0;if((j|0)!=(m|0)){continue}break}}if(!f){break y}d=H[(k+19664|0)+(g<<2)>>2];while(1){c=g-1|0;e=(k+19664|0)+(c<<2)|0;f=H[e>>2];if((f|0)<=(d|0)){break y}H[(k+19664|0)+(g<<2)>>2]=f;H[e>>2]=d;g=c;if(c){continue}break}}z:{if(v>>>0<2){break z}g=1;c=v-1|0;f=c&1;if((v|0)!=2){j=c&-2;m=0;while(1){e=H[(g<<2)+k>>2];c=g;while(1){d=c-1|0;h=(d<<2)+k|0;i=H[h>>2];if((i|0)>(e|0)){H[(c<<2)+k>>2]=i;H[h>>2]=e;c=d;if(c){continue}}break}c=g+1|0;e=H[(c<<2)+k>>2];while(1){d=c-1|0;h=(d<<2)+k|0;i=H[h>>2];if((i|0)>(e|0)){H[(c<<2)+k>>2]=i;H[h>>2]=e;c=d;if(c){continue}}break}g=g+2|0;m=m+2|0;if((j|0)!=(m|0)){continue}break}}if(!f){break z}d=H[(g<<2)+k>>2];while(1){c=g-1|0;e=(c<<2)+k|0;f=H[e>>2];if((f|0)<=(d|0)){break z}H[(g<<2)+k>>2]=f;H[e>>2]=d;g=c;if(c){continue}break}}c=H[a+10064>>2];H[a+10064>>2]=c+1;c=N(c,36)+a|0;e=c+10080|0;g=c+10068|0;A:{B:{if(!v){d=H[(k+19664|0)+(u<<1&-4)>>2];break B}d=H[(v<<1&-4)+k>>2];if(!u){break B}H[g>>2]=d;f=H[(k+19664|0)+(u<<1&-4)>>2];H[e>>2]=f;if((d|0)==(f|0)){j=J[s+4>>1];break A}j=J[s+4>>1];if(((j&3)!=0|0)==((d|0)<(f|0)|0)){break A}d=(d+f|0)/2|0;H[e>>2]=d;H[g>>2]=d;break A}H[e>>2]=d;H[g>>2]=d;j=J[s+4>>1]}d=c+10100|0;e=j<<1&2;H[d>>2]=e;H[c+10096>>2]=p;H[c+10092>>2]=l;c=J[s+4>>1];if(!(c&14)){break d}c=c<<1;H[d>>2]=e|c&4|c&8|c&16}c=s+8|0;d=H[s+8>>2];if((d|0)!=5531){continue}break}}g=H[a+10064>>2];if(g){e=0;c=0;if(g-1>>>0>=3){j=g&-4;d=a+10068|0;h=0;while(1){f=k+26304|0;H[f+(c<<2)>>2]=d+N(c,36);i=c|1;H[f+(i<<2)>>2]=d+N(i,36);i=c|2;H[f+(i<<2)>>2]=d+N(i,36);i=c|3;H[f+(i<<2)>>2]=d+N(i,36);c=c+4|0;h=h+4|0;if((j|0)!=(h|0)){continue}break}}d=g&3;if(d){while(1){H[(k+26304|0)+(c<<2)>>2]=(N(c,36)+a|0)+10068;c=c+1|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(g>>>0>=2){l=1;while(1){e=H[(k+26304|0)+(l<<2)>>2];j=H[(I[e+32|0]&6?0:12)+e>>2];c=l;while(1){d=c-1|0;h=(k+26304|0)+(d<<2)|0;f=H[h>>2];if((j|0)>2]){H[(k+26304|0)+(c<<2)>>2]=f;H[h>>2]=e;c=d;if(c){continue}}break}l=l+1|0;if((g|0)!=(l|0)){continue}break}}g=g-1|0;if(g){d=H[k+26304>>2];e=H[d+32>>2];c=0;while(1){f=(e&6?12:0)+d|0;c=c+1|0;d=H[(k+26304|0)+(c<<2)>>2];e=H[d+32>>2];j=H[(e&6?12:0)+d>>2];if(H[f>>2]>(j|0)){H[f>>2]=j}if((c|0)!=(g|0)){continue}break}}H[k+19664>>2]=0;H[k+16>>2]=H[5328];c=H[5327];H[k+8>>2]=H[5326];H[k+12>>2]=c;c=H[5325];H[k>>2]=H[5324];H[k+4>>2]=c;d=48;g=k;j=0;f=0;C:{while(1){c=g+1|0;if((d&255)==32){while(1){g=c;c=c+1|0;d=I[g|0];if((d|0)==32){continue}break}}i=H[a+36>>2];l=d&255;if(d<<24>>24<0){d=l>>>0<240;e=l>>>0<224;h=e?1:d?2:3;o=h-1|0;l=(e?31:d?15:7)&l;e=0;d=h;while(1){l=I[c|0]&63|l<<6;d=d-1|0;c=c+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}if(o>>>0>=3){while(1){l=I[c+3|0]&63|((I[c+1|0]&63|(l<<12|(I[c|0]&63)<<6))<<12|(I[c+2|0]&63)<<6);c=c+4|0;d=d-4|0;if(d){continue}break}}c=(g+h|0)+1|0}g=c;o=H[i>>2];d=0;while(1){c=I[g|0];if((c|32)!=32){g=g+1|0;d=c;if(c<<24>>24>=0){continue}c=d>>>0<240;e=d>>>0<224;i=e?1:c?2:3;n=i-1|0;d=(e?31:c?15:7)&d;h=0;e=i;c=g;while(1){d=I[c|0]&63|d<<6;e=e-1|0;c=c+1|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}if(n>>>0>=3){while(1){d=I[c+3|0]&63|((I[c+1|0]&63|(d<<12|(I[c|0]&63)<<6))<<12|(I[c+2|0]&63)<<6);c=c+4|0;e=e-4|0;if(e){continue}break}}g=g+i|0;continue}break}D:{if(d){dl(o,0,2051,k+19664|0);break D}c=Wd(o,l);dl(H[H[a+36>>2]>>2],c,2051,k+19664|0);if(!c){break D}d=j&255;j=1;c=H[k+19664>>2];if(!d){f=c;break D}if((c|0)==(f|0)){break D}c=0;break C}d=I[g|0];if(d){continue}break}c=1}F[a+32|0]=c;c=0;break a}c=H[a+36>>2];a=H[c+4>>2];E:{if((a|0)<=0){break E}d=H[c+8>>2];e=H[P>>2];c=0;if((a|0)!=1){g=a&-2;h=0;while(1){f=c<<1;j=f+d|0;if((e|0)==(J[j>>1]&16383)){G[j>>1]=66}f=d+(f|2)|0;if((e|0)==(J[f>>1]&16383)){G[f>>1]=66}c=c+2|0;h=h+2|0;if((g|0)!=(h|0)){continue}break}}if(!(a&1)){break E}a=d+(c<<1)|0;if((e|0)!=(J[a>>1]&16383)){break E}G[a>>1]=66}c=-1}Ih(b,S);xb=k+26352|0;return c|0}function Dla(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=O(0),y=0,z=0,A=0,B=O(0),C=0,D=0;j=xb-112|0;xb=j;a:{b:{c:{d:{if(f>>>0<=6){H[j+104>>2]=0;H[j+96>>2]=0;H[j+100>>2]=0;e:{f:{g:{h:{i:{j:{k:{l:{switch(H[a+20>>2]-1|0){case 1:i=H[a+16>>2]+10|0;v=H[a>>2];if(i>>>0>>0){break k}r=v+H[a+4>>2]|0;if(r>>>0>>0){break k}m=r-i|0;if(m>>>0<4){break k}o=I[i|0]|I[i+1|0]<<8;g=o<<8|o>>>8;h=g&1?8:6;l=h+2|0;m:{if(g&8){break m}l=h+4|0;g=g&65535;if(g&64){break m}l=g&128?h+8|0:h}h=0;if(l>>>0>m>>>0){break k}h=1;g=1;if(o&8192){while(1){n:{i=i+l|0;if(v>>>0>i>>>0|i>>>0>r>>>0){break n}h=r-i|0;if(h>>>0<4){break n}o=I[i|0]|I[i+1|0]<<8;m=o<<8|o>>>8;s=m&1?8:6;l=s+2|0;o:{if(m&8){break o}l=s+4|0;m=m&65535;if(m&64){break o}l=m&128?s+8|0:s}if(h>>>0>>0){break n}g=g+1|0;if(o&8192){continue}}break}h=(g|0)>0?g:0;if((g|0)<=0){break k}}while(1){k=((k>>>1|0)+k|0)+8|0;if(k>>>0<=h>>>0){continue}break};p:{if(k>>>0<=268435454){l=Tb(k<<4);if(l){break p}}H[j+96>>2]=-1;i=0;break e}H[j+96>>2]=k;H[j+104>>2]=l;i=0;o=Nb(l,0,h<<4);H[j+100>>2]=h;if((g|0)<=0){break j}if((h|0)!=1){l=h&2147483646;m=0;while(1){q:{if(h>>>0<=i>>>0){g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;g=784992;break q}g=o+(i<<4)|0}H[g+4>>2]=0;H[g+8>>2]=0;F[g|0]=0;F[g+12|0]=0;g=i|1;r:{if(g>>>0>=h>>>0){g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;g=784992;break r}g=o+(g<<4)|0}H[g+4>>2]=0;H[g+8>>2]=0;F[g|0]=0;F[g+12|0]=0;i=i+2|0;m=m+2|0;if((l|0)!=(m|0)){continue}break}}if(!(h&1)){break g}if(h>>>0>i>>>0){break i}g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;g=784992;break h;case 0:break l;default:break j}}H[j+24>>2]=H[a+16>>2];H[j+36>>2]=H[a+8>>2];g=H[a+4>>2];H[j+28>>2]=H[a>>2];H[j+32>>2]=g;H[197455]=0;h=ca(695,j+24|0,j+96|0,e|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!h){break e}k=H[j+96>>2];h=H[j+100>>2];break g}H[j+100>>2]=h}g=h+4|0;g=(g|0)>0?g:0;break f}g=o+(i<<4)|0}H[g+4>>2]=0;H[g+8>>2]=0;F[g|0]=0;F[g+12|0]=0}i=0;if((k|0)<0){break e}g=h+4|0;g=(g|0)>0?g:0}o=g;if(g>>>0>k>>>0){i=k;while(1){i=((i>>>1|0)+i|0)+8|0;if(o>>>0>=i>>>0){continue}break}s:{if(!(i>>>0>>0|i>>>0>268435454)){g=tc(H[j+104>>2],i<<4);if(g){break s}}H[j+96>>2]=-1;i=0;break e}H[j+96>>2]=i;H[j+104>>2]=g;h=H[j+100>>2]}if(h>>>0>>0){Nb(H[j+104>>2]+(h<<4)|0,0,o-h<<4)}H[j+100>>2]=o;y=H[j+104>>2];q=o-4|0;t=y+(q<<4)|0;H[j+80>>2]=t;H[j+88>>2]=0;g=o-q|0;g=g>>>0>o>>>0?0:g;z=g>>>0<4?g:4;H[j+84>>2]=z;t:{u:{v:{w:{x:{y:{z:{if(!z){g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;H[196249]=0;H[196250]=0;F[784992]=0;F[785004]=0;break z}F[t|0]=0;H[t+4>>2]=0;H[t+8>>2]=0;F[t+12|0]=0;if((z|0)!=1){break y}}g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;H[196249]=0;H[196250]=0;F[784992]=0;F[785004]=0;break x}F[t+16|0]=0;H[t+20>>2]=0;H[t+24>>2]=0;F[t+28|0]=0;if(z>>>0>2){break w}}g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;H[196249]=0;H[196250]=0;F[784992]=0;F[785004]=0;m=0;break v}F[t+32|0]=0;H[t+36>>2]=0;H[t+40>>2]=0;F[t+44|0]=0;if((z|0)!=3){break u}m=1}g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;g=784992;break t}m=1;g=t+48|0}H[g+4>>2]=0;H[g+8>>2]=0;l=0;F[g|0]=0;F[g+12|0]=0;h=H[a+12>>2];n=H[c+4>>2];u=H[n>>2];A:{B:{if(h>>>0>>0){g=H[n+20>>2];g=((h|0)<0?163632:H[(g?g:163632)+12>>2]+(h<<2)|0)+2|0;break B}if(K[n+4>>2]<=h>>>0){break A}g=H[n+20>>2];g=(h-u<<1)+((u|0)<0?163632:H[(g?g:163632)+12>>2]+(u<<2)|0)|0}g=I[g|0]|I[g+1|0]<<8;l=(g<<8|g>>>8)<<16>>16}k=H[a+16>>2];w=H[c+8>>2];A=H[w>>2];C:{D:{if(A>>>0>h>>>0){g=H[w+20>>2];g=((h|0)<0?163632:H[(g?g:163632)+12>>2]+(h<<2)|0)+2|0;break D}i=0;if(K[w+4>>2]<=h>>>0){break C}g=H[w+20>>2];g=(h-A<<1)+((A|0)<0?163632:H[(g?g:163632)+12>>2]+(A<<2)|0)|0}g=I[g|0]|I[g+1|0]<<8;i=(g<<8|g>>>8)<<16>>16}r=I[k+2|0]|I[k+3|0]<<8;s=I[k+8|0]|I[k+9|0]<<8;E:{F:{G:{H:{I:{g=h;p=H[n+4>>2];if(g>>>0

>>0){break I}v=H[n+8>>2];if(!v){break G}k=H[n+12>>2];if((p|0)!=(v|0)){break H}g=p-1|0;if(!p){n=0;if(h>>>0>=k>>>0|g>>>0>=k>>>0){break E}while(1)continue}if(h>>>0>>0){break I}n=0;break E}k=H[n+20>>2];n=H[(k?k:163632)+12>>2];k=u-1|0;g=g>>>0>>0?g:k;g=(g|0)<0?163632:n+(g<<2)|0;g=I[g|0]|I[g+1|0]<<8;n=(g<<8|g>>>8)&65535;break E}if(h>>>0>>0){break F}n=0;break E}n=H[n+16>>2];break E}g=H[n+20>>2];n=(p-u<<1)+((u|0)<0?163632:H[(g?g:163632)+12>>2]+(u<<2)|0)|0;k=h-p|0;g=v+(p^-1)|0;g=n+((g>>>0>k>>>0?k:g)<<1)|0;g=I[g|0]|I[g+1|0]<<8;n=(g<<8|g>>>8)&65535}J:{K:{L:{M:{N:{g=h;u=H[w+4>>2];if(g>>>0>>0){break N}v=H[w+8>>2];if(!v){break L}p=H[w+12>>2];if((u|0)!=(v|0)){break M}g=u-1|0;if(!u){k=0;if(h>>>0>=p>>>0|g>>>0>=p>>>0){break J}while(1)continue}if(h>>>0

>>0){break N}k=0;break J}k=H[w+20>>2];p=H[(k?k:163632)+12>>2];k=A-1|0;g=g>>>0>>0?g:k;g=(g|0)<0?163632:p+(g<<2)|0;g=I[g|0]|I[g+1|0]<<8;k=(g<<8|g>>>8)&65535;break J}if(h>>>0

>>0){break K}k=0;break J}k=H[w+16>>2];break J}g=H[w+20>>2];p=(u-A<<1)+((A|0)<0?163632:H[(g?g:163632)+12>>2]+(A<<2)|0)|0;k=h-u|0;g=v+(u^-1)|0;g=p+((g>>>0>k>>>0?k:g)<<1)|0;g=I[g|0]|I[g+1|0]<<8;k=(g<<8|g>>>8)&65535}l=((r<<8|r>>>8)<<16>>16)-l|0;i=i+((s<<8|s>>>8)<<16>>16)|0;O:{P:{Q:{R:{S:{T:{U:{if(!z){g=H[40909];H[196248]=H[40908];H[196249]=g;g=H[40911];H[196250]=H[40910];H[196251]=g;L[196249]=l|0;break U}L[(y+(q<<4)|0)+4>>2]=l|0;if((z|0)!=1){break T}}g=H[40909];H[196248]=H[40908];H[196249]=g;g=H[40911];H[196250]=H[40910];H[196251]=g;L[196249]=l+n>>>0;break S}L[t+20>>2]=l+n>>>0;if(m){break R}}g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;L[196250]=i|0;break Q}L[t+40>>2]=i|0;if((z|0)!=3){break P}}g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;h=H[a+12>>2];g=784992;break O}g=t+48|0}L[g+8>>2]=i-k|0;l=H[c>>2];i=0;H[j+72>>2]=0;H[j+16>>2]=0;H[j+68>>2]=o;H[j+64>>2]=y;H[197455]=0;g=H[j+68>>2];H[j+8>>2]=H[j+64>>2];H[j+12>>2]=g;h=la(696,l|0,h|0,b|0,j+8|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break c}if(!h){break e}V:{W:{switch(H[a+20>>2]-1|0){case 0:H[j+32>>2]=0;H[197455]=0;C=j,D=lma(H[j+100>>2],H[j+104>>2]),H[C+24>>2]=D;H[j+28>>2]=yb;ba(697,d|0,j+24|0);a=H[197455];H[197455]=0;if((a|0)!=1){break V}i=$()|0;_()|0;break a;case 1:X:{i=H[a+16>>2]+10|0;y=H[a>>2];Y:{if(i>>>0>>0){break Y}p=y+H[a+4>>2]|0;if(p>>>0>>0){break Y}a=p-i|0;if(a>>>0<4){break Y}l=I[i|0]|I[i+1|0]<<8;h=l<<8|l>>>8;m=h&1?8:6;g=m+2|0;Z:{if(h&8){break Z}g=m+4|0;h=h&65535;if(h&64){break Z}g=h&128?m+8|0:m}if(a>>>0>>0){break Y}_:{if(!(l&8192)){break _}h=i;a=g;while(1){h=a+h|0;if(y>>>0>h>>>0|h>>>0>p>>>0){break _}l=p-h|0;if(l>>>0<4){break _}o=I[h|0]|I[h+1|0]<<8;m=o<<8|o>>>8;k=m&1?8:6;a=k+2|0;$:{if(m&8){break $}a=k+4|0;m=m&65535;if(m&64){break $}a=m&128?k+8|0:k}if(a>>>0>l>>>0){break _}if(o&8192){continue}break}}v=f+1|0;n=0;while(1){H[j+56>>2]=0;H[j+48>>2]=0;H[j+52>>2]=0;a=I[i+2|0]|I[i+3|0]<<8;H[197455]=0;ll(j+24|0,c,(a<<8|a>>>8)&65535,0);a=H[197455];H[197455]=0;if((a|0)==1){break b}H[197455]=0;h=ma(672,j+24|0,b|0,c|0,j+48|0,e|0,v|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}l=i;a=h^1;h=H[j+52>>2];o=a|h>>>0<4;if(!o){if(I[l|0]&2){r=H[j+56>>2];m=r+(h<<4)|0;k=m+-64|0;aa:{ba:{ca:{da:{ea:{fa:{s=H[j+84>>2];ga:{if(!s){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=H[k+4>>2];H[196248]=H[k>>2];H[196249]=a;a=H[k+12>>2];H[196250]=H[k+8>>2];H[196251]=a;k=h-3|0;break ga}a=H[k+4>>2];q=H[j+80>>2];i=q;H[i>>2]=H[k>>2];H[i+4>>2]=a;a=H[k+12>>2];H[i+8>>2]=H[k+8>>2];H[i+12>>2]=a;k=h-3|0;if((s|0)!=1){break fa}}a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;i=r+(k<<4)|0;a=H[i+4>>2];H[196248]=H[i>>2];H[196249]=a;a=H[i+12>>2];H[196250]=H[i+8>>2];H[196251]=a;h=h-2|0;break ea}i=r+(k<<4)|0;a=H[i+4>>2];H[q+16>>2]=H[i>>2];H[q+20>>2]=a;a=H[i+12>>2];H[q+24>>2]=H[i+8>>2];H[q+28>>2]=a;h=h-2|0;if(s>>>0>2){break da}}a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;i=r+(h<<4)|0;a=H[i+4>>2];H[196248]=H[i>>2];H[196249]=a;a=H[i+12>>2];H[196250]=H[i+8>>2];H[196251]=a;h=m-16|0;break ca}i=r+(h<<4)|0;a=H[i+4>>2];H[q+32>>2]=H[i>>2];H[q+36>>2]=a;a=H[i+12>>2];H[q+40>>2]=H[i+8>>2];H[q+44>>2]=a;h=m-16|0;if((s|0)!=3){break ba}}a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;i=784992;break aa}i=q+48|0}a=H[h+4>>2];H[i>>2]=H[h>>2];H[i+4>>2]=a;a=H[h+12>>2];H[i+8>>2]=H[h+8>>2];H[i+12>>2]=a}H[197455]=0;eG(l,j+48|0);a=H[197455];H[197455]=0;if((a|0)==1){break b}ha:{if(K[j+100>>2]<=n>>>0){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;i=784992;break ha}i=H[j+104>>2]+(n<<4)|0}q=H[j+52>>2];ia:{if(!q){break ia}a=0;r=H[j+56>>2];if((q|0)!=1){m=q&-2;k=0;while(1){x=L[i+8>>2];h=a<<4;s=h+r|0;L[s+4>>2]=L[i+4>>2]+L[s+4>>2];L[s+8>>2]=x+L[s+8>>2];x=L[i+8>>2];h=r+(h|16)|0;L[h+4>>2]=L[i+4>>2]+L[h+4>>2];L[h+8>>2]=x+L[h+8>>2];a=a+2|0;k=k+2|0;if((m|0)!=(k|0)){continue}break}}if(!(q&1)){break ia}x=L[i+8>>2];a=r+(a<<4)|0;L[a+4>>2]=L[i+4>>2]+L[a+4>>2];L[a+8>>2]=x+L[a+8>>2]}a=I[l|0]|I[l+1|0]<<8;ja:{if(a&512){break ja}ka:{if(a&256){a=I[l+4|0]|I[l+5|0]<<8;i=(a<<8|a>>>8)&65535;a=I[l+6|0]|I[l+7|0]<<8;a=(a<<8|a>>>8)&65535;break ka}i=I[l+4|0];a=I[l+5|0]}if(K[d+4>>2]<=i>>>0){break ja}m=H[j+52>>2];if(m>>>0<=a>>>0){break ja}h=H[d+8>>2]+(i<<4)|0;i=H[j+56>>2];a=i+(a<<4)|0;B=O(L[h+8>>2]-L[a+8>>2]);x=O(L[h+4>>2]-L[a+4>>2]);h=0;while(1){la:{if(h>>>0>=m>>>0){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break la}a=i+(h<<4)|0}L[a+4>>2]=x+L[a+4>>2];L[a+8>>2]=B+L[a+8>>2];h=h+1|0;if((m|0)!=(h|0)){continue}break}}H[j+32>>2]=0;H[j+24>>2]=H[j+56>>2];H[197455]=0;i=H[j+52>>2];a=q-4|0;H[j+28>>2]=a>>>0>i>>>0?i:a;ba(697,d|0,j+24|0);a=H[197455];H[197455]=0;if((a|0)==1){break X}n=n+1|0}i=0;H[j+52>>2]=0;Kb(H[j+56>>2]);if(o){break e}if(!(I[l+1|0]&32)){break Y}i=g+l|0;if(y>>>0>i>>>0|i>>>0>p>>>0){break Y}a=p-i|0;if(a>>>0<4){break Y}g=I[i|0]|I[i+1|0]<<8;h=g<<8|g>>>8;m=h&1?8:6;g=m+2|0;ma:{if(h&8){break ma}g=m+4|0;h=h&65535;if(h&64){break ma}g=h&128?m+8|0:m}if(a>>>0>>0){break Y}if(l){continue}break}}H[197455]=0;ba(697,d|0,j+80|0);a=H[197455];H[197455]=0;if((a|0)!=1){break V}i=$()|0;_()|0;break a}break b;default:break W}}H[197455]=0;ba(697,d|0,j+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break c}}i=1;if(f){break e}na:{if(!H[j+84>>2]){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break na}a=H[j+80>>2]}x=L[a+4>>2];if(x==O(0)){break e}a=H[d+4>>2];if(!a){break e}h=0;while(1){oa:{if(a>>>0<=h>>>0){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=H[d+4>>2];b=784992;break oa}b=H[d+8>>2]+(h<<4)|0}L[b+4>>2]=L[b+4>>2]-x;L[b+8>>2]=L[b+8>>2]+O(0);h=h+1|0;if(a>>>0>h>>>0){continue}break}}H[j+100>>2]=0;Kb(H[j+104>>2])}xb=j+112|0;return i|0}i=$()|0;_()|0;break a}i=$()|0;_()|0;break a}i=$()|0;_()|0;H[j+52>>2]=0;Kb(H[j+56>>2])}H[j+100>>2]=0;Kb(H[j+104>>2]);ea(i|0);X()}function U0(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=xb-560|0;xb=e;g=H[b+12>>2];h=H[b+4>>2];f=e+192|0;i=H[b+8>>2];j=H[b>>2];k=+((i+j|0)/2<<16>>16);Ce(f,k,-1);H[197455]=0;ca(1774,f|0,(F[e+203|0]<0?H[e+192>>2]:f)|0,77)|0;b=H[197455];H[197455]=0;f=(g+h|0)/2|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{if((b|0)!=1){H[e+216>>2]=H[e+200>>2];H[e+200>>2]=0;b=H[e+196>>2];H[e+208>>2]=H[e+192>>2];H[e+212>>2]=b;H[e+192>>2]=0;H[e+196>>2]=0;H[197455]=0;ba(1650,e+208|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break qa}H[e+232>>2]=H[e+216>>2];H[e+216>>2]=0;b=H[e+212>>2];H[e+224>>2]=H[e+208>>2];H[e+228>>2]=b;H[e+208>>2]=0;H[e+212>>2]=0;H[197455]=0;l=+(f<<16>>16);fa(1756,e+176|0,+l,-1);b=H[197455];H[197455]=0;if((b|0)==1){break pa}H[197455]=0;b=I[e+187|0];f=b<<24>>24<0;b=ca(1759,e+224|0,(f?H[e+176>>2]:e+176|0)|0,(f?H[e+180>>2]:b)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break oa}H[e+248>>2]=H[b+8>>2];f=H[b+4>>2];H[e+240>>2]=H[b>>2];H[e+244>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break na}H[e+264>>2]=H[e+248>>2];H[e+248>>2]=0;b=H[e+244>>2];H[e+256>>2]=H[e+240>>2];H[e+260>>2]=b;H[e+240>>2]=0;H[e+244>>2]=0;H[197455]=0;ba(1650,e+256|0,76);b=H[197455];H[197455]=0;if((b|0)==1){break ma}H[e+280>>2]=H[e+264>>2];H[e+264>>2]=0;b=H[e+260>>2];H[e+272>>2]=H[e+256>>2];H[e+276>>2]=b;H[e+256>>2]=0;H[e+260>>2]=0;b=H[c>>2];H[197455]=0;fa(1756,e+160|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break la}H[197455]=0;b=I[e+171|0];f=b<<24>>24<0;b=ca(1759,e+272|0,(f?H[e+160>>2]:e+160|0)|0,(f?H[e+164>>2]:b)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ka}H[e+296>>2]=H[b+8>>2];f=H[b+4>>2];H[e+288>>2]=H[b>>2];H[e+292>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+288|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break ja}H[e+312>>2]=H[e+296>>2];H[e+296>>2]=0;b=H[e+292>>2];H[e+304>>2]=H[e+288>>2];H[e+308>>2]=b;H[e+288>>2]=0;H[e+292>>2]=0;b=H[c+4>>2];H[197455]=0;fa(1756,e+144|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break ia}H[197455]=0;b=I[e+155|0];c=b<<24>>24<0;b=ca(1759,e+304|0,(c?H[e+144>>2]:e+144|0)|0,(c?H[e+148>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ha}H[e+328>>2]=H[b+8>>2];c=H[b+4>>2];H[e+320>>2]=H[b>>2];H[e+324>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+320|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break ga}H[e+344>>2]=H[e+328>>2];H[e+328>>2]=0;b=H[e+324>>2];H[e+336>>2]=H[e+320>>2];H[e+340>>2]=b;H[e+320>>2]=0;H[e+324>>2]=0;H[197455]=0;ba(1650,e+336|0,65);b=H[197455];H[197455]=0;if((b|0)==1){break fa}H[e+360>>2]=H[e+344>>2];H[e+344>>2]=0;b=H[e+340>>2];H[e+352>>2]=H[e+336>>2];H[e+356>>2]=b;H[e+336>>2]=0;H[e+340>>2]=0;H[197455]=0;c=i-j|0;b=c>>31;fa(1756,e+128|0,+((b^c)-b>>>1<<16>>16),-1);b=H[197455];H[197455]=0;if((b|0)==1){break ea}H[197455]=0;b=I[e+139|0];c=b<<24>>24<0;b=ca(1759,e+352|0,(c?H[e+128>>2]:e+128|0)|0,(c?H[e+132>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break da}H[e+376>>2]=H[b+8>>2];c=H[b+4>>2];H[e+368>>2]=H[b>>2];H[e+372>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+368|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break ca}H[e+392>>2]=H[e+376>>2];H[e+376>>2]=0;b=H[e+372>>2];H[e+384>>2]=H[e+368>>2];H[e+388>>2]=b;H[e+368>>2]=0;H[e+372>>2]=0;H[197455]=0;c=g-h|0;b=c>>31;fa(1756,e+112|0,+((b^c)-b>>>1<<16>>16),-1);b=H[197455];H[197455]=0;if((b|0)==1){break ba}H[197455]=0;b=I[e+123|0];c=b<<24>>24<0;b=ca(1759,e+384|0,(c?H[e+112>>2]:e+112|0)|0,(c?H[e+116>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break aa}H[e+408>>2]=H[b+8>>2];c=H[b+4>>2];H[e+400>>2]=H[b>>2];H[e+404>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,e+400|0,408028)|0;c=H[197455];H[197455]=0;if((c|0)==1){break $}H[e+424>>2]=H[b+8>>2];c=H[b+4>>2];H[e+416>>2]=H[b>>2];H[e+420>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;b=H[d>>2];H[197455]=0;fa(1756,e+96|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break _}H[197455]=0;b=I[e+107|0];c=b<<24>>24<0;b=ca(1759,e+416|0,(c?H[e+96>>2]:e+96|0)|0,(c?H[e+100>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Z}H[e+440>>2]=H[b+8>>2];c=H[b+4>>2];H[e+432>>2]=H[b>>2];H[e+436>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+432|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break Y}H[e+456>>2]=H[e+440>>2];H[e+440>>2]=0;b=H[e+436>>2];H[e+448>>2]=H[e+432>>2];H[e+452>>2]=b;H[e+432>>2]=0;H[e+436>>2]=0;b=H[d+4>>2];H[197455]=0;fa(1756,e+80|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break X}H[197455]=0;b=I[e+91|0];c=b<<24>>24<0;b=ca(1759,e+448|0,(c?H[e+80>>2]:e+80|0)|0,(c?H[e+84>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break W}H[e+472>>2]=H[b+8>>2];c=H[b+4>>2];H[e+464>>2]=H[b>>2];H[e+468>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+464|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break V}H[e+488>>2]=H[e+472>>2];H[e+472>>2]=0;b=H[e+468>>2];H[e+480>>2]=H[e+464>>2];H[e+484>>2]=b;H[e+464>>2]=0;H[e+468>>2]=0;H[197455]=0;ba(1650,e+480|0,76);b=H[197455];H[197455]=0;if((b|0)==1){break U}H[e+504>>2]=H[e+488>>2];H[e+488>>2]=0;b=H[e+484>>2];H[e+496>>2]=H[e+480>>2];H[e+500>>2]=b;H[e+480>>2]=0;H[e+484>>2]=0;H[197455]=0;fa(1756,e- -64|0,+k,-1);b=H[197455];H[197455]=0;if((b|0)==1){break T}H[197455]=0;b=I[e+75|0];c=b<<24>>24<0;b=ca(1759,e+496|0,(c?H[e+64>>2]:e- -64|0)|0,(c?H[e+68>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break S}H[e+520>>2]=H[b+8>>2];c=H[b+4>>2];H[e+512>>2]=H[b>>2];H[e+516>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+512|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break R}H[e+536>>2]=H[e+520>>2];H[e+520>>2]=0;b=H[e+516>>2];H[e+528>>2]=H[e+512>>2];H[e+532>>2]=b;H[e+512>>2]=0;H[e+516>>2]=0;H[197455]=0;fa(1756,e+48|0,+l,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Q}H[197455]=0;b=I[e+59|0];c=b<<24>>24<0;b=ca(1759,e+528|0,(c?H[e+48>>2]:e+48|0)|0,(c?H[e+52>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break P}H[e+24>>2]=H[b+8>>2];c=H[b+4>>2];H[e+16>>2]=H[b>>2];H[e+20>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,e+16|0,408256)|0;c=H[197455];H[197455]=0;if((c|0)==1){break O}H[e+552>>2]=H[b+8>>2];c=H[b+4>>2];H[e+544>>2]=H[b>>2];H[e+548>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+59|0]<0){Kb(H[e+48>>2])}if(F[e+539|0]<0){Kb(H[e+528>>2])}if(F[e+523|0]<0){Kb(H[e+512>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+507|0]<0){Kb(H[e+496>>2])}if(F[e+491|0]<0){Kb(H[e+480>>2])}if(F[e+475|0]<0){Kb(H[e+464>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+459|0]<0){Kb(H[e+448>>2])}if(F[e+443|0]<0){Kb(H[e+432>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+427|0]<0){Kb(H[e+416>>2])}if(F[e+411|0]<0){Kb(H[e+400>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}if(F[e+395|0]<0){Kb(H[e+384>>2])}if(F[e+379|0]<0){Kb(H[e+368>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+363|0]<0){Kb(H[e+352>>2])}if(F[e+347|0]<0){Kb(H[e+336>>2])}if(F[e+331|0]<0){Kb(H[e+320>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+315|0]<0){Kb(H[e+304>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}H[197455]=0;b=ca(1762,e+16|0,404840,e+544|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[e+40>>2]=b;H[197455]=0;H[e+44>>2]=1;b=H[e+44>>2];H[e+8>>2]=H[e+40>>2];H[e+12>>2]=b;d=da(1763,e+528|0,e+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[e+39|0]<0){Kb(H[e+28>>2])}if(F[e+27|0]<0){Kb(H[e+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;qa(1765,a|0,d|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ga(1766,a|0,d|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[e+16>>2]=b;H[e+20>>2]=4;H[e+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[e+523|0]=0;H[197455]=0;H[e+512>>2]=0;ka(1767,a|0,e+16|0,d|0,e+512|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[e+523|0]<0){Kb(H[e+512>>2])}if(F[e+27|0]<0){Kb(H[e+16>>2])}a=H[d>>2];if(a){b=H[d+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[d>>2]}H[d+4>>2]=a;Kb(b)}if(F[e+555|0]<0){Kb(H[e+544>>2])}xb=e+560|0;return}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;break p}b=$()|0;_()|0;break q}b=$()|0;_()|0;break r}b=$()|0;_()|0;break s}b=$()|0;_()|0;break t}b=$()|0;_()|0;break u}b=$()|0;_()|0;break v}b=$()|0;_()|0;break w}b=$()|0;_()|0;break x}b=$()|0;_()|0;break y}b=$()|0;_()|0;break z}b=$()|0;_()|0;break A}b=$()|0;_()|0;break B}b=$()|0;_()|0;break C}b=$()|0;_()|0;break D}b=$()|0;_()|0;break E}b=$()|0;_()|0;break F}b=$()|0;_()|0;break G}b=$()|0;_()|0;break H}b=$()|0;_()|0;break I}b=$()|0;_()|0;break J}b=$()|0;_()|0;break K}b=$()|0;_()|0;break L}b=$()|0;_()|0;break M}b=$()|0;_()|0;break N}b=$()|0;_()|0;if(F[e+27|0]>=0){break N}Kb(H[e+16>>2])}if(F[e+59|0]>=0){break M}Kb(H[e+48>>2])}if(F[e+539|0]>=0){break L}Kb(H[e+528>>2])}if(F[e+523|0]>=0){break K}Kb(H[e+512>>2])}if(F[e+75|0]>=0){break J}Kb(H[e+64>>2])}if(F[e+507|0]>=0){break I}Kb(H[e+496>>2])}if(F[e+491|0]>=0){break H}Kb(H[e+480>>2])}if(F[e+475|0]>=0){break G}Kb(H[e+464>>2])}if(F[e+91|0]>=0){break F}Kb(H[e+80>>2])}if(F[e+459|0]>=0){break E}Kb(H[e+448>>2])}if(F[e+443|0]>=0){break D}Kb(H[e+432>>2])}if(F[e+107|0]>=0){break C}Kb(H[e+96>>2])}if(F[e+427|0]>=0){break B}Kb(H[e+416>>2])}if(F[e+411|0]>=0){break A}Kb(H[e+400>>2])}if(F[e+123|0]>=0){break z}Kb(H[e+112>>2])}if(F[e+395|0]>=0){break y}Kb(H[e+384>>2])}if(F[e+379|0]>=0){break x}Kb(H[e+368>>2])}if(F[e+139|0]>=0){break w}Kb(H[e+128>>2])}if(F[e+363|0]>=0){break v}Kb(H[e+352>>2])}if(F[e+347|0]>=0){break u}Kb(H[e+336>>2])}if(F[e+331|0]>=0){break t}Kb(H[e+320>>2])}if(F[e+155|0]>=0){break s}Kb(H[e+144>>2])}if(F[e+315|0]>=0){break r}Kb(H[e+304>>2])}if(F[e+299|0]>=0){break q}Kb(H[e+288>>2])}if(F[e+171|0]>=0){break p}Kb(H[e+160>>2])}if(F[e+283|0]>=0){break o}Kb(H[e+272>>2])}if(F[e+267|0]>=0){break n}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break m}Kb(H[e+240>>2])}if(F[e+187|0]>=0){break l}Kb(H[e+176>>2])}if(F[e+235|0]>=0){break k}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break j}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break b}Kb(H[e+192>>2]);ea(b|0);X()}b=$()|0;_()|0;break c}b=$()|0;_()|0;Vb(e+16|0);break c}b=$()|0;_()|0;break d}b=$()|0;_()|0;break d}b=$()|0;_()|0;if(F[e+523|0]<0){Kb(H[e+512>>2])}if(F[e+27|0]>=0){break d}Kb(H[e+16>>2])}yc(d)}if(F[e+555|0]>=0){break b}Kb(H[e+544>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function uX(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;c=xb-528|0;xb=c;a:{b:{c:{d:{e:{f:{g:{h:{b=H[a+80>>2];b=zb[H[H[b>>2]+100>>2]](b)|0;i:{if(!b){break i}b=Oe(b,434200,434268,4);if(!b){break i}H[c+520>>2]=0;H[c+512>>2]=0;H[c+516>>2]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{if(J[b+18>>1]){while(1){g=H[b+32>>2]+(i<<4)|0;if(J[g>>1]>=2){h=0;while(1){f=h<<2;d=G[f+H[g+8>>2]>>1];e=G[b+22>>1];H[197455]=0;fa(1756,c+192|0,+(((d|0)>(e|0)?d:e)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break ra}H[197455]=0;d=ca(1758,c+192|0,0,434016)|0;e=H[197455];H[197455]=0;if((e|0)==1){break qa}H[c+216>>2]=H[d+8>>2];e=H[d+4>>2];H[c+208>>2]=H[d>>2];H[c+212>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+208|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break pa}H[c+232>>2]=H[c+216>>2];H[c+216>>2]=0;d=H[c+212>>2];H[c+224>>2]=H[c+208>>2];H[c+228>>2]=d;H[c+208>>2]=0;H[c+212>>2]=0;d=G[b+24>>1];e=G[g+2>>1];H[197455]=0;fa(1756,c+176|0,+(((d|0)<(e|0)?e:d)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break oa}H[197455]=0;d=I[c+187|0];e=d<<24>>24<0;d=ca(1759,c+224|0,(e?H[c+176>>2]:c+176|0)|0,(e?H[c+180>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break na}H[c+248>>2]=H[d+8>>2];e=H[d+4>>2];H[c+240>>2]=H[d>>2];H[c+244>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+240|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break ma}H[c+264>>2]=H[c+248>>2];H[c+248>>2]=0;d=H[c+244>>2];H[c+256>>2]=H[c+240>>2];H[c+260>>2]=d;H[c+240>>2]=0;H[c+244>>2]=0;d=G[(f+H[g+8>>2]|0)+2>>1];e=G[b+26>>1];H[197455]=0;fa(1756,c+160|0,+(((d|0)>(e|0)?e:d)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break la}H[197455]=0;d=I[c+171|0];e=d<<24>>24<0;d=ca(1759,c+256|0,(e?H[c+160>>2]:c+160|0)|0,(e?H[c+164>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ka}H[c+280>>2]=H[d+8>>2];e=H[d+4>>2];H[c+272>>2]=H[d>>2];H[c+276>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+272|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break ja}H[c+296>>2]=H[c+280>>2];H[c+280>>2]=0;d=H[c+276>>2];H[c+288>>2]=H[c+272>>2];H[c+292>>2]=d;H[c+272>>2]=0;H[c+276>>2]=0;d=G[b+24>>1];e=G[g+2>>1];H[197455]=0;fa(1756,c+144|0,+(((d|0)<(e|0)?e:d)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break ia}H[197455]=0;d=I[c+155|0];e=d<<24>>24<0;d=ca(1759,c+288|0,(e?H[c+144>>2]:c+144|0)|0,(e?H[c+148>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ha}H[c+312>>2]=H[d+8>>2];e=H[d+4>>2];H[c+304>>2]=H[d>>2];H[c+308>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+304|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break ga}H[c+328>>2]=H[c+312>>2];H[c+312>>2]=0;d=H[c+308>>2];H[c+320>>2]=H[c+304>>2];H[c+324>>2]=d;H[c+304>>2]=0;H[c+308>>2]=0;d=G[(f+H[g+8>>2]|0)+2>>1];e=G[b+26>>1];H[197455]=0;fa(1756,c+128|0,+(((d|0)>(e|0)?e:d)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break fa}H[197455]=0;d=I[c+139|0];e=d<<24>>24<0;d=ca(1759,c+320|0,(e?H[c+128>>2]:c+128|0)|0,(e?H[c+132>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ea}H[c+344>>2]=H[d+8>>2];e=H[d+4>>2];H[c+336>>2]=H[d>>2];H[c+340>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+336|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break da}H[c+360>>2]=H[c+344>>2];H[c+344>>2]=0;d=H[c+340>>2];H[c+352>>2]=H[c+336>>2];H[c+356>>2]=d;H[c+336>>2]=0;H[c+340>>2]=0;d=G[b+28>>1];e=G[g+4>>1];H[197455]=0;fa(1756,c+112|0,+(((d|0)<(e|0)?d:e)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break ca}H[197455]=0;d=I[c+123|0];e=d<<24>>24<0;d=ca(1759,c+352|0,(e?H[c+112>>2]:c+112|0)|0,(e?H[c+116>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ba}H[c+376>>2]=H[d+8>>2];e=H[d+4>>2];H[c+368>>2]=H[d>>2];H[c+372>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+368|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break aa}H[c+392>>2]=H[c+376>>2];H[c+376>>2]=0;d=H[c+372>>2];H[c+384>>2]=H[c+368>>2];H[c+388>>2]=d;H[c+368>>2]=0;H[c+372>>2]=0;d=G[f+H[g+8>>2]>>1];e=G[b+22>>1];H[197455]=0;fa(1756,c+96|0,+(((d|0)>(e|0)?d:e)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break $}H[197455]=0;d=I[c+107|0];e=d<<24>>24<0;d=ca(1759,c+384|0,(e?H[c+96>>2]:c+96|0)|0,(e?H[c+100>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break _}H[c+408>>2]=H[d+8>>2];e=H[d+4>>2];H[c+400>>2]=H[d>>2];H[c+404>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+400|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break Z}H[c+424>>2]=H[c+408>>2];H[c+408>>2]=0;d=H[c+404>>2];H[c+416>>2]=H[c+400>>2];H[c+420>>2]=d;H[c+400>>2]=0;H[c+404>>2]=0;d=G[b+28>>1];e=G[g+4>>1];H[197455]=0;fa(1756,c+80|0,+(((d|0)<(e|0)?d:e)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break Y}H[197455]=0;d=I[c+91|0];e=d<<24>>24<0;d=ca(1759,c+416|0,(e?H[c+80>>2]:c+80|0)|0,(e?H[c+84>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break X}H[c+440>>2]=H[d+8>>2];e=H[d+4>>2];H[c+432>>2]=H[d>>2];H[c+436>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+432|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break W}H[c+456>>2]=H[c+440>>2];H[c+440>>2]=0;d=H[c+436>>2];H[c+448>>2]=H[c+432>>2];H[c+452>>2]=d;H[c+432>>2]=0;H[c+436>>2]=0;d=G[f+H[g+8>>2]>>1];f=G[b+22>>1];H[197455]=0;fa(1756,c- -64|0,+(((d|0)>(f|0)?d:f)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break V}H[197455]=0;d=I[c+75|0];f=d<<24>>24<0;d=ca(1759,c+448|0,(f?H[c+64>>2]:c- -64|0)|0,(f?H[c+68>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break U}H[c+472>>2]=H[d+8>>2];f=H[d+4>>2];H[c+464>>2]=H[d>>2];H[c+468>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+464|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break T}H[c+488>>2]=H[c+472>>2];H[c+472>>2]=0;d=H[c+468>>2];H[c+480>>2]=H[c+464>>2];H[c+484>>2]=d;H[c+464>>2]=0;H[c+468>>2]=0;d=G[b+24>>1];f=G[g+2>>1];H[197455]=0;fa(1756,c+48|0,+(((d|0)<(f|0)?f:d)|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break S}H[197455]=0;d=I[c+59|0];f=d<<24>>24<0;d=ca(1759,c+480|0,(f?H[c+48>>2]:c+48|0)|0,(f?H[c+52>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break R}H[c+504>>2]=H[d+8>>2];f=H[d+4>>2];H[c+496>>2]=H[d>>2];H[c+500>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+496|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break Q}H[c+24>>2]=H[c+504>>2];H[c+504>>2]=0;d=H[c+500>>2];f=H[c+496>>2];H[c+16>>2]=f;H[c+20>>2]=d;H[c+496>>2]=0;H[c+500>>2]=0;H[197455]=0;e=f;d=F[c+27|0];f=(d|0)<0;ca(1759,c+512|0,(f?e:c+16|0)|0,(f?H[c+20>>2]:d&255)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break P}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+507|0]<0){Kb(H[c+496>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+491|0]<0){Kb(H[c+480>>2])}if(F[c+475|0]<0){Kb(H[c+464>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}if(F[c+459|0]<0){Kb(H[c+448>>2])}if(F[c+443|0]<0){Kb(H[c+432>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+427|0]<0){Kb(H[c+416>>2])}if(F[c+411|0]<0){Kb(H[c+400>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+395|0]<0){Kb(H[c+384>>2])}if(F[c+379|0]<0){Kb(H[c+368>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+363|0]<0){Kb(H[c+352>>2])}if(F[c+347|0]<0){Kb(H[c+336>>2])}if(F[c+139|0]<0){Kb(H[c+128>>2])}if(F[c+331|0]<0){Kb(H[c+320>>2])}if(F[c+315|0]<0){Kb(H[c+304>>2])}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+299|0]<0){Kb(H[c+288>>2])}if(F[c+283|0]<0){Kb(H[c+272>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}if(F[c+267|0]<0){Kb(H[c+256>>2])}if(F[c+251|0]<0){Kb(H[c+240>>2])}if(F[c+187|0]<0){Kb(H[c+176>>2])}if(F[c+235|0]<0){Kb(H[c+224>>2])}if(F[c+219|0]<0){Kb(H[c+208>>2])}if(F[c+203|0]<0){Kb(H[c+192>>2])}h=h+1|0;if(h>>>0>1]>>>1>>>0){continue}break}}i=i+1|0;if(i>>>0>1]>>>0){continue}break}}H[197455]=0;b=ca(1762,c+16|0,434072,c+512|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break h}H[c+40>>2]=b;H[197455]=0;H[c+44>>2]=1;b=H[c+44>>2];H[c+8>>2]=H[c+40>>2];H[c+12>>2]=b;d=da(1763,c+496|0,c+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[c+39|0]<0){Kb(H[c+28>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}H[197455]=0;a=a+8|0;qa(1765,a|0,d|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,d|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;g=H[197455];H[197455]=0;if((g|0)==1){break e}H[c+16>>2]=b;H[c+20>>2]=4;H[c+24>>2]=-2147483640;H[197455]=0;Mb(b,434080,4);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[b+16>>2]=0;F[c+491|0]=0;H[197455]=0;H[c+480>>2]=0;ka(1767,a|0,c+16|0,d|0,c+480|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+491|0]<0){Kb(H[c+480>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}b=H[d>>2];if(!b){break j}a=H[d+4>>2];if((b|0)!=(a|0)){break l}a=b;break k}a=$()|0;_()|0;break b}a=$()|0;_()|0;break m}a=$()|0;_()|0;break n}a=$()|0;_()|0;break o}a=$()|0;_()|0;break p}a=$()|0;_()|0;break q}a=$()|0;_()|0;break r}a=$()|0;_()|0;break s}a=$()|0;_()|0;break t}a=$()|0;_()|0;break u}a=$()|0;_()|0;break v}a=$()|0;_()|0;break w}a=$()|0;_()|0;break x}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;break D}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;_()|0;break G}a=$()|0;_()|0;break H}a=$()|0;_()|0;break I}a=$()|0;_()|0;break J}a=$()|0;_()|0;break K}a=$()|0;_()|0;break L}a=$()|0;_()|0;break M}a=$()|0;_()|0;break N}a=$()|0;_()|0;break O}a=$()|0;_()|0;if(F[c+27|0]>=0){break O}Kb(H[c+16>>2])}if(F[c+507|0]>=0){break N}Kb(H[c+496>>2])}if(F[c+59|0]>=0){break M}Kb(H[c+48>>2])}if(F[c+491|0]>=0){break L}Kb(H[c+480>>2])}if(F[c+475|0]>=0){break K}Kb(H[c+464>>2])}if(F[c+75|0]>=0){break J}Kb(H[c+64>>2])}if(F[c+459|0]>=0){break I}Kb(H[c+448>>2])}if(F[c+443|0]>=0){break H}Kb(H[c+432>>2])}if(F[c+91|0]>=0){break G}Kb(H[c+80>>2])}if(F[c+427|0]>=0){break F}Kb(H[c+416>>2])}if(F[c+411|0]>=0){break E}Kb(H[c+400>>2])}if(F[c+107|0]>=0){break D}Kb(H[c+96>>2])}if(F[c+395|0]>=0){break C}Kb(H[c+384>>2])}if(F[c+379|0]>=0){break B}Kb(H[c+368>>2])}if(F[c+123|0]>=0){break A}Kb(H[c+112>>2])}if(F[c+363|0]>=0){break z}Kb(H[c+352>>2])}if(F[c+347|0]>=0){break y}Kb(H[c+336>>2])}if(F[c+139|0]>=0){break x}Kb(H[c+128>>2])}if(F[c+331|0]>=0){break w}Kb(H[c+320>>2])}if(F[c+315|0]>=0){break v}Kb(H[c+304>>2])}if(F[c+155|0]>=0){break u}Kb(H[c+144>>2])}if(F[c+299|0]>=0){break t}Kb(H[c+288>>2])}if(F[c+283|0]>=0){break s}Kb(H[c+272>>2])}if(F[c+171|0]>=0){break r}Kb(H[c+160>>2])}if(F[c+267|0]>=0){break q}Kb(H[c+256>>2])}if(F[c+251|0]>=0){break p}Kb(H[c+240>>2])}if(F[c+187|0]>=0){break o}Kb(H[c+176>>2])}if(F[c+235|0]>=0){break n}Kb(H[c+224>>2])}if(F[c+219|0]>=0){break m}Kb(H[c+208>>2])}if(F[c+203|0]>=0){break b}Kb(H[c+192>>2]);break b}while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}g=a-24|0;if(F[a-13|0]<0){Kb(H[g>>2])}a=g;if((g|0)!=(b|0)){continue}break}a=H[d>>2]}H[d+4>>2]=b;Kb(a)}if(F[c+523|0]>=0){break i}Kb(H[c+512>>2])}xb=c+528|0;return}a=$()|0;_()|0;break b}a=$()|0;_()|0;Vb(c+16|0);break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[c+491|0]<0){Kb(H[c+480>>2])}if(F[c+27|0]>=0){break c}Kb(H[c+16>>2])}yc(d)}if(F[c+523|0]<0){Kb(H[c+512>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Ey(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=O(0),B=O(0),C=0,D=0,E=O(0),K=O(0),N=O(0),Q=0;j=xb-80|0;xb=j;if(!(!(G[H[a+168>>2]+146>>1]&1)|(d|e))){e=H[a+168>>2];d=J[e+132>>1];e=J[e+134>>1]}g=d<<16>>16;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{q=zb[H[H[a>>2]+32>>2]](a)|0;m:{if(q){i=1;n:{o:{p:{h=zb[H[H[q>>2]+36>>2]](q)|0;switch(h-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:break n;case 0:case 1:case 2:case 6:case 8:case 33:case 34:case 35:case 49:case 50:case 58:case 76:case 94:case 110:break o;default:break p}}if(h){break n}}i=h}hj(j- -64|0,b,c,i);if(!H[a+240>>2]){break l}m=a+240|0;break m}hj(j- -64|0,b,c,1);if(!H[a+240>>2]){break k}m=a+240|0}l=+(d<<16>>16);h=0;q:{if(!f){break q}H[197455]=0;h=aa(929,((c&536870911)!=(c|0)?-1:c<<3)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break j}if(!c){break q}Q=c&1;b=0;r:{if((c|0)==1){k=l;break r}q=c&-2;k=l;i=0;while(1){g=J[(b<<1)+f>>1]+g|0;n=+(g<<16>>16);M[(b<<3)+h>>3]=n-k;o=b|1;g=g+J[(o<<1)+f>>1]|0;k=+(g<<16>>16);M[(o<<3)+h>>3]=k-n;b=b+2|0;i=i+2|0;if((q|0)!=(i|0)){continue}break}}if(!Q){break q}M[(b<<3)+h>>3]=+(J[(b<<1)+f>>1]+g<<16>>16)-k}m=H[m>>2];b=H[H[a>>2]+68>>2];H[197455]=0;g=da(b|0,a|0,2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break j}n=M[g>>3];b=H[H[a>>2]+68>>2];H[197455]=0;g=da(b|0,a|0,2)|0;b=H[197455];H[197455]=0;if((b|0)==1){break j}k=M[g+24>>3];b=H[H[m>>2]+20>>2];H[197455]=0;Qa(b|0,m|0,j- -64|0,c|0,+l,+(e<<16>>16),h|0,1,+n,+k);b=H[197455];H[197455]=0;if((b|0)==1){break j}if(!h){break b}Kb(h);break b}b=H[H[q>>2]+8>>2];o=H[a+20>>2];if(o){H[197455]=0;k=+za(b|0,q|0);b=H[197455];H[197455]=0;if((b|0)==1){break i}if(P(k)<2147483648){h=~~k}else{h=-2147483648}g=h>>31;M[j+56>>3]=(h?(h^g)-g|0:18)|0;b=H[H[q>>2]+12>>2];H[197455]=0;ba(b|0,j+40|0,q|0);b=H[197455];H[197455]=0;s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{if((b|0)!=1){H[j+36>>2]=0;b=H[H[q>>2]+16>>2];H[197455]=0;h=aa(b|0,q|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break C}if((h|0)>=551){H[j+36>>2]=H[j+36>>2]|1}b=H[H[q>>2]+20>>2];H[197455]=0;h=aa(b|0,q|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break C}if(h){H[j+36>>2]=H[j+36>>2]|2}H[j>>2]=0;H[j+4>>2]=1079115776;H[j+24>>2]=0;H[j+28>>2]=1079115776;b=H[H[o>>2]+144>>2];H[197455]=0;ma(b|0,o|0,j+40|0,j+56|0,j+36|0,j|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break z}b=H[H[a>>2]+80>>2];H[197455]=0;h=aa(b|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break y}M[j>>3]=h|0;b=H[H[o>>2]+32>>2];H[197455]=0;ba(b|0,o|0,j|0);b=H[197455];H[197455]=0;if((b|0)==1){break y}b=H[H[o>>2]+24>>2];H[197455]=0;h=aa(b|0,o|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break x}if(h){break B}k=0;break A}f=$()|0;_()|0;break a}f=$()|0;_()|0;break c}b=H[H[h>>2]+36>>2];H[197455]=0;k=M[j+56>>3];i=aa(b|0,h|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break w}b=H[H[h>>2]+40>>2];H[197455]=0;m=aa(b|0,h|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break w}b=H[H[h>>2]+32>>2];H[197455]=0;l=M[j+56>>3];g=aa(b|0,h|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break v}b=H[H[h>>2]+40>>2];H[197455]=0;h=aa(b|0,h|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break v}l=l*+(g|0)/+(h|0);k=k*+(i|0)/+(m|0)}if(!f|c>>>0<2){break s}H[j+32>>2]=0;H[j+24>>2]=0;H[j+28>>2]=0;H[197455]=0;b=F[j+75|0];h=da(3228,j- -64|0,((b|0)<0?H[j+68>>2]:b&255)-1|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[h>>2];H[197455]=0;ba(1650,j+24|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){break u}}break t}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}H[j>>2]=0;H[j+20>>2]=0;b=H[H[o>>2]+84>>2];H[197455]=0;la(b|0,o|0,j+24|0,j|0,j+20|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){D:{b=H[H[o>>2]+120>>2];H[197455]=0;ba(b|0,j|0,o|0);b=H[197455];H[197455]=0;if((b|0)==1){break D}if(F[j+35|0]>=0){break d}Kb(H[j+24>>2]);break d}}}f=$()|0;_()|0;if(F[j+35|0]>=0){break c}Kb(H[j+24>>2]);break c}H[j>>2]=0;H[j+24>>2]=0;b=H[H[o>>2]+84>>2];H[197455]=0;la(b|0,o|0,j- -64|0,j|0,j+24|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}b=H[H[o>>2]+120>>2];H[197455]=0;ba(b|0,j|0,o|0);b=H[197455];H[197455]=0;if((b|0)!=1){break d}f=$()|0;_()|0;break c}H[197455]=0;l=+za(b|0,q|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}if(P(l)<2147483648){b=~~l}else{b=-2147483648}h=b>>31;t=+((b?(b^h)-h|0:18)|0);if(!(!f|c>>>0<2)){b=c-1|0;g=b&3;i=0;if(c-2>>>0<3){b=0;break f}h=b&-4;b=0;while(1){o=b<<1;k=k+ +G[o+f>>1]+ +G[(o|2)+f>>1]+ +G[(o|4)+f>>1]+ +G[(o|6)+f>>1];b=b+4|0;m=m+4|0;if((h|0)!=(m|0)){continue}break}break f}b=I[j+75|0];n=t*+((b<<24>>24<0?H[j+68>>2]:b)>>>0);break e}if(I[a+188|0]){H[a+172>>2]=g;F[a+188|0]=0;H[a+180>>2]=g;b=e<<16>>16;H[a+184>>2]=b;H[a+176>>2]=b;break b}b=a+172|0;E:{if(H[b>>2]<=(g|0)){b=a+180|0;if(H[b>>2]>=(g|0)){break E}}H[b>>2]=g}b=e<<16>>16;if((b|0)>2]){H[a+176>>2]=b;break b}if((b|0)<=H[a+184>>2]){break b}H[a+184>>2]=b;break b}f=$()|0;_()|0;break a}f=$()|0;_()|0;break a}f=$()|0;_()|0;break c}f=$()|0;_()|0;break a}if(g){while(1){k=k+ +G[(b<<1)+f>>1];b=b+1|0;i=i+1|0;if((g|0)!=(i|0)){continue}break}}b=I[j+75|0];n=t*+((b<<24>>24<0?H[j+68>>2]:b)>>>0)+k}b=H[H[q>>2]+32>>2];H[197455]=0;h=aa(b|0,q|0)|0;b=H[197455];H[197455]=0;F:{G:{H:{if((b|0)!=1){b=H[H[a>>2]+44>>2];H[197455]=0;g=aa(b|0,a|0)|0;b=H[197455];H[197455]=0;l=+(h|0)/10*3.141592653589793/-180;u=ne(l);l=ze(l);if((b|0)==1){break H}A=O(t*1.2);k=+(e<<16>>16);p=+O(u);r=+O(l);u=+(d<<16>>16);l=u;if(g&24){break F}if(!(g&8)){break G}l=+A;k=k-l*r;l=l*p+u;break F}f=$()|0;_()|0;break a}f=$()|0;_()|0;break a}k=r*-0+k;l=p*0+u}B=O(n);I:{if(g&6){n=+O(B*O(-.5));k=n*p+k;l=n*r+l;break I}if(!(g&2)){break I}n=+O(-B);k=n*p+k;l=n*r+l}b=H[H[q>>2]+32>>2];H[197455]=0;h=aa(b|0,q|0)|0;b=H[197455];H[197455]=0;J:{K:{if((b|0)!=1){v=k+0;w=v+ +A;s=l+0;t=s+ +B;if(h){break K}l=v;k=t;u=s;n=w;break J}f=$()|0;_()|0;break a}y=k-l*p-k*r;C=s*p;x=w*r;n=y+(C+x);z=k*p+(l-l*r);D=s*r;s=-p;k=w*s;u=z+(D+k);l=t*p;w=y+(l+x);t=t*r;k=z+(k+t);x=v*r;l=y+(l+x);s=v*s;t=z+(t+s);v=y+(C+x);s=z+(D+s)}if(P(s)<2147483648){g=~~s}else{g=-2147483648}if(P(v)<2147483648){i=~~v}else{i=-2147483648}b=a+172|0;L:{if(I[a+188|0]){H[a+172>>2]=g;F[a+188|0]=0;H[a+180>>2]=g;H[a+184>>2]=i;H[a+176>>2]=i;h=i;break L}h=b;M:{if(H[b>>2]<=(g|0)){h=a+180|0;if(H[h>>2]>=(g|0)){break M}}H[h>>2]=g}m=a+176|0;h=H[m>>2];g=i;N:{if((h|0)<=(g|0)){g=h;m=a+184|0;if((i|0)<=H[m>>2]){break N}}H[m>>2]=i;h=g}g=H[b>>2]}if(P(t)<2147483648){i=~~t}else{i=-2147483648}o=(i|0)<(g|0);if(P(l)<2147483648){g=~~l}else{g=-2147483648}m=b;O:{if(!o){m=a+180|0;if((i|0)<=H[m>>2]){break O}}H[m>>2]=i}P:{Q:{if((g|0)<(h|0)){i=a+176|0;h=g;break Q}i=a+184|0;if((g|0)<=H[i>>2]){break P}}H[i>>2]=g}if(P(k)<2147483648){i=~~k}else{i=-2147483648}o=(i|0)>2];if(P(w)<2147483648){g=~~w}else{g=-2147483648}m=b;R:{if(!o){m=a+180|0;if((i|0)<=H[m>>2]){break R}}H[m>>2]=i}S:{T:{if((g|0)<(h|0)){i=a+176|0;h=g;break T}i=a+184|0;if((g|0)<=H[i>>2]){break S}}H[i>>2]=g}if(P(u)<2147483648){m=~~u}else{m=-2147483648}i=(m|0)>2];if(P(n)<2147483648){g=~~n}else{g=-2147483648}U:{if(!i){b=a+180|0;if((m|0)<=H[b>>2]){break U}}H[b>>2]=m}if((g|0)<(h|0)){H[a+176>>2]=g;break b}if((g|0)<=H[a+184>>2]){break b}H[a+184>>2]=g;break b}H[j>>2]=0;H[j+24>>2]=0;b=H[H[o>>2]+84>>2];H[197455]=0;la(b|0,o|0,j- -64|0,j|0,j+24|0)|0;b=H[197455];H[197455]=0;V:{W:{X:{Y:{Z:{if((b|0)!=1){b=H[H[o>>2]+120>>2];H[197455]=0;ba(b|0,j|0,o|0);b=H[197455];H[197455]=0;if((b|0)==1){break V}b=H[H[q>>2]+32>>2];H[197455]=0;A=L[j+4>>2];K=L[j>>2];h=aa(b|0,q|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break Z}b=H[H[a>>2]+44>>2];H[197455]=0;g=aa(b|0,a|0)|0;b=H[197455];H[197455]=0;n=+(h|0)/10*3.141592653589793/-180;u=ne(n);n=ze(n);if((b|0)==1){break Y}N=O(k);E=O(k-P(l));B=O(-E);k=+(e<<16>>16);p=+O(u);r=+O(n);n=+(d<<16>>16);l=n;if(g&24){break W}if(!(g&8)){break X}l=+O(N+E);k=k-l*r;l=l*p+n;break W}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}f=$()|0;_()|0;break c}k=+E*r+k;l=+B*p+n}A=O(A-K);_:{if(g&6){n=+O(A*O(-.5));k=n*p+k;l=n*r+l;break _}if(!(g&2)){break _}n=+O(-A);k=n*p+k;l=n*r+l}b=H[H[q>>2]+32>>2];H[197455]=0;h=aa(b|0,q|0)|0;b=H[197455];H[197455]=0;$:{aa:{if((b|0)!=1){v=k+ +B;w=v+ +N;s=l+ +K;t=s+ +A;if(h){break aa}u=w;l=v;n=t;k=s;break $}f=$()|0;_()|0;break c}y=k-l*p-k*r;C=s*p;x=w*r;u=y+(C+x);z=k*p+(l-l*r);D=s*r;n=-p;k=w*n;s=z+(D+k);l=t*p;w=y+(l+x);p=k;k=t*r;t=z+(p+k);x=v*r;l=y+(l+x);p=k;k=v*n;n=z+(p+k);v=y+(C+x);k=z+(D+k)}ba:{if(P(k)<2147483648){g=~~k;break ba}g=-2147483648}if(P(v)<2147483648){i=~~v}else{i=-2147483648}b=a+172|0;ca:{if(I[a+188|0]){H[a+172>>2]=g;F[a+188|0]=0;H[a+180>>2]=g;H[a+184>>2]=i;H[a+176>>2]=i;h=i;break ca}h=b;da:{if(H[b>>2]<=(g|0)){h=a+180|0;if(H[h>>2]>=(g|0)){break da}}H[h>>2]=g}m=a+176|0;h=H[m>>2];g=i;ea:{if((h|0)<=(g|0)){g=h;m=a+184|0;if((i|0)<=H[m>>2]){break ea}}H[m>>2]=i;h=g}g=H[b>>2]}if(P(n)<2147483648){i=~~n}else{i=-2147483648}o=(i|0)<(g|0);if(P(l)<2147483648){g=~~l}else{g=-2147483648}m=b;fa:{if(!o){m=a+180|0;if((i|0)<=H[m>>2]){break fa}}H[m>>2]=i}ga:{ha:{if((g|0)<(h|0)){i=a+176|0;h=g;break ha}i=a+184|0;if((g|0)<=H[i>>2]){break ga}}H[i>>2]=g}if(P(t)<2147483648){i=~~t}else{i=-2147483648}o=(i|0)>2];if(P(w)<2147483648){g=~~w}else{g=-2147483648}m=b;ia:{if(!o){m=a+180|0;if((i|0)<=H[m>>2]){break ia}}H[m>>2]=i}ja:{ka:{if((g|0)<(h|0)){i=a+176|0;h=g;break ka}i=a+184|0;if((g|0)<=H[i>>2]){break ja}}H[i>>2]=g}if(P(s)<2147483648){m=~~s}else{m=-2147483648}i=(m|0)>2];if(P(u)<2147483648){g=~~u}else{g=-2147483648}la:{if(!i){b=a+180|0;if((m|0)<=H[b>>2]){break la}}H[b>>2]=m}ma:{na:{if((g|0)<(h|0)){b=a+176|0;break na}b=a+184|0;if((g|0)<=H[b>>2]){break ma}}H[b>>2]=g}if(F[j+51|0]>=0){break b}Kb(H[j+40>>2]);break b}f=$()|0;_()|0}if(F[j+51|0]>=0){break a}Kb(H[j+40>>2]);break a}oa:{pa:{if(f){h=0;qa:{if(!c){break qa}i=0;b=0;if(c-1>>>0>=3){g=c&-4;m=0;while(1){o=h;h=b<<1;h=(((o+J[h+f>>1]|0)+J[(h|2)+f>>1]|0)+J[(h|4)+f>>1]|0)+J[(h|6)+f>>1]|0;b=b+4|0;m=m+4|0;if((g|0)!=(m|0)){continue}break}}c=c&3;if(!c){break qa}while(1){h=J[(b<<1)+f>>1]+h|0;b=b+1|0;i=i+1|0;if((c|0)!=(i|0)){continue}break}}a=H[a+168>>2];H[197455]=0;G[a+132>>1]=d+h;G[a+134>>1]=e;a=H[197455];H[197455]=0;if((a|0)!=1){break pa}f=$()|0;_()|0;break a}a=H[a+168>>2];H[197455]=0;G[a+132>>1]=d;G[a+134>>1]=e;a=H[197455];H[197455]=0;if((a|0)==1){break oa}}if(F[j+75|0]<0){Kb(H[j+64>>2])}xb=j+80|0;return}f=$()|0;_()|0}if(F[j+75|0]<0){Kb(H[j+64>>2])}ea(f|0);X()}function lka(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,K=0,L=0,M=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;i=xb-160|0;xb=i;a:{if(!sE(a,b,4,c)){break a}m=Ni(b);H[i+152>>2]=H[h+8>>2];c=H[h+4>>2];H[i+144>>2]=H[h>>2];H[i+148>>2]=c;H[i+136>>2]=H[g+8>>2];c=H[g+4>>2];H[i+128>>2]=H[g>>2];H[i+132>>2]=c;H[i+120>>2]=H[f+8>>2];c=H[f+4>>2];H[i+112>>2]=H[f>>2];H[i+116>>2]=c;H[i+104>>2]=H[e+8>>2];c=H[e+4>>2];H[i+96>>2]=H[e>>2];H[i+100>>2]=c;H[i+88>>2]=H[d+8>>2];c=H[d+4>>2];H[i+80>>2]=H[d>>2];H[i+84>>2]=c;b:{if(H[b+20>>2]){break b}e=m+2|0;d=H[b+4>>2];c=e-d|0;if(!((c|0)>=0&(c|0)<=(H[b+8>>2]-d|0))){H[b+20>>2]=4;break b}c:{if((d|0)==(e|0)){H[b+4>>2]=(c+m|0)+2;break c}Nb(d,0,c);d=c;c=H[b+4>>2];H[b+4>>2]=d+c;if(!c){break b}}F[m|0]=0;F[m+1|0]=1;H[i+72>>2]=H[i+88>>2];H[i+56>>2]=H[i+104>>2];H[i+40>>2]=H[i+120>>2];H[i+24>>2]=H[i+136>>2];H[i+8>>2]=H[i+152>>2];c=H[i+84>>2];H[i+64>>2]=H[i+80>>2];H[i+68>>2]=c;c=H[i+100>>2];H[i+48>>2]=H[i+96>>2];H[i+52>>2]=c;c=H[i+116>>2];H[i+32>>2]=H[i+112>>2];H[i+36>>2]=c;c=H[i+132>>2];H[i+16>>2]=H[i+128>>2];H[i+20>>2]=c;c=H[i+148>>2];H[i>>2]=H[i+144>>2];H[i+4>>2]=c;y=i- -64|0;f=0;s=xb-32|0;xb=s;d:{e:{if(H[b+20>>2]){break e}e=m+6|0;d=H[b+4>>2];c=e-d|0;if(!((c|0)>=0&(c|0)<=(H[b+8>>2]-d|0))){H[b+20>>2]=4;break d}f:{if((d|0)==(e|0)){d=c+e|0;H[b+4>>2]=d;break f}Nb(d,0,c);d=c;c=H[b+4>>2];d=d+c|0;H[b+4>>2]=d;if(H[b+20>>2]|!c){break d}}g=m+6|0;c=g-d|0;if(!((c|0)>=0&(c|0)<=(H[b+8>>2]-d|0))){H[b+20>>2]=4;break d}e=H[y+4>>2];g:{if((d|0)==(g|0)){H[b+4>>2]=c+d;break g}Nb(d,0,c);d=c;c=H[b+4>>2];H[b+4>>2]=d+c;if(!c){break d}}c=e<<8|(e&65280)>>>8;F[m+4|0]=c;F[m+5|0]=c>>>8;c=H[b+20>>2];if(e>>>0>=65536){H[b+20>>2]=c|16;break e}if(c){break e}e=(m+(e<<1&131070)|0)+6|0;d=H[b+4>>2];c=e-d|0;if(!((c|0)>=0&(c|0)<=(H[b+8>>2]-d|0))){H[b+20>>2]=4;break d}h:{if((d|0)==(e|0)){H[b+4>>2]=c+e;break h}Nb(d,0,c);d=c;c=H[b+4>>2];H[b+4>>2]=d+c;if(!c){break d}}i:{L=H[y+4>>2];if(L){C=H[i+24>>2];D=H[i+40>>2];z=H[i+16>>2];f=H[i+20>>2];A=H[i+32>>2];g=H[i+36>>2];O=J[81816];P=H[i+48>>2];Q=H[i+52>>2];d=0;while(1){u=H[(d>>>0>>0?(d<<2)+P|0:163632)>>2];c=I[m+4|0]|I[m+5|0]<<8;j:{if(((c<<8|c>>>8)&65535)>>>0<=d>>>0){G[392496]=O;c=784992;break j}c=(m+(d<<1)|0)+6|0}H[s+24>>2]=0;H[s+16>>2]=A;H[s+20>>2]=g>>>0>>0?g:u;H[s+8>>2]=0;H[s+4>>2]=f>>>0>>0?f:u;H[s>>2]=z;h=0;n=xb-32|0;xb=n;E=c;F[c|0]=0;F[c+1|0]=0;v=Ni(b);H[n+24>>2]=H[s+24>>2];c=H[s+20>>2];H[n+16>>2]=H[s+16>>2];H[n+20>>2]=c;H[n+8>>2]=H[s+8>>2];c=H[s+4>>2];H[n>>2]=H[s>>2];H[n+4>>2]=c;r=xb-16|0;xb=r;k:{if(H[b+20>>2]){break k}j=4;l:{c=v+2|0;k=H[b+4>>2];e=c-k|0;if((e|0)<0|(e|0)>(H[b+8>>2]-k|0)){break l}m:{if((c|0)==(k|0)){k=c+e|0;H[b+4>>2]=k;break m}Nb(k,0,e);k=e;e=H[b+4>>2];k=k+e|0;H[b+4>>2]=k;if(H[b+20>>2]|!e){break k}}e=c-k|0;if((e|0)<0|(e|0)>(H[b+8>>2]-k|0)){break l}t=H[n+20>>2];n:{if((c|0)==(k|0)){H[b+4>>2]=c+e;break n}Nb(k,0,e);c=H[b+4>>2];H[b+4>>2]=c+e;if(!c){break k}}c=t<<8|(t&65280)>>>8;F[v|0]=c;F[v+1|0]=c>>>8;c=H[b+20>>2];if(t>>>0>=65536){j=c|16;break l}if(c){break k}k=((t<<1&131070)+v|0)+2|0;e=H[b+4>>2];c=k-e|0;if((c|0)<0|(c|0)>(H[b+8>>2]-e|0)){break l}o:{if((e|0)==(k|0)){H[b+4>>2]=c+k;break o}Nb(e,0,c);e=c;c=H[b+4>>2];H[b+4>>2]=e+c;if(!c){break k}}if(!t){h=1;break k}R=H[n+16>>2];S=J[81816];T=H[n>>2];U=H[n+4>>2];k=0;while(1){c=H[(k>>>0>>0?(k<<2)+T|0:163632)>>2];c=((c|0)>1?c:1)-1|0;e=I[v|0]|I[v+1|0]<<8;p:{if(((e<<8|e>>>8)&65535)>>>0<=k>>>0){G[392496]=S;e=784992;break p}e=((k<<1)+v|0)+2|0}h=H[i+4>>2];o=H[i>>2];H[r+8>>2]=0;H[r>>2]=o;H[r+4>>2]=c>>>0>h>>>0?h:c;K=0;j=xb-32|0;xb=j;o=e;F[e|0]=0;F[e+1|0]=0;h=Ni(b);e=k>>>0>>0?(k<<1)+R|0:163632;l=I[e|0]|I[e+1|0]<<8;H[j+24>>2]=H[r+8>>2];e=H[r+4>>2];H[j+16>>2]=H[r>>2];H[j+20>>2]=e;q:{r:{if(H[b+20>>2]){break r}p=h+4|0;q=H[b+4>>2];e=p-q|0;if(!((e|0)>=0&(e|0)<=(H[b+8>>2]-q|0))){H[b+20>>2]=4;break r}s:{if((p|0)==(q|0)){H[b+4>>2]=e+p;break s}Nb(q,0,e);p=e;e=H[b+4>>2];H[b+4>>2]=p+e;if(!e){break r}}F[h|0]=l;F[h+1|0]=l>>>8;H[j+8>>2]=H[j+24>>2];e=H[j+20>>2];H[j>>2]=H[j+16>>2];H[j+4>>2]=e;e=0;t:{if(H[b+20>>2]){break t}q=h+2|0;p=q+2|0;l=H[b+4>>2];e=p-l|0;if(!((e|0)>=0&(e|0)<=(H[b+8>>2]-l|0))){H[b+20>>2]=4;e=0;break t}h=H[j+4>>2];u:{v:{if((l|0)==(p|0)){H[b+4>>2]=e+p;break v}Nb(l,0,e);l=H[b+4>>2];H[b+4>>2]=l+e;e=0;if(!l){break u}}l=h+1|0;e=l<<8|(l&65280)>>>8;F[q|0]=e;F[q+1|0]=e>>>8;p=H[b+20>>2];if(l>>>0>=65536){H[b+20>>2]=p|16;e=0;break t}e=0;if(p){break t}p=q+(l&65535?l<<1&131070:2)|0;l=H[b+4>>2];e=p-l|0;if(!((e|0)>=0&(e|0)<=(H[b+8>>2]-l|0))){H[b+20>>2]=4;e=0;break t}w:{if((l|0)==(p|0)){H[b+4>>2]=e+p;break w}Nb(l,0,e);l=H[b+4>>2];H[b+4>>2]=l+e;e=0;if(!l){break u}}if(h){V=h&1;p=H[j+8>>2];e=H[j>>2];x:{if((h|0)==1){l=0;break x}W=h&-2;l=0;while(1){x=q+(l<<1)|0;w=h?e:163632;w=I[w|0]|I[w+1|0]<<8;F[x+2|0]=w;F[x+3|0]=w>>>8;w=q+((l|1)<<1)|0;x=!!h;e=(x<<1)+e|0;M=(h|0)==(x|0);B=M?163632:e;B=I[B|0]|I[B+1|0]<<8;F[w+2|0]=B;F[w+3|0]=B>>>8;l=l+2|0;w=!M;p=w+(p+x|0)|0;e=e+(w<<1)|0;h=h-(w+x|0)|0;K=K+2|0;if((W|0)!=(K|0)){continue}break}}if(V){q=q+(l<<1)|0;l=h?e:163632;l=I[l|0]|I[l+1|0]<<8;F[q+2|0]=l;F[q+3|0]=l>>>8;q=!!h;p=q+p|0;h=h-q|0;e=(q<<1)+e|0}H[j+8>>2]=p;H[j+4>>2]=h;H[j>>2]=e}e=1}}if(!e){break r}h=1;Sj(b,o,Zh(b,1));break q}h=0;e=H[b+40>>2];if(H[b+20>>2]|!e){break q}H[b+40>>2]=H[e+32>>2];o=H[e+4>>2];H[b+4>>2]=H[e>>2];H[b+8>>2]=o;Rj(b);H[e+12>>2]=0;Kb(H[e+16>>2]);H[e+24>>2]=0;H[e+16>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;Kb(H[e+28>>2]);H[e+28>>2]=0;H[e+20>>2]=0;H[e+24>>2]=0;H[e>>2]=H[b+24>>2];H[b+24>>2]=e}xb=j+32|0;if(!h){break k}e=H[i+4>>2];if(e>>>0>>0){c=e}H[i+4>>2]=e-c;H[i+8>>2]=H[i+8>>2]+c;H[i>>2]=H[i>>2]+(c<<1);k=k+1|0;if((t|0)!=(k|0)){continue}break}break k}H[b+20>>2]=j}xb=r+16|0;y:{if(h){Sj(b,E,Zh(b,1));break y}c=H[b+40>>2];if(H[b+20>>2]|!c){break y}H[b+40>>2]=H[c+32>>2];e=H[c+4>>2];H[b+4>>2]=H[c>>2];H[b+8>>2]=e;Rj(b);H[c+12>>2]=0;Kb(H[c+16>>2]);H[c+24>>2]=0;H[c+16>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;Kb(H[c+28>>2]);H[c+28>>2]=0;H[c+20>>2]=0;H[c+24>>2]=0;H[c>>2]=H[b+24>>2];H[b+24>>2]=c}xb=n+32|0;if(!h){break i}c=g>>>0>>0?g:u;D=c+D|0;g=g-c|0;A=(c<<1)+A|0;c=f>>>0>>0?f:u;C=c+C|0;f=f-c|0;z=(c<<2)+z|0;d=d+1|0;if(L>>>0>d>>>0){continue}break}H[i+32>>2]=A;H[i+36>>2]=g;H[i+16>>2]=z;H[i+20>>2]=f;H[i+40>>2]=D;H[i+24>>2]=C}c=0;k=0;j=0;n=xb-16|0;xb=n;u=m+2|0;F[u|0]=0;F[u+1|0]=0;f=Ni(b);H[n+8>>2]=H[y+8>>2];d=H[y+4>>2];H[n>>2]=H[y>>2];H[n+4>>2]=d;o=xb-32|0;xb=o;z:{if(H[b+20>>2]){break z}g=f+2|0;e=H[b+4>>2];d=g-e|0;if(!((d|0)>=0&(d|0)<=(H[b+8>>2]-e|0))){H[b+20>>2]=4;break z}A:{if((e|0)==(g|0)){H[b+4>>2]=d+g;break A}Nb(e,0,d);e=d;d=H[b+4>>2];H[b+4>>2]=e+d;if(!d){break z}}B:{e=H[n+4>>2];C:{if(e){c=H[n>>2];m=c+(e<<1)|0;g=-2;while(1){h=g+1|0;d=e?c:163632;d=I[d|0]|I[d+1|0]<<8;g=(d<<8|d>>>8)&65535;k=((h|0)!=(g|0))+k|0;j=j+1|0;d=e;h=!!e;e=e-h|0;c=(h<<1)+c|0;if((m|0)!=(c|0)|(d|0)!=(h|0)){continue}break}c=N(k,3)>>>0>>0;d=c?512:256;F[f|0]=d;F[f+1|0]=d>>>8;if(c-1|0){break C}break B}F[f|0]=0;F[f+1|0]=1}H[o+8>>2]=H[n+8>>2];c=H[n+4>>2];H[o>>2]=H[n>>2];H[o+4>>2]=c;k=0;d=0;D:{if(H[b+20>>2]){break D}e=f+2|0;g=e+2|0;f=H[b+4>>2];d=g-f|0;if(!((d|0)>=0&(d|0)<=(H[b+8>>2]-f|0))){H[b+20>>2]=4;d=0;break D}c=H[o+4>>2];E:{F:{if((f|0)==(g|0)){H[b+4>>2]=d+g;break F}Nb(f,0,d);f=H[b+4>>2];H[b+4>>2]=f+d;d=0;if(!f){break E}}d=c<<8|(c&65280)>>>8;F[e|0]=d;F[e+1|0]=d>>>8;f=H[b+20>>2];if(c>>>0>=65536){H[b+20>>2]=f|16;d=0;break D}d=0;if(f){break D}g=(e+(c<<1&131070)|0)+2|0;f=H[b+4>>2];d=g-f|0;if(!((d|0)>=0&(d|0)<=(H[b+8>>2]-f|0))){H[b+20>>2]=4;d=0;break D}G:{if((f|0)==(g|0)){H[b+4>>2]=d+g;break G}Nb(f,0,d);f=H[b+4>>2];H[b+4>>2]=f+d;d=0;if(!f){break E}}if(c){m=c&1;h=H[o+8>>2];d=H[o>>2];H:{if((c|0)==1){g=0;break H}v=c&-2;g=0;while(1){f=e+(g<<1)|0;j=c?d:163632;j=I[j|0]|I[j+1|0]<<8;F[f+2|0]=j;F[f+3|0]=j>>>8;j=e+((g|1)<<1)|0;f=!!c;d=(f<<1)+d|0;r=(c|0)==(f|0);t=r?163632:d;t=I[t|0]|I[t+1|0]<<8;F[j+2|0]=t;F[j+3|0]=t>>>8;g=g+2|0;j=!r;h=j+(f+h|0)|0;d=d+(j<<1)|0;c=c-(f+j|0)|0;k=k+2|0;if((v|0)!=(k|0)){continue}break}}if(m){e=e+(g<<1)|0;f=c?d:163632;f=I[f|0]|I[f+1|0]<<8;F[e+2|0]=f;F[e+3|0]=f>>>8;e=!!c;h=e+h|0;d=(e<<1)+d|0;c=c-e|0}H[o+8>>2]=h;H[o+4>>2]=c;H[o>>2]=d}d=1}}c=d;break z}H[o+24>>2]=H[n+8>>2];c=H[n+4>>2];H[o+16>>2]=H[n>>2];H[o+20>>2]=c;j=0;c=0;I:{if(H[b+20>>2]){break I}J:{e=f;c=e+4|0;f=H[b+4>>2];d=c-f|0;if(!((d|0)>=0&(d|0)<=(H[b+8>>2]-f|0))){break J}K:{L:{if((c|0)==(f|0)){m=c+d|0;H[b+4>>2]=m;break L}c=0;Nb(f,0,d);f=d;d=H[b+4>>2];m=f+d|0;H[b+4>>2]=m;if(!d){break K}}d=H[o+20>>2];if(!d){F[e+2|0]=0;F[e+3|0]=0;c=1;break I}h=H[o+16>>2];v=h+(d<<1)|0;g=-2;c=d;f=h;while(1){k=g+1|0;g=c?f:163632;g=I[g|0]|I[g+1|0]<<8;g=(g<<8|g>>>8)&65535;j=((k|0)!=(g|0))+j|0;k=c;r=!!c;c=c-r|0;f=(r<<1)+f|0;if((v|0)!=(f|0)|(k|0)!=(r|0)){continue}break}c=0;if(H[b+20>>2]){break I}c=e+4|0;f=c-m|0;if(!((f|0)>=0&(f|0)<=(H[b+8>>2]-m|0))){break J}M:{if((c|0)==(m|0)){H[b+4>>2]=f+m;break M}c=0;Nb(m,0,f);g=f;f=H[b+4>>2];H[b+4>>2]=g+f;if(!f){break K}}c=j<<8|(j&65280)>>>8;F[e+2|0]=c;F[e+3|0]=c>>>8;f=H[b+20>>2];if(j>>>0>=65536){H[b+20>>2]=f|16;c=0;break I}c=0;if(f){break I}c=(e+N(j,6)|0)+4|0;g=H[b+4>>2];f=c-g|0;if(!((f|0)>=0&(f|0)<=(H[b+8>>2]-g|0))){break J}N:{if((c|0)==(g|0)){H[b+4>>2]=c+f;break N}c=0;Nb(g,0,f);g=f;f=H[b+4>>2];H[b+4>>2]=g+f;if(!f){break K}}k=-2;j=-1;g=0;while(1){f=d;E=k+1|0;c=d?h:163632;c=I[c|0]|I[c+1|0]<<8;k=(c<<8|c>>>8)&65535;if((E|0)!=(k|0)){j=j+1|0;d=I[e+2|0]|I[e+3|0]<<8;O:{if(j>>>0>=((d<<8|d>>>8)&65535)>>>0){G[392498]=I[164028]|I[164029]<<8;H[196248]=I[164024]|I[164025]<<8|(I[164026]<<16|I[164027]<<24);d=784992;break O}d=(e+N(j,6)|0)+4|0}F[d|0]=c;F[d+1|0]=c>>>8;d=I[e+2|0]|I[e+3|0]<<8;P:{if(((d<<8|d>>>8)&65535)>>>0<=j>>>0){G[392498]=I[164028]|I[164029]<<8;H[196248]=I[164024]|I[164025]<<8|(I[164026]<<16|I[164027]<<24);d=784992;break P}d=(e+N(j,6)|0)+4|0}m=g<<8|(g&65280)>>>8;F[d+4|0]=m;F[d+5|0]=m>>>8}d=I[e+2|0]|I[e+3|0]<<8;Q:{if(((d<<8|d>>>8)&65535)>>>0<=j>>>0){G[392498]=I[164028]|I[164029]<<8;H[196248]=I[164024]|I[164025]<<8|(I[164026]<<16|I[164027]<<24);d=784992;break Q}d=(e+N(j,6)|0)+4|0}F[d+2|0]=c;F[d+3|0]=c>>>8;c=1;g=g+1|0;m=!!f;d=f-m|0;h=(m<<1)+h|0;if((v|0)!=(h|0)|(f|0)!=(m|0)){continue}break}}break I}H[b+20>>2]=4;c=0}}xb=o+32|0;R:{if(c){Sj(b,u,Zh(b,1));break R}d=H[b+40>>2];if(H[b+20>>2]|!d){break R}H[b+40>>2]=H[d+32>>2];e=H[d+4>>2];H[b+4>>2]=H[d>>2];H[b+8>>2]=e;Rj(b);H[d+12>>2]=0;Kb(H[d+16>>2]);H[d+24>>2]=0;H[d+16>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;Kb(H[d+28>>2]);H[d+28>>2]=0;H[d+20>>2]=0;H[d+24>>2]=0;H[d>>2]=H[b+24>>2];H[b+24>>2]=d}xb=n+16|0;f=c;break d}H[i+32>>2]=A;H[i+36>>2]=g;H[i+16>>2]=z;H[i+20>>2]=f;H[i+40>>2]=D;H[i+24>>2]=C}f=0}xb=s+32|0;if(!f){break b}X=1;S:{if(!(I[a+4|0]|I[a+5|0]<<8)){G[392496]=J[81816];a=784992;break S}a=a+6|0}Sj(b,a,Zh(b,1));break a}a=H[b+40>>2];if(H[b+20>>2]|!a){break a}H[b+40>>2]=H[a+32>>2];c=H[a+4>>2];H[b+4>>2]=H[a>>2];H[b+8>>2]=c;Rj(b);H[a+12>>2]=0;Kb(H[a+16>>2]);H[a+24>>2]=0;H[a+16>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;Kb(H[a+28>>2]);H[a+28>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[a>>2]=H[b+24>>2];H[b+24>>2]=a}xb=i+160|0;return X|0}function rX(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;j=xb-560|0;xb=j;k=j+192|0;l=+((g+i|0)/2<<16>>16);Ce(k,l,-1);H[197455]=0;ca(1774,k|0,(F[j+203|0]<0?H[j+192>>2]:k)|0,77)|0;k=H[197455];H[197455]=0;n=(f-h|0)/2|0;g=(g-i|0)/2|0;f=(f+h|0)/2|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{if((k|0)!=1){H[j+216>>2]=H[j+200>>2];H[j+200>>2]=0;h=H[j+196>>2];H[j+208>>2]=H[j+192>>2];H[j+212>>2]=h;H[j+192>>2]=0;H[j+196>>2]=0;H[197455]=0;ba(1650,j+208|0,32);h=H[197455];H[197455]=0;if((h|0)==1){break qa}H[j+232>>2]=H[j+216>>2];H[j+216>>2]=0;h=H[j+212>>2];H[j+224>>2]=H[j+208>>2];H[j+228>>2]=h;H[j+208>>2]=0;H[j+212>>2]=0;H[197455]=0;m=+(f<<16>>16);fa(1756,j+176|0,+m,-1);f=H[197455];H[197455]=0;if((f|0)==1){break pa}H[197455]=0;f=I[j+187|0];h=f<<24>>24<0;f=ca(1759,j+224|0,(h?H[j+176>>2]:j+176|0)|0,(h?H[j+180>>2]:f)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break oa}H[j+248>>2]=H[f+8>>2];h=H[f+4>>2];H[j+240>>2]=H[f>>2];H[j+244>>2]=h;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[197455]=0;ba(1650,j+240|0,32);f=H[197455];H[197455]=0;if((f|0)==1){break na}H[j+264>>2]=H[j+248>>2];H[j+248>>2]=0;f=H[j+244>>2];H[j+256>>2]=H[j+240>>2];H[j+260>>2]=f;H[j+240>>2]=0;H[j+244>>2]=0;H[197455]=0;ba(1650,j+256|0,76);f=H[197455];H[197455]=0;if((f|0)==1){break ma}H[j+280>>2]=H[j+264>>2];H[j+264>>2]=0;f=H[j+260>>2];H[j+272>>2]=H[j+256>>2];H[j+276>>2]=f;H[j+256>>2]=0;H[j+260>>2]=0;H[197455]=0;fa(1756,j+160|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break la}H[197455]=0;b=I[j+171|0];f=b<<24>>24<0;b=ca(1759,j+272|0,(f?H[j+160>>2]:j+160|0)|0,(f?H[j+164>>2]:b)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ka}H[j+296>>2]=H[b+8>>2];f=H[b+4>>2];H[j+288>>2]=H[b>>2];H[j+292>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+288|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break ja}H[j+312>>2]=H[j+296>>2];H[j+296>>2]=0;b=H[j+292>>2];H[j+304>>2]=H[j+288>>2];H[j+308>>2]=b;H[j+288>>2]=0;H[j+292>>2]=0;H[197455]=0;fa(1756,j+144|0,+(c|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break ia}H[197455]=0;b=I[j+155|0];c=b<<24>>24<0;b=ca(1759,j+304|0,(c?H[j+144>>2]:j+144|0)|0,(c?H[j+148>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ha}H[j+328>>2]=H[b+8>>2];c=H[b+4>>2];H[j+320>>2]=H[b>>2];H[j+324>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+320|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break ga}H[j+344>>2]=H[j+328>>2];H[j+328>>2]=0;b=H[j+324>>2];H[j+336>>2]=H[j+320>>2];H[j+340>>2]=b;H[j+320>>2]=0;H[j+324>>2]=0;H[197455]=0;ba(1650,j+336|0,65);b=H[197455];H[197455]=0;if((b|0)==1){break fa}H[j+360>>2]=H[j+344>>2];H[j+344>>2]=0;b=H[j+340>>2];H[j+352>>2]=H[j+336>>2];H[j+356>>2]=b;H[j+336>>2]=0;H[j+340>>2]=0;H[197455]=0;fa(1756,j+128|0,+(g<<16>>16),-1);b=H[197455];H[197455]=0;if((b|0)==1){break ea}H[197455]=0;b=I[j+139|0];c=b<<24>>24<0;b=ca(1759,j+352|0,(c?H[j+128>>2]:j+128|0)|0,(c?H[j+132>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break da}H[j+376>>2]=H[b+8>>2];c=H[b+4>>2];H[j+368>>2]=H[b>>2];H[j+372>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+368|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break ca}H[j+392>>2]=H[j+376>>2];H[j+376>>2]=0;b=H[j+372>>2];H[j+384>>2]=H[j+368>>2];H[j+388>>2]=b;H[j+368>>2]=0;H[j+372>>2]=0;H[197455]=0;fa(1756,j+112|0,+(n<<16>>16),-1);b=H[197455];H[197455]=0;if((b|0)==1){break ba}H[197455]=0;b=I[j+123|0];c=b<<24>>24<0;b=ca(1759,j+384|0,(c?H[j+112>>2]:j+112|0)|0,(c?H[j+116>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break aa}H[j+408>>2]=H[b+8>>2];c=H[b+4>>2];H[j+400>>2]=H[b>>2];H[j+404>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,j+400|0,434404)|0;c=H[197455];H[197455]=0;if((c|0)==1){break $}H[j+424>>2]=H[b+8>>2];c=H[b+4>>2];H[j+416>>2]=H[b>>2];H[j+420>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;fa(1756,j+96|0,+(d|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break _}H[197455]=0;b=I[j+107|0];c=b<<24>>24<0;b=ca(1759,j+416|0,(c?H[j+96>>2]:j+96|0)|0,(c?H[j+100>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Z}H[j+440>>2]=H[b+8>>2];c=H[b+4>>2];H[j+432>>2]=H[b>>2];H[j+436>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+432|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break Y}H[j+456>>2]=H[j+440>>2];H[j+440>>2]=0;b=H[j+436>>2];H[j+448>>2]=H[j+432>>2];H[j+452>>2]=b;H[j+432>>2]=0;H[j+436>>2]=0;H[197455]=0;fa(1756,j+80|0,+(e|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break X}H[197455]=0;b=I[j+91|0];c=b<<24>>24<0;b=ca(1759,j+448|0,(c?H[j+80>>2]:j+80|0)|0,(c?H[j+84>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break W}H[j+472>>2]=H[b+8>>2];c=H[b+4>>2];H[j+464>>2]=H[b>>2];H[j+468>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+464|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break V}H[j+488>>2]=H[j+472>>2];H[j+472>>2]=0;b=H[j+468>>2];H[j+480>>2]=H[j+464>>2];H[j+484>>2]=b;H[j+464>>2]=0;H[j+468>>2]=0;H[197455]=0;ba(1650,j+480|0,76);b=H[197455];H[197455]=0;if((b|0)==1){break U}H[j+504>>2]=H[j+488>>2];H[j+488>>2]=0;b=H[j+484>>2];H[j+496>>2]=H[j+480>>2];H[j+500>>2]=b;H[j+480>>2]=0;H[j+484>>2]=0;H[197455]=0;fa(1756,j- -64|0,+l,-1);b=H[197455];H[197455]=0;if((b|0)==1){break T}H[197455]=0;b=I[j+75|0];c=b<<24>>24<0;b=ca(1759,j+496|0,(c?H[j+64>>2]:j- -64|0)|0,(c?H[j+68>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break S}H[j+520>>2]=H[b+8>>2];c=H[b+4>>2];H[j+512>>2]=H[b>>2];H[j+516>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+512|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break R}H[j+536>>2]=H[j+520>>2];H[j+520>>2]=0;b=H[j+516>>2];H[j+528>>2]=H[j+512>>2];H[j+532>>2]=b;H[j+512>>2]=0;H[j+516>>2]=0;H[197455]=0;fa(1756,j+48|0,+m,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Q}H[197455]=0;b=I[j+59|0];c=b<<24>>24<0;b=ca(1759,j+528|0,(c?H[j+48>>2]:j+48|0)|0,(c?H[j+52>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break P}H[j+24>>2]=H[b+8>>2];c=H[b+4>>2];H[j+16>>2]=H[b>>2];H[j+20>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,j+16|0,434448)|0;c=H[197455];H[197455]=0;if((c|0)==1){break O}H[j+552>>2]=H[b+8>>2];c=H[b+4>>2];H[j+544>>2]=H[b>>2];H[j+548>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[j+27|0]<0){Kb(H[j+16>>2])}if(F[j+59|0]<0){Kb(H[j+48>>2])}if(F[j+539|0]<0){Kb(H[j+528>>2])}if(F[j+523|0]<0){Kb(H[j+512>>2])}if(F[j+75|0]<0){Kb(H[j+64>>2])}if(F[j+507|0]<0){Kb(H[j+496>>2])}if(F[j+491|0]<0){Kb(H[j+480>>2])}if(F[j+475|0]<0){Kb(H[j+464>>2])}if(F[j+91|0]<0){Kb(H[j+80>>2])}if(F[j+459|0]<0){Kb(H[j+448>>2])}if(F[j+443|0]<0){Kb(H[j+432>>2])}if(F[j+107|0]<0){Kb(H[j+96>>2])}if(F[j+427|0]<0){Kb(H[j+416>>2])}if(F[j+411|0]<0){Kb(H[j+400>>2])}if(F[j+123|0]<0){Kb(H[j+112>>2])}if(F[j+395|0]<0){Kb(H[j+384>>2])}if(F[j+379|0]<0){Kb(H[j+368>>2])}if(F[j+139|0]<0){Kb(H[j+128>>2])}if(F[j+363|0]<0){Kb(H[j+352>>2])}if(F[j+347|0]<0){Kb(H[j+336>>2])}if(F[j+331|0]<0){Kb(H[j+320>>2])}if(F[j+155|0]<0){Kb(H[j+144>>2])}if(F[j+315|0]<0){Kb(H[j+304>>2])}if(F[j+299|0]<0){Kb(H[j+288>>2])}if(F[j+171|0]<0){Kb(H[j+160>>2])}if(F[j+283|0]<0){Kb(H[j+272>>2])}if(F[j+267|0]<0){Kb(H[j+256>>2])}if(F[j+251|0]<0){Kb(H[j+240>>2])}if(F[j+187|0]<0){Kb(H[j+176>>2])}if(F[j+235|0]<0){Kb(H[j+224>>2])}if(F[j+219|0]<0){Kb(H[j+208>>2])}if(F[j+203|0]<0){Kb(H[j+192>>2])}H[197455]=0;b=ca(1762,j+16|0,434072,j+544|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[j+40>>2]=b;H[197455]=0;H[j+44>>2]=1;b=H[j+44>>2];H[j+8>>2]=H[j+40>>2];H[j+12>>2]=b;c=da(1763,j+528|0,j+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[j+39|0]<0){Kb(H[j+28>>2])}if(F[j+27|0]<0){Kb(H[j+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;qa(1765,a|0,c|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ga(1766,a|0,c|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}H[j+16>>2]=b;H[j+20>>2]=4;H[j+24>>2]=-2147483640;H[197455]=0;Mb(b,434080,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[j+523|0]=0;H[197455]=0;H[j+512>>2]=0;ka(1767,a|0,j+16|0,c|0,j+512|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[j+523|0]<0){Kb(H[j+512>>2])}if(F[j+27|0]<0){Kb(H[j+16>>2])}a=H[c>>2];if(a){f=H[c+4>>2];if((a|0)==(f|0)){b=a}else{while(1){if(F[f-1|0]<0){Kb(H[f-12>>2])}b=f-24|0;if(F[f-13|0]<0){Kb(H[b>>2])}f=b;if((b|0)!=(a|0)){continue}break}b=H[c>>2]}H[c+4>>2]=a;Kb(b)}if(F[j+555|0]<0){Kb(H[j+544>>2])}xb=j+560|0;return}f=$()|0;_()|0;break j}f=$()|0;_()|0;break k}f=$()|0;_()|0;break l}f=$()|0;_()|0;break m}f=$()|0;_()|0;break n}f=$()|0;_()|0;break o}f=$()|0;_()|0;break p}f=$()|0;_()|0;break q}f=$()|0;_()|0;break r}f=$()|0;_()|0;break s}f=$()|0;_()|0;break t}f=$()|0;_()|0;break u}f=$()|0;_()|0;break v}f=$()|0;_()|0;break w}f=$()|0;_()|0;break x}f=$()|0;_()|0;break y}f=$()|0;_()|0;break z}f=$()|0;_()|0;break A}f=$()|0;_()|0;break B}f=$()|0;_()|0;break C}f=$()|0;_()|0;break D}f=$()|0;_()|0;break E}f=$()|0;_()|0;break F}f=$()|0;_()|0;break G}f=$()|0;_()|0;break H}f=$()|0;_()|0;break I}f=$()|0;_()|0;break J}f=$()|0;_()|0;break K}f=$()|0;_()|0;break L}f=$()|0;_()|0;break M}f=$()|0;_()|0;break N}f=$()|0;_()|0;if(F[j+27|0]>=0){break N}Kb(H[j+16>>2])}if(F[j+59|0]>=0){break M}Kb(H[j+48>>2])}if(F[j+539|0]>=0){break L}Kb(H[j+528>>2])}if(F[j+523|0]>=0){break K}Kb(H[j+512>>2])}if(F[j+75|0]>=0){break J}Kb(H[j+64>>2])}if(F[j+507|0]>=0){break I}Kb(H[j+496>>2])}if(F[j+491|0]>=0){break H}Kb(H[j+480>>2])}if(F[j+475|0]>=0){break G}Kb(H[j+464>>2])}if(F[j+91|0]>=0){break F}Kb(H[j+80>>2])}if(F[j+459|0]>=0){break E}Kb(H[j+448>>2])}if(F[j+443|0]>=0){break D}Kb(H[j+432>>2])}if(F[j+107|0]>=0){break C}Kb(H[j+96>>2])}if(F[j+427|0]>=0){break B}Kb(H[j+416>>2])}if(F[j+411|0]>=0){break A}Kb(H[j+400>>2])}if(F[j+123|0]>=0){break z}Kb(H[j+112>>2])}if(F[j+395|0]>=0){break y}Kb(H[j+384>>2])}if(F[j+379|0]>=0){break x}Kb(H[j+368>>2])}if(F[j+139|0]>=0){break w}Kb(H[j+128>>2])}if(F[j+363|0]>=0){break v}Kb(H[j+352>>2])}if(F[j+347|0]>=0){break u}Kb(H[j+336>>2])}if(F[j+331|0]>=0){break t}Kb(H[j+320>>2])}if(F[j+155|0]>=0){break s}Kb(H[j+144>>2])}if(F[j+315|0]>=0){break r}Kb(H[j+304>>2])}if(F[j+299|0]>=0){break q}Kb(H[j+288>>2])}if(F[j+171|0]>=0){break p}Kb(H[j+160>>2])}if(F[j+283|0]>=0){break o}Kb(H[j+272>>2])}if(F[j+267|0]>=0){break n}Kb(H[j+256>>2])}if(F[j+251|0]>=0){break m}Kb(H[j+240>>2])}if(F[j+187|0]>=0){break l}Kb(H[j+176>>2])}if(F[j+235|0]>=0){break k}Kb(H[j+224>>2])}if(F[j+219|0]>=0){break j}Kb(H[j+208>>2])}if(F[j+203|0]>=0){break b}Kb(H[j+192>>2]);ea(f|0);X()}f=$()|0;_()|0;break c}f=$()|0;_()|0;Vb(j+16|0);break c}f=$()|0;_()|0;break d}f=$()|0;_()|0;break d}f=$()|0;_()|0;if(F[j+523|0]<0){Kb(H[j+512>>2])}if(F[j+27|0]>=0){break d}Kb(H[j+16>>2])}yc(c)}if(F[j+555|0]>=0){break b}Kb(H[j+544>>2])}ea(f|0);X()}ha(0)|0;_()|0;Zb();X()}function Ala(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=O(0),m=0,n=0,o=0,p=O(0),q=O(0),r=O(0),s=O(0),t=0,u=0,v=0,w=O(0),x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,G=0,J=0,M=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;g=xb-176|0;xb=g;k=1;a:{f=H[c+68>>2];if(!f){break a}o=H[a>>2];e=o?o:163632;e=K[e+16>>2]<20?163632:H[e+12>>2];i=I[e+4|0]|I[e+5|0]<<8;if((f|0)!=((i<<8|i>>>8)&65535)){break a}f=I[e+12|0]|I[e+13|0]<<8;if(((f<<8|f>>>8)&65535)>>>0<=b>>>0){break a}f=e+20|0;b:{if(F[e+15|0]&1){f=f+(b<<2)|0;b=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);f=I[f+4|0]|I[f+5|0]<<8|(I[f+6|0]<<16|I[f+7|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);break b}f=f+(b<<1)|0;b=I[f|0]|I[f+1|0]<<8;b=((b<<8|b>>>8)&65535)<<1;f=I[f+2|0]|I[f+3|0]<<8;f=((f<<8|f>>>8)&65535)<<1}i=H[o+16>>2];e=I[e+16|0]|I[e+17|0]<<8|(I[e+18|0]<<16|I[e+19|0]<<24);e=(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))+b|0;j=i-e|0;i=j>>>0>i>>>0?0:j;b=f-b|0;b=b>>>0>i>>>0?i:b;c:{if(b>>>0<4){b=0;e=0;break c}e=e+H[o+12>>2]|0}H[g+168>>2]=0;H[g+164>>2]=b;H[g+160>>2]=e;b=K[g+164>>2]<4?163632:H[g+160>>2];if(!(I[b|0]|I[b+1|0]<<8)){break a}H[g+152>>2]=0;H[g+144>>2]=0;H[g+148>>2]=0;H[g+136>>2]=0;H[g+128>>2]=0;H[g+132>>2]=0;b=H[a>>2];b=b?b:163632;b=K[b+16>>2]<20?163632:H[b+12>>2];b=I[b+4|0]|I[b+5|0]<<8;H[g+24>>2]=H[g+168>>2];H[197455]=0;e=H[g+164>>2];H[g+16>>2]=H[g+160>>2];H[g+20>>2]=e;b=la(699,g+16|0,(b<<8|b>>>8)&65535,g+144|0,g+112|0)|0;e=H[197455];H[197455]=0;d:{e:{f:{g:{if((e|0)!=1){if(!b){break e}b=0;f=H[d+4>>2];if((f|0)<=0){break f}m=(f|0)>0?f:0;while(1){b=((b>>>1|0)+b|0)+8|0;if(m>>>0>=b>>>0){continue}break}if(b>>>0>268435454){break g}u=Tb(b<<4);if(!u){u=0;break g}k=Nb(u,0,m<<4);if((f|0)<=0){break g}i=H[d>>2];e=0;while(1){h:{if(e>>>0>=f>>>0){b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;b=784992;break h}b=i+(e<<4)|0}j=H[b+4>>2];o=k+(e<<4)|0;H[o>>2]=H[b>>2];H[o+4>>2]=j;j=H[b+12>>2];H[o+8>>2]=H[b+8>>2];H[o+12>>2]=j;e=e+1|0;if((m|0)!=(e|0)){continue}break}A=m;break g}e=$()|0;_()|0;break d}i:{if((f|0)>0){while(1){n=((n>>>1|0)+n|0)+8|0;if(n>>>0<=m>>>0){continue}break}b=0;if(n>>>0>268435454){m=0;break f}b=Tb(n<<4);if(b){break i}}m=0;b=0;break f}Nb(b,0,m<<4)}j:{if(!f){o=H[40908];break j}o=H[40908];e=0;k=0;while(1){k:{if(e>>>0>=f>>>0){f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break k}f=H[d>>2]+(e<<4)|0}l:{if(!I[f+12|0]){break l}m:{if((k|0)<0){break m}i=k;f=x+1|0;j=(f|0)>0?f:0;n:{if(i>>>0>=j>>>0){f=z;break n}while(1){i=((i>>>1|0)+i|0)+8|0;if(j>>>0>=i>>>0){continue}break}f=k>>>0>i>>>0;k=-1;if(i>>>0>1073741822|f){break m}f=tc(z,i<<2);if(!f){break m}}if(j>>>0>x>>>0){Nb((x<<2)+f|0,0,j-x<<2)}H[196248]=o;k=((j<<2)+f|0)-4|0;if((k|0)!=784992){H[k>>2]=e}k=i;x=j;z=f;break l}H[196248]=o}e=e+1|0;f=H[d+4>>2];if(e>>>0>>0){continue}break}}a=H[a>>2];a=a?a:163632;a=K[a+16>>2]<20?163632:H[a+12>>2];e=I[a+4|0]|I[a+5|0]<<8;f=(e<<8|e>>>8)&65535;e=I[a+6|0]|I[a+7|0]<<8;Q=N(f,(e<<8|e>>>8)&65535);e=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);R=a+(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))|0;S=m&2147483644;E=m&3;T=H[c+68>>2];U=H[c+72>>2];e=H[g+140>>2];V=m-1>>>0<3;while(1){o:{H[g+104>>2]=0;H[g+8>>2]=0;H[g+100>>2]=Q;H[g+96>>2]=R;H[197455]=0;a=H[g+100>>2];H[g>>2]=H[g+96>>2];H[g+4>>2]=a;l=dG(e,U,T,g);a=H[197455];H[197455]=0;p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((a|0)!=1){if(l==O(0)){break p}a=H[g+112>>2];c=I[a+2|0]|I[a+3|0]<<8;if(c){a=a+((c<<8|c>>>8)&65535)|0}else{a=163632}a=a+H[g+124>>2]|0;H[g+92>>2]=a;c=H[g+128>>2];if(c>>>0>a>>>0){break y}c=c+H[g+132>>2]|0;if(c>>>0>>0){break y}i=c-a|0;e=H[g+140>>2];c=I[e|0]|I[e+1|0]<<8;f=(c<<8|c>>>8)&65535;if(i>>>0>>0){break y}c=0;H[g+88>>2]=0;H[g+84>>2]=f;H[g+80>>2]=a;H[g+72>>2]=0;H[g+64>>2]=0;H[g+68>>2]=0;t=0;n=0;B:{if(I[e+2|0]&32){H[197455]=0;a=ca(701,g+92|0,g- -64|0,g+80|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break A}if(!a){break B}n=H[g+68>>2];t=H[g+72>>2]}B=H[d+4>>2];a=H[g+148>>2];h=H[g+152>>2];H[g+56>>2]=0;H[g+48>>2]=0;H[g+52>>2]=0;i=n?n:a;k=i?i:B;a=(k|0)>0?k:0;f=(k|0)<=0;C:{D:{if(f){break D}while(1){c=((c>>>1|0)+c|0)+8|0;if(a>>>0>=c>>>0){continue}break}E:{if(c>>>0<=1073741822){e=Tb(c<<2);if(e){break E}}H[g+48>>2]=-1;break C}H[g+48>>2]=c;H[g+56>>2]=e;if(f){break D}Nb(e,0,a<<2)}H[g+52>>2]=a}H[197455]=0;c=cs(g+92|0,g+48|0,g+80|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=1;if(!c){break q}e=0;H[g+40>>2]=0;H[g+32>>2]=0;H[g+36>>2]=0;F:{G:{if(f){break G}while(1){e=((e>>>1|0)+e|0)+8|0;if(a>>>0>=e>>>0){continue}break}H:{if(e>>>0<=1073741822){c=Tb(e<<2);if(c){break H}}H[g+32>>2]=-1;break F}H[g+32>>2]=e;H[g+40>>2]=c;if(f){break G}Nb(c,0,a<<2)}H[g+36>>2]=a}H[197455]=0;a=cs(g+92|0,g+32|0,g+80|0);c=H[197455];H[197455]=0;if((c|0)==1){break z}e=1;if(!a){break r}if(!m){break s}f=0;e=0;c=0;if(!V){break x}break t}e=$()|0;_()|0;break w}k=0;H[g+68>>2]=0;Kb(H[g+72>>2]);break o}e=$()|0;_()|0;break u}e=$()|0;_()|0;break v}e=$()|0;_()|0;H[g+36>>2]=0;Kb(H[g+40>>2]);break w}k=0;break o}while(1){a=e<<4;j=a+b|0;H[j+4>>2]=0;H[j+8>>2]=0;F[j|0]=0;F[j+12|0]=0;j=(a|16)+b|0;H[j+4>>2]=0;H[j+8>>2]=0;F[j|0]=0;F[j+12|0]=0;j=(a|32)+b|0;H[j+4>>2]=0;H[j+8>>2]=0;F[j|0]=0;F[j+12|0]=0;a=(a|48)+b|0;H[a+4>>2]=0;H[a+8>>2]=0;F[a|0]=0;F[a+12|0]=0;e=e+4|0;c=c+4|0;if((S|0)!=(c|0)){continue}break}break t}H[g+52>>2]=0;Kb(H[g+56>>2])}H[g+68>>2]=0;Kb(H[g+72>>2])}Kb(z);Kb(b);Kb(u);break d}if(!E){break s}while(1){a=(e<<4)+b|0;H[a+4>>2]=0;H[a+8>>2]=0;F[a|0]=0;F[a+12|0]=0;e=e+1|0;f=f+1|0;if((E|0)!=(f|0)){continue}break}}if(k){t=n?t:h;e=0;n=H[g+40>>2];h=H[g+36>>2];v=H[g+56>>2];y=H[g+52>>2];while(1){c=e;I:{if(!i){break I}if(e>>>0>=i>>>0){H[196248]=o;c=o;break I}c=H[t+(e<<2)>>2]}j=c>>>0>>0;J:{if(!j){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break J}a=(c<<4)+b|0}F[a|0]=1;K:{if(e>>>0>=y>>>0){H[196248]=o;a=o;break K}a=H[v+(e<<2)>>2]}L:{if(!j){f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break L}f=(c<<4)+b|0}L[f+4>>2]=O(O(a|0)*l)+L[f+4>>2];M:{if(e>>>0>=h>>>0){H[196248]=o;a=o;break M}a=H[n+(e<<2)>>2]}N:{if(!j){c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break N}c=(c<<4)+b|0}L[c+8>>2]=O(O(a|0)*l)+L[c+8>>2];e=e+1|0;if((k|0)!=(e|0)){continue}break}}y=0;a=0;if(x){while(1){n=0;e=a;v=H[(y<<2)+z>>2];O:{if(e>>>0>v>>>0){break O}while(1){P:{if(e>>>0>=m>>>0){c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break P}c=(e<<4)+b|0}n=!I[c|0]+n|0;e=e+1|0;if(v>>>0>=e>>>0){continue}break}if(!n){break O}e=a;if(v-e>>>0>>0){break O}Q:while(1){c=e;e=e>>>0>>0?e+1|0:a;C=c>>>0>>0;R:{if(!C){f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break R}f=(c<<4)+b|0}if(!I[f|0]){continue}S:{if(e>>>0>=m>>>0){f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break S}f=(e<<4)+b|0}if(I[f|0]){continue}e=c;while(1){k=e>>>0>>0;i=e+1|0;T:{if(e>>>0>=m>>>0){e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;f=784992;break T}f=(e<<4)+b|0}e=k?i:a;if(I[f|0]){continue}D=e>>>0>>0;U:{if(!D){f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;f=784992;break U}f=(e<<4)+b|0}if(!I[f|0]){continue}break}f=e<<4;k=f+b|0;t=c<<4;i=t+b|0;j=f+u|0;t=t+u|0;f=c;while(1){f=f>>>0>>0?f+1|0:a;if((f|0)==(e|0)){continue Q}G=f>>>0>>0;V:{if(!G){h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992;break V}h=(f<<4)+u|0}l=L[h+4>>2];J=c>>>0>>0;if(J){h=t}else{h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992}p=L[h+4>>2];M=e>>>0>>0;if(M){h=j}else{h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992}q=L[h+4>>2];if(C){h=i}else{h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992}s=L[h+4>>2];if(D){h=k}else{h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992}w=L[h+4>>2];r=w==s?s:O(0);W:{if(p==q){break W}r=pq?s:w;if(l>=(p>=q?p:q)){break W}l=O(O(l-p)/O(q-p));r=O(O(O(O(1)-l)*s)+O(l*w))}l=r;P=f>>>0>>0;X:{if(!P){h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992;break X}h=(f<<4)+b|0}L[h+4>>2]=l;Y:{if(!G){h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992;break Y}h=(f<<4)+u|0}l=L[h+8>>2];if(J){h=t}else{h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992}p=L[h+8>>2];if(M){h=j}else{h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992}q=L[h+8>>2];if(C){h=i}else{h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992}s=L[h+8>>2];if(D){h=k}else{h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992}w=L[h+8>>2];r=w==s?s:O(0);Z:{if(p==q){break Z}r=pq?s:w;if(l>=(p>=q?p:q)){break Z}l=O(O(l-p)/O(q-p));r=O(O(O(O(1)-l)*s)+O(l*w))}l=r;_:{if(!P){h=H[40911];H[196250]=H[40910];H[196251]=h;h=H[40909];H[196248]=H[40908];H[196249]=h;h=784992;break _}h=(f<<4)+b|0}L[h+8>>2]=l;n=n-1|0;if(n){continue}break}break}}a=v+1|0;y=y+1|0;if((x|0)!=(y|0)){continue}break}}if(B){c=H[d>>2];f=H[d+4>>2];e=0;while(1){k=e>>>0>>0;$:{if(!k){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break $}a=(e<<4)+b|0}l=L[a+4>>2];i=e>>>0>>0;aa:{if(!i){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break aa}a=c+(e<<4)|0}L[a+4>>2]=l+L[a+4>>2];ba:{if(!k){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break ba}a=(e<<4)+b|0}l=L[a+8>>2];ca:{if(!i){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break ca}a=c+(e<<4)|0}L[a+8>>2]=l+L[a+8>>2];e=e+1|0;if((B|0)!=(e|0)){continue}break}}e=0}H[g+36>>2]=0;Kb(H[g+40>>2])}k=0;H[g+52>>2]=0;Kb(H[g+56>>2]);H[g+68>>2]=0;Kb(H[g+72>>2]);if(e){break o}}a=H[g+140>>2];c=I[a|0]|I[a+1|0]<<8;H[g+124>>2]=H[g+124>>2]+((c<<8|c>>>8)&65535);k=1;c=I[a+2|0]|I[a+3|0]<<8;e=c>>>5&2|c>>>7&1;c=H[g+120>>2]<<1;e=(a+N(e,c)|0)+4|0;H[g+140>>2]=e;a=H[g+116>>2]+1|0;H[g+116>>2]=a;f=H[g+112>>2];f=I[f|0]|I[f+1|0]<<8;if(a>>>0>=((f<<8|f>>>8)&4095)>>>0){break o}a=H[g+128>>2];if(a>>>0>e>>>0){break o}a=a+H[g+132>>2]|0;if(a>>>0>>0){break o}f=a-e|0;if(f>>>0<4){break o}a=I[e+2|0]|I[e+3|0]<<8;a=N(c,a>>>5&2|a>>>7&1)+4|0;c=I[e|0]|I[e+1|0]<<8;c=(c<<8|c>>>8)&65535;if(f>>>0<(a>>>0>c>>>0?a:c)>>>0){break o}if(a){continue}}break}Kb(z);Kb(b);Kb(u)}H[g+148>>2]=0;Kb(H[g+152>>2]);break a}H[g+148>>2]=0;Kb(H[g+152>>2]);ea(e|0);X()}xb=g+176|0;return k|0}function dE(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{if(!b){break b}k=oc(1,216);if(!k){break b}H[k+8>>2]=0;H[k>>2]=1;H[k+4>>2]=1;j=a?a:783228;if(H[j+4>>2]){H[j+4>>2]=0}H[k+12>>2]=j;i=k+16|0;if(eE(i,1,j,b,c,d,e,f,g)){b=xb-160|0;xb=b;f=k+60|0;m=Nb(f+24|0,0,100);H[b>>2]=j;a=H[i+4>>2];H[b+4>>2]=H[i>>2];H[b+8>>2]=a;a=H[i+12>>2];H[b+12>>2]=H[i+8>>2];H[b+16>>2]=a;H[b+20>>2]=H[i+16>>2];c=xb-32|0;xb=c;a=b+24|0;Nb(a+4|0,0,92);H[a>>2]=j;d=H[i+4>>2];H[a+4>>2]=H[i>>2];H[a+8>>2]=d;d=H[i+12>>2];H[a+12>>2]=H[i+8>>2];H[a+16>>2]=d;H[a+20>>2]=H[i+16>>2];H[c+28>>2]=3;H[c+24>>2]=3;d=H[a+12>>2];e=H[a+8>>2];H[197455]=0;Fa(741,e|0,d|0,c+28|0,c+12|0,c+24|0,c|0);d=H[197455];H[197455]=0;c:{d:{e:{if((d|0)!=1){d=H[a>>2];H[197455]=0;d=ma(742,d|0,1196643650,H[c+28>>2],c+12|0,a+36|0,a+24|0)|0;e=H[197455];H[197455]=0;f:{if((e|0)==1){break f}F[a+32|0]=(d|0)!=0;d=H[a>>2];e=H[a+36>>2];H[197455]=0;ma(743,d|0,1196643650,e|0,H[c+24>>2],c|0,a+44|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}d=H[a>>2];H[197455]=0;d=ma(742,d|0,1196445523,H[c+28>>2],c+12|0,a+40|0,a+28|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break f}F[a+33|0]=(d|0)!=0;d=H[a>>2];e=H[a+40>>2];H[197455]=0;ma(743,d|0,1196445523,e|0,H[c+24>>2],c|0,a+48|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break e}}break d}break d}xb=c+32|0;break c}b=$()|0;_()|0;H[a+88>>2]=0;Kb(H[a+92>>2]);H[a+92>>2]=0;H[a+84>>2]=0;H[a+88>>2]=0;H[a+76>>2]=0;Kb(H[a+80>>2]);H[a+80>>2]=0;H[a+72>>2]=0;H[a+76>>2]=0;H[a- -64>>2]=0;Kb(H[a+68>>2]);H[a+68>>2]=0;H[a+60>>2]=0;H[a+64>>2]=0;ea(b|0);X()}H[b+124>>2]=0;H[b+128>>2]=0;H[b+120>>2]=j;H[b+132>>2]=0;H[b+136>>2]=0;H[b+140>>2]=0;H[b+144>>2]=0;H[197455]=0;c=aa(774,j|0)|0;d=H[197455];H[197455]=0;g:{h:{if((d|0)==1){break h}i:{if(!c){break i}h=1;if((H[i>>2]&-2)==4){break i}H[197455]=0;c=aa(775,j|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break h}h=!c}c=I[b+148|0]&-2|h;F[b+148|0]=c;j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{a=H[b+8>>2];if((a|0)<=1298231906){if((a|0)<=1198877297){if((a|0)<=1130918514){if((a|0)<=1114139506){if((a|0)<=1113681e3){if((a|0)==1097100397|(a|0)==1097363309){break k}if((a|0)==1098015074){break t}d=128212;break j}if((a|0)==1113681001|(a|0)==1113683051){break k}if((a|0)==1113943655){break p}d=128212;break j}if((a|0)<=1114990691){if((a|0)==1114139507|(a|0)==1114792296){break k}d=128212;if((a|0)==1114990441){break k}break j}if((a|0)==1114990692|(a|0)==1130457965){break k}d=128212;if((a|0)==1130914157){break k}break j}if((a|0)<=1164409199){if((a|0)<=1147756906){if((a|0)==1130918515|(a|0)==1131441518){break k}if((a|0)==1147500129){break p}d=128212;break j}if((a|0)==1147756907|(a|0)==1148151666){break k}d=128212;if((a|0)==1148547180){break k}break j}if((a|0)<=1198485094){if((a|0)==1164409200){break k}d=128212;if((a|0)==1164736877){break k}break j}d=128212;switch(a-1198485095|0){case 1:case 2:case 3:case 4:case 5:break j;case 0:case 6:break k;default:break l}}if((a|0)<=1265202290){if((a|0)<=1247901280){if((a|0)<=1214603889){d=128212;u:{switch(a-1214344807|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:break j;case 8:break k;case 0:break r;default:break u}}if((a|0)==1198877298|(a|0)==1198879349){break p}break j}d=128212;switch(a-1215131239|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break j;case 0:case 9:break k;default:break q}}if((a|0)<=1265131889){if((a|0)==1247901281){break k}d=128212;if((a|0)==1264675945){break k}break j}if((a|0)==1265131890){break k}if((a|0)==1265134962){break o}d=128212;if((a|0)==1265135466){break k}break j}if((a|0)<=1281977697){if((a|0)<=1281453664){if((a|0)==1265202291){break k}if((a|0)==1265525857){break p}d=128212;if((a|0)==1265920105){break k}break j}if((a|0)==1281453665){break k}if((a|0)==1281453935){break s}d=128212;if((a|0)==1281716323){break k}break j}if((a|0)<=1298230883){if((a|0)==1281977698|(a|0)==1298229354){break k}d=128212;if((a|0)==1298230113){break k}break j}d=128212;switch(a-1298230884|0){case 0:case 5:break k;default:break j}}if((a|0)<=1399809891){if((a|0)<=1333094257){if((a|0)<=1299541107){if((a|0)<=1299145832){if((a|0)==1298231907|(a|0)==1298490470){break k}if((a|0)==1298954605){break p}d=128212;break j}if((a|0)==1299145833|(a|0)==1299148391){break k}d=128212;if((a|0)==1299473769){break k}break j}if((a|0)<=1315272544){if((a|0)==1299541108){break k}if((a|0)==1299803506){break n}d=128212;if((a|0)==1315008100){break k}break j}if((a|0)==1315272545|(a|0)==1315663727){break k}if((a|0)==1332902241){break p}d=128212;break j}if((a|0)<=1383032934){if((a|0)<=1349284451){if((a|0)==1333094258|(a|0)==1349017959){break k}d=128212;if((a|0)==1349020784){break k}break j}if((a|0)==1349284452){break k}if((a|0)==1365336423){break m}d=128212;if((a|0)==1382706791){break k}break j}if((a|0)<=1399415907){if((a|0)==1383032935|(a|0)==1398895986){break k}d=128212;if((a|0)==1399353956){break k}break j}d=128212;v:{switch(a-1399418468|0){case 1:case 2:case 3:break j;case 0:break k;case 4:break p;default:break v}}if((a|0)==1399415908){break k}break j}if((a|0)<=1415999078){if((a|0)<=1415669601){if((a|0)<=1400204899){d=128212;w:{switch(a-1399809892|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:break j;case 0:case 11:break k;default:break w}}if((a|0)==1399814511){break k}break j}if((a|0)==1400204900|(a|0)==1400466543){break k}if((a|0)==1400468067){break t}d=128212;break j}if((a|0)<=1415671147){if((a|0)==1415669602|(a|0)==1415670642){break k}d=128212;if((a|0)==1415670885){break k}break j}if((a|0)==1415671148){break p}if((a|0)==1415673460){break k}if((a|0)==1415933045){break p}d=128212;break j}if((a|0)<=1416524640){if((a|0)<=1416126824){if((a|0)==1415999079){break k}d=128212;if((a|0)==1416064103){break k}break j}if((a|0)==1416126825){break s}if((a|0)==1416192628){break k}d=128212;if((a|0)==1416196712){break k}break j}if((a|0)<=1466132590){if((a|0)==1416524641|(a|0)==1416590447){break k}d=128212;if((a|0)==1449751656){break k}break j}if((a|0)==1466132591|(a|0)==1499822697){break k}d=128212;if((a|0)==1516334690){break k}break j}if(!(H[b+48>>2]==1145457748&(a|0)!=1098015074)){d=125024;if((H[b+4>>2]&-2)==4){break j}}d=128212;break j}d=139472;break j}d=128324;break j}if((a|0)!=1214603890){break j}d=128380;break j}a=H[b+48>>2];if((a|0)==1145457748){d=128212;break j}d=128212;if((a|0)==1818326126){break j}d=(a&255)==51?140164:132144;break j}d=135688;break j}a=H[b+48>>2];if((a|0)==1145457748){d=128212;break j}if((a|0)==1818326126){d=128212;break j}d=128212;if((a|0)==1836674418){break j}d=137060;break j}d=137116;break j}if((a|0)!=1198678382){break j}}a=H[b+48>>2];d=(a|0)==1145457748?128212:(a|0)==1818326126?128212:140164}H[b+152>>2]=d;a=c&-3|(H[d+48>>2]!=0)<<1;F[b+148|0]=a;F[b+148|0]=a&251|I[d+52|0]<<2;if(!(!h|(d|0)==128212)){H[b+152>>2]=128268}a=b;break g}c=$()|0;_()|0;H[b+140>>2]=0;Kb(H[b+144>>2]);H[b+144>>2]=0;H[b+136>>2]=0;H[b+140>>2]=0;H[b+128>>2]=0;Kb(H[b+132>>2]);H[b+132>>2]=0;H[b+124>>2]=0;H[b+128>>2]=0;Qr(a);ea(c|0);X()}g=H[i+24>>2];j=H[i+20>>2];H[197455]=0;e=a+24|0;ka(776,e|0,1920365166,1,1);c=H[197455];H[197455]=0;x:{y:{if((c|0)==1){break y}H[197455]=0;ga(777,e|0,0,0);c=H[197455];H[197455]=0;if((c|0)==1){break y}z:{A:{B:{switch(H[a+4>>2]-4|0){case 1:H[197455]=0;ka(776,e|0,1920232545,1,1);h=H[197455];H[197455]=0;d=1920232557;c=0;break A;case 0:break B;default:break z}}H[197455]=0;ka(776,e|0,1819570785,1,1);h=H[197455];H[197455]=0;d=1819570797;c=1}if((h|0)==1){break y}H[197455]=0;ka(776,e|0,d|0,c|0,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}}H[197455]=0;ka(776,e|0,1718772067,0,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1853189490,0,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1684959085,0,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1918987876,33,255);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1953653099,3,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1214345830,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1212240454,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}c=H[H[a+152>>2]>>2];if(c){H[197455]=0;ia(c|0,a|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}}H[197455]=0;ka(776,e|0,1114995322,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1112889946,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1633842797,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1651275629,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1667460464,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1819239276,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1835102827,13,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1835756907,13,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1919707495,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}C:{if((H[a+4>>2]&-2)!=4){c=17;h=1986359924;break C}H[197455]=0;ka(776,e|0,1667329140,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1668049255,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1668641395,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;ka(776,e|0,1684632436,1,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;c=1;ka(776,e|0,1801810542,3,1);d=H[197455];H[197455]=0;if((d|0)==1){break y}H[197455]=0;ka(776,e|0,1818847073,1,1);d=H[197455];H[197455]=0;h=1919118452;if((d|0)==1){break y}}d=0;H[197455]=0;ka(776,e|0,h|0,c|0,1);c=H[197455];H[197455]=0;if((c|0)==1){break y}D:{E:{if(!g){break E}while(1){c=j+(d<<4)|0;l=H[c>>2];h=0;h=H[c+8>>2]?h:H[c+12>>2]==-1;c=H[c+4>>2];H[197455]=0;ka(776,e|0,l|0,h|0,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break D}d=d+1|0;if((g|0)!=(d|0)){continue}break}if(!(F[a+148|0]&1)){break E}d=a+120|0;c=0;while(1){h=j+(c<<4)|0;l=H[h+4>>2];h=H[h>>2];H[197455]=0;ga(778,d|0,h|0,l|0);h=H[197455];H[197455]=0;if((h|0)==1){break D}c=c+1|0;if((g|0)!=(c|0)){continue}break}}c=H[H[a+152>>2]+4>>2];if(c){H[197455]=0;ia(c|0,a|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}}H[197455]=0;ga(779,a|0,f|0,i+28|0);d=H[197455];H[197455]=0;c=1;if((d|0)==1){break y}d=H[H[f+20>>2]+8>>2];F:{if(!d){break F}H[197455]=0;d=aa(d|0,f|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break y}H[f+124>>2]=d;if(d){break F}c=0;H[197455]=0;iE(m);d=H[197455];H[197455]=0;if((d|0)==1){break y}H[f+116>>2]=0;Kb(H[f+120>>2]);H[f+120>>2]=0;H[f+112>>2]=0;H[f+116>>2]=0}H[a+140>>2]=0;Kb(H[a+144>>2]);H[a+144>>2]=0;H[a+136>>2]=0;H[a+140>>2]=0;H[a+128>>2]=0;Kb(H[a+132>>2]);H[a+132>>2]=0;H[a+124>>2]=0;H[a+128>>2]=0;Qr(e);xb=b+160|0;break x}}b=$()|0;_()|0;H[a+140>>2]=0;Kb(H[a+144>>2]);H[a+144>>2]=0;H[a+136>>2]=0;H[a+140>>2]=0;H[a+128>>2]=0;Kb(H[a+132>>2]);H[a+132>>2]=0;H[a+124>>2]=0;H[a+128>>2]=0;Qr(a+24|0);ea(b|0);X()}if(c){break a}Kb(H[k+36>>2])}Kb(k)}k=163632}return k}function gha(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=O(0),o=0;a:{b:{if((zb[H[H[b>>2]+48>>2]](b)|0)!=255){break b}if((zb[H[H[b>>2]+48>>2]](b)|0)!=216){break b}if(H[a+508>>2]<=19){l=c&1;while(1){c:{d=zb[H[H[b>>2]+48>>2]](b)|0;if((d|0)!=255){break c}d=zb[H[H[b>>2]+48>>2]](b)|0;if((d|0)!=255){break c}d=zb[H[H[b>>2]+48>>2]](b)|0;if((d|0)!=255){break c}d=zb[H[H[b>>2]+48>>2]](b)|0;if((d|0)!=255){break c}d=zb[H[H[b>>2]+48>>2]](b)|0;if((d|0)!=255){break c}d=zb[H[H[b>>2]+48>>2]](b)|0;if((d|0)!=255){break c}d=zb[H[H[b>>2]+48>>2]](b)|0;if((d|0)!=255){break c}Ux(248722);break a}H[(N(H[a+508>>2],12)+a|0)+272>>2]=d;e=zb[H[H[b>>2]+48>>2]](b)|0;h=zb[H[H[b>>2]+48>>2]](b)|0;i=e<<8|h;if((i|0)<=1){b=I[246418]|I[246419]<<8|(I[246420]<<16|I[246421]<<24);c=I[246414]|I[246415]<<8|(I[246416]<<16|I[246417]<<24);F[a+11|0]=c;F[a+12|0]=c>>>8;F[a+13|0]=c>>>16;F[a+14|0]=c>>>24;F[a+15|0]=b;F[a+16|0]=b>>>8;F[a+17|0]=b>>>16;F[a+18|0]=b>>>24;b=I[246411]|I[246412]<<8|(I[246413]<<16|I[246414]<<24);c=I[246407]|I[246408]<<8|(I[246409]<<16|I[246410]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;break a}g=N(H[a+508>>2],12)+a|0;H[g+276>>2]=i;f=Tb(i);if(!f){b=I[246526]|I[246527]<<8;F[a+28|0]=b;F[a+29|0]=b>>>8;b=I[246522]|I[246523]<<8|(I[246524]<<16|I[246525]<<24);c=I[246518]|I[246519]<<8|(I[246520]<<16|I[246521]<<24);F[a+20|0]=c;F[a+21|0]=c>>>8;F[a+22|0]=c>>>16;F[a+23|0]=c>>>24;F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24;b=I[246514]|I[246515]<<8|(I[246516]<<16|I[246517]<<24);c=I[246510]|I[246511]<<8|(I[246512]<<16|I[246513]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[246506]|I[246507]<<8|(I[246508]<<16|I[246509]<<24);c=I[246502]|I[246503]<<8|(I[246504]<<16|I[246505]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;break a}H[g+268>>2]=f;F[f+1|0]=h;F[f|0]=e;e=f+2|0;h=i-2|0;if((zb[H[H[b>>2]+12>>2]](b,e,1,h,0,0)|0)!=(h|0)){b=I[246966]|I[246967]<<8|(I[246968]<<16|I[246969]<<24);c=I[246962]|I[246963]<<8|(I[246964]<<16|I[246965]<<24);F[a+19|0]=c;F[a+20|0]=c>>>8;F[a+21|0]=c>>>16;F[a+22|0]=c>>>24;F[a+23|0]=b;F[a+24|0]=b>>>8;F[a+25|0]=b>>>16;F[a+26|0]=b>>>24;b=I[246959]|I[246960]<<8|(I[246961]<<16|I[246962]<<24);c=I[246955]|I[246956]<<8|(I[246957]<<16|I[246958]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[246951]|I[246952]<<8|(I[246953]<<16|I[246954]<<24);c=I[246947]|I[246948]<<8|(I[246949]<<16|I[246950]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;break a}j=H[a+508>>2];g=j+1|0;H[a+508>>2]=g;d:{e:{f:{switch(d-192|0){case 26:d=1;if(!(c&2)){break b}c=zb[H[H[b>>2]+24>>2]](b)|0;zb[H[H[b>>2]+20>>2]](b,0,2)|0;d=zb[H[H[b>>2]+24>>2]](b)|0;zb[H[H[b>>2]+20>>2]](b,c,0)|0;c=d-c|0;d=Tb(c);if(!d){F[a+44|0]=I[247126];b=I[247122]|I[247123]<<8|(I[247124]<<16|I[247125]<<24);c=I[247118]|I[247119]<<8|(I[247120]<<16|I[247121]<<24);F[a+36|0]=c;F[a+37|0]=c>>>8;F[a+38|0]=c>>>16;F[a+39|0]=c>>>24;F[a+40|0]=b;F[a+41|0]=b>>>8;F[a+42|0]=b>>>16;F[a+43|0]=b>>>24;b=I[247114]|I[247115]<<8|(I[247116]<<16|I[247117]<<24);c=I[247110]|I[247111]<<8|(I[247112]<<16|I[247113]<<24);F[a+28|0]=c;F[a+29|0]=c>>>8;F[a+30|0]=c>>>16;F[a+31|0]=c>>>24;F[a+32|0]=b;F[a+33|0]=b>>>8;F[a+34|0]=b>>>16;F[a+35|0]=b>>>24;b=I[247106]|I[247107]<<8|(I[247108]<<16|I[247109]<<24);c=I[247102]|I[247103]<<8|(I[247104]<<16|I[247105]<<24);F[a+20|0]=c;F[a+21|0]=c>>>8;F[a+22|0]=c>>>16;F[a+23|0]=c>>>24;F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24;b=I[247098]|I[247099]<<8|(I[247100]<<16|I[247101]<<24);c=I[247094]|I[247095]<<8|(I[247096]<<16|I[247097]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[247090]|I[247091]<<8|(I[247092]<<16|I[247093]<<24);c=I[247086]|I[247087]<<8|(I[247088]<<16|I[247089]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;break a}if((zb[H[H[b>>2]+12>>2]](b,d,1,c,0,0)|0)!=(c|0)){b=I[247235]|I[247236]<<8|(I[247237]<<16|I[247238]<<24);c=I[247231]|I[247232]<<8|(I[247233]<<16|I[247234]<<24);F[a+33|0]=c;F[a+34|0]=c>>>8;F[a+35|0]=c>>>16;F[a+36|0]=c>>>24;F[a+37|0]=b;F[a+38|0]=b>>>8;F[a+39|0]=b>>>16;F[a+40|0]=b>>>24;b=I[247230]|I[247231]<<8|(I[247232]<<16|I[247233]<<24);c=I[247226]|I[247227]<<8|(I[247228]<<16|I[247229]<<24);F[a+28|0]=c;F[a+29|0]=c>>>8;F[a+30|0]=c>>>16;F[a+31|0]=c>>>24;F[a+32|0]=b;F[a+33|0]=b>>>8;F[a+34|0]=b>>>16;F[a+35|0]=b>>>24;b=I[247222]|I[247223]<<8|(I[247224]<<16|I[247225]<<24);c=I[247218]|I[247219]<<8|(I[247220]<<16|I[247221]<<24);F[a+20|0]=c;F[a+21|0]=c>>>8;F[a+22|0]=c>>>16;F[a+23|0]=c>>>24;F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24;b=I[247214]|I[247215]<<8|(I[247216]<<16|I[247217]<<24);c=I[247210]|I[247211]<<8|(I[247212]<<16|I[247213]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[247206]|I[247207]<<8|(I[247208]<<16|I[247209]<<24);c=I[247202]|I[247203]<<8|(I[247204]<<16|I[247205]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;break a}e=H[a+508>>2];b=N(e,12)+a|0;H[b+276>>2]=c;H[b+268>>2]=d;H[b+272>>2]=291;H[a+508>>2]=e+1;return 1;case 25:Ux(248704);break a;case 62:if(!(k?0:l)){H[a+508>>2]=j;d=a+268|0;Kb(H[d+N(j,12)>>2]);g=H[a+508>>2];H[d+N(g,12)>>2]=0;break d}j=0;d=xb-256|0;xb=d;g=(i|0)<255?i:255;if((g|0)>=3){i=g-1|0;e=2;while(1){k=e+f|0;h=I[k|0];if(!(!((h|0)!=13|(e|0)>=(i|0))&I[k+1|0]==10)){F[d+j|0]=h-32>>>0<95?h:(h-9&255)>>>0<2?h:63;j=j+1|0}e=e+1|0;if((g|0)!=(e|0)){continue}break}}F[d+j|0]=0;he(H[a>>2]+196|0,d);xb=d+256|0;k=1;break e;case 32:H[a+508>>2]=j;d=a+268|0;Kb(H[d+N(j,12)>>2]);g=H[a+508>>2];H[d+N(g,12)>>2]=0;break d;case 33:if(!(!l|i>>>0<6|(I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24))!=1718188101)){j=0;f=xb-48|0;xb=f;d=H[a>>2];F[d+196|0]=0;H[d+120>>2]=0;g:{if(h>>>0<6){break g}H[a+260>>2]=0;if(md(e,247977,6)){d=I[248039]|I[248040]<<8|(I[248041]<<16|I[248042]<<24);e=I[248035]|I[248036]<<8|(I[248037]<<16|I[248038]<<24);F[a+18|0]=e;F[a+19|0]=e>>>8;F[a+20|0]=e>>>16;F[a+21|0]=e>>>24;F[a+22|0]=d;F[a+23|0]=d>>>8;F[a+24|0]=d>>>16;F[a+25|0]=d>>>24;d=I[248033]|I[248034]<<8|(I[248035]<<16|I[248036]<<24);e=I[248029]|I[248030]<<8|(I[248031]<<16|I[248032]<<24);F[a+12|0]=e;F[a+13|0]=e>>>8;F[a+14|0]=e>>>16;F[a+15|0]=e>>>24;F[a+16|0]=d;F[a+17|0]=d>>>8;F[a+18|0]=d>>>16;F[a+19|0]=d>>>24;d=I[248025]|I[248026]<<8|(I[248027]<<16|I[248028]<<24);e=I[248021]|I[248022]<<8|(I[248023]<<16|I[248024]<<24);F[a+4|0]=e;F[a+5|0]=e>>>8;F[a+6|0]=e>>>16;F[a+7|0]=e>>>24;F[a+8|0]=d;F[a+9|0]=d>>>8;F[a+10|0]=d>>>16;F[a+11|0]=d>>>24;break g}if(h>>>0<8){break g}i=e+6|0;h:{g=I[e+6|0]|I[e+7|0]<<8;if((g|0)!=18761){if((I[e+6|0]|I[e+7|0]<<8)!=19789){break h}d=1}else{d=0}H[a+264>>2]=d;if(h>>>0<14){break g}d=(g|0)!=18761;if((I[e+(d?8:9)|0]<<8|I[e+(d?9:8)|0])!=42){d=I[248237]|I[248238]<<8|(I[248239]<<16|I[248240]<<24);e=I[248233]|I[248234]<<8|(I[248235]<<16|I[248236]<<24);F[a+19|0]=e;F[a+20|0]=e>>>8;F[a+21|0]=e>>>16;F[a+22|0]=e>>>24;F[a+23|0]=d;F[a+24|0]=d>>>8;F[a+25|0]=d>>>16;F[a+26|0]=d>>>24;d=I[248230]|I[248231]<<8|(I[248232]<<16|I[248233]<<24);e=I[248226]|I[248227]<<8|(I[248228]<<16|I[248229]<<24);F[a+12|0]=e;F[a+13|0]=e>>>8;F[a+14|0]=e>>>16;F[a+15|0]=e>>>24;F[a+16|0]=d;F[a+17|0]=d>>>8;F[a+18|0]=d>>>16;F[a+19|0]=d>>>24;d=I[248222]|I[248223]<<8|(I[248224]<<16|I[248225]<<24);e=I[248218]|I[248219]<<8|(I[248220]<<16|I[248221]<<24);F[a+4|0]=e;F[a+5|0]=e>>>8;F[a+6|0]=e>>>16;F[a+7|0]=e>>>24;F[a+8|0]=d;F[a+9|0]=d>>>8;F[a+10|0]=d>>>16;F[a+11|0]=d>>>24;break g}d=e+10|0;i:{if(H[a+264>>2]){g=I[d+1|0]<<16|I[d|0]<<24|I[d+2|0]<<8;d=d+3|0;break i}g=I[d+2|0]<<16|I[d+3|0]<<24|I[d+1|0]<<8}o=I[d|0];d=h-6|0;H[f+28>>2]=d;H[f+24>>2]=i;m=h>>>0<14?h:14;H[f+36>>2]=h-m;H[f+32>>2]=e+m;H[f+44>>2]=e;if(!tn(a,f+32|0,f+24|0,d,H[a>>2],f+44|0,0)){break g}g=g|o;if((g|0)>=9){H[f+12>>2]=d;H[f+8>>2]=i;i=h;g=g+6|0;h=h>>>0>>0?h:g;H[f+20>>2]=i-h;H[f+16>>2]=e+h;if(!tn(a,f+16|0,f+8|0,d,H[a>>2],f+44|0,0)){break g}}j=1;d=H[a>>2];n=L[d+168>>2];if(n==O(0)){break g}L[d+140>>2]=O(L[d+176>>2]*O(H[a+260>>2]))/n;break g}d=I[248214]|I[248215]<<8|(I[248216]<<16|I[248217]<<24);e=I[248210]|I[248211]<<8|(I[248212]<<16|I[248213]<<24);F[a+27|0]=e;F[a+28|0]=e>>>8;F[a+29|0]=e>>>16;F[a+30|0]=e>>>24;F[a+31|0]=d;F[a+32|0]=d>>>8;F[a+33|0]=d>>>16;F[a+34|0]=d>>>24;d=I[248207]|I[248208]<<8|(I[248209]<<16|I[248210]<<24);e=I[248203]|I[248204]<<8|(I[248205]<<16|I[248206]<<24);F[a+20|0]=e;F[a+21|0]=e>>>8;F[a+22|0]=e>>>16;F[a+23|0]=e>>>24;F[a+24|0]=d;F[a+25|0]=d>>>8;F[a+26|0]=d>>>16;F[a+27|0]=d>>>24;d=I[248199]|I[248200]<<8|(I[248201]<<16|I[248202]<<24);e=I[248195]|I[248196]<<8|(I[248197]<<16|I[248198]<<24);F[a+12|0]=e;F[a+13|0]=e>>>8;F[a+14|0]=e>>>16;F[a+15|0]=e>>>24;F[a+16|0]=d;F[a+17|0]=d>>>8;F[a+18|0]=d>>>16;F[a+19|0]=d>>>24;d=I[248191]|I[248192]<<8|(I[248193]<<16|I[248194]<<24);e=I[248187]|I[248188]<<8|(I[248189]<<16|I[248190]<<24);F[a+4|0]=e;F[a+5|0]=e>>>8;F[a+6|0]=e>>>16;F[a+7|0]=e>>>24;F[a+8|0]=d;F[a+9|0]=d>>>8;F[a+10|0]=d>>>16;F[a+11|0]=d>>>24}xb=f+48|0;F[H[a>>2]+460|0]=j;break e}H[a+508>>2]=j;d=a+268|0;Kb(H[d+N(j,12)>>2]);g=H[a+508>>2];H[d+N(g,12)>>2]=0;break d;case 0:case 1:case 2:case 3:case 5:case 6:case 7:case 9:case 10:case 11:case 13:case 14:case 15:break f;default:break d}}if(i>>>0<8){break a}e=H[a>>2];H[e+100>>2]=I[f+4|0]|I[f+3|0]<<8;H[e+104>>2]=I[f+6|0]|I[f+5|0]<<8;f=I[f+7|0];H[e+116>>2]=d;H[e+112>>2]=(f|0)==3}g=H[a+508>>2]}if((g|0)<=19){continue}break}}d=0;b=I[245494]|I[245495]<<8|(I[245496]<<16|I[245497]<<24);c=I[245490]|I[245491]<<8|(I[245492]<<16|I[245493]<<24);F[a+26|0]=c;F[a+27|0]=c>>>8;F[a+28|0]=c>>>16;F[a+29|0]=c>>>24;F[a+30|0]=b;F[a+31|0]=b>>>8;F[a+32|0]=b>>>16;F[a+33|0]=b>>>24;b=I[245488]|I[245489]<<8|(I[245490]<<16|I[245491]<<24);c=I[245484]|I[245485]<<8|(I[245486]<<16|I[245487]<<24);F[a+20|0]=c;F[a+21|0]=c>>>8;F[a+22|0]=c>>>16;F[a+23|0]=c>>>24;F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24;b=I[245480]|I[245481]<<8|(I[245482]<<16|I[245483]<<24);c=I[245476]|I[245477]<<8|(I[245478]<<16|I[245479]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[245472]|I[245473]<<8|(I[245474]<<16|I[245475]<<24);c=I[245468]|I[245469]<<8|(I[245470]<<16|I[245471]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24}return d|0}return 0}function W8(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;j=xb-416|0;xb=j;f=H[a+608>>2];d=H[a+604>>2];v=1;q=H[a+584>>2];e=H[q+72>>2];h=H[q+68>>2];m=H[q+64>>2];a:{b:{c:{if((c|0)<=0){b=d}else{s=d+f|0;t=H[q+60>>2];n=H[q+12>>2];r=H[q+88>>2];while(1){d:{e:{f:{g:{h:{i:{if(e){break i}while(1){j:{k:{l:{if((h|0)>10){f=d;break l}if(d>>>0>=s>>>0){if(!h){break k}h=11;f=d;break l}i=h+8|0;f=d+1|0;m=I[I[d|0]+t|0]<2){h=i;break l}if(f>>>0>=s>>>0){h=11;break l}h=h+16|0;f=d+2|0;m=I[I[d+1|0]+t|0]<>>1|0;h=h-1|0;d=f;continue}}while(1){f=h;m:{if((f|0)>7){break m}if(d>>>0>=s>>>0){f=8;if(h){break m}break h}m=I[I[d|0]+t|0]<>>1|0;if(!e){continue}break}}l=m>>>1|0;e=f-1|0;h=e;n:{if((f|0)>1){break n}if(d>>>0>=s>>>0){h=1;if(e){break n}e=0;m=l;break h}l=I[I[d|0]+t|0]<>>1|0;h=h-1|0;k=0;if(!(l&1)){break f}g=r;o:{p:{while(1){p=0;q:{while(1){r:{if((h|0)>11){f=h;break r}if(d>>>0>=s>>>0){f=12;if(h){break r}break g}i=h+8|0;e=d+1|0;m=I[I[d|0]+t|0]<3){f=i;d=e;break r}f=12;if(e>>>0>=s>>>0){d=e;break r}f=h+16|0;m=I[I[d+1|0]+t|0]<>>e|0;h=f-e|0;e=1;f=g;s:{t:{switch(I[i|0]-7|0){case 0:i=H[i+4>>2];u=i+p|0;H[g>>2]=u;f=g+4|0;p=0;k=i+k|0;if((n|0)>(k|0)){break s}e=0;break o;case 5:break p;case 2:case 4:break t;default:break q}}e=H[i+4>>2];p=e+p|0;k=e+k|0;continue}break}while(1){u:{if((h|0)>12){i=h;break u}if(d>>>0>=s>>>0){i=13;if(h){break u}g=f;break g}o=h+8|0;l=d+1|0;m=I[I[d|0]+t|0]<4){i=o;d=l;break u}i=13;if(l>>>0>=s>>>0){d=l;break u}i=h+16|0;m=I[I[d+1|0]+t|0]<>>h|0;h=i-h|0;i=I[l|0];if(i-10>>>0<2){i=H[l+4>>2];p=i+p|0;k=i+k|0;continue}break}v:{w:{switch(i-8|0){case 0:e=H[l+4>>2];i=e+p|0;H[g+4>>2]=i;f=g+8|0;k=e+k|0;if((n|0)>(k|0)){break v}e=0;break o;case 4:break p;default:break w}}e=H[a+12>>2]&1024;i=H[(e?504:480)+a>>2];g=H[a+628>>2];l=H[a>>2];o=H[q+108>>2];H[j+304>>2]=k;H[j+300>>2]=i;H[j+296>>2]=e?288118:288139;H[j+292>>2]=o;H[j+288>>2]=l;Pb(g,294684,288035,j+288|0);e=0;break p}g=i|u?f:g;continue}break}e=H[a+12>>2]&1024;i=H[(e?504:480)+a>>2];f=H[a+628>>2];l=H[a>>2];o=H[q+108>>2];H[j+272>>2]=k;H[j+268>>2]=i;H[j+264>>2]=e?288118:288139;H[j+260>>2]=o;H[j+256>>2]=l;Pb(f,294684,288035,j+256|0);e=0;f=g}if(!p){break o}H[f>>2]=p;f=f+4|0}if((k|0)==(n|0)){break d}i=H[a+12>>2]&1024;g=H[(i?504:480)+a>>2];l=H[a+628>>2];o=H[a>>2];u=H[q+108>>2];H[j+248>>2]=n;H[j+244>>2]=k;H[j+240>>2]=g;H[j+236>>2]=i?288118:288139;H[j+232>>2]=u;H[j+228>>2]=k>>>0>>0?288626:288700;H[j+224>>2]=o;sc(l,294684,288332,j+224|0);l=(k|0)>(n|0);x:{if((k|0)<=(n|0)|f>>>0<=r>>>0){break x}while(1){f=f-4|0;k=k-H[f>>2]|0;l=(n|0)<(k|0);if((k|0)<=(n|0)){break x}if(f>>>0>r>>>0){continue}break}}if((k|0)<(n|0)){if(f-r&4){H[f>>2]=0;f=f+4|0}H[f>>2]=n-((k|0)>0?k:0);f=f+4|0;break d}if(l){break e}break d}else{m=m>>>8|0;h=f-8|0;continue}}}if(!n){g=r;break b}c=H[a+12>>2]&1024;i=H[(c?504:480)+a>>2];f=H[a+628>>2];g=H[a>>2];h=H[q+108>>2];H[j+408>>2]=n;H[j+404>>2]=0;H[j+400>>2]=i;H[j+396>>2]=c?288118:288139;H[j+392>>2]=h;H[j+388>>2]=288626;H[j+384>>2]=g;sc(f,294684,288332,j+384|0);H[r>>2]=n;if((n|0)>0){g=r+4|0;break b}H[r+4>>2]=0;g=r+8|0;break b}c=H[a+12>>2]&1024;e=H[(c?504:480)+a>>2];i=H[a+628>>2];f=H[a>>2];h=H[q+108>>2];H[j+368>>2]=k;H[j+364>>2]=e;H[j+360>>2]=c?288118:288139;H[j+356>>2]=h;H[j+352>>2]=f;sc(i,294684,288256,j+352|0);if(p){H[g>>2]=p;g=g+4|0}e=0;if((k|0)==(n|0)){break b}c=H[a+12>>2]&1024;i=H[(c?504:480)+a>>2];f=H[a+628>>2];h=H[a>>2];l=H[q+108>>2];H[j+344>>2]=n;H[j+340>>2]=k;H[j+336>>2]=i;H[j+332>>2]=c?288118:288139;H[j+328>>2]=l;H[j+324>>2]=k>>>0>>0?288626:288700;H[j+320>>2]=h;sc(f,294684,288332,j+320|0);h=(k|0)>(n|0);y:{if((k|0)<=(n|0)|g>>>0<=r>>>0){break y}while(1){g=g-4|0;k=k-H[g>>2]|0;h=(n|0)<(k|0);if((k|0)<=(n|0)){break y}if(g>>>0>r>>>0){continue}break}}if((k|0)<(n|0)){if(g-r&4){H[g>>2]=0;g=g+4|0}H[g>>2]=n-((k|0)>0?k:0);g=g+4|0;break b}if(!h){break b}H[g+4>>2]=0;H[g>>2]=n;g=g+8|0;break b}z:{if((n|0)<=0){e=0;g=0;f=r;break z}e=H[q+84>>2];d=e+4|0;l=H[e>>2];o=0;g=0;f=r;p=0;A:{B:{C:{D:{E:{F:{G:{H:{I:{while(1){k=g;e=h;J:{if((h|0)>6){break J}if(i>>>0>=s>>>0){e=7;if(h){break J}break c}m=I[I[i|0]+t|0]<>>u|0;h=e-u|0;K:{L:{M:{N:{O:{switch(I[g|0]-1|0){case 0:P:{if((f|0)==(r|0)){e=d;break P}if((k|0)<(l|0)){e=d;break P}e=d;if((l|0)>=(n|0)){break P}while(1){e=d+8|0;l=H[d+4>>2]+(H[d>>2]+l|0)|0;if((l|0)>(k|0)){break P}d=e;if((l|0)<(n|0)){continue}break}}g=H[e>>2]+l|0;p=g+(o+p|0)|0;d=e+8|0;l=H[e+4>>2]+g|0;break K;case 1:if(!(f-r&4)){break M}while(1){Q:{if((h|0)>12){e=h;break Q}if(i>>>0>=s>>>0){e=13;if(!h){break c}break Q}o=h+8|0;g=i+1|0;m=I[I[i|0]+t|0]<4){e=o;i=g;break Q}e=13;if(g>>>0>=s>>>0){i=g;break Q}e=h+16|0;m=I[I[i+1|0]+t|0]<>>h|0;h=e-h|0;e=I[g|0];if(e-10>>>0>=2){if((e|0)!=8){break D}e=H[g+4>>2];H[f>>2]=e+p;g=f+4|0;k=e+k|0;p=0;while(1){R:{if((h|0)>11){e=h;break R}if(i>>>0>=s>>>0){e=12;if(h){break R}f=g;break c}u=h+8|0;o=i+1|0;m=I[I[i|0]+t|0]<3){e=u;i=o;break R}e=12;if(o>>>0>=s>>>0){i=o;break R}e=h+16|0;m=I[I[i+1|0]+t|0]<>>h|0;h=e-h|0;S:{switch(I[o|0]-7|0){case 2:case 4:e=H[o+4>>2];p=e+p|0;k=e+k|0;continue;case 0:break S;default:break I}}break}e=H[o+4>>2];H[g>>2]=e+p;g=e+k|0;break L}else{e=H[g+4>>2];p=e+p|0;k=e+k|0;continue}};case 5:H[f>>2]=n-k;d=H[a+12>>2]&1024;e=H[(d?504:480)+a>>2];g=H[a+628>>2];l=H[a>>2];o=H[q+108>>2];H[j+208>>2]=k;H[j+204>>2]=e;H[j+200>>2]=d?288118:288139;H[j+196>>2]=o;H[j+192>>2]=l;Pb(g,294684,288896,j+192|0);f=f+4|0;break C;case 11:H[f>>2]=n-k;f=f+4|0;T:{if((h|0)>3){d=h;break T}if(i>>>0>=s>>>0){d=4;if((e|0)==(u|0)){break c}break T}d=h+8|0;m=I[I[i|0]+t|0]<>2];e=xb-32|0;xb=e;h=H[a+12>>2]&1024;l=H[(h?504:480)+a>>2];o=H[a+628>>2];u=H[a>>2];H[e+16>>2]=k;H[e+12>>2]=l;H[e+8>>2]=h?288118:288139;H[e+4>>2]=g;H[e>>2]=u;Pb(o,294684,288035,e);xb=e+32|0}m=m>>>4|0;h=d-4|0;e=1;break B;case 4:U:{if((f|0)==(r|0)){e=d;break U}if((k|0)<(l|0)){e=d;break U}e=d;if((l|0)>=(n|0)){break U}while(1){e=d+8|0;l=H[d+4>>2]+(H[d>>2]+l|0)|0;if((l|0)>(k|0)){break U}d=e;if((l|0)<(n|0)){continue}break}}d=(l+o|0)-H[g+4>>2]|0;H[f>>2]=d+p;g=d+k|0;d=e-4|0;l=l-H[d>>2]|0;f=f+4|0;break N;case 3:V:{if((f|0)==(r|0)){e=d;break V}if((k|0)<(l|0)){e=d;break V}e=d;if((l|0)>=(n|0)){break V}while(1){e=d+8|0;l=H[d+4>>2]+(H[d>>2]+l|0)|0;if((l|0)>(k|0)){break V}d=e;if((l|0)<(n|0)){continue}break}}g=H[g+4>>2];H[f>>2]=g+((o+p|0)+l|0);d=e+4|0;g=g+l|0;l=H[e>>2]+l|0;f=f+4|0;break N;case 2:break O;default:break G}}W:{if(!((f|0)==(r|0)|(k|0)<(l|0))){e=d;g=l;if((n|0)<=(g|0)){break W}while(1){e=d+8|0;g=H[d+4>>2]+(H[d>>2]+g|0)|0;if((k|0)<(g|0)){break W}d=e;if((g|0)<(n|0)){continue}break}break W}g=l;e=d}H[f>>2]=(o+p|0)+g;d=e+4|0;l=H[e>>2]+g|0;f=f+4|0}p=0;break K}while(1){X:{if((h|0)>11){e=h;break X}if(i>>>0>=s>>>0){e=12;if(!h){break c}break X}o=h+8|0;g=i+1|0;m=I[I[i|0]+t|0]<3){e=o;i=g;break X}e=12;if(g>>>0>=s>>>0){i=g;break X}e=h+16|0;m=I[I[i+1|0]+t|0]<>>g|0;h=e-g|0;g=f;Y:{switch(I[o|0]-7|0){case 2:case 4:e=H[o+4>>2];p=e+p|0;k=e+k|0;continue;case 0:break Y;default:break I}}break}e=H[o+4>>2];H[f>>2]=e+p;g=f+4|0;k=e+k|0;p=0;while(1){Z:{if((h|0)>12){e=h;break Z}if(i>>>0>=s>>>0){e=13;if(h){break Z}f=g;break c}u=h+8|0;o=i+1|0;m=I[I[i|0]+t|0]<4){e=u;i=o;break Z}e=13;if(o>>>0>=s>>>0){i=o;break Z}e=h+16|0;m=I[I[i+1|0]+t|0]<>>h|0;h=e-h|0;e=I[o|0];if(e-10>>>0>=2){if((e|0)!=8){f=g;break D}e=H[o+4>>2];H[g>>2]=e+p;g=e+k|0}else{e=H[o+4>>2];p=e+p|0;k=e+k|0;continue}break}}p=0;f=f+8|0;if((r|0)==(f|0)){f=r;break K}if((g|0)<(l|0)|(l|0)>=(n|0)){break K}while(1){e=d+8|0;l=H[d+4>>2]+(H[d>>2]+l|0)|0;if((l|0)>(g|0)){d=e;break K}d=e;if((l|0)<(n|0)){continue}break}}o=0-g|0;if((g|0)<(n|0)){continue}break}e=0;if(!p){break A}if((g+p|0)<(n|0)){break H}d=i;break E}d=H[a+12>>2]&1024;e=H[(d?504:480)+a>>2];f=H[a+628>>2];l=H[a>>2];o=H[q+108>>2];H[j+144>>2]=k;H[j+140>>2]=e;H[j+136>>2]=d?288118:288139;H[j+132>>2]=o;H[j+128>>2]=l;Pb(f,294684,288035,j+128|0);f=g;e=0;break B}l=h;_:{if((h|0)>0){break _}if(i>>>0>=s>>>0){l=1;if(h){break _}k=g;break c}m=I[I[i|0]+t|0]<>2]&1024;e=H[(d?504:480)+a>>2];g=H[a+628>>2];l=H[a>>2];o=H[q+108>>2];H[j+48>>2]=k;H[j+44>>2]=e;H[j+40>>2]=d?288118:288139;H[j+36>>2]=o;H[j+32>>2]=l;Pb(g,294684,288035,j+32|0);break C}m=m>>>1|0;h=l-1|0}H[f>>2]=p;f=f+4|0;break z}d=H[a+12>>2]&1024;e=H[(d?504:480)+a>>2];g=H[a+628>>2];l=H[a>>2];o=H[q+108>>2];H[j+176>>2]=k;H[j+172>>2]=e;H[j+168>>2]=d?288118:288139;H[j+164>>2]=o;H[j+160>>2]=l;Pb(g,294684,288035,j+160|0)}e=0}if(p){H[f>>2]=p;f=f+4|0}g=k}d=i}if((g|0)==(n|0)){break d}i=H[a+12>>2]&1024;l=H[(i?504:480)+a>>2];k=H[a+628>>2];o=H[a>>2];u=H[q+108>>2];H[j+24>>2]=n;H[j+20>>2]=g;H[j+16>>2]=l;H[j+12>>2]=i?288118:288139;H[j+8>>2]=u;H[j+4>>2]=g>>>0>>0?288626:288700;H[j>>2]=o;sc(k,294684,288332,j);k=(g|0)>(n|0);$:{if((g|0)<=(n|0)|f>>>0<=r>>>0){break $}while(1){f=f-4|0;g=g-H[f>>2]|0;k=(n|0)<(g|0);if((g|0)<=(n|0)){break $}if(f>>>0>r>>>0){continue}break}}if((g|0)<(n|0)){if(f-r&4){H[f>>2]=0;f=f+4|0}H[f>>2]=n-((g|0)>0?g:0);f=f+4|0;break d}if(!k){break d}}H[f+4>>2]=0;H[f>>2]=n;f=f+8|0}zb[H[q+76>>2]](b,r,f,n);H[f>>2]=0;i=H[q+88>>2];r=H[q+84>>2];H[q+88>>2]=r;H[q+84>>2]=i;H[q+108>>2]=H[q+108>>2]+1;i=H[q+8>>2];b=i+b|0;c=c-i|0;if((c|0)>0){continue}break}f=H[a+608>>2];b=H[a+604>>2]}H[q+72>>2]=e;H[q+64>>2]=m;H[q+68>>2]=h;b=(b-d|0)+f|0;break a}d=i;c=H[a+12>>2]&1024;e=H[(c?504:480)+a>>2];i=H[a+628>>2];g=H[a>>2];h=H[q+108>>2];H[j+112>>2]=k;H[j+108>>2]=e;H[j+104>>2]=c?288118:288139;H[j+100>>2]=h;H[j+96>>2]=g;sc(i,294684,288256,j+96|0);if(p){H[f>>2]=p;f=f+4|0}e=0;if((k|0)==(n|0)){g=f;break b}c=H[a+12>>2]&1024;i=H[(c?504:480)+a>>2];g=H[a+628>>2];h=H[a>>2];l=H[q+108>>2];H[j+88>>2]=n;H[j+84>>2]=k;H[j+80>>2]=i;H[j+76>>2]=c?288118:288139;H[j+72>>2]=l;H[j+68>>2]=k>>>0>>0?288626:288700;H[j+64>>2]=h;sc(g,294684,288332,j- -64|0);h=(k|0)>(n|0);aa:{if((k|0)<=(n|0)|f>>>0<=r>>>0){break aa}while(1){f=f-4|0;k=k-H[f>>2]|0;h=(n|0)<(k|0);if((k|0)<=(n|0)){break aa}if(f>>>0>r>>>0){continue}break}}if((k|0)<(n|0)){if(f-r&4){H[f>>2]=0;f=f+4|0}H[f>>2]=n-((k|0)>0?k:0);g=f+4|0;break b}if(!h){g=f;break b}H[f+4>>2]=0;H[f>>2]=n;g=f+8|0}zb[H[q+76>>2]](b,r,g,n);H[q+72>>2]=e;H[q+64>>2]=m;H[q+68>>2]=0;v=-1;b=H[a+608>>2]+(H[a+604>>2]-d|0)|0}H[a+604>>2]=d;H[a+608>>2]=b;xb=j+416|0;return v|0}function E0(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;c=xb-544|0;xb=c;a:{b:{c:{d:{e:{f:{g:{h:{if(H[d>>2]!=32|H[d+4>>2]!=1){break h}d=H[e>>2];o=H[e+4>>2];if((d|0)==(o|0)){break h}H[c+536>>2]=0;H[c+528>>2]=0;H[c+532>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{while(1){h=H[d+12>>2];f=H[d+4>>2];b=H[d+8>>2];e=H[d>>2];H[197455]=0;g=+(e|0);i=+(b|0);e=g>i;j=e?i:g;fa(1756,c+192|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break qa}H[197455]=0;b=ca(1758,c+192|0,0,405252)|0;k=H[197455];H[197455]=0;if((k|0)==1){break pa}H[c+216>>2]=H[b+8>>2];k=H[b+4>>2];H[c+208>>2]=H[b>>2];H[c+212>>2]=k;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+208|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break oa}H[c+232>>2]=H[c+216>>2];H[c+216>>2]=0;b=H[c+212>>2];H[c+224>>2]=H[c+208>>2];H[c+228>>2]=b;H[c+208>>2]=0;H[c+212>>2]=0;H[197455]=0;l=+(h|0);m=+(f|0);h=l>24<0;b=ca(1759,c+224|0,(f?H[c+176>>2]:c+176|0)|0,(f?H[c+180>>2]:b)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ma}H[c+248>>2]=H[b+8>>2];f=H[b+4>>2];H[c+240>>2]=H[b>>2];H[c+244>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break la}H[c+264>>2]=H[c+248>>2];H[c+248>>2]=0;b=H[c+244>>2];H[c+256>>2]=H[c+240>>2];H[c+260>>2]=b;H[c+240>>2]=0;H[c+244>>2]=0;H[197455]=0;b=da(1699,c+256|0,411076)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ka}H[c+280>>2]=H[b+8>>2];f=H[b+4>>2];H[c+272>>2]=H[b>>2];H[c+276>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;g=e?g:i;fa(1756,c+160|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break ja}H[197455]=0;b=I[c+171|0];e=b<<24>>24<0;b=ca(1759,c+272|0,(e?H[c+160>>2]:c+160|0)|0,(e?H[c+164>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ia}H[c+296>>2]=H[b+8>>2];e=H[b+4>>2];H[c+288>>2]=H[b>>2];H[c+292>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+288|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break ha}H[c+312>>2]=H[c+296>>2];H[c+296>>2]=0;b=H[c+292>>2];H[c+304>>2]=H[c+288>>2];H[c+308>>2]=b;H[c+288>>2]=0;H[c+292>>2]=0;H[197455]=0;fa(1756,c+144|0,+n,-1);b=H[197455];H[197455]=0;if((b|0)==1){break ga}H[197455]=0;b=I[c+155|0];e=b<<24>>24<0;b=ca(1759,c+304|0,(e?H[c+144>>2]:c+144|0)|0,(e?H[c+148>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break fa}H[c+328>>2]=H[b+8>>2];e=H[b+4>>2];H[c+320>>2]=H[b>>2];H[c+324>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+320|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break ea}H[c+344>>2]=H[c+328>>2];H[c+328>>2]=0;b=H[c+324>>2];H[c+336>>2]=H[c+320>>2];H[c+340>>2]=b;H[c+320>>2]=0;H[c+324>>2]=0;H[197455]=0;fa(1756,c+128|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break da}H[197455]=0;b=I[c+139|0];e=b<<24>>24<0;b=ca(1759,c+336|0,(e?H[c+128>>2]:c+128|0)|0,(e?H[c+132>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ca}H[c+360>>2]=H[b+8>>2];e=H[b+4>>2];H[c+352>>2]=H[b>>2];H[c+356>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+352|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break ba}H[c+376>>2]=H[c+360>>2];H[c+360>>2]=0;b=H[c+356>>2];H[c+368>>2]=H[c+352>>2];H[c+372>>2]=b;H[c+352>>2]=0;H[c+356>>2]=0;H[197455]=0;g=h?m:l;fa(1756,c+112|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break aa}H[197455]=0;b=I[c+123|0];e=b<<24>>24<0;b=ca(1759,c+368|0,(e?H[c+112>>2]:c+112|0)|0,(e?H[c+116>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break $}H[c+392>>2]=H[b+8>>2];e=H[b+4>>2];H[c+384>>2]=H[b>>2];H[c+388>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+384|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break _}H[c+408>>2]=H[c+392>>2];H[c+392>>2]=0;b=H[c+388>>2];H[c+400>>2]=H[c+384>>2];H[c+404>>2]=b;H[c+384>>2]=0;H[c+388>>2]=0;H[197455]=0;fa(1756,c+96|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Z}H[197455]=0;b=I[c+107|0];e=b<<24>>24<0;b=ca(1759,c+400|0,(e?H[c+96>>2]:c+96|0)|0,(e?H[c+100>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break Y}H[c+424>>2]=H[b+8>>2];e=H[b+4>>2];H[c+416>>2]=H[b>>2];H[c+420>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+416|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break X}H[c+440>>2]=H[c+424>>2];H[c+424>>2]=0;b=H[c+420>>2];H[c+432>>2]=H[c+416>>2];H[c+436>>2]=b;H[c+416>>2]=0;H[c+420>>2]=0;H[197455]=0;fa(1756,c+80|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break W}H[197455]=0;b=I[c+91|0];e=b<<24>>24<0;b=ca(1759,c+432|0,(e?H[c+80>>2]:c+80|0)|0,(e?H[c+84>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break V}H[c+456>>2]=H[b+8>>2];e=H[b+4>>2];H[c+448>>2]=H[b>>2];H[c+452>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+448|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break U}H[c+472>>2]=H[c+456>>2];H[c+456>>2]=0;b=H[c+452>>2];H[c+464>>2]=H[c+448>>2];H[c+468>>2]=b;H[c+448>>2]=0;H[c+452>>2]=0;H[197455]=0;fa(1756,c- -64|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break T}H[197455]=0;b=I[c+75|0];e=b<<24>>24<0;b=ca(1759,c+464|0,(e?H[c+64>>2]:c- -64|0)|0,(e?H[c+68>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break S}H[c+488>>2]=H[b+8>>2];e=H[b+4>>2];H[c+480>>2]=H[b>>2];H[c+484>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+480|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break R}H[c+504>>2]=H[c+488>>2];H[c+488>>2]=0;b=H[c+484>>2];H[c+496>>2]=H[c+480>>2];H[c+500>>2]=b;H[c+480>>2]=0;H[c+484>>2]=0;H[197455]=0;fa(1756,c+48|0,+n,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Q}H[197455]=0;b=I[c+59|0];e=b<<24>>24<0;b=ca(1759,c+496|0,(e?H[c+48>>2]:c+48|0)|0,(e?H[c+52>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break P}H[c+520>>2]=H[b+8>>2];e=H[b+4>>2];H[c+512>>2]=H[b>>2];H[c+516>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+512|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[c+24>>2]=H[c+520>>2];H[c+520>>2]=0;b=H[c+516>>2];e=H[c+512>>2];H[c+16>>2]=e;H[c+20>>2]=b;H[c+512>>2]=0;H[c+516>>2]=0;H[197455]=0;f=e;b=F[c+27|0];e=(b|0)<0;ca(1759,c+528|0,(e?f:c+16|0)|0,(e?H[c+20>>2]:b&255)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break N}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+523|0]<0){Kb(H[c+512>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+507|0]<0){Kb(H[c+496>>2])}if(F[c+491|0]<0){Kb(H[c+480>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}if(F[c+475|0]<0){Kb(H[c+464>>2])}if(F[c+459|0]<0){Kb(H[c+448>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+443|0]<0){Kb(H[c+432>>2])}if(F[c+427|0]<0){Kb(H[c+416>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+411|0]<0){Kb(H[c+400>>2])}if(F[c+395|0]<0){Kb(H[c+384>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+379|0]<0){Kb(H[c+368>>2])}if(F[c+363|0]<0){Kb(H[c+352>>2])}if(F[c+139|0]<0){Kb(H[c+128>>2])}if(F[c+347|0]<0){Kb(H[c+336>>2])}if(F[c+331|0]<0){Kb(H[c+320>>2])}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+315|0]<0){Kb(H[c+304>>2])}if(F[c+299|0]<0){Kb(H[c+288>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}if(F[c+283|0]<0){Kb(H[c+272>>2])}if(F[c+267|0]<0){Kb(H[c+256>>2])}if(F[c+251|0]<0){Kb(H[c+240>>2])}if(F[c+187|0]<0){Kb(H[c+176>>2])}if(F[c+235|0]<0){Kb(H[c+224>>2])}if(F[c+219|0]<0){Kb(H[c+208>>2])}if(F[c+203|0]<0){Kb(H[c+192>>2])}d=d+16|0;if((o|0)!=(d|0)){continue}break}H[197455]=0;b=ca(1762,c+16|0,404840,c+528|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break i}d=$()|0;_()|0;break b}d=$()|0;_()|0;break b}d=$()|0;_()|0;break j}d=$()|0;_()|0;break k}d=$()|0;_()|0;break l}d=$()|0;_()|0;break m}d=$()|0;_()|0;break n}d=$()|0;_()|0;break o}d=$()|0;_()|0;break p}d=$()|0;_()|0;break q}d=$()|0;_()|0;break r}d=$()|0;_()|0;break s}d=$()|0;_()|0;break t}d=$()|0;_()|0;break u}d=$()|0;_()|0;break v}d=$()|0;_()|0;break w}d=$()|0;_()|0;break x}d=$()|0;_()|0;break y}d=$()|0;_()|0;break z}d=$()|0;_()|0;break A}d=$()|0;_()|0;break B}d=$()|0;_()|0;break C}d=$()|0;_()|0;break D}d=$()|0;_()|0;break E}d=$()|0;_()|0;break F}d=$()|0;_()|0;break G}d=$()|0;_()|0;break H}d=$()|0;_()|0;break I}d=$()|0;_()|0;break J}d=$()|0;_()|0;break K}d=$()|0;_()|0;break L}d=$()|0;_()|0;break M}d=$()|0;_()|0;if(F[c+27|0]>=0){break M}Kb(H[c+16>>2])}if(F[c+523|0]>=0){break L}Kb(H[c+512>>2])}if(F[c+59|0]>=0){break K}Kb(H[c+48>>2])}if(F[c+507|0]>=0){break J}Kb(H[c+496>>2])}if(F[c+491|0]>=0){break I}Kb(H[c+480>>2])}if(F[c+75|0]>=0){break H}Kb(H[c+64>>2])}if(F[c+475|0]>=0){break G}Kb(H[c+464>>2])}if(F[c+459|0]>=0){break F}Kb(H[c+448>>2])}if(F[c+91|0]>=0){break E}Kb(H[c+80>>2])}if(F[c+443|0]>=0){break D}Kb(H[c+432>>2])}if(F[c+427|0]>=0){break C}Kb(H[c+416>>2])}if(F[c+107|0]>=0){break B}Kb(H[c+96>>2])}if(F[c+411|0]>=0){break A}Kb(H[c+400>>2])}if(F[c+395|0]>=0){break z}Kb(H[c+384>>2])}if(F[c+123|0]>=0){break y}Kb(H[c+112>>2])}if(F[c+379|0]>=0){break x}Kb(H[c+368>>2])}if(F[c+363|0]>=0){break w}Kb(H[c+352>>2])}if(F[c+139|0]>=0){break v}Kb(H[c+128>>2])}if(F[c+347|0]>=0){break u}Kb(H[c+336>>2])}if(F[c+331|0]>=0){break t}Kb(H[c+320>>2])}if(F[c+155|0]>=0){break s}Kb(H[c+144>>2])}if(F[c+315|0]>=0){break r}Kb(H[c+304>>2])}if(F[c+299|0]>=0){break q}Kb(H[c+288>>2])}if(F[c+171|0]>=0){break p}Kb(H[c+160>>2])}if(F[c+283|0]>=0){break o}Kb(H[c+272>>2])}if(F[c+267|0]>=0){break n}Kb(H[c+256>>2])}if(F[c+251|0]>=0){break m}Kb(H[c+240>>2])}if(F[c+187|0]>=0){break l}Kb(H[c+176>>2])}if(F[c+235|0]>=0){break k}Kb(H[c+224>>2])}if(F[c+219|0]>=0){break j}Kb(H[c+208>>2])}if(F[c+203|0]>=0){break b}Kb(H[c+192>>2]);break b}H[c+40>>2]=b;H[197455]=0;H[c+44>>2]=1;b=H[c+44>>2];H[c+8>>2]=H[c+40>>2];H[c+12>>2]=b;e=da(1763,c+512|0,c+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[c+39|0]<0){Kb(H[c+28>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}H[197455]=0;a=a+8|0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c+16>>2]=b;H[c+20>>2]=4;H[c+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[c+507|0]=0;H[197455]=0;H[c+496>>2]=0;ka(1767,a|0,c+16|0,e|0,c+496|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+507|0]<0){Kb(H[c+496>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}a=H[e>>2];if(a){d=H[e+4>>2];if((a|0)==(d|0)){b=a}else{while(1){if(F[d-1|0]<0){Kb(H[d-12>>2])}b=d-24|0;if(F[d-13|0]<0){Kb(H[b>>2])}d=b;if((b|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[c+539|0]>=0){break h}Kb(H[c+528>>2])}xb=c+544|0;return}d=$()|0;_()|0;Vb(c+16|0);break b}d=$()|0;_()|0;break c}d=$()|0;_()|0;break c}d=$()|0;_()|0;if(F[c+507|0]<0){Kb(H[c+496>>2])}if(F[c+27|0]>=0){break c}Kb(H[c+16>>2])}yc(e)}if(F[c+539|0]<0){Kb(H[c+528>>2])}ea(d|0);X()}ha(0)|0;_()|0;Zb();X()} +function D0(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;e=xb-544|0;xb=e;a:{b:{c:{d:{e:{f:{g:{h:{if(H[c>>2]!=32|H[c+4>>2]!=1){break h}c=H[d>>2];o=H[d+4>>2];if((c|0)==(o|0)){break h}H[e+536>>2]=0;H[e+528>>2]=0;H[e+532>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{while(1){h=H[c+12>>2];f=H[c+4>>2];b=H[c+8>>2];d=H[c>>2];H[197455]=0;g=+(d|0);i=+(b|0);d=g>i;j=d?i:g;fa(1756,e+192|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break qa}H[197455]=0;b=ca(1758,e+192|0,0,405252)|0;k=H[197455];H[197455]=0;if((k|0)==1){break pa}H[e+216>>2]=H[b+8>>2];k=H[b+4>>2];H[e+208>>2]=H[b>>2];H[e+212>>2]=k;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+208|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break oa}H[e+232>>2]=H[e+216>>2];H[e+216>>2]=0;b=H[e+212>>2];H[e+224>>2]=H[e+208>>2];H[e+228>>2]=b;H[e+208>>2]=0;H[e+212>>2]=0;H[197455]=0;l=+(h|0);m=+(f|0);h=l>24<0;b=ca(1759,e+224|0,(f?H[e+176>>2]:e+176|0)|0,(f?H[e+180>>2]:b)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ma}H[e+248>>2]=H[b+8>>2];f=H[b+4>>2];H[e+240>>2]=H[b>>2];H[e+244>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break la}H[e+264>>2]=H[e+248>>2];H[e+248>>2]=0;b=H[e+244>>2];H[e+256>>2]=H[e+240>>2];H[e+260>>2]=b;H[e+240>>2]=0;H[e+244>>2]=0;H[197455]=0;b=da(1699,e+256|0,411076)|0;f=H[197455];H[197455]=0;if((f|0)==1){break ka}H[e+280>>2]=H[b+8>>2];f=H[b+4>>2];H[e+272>>2]=H[b>>2];H[e+276>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;g=d?g:i;fa(1756,e+160|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break ja}H[197455]=0;b=I[e+171|0];d=b<<24>>24<0;b=ca(1759,e+272|0,(d?H[e+160>>2]:e+160|0)|0,(d?H[e+164>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ia}H[e+296>>2]=H[b+8>>2];d=H[b+4>>2];H[e+288>>2]=H[b>>2];H[e+292>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+288|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break ha}H[e+312>>2]=H[e+296>>2];H[e+296>>2]=0;b=H[e+292>>2];H[e+304>>2]=H[e+288>>2];H[e+308>>2]=b;H[e+288>>2]=0;H[e+292>>2]=0;H[197455]=0;fa(1756,e+144|0,+n,-1);b=H[197455];H[197455]=0;if((b|0)==1){break ga}H[197455]=0;b=I[e+155|0];d=b<<24>>24<0;b=ca(1759,e+304|0,(d?H[e+144>>2]:e+144|0)|0,(d?H[e+148>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break fa}H[e+328>>2]=H[b+8>>2];d=H[b+4>>2];H[e+320>>2]=H[b>>2];H[e+324>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+320|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break ea}H[e+344>>2]=H[e+328>>2];H[e+328>>2]=0;b=H[e+324>>2];H[e+336>>2]=H[e+320>>2];H[e+340>>2]=b;H[e+320>>2]=0;H[e+324>>2]=0;H[197455]=0;fa(1756,e+128|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break da}H[197455]=0;b=I[e+139|0];d=b<<24>>24<0;b=ca(1759,e+336|0,(d?H[e+128>>2]:e+128|0)|0,(d?H[e+132>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break ca}H[e+360>>2]=H[b+8>>2];d=H[b+4>>2];H[e+352>>2]=H[b>>2];H[e+356>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+352|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break ba}H[e+376>>2]=H[e+360>>2];H[e+360>>2]=0;b=H[e+356>>2];H[e+368>>2]=H[e+352>>2];H[e+372>>2]=b;H[e+352>>2]=0;H[e+356>>2]=0;H[197455]=0;g=h?m:l;fa(1756,e+112|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break aa}H[197455]=0;b=I[e+123|0];d=b<<24>>24<0;b=ca(1759,e+368|0,(d?H[e+112>>2]:e+112|0)|0,(d?H[e+116>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break $}H[e+392>>2]=H[b+8>>2];d=H[b+4>>2];H[e+384>>2]=H[b>>2];H[e+388>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+384|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break _}H[e+408>>2]=H[e+392>>2];H[e+392>>2]=0;b=H[e+388>>2];H[e+400>>2]=H[e+384>>2];H[e+404>>2]=b;H[e+384>>2]=0;H[e+388>>2]=0;H[197455]=0;fa(1756,e+96|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Z}H[197455]=0;b=I[e+107|0];d=b<<24>>24<0;b=ca(1759,e+400|0,(d?H[e+96>>2]:e+96|0)|0,(d?H[e+100>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Y}H[e+424>>2]=H[b+8>>2];d=H[b+4>>2];H[e+416>>2]=H[b>>2];H[e+420>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+416|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break X}H[e+440>>2]=H[e+424>>2];H[e+424>>2]=0;b=H[e+420>>2];H[e+432>>2]=H[e+416>>2];H[e+436>>2]=b;H[e+416>>2]=0;H[e+420>>2]=0;H[197455]=0;fa(1756,e+80|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break W}H[197455]=0;b=I[e+91|0];d=b<<24>>24<0;b=ca(1759,e+432|0,(d?H[e+80>>2]:e+80|0)|0,(d?H[e+84>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break V}H[e+456>>2]=H[b+8>>2];d=H[b+4>>2];H[e+448>>2]=H[b>>2];H[e+452>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+448|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break U}H[e+472>>2]=H[e+456>>2];H[e+456>>2]=0;b=H[e+452>>2];H[e+464>>2]=H[e+448>>2];H[e+468>>2]=b;H[e+448>>2]=0;H[e+452>>2]=0;H[197455]=0;fa(1756,e- -64|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break T}H[197455]=0;b=I[e+75|0];d=b<<24>>24<0;b=ca(1759,e+464|0,(d?H[e+64>>2]:e- -64|0)|0,(d?H[e+68>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break S}H[e+488>>2]=H[b+8>>2];d=H[b+4>>2];H[e+480>>2]=H[b>>2];H[e+484>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+480|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break R}H[e+504>>2]=H[e+488>>2];H[e+488>>2]=0;b=H[e+484>>2];H[e+496>>2]=H[e+480>>2];H[e+500>>2]=b;H[e+480>>2]=0;H[e+484>>2]=0;H[197455]=0;fa(1756,e+48|0,+n,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Q}H[197455]=0;b=I[e+59|0];d=b<<24>>24<0;b=ca(1759,e+496|0,(d?H[e+48>>2]:e+48|0)|0,(d?H[e+52>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break P}H[e+520>>2]=H[b+8>>2];d=H[b+4>>2];H[e+512>>2]=H[b>>2];H[e+516>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+512|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[e+24>>2]=H[e+520>>2];H[e+520>>2]=0;b=H[e+516>>2];d=H[e+512>>2];H[e+16>>2]=d;H[e+20>>2]=b;H[e+512>>2]=0;H[e+516>>2]=0;H[197455]=0;f=d;b=F[e+27|0];d=(b|0)<0;ca(1759,e+528|0,(d?f:e+16|0)|0,(d?H[e+20>>2]:b&255)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break N}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+523|0]<0){Kb(H[e+512>>2])}if(F[e+59|0]<0){Kb(H[e+48>>2])}if(F[e+507|0]<0){Kb(H[e+496>>2])}if(F[e+491|0]<0){Kb(H[e+480>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+475|0]<0){Kb(H[e+464>>2])}if(F[e+459|0]<0){Kb(H[e+448>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+443|0]<0){Kb(H[e+432>>2])}if(F[e+427|0]<0){Kb(H[e+416>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+411|0]<0){Kb(H[e+400>>2])}if(F[e+395|0]<0){Kb(H[e+384>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}if(F[e+379|0]<0){Kb(H[e+368>>2])}if(F[e+363|0]<0){Kb(H[e+352>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+347|0]<0){Kb(H[e+336>>2])}if(F[e+331|0]<0){Kb(H[e+320>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+315|0]<0){Kb(H[e+304>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}c=c+16|0;if((o|0)!=(c|0)){continue}break}H[197455]=0;b=ca(1762,e+16|0,404840,e+528|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break i}c=$()|0;_()|0;break b}c=$()|0;_()|0;break b}c=$()|0;_()|0;break j}c=$()|0;_()|0;break k}c=$()|0;_()|0;break l}c=$()|0;_()|0;break m}c=$()|0;_()|0;break n}c=$()|0;_()|0;break o}c=$()|0;_()|0;break p}c=$()|0;_()|0;break q}c=$()|0;_()|0;break r}c=$()|0;_()|0;break s}c=$()|0;_()|0;break t}c=$()|0;_()|0;break u}c=$()|0;_()|0;break v}c=$()|0;_()|0;break w}c=$()|0;_()|0;break x}c=$()|0;_()|0;break y}c=$()|0;_()|0;break z}c=$()|0;_()|0;break A}c=$()|0;_()|0;break B}c=$()|0;_()|0;break C}c=$()|0;_()|0;break D}c=$()|0;_()|0;break E}c=$()|0;_()|0;break F}c=$()|0;_()|0;break G}c=$()|0;_()|0;break H}c=$()|0;_()|0;break I}c=$()|0;_()|0;break J}c=$()|0;_()|0;break K}c=$()|0;_()|0;break L}c=$()|0;_()|0;break M}c=$()|0;_()|0;if(F[e+27|0]>=0){break M}Kb(H[e+16>>2])}if(F[e+523|0]>=0){break L}Kb(H[e+512>>2])}if(F[e+59|0]>=0){break K}Kb(H[e+48>>2])}if(F[e+507|0]>=0){break J}Kb(H[e+496>>2])}if(F[e+491|0]>=0){break I}Kb(H[e+480>>2])}if(F[e+75|0]>=0){break H}Kb(H[e+64>>2])}if(F[e+475|0]>=0){break G}Kb(H[e+464>>2])}if(F[e+459|0]>=0){break F}Kb(H[e+448>>2])}if(F[e+91|0]>=0){break E}Kb(H[e+80>>2])}if(F[e+443|0]>=0){break D}Kb(H[e+432>>2])}if(F[e+427|0]>=0){break C}Kb(H[e+416>>2])}if(F[e+107|0]>=0){break B}Kb(H[e+96>>2])}if(F[e+411|0]>=0){break A}Kb(H[e+400>>2])}if(F[e+395|0]>=0){break z}Kb(H[e+384>>2])}if(F[e+123|0]>=0){break y}Kb(H[e+112>>2])}if(F[e+379|0]>=0){break x}Kb(H[e+368>>2])}if(F[e+363|0]>=0){break w}Kb(H[e+352>>2])}if(F[e+139|0]>=0){break v}Kb(H[e+128>>2])}if(F[e+347|0]>=0){break u}Kb(H[e+336>>2])}if(F[e+331|0]>=0){break t}Kb(H[e+320>>2])}if(F[e+155|0]>=0){break s}Kb(H[e+144>>2])}if(F[e+315|0]>=0){break r}Kb(H[e+304>>2])}if(F[e+299|0]>=0){break q}Kb(H[e+288>>2])}if(F[e+171|0]>=0){break p}Kb(H[e+160>>2])}if(F[e+283|0]>=0){break o}Kb(H[e+272>>2])}if(F[e+267|0]>=0){break n}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break m}Kb(H[e+240>>2])}if(F[e+187|0]>=0){break l}Kb(H[e+176>>2])}if(F[e+235|0]>=0){break k}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break j}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break b}Kb(H[e+192>>2]);break b}H[e+40>>2]=b;H[197455]=0;H[e+44>>2]=1;b=H[e+44>>2];H[e+8>>2]=H[e+40>>2];H[e+12>>2]=b;d=da(1763,e+512|0,e+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[e+39|0]<0){Kb(H[e+28>>2])}if(F[e+27|0]<0){Kb(H[e+16>>2])}H[197455]=0;a=a+8|0;qa(1765,a|0,d|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,d|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[e+16>>2]=b;H[e+20>>2]=4;H[e+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[e+507|0]=0;H[197455]=0;H[e+496>>2]=0;ka(1767,a|0,e+16|0,d|0,e+496|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[e+507|0]<0){Kb(H[e+496>>2])}if(F[e+27|0]<0){Kb(H[e+16>>2])}a=H[d>>2];if(a){c=H[d+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((b|0)!=(a|0)){continue}break}b=H[d>>2]}H[d+4>>2]=a;Kb(b)}if(F[e+539|0]>=0){break h}Kb(H[e+528>>2])}xb=e+544|0;return}c=$()|0;_()|0;Vb(e+16|0);break b}c=$()|0;_()|0;break c}c=$()|0;_()|0;break c}c=$()|0;_()|0;if(F[e+507|0]<0){Kb(H[e+496>>2])}if(F[e+27|0]>=0){break c}Kb(H[e+16>>2])}yc(d)}if(F[e+539|0]<0){Kb(H[e+528>>2])}ea(c|0);X()}ha(0)|0;_()|0;Zb();X()}function p0(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,u=0,v=0,w=0;d=xb-528|0;xb=d;H[d+520>>2]=0;H[d+512>>2]=0;H[d+516>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{b=H[c>>2];f=H[c+4>>2];if((b|0)!=(f|0)){while(1){k=M[b+16>>3];g=M[b>>3];l=M[b+24>>3];h=M[b+8>>3];c=H[a+80>>2];e=H[H[c>>2]+68>>2];H[197455]=0;c=da(e|0,c|0,2)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ja}i=M[c+32>>3];j=M[c>>3];m=M[c+16>>3];n=M[c+40>>3];o=M[c+8>>3];p=M[c+24>>3];c=H[a+80>>2];e=H[H[c>>2]+68>>2];H[197455]=0;c=da(e|0,c|0,2)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ja}q=M[c+32>>3];r=M[c>>3];s=M[c+16>>3];t=M[c+40>>3];u=M[c+8>>3];v=M[c+24>>3];H[197455]=0;i=i+(g*j+h*m);fa(1756,d+192|0,+i,-1);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[197455]=0;c=ca(1758,d+192|0,0,405252)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ha}H[d+216>>2]=H[c+8>>2];e=H[c+4>>2];H[d+208>>2]=H[c>>2];H[d+212>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+208|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break ga}H[d+232>>2]=H[d+216>>2];H[d+216>>2]=0;c=H[d+212>>2];H[d+224>>2]=H[d+208>>2];H[d+228>>2]=c;H[d+208>>2]=0;H[d+212>>2]=0;H[197455]=0;j=n+(g*o+h*p);fa(1756,d+176|0,+j,-1);c=H[197455];H[197455]=0;if((c|0)==1){break fa}H[197455]=0;c=I[d+187|0];e=c<<24>>24<0;c=ca(1759,d+224|0,(e?H[d+176>>2]:d+176|0)|0,(e?H[d+180>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ea}H[d+248>>2]=H[c+8>>2];e=H[c+4>>2];H[d+240>>2]=H[c>>2];H[d+244>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;c=da(1699,d+240|0,408724)|0;e=H[197455];H[197455]=0;if((e|0)==1){break da}H[d+264>>2]=H[c+8>>2];e=H[c+4>>2];H[d+256>>2]=H[c>>2];H[d+260>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;g=g+k;h=h+l;k=q+(g*r+h*s);fa(1756,d+160|0,+k,-1);c=H[197455];H[197455]=0;if((c|0)==1){break ca}H[197455]=0;c=I[d+171|0];e=c<<24>>24<0;c=ca(1759,d+256|0,(e?H[d+160>>2]:d+160|0)|0,(e?H[d+164>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ba}H[d+280>>2]=H[c+8>>2];e=H[c+4>>2];H[d+272>>2]=H[c>>2];H[d+276>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+272|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break aa}H[d+296>>2]=H[d+280>>2];H[d+280>>2]=0;c=H[d+276>>2];H[d+288>>2]=H[d+272>>2];H[d+292>>2]=c;H[d+272>>2]=0;H[d+276>>2]=0;H[197455]=0;fa(1756,d+144|0,+j,-1);c=H[197455];H[197455]=0;if((c|0)==1){break $}H[197455]=0;c=I[d+155|0];e=c<<24>>24<0;c=ca(1759,d+288|0,(e?H[d+144>>2]:d+144|0)|0,(e?H[d+148>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break _}H[d+312>>2]=H[c+8>>2];e=H[c+4>>2];H[d+304>>2]=H[c>>2];H[d+308>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+304|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break Z}H[d+328>>2]=H[d+312>>2];H[d+312>>2]=0;c=H[d+308>>2];H[d+320>>2]=H[d+304>>2];H[d+324>>2]=c;H[d+304>>2]=0;H[d+308>>2]=0;H[197455]=0;fa(1756,d+128|0,+k,-1);c=H[197455];H[197455]=0;if((c|0)==1){break Y}H[197455]=0;c=I[d+139|0];e=c<<24>>24<0;c=ca(1759,d+320|0,(e?H[d+128>>2]:d+128|0)|0,(e?H[d+132>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break X}H[d+344>>2]=H[c+8>>2];e=H[c+4>>2];H[d+336>>2]=H[c>>2];H[d+340>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+336|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break W}H[d+360>>2]=H[d+344>>2];H[d+344>>2]=0;c=H[d+340>>2];H[d+352>>2]=H[d+336>>2];H[d+356>>2]=c;H[d+336>>2]=0;H[d+340>>2]=0;H[197455]=0;g=t+(g*u+h*v);fa(1756,d+112|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break V}H[197455]=0;c=I[d+123|0];e=c<<24>>24<0;c=ca(1759,d+352|0,(e?H[d+112>>2]:d+112|0)|0,(e?H[d+116>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break U}H[d+376>>2]=H[c+8>>2];e=H[c+4>>2];H[d+368>>2]=H[c>>2];H[d+372>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+368|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break T}H[d+392>>2]=H[d+376>>2];H[d+376>>2]=0;c=H[d+372>>2];H[d+384>>2]=H[d+368>>2];H[d+388>>2]=c;H[d+368>>2]=0;H[d+372>>2]=0;H[197455]=0;fa(1756,d+96|0,+i,-1);c=H[197455];H[197455]=0;if((c|0)==1){break S}H[197455]=0;c=I[d+107|0];e=c<<24>>24<0;c=ca(1759,d+384|0,(e?H[d+96>>2]:d+96|0)|0,(e?H[d+100>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break R}H[d+408>>2]=H[c+8>>2];e=H[c+4>>2];H[d+400>>2]=H[c>>2];H[d+404>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+400|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break Q}H[d+424>>2]=H[d+408>>2];H[d+408>>2]=0;c=H[d+404>>2];H[d+416>>2]=H[d+400>>2];H[d+420>>2]=c;H[d+400>>2]=0;H[d+404>>2]=0;H[197455]=0;fa(1756,d+80|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break P}H[197455]=0;c=I[d+91|0];e=c<<24>>24<0;c=ca(1759,d+416|0,(e?H[d+80>>2]:d+80|0)|0,(e?H[d+84>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break O}H[d+440>>2]=H[c+8>>2];e=H[c+4>>2];H[d+432>>2]=H[c>>2];H[d+436>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+432|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break N}H[d+456>>2]=H[d+440>>2];H[d+440>>2]=0;c=H[d+436>>2];H[d+448>>2]=H[d+432>>2];H[d+452>>2]=c;H[d+432>>2]=0;H[d+436>>2]=0;H[197455]=0;fa(1756,d- -64|0,+i,-1);c=H[197455];H[197455]=0;if((c|0)==1){break M}H[197455]=0;c=I[d+75|0];e=c<<24>>24<0;c=ca(1759,d+448|0,(e?H[d+64>>2]:d- -64|0)|0,(e?H[d+68>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break L}H[d+472>>2]=H[c+8>>2];e=H[c+4>>2];H[d+464>>2]=H[c>>2];H[d+468>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+464|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break K}H[d+488>>2]=H[d+472>>2];H[d+472>>2]=0;c=H[d+468>>2];H[d+480>>2]=H[d+464>>2];H[d+484>>2]=c;H[d+464>>2]=0;H[d+468>>2]=0;H[197455]=0;fa(1756,d+48|0,+j,-1);c=H[197455];H[197455]=0;if((c|0)==1){break J}H[197455]=0;c=I[d+59|0];e=c<<24>>24<0;c=ca(1759,d+480|0,(e?H[d+48>>2]:d+48|0)|0,(e?H[d+52>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break I}H[d+504>>2]=H[c+8>>2];e=H[c+4>>2];H[d+496>>2]=H[c>>2];H[d+500>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+496|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break H}H[d+24>>2]=H[d+504>>2];H[d+504>>2]=0;c=H[d+500>>2];e=H[d+496>>2];H[d+16>>2]=e;H[d+20>>2]=c;H[d+496>>2]=0;H[d+500>>2]=0;H[197455]=0;w=e;c=F[d+27|0];e=(c|0)<0;ca(1759,d+512|0,(e?w:d+16|0)|0,(e?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break G}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+507|0]<0){Kb(H[d+496>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+491|0]<0){Kb(H[d+480>>2])}if(F[d+475|0]<0){Kb(H[d+464>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+459|0]<0){Kb(H[d+448>>2])}if(F[d+443|0]<0){Kb(H[d+432>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+427|0]<0){Kb(H[d+416>>2])}if(F[d+411|0]<0){Kb(H[d+400>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+395|0]<0){Kb(H[d+384>>2])}if(F[d+379|0]<0){Kb(H[d+368>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+363|0]<0){Kb(H[d+352>>2])}if(F[d+347|0]<0){Kb(H[d+336>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}if(F[d+331|0]<0){Kb(H[d+320>>2])}if(F[d+315|0]<0){Kb(H[d+304>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+187|0]<0){Kb(H[d+176>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+219|0]<0){Kb(H[d+208>>2])}if(F[d+203|0]<0){Kb(H[d+192>>2])}b=b+32|0;if((f|0)!=(b|0)){continue}break}}H[197455]=0;b=ca(1762,d+16|0,404840,d+512|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break c}c=$()|0;_()|0;break b}c=$()|0;_()|0;break b}c=$()|0;_()|0;break b}c=$()|0;_()|0;break d}c=$()|0;_()|0;break e}c=$()|0;_()|0;break f}c=$()|0;_()|0;break g}c=$()|0;_()|0;break h}c=$()|0;_()|0;break i}c=$()|0;_()|0;break j}c=$()|0;_()|0;break k}c=$()|0;_()|0;break l}c=$()|0;_()|0;break m}c=$()|0;_()|0;break n}c=$()|0;_()|0;break o}c=$()|0;_()|0;break p}c=$()|0;_()|0;break q}c=$()|0;_()|0;break r}c=$()|0;_()|0;break s}c=$()|0;_()|0;break t}c=$()|0;_()|0;break u}c=$()|0;_()|0;break v}c=$()|0;_()|0;break w}c=$()|0;_()|0;break x}c=$()|0;_()|0;break y}c=$()|0;_()|0;break z}c=$()|0;_()|0;break A}c=$()|0;_()|0;break B}c=$()|0;_()|0;break C}c=$()|0;_()|0;break D}c=$()|0;_()|0;break E}c=$()|0;_()|0;break F}c=$()|0;_()|0;if(F[d+27|0]>=0){break F}Kb(H[d+16>>2])}if(F[d+507|0]>=0){break E}Kb(H[d+496>>2])}if(F[d+59|0]>=0){break D}Kb(H[d+48>>2])}if(F[d+491|0]>=0){break C}Kb(H[d+480>>2])}if(F[d+475|0]>=0){break B}Kb(H[d+464>>2])}if(F[d+75|0]>=0){break A}Kb(H[d+64>>2])}if(F[d+459|0]>=0){break z}Kb(H[d+448>>2])}if(F[d+443|0]>=0){break y}Kb(H[d+432>>2])}if(F[d+91|0]>=0){break x}Kb(H[d+80>>2])}if(F[d+427|0]>=0){break w}Kb(H[d+416>>2])}if(F[d+411|0]>=0){break v}Kb(H[d+400>>2])}if(F[d+107|0]>=0){break u}Kb(H[d+96>>2])}if(F[d+395|0]>=0){break t}Kb(H[d+384>>2])}if(F[d+379|0]>=0){break s}Kb(H[d+368>>2])}if(F[d+123|0]>=0){break r}Kb(H[d+112>>2])}if(F[d+363|0]>=0){break q}Kb(H[d+352>>2])}if(F[d+347|0]>=0){break p}Kb(H[d+336>>2])}if(F[d+139|0]>=0){break o}Kb(H[d+128>>2])}if(F[d+331|0]>=0){break n}Kb(H[d+320>>2])}if(F[d+315|0]>=0){break m}Kb(H[d+304>>2])}if(F[d+155|0]>=0){break l}Kb(H[d+144>>2])}if(F[d+299|0]>=0){break k}Kb(H[d+288>>2])}if(F[d+283|0]>=0){break j}Kb(H[d+272>>2])}if(F[d+171|0]>=0){break i}Kb(H[d+160>>2])}if(F[d+267|0]>=0){break h}Kb(H[d+256>>2])}if(F[d+251|0]>=0){break g}Kb(H[d+240>>2])}if(F[d+187|0]>=0){break f}Kb(H[d+176>>2])}if(F[d+235|0]>=0){break e}Kb(H[d+224>>2])}if(F[d+219|0]>=0){break d}Kb(H[d+208>>2])}if(F[d+203|0]>=0){break b}Kb(H[d+192>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;f=da(1763,d+496|0,d+8|0)|0;b=H[197455];H[197455]=0;ka:{la:{ma:{na:{if((b|0)!=1){if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;b=a+8|0;qa(1765,b|0,f|0,0,0);a=H[197455];H[197455]=0;if((a|0)==1){break na}H[197455]=0;ia(1764,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break na}H[197455]=0;a=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break ma}H[d+16>>2]=a;H[d+20>>2]=4;H[d+24>>2]=-2147483640;H[197455]=0;Mb(a,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+16>>2]=0;F[d+491|0]=0;H[197455]=0;H[d+480>>2]=0;ka(1767,b|0,d+16|0,f|0,d+480|0);a=H[197455];H[197455]=0;if((a|0)==1){break la}if(F[d+491|0]<0){Kb(H[d+480>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[f>>2];if(a){c=H[f+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((a|0)!=(c|0)){continue}break}b=H[f>>2]}H[f+4>>2]=a;Kb(b)}if(F[d+523|0]<0){Kb(H[d+512>>2])}xb=d+528|0;return}c=$()|0;_()|0;Vb(d+16|0);break b}c=$()|0;_()|0;break ka}c=$()|0;_()|0;break ka}c=$()|0;_()|0;if(F[d+491|0]<0){Kb(H[d+480>>2])}if(F[d+27|0]>=0){break ka}Kb(H[d+16>>2])}yc(f)}if(F[d+523|0]<0){Kb(H[d+512>>2])}ea(c|0);X()}ha(0)|0;_()|0;Zb();X()}function FU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,L=0,M=0,O=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;f=xb-6768|0;xb=f;c=H[H[a+4>>2]>>2];g=f- -64|0;Nb(g|4,0,2756);H[f+16>>2]=0;H[f+20>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;H[f+32>>2]=0;H[f+36>>2]=0;H[f+40>>2]=0;H[f+44>>2]=0;H[f+48>>2]=0;H[f+52>>2]=0;H[f+56>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f>>2]=0;H[f+4>>2]=0;H[f+64>>2]=c;H[f+8>>2]=g;h=H[b+4>>2];n=H[h+84>>2];z=H[n+156>>2];C=H[z>>2];j=H[h+88>>2];i=H[j+40>>2];g=H[i+12>>2];a:{b:{if(!g){c=e>>>16&15;break b}b=H[i+4>>2];c=e>>>16&15;if((b|0)==(c|0)){break a}}H[i+4>>2]=c;H[i+32>>2]=H[j+36>>2];b=H[j+32>>2];H[i+24>>2]=H[j+28>>2];H[i+28>>2]=b;b=H[j+24>>2];H[i+16>>2]=H[j+20>>2];H[i+20>>2]=b;b=H[j+16>>2];H[i+8>>2]=H[j+12>>2];H[i+12>>2]=b;g=H[i+12>>2];b=c}H[f+6724>>2]=0;H[f+6716>>2]=g;H[f+6712>>2]=h;c=H[i+16>>2];H[f+6736>>2]=0;H[f+6732>>2]=b;H[f+6728>>2]=0;H[f+6720>>2]=c;H[f>>2]=h;b=H[h+116>>2];H[f+4>>2]=b;c:{if(!b){g=fm(h,f|4,a);if(g){break c}b=H[f+4>>2];H[h+116>>2]=b;H[h+120>>2]=1}H[f+6744>>2]=0;g=6;if(K[b+4>>2]<=d>>>0){break c}r=d<<1;g=J[r+H[b+8>>2]>>1]&16383;c=((g<<2)+b|0)+16|0;o=H[c>>2];d:{if(o){break d}e:{f:{while(1){i=H[H[b>>2]+100>>2];w=H[(g<<2)+16608>>2];j=H[(H[w+4>>2]<<2)+16320>>2];o=pc(i,H[j+4>>2],f+6744|0);g=H[f+6744>>2];if(g){break c}H[o+36>>2]=b;H[o>>2]=w;g=H[j+8>>2];if(!g){break f}g=zb[g|0](o,H[b>>2])|0;H[f+6744>>2]=g;if(!g){break f}c=H[j+16>>2];if(c){zb[c|0](o)}c=i;if(o){zb[H[c+8>>2]](c,o)}g=H[f+6744>>2];if((g|0)!=-1){break e}g=J[r+H[b+8>>2]>>1]&16383;c=((g<<2)+b|0)+16|0;if(!H[c>>2]){continue}break}g=-1;break c}H[c>>2]=o;break d}if(g){break c}o=0}b=H[H[o>>2]+4>>2];H[f+12>>2]=o;R=H[(b<<2)+16320>>2];b=H[R+12>>2];g:{if(b){zb[b|0](o,f+6712|0);break g}b=H[f+6716>>2];H[o+4>>2]=H[f+6712>>2];H[o+8>>2]=b;H[o+28>>2]=H[f+6736>>2];b=f+6728|0;c=H[b+4>>2];H[o+20>>2]=H[b>>2];H[o+24>>2]=c;b=f+6720|0;c=H[b+4>>2];H[o+12>>2]=H[b>>2];H[o+16>>2]=c}b=H[R+24>>2];if(b){g=zb[b|0](f- -64|0,o)|0;if(g){break c}}g=Ag(h,d,e&-10246|10241);if(g){break c}h:{if(H[f+6732>>2]!=1){break h}b=F[H[h+128>>2]+56|0];if(I[a+21|0]|(b|0)>=0?b:0){break h}j=H[h+84>>2];b=H[H[h+88>>2]+40>>2];t=H[f+4>>2];H[f+6704>>2]=0;H[f+6764>>2]=0;c=J[t+364>>1];e=J[b+8>>1];g=J[h+68>>1]<<16;i=dc(65536e3,g);H[f+6752>>2]=H[5331];a=H[5330];H[f+6744>>2]=H[5329];H[f+6748>>2]=a;if(!J[h+68>>1]){break h}a=H[H[(H[H[o>>2]+4>>2]<<2)+16320>>2]+20>>2];if(!a){break h}zb[a|0](o,f+6764|0,f+6704|0);a=H[f+6704>>2];i:{j:{k:{if(((a|0)==H[t+368>>2]|(a|0)<=0)&(c|0)==(e|0)){break k}a=dc(Rb(Dw(H[H[f+4>>2]+388>>2],J[h+68>>1],J[H[h+88>>2]+12>>1],a)<<16,H[b+12>>2]),i);H[t+368>>2]=H[f+6704>>2];r=J[b+8>>1];H[t+376>>2]=a+32768>>16;G[t+364>>1]=r;if((c|0)==(e|0)){break k}a=H[f+6764>>2];break j}a=H[f+6764>>2];if((a|0)<=0|H[t+372>>2]==(a|0)){break i}}a=Dw(H[H[f+4>>2]+388>>2],J[h+68>>1],J[H[h+88>>2]+12>>1],a)<<16;c=dc(Rb(a,H[b+16>>2]),i);H[t+372>>2]=H[f+6764>>2];b=J[b+8>>1];H[t+380>>2]=c+32768>>16;G[t+364>>1]=b;da=t,ea=dc((g-a|0)-524288|0,g),H[da+384>>2]=ea}S=H[t+376>>2];T=H[t+380>>2];W=j+108|0;a=W;l:{if(!a){break l}D=(T|0)/2|0;E=(S|0)/2|0;m:{if(T+1>>>0<3&S+1>>>0<=2){break m}L=oB(a);if((L|0)==2){break l}X=G[a>>1];if((X|0)<=0){break m}U=H[a+4>>2];b=D>>31;M=(b^D)-b|0;$=M>>>16|0;Y=M&65535;b=E>>31;O=(b^E)-b|0;aa=O>>>16|0;Z=O&65535;ba=H[a+12>>2];while(1){v=G[(V<<1)+ba>>1];n:{if((v|0)==(x|0)){break n}y=-1;g=x;r=0;j=0;w=0;A=0;i=0;h=0;b=v;if((b|0)==-1){break n}while(1){c=A;e=w;a=r;o:{if((g|0)!=(y|0)){e=(g<<3)+U|0;c=H[e+4>>2];l=(b<<3)+U|0;k=H[l+4>>2];p=c-k|0;a=p>>31;a=(a^p)-a|0;e=H[e>>2];l=H[l>>2];p:{if((e|0)==(l|0)){if((c|0)==(k|0)){break o}e=0;c=(p|0)<0?-65536:65536;break p}e=e-l|0;l=e>>31;l=(e^l)-l|0;if((c|0)==(k|0)){c=0;e=(e|0)<0?-65536:65536;a=l;break p}c=a>>>0>>0?l+(a>>>1|0)|0:(l>>>1|0)+a|0;k=Q(c);k=(-1431655766>>>k>>>0>c>>>0?-15:-16)+k|0;u=(k|0)<=0;q:{if(!u){l=l<>>0>>0?l+(a>>>1|0)|0:(l>>>1|0)+a|0;break q}m=0-k|0;c=c>>>m|0;a=a>>>m|0;l=l>>>m|0}c=65536-c|0;while(1){m=(N(c,l)>>16)+l|0;s=(N(a,c)>>16)+a|0;q=N((N(m,m)+N(s,s)|0)/-512|0,c+65536>>8);c=((q|0)/65536|0)+c|0;if((q|0)>65535){continue}break}c=(p|0)<0?0-s|0:s;e=(e|0)<0?0-m|0:m;a=((N(l,m)+N(a,s)|0)/65536|0)+65536|0;if(!u){a=a+(1<>>k|0;break p}a=a<<0-k}if(!a){break o}}r:{if(!j){break r}if((y|0)<0){w=i;y=b;A=h;r=j}l=0;k=e>>31;m=(k^e)-k|0;k=i>>31;s=(k^i)-k|0;s:{if((m>>>8|0)+s>>>0<=8190){q=N(m,s)+32768>>>16|0;break s}k=s&65535;q=N(k,m>>>16|0)+N(m,s>>>16|0)+(N(k,m&65535)+32768>>>16)|0}k=q;p=0-k|0;k=i>>31|1;B=(((e|0)<0?0-k|0:k)|0)<0?p:q;k=c>>31;p=(k^c)-k|0;k=h>>31;u=(k^h)-k|0;t:{if((p>>>8|0)+u>>>0<=8190){q=N(p,u)+32768>>>16|0;break t}k=u&65535;q=N(k,p>>>16|0)+N(p,u>>>16|0)+(N(k,p&65535)+32768>>>16)|0}k=q;P=0-k|0;k=h>>31|1;B=B+((((c|0)<0?0-k|0:k)|0)<0?P:q)|0;q=0;u:{if((B|0)<-61439){break u}q=c+h|0;k=B+65536|0;if(m+(u>>>8|0)>>>0<=8190){m=N(m,u)+32768>>>16|0}else{l=m&65535;m=N(l,u>>>16|0)+N(u,m>>>16|0)+(N(l,u&65535)+32768>>>16)|0}l=m;u=0-l|0;l=e>>31|1;m=(((h|0)<0?0-l|0:l)|0)<0?u:m;if(p+(s>>>8|0)>>>0<=8190){l=N(p,s)+32768>>>16|0}else{h=p&65535;l=N(h,s>>>16|0)+N(s,p>>>16|0)+(N(h,s&65535)+32768>>>16)|0}h=l;p=0-h|0;h=c>>31|1;h=m+((((i|0)<0?0-h|0:h)|0)<0?l:p)|0;s=L?h:0-h|0;m=(a|0)>(j|0)?j:a;p=L?q:0-q|0;l=h;h=h>>31;h=(l^h)-h|0;u=h>>>8|0;v:{if(u+O>>>0<=8190){j=N(h,O)+32768>>>16|0;break v}j=N(h>>>16|0,Z)+N(h,aa)+(N(h&65535,Z)+32768>>>16)|0}q=(s|0)<0;ca=q^(S|0)<-1?0-j|0:j;j=m>>31;j=(j^m)-j|0;P=j+(k>>>8|0)>>>0>8190;w:{if(!P){l=N(j,k)+32768>>>16|0;break w}l=j&65535;l=N(l,k>>>16|0)+N(k,j>>>16|0)+(N(l,B&65535)+32768>>>16)|0}_=(m|0)<0;x:{if((ca|0)<=((_?0-l|0:l)|0)){l=ic(p,E,k);break x}l=ic(p,m,s)}i=e+i|0;p=L?0-i|0:i;i=u+M>>>0<=8190?N(h,M)+32768>>>16|0:N(h>>>16|0,Y)+N(h,$)+(N(h&65535,Y)+32768>>>16)|0;h=q^(T|0)<-1?0-i|0:i;if(P){i=j&65535;i=N(i,k>>>16|0)+N(k,j>>>16|0)+(N(i,B&65535)+32768>>>16)|0}else{i=N(j,k)+32768>>>16|0}if((h|0)<=((_?0-i|0:i)|0)){q=ic(p,D,k);break u}q=ic(p,m,s)}if((b|0)==(g|0)){break r}h=q+D|0;j=l+E|0;while(1){i=(b<<3)+U|0;H[i>>2]=j+H[i>>2];H[i+4>>2]=h+H[i+4>>2];b=(b|0)<(v|0)?b+1|0:x;if((g|0)!=(b|0)){continue}break}}h=c;i=e;j=a;b=g}g=(g|0)<(v|0)?g+1|0:x;if((g|0)==(b|0)){break n}if((b|0)!=(y|0)){continue}break}}x=v+1|0;V=V+1|0;if((X|0)!=(V|0)){continue}break}}}H[f+6756>>2]=H[t+384>>2];Wg(W,f+6744|0)}a=I[z+8|0];F[f+16|0]=a;y:{if(!a){break y}a=z;b=H[a+24>>2];e=H[a+20>>2];H[f+28>>2]=e;H[f+32>>2]=b;c=H[a+16>>2];g=H[a+12>>2];H[f+20>>2]=g;H[f+24>>2]=c;i=H[a+28>>2];a=H[a+32>>2];h=f+6752|0;H[h>>2]=e;H[h+4>>2]=b;H[f+6744>>2]=g;H[f+6748>>2]=c;H[f+36>>2]=i;H[f+40>>2]=a;e=6;i=f+6744|0;z:{if(!i){break z}b=H[i>>2];a=b>>31;A=H[i+12>>2];c=A>>31;r=(a^b)-a|0;h=(c^A)-c|0;A:{if(r+(h>>>8|0)>>>0<=8190){a=N(h,r)+32768>>>16|0;break A}a=r&65535;a=N(a,h>>>16|0)+N(h,r>>>16|0)+(N(a,h&65535)+32768>>>16)|0}y=b>>31|1;k=0-y|0;g=(((A|0)<0?k:y)|0)<0?0-a|0:a;b=H[i+4>>2];a=b>>31;l=H[i+8>>2];c=l>>31;j=(c^l)-c|0;c=(a^b)-a|0;B:{if((j>>>8|0)+c>>>0<=8190){a=N(c,j)+32768>>>16|0;break B}a=c&65535;a=N(a,j>>>16|0)+N(j,c>>>16|0)+(N(a,j&65535)+32768>>>16)|0}z=b>>31|1;m=0-z|0;a=(((l|0)<0?m:z)|0)<0?0-a|0:a;if((g|0)==(a|0)){break z}w=g-a|0;a=w>>31;a=(a^w)-a|0;x=a>>>17^65535;C:{if(x>>>0>=c>>>0){b=((c<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break C}b=2147483647;e=a>>>1|0;v=e+(c<<16)|0;c=(c>>>16|0)+(e>>>0>v>>>0)|0;if(c>>>0>=a>>>0){break C}t=Q(c);e=32-t|0;c=v>>>e|c<>>0)/(a>>>0)|0;g=c-N(a,b)|0;c=v<>>31;g=v-(a>>>0>v>>>0?0:a)|0;b=b<<1|a>>>0<=v>>>0;c=c<<1;e=e-1|0;if(e){continue}break}}H[i+4>>2]=(((w|0)<0?m:z)|0)<0?b:0-b|0;D:{if(j>>>0<=x>>>0){b=((j<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break D}b=2147483647;e=a>>>1|0;c=e+(j<<16)|0;g=(j>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0){break D}j=Q(g);e=32-j|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-N(a,b)|0;c=c<>>31;g=j-(a>>>0>j>>>0?0:a)|0;b=b<<1|a>>>0<=j>>>0;c=c<<1;e=e-1|0;if(e){continue}break}}c=b;e=0-b|0;b=l>>31|1;H[i+8>>2]=(((w|0)<0?0-b|0:b)|0)<0?c:e;E:{if(h>>>0<=x>>>0){b=((h<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break E}b=2147483647;e=a>>>1|0;c=e+(h<<16)|0;g=(h>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0){break E}h=Q(g);e=32-h|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-N(a,b)|0;c=c<>>31;g=h-(a>>>0>h>>>0?0:a)|0;b=b<<1|a>>>0<=h>>>0;c=c<<1;e=e-1|0;if(e){continue}break}}e=0-b|0;c=b;b=A>>31|1;H[i>>2]=(((w|0)<0?0-b|0:b)|0)<0?e:c;F:{if(r>>>0<=x>>>0){b=((r<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break F}b=2147483647;e=a>>>1|0;c=e+(r<<16)|0;g=(r>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0){break F}h=Q(g);e=32-h|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-N(a,b)|0;c=c<>>31;g=h-(a>>>0>h>>>0?0:a)|0;b=b<<1|a>>>0<=h>>>0;c=c<<1;e=e-1|0;if(e){continue}break}}e=0;H[i+12>>2]=(((w|0)<0?k:y)|0)<0?0-b|0:b}if(e){break y}un(f+36|0,f+6744|0)}c=7;G:{if(H[n+72>>2]!=1869968492){break G}if(I[f+16|0]){je(n+108|0,H[f+36>>2],H[f+40>>2])}H[f+48>>2]=H[f+80>>2];H[f+44>>2]=H[f+72>>2];a=Rb(H[n+40>>2],H[f+68>>2]);H[f+56>>2]=H[f+80>>2];H[f+52>>2]=a+H[f+72>>2];c=0;if(!J[n+110>>1]){break G}a=H[R+28>>2];if(a){g=zb[a|0](d,f- -64|0,C+20|0,o)|0;if(g){break c}}H:{if(H[f+6732>>2]!=1){a=H[f+120>>2];if(!(I[f+2804|0]&4|(a|0)<2)){b=N(a,44);a=H[f+128>>2];b=b+a|0;e=H[b-36>>2];i=H[b-40>>2];h=H[a+8>>2];g=H[a+4>>2];a=h-g|0;j=(g|0)<24?a-8|0:a;b=j+32&-64;H[f+44>>2]=b;i=H[f+52>>2]-i|0;a=i+e|0;r=(i|0)<24?a+8|0:a;a=r+32&-64;H[f+52>>2]=a;if(!((b|0)<(h|0)|(g|0)<=0)){b=b+-64|0;H[f+44>>2]=b}if(!((i|0)<=0|(a|0)>(e|0))){a=a- -64|0;H[f+52>>2]=a}H[n+144>>2]=b-j;a=a-r|0;break H}a=H[f+52>>2];b=(a+H[f+2820>>2]|0)+32&-64;H[f+52>>2]=b;e=H[f+44>>2];g=(e+H[f+2816>>2]|0)+32&-64;H[f+44>>2]=g;H[n+144>>2]=g-e;a=b-a|0;break H}a=H[f+52>>2];b=a+32&-64;H[f+52>>2]=b;e=H[f+44>>2];g=e+32&-64;H[f+44>>2]=g;H[n+144>>2]=g-e;a=b-a|0}H[n+148>>2]=a}a=H[n+36>>2];b=H[n+48>>2];da=f,ea=Rb(H[n+44>>2]-H[n+32>>2]|0,H[o+8>>2]),H[da+6704>>2]=ea;da=f,ea=Rb(b-a|0,H[o+12>>2]),H[da+6708>>2]=ea;if(I[f+16|0]){a=f+20|0;Wg(C+20|0,a);un(f+6704|0,a)}a=H[f+44>>2];if(a){je(C+20|0,0-a|0,0)}Nh(C+20|0,f+6744|0);a=H[f+6744>>2]&-64;H[f+6744>>2]=a;b=H[f+6756>>2]+63&-64;H[f+6756>>2]=b;e=H[f+6752>>2]+63&-64;H[f+6752>>2]=e;g=H[f+6748>>2]&-64;H[f+6748>>2]=g;H[n+36>>2]=b;H[n+32>>2]=a;H[n+28>>2]=b-g;H[n+24>>2]=e-a;H[n+44>>2]=a+H[f+6704>>2]&-64;H[n+48>>2]=b+H[f+6708>>2]&-64;I:{J:{if(H[f+6732>>2]==1){break J}if(!(I[H[n+4>>2]+8|0]&4)){a=H[f+4>>2];if(!I[o+32|0]|(K[a+4>>2]<=d>>>0|G[H[a+8>>2]+(d<<1)>>1]>=0)){break J}}a=Rb(H[n+40>>2],H[o+8>>2]);H[n+144>>2]=0;H[n+148>>2]=0;H[n+40>>2]=a;break I}if(!H[n+40>>2]){break I}H[n+40>>2]=H[f+52>>2]-H[f+44>>2]}a=Rb(H[n+52>>2],H[o+12>>2]);H[n+72>>2]=1869968492;H[n+52>>2]=a+32&-64;H[n+40>>2]=H[n+40>>2]+32&-64;g=c}H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;dq(f- -64|0);xb=f+6768|0;return g|0}function T0(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-320|0;xb=f;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!e|!c){break j}g=H[d>>2];if(!g){break j}H[f+312>>2]=0;H[f+304>>2]=0;H[f+308>>2]=0;b=0;k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{while(1){z:{A:{switch(I[b+e|0]-2|0){case 0:if((h|0)!=2){H[197455]=0;da(1699,f+304|0,408724)|0;h=H[197455];H[197455]=0;if((h|0)==1){break b}}h=(b<<3)+c|0;g=H[h>>2];H[197455]=0;fa(1756,f+256|0,+(g|0),-1);g=H[197455];H[197455]=0;B:{C:{D:{E:{F:{G:{H:{I:{J:{if((g|0)!=1){H[197455]=0;ba(1650,f+256|0,44);g=H[197455];H[197455]=0;if((g|0)==1){break J}H[f+280>>2]=H[f+264>>2];H[f+264>>2]=0;g=H[f+260>>2];H[f+272>>2]=H[f+256>>2];H[f+276>>2]=g;H[f+256>>2]=0;H[f+260>>2]=0;h=H[h+4>>2];H[197455]=0;fa(1756,f+240|0,+(h|0),-1);h=H[197455];H[197455]=0;if((h|0)==1){break I}H[197455]=0;h=I[f+251|0];g=h<<24>>24<0;h=ca(1759,f+272|0,(g?H[f+240>>2]:f+240|0)|0,(g?H[f+244>>2]:h)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break H}H[f+296>>2]=H[h+8>>2];g=H[h+4>>2];H[f+288>>2]=H[h>>2];H[f+292>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);h=H[197455];H[197455]=0;if((h|0)==1){break G}H[f+24>>2]=H[f+296>>2];H[f+296>>2]=0;h=H[f+292>>2];g=H[f+288>>2];H[f+16>>2]=g;H[f+20>>2]=h;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;j=g;h=F[f+27|0];g=(h|0)<0;ca(1759,f+304|0,(g?j:f+16|0)|0,(g?H[f+20>>2]:h&255)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break F}if(F[f+27|0]<0){Kb(H[f+16>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}h=2;break z}b=$()|0;_()|0;break a}b=$()|0;_()|0;break B}b=$()|0;_()|0;break C}b=$()|0;_()|0;break D}b=$()|0;_()|0;break E}b=$()|0;_()|0;if(F[f+27|0]>=0){break E}Kb(H[f+16>>2])}if(F[f+299|0]>=0){break D}Kb(H[f+288>>2])}if(F[f+251|0]>=0){break C}Kb(H[f+240>>2])}if(F[f+283|0]>=0){break B}Kb(H[f+272>>2])}if(F[f+267|0]>=0){break a}Kb(H[f+256>>2]);break a;case 2:j=b+2|0;if(j>>>0>=g>>>0){break z}g=h;h=2;if((g|0)!=2){H[197455]=0;da(1699,f+304|0,408496)|0;g=H[197455];H[197455]=0;h=4;if((g|0)==1){break b}}g=(b<<3)+c|0;i=H[g>>2];H[197455]=0;fa(1756,f+128|0,+(i|0),-1);i=H[197455];H[197455]=0;K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{if((i|0)!=1){H[197455]=0;ba(1650,f+128|0,44);i=H[197455];H[197455]=0;if((i|0)==1){break oa}H[f+152>>2]=H[f+136>>2];H[f+136>>2]=0;i=H[f+132>>2];H[f+144>>2]=H[f+128>>2];H[f+148>>2]=i;H[f+128>>2]=0;H[f+132>>2]=0;g=H[g+4>>2];H[197455]=0;fa(1756,f+112|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break na}H[197455]=0;g=I[f+123|0];i=g<<24>>24<0;g=ca(1759,f+144|0,(i?H[f+112>>2]:f+112|0)|0,(i?H[f+116>>2]:g)|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break ma}H[f+168>>2]=H[g+8>>2];i=H[g+4>>2];H[f+160>>2]=H[g>>2];H[f+164>>2]=i;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+160|0,32);g=H[197455];H[197455]=0;if((g|0)==1){break la}H[f+184>>2]=H[f+168>>2];H[f+168>>2]=0;g=H[f+164>>2];H[f+176>>2]=H[f+160>>2];H[f+180>>2]=g;H[f+160>>2]=0;H[f+164>>2]=0;i=(b+1<<3)+c|0;g=H[i>>2];H[197455]=0;fa(1756,f+96|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break ka}H[197455]=0;g=I[f+107|0];k=g<<24>>24<0;g=ca(1759,f+176|0,(k?H[f+96>>2]:f+96|0)|0,(k?H[f+100>>2]:g)|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break ja}H[f+200>>2]=H[g+8>>2];k=H[g+4>>2];H[f+192>>2]=H[g>>2];H[f+196>>2]=k;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+192|0,44);g=H[197455];H[197455]=0;if((g|0)==1){break ia}H[f+216>>2]=H[f+200>>2];H[f+200>>2]=0;g=H[f+196>>2];H[f+208>>2]=H[f+192>>2];H[f+212>>2]=g;H[f+192>>2]=0;H[f+196>>2]=0;g=H[i+4>>2];H[197455]=0;fa(1756,f+80|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break ha}H[197455]=0;g=I[f+91|0];i=g<<24>>24<0;g=ca(1759,f+208|0,(i?H[f+80>>2]:f+80|0)|0,(i?H[f+84>>2]:g)|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break ga}H[f+232>>2]=H[g+8>>2];i=H[g+4>>2];H[f+224>>2]=H[g>>2];H[f+228>>2]=i;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+224|0,32);g=H[197455];H[197455]=0;if((g|0)==1){break fa}H[f+248>>2]=H[f+232>>2];H[f+232>>2]=0;g=H[f+228>>2];H[f+240>>2]=H[f+224>>2];H[f+244>>2]=g;H[f+224>>2]=0;H[f+228>>2]=0;j=(j<<3)+c|0;g=H[j>>2];H[197455]=0;fa(1756,f- -64|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break ea}H[197455]=0;g=I[f+75|0];i=g<<24>>24<0;g=ca(1759,f+240|0,(i?H[f+64>>2]:f- -64|0)|0,(i?H[f+68>>2]:g)|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break da}H[f+264>>2]=H[g+8>>2];i=H[g+4>>2];H[f+256>>2]=H[g>>2];H[f+260>>2]=i;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+256|0,44);g=H[197455];H[197455]=0;if((g|0)==1){break ca}H[f+280>>2]=H[f+264>>2];H[f+264>>2]=0;g=H[f+260>>2];H[f+272>>2]=H[f+256>>2];H[f+276>>2]=g;H[f+256>>2]=0;H[f+260>>2]=0;g=H[j+4>>2];H[197455]=0;fa(1756,f+48|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break ba}H[197455]=0;g=I[f+59|0];j=g<<24>>24<0;g=ca(1759,f+272|0,(j?H[f+48>>2]:f+48|0)|0,(j?H[f+52>>2]:g)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break aa}H[f+296>>2]=H[g+8>>2];j=H[g+4>>2];H[f+288>>2]=H[g>>2];H[f+292>>2]=j;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);g=H[197455];H[197455]=0;if((g|0)==1){break $}H[f+24>>2]=H[f+296>>2];H[f+296>>2]=0;g=H[f+292>>2];j=H[f+288>>2];H[f+16>>2]=j;H[f+20>>2]=g;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;i=j;g=F[f+27|0];j=(g|0)<0;ca(1759,f+304|0,(j?i:f+16|0)|0,(j?H[f+20>>2]:g&255)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break _}if(F[f+27|0]<0){Kb(H[f+16>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+59|0]<0){Kb(H[f+48>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+75|0]<0){Kb(H[f+64>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}if(F[f+235|0]<0){Kb(H[f+224>>2])}if(F[f+91|0]<0){Kb(H[f+80>>2])}if(F[f+219|0]<0){Kb(H[f+208>>2])}if(F[f+203|0]<0){Kb(H[f+192>>2])}if(F[f+107|0]<0){Kb(H[f+96>>2])}if(F[f+187|0]<0){Kb(H[f+176>>2])}if(F[f+171|0]<0){Kb(H[f+160>>2])}if(F[f+123|0]<0){Kb(H[f+112>>2])}if(F[f+155|0]<0){Kb(H[f+144>>2])}if(F[f+139|0]<0){Kb(H[f+128>>2])}b=b+3|0;break z}b=$()|0;_()|0;break a}b=$()|0;_()|0;break K}b=$()|0;_()|0;break L}b=$()|0;_()|0;break M}b=$()|0;_()|0;break N}b=$()|0;_()|0;break O}b=$()|0;_()|0;break P}b=$()|0;_()|0;break Q}b=$()|0;_()|0;break R}b=$()|0;_()|0;break S}b=$()|0;_()|0;break T}b=$()|0;_()|0;break U}b=$()|0;_()|0;break V}b=$()|0;_()|0;break W}b=$()|0;_()|0;break X}b=$()|0;_()|0;break Y}b=$()|0;_()|0;break Z}b=$()|0;_()|0;if(F[f+27|0]>=0){break Z}Kb(H[f+16>>2])}if(F[f+299|0]>=0){break Y}Kb(H[f+288>>2])}if(F[f+59|0]>=0){break X}Kb(H[f+48>>2])}if(F[f+283|0]>=0){break W}Kb(H[f+272>>2])}if(F[f+267|0]>=0){break V}Kb(H[f+256>>2])}if(F[f+75|0]>=0){break U}Kb(H[f+64>>2])}if(F[f+251|0]>=0){break T}Kb(H[f+240>>2])}if(F[f+235|0]>=0){break S}Kb(H[f+224>>2])}if(F[f+91|0]>=0){break R}Kb(H[f+80>>2])}if(F[f+219|0]>=0){break Q}Kb(H[f+208>>2])}if(F[f+203|0]>=0){break P}Kb(H[f+192>>2])}if(F[f+107|0]>=0){break O}Kb(H[f+96>>2])}if(F[f+187|0]>=0){break N}Kb(H[f+176>>2])}if(F[f+171|0]>=0){break M}Kb(H[f+160>>2])}if(F[f+123|0]>=0){break L}Kb(H[f+112>>2])}if(F[f+155|0]>=0){break K}Kb(H[f+144>>2])}if(F[f+139|0]>=0){break a}Kb(H[f+128>>2]);break a;case 4:break A;default:break z}}g=(b<<3)+c|0;h=H[g>>2];H[197455]=0;fa(1756,f+240|0,+(h|0),-1);h=H[197455];H[197455]=0;if((h|0)==1){break y}H[197455]=0;h=ca(1758,f+240|0,0,408924)|0;j=H[197455];H[197455]=0;if((j|0)==1){break x}H[f+264>>2]=H[h+8>>2];j=H[h+4>>2];H[f+256>>2]=H[h>>2];H[f+260>>2]=j;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;ba(1650,f+256|0,32);h=H[197455];H[197455]=0;if((h|0)==1){break w}H[f+280>>2]=H[f+264>>2];H[f+264>>2]=0;h=H[f+260>>2];H[f+272>>2]=H[f+256>>2];H[f+276>>2]=h;H[f+256>>2]=0;H[f+260>>2]=0;h=H[g+4>>2];H[197455]=0;fa(1756,f+224|0,+(h|0),-1);h=H[197455];H[197455]=0;if((h|0)==1){break v}H[197455]=0;h=I[f+235|0];g=h<<24>>24<0;h=ca(1759,f+272|0,(g?H[f+224>>2]:f+224|0)|0,(g?H[f+228>>2]:h)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break u}H[f+296>>2]=H[h+8>>2];g=H[h+4>>2];H[f+288>>2]=H[h>>2];H[f+292>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);h=H[197455];H[197455]=0;if((h|0)==1){break t}H[f+24>>2]=H[f+296>>2];H[f+296>>2]=0;h=H[f+292>>2];g=H[f+288>>2];H[f+16>>2]=g;H[f+20>>2]=h;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;j=g;h=F[f+27|0];g=(h|0)<0;ca(1759,f+304|0,(g?j:f+16|0)|0,(g?H[f+20>>2]:h&255)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break s}if(F[f+27|0]<0){Kb(H[f+16>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+235|0]<0){Kb(H[f+224>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}h=6}b=b+1|0;g=H[d>>2];if(b>>>0>>0){continue}break}H[197455]=0;b=ca(1762,f+16|0,404840,f+304|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[f+40>>2]=b;H[197455]=0;H[f+44>>2]=1;b=H[f+44>>2];H[f+8>>2]=H[f+40>>2];H[f+12>>2]=b;d=da(1763,f+288|0,f+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[f+39|0]<0){Kb(H[f+28>>2])}if(F[f+27|0]<0){Kb(H[f+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ba(1771,a|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ga(1766,a|0,d|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[f+16>>2]=b;H[f+20>>2]=4;H[f+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break c}H[b+16>>2]=0;F[f+283|0]=0;H[197455]=0;H[f+272>>2]=0;ka(1767,a|0,f+16|0,d|0,f+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+27|0]<0){Kb(H[f+16>>2])}a=H[d>>2];if(!a){break k}b=H[d+4>>2];if((a|0)!=(b|0)){break m}b=a;break l}b=$()|0;_()|0;break a}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;break p}b=$()|0;_()|0;break q}b=$()|0;_()|0;break r}b=$()|0;_()|0;if(F[f+27|0]>=0){break r}Kb(H[f+16>>2])}if(F[f+299|0]>=0){break q}Kb(H[f+288>>2])}if(F[f+235|0]>=0){break p}Kb(H[f+224>>2])}if(F[f+283|0]>=0){break o}Kb(H[f+272>>2])}if(F[f+267|0]>=0){break n}Kb(H[f+256>>2])}if(F[f+251|0]>=0){break a}Kb(H[f+240>>2]);break a}while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[d>>2]}H[d+4>>2]=a;Kb(b)}if(F[f+315|0]>=0){break j}Kb(H[f+304>>2])}xb=f+320|0;return}b=$()|0;_()|0;break a}b=$()|0;_()|0;Vb(f+16|0);break a}b=$()|0;_()|0;break d}b=$()|0;_()|0;break d}b=$()|0;_()|0;if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+27|0]>=0){break d}Kb(H[f+16>>2])}yc(d);break a}ha(0)|0;_()|0;Zb();X()}b=$()|0;_()|0}if(F[f+315|0]<0){Kb(H[f+304>>2])}ea(b|0);X()}function S0(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-320|0;xb=f;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!e|!c){break j}g=H[d>>2];if(!g){break j}H[f+312>>2]=0;H[f+304>>2]=0;H[f+308>>2]=0;b=0;k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{while(1){z:{A:{switch(I[b+e|0]-2|0){case 0:if((h|0)!=2){H[197455]=0;da(1699,f+304|0,408724)|0;h=H[197455];H[197455]=0;if((h|0)==1){break b}}h=(b<<2)+c|0;g=G[h>>1];H[197455]=0;fa(1756,f+256|0,+(g|0),-1);g=H[197455];H[197455]=0;B:{C:{D:{E:{F:{G:{H:{I:{J:{if((g|0)!=1){H[197455]=0;ba(1650,f+256|0,44);g=H[197455];H[197455]=0;if((g|0)==1){break J}H[f+280>>2]=H[f+264>>2];H[f+264>>2]=0;g=H[f+260>>2];H[f+272>>2]=H[f+256>>2];H[f+276>>2]=g;H[f+256>>2]=0;H[f+260>>2]=0;h=G[h+2>>1];H[197455]=0;fa(1756,f+240|0,+(h|0),-1);h=H[197455];H[197455]=0;if((h|0)==1){break I}H[197455]=0;h=I[f+251|0];g=h<<24>>24<0;h=ca(1759,f+272|0,(g?H[f+240>>2]:f+240|0)|0,(g?H[f+244>>2]:h)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break H}H[f+296>>2]=H[h+8>>2];g=H[h+4>>2];H[f+288>>2]=H[h>>2];H[f+292>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);h=H[197455];H[197455]=0;if((h|0)==1){break G}H[f+24>>2]=H[f+296>>2];H[f+296>>2]=0;h=H[f+292>>2];g=H[f+288>>2];H[f+16>>2]=g;H[f+20>>2]=h;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;j=g;h=F[f+27|0];g=(h|0)<0;ca(1759,f+304|0,(g?j:f+16|0)|0,(g?H[f+20>>2]:h&255)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break F}if(F[f+27|0]<0){Kb(H[f+16>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}h=2;break z}b=$()|0;_()|0;break a}b=$()|0;_()|0;break B}b=$()|0;_()|0;break C}b=$()|0;_()|0;break D}b=$()|0;_()|0;break E}b=$()|0;_()|0;if(F[f+27|0]>=0){break E}Kb(H[f+16>>2])}if(F[f+299|0]>=0){break D}Kb(H[f+288>>2])}if(F[f+251|0]>=0){break C}Kb(H[f+240>>2])}if(F[f+283|0]>=0){break B}Kb(H[f+272>>2])}if(F[f+267|0]>=0){break a}Kb(H[f+256>>2]);break a;case 2:j=b+2|0;if(j>>>0>=g>>>0){break z}g=h;h=2;if((g|0)!=2){H[197455]=0;da(1699,f+304|0,408496)|0;g=H[197455];H[197455]=0;h=4;if((g|0)==1){break b}}g=(b<<2)+c|0;i=G[g>>1];H[197455]=0;fa(1756,f+128|0,+(i|0),-1);i=H[197455];H[197455]=0;K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{if((i|0)!=1){H[197455]=0;ba(1650,f+128|0,44);i=H[197455];H[197455]=0;if((i|0)==1){break oa}H[f+152>>2]=H[f+136>>2];H[f+136>>2]=0;i=H[f+132>>2];H[f+144>>2]=H[f+128>>2];H[f+148>>2]=i;H[f+128>>2]=0;H[f+132>>2]=0;g=G[g+2>>1];H[197455]=0;fa(1756,f+112|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break na}H[197455]=0;g=I[f+123|0];i=g<<24>>24<0;g=ca(1759,f+144|0,(i?H[f+112>>2]:f+112|0)|0,(i?H[f+116>>2]:g)|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break ma}H[f+168>>2]=H[g+8>>2];i=H[g+4>>2];H[f+160>>2]=H[g>>2];H[f+164>>2]=i;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+160|0,32);g=H[197455];H[197455]=0;if((g|0)==1){break la}H[f+184>>2]=H[f+168>>2];H[f+168>>2]=0;g=H[f+164>>2];H[f+176>>2]=H[f+160>>2];H[f+180>>2]=g;H[f+160>>2]=0;H[f+164>>2]=0;i=(b+1<<2)+c|0;g=G[i>>1];H[197455]=0;fa(1756,f+96|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break ka}H[197455]=0;g=I[f+107|0];k=g<<24>>24<0;g=ca(1759,f+176|0,(k?H[f+96>>2]:f+96|0)|0,(k?H[f+100>>2]:g)|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break ja}H[f+200>>2]=H[g+8>>2];k=H[g+4>>2];H[f+192>>2]=H[g>>2];H[f+196>>2]=k;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+192|0,44);g=H[197455];H[197455]=0;if((g|0)==1){break ia}H[f+216>>2]=H[f+200>>2];H[f+200>>2]=0;g=H[f+196>>2];H[f+208>>2]=H[f+192>>2];H[f+212>>2]=g;H[f+192>>2]=0;H[f+196>>2]=0;g=G[i+2>>1];H[197455]=0;fa(1756,f+80|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break ha}H[197455]=0;g=I[f+91|0];i=g<<24>>24<0;g=ca(1759,f+208|0,(i?H[f+80>>2]:f+80|0)|0,(i?H[f+84>>2]:g)|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break ga}H[f+232>>2]=H[g+8>>2];i=H[g+4>>2];H[f+224>>2]=H[g>>2];H[f+228>>2]=i;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+224|0,32);g=H[197455];H[197455]=0;if((g|0)==1){break fa}H[f+248>>2]=H[f+232>>2];H[f+232>>2]=0;g=H[f+228>>2];H[f+240>>2]=H[f+224>>2];H[f+244>>2]=g;H[f+224>>2]=0;H[f+228>>2]=0;j=(j<<2)+c|0;g=G[j>>1];H[197455]=0;fa(1756,f- -64|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break ea}H[197455]=0;g=I[f+75|0];i=g<<24>>24<0;g=ca(1759,f+240|0,(i?H[f+64>>2]:f- -64|0)|0,(i?H[f+68>>2]:g)|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break da}H[f+264>>2]=H[g+8>>2];i=H[g+4>>2];H[f+256>>2]=H[g>>2];H[f+260>>2]=i;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+256|0,44);g=H[197455];H[197455]=0;if((g|0)==1){break ca}H[f+280>>2]=H[f+264>>2];H[f+264>>2]=0;g=H[f+260>>2];H[f+272>>2]=H[f+256>>2];H[f+276>>2]=g;H[f+256>>2]=0;H[f+260>>2]=0;g=G[j+2>>1];H[197455]=0;fa(1756,f+48|0,+(g|0),-1);g=H[197455];H[197455]=0;if((g|0)==1){break ba}H[197455]=0;g=I[f+59|0];j=g<<24>>24<0;g=ca(1759,f+272|0,(j?H[f+48>>2]:f+48|0)|0,(j?H[f+52>>2]:g)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break aa}H[f+296>>2]=H[g+8>>2];j=H[g+4>>2];H[f+288>>2]=H[g>>2];H[f+292>>2]=j;H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);g=H[197455];H[197455]=0;if((g|0)==1){break $}H[f+24>>2]=H[f+296>>2];H[f+296>>2]=0;g=H[f+292>>2];j=H[f+288>>2];H[f+16>>2]=j;H[f+20>>2]=g;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;i=j;g=F[f+27|0];j=(g|0)<0;ca(1759,f+304|0,(j?i:f+16|0)|0,(j?H[f+20>>2]:g&255)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break _}if(F[f+27|0]<0){Kb(H[f+16>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+59|0]<0){Kb(H[f+48>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+75|0]<0){Kb(H[f+64>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}if(F[f+235|0]<0){Kb(H[f+224>>2])}if(F[f+91|0]<0){Kb(H[f+80>>2])}if(F[f+219|0]<0){Kb(H[f+208>>2])}if(F[f+203|0]<0){Kb(H[f+192>>2])}if(F[f+107|0]<0){Kb(H[f+96>>2])}if(F[f+187|0]<0){Kb(H[f+176>>2])}if(F[f+171|0]<0){Kb(H[f+160>>2])}if(F[f+123|0]<0){Kb(H[f+112>>2])}if(F[f+155|0]<0){Kb(H[f+144>>2])}if(F[f+139|0]<0){Kb(H[f+128>>2])}b=b+3|0;break z}b=$()|0;_()|0;break a}b=$()|0;_()|0;break K}b=$()|0;_()|0;break L}b=$()|0;_()|0;break M}b=$()|0;_()|0;break N}b=$()|0;_()|0;break O}b=$()|0;_()|0;break P}b=$()|0;_()|0;break Q}b=$()|0;_()|0;break R}b=$()|0;_()|0;break S}b=$()|0;_()|0;break T}b=$()|0;_()|0;break U}b=$()|0;_()|0;break V}b=$()|0;_()|0;break W}b=$()|0;_()|0;break X}b=$()|0;_()|0;break Y}b=$()|0;_()|0;break Z}b=$()|0;_()|0;if(F[f+27|0]>=0){break Z}Kb(H[f+16>>2])}if(F[f+299|0]>=0){break Y}Kb(H[f+288>>2])}if(F[f+59|0]>=0){break X}Kb(H[f+48>>2])}if(F[f+283|0]>=0){break W}Kb(H[f+272>>2])}if(F[f+267|0]>=0){break V}Kb(H[f+256>>2])}if(F[f+75|0]>=0){break U}Kb(H[f+64>>2])}if(F[f+251|0]>=0){break T}Kb(H[f+240>>2])}if(F[f+235|0]>=0){break S}Kb(H[f+224>>2])}if(F[f+91|0]>=0){break R}Kb(H[f+80>>2])}if(F[f+219|0]>=0){break Q}Kb(H[f+208>>2])}if(F[f+203|0]>=0){break P}Kb(H[f+192>>2])}if(F[f+107|0]>=0){break O}Kb(H[f+96>>2])}if(F[f+187|0]>=0){break N}Kb(H[f+176>>2])}if(F[f+171|0]>=0){break M}Kb(H[f+160>>2])}if(F[f+123|0]>=0){break L}Kb(H[f+112>>2])}if(F[f+155|0]>=0){break K}Kb(H[f+144>>2])}if(F[f+139|0]>=0){break a}Kb(H[f+128>>2]);break a;case 4:break A;default:break z}}g=(b<<2)+c|0;h=G[g>>1];H[197455]=0;fa(1756,f+240|0,+(h|0),-1);h=H[197455];H[197455]=0;if((h|0)==1){break y}H[197455]=0;h=ca(1758,f+240|0,0,408924)|0;j=H[197455];H[197455]=0;if((j|0)==1){break x}H[f+264>>2]=H[h+8>>2];j=H[h+4>>2];H[f+256>>2]=H[h>>2];H[f+260>>2]=j;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;ba(1650,f+256|0,32);h=H[197455];H[197455]=0;if((h|0)==1){break w}H[f+280>>2]=H[f+264>>2];H[f+264>>2]=0;h=H[f+260>>2];H[f+272>>2]=H[f+256>>2];H[f+276>>2]=h;H[f+256>>2]=0;H[f+260>>2]=0;h=G[g+2>>1];H[197455]=0;fa(1756,f+224|0,+(h|0),-1);h=H[197455];H[197455]=0;if((h|0)==1){break v}H[197455]=0;h=I[f+235|0];g=h<<24>>24<0;h=ca(1759,f+272|0,(g?H[f+224>>2]:f+224|0)|0,(g?H[f+228>>2]:h)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break u}H[f+296>>2]=H[h+8>>2];g=H[h+4>>2];H[f+288>>2]=H[h>>2];H[f+292>>2]=g;H[h>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);h=H[197455];H[197455]=0;if((h|0)==1){break t}H[f+24>>2]=H[f+296>>2];H[f+296>>2]=0;h=H[f+292>>2];g=H[f+288>>2];H[f+16>>2]=g;H[f+20>>2]=h;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;j=g;h=F[f+27|0];g=(h|0)<0;ca(1759,f+304|0,(g?j:f+16|0)|0,(g?H[f+20>>2]:h&255)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break s}if(F[f+27|0]<0){Kb(H[f+16>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+235|0]<0){Kb(H[f+224>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}h=6}b=b+1|0;g=H[d>>2];if(b>>>0>>0){continue}break}H[197455]=0;b=ca(1762,f+16|0,404840,f+304|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[f+40>>2]=b;H[197455]=0;H[f+44>>2]=1;b=H[f+44>>2];H[f+8>>2]=H[f+40>>2];H[f+12>>2]=b;d=da(1763,f+288|0,f+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[f+39|0]<0){Kb(H[f+28>>2])}if(F[f+27|0]<0){Kb(H[f+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ba(1771,a|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ga(1766,a|0,d|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[f+16>>2]=b;H[f+20>>2]=4;H[f+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break c}H[b+16>>2]=0;F[f+283|0]=0;H[197455]=0;H[f+272>>2]=0;ka(1767,a|0,f+16|0,d|0,f+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+27|0]<0){Kb(H[f+16>>2])}a=H[d>>2];if(!a){break k}b=H[d+4>>2];if((a|0)!=(b|0)){break m}b=a;break l}b=$()|0;_()|0;break a}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;break p}b=$()|0;_()|0;break q}b=$()|0;_()|0;break r}b=$()|0;_()|0;if(F[f+27|0]>=0){break r}Kb(H[f+16>>2])}if(F[f+299|0]>=0){break q}Kb(H[f+288>>2])}if(F[f+235|0]>=0){break p}Kb(H[f+224>>2])}if(F[f+283|0]>=0){break o}Kb(H[f+272>>2])}if(F[f+267|0]>=0){break n}Kb(H[f+256>>2])}if(F[f+251|0]>=0){break a}Kb(H[f+240>>2]);break a}while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[d>>2]}H[d+4>>2]=a;Kb(b)}if(F[f+315|0]>=0){break j}Kb(H[f+304>>2])}xb=f+320|0;return}b=$()|0;_()|0;break a}b=$()|0;_()|0;Vb(f+16|0);break a}b=$()|0;_()|0;break d}b=$()|0;_()|0;break d}b=$()|0;_()|0;if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+27|0]>=0){break d}Kb(H[f+16>>2])}yc(d);break a}ha(0)|0;_()|0;Zb();X()}b=$()|0;_()|0}if(F[f+315|0]<0){Kb(H[f+304>>2])}ea(b|0);X()}function Tb(a){a=a|0;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;l=xb-16|0;xb=l;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(a>>>0<=244){e=H[197331];g=a>>>0<11?16:a+11&-8;c=g>>>3|0;b=e>>>c|0;if(b&3){d=c+((b^-1)&1)|0;b=d<<3;f=H[b+789372>>2];a=f+8|0;c=H[f+8>>2];b=b+789364|0;l:{if((c|0)==(b|0)){m=789324,n=kma(-2,d)&e,H[m>>2]=n;break l}H[c+12>>2]=b;H[b+8>>2]=c}b=d<<3;H[f+4>>2]=b|3;b=b+f|0;H[b+4>>2]=H[b+4>>2]|1;break a}k=H[197333];if(k>>>0>=g>>>0){break k}if(b){a=2<>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;c=(c|a)+(b>>>a|0)|0;a=c<<3;j=H[a+789372>>2];b=H[j+8>>2];a=a+789364|0;m:{if((b|0)==(a|0)){e=kma(-2,c)&e;H[197331]=e;break m}H[b+12>>2]=a;H[a+8>>2]=b}a=j+8|0;H[j+4>>2]=g|3;d=g+j|0;b=c<<3;f=b-g|0;H[d+4>>2]=f|1;H[b+j>>2]=f;if(k){b=k>>>3|0;c=(b<<3)+789364|0;j=H[197336];b=1<>2]}H[c+8>>2]=j;H[b+12>>2]=j;H[j+12>>2]=c;H[j+8>>2]=b}H[197336]=d;H[197333]=f;break a}h=H[197332];if(!h){break k}b=(0-h&h)-1|0;a=b>>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;b=H[((c|a)+(b>>>a|0)<<2)+789628>>2];d=(H[b+4>>2]&-8)-g|0;c=b;while(1){o:{a=H[c+16>>2];if(!a){a=H[c+20>>2];if(!a){break o}}c=(H[a+4>>2]&-8)-g|0;f=c>>>0>>0;d=f?c:d;b=f?a:b;c=a;continue}break}i=H[b+24>>2];f=H[b+12>>2];if((f|0)!=(b|0)){a=H[b+8>>2];H[a+12>>2]=f;H[f+8>>2]=a;break b}c=b+20|0;a=H[c>>2];if(!a){a=H[b+16>>2];if(!a){break j}c=b+16|0}while(1){j=c;f=a;c=a+20|0;a=H[c>>2];if(a){continue}c=f+16|0;a=H[f+16>>2];if(a){continue}break}H[j>>2]=0;break b}g=-1;if(a>>>0>4294967231){break k}a=a+11|0;g=a&-8;i=H[197332];if(!i){break k}d=0-g|0;e=0;p:{if(g>>>0<256){break p}e=31;if(g>>>0>16777215){break p}a=a>>>8|0;j=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(b|(c|j))|0;e=(a<<1|g>>>a+21&1)+28|0}c=H[(e<<2)+789628>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=g<<((e|0)==31?0:25-(e>>>1|0)|0);while(1){t:{h=H[c+4>>2]&-8;j=h-g|0;if(j>>>0>=d>>>0){break t}d=j;f=c;if((g|0)!=(h|0)){break t}d=0;a=c;break r}j=H[c+20>>2];c=H[((b>>>29&4)+c|0)+16>>2];a=j?(j|0)==(c|0)?a:j:a;b=b<<1;if(c){continue}break}}if(!(a|f)){f=0;a=2<>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;a=H[((c|a)+(b>>>a|0)<<2)+789628>>2]}if(!a){break q}}while(1){b=(H[a+4>>2]&-8)-g|0;c=b>>>0>>0;d=c?b:d;f=c?a:f;b=H[a+16>>2];if(b){a=b}else{a=H[a+20>>2]}if(a){continue}break}}if(!f|H[197333]-g>>>0<=d>>>0){break k}e=H[f+24>>2];b=H[f+12>>2];if((f|0)!=(b|0)){a=H[f+8>>2];H[a+12>>2]=b;H[b+8>>2]=a;break c}c=f+20|0;a=H[c>>2];if(!a){a=H[f+16>>2];if(!a){break i}c=f+16|0}while(1){j=c;b=a;c=a+20|0;a=H[c>>2];if(a){continue}c=b+16|0;a=H[b+16>>2];if(a){continue}break}H[j>>2]=0;break c}c=H[197333];if(c>>>0>=g>>>0){d=H[197336];b=c-g|0;u:{if(b>>>0>=16){H[197333]=b;a=d+g|0;H[197336]=a;H[a+4>>2]=b|1;H[c+d>>2]=b;H[d+4>>2]=g|3;break u}H[197336]=0;H[197333]=0;H[d+4>>2]=c|3;a=c+d|0;H[a+4>>2]=H[a+4>>2]|1}a=d+8|0;break a}i=H[197334];if(i>>>0>g>>>0){b=i-g|0;H[197334]=b;c=H[197337];a=c+g|0;H[197337]=a;H[a+4>>2]=b|1;H[c+4>>2]=g|3;a=c+8|0;break a}a=0;h=g+47|0;if(H[197449]){c=H[197451]}else{H[197452]=-1;H[197453]=-1;H[197450]=4096;H[197451]=4096;H[197449]=l+12&-16^1431655768;H[197454]=0;H[197442]=0;c=4096}j=h+c|0;f=0-c|0;c=j&f;if(c>>>0<=g>>>0){break a}d=H[197441];if(d){b=H[197439];e=b+c|0;if(e>>>0>d>>>0|b>>>0>=e>>>0){break a}}if(I[789768]&4){break f}v:{w:{d=H[197337];if(d){a=789772;while(1){b=H[a>>2];if(b>>>0<=d>>>0&d>>>0>2]>>>0){break w}a=H[a+8>>2];if(a){continue}break}}b=ni(0);if((b|0)==-1){break g}e=c;d=H[197450];a=d-1|0;if(a&b){e=(c-b|0)+(a+b&0-d)|0}if(e>>>0<=g>>>0|e>>>0>2147483646){break g}d=H[197441];if(d){a=H[197439];f=a+e|0;if(d>>>0>>0|a>>>0>=f>>>0){break g}}a=ni(e);if((b|0)!=(a|0)){break v}break e}e=f&j-i;if(e>>>0>2147483646){break g}b=ni(e);if((b|0)==(H[a>>2]+H[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|g+48>>>0<=e>>>0)){b=H[197451];b=b+(h-e|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((ni(b)|0)!=-1){e=b+e|0;b=a;break e}ni(0-e|0);break g}b=a;if((a|0)!=-1){break e}break g}f=0;break b}b=0;break c}if((b|0)!=-1){break e}}H[197442]=H[197442]|4}if(c>>>0>2147483646){break d}b=ni(c);a=ni(0);if((b|0)==-1|(a|0)==-1|a>>>0<=b>>>0){break d}e=a-b|0;if(e>>>0<=g+40>>>0){break d}}a=H[197439]+e|0;H[197439]=a;if(a>>>0>K[197440]){H[197440]=a}x:{y:{z:{h=H[197337];if(h){a=789772;while(1){d=H[a>>2];c=H[a+4>>2];if((d+c|0)==(b|0)){break z}a=H[a+8>>2];if(a){continue}break}break y}a=H[197335];if(!(a>>>0<=b>>>0?a:0)){H[197335]=b}a=0;H[197444]=e;H[197443]=b;H[197339]=-1;H[197340]=H[197449];H[197446]=0;while(1){d=a<<3;c=d+789364|0;H[d+789372>>2]=c;H[d+789376>>2]=c;a=a+1|0;if((a|0)!=32){continue}break}d=e-40|0;a=b+8&7?-8-b&7:0;c=d-a|0;H[197334]=c;a=a+b|0;H[197337]=a;H[a+4>>2]=c|1;H[(b+d|0)+4>>2]=40;H[197338]=H[197453];break x}if(I[a+12|0]&8|d>>>0>h>>>0|b>>>0<=h>>>0){break y}H[a+4>>2]=c+e;a=h+8&7?-8-h&7:0;c=a+h|0;H[197337]=c;b=H[197334]+e|0;a=b-a|0;H[197334]=a;H[c+4>>2]=a|1;H[(b+h|0)+4>>2]=40;H[197338]=H[197453];break x}if(K[197335]>b>>>0){H[197335]=b}c=b+e|0;a=789772;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=H[a>>2]){a=H[a+8>>2];if(a){continue}break F}break}if(!(I[a+12|0]&8)){break E}}a=789772;while(1){c=H[a>>2];if(c>>>0<=h>>>0){f=c+H[a+4>>2]|0;if(f>>>0>h>>>0){break D}}a=H[a+8>>2];continue}}H[a>>2]=b;H[a+4>>2]=H[a+4>>2]+e;j=(b+8&7?-8-b&7:0)+b|0;H[j+4>>2]=g|3;e=c+(c+8&7?-8-c&7:0)|0;i=g+j|0;g=e-i|0;if((e|0)==(h|0)){H[197337]=i;a=H[197334]+g|0;H[197334]=a;H[i+4>>2]=a|1;break B}if(H[197336]==(e|0)){H[197336]=i;a=H[197333]+g|0;H[197333]=a;H[i+4>>2]=a|1;H[a+i>>2]=a;break B}a=H[e+4>>2];if((a&3)==1){f=a&-8;G:{if(a>>>0<=255){c=H[e+8>>2];a=a>>>3|0;b=H[e+12>>2];if((b|0)==(c|0)){m=789324,n=H[197331]&kma(-2,a),H[m>>2]=n;break G}H[c+12>>2]=b;H[b+8>>2]=c;break G}h=H[e+24>>2];b=H[e+12>>2];H:{if((e|0)!=(b|0)){a=H[e+8>>2];H[a+12>>2]=b;H[b+8>>2]=a;break H}I:{a=e+20|0;d=H[a>>2];if(d){break I}a=e+16|0;d=H[a>>2];if(d){break I}b=0;break H}while(1){c=a;b=d;a=b+20|0;d=H[a>>2];if(d){continue}a=b+16|0;d=H[b+16>>2];if(d){continue}break}H[c>>2]=0}if(!h){break G}c=H[e+28>>2];a=(c<<2)+789628|0;J:{if(H[a>>2]==(e|0)){H[a>>2]=b;if(b){break J}m=789328,n=H[197332]&kma(-2,c),H[m>>2]=n;break G}H[h+(H[h+16>>2]==(e|0)?16:20)>>2]=b;if(!b){break G}}H[b+24>>2]=h;a=H[e+16>>2];if(a){H[b+16>>2]=a;H[a+24>>2]=b}a=H[e+20>>2];if(!a){break G}H[b+20>>2]=a;H[a+24>>2]=b}g=f+g|0;e=e+f|0}H[e+4>>2]=H[e+4>>2]&-2;H[i+4>>2]=g|1;H[g+i>>2]=g;if(g>>>0<=255){a=g>>>3|0;b=(a<<3)+789364|0;c=H[197331];a=1<>2]}H[b+8>>2]=i;H[a+12>>2]=i;H[i+12>>2]=b;H[i+8>>2]=a;break B}a=31;if(g>>>0<=16777215){a=g>>>8|0;d=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(b|(c|d))|0;a=(a<<1|g>>>a+21&1)+28|0}H[i+28>>2]=a;H[i+16>>2]=0;H[i+20>>2]=0;d=(a<<2)+789628|0;c=H[197332];b=1<>2]=i;H[i+24>>2]=d;break L}a=g<<((a|0)==31?0:25-(a>>>1|0)|0);b=H[d>>2];while(1){c=b;if((H[b+4>>2]&-8)==(g|0)){break C}b=a>>>29|0;a=a<<1;d=c+(b&4)|0;b=H[d+16>>2];if(b){continue}break}H[d+16>>2]=i;H[i+24>>2]=c}H[i+12>>2]=i;H[i+8>>2]=i;break B}d=e-40|0;a=b+8&7?-8-b&7:0;c=d-a|0;H[197334]=c;a=a+b|0;H[197337]=a;H[a+4>>2]=c|1;H[(b+d|0)+4>>2]=40;H[197338]=H[197453];a=(f+(f-39&7?39-f&7:0)|0)-47|0;c=a>>>0>>0?h:a;H[c+4>>2]=27;a=H[197446];H[c+16>>2]=H[197445];H[c+20>>2]=a;a=H[197444];H[c+8>>2]=H[197443];H[c+12>>2]=a;H[197445]=c+8;H[197444]=e;H[197443]=b;H[197446]=0;a=c+24|0;while(1){H[a+4>>2]=7;b=a+8|0;a=a+4|0;if(b>>>0>>0){continue}break}if((c|0)==(h|0)){break x}H[c+4>>2]=H[c+4>>2]&-2;f=c-h|0;H[h+4>>2]=f|1;H[c>>2]=f;if(f>>>0<=255){a=f>>>3|0;b=(a<<3)+789364|0;c=H[197331];a=1<>2]}H[b+8>>2]=h;H[a+12>>2]=h;H[h+12>>2]=b;H[h+8>>2]=a;break x}a=31;H[h+16>>2]=0;H[h+20>>2]=0;if(f>>>0<=16777215){a=f>>>8|0;d=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(b|(c|d))|0;a=(a<<1|f>>>a+21&1)+28|0}H[h+28>>2]=a;d=(a<<2)+789628|0;c=H[197332];b=1<>2]=h;H[h+24>>2]=d;break N}a=f<<((a|0)==31?0:25-(a>>>1|0)|0);b=H[d>>2];while(1){c=b;if((f|0)==(H[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;d=c+(b&4)|0;b=H[d+16>>2];if(b){continue}break}H[d+16>>2]=h;H[h+24>>2]=c}H[h+12>>2]=h;H[h+8>>2]=h;break x}a=H[c+8>>2];H[a+12>>2]=i;H[c+8>>2]=i;H[i+24>>2]=0;H[i+12>>2]=c;H[i+8>>2]=a}a=j+8|0;break a}a=H[c+8>>2];H[a+12>>2]=h;H[c+8>>2]=h;H[h+24>>2]=0;H[h+12>>2]=c;H[h+8>>2]=a}a=H[197334];if(a>>>0<=g>>>0){break d}b=a-g|0;H[197334]=b;c=H[197337];a=c+g|0;H[197337]=a;H[a+4>>2]=b|1;H[c+4>>2]=g|3;a=c+8|0;break a}H[197018]=48;a=0;break a}O:{if(!e){break O}c=H[f+28>>2];a=(c<<2)+789628|0;P:{if(H[a>>2]==(f|0)){H[a>>2]=b;if(b){break P}i=kma(-2,c)&i;H[197332]=i;break O}H[e+(H[e+16>>2]==(f|0)?16:20)>>2]=b;if(!b){break O}}H[b+24>>2]=e;a=H[f+16>>2];if(a){H[b+16>>2]=a;H[a+24>>2]=b}a=H[f+20>>2];if(!a){break O}H[b+20>>2]=a;H[a+24>>2]=b}Q:{if(d>>>0<=15){a=d+g|0;H[f+4>>2]=a|3;a=a+f|0;H[a+4>>2]=H[a+4>>2]|1;break Q}H[f+4>>2]=g|3;e=f+g|0;H[e+4>>2]=d|1;H[e+d>>2]=d;if(d>>>0<=255){a=d>>>3|0;b=(a<<3)+789364|0;c=H[197331];a=1<>2]}H[b+8>>2]=e;H[a+12>>2]=e;H[e+12>>2]=b;H[e+8>>2]=a;break Q}a=31;if(d>>>0<=16777215){a=d>>>8|0;j=a+1048320>>>16&8;a=a<>>16&4;a=a<>>16&2;a=(a<>>15|0)-(b|(c|j))|0;a=(a<<1|d>>>a+21&1)+28|0}H[e+28>>2]=a;H[e+16>>2]=0;H[e+20>>2]=0;b=(a<<2)+789628|0;S:{c=1<>2]=e;break T}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);c=H[b>>2];while(1){b=c;if((H[b+4>>2]&-8)==(d|0)){break S}c=a>>>29|0;a=a<<1;j=(c&4)+b|0;c=H[j+16>>2];if(c){continue}break}H[j+16>>2]=e}H[e+24>>2]=b;H[e+12>>2]=e;H[e+8>>2]=e;break Q}a=H[b+8>>2];H[a+12>>2]=e;H[b+8>>2]=e;H[e+24>>2]=0;H[e+12>>2]=b;H[e+8>>2]=a}a=f+8|0;break a}U:{if(!i){break U}c=H[b+28>>2];a=(c<<2)+789628|0;V:{if(H[a>>2]==(b|0)){H[a>>2]=f;if(f){break V}m=789328,n=kma(-2,c)&h,H[m>>2]=n;break U}H[i+(H[i+16>>2]==(b|0)?16:20)>>2]=f;if(!f){break U}}H[f+24>>2]=i;a=H[b+16>>2];if(a){H[f+16>>2]=a;H[a+24>>2]=f}a=H[b+20>>2];if(!a){break U}H[f+20>>2]=a;H[a+24>>2]=f}W:{if(d>>>0<=15){a=d+g|0;H[b+4>>2]=a|3;a=a+b|0;H[a+4>>2]=H[a+4>>2]|1;break W}H[b+4>>2]=g|3;f=b+g|0;H[f+4>>2]=d|1;H[d+f>>2]=d;if(k){a=k>>>3|0;c=(a<<3)+789364|0;j=H[197336];a=1<>2]}H[c+8>>2]=j;H[a+12>>2]=j;H[j+12>>2]=c;H[j+8>>2]=a}H[197336]=f;H[197333]=d}a=b+8|0}xb=l+16|0;return a|0}function NE(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,r=0,s=0;d=1;a:{b:{switch(c-1|0){case 0:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;c:{d:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break c;case 0:break d;default:break a}}d=0;c=H[b+4>>2];e:{f:{if(c>>>0>a>>>0){break f}e=H[b+8>>2];if(e>>>0>>0|e-a>>>0<6){break f}f=H[b+12>>2];h=f-6|0;H[b+12>>2]=h;if((h|0)<=0){break f}g=c;c=a+2|0;if(g>>>0>c>>>0|c>>>0>e>>>0|e-c>>>0<2){break f}e=f-8|0;H[b+12>>2]=e;if((e|0)<=0){break f}e=I[c|0]|I[c+1|0]<<8;g:{if(!e){break g}if(Ud(((e<<8|e>>>8)&65535)+a|0,b)){break g}e=H[b+28>>2];if(e>>>0>31){break f}H[b+28>>2]=e+1;if(!I[b+24|0]){break f}F[c|0]=0;F[c+1|0]=0}e=I[a+4|0]|I[a+5|0]<<8;c=1;if(!e){break e}c=a+6|0;if(c>>>0>2]){break f}f=H[b+8>>2];if(f>>>0>>0){break f}g=f-c|0;f=jma(e)<<1;if(g>>>0>>0){break f}f=H[b+12>>2]-f|0;H[b+12>>2]=f;if((f|0)<=0){break f}d=1;if(e>>>0<4096){break f}d=Uj(a+4|0,b,a,c)}c=d}return c}d=0;c=H[b+4>>2];h:{if(c>>>0>a>>>0){break h}e=H[b+8>>2];if(e>>>0>>0|e-a>>>0<8){break h}f=H[b+12>>2];h=f-8|0;H[b+12>>2]=h;if((h|0)<=0){break h}g=c;c=a+2|0;if(g>>>0>c>>>0|c>>>0>e>>>0|e-c>>>0<2){break h}e=f-10|0;H[b+12>>2]=e;if((e|0)<=0){break h}e=I[c|0]|I[c+1|0]<<8;i:{if(!e){break i}if(Ud(((e<<8|e>>>8)&65535)+a|0,b)){break i}e=H[b+28>>2];if(e>>>0>31){break h}H[b+28>>2]=e+1;if(!I[b+24|0]){break h}F[c|0]=0;F[c+1|0]=0}c=a+8|0;h=I[a+4|0]|I[a+5|0]<<8;g=jma(h);e=I[a+6|0]|I[a+7|0]<<8;i=(e<<8|e>>>8)&65535;f=N(g,i)<<1;if(f){if(K[b+4>>2]>c>>>0){break h}j=H[b+8>>2];if(j>>>0>>0|f>>>0>j-c>>>0){break h}f=H[b+12>>2]-f|0;H[b+12>>2]=f;if((f|0)<=0){break h}}d=1;if(!e){break h}if(h>>>0<4096){break h}f=a+4|0;e=0;while(1){d=Uj(f,b,a,c);if(!d){break h}c=(g<<1)+c|0;e=e+1|0;if((i|0)!=(e|0)){continue}break}}return d;case 1:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;j:{k:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break j;case 0:break k;default:break a}}d=0;c=xb-32|0;xb=c;f=H[b+4>>2];l:{if(f>>>0>a>>>0){break l}e=H[b+8>>2];if(e>>>0>>0|e-a>>>0<10){break l}h=H[b+12>>2];g=h-10|0;H[b+12>>2]=g;if((g|0)<=0){break l}d=I[a+6|0]|I[a+7|0]<<8;g=I[a+4|0]|I[a+5|0]<<8;H[c+16>>2]=a+4;g=jma(g);H[c+20>>2]=g;r=c,s=(jma(d)+g|0)+1|0,H[r+24>>2]=s;m:{d=a+2|0;if(d>>>0>>0|d>>>0>e>>>0|e-d>>>0<2){break m}e=h-12|0;H[b+12>>2]=e;if((e|0)<=0){break m}e=I[d|0]|I[d+1|0]<<8;n:{if(!e){break n}if(Ud(((e<<8|e>>>8)&65535)+a|0,b)){break n}e=H[b+28>>2];if(e>>>0>31){break m}H[b+28>>2]=e+1;if(!I[b+24|0]){break m}F[d|0]=0;F[d+1|0]=0}H[c+12>>2]=a;H[c+8>>2]=c+16;d=0;f=a+8|0;g=H[b+4>>2];o:{p:{if(f>>>0>>0){break p}e=H[b+8>>2];if(e>>>0>>0|e-f>>>0<2){break p}h=H[b+12>>2]-2|0;H[b+12>>2]=h;if((h|0)<=0){break p}i=I[f|0]|I[f+1|0]<<8;a=1;if(!i){break o}a=f+2|0;if(a>>>0>>0|a>>>0>e>>>0){break p}k=e-a|0;a=(i<<8|i>>>8)&65535;e=a<<1;if(k>>>0>>0){break p}e=h-e|0;H[b+12>>2]=e;if((e|0)<=0){break p}h=f+2|0;if(g>>>0>h>>>0){break p}q=a>>>0>1?a:1;while(1){q:{a=H[b+8>>2];if(a>>>0>>0|a-h>>>0<2){break q}d=H[c+12>>2];a=H[b+12>>2]-2|0;H[b+12>>2]=a;if((a|0)<=0){break q}a=I[h|0]|I[h+1|0]<<8;r:{if(!a){break r}g=H[c+8>>2];l=0;p=H[b+4>>2];a=d+((a<<8|a>>>8)&65535)|0;s:{if(p>>>0>a>>>0){break s}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break s}e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break s}i=H[g+8>>2];m=I[a|0]|I[a+1|0]<<8;n=(m<<8|m>>>8)&65535;k=n<<1;if(k>>>0>=4294967295/(i>>>0)>>>0?i:0){break s}k=N(i,k);if(k){o=a+2|0;if(p>>>0>o>>>0|d>>>0>>0|k>>>0>d-o>>>0){break s}d=e-k|0;H[b+12>>2]=d;if((d|0)<=0){break s}}d=H[g>>2];if(!(!m|(I[d|0]|I[d+1|0]<<8)>>>0<4096)){e=a+4|0;k=0;while(1){if(!Uj(d,b,a,e)){break s}e=(i<<1)+e|0;k=k+1|0;if((n|0)!=(k|0)){continue}break}i=H[g+8>>2];d=H[g>>2]}l=1;if(!m|(I[d+2|0]|I[d+3|0]<<8)>>>0<4096){break s}m=d+2|0;e=0;d=H[g+4>>2];d=(d|0)<0?163632:(a+(d<<1)|0)+4|0;g=i<<1;while(1){l=Uj(m,b,a,d);if(!l){break s}d=d+g|0;e=e+1|0;if((n|0)!=(e|0)){continue}break}}if(l){break r}a=H[b+28>>2];if(a>>>0>31){break q}H[b+28>>2]=a+1;if(!I[b+24|0]){break q}F[h|0]=0;F[h+1|0]=0}d=1;j=j+1|0;if((q|0)==(j|0)){break p}h=(f+(j<<1)|0)+2|0;if(h>>>0>=K[b+4>>2]){continue}}break}d=0}a=d}d=a;break l}d=0}xb=c+32|0;return d}c=H[b+4>>2];t:{if(c>>>0>a>>>0){break t}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<16){break t}f=H[b+12>>2];h=f-16|0;H[b+12>>2]=h;if((h|0)<=0){break t}g=c;c=a+2|0;if(g>>>0>c>>>0|c>>>0>d>>>0|d-c>>>0<2){break t}d=f-18|0;H[b+12>>2]=d;if((d|0)<=0){break t}d=I[c|0]|I[c+1|0]<<8;u:{if(!d){break u}if(Ud(((d<<8|d>>>8)&65535)+a|0,b)){break u}d=H[b+28>>2];if(d>>>0>31){break t}H[b+28>>2]=d+1;if(!I[b+24|0]){break t}F[c|0]=0;F[c+1|0]=0}c=a+8|0;if(c>>>0>2]){break t}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break t}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break t}d=I[c|0]|I[c+1|0]<<8;v:{if(!d){break v}if(gh(((d<<8|d>>>8)&65535)+a|0,b)){break v}d=H[b+28>>2];if(d>>>0>31){break t}H[b+28>>2]=d+1;if(!I[b+24|0]){break t}F[c|0]=0;F[c+1|0]=0}c=a+10|0;if(c>>>0>2]){break t}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break t}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break t}d=I[c|0]|I[c+1|0]<<8;w:{if(!d){break w}if(gh(((d<<8|d>>>8)&65535)+a|0,b)){break w}d=H[b+28>>2];if(d>>>0>31){break t}H[b+28>>2]=d+1;if(!I[b+24|0]){break t}F[c|0]=0;F[c+1|0]=0}c=I[a+14|0]|I[a+15|0]<<8;d=(c<<8|c>>>8)&65535;c=I[a+12|0]|I[a+13|0]<<8;f=N(d,(c<<8|c>>>8)&65535);j=I[a+4|0]|I[a+5|0]<<8;i=jma(j);d=I[a+6|0]|I[a+7|0]<<8;h=jma(d)+i|0;g=h<<1;if(f>>>0>=4294967295/(g>>>0)>>>0?h:0){break t}c=a+16|0;g=N(f,g);if(g){if(K[b+4>>2]>c>>>0){break t}l=H[b+8>>2];if(l>>>0>>0|g>>>0>l-c>>>0){break t}g=H[b+12>>2]-g|0;H[b+12>>2]=g;if((g|0)<=0){break t}}g=a+6|0;if(!(!f|j>>>0<4096)){j=a+4|0;d=0;while(1){if(!Uj(j,b,a,c)){break t}c=(h<<1)+c|0;d=d+1|0;if((f|0)!=(d|0)){continue}break}d=I[g|0]|I[g+1|0]<<8}e=1;if(!f|d>>>0<4096){break t}c=((i<<1)+a|0)+16|0;d=0;while(1){e=Uj(g,b,a,c);if(!e){break t}c=(h<<1)+c|0;d=d+1|0;if((f|0)!=(d|0)){continue}break}}return e;case 2:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;if((I[a|0]|I[a+1|0]<<8)!=256){break a}x:{y:{c=a+2|0;if(c>>>0>2]){break y}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break y}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break y}d=I[c|0]|I[c+1|0]<<8;z:{if(!d){break z}if(Ud(((d<<8|d>>>8)&65535)+a|0,b)){break z}d=H[b+28>>2];if(d>>>0>31){break y}H[b+28>>2]=d+1;if(!I[b+24|0]){break y}F[c|0]=0;F[c+1|0]=0}h=H[b+4>>2];c=a+4|0;if(h>>>0>c>>>0){break y}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break y}e=H[b+12>>2]-2|0;H[b+12>>2]=e;c=1;if((e|0)<=0){break y}f=I[a+4|0]|I[a+5|0]<<8;if(!f){break x}c=a+6|0;if(c>>>0>>0|c>>>0>d>>>0){break y}g=d-c|0;d=(f<<8|f>>>8)&65535;c=d<<2;if(g>>>0>>0){break y}e=e-c|0;H[b+12>>2]=e;c=0;if((e|0)<=0){break x}e=d>>>0>1?d:1;d=0;while(1){c=(d<<2)+a|0;if(!In(c+6|0,b,a)){break y}if(!In(c+8|0,b,a)){break y}c=1;d=d+1|0;if((e|0)!=(d|0)){continue}break}break x}c=0}return c;case 3:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;if((I[a|0]|I[a+1|0]<<8)!=256){break a}return ME(a,b);case 4:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;if((I[a|0]|I[a+1|0]<<8)!=256){break a}h=xb-16|0;xb=h;c=H[b+4>>2];A:{if(c>>>0>a>>>0){break A}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<=11){break A}f=H[b+12>>2];g=f-12|0;H[b+12>>2]=g;if((g|0)<=0){break A}g=c;c=a+2|0;if(g>>>0>c>>>0|c>>>0>d>>>0|d-c>>>0<2){break A}d=f-14|0;H[b+12>>2]=d;if((d|0)<=0){break A}d=I[c|0]|I[c+1|0]<<8;B:{if(!d){break B}if(Ud(((d<<8|d>>>8)&65535)+a|0,b)){break B}d=H[b+28>>2];if(d>>>0>31){break A}H[b+28>>2]=d+1;if(!I[b+24|0]){break A}F[c|0]=0;F[c+1|0]=0}c=a+4|0;if(c>>>0>2]){break A}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break A}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break A}d=I[c|0]|I[c+1|0]<<8;C:{if(!d){break C}if(Ud(((d<<8|d>>>8)&65535)+a|0,b)){break C}d=H[b+28>>2];if(d>>>0>31){break A}H[b+28>>2]=d+1;if(!I[b+24|0]){break A}F[c|0]=0;F[c+1|0]=0}c=a+8|0;if(c>>>0>2]){break A}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break A}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break A}d=I[c|0]|I[c+1|0]<<8;D:{if(!d){break D}d=((d<<8|d>>>8)&65535)+a|0;H[h+12>>2]=d;if(LE(d,b,h+12|0)){break D}d=H[b+28>>2];if(d>>>0>31){break A}H[b+28>>2]=d+1;if(!I[b+24|0]){break A}F[c|0]=0;F[c+1|0]=0}c=I[a+6|0]|I[a+7|0]<<8;H[h+8>>2]=(c<<8|c>>>8)&65535;g=H[b+4>>2];f=a+10|0;c=0;E:{if(g>>>0>f>>>0){break E}d=H[b+8>>2];c=0;if(d>>>0>>0){break E}c=0;if(d-f>>>0<2){break E}i=H[b+12>>2];j=i-2|0;H[b+12>>2]=j;e=1;c=0;if((j|0)<=0){break E}j=h+8|0;c=I[f|0]|I[f+1|0]<<8;F:{if(!c){break F}G:{a=((c<<8|c>>>8)&65535)+a|0;if(a>>>0>>0|a>>>0>d>>>0|d-a>>>0<2){break G}c=i-4|0;H[b+12>>2]=c;if((c|0)<=0){break G}i=I[a|0]|I[a+1|0]<<8;if(!i){break F}e=a+2|0;if(e>>>0>>0|d>>>0>>0){break G}g=d-e|0;d=(i<<8|i>>>8)&65535;e=d<<1;if(g>>>0>>0){break G}c=c-e|0;H[b+12>>2]=c;if((c|0)<=0){break G}c=d>>>0>1?d:1;d=0;while(1){if(!KE((a+(d<<1)|0)+2|0,b,a,j)){break G}e=1;d=d+1|0;if((c|0)!=(d|0)){continue}break}break F}a=H[b+28>>2];c=0;if(a>>>0>31){break E}H[b+28>>2]=a+1;e=0;if(!I[b+24|0]){break F}F[f|0]=0;F[f+1|0]=0;e=1}c=e}e=c}xb=h+16|0;return e;case 5:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;if((I[a|0]|I[a+1|0]<<8)!=256){break a}return ME(a,b);case 6:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;H:{I:{J:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break H;case 1:break I;case 0:break J;default:break a}}return kF(a,b)}return jF(a,b)}return iF(a,b);case 7:return hF(a,b);case 8:break b;default:break a}}c=0;K:{if(K[b+4>>2]>a>>>0){break K}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break K}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break K}c=1;if((I[a|0]|I[a+1|0]<<8)!=256){break K}c=0;L:{if(K[b+4>>2]>a>>>0){break L}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<8){break L}d=H[b+12>>2]-8|0;H[b+12>>2]=d;if((d|0)<=0){break L}d=I[a+2|0]|I[a+3|0]<<8;if((d|0)==2304){break L}c=a;a=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);c=NE(a?c+a|0:163632,b,(d<<8|(d&65280)>>>8)&65535)}}d=c}return d}function u0(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;d=xb-528|0;xb=d;H[d+520>>2]=0;H[d+512>>2]=0;H[d+516>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{b=H[c>>2];f=H[c+4>>2];if((b|0)!=(f|0)){while(1){g=M[b+16>>3];j=M[b+24>>3];h=M[b+8>>3];i=M[b>>3];H[197455]=0;fa(1756,d+192|0,+i,-1);c=H[197455];H[197455]=0;if((c|0)==1){break ia}H[197455]=0;c=ca(1758,d+192|0,0,405252)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ha}H[d+216>>2]=H[c+8>>2];e=H[c+4>>2];H[d+208>>2]=H[c>>2];H[d+212>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+208|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break ga}H[d+232>>2]=H[d+216>>2];H[d+216>>2]=0;c=H[d+212>>2];H[d+224>>2]=H[d+208>>2];H[d+228>>2]=c;H[d+208>>2]=0;H[d+212>>2]=0;H[197455]=0;fa(1756,d+176|0,+h,-1);c=H[197455];H[197455]=0;if((c|0)==1){break fa}H[197455]=0;c=I[d+187|0];e=c<<24>>24<0;c=ca(1759,d+224|0,(e?H[d+176>>2]:d+176|0)|0,(e?H[d+180>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ea}H[d+248>>2]=H[c+8>>2];e=H[c+4>>2];H[d+240>>2]=H[c>>2];H[d+244>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;c=da(1699,d+240|0,408724)|0;e=H[197455];H[197455]=0;if((e|0)==1){break da}H[d+264>>2]=H[c+8>>2];e=H[c+4>>2];H[d+256>>2]=H[c>>2];H[d+260>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;g=i+g;fa(1756,d+160|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break ca}H[197455]=0;c=I[d+171|0];e=c<<24>>24<0;c=ca(1759,d+256|0,(e?H[d+160>>2]:d+160|0)|0,(e?H[d+164>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break ba}H[d+280>>2]=H[c+8>>2];e=H[c+4>>2];H[d+272>>2]=H[c>>2];H[d+276>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+272|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break aa}H[d+296>>2]=H[d+280>>2];H[d+280>>2]=0;c=H[d+276>>2];H[d+288>>2]=H[d+272>>2];H[d+292>>2]=c;H[d+272>>2]=0;H[d+276>>2]=0;H[197455]=0;fa(1756,d+144|0,+h,-1);c=H[197455];H[197455]=0;if((c|0)==1){break $}H[197455]=0;c=I[d+155|0];e=c<<24>>24<0;c=ca(1759,d+288|0,(e?H[d+144>>2]:d+144|0)|0,(e?H[d+148>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break _}H[d+312>>2]=H[c+8>>2];e=H[c+4>>2];H[d+304>>2]=H[c>>2];H[d+308>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+304|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break Z}H[d+328>>2]=H[d+312>>2];H[d+312>>2]=0;c=H[d+308>>2];H[d+320>>2]=H[d+304>>2];H[d+324>>2]=c;H[d+304>>2]=0;H[d+308>>2]=0;H[197455]=0;fa(1756,d+128|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break Y}H[197455]=0;c=I[d+139|0];e=c<<24>>24<0;c=ca(1759,d+320|0,(e?H[d+128>>2]:d+128|0)|0,(e?H[d+132>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break X}H[d+344>>2]=H[c+8>>2];e=H[c+4>>2];H[d+336>>2]=H[c>>2];H[d+340>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+336|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break W}H[d+360>>2]=H[d+344>>2];H[d+344>>2]=0;c=H[d+340>>2];H[d+352>>2]=H[d+336>>2];H[d+356>>2]=c;H[d+336>>2]=0;H[d+340>>2]=0;H[197455]=0;g=h+j;fa(1756,d+112|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break V}H[197455]=0;c=I[d+123|0];e=c<<24>>24<0;c=ca(1759,d+352|0,(e?H[d+112>>2]:d+112|0)|0,(e?H[d+116>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break U}H[d+376>>2]=H[c+8>>2];e=H[c+4>>2];H[d+368>>2]=H[c>>2];H[d+372>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+368|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break T}H[d+392>>2]=H[d+376>>2];H[d+376>>2]=0;c=H[d+372>>2];H[d+384>>2]=H[d+368>>2];H[d+388>>2]=c;H[d+368>>2]=0;H[d+372>>2]=0;H[197455]=0;fa(1756,d+96|0,+i,-1);c=H[197455];H[197455]=0;if((c|0)==1){break S}H[197455]=0;c=I[d+107|0];e=c<<24>>24<0;c=ca(1759,d+384|0,(e?H[d+96>>2]:d+96|0)|0,(e?H[d+100>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break R}H[d+408>>2]=H[c+8>>2];e=H[c+4>>2];H[d+400>>2]=H[c>>2];H[d+404>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+400|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break Q}H[d+424>>2]=H[d+408>>2];H[d+408>>2]=0;c=H[d+404>>2];H[d+416>>2]=H[d+400>>2];H[d+420>>2]=c;H[d+400>>2]=0;H[d+404>>2]=0;H[197455]=0;fa(1756,d+80|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break P}H[197455]=0;c=I[d+91|0];e=c<<24>>24<0;c=ca(1759,d+416|0,(e?H[d+80>>2]:d+80|0)|0,(e?H[d+84>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break O}H[d+440>>2]=H[c+8>>2];e=H[c+4>>2];H[d+432>>2]=H[c>>2];H[d+436>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+432|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break N}H[d+456>>2]=H[d+440>>2];H[d+440>>2]=0;c=H[d+436>>2];H[d+448>>2]=H[d+432>>2];H[d+452>>2]=c;H[d+432>>2]=0;H[d+436>>2]=0;H[197455]=0;fa(1756,d- -64|0,+i,-1);c=H[197455];H[197455]=0;if((c|0)==1){break M}H[197455]=0;c=I[d+75|0];e=c<<24>>24<0;c=ca(1759,d+448|0,(e?H[d+64>>2]:d- -64|0)|0,(e?H[d+68>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break L}H[d+472>>2]=H[c+8>>2];e=H[c+4>>2];H[d+464>>2]=H[c>>2];H[d+468>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+464|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break K}H[d+488>>2]=H[d+472>>2];H[d+472>>2]=0;c=H[d+468>>2];H[d+480>>2]=H[d+464>>2];H[d+484>>2]=c;H[d+464>>2]=0;H[d+468>>2]=0;H[197455]=0;fa(1756,d+48|0,+h,-1);c=H[197455];H[197455]=0;if((c|0)==1){break J}H[197455]=0;c=I[d+59|0];e=c<<24>>24<0;c=ca(1759,d+480|0,(e?H[d+48>>2]:d+48|0)|0,(e?H[d+52>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break I}H[d+504>>2]=H[c+8>>2];e=H[c+4>>2];H[d+496>>2]=H[c>>2];H[d+500>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+496|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break H}H[d+24>>2]=H[d+504>>2];H[d+504>>2]=0;c=H[d+500>>2];e=H[d+496>>2];H[d+16>>2]=e;H[d+20>>2]=c;H[d+496>>2]=0;H[d+500>>2]=0;H[197455]=0;k=e;c=F[d+27|0];e=(c|0)<0;ca(1759,d+512|0,(e?k:d+16|0)|0,(e?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break G}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+507|0]<0){Kb(H[d+496>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+491|0]<0){Kb(H[d+480>>2])}if(F[d+475|0]<0){Kb(H[d+464>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+459|0]<0){Kb(H[d+448>>2])}if(F[d+443|0]<0){Kb(H[d+432>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+427|0]<0){Kb(H[d+416>>2])}if(F[d+411|0]<0){Kb(H[d+400>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+395|0]<0){Kb(H[d+384>>2])}if(F[d+379|0]<0){Kb(H[d+368>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+363|0]<0){Kb(H[d+352>>2])}if(F[d+347|0]<0){Kb(H[d+336>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}if(F[d+331|0]<0){Kb(H[d+320>>2])}if(F[d+315|0]<0){Kb(H[d+304>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+187|0]<0){Kb(H[d+176>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+219|0]<0){Kb(H[d+208>>2])}if(F[d+203|0]<0){Kb(H[d+192>>2])}b=b+32|0;if((f|0)!=(b|0)){continue}break}}H[197455]=0;b=ca(1762,d+16|0,404840,d+512|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break c}b=$()|0;_()|0;break b}b=$()|0;_()|0;break b}b=$()|0;_()|0;break d}b=$()|0;_()|0;break e}b=$()|0;_()|0;break f}b=$()|0;_()|0;break g}b=$()|0;_()|0;break h}b=$()|0;_()|0;break i}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;break p}b=$()|0;_()|0;break q}b=$()|0;_()|0;break r}b=$()|0;_()|0;break s}b=$()|0;_()|0;break t}b=$()|0;_()|0;break u}b=$()|0;_()|0;break v}b=$()|0;_()|0;break w}b=$()|0;_()|0;break x}b=$()|0;_()|0;break y}b=$()|0;_()|0;break z}b=$()|0;_()|0;break A}b=$()|0;_()|0;break B}b=$()|0;_()|0;break C}b=$()|0;_()|0;break D}b=$()|0;_()|0;break E}b=$()|0;_()|0;break F}b=$()|0;_()|0;if(F[d+27|0]>=0){break F}Kb(H[d+16>>2])}if(F[d+507|0]>=0){break E}Kb(H[d+496>>2])}if(F[d+59|0]>=0){break D}Kb(H[d+48>>2])}if(F[d+491|0]>=0){break C}Kb(H[d+480>>2])}if(F[d+475|0]>=0){break B}Kb(H[d+464>>2])}if(F[d+75|0]>=0){break A}Kb(H[d+64>>2])}if(F[d+459|0]>=0){break z}Kb(H[d+448>>2])}if(F[d+443|0]>=0){break y}Kb(H[d+432>>2])}if(F[d+91|0]>=0){break x}Kb(H[d+80>>2])}if(F[d+427|0]>=0){break w}Kb(H[d+416>>2])}if(F[d+411|0]>=0){break v}Kb(H[d+400>>2])}if(F[d+107|0]>=0){break u}Kb(H[d+96>>2])}if(F[d+395|0]>=0){break t}Kb(H[d+384>>2])}if(F[d+379|0]>=0){break s}Kb(H[d+368>>2])}if(F[d+123|0]>=0){break r}Kb(H[d+112>>2])}if(F[d+363|0]>=0){break q}Kb(H[d+352>>2])}if(F[d+347|0]>=0){break p}Kb(H[d+336>>2])}if(F[d+139|0]>=0){break o}Kb(H[d+128>>2])}if(F[d+331|0]>=0){break n}Kb(H[d+320>>2])}if(F[d+315|0]>=0){break m}Kb(H[d+304>>2])}if(F[d+155|0]>=0){break l}Kb(H[d+144>>2])}if(F[d+299|0]>=0){break k}Kb(H[d+288>>2])}if(F[d+283|0]>=0){break j}Kb(H[d+272>>2])}if(F[d+171|0]>=0){break i}Kb(H[d+160>>2])}if(F[d+267|0]>=0){break h}Kb(H[d+256>>2])}if(F[d+251|0]>=0){break g}Kb(H[d+240>>2])}if(F[d+187|0]>=0){break f}Kb(H[d+176>>2])}if(F[d+235|0]>=0){break e}Kb(H[d+224>>2])}if(F[d+219|0]>=0){break d}Kb(H[d+208>>2])}if(F[d+203|0]>=0){break b}Kb(H[d+192>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;f=da(1763,d+496|0,d+8|0)|0;b=H[197455];H[197455]=0;ja:{ka:{la:{ma:{if((b|0)!=1){if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break ma}H[197455]=0;ba(1771,a|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break ma}H[197455]=0;ga(1766,a|0,f|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break ma}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break ma}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break la}H[d+16>>2]=b;H[d+20>>2]=4;H[d+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[d+491|0]=0;H[197455]=0;H[d+480>>2]=0;ka(1767,a|0,d+16|0,f|0,d+480|0);a=H[197455];H[197455]=0;if((a|0)==1){break ka}if(F[d+491|0]<0){Kb(H[d+480>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[f>>2];if(a){b=H[f+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((c|0)!=(a|0)){continue}break}b=H[f>>2]}H[f+4>>2]=a;Kb(b)}if(F[d+523|0]<0){Kb(H[d+512>>2])}xb=d+528|0;return}b=$()|0;_()|0;Vb(d+16|0);break b}b=$()|0;_()|0;break ja}b=$()|0;_()|0;break ja}b=$()|0;_()|0;if(F[d+491|0]<0){Kb(H[d+480>>2])}if(F[d+27|0]>=0){break ja}Kb(H[d+16>>2])}yc(f)}if(F[d+523|0]<0){Kb(H[d+512>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function L6(a){a=a|0;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;i=xb-80|0;xb=i;if(I[a+64|0]){zb[H[H[a>>2]+52>>2]](a,0);zb[H[H[a>>2]+56>>2]](a)}g=M[a+48>>3];j=M[a+56>>3];b=H[a+8>>2];b=zb[H[H[b>>2]+68>>2]](b,2)|0;M[i+32>>3]=M[b>>3];n=M[b+8>>3];M[i+40>>3]=n;q=M[b+16>>3];M[i+48>>3]=q;M[i+56>>3]=M[b+24>>3];r=M[b+32>>3];M[i+64>>3]=r;s=M[b+40>>3];M[i+72>>3]=s;b=H[a+4>>2];zb[H[H[b>>2]+404>>2]](b)|0;b=H[a+4>>2];M[i+24>>3]=j*n/g;M[i+16>>3]=g*q/j;M[i+8>>3]=g*r;M[i>>3]=j*s;zb[H[H[b>>2]+396>>2]](b,i+32|0,i+24|0,i+16|0,i+56|0,i+8|0,i)|0;H[a+12>>2]=-1;c=xb+-64|0;xb=c;a:{b:{c:{d:{e:{b=H[a+8>>2];b=zb[H[H[b>>2]+36>>2]](b)|0;if(b){e=zb[H[H[b>>2]+16>>2]](b)|0;f:{if((e|0)==1){break f}g:{switch(e-2|0){case 3:d=H[a+4>>2];zb[H[H[d>>2]+136>>2]](d,396304)|0;d=H[a+4>>2];zb[H[H[d>>2]+192>>2]](d,396308)|0;d=H[a+4>>2];zb[H[H[b>>2]+36>>2]](c,b);b=H[H[d>>2]+176>>2];H[197455]=0;da(b|0,d|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){if(F[c+11|0]>=0){break f}Kb(H[c>>2]);break f}a=$()|0;_()|0;if(F[c+11|0]>=0){break c}Kb(H[c>>2]);break c;case 1:d=H[a+4>>2];zb[H[H[d>>2]+136>>2]](d,396312)|0;d=H[a+4>>2];zb[H[H[d>>2]+192>>2]](d,396316)|0;d=H[a+4>>2];zb[H[H[b>>2]+36>>2]](c,b);b=H[H[d>>2]+176>>2];H[197455]=0;da(b|0,d|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){if(F[c+11|0]>=0){break f}Kb(H[c>>2]);break f}a=$()|0;_()|0;if(F[c+11|0]>=0){break c}break b;case 0:d=H[a+4>>2];zb[H[H[d>>2]+136>>2]](d,396320)|0;d=Qb(32);H[c>>2]=d;H[c+4>>2]=4;H[c+8>>2]=-2147483640;H[197455]=0;Mb(d,396324,4);f=H[197455];H[197455]=0;if((f|0)==1){break e}H[d+16>>2]=0;d=H[H[b>>2]+24>>2];H[197455]=0;d=aa(d|0,b|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break d}if(d>>>0<53){H[197455]=0;d=d<<2;ca(1653,c|0,H[d+397980>>2],H[d+398192>>2])|0;d=H[197455];H[197455]=0;if((d|0)==1){break d}}d=H[a+8>>2];f=H[H[d>>2]+48>>2];H[197455]=0;f=aa(f|0,d|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break d}d=H[a+4>>2];h:{if((f|0)==1){H[c+56>>2]=0;f=H[H[d>>2]+168>>2];H[197455]=0;da(f|0,d|0,c+56|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break h}break d}H[c+56>>2]=255;f=H[H[d>>2]+168>>2];H[197455]=0;da(f|0,d|0,c+56|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break d}d=H[a+4>>2];f=H[a+8>>2];h=H[H[f>>2]+52>>2];H[197455]=0;f=aa(h|0,f|0)|0;h=H[197455];H[197455]=0;if((h|0)!=1){H[c+56>>2]=f;f=H[H[d>>2]+160>>2];H[197455]=0;da(f|0,d|0,c+56|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break h}}break d}d=H[a+4>>2];f=H[H[d>>2]+176>>2];H[197455]=0;da(f|0,d|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break d}d=H[a+4>>2];H[c+56>>2]=255;f=H[H[d>>2]+152>>2];H[197455]=0;da(f|0,d|0,c+56|0)|0;d=H[197455];H[197455]=0;i:{if((d|0)!=1){d=H[a+4>>2];f=H[H[b>>2]+8>>2];H[197455]=0;b=aa(f|0,b|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break i}H[c+56>>2]=b;b=H[H[d>>2]+144>>2];H[197455]=0;da(b|0,d|0,c+56|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break i}if(F[c+11|0]>=0){break f}Kb(H[c>>2]);break f}break d}break d;case 8:case 11:case 12:d=H[a+4>>2];zb[H[H[d>>2]+136>>2]](d,397932)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+8>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+144>>2]](d,c)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+12>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+160>>2]](d,c)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+28>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+152>>2]](d,c)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+32>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+168>>2]](d,c)|0;d=c+56|0;f=c+48|0;h=c+40|0;l=c+32|0;zb[H[H[b>>2]+40>>2]](b,d,f,h,l);k=H[a+4>>2];zb[H[H[k>>2]+224>>2]](k,d,f,h,l)|0;d=H[a+4>>2];u=c,w=+(zb[H[H[b>>2]+20>>2]](b)>>>0),M[u>>3]=w;zb[H[H[d>>2]+216>>2]](d,c)|0;u=c,v=(zb[H[H[b>>2]+8>>2]](b)|0)+(zb[H[H[b>>2]+28>>2]](b)<<24)|0,H[u+24>>2]=v;u=c,v=(zb[H[H[b>>2]+12>>2]](b)|0)+(zb[H[H[b>>2]+32>>2]](b)<<24)|0,H[u+28>>2]=v;b=H[99491];H[c+8>>2]=H[99490];H[c+12>>2]=b;b=H[99489];H[c>>2]=H[99488];H[c+4>>2]=b;b=H[a+4>>2];zb[H[H[b>>2]+228>>2]](b,c+24|0,c,2)|0;break f;default:break g}}d=H[a+4>>2];f=H[H[d>>2]+136>>2];if(e-11>>>0<=1){zb[f|0](d,397936)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+8>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+144>>2]](d,c)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+12>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+160>>2]](d,c)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+28>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+152>>2]](d,c)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+32>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+168>>2]](d,c)|0;u=c,v=(zb[H[H[b>>2]+8>>2]](b)|0)+(zb[H[H[b>>2]+28>>2]](b)<<24)|0,H[u+56>>2]=v;u=c,v=(zb[H[H[b>>2]+12>>2]](b)|0)+(zb[H[H[b>>2]+32>>2]](b)<<24)|0,H[u+60>>2]=v;b=H[99491];H[c+8>>2]=H[99490];H[c+12>>2]=b;b=H[99489];H[c>>2]=H[99488];H[c+4>>2]=b;b=H[a+4>>2];zb[H[H[b>>2]+228>>2]](b,c+56|0,c,2)|0;break f}zb[f|0](d,396292)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+8>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+144>>2]](d,c)|0;d=H[a+4>>2];u=c,v=zb[H[H[b>>2]+28>>2]](b)|0,H[u>>2]=v;zb[H[H[d>>2]+152>>2]](d,c)|0}b=(e|0)!=1}else{b=0}xb=c- -64|0;break a}ha(0)|0;_()|0;Zb();X()}a=$()|0;_()|0;if(F[c+11|0]>=0){break c}break b}ea(a|0);X()}Kb(H[c>>2]);ea(a|0);X()}if(b){b=H[a+8>>2];u=a,v=(zb[H[H[b>>2]+56>>2]](b)|0)==1?512:256,H[u+12>>2]=v}c=0;b=xb+-64|0;xb=b;j:{k:{d=H[a+8>>2];d=zb[H[H[d>>2]+40>>2]](d)|0;if(d){e=zb[H[H[d>>2]+12>>2]](d)|0;o=e&15;l:{if((o|0)==5){break l}F[b+63|0]=0;f=e&3840;h=1;m:{n:{o:{l=(e&240)+-64|0;if(l){if((l|0)==16){break o}break m}F[b+63|0]=2;break n}F[b+63|0]=1}h=0}F[b+62|0]=0;p:{q:{if((f|0)!=256){if(f){break p}c=2;break q}c=1}F[b+62|0]=c}if(h){F[b+63|0]=c}F[b+61|0]=0;c=e&61440;r:{if((c|0)!=4096){if(c){break r}F[b+61|0]=2;break r}F[b+61|0]=1}c=e&983040;g=+zb[H[H[d>>2]+16>>2]](d);s:{if(!(g!=1|c?g!=0:0)){e=H[a+4>>2];zb[H[H[e>>2]+40>>2]](e,b+16|0)|0;g=25.4/M[b+16>>3];M[b+48>>3]=g;if(!c){e=H[a+8>>2];j=M[zb[H[H[e>>2]+68>>2]](e,2)>>3];e=H[a+8>>2];g=g/(j/(+zb[H[H[e>>2]+96>>2]](e)/96));M[b+48>>3]=g}F[b+63|0]=0;F[b+62|0]=0;F[b+61|0]=0;break s}g=g*M[a+48>>3];M[b+48>>3]=g}t:{if(+zb[H[H[d>>2]+24>>2]](d)!=0){j=+zb[H[H[d>>2]+24>>2]](d);break t}e=H[a+8>>2];e=zb[H[H[e>>2]+72>>2]](e)|0;j=M[a+48>>3]*+(e>>>0)}M[b+40>>3]=j;F[b+39|0]=0;zb[H[H[d>>2]+32>>2]](d,b+32|0,b+28|0);u:{if(!(!H[b+32>>2]|!H[b+28>>2])){c=H[a+4>>2];u=b,w=+zb[H[H[d>>2]+28>>2]](d),M[u+16>>3]=w;zb[H[H[c>>2]+108>>2]](c,b+16|0)|0;H[b+24>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;c=0;f=H[b+28>>2];v:{if(!f){break v}w:{x:{if(f>>>0>=536870912){H[197455]=0;ia(1654,b+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break x}X()}e=0;H[197455]=0;h=f<<3;c=aa(899,h|0)|0;l=H[197455];H[197455]=0;if((l|0)!=1){break w}}e=$()|0;_()|0;a=H[b+16>>2];if(!a){break k}H[b+20>>2]=a;Kb(a);break k}h=Nb(c,0,h);l=H[b+32>>2];if(f-1>>>0>=3){p=f&-4;while(1){k=e<<3;M[k+h>>3]=M[l+k>>3]*g;m=k|8;M[m+h>>3]=M[l+m>>3]*g;m=k|16;M[m+h>>3]=M[l+m>>3]*g;k=k|24;M[k+h>>3]=M[l+k>>3]*g;e=e+4|0;t=t+4|0;if((p|0)!=(t|0)){continue}break}}p=f&3;if(!p){break v}k=0;while(1){m=e<<3;M[m+h>>3]=M[l+m>>3]*g;e=e+1|0;k=k+1|0;if((p|0)!=(k|0)){continue}break}}e=H[a+4>>2];h=H[H[e>>2]+128>>2];H[197455]=0;ca(h|0,e|0,c|0,f|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){F[b+39|0]=5;if(!c){break u}Kb(c);break u}e=$()|0;_()|0;if(!c){break k}Kb(c);ea(e|0);X()}if(!o){break u}H[b+24>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;e=H[H[d>>2]+16>>2];H[197455]=0;j=+za(e|0,d|0);e=H[197455];H[197455]=0;y:{if((e|0)==1){break y}z:{if(j==0){break z}e=H[H[d>>2]+16>>2];H[197455]=0;j=+za(e|0,d|0);e=H[197455];H[197455]=0;if((e|0)==1){break y}if(!c&j==1){break z}e=H[H[d>>2]+16>>2];H[197455]=0;j=+za(e|0,d|0);e=H[197455];H[197455]=0;if((e|0)==1){break y}g=g*25.4/72;if(j!=1|c){break z}c=H[a+8>>2];e=H[H[c>>2]+68>>2];H[197455]=0;c=da(e|0,c|0,2)|0;e=H[197455];H[197455]=0;if((e|0)==1){break y}j=M[c>>3];c=H[a+8>>2];e=H[H[c>>2]+96>>2];H[197455]=0;n=+za(e|0,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}g=g/(j/(n/96))}A:{B:{switch(o-1|0){case 0:H[197455]=0;M[b+8>>3]=g*9;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;M[b+8>>3]=g*3;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)!=1){break A}break y;case 1:H[197455]=0;g=g*3;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)!=1){break A}break y;case 2:H[197455]=0;M[b+8>>3]=g*9;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;C:{if((c|0)!=1){H[197455]=0;g=g*3;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break C}H[197455]=0;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)!=1){break A}break y}break y}break y;case 3:break B;default:break A}}H[197455]=0;M[b+8>>3]=g*9;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;D:{if((c|0)!=1){H[197455]=0;g=g*3;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break y}H[197455]=0;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)==1){break D}H[197455]=0;M[b+8>>3]=g;ba(1655,b+16|0,b+8|0);c=H[197455];H[197455]=0;if((c|0)!=1){break A}break y}break y}break y}e=H[b+16>>2];c=H[b+20>>2];if((e|0)!=(c|0)){f=H[a+4>>2];h=H[H[f>>2]+128>>2];H[197455]=0;ca(h|0,f|0,e|0,c-e>>3)|0;c=H[197455];H[197455]=0;if((c|0)==1){break y}F[b+62|0]=0;F[b+39|0]=5;F[b+63|0]=0;F[b+61|0]=0;e=H[b+16>>2]}if(!e){break u}H[b+20>>2]=e;Kb(e);break u}e=$()|0;_()|0;a=H[b+16>>2];if(!a){break k}H[b+20>>2]=a;Kb(a);ea(e|0);X()}c=H[a+4>>2];zb[H[H[c>>2]+76>>2]](c,b+39|0)|0;c=H[a+4>>2];zb[H[H[c>>2]+100>>2]](c,b+61|0)|0;c=H[a+4>>2];zb[H[H[c>>2]+84>>2]](c,b+63|0)|0;c=H[a+4>>2];zb[H[H[c>>2]+92>>2]](c,b+62|0)|0;c=H[a+4>>2];u=b,v=zb[H[H[d>>2]+8>>2]](d)|0,H[u+16>>2]=v;e=b+16|0;zb[H[H[c>>2]+52>>2]](c,e)|0;c=H[a+4>>2];zb[H[H[c>>2]+68>>2]](c,b+48|0)|0;c=H[a+4>>2];u=b,v=zb[H[H[d>>2]+20>>2]](d)|0,H[u+16>>2]=v;zb[H[H[c>>2]+60>>2]](c,e)|0;c=H[a+4>>2];zb[H[H[c>>2]+124>>2]](c,b+40|0)|0;E:{F:{G:{c=H[a+8>>2];switch((zb[H[H[c>>2]+76>>2]](c)|0)-1|0){case 15:break E;case 10:break F;case 0:break G;default:break l}}c=H[a+4>>2];H[b+16>>2]=0;zb[H[H[c>>2]+52>>2]](c,b+16|0)|0;break l}c=H[a+4>>2];H[b+16>>2]=0;zb[H[H[c>>2]+60>>2]](c,b+16|0)|0;break l}c=H[a+4>>2];H[b+16>>2]=16777215;zb[H[H[c>>2]+52>>2]](c,b+16|0)|0}c=(o|0)!=5}else{c=0}xb=b- -64|0;break j}ea(e|0);X()}if(c){b=H[a+12>>2];H[a+12>>2]=(b|0)==-1?1:b|1}b=H[a+4>>2];H[i+32>>2]=4;zb[H[H[b>>2]+308>>2]](b,i+32|0)|0;b=H[a+4>>2];zb[H[H[b>>2]+352>>2]](b)|0;F[a+64|0]=1;xb=i+80|0}function rka(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,u=0,v=0,w=0,x=0,y=0,z=0;u=xb-160|0;xb=u;t=H[a+124>>2];a:{if(!(F[t+36|0]&1)){break a}while(1){b:{f=H[t+32>>2];if(f){break b}p=0;r=0;d=xb-1920|0;xb=d;c:{d:{h=oc(1,168);e:{if(h){f=H[a+56>>2];f:{if((f|0)>0){w=d+1052|0;m=d+1496|0;k=d+1448|0;x=d+464|0;while(1){g:{h:{if((f|0)>0){s=H[(r<<2)+126704>>2];n=H[a+60>>2];f=f-1|0;g=0;while(1){l=f+g>>>1|0;i=n+N(l,36)|0;e=H[i>>2];i:{if(e>>>0>s>>>0){f=l-1|0;break i}if(e>>>0>=s>>>0){break h}g=l+1|0}if((f|0)>=(g|0)){continue}break}}H[((p<<2)+h|0)+8>>2]=0;break g}s=(p<<2)+h|0;f=H[i+28>>2];H[s+8>>2]=f;if(!f){break g}j:{k:{l:{m:{n:{o:{if(r>>>0<=3){f=1569;q=0;while(1){g=J[((f<<3)+(r<<1)|0)+114184>>1];p:{if(!g){break p}e=d+208|0;H[e>>2]=0;j=e;e=H[b+80>>2];if(!(zb[H[e+164>>2]](b,H[b+84>>2],f,j,H[e+20>>2])|0)){break p}e=d+112|0;H[e>>2]=0;j=e;e=H[b+80>>2];if(!(zb[H[e+164>>2]](b,H[b+84>>2],g,j,H[e+20>>2])|0)){break p}i=H[d+208>>2];g=H[d+112>>2];if((i|0)==(g|0)|(g|i)>>>0>65535){break p}e=q<<1;G[e+(d+1056|0)>>1]=g<<8|(g&65280)>>>8;G[e+(d+1424|0)>>1]=i<<8|(i&65280)>>>8;q=q+1|0}f=f+1|0;if((f|0)!=1748){continue}break}g=1;f=0;q:{switch(q|0){default:while(1){l=g<<1;o=l+(d+1424|0)|0;f=g;while(1){r:{e=f;if(!e){break r}f=e-1|0;n=J[(d+1424|0)+(f<<1)>>1];i=J[o>>1];if(((n<<8|n>>>8)&65535)>>>0<((i<<8|i>>>8)&65535)>>>0){break r}if((i|0)!=(n|0)){continue}}break}if((e|0)!=(g|0)){n=J[o>>1];j=e<<1;v=j+2|0;f=d+1424|0;o=f+j|0;i=g-e<<1;$c(f+v|0,o,i);G[o>>1]=n;f=d+1056|0;e=J[f+l>>1];l=f+v|0;f=f+j|0;$c(l,f,i);G[f>>1]=e}g=g+1|0;if((q|0)!=(g|0)){continue}break};break;case 0:break j;case 1:break q}}H[d+124>>2]=w;H[d+112>>2]=d+208;H[d+160>>2]=0;H[d+164>>2]=0;H[d+152>>2]=0;H[d+156>>2]=0;H[d+144>>2]=0;H[d+148>>2]=0;H[d+136>>2]=0;H[d+140>>2]=0;H[d+176>>2]=0;H[d+168>>2]=1;H[d+172>>2]=1;F[d+180|0]=1;H[d+200>>2]=0;H[d+192>>2]=0;H[d+196>>2]=0;H[d+184>>2]=0;H[d+188>>2]=0;H[197455]=0;ia(748,d+112|0);f=H[197455];H[197455]=0;if((f|0)==1){k=$()|0;_()|0;H[d+168>>2]=-57005;b=H[d+176>>2];if(b){H[197455]=0;ba(605,b+24|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}Vc();Kb(b)}a=H[d+200>>2];if(a){Kb(a);H[d+200>>2]=0}H[d+184>>2]=0;H[d+188>>2]=0;H[d+160>>2]=0;Kb(H[d+164>>2]);H[d+164>>2]=0;H[d+156>>2]=0;H[d+160>>2]=0;H[d+136>>2]=0;a=H[d+148>>2];f=H[d+144>>2];if(f){c=(f<<2)+a|0;while(1){Kb(H[(f?a:163632)>>2]);b=!!f;f=f-b|0;a=(b<<2)+a|0;if((c|0)!=(a|0)){continue}break}a=H[d+148>>2]}H[d+144>>2]=0;Kb(a);H[d+148>>2]=0;H[d+140>>2]=0;H[d+144>>2]=0;ea(k|0);X()}H[197455]=0;e=aa(749,d+112|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){s:{H[d+1880>>2]=0;H[d+1864>>2]=0;H[d+24>>2]=0;H[d+8>>2]=0;H[d+1876>>2]=q;H[d+1860>>2]=q;H[197455]=0;H[d+1872>>2]=d+1424;f=H[d+1876>>2];H[d+16>>2]=H[d+1872>>2];H[d+20>>2]=f;H[d+1856>>2]=d+1056;f=H[d+1860>>2];H[d>>2]=H[d+1856>>2];H[d+4>>2]=f;e=pa(750,e|0,d+112|0,8,d+16|0,d|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break s}g=H[d+132>>2];if(!g&H[d+156>>2]<0|!(I[d+180|0]?1:g)){break o}t:{if(!H[d+152>>2]){break t}if(g){f=0;if(!(g&2)){break k}H[d+132>>2]=g|1;break k}g=0;if(K[d+160>>2]<2){break t}H[197455]=0;da(751,d+112|0,0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break s}H[197455]=0;Vn(d+112|0);f=H[197455];H[197455]=0;if((f|0)==1){break s}g=H[d+132>>2]}f=0;if(g|!e){break k}n=H[d+120>>2];i=H[d+124>>2]-n|0;g=H[d+112>>2];l=H[d+116>>2]-g|0;e=i+l|0;if(!e){break k}e=Tb(e);if(!e){break k}f=Ob(e,g,l);Ob(l+f|0,n,i);break k}}a=$()|0;_()|0;vl(d+112|0);ea(a|0);X()}f=d+208|0;H[f>>2]=0;e=f;f=H[b+80>>2];g=zb[H[f+164>>2]](b,H[b+84>>2],65247,e,H[f+20>>2])|0;if(!g){break n}H[d+1896>>2]=0;H[d+1904>>2]=0;f=J[d+208>>1];G[d+1912>>1]=f<<8|f>>>8;f=1;e=d+208|0;H[e>>2]=0;j=e;e=H[b+80>>2];if(zb[H[e+164>>2]](b,H[b+84>>2],65248,j,H[e+20>>2])|0){break m}o=1;break l}H[d+132>>2]=1;f=0;break k}f=0;e=d+208|0;H[e>>2]=0;j=e;e=H[b+80>>2];if(zb[H[e+164>>2]](b,H[b+84>>2],65248,j,H[e+20>>2])|0){break m}break j}o=1;e=J[d+208>>1];G[(d+1912|f<<1)>>1]=e<<8|e>>>8;e=f<<2;H[e+(d+1896|0)>>2]=0;H[e+(d+1904|0)>>2]=1;if(!g){break l}o=f+1|0;e=J[d+1912>>1];f=J[d+1914>>1];if(((e<<8|e>>>8)&65535)>>>0<((f<<8|f>>>8)&65535)>>>0|(f|0)==(e|0)){break l}G[d+1912>>1]=f;G[d+1914>>1]=e;y=d,z=lma(H[d+1904>>2],H[d+1908>>2]),H[y+1904>>2]=z;H[d+1908>>2]=yb}g=0;f=0;while(1){e=f<<2;l=e+(d+1896|0)|0;n=N(H[e+(d+1904|0)>>2],18);i=J[n+128178>>1];e=d+208|0;H[e>>2]=0;j=e;e=H[b+80>>2];u:{if(!(zb[H[e+164>>2]](b,H[b+84>>2],i,j,H[e+20>>2])|0)){break u}i=J[n+128180>>1];e=d+1424|0;H[e>>2]=0;j=e;e=H[b+80>>2];if(!(zb[H[e+164>>2]](b,H[b+84>>2],i,j,H[e+20>>2])|0)){break u}H[l>>2]=H[l>>2]+1;H[(d+1056|0)+(g<<2)>>2]=2;i=g<<1;e=J[d+1424>>1];G[i+(d+112|0)>>1]=e<<8|e>>>8;e=J[d+208>>1];G[i+(d+1872|0)>>1]=e<<8|e>>>8;g=g+1|0}i=J[n+128182>>1];e=d+208|0;H[e>>2]=0;j=e;e=H[b+80>>2];v:{if(!(zb[H[e+164>>2]](b,H[b+84>>2],i,j,H[e+20>>2])|0)){break v}i=J[n+128184>>1];e=d+1424|0;H[e>>2]=0;j=e;e=H[b+80>>2];if(!(zb[H[e+164>>2]](b,H[b+84>>2],i,j,H[e+20>>2])|0)){break v}H[l>>2]=H[l>>2]+1;H[(d+1056|0)+(g<<2)>>2]=2;i=g<<1;e=J[d+1424>>1];G[i+(d+112|0)>>1]=e<<8|e>>>8;e=J[d+208>>1];G[i+(d+1872|0)>>1]=e<<8|e>>>8;g=g+1|0}i=J[n+128186>>1];e=d+208|0;H[e>>2]=0;j=e;e=H[b+80>>2];w:{if(!(zb[H[e+164>>2]](b,H[b+84>>2],i,j,H[e+20>>2])|0)){break w}i=J[n+128188>>1];e=d+1424|0;H[e>>2]=0;j=e;e=H[b+80>>2];if(!(zb[H[e+164>>2]](b,H[b+84>>2],i,j,H[e+20>>2])|0)){break w}H[l>>2]=H[l>>2]+1;H[(d+1056|0)+(g<<2)>>2]=2;i=g<<1;e=J[d+1424>>1];G[i+(d+112|0)>>1]=e<<8|e>>>8;e=J[d+208>>1];G[i+(d+1872|0)>>1]=e<<8|e>>>8;g=g+1|0}i=J[n+128190>>1];e=d+208|0;H[e>>2]=0;j=e;e=H[b+80>>2];x:{if(!(zb[H[e+164>>2]](b,H[b+84>>2],i,j,H[e+20>>2])|0)){break x}i=J[n+128192>>1];e=d+1424|0;H[e>>2]=0;j=e;e=H[b+80>>2];if(!(zb[H[e+164>>2]](b,H[b+84>>2],i,j,H[e+20>>2])|0)){break x}H[l>>2]=H[l>>2]+1;H[(d+1056|0)+(g<<2)>>2]=2;i=g<<1;e=J[d+1424>>1];G[i+(d+112|0)>>1]=e<<8|e>>>8;e=J[d+208>>1];G[i+(d+1872|0)>>1]=e<<8|e>>>8;g=g+1|0}f=f+1|0;if((o|0)!=(f|0)){continue}break}if(!g){f=0;break j}H[d+1436>>2]=x;H[d+1424>>2]=d+208;H[k+24>>2]=0;H[k+28>>2]=0;H[k+16>>2]=0;H[k+20>>2]=0;H[k+8>>2]=0;H[k+12>>2]=0;H[k>>2]=0;H[k+4>>2]=0;H[d+1488>>2]=0;H[d+1480>>2]=1;H[d+1484>>2]=1;F[d+1492|0]=1;H[m+16>>2]=0;H[m+8>>2]=0;H[m+12>>2]=0;H[m>>2]=0;H[m+4>>2]=0;H[197455]=0;ia(748,d+1424|0);f=H[197455];H[197455]=0;if((f|0)==1){k=$()|0;_()|0;H[d+1480>>2]=-57005;b=H[d+1488>>2];if(b){H[197455]=0;ba(605,b+24|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}Vc();Kb(b)}a=H[d+1512>>2];if(a){Kb(a);H[d+1512>>2]=0}H[d+1496>>2]=0;H[d+1500>>2]=0;H[d+1472>>2]=0;Kb(H[d+1476>>2]);H[d+1476>>2]=0;H[d+1468>>2]=0;H[d+1472>>2]=0;H[d+1448>>2]=0;a=H[d+1460>>2];f=H[d+1456>>2];if(f){c=(f<<2)+a|0;while(1){Kb(H[(f?a:163632)>>2]);b=!!f;f=f-b|0;a=(b<<2)+a|0;if((c|0)!=(a|0)){continue}break}a=H[d+1460>>2]}H[d+1456>>2]=0;Kb(a);H[d+1460>>2]=0;a=d+1452|0;H[a>>2]=0;H[a+4>>2]=0;ea(k|0);X()}H[197455]=0;i=aa(749,d+1424|0)|0;f=H[197455];H[197455]=0;y:{z:{if((f|0)!=1){A:{H[d+1864>>2]=0;H[d+1848>>2]=0;H[d+1832>>2]=0;H[d+1816>>2]=0;e=d+1800|0;H[e>>2]=0;H[d+104>>2]=0;H[d+1860>>2]=o;H[d+1844>>2]=o;H[d+1828>>2]=g;H[d+1812>>2]=g;H[d+1796>>2]=g;H[197455]=0;H[d+1856>>2]=d+1912;f=H[d+1860>>2];H[d+96>>2]=H[d+1856>>2];H[d+100>>2]=f;H[d+1840>>2]=d+1896;H[d+1824>>2]=d+112;H[d+1808>>2]=d+1056;H[d+1792>>2]=d+1872;H[d+88>>2]=0;H[d+72>>2]=0;H[d+56>>2]=0;f=H[d+1844>>2];H[d+80>>2]=H[d+1840>>2];H[d+84>>2]=f;f=H[d+1828>>2];H[d+64>>2]=H[d+1824>>2];H[d+68>>2]=f;f=H[d+1812>>2];H[d+48>>2]=H[d+1808>>2];H[d+52>>2]=f;H[d+40>>2]=H[e>>2];f=H[d+1796>>2];H[d+32>>2]=H[d+1792>>2];H[d+36>>2]=f;e=Na(753,i|0,d+1424|0,8,d+96|0,d+80|0,d- -64|0,d+48|0,d+32|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break A}g=H[d+1444>>2];if(!g&H[d+1468>>2]<0|!(I[d+1492|0]?1:g)){break z}B:{if(!H[d+1464>>2]){break B}if(g){f=0;if(!(g&2)){break y}H[d+1444>>2]=g|1;break y}g=0;if(K[d+1472>>2]<2){break B}H[197455]=0;da(751,d+1424|0,0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break A}H[197455]=0;Vn(d+1424|0);f=H[197455];H[197455]=0;if((f|0)==1){break A}g=H[d+1444>>2]}f=0;if(g|!e){break y}n=H[d+1432>>2];i=H[d+1436>>2]-n|0;g=H[d+1424>>2];l=H[d+1428>>2]-g|0;e=i+l|0;if(!e){break y}e=Tb(e);if(!e){break y}f=Ob(e,g,l);Ob(l+f|0,n,i);break y}}a=$()|0;_()|0;vl(d+1424|0);ea(a|0);X()}H[d+1444>>2]=1;f=0}vl(d+1424|0);break j}vl(d+112|0)}H[s+28>>2]=f;if(!f){break g}vF((N(p,24)+h|0)+48|0,f);p=p+1|0}r=r+1|0;if((r|0)!=5){f=H[a+56>>2];continue}break}F[h+4|0]=1;H[h>>2]=p;if(p){break e}break f}F[h+4|0]=1;H[h>>2]=0}Kb(h)}h=163632}xb=d+1920|0;f=h;break c}ha(0)|0;_()|0;Zb();X()}k=H[t+32>>2];H[t+32>>2]=k?k:f;if(!k){break b}g=0;if(!(!f|!H[f>>2])){while(1){k=(g<<2)+f|0;C:{if(!H[k+28>>2]){break C}m=N(g,24)+f|0;H[m- -64>>2]=0;Kb(H[m+68>>2]);H[m+68>>2]=0;H[m+60>>2]=0;H[m+64>>2]=0;if(!I[f+4|0]){break C}Kb(H[k+28>>2])}g=g+1|0;if(g>>>0>2]){continue}break}Kb(f)}continue}break}h=rf(u+8|0,0,b,c);b=H[f>>2];if(!b){break a}c=0;while(1){a=(c<<2)+f|0;e=H[a+28>>2];if(e){k=H[a+8>>2];H[h+36>>2]=0;H[h+120>>2]=k;H[h+28>>2]=0;H[h+32>>2]=0;b=H[h+132>>2];H[h+12>>2]=b;a=H[h+124>>2]==1;F[h+16|0]=a;H[h+80>>2]=0;H[h+20>>2]=k;F[h+17|0]=I[h+142|0];H[h+72>>2]=0;H[h+76>>2]=0;H[h+56>>2]=b;H[h+64>>2]=-1;F[h+61|0]=1;F[h+60|0]=a|I[h+141|0]!=0;H[h+8>>2]=h;H[h+52>>2]=h;k=(N(c,24)+f|0)+48|0;m=H[h+100>>2];D:{if(!H[m+68>>2]){break D}b=H[h+120>>2];if(!b){break D}a=I[e+2|0]|I[e+3|0]<<8;a=a<<8|a>>>8;o=a&65535;if(a&16){a=I[e+4|0]|I[e+5|0]<<8;a=e+(((a<<8|a>>>8)&65535)<<1)|0;a=I[a+6|0]|I[a+7|0]<<8;o=(a<<8|a>>>8)<<16|o}H[h+132>>2]=o;H[h- -64>>2]=-1;F[h+61|0]=1;H[h+36>>2]=0;H[h+8>>2]=h;H[h+28>>2]=0;H[h+32>>2]=0;H[h+12>>2]=o;H[h+80>>2]=0;H[h+52>>2]=h;H[h+20>>2]=b;F[h+17|0]=I[h+142|0];H[h+72>>2]=0;H[h+76>>2]=0;H[h+56>>2]=o;a=H[h+124>>2]==1;F[h+16|0]=a;F[h+60|0]=a|I[h+141|0]!=0;E:{a=I[e|0]|I[e+1|0]<<8;F:{if((a|0)!=1792){if((a|0)!=2048){break F}break E}o=J[81816];a=I[e+4|0]|I[e+5|0]<<8?I[e+6|0]|I[e+7|0]<<8:o;G:{if(!(a&65535)){a=163632;break G}a=e+((a<<8|(a&65280)>>>8)&65535)|0;o=I[a|0]|I[a+1|0]<<8}if((o&65535)!=256){break F}if((I[a+2|0]|I[a+3|0]<<8)==2048){break E}}H[m+72>>2]=0;H[m+64>>2]=0;F[m+61|0]=1;F[m+62|0]=0;H[m+84>>2]=H[m+80>>2];H[m+64>>2]=0;Xr(h,k);cf(m);break D}H[m+64>>2]=H[m+68>>2]-1;DF(h,k)}b=H[f>>2]}c=c+1|0;if(c>>>0>>0){continue}break}}xb=u+160|0}function _ka(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,y=0;j=xb-80|0;xb=j;a:{b:{switch(I[a+5|0]){case 0:d=H[b+4>>2];q=G[d+152>>1]&1;if(q){h=I[a+4|0];H[j+24>>2]=a;H[j+28>>2]=b;F[j+12|0]=h>>>6&1;H[j+8>>2]=j+24;r=H[d+144>>2];o=xb-160|0;xb=o;g=H[b+16>>2];i=H[b+8>>2];if(Ac(g,i,106300,0)){if(I[g+16|0]&64){Rc(g,2,0,-1,1,0)}a=rf(o+8|0,1,i,g);H[a+120>>2]=r;H[a+132>>2]=8;H[a+36>>2]=0;H[a+8>>2]=a;H[a+28>>2]=0;H[a+32>>2]=0;H[a+80>>2]=0;H[a+52>>2]=a;H[a+20>>2]=r;F[a+17|0]=I[a+142|0];H[a+12>>2]=8;H[a+72>>2]=0;H[a+76>>2]=0;H[a- -64>>2]=-1;F[a+61|0]=1;H[a+56>>2]=8;b=H[a+124>>2]==1;F[a+16|0]=b;F[a+60|0]=b|I[a+141|0]!=0;h=H[g+68>>2];if(h){s=a+4|0;l=H[g+88>>2];t=H[g+80>>2];v=(H[g+40>>2]&-2)!=4;while(1){c:{d:{p=N(e,20);f=p+t|0;if(!(r&H[f+4>>2])){break d}H[a+40>>2]=1;H[a+4>>2]=e;d=H[H[a+8>>2]+100>>2];H[a+44>>2]=H[d+68>>2];b=0;F[a+24|0]=H[d+64>>2]==(e|0)?I[(p+H[d+80>>2]|0)+15|0]:0;if(!Ne(s,o+4|0)){break d}d=H[s>>2];m=N(d,20);u=H[H[j+8>>2]>>2];c=I[u+8|0]|I[u+9|0]<<8;e:{if(c){n=H[f>>2];x=H[m+t>>2];f=((c<<8|c>>>8)&65535)-1|0;while(1){f:{g:{w=b+f>>>1|0;k=u+N(w,6)|0;c=k+16|0;y=I[c|0]|I[c+1|0]<<8;y=(y<<8|y>>>8)&65535;h:{if((y|0)==(n|0)){k=I[k+18|0]|I[k+19|0]<<8;k=(k<<8|k>>>8)&65535;if(k>>>0>x>>>0){break h}if((k|0)==(x|0)){break e}break g}if(n>>>0>=y>>>0){break g}}f=w-1|0;break f}b=w+1|0}if((b|0)<=(f|0)){continue}break}}c=163632}c=I[c+4|0]|I[c+5|0]<<8;if(!c){break c}b=c<<8|c>>>8;i:{if(!v){c=b<<16;f=c>>31;b=gma(H[i+40>>2],H[i+44>>2],c>>16,f)+32768|0;f=yb;f=b>>>0<32768?f+1|0:f;b=(f&65535)<<16|b>>>16;if(I[j+12|0]){H[(l+m|0)+12>>2]=b;H[g+144>>2]=H[g+144>>2]|8;break i}c=l+p|0;f=b>>1;H[c>>2]=f+H[c>>2];c=l+m|0;b=b-f|0;H[c>>2]=b+H[c>>2];H[c+8>>2]=b+H[c+8>>2];break i}c=b<<16;f=c>>31;b=gma(H[i+48>>2],H[i+52>>2],c>>16,f)+32768|0;f=yb;f=b>>>0<32768?f+1|0:f;b=(f&65535)<<16|b>>>16;if(I[j+12|0]){H[(l+m|0)+8>>2]=b;H[g+144>>2]=H[g+144>>2]|8;break i}c=l+p|0;f=b>>1;H[c+4>>2]=f+H[c+4>>2];c=l+m|0;b=b-f|0;H[c+4>>2]=b+H[c+4>>2];H[c+12>>2]=b+H[c+12>>2]}ag(g,e,d+1|0);d=H[s>>2];break c}d=e+1|0}e=d;if(h>>>0>e>>>0){continue}break}}Ac(g,i,106331,0)}xb=o+160|0}break a;case 1:d=I[a+4|0];e=F[H[b+4>>2]+152|0]&1|d&64;p=!e;if(e){H[j+28>>2]=a;H[j+24>>2]=b;e=I[a+16|0]|I[a+17|0]<<8;F[j+72|0]=d>>>6&1;H[j+68>>2]=0;a=a+8|0;H[j+32>>2]=a+((e<<8|e>>>8)&65535);e=H[H[b+8>>2]+16>>2];H[j+12>>2]=H[b+16>>2];H[j+8>>2]=a;a=H[e+32>>2];if((a|0)==-1){a=De(e)}H[j+16>>2]=a;h=j+24|0;a=0;l=j+8|0;e=H[l+4>>2];H[e+64>>2]=0;j:{if(!I[e+60|0]){break j}while(1){t=K[e+68>>2]<=q>>>0;b=0;k:{if(t){break k}c=H[H[e+80>>2]+N(q,20)>>2];b=2;if((c|0)==65535){break k}b=H[l>>2];d=I[b+2|0]|I[b+3|0]<<8;d=((d<<8|d>>>8)&65535)+b|0;b=I[d|0]|I[d+1|0]<<8;c=c-((b<<8|b>>>8)&65535)|0;g=I[d+2|0]|I[d+3|0]<<8;b=1;if(c>>>0>=((g<<8|g>>>8)&65535)>>>0){break k}b=I[(c+d|0)+4|0]}d=b;b=H[l>>2];g=I[b|0]|I[b+1|0]<<8;c=(g<<8|g>>>8)&65535;f=d>>>0>>0;i=I[b+4|0]|I[b+5|0]<<8;m=(i<<8|i>>>8)&65535;r=m+b|0;u=N(a,c);i=I[b+6|0]|I[b+7|0]<<8;o=b+((i<<8|i>>>8)&65535)|0;i=(I[r+(u+(f?d:1)|0)|0]<<2)+o|0;b=I[i|0]|I[i+1|0]<<8;b=(((b<<8|b>>>8)&65535)-m|0)/(c|0)|0;s=I[i+2|0]|I[i+3|0]<<8;l:{m:{if(s&65343){break m}if(!(!a|!(s&64?b:1))){a=o+(I[r+(f?d:1)|0]<<2)|0;d=I[a+2|0]|I[a+3|0]<<8;if(d&65343){break m}a=I[a|0]|I[a+1|0]<<8;if((d^s)&64|(b|0)!=((((a<<8|a>>>8)&65535)-m|0)/(c|0)|0)){break m}}a=o+(I[r+(u+!g|0)|0]<<2)|0;if(!((I[a+2|0]|I[a+3|0]<<8)&65343)){break l}}a=I[e+61|0]?H[e+72>>2]:q;if(t|!a){break l}Rc(e,3,a-1|0,q+1|0,1,1)}a=H[l+4>>2];d=I[i+2|0]|I[i+3|0]<<8;n:{if(!(d&128)){break n}e=H[h+44>>2];if(e>>>0<=7){c=H[a+64>>2];H[h+44>>2]=e+1;H[(h+(e<<2)|0)+12>>2]=c;break n}H[h+44>>2]=0}e=d&65343;o:{if(!e){break o}c=H[h+44>>2];if(!c){break o}p:{q:{if(c>>>0>2147483646){break q}d=H[h+4>>2]+((e<<8|e>>>8)&65535)|0;e=H[h+8>>2];g=((d-e|0)+8&-2)+e|0;e=H[h>>2];if(g>>>0>2]){break q}d=H[e+28>>2];if(d>>>0>>0){break q}k=d-g|0;d=c<<1;if(k>>>0>>0){break q}d=H[e+32>>2]-d|0;H[e+32>>2]=d;if((d|0)>0){break p}}H[h+44>>2]=0;break o}q=H[H[e+4>>2]+144>>2];while(1){c=c-1|0;H[h+44>>2]=c;d=H[(h+(c<<2)|0)+12>>2];if(d>>>0>2]){e=I[g|0]|I[g+1|0]<<8;c=(e<<8|e>>>8)<<16>>16;e=c&-2;m=c&1;f=I[h+48|0];c=H[a+88>>2];r:{if((H[a+40>>2]&-2)==4){if(f){d=c+N(d,20)|0;if((e|0)==-32768){G[d+16>>1]=0;F[d+18|0]=0;H[d+12>>2]=0;break r}if(!I[d+18|0]){break r}c=d;k=H[d+12>>2];d=H[H[h>>2]+8>>2];e=gma(H[d+48>>2],H[d+52>>2],e,e>>31)+32768|0;f=yb;f=e>>>0<32768?f+1|0:f;H[c+12>>2]=k+((f&65535)<<16|e>>>16);H[a+144>>2]=H[a+144>>2]|8;break r}d=N(d,20);if(!(q&H[(d+H[a+80>>2]|0)+4>>2])){break r}d=c+d|0;c=H[H[h>>2]+8>>2];e=gma(H[c+40>>2],H[c+44>>2],e,e>>31)+32768|0;f=yb;f=e>>>0<32768?f+1|0:f;e=(f&65535)<<16|e>>>16;H[d>>2]=e+H[d>>2];H[d+8>>2]=e+H[d+8>>2];break r}if(f){d=c+N(d,20)|0;if((e|0)==-32768){G[d+16>>1]=0;F[d+18|0]=0;H[d+8>>2]=0;break r}if(!I[d+18|0]){break r}k=d;f=H[d+8>>2];d=H[H[h>>2]+8>>2];e=gma(H[d+40>>2],H[d+44>>2],e,e>>31)+32768|0;c=yb;c=e>>>0<32768?c+1|0:c;H[k+8>>2]=f+((c&65535)<<16|e>>>16);H[a+144>>2]=H[a+144>>2]|8;break r}d=N(d,20);if(!(q&H[(d+H[a+80>>2]|0)+4>>2])){break r}d=c+d|0;c=H[H[h>>2]+8>>2];e=gma(H[c+48>>2],H[c+52>>2],e,e>>31)+32768|0;f=yb;f=e>>>0<32768?f+1|0:f;e=(f&65535)<<16|e>>>16;H[d+4>>2]=e+H[d+4>>2];H[d+12>>2]=e+H[d+12>>2]}if(m){break o}c=H[h+44>>2]}g=g+2|0;if(c){continue}break}}a=H[l+4>>2];e=H[a+64>>2];if((e|0)==H[a+68>>2]|!I[a+60|0]){break j}s:{if(I[i+2|0]&64){d=H[a+152>>2];H[a+152>>2]=d-1;if((d|0)>0){break s}}if(I[a+61|0]){t:{if(H[a+84>>2]==H[a+80>>2]){d=e;if(H[a+72>>2]==(d|0)){break t}}if(!ec(a,1,1)){break s}e=H[a+80>>2]+N(H[a+64>>2],20)|0;c=H[e+4>>2];d=H[a+84>>2]+N(H[a+72>>2],20)|0;H[d>>2]=H[e>>2];H[d+4>>2]=c;H[d+16>>2]=H[e+16>>2];c=H[e+12>>2];H[d+8>>2]=H[e+8>>2];H[d+12>>2]=c;e=H[a+64>>2];d=H[a+72>>2]}H[a+72>>2]=d+1}H[a+64>>2]=e+1}e=H[l+4>>2];if(!I[e+60|0]){break j}q=H[e+64>>2];a=b;continue}}}q=!p;break a;case 2:d=H[b+4>>2];q=G[d+152>>1]&1;if(q){h=I[a+4|0];H[j+24>>2]=a;H[j+28>>2]=b;F[j+12|0]=h>>>6&1;H[j+8>>2]=j+24;r=H[d+144>>2];o=xb-160|0;xb=o;h=H[b+16>>2];i=H[b+8>>2];if(Ac(h,i,106300,0)){if(I[h+16|0]&64){Rc(h,2,0,-1,1,0)}a=rf(o+8|0,1,i,h);H[a+120>>2]=r;H[a+132>>2]=8;H[a+36>>2]=0;H[a+8>>2]=a;H[a+28>>2]=0;H[a+32>>2]=0;H[a+80>>2]=0;H[a+52>>2]=a;H[a+20>>2]=r;F[a+17|0]=I[a+142|0];H[a+12>>2]=8;H[a+72>>2]=0;H[a+76>>2]=0;H[a- -64>>2]=-1;F[a+61|0]=1;H[a+56>>2]=8;b=H[a+124>>2]==1;F[a+16|0]=b;F[a+60|0]=b|I[a+141|0]!=0;d=H[h+68>>2];if(d){s=a+4|0;l=H[h+88>>2];t=H[h+80>>2];x=(H[h+40>>2]&-2)!=4;while(1){u:{v:{p=N(e,20);n=p+t|0;if(!(r&H[n+4>>2])){break v}H[a+40>>2]=1;H[a+4>>2]=e;b=H[H[a+8>>2]+100>>2];H[a+44>>2]=H[b+68>>2];F[a+24|0]=H[b+64>>2]==(e|0)?I[(p+H[b+80>>2]|0)+15|0]:0;if(!Ne(s,o+4|0)){break v}b=H[j+8>>2];c=H[b>>2];w=H[s>>2];m=N(w,20);k=H[m+t>>2];f=H[b+4>>2];g=0;u=0;v=H[n>>2];b=I[c+10|0]|I[c+11|0]<<8;b=c+((b<<8|b>>>8)&65535)|0;n=I[b|0]|I[b+1|0]<<8;n=v-((n<<8|n>>>8)&65535)|0;v=I[b+2|0]|I[b+3|0]<<8;if(n>>>0<((v<<8|v>>>8)&65535)>>>0){b=b+(n<<1)|0;b=I[b+4|0]|I[b+5|0]<<8;u=(b<<8|b>>>8)&65535}b=I[c+12|0]|I[c+13|0]<<8;b=c+((b<<8|b>>>8)&65535)|0;n=I[b|0]|I[b+1|0]<<8;n=k-((n<<8|n>>>8)&65535)|0;k=I[b+2|0]|I[b+3|0]<<8;if(n>>>0<((k<<8|k>>>8)&65535)>>>0){b=b+(n<<1)|0;b=I[b+4|0]|I[b+5|0]<<8;g=(b<<8|b>>>8)&65535}b=0;k=(c+u|0)+g|0;g=I[c+14|0]|I[c+15|0]<<8;c=c+((g<<8|g>>>8)&65535)|0;c=(k-c&-2)+c|0;w:{if(c>>>0>2]){break w}g=H[f+28>>2];if(g>>>0>>0|g-c>>>0<2){break w}g=H[f+32>>2]-2|0;H[f+32>>2]=g;if((g|0)<=0){break w}b=I[c|0]|I[c+1|0]<<8;b=(b<<8|b>>>8)<<16>>16}if(b){x:{if(!x){c=b<<16;f=c>>31;b=gma(H[i+40>>2],H[i+44>>2],c>>16,f)+32768|0;f=yb;f=b>>>0<32768?f+1|0:f;b=(f&65535)<<16|b>>>16;if(I[j+12|0]){H[(l+m|0)+12>>2]=b;H[h+144>>2]=H[h+144>>2]|8;break x}c=l+p|0;g=b>>1;H[c>>2]=g+H[c>>2];c=l+m|0;b=b-g|0;H[c>>2]=b+H[c>>2];H[c+8>>2]=b+H[c+8>>2];break x}c=b<<16;f=c>>31;b=gma(H[i+48>>2],H[i+52>>2],c>>16,f)+32768|0;f=yb;f=b>>>0<32768?f+1|0:f;b=(f&65535)<<16|b>>>16;if(I[j+12|0]){H[(l+m|0)+8>>2]=b;H[h+144>>2]=H[h+144>>2]|8;break x}c=l+p|0;g=b>>1;H[c+4>>2]=g+H[c+4>>2];c=l+m|0;b=b-g|0;H[c+4>>2]=b+H[c+4>>2];H[c+12>>2]=b+H[c+12>>2]}ag(h,e,w+1|0)}e=H[s>>2];break u}e=e+1|0}if(d>>>0>e>>>0){continue}break}}Ac(h,i,106331,0)}xb=o+160|0}break a;case 3:break b;default:break a}}d=H[b+4>>2];q=G[d+152>>1]&1;if(q){h=I[a+4|0];H[j+24>>2]=a;F[j+28|0]=h>>>6&1;r=H[d+144>>2];o=xb-160|0;xb=o;g=H[b+16>>2];i=H[b+8>>2];if(Ac(g,i,106300,0)){if(I[g+16|0]&64){Rc(g,2,0,-1,1,0)}b=rf(o+8|0,1,i,g);H[b+120>>2]=r;H[b+132>>2]=8;H[b+36>>2]=0;H[b+8>>2]=b;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+52>>2]=b;H[b+20>>2]=r;F[b+17|0]=I[b+142|0];H[b+12>>2]=8;H[b+72>>2]=0;H[b+76>>2]=0;H[b- -64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=8;a=H[b+124>>2]==1;F[b+16|0]=a;F[b+60|0]=a|I[b+141|0]!=0;h=H[g+68>>2];if(h){s=b+4|0;l=H[g+88>>2];t=H[g+80>>2];u=(H[g+40>>2]&-2)!=4;while(1){y:{z:{p=N(e,20);c=p+t|0;if(!(r&H[c+4>>2])){break z}H[b+40>>2]=1;H[b+4>>2]=e;a=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[a+68>>2];F[b+24|0]=H[a+64>>2]==(e|0)?I[(p+H[a+80>>2]|0)+15|0]:0;if(!Ne(s,o+4|0)){break z}a=H[s>>2];d=H[j+24>>2];n=I[d+10|0];f=((n<<1)+d|0)+14|0;c=H[c>>2];m=f+c|0;k=c;c=I[d+8|0]|I[d+9|0]<<8;c=(c<<8|c>>>8)&65535;x=I[(k>>>0>>0?m:163632)|0];w=I[d+11|0];if(x>>>0>=w>>>0){break y}k=c+f|0;m=N(a,20);f=H[m+t>>2];v=I[(c>>>0>f>>>0?k+f|0:163632)|0];f=I[d+12|0];if(v>>>0>=f>>>0){break y}k=c+k|0;c=v+N(f,x)|0;c=I[(c>>>0>>0?k+c|0:163632)|0];d=c>>>0>>0?(d+(c<<1)|0)+14|0:163632;d=I[d|0]|I[d+1|0]<<8;if(!d){break y}d=d<<8|d>>>8;A:{if(!u){c=d<<16;f=c>>31;d=gma(H[i+40>>2],H[i+44>>2],c>>16,f)+32768|0;f=yb;f=d>>>0<32768?f+1|0:f;d=(f&65535)<<16|d>>>16;if(I[j+28|0]){H[(l+m|0)+12>>2]=d;H[g+144>>2]=H[g+144>>2]|8;break A}c=l+p|0;f=d>>1;H[c>>2]=f+H[c>>2];c=l+m|0;d=d-f|0;H[c>>2]=d+H[c>>2];H[c+8>>2]=d+H[c+8>>2];break A}c=d<<16;f=c>>31;d=gma(H[i+48>>2],H[i+52>>2],c>>16,f)+32768|0;f=yb;f=d>>>0<32768?f+1|0:f;d=(f&65535)<<16|d>>>16;if(I[j+28|0]){H[(l+m|0)+8>>2]=d;H[g+144>>2]=H[g+144>>2]|8;break A}c=l+p|0;f=d>>1;H[c+4>>2]=f+H[c+4>>2];c=l+m|0;d=d-f|0;H[c+4>>2]=d+H[c+4>>2];H[c+12>>2]=d+H[c+12>>2]}ag(g,e,a+1|0);a=H[s>>2];break y}a=e+1|0}e=a;if(h>>>0>a>>>0){continue}break}}Ac(g,i,106331,0)}xb=o+160|0}}xb=j+80|0;return q|0}function hka(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,u=0,v=0,w=0,x=0,y=0,z=0;j=xb-32|0;xb=j;H[b+72>>2]=0;H[b+64>>2]=0;F[b+61|0]=1;F[b+62|0]=0;H[b+84>>2]=H[b+80>>2];H[b+64>>2]=0;w=H[b+68>>2];a:{if(!w){break a}h=b- -64|0;while(1){if(!I[b+60|0]){break a}k=H[b+80>>2];q=k+N(d,20)|0;f=H[q>>2];b:{if((f&-2)==12334){c:{if(!(H[b+72>>2]!=(i|0)|i>>>0<=m>>>0)){Rc(b,3,m,d,1,1);if(I[b+61|0]){d:{if(H[b+84>>2]==H[b+80>>2]){d=H[b+72>>2];if((d|0)==H[h>>2]){break d}}if(!ec(b,1,1)){break a}d=H[b+80>>2]+N(H[h>>2],20)|0;e=H[d+4>>2];a=H[b+84>>2]+N(H[b+72>>2],20)|0;H[a>>2]=H[d>>2];H[a+4>>2]=e;H[a+16>>2]=H[d+16>>2];e=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=e;d=H[b+72>>2]}H[b+72>>2]=d+1}H[h>>2]=H[h>>2]+1;a=j+8|0;H[a>>2]=0;d=a;a=H[c+80>>2];if(zb[H[a+164>>2]](c,H[c+84>>2],f,d,H[a+20>>2])|0){a=H[c+80>>2];if(!(zb[H[a+176>>2]](c,H[c+84>>2],H[j+8>>2],H[a+32>>2])|0)){break c}}eh(b,m,i+1|0);d=H[b+84>>2];a=d+N(i,20)|0;H[j+24>>2]=H[a+16>>2];e=H[a+12>>2];H[j+16>>2]=H[a+8>>2];H[j+20>>2]=e;e=H[a+4>>2];H[j+8>>2]=H[a>>2];H[j+12>>2]=e;a=d+N(m,20)|0;$c(a+20|0,a,N(i-m|0,20));H[a+16>>2]=H[j+24>>2];d=H[j+20>>2];H[a+8>>2]=H[j+16>>2];H[a+12>>2]=d;d=H[j+12>>2];H[a>>2]=H[j+8>>2];H[a+4>>2]=d;break c}e:{if(I[b+16|0]&16){break e}H[j+8>>2]=0;a=H[c+80>>2];if(!(zb[H[a+164>>2]](c,H[c+84>>2],9676,j+8|0,H[a+20>>2])|0)){break e}a=j+8|0;H[a>>2]=0;d=a;a=H[c+80>>2];f:{if(!(zb[H[a+164>>2]](c,H[c+84>>2],f,d,H[a+20>>2])|0)){i=9676;break f}a=H[c+80>>2];a=zb[H[a+176>>2]](c,H[c+84>>2],H[j+8>>2],H[a+32>>2])|0;i=a?9676:f;f=a?f:9676}if(!ec(b,1,2)){break c}a=H[b+64>>2];g:{if(a>>>0>2]){d=H[b+72>>2];m=H[b+84>>2];a=H[b+80>>2]+N(a,20)|0;break g}m=H[b+84>>2];d=H[b+72>>2];a=m+N(d?d-1|0:0,20)|0}e=H[a+4>>2];d=N(d,20)+m|0;H[d>>2]=H[a>>2];H[d+4>>2]=e;H[d+16>>2]=H[a+16>>2];e=H[a+12>>2];H[d+8>>2]=H[a+8>>2];H[d+12>>2]=e;H[d>>2]=f;e=H[a+4>>2];H[d+20>>2]=H[a>>2];H[d+24>>2]=e;e=H[a+12>>2];H[d+28>>2]=H[a+8>>2];H[d+32>>2]=e;H[d+36>>2]=H[a+16>>2];H[d+20>>2]=i;H[h>>2]=H[h>>2]+1;H[b+72>>2]=H[b+72>>2]+2;break c}if(I[b+61|0]){h:{if(H[b+84>>2]==H[b+80>>2]){f=H[b+72>>2];if((f|0)==H[h>>2]){break h}}if(!ec(b,1,1)){break c}d=H[b+80>>2]+N(H[h>>2],20)|0;e=H[d+4>>2];a=H[b+84>>2]+N(H[b+72>>2],20)|0;H[a>>2]=H[d>>2];H[a+4>>2]=e;H[a+16>>2]=H[d+16>>2];e=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=e;f=H[b+72>>2]}H[b+72>>2]=f+1}H[h>>2]=H[h>>2]+1}m=H[b+72>>2];i=m;break b}m=H[b+72>>2];i:{j:{k:{y=f-4352|0;l:{if(!(f-43360>>>0>28&y>>>0>=96)){o=d+1|0;if(o>>>0>=w>>>0){break l}n=H[k+N(o,20)>>2];if(n-4448>>>0>=72&n-55216>>>0>22){break l}z=0;u=0;a=d+2|0;if(a>>>0>>0){a=H[k+N(a,20)>>2];e=a-4520>>>0<88|a-55243>>>0<49;z=e?a-4519|0:0;u=e?a:0}a=H[b+68>>2];p=u?3:2;e=p+d|0;r=a>>>0>>0?a:e;t=r-d|0;m:{if(t>>>0<2){break m}e=H[b+144>>2]|32;H[b+144>>2]=e;if(d>>>0>=r>>>0){break m}i=-1;a=d;x=r+(a^-1)|0;if(x>>>0>=3){s=t&-4;g=0;while(1){l=k+N(a,20)|0;v=H[l+8>>2];i=i>>>0>>0?i:v;v=H[l+28>>2];i=i>>>0>>0?i:v;v=H[l+48>>2];i=i>>>0>>0?i:v;l=H[l+68>>2];i=i>>>0>>0?i:l;a=a+4|0;g=g+4|0;if((s|0)!=(g|0)){continue}break}}g=0;l=t&3;if(l){while(1){s=H[(k+N(a,20)|0)+8>>2];i=i>>>0>>0?i:s;a=a+1|0;g=g+1|0;if((l|0)!=(g|0)){continue}break}}a=d;if(t&1){if(H[q+8>>2]!=(i|0)){H[b+144>>2]=e;H[q+4>>2]=H[q+4>>2]|3}a=o}if(!x){break m}while(1){g=k+N(a,20)|0;if(H[g+8>>2]!=(i|0)){e=e|32;H[b+144>>2]=e;H[g+4>>2]=H[g+4>>2]|3}g=k+N(a+1|0,20)|0;if(H[g+8>>2]!=(i|0)){e=e|32;H[b+144>>2]=e;H[g+4>>2]=H[g+4>>2]|3}a=a+2|0;if((r|0)!=(a|0)){continue}break}}n:{o:{p:{q:{r:{if(!(y>>>0>18|n-4449>>>0>20|(u-4520>>>0>26?u:0))){H[j+8>>2]=0;e=((N(f,588)+N(n,28)|0)+z|0)-2639516|0;a=H[c+80>>2];if(zb[H[a+164>>2]](c,H[c+84>>2],e,j+8|0,H[a+20>>2])|0){break r}d=H[h>>2]}F[(H[b+80>>2]+N(d,20)|0)+19|0]=1;if(!I[b+61|0]){break o}if(H[b+84>>2]==H[b+80>>2]){f=H[b+72>>2];if((f|0)==H[h>>2]){break p}}if(ec(b,1,1)){break q}f=H[h>>2];break n}if(!ec(b,p,1)){i=m+1|0;break b}a=H[b+64>>2];Jd(b,a,a+p|0);a=H[b+64>>2];s:{if(a>>>0>2]){d=H[b+72>>2];i=H[b+84>>2];a=H[b+80>>2]+N(a,20)|0;break s}i=H[b+84>>2];d=H[b+72>>2];a=i+N(d?d-1|0:0,20)|0}g=H[a+4>>2];d=N(d,20)+i|0;H[d>>2]=H[a>>2];H[d+4>>2]=g;H[d+16>>2]=H[a+16>>2];g=H[a+12>>2];H[d+8>>2]=H[a+8>>2];H[d+12>>2]=g;H[d>>2]=e;H[h>>2]=p+H[h>>2];H[b+72>>2]=H[b+72>>2]+1;i=m+1|0;break b}d=H[b+80>>2]+N(H[h>>2],20)|0;e=H[d+4>>2];a=H[b+84>>2]+N(H[b+72>>2],20)|0;H[a>>2]=H[d>>2];H[a+4>>2]=e;H[a+16>>2]=H[d+16>>2];e=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=e;f=H[b+72>>2]}H[b+72>>2]=f+1}f=H[h>>2]+1|0;H[h>>2]=f}F[(H[b+80>>2]+N(f,20)|0)+19|0]=2;t:{if(I[b+61|0]){u:{if(H[b+84>>2]==H[b+80>>2]){f=H[b+72>>2];if((f|0)==H[h>>2]){break u}}if(!ec(b,1,1)){break t}d=H[b+80>>2]+N(H[h>>2],20)|0;e=H[d+4>>2];a=H[b+84>>2]+N(H[b+72>>2],20)|0;H[a>>2]=H[d>>2];H[a+4>>2]=e;H[a+16>>2]=H[d+16>>2];e=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=e;f=H[b+72>>2]}H[b+72>>2]=f+1}H[h>>2]=H[h>>2]+1}if(u){F[(H[b+80>>2]+N(H[b+64>>2],20)|0)+19|0]=3;v:{if(I[b+61|0]){w:{if(H[b+84>>2]==H[b+80>>2]){f=H[b+72>>2];if((f|0)==H[h>>2]){break w}}if(!ec(b,1,1)){break v}d=H[b+80>>2]+N(H[h>>2],20)|0;e=H[d+4>>2];a=H[b+84>>2]+N(H[b+72>>2],20)|0;H[a>>2]=H[d>>2];H[a+4>>2]=e;H[a+16>>2]=H[d+16>>2];e=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=e;f=H[b+72>>2]}H[b+72>>2]=f+1}H[h>>2]=H[h>>2]+1}a=3}else{a=2}if(!I[b+60|0]){break a}i=a+m|0;if(H[b+20>>2]){break b}eh(b,m,i);break b}a=f-44032|0;if(a>>>0>11171){break l}H[j+8>>2]=0;a=a&65535;t=(a>>>0)/588|0;d=H[c+80>>2];u=zb[H[d+164>>2]](c,H[c+84>>2],f,j+8|0,H[d+20>>2])|0;a=(a>>>0)%588|0;p=(a>>>0)/28|0;l=a-N(p,28)|0;o=l&65535;x:{y:{if(!o){a=H[h>>2]+1|0;z:{if(a>>>0>=w>>>0){break z}a=H[H[b+80>>2]+N(a,20)>>2];if(a-4520>>>0>26){break z}H[j+8>>2]=0;e=(a+f|0)-4519|0;a=H[c+80>>2];z=zb[H[a+164>>2]](c,H[c+84>>2],e,j+8|0,H[a+20>>2])|0;if(z){if(ec(b,2,1)){a=H[b+64>>2];Jd(b,a,a+2|0);a=H[b+64>>2];A:{if(a>>>0>2]){d=H[b+72>>2];o=H[b+84>>2];a=H[b+80>>2]+N(a,20)|0;break A}o=H[b+84>>2];d=H[b+72>>2];a=o+N(d?d-1|0:0,20)|0}g=H[a+4>>2];d=N(d,20)+o|0;H[d>>2]=H[a>>2];H[d+4>>2]=g;H[d+16>>2]=H[a+16>>2];g=H[a+12>>2];H[d+8>>2]=H[a+8>>2];H[d+12>>2]=g;H[d>>2]=e;H[h>>2]=H[h>>2]+2;H[b+72>>2]=H[b+72>>2]+1}i=m+1|0;break b}a=H[b+68>>2];g=H[b+64>>2];d=g+2|0;k=a>>>0>>0?a:d;q=k-g|0;if(q>>>0<2){break z}a=H[b+144>>2]|32;H[b+144>>2]=a;if(g>>>0>=k>>>0){break z}d=H[b+80>>2];f=-1;e=g;y=k+(e^-1)|0;if(y>>>0>=3){x=q&-4;r=0;while(1){n=d+N(e,20)|0;s=H[n+8>>2];f=f>>>0>>0?f:s;s=H[n+28>>2];f=f>>>0>>0?f:s;s=H[n+48>>2];f=f>>>0>>0?f:s;n=H[n+68>>2];f=f>>>0>>0?f:n;e=e+4|0;r=r+4|0;if((x|0)!=(r|0)){continue}break}}n=0;r=q&3;if(r){while(1){x=H[(d+N(e,20)|0)+8>>2];f=f>>>0>>0?f:x;e=e+1|0;n=n+1|0;if((r|0)!=(n|0)){continue}break}}if(q&1){e=d+N(g,20)|0;if(H[e+8>>2]!=(f|0)){H[b+144>>2]=a;H[e+4>>2]=H[e+4>>2]|3}g=g+1|0}if(y){while(1){e=d+N(g,20)|0;if(H[e+8>>2]!=(f|0)){a=a|32;H[b+144>>2]=a;H[e+4>>2]=H[e+4>>2]|3}e=d+N(g+1|0,20)|0;if(H[e+8>>2]!=(f|0)){a=a|32;H[b+144>>2]=a;H[e+4>>2]=H[e+4>>2]|3}g=g+2|0;if((k|0)!=(g|0)){continue}break}}if(z){break b}}if(!u){break y}a=H[h>>2]+1|0;if(a>>>0>=w>>>0){break x}a=H[H[b+80>>2]+N(a,20)>>2];if(a-4520>>>0<88){break y}if(a-55243>>>0>48){break x}break y}if(u){break x}}a=p+4449|0;H[j+12>>2]=a;k=t|4352;H[j+8>>2]=k;d=l+4519&65535;H[j+16>>2]=d;H[j+28>>2]=0;B:{e=H[c+80>>2];if(!(zb[H[e+164>>2]](c,H[c+84>>2],k,j+28|0,H[e+20>>2])|0)){break B}H[j+28>>2]=0;e=a;a=H[c+80>>2];if(!(zb[H[a+164>>2]](c,H[c+84>>2],e,j+28|0,H[a+20>>2])|0)){break B}C:{if(!o){e=2;break C}H[j+28>>2]=0;e=3;a=H[c+80>>2];if(!(zb[H[a+164>>2]](c,H[c+84>>2],d,j+28|0,H[a+20>>2])|0)){break x}}if(!ec(b,1,e)){break i}a=H[b+64>>2];D:{if(a>>>0>2]){f=H[b+72>>2];g=H[b+84>>2];a=H[b+80>>2]+N(a,20)|0;break D}g=H[b+84>>2];f=H[b+72>>2];a=g+N(f?f-1|0:0,20)|0}d=N(f,20)+g|0;g=H[a+4>>2];H[d>>2]=H[a>>2];H[d+4>>2]=g;H[d+16>>2]=H[a+16>>2];g=H[a+12>>2];H[d+8>>2]=H[a+8>>2];H[d+12>>2]=g;H[d>>2]=k;g=H[j+12>>2];f=H[a+4>>2];H[d+20>>2]=H[a>>2];H[d+24>>2]=f;H[d+36>>2]=H[a+16>>2];f=H[a+12>>2];H[d+28>>2]=H[a+8>>2];H[d+32>>2]=f;H[d+20>>2]=g;if(o){break k}break j}if(o){break x}d=H[h>>2];a=d+1|0;if(w>>>0<=a>>>0){break x}k=H[b+80>>2];e=H[k+N(a,20)>>2];if(e-4520>>>0>=88&e-55243>>>0>48){break x}e=H[b+68>>2];g=d+2|0;q=e>>>0>>0?e:g;n=q-d|0;if(n>>>0<2){break x}e=H[b+144>>2]|32;H[b+144>>2]=e;if(d>>>0>=q>>>0){break x}f=-1;o=d;r=q+(d^-1)|0;if(r>>>0>=3){t=n&-4;g=0;while(1){p=k+N(o,20)|0;l=H[p+8>>2];f=f>>>0>>0?f:l;l=H[p+28>>2];f=f>>>0>>0?f:l;l=H[p+48>>2];f=f>>>0>>0?f:l;p=H[p+68>>2];f=f>>>0

>>0?f:p;o=o+4|0;g=g+4|0;if((t|0)!=(g|0)){continue}break}}g=0;p=n&3;if(p){while(1){t=H[(k+N(o,20)|0)+8>>2];f=f>>>0>>0?f:t;o=o+1|0;g=g+1|0;if((p|0)!=(g|0)){continue}break}}E:{if(!(n&1)){a=d;break E}d=k+N(d,20)|0;if(H[d+8>>2]==(f|0)){break E}H[b+144>>2]=e;H[d+4>>2]=H[d+4>>2]|3}if(!r){break x}while(1){d=k+N(a,20)|0;if(H[d+8>>2]!=(f|0)){e=e|32;H[b+144>>2]=e;H[d+4>>2]=H[d+4>>2]|3}d=k+N(a+1|0,20)|0;if(H[d+8>>2]!=(f|0)){e=e|32;H[b+144>>2]=e;H[d+4>>2]=H[d+4>>2]|3}a=a+2|0;if((q|0)!=(a|0)){continue}break}}i=u?m+1|0:i}if(I[b+61|0]){F:{if(H[b+84>>2]==H[b+80>>2]){f=H[b+72>>2];if((f|0)==H[h>>2]){break F}}if(!ec(b,1,1)){break b}d=H[b+80>>2]+N(H[h>>2],20)|0;e=H[d+4>>2];a=H[b+84>>2]+N(H[b+72>>2],20)|0;H[a>>2]=H[d>>2];H[a+4>>2]=e;H[a+16>>2]=H[d+16>>2];e=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=e;f=H[b+72>>2]}H[b+72>>2]=f+1}H[h>>2]=H[h>>2]+1;break b}g=H[j+16>>2];f=H[a+4>>2];H[d+40>>2]=H[a>>2];H[d+44>>2]=f;H[d+56>>2]=H[a+16>>2];f=H[a+12>>2];H[d+48>>2]=H[a+8>>2];H[d+52>>2]=f;H[d+40>>2]=g}H[h>>2]=H[h>>2]+1;H[b+72>>2]=H[b+72>>2]+e}if(!(!u|o)){G:{if(I[b+61|0]){H:{if(H[b+84>>2]==H[b+80>>2]){f=H[b+72>>2];if((f|0)==H[h>>2]){break H}}if(!ec(b,1,1)){break G}d=H[b+80>>2]+N(H[h>>2],20)|0;g=H[d+4>>2];a=H[b+84>>2]+N(H[b+72>>2],20)|0;H[a>>2]=H[d>>2];H[a+4>>2]=g;H[a+16>>2]=H[d+16>>2];g=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=g;f=H[b+72>>2]}H[b+72>>2]=f+1}H[h>>2]=H[h>>2]+1}e=e+1|0}if(!I[b+60|0]){break a}a=H[b+84>>2];d=a+N(m,20)|0;F[d+39|0]=2;F[d+19|0]=1;i=e+m|0;d=m+2|0;if(i>>>0>d>>>0){F[(a+N(d,20)|0)+19|0]=3}if(H[b+20>>2]){break b}eh(b,m,i)}d=H[h>>2];if(w>>>0>d>>>0){continue}break}}cf(b);xb=j+32|0}function WX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;f=xb-448|0;xb=f;i=I[b+11|0];h=i<<24>>24<0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{j=H[b+4>>2];da:{if(!(h?j:i)){break da}ea:{if(!h){H[f+440>>2]=H[b+8>>2];h=H[b+4>>2];H[f+432>>2]=H[b>>2];H[f+436>>2]=h;break ea}df(f+432|0,H[b>>2],j)}if(I[b+11|0]>>>7|0){h=H[b>>2]}else{h=b}if(I[b+11|0]>>>7|0){b=H[b+4>>2]}else{b=I[b+11|0]}i=xb-16|0;xb=i;H[i+12>>2]=62;j=-1;if(b>>>0>83){b=b-83|0;if(b){b=ig(h+332|0,H[i+12>>2],b)}else{b=0}j=b?b-h>>2:-1}xb=i+16|0;fa:{if((j|0)==-1){break fa}l=M[d+16>>3];m=M[d>>3];n=M[d+24>>3];o=M[d+8>>3];H[197455]=0;H[f+424>>2]=0;H[f+416>>2]=0;H[f+420>>2]=0;ga(1766,a|0,f+416|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break ca}F[f+411|0]=1;H[197455]=0;Mb(f+400|0,428332,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[f+404>>2]=0;b=H[a+76>>2];H[197455]=0;ga(1754,b|0,f+400|0,H[f+416>>2]!=H[f+420>>2]|0);b=H[197455];H[197455]=0;if((b|0)==1){break ba}b=H[f+416>>2];d=H[f+420>>2];if((b|0)!=(d|0)){while(1){e=H[a+76>>2];H[197455]=0;ga(1755,e|0,b|0,b+12|0);e=H[197455];H[197455]=0;if((e|0)==1){break ba}b=b+24|0;if((d|0)!=(b|0)){continue}break}b=H[a+76>>2];H[197455]=0;ka(1760,b|0,f+400|0,1,0);b=H[197455];H[197455]=0;if((b|0)==1){break ba}}if(F[f+411|0]<0){Kb(H[f+400>>2])}b=F[f+443|0];if(((b|0)<0?H[f+436>>2]:b&255)>>>0<=82){H[197455]=0;ia(2913,f+432|0);a=H[197455];H[197455]=0;if((a|0)==1){break ca}X()}d=j-83|0;ga:{if((d|0)==-1){if((b|0)<0){H[H[f+432>>2]+332>>2]=0;H[f+436>>2]=83;break ga}H[f+764>>2]=0;F[f+443|0]=83;break ga}H[197455]=0;ga(2914,f+432|0,83,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break ca}}g=M[c>>3];H[197455]=0;fa(1756,f+112|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break aa}H[197455]=0;b=ca(1758,f+112|0,0,428340)|0;d=H[197455];H[197455]=0;if((d|0)==1){break $}H[f+136>>2]=H[b+8>>2];d=H[b+4>>2];H[f+128>>2]=H[b>>2];H[f+132>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,f+128|0,428356)|0;d=H[197455];H[197455]=0;if((d|0)==1){break _}H[f+152>>2]=H[b+8>>2];d=H[b+4>>2];H[f+144>>2]=H[b>>2];H[f+148>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;g=M[c+8>>3];H[197455]=0;fa(1756,f+96|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Z}H[197455]=0;b=I[f+107|0];d=b<<24>>24<0;b=ca(1759,f+144|0,(d?H[f+96>>2]:f+96|0)|0,(d?H[f+100>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break Y}H[f+168>>2]=H[b+8>>2];d=H[b+4>>2];H[f+160>>2]=H[b>>2];H[f+164>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,f+160|0,428380)|0;d=H[197455];H[197455]=0;if((d|0)==1){break X}H[f+184>>2]=H[b+8>>2];d=H[b+4>>2];H[f+176>>2]=H[b>>2];H[f+180>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,f+176|0,428392)|0;d=H[197455];H[197455]=0;if((d|0)==1){break W}H[f+200>>2]=H[b+8>>2];d=H[b+4>>2];H[f+192>>2]=H[b>>2];H[f+196>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;g=M[c>>3];k=M[c+16>>3];H[197455]=0;fa(1756,f+80|0,+(k-g),-1);b=H[197455];H[197455]=0;if((b|0)==1){break V}H[197455]=0;b=I[f+91|0];d=b<<24>>24<0;b=ca(1759,f+192|0,(d?H[f+80>>2]:f+80|0)|0,(d?H[f+84>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break U}H[f+216>>2]=H[b+8>>2];d=H[b+4>>2];H[f+208>>2]=H[b>>2];H[f+212>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,f+208|0,428424)|0;d=H[197455];H[197455]=0;if((d|0)==1){break T}H[f+232>>2]=H[b+8>>2];d=H[b+4>>2];H[f+224>>2]=H[b>>2];H[f+228>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;g=M[c+8>>3];k=M[c+24>>3];H[197455]=0;fa(1756,f- -64|0,+(k-g),-1);b=H[197455];H[197455]=0;if((b|0)==1){break S}H[197455]=0;b=I[f+75|0];c=b<<24>>24<0;b=ca(1759,f+224|0,(c?H[f+64>>2]:f- -64|0)|0,(c?H[f+68>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break R}H[f+248>>2]=H[b+8>>2];c=H[b+4>>2];H[f+240>>2]=H[b>>2];H[f+244>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,f+240|0,428380)|0;c=H[197455];H[197455]=0;if((c|0)==1){break Q}H[f+264>>2]=H[b+8>>2];c=H[b+4>>2];H[f+256>>2]=H[b>>2];H[f+260>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,f+256|0,428468)|0;c=H[197455];H[197455]=0;if((c|0)==1){break P}H[f+280>>2]=H[b+8>>2];c=H[b+4>>2];H[f+272>>2]=H[b>>2];H[f+276>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;c=l>24<0;b=ca(1759,f+272|0,(d?H[f+48>>2]:f+48|0)|0,(d?H[f+52>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break N}H[f+296>>2]=H[b+8>>2];d=H[b+4>>2];H[f+288>>2]=H[b>>2];H[f+292>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break M}H[f+312>>2]=H[f+296>>2];H[f+296>>2]=0;b=H[f+292>>2];H[f+304>>2]=H[f+288>>2];H[f+308>>2]=b;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;d=n>24<0;b=ca(1759,f+304|0,(e?H[f+32>>2]:f+32|0)|0,(e?H[f+36>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break K}H[f+328>>2]=H[b+8>>2];e=H[b+4>>2];H[f+320>>2]=H[b>>2];H[f+324>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+320|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break J}H[f+344>>2]=H[f+328>>2];H[f+328>>2]=0;b=H[f+324>>2];H[f+336>>2]=H[f+320>>2];H[f+340>>2]=b;H[f+320>>2]=0;H[f+324>>2]=0;H[197455]=0;fa(1756,f+16|0,+((c?m:l)-g),-1);b=H[197455];H[197455]=0;if((b|0)==1){break I}H[197455]=0;b=I[f+27|0];c=b<<24>>24<0;b=ca(1759,f+336|0,(c?H[f+16>>2]:f+16|0)|0,(c?H[f+20>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break H}H[f+360>>2]=H[b+8>>2];c=H[b+4>>2];H[f+352>>2]=H[b>>2];H[f+356>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+352|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break G}H[f+376>>2]=H[f+360>>2];H[f+360>>2]=0;b=H[f+356>>2];H[f+368>>2]=H[f+352>>2];H[f+372>>2]=b;H[f+352>>2]=0;H[f+356>>2]=0;H[197455]=0;fa(1756,f|0,+((d?o:n)-k),-1);b=H[197455];H[197455]=0;if((b|0)==1){break F}H[197455]=0;b=I[f+11|0];c=b<<24>>24<0;b=ca(1759,f+368|0,(c?H[f>>2]:f)|0,(c?H[f+4>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break E}H[f+392>>2]=H[b+8>>2];c=H[b+4>>2];H[f+384>>2]=H[b>>2];H[f+388>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+384|0,34);b=H[197455];H[197455]=0;if((b|0)==1){break D}H[f+408>>2]=H[f+392>>2];H[f+392>>2]=0;b=H[f+388>>2];H[f+400>>2]=H[f+384>>2];H[f+404>>2]=b;H[f+384>>2]=0;H[f+388>>2]=0;if(F[f+11|0]<0){Kb(H[f>>2])}if(F[f+379|0]<0){Kb(H[f+368>>2])}if(F[f+363|0]<0){Kb(H[f+352>>2])}if(F[f+27|0]<0){Kb(H[f+16>>2])}if(F[f+347|0]<0){Kb(H[f+336>>2])}if(F[f+331|0]<0){Kb(H[f+320>>2])}if(F[f+43|0]<0){Kb(H[f+32>>2])}if(F[f+315|0]<0){Kb(H[f+304>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+59|0]<0){Kb(H[f+48>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}if(F[f+75|0]<0){Kb(H[f+64>>2])}if(F[f+235|0]<0){Kb(H[f+224>>2])}if(F[f+219|0]<0){Kb(H[f+208>>2])}if(F[f+91|0]<0){Kb(H[f+80>>2])}if(F[f+203|0]<0){Kb(H[f+192>>2])}if(F[f+187|0]<0){Kb(H[f+176>>2])}if(F[f+171|0]<0){Kb(H[f+160>>2])}if(F[f+107|0]<0){Kb(H[f+96>>2])}if(F[f+155|0]<0){Kb(H[f+144>>2])}if(F[f+139|0]<0){Kb(H[f+128>>2])}if(F[f+123|0]<0){Kb(H[f+112>>2])}b=F[f+411|0];c=H[f+400>>2];d=H[f+404>>2];H[197455]=0;e=c;c=(b|0)<0;la(1768,f+432|0,83,(c?e:f+400|0)|0,(c?d:b&255)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}b=H[a+76>>2];H[197455]=0;ba(1761,b|0,f+432|0);b=H[197455];H[197455]=0;if((b|0)==1){break e}F[f+395|0]=1;H[197455]=0;Mb(f+384|0,428332,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[f+388>>2]=0;a=H[a+76>>2];H[197455]=0;ka(1760,a|0,f+384|0,0,0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[f+395|0]<0){Kb(H[f+384>>2])}if(F[f+411|0]<0){Kb(H[f+400>>2])}a=H[f+416>>2];if(!a){break fa}b=H[f+420>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[f+416>>2]}H[f+420>>2]=a;Kb(b)}if(F[f+443|0]>=0){break da}Kb(H[f+432>>2])}xb=f+448|0;return}b=$()|0;_()|0;break b}b=$()|0;_()|0;if(F[f+411|0]>=0){break b}Kb(H[f+400>>2]);break b}b=$()|0;_()|0;break b}b=$()|0;_()|0;break f}b=$()|0;_()|0;break g}b=$()|0;_()|0;break h}b=$()|0;_()|0;break i}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;break p}b=$()|0;_()|0;break q}b=$()|0;_()|0;break r}b=$()|0;_()|0;break s}b=$()|0;_()|0;break t}b=$()|0;_()|0;break u}b=$()|0;_()|0;break v}b=$()|0;_()|0;break w}b=$()|0;_()|0;break x}b=$()|0;_()|0;break y}b=$()|0;_()|0;break z}b=$()|0;_()|0;break A}b=$()|0;_()|0;break B}b=$()|0;_()|0;break C}b=$()|0;_()|0;if(F[f+395|0]>=0){break C}Kb(H[f+384>>2])}if(F[f+11|0]>=0){break B}Kb(H[f>>2])}if(F[f+379|0]>=0){break A}Kb(H[f+368>>2])}if(F[f+363|0]>=0){break z}Kb(H[f+352>>2])}if(F[f+27|0]>=0){break y}Kb(H[f+16>>2])}if(F[f+347|0]>=0){break x}Kb(H[f+336>>2])}if(F[f+331|0]>=0){break w}Kb(H[f+320>>2])}if(F[f+43|0]>=0){break v}Kb(H[f+32>>2])}if(F[f+315|0]>=0){break u}Kb(H[f+304>>2])}if(F[f+299|0]>=0){break t}Kb(H[f+288>>2])}if(F[f+59|0]>=0){break s}Kb(H[f+48>>2])}if(F[f+283|0]>=0){break r}Kb(H[f+272>>2])}if(F[f+267|0]>=0){break q}Kb(H[f+256>>2])}if(F[f+251|0]>=0){break p}Kb(H[f+240>>2])}if(F[f+75|0]>=0){break o}Kb(H[f+64>>2])}if(F[f+235|0]>=0){break n}Kb(H[f+224>>2])}if(F[f+219|0]>=0){break m}Kb(H[f+208>>2])}if(F[f+91|0]>=0){break l}Kb(H[f+80>>2])}if(F[f+203|0]>=0){break k}Kb(H[f+192>>2])}if(F[f+187|0]>=0){break j}Kb(H[f+176>>2])}if(F[f+171|0]>=0){break i}Kb(H[f+160>>2])}if(F[f+107|0]>=0){break h}Kb(H[f+96>>2])}if(F[f+155|0]>=0){break g}Kb(H[f+144>>2])}if(F[f+139|0]>=0){break f}Kb(H[f+128>>2])}if(F[f+123|0]>=0){break b}Kb(H[f+112>>2]);break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[f+395|0]>=0){break c}Kb(H[f+384>>2])}if(F[f+411|0]>=0){break b}Kb(H[f+400>>2])}yc(f+416|0);if(F[f+443|0]<0){Kb(H[f+432>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function Qq(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;h=xb-240|0;xb=h;H[h+8>>2]=0;f=6;a:{if(!b|!d&(c|0)>=0){break a}q=I[b|0]&2?H[b+16>>2]!=0:q;H[h+12>>2]=0;b:{if(!a){f=33;break b}i=H[a>>2];g=zb[H[i+4>>2]](i,40)|0;c:{if(!g){f=64;break c}F[g+24|0]=0;F[g+25|0]=0;F[g+26|0]=0;F[g+27|0]=0;F[g+28|0]=0;F[g+29|0]=0;F[g+30|0]=0;F[g+31|0]=0;F[g|0]=0;F[g+1|0]=0;F[g+2|0]=0;F[g+3|0]=0;F[g+4|0]=0;F[g+5|0]=0;F[g+6|0]=0;F[g+7|0]=0;F[g+32|0]=0;F[g+33|0]=0;F[g+34|0]=0;F[g+35|0]=0;F[g+36|0]=0;F[g+37|0]=0;F[g+38|0]=0;F[g+39|0]=0;F[g+16|0]=0;F[g+17|0]=0;F[g+18|0]=0;F[g+19|0]=0;F[g+20|0]=0;F[g+21|0]=0;F[g+22|0]=0;F[g+23|0]=0;F[g+8|0]=0;F[g+9|0]=0;F[g+10|0]=0;F[g+11|0]=0;F[g+12|0]=0;F[g+13|0]=0;F[g+14|0]=0;F[g+15|0]=0;H[g+28>>2]=i;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{m=H[b>>2];if(m&1){m=H[b+4>>2];f=H[b+8>>2];H[g+32>>2]=0;H[g+8>>2]=0;H[g+20>>2]=0;H[g+24>>2]=0;H[g>>2]=m;H[g+4>>2]=f;break m}n:{if(!(m&4)){if(!(m&2)|!H[b+16>>2]){break n}zb[H[i+8>>2]](i,g);g=H[b+16>>2];break m}f=Dk(g,H[b+12>>2]);H[g+16>>2]=H[b+12>>2];if(!f){break m}}zb[H[i+8>>2]](i,g);H[h+12>>2]=0;m=0;break l}H[g+28>>2]=i;H[h+12>>2]=g;r=H[a>>2];o:{o=H[b>>2];if(!(o&8)){break o}m=H[b+20>>2];if(!m){break o}f=32;if(F[H[m>>2]]&1){g=0;e=h+12|0;if(o&16){g=H[b+28>>2];a=H[b+24>>2]}else{a=0}f=PC(m,e,q,c,a,g,h+8|0);if(!f){break j}g=H[h+12>>2];if(!g){break b}i=H[g+28>>2]}a=H[g+24>>2];if(a){zb[a|0](g)}if(q){break b}zb[H[i+8>>2]](i,g);break b}m=H[a+16>>2];if((m|0)<=0){f=11;m=0;break c}o=((m<<2)+a|0)+20|0;g=a+20|0;f=11;i=0;while(1){m=H[g>>2];if(F[H[m>>2]]&1){f=0;i=0;if(I[b|0]&16){f=H[b+24>>2];i=H[b+28>>2]}f=PC(m,h+12|0,q,c,f,i,h+8|0);if(!f){break j}p:{if(!e){break p}if(fc(H[H[H[g>>2]>>2]+8>>2],10087)|(f&255)!=142){break p}i=H[h+12>>2];f=H[i+20>>2];if(f){if(zb[f|0](i,0,0,0)|0){break k}}H[i+8>>2]=0;f=OC(a,i,c,d);if(f){break p}a=H[i+28>>2];b=H[i+24>>2];if(b){zb[b|0](i)}f=0;if(q){break a}zb[H[a+8>>2]](a,i);break a}if((f&255)!=2){break l}i=m}g=g+4|0;if(o>>>0>g>>>0){continue}break}m=i}q:{r:{i=f&255;switch(i-81|0){case 0:case 4:break q;case 1:case 2:case 3:break c;default:break r}}if((i|0)!=2){break c}}if(!e){break e}i=H[h+12>>2];if(i){break k}i=0;s=1;break i}e=H[i+20>>2];if(e){if(zb[e|0](i,0,0,0)|0){break i}}H[i+8>>2]=0;e=H[i+4>>2];if(!e){break i}g=H[i+20>>2];s:{if(g){f=zb[g|0](i,0,h+112|0,128)|0;break s}f=e>>>0<128?e:128;Ob(h+112|0,H[i>>2],f)}H[i+8>>2]=f;if(f>>>0<128){break i}t:{u:{if(I[h+194|0]|(I[h+112|0]|I[h+186|0])){break u}e=I[h+113|0];if(!e|e>>>0>33|(I[h+175|0]|I[(e+h|0)+114|0])){break u}e=F[h+195|0];if((e|0)<0){break u}f=Pq(a,i,(I[h+198|0]|(I[h+196|0]<<16|(e&255)<<24|I[h+197|0]<<8))+255&-128,c,d);if((f&255)!=2){break t}}f=Pq(a,i,0,c,d)}e=f&255;if((e|0)==85){break h}if((e|0)!=2){break g}break h}b=zb[H[r+4>>2]](r,12)|0;if(!b){f=64;break b}F[b|0]=0;F[b+1|0]=0;F[b+2|0]=0;F[b+3|0]=0;F[b+4|0]=0;F[b+5|0]=0;F[b+6|0]=0;F[b+7|0]=0;a=H[h+8>>2];H[b+8>>2]=a;e=H[a+96>>2];m=H[e+20>>2];H[b>>2]=m;H[(m?m+4|0:e+16|0)>>2]=b;H[e+20>>2]=b;v:{if((c|0)>=0){f=Vq(a,0);if(f){break v}f=LC(a,h+112|0);if(f){break v}H[a+88>>2]=H[h+112>>2]}b=H[a+8>>2];w:{if(!(b&1)){break w}f=G[a+74>>1];if((f|0)<0){f=0-f|0;G[a+74>>1]=f}if(b&32){break w}G[a+78>>1]=f}x:{if(!(b&2)){break x}c=H[a+28>>2];if((c|0)<=0){break x}e=H[a+32>>2];f=0;while(1){b=e+(f<<4)|0;m=G[b>>1];if((m|0)<0){m=0-m|0;G[b>>1]=m}i=H[b+8>>2];if((i|0)<0){H[b+8>>2]=0-i}i=H[b+12>>2];if((i|0)<0){H[b+12>>2]=0-i}if(m<<16>>16<0){H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0}f=f+1|0;if((c|0)!=(f|0)){continue}break}}b=H[a+128>>2];H[b+64>>2]=1;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=65536;H[b>>2]=65536;H[b+4>>2]=0;F[b+56|0]=255;if(d){H[d>>2]=a;f=0;break a}if(a){Ll(a)}f=0;break a}c=H[a+96>>2];if(!c){break a}d=H[a+128>>2];b=H[d+64>>2];H[d+64>>2]=b-1;if((b|0)>1){break a}b=H[c+16>>2];if(!b){break a}m=c+16|0;d=H[c+8>>2];while(1){if((a|0)!=H[b+8>>2]){b=H[b+4>>2];if(b){continue}break a}break}e=H[b>>2];i=e?e+4|0:m;m=H[b+4>>2];H[i>>2]=m;H[(m?m:c+20|0)>>2]=e;zb[H[d+8>>2]](d,b);Gj(d,a,c);break a}f=85}if(!(I[b|0]&4)){break g}o=H[a>>2];g=H[b+12>>2];n=h- -64|0;e=h+112|0;H[e>>2]=0;y:{z:{A:{if(i){k=H[i+20>>2];B:{if(k){f=85;if(zb[k|0](i,0,0,0)|0){break B}}H[i+8>>2]=0;H[h+16>>2]=0;H[e>>2]=0;f=yi(i,333319,n)}H[h+16>>2]=f;H[e+4>>2]=0;f=H[i+20>>2];if(!f){break A}if(!(zb[f|0](i,0,0,0)|0)){break A}H[h+20>>2]=85;break z}H[h+16>>2]=81;H[e+4>>2]=0;H[h+20>>2]=81;H[e+8>>2]=0;H[h+24>>2]=0;t=h,u=sq(a,0,g,e+8|0,n+8|0),H[t+24>>2]=u;H[e+12>>2]=0;H[h+28>>2]=0;f=ac(g);l=f+18|0;C:{D:{if((f|0)<=-18){p=6;if(l){break C}break D}j=H[a>>2];j=zb[H[j+4>>2]](j,l)|0;p=64;if(!j){break C}Nb(j,0,l)}p=Ob(j,g,f);f=p+f|0;j=I[11598]|I[11599]<<8;F[f+16|0]=j;F[f+17|0]=j>>>8;j=I[11594]|I[11595]<<8|(I[11596]<<16|I[11597]<<24);l=I[11590]|I[11591]<<8|(I[11592]<<16|I[11593]<<24);F[f+8|0]=l;F[f+9|0]=l>>>8;F[f+10|0]=l>>>16;F[f+11|0]=l>>>24;F[f+12|0]=j;F[f+13|0]=j>>>8;F[f+14|0]=j>>>16;F[f+15|0]=j>>>24;j=I[11586]|I[11587]<<8|(I[11588]<<16|I[11589]<<24);l=I[11582]|I[11583]<<8|(I[11584]<<16|I[11585]<<24);F[f|0]=l;F[f+1|0]=l>>>8;F[f+2|0]=l>>>16;F[f+3|0]=l>>>24;F[f+4|0]=j;F[f+5|0]=j>>>8;F[f+6|0]=j>>>16;F[f+7|0]=j>>>24;H[e+12>>2]=p;H[n+12>>2]=0;p=0}H[h+28>>2]=p;H[e+16>>2]=0;H[h+32>>2]=0;j=6;f=ac(g);l=f+6|0;E:{F:{if((f|0)<=-6){if(!l){break F}break E}j=H[a>>2];k=zb[H[j+4>>2]](j,l)|0;if(!k){j=64;break E}Nb(k,0,l)}j=0;l=Ob(k,g,f);f=l+f|0;k=I[11728]|I[11729]<<8;F[f+4|0]=k;F[f+5|0]=k>>>8;k=I[11724]|I[11725]<<8|(I[11726]<<16|I[11727]<<24);F[f|0]=k;F[f+1|0]=k>>>8;F[f+2|0]=k>>>16;F[f+3|0]=k>>>24;H[e+16>>2]=l;H[n+16>>2]=0}H[h+32>>2]=j;H[e+20>>2]=0;H[h+36>>2]=0;f=Pg(H[a>>2],g,11828);if(f){H[e+20>>2]=f;H[n+20>>2]=0;f=0}else{f=64}H[h+36>>2]=f;H[e+24>>2]=0;H[h+40>>2]=0;f=Pg(H[a>>2],g,11927);if(f){H[e+24>>2]=f;H[n+24>>2]=0;f=0}else{f=64}H[h+40>>2]=f;H[e+28>>2]=0;H[h+44>>2]=0;t=h,u=qq(a,0,g,e+28|0,n+28|0),H[t+44>>2]=u;H[e+32>>2]=0;H[h+48>>2]=0;t=h,u=pq(a,0,g,e+32|0,n+32|0),H[t+48>>2]=u;break y}H[i+8>>2]=0;H[h+20>>2]=0;H[e+4>>2]=0;t=h,u=yi(i,333312,n+4|0),H[t+20>>2]=u}H[e+8>>2]=0;G:{H:{f=H[i+20>>2];if(!f){break H}if(!(zb[f|0](i,0,0,0)|0)){break H}H[h+24>>2]=85;break G}H[i+8>>2]=0;H[h+24>>2]=0;t=h,u=sq(a,i,g,e+8|0,n+8|0),H[t+24>>2]=u}H[e+12>>2]=0;I:{J:{f=H[i+20>>2];if(!f){break J}if(!(zb[f|0](i,0,0,0)|0)){break J}H[h+28>>2]=85;break I}H[i+8>>2]=0;H[h+28>>2]=0;f=ac(g);k=f+18|0;K:{L:{if((f|0)<=-18){l=6;if(k){break K}break L}j=H[a>>2];j=zb[H[j+4>>2]](j,k)|0;l=64;if(!j){break K}Nb(j,0,k)}l=Ob(j,g,f);f=l+f|0;j=I[11598]|I[11599]<<8;F[f+16|0]=j;F[f+17|0]=j>>>8;j=I[11594]|I[11595]<<8|(I[11596]<<16|I[11597]<<24);k=I[11590]|I[11591]<<8|(I[11592]<<16|I[11593]<<24);F[f+8|0]=k;F[f+9|0]=k>>>8;F[f+10|0]=k>>>16;F[f+11|0]=k>>>24;F[f+12|0]=j;F[f+13|0]=j>>>8;F[f+14|0]=j>>>16;F[f+15|0]=j>>>24;j=I[11586]|I[11587]<<8|(I[11588]<<16|I[11589]<<24);k=I[11582]|I[11583]<<8|(I[11584]<<16|I[11585]<<24);F[f|0]=k;F[f+1|0]=k>>>8;F[f+2|0]=k>>>16;F[f+3|0]=k>>>24;F[f+4|0]=j;F[f+5|0]=j>>>8;F[f+6|0]=j>>>16;F[f+7|0]=j>>>24;H[e+12>>2]=l;H[n+12>>2]=0;l=0}H[h+28>>2]=l}H[e+16>>2]=0;M:{N:{f=H[i+20>>2];if(!f){break N}if(!(zb[f|0](i,0,0,0)|0)){break N}H[h+32>>2]=85;break M}H[i+8>>2]=0;H[h+32>>2]=0;k=6;f=ac(g);l=f+6|0;O:{P:{if((f|0)<=-6){if(l){break O}j=0;break P}j=H[a>>2];j=zb[H[j+4>>2]](j,l)|0;if(!j){k=64;break O}Nb(j,0,l)}k=0;l=Ob(j,g,f);f=l+f|0;j=I[11728]|I[11729]<<8;F[f+4|0]=j;F[f+5|0]=j>>>8;j=I[11724]|I[11725]<<8|(I[11726]<<16|I[11727]<<24);F[f|0]=j;F[f+1|0]=j>>>8;F[f+2|0]=j>>>16;F[f+3|0]=j>>>24;H[e+16>>2]=l;H[n+16>>2]=0}H[h+32>>2]=k}H[e+20>>2]=0;Q:{R:{f=H[i+20>>2];if(!f){break R}if(!(zb[f|0](i,0,0,0)|0)){break R}H[h+36>>2]=85;break Q}H[i+8>>2]=0;H[h+36>>2]=0;f=Pg(H[a>>2],g,11828);if(f){H[e+20>>2]=f;H[n+20>>2]=0;f=0}else{f=64}H[h+36>>2]=f}H[e+24>>2]=0;S:{T:{f=H[i+20>>2];if(!f){break T}if(!(zb[f|0](i,0,0,0)|0)){break T}H[h+40>>2]=85;break S}H[i+8>>2]=0;H[h+40>>2]=0;f=Pg(H[a>>2],g,11927);if(f){H[e+24>>2]=f;H[n+24>>2]=0;f=0}else{f=64}H[h+40>>2]=f}H[e+28>>2]=0;U:{V:{f=H[i+20>>2];if(!f){break V}if(!(zb[f|0](i,0,0,0)|0)){break V}H[h+44>>2]=85;break U}H[i+8>>2]=0;H[h+44>>2]=0;t=h,u=qq(a,i,g,e+28|0,n+28|0),H[t+44>>2]=u}H[e+32>>2]=0;W:{f=H[i+20>>2];if(!f){break W}if(!(zb[f|0](i,0,0,0)|0)){break W}H[h+48>>2]=85;break y}H[i+8>>2]=0;H[h+48>>2]=0;t=h,u=pq(a,i,g,e+32|0,n+32|0),H[t+48>>2]=u}e=0;j=2;f=0;while(1){X:{l=H[(f<<3)+29156>>2]-3|0;Y:{if(e&255?l>>>0<=1:0){break Y}p=f<<2;if(H[p+(h+16|0)>>2]){break Y}k=H[(h+112|0)+p>>2];if(!k){k=H[b+12>>2]}Z:{n=H[a>>2];g=zb[H[n+4>>2]](n,40)|0;_:{if(!g){j=64;break _}F[g+24|0]=0;F[g+25|0]=0;F[g+26|0]=0;F[g+27|0]=0;F[g+28|0]=0;F[g+29|0]=0;F[g+30|0]=0;F[g+31|0]=0;F[g|0]=0;F[g+1|0]=0;F[g+2|0]=0;F[g+3|0]=0;F[g+4|0]=0;F[g+5|0]=0;F[g+6|0]=0;F[g+7|0]=0;F[g+32|0]=0;F[g+33|0]=0;F[g+34|0]=0;F[g+35|0]=0;F[g+36|0]=0;F[g+37|0]=0;F[g+38|0]=0;F[g+39|0]=0;F[g+16|0]=0;F[g+17|0]=0;F[g+18|0]=0;F[g+19|0]=0;F[g+20|0]=0;F[g+21|0]=0;F[g+22|0]=0;F[g+23|0]=0;F[g+8|0]=0;F[g+9|0]=0;F[g+10|0]=0;F[g+11|0]=0;F[g+12|0]=0;F[g+13|0]=0;F[g+14|0]=0;F[g+15|0]=0;H[g+28>>2]=n;j=Dk(g,k);H[g+16>>2]=k;if(!j){break Z}zb[H[n+8>>2]](n,g)}e=l>>>0<2?(j&255)==81?1:e:e;break Y}H[g+28>>2]=n;j=Pq(a,g,H[(h- -64|0)+p>>2],c,d);n=H[g+28>>2];k=H[g+24>>2];if(k){zb[k|0](g)}zb[H[n+8>>2]](n,g);if(!j){j=0;break X}e=l>>>0<2?1:e}f=f+1|0;if((f|0)!=9){continue}}break}a=H[h+112>>2];if(a){zb[H[o+8>>2]](o,a);H[h+112>>2]=0}a=H[h+116>>2];if(a){zb[H[o+8>>2]](o,a);H[h+116>>2]=0}a=H[h+120>>2];if(a){zb[H[o+8>>2]](o,a);H[h+120>>2]=0}a=H[h+124>>2];if(a){zb[H[o+8>>2]](o,a)}a=H[h+128>>2];if(a){zb[H[o+8>>2]](o,a)}a=H[h+132>>2];if(a){zb[H[o+8>>2]](o,a)}a=H[h+136>>2];if(a){zb[H[o+8>>2]](o,a)}a=H[h+140>>2];if(a){zb[H[o+8>>2]](o,a)}a=H[h+144>>2];if(a){zb[H[o+8>>2]](o,a)}if(!j){break f}break d}if(f){break e}}f=0;if(s){break a}a=H[i+28>>2];b=H[i+24>>2];if(b){zb[b|0](i)}if(q){break a}zb[H[a+8>>2]](a,i);break a}if((f&255)!=2){break c}}f=2}a=H[h+12>>2];if(!a){break b}b=H[a+28>>2];c=H[a+24>>2];if(c){zb[c|0](a)}if(q){break b}zb[H[b+8>>2]](b,a)}a=H[h+8>>2];if(!a){break a}Gj(r,a,m)}xb=h+240|0;return f}function FJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;e=xb-1536|0;xb=e;H[b>>2]=1;n=nf(H[b+96>>2],10650,1);H[b+488>>2]=n;l=rg(H[H[b+96>>2]+4>>2],10788);H[b+492>>2]=l;a:{if(!l){a=11;break a}q=b,r=rg(H[H[b+96>>2]+4>>2],10580),H[q+552>>2]=r;i=H[b+492>>2];a=e+8|0;Nb(a,0,380);H[b+544>>2]=0;H[b+536>>2]=-1;H[b+540>>2]=-1;H[b+284>>2]=1;H[b+348>>2]=3932;H[b+172>>2]=4;H[b+276>>2]=2596864;H[b+280>>2]=7;f=H[b+104>>2];g=H[b+100>>2];zb[H[H[i+4>>2]>>2]](a,0,0,g);H[e+92>>2]=0;H[e+96>>2]=0;F[e+99|0]=0;F[e+100|0]=0;F[e+101|0]=0;F[e+102|0]=0;H[e+84>>2]=0;H[e+88>>2]=0;H[e+80>>2]=f;a=Yt(f,11316,14);H[e+4>>2]=a;b:{c:{d:{if(a){if((a&255)!=2){break d}a=Yt(f,11489,10);H[e+4>>2]=a;if(a){break d}}a=bc(f,0);H[e+4>>2]=a;if(a){break d}h=nc(f,e+1528|0);e:{f:{g:{h:{a=H[e+1528>>2];if(!a){if((h+32767&65535)>>>0>=2){break g}d=Pe(f,e+1528|0);a=H[e+1528>>2];if(!a){break h}}H[e+4>>2]=a;break d}H[e+4>>2]=0;if((h|0)==32769){break f}}a=bc(f,0);H[e+4>>2]=a;if(a){break d}d=H[f+4>>2];break e}F[e+100|0]=1}i:{if(!H[f+20>>2]){a=H[f+8>>2];h=H[f>>2];F[e+101|0]=1;H[e+88>>2]=d;H[e+84>>2]=a+h;a=ud(f,d);H[e+4>>2]=a;if(a){break d}d=H[e+88>>2];break i}h=pc(g,d,e+4|0);H[e+84>>2]=h;a=H[e+4>>2];if(a){break d}a=wd(f,h,d);H[e+4>>2]=a;if(a){break d}H[e+88>>2]=d}f=H[e+84>>2];H[e+12>>2]=f;H[e+8>>2]=f;H[e+16>>2]=d+f;break c}if(I[e+101|0]){H[e>>2]=a;break b}a=H[e+84>>2];if(a){zb[H[g+8>>2]](g,a)}f=0;H[e+84>>2]=0;a=H[e+4>>2];H[e>>2]=a;if(a){break b}d=H[e+88>>2]}a=Xt(b,e+8|0,f,d);H[e>>2]=a;if(a){break b}j=H[e+24>>2];a=H[e+80>>2];H[e+4>>2]=0;j:{k:{l:{m:{if(I[e+100|0]){h=H[a+8>>2];H[e+96>>2]=0;while(1){f=nc(a,e+1528|0);n:{d=H[e+1528>>2];if(!d){if((f+32767&65535)>>>0>=2){H[e+4>>2]=0;break m}g=Pe(a,e+1528|0);d=H[e+1528>>2];if(!d){break n}}H[e+4>>2]=d;H[e>>2]=d;break b}H[e+4>>2]=0;if((f|0)!=32770){break m}H[e+96>>2]=g+H[e+96>>2];g=ud(a,g);H[e+4>>2]=g;if(!g){continue}break}break k}d=H[e+84>>2];h=H[e+88>>2];f=d+h|0;a=d;while(1){o:{p:{if(I[a|0]!=101|a+9>>>0>=f>>>0|(I[a+1|0]!=101|I[a+2|0]!=120)){break p}if(I[a+3|0]!=101){break p}if(I[a+4|0]==99){break o}}a=a+1|0;if(f>>>0>a>>>0){continue}H[e>>2]=3;break b}a=a+10|0;H[e+16>>2]=a;H[e+8>>2]=d;q:{if(a>>>0>d>>>0){while(1){r:{if(I[d|0]!=101|d+5>>>0>=a>>>0|(I[d+1|0]!=101|I[d+2|0]!=120)){break r}if(I[d+3|0]!=101){break r}if(I[d+4|0]==99){break q}}zb[H[e+40>>2]](e+8|0);if(!H[e+20>>2]){zb[H[e+36>>2]](e+8|0);d=H[e+8>>2];if(d>>>0>>0){continue}}break}h=H[e+88>>2];d=H[e+84>>2]}g=3;f=d+h|0;if(f>>>0>a>>>0){continue}break k}break}H[e+16>>2]=H[e+84>>2]+H[e+88>>2];zb[H[e+40>>2]](e+8|0);h=H[e+16>>2];a=H[e+8>>2];f=h-a|0;d=Kg(a,10,f);if(d){d=Kg(a,13,f)>>>0>>0}else{d=1}g=3;if(a>>>0>=h>>>0){break k}k=a+f|0;while(1){s:{f=I[a|0];if(!((f|0)==9|(f|0)==32|d&(f|0)==13)){if((f|0)!=10){break s}}a=a+1|0;if((k|0)!=(a|0)){continue}break k}break}d=H[e+84>>2];f=H[e+88>>2]+(d-a|0)|0;t:{if(I[e+101|0]){d=pc(j,f+1|0,e+4|0);H[e+92>>2]=d;g=H[e+4>>2];if(g){break k}H[e+96>>2]=f;break t}H[e+96>>2]=f;H[e+92>>2]=d;F[e+102|0]=1;H[e+84>>2]=0;H[e+88>>2]=0}u:{if(h>>>0<=a+3>>>0){break u}v:{g=I[a|0];if(g-48>>>0<10){break v}switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break v;default:break u}}w:{g=I[a+1|0];if(g-48>>>0<10){break w}switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break w;default:break u}}x:{g=I[a+2|0];if(g-48>>>0<10){break x}switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break x;default:break u}}y:{g=I[a+3|0];if(g-48>>>0<10){break y}switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break y;default:break u}}H[e+8>>2]=a;zb[H[H[i+4>>2]+24>>2]](e+8|0,d,f,e+1528|0,0)|0;a=H[e+1528>>2];H[e+96>>2]=a;F[a+H[e+92>>2]|0]=0;break l}$c(d,a,f);break l}if(!H[e+96>>2]){H[e>>2]=3;break b}g=bc(a,h);H[e+4>>2]=g;if(g){break k}q=e,r=pc(j,H[e+96>>2],e+4|0),H[q+92>>2]=r;g=H[e+4>>2];if(g){break k}H[e+96>>2]=0;f=nc(a,e+1528|0);z:{if(H[e+1528>>2]){break z}while(1){if((f+32767&65535)>>>0>1){break z}d=Pe(a,e+1528|0);if(H[e+1528>>2]){break z}H[e+4>>2]=0;if((f&65535)!=32770){break z}g=wd(a,H[e+92>>2]+H[e+96>>2]|0,d);H[e+4>>2]=g;if(g){break k}H[e+96>>2]=d+H[e+96>>2];f=nc(a,e+1528|0);if(!H[e+1528>>2]){continue}break}}H[e+4>>2]=0}zb[H[i+16>>2]](H[e+92>>2],H[e+96>>2],55665);g=3;if(K[e+96>>2]>3){break j}}H[e>>2]=g;break b}F[H[e+92>>2]]=32;F[H[e+92>>2]+1|0]=32;F[H[e+92>>2]+2|0]=32;F[H[e+92>>2]+3|0]=32;a=H[e+92>>2];H[e+12>>2]=a;H[e+8>>2]=a;d=H[e+96>>2];H[e+16>>2]=d+a;f=H[e+4>>2];H[e>>2]=f;if(f){break b}a=Xt(b,e+8|0,a,d);H[e>>2]=a;if(a){break b}F[b+176|0]=I[b+176|0]&254;A:{B:{f=H[b+532>>2];if(!f){break B}if(H[f>>2]!=1<>2]){ak(b);f=H[b+532>>2];if(!f){break B}}a=H[f+416>>2];if(!(!a|(a|0)==H[f+4>>2])){H[f+416>>2]=0}C:{D:{if(H[f>>2]){d=H[f+4>>2];if(d){break D}}ak(b);f=H[b+532>>2];if(!f){break B}d=H[f+4>>2];if(!d){break C}}a=0;while(1){if(I[(N(a,12)+f|0)+88|0]){a=a+1|0;if((d|0)!=(a|0)){continue}break C}break}ak(b);if(!H[b+532>>2]){break B}}a=H[b+544>>2];if(!a){break A}q=b,r=Ub(H[b+100>>2],4,0,a,0,e),H[q+548>>2]=r;if(!H[e>>2]){break A}H[b+544>>2]=0;break b}H[b+544>>2]=0}f=H[e+160>>2];H[b+420>>2]=f;if(H[e+336>>2]){H[b+404>>2]=H[e+320>>2];H[b+392>>2]=H[e+324>>2];H[b+408>>2]=H[e+348>>2];H[b+412>>2]=H[e+352>>2];H[b+416>>2]=H[e+376>>2];H[e+376>>2]=0;H[e+336>>2]=0}if(!(H[H[b+128>>2]+52>>2]|H[e+228>>2])){H[e>>2]=3}g=0;H[e+228>>2]=0;H[b+396>>2]=H[e+216>>2];H[b+428>>2]=H[e+240>>2];H[b+432>>2]=H[e+244>>2];H[b+400>>2]=H[e+164>>2];H[b+424>>2]=H[e+188>>2];H[e+188>>2]=0;H[e+164>>2]=0;if(H[b+368>>2]==1){h=0;i=H[e+124>>2];E:{if((i|0)<=0){break E}if((f|0)>0){d=0;while(1){j=d<<2;k=H[j+H[e+132>>2]>>2];o=d<<1;G[o+H[b+384>>2]>>1]=0;H[j+H[b+388>>2]>>2]=11262;F:{if(!k){break F}p=H[b+424>>2];a=0;while(1){m=H[(a<<2)+p>>2];if(fc(k,m)){a=a+1|0;if((f|0)!=(a|0)){continue}break F}break}G[H[b+384>>2]+o>>1]=a;H[j+H[b+388>>2]>>2]=m;if(!fc(11262,m)){break F}h=(d|0)<(h|0)?h:d+1|0;g=(d|0)<(g|0)?d:g}d=d+1|0;if((i|0)!=(d|0)){continue}break}break E}f=0;a=0;if(i-1>>>0>=3){g=i&-4;d=0;while(1){G[H[b+384>>2]+(a<<1)>>1]=0;H[H[b+388>>2]+(a<<2)>>2]=11262;h=a|1;G[H[b+384>>2]+(h<<1)>>1]=0;H[H[b+388>>2]+(h<<2)>>2]=11262;h=a|2;G[H[b+384>>2]+(h<<1)>>1]=0;H[H[b+388>>2]+(h<<2)>>2]=11262;h=a|3;G[H[b+384>>2]+(h<<1)>>1]=0;H[H[b+388>>2]+(h<<2)>>2]=11262;a=a+4|0;d=d+4|0;if((g|0)!=(d|0)){continue}break}}d=i&3;if(!d){g=0;h=0;break E}while(1){g=0;G[H[b+384>>2]+(a<<1)>>1]=0;H[H[b+388>>2]+(a<<2)>>2]=11262;a=a+1|0;h=0;f=f+1|0;if((d|0)!=(f|0)){continue}break}}H[b+380>>2]=h;H[b+376>>2]=g;H[b+372>>2]=H[e+104>>2]}if(K[b+280>>2]>=1001){H[b+280>>2]=7}if(K[b+284>>2]<1001){break b}H[b+284>>2]=1}a=H[e+24>>2];d=H[e+156>>2];if(d){zb[d|0](e+108|0)}d=H[e+264>>2];if(d){zb[d|0](e+216|0)}d=H[e+212>>2];if(d){zb[d|0](e+164|0)}d=H[e+316>>2];if(d){zb[d|0](e+268|0)}d=H[e+372>>2];if(d){zb[d|0](e+324|0)}mn(H[e+376>>2],a);d=H[e+376>>2];if(d){zb[H[a+8>>2]](a,d)}H[e+376>>2]=0;a=H[e+24>>2];d=H[e+92>>2];if(d){zb[H[a+8>>2]](a,d)}H[e+92>>2]=0;if(!I[e+101|0]){d=H[e+84>>2];if(d){zb[H[a+8>>2]](a,d)}H[e+84>>2]=0}zb[H[e+32>>2]](e+8|0);a=H[e>>2];if(a|(c|0)<0){break a}a=6;if(c&65535){break a}H[b+4>>2]=0;H[b+16>>2]=H[b+420>>2];c=H[b+8>>2];a=c|2577;H[b+8>>2]=a;if(I[b+156|0]){a=c|2581;H[b+8>>2]=a}g=H[b+532>>2];if(g){H[b+8>>2]=a|256}H[b+24>>2]=0;f=H[b+144>>2];H[b+20>>2]=f;G:{H:{if(f){a=H[b+140>>2];if(!a){break H}c=I[a|0];if(!c){a=10918;break G}while(1){I:{J:{d=c&255;c=I[f|0];if((d|0)==(c|0)){a=a+1|0;break J}d=d-32|0;if(!((d|0)!=13?d:0)){a=a+1|0;break I}K:{switch(c-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break H;case 0:case 13:break J;default:break K}}if(c){break H}break G}f=f+1|0}c=I[a|0];if(c){continue}break}a=10918;break G}a=H[b+364>>2];if(!a){break H}H[b+20>>2]=a}a=H[b+148>>2];a=a?a:10918}H[b+24>>2]=a;c=H[b+152>>2]!=0;H[b+12>>2]=c;a=H[b+148>>2];L:{if(!a){break L}if(fc(a,11038)){if(fc(a,11114)){break L}}H[b+12>>2]=c|2}H[b+28>>2]=0;H[b+32>>2]=0;H[b+52>>2]=G[b+466>>1];a=G[b+470>>1];H[b+56>>2]=a;f=H[b+472>>2]+65535>>16;H[b+60>>2]=f;d=H[b+476>>2]+65535>>16;H[b- -64>>2]=d;c=J[b+68>>1];if(!c){G[b+68>>1]=1e3;c=1e3}G[b+76>>1]=f;G[b+72>>1]=a;G[b+70>>1]=d;a=d-a|0;c=(N(c,12)>>>0)/10|0;G[b+74>>1]=(a|0)>c<<16>>16?a:c;a=0;d=H[b+492>>2];if(!(zb[H[H[d+12>>2]>>2]](e+8|0,b,0,0,H[b+424>>2],g,0,0,109)|0)){F[e+76|0]=0;F[e+78|0]=1;H[e+1372>>2]=H[b+404>>2];H[e+1376>>2]=H[b+408>>2];H[e+1380>>2]=H[b+412>>2];H[e+1384>>2]=H[b+416>>2];H[e+1504>>2]=H[b+548>>2];H[e+1508>>2]=H[b+544>>2];M:{if(H[b+420>>2]<=0){break M}N:{if($j(e+8|0,0,e+1528|0,e+4|0)){break N}a=H[H[H[e+12>>2]+128>>2]+52>>2];if(!a){break N}zb[H[H[a>>2]+4>>2]](H[a+4>>2],e+1528|0)}a=H[e+48>>2];if(H[b+420>>2]<2){break M}f=1;while(1){O:{if($j(e+8|0,f,e+1528|0,e+4|0)){break O}c=H[H[H[e+12>>2]+128>>2]+52>>2];if(!c){break O}zb[H[H[c>>2]+4>>2]](H[c+4>>2],e+1528|0)}c=H[e+48>>2];a=(a|0)<(c|0)?c:a;f=f+1|0;if((f|0)>2]){continue}break}}zb[H[H[d+12>>2]+4>>2]](e+8|0);G[b+76>>1]=(((a>>31)+a|0)+32768&-65536)>>>16}G[b+78>>1]=J[b+74>>1];H[b+80>>2]=J[b+158>>1]|J[b+160>>1]<<16;if(!n){a=0;break a}f=H[l+32>>2];H[e+8>>2]=b;H[e+12>>2]=1970170211;H[e+16>>2]=65539;a=of(H[f+12>>2],0,e+8|0,0);P:{if(!a){break P}c=a&255;if((c|0)==163){break P}if((c|0)!=7){break a}}G[e+16>>1]=7;a=0;Q:{R:{switch(H[b+368>>2]-1|0){case 1:G[e+18>>1]=0;H[e+12>>2]=1094995778;break Q;case 3:G[e+18>>1]=1;H[e+12>>2]=1094992453;f=f+4|0;break Q;case 0:G[e+18>>1]=2;H[e+12>>2]=1094992451;f=f+8|0;break Q;case 2:break R;default:break a}}f=f+12|0;G[e+18>>1]=3;H[e+12>>2]=1818326065}b=H[f>>2];if(!b){break a}a=of(b,0,e+8|0,0)}xb=e+1536|0;return a|0}function wK(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;g=xb-256|0;xb=g;a:{if(!b){e=36;break a}h=H[a+4>>2];if(!h){e=35;break a}if(!(H[H[h+128>>2]+52>>2]|K[h+16>>2]>c>>>0)){e=6;break a}if(d&2){d=I[h+9|0]&32?d&-3:d;d=d>>>14&2|d}if(d&1025){d=(I[h+9|0]&32?9:11)|d}n=d&2;H[b+44>>2]=(n?12:48)+b;b:{if(d&8){break b}e=H[b+116>>2];if(I[h+9|0]&128|(J[h+6>>1]&32767|(e|0)==-1)){break b}f=H[b+20>>2];i=H[b+16>>2];c:{e=zb[H[H[h+540>>2]+72>>2]](h,e,c,d,H[h+104>>2],a+76|0,g+8|0)|0;if(e){h=H[a+4>>2];j=H[h+8>>2]&1;if((e&255)!=157){break c}if(j){break b}G[g+8>>1]=0;G[g+240>>1]=0;G[g+224>>1]=0;G[g+6>>1]=0;if(!H[h+752>>2]){break a}zb[H[H[h+540>>2]+140>>2]](h,0,c,g+8|0,g+224|0);b=g+240|0;d=g+6|0;d:{if(I[h+292|0]){zb[H[H[h+540>>2]+140>>2]](h,1,c,b,d);break d}if(J[h+372>>1]!=65535){G[b>>1]=J[h+442>>1];c=G[h+442>>1]-G[h+444>>1]|0;b=c>>31;G[d>>1]=(b^c)-b;break d}G[b>>1]=J[h+220>>1];c=G[h+220>>1]-G[h+222>>1]|0;b=c>>31;G[d>>1]=(b^c)-b}H[a+108>>2]=0;H[a+24>>2]=0;H[a+28>>2]=0;b=Rb(G[g+8>>1],i);H[a+36>>2]=0;H[a+32>>2]=b;b=Rb(J[g+224>>1],i);H[a+44>>2]=0;H[a+40>>2]=b;t=a,u=Rb(G[g+240>>1],f),H[t+48>>2]=u;b=Rb(J[g+6>>1],f);H[a+100>>2]=0;H[a+104>>2]=0;F[a+94|0]=1;H[a+72>>2]=1651078259;H[a+52>>2]=b;e=0;break a}e=0;H[a+108>>2]=0;H[a+24>>2]=J[g+10>>1]<<6;H[a+28>>2]=J[g+8>>1]<<6;h=G[g+12>>1];H[a+32>>2]=h<<6;j=G[g+14>>1];H[a+36>>2]=j<<6;H[a+40>>2]=J[g+16>>1]<<6;k=G[g+18>>1];H[a+44>>2]=k<<6;m=G[g+20>>1];H[a+48>>2]=m<<6;n=J[g+22>>1];l=j;j=d&16;H[a+104>>2]=j?m:l;H[a+100>>2]=j?k:h;H[a+72>>2]=1651078259;H[a+52>>2]=n<<6;h=H[a+4>>2];if(!(F[h+8|0]&1)){break a}j=H[h+104>>2];Nb(g+20|0,0,192);H[g+212>>2]=0;H[g+216>>2]=0;H[g+32>>2]=j;H[g+16>>2]=a;H[g+12>>2]=b;H[g+8>>2]=h;H[g+24>>2]=d;ro(g+8|0,c,0,1);FA(g+212|0,H[H[g+8>>2]+100>>2]);b=H[g+68>>2];H[a+56>>2]=b;H[a+60>>2]=H[g+184>>2];if(!(H[a+40>>2]|!b)){t=a,u=Rb(b,i),H[t+40>>2]=u}if(H[a+52>>2]){break a}b=H[a+60>>2];if(!b){break a}t=a,u=Rb(b,f),H[t+52>>2]=u;break a}if(!j){break a}}r=d&1;if(!(r|I[b+112|0])){e=36;break a}e=6;if(d&16384){break a}q=H[h+104>>2];p=H[h+96>>2];Nb(g+8|0,0,212);if(!n){m=(d&128)>>>7|0;e=H[b+304>>2];e:{f:{if((e|0)>=0){f=H[b+308>>2];if((f|0)<0){break f}if(e){break a}e=f;if(!e){break e}break a}j=H[b>>2];i=H[j+100>>2];e=H[b+132>>2];if(e){zb[H[i+8>>2]](i,e)}H[b+132>>2]=0;e=H[b+144>>2];if(e){zb[H[i+8>>2]](i,e)}H[b+144>>2]=0;e=H[b+252>>2];if(e){zb[H[i+8>>2]](i,e)}H[b+252>>2]=0;e=H[b+260>>2];if(e){zb[H[i+8>>2]](i,e)}H[b+260>>2]=0;e=H[b+300>>2];if(e){H[e+444>>2]=0;f=H[e+8>>2];k=H[e+24>>2];if(k){zb[H[f+8>>2]](f,k)}H[e+20>>2]=0;H[e+24>>2]=0;k=H[e+440>>2];if(k){zb[H[f+8>>2]](f,k)}H[e+440>>2]=0;H[e+432>>2]=0;H[e+436>>2]=0;k=H[e+396>>2];if(k){zb[H[f+8>>2]](f,k)}H[e+392>>2]=0;H[e+396>>2]=0;H[e>>2]=0;H[e+4>>2]=0;if(e){zb[H[f+8>>2]](f,e)}}e=H[b+264>>2];if(e){f=H[b+292>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+292>>2]=0;f=H[b+288>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+288>>2]=0;f=H[b+280>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+280>>2]=0;f=H[b+276>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+276>>2]=0;f=H[b+284>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+284>>2]=0;H[b+272>>2]=0;H[b+264>>2]=0;H[b+268>>2]=0}H[b+304>>2]=-1;H[b+308>>2]=-1;k=xb-16|0;xb=k;e=H[j+96>>2];g:{h:{if(!e){break h}f=H[e+8>>2];e=pc(f,636,k+8|0);if(H[k+8>>2]){break h}H[e+436>>2]=32;H[e+8>>2]=f;t=e,u=Ub(f,16,0,32,0,k+12|0),H[t+440>>2]=u;if(!H[k+12>>2]){H[e+444>>2]=0;H[e+392>>2]=0;H[e+396>>2]=0;H[e+20>>2]=0;H[e+24>>2]=0;H[e>>2]=0;H[e+4>>2]=0;break g}H[e+444>>2]=0;f=H[e+8>>2];l=H[e+24>>2];if(l){zb[H[f+8>>2]](f,l)}H[e+20>>2]=0;H[e+24>>2]=0;l=H[e+440>>2];if(l){zb[H[f+8>>2]](f,l)}H[e+440>>2]=0;H[e+432>>2]=0;H[e+436>>2]=0;l=H[e+396>>2];if(l){zb[H[f+8>>2]](f,l)}H[e+392>>2]=0;H[e+396>>2]=0;H[e>>2]=0;H[e+4>>2]=0;if(e){zb[H[f+8>>2]](f,e)}if(!H[k+12>>2]){break g}}e=0}xb=k+16|0;H[b+300>>2]=e;e=J[j+280>>1];H[b+128>>2]=e;f=J[j+282>>1];H[b+148>>2]=0;H[b+152>>2]=0;H[b+136>>2]=0;H[b+124>>2]=0;H[b+140>>2]=f;H[b+248>>2]=H[j+700>>2];f=J[j+278>>1];F[b+113|0]=0;F[b+114|0]=0;G[b+256>>1]=f;H[b+96>>2]=0;H[b+100>>2]=0;H[b+104>>2]=0;H[b+108>>2]=0;t=b,u=Ub(i,24,0,e,0,g+224|0),H[t+132>>2]=u;i:{if(H[g+224>>2]){break i}t=b,u=Ub(i,24,0,H[b+140>>2],0,g+224|0),H[t+144>>2]=u;if(H[g+224>>2]){break i}t=b,u=Ub(i,4,0,H[b+248>>2],0,g+224|0),H[t+252>>2]=u;if(H[g+224>>2]){break i}t=b,u=Ub(i,4,0,J[b+256>>1],0,g+224|0),H[t+260>>2]=u;if(H[g+224>>2]){break i}e=J[j+276>>1];H[b+292>>2]=0;H[b+296>>2]=0;H[b+284>>2]=0;H[b+288>>2]=0;H[b+276>>2]=0;H[b+280>>2]=0;H[b+268>>2]=0;H[b+272>>2]=0;H[b+264>>2]=i;k=e+4|0;e=k&65535;t=b,u=Ub(i,8,0,e,0,g+240|0),H[t+276>>2]=u;j:{k:{l:{f=H[g+240>>2];m:{if(f){break m}t=b,u=Ub(i,8,0,e,0,g+240|0),H[t+280>>2]=u;f=H[g+240>>2];if(f){break m}t=b,u=Ub(i,8,0,e,0,g+240|0),H[t+284>>2]=u;f=H[g+240>>2];if(f){break m}t=b,u=Ub(i,1,0,e,0,g+240|0),H[t+288>>2]=u;f=H[g+240>>2];if(f){break m}t=b,u=Ub(i,2,0,0,0,g+240|0),H[t+292>>2]=u;f=H[g+240>>2];if(!f){break l}}e=H[b+264>>2];if(e){break k}H[g+224>>2]=f;break i}G[b+268>>1]=k;G[b+270>>1]=0;H[g+224>>2]=0;break j}f=H[b+292>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+292>>2]=0;f=H[b+288>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+288>>2]=0;f=H[b+280>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+280>>2]=0;f=H[b+276>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+276>>2]=0;f=H[b+284>>2];if(f){zb[H[e+8>>2]](e,f)}H[b+284>>2]=0;H[b+272>>2]=0;H[b+264>>2]=0;H[b+268>>2]=0;e=H[g+240>>2];H[g+224>>2]=e;if(e){break i}}G[b+272>>1]=k;Ob(b+180|0,96052,68);e=H[H[H[j+96>>2]+4>>2]+164>>2];H[j+708>>2]=e?e:81;e=H[b+300>>2];i=H[b>>2];f=qo(e,i,b);n:{if(f){break n}H[e+484>>2]=0;H[e+488>>2]=0;H[e+480>>2]=64;H[e+16>>2]=0;H[e+432>>2]=0;H[e+568>>2]=16384;F[e+565|0]=m;H[e+220>>2]=0;H[e+224>>2]=0;F[e+492|0]=0;G[e+256>>1]=0;H[e+228>>2]=0;H[e+260>>2]=65536;H[e+264>>2]=0;j=H[i+688>>2];f=H[i+684>>2];H[e+456>>2]=0;H[e+460>>2]=0;H[e+452>>2]=f;H[e+448>>2]=j;H[e+464>>2]=0;H[e+468>>2]=0;o:{if(!f){H[b+304>>2]=0;break o}H[e+368>>2]=f;H[e+360>>2]=j;H[e+364>>2]=0;H[e+356>>2]=1;f=zb[H[i+708>>2]](e)|0;H[b+304>>2]=f;if(f){break n}}H[b+124>>2]=H[e+400>>2];H[b+136>>2]=H[e+412>>2];H[b+148>>2]=H[e+424>>2];H[b+152>>2]=H[e+428>>2];f=H[e+452>>2];H[b+156>>2]=H[e+448>>2];H[b+160>>2]=f;f=H[e+460>>2];H[b+164>>2]=H[e+456>>2];H[b+168>>2]=f;f=H[e+468>>2];H[b+172>>2]=H[e+464>>2];H[b+176>>2]=f;f=0}e=f;break f}ou(b);e=H[g+224>>2]}if(e){break a}e=H[b+308>>2];if((e|0)<0){i=J[b+272>>1];p:{if(!i){break p}j=H[b+280>>2];k=H[b+276>>2];e=0;if((i|0)!=1){s=i&65534;f=0;while(1){l=e<<3;o=l+k|0;H[o>>2]=0;H[o+4>>2]=0;o=j+l|0;H[o>>2]=0;H[o+4>>2]=0;l=l|8;o=l+k|0;H[o>>2]=0;H[o+4>>2]=0;l=j+l|0;H[l>>2]=0;H[l+4>>2]=0;e=e+2|0;f=f+2|0;if((s|0)!=(f|0)){continue}break}}if(!(i&1)){break p}e=e<<3;f=e+k|0;H[f>>2]=0;H[f+4>>2]=0;e=e+j|0;H[e>>2]=0;H[e+4>>2]=0}e=J[b+256>>1];if(e){Nb(H[b+260>>2],0,e<<2)}Ob(b+180|0,96052,68);e=nu(b,m)}if(e){break a}}i=H[b+300>>2];if(!i){e=153;break a}e=d&983040;q:{if(H[p+64>>2]!=40){j=(e|0)!=131072;e=0;k=0;f=0;break q}k=(e|0)!=131072;e=k&(d&262144)>>>18;j=0;f=!(d&458752)&k}F[i+614|0]=e;e=qo(i,h,b);if(e){break a}r:{s:{t:{u:{if(H[p+64>>2]==40){e=I[i+613|0]==(k|0);if(!e){F[i+613|0]=k}if((f|0)!=I[i+618|0]){break u}if(I[i+612|0]==(j|0)){break t}F[i+612|0]=j;break s}if(I[i+612|0]==(j|0)){break r}F[i+612|0]=j;break s}F[i+618|0]=f;if(I[i+612|0]==(j|0)){break s}F[i+612|0]=j;break s}if(e){break r}}e=nu(b,m);if(e){break a}}e=I[i+340|0];f=e<<1&2;if(e&2){Ob(i+288|0,96052,68)}F[i+565|0]=m;H[g+164>>2]=i;H[g+168>>2]=H[i+396>>2];d=d|f}e=H[H[a+156>>2]>>2];Oh(e);H[g+24>>2]=d;H[g+20>>2]=e;H[g+212>>2]=0;H[g+216>>2]=0;H[g+32>>2]=q;H[g+16>>2]=a;H[g+12>>2]=b;H[g+8>>2]=h;H[a+124>>2]=0;H[a+128>>2]=0;H[a+72>>2]=1869968492;e=ro(g+8|0,c,0,0);v:{if(e){break v}d=H[g+20>>2];w:{if(H[a+72>>2]==1668246896){H[a+128>>2]=H[d+48>>2];H[a+132>>2]=H[d+52>>2];break w}h=H[d+24>>2];e=a+108|0;H[e>>2]=H[d+20>>2];H[e+4>>2]=h;H[e+16>>2]=H[d+36>>2];h=H[d+32>>2];H[e+8>>2]=H[d+28>>2];H[e+12>>2]=h;H[a+124>>2]=H[a+124>>2]&-513;d=H[g+76>>2];if(!d){break w}je(e,0-d|0,0)}x:{if(n){break x}d=8;e=H[g+164>>2];y:{if(!I[e+341|0]){break y}d=32;z:{switch(H[e+344>>2]){case 4:d=48;break y;case 5:d=16;break y;case 1:break x;case 0:break y;default:break z}}d=8}H[a+124>>2]=H[a+124>>2]|d}e=H[g+8>>2];j=65536;f=H[g+12>>2];d=H[g+16>>2];j=F[g+24|0]&1?j:H[H[f+44>>2]+8>>2];h=H[e+96>>2];A:{if(H[d+72>>2]!=1668246896){Nh(d+108|0,g+240|0);break A}i=H[g+56>>2];H[g+248>>2]=H[g+52>>2];H[g+252>>2]=i;i=H[g+48>>2];H[g+240>>2]=H[g+44>>2];H[g+244>>2]=i}H[d+56>>2]=H[g+68>>2];n=H[g+240>>2];H[d+32>>2]=n;i=H[g+252>>2];H[d+36>>2]=i;H[d+40>>2]=H[g+84>>2]-H[g+76>>2];B:{C:{if(H[h+64>>2]!=40){break C}h=H[g+164>>2];if(!h){break C}if(I[h+615|0]){break B}}if(H[e+488>>2]|H[g+24>>2]&2097154){break B}p=H[e+776>>2];if(!p){break B}h=0;k=H[e+768>>2];l=k?k+8|0:0;m=H[e+780>>2];q=H[e+784>>2];f=J[H[f+44>>2]>>1];while(1){if((f|0)==I[h+q|0]){f=c+2|0;if(!k|f>>>0>=m>>>0){break B}H[d+40>>2]=I[f+(l+N(h,m)|0)|0]<<6;break B}h=h+1|0;if((p|0)!=(h|0)){continue}break}}H[d+24>>2]=H[g+248>>2]-n;h=i-H[g+244>>2]|0;H[d+28>>2]=h;D:{if(!(!I[e+292|0]|!J[e+330>>1])){f=dc(H[g+192>>2]-i|0,j)<<16>>16;h=0;i=H[g+192>>2];k=H[g+200>>2];if((i|0)<=(k|0)){break D}h=dc(i-k|0,j)&65535;break D}f=dc(h,j);h=J[e+372>>1]==65535;h=G[e+(h?220:442)>>1]-G[e+(h?222:444)>>1]|0;f=(h-(f<<16>>16)|0)/2|0}e=H[H[e+128>>2]+52>>2];E:{if(!e){break E}i=H[H[e>>2]+8>>2];if(!i){break E}H[g+232>>2]=h;H[g+228>>2]=f;H[g+224>>2]=0;e=zb[i|0](H[e+4>>2],c,1,g+224|0)|0;if(e){break v}h=H[g+232>>2];f=H[g+228>>2]}H[d+60>>2]=h;if(!(F[g+24|0]&1)){f=Rb(f,j);h=Rb(h,j)}H[d+52>>2]=h;H[d+48>>2]=f;H[d+44>>2]=H[d+32>>2]+(H[d+40>>2]/-2|0);e=0}if(!(J[H[b+44>>2]+2>>1]>23|r)){H[a+124>>2]=H[a+124>>2]|256}FA(g+212|0,H[H[g+8>>2]+100>>2])}xb=g+256|0;return e|0}function OA(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,B=0,C=0,D=0,E=0,G=0,J=0;o=xb-784|0;xb=o;i=a+b|0;if((b|0)>=4){m=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a+4|0}if(a+3>>>0>>0){j=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a+4|0}if(i>>>0>a+1>>>0){z=I[a|0]|I[a+1|0]<<8;a=a+2|0}if(i>>>0>a+1>>>0){t=I[a|0]|I[a+1|0]<<8;a=a+2|0}if(i>>>0>a+3>>>0){u=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a+4|0}a=a+((a+3>>>0>>0)<<2)|0;a=((i>>>0>a+3>>>0)<<2)+a|0;a=((i>>>0>a+3>>>0)<<2)+a|0;if(a+3>>>0>>0){h=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a+4|0}a:{b:{if((u|0)!=0&(j|0)<0|(z|0)!=1|(m|0)<0){break b}a=a+((i>>>0>a+3>>>0)<<2)|0;H[e>>2]=0;H[f>>2]=0;H[g>>2]=0;c:{d:{e:{f:{switch((t&65535)-1|0){case 0:g:{if(i-a>>>0<8){z=255;n=255;t=255;h=0;break g}h=0;t=0;z=0;if(a>>>0>>0){y=I[a|0];a=a+1|0}if(a>>>0>>0){h=I[a|0];a=a+1|0}if(a>>>0>>0){k=I[a|0];a=a+1|0}b=a;a=a+1|0;if(i>>>0>a>>>0){t=I[b+1|0];a=b+2|0}if(a>>>0>>0){n=I[a|0];a=a+1|0}if(a>>>0>=i>>>0){break g}z=I[a|0]}a=j>>31;r=(a^j)-a|0;if((N(r,m+31>>>3&536870908)|0)<=(d|0)){C=m<<2;D=Qb(N(C,r));q=m+7>>>3|0;a=q>>>2|0;H[o>>2]=a;H[o+4>>2]=q-(a<<2);l=H[o+4>>2];a=(m|0)/8|0;H[o>>2]=a;H[o+4>>2]=m-(a<<3);d=4-l|0;b=(j|0)<0;a=H[o+4>>2];s=sh(1,a?a-1|0:7);h:{if(P(s)<2147483648){i=~~s;break h}i=-2147483648}a=l?d:0;u=m&65535;A=r&65535;i:{if(!b){if(!j){break i}v=(a|0)>0?a:0;p=q>>>0>1?q:1;q=q-1|0;while(1){d=j-1|0;if(m){b=N(d,C);w=0;while(1){a=(q|0)==(w|0)?i:128;if((a|0)>0){r=I[c|0];while(1){x=b+D|0;F[x+3|0]=255;l=a&r;F[x+2|0]=l?z:k;F[x+1|0]=l?n:h;F[x|0]=l?t:y;b=b+4|0;l=a>>>0<2;a=a>>>1|0;if(!l){continue}break}}c=c+1|0;w=w+1|0;if((p|0)!=(w|0)){continue}break}}c=c+v|0;a=(j|0)>1;j=d;if(a){continue}break}break i}x=(a|0)>0?a:0;v=r>>>0>1?r:1;p=q>>>0>1?q:1;w=q-1|0;j=0;while(1){if(m){b=N(j,C);l=0;while(1){a=(l|0)==(w|0)?i:128;if((a|0)>0){q=(l|0)!=(w|0)?-1:0;r=I[c|0];while(1){B=b+D|0;F[B+3|0]=q;d=a&r;F[B+2|0]=d?z:k;F[B+1|0]=d?n:h;F[B|0]=d?t:y;b=b+4|0;d=a>>>0<2;a=a>>>1|0;if(!d){continue}break}}c=c+1|0;l=l+1|0;if((p|0)!=(l|0)){continue}break}}c=c+x|0;j=j+1|0;if((v|0)!=(j|0)){continue}break}}H[e>>2]=D;H[f>>2]=u;H[g>>2]=A}break b;case 3:H[o+40>>2]=0;H[o+44>>2]=0;H[o+32>>2]=0;H[o+36>>2]=0;H[o+24>>2]=0;H[o+28>>2]=0;H[o+16>>2]=0;H[o+20>>2]=0;H[o+8>>2]=0;H[o+12>>2]=0;H[o>>2]=0;H[o+4>>2]=0;b=h&255;n=h?b>>>0<16?b:16:16;if(i-a>>>0>>0){break b}if(!n){break c}u=0;while(1){t=0;l=N(u,3)+o|0;j:{if(a>>>0>=i>>>0){b=a;a=0;break j}b=a+1|0;a=I[a|0]}F[l+2|0]=a;if(b>>>0>=i>>>0){a=b}else{t=I[b|0];a=b+1|0}F[l+1|0]=t;b=0;if(a>>>0>>0){b=I[a|0];a=a+1|0}F[l|0]=b;a=a+1|0;u=u+1|0;if((n|0)!=(u|0)){continue}break};break c;case 7:v=Nb(o,0,768);b=h&65535;n=h?b>>>0<256?b:256:256;if(i-a>>>0>>0){break b}if(n){t=0;while(1){l=v+N(t,3)|0;k:{if(a>>>0>=i>>>0){b=a;a=0;break k}b=a+1|0;a=I[a|0]}F[l+2|0]=a;k=0;l:{if(b>>>0>=i>>>0){a=b;b=0;break l}a=b+1|0;b=I[b|0]}F[l+1|0]=b;if(a>>>0>>0){k=I[a|0];a=a+1|0}F[l|0]=k;a=a+1|0;t=t+1|0;if((n|0)!=(t|0)){continue}break}}h=0;m:{while(1){n:{H[197455]=0;p=h+m|0;b=p;a=(b|0)/4|0;H[v+776>>2]=a;H[v+780>>2]=b-(a<<2);a=H[197455];H[197455]=0;if((a|0)==1){break n}if(!H[v+780>>2]){break m}h=h+1|0;continue}break}break a}a=j>>31;k=(a^j)-a|0;q=N(p,k);o:{if((u|0)==1){a=0;H[197455]=0;l=aa(929,q|0)|0;b=H[197455];H[197455]=0;p:{if((b|0)!=1){if((d|0)>0){break p}c=l;break o}break a}n=0;u=0;while(1){i=I[(u|1)+c|0];r=I[c+u|0];q:{if(!r){if(i){c=l;break o}if((a|0)>=(p|0)){a=0;break q}i=p-a|0;b=i+n|0;if((b|0)>(q|0)){c=l;break o}a=0;Nb(n+l|0,0,i);n=b;break q}b=a+r|0;while(1){a=b;b=a-p|0;if((a|0)>=(p|0)){continue}break}b=n+r|0;if((b|0)>(q|0)){c=l;break o}Nb(n+l|0,i,r);n=b}u=u+2|0;if((u|0)<(d|0)){continue}break}c=l;break o}l=0;if((d|0)<(q|0)){break b}}H[197455]=0;p=aa(929,N(m,k)<<2)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}q=m&65535;r=k&65535;r:{if((j|0)>=0){if(!j){break r}n=(m|0)<=0;while(1){b=k-1|0;if(!n){i=N(b,m);a=0;while(1){j=p+(a+i<<2)|0;d=v+N(I[c|0],3)|0;F[j|0]=I[d+2|0];F[j+1|0]=I[d+1|0];d=I[d|0];F[j+3|0]=255;F[j+2|0]=d;c=c+1|0;a=a+1|0;if((m|0)!=(a|0)){continue}break}}c=c+h|0;a=(k|0)>1;k=b;if(a){continue}break}break r}i=k>>>0>1?k:1;k=0;while(1){if((m|0)>0){d=N(m,k);a=0;while(1){n=p+(a+d<<2)|0;b=v+N(I[c|0],3)|0;F[n|0]=I[b+2|0];F[n+1|0]=I[b+1|0];b=I[b|0];F[n+3|0]=255;F[n+2|0]=b;c=c+1|0;a=a+1|0;if((m|0)!=(a|0)){continue}break}}c=c+h|0;k=k+1|0;if((i|0)!=(k|0)){continue}break}}H[e>>2]=p;H[f>>2]=q;H[g>>2]=r;if(l){Kb(l)}break b;case 15:E=8.225806451612904;y=5;w=10;h=992;n=31744;k=31;G=8.225806451612904;J=8.225806451612904;s:{switch(u|0){case 3:h=0;k=0;t:{if(i>>>0<=a+3>>>0){n=0;break t}n=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a+4|0}if(i>>>0>a+3>>>0){h=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a+4|0}k=a+3>>>0>>0?I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24):k;u=lq(k);E=255/+(k>>>u>>>0);w=lq(n);G=255/+(n>>>w>>>0);y=lq(h);J=255/+(h>>>y>>>0);break;case 0:break s;default:break b}}b=d;a=j>>31;d=(a^j)-a|0;if((b|0)!=(N(d,((m<<4)+31&-32)/8|0)|0)){break b}q=m<<1;a=0;while(1){i=a+q|0;b=(i|0)/4|0;H[o>>2]=b;H[o+4>>2]=i-(b<<2);r=a;a=a+1|0;if(H[o+4>>2]){continue}break};p=m&65535;q=d&65535;A=Qb(N(d,m)<<2);if((j|0)<0){break e}if(!j){break d}j=(m|0)<=0;while(1){i=d-1|0;if(!j){l=N(i,m);b=0;while(1){x=I[c|0]|I[c+1|0]<<8;a=A+(b+l<<2)|0;F[a+3|0]=255;s=J*+((h&x)>>>y&255);u:{if(s<4294967296&s>=0){t=~~s>>>0;break u}t=0}F[a+1|0]=t;s=E*+((k&x)>>>u&255);v:{if(s<4294967296&s>=0){t=~~s>>>0;break v}t=0}F[a|0]=t;s=G*+((n&x)>>>w&255);w:{if(s<4294967296&s>=0){t=~~s>>>0;break w}t=0}F[a+2|0]=t;c=c+2|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}c=c+r|0;a=(d|0)>1;d=i;if(a){continue}break};break d;case 23:if(u){break b}a=j>>31;h=(a^j)-a|0;if((N(h,(N(m,24)+31&-32)/8|0)|0)!=(d|0)){break b}i=N(m,3);a=0;while(1){d=a+i|0;b=(d|0)/4|0;H[o>>2]=b;H[o+4>>2]=d-(b<<2);d=a;a=a+1|0;if(H[o+4>>2]){continue}break};q=m&65535;r=h&65535;p=Qb(N(h,m)<<2);x:{if((j|0)>=0){if(!j){break x}n=(m|0)<=0;while(1){b=h-1|0;if(!n){l=N(b,m);a=0;while(1){k=p+(a+l<<2)|0;F[k|0]=I[c|0];F[k+1|0]=I[c+1|0];i=I[c+2|0];F[k+3|0]=255;F[k+2|0]=i;c=c+3|0;a=a+1|0;if((m|0)!=(a|0)){continue}break}}c=c+d|0;a=(h|0)>1;h=b;if(a){continue}break}break x}l=h>>>0>1?h:1;while(1){if((m|0)>0){i=N(m,k);a=0;while(1){n=p+(a+i<<2)|0;F[n|0]=I[c|0];F[n+1|0]=I[c+1|0];b=I[c+2|0];F[n+3|0]=255;F[n+2|0]=b;c=c+3|0;a=a+1|0;if((m|0)!=(a|0)){continue}break}}c=c+d|0;k=k+1|0;if((l|0)!=(k|0)){continue}break}}H[e>>2]=p;H[f>>2]=q;H[g>>2]=r;break b;case 31:break f;default:break b}}y:{switch(u|0){case 3:if(i-a>>>0<12){break b}break;case 0:break y;default:break b}}a=j>>31;h=(a^j)-a|0;if(N(h,m)<<2!=(d|0)){break b}a=0;while(1){p=a+m|0;d=p;b=(d|0)/4|0;H[o>>2]=b;H[o+4>>2]=d-(b<<2);i=a;a=a+1|0;if(H[o+4>>2]){continue}break}r=p&65535;n=h&65535;q=Qb(N(h,p)<<2);z:{A:{if((j|0)>=0){if(!j){break z}l=(m|0)<=0;break A}d=h>>>0>1?h:1;while(1){if((m|0)>0){a=N(k,p);b=0;while(1){l=q+(a+b<<2)|0;F[l|0]=I[c|0];F[l+1|0]=I[c+1|0];F[l+2|0]=I[c+2|0];F[l+3|0]=I[c+3|0];c=c+4|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}if(i){b=N(k,p);a=m;while(1){l=q+(a+b<<2)|0;F[l|0]=255;F[l+1|0]=255;F[l+2|0]=255;F[l+3|0]=0;a=a+1|0;if((p|0)>(a|0)){continue}break}}k=k+1|0;if((d|0)!=(k|0)){continue}break}break z}while(1){d=h;h=d-1|0;if(!l){a=N(h,p);b=0;while(1){k=q+(a+b<<2)|0;F[k|0]=I[c|0];F[k+1|0]=I[c+1|0];F[k+2|0]=I[c+2|0];F[k+3|0]=I[c+3|0];c=c+4|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}if(i){b=N(h,p);a=m;while(1){k=q+(a+b<<2)|0;F[k|0]=255;F[k+1|0]=255;F[k+2|0]=255;F[k+3|0]=0;a=a+1|0;if((p|0)>(a|0)){continue}break}}if((d|0)>=2){continue}break}}H[e>>2]=q;H[f>>2]=r;H[g>>2]=n;break b}i=d>>>0>1?d:1;while(1){if((m|0)>0){d=N(m,l);b=0;while(1){v=I[c|0]|I[c+1|0]<<8;a=A+(b+d<<2)|0;F[a+3|0]=255;s=J*+((h&v)>>>y&255);B:{if(s<4294967296&s>=0){j=~~s>>>0;break B}j=0}F[a+1|0]=j;s=E*+((k&v)>>>u&255);C:{if(s<4294967296&s>=0){j=~~s>>>0;break C}j=0}F[a|0]=j;s=G*+((n&v)>>>w&255);D:{if(s<4294967296&s>=0){j=~~s>>>0;break D}j=0}F[a+2|0]=j;c=c+2|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}c=c+r|0;l=l+1|0;if((i|0)!=(l|0)){continue}break}}H[e>>2]=A;H[f>>2]=p;H[g>>2]=q;break b}a=j>>31;n=(a^j)-a|0;if((N(n,((m<<2)+31&-32)/8|0)|0)!=(d|0)){break b}a=0;while(1){H[197455]=0;h=a+m|0;b=(h|0)/8|0;H[o+776>>2]=b;H[o+780>>2]=h-(b<<3);b=H[197455];H[197455]=0;if((b|0)==1){break a}a=a+1|0;if(H[o+780>>2]){continue}break}q=(h|0)/2|0;if((N(q,n)|0)<=(d|0)){H[197455]=0;p=aa(929,N(m,n)<<2)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}l=m&65535;i=n&65535;E:{if((j|0)>=0){if(!j|(h|0)<2){break E}while(1){b=n-1|0;k=N(b,m);a=0;while(1){r=I[c|0];h=a<<1;if((h|0)<(m|0)){j=p+(h+k<<2)|0;d=N((r&240)>>>4|0,3)+o|0;F[j|0]=I[d+2|0];F[j+1|0]=I[d+1|0];d=I[d|0];F[j+3|0]=255;F[j+2|0]=d}d=h|1;if((d|0)<(m|0)){h=p+(d+k<<2)|0;d=N(r&15,3)+o|0;F[h|0]=I[d+2|0];F[h+1|0]=I[d+1|0];d=I[d|0];F[h+3|0]=255;F[h+2|0]=d}c=c+1|0;a=a+1|0;if((q|0)!=(a|0)){continue}break}a=(n|0)>1;n=b;if(a){continue}break}break E}if((h|0)<2){break E}d=n>>>0>1?n:1;n=0;while(1){k=N(m,n);a=0;while(1){r=I[c|0];h=a<<1;if((h|0)<(m|0)){j=p+(h+k<<2)|0;b=N((r&240)>>>4|0,3)+o|0;F[j|0]=I[b+2|0];F[j+1|0]=I[b+1|0];b=I[b|0];F[j+3|0]=255;F[j+2|0]=b}b=h|1;if((b|0)<(m|0)){h=p+(b+k<<2)|0;b=N(r&15,3)+o|0;F[h|0]=I[b+2|0];F[h+1|0]=I[b+1|0];b=I[b|0];F[h+3|0]=255;F[h+2|0]=b}c=c+1|0;a=a+1|0;if((q|0)!=(a|0)){continue}break}n=n+1|0;if((d|0)!=(n|0)){continue}break}}H[e>>2]=p;H[f>>2]=l;H[g>>2]=i}}xb=o+784|0;return}a=$()|0;_()|0;ea(a|0);X()}function UI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;f=xb-384|0;xb=f;H[b>>2]=1;a:{if(!H[b+136>>2]){d=rg(H[H[b+96>>2]+4>>2],9871);if(!d){a=11;break a}H[b+136>>2]=d}if(!H[b+320>>2]){x=b,y=rg(H[H[b+96>>2]+4>>2],10070),H[x+320>>2]=y}a=bc(a,0);if(a){break a}i=H[b+100>>2];H[f+108>>2]=0;g=H[b+104>>2];a=H[b+136>>2];d=f+8|0;Nb(d,0,100);zb[H[H[a+4>>2]>>2]](d,0,0,i);H[f+80>>2]=g;j=H[g+8>>2];b:{c:{d:{d=Jc(g,31);e:{if(d){break e}a=gc(H[g+32>>2],10532,31);wc(g);if(a){H[f+4>>2]=2;break b}m=f+106|0;l=f+84|0;o=f+112|9;while(1){d=H[g+8>>2];h=d;a=0;d=H[g+4>>2]-d|0;e=d>>>0<265?d:265;d=wd(g,f+112|0,e);if(d){break e}while(1){f:{d=f+112|0;k=(d+a|0)+e|0;F[k|0]=0;e=a+e|0;if(d>>>0>>0){n=e+m|0;d=I[f+112|0];a=f+112|0;while(1){g:{if((d&255)!=83){break g}if(gc(a,10729,9)){break g}e=10;break f}h:{d=I[a+1|0];if((d|0)!=115){break h}if(gc(a,10807,6)){break h}e=7;break f}a=a+1|0;if((n|0)!=(a|0)){continue}break}}if(e>>>0<9){H[f+4>>2]=3;break b}a=k-9|0;d=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);e=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);F[f+120|0]=I[a+8|0];H[f+112>>2]=e;H[f+116>>2]=d;h=h+256|0;a=9;d=H[g+4>>2]-H[g+8>>2]|0;e=d>>>0<256?d:256;d=wd(g,o,e);if(!d){continue}break e}break}d=bc(g,j);if(d){break e}k=((h-(f+112|0)|0)+a|0)+e|0;a=k-j|0;d=Ke(g,a,l);if(d){break e}H[f+92>>2]=k;h=H[f+84>>2];H[f+12>>2]=h;H[f+104>>2]=-1;H[f+8>>2]=h;H[f+88>>2]=a;H[f+16>>2]=a+h;d=f+8|0;zb[H[f+40>>2]](d);zb[H[f+36>>2]](d);a=H[f+8>>2];zb[H[f+40>>2]](d);zb[H[f+36>>2]](d);d=H[f+8>>2];e=H[f+16>>2];n=e-6|0;if(d>>>0<=n>>>0){p=e-9|0;while(1){e=a;a=d;d=H[f+20>>2];if(d){break e}i:{if(I[a|0]!=83|a>>>0>p>>>0){break i}if(gc(a,10729,9)){break i}if(gc(h,10959,5)){break c}a=Pd(e,0);if((a|0)>=0){break d}H[f+4>>2]=3;break b}j:{if(I[a+1|0]!=115){break j}if(gc(a,10807,6)){break j}H[f+4>>2]=2;break b}d=f+8|0;zb[H[f+40>>2]](d);zb[H[f+36>>2]](d);h=e;d=H[f+8>>2];if(n>>>0>=d>>>0){continue}break}}nd(g,l);d=bc(g,k);if(!d){continue}break}}H[f+4>>2]=d;break b}H[f+96>>2]=a}H[f+4>>2]=0;H[f+20>>2]=0;a=H[f+84>>2];m=a+H[f+88>>2]|0;H[f+16>>2]=m;g=b+164|0;j=b+312|0;l=b+196|0;k=b+140|0;s=m-1|0;k:{l:{m:while(1){H[f+8>>2]=a;zb[H[f+36>>2]](f+8|0);d=H[f+8>>2];e=(d>>>0>>0?d:s)-17|0;if(e>>>0>a>>>0){while(1){n:{if(I[a|0]!=37){break n}if(gc(a,10992,17)|H[b+300>>2]<=0){break n}H[f+104>>2]=H[f+104>>2]+1}a=a+1|0;if((e|0)!=(a|0)){continue}break}}o:{if(d>>>0>=m>>>0){break o}zb[H[f+40>>2]](f+8|0);a=H[f+8>>2];if(H[f+20>>2]|m>>>0<=a>>>0){break o}if(I[d|0]!=47|m>>>0<=d+2>>>0){continue}n=d+1|0;if((n|0)==(a|0)){continue}o=a-n|0;if(o>>>0>21){continue}p=I[n|0];e=100384;d=11146;p:{if(o>>>0>=2){while(1){h=e;q:{if((p|0)!=I[d|0]){break q}e=1;if((ac(d)|0)!=(o|0)){break q}while(1){if(I[e+n|0]!=I[d+e|0]){break q}e=e+1|0;if((o|0)!=(e|0)){continue}break}e=h;break p}e=h+36|0;d=H[h+36>>2];if(d){continue}continue m}}while(1){if((p|0)==I[d|0]){if((ac(d)|0)==(o|0)){break p}}d=H[e+36>>2];e=e+36|0;if(d){continue}break}continue}h=H[e+8>>2];r:{if((h|0)==11){zb[H[e+12>>2]](b,f+8|0);a=H[f+20>>2];break r}d=k;s:{t:{u:{v:{switch(H[e+4>>2]){case 3:d=g;break u;case 2:d=j;break u;case 5:d=l;break u;case 0:break u;default:break v}}a=H[f+104>>2];if((a|0)<0|(a|0)>=H[b+300>>2]){break t}d=H[b+304>>2]+N(a,252)|0}H[f+112>>2]=d;if(h-9>>>0>1){break s}a=zb[H[f+76>>2]](f+8|0,e,f+112|0,0,0)|0;break r}H[f+20>>2]=160;H[f+4>>2]=160;break b}a=zb[H[f+72>>2]](f+8|0,e,f+112|0,0,0)|0}H[f+20>>2]=a;if(a){break l}a=H[f+8>>2];continue}break}if(H[b+300>>2]){break k}a=3}H[f+4>>2]=a;break b}a=H[f+20>>2];H[f+4>>2]=a;if(a|(c|0)<0){break b}d=pc(i,40,f+4|0);H[b+328>>2]=d;if(H[f+4>>2]){break b}a=H[f+96>>2];w:{if(a){e=b;d=H[H[b+104>>2]+4>>2]-H[f+92>>2]|0;if(d>>>0>>0){H[f+96>>2]=d;a=d}d=e;e=pc(i,a,f+4|0);H[d+324>>2]=e;if(H[f+4>>2]){break b}a=H[f+96>>2];d=xb-256|0;xb=d;j=H[b+104>>2];i=bc(j,H[f+92>>2]);x:{if(i){break x}if((a|0)>0){o=a+e|0;l=1;a=d;k=a;while(1){if(a>>>0>=k>>>0){a=H[j+8>>2];h=H[j+4>>2];if((a|0)==(h|0)){i=160;break x}h=h-a|0;i=wd(j,d,h>>>0<256?h:256);if(i){break x}k=(d+H[j+8>>2]|0)-a|0;a=d}h=I[a|0];g=h-48|0;y:{z:{if(g>>>0<10){break z}A:{if((h-97&255)>>>0>=6){if((h-65&255)>>>0<6){break A}g=0;i=160;m=0;B:{switch(h|0){case 62:break y;case 0:case 9:case 10:case 12:case 13:case 32:break B;default:break x}}a=a+1|0;continue}g=h-87|0;break z}g=h-55|0}m=1}C:{if(l&255){F[e|0]=g<<4;break C}F[e|0]=I[e|0]+g;e=e+1|0}a=a+1|0;l=1-l|0;if(e>>>0>>0&m){continue}break}}i=0}xb=d+256|0;H[f+4>>2]=i;if(i){break b}d=H[b+324>>2];e=H[f+96>>2];a=H[b+328>>2];H[a+32>>2]=0;H[a+8>>2]=0;H[a+4>>2]=e;H[a>>2]=d;H[a+20>>2]=0;H[a+24>>2]=0;a=0;break w}a=H[b+104>>2];e=H[a+4>>2];H[d>>2]=H[a>>2];H[d+4>>2]=e;e=H[a+36>>2];H[d+32>>2]=H[a+32>>2];H[d+36>>2]=e;e=H[a+28>>2];H[d+24>>2]=H[a+24>>2];H[d+28>>2]=e;e=H[a+20>>2];H[d+16>>2]=H[a+16>>2];H[d+20>>2]=e;e=H[a+12>>2];H[d+8>>2]=H[a+8>>2];H[d+12>>2]=e;a=H[f+92>>2]}H[b+308>>2]=a;D:{i=H[b+288>>2];if((i|0)>=0){g=H[b+292>>2];if((g|0)>0){break D}}H[f+4>>2]=3;break b}if(!(g>>>0<5&i>>>0<=4)){H[f+4>>2]=3;break b}d=H[H[b+328>>2]+4>>2]-a|0;l=H[b+300>>2];if((l|0)>0){k=H[b+304>>2];e=0;while(1){a=k+N(e,252)|0;if(K[a+112>>2]>=1001){H[a+112>>2]=7}if(K[a+116>>2]>=1001){H[a+116>>2]=1}E:{h=H[a+248>>2];if((h|0)>=0){j=H[a+240>>2];if(h|!j){break E}}H[f+4>>2]=3;break b}if(h>>>0>=5){H[f+4>>2]=3;break b}a=H[a+244>>2];if(a>>>0>d>>>0){H[f+4>>2]=3;break b}if(!((!h|j>>>0<=(d-a>>>0)/(h>>>0)>>>0)&(j|0)>=0)){H[f+4>>2]=3;break b}e=e+1|0;if((l|0)!=(e|0)){continue}break}}a=H[b+284>>2];if(a>>>0>d>>>0){H[f+4>>2]=3;break b}if(K[b+296>>2]>(d-a>>>0)/(g+i>>>0)>>>0){H[f+4>>2]=3;break b}i=0;h=0;s=0;j=xb-16|0;xb=j;o=H[b+328>>2];u=H[b+136>>2];k=H[b+100>>2];l=Ub(k,8,0,H[b+300>>2],0,j+12|0);H[b+316>>2]=l;F:{if(H[j+12>>2]){break F}d=H[b+300>>2];if((d|0)<=0){break F}while(1){G:{e=H[b+304>>2]+N(s,252)|0;m=H[e+240>>2];if(m){v=H[e+4>>2];n=m+1|0;if(n>>>0>h>>>0){a=m+4&-4;if(a>>>0<=h>>>0){H[j+12>>2]=160;break G}i=Ub(k,4,h,a,i,j+12|0);h=a;if(H[j+12>>2]){break G}}a=bc(o,H[e+244>>2]+H[b+308>>2]|0);H[j+12>>2]=a;if(a){break G}a=Jc(o,N(n,H[e+248>>2]));H[j+12>>2]=a;if(a){break G}a=H[e+248>>2];H:{if(a&255){r=a-1&255;t=r+1|0;w=a&252;q=a&3;e=H[o+32>>2];p=0;while(1){a=e;g=0;d=0;if(r>>>0>=3){while(1){d=a;a=a+4|0;g=g+4|0;if((g&255)!=(w|0)){continue}break}d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24)}g=0;if(q){while(1){d=I[a|0]|d<<8;a=a+1|0;g=g+1|0;if((q|0)!=(g&255)){continue}break}}H[(p<<2)+i>>2]=d;e=e+t|0;a=(m|0)!=(p|0);p=p+1|0;if(a){continue}break}break H}Nb(i,0,(m<<2)+4|0)}wc(o);d=H[i>>2];a=1;I:{while(1){e=d;d=H[(a<<2)+i>>2];if(e>>>0<=d>>>0){a=a+1|0;if(m>>>0>=a>>>0){continue}break I}break}H[j+12>>2]=3;break G}a=H[(m<<2)+i>>2];if(a>>>0>H[o+4>>2]-H[b+308>>2]>>>0){H[j+12>>2]=3;break G}d=H[i>>2];x=l,y=Ub(k,4,0,n,0,j+12|0),H[x+4>>2]=y;if(H[j+12>>2]){break G}a=a-d|0;d=pc(k,a,j+12|0);H[H[l+4>>2]>>2]=d;if(H[j+12>>2]){break G}d=bc(o,H[i>>2]+H[b+308>>2]|0);H[j+12>>2]=d;if(d){break G}a=wd(o,H[H[l+4>>2]>>2],a);H[j+12>>2]=a;if(a){break G}d=1;a=(n>>>0>2?n:2)-1|0;p=a&1;g=H[i>>2];if(n>>>0>=3){n=a&-2;e=0;while(1){a=d<<2;q=a+H[l+4>>2]|0;r=q;t=H[q-4>>2];q=H[a+i>>2];H[r>>2]=t+(q-g|0);r=a+4|0;g=H[r+i>>2];t=H[l+4>>2];H[r+t>>2]=H[a+t>>2]+(g-q|0);d=d+2|0;e=e+2|0;if((n|0)!=(e|0)){continue}break}}if(p){a=d<<2;d=a+H[l+4>>2]|0;H[d>>2]=H[d-4>>2]+(H[a+i>>2]-g|0)}J:{if((v|0)<0){break J}d=m>>>0>1?m:1;n=d&1;a=0;if(m>>>0>=2){p=d&-2;g=0;while(1){d=a<<2;q=d|4;e=q+i|0;zb[H[u+16>>2]](H[d+H[l+4>>2]>>2],H[e>>2]-H[d+i>>2]|0,4330);a=a+2|0;zb[H[u+16>>2]](H[q+H[l+4>>2]>>2],H[(a<<2)+i>>2]-H[e>>2]|0,4330);g=g+2|0;if((p|0)!=(g|0)){continue}break}}if(!n){break J}d=a<<2;a=d+i|0;zb[H[u+16>>2]](H[d+H[l+4>>2]>>2],H[a+4>>2]-H[a>>2]|0,4330)}H[l>>2]=m;d=H[b+300>>2]}l=l+8|0;s=s+1|0;if((s|0)<(d|0)){continue}break F}break}a=H[b+316>>2];if(!a){break F}if(H[b+300>>2]>0){g=0;while(1){d=g<<3;e=H[(d+a|0)+4>>2];if(e){a=H[e>>2];if(a){zb[H[k+8>>2]](k,a)}H[H[(d+H[b+316>>2]|0)+4>>2]>>2]=0;a=H[b+316>>2]}a=H[(a+d|0)+4>>2];if(a){zb[H[k+8>>2]](k,a)}a=H[b+316>>2];H[(d+a|0)+4>>2]=0;g=g+1|0;if((g|0)>2]){continue}break}}if(a){zb[H[k+8>>2]](k,a)}H[b+316>>2]=0}if(i){zb[H[k+8>>2]](k,i)}xb=j+16|0;H[f+4>>2]=H[j+12>>2]}if(H[f+84>>2]){nd(H[f+80>>2],f+84|0)}zb[H[f+32>>2]](f+8|0);a=H[f+4>>2];if(a|(c|0)<0){break a}a=6;if(c&65535){break a}H[b+36>>2]=0;H[b+4>>2]=0;H[b+16>>2]=H[b+296>>2];a=H[b+8>>2];H[b+8>>2]=a|2065;if(I[b+188|0]){H[b+8>>2]=a|2069}H[b+24>>2]=10166;d=H[b+176>>2];H[b+20>>2]=d;K:{if(d){a=H[b+172>>2];if(!a){break K}e=I[a|0];if(!e){break K}while(1){e=e&255;c=I[d|0];L:{if((e|0)==(c|0)){a=a+1|0;d=d+1|0;break L}e=e-32|0;if(!(!e|(e|0)==13)){M:{switch(c-32|0){case 0:case 13:d=d+1|0;break L;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break K;default:break M}}if(c){break K}H[b+24>>2]=a;break K}a=a+1|0}e=I[a|0];if(e){continue}break}break K}a=H[b+140>>2];if(!a){break K}H[b+20>>2]=a}c=H[b+184>>2]!=0;H[b+12>>2]=c;a=H[b+180>>2];N:{if(!a){break N}if(fc(a,10301)){if(fc(a,10420)){break N}}H[b+12>>2]=c|2}H[b+28>>2]=0;H[b+32>>2]=0;H[b+52>>2]=G[b+198>>1];a=G[b+202>>1];H[b+56>>2]=a;H[b+60>>2]=H[b+204>>2]+65535>>16;c=H[b+208>>2]+65535>>16;H[b- -64>>2]=c;e=J[b+68>>1];if(!e){G[b+68>>1]=1e3;e=1e3}G[b+72>>1]=a;G[b+70>>1]=c;H[b+80>>2]=J[b+190>>1]|J[b+192>>1]<<16;d=b;a=c-a|0;b=(N(e,12)>>>0)/10|0;G[d+74>>1]=(a|0)>b<<16>>16?a:b;a=0}xb=f+384|0;return a|0}function AL(a){a=a|0;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;e=xb-48|0;xb=e;f=H[a+720>>2];a:{if(f){break a}b:{c:{if(!(!H[a+736>>2]|!(I[a+9|0]&128?1:J[a+6>>1]&32767))){m=H[a+548>>2];g=H[a+100>>2];if(!H[a+744>>2]){H[e+16>>2]=-1;H[e+20>>2]=-1;h=J[a+340>>1];if(!h){f=0;break b}i=H[a+356>>2];while(1){c=i+N(b,20)|0;d:{if(J[c+6>>1]!=25|!J[c+8>>1]){break d}e:{f:{switch(J[c>>1]-1|0){case 2:if(J[c+2>>1]>1){break d}f=e+20|0;if(J[c+4>>1]==1033|H[e+20>>2]==-1){break e}break d;case 0:break f;default:break d}}if(J[c+2>>1]){break d}f=e+16|0;if(!J[c+4>>1]){break e}if(H[e+16>>2]!=-1){break d}}H[f>>2]=b}b=b+1|0;if((h|0)!=(b|0)){continue}break}g:{h:{b=H[e+20>>2];if((b|0)>=0){break h}d=H[e+16>>2];i:{if((d|0)>=0){break i}H[e+16>>2]=-1;H[e+20>>2]=-1;b=0;while(1){c=i+N(b,20)|0;j:{if(J[c+6>>1]!=16|!J[c+8>>1]){break j}k:{l:{switch(J[c>>1]-1|0){case 2:if(J[c+2>>1]>1){break j}f=e+20|0;if(J[c+4>>1]==1033|H[e+20>>2]==-1){break k}break j;case 0:break l;default:break j}}if(J[c+2>>1]){break j}f=e+16|0;if(!J[c+4>>1]){break k}if(H[e+16>>2]!=-1){break j}}H[f>>2]=b}b=b+1|0;if((h|0)!=(b|0)){continue}break}b=H[e+20>>2];if((b|0)>=0){break h}d=H[e+16>>2];if((d|0)>=0){break i}H[e+16>>2]=-1;H[e+20>>2]=-1;b=0;while(1){c=i+N(b,20)|0;m:{if(J[c+6>>1]!=1|!J[c+8>>1]){break m}n:{o:{switch(J[c>>1]-1|0){case 2:if(J[c+2>>1]>1){break m}f=e+20|0;if(J[c+4>>1]==1033|H[e+20>>2]==-1){break n}break m;case 0:break o;default:break m}}if(J[c+2>>1]){break m}f=e+16|0;if(!J[c+4>>1]){break n}if(H[e+16>>2]!=-1){break m}}H[f>>2]=b}b=b+1|0;if((h|0)!=(b|0)){continue}break}b=H[e+20>>2];if((b|0)>=0){break h}f=0;d=H[e+16>>2];if((d|0)<0){break b}}if((b|0)!=-1){break h}b=0;break g}b=Bu(g,H[a+368>>2],i+N(b,20)|0,64);d=H[e+16>>2]}p:{if((d|0)==-1|b){break p}c=H[a+368>>2];h=H[a+100>>2];l=H[a+356>>2];b=0;H[e+40>>2]=0;j=l+N(d,20)|0;f=pc(h,J[j+8>>1]+1|0,e+40|0);if(H[e+40>>2]){break p}b=bc(c,H[j+12>>2]);H[e+40>>2]=b;q:{if(b){break q}b=Jc(c,J[j+8>>1]);H[e+40>>2]=b;if(b){break q}b=f;r:{k=J[j+8>>1];if(k){i=H[c+32>>2];while(1){n=F[i|0];if(n-58>>>0<=4294967285&(n&-33)-91>>>0<4294967270){break r}F[b|0]=n;i=i+1|0;b=b+1|0;k=k-1|0;if(k){continue}break}}F[b|0]=0;wc(c);b=f;break p}wc(c)}if(f){zb[H[h+8>>2]](h,f)}b=0;H[j+12>>2]=0;G[j+8>>1]=0;f=l+N(d,20)|0;c=H[f+16>>2];if(c){zb[H[h+8>>2]](h,c)}H[f+16>>2]=0}if(!b){f=0;break b}f=ac(b);if(f>>>0>=92){F[b+91|0]=0;f=91}H[a+748>>2]=f;H[a+744>>2]=b}f=0;zb[H[m+40>>2]](a,e+32|0,e+28|0,0,e+24|0)|0;s:{t:{b=H[a+4>>2];if(!(b&2147418112)|I[a+9|0]&128){break t}i=(b>>>16&32767)-1|0;b=H[H[e+24>>2]+16>>2];c=H[(N(i,12)+b|0)+8>>2];d=H[a+540>>2];H[e+40>>2]=0;if(!((c|0)!=6&c-256>>>0>32511)){zb[H[d+144>>2]](a,c&65535,e+40|0)|0;b=H[e+40>>2];if(b){break s}b=H[H[e+24>>2]+16>>2]}zb[H[d+144>>2]](a,J[(N(i,12)+b|0)+4>>1],e+12|0)|0;b=H[e+12>>2];if(!b){break t}b=pc(g,(H[a+748>>2]+ac(b)|0)+2|0,e+36|0);if(H[e+36>>2]){break b}f=he(b,H[a+744>>2]);b=f+H[a+748>>2]|0;F[b|0]=45;i=b+1|0;d=H[e+12>>2];b=I[d|0];if(b){while(1){c=b<<24>>24;if(!(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)){F[i|0]=b;i=i+1|0}b=I[d+1|0];d=d+1|0;if(b){continue}break}}F[i|0]=0;b=H[e+12>>2];if(b){zb[H[g+8>>2]](g,b)}d=i+1|0;break c}j=H[H[e+24>>2]+12>>2];b=pc(g,(H[a+748>>2]+N(H[e+32>>2],17)|0)+1|0,e+36|0);if(H[e+36>>2]){break b}f=he(b,H[a+744>>2]);d=f+H[a+748>>2]|0;if(!H[e+32>>2]){break c}l=e+40^-1;b=H[e+28>>2];i=0;while(1){u:{if(H[b>>2]==H[j+8>>2]){break u}F[d|0]=95;b=H[H[e+28>>2]>>2];v:{if(!b){F[d+1|0]=48;d=d+2|0;break v}if((b|0)>=0){d=d+1|0}else{F[d+1|0]=45;b=0-b|0;d=d+2|0}h=b&65535;w:{if(b>>>0<65536){break w}c=b>>>16|0;b=e+40|0;while(1){g=(c>>>0)/10|0;F[b|0]=c-N(g,10)|48;b=b+1|0;k=c>>>0<10;c=g;if(!k){continue}break}if(e+40>>>0>=b>>>0){break w}g=b+l|0;c=0;k=b-(e+40|0)&7;if(k){while(1){b=b-1|0;F[d|0]=I[b|0];d=d+1|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}if(g>>>0<7){break w}while(1){F[d|0]=I[b-1|0];F[d+1|0]=I[b-2|0];F[d+2|0]=I[b-3|0];F[d+3|0]=I[b-4|0];F[d+4|0]=I[b-5|0];F[d+5|0]=I[b-6|0];F[d+6|0]=I[b-7|0];b=b-8|0;F[d+7|0]=I[b|0];d=d+8|0;if(e+40>>>0>>0){continue}break}}if(!h){break v}F[d|0]=46;b=N(h,10)+5|0;F[d+1|0]=(b>>>16|0)+48;b=N(b&65535,10);F[d+2|0]=b>>>16|48;b=N(b&65534,10);c=b>>>16|48;F[d+3|0]=c;x:{y:{z:{A:{B:{C:{D:{b=b&65532;if(!b){b=d+3|0;break D}b=N(b,10);c=b>>>16|48;F[d+4|0]=c;b=b&65528;if(!b){b=d+4|0;break D}h=N(b,10);g=h>>>16|0;c=g|48;F[d+5|0]=c;b=d+5|0;h=h&65520;if(!h){break D}d=N(h,10);if(d>>>0>=344800){break z}if((c|0)==49){break C}if((h|0)==17232){if(!(g&1)){break z}c=g+47|0;break A}if(d>>>0>172319){break z}break B}if((b-d|0)!=5){break z}if((c|0)!=49){break B}}F[b|0]=48;break y}if((c|0)==48){break y}c=c-1|0}F[b|0]=c}if((c|0)!=48){break x}}while(1){F[b|0]=0;b=b-1|0;if(I[b|0]==48){continue}break}}d=b+1|0}b=H[j+16>>2];c=b>>24;if(!((c|0)==32|!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)){F[d|0]=b>>>24;d=d+1|0;b=H[j+16>>2]}g=b>>>16|0;c=g<<24;E:{if((c|0)==536870912){break E}c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25){break E}F[d|0]=g;d=d+1|0;b=H[j+16>>2]}g=b>>>8|0;c=g<<24;F:{if((c|0)==536870912){break F}c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25){break F}F[d|0]=g;d=d+1|0;b=H[j+16>>2]}c=b<<24;if((c|0)==536870912){break u}c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25){break u}F[d|0]=b;d=d+1|0}b=H[e+28>>2]+4|0;H[e+28>>2]=b;j=j+24|0;i=i+1|0;if(i>>>0>2]){continue}break}break c}d=(ac(b)+b|0)+1|0;f=b;break c}H[e+32>>2]=-1;H[e+36>>2]=-1;c=J[a+340>>1];G:{if(c){g=H[a+356>>2];while(1){f=g+N(b,20)|0;H:{if(J[f+6>>1]!=6|!J[f+8>>1]){break H}I:{J:{switch(J[f>>1]-1|0){case 2:if(J[f+2>>1]>1){break H}d=e+36|0;if(J[f+4>>1]==1033|H[e+36>>2]==-1){break I}break H;case 0:break J;default:break H}}if(J[f+2>>1]){break H}d=e+32|0;if(!J[f+4>>1]){break I}if(H[e+32>>2]!=-1){break H}}H[d>>2]=b}b=b+1|0;if((c|0)!=(b|0)){continue}break}b=H[e+32>>2];K:{c=H[e+36>>2];if((c|0)>=0){break K}f=0;if((b|0)<0){break a}if((c|0)!=-1){break K}break G}f=Bu(H[a+100>>2],H[a+368>>2],H[a+356>>2]+N(c,20)|0,65);break G}f=0;b=H[e+32>>2];if((b|0)<0){break a}}if((b|0)==-1|f){break b}d=H[a+368>>2];j=H[a+356>>2];g=H[a+100>>2];f=0;H[e+40>>2]=0;h=j+N(b,20)|0;c=pc(g,J[h+8>>1]+1|0,e+40|0);if(H[e+40>>2]){break b}f=bc(d,H[h+12>>2]);H[e+40>>2]=f;L:{if(f){break L}f=Jc(d,J[h+8>>1]);H[e+40>>2]=f;if(f){break L}f=c;M:{k=J[h+8>>1];if(k){i=H[d+32>>2];while(1){l=I[i|0];n=l<<24>>24;if((n|0)<0|!(I[(l>>>3|0)+94544|0]>>>(l&7)&1)){break M}F[f|0]=n;i=i+1|0;f=f+1|0;k=k-1|0;if(k){continue}break}}F[f|0]=0;wc(d);f=c;break b}wc(d)}if(c){zb[H[g+8>>2]](g,c)}f=0;H[h+12>>2]=0;G[h+8>>1]=0;b=j+N(b,20)|0;c=H[b+16>>2];if(c){zb[H[g+8>>2]](g,c)}H[b+16>>2]=0;break b}l=d-f|0;if((l|0)<128){break b}b=0-(l>>>4|0)|0;h=(l&-16)+f|0;j=123456789;c=123456789;i=123456789;d=123456789;while(1){m=j;g=h+(b<<4)|0;j=H[g>>2];j=kma(m^N(N(j,597399067)>>>17|N(j,-888307712),-1425107063),19)+c|0;m=c;c=H[g+4>>2];c=N(kma(m^N(N(c,-1425107063)>>>16|N(c,-1752629248),951274213),17)+i|0,5)+197830471|0;m=i;i=H[g+8>>2];k=N(kma(m^N(N(i,951274213)>>>15|N(i,-1781923840),-1578923117),15)+d|0,5)-1764942795|0;i=k;m=d;d=H[g+12>>2];j=N(j,5)+1444728091|0;d=N(kma(m^N(N(d,-1578923117)>>>14|N(d,776732672),597399067),13)+j|0,5)+850148119|0;g=b;b=b+1|0;if(g>>>0<=b>>>0){continue}break}b=0;N:{switch((l&15)-1|0){case 14:b=I[h+14|0]<<16;case 13:b=I[h+13|0]<<8|b;case 12:b=I[h+12|0]^b;d=N(N(b,-1578923117)>>>14|N(b,776732672),597399067)^d;case 11:b=I[h+11|0]<<24;case 10:b=I[h+10|0]<<16|b;case 9:b=I[h+9|0]<<8^b;case 8:b=I[h+8|0]^b;k=N(N(b,951274213)>>>15|N(b,-1781923840),-1578923117)^k;case 7:b=I[h+7|0]<<24;case 6:b=I[h+6|0]<<16|b;case 5:b=I[h+5|0]<<8^b;case 4:b=I[h+4|0]^b;c=N(N(b,-1425107063)>>>16|N(b,-1752629248),951274213)^c;case 3:b=I[h+3|0]<<24;case 2:b=I[h+2|0]<<16|b;case 1:b=I[h+1|0]<<8^b;case 0:b=I[h|0]^b;j=N(N(b,597399067)>>>17|N(b,-888307712),-1425107063)^j;break;default:break N}}b=H[a+748>>2]+f|0;F[b|0]=45;F[b+33|0]=46;F[b+34|0]=46;F[b+35|0]=46;F[b+36|0]=0;i=c^l;g=l^k;d=d^l;c=(i+(g+d|0)|0)+(j^l)|0;h=N(c>>>16^c,-2048144789);h=N(h>>>13^h,-1028477387);i=c+i|0;i=N(i>>>16^i,-2048144789);i=N(i>>>13^i,-1028477387);i=i>>>16^i;g=c+g|0;g=N(g>>>16^g,-2048144789);g=N(g>>>13^g,-1028477387);g=g>>>16^g;c=c+d|0;c=N(c>>>16^c,-2048144789);c=N(c>>>13^c,-1028477387);d=c>>>16^c;c=(((h>>>16^h)+i|0)+g|0)+d|0;d=c+d|0;F[b+32|0]=I[(d&15)+94528|0];F[b+25|0]=I[(d>>>28|0)+94528|0];g=c+g|0;F[b+24|0]=I[(g&15)+94528|0];F[b+31|0]=I[(d>>>4&15)+94528|0];F[b+30|0]=I[(d>>>8&15)+94528|0];F[b+29|0]=I[(d>>>12&15)+94528|0];F[b+28|0]=I[(d>>>16&15)+94528|0];F[b+27|0]=I[(d>>>20&15)+94528|0];F[b+26|0]=I[(d>>>24&15)+94528|0];F[b+23|0]=I[(g>>>4&15)+94528|0];F[b+22|0]=I[(g>>>8&15)+94528|0];F[b+21|0]=I[(g>>>12&15)+94528|0];F[b+20|0]=I[(g>>>16&15)+94528|0];F[b+19|0]=I[(g>>>20&15)+94528|0];F[b+18|0]=I[(g>>>24&15)+94528|0];d=c+i|0;F[b+16|0]=I[(d&15)+94528|0];F[b+17|0]=I[(g>>>28|0)+94528|0];F[b+15|0]=I[(d>>>4&15)+94528|0];F[b+14|0]=I[(d>>>8&15)+94528|0];F[b+13|0]=I[(d>>>12&15)+94528|0];F[b+12|0]=I[(d>>>16&15)+94528|0];F[b+11|0]=I[(d>>>20&15)+94528|0];F[b+10|0]=I[(d>>>24&15)+94528|0];F[b+9|0]=I[(d>>>28|0)+94528|0];F[b+8|0]=I[(c&15)+94528|0];F[b+7|0]=I[(c>>>4&15)+94528|0];F[b+6|0]=I[(c>>>8&15)+94528|0];F[b+5|0]=I[(c>>>12&15)+94528|0];F[b+4|0]=I[(c>>>16&15)+94528|0];F[b+3|0]=I[(c>>>20&15)+94528|0];F[b+2|0]=I[(c>>>24&15)+94528|0];F[b+1|0]=I[(c>>>28|0)+94528|0]}H[a+720>>2]=f}xb=e+48|0;return f|0}function Ru(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;k=xb-16|0;xb=k;c=H[a+1008>>2];d=0;a:{if((c|0)<0){break a}b:{c:{while(1){d=H[a+4>>2];c=(c<<2)+a|0;H[a+72>>2]=N(d,G[c+946>>1]);c=G[c+944>>1];H[a+40>>2]=0;H[a+44>>2]=0;H[a+84>>2]=0;h=H[a+24>>2];H[a+36>>2]=h;G[a+78>>1]=0;H[a+80>>2]=h;g=H[a+28>>2]-32|0;H[a+32>>2]=g;H[a+68>>2]=N(c,d);H[h+8>>2]=h;G[a+76>>1]=0;d:{e:{f:{g:{h:{if(G[a+120>>1]<=0){break h}e=H[a+8>>2];f=H[a+132>>2];c=0;q=0;while(1){H[a+88>>2]=0;H[a+92>>2]=0;d=H[a+12>>2];j=H[a+124>>2];l=c&65535;c=j+(l<<3)|0;g=N(d,H[c+4>>2])-e|0;i=N(d,H[c>>2])-e|0;r=q<<1;h=J[r+f>>1];m=j+(h<<3)|0;f=N(d,H[m+4>>2])-e|0;d=N(d,H[m>>2])-e|0;i:{if(!b){j=i;i=g;g=d;d=f;break i}j=g;g=f}f=l;l=H[a+128>>2];e=f+l|0;f=I[e|0];if(f&4){F[a+164|0]=f>>>5;f=I[e|0]}f=f&3;j:{if((f|0)==3){break j}k:{switch(f-1|0){case 0:break j;case 1:break b;default:break k}}l:{if((I[h+l|0]&3)==1){m=m-8|0;j=g;break l}d=(d+i|0)/2|0;j=(g+j|0)/2|0}i=d;e=e-1|0;c=c-8|0}H[a+64>>2]=i;H[a+60>>2]=j;m:{if(c>>>0>>0){while(1){h=e+1|0;g=c+8|0;n:{o:{p:{switch(I[e+1|0]&3){case 1:f=H[c+8>>2];d=c;e=h;c=g;l=H[d+12>>2];d=H[a+12>>2];g=H[a+8>>2];l=N(l,d)-g|0;d=N(d,f)-g|0;if(Qu(a,b?l:d,b?d:l)){break g}break n;case 0:d=H[a+12>>2];f=H[a+8>>2];e=N(d,H[c+8>>2])-f|0;c=N(d,H[c+12>>2])-f|0;d=b?e:c;f=b?c:e;c=g;while(1){if(c>>>0>=m>>>0){break o}e=H[a+12>>2];g=H[a+8>>2];l=N(e,H[c+8>>2])-g|0;e=N(e,H[c+12>>2])-g|0;g=b?l:e;l=b?e:l;e=h+1|0;c=c+8|0;h=I[h+1|0]&3;if(h){if((h|0)!=1){break b}if(!vo(a,f,d,l,g)){break n}break g}n=vo(a,f,d,(f+l|0)/2|0,(d+g|0)/2|0);h=e;f=l;d=g;if(!n){continue}break};break g;default:break p}}if((I[e+2|0]&3)!=2|c+16>>>0>m>>>0){break b}n=c+24|0;p=H[a+12>>2];o=H[a+8>>2];d=N(p,H[c+16>>2])-o|0;g=N(p,H[c+8>>2])-o|0;h=N(p,H[c+20>>2])-o|0;f=N(p,H[c+12>>2])-o|0;q:{if(!b){l=g;g=f;f=d;d=h;break q}l=f;f=h}if(m>>>0>=n>>>0){h=d;d=N(p,H[c+28>>2])-o|0;c=N(p,H[c+24>>2])-o|0;if(Pu(a,l,g,f,h,b?d:c,b?c:d)){break g}e=e+3|0;c=n;break n}if(!Pu(a,l,g,f,d,j,i)){break m}break g}if(vo(a,f,d,j,i)){break g}break m}if(c>>>0>>0){continue}break}}if(Qu(a,j,i)){break g}}f=H[a+132>>2];j=J[r+f>>1];l=H[a+4>>2];h=l-1|0;i=H[a+64>>2];n=h&i;r:{if(n|(i|0)>2]|(i|0)>H[a+72>>2]){break r}c=H[a+88>>2];if(!c|(J[H[a+80>>2]+12>>1]^J[c+12>>1])&8){break r}H[a+36>>2]=H[a+36>>2]-4}s:{t:{u:{c=H[a+36>>2];d=H[a+80>>2];e=H[d+8>>2];m=(c|0)==(e|0);if(I[d+12|0]&8?m:1){g=c-e|0;if((g|0)>=0){break u}break c}g=c-e|0;if((g|0)<0){break c}e=H[a+8>>2];i=(n|0)>=(e|0);break t}e=H[a+8>>2];if(m){h=c;break s}i=((h+i&0-l)-i|0)>=(e|0)}H[d+16>>2]=g>>>2;if(i){i=J[d+12>>1];G[d+12>>1]=(i&8?16:32)|i}H[a+80>>2]=c;h=c+32|0;H[a+36>>2]=h;H[c+8>>2]=h;H[c+16>>2]=0;H[d+28>>2]=c;G[a+76>>1]=J[a+76>>1]+1}g=H[a+32>>2];if(g>>>0<=h>>>0){break f}F[a+79|0]=0;c=H[a+88>>2];if(c){H[d+28>>2]=c}c=j+1|0;q=q+1|0;if((q|0)>1]){continue}break}q=J[a+76>>1];if(q>>>0<2){break h}m=H[a+84>>2];if(!m){break h}j=H[a+44>>2];o=H[a+28>>2];c=m;while(1){v:{if((q&65535)>>>0>=2){d=H[c+16>>2];l=H[c+8>>2]+(d<<2)|0;H[c+4>>2]=l;break v}l=0;H[c+4>>2]=0;d=H[c+16>>2]}e=H[c+20>>2];w:{if(I[c+12|0]&8){f=e;e=(e+d|0)-1|0;break w}f=(e-d|0)+1|0;H[c+20>>2]=f;H[c+8>>2]=(H[c+8>>2]+(d<<2)|0)-4}p=e;n=0-j|0;r=o-(j<<2)|0;c=j;x:{y:{while(1){i=c;if((c|0)<=0){break y}c=i-1|0;e=r+(c<<2)|0;d=H[e>>2];if((f|0)<(d|0)){continue}break}if((d|0)>=(f|0)){i=j;break x}H[e>>2]=f;if(!c){f=d;break y}e=0;n=c&3;if(n){while(1){c=c-1|0;s=r+(c<<2)|0;f=H[s>>2];H[s>>2]=d;d=f;e=e+1|0;if((n|0)!=(e|0)){continue}break}}if(i-2>>>0<3){break y}while(1){f=r+(c<<2)|0;e=f-8|0;i=H[e+4>>2];e=H[e>>2];H[f-4>>2]=d;d=f-12|0;f=H[d>>2];H[d>>2]=e;H[d+4>>2]=i;c=c-4|0;e=r+(c<<2)|0;d=H[e>>2];H[e>>2]=f;f=d;if(c){continue}break}}g=g-4|0;H[a+32>>2]=g;if(h>>>0>=g>>>0){break f}i=j+1|0;H[a+44>>2]=i;n=j^-1;H[o+(n<<2)>>2]=f}f=p+1|0;n=o+(n<<2)|0;c=i;z:{A:{while(1){j=c;if((c|0)<=0){break A}c=j-1|0;e=n+(c<<2)|0;d=H[e>>2];if((f|0)<(d|0)){continue}break}if((d|0)>(p|0)){j=i;break z}H[e>>2]=f;if(!c){f=d;break A}e=0;p=c&3;if(p){while(1){c=c-1|0;r=n+(c<<2)|0;f=H[r>>2];H[r>>2]=d;d=f;e=e+1|0;if((p|0)!=(e|0)){continue}break}}if(j-2>>>0<3){break A}while(1){f=n+(c<<2)|0;e=f-8|0;j=H[e+4>>2];e=H[e>>2];H[f-4>>2]=d;d=f-12|0;f=H[d>>2];H[d>>2]=e;H[d+4>>2]=j;c=c-4|0;e=n+(c<<2)|0;d=H[e>>2];H[e>>2]=f;f=d;if(c){continue}break}}g=g-4|0;H[a+32>>2]=g;if(h>>>0>=g>>>0){break f}j=i+1|0;H[a+44>>2]=j;H[o+((i^-1)<<2)>>2]=f}c=l;q=q-1|0;if(q&65535){continue}break}if(h>>>0>=g>>>0){break g}H[k+8>>2]=0;H[k+4>>2]=0;H[k>>2]=0;c=H[a>>2];d=H[a+68>>2]>>c;G[k+12>>1]=d;f=H[a+72>>2]>>c;G[k+14>>1]=f;while(1){e=m;c=H[e+20>>2];i=(c+H[e+16>>2]<<16)-65536>>16;if(c<<16>>16>16){G[k+14>>1]=c;f=c}if((i|0)>d<<16>>16){G[k+12>>1]=i;d=i}m=H[e+4>>2];H[e>>2]=0;h=k+8|0;c=H[k+8>>2];B:{if(!c){c=0;break B}if(H[c>>2]>0){break B}C:{while(1){i=c;c=H[c+4>>2];if(c){if(H[c>>2]<=0){continue}break C}break}c=0}h=i+4|0}H[e+4>>2]=c;H[h>>2]=e;if(m){continue}break}D:{if(H[a+44>>2]){zb[H[a+148>>2]](a,k+14|0,k+12|0);l=G[k+14>>1];e=H[k+8>>2];if(e){c=e;while(1){H[c+24>>2]=H[c+20>>2]-l;c=H[c+4>>2];if(c){continue}break}}g=H[a+44>>2];if((g|0)<=0){break D}if(H[H[a+28>>2]-(g<<2)>>2]==(l|0)){g=g-1|0;H[a+44>>2]=g;if(!g){break D}}c=0;while(1){if(e){j=c<<16>>16;while(1){c=H[e+24>>2];H[e+24>>2]=c-j;f=H[e+4>>2];if((c|0)==(j|0)){c=H[k+8>>2];E:{if(!c){break E}if((c|0)==(e|0)){H[k+8>>2]=f;break E}while(1){d=c;c=H[c+4>>2];if(!c){break E}if((c|0)!=(e|0)){continue}break}H[d+4>>2]=f}i=H[e>>2];F:{if(I[e+12|0]&8){d=k+4|0;c=H[k+4>>2];if(!c){c=0;break F}if((i|0)>2]){break F}G:{while(1){d=c;c=H[c+4>>2];if(c){if((i|0)>=H[c>>2]){continue}break G}break}c=0}d=d+4|0;break F}d=k;c=H[d>>2];if(!c){c=0;break F}if((i|0)>2]){break F}H:{while(1){d=c;c=H[c+4>>2];if(c){if((i|0)>=H[c>>2]){continue}break H}break}c=0}d=d+4|0}H[e+4>>2]=c;H[d>>2]=e}e=f;if(e){continue}break}}e=H[k+4>>2];c=e;I:{if(!c){break I}while(1){d=H[c+8>>2];H[c>>2]=H[d>>2];H[c+16>>2]=H[c+16>>2]-1;H[c+8>>2]=d+(J[c+12>>1]&8?4:-4);c=H[c+4>>2];if(c){continue}break}c=H[e+4>>2];if(!c){break I}h=e+4|0;d=k+4|0;while(1){J:{if(H[e>>2]<=H[c>>2]){e=c;d=h;break J}H[d>>2]=c;H[h>>2]=H[c+4>>2];H[c+4>>2]=e;e=H[k+4>>2];d=k+4|0}h=e+4|0;c=H[e+4>>2];if(c){continue}break}}j=H[k>>2];c=j;K:{if(!c){j=0;break K}while(1){d=H[c+8>>2];H[c>>2]=H[d>>2];H[c+16>>2]=H[c+16>>2]-1;H[c+8>>2]=d+(J[c+12>>1]&8?4:-4);c=H[c+4>>2];if(c){continue}break}e=H[j+4>>2];if(!e){break K}h=j+4|0;d=k;c=j;while(1){L:{if(H[c>>2]<=H[e>>2]){d=h;c=e;break L}H[d>>2]=e;H[h>>2]=H[e+4>>2];H[e+4>>2]=c;d=k;j=H[d>>2];c=j}h=c+4|0;e=H[c+4>>2];if(e){continue}break}}H[a+44>>2]=g-1;r=H[H[a+28>>2]-(g<<2)>>2];s=r<<16>>16;M:{if((s|0)>l<<16>>16){n=j;g=j;i=l;while(1){e=H[k+4>>2];N:{if(!e){break N}q=0;c=e;f=g;if(!f){break N}while(1){O:{P:{h=H[c>>2];m=H[f>>2];d=(h|0)>(m|0)?h:m;h=(h|0)<(m|0)?h:m;m=H[a+4>>2];if((d-h|0)>(m|0)){break P}o=0-m|0;p=o&h;if((p|0)==(h|0)){break P}o=o&(d+m|0)-1;if((o|0)==(d|0)|(o|0)!=(m+p|0)&(o|0)>=(p|0)){break P}if((J[c+12>>1]&7)==2){break O}H[c>>2]=h;H[f>>2]=d;H[c+24>>2]=1;q=q+1|0;break O}zb[H[a+152>>2]](a,i<<16>>16,h,d,c,f)}c=H[c+4>>2];if(c){f=H[f+4>>2];if(f){continue}}break}c=e;if(q<<16>>16<=0){break N}while(1){if(H[c+24>>2]){H[c+24>>2]=0;zb[H[a+156>>2]](a,i<<16>>16,H[c>>2],H[g>>2],c,g)}c=H[c+4>>2];if(!c){break N}g=H[g+4>>2];if(g){continue}break}}zb[H[a+160>>2]](a);i=i+1|0;if((s|0)<=i<<16>>16){break M}c=e;Q:{if(!c){break Q}while(1){d=H[c+8>>2];H[c>>2]=H[d>>2];H[c+16>>2]=H[c+16>>2]-1;H[c+8>>2]=d+(J[c+12>>1]&8?4:-4);c=H[c+4>>2];if(c){continue}break}c=H[e+4>>2];if(!c){break Q}h=e+4|0;d=k+4|0;while(1){R:{if(H[e>>2]<=H[c>>2]){e=c;d=h;break R}H[d>>2]=c;H[h>>2]=H[c+4>>2];H[c+4>>2]=e;e=H[k+4>>2];d=k+4|0}h=e+4|0;c=H[e+4>>2];if(c){continue}break}j=H[k>>2];n=j}f=n;n=0;g=0;c=f;if(!c){continue}while(1){d=H[c+8>>2];H[c>>2]=H[d>>2];H[c+16>>2]=H[c+16>>2]-1;H[c+8>>2]=d+(J[c+12>>1]&8?4:-4);c=H[c+4>>2];if(c){continue}break}h=f+4|0;d=k;n=f;g=f;c=f;e=H[c+4>>2];if(!e){continue}while(1){S:{if(H[c>>2]<=H[e>>2]){d=h;c=e;break S}H[d>>2]=e;H[h>>2]=H[e+4>>2];H[e+4>>2]=c;d=k;j=H[d>>2];f=j;c=f}h=c+4|0;e=H[c+4>>2];if(e){continue}break}n=f;g=f;continue}}e=H[k+4>>2];i=l}T:{c=e;if(!c){break T}while(1){d=H[c+4>>2];U:{if(H[c+16>>2]|!e){break U}if((c|0)==(e|0)){H[k+4>>2]=d;break U}while(1){f=e;e=H[e+4>>2];if(!e){break U}if((c|0)!=(e|0)){continue}break}H[f+4>>2]=d}if(!d){break T}e=H[k+4>>2];c=d;continue}}V:{if(!j){break V}while(1){d=j;j=H[d+4>>2];W:{if(H[d+16>>2]){break W}c=H[k>>2];if(!c){break W}if((c|0)==(d|0)){H[k>>2]=j;if(!j){break V}continue}while(1){f=c;c=H[c+4>>2];if(!c){break W}if((c|0)!=(d|0)){continue}break}H[f+4>>2]=j;if(!j){break V}continue}if(j){continue}break}}g=H[a+44>>2];if((g|0)<=0){l=i;break D}else{c=r-l|0;e=H[k+8>>2];l=i;continue}}}H[a+40>>2]=20;d=20;break a}if(G[k+12>>1]>16){break e}while(1){zb[H[a+160>>2]](a);l=(l<<16)+65536>>16;if((l|0)<=G[k+12>>1]){continue}break}break e}H[a+84>>2]=0;if(h>>>0>>0){break e}}if(H[a+40>>2]==98){break f}d=1;break a}H[a+40>>2]=0;c=H[a+1008>>2];d=(c<<2)+a|0;f=d;e=G[d+946>>1];i=G[d+944>>1];d=(e+i|0)/2|0;if(!((c|0)<=6&(d|0)>=(i|0))){H[a+40>>2]=20;H[a+1008>>2]=0;d=20;break a}c=c+1|0;i=(c<<2)+a|0;G[i+946>>1]=e;G[i+944>>1]=d;G[f+946>>1]=d-1;break d}c=H[a+1008>>2]-1|0}H[a+1008>>2]=c;if((c|0)>=0){continue}break}d=0;break a}H[a+40>>2]=99;d=1;break a}H[a+40>>2]=20;d=1}xb=k+16|0;return d}function oE(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;m=xb-32|0;xb=m;k=H[c+80>>2];g=d+3|0;a:{if(H[c+44>>2]!=1265525857|g>>>0>e>>>0){break a}i=N(d,20)+k|0;if(I[i+12|0]&32|I[i+18|0]!=16){break a}f=d+1|0;j=N(f,20)+k|0;if(I[j+12|0]&32|I[j+18|0]!=4){break a}i=N(d,20)+k|0;if(I[i+52|0]&32){break a}h=i+40|0;if(I[h+18|0]!=6){break a}Jd(c,f,g);H[m+24>>2]=H[j+16>>2];i=H[j+12>>2];H[m+16>>2]=H[j+8>>2];H[m+20>>2]=i;i=H[j+4>>2];H[m+8>>2]=H[j>>2];H[m+12>>2]=i;H[j+16>>2]=H[h+16>>2];i=H[h+12>>2];H[j+8>>2]=H[h+8>>2];H[j+12>>2]=i;i=H[h+4>>2];H[j>>2]=H[h>>2];H[j+4>>2]=i;H[h+16>>2]=H[m+24>>2];i=H[m+20>>2];H[h+8>>2]=H[m+16>>2];H[h+12>>2]=i;i=H[m+12>>2];H[h>>2]=H[m+8>>2];H[h+4>>2]=i}l=H[a>>2];h=H[l+20>>2];b:{c:{d:{e:{f:{g:{if(!(!H[a+80>>2]|e>>>0>>0)){i=e;g=d;h:{i:{switch(h|0){case 0:i=N(d+2|0,20)+k|0;if(I[i+12|0]&32){break h}f=I[i+18|0];if(f>>>0>31){break h}i=e;if(!(1<>2]=H[i>>2];H[m+12>>2]=H[i+20>>2];j:{if((h|0)==1){H[m+16>>2]=H[i+40>>2];h=a+16|0;if(H[h>>2]){break j}break c}H[m+16>>2]=0;h=a+16|0;i=e;if(!H[h>>2]){break d}}f=0;k:{while(1){if(Ff(b,J[H[a+12>>2]+(f<<3)>>1],m+8|0,2,I[a+20|0])){break k}f=f+1|0;j=H[h>>2];if(f>>>0>>0){continue}break}if(H[H[a>>2]+20>>2]!=1){break c}i=e;if(!j){break d}f=0;while(1){if(Ff(b,J[H[a+12>>2]+(f<<3)>>1],m+8|0,3,I[a+20|0])){break k}f=f+1|0;if(f>>>0>2]){continue}break}break c}n=1;g=d+2|0;if(g>>>0>=e>>>0){i=d;l=H[a>>2];break b}while(1){i=N(g,20)+k|0;if(I[i+12|0]&32){i=d;l=H[a>>2];break b}i=I[i+18|0];if(i>>>0>31|!(1<>>0>i>>>0?e:i;f=d;while(1){f=f+1|0;if(f>>>0>=e>>>0){i=d;break b}i=N(f,20)+k|0;if(I[i+12|0]&32){i=d;g=f;break b}i=I[i+18|0];if(1<>>0<=31:0){continue}break}i=d;g=f;break b}i=e;g=d;break b}i=d}l=H[a>>2];break b}i=e;l=H[a>>2]}j=0;f=e;l:{m:{switch(H[l+12>>2]){case 1:while(1){h=f;n:{o:{f=f-1|0;l=N(f,20)+k|0;if(I[l+12|0]&32){break o}l=I[l+18|0];if(l>>>0>31|!(1<>>0>=f>>>0){break n}if(I[(N(h,20)+k|0)-22|0]==4){break l}}if(f>>>0>g>>>0){continue}break};break l;case 0:break m;default:break l}}h=n?i:g;r:{if(e>>>0<=g>>>0){i=h;break r}f=g;while(1){i=h;j=N(f,20)+k|0;s:{if(I[j+12|0]&32){break s}h=I[j+18|0];if(h>>>0>31){h=i;break s}if(!(1<>>0<=g>>>0){break s}if(I[j-2|0]==6){break r}}i=h;f=f+1|0;if((f|0)!=(e|0)){continue}break}}f=i+1|0;if(f>>>0>=e>>>0){break l}while(1){j=N(f,20)+k|0;t:{if(I[j+12|0]&32){break t}h=I[j+18|0];if(h>>>0>31|!(1<>>0>2:0;u:{if(d>>>0>=i>>>0){break u}f=d;j=i-f&3;if(j){h=0;while(1){g=N(f,20)+k|0;n=I[g+19|0];F[g+19|0]=n>>>0<3?n:3;f=f+1|0;h=h+1|0;if((j|0)!=(h|0)){continue}break}}if((d^-1)+i>>>0<=2){break u}while(1){h=N(f,20)+k|0;g=I[h+19|0];F[h+19|0]=g>>>0<3?g:3;g=I[h+39|0];F[h+39|0]=g>>>0<3?g:3;g=I[h+59|0];F[h+59|0]=g>>>0<3?g:3;g=I[h+79|0];F[h+79|0]=g>>>0<3?g:3;f=f+4|0;if((i|0)!=(f|0)){continue}break}}if(e>>>0>i>>>0){F[(N(i,20)+k|0)+19|0]=4}f=i;v:{while(1){g=f;f=f+1|0;if(f>>>0>=e>>>0){break v}if(I[(N(f,20)+k|0)+18|0]!=7){continue}break}f=g+2|0;if(f>>>0>=e>>>0){break v}while(1){w:{g=N(f,20)+k|0;if(I[g+12|0]&32){break w}g=I[g+18|0];if(g>>>0>31|!(1<>>0>=e>>>0){break x}if(I[(N(f,20)+k|0)+18|0]!=4){continue}break}g=e-1|0;if(g>>>0<=f>>>0){break x}j=H[c+44>>2]!=1265525857;while(1){y:{n=N(g,20)+k|0;z:{if(I[n+12|0]&32){break z}l=I[n+18|0];if(l>>>0>31){break z}if(1<>>0>f>>>0){continue}break x}g=g-1|0;if(g>>>0>f>>>0){continue}break x}break}if((l|0)==4){break x}l=N(f,20)+k|0;H[m+24>>2]=H[l+16>>2];j=H[l+12>>2];H[m+16>>2]=H[l+8>>2];H[m+20>>2]=j;j=H[l+4>>2];H[m+8>>2]=H[l>>2];H[m+12>>2]=j;$c(l,(N(h,20)+k|0)+40|0,N(g-f|0,20));g=N(g,20)+k|0;H[g+16>>2]=H[m+24>>2];f=H[m+20>>2];H[g+8>>2]=H[m+16>>2];H[g+12>>2]=f;f=H[m+12>>2];H[g>>2]=H[m+8>>2];H[g+4>>2]=f}r=d>>>0>>0;if(r){l=0;f=d;while(1){j=N(f,20)+k|0;g=I[j+18|0];A:{if(!(g>>>0>31|!(1<>>0>=h>>>0){break A}h=h-1|0;g=I[(N(h,20)+k|0)+19|0];if((g|0)==2){continue}break}F[j+19|0]=g;break A}g=I[j+19|0];l=(g|0)==14?l:g}f=f+1|0;if((f|0)!=(e|0)){continue}break}}f=i+1|0;if(f>>>0>>0){n=i-1|0;l=0;j=i;while(1){g=j;B:{C:{o=N(f,20)+k|0;if(I[o+12|0]&32){h=I[o+18|0];break C}h=I[o+18|0];if(h>>>0>31|!(1<>>0>=f>>>0){break B}if((i+l|0)-g&1){h=N(h,20)+k|0;if(I[h+19|0]<=13){F[h+19|0]=I[o+19|0]}h=g+2|0}j=f;if((g|0)==(l+n|0)){break B}while(1){g=N(h,20)+k|0;if(I[g+19|0]<=13){F[g+19|0]=I[o+19|0]}if(I[g+39|0]<=13){F[g+39|0]=I[o+19|0]}h=h+2|0;if(h>>>0>>0){continue}break}j=f;break B}j=(h&255)==7?f:g}l=l+1|0;f=f+1|0;if((f|0)!=(e|0)){continue}break}}j=N(d,20)+k|0;p=I[j+15|0];o=d>>>0>=e>>>0;D:{if(o){break D}f=d;i=e-f&3;if(i){h=0;while(1){F[(N(f,20)+k|0)+15|0]=f-d;f=f+1|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}}if((d^-1)+e>>>0<3){break D}while(1){g=N(f,20)+k|0;i=f-d|0;F[g+35|0]=i+1;F[g+15|0]=i;F[g+55|0]=i+2;F[g+75|0]=i+3;f=f+4|0;if((f|0)!=(e|0)){continue}break}}q=e-d|0;if(q>>>0>=2){l=1;while(1){g=j+N(l,20)|0;h=l;while(1){i=h;if(h){h=i-1|0;if(I[(j+N(h,20)|0)+19|0]>I[g+19|0]){continue}}break}if((i|0)!=(l|0)){H[m+24>>2]=H[g+16>>2];f=H[g+12>>2];H[m+16>>2]=H[g+8>>2];H[m+20>>2]=f;f=H[g+4>>2];H[m+8>>2]=H[g>>2];H[m+12>>2]=f;f=j+N(i,20)|0;$c(f+20|0,f,N(l-i|0,20));H[f+16>>2]=H[m+24>>2];i=H[m+20>>2];H[f+8>>2]=H[m+16>>2];H[f+12>>2]=i;i=H[m+12>>2];H[f>>2]=H[m+8>>2];H[f+4>>2]=i}l=l+1|0;if((q|0)!=(l|0)){continue}break}}i=e;E:{if(!r){break E}i=d;while(1){if(I[(N(i,20)+k|0)+19|0]==4){break E}i=i+1|0;if((i|0)!=(e|0)){continue}break}i=e}F:{if(!(I[a+4|0]|q>>>0>127)){if(e>>>0<=i>>>0){break F}j=i;while(1){f=I[(N(j,20)+k|0)+15|0];G:{if((f|0)==255){break G}f=d+f|0;g=j;h=g;if((f|0)!=(g|0)){while(1){n=N(f,20)+k|0;l=I[n+15|0];F[n+15|0]=255;g=f>>>0>>0?g:f;h=f>>>0>h>>>0?h:f;f=d+l|0;if((j|0)!=(f|0)){continue}break}}g=g+1|0;f=i>>>0>h>>>0?i:h;if(g-f>>>0<2){break G}Jd(c,f,g)}j=j+1|0;if((j|0)!=(e|0)){continue}break}break F}if(e-i>>>0<2){break F}Jd(c,i,e)}H:{if(o){break H}h=d;g=q&7;if(g){f=0;while(1){F[(N(h,20)+k|0)+15|0]=p;h=h+1|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}}if((d^-1)+e>>>0>6){while(1){f=N(h,20)+k|0;F[f+35|0]=p;F[f+15|0]=p;F[f+55|0]=p;F[f+75|0]=p;F[f+95|0]=p;F[f+115|0]=p;F[f+135|0]=p;F[f+155|0]=p;h=h+8|0;if((h|0)!=(e|0)){continue}break}}if(!r){break H}f=d;while(1){g=N(f,20)+k|0;if(I[g+19|0]!=1){break H}H[g+4>>2]=H[g+4>>2]|H[a+80>>2];f=f+1|0;if((f|0)!=(e|0)){continue}break}}h=H[a+100>>2];n=I[a+4|0];h=n|H[H[a>>2]+24>>2]?h:H[a+92>>2]|h;I:{if(d>>>0>=i>>>0){break I}f=d;l=i-f&3;if(l){g=0;while(1){j=N(f,20)+k|0;H[j+4>>2]=H[j+4>>2]|h;f=f+1|0;g=g+1|0;if((l|0)!=(g|0)){continue}break}}if((d^-1)+i>>>0<=2){break I}while(1){g=N(f,20)+k|0;H[g+4>>2]=H[g+4>>2]|h;H[g+24>>2]=H[g+24>>2]|h;H[g+44>>2]=H[g+44>>2]|h;g=g- -64|0;H[g>>2]=H[g>>2]|h;f=f+4|0;if((i|0)!=(f|0)){continue}break}}f=i+1|0;J:{if(f>>>0>=e>>>0){break J}l=H[a+104>>2]|(H[a+96>>2]|H[a+92>>2]);j=(i^-1)+e&3;if(j){g=0;while(1){h=N(f,20)+k|0;H[h+4>>2]=l|H[h+4>>2];f=f+1|0;g=g+1|0;if((j|0)!=(g|0)){continue}break}}if((e-i|0)-2>>>0<3){break J}while(1){g=N(f,20)+k|0;H[g+4>>2]=l|H[g+4>>2];H[g+24>>2]=l|H[g+24>>2];H[g+44>>2]=l|H[g+44>>2];g=g- -64|0;H[g>>2]=l|H[g>>2];f=f+4|0;if((f|0)!=(e|0)){continue}break}}K:{if(!n|H[c+44>>2]!=1147500129){break K}g=d+1|0;if(i>>>0<=g>>>0){break K}f=d;while(1){c=f;f=g;h=N(c,20)+k|0;L:{if(I[h+18|0]!=16){break L}g=N(f,20)+k|0;if(I[g+18|0]!=4){break L}c=c+2|0;if((c|0)!=(i|0)&I[(N(c,20)+k|0)+18|0]==6){break L}H[h+4>>2]=H[h+4>>2]|H[a+92>>2];H[g+4>>2]=H[g+4>>2]|H[a+92>>2]}g=f+1|0;if((i|0)!=(g|0)){continue}break}}M:{if(!H[a+88>>2]|i+2>>>0>=e>>>0){break M}h=H[a+28>>2];while(1){c=N(i,20)+k|0;H[m+8>>2]=H[c+20>>2];H[m+12>>2]=H[c+40>>2];c=i+1|0;N:{O:{if(h){g=i+2|0;f=0;break O}h=0;break N}while(1){if(!Ff(b,J[H[a+24>>2]+(f<<3)>>1],m+8|0,2,I[a+32|0])){f=f+1|0;h=H[a+28>>2];if(f>>>0>>0){continue}break N}break}b=N(c,20)+k|0;H[b+4>>2]=H[b+4>>2]|H[a+88>>2];b=N(g,20)+k|0;H[b+4>>2]=H[b+4>>2]|H[a+88>>2];break M}f=i+3|0;i=c;if(e>>>0>f>>>0){continue}break}}h=d+1|0;if(h>>>0>>0){g=d;while(1){f=g;g=h;b=N(g,20)+k|0;P:{if(I[b+12|0]&32){break P}b=I[b+18|0];if((b|0)!=5|!(1<>2]=H[b+4>>2]&(H[a+100>>2]^-1);if(d>>>0>=f>>>0){break P}while(1){b=N(f,20)+k|0;Q:{if(I[b+12|0]&32){break Q}b=I[b+18|0];if(b>>>0>31){break Q}if(1<>2]=H[b+4>>2]&(H[a+100>>2]^-1);if(d>>>0>>0){continue}break}}h=g+1|0;if((h|0)!=(e|0)){continue}break}}xb=m+32|0}function Cx(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=O(0),A=0;j=xb-304|0;xb=j;a:{b:{c:{d:{e:{if(H[a+4>>2]){break e}zp(a);if(H[a+4>>2]){break e}break d}f=I[b|0];if(!f){break a}f:{g:{h:{while(1){i:{d=f&255;j:{if((d|0)==32|d-9>>>0<5){while(1){f=b;b=b+1|0;d=I[f+1|0];if((d|0)==32|d-9>>>0<5){continue}break}Mf(a,0,0);while(1){b=H[a+4>>2];k:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break k}b=Wc(a)}if((b|0)==32|b-9>>>0<5){continue}break}b=H[a+4>>2];d=H[a+116>>2];if((d|0)>0|(d|0)>=0){b=b-1|0;H[a+4>>2]=b}b=b-H[a+44>>2]|0;d=b>>31;g=b;e=p+H[a+124>>2]|0;b=m+H[a+120>>2]|0;e=b>>>0>>0?e+1|0:e;m=b;b=g+b|0;g=d+e|0;g=b>>>0>>0?g+1|0:g;m=b;p=g;break j}l:{m:{n:{if(I[b|0]==37){d=I[b+1|0];if((d|0)==42){break n}if((d|0)!=37){break m}}Mf(a,0,0);o:{if(I[b|0]==37){while(1){d=H[a+4>>2];p:{if((d|0)!=H[a+104>>2]){H[a+4>>2]=d+1;f=I[d|0];break p}f=Wc(a)}if((f|0)==32|f-9>>>0<5){continue}break}b=b+1|0;break o}d=H[a+4>>2];if((d|0)!=H[a+104>>2]){H[a+4>>2]=d+1;f=I[d|0];break o}f=Wc(a)}if(I[b|0]!=(f|0)){b=H[a+116>>2];if((b|0)>0|(b|0)>=0){H[a+4>>2]=H[a+4>>2]-1}if((f|0)>=0){break a}e=0;if(!u){break d}break a}d=H[a+4>>2]-H[a+44>>2]|0;e=d>>31;i=d;d=p+H[a+124>>2]|0;f=m+H[a+120>>2]|0;d=f>>>0>>0?d+1|0:d;g=f;f=i+f|0;h=d+e|0;m=f;p=f>>>0>>0?h+1|0:h;f=b;break j}l=0;f=b+2|0;break l}if(!(I[b+2|0]!=36|d-48>>>0>=10)){d=I[b+1|0]-48|0;f=xb-16|0;H[f+12>>2]=c;d=(d>>>0>1?(d<<2)-4|0:0)+c|0;H[f+8>>2]=d+4;l=H[d>>2];f=b+3|0;break l}l=H[c>>2];c=c+4|0;f=b+1|0}s=0;b=0;if(I[f|0]-48>>>0<10){while(1){b=(I[f|0]+N(b,10)|0)-48|0;d=I[f+1|0];f=f+1|0;if(d-48>>>0<10){continue}break}}h=I[f|0];if((h|0)!=109){d=f}else{n=0;s=(l|0)!=0;h=I[f+1|0];o=0;d=f+1|0}f=d+1|0;k=3;e=s;q:{r:{switch(h-65|0){case 39:e=d+2|0;d=I[d+1|0]==104;f=d?e:f;k=d?-2:-1;break q;case 43:e=d+2|0;d=I[d+1|0]==108;f=d?e:f;k=d?3:1;break q;case 51:case 57:k=1;break q;case 11:k=2;break q;case 41:break q;case 0:case 2:case 4:case 5:case 6:case 18:case 23:case 26:case 32:case 34:case 35:case 36:case 37:case 38:case 40:case 45:case 46:case 47:case 50:case 52:case 55:break r;default:break f}}k=0;f=d}d=I[f|0];e=(d&47)==3;v=e?1:k;q=e?d|32:d;s:{if((q|0)==91){break s}t:{if((q|0)!=110){if((q|0)!=99){break t}b=(b|0)>1?b:1;break s}Bx(l,v,m,p);break j}Mf(a,0,0);while(1){d=H[a+4>>2];u:{if((d|0)!=H[a+104>>2]){H[a+4>>2]=d+1;d=I[d|0];break u}d=Wc(a)}if((d|0)==32|d-9>>>0<5){continue}break}d=H[a+4>>2];e=H[a+116>>2];if((e|0)>0|(e|0)>=0){d=d-1|0;H[a+4>>2]=d}d=d-H[a+44>>2]|0;g=d>>31;i=d;e=p+H[a+124>>2]|0;d=m+H[a+120>>2]|0;e=d>>>0>>0?e+1|0:e;m=d;d=i+d|0;p=e+g|0;p=d>>>0>>0?p+1|0:p;m=d}d=b>>31;h=d;i=b;Mf(a,b,d);d=H[a+4>>2];v:{if((d|0)!=H[a+104>>2]){H[a+4>>2]=d+1;break v}if((Wc(a)|0)<0){break h}}d=H[a+116>>2];if((d|0)>0|(d|0)>=0){H[a+4>>2]=H[a+4>>2]-1}d=16;w:{x:{y:{z:{A:{switch(q-88|0){default:b=q-65|0;if(b>>>0>6|!(1<>2]-H[a+44>>2]|0;if(H[a+120>>2]!=(0-b|0)|H[a+124>>2]!=(0-((b>>31)+((b|0)!=0)|0)|0)){break y}break c;case 3:case 11:case 27:if((q&239)==99){Nb(j+32|0,-1,257);F[j+32|0]=0;if((q|0)!=115){break x}F[j+65|0]=0;F[j+46|0]=0;G[j+42>>1]=0;G[j+44>>1]=0;break x}e=I[f+1|0];g=(e|0)==94;Nb(j+32|0,g,257);F[j+32|0]=0;d=g?f+2|0:f+1|0;B:{C:{D:{f=I[(g?2:1)+f|0];if((f|0)!=45){if((f|0)==93){break D}k=(e|0)!=94;break B}k=(e|0)!=94;F[j+78|0]=k;break C}k=(e|0)!=94;F[j+126|0]=k}d=d+1|0}f=d;while(1){d=I[f|0];E:{if((d|0)!=45){if(!d){break h}if((d|0)!=93){break E}break x}d=45;e=I[f+1|0];if(!e|(e|0)==93){break E}g=f+1|0;f=I[f-1|0];F:{if(e>>>0<=f>>>0){d=e;break F}while(1){f=f+1|0;F[f+(j+32|0)|0]=k;d=I[g|0];if(f>>>0>>0){continue}break}}f=g}F[(d+j|0)+33|0]=k;f=f+1|0;continue};case 23:d=8;break z;case 12:case 29:d=10;break z;case 1:case 2:case 4:case 5:case 6:case 7:case 8:case 10:case 16:case 18:case 19:case 20:case 21:case 22:case 25:case 26:case 28:case 30:case 31:break w;case 0:case 24:case 32:break z;case 17:break A}}d=0}i=0;g=0;e=0;h=0;k=0;w=xb-16|0;xb=w;G:{if(!((d|0)!=1&d>>>0<=36)){H[197018]=28;break G}while(1){b=H[a+4>>2];H:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break H}b=Wc(a)}if((b|0)==32|b-9>>>0<5){continue}break}I:{J:{switch(b-43|0){case 0:case 2:break J;default:break I}}k=(b|0)==45?-1:0;b=H[a+4>>2];if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break I}b=Wc(a)}K:{L:{M:{N:{if(!(d&-17|(b|0)!=48)){b=H[a+4>>2];O:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break O}b=Wc(a)}if((b&-33)==88){d=16;b=H[a+4>>2];P:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break P}b=Wc(a)}if(I[b+766849|0]<16){break M}b=H[a+116>>2];if((b|0)>0|(b|0)>=0){H[a+4>>2]=H[a+4>>2]-1}Mf(a,0,0);break G}if(d){break N}d=8;break M}d=d?d:10;if(d>>>0>I[b+766849|0]){break N}b=H[a+116>>2];if((b|0)>0|(b|0)>=0){H[a+4>>2]=H[a+4>>2]-1}Mf(a,0,0);H[197018]=28;break G}if((d|0)!=10){break M}e=b-48|0;if(e>>>0<=9){d=0;while(1){d=N(d,10)+e|0;i=d>>>0<429496729;b=H[a+4>>2];Q:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break Q}b=Wc(a)}e=b-48|0;if(i&e>>>0<=9){continue}break}i=d}R:{if(e>>>0>9){break R}h=gma(i,0,10,0);d=yb;while(1){b=e+h|0;g=b>>>0>>0?d+1|0:d;i=b;d=(g|0)==429496729&b>>>0>=2576980378|g>>>0>429496729;b=H[a+4>>2];S:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break S}b=Wc(a)}e=b-48|0;if(d|e>>>0>9){break R}h=gma(i,g,10,0);d=yb;if((d|0)==-1&(e^-1)>>>0>=h>>>0|(d|0)!=-1){continue}break}d=10;break L}d=10;if(e>>>0<=9){break L}break K}if(d-1&d){h=I[b+766849|0];if(h>>>0>>0){while(1){e=N(d,e)+h|0;i=e>>>0<119304647;b=H[a+4>>2];T:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break T}b=Wc(a)}h=I[b+766849|0];if(i&h>>>0>>0){continue}break}i=e}if(d>>>0<=h>>>0){break L}while(1){r=gma(i,g,d,0);e=yb;h=h&255;if((e|0)==-1&(h^-1)>>>0>>0){break L}b=h+r|0;e=b>>>0>>0?e+1|0:e;i=b;g=e;b=H[a+4>>2];U:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break U}b=Wc(a)}h=I[b+766849|0];if(d>>>0<=h>>>0){break L}we(w,d,0,0,0,i,g,0,0);if(!(H[w+8>>2]|H[w+12>>2])){continue}break}break L}r=F[(N(d,23)>>>5&7)+767105|0];e=I[b+766849|0];if(e>>>0>>0){while(1){h=h<>>0<134217728;b=H[a+4>>2];V:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break V}b=Wc(a)}e=I[b+766849|0];if(i&e>>>0>>0){continue}break}i=h}if(d>>>0<=e>>>0){break L}h=r;t=h&31;if((h&63)>>>0>=32){h=0;t=-1>>>t|0}else{h=-1>>>t|0;t=h|(1<>>0>t>>>0){break L}while(1){b=r&31;x=e&255;if((r&63)>>>0>=32){e=i<>>32-b|g<>2];W:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break W}b=Wc(a)}e=I[b+766849|0];if(d>>>0<=e>>>0){break L}if((g|0)==(h|0)&i>>>0<=t>>>0|g>>>0>>0){continue}break}}if(I[b+766849|0]>=d>>>0){break K}while(1){b=H[a+4>>2];X:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break X}b=Wc(a)}if(I[b+766849|0]>>0){continue}break}H[197018]=68;k=0;i=-1;g=-1}b=H[a+116>>2];if((b|0)>0|(b|0)>=0){H[a+4>>2]=H[a+4>>2]-1}Y:{if((g&i)!=-1){break Y}}b=k;d=b^i;i=d-b|0;e=b>>31;g=(e^g)-((b>>>0>d>>>0)+e|0)|0}xb=w+16|0;b=H[a+4>>2]-H[a+44>>2]|0;if(H[a+120>>2]==(0-b|0)&H[a+124>>2]==(0-((b>>31)+((b|0)!=0)|0)|0)){break c}if(!(!l|(q|0)!=112)){H[l>>2]=i;break w}Bx(l,v,i,g);break w}if(!l){break w}b=H[j+16>>2];d=H[j+20>>2];e=H[j+8>>2];g=H[j+12>>2];Z:{switch(v|0){case 0:y=l,z=xx(e,g,b,d),L[y>>2]=z;break w;case 1:y=l,A=op(e,g,b,d),M[y>>3]=A;break w;case 2:break Z;default:break w}}H[l>>2]=e;H[l+4>>2]=g;H[l+8>>2]=b;H[l+12>>2]=d;break w}g=(q|0)==99;k=g?b+1|0:31;r=(v|0)!=1;_:{if(!r){d=l;if(s){d=Tb(k<<2);if(!d){break g}}H[j+296>>2]=0;H[j+300>>2]=0;b=0;$:{while(1){o=d;while(1){d=H[a+4>>2];aa:{if((d|0)!=H[a+104>>2]){H[a+4>>2]=d+1;d=I[d|0];break aa}d=Wc(a)}if(!I[(d+j|0)+33|0]){break $}F[j+27|0]=d;d=sk(j+28|0,j+27|0,1,j+296|0);if((d|0)==-2){continue}if((d|0)==-1){break i}if(o){H[(b<<2)+o>>2]=H[j+28>>2];b=b+1|0}if(!((b|0)==(k|0)&s)){continue}break}k=k<<1|1;d=tc(o,k<<2);if(d){continue}break}e=1;n=0;break f}if(j+296|0?H[j+296>>2]:0){break i}n=0;break _}if(s){b=0;d=Tb(k);if(!d){break g}while(1){n=d;while(1){d=H[a+4>>2];ba:{if((d|0)!=H[a+104>>2]){H[a+4>>2]=d+1;d=I[d|0];break ba}d=Wc(a)}if(!I[(d+j|0)+33|0]){o=0;break _}F[b+n|0]=d;b=b+1|0;if((k|0)!=(b|0)){continue}break}e=1;o=0;k=k<<1|1;d=tc(n,k);if(d){continue}break}break f}b=0;if(l){while(1){d=H[a+4>>2];ca:{if((d|0)!=H[a+104>>2]){H[a+4>>2]=d+1;d=I[d|0];break ca}d=Wc(a)}if(I[(d+j|0)+33|0]){F[b+l|0]=d;b=b+1|0;continue}else{o=0;n=l;break _}}}while(1){b=H[a+4>>2];da:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break da}b=Wc(a)}if(I[(b+j|0)+33|0]){continue}break}n=0;o=0;b=0}d=H[a+4>>2];e=H[a+116>>2];if((e|0)>0|(e|0)>=0){d=d-1|0;H[a+4>>2]=d}e=d-H[a+44>>2]|0;k=e;d=e+H[a+120>>2]|0;e=H[a+124>>2]+(e>>31)|0;e=d>>>0>>0?e+1|0:e;if(!(e|d)|((d|0)!=(i|0)|(e|0)!=(h|0))&(q|0)==99){break c}ea:{if(!s){break ea}if(!r){H[l>>2]=o;break ea}H[l>>2]=n}if(g){break w}if(o){H[(b<<2)+o>>2]=0}if(!n){n=0;break w}F[b+n|0]=0}b=H[a+4>>2]-H[a+44>>2]|0;e=b>>31;g=b;d=p+H[a+124>>2]|0;b=m+H[a+120>>2]|0;d=b>>>0>>0?d+1|0:d;m=b;b=g+b|0;g=d+e|0;g=b>>>0>>0?g+1|0:g;m=b;p=g;u=((l|0)!=0)+u|0}b=f+1|0;f=I[f+1|0];if(f){continue}break a}break}n=0}e=s;break f}e=1;n=0;o=0}if(u){break b}}u=-1;break b}e=s}if(!e){break a}Kb(n);Kb(o)}xb=j+304|0;return u}function Lp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb-16|0;xb=g;a:{b:{c:{d:{if(I[a+96|0]){F[g+11|0]=1;H[197455]=0;Mb(g,428332,1);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[g+4>>2]=0;h=H[a+76>>2];H[197455]=0;ka(1760,h|0,g|0,0,0);h=H[197455];H[197455]=0;if((h|0)==1){break d}if(F[g+11|0]<0){Kb(H[g>>2])}c=xb-80|0;xb=c;f=H[a+84>>2];l=H[a+88>>2];e:{if((f|0)==(l|0)){H[g>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;break e}H[c+72>>2]=0;H[c+64>>2]=0;H[c+68>>2]=0;h=c- -64|4;while(1){f:{g:{h:{i:{j:{k:{switch(H[f+24>>2]-1|0){case 0:b=I[c+75|0];d=b<<24>>24<0;e=d?H[c+68>>2]:b;i=e;k=d?H[c+64>>2]:c- -64|0;d=k+(e<<2)|0;b=d;l:{if((e|0)<9){break l}while(1){b=d;if((e|0)==8){break l}e=e-1|0;j=k+(e<<2)|0;if(H[j>>2]!=104){continue}b=j-4|0;if(H[b>>2]!=116){continue}b=b-4|0;if(H[b>>2]!=97){continue}b=b-4|0;if(H[b>>2]!=80){continue}b=b-4|0;if(H[b>>2]!=112){continue}b=b-4|0;if(H[b>>2]!=105){continue}b=b-4|0;if(H[b>>2]!=108){continue}b=b-4|0;if(H[b>>2]!=99|H[b-4>>2]!=60){continue}break}b=j-32|0}b=(b|0)==(d|0)?-1:b-k>>2;if(i>>>0>>0){break h}e=k+(b<<2)|0;b=d-e|0;if((b|0)<4){break h}while(1){b=ig(e,62,b>>>2|0);if(!b){break h}if(oi(b,432264,1)){e=b+4|0;b=d-e|0;if((b|0)>=4){continue}break h}break};if((b|0)==(d|0)){break h}d=b-k|0;if((d|0)==-4){break h}H[197455]=0;ga(1785,c+32|0,432752,f|0);b=H[197455];H[197455]=0;m:{n:{o:{if((b|0)!=1){H[197455]=0;e=da(1699,c+32|0,432824)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}H[c+56>>2]=H[e+8>>2];b=H[e+4>>2];H[c+48>>2]=H[e>>2];H[c+52>>2]=b;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;e=d>>2;d=I[c+59|0];b=d<<24>>24<0;la(1768,c- -64|0,e|0,(b?H[c+48>>2]:c+48|0)|0,(b?H[c+52>>2]:d)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break n}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+43|0]>=0){break h}Kb(H[c+32>>2]);break h}e=$()|0;_()|0;break g}e=$()|0;_()|0;break m}e=$()|0;_()|0;if(F[c+59|0]>=0){break m}Kb(H[c+48>>2])}if(F[c+43|0]>=0){break g}Kb(H[c+32>>2]);break g;case 1:b=I[c+75|0];e=b<<24>>24<0?H[c+68>>2]:b;if(!e){H[197455]=0;ga(1785,c|0,432836,f|0);b=H[197455];H[197455]=0;p:{q:{r:{s:{t:{u:{v:{if((b|0)!=1){H[197455]=0;d=da(1699,c|0,431484)|0;b=H[197455];H[197455]=0;if((b|0)==1){break v}H[c+24>>2]=H[d+8>>2];b=H[d+4>>2];H[c+16>>2]=H[d>>2];H[c+20>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;d=H[f+16>>2];e=I[f+23|0];b=H[f+12>>2];H[197455]=0;i=b;b=e<<24>>24<0;d=ca(1759,c+16|0,(b?i:f+12|0)|0,(b?d:e)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break u}H[c+40>>2]=H[d+8>>2];b=H[d+4>>2];H[c+32>>2]=H[d>>2];H[c+36>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=da(1699,c+32|0,432896)|0;b=H[197455];H[197455]=0;if((b|0)==1){break t}H[c+56>>2]=H[d+8>>2];b=H[d+4>>2];H[c+48>>2]=H[d>>2];H[c+52>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=I[c+59|0];b=d<<24>>24<0;ca(1759,c- -64|0,(b?H[c+48>>2]:c+48|0)|0,(b?H[c+52>>2]:d)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break s}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+11|0]>=0){break f}Kb(H[c>>2]);break f}e=$()|0;_()|0;break g}e=$()|0;_()|0;break p}e=$()|0;_()|0;break q}e=$()|0;_()|0;break r}e=$()|0;_()|0;if(F[c+59|0]>=0){break r}Kb(H[c+48>>2])}if(F[c+43|0]>=0){break q}Kb(H[c+32>>2])}if(F[c+27|0]>=0){break p}Kb(H[c+16>>2])}if(F[c+11|0]>=0){break g}Kb(H[c>>2]);break g}d=H[f+16>>2];j=I[f+23|0];b=H[f+12>>2];H[197455]=0;i=b;b=j<<24>>24<0;la(1768,c- -64|0,e-11|0,(b?i:f+12|0)|0,(b?d:j)|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break f}e=$()|0;_()|0;break g;case 2:b=I[c+75|0];d=b<<24>>24<0;e=d?H[c+68>>2]:b;i=e;k=d?H[c+64>>2]:c- -64|0;d=k+(e<<2)|0;b=d;w:{if((e|0)<9){break w}while(1){b=d;if((e|0)==8){break w}e=e-1|0;j=k+(e<<2)|0;if(H[j>>2]!=104){continue}b=j-4|0;if(H[b>>2]!=116){continue}b=b-4|0;if(H[b>>2]!=97){continue}b=b-4|0;if(H[b>>2]!=80){continue}b=b-4|0;if(H[b>>2]!=112){continue}b=b-4|0;if(H[b>>2]!=105){continue}b=b-4|0;if(H[b>>2]!=108){continue}b=b-4|0;if(H[b>>2]!=99|H[b-4>>2]!=60){continue}break}b=j-32|0}b=(b|0)==(d|0)?-1:b-k>>2;if(i>>>0>>0){break j}e=k+(b<<2)|0;b=d-e|0;if((b|0)<4){break j}while(1){b=ig(e,62,b>>>2|0);if(!b){break j}if(oi(b,432264,1)){e=b+4|0;b=d-e|0;if((b|0)>=4){continue}break j}break};if((b|0)==(d|0)){break j}b=b-k|0;if((b|0)==-4){break j}H[197455]=0;ca(1758,c- -64|0,b>>2,432944)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break j}break i;case 4:break k;default:break f}}H[197455]=0;ga(1785,c+16|0,432836,f|0);b=H[197455];H[197455]=0;x:{y:{z:{A:{B:{if((b|0)!=1){H[197455]=0;d=da(1699,c+16|0,431484)|0;b=H[197455];H[197455]=0;if((b|0)==1){break B}H[c+40>>2]=H[d+8>>2];b=H[d+4>>2];H[c+32>>2]=H[d>>2];H[c+36>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;d=H[f+16>>2];e=I[f+23|0];b=H[f+12>>2];H[197455]=0;i=b;b=e<<24>>24<0;d=ca(1759,c+32|0,(b?i:f+12|0)|0,(b?d:e)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break A}H[c+56>>2]=H[d+8>>2];b=H[d+4>>2];H[c+48>>2]=H[d>>2];H[c+52>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;e=da(1699,c+48|0,432896)|0;b=H[197455];H[197455]=0;if((b|0)==1){break z}d=H[e>>2];H[c>>2]=H[e+4>>2];b=I[e+7|0]|I[e+8|0]<<8|(I[e+9|0]<<16|I[e+10|0]<<24);F[c+3|0]=b;F[c+4|0]=b>>>8;F[c+5|0]=b>>>16;F[c+6|0]=b>>>24;H[e>>2]=0;H[e+4>>2]=0;b=I[e+11|0];H[e+8>>2]=0;if(F[c+75|0]<0){Kb(H[c+64>>2])}H[c+64>>2]=d;d=I[c+3|0]|I[c+4|0]<<8|(I[c+5|0]<<16|I[c+6|0]<<24);F[h+3|0]=d;F[h+4|0]=d>>>8;F[h+5|0]=d>>>16;F[h+6|0]=d>>>24;H[h>>2]=H[c>>2];F[c+75|0]=b;if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}if(F[c+27|0]>=0){break f}Kb(H[c+16>>2]);break f}e=$()|0;_()|0;break g}e=$()|0;_()|0;break x}e=$()|0;_()|0;break y}e=$()|0;_()|0;if(F[c+59|0]>=0){break y}Kb(H[c+48>>2])}if(F[c+43|0]>=0){break x}Kb(H[c+32>>2])}if(F[c+27|0]>=0){break g}Kb(H[c+16>>2]);break g}b=I[c+75|0];e=b<<24>>24<0?H[c+68>>2]:b;if(!e){H[197455]=0;ga(1785,c|0,432836,f|0);b=H[197455];H[197455]=0;C:{D:{E:{F:{G:{H:{I:{if((b|0)!=1){H[197455]=0;d=da(1699,c|0,431484)|0;b=H[197455];H[197455]=0;if((b|0)==1){break I}H[c+24>>2]=H[d+8>>2];b=H[d+4>>2];H[c+16>>2]=H[d>>2];H[c+20>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;d=H[f+16>>2];e=I[f+23|0];b=H[f+12>>2];H[197455]=0;i=b;b=e<<24>>24<0;d=ca(1759,c+16|0,(b?i:f+12|0)|0,(b?d:e)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break H}H[c+40>>2]=H[d+8>>2];b=H[d+4>>2];H[c+32>>2]=H[d>>2];H[c+36>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=da(1699,c+32|0,432896)|0;b=H[197455];H[197455]=0;if((b|0)==1){break G}H[c+56>>2]=H[d+8>>2];b=H[d+4>>2];H[c+48>>2]=H[d>>2];H[c+52>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=I[c+59|0];b=d<<24>>24<0;ca(1759,c- -64|0,(b?H[c+48>>2]:c+48|0)|0,(b?H[c+52>>2]:d)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break F}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+11|0]>=0){break f}Kb(H[c>>2]);break f}e=$()|0;_()|0;break g}e=$()|0;_()|0;break C}e=$()|0;_()|0;break D}e=$()|0;_()|0;break E}e=$()|0;_()|0;if(F[c+59|0]>=0){break E}Kb(H[c+48>>2])}if(F[c+43|0]>=0){break D}Kb(H[c+32>>2])}if(F[c+27|0]>=0){break C}Kb(H[c+16>>2])}if(F[c+11|0]>=0){break g}Kb(H[c>>2]);break g}d=H[f+16>>2];j=I[f+23|0];b=H[f+12>>2];H[197455]=0;i=b;b=j<<24>>24<0;la(1768,c- -64|0,e-11|0,(b?i:f+12|0)|0,(b?d:j)|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break f}}e=$()|0;_()|0;break g}H[197455]=0;ga(1785,c|0,432836,f|0);b=H[197455];H[197455]=0;J:{K:{L:{M:{N:{O:{P:{if((b|0)!=1){H[197455]=0;d=da(1699,c|0,431484)|0;b=H[197455];H[197455]=0;if((b|0)==1){break P}H[c+24>>2]=H[d+8>>2];b=H[d+4>>2];H[c+16>>2]=H[d>>2];H[c+20>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;d=H[f+16>>2];e=I[f+23|0];b=H[f+12>>2];H[197455]=0;i=b;b=e<<24>>24<0;d=ca(1759,c+16|0,(b?i:f+12|0)|0,(b?d:e)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break O}H[c+40>>2]=H[d+8>>2];b=H[d+4>>2];H[c+32>>2]=H[d>>2];H[c+36>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=da(1699,c+32|0,432896)|0;b=H[197455];H[197455]=0;if((b|0)==1){break N}H[c+56>>2]=H[d+8>>2];b=H[d+4>>2];H[c+48>>2]=H[d>>2];H[c+52>>2]=b;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=I[c+59|0];b=d<<24>>24<0;ca(1759,c- -64|0,(b?H[c+48>>2]:c+48|0)|0,(b?H[c+52>>2]:d)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break M}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+11|0]>=0){break f}Kb(H[c>>2]);break f}e=$()|0;_()|0;break g}e=$()|0;_()|0;break J}e=$()|0;_()|0;break K}e=$()|0;_()|0;break L}e=$()|0;_()|0;if(F[c+59|0]>=0){break L}Kb(H[c+48>>2])}if(F[c+43|0]>=0){break K}Kb(H[c+32>>2])}if(F[c+27|0]>=0){break J}Kb(H[c+16>>2])}if(F[c+11|0]>=0){break g}Kb(H[c>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}ea(e|0);X()}f=f+28|0;if((l|0)!=(f|0)){continue}break}h=H[c+68>>2];H[g>>2]=H[c+64>>2];H[g+4>>2]=h;H[g+8>>2]=H[c+72>>2]}xb=c+80|0;H[197455]=0;b=I[g+11|0];h=b<<24>>24<0;ca(1759,a+60|0,(h?H[g>>2]:g)|0,(h?H[g+4>>2]:b)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}if(F[g+11|0]<0){Kb(H[g>>2])}F[a+96|0]=0}xb=g+16|0;return}a=$()|0;_()|0;if(F[g+11|0]>=0){break b}Kb(H[g>>2]);ea(a|0);X()}a=$()|0;_()|0;if(F[g+11|0]>=0){break b}Kb(H[g>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function mN(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;h=xb-144|0;xb=h;e=G[b+2>>1];if(!(!e|!J[b>>1])){Nb(h+8|0,0,128);t=H[c>>2];H[h+24>>2]=t;v=h,w=Ub(t,40,0,e,0,h+140|0),H[v+16>>2]=w;o=H[h+140>>2];a:{if(o){break a}f=Ub(t,8,0,G[b>>1],0,h+140|0);H[h+20>>2]=f;o=H[h+140>>2];if(o){break a}o=G[b+2>>1];H[h+8>>2]=o;e=G[b>>1];H[h+12>>2]=e;n=H[h+16>>2];if(e){s=e>>>0>1?e:1;p=H[b+12>>2];while(1){u=G[p+(k<<1)>>1];m=n+N(j,40)|0;H[f>>2]=m;q=u+1|0;g=q-j|0;H[f+4>>2]=g;if((j|0)!=(q|0)){H[m>>2]=n+N(u,40);H[m+8>>2]=f;i=m;b:{if(g>>>0<2){break b}l=0;e=m;r=u-j&3;if(r){while(1){H[e+48>>2]=f;i=e+40|0;H[e+4>>2]=i;H[e+40>>2]=e;g=g-1|0;e=i;l=l+1|0;if((r|0)!=(l|0)){continue}break}}if((j^-1)+u>>>0<3){break b}while(1){H[e+48>>2]=f;i=e+40|0;H[e+4>>2]=i;H[e+88>>2]=f;H[e+80>>2]=i;i=e+80|0;H[e+44>>2]=i;H[e+128>>2]=f;H[e+120>>2]=i;i=e+120|0;H[e+84>>2]=i;H[e+168>>2]=f;H[e+160>>2]=i;i=e+160|0;H[e+124>>2]=i;H[e+40>>2]=e;e=i;g=g-4|0;if(g>>>0>1){continue}break}}H[i+4>>2]=m}f=f+8|0;j=q;k=k+1|0;if((s|0)!=(k|0)){continue}break}}p=H[b+4>>2];c:{if(!o){H[h+32>>2]=c;H[h+28>>2]=b;break c}f=0;e=n;while(1){l=(H[e+4>>2]-n|0)/40|0;g=(H[e>>2]-n|0)/40|0;if(!(F[H[b+8>>2]+f|0]&1)){H[e+12>>2]=1}i=p+(f<<3)|0;k=H[i+4>>2];g=p+(g<<3)|0;r=k-H[g+4>>2]|0;j=r>>31;m=H[i>>2];q=m-H[g>>2]|0;g=q>>31;g=(g^q)-g|0;j=(j^r)-j|0;i=(q|0)>=0?2:-2;d:{if(g>>>0>N(j,12)>>>0){break d}i=4;if(j>>>0<=N(g,12)>>>0){break d}i=(r|0)>=0?-1:1}F[e+20|0]=i;g=p+(l<<3)|0;l=H[g+4>>2]-k|0;j=l>>31;k=H[g>>2]-m|0;g=k>>31;g=(g^k)-g|0;m=(j^l)-j|0;j=(k|0)>=0?2:-2;e:{if(g>>>0>N(m,12)>>>0){break e}j=4;if(m>>>0<=N(g,12)>>>0){break e}j=(l|0)>=0?-1:1}F[e+21|0]=j;g=H[e+12>>2];f:{g:{if(g&1){break g}if((i|0)!=(j|0)){break f}if((j|0)!=4){break g}if(!rD(q,r,k,l)){break f}g=H[e+12>>2]}H[e+12>>2]=g|2}e=e+40|0;f=f+1|0;i=H[h+8>>2];if(f>>>0>>0){continue}break}H[h+32>>2]=c;H[h+28>>2]=b;if(!i){break c}j=i-1|0;f=H[b+4>>2];g=0;e=H[h+16>>2];b=i&3;if(b){while(1){H[e+24>>2]=0;H[e+16>>2]=0;H[e+28>>2]=H[f>>2];H[e+32>>2]=H[f+4>>2];f=f+8|0;e=e+40|0;i=i-1|0;g=g+1|0;if((b|0)!=(g|0)){continue}break}}if(j>>>0<3){break c}while(1){H[e+24>>2]=0;H[e+16>>2]=0;H[e+28>>2]=H[f>>2];b=H[f+4>>2];H[e- -64>>2]=0;H[e+56>>2]=0;H[e+32>>2]=b;H[e+68>>2]=H[f+8>>2];b=H[f+12>>2];H[e+104>>2]=0;H[e+96>>2]=0;H[e+72>>2]=b;H[e+108>>2]=H[f+16>>2];b=H[f+20>>2];H[e+144>>2]=0;H[e+136>>2]=0;H[e+112>>2]=b;H[e+148>>2]=H[f+24>>2];H[e+152>>2]=H[f+28>>2];f=f+32|0;e=e+160|0;i=i-4|0;if(i){continue}break}}p=0;if(H[h+12>>2]){while(1){b=H[h+20>>2]+(p<<3)|0;h:{if(K[b+4>>2]<4){break h}b=H[b>>2];e=b;while(1){e=H[e+4>>2];if((b|0)==(e|0)){break h}f=H[e+28>>2];j=H[b+28>>2];i=H[b+32>>2];g=H[e+32>>2];if((f|0)==(j|0)&(i|0)==(g|0)){continue}break}n=g-i|0;q=f-j|0;j=b;while(1){m=j;j=H[j>>2];if((b|0)==(j|0)){break h}k=H[m+28>>2];i=H[j+28>>2];f=H[j+32>>2];g=H[m+32>>2];if((k|0)==(i|0)&(f|0)==(g|0)){continue}i=k-i|0;l=g-f|0;f=tD(q,n,i,l);if(!f){continue}break}b=m;while(1){n=f;q=l;j=i;k=b;g=0;while(1){r=H[e+32>>2];l=H[e+28>>2];while(1){i:{b=e;e=H[e+4>>2];g=(m|0)==(e|0)?1:g;f=H[e+32>>2];i=H[e+28>>2];if((i|0)!=(l|0)){break i}if((f|0)==(r|0)){continue}}break}i=i-l|0;l=f-r|0;f=tD(j,q,i,l);if(!f){continue}break}if((f^n)<0){while(1){H[k+12>>2]=H[k+12>>2]|4;k=H[k+4>>2];if((k|0)!=(b|0)){continue}break}H[b+12>>2]=H[b+12>>2]|4}if(!g){continue}break}}p=p+1|0;if(p>>>0>2]){continue}break}}o=dv(h+36|0,a+16|0,a+28|0,t);H[h+140>>2]=o;if(o){break a}o=dv(h+76|0,a+52|0,a- -64|0,t);if(o){break a}a=H[h+32>>2];p=H[a+200>>2];m=c+416|0;r=H[a+404>>2];e=Rb(H[m>>2],r);b=e+32&-64;q=!b|(b|0)==(e|0);if(!q){a=ic(r,b,e);xo(H[h+32>>2],(b|0)<(e|0)?p+((p|0)/-50|0)|0:p,a,0,0)}G[h+128>>1]=257;F[h+132|0]=(d|0)!=1;F[h+131|0]=(d|0)==2|(d|0)==4;F[h+130|0]=(d&-2)==2;o=1;l=0;while(1){d=H[h+8>>2];j:{if(!d){break j}f=H[H[h+28>>2]+4>>2];e=H[h+16>>2];if(!(o&1)){i=0;g=d;a=g&3;if(a){while(1){H[e+24>>2]=0;H[e+16>>2]=0;H[e+28>>2]=H[f+4>>2];H[e+32>>2]=H[f>>2];f=f+8|0;e=e+40|0;g=g-1|0;i=i+1|0;if((a|0)!=(i|0)){continue}break}}if(d-1>>>0<3){break j}while(1){H[e+24>>2]=0;H[e+16>>2]=0;H[e+28>>2]=H[f+4>>2];a=H[f>>2];H[e- -64>>2]=0;H[e+56>>2]=0;H[e+32>>2]=a;H[e+68>>2]=H[f+12>>2];a=H[f+8>>2];H[e+104>>2]=0;H[e+96>>2]=0;H[e+72>>2]=a;H[e+108>>2]=H[f+20>>2];a=H[f+16>>2];H[e+144>>2]=0;H[e+136>>2]=0;H[e+112>>2]=a;H[e+148>>2]=H[f+28>>2];H[e+152>>2]=H[f+24>>2];f=f+32|0;e=e+160|0;g=g-4|0;if(g){continue}break}break j}i=0;g=d;a=g&3;if(a){while(1){H[e+24>>2]=0;H[e+16>>2]=0;H[e+28>>2]=H[f>>2];H[e+32>>2]=H[f+4>>2];f=f+8|0;e=e+40|0;g=g-1|0;i=i+1|0;if((a|0)!=(i|0)){continue}break}}if(d-1>>>0<3){break j}while(1){H[e+24>>2]=0;H[e+16>>2]=0;H[e+28>>2]=H[f>>2];a=H[f+4>>2];H[e- -64>>2]=0;H[e+56>>2]=0;H[e+32>>2]=a;H[e+68>>2]=H[f+8>>2];a=H[f+12>>2];H[e+104>>2]=0;H[e+96>>2]=0;H[e+72>>2]=a;H[e+108>>2]=H[f+16>>2];a=H[f+20>>2];H[e+144>>2]=0;H[e+136>>2]=0;H[e+112>>2]=a;H[e+148>>2]=H[f+24>>2];H[e+152>>2]=H[f+28>>2];f=f+32|0;e=e+160|0;g=g-4|0;if(g){continue}break}}b=0;j=H[h+12>>2];k:{if(!j){break k}n=0;i=H[h+20>>2];while(1){b=i+(n<<3)|0;a=H[b>>2];l:{if(!H[b+4>>2]){break l}f=a;while(1){f=H[f>>2];if((a|0)==(f|0)){b=n+1|0;break k}if(H[f+28>>2]==H[a+28>>2]){continue}break}a=H[f+4>>2];e=a;while(1){g=e;while(1){e=H[e+4>>2];if((a|0)==(e|0)){break l}b=H[e+28>>2];k=H[g+28>>2];if((b|0)==(k|0)){continue}break}m:{n:{if((k|0)>H[f+28>>2]){if((b|0)<(k|0)){break n}break m}if((b|0)<=(k|0)){break m}}while(1){H[g+16>>2]=H[g+16>>2]|64;g=H[g+4>>2];if((g|0)!=(e|0)){continue}break}}f=H[e>>2];continue}}b=0;n=n+1|0;if((j|0)!=(n|0)){continue}break}}while(1){if(b>>>0>>0){g=H[h+16>>2];e=N(b,40);a=g+e|0;i=H[a+16>>2];o:{if(!(i&64)){break o}g=e+g|0;e=a;while(1){e=H[e>>2];if((a|0)==(e|0)){break o}j=H[e+32>>2];f=H[g+32>>2];if((j|0)==(f|0)){continue}break}e=a;while(1){e=H[e+4>>2];if((a|0)==(e|0)){break o}g=H[e+32>>2];if((g|0)==(f|0)){continue}break}e=128;if(!((f|0)<(g|0)&(f|0)>(j|0))){e=256;if((f|0)<=(g|0)|(f|0)>=(j|0)){break o}}H[a+16>>2]=e|i}b=b+1|0;continue}break}g=H[h+32>>2];s=(h+8|0)+N(l,40)|0;n=s+28|0;f=H[n>>2];if(f){e=H[s+36>>2];while(1){cv(e,g,l,h+8|0);e=e+28|0;f=f-1|0;if(f){continue}break}g=H[h+32>>2]}a=H[s+60>>2];e=H[a+8>>2];j=H[a>>2];a=dc(32,H[(N(l,204)+g|0)+200>>2]);k=(a|0)<30?a:30;i=o&1?1:2;p:{q:{r:{s:{t:{u:{if(j>>>0>=2){f=H[h+8>>2];if(!f){break s}a=H[e+12>>2];g=a>>>0>>0?a:f;while(1){a=H[e+28>>2];a=a>>>0>>0?a:f;if(a>>>0>g>>>0){b=H[h+16>>2];bv(n,H[e+16>>2],H[e+24>>2]);av(H[s+32>>2],H[s+40>>2],b+N(g,40)|0,a-g|0,k,i)}j=j-1|0;if(j>>>0<2){break u}f=H[h+8>>2];e=e+16|0;g=a;continue}}if((j|0)!=1){break t}}d=H[h+16>>2];b=H[h+8>>2];a=H[H[s+60>>2]+8>>2];bv(n,H[a>>2],H[a+8>>2]);av(H[s+32>>2],H[s+40>>2],d,b,k,i)}k=H[h+8>>2];if(!k){break s}e=H[h+16>>2];if(k&1){v:{if(!H[e+24>>2]){break v}a=H[e+16>>2];if(a&16){break v}H[e+16>>2]=a|16}e=e+40|0;f=k-1|0}else{f=k}if((k|0)!=1){while(1){w:{if(!H[e+24>>2]){break w}a=H[e+16>>2];if(a&16){break w}H[e+16>>2]=a|16}x:{if(!H[e- -64>>2]){break x}a=H[e+56>>2];if(a&16){break x}H[e+56>>2]=a|16}e=e+80|0;f=f-2|0;if(f){continue}break}}if(!(l&1)){break q}g=H[h+16>>2];while(1){a=I[g+20|0];y:{z:{if((a|0)==2|(a|0)==254){break z}a=I[g+21|0];if((a|0)==254){break z}if((a|0)!=2){break y}}j=H[g+16>>2];if(j&16){break y}f=H[g+28>>2];i=H[c+412>>2];A:{if(!i){break A}d=H[c+2488>>2];b=0-d|0;e=m;while(1){a=f-H[e+12>>2]|0;if((a|0)<(b|0)){break A}if(!(!I[c+2492|0]&(a|0)>H[c+2484>>2]|(f|0)>(d+H[e+8>>2]|0))){a=H[e+24>>2];j=j|48;H[g+16>>2]=j;H[g+36>>2]=a}e=e+32|0;i=i-1|0;if(i){continue}break}}i=H[c+928>>2];if(!i){break y}e=H[c+2488>>2];d=0-e|0;l=((i<<5)+c|0)+932|0;while(1){a=l;l=a-32|0;b=H[a-24>>2]-f|0;if((b|0)<(d|0)){break y}if(!(!I[c+2492|0]&(b|0)>=H[c+2484>>2]|(f|0)<(H[a-20>>2]-e|0))){a=H[a-4>>2];j=j|48;H[g+16>>2]=j;H[g+36>>2]=a}i=i-1|0;if(i){continue}break}}g=g+40|0;k=k-1|0;if(k){continue}break}break r}if(!(l&1)){break q}}a=h+8|0;$u(a,1);_u(a,1);Zu(a,1);g=H[h+8>>2];if(!g){break p}a=H[h+28>>2];d=H[a+8>>2];b=H[a+4>>2];f=0;e=H[h+16>>2];while(1){H[(b+(f<<3)|0)+4>>2]=H[e+36>>2];if(I[e+16|0]&16){a=d+f|0;F[a|0]=I[a|0]|64;g=H[h+8>>2]}e=e+40|0;f=f+1|0;if(g>>>0>f>>>0){continue}break}break p}a=h+8|0;$u(a,0);_u(a,0);Zu(a,0);g=H[h+8>>2];if(!g){break p}a=H[h+28>>2];d=H[a+8>>2];b=H[a+4>>2];f=0;e=H[h+16>>2];while(1){H[b+(f<<3)>>2]=H[e+36>>2];if(I[e+16|0]&16){a=d+f|0;F[a|0]=I[a|0]|32;g=H[h+8>>2]}e=e+40|0;f=f+1|0;if(g>>>0>f>>>0){continue}break}}if(!q){xo(H[h+32>>2],p,r,0,0)}l=1;a=o&1;o=0;if(a){continue}break}}b=H[h+24>>2];a=H[h+100>>2];if(a){zb[H[b+8>>2]](b,a)}H[h+104>>2]=0;H[h+96>>2]=0;H[h+100>>2]=0;a=H[h+88>>2];if(a){zb[H[b+8>>2]](b,a)}H[h+88>>2]=0;a=H[h+84>>2];if(a){zb[H[b+8>>2]](b,a)}H[h+84>>2]=0;H[h+92>>2]=0;H[h+76>>2]=0;H[h+80>>2]=0;a=H[h+60>>2];if(a){zb[H[b+8>>2]](b,a)}H[h- -64>>2]=0;H[h+56>>2]=0;H[h+60>>2]=0;a=H[h+48>>2];if(a){zb[H[b+8>>2]](b,a)}H[h+48>>2]=0;a=H[h+44>>2];if(a){zb[H[b+8>>2]](b,a)}H[h+44>>2]=0;H[h+52>>2]=0;H[h+36>>2]=0;H[h+40>>2]=0;a=H[h+16>>2];if(a){zb[H[b+8>>2]](b,a)}H[h+16>>2]=0;a=H[h+20>>2];if(a){zb[H[b+8>>2]](b,a)}}xb=h+144|0;return o|0}function Z0(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;e=xb-320|0;xb=e;k=H[b>>2];m=H[b+4>>2];n=H[b+8>>2];o=H[b+12>>2];h=qe(k,m,n,o,H[c>>2],H[c+4>>2]);i=qe(H[b>>2],H[b+4>>2],H[b+8>>2],H[b+12>>2],H[d>>2],H[d+4>>2]);c=H[a+80>>2];a:{if(!c){break a}if(!(M[(zb[H[H[c>>2]+68>>2]](c,2)|0)+24>>3]<0)){break a}i=-i;h=-h}c=H[b>>2];d=H[b+8>>2];h=h*-.017453292519943295;g=ze(h);p=e+272|0;t=H[b+12>>2];b=H[b+4>>2];f=+(t-b|0);j=+(d-c|0);l=j*.5;g=qi(ne(h)/f*.5,g/j*.5);j=l*ze(g)+(l+ +(c|0));b:{if(P(j)<2147483648){c=~~j;break b}c=-2147483648}Ce(p,+(c|0),-1);H[197455]=0;c=ca(1758,p|0,0,405252)|0;d=H[197455];H[197455]=0;f=f*.5;f=f+ +(b|0)-f*ne(g);c:{if(P(f)<2147483648){b=~~f;break c}b=-2147483648}f=i*3.141592653589793/180;l=ne(f);u=ze(f);d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{if((d|0)!=1){H[e+296>>2]=H[c+8>>2];d=H[c+4>>2];H[e+288>>2]=H[c>>2];H[e+292>>2]=d;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,e+288|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break W}H[e+16>>2]=H[e+296>>2];H[e+296>>2]=0;c=H[e+292>>2];H[e+8>>2]=H[e+288>>2];H[e+12>>2]=c;H[e+288>>2]=0;H[e+292>>2]=0;H[197455]=0;fa(1756,e+256|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break V}H[197455]=0;b=I[e+267|0];c=b<<24>>24<0;b=ca(1759,e+8|0,(c?H[e+256>>2]:e+256|0)|0,(c?H[e+260>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break U}f=+(n|0);g=+(k|0);c=f>2]=H[b+8>>2];d=H[b+4>>2];H[e+304>>2]=H[b>>2];H[e+308>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+19|0]<0){Kb(H[e+8>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}if(F[e+283|0]<0){Kb(H[e+272>>2])}H[197455]=0;q=c?g:f;r=P(q-j)*.5;fa(1756,e+112|0,+r,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Q}H[197455]=0;b=ca(1758,e+112|0,0,405424)|0;c=H[197455];H[197455]=0;if((c|0)==1){break P}H[e+136>>2]=H[b+8>>2];c=H[b+4>>2];H[e+128>>2]=H[b>>2];H[e+132>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+128|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[e+152>>2]=H[e+136>>2];H[e+136>>2]=0;b=H[e+132>>2];H[e+144>>2]=H[e+128>>2];H[e+148>>2]=b;H[e+128>>2]=0;H[e+132>>2]=0;H[197455]=0;f=+(m|0);g=+(o|0);b=f>g;s=b?f:g;f=b?g:f;g=P(s-f)*.5;fa(1756,e+96|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break N}H[197455]=0;b=I[e+107|0];c=b<<24>>24<0;b=ca(1759,e+144|0,(c?H[e+96>>2]:e+96|0)|0,(c?H[e+100>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break M}H[e+168>>2]=H[b+8>>2];c=H[b+4>>2];H[e+160>>2]=H[b>>2];H[e+164>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+160|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break L}H[e+184>>2]=H[e+168>>2];H[e+168>>2]=0;b=H[e+164>>2];H[e+176>>2]=H[e+160>>2];H[e+180>>2]=b;H[e+160>>2]=0;H[e+164>>2]=0;H[197455]=0;b=da(1699,e+176|0,405612)|0;c=H[197455];H[197455]=0;if((c|0)==1){break K}H[e+200>>2]=H[b+8>>2];c=H[b+4>>2];H[e+192>>2]=H[b>>2];H[e+196>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;i=P(i-h);b=da(1699,e+192|0,(i<=180?405804:405964)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break J}H[e+216>>2]=H[b+8>>2];c=H[b+4>>2];H[e+208>>2]=H[b>>2];H[e+212>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+208|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break I}H[e+232>>2]=H[e+216>>2];H[e+216>>2]=0;b=H[e+212>>2];H[e+224>>2]=H[e+208>>2];H[e+228>>2]=b;H[e+208>>2]=0;H[e+212>>2]=0;H[197455]=0;b=da(1699,e+224|0,(i<=180?405964:405804)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break H}H[e+248>>2]=H[b+8>>2];c=H[b+4>>2];H[e+240>>2]=H[b>>2];H[e+244>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break G}H[e+264>>2]=H[e+248>>2];H[e+248>>2]=0;b=H[e+244>>2];H[e+256>>2]=H[e+240>>2];H[e+260>>2]=b;H[e+240>>2]=0;H[e+244>>2]=0;H[197455]=0;fa(1756,e+80|0,+(r*u+(q+j)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break F}H[197455]=0;b=I[e+91|0];c=b<<24>>24<0;b=ca(1759,e+256|0,(c?H[e+80>>2]:e+80|0)|0,(c?H[e+84>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break E}H[e+280>>2]=H[b+8>>2];c=H[b+4>>2];H[e+272>>2]=H[b>>2];H[e+276>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+272|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break D}H[e+296>>2]=H[e+280>>2];H[e+280>>2]=0;b=H[e+276>>2];H[e+288>>2]=H[e+272>>2];H[e+292>>2]=b;H[e+272>>2]=0;H[e+276>>2]=0;H[197455]=0;fa(1756,e- -64|0,+(g*l+(s+f)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break C}H[197455]=0;b=I[e+75|0];c=b<<24>>24<0;b=ca(1759,e+288|0,(c?H[e+64>>2]:e- -64|0)|0,(c?H[e+68>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break B}H[e+16>>2]=H[b+8>>2];c=H[b+4>>2];H[e+8>>2]=H[b>>2];H[e+12>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=I[e+19|0];c=b<<24>>24<0;ca(1759,e+304|0,(c?H[e+8>>2]:e+8|0)|0,(c?H[e+12>>2]:b)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break A}if(F[e+19|0]<0){Kb(H[e+8>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}H[197455]=0;b=ca(1762,e+8|0,404840,e+304|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break k}H[e+56>>2]=b;H[197455]=0;H[e+60>>2]=1;b=H[e+60>>2];H[e>>2]=H[e+56>>2];H[e+4>>2]=b;d=da(1763,e+288|0,e|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break j}if(F[e+31|0]<0){Kb(H[e+20>>2])}b=a+8|0;if(F[e+19|0]<0){Kb(H[e+8>>2])}H[197455]=0;ba(1770,b|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break g}H[197455]=0;ba(1771,b|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break g}c=H[a+80>>2];k=H[H[c>>2]+104>>2];H[197455]=0;c=aa(k|0,c|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break g}if((c|0)!=1){break i}H[e+24>>2]=0;H[e+28>>2]=0;H[e+48>>2]=0;H[e+52>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=1072693248;H[e+40>>2]=0;H[e+44>>2]=0;H[e+32>>2]=0;H[e+36>>2]=1072693248;a=H[a+80>>2];c=H[H[a>>2]+68>>2];H[197455]=0;a=da(c|0,a|0,2)|0;c=H[197455];H[197455]=0;if((c|0)!=1){M[e+8>>3]=M[a>>3];M[e+16>>3]=M[a+8>>3];M[e+24>>3]=M[a+16>>3];i=M[a+24>>3];M[e+40>>3]=M[a+32>>3];h=M[a+40>>3];M[e+32>>3]=-i;M[e+48>>3]=h;H[197455]=0;ga(1766,b|0,d|0,e+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){break h}}b=$()|0;_()|0;break f}b=$()|0;_()|0;break R}b=$()|0;_()|0;break S}b=$()|0;_()|0;break T}b=$()|0;_()|0;if(F[e+267|0]>=0){break T}Kb(H[e+256>>2])}if(F[e+19|0]>=0){break S}Kb(H[e+8>>2])}if(F[e+299|0]>=0){break R}Kb(H[e+288>>2])}if(F[e+283|0]>=0){break d}Kb(H[e+272>>2]);ea(b|0);X()}b=$()|0;_()|0;break e}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;break p}b=$()|0;_()|0;break q}b=$()|0;_()|0;break r}b=$()|0;_()|0;break s}b=$()|0;_()|0;break t}b=$()|0;_()|0;break u}b=$()|0;_()|0;break v}b=$()|0;_()|0;break w}b=$()|0;_()|0;break x}b=$()|0;_()|0;break y}b=$()|0;_()|0;break z}b=$()|0;_()|0;if(F[e+19|0]>=0){break z}Kb(H[e+8>>2])}if(F[e+75|0]>=0){break y}Kb(H[e+64>>2])}if(F[e+299|0]>=0){break x}Kb(H[e+288>>2])}if(F[e+283|0]>=0){break w}Kb(H[e+272>>2])}if(F[e+91|0]>=0){break v}Kb(H[e+80>>2])}if(F[e+267|0]>=0){break u}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break t}Kb(H[e+240>>2])}if(F[e+235|0]>=0){break s}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break r}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break q}Kb(H[e+192>>2])}if(F[e+187|0]>=0){break p}Kb(H[e+176>>2])}if(F[e+171|0]>=0){break o}Kb(H[e+160>>2])}if(F[e+107|0]>=0){break n}Kb(H[e+96>>2])}if(F[e+155|0]>=0){break m}Kb(H[e+144>>2])}if(F[e+139|0]>=0){break l}Kb(H[e+128>>2])}if(F[e+123|0]>=0){break e}Kb(H[e+112>>2]);break e}b=$()|0;_()|0;break e}b=$()|0;_()|0;Vb(e+8|0);break e}H[197455]=0;ga(1766,b|0,d|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break g}}H[197455]=0;ia(1764,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;a=aa(899,32)|0;c=H[197455];H[197455]=0;X:{Y:{if((c|0)!=1){H[e+8>>2]=a;H[e+12>>2]=4;H[e+16>>2]=-2147483640;H[197455]=0;Mb(a,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break X}H[a+16>>2]=0;F[e+283|0]=0;H[197455]=0;H[e+272>>2]=0;ka(1767,b|0,e+8|0,d|0,e+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break Y}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+19|0]<0){Kb(H[e+8>>2])}a=H[d>>2];if(a){b=H[d+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[d>>2]}H[d+4>>2]=a;Kb(b)}if(F[e+315|0]<0){Kb(H[e+304>>2])}xb=e+320|0;return}b=$()|0;_()|0;break f}b=$()|0;_()|0;if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+19|0]>=0){break f}Kb(H[e+8>>2]);break f}ha(0)|0;_()|0;Zb();X()}b=$()|0;_()|0}yc(d)}if(F[e+315|0]>=0){break d}Kb(H[e+304>>2])}ea(b|0);X()} +function kn(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,z=0,A=0,B=0,C=0,D=0,E=0;j=xb-1312|0;xb=j;if(c>>>0>=4){k=H[a>>2];H[k+24>>2]=c;H[k+20>>2]=52;zb[H[H[a>>2]>>2]](a)}g=H[((b?180:196)+a|0)+(c<<2)>>2];if(!g){k=H[a>>2];H[k+24>>2]=c;H[k+20>>2]=52;zb[H[H[a>>2]>>2]](a)}k=H[d>>2];if(!k){k=zb[H[H[a+4>>2]>>2]](a,1,1424)|0;H[d>>2]=k}H[k+140>>2]=g;o=I[g+1|0];if(o){Nb(j+1040|0,1,o);d=o}else{d=0}p=I[g+2|0];c=d+p|0;if(c>>>0>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}a:{if(!p){c=d;break a}Nb(d+(j+1040|0)|0,2,p)}q=I[g+3|0];d=q+c|0;if((d|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}b:{if(!q){d=c;break b}Nb((j+1040|0)+c|0,3,q)}r=I[g+4|0];c=r+d|0;if((c|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}c:{if(!r){c=d;break c}Nb((j+1040|0)+d|0,4,r)}s=I[g+5|0];d=s+c|0;if((d|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}d:{if(!s){d=c;break d}Nb((j+1040|0)+c|0,5,s)}t=I[g+6|0];c=t+d|0;if((c|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}e:{if(!t){c=d;break e}Nb((j+1040|0)+d|0,6,t)}u=I[g+7|0];d=u+c|0;if((d|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}f:{if(!u){d=c;break f}Nb((j+1040|0)+c|0,7,u)}v=I[g+8|0];c=v+d|0;if((c|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}g:{if(!v){c=d;break g}Nb((j+1040|0)+d|0,8,v)}w=I[g+9|0];d=w+c|0;if((d|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}h:{if(!w){d=c;break h}Nb((j+1040|0)+c|0,9,w)}x=I[g+10|0];c=x+d|0;if((c|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}i:{if(!x){c=d;break i}Nb((j+1040|0)+d|0,10,x)}y=I[g+11|0];d=y+c|0;if((d|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}j:{if(!y){d=c;break j}Nb((j+1040|0)+c|0,11,y)}z=I[g+12|0];c=z+d|0;if((c|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}k:{if(!z){c=d;break k}Nb((j+1040|0)+d|0,12,z)}A=I[g+13|0];d=A+c|0;if((d|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}l:{if(!A){d=c;break l}Nb((j+1040|0)+c|0,13,A)}B=I[g+14|0];c=B+d|0;if((c|0)>=257){l=H[a>>2];H[l+20>>2]=9;zb[H[l>>2]](a)}m:{if(!B){c=d;break m}Nb((j+1040|0)+d|0,14,B)}C=I[g+15|0];l=C+c|0;if((l|0)>=257){d=H[a>>2];H[d+20>>2]=9;zb[H[d>>2]](a)}n:{if(!C){l=c;break n}Nb((j+1040|0)+c|0,15,C)}D=I[g+16|0];E=D+l|0;if((E|0)>=257){c=H[a>>2];H[c+20>>2]=9;zb[H[c>>2]](a)}d=0;if(D){Nb((j+1040|0)+l|0,16,D);l=E}F[(j+1040|0)+l|0]=0;f=I[j+1040|0];if(f){n=f<<24>>24;c=0;while(1){if(f<<24>>24==(n|0)){while(1){H[(d<<2)+j>>2]=c;c=c+1|0;d=d+1|0;f=F[d+(j+1040|0)|0];if((n|0)==(f|0)){continue}break}}if(1<>2];H[e+20>>2]=9;zb[H[e>>2]](a)}n=n+1|0;c=c<<1;if(f&255){continue}break}}d=-1;o:{if(!I[g+1|0]){c=0;e=-1;break o}H[k+76>>2]=0-H[j>>2];c=I[g+1|0];e=H[((c<<2)+j|0)-4>>2]}H[k+4>>2]=e;if(I[g+2|0]){H[k+80>>2]=c-H[(c<<2)+j>>2];c=I[g+2|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+8>>2]=e;if(I[g+3|0]){H[k+84>>2]=c-H[(c<<2)+j>>2];c=I[g+3|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+12>>2]=e;if(I[g+4|0]){H[k+88>>2]=c-H[(c<<2)+j>>2];c=I[g+4|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+16>>2]=e;if(I[g+5|0]){H[k+92>>2]=c-H[(c<<2)+j>>2];c=I[g+5|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+20>>2]=e;if(I[g+6|0]){H[k+96>>2]=c-H[(c<<2)+j>>2];c=I[g+6|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+24>>2]=e;if(I[g+7|0]){H[k+100>>2]=c-H[(c<<2)+j>>2];c=I[g+7|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+28>>2]=e;if(I[g+8|0]){H[k+104>>2]=c-H[(c<<2)+j>>2];c=I[g+8|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+32>>2]=e;if(I[g+9|0]){H[k+108>>2]=c-H[(c<<2)+j>>2];c=I[g+9|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+36>>2]=e;if(I[g+10|0]){H[k+112>>2]=c-H[(c<<2)+j>>2];c=I[g+10|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+40>>2]=e;if(I[g+11|0]){H[k+116>>2]=c-H[(c<<2)+j>>2];c=I[g+11|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+44>>2]=e;if(I[g+12|0]){H[k+120>>2]=c-H[(c<<2)+j>>2];c=I[g+12|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+48>>2]=e;if(I[g+13|0]){H[k+124>>2]=c-H[(c<<2)+j>>2];c=I[g+13|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+52>>2]=e;if(I[g+14|0]){H[k+128>>2]=c-H[(c<<2)+j>>2];c=I[g+14|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+56>>2]=e;if(I[g+15|0]){H[k+132>>2]=c-H[(c<<2)+j>>2];c=I[g+15|0]+c|0;e=H[((c<<2)+j|0)-4>>2]}else{e=-1}H[k+60>>2]=e;if(I[g+16|0]){H[k+136>>2]=c-H[(c<<2)+j>>2];d=H[((I[g+16|0]+c<<2)+j|0)-4>>2]}H[k+68>>2]=1048575;H[k+64>>2]=d;d=0;h=Nb(k+144|0,0,1024);if(I[g+1|0]){n=1;i=k+1168|0;while(1){f=d+g|0;c=H[(d<<2)+j>>2]<<7;m=128;while(1){H[h+(c<<2)>>2]=1;F[c+i|0]=I[f+17|0];e=c|1;H[h+(e<<2)>>2]=1;F[e+i|0]=I[f+17|0];e=c|2;H[h+(e<<2)>>2]=1;F[e+i|0]=I[f+17|0];e=c|3;H[h+(e<<2)>>2]=1;F[e+i|0]=I[f+17|0];c=c+4|0;e=(m|0)!=4;m=m-4|0;if(e){continue}break}d=d+1|0;c=I[g+1|0]>n>>>0;n=n+1|0;if(c){continue}break}}if(I[g+2|0]){n=1;h=k+144|0;i=k+1168|0;while(1){f=d+g|0;c=H[(d<<2)+j>>2]<<6;m=64;while(1){H[h+(c<<2)>>2]=2;F[c+i|0]=I[f+17|0];e=c|1;H[h+(e<<2)>>2]=2;F[e+i|0]=I[f+17|0];e=c|2;H[h+(e<<2)>>2]=2;F[e+i|0]=I[f+17|0];e=c|3;H[h+(e<<2)>>2]=2;F[e+i|0]=I[f+17|0];c=c+4|0;e=(m|0)!=4;m=m-4|0;if(e){continue}break}d=d+1|0;c=I[g+2|0]>n>>>0;n=n+1|0;if(c){continue}break}}if(I[g+3|0]){m=1;h=k+144|0;i=k+1168|0;while(1){c=H[(d<<2)+j>>2];H[h+(c<<7)>>2]=3;f=c<<5;e=d+g|0;F[f+i|0]=I[e+17|0];c=f|1;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|2;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|3;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|4;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|5;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|6;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|7;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|8;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|9;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|10;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|11;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|12;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|13;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|14;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|15;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|16;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|17;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|18;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|19;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|20;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|21;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|22;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|23;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|24;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|25;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|26;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|27;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|28;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|29;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|30;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];c=f|31;H[h+(c<<2)>>2]=3;F[c+i|0]=I[e+17|0];d=d+1|0;c=I[g+3|0]>m>>>0;m=m+1|0;if(c){continue}break}}if(I[g+4|0]){m=1;h=k+144|0;i=k+1168|0;while(1){c=H[(d<<2)+j>>2];H[h+(c<<6)>>2]=4;f=c<<4;e=d+g|0;F[f+i|0]=I[e+17|0];c=f|1;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|2;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|3;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|4;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|5;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|6;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|7;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|8;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|9;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|10;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|11;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|12;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|13;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|14;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];c=f|15;H[h+(c<<2)>>2]=4;F[c+i|0]=I[e+17|0];d=d+1|0;c=I[g+4|0]>m>>>0;m=m+1|0;if(c){continue}break}}if(I[g+5|0]){m=1;h=k+144|0;i=k+1168|0;while(1){c=H[(d<<2)+j>>2];H[h+(c<<5)>>2]=5;f=c<<3;e=d+g|0;F[f+i|0]=I[e+17|0];c=f|1;H[h+(c<<2)>>2]=5;F[c+i|0]=I[e+17|0];c=f|2;H[h+(c<<2)>>2]=5;F[c+i|0]=I[e+17|0];c=f|3;H[h+(c<<2)>>2]=5;F[c+i|0]=I[e+17|0];c=f|4;H[h+(c<<2)>>2]=5;F[c+i|0]=I[e+17|0];c=f|5;H[h+(c<<2)>>2]=5;F[c+i|0]=I[e+17|0];c=f|6;H[h+(c<<2)>>2]=5;F[c+i|0]=I[e+17|0];c=f|7;H[h+(c<<2)>>2]=5;F[c+i|0]=I[e+17|0];d=d+1|0;c=I[g+5|0]>m>>>0;m=m+1|0;if(c){continue}break}}if(I[g+6|0]){m=1;h=k+144|0;i=k+1168|0;while(1){c=H[(d<<2)+j>>2];H[h+(c<<4)>>2]=6;f=c<<2;e=d+g|0;F[f+i|0]=I[e+17|0];c=f|1;H[h+(c<<2)>>2]=6;F[c+i|0]=I[e+17|0];c=f|2;H[h+(c<<2)>>2]=6;F[c+i|0]=I[e+17|0];c=f|3;H[h+(c<<2)>>2]=6;F[c+i|0]=I[e+17|0];d=d+1|0;c=I[g+6|0]>m>>>0;m=m+1|0;if(c){continue}break}}if(I[g+7|0]){c=1;h=k+144|0;i=k+1168|0;while(1){e=H[(d<<2)+j>>2];H[h+(e<<3)>>2]=7;e=e<<1;f=d+g|0;F[e+i|0]=I[f+17|0];e=e|1;H[h+(e<<2)>>2]=7;F[e+i|0]=I[f+17|0];d=d+1|0;e=I[g+7|0]>c>>>0;c=c+1|0;if(e){continue}break}}if(I[g+8|0]){c=1;while(1){e=H[(d<<2)+j>>2];H[((e<<2)+k|0)+144>>2]=8;F[(e+k|0)+1168|0]=I[(d+g|0)+17|0];d=d+1|0;e=I[g+8|0]>c>>>0;c=c+1|0;if(e){continue}break}}p:{if(!b|(l|0)<=0){break p}c=0;if((((((((((((((((o+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)!=1){k=E&8388606;d=0;while(1){if(I[(c+g|0)+17|0]>=16){b=H[a>>2];H[b+20>>2]=9;zb[H[b>>2]](a)}if(I[((c|1)+g|0)+17|0]>=16){b=H[a>>2];H[b+20>>2]=9;zb[H[b>>2]](a)}c=c+2|0;d=d+2|0;if((k|0)!=(d|0)){continue}break}}if(!(E&1)|I[(c+g|0)+17|0]<16){break p}b=H[a>>2];H[b+20>>2]=9;zb[H[b>>2]](a)}xb=j+1312|0}function kG(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,y=0,z=0,A=0;c=xb-112|0;xb=c;H[a>>2]=0;H[a+4>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;F[a+21|0]=0;F[a+22|0]=0;F[a+23|0]=0;F[a+24|0]=0;F[a+25|0]=0;F[a+26|0]=0;F[a+27|0]=0;F[a+28|0]=0;F[a+44|0]=0;H[a+40>>2]=65536;k=Nb(a+48|0,0,84);H[197455]=0;d=aa(683,b|0)|0;e=H[197455];H[197455]=0;w=a+116|0;x=a+104|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((e|0)==1){break k}F[a+44|0]=1;H[a+40>>2]=d;H[197455]=0;b=da(684,b|0,1128678962)|0;d=H[197455];H[197455]=0;if((d|0)==1){break k}H[197455]=0;o=a+4|0;b=da(685,o|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break k}H[a>>2]=b;H[197455]=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=H[197455];H[197455]=0;if((d|0)==1){break k}H[a+36>>2]=b;F[a+28|0]=0;l=H[b+12>>2];H[a+8>>2]=l;b=H[b+16>>2];f=b+l|0;H[a+12>>2]=f;H[a+32>>2]=0;H[a+4>>2]=0;if(b>>>0>67108862){b=1073741823}else{b=b<<6;b=b>>>0>16384?b:16384;b=b>>>0<1073741823?b:1073741823}H[a+16>>2]=b;H[a+24>>2]=0;d=H[a>>2];if(K[d+16>>2]<5){break g}j=H[d+12>>2];if((j|0)==163632){break g}e=I[j+3|0]|I[j+4|0]<<8;g=(e<<8|e>>>8)&65535;d=I[j+2|0]+j|0;if(e){if(d>>>0>>0|d>>>0>f>>>0|f-d>>>0>>0){break g}b=b-g|0;H[a+16>>2]=b;if((b|0)<=0){break g}}F[c+28|0]=0;H[c+12>>2]=g;H[c+8>>2]=d;b=Tb(4744);H[c+40>>2]=0;H[c+44>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;F[c+24|0]=0;H[c+16>>2]=0;H[c+20>>2]=0;l:{if(!b){H[c+36>>2]=-1;break l}H[c+36>>2]=593;H[c+44>>2]=b;Nb(b,0,4104);H[c+40>>2]=513}b=0;F[c+48|0]=0;d=k;H[d+24>>2]=0;H[d+28>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d>>2]=0;H[d+4>>2]=0;f=I[163632];l=f|256;if((f|0)==12){break j}if(!e){break i}d=1;while(1){e=f;m:{n:{if(b>>>0>=g>>>0){break n}h=H[c+8>>2];e=I[h+b|0];if((e|0)==12){e=l;if(d>>>0>=g>>>0){break n}e=I[d+h|0]|256;b=d}if(b>>>0>=g>>>0){break n}H[c+20>>2]=b+1;break m}F[c+24|0]=1;H[c+20>>2]=g}H[197455]=0;ga(687,e|0,c+8|0,k|0);b=H[197455];H[197455]=0;if((b|0)!=1){if(I[c+28|0]|(I[c+48|0]|I[c+24|0])|H[c+36>>2]<0){break h}b=H[c+20>>2];d=b+1|0;g=H[c+12>>2];if(d>>>0<=g>>>0){continue}break i}break}break b}e=$()|0;_()|0;break a}if(!e){break i}d=1;while(1){o:{if(b>>>0>=g>>>0){F[c+24|0]=1;e=65535;break o}p:{f=H[c+8>>2];e=I[f+b|0];q:{if((e|0)==12){e=l;if(d>>>0>=g>>>0){break q}e=I[d+f|0]|256;b=d}if(b>>>0>>0){break p}}F[c+24|0]=1;H[c+20>>2]=g;break o}H[c+20>>2]=b+1}H[197455]=0;ga(687,e|0,c+8|0,k|0);b=H[197455];H[197455]=0;if((b|0)!=1){if(I[c+28|0]|(I[c+48|0]|I[c+24|0])|H[c+36>>2]<0){break h}b=H[c+20>>2];d=b+1|0;g=H[c+12>>2];if(d>>>0<=g>>>0){continue}break i}break}break b}H[c+40>>2]=0;Kb(H[c+44>>2]);l=I[j+2|0];d=I[j+3|0]|I[j+4|0]<<8;b=H[a+72>>2];e=b?b+j|0:163632;H[a+84>>2]=e;b=H[a- -64>>2];b=b?b+j|0:163632;H[a+88>>2]=b;k=H[a+68>>2];H[a+92>>2]=k?k+j|0:163632;k=H[a+76>>2];H[a+96>>2]=k?k+j|0:163632;H[a+80>>2]=(l+((d<<8|d>>>8)&65535)|0)+j;if((e|0)!=163632){H[197455]=0;b=VF(e,o);d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!b){break g}b=H[a+88>>2]}if((b|0)==163632){break g}H[197455]=0;b=il(b,o);d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!b){break g}b=H[a+80>>2];if((b|0)==163632){break g}H[197455]=0;b=il(b,o);d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!b){break g}b=H[a+92>>2];if((b|0)==163632){break g}H[197455]=0;b=il(b,o);d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!b){break g}d=H[a+96>>2];if((d|0)!=163632){b=H[a+92>>2];b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[197455]=0;b=UF(d,o,b<<8&16711680|b<<24|(b>>>8&65280|b>>>24));d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!b){break g}}b=H[a+88>>2];b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);H[a+128>>2]=b;if((b|0)!=H[a+40>>2]){break g}b=H[a+92>>2];b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);H[a+100>>2]=b;H[197455]=0;b=da(691,w|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!b){break g}if(!H[a+100>>2]){break f}g=H[40908];l=g&255;k=l|256;z=H[40910];A=H[40909];while(1){d=g;b=A;h=z;r:{s:{t:{u:{v:{w:{x:{y:{i=H[a+92>>2];e=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);q=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(q>>>0>n>>>0){h=0;e=0;m=I[i+4|0];z:{if(!m){break z}p=m&3;b=(i+N(n,m)|0)+5|0;d=0;if(m-1>>>0<3){e=0}else{r=m&252;while(1){f=b;b=b+4|0;e=e+4|0;if((r|0)!=(e|0)){continue}break}e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24)}if(!p){break z}while(1){e=I[b|0]|e<<8;b=b+1|0;d=d+1|0;if((p|0)!=(d|0)){continue}break}}H[197455]=0;b=pl(i,n);d=H[197455];H[197455]=0;if((d|0)==1){break y}d=((i+4|0)+N(m,q+1|0)|0)+e|0}A:{switch(b+1|0){default:if(K[a+8>>2]>d>>>0){break g}e=H[a+12>>2];if(e>>>0>>0|e-d>>>0>>0){break g}e=H[a+16>>2]-b|0;H[a+16>>2]=e;if((e|0)<=0){break g}break;case 1:break A;case 0:break g}}F[c+84|0]=0;F[c+80|0]=0;H[c+76>>2]=0;H[c+72>>2]=h;H[c+68>>2]=b;H[c+64>>2]=d;b=Tb(4744);H[c+96>>2]=0;H[c+100>>2]=0;H[c+88>>2]=0;H[c+92>>2]=0;B:{if(!b){H[c+92>>2]=-1;break B}H[c+92>>2]=593;H[c+100>>2]=b;Nb(b,0,4104);H[c+96>>2]=513}F[c+104|0]=0;b=H[a+108>>2];H[197455]=0;b=da(692,x|0,b+1|0)|0;d=H[197455];H[197455]=0;C:{if((d|0)!=1){if(b){break C}H[196254]=H[40914];b=H[40913];H[196252]=H[40912];H[196253]=b;b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;break w}e=$()|0;_()|0;break c}b=H[a+112>>2];d=H[a+108>>2];p=H[40914];H[196254]=p;e=H[40913];q=e;r=H[40912];H[196252]=r;H[196253]=e;e=H[40911];u=e;s=H[40910];H[196250]=s;H[196251]=e;e=H[40909];v=e;t=H[40908];H[196248]=t;H[196249]=e;e=b+N(d-1|0,28)|0;if((e|0)!=784992){break x}break w}e=$()|0;_()|0;break a}b=e;H[b>>2]=0;H[b+4>>2]=0;H[b+24>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;b=!I[c+80|0];while(1){D:{if(!(b&1)){break D}b=H[c+76>>2];f=b+1|0;h=H[c+68>>2];if(f>>>0>h>>>0){break D}E:{F:{if(b>>>0>>0){i=H[c+64>>2];d=I[i+b|0];if((d|0)==12){b=k;if(f>>>0>=h>>>0){break F}d=I[f+i|0]|256;b=f}if(b>>>0>=h>>>0){b=d;break F}H[c+76>>2]=b+1;break E}F[c+80|0]=1;d=65535;b=l;if((g&255)==12){break E}}F[c+80|0]=1;H[c+76>>2]=h;d=b}H[197455]=0;ga(693,d|0,c- -64|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break u}if(I[c+84|0]|(I[c+104|0]|I[c+80|0])){break w}b=1;if(H[c+92>>2]>=0){continue}break w}break}b=H[e+16>>2];h=b?b+j|0:163632;G:{H:{i=H[e+20>>2];switch(i+1|0){case 0:break w;case 1:break G;default:break H}}if(h>>>0>2]){break w}b=H[a+12>>2];if(b>>>0>>0|i>>>0>b-h>>>0){break w}b=H[a+16>>2]-i|0;H[a+16>>2]=b;if((b|0)<=0){break w}}F[c+28|0]=0;H[c+12>>2]=i;H[c+8>>2]=h;b=Tb(4744);H[c+40>>2]=0;H[c+44>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;F[c+24|0]=0;H[c+16>>2]=0;H[c+20>>2]=0;I:{if(!b){H[c+36>>2]=-1;break I}H[c+36>>2]=593;H[c+44>>2]=b;Nb(b,0,4104);H[c+40>>2]=513}F[c+56|0]=0;H[c+52>>2]=0;F[c+48|0]=0;J:{if(K[a+120>>2]<=n>>>0){H[196254]=p;H[196252]=r;H[196253]=q;H[196250]=s;H[196251]=u;H[196248]=t;H[196249]=v;b=784992;break J}b=H[a+124>>2]+N(n,28)|0}H[b+24>>2]=0;H[b+20>>2]=163632;H[b>>2]=0;H[b+4>>2]=0;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;K:{if(K[a+120>>2]<=n>>>0){H[196254]=p;H[196252]=r;H[196253]=q;H[196250]=s;H[196251]=u;H[196248]=t;H[196249]=v;e=784992;break K}e=H[a+124>>2]+N(n,28)|0}H[e+24>>2]=0;H[e+20>>2]=163632;H[e>>2]=0;H[e+4>>2]=0;H[e+16>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;b=!I[c+24|0];L:{while(1){if(!(b&1)){break L}b=H[c+20>>2];f=b+1|0;m=H[c+12>>2];if(f>>>0>m>>>0){break L}M:{N:{if(b>>>0>>0){y=H[c+8>>2];d=I[y+b|0];if((d|0)==12){b=k;if(f>>>0>=m>>>0){break N}d=I[f+y|0]|256;b=f}if(b>>>0>=m>>>0){b=d;break N}H[c+20>>2]=b+1;break M}F[c+24|0]=1;d=65535;b=l;if((g&255)==12){break M}}F[c+24|0]=1;H[c+20>>2]=m;d=b}H[197455]=0;ga(694,d|0,c+8|0,e|0);b=H[197455];H[197455]=0;if((b|0)!=1){if(I[c+28|0]|(I[c+48|0]|I[c+24|0])){break s}b=1;if(H[c+36>>2]>=0){continue}break s}break}break d}if(K[a+120>>2]<=n>>>0){break v}b=H[a+124>>2]+N(n,28)|0;d=H[b+16>>2];d=d?d+(i?h:163632)|0:163632;H[b+20>>2]=d;if((d|0)==163632){break r}break t}H[c+96>>2]=0;Kb(H[c+100>>2]);break g}H[196252]=r;H[196253]=q;H[196254]=p;H[196250]=s;H[196251]=u;H[196248]=t;H[196249]=v;b=784992;if(H[196253]!=163632){break t}break r}e=$()|0;_()|0;break c}b=H[b+20>>2];H[197455]=0;b=il(b,o);d=H[197455];H[197455]=0;if((d|0)==1){break d}if(b){break r}}H[c+40>>2]=0;Kb(H[c+44>>2]);H[c+96>>2]=0;Kb(H[c+100>>2]);break g}H[c+40>>2]=0;Kb(H[c+44>>2]);H[c+96>>2]=0;Kb(H[c+100>>2]);n=n+1|0;if(n>>>0>2]){continue}break}break f}H[c+40>>2]=0;Kb(H[c+44>>2])}H[197455]=0;ia(658,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break e}}xb=c+112|0;return a|0}e=$()|0;_()|0;break a}e=$()|0;_()|0;H[c+40>>2]=0;Kb(H[c+44>>2])}H[c+96>>2]=0;Kb(H[c+100>>2]);break a}e=$()|0;_()|0;H[c+40>>2]=0;Kb(H[c+44>>2])}SF(w);SF(x);H[a+56>>2]=0;Kb(H[a+60>>2]);H[a+60>>2]=0;H[a+52>>2]=0;H[a+56>>2]=0;ea(e|0);X()}function Y0(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;e=xb-320|0;xb=e;k=H[b+8>>2];f=+(k|0);n=H[b>>2];i=+(n|0);j=f>2];q=k;k=H[b+12>>2];f=qe(n,j,q,k,H[c>>2],H[c+4>>2]);i=qe(H[b>>2],H[b+4>>2],H[b+8>>2],H[b+12>>2],H[d>>2],H[d+4>>2]);b=H[a+80>>2];a:{if(!b){break a}if(!(M[(zb[H[H[b>>2]+68>>2]](b,2)|0)+24>>3]<0)){break a}i=-i;f=-f}b=e+272|0;m=P(h-g)*.5;l=f*3.141592653589793/180;o=(h+g)*.5;Ce(b,m*ze(l)+o,-1);H[197455]=0;b=ca(1758,b|0,0,405252)|0;c=H[197455];H[197455]=0;g=i*3.141592653589793/180;r=ne(g);s=ze(g);l=ne(l);b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{if((c|0)!=1){H[e+296>>2]=H[b+8>>2];c=H[b+4>>2];H[e+288>>2]=H[b>>2];H[e+292>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+288|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break U}H[e+16>>2]=H[e+296>>2];H[e+296>>2]=0;b=H[e+292>>2];H[e+8>>2]=H[e+288>>2];H[e+12>>2]=b;H[e+288>>2]=0;H[e+292>>2]=0;H[197455]=0;g=+(j|0);h=+(k|0);b=g>h;p=b?g:h;h=b?h:g;g=P(p-h)*.5;h=(p+h)*.5;fa(1756,e+256|0,+(g*l+h),-1);b=H[197455];H[197455]=0;if((b|0)==1){break T}H[197455]=0;b=I[e+267|0];c=b<<24>>24<0;b=ca(1759,e+8|0,(c?H[e+256>>2]:e+256|0)|0,(c?H[e+260>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break S}H[e+312>>2]=H[b+8>>2];c=H[b+4>>2];H[e+304>>2]=H[b>>2];H[e+308>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+19|0]<0){Kb(H[e+8>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}if(F[e+283|0]<0){Kb(H[e+272>>2])}H[197455]=0;fa(1756,e+112|0,+m,-1);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;b=ca(1758,e+112|0,0,405424)|0;c=H[197455];H[197455]=0;if((c|0)==1){break N}H[e+136>>2]=H[b+8>>2];c=H[b+4>>2];H[e+128>>2]=H[b>>2];H[e+132>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+128|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break M}H[e+152>>2]=H[e+136>>2];H[e+136>>2]=0;b=H[e+132>>2];H[e+144>>2]=H[e+128>>2];H[e+148>>2]=b;H[e+128>>2]=0;H[e+132>>2]=0;H[197455]=0;fa(1756,e+96|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break L}H[197455]=0;b=I[e+107|0];c=b<<24>>24<0;b=ca(1759,e+144|0,(c?H[e+96>>2]:e+96|0)|0,(c?H[e+100>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break K}H[e+168>>2]=H[b+8>>2];c=H[b+4>>2];H[e+160>>2]=H[b>>2];H[e+164>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+160|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break J}H[e+184>>2]=H[e+168>>2];H[e+168>>2]=0;b=H[e+164>>2];H[e+176>>2]=H[e+160>>2];H[e+180>>2]=b;H[e+160>>2]=0;H[e+164>>2]=0;H[197455]=0;b=da(1699,e+176|0,405612)|0;c=H[197455];H[197455]=0;if((c|0)==1){break I}H[e+200>>2]=H[b+8>>2];c=H[b+4>>2];H[e+192>>2]=H[b>>2];H[e+196>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;f=P(i-f);b=da(1699,e+192|0,(f<=180?405804:405964)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break H}H[e+216>>2]=H[b+8>>2];c=H[b+4>>2];H[e+208>>2]=H[b>>2];H[e+212>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+208|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break G}H[e+232>>2]=H[e+216>>2];H[e+216>>2]=0;b=H[e+212>>2];H[e+224>>2]=H[e+208>>2];H[e+228>>2]=b;H[e+208>>2]=0;H[e+212>>2]=0;H[197455]=0;b=da(1699,e+224|0,(f<=180?405964:405804)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break F}H[e+248>>2]=H[b+8>>2];c=H[b+4>>2];H[e+240>>2]=H[b>>2];H[e+244>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break E}H[e+264>>2]=H[e+248>>2];H[e+248>>2]=0;b=H[e+244>>2];H[e+256>>2]=H[e+240>>2];H[e+260>>2]=b;H[e+240>>2]=0;H[e+244>>2]=0;H[197455]=0;fa(1756,e+80|0,+(m*s+o),-1);b=H[197455];H[197455]=0;if((b|0)==1){break D}H[197455]=0;b=I[e+91|0];c=b<<24>>24<0;b=ca(1759,e+256|0,(c?H[e+80>>2]:e+80|0)|0,(c?H[e+84>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break C}H[e+280>>2]=H[b+8>>2];c=H[b+4>>2];H[e+272>>2]=H[b>>2];H[e+276>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,e+272|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break B}H[e+296>>2]=H[e+280>>2];H[e+280>>2]=0;b=H[e+276>>2];H[e+288>>2]=H[e+272>>2];H[e+292>>2]=b;H[e+272>>2]=0;H[e+276>>2]=0;H[197455]=0;fa(1756,e- -64|0,+(g*r+h),-1);b=H[197455];H[197455]=0;if((b|0)==1){break A}H[197455]=0;b=I[e+75|0];c=b<<24>>24<0;b=ca(1759,e+288|0,(c?H[e+64>>2]:e- -64|0)|0,(c?H[e+68>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break z}H[e+16>>2]=H[b+8>>2];c=H[b+4>>2];H[e+8>>2]=H[b>>2];H[e+12>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=I[e+19|0];c=b<<24>>24<0;ca(1759,e+304|0,(c?H[e+8>>2]:e+8|0)|0,(c?H[e+12>>2]:b)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break y}if(F[e+19|0]<0){Kb(H[e+8>>2])}if(F[e+75|0]<0){Kb(H[e+64>>2])}if(F[e+299|0]<0){Kb(H[e+288>>2])}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+91|0]<0){Kb(H[e+80>>2])}if(F[e+267|0]<0){Kb(H[e+256>>2])}if(F[e+251|0]<0){Kb(H[e+240>>2])}if(F[e+235|0]<0){Kb(H[e+224>>2])}if(F[e+219|0]<0){Kb(H[e+208>>2])}if(F[e+203|0]<0){Kb(H[e+192>>2])}if(F[e+187|0]<0){Kb(H[e+176>>2])}if(F[e+171|0]<0){Kb(H[e+160>>2])}if(F[e+107|0]<0){Kb(H[e+96>>2])}if(F[e+155|0]<0){Kb(H[e+144>>2])}if(F[e+139|0]<0){Kb(H[e+128>>2])}if(F[e+123|0]<0){Kb(H[e+112>>2])}H[197455]=0;b=ca(1762,e+8|0,404840,e+304|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[e+56>>2]=b;H[197455]=0;H[e+60>>2]=1;b=H[e+60>>2];H[e>>2]=H[e+56>>2];H[e+4>>2]=b;d=da(1763,e+288|0,e|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[e+31|0]<0){Kb(H[e+20>>2])}b=a+8|0;if(F[e+19|0]<0){Kb(H[e+8>>2])}H[197455]=0;ba(1770,b|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[197455]=0;ba(1771,b|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break e}c=H[a+80>>2];j=H[H[c>>2]+104>>2];H[197455]=0;c=aa(j|0,c|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break e}if((c|0)!=1){break g}H[e+24>>2]=0;H[e+28>>2]=0;H[e+48>>2]=0;H[e+52>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=1072693248;H[e+40>>2]=0;H[e+44>>2]=0;H[e+32>>2]=0;H[e+36>>2]=1072693248;a=H[a+80>>2];c=H[H[a>>2]+68>>2];H[197455]=0;a=da(c|0,a|0,2)|0;c=H[197455];H[197455]=0;if((c|0)!=1){M[e+8>>3]=M[a>>3];M[e+16>>3]=M[a+8>>3];M[e+24>>3]=M[a+16>>3];f=M[a+24>>3];M[e+40>>3]=M[a+32>>3];i=M[a+40>>3];M[e+32>>3]=-f;M[e+48>>3]=i;H[197455]=0;ga(1766,b|0,d|0,e+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){break f}}b=$()|0;_()|0;break d}b=$()|0;_()|0;break P}b=$()|0;_()|0;break Q}b=$()|0;_()|0;break R}b=$()|0;_()|0;if(F[e+267|0]>=0){break R}Kb(H[e+256>>2])}if(F[e+19|0]>=0){break Q}Kb(H[e+8>>2])}if(F[e+299|0]>=0){break P}Kb(H[e+288>>2])}if(F[e+283|0]>=0){break b}Kb(H[e+272>>2]);ea(b|0);X()}b=$()|0;_()|0;break c}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;break p}b=$()|0;_()|0;break q}b=$()|0;_()|0;break r}b=$()|0;_()|0;break s}b=$()|0;_()|0;break t}b=$()|0;_()|0;break u}b=$()|0;_()|0;break v}b=$()|0;_()|0;break w}b=$()|0;_()|0;break x}b=$()|0;_()|0;if(F[e+19|0]>=0){break x}Kb(H[e+8>>2])}if(F[e+75|0]>=0){break w}Kb(H[e+64>>2])}if(F[e+299|0]>=0){break v}Kb(H[e+288>>2])}if(F[e+283|0]>=0){break u}Kb(H[e+272>>2])}if(F[e+91|0]>=0){break t}Kb(H[e+80>>2])}if(F[e+267|0]>=0){break s}Kb(H[e+256>>2])}if(F[e+251|0]>=0){break r}Kb(H[e+240>>2])}if(F[e+235|0]>=0){break q}Kb(H[e+224>>2])}if(F[e+219|0]>=0){break p}Kb(H[e+208>>2])}if(F[e+203|0]>=0){break o}Kb(H[e+192>>2])}if(F[e+187|0]>=0){break n}Kb(H[e+176>>2])}if(F[e+171|0]>=0){break m}Kb(H[e+160>>2])}if(F[e+107|0]>=0){break l}Kb(H[e+96>>2])}if(F[e+155|0]>=0){break k}Kb(H[e+144>>2])}if(F[e+139|0]>=0){break j}Kb(H[e+128>>2])}if(F[e+123|0]>=0){break c}Kb(H[e+112>>2]);break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;Vb(e+8|0);break c}H[197455]=0;ga(1766,b|0,d|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break e}}H[197455]=0;ia(1764,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}H[197455]=0;a=aa(899,32)|0;c=H[197455];H[197455]=0;V:{W:{if((c|0)!=1){H[e+8>>2]=a;H[e+12>>2]=4;H[e+16>>2]=-2147483640;H[197455]=0;Mb(a,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break V}H[a+16>>2]=0;F[e+283|0]=0;H[197455]=0;H[e+272>>2]=0;ka(1767,b|0,e+8|0,d|0,e+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break W}if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+19|0]<0){Kb(H[e+8>>2])}a=H[d>>2];if(a){b=H[d+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[d>>2]}H[d+4>>2]=a;Kb(b)}if(F[e+315|0]<0){Kb(H[e+304>>2])}xb=e+320|0;return}b=$()|0;_()|0;break d}b=$()|0;_()|0;if(F[e+283|0]<0){Kb(H[e+272>>2])}if(F[e+19|0]>=0){break d}Kb(H[e+8>>2]);break d}ha(0)|0;_()|0;Zb();X()}b=$()|0;_()|0}yc(d)}if(F[e+315|0]>=0){break b}Kb(H[e+304>>2])}ea(b|0);X()}function aN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=xb-48|0;xb=g;p=H[b+100>>2];d=bc(a,0);H[g+36>>2]=d;a:{if(d){break a}H[g+24>>2]=0;H[g+28>>2]=8;H[g+16>>2]=1;H[g+20>>2]=1;H[g+40>>2]=0;h=pc(p,64,g+40|0);b:{c:{d:{d=H[g+40>>2];if(!d){G[h+12>>1]=32767;H[h+36>>2]=g+16;d=H[a+4>>2];H[h+56>>2]=p;H[h+60>>2]=d;H[h+40>>2]=0;H[h+44>>2]=0;H[h+48>>2]=0;H[h+52>>2]=p;r=H[a+28>>2];H[g+44>>2]=0;d=1024;o=Ub(r,1,0,1024,0,g+44|0);if(H[g+44>>2]){break d}H[g>>2]=2;F[o|0]=0;i=256;e=0;k=1;e:while(1){m=d;f:while(1){f=0;d=0;while(1){if(!(f&1)){l=nq(a,e+o|0,m-e|0);j=l+e|0;e=0}g:{h:{i:{j:{if((d|0)>=(j|0)){break j}t=d+o|0;f=F[t|0];if((i|0)==(f|0)){break g}n=d;while(1){k:{s=f&255;switch(s-10|0){case 0:case 3:break i;default:break k}}n=n+1|0;if((n|0)==(j|0)){break j}f=I[o+n|0];continue}}if(!l){break d}if(!d){if(m>>>0<65536){break h}H[g+44>>2]=6;break d}l=j-d|0;$c(o,d+o|0,l);e=l;j=d;continue f}i=o+n|0;F[i|0]=0;l:{m:{switch(I[t|0]-26|0){case 0:case 9:break l;default:break m}}if((d|0)>=(n|0)){break l}q=n-d|0;d=zb[H[g>>2]](t,q,k,g,h)|0;H[g+44>>2]=d;if((d|0)==-1){d=zb[H[g>>2]](t,q,k,g,h)|0;H[g+44>>2]=d}if(d){break d}}F[i|0]=f;i=(s|0)==10?13:(s|0)==13?10:256;f=1;d=n+1|0;k=k+1|0;continue}d=m<<1;o=Ub(r,1,m,d,o,g+44|0);e=m;if(!H[g+44>>2]){continue e}break d}f=1;d=d+1|0;i=256;continue}}}}e=0;if(!h){break b}break c}if(o){zb[H[r+8>>2]](r,o)}a=H[g+44>>2];H[g+40>>2]=a;e=H[h+32>>2];n:{if(a){break n}o:{p:{q:{if(e){if(H[e+28>>2]!=8){G[e+32>>1]=J[e+4>>1]}r:{if(!H[H[h+36>>2]>>2]|!(H[e+52>>2]|H[e+64>>2])){break r}a=G[h+12>>1];d=G[h+16>>1]-a|0;if((d|0)!=J[e+4>>1]){G[e+4>>1]=d}if(J[e+8>>1]!=(a&65535)){G[e+8>>1]=a}a=J[h+18>>1];d=a<<16;if((a|0)!=J[e+12>>1]){G[e+12>>1]=a}a=J[h+20>>1];f=a<<16>>16;if((a|0)!=J[e+14>>1]){G[e+14>>1]=a;G[e+10>>1]=0-a}a=f+(d>>16)|0;if((a|0)==J[e+6>>1]){break r}G[e+6>>1]=a}d=H[h>>2];if(d&1){break q}a=H[e+88>>2];if(!a){break c}a=Ub(H[e+100>>2],1,a,a+1|0,H[e+84>>2],g+40|0);e=H[h+32>>2];H[e+84>>2]=a;if(H[g+40>>2]){break n}F[a+H[e+88>>2]|0]=0;e=H[h+32>>2];break c}d=H[h>>2];if(!(d&1)){break p}}if(d&32){break o}H[g+40>>2]=185;break n}H[g+40>>2]=3;e=0;break c}H[g+40>>2]=186}Su(e);a=H[h+32>>2];if(a){zb[H[p+8>>2]](p,a)}e=0;H[h+32>>2]=0}a=H[h+52>>2];if(a){d=H[h+40>>2];if(d){zb[H[a+8>>2]](a,d)}H[h+48>>2]=0;H[h+52>>2]=0;H[h+40>>2]=0;H[h+44>>2]=0}a=H[h+24>>2];if(a){zb[H[p+8>>2]](p,a)}H[h+24>>2]=0;if(h){zb[H[p+8>>2]](p,h)}d=H[g+40>>2]}H[g+36>>2]=d;s:{t:{u:{v:{w:{x:{y:{z:{if((d&255)!=176){if(d){break a}H[b+140>>2]=e;if(!(!(c&65535)|(c|0)<=0)){wo(b);d=6;break a}H[b>>2]=1;H[b+4>>2]=0;H[b+8>>2]=H[b+8>>2]|18;A:{B:{if(!e|!H[e+72>>2]){break B}a=Me(9396,H[e+92>>2]);C:{if(!a){break C}c=H[e+80>>2];if(!c){break C}a=c+(H[a>>2]<<4)|0;if(H[a+4>>2]!=1){break C}a=H[a+12>>2];if(!a){break C}D:{E:{a=I[a|0];switch(a-67|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break C;case 0:case 10:break D;default:break E}}switch(a-99|0){case 0:case 10:break D;default:break C}}H[b+8>>2]=H[b+8>>2]|4}if(!H[e+72>>2]){break B}a=Me(9539,H[e+92>>2]);if(!a){break B}c=H[e+80>>2];if(!c){break B}a=H[(c+(H[a>>2]<<4)|0)+12>>2];if(!a){break B}u=b,v=jf(p,a,g+36|0),H[u+20>>2]=v;d=H[g+36>>2];if(!d){break A}break a}H[b+20>>2]=0}l=0;H[g>>2]=0;H[b+12>>2]=0;s=H[b+100>>2];t=1;d=H[b+140>>2];if(!d|!H[d+72>>2]){break u}h=0;n=0;a=Me(23829,H[d+92>>2]);F:{if(!a){break F}c=H[d+80>>2];if(!c){break F}a=c+(H[a>>2]<<4)|0;if(H[a+4>>2]!=1){break F}c=H[a+12>>2];if(!c){break F}G:{switch(I[c|0]-73|0){case 0:case 6:case 32:case 38:break G;default:break F}}H[b+12>>2]=H[b+12>>2]|1;n=(I[H[a+12>>2]]&223)==79?24400:24408}if(!H[d+72>>2]){i=0;a=0;k=0;o=0;d=0;m=1;break v}a=0;j=1;c=Me(24015,H[d+92>>2]);k=0;H:{if(!c){break H}f=H[d+80>>2];k=0;if(!f){break H}c=f+(H[c>>2]<<4)|0;k=0;if(H[c+4>>2]!=1){break H}c=H[c+12>>2];k=0;if(!c){break H}k=0;if((I[c|0]|32)!=98){break H}H[b+12>>2]=H[b+12>>2]|2;j=0;k=24415}if(!H[d+72>>2]){break y}i=0;c=Me(23815,H[d+92>>2]);a=0;I:{if(!c){break I}f=H[d+80>>2];a=0;if(!f){break I}c=f+(H[c>>2]<<4)|0;a=0;if(H[c+4>>2]!=1){break I}c=H[c+12>>2];a=0;if(!c){break I}f=I[c|0];a=0;if(!f){break I}a=0;if((f|0)==78){break I}a=0;if((f|0)==110){break I}a=c}if(!H[d+72>>2]){break x}c=Me(12253,H[d+92>>2]);if(!c){break y}d=H[d+80>>2];if(!d){break y}c=d+(H[c>>2]<<4)|0;if(H[c+4>>2]!=1){break x}i=H[c+12>>2];if(!i){break y}c=I[i|0];if(!c|(c|0)==78|(c|0)==110){break z}h=ac(i);d=h+1|0;break w}wo(b);d=2;break a}i=0;d=0;break w}i=0}d=0}if(j){k=0;o=0;m=1;break v}o=ac(k);d=(o+d|0)+1|0;m=0}J:{if(!n){r=0;break J}r=ac(n);d=(r+d|0)+1|0}t=!n;c=!a;if(a){l=ac(a);d=(l+d|0)+1|0}if(d){break s}break t}a=0;o=0;k=0;m=1;n=0;r=0;c=1}d=8;h=7;i=24420}f=pc(s,d,g);H[b+24>>2]=f;d=H[g>>2];if(d){H[g+36>>2]=d;break a}if(i){f=Ob(f,i,h);K:{if(!h){break K}i=0;d=0;if(h-1>>>0>=3){s=h&-4;j=0;while(1){q=d+f|0;if(I[q|0]==32){F[q|0]=45}q=f+(d|1)|0;if(I[q|0]==32){F[q|0]=45}q=f+(d|2)|0;if(I[q|0]==32){F[q|0]=45}q=f+(d|3)|0;if(I[q|0]==32){F[q|0]=45}d=d+4|0;j=j+4|0;if((s|0)!=(j|0)){continue}break}}j=h&3;if(!j){break K}while(1){s=d+f|0;if(I[s|0]==32){F[s|0]=45}d=d+1|0;i=i+1|0;if((j|0)!=(i|0)){continue}break}}f=f+h|0}if(!m){if(H[b+24>>2]!=(f|0)){F[f|0]=32;f=f+1|0}f=Ob(f,k,o)+o|0}if(!t){if(H[b+24>>2]!=(f|0)){F[f|0]=32;f=f+1|0}f=Ob(f,n,r)+r|0}if(!c){if(H[b+24>>2]!=(f|0)){F[f|0]=32;f=f+1|0}a=Ob(f,a,l);L:{if(!l){break L}i=0;d=0;if(l-1>>>0>=3){c=l&-4;j=0;while(1){f=a+d|0;if(I[f|0]==32){F[f|0]=45}f=a+(d|1)|0;if(I[f|0]==32){F[f|0]=45}f=a+(d|2)|0;if(I[f|0]==32){F[f|0]=45}f=a+(d|3)|0;if(I[f|0]==32){F[f|0]=45}d=d+4|0;j=j+4|0;if((c|0)!=(j|0)){continue}break}}c=l&3;if(!c){break L}while(1){f=a+d|0;if(I[f|0]==32){F[f|0]=45}d=d+1|0;i=i+1|0;if((c|0)!=(i|0)){continue}break}}f=a+l|0}F[f|0]=0;d=H[g>>2];H[g+36>>2]=d;if(d){break a}a=H[e+48>>2];H[b+28>>2]=1;H[b+16>>2]=a+1;a=Ub(p,16,0,1,0,g+36|0);H[b+32>>2]=a;d=H[g+36>>2];if(d){break a}H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;d=H[e+40>>2];if(d-32768>>>0<=4294901760){d=(d|0)<0?-32767:32767;H[e+40>>2]=d}i=H[e+44>>2];if(i-32768>>>0<=4294901760){i=(i|0)<0?-32767:32767;H[e+44>>2]=i}G[a>>1]=d+i;d=hi(e,9648);M:{if(d){d=H[d+12>>2];c=32767;if(d-327666>>>0<4294311965){break M}d=(d+5|0)/10|0;c=d>>31;c=(c^d)-c|0;break M}c=ic(G[a>>1],2,3)}G[a+2>>1]=c;d=hi(e,9820);N:{if(d){d=H[d+12>>2];c=32767;if(d-328899>>>0<4294309499){break N}c=d>>31;c=ic((c^d)-c|0,460800,72270);break N}c=H[e+16>>2];if(c){c=c>>>0>32767?32767:c<<6;break N}c=G[a+2>>1]<<6}H[a+4>>2]=c;c=hi(e,9946);if(c){c=H[c+12>>2];d=c>>31;H[a+12>>2]=c-32768>>>0<4294901761?2097088:(c^d)-d<<6}d=hi(e,10096);d=H[(d?d+12|0:e+20|0)>>2];c=0;O:{if(!d){break O}c=2147418112;if(d-32768>>>0<4294901761){break O}c=d>>31;c=(c^d)-c<<16}P:{Q:{R:{S:{d=hi(e,10199);d=H[(d?d+12|0:e+24|0)>>2];if(d){if(d-32768>>>0<4294901761){break S}m=d;d=d>>31;j=(m^d)-d|0;d=H[a+12>>2];if(d){break Q}d=H[a+4>>2];H[a+12>>2]=d;if(!(j&65535)){break P}m=a+12|0;break R}d=H[a+12>>2];if(d){break P}d=H[a+4>>2];H[a+12>>2]=d;break P}j=32767;d=H[a+12>>2];if(d){break Q}d=H[a+4>>2];H[a+12>>2]=d;m=a+12|0}d=ic(d,j&65535,72);H[m>>2]=d}if(!c){break P}f=j&65535;if(!f){break P}d=ic(d,c>>>16|0,f)}H[a+8>>2]=d;a=H[e+56>>2];c=Ub(p,8,0,H[e+48>>2],0,g+36|0);H[b+144>>2]=c;d=H[g+36>>2];if(d){break a}H[b+148>>2]=0;f=H[e+48>>2];T:{if(!f){break T}m=H[e+36>>2];d=0;if((f|0)!=1){k=f&-2;n=0;while(1){j=H[(a+N(d,36)|0)+4>>2];l=c+(d<<3)|0;G[l+4>>1]=d;H[l>>2]=j;if((j|0)==(m|0)){H[b+148>>2]=d}j=d|1;l=H[(a+N(j,36)|0)+4>>2];h=c+(j<<3)|0;G[h+4>>1]=j;H[h>>2]=l;if((l|0)==(m|0)){H[b+148>>2]=j}d=d+2|0;n=n+2|0;if((k|0)!=(n|0)){continue}break}}if(!(f&1)){break T}a=H[(a+N(d,36)|0)+4>>2];c=c+(d<<3)|0;G[c+4>>1]=d;H[c>>2]=a;if((a|0)!=(m|0)){break T}H[b+148>>2]=d}U:{a=hi(e,10306);c=hi(e,10470);if(!a|!c|(H[a+4>>2]!=1|H[c+4>>2]!=1)){break U}if(!H[a+12>>2]){break U}c=H[c+12>>2];if(!c){break U}u=b,v=jf(p,c,g+36|0),H[u+132>>2]=v;d=H[g+36>>2];if(d){break a}a=jf(p,H[a+12>>2],g+36|0);H[b+136>>2]=a;d=H[g+36>>2];if(d){break a}V:{W:{X:{Y:{if(!((I[a|0]|32)!=105|(I[a+1|0]|32)!=115|(I[a+2|0]|32)!=111)){a=a+3|0;if(!fc(a,10615)){break Y}if(!fc(a,10750)){if(!fc(H[b+132>>2],10855)){break Y}}if(!fc(a,10950)){break X}}H[g+4>>2]=0;H[g+8>>2]=0;H[g>>2]=b;break V}H[g+4>>2]=0;H[g+8>>2]=0;H[g>>2]=b;break W}a=fc(H[b+132>>2],11060);H[g+4>>2]=0;H[g+8>>2]=0;H[g>>2]=b;if(a){break V}}H[g+4>>2]=1970170211;H[g+8>>2]=65539}d=of(21632,0,g,0);H[g+36>>2]=d;break a}H[g+4>>2]=1094995778;H[g+8>>2]=7;H[g>>2]=b;d=of(21632,0,g,0);H[g+36>>2]=d;if(!H[b+36>>2]){break a}H[b+92>>2]=H[H[b+40>>2]>>2]}xb=g+48|0;return d|0}function _0(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;f=xb-320|0;xb=f;c=H[c>>2];h=M[d>>3]*3.141592653589793/180;g=ze(h);n=H[b+4>>2];j=M[e>>3];l=f+272|0;i=g;g=+(c>>>0);m=+H[b>>2];Ce(l,i*g+m,-1);H[197455]=0;b=ca(1758,l|0,0,405252)|0;c=H[197455];H[197455]=0;j=j*3.141592653589793/180;o=ne(j);j=ze(j);h=ne(h);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{if((c|0)!=1){H[f+296>>2]=H[b+8>>2];c=H[b+4>>2];H[f+288>>2]=H[b>>2];H[f+292>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break T}H[f+16>>2]=H[f+296>>2];H[f+296>>2]=0;b=H[f+292>>2];H[f+8>>2]=H[f+288>>2];H[f+12>>2]=b;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;i=g*h;h=+(n|0);fa(1756,f+256|0,+(i+h),-1);b=H[197455];H[197455]=0;if((b|0)==1){break S}H[197455]=0;b=I[f+267|0];c=b<<24>>24<0;b=ca(1759,f+8|0,(c?H[f+256>>2]:f+256|0)|0,(c?H[f+260>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break R}H[f+312>>2]=H[b+8>>2];c=H[b+4>>2];H[f+304>>2]=H[b>>2];H[f+308>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+19|0]<0){Kb(H[f+8>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}H[197455]=0;fa(1756,f+112|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break N}H[197455]=0;b=ca(1758,f+112|0,0,405424)|0;c=H[197455];H[197455]=0;if((c|0)==1){break M}H[f+136>>2]=H[b+8>>2];c=H[b+4>>2];H[f+128>>2]=H[b>>2];H[f+132>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+128|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break L}H[f+152>>2]=H[f+136>>2];H[f+136>>2]=0;b=H[f+132>>2];H[f+144>>2]=H[f+128>>2];H[f+148>>2]=b;H[f+128>>2]=0;H[f+132>>2]=0;H[197455]=0;fa(1756,f+96|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break K}H[197455]=0;b=I[f+107|0];c=b<<24>>24<0;b=ca(1759,f+144|0,(c?H[f+96>>2]:f+96|0)|0,(c?H[f+100>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break J}H[f+168>>2]=H[b+8>>2];c=H[b+4>>2];H[f+160>>2]=H[b>>2];H[f+164>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+160|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break I}H[f+184>>2]=H[f+168>>2];H[f+168>>2]=0;b=H[f+164>>2];H[f+176>>2]=H[f+160>>2];H[f+180>>2]=b;H[f+160>>2]=0;H[f+164>>2]=0;H[197455]=0;b=da(1699,f+176|0,405612)|0;c=H[197455];H[197455]=0;if((c|0)==1){break H}H[f+200>>2]=H[b+8>>2];c=H[b+4>>2];H[f+192>>2]=H[b>>2];H[f+196>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;i=M[d>>3];k=M[e>>3];H[197455]=0;b=da(1699,f+192|0,(P(k-i)<=180?405804:405964)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break G}H[f+216>>2]=H[b+8>>2];c=H[b+4>>2];H[f+208>>2]=H[b>>2];H[f+212>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+208|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break F}H[f+232>>2]=H[f+216>>2];H[f+216>>2]=0;b=H[f+212>>2];H[f+224>>2]=H[f+208>>2];H[f+228>>2]=b;H[f+208>>2]=0;H[f+212>>2]=0;i=M[d>>3];k=M[e>>3];H[197455]=0;b=da(1699,f+224|0,(P(k-i)<=180?405964:405804)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break E}H[f+248>>2]=H[b+8>>2];c=H[b+4>>2];H[f+240>>2]=H[b>>2];H[f+244>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break D}H[f+264>>2]=H[f+248>>2];H[f+248>>2]=0;b=H[f+244>>2];H[f+256>>2]=H[f+240>>2];H[f+260>>2]=b;H[f+240>>2]=0;H[f+244>>2]=0;H[197455]=0;fa(1756,f+80|0,+(g*j+m),-1);b=H[197455];H[197455]=0;if((b|0)==1){break C}H[197455]=0;b=I[f+91|0];c=b<<24>>24<0;b=ca(1759,f+256|0,(c?H[f+80>>2]:f+80|0)|0,(c?H[f+84>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break B}H[f+280>>2]=H[b+8>>2];c=H[b+4>>2];H[f+272>>2]=H[b>>2];H[f+276>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+272|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break A}H[f+296>>2]=H[f+280>>2];H[f+280>>2]=0;b=H[f+276>>2];H[f+288>>2]=H[f+272>>2];H[f+292>>2]=b;H[f+272>>2]=0;H[f+276>>2]=0;H[197455]=0;fa(1756,f- -64|0,+(g*o+h),-1);b=H[197455];H[197455]=0;if((b|0)==1){break z}H[197455]=0;b=I[f+75|0];c=b<<24>>24<0;b=ca(1759,f+288|0,(c?H[f+64>>2]:f- -64|0)|0,(c?H[f+68>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break y}H[f+16>>2]=H[b+8>>2];c=H[b+4>>2];H[f+8>>2]=H[b>>2];H[f+12>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=I[f+19|0];c=b<<24>>24<0;ca(1759,f+304|0,(c?H[f+8>>2]:f+8|0)|0,(c?H[f+12>>2]:b)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break x}if(F[f+19|0]<0){Kb(H[f+8>>2])}if(F[f+75|0]<0){Kb(H[f+64>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+91|0]<0){Kb(H[f+80>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}if(F[f+235|0]<0){Kb(H[f+224>>2])}if(F[f+219|0]<0){Kb(H[f+208>>2])}if(F[f+203|0]<0){Kb(H[f+192>>2])}if(F[f+187|0]<0){Kb(H[f+176>>2])}if(F[f+171|0]<0){Kb(H[f+160>>2])}if(F[f+107|0]<0){Kb(H[f+96>>2])}if(F[f+155|0]<0){Kb(H[f+144>>2])}if(F[f+139|0]<0){Kb(H[f+128>>2])}if(F[f+123|0]<0){Kb(H[f+112>>2])}H[197455]=0;b=ca(1762,f+8|0,404840,f+304|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break h}H[f+56>>2]=b;H[197455]=0;H[f+60>>2]=1;b=H[f+60>>2];H[f>>2]=H[f+56>>2];H[f+4>>2]=b;d=da(1763,f+288|0,f|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[f+31|0]<0){Kb(H[f+20>>2])}if(F[f+19|0]<0){Kb(H[f+8>>2])}H[197455]=0;b=a+8|0;ba(1770,b|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break d}H[197455]=0;ba(1771,b|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break d}c=H[a+80>>2];e=H[H[c>>2]+104>>2];H[197455]=0;c=aa(e|0,c|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break d}if((c|0)!=1){break f}H[f+24>>2]=0;H[f+28>>2]=0;H[f+48>>2]=0;H[f+52>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+8>>2]=0;H[f+12>>2]=1072693248;H[f+40>>2]=0;H[f+44>>2]=0;H[f+32>>2]=0;H[f+36>>2]=1072693248;a=H[a+80>>2];c=H[H[a>>2]+68>>2];H[197455]=0;a=da(c|0,a|0,2)|0;c=H[197455];H[197455]=0;if((c|0)!=1){M[f+8>>3]=M[a>>3];M[f+16>>3]=M[a+8>>3];M[f+24>>3]=M[a+16>>3];g=M[a+24>>3];M[f+40>>3]=M[a+32>>3];h=M[a+40>>3];M[f+32>>3]=-g;M[f+48>>3]=h;H[197455]=0;ga(1766,b|0,d|0,f+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){break e}}b=$()|0;_()|0;break c}b=$()|0;_()|0;break O}b=$()|0;_()|0;break P}b=$()|0;_()|0;break Q}b=$()|0;_()|0;if(F[f+267|0]>=0){break Q}Kb(H[f+256>>2])}if(F[f+19|0]>=0){break P}Kb(H[f+8>>2])}if(F[f+299|0]>=0){break O}Kb(H[f+288>>2])}if(F[f+283|0]>=0){break a}Kb(H[f+272>>2]);ea(b|0);X()}b=$()|0;_()|0;break b}b=$()|0;_()|0;break i}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;break p}b=$()|0;_()|0;break q}b=$()|0;_()|0;break r}b=$()|0;_()|0;break s}b=$()|0;_()|0;break t}b=$()|0;_()|0;break u}b=$()|0;_()|0;break v}b=$()|0;_()|0;break w}b=$()|0;_()|0;if(F[f+19|0]>=0){break w}Kb(H[f+8>>2])}if(F[f+75|0]>=0){break v}Kb(H[f+64>>2])}if(F[f+299|0]>=0){break u}Kb(H[f+288>>2])}if(F[f+283|0]>=0){break t}Kb(H[f+272>>2])}if(F[f+91|0]>=0){break s}Kb(H[f+80>>2])}if(F[f+267|0]>=0){break r}Kb(H[f+256>>2])}if(F[f+251|0]>=0){break q}Kb(H[f+240>>2])}if(F[f+235|0]>=0){break p}Kb(H[f+224>>2])}if(F[f+219|0]>=0){break o}Kb(H[f+208>>2])}if(F[f+203|0]>=0){break n}Kb(H[f+192>>2])}if(F[f+187|0]>=0){break m}Kb(H[f+176>>2])}if(F[f+171|0]>=0){break l}Kb(H[f+160>>2])}if(F[f+107|0]>=0){break k}Kb(H[f+96>>2])}if(F[f+155|0]>=0){break j}Kb(H[f+144>>2])}if(F[f+139|0]>=0){break i}Kb(H[f+128>>2])}if(F[f+123|0]>=0){break b}Kb(H[f+112>>2]);break b}b=$()|0;_()|0;break b}b=$()|0;_()|0;Vb(f+8|0);break b}H[197455]=0;ga(1766,b|0,d|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break d}}H[197455]=0;ia(1764,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;a=aa(899,32)|0;c=H[197455];H[197455]=0;U:{V:{if((c|0)!=1){H[f+8>>2]=a;H[f+12>>2]=4;H[f+16>>2]=-2147483640;H[197455]=0;Mb(a,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break U}H[a+16>>2]=0;F[f+283|0]=0;H[197455]=0;H[f+272>>2]=0;ka(1767,b|0,f+8|0,d|0,f+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break V}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+19|0]<0){Kb(H[f+8>>2])}a=H[d>>2];if(a){b=H[d+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[d>>2]}H[d+4>>2]=a;Kb(b)}if(F[f+315|0]<0){Kb(H[f+304>>2])}xb=f+320|0;return}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+19|0]>=0){break c}Kb(H[f+8>>2]);break c}ha(0)|0;_()|0;Zb();X()}b=$()|0;_()|0}yc(d)}if(F[f+315|0]>=0){break a}Kb(H[f+304>>2])}ea(b|0);X()}function dA(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-320|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{b=H[c>>2];i:{if(H[c+4>>2]-b>>>0<32){break i}e=d+256|0;Ce(e,+H[b>>2],-1);H[197455]=0;b=ca(1758,e|0,0,405252)|0;e=H[197455];H[197455]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{if((e|0)!=1){H[d+280>>2]=H[b+8>>2];e=H[b+4>>2];H[d+272>>2]=H[b>>2];H[d+276>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,d+272|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break Z}H[d+296>>2]=H[d+280>>2];H[d+280>>2]=0;b=H[d+276>>2];H[d+288>>2]=H[d+272>>2];H[d+292>>2]=b;H[d+272>>2]=0;H[d+276>>2]=0;b=H[H[c>>2]+4>>2];H[197455]=0;fa(1756,d+240|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break Y}H[197455]=0;b=I[d+251|0];e=b<<24>>24<0;b=ca(1759,d+288|0,(e?H[d+240>>2]:d+240|0)|0,(e?H[d+244>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break X}H[d+24>>2]=H[b+8>>2];e=H[b+4>>2];H[d+16>>2]=H[b>>2];H[d+20>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,d+16|0,408496)|0;e=H[197455];H[197455]=0;if((e|0)==1){break W}H[d+312>>2]=H[b+8>>2];e=H[b+4>>2];H[d+304>>2]=H[b>>2];H[d+308>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}e=H[c>>2];if(H[c+4>>2]-e>>>0>=25){g=3;b=1;while(1){f=e;e=b<<3;f=H[f+e>>2];H[197455]=0;fa(1756,d+128|0,+(f|0),-1);f=H[197455];H[197455]=0;if((f|0)==1){break R}H[197455]=0;ba(1650,d+128|0,32);f=H[197455];H[197455]=0;if((f|0)==1){break Q}H[d+152>>2]=H[d+136>>2];H[d+136>>2]=0;f=H[d+132>>2];H[d+144>>2]=H[d+128>>2];H[d+148>>2]=f;H[d+128>>2]=0;H[d+132>>2]=0;e=H[(e+H[c>>2]|0)+4>>2];H[197455]=0;fa(1756,d+112|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break P}H[197455]=0;e=I[d+123|0];f=e<<24>>24<0;e=ca(1759,d+144|0,(f?H[d+112>>2]:d+112|0)|0,(f?H[d+116>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break O}H[d+168>>2]=H[e+8>>2];f=H[e+4>>2];H[d+160>>2]=H[e>>2];H[d+164>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+160|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break N}H[d+184>>2]=H[d+168>>2];H[d+168>>2]=0;e=H[d+164>>2];H[d+176>>2]=H[d+160>>2];H[d+180>>2]=e;H[d+160>>2]=0;H[d+164>>2]=0;f=b+1<<3;e=H[f+H[c>>2]>>2];H[197455]=0;fa(1756,d+96|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break M}H[197455]=0;e=I[d+107|0];h=e<<24>>24<0;e=ca(1759,d+176|0,(h?H[d+96>>2]:d+96|0)|0,(h?H[d+100>>2]:e)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break L}H[d+200>>2]=H[e+8>>2];h=H[e+4>>2];H[d+192>>2]=H[e>>2];H[d+196>>2]=h;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+192|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break K}H[d+216>>2]=H[d+200>>2];H[d+200>>2]=0;e=H[d+196>>2];H[d+208>>2]=H[d+192>>2];H[d+212>>2]=e;H[d+192>>2]=0;H[d+196>>2]=0;e=H[(f+H[c>>2]|0)+4>>2];H[197455]=0;fa(1756,d+80|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break J}H[197455]=0;e=I[d+91|0];f=e<<24>>24<0;e=ca(1759,d+208|0,(f?H[d+80>>2]:d+80|0)|0,(f?H[d+84>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break I}H[d+232>>2]=H[e+8>>2];f=H[e+4>>2];H[d+224>>2]=H[e>>2];H[d+228>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+224|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break H}H[d+248>>2]=H[d+232>>2];H[d+232>>2]=0;e=H[d+228>>2];H[d+240>>2]=H[d+224>>2];H[d+244>>2]=e;H[d+224>>2]=0;H[d+228>>2]=0;g=g<<3;e=H[g+H[c>>2]>>2];H[197455]=0;fa(1756,d- -64|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break G}H[197455]=0;e=I[d+75|0];f=e<<24>>24<0;e=ca(1759,d+240|0,(f?H[d+64>>2]:d- -64|0)|0,(f?H[d+68>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break F}H[d+264>>2]=H[e+8>>2];f=H[e+4>>2];H[d+256>>2]=H[e>>2];H[d+260>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+256|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break E}H[d+280>>2]=H[d+264>>2];H[d+264>>2]=0;e=H[d+260>>2];H[d+272>>2]=H[d+256>>2];H[d+276>>2]=e;H[d+256>>2]=0;H[d+260>>2]=0;e=H[(g+H[c>>2]|0)+4>>2];H[197455]=0;fa(1756,d+48|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break D}H[197455]=0;e=I[d+59|0];g=e<<24>>24<0;e=ca(1759,d+272|0,(g?H[d+48>>2]:d+48|0)|0,(g?H[d+52>>2]:e)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break C}H[d+296>>2]=H[e+8>>2];g=H[e+4>>2];H[d+288>>2]=H[e>>2];H[d+292>>2]=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+288|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break B}H[d+24>>2]=H[d+296>>2];H[d+296>>2]=0;e=H[d+292>>2];g=H[d+288>>2];H[d+16>>2]=g;H[d+20>>2]=e;H[d+288>>2]=0;H[d+292>>2]=0;H[197455]=0;f=g;e=F[d+27|0];g=(e|0)<0;ca(1759,d+304|0,(g?f:d+16|0)|0,(g?H[d+20>>2]:e&255)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break A}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+219|0]<0){Kb(H[d+208>>2])}if(F[d+203|0]<0){Kb(H[d+192>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+187|0]<0){Kb(H[d+176>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}g=b+5|0;b=b+3|0;e=H[c>>2];if(H[c+4>>2]-e>>3>>>0>g>>>0){continue}break}}H[197455]=0;b=ca(1762,d+16|0,404840,d+304|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break j}c=$()|0;_()|0;break c}c=$()|0;_()|0;break S}c=$()|0;_()|0;break T}c=$()|0;_()|0;break U}c=$()|0;_()|0;break V}c=$()|0;_()|0;if(F[d+27|0]>=0){break V}Kb(H[d+16>>2])}if(F[d+251|0]>=0){break U}Kb(H[d+240>>2])}if(F[d+299|0]>=0){break T}Kb(H[d+288>>2])}if(F[d+283|0]>=0){break S}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break b}Kb(H[d+256>>2]);ea(c|0);X()}c=$()|0;_()|0;break c}c=$()|0;_()|0;break k}c=$()|0;_()|0;break l}c=$()|0;_()|0;break m}c=$()|0;_()|0;break n}c=$()|0;_()|0;break o}c=$()|0;_()|0;break p}c=$()|0;_()|0;break q}c=$()|0;_()|0;break r}c=$()|0;_()|0;break s}c=$()|0;_()|0;break t}c=$()|0;_()|0;break u}c=$()|0;_()|0;break v}c=$()|0;_()|0;break w}c=$()|0;_()|0;break x}c=$()|0;_()|0;break y}c=$()|0;_()|0;break z}c=$()|0;_()|0;if(F[d+27|0]>=0){break z}Kb(H[d+16>>2])}if(F[d+299|0]>=0){break y}Kb(H[d+288>>2])}if(F[d+59|0]>=0){break x}Kb(H[d+48>>2])}if(F[d+283|0]>=0){break w}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break v}Kb(H[d+256>>2])}if(F[d+75|0]>=0){break u}Kb(H[d+64>>2])}if(F[d+251|0]>=0){break t}Kb(H[d+240>>2])}if(F[d+235|0]>=0){break s}Kb(H[d+224>>2])}if(F[d+91|0]>=0){break r}Kb(H[d+80>>2])}if(F[d+219|0]>=0){break q}Kb(H[d+208>>2])}if(F[d+203|0]>=0){break p}Kb(H[d+192>>2])}if(F[d+107|0]>=0){break o}Kb(H[d+96>>2])}if(F[d+187|0]>=0){break n}Kb(H[d+176>>2])}if(F[d+171|0]>=0){break m}Kb(H[d+160>>2])}if(F[d+123|0]>=0){break l}Kb(H[d+112>>2])}if(F[d+155|0]>=0){break k}Kb(H[d+144>>2])}if(F[d+139|0]>=0){break c}Kb(H[d+128>>2]);break c}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+288|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ba(1771,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[d+16>>2]=b;H[d+20>>2]=4;H[d+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[d+283|0]=0;H[197455]=0;H[d+272>>2]=0;ka(1767,a|0,d+16|0,e|0,d+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){c=H[e+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((b|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+315|0]>=0){break i}Kb(H[d+304>>2])}xb=d+320|0;return}c=$()|0;_()|0;Vb(d+16|0);break c}c=$()|0;_()|0;break d}c=$()|0;_()|0;break d}c=$()|0;_()|0;if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+27|0]>=0){break d}Kb(H[d+16>>2])}yc(e)}if(F[d+315|0]>=0){break b}Kb(H[d+304>>2])}ea(c|0);X()}ha(0)|0;_()|0;Zb();X()}function cA(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-320|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{b=H[c>>2];i:{if(H[c+4>>2]-b>>>0<16){break i}e=d+256|0;Ce(e,+G[b>>1],-1);H[197455]=0;b=ca(1758,e|0,0,405252)|0;e=H[197455];H[197455]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{if((e|0)!=1){H[d+280>>2]=H[b+8>>2];e=H[b+4>>2];H[d+272>>2]=H[b>>2];H[d+276>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,d+272|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break Z}H[d+296>>2]=H[d+280>>2];H[d+280>>2]=0;b=H[d+276>>2];H[d+288>>2]=H[d+272>>2];H[d+292>>2]=b;H[d+272>>2]=0;H[d+276>>2]=0;b=G[H[c>>2]+2>>1];H[197455]=0;fa(1756,d+240|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break Y}H[197455]=0;b=I[d+251|0];e=b<<24>>24<0;b=ca(1759,d+288|0,(e?H[d+240>>2]:d+240|0)|0,(e?H[d+244>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break X}H[d+24>>2]=H[b+8>>2];e=H[b+4>>2];H[d+16>>2]=H[b>>2];H[d+20>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,d+16|0,408496)|0;e=H[197455];H[197455]=0;if((e|0)==1){break W}H[d+312>>2]=H[b+8>>2];e=H[b+4>>2];H[d+304>>2]=H[b>>2];H[d+308>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}e=H[c>>2];if(H[c+4>>2]-e>>>0>=13){g=3;b=1;while(1){f=e;e=b<<2;f=G[f+e>>1];H[197455]=0;fa(1756,d+128|0,+(f|0),-1);f=H[197455];H[197455]=0;if((f|0)==1){break R}H[197455]=0;ba(1650,d+128|0,32);f=H[197455];H[197455]=0;if((f|0)==1){break Q}H[d+152>>2]=H[d+136>>2];H[d+136>>2]=0;f=H[d+132>>2];H[d+144>>2]=H[d+128>>2];H[d+148>>2]=f;H[d+128>>2]=0;H[d+132>>2]=0;e=G[(e+H[c>>2]|0)+2>>1];H[197455]=0;fa(1756,d+112|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break P}H[197455]=0;e=I[d+123|0];f=e<<24>>24<0;e=ca(1759,d+144|0,(f?H[d+112>>2]:d+112|0)|0,(f?H[d+116>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break O}H[d+168>>2]=H[e+8>>2];f=H[e+4>>2];H[d+160>>2]=H[e>>2];H[d+164>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+160|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break N}H[d+184>>2]=H[d+168>>2];H[d+168>>2]=0;e=H[d+164>>2];H[d+176>>2]=H[d+160>>2];H[d+180>>2]=e;H[d+160>>2]=0;H[d+164>>2]=0;f=b+1<<2;e=G[f+H[c>>2]>>1];H[197455]=0;fa(1756,d+96|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break M}H[197455]=0;e=I[d+107|0];h=e<<24>>24<0;e=ca(1759,d+176|0,(h?H[d+96>>2]:d+96|0)|0,(h?H[d+100>>2]:e)|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break L}H[d+200>>2]=H[e+8>>2];h=H[e+4>>2];H[d+192>>2]=H[e>>2];H[d+196>>2]=h;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+192|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break K}H[d+216>>2]=H[d+200>>2];H[d+200>>2]=0;e=H[d+196>>2];H[d+208>>2]=H[d+192>>2];H[d+212>>2]=e;H[d+192>>2]=0;H[d+196>>2]=0;e=G[(f+H[c>>2]|0)+2>>1];H[197455]=0;fa(1756,d+80|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break J}H[197455]=0;e=I[d+91|0];f=e<<24>>24<0;e=ca(1759,d+208|0,(f?H[d+80>>2]:d+80|0)|0,(f?H[d+84>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break I}H[d+232>>2]=H[e+8>>2];f=H[e+4>>2];H[d+224>>2]=H[e>>2];H[d+228>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+224|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break H}H[d+248>>2]=H[d+232>>2];H[d+232>>2]=0;e=H[d+228>>2];H[d+240>>2]=H[d+224>>2];H[d+244>>2]=e;H[d+224>>2]=0;H[d+228>>2]=0;g=g<<2;e=G[g+H[c>>2]>>1];H[197455]=0;fa(1756,d- -64|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break G}H[197455]=0;e=I[d+75|0];f=e<<24>>24<0;e=ca(1759,d+240|0,(f?H[d+64>>2]:d- -64|0)|0,(f?H[d+68>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break F}H[d+264>>2]=H[e+8>>2];f=H[e+4>>2];H[d+256>>2]=H[e>>2];H[d+260>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+256|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break E}H[d+280>>2]=H[d+264>>2];H[d+264>>2]=0;e=H[d+260>>2];H[d+272>>2]=H[d+256>>2];H[d+276>>2]=e;H[d+256>>2]=0;H[d+260>>2]=0;e=G[(g+H[c>>2]|0)+2>>1];H[197455]=0;fa(1756,d+48|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break D}H[197455]=0;e=I[d+59|0];g=e<<24>>24<0;e=ca(1759,d+272|0,(g?H[d+48>>2]:d+48|0)|0,(g?H[d+52>>2]:e)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break C}H[d+296>>2]=H[e+8>>2];g=H[e+4>>2];H[d+288>>2]=H[e>>2];H[d+292>>2]=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+288|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break B}H[d+24>>2]=H[d+296>>2];H[d+296>>2]=0;e=H[d+292>>2];g=H[d+288>>2];H[d+16>>2]=g;H[d+20>>2]=e;H[d+288>>2]=0;H[d+292>>2]=0;H[197455]=0;f=g;e=F[d+27|0];g=(e|0)<0;ca(1759,d+304|0,(g?f:d+16|0)|0,(g?H[d+20>>2]:e&255)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break A}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+219|0]<0){Kb(H[d+208>>2])}if(F[d+203|0]<0){Kb(H[d+192>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+187|0]<0){Kb(H[d+176>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}g=b+5|0;b=b+3|0;e=H[c>>2];if(H[c+4>>2]-e>>2>>>0>g>>>0){continue}break}}H[197455]=0;b=ca(1762,d+16|0,404840,d+304|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break j}c=$()|0;_()|0;break c}c=$()|0;_()|0;break S}c=$()|0;_()|0;break T}c=$()|0;_()|0;break U}c=$()|0;_()|0;break V}c=$()|0;_()|0;if(F[d+27|0]>=0){break V}Kb(H[d+16>>2])}if(F[d+251|0]>=0){break U}Kb(H[d+240>>2])}if(F[d+299|0]>=0){break T}Kb(H[d+288>>2])}if(F[d+283|0]>=0){break S}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break b}Kb(H[d+256>>2]);ea(c|0);X()}c=$()|0;_()|0;break c}c=$()|0;_()|0;break k}c=$()|0;_()|0;break l}c=$()|0;_()|0;break m}c=$()|0;_()|0;break n}c=$()|0;_()|0;break o}c=$()|0;_()|0;break p}c=$()|0;_()|0;break q}c=$()|0;_()|0;break r}c=$()|0;_()|0;break s}c=$()|0;_()|0;break t}c=$()|0;_()|0;break u}c=$()|0;_()|0;break v}c=$()|0;_()|0;break w}c=$()|0;_()|0;break x}c=$()|0;_()|0;break y}c=$()|0;_()|0;break z}c=$()|0;_()|0;if(F[d+27|0]>=0){break z}Kb(H[d+16>>2])}if(F[d+299|0]>=0){break y}Kb(H[d+288>>2])}if(F[d+59|0]>=0){break x}Kb(H[d+48>>2])}if(F[d+283|0]>=0){break w}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break v}Kb(H[d+256>>2])}if(F[d+75|0]>=0){break u}Kb(H[d+64>>2])}if(F[d+251|0]>=0){break t}Kb(H[d+240>>2])}if(F[d+235|0]>=0){break s}Kb(H[d+224>>2])}if(F[d+91|0]>=0){break r}Kb(H[d+80>>2])}if(F[d+219|0]>=0){break q}Kb(H[d+208>>2])}if(F[d+203|0]>=0){break p}Kb(H[d+192>>2])}if(F[d+107|0]>=0){break o}Kb(H[d+96>>2])}if(F[d+187|0]>=0){break n}Kb(H[d+176>>2])}if(F[d+171|0]>=0){break m}Kb(H[d+160>>2])}if(F[d+123|0]>=0){break l}Kb(H[d+112>>2])}if(F[d+155|0]>=0){break k}Kb(H[d+144>>2])}if(F[d+139|0]>=0){break c}Kb(H[d+128>>2]);break c}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+288|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ba(1771,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[d+16>>2]=b;H[d+20>>2]=4;H[d+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[d+283|0]=0;H[197455]=0;H[d+272>>2]=0;ka(1767,a|0,d+16|0,e|0,d+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){c=H[e+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((b|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+315|0]>=0){break i}Kb(H[d+304>>2])}xb=d+320|0;return}c=$()|0;_()|0;Vb(d+16|0);break c}c=$()|0;_()|0;break d}c=$()|0;_()|0;break d}c=$()|0;_()|0;if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+27|0]>=0){break d}Kb(H[d+16>>2])}yc(e)}if(F[d+315|0]>=0){break b}Kb(H[d+304>>2])}ea(c|0);X()}ha(0)|0;_()|0;Zb();X()}function B0(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-320|0;xb=f;l=M[e+24>>3];j=M[e+8>>3];i=M[e+16>>3];h=M[e>>3];b=H[a+80>>2];a:{if(!b){break a}if(!(M[(zb[H[H[b>>2]+68>>2]](b,2)|0)+24>>3]<0)){break a}d=-d;c=-c}b=f+272|0;Ce(b,h,-1);H[197455]=0;b=ca(1758,b|0,0,405252)|0;e=H[197455];H[197455]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{if((e|0)!=1){H[f+296>>2]=H[b+8>>2];e=H[b+4>>2];H[f+288>>2]=H[b>>2];H[f+292>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+288|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break U}H[f+16>>2]=H[f+296>>2];H[f+296>>2]=0;b=H[f+292>>2];H[f+8>>2]=H[f+288>>2];H[f+12>>2]=b;H[f+288>>2]=0;H[f+292>>2]=0;H[197455]=0;fa(1756,f+256|0,+j,-1);b=H[197455];H[197455]=0;if((b|0)==1){break T}H[197455]=0;b=I[f+267|0];e=b<<24>>24<0;b=ca(1759,f+8|0,(e?H[f+256>>2]:f+256|0)|0,(e?H[f+260>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break S}H[f+312>>2]=H[b+8>>2];e=H[b+4>>2];H[f+304>>2]=H[b>>2];H[f+308>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+19|0]<0){Kb(H[f+8>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}H[197455]=0;i=h+i;fa(1756,f+112|0,+(P(i-h)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;b=ca(1758,f+112|0,0,405424)|0;e=H[197455];H[197455]=0;if((e|0)==1){break N}H[f+136>>2]=H[b+8>>2];e=H[b+4>>2];H[f+128>>2]=H[b>>2];H[f+132>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+128|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break M}H[f+152>>2]=H[f+136>>2];H[f+136>>2]=0;b=H[f+132>>2];H[f+144>>2]=H[f+128>>2];H[f+148>>2]=b;H[f+128>>2]=0;H[f+132>>2]=0;H[197455]=0;h=j+l;fa(1756,f+96|0,+(P(h-j)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break L}H[197455]=0;b=I[f+107|0];e=b<<24>>24<0;b=ca(1759,f+144|0,(e?H[f+96>>2]:f+96|0)|0,(e?H[f+100>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break K}H[f+168>>2]=H[b+8>>2];e=H[b+4>>2];H[f+160>>2]=H[b>>2];H[f+164>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+160|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break J}H[f+184>>2]=H[f+168>>2];H[f+168>>2]=0;b=H[f+164>>2];H[f+176>>2]=H[f+160>>2];H[f+180>>2]=b;H[f+160>>2]=0;H[f+164>>2]=0;H[197455]=0;b=da(1699,f+176|0,405612)|0;e=H[197455];H[197455]=0;if((e|0)==1){break I}H[f+200>>2]=H[b+8>>2];e=H[b+4>>2];H[f+192>>2]=H[b>>2];H[f+196>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;c=P(d-c);b=da(1699,f+192|0,(c<=180?405804:405964)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break H}H[f+216>>2]=H[b+8>>2];e=H[b+4>>2];H[f+208>>2]=H[b>>2];H[f+212>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+208|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break G}H[f+232>>2]=H[f+216>>2];H[f+216>>2]=0;b=H[f+212>>2];H[f+224>>2]=H[f+208>>2];H[f+228>>2]=b;H[f+208>>2]=0;H[f+212>>2]=0;H[197455]=0;b=da(1699,f+224|0,(c<=180?405964:405804)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break F}H[f+248>>2]=H[b+8>>2];e=H[b+4>>2];H[f+240>>2]=H[b>>2];H[f+244>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+240|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break E}H[f+264>>2]=H[f+248>>2];H[f+248>>2]=0;b=H[f+244>>2];H[f+256>>2]=H[f+240>>2];H[f+260>>2]=b;H[f+240>>2]=0;H[f+244>>2]=0;H[197455]=0;fa(1756,f+80|0,+i,-1);b=H[197455];H[197455]=0;if((b|0)==1){break D}H[197455]=0;b=I[f+91|0];e=b<<24>>24<0;b=ca(1759,f+256|0,(e?H[f+80>>2]:f+80|0)|0,(e?H[f+84>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break C}H[f+280>>2]=H[b+8>>2];e=H[b+4>>2];H[f+272>>2]=H[b>>2];H[f+276>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,f+272|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break B}H[f+296>>2]=H[f+280>>2];H[f+280>>2]=0;b=H[f+276>>2];H[f+288>>2]=H[f+272>>2];H[f+292>>2]=b;H[f+272>>2]=0;H[f+276>>2]=0;H[197455]=0;fa(1756,f- -64|0,+h,-1);b=H[197455];H[197455]=0;if((b|0)==1){break A}H[197455]=0;b=I[f+75|0];e=b<<24>>24<0;b=ca(1759,f+288|0,(e?H[f+64>>2]:f- -64|0)|0,(e?H[f+68>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break z}H[f+16>>2]=H[b+8>>2];e=H[b+4>>2];H[f+8>>2]=H[b>>2];H[f+12>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=I[f+19|0];e=b<<24>>24<0;ca(1759,f+304|0,(e?H[f+8>>2]:f+8|0)|0,(e?H[f+12>>2]:b)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break y}if(F[f+19|0]<0){Kb(H[f+8>>2])}if(F[f+75|0]<0){Kb(H[f+64>>2])}if(F[f+299|0]<0){Kb(H[f+288>>2])}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+91|0]<0){Kb(H[f+80>>2])}if(F[f+267|0]<0){Kb(H[f+256>>2])}if(F[f+251|0]<0){Kb(H[f+240>>2])}if(F[f+235|0]<0){Kb(H[f+224>>2])}if(F[f+219|0]<0){Kb(H[f+208>>2])}if(F[f+203|0]<0){Kb(H[f+192>>2])}if(F[f+187|0]<0){Kb(H[f+176>>2])}if(F[f+171|0]<0){Kb(H[f+160>>2])}if(F[f+107|0]<0){Kb(H[f+96>>2])}if(F[f+155|0]<0){Kb(H[f+144>>2])}if(F[f+139|0]<0){Kb(H[f+128>>2])}if(F[f+123|0]<0){Kb(H[f+112>>2])}H[197455]=0;b=ca(1762,f+8|0,404840,f+304|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break i}H[f+56>>2]=b;H[197455]=0;H[f+60>>2]=1;b=H[f+60>>2];H[f>>2]=H[f+56>>2];H[f+4>>2]=b;g=da(1763,f+288|0,f|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[f+31|0]<0){Kb(H[f+20>>2])}b=a+8|0;if(F[f+19|0]<0){Kb(H[f+8>>2])}H[197455]=0;ba(1770,b|0,g|0);e=H[197455];H[197455]=0;if((e|0)==1){break e}H[197455]=0;ba(1771,b|0,g|0);e=H[197455];H[197455]=0;if((e|0)==1){break e}e=H[a+80>>2];k=H[H[e>>2]+104>>2];H[197455]=0;e=aa(k|0,e|0)|0;k=H[197455];H[197455]=0;if((k|0)==1){break e}if((e|0)!=1){break g}H[f+24>>2]=0;H[f+28>>2]=0;H[f+48>>2]=0;H[f+52>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+8>>2]=0;H[f+12>>2]=1072693248;H[f+40>>2]=0;H[f+44>>2]=0;H[f+32>>2]=0;H[f+36>>2]=1072693248;a=H[a+80>>2];e=H[H[a>>2]+68>>2];H[197455]=0;a=da(e|0,a|0,2)|0;e=H[197455];H[197455]=0;if((e|0)!=1){M[f+8>>3]=M[a>>3];M[f+16>>3]=M[a+8>>3];M[f+24>>3]=M[a+16>>3];c=M[a+24>>3];M[f+40>>3]=M[a+32>>3];d=M[a+40>>3];M[f+32>>3]=-c;M[f+48>>3]=d;H[197455]=0;ga(1766,b|0,g|0,f+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){break f}}e=$()|0;_()|0;break d}e=$()|0;_()|0;break P}e=$()|0;_()|0;break Q}e=$()|0;_()|0;break R}e=$()|0;_()|0;if(F[f+267|0]>=0){break R}Kb(H[f+256>>2])}if(F[f+19|0]>=0){break Q}Kb(H[f+8>>2])}if(F[f+299|0]>=0){break P}Kb(H[f+288>>2])}if(F[f+283|0]>=0){break b}Kb(H[f+272>>2]);ea(e|0);X()}e=$()|0;_()|0;break c}e=$()|0;_()|0;break j}e=$()|0;_()|0;break k}e=$()|0;_()|0;break l}e=$()|0;_()|0;break m}e=$()|0;_()|0;break n}e=$()|0;_()|0;break o}e=$()|0;_()|0;break p}e=$()|0;_()|0;break q}e=$()|0;_()|0;break r}e=$()|0;_()|0;break s}e=$()|0;_()|0;break t}e=$()|0;_()|0;break u}e=$()|0;_()|0;break v}e=$()|0;_()|0;break w}e=$()|0;_()|0;break x}e=$()|0;_()|0;if(F[f+19|0]>=0){break x}Kb(H[f+8>>2])}if(F[f+75|0]>=0){break w}Kb(H[f+64>>2])}if(F[f+299|0]>=0){break v}Kb(H[f+288>>2])}if(F[f+283|0]>=0){break u}Kb(H[f+272>>2])}if(F[f+91|0]>=0){break t}Kb(H[f+80>>2])}if(F[f+267|0]>=0){break s}Kb(H[f+256>>2])}if(F[f+251|0]>=0){break r}Kb(H[f+240>>2])}if(F[f+235|0]>=0){break q}Kb(H[f+224>>2])}if(F[f+219|0]>=0){break p}Kb(H[f+208>>2])}if(F[f+203|0]>=0){break o}Kb(H[f+192>>2])}if(F[f+187|0]>=0){break n}Kb(H[f+176>>2])}if(F[f+171|0]>=0){break m}Kb(H[f+160>>2])}if(F[f+107|0]>=0){break l}Kb(H[f+96>>2])}if(F[f+155|0]>=0){break k}Kb(H[f+144>>2])}if(F[f+139|0]>=0){break j}Kb(H[f+128>>2])}if(F[f+123|0]>=0){break c}Kb(H[f+112>>2]);break c}e=$()|0;_()|0;break c}e=$()|0;_()|0;Vb(f+8|0);break c}H[197455]=0;ga(1766,b|0,g|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break e}}H[197455]=0;ia(1764,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}H[197455]=0;a=aa(899,32)|0;e=H[197455];H[197455]=0;V:{W:{if((e|0)!=1){H[f+8>>2]=a;H[f+12>>2]=4;H[f+16>>2]=-2147483640;H[197455]=0;Mb(a,405068,4);e=H[197455];H[197455]=0;if((e|0)==1){break V}H[a+16>>2]=0;F[f+283|0]=0;H[197455]=0;H[f+272>>2]=0;ka(1767,b|0,f+8|0,g|0,f+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break W}if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+19|0]<0){Kb(H[f+8>>2])}a=H[g>>2];if(a){e=H[g+4>>2];if((a|0)==(e|0)){b=a}else{while(1){if(F[e-1|0]<0){Kb(H[e-12>>2])}b=e-24|0;if(F[e-13|0]<0){Kb(H[b>>2])}e=b;if((b|0)!=(a|0)){continue}break}b=H[g>>2]}H[g+4>>2]=a;Kb(b)}if(F[f+315|0]<0){Kb(H[f+304>>2])}xb=f+320|0;return}e=$()|0;_()|0;break d}e=$()|0;_()|0;if(F[f+283|0]<0){Kb(H[f+272>>2])}if(F[f+19|0]>=0){break d}Kb(H[f+8>>2]);break d}ha(0)|0;_()|0;Zb();X()}e=$()|0;_()|0}yc(g)}if(F[f+315|0]>=0){break b}Kb(H[f+304>>2])}ea(e|0);X()}function A0(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;d=xb-320|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{b=H[c>>2];i:{if(H[c+4>>2]-b>>>0<64){break i}e=d+256|0;Ce(e,M[b>>3],-1);H[197455]=0;b=ca(1758,e|0,0,405252)|0;e=H[197455];H[197455]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{if((e|0)!=1){H[d+280>>2]=H[b+8>>2];e=H[b+4>>2];H[d+272>>2]=H[b>>2];H[d+276>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,d+272|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break Z}H[d+296>>2]=H[d+280>>2];H[d+280>>2]=0;b=H[d+276>>2];H[d+288>>2]=H[d+272>>2];H[d+292>>2]=b;H[d+272>>2]=0;H[d+276>>2]=0;h=M[H[c>>2]+8>>3];H[197455]=0;fa(1756,d+240|0,+h,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Y}H[197455]=0;b=I[d+251|0];e=b<<24>>24<0;b=ca(1759,d+288|0,(e?H[d+240>>2]:d+240|0)|0,(e?H[d+244>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break X}H[d+24>>2]=H[b+8>>2];e=H[b+4>>2];H[d+16>>2]=H[b>>2];H[d+20>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,d+16|0,408496)|0;e=H[197455];H[197455]=0;if((e|0)==1){break W}H[d+312>>2]=H[b+8>>2];e=H[b+4>>2];H[d+304>>2]=H[b>>2];H[d+308>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}e=H[c>>2];if(H[c+4>>2]-e>>>0>=49){g=3;b=1;while(1){f=e;e=b<<4;h=M[f+e>>3];H[197455]=0;fa(1756,d+128|0,+h,-1);f=H[197455];H[197455]=0;if((f|0)==1){break R}H[197455]=0;ba(1650,d+128|0,32);f=H[197455];H[197455]=0;if((f|0)==1){break Q}H[d+152>>2]=H[d+136>>2];H[d+136>>2]=0;f=H[d+132>>2];H[d+144>>2]=H[d+128>>2];H[d+148>>2]=f;H[d+128>>2]=0;H[d+132>>2]=0;h=M[(e+H[c>>2]|0)+8>>3];H[197455]=0;fa(1756,d+112|0,+h,-1);e=H[197455];H[197455]=0;if((e|0)==1){break P}H[197455]=0;e=I[d+123|0];f=e<<24>>24<0;e=ca(1759,d+144|0,(f?H[d+112>>2]:d+112|0)|0,(f?H[d+116>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break O}H[d+168>>2]=H[e+8>>2];f=H[e+4>>2];H[d+160>>2]=H[e>>2];H[d+164>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+160|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break N}H[d+184>>2]=H[d+168>>2];H[d+168>>2]=0;e=H[d+164>>2];H[d+176>>2]=H[d+160>>2];H[d+180>>2]=e;H[d+160>>2]=0;H[d+164>>2]=0;f=b+1<<4;h=M[f+H[c>>2]>>3];H[197455]=0;fa(1756,d+96|0,+h,-1);e=H[197455];H[197455]=0;if((e|0)==1){break M}H[197455]=0;e=I[d+107|0];i=e<<24>>24<0;e=ca(1759,d+176|0,(i?H[d+96>>2]:d+96|0)|0,(i?H[d+100>>2]:e)|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break L}H[d+200>>2]=H[e+8>>2];i=H[e+4>>2];H[d+192>>2]=H[e>>2];H[d+196>>2]=i;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+192|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break K}H[d+216>>2]=H[d+200>>2];H[d+200>>2]=0;e=H[d+196>>2];H[d+208>>2]=H[d+192>>2];H[d+212>>2]=e;H[d+192>>2]=0;H[d+196>>2]=0;h=M[(f+H[c>>2]|0)+8>>3];H[197455]=0;fa(1756,d+80|0,+h,-1);e=H[197455];H[197455]=0;if((e|0)==1){break J}H[197455]=0;e=I[d+91|0];f=e<<24>>24<0;e=ca(1759,d+208|0,(f?H[d+80>>2]:d+80|0)|0,(f?H[d+84>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break I}H[d+232>>2]=H[e+8>>2];f=H[e+4>>2];H[d+224>>2]=H[e>>2];H[d+228>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+224|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break H}H[d+248>>2]=H[d+232>>2];H[d+232>>2]=0;e=H[d+228>>2];H[d+240>>2]=H[d+224>>2];H[d+244>>2]=e;H[d+224>>2]=0;H[d+228>>2]=0;g=g<<4;h=M[g+H[c>>2]>>3];H[197455]=0;fa(1756,d- -64|0,+h,-1);e=H[197455];H[197455]=0;if((e|0)==1){break G}H[197455]=0;e=I[d+75|0];f=e<<24>>24<0;e=ca(1759,d+240|0,(f?H[d+64>>2]:d- -64|0)|0,(f?H[d+68>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break F}H[d+264>>2]=H[e+8>>2];f=H[e+4>>2];H[d+256>>2]=H[e>>2];H[d+260>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+256|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break E}H[d+280>>2]=H[d+264>>2];H[d+264>>2]=0;e=H[d+260>>2];H[d+272>>2]=H[d+256>>2];H[d+276>>2]=e;H[d+256>>2]=0;H[d+260>>2]=0;h=M[(g+H[c>>2]|0)+8>>3];H[197455]=0;fa(1756,d+48|0,+h,-1);e=H[197455];H[197455]=0;if((e|0)==1){break D}H[197455]=0;e=I[d+59|0];g=e<<24>>24<0;e=ca(1759,d+272|0,(g?H[d+48>>2]:d+48|0)|0,(g?H[d+52>>2]:e)|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break C}H[d+296>>2]=H[e+8>>2];g=H[e+4>>2];H[d+288>>2]=H[e>>2];H[d+292>>2]=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+288|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break B}H[d+24>>2]=H[d+296>>2];H[d+296>>2]=0;e=H[d+292>>2];g=H[d+288>>2];H[d+16>>2]=g;H[d+20>>2]=e;H[d+288>>2]=0;H[d+292>>2]=0;H[197455]=0;f=g;e=F[d+27|0];g=(e|0)<0;ca(1759,d+304|0,(g?f:d+16|0)|0,(g?H[d+20>>2]:e&255)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break A}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+299|0]<0){Kb(H[d+288>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+267|0]<0){Kb(H[d+256>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+251|0]<0){Kb(H[d+240>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+219|0]<0){Kb(H[d+208>>2])}if(F[d+203|0]<0){Kb(H[d+192>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+187|0]<0){Kb(H[d+176>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}g=b+5|0;b=b+3|0;e=H[c>>2];if(H[c+4>>2]-e>>4>>>0>g>>>0){continue}break}}H[197455]=0;b=ca(1762,d+16|0,404840,d+304|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break j}c=$()|0;_()|0;break c}c=$()|0;_()|0;break S}c=$()|0;_()|0;break T}c=$()|0;_()|0;break U}c=$()|0;_()|0;break V}c=$()|0;_()|0;if(F[d+27|0]>=0){break V}Kb(H[d+16>>2])}if(F[d+251|0]>=0){break U}Kb(H[d+240>>2])}if(F[d+299|0]>=0){break T}Kb(H[d+288>>2])}if(F[d+283|0]>=0){break S}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break b}Kb(H[d+256>>2]);ea(c|0);X()}c=$()|0;_()|0;break c}c=$()|0;_()|0;break k}c=$()|0;_()|0;break l}c=$()|0;_()|0;break m}c=$()|0;_()|0;break n}c=$()|0;_()|0;break o}c=$()|0;_()|0;break p}c=$()|0;_()|0;break q}c=$()|0;_()|0;break r}c=$()|0;_()|0;break s}c=$()|0;_()|0;break t}c=$()|0;_()|0;break u}c=$()|0;_()|0;break v}c=$()|0;_()|0;break w}c=$()|0;_()|0;break x}c=$()|0;_()|0;break y}c=$()|0;_()|0;break z}c=$()|0;_()|0;if(F[d+27|0]>=0){break z}Kb(H[d+16>>2])}if(F[d+299|0]>=0){break y}Kb(H[d+288>>2])}if(F[d+59|0]>=0){break x}Kb(H[d+48>>2])}if(F[d+283|0]>=0){break w}Kb(H[d+272>>2])}if(F[d+267|0]>=0){break v}Kb(H[d+256>>2])}if(F[d+75|0]>=0){break u}Kb(H[d+64>>2])}if(F[d+251|0]>=0){break t}Kb(H[d+240>>2])}if(F[d+235|0]>=0){break s}Kb(H[d+224>>2])}if(F[d+91|0]>=0){break r}Kb(H[d+80>>2])}if(F[d+219|0]>=0){break q}Kb(H[d+208>>2])}if(F[d+203|0]>=0){break p}Kb(H[d+192>>2])}if(F[d+107|0]>=0){break o}Kb(H[d+96>>2])}if(F[d+187|0]>=0){break n}Kb(H[d+176>>2])}if(F[d+171|0]>=0){break m}Kb(H[d+160>>2])}if(F[d+123|0]>=0){break l}Kb(H[d+112>>2])}if(F[d+155|0]>=0){break k}Kb(H[d+144>>2])}if(F[d+139|0]>=0){break c}Kb(H[d+128>>2]);break c}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+288|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ba(1771,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[d+16>>2]=b;H[d+20>>2]=4;H[d+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[d+283|0]=0;H[197455]=0;H[d+272>>2]=0;ka(1767,a|0,d+16|0,e|0,d+272|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){c=H[e+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((b|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+315|0]>=0){break i}Kb(H[d+304>>2])}xb=d+320|0;return}c=$()|0;_()|0;Vb(d+16|0);break c}c=$()|0;_()|0;break d}c=$()|0;_()|0;break d}c=$()|0;_()|0;if(F[d+283|0]<0){Kb(H[d+272>>2])}if(F[d+27|0]>=0){break d}Kb(H[d+16>>2])}yc(e)}if(F[d+315|0]>=0){break b}Kb(H[d+304>>2])}ea(c|0);X()}ha(0)|0;_()|0;Zb();X()}function hj(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=xb-16|0;xb=k;e=-1;f=c+1|0;h=Qb((f|0)!=(f&1073741823)?-1:f<<2);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{switch(d-128|0){default:switch(d|0){case 0:break n;case 2:break i;default:break h};case 35:if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+441456>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+441456>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+441456>>1]}H[d>>2]=b;break a;case 58:if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+441008>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+441008>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+441008>>1]}H[d>>2]=b;break a;case 50:if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+440560>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+440560>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+440560>>1]}H[d>>2]=b;break a;case 49:if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+440112>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+440112>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+440112>>1]}H[d>>2]=b;break a;case 34:if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+439664>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+439664>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+439664>>1]}H[d>>2]=b;break a;case 127:break j;case 94:break k;case 110:break l;case 76:break m;case 33:break o;case 6:break c;case 1:break d;case 8:break e;case 2:break f;case 0:break g;case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:break h}}if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+439216>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+439216>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+439216>>1]}H[d>>2]=b;break a}if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+438768>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+438768>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+438768>>1]}H[d>>2]=b;break a}if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+438320>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+438320>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+438320>>1]}H[d>>2]=b;break a}if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+437872>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+437872>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+437872>>1]}H[d>>2]=b;break a}if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+437424>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+437424>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+437424>>1]}H[d>>2]=b;break a}if((c|0)<=0){break a}e=0;if((c|0)!=1){i=c&-2;d=0;while(1){g=(e<<2)+h|0;f=I[b+e|0];if(f>>>0>=32){f=J[(f<<1)+436976>>1]}H[g>>2]=f;g=e|1;f=I[g+b|0];if(f>>>0>=32){f=J[(f<<1)+436976>>1]}H[(g<<2)+h>>2]=f;e=e+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}d=(e<<2)+h|0;b=I[b+e|0];if(b>>>0>=32){b=J[(b<<1)+436976>>1]}H[d>>2]=b;break a}if((c|0)<=0){break a}f=0;e=0;if(c-1>>>0>=3){i=c&-4;d=0;while(1){H[(e<<2)+h>>2]=I[b+e|0]|61440;g=e|1;H[(g<<2)+h>>2]=I[b+g|0]|61440;g=e|2;H[(g<<2)+h>>2]=I[b+g|0]|61440;g=e|3;H[(g<<2)+h>>2]=I[b+g|0]|61440;e=e+4|0;d=d+4|0;if((i|0)!=(d|0)){continue}break}}d=c&3;if(!d){break a}while(1){H[(e<<2)+h>>2]=I[b+e|0]|61440;e=e+1|0;f=f+1|0;if((d|0)!=(f|0)){continue}break}break a}if((c|0)<=0){break a}f=0;e=0;if(c-1>>>0>=3){i=c&-4;d=0;while(1){H[(e<<2)+h>>2]=I[b+e|0];g=e|1;H[(g<<2)+h>>2]=I[b+g|0];g=e|2;H[(g<<2)+h>>2]=I[b+g|0];g=e|3;H[(g<<2)+h>>2]=I[b+g|0];e=e+4|0;d=d+4|0;if((i|0)!=(d|0)){continue}break}}d=c&3;if(!d){break a}while(1){H[(e<<2)+h>>2]=I[b+e|0];e=e+1|0;f=f+1|0;if((d|0)!=(f|0)){continue}break}break a}if((c|0)<=0){break b}while(1){d=I[b+g|0];p:{q:{r:{if((e|0)==-1){e=J[(d<<1)+441968>>1];if((e|0)!=65535){break r}break p}d=d|e<<8&65280;e=442480;f=33088;while(1){if((d|0)==(f&65535)){e=J[e+2>>1];break r}f=J[e+4>>1];e=e+4|0;if((f|0)!=65535){continue}break}break q}H[(i<<2)+h>>2]=e&65535;i=i+1|0}d=-1}e=d;g=g+1|0;if((g|0)!=(c|0)){continue}break}break b}if((c|0)<=0){break b}while(1){d=I[b+g|0];l=(i<<2)+h|0;s:{t:{u:{v:{if((e|0)==-1){if(d-129>>>0>=126){break v}break s}d=d|e<<8&65280;e=683808;f=33089;while(1){j=e+2|0;if((d|0)==(f&65535)){break u}f=J[e+4>>1];e=e+4|0;if((f|0)!=65535){continue}break}break t}j=(d<<1)+683296|0}H[l>>2]=J[j>>1];i=i+1|0}d=-1}e=d;g=g+1|0;if((g|0)!=(c|0)){continue}break}break b}if((c|0)<=0){break b}while(1){d=I[b+g|0];l=(i<<2)+h|0;w:{x:{y:{z:{if((e|0)==-1){if(d-129>>>0>=126){break z}break w}d=d|e<<8&65280;e=629280;f=41280;while(1){j=e+2|0;if((d|0)==(f&65535)){break y}f=J[e+4>>1];e=e+4|0;if((f|0)!=65535){continue}break}break x}j=(d<<1)+683296|0}H[l>>2]=J[j>>1];i=i+1|0}d=-1}e=d;g=g+1|0;if((g|0)!=(c|0)){continue}break}break b}if((c|0)<=0){break b}while(1){d=I[b+g|0];l=(i<<2)+h|0;A:{B:{C:{D:{if((e|0)==-1){if(d-129>>>0>=126){break D}break A}d=d|e<<8&65280;e=561072;f=33089;while(1){j=e+2|0;if((d|0)==(f&65535)){break C}f=J[e+4>>1];e=e+4|0;if((f|0)!=65535){continue}break}break B}j=(d<<1)+683296|0}H[l>>2]=J[j>>1];i=i+1|0}d=-1}e=d;g=g+1|0;if((g|0)!=(c|0)){continue}break}break b}if((c|0)<=0){break b}while(1){d=I[b+g|0];l=(i<<2)+h|0;E:{F:{G:{H:{if((e|0)==-1){if(d-129>>>0>=126){break H}break E}d=d|e<<8&65280;e=473904;f=33088;while(1){j=e+2|0;if((d|0)==(f&65535)){break G}f=J[e+4>>1];e=e+4|0;if((f|0)!=65535){continue}break}break F}j=(d<<1)+473392|0}H[l>>2]=J[j>>1];i=i+1|0}d=-1}e=d;g=g+1|0;if((g|0)!=(c|0)){continue}break}}H[(i<<2)+h>>2]=0}H[(c<<2)+h>>2]=0;I:{b=ad(h);if(b>>>0<1073741808){J:{K:{if(b>>>0>=2){c=b+4&-4;f=Qb(c<<2);H[k+8>>2]=c|-2147483648;H[k>>2]=f;H[k+4>>2]=b;break K}F[k+11|0]=b;f=k;if(!b){break J}}H[197455]=0;Mb(f,h,b);c=H[197455];H[197455]=0;if((c|0)==1){break I}}H[(b<<2)+f>>2]=0;Kb(h);H[a+8>>2]=H[k+8>>2];b=H[k+4>>2];H[a>>2]=H[k>>2];H[a+4>>2]=b;xb=k+16|0;return}qd(k);X()}ha(0)|0;_()|0;Zb();X()}function qz(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=O(0);g=xb-48|0;xb=g;f=H[a>>2]-12|0;e=H[f>>2]+a|0;H[e+8>>2]=H[e+8>>2]+4;a:{b:{d=H[f>>2]+a|0;e=H[d+8>>2];if(e+3>>>0>=K[d+12>>2]){e=Qb(88);H[e+8>>2]=0;H[e+12>>2]=0;H[e+4>>2]=418012;H[e>>2]=417944;H[e+72>>2]=0;H[e+76>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+32>>2]=0;H[e+36>>2]=0;H[e+40>>2]=0;H[e+44>>2]=0;H[e+48>>2]=0;H[e+52>>2]=0;H[e+80>>2]=0;H[e+84>>2]=0;break b}b=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[d+8>>2]=e+4;e=Qb(88);H[e+8>>2]=0;H[e+12>>2]=0;H[e+4>>2]=418012;H[e>>2]=417944;H[e+72>>2]=0;H[e+76>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+32>>2]=0;H[e+36>>2]=0;H[e+40>>2]=0;H[e+44>>2]=0;H[e+48>>2]=0;H[e+52>>2]=0;H[e+80>>2]=0;H[e+84>>2]=0;c:{d:{e:{switch(b|0){default:Kb(e);e=0;break a;case 4:H[e+16>>2]=10;d=H[f>>2]+a|0;H[d+8>>2]=H[d+8>>2]+8;d=H[f>>2]+a|0;H[d+8>>2]=H[d+8>>2]+16;d=H[f>>2]+a|0;c=H[d+8>>2];b=H[d+12>>2];if(c>>>0>>0){h=I[c|0];c=c+1|0;H[d+8>>2]=c}F[e+8|0]=h;if(c>>>0>>0){i=I[c|0];c=c+1|0;H[d+8>>2]=c}F[e+9|0]=i;i=0;f:{if(c>>>0>=b>>>0){h=0;break f}h=I[c|0];c=c+1|0;H[d+8>>2]=c}F[e+10|0]=h;if(c>>>0>>0){i=I[c|0];H[d+8>>2]=c+1}F[e+11|0]=i;d=0;a=H[f>>2]+a|0;b=H[a+8>>2];f=H[a+12>>2];g:{if(b>>>0>=f>>>0){c=0;break g}c=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+12|0]=c;if(b>>>0>>0){d=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+13|0]=d;d=0;h:{if(b>>>0>=f>>>0){c=0;break h}c=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+14|0]=c;if(b>>>0>>0){d=I[b|0];H[a+8>>2]=b+1}F[e+15|0]=d;break a;case 3:H[e+16>>2]=11;c=H[f>>2]+a|0;d=c+8|0;b=H[d>>2];if(b+3>>>0>2]){i=I[b|0];H[c+8>>2]=b+4;d=(H[f>>2]+a|0)+8|0;b=H[d>>2]}H[d>>2]=b+4;b=H[f>>2]+a|0;c=H[b+8>>2];k=H[b+12>>2];if(c>>>0>>0){h=I[c|0];c=c+1|0;H[b+8>>2]=c}F[e+8|0]=h;h=0;i:{if(c>>>0>=k>>>0){d=0;break i}d=I[c|0];c=c+1|0;H[b+8>>2]=c}F[e+9|0]=d;if(c>>>0>>0){h=I[c|0];c=c+1|0;H[b+8>>2]=c}F[e+10|0]=h;h=0;if(c>>>0>>0){h=I[c|0];H[b+8>>2]=c+1}F[e+11|0]=h;b=H[f>>2]+a|0;d=H[b+8>>2];c=H[b+12>>2];if(d+3>>>0>=c>>>0){j=0}else{r=(x(2,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)),B());d=d+4|0;H[b+8>>2]=d;j=+r}M[e+56>>3]=j;h=e- -64|0;if(c>>>0>d+3>>>0){r=(x(2,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)),B());H[b+8>>2]=d+4;j=+r}else{j=0}M[h>>3]=j;d=0;h=H[f>>2]+a|0;c=H[h+8>>2];j:{if(c+3>>>0>=K[h+12>>2]){break j}b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[h+8>>2]=c+4;if(!b){break j}h=H[f>>2]+a|0;c=H[h+8>>2];n=H[h+12>>2];k:{if(c>>>0>=n>>>0){k=0;break k}k=I[c|0];c=c+1|0;H[h+8>>2]=c}F[e+12|0]=k;if(c>>>0>>0){d=I[c|0];c=c+1|0;H[h+8>>2]=c}F[e+13|0]=d;d=0;l:{if(c>>>0>=n>>>0){k=0;break l}k=I[c|0];c=c+1|0;H[h+8>>2]=c}F[e+14|0]=k;if(c>>>0>>0){d=I[c|0];H[h+8>>2]=c+1}F[e+15|0]=d;d=b}b=H[f>>2]+a|0;H[b+8>>2]=(H[b+8>>2]+(d<<2)|0)-4;b=H[f>>2]+a|0;d=H[b+8>>2];c=d+3|0;f=H[b+12>>2];m:{if(i&1){if(c>>>0>=f>>>0){break m}c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[b+8>>2]=d+4;if((c|0)<=0){break m}c=oj(a);if(!c){break m}q=-2147483648;o=2147483647;d=H[c+8>>2];n:{if((d|0)==H[c+12>>2]){j=2147483647;p=-2147483648;break n}b=0;j=2147483647;p=-2147483648;while(1){o:{p:{q:{d=H[(b<<2)+d>>2];switch((zb[H[H[d>>2]+8>>2]](d)|0)-1|0){case 4:break n;case 1:break p;case 0:break q;default:break o}}l=M[d+16>>3];p=p>3];q=ql?l:o;j=j>m?m:j;break o}l=M[d+16>>3];p=p>3];q=ql?l:o;j=j>m?m:j}b=b+1|0;d=H[c+8>>2];if(b>>>0>2]-d>>2>>>0){continue}break}}M[e+24>>3]=j;M[e+48>>3]=p-o;M[e+40>>3]=q-j;M[e+32>>3]=o;zb[H[H[c>>2]+4>>2]](c);break m}h=0;if(c>>>0>>0){h=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[b+8>>2]=d+4}Sp(g+16|0,a,h);d=H[g+16>>2];if(!d){break m}H[g+20>>2]=d;Kb(d)}if(!(i&4)){break a}r:{s:{i=H[a>>2]-12|0;b=H[i>>2]+a|0;d=H[b+8>>2];if(d+3>>>0>=K[b+12>>2]){H[g+24>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;break s}h=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[b+8>>2]=d+4;H[g+24>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;if(!h){break s}t:{u:{v:{if(h>>>0>=536870912){H[197455]=0;ia(1654,g+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break v}break t}d=0;H[197455]=0;c=h<<3;b=aa(899,c|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){break u}}e=$()|0;_()|0;a=H[g+16>>2];if(!a){break d}H[g+20>>2]=a;Kb(a);break d}H[g+16>>2]=b;f=c+b|0;H[g+24>>2]=f;b=Nb(b,0,c);H[g+20>>2]=f;k=a+4|0;while(1){f=b+(d<<3)|0;c=k+H[i>>2]|0;a=H[c+4>>2];if(a+3>>>0>2]){r=(x(2,I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24)),B());H[c+4>>2]=a+4;j=+r}else{j=0}M[f>>3]=j;d=d+1|0;if((h|0)!=(d|0)){continue}break}H[g+8>>2]=0;H[g>>2]=0;H[g+4>>2]=0;w:{x:{if(h>>>0>=1073741824){H[197455]=0;ia(1893,g|0);a=H[197455];H[197455]=0;if((a|0)!=1){break t}break x}H[197455]=0;d=h<<2;a=aa(899,d|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break w}}e=$()|0;_()|0;a=H[g>>2];if(a){H[g+4>>2]=a;Kb(a)}Kb(b);ea(e|0);X()}H[g>>2]=a;c=a+d|0;H[g+8>>2]=c;b=0;Nb(a,0,d);H[g+4>>2]=c;while(1){d=0;f=k+H[i>>2]|0;c=H[f+4>>2];if(c>>>0>2]){d=I[c|0];H[f+4>>2]=c+1}a=(b<<2)+a|0;F[a|0]=d;d=0;c=0;n=H[f+4>>2];if(n>>>0>2]){c=I[n|0];H[f+4>>2]=n+1}F[a+1|0]=c;c=H[f+4>>2];if(c>>>0>2]){d=I[c|0];H[f+4>>2]=c+1}F[a+2|0]=d;d=0;c=H[f+4>>2];if(c>>>0>2]){d=I[c|0];H[f+4>>2]=c+1}F[a+3|0]=d;b=b+1|0;if((h|0)!=(b|0)){a=H[g>>2];continue}break}y:{if(h>>>0<=1){a=H[g>>2];if(!a){break r}break y}a=H[g>>2];H[e+12>>2]=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);d=H[g+4>>2]-4|0;H[e+8>>2]=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)}Kb(a);break r}X()}H[g>>2]=0}a=H[g+16>>2];if(!a){break a}H[g+20>>2]=a;Kb(a);break a;case 0:break b;case 1:break c;case 2:break e}}H[e+16>>2]=3;d=H[f>>2]+a|0;b=H[d+8>>2];z:{if(b+3>>>0>=K[d+12>>2]){H[d+8>>2]=b+4;d=16;break z}c=I[b|0];H[d+8>>2]=b+4;d=H[f>>2]+a|0;H[d+8>>2]=H[d+8>>2]+4;d=16;if(!(c&2)){break z}d=H[f>>2]+a|0;H[d+8>>2]=H[d+8>>2]+24;d=40}b=H[a+116>>2];if(b>>>0<29){break a}H[a+116>>2]=b-d;H[g+40>>2]=0;H[g+44>>2]=0;H[g+28>>2]=0;H[g+20>>2]=0;H[g+24>>2]=0;H[g+32>>2]=0;H[g+36>>2]=0;H[g+16>>2]=418992;b=H[f>>2]+a|0;H[b+8>>2]=H[b+8>>2]+4;A:{B:{c=H[f>>2]+a|0;b=H[c+8>>2];if(b+3>>>0>=K[c+12>>2]){break B}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[c+8>>2]=b+4;b=f-1|0;if(b>>>0<=1){H[g+32>>2]=f}C:{D:{switch(b|0){case 1:H[197455]=0;ga(1894,a|0,g+16|0,1);b=H[197455];H[197455]=0;if((b|0)==1){break C}break B;case 0:break D;default:break B}}H[197455]=0;ga(1895,a|0,g+16|0,1);b=H[197455];H[197455]=0;if((b|0)!=1){break B}}e=$()|0;_()|0;break A}H[g+8>>2]=0;H[g>>2]=0;H[g+4>>2]=0;H[197455]=0;b=ca(1896,e|0,g+16|0,g|0)|0;c=H[197455];H[197455]=0;E:{if((c|0)==1){break E}F:{if(!b){break F}b=e+76|0;f=I[g+11|0];c=f<<24>>24;G:{if(F[e+87|0]>=0){if((c|0)<0){break G}c=H[g+4>>2];H[b>>2]=H[g>>2];H[b+4>>2]=c;H[b+8>>2]=H[g+8>>2];break F}H[197455]=0;h=b;b=(c|0)<0;ca(1897,h|0,(b?H[g>>2]:g)|0,(b?H[g+4>>2]:f)|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break F}break E}H[197455]=0;ca(1898,b|0,H[g>>2],H[g+4>>2])|0;b=H[197455];H[197455]=0;if((b|0)==1){break E}}H[a+116>>2]=d+H[a+116>>2];if(F[g+11|0]<0){Kb(H[g>>2])}a=H[g+20>>2];if(!a){break a}Kb(a);break a}e=$()|0;_()|0;if(F[g+11|0]>=0){break A}Kb(H[g>>2])}a=H[g+20>>2];if(!a){break d}Kb(a);ea(e|0);X()}ea(e|0);X()}H[e+16>>2]=2;b=0;c=H[f>>2]+a|0;d=H[c+8>>2];if(d+3>>>0>2]){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[c+8>>2]=d+4}H[e+20>>2]=b;d=H[f>>2]+a|0;c=H[d+8>>2];b=H[d+12>>2];if(c>>>0>>0){i=I[c|0];c=c+1|0;H[d+8>>2]=c}F[e+8|0]=i;i=0;if(c>>>0>>0){h=I[c|0];c=c+1|0;H[d+8>>2]=c}F[e+9|0]=h;if(c>>>0>>0){i=I[c|0];c=c+1|0;H[d+8>>2]=c}F[e+10|0]=i;i=0;h=0;if(c>>>0>>0){h=I[c|0];H[d+8>>2]=c+1}F[e+11|0]=h;a=H[f>>2]+a|0;b=H[a+8>>2];f=H[a+12>>2];if(b>>>0>>0){i=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+12|0]=i;d=0;H:{if(b>>>0>=f>>>0){c=0;break H}c=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+13|0]=c;if(b>>>0>>0){d=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+14|0]=d;d=0;if(b>>>0>>0){d=I[b|0];H[a+8>>2]=b+1}F[e+15|0]=d;break a}d=0;H[e+16>>2]=0;a=H[f>>2]+a|0;b=H[a+8>>2];f=H[a+12>>2];I:{if(b>>>0>=f>>>0){break I}c=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+8|0]=c;if(b>>>0>>0){d=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+9|0]=d;d=0;J:{if(b>>>0>=f>>>0){c=0;break J}c=I[b|0];b=b+1|0;H[a+8>>2]=b}F[e+10|0]=c;if(b>>>0>>0){d=I[b|0];H[a+8>>2]=b+1}F[e+11|0]=d}xb=g+48|0;return e}function FO(a){a=a|0;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;f=xb-80|0;xb=f;k=H[a+8>>2];a:{if(!k){b=6;break a}m=H[a>>2];g=H[a+4>>2];b:{if(H[g+12>>2]>1){break b}Eg(g);if(H[g+12>>2]>1){break b}c=H[g+8>>2];b=H[g>>2];while(1){if(b>>>0>=c>>>0){break b}e=b+1|0;H[g>>2]=e;h=I[b|0];b=e;if(!(1<>>0>26){continue}break}}while(1){c:{H[g+12>>2]=0;e=ik(g);if(e){break c}b=2;if(H[g+12>>2]==2){continue}break a}break}b=2;if((H[g>>2]+(e^-1)|0)!=16){break a}if(gc(e,9081,16)){break a}h=160;d:while(1){d=H[a+4>>2];e:{if(H[d+12>>2]>1){break e}Eg(d);if(H[d+12>>2]>1){break e}c=H[d+8>>2];b=H[d>>2];while(1){if(b>>>0>=c>>>0){break e}e=b+1|0;H[d>>2]=e;g=I[b|0];b=e;if(!(1<>>0>26){continue}break}}f:{while(1){g:{H[d+12>>2]=0;j=ik(d);if(j){break g}if(H[d+12>>2]==2){continue}break f}break}g=H[d>>2]+(j^-1)|0;d=I[j|0];e=0;while(1){h:{i=H[(e<<2)+30768>>2];if((d|0)==I[i|0]){c=e;break h}c=e|1;i=H[(c<<2)+30768>>2];if((d|0)==I[i|0]){break h}e=e+2|0;if((e|0)!=74){continue}continue d}break}b=(c|0)>73?c:73;while(1){if(gc(i,j,g)){if((b|0)==(c|0)){continue d}c=c+1|0;i=H[(c<<2)+30768>>2];if((d|0)==I[i|0]){continue}continue d}break}b=0;i:{j:{k:{l:{switch(c|0){case 40:H[f+32>>2]=3;if((bg(a,f+32|0,1)|0)!=1){break f}if(!(H[f+36>>2]&-3)){continue}h=7;break f;case 30:H[f>>2]=4;if((bg(a,f,1)|0)!=1){break f}F[k|0]=I[f+4|0];continue;case 26:H[f+24>>2]=2;H[f+16>>2]=2;H[f+8>>2]=2;H[f>>2]=2;if((bg(a,f,4)|0)!=4){break f}H[k+4>>2]=H[f+4>>2];H[k+8>>2]=H[f+12>>2];H[k+12>>2]=H[f+20>>2];H[k+16>>2]=H[f+28>>2];continue;case 0:H[f>>2]=2;if((bg(a,f,1)|0)!=1){break f}H[k+20>>2]=H[f+4>>2];continue;case 14:H[f>>2]=2;if((bg(a,f,1)|0)!=1){break f}H[k+24>>2]=H[f+4>>2];continue;case 45:H[f+32>>2]=3;if((bg(a,f+32|0,1)|0)!=1){break f}h=H[f+36>>2];if((h|0)<=0){break i}m:while(1){j=H[a+4>>2];n:{if(H[j+12>>2]>1){break n}Eg(j);if(H[j+12>>2]>1){break n}c=H[j+8>>2];e=H[j>>2];while(1){if(c>>>0<=e>>>0){break n}b=e+1|0;H[j>>2]=b;g=I[e|0];e=b;if(!(1<>>0>26){continue}break}}e=H[j>>2];d=H[j+8>>2];if(e>>>0>>0){g=h-1|0;H[j+12>>2]=0;while(1){c=1;b=e+1|0;H[j>>2]=b;o:{switch(I[e|0]-9|0){default:p:{q:{r:{while(1){c=3;if(b>>>0>=d>>>0){break q}e=b;b=b+1|0;H[j>>2]=b;s:{switch(I[e|0]-9|0){case 0:case 23:break p;case 17:break q;case 50:break r;case 1:case 4:break s;default:continue}}break}c=2;break q}c=1}H[j+12>>2]=c}b=(h|0)>1;h=g;if(b){continue m}break i;case 0:case 23:e=b;if((b|0)!=(d|0)){continue}break k;case 50:break j;case 17:break k;case 1:case 4:break o}}H[j+12>>2]=0;e=b;if(b>>>0>>0){continue}break}break k}break};H[j+12>>2]=3;b=160;break a;case 20:break a;case 49:break l;default:continue}}t:while(1){d=H[a+4>>2];u:{if(H[d+12>>2]>1){break u}Eg(d);if(H[d+12>>2]>1){break u}c=H[d+8>>2];e=H[d>>2];while(1){if(c>>>0<=e>>>0){break u}b=e+1|0;H[d>>2]=b;h=I[e|0];e=b;if(!(1<>>0>26){continue}break}}H[d+12>>2]=0;c=3;v:{w:{e=H[d>>2];g=H[d+8>>2];x:{if(e>>>0>=g>>>0){break x}while(1){b=e+1|0;H[d>>2]=b;y:{switch(I[e|0]-9|0){case 0:case 23:e=b;if((b|0)!=(g|0)){continue}break x;default:z:{A:{B:{while(1){h=3;c=b;if(b>>>0>=g>>>0){break A}b=c+1|0;H[d>>2]=b;C:{switch(I[c|0]-9|0){case 0:case 23:break z;case 17:break A;case 50:break B;case 1:case 4:break C;default:continue}}break}h=2;break A}h=1}H[d+12>>2]=h}h=(e^-1)+b|0;g=I[e|0];b=0;while(1){i=H[(b<<2)+30768>>2];if((g|0)==I[i|0]){c=b;break w}c=b|1;i=H[(c<<2)+30768>>2];if((g|0)==I[i|0]){break w}b=b+2|0;if((b|0)!=74){continue}break};continue t;case 50:c=1;break x;case 17:break x;case 1:case 4:break y}}H[d+12>>2]=0;e=b;if(b>>>0>>0){continue}break}}H[d+12>>2]=c;break v}b=(c|0)>73?c:73;while(1){if(gc(i,e,h)){if((b|0)==(c|0)){continue t}c=c+1|0;i=H[(c<<2)+30768>>2];if((g|0)==I[i|0]){continue}continue t}break}b=0;h=160;D:{switch(c-20|0){case 33:l=H[a+8>>2];H[f+32>>2]=3;if((bg(a,f+32|0,1)|0)!=1){break v}b=H[f+36>>2];if((b|0)<0){break v}H[l+32>>2]=b;if(b){n=l,o=Ub(H[a>>2],20,0,b,0,f+32|0),H[n+28>>2]=o;h=H[f+32>>2];if(h){break f}}h=-1;E:while(1){d=H[a+4>>2];F:{if(H[d+12>>2]>1){break F}Eg(d);if(H[d+12>>2]>1){break F}c=H[d+8>>2];b=H[d>>2];while(1){if(b>>>0>=c>>>0){break F}e=b+1|0;H[d>>2]=e;g=I[b|0];b=e;if(!(1<>>0>26){continue}break}}while(1){G:{H[d+12>>2]=0;j=ik(d);if(j){break G}if(H[d+12>>2]==2){continue}break v}break}g=H[d>>2]+(j^-1)|0;d=I[j|0];e=0;while(1){H:{i=H[(e<<2)+30768>>2];if((d|0)==I[i|0]){c=e;break H}c=e|1;i=H[(c<<2)+30768>>2];if((d|0)==I[i|0]){break H}e=e+2|0;if((e|0)!=74){continue}continue E}break}b=(c|0)>73?c:73;while(1){if(gc(i,j,g)){if((b|0)==(c|0)){continue E}c=c+1|0;i=H[(c<<2)+30768>>2];if((d|0)==I[i|0]){continue}continue E}break}I:{switch(c-20|0){case 36:h=h+1|0;if((h|0)>=H[l+32>>2]){break v}b=H[l+28>>2];H[f+64>>2]=2;H[f+56>>2]=2;H[f+48>>2]=2;H[f+40>>2]=2;H[f+32>>2]=3;if((bg(a,f+32|0,5)|0)!=5){break v}b=b+N(h,20)|0;H[b>>2]=H[f+36>>2];H[b+4>>2]=H[f+44>>2];H[b+8>>2]=H[f+52>>2];H[b+12>>2]=H[f+60>>2];H[b+16>>2]=H[f+68>>2];continue;default:if((c|0)==75){continue}break v;case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:break v;case 0:case 1:case 3:break I}}break};H[l+32>>2]=h+1;continue;case 0:case 1:break a;case 55:continue;case 30:case 31:break D;default:break f}}l=H[a+8>>2];H[f+32>>2]=3;if((bg(a,f+32|0,1)|0)!=1){break v}b=H[f+36>>2];if((b|0)<0){break v}H[l+40>>2]=b;if(b){n=l,o=Ub(H[a>>2],16,0,b,0,f+32|0),H[n+36>>2]=o;h=H[f+32>>2];if(h){break f}}h=-1;J:while(1){d=H[a+4>>2];K:{if(H[d+12>>2]>1){break K}Eg(d);if(H[d+12>>2]>1){break K}c=H[d+8>>2];b=H[d>>2];while(1){if(b>>>0>=c>>>0){break K}e=b+1|0;H[d>>2]=e;g=I[b|0];b=e;if(!(1<>>0>26){continue}break}}while(1){L:{H[d+12>>2]=0;j=ik(d);if(j){break L}if(H[d+12>>2]==2){continue}break v}break}g=H[d>>2]+(j^-1)|0;d=I[j|0];e=0;while(1){M:{i=H[(e<<2)+30768>>2];if((d|0)==I[i|0]){c=e;break M}c=e|1;i=H[(c<<2)+30768>>2];if((d|0)==I[i|0]){break M}e=e+2|0;if((e|0)!=74){continue}continue J}break}b=(c|0)>73?c:73;while(1){if(gc(i,j,g)){if((b|0)==(c|0)){continue J}c=c+1|0;i=H[(c<<2)+30768>>2];if((d|0)==I[i|0]){continue}continue J}break}if((c|0)==75){continue}b=c-20|0;if(b>>>0>17){break v}b=1<=H[l+40>>2]){break v}b=H[l+36>>2];H[f+56>>2]=3;H[f+48>>2]=3;H[f+40>>2]=5;H[f+32>>2]=5;d=bg(a,f+32|0,4);if((d|0)<3){break v}g=b+(h<<4)|0;H[g>>2]=H[f+36>>2];H[g+4>>2]=H[f+44>>2];b=0;e=H[f+52>>2];if((c|0)!=37){b=e;e=(c|0)==34?(d|0)==4?H[f+60>>2]:0:0}H[g+12>>2]=e;H[g+8>>2]=b;continue}break}b=h+1|0;H[l+40>>2]=b;th(H[l+36>>2],b,16,37);continue}break}h=160;break f}c=3}H[j+12>>2]=c;b=160;break a}N:while(1){d=H[a+4>>2];O:{if(H[d+12>>2]>1){break O}Eg(d);if(H[d+12>>2]>1){break O}c=H[d+8>>2];e=H[d>>2];while(1){if(c>>>0<=e>>>0){break O}b=e+1|0;H[d>>2]=b;h=I[e|0];e=b;if(!(1<>>0>26){continue}break}}P:{Q:{R:{e=H[d>>2];g=H[d+8>>2];if(e>>>0>>0){H[d+12>>2]=0;while(1){c=1;b=e+1|0;H[d>>2]=b;S:{switch(I[e|0]-9|0){default:T:{U:{V:{while(1){h=3;c=b;if(b>>>0>=g>>>0){break U}b=c+1|0;H[d>>2]=b;W:{switch(I[c|0]-9|0){case 0:case 23:break T;case 17:break U;case 50:break V;case 1:case 4:break W;default:continue}}break}h=2;break U}h=1}H[d+12>>2]=h}h=(e^-1)+b|0;g=I[e|0];b=0;while(1){i=H[(b<<2)+30768>>2];if((g|0)==I[i|0]){c=b;break P}c=b|1;i=H[(c<<2)+30768>>2];if((g|0)==I[i|0]){break P}b=b+2|0;if((b|0)!=74){continue}break};continue N;case 0:case 23:e=b;if((b|0)!=(g|0)){continue}break R;case 50:break Q;case 17:break R;case 1:case 4:break S}}H[d+12>>2]=0;e=b;if(b>>>0>>0){continue}break}break R}H[d+12>>2]=3;b=160;break a}c=3}H[d+12>>2]=c;b=160;break a}b=(c|0)>73?c:73;while(1){if(gc(i,e,h)){if((b|0)==(c|0)){continue N}c=c+1|0;i=H[(c<<2)+30768>>2];if((g|0)==I[i|0]){continue}continue N}break}h=0;if(!((c|0)==20^(c|0)==17)){continue}break}continue}break}a=H[k+28>>2];if(a){zb[H[m+8>>2]](m,a)}H[k+28>>2]=0;H[k+32>>2]=0;a=H[k+36>>2];if(a){zb[H[m+8>>2]](m,a)}H[k+36>>2]=0;H[k+40>>2]=0;F[k|0]=0;b=h}xb=f+80|0;return b|0}function wla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=O(0),g=0,h=O(0),i=0,j=O(0),k=O(0),l=0,m=O(0),n=0,o=0,p=0,q=O(0),r=0,s=O(0),t=0,u=O(0);r=xb-16|0;xb=r;c=F[b|0]&1;j=L[b+8>>2];k=L[b+4>>2];a:{if(!I[a+8|0]){if(c){F[a+8|0]=1;L[a+16>>2]=j;L[a+12>>2]=k;g=H[a+4>>2];c=H[a>>2];i=H[c+20>>2];d=H[c+16>>2];e=H[d+28>>2];if(!e){e=kc(d);c=H[a>>2];d=H[c+16>>2]}h=O(O(k*O(i|0))/O(e>>>0));e=g+16|0;f=O(j*O(H[c+24>>2]));c=H[d+28>>2];if(!c){c=kc(d)}f=O(f/O(c>>>0));d=H[g+12>>2];c=H[g+8>>2];if(I[g+4|0]){if(H[e>>2]){k=L[g+20>>2];j=L[g+24>>2];if(!(k==L[g+28>>2]&j==L[g+32>>2])){zb[H[c+16>>2]](c,d,e,k,j,H[c+36>>2])}zb[H[c+28>>2]](c,d,e,H[c+48>>2]);H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0}L[g+32>>2]=f;L[g+28>>2]=h;break a}bs(c,d,e,O(O(f*L[g>>2])+h),f);break a}if(I[a+20|0]){F[a+32|0]=1;F[a+8|0]=1;L[a+40>>2]=j;L[a+36>>2]=k;f=L[a+28>>2];f=O(O(O(j-f)*O(.5))+f);L[a+16>>2]=f;h=L[a+24>>2];h=O(O(O(k-h)*O(.5))+h);L[a+12>>2]=h;g=H[a+4>>2];c=H[a>>2];i=H[c+20>>2];d=H[c+16>>2];e=H[d+28>>2];if(!e){e=kc(d);c=H[a>>2];d=H[c+16>>2]}h=O(O(h*O(i|0))/O(e>>>0));e=g+16|0;f=O(f*O(H[c+24>>2]));c=H[d+28>>2];if(!c){c=kc(d)}f=O(f/O(c>>>0));d=H[g+12>>2];c=H[g+8>>2];if(I[g+4|0]){if(H[e>>2]){k=L[g+20>>2];j=L[g+24>>2];if(!(k==L[g+28>>2]&j==L[g+32>>2])){zb[H[c+16>>2]](c,d,e,k,j,H[c+36>>2])}zb[H[c+28>>2]](c,d,e,H[c+48>>2]);H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0}L[g+32>>2]=f;L[g+28>>2]=h;break a}bs(c,d,e,O(O(f*L[g>>2])+h),f);break a}F[a+20|0]=1;L[a+28>>2]=j;L[a+24>>2]=k;break a}if(I[a+32|0]){if(c){f=L[a+36>>2];i=H[a+4>>2];c=H[a>>2];n=H[c+20>>2];d=H[c+16>>2];e=H[d+28>>2];if(!e){e=kc(d);c=H[a>>2];d=H[c+16>>2]}h=L[a+40>>2];o=H[c+24>>2];g=H[d+28>>2];if(!g){g=kc(d);c=H[a>>2];d=H[c+16>>2]}p=H[c+20>>2];l=H[d+28>>2];if(!l){l=kc(d);c=H[a>>2];d=H[c+16>>2]}t=H[c+24>>2];c=H[d+28>>2];if(!c){c=kc(d)}m=O(O(f*O(n|0))/O(e>>>0));h=O(O(h*O(o|0))/O(g>>>0));k=O(O(k*O(p|0))/O(l>>>0));d=i+16|0;f=O(O(j*O(t|0))/O(c>>>0));e=H[i+12>>2];c=H[i+8>>2];b:{if(I[i+4|0]){if(!H[d>>2]){zb[H[c+12>>2]](c,e,d,L[i+28>>2],L[i+32>>2],H[c+32>>2]);H[i+16>>2]=1;g=H[i+32>>2];H[i+20>>2]=H[i+28>>2];H[i+24>>2]=g}zb[H[c+20>>2]](c,e,d,m,h,k,f,H[c+40>>2]);L[i+32>>2]=f;L[i+28>>2]=k;break b}j=L[i>>2];Vj(c,e,d,O(O(h*j)+m),h,O(O(f*j)+k),f)}F[a+32|0]=0;break a}h=L[a+40>>2];q=L[a+36>>2];u=O(k-q);i=H[a+4>>2];c=H[a>>2];n=H[c+20>>2];d=H[c+16>>2];e=H[d+28>>2];if(e){f=h}else{e=kc(d);c=H[a>>2];d=H[c+16>>2];f=L[a+40>>2]}o=H[c+24>>2];g=H[d+28>>2];if(!g){g=kc(d);c=H[a>>2];d=H[c+16>>2]}p=H[c+20>>2];l=H[d+28>>2];if(!l){l=kc(d);c=H[a>>2];d=H[c+16>>2]}t=H[c+24>>2];c=H[d+28>>2];if(!c){c=kc(d)}s=O(O(q*O(n|0))/O(e>>>0));m=O(O(f*O(o|0))/O(g>>>0));q=O(O(O(O(u*O(.5))+q)*O(p|0))/O(l>>>0));d=i+16|0;f=O(O(O(O(O(j-h)*O(.5))+h)*O(t|0))/O(c>>>0));e=H[i+12>>2];c=H[i+8>>2];c:{if(I[i+4|0]){if(!H[d>>2]){zb[H[c+12>>2]](c,e,d,L[i+28>>2],L[i+32>>2],H[c+32>>2]);H[i+16>>2]=1;g=H[i+32>>2];H[i+20>>2]=H[i+28>>2];H[i+24>>2]=g}zb[H[c+20>>2]](c,e,d,s,m,q,f,H[c+40>>2]);L[i+32>>2]=f;L[i+28>>2]=q;break c}h=L[i>>2];Vj(c,e,d,O(O(m*h)+s),m,O(O(f*h)+q),f)}F[a+32|0]=1;c=I[r+13|0]|I[r+14|0]<<8;F[a+33|0]=c;F[a+34|0]=c>>>8;F[a+35|0]=I[r+15|0];L[a+40>>2]=j;L[a+36>>2]=k;break a}if(c){g=H[a+4>>2];c=H[a>>2];i=H[c+20>>2];d=H[c+16>>2];e=H[d+28>>2];if(!e){e=kc(d);c=H[a>>2];d=H[c+16>>2]}h=O(O(k*O(i|0))/O(e>>>0));e=g+16|0;f=O(j*O(H[c+24>>2]));c=H[d+28>>2];if(!c){c=kc(d)}f=O(f/O(c>>>0));d=H[g+12>>2];c=H[g+8>>2];if(I[g+4|0]){if(!H[e>>2]){zb[H[c+12>>2]](c,d,e,L[g+28>>2],L[g+32>>2],H[c+32>>2]);H[g+16>>2]=1;i=H[g+32>>2];H[g+20>>2]=H[g+28>>2];H[g+24>>2]=i}zb[H[c+16>>2]](c,d,e,h,f,H[c+36>>2]);L[g+32>>2]=f;L[g+28>>2]=h;break a}bG(c,d,e,O(O(f*L[g>>2])+h),f);break a}F[a+32|0]=1;L[a+40>>2]=j;L[a+36>>2]=k}if(I[b+12|0]){d:{e:{f:{g:{if(I[a+20|0]){if(I[a+32|0]){h=L[a+40>>2];q=L[a+28>>2];k=L[a+36>>2];s=O(L[a+24>>2]-k);b=H[a+4>>2];d=H[a>>2];i=H[d+20>>2];e=H[d+16>>2];g=H[e+28>>2];if(g){f=h}else{g=kc(e);d=H[a>>2];e=H[d+16>>2];f=L[a+40>>2]}n=H[d+24>>2];l=H[e+28>>2];if(!l){l=kc(e);d=H[a>>2];e=H[d+16>>2]}o=H[d+20>>2];c=H[e+28>>2];if(!c){c=kc(e);d=H[a>>2];e=H[d+16>>2]}p=H[d+24>>2];d=H[e+28>>2];if(!d){d=kc(e)}m=O(O(k*O(i|0))/O(g>>>0));j=O(O(f*O(n|0))/O(l>>>0));k=O(O(O(O(s*O(.5))+k)*O(o|0))/O(c>>>0));e=b+16|0;f=O(O(O(O(O(q-h)*O(.5))+h)*O(p|0))/O(d>>>0));d=H[b+12>>2];c=H[b+8>>2];h:{if(I[b+4|0]){if(!H[e>>2]){zb[H[c+12>>2]](c,d,e,L[b+28>>2],L[b+32>>2],H[c+32>>2]);H[b+16>>2]=1;g=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=g}zb[H[c+20>>2]](c,d,e,m,j,k,f,H[c+40>>2]);L[b+32>>2]=f;L[b+28>>2]=k;break h}h=L[b>>2];Vj(c,d,e,O(O(j*h)+m),j,O(O(f*h)+k),f)}F[a+32|0]=0;b=I[a+20|0]}else{b=1}c=I[a+8|0];if(!(c?b&255:0)){if(c){break g}if(!(b&255)){break d}f=L[a+24>>2];b=H[a>>2];c=H[b+20>>2];d=H[b+16>>2];e=H[d+28>>2];if(!e){break f}b=c;break e}f=L[a+24>>2];b=H[a+4>>2];d=H[a>>2];i=H[d+20>>2];e=H[d+16>>2];g=H[e+28>>2];if(!g){g=kc(e);d=H[a>>2];e=H[d+16>>2]}h=L[a+28>>2];n=H[d+24>>2];l=H[e+28>>2];if(!l){l=kc(e);d=H[a>>2];e=H[d+16>>2]}j=L[a+12>>2];o=H[d+20>>2];c=H[e+28>>2];if(!c){c=kc(e);d=H[a>>2];e=H[d+16>>2]}m=L[a+16>>2];p=H[d+24>>2];d=H[e+28>>2];if(!d){d=kc(e)}k=O(O(f*O(i|0))/O(g>>>0));h=O(O(h*O(n|0))/O(l>>>0));j=O(O(j*O(o|0))/O(c>>>0));e=b+16|0;f=O(O(m*O(p|0))/O(d>>>0));d=H[b+12>>2];c=H[b+8>>2];if(I[b+4|0]){if(!H[e>>2]){zb[H[c+12>>2]](c,d,e,L[b+28>>2],L[b+32>>2],H[c+32>>2]);H[b+16>>2]=1;g=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=g}zb[H[c+20>>2]](c,d,e,k,h,j,f,H[c+40>>2]);L[b+32>>2]=f;L[b+28>>2]=j;break d}m=L[b>>2];Vj(c,d,e,O(O(h*m)+k),h,O(O(f*m)+j),f);break d}b=I[a+8|0];if(!(!I[a+32|0]|!b)){f=L[a+36>>2];b=H[a+4>>2];d=H[a>>2];i=H[d+20>>2];e=H[d+16>>2];g=H[e+28>>2];if(!g){g=kc(e);d=H[a>>2];e=H[d+16>>2]}h=L[a+40>>2];n=H[d+24>>2];l=H[e+28>>2];if(!l){l=kc(e);d=H[a>>2];e=H[d+16>>2]}j=L[a+12>>2];o=H[d+20>>2];c=H[e+28>>2];if(!c){c=kc(e);d=H[a>>2];e=H[d+16>>2]}m=L[a+16>>2];p=H[d+24>>2];d=H[e+28>>2];if(!d){d=kc(e)}k=O(O(f*O(i|0))/O(g>>>0));h=O(O(h*O(n|0))/O(l>>>0));j=O(O(j*O(o|0))/O(c>>>0));e=b+16|0;f=O(O(m*O(p|0))/O(d>>>0));d=H[b+12>>2];c=H[b+8>>2];if(I[b+4|0]){if(!H[e>>2]){zb[H[c+12>>2]](c,d,e,L[b+28>>2],L[b+32>>2],H[c+32>>2]);H[b+16>>2]=1;g=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=g}zb[H[c+20>>2]](c,d,e,k,h,j,f,H[c+40>>2]);L[b+32>>2]=f;L[b+28>>2]=j;break d}m=L[b>>2];Vj(c,d,e,O(O(h*m)+k),h,O(O(f*m)+j),f);break d}if(!b){break d}}f=L[a+12>>2];b=H[a+4>>2];d=H[a>>2];c=H[d+20>>2];e=H[d+16>>2];g=H[e+28>>2];if(!g){g=kc(e);d=H[a>>2];e=H[d+16>>2]}j=L[a+16>>2];i=H[d+24>>2];d=H[e+28>>2];if(!d){d=kc(e)}h=O(O(f*O(c|0))/O(g>>>0));e=b+16|0;f=O(O(j*O(i|0))/O(d>>>0));d=H[b+12>>2];c=H[b+8>>2];if(I[b+4|0]){if(!H[e>>2]){zb[H[c+12>>2]](c,d,e,L[b+28>>2],L[b+32>>2],H[c+32>>2]);H[b+16>>2]=1;g=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=g}zb[H[c+16>>2]](c,d,e,h,f,H[c+36>>2]);L[b+32>>2]=f;L[b+28>>2]=h;break d}bG(c,d,e,O(O(f*L[b>>2])+h),f);break d}e=kc(d);b=H[a>>2];d=H[b+16>>2];b=H[b+20>>2]}h=O(e>>>0);j=L[a+28>>2];e=H[d+28>>2];if(!e){e=kc(d)}h=O(O(f*O(c|0))/h);c=H[a+4>>2];d=c+16|0;f=O(O(j*O(b|0))/O(e>>>0));e=H[c+12>>2];b=H[c+8>>2];i:{if(I[c+4|0]){if(H[d>>2]){k=L[c+20>>2];j=L[c+24>>2];if(!(k==L[c+28>>2]&j==L[c+32>>2])){zb[H[b+16>>2]](b,e,d,k,j,H[b+36>>2])}zb[H[b+28>>2]](b,e,d,H[b+48>>2]);H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0}L[c+32>>2]=f;L[c+28>>2]=h;break i}bs(b,e,d,O(O(f*L[c>>2])+h),f)}b=H[a+4>>2];d=b+16|0;e=H[b+12>>2];c=H[b+8>>2];if(I[b+4|0]){if(!H[d>>2]){zb[H[c+12>>2]](c,e,d,L[b+28>>2],L[b+32>>2],H[c+32>>2]);H[b+16>>2]=1;g=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=g}zb[H[c+20>>2]](c,e,d,h,f,h,f,H[c+40>>2]);L[b+32>>2]=f;L[b+28>>2]=h;break d}h=O(O(f*L[b>>2])+h);Vj(c,e,d,h,f,h,f)}F[a+32|0]=0;H[a+28>>2]=H[a+40>>2];b=H[a+36>>2];H[a+20>>2]=H[a+32>>2];H[a+24>>2]=b;H[a+16>>2]=H[a+40>>2];b=H[a+36>>2];H[a+8>>2]=H[a+32>>2];H[a+12>>2]=b;a=H[a+4>>2];b=a+16|0;if(H[a+16>>2]){d=H[a+12>>2];c=H[a+8>>2];h=L[a+20>>2];f=L[a+24>>2];if(!(h==L[a+28>>2]&f==L[a+32>>2])){zb[H[c+16>>2]](c,d,b,h,f,H[c+36>>2])}zb[H[c+28>>2]](c,d,b,H[c+48>>2])}H[b>>2]=0;H[b+4>>2]=0;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0}xb=r+16|0}function dka(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;i=H[c+80>>2];l=39;h=1;a=0;m=H[c+68>>2];b=!m;while(1){a:{b:{c:{if(!b){a=I[l+135040|0]==10?g:a;d=l<<1;f=G[d+134e3>>1]+132640|0;b=F[l+134288|0];l=I[(i+N(g,20)|0)+18|0];j=I[d+132352|0];if(l>>>0>=j>>>0){b=l>>>0>I[d+132353|0]?b:l-j|0}b=I[b+f|0];break c}if((l|0)==39){break b}g=m;b=G[(l<<1)+134752>>1]-1|0}l=I[b+134432|0];b=F[b+134592|0];d:{if(!b){break d}e:{switch(b-1|0){case 1:e=g+1|0;break d;case 10:e=g+1|0;f:{if(e>>>0<=a>>>0){break f}f=h<<4|5;b=0;d=a;j=g-d|0;o=j+1&7;if(o){while(1){F[(i+N(d,20)|0)+15|0]=f;d=d+1|0;b=b+1|0;if((o|0)!=(b|0)){continue}break}}if(j>>>0<=6){break f}while(1){b=i+N(d,20)|0;F[b+35|0]=f;F[b+15|0]=f;F[b+55|0]=f;F[b+75|0]=f;F[b+95|0]=f;F[b+115|0]=f;F[b+135|0]=f;F[b+155|0]=f;b=d+7|0;d=d+8|0;if((b|0)!=(g|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 12:g:{if(a>>>0>=g>>>0){break g}b=h<<4;e=0;d=a;f=g-d&7;if(f){while(1){F[(i+N(d,20)|0)+15|0]=b;d=d+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break g}while(1){e=i+N(d,20)|0;F[e+35|0]=b;F[e+15|0]=b;F[e+55|0]=b;F[e+75|0]=b;F[e+95|0]=b;F[e+115|0]=b;F[e+135|0]=b;F[e+155|0]=b;d=d+8|0;if((g|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}e=g;g=e-1|0;break d;case 13:h:{if(a>>>0>=g>>>0){break h}b=h<<4|1;e=0;d=a;f=g-d&7;if(f){while(1){F[(i+N(d,20)|0)+15|0]=b;d=d+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break h}while(1){e=i+N(d,20)|0;F[e+35|0]=b;F[e+15|0]=b;F[e+55|0]=b;F[e+75|0]=b;F[e+95|0]=b;F[e+115|0]=b;F[e+135|0]=b;F[e+155|0]=b;d=d+8|0;if((g|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}e=g;g=e-1|0;break d;case 16:i:{if(a>>>0>=g>>>0){break i}b=h<<4|2;e=0;d=a;f=g-d&7;if(f){while(1){F[(i+N(d,20)|0)+15|0]=b;d=d+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break i}while(1){e=i+N(d,20)|0;F[e+35|0]=b;F[e+15|0]=b;F[e+55|0]=b;F[e+75|0]=b;F[e+95|0]=b;F[e+115|0]=b;F[e+135|0]=b;F[e+155|0]=b;d=d+8|0;if((g|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}e=g;g=e-1|0;break d;case 18:j:{if(a>>>0>=g>>>0){break j}b=h<<4|3;e=0;d=a;f=g-d&7;if(f){while(1){F[(i+N(d,20)|0)+15|0]=b;d=d+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break j}while(1){e=i+N(d,20)|0;F[e+35|0]=b;F[e+15|0]=b;F[e+55|0]=b;F[e+75|0]=b;F[e+95|0]=b;F[e+115|0]=b;F[e+135|0]=b;F[e+155|0]=b;d=d+8|0;if((g|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}e=g;g=e-1|0;break d;case 14:k:{if(a>>>0>=g>>>0){break k}b=h<<4|4;e=0;d=a;f=g-d&7;if(f){while(1){F[(i+N(d,20)|0)+15|0]=b;d=d+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break k}while(1){e=i+N(d,20)|0;F[e+35|0]=b;F[e+15|0]=b;F[e+55|0]=b;F[e+75|0]=b;F[e+95|0]=b;F[e+115|0]=b;F[e+135|0]=b;F[e+155|0]=b;d=d+8|0;if((g|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}e=g;g=e-1|0;break d;case 15:l:{if(a>>>0>=g>>>0){break l}b=h<<4|5;e=0;d=a;f=g-d&7;if(f){while(1){F[(i+N(d,20)|0)+15|0]=b;d=d+1|0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break l}while(1){e=i+N(d,20)|0;F[e+35|0]=b;F[e+15|0]=b;F[e+55|0]=b;F[e+75|0]=b;F[e+95|0]=b;F[e+115|0]=b;F[e+135|0]=b;F[e+155|0]=b;d=d+8|0;if((g|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}e=g;g=e-1|0;break d;case 0:g=e-1|0;m:{if(a>>>0>=e>>>0){break m}f=h<<4;d=0;b=a;j=e-b&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if((a^-1)+e>>>0<=6){break m}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((e|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 2:g=e-1|0;n:{if(a>>>0>=e>>>0){break n}f=h<<4|1;d=0;b=a;j=e-b&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if((a^-1)+e>>>0<=6){break n}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((e|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 6:g=e-1|0;o:{if(a>>>0>=e>>>0){break o}f=h<<4|2;d=0;b=a;j=e-b&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if((a^-1)+e>>>0<=6){break o}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((e|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 7:g=e-1|0;p:{if(a>>>0>=e>>>0){break p}f=h<<4|3;d=0;b=a;j=e-b&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if((a^-1)+e>>>0<=6){break p}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((e|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 3:g=e-1|0;q:{if(a>>>0>=e>>>0){break q}f=h<<4|4;d=0;b=a;j=e-b&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if((a^-1)+e>>>0<=6){break q}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((e|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 5:r:{switch(k-1|0){case 0:g=e-1|0;s:{if(a>>>0>=e>>>0){break s}f=h<<4;d=0;b=a;k=e-b&7;if(k){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}if((a^-1)+e>>>0<=6){break s}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((e|0)!=(b|0)){continue}break}}k=1;h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 4:g=e-1|0;t:{if(a>>>0>=e>>>0){break t}f=h<<4|4;d=0;b=a;k=e-b&7;if(k){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}if((a^-1)+e>>>0<=6){break t}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((e|0)!=(b|0)){continue}break}}k=5;h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 5:break r;default:break d}}g=e-1|0;u:{if(a>>>0>=e>>>0){break u}f=h<<4|5;d=0;b=a;k=e-b&7;if(k){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}if((a^-1)+e>>>0<=6){break u}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((e|0)!=(b|0)){continue}break}}k=6;h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 17:k=1;e=g+1|0;break d;case 4:e=g+1|0;k=5;break d;case 11:break e;default:break d}}e=g+1|0;k=6}a=I[l+135184|0]==9?0:a;g=g+1|0;if((m|0)!=(g|0)){break a}b=1;continue}v:{i=H[c+68>>2];if(!i){break v}a=i-1|0;g=0;b=H[c+80>>2];d=I[b+15|0];while(1){w:{if((a|0)==(g|0)){g=i;break w}g=g+1|0;if((d|0)==I[(b+N(g,20)|0)+15|0]){continue}}break}if(!i){break v}f=H[c+80>>2];b=0;l=i;while(1){m=g;k=g>>>0>l>>>0?l:g;j=k-b|0;x:{if(j>>>0<2){break x}e=H[c+144>>2]|32;H[c+144>>2]=e;if(b>>>0>=k>>>0){break x}g=-1;a=b;o=k+(b^-1)|0;if(o>>>0>=3){p=j&-4;d=0;while(1){h=f+N(a,20)|0;n=H[h+8>>2];g=g>>>0>>0?g:n;n=H[h+28>>2];g=g>>>0>>0?g:n;n=H[h+48>>2];g=g>>>0>>0?g:n;h=H[h+68>>2];g=g>>>0>>0?g:h;a=a+4|0;d=d+4|0;if((p|0)!=(d|0)){continue}break}}h=0;d=j&3;if(d){while(1){p=H[(f+N(a,20)|0)+8>>2];g=g>>>0

>>0?g:p;a=a+1|0;h=h+1|0;if((d|0)!=(h|0)){continue}break}}if(j&1){a=f+N(b,20)|0;if(H[a+8>>2]!=(g|0)){H[c+144>>2]=e;H[a+4>>2]=H[a+4>>2]|3}b=b+1|0}if(!o){break x}while(1){a=f+N(b,20)|0;if(H[a+8>>2]!=(g|0)){e=e|32;H[c+144>>2]=e;H[a+4>>2]=H[a+4>>2]|3}a=f+N(b+1|0,20)|0;if(H[a+8>>2]!=(g|0)){e=e|32;H[c+144>>2]=e;H[a+4>>2]=H[a+4>>2]|3}b=b+2|0;if((k|0)!=(b|0)){continue}break}}a=m+1|0;a=a>>>0>>0?l:a;b=I[(f+N(m,20)|0)+15|0];g=m;while(1){y:{g=g+1|0;if(l>>>0<=g>>>0){g=a;break y}if((b|0)==I[(f+N(g,20)|0)+15|0]){continue}}break}if(i>>>0<=m>>>0){break v}l=H[c+68>>2];b=m;continue}}return}b=0;continue}}function zX(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;b=xb-208|0;xb=b;h=H[a+84>>2];c=Qb(16);H[b+192>>2]=c;H[b+196>>2]=3;H[b+200>>2]=-2147483644;H[197455]=0;Mb(c,433496,3);d=H[197455];H[197455]=0;a:{b:{c:{d:{if((d|0)!=1){H[c+12>>2]=0;H[197455]=0;ga(1754,h|0,b+192|0,1);c=H[197455];H[197455]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((c|0)!=1){if(F[b+203|0]<0){Kb(H[b+192>>2])}h=H[a+84>>2];c=Qb(32);H[b+192>>2]=c;H[b+196>>2]=5;H[b+200>>2]=-2147483640;H[197455]=0;Mb(c,433512,5);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+20>>2]=0;H[197455]=0;c=aa(899,112)|0;d=H[197455];H[197455]=0;if((d|0)==1){break n}H[b+176>>2]=c;H[b+180>>2]=26;H[b+184>>2]=-2147483620;H[197455]=0;Mb(c,433536,26);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+104>>2]=0;H[197455]=0;ga(1755,h|0,b+192|0,b+176|0);c=H[197455];H[197455]=0;if((c|0)==1){break m}if(F[b+187|0]<0){Kb(H[b+176>>2])}if(F[b+203|0]<0){Kb(H[b+192>>2])}h=H[a+84>>2];c=Qb(48);H[b+192>>2]=c;H[b+196>>2]=11;H[b+200>>2]=-2147483636;H[197455]=0;Mb(c,433644,11);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+44>>2]=0;H[197455]=0;c=aa(899,128)|0;d=H[197455];H[197455]=0;if((d|0)==1){break k}H[b+176>>2]=c;H[b+180>>2]=28;H[b+184>>2]=-2147483616;H[197455]=0;Mb(c,433692,28);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+112>>2]=0;H[197455]=0;ga(1755,h|0,b+192|0,b+176|0);c=H[197455];H[197455]=0;if((c|0)==1){break j}if(F[b+187|0]<0){Kb(H[b+176>>2])}if(F[b+203|0]<0){Kb(H[b+192>>2])}c=H[a+80>>2];c=zb[H[H[c>>2]+16>>2]](c)|0;M[a+16>>3]=H[c>>2];M[a+24>>3]=H[c+4>>2];M[a+32>>3]=H[c+8>>2];M[a+40>>3]=H[c+12>>2];Sy(a+8|0);e=M[a+16>>3];o:{if(e==1.7976931348623157e308){break o}f=M[a+32>>3];if(f==2.2250738585072014e-308|f-e==0){break o}h=H[a+84>>2];c=Qb(32);H[b+192>>2]=c;H[b+196>>2]=5;H[b+200>>2]=-2147483640;H[197455]=0;Mb(c,433808,5);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+20>>2]=0;e=0;f=M[a+16>>3];p:{if(f==1.7976931348623157e308){break p}g=M[a+32>>3];if(g==2.2250738585072014e-308){break p}e=g-f}H[197455]=0;fa(1756,b+176|0,+e,-1);c=H[197455];H[197455]=0;if((c|0)==1){break h}H[197455]=0;ga(1755,h|0,b+192|0,b+176|0);c=H[197455];H[197455]=0;if((c|0)==1){break g}if(F[b+187|0]<0){Kb(H[b+176>>2])}if(F[b+203|0]>=0){break o}Kb(H[b+192>>2])}e=M[a+24>>3];if(e==1.7976931348623157e308){break d}f=M[a+40>>3];if(f==2.2250738585072014e-308){break d}if(f-e!=0){break e}break d}a=$()|0;_()|0;if(F[b+203|0]>=0){break c}break b}a=$()|0;_()|0;break l}a=$()|0;_()|0;if(F[b+187|0]>=0){break l}Kb(H[b+176>>2])}if(F[b+203|0]>=0){break c}break b}a=$()|0;_()|0;break i}a=$()|0;_()|0;if(F[b+187|0]>=0){break i}Kb(H[b+176>>2])}if(F[b+203|0]>=0){break c}break b}a=$()|0;_()|0;break f}a=$()|0;_()|0;if(F[b+187|0]>=0){break f}Kb(H[b+176>>2])}if(F[b+203|0]>=0){break c}break b}h=H[a+84>>2];c=Qb(32);H[b+192>>2]=c;H[b+196>>2]=6;H[b+200>>2]=-2147483640;H[197455]=0;Mb(c,433832,6);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+24>>2]=0;e=0;f=M[a+24>>3];q:{if(f==1.7976931348623157e308){break q}g=M[a+40>>3];if(g==2.2250738585072014e-308){break q}e=g-f}H[197455]=0;fa(1756,b+176|0,+e,-1);c=H[197455];H[197455]=0;r:{s:{if((c|0)!=1){H[197455]=0;ga(1755,h|0,b+192|0,b+176|0);c=H[197455];H[197455]=0;if((c|0)==1){break s}if(F[b+187|0]<0){Kb(H[b+176>>2])}if(F[b+203|0]>=0){break d}Kb(H[b+192>>2]);break d}a=$()|0;_()|0;break r}a=$()|0;_()|0;if(F[b+187|0]>=0){break r}Kb(H[b+176>>2])}if(F[b+203|0]>=0){break c}break b}break a}g=0;f=1;e=1;j=M[a+48>>3];t:{if(j==0){break t}e=0;i=M[a+16>>3];u:{if(i==1.7976931348623157e308){break u}k=M[a+32>>3];if(k==2.2250738585072014e-308){break u}e=k-i}i=e*.5;e=j/e;i=i*P(e+-1);if(!(e<1)){break t}i=-i}j=M[a+56>>3];v:{if(j==0){break v}f=0;g=M[a+24>>3];w:{if(g==1.7976931348623157e308){break w}k=M[a+40>>3];if(k==2.2250738585072014e-308){break w}f=k-g}g=f*.5;f=j/f;g=g*P(f+-1);if(!(f<1)){break v}g=-g}x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{if(e==1&f==1){break X}h=H[a+84>>2];c=Qb(48);H[b+192>>2]=c;H[b+196>>2]=9;H[b+200>>2]=-2147483636;H[197455]=0;Mb(c,433860,9);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+36>>2]=0;H[197455]=0;Da(1757,b+48|0,+e);c=H[197455];H[197455]=0;if((c|0)==1){break W}H[197455]=0;c=ca(1758,b+48|0,0,433900)|0;d=H[197455];H[197455]=0;if((d|0)==1){break V}H[b+72>>2]=H[c+8>>2];d=H[c+4>>2];H[b+64>>2]=H[c>>2];H[b+68>>2]=d;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;c=da(1699,b- -64|0,433932)|0;d=H[197455];H[197455]=0;if((d|0)==1){break U}H[b+88>>2]=H[c+8>>2];d=H[c+4>>2];H[b+80>>2]=H[c>>2];H[b+84>>2]=d;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;Da(1757,b+32|0,+f);c=H[197455];H[197455]=0;if((c|0)==1){break T}H[197455]=0;c=I[b+43|0];d=c<<24>>24<0;c=ca(1759,b+80|0,(d?H[b+32>>2]:b+32|0)|0,(d?H[b+36>>2]:c)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break S}H[b+104>>2]=H[c+8>>2];d=H[c+4>>2];H[b+96>>2]=H[c>>2];H[b+100>>2]=d;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,b+96|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break R}H[b+120>>2]=H[b+104>>2];H[b+104>>2]=0;c=H[b+100>>2];H[b+112>>2]=H[b+96>>2];H[b+116>>2]=c;H[b+96>>2]=0;H[b+100>>2]=0;H[197455]=0;fa(1756,b+16|0,+i,-1);c=H[197455];H[197455]=0;if((c|0)==1){break Q}H[197455]=0;c=I[b+27|0];d=c<<24>>24<0;c=ca(1759,b+112|0,(d?H[b+16>>2]:b+16|0)|0,(d?H[b+20>>2]:c)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break P}H[b+136>>2]=H[c+8>>2];d=H[c+4>>2];H[b+128>>2]=H[c>>2];H[b+132>>2]=d;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,b+128|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break O}H[b+152>>2]=H[b+136>>2];H[b+136>>2]=0;c=H[b+132>>2];H[b+144>>2]=H[b+128>>2];H[b+148>>2]=c;H[b+128>>2]=0;H[b+132>>2]=0;H[197455]=0;fa(1756,b|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break N}H[197455]=0;c=I[b+11|0];d=c<<24>>24<0;c=ca(1759,b+144|0,(d?H[b>>2]:b)|0,(d?H[b+4>>2]:c)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break M}H[b+168>>2]=H[c+8>>2];d=H[c+4>>2];H[b+160>>2]=H[c>>2];H[b+164>>2]=d;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,b+160|0,41);c=H[197455];H[197455]=0;if((c|0)==1){break L}H[b+184>>2]=H[b+168>>2];H[b+168>>2]=0;c=H[b+164>>2];H[b+176>>2]=H[b+160>>2];H[b+180>>2]=c;H[b+160>>2]=0;H[b+164>>2]=0;H[197455]=0;ga(1755,h|0,b+192|0,b+176|0);c=H[197455];H[197455]=0;if((c|0)==1){break K}if(F[b+187|0]<0){Kb(H[b+176>>2])}if(F[b+171|0]<0){Kb(H[b+160>>2])}if(F[b+11|0]<0){Kb(H[b>>2])}if(F[b+155|0]<0){Kb(H[b+144>>2])}if(F[b+139|0]<0){Kb(H[b+128>>2])}if(F[b+27|0]<0){Kb(H[b+16>>2])}if(F[b+123|0]<0){Kb(H[b+112>>2])}if(F[b+107|0]<0){Kb(H[b+96>>2])}if(F[b+43|0]<0){Kb(H[b+32>>2])}if(F[b+91|0]<0){Kb(H[b+80>>2])}if(F[b+75|0]<0){Kb(H[b+64>>2])}if(F[b+59|0]<0){Kb(H[b+48>>2])}if(F[b+203|0]>=0){break X}Kb(H[b+192>>2])}c=H[a+84>>2];a=Qb(16);H[b+192>>2]=a;H[b+196>>2]=3;H[b+200>>2]=-2147483644;H[197455]=0;Mb(a,433496,3);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[a+12>>2]=0;H[197455]=0;ka(1760,c|0,b+192|0,1,0);a=H[197455];H[197455]=0;if((a|0)==1){break x}if(F[b+203|0]<0){Kb(H[b+192>>2])}xb=b+208|0;return}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;break D}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;_()|0;break G}a=$()|0;_()|0;break H}a=$()|0;_()|0;break I}a=$()|0;_()|0;break J}a=$()|0;_()|0;if(F[b+187|0]>=0){break J}Kb(H[b+176>>2])}if(F[b+171|0]>=0){break I}Kb(H[b+160>>2])}if(F[b+11|0]>=0){break H}Kb(H[b>>2])}if(F[b+155|0]>=0){break G}Kb(H[b+144>>2])}if(F[b+139|0]>=0){break F}Kb(H[b+128>>2])}if(F[b+27|0]>=0){break E}Kb(H[b+16>>2])}if(F[b+123|0]>=0){break D}Kb(H[b+112>>2])}if(F[b+107|0]>=0){break C}Kb(H[b+96>>2])}if(F[b+43|0]>=0){break B}Kb(H[b+32>>2])}if(F[b+91|0]>=0){break A}Kb(H[b+80>>2])}if(F[b+75|0]>=0){break z}Kb(H[b+64>>2])}if(F[b+59|0]>=0){break y}Kb(H[b+48>>2])}if(F[b+203|0]>=0){break c}break b}a=$()|0;_()|0;if(F[b+203|0]>=0){break c}Kb(H[b+192>>2])}ea(a|0);X()}Kb(H[b+192>>2]);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function d1(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;c=xb-208|0;xb=c;M[a+16>>3]=H[b+96>>2];M[a+24>>3]=H[b+100>>2];M[a+32>>3]=H[b+104>>2];M[a+40>>3]=H[b+108>>2];h=H[a+84>>2];b=Qb(16);H[c+192>>2]=b;H[c+196>>2]=3;H[c+200>>2]=-2147483644;H[197455]=0;Mb(b,400916,3);d=H[197455];H[197455]=0;a:{b:{c:{d:{if((d|0)!=1){H[b+12>>2]=0;H[197455]=0;ga(1754,h|0,c+192|0,1);b=H[197455];H[197455]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((b|0)!=1){if(F[c+203|0]<0){Kb(H[c+192>>2])}h=H[a+84>>2];b=Qb(32);H[c+192>>2]=b;H[c+196>>2]=5;H[c+200>>2]=-2147483640;H[197455]=0;Mb(b,402584,5);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+20>>2]=0;H[197455]=0;b=aa(899,112)|0;d=H[197455];H[197455]=0;if((d|0)==1){break n}H[c+176>>2]=b;H[c+180>>2]=26;H[c+184>>2]=-2147483620;H[197455]=0;Mb(b,402732,26);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+104>>2]=0;H[197455]=0;ga(1755,h|0,c+192|0,c+176|0);b=H[197455];H[197455]=0;if((b|0)==1){break m}if(F[c+187|0]<0){Kb(H[c+176>>2])}if(F[c+203|0]<0){Kb(H[c+192>>2])}h=H[a+84>>2];b=Qb(48);H[c+192>>2]=b;H[c+196>>2]=11;H[c+200>>2]=-2147483636;H[197455]=0;Mb(b,402988,11);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+44>>2]=0;H[197455]=0;b=aa(899,128)|0;d=H[197455];H[197455]=0;if((d|0)==1){break k}H[c+176>>2]=b;H[c+180>>2]=28;H[c+184>>2]=-2147483616;H[197455]=0;Mb(b,403204,28);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+112>>2]=0;H[197455]=0;ga(1755,h|0,c+192|0,c+176|0);b=H[197455];H[197455]=0;if((b|0)==1){break j}if(F[c+187|0]<0){Kb(H[c+176>>2])}if(F[c+203|0]<0){Kb(H[c+192>>2])}Sy(a+8|0);e=M[a+16>>3];o:{if(e==1.7976931348623157e308){break o}f=M[a+32>>3];if(f==2.2250738585072014e-308|f-e==0){break o}h=H[a+84>>2];b=Qb(32);H[c+192>>2]=b;H[c+196>>2]=5;H[c+200>>2]=-2147483640;H[197455]=0;Mb(b,403488,5);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+20>>2]=0;e=0;f=M[a+16>>3];p:{if(f==1.7976931348623157e308){break p}g=M[a+32>>3];if(g==2.2250738585072014e-308){break p}e=g-f}H[197455]=0;fa(1756,c+176|0,+e,-1);b=H[197455];H[197455]=0;if((b|0)==1){break h}H[197455]=0;ga(1755,h|0,c+192|0,c+176|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[c+187|0]<0){Kb(H[c+176>>2])}if(F[c+203|0]>=0){break o}Kb(H[c+192>>2])}e=M[a+24>>3];if(e==1.7976931348623157e308){break d}f=M[a+40>>3];if(f==2.2250738585072014e-308){break d}if(f-e!=0){break e}break d}a=$()|0;_()|0;if(F[c+203|0]>=0){break c}break b}a=$()|0;_()|0;break l}a=$()|0;_()|0;if(F[c+187|0]>=0){break l}Kb(H[c+176>>2])}if(F[c+203|0]>=0){break c}break b}a=$()|0;_()|0;break i}a=$()|0;_()|0;if(F[c+187|0]>=0){break i}Kb(H[c+176>>2])}if(F[c+203|0]>=0){break c}break b}a=$()|0;_()|0;break f}a=$()|0;_()|0;if(F[c+187|0]>=0){break f}Kb(H[c+176>>2])}if(F[c+203|0]>=0){break c}break b}h=H[a+84>>2];b=Qb(32);H[c+192>>2]=b;H[c+196>>2]=6;H[c+200>>2]=-2147483640;H[197455]=0;Mb(b,403652,6);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+24>>2]=0;e=0;f=M[a+24>>3];q:{if(f==1.7976931348623157e308){break q}g=M[a+40>>3];if(g==2.2250738585072014e-308){break q}e=g-f}H[197455]=0;fa(1756,c+176|0,+e,-1);b=H[197455];H[197455]=0;r:{s:{if((b|0)!=1){H[197455]=0;ga(1755,h|0,c+192|0,c+176|0);b=H[197455];H[197455]=0;if((b|0)==1){break s}if(F[c+187|0]<0){Kb(H[c+176>>2])}if(F[c+203|0]>=0){break d}Kb(H[c+192>>2]);break d}a=$()|0;_()|0;break r}a=$()|0;_()|0;if(F[c+187|0]>=0){break r}Kb(H[c+176>>2])}if(F[c+203|0]>=0){break c}break b}break a}g=0;f=1;e=1;j=M[a+48>>3];t:{if(j==0){break t}e=0;i=M[a+16>>3];u:{if(i==1.7976931348623157e308){break u}k=M[a+32>>3];if(k==2.2250738585072014e-308){break u}e=k-i}i=e*.5;e=j/e;i=i*P(e+-1);if(!(e<1)){break t}i=-i}j=M[a+56>>3];v:{if(j==0){break v}f=0;g=M[a+24>>3];w:{if(g==1.7976931348623157e308){break w}k=M[a+40>>3];if(k==2.2250738585072014e-308){break w}f=k-g}g=f*.5;f=j/f;g=g*P(f+-1);if(!(f<1)){break v}g=-g}x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{if(e==1&f==1){break X}h=H[a+84>>2];b=Qb(48);H[c+192>>2]=b;H[c+196>>2]=9;H[c+200>>2]=-2147483636;H[197455]=0;Mb(b,403880,9);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+36>>2]=0;H[197455]=0;Da(1757,c+48|0,+e);b=H[197455];H[197455]=0;if((b|0)==1){break W}H[197455]=0;b=ca(1758,c+48|0,0,404064)|0;d=H[197455];H[197455]=0;if((d|0)==1){break V}H[c+72>>2]=H[b+8>>2];d=H[b+4>>2];H[c+64>>2]=H[b>>2];H[c+68>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,c- -64|0,404240)|0;d=H[197455];H[197455]=0;if((d|0)==1){break U}H[c+88>>2]=H[b+8>>2];d=H[b+4>>2];H[c+80>>2]=H[b>>2];H[c+84>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;Da(1757,c+32|0,+f);b=H[197455];H[197455]=0;if((b|0)==1){break T}H[197455]=0;b=I[c+43|0];d=b<<24>>24<0;b=ca(1759,c+80|0,(d?H[c+32>>2]:c+32|0)|0,(d?H[c+36>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break S}H[c+104>>2]=H[b+8>>2];d=H[b+4>>2];H[c+96>>2]=H[b>>2];H[c+100>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+96|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break R}H[c+120>>2]=H[c+104>>2];H[c+104>>2]=0;b=H[c+100>>2];H[c+112>>2]=H[c+96>>2];H[c+116>>2]=b;H[c+96>>2]=0;H[c+100>>2]=0;H[197455]=0;fa(1756,c+16|0,+i,-1);b=H[197455];H[197455]=0;if((b|0)==1){break Q}H[197455]=0;b=I[c+27|0];d=b<<24>>24<0;b=ca(1759,c+112|0,(d?H[c+16>>2]:c+16|0)|0,(d?H[c+20>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break P}H[c+136>>2]=H[b+8>>2];d=H[b+4>>2];H[c+128>>2]=H[b>>2];H[c+132>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+128|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[c+152>>2]=H[c+136>>2];H[c+136>>2]=0;b=H[c+132>>2];H[c+144>>2]=H[c+128>>2];H[c+148>>2]=b;H[c+128>>2]=0;H[c+132>>2]=0;H[197455]=0;fa(1756,c|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break N}H[197455]=0;b=I[c+11|0];d=b<<24>>24<0;b=ca(1759,c+144|0,(d?H[c>>2]:c)|0,(d?H[c+4>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break M}H[c+168>>2]=H[b+8>>2];d=H[b+4>>2];H[c+160>>2]=H[b>>2];H[c+164>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+160|0,41);b=H[197455];H[197455]=0;if((b|0)==1){break L}H[c+184>>2]=H[c+168>>2];H[c+168>>2]=0;b=H[c+164>>2];H[c+176>>2]=H[c+160>>2];H[c+180>>2]=b;H[c+160>>2]=0;H[c+164>>2]=0;H[197455]=0;ga(1755,h|0,c+192|0,c+176|0);b=H[197455];H[197455]=0;if((b|0)==1){break K}if(F[c+187|0]<0){Kb(H[c+176>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+139|0]<0){Kb(H[c+128>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+203|0]>=0){break X}Kb(H[c+192>>2])}b=H[a+84>>2];a=Qb(16);H[c+192>>2]=a;H[c+196>>2]=3;H[c+200>>2]=-2147483644;H[197455]=0;Mb(a,400916,3);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[a+12>>2]=0;H[197455]=0;ka(1760,b|0,c+192|0,1,0);a=H[197455];H[197455]=0;if((a|0)==1){break x}if(F[c+203|0]<0){Kb(H[c+192>>2])}xb=c+208|0;return}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;break D}a=$()|0;_()|0;break E}a=$()|0;_()|0;break F}a=$()|0;_()|0;break G}a=$()|0;_()|0;break H}a=$()|0;_()|0;break I}a=$()|0;_()|0;break J}a=$()|0;_()|0;if(F[c+187|0]>=0){break J}Kb(H[c+176>>2])}if(F[c+171|0]>=0){break I}Kb(H[c+160>>2])}if(F[c+11|0]>=0){break H}Kb(H[c>>2])}if(F[c+155|0]>=0){break G}Kb(H[c+144>>2])}if(F[c+139|0]>=0){break F}Kb(H[c+128>>2])}if(F[c+27|0]>=0){break E}Kb(H[c+16>>2])}if(F[c+123|0]>=0){break D}Kb(H[c+112>>2])}if(F[c+107|0]>=0){break C}Kb(H[c+96>>2])}if(F[c+43|0]>=0){break B}Kb(H[c+32>>2])}if(F[c+91|0]>=0){break A}Kb(H[c+80>>2])}if(F[c+75|0]>=0){break z}Kb(H[c+64>>2])}if(F[c+59|0]>=0){break y}Kb(H[c+48>>2])}if(F[c+203|0]>=0){break c}break b}a=$()|0;_()|0;if(F[c+203|0]>=0){break c}Kb(H[c+192>>2])}ea(a|0);X()}Kb(H[c+192>>2]);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function GF(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;a:{b:{c:{switch(c-1|0){case 0:d:{e:{f:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break e;case 0:break f;default:break b}}if(H[b+12>>2]!=1){break b}d=I[a+2|0]|I[a+3|0]<<8;c=163632;if(!d){break d}c=((d<<8|d>>>8)&65535)+a|0;break d}if(H[b+12>>2]!=1){break b}d=I[a+2|0]|I[a+3|0]<<8;c=163632;if(!d){break d}c=((d<<8|d>>>8)&65535)+a|0}return(Gc(c,H[H[b+8>>2]>>2])|0)!=-1;case 1:if((I[a|0]|I[a+1|0]<<8)!=256|H[b+12>>2]!=1){break b}break a;case 2:if((I[a|0]|I[a+1|0]<<8)!=256|H[b+12>>2]!=1){break b}break a;case 3:if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=I[a+2|0]|I[a+3|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+a|0}else{c=163632}c=Gc(c,H[H[b+8>>2]>>2]);g:{if((c|0)==-1){break g}f=163632;e=I[a+4|0]|I[a+5|0]<<8;c=c>>>0<((e<<8|e>>>8)&65535)>>>0?((c<<1)+a|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){f=((c<<8|c>>>8)&65535)+a|0}a=I[f|0]|I[f+1|0]<<8;if(!a){break g}e=(a<<8|a>>>8)&65535;c=f+2|0;a=H[b+12>>2];if(a>>>0<2){while(1){b=I[c|0]|I[c+1|0]<<8;if(b){b=((b<<8|b>>>8)&65535)+f|0}else{b=163632}b=I[b+2|0]|I[b+3|0]<<8;d=((b<<8|b>>>8)&65535)==(a|0);if(d){break g}c=c+2|0;e=e-1|0;if(e){continue}break g}}i=H[b+8>>2];while(1){h=163632;b=I[c|0]|I[c+1|0]<<8;if(b){h=((b<<8|b>>>8)&65535)+f|0}h:{b=I[h+2|0]|I[h+3|0]<<8;if((a|0)!=((b<<8|b>>>8)&65535)){break h}b=I[h+4|0]|I[h+5|0]<<8;if(H[i+4>>2]!=((b<<8|b>>>8)&65535)){break h}b=1;while(1){g=b+1|0;if((g|0)!=(a|0)){j=b<<1;b=g;j=a>>>0>b>>>0?(h+j|0)+4|0:163632;j=I[j|0]|I[j+1|0]<<8;if(H[i+(b<<2)>>2]==((j<<8|j>>>8)&65535)){continue}}break}if(a>>>0>g>>>0){break h}d=1;break g}c=c+2|0;e=e-1|0;if(e){continue}break}}return d;case 4:f=b;b=0;c=a;i:{j:{k:{l:{a=I[a|0]|I[a+1|0]<<8;switch(((a<<8|a>>>8)&65535)-1|0){case 2:break j;case 1:break k;case 0:break l;default:break i}}i=163632;a=I[c+2|0]|I[c+3|0]<<8;if(a){a=c+((a<<8|a>>>8)&65535)|0}else{a=163632}a=Gc(a,H[H[f+8>>2]>>2]);b=I[c+4|0]|I[c+5|0]<<8;a=a>>>0<((b<<8|b>>>8)&65535)>>>0?(c+(a<<1)|0)+6|0:163632;a=I[a|0]|I[a+1|0]<<8;if(a){i=c+((a<<8|a>>>8)&65535)|0}a=I[i|0]|I[i+1|0]<<8;m:{n:{if(a){h=(a<<8|a>>>8)&65535;c=i+2|0;g=H[f+12>>2];while(1){a=I[c|0]|I[c+1|0]<<8;if(a){e=((a<<8|a>>>8)&65535)+i|0}else{e=163632}a=I[e|0]|I[e+1|0]<<8;a=(a<<8|a>>>8)&65535;o:{if((a|0)!=(g|0)){break o}b=1;if(a>>>0<2){break m}d=1;a=1;j=H[f+8>>2];b=I[e+4|0]|I[e+5|0]<<8;if(H[j+4>>2]!=((b<<8|b>>>8)&65535)){break o}while(1){b=a+1|0;if((b|0)==(g|0)){break n}k=a<<1;a=b;b=e+k|0;b=I[b+4|0]|I[b+5|0]<<8;if(H[j+(a<<2)>>2]==((b<<8|b>>>8)&65535)){continue}break}if(a>>>0>=g>>>0){break n}}c=c+2|0;h=h-1|0;if(h){continue}break}}d=0}b=d}break i}k=H[f+8>>2];a=H[k>>2];p:{q:{r:{s:{d=I[c+4|0]|I[c+5|0]<<8;if(d){g=c+((d<<8|d>>>8)&65535)|0}else{g=163632}d=I[g|0]|I[g+1|0]<<8;m=d<<8|d>>>8;switch((m&65535)-1|0){case 1:break r;case 0:break s;default:break p}}b=a;a=I[g+2|0]|I[g+3|0]<<8;a=b-((a<<8|a>>>8)&65535)|0;b=I[g+4|0]|I[g+5|0]<<8;a=a>>>0<((b<<8|b>>>8)&65535)>>>0?(g+(a<<1)|0)+6|0:163632;break q}h=164024;b=I[g+2|0]|I[g+3|0]<<8;t:{if(!b){break t}b=((b<<8|b>>>8)&65535)-1|0;while(1){d=b+e>>>1|0;i=g+N(d,6)|0;j=I[i+4|0]|I[i+5|0]<<8;u:{if(a>>>0>=((j<<8|j>>>8)&65535)>>>0){e=I[i+6|0]|I[i+7|0]<<8;if(a>>>0>((e<<8|e>>>8)&65535)>>>0){e=d+1|0;break u}h=(g+N(d,6)|0)+4|0;break t}b=d-1|0}if((b|0)>=(e|0)){continue}break}}a=h+4|0}a=I[a|0]|I[a+1|0]<<8;b=(a<<8|a>>>8)&65535}i=163632;a=I[c+6|0]|I[c+7|0]<<8;a=((a<<8|a>>>8)&65535)>>>0>b>>>0?(c+(b<<1)|0)+8|0:163632;a=I[a|0]|I[a+1|0]<<8;if(a){i=c+((a<<8|a>>>8)&65535)|0}a=I[i|0]|I[i+1|0]<<8;v:{w:{if(a){j=(a<<8|a>>>8)&65535;h=i+2|0;f=H[f+12>>2];while(1){c=163632;a=I[h|0]|I[h+1|0]<<8;if(a){c=((a<<8|a>>>8)&65535)+i|0}a=I[c|0]|I[c+1|0]<<8;a=(a<<8|a>>>8)&65535;x:{if((a|0)!=(f|0)){break x}b=1;if(a>>>0<2){break v}a=H[k+4>>2];b=0;y:{z:{A:{switch((m&65535)-1|0){case 0:b=a;a=I[g+2|0]|I[g+3|0]<<8;a=b-((a<<8|a>>>8)&65535)|0;b=I[g+4|0]|I[g+5|0]<<8;a=a>>>0<((b<<8|b>>>8)&65535)>>>0?(g+(a<<1)|0)+6|0:163632;break z;case 1:break A;default:break y}}b=I[g+2|0]|I[g+3|0]<<8;B:{if(b){b=((b<<8|b>>>8)&65535)-1|0;e=0;while(1){l=b+e>>>1|0;d=(g+N(l,6)|0)+4|0;n=I[d|0]|I[d+1|0]<<8;C:{if(a>>>0>=((n<<8|n>>>8)&65535)>>>0){e=I[d+2|0]|I[d+3|0]<<8;if(a>>>0<=((e<<8|e>>>8)&65535)>>>0){break B}e=l+1|0;break C}b=l-1|0}if((b|0)>=(e|0)){continue}break}}d=164024}a=d+4|0}a=I[a|0]|I[a+1|0]<<8;b=(a<<8|a>>>8)&65535}e=1;a=1;d=b;b=I[c+4|0]|I[c+5|0]<<8;if((d|0)!=((b<<8|b>>>8)&65535)){break x}while(1){b=a+1|0;if((b|0)==(f|0)){break w}d=a<<1;a=b;if(AF(H[k+(a<<2)>>2],(c+d|0)+4|0,g)){continue}break}if(a>>>0>=f>>>0){break w}}h=h+2|0;j=j-1|0;if(j){continue}break}}e=0}b=e}break i}a=I[c+2|0]|I[c+3|0]<<8;a=a<<8|a>>>8;d=a&65535;if((d|0)!=H[f+12>>2]){break i}b=1;if((a&65535)>>>0<2){break i}g=H[H[f+8>>2]+4>>2];b=0;e=c+8|0;a=I[e|0]|I[e+1|0]<<8;if(a){a=c+((a<<8|a>>>8)&65535)|0}else{a=163632}if((Gc(a,g)|0)==-1){break i}b=1;while(1){D:{a=b+1|0;if((d|0)==(a|0)){a=d;break D}h=H[H[f+8>>2]+(a<<2)>>2];b=e+(b<<1)|0;b=I[b|0]|I[b+1|0]<<8;if(b){g=c+((b<<8|b>>>8)&65535)|0}else{g=163632}b=a;if((Gc(g,h)|0)!=-1){continue}}break}b=a>>>0>=d>>>0}return b;case 5:c=0;g=xb-16|0;xb=g;E:{F:{G:{H:{d=I[a|0]|I[a+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 2:break F;case 1:break G;case 0:break H;default:break E}}c=163632;d=I[a+2|0]|I[a+3|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}d=Gc(d,H[H[b+8>>2]>>2]);e=I[a+4|0]|I[a+5|0]<<8;d=d>>>0<((e<<8|e>>>8)&65535)>>>0?((d<<1)+a|0)+6|0:163632;d=I[d|0]|I[d+1|0]<<8;if(d){c=((d<<8|d>>>8)&65535)+a|0}a=H[31228];H[g+8>>2]=H[31227];H[g+12>>2]=a;a=H[31226];H[g>>2]=H[31225];H[g+4>>2]=a;c=CF(c,b,g);break E}h=xb-16|0;xb=h;c=163632;m=163632;d=I[a+4|0]|I[a+5|0]<<8;if(d){m=((d<<8|d>>>8)&65535)+a|0}d=I[a+6|0]|I[a+7|0]<<8;if(d){c=((d<<8|d>>>8)&65535)+a|0}d=I[a+8|0]|I[a+9|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}i=H[H[b+8>>2]>>2];I:{J:{K:{L:{e=I[c|0]|I[c+1|0]<<8;switch(((e<<8|e>>>8)&65535)-1|0){case 1:break K;case 0:break L;default:break I}}e=I[c+2|0]|I[c+3|0]<<8;e=i-((e<<8|e>>>8)&65535)|0;f=I[c+4|0]|I[c+5|0]<<8;e=e>>>0<((f<<8|f>>>8)&65535)>>>0?((e<<1)+c|0)+6|0:163632;break J}j=164024;e=I[c+2|0]|I[c+3|0]<<8;M:{if(!e){break M}f=((e<<8|e>>>8)&65535)-1|0;e=0;while(1){k=e+f>>>1|0;l=N(k,6)+c|0;n=I[l+4|0]|I[l+5|0]<<8;N:{if(i>>>0>=((n<<8|n>>>8)&65535)>>>0){e=I[l+6|0]|I[l+7|0]<<8;if(i>>>0>((e<<8|e>>>8)&65535)>>>0){e=k+1|0;break N}j=(N(k,6)+c|0)+4|0;break M}f=k-1|0}if((e|0)<=(f|0)){continue}break}}e=j+4|0}e=I[e|0]|I[e+1|0]<<8;f=(e<<8|e>>>8)&65535}e=163632;j=((f<<1)+a|0)+12|0;i=f;f=I[a+10|0]|I[a+11|0]<<8;f=i>>>0<((f<<8|f>>>8)&65535)>>>0?j:163632;f=I[f|0]|I[f+1|0]<<8;if(f){e=((f<<8|f>>>8)&65535)+a|0}H[h+12>>2]=d;H[h+8>>2]=c;H[h+4>>2]=m;H[h>>2]=716;c=CF(e,b,h);xb=h+16|0;break E}c=b;b=0;e=a;d=a+2|0;a=I[a+2|0]|I[a+3|0]<<8;h=d+(((a<<8|a>>>8)&65535)<<1)|0;f=h+2|0;d=I[f|0]|I[f+1|0]<<8;i=d<<8|d>>>8;d=i&65535;f=(d<<1)+f|0;O:{if((I[c+16|0]?I[f+2|0]|I[f+3|0]<<8|a:0)|(d|0)!=H[c+12>>2]){break O}b=1;if((i&65535)>>>0<2){break O}i=H[H[c+8>>2]+4>>2];b=0;f=h+6|0;a=I[f|0]|I[f+1|0]<<8;if(a){a=e+((a<<8|a>>>8)&65535)|0}else{a=163632}if((Gc(a,i)|0)==-1){break O}b=1;while(1){P:{a=b+1|0;if((d|0)==(a|0)){a=d;break P}i=H[H[c+8>>2]+(a<<2)>>2];b=f+(b<<1)|0;b=I[b|0]|I[b+1|0]<<8;if(b){h=e+((b<<8|b>>>8)&65535)|0}else{h=163632}b=a;if((Gc(h,i)|0)!=-1){continue}}break}b=a>>>0>=d>>>0}c=b}xb=g+16|0;return c;case 6:if((I[a|0]|I[a+1|0]<<8)==256){c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?c+a|0:163632;a=I[a+2|0]|I[a+3|0]<<8;a=GF(c,b,(a<<8|a>>>8)&65535)}else{a=0}return a;case 7:break c;default:break b}}if((I[a|0]|I[a+1|0]<<8)!=256|H[b+12>>2]!=1){break b}c=I[a+2|0]|I[a+3|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}f=(Gc(a,H[H[b+8>>2]>>2])|0)!=-1}return f}c=I[a+2|0]|I[a+3|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}return(Gc(a,H[H[b+8>>2]>>2])|0)!=-1}function F0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;d=xb-96|0;xb=d;a:{b:{c:{if(H[b>>2]==H[b+4>>2]){break c}H[d+88>>2]=0;H[d+80>>2]=0;H[d+84>>2]=0;H[197455]=0;f=a+8|0;qa(1765,f|0,d+80|0,0,0);c=H[197455];H[197455]=0;d:{e:{f:{g:{h:{i:{j:{k:{if((c|0)==1){break k}H[197455]=0;ga(1766,f|0,d+80|0,0);c=H[197455];H[197455]=0;if((c|0)==1){break k}H[197455]=0;ia(1764,f|0);c=H[197455];H[197455]=0;if((c|0)==1){break k}l:{m:{c=H[b>>2];switch((H[b+4>>2]-c>>4)-3|0){case 0:break l;case 1:break m;default:break d}}a=H[c>>2];c=H[c+16>>2];H[197455]=0;ba(1778,d+40|0,((a|0)>(c|0)?c:a)|0);a=H[197455];H[197455]=0;n:{o:{if((a|0)!=1){F[d+67|0]=1;H[197455]=0;Mb(d+56|0,410448,1);a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[d+48>>2];H[d+48>>2]=0;H[d+76>>2]=a;H[d+60>>2]=0;a=H[d+40>>2];c=H[d+44>>2];H[d+40>>2]=0;H[d+44>>2]=0;H[d+68>>2]=a;H[d+72>>2]=c;c=H[d+84>>2];if(c>>>0>2]){if(F[d+67|0]>=0){a=H[d+60>>2];H[c>>2]=H[d+56>>2];H[c+4>>2]=a;H[c+8>>2]=H[d- -64>>2];break f}H[197455]=0;ga(1647,c|0,H[d+56>>2],0);a=H[197455];H[197455]=0;if((a|0)!=1){break f}a=$()|0;_()|0;H[d+84>>2]=c;break n}H[197455]=0;ba(1777,d+80|0,d+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break o}if(F[d+79|0]>=0){break e}Kb(H[d+68>>2]);break e}a=$()|0;_()|0;break b}a=$()|0;_()|0}Vb(d+56|0);if(F[d+51|0]>=0){break b}Kb(H[d+40>>2]);break b}H[197455]=0;c=d+40|0;H[c+4>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=424816;e=H[197455];H[197455]=0;p:{q:{r:{s:{if((e|0)!=1){e=H[b>>2];g=H[e>>2];e=H[e+4>>2];H[197455]=0;xa(1780,c|0,+(g|0),+(e|0))|0;e=H[197455];H[197455]=0;if((e|0)==1){break s}e=H[b>>2];g=H[e+20>>2];e=H[e+16>>2];H[197455]=0;xa(1781,c|0,+(e|0),+(g|0))|0;e=H[197455];H[197455]=0;if((e|0)==1){break s}b=H[b>>2];e=H[b+36>>2];b=H[b+32>>2];H[197455]=0;xa(1781,c|0,+(b|0),+(e|0))|0;b=H[197455];H[197455]=0;if((b|0)==1){break s}H[197455]=0;aa(1782,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break s}H[197455]=0;ka(1783,d+24|0,a|0,c|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break r}a=I[d+35|0];if(!(a<<24>>24<0?H[d+28>>2]:a)){break h}H[197455]=0;b=ca(1762,d+56|0,404840,d+24|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break q}e=H[d+84>>2];if(e>>>0>2]){if(F[b+11|0]>=0){a=H[d+60>>2];H[e>>2]=H[d+56>>2];H[e+4>>2]=a;H[e+8>>2]=H[d- -64>>2];break j}a=H[b+4>>2];g=H[b>>2];H[197455]=0;ga(1647,e|0,g|0,a|0);a=H[197455];H[197455]=0;if((a|0)!=1){break j}a=$()|0;_()|0;H[d+84>>2]=e;Vb(b);break g}H[197455]=0;ba(1777,d+80|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break p}if(F[b+23|0]>=0){break i}Kb(H[b+12>>2]);break i}a=$()|0;_()|0;break b}a=$()|0;_()|0;oe(c);break b}a=$()|0;_()|0;oe(c);break b}a=$()|0;_()|0;break g}a=$()|0;_()|0;Vb(b);break g}a=$()|0;_()|0;break b}a=H[b+16>>2];H[e+12>>2]=H[b+12>>2];H[e+16>>2]=a;H[e+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[d+84>>2]=e+24}if(F[b+11|0]>=0){break h}Kb(H[b>>2])}H[197455]=0;a=aa(899,32)|0;b=H[197455];H[197455]=0;t:{if((b|0)!=1){H[d+56>>2]=a;H[d+60>>2]=4;H[d+64>>2]=-2147483640;H[197455]=0;Mb(a,405068,4);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+16>>2]=0;F[d+19|0]=0;H[197455]=0;H[d+8>>2]=0;ka(1767,f|0,d+56|0,d+80|0,d+8|0);a=H[197455];H[197455]=0;if((a|0)==1){break t}if(F[d+19|0]<0){Kb(H[d+8>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+35|0]<0){Kb(H[d+24>>2])}oe(c);break d}a=$()|0;_()|0;break g}a=$()|0;_()|0;if(F[d+19|0]<0){Kb(H[d+8>>2])}if(F[d+67|0]>=0){break g}Kb(H[d+56>>2])}if(F[d+35|0]<0){Kb(H[d+24>>2])}oe(c);break b}a=H[d+72>>2];H[c+12>>2]=H[d+68>>2];H[c+16>>2]=a;H[c+20>>2]=H[d+76>>2];H[d+68>>2]=0;H[d+72>>2]=0;H[d+76>>2]=0;H[d+84>>2]=c+24}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}c=H[b>>2];a=H[c+36>>2];c=H[c+4>>2];H[197455]=0;ba(1778,d+40|0,((a|0)<(c|0)?a:c)|0);a=H[197455];H[197455]=0;u:{v:{w:{x:{if((a|0)!=1){F[d+67|0]=1;H[197455]=0;Mb(d+56|0,410652,1);a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[d+48>>2];H[d+48>>2]=0;H[d+76>>2]=a;H[d+60>>2]=0;a=H[d+40>>2];c=H[d+44>>2];H[d+40>>2]=0;H[d+44>>2]=0;H[d+68>>2]=a;H[d+72>>2]=c;c=H[d+84>>2];if(c>>>0>2]){if(F[d+67|0]>=0){a=H[d+60>>2];H[c>>2]=H[d+56>>2];H[c+4>>2]=a;H[c+8>>2]=H[d- -64>>2];break v}H[197455]=0;ga(1647,c|0,H[d+56>>2],0);a=H[197455];H[197455]=0;if((a|0)!=1){break v}a=$()|0;_()|0;H[d+84>>2]=c;break w}H[197455]=0;ba(1777,d+80|0,d+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break x}if(F[d+79|0]>=0){break u}Kb(H[d+68>>2]);break u}a=$()|0;_()|0;break b}a=$()|0;_()|0}Vb(d+56|0);if(F[d+51|0]>=0){break b}Kb(H[d+40>>2]);break b}a=H[d+72>>2];H[c+12>>2]=H[d+68>>2];H[c+16>>2]=a;H[c+20>>2]=H[d+76>>2];H[d+68>>2]=0;H[d+72>>2]=0;H[d+76>>2]=0;H[d+84>>2]=c+24}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}a=H[b>>2];c=H[a>>2];a=H[a+16>>2];H[197455]=0;c=a-c|0;a=c>>31;ba(1778,d+40|0,(a^c)-a|0);a=H[197455];H[197455]=0;y:{z:{A:{B:{C:{D:{if((a|0)!=1){H[197455]=0;a=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break D}H[d+56>>2]=a;H[d+60>>2]=5;H[d+64>>2]=-2147483640;H[197455]=0;Mb(a,403488,5);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+20>>2]=0;H[d+76>>2]=H[d+48>>2];H[d+48>>2]=0;a=H[d+44>>2];H[d+68>>2]=H[d+40>>2];H[d+72>>2]=a;H[d+40>>2]=0;H[d+44>>2]=0;c=H[d+84>>2];if(c>>>0>2]){if(F[d+67|0]>=0){a=H[d+60>>2];H[c>>2]=H[d+56>>2];H[c+4>>2]=a;H[c+8>>2]=H[d- -64>>2];break z}H[197455]=0;ga(1647,c|0,H[d+56>>2],H[d+60>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){break z}a=$()|0;_()|0;H[d+84>>2]=c;break B}H[197455]=0;ba(1777,d+80|0,d+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break C}if(F[d+79|0]>=0){break y}Kb(H[d+68>>2]);break y}a=$()|0;_()|0;break b}a=$()|0;_()|0;break A}a=$()|0;_()|0}Vb(d+56|0)}if(F[d+51|0]>=0){break b}Kb(H[d+40>>2]);break b}a=H[d+72>>2];H[c+12>>2]=H[d+68>>2];H[c+16>>2]=a;H[c+20>>2]=H[d+76>>2];H[d+68>>2]=0;H[d+72>>2]=0;H[d+76>>2]=0;H[d+84>>2]=c+24}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}a=H[b>>2];b=H[a+36>>2];a=H[a+4>>2];H[197455]=0;b=b-a|0;a=b>>31;ba(1778,d+40|0,(a^b)-a|0);a=H[197455];H[197455]=0;E:{F:{G:{H:{I:{J:{if((a|0)!=1){H[197455]=0;a=aa(899,32)|0;b=H[197455];H[197455]=0;if((b|0)==1){break J}H[d+56>>2]=a;H[d+60>>2]=6;H[d+64>>2]=-2147483640;H[197455]=0;Mb(a,403652,6);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+24>>2]=0;H[d+76>>2]=H[d+48>>2];H[d+48>>2]=0;a=H[d+44>>2];H[d+68>>2]=H[d+40>>2];H[d+72>>2]=a;H[d+40>>2]=0;H[d+44>>2]=0;b=H[d+84>>2];if(b>>>0>2]){if(F[d+67|0]>=0){a=H[d+60>>2];H[b>>2]=H[d+56>>2];H[b+4>>2]=a;H[b+8>>2]=H[d- -64>>2];break F}H[197455]=0;ga(1647,b|0,H[d+56>>2],H[d+60>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){break F}a=$()|0;_()|0;H[d+84>>2]=b;break H}H[197455]=0;ba(1777,d+80|0,d+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break I}if(F[d+79|0]>=0){break E}Kb(H[d+68>>2]);break E}a=$()|0;_()|0;break b}a=$()|0;_()|0;break G}a=$()|0;_()|0}Vb(d+56|0)}if(F[d+51|0]>=0){break b}Kb(H[d+40>>2]);break b}a=H[d+72>>2];H[b+12>>2]=H[d+68>>2];H[b+16>>2]=a;H[b+20>>2]=H[d+76>>2];H[d+68>>2]=0;H[d+72>>2]=0;H[d+76>>2]=0;H[d+84>>2]=b+24}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}H[197455]=0;a=aa(899,32)|0;b=H[197455];H[197455]=0;K:{if((b|0)!=1){H[d+56>>2]=a;H[d+60>>2]=4;H[d+64>>2]=-2147483640;H[197455]=0;Mb(a,410880,4);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+16>>2]=0;F[d+51|0]=0;H[197455]=0;H[d+40>>2]=0;ka(1767,f|0,d+56|0,d+80|0,d+40|0);a=H[197455];H[197455]=0;if((a|0)==1){break K}if(F[d+51|0]<0){Kb(H[d+40>>2])}if(F[d+67|0]>=0){break d}Kb(H[d+56>>2]);break d}a=$()|0;_()|0;break b}a=$()|0;_()|0;if(F[d+51|0]<0){Kb(H[d+40>>2])}if(F[d+67|0]>=0){break b}Kb(H[d+56>>2]);break b}a=H[d+80>>2];if(!a){break c}b=H[d+84>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(c|0)){continue}break}b=H[d+80>>2]}H[d+84>>2]=a;Kb(b)}xb=d+96|0;return}yc(d+80|0);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function MD(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;o=xb-32|0;xb=o;a:{b:{c:{d:{j=H[a+8>>2];e=H[a+12>>2];if((j|0)==(e|0)){break d}f=I[b+11|0];h=f<<24>>24<0;k=h?H[b>>2]:b;g=h?H[b+4>>2]:f;if(!g){while(1){i=I[j+11|0];f=i<<24>>24;e:{if((f|0)<0?H[j+4>>2]:i){break e}if((f|0)<=0){break d}if(I[k|0]!=I[j|0]){break e}f=j;h=k;while(1){i=i-1|0;if(!i){break d}g=I[h+1|0];l=I[f+1|0];f=f+1|0;h=h+1|0;if((g|0)==(l|0)){continue}break}}j=j+20|0;if((e|0)!=(j|0)){continue}break c}}while(1){i=I[j+11|0];h=i<<24>>24;f=(h|0)<0;f:{if((g|0)!=((f?H[j+4>>2]:i)|0)){break f}l=H[j>>2];if(!f){if(!h){break d}f=j;h=k;if(I[h|0]!=(l&255)){break f}while(1){i=i-1|0;if(!i){break d}l=I[h+1|0];m=I[f+1|0];f=f+1|0;h=h+1|0;if((l|0)==(m|0)){continue}break}break f}if(!md(l,k,g)){break d}}j=j+20|0;if((e|0)!=(j|0)){continue}break}break c}if((e|0)!=(j|0)){break b}}H[c>>2]=0;H[d>>2]=0;break a}f=H[j+16>>2];if(f){H[c>>2]=H[j+12>>2];H[d>>2]=f;break a}p=Qb(24);H[p>>2]=H[a>>2];H[p+4>>2]=H[a+4>>2];Br(o,p);l=VD(o);H[c>>2]=0;H[d>>2]=0;a=l;f=F[b+11|0]<0?H[b>>2]:b;m=d;q=xb-80|0;xb=q;r=c;if(c){g:{H[r>>2]=0;while(1){d=0;b=xb-352|0;xb=b;h:{i:{if(!yn(a,b+16|0,b+96|0,256)){c=ac(b+96|0);if(c>>>0>=4294967280){break i}j:{k:{if(c>>>0>=11){h=c+16&-16;d=Qb(h);H[b+8>>2]=h|-2147483648;H[b>>2]=d;H[b+4>>2]=c;break k}F[b+11|0]=c;d=b;if(!c){break j}}Ob(d,b+96|0,c)}F[c+d|0]=0;c=H[b>>2];d=F[b+11|0];h=fc(f,(d|0)<0?c:b);if((d|0)<0){Kb(c)}d=!h}xb=b+352|0;break h}qd(b);X()}if(d){yn(a,q,0,0);b=H[q+28>>2];c=H[m>>2];f=c?b>>>0>>0?b:c:b;H[m>>2]=f;t=Qb(f);H[r>>2]=t;g=xb-16|0;xb=g;d=-102;e=a;l:{if(!e|!(H[e+96>>2]|H[e+100>>2])){break l}a=H[e+224>>2];if(a){b=H[a>>2];if(b){Kb(b)}H[a>>2]=0;if(H[a+72>>2]==8){Bg(a+4|0)}Kb(a);H[e+224>>2]=0}c=H[e+76>>2]+H[e+220>>2]|0;b=H[e+216>>2];a=b+H[e+72>>2]|0;if(We(e,H[e+48>>2],a,a>>>0>>0?c+1|0:c,0)){d=-103;break l}h=Xd(e,H[e+48>>2],g+8|0);k=H[g+8>>2];b=-1;a=H[e+48>>2];m:{n:{if((zb[H[e+4>>2]](H[e+28>>2],a,g+15|0,1)|0)==1){d=I[g+15|0];break n}d=0;c=0;if(zb[H[e+24>>2]](H[e+28>>2],a)|0){break m}}o:{if((zb[H[e+4>>2]](H[e+28>>2],a,g+15|0,1)|0)==1){c=I[g+15|0];break o}c=d;if(!(zb[H[e+24>>2]](H[e+28>>2],a)|0)){break o}c=0;break m}b=h?-1:(k|0)==67324752?0:-103;c=c<<8|d}H[g+4>>2]=c;a=H[e+48>>2];p:{q:{if((zb[H[e+4>>2]](H[e+28>>2],a,g+15|0,1)|0)==1){c=I[g+15|0];break q}d=-1;c=0;if(zb[H[e+24>>2]](H[e+28>>2],a)|0){break p}}r:{if((zb[H[e+4>>2]](H[e+28>>2],a,g+15|0,1)|0)==1){break r}if(!(zb[H[e+24>>2]](H[e+28>>2],a)|0)){break r}d=-1;c=0;break p}d=b;c=c&8}s:{t:{h=H[e+48>>2];u:{v:{if((zb[H[e+4>>2]](H[e+28>>2],h,g+15|0,1)|0)==1){a=I[g+15|0];break v}if(zb[H[e+24>>2]](H[e+28>>2],h)|0){break u}a=0}if((zb[H[e+4>>2]](H[e+28>>2],h,g+15|0,1)|0)==1){b=I[g+15|0];break t}b=a;if(!(zb[H[e+24>>2]](H[e+28>>2],h)|0)){break t}}H[g+4>>2]=0;d=-1;break s}a=a|b<<8;H[g+4>>2]=a;if(d){break s}d=-103;if((a|0)!=H[e+140>>2]){break s}if(a>>>0<=12){d=0;if(1<>2],g+4|0);a=-1;b=-1;w:{if(Xd(e,H[e+48>>2],g+4|0)){break w}b=h?-1:d;if(b){break w}b=0;if(H[g+4>>2]==H[e+148>>2]){break w}b=c?0:-103}x:{if(Xd(e,H[e+48>>2],g+4|0)){break x}d=H[g+4>>2];if((d|0)==-1){a=b;break x}a=b;if(b){break x}a=0;if(!H[e+156>>2]&(d|0)==H[e+152>>2]){break x}a=c?0:-103}b=-1;y:{if(Xd(e,H[e+48>>2],g+4|0)){break y}d=H[g+4>>2];if((d|0)==-1){b=a;break y}b=a;if(b){break y}b=0;if(!H[e+164>>2]&(d|0)==H[e+160>>2]){break y}b=c?0:-103}d=H[e+48>>2];z:{A:{if((zb[H[e+4>>2]](H[e+28>>2],d,g+15|0,1)|0)==1){a=I[g+15|0];break A}a=0;c=-1;if(zb[H[e+24>>2]](H[e+28>>2],d)|0){break z}}B:{if((zb[H[e+4>>2]](H[e+28>>2],d,g+15|0,1)|0)==1){c=I[g+15|0];break B}c=a;if(!(zb[H[e+24>>2]](H[e+28>>2],d)|0)){break B}a=0;c=-1;break z}a=c<<8|a;c=b;if(b){break z}c=H[e+168>>2]==(a|0)?0:-103}b=c;C:{d=H[e+48>>2];D:{E:{if((zb[H[e+4>>2]](H[e+28>>2],d,g+15|0,1)|0)==1){i=I[g+15|0];break E}if(zb[H[e+24>>2]](H[e+28>>2],d)|0){break D}i=0}if((zb[H[e+4>>2]](H[e+28>>2],d,g+15|0,1)|0)==1){c=I[g+15|0];break C}c=i;if(!(zb[H[e+24>>2]](H[e+28>>2],d)|0)){break C}}d=-103;break l}d=-103;if(b){break l}h=H[e+216>>2];k=H[e+220>>2];d=-104;b=Tb(208);if(!b){break l}n=Tb(16384);H[b+200>>2]=0;H[b+96>>2]=0;H[b+100>>2]=0;u=i|c<<8;H[b+88>>2]=u;c=k;i=a+h|0;c=i>>>0>>0?c+1|0:c;i=i+30|0;c=i>>>0<30?c+1|0:c;H[b+80>>2]=i;H[b+84>>2]=c;H[b>>2]=n;if(!n){Kb(b);break l}H[b+72>>2]=0;c=H[e+148>>2];H[b+112>>2]=0;H[b+116>>2]=c;H[b+104>>2]=0;H[b+108>>2]=0;c=H[e+140>>2];H[b+184>>2]=c;H[b+180>>2]=H[e+48>>2];d=H[e+4>>2];H[b+136>>2]=H[e>>2];H[b+140>>2]=d;d=H[e+12>>2];H[b+144>>2]=H[e+8>>2];H[b+148>>2]=d;d=H[e+20>>2];H[b+152>>2]=H[e+16>>2];H[b+156>>2]=d;d=H[e+28>>2];H[b+160>>2]=H[e+24>>2];H[b+164>>2]=d;d=H[e+36>>2];H[b+168>>2]=H[e+32>>2];H[b+172>>2]=d;H[b+176>>2]=H[e+40>>2];d=H[e+72>>2];i=H[e+76>>2];H[b+24>>2]=0;H[b+192>>2]=d;H[b+196>>2]=i;F:{G:{if((c|0)==12){H[b+200>>2]=1;break G}if((c|0)!=8){break G}H[b+4>>2]=0;H[b+8>>2]=0;H[b+44>>2]=0;H[b+36>>2]=0;H[b+40>>2]=0;d=Jr(b+4|0,-15,239667);if(d){break F}H[b+72>>2]=8;h=H[e+216>>2];k=H[e+220>>2]}c=H[e+156>>2];H[b+120>>2]=H[e+152>>2];H[b+124>>2]=c;d=H[e+160>>2];i=H[e+164>>2];c=k;a=h+(a+u|0)|0;c=a>>>0>>0?c+1|0:c;a=a+30|0;c=a>>>0<30?c+1|0:c;H[b+64>>2]=a;H[b+68>>2]=c;H[b+128>>2]=d;H[b+132>>2]=i;d=0;H[b+8>>2]=0;H[e+228>>2]=0;H[e+224>>2]=b;break l}Kb(b)}xb=g+16|0;if(!d){H:{if(!e){break H}b=H[e+224>>2];if(!f|(!b|!H[b>>2])){break H}H[b+20>>2]=f;H[b+16>>2]=t;c=H[b+132>>2];a=H[b+128>>2];d=f;if(!(H[b+200>>2]|(!c&a>>>0>=d>>>0|(c|0)!=0))){f=a;H[b+20>>2]=a}k=H[b+120>>2];a=H[b+8>>2];h=k+a|0;c=H[b+124>>2];c=a>>>0>h>>>0?c+1|0:c;if(!(!H[b+200>>2]|(!c&d>>>0<=h>>>0|(c|0)!=0))){f=a+k|0;H[b+20>>2]=f}if(!f){break H}k=b+4|0;i=b+136|0;while(1){I:{if(a){break I}c=H[b+124>>2];d=c;a=H[b+120>>2];if(!(c|a)){a=0;break I}c=H[b+196>>2]+H[b+68>>2]|0;h=H[b+64>>2];f=h+H[b+192>>2]|0;if(We(i,H[b+180>>2],f,f>>>0>>0?c+1|0:c,0)){break H}c=!d&a>>>0<16384;a=c?a:16384;f=c?d:0;if((zb[H[b+140>>2]](H[b+164>>2],H[b+180>>2],H[b>>2],a)|0)!=(a|0)){break H}H[b+8>>2]=a;H[b+4>>2]=H[b>>2];c=f+H[b+68>>2]|0;h=a+H[b+64>>2]|0;H[b+64>>2]=h;H[b+68>>2]=a>>>0>h>>>0?c+1|0:c;d=H[b+120>>2];f=H[b+124>>2]-((a>>>0>d>>>0)+f|0)|0;H[b+120>>2]=d-a;H[b+124>>2]=f}J:{c=H[b+184>>2];if(!(H[b+200>>2]?0:c)){if(!(!!(H[b+120>>2]|H[b+124>>2])|a)){break H}c=H[b+20>>2];c=a>>>0>c>>>0?c:a;K:{if(!c){break K}d=0;a=0;if(c-1>>>0>=3){h=c&-4;f=0;while(1){F[H[b+16>>2]+a|0]=I[H[b+4>>2]+a|0];g=a|1;F[g+H[b+16>>2]|0]=I[g+H[b+4>>2]|0];g=a|2;F[g+H[b+16>>2]|0]=I[g+H[b+4>>2]|0];g=a|3;F[g+H[b+16>>2]|0]=I[g+H[b+4>>2]|0];a=a+4|0;f=f+4|0;if((h|0)!=(f|0)){continue}break}}f=c&3;if(!f){break K}while(1){F[H[b+16>>2]+a|0]=I[H[b+4>>2]+a|0];a=a+1|0;d=d+1|0;if((f|0)!=(d|0)){continue}break}}d=H[b+108>>2];a=c;h=H[b+104>>2];f=a+h|0;H[b+104>>2]=f;H[b+108>>2]=f>>>0>>0?d+1|0:d;v=b,w=yd(H[b+112>>2],H[b+16>>2],a),H[v+112>>2]=w;d=H[b+128>>2];f=H[b+132>>2]-(a>>>0>d>>>0)|0;H[b+128>>2]=d-a;H[b+132>>2]=f;H[b+8>>2]=H[b+8>>2]-a;H[b+20>>2]=H[b+20>>2]-a;H[b+16>>2]=a+H[b+16>>2];H[b+4>>2]=a+H[b+4>>2];H[b+24>>2]=a+H[b+24>>2];s=a+s|0;break J}if((c|0)==12){break J}h=H[b+16>>2];c=H[b+24>>2];a=Vh(k,2);if((a|0)>=0){a=H[b+28>>2]?-3:a}g=H[b+24>>2];d=c;c=g-c|0;n=H[b+104>>2];f=c+n|0;g=0-(d>>>0>g>>>0)|0;d=g+H[b+108>>2]|0;H[b+104>>2]=f;H[b+108>>2]=f>>>0>>0?d+1|0:d;v=b,w=yd(H[b+112>>2],h,c),H[v+112>>2]=w;d=H[b+128>>2];f=H[b+132>>2]-((c>>>0>d>>>0)+g|0)|0;H[b+128>>2]=d-c;H[b+132>>2]=f;s=c+s|0;if(!a){break J}break H}if(!H[b+20>>2]){break H}a=H[b+8>>2];continue}}L:{if(!e){break L}a=H[e+224>>2];if(!a){break L}b=H[a>>2];if(b){Kb(b)}H[a>>2]=0;if(H[a+72>>2]==8){Bg(a+4|0)}Kb(a);H[e+224>>2]=0}}break g}if(!TD(a)){continue}break}}}xb=q+80|0;if(l){mv(l)}H[j+16>>2]=H[m>>2];H[j+12>>2]=H[r>>2];Kb(p)}xb=o+32|0}function TC(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,z=0,A=0,B=0,C=0;e=xb-1408|0;xb=e;h=d<<3;q=h&-32|4;f=c<<2;r=f&-32|2;g=b<<3;s=g&-32|4;y=H[H[a+480>>2]+24>>2];k=H[a+132>>2];a:{if((k|0)<=0){k=0;break a}l=h|28;u=l+q>>1;o=f|30;t=o+r>>1;p=g|28;v=p+s>>1;h=H[a+136>>2];i=H[h+8>>2];w=H[h+4>>2];x=H[h>>2];f=0;n=2147483647;while(1){h=I[f+x|0];b:{if((h|0)<(s|0)){g=h-p<<1;g=N(g,g);h=h-s<<1;h=N(h,h);break b}if((h|0)>(p|0)){g=h-s<<1;g=N(g,g);h=h-p<<1;h=N(h,h);break b}c:{if((h|0)<=(v|0)){h=h-p<<1;g=N(h,h);break c}h=h-s<<1;g=N(h,h)}h=0}j=I[f+w|0];d:{if((j|0)<(r|0)){m=h;h=N(j-r|0,3);h=m+N(h,h)|0;j=N(j-o|0,3);m=N(j,j);break d}if((j|0)>(o|0)){m=h;h=N(j-o|0,3);h=m+N(h,h)|0;j=N(j-r|0,3);m=N(j,j);break d}if((j|0)<=(t|0)){j=N(j-o|0,3);m=N(j,j);break d}j=N(j-r|0,3);m=N(j,j)}j=m+g|0;g=I[f+i|0];e:{if((g|0)<(q|0)){m=h;h=g-q|0;h=m+N(h,h)|0;g=g-l|0;g=N(g,g);break e}if((g|0)>(l|0)){m=h;h=g-l|0;h=m+N(h,h)|0;g=g-q|0;g=N(g,g);break e}if((g|0)<=(u|0)){g=g-l|0;g=N(g,g);break e}g=g-q|0;g=N(g,g)}H[(e+384|0)+(f<<2)>>2]=h;h=g+j|0;n=(h|0)<(n|0)?h:n;f=f+1|0;if((k|0)!=(f|0)){continue}break}g=k&1;f:{if((k|0)==1){k=0;f=0;break f}j=k&-2;k=0;f=0;h=0;while(1){if(H[(e+384|0)+(f<<2)>>2]<=(n|0)){F[(e+128|0)+k|0]=f;k=k+1|0}l=f|1;if(H[(e+384|0)+(l<<2)>>2]<=(n|0)){F[(e+128|0)+k|0]=l;k=k+1|0}f=f+2|0;h=h+2|0;if((j|0)!=(h|0)){continue}break}}if(!g|H[(e+384|0)+(f<<2)>>2]>(n|0)){break a}F[(e+128|0)+k|0]=f;k=k+1|0}H[e+888>>2]=2147483647;H[e+892>>2]=2147483647;H[e+880>>2]=2147483647;H[e+884>>2]=2147483647;H[e+872>>2]=2147483647;H[e+876>>2]=2147483647;H[e+864>>2]=2147483647;H[e+868>>2]=2147483647;H[e+856>>2]=2147483647;H[e+860>>2]=2147483647;H[e+848>>2]=2147483647;H[e+852>>2]=2147483647;H[e+840>>2]=2147483647;H[e+844>>2]=2147483647;H[e+832>>2]=2147483647;H[e+836>>2]=2147483647;H[e+824>>2]=2147483647;H[e+828>>2]=2147483647;H[e+816>>2]=2147483647;H[e+820>>2]=2147483647;H[e+808>>2]=2147483647;H[e+812>>2]=2147483647;H[e+800>>2]=2147483647;H[e+804>>2]=2147483647;H[e+792>>2]=2147483647;H[e+796>>2]=2147483647;H[e+784>>2]=2147483647;H[e+788>>2]=2147483647;H[e+776>>2]=2147483647;H[e+780>>2]=2147483647;H[e+768>>2]=2147483647;H[e+772>>2]=2147483647;H[e+760>>2]=2147483647;H[e+764>>2]=2147483647;H[e+752>>2]=2147483647;H[e+756>>2]=2147483647;H[e+744>>2]=2147483647;H[e+748>>2]=2147483647;H[e+736>>2]=2147483647;H[e+740>>2]=2147483647;H[e+728>>2]=2147483647;H[e+732>>2]=2147483647;H[e+720>>2]=2147483647;H[e+724>>2]=2147483647;H[e+712>>2]=2147483647;H[e+716>>2]=2147483647;H[e+704>>2]=2147483647;H[e+708>>2]=2147483647;H[e+696>>2]=2147483647;H[e+700>>2]=2147483647;H[e+688>>2]=2147483647;H[e+692>>2]=2147483647;H[e+680>>2]=2147483647;H[e+684>>2]=2147483647;H[e+672>>2]=2147483647;H[e+676>>2]=2147483647;H[e+664>>2]=2147483647;H[e+668>>2]=2147483647;H[e+656>>2]=2147483647;H[e+660>>2]=2147483647;H[e+648>>2]=2147483647;H[e+652>>2]=2147483647;H[e+640>>2]=2147483647;H[e+644>>2]=2147483647;H[e+632>>2]=2147483647;H[e+636>>2]=2147483647;H[e+624>>2]=2147483647;H[e+628>>2]=2147483647;H[e+616>>2]=2147483647;H[e+620>>2]=2147483647;H[e+608>>2]=2147483647;H[e+612>>2]=2147483647;H[e+600>>2]=2147483647;H[e+604>>2]=2147483647;H[e+592>>2]=2147483647;H[e+596>>2]=2147483647;H[e+584>>2]=2147483647;H[e+588>>2]=2147483647;H[e+576>>2]=2147483647;H[e+580>>2]=2147483647;H[e+568>>2]=2147483647;H[e+572>>2]=2147483647;H[e+560>>2]=2147483647;H[e+564>>2]=2147483647;H[e+552>>2]=2147483647;H[e+556>>2]=2147483647;H[e+544>>2]=2147483647;H[e+548>>2]=2147483647;H[e+536>>2]=2147483647;H[e+540>>2]=2147483647;H[e+528>>2]=2147483647;H[e+532>>2]=2147483647;H[e+520>>2]=2147483647;H[e+524>>2]=2147483647;H[e+512>>2]=2147483647;H[e+516>>2]=2147483647;H[e+504>>2]=2147483647;H[e+508>>2]=2147483647;H[e+496>>2]=2147483647;H[e+500>>2]=2147483647;H[e+488>>2]=2147483647;H[e+492>>2]=2147483647;H[e+480>>2]=2147483647;H[e+484>>2]=2147483647;H[e+472>>2]=2147483647;H[e+476>>2]=2147483647;H[e+464>>2]=2147483647;H[e+468>>2]=2147483647;H[e+456>>2]=2147483647;H[e+460>>2]=2147483647;H[e+448>>2]=2147483647;H[e+452>>2]=2147483647;H[e+440>>2]=2147483647;H[e+444>>2]=2147483647;H[e+432>>2]=2147483647;H[e+436>>2]=2147483647;H[e+424>>2]=2147483647;H[e+428>>2]=2147483647;H[e+416>>2]=2147483647;H[e+420>>2]=2147483647;H[e+408>>2]=2147483647;H[e+412>>2]=2147483647;H[e+400>>2]=2147483647;H[e+404>>2]=2147483647;H[e+392>>2]=2147483647;H[e+396>>2]=2147483647;H[e+384>>2]=2147483647;H[e+388>>2]=2147483647;if((k|0)>0){u=H[a+136>>2];t=0;while(1){a=3;j=I[(e+128|0)+t|0];h=r-I[j+H[u+4>>2]|0]|0;f=N(h,3);m=N(f,f);g=s-I[j+H[u>>2]|0]|0;f=g<<1;m=m+N(f,f)|0;f=q-I[j+H[u+8>>2]|0]|0;p=m+N(f,f)|0;h=N(h,72);w=h+1872|0;x=h+1584|0;m=h+1296|0;z=h+1008|0;A=h+720|0;B=h+432|0;f=f<<4;n=f+320|0;l=f+192|0;o=f- -64|0;C=h+144|0;v=(g<<6)+256|0;h=e;f=e+384|0;while(1){if(H[f>>2]>(p|0)){H[f>>2]=p;F[h|0]=j}g=o+p|0;if((g|0)>2]){H[f+4>>2]=g;F[h+1|0]=j}g=g+l|0;if((g|0)>2]){H[f+8>>2]=g;F[h+2|0]=j}g=g+n|0;if((g|0)>2]){H[f+12>>2]=g;F[h+3|0]=j}g=p+C|0;if((g|0)>2]){H[f+16>>2]=g;F[h+4|0]=j}i=g+o|0;if((i|0)>2]){H[f+20>>2]=i;F[h+5|0]=j}i=i+l|0;if((i|0)>2]){H[f+24>>2]=i;F[h+6|0]=j}i=i+n|0;if((i|0)>2]){H[f+28>>2]=i;F[h+7|0]=j}g=g+B|0;if((g|0)>2]){H[f+32>>2]=g;F[h+8|0]=j}i=g+o|0;if((i|0)>2]){H[f+36>>2]=i;F[h+9|0]=j}i=i+l|0;if((i|0)>2]){H[f+40>>2]=i;F[h+10|0]=j}i=i+n|0;if((i|0)>2]){H[f+44>>2]=i;F[h+11|0]=j}g=g+A|0;if((g|0)>2]){H[f+48>>2]=g;F[h+12|0]=j}i=g+o|0;if((i|0)>2]){H[f+52>>2]=i;F[h+13|0]=j}i=i+l|0;if((i|0)>2]){H[f+56>>2]=i;F[h+14|0]=j}i=i+n|0;if((i|0)>2]){H[f+60>>2]=i;F[h+15|0]=j}g=g+z|0;if((g|0)>2]){H[f+64>>2]=g;F[h+16|0]=j}i=g+o|0;if((i|0)>2]){H[f+68>>2]=i;F[h+17|0]=j}i=i+l|0;if((i|0)>2]){H[f+72>>2]=i;F[h+18|0]=j}i=i+n|0;if((i|0)>2]){H[f+76>>2]=i;F[h+19|0]=j}g=g+m|0;if((g|0)>2]){H[f+80>>2]=g;F[h+20|0]=j}i=g+o|0;if((i|0)>2]){H[f+84>>2]=i;F[h+21|0]=j}i=i+l|0;if((i|0)>2]){H[f+88>>2]=i;F[h+22|0]=j}i=i+n|0;if((i|0)>2]){H[f+92>>2]=i;F[h+23|0]=j}g=g+x|0;if((g|0)>2]){H[f+96>>2]=g;F[h+24|0]=j}i=g+o|0;if((i|0)>2]){H[f+100>>2]=i;F[h+25|0]=j}i=i+l|0;if((i|0)>2]){H[f+104>>2]=i;F[h+26|0]=j}i=i+n|0;if((i|0)>2]){H[f+108>>2]=i;F[h+27|0]=j}g=g+w|0;if((g|0)>2]){H[f+112>>2]=g;F[h+28|0]=j}g=g+o|0;if((g|0)>2]){H[f+116>>2]=g;F[h+29|0]=j}g=g+l|0;if((g|0)>2]){H[f+120>>2]=g;F[h+30|0]=j}g=g+n|0;if((g|0)>2]){H[f+124>>2]=g;F[h+31|0]=j}g=a;a=g-1|0;p=p+v|0;h=h+32|0;f=f+128|0;v=v+512|0;if(g){continue}break}t=t+1|0;if((t|0)!=(k|0)){continue}break}}h=b&-4;g=0;f=e;a=(d&-4)<<1;d=c&-8;j=(d|1)<<6;k=(d|2)<<6;n=(d|3)<<6;l=(d|4)<<6;o=(d|5)<<6;q=(d|6)<<6;r=(c|7)<<6;while(1){b=H[(h+g<<2)+y>>2];c=a+(b+(d<<6)|0)|0;G[c>>1]=I[f|0]+1;G[c+2>>1]=I[f+1|0]+1;G[c+4>>1]=I[f+2|0]+1;G[c+6>>1]=I[f+3|0]+1;c=a+(b+j|0)|0;G[c>>1]=I[f+4|0]+1;G[c+2>>1]=I[f+5|0]+1;G[c+4>>1]=I[f+6|0]+1;G[c+6>>1]=I[f+7|0]+1;c=a+(b+k|0)|0;G[c>>1]=I[f+8|0]+1;G[c+2>>1]=I[f+9|0]+1;G[c+4>>1]=I[f+10|0]+1;G[c+6>>1]=I[f+11|0]+1;c=a+(b+n|0)|0;G[c>>1]=I[f+12|0]+1;G[c+2>>1]=I[f+13|0]+1;G[c+4>>1]=I[f+14|0]+1;G[c+6>>1]=I[f+15|0]+1;c=a+(b+l|0)|0;G[c>>1]=I[f+16|0]+1;G[c+2>>1]=I[f+17|0]+1;G[c+4>>1]=I[f+18|0]+1;G[c+6>>1]=I[f+19|0]+1;c=a+(b+o|0)|0;G[c>>1]=I[f+20|0]+1;G[c+2>>1]=I[f+21|0]+1;G[c+4>>1]=I[f+22|0]+1;G[c+6>>1]=I[f+23|0]+1;c=a+(b+q|0)|0;G[c>>1]=I[f+24|0]+1;G[c+2>>1]=I[f+25|0]+1;G[c+4>>1]=I[f+26|0]+1;G[c+6>>1]=I[f+27|0]+1;b=a+(b+r|0)|0;G[b>>1]=I[f+28|0]+1;G[b+2>>1]=I[f+29|0]+1;G[b+4>>1]=I[f+30|0]+1;G[b+6>>1]=I[f+31|0]+1;f=f+32|0;g=g+1|0;if((g|0)!=4){continue}break}xb=e+1408|0}function TU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;h=xb-16|0;xb=h;a:{b:{d=bc(a,0);if(!d){d=Ic(a,30192,b+132|0);if(!d){break b}}H[h+12>>2]=d;break a}H[b+168>>2]=H[b+168>>2]+(H[b+204>>2]<<16);c:{if(!(H[b+132>>2]!=1346785840|K[b+136>>2]>4|K[b+144>>2]<58)){if(H[b+140>>2]==3338){break c}}d=2;H[h+12>>2]=2;break a}g=H[b+152>>2];d=bc(a,g);H[h>>2]=d;d:{e:{if(d){break e}e=nc(a,h);d=H[h>>2];if(d){break e}d=8;if(e>>>0>13106){break e}f=H[a+4>>2];if(N(e,5)+2>>>0>=f-g>>>0){break e}if(f>>>0>N(e,23)+95>>>0){break d}}H[h+12>>2]=d;break a}d=0;H[h+12>>2]=0;H[b>>2]=e;if((c|0)<0){break a}q=c&65535;if(e>>>0<=q>>>0){d=6;H[h+12>>2]=6;break a}i=H[b+204>>2];d=bc(a,H[b+152>>2]);H[h>>2]=d;f:{g:{h:{if(d){break h}c=nc(a,h);d=H[h>>2];if(d){break h}d=6;if(c>>>0<=q>>>0){break h}d=ud(a,N(q,5));H[h>>2]=d;if(d){break h}e=nc(a,h);d=H[h>>2];if(d){break h}g=0;f=xb-16|0;xb=f;H[h>>2]=0;i:{j:{k:{l:{d=H[a+8>>2];if(K[a+4>>2]<=d+2>>>0){break l}c=H[a+20>>2];m:{if(c){if((zb[c|0](a,d,f+13|0,3)|0)!=3){break l}d=H[a+8>>2];c=f+13|0;break m}c=H[a>>2];if(!c){break k}c=c+d|0}g=I[c+2|0]|(I[c+1|0]<<8|I[c|0]<<16);break j}H[h>>2]=85;break i}g=0}H[a+8>>2]=d+3}xb=f+16|0;d=H[h>>2];if(d){break h}H[b+240>>2]=e;H[b+244>>2]=g;d=bc(a,g);H[h>>2]=d;if(d){break h}d=Jc(a,e);H[h>>2]=d;if(d){break h}n:{if(e>>>0<13){break n}d=H[a+32>>2];f=d+e|0;H[b+248>>2]=I[d+2|0]|(I[d+1|0]<<8|I[d|0]<<16);H[b+252>>2]=I[d+5|0]|(I[d+4|0]<<8|I[d+3|0]<<16);H[b+256>>2]=I[d+8|0]|(I[d+7|0]<<8|I[d+6|0]<<16);H[b+260>>2]=I[d+11|0]|(I[d+10|0]<<8|I[d+9|0]<<16);c=0;e=d+13|0;g=I[d+12|0];j=g&4;if(j){c=g&8?2:1;k=g&3?c:c+3|0}else{k=c}c=g&32;if(f>>>0>31&(c?2:1))|0)>>>0){break n}k=g&16;o:{if(!j){break o}p:{if(g&8){e=I[d+13|0]|I[d+14|0]<<8;j=(e<<8|e>>>8)<<16>>16;e=d+15|0;break p}j=I[d+13|0];e=d+14|0}H[b+268>>2]=j;if(g&3){break o}H[b+276>>2]=I[e+2|0]|(I[e+1|0]<<8|I[e|0]<<16);e=e+3|0}q:{if(!k){c=e;break q}r:{if(c){c=I[e|0]|I[e+1|0]<<8;d=(c<<8|c>>>8)<<16>>16;c=e+2|0;break r}d=I[e|0];c=e+1|0}H[b+272>>2]=d}s:{if(!(g&64)){d=c;break s}d=c+1|0;if(f>>>0>>0){break g}c=I[c|0];if(c){while(1){e=d+2|0;if(e>>>0>f>>>0){break g}d=e+I[d|0]|0;if(f>>>0>>0){break g}c=c-1|0;if(c){continue}break}}H[h>>2]=0}if(f>>>0>>0){break n}c=I[d+1|0]|I[d|0]<<8;H[b+280>>2]=c;H[b+284>>2]=I[d+4|0]|(I[d+3|0]<<8|I[d+2|0]<<16);if(!i){break f}if(f>>>0>>0){break n}H[b+280>>2]=c|I[d+5|0]<<16;break f}H[h>>2]=8;break f}H[h+12>>2]=d;break a}H[h>>2]=8}wc(a);d=H[h>>2];H[h+12>>2]=d;if(d){break a}e=H[b+280>>2];p=H[b+284>>2];l=H[a+28>>2];H[b+428>>2]=b+424;H[b+424>>2]=0;H[b+292>>2]=p;f=b+288|0;H[f>>2]=l;t:{u:{v:{w:{x:{d=bc(a,p);if(d){break x}d=Jc(a,e);H[h>>2]=d;if(d){break x}d=H[a+32>>2];H[f+148>>2]=d;if((e|0)<15){break w}H[f+8>>2]=I[d+1|0]|I[d|0]<<8;H[f+12>>2]=I[d+3|0]|I[d+2|0]<<8;H[f+16>>2]=I[d+5|0]|I[d+4|0]<<8;c=I[d+6|0]|I[d+7|0]<<8;H[f+20>>2]=(c<<8|c>>>8)<<16>>16;c=I[d+8|0]|I[d+9|0]<<8;H[f+24>>2]=(c<<8|c>>>8)<<16>>16;c=I[d+10|0]|I[d+11|0]<<8;H[f+28>>2]=(c<<8|c>>>8)<<16>>16;c=I[d+12|0]|I[d+13|0]<<8;H[f+32>>2]=(c<<8|c>>>8)<<16>>16;k=I[d+14|0];H[f+36>>2]=k;r=k&4;if(r){c=d+15|0}else{if(e>>>0<17){break w}c=I[d+15|0]|I[d+16|0]<<8;H[f+40>>2]=(c<<8|c>>>8)<<16>>16;c=d+17|0}j=d+e|0;if(k&128){d=c+1|0;if(j>>>0>>0){break v}g=I[c|0];y:{if(!g){c=d;break y}while(1){e=d+2|0;if(e>>>0>j>>>0){break v}c=e+I[d|0]|0;if(j>>>0>>0){break v}d=I[d+1|0]-1|0;if((d&255)>>>0<=3){d=zb[H[(d<<24>>24<<2)+30308>>2]](e,c,f)|0;if(d){break u}}d=c;g=g-1|0;if(g){continue}break}}H[h>>2]=0}e=c+3|0;if(j>>>0>>0){break w}d=I[c+2|0]|(I[c+1|0]<<8|I[c|0]<<16);if(d){c=d+e|0;if(c>>>0>j>>>0){break w}m=f+84|0;n=f+88|0;while(1){z:{o=e+4|0;if(o>>>0>c>>>0){break z}i=I[e+1|0]|I[e|0]<<8;if(i>>>0<4|d>>>0>>0){break z}g=d;A:{B:{C:{D:{E:{d=I[e+2|0]|I[e+3|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 2:break C;case 1:break D;case 0:break E;default:break A}}d=by(o,i-4|0,l,m);break B}if(i>>>0<36){break A}d=I[e+14|0]|I[e+15|0]<<8;H[f+44>>2]=(d<<8|d>>>8)<<16>>16;d=I[e+16|0]|I[e+17|0]<<8;H[f+48>>2]=(d<<8|d>>>8)<<16>>16;d=I[e+18|0]|I[e+19|0]<<8;H[f+52>>2]=(d<<8|d>>>8)<<16>>16;break A}d=by(o,i-4|0,l,n)}H[h>>2]=d;if(d){break x}}e=e+i|0;d=g-i|0;if((g|0)!=(i|0)){continue}}break}e=c}d=e+1|0;if(j>>>0>>0){break w}c=I[e|0];H[f+104>>2]=c;if(j>>>0<(c<<1)+d>>>0){break w}i=Ub(l,4,0,c,0,h);H[f+108>>2]=i;if(H[h>>2]){break t}F:{if(!c){break F}o=c&1;G:{if((c|0)==1){e=0;break G}c=c&254;e=0;g=0;while(1){m=e<<2;n=I[d|0]|I[d+1|0]<<8;H[m+i>>2]=(n<<8|n>>>8)<<16>>16;n=i+(m|4)|0;m=I[d+2|0]|I[d+3|0]<<8;H[n>>2]=(m<<8|m>>>8)<<16>>16;e=e+2|0;d=d+4|0;g=g+2|0;if((c|0)!=(g|0)){continue}break}}if(!o){break F}c=I[d|0]|I[d+1|0]<<8;H[i+(e<<2)>>2]=(c<<8|c>>>8)<<16>>16;d=d+2|0}e=d+8|0;if(j>>>0>>0){break w}H[f+112>>2]=I[d|0];H[f+116>>2]=I[d+1|0];H[f+68>>2]=I[d+3|0]|I[d+2|0]<<8;H[f+56>>2]=I[d+5|0]|I[d+4|0]<<8;i=I[d+7|0]|I[d+6|0]<<8;H[f+120>>2]=i;H[f+124>>2]=(e+p|0)-H[a+32>>2];p=k>>>3&1;o=k&2;m=k&16;n=k&32;if(j>>>0>>1)+(o?5:4)+(m>>>4)+(n>>>5)|0)+e>>>0){break w}l=Ub(l,16,0,i,0,h);H[f+128>>2]=l;if(H[h>>2]|!i){break t}c=0;while(1){H:{if(o){g=I[e+1|0]|I[e|0]<<8;d=e+2|0;break H}g=I[e|0];d=e+1|0}k=l+(c<<4)|0;H[k>>2]=g;I:{if(r){e=I[d|0]|I[d+1|0]<<8;g=(e<<8|e>>>8)<<16>>16;d=d+2|0;break I}g=H[f+40>>2]}H[k+4>>2]=g;d=d+p|0;J:{if(m){g=I[d+1|0]|I[d|0]<<8;d=d+2|0;break J}g=I[d|0];d=d+1|0}H[k+8>>2]=g;K:{if(n){g=I[d+1|0]<<8|I[d|0]<<16;j=2;e=d+3|0;break K}g=I[d|0]<<8;j=1;e=d+2|0}H[k+12>>2]=I[d+j|0]|g;c=c+1|0;if((i|0)!=(c|0)){continue}break}break t}H[h+12>>2]=d;break a}H[h>>2]=8;break t}d=8}H[h>>2]=d}wc(a);e=0;a=H[a+8>>2];H[f+148>>2]=0;H[f+144>>2]=a;d=H[h>>2];H[h+12>>2]=d;if(d){break a}H[b+4>>2]=q;a=H[b+408>>2];H[b+16>>2]=a+1;c=H[b+8>>2]|1;H[b+8>>2]=c;L:{M:{N:{if(!a){break N}d=H[f+128>>2];while(1){if(H[(d+(e<<4)|0)+12>>2]){break N}e=e+1|0;if((a|0)!=(e|0)){continue}break}break M}if((a|0)!=(e|0)){break L}}c=0;if(H[f+92>>2]){break L}d=3;H[h+12>>2]=3;break a}a=H[b+324>>2];d=(a^-1)&4|c|(a&1?32:16);H[b+8>>2]=d;c=H[b+380>>2];if(c){d=d|2;H[b+8>>2]=d}if(H[f+132>>2]){H[b+8>>2]=d|64}d=H[b+372>>2];H[b+20>>2]=d;if(!d){H[b+20>>2]=H[b+368>>2]}H[b+28>>2]=0;H[b+32>>2]=0;H[b+24>>2]=H[b+376>>2];d=H[f+28>>2];e=H[f+32>>2];g=H[f+24>>2];j=H[f+20>>2];i=H[b+300>>2];G[b+68>>1]=i;k=H[b+320>>2];G[b+70>>1]=k;l=H[b+312>>2];G[b+72>>1]=l;H[b+52>>2]=j;H[b+56>>2]=g;H[b+60>>2]=d;H[b+64>>2]=e;d=(k<<16>>16)-(l<<16>>16)|0;e=(N(i&65535,12)>>>0)/10|0;G[b+74>>1]=(d|0)>e<<16>>16?d:e;if(c){a=Ub(H[H[b+104>>2]+28>>2],16,0,c,0,h+12|0);H[b+32>>2]=a;d=H[h+12>>2];if(d){break a}d=H[f+100>>2];if((c|0)!=1){j=c&-2;e=0;while(1){i=H[d+4>>2];G[a>>1]=i;g=H[d>>2];i=i<<6;H[a+12>>2]=i;H[a+4>>2]=i;G[a+2>>1]=g;H[a+8>>2]=g<<6;i=H[d+40>>2];G[a+16>>1]=i;g=H[d+36>>2];i=i<<6;H[a+28>>2]=i;H[a+20>>2]=i;G[a+18>>1]=g;H[a+24>>2]=g<<6;d=d+72|0;a=a+32|0;e=e+2|0;if((j|0)!=(e|0)){continue}break}}if(c&1){e=H[d+4>>2];G[a>>1]=e;d=H[d>>2];e=e<<6;H[a+12>>2]=e;H[a+4>>2]=e;G[a+2>>1]=d;H[a+8>>2]=d<<6}H[b+28>>2]=c;a=H[b+324>>2]}O:{if(!(a&4)){a=H[f+40>>2];break O}a=H[f+120>>2];if(!a){a=0;break O}g=a&3;d=H[f+128>>2];c=0;P:{if(a-1>>>0<3){a=0;break P}f=a&-4;a=0;e=0;while(1){j=H[d+4>>2];a=(a|0)>(j|0)?a:j;j=H[d+20>>2];a=(a|0)>(j|0)?a:j;j=H[d+36>>2];a=(a|0)>(j|0)?a:j;j=H[d+52>>2];a=(a|0)>(j|0)?a:j;d=d- -64|0;e=e+4|0;if((f|0)!=(e|0)){continue}break}}if(!g){break O}while(1){e=H[d+4>>2];a=(a|0)>(e|0)?a:e;d=d+16|0;c=c+1|0;if((g|0)!=(c|0)){continue}break}}G[b+76>>1]=a;G[b+78>>1]=J[b+74>>1];a=J[b+68>>1];G[b+82>>1]=(a>>>0)/30;G[b+80>>1]=0-((a>>>0)/10|0);H[h>>2]=b;H[h+4>>2]=1970170211;H[h+8>>2]=65539;d=of(29996,0,h,0);H[h+12>>2]=d;if(!H[b+420>>2]){break a}H[b+8>>2]=H[b+8>>2]|64}xb=h+16|0;return d|0}function qL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=xb-240|0;xb=f;n=1;j=H[b+540>>2];a:{if((d|0)<=0){c=0;break a}m=d&3;b:{if(d-1>>>0<3){c=0;d=0;break b}o=d&-4;c=0;d=0;while(1){i=1;l=d<<3;g=H[l+e>>2]-1768386662|0;if(g){if((g|0)==13){k=1}}else{c=1}g=c;c=H[(l|8)+e>>2]-1768386662|0;if(c){if((c|0)==13){k=1}i=g}c=1;g=H[(l|16)+e>>2]-1768386662|0;if(g){if((g|0)==13){k=1}g=i}else{g=1}i=H[(l|24)+e>>2]-1768386662|0;if(i){if((i|0)==13){k=1}c=g}d=d+4|0;p=p+4|0;if((o|0)!=(p|0)){continue}break}}if(!m){break a}g=c;while(1){i=H[(d<<3)+e>>2]-1768386662|0;if(i){if((i|0)==13){k=1}c=g}else{c=1}d=d+1|0;g=c;h=h+1|0;if((m|0)!=(h|0)){continue}break}}c:{if(H[H[b+128>>2]+52>>2]){break c}g=0;d=J[b+152>>1];d:{if(!d){break d}g=H[b+156>>2];e=g+(d<<4)|0;d=g;while(1){if(H[d+12>>2]?H[d>>2]==1735162214:0){break c}d=d+16|0;if(e>>>0>d>>>0){continue}break}d=g;while(1){if(H[d+12>>2]?H[d>>2]==1128678944:0){break c}d=d+16|0;if(e>>>0>d>>>0){continue}break}while(1){if(H[g+12>>2]?H[g>>2]==1128678962:0){break d}g=g+16|0;if(e>>>0>g>>>0){continue}break}g=0}n=(g|0)!=0}d=1;e=zb[H[b+516>>2]](b,1935829368,a,0)|0;i=(e|0)!=0&n;e:{f:{g:{if(i){break g}h=H[j+68>>2];if(!h){break g}g=0;h=zb[h|0](b,a)|0;d=(h|0)!=0;if(!e){break g}if(!h){break f}}e=zb[H[j+24>>2]](b,a)|0;H[f+12>>2]=e;g=d;if(e){break e}}d=zb[H[b+516>>2]](b,1128418371,a,0)|0;e=zb[H[b+516>>2]](b,1128416340,a,0)|0;if((J[b+178>>1]-16385&65535)>>>0<=49166){H[f+12>>2]=8;break e}d=i&((d|0)!=0&(e|0)!=0);zb[H[j+36>>2]](b,a)|0;zb[H[j+32>>2]](b,a)|0;zb[H[j+48>>2]](b,a)|0;h=zb[H[j+44>>2]](b,a)|0;h:{if(!g){e=d;break h}e=zb[H[j+28>>2]](b,a,0)|0;H[f+12>>2]=e;i:{j:{k:{if(!e){g=zb[H[j+92>>2]](b,a,0)|0;H[f+12>>2]=g;if((g&255)!=142){break j}H[f+12>>2]=147;e=H[H[b+128>>2]+52>>2];if(!e){break e}if(H[H[e>>2]+8>>2]){break k}break e}if((e&255)!=142){break e}e=0;if(H[b+148>>2]==1953658213){break i}H[f+12>>2]=143;e=H[H[b+128>>2]+52>>2];if(!e|!H[H[e>>2]+8>>2]){break e}}G[b+250>>1]=0;e=d;break i}e=d;if(g){break e}}d=zb[H[j+28>>2]](b,a,1)|0;H[f+12>>2]=d;l:{m:{if(d){break m}d=zb[H[j+92>>2]](b,a,1)|0;H[f+12>>2]=d;if(d){break m}F[b+292|0]=1;break l}if((d&255)!=142){break e}}if(!(zb[H[j+40>>2]](b,a)|0)){break h}G[b+372>>1]=65535}d=H[j+96>>2];if(d){zb[d|0](b,a)|0}d=H[j+112>>2];if(d){zb[d|0](b,a)|0;zb[H[j+116>>2]](b,a)|0}zb[H[j+64>>2]](b,a)|0;zb[H[j+60>>2]](b,a)|0;zb[H[j+56>>2]](b,a)|0;H[b+20>>2]=0;H[b+24>>2]=0;H[b+16>>2]=J[b+264>>1];a=b+24|0;d=b+20|0;n:{if(!(!(F[b+437|0]&1)|J[b+372>>1]==65535)){o:{if(!(c&255)){c=If(b,16,d);H[f+12>>2]=c;if(c){break e}if(H[d>>2]){break o}}c=If(b,1,d);H[f+12>>2]=c;if(c){break e}}if(!(k&255)){c=If(b,17,a);H[f+12>>2]=c;if(c){break e}}if(H[a>>2]){break n}a=If(b,2,a);H[f+12>>2]=a;if(!a){break n}break e}g=If(b,21,d);H[f+12>>2]=g;if(g){break e}i=H[d>>2];if(!(i|c&255)){c=If(b,16,d);H[f+12>>2]=c;if(c){break e}i=H[d>>2]}if(!i){c=If(b,1,d);H[f+12>>2]=c;if(c){break e}}c=If(b,22,a);H[f+12>>2]=c;if(c){break e}d=H[a>>2];if(!(d|k&255)){c=If(b,17,a);H[f+12>>2]=c;if(c){break e}d=H[a>>2]}if(d){break n}a=If(b,2,a);H[f+12>>2]=a;if(a){break e}}d=H[b+8>>2];a=e|((H[b+872>>2]?0:(H[b+796>>2]&-2)!=2)?d:d|16384);d=a|24;d=h?d:H[b+476>>2]==196608?d:a|536;a=H[b+488>>2]?d|4:d;a=I[b+292|0]?a|32:a;h=H[b+820>>2]?a|64:a;if(F[b+740|0]&1){k=0;a=J[b+152>>1];p:{if(!a){break p}d=H[b+156>>2];a=d+(a<<4)|0;c=d;while(1){q:{if(!(!H[c+12>>2]|H[c>>2]!=1735162214)){c=d;r:{while(1){if(H[c+12>>2]?H[c>>2]==1735811442:0){break r}c=c+16|0;if(a>>>0>c>>>0){continue}break}c=0}h=c?h|256:h;break q}c=c+16|0;if(a>>>0>c>>>0){continue}}break}while(1){if(!(!H[d+12>>2]|H[d>>2]!=1128678962)){k=d;break p}d=d+16|0;if(a>>>0>d>>>0){continue}break}}h=k?h|256:h}H[b+8>>2]=h;s:{if(!(!e|J[b+372>>1]==65535)){a=J[b+436>>1];a=a>>>4&2|(a&513)!=0;break s}a=J[b+204>>1];a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=a>>>4&252645135|(a&252645135)<<4;a=a>>>2&858993459|(a&858993459)<<2;a=(a>>>1|(a&1073741824)<<1)>>>30|0}H[b+12>>2]=a|H[b+12>>2];c=H[b+508>>2];H[f+232>>2]=c;t:{if(!H[f+232>>2]){break t}a=H[b+512>>2];if(a>>>0<4){break t}H[f+232>>2]=H[f+232>>2]+2;H[f+232>>2]=H[f+232>>2]+2;H[f+236>>2]=I[H[f+232>>2]-1|0]|I[H[f+232>>2]-2|0]<<8;if(!H[f+236>>2]){break t}d=a+c|0;while(1){if(d>>>0>2]+8>>>0){break t}H[f+232>>2]=H[f+232>>2]+2;a=I[H[f+232>>2]-2|0];e=I[H[f+232>>2]-1|0];H[f+232>>2]=H[f+232>>2]+2;G[f+224>>1]=e|a<<8;a=I[H[f+232>>2]-2|0];e=I[H[f+232>>2]-1|0];H[f+232>>2]=H[f+232>>2]+4;H[f+216>>2]=b;H[f+220>>2]=0;G[f+226>>1]=e|a<<8;a=I[H[f+232>>2]-1|0]|(I[H[f+232>>2]-3|0]<<16|I[H[f+232>>2]-4|0]<<24|I[H[f+232>>2]-2|0]<<8);if(!(!a|a>>>0>H[b+512>>2]-2>>>0)){H[f+212>>2]=a+c;a=H[f+212>>2];H[f+208>>2]=I[a+1|0]|I[a|0]<<8;H[f+204>>2]=94960;u:{if(!H[H[f+204>>2]>>2]){break u}while(1){H[f+200>>2]=H[H[f+204>>2]>>2];if(H[H[f+200>>2]+40>>2]==H[f+208>>2]){H[f+20>>2]=0;a=f+24|0;H[a+156>>2]=H[f+212>>2];H[a+160>>2]=d;H[a+164>>2]=0;H[a+168>>2]=0;H[f+196>>2]=J[b+264>>1];e=H[H[f+200>>2]+44>>2];H[197455]=0;a=da(e|0,H[f+212>>2],a|0)|0;e=H[197455];H[197455]=0;v:{w:{if((e|0)!=1){H[f+20>>2]=a;break w}a=ha(782428)|0;if((_()|0)!=(ya(782428)|0)){break v}sa(a|0)|0;ra()}if(H[f+192>>2]){break u}if(of(H[f+200>>2],H[f+212>>2],f+216|0,f+16|0)){break u}H[H[f+16>>2]+20>>2]=H[f+20>>2];break u}ea(a|0);X()}H[f+204>>2]=H[f+204>>2]+4;if(H[H[f+204>>2]>>2]){continue}break}}}H[f+236>>2]=H[f+236>>2]-1;if(H[f+236>>2]){continue}break}}g=H[b+36>>2];x:{if((g|0)>0){h=H[b+40>>2];i=0;d=0;while(1){c=H[h+(d<<2)>>2];a=G[c+10>>1];e=95008;y:{z:{A:{B:{switch(J[c+8>>1]){case 0:e=95020;break A;case 1:if(a){break z}e=95032;break A;case 2:break A;case 3:break B;default:break z}}if(!(1151>>>a&1)|a>>>0>=11){break z}e=H[(a<<2)+95912>>2]}a=H[e+8>>2];H[c+4>>2]=a;if((a|0)!=1970170211&(a|0)!=1937337698){break y}i=1;break y}H[c+4>>2]=0}d=d+1|0;if((g|0)!=(d|0)){continue}break}if(i&255){break x}}H[f+24>>2]=b;H[f+28>>2]=1970170211;H[f+32>>2]=65539;a=of(94432,0,f+24|0,0);H[f+12>>2]=a;C:{if(!a){break C}a=a&255;if((a|0)==163){break C}if((a|0)!=7){break e}}H[f+12>>2]=0}a=H[b+800>>2];D:{if(!a){break D}e=H[H[b+104>>2]+28>>2];k=J[b+178>>1];if(!k|J[b+372>>1]==65535){k=1;c=1}else{c=J[b+374>>1]}q=b,r=Ub(e,16,0,a,0,f+12|0),H[q+32>>2]=r;if(H[f+12>>2]){break e}g=Ub(e,4,0,a,0,f+12|0);if(H[f+12>>2]){break e}l=k>>>1|0;n=c<<16>>16;h=0;d=0;while(1){c=H[b+32>>2];i=zb[H[j+108>>2]](b,d,f+24|0)|0;H[f+12>>2]=i;E:{if(i){break E}c=c+(h<<4)|0;G[c>>1]=H[f+44>>2]>>>6;i=J[f+24>>1];H[c+8>>2]=i<<6;G[c+2>>1]=(l+N(i,n)|0)/(k|0);m=J[f+26>>1];o=m<<6;H[c+4>>2]=o;H[c+12>>2]=o;if(!i|!m){break E}H[g+(h<<2)>>2]=d;h=h+1|0}d=d+1|0;if((a|0)!=(d|0)){continue}break}a=Ub(e,4,a,h,g,f+12|0);if(!h){break D}H[b+804>>2]=a;H[b+28>>2]=h;H[b+8>>2]=H[b+8>>2]|2}d=H[b+8>>2];if(!(d&3)){d=d|1;H[b+8>>2]=d}if(!(d&1)){break e}G[b+68>>1]=J[b+178>>1];H[b+52>>2]=G[b+196>>1];H[b+56>>2]=G[b+198>>1];H[b+60>>2]=G[b+200>>1];H[b- -64>>2]=G[b+202>>1];d=J[b+372>>1];F:{if(!(!(I[b+436|0]&128)|(d|0)==65535)){a=J[b+442>>1];G[b+70>>1]=a;c=J[b+444>>1];G[b+72>>1]=c;G[b+74>>1]=J[b+446>>1]+(a-c|0);break F}a=J[b+220>>1];G[b+70>>1]=a;c=J[b+222>>1];G[b+72>>1]=c;G[b+74>>1]=J[b+224>>1]+(a-c|0);if(a|c|(d|0)==65535){break F}a=J[b+442>>1];c=J[b+444>>1];if(a|c){G[b+72>>1]=c;G[b+70>>1]=a;G[b+74>>1]=J[b+446>>1]+(a-c|0);break F}a=J[b+448>>1];G[b+70>>1]=a;c=a;a=J[b+450>>1];G[b+74>>1]=c+a;G[b+72>>1]=0-a}G[b+76>>1]=J[b+226>>1];G[b+78>>1]=J[(I[b+292|0]?306:74)+b>>1];a=G[b+486>>1];G[b+82>>1]=a;G[b+80>>1]=J[b+484>>1]+((a|0)/-2|0)}xb=f+240|0;return H[f+12>>2]}function bA(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;d=xb-144|0;xb=d;H[d+136>>2]=0;H[d+128>>2]=0;H[d+132>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{b=H[c>>2];g=H[c+4>>2];if((b|0)!=(g|0)){while(1){c=H[b>>2];m:{if(H[b+4>>2]-c>>>0<16){break m}c=H[c>>2];H[197455]=0;fa(1756,d- -64|0,+(c|0),-1);c=H[197455];H[197455]=0;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((c|0)!=1){H[197455]=0;c=ca(1758,d- -64|0,0,405252)|0;e=H[197455];H[197455]=0;if((e|0)==1){break I}H[d+88>>2]=H[c+8>>2];e=H[c+4>>2];H[d+80>>2]=H[c>>2];H[d+84>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+80|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break H}H[d+104>>2]=H[d+88>>2];H[d+88>>2]=0;c=H[d+84>>2];H[d+96>>2]=H[d+80>>2];H[d+100>>2]=c;H[d+80>>2]=0;H[d+84>>2]=0;c=H[H[b>>2]+4>>2];H[197455]=0;fa(1756,d+48|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break G}H[197455]=0;c=I[d+59|0];e=c<<24>>24<0;c=ca(1759,d+96|0,(e?H[d+48>>2]:d+48|0)|0,(e?H[d+52>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break F}H[d+120>>2]=H[c+8>>2];e=H[c+4>>2];H[d+112>>2]=H[c>>2];H[d+116>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+112|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break E}H[d+24>>2]=H[d+120>>2];H[d+120>>2]=0;c=H[d+116>>2];e=H[d+112>>2];H[d+16>>2]=e;H[d+20>>2]=c;H[d+112>>2]=0;H[d+116>>2]=0;H[197455]=0;f=e;c=F[d+27|0];e=(c|0)<0;ca(1759,d+128|0,(e?f:d+16|0)|0,(e?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break D}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}c=H[b>>2];h=H[b+4>>2];if((c|0)!=(h|0)){while(1){e=H[c>>2];H[197455]=0;fa(1756,d+80|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break x}H[197455]=0;ba(1650,d+80|0,44);e=H[197455];H[197455]=0;if((e|0)==1){break w}H[d+104>>2]=H[d+88>>2];H[d+88>>2]=0;e=H[d+84>>2];H[d+96>>2]=H[d+80>>2];H[d+100>>2]=e;H[d+80>>2]=0;H[d+84>>2]=0;e=H[c+4>>2];H[197455]=0;fa(1756,d- -64|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break v}H[197455]=0;e=I[d+75|0];f=e<<24>>24<0;e=ca(1759,d+96|0,(f?H[d+64>>2]:d- -64|0)|0,(f?H[d+68>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break u}H[d+120>>2]=H[e+8>>2];f=H[e+4>>2];H[d+112>>2]=H[e>>2];H[d+116>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+112|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break t}H[d+24>>2]=H[d+120>>2];H[d+120>>2]=0;e=H[d+116>>2];f=H[d+112>>2];H[d+16>>2]=f;H[d+20>>2]=e;H[d+112>>2]=0;H[d+116>>2]=0;H[197455]=0;i=f;e=F[d+27|0];f=(e|0)<0;ca(1759,d+128|0,(f?i:d+16|0)|0,(f?H[d+20>>2]:e&255)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break s}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}c=c+8|0;if((h|0)!=(c|0)){continue}break}c=H[b>>2]}c=H[c>>2];H[197455]=0;fa(1756,d+80|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)!=1){break n}a=$()|0;_()|0;break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;if(F[d+27|0]>=0){break C}Kb(H[d+16>>2])}if(F[d+123|0]>=0){break B}Kb(H[d+112>>2])}if(F[d+59|0]>=0){break A}Kb(H[d+48>>2])}if(F[d+107|0]>=0){break z}Kb(H[d+96>>2])}if(F[d+91|0]>=0){break y}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break b}Kb(H[d+64>>2]);break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;break o}a=$()|0;_()|0;break p}a=$()|0;_()|0;break q}a=$()|0;_()|0;break r}a=$()|0;_()|0;if(F[d+27|0]>=0){break r}Kb(H[d+16>>2])}if(F[d+123|0]>=0){break q}Kb(H[d+112>>2])}if(F[d+75|0]>=0){break p}Kb(H[d+64>>2])}if(F[d+107|0]>=0){break o}Kb(H[d+96>>2])}if(F[d+91|0]>=0){break b}Kb(H[d+80>>2]);break b}H[197455]=0;ba(1650,d+80|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break l}H[d+104>>2]=H[d+88>>2];H[d+88>>2]=0;c=H[d+84>>2];H[d+96>>2]=H[d+80>>2];H[d+100>>2]=c;H[d+80>>2]=0;H[d+84>>2]=0;c=H[H[b>>2]+4>>2];H[197455]=0;fa(1756,d- -64|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break k}H[197455]=0;c=I[d+75|0];e=c<<24>>24<0;c=ca(1759,d+96|0,(e?H[d+64>>2]:d- -64|0)|0,(e?H[d+68>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break j}H[d+120>>2]=H[c+8>>2];e=H[c+4>>2];H[d+112>>2]=H[c>>2];H[d+116>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+112|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break i}H[d+24>>2]=H[d+120>>2];H[d+120>>2]=0;c=H[d+116>>2];e=H[d+112>>2];H[d+16>>2]=e;H[d+20>>2]=c;H[d+112>>2]=0;H[d+116>>2]=0;H[197455]=0;f=e;c=F[d+27|0];e=(c|0)<0;ca(1759,d+128|0,(e?f:d+16|0)|0,(e?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break h}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+91|0]>=0){break m}Kb(H[d+80>>2])}b=b+12|0;if((g|0)!=(b|0)){continue}break}}H[197455]=0;b=ca(1762,d+16|0,404840,d+128|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break c}a=$()|0;_()|0;break b}a=$()|0;_()|0;break d}a=$()|0;_()|0;break e}a=$()|0;_()|0;break f}a=$()|0;_()|0;break g}a=$()|0;_()|0;if(F[d+27|0]>=0){break g}Kb(H[d+16>>2])}if(F[d+123|0]>=0){break f}Kb(H[d+112>>2])}if(F[d+75|0]>=0){break e}Kb(H[d+64>>2])}if(F[d+107|0]>=0){break d}Kb(H[d+96>>2])}if(F[d+91|0]>=0){break b}Kb(H[d+80>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+112|0,d+8|0)|0;b=H[197455];H[197455]=0;J:{K:{L:{M:{N:{O:{if((b|0)!=1){if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;b=ca(1776,d+16|0,409932,410168)|0;c=H[197455];H[197455]=0;if((c|0)==1){break N}c=H[e+4>>2];if(c>>>0>2]){if(F[b+11|0]>=0){g=H[d+20>>2];H[c>>2]=H[d+16>>2];H[c+4>>2]=g;H[c+8>>2]=H[d+24>>2];break L}g=H[b+4>>2];h=H[b>>2];H[197455]=0;ga(1647,c|0,h|0,g|0);g=H[197455];H[197455]=0;if((g|0)!=1){break L}a=$()|0;_()|0;H[e+4>>2]=c;Vb(b);break J}H[197455]=0;ba(1777,e|0,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break M}if(F[b+23|0]>=0){break K}Kb(H[b+12>>2]);break K}a=$()|0;_()|0;Vb(d+16|0);break b}a=$()|0;_()|0;break J}a=$()|0;_()|0;break J}a=$()|0;_()|0;Vb(b);break J}g=H[b+16>>2];H[c+12>>2]=H[b+12>>2];H[c+16>>2]=g;H[c+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[e+4>>2]=c+24}if(F[b+11|0]<0){Kb(H[b>>2])}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;P:{if((c|0)!=1){H[d+16>>2]=b;H[d+20>>2]=4;H[d+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[d+107|0]=0;H[197455]=0;H[d+96>>2]=0;ka(1767,a|0,d+16|0,e|0,d+96|0);a=H[197455];H[197455]=0;if((a|0)==1){break P}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){c=H[e+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((a|0)!=(c|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+139|0]<0){Kb(H[d+128>>2])}xb=d+144|0;return}a=$()|0;_()|0;break J}a=$()|0;_()|0;if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+27|0]>=0){break J}Kb(H[d+16>>2])}yc(e)}if(F[d+139|0]<0){Kb(H[d+128>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function $z(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;d=xb-144|0;xb=d;H[d+136>>2]=0;H[d+128>>2]=0;H[d+132>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{b=H[c>>2];g=H[c+4>>2];if((b|0)!=(g|0)){while(1){c=H[b>>2];m:{if(H[b+4>>2]-c>>>0<8){break m}c=G[c>>1];H[197455]=0;fa(1756,d- -64|0,+(c|0),-1);c=H[197455];H[197455]=0;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((c|0)!=1){H[197455]=0;c=ca(1758,d- -64|0,0,405252)|0;e=H[197455];H[197455]=0;if((e|0)==1){break I}H[d+88>>2]=H[c+8>>2];e=H[c+4>>2];H[d+80>>2]=H[c>>2];H[d+84>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+80|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break H}H[d+104>>2]=H[d+88>>2];H[d+88>>2]=0;c=H[d+84>>2];H[d+96>>2]=H[d+80>>2];H[d+100>>2]=c;H[d+80>>2]=0;H[d+84>>2]=0;c=G[H[b>>2]+2>>1];H[197455]=0;fa(1756,d+48|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break G}H[197455]=0;c=I[d+59|0];e=c<<24>>24<0;c=ca(1759,d+96|0,(e?H[d+48>>2]:d+48|0)|0,(e?H[d+52>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break F}H[d+120>>2]=H[c+8>>2];e=H[c+4>>2];H[d+112>>2]=H[c>>2];H[d+116>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+112|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break E}H[d+24>>2]=H[d+120>>2];H[d+120>>2]=0;c=H[d+116>>2];e=H[d+112>>2];H[d+16>>2]=e;H[d+20>>2]=c;H[d+112>>2]=0;H[d+116>>2]=0;H[197455]=0;f=e;c=F[d+27|0];e=(c|0)<0;ca(1759,d+128|0,(e?f:d+16|0)|0,(e?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break D}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}c=H[b>>2];h=H[b+4>>2];if((c|0)!=(h|0)){while(1){e=G[c>>1];H[197455]=0;fa(1756,d+80|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break x}H[197455]=0;ba(1650,d+80|0,44);e=H[197455];H[197455]=0;if((e|0)==1){break w}H[d+104>>2]=H[d+88>>2];H[d+88>>2]=0;e=H[d+84>>2];H[d+96>>2]=H[d+80>>2];H[d+100>>2]=e;H[d+80>>2]=0;H[d+84>>2]=0;e=G[c+2>>1];H[197455]=0;fa(1756,d- -64|0,+(e|0),-1);e=H[197455];H[197455]=0;if((e|0)==1){break v}H[197455]=0;e=I[d+75|0];f=e<<24>>24<0;e=ca(1759,d+96|0,(f?H[d+64>>2]:d- -64|0)|0,(f?H[d+68>>2]:e)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break u}H[d+120>>2]=H[e+8>>2];f=H[e+4>>2];H[d+112>>2]=H[e>>2];H[d+116>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[197455]=0;ba(1650,d+112|0,32);e=H[197455];H[197455]=0;if((e|0)==1){break t}H[d+24>>2]=H[d+120>>2];H[d+120>>2]=0;e=H[d+116>>2];f=H[d+112>>2];H[d+16>>2]=f;H[d+20>>2]=e;H[d+112>>2]=0;H[d+116>>2]=0;H[197455]=0;i=f;e=F[d+27|0];f=(e|0)<0;ca(1759,d+128|0,(f?i:d+16|0)|0,(f?H[d+20>>2]:e&255)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break s}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}c=c+4|0;if((h|0)!=(c|0)){continue}break}c=H[b>>2]}c=G[c>>1];H[197455]=0;fa(1756,d+80|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)!=1){break n}a=$()|0;_()|0;break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;if(F[d+27|0]>=0){break C}Kb(H[d+16>>2])}if(F[d+123|0]>=0){break B}Kb(H[d+112>>2])}if(F[d+59|0]>=0){break A}Kb(H[d+48>>2])}if(F[d+107|0]>=0){break z}Kb(H[d+96>>2])}if(F[d+91|0]>=0){break y}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break b}Kb(H[d+64>>2]);break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;break o}a=$()|0;_()|0;break p}a=$()|0;_()|0;break q}a=$()|0;_()|0;break r}a=$()|0;_()|0;if(F[d+27|0]>=0){break r}Kb(H[d+16>>2])}if(F[d+123|0]>=0){break q}Kb(H[d+112>>2])}if(F[d+75|0]>=0){break p}Kb(H[d+64>>2])}if(F[d+107|0]>=0){break o}Kb(H[d+96>>2])}if(F[d+91|0]>=0){break b}Kb(H[d+80>>2]);break b}H[197455]=0;ba(1650,d+80|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break l}H[d+104>>2]=H[d+88>>2];H[d+88>>2]=0;c=H[d+84>>2];H[d+96>>2]=H[d+80>>2];H[d+100>>2]=c;H[d+80>>2]=0;H[d+84>>2]=0;c=G[H[b>>2]+2>>1];H[197455]=0;fa(1756,d- -64|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break k}H[197455]=0;c=I[d+75|0];e=c<<24>>24<0;c=ca(1759,d+96|0,(e?H[d+64>>2]:d- -64|0)|0,(e?H[d+68>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break j}H[d+120>>2]=H[c+8>>2];e=H[c+4>>2];H[d+112>>2]=H[c>>2];H[d+116>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+112|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break i}H[d+24>>2]=H[d+120>>2];H[d+120>>2]=0;c=H[d+116>>2];e=H[d+112>>2];H[d+16>>2]=e;H[d+20>>2]=c;H[d+112>>2]=0;H[d+116>>2]=0;H[197455]=0;f=e;c=F[d+27|0];e=(c|0)<0;ca(1759,d+128|0,(e?f:d+16|0)|0,(e?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break h}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+91|0]>=0){break m}Kb(H[d+80>>2])}b=b+12|0;if((g|0)!=(b|0)){continue}break}}H[197455]=0;b=ca(1762,d+16|0,404840,d+128|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break c}a=$()|0;_()|0;break b}a=$()|0;_()|0;break d}a=$()|0;_()|0;break e}a=$()|0;_()|0;break f}a=$()|0;_()|0;break g}a=$()|0;_()|0;if(F[d+27|0]>=0){break g}Kb(H[d+16>>2])}if(F[d+123|0]>=0){break f}Kb(H[d+112>>2])}if(F[d+75|0]>=0){break e}Kb(H[d+64>>2])}if(F[d+107|0]>=0){break d}Kb(H[d+96>>2])}if(F[d+91|0]>=0){break b}Kb(H[d+80>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+112|0,d+8|0)|0;b=H[197455];H[197455]=0;J:{K:{L:{M:{N:{O:{if((b|0)!=1){if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;b=ca(1776,d+16|0,409932,410168)|0;c=H[197455];H[197455]=0;if((c|0)==1){break N}c=H[e+4>>2];if(c>>>0>2]){if(F[b+11|0]>=0){g=H[d+20>>2];H[c>>2]=H[d+16>>2];H[c+4>>2]=g;H[c+8>>2]=H[d+24>>2];break L}g=H[b+4>>2];h=H[b>>2];H[197455]=0;ga(1647,c|0,h|0,g|0);g=H[197455];H[197455]=0;if((g|0)!=1){break L}a=$()|0;_()|0;H[e+4>>2]=c;Vb(b);break J}H[197455]=0;ba(1777,e|0,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break M}if(F[b+23|0]>=0){break K}Kb(H[b+12>>2]);break K}a=$()|0;_()|0;Vb(d+16|0);break b}a=$()|0;_()|0;break J}a=$()|0;_()|0;break J}a=$()|0;_()|0;Vb(b);break J}g=H[b+16>>2];H[c+12>>2]=H[b+12>>2];H[c+16>>2]=g;H[c+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[e+4>>2]=c+24}if(F[b+11|0]<0){Kb(H[b>>2])}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;P:{if((c|0)!=1){H[d+16>>2]=b;H[d+20>>2]=4;H[d+24>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[d+107|0]=0;H[197455]=0;H[d+96>>2]=0;ka(1767,a|0,d+16|0,e|0,d+96|0);a=H[197455];H[197455]=0;if((a|0)==1){break P}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){c=H[e+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((a|0)!=(c|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+139|0]<0){Kb(H[d+128>>2])}xb=d+144|0;return}a=$()|0;_()|0;break J}a=$()|0;_()|0;if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+27|0]>=0){break J}Kb(H[d+16>>2])}yc(e)}if(F[d+139|0]<0){Kb(H[d+128>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function oX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=xb-144|0;xb=c;H[c+136>>2]=0;H[c+128>>2]=0;H[c+132>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{e=H[b>>2];g=H[b+4>>2];if((e|0)!=(g|0)){while(1){b=H[e>>2];m:{if(H[e+4>>2]-b>>>0<8){break m}b=G[b>>1];H[197455]=0;fa(1756,c- -64|0,+(b|0),-1);b=H[197455];H[197455]=0;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((b|0)!=1){H[197455]=0;b=ca(1758,c- -64|0,0,434016)|0;d=H[197455];H[197455]=0;if((d|0)==1){break I}H[c+88>>2]=H[b+8>>2];d=H[b+4>>2];H[c+80>>2]=H[b>>2];H[c+84>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+80|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break H}H[c+104>>2]=H[c+88>>2];H[c+88>>2]=0;b=H[c+84>>2];H[c+96>>2]=H[c+80>>2];H[c+100>>2]=b;H[c+80>>2]=0;H[c+84>>2]=0;b=G[H[e>>2]+2>>1];H[197455]=0;fa(1756,c+48|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break G}H[197455]=0;b=I[c+59|0];d=b<<24>>24<0;b=ca(1759,c+96|0,(d?H[c+48>>2]:c+48|0)|0,(d?H[c+52>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break F}H[c+120>>2]=H[b+8>>2];d=H[b+4>>2];H[c+112>>2]=H[b>>2];H[c+116>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+112|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break E}H[c+24>>2]=H[c+120>>2];H[c+120>>2]=0;b=H[c+116>>2];d=H[c+112>>2];H[c+16>>2]=d;H[c+20>>2]=b;H[c+112>>2]=0;H[c+116>>2]=0;H[197455]=0;f=d;b=F[c+27|0];d=(b|0)<0;ca(1759,c+128|0,(d?f:c+16|0)|0,(d?H[c+20>>2]:b&255)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break D}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}b=H[e>>2];h=H[e+4>>2];if((b|0)!=(h|0)){while(1){d=G[b>>1];H[197455]=0;fa(1756,c+80|0,+(d|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break x}H[197455]=0;ba(1650,c+80|0,44);d=H[197455];H[197455]=0;if((d|0)==1){break w}H[c+104>>2]=H[c+88>>2];H[c+88>>2]=0;d=H[c+84>>2];H[c+96>>2]=H[c+80>>2];H[c+100>>2]=d;H[c+80>>2]=0;H[c+84>>2]=0;d=G[b+2>>1];H[197455]=0;fa(1756,c- -64|0,+(d|0),-1);d=H[197455];H[197455]=0;if((d|0)==1){break v}H[197455]=0;d=I[c+75|0];f=d<<24>>24<0;d=ca(1759,c+96|0,(f?H[c+64>>2]:c- -64|0)|0,(f?H[c+68>>2]:d)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break u}H[c+120>>2]=H[d+8>>2];f=H[d+4>>2];H[c+112>>2]=H[d>>2];H[c+116>>2]=f;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;ba(1650,c+112|0,32);d=H[197455];H[197455]=0;if((d|0)==1){break t}H[c+24>>2]=H[c+120>>2];H[c+120>>2]=0;d=H[c+116>>2];f=H[c+112>>2];H[c+16>>2]=f;H[c+20>>2]=d;H[c+112>>2]=0;H[c+116>>2]=0;H[197455]=0;i=f;d=F[c+27|0];f=(d|0)<0;ca(1759,c+128|0,(f?i:c+16|0)|0,(f?H[c+20>>2]:d&255)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break s}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}b=b+4|0;if((h|0)!=(b|0)){continue}break}b=H[e>>2]}b=G[b>>1];H[197455]=0;fa(1756,c+80|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)!=1){break n}a=$()|0;_()|0;break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;break y}a=$()|0;_()|0;break z}a=$()|0;_()|0;break A}a=$()|0;_()|0;break B}a=$()|0;_()|0;break C}a=$()|0;_()|0;if(F[c+27|0]>=0){break C}Kb(H[c+16>>2])}if(F[c+123|0]>=0){break B}Kb(H[c+112>>2])}if(F[c+59|0]>=0){break A}Kb(H[c+48>>2])}if(F[c+107|0]>=0){break z}Kb(H[c+96>>2])}if(F[c+91|0]>=0){break y}Kb(H[c+80>>2])}if(F[c+75|0]>=0){break b}Kb(H[c+64>>2]);break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;break o}a=$()|0;_()|0;break p}a=$()|0;_()|0;break q}a=$()|0;_()|0;break r}a=$()|0;_()|0;if(F[c+27|0]>=0){break r}Kb(H[c+16>>2])}if(F[c+123|0]>=0){break q}Kb(H[c+112>>2])}if(F[c+75|0]>=0){break p}Kb(H[c+64>>2])}if(F[c+107|0]>=0){break o}Kb(H[c+96>>2])}if(F[c+91|0]>=0){break b}Kb(H[c+80>>2]);break b}H[197455]=0;ba(1650,c+80|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break l}H[c+104>>2]=H[c+88>>2];H[c+88>>2]=0;b=H[c+84>>2];H[c+96>>2]=H[c+80>>2];H[c+100>>2]=b;H[c+80>>2]=0;H[c+84>>2]=0;b=G[H[e>>2]+2>>1];H[197455]=0;fa(1756,c- -64|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break k}H[197455]=0;b=I[c+75|0];d=b<<24>>24<0;b=ca(1759,c+96|0,(d?H[c+64>>2]:c- -64|0)|0,(d?H[c+68>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break j}H[c+120>>2]=H[b+8>>2];d=H[b+4>>2];H[c+112>>2]=H[b>>2];H[c+116>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+112|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break i}H[c+24>>2]=H[c+120>>2];H[c+120>>2]=0;b=H[c+116>>2];d=H[c+112>>2];H[c+16>>2]=d;H[c+20>>2]=b;H[c+112>>2]=0;H[c+116>>2]=0;H[197455]=0;f=d;b=F[c+27|0];d=(b|0)<0;ca(1759,c+128|0,(d?f:c+16|0)|0,(d?H[c+20>>2]:b&255)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+91|0]>=0){break m}Kb(H[c+80>>2])}e=e+12|0;if((g|0)!=(e|0)){continue}break}}H[197455]=0;b=ca(1762,c+16|0,434072,c+128|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break c}a=$()|0;_()|0;break b}a=$()|0;_()|0;break d}a=$()|0;_()|0;break e}a=$()|0;_()|0;break f}a=$()|0;_()|0;break g}a=$()|0;_()|0;if(F[c+27|0]>=0){break g}Kb(H[c+16>>2])}if(F[c+123|0]>=0){break f}Kb(H[c+112>>2])}if(F[c+75|0]>=0){break e}Kb(H[c+64>>2])}if(F[c+107|0]>=0){break d}Kb(H[c+96>>2])}if(F[c+91|0]>=0){break b}Kb(H[c+80>>2]);break b}H[c+40>>2]=b;H[197455]=0;H[c+44>>2]=1;b=H[c+44>>2];H[c+8>>2]=H[c+40>>2];H[c+12>>2]=b;d=da(1763,c+112|0,c+8|0)|0;b=H[197455];H[197455]=0;J:{K:{L:{M:{N:{O:{if((b|0)!=1){if(F[c+39|0]<0){Kb(H[c+28>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;qa(1765,a|0,d|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;ga(1766,a|0,d|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break O}H[197455]=0;b=ca(1776,c+16|0,434556,434596)|0;e=H[197455];H[197455]=0;if((e|0)==1){break N}e=H[d+4>>2];if(e>>>0>2]){if(F[b+11|0]>=0){g=H[c+20>>2];H[e>>2]=H[c+16>>2];H[e+4>>2]=g;H[e+8>>2]=H[c+24>>2];break L}g=H[b+4>>2];h=H[b>>2];H[197455]=0;ga(1647,e|0,h|0,g|0);g=H[197455];H[197455]=0;if((g|0)!=1){break L}a=$()|0;_()|0;H[d+4>>2]=e;Vb(b);break J}H[197455]=0;ba(1777,d|0,b|0);e=H[197455];H[197455]=0;if((e|0)==1){break M}if(F[b+23|0]>=0){break K}Kb(H[b+12>>2]);break K}a=$()|0;_()|0;Vb(c+16|0);break b}a=$()|0;_()|0;break J}a=$()|0;_()|0;break J}a=$()|0;_()|0;Vb(b);break J}g=H[b+16>>2];H[e+12>>2]=H[b+12>>2];H[e+16>>2]=g;H[e+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[d+4>>2]=e+24}if(F[b+11|0]<0){Kb(H[b>>2])}H[197455]=0;b=aa(899,32)|0;e=H[197455];H[197455]=0;P:{if((e|0)!=1){H[c+16>>2]=b;H[c+20>>2]=4;H[c+24>>2]=-2147483640;H[197455]=0;Mb(b,434080,4);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[b+16>>2]=0;F[c+107|0]=0;H[197455]=0;H[c+96>>2]=0;ka(1767,a|0,c+16|0,d|0,c+96|0);a=H[197455];H[197455]=0;if((a|0)==1){break P}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}a=H[d>>2];if(a){b=H[d+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}e=b-24|0;if(F[b-13|0]<0){Kb(H[e>>2])}b=e;if((a|0)!=(b|0)){continue}break}b=H[d>>2]}H[d+4>>2]=a;Kb(b)}if(F[c+139|0]<0){Kb(H[c+128>>2])}xb=c+144|0;return}a=$()|0;_()|0;break J}a=$()|0;_()|0;if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+27|0]>=0){break J}Kb(H[c+16>>2])}yc(d)}if(F[c+139|0]<0){Kb(H[c+128>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function io(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,L=0,M=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,_=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;o=xb-16|0;xb=o;q=H[a+736>>2];m=H[a+104>>2];n=H[m+28>>2];H[o+4>>2]=0;s=6;a:{if(!I[a+733|0]|!q){break a}b:{if(!e){break b}f=H[c+4>>2];s=0;if((e|0)!=1){g=e&-2;while(1){j=s<<3;i=j+d|0;t=f+j|0;H[i>>2]=H[t>>2]<<6;H[i+4>>2]=H[t+4>>2]<<6;j=j|8;i=j+d|0;j=f+j|0;H[i>>2]=H[j>>2]<<6;H[i+4>>2]=H[j+4>>2]<<6;s=s+2|0;y=y+2|0;if((g|0)!=(y|0)){continue}break}}if(!(e&1)){break b}j=s<<3;g=j+d|0;f=f+j|0;H[g>>2]=H[f>>2]<<6;H[g+4>>2]=H[f+4>>2]<<6}s=0;if(K[q+68>>2]<=b>>>0){break a}f=H[q+72>>2];j=b+1|0;if(H[f+(b<<2)>>2]==H[f+(j<<2)>>2]){break a}r=Ub(n,8,0,e,0,o+12|0);c:{if(H[o+12>>2]){break c}p=Ub(n,8,0,e,0,o+12|0);if(H[o+12>>2]){break c}s=Ub(n,1,0,e,0,o+12|0);if(H[o+12>>2]){break c}f=H[q+72>>2];j=H[f+(j<<2)>>2];b=H[f+(b<<2)>>2];f=bc(m,b);H[o+12>>2]=f;if(f){break c}b=j-b|0;f=Jc(m,b);H[o+12>>2]=f;if(f){break c}j=H[m>>2];g=H[m+32>>2];C=Ub(n,4,0,H[q>>2],0,o+12|0);y=0;d:{e:{if(H[o+12>>2]){break e}R=Ub(n,4,0,H[q>>2],0,o+12|0);if(H[o+12>>2]){break e}S=Ub(n,4,0,H[q>>2],0,o+12|0);if(H[o+12>>2]){break e}f=Tc(m);f:{i=Tc(m);if(i>>>0<=b>>>0){V=f&4095;if(b>>>0>=V<<2>>>0){break f}}H[o+12>>2]=8;break e}z=i+(g-j|0)|0;if(f&32768){j=H[m+32>>2];b=H[m>>2];f=H[m+36>>2];H[m+32>>2]=f-b>>>0>z>>>0?b+z|0:f;y=Bl(m,H[q+76>>2],o+4|0);g=H[m+32>>2];f=H[m>>2];b=j-b|0;j=H[m+36>>2];H[m+32>>2]=b>>>0>>0?f+b|0:j;z=g-f|0}D=Ub(n,4,0,e,0,o+12|0);g:{if(H[o+12>>2]){break g}E=Ub(n,4,0,e,0,o+12|0);if(H[o+12>>2]){break g}h:{if(!e){break h}b=H[c+4>>2];g=0;if((e|0)!=1){j=e&-2;while(1){f=g<<3;i=f+r|0;t=b+f|0;H[i>>2]=H[t>>2]<<16;H[i+4>>2]=H[t+4>>2]<<16;f=f|8;i=f+r|0;f=b+f|0;H[i>>2]=H[f>>2]<<16;H[i+4>>2]=H[f+4>>2]<<16;g=g+2|0;h=h+2|0;if((j|0)!=(h|0)){continue}break}}if(!(e&1)){break h}f=g<<3;h=f+r|0;b=b+f|0;H[h>>2]=H[b>>2]<<16;H[h+4>>2]=H[b+4>>2]<<16}if(V){fa=e&-4;_=e&3;W=e-1|0;$=e-2|0;aa=e-3|0;T=e-4|0;ba=H[o+4>>2];b=0;while(1){ga=Tc(m);i:{j:{k:{l:{m:{f=Tc(m);n:{if(f&32768){g=0;if(!H[q>>2]){break n}while(1){ka=(g<<2)+C|0,la=Tc(m)<<16>>16<<2,H[ka>>2]=la;g=g+1|0;if(g>>>0>2]){continue}break}break n}h=f&4095;if(h>>>0>=K[q+60>>2]){break m}j=h;h=H[q>>2];Ob(C,H[q+64>>2]+(N(j,h)<<2)|0,h<<2)}o:{if(!(f&16384)){break o}g=0;if(!H[q>>2]){break o}while(1){ka=(g<<2)+R|0,la=Tc(m)<<16>>16<<2,H[ka>>2]=la;g=g+1|0;h=H[q>>2];if(g>>>0>>0){continue}break}g=0;if(!h){break o}while(1){ka=(g<<2)+S|0,la=Tc(m)<<16>>16<<2,H[ka>>2]=la;g=g+1|0;if(g>>>0>2]){continue}break}}j=fu(q,f,C,R,S);if(!j){break i}ha=H[m+32>>2];X=H[m>>2];h=H[m+36>>2];H[m+32>>2]=h-X>>>0>z>>>0?X+z|0:h;p:{if(f&8192){t=Bl(m,H[q+76>>2],o+8|0);f=H[o+8>>2];b=t;break p}H[o+8>>2]=ba;f=ba;t=b;b=y}h=f?f:e;L=lo(m,H[q+76>>2],h);M=lo(m,H[q+76>>2],h);if(!L|(!b|!M)){break j}q:{if((b|0)!=-1){if(!e){break k}h=0;g=0;i=0;if(W>>>0>=3){break q}break l}g=0;if(!e){break j}while(1){b=g<<2;f=b+E|0;h=H[f>>2];i=b+D|0;k=H[i>>2];l=Rb(H[b+L>>2],j);b=Rb(H[b+M>>2],j);r:{if(g>>>0>>0){H[i>>2]=k+l;H[f>>2]=b+h;break r}if(!(I[a+740|0]&4|(g|0)!=(T|0))){H[i>>2]=k+l;break r}if(!(I[a+740|0]&2|(g|0)!=(aa|0))){H[i>>2]=k+l;break r}if(!(I[a+740|0]&32|(g|0)!=($|0))){H[f>>2]=b+h;break r}if(I[a+740|0]&16|(g|0)!=(W|0)){break r}H[f>>2]=b+h}g=g+1|0;if((g|0)!=(e|0)){continue}break}break j}while(1){F[g+s|0]=0;k=g<<3;l=k+p|0;k=k+r|0;u=H[k+4>>2];H[l>>2]=H[k>>2];H[l+4>>2]=u;k=g|1;F[k+s|0]=0;k=k<<3;l=k+p|0;k=k+r|0;u=H[k+4>>2];H[l>>2]=H[k>>2];H[l+4>>2]=u;k=g|2;F[k+s|0]=0;k=k<<3;l=k+p|0;k=k+r|0;u=H[k+4>>2];H[l>>2]=H[k>>2];H[l+4>>2]=u;k=g|3;F[k+s|0]=0;k=k<<3;l=k+p|0;k=k+r|0;u=H[k+4>>2];H[l>>2]=H[k>>2];H[l+4>>2]=u;g=g+4|0;i=i+4|0;if((fa|0)!=(i|0)){continue}break}break l}H[o+12>>2]=8;break g}if(!_){break k}while(1){F[g+s|0]=0;i=g<<3;k=i+p|0;i=i+r|0;l=H[i+4>>2];H[k>>2]=H[i>>2];H[k+4>>2]=l;g=g+1|0;h=h+1|0;if((_|0)!=(h|0)){continue}break}}g=0;if(f){while(1){h=J[b+(g<<1)>>1];if(h>>>0>>0){F[h+s|0]=1;h=(h<<3)+p|0;i=g<<2;ka=h,la=Rb(H[i+L>>2],j)+H[h>>2]|0,H[ka>>2]=la;ka=h,la=Rb(H[i+M>>2],j)+H[h+4>>2]|0,H[ka+4>>2]=la}g=g+1|0;if((f|0)!=(g|0)){continue}break}}f=0;U=0;if(J[c>>1]){Y=p+4|0;O=r+4|0;while(1){w=G[H[c+12>>2]+(U<<1)>>1];s:{if((w|0)<(f|0)){break s}k=w+1|0;g=f;while(1){t:{b=g+1|0;if(I[g+s|0]){h=g;j=g;u:{v:{if((g|0)<(w|0)){while(1){u=h;h=b;l=j;i=j;w:{if(!I[h+s|0]){break w}i=h;if((l|0)>=(u|0)){break w}j=l+1|0;i=H[r+(l<<3)>>2]>H[r+(h<<3)>>2];P=i?l:h;Q=P<<3;b=H[Q+p>>2];B=i?h:l;Z=B<<3;x=H[Z+p>>2];v=H[r+Q>>2];l=H[r+Z>>2];if(!((v|0)==(l|0)&(b|0)!=(x|0))){ca=0;if((l|0)!=(v|0)){ca=dc(b-x|0,v-l|0)}ia=b-v|0;ja=x-l|0;b=j;while(1){i=b;da=b<<3;b=H[r+da>>2];x:{if((b|0)<=(l|0)){A=b+ja|0;break x}A=b+ia|0;if((b|0)>=(v|0)){break x}A=Rb(b-l|0,ca)+x|0}H[p+da>>2]=A;b=i+1|0;if((i|0)!=(u|0)){continue}break}}i=H[O+Z>>2]>H[O+Q>>2];l=(i?B:P)<<3;b=H[l+Y>>2];i=(i?P:B)<<3;x=H[i+Y>>2];v=H[l+O>>2];l=H[i+O>>2];if((v|0)==(l|0)){i=h;if((b|0)!=(x|0)){break w}}A=0;if((l|0)!=(v|0)){A=dc(b-x|0,v-l|0)}P=b-v|0;Q=x-l|0;while(1){b=j;B=b<<3;j=H[B+O>>2];y:{if((j|0)<=(l|0)){i=j+Q|0;break y}i=j+P|0;if((j|0)>=(v|0)){break y}i=Rb(j-l|0,A)+x|0}H[B+Y>>2]=i;j=b+1|0;if((b|0)!=(u|0)){continue}break}i=h}j=i;b=h+1|0;if((h|0)!=(w|0)){continue}break}if((g|0)!=(j|0)){break v}b=k}j=g<<3;i=j+r|0;h=H[i+4>>2];k=j+p|0;j=H[k+4>>2];k=H[k>>2];i=H[i>>2];if(!((k|0)!=(i|0)|(h|0)!=(j|0))){f=b;break s}j=j-h|0;i=k-i|0;if((g|0)<=(f|0)){break u}h=f+1|0;if(g-f&1){f=(f<<3)+p|0;H[f>>2]=i+H[f>>2];H[f+4>>2]=j+H[f+4>>2];f=h}if((g|0)==(h|0)){break u}while(1){h=(f<<3)+p|0;H[h>>2]=i+H[h>>2];H[h+4>>2]=j+H[h+4>>2];H[h+12>>2]=j+H[h+12>>2];H[h+8>>2]=i+H[h+8>>2];f=f+2|0;if((f|0)!=(g|0)){continue}break}break u}Zt(j+1|0,w,j,g,r,p);if((g|0)<=0){break t}Zt(f,g-1|0,j,g,r,p);break t}if((g|0)>=(w|0)){f=b;break s}h=g^-1;if(w-g&1){g=g+1|0;f=(g<<3)+p|0;H[f>>2]=i+H[f>>2];H[f+4>>2]=j+H[f+4>>2]}if((h|0)==(0-w|0)){f=b;break s}while(1){f=(g<<3)+p|0;H[f+8>>2]=i+H[f+8>>2];H[f+12>>2]=j+H[f+12>>2];g=g+2|0;f=(g<<3)+p|0;H[f>>2]=i+H[f>>2];H[f+4>>2]=j+H[f+4>>2];if((g|0)!=(w|0)){continue}break}f=b;break s}h=(g|0)==(w|0);g=b;if(!h){continue}}break}f=k}U=U+1|0;if((U|0)>1]){continue}break}}g=0;if(!e){break j}while(1){b=g<<3;f=b+p|0;h=b+r|0;b=H[f+4>>2]-H[h+4>>2]|0;f=H[f>>2]-H[h>>2]|0;i=g<<2;h=i+E|0;j=H[h>>2];i=i+D|0;k=H[i>>2];z:{if(g>>>0>>0){H[i>>2]=f+k;H[h>>2]=b+j;break z}if(!(I[a+740|0]&4|(g|0)!=(T|0))){H[i>>2]=f+k;break z}if(!(I[a+740|0]&2|(g|0)!=(aa|0))){H[i>>2]=f+k;break z}if(!(I[a+740|0]&32|(g|0)!=($|0))){H[h>>2]=b+j;break z}if(I[a+740|0]&16|(g|0)!=(W|0)){break z}H[h>>2]=b+j}g=g+1|0;if((g|0)!=(e|0)){continue}break}}b=-1;if((t|0)!=-1){if(t){zb[H[n+8>>2]](n,t)}b=0}if(L){zb[H[n+8>>2]](n,L)}if(M){zb[H[n+8>>2]](n,M)}f=ha-X|0;h=H[m>>2];j=H[m+36>>2];H[m+32>>2]=f>>>0>>0?f+h|0:j}z=z+ga|0;ea=ea+1|0;if((ea|0)!=(V|0)){continue}break}}if(!e){break g}b=H[c+4>>2];g=0;while(1){c=g<<3;a=c+d|0;f=g<<2;h=f+D|0;H[a>>2]=H[a>>2]+(H[h>>2]+512>>10);f=f+E|0;H[a+4>>2]=H[a+4>>2]+(H[f>>2]+512>>10);a=b+c|0;H[a>>2]=H[a>>2]+(H[h>>2]+32768>>16);H[a+4>>2]=H[a+4>>2]+(H[f>>2]+32768>>16);g=g+1|0;if((g|0)!=(e|0)){continue}break}}if(D){zb[H[n+8>>2]](n,D)}if(E){zb[H[n+8>>2]](n,E)}if((y|0)==-1){break d}}if(y){zb[H[n+8>>2]](n,y)}}if(C){zb[H[n+8>>2]](n,C)}if(R){zb[H[n+8>>2]](n,R)}if(S){zb[H[n+8>>2]](n,S)}wc(m)}if(r){zb[H[n+8>>2]](n,r)}if(p){zb[H[n+8>>2]](n,p)}if(s){zb[H[n+8>>2]](n,s)}s=H[o+12>>2]}xb=o+16|0;return s}function bka(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;k=xb-32|0;xb=k;a:{if(!H[c+68>>2]){break a}if(!Ac(c,b,105867,0)){break a}s=H[c+68>>2];b:{if(!s){break b}f=s-1|0;e=H[c+80>>2];j=I[e+15|0];while(1){c:{if((d|0)==(f|0)){d=s;break c}d=d+1|0;if((j|0)==I[(e+N(d,20)|0)+15|0]){continue}}break}if(!s){break b}h=H[c+80>>2];j=0;while(1){q=H[a+124>>2];i=d;d:{if(d>>>0<=j>>>0){break d}d=j;e=H[q+8>>2];if(!e){break d}while(1){f=N(d,20)+h|0;e:{if((e|0)!=H[f>>2]){break e}l=J[f+12>>1];if((l&96)!=96){break e}G[f+12>>1]=l&65439;F[f+18|0]=4}d=d+1|0;if((i|0)!=(d|0)){continue}break}}l=H[q+88>>2];o=(l|0)!=0;f=j;f:{g:{if(i>>>0<=f>>>0){l=j+1|0;if(l>>>0>>0){break g}break f}h:{while(1){d=f+1|0;if(I[(N(f,20)+h|0)+19|0]>=4){i:{if(!l){break i}e=d;if(d>>>0>=i>>>0){break i}while(1){g=N(e,20)+h|0;if(l&H[g+4>>2]){o=1;l=J[g+12>>1];if((l&112)==48){break i}j:{if(e>>>0>=i>>>0){f=e;break j}if(l&32){f=e;break j}f=e;if(I[g+18|0]!=4){break j}while(1){f=f+1|0;if((i|0)==(f|0)){f=i;break j}d=N(f,20)+h|0;if(I[d+12|0]&32){break j}if(I[d+18|0]==4){continue}break}}F[(N(f,20)+h|0)+19|0]=4;d=f+1|0;o=0;break i}o=1;e=e+1|0;if((i|0)!=(e|0)){continue}break}}k:{if(H[c+44>>2]!=1298954605|d>>>0>=i>>>0){break k}while(1){l:{if(d>>>0>=i>>>0){break l}while(1){e=N(d,20)+h|0;if(I[e+12|0]&32){break l}e=I[e+18|0];if(e>>>0>31|!(1<>>0>>0?i:e)-1|0;m:{while(1){l=d;d=d+1|0;if(i>>>0<=d>>>0){l=e;break m}g=N(d,20)+h|0;if(I[g+12|0]&32){break m}n=I[g+18|0];m=1<>>0>31;if(!(m&96?n:1)){continue}break}if(!(m&727046)|n|I[g+19|0]!=8){break m}F[g+19|0]=4;f=d}d=l+2|0;if(i>>>0>d>>>0){continue}break}}if(f>>>0<=j>>>0){break h}f=f-(I[(N(f,20)+h|0)+19|0]>4)|0;break h}f=d;if((d|0)!=(i|0)){continue}break}f=i}n:{if(!((f|0)!=(i|0)|f>>>0<=j>>>0)){f=i;d=f-1|0;e=N(d,20)+h|0;if(I[e+12|0]&32){break n}f=I[e+18|0]==6?d:i}if(f>>>0<=j>>>0|f>>>0>=i>>>0){break n}while(1){d=N(f,20)+h|0;if(I[d+12|0]&32){break n}d=I[d+18|0];if(d>>>0>31|!(1<>>0>>0){continue}break}f=j;l=f+1|0;if(l>>>0>>0){break g}break f}l=j+1|0;n=l>>>0>=i>>>0;o:{if(n|f>>>0<=j>>>0){break o}d=((f|0)==(i|0)?-2:-1)+f|0;p:{q:{e=H[c+44>>2];if((e|0)==1298954605|(e|0)==1415671148){break q}while(1){e=0;r:{if(d>>>0<=j>>>0){break r}while(1){e=N(d,20)+h|0;s:{if(I[e+12|0]&32){break s}g=I[e+18|0];if(g>>>0>31){break s}e=1;if(1<>>0>>0){continue}break}d=j;e=0}g=N(d,20)+h|0;if(I[g+12|0]&32|I[g+18|0]!=4|I[g+19|0]==2){break p}g=d+1|0;if(g>>>0>=i>>>0|(e^1|I[(N(g,20)+h|0)+18|0]!=6)){break q}d=d-1|0;continue}}if(I[(N(d,20)+h|0)+19|0]==2|d>>>0<=j>>>0){break p}e=d;while(1){m=d-1|0;g=N(m,20)+h|0;if(I[g+19|0]==2){H[k+24>>2]=H[g+16>>2];r=H[g+12>>2];H[k+16>>2]=H[g+8>>2];H[k+20>>2]=r;r=H[g+4>>2];H[k+8>>2]=H[g>>2];H[k+12>>2]=r;$c(g,N(d,20)+h|0,N(e-m|0,20));d=N(e,20)+h|0;H[d+16>>2]=H[k+24>>2];g=H[k+20>>2];H[d+8>>2]=H[k+16>>2];H[d+12>>2]=g;g=H[k+12>>2];H[d>>2]=H[k+8>>2];H[d+4>>2]=g;f=f-(f>>>0>m>>>0&e>>>0>=f>>>0)|0;d=f+1|0;d=d>>>0>i>>>0?i:d;if(d-e>>>0>=2){Jd(c,e,d)}e=e-1|0}d=m;if(j>>>0>>0){continue}break}break o}e=j;while(1){if(I[(N(e,20)+h|0)+19|0]==2){d=f+1|0;d=d>>>0>i>>>0?i:d;if(d-e>>>0<2){break o}Jd(c,e,d);break g}e=e+1|0;if((f|0)!=(e|0)){continue}break}}if(n){break f}}m=N(j,20)+h|0;if(I[m+19|0]!=1|(I[m+18|0]==15|0)==((J[m+12>>1]&96)==32|0)){break f}g=H[H[q>>2]+16>>2];t:{u:{if((g|0)==12){break u}v:{w:{x:{d=l;if(f>>>0>d>>>0){while(1){e=d+1|0;n=N(d,20)+h|0;if(!(I[n+12|0]&32)&I[n+18|0]==4){break x}d=e;if((f|0)!=(d|0)){continue}break}}switch(g-5|0){case 4:break v;case 0:break w;default:break u}}if(e>>>0>=f>>>0){break t}g=N(e,20)+h|0;if(I[g+12|0]&32){break t}n=e;e=I[g+18|0];d=e>>>0<32?1<>>0>>0?i:d)-1|0;e=f;while(1){y:{d=e;e=d+1|0;if(i>>>0<=e>>>0){d=g;break y}if(I[(N(e,20)+h|0)+19|0]<6){continue}}break}if(d>>>0>=i>>>0){break u}break t}d=f+1|0;g=(d>>>0>>0?i:d)-1|0;e=f;while(1){z:{d=e;e=d+1|0;if(i>>>0<=e>>>0){d=g;break z}n=I[(N(e,20)+h|0)+19|0];if(n>>>0>31|!(1<>>0>>0){break t}}A:{d=l;if(f>>>0<=d>>>0){break A}while(1){B:{e=d+1|0;g=N(d,20)+h|0;if(!(I[g+12|0]&32)&I[g+18|0]==4){break B}d=e;if((f|0)!=(d|0)){continue}break A}break}if(e>>>0>=f>>>0){break t}g=N(e,20)+h|0;if(I[g+12|0]&32){break t}n=e;e=I[g+18|0];d=e>>>0<32?1<>>0>j>>>0?j:d;d=i;while(1){C:{d=d-1|0;if(j>>>0>=d>>>0){d=e;break C}if(I[(N(d,20)+h|0)+19|0]==14){continue}}break}if(I[q+5|0]){break t}e=N(d,20)+h|0;if(I[e+12|0]&32|I[e+18|0]!=4){break t}e=f+1|0;if(e>>>0>=d>>>0){break t}while(1){d=d-(I[(N(e,20)+h|0)+18|0]==7)|0;e=e+1|0;if(d>>>0>e>>>0){continue}break}}e=d+1|0;if(e-j>>>0>=2){Jd(c,j,e)}H[k+24>>2]=H[m+16>>2];e=H[m+12>>2];H[k+16>>2]=H[m+8>>2];H[k+20>>2]=e;e=H[m+4>>2];H[k+8>>2]=H[m>>2];H[k+12>>2]=e;$c(m,N(l,20)+h|0,N(d-j|0,20));e=N(d,20)+h|0;H[e+16>>2]=H[k+24>>2];g=H[k+20>>2];H[e+8>>2]=H[k+16>>2];H[e+12>>2]=g;g=H[k+12>>2];H[e>>2]=H[k+8>>2];H[e+4>>2]=g;f=f-(f>>>0>j>>>0&d>>>0>=f>>>0)|0}D:{if(!o){break D}d=f+1|0;if(i>>>0<=d>>>0){break D}e=H[q+88>>2];E:{F:{while(1){G:{g=N(d,20)+h|0;if(e&H[g+4>>2]){if((J[g+12>>1]&96)!=32){break D}e=H[c+44>>2];if((e|0)==1298954605|(e|0)==1415671148){break G}e=f;if(j>>>0>=e>>>0){break F}while(1){e=f;f=e-1|0;m=N(f,20)+h|0;H:{if(I[m+12|0]&32){break H}m=I[m+18|0];if(m>>>0>31){break H}if(1<>>0>j>>>0){continue}break}e=j;break E}d=d+1|0;if((i|0)!=(d|0)){continue}break D}break}e=f}if(e>>>0<=j>>>0){break E}f=N(e,20)+h|0;if(I[f-8|0]&32|I[f-2|0]!=4|(I[f+12|0]&32|e>>>0>=i>>>0)){break E}f=I[f+18|0];e=(f>>>0<32&(1<>>0>=2){Jd(c,e,f)}H[k+24>>2]=H[g+16>>2];f=H[g+12>>2];H[k+16>>2]=H[g+8>>2];H[k+20>>2]=f;f=H[g+4>>2];H[k+8>>2]=H[g>>2];H[k+12>>2]=f;f=N(e,20)+h|0;$c(f+20|0,f,N(d-e|0,20));H[f+16>>2]=H[k+24>>2];d=H[k+20>>2];H[f+8>>2]=H[k+16>>2];H[f+12>>2]=d;d=H[k+12>>2];H[f>>2]=H[k+8>>2];H[f+4>>2]=d}d=N(j,20)+h|0;I:{if(I[d+19|0]!=2){break I}J:{if(j){f=j-1|0;r=N(f,20);if(1<>1]&8190){break J}}H[d+4>>2]=H[d+4>>2]|H[q+116>>2];break I}d=H[c+68>>2];m=d>>>0>>0?d:l;o=m-f|0;if(o>>>0<2){break I}l=H[c+144>>2]|32;H[c+144>>2]=l;if(f>>>0>=m>>>0){break I}g=H[c+80>>2];h=-1;d=f;if(m-j>>>0>=3){t=o&-4;n=0;while(1){e=g+N(d,20)|0;p=H[e+8>>2];h=h>>>0

>>0?h:p;p=H[e+28>>2];h=h>>>0

>>0?h:p;p=H[e+48>>2];h=h>>>0

>>0?h:p;e=H[e+68>>2];h=e>>>0>h>>>0?h:e;d=d+4|0;n=n+4|0;if((t|0)!=(n|0)){continue}break}}e=0;n=o&3;if(n){while(1){t=H[(g+N(d,20)|0)+8>>2];h=h>>>0>>0?h:t;d=d+1|0;e=e+1|0;if((n|0)!=(e|0)){continue}break}}K:{if(!(o&1)){break K}f=j;d=g+r|0;if(H[d+8>>2]==(h|0)){break K}H[c+144>>2]=l;H[d+4>>2]=H[d+4>>2]|3}if((j|0)==(m|0)){break I}while(1){d=g+N(f,20)|0;if(H[d+8>>2]!=(h|0)){l=l|32;H[c+144>>2]=l;H[d+4>>2]=H[d+4>>2]|3}d=g+N(f+1|0,20)|0;if(H[d+8>>2]!=(h|0)){l=l|32;H[c+144>>2]=l;H[d+4>>2]=H[d+4>>2]|3}f=f+2|0;if((m|0)!=(f|0)){continue}break}}L:{if(!I[q+5|0]){break L}d=H[a+4>>2];if((d|0)==1399418472|(d|0)==1415671148|i-j>>>0<2){break L}Jd(c,j,i)}e=H[c+68>>2];d=i+1|0;f=d>>>0>>0?e:d;h=H[c+80>>2];j=I[(h+N(i,20)|0)+15|0];d=i;while(1){M:{d=d+1|0;if(e>>>0<=d>>>0){d=f;break M}if((j|0)==I[(N(d,20)+h|0)+15|0]){continue}}break}j=i;if(i>>>0>>0){continue}break}}Ac(c,b,106008,0)}xb=k+32|0}function BR(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,u=0,v=0,w=0;l=xb-560|0;xb=l;H[l+548>>2]=k;H[l+552>>2]=b;H[l+96>>2]=3480;k=l+96|0;q=Ed(l+136|0,l+144|0,k);b=H[q>>2];H[l+132>>2]=b;H[l+128>>2]=b+400;r=Dc(k);o=Dc(l+80|0);m=Dc(l- -64|0);n=Dc(l+48|0);p=Dc(l+32|0);H[197455]=0;Ea(3492,c|0,d|0,l+120|0,l+116|0,l+112|0,r|0,o|0,m|0,n|0,l+28|0);b=H[197455];H[197455]=0;if((b|0)!=1){a:{H[j>>2]=H[i>>2];t=e&512;u=t>>>9|0;e=0;c=0;while(1){k=c;b:{c:{d:{e:{if((e|0)==4){break e}H[197455]=0;c=da(3449,a|0,l+552|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(!c){break e}d=0;c=k;f:{g:{h:{i:{j:{switch(F[(l+120|0)+e|0]){case 1:if((e|0)==3){break c}H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;c=ca(3493,h|0,8192,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(c){H[197455]=0;ga(3494,l+16|0,a|0,0);b=H[197455];H[197455]=0;if((b|0)!=1){b=H[l+16>>2];H[197455]=0;ba(1650,p|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){break i}}break a}H[f>>2]=H[f>>2]|4;a=0;break d;case 3:break h;case 0:break j;case 4:break f;case 2:break g;default:break b}}if((e|0)==3){break c}}while(1){H[197455]=0;c=da(3449,a|0,l+552|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(!c){break c}H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;c=ca(3493,h|0,8192,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(!c){break c}H[197455]=0;ga(3494,l+16|0,a|0,0);b=H[197455];H[197455]=0;if((b|0)!=1){b=H[l+16>>2];H[197455]=0;ba(1650,p|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){continue}}break}break a}if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}if(I[n+11|0]>>>7|0){c=H[n+4>>2]}else{c=I[n+11|0]}if((b|0)==(0-c|0)){break c}if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}if(I[n+11|0]>>>7|0){c=H[n+4>>2]}else{c=I[n+11|0]}if(!(c?b:0)){if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}if(b){H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[m+11|0]>>>7|0){b=H[m>>2]}else{b=m}if((c|0)==H[b>>2]){H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}c=b>>>0>1?m:k;break b}F[g|0]=1;break c}H[197455]=0;b=aa(3451,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}if(I[n+11|0]>>>7|0){c=H[n>>2]}else{c=n}if(H[c>>2]!=(b|0)){break c}H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}F[g|0]=1;if(I[n+11|0]>>>7|0){b=H[n+4>>2]}else{b=I[n+11|0]}c=b>>>0>1?n:k;break b}H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[m+11|0]>>>7|0){b=H[m>>2]}else{b=m}if((c|0)==H[b>>2]){H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}c=b>>>0>1?m:k;break b}H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[n+11|0]>>>7|0){b=H[n>>2]}else{b=n}if((c|0)==H[b>>2]){H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}F[g|0]=1;if(I[n+11|0]>>>7|0){b=H[n+4>>2]}else{b=I[n+11|0]}c=b>>>0>1?n:k;break b}H[f>>2]=H[f>>2]|4;a=0;break d}if(!(e>>>0<2|k)){c=0;if(!((e|0)==2&I[l+123|0]!=0|u)){break b}}v=l,w=Ue(o),H[v+8>>2]=w;H[l+16>>2]=H[l+8>>2];k:{if(!e|I[(e+l|0)+119|0]>1){break k}l:{while(1){v=l,w=kh(o),H[v+8>>2]=w;if(H[l+16>>2]==H[l+8>>2]){break l}b=H[H[l+16>>2]>>2];H[197455]=0;c=ca(3493,h|0,8192,b|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){if(!c){break l}H[l+16>>2]=H[l+16>>2]+4;continue}break}break a}v=l,w=Ue(o),H[v+8>>2]=w;if(I[p+11|0]>>>7|0){c=H[p+4>>2]}else{c=I[p+11|0]}b=H[l+16>>2]-H[l+8>>2]>>2;if(c>>>0>=b>>>0){v=l,w=kh(p),H[v+8>>2]=w;d=To(l+8|0,0-b|0);c=kh(p);b=Ue(o);H[197455]=0;c=qw(d,c,b);b=H[197455];H[197455]=0;if((b|0)==1){break a}if(c){break k}}v=l,w=Ue(o),H[v>>2]=w;H[l+8>>2]=H[l>>2];H[l+16>>2]=H[l+8>>2]}H[l+8>>2]=H[l+16>>2];m:{while(1){v=l,w=kh(o),H[v>>2]=w;if(H[l+8>>2]==H[l>>2]){break m}H[197455]=0;c=da(3449,a|0,l+552|0)|0;b=H[197455];H[197455]=0;n:{if((b|0)==1){break n}if(!c){break m}H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break n}if((c|0)!=H[H[l+8>>2]>>2]){break m}H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[l+8>>2]=H[l+8>>2]+4;continue}break}break a}if(!t){break c}v=l,w=kh(o),H[v>>2]=w;if(H[l+8>>2]==H[l>>2]){break c}H[f>>2]=H[f>>2]|4;a=0;break d}o:{while(1){p:{H[197455]=0;c=da(3449,a|0,l+552|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break p}if(!c){break o}H[197455]=0;s=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;c=ca(3493,h|0,2048,s|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}q:{if(c){b=H[j>>2];if((b|0)==H[l+548>>2]){H[197455]=0;ga(3496,i|0,j|0,l+548|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=H[j>>2]}H[j>>2]=b+4;H[b>>2]=s;d=d+1|0;break q}if(I[r+11|0]>>>7|0){b=H[r+4>>2]}else{b=I[r+11|0]}if(!b|!d|(s|0)!=H[l+112>>2]){break o}c=H[l+132>>2];if((c|0)==H[l+128>>2]){H[197455]=0;ga(3487,q|0,l+132|0,l+128|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}c=H[l+132>>2]}H[l+132>>2]=c+4;H[c>>2]=d;d=0}H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){continue}}break}break a}c=H[l+132>>2];if(!(!d|(c|0)==H[q>>2])){if(H[l+128>>2]==(c|0)){H[197455]=0;ga(3487,q|0,l+132|0,l+128|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}c=H[l+132>>2]}H[l+132>>2]=c+4;H[c>>2]=d}r:{if(H[l+28>>2]<=0){break r}H[197455]=0;c=da(3450,a|0,l+552|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}s:{if(!c){H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if((c|0)==H[l+116>>2]){break s}}H[f>>2]=H[f>>2]|4;a=0;break d}H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}while(1){if(H[l+28>>2]<=0){break r}H[197455]=0;c=da(3450,a|0,l+552|0)|0;b=H[197455];H[197455]=0;t:{if((b|0)==1){break t}u:{if(!c){H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break t}H[197455]=0;c=ca(3493,h|0,2048,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break t}if(c){break u}}H[f>>2]=H[f>>2]|4;a=0;break d}if(H[j>>2]==H[l+548>>2]){H[197455]=0;ga(3496,i|0,j|0,l+548|0);b=H[197455];H[197455]=0;if((b|0)==1){break t}}H[197455]=0;c=aa(3451,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break t}b=H[j>>2];H[j>>2]=b+4;H[b>>2]=c;H[197455]=0;H[l+28>>2]=H[l+28>>2]-1;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){continue}}break}break a}c=k;if(H[i>>2]!=H[j>>2]){break b}H[f>>2]=H[f>>2]|4;a=0;break d}v:{if(!k){break v}c=1;while(1){if(I[k+11|0]>>>7|0){b=H[k+4>>2]}else{b=I[k+11|0]}if(b>>>0<=c>>>0){break v}H[197455]=0;d=da(3450,a|0,l+552|0)|0;b=H[197455];H[197455]=0;w:{if((b|0)==1){break w}x:{if(!d){H[197455]=0;b=aa(3451,a|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break w}if(I[k+11|0]>>>7|0){d=H[k>>2]}else{d=k}if(H[d+(c<<2)>>2]==(b|0)){break x}}H[f>>2]=H[f>>2]|4;a=0;break d}H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;c=c+1|0;if((b|0)!=1){continue}}break}break a}y:{if(H[q>>2]==H[l+132>>2]){break y}H[l+16>>2]=0;a=H[q>>2];H[197455]=0;fe(r,a,H[l+132>>2],l+16|0);a=H[197455];H[197455]=0;if((a|0)!=1){if(!H[l+16>>2]){break y}H[f>>2]=H[f>>2]|4;a=0;break d}break a}a=1}Sc(p);Sc(n);Sc(m);Sc(o);_b(r);Bc(q);xb=l+560|0;return a|0}c=k}e=e+1|0;continue}}}a=$()|0;_()|0;Sc(p);Sc(n);Sc(m);Sc(o);_b(r);Bc(q);ea(a|0);X()}function a9(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;j=xb-256|0;xb=j;h=H[a+608>>2];i=H[a+604>>2];w=1;p=H[a+584>>2];v=H[p+72>>2];g=H[p+68>>2];l=H[p+64>>2];a:{b:{c:{d:{e:{if((c|0)<=0){b=i}else{s=h+i|0;t=H[p+60>>2];r=H[p+88>>2];o=H[p+12>>2];x=(o|0)<=0;while(1){f:{if(x){e=0;f=r;break f}d=H[p+84>>2];h=d+4|0;k=H[d>>2];n=0;f=r;e=0;q=0;g:{h:{i:{j:{k:{l:{m:{n:{while(1){m=e;d=g;o:{if((g|0)>6){break o}if(i>>>0>=s>>>0){d=7;if(g){break o}break d}l=I[I[i|0]+t|0]<>>u|0;g=d-u|0;p:{q:{r:{s:{t:{switch(I[e|0]-1|0){case 0:u:{if((f|0)==(r|0)){d=h;break u}if((k|0)>(m|0)){d=h;break u}d=h;if((k|0)>=(o|0)){break u}while(1){d=h+8|0;k=H[h+4>>2]+(H[h>>2]+k|0)|0;if((m|0)<(k|0)){break u}h=d;if((k|0)<(o|0)){continue}break}}e=H[d>>2]+k|0;q=e+(n+q|0)|0;h=d+8|0;k=H[d+4>>2]+e|0;break p;case 1:if(!(f-r&4)){break r}while(1){v:{if((g|0)>12){d=g;break v}if(i>>>0>=s>>>0){d=13;if(g){break v}break d}n=g+8|0;e=i+1|0;l=I[I[i|0]+t|0]<4){d=n;i=e;break v}d=13;if(e>>>0>=s>>>0){i=e;break v}d=g+16|0;l=I[I[i+1|0]+t|0]<>>g|0;g=d-g|0;d=I[e|0];if(d-10>>>0>=2){if((d|0)!=8){break h}e=H[e+4>>2];H[f>>2]=e+q;d=f+4|0;m=e+m|0;q=0;while(1){w:{if((g|0)>11){e=g;break w}if(i>>>0>=s>>>0){e=12;if(g){break w}f=d;break d}u=g+8|0;n=i+1|0;l=I[I[i|0]+t|0]<3){e=u;i=n;break w}e=12;if(n>>>0>=s>>>0){i=n;break w}e=g+16|0;l=I[I[i+1|0]+t|0]<>>g|0;g=e-g|0;x:{switch(I[n|0]-7|0){case 2:case 4:e=H[n+4>>2];q=e+q|0;m=e+m|0;continue;case 0:break x;default:break n}}break}e=d;d=H[n+4>>2];H[e>>2]=d+q;e=d+m|0;break q}else{d=H[e+4>>2];q=d+q|0;m=d+m|0;continue}};case 5:H[f>>2]=o-m;d=H[a+12>>2]&1024;h=H[(d?504:480)+a>>2];e=H[a+628>>2];k=H[a>>2];n=H[p+108>>2];H[j+208>>2]=m;H[j+204>>2]=h;H[j+200>>2]=d?288118:288139;H[j+196>>2]=n;H[j+192>>2]=k;Pb(e,295322,288896,j+192|0);f=f+4|0;break g;case 11:H[f>>2]=o-m;f=f+4|0;y:{if((g|0)>3){h=g;break y}if(i>>>0>=s>>>0){h=4;if((d|0)==(u|0)){break d}break y}h=g+8|0;l=I[I[i|0]+t|0]<>2]&1024;g=H[(d?504:480)+a>>2];e=H[a+628>>2];k=H[a>>2];n=H[p+108>>2];H[j+240>>2]=m;H[j+236>>2]=g;H[j+232>>2]=d?288118:288139;H[j+228>>2]=n;H[j+224>>2]=k;Pb(e,295322,288035,j+224|0)}l=l>>>4|0;g=h-4|0;v=1;break g;case 4:z:{if((f|0)==(r|0)){d=h;break z}if((k|0)>(m|0)){d=h;break z}d=h;if((k|0)>=(o|0)){break z}while(1){d=h+8|0;k=H[h+4>>2]+(H[h>>2]+k|0)|0;if((m|0)<(k|0)){break z}h=d;if((k|0)<(o|0)){continue}break}}h=(k+n|0)-H[e+4>>2]|0;H[f>>2]=h+q;e=h+m|0;h=d-4|0;k=k-H[h>>2]|0;f=f+4|0;break s;case 3:A:{if((f|0)==(r|0)){d=h;break A}if((k|0)>(m|0)){d=h;break A}d=h;if((k|0)>=(o|0)){break A}while(1){d=h+8|0;k=H[h+4>>2]+(H[h>>2]+k|0)|0;if((m|0)<(k|0)){break A}h=d;if((k|0)<(o|0)){continue}break}}e=H[e+4>>2];H[f>>2]=e+((n+q|0)+k|0);h=d+4|0;e=e+k|0;k=H[d>>2]+k|0;f=f+4|0;break s;case 2:break t;default:break k}}B:{if(!((f|0)==(r|0)|(k|0)>(m|0))){d=h;e=k;if((o|0)<=(e|0)){break B}while(1){d=h+8|0;e=H[h+4>>2]+(H[h>>2]+e|0)|0;if((m|0)<(e|0)){break B}h=d;if((e|0)<(o|0)){continue}break}break B}e=k;d=h}H[f>>2]=(n+q|0)+e;h=d+4|0;k=H[d>>2]+e|0;f=f+4|0}q=0;break p}while(1){C:{if((g|0)>11){d=g;break C}if(i>>>0>=s>>>0){d=12;if(!g){break d}break C}n=g+8|0;e=i+1|0;l=I[I[i|0]+t|0]<3){d=n;i=e;break C}d=12;if(e>>>0>=s>>>0){i=e;break C}d=g+16|0;l=I[I[i+1|0]+t|0]<>>g|0;g=d-g|0;d=f;D:{switch(I[e|0]-7|0){case 2:case 4:d=H[e+4>>2];q=d+q|0;m=d+m|0;continue;case 0:break D;default:break n}}break}d=H[e+4>>2];H[f>>2]=d+q;e=f+4|0;m=d+m|0;q=0;while(1){E:{if((g|0)>12){d=g;break E}if(i>>>0>=s>>>0){d=13;if(g){break E}f=e;break d}u=g+8|0;n=i+1|0;l=I[I[i|0]+t|0]<4){d=u;i=n;break E}d=13;if(n>>>0>=s>>>0){i=n;break E}d=g+16|0;l=I[I[i+1|0]+t|0]<>>g|0;g=d-g|0;d=I[n|0];if(d-10>>>0>=2){if((d|0)!=8){f=e;break h}d=H[n+4>>2];H[e>>2]=d+q;e=d+m|0}else{d=H[n+4>>2];q=d+q|0;m=d+m|0;continue}break}}q=0;f=f+8|0;if((r|0)==(f|0)){f=r;break p}if((e|0)<(k|0)|(k|0)>=(o|0)){break p}while(1){d=h+8|0;k=H[h+4>>2]+(H[h>>2]+k|0)|0;if((k|0)>(e|0)){h=d;break p}h=d;if((k|0)<(o|0)){continue}break}}n=0-e|0;if((e|0)<(o|0)){continue}break}if(!q){break f}if((e+q|0)>=(o|0)){break i}if((g|0)<=0){break m}h=g;break l}h=H[a+12>>2]&1024;f=H[(h?504:480)+a>>2];e=H[a+628>>2];k=H[a>>2];n=H[p+108>>2];H[j+144>>2]=m;H[j+140>>2]=f;H[j+136>>2]=h?288118:288139;H[j+132>>2]=n;H[j+128>>2]=k;Pb(e,295322,288035,j+128|0);f=d;break g}if(i>>>0>=s>>>0){h=1;if(g){break l}m=e;break d}l=I[I[i|0]+t|0]<>2]&1024;h=H[(d?504:480)+a>>2];e=H[a+628>>2];k=H[a>>2];n=H[p+108>>2];H[j+48>>2]=m;H[j+44>>2]=h;H[j+40>>2]=d?288118:288139;H[j+36>>2]=n;H[j+32>>2]=k;Pb(e,295322,288035,j+32|0);break g}l=l>>>1|0;g=h-1|0}H[f>>2]=q;f=f+4|0;break f}d=H[a+12>>2]&1024;h=H[(d?504:480)+a>>2];e=H[a+628>>2];k=H[a>>2];n=H[p+108>>2];H[j+176>>2]=m;H[j+172>>2]=h;H[j+168>>2]=d?288118:288139;H[j+164>>2]=n;H[j+160>>2]=k;Pb(e,295322,288035,j+160|0)}if(q){H[f>>2]=q;f=f+4|0}e=m}F:{if((e|0)==(o|0)){break F}d=H[a+12>>2]&1024;h=H[(d?504:480)+a>>2];m=H[a+628>>2];k=H[a>>2];n=H[p+108>>2];H[j+24>>2]=o;H[j+20>>2]=e;H[j+16>>2]=h;H[j+12>>2]=d?288118:288139;H[j+8>>2]=n;H[j+4>>2]=e>>>0>>0?288626:288700;H[j>>2]=k;sc(m,295322,288332,j);h=(e|0)>(o|0);G:{if((e|0)<=(o|0)|f>>>0<=r>>>0){break G}while(1){f=f-4|0;e=e-H[f>>2]|0;h=(o|0)<(e|0);if((e|0)<=(o|0)){break G}if(f>>>0>r>>>0){continue}break}}if((e|0)<(o|0)){if(f-r&4){H[f>>2]=0;f=f+4|0}H[f>>2]=o-((e|0)>0?e:0);f=f+4|0;break F}if(!h){break F}H[f+4>>2]=0;H[f>>2]=o;f=f+8|0}if(v){break e}zb[H[p+76>>2]](b,r,f,o);v=0;H[f>>2]=0;d=H[p+88>>2];r=H[p+84>>2];H[p+88>>2]=r;H[p+84>>2]=d;H[p+108>>2]=H[p+108>>2]+1;d=H[p+8>>2];b=d+b|0;c=c-d|0;if((c|0)>0){continue}break}h=H[a+608>>2];b=H[a+604>>2]}H[p+72>>2]=v;H[p+64>>2]=l;H[p+68>>2]=g;H[a+604>>2]=i;H[a+608>>2]=(b-i|0)+h;break a}if((g|0)>12){break b}break c}c=H[a+12>>2]&1024;d=H[(c?504:480)+a>>2];h=H[a+628>>2];g=H[a>>2];e=H[p+108>>2];H[j+112>>2]=m;H[j+108>>2]=d;H[j+104>>2]=c?288118:288139;H[j+100>>2]=e;H[j+96>>2]=g;sc(h,295322,288256,j+96|0);if(q){H[f>>2]=q;f=f+4|0}g=0;if((m|0)==(o|0)){break c}c=H[a+12>>2]&1024;d=H[(c?504:480)+a>>2];h=H[a+628>>2];e=H[a>>2];k=H[p+108>>2];H[j+88>>2]=o;H[j+84>>2]=m;H[j+80>>2]=d;H[j+76>>2]=c?288118:288139;H[j+72>>2]=k;H[j+68>>2]=m>>>0>>0?288626:288700;H[j+64>>2]=e;sc(h,295322,288332,j- -64|0);h=(m|0)>(o|0);H:{if((m|0)<=(o|0)|f>>>0<=r>>>0){break H}while(1){f=f-4|0;m=m-H[f>>2]|0;h=(o|0)<(m|0);if((m|0)<=(o|0)){break H}if(f>>>0>r>>>0){continue}break}}if((m|0)<(o|0)){if(f-r&4){H[f>>2]=0;f=f+4|0}H[f>>2]=o-((m|0)>0?m:0);f=f+4|0;break c}if(!h){break c}H[f+4>>2]=0;H[f>>2]=o;f=f+8|0}if(i>>>0>=s>>>0){g=g?13:0;break b}d=g+8|0;c=i+1|0;l=I[I[i|0]+t|0]<4){g=d;i=c;break b}if(c>>>0>=s>>>0){g=13;i=c;break b}g=g+16|0;l=I[I[i+1|0]+t|0]<>2]](b,r,f,o);H[p+72>>2]=v;H[p+64>>2]=l>>>13;H[p+68>>2]=g-13;b=H[a+604>>2];H[a+604>>2]=i;H[a+608>>2]=H[a+608>>2]+(b-i|0);w=H[p+108>>2]?1:-1}xb=j+256|0;return w|0}function yx(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,L=0,M=0,N=0;l=xb-336|0;xb=l;m=i&65535;p=d;q=e&65535;s=(e^i)&-2147483648;k=h;x=i>>>16&32767;y=e>>>16&32767;a:{b:{if(x-32767>>>0>4294934529&y-32767>>>0>=4294934530){break b}j=e&2147483647;if(!(!d&(j|0)==2147418112?!(b|c):j>>>0<2147418112)){o=d;s=e|32768;break a}e=i&2147483647;if(!(!h&(e|0)==2147418112?!(f|g):e>>>0<2147418112)){o=h;s=i|32768;b=f;c=g;break a}if(!(b|d|(j^2147418112|c))){if(!(f|h|(e^2147418112|g))){b=0;c=0;s=2147450880;break a}s=s|2147418112;b=0;c=0;break a}if(!(f|h|(e^2147418112|g))){b=0;c=0;break a}if(!(b|d|(c|j))){b=!(f|h|(e|g));o=b?0:o;s=b?2147450880:s;b=0;c=0;break a}if(!(f|h|(e|g))){s=s|2147418112;b=0;c=0;break a}if((j|0)==65535|j>>>0<65535){i=b;d=!(p|q);h=d<<6;j=Q(d?b:p)+32|0;b=Q(d?c:q);b=h+((b|0)==32?j:b)|0;He(l+320|0,i,c,p,q,b-15|0);n=16-b|0;p=H[l+328>>2];q=H[l+332>>2];c=H[l+324>>2];b=H[l+320>>2]}if(e>>>0>65535){break b}d=!(k|m);e=d<<6;h=Q(d?f:k)+32|0;d=Q(d?g:m);d=e+((d|0)==32?h:d)|0;He(l+304|0,f,g,k,m,d-15|0);n=(d+n|0)-16|0;k=H[l+312>>2];m=H[l+316>>2];f=H[l+304>>2];g=H[l+308>>2]}e=m|65536;z=e;A=k;d=k;k=e<<15|d>>>17;d=d<<15|g>>>17;h=0-d|0;e=k;i=1963258675-(e+((d|0)!=0)|0)|0;we(l+288|0,d,e,0,0,h,i,0,0);j=H[l+296>>2];we(l+272|0,0-j|0,0-(H[l+300>>2]+((j|0)!=0)|0)|0,0,0,h,i,0,0);h=H[l+280>>2];i=h<<1|H[l+276>>2]>>>31;h=H[l+284>>2]<<1|h>>>31;we(l+256|0,i,h,0,0,d,e,0,0);j=h;h=H[l+264>>2];we(l+240|0,i,j,0,0,0-h|0,0-(H[l+268>>2]+((h|0)!=0)|0)|0,0,0);h=H[l+248>>2];i=h<<1|H[l+244>>2]>>>31;h=H[l+252>>2]<<1|h>>>31;we(l+224|0,i,h,0,0,d,e,0,0);j=h;h=H[l+232>>2];we(l+208|0,i,j,0,0,0-h|0,0-(H[l+236>>2]+((h|0)!=0)|0)|0,0,0);h=H[l+216>>2];i=h<<1|H[l+212>>2]>>>31;h=H[l+220>>2]<<1|h>>>31;we(l+192|0,i,h,0,0,d,e,0,0);e=h;h=H[l+200>>2];we(l+176|0,i,e,0,0,0-h|0,0-(H[l+204>>2]+((h|0)!=0)|0)|0,0,0);i=d;h=H[l+184>>2];d=h<<1|H[l+180>>2]>>>31;e=d-1|0;h=(H[l+188>>2]<<1|h>>>31)-!d|0;we(l+160|0,i,k,0,0,e,h,0,0);d=f;j=g<<15|d>>>17;we(l+144|0,d<<15,j,0,0,e,h,0,0);k=H[l+172>>2];m=H[l+160>>2];B=H[l+152>>2];d=m+B|0;i=H[l+164>>2];j=i+H[l+156>>2]|0;j=d>>>0>>0?j+1|0:j;m=(i|0)==(j|0)&d>>>0>>0|i>>>0>j>>>0;i=m+H[l+168>>2]|0;k=i>>>0>>0?k+1|0:k;m=!j&d>>>0>1|(j|0)!=0;i=m+i|0;k=i>>>0>>0?k+1|0:k;we(l+112|0,e,h,0,0,0-i|0,0-(((i|0)!=0)+k|0)|0,0,0);we(l+128|0,1-d|0,0-((d>>>0>1)+j|0)|0,0,0,e,h,0,0);G=(y-x|0)+n|0;e=H[l+116>>2];w=e;d=H[l+112>>2];j=e<<1|d>>>31;m=d<<1;n=j;d=j;h=H[l+140>>2];u=h;e=H[l+136>>2];j=h<<1|e>>>31;i=e<<1|H[l+132>>2]>>>31;h=i+m|0;j=d+j|0;j=h>>>0>>0?j+1|0:j;i=h;e=j;j=j-(h>>>0<13927)|0;r=j;k=q|65536;L=k;B=p;j=p;k=k<<1|j>>>31;p=j<<1|c>>>31;d=0;j=d|k;q=j;v=gma(r,d,j,0);d=yb;t=d;j=b;d=c<<1|j>>>31;x=j<<1;y=d;h=h-13927|0;j=(e|0)==(r|0)&h>>>0>>0|e>>>0>r>>>0;e=(e|0)==(n|0)&i>>>0>>0|e>>>0>>0;d=H[l+120>>2];k=H[l+124>>2]<<1|d>>>31;i=d<<1;m=j;n=e;e=u>>>31|0;d=e+(w>>>31|i)|0;j=k;j=d>>>0>>0?j+1|0:j;e=d;d=n+d|0;j=d>>>0>>0?j+1|0:j;e=d;d=m+d|0;k=d>>>0>>0?j+1|0:j;e=d;d=d-1|0;C=k-!e|0;D=0;i=gma(y,o,C,D);e=i+v|0;k=yb+t|0;k=e>>>0>>0?k+1|0:k;m=(k|0)==(t|0)&e>>>0>>0|k>>>0>>0;v=d;i=gma(d,0,p,0);d=i+e|0;j=yb+k|0;j=d>>>0>>0?j+1|0:j;n=d;i=j;e=(j|0)==(k|0)&d>>>0>>0|j>>>0>>0;d=m+e|0;k=0;k=d>>>0>>0?1:k;e=gma(q,o,C,D);d=e+d|0;j=yb+k|0;u=d;d=d>>>0>>0?j+1|0:j;m=gma(q,o,v,o);k=yb;w=gma(C,D,p,o);e=w+m|0;j=yb+k|0;j=e>>>0>>0?j+1|0:j;w=e;e=j;j=(k|0)==(j|0)&m>>>0>w>>>0|j>>>0>>0;m=u+e|0;d=d+j|0;j=m;m=j>>>0>>0?d+1|0:d;u=j;e=0;d=e+n|0;j=i+w|0;j=d>>>0>>0?j+1|0:j;e=j;k=(j|0)==(i|0)&d>>>0>>0|i>>>0>j>>>0;i=u+k|0;j=m;u=i;i=i>>>0>>0?j+1|0:j;n=d;m=e;w=h;h=gma(h,0,p,o);e=yb;t=gma(r,o,y,o);d=t+h|0;j=yb+e|0;j=d>>>0>>0?j+1|0:j;e=(e|0)==(j|0)&d>>>0>>0|e>>>0>j>>>0;h=j;E=u;t=e;F=x&-2;k=gma(v,o,F,0);e=k+d|0;j=yb+j|0;j=e>>>0>>0?j+1|0:j;u=e;k=e;e=j;h=(j|0)==(h|0)&d>>>0>k>>>0|h>>>0>j>>>0;d=t+h|0;k=0;k=d>>>0>>0?1:k;j=d;h=n+d|0;d=k+m|0;d=h>>>0>>0?d+1|0:d;t=h;j=h;h=d;k=(d|0)==(m|0)&j>>>0>>0|d>>>0>>0;d=E+k|0;j=i;M=d;n=d>>>0>>0?j+1|0:j;I=gma(q,o,w,o);E=yb;i=gma(C,D,F,o);d=i+I|0;j=yb+E|0;j=d>>>0>>0?j+1|0:j;C=d;k=gma(r,o,p,o);i=d+k|0;m=j;d=j+yb|0;d=i>>>0>>0?d+1|0:d;J=i;j=gma(y,o,v,o);i=i+j|0;k=yb+d|0;D=i;k=i>>>0>>0?k+1|0:k;i=k;v=0;N=(d|0)==(k|0)&D>>>0>>0|d>>>0>k>>>0;j=(d|0)==(m|0)&C>>>0>J>>>0|d>>>0>>0;d=j+((m|0)==(E|0)&C>>>0>>0|m>>>0>>0)|0;k=0;d=N+d|0;m=i|0;k=m+t|0;j=(d|v)+h|0;v=k;d=k;j=d>>>0>>0?j+1|0:j;m=j;h=(h|0)==(j|0)&d>>>0>>0|h>>>0>j>>>0;d=h+M|0;j=n;E=d;h=d>>>0>>0?j+1|0:j;t=gma(r,o,F,o);r=yb;k=gma(y,o,w,o);d=k+t|0;j=yb+r|0;j=d>>>0>>0?j+1|0:j;n=0;k=(j|0)==(r|0)&d>>>0>>0|j>>>0>>0;r=j;d=j+u|0;j=(k|n)+e|0;n=d;j=d>>>0>>0?j+1|0:j;u=(e|0)==(j|0)&d>>>0>>0|e>>>0>j>>>0;i=0;e=i+d|0;d=j;k=D+d|0;k=e>>>0>>0?k+1|0:k;e=(d|0)==(k|0)&e>>>0>>0|d>>>0>k>>>0;d=u+e|0;j=0;j=d>>>0>>0?1:j;e=d;d=d+v|0;j=j+m|0;j=d>>>0>>0?j+1|0:j;e=j;j=(m|0)==(j|0)&d>>>0>>0|j>>>0>>0;i=j+E|0;k=h;h=i;k=h>>>0>>0?k+1|0:k;i=k;c:{if((k|0)==131071|k>>>0<131071){we(l+80|0,d,e,h,i,f,g,A,z);j=b<<17;b=0;c=H[l+88>>2];n=b-c|0;k=H[l+80>>2];m=H[l+84>>2];B=(k|m)!=0;r=n-B|0;n=(j-(H[l+92>>2]+(b>>>0>>0)|0)|0)-(n>>>0>>0)|0;b=k;k=0-k|0;m=0-(((b|0)!=0)+m|0)|0;b=G+16382|0;break c}k=h<<31;d=(e&1)<<31|d>>>1;e=e>>>1|k;h=(i&1)<<31|h>>>1;i=i>>>1|0;we(l+96|0,d,e,h,i,f,g,A,z);q=0;m=H[l+104>>2];n=q-m|0;k=H[l+96>>2];p=H[l+100>>2];x=(k|p)!=0;r=n-x|0;n=((b<<16)-(H[l+108>>2]+(m>>>0>q>>>0)|0)|0)-(n>>>0>>0)|0;j=k;k=0-j|0;m=0-(((j|0)!=0)+p|0)|0;x=b;y=c;p=B;q=L;b=G+16383|0}if((b|0)>=32767){s=s|2147418112;b=0;c=0;break a}d:{if((b|0)>0){c=r;j=n<<1|c>>>31;r=c<<1|m>>>31;n=j;p=h;q=i&65535|b<<16;j=m<<1|k>>>31;b=k<<1;break d}if((b|0)<=-113){b=0;c=0;break a}li(l- -64|0,d,e,h,i,1-b|0);He(l+48|0,x,y,p,q,b+112|0);d=H[l+64>>2];e=H[l+68>>2];p=H[l+72>>2];q=H[l+76>>2];we(l+32|0,f,g,A,z,d,e,p,q);c=H[l+40>>2];i=c<<1;c=H[l+44>>2]<<1|c>>>31;b=H[l+56>>2];h=H[l+36>>2];n=h>>>31|i;i=b-n|0;n=H[l+60>>2]-((b>>>0>>0)+c|0)|0;c=H[l+32>>2];k=h<<1|c>>>31;c=c<<1;j=H[l+52>>2];b=H[l+48>>2];h=(k|0)==(j|0)&c>>>0>b>>>0|j>>>0>>0;r=i-h|0;n=n-(h>>>0>i>>>0)|0;h=b;b=h-c|0;j=j-((c>>>0>h>>>0)+k|0)|0}we(l+16|0,f,g,A,z,3,0,0,0);we(l,f,g,A,z,5,0,0,0);h=d;m=p;p=d&1;c=b+p|0;d=0;k=j+d|0;k=b>>>0>c>>>0?k+1|0:k;i=c;c=k;g=(k|0)==(g|0)&i>>>0>f>>>0|g>>>0>>0;d=(d|0)==(k|0)&i>>>0

>>0|d>>>0>k>>>0;b=d+r|0;j=n;j=b>>>0>>0?j+1|0:j;f=b;d=b;b=j;g=(d|0)==(A|0)&(j|0)==(z|0)?g:(z|0)==(j|0)&d>>>0>A>>>0|j>>>0>z>>>0;d=h+g|0;k=e;k=d>>>0>>0?k+1|0:k;g=(e|0)==(k|0)&d>>>0>>0|e>>>0>k>>>0;e=m+g|0;j=q;j=e>>>0>>0?j+1|0:j;g=e;e=d;m=g;d=H[l+20>>2];h=(d|0)==(c|0)&K[l+16>>2]>>0|c>>>0>d>>>0;d=H[l+28>>2];g=H[l+24>>2];h=j>>>0<2147418112&((f|0)==(g|0)&(b|0)==(d|0)?h:(d|0)==(b|0)&g>>>0>>0|b>>>0>d>>>0);g=e+h|0;d=k;d=g>>>0>>0?d+1|0:d;h=(d|0)==(k|0)&e>>>0>g>>>0|d>>>0>>0;e=m+h|0;k=e>>>0>>0?j+1|0:j;h=e;e=H[l+4>>2];i=(e|0)==(c|0)&K[l>>2]>>0|c>>>0>e>>>0;c=H[l+12>>2];e=H[l+8>>2];c=k>>>0<2147418112&((e|0)==(f|0)&(b|0)==(c|0)?i:(c|0)==(b|0)&e>>>0>>0|b>>>0>c>>>0);b=c+g|0;j=b>>>0>>0?d+1|0:d;c=j;f=(d|0)==(j|0)&b>>>0>>0|d>>>0>j>>>0;e=h+f|0;d=k;o=e|o;s=s|(e>>>0>>0?d+1|0:d)}H[a>>2]=b;H[a+4>>2]=c;H[a+8>>2]=o;H[a+12>>2]=s;xb=l+336|0}function Qx(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;k=xb-48|0;xb=k;d=bc(b,c+d|0);a:{if(d){break a}d=Jc(b,e);if(d){break a}b:{c:{if(!e){H[k+44>>2]=0;break c}g=H[b+32>>2];j=g+e|0;if(F[g|0]<0){l=H[a+16>>2];o=H[a+28>>2];H[k>>2]=0;d=8;if((e|0)<=0){break b}m=I[g|0];if(!(m&128)){break b}f=g+1|0;i=H[o>>2];d:{if(!(m&64)){e=f;break d}if(e>>>0<2){break b}e=g+2|0;h=I[f|0];if(!h){break d}while(1){f=e+2|0;if(f>>>0>j>>>0){break b}e=f+I[e|0]|0;if(j>>>0>>0){break b}h=h-1|0;if(h){continue}break}}p=m&63;f=p+l|0;h=H[a+20>>2];e:{if(f>>>0<=h>>>0){h=H[a+24>>2];break e}f=f+3&-4;if(f>>>0>64){break b}h=Ub(i,24,h,f,H[a+24>>2],k);H[a+24>>2]=h;d=H[k>>2];if(d){break b}H[a+20>>2]=f}if(p){h=N(l,24)+h|0;d=8;while(1){f=e+1|0;if(j>>>0>>0){break b}i=I[e|0];H[h>>2]=65536;if(i&16){f=e+3|0;if(j>>>0>>0){break b}e=I[e+1|0]|I[e+2|0]<<8;H[h>>2]=(e<<8|e>>>8)<<16>>16<<4}H[h+4>>2]=65536;f:{if(!(i&32)){e=f;break f}e=f+2|0;if(j>>>0>>0){break b}f=I[f|0]|I[f+1|0]<<8;H[h+4>>2]=(f<<8|f>>>8)<<16>>16<<4}m=0;f=0;g:{h:{switch((i&3)-1|0){case 0:g=e+2|0;if(g>>>0>j>>>0){break b}e=I[e|0]|I[e+1|0]<<8;f=(e<<8|e>>>8)<<16>>16;e=g;break g;case 1:break h;default:break g}}g=e+1|0;if(g>>>0>j>>>0){break b}f=F[e|0];e=g}i:{j:{switch((i>>>2&3)-1|0){case 0:g=e+2|0;if(g>>>0>j>>>0){break b}e=I[e|0]|I[e+1|0]<<8;m=(e<<8|e>>>8)<<16>>16;e=g;break i;case 1:break j;default:break i}}g=e+1|0;if(g>>>0>j>>>0){break b}m=F[e|0];e=g}H[h+12>>2]=m;H[h+8>>2]=f;k:{if(i&64){f=e+2|0;if(j>>>0>>0){break b}e=I[e+1|0]|I[e|0]<<8;break k}f=e+1|0;if(j>>>0>>0){break b}e=I[e|0]}H[h+20>>2]=e;l:{if(i&128){e=f+3|0;if(j>>>0>>0){break b}m=2;g=I[f+1|0]<<8|I[f|0]<<16;break l}e=f+2|0;if(j>>>0>>0){break b}m=1;g=I[f|0]<<8}H[h+16>>2]=g|I[f+m|0];H[a+16>>2]=H[a+16>>2]+1;h=h+24|0;q=q+1|0;if((p|0)!=(q|0)){continue}break}}wc(b);d=0;e=H[a+16>>2];if((e|0)==(l|0)){break a}j=e-l|0;m=0;while(1){h=G[o+22>>1];f=N(m,24);e=N(l,24);d=f+(e+H[a+24>>2]|0)|0;d=Qx(a,b,c,H[d+16>>2],H[d+20>>2]);if(d){break a}i=G[o+22>>1];g=i-h|0;e=f+(e+H[a+24>>2]|0)|0;f=H[e>>2];m:{if(!((f|0)==65536&H[e+4>>2]==65536)){if((g|0)<=0){break m}d=H[o+24>>2]+(h<<3)|0;h=0;while(1){u=d,v=Rb(H[d>>2],f)+H[e+8>>2]|0,H[u>>2]=v;u=d,v=Rb(H[d+4>>2],H[e+4>>2])+H[e+12>>2]|0,H[u+4>>2]=v;h=h+1|0;if((g|0)==(h|0)){break m}d=d+8|0;f=H[e>>2];continue}}if((g|0)<=0){break m}d=H[o+24>>2]+(h<<3)|0;f=H[e+12>>2];e=H[e+8>>2];if(i+(h^-1)>>>0>=3){i=g&-4;h=0;while(1){H[d>>2]=e+H[d>>2];H[d+4>>2]=f+H[d+4>>2];H[d+8>>2]=e+H[d+8>>2];H[d+16>>2]=e+H[d+16>>2];H[d+24>>2]=e+H[d+24>>2];H[d+12>>2]=f+H[d+12>>2];H[d+20>>2]=f+H[d+20>>2];H[d+28>>2]=f+H[d+28>>2];d=d+32|0;h=h+4|0;if((i|0)!=(h|0)){continue}break}}h=0;g=g&3;if(!g){break m}while(1){H[d>>2]=e+H[d>>2];H[d+4>>2]=f+H[d+4>>2];d=d+8|0;h=h+1|0;if((g|0)!=(h|0)){continue}break}}d=0;m=m+1|0;if((j|0)!=(m|0)){continue}break}break a}H[k+44>>2]=0;d=8;if((e|0)<=0){break b}l=I[g|0];if(l&128){break b}i=H[H[a+28>>2]>>2];n:{if(l&4){if(e>>>0<2){break b}f=g+2|0;c=I[g+1|0];q=c>>>4|0;m=c&15;break n}if(l&2){if(e>>>0<2){break b}m=I[g+1|0];c=g+2|0}else{c=g+1|0}if(!(l&1)){f=c;break n}f=c+1|0;if(j>>>0>>0){break b}q=I[c|0]}g=m+q|0;c=H[a+4>>2];o:{p:{if(g>>>0>c>>>0){d=c;c=g+7&1016;i=Ub(i,4,d,c,H[a+8>>2],k+44|0);H[a+8>>2]=i;d=H[k+44>>2];if(d){break b}o=a+8|0;H[a+4>>2]=c;H[a+12>>2]=(m<<2)+i;p=a+12|0;break p}i=H[a+8>>2];H[a+12>>2]=i+(m<<2);p=a+12|0;o=a+8|0;if(!g){break o}}c=0;d=0;while(1){q:{if(d&7){e=f;break q}e=f+1|0;if(j>>>0>>0){break c}c=I[f|0]}n=(d<<2)+i|0;r:{if(c&1){f=e+2|0;if(j>>>0>>0){break c}e=I[e|0]|I[e+1|0]<<8;h=(e<<8|e>>>8)<<16>>16;break r}f=e+1|0;if(j>>>0>>0){break c}h=I[e|0]+h|0}H[n>>2]=h;c=c>>>1|0;d=d+1|0;if((g|0)!=(d|0)){continue}break}}d=8;s:{if(!(l&8)){c=f;break s}c=f+1|0;if(j>>>0>>0){break b}e=I[f|0];if(e){while(1){f=c+2|0;if(f>>>0>j>>>0){break b}c=f+I[c|0]|0;if(j>>>0>>0){break b}e=e-1|0;if(e){continue}break}}H[k+44>>2]=0}F[a+32|0]=0;H[k+24>>2]=0;H[k+28>>2]=0;H[k>>2]=0;H[k+4>>2]=0;r=k+16|0;s=k|8;f=0;h=0;while(1){g=c+1|0;if(g>>>0>j>>>0){break c}c=I[c|0];e=c&15;i=1;t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{n=c>>>4|0;switch(n|0){case 0:break w;case 1:case 4:case 5:break x;case 7:break z;case 6:break A;case 3:break C;case 2:break D;default:break y}}if(e>>>0>=m>>>0){break c}H[k>>2]=H[H[o>>2]+(e<<2)>>2];break B}if(e>>>0>=q>>>0){break c}H[k>>2]=h;f=H[H[p>>2]+(e<<2)>>2]}H[k+4>>2]=f;c=H[k+4>>2];h=H[k>>2];H[k+24>>2]=h;H[k+28>>2]=c;f=c;c=g;break v}e=2958;i=3;break x}e=3627;i=3;break x}i=4}l=0;d=k;c=g;while(1){E:{F:{switch(e&3){case 0:g=c+1|0;if(g>>>0>j>>>0){break c}c=I[c|0];if(c>>>0>=m>>>0){break c}h=H[H[o>>2]+(c<<2)>>2];c=g;break E;case 1:g=c+2|0;if(g>>>0>j>>>0){break c}c=I[c|0]|I[c+1|0]<<8;h=(c<<8|c>>>8)<<16>>16;c=g;break E;case 2:break F;default:break E}}g=c+1|0;if(g>>>0>j>>>0){break c}h=F[c|0]+h|0;c=g}H[d>>2]=h;G:{H:{switch(e>>>2&3){case 0:h=c+1|0;if(h>>>0>j>>>0){break c}c=I[c|0];if(c>>>0>=q>>>0){break c}f=H[H[p>>2]+(c<<2)>>2];c=h;break G;case 1:h=c+2|0;if(h>>>0>j>>>0){break c}c=I[c|0]|I[c+1|0]<<8;f=(c<<8|c>>>8)<<16>>16;c=h;break G;case 2:break H;default:break G}}h=c+1|0;if(h>>>0>j>>>0){break c}f=F[c|0]+f|0;c=h}H[d+4>>2]=f;I:{if(!((i|0)!=4|l)){f=c+1|0;if(f>>>0>j>>>0){break c}e=I[c|0];i=3;c=f;break I}e=e>>>4|0}f=H[d+4>>2];h=H[d>>2];H[k+24>>2]=h;H[k+28>>2]=f;d=d+8|0;l=l+1|0;if(l>>>0>>0){continue}break}J:{switch(n|0){case 4:case 5:e=H[a+28>>2];K:{if(!I[a+32|0]){break K}i=G[e+58>>1];d=i-1|0;g=J[e+56>>1];l=g<<16>>16;if((l|0)<=0){g=0}else{g=G[(H[e+68>>2]+(g<<1)|0)-2>>1]}L:{if((d|0)<=(g|0)){break L}n=H[e+60>>2];t=n+(g<<3)|0;n=n+(d<<3)|0;if(H[t>>2]!=H[n>>2]|H[t+4>>2]!=H[n+4>>2]){break L}G[e+58>>1]=i-1;d=i-2|0}if((d|0)<(g|0)){break K}G[e+56>>1]=l+1;G[H[e+68>>2]+(l<<1)>>1]=d}F[a+32|0]=1;i=H[e+4>>2];d=G[e+58>>1];l=(d+G[e+22>>1]|0)+1|0;if(!(i>>>0>=l>>>0&K[e+8>>2]>=(G[e+20>>1]+G[e+56>>1]|0)+1>>>0)){d=ee(e,1,1);if(d){break t}if(!I[a+32|0]){d=8;break t}e=H[a+28>>2];d=G[e+58>>1];l=(d+G[e+22>>1]|0)+1|0;i=H[e+4>>2]}if(i>>>0>>0){d=ee(e,1,0);if(d){break t}d=G[e+58>>1]}break u;case 1:case 2:case 3:break v;case 0:break w;default:break J}}if(I[a+32|0]){d=H[a+28>>2];e=G[d+58>>1];M:{if(K[d+4>>2]<(G[d+22>>1]+e|0)+3>>>0){e=ee(d,3,0);if(e){break M}e=G[d+58>>1]}i=H[d- -64>>2];l=H[k+4>>2];g=H[d+60>>2]+(e<<3)|0;H[g>>2]=H[k>>2];H[g+4>>2]=l;l=H[s+4>>2];H[g+8>>2]=H[s>>2];H[g+12>>2]=l;l=H[r+4>>2];H[g+16>>2]=H[r>>2];H[g+20>>2]=l;e=e+i|0;F[e+2|0]=1;F[e|0]=2;F[e+1|0]=2;G[d+58>>1]=J[d+58>>1]+3;e=0}d=e}else{d=8}break t}e=H[a+28>>2];if(I[a+32|0]){f=G[e+58>>1];d=f-1|0;c=J[e+56>>1];h=c<<16>>16;if((h|0)<=0){c=0}else{c=G[(H[e+68>>2]+(c<<1)|0)-2>>1]}N:{if((d|0)<=(c|0)){break N}g=H[e+60>>2];j=g+(c<<3)|0;g=g+(d<<3)|0;if(H[j>>2]!=H[g>>2]|H[j+4>>2]!=H[g+4>>2]){break N}G[e+58>>1]=f-1;d=f-2|0}if((c|0)<=(d|0)){G[e+56>>1]=h+1;G[H[e+68>>2]+(h<<1)>>1]=d}F[a+32|0]=0}Xk(e);d=H[k+44>>2];break b}if(!I[a+32|0]){d=8;break t}e=H[a+28>>2];d=G[e+58>>1];if(K[e+4>>2]<(d+G[e+22>>1]|0)+1>>>0){d=ee(e,1,0);if(d){break t}d=G[e+58>>1]}}i=H[k+4>>2];g=H[e+60>>2]+(d<<3)|0;H[g>>2]=H[k>>2];H[g+4>>2]=i;F[d+H[e- -64>>2]|0]=1;G[e+58>>1]=J[e+58>>1]+1;d=0}H[k+44>>2]=d;if(!d){continue}break}break b}d=8}wc(b)}xb=k+48|0;return d}function IR(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,u=0,v=0;l=xb-560|0;xb=l;H[l+548>>2]=k;H[l+552>>2]=b;H[l+104>>2]=3480;b=l+104|0;q=Ed(l+136|0,l+144|0,b);k=H[q>>2];H[l+132>>2]=k;H[l+128>>2]=k+400;r=Dc(b);o=Dc(l+88|0);m=Dc(l+72|0);n=Dc(l+56|0);p=Dc(l+40|0);H[197455]=0;Ea(3483,c|0,d|0,l+120|0,l+119|0,l+118|0,r|0,o|0,m|0,n|0,l+36|0);b=H[197455];H[197455]=0;if((b|0)!=1){a:{H[j>>2]=H[i>>2];s=e&512;t=s>>>9|0;k=0;c=0;while(1){e=c;b:{c:{d:{e:{if((k|0)==4){break e}H[197455]=0;b=da(3420,a|0,l+552|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}if(!b){break e}d=0;c=e;f:{g:{h:{i:{j:{switch(F[(l+120|0)+k|0]){case 1:if((k|0)==3){break c}H[197455]=0;b=aa(3422,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}if((b|0)>=0?J[H[h+8>>2]+((b&255)<<1)>>1]&8192:0){H[197455]=0;ga(3484,l+24|0,a|0,0);b=H[197455];H[197455]=0;if((b|0)!=1){b=F[l+24|0];H[197455]=0;ba(3348,p|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){break i}}break a}H[f>>2]=H[f>>2]|4;a=0;break d;case 3:break h;case 0:break j;case 4:break f;case 2:break g;default:break b}}if((k|0)==3){break c}}while(1){H[197455]=0;b=da(3420,a|0,l+552|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}if(!b){break c}H[197455]=0;b=aa(3422,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}if(!((J[H[h+8>>2]+((b&255)<<1)>>1]&8192)!=0&(b|0)>=0)){break c}H[197455]=0;ga(3484,l+24|0,a|0,0);b=H[197455];H[197455]=0;if((b|0)!=1){b=F[l+24|0];H[197455]=0;ba(3348,p|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){continue}}break}break a}if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}if(I[n+11|0]>>>7|0){c=H[n+4>>2]}else{c=I[n+11|0]}if((b|0)==(0-c|0)){break c}if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}if(I[n+11|0]>>>7|0){c=H[n+4>>2]}else{c=I[n+11|0]}if(!(c?b:0)){if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}if(b){H[197455]=0;c=aa(3422,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[m+11|0]>>>7|0){b=H[m>>2]}else{b=m}if(I[b|0]==(c&255)){H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}c=b>>>0>1?m:e;break b}F[g|0]=1;break c}H[197455]=0;c=aa(3422,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[n+11|0]>>>7|0){b=H[n>>2]}else{b=n}if(I[b|0]!=(c&255)){break c}H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}F[g|0]=1;if(I[n+11|0]>>>7|0){b=H[n+4>>2]}else{b=I[n+11|0]}c=b>>>0>1?n:e;break b}H[197455]=0;c=aa(3422,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[m+11|0]>>>7|0){b=H[m>>2]}else{b=m}if(I[b|0]==(c&255)){H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[m+11|0]>>>7|0){b=H[m+4>>2]}else{b=I[m+11|0]}c=b>>>0>1?m:e;break b}H[197455]=0;c=aa(3422,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}if(I[n+11|0]>>>7|0){b=H[n>>2]}else{b=n}if(I[b|0]==(c&255)){H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}F[g|0]=1;if(I[n+11|0]>>>7|0){b=H[n+4>>2]}else{b=I[n+11|0]}c=b>>>0>1?n:e;break b}H[f>>2]=H[f>>2]|4;a=0;break d}if(!(k>>>0<2|e)){c=0;if(!((k|0)==2&I[l+123|0]!=0|t)){break b}}u=l,v=Ue(o),H[u+16>>2]=v;H[l+24>>2]=H[l+16>>2];k:{if(!k|I[(k+l|0)+119|0]>1){break k}while(1){l:{u=l,v=nh(o),H[u+16>>2]=v;if(H[l+24>>2]==H[l+16>>2]){break l}b=F[H[l+24>>2]];if((b|0)>=0){b=(J[H[h+8>>2]+((b&255)<<1)>>1]&8192)!=0}else{b=0}if(!b){break l}H[l+24>>2]=H[l+24>>2]+1;continue}break}u=l,v=Ue(o),H[u+16>>2]=v;if(I[p+11|0]>>>7|0){c=H[p+4>>2]}else{c=I[p+11|0]}b=H[l+24>>2]-H[l+16>>2]|0;if(c>>>0>=b>>>0){u=l,v=nh(p),H[u+16>>2]=v;b=sw(l+16|0,0-b|0);c=nh(p);d=Ue(o);H[197455]=0;b=ww(b,c,d);c=H[197455];H[197455]=0;if((c|0)==1){break a}if(b){break k}}u=l,v=Ue(o),H[u+8>>2]=v;H[l+16>>2]=H[l+8>>2];H[l+24>>2]=H[l+16>>2]}H[l+16>>2]=H[l+24>>2];m:{while(1){u=l,v=nh(o),H[u+8>>2]=v;if(H[l+16>>2]==H[l+8>>2]){break m}H[197455]=0;b=da(3420,a|0,l+552|0)|0;c=H[197455];H[197455]=0;n:{if((c|0)==1){break n}if(!b){break m}H[197455]=0;b=aa(3422,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break n}if(I[H[l+16>>2]]!=(b&255)){break m}H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[l+16>>2]=H[l+16>>2]+1;continue}break}break a}if(!s){break c}u=l,v=nh(o),H[u+8>>2]=v;if(H[l+16>>2]==H[l+8>>2]){break c}H[f>>2]=H[f>>2]|4;a=0;break d}o:{while(1){p:{H[197455]=0;b=da(3420,a|0,l+552|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break p}if(!b){break o}H[197455]=0;c=aa(3422,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}q:{if((c|0)>=0?J[H[h+8>>2]+((c&255)<<1)>>1]&2048:0){b=H[j>>2];if((b|0)==H[l+548>>2]){H[197455]=0;ga(3486,i|0,j|0,l+548|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=H[j>>2]}H[j>>2]=b+1;F[b|0]=c;d=d+1|0;break q}if(I[r+11|0]>>>7|0){b=H[r+4>>2]}else{b=I[r+11|0]}if(!b|!d|I[l+118|0]!=(c&255)){break o}c=H[l+132>>2];if((c|0)==H[l+128>>2]){H[197455]=0;ga(3487,q|0,l+132|0,l+128|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}c=H[l+132>>2]}H[l+132>>2]=c+4;H[c>>2]=d;d=0}H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){continue}}break}break a}c=H[l+132>>2];if(!(!d|(c|0)==H[q>>2])){if(H[l+128>>2]==(c|0)){H[197455]=0;ga(3487,q|0,l+132|0,l+128|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}c=H[l+132>>2]}H[l+132>>2]=c+4;H[c>>2]=d}r:{if(H[l+36>>2]<=0){break r}H[197455]=0;b=da(3421,a|0,l+552|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}s:{if(!b){H[197455]=0;b=aa(3422,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}if(I[l+119|0]==(b&255)){break s}}H[f>>2]=H[f>>2]|4;a=0;break d}H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}while(1){if(H[l+36>>2]<=0){break r}H[197455]=0;b=da(3421,a|0,l+552|0)|0;c=H[197455];H[197455]=0;t:{if((c|0)==1){break t}u:{if(!b){H[197455]=0;b=aa(3422,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break t}if((b|0)>=0?J[H[h+8>>2]+((b&255)<<1)>>1]&2048:0){break u}}H[f>>2]=H[f>>2]|4;a=0;break d}if(H[j>>2]==H[l+548>>2]){H[197455]=0;ga(3486,i|0,j|0,l+548|0);b=H[197455];H[197455]=0;if((b|0)==1){break t}}H[197455]=0;b=aa(3422,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break t}c=H[j>>2];H[j>>2]=c+1;F[c|0]=b;H[197455]=0;H[l+36>>2]=H[l+36>>2]-1;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){continue}}break}break a}c=e;if(H[i>>2]!=H[j>>2]){break b}H[f>>2]=H[f>>2]|4;a=0;break d}v:{if(!e){break v}c=1;while(1){if(I[e+11|0]>>>7|0){b=H[e+4>>2]}else{b=I[e+11|0]}if(b>>>0<=c>>>0){break v}H[197455]=0;b=da(3421,a|0,l+552|0)|0;d=H[197455];H[197455]=0;w:{if((d|0)==1){break w}x:{if(!b){H[197455]=0;d=aa(3422,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break w}if(I[e+11|0]>>>7|0){b=H[e>>2]}else{b=e}if(I[b+c|0]==(d&255)){break x}}H[f>>2]=H[f>>2]|4;a=0;break d}H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;c=c+1|0;if((b|0)!=1){continue}}break}break a}y:{if(H[q>>2]==H[l+132>>2]){break y}H[l+24>>2]=0;a=H[q>>2];H[197455]=0;fe(r,a,H[l+132>>2],l+24|0);a=H[197455];H[197455]=0;if((a|0)!=1){if(!H[l+24>>2]){break y}H[f>>2]=H[f>>2]|4;a=0;break d}break a}a=1}_b(p);_b(n);_b(m);_b(o);_b(r);Bc(q);xb=l+560|0;return a|0}c=e}k=k+1|0;continue}}}a=$()|0;_()|0;_b(p);_b(n);_b(m);_b(o);_b(r);Bc(q);ea(a|0);X()}function hC(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,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,J=0,K=0,L=0;e=xb-368|0;xb=e;a:{b:{f=H[a+200>>2];if(f&1){c:{if(f&4){Xb(a,264912);mc(a,c);break c}if(f&2){Xb(a,264991)}if(!(!b|(H[b+8>>2]&2052)!=4)){Xb(a,265019);mc(a,c);break c}if((c|0)!=32){Xb(a,265145);mc(a,c);break c}c=e+336|0;vd(a,c,32);xc(a,c,32);if(mc(a,0)){break c}d:{c=H[e+336>>2];f=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);e:{if((f|0)<0){break e}c=H[e+340>>2];i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((i|0)<0){break e}c=H[e+344>>2];h=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((h|0)<0){break e}c=H[e+348>>2];j=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((j|0)<0){break e}c=H[e+352>>2];g=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((g|0)<0){break e}c=H[e+356>>2];k=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((k|0)<0){break e}c=H[e+360>>2];l=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((l|0)<0){break e}c=H[e+364>>2];c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((c|0)>=0){break d}}Xb(a,265968);break c}s=(c|0)>=0?c:-1;t=(l|0)>=0?l:-1;u=(k|0)>=0?k:-1;v=(g|0)>=0?g:-1;w=(j|0)>=0?j:-1;x=(h|0)>=0?h:-1;y=(i|0)>=0?i:-1;z=(f|0)>=0?f:-1;if(!(!b|!(I[b+9|0]&8))){f:{if(z-32271>>>0<4294965295|y>>>0<31900|(x>>>0<63e3|y>>>0>33900)){break f}if(w>>>0<32e3|x>>>0>65e3|(v>>>0<29e3|w>>>0>34e3)){break f}if(u>>>0<59e3|v>>>0>31e3|(t>>>0<14e3|u>>>0>61e3)){break f}if(s>>>0<5e3|t>>>0>16e3){break f}if(s>>>0<7001){break c}}b=e+80|0;pf(b,1,5,z);pf(b,2,5,y);pf(b,3,5,x);pf(b,4,5,w);pf(b,5,5,v);pf(b,6,5,u);pf(b,7,5,t);pf(b,8,5,s);Ci(a,b,266050);break c}g:{if(I[a+654|0]){break g}H[e+56>>2]=v;c=e- -64|0;H[c>>2]=t;H[e+72>>2]=z;H[e+60>>2]=u;f=H[e+60>>2];H[e+8>>2]=H[e+56>>2];H[e+12>>2]=f;H[e+68>>2]=s;f=H[c+4>>2];H[e+16>>2]=H[c>>2];H[e+20>>2]=f;H[e+76>>2]=y;c=H[e+76>>2];H[e+24>>2]=H[e+72>>2];H[e+28>>2]=c;H[e+52>>2]=w;H[e+48>>2]=x;c=H[e+52>>2];H[e>>2]=H[e+48>>2];H[e+4>>2]=c;c=0;k=xb-32|0;xb=k;f=H[e+28>>2];H[k+24>>2]=H[e+24>>2];H[k+28>>2]=f;f=H[e+20>>2];H[k+16>>2]=H[e+16>>2];H[k+20>>2]=f;f=H[e+12>>2];H[k+8>>2]=H[e+8>>2];H[k+12>>2]=f;f=H[e+4>>2];H[k>>2]=H[e>>2];H[k+4>>2]=f;C=1;h:{i:{q=H[k>>2];if(q>>>0>1e5){break i}o=H[k+4>>2];if((o|0)<0|(o|0)>(1e5-q|0)){break i}r=H[k+8>>2];if(r>>>0>1e5){break i}p=H[k+12>>2];if((p|0)<0|(p|0)>(1e5-r|0)){break i}m=H[k+16>>2];if(m>>>0>1e5){break i}l=H[k+20>>2];if((l|0)<0|(l|0)>(1e5-m|0)){break i}n=H[k+24>>2];if(n>>>0>1e5){break i}f=H[k+28>>2];if((f|0)<5|(f|0)>(1e5-n|0)){break i}D=o-l|0;h=r-m|0;j=(m|0)==(r|0);g=0;j:{k:{if(j){break k}g=0;if((l|0)==(o|0)){break k}i=2;d=T(+(h|0)*+(D|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}g=~~d;if(P(d)<2147483648){break k}g=-2147483648}E=q-m|0;A=p-l|0;F=(m|0)==(q|0);l:{if(F|(l|0)==(p|0)){break l}i=2;d=T(+(E|0)*+(A|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}if(P(d)<2147483648){c=~~d;break l}c=-2147483648}J=f-l|0;i=0;m:{if(j){break m}i=0;if((f|0)==(l|0)){break m}i=2;d=T(+(h|0)*+(J|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}i=~~d;if(P(d)<2147483648){break m}i=-2147483648}j=i;K=n-m|0;n:{if((l|0)==(p|0)|(m|0)==(n|0)){break n}i=2;d=T(+(A|0)*+(K|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}if(P(d)<2147483648){B=~~d;break n}B=-2147483648}if((j|0)==(B|0)){break i}A=g-c|0;L=(c|0)==(g|0);h=0;o:{if(L){break o}d=T(+(f|0)*+(A|0)/+(j-B|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break i}h=~~d;if(P(d)<2147483648){break o}h=-2147483648}if((h|0)<=(f|0)){break i}c=0;g=0;p:{if((l|0)==(o|0)){break p}g=0;if((m|0)==(n|0)){break p}i=2;d=T(+(D|0)*+(K|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}g=~~d;if(P(d)<2147483648){break p}g=-2147483648}q:{if((f|0)==(l|0)|F){break q}i=2;d=T(+(E|0)*+(J|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}if(P(d)<2147483648){c=~~d;break q}c=-2147483648}if((c|0)==(g|0)){break i}j=0;r:{if(L){break r}d=T(+(f|0)*+(A|0)/+(g-c|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break i}j=~~d;if(P(d)<2147483648){break r}j=-2147483648}i=1;if((f|0)>=(j|0)){break j}d=T(1e10/+(f|0)+.5);f=d>=-2147483648;if(P(d)<2147483648){c=~~d}else{c=-2147483648}f=f?c:0;g=d<=2147483647;s:{t:{if(!h){break t}d=T(1e10/+(h|0)+.5);n=d<=2147483647;if(P(d)<2147483648){c=~~d}else{c=-2147483648}if(!n){break t}if(d>=-2147483648){break s}}c=0}g=g?f:0;u:{v:{if(!j){break v}d=T(1e10/+(j|0)+.5);n=d<=2147483647;if(P(d)<2147483648){f=~~d}else{f=-2147483648}if(!n){break v}if(d>=-2147483648){break u}}f=0}f=g-(c+f|0)|0;if(!h|(f|0)<=0){break j}c=0;g=0;w:{if(!q){break w}d=T(+(q|0)*1e5/+(h|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}g=~~d;if(P(d)<2147483648){break w}g=-2147483648}H[e+80>>2]=g;x:{if(!o){break x}d=T(+(o|0)*1e5/+(h|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}if(P(d)<2147483648){c=~~d;break x}c=-2147483648}H[e+84>>2]=c;g=o+q|0;c=0;y:{if((g|0)==1e5){break y}d=T(+(1e5-g|0)*1e5/+(h|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}c=~~d;if(P(d)<2147483648){break y}c=-2147483648}H[e+88>>2]=c;if(!j){break j}c=0;g=0;z:{if(!r){break z}d=T(+(r|0)*1e5/+(j|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}g=~~d;if(P(d)<2147483648){break z}g=-2147483648}H[e+92>>2]=g;A:{if(!p){break A}d=T(+(p|0)*1e5/+(j|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}if(P(d)<2147483648){c=~~d;break A}c=-2147483648}H[e+96>>2]=c;c=0;g=p+r|0;h=0;B:{if((g|0)==1e5){break B}d=T(+(1e5-g|0)*1e5/+(j|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}h=~~d;if(P(d)<2147483648){break B}h=-2147483648}H[e+100>>2]=h;C:{if(!m){break C}d=T(+(m|0)*+(f|0)/1e5+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}if(P(d)<2147483648){c=~~d;break C}c=-2147483648}H[e+104>>2]=c;c=0;j=0;D:{if(!l){break D}d=T(+(l|0)*+(f|0)/1e5+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}j=~~d;if(P(d)<2147483648){break D}j=-2147483648}H[e+108>>2]=j;h=l+m|0;E:{if((h|0)==1e5){break E}d=T(+(1e5-h|0)*+(f|0)/1e5+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break j}if(P(d)<2147483648){c=~~d;break E}c=-2147483648}H[e+112>>2]=c;i=0}break h}i=1}F:{switch(i|0){default:hc(a,262696);X();case 1:Xb(a,262421);C=0;break;case 0:break F}}xb=k+32|0;if(!C){break g}if(!fn(e+44|0,H[e+84>>2],32768)){break a}c=H[e+44>>2];if((c|0)<0|(c|0)>32768){break a}if(!fn(e+40|0,H[e+96>>2],32768)){break a}c=H[e+40>>2];if((c|0)<0|(c|0)>32768){break a}if(!fn(e+36|0,H[e+108>>2],32768)){break a}c=H[e+36>>2];if((c|0)<0|(c|0)>32768){break a}f=H[e+40>>2];i=H[e+44>>2];j=f+(i+c|0)|0;if((j|0)>32769){break a}h=-1;G:{if((j|0)!=32769){h=1;if((j|0)>32767){break G}}if(!((f|0)<(i|0)|(c|0)>(f|0))){f=f+h|0;H[e+40>>2]=f;break G}if(!((f|0)>(i|0)|(c|0)>(i|0))){i=i+h|0;H[e+44>>2]=i;break G}c=c+h|0;H[e+36>>2]=c}if(((f+i|0)+c|0)!=32768){break b}G[a+658>>1]=f;G[a+656>>1]=i}H:{if(!a|!b){break H}if(!Kq(a,z,y,x,w,v,u,t,s)){break H}H[b+156>>2]=s;H[b+152>>2]=t;H[b+148>>2]=u;H[b+144>>2]=v;H[b+140>>2]=w;H[b+136>>2]=x;H[b+132>>2]=y;H[b+128>>2]=z;H[b+8>>2]=H[b+8>>2]|4}}xb=e+368|0;return}hc(a,264807);X()}hc(a,266190);X()}hc(a,266365);X()}function T8(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;m=xb-16|0;xb=m;h=H[a+584>>2];if(!I[h+206|0]){gB(a)}a:{b:{c:{if(!I[h+392|0]){f=H[a+584>>2];g=H[a+56>>2];H[f+172>>2]=g;c=H[a+60>>2];H[f+176>>2]=c;d:{if(I[a+13|0]&4){g=H[a+68>>2];d=H[a+72>>2];e=(c+d|0)-1|0;e=e-((e>>>0)%(d>>>0)|0)|0;break d}d=H[a+100>>2];e=c}H[f+188>>2]=e;H[f+184>>2]=d;H[f+180>>2]=g;e=J[a+98>>1];F[f+192|0]=e;e:{f:{g:{h:{e=e&255;switch(e-1|0){case 0:break h;case 2:break f;default:break g}}G[f+208>>1]=257;F[f+193|0]=0;F[f+194|0]=1;break e}a=H[a+628>>2];H[m>>2]=e;Pb(a,295936,288739,m);f=0;break c}F[f+193|0]=0;if(J[a+138>>1]==1){F[f+194|0]=3;break e}F[f+194|0]=1}if(c>>>0>d>>>0){e=I[f+209|0]<<3;c=(d>>>0)/(e>>>0)|0;if((N(c,e)|0)!=(d|0)){f=0;Pb(H[a+628>>2],295936,288815,0);break c}e=I[f+208|0]<<3;G[f+300>>1]=N(c,((e+g|0)-1>>>0)/(e>>>0)|0)}if(!fB(a)){f=0;break c}F[f+332|0]=1;F[f+392|0]=1;c=H[f+1128>>2];H[f+336>>2]=H[f+1124>>2];H[f+340>>2]=c;c=J[f+1148>>1];H[f+344>>2]=H[f+1136>>2]-c;H[f+348>>2]=c+H[f+1144>>2]}i:{if(I[(N(b,20)+h|0)+332|0]){break i}c=H[a+584>>2];f=b;while(1){f=f-1|0;e=f&255;if(!I[(c+N(e,20)|0)+332|0]){continue}break}F[c+193|0]=f;e=c+N(e,20)|0;H[c+1124>>2]=H[e+336>>2];H[c+1128>>2]=H[e+340>>2];g=H[e+344>>2];d=0;F[c+1140|0]=0;H[c+1136>>2]=g;e=H[e+348>>2];H[c+1152>>2]=0;G[c+1148>>1]=0;H[c+1144>>2]=e;if((f&255)>>>0>=b>>>0){break i}while(1){if(!(d&65535)){if(!Fd(c)){f=0;break c}d=J[c+1148>>1]}f=H[c+1152>>2];e=I[f|0];d=d-1|0;G[c+1148>>1]=d;f=f+1|0;H[c+1152>>2]=f;if((e|0)!=255){continue}while(1){if(!(d&65535)){if(!Fd(c)){f=0;break c}d=J[c+1148>>1];f=H[c+1152>>2]}e=I[f|0];d=d-1|0;G[c+1148>>1]=d;f=f+1|0;H[c+1152>>2]=f;if((e|0)==255){continue}break}if((e|0)!=218){continue}F[c+193|0]=I[c+193|0]+1;if(!eB(a)){f=0;break c}e=I[c+193|0];f=c+N(e,20)|0;F[f+332|0]=1;H[f+336>>2]=H[c+1124>>2];H[f+340>>2]=H[c+1128>>2];d=J[c+1148>>1];H[f+344>>2]=H[c+1136>>2]-d;H[f+348>>2]=H[c+1144>>2]+d;if(b>>>0>e>>>0){continue}break}}n=H[(I[a+13|0]&4?504:480)+a>>2];j:{if(I[h+393|0]){if(J[h+394>>1]==(b|0)){c=H[h+396>>2];if(n>>>0>=c>>>0){break j}}if(I[h+400|0]){c=H[a+584>>2];f=c+536|0;e=H[f+4>>2];if(e){zb[H[e+40>>2]](f)}H[f+20>>2]=0;H[f+4>>2]=0;F[c+400|0]=0}F[h+393|0]=0}G[h+394>>1]=b;F[h+193|0]=b;H[h+396>>2]=N(H[a+176>>2],b);k:{l:{if(!I[h+1140|0]){d=H[(N(b,20)+h|0)+344>>2];break l}d=H[(N(b,20)+h|0)+344>>2];if((d|0)==(H[h+1136>>2]-J[h+1148>>1]|0)){break k}}b=N(b,20)+h|0;H[h+1124>>2]=H[b+336>>2];f=H[b+340>>2];F[h+1140|0]=0;H[h+1136>>2]=d;H[h+1128>>2]=f;b=H[b+348>>2];H[h+1152>>2]=0;G[h+1148>>1]=0;H[h+1144>>2]=b}f=0;c=H[a+584>>2];F[c+302|0]=0;H[c+3204>>2]=0;b=c+404|0;Hj(b);H[c+548>>2]=a;H[c+536>>2]=b;H[c+404>>2]=1535;H[c+412>>2]=1536;o=c+536|0;g=0;b=Tb(40);H[b>>2]=0;b=sd(c+4|0,1,b,4);l=_()|0;d=0;m:{n:{while(1){if(d){break m}H[197455]=0;ga(971,o|0,80,488);d=H[197455];H[197455]=0;if((d|0)==1){break b}e=-1;o:{p:{if(!d){break p}i=H[197456];if(!i){break p}e=Sb(H[d>>2],b,l);if(!e){break o}ja(i|0)}d=_()|0;if((e|0)!=1){break n}continue}break}break a}g=1}Kb(b);if(!g){break c}F[c+400|0]=1;H[c+1048>>2]=1537;H[c+1044>>2]=1538;H[c+1040>>2]=1539;H[c+1036>>2]=1540;H[c+1032>>2]=1541;H[c+1028>>2]=0;H[c+560>>2]=c+1024;g=0;b=Tb(40);H[b>>2]=0;b=sd(c+4|0,1,b,4);l=_()|0;d=0;q:{r:{while(1){if(d){break q}H[197455]=0;da(972,o|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break b}e=-1;s:{t:{if(!d){break t}i=H[197456];if(!i){break t}e=Sb(H[d>>2],b,l);if(!e){break s}ja(i|0)}d=_()|0;if((e|0)!=1){break r}continue}break}break a}g=1}Kb(b);if(!g){break c}u:{v:{w:{b=I[c+194|0];if(!(I[c+210|0]|b>>>0<2)){F[c+401|0]=0;H[c+612>>2]=0;H[c+604>>2]=1;if(I[c+1052|0]){break u}H[c+1068>>2]=8;e=I[c+209|0]<<3;H[c+1060>>2]=e;d=I[c+208|0];b=d<<3;g=(b+H[c+180>>2]|0)-1|0;b=g-((g>>>0)%(b>>>0)|0)|0;H[c+1056>>2]=b;e=N(b,e);H[c+1072>>2]=e;b=(b>>>0)/(d>>>0)|0;H[c+1064>>2]=b;H[c+1076>>2]=b<<3;b=e+(b<<4)|0;H[c+1080>>2]=b;b=Tb(b);H[c+1084>>2]=b;if(!b){Pb(H[a+628>>2],295968,280533,0);break c}H[c+1088>>2]=b;b=b+H[c+1072>>2]|0;H[c+1092>>2]=b;H[c+1096>>2]=b+H[c+1076>>2];b=(H[c+1060>>2]+(H[c+1068>>2]<<1)|0)+3|0;H[c+1100>>2]=b;b=Tb(b<<2);H[c+1104>>2]=b;if(!b){Pb(H[a+628>>2],295968,280533,0);break c}d=b+12|0;H[b>>2]=d;e=H[c+1060>>2];g=e<<2;H[b+4>>2]=(g+H[c+1104>>2]|0)+12;i=H[c+1068>>2];H[b+8>>2]=((g+H[c+1104>>2]|0)+(i<<2)|0)+12;if(!e){break v}l=e&3;b=H[c+1056>>2];if(e-1>>>0<3){g=0;break w}e=e&-4;g=0;while(1){H[d>>2]=H[c+1088>>2]+N(b,g);H[d+4>>2]=H[c+1088>>2]+N(b,g|1);H[d+8>>2]=H[c+1088>>2]+N(b,g|2);H[d+12>>2]=H[c+1088>>2]+N(b,g|3);g=g+4|0;d=d+16|0;j=j+4|0;if((e|0)!=(j|0)){continue}break}break w}F[c+401|0]=1;H[c+576>>2]=0;H[c+580>>2]=0;H[c+1120>>2]=H[c+184>>2];H[c+1116>>2]=N(b,H[c+180>>2]);break u}if(!l){break v}while(1){H[d>>2]=H[c+1088>>2]+N(b,g);g=g+1|0;d=d+4|0;k=k+1|0;if((l|0)!=(k|0)){continue}break}}x:{if(!i){break x}g=i&3;e=H[c+1064>>2];k=0;l=i-1|0;y:{if(l>>>0<3){b=0;break y}p=i&-4;b=0;j=0;while(1){H[d>>2]=H[c+1092>>2]+N(b,e);H[d+4>>2]=H[c+1092>>2]+N(e,b|1);H[d+8>>2]=H[c+1092>>2]+N(e,b|2);H[d+12>>2]=H[c+1092>>2]+N(e,b|3);b=b+4|0;d=d+16|0;j=j+4|0;if((p|0)!=(j|0)){continue}break}}if(g){while(1){H[d>>2]=H[c+1092>>2]+N(b,e);b=b+1|0;d=d+4|0;k=k+1|0;if((g|0)!=(k|0)){continue}break}}g=i&3;k=0;z:{if(l>>>0<3){b=0;break z}i=i&-4;b=0;j=0;while(1){H[d>>2]=H[c+1096>>2]+N(b,e);H[d+4>>2]=H[c+1096>>2]+N(e,b|1);H[d+8>>2]=H[c+1096>>2]+N(e,b|2);H[d+12>>2]=H[c+1096>>2]+N(e,b|3);b=b+4|0;d=d+16|0;j=j+4|0;if((i|0)!=(j|0)){continue}break}}if(!g){break x}while(1){H[d>>2]=H[c+1096>>2]+N(b,e);b=b+1|0;d=d+4|0;k=k+1|0;if((g|0)!=(k|0)){continue}break}}H[c+1112>>2]=0;F[c+1052|0]=1;b=I[c+208|0];d=((b+H[c+180>>2]|0)-1>>>0)/(b>>>0)|0;H[c+1108>>2]=d;e=I[c+209|0];H[c+1120>>2]=((e+H[c+184>>2]|0)-1>>>0)/(e>>>0);H[c+1116>>2]=N(d,N(b,e)+2|0)}g=0;b=Tb(40);H[b>>2]=0;b=sd(c+4|0,1,b,4);k=_()|0;d=0;A:{B:{while(1){if(d){break A}H[197455]=0;aa(977,o|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}j=-1;C:{D:{if(!e){break D}d=H[197456];if(!d){break D}j=Sb(H[e>>2],b,k);if(!j){break C}ja(d|0)}d=_()|0;if((j|0)!=1){break B}continue}break}Kb(b);ed(e,d);X()}g=1}Kb(b);if(!g){break c}F[c+393|0]=1;c=H[h+396>>2]}f=1;if(c>>>0>=n>>>0){break c}while(1){b=H[a+584>>2];E:{F:{if(!I[h+401|0]){f=H[b+1068>>2];d=H[b+1120>>2];c=H[b+1112>>2];if(c){e=f-c|0;if(e>>>0>=d>>>0){c=c+d|0;d=(c|0)==(f|0)?0:c;break F}H[b+1112>>2]=0;d=d-e|0}if(d>>>0>=f>>>0){f=b+536|0;while(1){if(!tq(b,f,H[b+1104>>2],I[b+209|0]<<3)){f=0;break c}c=H[b+1068>>2];d=d-c|0;if(d>>>0>=c>>>0){continue}break}}if(!d){break E}if(tq(b,b+536|0,H[b+1104>>2],I[b+209|0]<<3)){break F}f=0;break c}G:{if(H[b+5256>>2]){break G}f=Tb(H[b+1116>>2]);H[b+5256>>2]=f;if(f){break G}f=0;Pb(H[a+628>>2],296e3,280533,0);break c}if(!H[b+1120>>2]){break E}c=b+5256|0;e=b+536|0;f=0;d=0;while(1){if(!dB(b,e,c)){break c}d=d+1|0;if(d>>>0>2]){continue}break}break E}H[b+1112>>2]=d}f=1;b=H[h+396>>2]+1|0;H[h+396>>2]=b;if(b>>>0>>0){continue}break}}xb=m+16|0;return f|0}a=$()|0;Kb(b);ea(a|0);X()}Kb(b);ed(d,i);X()}function $ca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-32|0;xb=e;k=H[a+404>>2];a:{if(!H[a+212>>2]){if(H[a+288>>2]<=0){break a}while(1){c=H[((b<<2)+a|0)+292>>2];if(!(H[a+360>>2]|H[a+368>>2])){tg(a,H[c+20>>2],0)}if(H[a+364>>2]){tg(a,H[c+24>>2],1)}b=b+1|0;if((b|0)>2]){continue}break}break a}H[e+16>>2]=0;H[e+20>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;c=H[a+288>>2];b:{if((c|0)<=0){break b}b=H[a+364>>2];if(!H[a+360>>2]){if(!H[a+368>>2]){if(b){b=0;if((c|0)!=1){f=c&-2;g=a+292|0;while(1){j=e+16|0;h=b<<2;i=H[h+g>>2];F[j+H[i+20>>2]|0]=1;F[H[i+24>>2]+e|0]=1;h=H[g+(h|4)>>2];F[j+H[h+20>>2]|0]=1;F[H[h+24>>2]+e|0]=1;b=b+2|0;d=d+2|0;if((f|0)!=(d|0)){continue}break}}if(!(c&1)){break b}b=H[((b<<2)+a|0)+292>>2];F[H[b+20>>2]+(e+16|0)|0]=1;F[H[b+24>>2]+e|0]=1;break b}b=0;if(c-1>>>0>=3){j=c&-4;f=a+292|0;while(1){i=e+16|0;h=b<<2;F[i+H[H[h+f>>2]+20>>2]|0]=1;F[i+H[H[f+(h|4)>>2]+20>>2]|0]=1;F[i+H[H[f+(h|8)>>2]+20>>2]|0]=1;F[i+H[H[f+(h|12)>>2]+20>>2]|0]=1;b=b+4|0;d=d+4|0;if((j|0)!=(d|0)){continue}break}}c=c&3;if(!c){break b}while(1){F[H[H[((b<<2)+a|0)+292>>2]+20>>2]+(e+16|0)|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}break b}if(!b){break b}b=0;if(c-1>>>0>=3){i=c&-4;f=a+292|0;while(1){h=b<<2;F[H[H[h+f>>2]+24>>2]+e|0]=1;F[H[H[f+(h|4)>>2]+24>>2]+e|0]=1;F[H[H[f+(h|8)>>2]+24>>2]+e|0]=1;F[H[H[f+(h|12)>>2]+24>>2]+e|0]=1;b=b+4|0;d=d+4|0;if((i|0)!=(d|0)){continue}break}}c=c&3;if(!c){break b}while(1){F[H[H[((b<<2)+a|0)+292>>2]+24>>2]+e|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}break b}if(!b){break b}b=0;if(c-1>>>0>=3){i=c&-4;f=a+292|0;while(1){h=b<<2;F[H[H[h+f>>2]+24>>2]+e|0]=1;F[H[H[f+(h|4)>>2]+24>>2]+e|0]=1;F[H[H[f+(h|8)>>2]+24>>2]+e|0]=1;F[H[H[f+(h|12)>>2]+24>>2]+e|0]=1;b=b+4|0;d=d+4|0;if((i|0)!=(d|0)){continue}break}}c=c&3;if(!c){break b}while(1){F[H[H[((b<<2)+a|0)+292>>2]+24>>2]+e|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}}d=F[e+15|0]+(F[e+31|0]+(F[e+14|0]+(F[e+30|0]+(F[e+13|0]+(F[e+29|0]+(F[e+12|0]+(F[e+28|0]+(F[e+11|0]+(F[e+27|0]+(F[e+10|0]+(F[e+26|0]+(F[e+9|0]+(F[e+25|0]+(F[e+8|0]+(F[e+24|0]+(F[e+7|0]+(F[e+23|0]+(F[e+6|0]+(F[e+22|0]+(F[e+5|0]+(F[e+21|0]+(F[e+4|0]+(F[e+20|0]+(F[e+3|0]+(F[e+19|0]+(F[e+2|0]+(F[e+18|0]+(F[e+1|0]+(F[e+17|0]+(F[e|0]+F[e+16|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;if(!d){break a}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;c:{if(c){break c}if(zb[H[b+12>>2]](a)|0){break c}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=204;c=H[b+4>>2]-1|0;H[b+4>>2]=c;d:{if(c){break d}if(zb[H[b+12>>2]](a)|0){break d}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;d=(d<<1)+2|0;F[c|0]=d>>>8;c=H[b+4>>2]-1|0;H[b+4>>2]=c;e:{if(c){break e}if(zb[H[b+12>>2]](a)|0){break e}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;f:{if(c){break f}if(zb[H[b+12>>2]](a)|0){break f}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=0;while(1){g:{if(!I[(e+16|0)+b|0]){break g}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=b;d=H[c+4>>2]-1|0;H[c+4>>2]=d;h:{if(d){break h}if(zb[H[c+12>>2]](a)|0){break h}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=a+b|0;g=I[c+152|0];f=I[c+168|0];c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=g+(f<<4);d=H[c+4>>2]-1|0;H[c+4>>2]=d;if(d){break g}if(zb[H[c+12>>2]](a)|0){break g}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}i:{if(!I[b+e|0]){break i}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=b+16;d=H[c+4>>2]-1|0;H[c+4>>2]=d;j:{if(d){break j}if(zb[H[c+12>>2]](a)|0){break j}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}g=I[(a+b|0)+184|0];c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=g;d=H[c+4>>2]-1|0;H[c+4>>2]=d;if(d){break i}if(zb[H[c+12>>2]](a)|0){break i}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}b=b+1|0;if((b|0)!=16){continue}break}}if(H[a+236>>2]!=H[k+28>>2]){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;k:{if(c){break k}if(zb[H[b+12>>2]](a)|0){break k}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=221;c=H[b+4>>2]-1|0;H[b+4>>2]=c;l:{if(c){break l}if(zb[H[b+12>>2]](a)|0){break l}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;m:{if(c){break m}if(zb[H[b+12>>2]](a)|0){break m}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=4;c=H[b+4>>2]-1|0;H[b+4>>2]=c;n:{if(c){break n}if(zb[H[b+12>>2]](a)|0){break n}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}c=H[a+236>>2];b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c>>>8;d=H[b+4>>2]-1|0;H[b+4>>2]=d;o:{if(d){break o}if(zb[H[b+12>>2]](a)|0){break o}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c;c=H[b+4>>2]-1|0;H[b+4>>2]=c;p:{if(c){break p}if(zb[H[b+12>>2]](a)|0){break p}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}H[k+28>>2]=H[a+236>>2]}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;q:{if(c){break q}if(zb[H[b+12>>2]](a)|0){break q}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=218;c=H[b+4>>2]-1|0;H[b+4>>2]=c;r:{if(c){break r}if(zb[H[b+12>>2]](a)|0){break r}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=H[a+288>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;d=(d<<1)+6|0;F[c|0]=d>>>8;c=H[b+4>>2]-1|0;H[b+4>>2]=c;s:{if(c){break s}if(zb[H[b+12>>2]](a)|0){break s}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;t:{if(c){break t}if(zb[H[b+12>>2]](a)|0){break t}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=H[a+288>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;u:{if(c){break u}if(zb[H[b+12>>2]](a)|0){break u}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(H[a+288>>2]>0){g=0;while(1){c=H[((g<<2)+a|0)+292>>2];f=H[c>>2];b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=f;d=H[b+4>>2]-1|0;H[b+4>>2]=d;v:{if(d){break v}if(zb[H[b+12>>2]](a)|0){break v}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=0;b=0;w:{if(H[a+360>>2]){break w}b=0;if(H[a+368>>2]){break w}b=H[c+20>>2]}d=H[a+364>>2]?H[c+24>>2]:d;c=H[a+24>>2];f=H[c>>2];H[c>>2]=f+1;F[f|0]=(b<<4)+d;b=H[c+4>>2]-1|0;H[c+4>>2]=b;x:{if(b){break x}if(zb[H[c+12>>2]](a)|0){break x}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}g=g+1|0;if((g|0)>2]){continue}break}}d=H[a+360>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;y:{if(c){break y}if(zb[H[b+12>>2]](a)|0){break y}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=H[a+364>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;z:{if(c){break z}if(zb[H[b+12>>2]](a)|0){break z}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=H[a+372>>2];g=H[a+368>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d+(g<<4);c=H[b+4>>2]-1|0;H[b+4>>2]=c;A:{if(c){break A}if(zb[H[b+12>>2]](a)|0){break A}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}xb=e+32|0}function bV(a){a=a|0;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;f=xb-176|0;xb=f;p=a+16|0;q=a+12|0;l=H[191568];n=1;while(1){a:{b:{h=oc(1,126508);if(h){hy(h,239897,0);e=Tb(48);if(e){g=(f+168|0)+(i<<2)|0;H[g>>2]=e;H[e+12>>2]=1;b=Tb(24);if(b){H[e+40>>2]=b;H[b+20>>2]=0;H[b+12>>2]=-1;H[b+16>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;H[e+44>>2]=0;b=e+16|0;c:{if(n){F[b|0]=0;F[b+1|0]=0;F[b+2|0]=0;F[b+3|0]=0;F[b+4|0]=0;F[b+5|0]=0;F[b+6|0]=0;F[b+7|0]=0;F[b+16|0]=0;F[b+17|0]=0;F[b+18|0]=0;F[b+19|0]=0;F[b+8|0]=0;F[b+9|0]=0;F[b+10|0]=0;F[b+11|0]=0;F[b+12|0]=0;F[b+13|0]=0;F[b+14|0]=0;F[b+15|0]=0;e=f- -64|0;b=H[H[H[a>>2]-12>>2]+q>>2];k=(b|0)<=0?2147483646:b;d=0;i=xb-16|0;xb=i;mp(i+8|0,a,0);d:{e:{f:{if(I[i+8|0]){b=H[H[a>>2]-12>>2];H[197455]=0;b=H[(a+b|0)+28>>2];H[i>>2]=b;H[b+4>>2]=H[b+4>>2]+1;b=H[197455];H[197455]=0;g:{h:{i:{if((b|0)!=1){H[197455]=0;m=da(1708,i|0,790104)|0;b=H[197455];H[197455]=0;if((b|0)==1){break i}b=H[i>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}b=e;c=k-1|0;j:{if(!c){break j}c=c+e|0;k=a+24|0;while(1){d=H[k+H[H[a>>2]-12>>2]>>2];j=H[d+12>>2];k:{if((j|0)==H[d+16>>2]){j=H[H[d>>2]+36>>2];H[197455]=0;d=aa(j|0,d|0)|0;j=H[197455];H[197455]=0;if((j|0)!=1){if((d|0)!=-1){break k}d=2;break j}d=ha(0)|0;_()|0;break h}d=I[j|0]}if(!(!(I[(H[m+8>>2]+((d&255)<<1)|0)+1|0]&32)|d<<24>>24<0)){d=0;break j}F[b|0]=d;d=H[k+H[H[a>>2]-12>>2]>>2];j=H[d+12>>2];l:{if((j|0)==H[d+16>>2]){j=H[H[d>>2]+40>>2];H[197455]=0;aa(j|0,d|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break l}d=ha(0)|0;_()|0;break h}H[d+12>>2]=j+1}b=b+1|0;if((c|0)!=(b|0)){continue}break}d=0;b=c}F[b|0]=0;c=H[a>>2];H[(H[c-12>>2]+a|0)+12>>2]=0;d=(b|0)==(e|0)?d|4:d;break g}d=ha(0)|0;_()|0;break h}d=ha(0)|0;_()|0;b=H[i>>2];e=H[b+4>>2]-1|0;H[b+4>>2]=e;if((e|0)==-1){zb[H[H[b>>2]+8>>2]](b)}}sa(d|0)|0;d=1;b=H[a>>2]-12|0;e=H[b>>2]+a|0;H[e+16>>2]=H[e+16>>2]|1;if(F[(H[b>>2]+a|0)+20|0]&1){H[197455]=0;na(3312);a=H[197455];H[197455]=0;if((a|0)!=1){break e}a=$()|0;_()|0;H[197455]=0;na(1711);b=H[197455];H[197455]=0;if((b|0)==1){break f}ea(a|0);X()}ra();c=H[a>>2]}b=H[c-12>>2]+a|0;ep(b,H[b+16>>2]|d)}xb=i+16|0;break d}ha(0)|0;_()|0;Zb()}X()}b=H[g>>2];m:{if(!(I[(a+H[H[a>>2]-12>>2]|0)+16|0]&5)){n:{switch(I[b+16|0]-10|0){case 0:case 3:F[b+16|0]=0;b=H[g>>2];break;default:break n}}o:{switch(I[b+17|0]-10|0){case 0:case 3:F[b+17|0]=0;b=H[g>>2];break;default:break o}}p:{switch(I[b+18|0]-10|0){case 0:case 3:F[b+18|0]=0;b=H[g>>2];break;default:break p}}q:{switch(I[b+19|0]-10|0){case 0:case 3:F[b+19|0]=0;b=H[g>>2];break;default:break q}}r:{switch(I[b+20|0]-10|0){case 0:case 3:F[b+20|0]=0;b=H[g>>2];break;default:break r}}s:{switch(I[b+21|0]-10|0){case 0:case 3:F[b+21|0]=0;b=H[g>>2];break;default:break s}}t:{switch(I[b+22|0]-10|0){case 0:case 3:F[b+22|0]=0;b=H[g>>2];break;default:break t}}u:{switch(I[b+23|0]-10|0){case 0:case 3:F[b+23|0]=0;b=H[g>>2];break;default:break u}}v:{switch(I[b+24|0]-10|0){case 0:case 3:F[b+24|0]=0;b=H[g>>2];break;default:break v}}w:{switch(I[b+25|0]-10|0){case 0:case 3:F[b+25|0]=0;b=H[g>>2];break;default:break w}}x:{switch(I[b+26|0]-10|0){case 0:case 3:F[b+26|0]=0;b=H[g>>2];break;default:break x}}y:{switch(I[b+27|0]-10|0){case 0:case 3:F[b+27|0]=0;b=H[g>>2];break;default:break y}}z:{switch(I[b+28|0]-10|0){case 0:case 3:F[b+28|0]=0;b=H[g>>2];break;default:break z}}A:{switch(I[b+29|0]-10|0){case 0:case 3:F[b+29|0]=0;b=H[g>>2];break;default:break A}}B:{switch(I[b+30|0]-10|0){case 0:case 3:F[b+30|0]=0;b=H[g>>2];break;default:break B}}C:{switch(I[b+31|0]-10|0){case 0:case 3:F[b+31|0]=0;b=H[g>>2];break;default:break C}}D:{switch(I[b+32|0]-10|0){case 0:case 3:F[b+32|0]=0;b=H[g>>2];break;default:break D}}E:{switch(I[b+33|0]-10|0){case 0:case 3:F[b+33|0]=0;b=H[g>>2];break;default:break E}}F:{switch(I[b+34|0]-10|0){case 0:case 3:F[b+34|0]=0;b=H[g>>2];break;default:break F}}G:{switch(I[b+35|0]-10|0){case 0:case 3:break G;default:break m}}F[b+35|0]=0;break m}F[b+16|0]=0}b=H[g>>2];r=b,s=!fc(b+16|0,239661),H[r+36>>2]=s;break c}c=b;b=H[f+168>>2];Ld(c,b+16|0,19);F[e+35|0]=0;H[e+36>>2]=H[b+36>>2];if(!o){break b}}b=mx(a,f- -64|0);if(I[(H[H[b>>2]-12>>2]+b|0)+16|0]&5){break a}while(1){if(ac(f- -64|0)>>>0<=99){b=f- -64|0;b=ac(b)+b|0;F[b|0]=10;F[b+1|0]=0}H:{I:{if(I[H[H[a>>2]-12>>2]+p|0]&2){break I}if(ie(f- -64|0,10)){break I}while(1){J:{e=xb-16|0;xb=e;H[a+4>>2]=0;mp(e+8|0,a,1);K:{L:{M:{N:{if(!I[e+8|0]){b=-1;break N}b=H[H[a>>2]-12>>2];H[197455]=0;b=H[(a+b|0)+24>>2];c=H[197455];H[197455]=0;O:{P:{if((c|0)==1){break P}H[197455]=0;b=aa(3334,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break P}c=6;if((b|0)==-1){break O}H[a+4>>2]=1;c=0;break O}b=ha(0)|0;_()|0;sa(b|0)|0;b=H[H[a>>2]-12>>2];H[197455]=0;b=a+b|0;c=H[b+16>>2];d=H[197455];H[197455]=0;Q:{R:{if((d|0)==1){break R}H[b+16>>2]=!H[b+24>>2]|(H[b+16>>2]|(c|1));b=H[H[a>>2]-12>>2];H[197455]=0;b=H[(a+b|0)+20>>2];c=H[197455];H[197455]=0;if((c|0)==1){break R}if(!(b&1)){break Q}H[197455]=0;na(3312);a=H[197455];H[197455]=0;if((a|0)!=1){break L}}a=$()|0;_()|0;H[197455]=0;na(1711);b=H[197455];H[197455]=0;if((b|0)==1){break M}ea(a|0);X()}ra();b=-1;c=0}aj(H[H[a>>2]-12>>2]+a|0,c)}xb=e+16|0;break K}ha(0)|0;_()|0;Zb()}X()}switch(b+1|0){case 0:case 11:break J;default:continue}}break}if(I[f+64|0]==37){break H}H[f+48>>2]=100;Fc(l,239840,f+48|0);break H}if(!md(f- -64|0,239622,9)){o=1;break a}if(I[f+64|0]==37){break H}gj(f- -64|0,H[g>>2],h)}b=mx(a,f- -64|0);if(!(I[(H[H[b>>2]-12>>2]+b|0)+16|0]&5)){continue}break}break a}H[f+32>>2]=24;Fc(l,239726,f+32|0);Ba(1);X()}H[f+16>>2]=48;Fc(l,239726,f+16|0);Ba(1);X()}H[f>>2]=126508;Fc(l,239726,f);Ba(1);X()}gj(H[H[f+168>>2]+36>>2]?239804:239826,e,h);b=f- -64|0;Ob(b,752376,99);o=0;F[f+163|0]=0;gj(b,H[g>>2],h);gj(239799,H[g>>2],h);if(!H[H[f+168>>2]+36>>2]){break a}gj(239792,H[g>>2],h);gj(239785,H[g>>2],h)}b=0;e=0;while(1){d=H[(e<<2)+h>>2];if(d){while(1){k=1;S:{j=H[d+4>>2];if(!I[j|0]){break S}while(1){c=0;m=j+k|0;b=m;i=I[b|0];if(i){while(1){c=(c<<4)+(i<<24>>24)|0;i=c&-268435456;c=i?i>>>24^c&268435455:c;i=I[b+1|0];b=b+1|0;if(i){continue}break}b=(c>>>0)%31627|0}else{b=0}b=H[(b<<2)+h>>2];T:{if(!b){break T}while(1){if(fc(m,H[b+4>>2])){b=H[b>>2];if(b){continue}break T}break}b=H[b+8>>2];if((b|0)>=0){break S}}k=k+1|0;continue}}c=H[d+8>>2];if(c){H[(H[H[g>>2]+40>>2]+N(c,24)|0)+12>>2]=b}d=H[d>>2];if(d){continue}break}}e=e+1|0;if((e|0)!=31627){continue}break}c=0;while(1){b=H[(c<<2)+h>>2];if(b){while(1){e=H[b>>2];Kb(H[b+4>>2]);Kb(b);b=e;if(b){continue}break}}c=c+1|0;if((c|0)!=31627){continue}break}Kb(h);i=1;b=n;n=0;if(b){continue}break}U:{if(o){b=H[f+168>>2];H[b+44>>2]=H[f+172>>2];break U}b=H[f+172>>2];h=H[f+168>>2];H[b+44>>2]=h;F[b|0]=I[h|0];F[b+1|0]=I[h+1|0];a=I[h+2|0];if(!a){a=I[h|0];a=a?a:3}F[b+2|0]=a;a=I[h+3|0];if(!a){a=I[h+1|0];a=a?a:3}F[b+3|0]=a}xb=f+176|0;return b|0}function gk(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;g=xb-80|0;xb=g;o=H[a>>2];a:{if(f){break a}i=H[a+4>>2];if(I[i+12|0]){break a}h=H[d>>2];H[g+68>>2]=0;H[g+72>>2]=0;H[g+60>>2]=0;H[g+64>>2]=0;H[g+52>>2]=0;H[g+56>>2]=0;H[g+48>>2]=h;gk(i,b,c,g+48|0,e,1)}b:{c:{d:{if(I[d+4|0]){break d}i=H[c+20>>2]+H[b+20>>2]|0;e:{if(i>>>0>=97){b=H[d>>2];if(!b|H[b>>2]){break e}H[b>>2]=18;break e}H[d+8>>2]=i;G[d+4>>1]=257;H[d+12>>2]=i+7>>>3;if(!i){break d}c=0;i=-1<<(0-i&7);while(1){F[(c+d|0)+16|0]=255;c=c+1|0;h=H[d+12>>2];if(c>>>0>>0){continue}break}c=d+h|0;F[c+15|0]=i&I[c+15|0];if(I[d+4|0]){break d}}if(!I[o+8|0]){break b}H[H[d>>2]>>2]=0;a=a+13|0;break c}H[a+20>>2]=0;H[a+24>>2]=0;H[g+72>>2]=H[d+24>>2];i=H[d+20>>2];s=g- -64|0;c=s;H[c>>2]=H[d+16>>2];H[c+4>>2]=i;c=H[d+12>>2];H[g+56>>2]=H[d+8>>2];H[g+60>>2]=c;c=H[d+4>>2];H[g+48>>2]=H[d>>2];H[g+52>>2]=c;u=H[b+20>>2];if(u>>>0>K[d+8>>2]){break b}if(I[o+249|0]){H[g+40>>2]=0;H[g+32>>2]=0;H[g+36>>2]=0;H[g+24>>2]=0;H[g+28>>2]=0;c=g+24|0;ek(a,o+288|0,c);ek(a,c,o+268|0)}f:{g:{if(u){j=s;q=128;i=0;while(1){h:{if(!(I[j|0]&q)){break h}n=H[a+16>>2];H[g+40>>2]=0;H[g+32>>2]=0;H[g+36>>2]=0;H[g+24>>2]=0;H[g+28>>2]=0;c=i;h=H[b+20>>2];i:{if(c>>>0>>0){break i}c=0;k=H[b+4>>2];if(!k|H[k>>2]){break i}H[k>>2]=130}j:{k:{c=H[b+28>>2]+N(H[b+8>>2],c)|0;k=H[c+8>>2];l=H[c+4>>2];m=k-l|0;if((m|0)==-1376256){l=1}else{if((m|0)==-1310720){H[g+40>>2]=n;H[g+32>>2]=e;m=0;H[g+24>>2]=0;H[g+28>>2]=i;l=e;break k}k=(m|0)<0?k:l;l=4}m=l;H[g+40>>2]=n;H[g+24>>2]=m;H[g+28>>2]=i;l=e+k|0;H[g+32>>2]=l;if(!I[c|0]){break k}r=H[c+12>>2];m=m|16;H[g+24>>2]=m;H[g+36>>2]=r;break j}r=Rb(l,n);H[g+36>>2]=r;h=H[b+20>>2]}k=H[a+16>>2];H[g+16>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;c=i;l:{if(h>>>0>c>>>0){break l}c=0;h=H[b+4>>2];if(!h|H[h>>2]){break l}H[h>>2]=130}m:{n:{c=H[b+28>>2]+N(H[b+8>>2],c)|0;p=H[c+8>>2];h=H[c+4>>2];n=p-h|0;if((n|0)==-1310720){n=2}else{if((n|0)==-1376256){H[g+16>>2]=k;H[g+8>>2]=e;n=0;H[g>>2]=0;H[g+4>>2]=i;h=e;break n}h=(n|0)<0?h:p;n=8}H[g>>2]=n;p=H[o+232>>2];H[g+16>>2]=k;H[g+4>>2]=i;h=(e+h|0)+(p<<1)|0;H[g+8>>2]=h;if(!I[c|0]){break n}t=H[c+16>>2];n=n|16;H[g>>2]=n;break m}t=Rb(h,k)}H[g+12>>2]=t;o:{if((m|n)&16){break o}v=H[o+244>>2];if(!v){break h}p=H[o+260>>2];k=n&10;p:{q:{r:{if(!(m&5)){c=0;if(!k){break h}while(1){l=N(c,20)+o|0;s:{if(I[l+324|0]){break s}k=H[l+308>>2];if((k-p|0)>(h|0)){break s}if((p+H[l+312>>2]|0)>=(h|0)){break r}}c=c+1|0;if((v|0)!=(c|0)){continue}break}break h}c=0;if(!k){while(1){h=N(c,20)+o|0;if(!(!I[h+324|0]|(H[h+308>>2]-p|0)>(l|0))){k=H[h+312>>2];if((p+k|0)>=(l|0)){break q}}c=c+1|0;if((v|0)!=(c|0)){continue}break h}}while(1){w=N(c,20)+o|0;k=H[w+308>>2];x=k-p|0;t:{if(I[w+324|0]){if((l|0)<(x|0)){break t}k=H[w+312>>2];if((p+k|0)<(l|0)){break t}break q}if((h|0)<(x|0)){break t}if((p+H[w+312>>2]|0)>=(h|0)){break r}}c=c+1|0;if((v|0)!=(c|0)){continue}break}break h}l=H[(N(c,20)+o|0)+320>>2];u:{if(I[o+248|0]){break u}l=t+32768&-65536;if(H[o+256>>2]>(h-k|0)){break u}c=H[(N(c,20)+o|0)+320>>2]+65536|0;l=(c|0)<(l|0)?l:c}c=l-t|0;if(!m){break p}H[g+24>>2]=m|16;H[g+36>>2]=c+r;break p}h=H[(N(c,20)+o|0)+320>>2];v:{if(I[o+248|0]){break v}h=r+32768&-65536;if(H[o+256>>2]>(k-l|0)){break v}c=H[(N(c,20)+o|0)+320>>2]-65536|0;h=(c|0)>(h|0)?h:c}H[g+24>>2]=m|16;H[g+36>>2]=h;if(!n){break o}c=h-r|0}H[g>>2]=n|16;H[g+12>>2]=c+t}ek(a,g+24|0,g);F[j|0]=I[j|0]&(q^-1)}c=(i&7)==7;q=c?128:q>>>1&127;j=c+j|0;i=i+1|0;if((u|0)!=(i|0)){continue}break}if(f){break g}if(!u){break f}i=128;c=0;while(1){if(I[s|0]&i){m=H[a+16>>2];H[g+40>>2]=0;H[g+32>>2]=0;H[g+36>>2]=0;H[g+24>>2]=0;H[g+28>>2]=0;h=c;k=H[b+20>>2];w:{if(k>>>0>c>>>0){break w}h=0;j=H[b+4>>2];if(!j|H[j>>2]){break w}H[j>>2]=130}x:{y:{l=H[b+28>>2]+N(H[b+8>>2],h)|0;j=H[l+8>>2];n=H[l+4>>2];h=j-n|0;if((h|0)==-1376256){h=1}else{if((h|0)==-1310720){H[g+40>>2]=m;H[g+32>>2]=e;H[g+24>>2]=0;H[g+28>>2]=c;j=e;break y}j=(h|0)<0?j:n;h=4}H[g+40>>2]=m;H[g+24>>2]=h;H[g+28>>2]=c;j=e+j|0;H[g+32>>2]=j;if(!I[l|0]){break y}j=H[l+12>>2];H[g+24>>2]=h|16;H[g+36>>2]=j;break x}y=g,z=Rb(j,m),H[y+36>>2]=z;k=H[b+20>>2]}j=H[a+16>>2];H[g+16>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;h=c;z:{if(c>>>0>>0){break z}h=0;k=H[b+4>>2];if(!k|H[k>>2]){break z}H[k>>2]=130}A:{B:{m=H[b+28>>2]+N(H[b+8>>2],h)|0;l=H[m+8>>2];k=H[m+4>>2];h=l-k|0;if((h|0)==-1310720){h=2}else{if((h|0)==-1376256){H[g+16>>2]=j;H[g+8>>2]=e;H[g>>2]=0;H[g+4>>2]=c;k=e;break B}k=(h|0)<0?k:l;h=8}H[g>>2]=h;l=H[o+232>>2];H[g+16>>2]=j;H[g+4>>2]=c;k=(e+k|0)+(l<<1)|0;H[g+8>>2]=k;if(!I[m|0]){break B}j=H[m+16>>2];H[g>>2]=h|16;H[g+12>>2]=j;break A}y=g,z=Rb(k,j),H[y+12>>2]=z}ek(a,g+24|0,g)}h=(c&7)==7;i=h?128:i>>>1&127;s=h+s|0;c=c+1|0;if((u|0)!=(c|0)){continue}break}break f}if(!f){break f}}c=H[a+20>>2];if(!(!c|H[a+36>>2]>0)&H[(N(c,20)+a|0)+16>>2]>=0){break f}H[g+36>>2]=0;H[g+28>>2]=0;H[g+32>>2]=0;H[g+24>>2]=49;c=H[a+16>>2];H[g+8>>2]=0;H[g+12>>2]=0;H[g+16>>2]=0;H[g>>2]=0;H[g+4>>2]=0;H[g+40>>2]=c;ek(a,g+24|0,g)}H[H[a+8>>2]+20>>2]=0;q=H[a+20>>2];C:{if(!q){break C}c=0;while(1){k=c+1|0;s=N(c,20);l=s+a|0;e=H[l+28>>2];o=e&12;m=o?k:c;D:{if(e&16){break D}i=a+28|0;p=i+s|0;h=H[p+12>>2];e=h&65535;n=e?65536-e|0:0;r=i+N(m,20)|0;t=H[r+12>>2];j=t&65535;i=j?65536-j|0:0;i=i>>>0>n>>>0?n:i;n=(e|0)<(j|0)?e:j;j=0-n|0;E:{F:{if(m>>>0>>0){q=N(m+1|0,20)+a|0;if(H[q+40>>2]<((i+t|0)+32768|0)){break F}}if(!(!c|H[l+20>>2]<=((h-n|0)-32768|0))){e=i;break E}e=i>>>0>n>>>0?j:i;break E}G:{if(c){e=0;if(H[l+20>>2]>((h-n|0)-32768|0)){break G}}e=j;if(i>>>0>>0){break G}break E}if(I[q+28|0]&16){break E}H[g+24>>2]=m;H[g+28>>2]=i-e;ev(H[a+8>>2],g+24|0);h=H[p+12>>2]}H[p+12>>2]=e+h;if(!o){break D}H[r+12>>2]=H[r+12>>2]+e}H:{if(!c){break H}e=H[l+36>>2];i=H[l+16>>2];if((e|0)==(i|0)){break H}h=a+28|0;j=h+N(c-1|0,20)|0;y=j,z=dc(H[(h+s|0)+12>>2]-H[j+12>>2]|0,e-i|0),H[y+16>>2]=z}if(o){c=N(m,20);e=c+a|0;i=H[e+36>>2];e=H[e+16>>2];if((i|0)!=(e|0)){h=a+28|0;j=h+N(m-1|0,20)|0;y=j,z=dc(H[(c+h|0)+12>>2]-H[j+12>>2]|0,i-e|0),H[y+16>>2]=z}c=k}c=c+1|0;q=H[a+20>>2];if(c>>>0>>0){continue}break}h=H[a+8>>2];e=H[h+20>>2];if(!e){break C}k=H[h+8>>2];m=H[h+28>>2];c=e;while(1){c=c-1|0;i=c;I:{if(c>>>0>>0){break I}i=0;j=H[h+4>>2];if(!j|H[j>>2]){break I}H[j>>2]=130}j=m+N(i,k)|0;i=N(H[j>>2],20)+a|0;j=H[j+4>>2];l=j+H[i+40>>2]|0;J:{if(H[i+60>>2]<(l+32768|0)){break J}H[i+40>>2]=l;if(!(I[i+28|0]&12)){break J}H[i+20>>2]=j+H[i+20>>2]}if(c){continue}break}}K:{if(f){break K}h=H[a+20>>2];if(!h){break K}c=0;while(1){e=N(c,20)+a|0;i=H[e+28>>2];if(!(i&32)){h=H[e+32>>2];L:{if(h>>>0>2]){break L}h=0;f=H[b+4>>2];if(!f|H[f>>2]){break L}H[f>>2]=130;i=H[e+28>>2]}f=H[b+28>>2]+N(H[b+8>>2],h)|0;H[f+(i&10?16:12)>>2]=H[e+40>>2];F[f|0]=1;h=H[a+20>>2]}c=c+1|0;if(h>>>0>c>>>0){continue}break}}F[a+12|0]=1;a=d+5|0}F[a|0]=0}xb=g+80|0}function Dn(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;if(I[b+16|0]&32){s=_s();_h(s,b,0,-1)}u=b+40|0;f=H[a+72>>2];m=H[a+68>>2];h=xb-48|0;xb=h;q=H[a+16>>2];a:{if(H[q>>2]>0){n=H[q+208>>2];while(1){if(!eE(h,0,q,u,c,d,f,m,e)){g=163632;break a}g=n;if(g){while(1){p=0;i=H[g>>2];if(!(H[i+16>>2]!=H[h>>2]|H[i+20>>2]!=H[h+4>>2]|(H[i+24>>2]!=H[h+8>>2]|H[i+28>>2]!=H[h+12>>2]))){p=H[i+32>>2]==H[h+16>>2]}b:{if(!p){break b}j=H[i+40>>2];if((j|0)!=H[h+24>>2]){break b}if(j){k=H[i+36>>2];p=H[h+20>>2];if(H[k>>2]!=H[p>>2]|H[k+4>>2]!=H[p+4>>2]){break b}l=0;t=1;while(1){c:{d:{e:{o=l<<4;r=o+k|0;if(!H[r+8>>2]){r=H[r+12>>2];o=p+o|0;if(!H[o+8>>2]){break e}if((r|0)!=-1){break d}break c}o=p+o|0;if(H[o+8>>2]|H[o+12>>2]!=-1){break d}break c}if((r|0)==-1^H[o+12>>2]==-1){break c}}l=l+1|0;t=j>>>0>l>>>0;if((j|0)==(l|0)){break c}o=l<<4;r=o+k|0;o=p+o|0;if(H[r>>2]!=H[o>>2]){break c}if(H[r+4>>2]==H[o+4>>2]){continue}}break}if(t){break b}}if((I[i+44|0]|I[i+45|0]<<8|(I[i+46|0]<<16|I[i+47|0]<<24))!=(I[h+28|0]|I[h+29|0]<<8|(I[h+30|0]<<16|I[h+31|0]<<24))|(I[i+48|0]|I[i+49|0]<<8|(I[i+50|0]<<16|I[i+51|0]<<24))!=(I[h+32|0]|I[h+33|0]<<8|(I[h+34|0]<<16|I[h+35|0]<<24))|H[i+52>>2]!=H[h+36>>2]){break b}g=H[g>>2];if(!g){g=0;break a}if(!H[g>>2]){break a}H[g>>2]=H[g>>2]+1;break a}g=H[g+4>>2];if(g){continue}break}}g=dE(q,u,c,d,f,m,e);i=oc(1,8);if(!i){break a}H[i+4>>2]=n;H[i>>2]=g;p=H[q+208>>2];n=(p|0)==(n|0);H[q+208>>2]=n?i:p;if(n){if(!g){g=0;break a}if(!H[g>>2]){break a}H[g>>2]=H[g>>2]+1;break a}Lr(g);Kb(i);n=H[q+208>>2];if(H[q>>2]>0){continue}break}}g=dE(q,u,c,d,f,m,e)}xb=h+48|0;i=d;d=b;f:{g:{if(!H[d+68>>2]){break g}b=0;if(H[g>>2]<=0){break f}n=H[g+52>>2];if((n|0)==785){h:{if(H[a+96>>2]){break h}while(1){b=0;if(!H[a+92>>2]){break f}b=H[a+96>>2];H[a+96>>2]=b?b:1;if(!b){break h}if(!H[a+96>>2]){continue}break}}b=0;if(hE(g,a,d,c,i)){break g}break f}if((n|0)!=786){break f}i:{if(H[a+100>>2]){break i}while(1){b=0;if(!H[a+92>>2]){break f}b=H[a+100>>2];H[a+100>>2]=b?b:1;if(!b){break i}if(!H[a+100>>2]){continue}break}}b=0;if(!Ks(g,a,d,c,i)){break f}}b=1;if(H[d+36>>2]!=1){break f}H[d+36>>2]=2}Lr(g);if(s){if(b){u=b;n=a;q=c;p=i;f=xb-80|0;xb=f;i=1;b=1;g=d;j:{if(K[d+20>>2]>1){break j}b=H[g+40>>2];if(f+48|0){H[f+48>>2]=H[g+68>>2]}d=H[g+80>>2];i=H[f+48>>2];k:{if(i>>>0>=2){a=H[d+8>>2];h=(b&-3)==4;b=1;while(1){c=a;a=H[(d+N(b,20)|0)+8>>2];if(!((c|0)==(a|0)|h^a>>>0<=c>>>0)){bi(g,n,105368,0);i=0;break k}b=b+1|0;if((i|0)!=(b|0)){continue}break}}i=1}b=1;if(K[g+20>>2]>1){break j}d=Yj(g);a=d;b=H[a+16>>2]&-33;if(H[a+4>>2]){H[a+16>>2]=b}h=Yj(g);a=h;b=H[a+16>>2]&-33;if(H[a+4>>2]){H[a+16>>2]=b}if(f+48|0){H[f+48>>2]=H[g+68>>2]}m=H[g+80>>2];if(f+72|0){H[f+72>>2]=H[s+68>>2]}t=H[s+80>>2];a=H[g+40>>2];l:{m:{l=H[f+48>>2];if(l-1>>>0<=4294967293){a=a&-3;o=(a|0)!=4;r=o?-1:0;k=1;j=(a|0)==4;c=j?0:H[f+72>>2];a=c;while(1){n:{if(l>>>0>k>>>0){b=m+N(k,20)|0;if(F[(m+N(k+r|0,20)|0)+4|0]&1|H[b+8>>2]==H[b-12>>2]){break n}}o:{if((l|0)==(k|0)){b=j?c:0;a=j?H[f+72>>2]:a;break o}if(!o){b=H[f+72>>2];if(b>>>0<=a>>>0){b=c;break o}l=H[(m+N(k,20)|0)+8>>2];while(1){if(l>>>0<=K[(t+N(a,20)|0)+8>>2]){b=c;break o}a=a+1|0;if((b|0)!=(a|0)){continue}break}a=b;b=c;break o}l=H[(m+N(k,20)|0)-12>>2];while(1){b=c;if(!b){b=0;break o}c=b-1|0;if(l>>>0<=K[(t+N(c,20)|0)+8>>2]){continue}break}}if(H[d+4>>2]){H[d+36>>2]=0;H[d+40>>2]=0;H[d+72>>2]=0;H[d+64>>2]=0;H[d+68>>2]=0;F[d+62|0]=0;G[d+60>>1]=1;H[d+144>>2]=0;H[d+92>>2]=0;H[d+96>>2]=0;H[d+52>>2]=0;H[d+56>>2]=0;H[d+44>>2]=0;H[d+48>>2]=0;H[d+84>>2]=H[d+80>>2];H[d+100>>2]=0;H[d+104>>2]=0;H[d+108>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;H[d+120>>2]=0;H[d+124>>2]=0;H[d+128>>2]=0;H[d+132>>2]=0;H[d+136>>2]=0;F[d+140|0]=0}c=H[d+16>>2];c=b?c&-2:c;c=K[f+72>>2]>a>>>0?c&-3:c;if(H[d+4>>2]){H[d+16>>2]=c}_h(d,s,b,a);if(!Dn(n,d,q,p,e)){break m}_h(h,d,0,-1);l=H[f+48>>2];a=j?a:b;c=a}k=k+1|0;if(k>>>0>>0){continue}break}}b=0;if(!Vs(h,g)){b=1;break l}bi(g,n,105757,0);Zs(g);_h(g,h,0,-1);break l}b=0;bi(g,n,105513,0)}ai(h);ai(d)}t=b&i;p:{q:{r:{s:{if(I[g+16|0]&64){i=1;b=1;if(K[g+20>>2]<=1){m=Yj(g);H[f+72>>2]=m;j=Yj(g);H[f+76>>2]=j;a=H[m+16>>2]&-33;if(H[m+4>>2]){H[m+16>>2]=a}a=H[j+16>>2]&-33;if(H[j+4>>2]){H[j+16>>2]=a}h=Yj(g);a=H[h+16>>2]&-33;if(H[h+4>>2]){H[h+16>>2]=a}a=H[g+44>>2];H[f+48>>2]=H[g+40>>2];H[f+52>>2]=a;H[f+64>>2]=H[g+56>>2];a=H[g+52>>2];H[f+56>>2]=H[g+48>>2];H[f+60>>2]=a;if(H[m+4>>2]){a=H[f+52>>2];H[m+40>>2]=H[f+48>>2];H[m+44>>2]=a;H[m+56>>2]=H[f+64>>2];a=H[f+60>>2];H[m+48>>2]=H[f+56>>2];H[m+52>>2]=a}if(H[j+4>>2]){a=H[f+52>>2];H[j+40>>2]=H[f+48>>2];H[j+44>>2]=a;H[j+56>>2]=H[f+64>>2];a=H[f+60>>2];H[j+48>>2]=H[f+56>>2];H[j+52>>2]=a}if(H[h+4>>2]){a=H[f+52>>2];H[h+40>>2]=H[f+48>>2];H[h+44>>2]=a;H[h+56>>2]=H[f+64>>2];a=H[f+60>>2];H[h+48>>2]=H[f+56>>2];H[h+52>>2]=a}if(f+44|0){H[f+44>>2]=H[g+68>>2]}o=H[g+80>>2];if(f+40|0){H[f+40>>2]=H[s+68>>2]}v=H[s+80>>2];r=H[g+40>>2]&-3;if((r|0)!=4){$h(g)}k=H[f+44>>2];if(k-1>>>0<4294967294){c=1;l=0;b=0;a=0;while(1){d=a;t:{u:{if(c>>>0>=k>>>0){break u}a=o+N(c,20)|0;if(H[a+8>>2]==H[a-12>>2]){a=d;break t}if(!(I[a+4|0]&2)){break u}a=d;break t}v:{if((c|0)==(k|0)){a=H[f+40>>2];break v}a=H[f+40>>2];if(b>>>0>=a>>>0){a=b;break v}k=H[(o+N(c,20)|0)+8>>2];while(1){if(k>>>0<=K[(v+N(b,20)|0)+8>>2]){a=b;break v}b=b+1|0;if((b|0)!=(a|0)){continue}break}}_h(H[(f+72|0)+(l<<2)>>2],s,d,a);l=1-l|0;k=H[f+44>>2];b=a}c=c+1|0;if(c>>>0>>0){continue}break}}w:{if(!Dn(n,m,q,p,e)){b=0;bi(g,n,105513,0);break w}if(!Dn(n,j,q,p,e)){b=0;bi(g,n,105513,0);break w}if((r|0)!=4){$h(m);$h(j)}H[f+32>>2]=0;H[f+36>>2]=0;if(f+24|0){H[f+24>>2]=H[m+68>>2]}H[f+16>>2]=H[m+80>>2];if(f+28|0){H[f+28>>2]=H[j+68>>2]}H[f+20>>2]=H[j+80>>2];x:{d=H[f+24>>2];if(!(d|H[f+28>>2])){break x}l=0;while(1){c=l<<2;q=c+(f+32|0)|0;e=H[q>>2];b=e+1|0;y:{if(d>>>0<=b>>>0){break y}p=H[c+(f+16|0)>>2];a=H[(p+N(e,20)|0)+8>>2];while(1){v=a;k=p+N(b,20)|0;a=H[k+8>>2];if(I[k+4|0]&2?0:(v|0)!=(a|0)){break y}b=b+1|0;if((d|0)!=(b|0)){continue}break}b=d}_h(h,H[c+(f+72|0)>>2],e,b);H[q>>2]=b;if(K[f+28>>2]<=K[f+36>>2]&K[f+32>>2]>=K[f+24>>2]){break x}l=1-l|0;d=H[(f+24|0)+(l<<2)>>2];continue}}if((r|0)!=4){$h(g);$h(h)}b=0;if(!Vs(h,g)){b=1;break w}bi(g,n,105930,0);Zs(g);_h(g,h,0,-1)}ai(h);ai(m);ai(j)}if(!(b&t)){break s}break r}i=1;if(t){break r}}d=H[s+68>>2];H[f+48>>2]=d;b=0;c=N(d,10)+16|0;a=(c|0)>0;c=a?c:0;z:{if(a){while(1){b=((b>>>1|0)+b|0)+8|0;if(c>>>0>=b>>>0){continue}break}a=0;if((b|0)==-1){break z}b=Tb(b);if(!b){break z}Nb(b,0,c)}H[197455]=0;Na(596,s|0,0,d|0,b|0,c|0,f+48|0,1413830740,1)|0;a=H[197455];H[197455]=0;if((a|0)==1){break q}H[f>>2]=b;H[197455]=0;ka(597,g|0,n|0,105206,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break q}a=b}Kb(a);i=0}xb=f+80|0;break p}a=$()|0;_()|0;Kb(b);ea(a|0);X()}b=i?u:0}else{b=0}ai(s)}return b}function UP(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,u=0,v=0;f=xb+-64|0;xb=f;H[f+40>>2]=0;g=I[a+48|0];a:{if(!(H[a+536>>2]|!g)){e=8;break a}e=H[a+540>>2];d=H[e>>2];if(!d){h=H[a>>2];H[e+4>>2]=33;d=pc(h,552,f+40|0);H[H[a+540>>2]>>2]=d;e=64;if(H[f+40>>2]){break a}H[d>>2]=h;if(!g){H[d+548>>2]=H[H[a+532>>2]+3088>>2]}H[d+152>>2]=0;H[d+156>>2]=0;e=d+168|0;H[e>>2]=0;H[e+4>>2]=0;H[d+160>>2]=0;H[d+164>>2]=0;H[d+148>>2]=34;H[d+144>>2]=35;H[d+156>>2]=36;H[d+168>>2]=d+4;H[d+164>>2]=h}H[d+176>>2]=a;H[d+172>>2]=a;h=H[a+4>>2];m=F[H[h+128>>2]+56|0];e=H[h+96>>2];k=I[e+32|0];H[f+8>>2]=0;H[f+12>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+36>>2]=b;H[f+28>>2]=b;H[f>>2]=0;H[f+4>>2]=0;H[f+24>>2]=0;H[f+32>>2]=b?b+c|0:0;b=H[a+8>>2];l=I[b+161|0];i=I[b+160|0];b:{if(i){n=(H[b+164>>2]+32|0)/64|0;H[f>>2]=n;b=(H[b+168>>2]+32|0)/64|0;break b}n=1024;H[f>>2]=1024;b=1024}H[f+12>>2]=b;c=0;c=g?c:I[h+732|0];F[d+8|0]=g;F[d+9|0]=c;c=(i|0)!=0;H[d+12>>2]=c;if(!(!l|(k|(m|0)>=0?m:0))){H[d+12>>2]=c|2}H[d+188>>2]=H[e+36>>2];H[d+192>>2]=H[e+40>>2];H[d+196>>2]=H[e+44>>2];H[d+200>>2]=H[e+48>>2];H[d+204>>2]=H[e+52>>2];H[d+208>>2]=H[e+56>>2];H[d+212>>2]=H[e+60>>2];H[d+216>>2]=H[e- -64>>2];c=J[H[a+4>>2]+68>>1];H[d+132>>2]=c;if(l){e=36;if((n|0)<=0|(b|0)<=0){break a}e=164;if(c<<16>>16<0){break a}a=dc(131072e3,c<<16);if((a|0)<(n|0)|(a|0)<(b|0)){break a}a=H[d+176>>2]}H[f+48>>2]=0;H[f+52>>2]=0;e=0;H[f+44>>2]=0;b=H[d+136>>2];m=H[d+140>>2];H[f+60>>2]=0;H[f+56>>2]=0;H[d+4>>2]=0;c=H[a+536>>2];if((c|0)!=H[d+180>>2]){H[d+180>>2]=c;e=1}c:{d:{if(!(I[d+8|0]|!H[H[a+532>>2]+3112>>2])){g=H[d+548>>2];h=H[a+4>>2];h=zb[H[H[h+548>>2]+40>>2]](h,f+60|0,0,f+56|0,0)|0;H[d+4>>2]=h;if(h){break d}if(zb[H[g+12>>2]](c+556|0,H[c+548>>2],H[f+60>>2],H[f+56>>2])|0){zb[H[g+4>>2]](H[a+532>>2],c,H[f+60>>2],H[f+56>>2])|0;e=1}g=H[c+560>>2];F[d+93|0]=0;H[d+96>>2]=g;H[d+120>>2]=H[c+548>>2];H[d+124>>2]=H[f+60>>2];H[d+128>>2]=H[f+56>>2]}g=J[H[H[a+4>>2]+88>>2]+14>>1]<<16;if((g|0)!=H[d+88>>2]){H[d+88>>2]=g;e=1}c=H[d+12>>2];F[d+184|0]=c&1;e:{f:{g:{if(!md(f,d+16|0,16)){n=d+186|0;c=c&2;if((c|0)!=I[d+186|0]){break g}if(e){break f}break e}e=H[f+4>>2];H[d+16>>2]=H[f>>2];H[d+20>>2]=e;e=H[f+12>>2];H[d+24>>2]=H[f+8>>2];H[d+28>>2]=e;H[d+32>>2]=0;H[d+36>>2]=0;e=H[f+4>>2];H[d+40>>2]=H[f>>2];H[d+44>>2]=e;e=H[f+12>>2];H[d+48>>2]=H[f+8>>2];H[d+52>>2]=e;e=H[f+20>>2];H[d+56>>2]=H[f+16>>2];H[d+60>>2]=e;H[d+72>>2]=0;H[d+76>>2]=65536;H[d+64>>2]=65536;H[d+68>>2]=0;n=d+186|0;c=c&2;if((c|0)==I[d+186|0]){break f}}F[n|0]=c>>>1}c=H[H[a+536>>2]+400>>2]<<16;H[d+220>>2]=c;e=H[d+132>>2];l=e?e:1e3;e=65536e3/(l|0)|0;if((c|0)<=0){c=dc(4915200,e);H[d+220>>2]=c}h=d+188|0;g=(g|0)>262144?g:262144;h:{if((b|0)>0){c=l<<16;if((dc(c,g)|0)>=(b|0)){b=dc(c,g)}H[d+228>>2]=0;if(!b|(e|0)<655){break h}H[d+228>>2]=(b|0)/2;break h}$v(e,g,c,d+228|0,0,I[d+186|0],h)}b=H[H[a+536>>2]+396>>2];i:{if(b<<16>0){a=4915200;if(H[d+220>>2]>b<<17){break i}}a=7208960}a=dc(a,e);H[d+224>>2]=a;$v(e,g,a,d+232|0,m,I[d+186|0],h);a=1;a=H[d+228>>2]?a:H[d+232>>2]!=0;h=0;F[d+236|0]=0;F[d+185|0]=a;a=H[d+176>>2];q=Nb(d+244|0,0,304);H[d+240>>2]=H[d+52>>2];u=d,v=dc(H[H[a+536>>2]+384>>2],65536e3),H[u+252>>2]=v;g=H[a+536>>2];H[d+256>>2]=H[g+388>>2]<<16;H[d+260>>2]=H[g+392>>2]<<16;r=I[g+191|0];m=I[g+190|0];l=I[g+189|0];b=I[g+188|0];j:{k:{if(H[g+524>>2]==1){l:{switch(b|0){case 4:if(H[g+192>>2]<<16>-7864321|H[g+196>>2]<<16>-7864321|(H[g+200>>2]<<16<57671681|H[g+204>>2]<<16<57671681)){break k}break;case 0:break l;default:break k}}H[d+296>>2]=-7864321;a=Rb(-7864321,H[d+240>>2]);H[d+288>>2]=49;b=H[d+240>>2];H[d+304>>2]=b;H[d+300>>2]=(a+32768&-65536)-32768;a=(H[d+232>>2]<<1)+57671681|0;H[d+276>>2]=a;a=Rb(a,b);H[d+268>>2]=50;F[d+249|0]=1;H[d+284>>2]=H[d+240>>2];H[d+280>>2]=a+32768&-65536|32768;break e}if(!b){break j}}c=H[d+244>>2];a=N(c,20)+d|0;h=H[g+192>>2]<<16;H[a+308>>2]=h;e=H[g+196>>2]<<16;H[a+312>>2]=e;h=e-h|0;m:{if((h|0)<0){h=0;break m}H[a+316>>2]=e;F[a+324|0]=1;c=c+1|0;H[d+244>>2]=c}e=2;if(b>>>0<=2){break j}k=g+192|0;while(1){a=N(c,20)+d|0;j=e<<2;i=H[j+k>>2]<<16;H[a+308>>2]=i;j=H[k+(j|4)>>2]<<16;H[a+312>>2]=j;o=j-i|0;if((o|0)>=0){p=j;j=H[d+232>>2]<<1;H[a+312>>2]=p+j;i=i+j|0;H[a+308>>2]=i;H[a+316>>2]=i;F[a+324|0]=0;c=c+1|0;H[d+244>>2]=c;h=(h|0)<(o|0)?o:h}e=e+2|0;if(b>>>0>e>>>0){continue}break}}if(l){b=H[q>>2];c=g+248|0;e=0;while(1){a=N(b,20)+d|0;k=e<<2;i=H[k+c>>2]<<16;H[a+308>>2]=i;k=H[c+(k|4)>>2]<<16;H[a+312>>2]=k;i=k-i|0;if((i|0)>=0){H[a+316>>2]=k;F[a+324|0]=1;b=b+1|0;H[d+244>>2]=b;h=(h|0)<(i|0)?i:h}e=e+2|0;if(l>>>0>e>>>0){continue}break}}l=dc(65536,H[d+240>>2]);o=H[d+244>>2];if(o){k=0;t=m>>>0<3;while(1){a=N(k,20)+d|0;i=a;e=H[a+316>>2];n:{if(I[a+324|0]){a=0;c=2147483647;o:{if(!r){break o}while(1){j=H[(g+(a<<2|4)|0)+344>>2]<<16;p=e-j|0;b=p>>31;p:{b=(b^p)-b|0;if((b|0)>=(c|0)|(b|0)>=(l|0)){break p}H[i+316>>2]=j;c=b;if((e|0)!=(j|0)){break p}c=0;break o}a=a+2|0;if(r>>>0>a>>>0){continue}break}}if(m>>>0<2){break n}b=H[g+292>>2]<<16;e=e-b|0;a=e>>31;a=(a^e)-a|0;if((a|0)>=(c|0)|(a|0)>=(l|0)){break n}H[i+316>>2]=b;break n}if(t){break n}p=H[d+232>>2]<<1;a=2;c=2147483647;while(1){j=(H[(g+(a<<2)|0)+288>>2]<<16)+p|0;s=e-j|0;b=s>>31;b=(b^s)-b|0;if(!((b|0)>=(c|0)|(b|0)>=(l|0))){H[i+316>>2]=j;c=b;if((e|0)==(j|0)){break n}}a=a+2|0;if(m>>>0>a>>>0){continue}break}}k=k+1|0;if((o|0)!=(k|0)){continue}break}}q:{if((h|0)<=0){break q}if(H[d+252>>2]<=(dc(65536,h)|0)){break q}u=d,v=dc(65536,h),H[u+252>>2]=v}a=H[d+240>>2];b=H[d+252>>2];if((a|0)<(b|0)){F[d+248|0]=1;a=ic(39322,a,b);H[d+264>>2]=(a|0)<6555?32767:39322-a|0}if(I[n|0]){H[d+264>>2]=0}if(!H[q>>2]){break e}c=d+240|0;a=0;while(1){b=c+N(a,20)|0;e=I[b+84|0];i=b;j=Rb(H[b+76>>2],H[d+240>>2]);b=H[d+264>>2];H[i+80>>2]=(j+(e?0-b|0:b)|0)+32768&-65536;a=a+1|0;if(a>>>0>2]){continue}break}}if(H[d+4>>2]){break d}F[d+236|0]=0;b=d+144|0;a=I[d+185|0];while(1){H[d+160>>2]=0;Oh(H[H[d+172>>2]+12>>2]);lk(d,f+24|0,b,f+48|0,0,0,0,f+44|0);if(H[d+4>>2]){break d}if(!(!(a&255)|H[d+160>>2]>=0)){F[d+236|0]=1;a=0;continue}break}g=H[d+172>>2];a=H[g+20>>2];r:{if(!a){break r}s:{t:{b=J[a>>1];e=b<<16>>16;if((e|0)>=2){b=G[(H[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break t}b=0;if(e){break t}c=J[a+2>>1];break s}c=G[a+2>>1];if((c|0)!=(b|0)){break s}G[a>>1]=e-1;break r}u:{if(c<<16>>16<2){break u}h=H[a+4>>2];n=h+(b<<3)|0;m=c&65535;h=(h+(m<<3)|0)-8|0;if(H[n>>2]!=H[h>>2]|H[n+4>>2]!=H[h+4>>2]|I[(m+H[a+8>>2]|0)-1|0]!=1){break u}c=c-1|0;G[a+2>>1]=c}if((e|0)<=0){break r}i=b;b=(c<<16>>16)-1|0;if((i|0)==(b|0)){G[a+2>>1]=c-1;G[a>>1]=e-1;break r}G[(H[a+12>>2]+(e<<1)|0)-2>>1]=b}Xk(H[g+12>>2]);if(!H[d+4>>2]){break c}}e=3;break a}a=H[f+44>>2];e=0;H[d+4>>2]=0;b=H[d+172>>2];if(I[b+48|0]){break a}H[H[b+544>>2]>>2]=a+32768>>16}xb=f- -64|0;return e|0}function yca(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;n=xb-256|0;xb=n;c=H[a+420>>2];d=H[a+24>>2];H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2];if(!(H[c+36>>2]|!H[a+236>>2])){gn(c,H[c+40>>2])}a:{b:{c:{e=H[a+360>>2];q=H[a+364>>2];k=(e|0)>(q|0);if(!k){r=H[b>>2];s=H[a+380>>2];d=H[a+372>>2];b=(q-e|0)+1|0;i=b&1;if((e|0)!=(q|0)){break c}b=e;break b}b=0;break a}l=b&-2;b=e;while(1){m=b<<2;g=G[(H[m+s>>2]<<1)+r>>1];j=g>>15;h=m+n|0;m=((g^j)-j&65535)>>>d|0;H[h>>2]=m;g=b+1|0;o=g<<2;h=G[(H[o+s>>2]<<1)+r>>1];j=h>>15;j=((h^j)-j&65535)>>>d|0;H[n+o>>2]=j;t=(j|0)==1?g:(m|0)==1?b:t;b=b+2|0;f=f+2|0;if((l|0)!=(f|0)){continue}break}}if(i){j=b<<2;i=G[(H[j+s>>2]<<1)+r>>1];f=i>>15;d=((f^i)-f&65535)>>>d|0;H[j+n>>2]=d;t=(d|0)==1?b:t}i=0;b=0;if(k){break a}l=H[c+136>>2]+H[c+132>>2]|0;while(1){j=e;o=e<<2;m=H[o+n>>2];d:{if(m){if(!((b|0)<16|(j|0)>(t|0))){while(1){k=b;e=0;e:{f:{g:{b=H[c+128>>2];switch(b|0){case 0:break e;case 1:break f;default:break g}}while(1){d=e;e=d+1|0;f=b>>>0>3;b=b>>1;if(f){continue}break}if(d>>>0<14){break f}b=H[c+120>>2];d=H[b>>2];H[d+20>>2]=41;zb[H[d>>2]](b)}b=e<<4;d=H[c+124>>2];h:{if(H[c+108>>2]){b=H[((d<<2)+c|0)+92>>2]+(b<<2)|0;H[b>>2]=H[b>>2]+1;break h}d=H[((d<<2)+c|0)+60>>2];f=H[d+(b<<2)>>2];g=H[c+16>>2];b=F[(b+d|0)+1024|0];if(!b){d=H[c+120>>2];h=H[d>>2];H[h+20>>2]=41;zb[H[h>>2]](d);if(H[c+108>>2]){break h}}d=f&(-1<>2]|d<<24-f;if((f|0)>=8){while(1){d=H[c+112>>2];H[c+112>>2]=d+1;F[d|0]=b>>>16;d=H[c+116>>2]-1|0;H[c+116>>2]=d;if(!d){g=H[c+120>>2];d=H[g+24>>2];if(!(zb[H[d+12>>2]](g)|0)){g=H[c+120>>2];h=H[g>>2];H[h+20>>2]=25;zb[H[h>>2]](g)}H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2]}d=f;i:{if((b&16711680)!=16711680){break i}f=H[c+112>>2];H[c+112>>2]=f+1;F[f|0]=0;f=H[c+116>>2]-1|0;H[c+116>>2]=f;if(f){break i}g=H[c+120>>2];f=H[g+24>>2];if(!(zb[H[f+12>>2]](g)|0)){g=H[c+120>>2];h=H[g>>2];H[h+20>>2]=25;zb[H[h>>2]](g)}H[c+112>>2]=H[f>>2];H[c+116>>2]=H[f+4>>2]}f=d-8|0;b=b<<8;if((d|0)>15){continue}break}}H[c+16>>2]=f;H[c+12>>2]=b}if(!(H[c+108>>2]|!e)){d=H[c+16>>2]+e|0;b=H[c+12>>2]|(H[c+128>>2]&(-1<=8){while(1){e=H[c+112>>2];H[c+112>>2]=e+1;F[e|0]=b>>>16;e=H[c+116>>2]-1|0;H[c+116>>2]=e;if(!e){f=H[c+120>>2];e=H[f+24>>2];if(!(zb[H[e+12>>2]](f)|0)){f=H[c+120>>2];g=H[f>>2];H[g+20>>2]=25;zb[H[g>>2]](f)}H[c+112>>2]=H[e>>2];H[c+116>>2]=H[e+4>>2]}e=d;j:{if((b&16711680)!=16711680){break j}d=H[c+112>>2];H[c+112>>2]=d+1;F[d|0]=0;d=H[c+116>>2]-1|0;H[c+116>>2]=d;if(d){break j}f=H[c+120>>2];d=H[f+24>>2];if(!(zb[H[d+12>>2]](f)|0)){f=H[c+120>>2];g=H[f>>2];H[g+20>>2]=25;zb[H[g>>2]](f)}H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2]}d=e-8|0;b=b<<8;if((e|0)>15){continue}break}}H[c+16>>2]=d;H[c+12>>2]=b}H[c+128>>2]=0;k:{g=H[c+132>>2];if(H[c+108>>2]|!g){break k}f=H[c+136>>2];b=0;while(1){if(!b){e=H[c+16>>2];b=H[c+12>>2]|(F[f|0]&1)<<23-e;d=e+1|0;if((e|0)>=7){while(1){e=H[c+112>>2];H[c+112>>2]=e+1;F[e|0]=b>>>16;e=H[c+116>>2]-1|0;H[c+116>>2]=e;if(!e){h=H[c+120>>2];e=H[h+24>>2];if(!(zb[H[e+12>>2]](h)|0)){h=H[c+120>>2];p=H[h>>2];H[p+20>>2]=25;zb[H[p>>2]](h)}H[c+112>>2]=H[e>>2];H[c+116>>2]=H[e+4>>2]}e=d;l:{if((b&16711680)!=16711680){break l}d=H[c+112>>2];H[c+112>>2]=d+1;F[d|0]=0;d=H[c+116>>2]-1|0;H[c+116>>2]=d;if(d){break l}h=H[c+120>>2];d=H[h+24>>2];if(!(zb[H[d+12>>2]](h)|0)){h=H[c+120>>2];p=H[h>>2];H[p+20>>2]=25;zb[H[p>>2]](h)}H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2]}d=e-8|0;b=b<<8;if((e|0)>15){continue}break}}H[c+16>>2]=d;H[c+12>>2]=b}g=g-1|0;if(!g){break k}f=f+1|0;b=H[c+108>>2];continue}}H[c+132>>2]=0}b=H[c+124>>2];m:{if(H[c+108>>2]){b=H[((b<<2)+c|0)+92>>2];H[b+960>>2]=H[b+960>>2]+1;break m}b=H[((b<<2)+c|0)+60>>2];d=H[b+960>>2];e=H[c+16>>2];b=F[b+1264|0];if(!b){f=H[c+120>>2];g=H[f>>2];H[g+20>>2]=41;zb[H[g>>2]](f);if(H[c+108>>2]){break m}}f=d&(-1<>2]|f<<24-d;f=0;e=0;if((d|0)>=8){while(1){e=H[c+112>>2];H[c+112>>2]=e+1;F[e|0]=b>>>16;e=H[c+116>>2]-1|0;H[c+116>>2]=e;if(!e){g=H[c+120>>2];e=H[g+24>>2];if(!(zb[H[e+12>>2]](g)|0)){g=H[c+120>>2];h=H[g>>2];H[h+20>>2]=25;zb[H[h>>2]](g)}H[c+112>>2]=H[e>>2];H[c+116>>2]=H[e+4>>2]}e=d;n:{if((b&16711680)!=16711680){break n}d=H[c+112>>2];H[c+112>>2]=d+1;F[d|0]=0;d=H[c+116>>2]-1|0;H[c+116>>2]=d;if(d){break n}g=H[c+120>>2];d=H[g+24>>2];if(!(zb[H[d+12>>2]](g)|0)){g=H[c+120>>2];h=H[g>>2];H[h+20>>2]=25;zb[H[h>>2]](g)}H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2]}d=e-8|0;b=b<<8;if((e|0)>15){continue}break}e=H[c+108>>2]}H[c+16>>2]=d;H[c+12>>2]=b;if(e|!i){break m}while(1){if(!f){e=H[c+16>>2];b=H[c+12>>2]|(F[l|0]&1)<<23-e;d=e+1|0;if((e|0)>=7){while(1){e=H[c+112>>2];H[c+112>>2]=e+1;F[e|0]=b>>>16;e=H[c+116>>2]-1|0;H[c+116>>2]=e;if(!e){f=H[c+120>>2];e=H[f+24>>2];if(!(zb[H[e+12>>2]](f)|0)){f=H[c+120>>2];g=H[f>>2];H[g+20>>2]=25;zb[H[g>>2]](f)}H[c+112>>2]=H[e>>2];H[c+116>>2]=H[e+4>>2]}e=d;o:{if((b&16711680)!=16711680){break o}d=H[c+112>>2];H[c+112>>2]=d+1;F[d|0]=0;d=H[c+116>>2]-1|0;H[c+116>>2]=d;if(d){break o}f=H[c+120>>2];d=H[f+24>>2];if(!(zb[H[d+12>>2]](f)|0)){f=H[c+120>>2];g=H[f>>2];H[g+20>>2]=25;zb[H[g>>2]](f)}H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2]}d=e-8|0;b=b<<8;if((e|0)>15){continue}break}}H[c+16>>2]=d;H[c+12>>2]=b}i=i-1|0;if(!i){break m}l=l+1|0;f=H[c+108>>2];continue}}b=k-16|0;l=H[c+136>>2];i=0;if((k|0)>31){continue}break}}if((m|0)>=2){F[i+l|0]=m&1;i=i+1|0;break d}b=b<<4|1;Gi(c);d=H[c+124>>2];p:{if(H[c+108>>2]){b=H[((d<<2)+c|0)+92>>2]+(b<<2)|0;H[b>>2]=H[b>>2]+1;break p}d=H[((d<<2)+c|0)+60>>2];Fi(c,H[d+(b<<2)>>2],F[(b+d|0)+1024|0]);if(H[c+108>>2]){break p}e=H[c+16>>2];b=H[c+12>>2]|((J[(H[s+o>>2]<<1)+r>>1]^-1)&32768)>>>15<<23-e;d=e+1|0;if((e|0)>=7){while(1){e=H[c+112>>2];H[c+112>>2]=e+1;F[e|0]=b>>>16;e=H[c+116>>2]-1|0;H[c+116>>2]=e;if(!e){f=H[c+120>>2];e=H[f+24>>2];if(!(zb[H[e+12>>2]](f)|0)){f=H[c+120>>2];k=H[f>>2];H[k+20>>2]=25;zb[H[k>>2]](f)}H[c+112>>2]=H[e>>2];H[c+116>>2]=H[e+4>>2]}e=d;q:{if((b&16711680)!=16711680){break q}d=H[c+112>>2];H[c+112>>2]=d+1;F[d|0]=0;d=H[c+116>>2]-1|0;H[c+116>>2]=d;if(d){break q}f=H[c+120>>2];d=H[f+24>>2];if(!(zb[H[d+12>>2]](f)|0)){f=H[c+120>>2];k=H[f>>2];H[k+20>>2]=25;zb[H[k>>2]](f)}H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2]}d=e-8|0;b=b<<8;if((e|0)>15){continue}break}}H[c+16>>2]=d;H[c+12>>2]=b}IC(c,l,i);l=H[c+136>>2];i=0;b=0;break d}b=b+1|0}e=j+1|0;if((j|0)!=(q|0)){continue}break}}r:{if(i?0:(b|0)<=0){break r}b=H[c+128>>2]+1|0;H[c+128>>2]=b;d=H[c+132>>2]+i|0;H[c+132>>2]=d;if((b|0)!=32767&d>>>0<938){break r}Gi(c)}b=H[a+24>>2];H[b>>2]=H[c+112>>2];H[b+4>>2]=H[c+116>>2];a=H[a+236>>2];if(a){b=H[c+36>>2];if(b){a=b}else{H[c+40>>2]=H[c+40>>2]+1&7}H[c+36>>2]=a-1}xb=n+256|0;return 1}function xX(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=xb-240|0;xb=j;k=qe(i,h,g,f,e,d)/180*3.141592653589793;l=ze(k);m=qe(i,h,g,f,c,b);b=j+192|0;o=+(g+i|0)*.5;n=l;l=P(+(g|0)-+(i|0))*.5;Ce(b,o+n*l,-1);H[197455]=0;b=ca(1758,b|0,0,434016)|0;c=H[197455];H[197455]=0;k=ne(k);m=m/180*3.141592653589793;p=ne(m);m=ze(m);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((c|0)!=1){H[j+216>>2]=H[b+8>>2];c=H[b+4>>2];H[j+208>>2]=H[b>>2];H[j+212>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+208|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break M}H[j+24>>2]=H[j+216>>2];H[j+216>>2]=0;b=H[j+212>>2];H[j+16>>2]=H[j+208>>2];H[j+20>>2]=b;H[j+208>>2]=0;H[j+212>>2]=0;H[197455]=0;n=+(f+h|0)*.5;fa(1756,j+176|0,+(n+l*k),-1);b=H[197455];H[197455]=0;if((b|0)==1){break L}H[197455]=0;b=I[j+187|0];c=b<<24>>24<0;b=ca(1759,j+16|0,(c?H[j+176>>2]:j+176|0)|0,(c?H[j+180>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break K}H[j+232>>2]=H[b+8>>2];c=H[b+4>>2];H[j+224>>2]=H[b>>2];H[j+228>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[j+187|0]<0){Kb(H[j+176>>2])}if(F[j+27|0]<0){Kb(H[j+16>>2])}if(F[j+219|0]<0){Kb(H[j+208>>2])}if(F[j+203|0]<0){Kb(H[j+192>>2])}H[197455]=0;fa(1756,j+96|0,+l,-1);b=H[197455];H[197455]=0;if((b|0)==1){break G}H[197455]=0;b=ca(1758,j+96|0,0,434028)|0;c=H[197455];H[197455]=0;if((c|0)==1){break F}H[j+120>>2]=H[b+8>>2];c=H[b+4>>2];H[j+112>>2]=H[b>>2];H[j+116>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+112|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break E}H[j+136>>2]=H[j+120>>2];H[j+120>>2]=0;b=H[j+116>>2];H[j+128>>2]=H[j+112>>2];H[j+132>>2]=b;H[j+112>>2]=0;H[j+116>>2]=0;H[197455]=0;k=P(+(f|0)-+(h|0))*.5;fa(1756,j+80|0,+k,-1);b=H[197455];H[197455]=0;if((b|0)==1){break D}H[197455]=0;b=I[j+91|0];c=b<<24>>24<0;b=ca(1759,j+128|0,(c?H[j+80>>2]:j+80|0)|0,(c?H[j+84>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break C}H[j+152>>2]=H[b+8>>2];c=H[b+4>>2];H[j+144>>2]=H[b>>2];H[j+148>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+144|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break B}H[j+168>>2]=H[j+152>>2];H[j+152>>2]=0;b=H[j+148>>2];H[j+160>>2]=H[j+144>>2];H[j+164>>2]=b;H[j+144>>2]=0;H[j+148>>2]=0;H[197455]=0;b=da(1699,j+160|0,434044)|0;c=H[197455];H[197455]=0;if((c|0)==1){break A}H[j+184>>2]=H[b+8>>2];c=H[b+4>>2];H[j+176>>2]=H[b>>2];H[j+180>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;fa(1756,j- -64|0,+(o+l*m),-1);b=H[197455];H[197455]=0;if((b|0)==1){break z}H[197455]=0;b=I[j+75|0];c=b<<24>>24<0;b=ca(1759,j+176|0,(c?H[j+64>>2]:j- -64|0)|0,(c?H[j+68>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break y}H[j+200>>2]=H[b+8>>2];c=H[b+4>>2];H[j+192>>2]=H[b>>2];H[j+196>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,j+192|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break x}H[j+216>>2]=H[j+200>>2];H[j+200>>2]=0;b=H[j+196>>2];H[j+208>>2]=H[j+192>>2];H[j+212>>2]=b;H[j+192>>2]=0;H[j+196>>2]=0;H[197455]=0;fa(1756,j+48|0,+(n+k*p),-1);b=H[197455];H[197455]=0;if((b|0)==1){break w}H[197455]=0;b=I[j+59|0];c=b<<24>>24<0;b=ca(1759,j+208|0,(c?H[j+48>>2]:j+48|0)|0,(c?H[j+52>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break v}H[j+24>>2]=H[b+8>>2];c=H[b+4>>2];H[j+16>>2]=H[b>>2];H[j+20>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=I[j+27|0];c=b<<24>>24<0;ca(1759,j+224|0,(c?H[j+16>>2]:j+16|0)|0,(c?H[j+20>>2]:b)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break u}if(F[j+27|0]<0){Kb(H[j+16>>2])}if(F[j+59|0]<0){Kb(H[j+48>>2])}if(F[j+219|0]<0){Kb(H[j+208>>2])}if(F[j+203|0]<0){Kb(H[j+192>>2])}if(F[j+75|0]<0){Kb(H[j+64>>2])}if(F[j+187|0]<0){Kb(H[j+176>>2])}if(F[j+171|0]<0){Kb(H[j+160>>2])}if(F[j+155|0]<0){Kb(H[j+144>>2])}if(F[j+91|0]<0){Kb(H[j+80>>2])}if(F[j+139|0]<0){Kb(H[j+128>>2])}if(F[j+123|0]<0){Kb(H[j+112>>2])}if(F[j+107|0]<0){Kb(H[j+96>>2])}H[197455]=0;b=ca(1762,j+16|0,434072,j+224|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[j+40>>2]=b;H[197455]=0;H[j+44>>2]=1;b=H[j+44>>2];H[j+8>>2]=H[j+40>>2];H[j+12>>2]=b;c=da(1763,j+208|0,j+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[j+39|0]<0){Kb(H[j+28>>2])}if(F[j+27|0]<0){Kb(H[j+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ba(1771,a|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ga(1766,a|0,c|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}H[j+16>>2]=b;H[j+20>>2]=4;H[j+24>>2]=-2147483640;H[197455]=0;Mb(b,434080,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[j+203|0]=0;H[197455]=0;H[j+192>>2]=0;ka(1767,a|0,j+16|0,c|0,j+192|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[j+203|0]<0){Kb(H[j+192>>2])}if(F[j+27|0]<0){Kb(H[j+16>>2])}a=H[c>>2];if(a){i=H[c+4>>2];if((a|0)==(i|0)){b=a}else{while(1){if(F[i-1|0]<0){Kb(H[i-12>>2])}b=i-24|0;if(F[i-13|0]<0){Kb(H[b>>2])}i=b;if((b|0)!=(a|0)){continue}break}b=H[c>>2]}H[c+4>>2]=a;Kb(b)}if(F[j+235|0]<0){Kb(H[j+224>>2])}xb=j+240|0;return}i=$()|0;_()|0;break H}i=$()|0;_()|0;break I}i=$()|0;_()|0;break J}i=$()|0;_()|0;if(F[j+187|0]>=0){break J}Kb(H[j+176>>2])}if(F[j+27|0]>=0){break I}Kb(H[j+16>>2])}if(F[j+219|0]>=0){break H}Kb(H[j+208>>2])}if(F[j+203|0]>=0){break b}Kb(H[j+192>>2]);ea(i|0);X()}i=$()|0;_()|0;break c}i=$()|0;_()|0;break j}i=$()|0;_()|0;break k}i=$()|0;_()|0;break l}i=$()|0;_()|0;break m}i=$()|0;_()|0;break n}i=$()|0;_()|0;break o}i=$()|0;_()|0;break p}i=$()|0;_()|0;break q}i=$()|0;_()|0;break r}i=$()|0;_()|0;break s}i=$()|0;_()|0;break t}i=$()|0;_()|0;if(F[j+27|0]>=0){break t}Kb(H[j+16>>2])}if(F[j+59|0]>=0){break s}Kb(H[j+48>>2])}if(F[j+219|0]>=0){break r}Kb(H[j+208>>2])}if(F[j+203|0]>=0){break q}Kb(H[j+192>>2])}if(F[j+75|0]>=0){break p}Kb(H[j+64>>2])}if(F[j+187|0]>=0){break o}Kb(H[j+176>>2])}if(F[j+171|0]>=0){break n}Kb(H[j+160>>2])}if(F[j+155|0]>=0){break m}Kb(H[j+144>>2])}if(F[j+91|0]>=0){break l}Kb(H[j+80>>2])}if(F[j+139|0]>=0){break k}Kb(H[j+128>>2])}if(F[j+123|0]>=0){break j}Kb(H[j+112>>2])}if(F[j+107|0]>=0){break c}Kb(H[j+96>>2]);break c}i=$()|0;_()|0;break c}i=$()|0;_()|0;Vb(j+16|0);break c}i=$()|0;_()|0;break d}i=$()|0;_()|0;break d}i=$()|0;_()|0;if(F[j+203|0]<0){Kb(H[j+192>>2])}if(F[j+27|0]>=0){break d}Kb(H[j+16>>2])}yc(c)}if(F[j+235|0]>=0){break b}Kb(H[j+224>>2])}ea(i|0);X()}ha(0)|0;_()|0;Zb();X()}function Ls(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;a:{i=H[b+4>>2];if(i>>>0>a>>>0){break a}g=H[b+8>>2];if(g>>>0>>0|g-a>>>0<4){break a}d=H[b+12>>2];c=d-4|0;H[b+12>>2]=c;if(I[a|0]|I[a+1|0]<<8|(c|0)<=0){break a}c=a+2|0;if(c>>>0>>0|c>>>0>g>>>0|g-c>>>0<2){break a}e=d-6|0;H[b+12>>2]=e;o=1;if((e|0)<=0){break a}d=I[a+2|0]|I[a+3|0]<<8;b:{if(!d){break b}c=a+4|0;if(c>>>0>>0|c>>>0>g>>>0){break a}f=g-c|0;d=(d<<8|d>>>8)&65535;c=d<<3;if(f>>>0>>0){break a}c=e-c|0;H[b+12>>2]=c;o=0;if((c|0)<=0){break b}u=d>>>0>1?d:1;while(1){o=0;g=((t<<3)+a|0)+4|0;e=H[b+4>>2];c:{if(g>>>0>>0){break c}i=H[b+8>>2];if(i>>>0>>0|i-g>>>0<8){break c}d=H[b+12>>2];c=d-8|0;H[b+12>>2]=c;if((c|0)<=0){break c}q=g+4|0;if(e>>>0>q>>>0|i>>>0>>0|i-q>>>0<4){break c}c=d-12|0;H[b+12>>2]=c;if((c|0)<=0){break c}c=F[g+4|0];e=I[g+7|0]|(I[g+5|0]<<16|c<<24|I[g+6|0]<<8);c=(e|0)!=0&(c|0)<0;o=!c;if(c|!e){break c}o=1;d=0;s=xb-16|0;xb=s;i=H[b+4>>2];f=a+e|0;d:{if(i>>>0>f>>>0){break d}h=H[b+8>>2];if(h>>>0>>0){break d}g=h-f|0;if(g>>>0<2){break d}e=H[b+12>>2];c=e-2|0;H[b+12>>2]=c;d=1;if((c|0)<=0){d=0;break d}e:{f:{g:{h:{i:{j:{k:{c=I[f|0]|I[f+1|0]<<8;switch((c<<8|c>>>8)&65535){case 10:break h;case 6:break i;case 4:break j;case 0:break k;case 14:break e;case 13:break f;case 12:break g;default:break d}}d=0;if(g>>>0<262){break d}c=e-264|0;H[b+12>>2]=c;d=(c|0)>0;break d}if(g>>>0<14){d=0;break d}e=e-16|0;H[b+12>>2]=e;d=0;if((e|0)<=0){break d}d=I[f+2|0]|I[f+3|0]<<8;l:{if(!d){d=0;break l}c=(d<<8|d>>>8)&65535;if(c>>>0<=g>>>0){c=e-c|0;H[b+12>>2]=c;if((c|0)>0){break l}}d=0;c=H[b+28>>2];if(c>>>0>31){break d}H[b+28>>2]=c+1;if(!I[b+24|0]){break d}c=g>>>0<65535?g:65535;d=c<<8|(c&65280)>>>8;F[f+2|0]=d;F[f+3|0]=d>>>8}c=I[f+6|0]|I[f+7|0]<<8;d=(((c<<8|c>>>8)&65535)<<2)+16>>>0<=((d<<8|(d&65280)>>>8)&65535)>>>0;break d}if(g>>>0<10){d=0;break d}c=e-12|0;H[b+12>>2]=c;if((c|0)<=0){d=0;break d}c=f+8|0;if(c>>>0>>0){d=0;break d}if(c>>>0>h>>>0){d=0;break d}if(h-c>>>0<2){d=0;break d}e=e-14|0;H[b+12>>2]=e;if((e|0)<=0){d=0;break d}d=I[f+8|0]|I[f+9|0]<<8;if(d){c=f+10|0;if(c>>>0>>0){d=0;break d}if(c>>>0>h>>>0){d=0;break d}f=h-c|0;c=((d<<8|d>>>8)&65535)<<1;if(f>>>0>>0){d=0;break d}c=e-c|0;H[b+12>>2]=c;d=0;if((c|0)<=0){break d}}d=1;break d}if(g>>>0<20){d=0;break d}c=e-22|0;H[b+12>>2]=c;if((c|0)<=0){d=0;break d}c=f+16|0;if(c>>>0>>0){d=0;break d}if(c>>>0>h>>>0){d=0;break d}if(h-c>>>0<4){d=0;break d}e=e-26|0;H[b+12>>2]=e;if((e|0)<=0){d=0;break d}c=I[f+16|0]|I[f+17|0]<<8|(I[f+18|0]<<16|I[f+19|0]<<24);d=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(d>>>0>2147483646){d=0;break d}if(d){c=f+20|0;if(c>>>0>>0){d=0;break d}if(c>>>0>h>>>0){d=0;break d}f=h-c|0;c=d<<1;if(f>>>0>>0){d=0;break d}c=e-c|0;H[b+12>>2]=c;d=0;if((c|0)<=0){break d}}d=1;break d}if(g>>>0<16){d=0;break d}c=e-18|0;H[b+12>>2]=c;if((c|0)<=0){d=0;break d}c=f+12|0;if(c>>>0>>0){d=0;break d}if(c>>>0>h>>>0){d=0;break d}if(h-c>>>0<4){d=0;break d}e=e-22|0;H[b+12>>2]=e;if((e|0)<=0){d=0;break d}c=I[f+12|0]|I[f+13|0]<<8|(I[f+14|0]<<16|I[f+15|0]<<24);d=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(d>>>0>357913940){d=0;break d}if(d){c=f+16|0;if(c>>>0>>0){d=0;break d}if(c>>>0>h>>>0){d=0;break d}f=h-c|0;c=N(d,12);if(f>>>0>>0){d=0;break d}c=e-c|0;H[b+12>>2]=c;d=0;if((c|0)<=0){break d}}d=1;break d}if(g>>>0<16){d=0;break d}c=e-18|0;H[b+12>>2]=c;if((c|0)<=0){d=0;break d}c=f+12|0;if(c>>>0>>0){d=0;break d}if(c>>>0>h>>>0){d=0;break d}if(h-c>>>0<4){d=0;break d}e=e-22|0;H[b+12>>2]=e;if((e|0)<=0){d=0;break d}c=I[f+12|0]|I[f+13|0]<<8|(I[f+14|0]<<16|I[f+15|0]<<24);d=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(d>>>0>357913940){d=0;break d}if(d){c=f+16|0;if(c>>>0>>0){d=0;break d}if(c>>>0>h>>>0){d=0;break d}f=h-c|0;c=N(d,12);if(f>>>0>>0){d=0;break d}c=e-c|0;H[b+12>>2]=c;d=0;if((c|0)<=0){break d}}d=1;break d}if(g>>>0<=9){d=0;break d}c=e-12|0;H[b+12>>2]=c;if((c|0)<=0){d=0;break d}H[s+12>>2]=f;d=0;k=f+6|0;h=H[b+4>>2];m:{n:{if(k>>>0>>0){break n}g=H[b+8>>2];if(g>>>0>>0|g-k>>>0<4){break n}i=H[b+12>>2]-4|0;H[b+12>>2]=i;if((i|0)<=0){break n}c=I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(e>>>0>390451571){break n}c=1;if(!e){break m}c=k+4|0;if(c>>>0>>0|c>>>0>g>>>0){break n}f=g-c|0;c=N(e,11);if(f>>>0>>0){break n}c=i-c|0;H[b+12>>2]=c;if((c|0)<=0){break n}d=1;c=I[k|0]|I[k+1|0]<<8|(I[k+2|0]<<16|I[k+3|0]<<24);g=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(!g){break n}d=0;e=k+4|0;if(h>>>0>e>>>0){break n}r=0;while(1){c=H[b+8>>2];if(c>>>0>>0|c-e>>>0<11){break n}l=H[s+12>>2];c=H[b+12>>2]-11|0;H[b+12>>2]=c;if((c|0)<=0){break n}m=0;i=k+N(r,11)|0;n=i+7|0;f=H[b+4>>2];o:{if(n>>>0>>0){break o}j=H[b+8>>2];if(j>>>0>>0|j-n>>>0<4){break o}e=H[b+12>>2];c=e-4|0;H[b+12>>2]=c;if((c|0)<=0){break o}c=F[n|0];h=I[n+3|0]|(I[n+1|0]<<16|c<<24|I[n+2|0]<<8);c=(h|0)!=0&(c|0)<0;m=!c;if(!h|c){break o}p=h+l|0;p:{if(p>>>0>>0|j>>>0

>>0|j-p>>>0<4){break p}h=e-8|0;H[b+12>>2]=h;if((h|0)<=0){break p}c=I[p|0]|I[p+1|0]<<8|(I[p+2|0]<<16|I[p+3|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(e>>>0>1073741822){break p}m=1;if(!e){break o}c=p+4|0;if(c>>>0>>0|c>>>0>j>>>0){break p}f=j-c|0;c=e<<2;if(f>>>0>>0){break p}c=h-c|0;H[b+12>>2]=c;if((c|0)>0){break o}}m=0;c=H[b+28>>2];if(c>>>0>31){break o}H[b+28>>2]=c+1;if(!I[b+24|0]){break o}F[n|0]=0;F[n+1|0]=0;F[n+2|0]=0;F[n+3|0]=0;m=1}if(!m){break n}m=0;j=i+11|0;h=H[b+4>>2];q:{if(j>>>0>>0){break q}f=H[b+8>>2];if(f>>>0>>0|f-j>>>0<4){break q}e=H[b+12>>2];c=e-4|0;H[b+12>>2]=c;if((c|0)<=0){break q}c=F[j|0];i=I[j+3|0]|(I[j+1|0]<<16|c<<24|I[j+2|0]<<8);c=(i|0)!=0&(c|0)<0;m=!c;if(!i|c){break q}l=i+l|0;r:{if(l>>>0>>0|f>>>0>>0|f-l>>>0<4){break r}i=e-8|0;H[b+12>>2]=i;if((i|0)<=0){break r}c=I[l|0]|I[l+1|0]<<8|(I[l+2|0]<<16|I[l+3|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(e>>>0>858993458){break r}m=1;if(!e){break q}c=l+4|0;if(c>>>0>>0|c>>>0>f>>>0){break r}f=f-c|0;c=N(e,5);if(f>>>0>>0){break r}c=i-c|0;H[b+12>>2]=c;if((c|0)>0){break q}}m=0;c=H[b+28>>2];if(c>>>0>31){break q}H[b+28>>2]=c+1;if(!I[b+24|0]){break q}F[j|0]=0;F[j+1|0]=0;F[j+2|0]=0;F[j+3|0]=0;m=1}if(!m){break n}d=1;r=r+1|0;if((g|0)==(r|0)){break n}d=0;e=(k+N(r,11)|0)+4|0;if(e>>>0>=K[b+4>>2]){continue}break}}c=d}d=c}xb=s+16|0;if(d){break c}o=0;c=H[b+28>>2];if(c>>>0>31){break c}H[b+28>>2]=c+1;if(!I[b+24|0]){break c}F[q|0]=0;F[q+1|0]=0;F[q+2|0]=0;F[q+3|0]=0;o=1}if(!o){break b}t=t+1|0;if((u|0)!=(t|0)){continue}break}}return o}return 0}function Wha(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;e=xb-256|0;xb=e;a:{if(!a|!H[a+4>>2]){break a}k=H[a+16>>2];n=H[a+20>>2];p=N(k,n);g=Qb(p<<2);d=0-(k<<2)|0;H[b+12>>2]=d;H[b+8>>2]=n;H[b+4>>2]=k;H[b+16>>2]=g;h=J[a+26>>1];t=H[a+52>>2];c=Xc(a,0);i=H[a+4>>2];i=i?H[a+44>>2]?i+40|0:0:0;u=I[a+389|0];j=I[b+40|0];b:{c:{switch(h-1|0){case 0:if(!i){F[e+6|0]=255;G[e+4>>1]=65535;F[e+2|0]=0;G[e>>1]=0;i=e}if((n|0)<=0){break b}b=g;while(1){f=0;if((k|0)>0){while(1){d=((I[(f>>>3|0)+c|0]>>>((f^-1)&7)&1)<<2)+i|0;h=d+2|0;F[b|0]=I[(j?h:d)|0];F[b+1|0]=I[d+1|0];F[b+2|0]=I[(j?d:h)|0];b=b+4|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}}c=c+t|0;o=o+1|0;if((o|0)!=(n|0)){continue}break};break b;default:a=H[b+16>>2];if(a){Kb(a)}a=H[b+20>>2];if(a){Kb(a)}H[b>>2]=0;H[b+4>>2]=0;F[b+40|0]=0;H[b+32>>2]=0;H[b+36>>2]=-1074790400;F[b+21|0]=0;F[b+22|0]=0;F[b+23|0]=0;F[b+24|0]=0;F[b+25|0]=0;F[b+26|0]=0;F[b+27|0]=0;F[b+28|0]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;break a;case 31:if((n|0)<=0|(k|0)<=0){break b}q=d+t|0;d=k&-2;h=k&1;b=g;while(1){f=0;if((k|0)!=1){while(1){i=c+2|0;F[b|0]=I[(j?i:c)|0];F[b+1|0]=I[c+1|0];F[b+2|0]=I[(j?c:i)|0];F[b+4|0]=I[(j?6:4)+c|0];F[b+5|0]=I[c+5|0];F[b+6|0]=I[(j?4:6)+c|0];b=b+8|0;c=c+8|0;f=f+2|0;if((d|0)!=(f|0)){continue}break}}if(h){i=c+2|0;F[b|0]=I[(j?i:c)|0];F[b+1|0]=I[c+1|0];F[b+2|0]=I[(j?c:i)|0];c=c+4|0;b=b+4|0}c=c+q|0;l=l+1|0;if((l|0)!=(n|0)){continue}break};l=0;break b;case 23:if((n|0)<=0|(k|0)<=0){break b}q=N(k,-3)+t|0;d=k&-2;h=k&1;b=g;while(1){f=0;if((k|0)!=1){while(1){i=c+2|0;F[b|0]=I[(j?i:c)|0];F[b+1|0]=I[c+1|0];F[b+2|0]=I[(j?c:i)|0];F[b+4|0]=I[(j?5:3)+c|0];F[b+5|0]=I[c+4|0];F[b+6|0]=I[(j?3:5)+c|0];b=b+8|0;c=c+6|0;f=f+2|0;if((d|0)!=(f|0)){continue}break}}if(h){i=c+2|0;F[b|0]=I[(j?i:c)|0];F[b+1|0]=I[c+1|0];F[b+2|0]=I[(j?c:i)|0];c=c+3|0;b=b+4|0}c=c+q|0;l=l+1|0;if((l|0)!=(n|0)){continue}break};l=0;break b;case 7:r=t-k|0;s=H[a+336>>2];if(i){d:{if((n|0)<=0|(k|0)<=0){break d}if(u){b=g;while(1){f=0;while(1){d=(I[c|0]<<2)+i|0;h=d+2|0;F[b|0]=I[(j?h:d)|0];F[b+1|0]=I[d+1|0];F[b+2|0]=I[(j?d:h)|0];F[b+3|0]=I[d+3|0];b=b+4|0;c=c+1|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}c=c+r|0;o=o+1|0;if((o|0)!=(n|0)){continue}break}break d}if((s|0)==-1){q=k&-2;d=k&1;b=g;while(1){o=0;if((k|0)!=1){while(1){m=(I[c|0]<<2)+i|0;h=m+2|0;F[b|0]=I[(j?h:m)|0];F[b+1|0]=I[m+1|0];F[b+2|0]=I[(j?m:h)|0];m=(I[c+1|0]<<2)+i|0;h=m+2|0;F[b+4|0]=I[(j?h:m)|0];F[b+5|0]=I[m+1|0];F[b+6|0]=I[(j?m:h)|0];b=b+8|0;c=c+2|0;o=o+2|0;if((q|0)!=(o|0)){continue}break}}if(d){m=(I[c|0]<<2)+i|0;h=m+2|0;F[b|0]=I[(j?h:m)|0];F[b+1|0]=I[m+1|0];F[b+2|0]=I[(j?m:h)|0];c=c+1|0;b=b+4|0}c=c+r|0;l=l+1|0;if((l|0)!=(n|0)){continue}break}break d}q=(s<<2)+i|0;b=g;while(1){o=0;while(1){d=I[c|0];m=(d<<2)+i|0;h=m+2|0;F[b|0]=I[(j?h:m)|0];F[b+1|0]=I[m+1|0];F[b+2|0]=I[(j?m:h)|0];F[b+3|0]=(d|0)==(s|0)?I[q+3|0]:255;b=b+4|0;c=c+1|0;o=o+1|0;if((o|0)!=(k|0)){continue}break}c=c+r|0;l=l+1|0;if((l|0)!=(n|0)){continue}break}}l=(s|0)!=-1|u;break b}if((n|0)<=0|(k|0)<=0){break b}h=k&-4;q=k&3;i=k-1>>>0<3;b=g;while(1){f=0;if(!i){while(1){d=I[c|0];F[b+2|0]=d;F[b+1|0]=d;F[b|0]=d;d=I[c+1|0];F[b+6|0]=d;F[b+5|0]=d;F[b+4|0]=d;d=I[c+2|0];F[b+10|0]=d;F[b+9|0]=d;F[b+8|0]=d;d=I[c+3|0];F[b+14|0]=d;F[b+13|0]=d;F[b+12|0]=d;b=b+16|0;c=c+4|0;f=f+4|0;if((h|0)!=(f|0)){continue}break}}f=0;if(q){while(1){d=I[c|0];F[b+2|0]=d;F[b+1|0]=d;F[b|0]=d;b=b+4|0;c=c+1|0;f=f+1|0;if((q|0)!=(f|0)){continue}break}}c=c+r|0;l=l+1|0;if((l|0)!=(n|0)){continue}break};l=0;break b;case 3:if(!i){F[e+62|0]=255;F[e+58|0]=238;F[e+54|0]=221;F[e+50|0]=204;F[e+46|0]=187;F[e+42|0]=170;F[e+38|0]=153;F[e+30|0]=119;F[e+26|0]=102;F[e+22|0]=85;F[e+18|0]=68;F[e+10|0]=34;F[e+34|0]=136;G[e+60>>1]=65535;G[e+56>>1]=61166;G[e+52>>1]=56797;G[e+48>>1]=52428;G[e+44>>1]=48059;G[e+40>>1]=43690;G[e+36>>1]=39321;G[e+32>>1]=34952;G[e+28>>1]=30583;G[e+24>>1]=26214;G[e+20>>1]=21845;G[e+16>>1]=17476;F[e+14|0]=51;G[e+12>>1]=13107;G[e+8>>1]=8738;F[e+6|0]=17;G[e+4>>1]=4369;F[e+2|0]=0;G[e>>1]=0;i=e}r=H[a+336>>2];if((n|0)>0){m=(r<<2)+i|0;q=(k|0)<=0;b=g;while(1){e:{if(q){break e}f=0;if(u){while(1){d=((I[(f>>>1|0)+c|0]>>>((f<<2^-1)&4)&15)<<2)+i|0;h=d+2|0;F[b|0]=I[(j?h:d)|0];F[b+1|0]=I[d+1|0];F[b+2|0]=I[(j?d:h)|0];F[b+3|0]=I[d+3|0];b=b+4|0;f=f+1|0;if((k|0)!=(f|0)){continue}break e}}if((r|0)==-1){while(1){d=((I[(f>>>1|0)+c|0]>>>((f<<2^-1)&4)&15)<<2)+i|0;h=d+2|0;F[b|0]=I[(j?h:d)|0];F[b+1|0]=I[d+1|0];F[b+2|0]=I[(j?d:h)|0];b=b+4|0;f=f+1|0;if((k|0)!=(f|0)){continue}break e}}while(1){d=I[(f>>>1|0)+c|0]>>>((f<<2^-1)&4)&15;s=(d<<2)+i|0;h=s+2|0;F[b|0]=I[(j?h:s)|0];F[b+1|0]=I[s+1|0];F[b+2|0]=I[(j?s:h)|0];F[b+3|0]=(d|0)==(r|0)?I[m+3|0]:255;b=b+4|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}}c=c+t|0;l=l+1|0;if((l|0)!=(n|0)){continue}break}}l=(r|0)!=-1|u;break b;case 1:break c}}if(!i){F[e+14|0]=255;G[e+12>>1]=65535;F[e+10|0]=170;G[e+8>>1]=43690;F[e+6|0]=85;G[e+4>>1]=21845;F[e+2|0]=0;G[e>>1]=0;i=e}if((n|0)<=0){break b}b=g;while(1){f=0;if((k|0)>0){while(1){d=((I[(f>>>2|0)+c|0]>>>((f<<1^-1)&6)&3)<<2)+i|0;h=d+2|0;F[b|0]=I[(j?h:d)|0];F[b+1|0]=I[d+1|0];F[b+2|0]=I[(j?d:h)|0];b=b+4|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}}c=c+t|0;o=o+1|0;if((o|0)!=(n|0)){continue}break}}f:{if(H[a+928>>2]){b=0;c=qD(a);d=I[a+388|0];if((d|0)==255){if((p|0)<=0){break a}if(p-1>>>0>=7){a=p&-8;while(1){F[g+3|0]=I[c|0];F[g+7|0]=I[c+1|0];F[g+11|0]=I[c+2|0];F[g+15|0]=I[c+3|0];F[g+19|0]=I[c+4|0];F[g+23|0]=I[c+5|0];F[g+27|0]=I[c+6|0];F[g+31|0]=I[c+7|0];g=g+32|0;c=c+8|0;b=b+8|0;if((a|0)!=(b|0)){continue}break}}a=p&7;if(!a){break a}b=0;while(1){F[g+3|0]=I[c|0];g=g+4|0;c=c+1|0;b=b+1|0;if((a|0)!=(b|0)){continue}break}break a}h=d>>>1|0;while(1){a=(h+N(b,255)>>>0)/(d>>>0)|0;F[b+e|0]=a>>>0<255?a:255;a=b|1;i=(h+N(a,255)>>>0)/(d>>>0)|0;F[a+e|0]=i>>>0<255?i:255;b=b+2|0;if((b|0)!=256){continue}break}break f}if((p|0)<=0|l){break a}if(p-1>>>0>=7){a=p&-8;c=0;while(1){F[g+31|0]=255;F[g+27|0]=255;F[g+23|0]=255;F[g+19|0]=255;F[g+15|0]=255;F[g+11|0]=255;F[g+7|0]=255;F[g+3|0]=255;g=g+32|0;c=c+8|0;if((a|0)!=(c|0)){continue}break}}a=p&7;if(!a){break a}c=0;while(1){F[g+3|0]=255;g=g+4|0;c=c+1|0;if((a|0)!=(c|0)){continue}break}break a}if((p|0)<=0){break a}if(p-1>>>0>=3){a=p&-4;b=0;while(1){F[g+3|0]=I[I[c|0]+e|0];F[g+7|0]=I[I[c+1|0]+e|0];F[g+11|0]=I[I[c+2|0]+e|0];F[g+15|0]=I[I[c+3|0]+e|0];g=g+16|0;c=c+4|0;b=b+4|0;if((a|0)!=(b|0)){continue}break}}a=p&3;if(!a){break a}b=0;while(1){F[g+3|0]=I[I[c|0]+e|0];g=g+4|0;c=c+1|0;b=b+1|0;if((a|0)!=(b|0)){continue}break}}xb=e+256|0}function tla(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;H[b>>2]=0;H[b+4>>2]=0;H[b+24>>2]=-1;H[b+28>>2]=-1;H[b+80>>2]=0;H[b+84>>2]=0;H[b+72>>2]=0;H[b+76>>2]=8720;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b+32>>2]=-1;H[b+36>>2]=-1;H[b+40>>2]=-1;H[b+44>>2]=-1;H[b+48>>2]=-1;H[b+52>>2]=-1;H[b+56>>2]=-1;H[b+60>>2]=-1;H[b- -64>>2]=-1;H[b+88>>2]=0;H[b+92>>2]=0;H[b+96>>2]=0;H[b+100>>2]=0;k=I[163632];m=k|256;h=!I[a+16|0];while(1){a:{c=H[a+12>>2];d=c+1|0;i=H[a+4>>2];l=d>>>0<=i>>>0&h;if(!l){break a}b:{c:{if(c>>>0>>0){f=H[a>>2];h=I[f+c|0];if((h|0)==12){c=m;if(d>>>0>=i>>>0){break c}h=I[d+f|0]|256;c=d}if(c>>>0>=i>>>0){c=h;break c}H[a+12>>2]=c+1;break b}F[a+16|0]=1;h=65535;c=k;if((c|0)==12){break b}}F[a+16|0]=1;H[a+12>>2]=i;h=c}d=0;i=xb-32|0;xb=i;H[i+20>>2]=0;H[i+12>>2]=0;H[i+16>>2]=0;H[i+24>>2]=H[a+48>>2]+(H[b>>2]^-1);d:{e:{f:{g:{switch(h|0){case 0:case 1:case 2:case 3:case 4:case 256:case 277:case 278:case 294:f=a+24|0;c=H[f>>2];h:{if(c){c=c-1|0;if(c>>>0>=K[a+32>>2]){c=H[40909];g=H[40908];H[196248]=g;H[196249]=c;x(0,g|0);x(1,c|0);e=+z();break h}e=M[H[a+36>>2]+(c<<3)>>3];break h}F[a+20|0]=1;c=H[40909];g=H[40908];H[196248]=g;H[196249]=c;x(0,g|0);x(1,c|0);e=+z()}i:{if(P(e)<2147483648){c=~~e;break i}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}j:{k:{l:{m:{n:{o:{p:{q:{r:{switch(h-1|0){default:switch(h-256|0){case 22:break k;case 38:break l;case 21:break m;case 0:break q;default:break j};case 3:break n;case 2:break o;case 1:break p;case 0:break r}}d=1;break j}d=2;break j}d=3;break j}d=4;break j}d=5;break j}d=6;break j}d=7;break j}d=8}H[((d<<2)+b|0)+24>>2]=c;break f;case 290:f=a+24|0;c=H[f>>2];s:{if(c){c=c-1|0;if(c>>>0>=K[a+32>>2]){c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z();break s}e=M[H[a+36>>2]+(c<<3)>>3];break s}F[a+20|0]=1;c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z()}t:{if(P(e)<2147483648){c=~~e;break t}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}H[b+76>>2]=c;break f;case 286:f=a+24|0;c=H[f>>2];u:{if(c){c=c-1|0;H[a+24>>2]=c;if(K[a+32>>2]<=c>>>0){d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);e=+z();break u}e=M[H[a+36>>2]+(c<<3)>>3];break u}F[a+20|0]=1;c=0;d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);e=+z()}v:{if(P(e)<2147483648){d=~~e;break v}d=-2147483648}if((d|0)<0){F[a+20|0]=1;d=0}H[b+72>>2]=d;d=b- -64|0;w:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){c=H[40909];g=H[40908];H[196248]=g;H[196249]=c;x(0,g|0);x(1,c|0);e=+z();break w}e=M[H[a+36>>2]+(c<<3)>>3];break w}F[a+20|0]=1;c=H[40909];g=H[40908];H[196248]=g;H[196249]=c;x(0,g|0);x(1,c|0);e=+z()}x:{if(P(e)<2147483648){c=~~e;break x}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}H[d>>2]=c;c=H[a+24>>2];y:{if(c){c=c-1|0;if(c>>>0>=K[a+32>>2]){c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z();break y}e=M[H[a+36>>2]+(c<<3)>>3];break y}F[a+20|0]=1;c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z()}z:{if(P(e)<2147483648){c=~~e;break z}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}H[b+60>>2]=c;break f;case 16:c=H[a+24>>2];A:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z();break A}e=M[H[a+36>>2]+(c<<3)>>3];break A}F[a+20|0]=1;c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z()}B:{if(P(e)<2147483648){c=~~e;break B}c=-2147483648}if((c|0)<0){F[a+20|0]=1;H[b+80>>2]=0;H[a+24>>2]=0;break d}H[b+80>>2]=c;H[a+24>>2]=0;if(c){break e}break d;case 15:c=H[a+24>>2];C:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z();break C}e=M[H[a+36>>2]+(c<<3)>>3];break C}F[a+20|0]=1;c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z()}D:{if(P(e)<2147483648){c=~~e;break D}c=-2147483648}if((c|0)<0){F[a+20|0]=1;H[b+84>>2]=0;H[a+24>>2]=0;break d}H[b+84>>2]=c;H[a+24>>2]=0;if(c){break e}break d;case 293:f=a+24|0;c=H[f>>2];E:{if(c){c=c-1|0;if(c>>>0>=K[a+32>>2]){c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z();break E}e=M[H[a+36>>2]+(c<<3)>>3];break E}F[a+20|0]=1;c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z()}F:{if(P(e)<2147483648){c=~~e;break F}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}H[b+88>>2]=c;break f;case 18:f=a+24|0;c=H[f>>2];G:{if(c){c=c-1|0;H[a+24>>2]=c;if(K[a+32>>2]<=c>>>0){d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);e=+z();break G}e=M[H[a+36>>2]+(c<<3)>>3];break G}F[a+20|0]=1;c=0;d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);e=+z()}H:{if(P(e)<2147483648){d=~~e;break H}d=-2147483648}if((d|0)<0){F[a+20|0]=1;d=0}H[b+92>>2]=d;I:{if(c){c=c-1|0;if(c>>>0>=K[a+32>>2]){c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z();break I}e=M[H[a+36>>2]+(c<<3)>>3];break I}F[a+20|0]=1;c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z()}J:{if(P(e)<2147483648){c=~~e;break J}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}H[b+96>>2]=c;break f;default:H[a+48>>2]=H[a+12>>2];YF(h,a,b);if(!H[a+24>>2]){break e}break d;case 5:case 13:case 14:case 257:case 258:case 259:case 260:case 261:case 262:case 264:case 276:case 279:case 287:case 288:case 289:case 291:break g}}f=a+24|0}H[f>>2]=0}if(I[a+20|0]|(I[a+40|0]|I[a+16|0])|H[a+28>>2]<0){break d}K:{L:{M:{c=H[b+4>>2];if((c|0)>=0){d=H[b+8>>2];f=d+1|0;f=(f|0)>0?f:0;if(f>>>0<=c>>>0){break L}d=c;while(1){d=((d>>>1|0)+d|0)+8|0;if(f>>>0>=d>>>0){continue}break}if(!(c>>>0>d>>>0|d>>>0>214748363)){c=tc(H[b+12>>2],N(d,20));if(c){break M}}H[b+4>>2]=-1}H[196252]=H[40912];c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;j=784992;break K}H[b+4>>2]=d;H[b+12>>2]=c;d=H[b+8>>2]}if(d>>>0>>0){while(1){H[b+8>>2]=d+1;c=H[b+12>>2]+N(d,20)|0;H[c>>2]=0;H[c+4>>2]=0;H[c+16>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;d=H[b+8>>2];if(f>>>0>d>>>0){continue}break}}H[b+8>>2]=f;d=H[b+12>>2];H[196252]=H[40912];c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;d=(d+N(f,20)|0)-20|0;j=784992;if((d|0)==784992){break K}c=H[i+12>>2];H[d>>2]=H[i+8>>2];H[d+4>>2]=c;H[d+16>>2]=H[i+24>>2];c=H[i+20>>2];H[d+8>>2]=H[i+16>>2];H[d+12>>2]=c;j=d}c=j;H[c>>2]=h;f=H[a+12>>2];d=H[a+4>>2];g=H[a>>2];h=H[b>>2];H[c+12>>2]=0;H[c+4>>2]=h+g;c=d-h|0;c=c>>>0>d>>>0?0:c;h=f-h|0;H[j+8>>2]=c>>>0>>0?c:h;H[b>>2]=H[a+12>>2]}xb=i+32|0;if(I[a+20|0]|(I[a+40|0]|I[a+16|0])){break a}h=1;if(H[a+28>>2]>=0){continue}}break}return!l|0}function Dca(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;c=xb-48|0;xb=c;k=H[a+420>>2];d=H[a+24>>2];h=H[d>>2];H[c+8>>2]=h;f=H[d+4>>2];H[c+12>>2]=f;d=H[k+24>>2];H[c+24>>2]=H[k+20>>2];H[c+28>>2]=d;d=H[k+32>>2];H[c+32>>2]=H[k+28>>2];H[c+36>>2]=d;d=H[k+16>>2];H[c+16>>2]=H[k+12>>2];H[c+20>>2]=d;H[c+40>>2]=a;a:{b:{if(!H[a+236>>2]){e=a;break b}e=a;if(H[k+36>>2]){break b}e=H[k+40>>2];g=H[c+20>>2];if((g|0)>0){d=g+7|0;f=H[c+16>>2]|127<<17-g;while(1){H[c+8>>2]=h+1;F[h|0]=f>>>16;g=H[c+12>>2]-1|0;H[c+12>>2]=g;if(!g){i=H[c+40>>2];g=H[i+24>>2];if(!(zb[H[g+12>>2]](i)|0)){break a}H[c+8>>2]=H[g>>2];H[c+12>>2]=H[g+4>>2]}c:{if((f&16711680)!=16711680){break c}g=H[c+8>>2];H[c+8>>2]=g+1;F[g|0]=0;g=H[c+12>>2]-1|0;H[c+12>>2]=g;if(g){break c}i=H[c+40>>2];g=H[i+24>>2];if(!(zb[H[g+12>>2]](i)|0)){break a}H[c+8>>2]=H[g>>2];H[c+12>>2]=H[g+4>>2]}if((d|0)>=16){f=f<<8;d=d-8|0;h=H[c+8>>2];continue}break}h=H[c+8>>2]}H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=h+1;F[h|0]=255;d=H[c+12>>2]-1|0;H[c+12>>2]=d;d:{if(d){f=H[c+8>>2];break d}g=H[c+40>>2];d=H[g+24>>2];if(!(zb[H[d+12>>2]](g)|0)){break a}f=H[d>>2];H[c+12>>2]=H[d+4>>2]}H[c+8>>2]=f+1;F[f|0]=e-48;f=H[c+12>>2]-1|0;H[c+12>>2]=f;e=H[c+40>>2];if(!f){d=H[e+24>>2];if(!(zb[H[d+12>>2]](e)|0)){break a}H[c+8>>2]=H[d>>2];f=H[d+4>>2];H[c+12>>2]=f}if(H[e+288>>2]<=0){break b}h=0;while(1){H[((h<<2)+c|0)+24>>2]=0;h=h+1|0;if((h|0)>2]){continue}break}}m=1;e:{if(H[a+316>>2]<=0){break e}while(1){d=r<<2;t=d+b|0;u=H[t>>2];h=G[u>>1];d=H[(a+d|0)+320>>2]<<2;v=d+c|0;n=H[v+24>>2];l=h-n|0;i=l>>31;d=H[(a+d|0)+292>>2];o=H[((H[d+24>>2]<<2)+k|0)+60>>2];j=H[((H[d+20>>2]<<2)+k|0)+44>>2];w=H[e+380>>2];s=H[e+384>>2];g=0;f:{if((h|0)==(n|0)){break f}h=(i^l)-i|0;while(1){d=g;g=d+1|0;n=h>>>0>1;h=h>>>1|0;if(n){continue}break}if(d>>>0<11){break f}d=H[e>>2];H[d+20>>2]=6;zb[H[d>>2]](e)}h=H[j+(g<<2)>>2];n=H[c+20>>2];d=F[(g+j|0)+1024|0];if(!d){j=H[e>>2];H[j+20>>2]=41;zb[H[j>>2]](e)}e=h&(-1<>2]|e<<24-d;if((d|0)>=8){while(1){e=H[c+8>>2];H[c+8>>2]=e+1;F[e|0]=h>>>16;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(!f){j=H[c+40>>2];e=H[j+24>>2];if(!(zb[H[e+12>>2]](j)|0)){m=0;break a}H[c+8>>2]=H[e>>2];f=H[e+4>>2];H[c+12>>2]=f}e=d;g:{if((h&16711680)!=16711680){break g}d=H[c+8>>2];H[c+8>>2]=d+1;F[d|0]=0;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(f){break g}j=H[c+40>>2];d=H[j+24>>2];if(!(zb[H[d+12>>2]](j)|0)){m=0;break a}H[c+8>>2]=H[d>>2];f=H[d+4>>2];H[c+12>>2]=f}d=e-8|0;h=h<<8;if((e|0)>15){continue}break}}H[c+20>>2]=d;H[c+16>>2]=h;if(g){d=d+g|0;h=(i+l&(-1<=8){while(1){g=H[c+8>>2];H[c+8>>2]=g+1;F[g|0]=h>>>16;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(!f){e=H[c+40>>2];g=H[e+24>>2];if(!(zb[H[g+12>>2]](e)|0)){m=0;break a}H[c+8>>2]=H[g>>2];f=H[g+4>>2];H[c+12>>2]=f}g=d;h:{if((h&16711680)!=16711680){break h}d=H[c+8>>2];H[c+8>>2]=d+1;F[d|0]=0;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(f){break h}e=H[c+40>>2];d=H[e+24>>2];if(!(zb[H[d+12>>2]](e)|0)){m=0;break a}H[c+8>>2]=H[d>>2];f=H[d+4>>2];H[c+12>>2]=f}d=g-8|0;h=h<<8;if((g|0)>15){continue}break}}H[c+20>>2]=d;H[c+16>>2]=h}i:{if((s|0)<=0){break i}i=1;j:while(1){e=0;g=i;while(1){j=J[(H[(g<<2)+w>>2]<<1)+u>>1];if(j){if(e>>>0>=16){while(1){l=H[o+960>>2];i=F[o+1264|0];if(!i){n=H[c+40>>2];p=H[n>>2];H[p+20>>2]=41;zb[H[p>>2]](n)}d=d+i|0;h=(l&(-1<=8){while(1){i=H[c+8>>2];H[c+8>>2]=i+1;F[i|0]=h>>>16;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(!f){l=H[c+40>>2];i=H[l+24>>2];if(!(zb[H[i+12>>2]](l)|0)){m=0;break a}H[c+8>>2]=H[i>>2];f=H[i+4>>2];H[c+12>>2]=f}i=d;k:{if((h&16711680)!=16711680){break k}d=H[c+8>>2];H[c+8>>2]=d+1;F[d|0]=0;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(f){break k}l=H[c+40>>2];d=H[l+24>>2];if(!(zb[H[d+12>>2]](l)|0)){m=0;break a}H[c+8>>2]=H[d>>2];f=H[d+4>>2];H[c+12>>2]=f}d=i-8|0;h=h<<8;if(i>>>0>15){continue}break}}H[c+20>>2]=d;H[c+16>>2]=h;i=(e|0)>31;e=e-16|0;if(i){continue}break}}l=1;p=j<<16;n=p>>16;i=n>>31;i=(i^n)-i|0;l:{if(i>>>0<2){break l}while(1){j=l;l=j+1|0;q=i>>>0>3;i=i>>>1|0;if(q){continue}break}if(j>>>0<10){break l}i=H[c+40>>2];j=H[i>>2];H[j+20>>2]=6;zb[H[j>>2]](i)}e=(e<<4)+l|0;i=H[(e<<2)+o>>2];e=F[(e+o|0)+1024|0];if(!e){j=H[c+40>>2];q=H[j>>2];H[q+20>>2]=41;zb[H[q>>2]](j)}j=i&(-1<=8){while(1){d=H[c+8>>2];H[c+8>>2]=d+1;F[d|0]=h>>>16;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(!f){e=H[c+40>>2];d=H[e+24>>2];if(!(zb[H[d+12>>2]](e)|0)){m=0;break a}H[c+8>>2]=H[d>>2];f=H[d+4>>2];H[c+12>>2]=f}d=i;m:{if((h&16711680)!=16711680){break m}e=H[c+8>>2];H[c+8>>2]=e+1;F[e|0]=0;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(f){break m}i=H[c+40>>2];e=H[i+24>>2];if(!(zb[H[e+12>>2]](i)|0)){m=0;break a}H[c+8>>2]=H[e>>2];f=H[e+4>>2];H[c+12>>2]=f}i=d-8|0;h=h<<8;if(d>>>0>15){continue}break}}d=i+l|0;h=(n+(p>>31)&(-1<=8){while(1){e=H[c+8>>2];H[c+8>>2]=e+1;F[e|0]=h>>>16;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(!f){i=H[c+40>>2];e=H[i+24>>2];if(!(zb[H[e+12>>2]](i)|0)){m=0;break a}H[c+8>>2]=H[e>>2];f=H[e+4>>2];H[c+12>>2]=f}e=d;n:{if((h&16711680)!=16711680){break n}d=H[c+8>>2];H[c+8>>2]=d+1;F[d|0]=0;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(f){break n}i=H[c+40>>2];d=H[i+24>>2];if(!(zb[H[d+12>>2]](i)|0)){m=0;break a}H[c+8>>2]=H[d>>2];f=H[d+4>>2];H[c+12>>2]=f}d=e-8|0;h=h<<8;if(e>>>0>15){continue}break}}H[c+20>>2]=d;H[c+16>>2]=h;i=g+1|0;if((g|0)!=(s|0)){continue j}break i}e=e+1|0;i=(g|0)==(s|0);g=g+1|0;if(!i){continue}break}break}e=H[o>>2];g=F[o+1024|0];if(!g){i=H[c+40>>2];l=H[i>>2];H[l+20>>2]=41;zb[H[l>>2]](i)}e=e&(-1<=8){while(1){d=H[c+8>>2];H[c+8>>2]=d+1;F[d|0]=h>>>16;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(!f){e=H[c+40>>2];d=H[e+24>>2];if(!(zb[H[d+12>>2]](e)|0)){m=0;break a}H[c+8>>2]=H[d>>2];f=H[d+4>>2];H[c+12>>2]=f}d=g;o:{if((h&16711680)!=16711680){break o}g=H[c+8>>2];H[c+8>>2]=g+1;F[g|0]=0;f=H[c+12>>2]-1|0;H[c+12>>2]=f;if(f){break o}e=H[c+40>>2];g=H[e+24>>2];if(!(zb[H[g+12>>2]](e)|0)){m=0;break a}H[c+8>>2]=H[g>>2];f=H[g+4>>2];H[c+12>>2]=f}g=d-8|0;h=h<<8;if((d|0)>15){continue}break}}H[c+20>>2]=g;H[c+16>>2]=h}H[v+24>>2]=G[H[t>>2]>>1];r=r+1|0;if((r|0)>=H[a+316>>2]){break e}e=H[c+40>>2];continue}}b=H[c+8>>2];d=H[a+24>>2];H[d+4>>2]=f;H[d>>2]=b;b=H[c+36>>2];H[k+28>>2]=H[c+32>>2];H[k+32>>2]=b;b=H[c+28>>2];H[k+20>>2]=H[c+24>>2];H[k+24>>2]=b;b=H[c+20>>2];H[k+12>>2]=H[c+16>>2];H[k+16>>2]=b;a=H[a+236>>2];if(!a){break a}b=H[k+36>>2];if(b){a=b}else{H[k+40>>2]=H[k+40>>2]+1&7}H[k+36>>2]=a-1}xb=c+48|0;return m|0}function IU(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;k=xb-48|0;xb=k;s=6;j=H[a+4>>2];a:{if(!j){break a}r=c?c-1|0:0;if(r>>>0>=K[j+408>>2]){break a}b:{c:{if(d&9){break c}f=H[j+380>>2];if(!f){break c}u=H[j+416>>2];o=H[j+104>>2];c=H[j+388>>2];e=J[b+12>>1];while(1){if(!((e|0)==H[c>>2]&H[c+4>>2]==J[b+14>>1])){c=c+36|0;g=g+1|0;if((f|0)!=(g|0)){continue}break c}break}g=H[c+8>>2];if(bc(o,H[c+24>>2]+H[j+432>>2]|0)){break c}f=g&1;if(Jc(o,N(H[c+28>>2],(g>>>2&1)+(g&2?f+5|0:f|4)|0))){break c}m=H[c+8>>2];p=m&1;n=(m&2?p+5|0:p|4)+(m>>>2&1)|0;l=H[(r<<4)+u>>2];g=H[c+28>>2];h=H[o+32>>2];if(!(m&64)){f=H[o+36>>2];q=m|128;H[c+8>>2]=q;d:{e:{f:{e=N(g,n);t=e+h|0;if(f>>>0>=t>>>0){if((e|0)<=0){break d}e=-1;if(p){break f}f=h;while(1){i=e;e=I[f|0];if((i|0)>=(e|0)){break e}f=f+n|0;if(t>>>0>f>>>0){continue}break}break d}q=m&-129;break d}f=h;while(1){i=e;e=I[f+1|0]|I[f|0]<<8;if((i|0)>=(e|0)){break e}f=f+n|0;if(t>>>0>f>>>0){continue}break}break d}q=m&-129}m=q|64;H[c+8>>2]=m}g:{if(!(m&128)){break g}h:{if(!p){c=0;while(1){if(c>>>0>=g>>>0){break g}f=c+g>>>1|0;p=h+N(f,n)|0;e=I[p|0];i=e>>>0>l>>>0;g=i?f:g;c=i?c:e>>>0>>0?f+1|0:c;if((e|0)!=(l|0)){continue}break}f=p+1|0;break h}p=h+2|0;c=0;while(1){if(c>>>0>=g>>>0){break g}e=c+g>>>1|0;f=p+N(e,n)|0;h=f-2|0;h=I[h|0]<<8|I[h+1|0];i=h>>>0>l>>>0;c=i?c:h>>>0>>0?e+1|0:c;g=i?e:g;if((h|0)!=(l|0)){continue}break}}i:{if(m&2){g=I[f+1|0]|I[f|0]<<8;c=f+2|0;break i}g=I[f|0];c=f+1|0}f=I[c|0];j:{if(m&4){h=2;f=I[c+1|0]<<8|f<<16;break j}h=1;f=f<<8}c=I[c+h|0];wc(o);if(!g){break c}e=c|f;H[k+8>>2]=0;H[k+44>>2]=0;H[k+36>>2]=0;H[k+32>>2]=0;H[k+28>>2]=0;i=(r<<4)+u|0;c=H[i+4>>2];h=H[j+304>>2];f=H[j+300>>2];k:{if((h|0)==(f|0)){f=c;break k}f=ic(c,f,h);h=H[j+304>>2];c=H[i+4>>2]}H[a+56>>2]=f;f=ic(J[b+12>>1]<<8,c,h);H[k+40>>2]=f;if(bc(o,e+H[j+188>>2]|0)){break c}if(Jc(o,g)){break c}H[k+24>>2]=H[o+32>>2];p=8;h=H[o+36>>2];e=H[k+24>>2];l:{if(h>>>0>>0){break l}m:{n:{o:{p:{q:{q=I[e|0];switch((q&3)-1|0){case 2:break n;case 1:break o;case 0:break p;default:break q}}c=e+2|0;if(h>>>0>>0){break l}e=F[e+1|0];m=e>>4;i=e<<28>>28;break m}c=e+3|0;if(h>>>0>>0){break l}i=F[e+2|0];m=F[e+1|0];break m}c=e+5|0;if(h>>>0>>0){break l}i=I[e+3|0]|I[e+4|0]<<8;i=(i<<8|i>>>8)<<16>>16;e=I[e+1|0]|I[e+2|0]<<8;m=(e<<8|e>>>8)<<16>>16;break m}c=e+7|0;if(h>>>0>>0){break l}i=I[e+6|0]|(I[e+5|0]<<8|I[e+4|0]<<16);m=I[e+3|0]|(I[e+2|0]<<8|I[e+1|0]<<16)}l=q>>>2&3;n=l;r:{s:{switch(l-1|0){case 0:e=c+1|0;if(e>>>0>h>>>0){break l}c=I[c|0];n=c&15;l=c>>>4|0;c=e;break r;case 1:e=c+2|0;if(e>>>0>h>>>0){break l}n=I[c+1|0];l=I[c|0];c=e;break r;case 2:break s;default:break r}}e=c+4|0;if(e>>>0>h>>>0){break l}n=I[c+3|0]|I[c+2|0]<<8;l=I[c+1|0]|I[c|0]<<8;c=e}t:{u:{v:{w:{q=q>>>4|0;switch((q&3)-1|0){case 2:break u;case 1:break v;case 0:break w;default:break t}}e=c+1|0;if(e>>>0>h>>>0){break l}f=F[c|0]<<8;c=e;break t}e=c+2|0;if(e>>>0>h>>>0){break l}c=I[c|0]|I[c+1|0]<<8;f=(c<<8|c>>>8)<<16>>16;c=e;break t}e=c+3|0;if(e>>>0>h>>>0){break l}f=I[c+2|0]|(I[c+1|0]<<8|I[c|0]<<16);c=e}H[k+8>>2]=m;H[k+44>>2]=i;H[k+36>>2]=l;H[k+32>>2]=n;H[k+40>>2]=f;H[k+28>>2]=q>>>2;H[k+24>>2]=c;p=0}if(p){break g}x:{y:{z:{A:{e=H[k+28>>2];switch(e|0){case 0:break y;case 2:break z;case 1:break A;default:break g}}c=H[k+32>>2];h=H[k+36>>2];if(N(c,h)>>>0<=N(g,15)>>>0){break x}break g}c=H[k+32>>2];h=H[k+36>>2];if(N(c,h)>>>0>N(g+1>>>1|0,255)>>>0){break g}break x}c=H[k+32>>2];h=H[k+36>>2];if(N(c,h)+7>>>3>>>0>g>>>0){break g}}if((c|0)<0){break g}g=H[k+44>>2];if((g|0)>(2147483647-c|0)){break g}H[a+72>>2]=1651078259;H[a+76>>2]=c;H[a+80>>2]=h;F[a+94|0]=1;H[a+28>>2]=c<<6;i=h<<6;H[a+24>>2]=i;h=h+7>>3;H[a+84>>2]=h;f=H[k+8>>2];H[a+36>>2]=g<<6;H[a+32>>2]=f<<6;l=H[k+40>>2];H[a+48>>2]=0;H[a+44>>2]=0-i>>1;H[a+40>>2]=(l>>2)+32&-64;i=H[b+32>>2];H[a+104>>2]=c+g;H[a+100>>2]=f;H[a+52>>2]=i;if(!(d&4194304)){if(jn(a,N(c,h))){break g}d=H[k+24>>2];m=H[o+36>>2];c=I[j+208|0]>>>1&1;j=0;g=H[a+76>>2];B:{if(!g){break B}b=H[a+80>>2];if(!b){break B}f=H[a+84>>2];r=c?f:0-f|0;n=N(b,g);h=H[a+88>>2]+(c?0:N(f,g-1|0))|0;C:{D:{switch(e|0){case 0:a=m-d<<3;l=a>>>0>>0?a:n;if(!l){break B}i=128;f=0;c=h;a=b;g=l;while(1){if(!((g^l)&7)){f=I[d|0];d=d+1|0}j=f<<24>>31&i|j;a=a-1|0;E:{if(!a){F[c|0]=j;j=0;a=b;h=h+r|0;c=h;e=128;break E}e=i>>>1|0;if(i>>>0>1){break E}F[c|0]=j;c=c+1|0;j=0;e=128}i=e;f=f<<1;g=g-1|0;if(g){continue}break};if((i|0)!=128){break C}break B;case 1:if(!n){break B}s=1;g=128;c=h;e=b;l=0;a=0;i=1;while(1){f=a;F:{if(s){while(1){G:{if(!i){i=1;f=l;break G}if(d>>>0>=m>>>0){i=1;f=a;a=g;break F}a=I[d|0];l=a&15;d=d+1|0;i=0;f=a>>>4|0}a=0;if(!f){continue}break}}a=i?g:0}j=a|j;e=e-1|0;H:{if(!e){F[c|0]=j;j=0;e=b;h=h+r|0;c=h;a=128;break H}a=g>>>1|0;if(g>>>0>1){break H}F[c|0]=j;c=c+1|0;j=0;a=128}g=a;s=(f|0)<2;a=f-1|0;n=n-1|0;if(n){continue}break};if((g|0)!=128){break C}break B;case 2:break D;default:break B}}if(!n){break B}f=1;l=128;c=h;g=b;a=0;i=1;while(1){I:{if(!f|d>>>0>=m>>>0){break I}J:{while(1){i=i^1;f=d+1|0;a=I[d|0];if(a){break J}d=f;if((f|0)!=(m|0)){continue}break}a=0;d=m;break I}d=f}j=(i?l:0)|j;g=g-1|0;K:{if(!g){F[c|0]=j;j=0;g=b;h=h+r|0;c=h;e=128;break K}e=l>>>1|0;if(l>>>0>1){break K}F[c|0]=j;c=c+1|0;j=0;e=128}l=e;f=(a|0)<2;a=a-1|0;n=n-1|0;if(n){continue}break}if((l|0)==128){break B}}F[c|0]=j}}wc(o);break b}wc(o)}if(d&16384){break a}g=H[j+416>>2];H[a+72>>2]=1869968492;H[a+108>>2]=0;c=g+(r<<4)|0;f=H[c+8>>2];c=H[c+12>>2];e=H[j+188>>2];h=H[j+104>>2];Oh(H[a+188>>2]);H[a+176>>2]=0;s=Qx(a+160|0,h,e,c,f);if(s){break a}c=H[a+188>>2];e=H[c+24>>2];f=a+108|0;H[f>>2]=H[c+20>>2];H[f+4>>2]=e;H[f+16>>2]=H[c+36>>2];e=H[c+32>>2];H[f+8>>2]=H[c+28>>2];H[f+12>>2]=e;c=H[a+124>>2]&-6;H[a+124>>2]=c|4;if(J[b+14>>1]<=23){H[a+124>>2]=c|260}H[a+52>>2]=0;H[a+40>>2]=0;c=H[(g+(r<<4)|0)+4>>2];g=H[j+304>>2];e=H[j+300>>2];if((g|0)!=(e|0)){c=ic(c,e,g)}L:{if(F[j+324|0]&1){H[a+52>>2]=c;g=H[a+40>>2];break L}H[a+40>>2]=c;g=c;c=H[a+52>>2]}H[a+60>>2]=c;H[a+56>>2]=g;H[a+44>>2]=0;H[a+48>>2]=0;if(!(d&1)){d=H[b+20>>2];b=H[b+16>>2];if(G[a+110>>1]>0){c=H[a+112>>2];g=0;while(1){v=c,w=Rb(H[c>>2],b),H[v>>2]=w;v=c,w=Rb(H[c+4>>2],d),H[v+4>>2]=w;c=c+8|0;g=g+1|0;if((g|0)>1]){continue}break}g=H[a+40>>2]}v=a,w=Rb(g,b),H[v+40>>2]=w;v=a,w=Rb(H[a+52>>2],d),H[v+52>>2]=w}Nh(f,k+8|0);b=H[k+8>>2];H[a+24>>2]=H[k+16>>2]-b;c=H[k+20>>2];d=H[k+12>>2];H[a+36>>2]=d;H[a+32>>2]=b;H[a+28>>2]=c-d}s=0}xb=k+48|0;return s|0}function Zca(a){a=a|0;var b=0,c=0,d=0;d=H[a+404>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;a:{if(c){break a}if(zb[H[b+12>>2]](a)|0){break a}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=216;c=H[b+4>>2]-1|0;H[b+4>>2]=c;b:{if(c){break b}if(zb[H[b+12>>2]](a)|0){break b}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}H[d+28>>2]=0;c:{if(!H[a+244>>2]){break c}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;d:{if(c){break d}if(zb[H[b+12>>2]](a)|0){break d}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=224;c=H[b+4>>2]-1|0;H[b+4>>2]=c;e:{if(c){break e}if(zb[H[b+12>>2]](a)|0){break e}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;f:{if(c){break f}if(zb[H[b+12>>2]](a)|0){break f}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=16;c=H[b+4>>2]-1|0;H[b+4>>2]=c;g:{if(c){break g}if(zb[H[b+12>>2]](a)|0){break g}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=74;c=H[b+4>>2]-1|0;H[b+4>>2]=c;h:{if(c){break h}if(zb[H[b+12>>2]](a)|0){break h}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=70;c=H[b+4>>2]-1|0;H[b+4>>2]=c;i:{if(c){break i}if(zb[H[b+12>>2]](a)|0){break i}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=73;c=H[b+4>>2]-1|0;H[b+4>>2]=c;j:{if(c){break j}if(zb[H[b+12>>2]](a)|0){break j}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=70;c=H[b+4>>2]-1|0;H[b+4>>2]=c;k:{if(c){break k}if(zb[H[b+12>>2]](a)|0){break k}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;l:{if(c){break l}if(zb[H[b+12>>2]](a)|0){break l}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=I[a+248|0];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;m:{if(c){break m}if(zb[H[b+12>>2]](a)|0){break m}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=I[a+249|0];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;n:{if(c){break n}if(zb[H[b+12>>2]](a)|0){break n}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=I[a+250|0];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;o:{if(c){break o}if(zb[H[b+12>>2]](a)|0){break o}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}c=J[a+252>>1];b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c>>>8;d=H[b+4>>2]-1|0;H[b+4>>2]=d;p:{if(d){break p}if(zb[H[b+12>>2]](a)|0){break p}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c;c=H[b+4>>2]-1|0;H[b+4>>2]=c;q:{if(c){break q}if(zb[H[b+12>>2]](a)|0){break q}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}c=J[a+254>>1];b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c>>>8;d=H[b+4>>2]-1|0;H[b+4>>2]=d;r:{if(d){break r}if(zb[H[b+12>>2]](a)|0){break r}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c;c=H[b+4>>2]-1|0;H[b+4>>2]=c;s:{if(c){break s}if(zb[H[b+12>>2]](a)|0){break s}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;t:{if(c){break t}if(zb[H[b+12>>2]](a)|0){break t}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;if(c){break c}if(zb[H[b+12>>2]](a)|0){break c}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}u:{if(!H[a+256>>2]){break u}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;v:{if(c){break v}if(zb[H[b+12>>2]](a)|0){break v}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=238;c=H[b+4>>2]-1|0;H[b+4>>2]=c;w:{if(c){break w}if(zb[H[b+12>>2]](a)|0){break w}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;x:{if(c){break x}if(zb[H[b+12>>2]](a)|0){break x}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=14;c=H[b+4>>2]-1|0;H[b+4>>2]=c;y:{if(c){break y}if(zb[H[b+12>>2]](a)|0){break y}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=65;c=H[b+4>>2]-1|0;H[b+4>>2]=c;z:{if(c){break z}if(zb[H[b+12>>2]](a)|0){break z}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=100;c=H[b+4>>2]-1|0;H[b+4>>2]=c;A:{if(c){break A}if(zb[H[b+12>>2]](a)|0){break A}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=111;c=H[b+4>>2]-1|0;H[b+4>>2]=c;B:{if(c){break B}if(zb[H[b+12>>2]](a)|0){break B}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=98;c=H[b+4>>2]-1|0;H[b+4>>2]=c;C:{if(c){break C}if(zb[H[b+12>>2]](a)|0){break C}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=101;c=H[b+4>>2]-1|0;H[b+4>>2]=c;D:{if(c){break D}if(zb[H[b+12>>2]](a)|0){break D}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;E:{if(c){break E}if(zb[H[b+12>>2]](a)|0){break E}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=100;c=H[b+4>>2]-1|0;H[b+4>>2]=c;F:{if(c){break F}if(zb[H[b+12>>2]](a)|0){break F}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;G:{if(c){break G}if(zb[H[b+12>>2]](a)|0){break G}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;H:{if(c){break H}if(zb[H[b+12>>2]](a)|0){break H}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;I:{if(c){break I}if(zb[H[b+12>>2]](a)|0){break I}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;J:{if(c){break J}if(zb[H[b+12>>2]](a)|0){break J}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}K:{L:{switch(H[a+80>>2]-3|0){case 0:b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=1;c=H[b+4>>2]-1|0;H[b+4>>2]=c;if(c){break u}if(!(zb[H[b+12>>2]](a)|0)){break K}break u;case 2:b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=2;c=H[b+4>>2]-1|0;H[b+4>>2]=c;if(c){break u}if(!(zb[H[b+12>>2]](a)|0)){break K}break u;default:break L}}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;if(c){break u}if(zb[H[b+12>>2]](a)|0){break u}}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}}function tE(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,r=0,s=0,t=0,u=0;o=H[b+80>>2];u=H[b+68>>2];a:{if(!H[b+132>>2]){break a}while(1){e=H[((g<<2)+b|0)+92>>2];f=H[b+12>>2];f=Or(e,zb[H[f+24>>2]](f,e,H[f+56>>2])|0);if((f|0)==7){e=0;g=g+1|0;if(g>>>0>2]){continue}break a}break}e=J[(f<<2)+125090>>1]}b:{if(!u){f=-1;break b}f=-1;while(1){n=o+N(l,20)|0;d=Or(H[n>>2],J[n+16>>1]&31);c:{if((d|0)==7){F[n+19|0]=7;break c}t=N(e,24)+(d<<2)|0;g=I[t+125088|0];d:{if(!((g|0)==7|(f|0)==-1)){s=N(f,20);F[(s+o|0)+19|0]=g;e=H[b+68>>2];d=l+1|0;k=d>>>0>e>>>0?e:d;m=k-f|0;if(m>>>0<2){break d}g=H[b+144>>2]|32;H[b+144>>2]=g;if(f>>>0>=k>>>0){break d}j=H[b+80>>2];d=-1;e=f;r=k+(f^-1)|0;if(r>>>0>=3){p=m&-4;h=0;while(1){i=j+N(e,20)|0;q=H[i+8>>2];d=d>>>0>>0?d:q;q=H[i+28>>2];d=d>>>0>>0?d:q;q=H[i+48>>2];d=d>>>0>>0?d:q;i=H[i+68>>2];d=d>>>0>>0?d:i;e=e+4|0;h=h+4|0;if((p|0)!=(h|0)){continue}break}}h=0;i=m&3;if(i){while(1){p=H[(j+N(e,20)|0)+8>>2];d=d>>>0

>>0?d:p;e=e+1|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}}if(m&1){e=j+s|0;if(H[e+8>>2]!=(d|0)){H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|3}f=f+1|0}if(!r){break d}while(1){e=j+N(f,20)|0;if(H[e+8>>2]!=(d|0)){g=g|32;H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|3}e=j+N(f+1|0,20)|0;if(H[e+8>>2]!=(d|0)){g=g|32;H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|3}f=f+2|0;if((k|0)!=(f|0)){continue}break}break d}if((f|0)==-1){if(!(I[b+16|0]&64)|d>>>0<2){break d}H[b+144>>2]=H[b+144>>2]|32;f=H[b+68>>2];e=l+1|0;h=f>>>0>>0?f:e;if(!I[b+61|0]){if(!h){break d}f=H[b+80>>2];e=0;d=0;if(h-1>>>0>=3){j=h&-4;g=0;while(1){k=f+N(d,20)|0;H[k+4>>2]=H[k+4>>2]|2;k=f+N(d|1,20)|0;H[k+4>>2]=H[k+4>>2]|2;k=f+N(d|2,20)|0;H[k+4>>2]=H[k+4>>2]|2;k=f+N(d|3,20)|0;H[k+4>>2]=H[k+4>>2]|2;d=d+4|0;g=g+4|0;if((j|0)!=(g|0)){continue}break}}g=h&3;if(!g){break d}while(1){h=f+N(d,20)|0;H[h+4>>2]=H[h+4>>2]|2;d=d+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}break d}j=H[b+72>>2];e:{if(!j){break e}f=H[b+84>>2];e=0;d=0;if(j-1>>>0>=3){k=j&-4;g=0;while(1){m=f+N(d,20)|0;H[m+4>>2]=H[m+4>>2]|2;m=f+N(d|1,20)|0;H[m+4>>2]=H[m+4>>2]|2;m=f+N(d|2,20)|0;H[m+4>>2]=H[m+4>>2]|2;m=f+N(d|3,20)|0;H[m+4>>2]=H[m+4>>2]|2;d=d+4|0;g=g+4|0;if((k|0)!=(g|0)){continue}break}}g=j&3;if(!g){break e}while(1){j=f+N(d,20)|0;H[j+4>>2]=H[j+4>>2]|2;d=d+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}}d=H[b+64>>2];if(h>>>0<=d>>>0){break d}g=h+(d^-1)|0;e=H[b+80>>2];f=0;j=h-d&3;if(j){while(1){k=e+N(d,20)|0;H[k+4>>2]=H[k+4>>2]|2;d=d+1|0;f=f+1|0;if((j|0)!=(f|0)){continue}break}}if(g>>>0<3){break d}while(1){f=e+N(d,20)|0;H[f+4>>2]=H[f+4>>2]|2;H[f+24>>2]=H[f+24>>2]|2;H[f+44>>2]=H[f+44>>2]|2;f=f- -64|0;H[f>>2]=H[f>>2]|2;d=d+4|0;if((h|0)!=(d|0)){continue}break}break d}if(!(I[b+16|0]&64)|d>>>0<=1&e-2>>>0>3){break d}e=H[b+68>>2];d=l+1|0;k=d>>>0>e>>>0?e:d;m=k-f|0;if(m>>>0<2){break d}g=H[b+144>>2]|32;H[b+144>>2]=g;if(f>>>0>=k>>>0){break d}j=H[b+80>>2];d=-1;e=f;s=k+(f^-1)|0;if(s>>>0>=3){r=m&-4;h=0;while(1){i=j+N(e,20)|0;p=H[i+8>>2];d=d>>>0

>>0?d:p;p=H[i+28>>2];d=d>>>0

>>0?d:p;p=H[i+48>>2];d=d>>>0

>>0?d:p;i=H[i+68>>2];d=d>>>0>>0?d:i;e=e+4|0;h=h+4|0;if((r|0)!=(h|0)){continue}break}}h=0;i=m&3;if(i){while(1){r=H[(j+N(e,20)|0)+8>>2];d=d>>>0>>0?d:r;e=e+1|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}}if(m&1){e=j+N(f,20)|0;if(H[e+8>>2]!=(d|0)){H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|2}f=f+1|0}if(!s){break d}while(1){e=j+N(f,20)|0;if(H[e+8>>2]!=(d|0)){g=g|32;H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|2}e=j+N(f+1|0,20)|0;if(H[e+8>>2]!=(d|0)){g=g|32;H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|2}f=f+2|0;if((k|0)!=(f|0)){continue}break}}F[n+19|0]=I[t+125089|0];e=J[t+125090>>1];f=l}l=l+1|0;if((u|0)!=(l|0)){continue}break}}f:{if(!H[b+136>>2]){break f}h=0;while(1){d=H[((h<<2)+b|0)+112>>2];l=H[b+12>>2];l=Or(d,zb[H[l+24>>2]](l,d,H[l+56>>2])|0);if((l|0)==7){h=h+1|0;if(h>>>0>2]){continue}break f}break}l=I[(N(e,24)+(l<<2)|0)+125088|0];if(!((l|0)==7|(f|0)==-1)){F[(o+N(f,20)|0)+19|0]=l;j=H[b+68>>2];o=j-f|0;if(o>>>0<2){break f}g=H[b+144>>2]|32;H[b+144>>2]=g;if(f>>>0>=j>>>0){break f}l=H[b+80>>2];d=-1;e=f;k=j+(f^-1)|0;if(k>>>0>=3){m=o&-4;h=0;while(1){n=l+N(e,20)|0;i=H[n+8>>2];d=d>>>0>>0?d:i;i=H[n+28>>2];d=d>>>0>>0?d:i;i=H[n+48>>2];d=d>>>0>>0?d:i;n=H[n+68>>2];d=d>>>0>>0?d:n;e=e+4|0;h=h+4|0;if((m|0)!=(h|0)){continue}break}}n=o&3;if(n){h=0;while(1){m=H[(l+N(e,20)|0)+8>>2];d=d>>>0>>0?d:m;e=e+1|0;h=h+1|0;if((n|0)!=(h|0)){continue}break}}if(o&1){e=l+N(f,20)|0;if(H[e+8>>2]!=(d|0)){H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|3}f=f+1|0}if(!k){break f}while(1){e=l+N(f,20)|0;if(H[e+8>>2]!=(d|0)){g=g|32;H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|3}e=l+N(f+1|0,20)|0;if(H[e+8>>2]!=(d|0)){g=g|32;H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|3}f=f+2|0;if((j|0)!=(f|0)){continue}break}break f}if(!(I[b+16|0]&64)|e-2>>>0>3){break f}j=H[b+68>>2];o=j-f|0;if(o>>>0<2){break f}g=H[b+144>>2]|32;H[b+144>>2]=g;if(f>>>0>=j>>>0){break f}l=H[b+80>>2];d=-1;e=f;k=j+(f^-1)|0;if(k>>>0>=3){m=o&-4;h=0;while(1){n=l+N(e,20)|0;i=H[n+8>>2];d=d>>>0>>0?d:i;i=H[n+28>>2];d=d>>>0>>0?d:i;i=H[n+48>>2];d=d>>>0>>0?d:i;n=H[n+68>>2];d=d>>>0>>0?d:n;e=e+4|0;h=h+4|0;if((m|0)!=(h|0)){continue}break}}n=o&3;if(n){h=0;while(1){m=H[(l+N(e,20)|0)+8>>2];d=d>>>0>>0?d:m;e=e+1|0;h=h+1|0;if((n|0)!=(h|0)){continue}break}}if(o&1){e=l+N(f,20)|0;if(H[e+8>>2]!=(d|0)){H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|2}f=f+1|0}if(!k){break f}while(1){e=l+N(f,20)|0;if(H[e+8>>2]!=(d|0)){g=g|32;H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|2}e=l+N(f+1|0,20)|0;if(H[e+8>>2]!=(d|0)){g=g|32;H[b+144>>2]=g;H[e+4>>2]=H[e+4>>2]|2}f=f+2|0;if((j|0)!=(f|0)){continue}break}}g:{h:{if((c|0)!=1299148391){break h}f=H[b+68>>2];if(f>>>0<2){break g}c=H[b+80>>2];d=1;e=f-1|0;l=e&1;if((f|0)!=2){e=e&-2;g=0;while(1){f=c+N(d,20)|0;h=H[f>>2]-6155|0;if(!(h>>>0>4|(h|0)==3)){F[f+19|0]=I[f-1|0]}h=c+N(d+1|0,20)|0;j=H[h>>2]-6155|0;if(!(j>>>0>4|(j|0)==3)){F[h+19|0]=I[f+19|0]}d=d+2|0;g=g+2|0;if((e|0)!=(g|0)){continue}break}}if(!l){break h}f=H[c+N(d,20)>>2]-6155|0;if(f>>>0>4|(f|0)==3){break h}c=c+N(d,20)|0;F[c+19|0]=I[c-1|0]}f=H[b+68>>2]}i:{if(!f){break i}b=H[b+80>>2];d=0;if((f|0)!=1){e=f&-2;g=0;while(1){c=b+N(d,20)|0;H[c+4>>2]=H[c+4>>2]|H[(I[c+19|0]<<2)+a>>2];c=b+N(d|1,20)|0;H[c+4>>2]=H[c+4>>2]|H[(I[c+19|0]<<2)+a>>2];d=d+2|0;g=g+2|0;if((e|0)!=(g|0)){continue}break}}if(!(f&1)){break i}b=b+N(d,20)|0;H[b+4>>2]=H[b+4>>2]|H[(I[b+19|0]<<2)+a>>2]}}function _fa(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,y=0;s=xb-960|0;xb=s;a:{b:{y=H[a+4>>2];if(y){j=H[a+20>>2];l=H[a+16>>2];g=Bd(s+16|0,0);H[197455]=0;ba(1059,g|0,a|0);c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;f=J[a+26>>1];c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;e=H[a+68>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;pa(978,g|0,j|0,l|0,f|0,e|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;f=H[a+4>>2];e=H[a+44>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;ga(921,g|0,(f?e?f+40|0:0:0)|0,256);c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;e=H[a+928>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}if(e){H[197455]=0;aa(1020,g|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}}H[197455]=0;e=H[a+924>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}if(e){H[197455]=0;aa(1072,g|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}}c:{if(J[a+26>>1]!=1){if((j|0)<=0|(l|0)<=0){break c}c=0;w=64;while(1){u=c- -64|0;x=(j|0)<(u|0)?j:u;v=(j|0)<(w|0)?j:w;n=N(v,100)-100|0;m=0;q=64;e=0;while(1){t=(l|0)<(q|0)?l:q;d:{if(J[a+26>>1]==24){if((c|0)>=(x|0)){break d}f=e- -64|0;o=(f|0)>(l|0)?l:f;p=m<<6|1;r=e|1;i=t&1;f=c;while(1){H[a+328>>2]=(N(f,100)|0)/(j|0);H[197455]=0;k=H[g+44>>2]?0:(H[g+56>>2]+N(H[g+52>>2],e)|0)+N(f,3)|0;d=H[197455];H[197455]=0;if((d|0)==1){break b}H[197455]=0;d=(f^-1)+j|0;d=H[a+44>>2]?0:(H[a+56>>2]+N(d,H[a+52>>2])|0)+N(e,3)|0;h=H[197455];H[197455]=0;if((h|0)==1){break b}e:{if((e|0)>=(o|0)){break e}if(i){F[k|0]=I[d|0];F[k+1|0]=I[d+1|0];F[k+2|0]=I[d+2|0];d=d+3|0;k=H[g+52>>2]+k|0;h=r}else{h=e}if((p|0)==(t|0)){break e}while(1){F[k|0]=I[d|0];F[k+1|0]=I[d+1|0];F[k+2|0]=I[d+2|0];k=H[g+52>>2]+k|0;F[k|0]=I[d+3|0];F[k+1|0]=I[d+4|0];F[k+2|0]=I[d+5|0];d=d+6|0;k=k+H[g+52>>2]|0;h=h+2|0;if((t|0)!=(h|0)){continue}break}}f=f+1|0;if((v|0)!=(f|0)){continue}break}break d}if((c|0)>=(x|0)){break d}f=c;d=e- -64|0;if((((d|0)>(l|0)?l:d)|0)<=(e|0)){H[a+328>>2]=(n|0)/(j|0);break d}while(1){H[a+328>>2]=(N(f,100)|0)/(j|0);k=(f^-1)+j|0;d=e;f:{while(1){H[197455]=0;r=Ph(a,d,k);h=H[197455];H[197455]=0;if((h|0)==1){break f}H[197455]=0;Tg(g,f,d,r);h=H[197455];H[197455]=0;if((h|0)==1){break f}d=d+1|0;if((t|0)!=(d|0)){continue}break}f=f+1|0;if((v|0)==(f|0)){break d}continue}break}break b}H[197455]=0;d=H[a+928>>2];f=H[197455];H[197455]=0;if((f|0)==1){break b}g:{if(!d|(c|0)>=(x|0)){break g}f=c;d=e- -64|0;if((((d|0)>(l|0)?l:d)|0)<=(e|0)){break g}while(1){k=(f^-1)+j|0;d=e;h:{while(1){H[197455]=0;r=I[H[a+928>>2]+(N(k,H[a+16>>2])+d|0)|0];h=H[197455];H[197455]=0;if((h|0)==1){break h}H[197455]=0;te(g,f,d,r);h=H[197455];H[197455]=0;if((h|0)==1){break h}d=d+1|0;if((t|0)!=(d|0)){continue}break}f=f+1|0;if((v|0)==(f|0)){break g}continue}break}break b}H[197455]=0;d=H[a+924>>2];f=H[197455];H[197455]=0;if((f|0)==1){break b}i:{if(!d){break i}H[g+372>>2]=j-H[a+376>>2];H[g+380>>2]=j-H[a+384>>2];H[g+384>>2]=H[a+372>>2];H[g+376>>2]=H[a+380>>2];if((c|0)>=(x|0)){break i}f=c;d=e- -64|0;if((((d|0)>(l|0)?l:d)|0)<=(e|0)){break i}while(1){k=(f^-1)+j|0;d=e;j:{while(1){H[197455]=0;r=I[H[a+924>>2]+(N(k,H[a+16>>2])+d|0)|0];h=H[197455];H[197455]=0;if((h|0)==1){break j}H[197455]=0;Zk(g,f,d,r);h=H[197455];H[197455]=0;if((h|0)==1){break j}d=d+1|0;if((t|0)!=(d|0)){continue}break}f=f+1|0;if((v|0)==(f|0)){break i}continue}break}break b}m=m+1|0;q=q- -64|0;e=e- -64|0;if((l|0)>(e|0)){continue}break}w=w- -64|0;c=u;if((j|0)>(c|0)){continue}break}break c}H[197455]=0;k=Xc(a,0);c=H[197455];H[197455]=0;k:{if((c|0)!=1){H[197455]=0;m=Xc(g,0);c=H[197455];H[197455]=0;if((c|0)==1){break b}d=H[g+32>>2];f=H[g+16>>2];e=H[g+52>>2];H[197455]=0;al(g,0);c=H[197455];H[197455]=0;if((c|0)==1){break b}if(H[a+20>>2]>0){u=(e<<3)-f|0;n=(d+m|0)-1|0;r=m-1|0;while(1){H[197455]=0;e=q+u|0;c=(e|0)/8|0;H[s+8>>2]=c;H[s+12>>2]=e-(c<<3);c=H[197455];H[197455]=0;if((c|0)==1){break b}c=H[a+52>>2];if((c|0)>0){h=k+N(c,q)|0;f=r-H[s+8>>2]|0;o=1<>2];d=0;while(1){c=H[g+52>>2];e=c+(f+(N(c,d)<<3)|0)|0;l:{if(e>>>0>>0|e>>>0>n>>>0){break l}p=d+h|0;if(F[p|0]<0){F[e|0]=o|I[e|0];c=H[g+52>>2]}i=c+e|0;if(i>>>0>>0|i>>>0>n>>>0){break l}if(I[p|0]&64){F[i|0]=o|I[i|0];c=H[g+52>>2]}i=e+(c<<1)|0;if(i>>>0>>0|i>>>0>n>>>0){break l}if(I[p|0]&32){F[i|0]=o|I[i|0];c=H[g+52>>2]}i=e+N(c,3)|0;if(i>>>0>>0|i>>>0>n>>>0){break l}if(I[p|0]&16){F[i|0]=o|I[i|0];c=H[g+52>>2]}i=e+(c<<2)|0;if(i>>>0>>0|i>>>0>n>>>0){break l}if(I[p|0]&8){F[i|0]=o|I[i|0];c=H[g+52>>2]}i=e+N(c,5)|0;if(i>>>0>>0|i>>>0>n>>>0){break l}if(I[p|0]&4){F[i|0]=o|I[i|0];c=H[g+52>>2]}i=e+N(c,6)|0;if(i>>>0>>0|i>>>0>n>>>0){break l}if(I[p|0]&2){F[i|0]=o|I[i|0];c=H[g+52>>2]}c=N(c,7)+e|0;if(!(F[p|0]&1)|(c>>>0>>0|c>>>0>n>>>0)){break l}F[c|0]=o|I[c|0]}d=d+1|0;if((d|0)>2]){continue}break}}q=q+1|0;if((q|0)>2]){continue}break}}h=0;H[197455]=0;e=H[a+928>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}if(!(!e|(j|0)<=0|(l|0)<=0)){while(1){f=(h^-1)+j|0;d=0;while(1){H[197455]=0;e=I[H[a+928>>2]+(N(f,H[a+16>>2])+d|0)|0];c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;te(g,h,d,e);c=H[197455];H[197455]=0;if((c|0)==1){break b}d=d+1|0;if((l|0)!=(d|0)){continue}break}h=h+1|0;if((j|0)!=(h|0)){continue}break}}H[197455]=0;e=H[a+924>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}if(!e){break c}H[g+372>>2]=j-H[a+376>>2];H[g+380>>2]=j-H[a+384>>2];H[g+384>>2]=H[a+372>>2];H[g+376>>2]=H[a+380>>2];if((j|0)<=0|(l|0)<=0){break c}h=0;while(1){f=(h^-1)+j|0;d=0;while(1){H[197455]=0;e=I[H[a+924>>2]+(N(f,H[a+16>>2])+d|0)|0];c=H[197455];H[197455]=0;if((c|0)==1){break k}H[197455]=0;Zk(g,h,d,e);c=H[197455];H[197455]=0;if((c|0)==1){break k}d=d+1|0;if((l|0)!=(d|0)){continue}break}h=h+1|0;if((j|0)!=(h|0)){continue}break}break c}break b}break b}H[197455]=0;ca(1066,(b?b:a)|0,g|0,1)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}H[g>>2]=245276;H[197455]=0;aa(917,g|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;aa(918,g|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}}xb=s+960|0;return(y|0)!=0|0}b=$()|0;_()|0;H[g>>2]=245276;H[197455]=0;aa(917,g|0)|0;a=H[197455];H[197455]=0;m:{if((a|0)==1){break m}H[197455]=0;aa(918,g|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break m}ea(b|0);X()}}ha(0)|0;_()|0;Zb();X()}function eba(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;h=xb-16|0;xb=h;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{switch(b-254|0){default:switch(b-32995|0){case 1:break k;case 3:break l;case 0:break p;case 2:break i;default:break b};case 0:H[H[c>>2]>>2]=H[a+80>>2];d=1;break a;case 2:H[H[c>>2]>>2]=H[a+56>>2];d=1;break a;case 3:H[H[c>>2]>>2]=H[a+60>>2];d=1;break a;case 4:G[H[c>>2]>>1]=J[a+84>>1];d=1;break a;case 5:G[H[c>>2]>>1]=J[a+88>>1];d=1;break a;case 8:G[H[c>>2]>>1]=J[a+90>>1];d=1;break a;case 9:G[H[c>>2]>>1]=J[a+92>>1];d=1;break a;case 12:G[H[c>>2]>>1]=J[a+94>>1];d=1;break a;case 20:G[H[c>>2]>>1]=J[a+96>>1];d=1;break a;case 23:G[H[c>>2]>>1]=J[a+98>>1];d=1;break a;case 24:H[H[c>>2]>>2]=H[a+100>>2];d=1;break a;case 26:G[H[c>>2]>>1]=J[a+104>>1];d=1;break a;case 27:G[H[c>>2]>>1]=J[a+106>>1];d=1;break a;case 86:M[H[c>>2]>>3]=M[a+112>>3];d=1;break a;case 87:M[H[c>>2]>>3]=M[a+120>>3];d=1;break a;case 28:L[H[c>>2]>>2]=L[a+128>>2];d=1;break a;case 29:L[H[c>>2]>>2]=L[a+132>>2];d=1;break a;case 30:G[H[c>>2]>>1]=J[a+138>>1];d=1;break a;case 32:L[H[c>>2]>>2]=L[a+140>>2];d=1;break a;case 33:L[H[c>>2]>>2]=L[a+144>>2];d=1;break a;case 42:G[H[c>>2]>>1]=J[a+136>>1];d=1;break a;case 43:G[H[c>>2]>>1]=J[a+148>>1];G[H[c+4>>2]>>1]=J[a+150>>1];d=1;break a;case 67:G[H[c>>2]>>1]=J[a+164>>1];G[H[c+4>>2]>>1]=J[a+166>>1];d=1;break a;case 66:H[H[c>>2]>>2]=H[a+152>>2];H[H[c+4>>2]>>2]=H[a+156>>2];H[H[c+8>>2]>>2]=H[a+160>>2];d=1;break a;case 19:case 70:H[H[c>>2]>>2]=H[a+184>>2];d=1;break a;case 85:break j;case 69:break m;case 68:break n;case 84:break o;case 25:case 71:break q;case 1:case 6:case 7:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 21:case 22:case 31:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 72:case 73:case 74:case 75:case 77:case 78:case 80:case 81:case 82:case 83:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 217:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 240:case 241:case 242:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:case 275:break b;case 79:break c;case 278:break d;case 47:break e;case 276:break f;case 277:break g;case 76:break h}}H[H[c>>2]>>2]=H[a+188>>2];d=1;break a}d=1;G[H[c>>2]>>1]=J[H[a+172>>2]>>1]==1&J[a+168>>1]==1;break a}G[H[c>>2]>>1]=J[a+168>>1];H[H[c+4>>2]>>2]=H[a+172>>2];d=1;break a}H[H[c>>2]>>2]=H[a+68>>2];d=1;break a}H[H[c>>2]>>2]=H[a+72>>2];d=1;break a}H[H[c>>2]>>2]=H[a+76>>2];d=1;break a}d=1;r:{switch(J[a+86>>1]-1|0){case 0:G[H[c>>2]>>1]=2;break a;case 1:G[H[c>>2]>>1]=1;break a;case 2:G[H[c>>2]>>1]=3;break a;case 3:break r;default:break a}}G[H[c>>2]>>1]=0;break a}G[H[c>>2]>>1]=J[a+86>>1];d=1;break a}H[H[c>>2]>>2]=H[a- -64>>2];d=1;break a}G[H[c>>2]>>1]=J[a+196>>1];H[H[c+4>>2]>>2]=H[a+200>>2];d=1;break a}G[H[c>>2]>>1]=J[a+208>>1];d=1;break a}G[H[c>>2]>>1]=J[a+204>>1];G[H[c+4>>2]>>1]=J[a+206>>1];d=1;break a}H[H[c>>2]>>2]=H[a+216>>2];d=1;if((J[a+98>>1]-J[a+168>>1]|0)<2){break a}H[H[c+4>>2]>>2]=H[a+220>>2];H[H[c+8>>2]>>2]=H[a+224>>2];break a}H[H[c>>2]>>2]=H[a+212>>2];d=1;break a}H[H[c>>2]>>2]=H[a+232>>2];d=1;break a}s:{g=zj(a,b);t:{if(!g){d=277446;b=b>>>0>65535?273761:274454;break t}if(J[g+12>>1]==65){e=H[a+236>>2];if((e|0)>0){break s}break a}d=H[g+16>>2];b=b>>>0>65535?273761:274454}c=H[a+628>>2];a=H[a>>2];H[h+8>>2]=d;H[h+4>>2]=b;H[h>>2]=a;Pb(c,280358,277214,h);d=0;break a}f=H[a+240>>2];a=0;while(1){i=f+N(a,12)|0;if(H[H[i>>2]>>2]==(b|0)){if(I[g+15|0]){b=H[(f+N(a,12)|0)+4>>2];u:{if(J[g+4>>1]==65533){H[H[c>>2]>>2]=b;break u}G[H[c>>2]>>1]=b}H[H[c+4>>2]>>2]=H[(f+N(a,12)|0)+8>>2];d=1;break a}v:{e=H[g+8>>2];if(!((e|0)==2|J[g+4>>1]>65532)&H[(f+N(a,12)|0)+4>>2]<2){break v}w:{x:{b=H[g>>2];switch(b-321|0){case 0:case 15:break v;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break w;default:break x}}if((b|0)==297|(b|0)==530){break v}}H[H[c>>2]>>2]=H[(f+N(a,12)|0)+8>>2];d=1;break a}f=f+N(a,12)|0;if(H[f+4>>2]<=0){break a}a=H[f+8>>2];b=0;while(1){d=0;y:{z:{A:{switch(e-1|0){case 0:case 6:F[H[c>>2]]=I[a|0];break z;case 5:F[H[c>>2]]=I[a|0];break z;case 2:G[H[c>>2]>>1]=J[a>>1];break z;case 7:G[H[c>>2]>>1]=J[a>>1];break z;case 3:case 12:H[H[c>>2]>>2]=H[a>>2];break z;case 8:H[H[c>>2]>>2]=H[a>>2];break z;case 4:case 9:case 10:L[H[c>>2]>>2]=L[a>>2];break z;case 11:break A;default:break y}}M[H[c>>2]>>3]=M[a>>3]}c=c+4|0;d=1}e=H[H[i>>2]+8>>2]-1|0;if(e>>>0<=12){e=H[(e<<2)+290808>>2]}else{e=0}b=b+1|0;if((b|0)>=H[f+4>>2]){break a}a=a+e|0;e=H[g+8>>2];continue}}a=a+1|0;if((e|0)!=(a|0)){continue}break}}xb=h+16|0;return d|0}function Ct(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;c=H[b+4>>2];a:{if(c>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<4){break a}h=H[b+12>>2];e=h-4|0;H[b+12>>2]=e;if((I[a|0]|I[a+1|0]<<8)!=256|(e|0)<=0){break a}k=c;c=a+4|0;if(k>>>0>c>>>0|c>>>0>d>>>0|d-c>>>0<2){break a}d=h-6|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=I[c|0]|I[c+1|0]<<8;b:{if(!d){break b}if(gh(((d<<8|d>>>8)&65535)+a|0,b)){break b}d=H[b+28>>2];if(d>>>0>31){break a}H[b+28>>2]=d+1;if(!I[b+24|0]){break a}F[c|0]=0;F[c+1|0]=0}h=0;e=xb-16|0;xb=e;j=H[b+4>>2];d=a+6|0;c:{if(j>>>0>d>>>0){break c}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<2){break c}l=H[b+12>>2];c=l-2|0;H[b+12>>2]=c;h=1;if((c|0)<=0){h=0;break c}c=I[d|0]|I[d+1|0]<<8;if(!c){break c}c=((c<<8|c>>>8)&65535)+a|0;d:{if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<2){break d}h=l-4|0;H[b+12>>2]=h;if((h|0)<=0){break d}h=I[c|0]|I[c+1|0]<<8;e:{if(!h){break e}if(Ud(c+((h<<8|h>>>8)&65535)|0,b)){break e}h=H[b+28>>2];if(h>>>0>31){break d}H[b+28>>2]=h+1;if(!I[b+24|0]){break d}F[c|0]=0;F[c+1|0]=0}H[e+12>>2]=c;h=1;if(At(c+2|0,b,e+12|0)){break c}}c=H[b+28>>2];if(c>>>0>31){h=0;break c}H[b+28>>2]=c+1;h=0;if(!I[b+24|0]){break c}F[d|0]=0;F[d+1|0]=0;h=1}xb=e+16|0;if(!h){break a}h=0;o=xb-16|0;xb=o;e=H[b+4>>2];l=a+8|0;f:{if(e>>>0>l>>>0){break f}d=H[b+8>>2];if(d>>>0>>0|d-l>>>0<2){break f}f=H[b+12>>2];c=f-2|0;H[b+12>>2]=c;h=1;if((c|0)<=0){h=0;break f}c=I[l|0]|I[l+1|0]<<8;if(!c){break f}c=((c<<8|c>>>8)&65535)+a|0;g:{if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break g}d=f-4|0;H[b+12>>2]=d;if((d|0)<=0){break g}d=I[c|0]|I[c+1|0]<<8;h:{if(!d){break h}if(Ud(c+((d<<8|d>>>8)&65535)|0,b)){break h}d=H[b+28>>2];if(d>>>0>31){break g}H[b+28>>2]=d+1;if(!I[b+24|0]){break g}F[c|0]=0;F[c+1|0]=0}H[o+12>>2]=c;d=0;p=xb-16|0;xb=p;j=c+2|0;f=H[b+4>>2];i:{if(j>>>0>>0){break i}c=H[b+8>>2];if(c>>>0>>0|c-j>>>0<2){break i}e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break i}g=I[j|0]|I[j+1|0]<<8;if(!g){d=1;break i}i=j+2|0;if(i>>>0>>0|c>>>0>>0){break i}k=c-i|0;c=(g<<8|g>>>8)&65535;g=c<<1;if(k>>>0>>0){break i}e=e-g|0;H[b+12>>2]=e;if((e|0)<=0){break i}e=j+2|0;if(f>>>0>e>>>0){break i}u=c>>>0>1?c:1;while(1){j:{c=H[b+8>>2];if(c>>>0>>0|c-e>>>0<2){break j}d=H[o+12>>2];c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break j}c=I[e|0]|I[e+1|0]<<8;k:{if(!c){break k}f=d+((c<<8|c>>>8)&65535)|0;H[p+12>>2]=f;c=0;i=H[b+4>>2];l:{m:{if(i>>>0>f>>>0){break m}g=H[b+8>>2];if(g>>>0>>0|g-f>>>0<2){break m}n=H[b+12>>2]-2|0;H[b+12>>2]=n;if((n|0)<=0){break m}m=I[f|0]|I[f+1|0]<<8;k=1;if(!m){break l}d=f+2|0;if(d>>>0>>0|d>>>0>g>>>0){break m}k=g-d|0;g=(m<<8|m>>>8)&65535;d=g<<1;if(k>>>0>>0){break m}d=n-d|0;H[b+12>>2]=d;if((d|0)<=0){break m}d=f+2|0;if(i>>>0>d>>>0){break m}v=g>>>0>1?g:1;n=0;while(1){n:{c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break n}g=H[p+12>>2];c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break n}c=I[d|0]|I[d+1|0]<<8;o:{if(!c){break o}p:{q:{r:{s=H[b+4>>2];g=g+((c<<8|c>>>8)&65535)|0;if(s>>>0>g>>>0){break r}m=H[b+8>>2];if(m>>>0>>0){break r}i=m-g|0;if(i>>>0<2){break r}q=H[b+12>>2];k=q-2|0;H[b+12>>2]=k;c=1;if((k|0)<=0){break r}s:{t:{u:{v:{k=I[g|0]|I[g+1|0]<<8;switch(((k<<8|k>>>8)&65535)-1|0){case 2:break t;case 1:break u;case 0:break v;default:break s}}c=0;if(i>>>0<4){break s}break q}c=0;if(i>>>0<4){break s}break q}if(i>>>0<6){break r}c=q-8|0;H[b+12>>2]=c;if((c|0)<=0){break r}i=g+4|0;if(i>>>0>>0|i>>>0>m>>>0|m-i>>>0<2){break r}m=q-10|0;H[b+12>>2]=m;c=1;if((m|0)<=0){break r}m=I[i|0]|I[i+1|0]<<8;if(!m){break s}if(di(g+((m<<8|m>>>8)&65535)|0,b)){break s}c=H[b+28>>2];if(c>>>0>31){break r}H[b+28>>2]=c+1;c=0;if(!I[b+24|0]){break s}F[i|0]=0;F[i+1|0]=0;c=1}break p}c=0;break p}c=q-6|0;H[b+12>>2]=c;c=(c|0)>0}if(c){break o}c=H[b+28>>2];if(c>>>0>31){break n}H[b+28>>2]=c+1;if(!I[b+24|0]){break n}F[d|0]=0;F[d+1|0]=0}c=1;n=n+1|0;if((v|0)==(n|0)){break m}d=(f+(n<<1)|0)+2|0;if(d>>>0>=K[b+4>>2]){continue}}break}c=0}k=c}if(k){break k}c=H[b+28>>2];if(c>>>0>31){break j}H[b+28>>2]=c+1;if(!I[b+24|0]){break j}F[e|0]=0;F[e+1|0]=0}d=1;r=r+1|0;if((u|0)==(r|0)){break i}e=(j+(r<<1)|0)+2|0;if(e>>>0>=K[b+4>>2]){continue}}break}d=0}xb=p+16|0;if(d){break f}}c=H[b+28>>2];if(c>>>0>31){h=0;break f}H[b+28>>2]=c+1;h=0;if(!I[b+24|0]){break f}F[l|0]=0;F[l+1|0]=0;h=1}xb=o+16|0;if(!h){break a}c=a+10|0;if(c>>>0>2]){break a}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break a}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=I[c|0]|I[c+1|0]<<8;w:{if(!d){break w}if(gh(((d<<8|d>>>8)&65535)+a|0,b)){break w}d=H[b+28>>2];if(d>>>0>31){break a}H[b+28>>2]=d+1;if(!I[b+24|0]){break a}F[c|0]=0;F[c+1|0]=0}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if((c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0<65538){return 1}h=0;l=xb-16|0;xb=l;e=H[b+4>>2];j=a+12|0;x:{if(e>>>0>j>>>0){break x}d=H[b+8>>2];if(d>>>0>>0|d-j>>>0<2){break x}f=H[b+12>>2];c=f-2|0;H[b+12>>2]=c;h=1;if((c|0)<=0){h=0;break x}c=I[j|0]|I[j+1|0]<<8;if(!c){break x}c=((c<<8|c>>>8)&65535)+a|0;y:{if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break y}d=f-4|0;H[b+12>>2]=d;if((d|0)<=0){break y}if((I[c|0]|I[c+1|0]<<8)!=256){break x}H[l+12>>2]=c;d=c+2|0;g=H[b+4>>2];z:{A:{if(d>>>0>>0){break A}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break A}f=H[b+12>>2]-2|0;H[b+12>>2]=f;e=1;if((f|0)<=0){break A}i=I[d|0]|I[d+1|0]<<8;if(!i){break z}e=d+2|0;if(e>>>0>>0|c>>>0>>0){break A}k=c-e|0;c=(i<<8|i>>>8)&65535;e=c<<2;if(k>>>0>>0){break A}f=f-e|0;H[b+12>>2]=f;e=0;if((f|0)<=0){break z}f=d+2|0;if(g>>>0>f>>>0){break z}i=c>>>0>1?c:1;c=0;while(1){e=H[b+8>>2];if(e>>>0>>0|e-f>>>0<4){break A}o=H[l+12>>2];e=H[b+12>>2]-4|0;H[b+12>>2]=e;if((e|0)<=0){break A}e=d+(c<<2)|0;g=F[f|0];e=I[e+3|0]<<16|g<<24|I[e+4|0]<<8|I[e+5|0];g=(e|0)!=0&(g|0)<0;B:{if(!(g|!e)){if(Ud(e+o|0,b)){break B}e=H[b+28>>2];if(e>>>0>31){break A}H[b+28>>2]=e+1;if(!I[b+24|0]){break A}F[f|0]=0;F[f+1|0]=0;F[f+2|0]=0;F[f+3|0]=0;break B}if(g){break A}}e=1;c=c+1|0;if((i|0)==(c|0)){break z}f=(d+(c<<2)|0)+2|0;if(f>>>0>=K[b+4>>2]){continue}break}}e=0}if(e){break x}}c=H[b+28>>2];if(c>>>0>31){h=0;break x}H[b+28>>2]=c+1;h=0;if(!I[b+24|0]){break x}F[j|0]=0;F[j+1|0]=0;h=1}xb=l+16|0;if(!h){break a}t=1;c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if((c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0<65539){break a}t=Bt(a+14|0,b,a)}return t}function Dm(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;d=xb-192|0;xb=d;f=Qb(32);H[d+176>>2]=f;H[d+180>>2]=4;H[d+184>>2]=-2147483640;H[197455]=0;Mb(f,432344,4);e=H[197455];H[197455]=0;a:{b:{if((e|0)!=1){H[f+16>>2]=0;H[197455]=0;f=a+44|0;ga(2941,f|0,d+176|0,1);e=H[197455];H[197455]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{if((e|0)!=1){if(F[d+187|0]<0){Kb(H[d+176>>2])}e=Qb(16);H[d+160>>2]=e;H[d+164>>2]=2;H[d+168>>2]=-2147483644;H[197455]=0;Mb(e,432364,2);i=H[197455];H[197455]=0;if((i|0)==1){break a}H[e+8>>2]=0;g=M[b>>3];h=M[a+8>>3];H[197455]=0;fa(1756,d+144|0,+(h*g),-1);e=H[197455];H[197455]=0;if((e|0)==1){break L}H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);e=H[197455];H[197455]=0;if((e|0)==1){break K}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}e=Qb(16);H[d+160>>2]=e;H[d+164>>2]=2;H[d+168>>2]=-2147483644;H[197455]=0;Mb(e,432376,2);i=H[197455];H[197455]=0;if((i|0)==1){break a}H[e+8>>2]=0;g=M[b+8>>3];h=M[a+8>>3];H[197455]=0;fa(1756,d+144|0,+(h*g),-1);b=H[197455];H[197455]=0;if((b|0)==1){break I}H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);b=H[197455];H[197455]=0;if((b|0)==1){break H}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}b=Qb(16);H[d+160>>2]=b;H[d+164>>2]=2;H[d+168>>2]=-2147483644;H[197455]=0;Mb(b,432388,2);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[b+8>>2]=0;g=M[c>>3];h=M[a+8>>3];H[197455]=0;fa(1756,d+144|0,+(h*g),-1);b=H[197455];H[197455]=0;if((b|0)==1){break F}H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);b=H[197455];H[197455]=0;if((b|0)==1){break E}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}b=Qb(16);H[d+160>>2]=b;H[d+164>>2]=2;H[d+168>>2]=-2147483644;H[197455]=0;Mb(b,432400,2);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[b+8>>2]=0;g=M[c+8>>3];h=M[a+8>>3];H[197455]=0;fa(1756,d+144|0,+(h*g),-1);b=H[197455];H[197455]=0;if((b|0)==1){break C}H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);b=H[197455];H[197455]=0;if((b|0)==1){break B}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}b=Qb(32);H[d+160>>2]=b;H[d+164>>2]=6;H[d+168>>2]=-2147483640;H[197455]=0;Mb(b,428648,6);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+24>>2]=0;b=I[a+16|0];H[197455]=0;ba(1778,d+48|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break z}H[197455]=0;b=ca(1758,d+48|0,0,428508)|0;c=H[197455];H[197455]=0;if((c|0)==1){break y}H[d+72>>2]=H[b+8>>2];c=H[b+4>>2];H[d+64>>2]=H[b>>2];H[d+68>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,d- -64|0,428528)|0;c=H[197455];H[197455]=0;if((c|0)==1){break x}H[d+88>>2]=H[b+8>>2];c=H[b+4>>2];H[d+80>>2]=H[b>>2];H[d+84>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;b=I[a+17|0];H[197455]=0;ba(1778,d+32|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break w}H[197455]=0;b=I[d+43|0];c=b<<24>>24<0;b=ca(1759,d+80|0,(c?H[d+32>>2]:d+32|0)|0,(c?H[d+36>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break v}H[d+104>>2]=H[b+8>>2];c=H[b+4>>2];H[d+96>>2]=H[b>>2];H[d+100>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,d+96|0,428528)|0;c=H[197455];H[197455]=0;if((c|0)==1){break u}H[d+120>>2]=H[b+8>>2];c=H[b+4>>2];H[d+112>>2]=H[b>>2];H[d+116>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;b=I[a+18|0];H[197455]=0;ba(1778,d+16|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break t}H[197455]=0;b=I[d+27|0];c=b<<24>>24<0;b=ca(1759,d+112|0,(c?H[d+16>>2]:d+16|0)|0,(c?H[d+20>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break s}H[d+136>>2]=H[b+8>>2];c=H[b+4>>2];H[d+128>>2]=H[b>>2];H[d+132>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,d+128|0,41);b=H[197455];H[197455]=0;if((b|0)==1){break r}H[d+152>>2]=H[d+136>>2];H[d+136>>2]=0;b=H[d+132>>2];H[d+144>>2]=H[d+128>>2];H[d+148>>2]=b;H[d+128>>2]=0;H[d+132>>2]=0;H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);b=H[197455];H[197455]=0;if((b|0)==1){break q}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+123|0]<0){Kb(H[d+112>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+43|0]<0){Kb(H[d+32>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}b=Qb(64);H[d+160>>2]=b;H[d+164>>2]=12;H[d+168>>2]=-2147483632;H[197455]=0;Mb(b,430152,12);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+48>>2]=0;g=M[a+8>>3];H[197455]=0;fa(1756,d+144|0,+g,-1);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;ga(2942,f|0,d+160|0,d+144|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+171|0]<0){Kb(H[d+160>>2])}a=Qb(32);H[d>>2]=a;H[d+4>>2]=4;H[d+8>>2]=-2147483640;H[197455]=0;Mb(a,432344,4);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+16>>2]=0;H[197455]=0;ka(2944,f|0,d|0,1,1);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+11|0]<0){Kb(H[d>>2])}xb=d+192|0;return}a=$()|0;_()|0;if(F[d+187|0]>=0){break c}Kb(H[d+176>>2]);ea(a|0);X()}a=$()|0;_()|0;break J}a=$()|0;_()|0;if(F[d+155|0]>=0){break J}Kb(H[d+144>>2])}if(F[d+171|0]>=0){break c}break b}a=$()|0;_()|0;break G}a=$()|0;_()|0;if(F[d+155|0]>=0){break G}Kb(H[d+144>>2])}if(F[d+171|0]>=0){break c}break b}a=$()|0;_()|0;break D}a=$()|0;_()|0;if(F[d+155|0]>=0){break D}Kb(H[d+144>>2])}if(F[d+171|0]>=0){break c}break b}a=$()|0;_()|0;break A}a=$()|0;_()|0;if(F[d+155|0]>=0){break A}Kb(H[d+144>>2])}if(F[d+171|0]>=0){break c}break b}a=$()|0;_()|0;break h}a=$()|0;_()|0;break i}a=$()|0;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;break n}a=$()|0;_()|0;break o}a=$()|0;_()|0;break p}a=$()|0;_()|0;if(F[d+155|0]>=0){break p}Kb(H[d+144>>2])}if(F[d+139|0]>=0){break o}Kb(H[d+128>>2])}if(F[d+27|0]>=0){break n}Kb(H[d+16>>2])}if(F[d+123|0]>=0){break m}Kb(H[d+112>>2])}if(F[d+107|0]>=0){break l}Kb(H[d+96>>2])}if(F[d+43|0]>=0){break k}Kb(H[d+32>>2])}if(F[d+91|0]>=0){break j}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break i}Kb(H[d+64>>2])}if(F[d+59|0]>=0){break h}Kb(H[d+48>>2])}if(F[d+171|0]>=0){break c}break b}a=$()|0;_()|0;break e}a=$()|0;_()|0;if(F[d+155|0]>=0){break e}Kb(H[d+144>>2])}if(F[d+171|0]>=0){break c}break b}a=$()|0;_()|0;if(F[d+11|0]>=0){break c}Kb(H[d>>2])}ea(a|0);X()}break a}Kb(H[d+160>>2]);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function JX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-192|0;xb=c;e=Qb(32);H[c+176>>2]=e;H[c+180>>2]=4;H[c+184>>2]=-2147483640;H[197455]=0;Mb(e,432344,4);d=H[197455];H[197455]=0;a:{b:{if((d|0)!=1){H[e+16>>2]=0;H[197455]=0;e=a+44|0;ga(2941,e|0,c+176|0,1);d=H[197455];H[197455]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{if((d|0)!=1){if(F[c+187|0]<0){Kb(H[c+176>>2])}d=Qb(16);H[c+160>>2]=d;H[c+164>>2]=2;H[c+168>>2]=-2147483644;H[197455]=0;Mb(d,432364,2);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[d+8>>2]=0;f=M[b>>3];h=M[a+8>>3];H[197455]=0;fa(1756,c+144|0,+(h*f),-1);d=H[197455];H[197455]=0;if((d|0)==1){break L}H[197455]=0;ga(2942,e|0,c+160|0,c+144|0);d=H[197455];H[197455]=0;if((d|0)==1){break K}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}d=Qb(16);H[c+160>>2]=d;H[c+164>>2]=2;H[c+168>>2]=-2147483644;H[197455]=0;Mb(d,432376,2);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[d+8>>2]=0;f=M[b+8>>3];h=M[a+8>>3];H[197455]=0;fa(1756,c+144|0,+(h*f),-1);d=H[197455];H[197455]=0;if((d|0)==1){break I}H[197455]=0;ga(2942,e|0,c+160|0,c+144|0);d=H[197455];H[197455]=0;if((d|0)==1){break H}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}d=Qb(16);H[c+160>>2]=d;H[c+164>>2]=2;H[c+168>>2]=-2147483644;H[197455]=0;Mb(d,432388,2);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[d+8>>2]=0;f=M[a+8>>3];h=M[b>>3];H[197455]=0;fa(1756,c+144|0,+(f*(h+1)),-1);d=H[197455];H[197455]=0;if((d|0)==1){break F}H[197455]=0;ga(2942,e|0,c+160|0,c+144|0);d=H[197455];H[197455]=0;if((d|0)==1){break E}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}d=Qb(16);H[c+160>>2]=d;H[c+164>>2]=2;H[c+168>>2]=-2147483644;H[197455]=0;Mb(d,432400,2);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[d+8>>2]=0;f=M[b+8>>3];h=M[a+8>>3];H[197455]=0;fa(1756,c+144|0,+(h*f),-1);b=H[197455];H[197455]=0;if((b|0)==1){break C}H[197455]=0;ga(2942,e|0,c+160|0,c+144|0);b=H[197455];H[197455]=0;if((b|0)==1){break B}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}b=Qb(32);H[c+160>>2]=b;H[c+164>>2]=6;H[c+168>>2]=-2147483640;H[197455]=0;Mb(b,428648,6);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+24>>2]=0;b=I[a+16|0];H[197455]=0;ba(1778,c+48|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break z}H[197455]=0;b=ca(1758,c+48|0,0,428508)|0;d=H[197455];H[197455]=0;if((d|0)==1){break y}H[c+72>>2]=H[b+8>>2];d=H[b+4>>2];H[c+64>>2]=H[b>>2];H[c+68>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,c- -64|0,428528)|0;d=H[197455];H[197455]=0;if((d|0)==1){break x}H[c+88>>2]=H[b+8>>2];d=H[b+4>>2];H[c+80>>2]=H[b>>2];H[c+84>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;b=I[a+17|0];H[197455]=0;ba(1778,c+32|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break w}H[197455]=0;b=I[c+43|0];d=b<<24>>24<0;b=ca(1759,c+80|0,(d?H[c+32>>2]:c+32|0)|0,(d?H[c+36>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break v}H[c+104>>2]=H[b+8>>2];d=H[b+4>>2];H[c+96>>2]=H[b>>2];H[c+100>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,c+96|0,428528)|0;d=H[197455];H[197455]=0;if((d|0)==1){break u}H[c+120>>2]=H[b+8>>2];d=H[b+4>>2];H[c+112>>2]=H[b>>2];H[c+116>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;b=I[a+18|0];H[197455]=0;ba(1778,c+16|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break t}H[197455]=0;b=I[c+27|0];d=b<<24>>24<0;b=ca(1759,c+112|0,(d?H[c+16>>2]:c+16|0)|0,(d?H[c+20>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break s}H[c+136>>2]=H[b+8>>2];d=H[b+4>>2];H[c+128>>2]=H[b>>2];H[c+132>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+128|0,41);b=H[197455];H[197455]=0;if((b|0)==1){break r}H[c+152>>2]=H[c+136>>2];H[c+136>>2]=0;b=H[c+132>>2];H[c+144>>2]=H[c+128>>2];H[c+148>>2]=b;H[c+128>>2]=0;H[c+132>>2]=0;H[197455]=0;ga(2942,e|0,c+160|0,c+144|0);b=H[197455];H[197455]=0;if((b|0)==1){break q}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+139|0]<0){Kb(H[c+128>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}b=Qb(64);H[c+160>>2]=b;H[c+164>>2]=12;H[c+168>>2]=-2147483632;H[197455]=0;Mb(b,430152,12);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+48>>2]=0;f=M[a+8>>3];H[197455]=0;fa(1756,c+144|0,+f,-1);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;ga(2942,e|0,c+160|0,c+144|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+171|0]<0){Kb(H[c+160>>2])}a=Qb(32);H[c>>2]=a;H[c+4>>2]=4;H[c+8>>2]=-2147483640;H[197455]=0;Mb(a,432344,4);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+16>>2]=0;H[197455]=0;ka(2944,e|0,c|0,1,1);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+11|0]<0){Kb(H[c>>2])}xb=c+192|0;return}a=$()|0;_()|0;if(F[c+187|0]>=0){break c}Kb(H[c+176>>2]);ea(a|0);X()}a=$()|0;_()|0;break J}a=$()|0;_()|0;if(F[c+155|0]>=0){break J}Kb(H[c+144>>2])}if(F[c+171|0]>=0){break c}break b}a=$()|0;_()|0;break G}a=$()|0;_()|0;if(F[c+155|0]>=0){break G}Kb(H[c+144>>2])}if(F[c+171|0]>=0){break c}break b}a=$()|0;_()|0;break D}a=$()|0;_()|0;if(F[c+155|0]>=0){break D}Kb(H[c+144>>2])}if(F[c+171|0]>=0){break c}break b}a=$()|0;_()|0;break A}a=$()|0;_()|0;if(F[c+155|0]>=0){break A}Kb(H[c+144>>2])}if(F[c+171|0]>=0){break c}break b}a=$()|0;_()|0;break h}a=$()|0;_()|0;break i}a=$()|0;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;break n}a=$()|0;_()|0;break o}a=$()|0;_()|0;break p}a=$()|0;_()|0;if(F[c+155|0]>=0){break p}Kb(H[c+144>>2])}if(F[c+139|0]>=0){break o}Kb(H[c+128>>2])}if(F[c+27|0]>=0){break n}Kb(H[c+16>>2])}if(F[c+123|0]>=0){break m}Kb(H[c+112>>2])}if(F[c+107|0]>=0){break l}Kb(H[c+96>>2])}if(F[c+43|0]>=0){break k}Kb(H[c+32>>2])}if(F[c+91|0]>=0){break j}Kb(H[c+80>>2])}if(F[c+75|0]>=0){break i}Kb(H[c+64>>2])}if(F[c+59|0]>=0){break h}Kb(H[c+48>>2])}if(F[c+171|0]>=0){break c}break b}a=$()|0;_()|0;break e}a=$()|0;_()|0;if(F[c+155|0]>=0){break e}Kb(H[c+144>>2])}if(F[c+171|0]>=0){break c}break b}a=$()|0;_()|0;if(F[c+11|0]>=0){break c}Kb(H[c>>2])}ea(a|0);X()}break a}Kb(H[c+160>>2]);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function qda(a){a=a|0;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;d=H[a+76>>2];b=H[a+20>>2];if((b|0)!=100){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}b=H[a+424>>2];a:{b:{if((d|0)==3){c=10;if(H[a+80>>2]==3){break a}break b}if((d|0)<5){break b}c=N(d,6);break a}c=d<<2|2}if(!((c|0)<=H[a+428>>2]?b:0)){b=(c|0)>10?c:10;H[a+428>>2]=b;b=zb[H[H[a+4>>2]>>2]](a,0,N(b,36))|0;H[a+424>>2]=b}H[a+200>>2]=c;H[a+204>>2]=b;e=3;c:{if((d|0)!=3){d:{e:{f:{if((d|0)>=5){f=d&3;c=0;if(d-1>>>0>=3){break f}a=0;break e}H[b>>2]=d;g:{if((d|0)<=0){break g}H[b+4>>2]=0;if((d|0)==1){break g}H[b+8>>2]=1;if((d|0)==2){break g}H[b+12>>2]=2;if((d|0)==3){break g}H[b+16>>2]=3}H[b+28>>2]=0;H[b+32>>2]=1;H[b+20>>2]=0;H[b+24>>2]=0;b=b+36|0;break d}h=d&-4;a=0;e=0;while(1){H[b+108>>2]=1;H[b+72>>2]=1;H[b+36>>2]=1;H[b+28>>2]=0;H[b+32>>2]=1;H[b+20>>2]=0;H[b+24>>2]=0;H[b+4>>2]=a;H[b>>2]=1;H[b+136>>2]=0;H[b+140>>2]=1;H[b+128>>2]=0;H[b+132>>2]=0;H[b+112>>2]=a|3;H[b+100>>2]=0;H[b+104>>2]=1;H[b+92>>2]=0;H[b+96>>2]=0;H[b+76>>2]=a|2;g=b- -64|0;H[g>>2]=0;H[g+4>>2]=1;H[b+56>>2]=0;H[b+60>>2]=0;H[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((h|0)!=(e|0)){continue}break}}if(!f){break d}while(1){H[b+28>>2]=0;H[b+32>>2]=1;H[b+20>>2]=0;H[b+24>>2]=0;H[b+4>>2]=a;H[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}h:{i:{j:{k:{l:{if((d|0)>0){f=d&3;c=0;h=d-1|0;m:{if(h>>>0<3){a=0;break m}g=d&-4;a=0;e=0;while(1){H[b+108>>2]=1;H[b+72>>2]=1;H[b+36>>2]=1;H[b+28>>2]=0;H[b+32>>2]=2;H[b+20>>2]=1;H[b+24>>2]=5;H[b+4>>2]=a;H[b>>2]=1;H[b+136>>2]=0;H[b+140>>2]=2;H[b+128>>2]=1;H[b+132>>2]=5;H[b+112>>2]=a|3;H[b+100>>2]=0;H[b+104>>2]=2;H[b+92>>2]=1;H[b+96>>2]=5;H[b+76>>2]=a|2;i=b- -64|0;H[i>>2]=0;H[i+4>>2]=2;H[b+56>>2]=1;H[b+60>>2]=5;H[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((g|0)!=(e|0)){continue}break}}if(f){while(1){H[b+28>>2]=0;H[b+32>>2]=2;H[b+20>>2]=1;H[b+24>>2]=5;H[b+4>>2]=a;H[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}f=d&3;c=0;n:{if(h>>>0<3){a=0;break n}g=d&-4;a=0;e=0;while(1){H[b+108>>2]=1;H[b+72>>2]=1;H[b+36>>2]=1;H[b+28>>2]=0;H[b+32>>2]=2;H[b+20>>2]=6;H[b+24>>2]=63;H[b+4>>2]=a;H[b>>2]=1;H[b+136>>2]=0;H[b+140>>2]=2;H[b+128>>2]=6;H[b+132>>2]=63;H[b+112>>2]=a|3;H[b+100>>2]=0;H[b+104>>2]=2;H[b+92>>2]=6;H[b+96>>2]=63;H[b+76>>2]=a|2;i=b- -64|0;H[i>>2]=0;H[i+4>>2]=2;H[b+56>>2]=6;H[b+60>>2]=63;H[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((g|0)!=(e|0)){continue}break}}if(f){while(1){H[b+28>>2]=0;H[b+32>>2]=2;H[b+20>>2]=6;H[b+24>>2]=63;H[b+4>>2]=a;H[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}g=d&3;e=0;o:{if(h>>>0<3){c=0;break o}i=d&-4;c=0;f=0;while(1){a=b;H[b+108>>2]=1;H[b+72>>2]=1;H[b+36>>2]=1;H[b+28>>2]=2;H[b+32>>2]=1;H[b+20>>2]=1;H[b+24>>2]=63;H[b+4>>2]=c;H[b>>2]=1;H[b+136>>2]=2;H[b+140>>2]=1;H[b+128>>2]=1;H[b+132>>2]=63;H[b+112>>2]=c|3;H[b+100>>2]=2;H[b+104>>2]=1;H[b+92>>2]=1;H[b+96>>2]=63;H[b+76>>2]=c|2;j=b- -64|0;H[j>>2]=2;H[j+4>>2]=1;H[b+56>>2]=1;H[b+60>>2]=63;H[b+40>>2]=c|1;c=c+4|0;b=b+144|0;f=f+4|0;if((i|0)!=(f|0)){continue}break}a=a+108|0}if(g){while(1){a=b;H[b+28>>2]=2;H[b+32>>2]=1;H[b+20>>2]=1;H[b+24>>2]=63;H[b+4>>2]=c;H[b>>2]=1;c=c+1|0;b=b+36|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}}if((d|0)<5){break l}f=d&3;c=0;if(h>>>0>=3){break j}a=0;break i}H[b>>2]=d;break k}H[b>>2]=d;if((d|0)<=0){break k}H[a+40>>2]=0;if((d|0)==1){break k}H[a+44>>2]=1;if((d|0)==2){break k}H[a+48>>2]=2;if((d|0)==3){break k}H[a+52>>2]=3}H[b+28>>2]=1;H[b+32>>2]=0;H[b+20>>2]=0;H[b+24>>2]=0;b=b+36|0;break h}h=d&-4;a=0;e=0;while(1){H[b+108>>2]=1;H[b+72>>2]=1;H[b+36>>2]=1;H[b+28>>2]=1;H[b+32>>2]=0;H[b+20>>2]=0;H[b+24>>2]=0;H[b+4>>2]=a;H[b>>2]=1;H[b+136>>2]=1;H[b+140>>2]=0;H[b+128>>2]=0;H[b+132>>2]=0;H[b+112>>2]=a|3;H[b+100>>2]=1;H[b+104>>2]=0;H[b+92>>2]=0;H[b+96>>2]=0;H[b+76>>2]=a|2;g=b- -64|0;H[g>>2]=1;H[g+4>>2]=0;H[b+56>>2]=0;H[b+60>>2]=0;H[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((h|0)!=(e|0)){continue}break}}if(!f){break h}while(1){H[b+28>>2]=1;H[b+32>>2]=0;H[b+20>>2]=0;H[b+24>>2]=0;H[b+4>>2]=a;H[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}if((d|0)<=0){break c}f=d&3;c=0;p:{if(d-1>>>0<3){a=0;break p}d=d&-4;a=0;e=0;while(1){H[b+108>>2]=1;H[b+72>>2]=1;H[b+36>>2]=1;H[b+28>>2]=1;H[b+32>>2]=0;H[b+20>>2]=1;H[b+24>>2]=63;H[b+4>>2]=a;H[b>>2]=1;H[b+136>>2]=1;H[b+140>>2]=0;H[b+128>>2]=1;H[b+132>>2]=63;H[b+112>>2]=a|3;H[b+100>>2]=1;H[b+104>>2]=0;H[b+92>>2]=1;H[b+96>>2]=63;H[b+76>>2]=a|2;h=b- -64|0;H[h>>2]=1;H[h+4>>2]=0;H[b+56>>2]=1;H[b+60>>2]=63;H[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((d|0)!=(e|0)){continue}break}}if(!f){break c}while(1){H[b+28>>2]=1;H[b+32>>2]=0;H[b+20>>2]=1;H[b+24>>2]=63;H[b+4>>2]=a;H[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}break c}a=H[a+80>>2];H[b+8>>2]=1;H[b+12>>2]=2;H[b>>2]=3;H[b+4>>2]=0;H[b+72>>2]=1;c=b- -64|0;H[c>>2]=0;H[c+4>>2]=2;H[b+56>>2]=1;H[b+60>>2]=5;H[b+36>>2]=1;H[b+40>>2]=0;H[b+28>>2]=0;H[b+32>>2]=1;H[b+20>>2]=0;H[b+24>>2]=0;q:{if((a|0)==3){d=9;f=7;h=5;g=6;i=4;c=0;j=1;k=1;p=1;l=2;m=6;q=2;n=8;o=b+76|0;a=2;break q}r=1;H[b+216>>2]=1;H[b+180>>2]=1;H[b+184>>2]=1;H[b+144>>2]=1;H[b+148>>2]=0;H[b+108>>2]=1;H[b+112>>2]=2;H[b+76>>2]=1;H[b+208>>2]=0;H[b+212>>2]=2;H[b+200>>2]=6;H[b+204>>2]=63;H[b+172>>2]=0;H[b+176>>2]=2;H[b+164>>2]=6;H[b+168>>2]=63;H[b+136>>2]=0;H[b+140>>2]=2;H[b+128>>2]=1;H[b+132>>2]=5;H[b+100>>2]=0;H[b+104>>2]=2;H[b+92>>2]=1;H[b+96>>2]=5;d=13;n=12;f=11;m=10;h=9;i=8;e=7;k=2;j=6;c=2;g=1;l=1;o=b+220|0;a=6}H[o>>2]=2;a=N(a,36)+b|0;H[a+32>>2]=k;H[a+24>>2]=63;H[a+28>>2]=0;H[a+20>>2]=j;a=N(e,36)+b|0;H[a+32>>2]=1;H[a+28>>2]=c;H[a+20>>2]=1;H[a+24>>2]=63;H[a+4>>2]=p;H[a>>2]=1;a=N(i,36)+b|0;H[a+4>>2]=r;H[a+20>>2]=g;H[a+24>>2]=63;H[a+28>>2]=c;H[a+32>>2]=l;H[a>>2]=1;a=N(h,36)+b|0;H[a+28>>2]=2;H[a+32>>2]=1;H[a+20>>2]=1;H[a+24>>2]=63;H[a+4>>2]=c;H[a>>2]=1;a=N(m,36)+b|0;H[a>>2]=3;H[a+4>>2]=0;H[a+8>>2]=1;H[a+12>>2]=2;H[a+20>>2]=0;H[a+24>>2]=0;H[a+28>>2]=1;H[a+32>>2]=0;a=N(f,36)+b|0;H[a+4>>2]=q;H[a+20>>2]=1;H[a+24>>2]=63;H[a+28>>2]=1;H[a+32>>2]=0;H[a>>2]=1;a=N(n,36)+b|0;H[a+20>>2]=1;H[a+24>>2]=63;H[a+28>>2]=1;H[a+32>>2]=0;H[a>>2]=1;H[a+4>>2]=1;a=N(d,36)+b|0;H[a+4>>2]=c;H[a+20>>2]=1;H[a+24>>2]=63;H[a+28>>2]=1;H[a+32>>2]=0;H[a>>2]=1}}function Zfa(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,y=0,z=0;q=xb-960|0;xb=q;a:{b:{x=H[a+4>>2];if(x){n=H[a+20>>2];i=H[a+16>>2];g=Bd(q+16|0,0);H[197455]=0;ba(1059,g|0,a|0);c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;j=J[a+26>>1];c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;d=H[a+68>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;pa(978,g|0,n|0,i|0,j|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;j=H[a+4>>2];d=H[a+44>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;ga(921,g|0,(j?d?j+40|0:0:0)|0,256);c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;d=H[a+928>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}if(d){H[197455]=0;aa(1020,g|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}}H[197455]=0;d=H[a+924>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}if(d){H[197455]=0;aa(1072,g|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}}c:{if(J[a+26>>1]!=1){if((n|0)<=0|(i|0)<=0){break c}t=64;c=0;while(1){p=c- -64|0;y=(n|0)<(p|0)?n:p;v=(y|0)<=(c|0);w=c|1;l=z<<6|1;r=(n|0)<(t|0)?n:t;o=r&1;u=64;j=0;while(1){h=j- -64|0;e=(i|0)<(h|0)?i:h;s=(i|0)<(u|0)?i:u;d:{if(J[a+26>>1]==24){d=j;if((e|0)<=(d|0)){break d}while(1){H[a+328>>2]=(N(d,100)|0)/(i|0);H[197455]=0;k=d;e=H[g+44>>2]?0:(H[g+56>>2]+N(d,H[g+52>>2])|0)+N(c,3)|0;d=H[197455];H[197455]=0;if((d|0)==1){break b}H[197455]=0;d=(k^-1)+i|0;f=H[a+44>>2]?0:(H[a+56>>2]+N(H[a+52>>2],c)|0)+N(d,3)|0;d=H[197455];H[197455]=0;if((d|0)==1){break b}e:{if(v){break e}if(o){F[e|0]=I[f|0];F[e+1|0]=I[f+1|0];F[e+2|0]=I[f+2|0];e=e+3|0;f=H[a+52>>2]+f|0;d=w}else{d=c}if((l|0)==(r|0)){break e}while(1){F[e|0]=I[f|0];F[e+1|0]=I[f+1|0];F[e+2|0]=I[f+2|0];f=H[a+52>>2]+f|0;F[e+3|0]=I[f|0];F[e+4|0]=I[f+1|0];F[e+5|0]=I[f+2|0];e=e+6|0;f=f+H[a+52>>2]|0;d=d+2|0;if((r|0)!=(d|0)){continue}break}}d=k+1|0;if((s|0)!=(d|0)){continue}break}break d}if((e|0)<=(j|0)){break d}d=j;if((c|0)>=(y|0)){H[a+328>>2]=(N(s,100)-100|0)/(i|0);break d}while(1){H[a+328>>2]=(N(d,100)|0)/(i|0);m=(d^-1)+i|0;e=c;f:{while(1){H[197455]=0;k=Ph(a,m,e);f=H[197455];H[197455]=0;if((f|0)==1){break f}H[197455]=0;Tg(g,e,d,k);f=H[197455];H[197455]=0;if((f|0)==1){break f}e=e+1|0;if((r|0)!=(e|0)){continue}break}d=d+1|0;if((s|0)==(d|0)){break d}continue}break}break b}H[197455]=0;e=H[a+928>>2]!=0;d=H[197455];H[197455]=0;if((d|0)==1){break b}g:{if(!e){break g}d=j;e=d- -64|0;if(v|(((e|0)>(i|0)?i:e)|0)<=(d|0)){break g}while(1){m=(d^-1)+i|0;e=c;h:{while(1){H[197455]=0;k=I[H[a+928>>2]+(m+N(H[a+16>>2],e)|0)|0];f=H[197455];H[197455]=0;if((f|0)==1){break h}H[197455]=0;te(g,e,d,k);f=H[197455];H[197455]=0;if((f|0)==1){break h}e=e+1|0;if((r|0)!=(e|0)){continue}break}d=d+1|0;if((s|0)==(d|0)){break g}continue}break}break b}H[197455]=0;e=H[a+924>>2];d=H[197455];H[197455]=0;if((d|0)==1){break b}d=h;if(e){H[g+372>>2]=H[a+384>>2];H[g+380>>2]=H[a+376>>2];H[g+384>>2]=i-H[a+380>>2];H[g+376>>2]=i-H[a+372>>2];i:{d=j- -64|0;if(v|(((d|0)>(i|0)?i:d)|0)<=(j|0)){break i}while(1){k=(j^-1)+i|0;e=c;j:{while(1){H[197455]=0;h=I[H[a+924>>2]+(k+N(H[a+16>>2],e)|0)|0];f=H[197455];H[197455]=0;if((f|0)==1){break j}H[197455]=0;Zk(g,e,j,h);f=H[197455];H[197455]=0;if((f|0)==1){break j}e=e+1|0;if((r|0)!=(e|0)){continue}break}j=j+1|0;if((s|0)==(j|0)){break i}continue}break}break b}}u=u- -64|0;j=d;if((i|0)>(d|0)){continue}break}z=z+1|0;t=t- -64|0;c=p;if((n|0)>(c|0)){continue}break}break c}H[197455]=0;w=Xc(a,0);c=H[197455];H[197455]=0;k:{if((c|0)!=1){H[197455]=0;l=Xc(g,0);c=H[197455];H[197455]=0;if((c|0)==1){break b}d=H[g+32>>2];H[197455]=0;al(g,0);c=H[197455];H[197455]=0;if((c|0)==1){break b}if(H[a+20>>2]>0){o=(d+l|0)-1|0;while(1){H[197455]=0;c=(p|0)/8|0;H[q+8>>2]=c;H[q+12>>2]=p-(c<<3);c=H[197455];H[197455]=0;if((c|0)==1){break b}c=H[a+52>>2];if((c|0)>0){j=w+N(c,p)|0;d=l+H[q+8>>2]|0;m=128>>>H[q+12>>2]|0;e=0;while(1){f=H[g+52>>2];c=d+N(f,H[g+20>>2]+(e<<3^-1)|0)|0;l:{if(c>>>0>>0|c>>>0>o>>>0){break l}k=e+j|0;if(F[k|0]<0){F[c|0]=m|I[c|0];f=H[g+52>>2]}h=c-f|0;if(h>>>0>>0|h>>>0>o>>>0){break l}if(I[k|0]&64){F[h|0]=m|I[h|0];f=H[g+52>>2]}h=c-(f<<1)|0;if(h>>>0>>0|h>>>0>o>>>0){break l}if(I[k|0]&32){F[h|0]=m|I[h|0];f=H[g+52>>2]}h=c+N(f,-3)|0;if(h>>>0>>0|h>>>0>o>>>0){break l}if(I[k|0]&16){F[h|0]=m|I[h|0];f=H[g+52>>2]}h=c-(f<<2)|0;if(h>>>0>>0|h>>>0>o>>>0){break l}if(I[k|0]&8){F[h|0]=m|I[h|0];f=H[g+52>>2]}h=c+N(f,-5)|0;if(h>>>0>>0|h>>>0>o>>>0){break l}if(I[k|0]&4){F[h|0]=m|I[h|0];f=H[g+52>>2]}h=c+N(f,-6)|0;if(h>>>0>>0|h>>>0>o>>>0){break l}if(I[k|0]&2){F[h|0]=m|I[h|0];f=H[g+52>>2]}c=N(f,-7)+c|0;if(!(F[k|0]&1)|(c>>>0>>0|c>>>0>o>>>0)){break l}F[c|0]=m|I[c|0]}e=e+1|0;if((e|0)>2]){continue}break}}p=p+1|0;if((p|0)>2]){continue}break}}d=0;H[197455]=0;j=H[a+928>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}if(!(!j|(i|0)<=0|(n|0)<=0)){while(1){f=(d^-1)+i|0;e=0;while(1){H[197455]=0;j=I[H[a+928>>2]+(f+N(H[a+16>>2],e)|0)|0];c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;te(g,e,d,j);c=H[197455];H[197455]=0;if((c|0)==1){break b}e=e+1|0;if((n|0)!=(e|0)){continue}break}d=d+1|0;if((i|0)!=(d|0)){continue}break}}H[197455]=0;d=H[a+924>>2];c=H[197455];H[197455]=0;if((c|0)==1){break b}if(!d){break c}H[g+372>>2]=H[a+384>>2];H[g+380>>2]=H[a+376>>2];H[g+384>>2]=i-H[a+380>>2];H[g+376>>2]=i-H[a+372>>2];if((i|0)<=0|(n|0)<=0){break c}d=0;while(1){f=(d^-1)+i|0;e=0;while(1){H[197455]=0;j=I[H[a+924>>2]+(f+N(H[a+16>>2],e)|0)|0];c=H[197455];H[197455]=0;if((c|0)==1){break k}H[197455]=0;Zk(g,e,d,j);c=H[197455];H[197455]=0;if((c|0)==1){break k}e=e+1|0;if((n|0)!=(e|0)){continue}break}d=d+1|0;if((i|0)!=(d|0)){continue}break}break c}break b}break b}H[197455]=0;ca(1066,(b?b:a)|0,g|0,1)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}H[g>>2]=245276;H[197455]=0;aa(917,g|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;aa(918,g|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}}xb=q+960|0;return(x|0)!=0|0}b=$()|0;_()|0;H[g>>2]=245276;H[197455]=0;aa(917,g|0)|0;a=H[197455];H[197455]=0;m:{if((a|0)==1){break m}H[197455]=0;aa(918,g|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break m}ea(b|0);X()}}ha(0)|0;_()|0;Zb();X()}function Si(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,y=0,z=0,A=0,B=0;f=xb+-64|0;xb=f;r=H[a+100>>2];g=H[a+104>>2];H[f+56>>2]=0;e=H[a+736>>2];a:{b:{if(!e){c=zb[H[a+516>>2]](a,1735811442,g,f+60|0)|0;H[f+56>>2]=c;if(c){c=zb[H[a+516>>2]](a,1128678962,g,f+60|0)|0;H[f+56>>2]=c;if(c){break a}}c=zb[H[a+516>>2]](a,1719034226,g,f+60|0)|0;H[f+56>>2]=c;if(c){break a}o=H[g+8>>2];c=Ic(g,96848,f+40|0);H[f+56>>2]=c;if(c){break a}h=J[f+46>>1];i=J[f+52>>1];c=pc(r,80,f+56|0);H[a+736>>2]=c;if(H[f+56>>2]){break a}k=J[f+46>>1];H[c>>2]=k;x=(i|0)==((h<<2)+6|0);break b}k=H[e>>2];c=e}t=N(k,24);p=H[a+12>>2];q=p>>>16|0;u=N(q,12);v=(k<<1)+3&-4;y=N(k,q);w=y<<2;if(!e){e=c;c=((((N(k,5)+t|0)+v|0)+u|0)+w|0)+20|0;H[e+16>>2]=c;h=pc(r,c,f+56|0);if(H[f+56>>2]){break a}H[H[a+736>>2]+12>>2]=h;s=h+20|0;i=s+v|0;H[h+12>>2]=i;H[h+8>>2]=q;H[h+4>>2]=-1;H[h>>2]=k;n=i+t|0;H[h+16>>2]=n;e=n+u|0;c:{if(p>>>0<65536){break c}p=q>>>0>1?q:1;z=p&3;c=e;if(p-1>>>0>=3){p=p&65532;while(1){H[N(d,12)+n>>2]=c;l=c;c=k<<2;l=l+c|0;H[N(d|1,12)+n>>2]=l;l=c+l|0;H[N(d|2,12)+n>>2]=l;l=c+l|0;H[N(d|3,12)+n>>2]=l;c=c+l|0;d=d+4|0;j=j+4|0;if((p|0)!=(j|0)){continue}break}}if(!z){break c}j=k<<2;while(1){H[N(d,12)+n>>2]=c;d=d+1|0;c=c+j|0;m=m+1|0;if((z|0)!=(m|0)){continue}break}}d:{if(!k){break d}m=k&7;d=e+w|0;j=0;e:{if(k-1>>>0<7){c=0;break e}e=k&-8;c=0;n=0;while(1){H[N(c,24)+i>>2]=d;H[N(c|1,24)+i>>2]=d+5;H[N(c|2,24)+i>>2]=d+10;H[N(c|3,24)+i>>2]=d+15;H[N(c|4,24)+i>>2]=d+20;H[N(c|5,24)+i>>2]=d+25;H[N(c|6,24)+i>>2]=d+30;H[N(c|7,24)+i>>2]=d+35;c=c+8|0;d=d+40|0;n=n+8|0;if((e|0)!=(n|0)){continue}break}}if(!m){break d}while(1){H[N(c,24)+i>>2]=d;c=c+1|0;d=d+5|0;j=j+1|0;if((m|0)!=(j|0)){continue}break}}c=bc(g,J[f+44>>1]+o|0);H[f+56>>2]=c;if(c){break a}if(k){d=H[h+12>>2];e=0;while(1){c=Ic(g,96896,f+16|0);H[f+56>>2]=c;if(c){break a}c=H[f+16>>2];H[d+16>>2]=c;H[d+4>>2]=H[f+20>>2];H[d+8>>2]=H[f+24>>2];H[d+12>>2]=H[f+28>>2];H[d+20>>2]=J[f+34>>1];F[H[d>>2]]=c>>>24;F[H[d>>2]+1|0]=J[d+18>>1];F[H[d>>2]+2|0]=H[d+16>>2]>>>8;F[H[d>>2]+3|0]=H[d+16>>2];F[H[d>>2]+4|0]=0;G[s>>1]=J[f+32>>1];c=H[d+8>>2];if(!((c|0)>=H[d+4>>2]&(c|0)<=H[d+12>>2])){H[d+12>>2]=c;H[d+4>>2]=c}s=s+2|0;d=d+24|0;e=e+1|0;if((k|0)!=(e|0)){continue}break}}d=0;c=Ub(r,4,0,y,0,f+56|0);e=H[a+736>>2];H[e+20>>2]=c;if(H[f+56>>2]){break a}f:{if(!J[f+50>>1]){break f}if(!I[e+24|0]){c=H[g+8>>2];iu(a);c=bc(g,c);H[f+56>>2]=c;if(c){break a}if(!J[f+50>>1]){break f}}i=k<<2;o=i+(x?6:4)|0;e=H[h+16>>2];j=H[H[a+736>>2]+20>>2];n=0;while(1){c=Jc(g,o);H[f+56>>2]=c;if(c){break a}A=e,B=Tc(g),H[A+4>>2]=B;Tc(g);if(k){d=H[e>>2];c=0;while(1){A=d,B=de(g),H[A>>2]=B;d=d+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}if(x){c=Tc(g)}else{c=65535}H[e+8>>2]=c;hu(H[a+736>>2],k,H[e>>2],j);wc(g);e=e+12|0;j=i+j|0;d=J[f+50>>1];n=n+1|0;if(d>>>0>n>>>0){continue}break}}g:{if((d|0)==(q|0)){break g}c=17;e=H[a+540>>2];if(!(zb[H[e+148>>2]](a,17,f+16|0,f+12|0)|0)){c=2;if(!(zb[H[e+148>>2]](a,2,f+16|0,f+12|0)|0)){break g}}if(!(zb[H[e+148>>2]](a,6,f+16|0,f+12|0)|0)){break g}e=H[h+16>>2]+N(J[f+50>>1],12)|0;H[e+8>>2]=6;H[e+4>>2]=c;if(!k){break g}d=H[e>>2];c=H[h+12>>2];if(k-1>>>0>=7){g=k&-8;e=0;while(1){H[d>>2]=H[c+8>>2];H[d+4>>2]=H[c+32>>2];H[d+8>>2]=H[c+56>>2];H[d+12>>2]=H[c+80>>2];H[d+16>>2]=H[c+104>>2];H[d+20>>2]=H[c+128>>2];H[d+24>>2]=H[c+152>>2];H[d+28>>2]=H[c+176>>2];d=d+32|0;c=c+192|0;e=e+8|0;if((g|0)!=(e|0)){continue}break}}g=k&7;if(!g){break g}e=0;while(1){H[d>>2]=H[c+8>>2];d=d+4|0;c=c+24|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}}c=xb-16|0;xb=c;d=H[a+736>>2];e=H[a+104>>2];g=H[e+28>>2];h=zb[H[a+516>>2]](a,1297498450,e,c+8|0)|0;H[c+12>>2]=h;h:{if(h){break h}h=H[e+8>>2];j=nc(e,c+12|0);if(H[c+12>>2]){break h}i=ud(e,2);H[c+12>>2]=i;if((j|0)!=1|i){break h}A=d,B=pc(g,28,c+12|0),H[A+56>>2]=B;if(H[c+12>>2]){break h}j=ud(e,4);H[c+12>>2]=j;if(j){break h}j=nc(e,c+12|0);G[H[d+56>>2]>>1]=j;if(H[c+12>>2]){break h}j=nc(e,c+12|0);if(H[c+12>>2]){break h}i=H[e+8>>2];h=du(H[a+104>>2],H[a+736>>2],h+j|0,H[d+56>>2]+4|0);H[c+12>>2]=h;if(h){break h}g=Ub(g,12,0,J[H[d+56>>2]>>1],0,c+12|0);H[H[d+56>>2]+24>>2]=g;if(H[c+12>>2]){break h}g=bc(e,i);H[c+12>>2]=g;if(g){break h}g=Jc(e,J[H[d+56>>2]>>1]<<3);H[c+12>>2]=g;if(g){break h}g=H[d+56>>2];h=J[g>>1];i:{if(!h){break i}o=H[g+24>>2];h=o+N(h,12)|0;while(1){j:{A=o,B=de(e),H[A>>2]=B;A=o,B=Tc(e),G[A+4>>1]=B;j=Tc(e);G[o+6>>1]=j;i=J[o+4>>1];if(i>>>0>=K[g+4>>2]|j>>>0>=K[H[g+8>>2]+(i<<4)>>2]){break j}o=o+12|0;if(h>>>0>o>>>0){continue}break i}break}H[c+12>>2]=8}wc(e);if(H[c+12>>2]){break h}e=H[d+56>>2];d=J[e>>1];if(d){m=H[e+24>>2];e=m+N(d,12)|0;while(1){d=cu(a,H[m>>2]);if(d){G[m+8>>1]=J[d>>1]}m=m+12|0;if(e>>>0>m>>>0){continue}break}}H[a+740>>2]=H[a+740>>2]|256}xb=c+16|0}if(!b){break a}c=pc(r,H[H[a+736>>2]+16>>2],f+56|0);if(H[f+56>>2]){break a}a=H[a+736>>2];h=Ob(c,H[a+12>>2],H[a+16>>2]);c=(h+v|0)+20|0;g=t+c|0;H[h+16>>2]=g;H[h+12>>2]=c;a=g+u|0;i=H[h+8>>2];k:{if(!i){break k}j=0;d=0;e=a;if(i-1>>>0>=3){o=i&-4;n=0;while(1){H[g+N(d,12)>>2]=e;l=e;e=k<<2;m=l+e|0;H[g+N(d|1,12)>>2]=m;m=e+m|0;H[g+N(d|2,12)>>2]=m;m=e+m|0;H[g+N(d|3,12)>>2]=m;e=e+m|0;d=d+4|0;n=n+4|0;if((o|0)!=(n|0)){continue}break}}i=i&3;if(!i){break k}o=k<<2;while(1){H[g+N(d,12)>>2]=e;d=d+1|0;e=e+o|0;j=j+1|0;if((i|0)!=(j|0)){continue}break}}l:{if(!k){break l}d=a+w|0;if((k|0)!=1){j=k&-2;a=0;while(1){H[c>>2]=d;m:{n:{o:{e=H[c+16>>2];if((e|0)<=2003072103){if((e|0)==1869640570){break o}if((e|0)!=1936486004){break m}l=10564;break n}l=10150;if((e|0)==2003265652){break n}if((e|0)!=2003072104){break m}l=10287;break n}l=10426}H[c>>2]=l}H[c+24>>2]=d+5;p:{q:{r:{s:{e=H[c+40>>2];if((e|0)<=2003072103){if((e|0)==1869640570){break s}if((e|0)!=1936486004){break p}l=10564;break q}if((e|0)==2003072104){break r}l=10150;if((e|0)==2003265652){break q}break p}l=10426;break q}l=10287}H[c+24>>2]=l}c=c+48|0;d=d+10|0;a=a+2|0;if((j|0)!=(a|0)){continue}break}}if(!(k&1)){break l}H[c>>2]=d;t:{u:{v:{a=H[c+16>>2];if((a|0)<=2003072103){if((a|0)==1869640570){break v}if((a|0)!=1936486004){break l}e=10564;break t}if((a|0)==2003072104){break u}e=10150;if((a|0)==2003265652){break t}break l}e=10426;break t}e=10287}H[c>>2]=e}H[b>>2]=h}xb=f- -64|0;return H[f+56>>2]}function cl(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=O(0);if(qr(a)){if(!(c?b:0)){c=I[245464]|I[245465]<<8|(I[245466]<<16|I[245467]<<24);b=I[245460]|I[245461]<<8|(I[245462]<<16|I[245463]<<24);F[a+125|0]=b;F[a+126|0]=b>>>8;F[a+127|0]=b>>>16;F[a+128|0]=b>>>24;F[a+129|0]=c;F[a+130|0]=c>>>8;F[a+131|0]=c>>>16;F[a+132|0]=c>>>24;c=I[245459]|I[245460]<<8|(I[245461]<<16|I[245462]<<24);b=I[245455]|I[245456]<<8|(I[245457]<<16|I[245458]<<24);F[a+120|0]=b;F[a+121|0]=b>>>8;F[a+122|0]=b>>>16;F[a+123|0]=b>>>24;F[a+124|0]=c;F[a+125|0]=c>>>8;F[a+126|0]=c>>>16;F[a+127|0]=c>>>24;c=I[245451]|I[245452]<<8|(I[245453]<<16|I[245454]<<24);b=I[245447]|I[245448]<<8|(I[245449]<<16|I[245450]<<24);F[a+112|0]=b;F[a+113|0]=b>>>8;F[a+114|0]=b>>>16;F[a+115|0]=b>>>24;F[a+116|0]=c;F[a+117|0]=c>>>8;F[a+118|0]=c>>>16;F[a+119|0]=c>>>24;c=I[245443]|I[245444]<<8|(I[245445]<<16|I[245446]<<24);b=I[245439]|I[245440]<<8|(I[245441]<<16|I[245442]<<24);F[a+104|0]=b;F[a+105|0]=b>>>8;F[a+106|0]=b>>>16;F[a+107|0]=b>>>24;F[a+108|0]=c;F[a+109|0]=c>>>8;F[a+110|0]=c>>>16;F[a+111|0]=c>>>24;c=I[245435]|I[245436]<<8|(I[245437]<<16|I[245438]<<24);b=I[245431]|I[245432]<<8|(I[245433]<<16|I[245434]<<24);F[a+96|0]=b;F[a+97|0]=b>>>8;F[a+98|0]=b>>>16;F[a+99|0]=b>>>24;F[a+100|0]=c;F[a+101|0]=c>>>8;F[a+102|0]=c>>>16;F[a+103|0]=c>>>24;c=I[245427]|I[245428]<<8|(I[245429]<<16|I[245430]<<24);b=I[245423]|I[245424]<<8|(I[245425]<<16|I[245426]<<24);F[a+88|0]=b;F[a+89|0]=b>>>8;F[a+90|0]=b>>>16;F[a+91|0]=b>>>24;F[a+92|0]=c;F[a+93|0]=c>>>8;F[a+94|0]=c>>>16;F[a+95|0]=c>>>24;c=I[245419]|I[245420]<<8|(I[245421]<<16|I[245422]<<24);b=I[245415]|I[245416]<<8|(I[245417]<<16|I[245418]<<24);F[a+80|0]=b;F[a+81|0]=b>>>8;F[a+82|0]=b>>>16;F[a+83|0]=b>>>24;F[a+84|0]=c;F[a+85|0]=c>>>8;F[a+86|0]=c>>>16;F[a+87|0]=c>>>24;c=I[245411]|I[245412]<<8|(I[245413]<<16|I[245414]<<24);b=I[245407]|I[245408]<<8|(I[245409]<<16|I[245410]<<24);F[a+72|0]=b;F[a+73|0]=b>>>8;F[a+74|0]=b>>>16;F[a+75|0]=b>>>24;F[a+76|0]=c;F[a+77|0]=c>>>8;F[a+78|0]=c>>>16;F[a+79|0]=c>>>24;return 0}g=O(O(b>>>0)*O(c>>>0));f=1;a:{if(d>>>0<2){break a}f=4;if(d>>>0<5){break a}f=d>>>0>8?24:8}if(O(O(g*O(f>>>0))*O(.125))>O(1073741824)){b=I[246017]|I[246018]<<8|(I[246019]<<16|I[246020]<<24);F[a+96|0]=b;F[a+97|0]=b>>>8;F[a+98|0]=b>>>16;F[a+99|0]=b>>>24;c=I[246013]|I[246014]<<8|(I[246015]<<16|I[246016]<<24);b=I[246009]|I[246010]<<8|(I[246011]<<16|I[246012]<<24);F[a+88|0]=b;F[a+89|0]=b>>>8;F[a+90|0]=b>>>16;F[a+91|0]=b>>>24;F[a+92|0]=c;F[a+93|0]=c>>>8;F[a+94|0]=c>>>16;F[a+95|0]=c>>>24;c=I[246005]|I[246006]<<8|(I[246007]<<16|I[246008]<<24);b=I[246001]|I[246002]<<8|(I[246003]<<16|I[246004]<<24);F[a+80|0]=b;F[a+81|0]=b>>>8;F[a+82|0]=b>>>16;F[a+83|0]=b>>>24;F[a+84|0]=c;F[a+85|0]=c>>>8;F[a+86|0]=c>>>16;F[a+87|0]=c>>>24;c=I[245997]|I[245998]<<8|(I[245999]<<16|I[246e3]<<24);b=I[245993]|I[245994]<<8|(I[245995]<<16|I[245996]<<24);F[a+72|0]=b;F[a+73|0]=b>>>8;F[a+74|0]=b>>>16;F[a+75|0]=b>>>24;F[a+76|0]=c;F[a+77|0]=c>>>8;F[a+78|0]=c>>>16;F[a+79|0]=c>>>24;return 0}d=2;b:{c:{switch(f-1|0){case 3:d=16;break b;case 7:d=256;break b;case 0:break b;default:break c}}d=0}H[a+12>>2]=40;H[a+68>>2]=e;H[a+44>>2]=d;H[a+28>>2]=0;G[a+26>>1]=f;G[a+24>>1]=1;H[a+20>>2]=c;H[a+16>>2]=b;b=N(b,f)+31>>>3&536870908;H[a+52>>2]=b;b=N(b,c);H[a+32>>2]=b;b=Tb((b+(H[a+44>>2]<<2)|0)+40|0);H[a+4>>2]=b;if(!b){c=I[246095]|I[246096]<<8|(I[246097]<<16|I[246098]<<24);b=I[246091]|I[246092]<<8|(I[246093]<<16|I[246094]<<24);F[a+102|0]=b;F[a+103|0]=b>>>8;F[a+104|0]=b>>>16;F[a+105|0]=b>>>24;F[a+106|0]=c;F[a+107|0]=c>>>8;F[a+108|0]=c>>>16;F[a+109|0]=c>>>24;c=I[246089]|I[246090]<<8|(I[246091]<<16|I[246092]<<24);b=I[246085]|I[246086]<<8|(I[246087]<<16|I[246088]<<24);F[a+96|0]=b;F[a+97|0]=b>>>8;F[a+98|0]=b>>>16;F[a+99|0]=b>>>24;F[a+100|0]=c;F[a+101|0]=c>>>8;F[a+102|0]=c>>>16;F[a+103|0]=c>>>24;c=I[246081]|I[246082]<<8|(I[246083]<<16|I[246084]<<24);b=I[246077]|I[246078]<<8|(I[246079]<<16|I[246080]<<24);F[a+88|0]=b;F[a+89|0]=b>>>8;F[a+90|0]=b>>>16;F[a+91|0]=b>>>24;F[a+92|0]=c;F[a+93|0]=c>>>8;F[a+94|0]=c>>>16;F[a+95|0]=c>>>24;c=I[246073]|I[246074]<<8|(I[246075]<<16|I[246076]<<24);b=I[246069]|I[246070]<<8|(I[246071]<<16|I[246072]<<24);F[a+80|0]=b;F[a+81|0]=b>>>8;F[a+82|0]=b>>>16;F[a+83|0]=b>>>24;F[a+84|0]=c;F[a+85|0]=c>>>8;F[a+86|0]=c>>>16;F[a+87|0]=c>>>24;c=I[246065]|I[246066]<<8|(I[246067]<<16|I[246068]<<24);b=I[246061]|I[246062]<<8|(I[246063]<<16|I[246064]<<24);F[a+72|0]=b;F[a+73|0]=b>>>8;F[a+74|0]=b>>>16;F[a+75|0]=b>>>24;F[a+76|0]=c;F[a+77|0]=c>>>8;F[a+78|0]=c>>>16;F[a+79|0]=c>>>24;return 0}H[a+8>>2]=b+((H[a+32>>2]+H[a+12>>2]|0)+(H[a+44>>2]<<2)|0);b=H[a+4>>2];b=b?H[a+44>>2]?b+40|0:0:0;if(b){Nb(b,0,H[a+44>>2]<<2)}if(H[a+924>>2]){b=H[a+924>>2];if(b){Kb(b);H[a+924>>2]=0}H[a+376>>2]=0;H[a+380>>2]=0;H[a+372>>2]=H[a+16>>2];H[a+384>>2]=H[a+20>>2]}if(H[a+928>>2]){qn(a)}d=I[a+16|0]|I[a+17|0]<<8|(I[a+18|0]<<16|I[a+19|0]<<24);b=H[a+4>>2];c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);F[b|0]=c;F[b+1|0]=c>>>8;F[b+2|0]=c>>>16;F[b+3|0]=c>>>24;F[b+4|0]=d;F[b+5|0]=d>>>8;F[b+6|0]=d>>>16;F[b+7|0]=d>>>24;d=I[a+48|0]|I[a+49|0]<<8|(I[a+50|0]<<16|I[a+51|0]<<24);c=I[a+44|0]|I[a+45|0]<<8|(I[a+46|0]<<16|I[a+47|0]<<24);F[b+32|0]=c;F[b+33|0]=c>>>8;F[b+34|0]=c>>>16;F[b+35|0]=c>>>24;F[b+36|0]=d;F[b+37|0]=d>>>8;F[b+38|0]=d>>>16;F[b+39|0]=d>>>24;d=I[a+40|0]|I[a+41|0]<<8|(I[a+42|0]<<16|I[a+43|0]<<24);c=I[a+36|0]|I[a+37|0]<<8|(I[a+38|0]<<16|I[a+39|0]<<24);F[b+24|0]=c;F[b+25|0]=c>>>8;F[b+26|0]=c>>>16;F[b+27|0]=c>>>24;F[b+28|0]=d;F[b+29|0]=d>>>8;F[b+30|0]=d>>>16;F[b+31|0]=d>>>24;d=I[a+32|0]|I[a+33|0]<<8|(I[a+34|0]<<16|I[a+35|0]<<24);c=I[a+28|0]|I[a+29|0]<<8|(I[a+30|0]<<16|I[a+31|0]<<24);F[b+16|0]=c;F[b+17|0]=c>>>8;F[b+18|0]=c>>>16;F[b+19|0]=c>>>24;F[b+20|0]=d;F[b+21|0]=d>>>8;F[b+22|0]=d>>>16;F[b+23|0]=d>>>24;d=I[a+24|0]|I[a+25|0]<<8|(I[a+26|0]<<16|I[a+27|0]<<24);c=I[a+20|0]|I[a+21|0]<<8|(I[a+22|0]<<16|I[a+23|0]<<24);F[b+8|0]=c;F[b+9|0]=c>>>8;F[b+10|0]=c>>>16;F[b+11|0]=c>>>24;F[b+12|0]=d;F[b+13|0]=d>>>8;F[b+14|0]=d>>>16;F[b+15|0]=d>>>24;b=H[a+4>>2];d:{if(!b){f=0;b=0;break d}f=H[a+4>>2];b=(b+H[b>>2]|0)+(H[a+44>>2]<<2)|0}H[a+56>>2]=b}return f|0}function AI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a=xb-336|0;xb=a;H[b>>2]=1;q=b+504|0;H[q>>2]=0;r=nf(H[b+96>>2],9721,1);H[b+488>>2]=r;n=rg(H[H[b+96>>2]+4>>2],9871);H[b+492>>2]=n;a:{if(!n){f=11;break a}h=H[b+100>>2];Nb(a+16|0,0,304);t=b,u=pc(h,12,a+12|0),H[t+496>>2]=u;b:{if(H[a+12>>2]){break b}H[b+500>>2]=12;f=H[b+104>>2];zb[H[H[n+4>>2]>>2]](a+16|0,0,0,h);F[a+100|0]=0;H[a+92>>2]=0;H[a+96>>2]=0;H[a+88>>2]=f;g=bc(f,0);H[a+320>>2]=g;c:{d:{if(g){break d}g=Jc(f,17);H[a+320>>2]=g;if(g){break d}if(md(H[f+32>>2],10372,17)){g=2;H[a+320>>2]=2;wc(f);break d}wc(f);g=bc(f,0);H[a+320>>2]=g;if(g){break d}i=H[f+4>>2];e:{if(!H[f+20>>2]){g=H[f+8>>2];j=H[f>>2];F[a+100|0]=1;H[a+96>>2]=i;H[a+92>>2]=g+j;g=ud(f,i);H[a+320>>2]=g;if(g){break d}i=H[a+96>>2];break e}j=pc(h,i,a+320|0);H[a+92>>2]=j;g=H[a+320>>2];if(g){break d}g=wd(f,j,i);H[a+320>>2]=g;if(g){break d}H[a+96>>2]=i}h=H[a+92>>2];H[a+20>>2]=h;H[a+12>>2]=0;break c}if(I[a+100|0]){H[a+12>>2]=g;break b}f=H[a+92>>2];if(f){zb[H[h+8>>2]](h,f)}h=0;H[a+92>>2]=0;f=H[a+320>>2];H[a+12>>2]=f;if(f){break b}i=H[a+96>>2]}H[a+28>>2]=0;H[a+16>>2]=h;g=h+i|0;H[a+24>>2]=g;zb[H[a+44>>2]](a+16|0);f:{g:{h:{f=H[a+16>>2];if(g>>>0>f>>>0){o=b+132|0;m=b+164|0;p=b+464|0;while(1){i:{j:{i=I[f|0];if(!((i|0)!=70|g>>>0<=f+25>>>0)){if(gc(f,10518,13)){break j}f=a+16|0;zb[H[a+48>>2]](f);zb[H[a+44>>2]](f);h=H[a+16>>2];f=h;k:{if(g>>>0<=f>>>0){break k}while(1){l:{if(!(I[f|0]!=107|g>>>0<=f+5>>>0)){if(!gc(f,10667,5)){break l}}zb[H[a+48>>2]](a+16|0);f=H[a+28>>2];if(f){break h}zb[H[a+44>>2]](a+16|0);f=H[a+16>>2];if(g>>>0>f>>>0){continue}break k}break}f=a+16|0;zb[H[a+48>>2]](f);zb[H[a+72>>2]](f,a+320|0);h=H[a+328>>2]==3?H[a+16>>2]:h}H[a+16>>2]=h;break i}if((i|0)!=47|g>>>0<=f+2>>>0){break j}i=f+1|0;H[a+16>>2]=i;zb[H[a+48>>2]](a+16|0);f=H[a+28>>2];if(f){break h}h=H[a+16>>2];if((h|0)==(i|0)){break i}k=h-i|0;if(k>>>0>21){break i}f=0;if(g>>>0<=h>>>0){break i}while(1){m:{h=N(f,36);l=h+102480|0;j=H[l>>2];if(!j|I[i|0]!=I[j|0]){break m}if((ac(j)|0)!=(k|0)){break m}if(md(i,j,k)){break m}n:{if(f-15>>>0<=3){zb[H[h+102492>>2]](b,a+16|0);f=H[a+28>>2];break n}f=H[h+102488>>2];o:{p:{switch(H[h+102484>>2]-2|0){case 0:H[a+320>>2]=m;break o;case 3:H[a+320>>2]=p;break o;default:break p}}H[a+320>>2]=o}if(f-9>>>0<=1){f=zb[H[a+84>>2]](a+16|0,l,a+320|0,0,0)|0;break n}f=zb[H[a+80>>2]](a+16|0,l,a+320|0,0,0)|0}H[a+28>>2]=f;if(!f){break i}H[a+12>>2]=f;break b}f=f+1|0;if((f|0)!=20){continue}break}break i}zb[H[a+48>>2]](a+16|0);f=H[a+28>>2];if(f){break h}}zb[H[a+44>>2]](a+16|0);f=H[a+16>>2];if(g>>>0>f>>>0){continue}break}}f=H[a+28>>2];H[a+12>>2]=f;if(f){break b}if(I[b+437|0]!=42){H[a+12>>2]=2;break b}h=H[a+160>>2];H[b+420>>2]=h;if(!H[a+228>>2]){H[a+12>>2]=3}i=0;H[a+228>>2]=0;H[b+396>>2]=H[a+216>>2];H[b+428>>2]=H[a+240>>2];H[b+432>>2]=H[a+244>>2];H[b+400>>2]=H[a+164>>2];H[b+424>>2]=H[a+188>>2];H[a+188>>2]=0;H[a+164>>2]=0;if(H[b+368>>2]!=1){break b}j=0;k=H[a+124>>2];if((k|0)<=0){break f}g=0;if((h|0)<=0){break g}while(1){l=g<<2;o=H[l+H[a+132>>2]>>2];p=g<<1;G[p+H[b+384>>2]>>1]=0;H[l+H[b+388>>2]>>2]=10293;q:{if(!o){break q}s=H[b+424>>2];f=0;while(1){m=H[(f<<2)+s>>2];if(fc(o,m)){f=f+1|0;if((h|0)!=(f|0)){continue}break q}break}G[p+H[b+384>>2]>>1]=f;H[l+H[b+388>>2]>>2]=m;if(!fc(10293,m)){break q}j=(g|0)<(j|0)?j:g+1|0;i=(g|0)<(i|0)?g:i}g=g+1|0;if((k|0)!=(g|0)){continue}break}break f}H[a+12>>2]=f;break b}h=0;f=0;if(k-1>>>0>=3){i=k&-4;while(1){G[H[b+384>>2]+(f<<1)>>1]=0;H[H[b+388>>2]+(f<<2)>>2]=10293;j=f|1;G[H[b+384>>2]+(j<<1)>>1]=0;H[H[b+388>>2]+(j<<2)>>2]=10293;j=f|2;G[H[b+384>>2]+(j<<1)>>1]=0;H[H[b+388>>2]+(j<<2)>>2]=10293;j=f|3;G[H[b+384>>2]+(j<<1)>>1]=0;H[H[b+388>>2]+(j<<2)>>2]=10293;f=f+4|0;g=g+4|0;if((i|0)!=(g|0)){continue}break}}g=k&3;if(!g){i=0;j=0;break f}while(1){i=0;G[H[b+384>>2]+(f<<1)>>1]=0;H[H[b+388>>2]+(f<<2)>>2]=10293;f=f+1|0;j=0;h=h+1|0;if((g|0)!=(h|0)){continue}break}}H[b+380>>2]=j;H[b+376>>2]=i;H[b+372>>2]=H[a+104>>2]}f=H[a+156>>2];if(f){zb[f|0](a+108|0)}f=H[a+264>>2];if(f){zb[f|0](a+216|0)}f=H[a+212>>2];if(f){zb[f|0](a+164|0)}f=H[a+316>>2];if(f){zb[f|0](a+268|0)}if(!I[a+100|0]){f=H[a+32>>2];g=H[a+92>>2];if(g){zb[H[f+8>>2]](f,g)}H[a+92>>2]=0}f=H[a+40>>2];if(f){zb[f|0](a+16|0)}f=H[a+12>>2];if(f|(c|0)<0){break a}f=6;if(c&65535){break a}H[b+36>>2]=0;H[b+4>>2]=0;H[b+24>>2]=10079;H[b+16>>2]=H[b+420>>2];c=H[b+144>>2];H[b+20>>2]=c;H[b+8>>2]=H[b+8>>2]|(I[b+156|0]?533:529)|2048;r:{if(c){f=H[b+140>>2];if(!f){break r}h=I[f|0];if(!h){break r}while(1){i=h&255;g=I[c|0];s:{if((i|0)==(g|0)){f=f+1|0;c=c+1|0;break s}i=i-32|0;if(!(!i|(i|0)==13)){t:{switch(g-32|0){case 0:case 13:c=c+1|0;break s;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break r;default:break t}}if(g){break r}H[b+24>>2]=f;break r}f=f+1|0}h=I[f|0];if(h){continue}break}break r}c=H[b+364>>2];if(!c){break r}H[b+20>>2]=c}H[b+28>>2]=0;H[b+32>>2]=0;H[a+16>>2]=9;t=a,u=Vd(H[H[b+96>>2]+4>>2],10174),H[t+36>>2]=u;H[a+20>>2]=H[b+496>>2];H[a+24>>2]=H[b+500>>2];if(d){H[a+44>>2]=e;H[a+40>>2]=d;H[a+16>>2]=25}f=GC(H[H[b+96>>2]+4>>2],a+16|0,0,q);if(f){break a}FC(H[H[b+504>>2]+88>>2]);c=H[b+504>>2];d=H[c+56>>2];H[b+52>>2]=H[c+52>>2];H[b+56>>2]=d;d=H[c+64>>2];H[b+60>>2]=H[c+60>>2];H[b+64>>2]=d;G[b+68>>1]=J[c+68>>1];G[b+70>>1]=J[c+70>>1];G[b+72>>1]=J[c+72>>1];G[b+74>>1]=J[c+74>>1];G[b+76>>1]=J[c+76>>1];G[b+78>>1]=J[c+78>>1];G[b+80>>1]=J[b+158>>1];G[b+82>>1]=J[b+160>>1];d=H[b+152>>2]!=0;H[b+12>>2]=d;if(I[c+12|0]&2){H[b+12>>2]=d|2}if(I[c+8|0]&32){H[b+8>>2]=H[b+8>>2]|32}if(!r){f=0;break a}c=H[n+32>>2];H[a+16>>2]=b;H[a+20>>2]=1970170211;H[a+24>>2]=65539;f=of(H[c+12>>2],0,a+16|0,0);u:{if(!f){break u}d=f&255;if((d|0)==163){break u}if((d|0)!=7){break a}}G[a+24>>1]=7;f=0;v:{w:{switch(H[b+368>>2]-1|0){case 1:G[a+26>>1]=0;H[a+20>>2]=1094995778;break v;case 3:G[a+26>>1]=1;H[a+20>>2]=1094992453;c=c+4|0;break v;case 0:G[a+26>>1]=2;H[a+20>>2]=1094992451;c=c+8|0;break v;case 2:break w;default:break a}}c=c+12|0;G[a+26>>1]=3;H[a+20>>2]=1818326065}b=H[c>>2];if(!b){break a}f=of(b,0,a+16|0,0)}xb=a+336|0;return f|0}function Ss(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;n=xb-16|0;xb=n;c=H[b+4>>2];a:{if(c>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0){break a}h=d-a|0;if(h>>>0<4){break a}g=H[b+12>>2];f=g-4|0;H[b+12>>2]=f;e=1;if((f|0)<=0){e=0;break a}b:{c:{f=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);d:{if((f|0)<=1953658212){if((f|0)==256){break b}if((f|0)==65536|(f|0)==1330926671){break d}break a}if((f|0)==1954115633){break d}if((f|0)==1953784678){break c}if((f|0)!=1953658213){break a}}if(h>>>0<12){e=0;break a}e=g-16|0;H[b+12>>2]=e;if((e|0)<=0){e=0;break a}e=a+4|0;if(e>>>0>>0){e=0;break a}if(d>>>0>>0){e=0;break a}if(d-e>>>0<8){e=0;break a}e=g-24|0;H[b+12>>2]=e;if((e|0)<=0){e=0;break a}f=I[a+4|0]|I[a+5|0]<<8;if(f){a=a+12|0;if(a>>>0>>0){e=0;break a}if(a>>>0>d>>>0){e=0;break a}d=d-a|0;a=((f<<8|f>>>8)&65535)<<4;if(d>>>0>>0){e=0;break a}a=e-a|0;H[b+12>>2]=a;e=0;if((a|0)<=0){break a}}e=1;break a}f=a+4|0;if(f>>>0>>0){e=0;break a}if(d>>>0>>0){e=0;break a}if(d-f>>>0<4){e=0;break a}d=g-8|0;H[b+12>>2]=d;e=0;if((d|0)<=0){break a}e=1;d=I[f|0]|I[f+1|0]<<8;if(((d<<8|d>>>8)&65535)-1>>>0>1){break a}H[n+12>>2]=a;e=0;d=a+8|0;h=H[b+4>>2];e:{f:{if(d>>>0>>0){break f}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<4){break f}c=H[b+12>>2]-4|0;H[b+12>>2]=c;if((c|0)<=0){break f}a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);g=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(g>>>0>1073741822){break f}a=1;if(!g){break e}a=d+4|0;if(a>>>0>>0|a>>>0>f>>>0){break f}f=f-a|0;a=g<<2;if(f>>>0>>0){break f}a=c-a|0;H[b+12>>2]=a;if((a|0)<=0){break f}e=1;a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);l=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(!l){break f}while(1){k=H[n+12>>2];f=0;a=(d+(i<<2)|0)+4|0;g=H[b+4>>2];g:{if(a>>>0>>0){break g}e=H[b+8>>2];if(e>>>0>>0|e-a>>>0<4){break g}h=H[b+12>>2];c=h-4|0;H[b+12>>2]=c;if((c|0)<=0){break g}f=F[a|0];c=I[a+3|0]|(I[a+1|0]<<16|f<<24|I[a+2|0]<<8);j=(c|0)!=0&(f|0)<0;f=!j;if(!c|j){break g}c=c+k|0;h:{if(c>>>0>>0|c>>>0>e>>>0|e-c>>>0<12){break h}f=h-16|0;H[b+12>>2]=f;if((f|0)<=0){break h}f=c+4|0;if(f>>>0>>0|e>>>0>>0|e-f>>>0<8){break h}h=h-24|0;H[b+12>>2]=h;f=1;if((h|0)<=0){break h}k=I[c+4|0]|I[c+5|0]<<8;if(!k){break g}c=c+12|0;if(c>>>0>>0|c>>>0>e>>>0){break h}c=e-c|0;e=((k<<8|k>>>8)&65535)<<4;if(c>>>0>>0){break h}e=h-e|0;H[b+12>>2]=e;if((e|0)>0){break g}}f=0;e=H[b+28>>2];if(e>>>0>31){break g}H[b+28>>2]=e+1;if(!I[b+24|0]){break g}F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;f=1}e=f;if(!e){break f}i=i+1|0;if((l|0)!=(i|0)){continue}break}}a=e}e=a;break a}f=0;i:{j:{g=H[b+4>>2];k:{if(g>>>0>a>>>0){break k}i=H[b+8>>2];if(i>>>0>>0|i-a>>>0<16){break k}e=H[b+12>>2];d=e-16|0;H[b+12>>2]=d;if((d|0)<=0){break k}e=e-20|0;H[b+12>>2]=e;if((e|0)<=0){break k}d=F[a|0];if((d|0)<0){break k}d=I[a+3|0]|(I[a+1|0]<<16|(d&255)<<24|I[a+2|0]<<8);l:{m:{c=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);switch(c+1|0){case 0:break k;case 1:break l;default:break m}}d=a+d|0;if(d>>>0>>0|d>>>0>i>>>0|c>>>0>i-d>>>0){break j}e=e-c|0;H[b+12>>2]=e;if((e|0)<=0){break j}d=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24)}c=a+4|0;if(c>>>0>>0|c>>>0>i>>>0|i-c>>>0<4){break j}H[b+12>>2]=e-4;if((e|0)<5){break j}e=F[c|0];if((e|0)<0){break k}p=a+d|0;d=0;e=(I[a+7|0]|(I[a+5|0]<<16|(e&255)<<24|I[a+6|0]<<8))+a|0;f=H[b+4>>2];n:{if(e>>>0>>0){break n}a=H[b+8>>2];if(a>>>0>>0|a-e>>>0<28){break n}i=H[b+12>>2];c=i-28|0;H[b+12>>2]=c;if((c|0)<=0){break n}c=e+24|0;if(c>>>0>>0|a>>>0>>0|a-c>>>0<2){break n}c=I[e+24|0]|I[e+25|0]<<8;g=i-30|0;H[b+12>>2]=g;if((g|0)<=0){break n}e=e+((c<<8|c>>>8)&65535)|0;if(f>>>0>e>>>0|a>>>0>>0|a-e>>>0<2){break n}i=i-32|0;H[b+12>>2]=i;if((i|0)<=0){break n}c=f;f=e+2|0;if(c>>>0>f>>>0|a>>>0>>0){break n}f=a-f|0;a=I[e|0]|I[e+1|0]<<8;q=(a<<8|a>>>8)&65535;a=(q<<3)+8|0;if(f>>>0>>0){break n}a=i-a|0;H[b+12>>2]=a;f=0;if((a|0)<=0){break n}while(1){d=0;a=((f<<3)+e|0)+2|0;g=H[b+4>>2];o:{if(a>>>0>>0){break o}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<8){break o}h=H[b+12>>2];i=h-8|0;H[b+12>>2]=i;if((i|0)<=0){break o}i=0;d=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))==1936092788){d=I[a+4|0]|I[a+5|0]<<8;i=((d<<8|d>>>8)&65535)+1|0}p:{a=a+6|0;if(a>>>0>>0|a>>>0>c>>>0|c-a>>>0<2){break p}h=h-10|0;H[b+12>>2]=h;d=1;if((h|0)<=0){break p}if(!i){break o}a=I[a|0]|I[a+1|0]<<8;k=((a<<8|a>>>8)&65535)+e|0;if(g>>>0>k>>>0|c>>>0>>0){break p}d=0;a=N(i,12);if(a>>>0>c-k>>>0){break o}a=h-a|0;H[b+12>>2]=a;l=0;if((a|0)<=0){break p}while(1){d=0;a=0;g=N(l,12)+k|0;q:{if(g>>>0>2]){break q}c=H[b+8>>2];if(c>>>0>>0|c-g>>>0<12){break q}c=H[b+12>>2]-12|0;H[b+12>>2]=c;if((c|0)<=0){break q}c=g+5|0;o=H[b+4>>2];r:{if(c>>>0>>0){break r}h=H[b+8>>2];if(c>>>0>h>>>0|h-c>>>0<3){break r}j=H[b+12>>2];m=j-3|0;H[b+12>>2]=m;if((m|0)<=0){break r}c=p+(I[c+2|0]|(I[c+1|0]<<8|I[c|0]<<16))|0;s:{if(c>>>0>>0|c>>>0>h>>>0|h-c>>>0<4){break s}m=j-7|0;H[b+12>>2]=m;d=1;if((m|0)<=0){break s}t:{j=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);j=j<<24|j<<8&16711680|(j>>>8&65280|j>>>24);switch(j+1|0){case 1:break r;case 0:break s;default:break t}}c=c+4|0;if(c>>>0>>0|c>>>0>h>>>0|j>>>0>h-c>>>0){break s}c=m-j|0;H[b+12>>2]=c;if((c|0)>0){break r}}d=0}if(!d){break q}h=H[b+4>>2];d=(p+(I[g+7|0]|(I[g+6|0]<<8|I[g+5|0]<<16))|0)+4|0;if(h>>>0>d>>>0){break q}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<12){break q}j=H[b+12>>2];g=j-12|0;H[b+12>>2]=g;if((g|0)<=0){break q}g=d+4|0;if(g>>>0>>0|c>>>0>>0|c-g>>>0<8){break q}g=j-20|0;H[b+12>>2]=g;if((g|0)<=0){break q}j=I[d+4|0]|I[d+5|0]<<8;if(j){d=d+12|0;if(d>>>0>>0|c>>>0>>0){break q}c=c-d|0;d=((j<<8|j>>>8)&65535)<<4;if(c>>>0>>0){break q}d=g-d|0;H[b+12>>2]=d;if((d|0)<=0){break q}}a=1}d=a;if(!a){break o}l=l+1|0;if((i|0)!=(l|0)){continue}break}break o}d=0}if(!d){break n}a=(f|0)!=(q|0);f=f+1|0;if(a){continue}break}}f=d}e=f;break i}e=0}}xb=n+16|0;return e}function uK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;g=xb-16|0;xb=g;H[g+4>>2]=0;f=H[e+32>>2];i=H[f+100>>2];a:{b:{c:{d:{if(gc(a,11158,7)){break d}e:{c=I[a+7|0];switch(c|0){case 0:case 9:case 10:case 13:case 32:break e;default:break d}}H[g+12>>2]=0;d=H[f+88>>2];h=d;d=(c?-8:-7)+b|0;j=d+1|0;h=Ub(i,1,h,h+j|0,H[f+84>>2],g+12|0);H[f+84>>2]=h;b=H[g+12>>2];if(!b){n=Ob(h+H[f+88>>2]|0,c?a+8|0:a+7|0,d)+d|0,o=10,F[n|0]=o;H[f+88>>2]=j+H[f+88>>2];b=H[g+12>>2]}H[g+4>>2]=b;break c}f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{c=H[e>>2];if(!(c&32)){if(gc(a,11901,5)){break o}p:{switch(I[a+5|0]){case 0:case 9:case 10:case 13:case 32:break p;default:break o}}b=sf(e+40|0,11510,a,b);H[g+4>>2]=b;if(b){break b}b=H[H[e+40>>2]+4>>2];if(!b){break i}a=F[b|0];c=a&255;if(!c|!(I[(c>>>3|0)+24096|0]>>>(a&7)&1)){break i}c=0;q:{r:{while(1){if(c>>>0>=429496728){b=f+48|0;a=K[e+60>>2]/20|0;c=e+4|0;break r}c=I[a+24128|0]+N(c,10)|0;a=F[b+1|0];b=b+1|0;if(I[((a&248)>>>3|0)+24096|0]>>>(a&7)&1){continue}break}H[f+48>>2]=c;H[e+4>>2]=c;b=f+48|0;a=K[e+60>>2]/20|0;if(c>>>0<=a>>>0){a=c;break q}c=e+4|0}H[b>>2]=a;H[c>>2]=a}if(!a){break h}if(a>>>0<1114112){break g}b=6;break j}s:{t:{if(gc(a,24294,7)){break t}u:{switch(I[a+7|0]){case 0:case 9:case 10:case 13:case 32:break u;default:break t}}if(!(c&4032)){break s}b=186;break j}v:{if(gc(a,24302,7)){break v}w:{switch(I[a+7|0]){case 0:case 9:case 10:case 13:case 32:break w;default:break v}}H[e+28>>2]=0;H[e>>2]=c&-4033;break f}d=c&64;if(!(H[H[e+36>>2]+4>>2]?1:!d|H[e+28>>2]!=-1)){break f}x:{if(gc(a,24310,9)){break x}y:{switch(I[a+9|0]){case 0:case 9:case 10:case 13:case 32:break y;default:break x}}if(c&4032){break k}c=H[e+24>>2];if(c){zb[H[i+8>>2]](i,c)}H[e+24>>2]=0;c=e+40|0;b=sf(c,11510,a,b);H[g+4>>2]=b;if(b){break b}vu(c);a=tu(c,g+8|0);if(!a){break l}c=H[g+8>>2]+1|0;d=Ub(i,1,0,c,0,g+4|0);H[e+24>>2]=d;b=H[g+4>>2];if(b){break b}Ob(d,a,c);H[e>>2]=H[e>>2]|64;break f}z:{if(gc(a,24320,8)){break z}A:{switch(I[a+8|0]){case 0:case 9:case 10:case 13:case 32:break A;default:break z}}if(!d){break k}b=sf(e+40|0,11510,a,b);H[g+4>>2]=b;if(b){break b}c=H[e+40>>2];a=mu(H[c+4>>2]);b=(a|0)>=0;a=b?a:-1;H[e+28>>2]=a;if(!(K[e+48>>2]<3|b)){a=mu(H[c+8>>2]);H[e+28>>2]=a}if(a-1114112>>>0<=4293853182){H[e+28>>2]=-1;break n}if((a|0)<0){break n}b=H[f+52>>2];B:{if((b|0)!=H[f+48>>2]){c=H[f+56>>2];break B}c=Ub(i,36,b,b- -64|0,H[f+56>>2],g+4|0);H[f+56>>2]=c;b=H[g+4>>2];if(b){break b}H[f+48>>2]=H[f+48>>2]- -64;b=H[f+52>>2];a=H[e+28>>2]}H[f+52>>2]=b+1;d=H[e+24>>2];b=N(b,36)+c|0;H[b+4>>2]=a;H[b>>2]=d;break m}if(c&128){d=H[e+28>>2]==-1;j=H[f+(d?64:52)>>2]-1|0;h=H[f+(d?68:56)>>2];if(c&2048){d=H[e+8>>2];b=h+N(j,36)|0;if(d>>>0>=J[b+14>>1]){if((c|0)<0){break f}H[e>>2]=c|-2147483648;break f}c=H[b+28>>2];b=H[b+24>>2]+N(c,d)|0;f=0;d=c<<1;C:{if(!d){c=0;break C}D:{while(1){c=f;k=I[c+a|0];f=k<<24>>24;if(!(I[(k>>>3|0)+24368|0]>>>(f&7)&1)){break D}F[b|0]=I[f+24128|0]+(I[b|0]<<4);f=c+1|0;if(!(!(c&1)|d>>>0<=f>>>0)){F[b+1|0]=0;b=b+1|0}if((d|0)!=(f|0)){continue}break}c=d;break C}f=H[e>>2];if(f&1073741824){break C}H[e>>2]=f|1073741824}f=J[(h+N(j,36)|0)+12>>1];if(f){F[b|0]=I[b|0]&I[(N(f,J[H[e+32>>2]+96>>1])&7)+24329|0]}E:{if((c|0)!=(d|0)){break E}a=I[a+d|0];if(!(I[(a>>>3|0)+24368|0]>>>(a&7)&1)){break E}a=H[e>>2];if(a&1073741824){break E}H[e>>2]=a|1073741824}H[e+8>>2]=H[e+8>>2]+1;break f}F:{if(gc(a,24337,6)){break F}G:{switch(I[a+6|0]){case 0:case 9:case 10:case 13:case 32:break G;default:break F}}b=sf(e+40|0,11510,a,b);H[g+4>>2]=b;if(b){break b}n=h+N(j,36)|0,o=Ti(H[H[e+40>>2]+4>>2]),G[n+8>>1]=o;H[e>>2]=H[e>>2]|256;break f}H:{if(gc(a,24344,6)){break H}I:{switch(I[a+6|0]){case 0:case 9:case 10:case 13:case 32:break I;default:break H}}b=sf(e+40|0,11510,a,b);H[g+4>>2]=b;if(b){break b}b=h+N(j,36)|0;c=Ti(H[H[e+40>>2]+4>>2]);G[b+10>>1]=c;a=H[e>>2];if(!(a&256)){n=b,o=ic(c&65535,72e3,N(H[f+20>>2],H[f+16>>2])),G[n+8>>1]=o;a=H[e>>2]}H[e>>2]=a|512;break f}J:{if(gc(a,24351,3)){break J}K:{switch(I[a+3|0]){case 0:case 9:case 10:case 13:case 32:break K;default:break J}}b=sf(e+40|0,11510,a,b);H[g+4>>2]=b;if(b){break b}a=h+N(j,36)|0;c=H[e+40>>2];d=El(H[c+4>>2]);G[a+12>>1]=d;k=El(H[c+8>>2]);G[a+14>>1]=k;b=ck(H[c+12>>2]);G[a+16>>1]=b;c=ck(H[c+16>>2]);G[a+18>>1]=c;l=0-c|0;G[a+22>>1]=l;c=c+k|0;G[a+20>>1]=c;k=b+d|0;G[e+22>>1]=k;c=c<<16>>16;m=G[e+18>>1];G[e+18>>1]=(c|0)>(m|0)?c:m;c=G[e+20>>1];l=l<<16>>16;G[e+20>>1]=(c|0)>(l|0)?c:l;c=k<<16>>16;k=G[e+16>>1];G[e+16>>1]=(c|0)>(k|0)?c:k;c=G[e+12>>1];G[e+12>>1]=(b|0)<(c|0)?b:c;c=G[e+14>>1];G[e+14>>1]=(b|0)>(c|0)?b:c;b=H[e>>2];if(!(b&512)){G[a+10>>1]=d}L:{if(!H[H[e+36>>2]>>2]){break L}a=h+N(j,36)|0;b=ic(J[a+10>>1],72e3,N(H[f+20>>2],H[f+16>>2]));if(J[a+8>>1]==(b&65535)){b=H[e>>2];break L}G[a+8>>1]=b;b=H[e>>2]|4096}H[e>>2]=b|1024;break f}if(gc(a,24355,6)){break l}M:{switch(I[a+6|0]){case 0:case 9:case 10:case 13:case 32:break M;default:break l}}b=183;if(!(c&1024)){break j}a=h+N(j,36)|0;c=N(J[f+96>>1],J[a+12>>1]);b=c+7>>>3|0;H[a+28>>2]=b;N:{if(c>>>0<=524280){a=N(b,J[a+14>>1]);if(a>>>0<65536){break N}}b=184;break j}b=h+N(j,36)|0;G[b+32>>1]=a;n=b,o=Ub(i,1,0,a,0,g+4|0),H[n+24>>2]=o;b=H[g+4>>2];if(b){break b}H[e+8>>2]=0;H[e>>2]=H[e>>2]|2048;break f}b=182;break j}th(H[f+56>>2],H[f+52>>2],36,5);H[e>>2]=H[e>>2]&-2;H[d>>2]=6;break f}b=180;break j}if(H[H[e+36>>2]+4>>2]){a=H[f+64>>2];O:{if((a|0)!=H[f+60>>2]){c=H[f+68>>2];break O}c=Ub(i,36,a,a+4|0,H[f+68>>2],g+4|0);H[f+68>>2]=c;b=H[g+4>>2];if(b){break b}H[f+60>>2]=H[f+60>>2]+4;a=H[f+64>>2]}b=N(a,36)+c|0;H[b>>2]=H[e+24>>2];H[f+64>>2]=a+1;H[b+4>>2]=a;break m}a=H[e+24>>2];if(a){zb[H[i+8>>2]](i,a)}}H[e+24>>2]=0;H[e>>2]=H[e>>2]&1073741695|128;break f}b=3;break j}b=181}H[g+4>>2]=b;break b}H[f+48>>2]=0;H[e+4>>2]=0;b=f+48|0}a=64;H[b>>2]=64}n=f,o=Ub(i,36,0,a,0,g+4|0),H[n+56>>2]=o;b=H[g+4>>2];if(b){break b}H[e>>2]=H[e>>2]|32}b=H[g+4>>2]}if(b){break b}b=0;break a}if(!(I[e|0]&64)){break a}a=H[e+24>>2];if(a){zb[H[i+8>>2]](i,a)}H[e+24>>2]=0;b=H[g+4>>2]}xb=g+16|0;return b|0} +function jt(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;l=H[b+4>>2];a:{if(l>>>0>a>>>0){break a}e=H[b+8>>2];if(e>>>0>>0){break a}f=e-a|0;if(f>>>0<12){break a}d=H[b+12>>2]-12|0;H[b+12>>2]=d;if(I[a|0]|I[a+1|0]<<8|(d|0)<=0){break a}c=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(c){if(c>>>0>f>>>0){break a}d=d-c|0;H[b+12>>2]=d;if((d|0)<=0){break a}c=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}else{c=0}n=a+4|0;if(l>>>0>n>>>0){return 0}if(e>>>0>>0){return 0}if(e-n>>>0<4){return 0}H[b+12>>2]=d-4;if((d|0)<5){break a}d=F[a+4|0];e=I[a+7|0]|(I[a+5|0]<<16|d<<24|I[a+6|0]<<8);d=(e|0)!=0&(d|0)<0;q=!d;if(d|!e){break a}q=1;d=a+c|0;c=0;l=xb-16|0;xb=l;e=a+e|0;b:{if(e>>>0>2]){break b}a=H[b+8>>2];if(a>>>0>>0){break b}a=a-e|0;if(a>>>0<2){break b}f=H[b+12>>2];h=f-2|0;H[b+12>>2]=h;if((h|0)<=0){break b}c:{d:{e:{f:{g:{h:{h=I[e|0]|I[e+1|0]<<8;switch((h<<8|h>>>8)&65535){case 6:break e;case 4:break f;case 2:break g;case 0:break h;case 10:break b;case 8:break d;default:break c}}H[l+12>>2]=d;c=$n(e+2|0,b,H[b+36>>2],l+12|0);break b}H[l+12>>2]=d;a=0;i:{e=e+2|0;g=H[b+4>>2];if(e>>>0>>0){break i}c=H[b+8>>2];if(c>>>0>>0|c-e>>>0<10){break i}f=H[b+12>>2]-10|0;H[b+12>>2]=f;if((f|0)<=0){break i}d=I[e|0]|I[e+1|0]<<8;h=(d<<8|d>>>8)&65535;if(h>>>0<6){break i}d=I[e+2|0]|I[e+3|0]<<8;k=(d<<8|d>>>8)&65535;i=N(k,h);if(i){j=g;g=e+10|0;if(j>>>0>g>>>0|c>>>0>>0|i>>>0>c-g>>>0){break i}c=f-i|0;H[b+12>>2]=c;if((c|0)<=0){break i}}c=0;j:{if(!d){break j}a=e+N(h,k-1|0)|0;if((I[a+10|0]|I[a+11|0]<<8)!=65535){break j}c=(I[a+12|0]|I[a+13|0]<<8)==65535?-1:0}a=1;o=c+k|0;if(!o){break i}k=e+10|0;c=0;while(1){h=(d<<8|d>>>8)&65535;g=H[l+12>>2];a=0;j=0;k:{if(!d){break k}d=I[e|0]|I[e+1|0]<<8;d=k+N(h-1|0,(d<<8|d>>>8)&65535)|0;j=0;if((I[d|0]|I[d+1|0]<<8)!=65535){break k}j=(I[d+2|0]|I[d+3|0]<<8)==65535?-1:0}if(j+h>>>0<=c>>>0){d=163632}else{d=I[e|0]|I[e+1|0]<<8;d=k+N((d<<8|d>>>8)&65535,c)|0}h=H[b+4>>2];l:{if(d>>>0>>0){break l}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<6){break l}i=H[b+12>>2];j=i-6|0;H[b+12>>2]=j;if((j|0)<=0){break l}d=d+4|0;if(d>>>0>>0|d>>>0>f>>>0|f-d>>>0<2){break l}j=i-8|0;H[b+12>>2]=j;if((j|0)<=0){break l}a=I[d|0]|I[d+1|0]<<8;d=g+((a<<8|a>>>8)&65535)|0;m:{if(d>>>0>>0|d>>>0>f>>>0|f-d>>>0<4){break m}i=i-12|0;H[b+12>>2]=i;if((i|0)<=0){break m}a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);g=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(g>>>0>1073741822){break m}a=1;if(!g){break l}d=d+4|0;if(d>>>0>>0|d>>>0>f>>>0){break m}j=f-d|0;d=g<<2;if(j>>>0>>0){break m}d=i-d|0;H[b+12>>2]=d;if((d|0)>0){break l}}a=0}if(!a){break i}c=c+1|0;if((o|0)==(c|0)){break i}d=I[e+2|0]|I[e+3|0]<<8;continue}}c=a;break b}H[l+12>>2]=d;H[l+8>>2]=e;o=l+12|0;d=0;n:{e=e+2|0;g=H[b+4>>2];if(e>>>0>>0){break n}a=H[b+8>>2];if(a>>>0>>0|a-e>>>0<10){break n}f=H[b+12>>2]-10|0;H[b+12>>2]=f;if((f|0)<=0){break n}c=I[e|0]|I[e+1|0]<<8;h=(c<<8|c>>>8)&65535;if(h>>>0<6){break n}c=I[e+2|0]|I[e+3|0]<<8;k=(c<<8|c>>>8)&65535;i=N(k,h);if(i){j=g;g=e+10|0;if(j>>>0>g>>>0|a>>>0>>0|i>>>0>a-g>>>0){break n}a=f-i|0;H[b+12>>2]=a;if((a|0)<=0){break n}}a=0;o:{if(!c){break o}d=e+N(h,k-1|0)|0;if((I[d+10|0]|I[d+11|0]<<8)!=65535){break o}a=(I[d+12|0]|I[d+13|0]<<8)==65535?-1:0}d=1;i=a+k|0;if(!i){break n}h=e+10|0;a=0;while(1){k=(c<<8|c>>>8)&65535;d=0;g=0;p:{if(!c){break p}c=I[e|0]|I[e+1|0]<<8;c=h+N(k-1|0,(c<<8|c>>>8)&65535)|0;g=0;if((I[c|0]|I[c+1|0]<<8)!=65535){break p}g=(I[c+2|0]|I[c+3|0]<<8)==65535?-1:0}if(g+k>>>0<=a>>>0){c=163632}else{c=I[e|0]|I[e+1|0]<<8;c=h+N((c<<8|c>>>8)&65535,a)|0}k=H[b+4>>2];if(c>>>0>>0){break n}f=H[b+8>>2];if(f>>>0>>0|f-c>>>0<6){break n}g=H[l+8>>2];j=H[b+12>>2];m=j-6|0;H[b+12>>2]=m;if((m|0)<=0){break n}m=I[c|0]|I[c+1|0]<<8;m=(m<<8|m>>>8)&65535;p=I[c+2|0]|I[c+3|0]<<8;p=(p<<8|p>>>8)&65535;if(m>>>0

>>0){break n}c=c+4|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<2){break n}f=j-8|0;H[b+12>>2]=f;if((f|0)<=0){break n}c=I[c|0]|I[c+1|0]<<8;if(!$n(g+((c<<8|c>>>8)&65535)|0,b,(m-p|0)+1|0,o)){break n}d=1;a=a+1|0;if((i|0)==(a|0)){break n}c=I[e+2|0]|I[e+3|0]<<8;continue}}c=d;break b}H[l+12>>2]=d;a=0;q:{e=e+2|0;g=H[b+4>>2];if(e>>>0>>0){break q}d=H[b+8>>2];if(d>>>0>>0|d-e>>>0<10){break q}f=H[b+12>>2]-10|0;H[b+12>>2]=f;if((f|0)<=0){break q}c=I[e|0]|I[e+1|0]<<8;h=(c<<8|c>>>8)&65535;if(h>>>0<4){break q}c=I[e+2|0]|I[e+3|0]<<8;k=(c<<8|c>>>8)&65535;i=N(k,h);if(i){j=g;g=e+10|0;if(j>>>0>g>>>0|d>>>0>>0|i>>>0>d-g>>>0){break q}d=f-i|0;H[b+12>>2]=d;if((d|0)<=0){break q}}if(c){a=e+N(h,k-1|0)|0;d=(I[a+10|0]|I[a+11|0]<<8)==65535?-1:0}else{d=0}a=1;o=d+k|0;if(!o){break q}k=e+10|0;d=0;while(1){f=(c<<8|c>>>8)&65535;g=H[l+12>>2];a=0;if(c){c=I[e|0]|I[e+1|0]<<8;c=k+N(f-1|0,(c<<8|c>>>8)&65535)|0;c=(I[c|0]|I[c+1|0]<<8)==65535?-1:0}else{c=0}if(c+f>>>0<=d>>>0){c=163632}else{c=I[e|0]|I[e+1|0]<<8;c=k+N((c<<8|c>>>8)&65535,d)|0}h=H[b+4>>2];r:{if(c>>>0>>0){break r}f=H[b+8>>2];if(f>>>0>>0|f-c>>>0<4){break r}i=H[b+12>>2];j=i-4|0;H[b+12>>2]=j;if((j|0)<=0){break r}c=c+2|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<2){break r}j=i-6|0;H[b+12>>2]=j;if((j|0)<=0){break r}a=I[c|0]|I[c+1|0]<<8;c=g+((a<<8|a>>>8)&65535)|0;s:{if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<4){break s}i=i-10|0;H[b+12>>2]=i;if((i|0)<=0){break s}a=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);g=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(g>>>0>1073741822){break s}a=1;if(!g){break r}c=c+4|0;if(c>>>0>>0|c>>>0>f>>>0){break s}j=f-c|0;c=g<<2;if(j>>>0>>0){break s}c=i-c|0;H[b+12>>2]=c;if((c|0)>0){break r}}a=0}if(!a){break q}d=d+1|0;if((o|0)==(d|0)){break q}c=I[e+2|0]|I[e+3|0]<<8;continue}}c=a;break b}H[l+12>>2]=d;if(a>>>0<6){break b}a=f-8|0;H[b+12>>2]=a;if((a|0)<=0){break b}a=I[e+4|0]|I[e+5|0]<<8;c=$n(e+6|0,b,(a<<8|a>>>8)&65535,l+12|0);break b}c=1}xb=l+16|0;if(c){break a}q=0;a=H[b+28>>2];if(a>>>0>31){break a}H[b+28>>2]=a+1;if(!I[b+24|0]){break a}F[n|0]=0;F[n+1|0]=0;F[n+2|0]=0;F[n+3|0]=0;q=1}return q}function Via(a){a=a|0;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;j=xb-16|0;xb=j;a:{if(!a){break a}o=-1;b:{if(!a|!(I[a+8|0]&8)){break b}i=H[a+96>>2];h=H[H[i>>2]+32>>2];if(!h){break b}i=zb[h|0](i,9632)|0;if(!i){break b}l=zb[H[i+4>>2]](a,2)|0}c:{if(!l|J[l>>1]==65535){break c}i=H[l+80>>2];if(i|H[l+84>>2]?(i|0)>=0:0){break c}i=H[a+36>>2];if((i|0)<=0){break c}h=H[a+40>>2];while(1){n=H[h+(b<<2)>>2];if(!(J[n+10>>1]|J[n+8>>1]!=3)){o=b;break c}b=b+1|0;if((i|0)!=(b|0)){continue}break}}b=H[a+8>>2]&8;p=G[(b?202:70)+a>>1];q=G[(b?198:72)+a>>1];H[j+12>>2]=0;H[j+8>>2]=0;n=xb-16|0;xb=n;i=a;b=H[a+20>>2];while(1){d:{a=I[b+d|0];e:{if((a|0)!=63){if(a){break e}f:{g:{if(I[b|0]!=60|d>>>0<7|(I[b+1|0]!=117|I[b+2|0]!=116)){break g}if(I[b+3|0]!=102|I[b+4|0]!=56|I[b+5|0]!=62){break g}e=0;H[j+8>>2]=0;a=d-5|0;h=Qb((a|0)!=(a&1073741823)?-1:a<<2);H[j+12>>2]=h;c=6;while(1){a=b+c|0;f=I[a|0];h:{if(!(f&128)){a=e+1|0;H[j+8>>2]=a;H[h+(e<<2)>>2]=f;c=c+1|0;break h}if(!(f&32)){g=0;a=c+1|0;if(a>>>0>>0){g=f<<6&1984|I[a+b|0]&63}a=e+1|0;H[j+8>>2]=a;H[h+(e<<2)>>2]=g;c=c+2|0;break h}if(!(f&16)){g=0;m=c+2|0;if(m>>>0>>0){g=I[b+m|0]&63|(f<<12&61440|(I[a+1|0]&63)<<6)}a=e+1|0;H[j+8>>2]=a;H[h+(e<<2)>>2]=g;c=c+3|0;break h}if(!(f&15)){g=0;m=c+3|0;if(m>>>0>>0){g=I[b+m|0]&63|(f<<18&1835008|(I[a+1|0]&63)<<12|(I[a+2|0]&63)<<6)}a=e+1|0;H[j+8>>2]=a;H[h+(e<<2)>>2]=g;c=c+4|0;break h}if(!(f&8)){g=0;m=c+3|0;if(m>>>0>>0){g=I[b+m|0]&63|(f<<18&1835008|(I[a+1|0]&63)<<12|(I[a+2|0]&63)<<6)}a=e+1|0;H[j+8>>2]=a;H[h+(e<<2)>>2]=g;c=c+4|0;break h}if(!(f&4)){g=0;m=c+4|0;if(m>>>0>>0){g=I[b+m|0]&63|(f<<24&50331648|(I[a+1|0]&63)<<18|(I[a+2|0]&63)<<12|(I[a+3|0]&63)<<6)}a=e+1|0;H[j+8>>2]=a;H[h+(e<<2)>>2]=g;c=c+5|0;break h}g=0;c=c+5|0;if(d>>>0>c>>>0){g=I[b+c|0]&63|(f<<30&1073741824|(I[a+1|0]&63)<<24|(I[a+2|0]&63)<<18|(I[a+3|0]&63)<<12|(I[a+4|0]&63)<<6)}a=e+1|0;H[j+8>>2]=a;H[h+(e<<2)>>2]=g}e=a;if(c>>>0>>0){continue}break}H[h+(e<<2)>>2]=0;break f}if(!(e&1)){H[j+8>>2]=d;a=d+1|0;a=Qb((a|0)!=(a&1073741823)?-1:a<<2);H[j+12>>2]=a;i:{if(!d){break i}if(d-1>>>0>=3){e=d&-4;while(1){H[a+(c<<2)>>2]=F[b+c|0];h=c|1;H[a+(h<<2)>>2]=F[b+h|0];h=c|2;H[a+(h<<2)>>2]=F[b+h|0];h=c|3;H[a+(h<<2)>>2]=F[b+h|0];c=c+4|0;g=g+4|0;if((e|0)!=(g|0)){continue}break}}e=d&3;if(!e){break i}while(1){H[a+(c<<2)>>2]=F[b+c|0];c=c+1|0;f=f+1|0;if((e|0)!=(f|0)){continue}break}}H[a+(d<<2)>>2]=0;break f}j:{k:{if(!i|!(I[i+8|0]&8)){break k}f=J[i+340>>1];if(!f){break k}h=H[i+356>>2];while(1){a=h+N(c,20)|0;l:{if(J[a+6>>1]!=1){break l}m=J[a+8>>1];if(!m){break l}m:{switch(J[a>>1]){case 3:e=J[a+2>>1];if(e>>>0>10|!(1<>2];e=H[i+100>>2];H[n+12>>2]=0;r=a,s=Ub(e,1,0,m,0,n+12|0),H[r+16>>2]=s;n:{if(H[n+12>>2]){break n}m=bc(g,H[a+12>>2]);H[n+12>>2]=m;if(m){break n}g=wd(g,H[a+16>>2],J[a+8>>1]);H[n+12>>2]=g;if(!g){break j}}g=H[a+16>>2];if(g){zb[H[e+8>>2]](e,g)}H[a+16>>2]=0;G[a+8>>1]=0}c=c+1|0;if((f|0)!=(c|0)){continue}break}}H[j+8>>2]=d;a=d+1|0;a=Qb((a|0)!=(a&1073741823)?-1:a<<2);H[j+12>>2]=a;o:{if(!d){break o}f=0;c=0;if(d-1>>>0>=3){e=d&-4;g=0;while(1){H[a+(c<<2)>>2]=F[b+c|0];h=c|1;H[a+(h<<2)>>2]=F[b+h|0];h=c|2;H[a+(h<<2)>>2]=F[b+h|0];h=c|3;H[a+(h<<2)>>2]=F[b+h|0];c=c+4|0;g=g+4|0;if((e|0)!=(g|0)){continue}break}}e=d&3;if(!e){break o}while(1){H[a+(c<<2)>>2]=F[b+c|0];c=c+1|0;f=f+1|0;if((e|0)!=(f|0)){continue}break}}H[a+(d<<2)>>2]=0;break f}f=H[a+16>>2];a=J[a+8>>1];c=0;H[j+12>>2]=0;H[j+8>>2]=0;if(a){b=a+1|0;H[j+8>>2]=b;r=j,s=Qb((b|0)!=(b&1073741823)?-1:b<<2),H[r+12>>2]=s;H[j+8>>2]=0;if((a|0)!=1){b=a>>>1|0;g=H[j+12>>2];e=0;while(1){d=I[f+1|0]|I[f|0]<<8;p:{if(d-56320>>>0<4294966272){c=2;a=1;break p}d=(d<<10&1047552|(I[f+3|0]|I[f+2|0]<<8&768))+65536|0;c=4;a=2}h=H[j+8>>2];H[j+8>>2]=h+1;H[g+(h<<2)>>2]=d;f=c+f|0;e=a+e|0;if(b>>>0>e>>>0){continue}break}c=H[j+8>>2]}H[H[j+12>>2]+(c<<2)>>2]=0}}xb=n+16|0;break d}e=1}d=d+1|0;continue}break}f=H[j+8>>2];c=H[i+24>>2];h=ac(c);g=H[i+28>>2];e=Tb(((f+h|0)+g<<2)+124|0);H[e>>2]=J[i+68>>1];H[e+4>>2]=G[i+70>>1];H[e+8>>2]=G[i+72>>1];H[e+12>>2]=G[i+74>>1];H[e+16>>2]=H[i+8>>2];H[e+20>>2]=H[i>>2];H[e+24>>2]=H[i+16>>2];H[e+28>>2]=H[i+36>>2];H[e+32>>2]=H[i+12>>2];H[e+36>>2]=H[i+4>>2];b=e+40|0;q:{if(!f){break q}a=H[j+12>>2];if(f-1>>>0>=3){m=f&-4;d=0;while(1){n=k<<2;H[b>>2]=H[n+a>>2];H[b+4>>2]=H[a+(n|4)>>2];H[b+8>>2]=H[a+(n|8)>>2];H[b+12>>2]=H[a+(n|12)>>2];k=k+4|0;b=b+16|0;d=d+4|0;if((m|0)!=(d|0)){continue}break}}f=f&3;if(!f){break q}d=0;while(1){H[b>>2]=H[a+(k<<2)>>2];k=k+1|0;b=b+4|0;d=d+1|0;if((f|0)!=(d|0)){continue}break}}k=0;H[b>>2]=0;a=b+4|0;r:{if(!h){break r}if(h-1>>>0>=3){f=h&-4;d=0;while(1){b=a;H[a>>2]=F[c+k|0];H[a+4>>2]=F[c+(k|1)|0];H[a+8>>2]=F[c+(k|2)|0];H[a+12>>2]=F[c+(k|3)|0];a=a+16|0;k=k+4|0;d=d+4|0;if((f|0)!=(d|0)){continue}break}b=b+12|0}f=h&3;if(!f){break r}d=0;while(1){b=a;H[a>>2]=F[c+k|0];a=a+4|0;k=k+1|0;d=d+1|0;if((f|0)!=(d|0)){continue}break}}k=0;H[a>>2]=0;s:{if(l){H[b+8>>2]=J[l>>1];H[b+12>>2]=J[l+4>>1];H[b+16>>2]=J[l+64>>1];H[b+20>>2]=J[l+76>>1];H[b+24>>2]=J[l+78>>1];H[b+28>>2]=J[l+92>>1];H[b+32>>2]=G[l+70>>1];H[b+36>>2]=G[l+72>>1];H[b+40>>2]=G[l+74>>1];H[b+44>>2]=H[l+44>>2];H[b+48>>2]=H[l+48>>2];H[b+52>>2]=H[l+52>>2];d=H[l+84>>2];k=H[l+56>>2];a=H[l+80>>2];break s}H[b+12>>2]=0;H[b+16>>2]=0;H[b+8>>2]=65535;H[b+20>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b+36>>2]=0;H[b+40>>2]=0;H[b+44>>2]=0;H[b+48>>2]=0;H[b+52>>2]=0;d=0;a=0}H[b+80>>2]=g;H[b+76>>2]=p;H[b+72>>2]=q;H[b+68>>2]=o;H[b+64>>2]=d;H[b+60>>2]=a;H[b+56>>2]=k;t:{if((g|0)<=0){break t}c=g&3;b=b+84|0;i=H[i+32>>2];d=0;u:{if(g-1>>>0<3){k=0;break u}g=g&-4;k=0;a=0;while(1){o=k<<4;H[b>>2]=H[(o+i|0)+4>>2];H[b+4>>2]=H[(i+(o|16)|0)+4>>2];H[b+8>>2]=H[(i+(o|32)|0)+4>>2];H[b+12>>2]=H[(i+(o|48)|0)+4>>2];k=k+4|0;b=b+16|0;a=a+4|0;if((g|0)!=(a|0)){continue}break}}if(!c){break t}while(1){H[b>>2]=H[(i+(k<<4)|0)+4>>2];k=k+1|0;b=b+4|0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}a=H[j+12>>2];if(!a){break a}Kb(a)}xb=j+16|0;return e|0}function mF(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;d=1;a:{b:{switch(c-1|0){case 0:c:{d:{e=H[b+4>>2];if(e>>>0>a>>>0){break d}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break d}f=H[b+12>>2];g=f-2|0;H[b+12>>2]=g;c=1;if((g|0)<=0){break d}e:{f:{g:{g=I[a|0]|I[a+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break f;case 0:break g;default:break e}}c=a+2|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break d}d=f-4|0;H[b+12>>2]=d;if((d|0)<=0){break d}d=I[c|0]|I[c+1|0]<<8;h:{if(!d){break h}if(Ud(((d<<8|d>>>8)&65535)+a|0,b)){break h}d=H[b+28>>2];if(d>>>0>31){break d}H[b+28>>2]=d+1;if(!I[b+24|0]){break d}F[c|0]=0;F[c+1|0]=0}a=a+4|0;if(a>>>0>2]){break d}d=H[b+8>>2];if(d>>>0>>0){break d}c=0;if(d-a>>>0<2){break e}a=H[b+12>>2]-2|0;H[b+12>>2]=a;c=(a|0)>0;break c}d=0;c=a+2|0;i:{if(c>>>0>2]){break i}e=H[b+8>>2];if(e>>>0>>0|e-c>>>0<2){break i}e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break i}e=I[c|0]|I[c+1|0]<<8;j:{if(!e){break j}if(Ud(((e<<8|e>>>8)&65535)+a|0,b)){break j}e=H[b+28>>2];if(e>>>0>31){break i}H[b+28>>2]=e+1;if(!I[b+24|0]){break i}F[c|0]=0;F[c+1|0]=0}g=H[b+4>>2];e=a+4|0;if(g>>>0>e>>>0){break i}c=H[b+8>>2];if(c>>>0>>0|c-e>>>0<2){break i}e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break i}f=I[a+4|0]|I[a+5|0]<<8;if(f){a=a+6|0;if(a>>>0>>0|a>>>0>c>>>0){break i}c=c-a|0;a=((f<<8|f>>>8)&65535)<<1;if(c>>>0>>0){break i}a=e-a|0;H[b+12>>2]=a;if((a|0)<=0){break i}}d=1}c=d}break c}c=0}return c;case 1:return lF(a,b);case 2:return lF(a,b);case 3:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;if((I[a|0]|I[a+1|0]<<8)!=256){break a}d=0;c=a+2|0;k:{l:{if(c>>>0>2]){break l}e=H[b+8>>2];if(e>>>0>>0|e-c>>>0<2){break l}e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break l}e=I[c|0]|I[c+1|0]<<8;m:{if(!e){break m}if(Ud(((e<<8|e>>>8)&65535)+a|0,b)){break m}e=H[b+28>>2];if(e>>>0>31){break l}H[b+28>>2]=e+1;if(!I[b+24|0]){break l}F[c|0]=0;F[c+1|0]=0}i=H[b+4>>2];c=a+4|0;if(i>>>0>c>>>0){break l}e=H[b+8>>2];if(e>>>0>>0|e-c>>>0<2){break l}f=H[b+12>>2]-2|0;H[b+12>>2]=f;if((f|0)<=0){break l}g=I[a+4|0]|I[a+5|0]<<8;c=1;if(!g){break k}c=a+6|0;if(c>>>0>>0|c>>>0>e>>>0){break l}h=e-c|0;c=(g<<8|g>>>8)&65535;e=c<<1;if(h>>>0>>0){break l}e=f-e|0;H[b+12>>2]=e;if((e|0)<=0){break l}n=c>>>0>1?c:1;c=0;while(1){j=H[b+4>>2];i=((c<<1)+a|0)+6|0;d=0;n:{if(j>>>0>i>>>0){break n}g=H[b+8>>2];d=0;if(g>>>0>>0){break n}d=0;if(g-i>>>0<2){break n}h=H[b+12>>2];f=h-2|0;H[b+12>>2]=f;e=1;d=0;if((f|0)<=0){break n}d=I[i|0]|I[i+1|0]<<8;o:{if(!d){break o}p:{f=((d<<8|d>>>8)&65535)+a|0;if(f>>>0>>0|f>>>0>g>>>0|g-f>>>0<2){break p}d=h-4|0;H[b+12>>2]=d;if((d|0)<=0){break p}h=I[f|0]|I[f+1|0]<<8;if(!h){break o}e=f+2|0;if(e>>>0>>0|e>>>0>g>>>0){break p}j=g-e|0;e=(h<<8|h>>>8)&65535;g=e<<1;if(j>>>0>>0){break p}d=d-g|0;H[b+12>>2]=d;if((d|0)<=0){break p}o=e>>>0>1?e:1;l=0;while(1){m=H[b+4>>2];j=(f+(l<<1)|0)+2|0;d=0;q:{if(m>>>0>j>>>0){break q}g=H[b+8>>2];d=0;if(g>>>0>>0){break q}d=0;if(g-j>>>0<2){break q}k=H[b+12>>2];h=k-2|0;H[b+12>>2]=h;e=1;d=0;if((h|0)<=0){break q}d=I[j|0]|I[j+1|0]<<8;r:{if(!d){break r}d=f+((d<<8|d>>>8)&65535)|0;s:{if(d>>>0>>0|d>>>0>g>>>0|g-d>>>0<2){break s}e=k-4|0;H[b+12>>2]=e;if((e|0)<=0){break s}h=d+2|0;if(h>>>0>>0|g>>>0>>0|g-h>>>0<2){break s}k=k-6|0;H[b+12>>2]=k;e=1;if((k|0)<=0){break s}h=I[h|0]|I[h+1|0]<<8;if(!h){break r}h=((h<<8|h>>>8)&65535)-1|0;if(!h){break r}d=d+4|0;if(d>>>0>>0|d>>>0>g>>>0){break s}g=g-d|0;d=h<<1;if(g>>>0>>0){break s}d=k-d|0;H[b+12>>2]=d;if((d|0)>0){break r}}e=H[b+28>>2];d=0;if(e>>>0>31){break q}H[b+28>>2]=e+1;e=0;if(!I[b+24|0]){break r}F[j|0]=0;F[j+1|0]=0;e=1}d=e}if(!d){break p}e=1;l=l+1|0;if((o|0)!=(l|0)){continue}break}break o}e=H[b+28>>2];d=0;if(e>>>0>31){break n}H[b+28>>2]=e+1;e=0;if(!I[b+24|0]){break o}F[i|0]=0;F[i+1|0]=0;e=1}d=e}if(!d){break l}c=c+1|0;if((n|0)!=(c|0)){continue}break}}c=d}return c;case 4:d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;t:{u:{v:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break t;case 1:break u;case 0:break v;default:break a}}return kF(a,b)}return jF(a,b)}return iF(a,b);case 5:return hF(a,b);case 6:c=0;w:{if(K[b+4>>2]>a>>>0){break w}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break w}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break w}c=1;if((I[a|0]|I[a+1|0]<<8)!=256){break w}c=0;x:{if(K[b+4>>2]>a>>>0){break x}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<8){break x}d=H[b+12>>2]-8|0;H[b+12>>2]=d;if((d|0)<=0){break x}d=I[a+2|0]|I[a+3|0]<<8;if((d|0)==1792){break x}c=a;a=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);c=mF(a?c+a|0:163632,b,(d<<8|(d&65280)>>>8)&65535)}}return c;case 7:break b;default:break a}}d=0;if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}d=1;if((I[a|0]|I[a+1|0]<<8)!=256){break a}d=xb-16|0;xb=d;c=a+2|0;y:{if(c>>>0>2]){break y}f=H[b+8>>2];if(f>>>0>>0|f-c>>>0<2){break y}f=H[b+12>>2]-2|0;H[b+12>>2]=f;if((f|0)<=0){break y}f=I[c|0]|I[c+1|0]<<8;z:{if(!f){break z}if(Ud(((f<<8|f>>>8)&65535)+a|0,b)){break z}f=H[b+28>>2];if(f>>>0>31){break y}H[b+28>>2]=f+1;if(!I[b+24|0]){break y}F[c|0]=0;F[c+1|0]=0}H[d+12>>2]=a;f=a+4|0;if(!gl(f,b,d+12|0)){break y}c=I[a+4|0]|I[a+5|0]<<8;H[d+8>>2]=a;a=(f+(((c<<8|c>>>8)&65535)<<1)|0)+2|0;if(!gl(a,b,d+8|0)){break y}i=H[b+4>>2];c=I[a|0]|I[a+1|0]<<8;a=(a+(((c<<8|c>>>8)&65535)<<1)|0)+2|0;if(i>>>0>a>>>0){break y}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break y}f=H[b+12>>2]-2|0;H[b+12>>2]=f;if((f|0)<=0){break y}g=I[a|0]|I[a+1|0]<<8;if(g){a=a+2|0;if(a>>>0>>0|a>>>0>c>>>0){break y}c=c-a|0;a=((g<<8|g>>>8)&65535)<<1;if(c>>>0>>0){break y}a=f-a|0;H[b+12>>2]=a;if((a|0)<=0){break y}}e=1}xb=d+16|0;d=e}return d}function aia(a){a=a|0;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;j=xb-16|0;xb=j;b=0;a:{if(!a){break a}m=xb-32|0;xb=m;l=Qb(24);H[l+12>>2]=0;H[l+20>>2]=1;Br(m,l);d=xb-48|0;xb=d;b:{if(m){SD(d,m);b=QD(d);break b}b=QD(0)}xb=d+48|0;c:{d:{h=H[a+8>>2];d=H[a+12>>2];if((h|0)==(d|0)){break d}while(1){if(!H[h+16>>2]){MD(a,h,h+12|0,h+16|0)}h=h+20|0;if((d|0)!=(h|0)){continue}break}h=H[a+8>>2];o=H[a+12>>2];if((h|0)==(o|0)){break d}while(1){e:{c=F[h+11|0]<0?H[h>>2]:h;n=xb-32|0;xb=n;d=-102;f:{if(!b){break f}if(H[b+56>>2]==1){d=Dr(b);if(d){break f}}i=c?c:239678;f=ac(i);H[b+65700>>2]=0;H[b+152>>2]=0;H[b+156>>2]=8;H[b+65704>>2]=0;H[b+65708>>2]=0;H[b+160>>2]=0;H[b+120>>2]=0;H[b+124>>2]=0;d=Uh(b,H[b+44>>2]);c=yb;g=c;H[b+148>>2]=32;H[b+128>>2]=d;H[b+132>>2]=c;H[b+144>>2]=f+46;c=Tb(f+78|0);H[b+140>>2]=0;H[b+136>>2]=c;F[c+5|0]=0;F[c+4|0]=0;F[c|0]=80;F[c+1|0]=75;F[c+2|0]=1;F[c+3|0]=2;F[c+6|0]=20;F[c+7|0]=0;e=H[b+152>>2];F[c+8|0]=e;F[c+9|0]=e>>>8;if(e>>>0>=65536){F[c+8|0]=255;F[c+9|0]=255}e=H[b+156>>2];F[c+10|0]=e;F[c+11|0]=e>>>8;if(e>>>0>=65536){F[c+10|0]=255;F[c+11|0]=255}e=H[b+65700>>2];F[c+29|0]=f>>>8;F[c+28|0]=f;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+12|0]=e;F[c+15|0]=e>>>24;F[c+14|0]=e>>>16;F[c+13|0]=e>>>8;if(f>>>0>=65536){F[c+28|0]=255;F[c+29|0]=255}F[c+30|0]=0;F[c+31|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+36|0]=0;F[c+37|0]=0;g:{if(!g&d>>>0<=4294967294){e=H[b+65776>>2];g=g-(H[b+65780>>2]+(e>>>0>d>>>0)|0)|0;d=d-e|0;F[c+42|0]=d;F[c+43|0]=d>>>8;F[c+44|0]=d>>>16;F[c+45|0]=d>>>24;if(!g){break g}}F[c+42|0]=255;F[c+43|0]=255;F[c+44|0]=255;F[c+45|0]=255}h:{if(!f){break h}F[c+46|0]=I[i|0];d=1;if((f|0)==1){break h}c=f-1|0;e=c&3;if(f-2>>>0>=3){f=c&-4;c=0;while(1){F[(H[b+136>>2]+d|0)+46|0]=I[d+i|0];g=d+1|0;F[(g+H[b+136>>2]|0)+46|0]=I[g+i|0];g=d+2|0;F[(g+H[b+136>>2]|0)+46|0]=I[g+i|0];g=d+3|0;F[(g+H[b+136>>2]|0)+46|0]=I[g+i|0];d=d+4|0;c=c+4|0;if((f|0)!=(c|0)){continue}break}}if(!e){break h}c=0;while(1){F[(H[b+136>>2]+d|0)+46|0]=I[d+i|0];d=d+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}if(!H[b+136>>2]){d=-104;break f}H[b+65720>>2]=0;H[b+65724>>2]=0;H[b+65712>>2]=0;d=b+65728|0;H[d>>2]=0;H[d+4>>2]=0;d=b+65736|0;H[d>>2]=0;H[d+4>>2]=0;c=xb-16|0;xb=c;f=ac(i);e=H[b+44>>2];H[c+8>>2]=67324752;d=-1;i:{if((zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,4)|0)!=4){break i}e=H[b+44>>2];j:{if(H[b+65712>>2]){G[c+8>>1]=45;e=zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,2)|0;break j}G[c+8>>1]=20;e=zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,2)|0}if((e|0)!=2){break i}e=H[b+44>>2];g=H[b+152>>2];G[c+8>>1]=g;if(g>>>0>=65536){G[c+8>>1]=65535}if((zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,2)|0)!=2){break i}e=H[b+44>>2];g=H[b+156>>2];G[c+8>>1]=g;if(g>>>0>=65536){G[c+8>>1]=65535}if((zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,2)|0)!=2){break i}e=H[b+44>>2];H[c+8>>2]=H[b+65700>>2];if((zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,4)|0)!=4){break i}e=H[b+44>>2];H[c+8>>2]=0;if((zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,4)|0)!=4){break i}e=H[b+44>>2];k:{if(H[b+65712>>2]){H[c+8>>2]=-1;e=zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,4)|0;break k}H[c+8>>2]=0;e=zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,4)|0}if((e|0)!=4){break i}e=H[b+44>>2];l:{if(H[b+65712>>2]){H[c+8>>2]=-1;e=zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,4)|0;break l}H[c+8>>2]=0;e=zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,4)|0}if((e|0)!=4){break i}e=H[b+44>>2];G[c+8>>1]=f;if(f>>>0>=65536){G[c+8>>1]=65535}if((zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,2)|0)!=2){break i}e=H[b+44>>2];g=H[b+65712>>2]?20:0;G[c+8>>1]=g;if(g>>>0>=65536){G[c+8>>1]=65535}e=(zb[H[b+8>>2]](H[b+28>>2],e,c+8|0,2)|0)!=2;if(!(e|!f)){e=(zb[H[b+8>>2]](H[b+28>>2],H[b+44>>2],i,f)|0)!=(f|0)}if(e){break i}if(!H[b+65712>>2]){d=0;break i}d=b+65720|0;p=d,q=Uh(b,H[b+44>>2]),H[p>>2]=q;H[d+4>>2]=yb;d=H[b+44>>2];G[c+8>>1]=1;e=d;d=c+8|0;zb[H[b+8>>2]](H[b+28>>2],e,d,2)|0;f=H[b+44>>2];G[c+8>>1]=16;zb[H[b+8>>2]](H[b+28>>2],f,d,2)|0;f=H[b+44>>2];H[c+8>>2]=0;H[c+12>>2]=0;zb[H[b+8>>2]](H[b+28>>2],f,d,8)|0;f=H[b+44>>2];H[c+8>>2]=0;H[c+12>>2]=0;d=(zb[H[b+8>>2]](H[b+28>>2],f,d,8)|0)!=8?-1:0}xb=c+16|0;H[b+68>>2]=0;H[b+72>>2]=0;H[b+76>>2]=b+164;H[b+108>>2]=0;H[b+80>>2]=65536;H[b+84>>2]=0;m:{if(d){break m}if(!(H[b+160>>2]|H[b+156>>2]!=8)){H[b+104>>2]=0;H[b+96>>2]=0;H[b+100>>2]=0;d=Cn(b- -64|0,-1,8,-15,8,0,239667);if(d){break m}H[b+120>>2]=8}H[b+65760>>2]=0;H[b+56>>2]=1;d=0;break f}H[b+65760>>2]=0}xb=n+32|0;if(d){break e}f=H[h+12>>2];d=H[h+16>>2];c=-102;n:{if(!b|!H[b+56>>2]){break n}c=yd(H[b+65704>>2],f,d);H[b+68>>2]=d;H[b+64>>2]=f;H[b+65704>>2]=c;if(d){e=b+164|0;g=b- -64|0;while(1){d=H[b+80>>2];if(!d){f=Cr(b);H[b+76>>2]=e;d=65536;H[b+80>>2]=65536;c=-1;if((f|0)==-1){break n}}o:{if(!(H[b+160>>2]?0:H[b+156>>2]==8)){c=H[b+68>>2];f=c>>>0>>0?c:d;if(f){c=0;d=0;if(f-1>>>0>=3){n=f&-4;i=0;while(1){F[H[b+76>>2]+d|0]=I[H[b+64>>2]+d|0];k=d|1;F[k+H[b+76>>2]|0]=I[k+H[b+64>>2]|0];k=d|2;F[k+H[b+76>>2]|0]=I[k+H[b+64>>2]|0];k=d|3;F[k+H[b+76>>2]|0]=I[k+H[b+64>>2]|0];d=d+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}i=f&3;if(i){while(1){F[H[b+76>>2]+d|0]=I[H[b+64>>2]+d|0];d=d+1|0;c=c+1|0;if((i|0)!=(c|0)){continue}break}}c=H[b+68>>2];d=H[b+80>>2]}H[b+80>>2]=d-f;H[b+68>>2]=c-f;H[b+64>>2]=f+H[b+64>>2];H[b+76>>2]=f+H[b+76>>2];H[b+72>>2]=f+H[b+72>>2];H[b+84>>2]=f+H[b+84>>2];H[b+124>>2]=f+H[b+124>>2];break o}d=H[b+84>>2];c=_f(g,0);H[b+124>>2]=H[b+124>>2]+(H[b+84>>2]-d|0);if(c){break n}}if(H[b+68>>2]){continue}break}}c=0}if(c){break e}if(Dr(b)){break e}h=h+20|0;if((o|0)!=(h|0)){continue}break d}break}PD(b);H[j+12>>2]=0;H[j+8>>2]=0;break c}PD(b);b=H[l>>2];H[a>>2]=b;H[j+12>>2]=b;b=a;a=H[l+12>>2];H[b+4>>2]=a;H[j+8>>2]=a;Kb(l)}xb=m+32|0;d=H[j+8>>2];b=0;if(!d){break a}a=Qb(20);H[a+4>>2]=0;H[a+8>>2]=0;H[a>>2]=245168;H[a+12>>2]=0;H[a+16>>2]=0;yr(a,H[j+12>>2],d);b=H[a+4>>2]}xb=j+16|0;return b|0}function GK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=rg(H[H[b+96>>2]+4>>2],9005);if(!f){return 11}g=bc(a,0);a:{if(g){break a}g=zb[H[f+4>>2]](a,b,c,d,e)|0;if(g){break a}j=H[b+104>>2];g=2;a=H[b+148>>2];b:{if((a|0)<=65535){if((a|0)==-1519689116|(a|0)==-1519619212){break b}break a}if((a|0)==65536|(a|0)==1953658213){break b}if((a|0)!=131072){break a}}H[b+8>>2]=H[b+8>>2]|2048;g=0;if((c|0)<0){break a}g=zb[H[f+8>>2]](j,b,c,d,e)|0;if(g){break a}l=xb-128|0;xb=l;c:{d:{if(!b){break d}a=H[b+20>>2];if(a){i=1;if(_c(a,96928)){break c}if(_c(a,96948)){break c}if(_c(a,96968)){break c}if(_c(a,96988)){break c}if(_c(a,97008)){break c}if(_c(a,97028)){break c}if(_c(a,97048)){break c}if(_c(a,97068)){break c}if(_c(a,97088)){break c}if(_c(a,97108)){break c}if(_c(a,97128)){break c}if(_c(a,97148)){break c}if(_c(a,97168)){break c}if(_c(a,97188)){break c}if(_c(a,97208)){break c}if(_c(a,97228)){break c}if(_c(a,97248)){break c}if(_c(a,97268)){break c}if(_c(a,97288)){break c}if(_c(a,97308)){break c}if(_c(a,97328)){break c}if(_c(a,97348)){break c}if(_c(a,97368)){break c}if(_c(a,97388)){break c}if(_c(a,97408)){break c}if(_c(a,97428)){break c}}f=Nb(l,0,116);e:{f:{a=J[b+152>>1];if(!a){break f}d=0;while(1){i=0;e=1;g=0;h=H[b+156>>2];n=m<<4;k=H[h+n>>2];g:{if((k|0)!=1668707360){h:{if((k|0)!=1886545264){if((k|0)!=1718642541){break g}g=1;break h}g=2}e=d}a=0;while(1){d=h+n|0;p=N(i,24)+(g<<3)|0;if(H[d+12>>2]==H[p+97460>>2]){i:{if(a){break i}h=H[b+516>>2];if(!h){a=0;break i}a=0;if(zb[h|0](b,H[d>>2],H[b+104>>2],0)|0){break i}k=H[b+104>>2];h=H[(H[b+156>>2]+n|0)+12>>2];if(Jc(k,h)){break i}if(h>>>0>3){while(1){a=de(k)+a|0;h=h-4|0;if(h>>>0>3){continue}break}}d=3;if(h){while(1){o=a;a=H[k+32>>2];if(a>>>0>2]){H[k+32>>2]=a+1;a=F[a|0]}else{a=0}a=o+((a<<24>>24&255)<<(d<<3))|0;d=d-1|0;h=h-1|0;if(h){continue}break}}wc(k)}d=f+(i<<2)|0;h=H[d>>2];if(H[p+97456>>2]==(a|0)){h=h+1|0;H[d>>2]=h}if((h|0)==3){break e}}i=i+1|0;if((i|0)!=29){h=H[b+156>>2];continue}break}a=J[b+152>>1];d=e}m=m+1|0;if(m>>>0>>0){continue}break}if(!(d&255)){break f}i=1;if(H[f>>2]==3|H[f+4>>2]==3|(H[f+8>>2]==3|H[f+12>>2]==3)){break c}if(H[f+16>>2]==3|H[f+20>>2]==3|(H[f+24>>2]==3|H[f+28>>2]==3)){break c}if(H[f+32>>2]==3|H[f+36>>2]==3|(H[f+40>>2]==3|H[f+44>>2]==3)){break c}if(H[f+48>>2]==3|H[f+52>>2]==3|(H[f+56>>2]==3|H[f+60>>2]==3)){break c}if(H[f+64>>2]==3|H[f+68>>2]==3|(H[f+72>>2]==3|H[f+76>>2]==3)){break c}if(H[f+80>>2]==3|H[f+84>>2]==3|(H[f+88>>2]==3|H[f+92>>2]==3)){break c}if(H[f+96>>2]==3|H[f+100>>2]==3|(H[f+104>>2]==3|H[f+108>>2]==3)){break c}if(H[f+112>>2]==3){break c}break d}i=0;while(1){d=f+(i<<2)|0;a=H[d>>2];if(i-16>>>0<=11){a=a+1|0;H[d>>2]=a}if((a|0)==3){break e}a=i|1;if((a|0)==29){break d}d=f+(a<<2)|0;a=H[d>>2];if(i-15>>>0<=11){a=a+1|0;H[d>>2]=a}if((a|0)==3){break e}i=i+2|0;continue}}i=1;break c}i=0}xb=l+128|0;if(i){H[b+8>>2]=H[b+8>>2]|8192}d=0;f=xb-16|0;xb=f;k=H[j+28>>2];j:{if(zb[H[b+516>>2]](b,1751412088,j,f+8|0)|0){break j}a=H[f+8>>2];if(a>>>0<8){break j}h=b+768|0;a=Ke(j,a,h);H[f+12>>2]=a;k:{if(a){break k}l:{m:{e=H[h>>2];a=I[e+2|0]<<8|I[e+3|0];if(a>>>0<=255){l=H[f+8>>2];g=I[e+4|0]|I[e+5|0]<<8|(I[e+6|0]<<16|I[e+7|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);i=g>>>0>4294901759?g&65535:g;if(!a|i-65538>>>0>4294901761){break m}}H[f+12>>2]=3;break l}q=b,r=Ub(k,1,0,a,0,f+12|0),H[q+784>>2]=r;if(H[f+12>>2]){break l}n:{if(!a){break n}g=e+8|0;h=e+l|0;while(1){e=g+i|0;if(e>>>0>h>>>0){break n}F[H[b+784>>2]+d|0]=I[g|0];g=e;d=d+1|0;if((a|0)!=(d|0)){continue}break}d=a}H[b+776>>2]=d;a=H[f+8>>2];H[b+780>>2]=i;H[b+772>>2]=a;break k}nd(j,h);H[b+772>>2]=0}d=H[f+12>>2]}xb=f+16|0;g=d;if(d){break a}g=0;o:{if(!(F[b+8|0]&1)){break o}p:{if(H[H[b+128>>2]+52>>2]){break p}g=xb-16|0;xb=g;d=zb[H[b+516>>2]](b,1735162214,j,b+724|0)|0;q:{r:{if((d&255)==142){H[b+724>>2]=0;a=0;break r}if(d){break q}a=0;if(H[H[b+128>>2]+52>>2]){break r}a=H[j+8>>2]}H[b+728>>2]=a;d=144;if(zb[H[b+516>>2]](b,1819239265,j,g+12|0)|0){break q}a=H[g+12>>2];s:{if(J[b+210>>1]){e=2;if(a>>>0>=262144){H[g+12>>2]=262143;a=262143}break s}e=1;if(a>>>0>=131072){H[g+12>>2]=131071;a=131071}}d=a>>>e|0;H[b+760>>2]=d;f=H[b+16>>2];t:{if(f>>>0>>0){break t}o=d;d=f+1|0;if((o|0)==(d|0)){break t}a=d<>2];f=H[j+8>>2];d=J[b+152>>1];u:{if(d){k=(d<<4)+e|0;d=2147483647;i=0;while(1){h=H[e+8>>2]-f|0;l=(h|0)>0&(d|0)>(h|0);i=l?1:i;d=l?h:d;e=e+16|0;if(k>>>0>e>>>0){continue}break}if(i&255){break u}}d=H[j+4>>2]-f|0}if(a>>>0<=d>>>0){H[b+760>>2]=H[b+16>>2]+1;H[g+12>>2]=a;break t}a=H[b+760>>2];H[b+16>>2]=a?a-1|0:0;a=H[g+12>>2]}d=Ke(j,a,b+764|0)}xb=g+16|0;g=d;if(H[b+724>>2]){if(g){break a}if((g&255)!=142){break p}break a}if(g){break a}}g=su(b,j);if((g&255)!=142?g:0){break a}a=xb-16|0;xb=a;v:{if(zb[H[b+516>>2]](b,1718642541,j,a+12|0)|0){H[b+684>>2]=0;H[b+688>>2]=0;g=0;break v}d=H[a+12>>2];H[b+684>>2]=d;g=Ke(j,d,b+688|0)}xb=a+16|0;if((g&255)!=142?g:0){break a}a=xb-16|0;xb=a;w:{if(zb[H[b+516>>2]](b,1886545264,j,a+12|0)|0){H[b+692>>2]=0;H[b+696>>2]=0;g=0;break w}d=H[a+12>>2];H[b+692>>2]=d;g=Ke(j,d,b+696|0)}xb=a+16|0;if((g&255)!=142?g:0){break a}if(!H[b+764>>2]|(H[H[b+128>>2]+52>>2]|!H[b+28>>2])){break o}a=0;d=0;f=xb-16|0;xb=f;e=0;x:{if(!H[b+760>>2]){break x}while(1){jo(b,a,f+12|0);y:{if(!H[f+12>>2]){break y}i=e-1|0;e=1;d=a;if(i>>>0>=4294967294){break y}e=0;break x}a=a+1|0;if(a>>>0>2]){continue}break}a=!e;e=0;if(a){break x}e=1;if(!d){break x}e=0;if(GB(b,d,f+4|0,8)|I[f+4|0]!=46){break x}e=(I[f+4|0]|I[f+5|0]<<8|(I[f+6|0]<<16|I[f+7|0]<<24))==1953459758&(I[f+8|0]|I[f+9|0]<<8|(I[f+10|0]<<16|I[f+11|0]<<24))==6710628}xb=f+16|0;if(!e){break o}H[b+8>>2]=H[b+8>>2]&-2}if(!(!(H[b+8>>2]&256)|c>>>0<65536)){g=ru(b,c>>>16|0);if(g){break a}qu(b);g=0}H[b+528>>2]=75;H[b+536>>2]=76;H[b+532>>2]=77;H[b+520>>2]=78;H[b+524>>2]=79}return g|0}function PE(a,b,c){var d=0,e=0;a:{b:{c:{switch(c-1|0){case 0:d:{e:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}c=a;f:{g:{h:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break g}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break h}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break f}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=733;break a}c=a;i:{j:{k:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break j}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break k}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break i}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=734;break a;case 1:l:{m:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break l;case 0:break m;default:break b}}c=a;n:{o:{p:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break o}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break p}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break n}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=735;break a}c=a;q:{r:{s:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break r}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break s}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break q}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=736;break a;case 2:if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=a;t:{u:{v:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break u}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break v}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break t}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=737;break a;case 3:if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=a;w:{x:{y:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break x}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break y}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break w}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=738;break a;case 4:if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=a;z:{A:{B:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break A}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break B}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break z}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=739;break a;case 5:if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=a;C:{D:{E:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break D}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break E}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break C}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=740;break a;case 6:F:{G:{H:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break F;case 1:break G;case 0:break H;default:break b}}dF(b,a);return}cF(b,a);return}bF(b,a);return;case 7:I:{J:{K:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break I;case 1:break J;case 0:break K;default:break b}}aF(b,a);return}$E(b,a);return}_E(b,a);return;case 8:break c;default:break b}}if((I[a|0]|I[a+1|0]<<8)==256){c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?c+a|0:163632;a=I[a+2|0]|I[a+3|0]<<8;PE(c,b,(a<<8|a>>>8)&65535)}}return}H[a>>2]=c;H[a+16>>2]=0;a=a+8|0;b=I[c+2|0]|I[c+3|0]<<8;L:{if(!b){Ee(163632,a);break L}Ee(((b<<8|b>>>8)&65535)+c|0,a)}}function DU(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,s=0,t=0,u=0,w=0,x=0,y=0,z=0;l=xb-560|0;xb=l;H[l+44>>2]=0;A(+b);g=v(1)|0;v(0)|0;a:{if((g|0)<0){s=1;w=238203;b=-b;A(+b);g=v(1)|0;v(0)|0;break a}if(e&2048){s=1;w=238206;break a}s=e&1;w=s?238209:238204;z=!s}b:{if((g&2146435072)==2146435072){d=s+3|0;Ie(a,32,c,d,e&-65537);xe(a,w,s);f=f&32;xe(a,b!=b?f?238829:239605:f?239051:239637,3);Ie(a,32,c,d,e^8192);i=(c|0)<(d|0)?d:c;break b}u=l+16|0;c:{d:{e:{b=_x(b,l+44|0);b=b+b;if(b!=0){g=H[l+44>>2];H[l+44>>2]=g-1;r=f|32;if((r|0)!=97){break e}break c}r=f|32;if((r|0)==97){break c}k=H[l+44>>2];m=(d|0)<0?6:d;break d}k=g-29|0;H[l+44>>2]=k;b=b*268435456;m=(d|0)<0?6:d}p=(k|0)<0?l+48|0:l+336|0;h=p;while(1){if(b<4294967296&b>=0){d=~~b>>>0}else{d=0}H[h>>2]=d;h=h+4|0;b=(b-+(d>>>0))*1e9;if(b!=0){continue}break}f:{if((k|0)<=0){d=k;g=h;j=p;break f}j=p;d=k;while(1){d=(d|0)<29?d:29;g=h-4|0;g:{if(j>>>0>g>>>0){break g}i=0;while(1){o=H[g>>2];n=d&31;x=i;if((d&63)>>>0>=32){i=o<>>32-n;o=o<>>0>>0?i+1|0:i;i=ima(n,i,1e9,0);o=gma(i,yb,1e9,0);H[g>>2]=n-o;g=g-4|0;if(j>>>0<=g>>>0){continue}break}if(!i){break g}j=j-4|0;H[j>>2]=i}while(1){g=h;if(j>>>0>>0){h=g-4|0;if(!H[h>>2]){continue}}break}d=H[l+44>>2]-d|0;H[l+44>>2]=d;h=g;if((d|0)>0){continue}break}}if((d|0)<0){t=((m+25>>>0)/9|0)+1|0;n=(r|0)==102;while(1){d=0-d|0;i=(d|0)<9?d:9;h:{if(g>>>0<=j>>>0){h=H[j>>2];break h}o=1e9>>>i|0;y=-1<>2];H[h>>2]=x+(d>>>i|0);d=N(o,d&y);h=h+4|0;if(h>>>0>>0){continue}break}h=H[j>>2];if(!d){break h}H[g>>2]=d;g=g+4|0}d=i+H[l+44>>2]|0;H[l+44>>2]=d;j=(!h<<2)+j|0;h=n?p:j;g=g-h>>2>(t|0)?h+(t<<2)|0:g;if((d|0)<0){continue}break}}d=0;i:{if(g>>>0<=j>>>0){break i}d=N(p-j>>2,9);h=10;i=H[j>>2];if(i>>>0<10){break i}while(1){d=d+1|0;h=N(h,10);if(i>>>0>=h>>>0){continue}break}}h=(m-((r|0)==102?0:d)|0)-((r|0)==103&(m|0)!=0)|0;if((h|0)<(N(g-p>>2,9)-9|0)){i=h+9216|0;n=(i|0)/9|0;k=((((k|0)<0?4:292)+l|0)+(n<<2)|0)-4048|0;h=10;i=i-N(n,9)|0;if((i|0)<=7){while(1){h=N(h,10);i=i+1|0;if((i|0)!=8){continue}break}}n=H[k>>2];t=(n>>>0)/(h>>>0)|0;i=n-N(h,t)|0;o=k+4|0;j:{if(!i&(o|0)==(g|0)){break j}k:{if(!(t&1)){b=9007199254740992;if(!(F[k-4|0]&1)|((h|0)!=1e9|j>>>0>=k>>>0)){break k}}b=9007199254740994}q=(g|0)==(o|0)?1:1.5;o=h>>>1|0;q=i>>>0>>0?.5:(o|0)==(i|0)?q:1.5;if(!(I[w|0]!=45|z)){q=-q;b=-b}i=n-i|0;H[k>>2]=i;if(b+q==b){break j}d=h+i|0;H[k>>2]=d;if(d>>>0>=1e9){while(1){H[k>>2]=0;k=k-4|0;if(k>>>0>>0){j=j-4|0;H[j>>2]=0}d=H[k>>2]+1|0;H[k>>2]=d;if(d>>>0>999999999){continue}break}}d=N(p-j>>2,9);h=10;i=H[j>>2];if(i>>>0<10){break j}while(1){d=d+1|0;h=N(h,10);if(i>>>0>=h>>>0){continue}break}}h=k+4|0;g=g>>>0>h>>>0?h:g}while(1){h=g;i=g>>>0<=j>>>0;if(!i){g=h-4|0;if(!H[g>>2]){continue}}break}l:{if((r|0)!=103){k=e&8;break l}g=m?m:1;k=(g|0)>(d|0)&(d|0)>-5;m=(k?d^-1:-1)+g|0;f=(k?-1:-2)+f|0;k=e&8;if(k){break l}g=-9;m:{if(i){break m}n=H[h-4>>2];if(!n){break m}i=10;g=0;if((n>>>0)%10|0){break m}while(1){k=g;g=g+1|0;i=N(i,10);if(!((n>>>0)%(i>>>0)|0)){continue}break}g=k^-1}i=N(h-p>>2,9);if((f&-33)==70){k=0;g=(g+i|0)-9|0;g=(g|0)>0?g:0;m=(g|0)>(m|0)?m:g;break l}k=0;g=((d+i|0)+g|0)-9|0;g=(g|0)>0?g:0;m=(g|0)>(m|0)?m:g}i=-1;r=k|m;if(((r?2147483645:2147483646)|0)<(m|0)){break b}n=(((r|0)!=0)+m|0)+1|0;o=f&-33;n:{if((o|0)==70){if((2147483647-n|0)<(d|0)){break b}g=(d|0)>0?d:0;break n}g=d>>31;g=cj((g^d)-g|0,0,u);if((u-g|0)<=1){while(1){g=g-1|0;F[g|0]=48;if((u-g|0)<2){continue}break}}t=g-2|0;F[t|0]=f;F[g-1|0]=(d|0)<0?45:43;g=u-t|0;if((g|0)>(2147483647-n|0)){break b}}d=g+n|0;if((d|0)>(s^2147483647)){break b}f=d+s|0;Ie(a,32,c,f,e);xe(a,w,s);Ie(a,48,c,f,e^65536);o:{p:{q:{if((o|0)==70){g=l+16|0;d=g|8;k=g|9;i=j>>>0>p>>>0?p:j;j=i;while(1){g=cj(H[j>>2],0,k);r:{if((i|0)!=(j|0)){if(l+16>>>0>=g>>>0){break r}while(1){g=g-1|0;F[g|0]=48;if(l+16>>>0>>0){continue}break}break r}if((g|0)!=(k|0)){break r}F[l+24|0]=48;g=d}xe(a,g,k-g|0);j=j+4|0;if(p>>>0>=j>>>0){continue}break}if(r){xe(a,239676,1)}if((m|0)<=0|h>>>0<=j>>>0){break q}while(1){g=cj(H[j>>2],0,k);if(g>>>0>l+16>>>0){while(1){g=g-1|0;F[g|0]=48;if(l+16>>>0>>0){continue}break}}xe(a,g,(m|0)<9?m:9);g=m-9|0;j=j+4|0;if(h>>>0<=j>>>0){break p}d=(m|0)>9;m=g;if(d){continue}break}break p}s:{if((m|0)<0){break s}i=h>>>0>j>>>0?h:j+4|0;g=l+16|0;d=g|8;p=g|9;h=j;while(1){g=cj(H[h>>2],0,p);if((p|0)==(g|0)){F[l+24|0]=48;g=d}t:{if((h|0)!=(j|0)){if(l+16>>>0>=g>>>0){break t}while(1){g=g-1|0;F[g|0]=48;if(l+16>>>0>>0){continue}break}break t}xe(a,g,1);g=g+1|0;if(!(k|m)){break t}xe(a,239676,1)}x=g;g=p-g|0;xe(a,x,(g|0)>(m|0)?m:g);m=m-g|0;h=h+4|0;if(i>>>0<=h>>>0){break s}if((m|0)>=0){continue}break}}Ie(a,48,m+18|0,18,0);xe(a,t,u-t|0);break o}g=m}Ie(a,48,g+9|0,9,0)}Ie(a,32,c,f,e^8192);i=(c|0)<(f|0)?f:c;break b}m=(f<<26>>31&9)+w|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[m|0]==45){b=-(q+(-b-q));break u}b=b+q-q}h=H[l+44>>2];g=h>>31;g=cj((g^h)-g|0,0,u);if((u|0)==(g|0)){F[l+15|0]=48;g=l+15|0}k=s|2;j=f&32;h=H[l+44>>2];p=g-2|0;F[p|0]=f+15;F[g-1|0]=(h|0)<0?45:43;i=e&8;h=l+16|0;while(1){f=h;if(P(b)<2147483648){g=~~b}else{g=-2147483648}F[h|0]=j|I[g+766832|0];b=(b-+(g|0))*16;h=f+1|0;if(!(!((d|0)>0|i)&b==0|(h-(l+16|0)|0)!=1)){F[f+1|0]=46;h=f+2|0}if(b!=0){continue}break}i=-1;n=u-p|0;f=n+k|0;if((2147483645-f|0)<(d|0)){break b}v:{w:{if(!d){break w}j=h-(l+16|0)|0;if((j-2|0)>=(d|0)){break w}g=d+2|0;break v}j=h-(l+16|0)|0;g=j}d=g+f|0;Ie(a,32,c,d,e);xe(a,m,k);Ie(a,48,c,d,e^65536);xe(a,l+16|0,j);Ie(a,48,g-j|0,0,0);xe(a,p,n);Ie(a,32,c,d,e^8192);i=(c|0)<(d|0)?d:c}xb=l+560|0;return i|0}function UD(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;b=xb-272|0;xb=b;H[b+60>>2]=0;H[b+64>>2]=0;a:{if(!a){RD(b+24|0);break a}H[b- -64>>2]=H[a+40>>2];c=H[a+36>>2];H[b+56>>2]=H[a+32>>2];H[b+60>>2]=c;c=H[a+28>>2];H[b+48>>2]=H[a+24>>2];H[b+52>>2]=c;c=H[a+20>>2];H[b+40>>2]=H[a+16>>2];H[b+44>>2]=c;c=H[a+12>>2];H[b+32>>2]=H[a+8>>2];H[b+36>>2]=c;c=H[a+4>>2];H[b+24>>2]=H[a>>2];H[b+28>>2]=c}H[b+68>>2]=0;c=H[b+52>>2];e=H[196370]&1?1:5;a=H[b+24>>2];if(!a){a=H[b+56>>2]}f=zb[a|0](c,0,e)|0;H[b+72>>2]=f;b:{if(!f){break b}c:{d:{e:{if(We(b+24|0,f,0,0,2)){break e}j=Uh(b+24|0,f);g=yb;k=Tb(1028);if(!k){break e}a=!g&j>>>0<65535;l=a?j:65535;m=a?g:0;c=4;f:{g:{while(1){if((d|0)==(m|0)&c>>>0>=l>>>0|d>>>0>m>>>0){break g}c=c+1024|0;d=c>>>0<1024?d+1|0:d;a=j;h=(d|0)==(m|0)&c>>>0>>0|d>>>0>>0;c=h?c:l;q=a-c|0;d=h?d:m;h=g-(d+(a>>>0>>0)|0)|0;if(We(b+24|0,f,q,h,0)){break g}e=!d&c>>>0<1028?c:1028;if((zb[H[b+28>>2]](H[b+52>>2],f,k,e)|0)!=(e|0)){break g}n=0;i=0;h:{if(e>>>0<4){break h}a=e-3|0;e=e-4|0;while(1){o=a;a=e;e=k+a|0;if(!(I[e|0]!=80|I[k+o|0]!=75|(I[e+2|0]!=6|I[e+3|0]!=7))){e=a;i=a+q|0;a=h;n=i;i=e>>>0>i>>>0?a+1|0:a;break h}e=a-1|0;if((a|0)>0){continue}break}}if(!(i|n)){continue}break}Kb(k);if(We(b+24|0,f,n,i,0)){break e}if(Xd(b+24|0,f,b)){break e}if(Xd(b+24|0,f,b)|H[b>>2]){break e}if(Xg(b+24|0,f,b+264|0)){break e}if(Xd(b+24|0,f,b)|H[b>>2]!=1){break e}a=H[b+268>>2];h=a;j=H[b+264>>2];if(We(b+24|0,f,j,a,0)){break e}if(Xd(b+24|0,f,b)|H[b>>2]!=101075792){break e}if(h|j){break f}break e}Kb(k);break e}H[b+256>>2]=1;a=b+24|0;c=We(a,H[b+72>>2],j,h,0);e=Xd(a,H[b+72>>2],b+20|0);d=Xg(a,H[b+72>>2],b);p=-1;a=H[b+72>>2];i:{if((zb[H[b+28>>2]](H[b+52>>2],a,b+264|0,1)|0)!=1){if(zb[H[b+48>>2]](H[b+52>>2],a)|0){break i}}if((zb[H[b+28>>2]](H[b+52>>2],a,b+264|0,1)|0)!=1){if(zb[H[b+48>>2]](H[b+52>>2],a)|0){break i}}p=c|(d|e)?-1:0}c=H[b+72>>2];j:{if((zb[H[b+28>>2]](H[b+52>>2],c,b+264|0,1)|0)!=1){a=-1;if(zb[H[b+48>>2]](H[b+52>>2],c)|0){break j}}if((zb[H[b+28>>2]](H[b+52>>2],c,b+264|0,1)|0)!=1){a=-1;if(zb[H[b+48>>2]](H[b+52>>2],c)|0){break j}}a=p}c=b+24|0;e=Xd(c,H[b+72>>2],b+16|0);d=Xd(c,H[b+72>>2],b+12|0);f=Xg(c,H[b+72>>2],b+80|0);g=Xg(c,H[b+72>>2],b+264|0);p=H[b+80>>2];i=H[b+84>>2];o=H[b+264>>2];k=H[b+268>>2];m=H[b+16>>2];l=H[b+12>>2];n=Xg(c,H[b+72>>2],b+136|0);c=Xg(c,H[b+72>>2],b+144|0);H[b+88>>2]=0;c=c|n?-1:(o|0)!=(p|0)|(i|0)!=(k|0)?-103:l|m?-103:f|g|(d|e)?-1:a;break d}j=0;h=0;i=H[b+72>>2];k:{if(We(b+24|0,i,0,0,2)){f=-1;break k}o=Uh(b+24|0,i);k=yb;f=-1;n=Tb(1028);if(!n){break k}a=!k&o>>>0<65535;q=a?o:65535;l=a?k:0;c=4;d=0;l:{while(1){j=0;h=0;if((d|0)==(l|0)&c>>>0>=q>>>0|d>>>0>l>>>0){break l}c=c+1024|0;d=c>>>0<1024?d+1|0:d;a=o;g=(d|0)==(l|0)&c>>>0>>0|d>>>0>>0;c=g?c:q;r=a-c|0;d=g?d:l;g=k-(d+(a>>>0>>0)|0)|0;if(We(b+24|0,i,r,g,0)){break l}e=!d&c>>>0<1028?c:1028;if((zb[H[b+28>>2]](H[b+52>>2],i,n,e)|0)!=(e|0)){break l}m:{if(e>>>0<4){break m}a=e-3|0;e=e-4|0;while(1){m=a;a=e;e=n+a|0;if(!(I[e|0]!=80|I[m+n|0]!=75|(I[e+2|0]!=5|I[e+3|0]!=6))){e=a+r|0;h=e>>>0>>0?g+1|0:g;j=e;break m}e=a-1|0;if((a|0)>0){continue}break}}if(!(h|j)){continue}break}f=0}Kb(n)}H[b+256>>2]=0;a=b+24|0;g=We(a,H[b+72>>2],j,h,0);i=Xd(a,H[b+72>>2],b+20|0);d=H[b+72>>2];n:{o:{if((zb[H[b+28>>2]](H[b+52>>2],d,b+264|0,1)|0)==1){e=I[b+264|0];break o}e=0;a=-1;if(zb[H[b+48>>2]](H[b+52>>2],d)|0){break n}}p:{if((zb[H[b+28>>2]](H[b+52>>2],d,b+264|0,1)|0)==1){c=I[b+264|0];break p}c=e;a=-1;if(zb[H[b+48>>2]](H[b+52>>2],d)|0){break n}}p=c<<8|e;a=g|i?-1:f}H[b+16>>2]=p;d=H[b+72>>2];q:{r:{if((zb[H[b+28>>2]](H[b+52>>2],d,b+264|0,1)|0)==1){e=I[b+264|0];break r}e=0;c=-1;if(zb[H[b+48>>2]](H[b+52>>2],d)|0){break q}}s:{if((zb[H[b+28>>2]](H[b+52>>2],d,b+264|0,1)|0)==1){c=I[b+264|0];break s}c=e;if(!(zb[H[b+48>>2]](H[b+52>>2],d)|0)){break s}e=0;c=-1;break q}e=c<<8|e;c=a}H[b+12>>2]=e;t:{u:{d=H[b+72>>2];v:{if((zb[H[b+28>>2]](H[b+52>>2],d,b+264|0,1)|0)==1){a=I[b+264|0];break v}if(zb[H[b+48>>2]](H[b+52>>2],d)|0){break u}a=0}w:{if((zb[H[b+28>>2]](H[b+52>>2],d,b+264|0,1)|0)==1){f=I[b+264|0];break w}f=a;if(zb[H[b+48>>2]](H[b+52>>2],d)|0){break u}}a=a|f<<8;break t}c=-1;a=0}H[b+80>>2]=a;H[b+84>>2]=0;g=H[b+72>>2];x:{y:{if((zb[H[b+28>>2]](H[b+52>>2],g,b+264|0,1)|0)==1){a=I[b+264|0];break y}d=-1;a=0;if(zb[H[b+48>>2]](H[b+52>>2],g)|0){break x}}z:{if((zb[H[b+28>>2]](H[b+52>>2],g,b+264|0,1)|0)==1){f=I[b+264|0];break z}f=a;if(!(zb[H[b+48>>2]](H[b+52>>2],g)|0)){break z}d=-1;a=0;break x}d=c;a=f<<8|a}H[b+20>>2]=a;f=a;H[b+264>>2]=a;H[b+268>>2]=0;i=H[b+80>>2];o=H[b+84>>2];k=Xd(b+24|0,H[b+72>>2],b+20|0);H[b+136>>2]=H[b+20>>2];H[b+140>>2]=0;m=Xd(b+24|0,H[b+72>>2],b+20|0);H[b+144>>2]=H[b+20>>2];H[b+148>>2]=0;A:{g=H[b+72>>2];B:{C:{if((zb[H[b+28>>2]](H[b+52>>2],g,b,1)|0)==1){a=I[b|0];break C}if(zb[H[b+48>>2]](H[b+52>>2],g)|0){break B}a=0}if((zb[H[b+28>>2]](H[b+52>>2],g,b,1)|0)==1){c=I[b|0];break A}c=a;if(!(zb[H[b+48>>2]](H[b+52>>2],g)|0)){break A}}H[b+88>>2]=0;break c}H[b+88>>2]=a|c<<8;c=k|m?-1:(f|0)!=(i|0)|o?-103:e|p?-103:d}e=H[b+144>>2];a=e+H[b+136>>2]|0;d=H[b+140>>2]+H[b+148>>2]|0;d=a>>>0>>0?d+1|0:d;if(c|((d|0)==(h|0)&a>>>0>j>>>0|d>>>0>h>>>0)){break c}H[b+248>>2]=0;H[b+252>>2]=0;H[b+128>>2]=j;H[b+132>>2]=h;H[b+96>>2]=j-a;H[b+100>>2]=h-((a>>>0>j>>>0)+d|0);a=Tb(240);if(!a){break b}s=Ob(a,b+24|0,240);a=s;H[a+80>>2]=0;H[a+84>>2]=0;c=H[a+124>>2];H[a+88>>2]=H[a+120>>2];H[a+92>>2]=c;t=a,u=!Er(a,a+128|0,a+216|0,0,0),H[t+96>>2]=u;H[a+100>>2]=0;break b}zb[H[b+44>>2]](H[b+52>>2],H[b+72>>2])|0}xb=b+272|0;return s}function lI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=xb-160|0;xb=f;l=H[b+100>>2];g=H[b+104>>2];d=0;H[b+132>>2]=0;e=bc(g,0);H[f+156>>2]=e;h=c>>31;i=(h^c)-h&65535;a:{if(e){break a}e=Ic(g,103376,f+152|0);H[f+156>>2]=e;if(e){break a}H[f+156>>2]=2;b:{c:{if(J[f+152>>1]!=23117){break c}e=bc(g,J[f+154>>1]);H[f+156>>2]=e;if(e){break a}e=Ic(g,103408,f+144|0);H[f+156>>2]=e;if(e){break a}h=2;H[f+156>>2]=2;d:{e:{f:{g:{switch(J[f+144>>1]-17742|0){case 0:e=bc(g,J[f+146>>1]+J[f+154>>1]|0);H[f+156>>2]=e;if(e){break a}e=Jc(g,J[f+148>>1]-J[f+146>>1]|0);H[f+156>>2]=e;if(e){break a}k=wi(g);if(k>>>0>16){break b}j=wi(g);h:{if(j){while(1){h=wi(g);e=((H[g+8>>2]+H[g+32>>2]|0)-H[g+36>>2]|0)+4|0;if((j&65535)==32776){break h}H[g+32>>2]=(H[g+32>>2]+N(h,12)|0)+4;j=wi(g);if(j){continue}break}}h=0;e=0}wc(g);if(!(e?h:0)){H[f+156>>2]=3;break a}if(K[g+4>>2]>>0){H[f+156>>2]=3;break a}H[b>>2]=h;if((c|0)<0){break a}if(h>>>0<=i>>>0){H[f+156>>2]=6;break a}r=b,s=pc(l,172,f+156|0),H[r+132>>2]=s;if(H[f+156>>2]){break a}e=bc(g,e+N(i,12)|0);H[f+156>>2]=e;if(e){break c}e=Jc(g,12);H[f+156>>2]=e;if(e){break c}e=wi(g);H[H[b+132>>2]>>2]=e<>2]+164>>2]=e<>2]=H[g+32>>2]+8;wc(g);h=fo(H[b+132>>2],g);H[f+156>>2]=h;break f;case 2:break g;default:break f}}e=bc(g,J[f+154>>1]);H[f+156>>2]=e;if(e){break a}e=Ic(g,103440,f+120|0);H[f+156>>2]=e;if(e){break a}i:{if(!(H[f+120>>2]!=17744|J[f+124>>1]!=332|J[f+128>>1]!=224)){if(J[f+130>>1]==267){break i}}H[f+156>>2]=3;break a}h=0;H[b>>2]=0;if(!J[f+126>>1]){break e}while(1){e=Ic(g,103504,f+96|0);H[f+156>>2]=e;if(e){break a}if(H[f+132>>2]!=H[f+104>>2]){h=h+1|0;if(J[f+126>>1]<=(h&65535)>>>0){break e}continue}break}e=bc(g,H[f+112>>2]);H[f+156>>2]=e;if(e){break a}e=Ic(g,103536,f+80|0);H[f+156>>2]=e;if(e){break a}if(J[f+94>>1]!=(0-J[f+92>>1]|0)){m=H[f+112>>2];o=m+16|0;h=0;while(1){e=bc(g,(h<<3)+o|0);H[f+156>>2]=e;if(e){break a}e=Ic(g,103568,f+40|0);H[f+156>>2]=e;if(e){break a}e=H[f+44>>2];if((e|0)>=0){H[f+156>>2]=3;break a}e=e&2147483647;H[f+44>>2]=e;e=e+H[f+112>>2]|0;h=bc(g,e);H[f+156>>2]=h;if(h){break a}h=Ic(g,103536,f- -64|0);H[f+156>>2]=h;if(h){break a}if(J[f+78>>1]!=(0-J[f+76>>1]|0)){p=e+16|0;h=0;k=0;while(1){e=bc(g,(h<<3)+p|0);H[f+156>>2]=e;if(e){break a}e=Ic(g,103568,f+32|0);H[f+156>>2]=e;if(e){break a}e=H[f+36>>2];if((e|0)>=0){H[f+156>>2]=3;break a}e=e&2147483647;H[f+36>>2]=e;e=e+H[f+112>>2]|0;h=bc(g,e);H[f+156>>2]=h;if(h){break a}h=Ic(g,103536,f+48|0);H[f+156>>2]=h;if(h){break a}if(J[f+62>>1]!=(0-J[f+60>>1]|0)){q=e+16|0;h=0;j=0;while(1){e=bc(g,(h<<3)+q|0);H[f+156>>2]=e;if(e){break a}e=Ic(g,103568,f+24|0);H[f+156>>2]=e;if(e){break a}if(H[f+36>>2]<0){H[f+156>>2]=3;break a}if(H[f+40>>2]==8){e=bc(g,H[f+28>>2]+m|0);H[f+156>>2]=e;if(e){break a}e=Ic(g,103584,f+8|0);H[f+156>>2]=e;if(e){break a}e=H[b>>2];if((e|0)==(i|0)){e=pc(l,172,f+156|0);H[b+132>>2]=e;if(H[f+156>>2]){break a}H[e>>2]=(H[f+8>>2]+H[f+112>>2]|0)-H[f+104>>2];H[e+164>>2]=H[f+12>>2];e=fo(e,g);H[f+156>>2]=e;if(e){break c}e=H[b>>2]}H[b>>2]=e+1}j=j+1|0;h=j&65535;if(h>>>0>1]+J[f+60>>1]>>>0){continue}break}}k=k+1|0;h=k&65535;if(h>>>0>1]+J[f+76>>1]>>>0){continue}break}}n=n+1|0;h=n&65535;if(h>>>0>1]+J[f+92>>1]>>>0){continue}break}}h=0}e=H[b>>2];if(!e){H[f+156>>2]=3;break a}if((e|0)>(i|0)){break d}H[f+156>>2]=6;break a}H[f+156>>2]=3;break a}if(!h){break a}}e=H[b+132>>2];if(!e){break a}g=H[b+100>>2];if(H[e+160>>2]){nd(H[b+104>>2],e+160|0)}h=H[e+168>>2];if(h){zb[H[g+8>>2]](g,h)}H[e+168>>2]=0;if(e){zb[H[g+8>>2]](g,e)}H[b+132>>2]=0;break a}H[f+156>>2]=3;wc(g)}e=H[f+156>>2];H[f+96>>2]=e;j:{if(e?0:(c|0)<0){break j}k:{l:{m:{if((e&255)==2){e=pc(l,172,f+96|0);H[b+132>>2]=e;d=H[f+96>>2];if(d){break j}H[b>>2]=1;d=0;H[e>>2]=0;H[e+164>>2]=H[a+4>>2];a=fo(e,a);H[f+96>>2]=a;if(!(a|(c|0)<0)){if(!i){break m}H[f+96>>2]=6;break k}if(a){break k}break j}if(e){break l}}a=H[b+132>>2];if(!J[a+96>>1]){H[f+96>>2]=3;break k}H[b+4>>2]=i;c=H[b+8>>2];H[b+8>>2]=c|18;if(J[a+100>>1]==J[a+102>>1]){H[b+8>>2]=c|22}if(I[a+86|0]){H[b+12>>2]=H[b+12>>2]|1}if(J[a+90>>1]>=800){H[b+12>>2]=H[b+12>>2]|2}c=Ub(l,16,0,1,0,f+96|0);H[b+32>>2]=c;if(H[f+96>>2]){break k}H[b+28>>2]=1;G[c+2>>1]=J[a+100>>1];G[c>>1]=J[a+84>>1]+J[a+96>>1];e=J[a+74>>1]<<6;H[c+4>>2]=e;d=J[a+78>>1];g=e;e=J[a+76>>1];e=e?e:72;g=ic(g,e,72)+32&-64;H[c+12>>2]=g;i=d?d:72;d=J[a+96>>1]<<6;n:{if((d|0)>=(g|0)){h=H[c+4>>2];break n}H[c+12>>2]=d;h=ic(d,72,e);H[c+4>>2]=h}r=c,s=ic(h,i,72)+32&-64,H[r+8>>2]=s;H[f+120>>2]=b;H[f+124>>2]=0;H[f+128>>2]=0;if(I[a+92|0]==77){G[f+128>>1]=1;H[f+124>>2]=1634889070}c=of(103324,0,f+120|0,0);H[f+96>>2]=c;if(c){break k}c=I[a+105|0];d=I[a+104|0];if(c>>>0>>0){H[f+96>>2]=3;break k}H[b+16>>2]=(c-d|0)+2;c=H[a+8>>2];d=H[a+116>>2];if(c>>>0<=d>>>0){H[f+96>>2]=3;break k}c=c-d|0;d=pc(l,c+1|0,f+96|0);H[a+168>>2]=d;if(H[f+96>>2]){break k}Ob(d,H[a+160>>2]+H[a+116>>2]|0,c);F[c+H[a+168>>2]|0]=0;d=a;a=H[a+168>>2];a=Ub(l,1,c,ac(a)+1|0,a,f+96|0);H[d+168>>2]=a;if(H[f+96>>2]){break k}H[b+24>>2]=9328;H[b+20>>2]=a;c=H[b+12>>2];a=c&1;if(c&2){if(a){H[b+24>>2]=9527;d=0;break j}H[b+24>>2]=9643;d=0;break j}d=0;if(!a){break j}H[b+24>>2]=9796;break j}d=e;if(!b){break j}}a=H[b+100>>2];c=H[b+132>>2];if(c){if(H[c+160>>2]){nd(H[b+104>>2],c+160|0)}d=H[c+168>>2];if(d){zb[H[a+8>>2]](a,d)}H[c+168>>2]=0;if(c){zb[H[a+8>>2]](a,c)}H[b+132>>2]=0}c=H[b+32>>2];if(c){zb[H[a+8>>2]](a,c)}H[b+28>>2]=0;H[b+32>>2]=0;d=H[f+96>>2]}xb=f+160|0;return d|0}function Mla(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=O(0),m=0,n=0,o=0,p=0,q=0;f=xb+-64|0;xb=f;g=d;d=H[a+80>>2];p=g,q=(zb[H[d+176>>2]](a,H[a+84>>2],c,H[d+32>>2])|0)/2|0,H[p>>2]=q;g=xb-48|0;xb=g;i=b+52|0;d=H[i>>2];a:{if(d){break a}m=i-52|0;while(1){d=H[m>>2];if(!d){d=163632;break a}H[g+8>>2]=0;H[g+12>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;F[g+24|0]=0;H[g+28>>2]=0;H[g+32>>2]=0;H[g>>2]=0;H[g+4>>2]=0;h=kd(d);F[g+40|0]=1;H[g+36>>2]=h;d=dd(d,1448038983);if(!(!d|!H[d>>2])){H[d>>2]=H[d>>2]+1}F[g+24|0]=0;H[g+32>>2]=d;k=H[d+12>>2];H[g+4>>2]=k;j=H[d+16>>2];H[g+8>>2]=j+k;H[g+28>>2]=0;if(j>>>0>67108862){h=1073741823}else{h=j<<6;h=h>>>0>16384?h:16384;h=h>>>0<1073741823?h:1073741823}H[g+12>>2]=h;H[g+20>>2]=0;H[g>>2]=0;b:{if(!k){Wb(d);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;break b}c:{d:{if((j|0)<8){break d}H[g+12>>2]=h-8;if((j&-2)==6|(I[k|0]|I[k+1|0]<<8)!=256){break d}n=h-10|0;H[g+12>>2]=n;h=I[k+6|0]|I[k+7|0]<<8;if(!h){break c}h=((h<<8|h>>>8)&65535)<<2;if(h>>>0>j-8>>>0){break d}h=n-h|0;H[g+12>>2]=h;if((h|0)>0){break c}}Wb(d);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;Wb(d);d=163632;break b}Wb(d);H[g+32>>2]=0;H[g+4>>2]=0;H[g+8>>2]=0;if(H[d+4>>2]){H[d+4>>2]=0}}h=H[i>>2];d=d?d:163632;H[i>>2]=h?h:d;if(!h){break a}if(!(!d|(d|0)==163632)){Wb(d)}d=H[i>>2];if(!d){continue}break}}xb=g+48|0;e:{g=K[d+16>>2]<8?163632:H[d+12>>2];f:{if(I[g|0]|I[g+1|0]<<8|(I[g+2|0]|I[g+3|0]<<8)){n=H[a+48>>2];h=H[a+52>>2];g:{h:{a=I[g+6|0]|I[g+7|0]<<8;if(a){j=(a<<8|a>>>8)&65535;b=j-1|0;d=0;while(1){a=b+d>>>1|0;i=g+(a<<2)|0;i=I[i+8|0]|I[i+9|0]<<8;i=(i<<8|i>>>8)&65535;i:{if(i>>>0>c>>>0){b=a-1|0;break i}if((c|0)==(i|0)){break h}d=a+1|0}if((b|0)>=(d|0)){continue}break}}a=g+4|0;break g}a=(a>>>0>>0?(g+(a<<2)|0)+8|0:163632)+2|0}a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)<<16;b=a>>31;a=gma(n,h,a>>16,b)+32768|0;b=yb;b=a>>>0<32768?b+1|0:b;H[e>>2]=(b&65535)<<16|a>>>16;break f}H[f+56>>2]=0;H[f+60>>2]=0;H[f+48>>2]=0;H[f+52>>2]=0;d=H[b+60>>2];j:{if(d){break j}while(1){g=H[b>>2];if(!g){d=163632;break j}k:{d=oc(1,28);if(d){nl(d,g);g=H[b+60>>2];H[b+60>>2]=g?g:d;if(!g){break j}g=H[d+24>>2];H[197455]=0;ia(579,g|0);g=H[197455];H[197455]=0;if((g|0)==1){break e}Kb(d);break k}d=163632;g=H[b+60>>2];H[b+60>>2]=g?g:163632;if(g){break k}break j}d=H[b+60>>2];if(!d){continue}break}}if(lG(d,a,c,f+48|0)){b=fs(b+48|0);h=H[b>>2];l:{m:{if(h>>>0>c>>>0){g=H[b+4>>2];d=H[b+20>>2];d=((c|0)<0?163632:H[(d?d:163632)+12>>2]+(c<<2)|0)+2|0;break m}g=H[b+4>>2];d=0;if(g>>>0<=c>>>0){break l}d=H[b+20>>2];d=(c-h<<1)+((h|0)<0?163632:H[(d?d:163632)+12>>2]+(h<<2)|0)|0}d=I[d|0]|I[d+1|0]<<8;d=(d<<8|d>>>8)<<16>>16}n:{if(c>>>0>=g>>>0){break n}k=H[a+68>>2];if(!k){break n}b=H[b+24>>2];b=b?b:163632;g=H[b+16>>2];if(g){j=H[a+72>>2];b=g>>>0<20?163632:H[b+12>>2];g=I[b+12|0]|I[b+13|0]<<8|(I[b+14|0]<<16|I[b+15|0]<<24);h=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);o:{if(!h){break o}g=I[b+16|0]|I[b+17|0]<<8|(I[b+18|0]<<16|I[b+19|0]<<24);if(!(g<<24|g<<8&16711680|(g>>>8&65280|g>>>24))){break o}g=b+h|0;p:{if(I[g|0]){break p}h=I[g+2|0]|I[g+3|0]<<8;if(!h){break p}h=(h<<8|h>>>8)&65535;c=c>>>0>>0?c:h-1|0;i=I[g+1|0];m=i>>>4&3;h=m+1|0;g=g+N(c,h)|0;c=I[g+4|0];q:{if(!m){break q}c=I[g+5|0]|c<<8;if((h|0)==2){break q}c=I[g+6|0]|c<<8;if((h|0)==3){break q}c=I[g+7|0]|c<<8}g=(i&15)+1|0;c=c>>>g<<16|(-1<>>8&65280|b>>>24);b=b?g+b|0:163632;g=I[b+6|0]|I[b+7|0]<<8;h=(g<<8|g>>>8)&65535;g=c>>>16|0;if(h>>>0<=g>>>0){break o}g=b+(g<<2)|0;g=I[g+8|0]|I[g+9|0]<<8|(I[g+10|0]<<16|I[g+11|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);h=g?g+b|0:163632;g=b;b=I[b+2|0]|I[b+3|0]<<8|(I[b+4|0]<<16|I[b+5|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);l=ml(h,c&65535,j,k,b?g+b|0:163632)}l=O(l+O(d|0));if(O(P(l))>2];g=H[d+108>>2];r:{if(g){break r}while(1){h=H[d+48>>2];if(!h){g=163632;break r}s:{g=oc(1,28);if(g){nl(g,h);h=H[d+108>>2];H[d+108>>2]=h?h:g;if(!h){break r}h=H[g+24>>2];H[197455]=0;ia(579,h|0);h=H[197455];H[197455]=0;if((h|0)==1){break e}Kb(g);break s}g=163632;h=H[d+108>>2];H[d+108>>2]=h?h:163632;if(h){break s}break r}g=H[d+108>>2];if(!g){continue}break}}d=0;t:{if(K[g+16>>2]<=c>>>0){break t}H[b+48>>2]=2139095039;H[b+52>>2]=-8388609;H[b+56>>2]=-8388609;H[b+16>>2]=2139095039;H[b+20>>2]=-8388609;H[b+24>>2]=-8388609;H[b+44>>2]=2139095039;H[b+40>>2]=b- -64;d=H[b+44>>2];H[b+8>>2]=H[b+40>>2];H[b+12>>2]=d;H[b+32>>2]=a;H[b+36>>2]=b+128;d=H[b+36>>2];H[b>>2]=H[b+32>>2];H[b+4>>2]=d;if(!gs(g,a,c,b)){g=H[g+8>>2];h=H[g>>2];u:{if(h>>>0>c>>>0){d=H[g+20>>2];c=((c|0)<0?163632:H[(d?d:163632)+12>>2]+(c<<2)|0)+2|0;break u}d=0;if(K[g+4>>2]<=c>>>0){break t}d=c-h<<1;c=H[g+20>>2];c=d+((h|0)<0?163632:H[(c?c:163632)+12>>2]+(h<<2)|0)|0}c=I[c|0]|I[c+1|0]<<8;d=(c<<8|c>>>8)<<16>>16;break t}l=O(O(U(L[b+104>>2]))-O(H[b+132>>2]));if(O(P(l))>2];g=H[a+48>>2];c=H[a+52>>2];a=d<<16;b=a>>31;b=gma(g,c,a>>16,b)+32768|0;a=yb;a=b>>>0<32768?a+1|0:a;H[e>>2]=h+((a&65535)<<16|b>>>16);break f}H[f+40>>2]=0;H[f+44>>2]=0;H[f+32>>2]=0;H[f+36>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f>>2]=0;H[f+4>>2]=0;b=H[a+80>>2];v:{if(zb[H[b+156>>2]](a,H[a+84>>2],f,H[b+12>>2])|0){a=H[f>>2];break v}o=+H[a+24>>2]*.8;if(P(o)<2147483648){a=~~o;break v}a=-2147483648}H[e>>2]=a}xb=f- -64|0;return 1}ha(0)|0;_()|0;Zb();X()}function $C(a){a=a|0;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;b=H[a+20>>2];if((b|0)!=202){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}d=a;b=H[a+424>>2];c=N(b,H[a+48>>2]);e=H[a+52>>2];a:{if(c>>>0<=e>>>0){H[d+112>>2]=((b+H[d+28>>2]|0)-1|0)/(b|0);a=1;b=H[d+32>>2];break a}if(c>>>0<=e<<1>>>0){H[d+112>>2]=((b+(H[d+28>>2]<<1)|0)-1|0)/(b|0);a=2;b=H[d+32>>2]<<1;break a}a=3;if(c>>>0<=N(e,3)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],3)|0)-1|0)/(b|0);b=N(H[d+32>>2],3);break a}if(c>>>0<=e<<2>>>0){H[d+112>>2]=((b+(H[d+28>>2]<<2)|0)-1|0)/(b|0);a=4;b=H[d+32>>2]<<2;break a}a=5;if(c>>>0<=N(e,5)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],5)|0)-1|0)/(b|0);b=N(H[d+32>>2],5);break a}a=6;if(c>>>0<=N(e,6)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],6)|0)-1|0)/(b|0);b=N(H[d+32>>2],6);break a}a=7;if(c>>>0<=N(e,7)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],7)|0)-1|0)/(b|0);b=N(H[d+32>>2],7);break a}if(c>>>0<=e<<3>>>0){H[d+112>>2]=((b+(H[d+28>>2]<<3)|0)-1|0)/(b|0);a=8;b=H[d+32>>2]<<3;break a}a=9;if(c>>>0<=N(e,9)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],9)|0)-1|0)/(b|0);b=N(H[d+32>>2],9);break a}a=10;if(c>>>0<=N(e,10)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],10)|0)-1|0)/(b|0);b=N(H[d+32>>2],10);break a}a=11;if(c>>>0<=N(e,11)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],11)|0)-1|0)/(b|0);b=N(H[d+32>>2],11);break a}a=12;if(c>>>0<=N(e,12)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],12)|0)-1|0)/(b|0);b=N(H[d+32>>2],12);break a}a=13;if(c>>>0<=N(e,13)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],13)|0)-1|0)/(b|0);b=N(H[d+32>>2],13);break a}a=14;if(c>>>0<=N(e,14)>>>0){H[d+112>>2]=((b+N(H[d+28>>2],14)|0)-1|0)/(b|0);b=N(H[d+32>>2],14);break a}a=15;f=H[d+28>>2];if(c>>>0<=N(e,15)>>>0){H[d+112>>2]=((b+N(f,15)|0)-1|0)/(b|0);b=N(H[d+32>>2],15);break a}H[d+112>>2]=((b+(f<<4)|0)-1|0)/(b|0);a=16;b=H[d+32>>2]<<4}c=H[d+424>>2];H[d+324>>2]=a;H[d+320>>2]=a;H[d+116>>2]=((b+c|0)-1|0)/(c|0);e=H[d+36>>2];b:{if((e|0)<=0){break b}b=H[d+216>>2];if(e-1>>>0>=7){f=e&-8;c=0;while(1){H[b+40>>2]=a;H[b+36>>2]=a;H[b+656>>2]=a;H[b+652>>2]=a;H[b+568>>2]=a;H[b+564>>2]=a;H[b+480>>2]=a;H[b+476>>2]=a;H[b+392>>2]=a;H[b+388>>2]=a;H[b+304>>2]=a;H[b+300>>2]=a;H[b+216>>2]=a;H[b+212>>2]=a;H[b+128>>2]=a;H[b+124>>2]=a;b=b+704|0;c=c+8|0;if((f|0)!=(c|0)){continue}break}}e=e&7;if(!e){break b}c=0;while(1){H[b+40>>2]=a;H[b+36>>2]=a;b=b+88|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}i=H[d+36>>2];c:{if((i|0)<=0){break c}b=H[d+216>>2];e=H[d+324>>2];l=H[d+76>>2]?8:4;f=H[d+320>>2];d:{if((l|0)<(f|0)){h=f<<1;if((e|0)>(l|0)){c=e<<1;if((c|0)<(f|0)){a=b;if(i-1>>>0>=7){h=i&-8;f=0;while(1){H[a+36>>2]=c;H[a+40>>2]=e;H[a+128>>2]=e;H[a+216>>2]=e;H[a+124>>2]=c;H[a+304>>2]=e;H[a+212>>2]=c;H[a+392>>2]=e;H[a+300>>2]=c;H[a+480>>2]=e;H[a+388>>2]=c;H[a+568>>2]=e;H[a+476>>2]=c;H[a+656>>2]=e;H[a+564>>2]=c;H[a+652>>2]=c;a=a+704|0;f=f+8|0;if((h|0)!=(f|0)){continue}break}}h=i&7;if(!h){break d}f=0;while(1){H[a+36>>2]=c;H[a+40>>2]=e;a=a+88|0;f=f+1|0;if((h|0)!=(f|0)){continue}break}break d}if((e|0)<=(h|0)){a=b;if(i-1>>>0>=7){c=i&-8;while(1){H[a+40>>2]=e;H[a+36>>2]=f;H[a+656>>2]=e;H[a+652>>2]=f;H[a+568>>2]=e;H[a+564>>2]=f;H[a+480>>2]=e;H[a+476>>2]=f;H[a+392>>2]=e;H[a+388>>2]=f;H[a+304>>2]=e;H[a+300>>2]=f;H[a+216>>2]=e;H[a+212>>2]=f;H[a+128>>2]=e;H[a+124>>2]=f;a=a+704|0;g=g+8|0;if((c|0)!=(g|0)){continue}break}}c=i&7;if(!c){break d}g=0;while(1){H[a+40>>2]=e;H[a+36>>2]=f;a=a+88|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}break d}a=b;if(i-1>>>0>=7){e=i&-8;c=0;while(1){H[a+40>>2]=h;H[a+36>>2]=f;H[a+656>>2]=h;H[a+652>>2]=f;H[a+568>>2]=h;H[a+564>>2]=f;H[a+480>>2]=h;H[a+476>>2]=f;H[a+392>>2]=h;H[a+388>>2]=f;H[a+304>>2]=h;H[a+300>>2]=f;H[a+216>>2]=h;H[a+212>>2]=f;H[a+128>>2]=h;H[a+124>>2]=f;a=a+704|0;c=c+8|0;if((e|0)!=(c|0)){continue}break}}e=i&7;if(!e){break d}c=0;while(1){H[a+40>>2]=h;H[a+36>>2]=f;a=a+88|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}break d}m=H[d+316>>2];c=b;while(1){H[c+36>>2]=f;a=e;j=H[c+12>>2];e:{if((m|0)%(j<<1)|0){break e}g=2;while(1){a=N(e,g);if((l|0)<(a|0)){break e}g=g<<1;if(!((m|0)%(N(j,g)|0)|0)){continue}break}}H[c+40>>2]=a;g=a<<1;f:{if((g|0)>=(f|0)){if((a|0)<=(h|0)){break f}H[c+40>>2]=h;break f}H[c+36>>2]=g}c=c+88|0;k=k+1|0;if((k|0)!=(i|0)){continue}break}break d}m=H[d+312>>2];if((e|0)>(l|0)){h=e<<1;c=b;while(1){a=f;j=H[c+8>>2];g:{if((m|0)%(j<<1)|0){break g}g=2;while(1){a=N(f,g);if((l|0)<(a|0)){break g}g=g<<1;if(!((m|0)%(N(j,g)|0)|0)){continue}break}}H[c+40>>2]=e;H[c+36>>2]=a;h:{if((a|0)<=(h|0)){a=a<<1;if((a|0)>=(e|0)){break h}H[c+40>>2]=a;break h}H[c+36>>2]=h}c=c+88|0;k=k+1|0;if((k|0)!=(i|0)){continue}break}break d}j=H[d+316>>2];h=b;while(1){a=f;c=H[h+8>>2];i:{if((m|0)%(c<<1)|0){break i}g=2;while(1){a=N(f,g);if((l|0)<(a|0)){break i}g=g<<1;if(!((m|0)%(N(c,g)|0)|0)){continue}break}}H[h+36>>2]=a;c=e;n=H[h+12>>2];j:{if((j|0)%(n<<1)|0){break j}g=2;while(1){c=N(e,g);if((l|0)<(c|0)){break j}g=g<<1;if(!((j|0)%(N(n,g)|0)|0)){continue}break}}H[h+40>>2]=c;g=c<<1;k:{if((g|0)<(a|0)){H[h+36>>2]=g;break k}a=a<<1;if((a|0)>=(c|0)){break k}H[h+40>>2]=a}h=h+88|0;k=k+1|0;if((k|0)!=(i|0)){continue}break}}if((i|0)<=0){break c}a=0;while(1){c=N(H[d+424>>2],H[d+312>>2]);H[b+44>>2]=((c+N(H[b+36>>2],N(H[b+8>>2],H[d+28>>2]))|0)-1|0)/(c|0);c=N(H[d+424>>2],H[d+316>>2]);H[b+48>>2]=((c+N(H[b+40>>2],N(H[b+12>>2],H[d+32>>2]))|0)-1|0)/(c|0);b=b+88|0;a=a+1|0;i=H[d+36>>2];if((a|0)<(i|0)){continue}break}}a=H[d+44>>2]-1|0;if(a>>>0<=4){i=H[(a<<2)+254324>>2]}H[d+120>>2]=i;H[d+124>>2]=H[d+84>>2]?1:i;if(_C(d)){a=H[d+316>>2]}else{a=1}H[d+128>>2]=a}function Pq(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,w=0,x=0,y=0;k=xb-32|0;xb=k;n=H[a>>2];f=xb-48|0;xb=f;g=H[b+20>>2];a:{b:{if(g){h=85;if(zb[g|0](b,c,0,0)|0){break a}g=H[b+4>>2];break b}h=85;g=H[b+4>>2];if(g>>>0>>0){break a}}H[b+8>>2]=c;H[f+44>>2]=0;if(c>>>0>=g>>>0){break a}i=H[b+20>>2];c:{if(i){g=zb[i|0](b,c,f+16|0,16)|0;break c}g=g-c|0;g=g>>>0<16?g:16;Ob(f+16|0,H[b>>2]+c|0,g)}H[b+8>>2]=c+g;if(g>>>0<16){break a}g=F[f+16|0];if((g|0)<0){h=2;break a}i=F[f+20|0];if((i|0)<0){h=2;break a}j=F[f+24|0];if((j|0)<0){h=2;break a}l=F[f+28|0];if((l|0)<0){h=2;break a}g=I[f+19|0]|(I[f+17|0]<<16|(g&255)<<24|I[f+18|0]<<8);H[k+16>>2]=g;i=I[f+23|0]|(I[f+21|0]<<16|(i&255)<<24|I[f+22|0]<<8);if(!i){h=2;break a}m=I[f+31|0];l=m|(I[f+29|0]<<16|(l&255)<<24|I[f+30|0]<<8);j=I[f+27|0]|(I[f+25|0]<<16|(j&255)<<24|I[f+26|0]<<8);d:{if(g>>>0>>0){if((g|0)<=(i-j|0)){break d}h=2;break a}if((i|0)<=(g-l|0)){break d}h=2;break a}if(g>>>0>(j^2147483647)>>>0){h=2;break a}if(i>>>0>(l^2147483647)>>>0){h=2;break a}if((g+j^2147483647)<(c|0)){h=2;break a}if((i+l^2147483647)<(c|0)){h=2;break a}g=c+g|0;o=g+j|0;j=H[b+4>>2];if(o>>>0>j>>>0){h=2;break a}c=c+i|0;if(j>>>0>>0){h=2;break a}H[k+16>>2]=g;g=H[b+20>>2];e:{if(g){if(zb[g|0](b,c,0,0)|0){break a}m=I[f+31|0];break e}if(c>>>0>K[b+4>>2]){break a}}H[b+8>>2]=c;F[f+15|0]=m+1;h=wd(b,f,16);if(h){break a}t=I[f|0];u=I[f+1|0];v=I[f+2|0];w=I[f+3|0];x=I[f+4|0];y=I[f+5|0];s=I[f+6|0];r=I[f+7|0];o=I[f+8|0];p=I[f+9|0];h=I[f+10|0];g=I[f+11|0];i=I[f+12|0];l=I[f+13|0];j=I[f+15|0];m=I[f+14|0];if(!(!(t|(u|(v|(w|(x|(y|(s|(r|(o|(p|(h|(g|(i|(l|(j|m)))))))))))))))|I[f+31|0]==(j|0)&I[f+30|0]==(m|0)&I[f+29|0]==(l|0)&I[f+28|0]==(i|0)&I[f+27|0]==(g|0)&I[f+26|0]==(h|0)&(p|0)==I[f+25|0]&(o|0)==I[f+24|0]&(r|0)==I[f+23|0]&(s|0)==I[f+22|0]&(y|0)==I[f+21|0]&(x|0)==I[f+20|0]&(w|0)==I[f+19|0]&(v|0)==I[f+18|0]&(u|0)==I[f+17|0]&(t|0)==I[f+16|0])){h=2;break a}h=H[b+8>>2]+8|0;i=H[b+20>>2];f:{g:{if(i){g=85;if(!(zb[i|0](b,h,0,0)|0)){break g}break f}g=85;if(h>>>0>K[b+4>>2]){break f}}H[b+8>>2]=h;g=0}H[f+44>>2]=g;g=nc(b,f+44|0);h=H[f+44>>2];if(h){break a}h=2;g=g<<16>>16;if((g|0)<0){break a}c=c+g|0;g=H[b+20>>2];h:{if(g){h=85;if(!(zb[g|0](b,c,0,0)|0)){break h}break a}h=85;if(c>>>0>K[b+4>>2]){break a}}H[b+8>>2]=c;H[k+20>>2]=c;h=0}xb=f+48|0;c=h;i:{if(c){break i}c=1;j:{k:{h=H[k+20>>2];f=H[k+16>>2];l:{if(!hB(a,b,h,f,1347375956,1,k+12|0,k+8|0)){p=H[k+12>>2];m:{n:{o:{if(d+1>>>0<=1){s=H[k+8>>2];if((s|0)>0){break o}c=10}d=c;if(p){break n}break i}r=H[a>>2];f=0;p:{while(1){c=H[p+(f<<2)>>2];d=H[b+20>>2];q:{if(d){if(zb[d|0](b,c,0,0)|0){break p}d=H[b+4>>2];break q}d=H[b+4>>2];if(d>>>0>>0){break p}}H[b+8>>2]=c;if(c+3>>>0>=d>>>0){break p}r:{s:{d=H[b+20>>2];t:{if(d){if((zb[d|0](b,c,k+28|0,4)|0)!=4){break p}c=H[b+8>>2];d=k+28|0;break t}d=H[b>>2];if(!d){break s}d=c+d|0}d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[b+8>>2]=c+4;c=d<<8&16711680|d<<24|(d>>>8&65280|d>>>24);if(c>>>0<=16777215){break r}d=9;break n}H[b+8>>2]=c+4;c=0}h=q+6|0;d=9;if(h>>>0>16777215-c>>>0){break n}q=c+h|0;f=f+1|0;if((s|0)!=(f|0)){continue}break}m=q+2|0;d=10;if(m>>>0<=5){break n}d=6;if((m|0)<=0){break n}c=zb[H[r+4>>2]](r,m)|0;d=64;if(!c){break n}j=Nb(c,0,m);F[j+2|0]=0;F[j+3|0]=0;F[j+4|0]=0;F[j+5|0]=0;F[j|0]=128;F[j+1|0]=1;o=2;f=6;c=0;l=1;d=0;u:{while(1){h=H[p+(d<<2)>>2];g=H[b+20>>2];v:{if(g){if(!(zb[g|0](b,h,0,0)|0)){break v}break u}if(h>>>0>K[b+4>>2]){break u}}H[b+8>>2]=h;H[k+24>>2]=0;h=hd(b,k+24|0);if(H[k+24>>2]|(h|0)<0){break u}i=nc(b,k+24|0);if(H[k+24>>2]){break u}H[k+24>>2]=10;w:{if(i>>>0>=256){g=h-2|0;g=h>>>0>>0?0:g;i=i>>>8|0;x:{if((i|0)==(l|0)){h=f;c=c+g|0;break x}l=o+3|0;if(l>>>0>m>>>0){break u}h=j+o|0;F[h|0]=c;F[h+2|0]=c>>>16;F[h+1|0]=c>>>8;F[j+l|0]=c>>>24;if((i|0)==5){break w}h=f+6|0;if(m>>>0>>0){break u}l=f+j|0;F[l|0]=128;o=f+2|0;c=j+o|0;F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[l+1|0]=i;l=i;c=g}if(h>>>0>q>>>0){break u}f=h+g|0;if(q>>>0>>0){break u}h=wd(b,h+j|0,g);H[k+24>>2]=h;if(h){break u}}d=d+1|0;if((s|0)!=(d|0)){continue}}break}d=f+2|0;if(d>>>0>m>>>0){break u}b=f+j|0;F[b|0]=128;F[b+1|0]=3;h=o+3|0;if(h>>>0<=m>>>0){break m}}zb[H[r+8>>2]](r,j);zb[H[n+8>>2]](n,p);c=1;break i}d=85}c=d;zb[H[n+8>>2]](n,p);break i}b=j+o|0;F[b|0]=c;F[b+2|0]=c>>>16;q=1;F[b+1|0]=c>>>8;F[h+j|0]=c>>>24;c=gq(a,j,d,0,11064,e);zb[H[n+8>>2]](n,p);if(!c){break l}break i}c=hB(a,b,h,f,1936092788,0,k+12|0,k+8|0);if(c){break i}h=H[k+12>>2];q=H[k+8>>2];c=(d|0)%(q|0)|0;i=c>>31^c;if((i|0)>=(q|0)){break k}f=H[a>>2];g=H[h+(i<<2)>>2];d=H[b+20>>2];y:{if(d){c=85;if(!(zb[d|0](b,g,0,0)|0)){break y}break j}c=85;if(g>>>0>K[b+4>>2]){break j}}H[b+8>>2]=g;H[k+28>>2]=0;d=hd(b,k+28|0);c=H[k+28>>2];if(c){break j}c=1;if((d|0)<=0){break j}c=9;if(d>>>0>16777215){break j}if(!OC(a,b,i,e)){zb[H[n+8>>2]](n,h);break l}g=g+4|0;i=H[b+20>>2];z:{if(i){c=85;if(zb[i|0](b,g,0,0)|0){break j}break z}c=85;if(g>>>0>K[b+4>>2]){break j}}H[b+8>>2]=g;c=zb[H[f+4>>2]](f,d)|0;if(!c){c=64;break j}g=b;b=Nb(c,0,d);c=wd(g,b,d);if(c){zb[H[f+8>>2]](f,b);break j}c=gq(a,b,d,0,d>>>0>=5?(I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24))==1330926671?11258:10087:10087,e);zb[H[n+8>>2]](n,h);if(c){break i}}H[H[e>>2]>>2]=q;c=0;break i}c=1;if(!h){break i}zb[H[n+8>>2]](n,h);break i}zb[H[n+8>>2]](n,h)}xb=k+32|0;return c}function bL(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=xb-48|0;xb=i;h=2;a:{b:{c:{switch(H[a+796>>2]-1|0){case 0:case 1:if(!H[a+864>>2]){h=142;break a}j=H[H[a+804>>2]+(b<<2)>>2];b=H[a+104>>2];h=bc(b,H[a+860>>2]);if(h){break a}H[i+4>>2]=b;H[i>>2]=a;b=H[a+84>>2];G[i+16>>1]=0;H[i+12>>2]=g;H[i+8>>2]=b+76;H[i+20>>2]=H[a+860>>2];H[i+24>>2]=H[a+864>>2];b=H[a+788>>2];H[i+36>>2]=b;e=H[a+792>>2];H[i+40>>2]=e+b;h=3;g=N(j,48);if(e>>>0>>0){break a}b=b+g|0;g=I[b+8|0]|I[b+9|0]<<8|(I[b+10|0]<<16|I[b+11|0]<<24);j=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);H[i+28>>2]=j;g=I[b+16|0]|I[b+17|0]<<8|(I[b+18|0]<<16|I[b+19|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);H[i+32>>2]=g;F[i+18|0]=I[b+54|0];if(e>>>0>>0|g>>>0>e-j>>>3>>>0){break a}h=yu(i,c,0,0,0,d>>>22&1);if(h){break a}if(!(d&5242880)){break b}h=0;break a;case 2:break c;default:break a}}b=H[H[a+804>>2]+(b<<2)>>2];d=0;G[g>>1]=0;G[g+2>>1]=0;if(K[a+16>>2]>>0){h=6;break a}b=H[a+788>>2]+(b<<2)|0;b=I[b+8|0]|I[b+9|0]<<8|(I[b+10|0]<<16|I[b+11|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);g=b+4|0;while(1){f=H[a+864>>2];if(f>>>0<=b>>>0){h=3;break a}c=c<<2;if(c+12>>>0>f-b>>>0){h=3;break a}h=bc(e,H[a+860>>2]+(c+g|0)|0);if(h){break a}h=Jc(e,8);if(h){break a}c=de(e);f=de(e);wc(e);if((c|0)==(f|0)){h=157;break a}if(c>>>0>f>>>0){h=3;break a}j=f-c|0;if(j>>>0<8){h=3;break a}h=3;if(f>>>0>H[a+864>>2]-b>>>0){break a}h=bc(e,H[a+860>>2]+(b+c|0)|0);if(h){break a}h=Jc(e,j);if(h){break a}Tc(e);Tc(e);c=de(e);if((c|0)!=1685418085){d:{if(!((c|0)==1785751328|(c|0)==1919378028)){h=7;if((c|0)!=1953064550){break d}}h=2}wc(e);break a}if((d|0)==4){h=3;wc(e);break a}c=Tc(e);wc(e);d=d+1|0;if(K[a+16>>2]>=c>>>0){continue}break}h=6;break a}h=0;if(I[f+18|0]!=7){break a}n=H[H[a+84>>2]>>2];if(i){H[i>>2]=0;H[i+4>>2]=0;H[i+16>>2]=0;H[i+20>>2]=0;H[i+8>>2]=0;H[i+12>>2]=0}g=f;l=xb-16|0;xb=l;H[l+12>>2]=0;e:{if(!n){d=33;break e}d=6;if(!g|!i){break e}f:{if((I[g+18|0]-1&255)>>>0<=6){f=H[n>>2];F[i+18|0]=2;h=H[i>>2];c=H[g>>2];H[i>>2]=c;H[i+4>>2]=H[g+4>>2];e=H[i+8>>2];b=H[g+4>>2];gma(b,0,c,0);if(yb?(b|0)>0:0){break e}d=e>>31;c=HA(f,N(h,(d^e)-d|0),N(b,c),H[i+12>>2],l+12|0);H[i+12>>2]=c;d=H[l+12>>2];if(d){break e}H[i+8>>2]=H[i+8>>2]<0?0-b|0:b;break f}H[l+12>>2]=6;c=H[i+12>>2]}b=H[g+12>>2];f=H[g+8>>2];if((f|0)<0){b=N(1-H[g>>2]|0,f)+b|0}j=H[i+8>>2];if((j|0)<0){c=N(1-H[i>>2]|0,j)+c|0}g:{h:{switch(I[g+18|0]-1|0){case 0:G[i+16>>1]=2;j=H[g>>2];if(!j){break g}while(1){e=H[g+4>>2];i:{if(e>>>0<8){f=b;d=c;break i}h=e>>>3|0;d=c;f=b;while(1){e=I[f|0];F[d+7|0]=e&1;F[d|0]=e>>>7;F[d+6|0]=e>>>1&1;F[d+5|0]=e>>>2&1;F[d+4|0]=e>>>3&1;F[d+3|0]=e>>>4&1;F[d+2|0]=e>>>5&1;F[d+1|0]=e>>>6&1;f=f+1|0;d=d+8|0;h=h-1|0;if(h){continue}break}e=H[g+4>>2]}e=e&7;j:{if(!e){break j}f=I[f|0];F[d|0]=f>>>7;if((e|0)==1){break j}F[d+1|0]=f>>>6&1;if((e|0)==2){break j}F[d+2|0]=f>>>5&1;if((e|0)==3){break j}F[d+3|0]=f>>>4&1;if((e|0)==4){break j}F[d+4|0]=f>>>3&1;if((e|0)==5){break j}F[d+5|0]=f>>>2&1;if((e|0)==6){break j}F[d+6|0]=f>>>1&1}c=H[i+8>>2]+c|0;b=H[g+8>>2]+b|0;j=j-1|0;if(j){continue}break};break g;case 1:case 4:case 5:f=H[g+4>>2];G[i+16>>1]=256;d=H[g>>2];if(!d){break g}if(d&1){c=Ob(c,b,f)+H[i+8>>2]|0;b=H[g+8>>2]+b|0;e=d-1|0}else{e=d}if((d|0)==1){break g}while(1){c=Ob(c,b,f);b=H[g+8>>2]+b|0;c=Ob(c+H[i+8>>2]|0,b,f)+H[i+8>>2]|0;b=b+H[g+8>>2]|0;e=e-2|0;if(e){continue}break};break g;case 2:G[i+16>>1]=4;j=H[g>>2];if(!j){break g}while(1){f=H[g+4>>2];k:{if(f>>>0<4){e=b;d=c;break k}k=f>>>2|0;h=k;d=c;e=b;if(f&4){d=I[b|0];F[c+3|0]=d&3;F[c|0]=d>>>6;F[c+2|0]=d>>>2&3;F[c+1|0]=d>>>4&3;h=k-1|0;e=b+1|0;d=c+4|0}if((k|0)!=1){while(1){f=I[e|0];F[d+3|0]=f&3;F[d|0]=f>>>6;F[d+2|0]=f>>>2&3;F[d+1|0]=f>>>4&3;f=I[e+1|0];F[d+7|0]=f&3;F[d+4|0]=f>>>6;F[d+6|0]=f>>>2&3;F[d+5|0]=f>>>4&3;d=d+8|0;e=e+2|0;h=h-2|0;if(h){continue}break}}f=H[g+4>>2]}f=f&3;l:{if(!f){break l}e=I[e|0];F[d|0]=e>>>6;if((f|0)==1){break l}F[d+1|0]=e>>>4&3;if((f|0)==2){break l}F[d+2|0]=e>>>2&3}c=H[i+8>>2]+c|0;b=H[g+8>>2]+b|0;j=j-1|0;if(j){continue}break};break g;case 3:G[i+16>>1]=16;j=H[g>>2];if(!j){break g}while(1){f=H[g+4>>2];m:{if(f>>>0<2){e=b;d=c;break m}f=f>>>1|0;k=f-1|0;h=0;d=c;e=b;m=f&3;if(m){while(1){o=I[e|0];F[d+1|0]=o&15;F[d|0]=o>>>4;f=f-1|0;d=d+2|0;e=e+1|0;h=h+1|0;if((m|0)!=(h|0)){continue}break}}if(k>>>0>=3){while(1){h=I[e|0];F[d+1|0]=h&15;F[d|0]=h>>>4;h=I[e+1|0];F[d+3|0]=h&15;F[d+2|0]=h>>>4;h=I[e+2|0];F[d+5|0]=h&15;F[d+4|0]=h>>>4;h=I[e+3|0];F[d+7|0]=h&15;F[d+6|0]=h>>>4;d=d+8|0;e=e+4|0;f=f-4|0;if(f){continue}break}}f=H[g+4>>2]}if(f&1){F[d|0]=I[e|0]>>>4}c=H[i+8>>2]+c|0;b=H[g+8>>2]+b|0;j=j-1|0;if(j){continue}break};break g;case 6:break h;default:break g}}G[i+16>>1]=256;k=H[g>>2];if(!k){break g}h=H[g+4>>2];if(!h){break g}while(1){e=c;d=b;if(h){while(1){f=I[d+3|0];if(f){j=I[d+1|0];m=N(N(j,j),46871);j=I[d|0];m=m+N(N(j,j),4732)|0;j=I[d+2|0];f=f-((m+N(N(j,j),13933)>>>16>>>0)/(f>>>0)|0)|0}else{f=0}F[e|0]=f;e=e+1|0;d=d+4|0;h=h-1|0;if(h){continue}break}j=H[i+8>>2];f=H[g+8>>2]}k=k-1|0;if(!k){break g}b=b+f|0;c=c+j|0;h=H[g+4>>2];continue}}d=H[l+12>>2]}xb=l+16|0;h=d;if(d){if(i?n:0){lv(n,i)}break a}F[g+18|0]=I[i+18|0];H[g+8>>2]=H[i+8>>2];G[g+16>>1]=J[i+16>>1];Wq(H[a+84>>2],H[i+12>>2]);a=H[H[a+84>>2]+156>>2];H[a+4>>2]=H[a+4>>2]|1}xb=i+48|0;return h|0}function Gx(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;h=xb-80|0;xb=h;H[h+76>>2]=b;x=h+55|0;s=h+56|0;b=0;a:{b:{c:{d:{e:while(1){if((2147483647-o|0)<(b|0)){break d}o=b+o|0;f:{g:{h:{k=H[h+76>>2];b=k;i=I[b|0];if(i){while(1){i:{i=i&255;j:{if(!i){i=b;break j}if((i|0)!=37){break i}i=b;while(1){if(I[b+1|0]!=37){break j}j=b+2|0;H[h+76>>2]=j;i=i+1|0;m=I[b+2|0];b=j;if((m|0)==37){continue}break}}b=i-k|0;w=2147483647-o|0;if((b|0)>(w|0)){break d}if(a){xe(a,k,b)}if((i|0)!=(k|0)){continue e}r=-1;i=1;b=H[h+76>>2];if(!(F[b+1|0]-48>>>0>=10|I[b+2|0]!=36)){r=F[b+1|0]-48|0;u=1;i=3}b=i+b|0;H[h+76>>2]=b;p=0;l=F[b|0];j=l-32|0;k:{if(j>>>0>31){i=b;break k}i=b;j=1<>2]=i;p=j|p;l=F[b+1|0];j=l-32|0;if(j>>>0>=32){break k}b=i;j=1<>>0>=10){break n}b=H[h+76>>2];if(I[b+2|0]!=36){break n}H[((F[b+1|0]<<2)+e|0)-192>>2]=10;q=H[((F[b+1|0]<<3)+d|0)-384>>2];u=1;b=b+3|0;break m}if(u){break h}u=0;q=0;if(a){b=H[c>>2];H[c>>2]=b+4;q=H[b>>2]}b=H[h+76>>2]+1|0}H[h+76>>2]=b;if((q|0)>=0){break l}q=0-q|0;p=p|8192;break l}q=Fx(h+76|0);if((q|0)<0){break d}b=H[h+76>>2]}i=0;j=-1;m=0;o:{if(I[b|0]!=46){break o}if(I[b+1|0]==42){p:{q:{if(F[b+2|0]-48>>>0>=10){break q}b=H[h+76>>2];if(I[b+3|0]!=36){break q}H[((F[b+2|0]<<2)+e|0)-192>>2]=10;j=H[((F[b+2|0]<<3)+d|0)-384>>2];b=b+4|0;break p}if(u){break h}if(a){b=H[c>>2];H[c>>2]=b+4;j=H[b>>2]}else{j=0}b=H[h+76>>2]+2|0}H[h+76>>2]=b;m=(j^-1)>>>31|0;break o}H[h+76>>2]=b+1;j=Fx(h+76|0);b=H[h+76>>2];m=1}v=m;while(1){t=i;n=28;if(F[b|0]-123>>>0<4294967238){break c}l=b+1|0;H[h+76>>2]=l;i=F[b|0];b=l;i=I[(i+N(t,58)|0)+766303|0];if(i-1>>>0<8){continue}break}r:{s:{if((i|0)!=27){if(!i){break c}if((r|0)>=0){H[(r<<2)+e>>2]=i;b=(r<<3)+d|0;i=H[b+4>>2];H[h+64>>2]=H[b>>2];H[h+68>>2]=i;break s}if(!a){break f}Ex(h- -64|0,i,c,g);l=H[h+76>>2];break r}if((r|0)>=0){break c}}b=0;if(!a){continue e}}m=p&-65537;i=p&8192?m:p;p=0;r=238193;n=s;t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{b=F[l-1|0];b=t?(b&15)==3?b&-33:b:b;switch(b-88|0){case 11:break t;case 9:case 13:case 14:case 15:break u;case 27:break z;case 12:case 17:break C;case 23:break D;case 0:case 32:break E;case 24:break F;case 22:break G;case 29:break H;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 g;default:break I}}J:{switch(b-65|0){case 0:case 4:case 5:case 6:break u;case 2:break x;case 1:case 3:break g;default:break J}}if((b|0)==83){break y}break g}l=H[h+64>>2];k=H[h+68>>2];r=238193;break B}b=0;K:{switch(t&255){case 0:H[H[h+64>>2]>>2]=o;continue e;case 1:H[H[h+64>>2]>>2]=o;continue e;case 2:i=H[h+64>>2];H[i>>2]=o;H[i+4>>2]=o>>31;continue e;case 3:G[H[h+64>>2]>>1]=o;continue e;case 4:F[H[h+64>>2]]=o;continue e;case 6:H[H[h+64>>2]>>2]=o;continue e;case 7:break K;default:continue e}}i=H[h+64>>2];H[i>>2]=o;H[i+4>>2]=o>>31;continue e}j=j>>>0>8?j:8;i=i|8;b=120}m=s;y=b&32;l=H[h+64>>2];k=H[h+68>>2];if(l|k){while(1){m=m-1|0;F[m|0]=y|I[(l&15)+766832|0];z=!k&l>>>0>15|(k|0)!=0;t=k;k=k>>>4|0;l=(t&15)<<28|l>>>4;if(z){continue}break}}k=m;if(!(H[h+64>>2]|H[h+68>>2])|!(i&8)){break A}r=(b>>>4|0)+238193|0;p=2;break A}b=s;l=H[h+64>>2];k=H[h+68>>2];if(l|k){while(1){b=b-1|0;F[b|0]=l&7|48;t=!k&l>>>0>7|(k|0)!=0;m=k;k=k>>>3|0;l=(m&7)<<29|l>>>3;if(t){continue}break}}k=b;if(!(i&8)){break A}b=s-k|0;j=(b|0)<(j|0)?j:b+1|0;break A}b=H[h+68>>2];k=b;l=H[h+64>>2];if((b|0)<0){k=0-(k+((l|0)!=0)|0)|0;l=0-l|0;H[h+64>>2]=l;H[h+68>>2]=k;p=1;r=238193;break B}if(i&2048){p=1;r=238194;break B}p=i&1;r=p?238195:238193}k=cj(l,k,s)}if((j|0)<0?v:0){break d}i=v?i&-65537:i;m=H[h+64>>2];b=H[h+68>>2];if(!(j|(m|b)!=0)){k=s;n=k;j=0;break g}b=!(b|m)+(s-k|0)|0;j=(b|0)<(j|0)?j:b;break g}b=H[h+64>>2];k=b?b:239684;b=j>>>0<2147483647?j:2147483647;i=Kg(k,0,b);b=i?i-k|0:b;n=b+k|0;if((j|0)>=0){i=m;j=b;break g}i=m;j=b;if(I[n|0]){break d}break g}if(j){n=H[h+64>>2];break w}b=0;Ie(a,32,q,0,i);break v}H[h+12>>2]=0;H[h+8>>2]=H[h+64>>2];n=h+8|0;H[h+64>>2]=n;j=-1}b=0;L:{while(1){k=H[n>>2];if(!k){break L}k=km(h+4|0,k);m=(k|0)<0;if(!(m|k>>>0>j-b>>>0)){n=n+4|0;b=b+k|0;if(j>>>0>b>>>0){continue}break L}break}if(m){break b}}n=61;if((b|0)<0){break c}Ie(a,32,q,b,i);if(!b){b=0;break v}j=0;n=H[h+64>>2];while(1){k=H[n>>2];if(!k){break v}k=km(h+4|0,k);j=k+j|0;if(j>>>0>b>>>0){break v}xe(a,h+4|0,k);n=n+4|0;if(b>>>0>j>>>0){continue}break}}Ie(a,32,q,b,i^8192);b=(b|0)<(q|0)?q:b;continue e}if((j|0)<0?v:0){break d}n=61;b=zb[f|0](a,M[h+64>>3],q,j,i,b)|0;if((b|0)>=0){continue e}break c}F[h+55|0]=H[h+64>>2];j=1;k=x;i=m;break g}j=b+1|0;H[h+76>>2]=j;i=I[b+1|0];b=j;continue}}if(a){break a}if(!u){break f}b=1;while(1){a=H[(b<<2)+e>>2];if(a){Ex((b<<3)+d|0,a,c,g);o=1;b=b+1|0;if((b|0)!=10){continue}break a}break}o=1;if(b>>>0>=10){break a}while(1){if(H[(b<<2)+e>>2]){break h}b=b+1|0;if((b|0)!=10){continue}break}break a}n=28;break c}m=n-k|0;l=(j|0)>(m|0)?j:m;if((l|0)>(2147483647-p|0)){break d}n=61;j=l+p|0;b=(j|0)<(q|0)?q:j;if((w|0)<(b|0)){break c}Ie(a,32,b,j,i);xe(a,r,p);Ie(a,48,b,j,i^65536);Ie(a,48,l,m,0);xe(a,k,m);Ie(a,32,b,j,i^8192);continue}break}o=0;break a}n=61}H[197018]=n}o=-1}xb=h+80|0;return o}function Hr(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,w=0;l=xb-32|0;k=H[b>>2];c=H[b+8>>2];f=H[c>>2];h=H[c+12>>2];H[a+5200>>2]=0;H[a+5204>>2]=573;q=-1;a:{if((h|0)>0){c=0;while(1){d=(c<<2)+k|0;b:{if(J[d>>1]){d=H[a+5200>>2]+1|0;H[a+5200>>2]=d;H[((d<<2)+a|0)+2908>>2]=c;F[(a+c|0)+5208|0]=0;q=c;break b}G[d+2>>1]=0}c=c+1|0;if((h|0)!=(c|0)){continue}break}e=H[a+5200>>2];if((e|0)>1){break a}}while(1){c=e+1|0;H[a+5200>>2]=c;e=((c<<2)+a|0)+2908|0;d=q+1|0;g=(q|0)<2;c=g?d:0;H[e>>2]=c;e=c<<2;G[e+k>>1]=1;F[(a+c|0)+5208|0]=0;H[a+5800>>2]=H[a+5800>>2]-1;if(f){H[a+5804>>2]=H[a+5804>>2]-J[(f+e|0)+2>>1]}q=g?d:q;e=H[a+5200>>2];if((e|0)<2){continue}break}}H[b+4>>2]=q;g=e>>>1|0;while(1){j=H[((g<<2)+a|0)+2908>>2];c=g;d=c<<1;c:{if((e|0)<(d|0)){break c}i=(a+j|0)+5208|0;n=(j<<2)+k|0;f=g;while(1){d:{if((d|0)>=(e|0)){c=d;break d}c=a+2908|0;e=d|1;m=H[c+(e<<2)>>2];o=J[(m<<2)+k>>1];p=H[c+(d<<2)>>2];c=J[(p<<2)+k>>1];if(o>>>0>=c>>>0){if((c|0)!=(o|0)){c=d;break d}c=d;d=a+5208|0;if(I[d+m|0]>I[d+p|0]){break d}}c=e}e=J[n>>1];d=H[((c<<2)+a|0)+2908>>2];m=J[(d<<2)+k>>1];if(e>>>0>>0){c=f;break c}if(!((e|0)!=(m|0)|I[i|0]>I[(a+d|0)+5208|0])){c=f;break c}H[((f<<2)+a|0)+2908>>2]=d;f=c;d=c<<1;e=H[a+5200>>2];if((d|0)<=(e|0)){continue}break}}H[((c<<2)+a|0)+2908>>2]=j;if((g|0)>=2){g=g-1|0;e=H[a+5200>>2];continue}break}d=H[a+5200>>2];while(1){g=h;e=d-1|0;H[a+5200>>2]=e;i=H[a+2912>>2];j=H[((d<<2)+a|0)+2908>>2];H[a+2912>>2]=j;c=1;e:{if((d|0)<3){break e}n=(a+j|0)+5208|0;d=2;m=(j<<2)+k|0;f=1;while(1){f:{if((d|0)>=(e|0)){c=d;break f}c=a+2908|0;h=d|1;e=H[c+(h<<2)>>2];o=J[(e<<2)+k>>1];p=H[c+(d<<2)>>2];c=J[(p<<2)+k>>1];if(o>>>0>=c>>>0){if((c|0)!=(o|0)){c=d;break f}c=d;d=a+5208|0;if(I[d+e|0]>I[d+p|0]){break f}}c=h}h=J[m>>1];d=H[((c<<2)+a|0)+2908>>2];e=J[(d<<2)+k>>1];if(h>>>0>>0){c=f;break e}if(!((e|0)!=(h|0)|I[n|0]>I[(a+d|0)+5208|0])){c=f;break e}H[((f<<2)+a|0)+2908>>2]=d;f=c;d=c<<1;e=H[a+5200>>2];if((d|0)<=(e|0)){continue}break}}d=2;h=a+2908|0;H[h+(c<<2)>>2]=j;f=H[a+5204>>2]-1|0;H[a+5204>>2]=f;c=H[a+2912>>2];H[h+(f<<2)>>2]=i;f=H[a+5204>>2]-1|0;H[a+5204>>2]=f;H[h+(f<<2)>>2]=c;n=(g<<2)+k|0;f=(c<<2)+k|0;e=(i<<2)+k|0;G[n>>1]=J[f>>1]+J[e>>1];j=a+5208|0;m=j+g|0;i=I[i+j|0];c=I[c+j|0];F[m|0]=(c>>>0>>0?i:c)+1;G[f+2>>1]=g;G[e+2>>1]=g;H[a+2912>>2]=g;f=1;c=1;e=H[a+5200>>2];g:{if((e|0)<2){break g}while(1){h:{if((d|0)>=(e|0)){break h}c=d|1;e=H[h+(c<<2)>>2];i=J[(e<<2)+k>>1];o=H[h+(d<<2)>>2];p=J[(o<<2)+k>>1];if(i>>>0>=p>>>0){if((i|0)!=(p|0)|I[e+j|0]>I[j+o|0]){break h}}d=c}e=J[n>>1];c=d;d=H[((c<<2)+a|0)+2908>>2];i=J[(d<<2)+k>>1];if(e>>>0>>0){c=f;break g}if(!((e|0)!=(i|0)|I[m|0]>I[(a+d|0)+5208|0])){c=f;break g}H[((f<<2)+a|0)+2908>>2]=d;f=c;d=c<<1;e=H[a+5200>>2];if((d|0)<=(e|0)){continue}break}}h=g+1|0;H[((c<<2)+a|0)+2908>>2]=g;d=H[a+5200>>2];if((d|0)>1){continue}break}c=H[a+5204>>2]-1|0;H[a+5204>>2]=c;f=a+2908|0;H[f+(c<<2)>>2]=H[a+2912>>2];e=H[b+4>>2];c=H[b+8>>2];g=H[c+16>>2];n=H[c+8>>2];p=H[c+4>>2];m=H[c>>2];h=H[b>>2];r=a+2900|0;b=r;G[b>>1]=0;G[b+2>>1]=0;G[b+4>>1]=0;G[b+6>>1]=0;s=a+2892|0;b=s;G[b>>1]=0;G[b+2>>1]=0;G[b+4>>1]=0;G[b+6>>1]=0;t=a+2884|0;b=t;G[b>>1]=0;G[b+2>>1]=0;G[b+4>>1]=0;G[b+6>>1]=0;u=a+2876|0;b=u;G[b>>1]=0;G[b+2>>1]=0;G[b+4>>1]=0;G[b+6>>1]=0;j=0;G[(h+(H[f+(H[a+5204>>2]<<2)>>2]<<2)|0)+2>>1]=0;i:{b=H[a+5204>>2];if((b|0)>571){break i}c=b+1|0;f=0;while(1){b=H[((c<<2)+a|0)+2908>>2];v=b<<2;o=h+v|0;d=J[(h+(J[o+2>>1]<<2)|0)+2>>1];i=(d|0)<(g|0)?d+1|0:g;G[o+2>>1]=i;w=(d|0)>=(g|0);j:{if((b|0)>(e|0)){break j}d=((i<<1)+a|0)+2876|0;G[d>>1]=J[d>>1]+1;d=0;d=(b|0)>=(n|0)?H[p+(b-n<<2)>>2]:d;b=J[o>>1];H[a+5800>>2]=H[a+5800>>2]+N(i+d|0,b);if(!m){break j}H[a+5804>>2]=H[a+5804>>2]+N(b,J[(m+v|0)+2>>1]+d|0)}f=f+w|0;c=c+1|0;if((c|0)!=573){continue}break}if(!f){break i}i=((g<<1)+a|0)+2876|0;while(1){c=g;while(1){b=c;c=b-1|0;d=((c<<1)+a|0)+2876|0;n=J[d>>1];if(!n){continue}break}G[d>>1]=n-1;b=((b<<1)+a|0)+2876|0;G[b>>1]=J[b>>1]+2;d=J[i>>1]-1|0;G[i>>1]=d;b=(f|0)>2;f=f-2|0;if(b){continue}break}if(!g){break i}c=573;while(1){f=d&65535;if(f){while(1){c=c-1|0;b=H[((c<<2)+a|0)+2908>>2];if((b|0)>(e|0)){continue}b=h+(b<<2)|0;d=J[b+2>>1];if((d|0)!=(g|0)){H[a+5800>>2]=H[a+5800>>2]+N(J[b>>1],g-d|0);G[b+2>>1]=g}f=f-1|0;if(f){continue}break}}g=g-1|0;if(!g){break i}d=J[((g<<1)+a|0)+2876>>1];continue}}b=J[u>>1]<<1;G[l+2>>1]=b;b=b+J[a+2878>>1]<<1;G[l+4>>1]=b;b=b+J[a+2880>>1]<<1;G[l+6>>1]=b;b=b+J[a+2882>>1]<<1;G[l+8>>1]=b;b=b+J[t>>1]<<1;G[l+10>>1]=b;b=b+J[a+2886>>1]<<1;G[l+12>>1]=b;b=b+J[a+2888>>1]<<1;G[l+14>>1]=b;b=b+J[a+2890>>1]<<1;G[l+16>>1]=b;b=b+J[s>>1]<<1;G[l+18>>1]=b;b=b+J[a+2894>>1]<<1;G[l+20>>1]=b;b=b+J[a+2896>>1]<<1;G[l+22>>1]=b;b=b+J[a+2898>>1]<<1;G[l+24>>1]=b;b=b+J[r>>1]<<1;G[l+26>>1]=b;b=b+J[a+2902>>1]<<1;G[l+28>>1]=b;G[l+30>>1]=b+J[a+2904>>1]<<1;if((q|0)>=0){while(1){g=(j<<2)+k|0;a=J[g+2>>1];if(a){b=(a<<1)+l|0;c=J[b>>1];G[b>>1]=c+1;b=a&3;d=0;k:{if(a-1>>>0<3){a=0;break k}h=a&65532;a=0;f=0;while(1){e=c>>>3&1|(c>>>2&1|(c&2|(c&1|a)<<2))<<1;a=e<<1;c=c>>>4|0;f=f+4|0;if((h|0)!=(f|0)){continue}break}}if(b){while(1){e=c&1|a;a=e<<1;c=c>>>1|0;d=d+1|0;if((b|0)!=(d|0)){continue}break}}G[g>>1]=e}a=(j|0)!=(q|0);j=j+1|0;if(a){continue}break}}}function I0(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;d=xb-272|0;xb=d;f=H[b+12>>2];g=H[b+4>>2];e=H[b+8>>2];b=H[b>>2];H[197455]=0;h=+(e|0);i=+(b|0);e=h>2];H[d+96>>2]=0;H[d+124>>2]=b;H[d+108>>2]=0;b=H[d+88>>2];j=H[d+92>>2];H[d+88>>2]=0;H[d+92>>2]=0;H[d+116>>2]=b;H[d+120>>2]=j;H[197455]=0;k=+(f|0);l=+(g|0);g=k>2]=0;b=H[d+76>>2];H[d+140>>2]=H[d+72>>2];H[d+144>>2]=b;b=H[d+80>>2];H[d+80>>2]=0;H[d+148>>2]=b;H[d+72>>2]=0;H[d+76>>2]=0;H[197455]=0;fa(1756,d+56|0,+((e?i:h)-m),-1);e=H[197455];H[197455]=0;b=d+152|0;if((e|0)==1){break v}H[197455]=0;e=aa(899,32)|0;f=H[197455];H[197455]=0;if((f|0)==1){break u}H[d+156>>2]=5;H[d+160>>2]=-2147483640;H[d+152>>2]=e;H[197455]=0;Mb(e,403488,5);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[e+20>>2]=0;b=d- -64|0;H[d+172>>2]=H[b>>2];e=H[d+60>>2];H[d+164>>2]=H[d+56>>2];H[d+168>>2]=e;H[b>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;H[197455]=0;fa(1756,d+40|0,+((g?l:k)-n),-1);e=H[197455];H[197455]=0;b=d+176|0;if((e|0)==1){break t}H[197455]=0;e=aa(899,32)|0;g=H[197455];H[197455]=0;f=1;if((g|0)==1){break s}H[d+180>>2]=6;H[d+184>>2]=-2147483640;H[d+176>>2]=e;H[197455]=0;Mb(e,403652,6);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[e+24>>2]=0;H[d+196>>2]=H[d+48>>2];b=H[d+44>>2];H[d+188>>2]=H[d+40>>2];H[d+192>>2]=b;H[d+48>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;b=H[c>>2];H[197455]=0;fa(1756,d+24|0,+(+(b|0)*.5),-1);e=H[197455];H[197455]=0;b=d+200|0;if((e|0)==1){break r}H[197455]=0;e=aa(899,16)|0;f=H[197455];H[197455]=0;if((f|0)==1){break q}H[d+204>>2]=2;H[d+208>>2]=-2147483644;H[d+200>>2]=e;H[197455]=0;Mb(e,406488,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[e+8>>2]=0;H[d+220>>2]=H[d+32>>2];b=H[d+28>>2];H[d+212>>2]=H[d+24>>2];H[d+216>>2]=b;H[d+32>>2]=0;H[d+24>>2]=0;H[d+28>>2]=0;b=H[c+4>>2];H[197455]=0;fa(1756,d+8|0,+(+(b|0)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break p}H[197455]=0;b=aa(899,16)|0;c=H[197455];H[197455]=0;f=1;if((c|0)==1){break o}H[d+228>>2]=2;H[d+232>>2]=-2147483644;H[d+224>>2]=b;H[197455]=0;Mb(b,406668,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}f=0;H[b+8>>2]=0;H[d+244>>2]=H[d+16>>2];b=H[d+12>>2];H[d+236>>2]=H[d+8>>2];H[d+240>>2]=b;H[d+16>>2]=0;H[d+252>>2]=6;H[197455]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d+248>>2]=d+104;b=H[d+252>>2];H[d>>2]=H[d+248>>2];H[d+4>>2]=b;e=da(1763,d+256|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break n}if(F[d+247|0]<0){Kb(H[d+236>>2])}if(F[d+235|0]<0){Kb(H[d+224>>2])}if(F[d+223|0]<0){Kb(H[d+212>>2])}if(F[d+211|0]<0){Kb(H[d+200>>2])}if(F[d+199|0]<0){Kb(H[d+188>>2])}if(F[d+187|0]<0){Kb(H[d+176>>2])}if(F[d+175|0]<0){Kb(H[d+164>>2])}if(F[d+163|0]<0){Kb(H[d+152>>2])}if(F[d+151|0]<0){Kb(H[d+140>>2])}if(F[d+139|0]<0){Kb(H[d+128>>2])}if(F[d+127|0]<0){Kb(H[d+116>>2])}if(F[d+115|0]<0){Kb(H[d+104>>2])}if(F[d+19|0]<0){Kb(H[d+8>>2])}if(F[d+35|0]<0){Kb(H[d+24>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+83|0]<0){Kb(H[d+72>>2])}if(F[d+99|0]<0){Kb(H[d+88>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+104>>2]=b;H[d+108>>2]=4;H[d+112>>2]=-2147483640;H[197455]=0;Mb(b,410880,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[d+99|0]=0;H[197455]=0;H[d+88>>2]=0;ka(1767,a|0,d+104|0,e|0,d+88|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+99|0]<0){Kb(H[d+88>>2])}if(F[d+115|0]<0){Kb(H[d+104>>2])}a=H[e>>2];if(a){b=H[e+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}xb=d+272|0;return}a=$()|0;_()|0;ea(a|0);X()}a=$()|0;_()|0;break g}a=$()|0;_()|0;break h}a=$()|0;f=1;_()|0;break i}a=$()|0;f=1;_()|0;break i}a=$()|0;_()|0;break j}a=$()|0;_()|0;break j}a=$()|0;f=1;_()|0;break k}a=$()|0;f=1;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;Vb(d+224|0);Vb(d+200|0);Vb(d+176|0);Vb(d+152|0);Vb(d+128|0);Vb(d+104|0)}if(F[d+19|0]>=0){break l}Kb(H[d+8>>2])}b=d+224|0}if(F[d+35|0]>=0){break j}Kb(H[d+24>>2])}if(F[d+51|0]>=0){break i}Kb(H[d+40>>2])}if(F[d+67|0]>=0){break h}Kb(H[d+56>>2])}if(F[d+83|0]>=0){break g}Kb(H[d+72>>2])}if(F[d+99|0]<0){Kb(H[d+88>>2])}if(!f|(d+104|0)==(b|0)){break b}while(1){b=Vb(b-24|0);if((b|0)!=(d+104|0)){continue}break}break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[d+99|0]<0){Kb(H[d+88>>2])}if(F[d+115|0]>=0){break c}Kb(H[d+104>>2])}yc(e)}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Wja(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;i=H[c+80>>2];k=20;h=1;a=0;m=H[c+68>>2];d=!m;while(1){a:{b:{c:{if(!d){a=I[k+136960|0]==7?g:a;d=k<<1;j=G[d+136688>>1]+135840|0;b=F[k+136768|0];e=I[(i+N(g,20)|0)+18|0];k=I[d+135744|0];if(e>>>0>=k>>>0){b=e>>>0>I[d+135745|0]?b:e-k|0}b=F[b+j|0];break c}if((k|0)==20){break b}g=m;b=I[k+136912|0]-1|0}k=F[b+136816|0];d=b&31;d:{if(((b&63)>>>0>=32?12095>>>d|0:((1<>>d)&1){break d}e:{switch(F[b+136864|0]-1|0){case 1:f=g+1|0;break d;case 7:f=g+1|0;f:{if(f>>>0<=a>>>0){break f}d=h<<4|2;b=0;e=a;j=g-e|0;o=j+1&7;if(o){while(1){F[(i+N(e,20)|0)+15|0]=d;e=e+1|0;b=b+1|0;if((o|0)!=(b|0)){continue}break}}if(j>>>0<=6){break f}while(1){b=i+N(e,20)|0;F[b+35|0]=d;F[b+15|0]=d;F[b+55|0]=d;F[b+75|0]=d;F[b+95|0]=d;F[b+115|0]=d;F[b+135|0]=d;F[b+155|0]=d;b=e+7|0;e=e+8|0;if((b|0)!=(g|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 9:g:{if(a>>>0>=g>>>0){break g}f=h<<4;e=0;b=a;d=g-b&7;if(d){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break g}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((g|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}f=g;g=f-1|0;break d;case 11:h:{if(a>>>0>=g>>>0){break h}f=h<<4|1;e=0;b=a;d=g-b&7;if(d){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break h}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((g|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}f=g;g=f-1|0;break d;case 10:i:{if(a>>>0>=g>>>0){break i}f=h<<4|2;e=0;b=a;d=g-b&7;if(d){while(1){F[(i+N(b,20)|0)+15|0]=f;b=b+1|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if((a^-1)+g>>>0<=6){break i}while(1){d=i+N(b,20)|0;F[d+35|0]=f;F[d+15|0]=f;F[d+55|0]=f;F[d+75|0]=f;F[d+95|0]=f;F[d+115|0]=f;F[d+135|0]=f;F[d+155|0]=f;b=b+8|0;if((g|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}f=g;g=f-1|0;break d;case 0:g=f-1|0;j:{if(a>>>0>=f>>>0){break j}d=h<<4;e=0;b=a;j=f-b&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=d;b=b+1|0;e=e+1|0;if((j|0)!=(e|0)){continue}break}}if((a^-1)+f>>>0<=6){break j}while(1){e=i+N(b,20)|0;F[e+35|0]=d;F[e+15|0]=d;F[e+55|0]=d;F[e+75|0]=d;F[e+95|0]=d;F[e+115|0]=d;F[e+135|0]=d;F[e+155|0]=d;b=b+8|0;if((f|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 4:g=f-1|0;k:{if(a>>>0>=f>>>0){break k}d=h<<4|1;e=0;b=a;j=f-b&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=d;b=b+1|0;e=e+1|0;if((j|0)!=(e|0)){continue}break}}if((a^-1)+f>>>0<=6){break k}while(1){e=i+N(b,20)|0;F[e+35|0]=d;F[e+15|0]=d;F[e+55|0]=d;F[e+75|0]=d;F[e+95|0]=d;F[e+115|0]=d;F[e+135|0]=d;F[e+155|0]=d;b=b+8|0;if((f|0)!=(b|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 2:l:{switch(l-2|0){case 0:g=f-1|0;m:{if(a>>>0>=f>>>0){break m}d=h<<4|1;e=0;b=a;l=f-b&7;if(l){while(1){F[(i+N(b,20)|0)+15|0]=d;b=b+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}if((a^-1)+f>>>0<=6){break m}while(1){e=i+N(b,20)|0;F[e+35|0]=d;F[e+15|0]=d;F[e+55|0]=d;F[e+75|0]=d;F[e+95|0]=d;F[e+115|0]=d;F[e+135|0]=d;F[e+155|0]=d;b=b+8|0;if((f|0)!=(b|0)){continue}break}}l=2;h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 1:break l;default:break d}}g=f-1|0;n:{if(a>>>0>=f>>>0){break n}d=h<<4|2;e=0;b=a;l=f-b&7;if(l){while(1){F[(i+N(b,20)|0)+15|0]=d;b=b+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}if((a^-1)+f>>>0<=6){break n}while(1){e=i+N(b,20)|0;F[e+35|0]=d;F[e+15|0]=d;F[e+55|0]=d;F[e+75|0]=d;F[e+95|0]=d;F[e+115|0]=d;F[e+135|0]=d;F[e+155|0]=d;b=b+8|0;if((f|0)!=(b|0)){continue}break}}l=3;h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 3:f=g+1|0;l=2;break d;case 8:break e;default:break d}}f=g+1|0;l=3}a=I[k+137008|0]==6?0:a;g=g+1|0;if((m|0)!=(g|0)){break a}d=1;continue}o:{m=H[c+68>>2];if(!m){break o}a=m-1|0;g=0;b=H[c+80>>2];f=I[b+15|0];while(1){p:{if((a|0)==(g|0)){g=m;break p}g=g+1|0;if((f|0)==I[(b+N(g,20)|0)+15|0]){continue}}break}if(!m){break o}i=H[c+80>>2];d=0;h=m;while(1){f=g;k=f>>>0>h>>>0?h:f;l=k-d|0;q:{if(l>>>0<2){break q}b=H[c+144>>2]|32;H[c+144>>2]=b;if(d>>>0>=k>>>0){break q}g=-1;a=d;o=(d^-1)+k|0;if(o>>>0>=3){p=l&-4;j=0;while(1){e=N(a,20)+i|0;n=H[e+8>>2];g=g>>>0>>0?g:n;n=H[e+28>>2];g=g>>>0>>0?g:n;n=H[e+48>>2];g=g>>>0>>0?g:n;e=H[e+68>>2];g=e>>>0>g>>>0?g:e;a=a+4|0;j=j+4|0;if((p|0)!=(j|0)){continue}break}}e=0;j=l&3;if(j){while(1){p=H[(N(a,20)+i|0)+8>>2];g=g>>>0

>>0?g:p;a=a+1|0;e=e+1|0;if((j|0)!=(e|0)){continue}break}}if(l&1){a=N(d,20)+i|0;if(H[a+8>>2]!=(g|0)){H[c+144>>2]=b;H[a+4>>2]=H[a+4>>2]|3}d=d+1|0}if(!o){break q}while(1){a=N(d,20)+i|0;if(H[a+8>>2]!=(g|0)){b=b|32;H[c+144>>2]=b;H[a+4>>2]=H[a+4>>2]|3}a=N(d+1|0,20)+i|0;if(H[a+8>>2]!=(g|0)){b=b|32;H[c+144>>2]=b;H[a+4>>2]=H[a+4>>2]|3}d=d+2|0;if((k|0)!=(d|0)){continue}break}}a=f+1|0;a=a>>>0>>0?h:a;b=I[(N(f,20)+i|0)+15|0];g=f;while(1){r:{g=g+1|0;if(h>>>0<=g>>>0){g=a;break r}if((b|0)==I[(N(g,20)+i|0)+15|0]){continue}}break}if(f>>>0>=m>>>0){break o}h=H[c+68>>2];d=f;continue}}return}d=0;continue}}function $m(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=1;a:{b=J[a+32>>1];b:{if(b>>>0>6){break b}c:{d:{d=1<>1];d=1<>2];b=h;f=H[a+40>>2];e=f;i=H[a+44>>2];c=i;while(1){if((d|0)<=0){break d}if(!(J[b>>1]>255|J[e>>1]>255)){d=d-1|0;b=b+2|0;e=e+2|0;j=J[c>>1];c=c+2|0;if(j>>>0<256){continue}}break}d=-1<>1]=I[c+1|0];c=b+f|0;G[c>>1]=I[c+1|0];b=b+i|0;G[b>>1]=I[b+1|0];b=(d|0)>0;d=d-1|0;if(b){continue}break}break c}if(J[a+24>>1]==8){break b}}b=J[a+24>>1];c=(b|0)==16?255:-1<>2]=b;if(!b){a=H[a>>2];Pb(H[a+628>>2],H[a>>2],282383,0);return 0}f:{if(J[a+32>>1]){if((c|0)<0){break f}F[b|0]=0;if(!c){break f}b=1;if((c|0)!=1){g=c&-2;b=0;while(1){d=b|1;F[d+H[a+56>>2]|0]=(N(d,255)|0)/(c|0);d=b;b=b+2|0;F[b+H[a+56>>2]|0]=(N(b,255)|0)/(c|0);e=e+2|0;if((g|0)!=(e|0)){continue}break}b=d+3|0}if(!(c&1)){break f}F[H[a+56>>2]+b|0]=(N(b,255)|0)/(c|0);break f}if((c|0)<0){break f}F[b|0]=255;if(!c){break f}b=1;if((c|0)!=1){g=c&-2;b=0;while(1){d=b|1;F[d+H[a+56>>2]|0]=(N(c-d|0,255)|0)/(c|0);d=b;b=b+2|0;F[b+H[a+56>>2]|0]=(N(c-b|0,255)|0)/(c|0);e=e+2|0;if((g|0)!=(e|0)){continue}break}b=d+3|0}if(!(c&1)){break f}F[H[a+56>>2]+b|0]=(N(c-b|0,255)|0)/(c|0)}c=1;g=J[a+24>>1];if(g>>>0>16|J[a+32>>1]>1){break b}e=H[a+56>>2];c=Tb(g>>>0>8?2048:(8/((g&255)>>>0)<<10)+1024|0);H[a+60>>2]=c;if(!c){break a}d=c+1024|0;b=0;g:{h:{switch(g-1|0){case 0:while(1){H[(b<<2)+c>>2]=d;H[d>>2]=N(I[e+(b>>>7|0)|0],65793)|-16777216;H[d+4>>2]=N(I[e+(b>>>6&1)|0],65793)|-16777216;H[d+8>>2]=N(I[e+(b>>>5&1)|0],65793)|-16777216;H[d+12>>2]=N(I[e+(b>>>4&1)|0],65793)|-16777216;H[d+16>>2]=N(I[e+(b>>>3&1)|0],65793)|-16777216;H[d+20>>2]=N(I[e+(b>>>2&1)|0],65793)|-16777216;H[d+24>>2]=N(I[e+(b>>>1&1)|0],65793)|-16777216;H[d+28>>2]=N(I[e+(b&1)|0],65793)|-16777216;b=b+1|0;if((b|0)==256){break g}d=d+32|0;c=H[a+60>>2];continue};case 1:while(1){H[(b<<2)+c>>2]=d;H[d>>2]=N(I[e+(b>>>6|0)|0],65793)|-16777216;H[d+4>>2]=N(I[e+(b>>>4&3)|0],65793)|-16777216;H[d+8>>2]=N(I[e+(b>>>2&3)|0],65793)|-16777216;H[d+12>>2]=N(I[e+(b&3)|0],65793)|-16777216;b=b+1|0;if((b|0)==256){break g}d=d+16|0;c=H[a+60>>2];continue};case 3:while(1){H[(b<<2)+c>>2]=d;H[d>>2]=N(I[e+(b>>>4|0)|0],65793)|-16777216;H[d+4>>2]=N(I[e+(b&15)|0],65793)|-16777216;b=b+1|0;if((b|0)==256){break g}d=d+8|0;c=H[a+60>>2];continue};case 7:case 15:H[c>>2]=d;H[c+1024>>2]=N(I[e|0],65793)|-16777216;b=1;while(1){H[H[a+60>>2]+(b<<2)>>2]=d+4;H[d+4>>2]=N(I[b+e|0],65793)|-16777216;c=b+1|0;H[H[a+60>>2]+(c<<2)>>2]=d+8;H[d+8>>2]=N(I[c+e|0],65793)|-16777216;g=b+2|0;c=d+12|0;H[H[a+60>>2]+(g<<2)>>2]=c;H[d+12>>2]=N(I[e+g|0],65793)|-16777216;d=c;b=b+3|0;if((b|0)!=256){continue}break};break g;default:break h}}H[c>>2]=d;e=1;while(1){b=e<<2;H[b+H[a+60>>2]>>2]=d;H[(b+H[a+60>>2]|0)+4>>2]=d;H[(b+H[a+60>>2]|0)+8>>2]=d;H[(b+H[a+60>>2]|0)+12>>2]=d;H[(b+H[a+60>>2]|0)+16>>2]=d;e=e+5|0;if((e|0)!=256){continue}break}}Kb(H[a+56>>2]);H[a+56>>2]=0;return 1}b=H[a>>2];sc(H[b+628>>2],H[b>>2],282264,0)}c=1;f=J[a+24>>1];if(f>>>0>8){break b}e=H[a+44>>2];g=H[a+40>>2];h=H[a+36>>2];c=Tb((8/((f&255)>>>0)<<10)+1024|0);H[a+64>>2]=c;if(c){d=c+1024|0;b=0;i:{switch(f-1|0){case 0:while(1){H[(b<<2)+c>>2]=d;c=b>>>6&67108862;H[d>>2]=J[c+e>>1]<<16|(I[c+h|0]|J[c+g>>1]<<8)&65535|-16777216;c=b>>>5&2;H[d+4>>2]=J[c+e>>1]<<16|(I[c+h|0]|J[c+g>>1]<<8)&65535|-16777216;c=b>>>4&2;H[d+8>>2]=J[c+e>>1]<<16|(I[c+h|0]|J[c+g>>1]<<8)&65535|-16777216;c=b>>>3&2;H[d+12>>2]=J[c+e>>1]<<16|(I[c+h|0]|J[c+g>>1]<<8)&65535|-16777216;c=b>>>2&2;H[d+16>>2]=J[c+e>>1]<<16|(I[c+h|0]|J[c+g>>1]<<8)&65535|-16777216;c=1;f=b>>>1&2;H[d+20>>2]=J[f+e>>1]<<16|(I[f+h|0]|J[g+f>>1]<<8)&65535|-16777216;f=b&2;H[d+24>>2]=J[f+e>>1]<<16|(I[f+h|0]|J[g+f>>1]<<8)&65535|-16777216;f=b<<1&2;H[d+28>>2]=J[f+e>>1]<<16|(I[f+h|0]|J[g+f>>1]<<8)&65535|-16777216;b=b+1|0;if((b|0)==256){break b}d=d+32|0;c=H[a+64>>2];continue};case 1:while(1){H[(b<<2)+c>>2]=d;c=b>>>5&134217726;H[d>>2]=J[c+e>>1]<<16|(I[c+h|0]|J[c+g>>1]<<8)&65535|-16777216;c=b>>>3&6;H[d+4>>2]=J[c+e>>1]<<16|(I[c+h|0]|J[c+g>>1]<<8)&65535|-16777216;c=1;f=b>>>1&6;H[d+8>>2]=J[f+e>>1]<<16|(I[f+h|0]|J[g+f>>1]<<8)&65535|-16777216;f=b<<1&6;H[d+12>>2]=J[f+e>>1]<<16|(I[f+h|0]|J[g+f>>1]<<8)&65535|-16777216;b=b+1|0;if((b|0)==256){break b}d=d+16|0;c=H[a+64>>2];continue};case 3:while(1){H[(b<<2)+c>>2]=d;c=b>>>3&536870910;H[d>>2]=J[c+e>>1]<<16|(I[c+h|0]|J[c+g>>1]<<8)&65535|-16777216;c=1;f=b<<1&30;H[d+4>>2]=J[f+e>>1]<<16|(I[f+h|0]|J[g+f>>1]<<8)&65535|-16777216;b=b+1|0;if((b|0)==256){break b}d=d+8|0;c=H[a+64>>2];continue};case 7:while(1){H[(b<<2)+c>>2]=d;c=1;f=b<<1;H[d>>2]=J[f+e>>1]<<16|(I[f+h|0]|J[g+f>>1]<<8)&65535|-16777216;b=b+1|0;if((b|0)==256){break b}d=d+4|0;c=H[a+64>>2];continue};default:break i}}H[c>>2]=d;c=1;e=1;while(1){b=e<<2;H[b+H[a+64>>2]>>2]=d;H[(b+H[a+64>>2]|0)+4>>2]=d;H[(b+H[a+64>>2]|0)+8>>2]=d;H[(b+H[a+64>>2]|0)+12>>2]=d;H[(b+H[a+64>>2]|0)+16>>2]=d;e=e+5|0;if((e|0)!=256){continue}break}break b}c=0;a=H[a>>2];Pb(H[a+628>>2],H[a>>2],282725,0)}return c}a=H[a>>2];Pb(H[a+628>>2],H[a>>2],282540,0);return 0}function sda(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=H[a+20>>2];if((b|0)!=100){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}if(!H[a+84>>2]){h=a,i=zb[H[H[a+4>>2]>>2]](a,0,880)|0,H[h+84>>2]=i}H[a+72>>2]=8;H[a+56>>2]=1;H[a+60>>2]=1;Tq(a,50,1);b=H[a+120>>2];if(!b){b=zb[H[H[a+4>>2]>>2]](a,0,280)|0;H[b+276>>2]=0;H[a+120>>2]=b}F[b+16|0]=I[258048];c=H[64511];H[b+8>>2]=H[64510];H[b+12>>2]=c;c=H[64509];H[b>>2]=H[64508];H[b+4>>2]=c;c=I[258085]|I[258086]<<8|(I[258087]<<16|I[258088]<<24);b=H[a+120>>2];d=I[258081]|I[258082]<<8|(I[258083]<<16|I[258084]<<24);F[b+17|0]=d;F[b+18|0]=d>>>8;F[b+19|0]=d>>>16;F[b+20|0]=d>>>24;F[b+21|0]=c;F[b+22|0]=c>>>8;F[b+23|0]=c>>>16;F[b+24|0]=c>>>24;c=I[258089]|I[258090]<<8|(I[258091]<<16|I[258092]<<24);F[b+25|0]=c;F[b+26|0]=c>>>8;F[b+27|0]=c>>>16;F[b+28|0]=c>>>24;H[H[a+120>>2]+276>>2]=0;b=H[a+136>>2];if(!b){b=zb[H[H[a+4>>2]>>2]](a,0,280)|0;H[b+276>>2]=0;H[a+136>>2]=b}F[b+16|0]=I[258112];c=H[64527];H[b+8>>2]=H[64526];H[b+12>>2]=c;c=H[64525];H[b>>2]=H[64524];H[b+4>>2]=c;Ob(H[a+136>>2]+17|0,258128,162);H[H[a+136>>2]+276>>2]=0;b=H[a+124>>2];if(!b){b=zb[H[H[a+4>>2]>>2]](a,0,280)|0;H[b+276>>2]=0;H[a+124>>2]=b}F[b+16|0]=I[258080];c=H[64519];H[b+8>>2]=H[64518];H[b+12>>2]=c;c=H[64517];H[b>>2]=H[64516];H[b+4>>2]=c;c=I[258085]|I[258086]<<8|(I[258087]<<16|I[258088]<<24);b=H[a+124>>2];d=I[258081]|I[258082]<<8|(I[258083]<<16|I[258084]<<24);F[b+17|0]=d;F[b+18|0]=d>>>8;F[b+19|0]=d>>>16;F[b+20|0]=d>>>24;F[b+21|0]=c;F[b+22|0]=c>>>8;F[b+23|0]=c>>>16;F[b+24|0]=c>>>24;c=I[258089]|I[258090]<<8|(I[258091]<<16|I[258092]<<24);F[b+25|0]=c;F[b+26|0]=c>>>8;F[b+27|0]=c>>>16;F[b+28|0]=c>>>24;H[H[a+124>>2]+276>>2]=0;b=H[a+140>>2];if(!b){b=zb[H[H[a+4>>2]>>2]](a,0,280)|0;H[b+276>>2]=0;H[a+140>>2]=b}F[b+16|0]=I[258320];c=H[64579];H[b+8>>2]=H[64578];H[b+12>>2]=c;c=H[64577];H[b>>2]=H[64576];H[b+4>>2]=c;Ob(H[a+140>>2]+17|0,258336,162);H[H[a+140>>2]+276>>2]=0;F[a+160|0]=0;F[a+161|0]=0;F[a+162|0]=0;F[a+163|0]=0;F[a+164|0]=0;F[a+165|0]=0;F[a+166|0]=0;F[a+167|0]=0;F[a+152|0]=0;F[a+153|0]=0;F[a+154|0]=0;F[a+155|0]=0;F[a+156|0]=0;F[a+157|0]=0;F[a+158|0]=0;F[a+159|0]=0;F[a+168|0]=1;F[a+169|0]=1;F[a+170|0]=1;F[a+171|0]=1;F[a+172|0]=1;F[a+173|0]=1;F[a+174|0]=1;F[a+175|0]=1;F[a+176|0]=1;F[a+177|0]=1;F[a+178|0]=1;F[a+179|0]=1;F[a+180|0]=1;F[a+181|0]=1;F[a+182|0]=1;F[a+183|0]=1;F[a+184|0]=5;F[a+185|0]=5;F[a+186|0]=5;F[a+187|0]=5;F[a+188|0]=5;F[a+189|0]=5;F[a+190|0]=5;F[a+191|0]=5;F[a+192|0]=5;F[a+193|0]=5;F[a+194|0]=5;F[a+195|0]=5;F[a+196|0]=5;F[a+197|0]=5;F[a+198|0]=5;F[a+199|0]=5;H[a+200>>2]=0;H[a+204>>2]=0;H[a+208>>2]=0;H[a+212>>2]=0;H[a+228>>2]=0;H[a+232>>2]=0;H[a+220>>2]=0;H[a+224>>2]=1;H[a+236>>2]=0;H[a+240>>2]=0;H[a+252>>2]=65537;F[a+250|0]=0;G[a+248>>1]=257;H[a+216>>2]=H[a+72>>2]>8;a:{b:{c:{switch(H[a+40>>2]){case 1:b=H[a+20>>2];if((b|0)!=100){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}H[a+256>>2]=0;H[a+76>>2]=1;H[a+80>>2]=1;H[a+244>>2]=1;a=H[a+84>>2];H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=1;H[a+12>>2]=1;H[a>>2]=1;break a;case 4:b=H[a+20>>2];if((b|0)!=100){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}H[a+256>>2]=1;H[a+244>>2]=0;H[a+76>>2]=4;H[a+80>>2]=4;a=H[a+84>>2];H[a+264>>2]=75;H[a+176>>2]=89;H[a+88>>2]=77;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=1;H[a+12>>2]=1;H[a>>2]=67;H[a+288>>2]=0;H[a+280>>2]=0;H[a+284>>2]=0;H[a+272>>2]=1;H[a+276>>2]=1;H[a+200>>2]=0;H[a+192>>2]=0;H[a+196>>2]=0;H[a+184>>2]=1;H[a+188>>2]=1;H[a+112>>2]=0;H[a+104>>2]=0;H[a+108>>2]=0;H[a+96>>2]=1;H[a+100>>2]=1;break a;case 5:b=H[a+20>>2];if((b|0)!=100){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}H[a+256>>2]=1;H[a+244>>2]=0;H[a+76>>2]=4;H[a+80>>2]=5;a=H[a+84>>2];H[a+264>>2]=4;H[a+176>>2]=3;H[a+88>>2]=2;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=2;H[a+12>>2]=2;H[a>>2]=1;H[a+288>>2]=0;H[a+280>>2]=0;H[a+284>>2]=0;H[a+272>>2]=2;H[a+276>>2]=2;break b;case 0:b=H[a+20>>2];if((b|0)!=100){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}c=0;H[a+256>>2]=0;H[a+244>>2]=0;H[a+80>>2]=0;b=H[a+36>>2];H[a+76>>2]=b;d:{if(b-11>>>0<=4294967285){d=H[a>>2];H[d+24>>2]=b;H[d+20>>2]=27;H[H[a>>2]+28>>2]=10;zb[H[H[a>>2]>>2]](a);b=H[a+76>>2];if((b|0)<=0){break d}}f=b&1;d=H[a+84>>2];if((b|0)!=1){g=b&-2;b=0;while(1){a=d+N(c,88)|0;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=1;H[a+12>>2]=1;H[a>>2]=c;e=c|1;a=d+N(e,88)|0;H[a+24>>2]=0;H[a+8>>2]=1;H[a+12>>2]=1;H[a+16>>2]=0;H[a+20>>2]=0;H[a>>2]=e;c=c+2|0;b=b+2|0;if((g|0)!=(b|0)){continue}break}}if(!f){break d}a=d+N(c,88)|0;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=1;H[a+12>>2]=1;H[a>>2]=c}break a;default:b=H[a>>2];H[b+20>>2]=10;zb[H[b>>2]](a);break a;case 2:case 3:break c}}b=H[a+20>>2];if((b|0)!=100){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}H[a+256>>2]=0;H[a+76>>2]=3;H[a+80>>2]=3;H[a+244>>2]=1;a=H[a+84>>2];H[a+176>>2]=3;H[a+88>>2]=2;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=2;H[a+12>>2]=2;H[a>>2]=1}H[a+200>>2]=1;H[a+192>>2]=1;H[a+196>>2]=1;H[a+184>>2]=1;H[a+188>>2]=1;H[a+112>>2]=1;H[a+104>>2]=1;H[a+108>>2]=1;H[a+96>>2]=1;H[a+100>>2]=1}}function pQ(){var a=0,b=0,c=0;if(I[790088]){return H[197521]}if(I[790076]){a=H[197518]}else{H[197919]=0;H[197918]=778696;H[197918]=773768;H[197918]=773320;H[197455]=0;b=da(3503,791680,30)|0;a=H[197455];H[197455]=0;a:{b:{c:{d:{e:{if((a|0)!=1){H[197455]=0;c=da(933,791824,239641)|0;a=H[197455];H[197455]=0;if((a|0)==1){break e}iw(b);H[197841]=0;H[197840]=778696;H[197840]=773768;H[197840]=774644;H[197455]=0;ba(3504,791672,791360);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197843]=0;H[197842]=778696;H[197842]=773768;H[197842]=774676;H[197455]=0;ba(3505,791672,791368);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;na(3506);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3507,791672,791376);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197849]=0;H[197848]=778696;H[197848]=773768;H[197848]=773824;H[197455]=0;ba(3508,791672,791392);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197851]=0;H[197850]=778696;H[197850]=773768;H[197850]=773972;H[197455]=0;ba(3509,791672,791400);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;na(3510);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3511,791672,791408);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197857]=0;H[197856]=778696;H[197856]=773768;H[197856]=774120;H[197455]=0;ba(3512,791672,791424);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197859]=0;H[197858]=778696;H[197858]=773768;H[197858]=774236;H[197455]=0;ba(3513,791672,791432);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;na(3514);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3515,791672,791440);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;na(3516);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3517,791672,791464);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197875]=0;H[197874]=778696;H[197874]=773768;H[197874]=774708;H[197455]=0;ba(3518,791672,791496);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197877]=0;H[197876]=778696;H[197876]=773768;H[197876]=774952;H[197455]=0;ba(3519,791672,791504);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197879]=0;H[197878]=778696;H[197878]=773768;H[197878]=775164;H[197455]=0;ba(3520,791672,791512);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197881]=0;H[197880]=778696;H[197880]=773768;H[197880]=775396;H[197455]=0;ba(3521,791672,791520);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;H[197883]=0;H[197882]=778696;H[197882]=773768;H[197882]=776380;a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3523,791672,791528);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197885]=0;H[197884]=778696;H[197884]=773768;H[197884]=776528;H[197455]=0;ba(3524,791672,791536);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197887]=0;H[197886]=778696;H[197886]=773768;H[197886]=776644;H[197455]=0;ba(3525,791672,791544);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197889]=0;H[197888]=778696;H[197888]=773768;H[197888]=776760;H[197455]=0;ba(3526,791672,791552);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;H[197891]=0;H[197890]=778696;H[197890]=773768;H[197890]=776876;a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3528,791672,791560);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;H[197893]=0;H[197892]=778696;H[197892]=773768;H[197892]=777040;a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3530,791672,791568);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;H[197895]=0;H[197894]=778696;H[197894]=773768;H[197894]=777204;a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3532,791672,791576);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;H[197897]=0;H[197896]=778696;H[197896]=773768;H[197896]=777368;a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3534,791672,791584);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197899]=0;H[197898]=778696;H[197898]=773768;H[197900]=778624;H[197898]=775596;H[197900]=775644;H[197455]=0;ba(3535,791672,791592);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197903]=0;H[197902]=778696;H[197902]=773768;H[197904]=778660;H[197902]=775860;H[197904]=775908;H[197455]=0;ba(3536,791672,791608);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;na(3537);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3538,791672,791624);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;na(3539);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3540,791672,791640);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;H[197915]=0;H[197914]=778696;H[197914]=773768;H[197914]=777532;a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;ba(3542,791672,791656);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197917]=0;H[197916]=778696;H[197916]=773768;H[197916]=777652;H[197455]=0;ba(3543,791672,791664);a=H[197455];H[197455]=0;if((a|0)==1){break d}break a}a=$()|0;_()|0;break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;_b(c)}jw(b)}ea(a|0);X()}H[197517]=791672;F[790076]=1;H[197518]=790068;a=790068}a=H[a>>2];H[197520]=a;H[a+4>>2]=H[a+4>>2]+1;F[790088]=1;H[197521]=790080;return 790080}function sl(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;e=xb-1488|0;xb=e;h=H[a+4>>2];l=H[h+556>>2];q=H[l+40>>2];a:{b:{c:{i=H[h+712>>2];if(H[i+1504>>2]==65535){break c}f=H[i+1192>>2];if(!f){break c}if(!c){c=0;break b}g=6;if(K[i+1196>>2]>>0){break a}c=J[f+(c<<1)>>1];if(c){break b}break a}g=6;if(K[i+20>>2]<=c>>>0){break a}}H[a+164>>2]=65536;H[a+168>>2]=65536;m=d&1024?d|3:d;d:{e:{if(!b){break e}H[a+164>>2]=H[b+16>>2];H[a+168>>2]=H[b+20>>2];j=H[b+44>>2];if(m&8|(j|0)==-1){break e}f=H[b>>2];d=H[f+540>>2];if(!H[d+96>>2]){break e}if(zb[H[d+72>>2]](h,j,c,m,H[f+104>>2],a+76|0,e+704|0)|0){break e}H[a+108>>2]=0;H[a+24>>2]=J[e+706>>1]<<6;H[a+28>>2]=J[e+704>>1]<<6;k=G[e+708>>1];H[a+32>>2]=k<<6;j=G[e+710>>1];H[a+36>>2]=j<<6;H[a+40>>2]=J[e+712>>1]<<6;f=G[e+714>>1];H[a+44>>2]=f<<6;b=G[e+716>>1];H[a+48>>2]=b<<6;d=J[e+718>>1];g=b;b=m&16;H[a+104>>2]=b?g:j;H[a+100>>2]=b?f:k;H[a+72>>2]=1651078259;H[a+52>>2]=d<<6;zb[H[H[h+540>>2]+140>>2]](h,0,c,e+32|0,e+48|0);H[a+56>>2]=J[e+48>>1];if(!(!I[h+292|0]|!J[h+330>>1])){zb[H[H[h+540>>2]+140>>2]](h,1,c,e+32|0,e+48|0);H[a+60>>2]=J[e+48>>1];break d}if(J[h+372>>1]!=65535){H[a+60>>2]=G[h+442>>1]-G[h+444>>1];break d}H[a+60>>2]=G[h+220>>1]-G[h+222>>1];break d}g=6;if(m&16384){break a}k=H[i+2024>>2];f:{if(k){g=0;f=H[i+3060>>2];g:{if(!f){break g}h:{switch(I[i+3052|0]){case 0:g=I[c+f|0];break g;case 3:break h;default:break g}}if(K[i+3072>>2]>c-H[i+3068>>2]>>>0){g=I[i+3076|0];break g}g=f+2|0;d=I[f+1|0]|I[f|0]<<8;j=f+H[i+3064>>2]|0;while(1){if(c>>>0>=d>>>0){f=I[g+2|0]|I[g+1|0]<<8;if(f>>>0>c>>>0){g=I[g|0];F[i+3076|0]=g;H[i+3072>>2]=f-d;H[i+3068>>2]=d;break g}d=f;g=g+3|0;if(j>>>0>g>>>0){continue}}break}g=0}f=(i+(((k>>>0>(g&255)>>>0?g:k-1|0)&255)<<2)|0)+2028|0;n=H[f>>2];k=H[n+68>>2];j=H[i+1440>>2];d=H[n+60>>2];H[e+40>>2]=H[n+56>>2];H[e+44>>2]=d;d=H[n+52>>2];H[e+32>>2]=H[n+48>>2];H[e+36>>2]=d;d=H[f>>2];o=H[d+72>>2];p=H[d+76>>2];if((j|0)==(k|0)){break f}s=a,t=ic(H[a+164>>2],j,k),H[s+164>>2]=t;s=a,t=ic(H[a+168>>2],j,k),H[s+168>>2]=t;r=1;break f}f=i+1428|0;d=H[f+4>>2];H[e+40>>2]=H[f>>2];H[e+44>>2]=d;f=i+1420|0;d=H[f+4>>2];H[e+32>>2]=H[f>>2];H[e+36>>2]=d;p=H[i+1448>>2];o=H[i+1444>>2]}H[a+108>>2]=0;H[a+72>>2]=1869968492;k=m&1;F[a+161|0]=!k;n=(m>>>1^-1)&1;F[a+160|0]=n;zb[H[q>>2]](e+704|0,h,b,a,n,m>>>16&15,8,9);if(m&256){F[e+1297|0]=1}j=m&1024;F[e+770|0]=j>>>10;d=H[H[h+128>>2]+52>>2];i:{if(d){g=zb[H[H[d>>2]>>2]](H[d+4>>2],c,e+48|0)|0;H[e+28>>2]=H[e+48>>2];H[e+24>>2]=H[e+52>>2];break i}g=xn(H[h+712>>2]+1204|0,c,e+28|0,e+24|0)}if(g){break a}g=zb[H[q+4>>2]](e+704|0,b,c)|0;if(g){break a}d=e+48|0;zb[H[l+24>>2]](d,e+704|0,0);f=d;d=H[e+24>>2];g=zb[H[q+8>>2]](f,H[e+28>>2],d)|0;if((g&255)==164){F[a+160|0]=0;n=0;g=zb[H[q+8>>2]](e+48|0,H[e+28>>2],d)|0;r=1}f=H[H[h+128>>2]+52>>2];j:{if(f){H[e+12>>2]=d;H[e+8>>2]=H[e+28>>2];zb[H[H[f>>2]+4>>2]](H[f+4>>2],e+8|0);break j}f=H[h+712>>2];if(H[f+1236>>2]){break j}nd(H[f+1204>>2],e+28|0)}if(g){break a}g=0;k:{if(H[H[h+128>>2]+52>>2]){d=0}else{f=H[i+1232>>2];if(!f){break k}g=(H[i+1236>>2]+H[f+(c<<2)>>2]|0)-1|0}H[a+140>>2]=d;H[a+136>>2]=g}zb[H[e+784>>2]](e+704|0);l=H[H[h+128>>2]+52>>2];l:{if(!l){break l}f=H[H[l>>2]+8>>2];if(!f){break l}H[e+12>>2]=0;H[e+8>>2]=H[e+736>>2];d=H[e+748>>2];H[e+16>>2]=H[e+744>>2];H[e+20>>2]=d;g=zb[f|0](H[l+4>>2],c,0,e+8|0)|0;H[e+736>>2]=H[e+8>>2];d=H[e+20>>2];H[e+744>>2]=H[e+16>>2];H[e+748>>2]=d;if(g){break a}}if(j){H[a+32>>2]=H[e+736>>2];H[a+40>>2]=H[e+1288>>2];f=H[e+40>>2];d=H[e+44>>2];c=H[e+32>>2];b=H[e+36>>2];a=H[a+156>>2];H[a+28>>2]=o;H[a+32>>2]=p;F[a+8|0]=1;H[a+20>>2]=f;H[a+24>>2]=d;H[a+12>>2]=c;H[a+16>>2]=b;break d}m:{if(J[h+250>>1]){G[e+8>>1]=0;G[e+28>>1]=0;zb[H[H[h+540>>2]+140>>2]](h,0,c,e+8|0,e+28|0);d=J[e+28>>1];H[a+32>>2]=G[e+8>>1];break m}d=H[e+1288>>2]}H[a+56>>2]=d;H[a+40>>2]=d;F[H[a+156>>2]+8|0]=0;n:{if(!(!I[h+292|0]|!J[h+330>>1])){G[e+8>>1]=0;G[e+28>>1]=0;zb[H[H[h+540>>2]+140>>2]](h,1,c,e+8|0,e+28|0);H[a+48>>2]=G[e+8>>1];d=J[e+28>>1];H[a+52>>2]=d;f=1;break n}o:{if(J[h+372>>1]!=65535){d=G[h+442>>1]-G[h+444>>1]|0;H[a+52>>2]=d;break o}d=G[h+220>>1]-G[h+222>>1]|0;H[a+52>>2]=d}f=0}H[a+72>>2]=1869968492;H[a+60>>2]=d;l=a+108|0;H[a+124>>2]=b?J[b+14>>1]<24?260:4:4;p:{if(!(H[e+36>>2]|(H[e+32>>2]!=65536|H[e+44>>2]!=65536))){if(!H[e+40>>2]){break p}}Wg(l,e+32|0);s=a,t=Rb(H[a+40>>2],H[e+32>>2]),H[s+40>>2]=t;s=a,t=Rb(H[a+52>>2],H[e+44>>2]),H[s+52>>2]=t}if(o|p){je(l,o,p);H[a+40>>2]=H[a+40>>2]+o;H[a+52>>2]=H[a+52>>2]+p}if(!(r?0:k)){k=H[a+168>>2];j=H[a+164>>2];q:{if(H[e+772>>2]?n:0){break q}b=G[a+110>>1];if((b|0)<=0){break q}c=b&65535;d=H[a+112>>2];while(1){s=d,t=Rb(H[d>>2],j),H[s>>2]=t;s=d,t=Rb(H[d+4>>2],k),H[s+4>>2]=t;d=d+8|0;b=c>>>0>1;c=c-1|0;if(b){continue}break}}s=a,t=Rb(H[a+40>>2],j),H[s+40>>2]=t;s=a,t=Rb(H[a+52>>2],k),H[s+52>>2]=t}Nh(l,e+8|0);d=H[e+8>>2];H[a+24>>2]=H[e+16>>2]-d;c=H[e+12>>2];b=H[e+20>>2];H[a+36>>2]=b;H[a+32>>2]=d;H[a+28>>2]=b-c;if(f){H[a+44>>2]=d+(H[a+40>>2]/-2|0);s=a,t=Rb(H[a+48>>2],H[a+168>>2]),H[s+48>>2]=t;break d}if(!(m&16)){break d}Fj(a+24|0,H[a+52>>2])}g=0}xb=e+1488|0;return g}function Pja(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;i=H[c+80>>2];h=1;a=0;l=H[c+68>>2];g=!l;while(1){a:{b:{c:{if(!g){a=I[k+139280|0]==2?f:a;e=k<<1;g=G[e+138864>>1]+137312|0;b=F[k+138976|0];d=I[(i+N(f,20)|0)+18|0];k=I[e+137184|0];if(d>>>0>=k>>>0){b=d>>>0>I[e+137185|0]?b:d-k|0}b=F[b+g|0];break c}if(!k){break b}f=l;b=G[(k<<1)+139168>>1]-1|0}k=F[b+139040|0];e=b&31;d:{if(((b&63)>>>0>=32?536674303>>>e|0:((1<>>e)&1){break d}e:{switch(F[b+139104|0]-3|0){case 3:f:{if(f+1>>>0<=a>>>0){break f}e=h<<4;d=0;b=a;g=f-b|0;j=g+1&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=e;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if(g>>>0<=6){break f}while(1){d=i+N(b,20)|0;F[d+35|0]=e;F[d+15|0]=e;F[d+55|0]=e;F[d+75|0]=e;F[d+95|0]=e;F[d+115|0]=e;F[d+135|0]=e;F[d+155|0]=e;d=b+7|0;b=b+8|0;if((d|0)!=(f|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 1:g:{if(f+1>>>0<=a>>>0){break g}e=h<<4|3;d=0;b=a;g=f-b|0;j=g+1&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=e;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if(g>>>0<=6){break g}while(1){d=i+N(b,20)|0;F[d+35|0]=e;F[d+15|0]=e;F[d+55|0]=e;F[d+75|0]=e;F[d+95|0]=e;F[d+115|0]=e;F[d+135|0]=e;F[d+155|0]=e;d=b+7|0;b=b+8|0;if((d|0)!=(f|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 7:h:{if(f+1>>>0<=a>>>0){break h}e=h<<4|1;d=0;b=a;g=f-b|0;j=g+1&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=e;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if(g>>>0<=6){break h}while(1){d=i+N(b,20)|0;F[d+35|0]=e;F[d+15|0]=e;F[d+55|0]=e;F[d+75|0]=e;F[d+95|0]=e;F[d+115|0]=e;F[d+135|0]=e;F[d+155|0]=e;d=b+7|0;b=b+8|0;if((d|0)!=(f|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 5:i:{if(f+1>>>0<=a>>>0){break i}e=h<<4|2;d=0;b=a;g=f-b|0;j=g+1&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=e;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if(g>>>0<=6){break i}while(1){d=i+N(b,20)|0;F[d+35|0]=e;F[d+15|0]=e;F[d+55|0]=e;F[d+75|0]=e;F[d+95|0]=e;F[d+115|0]=e;F[d+135|0]=e;F[d+155|0]=e;d=b+7|0;b=b+8|0;if((d|0)!=(f|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 0:j:{if(f+1>>>0<=a>>>0){break j}e=h<<4|3;d=0;b=a;g=f-b|0;j=g+1&7;if(j){while(1){F[(i+N(b,20)|0)+15|0]=e;b=b+1|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}if(g>>>0<=6){break j}while(1){d=i+N(b,20)|0;F[d+35|0]=e;F[d+15|0]=e;F[d+55|0]=e;F[d+75|0]=e;F[d+95|0]=e;F[d+115|0]=e;F[d+135|0]=e;F[d+155|0]=e;d=b+7|0;b=b+8|0;if((d|0)!=(f|0)){continue}break}}h=h+1|0;if((h|0)!=16){break d}h=1;break d;case 2:e=f-1|0;k:{if(a>>>0>=f>>>0){break k}g=h<<4;b=0;d=a;j=f-d&7;if(j){while(1){F[(i+N(d,20)|0)+15|0]=g;d=d+1|0;b=b+1|0;if((j|0)!=(b|0)){continue}break}}if((a^-1)+f>>>0<=6){break k}while(1){b=i+N(d,20)|0;F[b+35|0]=g;F[b+15|0]=g;F[b+55|0]=g;F[b+75|0]=g;F[b+95|0]=g;F[b+115|0]=g;F[b+135|0]=g;F[b+155|0]=g;d=d+8|0;if((f|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)!=16){f=e;break d}h=1;f=e;break d;case 4:e=f-1|0;l:{if(a>>>0>=f>>>0){break l}g=h<<4|2;b=0;d=a;j=f-d&7;if(j){while(1){F[(i+N(d,20)|0)+15|0]=g;d=d+1|0;b=b+1|0;if((j|0)!=(b|0)){continue}break}}if((a^-1)+f>>>0<=6){break l}while(1){b=i+N(d,20)|0;F[b+35|0]=g;F[b+15|0]=g;F[b+55|0]=g;F[b+75|0]=g;F[b+95|0]=g;F[b+115|0]=g;F[b+135|0]=g;F[b+155|0]=g;d=d+8|0;if((f|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)!=16){f=e;break d}h=1;f=e;break d;case 6:break e;default:break d}}m:{if(a>>>0>=f>>>0){break m}e=h<<4|3;b=0;d=a;g=f-d&7;if(g){while(1){F[(i+N(d,20)|0)+15|0]=e;d=d+1|0;b=b+1|0;if((g|0)!=(b|0)){continue}break}}if((a^-1)+f>>>0<=6){break m}while(1){b=i+N(d,20)|0;F[b+35|0]=e;F[b+15|0]=e;F[b+55|0]=e;F[b+75|0]=e;F[b+95|0]=e;F[b+115|0]=e;F[b+135|0]=e;F[b+155|0]=e;d=d+8|0;if((f|0)!=(d|0)){continue}break}}h=h+1|0;if((h|0)==16){h=1}f=f-1|0}a=I[k+139344|0]==1?0:a;f=f+1|0;if((l|0)!=(f|0)){break a}g=1;continue}n:{l=H[c+68>>2];if(!l){break n}a=l-1|0;f=0;b=H[c+80>>2];e=I[b+15|0];while(1){o:{if((a|0)==(f|0)){f=l;break o}f=f+1|0;if((e|0)==I[(b+N(f,20)|0)+15|0]){continue}}break}if(!l){break n}i=H[c+80>>2];g=0;k=l;while(1){e=f;j=e>>>0>k>>>0?k:e;n=j-g|0;p:{if(n>>>0<2){break p}b=H[c+144>>2]|32;H[c+144>>2]=b;if(g>>>0>=j>>>0){break p}f=-1;a=g;p=j+(g^-1)|0;if(p>>>0>=3){o=n&-4;d=0;while(1){h=i+N(a,20)|0;m=H[h+8>>2];f=f>>>0>>0?f:m;m=H[h+28>>2];f=f>>>0>>0?f:m;m=H[h+48>>2];f=f>>>0>>0?f:m;h=H[h+68>>2];f=f>>>0>>0?f:h;a=a+4|0;d=d+4|0;if((o|0)!=(d|0)){continue}break}}h=0;d=n&3;if(d){while(1){o=H[(i+N(a,20)|0)+8>>2];f=f>>>0>>0?f:o;a=a+1|0;h=h+1|0;if((d|0)!=(h|0)){continue}break}}if(n&1){a=i+N(g,20)|0;if(H[a+8>>2]!=(f|0)){H[c+144>>2]=b;H[a+4>>2]=H[a+4>>2]|3}g=g+1|0}if(!p){break p}while(1){a=i+N(g,20)|0;if(H[a+8>>2]!=(f|0)){b=b|32;H[c+144>>2]=b;H[a+4>>2]=H[a+4>>2]|3}a=i+N(g+1|0,20)|0;if(H[a+8>>2]!=(f|0)){b=b|32;H[c+144>>2]=b;H[a+4>>2]=H[a+4>>2]|3}g=g+2|0;if((j|0)!=(g|0)){continue}break}}a=e+1|0;a=a>>>0>>0?k:a;b=I[(i+N(e,20)|0)+15|0];f=e;while(1){q:{f=f+1|0;if(k>>>0<=f>>>0){f=a;break q}if((b|0)==I[(i+N(f,20)|0)+15|0]){continue}}break}if(e>>>0>=l>>>0){break n}k=H[c+68>>2];g=e;continue}}return}g=0;continue}}function mX(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;var h=0,i=0,j=0,k=0;h=xb-272|0;xb=h;H[197455]=0;j=+(g|0);fa(1756,h+88|0,+j,-1);g=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{if((g|0)!=1){F[h+115|0]=1;H[197455]=0;Mb(h+104|0,434368,1);g=H[197455];H[197455]=0;if((g|0)==1){break a}g=H[h+96>>2];H[h+96>>2]=0;H[h+124>>2]=g;H[h+108>>2]=0;g=H[h+88>>2];i=H[h+92>>2];H[h+88>>2]=0;H[h+92>>2]=0;H[h+116>>2]=g;H[h+120>>2]=i;H[197455]=0;k=+(f|0);fa(1756,h+72|0,+k,-1);i=H[197455];H[197455]=0;f=1;g=h+128|0;if((i|0)==1){break w}F[h+139|0]=1;H[197455]=0;Mb(g,434376,1);f=H[197455];H[197455]=0;if((f|0)==1){break a}H[h+132>>2]=0;f=H[h+76>>2];H[h+140>>2]=H[h+72>>2];H[h+144>>2]=f;f=H[h+80>>2];H[h+80>>2]=0;H[h+148>>2]=f;H[h+72>>2]=0;H[h+76>>2]=0;H[197455]=0;fa(1756,h+56|0,+(+(e|0)-j),-1);e=H[197455];H[197455]=0;f=1;g=h+152|0;if((e|0)==1){break v}H[197455]=0;e=aa(899,32)|0;f=H[197455];H[197455]=0;if((f|0)==1){break u}H[h+156>>2]=5;H[h+160>>2]=-2147483640;H[h+152>>2]=e;H[197455]=0;Mb(e,433808,5);f=H[197455];H[197455]=0;if((f|0)==1){break a}H[e+20>>2]=0;e=h- -64|0;H[h+172>>2]=H[e>>2];f=H[h+60>>2];H[h+164>>2]=H[h+56>>2];H[h+168>>2]=f;H[e>>2]=0;H[h+56>>2]=0;H[h+60>>2]=0;H[197455]=0;fa(1756,h+40|0,+(+(d|0)-k),-1);d=H[197455];H[197455]=0;g=h+176|0;if((d|0)==1){break t}H[197455]=0;d=aa(899,32)|0;e=H[197455];H[197455]=0;f=1;if((e|0)==1){break s}H[h+180>>2]=6;H[h+184>>2]=-2147483640;H[h+176>>2]=d;H[197455]=0;Mb(d,433832,6);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[d+24>>2]=0;H[h+196>>2]=H[h+48>>2];d=H[h+44>>2];H[h+188>>2]=H[h+40>>2];H[h+192>>2]=d;H[h+48>>2]=0;H[h+40>>2]=0;H[h+44>>2]=0;H[197455]=0;fa(1756,h+24|0,+(+(c|0)*.5),-1);c=H[197455];H[197455]=0;g=h+200|0;if((c|0)==1){break r}H[197455]=0;c=aa(899,16)|0;d=H[197455];H[197455]=0;if((d|0)==1){break q}H[h+204>>2]=2;H[h+208>>2]=-2147483644;H[h+200>>2]=c;H[197455]=0;Mb(c,434124,2);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+8>>2]=0;H[h+220>>2]=H[h+32>>2];c=H[h+28>>2];H[h+212>>2]=H[h+24>>2];H[h+216>>2]=c;H[h+32>>2]=0;H[h+24>>2]=0;H[h+28>>2]=0;H[197455]=0;fa(1756,h+8|0,+(+(b|0)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break p}H[197455]=0;b=aa(899,16)|0;c=H[197455];H[197455]=0;if((c|0)==1){break o}H[h+228>>2]=2;H[h+232>>2]=-2147483644;H[h+224>>2]=b;H[197455]=0;Mb(b,434136,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}f=0;H[b+8>>2]=0;H[h+244>>2]=H[h+16>>2];b=H[h+12>>2];H[h+236>>2]=H[h+8>>2];H[h+240>>2]=b;H[h+16>>2]=0;H[h+252>>2]=6;H[197455]=0;H[h+8>>2]=0;H[h+12>>2]=0;H[h+248>>2]=h+104;b=H[h+252>>2];H[h>>2]=H[h+248>>2];H[h+4>>2]=b;c=da(1763,h+256|0,h|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break n}if(F[h+247|0]<0){Kb(H[h+236>>2])}if(F[h+235|0]<0){Kb(H[h+224>>2])}if(F[h+223|0]<0){Kb(H[h+212>>2])}if(F[h+211|0]<0){Kb(H[h+200>>2])}if(F[h+199|0]<0){Kb(H[h+188>>2])}if(F[h+187|0]<0){Kb(H[h+176>>2])}if(F[h+175|0]<0){Kb(H[h+164>>2])}if(F[h+163|0]<0){Kb(H[h+152>>2])}if(F[h+151|0]<0){Kb(H[h+140>>2])}if(F[h+139|0]<0){Kb(H[h+128>>2])}if(F[h+127|0]<0){Kb(H[h+116>>2])}if(F[h+115|0]<0){Kb(H[h+104>>2])}if(F[h+19|0]<0){Kb(H[h+8>>2])}if(F[h+35|0]<0){Kb(H[h+24>>2])}if(F[h+51|0]<0){Kb(H[h+40>>2])}if(F[h+67|0]<0){Kb(H[h+56>>2])}if(F[h+83|0]<0){Kb(H[h+72>>2])}if(F[h+99|0]<0){Kb(H[h+88>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,c|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,c|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[h+104>>2]=b;H[h+108>>2]=4;H[h+112>>2]=-2147483640;H[197455]=0;Mb(b,434384,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[h+99|0]=0;H[197455]=0;H[h+88>>2]=0;ka(1767,a|0,h+104|0,c|0,h+88|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[h+99|0]<0){Kb(H[h+88>>2])}if(F[h+115|0]<0){Kb(H[h+104>>2])}a=H[c>>2];if(a){g=H[c+4>>2];if((a|0)==(g|0)){b=a}else{while(1){if(F[g-1|0]<0){Kb(H[g-12>>2])}b=g-24|0;if(F[g-13|0]<0){Kb(H[b>>2])}g=b;if((b|0)!=(a|0)){continue}break}b=H[c>>2]}H[c+4>>2]=a;Kb(b)}xb=h+272|0;return}a=$()|0;_()|0;ea(a|0);X()}e=$()|0;_()|0;break g}e=$()|0;_()|0;break h}e=$()|0;f=1;_()|0;break i}e=$()|0;f=1;_()|0;break i}e=$()|0;_()|0;break j}e=$()|0;_()|0;break j}e=$()|0;_()|0;break k}e=$()|0;_()|0;break l}e=$()|0;_()|0;break m}e=$()|0;_()|0;Vb(h+224|0);Vb(h+200|0);Vb(h+176|0);Vb(h+152|0);Vb(h+128|0);Vb(h+104|0)}if(F[h+19|0]>=0){break l}Kb(H[h+8>>2])}g=h+224|0}if(F[h+35|0]>=0){break j}Kb(H[h+24>>2])}if(F[h+51|0]>=0){break i}Kb(H[h+40>>2])}if(F[h+67|0]>=0){break h}Kb(H[h+56>>2])}if(F[h+83|0]>=0){break g}Kb(H[h+72>>2])}if(F[h+99|0]<0){Kb(H[h+88>>2])}if(!f|(h+104|0)==(g|0)){break b}while(1){g=Vb(g-24|0);if((g|0)!=(h+104|0)){continue}break}break b}e=$()|0;_()|0;break c}e=$()|0;_()|0;break c}e=$()|0;_()|0;if(F[h+99|0]<0){Kb(H[h+88>>2])}if(F[h+115|0]>=0){break c}Kb(H[h+104>>2])}yc(c)}ea(e|0);X()}ha(0)|0;_()|0;Zb();X()}function oj(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;e=xb-32|0;xb=e;c=H[a>>2]-12|0;h=H[c>>2]+a|0;d=h+8|0;b=H[d>>2];f=H[h+12>>2];if(f>>>0>b+3>>>0){H[h+8>>2]=b+4;b=H[c>>2]+a|0;f=H[b+12>>2];d=b+8|0;b=H[d>>2]}a:{b:{c:{d:{e:{f:{if(b+3>>>0>=f>>>0){break f}h=I[b+3|0];q=I[b|0];f=I[b+1|0];i=I[b+2|0];H[d>>2]=b+4;h=f<<8|q|i<<16|h<<24;if(!h){break f}b=0;f=H[c>>2]+a|0;c=H[f+8>>2];if(c+3>>>0>2]){b=I[c+1|0];m=I[c+2|0];H[f+8>>2]=c+4;b=b<<8|m<<16}m=Qb(20);H[m>>2]=419120;H[197455]=0;c=m+4|0;H[c+4>>2]=0;H[c+8>>2]=0;H[m+16>>2]=0;H[m+4>>2]=424816;c=H[197455];H[197455]=0;g:{h:{i:{if((c|0)!=1){H[m>>2]=419680;H[m+4>>2]=419704;if(b&1048576){break f}if(b&16384){c=0;b=e+16|0;H[b+8>>2]=0;H[b>>2]=0;H[b+4>>2]=0;if(h){j:{k:{if(h>>>0>=1073741824){H[197455]=0;ia(1808,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break k}X()}H[197455]=0;d=h<<2;f=aa(899,d|0)|0;i=H[197455];H[197455]=0;if((i|0)!=1){break j}}c=$()|0;_()|0;a=H[b>>2];if(a){H[b+4>>2]=a;Kb(a)}ea(c|0);X()}H[b>>2]=f;i=d+f|0;H[b+8>>2]=i;l=Nb(f,0,d);H[b+4>>2]=i;j=a+4|0;n=H[a>>2]-12|0;while(1){i=l+(c<<2)|0;d=0;f=j+H[n>>2]|0;b=H[f+4>>2];k=H[f+8>>2];l:{if(b+1>>>0>=k>>>0){g=0;break l}g=I[b|0]|I[b+1|0]<<8;b=b+2|0;H[f+4>>2]=b}G[i>>1]=g;if(k>>>0>b+1>>>0){d=I[b|0]|I[b+1|0]<<8;H[f+4>>2]=b+2}G[i+2>>1]=d;c=c+1|0;if((h|0)!=(c|0)){continue}break}}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;m:{n:{if((h|0)<0){H[197455]=0;ia(1899,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break n}break a}H[197455]=0;f=aa(899,h|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break m}}b=$()|0;_()|0;f=H[e>>2];if(!f){break c}H[e+4>>2]=f;break d}H[e>>2]=f;b=0;i=Nb(f,0,h);n=q&1;g=a+4|0;l=H[a>>2]-12|0;if((h|0)!=1){r=h-n|0;d=0;while(1){c=0;k=g+H[l>>2]|0;j=H[k+4>>2];if(j>>>0>2]){c=I[j|0];H[k+4>>2]=j+1}F[b+i|0]=c;c=0;k=g+H[l>>2]|0;j=H[k+4>>2];if(j>>>0>2]){c=I[j|0];H[k+4>>2]=j+1}F[i+(b|1)|0]=c;b=b+2|0;d=d+2|0;if((r|0)!=(d|0)){continue}break}}if(n){j=b+i|0;b=0;d=g+H[l>>2]|0;c=H[d+4>>2];if(c>>>0>2]){b=I[c|0];H[d+4>>2]=c+1}F[j|0]=b}b=H[e+16>>2];c=G[b>>1];b=G[b+2>>1];H[197455]=0;d=m+4|0;xa(1780,d|0,+(c|0),+(b|0))|0;c=H[197455];H[197455]=0;b=1;if((c|0)!=1){if(h>>>0>1){while(1){o:{p:{switch(I[b+i|0]&15){case 0:c=H[e+16>>2]+(b<<2)|0;g=G[c>>1];c=G[c+2>>1];H[197455]=0;xa(1780,d|0,+(g|0),+(c|0))|0;c=H[197455];H[197455]=0;if((c|0)!=1){break o}break e;case 1:c=H[e+16>>2]+(b<<2)|0;g=G[c>>1];c=G[c+2>>1];H[197455]=0;xa(1781,d|0,+(g|0),+(c|0))|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}break o;case 3:break p;default:break o}}c=b+2|0;if(c>>>0>=h>>>0){break o}g=H[e+16>>2];b=g+(b<<2)|0;l=G[b+4>>1];j=G[b+6>>1];n=G[b>>1];b=G[b+2>>1];g=g+(c<<2)|0;k=G[g>>1];g=G[g+2>>1];H[197455]=0;Ia(1900,d|0,+(n|0),+(b|0),+(l|0),+(j|0),+(k|0),+(g|0))|0;g=H[197455];H[197455]=0;b=c;if((g|0)==1){break e}}if((I[b+i|0]&240)==128){H[197455]=0;aa(1782,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}}b=b+1|0;if(h>>>0>b>>>0){continue}break}}b=q&3;if(b){a=H[H[a>>2]-12>>2]+a|0;H[a+8>>2]=(H[a+8>>2]-b|0)+4}Kb(i);a=H[e+16>>2];if(!a){break f}H[e+20>>2]=a;Kb(a);break f}b=$()|0;_()|0;break d}Sp(e+16|0,a,h);H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;q:{r:{if((h|0)<0){H[197455]=0;ia(1899,e|0);a=H[197455];H[197455]=0;if((a|0)!=1){break a}break r}H[197455]=0;f=aa(899,h|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break q}}b=$()|0;_()|0;f=H[e>>2];if(!f){break g}H[e+4>>2]=f;break h}H[e>>2]=f;b=0;i=Nb(f,0,h);n=q&1;g=a+4|0;l=H[a>>2]-12|0;if((h|0)!=1){r=h-n|0;d=0;while(1){c=0;k=g+H[l>>2]|0;j=H[k+4>>2];if(j>>>0>2]){c=I[j|0];H[k+4>>2]=j+1}F[b+i|0]=c;c=0;k=g+H[l>>2]|0;j=H[k+4>>2];if(j>>>0>2]){c=I[j|0];H[k+4>>2]=j+1}F[i+(b|1)|0]=c;b=b+2|0;d=d+2|0;if((r|0)!=(d|0)){continue}break}}if(n){j=b+i|0;b=0;d=g+H[l>>2]|0;c=H[d+4>>2];if(c>>>0>2]){b=I[c|0];H[d+4>>2]=c+1}F[j|0]=b}b=H[e+16>>2];o=M[b+8>>3];p=M[b>>3];H[197455]=0;d=m+4|0;xa(1780,d|0,+p,+o)|0;c=H[197455];H[197455]=0;b=1;if((c|0)!=1){if(h>>>0>1){while(1){s:{t:{switch(I[b+i|0]&15){case 0:c=H[e+16>>2]+(b<<4)|0;o=M[c+8>>3];p=M[c>>3];H[197455]=0;xa(1780,d|0,+p,+o)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break s}break i;case 1:c=H[e+16>>2]+(b<<4)|0;o=M[c+8>>3];p=M[c>>3];H[197455]=0;xa(1781,d|0,+p,+o)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}break s;case 3:break t;default:break s}}c=b+2|0;if(c>>>0>=h>>>0){break s}g=H[e+16>>2];l=g+(c<<4)|0;o=M[l+8>>3];p=M[l>>3];b=g+(b<<4)|0;s=M[b+8>>3];t=M[b>>3];u=M[b+24>>3];v=M[b+16>>3];H[197455]=0;Ia(1900,d|0,+t,+s,+v,+u,+p,+o)|0;g=H[197455];H[197455]=0;b=c;if((g|0)==1){break i}}if((I[b+i|0]&240)==128){H[197455]=0;aa(1782,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}}b=b+1|0;if(h>>>0>b>>>0){continue}break}}b=q&3;if(b){a=H[H[a>>2]-12>>2]+a|0;H[a+8>>2]=(H[a+8>>2]-b|0)+4}Kb(i);a=H[e+16>>2];if(!a){break f}H[e+20>>2]=a;Kb(a);break f}b=$()|0;_()|0;break h}a=$()|0;_()|0;Kb(m);ea(a|0);X()}b=$()|0;_()|0}Kb(f)}a=H[e+16>>2];if(!a){break b}H[e+20>>2]=a;Kb(a);break b}xb=e+32|0;return m}b=$()|0;_()|0}Kb(f)}a=H[e+16>>2];if(!a){break b}H[e+20>>2]=a;Kb(a);ea(b|0);X()}ea(b|0);X()}X()}function bga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=xb-960|0;xb=h;a:{b:{c:{if(!H[a+4>>2]){break c}d:{switch(b-4|0){case 0:f=1;b=J[a+26>>1];if((b|0)==4){break c}f=0;if(b>>>0>4){break c}c=Bd(h+16|0,0);H[197455]=0;ba(1059,c|0,a|0);b=H[197455];H[197455]=0;e:{if((b|0)==1){break e}b=H[a+68>>2];d=H[a+20>>2];f=H[a+16>>2];H[197455]=0;pa(978,c|0,f|0,d|0,4,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}H[197455]=0;b=H[a+4>>2];d=H[a+44>>2];f=H[197455];H[197455]=0;if((f|0)==1){break e}H[197455]=0;f=H[a+44>>2];e=H[197455];H[197455]=0;if((e|0)==1){break e}H[197455]=0;ga(921,c|0,(b?d?b+40|0:0:0)|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break e}H[197455]=0;f=H[c+4>>2]!=0;b=H[197455];H[197455]=0;if((b|0)==1){break e}f:{if(!f){H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break e}he(a+72|0,c+72|0);break f}H[197455]=0;da(1062,c|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}H[197455]=0;da(1063,c|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}e=H[a+20>>2];g:{if(H[a+332>>2]|(e|0)<=0){break g}g=H[a+16>>2];if((g|0)<=0){break g}d=0;while(1){b=0;if((g|0)>0){while(1){H[197455]=0;e=Ph(a,b,d);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[197455]=0;pn(c,b,d,e);e=H[197455];H[197455]=0;if((e|0)==1){break a}b=b+1|0;g=H[a+16>>2];if((b|0)<(g|0)){continue}break}e=H[a+20>>2];b=H[a+332>>2]}d=d+1|0;if((e|0)<=(d|0)){break g}if(!b){continue}break}}H[197455]=0;ca(1066,a|0,c|0,1)|0;a=H[197455];H[197455]=0;if((a|0)==1){break e}}H[c>>2]=245276;H[197455]=0;aa(917,c|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}H[197455]=0;aa(918,c|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}break c}break a;case 4:f=1;b=J[a+26>>1];if((b|0)==8){break c}f=0;if(b>>>0>8){break c}c=Bd(h+16|0,0);H[197455]=0;ba(1059,c|0,a|0);b=H[197455];H[197455]=0;h:{if((b|0)==1){break h}b=H[a+68>>2];d=H[a+20>>2];f=H[a+16>>2];H[197455]=0;pa(978,c|0,f|0,d|0,8,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}H[197455]=0;b=H[a+4>>2];d=H[a+44>>2];f=H[197455];H[197455]=0;if((f|0)==1){break h}H[197455]=0;f=H[a+44>>2];e=H[197455];H[197455]=0;if((e|0)==1){break h}H[197455]=0;ga(921,c|0,(b?d?b+40|0:0:0)|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break h}H[197455]=0;f=H[c+4>>2]!=0;b=H[197455];H[197455]=0;if((b|0)==1){break h}i:{if(!f){H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break h}he(a+72|0,c+72|0);break i}H[197455]=0;da(1062,c|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}H[197455]=0;da(1063,c|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}e=H[a+20>>2];j:{if(H[a+332>>2]|(e|0)<=0){break j}g=H[a+16>>2];if((g|0)<=0){break j}d=0;while(1){b=0;if((g|0)>0){while(1){H[197455]=0;e=Ph(a,b,d);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[197455]=0;pn(c,b,d,e);e=H[197455];H[197455]=0;if((e|0)==1){break a}b=b+1|0;g=H[a+16>>2];if((b|0)<(g|0)){continue}break}e=H[a+20>>2];b=H[a+332>>2]}d=d+1|0;if((e|0)<=(d|0)){break j}if(!b){continue}break}}H[197455]=0;ca(1066,a|0,c|0,1)|0;a=H[197455];H[197455]=0;if((a|0)==1){break h}}H[c>>2]=245276;H[197455]=0;aa(917,c|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){H[197455]=0;aa(918,c|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break c}}break b}break a;case 20:break d;default:break c}}f=1;b=J[a+26>>1];if((b|0)==24){break c}f=0;if(b>>>0>24){break c}c=Bd(h+16|0,0);H[197455]=0;ba(1059,c|0,a|0);b=H[197455];H[197455]=0;k:{if((b|0)==1){break k}b=H[a+68>>2];d=H[a+20>>2];f=H[a+16>>2];H[197455]=0;pa(978,c|0,f|0,d|0,24,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break k}H[197455]=0;f=H[c+4>>2]!=0;b=H[197455];H[197455]=0;if((b|0)==1){break k}l:{if(!f){H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break k}he(a+72|0,c+72|0);break l}b=H[a+336>>2];if((b|0)>=0){H[197455]=0;Nd(h+12|0,a,b&255);b=H[197455];H[197455]=0;if((b|0)==1){break k}H[c+340>>2]=H[h+12>>2]}H[197455]=0;da(1062,c|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break k}H[197455]=0;da(1063,c|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break k}H[197455]=0;b=kr(a);d=H[197455];H[197455]=0;if((d|0)==1){break k}m:{if(!b){break m}H[197455]=0;b=H[a+928>>2];d=H[197455];H[197455]=0;if((d|0)==1){break k}if(b){break m}H[197455]=0;aa(1020,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break k}}e=H[a+20>>2];n:{if(H[a+332>>2]|(e|0)<=0){break n}g=H[a+16>>2];if((g|0)<=0){break n}d=0;while(1){b=0;if((g|0)>0){while(1){H[197455]=0;xg(h+8|0,a,b,d,1);e=H[197455];H[197455]=0;if((e|0)==1){break k}H[197455]=0;H[h+4>>2]=H[h+8>>2];hr(c,b,d,h+4|0,1);e=H[197455];H[197455]=0;if((e|0)==1){break k}b=b+1|0;g=H[a+16>>2];if((b|0)<(g|0)){continue}break}e=H[a+20>>2];b=H[a+332>>2]}d=d+1|0;if((e|0)<=(d|0)){break n}if(!b){continue}break}}H[197455]=0;ca(1066,a|0,c|0,1)|0;a=H[197455];H[197455]=0;if((a|0)==1){break k}}H[c>>2]=245276;H[197455]=0;aa(917,c|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){H[197455]=0;aa(918,c|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break c}}break b}break a}xb=h+960|0;return f|0}ha(0)|0;_()|0;Zb();X()}a=$()|0;_()|0;Zf(c);ea(a|0);X()}function Dp(a,b,c,d,e,f,g,h,i,j,k){var 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,G=0,J=0,K=0,L=0,M=0,O=0,P=0,Q=0,R=0;m=xb-144|0;xb=m;a:{b:{c:{d:{e:{C=c+3|0;u=Tb(C);if(u){l=C<<2;y=Tb(l);if(!y){break e}z=Tb(l);if(!z){break d}A=Tb(l);if(!A){break c}F[u|0]=46;n=1;J=(c|0)<=0;f:{if(J){break f}q=c&1;g:{if((c|0)==1){l=0;break g}o=c&-2;l=0;while(1){r=n+u|0;s=I[b+l|0];F[r|0]=(s-48&255)>>>0<10?46:s;s=r;r=I[(l|1)+b|0];F[s+1|0]=(r-48&255)>>>0<10?46:r;l=l+2|0;n=n+2|0;p=p+2|0;if((o|0)!=(p|0)){continue}break}}if(!q){break f}l=I[b+l|0];F[n+u|0]=(l-48&255)>>>0<10?46:l;n=n+1|0}l=n+u|0;F[l|0]=46;F[l+1|0]=0;w=Nb(d,48,n+1|0);x=c<<2;l=0;q=0;s=0;while(1){o=l;h:{if((q|0)!=-1){r=I[o+u|0];d=H[a+40>>2];while(1){q=d+N(q,24)|0;p=H[q+16>>2];if((p|0)>0){v=H[q+20>>2];l=0;while(1){t=v+(l<<3)|0;if((r|0)==I[t|0]){q=H[t+4>>2];d=d+N(q,24)|0;r=H[d>>2];if(!r){break h}l=F[d+9|0];v=F[d+8|0];t=(o-ac(r)|0)+1|0;D=H[d+4>>2];if(D){if(!(s|J)){Nb(A,0,x);Nb(z,255,x);s=c}H[y+(v+t<<2)>>2]=l}p=I[r|0];if(!p){break h}K=l+v|0;L=z+(v+t<<2)|0;l=0;d=r;while(1){E=l+t|0;B=E+w|0;i:{if(F[B|0]>=p<<24>>24){break i}F[B|0]=p;if(!(F[d|0]&1)){break i}H[A+(E<<2)>>2]=D;if(!D|(l|0)<(v|0)|(l|0)>(K|0)){break i}H[L>>2]=E}l=l+1|0;d=r+l|0;p=I[d|0];if(p){continue}break}break h}l=l+1|0;if((p|0)!=(l|0)){continue}break}}q=H[q+12>>2];if((q|0)!=-1){continue}break}}q=0}l=o+1|0;if((o|0)!=(n|0)){continue}break}break b}H[m>>2]=C;Fc(H[191568],239726,m);break a}H[m+16>>2]=l;Fc(H[191568],239726,m+16|0);break a}H[m+32>>2]=l;Fc(H[191568],239726,m+32|0);break a}H[m+48>>2]=l;Fc(H[191568],239726,m+48|0);break a}l=0;if((n|0)>=3){l=n-2|0;$c(w,w+1|0,l)}if((c|0)>(l|0)){Nb(l+w|0,48,(c-((n|0)>2?n:2)|0)+2|0)}l=0;F[c+w|0]=0;j:{k:{l:{m:{n:{if(!(!s|(c|0)<=0)){s=(e|0)!=0&(f|0)!=0&(g|0)!=0;while(1){d=l<<2;q=H[d+z>>2];o:{if((q|0)<0){break o}p=q<<2;o=H[p+A>>2];if(!o){break o}p:{if(!s){p=H[d+y>>2];break p}if(!H[e>>2]){Q=e,R=oc(c,4),H[Q>>2]=R}if(!H[f>>2]){Q=f,R=oc(c,4),H[Q>>2]=R}if(!H[g>>2]){Q=g,R=oc(c,4),H[Q>>2]=R}r=ac(o);n=r+1|0;v=Tb(n);if(!v){break n}n=r;r=Ob(v,o,r);F[n+r|0]=0;o=p-4|0;H[o+H[e>>2]>>2]=r;H[o+H[f>>2]>>2]=q-l;p=H[d+y>>2];H[o+H[g>>2]>>2]=p}l=(l+p|0)-1|0}l=l+1|0;if((l|0)<(c|0)){continue}break}}Kb(A);Kb(y);Kb(z);if(H[a+44>>2]){d=Tb(x);if(!d){break m}H[m+140>>2]=d;l=Tb(x);if(!l){break l}H[m+136>>2]=l;l=Tb(x);if(!l){break k}H[m+132>>2]=l;r=Tb(C);if(!r){break j}q:{r:{if((c|0)<=0){break r}H[d>>2]=0;s:{if((c|0)==1){break s}d=c-1|0;o=d&3;l=1;if(c-2>>>0>=3){s=d&-4;d=0;while(1){q=l<<2;H[q+H[m+140>>2]>>2]=0;H[(q+H[m+140>>2]|0)+4>>2]=0;H[(q+H[m+140>>2]|0)+8>>2]=0;H[(q+H[m+140>>2]|0)+12>>2]=0;l=l+4|0;d=d+4|0;if((s|0)!=(d|0)){continue}break}}if(!o){break s}p=0;while(1){H[H[m+140>>2]+(l<<2)>>2]=0;l=l+1|0;p=p+1|0;if((o|0)!=(p|0)){continue}break}}if((c|0)<=0){break r}D=(g|0)!=0&(f|0)!=0&(e|0)!=0;E=c&-4;y=c&3;J=c&-2;K=c&1;z=c-1|0;A=u+1|0;L=c+1|0;v=c+u|0;d=0;q=0;while(1){t:{u:{B=F[d+w|0]&1;if(B){break u}l=d+1|0;if((q|0)<=0){break t}if((c|0)==(l|0)){break u}break t}s=d-q|0;v:{if((s|0)<=0){q=d+1|0;break v}l=0;o=d+2|0;M=o+u|0;F[M|0]=0;p=0;w:{if(!e){break w}n=H[e>>2];if(!n){break w}G=H[f>>2];if(!G|!H[g>>2]){break w}O=d<<2;P=n+O|0;n=H[P>>2];if(!n){break w}t=ie(n,61);G=G+O|0;p=o-H[G>>2]|0;Ld(p+u|0,n,(p^-1)+C|0);p=0;F[v+2|0]=0;if(!t){break w}p=t-(H[G>>2]+H[P>>2]|0)|0;F[(o+p|0)+u|0]=0}Dp(a,q+A|0,(p+s|0)+1|0,r,m+140|0,m+136|0,m+132|0,h,i,(q|0)>0?0:j,B?0:k);x:{if(!D){Ob(q+w|0,r,s);break x}while(1){B=l+q|0;F[B+w|0]=I[l+r|0];o=H[m+140>>2];p=l<<2;if(H[o+p>>2]){if(!(H[g>>2]|(H[e>>2]|H[f>>2]))){Q=e,R=Tb(x),H[Q>>2]=R;Q=f,R=Tb(x),H[Q>>2]=R;Q=g,R=Tb(x),H[Q>>2]=R;o=0;t=0;if(z){while(1){n=o<<2;H[n+H[e>>2]>>2]=0;H[n+H[f>>2]>>2]=0;H[n+H[g>>2]>>2]=0;n=n|4;H[n+H[e>>2]>>2]=0;H[n+H[f>>2]>>2]=0;H[n+H[g>>2]>>2]=0;o=o+2|0;t=t+2|0;if((J|0)!=(t|0)){continue}break}}if(K){o=o<<2;H[o+H[e>>2]>>2]=0;H[o+H[f>>2]>>2]=0;H[o+H[g>>2]>>2]=0}o=H[m+140>>2]}n=B<<2;H[n+H[e>>2]>>2]=H[o+p>>2];H[n+H[f>>2]>>2]=H[p+H[m+136>>2]>>2];H[n+H[g>>2]>>2]=H[p+H[m+132>>2]>>2]}l=l+1|0;if((s|0)!=(l|0)){continue}break}}q=d+1|0;F[M|0]=I[q+b|0];l=H[e>>2];if(!l|!H[f>>2]|(!H[g>>2]|!H[l+(d<<2)>>2])){break v}Ld(A,b,L);F[v+2|0]=0}d=0;l=0;o=0;if(z>>>0>=3){while(1){s=l<<2;H[s+H[m+140>>2]>>2]=0;H[H[m+140>>2]+(s|4)>>2]=0;H[H[m+140>>2]+(s|8)>>2]=0;H[H[m+140>>2]+(s|12)>>2]=0;l=l+4|0;o=o+4|0;if((E|0)!=(o|0)){continue}break}}if(y){while(1){H[H[m+140>>2]+(l<<2)>>2]=0;l=l+1|0;d=d+1|0;if((y|0)!=(d|0)){continue}break}}l=q}d=l;if((l|0)!=(c|0)){continue}break}if(q){break q}}Dp(H[a+44>>2],b,c,w,e,f,g,h,i,j,k);if(!j){gy(H[a+36>>2],b,w,e,f,g,h)}if(k){break q}fy(H[a+36>>2],b,c,w,e,f,g,i)}Kb(H[m+140>>2]);Kb(H[m+132>>2]);Kb(H[m+136>>2]);Kb(r)}Kb(u);xb=m+144|0;return}H[m+128>>2]=n;Fc(H[191568],239726,m+128|0);break a}H[m+64>>2]=x;Fc(H[191568],239726,m- -64|0);break a}H[m+80>>2]=x;Fc(H[191568],239726,m+80|0);break a}H[m+96>>2]=x;Fc(H[191568],239726,m+96|0);break a}H[m+112>>2]=C;Fc(H[191568],239726,m+112|0)}Ba(1);X()}function xi(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,K=0,L=0,M=0,O=0,P=0,Q=0,R=0,S=0,T=0;g=xb-48|0;xb=g;L=H[a>>2];y=H[a+40>>2];h=H[a+36>>2];c=H[H[a+2748>>2]+40>>2];F[g+39|0]=0;F[g+40|0]=0;F[g+41|0]=0;F[g+42|0]=0;H[g+32>>2]=0;H[g+36>>2]=0;H[g+24>>2]=0;H[g+28>>2]=0;H[g+8>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;H[g>>2]=0;H[g+4>>2]=0;d=N(b,1348)+a|0;w=d;H[d+44>>2]=0;f=H[d+68>>2];D=(c>>>0)/14|0;e=H[a+28>>2];d=H[a+24>>2];c=e+N(d,40)|0;a:{if(!b){if((d|0)<=0){break a}while(1){H[e+24>>2]=G[e+12>>1];H[e+28>>2]=G[e+14>>1];e=e+40|0;if(c>>>0>e>>>0){continue}break}break a}if((d|0)<=0){break a}while(1){H[e+24>>2]=G[e+14>>1];H[e+28>>2]=G[e+12>>1];e=e+40|0;if(c>>>0>e>>>0){continue}break}}b:{if((h|0)>0){R=(h<<2)+y|0;u=N(b,1348)+a|0;E=u+72|0;c=f>>31;x=(c^f)-c|0;M=x;c=0;while(1){v=H[y>>2];e=H[v+36>>2];d=F[e+3|0];f=d>>7;f=(d^f)-f&255;c:{if((f|0)!=(x|0)){break c}d=F[v+3|0];h=d>>7;if(((d^h)-h&255)!=(x|0)){break c}if((f|0)==(x|0)){while(1){if((e|0)==(v|0)){break c}e=H[e+36>>2];d=F[e+3|0];f=d>>7;if(((d^f)-f&255)==(x|0)){continue}break}}v=H[e+32>>2]}n=0;k=-32e3;l=32e3;e=v;d=32e3;o=-32e3;h=0;f=0;m=32e3;p=-32e3;O=0;i=0;r=32e3;s=-32e3;z=32e3;A=-32e3;K=0;q=0;B=32e3;C=-32e3;while(1){P=1;d:{if(!n){break d}t=H[e+24>>2];n=(t|0)>(k|0);j=H[e+28>>2];if((j|0)<(d|0)){h=J[e>>1];d=j}k=n?t:k;l=(l|0)>(t|0)?t:l;t=J[e>>1];n=t&3;p=n?p:(j|0)>(p|0)?j:p;m=n?m:(j|0)<(m|0)?j:m;n=(j|0)>(o|0);f=n?t:f;o=n?j:o;if(!((e|0)==(v|0)|F[e+3|0]!=(M|0))){P=0;break d}e:{if(i){j=H[c+36>>2];if((j|0)==H[i+40>>2]){break e}}H[c+40>>2]=e;G[c+4>>1]=k-l>>>1;G[c+2>>1]=k+l>>>1;if(!(!((f|h)&3)|(p-m|0)>=(D|0))){F[c|0]=I[c|0]|1}G[c+8>>1]=o;G[c+6>>1]=d;G[c+10>>1]=o-d;i=c;r=l;s=k;z=d;A=o;K=h;q=f;B=m;C=p;c=0;break d}f:{if(I[j+2|0]==I[e+2|0]){H[i+40>>2]=e;j=(o|0)<(A|0);o=j?A:o;G[i+8>>1]=o;c=(d|0)>(z|0);d=c?z:d;G[i+6>>1]=d;G[i+10>>1]=o-d;k=(k|0)<(s|0)?s:k;l=(l|0)>(r|0)?r:l;G[i+4>>1]=k-l>>>1;G[i+2>>1]=k+l>>>1;h=c?K:h;f=j?q:f;p=(p|0)<(C|0)?C:p;m=(m|0)>(B|0)?B:m;F[i|0]=I[i|0]&254|((h|f)&3)!=0&(p-m|0)<(D|0);break f}j=A-z|0;Q=j>>31;t=o-d|0;n=t>>31;if((j^Q)-Q>>>0>(n^t)-n>>>0){H[i+40>>2]=e;s=(k|0)>(s|0)?k:s;r=(l|0)<(r|0)?l:r;G[i+4>>1]=s-r>>>1;G[i+2>>1]=r+s>>>1;break f}H[c+40>>2]=e;k=(k|0)<(s|0)?s:k;l=(l|0)>(r|0)?r:l;G[c+4>>1]=k-l>>>1;G[c+2>>1]=k+l>>>1;if(!(!((f|h)&3)|(p-m|0)>=(D|0))){F[c|0]=I[c|0]|1}G[c+10>>1]=t;G[c+6>>1]=d;G[c+8>>1]=o;H[i+40>>2]=H[c+40>>2];q=H[c+36>>2];H[i+32>>2]=H[c+32>>2];H[i+36>>2]=q;q=H[c+28>>2];H[i+24>>2]=H[c+24>>2];H[i+28>>2]=q;q=H[c+20>>2];H[i+16>>2]=H[c+16>>2];H[i+20>>2]=q;q=H[c+4>>2];H[i>>2]=H[c>>2];H[i+4>>2]=q;q=H[c+12>>2];H[i+8>>2]=H[c+8>>2];H[i+12>>2]=q;r=l;s=k;z=d;A=o;K=h;q=f;B=m;C=p}H[w+44>>2]=H[w+44>>2]-1;c=0}g:{if((e|0)==(v|0)){j=O;O=1;if(j){break g}}n=1;if(!P){e=H[e+32>>2];continue}j=F[e+3|0];n=j>>31;h:{if(((j^n)-n|0)==(x|0)){break h}n=0;if(H[e+36>>2]==(e|0)){break h}e=H[e+32>>2];continue}H[g+44>>2]=0;c=H[w+44>>2];i:{if((c|0)<=17){if(H[u+52>>2]){break i}H[u+52>>2]=E;H[u+48>>2]=18;break i}f=H[u+48>>2];if((f|0)>(c|0)){break i}if((f|0)>48806445){m=64;break b}j:{if((f|0)>=-16){c=(f+(f>>2)|0)+4|0;if((c|0)<48806447){break j}}c=48806446}d=H[u+52>>2];k:{if((d|0)==(E|0)){d=Ub(L,44,0,c,0,g+44|0);H[u+52>>2]=d;m=H[g+44>>2];if(m){break b}Ob(d,E,792);break k}S=u,T=Ub(L,44,f,c,d,g+44|0),H[S+52>>2]=T;m=H[g+44>>2];if(m){break b}}H[u+48>>2]=c;c=H[w+44>>2]}n=1;k=H[u+52>>2];H[w+44>>2]=c+1;f=N(c,44);c=f+k|0;F[c|0]=0;h=H[g+20>>2];d=H[g+16>>2];F[c+1|0]=d;F[c+2|0]=d>>>8;F[c+3|0]=d>>>16;F[c+4|0]=d>>>24;F[c+5|0]=h;F[c+6|0]=h>>>8;F[c+7|0]=h>>>16;F[c+8|0]=h>>>24;h=H[g+28>>2];d=H[g+24>>2];F[c+9|0]=d;F[c+10|0]=d>>>8;F[c+11|0]=d>>>16;F[c+12|0]=d>>>24;F[c+13|0]=h;F[c+14|0]=h>>>8;F[c+15|0]=h>>>16;F[c+16|0]=h>>>24;h=H[g+36>>2];d=H[g+32>>2];F[c+17|0]=d;F[c+18|0]=d>>>8;F[c+19|0]=d>>>16;F[c+20|0]=d>>>24;F[c+21|0]=h;F[c+22|0]=h>>>8;F[c+23|0]=h>>>16;F[c+24|0]=h>>>24;d=I[g+39|0]|I[g+40|0]<<8|(I[g+41|0]<<16|I[g+42|0]<<24);F[c+24|0]=d;F[c+25|0]=d>>>8;F[c+26|0]=d>>>16;F[c+27|0]=d>>>24;H[c+28>>2]=32e3;H[c+40>>2]=H[g+8>>2];d=H[g+4>>2];H[c+32>>2]=H[g>>2];H[c+36>>2]=d;F[c+1|0]=j;H[c+40>>2]=e;H[c+36>>2]=e;i=i?c-44|0:0;d=H[e+28>>2];h=J[e>>1];o=h&3;p=o?-32e3:d;m=o?32e3:d;l=H[e+24>>2];if(H[e+36>>2]==(e|0)){f=f+k|0;G[f+2>>1]=l;if(o){F[c|0]=1}G[f+10>>1]=0;G[f+8>>1]=d;G[f+6>>1]=d;n=0;c=0}k=l;o=d;f=h;M=j;e=H[e+32>>2];continue}break}y=y+4|0;if(R>>>0>y>>>0){continue}break}}m=0;e=H[(N(b,1348)+a|0)+52>>2];if(!e){break b}a=H[w+44>>2];if((a|0)<=0){break b}b=N(a,44)+e|0;while(1){a=H[e+36>>2];f=H[H[a+36>>2]+28>>2];d=H[a+28>>2];a=H[e+40>>2];c=H[a+28>>2];l:{m:{if((d|0)<(c|0)){if((d|0)>(f|0)){G[e+10>>1]=J[e+10>>1]+(d-f>>>1|0)}a=H[H[a+32>>2]+28>>2];if((a|0)<=(c|0)){break l}a=a-c|0;break m}if((d|0)<(f|0)){G[e+10>>1]=J[e+10>>1]+(f-d>>>1|0)}a=H[H[a+32>>2]+28>>2];if((a|0)>=(c|0)){break l}a=c-a|0}G[e+10>>1]=J[e+10>>1]+(a>>>1|0)}e=e+44|0;if(b>>>0>e>>>0){continue}break}}xb=g+48|0;return m}function as(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;d=b<<1;q=d+a|0;if(b>>>0>=10){while(1){l=a+2|0;h=(b&-2)+a|0;i=($r(l,h,c)|0)>0;b=i?l:h;d=d-2|0;g=d+a|0;e=g-2|0;if(($r(b,e,c)|0)>0){b=i?h:l;b=($r(b,e,c)|0)>0?b:e}if((b|0)!=(g|0)){l=I[b|0];F[b|0]=I[g|0];F[g|0]=l;l=I[b+1|0];F[b+1|0]=I[g+1|0];F[g+1|0]=l}a:{if((d|0)<=0){e=0;break a}l=g;h=g;i=a;b=i;while(1){b:{if(b>>>0>=h>>>0){break b}c:{while(1){d:{n=J[b>>1];k=J[g>>1];e:{f:{g:{h:{i:{f=H[c+4>>2];if((f|0)!=131072){if((f|0)!=65536){break f}j=0;m=0;e=0;if(k>>>0<=257){e=k<<2;d=H[e+122816>>2];m=d+119104|0;e=H[e+122820>>2]+(d^-1)|0}if(n>>>0<=257){break i}d=0;break g}j=0;m=0;e=0;d=H[c+8>>2];o=I[d|0]|I[d+1|0]<<8;p=(o<<8|o>>>8)&65535;j:{if(p>>>0<=k>>>0){break j}e=d+(k<<1)|0;e=I[e+2|0]|I[e+3|0]<<8;o=(e<<8|e>>>8)&65535;if(o>>>0<=257){e=o<<2;m=H[e+122816>>2];e=H[e+122820>>2]+(m^-1)|0;m=m+119104|0;break j}e=0;o=o-258|0;if(o>>>0>=K[c+16>>2]){break j}e=H[c+24>>2]+H[H[c+20>>2]+(o<<2)>>2]|0;m=e+1|0;e=I[e|0]}if(n>>>0

>>0){break h}d=0;break g}d=n<<2;j=H[d+122816>>2];d=H[d+122820>>2]+(j^-1)|0;j=j+119104|0;break g}d=d+(n<<1)|0;d=I[d+2|0]|I[d+3|0]<<8;d=(d<<8|d>>>8)&65535;if(d>>>0<=257){d=d<<2;j=H[d+122816>>2];d=H[d+122820>>2]+(j^-1)|0;j=j+119104|0;break g}d=d-258|0;if(d>>>0>=K[c+16>>2]){d=0;break g}d=H[c+24>>2]+H[H[c+20>>2]+(d<<2)>>2]|0;j=d+1|0;d=I[d|0]}if((d|0)!=(e|0)){d=d-e|0}else{if(!e){break f}d=md(j,m,e)}if((d|0)>0){if(b>>>0>>0){break d}break c}if(d){break e}}if(b>>>0>i>>>0){d=I[i|0];F[i|0]=n;F[b|0]=d;d=I[i+1|0];F[i+1|0]=n>>>8;F[b+1|0]=d}i=i+2|0}b=b+2|0;if(h>>>0>b>>>0){continue}break b}break}k:{while(1){n=k&65535;e=h-2|0;k=J[e>>1];o=k>>>8|0;l:{m:{n:{o:{p:{q:{if((f|0)!=131072){if((f|0)!=65536){break n}j=0;m=0;d=0;if(n>>>0<=257){d=n<<2;f=H[d+122816>>2];m=f+119104|0;d=H[d+122820>>2]+(f^-1)|0}if(k>>>0<=257){break q}f=0;break o}j=0;m=0;d=0;f=H[c+8>>2];p=I[f|0]|I[f+1|0]<<8;p=(p<<8|p>>>8)&65535;r:{if(p>>>0<=n>>>0){break r}d=f+(n<<1)|0;d=I[d+2|0]|I[d+3|0]<<8;n=(d<<8|d>>>8)&65535;if(n>>>0<=257){d=n<<2;m=H[d+122816>>2];d=H[d+122820>>2]+(m^-1)|0;m=m+119104|0;break r}d=0;n=n-258|0;if(n>>>0>=K[c+16>>2]){break r}d=H[c+24>>2]+H[H[c+20>>2]+(n<<2)>>2]|0;m=d+1|0;d=I[d|0]}if(k>>>0

>>0){break p}f=0;break o}f=k<<2;j=H[f+122816>>2];f=H[f+122820>>2]+(j^-1)|0;j=j+119104|0;break o}j=f+(k<<1)|0;j=I[j+2|0]|I[j+3|0]<<8;f=(j<<8|j>>>8)&65535;if(f>>>0<=257){f=f<<2;j=H[f+122816>>2];f=H[f+122820>>2]+(j^-1)|0;j=j+119104|0;break o}j=0;f=f-258|0;if(f>>>0>=K[c+16>>2]){f=0;break o}f=H[c+24>>2]+H[H[c+20>>2]+(f<<2)>>2]|0;j=f+1|0;f=I[f|0]}if((d|0)!=(f|0)){d=f-d|0}else{if(!d){break n}d=md(j,m,d)}if(d){break m}}d=l-2|0;if(h>>>0>=l>>>0){break l}F[e|0]=I[d|0];F[d|0]=k;l=l-1|0;F[h-1|0]=I[l|0];F[l|0]=o;break l}if((d|0)>=0){d=l;break l}if(b>>>0>>0){d=I[b|0];F[b|0]=k;F[e|0]=d;d=I[b+1|0];F[b+1|0]=o;F[h-1|0]=d}b=b+2|0;break k}if(b>>>0>>0){f=H[c+4>>2];k=J[g>>1];l=d;h=e;continue}break}l=d}h=e}if(b>>>0>>0){continue}}break}d=h-i|0;s:{if((a|0)==(i|0)|(h|0)==(i|0)){break s}b=i-a|0;if(b>>>0>d>>>0){if((d|0)<=0){break s}e=a+d|0;b=a+b|0;i=a;while(1){g=I[i|0];F[i|0]=I[b|0];F[b|0]=g;b=b+1|0;i=i+1|0;if(e>>>0>i>>>0){continue}break}break s}if((b|0)<=0){break s}e=a+b|0;b=a+d|0;i=a;while(1){g=I[i|0];F[i|0]=I[b|0];F[b|0]=g;b=b+1|0;i=i+1|0;if(e>>>0>i>>>0){continue}break}}e=l-h|0;if((h|0)==(l|0)|(l|0)==(q|0)){break a}b=q-l|0;if(b>>>0>>0){if((b|0)<=0){break a}l=b+h|0;b=e+h|0;while(1){i=I[h|0];F[h|0]=I[b|0];F[b|0]=i;b=b+1|0;h=h+1|0;if(l>>>0>h>>>0){continue}break}break a}if((e|0)<=0){break a}l=e+h|0;b=b+h|0;while(1){i=I[h|0];F[h|0]=I[b|0];F[b|0]=i;b=b+1|0;h=h+1|0;if(l>>>0>h>>>0){continue}break}}as(a,d>>>1|0,c);a=q-e|0;d=e&-2;q=a+d|0;b=e>>>1|0;if(e>>>0>=20){continue}break}}j=a+2|0;if(q>>>0>j>>>0){while(1){b=j;t:{if(b>>>0<=a>>>0){break t}while(1){h=J[b>>1];l=b-2|0;i=J[l>>1];u:{v:{w:{d=H[c+4>>2];if((d|0)!=131072){if((d|0)!=65536){break t}f=0;d=0;e=0;if(h>>>0<=257){e=h<<2;d=H[e+122816>>2];e=H[e+122820>>2]+(d^-1)|0;d=d+119104|0}if(i>>>0<=257){break w}k=0;break u}f=0;d=0;e=0;g=H[c+8>>2];k=I[g|0]|I[g+1|0]<<8;m=(k<<8|k>>>8)&65535;x:{if(m>>>0<=h>>>0){break x}d=g+(h<<1)|0;d=I[d+2|0]|I[d+3|0]<<8;k=(d<<8|d>>>8)&65535;if(k>>>0<=257){e=k<<2;d=H[e+122816>>2];e=H[e+122820>>2]+(d^-1)|0;d=d+119104|0;break x}d=0;k=k-258|0;if(k>>>0>=K[c+16>>2]){break x}e=H[c+24>>2]+H[H[c+20>>2]+(k<<2)>>2]|0;d=e+1|0;e=I[e|0]}if(i>>>0>>0){break v}k=0;break u}f=i<<2;g=H[f+122816>>2];k=H[f+122820>>2]+(g^-1)|0;f=g+119104|0;break u}g=g+(i<<1)|0;g=I[g+2|0]|I[g+3|0]<<8;g=(g<<8|g>>>8)&65535;if(g>>>0<=257){f=g<<2;g=H[f+122816>>2];k=H[f+122820>>2]+(g^-1)|0;f=g+119104|0;break u}g=g-258|0;if(g>>>0>=K[c+16>>2]){k=0;break u}g=H[c+24>>2]+H[H[c+20>>2]+(g<<2)>>2]|0;f=g+1|0;k=I[g|0]}if((e|0)!=(k|0)){d=k-e|0}else{if(!e){break t}d=md(f,d,e)}if((d|0)<=0){break t}F[l|0]=h;F[b+1|0]=i>>>8;F[b-1|0]=h>>>8;F[b|0]=i;b=l;if(b>>>0>a>>>0){continue}break}}j=j+2|0;if(q>>>0>j>>>0){continue}break}}}function Er(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;g=xb-112|0;xb=g;a:{if(!a){f=-102;break a}h=-1;k=H[a+76>>2]+H[a+92>>2]|0;j=H[a+88>>2];i=j+H[a+72>>2]|0;k=i>>>0>>0?k+1|0:k;b:{if(We(a,H[a+48>>2],i,k,0)){break b}if(Xd(a,H[a+48>>2],g+12|0)){break b}h=H[g+12>>2]==33639248?0:-103}j=H[a+48>>2];c:{d:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+24|0,1)|0)==1){f=I[g+24|0];break d}i=-1;if(zb[H[a+24>>2]](H[a+28>>2],j)|0){break c}}e:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+24|0,1)|0)==1){i=I[g+24|0];break e}i=f;if(!(zb[H[a+24>>2]](H[a+28>>2],j)|0)){break e}f=0;i=-1;break c}f=i<<8|f;i=h}H[g+24>>2]=f;j=H[a+48>>2];f:{g:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){f=I[g+16|0];break g}f=0;h=-1;if(zb[H[a+24>>2]](H[a+28>>2],j)|0){break f}}h:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){h=I[g+16|0];break h}h=f;if(!(zb[H[a+24>>2]](H[a+28>>2],j)|0)){break h}f=0;h=-1;break f}f=h<<8|f;h=i}H[g+28>>2]=f;j=H[a+48>>2];i:{j:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){f=I[g+16|0];break j}f=0;i=-1;if(zb[H[a+24>>2]](H[a+28>>2],j)|0){break i}}k:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){i=I[g+16|0];break k}i=f;if(!(zb[H[a+24>>2]](H[a+28>>2],j)|0)){break k}f=0;i=-1;break i}f=i<<8|f;i=h}H[g+32>>2]=f;j=H[a+48>>2];l:{m:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){f=I[g+16|0];break m}f=0;h=-1;if(zb[H[a+24>>2]](H[a+28>>2],j)|0){break l}}n:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){h=I[g+16|0];break n}h=f;if(!(zb[H[a+24>>2]](H[a+28>>2],j)|0)){break n}f=0;h=-1;break l}f=h<<8|f;h=i}j=h;H[g+36>>2]=f;n=Xd(a,H[a+48>>2],g+40|0);f=H[g+40>>2];H[g+108>>2]=(f>>>25|0)+1980;H[g+100>>2]=f>>>16&31;H[g+96>>2]=f>>>11&31;H[g+92>>2]=f>>>5&63;i=-1;H[g+104>>2]=(f>>>21&15)-1;H[g+88>>2]=f<<1&62;o=Xd(a,H[a+48>>2],g+44|0);l=Xd(a,H[a+48>>2],g+8|0);H[g+48>>2]=H[g+8>>2];H[g+52>>2]=0;k=Xd(a,H[a+48>>2],g+8|0);H[g+56>>2]=H[g+8>>2];H[g+60>>2]=0;m=H[a+48>>2];o:{p:{if((zb[H[a+4>>2]](H[a+28>>2],m,g+16|0,1)|0)==1){f=I[g+16|0];break p}f=0;if(zb[H[a+24>>2]](H[a+28>>2],m)|0){break o}}q:{if((zb[H[a+4>>2]](H[a+28>>2],m,g+16|0,1)|0)==1){h=I[g+16|0];break q}h=f;if(!(zb[H[a+24>>2]](H[a+28>>2],m)|0)){break q}f=0;break o}i=k|l|(n|o)?-1:j;f=h<<8|f}H[g+64>>2]=f;j=H[a+48>>2];r:{s:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){f=I[g+16|0];break s}f=0;h=-1;if(zb[H[a+24>>2]](H[a+28>>2],j)|0){break r}}t:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){h=I[g+16|0];break t}h=f;if(!(zb[H[a+24>>2]](H[a+28>>2],j)|0)){break t}f=0;h=-1;break r}f=h<<8|f;h=i}H[g+68>>2]=f;j=H[a+48>>2];u:{v:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){f=I[g+16|0];break v}f=0;i=-1;if(zb[H[a+24>>2]](H[a+28>>2],j)|0){break u}}w:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){i=I[g+16|0];break w}i=f;if(!(zb[H[a+24>>2]](H[a+28>>2],j)|0)){break w}f=0;i=-1;break u}f=i<<8|f;i=h}H[g+72>>2]=f;j=H[a+48>>2];x:{y:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){f=I[g+16|0];break y}f=0;h=-1;if(zb[H[a+24>>2]](H[a+28>>2],j)|0){break x}}z:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){h=I[g+16|0];break z}h=f;if(!(zb[H[a+24>>2]](H[a+28>>2],j)|0)){break z}f=0;h=-1;break x}f=h<<8|f;h=i}H[g+76>>2]=f;j=H[a+48>>2];A:{B:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){f=I[g+16|0];break B}f=0;i=-1;if(zb[H[a+24>>2]](H[a+28>>2],j)|0){break A}}C:{if((zb[H[a+4>>2]](H[a+28>>2],j,g+16|0,1)|0)==1){i=I[g+16|0];break C}i=f;if(!(zb[H[a+24>>2]](H[a+28>>2],j)|0)){break C}f=0;i=-1;break A}f=i<<8|f;i=h}H[g+80>>2]=f;h=Xd(a,H[a+48>>2],g+84|0);f=Xd(a,H[a+48>>2],g+8|0);H[g+16>>2]=H[g+8>>2];H[g+20>>2]=0;f=f|h?-1:i;h=H[g+64>>2];if(!(f|!d)){i=e;if(i>>>0>h>>>0){F[d+h|0]=0;i=h}f=0;if(!(!e|!h)){f=(zb[H[a+4>>2]](H[a+28>>2],H[a+48>>2],d,i)|0)!=(i|0)?-1:0}h=h-i|0}e=H[g+68>>2];d=h+e|0;D:{if(!e|f){break D}i=0;f=0;if((d|0)!=(e|0)){d=d-e|0;f=We(a,H[a+48>>2],d,d>>31,1)?-1:0;if(!H[g+68>>2]){break D}}k=g+56|0;j=g+48|0;while(1){d=H[a+48>>2];E:{F:{if((zb[H[a+4>>2]](H[a+28>>2],d,g+4|0,1)|0)==1){h=I[g+4|0];break F}h=0;e=-1;if(zb[H[a+24>>2]](H[a+28>>2],d)|0){break E}}G:{if((zb[H[a+4>>2]](H[a+28>>2],d,g+4|0,1)|0)==1){e=I[g+4|0];break G}e=h;if(!(zb[H[a+24>>2]](H[a+28>>2],d)|0)){break G}h=0;e=-1;break E}h=e<<8|h;e=f}l=H[a+48>>2];H:{I:{if((zb[H[a+4>>2]](H[a+28>>2],l,g+4|0,1)|0)==1){d=I[g+4|0];break I}d=0;f=-1;if(zb[H[a+24>>2]](H[a+28>>2],l)|0){break H}}J:{if((zb[H[a+4>>2]](H[a+28>>2],l,g+4|0,1)|0)==1){f=I[g+4|0];break J}f=d;if(!(zb[H[a+24>>2]](H[a+28>>2],l)|0)){break J}d=0;f=-1;break H}d=f<<8|d;f=e}K:{if((h|0)==1){if(!H[g+60>>2]&H[g+56>>2]==-1){f=Xg(a,H[a+48>>2],k)?-1:f}if(!H[g+52>>2]&H[g+48>>2]==-1){f=Xg(a,H[a+48>>2],j)?-1:f}if(!H[g+20>>2]&H[g+16>>2]==-1){f=Xg(a,H[a+48>>2],g+16|0)?-1:f}if(H[g+76>>2]!=-1){break K}f=Xd(a,H[a+48>>2],g+4|0)?-1:f;break K}f=We(a,H[a+48>>2],d,0,1)?-1:f}i=(d+i|0)+4|0;if(i>>>0>2]){continue}break}}if(!(f|!b)){Ob(b,g+24|0,88)}if(f|!c){break a}a=H[g+20>>2];H[c>>2]=H[g+16>>2];H[c+4>>2]=a;f=0}xb=g+112|0;return f}function Mv(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;i=781624;f=xb-224|0;xb=f;H[f+220>>2]=781624;a:{b:{c:{d:{e:{h=H[195406];if(!h){break e}f:{g:{h:{while(1){g=H[f+220>>2];e=i;while(1){if(!(!h|(h|0)==37)){h=H[e+4>>2];g=e+4|0;e=g;continue}break}H[f+220>>2]=g;i:{if((h|0)!=37){h=e;break i}j:{k:{if(H[e+4>>2]==37){h=e;break k}g=H[f+220>>2];h=e;break j}while(1){l:{g=e+8|0;h=h+4|0;if(H[e+8>>2]!=37){break l}j=H[e+12>>2];e=g;if((j|0)==37){continue}break j}break}e=g}H[f+220>>2]=g}g=h-i>>2;q=2147483647-l|0;if((g|0)>(q|0)){break g}if(a){Mo(a,i,g)}m:{n:{if((h|0)!=(i|0)){i=e;break n}h=e+4|0;o=-1;g=H[e+4>>2];i=g-48|0;if(!(H[e+8>>2]!=36|i>>>0>9)){g=H[e+12>>2];p=1;o=i;h=e+12|0}n=0;o:{p:{q:{r:{s:{e=g-32|0;if(e>>>0<=31){e=1<>2];e=g-32|0;if(e>>>0>=32){break t}h=i;e=1<>2]=h;break r}H[f+220>>2]=h;if((g|0)!=42){break r}e=H[h+4>>2]-48|0;if(H[h+8>>2]!=36|e>>>0>9){break q}H[(e<<2)+d>>2]=10;i=h+12|0;m=H[((H[h+4>>2]<<4)+c|0)-768>>2];p=1;break p}m=Lv(f+220|0);if((m|0)<0){break g}i=H[f+220>>2];break o}if(p){break h}i=h+4|0;if(!a){p=0;m=0;break o}e=H[b>>2];H[b>>2]=e+4;m=H[e>>2];p=0}if((m|0)>=0){break o}m=0-m|0;n=n|8192}h=0;k=-1;u:{if(H[i>>2]!=46){e=i;i=0;break u}if(H[i+4>>2]==42){v:{if(!(H[i+12>>2]!=36|H[i+8>>2]-48>>>0>=10)){H[((H[i+8>>2]<<2)+d|0)-192>>2]=10;e=i+16|0;k=H[((H[i+8>>2]<<4)+c|0)-768>>2];break v}if(p){break h}e=i+8|0;k=0;if(!a){break v}i=H[b>>2];H[b>>2]=i+4;k=H[i>>2]}i=(k^-1)>>>31|0;break u}H[f+220>>2]=i+4;k=Lv(f+220|0);e=H[f+220>>2];i=1}r=i;g=H[e>>2];if(g-123>>>0<4294967238){i=H[f+220>>2];break m}while(1){w:{i=e+4|0;g=I[(N(h,58)+g|0)+780895|0];if(g-1>>>0>=8){break w}h=g;e=i;g=H[e>>2];if(g-123>>>0>=4294967238){continue}break m}break}H[f+220>>2]=i;j=28;x:{y:{z:{if((g|0)!=27){if(!g){break f}if((o|0)>=0){H[(o<<2)+d>>2]=g;g=(o<<4)+c|0;j=H[g+12>>2];H[f+208>>2]=H[g+8>>2];H[f+212>>2]=j;j=H[g+4>>2];H[f+200>>2]=H[g>>2];H[f+204>>2]=j;break z}if(a){break y}break d}if((o|0)>=0){break f}}if(a){break x}g=0;break n}Kv(f+200|0,g,b)}A:{B:{C:{D:{E:{e=H[e>>2];e=h?(e&15)==3?e&-33:e:e;if((e|0)<=108){if((e|0)==67){break E}if((e|0)==83){break D}if((e|0)!=99){break A}g=(m|0)>1?m:1;k=g>>>0<2;h=n&8192;if(!(k|h)){H[f+100>>2]=239897;H[f+96>>2]=g-1;uh(a,238450,f+96|0)}j=H[f+200>>2];e=j&255;if(e>>>0>=128){e=(j|0)!=-1?H[H[197059]>>2]?-1:j<<24>>24&57343:-1}Rl(e,a);if(!h|k){break n}H[f+84>>2]=239897;H[f+80>>2]=g-1;uh(a,238450,f+80|0);break n}F:{switch(e-109|0){case 6:e=H[f+200>>2];break B;case 0:break C;case 1:break F;default:break A}}g=0;G:{switch(h&255){case 0:H[H[f+200>>2]>>2]=l;break n;case 1:H[H[f+200>>2]>>2]=l;break n;case 2:e=H[f+200>>2];H[e>>2]=l;H[e+4>>2]=l>>31;break n;case 3:G[H[f+200>>2]>>1]=l;break n;case 4:F[H[f+200>>2]]=l;break n;case 6:H[H[f+200>>2]>>2]=l;break n;case 7:break G;default:break n}}e=H[f+200>>2];H[e>>2]=l;H[e+4>>2]=l>>31;break n}Rl(H[f+200>>2],a);g=1;break n}h=H[f+200>>2];e=h;g=k>>>0<2147483647?k:2147483647;j=ig(e,0,g);e=j?j-e>>2:g;if(H[(e<<2)+h>>2]?(k|0)<0:0){break g}g=(e|0)<(m|0)?m:e;if(!(n&8192)){H[f+116>>2]=239897;H[f+112>>2]=g-e;uh(a,238450,f+112|0);Mo(a,h,e);break n}Mo(a,h,e);H[f+132>>2]=239897;H[f+128>>2]=g-e;uh(a,238450,f+128|0);break n}e=Nv(H[197018])}e=e?e:239684;H[f+200>>2]=e;j=0;h=e;g=k>>>0<2147483647?k:2147483647;H:{if(!g){break H}I:{while(1){o=ok(f+172|0,h,4);if((o|0)<=0){break I}h=h+o|0;j=j+1|0;if((g|0)!=(j|0)){continue}break}j=g;break H}if((o|0)<0){break b}}if(I[h|0]?(k|0)<0:0){break g}g=(j|0)<(m|0)?m:j;k=n&8192;if(!k){H[f+164>>2]=239897;H[f+160>>2]=g-j;uh(a,238450,f+160|0)}h=j;if(h){while(1){o=ok(f+172|0,e,4);Rl(H[f+172>>2],a);e=e+o|0;h=h-1|0;if(h){continue}break}}if(!k){break n}H[f+148>>2]=239897;H[f+144>>2]=g-j;uh(a,238450,f+144|0);break n}if((k|0)<0?r:0){break g}H[f+72>>2]=e;e=e|32;H[f+68>>2]=F[e+780831|0];H[f- -64>>2]=((n>>>16^-1)&1)+239674;H[f+60>>2]=((n^-1)&1)+239724;H[f+56>>2]=((n>>>13^-1)&1)+239678;H[f+52>>2]=((n>>>11^-1)&1)+239682;H[f+48>>2]=((n>>>3^-1)&1)+239691;jg(f+176|0,16,239440,f+48|0);g=0;e=e-97|0;if(e>>>0>23){break n}e=1<>2];H[f+16>>2]=H[f+208>>2];H[f+20>>2]=e;H[f>>2]=m;H[f+4>>2]=k;e=H[f+204>>2];H[f+8>>2]=H[f+200>>2];H[f+12>>2]=e;g=uh(a,f+176|0,f);break n}H[f+32>>2]=m;H[f+36>>2]=k;e=H[f+204>>2];H[f+40>>2]=H[f+200>>2];H[f+44>>2]=e;g=uh(a,f+176|0,f+32|0)}j=61;if((g|0)>(q|0)){break f}l=g+l|0;h=H[i>>2];if(!h){break e}continue}break}H[f+220>>2]=i}j=28;break f}j=61}H[197018]=j;break b}if(a){break a}if(!p){break d}e=1;while(1){a=H[(e<<2)+d>>2];if(!a){break c}Kv((e<<4)+c|0,a,b);l=1;e=e+1|0;if((e|0)!=10){continue}break}break a}l=0;break a}l=1;if(e>>>0>=10){break a}while(1){if(H[(e<<2)+d>>2]){break b}e=e+1|0;if((e|0)!=10){continue}break}break a}l=-1}xb=f+224|0;return l}function Oca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(H[a+76>>2]>0){c=H[a+416>>2];k=H[a+84>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{f=H[k+36>>2];b=H[k+40>>2]+(f<<8)|0;if((b|0)<=2051){if((b|0)<=1025){J:{switch(b-513|0){case 0:break n;case 1:break H;case 2:break c;case 3:break g;default:break J}}K:{switch(b-257|0){case 0:break I;case 1:break f;default:break K}}switch(b-771|0){case 3:break h;case 0:break G;default:break c}}if((b|0)<=1538){L:{switch(b-1026|0){case 6:break i;case 0:break o;case 2:break F;case 1:case 3:case 4:case 5:break c;default:break L}}switch(b-1285|0){case 5:break j;case 0:break E;default:break c}}M:{switch(b-1539|0){case 9:break k;case 0:break p;case 3:break D;case 1:case 2:case 4:case 5:case 6:case 7:case 8:break c;default:break M}}switch(b-1799|0){case 7:break l;case 0:break C;default:break c}}if((b|0)<=3077){if((b|0)<=2564){switch(b-2052|0){case 12:break m;case 0:break q;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break c;case 4:break e;default:break d}}switch(b-2565|0){case 0:break r;case 5:break B;case 1:case 2:case 3:case 4:break c;default:break A}}if((b|0)<=3590){switch(b-3078|0){case 0:break s;case 6:break z;case 1:case 2:case 3:case 4:case 5:break c;default:break y}}N:{switch(b-3591|0){case 0:break t;case 7:break x;case 1:case 2:case 3:case 4:case 5:case 6:break c;default:break N}}switch(b-4104|0){case 0:break u;case 8:break v;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break c;default:break w}}H[((d<<2)+c|0)+44>>2]=1333;e=0;break a}H[((d<<2)+c|0)+44>>2]=1334;e=0;break a}H[((d<<2)+c|0)+44>>2]=1335;e=0;break a}H[((d<<2)+c|0)+44>>2]=1336;e=0;break a}H[((d<<2)+c|0)+44>>2]=1337;e=0;break a}H[((d<<2)+c|0)+44>>2]=1338;e=0;break a}H[((d<<2)+c|0)+44>>2]=1339;e=0;break a}H[((d<<2)+c|0)+44>>2]=1340;e=0;break a}if((b|0)!=2827){break c}H[((d<<2)+c|0)+44>>2]=1341;e=0;break a}H[((d<<2)+c|0)+44>>2]=1342;e=0;break a}if((b|0)!=3341){break c}H[((d<<2)+c|0)+44>>2]=1343;e=0;break a}H[((d<<2)+c|0)+44>>2]=1344;e=0;break a}if((b|0)!=3855){break c}H[((d<<2)+c|0)+44>>2]=1345;e=0;break a}H[((d<<2)+c|0)+44>>2]=1346;e=0;break a}H[((d<<2)+c|0)+44>>2]=1347;e=0;break a}H[((d<<2)+c|0)+44>>2]=1348;e=0;break a}H[((d<<2)+c|0)+44>>2]=1349;e=0;break a}H[((d<<2)+c|0)+44>>2]=1350;e=0;break a}H[((d<<2)+c|0)+44>>2]=1351;e=0;break a}H[((d<<2)+c|0)+44>>2]=1352;e=0;break a}H[((d<<2)+c|0)+44>>2]=1353;e=0;break a}H[((d<<2)+c|0)+44>>2]=1354;e=0;break a}H[((d<<2)+c|0)+44>>2]=1355;e=0;break a}H[((d<<2)+c|0)+44>>2]=1356;e=0;break a}H[((d<<2)+c|0)+44>>2]=1357;e=0;break a}H[((d<<2)+c|0)+44>>2]=1358;e=0;break a}H[((d<<2)+c|0)+44>>2]=1359;e=0;break a}H[((d<<2)+c|0)+44>>2]=1360;e=0;break a}H[((d<<2)+c|0)+44>>2]=1361;e=0;break a}H[((d<<2)+c|0)+44>>2]=1362;e=0;break a}O:{switch(H[a+232>>2]){case 0:H[((d<<2)+c|0)+44>>2]=1363;e=0;break a;case 1:H[((d<<2)+c|0)+44>>2]=1364;e=1;break a;case 2:e=2;H[((d<<2)+c|0)+100>>2]=1365;break a;default:break O}}b=H[a>>2];H[b+20>>2]=49;zb[H[b>>2]](a);break a}if((b|0)==2313){break b}}b=H[a>>2];H[b+24>>2]=f;H[b+20>>2]=7;H[H[a>>2]+28>>2]=H[k+40>>2];zb[H[H[a>>2]>>2]](a);break a}H[((d<<2)+c|0)+44>>2]=1366;e=0}b=H[k+16>>2];P:{if(b>>>0<=3){i=H[((b<<2)+a|0)+88>>2];if(i){break P}}f=H[a>>2];H[f+24>>2]=b;H[f+20>>2]=54;zb[H[H[a>>2]>>2]](a);i=H[((b<<2)+a|0)+88>>2]}Q:{R:{switch(e|0){case 0:b=(b<<2)+c|0;f=H[b+84>>2];if(!f){f=zb[H[H[a+4>>2]>>2]](a,1,256)|0;H[b+84>>2]=f}b=0;while(1){H[(b<<2)+f>>2]=J[(b<<1)+i>>1]<<3;h=b|1;H[(h<<2)+f>>2]=J[(h<<1)+i>>1]<<3;h=b|2;H[(h<<2)+f>>2]=J[(h<<1)+i>>1]<<3;h=b|3;H[(h<<2)+f>>2]=J[(h<<1)+i>>1]<<3;b=b+4|0;if((b|0)!=64){continue}break};H[((d<<2)+c|0)+4>>2]=1367;break Q;case 1:b=(b<<2)+c|0;f=H[b+84>>2];if(!f){f=zb[H[H[a+4>>2]>>2]](a,1,256)|0;H[b+84>>2]=f}b=0;while(1){h=b<<1;H[(b<<2)+f>>2]=N(G[h+258528>>1],J[i+h>>1])+1024>>11;g=b|1;h=g<<1;H[(g<<2)+f>>2]=N(G[h+258528>>1],J[i+h>>1])+1024>>11;b=b+2|0;if((b|0)!=64){continue}break};H[((d<<2)+c|0)+4>>2]=1367;break Q;case 2:b=(b<<2)+c|0;f=H[b+140>>2];if(!f){f=zb[H[H[a+4>>2]>>2]](a,1,256)|0;H[b+140>>2]=f}h=0;b=0;while(1){j=M[(h<<3)+258656>>3];L[(b<<2)+f>>2]=1/(j*+J[(b<<1)+i>>1]*8);g=b|1;L[(g<<2)+f>>2]=1/(j*+J[(g<<1)+i>>1]*1.387039845*8);g=b|2;L[(g<<2)+f>>2]=1/(j*+J[(g<<1)+i>>1]*1.306562965*8);g=b|3;L[(g<<2)+f>>2]=1/(j*+J[(g<<1)+i>>1]*1.175875602*8);g=b|4;L[(g<<2)+f>>2]=1/(j*+J[(g<<1)+i>>1]*8);g=b|5;L[(g<<2)+f>>2]=1/(j*+J[(g<<1)+i>>1]*.785694958*8);g=b|6;L[(g<<2)+f>>2]=1/(j*+J[(g<<1)+i>>1]*.5411961*8);g=b|7;L[(g<<2)+f>>2]=1/(j*+J[(g<<1)+i>>1]*.275899379*8);b=b+8|0;h=h+1|0;if((h|0)!=8){continue}break};H[((d<<2)+c|0)+4>>2]=1368;break Q;default:break R}}b=H[a>>2];H[b+20>>2]=49;zb[H[b>>2]](a)}k=k+88|0;d=d+1|0;if((d|0)>2]){continue}break}}}function et(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;m=N(b,c)+a|0;if(b>>>0>=10){n=0-c|0;o=c-1&3;p=c-2>>>0<3;while(1){i=N(b-1|0,c);j=i+a|0;l=j+n|0;k=a+c|0;d=H[k>>2];h=N(b>>>1|0,c)+a|0;b=H[h>>2];a:{if((d|0)!=(b|0)){b=(b|0)>(d|0)?-1:1;break a}b:{if(I[k+8|0]){break b}d=H[h+4>>2];b=H[k+4>>2];if((d^b)>>>0<2){break b}b=(b|0)<(d|0)?-1:1;break a}d=H[k+12>>2];b=H[h+12>>2];b=b>>>0>d>>>0?-1:d>>>0>b>>>0}e=(b|0)>0;b=e?k:h;d=H[b>>2];g=H[l>>2];c:{d:{if((d|0)!=(g|0)){if((d|0)>=(g|0)){break d}break c}e:{if(I[b+8|0]){break e}f=H[l+4>>2];d=H[b+4>>2];if((f^d)>>>0<2){break e}if((d|0)>=(f|0)){break d}break c}if(K[b+12>>2]<=K[l+12>>2]){break c}}f=e?h:k;b=H[f>>2];f:{if((b|0)!=(g|0)){b=(b|0)<(g|0)?-1:1;break f}g:{if(I[f+8|0]){break g}d=H[l+4>>2];b=H[f+4>>2];if((d^b)>>>0<2){break g}b=(b|0)<(d|0)?-1:1;break f}d=H[f+12>>2];b=H[l+12>>2];b=b>>>0>d>>>0?-1:d>>>0>b>>>0}b=(b|0)>0?f:l}if(!((b|0)==(j|0)|(c|0)<=0)){e=b+c|0;d=j;while(1){f=I[b|0];F[b|0]=I[d|0];F[d|0]=f;d=d+1|0;b=b+1|0;if(e>>>0>b>>>0){continue}break}}h:{if((i|0)<=0){e=0;break h}f=j;d=f;k=a;b=a;while(1){i:{i=d;if(b>>>0>=d>>>0){break i}j:{while(1){e=H[j>>2];h=H[b>>2];k:{if((e|0)!=(h|0)){if((e|0)>(h|0)){break k}break j}l:{if(I[b+8|0]){break l}g=H[j+4>>2];d=H[b+4>>2];if((g^d)>>>0<2){break l}if((d|0)>=(g|0)){break j}break k}g=H[b+12>>2];d=H[j+12>>2];if(g>>>0>>0){break k}if(d>>>0>>0){break j}m:{if((c|0)<=0|b>>>0<=k>>>0){break m}d=I[k|0];F[k|0]=h;F[b|0]=d;if((c|0)==1){break m}h=c+k|0;d=k+1|0;e=b;while(1){g=I[d|0];F[d|0]=I[e+1|0];F[e+1|0]=g;e=e+1|0;d=d+1|0;if(h>>>0>d>>>0){continue}break}}k=c+k|0}b=b+c|0;if(i>>>0>b>>>0){continue}break}d=i;break i}n:{if(b>>>0>=i>>>0){d=i;break n}while(1){o:{d=i+n|0;h=H[d>>2];p:{if((h|0)!=(e|0)){if((e|0)<=(h|0)){break p}break o}q:{if(I[d+8|0]){break q}g=H[j+4>>2];e=H[d+4>>2];if((g^e)>>>0<2){break q}if((e|0)<(g|0)){break o}break p}g=H[d+12>>2];e=H[j+12>>2];if(g>>>0>>0){break o}if(e>>>0>>0){break p}g=f+n|0;r:{if((c|0)<=0|f>>>0<=i>>>0){break r}F[d|0]=I[g|0];F[g|0]=h;e=d+1|0;if(i>>>0<=e>>>0){break r}f=0;h=g;if(o){while(1){l=I[e|0];F[e|0]=I[h+1|0];F[h+1|0]=l;e=e+1|0;h=h+1|0;f=f+1|0;if((o|0)!=(f|0)){continue}break}}if(p){break r}while(1){f=I[e|0];F[e|0]=I[h+1|0];F[h+1|0]=f;f=I[e+1|0];F[e+1|0]=I[h+2|0];F[h+2|0]=f;f=I[e+2|0];F[e+2|0]=I[h+3|0];F[h+3|0]=f;f=I[e+3|0];F[e+3|0]=I[h+4|0];F[h+4|0]=f;h=h+4|0;e=e+4|0;if(i>>>0>e>>>0){continue}break}}f=g}if(b>>>0>=d>>>0){break n}e=H[j>>2];i=d;continue}break}s:{if((c|0)<=0|b>>>0>=d>>>0){break s}i=I[b|0];F[b|0]=h;F[d|0]=i;if((c|0)==1){break s}g=b+c|0;e=b+1|0;h=d;while(1){i=I[e|0];F[e|0]=I[h+1|0];F[h+1|0]=i;h=h+1|0;e=e+1|0;if(g>>>0>e>>>0){continue}break}}b=b+c|0}if(b>>>0>>0){continue}}break}i=d-k|0;t:{if((a|0)==(k|0)|(d|0)==(k|0)){break t}b=k-a|0;if(b>>>0>i>>>0){if((i|0)<=0){break t}j=a+i|0;b=a+b|0;e=a;while(1){g=I[e|0];F[e|0]=I[b|0];F[b|0]=g;b=b+1|0;e=e+1|0;if(j>>>0>e>>>0){continue}break}break t}if((b|0)<=0){break t}j=a+b|0;b=a+i|0;e=a;while(1){g=I[e|0];F[e|0]=I[b|0];F[b|0]=g;b=b+1|0;e=e+1|0;if(j>>>0>e>>>0){continue}break}}e=f-d|0;if((d|0)==(f|0)|(f|0)==(m|0)){break h}b=m-f|0;if(b>>>0>>0){if((b|0)<=0){break h}g=b+d|0;b=d+e|0;while(1){f=I[d|0];F[d|0]=I[b|0];F[b|0]=f;b=b+1|0;d=d+1|0;if(g>>>0>d>>>0){continue}break}break h}if((e|0)<=0){break h}g=d+e|0;b=b+d|0;while(1){f=I[d|0];F[d|0]=I[b|0];F[b|0]=f;b=b+1|0;d=d+1|0;if(g>>>0>d>>>0){continue}break}}et(a,(i>>>0)/(c>>>0)|0,c);a=m-e|0;b=(e>>>0)/(c>>>0)|0;m=a+N(c,b)|0;if(b>>>0>=10){continue}break}}i=a+c|0;u:{if(m>>>0<=i>>>0){break u}l=0-c|0;if((c|0)<=0){while(1){v:{if(a>>>0>=i>>>0){break v}d=H[i>>2];b=i;while(1){e=d;f=b;b=b+l|0;d=H[b>>2];w:{if((e|0)!=(d|0)){if((d|0)>=(e|0)){break w}break v}x:{if(I[b+8|0]){break x}g=H[f+4>>2];e=H[b+4>>2];if((g^e)>>>0<2){break x}if((e|0)>=(g|0)){break w}break v}if(K[b+12>>2]<=K[f+12>>2]){break v}}if(a>>>0>>0){continue}break}}i=c+i|0;if(m>>>0>i>>>0){continue}break u}}k=c+2&3;h=c-3>>>0<3;while(1){f=i;y:{if(f>>>0<=a>>>0){break y}while(1){g=f;f=g+l|0;j=H[f>>2];e=H[g>>2];z:{if((j|0)!=(e|0)){if((e|0)>(j|0)){break y}break z}A:{if(I[f+8|0]){break A}d=H[g+4>>2];b=H[f+4>>2];if((d^b)>>>0<2){break A}if((b|0)<(d|0)){break y}break z}if(K[f+12>>2]<=K[g+12>>2]){break y}}F[f|0]=e;F[g|0]=j;b=f+1|0;B:{if(b>>>0>=g>>>0){break B}F[b|0]=I[g+1|0];F[g+1|0]=j>>>8;b=b+1|0;if((g|0)==(b|0)){break B}d=g+1|0;e=0;if(k){while(1){j=I[b|0];F[b|0]=I[d+1|0];F[d+1|0]=j;b=b+1|0;d=d+1|0;e=e+1|0;if((k|0)!=(e|0)){continue}break}}if(h){break B}while(1){e=I[b|0];F[b|0]=I[d+1|0];F[d+1|0]=e;e=I[b+1|0];F[b+1|0]=I[d+2|0];F[d+2|0]=e;e=I[b+2|0];F[b+2|0]=I[d+3|0];F[d+3|0]=e;e=I[b+3|0];F[b+3|0]=I[d+4|0];F[d+4|0]=e;d=d+4|0;b=b+4|0;if((g|0)!=(b|0)){continue}break}}if(a>>>0>>0){continue}break}}i=c+i|0;if(m>>>0>i>>>0){continue}break}}}function Cl(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;h=xb-48|0;xb=h;H[h+12>>2]=0;F[a+733|0]=0;q=H[a+100>>2];k=H[a+736>>2];a:{if(!k){e=Si(a,0);H[h+12>>2]=e;if(e){break a}k=H[a+736>>2]}b:{m=H[k+12>>2];f=H[m>>2];b=b>>>0>f>>>0?f:b;if(!b){break b}while(1){if(H[(g<<2)+c>>2]-65537>>>0>=4294836223){g=g+1|0;if((g|0)!=(b|0)){continue}break b}break}e=6;break a}if(!(I[a+732|0]|H[k+72>>2])){i=H[a+104>>2];g=H[i+28>>2];e=zb[H[a+516>>2]](a,1735811442,i,h+40|0)|0;H[h+44>>2]=e;if(e){break a}l=H[i+8>>2];e=Ic(i,96800,h+16|0);H[h+44>>2]=e;if(e){break a}e=8;if(H[h+16>>2]!=65536){break a}f=J[h+20>>1];if((f|0)!=J[H[k+12>>2]>>1]){break a}o=N(f,J[h+22>>1]);f=H[h+40>>2];if(o>>>0>f>>>1>>>0){break a}j=N(J[h+28>>1]+1|0,F[h+30|0]&1?4:2);if(j>>>0>f>>>0){break a}H[k+76>>2]=f;f=H[h+32>>2];e=Jc(i,j);H[h+44>>2]=e;if(e){break a}e=0;t=k,u=Ub(g,4,0,J[h+28>>1]+1|0,0,h+44|0),H[t+72>>2]=u;c:{d:{e:{if(H[h+44>>2]){break e}n=f+l|0;f=l+H[h+40>>2]|0;f:{if(!(F[h+30|0]&1)){j=0;while(1){o=n+(Tc(i)<<1)|0;e=e>>>0>o>>>0?e:o;H[H[k+72>>2]+(j<<2)>>2]=e>>>0>f>>>0?f:e;o=J[h+28>>1];p=o>>>0>j>>>0;j=j+1|0;if(p){continue}break}break f}j=0;while(1){o=de(i)+n|0;j=j>>>0>o>>>0?j:o;H[H[k+72>>2]+(e<<2)>>2]=f>>>0>>0?f:j;o=J[h+28>>1];p=o>>>0>e>>>0;e=e+1|0;if(p){continue}break}}H[k+68>>2]=o;wc(i);if(!J[h+22>>1]){break c}f=bc(i,l+H[h+24>>2]|0);H[h+44>>2]=f;if(f){break d}f=Jc(i,N(J[h+22>>1],J[h+20>>1])<<1);H[h+44>>2]=f;if(f){break d}f=0;t=k,u=Ub(g,4,0,N(J[h+22>>1],J[h+20>>1]),0,h+44|0),H[t+64>>2]=u;if(H[h+44>>2]){break e}g=J[h+22>>1];if(g){n=0;l=J[h+20>>1];f=g;while(1){e=0;g:{if(!(l&65535)){l=0;break g}while(1){g=Tc(i);l=J[h+20>>1];H[H[k+64>>2]+(N(n,l)+e<<2)>>2]=g<<16>>16<<2;e=e+1|0;if(l>>>0>e>>>0){continue}break}f=J[h+22>>1]}n=n+1|0;if(n>>>0<(f&65535)>>>0){continue}break}}H[k+60>>2]=f&65535;wc(i);break c}wc(i)}f=H[k+72>>2];if(f){zb[H[g+8>>2]](g,f)}H[k+68>>2]=0;H[k+72>>2]=0}e=H[h+44>>2];H[h+12>>2]=e;if(e){break a}}p=H[k+4>>2];if(!p){t=k,u=Ub(q,4,0,H[m>>2],0,h+12|0),H[t+4>>2]=u;e=H[h+12>>2];if(e){break a}}h:{i:{j:{k:{n=H[k+8>>2];if(n){g=0;if(b){break k}break j}n=Ub(q,4,0,H[m>>2],0,h+12|0);H[k+8>>2]=n;e=H[h+12>>2];if(e){break a}j=H[m>>2];o=1;break h}l=1;while(1){f=g<<2;o=2;if(H[f+n>>2]!=H[c+f>>2]){break i}g=g+1|0;if((g|0)!=(b|0)){continue}break}g=b}l=0;o=0}j=H[m>>2];f=H[a+4>>2];l:{if(f&2147418112){if(g>>>0>=j>>>0){break l}i=H[k+20>>2]+(N((f>>>16|0)-1|0,j)<<2)|0;f=g<<2;e=i+f|0;r=(g^-1)+j|0;i=f+n|0;s=j-g&3;m:{if(!s){f=g;break m}m=0;f=g;while(1){l=H[i>>2]==H[e>>2]?l:1;i=i+4|0;e=e+4|0;f=f+1|0;m=m+1|0;if((s|0)!=(m|0)){continue}break}}if(r>>>0<3){break l}while(1){l=H[i+12>>2]==H[e+12>>2]?H[i+8>>2]==H[e+8>>2]?H[i+4>>2]==H[e+4>>2]?H[i>>2]==H[e>>2]?l:1:1:1:1;i=i+16|0;e=e+16|0;f=f+4|0;if((j|0)!=(f|0)){continue}break}break l}if(g>>>0>=j>>>0){break l}m=(g^-1)+j|0;e=(g<<2)+n|0;r=j-g&3;n:{if(!r){i=g;break n}f=0;i=g;while(1){l=H[e>>2]?1:l;e=e+4|0;i=i+1|0;f=f+1|0;if((r|0)!=(f|0)){continue}break}}if(m>>>0<3){break l}while(1){l=H[e+12>>2]|H[e+8>>2]|(H[e+4>>2]|H[e>>2])?1:l;e=e+16|0;i=i+4|0;if((j|0)!=(i|0)){continue}break}}o:{if(l&255){if(g>>>0>=j>>>0){break h}break o}F[a+733|0]=1;e=-1;break a}while(1){if(!H[(g<<2)+n>>2]){g=g+1|0;if((j|0)!=(g|0)){continue}break h}break}o=2}H[k>>2]=j;Ob(n,c,b<<2);p:{if(!d){break p}e=H[k+4>>2];n=H[a+736>>2];j=H[n>>2];b=p?b:H[k>>2];f=b>>>0>j>>>0?j:b;q:{if(!f){break q}c=H[k+8>>2];i=0;g=0;if(f-1>>>0>=3){k=f&-4;l=0;while(1){d=g<<2;H[d+e>>2]=H[c+d>>2];m=d|4;H[m+e>>2]=H[c+m>>2];m=d|8;H[m+e>>2]=H[c+m>>2];d=d|12;H[d+e>>2]=H[c+d>>2];g=g+4|0;l=l+4|0;if((k|0)!=(l|0)){continue}break}}d=f&3;if(!d){break q}while(1){k=g<<2;H[k+e>>2]=H[c+k>>2];g=g+1|0;i=i+1|0;if((d|0)!=(i|0)){continue}break}}if(b>>>0>j>>>0){Nb(e+(f<<2)|0,0,b-f<<2)}j=H[n+28>>2];if(!(!j|!f)){k=0;while(1){d=J[j>>1];r:{if(d>>>0<2){break r}i=e+(k<<2)|0;b=H[i>>2];c=H[j+4>>2];g=1;while(1){l=g<<3;m=l+c|0;p=H[m+4>>2];if((p|0)>(b|0)){g=b;b=l-8|0;c=b+c|0;d=H[c+4>>2];t=i,u=ic(g-d|0,H[m>>2]-H[c>>2]|0,p-d|0)+H[b+H[j+4>>2]>>2]|0,H[t>>2]=u;break r}g=g+1|0;if((d|0)!=(g|0)){continue}break}}j=j+8|0;k=k+1|0;if((f|0)!=(k|0)){continue}break}}if(!f){break p}b=H[H[n+12>>2]+12>>2];c=0;while(1){j=e+(c<<2)|0;i=H[j>>2];s:{t:{if((i|0)<0){g=H[b+4>>2];l=H[b+8>>2];d=l;break t}g=H[b+8>>2];d=g;if(!i){break s}l=H[b+12>>2];d=g}d=Rb(i,l-g|0)+d|0}H[j>>2]=d;b=b+24|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}F[a+733|0]=1;b=H[a+704>>2];u:{if(!b){break u}v:{switch(o-1|0){case 1:if(b){zb[H[q+8>>2]](q,b)}H[a+704>>2]=0;t=h,u=su(a,H[a+104>>2]),H[t+12>>2]=u;break u;case 0:break v;default:break u}}t=h,u=gu(a,H[a+104>>2]),H[t+12>>2]=u}b=H[a+720>>2];if(b){zb[H[q+8>>2]](q,b)}H[a+720>>2]=0;e=H[h+12>>2]}xb=h+48|0;return e}function VZ(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;c=xb-320|0;xb=c;a:{if(!a){a=6;break a}a=19;i=H[b+8>>2];if(!(i&1)){break a}a=20;e=H[b+4>>2];if(!e){break a}d=G[e+2>>1];if(!d){a=0;break a}k=G[e>>1];if((k|0)<=0){a=0;break a}f=H[e+12>>2];if(!f|!H[e+4>>2]|(d|0)!=(G[(f+(k<<1)|0)-2>>1]+1|0)){break a}d=H[b>>2];H[c+232>>2]=H[e+16>>2];a=H[e+12>>2];H[c+224>>2]=H[e+8>>2];H[c+228>>2]=a;a=H[e+4>>2];H[c+216>>2]=H[e>>2];H[c+220>>2]=a;b:{if(i&2){a=H[b+12>>2];if(!a){a=0;break a}H[c+244>>2]=a;a=H[b+28>>2];H[c+312>>2]=0;H[c+248>>2]=a;a=H[b+32>>2];H[c+164>>2]=a;d=H[b+36>>2];H[c+172>>2]=d;e=H[b+40>>2];H[c+168>>2]=e;b=H[b+44>>2];break b}if(!d){a=6;break a}e=H[d+4>>2];if(!e){a=0;break a}b=H[d>>2];if(!b){a=0;break a}a=6;i=H[d+12>>2];if(!i){break a}a=H[d+8>>2];H[c+240>>2]=a;H[c+244>>2]=0;H[c+248>>2]=0;d=0;H[c+172>>2]=0;H[c+164>>2]=0;H[c+168>>2]=e;H[c+312>>2]=-1;H[c+236>>2]=i+((a|0)<0?0:N(a,b-1|0));a=0}H[c+176>>2]=b;if((a|0)>=(e|0)){a=0;break a}a=0;if((b|0)<=(d|0)){break a}e=0;i=xb-16512|0;xb=i;m=H[c+176>>2];k=H[c+172>>2];l=m-k|0;if(l>>>0>=129){a=l+127>>>7|0;l=((a+l|0)-1>>>0)/(a>>>0)|0}p=l<<2;a=p+15>>>4|0;H[c+200>>2]=1024-a;b=a<<4;a=i+128|0;H[c+196>>2]=b+a;H[c+192>>2]=a;b=0;c:{if((k|0)>=(m|0)){break c}o=c+252|0;q=c+216|0;while(1){a=k;H[c+172>>2]=a;k=a+l|0;f=(k|0)<(m|0)?k:m;H[c+176>>2]=f;H[i>>2]=f;H[i+4>>2]=a;a=i;while(1){n=H[a+4>>2];Nb(H[c+192>>2],0,p);H[c+188>>2]=1;H[c+204>>2]=0;H[c+172>>2]=H[a+4>>2];H[c+176>>2]=H[a>>2];d:{e:{f:{g:{h:{if(e){H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break h}}H[197455]=0;j=ca(28,q|0,29384,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(e){H[197455]=0;b=H[197455];H[197455]=0;if((b|0)==1){break h}}i:{if(H[c+188>>2]){break i}d=H[c+156>>2];j:{g=H[c+192>>2]+(H[c+160>>2]-H[c+172>>2]<<2)|0;e=H[g>>2];k:{if(!e){e=0;break k}h=H[e>>2];if((d|0)<(h|0)){break k}l:{while(1){b=e;if((d|0)==(h|0)){break j}e=H[b+12>>2];if(e){h=H[e>>2];if((d|0)<(h|0)){break l}continue}break}e=0}g=b+12|0}b=H[c+204>>2];if((b|0)>=H[c+200>>2]){H[197455]=0;ba(30,c|0,1);b=H[197455];H[197455]=0;if((b|0)==1){break h}e=H[g>>2];b=H[c+204>>2]}H[c+204>>2]=b+1;b=H[c+196>>2]+(b<<4)|0;H[b>>2]=d;H[b+8>>2]=H[c+180>>2];d=H[c+184>>2];H[b+12>>2]=e;H[b+4>>2]=d;H[g>>2]=b;break i}H[b+8>>2]=H[b+8>>2]+H[c+180>>2];H[b+4>>2]=H[b+4>>2]+H[c+184>>2]}if((j|0)==64){break g}if(j){break e}b=H[c+172>>2];h=b;m:{if(H[c+176>>2]<=(b|0)){break m}while(1){b=H[H[c+192>>2]+(h-b<<2)>>2];n:{o:{p:{if(!b){break p}f=H[c+164>>2];e=0;while(1){q:{if(!e){break q}g=H[b>>2];if((g|0)<=(f|0)){break q}d=e>>9;r:{if(I[c+232|0]&2){d=d&511;d=d>>>0>255?d^511:d;break r}d=d^e>>31;d=(d|0)<255?d:255}g=g-f|0;j=H[c+312>>2];if((j|0)>=0){n=j+1|0;H[c+312>>2]=n;j=N(j,6)+c|0;F[j+256|0]=d;G[j+254>>1]=g;G[j+252>>1]=f;if((n|0)!=10){break q}zb[H[c+244>>2]](h,10,o,H[c+248>>2]);H[c+312>>2]=0;break q}f=(H[c+236>>2]-N(H[c+240>>2],h)|0)+f|0;s:{switch(g|0){case 7:F[f|0]=d;f=f+1|0;case 6:F[f|0]=d;f=f+1|0;case 5:F[f|0]=d;f=f+1|0;case 4:F[f|0]=d;f=f+1|0;case 3:F[f|0]=d;f=f+1|0;case 2:F[f|0]=d;f=f+1|0;case 1:F[f|0]=d;break q;case 0:break q;default:break s}}Nb(f,d,g)}e=(H[b+4>>2]<<9)+e|0;d=H[b+8>>2];t:{if((e|0)==(d|0)){break t}f=H[b>>2];if((f|0)>2]){break t}g=e-d|0;d=g>>9;u:{if(I[c+232|0]&2){d=d&511;d=d>>>0>255?d^511:d;break u}d=d^g>>31;d=(d|0)<255?d:255}g=H[c+312>>2];if((g|0)>=0){j=g+1|0;H[c+312>>2]=j;g=N(g,6)+c|0;F[g+256|0]=d;G[g+254>>1]=1;G[g+252>>1]=f;if((j|0)!=10){break t}zb[H[c+244>>2]](h,10,o,H[c+248>>2]);H[c+312>>2]=0;break t}F[f+(H[c+236>>2]-N(H[c+240>>2],h)|0)|0]=d}f=H[b>>2]+1|0;b=H[b+12>>2];if(b){continue}break}if(!e){break p}b=e>>9;d=H[c+168>>2];v:{if(I[c+232|0]&2){b=b&511;e=b>>>0>255?b^511:b;break v}b=b^e>>31;e=(b|0)<255?b:255}d=d-f|0;b=H[c+312>>2];if((b|0)>=0){g=b+1|0;H[c+312>>2]=g;b=N(b,6)+c|0;F[b+256|0]=e;G[b+254>>1]=d;G[b+252>>1]=f;b=10;if((g|0)!=10){break p}break o}b=(H[c+236>>2]-N(H[c+240>>2],h)|0)+f|0;w:{switch(d|0){case 7:F[b|0]=e;b=b+1|0;case 6:F[b|0]=e;b=b+1|0;case 5:F[b|0]=e;b=b+1|0;case 4:F[b|0]=e;b=b+1|0;case 3:F[b|0]=e;b=b+1|0;case 2:F[b|0]=e;b=b+1|0;case 1:F[b|0]=e;break p;case 0:break p;default:break w}}Nb(b,e,d)}b=H[c+312>>2];if((b|0)<=0){break n}}zb[H[c+244>>2]](h,b,o,H[c+248>>2]);H[c+312>>2]=0}h=h+1|0;if((h|0)>=H[c+176>>2]){break m}b=H[c+172>>2];continue}}b=a-4|0;break d}b=ha(782428)|0;if((_()|0)!=(ya(782428)|0)){break f}sa(b|0)|0;ra()}e=f-n|0;if(e>>>0<2){break e}b=a+4|0;d=H[a+4>>2];H[a+8>>2]=d;H[a+4>>2]=d+(e>>1);break d}ea(b|0);X()}b=1;break c}if(b>>>0>=i>>>0){f=H[b>>2];e=1;a=b;continue}break}b=0;e=1;if((k|0)<(m|0)){continue}break}}xb=i+16512|0;a=b}xb=c+320|0;return a|0}function qf(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;o=!b;a:{if(H[a+132>>2]>0){f=H[a>>2];if(H[f+44>>2]==2){b:{if(J[a+148>>1]|J[a+152>>1]|(J[a+156>>1]|J[a+160>>1])){break b}if(J[a+164>>1]|J[a+168>>1]|(J[a+172>>1]|J[a+204>>1])){break b}if(J[a+208>>1]|J[a+212>>1]|(J[a+216>>1]|J[a+220>>1])){break b}if(J[a+224>>1]|J[a+228>>1]|(J[a+232>>1]|J[a+236>>1])){break b}if(J[a+240>>1]|J[a+244>>1]|(J[a+248>>1]|J[a+260>>1])){break b}if(J[a+272>>1]|(J[a+264>>1]|J[a+268>>1])){break b}c:{if(J[a+200>>1]|(J[a+184>>1]|J[a+188>>1])){break c}g=32;while(1){e=g<<2;if(J[(e+a|0)+148>>1]|J[((e|4)+a|0)+148>>1]|(J[((e|8)+a|0)+148>>1]|J[((e|12)+a|0)+148>>1])){break c}g=g+4|0;if((g|0)!=256){continue}break}break b}h=1}H[f+44>>2]=h}Hr(a,a+2840|0);Hr(a,a+2852|0);e=J[a+150>>1];l=H[a+2844>>2];G[((l<<2)+a|0)+154>>1]=65535;g=0;if((l|0)>=0){i=e?7:138;m=e?4:3;k=-1;f=0;while(1){h=e;n=f;f=f+1|0;e=J[((f<<2)+a|0)+150>>1];j=g+1|0;d:{if(!((h|0)!=(e|0)|(j|0)>=(i|0))){g=j;break d}e:{if((m|0)>(j|0)){g=((h<<2)+a|0)+2684|0;G[g>>1]=j+J[g>>1];break e}if(h){if((h|0)!=(k|0)){g=((h<<2)+a|0)+2684|0;G[g>>1]=J[g>>1]+1}G[a+2748>>1]=J[a+2748>>1]+1;break e}if((g|0)<=9){G[a+2752>>1]=J[a+2752>>1]+1;break e}G[a+2756>>1]=J[a+2756>>1]+1}g=0;f:{if(!e){m=3;i=138;break f}i=(e|0)==(h|0);m=i?3:4;i=i?6:7}k=h}if((l|0)!=(n|0)){continue}break}}e=J[a+2442>>1];l=H[a+2856>>2];G[((l<<2)+a|0)+2446>>1]=65535;g=0;if((l|0)>=0){i=e?7:138;m=e?4:3;k=-1;f=0;while(1){h=e;n=f;f=f+1|0;e=J[((f<<2)+a|0)+2442>>1];j=g+1|0;g:{if(!((h|0)!=(e|0)|(j|0)>=(i|0))){g=j;break g}h:{if((m|0)>(j|0)){g=((h<<2)+a|0)+2684|0;G[g>>1]=j+J[g>>1];break h}if(h){if((h|0)!=(k|0)){g=((h<<2)+a|0)+2684|0;G[g>>1]=J[g>>1]+1}G[a+2748>>1]=J[a+2748>>1]+1;break h}if((g|0)<=9){G[a+2752>>1]=J[a+2752>>1]+1;break h}G[a+2756>>1]=J[a+2756>>1]+1}g=0;i:{if(!e){m=3;i=138;break i}i=(e|0)==(h|0);m=i?3:4;i=i?6:7}k=h}if((l|0)!=(n|0)){continue}break}}Hr(a,a+2864|0);h=H[a+5800>>2];f=18;j:{if(J[a+2746>>1]){break j}f=17;if(J[a+2690>>1]){break j}f=16;if(J[a+2742>>1]){break j}f=15;if(J[a+2694>>1]){break j}f=14;if(J[a+2738>>1]){break j}f=13;if(J[a+2698>>1]){break j}f=12;if(J[a+2734>>1]){break j}f=11;if(J[a+2702>>1]){break j}f=10;if(J[a+2730>>1]){break j}f=9;if(J[a+2706>>1]){break j}f=8;if(J[a+2726>>1]){break j}f=7;if(J[a+2710>>1]){break j}f=6;if(J[a+2722>>1]){break j}f=5;if(J[a+2714>>1]){break j}f=4;if(J[a+2718>>1]){break j}f=J[a+2686>>1]?3:2}e=h+N(f,3)|0;H[a+5800>>2]=e+17;h=H[a+5804>>2]+10>>>3|0;e=e+27>>>3|0;e=e>>>0>h>>>0?h:e;break a}h=c+5|0;e=h}k:{if(!(o|e>>>0>>0)){An(a,b,c,d);break k}b=H[a+5820>>2];if(!(H[a+136>>2]!=4&(e|0)!=(h|0))){c=d+2|0;l:{if((b|0)>=14){b=J[a+5816>>1]|c<>1]=b;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=b;b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5817|0];b=H[a+5820>>2];G[a+5816>>1]=(c&65535)>>>16-b;b=b-13|0;break l}G[a+5816>>1]=J[a+5816>>1]|c<>2]=b;XD(a,243216,244368);break k}c=d+4|0;m:{if((b|0)>=14){b=J[a+5816>>1]|c<>1]=b;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=b;b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5817|0];b=H[a+5820>>2];g=(c&65535)>>>16-b|0;b=b-13|0;break m}g=J[a+5816>>1]|c<>2]=b;k=H[a+2844>>2];c=k+65280|0;i=H[a+2856>>2];n:{if((b|0)>=12){b=c<>1]=b;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=b;b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5817|0];b=H[a+5820>>2];e=(c&65535)>>>16-b|0;h=b-11|0;break n}e=c<>2]=h;b=i+65536|0;o:{if((h|0)>=12){b=b<>1]=b;c=H[a+20>>2];H[a+20>>2]=c+1;F[c+H[a+8>>2]|0]=b;b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5817|0];b=H[a+5820>>2];g=(i&65535)>>>16-b|0;b=b-11|0;break o}g=b<>2]=b;c=f+65533|0;p:{if((b|0)>=13){b=c<>1]=b;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=b;b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5817|0];b=c&65535;c=H[a+5820>>2];b=b>>>16-c|0;e=c-12|0;break p}e=b+4|0;b=c<>2]=e;h=0;c=a+5817|0;while(1){g=J[((I[h+244832|0]<<2)+a|0)+2686>>1];b=g<>1]=b;q:{if((e|0)>=14){e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=b;b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[c|0];e=H[a+5820>>2];b=g>>>16-e|0;G[a+5816>>1]=b;e=e-13|0;break q}e=e+3|0}H[a+5820>>2]=e;g=(h|0)!=(f|0);h=h+1|0;if(g){continue}break}b=a+148|0;WD(a,b,k);c=a+2440|0;WD(a,c,i);XD(a,b,c)}YD(a);if(d){b=H[a+5820>>2];r:{if((b|0)>=9){b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5816|0];b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5817|0];break r}if((b|0)<=0){break r}b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5816|0]}H[a+5820>>2]=0;G[a+5816>>1]=0}}function Rs(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;m=xb-80|0;xb=m;e=rl(b,c);a:{if(e){break a}a=H[b+2740>>2];if(!(a&1)){e=XF(b,0);if(e){break a}SE(b,d,0);a=H[b+2740>>2]}if(!(a&2)){e=XF(b,1);if(e){break a}SE(b,d,1)}s=b+2748|0;p=b+2744|0;a=1;while(1){b:{e=H[b+2740>>2];o=a;c:{d:{if(a){if(e&1){break c}if(H[d+24>>2]|e&8){break d}mE(m+16|0,b,m+12|0,m+8|0);e=H[b+24>>2];if((e|0)<=0){break c}a=H[b+28>>2];e=a+N(e,40)|0;j=H[m+8>>2];f=H[m+12>>2];while(1){x=a,y=Rb(G[a+12>>1],f)+j|0,H[x+16>>2]=y;a=a+40|0;if(e>>>0>a>>>0){continue}break}break c}if(e&2){break b}}t=N(l,1348)+b|0;w=t- -64|0;j=H[w>>2];q=H[t+56>>2];k=j+N(q,44)|0;i=0;a=j;u=(q|0)<=0;if(!u){while(1){e=I[a+12|0];e:{if(e&4){break e}f=H[a+24>>2];g=H[a+20>>2];f:{g:{if(!g){if(!f){break e}e=H[f+20>>2];if(!e){break e}g=H[e+8>>2];H[f+8>>2]=g;F[f+12|0]=I[f+12|0]|4;e=f;f=a;break g}g=H[g+8>>2];F[a+12|0]=e|4;H[a+8>>2]=g;if(!f){break f}e=a;if(H[f+20>>2]){break f}}x=f,y=zn(H[p>>2],H[s>>2],l,H[f+4>>2]-H[e+4>>2]|0)+g|0,H[x+8>>2]=y;F[f+12|0]=I[f+12|0]|4}i=i?i:a}g=0;a=a+44|0;if(k>>>0>a>>>0){continue}break}a=j;f=i;n=0;e=0;i=0;while(1){v=I[a+12|0];h:{if(v&4){break h}h=H[a+24>>2];if(!h){i=i+1|0;break h}i:{if(!(e&255)){break i}r=n- -64|0;if((r|0)<=H[a+8>>2]&(r|0)<=H[h+8>>2]){break i}i=i+1|0;break h}if(H[h+20>>2]){r=zn(H[p>>2],H[s>>2],l,H[a+4>>2]-H[h+4>>2]|0);h=H[h+8>>2];F[a+12|0]=v|4;H[a+8>>2]=h+r;break h}if(a>>>0>h>>>0){e=zn(H[p>>2],H[s>>2],l,H[a+4>>2]-H[h+4>>2]|0);h=H[h+8>>2];F[a+12|0]=v|4;n=e+h|0;H[a+8>>2]=n;e=1;break h}j:{if(!((f|0)!=0|l)){g=CD(b,a,h,0,0);break j}CD(b,a,h,g,l)}F[a+12|0]=I[a+12|0]|4;F[h+12|0]=I[h+12|0]|4;n=H[h+8>>2];e=1;f=a}a=a+44|0;if(k>>>0>a>>>0){continue}break}}k:{if(!o){break k}e=4;f=2;a=j;l:{switch(q-6|0){case 6:a=j+44|0;e=9;f=5;break;case 0:break l;default:break k}}if(H[a+24>>2]!=(a+44|0)){break k}g=j+N(f,44)|0;if(H[g+24>>2]!=(g+44|0)){break k}h=N(e,44);f=h+j|0;e=H[f+24>>2];if((e|0)!=(h+(j+44|0)|0)){break k}n=(H[g+4>>2]<<1)-(H[a+4>>2]+H[f+4>>2]|0)|0;h=n>>31;if((h^n)-h>>>0>7){break k}h=H[f+8>>2];a=(H[g+8>>2]<<1)-H[a+8>>2]|0;H[f+8>>2]=a;a=h-a|0;if(e){H[e+8>>2]=H[e+8>>2]-a}if((q|0)==12){H[j+360>>2]=H[j+360>>2]-a;H[j+492>>2]=H[j+492>>2]-a}F[f+12|0]=I[f+12|0]|4;if(!e){break k}F[e+12|0]=I[e+12|0]|4}m:{if(!i){break m}a=j;if(u){break m}while(1){f=I[a+12|0];n:{if(f&4){break n}e=H[a+28>>2];if(!e){break n}g=H[e+8>>2];e=H[e+4>>2];F[a+12|0]=f|4;H[a+8>>2]=H[a+4>>2]+(g-e|0);i=i-1|0}a=a+44|0;if(k>>>0>a>>>0){continue}break}if(!i){break m}e=j;if(u){break m}while(1){a=e;o:{if(I[a+12|0]&4){break o}while(1){f=a;a=a-44|0;h=j>>>0>a>>>0;if(!(I[f-32|0]&4?1:h)){continue}break}i=e;p:{q:{r:{while(1){g=i;i=g+44|0;if(k>>>0<=i>>>0){break r}if(!(I[g+56|0]&4)){continue}break}if(a>>>0>=j>>>0){break q}h=H[e+4>>2]+(H[g+52>>2]-H[g+48>>2]|0)|0;break p}if(h){break o}h=H[e+4>>2]+(H[f-36>>2]-H[f-40>>2]|0)|0;break p}i=J[i>>1];a=J[a>>1];h=H[f-36>>2];if((i|0)==(a|0)){break p}a=a<<16>>16;f=H[f-36>>2];h=ic(G[e>>1]-a|0,H[g+52>>2]-f|0,(i<<16>>16)-a|0)+f|0}H[e+8>>2]=h}e=e+44|0;if(k>>>0>e>>>0){continue}break}}g=H[w>>2];a=H[t+56>>2];j=g+N(a,44)|0;s:{t:{if(l|o){if((a|0)<=0){break s}if(H[p>>2]&(o?1:2)){if(o){while(1){f=H[g+8>>2];h=H[g+36>>2];e=h;while(1){i=e+36|0;k=H[e+40>>2];while(1){a=H[i>>2];H[a+16>>2]=f;G[a>>1]=J[a>>1]|4;i=a+32|0;if((a|0)!=(k|0)){continue}break}e=H[e+16>>2];if((h|0)!=(e|0)){continue}break}g=g+44|0;if(j>>>0>g>>>0){continue}break s}}while(1){f=H[g+8>>2];h=H[g+36>>2];e=h;while(1){i=e+36|0;k=H[e+40>>2];while(1){a=H[i>>2];H[a+20>>2]=f;G[a>>1]=J[a>>1]|8;i=a+32|0;if((a|0)!=(k|0)){continue}break}e=H[e+16>>2];if((h|0)!=(e|0)){continue}break}g=g+44|0;if(j>>>0>g>>>0){continue}break}break s}if(!o){break t}while(1){f=H[g+8>>2]-H[g+4>>2]|0;h=H[g+36>>2];e=h;while(1){i=e+36|0;k=H[e+40>>2];while(1){a=H[i>>2];H[a+16>>2]=f+H[a+16>>2];G[a>>1]=J[a>>1]|4;i=a+32|0;if((a|0)!=(k|0)){continue}break}e=H[e+16>>2];if((h|0)!=(e|0)){continue}break}g=g+44|0;if(j>>>0>g>>>0){continue}break}break s}if((a|0)<=0){break s}}while(1){f=H[g+8>>2]-H[g+4>>2]|0;h=H[g+36>>2];e=h;while(1){i=e+36|0;k=H[e+40>>2];while(1){a=H[i>>2];H[a+20>>2]=f+H[a+20>>2];G[a>>1]=J[a>>1]|8;i=a+32|0;if((a|0)!=(k|0)){continue}break}e=H[e+16>>2];if((h|0)!=(e|0)){continue}break}g=g+44|0;if(j>>>0>g>>>0){continue}break}}jr(b,l);Zq(b,l)}l=1;a=0;if(o){continue}}break}d=H[b+24>>2];if((d|0)<=0){e=0;break a}a=H[b+28>>2];b=a+N(d,40)|0;i=H[c+4>>2];f=H[c+8>>2];while(1){H[i>>2]=H[a+16>>2];H[i+4>>2]=H[a+20>>2];e=0;c=J[a>>1];F[f|0]=c&1?0:c&2?2:1;f=f+1|0;i=i+8|0;a=a+40|0;if(b>>>0>a>>>0){continue}break}}xb=m+80|0;return e|0}function NR(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;h=xb+-64|0;xb=h;H[h+56>>2]=b;H[e>>2]=0;i=H[d+28>>2];H[h>>2]=i;H[i+4>>2]=H[i+4>>2]+1;H[197455]=0;i=aa(3342,h|0)|0;j=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){j=H[h>>2];k=H[j+4>>2]-1|0;H[j+4>>2]=k;if((k|0)==-1){zb[H[H[j>>2]+8>>2]](j)}switch(g-65|0){case 54:break j;case 19:break k;case 18:break l;case 17:break m;case 49:break n;case 47:break o;case 45:case 51:break p;case 12:break q;case 44:break r;case 41:break s;case 8:break t;case 7:break u;case 5:break v;case 3:break w;case 35:case 36:break x;case 34:break y;case 1:case 33:case 39:break z;case 0:case 32:break A;case 2:case 4:case 6:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 37:case 38:case 40:case 42:case 43:case 46:case 48:case 50:case 52:case 53:break d;case 24:break f;case 56:break g;case 23:break h;case 55:break i;default:break e}}c=$()|0;_()|0;a=H[h>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}Gw(a,f+24|0,h+56|0,c,e,i);break b}Fw(a,f+16|0,h+56|0,c,e,i);break b}g=a;i=b;a=zb[H[H[a+8>>2]+12>>2]](a+8|0)|0;B:{if(I[a+11|0]>>>7|0){b=H[a>>2];break B}b=a}j=b;if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}l=h,m=Fg(g,i,c,d,e,f,j,b+(a<<2)|0),H[l+56>>2]=m;break b}a=dg(h+56|0,c,e,i,2);b=H[e>>2];C:{if(!(a-1>>>0>30|b&4)){H[f+12>>2]=a;break C}H[e>>2]=b|4}break b}g=H[193291];H[h+24>>2]=H[193290];H[h+28>>2]=g;g=H[193289];H[h+16>>2]=H[193288];H[h+20>>2]=g;g=H[193287];H[h+8>>2]=H[193286];H[h+12>>2]=g;g=H[193285];H[h>>2]=H[193284];H[h+4>>2]=g;l=h,m=Fg(a,b,c,d,e,f,h,h+32|0),H[l+56>>2]=m;break b}g=H[193299];H[h+24>>2]=H[193298];H[h+28>>2]=g;g=H[193297];H[h+16>>2]=H[193296];H[h+20>>2]=g;g=H[193295];H[h+8>>2]=H[193294];H[h+12>>2]=g;g=H[193293];H[h>>2]=H[193292];H[h+4>>2]=g;l=h,m=Fg(a,b,c,d,e,f,h,h+32|0),H[l+56>>2]=m;break b}a=dg(h+56|0,c,e,i,2);b=H[e>>2];D:{if(!((a|0)>23|b&4)){H[f+8>>2]=a;break D}H[e>>2]=b|4}break b}a=dg(h+56|0,c,e,i,2);b=H[e>>2];E:{if(!(a-1>>>0>11|b&4)){H[f+8>>2]=a;break E}H[e>>2]=b|4}break b}a=dg(h+56|0,c,e,i,3);b=H[e>>2];F:{if(!((a|0)>365|b&4)){H[f+28>>2]=a;break F}H[e>>2]=b|4}break b}a=dg(h+56|0,c,e,i,2);b=H[e>>2];G:{if(!((a|0)>12|b&4)){H[f+16>>2]=a-1;break G}H[e>>2]=b|4}break b}a=dg(h+56|0,c,e,i,2);b=H[e>>2];H:{if(!((a|0)>59|b&4)){H[f+4>>2]=a;break H}H[e>>2]=b|4}break b}a=h+56|0;b=xb-16|0;xb=b;H[b+8>>2]=c;while(1){I:{if(!gm(a,b+8|0)){break I}c=H[a>>2];d=H[c+12>>2];J:{if((d|0)==H[c+16>>2]){c=zb[H[H[c>>2]+36>>2]](c)|0;break J}c=H[d>>2]}if(!(zb[H[H[i>>2]+12>>2]](i,8192,c)|0)){break I}$i(a);continue}break}if(qh(a,b+8|0)){H[e>>2]=H[e>>2]|2}xb=b+16|0;break b}g=h+56|0;b=zb[H[H[a+8>>2]+8>>2]](a+8|0)|0;K:{if(I[b+11|0]>>>7|0){a=H[b+4>>2];break K}a=I[b+11|0]}if(I[b+23|0]>>>7|0){d=H[b+16>>2]}else{d=I[b+23|0]}L:{if((a|0)==(0-d|0)){H[e>>2]=H[e>>2]|4;break L}c=_l(g,c,b,b+24|0,i,e,0);a=H[f+8>>2];if(!((c|0)!=(b|0)|(a|0)!=12)){H[f+8>>2]=0;break L}if(!((c-b|0)!=12|(a|0)>11)){H[f+8>>2]=a+12}}break b}g=Ob(h,773200,44);l=g,m=Fg(a,b,c,d,e,f,g,g+44|0),H[l+56>>2]=m;break b}H[h+16>>2]=H[193316];g=H[193315];H[h+8>>2]=H[193314];H[h+12>>2]=g;g=H[193313];H[h>>2]=H[193312];H[h+4>>2]=g;l=h,m=Fg(a,b,c,d,e,f,h,h+20|0),H[l+56>>2]=m;break b}a=dg(h+56|0,c,e,i,2);b=H[e>>2];M:{if(!((a|0)>60|b&4)){H[f>>2]=a;break M}H[e>>2]=b|4}break b}g=H[193327];H[h+24>>2]=H[193326];H[h+28>>2]=g;g=H[193325];H[h+16>>2]=H[193324];H[h+20>>2]=g;g=H[193323];H[h+8>>2]=H[193322];H[h+12>>2]=g;g=H[193321];H[h>>2]=H[193320];H[h+4>>2]=g;l=h,m=Fg(a,b,c,d,e,f,h,h+32|0),H[l+56>>2]=m;break b}a=dg(h+56|0,c,e,i,1);b=H[e>>2];N:{if(!((a|0)>6|b&4)){H[f+24>>2]=a;break N}H[e>>2]=b|4}break b}a=zb[H[H[a>>2]+20>>2]](a,b,c,d,e,f)|0;break a}g=a;i=b;a=zb[H[H[a+8>>2]+24>>2]](a+8|0)|0;O:{if(I[a+11|0]>>>7|0){b=H[a>>2];break O}b=a}j=b;if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}l=h,m=Fg(g,i,c,d,e,f,j,b+(a<<2)|0),H[l+56>>2]=m;break b}Ew(f+20|0,h+56|0,c,e,i);break b}a=dg(h+56|0,c,e,i,4);if(!(I[e|0]&4)){H[f+20>>2]=a-1900}break b}if((g|0)==37){break c}}H[e>>2]=H[e>>2]|4;break b}a=xb-16|0;xb=a;H[a+8>>2]=c;b=6;d=h+56|0;P:{Q:{if(qh(d,a+8|0)){break Q}b=4;c=H[d>>2];f=H[c+12>>2];R:{if((f|0)==H[c+16>>2]){c=zb[H[H[c>>2]+36>>2]](c)|0;break R}c=H[f>>2]}if((zb[H[H[i>>2]+52>>2]](i,c,0)|0)!=37){break Q}b=2;if(!qh($i(d),a+8|0)){break P}}H[e>>2]=H[e>>2]|b}xb=a+16|0}a=H[h+56>>2]}xb=h- -64|0;return a|0}function Rn(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-240|0;xb=e;H[c+16>>2]=0;H[c+20>>2]=-1042284544;H[c+8>>2]=-4194304;H[c+12>>2]=1105199103;H[c>>2]=-4194304;H[c+4>>2]=1105199103;H[c+24>>2]=0;H[c+28>>2]=-1042284544;a:{if(!(!H[a>>2]|K[a+216>>2]<=b>>>0)){h=H[a+80>>2];b:{if((h|0)==163632){break b}c:{d:{switch(I[h|0]){case 0:f=(b+h|0)+1|0;break c;case 3:break d;default:break b}}f=1;g=I[h+1|0]|I[h+2|0]<<8;g=(g<<8|g>>>8)&65535;e:{if(g>>>0<2){break e}while(1){i=f>>>0>>0?(h+N(f,3)|0)+3|0:163632;i=I[i|0]|I[i+1|0]<<8;if(((i<<8|i>>>8)&65535)>>>0>b>>>0){break e}f=f+1|0;if((g|0)!=(f|0)){continue}break}f=g}f=f-1|0;f=(f>>>0>>0?(h+N(f,3)|0)+3|0:163632)+2|0}f=I[f|0]}F[e+88|0]=0;H[e+80>>2]=0;H[e+84>>2]=0;H[e+108>>2]=0;H[e+100>>2]=0;H[e+104>>2]=0;H[e+124>>2]=0;H[e+128>>2]=0;F[e+132|0]=0;H[e+176>>2]=0;H[e+168>>2]=0;H[e+172>>2]=0;H[e+208>>2]=0;H[e+212>>2]=0;H[e+72>>2]=0;H[e+76>>2]=0;H[e+116>>2]=0;H[e+120>>2]=0;H[e+200>>2]=0;H[e+204>>2]=0;H[e+224>>2]=0;H[e+228>>2]=0;g=H[a+72>>2];H[197455]=0;Ri(e+56|0,g,b);b=H[197455];H[197455]=0;if((b|0)==1){break a}g=H[(K[a+208>>2]>f>>>0?H[a+212>>2]+N(f,24)|0:163632)+20>>2];h=H[a+68>>2];H[e+80>>2]=H[e- -64>>2];b=H[e+60>>2];H[e+72>>2]=H[e+56>>2];H[e+76>>2]=b;F[e+92|0]=0;F[e+88|0]=0;H[e+84>>2]=0;b=Tb(4744);H[e+104>>2]=0;H[e+108>>2]=0;H[e+96>>2]=0;H[e+100>>2]=0;f:{if(!b){H[e+100>>2]=-1;break f}H[e+100>>2]=593;H[e+108>>2]=b;Nb(b,0,4104);H[e+104>>2]=513}F[e+112|0]=0;b=H[e+60>>2];H[e+116>>2]=H[e+56>>2];H[e+120>>2]=b;H[e+124>>2]=H[e- -64>>2];H[e+136>>2]=0;H[e+140>>2]=0;F[e+132|0]=0;H[e+128>>2]=0;F[e+145|0]=1;F[e+146|0]=0;b=Tb(560);H[e+172>>2]=0;H[e+176>>2]=0;H[e+164>>2]=0;H[e+168>>2]=0;F[e+153|0]=0;F[e+154|0]=0;F[e+155|0]=0;F[e+156|0]=0;F[e+157|0]=0;F[e+158|0]=0;F[e+159|0]=0;F[e+160|0]=0;H[e+208>>2]=0;H[e+212>>2]=0;H[e+148>>2]=0;H[e+152>>2]=0;H[e+200>>2]=0;H[e+204>>2]=0;g:{if(!b){H[e+168>>2]=-1;break g}H[e+168>>2]=20;H[e+176>>2]=b;H[b+48>>2]=0;H[b+52>>2]=0;H[b+40>>2]=0;H[b+44>>2]=0;H[b+32>>2]=0;H[b+36>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[b+56>>2]=0;H[b+60>>2]=0;f=b- -64|0;H[f>>2]=0;H[f+4>>2]=0;H[b+72>>2]=0;H[b+76>>2]=0;H[b+80>>2]=0;f=4;H[e+172>>2]=4;H[b+108>>2]=0;H[b+100>>2]=0;H[b+104>>2]=0;H[b+92>>2]=0;H[b+96>>2]=0;H[b+84>>2]=0;H[b+88>>2]=0;while(1){H[e+172>>2]=f+1;b=H[e+176>>2]+N(f,28)|0;H[b>>2]=0;H[b+4>>2]=0;H[b+24>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;f=H[e+172>>2];if(f>>>0<10){continue}break}H[e+172>>2]=10}H[e+184>>2]=h;h:{i:{if(h){b=I[h|0]|I[h+1|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>1239){break i}}H[e+180>>2]=107;break h}if(b>>>0<=33899){H[e+180>>2]=1131;break h}H[e+180>>2]=32768}H[e+192>>2]=g;j:{k:{if(g){b=I[g|0]|I[g+1|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0>1239){break k}}H[e+188>>2]=107;break j}if(b>>>0<=33899){H[e+188>>2]=1131;break j}H[e+188>>2]=32768}F[e+232|0]=d;H[e+220>>2]=0;G[e+216>>1]=0;H[e+40>>2]=0;H[e+44>>2]=-1042284544;H[e+32>>2]=0;H[e+36>>2]=-1042284544;H[e+24>>2]=-4194304;H[e+28>>2]=1105199103;F[e+144|0]=0;H[e+48>>2]=a;F[e+8|0]=0;H[e+16>>2]=-4194304;H[e+20>>2]=1105199103;i=I[163632];k=i|256;f=!I[e+88|0];a=H[40908];g=H[40909];l:{while(1){d=65535;m:{n:{o:{if(!(f&1)){break o}f=H[e+84>>2];h=f+1|0;j=H[e+76>>2];if(h>>>0>j>>>0){break o}p:{q:{if(f>>>0>>0){d=H[e+72>>2];b=I[d+f|0];if((b|0)==12){b=k;if(h>>>0>=j>>>0){break q}f=h;b=I[d+f|0]|256}if(f>>>0>=j>>>0){break q}H[e+84>>2]=f+1;break p}F[e+88|0]=1;b=i;if((b|0)==12){break o}}F[e+88|0]=1;H[e+84>>2]=j}if((b|0)!=14){d=b;if((b|0)!=256){break o}break n}f=H[e+96>>2];if(!I[e+216|0]){if(f&1){r:{if(!H[e+104>>2]){H[196248]=a;H[196249]=g;b=a;d=g;break r}d=H[e+108>>2];b=H[d>>2];d=H[d+4>>2]}H[e+220>>2]=1;F[e+217|0]=1;H[e+224>>2]=b;H[e+228>>2]=d}F[e+216|0]=1}if(f>>>0>=4){H[197455]=0;ba(647,e+72|0,e+8|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}}F[e+144|0]=1;break n}H[197455]=0;zG(d,e+72|0,e+8|0);b=H[197455];H[197455]=0;if((b|0)!=1){break m}break a}H[e+96>>2]=0;H[e+220>>2]=0}f=0;if(I[e+160|0]){break l}f=0;if(H[e+168>>2]<0){break l}f=0;if(I[e+112|0]|I[e+88|0]){break l}f=0;if(I[e+92|0]){break l}f=0;if(H[e+100>>2]<0){break l}f=1;if(!I[e+144|0]){continue}break}a=H[e+20>>2];H[c>>2]=H[e+16>>2];H[c+4>>2]=a;a=H[e+44>>2];H[c+24>>2]=H[e+40>>2];H[c+28>>2]=a;a=H[e+36>>2];H[c+16>>2]=H[e+32>>2];H[c+20>>2]=a;a=H[e+28>>2];H[c+8>>2]=H[e+24>>2];H[c+12>>2]=a;f=1}H[e+104>>2]=0;Kb(H[e+108>>2]);H[e+172>>2]=0;H[e+108>>2]=0;H[e+100>>2]=0;H[e+104>>2]=0;Kb(H[e+176>>2]);H[e+104>>2]=0;H[e+176>>2]=0;H[e+168>>2]=0;H[e+172>>2]=0;Kb(H[e+108>>2])}xb=e+240|0;return f}a=$()|0;_()|0;yG(e+72|0);ea(a|0);X()}function _ca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=H[a+76>>2];if((c|0)>0){b=H[a+84>>2];while(1){f=Tk(a,H[b+16>>2])+f|0;b=b+88|0;d=d+1|0;c=H[a+76>>2];if((d|0)<(c|0)){continue}break}}a:{b:{c:{d:{if(!H[a+212>>2]){b=194;if(H[a+264>>2]){break a}if(H[a+72>>2]!=8|H[a+376>>2]!=8){break c}e=1;e:{if((c|0)<=0){break e}g=c&1;d=H[a+84>>2];if((c|0)!=1){h=c&-2;c=0;while(1){e=H[d+24>>2]<2&H[d+20>>2]<=1?e:0;e=H[d+112>>2]<2&H[d+108>>2]<=1?e:0;d=d+176|0;c=c+2|0;if((h|0)!=(c|0)){continue}break}}if(!g|H[d+24>>2]<2&H[d+20>>2]<=1){break e}e=0}if(!f|!e){break c}c=H[a>>2];H[c+20>>2]=77;zb[H[c+4>>2]](a,0);if(!H[a+212>>2]){break d}}b=H[a+264>>2]?202:201;break a}if(!H[a+264>>2]){break b}break a}if(H[a+264>>2]){break a}b=192;if(e){break a}}b=193}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=255;d=H[c+4>>2]-1|0;H[c+4>>2]=d;f:{if(d){break f}if(zb[H[c+12>>2]](a)|0){break f}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=b;b=H[c+4>>2]-1|0;H[c+4>>2]=b;g:{if(b){break g}if(zb[H[c+12>>2]](a)|0){break g}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=H[a+76>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;d=N(d,3)+8|0;F[c|0]=d>>>8;c=H[b+4>>2]-1|0;H[b+4>>2]=c;h:{if(c){break h}if(zb[H[b+12>>2]](a)|0){break h}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;i:{if(c){break i}if(zb[H[b+12>>2]](a)|0){break i}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(!(H[a+64>>2]<65536&H[a+68>>2]<=65535)){b=H[a>>2];H[b+20>>2]=42;H[b+24>>2]=65535;zb[H[H[a>>2]>>2]](a)}d=H[a+72>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;j:{if(c){break j}if(zb[H[b+12>>2]](a)|0){break j}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}c=H[a+68>>2];b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c>>>8;d=H[b+4>>2]-1|0;H[b+4>>2]=d;k:{if(d){break k}if(zb[H[b+12>>2]](a)|0){break k}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c;c=H[b+4>>2]-1|0;H[b+4>>2]=c;l:{if(c){break l}if(zb[H[b+12>>2]](a)|0){break l}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}c=H[a+64>>2];b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c>>>8;d=H[b+4>>2]-1|0;H[b+4>>2]=d;m:{if(d){break m}if(zb[H[b+12>>2]](a)|0){break m}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=c;c=H[b+4>>2]-1|0;H[b+4>>2]=c;n:{if(c){break n}if(zb[H[b+12>>2]](a)|0){break n}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}d=H[a+76>>2];b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;o:{if(c){break o}if(zb[H[b+12>>2]](a)|0){break o}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(H[a+76>>2]>0){b=H[a+84>>2];c=0;while(1){f=H[b>>2];d=H[a+24>>2];e=H[d>>2];H[d>>2]=e+1;F[e|0]=f;e=H[d+4>>2]-1|0;H[d+4>>2]=e;p:{if(e){break p}if(zb[H[d+12>>2]](a)|0){break p}d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}f=H[b+12>>2];g=H[b+8>>2];d=H[a+24>>2];e=H[d>>2];H[d>>2]=e+1;F[e|0]=f+(g<<4);e=H[d+4>>2]-1|0;H[d+4>>2]=e;q:{if(e){break q}if(zb[H[d+12>>2]](a)|0){break q}d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}f=H[b+16>>2];d=H[a+24>>2];e=H[d>>2];H[d>>2]=e+1;F[e|0]=f;e=H[d+4>>2]-1|0;H[d+4>>2]=e;r:{if(e){break r}if(zb[H[d+12>>2]](a)|0){break r}d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}b=b+88|0;c=c+1|0;if((c|0)>2]){continue}break}}s:{if(!H[a+264>>2]|H[a+376>>2]==8){break s}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;t:{if(c){break t}if(zb[H[b+12>>2]](a)|0){break t}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=218;c=H[b+4>>2]-1|0;H[b+4>>2]=c;u:{if(c){break u}if(zb[H[b+12>>2]](a)|0){break u}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;v:{if(c){break v}if(zb[H[b+12>>2]](a)|0){break v}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=6;c=H[b+4>>2]-1|0;H[b+4>>2]=c;w:{if(c){break w}if(zb[H[b+12>>2]](a)|0){break w}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;x:{if(c){break x}if(zb[H[b+12>>2]](a)|0){break x}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;y:{if(c){break y}if(zb[H[b+12>>2]](a)|0){break y}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}c=H[a+376>>2];b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;F[d|0]=N(c,c)-1;c=H[b+4>>2]-1|0;H[b+4>>2]=c;z:{if(c){break z}if(zb[H[b+12>>2]](a)|0){break z}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;if(c){break s}if(zb[H[b+12>>2]](a)|0){break s}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}}function tF(a,b,c){var d=0,e=0;a:{b:{c:{switch(c-1|0){case 0:d:{e:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}c=a;f:{g:{h:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break g}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break h}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break f}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=719;break a}c=a;i:{j:{k:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break j}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break k}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break i}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=720;break a;case 1:if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=a;l:{m:{n:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break m}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break n}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break l}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=721;break a;case 2:if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=a;o:{p:{q:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break p}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break q}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break o}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=722;break a;case 3:if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=a;r:{s:{t:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break s}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break t}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break r}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=723;break a;case 4:u:{v:{w:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break u;case 1:break v;case 0:break w;default:break b}}dF(b,a);return}cF(b,a);return}bF(b,a);return;case 5:x:{y:{z:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break x;case 1:break y;case 0:break z;default:break b}}aF(b,a);return}$E(b,a);return}_E(b,a);return;case 6:if((I[a|0]|I[a+1|0]<<8)==256){c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?c+a|0:163632;a=I[a+2|0]|I[a+3|0]<<8;tF(c,b,(a<<8|a>>>8)&65535)}return;case 7:break c;default:break b}}if((I[a|0]|I[a+1|0]<<8)!=256){break b}c=a;A:{B:{C:{d=H[b+4>>2];b=H[d>>2];if((b|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=b>>>0){break B}a=b;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){b=tc(H[d+8>>2],N(a,20));if(b){break C}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break A}H[d>>2]=a;H[d+8>>2]=b;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=730;H[a>>2]=c;H[a+16>>2]=0;a=a+8|0;b=I[c+2|0]|I[c+3|0]<<8;D:{if(!b){Ee(163632,a);break D}Ee(c+((b<<8|b>>>8)&65535)|0,a)}}return}H[a>>2]=c;H[a+16>>2]=0;a=a+8|0;b=I[c+2|0]|I[c+3|0]<<8;E:{if(!b){Ee(163632,a);break E}Ee(((b<<8|b>>>8)&65535)+c|0,a)}}function Xfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=O(0),r=0,s=0,t=0;g=xb-1456|0;xb=g;k=J[a+26>>1];f=(k|0)==24;h=f?3:(k|0)==32?3:1;n=H[a+16>>2];m=H[a+20>>2];a:{b:{c:{if(f){f=H[a+928>>2]!=0;k=f?32:24;h=f?4:h;l=(k>>>0)/(h>>>0)|0;break c}l=(k>>>0)/(h>>>0)|0;f=H[a+4>>2];f=f?H[a+44>>2]?f+40|0:0:0;d:{switch(k-1|0){case 0:if((or(f,f+4|0)|0)>=0){k=1;break a}Nd(g+416|0,a,0);k=1;Nd(g+1448|0,a,1);H[g+380>>2]=H[g+1448>>2];_k(a,0,g+380|0);f=H[g+416>>2];H[g+1444>>2]=f;H[g+376>>2]=f;_k(a,1,g+376|0);if(H[a+32>>2]){f=H[a+56>>2];while(1){F[f|0]=I[f|0]^-1;f=f+1|0;i=i+1|0;if(i>>>0>2]){continue}break}}i=0;break a;case 31:break c;case 3:case 7:break d;default:break a}}p=H[a+44>>2];if(!p){j=1;break a}while(1){j=3;o=I[f+2|0];if((o|0)!=(i|0)){i=1;break a}if((o|0)!=I[f+1|0]){i=1;break a}if((o|0)!=I[f|0]){i=1;break a}f=f+4|0;j=1;i=i+1|0;if((p|0)!=(i|0)){continue}break}break b}j=2}i=0}o=H[a+928>>2]?(k|0)==8?2:h:h;f=H[a+4>>2];e:{if(!(f?H[a+44>>2]?f+40|0:0:0)){break e}f=H[a+4>>2];h=H[a+44>>2];Ob(g+416|0,f?h?f+40|0:0:0,h<<2);p=H[a+44>>2];if(!p){break e}f=0;h=0;while(1){f=(g+416|0)+(f<<2)|0;r=I[f+2|0];F[f+2|0]=I[f|0];F[f|0]=r;h=h+1|0;f=h&65535;if(p>>>0>f>>>0){continue}break}}H[g+368>>2]=n;rc(b,256,g+368|0);H[g+352>>2]=m;rc(b,257,g+352|0);H[g+336>>2]=o;rc(b,277,g+336|0);H[g+320>>2]=l;rc(b,258,g+320|0);H[g+304>>2]=j;rc(b,262,g+304|0);H[g+288>>2]=1;rc(b,284,g+288|0);H[g+272>>2]=1;rc(b,274,g+272|0);l=zb[H[b+576>>2]](b,-1)|0;H[g+256>>2]=l;rc(b,278,g+256|0);H[g+240>>2]=2;rc(b,296,g+240|0);M[g+224>>3]=O(H[a+364>>2]);rc(b,282,g+224|0);M[g+208>>3]=O(H[a+368>>2]);rc(b,283,g+208|0);f:{if(c){H[g+176>>2]=d;c=g+384|0;Ad(c,248932,g+176|0);H[g+160>>2]=2;rc(b,254,g+160|0);H[g+148>>2]=e;H[g+144>>2]=d;rc(b,297,g+144|0);H[g+128>>2]=c;rc(b,285,g+128|0);break f}H[g+192>>2]=0;rc(b,254,g+192|0)}if(i){d=Tb(1536);e=d+1024|0;f=d+512|0;h=255;while(1){c=h;i=h<<1;j=(g+416|0)+(h<<2)|0;G[i+e>>1]=N(I[j+2|0],257);G[f+i>>1]=N(I[j+1|0],257);G[d+i>>1]=N(I[j|0],257);h=h-1|0;if(c){continue}break}H[g+120>>2]=e;H[g+116>>2]=f;H[g+112>>2]=d;rc(b,320,g+112|0);Kb(d)}g:{h:{i:{j:{k:{if(!Ug(a,6)){f=4;l:{switch(k-1|0){default:f=1;break;case 3:case 7:break i;case 23:case 31:break k;case 0:break l}}H[g>>2]=f;rc(b,259,g);break g}c=Ug(a,6)&65535;H[g+96>>2]=c;rc(b,259,g+96|0);switch(c-5|0){case 0:break h;case 2:break j;default:break g}}H[g+80>>2]=7;rc(b,259,g+80|0)}q=O(L[a+344>>2]+O(.5));m:{if(q=O(0)){c=~~q>>>0;break m}c=0}H[g+64>>2]=c;rc(b,65537,g- -64|0);H[g+48>>2]=l+7&-8;rc(b,278,g+48|0);break g}H[g+32>>2]=5;rc(b,259,g+32|0)}if(k>>>0<8){break g}H[g+16>>2]=2;rc(b,317,g+16|0)}f=1;n:{o:{p:{switch(k-1|0){case 0:case 3:case 7:if((o|0)==1){d=H[a+52>>2];j=Tb(d);if(!j){f=0;break n}c=1;if(!m){break o}f=0;c=0;e=Ob(j,H[a+56>>2]+N(d,m-1|0)|0,d);if((xj(b,e,0)|0)==-1){break o}while(1){d=f+1|0;c=(d|0)==(m|0);if(c){break o}h=(m-f|0)-2|0;f=H[a+52>>2];h=Ob(e,H[a+56>>2]+N(h,f)|0,f);f=d;if((xj(b,h,f)|0)!=-1){continue}break}break o}j=Tb(n<<1);if(!j){f=0;break n}c=1;if(!m){break o}i=0;if(!n){while(1){a=xj(b,j,i);if((a|0)!=-1){i=i+1|0;if((m|0)!=(i|0)){continue}}break}c=(a|0)!=-1;break o}while(1){c=(i^-1)+m|0;f=0;while(1){d=(f<<1)+j|0;s=d,t=Ph(a,f,c),F[s|0]=t;s=d,t=Xf(a,f,c),F[s+1|0]=t;f=f+1|0;if((n|0)!=(f|0)){continue}break}c=xj(b,j,i);if((c|0)!=-1){i=i+1|0;if((m|0)!=(i|0)){continue}}break};c=(c|0)!=-1;break o;case 23:f=H[a+52>>2];j=Tb(f);if(!j){f=0;break n}c=1;if(!m){break o}e=n&-4;d=n&3;i=n-1>>>0<3;k=0;while(1){c=Ob(j,H[a+56>>2]+N((k^-1)+m|0,f)|0,f);q:{if(!n){break q}h=0;f=c;if(!i){while(1){l=I[f+2|0];F[f+2|0]=I[f|0];F[f|0]=l;l=I[f+3|0];F[f+3|0]=I[f+5|0];F[f+5|0]=l;l=I[f+6|0];F[f+6|0]=I[f+8|0];F[f+8|0]=l;l=I[f+9|0];F[f+9|0]=I[f+11|0];F[f+11|0]=l;f=f+12|0;h=h+4|0;if((e|0)!=(h|0)){continue}break}}h=0;if(!d){break q}while(1){l=I[f+2|0];F[f+2|0]=I[f|0];F[f|0]=l;f=f+3|0;h=h+1|0;if((d|0)!=(h|0)){continue}break}}r:{c=xj(b,c,k);if((c|0)==-1){break r}k=k+1|0;if((m|0)==(k|0)){break r}f=H[a+52>>2];continue}break};c=(c|0)!=-1;break o;case 31:break p;default:break n}}f=H[a+52>>2];j=Tb((f<<2>>>0)/3|0);if(!j){f=0;break n}c=1;if(!m){break o}c=(n<<2)+j|0;d=N(n,3)+j|0;k=0;while(1){l=(k^-1)+m|0;o=Ob(j,H[a+56>>2]+N(l,f)|0,f);f=c;h=d;i=0;if(n){while(1){s=f-1|0,t=Xf(a,(i^-1)+n|0,l),F[s|0]=t;e=h-3|0;F[f-2|0]=I[e|0];F[f-3|0]=I[h-2|0];f=f-4|0;F[f|0]=I[h-1|0];h=e;i=i+1|0;if((n|0)!=(i|0)){continue}break}}s:{e=xj(b,o,k);if((e|0)==-1){break s}k=k+1|0;if((m|0)==(k|0)){break s}f=H[a+52>>2];continue}break}c=(e|0)!=-1}f=c;Kb(j)}xb=g+1456|0;return f|0}function vba(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;j=xb-416|0;xb=j;u=H[b+92>>2];H[a+40>>2]=J[b+68>>1];if(!Kh(b,1970170211)){gz(a,b);c=(H[H[a>>2]+12>>2]<<3)+6560|0;d=H[c>>2];if((d|0)!=5531){v=a+7720|0;w=a+44|0;while(1){r=c;g=d+1024|0;d=I[g|0];a:{if(!d){break a}s=I[r+4|0]&2?w:v;q=0;n=0;m=1;while(1){e=d&255;if((e|0)!=32){b:{c:{if((e|0)==124){g=g+1|0;break c}c=g+1|0;if(d<<24>>24<0){f=e>>>0<240;d=e>>>0<224;i=d?1:f?2:3;k=i-1|0;e=(d?31:f?15:7)&e;f=0;d=i;while(1){e=I[c|0]&63|e<<6;d=d-1|0;c=c+1|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}if(k>>>0>=3){while(1){e=I[c+3|0]&63|((I[c+1|0]&63|(e<<12|(I[c|0]&63)<<6))<<12|(I[c+2|0]&63)<<6);c=c+4|0;d=d-4|0;if(d){continue}break}}c=(g+i|0)+1|0}g=c;d=0;while(1){c=I[g|0];if((c|32)!=32){g=g+1|0;d=c;if(c<<24>>24>=0){continue}c=d>>>0<240;f=d>>>0<224;i=f?1:c?2:3;l=i-1|0;d=(f?31:c?15:7)&d;k=0;f=i;c=g;while(1){d=I[c|0]&63|d<<6;f=f-1|0;c=c+1|0;k=k+1|0;if((i|0)!=(k|0)){continue}break}if(l>>>0>=3){while(1){d=I[c+3|0]&63|((I[c+1|0]&63|(d<<12|(I[c|0]&63)<<6))<<12|(I[c+2|0]&63)<<6);c=c+4|0;f=f-4|0;if(f){continue}break}}g=g+i|0;continue}break}if(d){break b}c=Wd(H[H[a+36>>2]>>2],e);if(!c){break b}if(Ag(b,c,1)){break b}c=H[b+84>>2];if(G[c+110>>1]<3){break b}e=0;t=G[c+108>>1];d:{if((t|0)<=0){c=0;break d}x=H[c+120>>2];k=H[c+112>>2];d=-1;l=0;c=0;while(1){i=G[x+(l<<1)>>1];e:{if((i|0)<=(e|0)){break e}h=J[r+4>>1];f=h&1;if(h&2){if(f){if((i-e|0)+1&1){f=H[(e<<3)+k>>2];h=(d|0)<0|(f|0)>(c|0);d=h?e:d;c=h?f:c;f=e+1|0}else{f=e}if((e|0)==(i|0)){break e}while(1){e=d;h=(d|0)<0;d=H[(f<<3)+k>>2];h=h|(d|0)>(c|0);o=h?f:e;e=f+1|0;p=H[(e<<3)+k>>2];h=h?d:c;c=(o|0)<0|(p|0)>(h|0);d=c?e:o;c=c?p:h;f=f+2|0;if((e|0)!=(i|0)){continue}break}break e}if((i-e|0)+1&1){f=H[(e<<3)+k>>2];h=(d|0)<0|(f|0)<(c|0);d=h?e:d;c=h?f:c;f=e+1|0}else{f=e}if((e|0)==(i|0)){break e}while(1){e=d;h=(d|0)<0;d=H[(f<<3)+k>>2];h=h|(d|0)<(c|0);o=h?f:e;e=f+1|0;p=H[(e<<3)+k>>2];h=h?d:c;c=(o|0)<0|(p|0)<(h|0);d=c?e:o;c=c?p:h;f=f+2|0;if((e|0)!=(i|0)){continue}break}break e}if(f){if((i-e|0)+1&1){f=H[((e<<3)+k|0)+4>>2];h=(d|0)<0|(f|0)>(c|0);d=h?e:d;c=h?f:c;f=e+1|0}else{f=e}if((e|0)==(i|0)){break e}while(1){e=d;h=(d|0)<0;d=H[((f<<3)+k|0)+4>>2];h=h|(d|0)>(c|0);o=h?f:e;e=f+1|0;p=H[((e<<3)+k|0)+4>>2];h=h?d:c;c=(o|0)<0|(p|0)>(h|0);d=c?e:o;c=c?p:h;f=f+2|0;if((e|0)!=(i|0)){continue}break}break e}if((i-e|0)+1&1){f=H[((e<<3)+k|0)+4>>2];h=(d|0)<0|(f|0)<(c|0);d=h?e:d;c=h?f:c;f=e+1|0}else{f=e}if((e|0)==(i|0)){break e}while(1){e=d;h=(d|0)<0;d=H[((f<<3)+k|0)+4>>2];h=h|(d|0)<(c|0);o=h?f:e;e=f+1|0;p=H[((e<<3)+k|0)+4>>2];h=h?d:c;c=(o|0)<0|(p|0)<(h|0);d=c?e:o;c=c?p:h;f=f+2|0;if((e|0)!=(i|0)){continue}break}}e=i+1|0;l=l+1|0;if((t|0)!=(l|0)){continue}break}}if(m){H[(j+208|0)+(q<<2)>>2]=c;q=q+1|0;break b}H[(n<<2)+j>>2]=c;n=n+1|0}m=0}d=I[g|0];if(d){continue}if(!(n|q)){break a}f:{if(q>>>0<2){break f}g=1;c=q-1|0;i=c&1;if((q|0)!=2){k=c&-2;e=0;while(1){d=H[(j+208|0)+(g<<2)>>2];c=g;while(1){f=c-1|0;l=(j+208|0)+(f<<2)|0;m=H[l>>2];if((m|0)>(d|0)){H[(j+208|0)+(c<<2)>>2]=m;H[l>>2]=d;c=f;if(c){continue}}break}c=g+1|0;d=H[(j+208|0)+(c<<2)>>2];while(1){f=c-1|0;l=(j+208|0)+(f<<2)|0;m=H[l>>2];if((m|0)>(d|0)){H[(j+208|0)+(c<<2)>>2]=m;H[l>>2]=d;c=f;if(c){continue}}break}g=g+2|0;e=e+2|0;if((k|0)!=(e|0)){continue}break}}if(!i){break f}e=H[(j+208|0)+(g<<2)>>2];while(1){c=g-1|0;f=(j+208|0)+(c<<2)|0;d=H[f>>2];if((d|0)<=(e|0)){break f}H[(j+208|0)+(g<<2)>>2]=d;H[f>>2]=e;g=c;if(c){continue}break}}g:{if(n>>>0<2){break g}g=1;c=n-1|0;i=c&1;if((n|0)!=2){k=c&-2;e=0;while(1){d=H[(g<<2)+j>>2];c=g;while(1){f=c-1|0;l=(f<<2)+j|0;m=H[l>>2];if((m|0)>(d|0)){H[(c<<2)+j>>2]=m;H[l>>2]=d;c=f;if(c){continue}}break}c=g+1|0;d=H[(c<<2)+j>>2];while(1){f=c-1|0;l=(f<<2)+j|0;m=H[l>>2];if((m|0)>(d|0)){H[(c<<2)+j>>2]=m;H[l>>2]=d;c=f;if(c){continue}}break}g=g+2|0;e=e+2|0;if((k|0)!=(e|0)){continue}break}}if(!i){break g}e=H[(g<<2)+j>>2];while(1){c=g-1|0;f=(c<<2)+j|0;d=H[f>>2];if((d|0)<=(e|0)){break g}H[(g<<2)+j>>2]=d;H[f>>2]=e;g=c;if(c){continue}break}}c=H[s+216>>2];H[s+216>>2]=c+1;c=N(c,28)+s|0;h:{i:{if(!(!n|!q)){g=H[(j+208|0)+(q<<1&-4)>>2];H[c+220>>2]=g;e=H[(n<<1&-4)+j>>2];H[c+232>>2]=e;if((e|0)==(g|0)){break i}k=J[r+4>>1];if((k^(e|0)>=(g|0))&1){break h}g=(e+g|0)/2|0;H[c+232>>2]=g;H[c+220>>2]=g;break h}g=H[((n?n:q)<<1&-4)+(n?j:j+208|0)>>2];H[c+232>>2]=g;H[c+220>>2]=g}k=J[r+4>>1]}H[c+244>>2]=k<<1&2}else{d=I[g+1|0];g=g+1|0;continue}break}}c=r+8|0;d=H[r+8>>2];if((d|0)!=5531){continue}break}}qv(a)}Ih(b,u);xb=j+416|0;return 0}function ms(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=O(0),m=O(0);g=xb-208|0;xb=g;a:{if(!(!H[a>>2]|K[a+216>>2]<=c>>>0)){i=H[a+80>>2];b:{if((i|0)==163632){break b}c:{d:{switch(I[i|0]){case 0:h=(c+i|0)+1|0;break c;case 3:break d;default:break b}}h=1;j=I[i+1|0]|I[i+2|0]<<8;j=(j<<8|j>>>8)&65535;e:{if(j>>>0<2){break e}while(1){k=h>>>0>>0?(i+N(h,3)|0)+3|0:163632;k=I[k|0]|I[k+1|0]<<8;if(((k<<8|k>>>8)&65535)>>>0>c>>>0){break e}h=h+1|0;if((j|0)!=(h|0)){continue}break}h=j}h=h-1|0;h=(h>>>0>>0?(i+N(h,3)|0)+3|0:163632)+2|0}h=I[h|0]}F[g+56|0]=0;H[g+48>>2]=0;H[g+52>>2]=0;H[g+76>>2]=0;H[g+68>>2]=0;H[g+72>>2]=0;H[g+92>>2]=0;H[g+96>>2]=0;F[g+100|0]=0;H[g+144>>2]=0;H[g+136>>2]=0;H[g+140>>2]=0;H[g+176>>2]=0;H[g+180>>2]=0;H[g+40>>2]=0;H[g+44>>2]=0;H[g+84>>2]=0;H[g+88>>2]=0;H[g+168>>2]=0;H[g+172>>2]=0;H[g+192>>2]=0;H[g+196>>2]=0;j=H[a+72>>2];H[197455]=0;Ri(g+24|0,j,c);c=H[197455];H[197455]=0;if((c|0)==1){break a}j=H[(K[a+208>>2]>h>>>0?H[a+212>>2]+N(h,24)|0:163632)+20>>2];i=H[a+68>>2];H[g+48>>2]=H[g+32>>2];c=H[g+28>>2];H[g+40>>2]=H[g+24>>2];H[g+44>>2]=c;F[g+60|0]=0;F[g+56|0]=0;H[g+52>>2]=0;c=Tb(4744);H[g+72>>2]=0;H[g+76>>2]=0;h=g- -64|0;H[h>>2]=0;H[h+4>>2]=0;f:{if(!c){H[g+68>>2]=-1;break f}H[g+68>>2]=593;H[g+76>>2]=c;Nb(c,0,4104);H[g+72>>2]=513}F[g+80|0]=0;c=H[g+28>>2];H[g+84>>2]=H[g+24>>2];H[g+88>>2]=c;H[g+92>>2]=H[g+32>>2];H[g+104>>2]=0;H[g+108>>2]=0;F[g+100|0]=0;H[g+96>>2]=0;F[g+113|0]=1;F[g+114|0]=0;c=Tb(560);H[g+140>>2]=0;H[g+144>>2]=0;H[g+132>>2]=0;H[g+136>>2]=0;F[g+121|0]=0;F[g+122|0]=0;F[g+123|0]=0;F[g+124|0]=0;F[g+125|0]=0;F[g+126|0]=0;F[g+127|0]=0;F[g+128|0]=0;H[g+176>>2]=0;H[g+180>>2]=0;H[g+116>>2]=0;H[g+120>>2]=0;H[g+168>>2]=0;H[g+172>>2]=0;g:{if(!c){H[g+136>>2]=-1;break g}H[g+136>>2]=20;H[g+144>>2]=c;H[c+48>>2]=0;H[c+52>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;H[c+56>>2]=0;H[c+60>>2]=0;h=c- -64|0;H[h>>2]=0;H[h+4>>2]=0;H[c+72>>2]=0;H[c+76>>2]=0;H[c+80>>2]=0;h=4;H[g+140>>2]=4;H[c+108>>2]=0;H[c+100>>2]=0;H[c+104>>2]=0;H[c+92>>2]=0;H[c+96>>2]=0;H[c+84>>2]=0;H[c+88>>2]=0;while(1){H[g+140>>2]=h+1;c=H[g+144>>2]+N(h,28)|0;H[c>>2]=0;H[c+4>>2]=0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;h=H[g+140>>2];if(h>>>0<10){continue}break}H[g+140>>2]=10}H[g+152>>2]=i;h:{i:{if(i){c=I[i|0]|I[i+1|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0>1239){break i}}H[g+148>>2]=107;break h}if(c>>>0<=33899){H[g+148>>2]=1131;break h}H[g+148>>2]=32768}H[g+160>>2]=j;j:{k:{if(j){c=I[j|0]|I[j+1|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0>1239){break k}}H[g+156>>2]=107;break j}if(c>>>0<=33899){H[g+156>>2]=1131;break j}H[g+156>>2]=32768}F[g+200|0]=e;H[g+188>>2]=0;G[g+184>>1]=0;F[g+112|0]=0;H[g+20>>2]=a;H[g+12>>2]=d;H[g+16>>2]=f;H[g+8>>2]=b;f=I[163632];j=f|256;h=!I[g+56|0];a=H[40908];d=H[40909];l:{while(1){b=65535;m:{n:{o:{if(!(h&1)){break o}h=H[g+52>>2];e=h+1|0;i=H[g+44>>2];if(e>>>0>i>>>0){break o}p:{q:{if(h>>>0>>0){b=H[g+40>>2];c=I[b+h|0];if((c|0)==12){c=j;if(e>>>0>=i>>>0){break q}h=e;c=I[b+h|0]|256}if(h>>>0>=i>>>0){break q}H[g+52>>2]=h+1;break p}F[g+56|0]=1;c=f;if((c|0)==12){break o}}F[g+56|0]=1;H[g+52>>2]=i}if((c|0)!=14){b=c;if((c|0)!=256){break o}break n}e=H[g+64>>2];if(!I[g+184|0]){if(e&1){r:{if(!H[g+72>>2]){H[196248]=a;H[196249]=d;b=a;c=d;break r}c=H[g+76>>2];b=H[c>>2];c=H[c+4>>2]}H[g+188>>2]=1;F[g+185|0]=1;H[g+192>>2]=b;H[g+196>>2]=c}F[g+184|0]=1}if(e>>>0>=4){H[197455]=0;ba(649,g+40|0,g+8|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}}F[g+112|0]=1;break n}H[197455]=0;ga(650,b|0,g+40|0,g+8|0);b=H[197455];H[197455]=0;if((b|0)!=1){break m}break a}H[g+64>>2]=0;H[g+188>>2]=0}h=0;if(I[g+128|0]){break l}h=0;if(H[g+136>>2]<0){break l}h=0;if(I[g+80|0]|I[g+56|0]){break l}h=0;if(I[g+60|0]){break l}h=0;if(H[g+68>>2]<0){break l}h=1;if(!I[g+112|0]){continue}break}b=H[g+12>>2];a=b+16|0;if(H[b+16>>2]){d=H[b+12>>2];c=H[b+8>>2];l=L[b+20>>2];m=L[b+24>>2];if(!(l==L[b+28>>2]&m==L[b+32>>2])){b=H[c+36>>2];e=H[c+16>>2];H[197455]=0;Ma(e|0,c|0,d|0,a|0,O(l),O(m),b|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}}b=H[c+48>>2];e=H[c+28>>2];H[197455]=0;ka(e|0,c|0,d|0,a|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[a>>2]=0;H[a+4>>2]=0;H[a+16>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;h=1}H[g+72>>2]=0;Kb(H[g+76>>2]);H[g+140>>2]=0;H[g+76>>2]=0;H[g+68>>2]=0;H[g+72>>2]=0;Kb(H[g+144>>2]);H[g+72>>2]=0;H[g+144>>2]=0;H[g+136>>2]=0;H[g+140>>2]=0;Kb(H[g+76>>2])}xb=g+208|0;return h}a=$()|0;_()|0;yG(g+40|0);ea(a|0);X()}function Lja(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,u=0,v=0,w=0;k=xb-32|0;xb=k;H[b+72>>2]=0;H[b+64>>2]=0;F[b+61|0]=1;F[b+62|0]=0;H[b+84>>2]=H[b+80>>2];H[b+64>>2]=0;j=H[b+68>>2];a:{if(!j){break a}while(1){d=H[b+80>>2];i=H[d+N(e,20)>>2];b:{if((i&-129)!=3635){if(I[b+61|0]){c:{if((d|0)==H[b+84>>2]){d=e;if(H[b+72>>2]==(d|0)){break c}}if(!ec(b,1,1)){break a}f=H[b+80>>2]+N(H[b+64>>2],20)|0;e=H[f+4>>2];d=H[b+84>>2]+N(H[b+72>>2],20)|0;H[d>>2]=H[f>>2];H[d+4>>2]=e;H[d+16>>2]=H[f+16>>2];e=H[f+12>>2];H[d+8>>2]=H[f+8>>2];H[d+12>>2]=e;e=H[b+64>>2];d=H[b+72>>2]}H[b+72>>2]=d+1}H[b+64>>2]=e+1;break b}g=i+26|0;if(ec(b,0,1)){f=H[b+64>>2];d:{if(f>>>0>2]){d=H[b+72>>2];e=H[b+84>>2];f=H[b+80>>2]+N(f,20)|0;break d}e=H[b+84>>2];d=H[b+72>>2];f=e+N(d?d-1|0:0,20)|0}e=N(d,20)+e|0;d=f;f=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=f;H[e+16>>2]=H[d+16>>2];f=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=f;H[e>>2]=g;H[b+72>>2]=H[b+72>>2]+1}d=H[b+72>>2];d=H[b+84>>2]+N(d?d-1|0:0,20)|0;G[d+16>>1]=J[d+16>>1]|128;g=i-1|0;h=ec(b,1,1);if(h){f=H[b+64>>2];e:{if(f>>>0>2]){d=H[b+72>>2];i=H[b+84>>2];f=H[b+80>>2]+N(f,20)|0;break e}i=H[b+84>>2];d=H[b+72>>2];f=i+N(d?d-1|0:0,20)|0}e=N(d,20)+i|0;d=f;f=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=f;H[e+16>>2]=H[d+16>>2];f=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=f;H[e>>2]=g;H[b+64>>2]=H[b+64>>2]+1;H[b+72>>2]=H[b+72>>2]+1}if(!h){break a}e=H[b+72>>2];d=e-2|0;i=N(d,20);f=i+H[b+84>>2]|0;G[f+16>>1]=J[f+16>>1]&224|12;f:{g:{while(1){f=d;if(!d){break g}d=f-1|0;g=H[H[b+84>>2]+N(d,20)>>2];h=g&-129;if((h|0)==3633|(g&-132)==3636|h-3655>>>0<8){continue}break}if(e>>>0>f+2>>>0){break f}if(H[b+20>>2]){break b}eh(b,d,e);break b}if(e>>>0<=2){break b}}eh(b,f,e);d=i;i=H[b+84>>2];d=d+i|0;H[k+24>>2]=H[d+16>>2];g=H[d+12>>2];H[k+16>>2]=H[d+8>>2];H[k+20>>2]=g;g=H[d+4>>2];H[k+8>>2]=H[d>>2];H[k+12>>2]=g;d=N(f,20);i=d+i|0;$c(i+20|0,i,N(e-f|0,20)-40|0);f=H[k+12>>2];d=d+H[b+84>>2]|0;H[d>>2]=H[k+8>>2];H[d+4>>2]=f;H[d+16>>2]=H[k+24>>2];f=H[k+20>>2];H[d+8>>2]=H[k+16>>2];H[d+12>>2]=f}e=H[b+64>>2];if(j>>>0>e>>>0){continue}break}}cf(b);h:{if(I[a+32|0]|H[a+4>>2]!=1416126825){break h}s=H[b+68>>2];if(!s){break h}t=H[b+80>>2];a=3;g=2;f=0;i=0;while(1){e=0;i:{j:{u=N(i,20)+t|0;j=H[u>>2];if((j|0)==3633|(j&-4)==3636){break j}d=j-3655|0;if(1<>>0<=7:0){break j}e=1;if(j-3640>>>0<3){break j}e=2;if(j-3656>>>0<5){break j}k:{l:{d=j-3597|0;if(d>>>0<=18){d=1<>>0>45)<<2;break k}a=2}a=a<<2;g=H[a+139568>>2];a=H[a+139536>>2];f=i;break i}e=e<<3;d=e+N(g,24)|0;a=e+N(a,24)|0;r=H[a+139600>>2];if(!r){r=H[d+139696>>2]}w=d+139700|0;m=a+139604|0;a=H[b+68>>2];l=a>>>0>>0?a:i;p=l-f|0;m:{if(p>>>0<2){break m}a=H[b+144>>2]|32;H[b+144>>2]=a;if(f>>>0>=l>>>0){break m}h=H[b+80>>2];e=-1;d=f;v=l+(d^-1)|0;if(v>>>0>=3){q=p&-4;o=0;while(1){g=h+N(d,20)|0;n=H[g+8>>2];e=e>>>0>>0?e:n;n=H[g+28>>2];e=e>>>0>>0?e:n;n=H[g+48>>2];e=e>>>0>>0?e:n;g=H[g+68>>2];e=e>>>0>>0?e:g;d=d+4|0;o=o+4|0;if((q|0)!=(o|0)){continue}break}}g=0;o=p&3;if(o){while(1){q=H[(h+N(d,20)|0)+8>>2];e=e>>>0>>0?e:q;d=d+1|0;g=g+1|0;if((o|0)!=(g|0)){continue}break}}d=f;if(p&1){d=h+N(f,20)|0;if(H[d+8>>2]!=(e|0)){H[b+144>>2]=a;H[d+4>>2]=H[d+4>>2]|3}d=f+1|0}if(!v){break m}while(1){g=h+N(d,20)|0;if(H[g+8>>2]!=(e|0)){a=a|32;H[b+144>>2]=a;H[g+4>>2]=H[g+4>>2]|3}g=h+N(d+1|0,20)|0;if(H[g+8>>2]!=(e|0)){a=a|32;H[b+144>>2]=a;H[g+4>>2]=H[g+4>>2]|3}d=d+2|0;if((l|0)!=(d|0)){continue}break}}g=H[w>>2];a=H[m>>2];e=0;n:{o:{p:{switch(r|0){case 4:e=140128;q:{r:{s:{j=N(f,20)+t|0;d=H[j>>2];switch(d-3597|0){case 0:break r;case 3:break s;default:break q}}e=140140}h=H[e+4>>2];l=k+8|0;H[l>>2]=0;m=h;h=H[c+80>>2];if(zb[H[h+164>>2]](c,H[c+84>>2],m,l,H[h+20>>2])|0){d=e+4|0}else{h=H[e+8>>2];l=k+8|0;H[l>>2]=0;m=h;h=H[c+80>>2];if(!(zb[H[h+164>>2]](c,H[c+84>>2],m,l,H[h+20>>2])|0)){break q}d=e+8|0}d=H[d>>2]}H[j>>2]=d;break i;case 1:e=139776;break o;case 3:e=139888;break o;case 0:break n;case 2:break p;default:break o}}e=139968}d=H[e>>2];if(!d){break n}while(1){if((d|0)==(j|0)){d=H[e+4>>2];h=k+8|0;H[h>>2]=0;m=d;d=H[c+80>>2];if(zb[H[d+164>>2]](c,H[c+84>>2],m,h,H[d+20>>2])|0){j=H[e+4>>2];break n}d=H[e+8>>2];h=k+8|0;H[h>>2]=0;m=d;d=H[c+80>>2];if(!(zb[H[d+164>>2]](c,H[c+84>>2],m,h,H[d+20>>2])|0)){break n}j=H[e+8>>2];break n}d=H[e+12>>2];e=e+12|0;if(d){continue}break}}H[u>>2]=j}i=i+1|0;if((s|0)!=(i|0)){continue}break}}xb=k+32|0}function $ka(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,y=0;h=xb-16|0;xb=h;a:{b:{switch(I[a+4|0]){case 0:f=H[b+4>>2];w=G[f+152>>1]&1;if(w){j=I[a+5|0];H[h+8>>2]=a;H[h+12>>2]=b;F[h+4|0]=j>>>2&1;H[h>>2]=h+8;r=H[f+144>>2];f=0;o=xb-160|0;xb=o;d=H[b+16>>2];l=H[b+8>>2];if(Ac(d,l,106300,0)){if(I[d+16|0]&64){Rc(d,2,0,-1,1,0)}b=rf(o+8|0,1,l,d);H[b+120>>2]=r;H[b+132>>2]=8;H[b+36>>2]=0;H[b+8>>2]=b;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+52>>2]=b;H[b+20>>2]=r;F[b+17|0]=I[b+142|0];H[b+12>>2]=8;H[b+72>>2]=0;H[b+76>>2]=0;H[b- -64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=8;a=H[b+124>>2]==1;F[b+16|0]=a;F[b+60|0]=a|I[b+141|0]!=0;k=H[d+68>>2];if(k){s=b+4|0;m=H[d+88>>2];n=H[d+80>>2];x=(H[d+40>>2]&-2)!=4;while(1){c:{d:{p=N(f,20);q=p+n|0;if(!(r&H[q+4>>2])){break d}H[b+40>>2]=1;H[b+4>>2]=f;j=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[j+68>>2];a=0;F[b+24|0]=H[j+64>>2]==(f|0)?I[(p+H[j+80>>2]|0)+15|0]:0;if(!Ne(s,o+4|0)){break d}j=H[s>>2];g=N(j,20);u=H[H[h>>2]>>2];c=I[u+6|0]|I[u+7|0]<<8;e:{if(c){e=H[q>>2];y=H[g+n>>2];q=((c<<8|c>>>8)&65535)-1|0;while(1){f:{g:{v=a+q>>>1|0;i=u+N(v,6)|0;c=i+14|0;t=I[c|0]|I[c+1|0]<<8;t=(t<<8|t>>>8)&65535;h:{if((t|0)==(e|0)){i=I[i+16|0]|I[i+17|0]<<8;i=(i<<8|i>>>8)&65535;if(i>>>0>y>>>0){break h}if((i|0)==(y|0)){break e}break g}if(e>>>0>=t>>>0){break g}}q=v-1|0;break f}a=v+1|0}if((a|0)<=(q|0)){continue}break}}c=163632}c=I[c+4|0]|I[c+5|0]<<8;if(!c){break c}a=c<<8|c>>>8;i:{if(!x){a=a<<16;c=a>>31;a=gma(H[l+40>>2],H[l+44>>2],a>>16,c)+32768|0;c=yb;c=a>>>0<32768?c+1|0:c;a=(c&65535)<<16|a>>>16;if(I[h+4|0]){H[(g+m|0)+12>>2]=a;H[d+144>>2]=H[d+144>>2]|8;break i}c=m+p|0;e=c;i=H[c>>2];c=a>>1;H[e>>2]=i+c;g=g+m|0;a=a-c|0;H[g>>2]=a+H[g>>2];H[g+8>>2]=a+H[g+8>>2];break i}a=a<<16;c=a>>31;a=gma(H[l+48>>2],H[l+52>>2],a>>16,c)+32768|0;c=yb;c=a>>>0<32768?c+1|0:c;a=(c&65535)<<16|a>>>16;if(I[h+4|0]){H[(g+m|0)+8>>2]=a;H[d+144>>2]=H[d+144>>2]|8;break i}c=m+p|0;e=c;i=H[c+4>>2];c=a>>1;H[e+4>>2]=i+c;g=g+m|0;a=a-c|0;H[g+4>>2]=a+H[g+4>>2];H[g+12>>2]=a+H[g+12>>2]}ag(d,f,j+1|0);j=H[s>>2];break c}j=f+1|0}f=j;if(k>>>0>f>>>0){continue}break}}Ac(d,l,106331,0)}xb=o+160|0}break a;case 2:break b;default:break a}}f=H[b+4>>2];w=G[f+152>>1]&1;if(w){j=I[a+5|0];H[h+8>>2]=a;H[h+12>>2]=b;F[h+4|0]=j>>>2&1;H[h>>2]=h+8;r=H[f+144>>2];f=0;o=xb-160|0;xb=o;k=H[b+16>>2];l=H[b+8>>2];if(Ac(k,l,106300,0)){if(I[k+16|0]&64){Rc(k,2,0,-1,1,0)}b=rf(o+8|0,1,l,k);H[b+120>>2]=r;H[b+132>>2]=8;H[b+36>>2]=0;H[b+8>>2]=b;H[b+28>>2]=0;H[b+32>>2]=0;H[b+80>>2]=0;H[b+52>>2]=b;H[b+20>>2]=r;F[b+17|0]=I[b+142|0];H[b+12>>2]=8;H[b+72>>2]=0;H[b+76>>2]=0;H[b- -64>>2]=-1;F[b+61|0]=1;H[b+56>>2]=8;a=H[b+124>>2]==1;F[b+16|0]=a;F[b+60|0]=a|I[b+141|0]!=0;j=H[k+68>>2];if(j){s=b+4|0;m=H[k+88>>2];q=H[k+80>>2];y=(H[k+40>>2]&-2)!=4;while(1){j:{k:{p=N(f,20);e=p+q|0;if(!(r&H[e+4>>2])){break k}H[b+40>>2]=1;H[b+4>>2]=f;a=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[a+68>>2];F[b+24|0]=H[a+64>>2]==(f|0)?I[(p+H[a+80>>2]|0)+15|0]:0;if(!Ne(s,o+4|0)){break k}a=H[h>>2];d=H[a>>2];v=H[s>>2];g=N(v,20);i=H[g+q>>2];c=H[a+4>>2];n=0;u=0;t=H[e>>2];a=I[d+8|0]|I[d+9|0]<<8;a=d+((a<<8|a>>>8)&65535)|0;e=I[a|0]|I[a+1|0]<<8;e=t-((e<<8|e>>>8)&65535)|0;x=I[a+2|0]|I[a+3|0]<<8;if(e>>>0<((x<<8|x>>>8)&65535)>>>0){a=a+(e<<1)|0;a=I[a+4|0]|I[a+5|0]<<8;u=(a<<8|a>>>8)&65535}a=I[d+10|0]|I[d+11|0]<<8;a=d+((a<<8|a>>>8)&65535)|0;e=I[a|0]|I[a+1|0]<<8;e=i-((e<<8|e>>>8)&65535)|0;i=I[a+2|0]|I[a+3|0]<<8;if(e>>>0<((i<<8|i>>>8)&65535)>>>0){a=a+(e<<1)|0;a=I[a+4|0]|I[a+5|0]<<8;n=(a<<8|a>>>8)&65535}a=0;e=(d+u|0)+n|0;n=I[d+12|0]|I[d+13|0]<<8;d=d+((n<<8|n>>>8)&65535)|0;d=(e-d&-2)+d|0;l:{if(d>>>0>2]){break l}n=H[c+28>>2];if(n>>>0>>0|n-d>>>0<2){break l}e=c;c=H[c+32>>2]-2|0;H[e+32>>2]=c;if((c|0)<=0){break l}a=I[d|0]|I[d+1|0]<<8;a=(a<<8|a>>>8)<<16>>16}if(a){m:{if(!y){a=a<<16;c=a>>31;a=gma(H[l+40>>2],H[l+44>>2],a>>16,c)+32768|0;d=yb;d=a>>>0<32768?d+1|0:d;a=(d&65535)<<16|a>>>16;if(I[h+4|0]){H[(g+m|0)+12>>2]=a;H[k+144>>2]=H[k+144>>2]|8;break m}d=m+p|0;c=a>>1;H[d>>2]=c+H[d>>2];d=g+m|0;a=a-c|0;H[d>>2]=a+H[d>>2];H[d+8>>2]=a+H[d+8>>2];break m}a=a<<16;d=a>>31;a=gma(H[l+48>>2],H[l+52>>2],a>>16,d)+32768|0;c=yb;c=a>>>0<32768?c+1|0:c;a=(c&65535)<<16|a>>>16;if(I[h+4|0]){H[(g+m|0)+8>>2]=a;H[k+144>>2]=H[k+144>>2]|8;break m}d=m+p|0;c=a>>1;H[d+4>>2]=c+H[d+4>>2];d=g+m|0;a=a-c|0;H[d+4>>2]=a+H[d+4>>2];H[d+12>>2]=a+H[d+12>>2]}ag(k,f,v+1|0)}f=H[s>>2];break j}f=f+1|0}if(j>>>0>f>>>0){continue}break}}Ac(k,l,106331,0)}xb=o+160|0}}xb=h+16|0;return w|0}function oca(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;a=Nb(a,0,256);d=H[b>>2]+c|0;g=I[d|0];e=I[d+5|0];f=g-e|0;i=I[d+1|0];k=I[d+4|0];h=i-k|0;j=I[d+2|0];l=I[d+3|0];d=j-l|0;H[a+12>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;H[a+8>>2]=N(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;H[a>>2]=(g+e<<2)-3072;H[a+16>>2]=N(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=N(d+f|0,2998)+1024>>11;H[a+20>>2]=e+d;H[a+4>>2]=d+(h+f<<2);d=H[b+4>>2]+c|0;g=I[d|0];e=I[d+5|0];f=g-e|0;i=I[d+1|0];k=I[d+4|0];h=i-k|0;j=I[d+2|0];l=I[d+3|0];d=j-l|0;H[a+44>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;H[a+40>>2]=N(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;H[a+32>>2]=(g+e<<2)-3072;H[a+48>>2]=N(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=N(d+f|0,2998)+1024>>11;H[a+52>>2]=e+d;H[a+36>>2]=d+(h+f<<2);d=H[b+8>>2]+c|0;g=I[d|0];e=I[d+5|0];f=g-e|0;i=I[d+1|0];k=I[d+4|0];h=i-k|0;j=I[d+2|0];l=I[d+3|0];d=j-l|0;H[a+76>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;H[a+72>>2]=N(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;H[a+64>>2]=(g+e<<2)-3072;H[a+80>>2]=N(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=N(d+f|0,2998)+1024>>11;H[a+84>>2]=e+d;H[a+68>>2]=d+(h+f<<2);d=H[b+12>>2]+c|0;g=I[d|0];e=I[d+5|0];f=g-e|0;i=I[d+1|0];k=I[d+4|0];h=i-k|0;j=I[d+2|0];l=I[d+3|0];d=j-l|0;H[a+108>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;H[a+104>>2]=N(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;H[a+96>>2]=(g+e<<2)-3072;H[a+112>>2]=N(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=N(d+f|0,2998)+1024>>11;H[a+116>>2]=e+d;H[a+100>>2]=d+(h+f<<2);d=H[b+16>>2]+c|0;g=I[d|0];e=I[d+5|0];f=g-e|0;i=I[d+1|0];k=I[d+4|0];h=i-k|0;j=I[d+2|0];l=I[d+3|0];d=j-l|0;H[a+140>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;H[a+136>>2]=N(g-e|0,10033)+1024>>11;e=g+e|0;i=i+k|0;g=(e+i<<2)-3072|0;H[a+128>>2]=g;H[a+144>>2]=N(e-(i<<1)|0,5793)+1024>>11;e=d-h<<2;d=N(d+f|0,2998)+1024>>11;H[a+148>>2]=e+d;H[a+132>>2]=d+(h+f<<2);b=H[b+20>>2]+c|0;f=I[b|0];h=I[b+5|0];c=f-h|0;e=I[b+1|0];i=I[b+4|0];d=e-i|0;k=I[b+2|0];j=I[b+3|0];b=k-j|0;H[a+172>>2]=c-(d+b|0)<<2;f=h+f|0;h=j+k|0;H[a+168>>2]=N(f-h|0,10033)+1024>>11;f=h+f|0;h=e+i|0;H[a+176>>2]=N(f-(h<<1)|0,5793)+1024>>11;e=N(b+c|0,2998)+1024>>11;H[a+180>>2]=e+(b-d<<2);f=(h+f<<2)-3072|0;h=H[a>>2];b=f+h|0;i=H[a+96>>2];k=H[a+64>>2];j=i+k|0;H[a+64>>2]=N(b-j|0,17837)+16384>>15;b=b+j|0;j=H[a+32>>2];l=j+g|0;H[a+128>>2]=N(b-(l<<1)|0,10298)+16384>>15;H[a>>2]=N(b+l|0,14564)+16384>>15;b=k-i|0;f=h-f|0;h=N(b+f|0,5331)+16384|0;g=j-g|0;H[a+160>>2]=h+N(b-g|0,14564)>>15;H[a+96>>2]=N(f-(b+g|0)|0,14564)+16384>>15;H[a+32>>2]=h+N(f+g|0,14564)>>15;b=H[a+132>>2];f=H[a+36>>2];d=e+(c+d<<2)|0;h=H[a+4>>2];c=d+h|0;g=H[a+100>>2];e=H[a+68>>2];i=g+e|0;H[a+68>>2]=N(c-i|0,17837)+16384>>15;c=c+i|0;i=b+f|0;H[a+132>>2]=N(c-(i<<1)|0,10298)+16384>>15;H[a+4>>2]=N(c+i|0,14564)+16384>>15;c=e-g|0;d=h-d|0;h=N(c+d|0,5331)+16384|0;b=f-b|0;H[a+164>>2]=h+N(c-b|0,14564)>>15;H[a+100>>2]=N(d-(b+c|0)|0,14564)+16384>>15;H[a+36>>2]=h+N(b+d|0,14564)>>15;b=H[a+136>>2];c=H[a+40>>2];f=H[a+168>>2];h=H[a+8>>2];d=f+h|0;g=H[a+104>>2];e=H[a+72>>2];i=g+e|0;H[a+72>>2]=N(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;H[a+136>>2]=N(d-(i<<1)|0,10298)+16384>>15;H[a+8>>2]=N(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=N(d+f|0,5331)+16384|0;b=c-b|0;H[a+168>>2]=h+N(d-b|0,14564)>>15;H[a+104>>2]=N(f-(b+d|0)|0,14564)+16384>>15;H[a+40>>2]=h+N(b+f|0,14564)>>15;b=H[a+140>>2];c=H[a+44>>2];f=H[a+172>>2];h=H[a+12>>2];d=f+h|0;g=H[a+108>>2];e=H[a+76>>2];i=g+e|0;H[a+76>>2]=N(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;H[a+140>>2]=N(d-(i<<1)|0,10298)+16384>>15;H[a+12>>2]=N(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=N(d+f|0,5331)+16384|0;b=c-b|0;H[a+172>>2]=h+N(d-b|0,14564)>>15;H[a+108>>2]=N(f-(b+d|0)|0,14564)+16384>>15;H[a+44>>2]=h+N(b+f|0,14564)>>15;b=H[a+144>>2];c=H[a+48>>2];f=H[a+176>>2];h=H[a+16>>2];d=f+h|0;g=H[a+112>>2];e=H[a+80>>2];i=g+e|0;H[a+80>>2]=N(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;H[a+144>>2]=N(d-(i<<1)|0,10298)+16384>>15;H[a+16>>2]=N(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=N(d+f|0,5331)+16384|0;b=c-b|0;H[a+176>>2]=h+N(d-b|0,14564)>>15;H[a+112>>2]=N(f-(b+d|0)|0,14564)+16384>>15;H[a+48>>2]=h+N(b+f|0,14564)>>15;b=H[a+148>>2];c=H[a+52>>2];f=H[a+180>>2];h=H[a+20>>2];d=f+h|0;g=H[a+116>>2];e=H[a+84>>2];i=g+e|0;H[a+84>>2]=N(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;H[a+148>>2]=N(d-(i<<1)|0,10298)+16384>>15;H[a+20>>2]=N(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=N(d+f|0,5331)+16384|0;b=c-b|0;H[a+180>>2]=h+N(d-b|0,14564)>>15;H[a+116>>2]=N(f-(b+d|0)|0,14564)+16384>>15;H[a+52>>2]=h+N(b+f|0,14564)>>15}function j9(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;h=xb-192|0;xb=h;e=H[a+608>>2];d=H[a+604>>2];u=1;n=H[a+584>>2];o=H[n+72>>2];g=H[n+68>>2];k=H[n+64>>2];a:{b:{c:{d:{if((c|0)<=0){f=d;break d}s=d+e|0;p=H[n+88>>2];t=H[n+60>>2];l=H[n+12>>2];e:while(1){f:{g:{if(o){break g}while(1){h:{i:{j:{if((g|0)>10){e=d;break j}if(d>>>0>=s>>>0){if(!g){break i}g=11;e=d;break j}f=g+8|0;e=d+1|0;k=I[I[d|0]+t|0]<2){g=f;break j}if(e>>>0>=s>>>0){g=11;break j}g=g+16|0;e=d+2|0;k=I[I[d+1|0]+t|0]<>>1|0;g=g-1|0;d=e;continue}}while(1){e=g;k:{if((e|0)>7){break k}if(d>>>0>=s>>>0){e=8;if(g){break k}break f}k=I[I[d|0]+t|0]<>>1|0;if(!f){continue}break}}k=k>>>1|0;g=e-1|0;e=0;f=p;l:{m:{while(1){q=0;n:{while(1){o:{if((g|0)>11){i=g;break o}if(d>>>0>=s>>>0){i=12;if(g){break o}break c}m=g+8|0;j=d+1|0;k=I[I[d|0]+t|0]<3){i=m;d=j;break o}i=12;if(j>>>0>=s>>>0){d=j;break o}i=g+16|0;k=I[I[d+1|0]+t|0]<>>g|0;g=i-g|0;o=1;i=f;p:{q:{switch(I[j|0]-7|0){case 0:j=H[j+4>>2];v=j+q|0;H[f>>2]=v;i=f+4|0;q=0;e=e+j|0;if((l|0)>(e|0)){break p}o=0;break l;case 5:break m;case 2:case 4:break q;default:break n}}i=H[j+4>>2];q=i+q|0;e=e+i|0;continue}break}while(1){r:{if((g|0)>12){j=g;break r}if(d>>>0>=s>>>0){j=13;if(g){break r}f=i;break c}r=g+8|0;m=d+1|0;k=I[I[d|0]+t|0]<4){j=r;d=m;break r}j=13;if(m>>>0>=s>>>0){d=m;break r}j=g+16|0;k=I[I[d+1|0]+t|0]<>>g|0;g=j-g|0;j=I[m|0];if(j-10>>>0<2){j=H[m+4>>2];q=j+q|0;e=e+j|0;continue}break}s:{t:{switch(j-8|0){case 0:j=H[m+4>>2];m=j+q|0;H[f+4>>2]=m;i=f+8|0;e=e+j|0;if((l|0)>(e|0)){break s}o=0;break l;case 4:break m;default:break t}}f=H[a+12>>2]&1024;j=H[(f?504:480)+a>>2];m=H[a+628>>2];r=H[a>>2];o=H[n+108>>2];H[h+80>>2]=e;H[h+76>>2]=j;H[h+72>>2]=f?288118:288139;H[h+68>>2]=o;H[h+64>>2]=r;Pb(m,294697,288035,h- -64|0);o=0;break m}f=m|v?i:f;continue}break}i=H[a+12>>2]&1024;j=H[(i?504:480)+a>>2];m=H[a+628>>2];r=H[a>>2];o=H[n+108>>2];H[h+48>>2]=e;H[h+44>>2]=j;H[h+40>>2]=i?288118:288139;H[h+36>>2]=o;H[h+32>>2]=r;Pb(m,294697,288035,h+32|0);o=0;i=f}if(!q){break l}H[i>>2]=q;i=i+4|0}u:{if((e|0)==(l|0)){break u}f=H[a+12>>2]&1024;j=H[(f?504:480)+a>>2];m=H[a+628>>2];r=H[a>>2];q=H[n+108>>2];H[h+24>>2]=l;H[h+20>>2]=e;H[h+16>>2]=j;H[h+12>>2]=f?288118:288139;H[h+8>>2]=q;H[h+4>>2]=e>>>0>>0?288626:288700;H[h>>2]=r;sc(m,294697,288332,h);f=(e|0)>(l|0);v:{if((e|0)<=(l|0)|i>>>0<=p>>>0){break v}while(1){i=i-4|0;e=e-H[i>>2]|0;f=(l|0)<(e|0);if((e|0)<=(l|0)){break v}if(i>>>0>p>>>0){continue}break}}if((e|0)<(l|0)){if(i-p&4){H[i>>2]=0;i=i+4|0}H[i>>2]=l-((e|0)>0?e:0);i=i+4|0;break u}if(!f){break u}H[i+4>>2]=0;H[i>>2]=l;i=i+8|0}zb[H[n+76>>2]](b,p,i,l);H[n+108>>2]=H[n+108>>2]+1;f=H[n+8>>2];b=f+b|0;c=c-f|0;if((c|0)>0){continue e}e=H[a+608>>2];f=H[a+604>>2];break d}else{k=k>>>8|0;g=e-8|0;continue}}}break}if(!l){f=p;break b}c=H[a+12>>2]&1024;f=H[(c?504:480)+a>>2];e=H[a+628>>2];i=H[a>>2];g=H[n+108>>2];H[h+184>>2]=l;H[h+180>>2]=0;H[h+176>>2]=f;H[h+172>>2]=c?288118:288139;H[h+168>>2]=g;H[h+164>>2]=288626;H[h+160>>2]=i;sc(e,294697,288332,h+160|0);H[p>>2]=l;if((l|0)>0){f=p+4|0;break b}H[p+4>>2]=0;f=p+8|0;break b}H[n+72>>2]=o;H[n+64>>2]=k;H[n+68>>2]=g;b=(f-d|0)+e|0;break a}c=H[a+12>>2]&1024;i=H[(c?504:480)+a>>2];g=H[a+628>>2];j=H[a>>2];m=H[n+108>>2];H[h+144>>2]=e;H[h+140>>2]=i;H[h+136>>2]=c?288118:288139;H[h+132>>2]=m;H[h+128>>2]=j;sc(g,294697,288256,h+128|0);if(q){H[f>>2]=q;f=f+4|0}o=0;if((e|0)==(l|0)){break b}c=H[a+12>>2]&1024;i=H[(c?504:480)+a>>2];g=H[a+628>>2];j=H[a>>2];m=H[n+108>>2];H[h+120>>2]=l;H[h+116>>2]=e;H[h+112>>2]=i;H[h+108>>2]=c?288118:288139;H[h+104>>2]=m;H[h+100>>2]=e>>>0>>0?288626:288700;H[h+96>>2]=j;sc(g,294697,288332,h+96|0);g=(e|0)>(l|0);w:{if((e|0)<=(l|0)|f>>>0<=p>>>0){break w}while(1){f=f-4|0;e=e-H[f>>2]|0;g=(l|0)<(e|0);if((e|0)<=(l|0)){break w}if(f>>>0>p>>>0){continue}break}}if((e|0)<(l|0)){if(f-p&4){H[f>>2]=0;f=f+4|0}H[f>>2]=l-((e|0)>0?e:0);f=f+4|0;break b}if(!g){break b}H[f+4>>2]=0;H[f>>2]=l;f=f+8|0}zb[H[n+76>>2]](b,p,f,l);H[n+72>>2]=o;H[n+64>>2]=k;H[n+68>>2]=0;u=-1;b=H[a+608>>2]+(H[a+604>>2]-d|0)|0}H[a+604>>2]=d;H[a+608>>2]=b;xb=h+192|0;return u|0}function pJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=(e|0)>0?e:0;a:{b:{c:{d:{e:{f:{g:{switch(b|0){case 0:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+437|0];break b;case 1:if(c>>>0>3){break e}b=4;if(!d|f>>>0<4){break c}e=0;h:{i:{j:{switch(c|0){case 0:a=a+440|0;break i;case 1:a=a+444|0;break i;case 2:a=a+448|0;break i;case 3:break j;default:break h}}a=a+452|0}e=H[a>>2]}H[d>>2]=e;break c;case 2:if(c>>>0>3){break e}b=4;if(!d|f>>>0<4){break c}e=0;k:{l:{m:{switch(c|0){case 0:a=a+464|0;break l;case 1:a=a+468|0;break l;case 2:a=a+472|0;break l;case 3:break m;default:break k}}a=a+476|0}e=H[a>>2]}H[d>>2]=e;break c;case 3:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+436|0];break b;case 4:a=H[a+364>>2];if(!a){break e}b=ac(a)+1|0;if(!d|f>>>0>>0){break f}Ob(d,a,b);break f;case 5:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+168>>2];break c;case 6:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+420>>2];break c;case 7:if(K[a+420>>2]<=c>>>0){break e}a=H[H[a+424>>2]+(c<<2)>>2];c=ac(a);b=c+1|0;if(!d|f>>>0>>0){break f}g=Ob(d,a,b)+c|0,h=0,F[g|0]=h;break f;case 8:if(K[a+420>>2]<=c>>>0){break e}e=H[H[a+432>>2]+(c<<2)>>2];b=e+1|0;if(!d|f>>>0>>0){break f}g=Ob(d,H[H[a+428>>2]+(c<<2)>>2],e)+e|0,h=0,F[g|0]=h;break f;case 9:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+368>>2];break c;case 10:if(H[a+368>>2]!=1|K[a+372>>2]<=c>>>0){break e}c=H[H[a+388>>2]+(c<<2)>>2];a=ac(c);b=a+1|0;if(!d|f>>>0>>0){break f}g=Ob(d,c,a)+a|0,h=0,F[g|0]=h;break f;case 11:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+404>>2];break c;case 12:b=H[a+416>>2];n:{if(b){b=Me(c,b);if(!b){break e}c=H[b>>2];break n}if(K[a+404>>2]<=c>>>0){break e}}e=H[a+408>>2];if(!e){break e}a=H[H[a+412>>2]+(c<<2)>>2];b=a+1|0;if(!d|f>>>0>>0){break f}g=Ob(d,H[e+(c<<2)>>2],a)+a|0,h=0,F[g|0]=h;break f;case 13:b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[a+288>>1];break a;case 14:b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[a+290>>1];break a;case 15:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+176|0];break b;case 16:if(I[a+176|0]<=c>>>0){break e}b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[((c<<1)+a|0)+180>>1];break a;case 24:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+276>>2];break c;case 17:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+284>>2];break c;case 25:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+280>>2];break c;case 18:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+177|0];break b;case 19:if(I[a+177|0]<=c>>>0){break e}b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[((c<<1)+a|0)+208>>1];break a;case 20:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+178|0];break b;case 21:if(I[a+178|0]<=c>>>0){break e}b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[((c<<1)+a|0)+228>>1];break a;case 22:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+179|0];break b;case 23:if(I[a+179|0]<=c>>>0){break e}b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[((c<<1)+a|0)+256>>1];break a;case 26:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+292|0];break b;case 27:if(I[a+292|0]<=c>>>0){break e}b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[((c<<1)+a|0)+296>>1];break a;case 28:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+293|0];break b;case 29:if(I[a+293|0]<=c>>>0){break e}b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[((c<<1)+a|0)+322>>1];break a;case 31:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+295|0];break b;case 30:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+294|0];break b;case 32:if(c>>>0>1){break e}b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[((c<<1)+a|0)+360>>1];break a;case 33:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+172>>2];break c;case 34:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+356>>2];break c;case 35:b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+352>>2];break c;case 41:b=1;if(!d|(e|0)<=0){break c}F[d|0]=I[a+156|0];break b;case 42:b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[a+158>>1];break a;case 43:b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[a+160>>1];break a;case 44:b=2;if(!d|f>>>0<2){break c}G[d>>1]=J[a+164>>1];break a;case 36:a=H[a+132>>2];if(!a){break e}b=ac(a)+1|0;if(!d|f>>>0>>0){break f}Ob(d,a,b);break f;case 37:a=H[a+136>>2];if(!a){break e}b=ac(a)+1|0;if(!d|f>>>0>>0){break f}Ob(d,a,b);break f;case 38:a=H[a+140>>2];if(!a){break e}b=ac(a)+1|0;if(!d|f>>>0>>0){break f}Ob(d,a,b);break f;case 39:a=H[a+144>>2];if(!a){break e}b=ac(a)+1|0;if(!d|f>>>0>>0){break f}Ob(d,a,b);break f;case 45:break d;case 40:break g;default:break e}}a=H[a+148>>2];if(!a){break e}b=ac(a)+1|0;if(!d|f>>>0>>0){break f}Ob(d,a,b)}if(b){break c}}return-1}b=4;if(!d|f>>>0<4){break c}H[d>>2]=H[a+152>>2]}return b|0}return 1}return 2}function ld(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,R=0;k=xb-96|0;xb=k;t=h;u=i&65535;m=(e^i)&-2147483648;l=e&65535;p=l;z=l;J=i>>>16&32767;K=e>>>16&32767;a:{b:{if(J-32767>>>0>4294934529&K-32767>>>0>=4294934530){break b}l=e&2147483647;j=d;if(!(!d&(l|0)==2147418112?!(b|c):l>>>0<2147418112)){o=d;m=e|32768;break a}e=i&2147483647;if(!(!h&(e|0)==2147418112?!(f|g):e>>>0<2147418112)){o=h;m=i|32768;b=f;c=g;break a}if(!(b|j|(l^2147418112|c))){if(!(f|h|(e|g))){m=2147450880;b=0;c=0;break a}m=m|2147418112;b=0;c=0;break a}if(!(f|h|(e^2147418112|g))){d=b|j;e=c|l;b=0;c=0;if(!(d|e)){m=2147450880;break a}m=m|2147418112;break a}if(!(b|j|(c|l))){b=0;c=0;break a}if(!(f|h|(e|g))){b=0;c=0;break a}if((l|0)==65535|l>>>0<65535){j=b;h=!(d|p);i=h<<6;l=Q(h?b:d)+32|0;b=Q(h?c:p);b=i+((b|0)==32?l:b)|0;He(k+80|0,j,c,d,p,b-15|0);s=16-b|0;d=H[k+88>>2];z=H[k+92>>2];c=H[k+84>>2];b=H[k+80>>2]}if(e>>>0>65535){break b}e=!(t|u);h=e<<6;i=Q(e?f:t)+32|0;e=Q(e?g:u);e=h+((e|0)==32?i:e)|0;He(k- -64|0,f,g,t,u,e-15|0);s=(s-e|0)+16|0;t=H[k+72>>2];u=H[k+76>>2];f=H[k+64>>2];g=H[k+68>>2]}e=f;j=g<<15|e>>>17;h=e<<15;e=j;p=h&-32768;q=c;A=gma(p,0,c,0);c=yb;w=c;B=e;i=0;j=gma(e,0,b,i);e=j+A|0;h=yb+c|0;h=e>>>0>>0?h+1|0:h;c=e;j=e;n=gma(b,i,p,i);l=0+n|0;e=yb+e|0;e=l>>>0>>0?e+1|0:e;x=l;n=l;l=e;C=(j|0)==(e|0)&r>>>0>n>>>0|e>>>0>>0;r=d;L=gma(p,i,d,0);F=yb;e=gma(q,i,B,i);d=e+L|0;j=yb+F|0;n=d;d=d>>>0>>0?j+1|0:j;e=t;j=u<<15|e>>>17;y=e<<15|g>>>17;g=j;j=gma(y,0,b,i);e=j+n|0;f=yb+d|0;G=e;f=e>>>0>>0?f+1|0:f;u=f;e=f;f=(h|0)==(w|0)&c>>>0>>0|h>>>0>>0;c=h+G|0;f=e+f|0;A=c;f=c>>>0>>0?f+1|0:f;t=f;c=f;D=z|65536;z=v;M=gma(p,i,D,v);I=yb;h=gma(r,o,B,i);f=h+M|0;e=yb+I|0;N=f;e=f>>>0>>0?e+1|0:e;v=e;E=g|-2147483648;w=0;g=gma(E,w,b,i);b=g+f|0;f=yb+e|0;f=b>>>0>>0?f+1|0:f;O=b;e=gma(y,o,q,i);b=b+e|0;p=f;j=f+yb|0;P=b;g=b>>>0>>0?j+1|0:j;f=0;b=f+A|0;e=c+P|0;e=b>>>0>>0?e+1|0:e;R=b;c=b;b=b+C|0;C=e;f=b>>>0>>0?e+1|0:e;c=f;s=((K+J|0)+s|0)-16383|0;j=gma(E,w,q,i);h=yb;i=gma(D,z,B,i);e=i+j|0;f=yb+h|0;f=e>>>0>>0?f+1|0:f;i=(f|0)==(h|0)&e>>>0>>0|f>>>0>>0;h=e;q=i;i=gma(y,o,r,o);e=i+e|0;j=yb+f|0;j=e>>>0>>0?j+1|0:j;i=(f|0)==(j|0)&e>>>0>>0|f>>>0>j>>>0;f=q+i|0;h=0;h=f>>>0>>0?1:h;q=gma(E,w,D,z);i=q+f|0;f=yb+h|0;f=i>>>0>>0?f+1|0:f;q=e;h=j;B=i;e=(d|0)==(u|0)&n>>>0>G>>>0|d>>>0>u>>>0;d=e+((d|0)==(F|0)&n>>>0>>0|d>>>0>>0)|0;j=0;j=d>>>0>>0?1:j;i=d;d=q+d|0;e=h+j|0;e=d>>>0>>0?e+1|0:e;n=d;i=e;e=(e|0)==(h|0)&d>>>0>>0|e>>>0>>0;d=B+e|0;h=d>>>0>>0?f+1|0:f;q=d;j=gma(y,o,D,z);e=yb;r=gma(E,w,r,o);d=r+j|0;f=yb+e|0;f=d>>>0>>0?f+1|0:f;r=d;d=f;f=(e|0)==(f|0)&j>>>0>r>>>0|e>>>0>f>>>0;y=d+q|0;e=f+h|0;e=d>>>0>y>>>0?e+1|0:e;h=0;d=h+n|0;f=i+r|0;f=d>>>0>>0?f+1|0:f;h=f;j=(i|0)==(f|0)&d>>>0>>0|f>>>0>>0;i=j+y|0;n=i;i=i>>>0>>0?e+1|0:e;r=d;e=d;d=h;j=(p|0)==(v|0)&N>>>0>O>>>0|p>>>0>>0;f=j+((v|0)==(I|0)&N>>>0>>0|v>>>0>>0)|0;h=0;j=f+((g|0)==(p|0)&O>>>0>P>>>0|g>>>0

>>0)|0;f=g+e|0;e=d+j|0;e=f>>>0>>0?e+1|0:e;g=f;h=(d|0)==(e|0)&f>>>0>>0|d>>>0>e>>>0;d=h+n|0;f=i;f=d>>>0>>0?f+1|0:f;h=e;n=d;i=(t|0)==(C|0)&A>>>0>R>>>0|t>>>0>C>>>0;d=i+((t|0)==(u|0)&A>>>0>>0|t>>>0>>0)|0;j=0;j=d>>>0>>0?1:j;i=d;d=d+g|0;e=e+j|0;e=d>>>0>>0?e+1|0:e;h=(e|0)==(h|0)&d>>>0>>0|e>>>0>>0;g=n+h|0;f=g>>>0>>0?f+1|0:f;h=g;i=f;c:{if(f&65536){s=s+1|0;break c}v=l>>>31|0;f=i<<1|h>>>31;h=g<<1|e>>>31;i=f;f=e<<1|d>>>31;d=d<<1|c>>>31;e=f;g=x;f=l<<1|g>>>31;x=g<<1;l=f;f=c<<1|b>>>31;b=b<<1|v;c=f}if((s|0)>=32767){m=m|2147418112;b=0;c=0;break a}d:{if((s|0)<=0){f=1-s|0;if(f>>>0>=128){b=0;c=0;break a}g=s+127|0;He(k+48|0,x,l,b,c,g);He(k+32|0,d,e,h,i,g);li(k+16|0,x,l,b,c,f);li(k,d,e,h,i,f);x=H[k+32>>2]|H[k+16>>2]|(H[k+48>>2]|H[k+56>>2]|(H[k+52>>2]|H[k+60>>2]))!=0;l=H[k+36>>2]|H[k+20>>2];b=H[k+40>>2]|H[k+24>>2];c=H[k+44>>2]|H[k+28>>2];d=H[k>>2];e=H[k+4>>2];f=H[k+8>>2];g=H[k+12>>2];break d}f=h;g=i&65535|s<<16}o=f|o;m=g|m;if(!(!b&(c|0)==-2147483648?!(l|x):(c|0)>0|(c|0)>=0)){b=d+1|0;j=b?e:e+1|0;c=j;f=(e|0)==(j|0)&b>>>0>>0|e>>>0>j>>>0;d=f+o|0;e=m;o=d;m=d>>>0>>0?e+1|0:e;break a}if(b|x|(c^-2147483648|l)){b=d;c=e;break a}j=m;c=d&1;b=c+d|0;f=b>>>0>>0?e+1|0:e;c=f;e=(e|0)==(f|0)&b>>>0>>0|e>>>0>f>>>0;d=e+o|0;o=d;m=d>>>0>>0?j+1|0:j}H[a>>2]=b;H[a+4>>2]=c;H[a+8>>2]=o;H[a+12>>2]=m;xb=k+96|0}function Iaa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=xb-16|0;xb=j;c=h<<2;p=c+N(e,3)|0;o=e<<2;d=(o+b|0)+c|0;h=(d+o|0)+c|0;o=(h+o|0)+c|0;q=(N(g,18)|0)/4|0;a:{if((e|f)&3){if(!f|!e){break a}while(1){g=e;b:{while(1){k=d;l=h;m=o;n=b;c=i;b=I[c+17|0];d=I[c+16|0];c:{switch(g-1|0){default:d:{switch(f-1|0){default:qc(H[a+68>>2],I[c+15|0],d,b,j+12|0,j+8|0,j+4|0);H[m+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 2:qc(H[a+68>>2],I[c+11|0],d,b,j+12|0,j+8|0,j+4|0);H[l+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 1:qc(H[a+68>>2],I[c+7|0],d,b,j+12|0,j+8|0,j+4|0);H[k+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;break;case 0:break d}}qc(H[a+68>>2],I[c+3|0],d,b,j+12|0,j+8|0,j+4|0);H[n+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 2:e:{switch(f-1|0){default:qc(H[a+68>>2],I[c+14|0],d,b,j+12|0,j+8|0,j+4|0);H[m+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 2:qc(H[a+68>>2],I[c+10|0],d,b,j+12|0,j+8|0,j+4|0);H[l+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 1:qc(H[a+68>>2],I[c+6|0],d,b,j+12|0,j+8|0,j+4|0);H[k+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;break;case 0:break e}}qc(H[a+68>>2],I[c+2|0],d,b,j+12|0,j+8|0,j+4|0);H[n+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 1:f:{switch(f-1|0){default:qc(H[a+68>>2],I[c+13|0],d,b,j+12|0,j+8|0,j+4|0);H[m+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 2:qc(H[a+68>>2],I[c+9|0],d,b,j+12|0,j+8|0,j+4|0);H[l+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 1:qc(H[a+68>>2],I[c+5|0],d,b,j+12|0,j+8|0,j+4|0);H[k+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;break;case 0:break f}}qc(H[a+68>>2],I[c+1|0],d,b,j+12|0,j+8|0,j+4|0);H[n+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;break;case 0:break c}}g:{switch(f-1|0){default:qc(H[a+68>>2],I[c+12|0],d,b,j+12|0,j+8|0,j+4|0);H[m>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 2:qc(H[a+68>>2],I[c+8|0],d,b,j+12|0,j+8|0,j+4|0);H[l>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 1:qc(H[a+68>>2],I[c+4|0],d,b,j+12|0,j+8|0,j+4|0);H[k>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;break;case 0:break g}}qc(H[a+68>>2],I[c|0],d,b,j+12|0,j+8|0,j+4|0);H[n>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;if(g>>>0<4){break b}i=c+18|0;o=m+16|0;h=l+16|0;d=k+16|0;b=n+16|0;g=g-4|0;if(g){continue}break}g=4}if(f>>>0<5){break a}g=g<<2;b=p<<2;o=g+(b+m|0)|0;h=g+(b+l|0)|0;d=g+(b+k|0)|0;b=g+(b+n|0)|0;f=f-4|0;i=(c+q|0)+18|0;continue}}if(f>>>0<4){break a}c=e>>>2|0;while(1){g=c;while(1){e=I[i+16|0];k=I[i+17|0];l=j+12|0;m=j+8|0;n=j+4|0;qc(H[a+68>>2],I[i|0],e,k,l,m,n);H[b>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+1|0],e,k,l,m,n);H[b+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+2|0],e,k,l,m,n);H[b+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+3|0],e,k,l,m,n);H[b+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+4|0],e,k,l,m,n);H[d>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+5|0],e,k,l,m,n);H[d+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+6|0],e,k,l,m,n);H[d+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+7|0],e,k,l,m,n);H[d+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+8|0],e,k,l,m,n);H[h>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+9|0],e,k,l,m,n);H[h+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+10|0],e,k,l,m,n);H[h+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+11|0],e,k,l,m,n);H[h+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+12|0],e,k,l,m,n);H[o>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+13|0],e,k,l,m,n);H[o+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+14|0],e,k,l,m,n);H[o+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+15|0],e,k,l,m,n);H[o+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;i=i+18|0;o=o+16|0;h=h+16|0;d=d+16|0;b=b+16|0;g=g-1|0;if(g){continue}break}i=i+q|0;e=p<<2;o=e+o|0;h=e+h|0;d=d+e|0;b=b+e|0;f=f-4|0;if(f>>>0>3){continue}break}}xb=j+16|0}function Zh(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;n=xb-16|0;xb=n;e=H[a+40>>2];a:{if(H[a+20>>2]|!e){break a}H[a+40>>2]=H[e+32>>2];o=H[a+4>>2];H[e+32>>2]=0;H[e+4>>2]=o;h=H[e>>2];H[a+4>>2]=h;if((h|0)==(o|0)){break a}f=h;b:{if(b){f=0;m=a+56|0;d=0;c:{if(!H[m+32>>2]){break c}j=H[e+4>>2];l=H[e>>2];d:{if((j|0)==(l|0)){break d}d=j-l|0;i=d&3;if(j+(l^-1)>>>0>=3){d=d&-4;j=0;while(1){k=N(F[l+(c|3)|0],-1640531535)+N(N(F[l+(c|2)|0],-1640531535)+N(N(F[l+(c|1)|0],-1640531535)+N(N(F[c+l|0],-1640531535)+N(k,31)|0,31)|0,31)|0,31)|0;c=c+4|0;j=j+4|0;if((d|0)!=(j|0)){continue}break}}if(!i){break d}while(1){k=N(F[c+l|0],-1640531535)+N(k,31)|0;c=c+1|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}d=H[e+12>>2]<<4;e:{if(!d){c=0;break e}g=H[e+16>>2];c=0;while(1){c=N(F[g+(f|3)|0],-1640531535)+N(N(F[g+(f|2)|0],-1640531535)+N(N(F[g+(f|1)|0],-1640531535)+N(N(F[f+g|0],-1640531535)+N(c,31)|0,31)|0,31)|0,31)|0;f=f+4|0;if((d|0)!=(f|0)){continue}break}}d=Ns(m,e,c^k);c=0;d=H[m+32>>2]+N(d,12)|0;k=H[d>>2];f:{if(!k){break f}d=H[d+4>>2];if(!d){break f}j=H[k+4>>2];m=H[k>>2];g=j-m|0;i=H[e>>2];if((g|0)!=(H[e+4>>2]-i|0)){break f}f=H[k+12>>2];if((f|0)!=H[e+12>>2]){break f}if((j|0)!=(m|0)){if(md(m,i,g)){break f}}i=f<<4;g:{if(!i){break g}j=H[k+16>>2];g=H[e+16>>2];if(I[j|0]!=I[g|0]){break f}f=0;while(1){f=f+1|0;if((i|0)==(f|0)){break g}if(I[f+j|0]==I[f+g|0]){continue}break}if(f>>>0>>0){break f}}c=d}d=c}if(d){break b}f=H[e>>2]}d=o-h|0;c=H[a+8>>2]-d|0;H[a+8>>2]=c;$c(c,f,d);c=H[a+8>>2];H[e>>2]=c;H[e+4>>2]=c+d;h:{i:{j:{d=H[a+44>>2];if((d|0)>=0){c=H[a+48>>2];h=c+1|0;h=(h|0)>0?h:0;if(h>>>0<=d>>>0){break i}c=d;while(1){c=((c>>>1|0)+c|0)+8|0;if(h>>>0>=c>>>0){continue}break}if(!(c>>>0>>0|c>>>0>1073741822)){d=tc(H[a+52>>2],c<<2);if(d){break j}}H[a+44>>2]=-1}H[196248]=H[40908];break h}H[a+44>>2]=c;H[a+52>>2]=d;c=H[a+48>>2]}if(c>>>0>>0){Nb(H[a+52>>2]+(c<<2)|0,0,h-c<<2)}H[a+48>>2]=h;c=H[a+52>>2];H[196248]=H[40908];c=(c+(h<<2)|0)-4|0;if((c|0)==784992){break h}H[c>>2]=e}k:{c=H[a+20>>2];l:{if(!(c|H[a+44>>2]>=0)){H[a+20>>2]=1;break l}if(!c){break k}}H[e+12>>2]=0;Kb(H[e+16>>2]);H[e+24>>2]=0;H[e+16>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;Kb(H[e+28>>2]);H[e+28>>2]=0;H[e+20>>2]=0;H[e+24>>2]=0;d=0;break a}H[n+12>>2]=H[a+48>>2]-1;d=0;if(b){b=0;j=H[e+4>>2];i=H[e>>2];m:{if((j|0)==(i|0)){break m}h=j-i|0;g=h&3;f=0;c=0;if(j+(i^-1)>>>0>=3){h=h&-4;k=0;while(1){b=N(F[i+(c|3)|0],-1640531535)+N(N(F[i+(c|2)|0],-1640531535)+N(N(F[i+(c|1)|0],-1640531535)+N(N(F[c+i|0],-1640531535)+N(b,31)|0,31)|0,31)|0,31)|0;c=c+4|0;k=k+4|0;if((h|0)!=(k|0)){continue}break}}if(!g){break m}while(1){b=N(F[c+i|0],-1640531535)+N(b,31)|0;c=c+1|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}}f=a+56|0;h=H[e+12>>2]<<4;n:{if(!h){c=0;break n}g=H[e+16>>2];c=0;while(1){c=N(F[g+(d|3)|0],-1640531535)+N(N(F[g+(d|2)|0],-1640531535)+N(N(F[g+(d|1)|0],-1640531535)+N(N(F[d+g|0],-1640531535)+N(c,31)|0,31)|0,31)|0,31)|0;d=d+4|0;if((h|0)!=(d|0)){continue}break}}Un(f,e,b^c,n+12|0);d=H[a+20>>2]!=0}if(!(d|I[a+68|0])){H[a+20>>2]=1}d=H[n+12>>2];break a}o:{if(K[a+48>>2]<=d>>>0){H[196248]=H[40908];a=784992;break o}a=H[a+52>>2]+(d<<2)|0}p:{f=H[e+24>>2];if(!f){break p}i=H[e+28>>2];j=i+(f<<4)|0;g=H[a>>2];b=H[g+20>>2];if((b|0)<0){g=H[40910];h=H[40911];c=H[40908];b=H[40909];while(1){H[196250]=g;H[196251]=h;H[196248]=c;H[196249]=b;a=!!f;f=f-a|0;i=(a<<4)+i|0;if((j|0)!=(i|0)){continue}break}break p}while(1){q:{r:{s:{if((b|0)>=0){a=b;h=H[g+24>>2];c=h+1|0;c=(c|0)>0?c:0;if(a>>>0>=c>>>0){break r}while(1){a=((a>>>1|0)+a|0)+8|0;if(c>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>268435454)){b=tc(H[g+28>>2],a<<4);if(b){break s}}H[g+20>>2]=-1}a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;break q}H[g+20>>2]=a;H[g+28>>2]=b;h=H[g+24>>2]}if(c>>>0>h>>>0){Nb(H[g+28>>2]+(h<<4)|0,0,c-h<<4)}H[g+24>>2]=c;b=H[g+28>>2];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;c=(b+(c<<4)|0)-16|0;if((c|0)==784992){break q}b=f?i:163632;a=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=a;a=H[b+12>>2];H[c+8>>2]=H[b+8>>2];H[c+12>>2]=a}a=!!f;i=(a<<4)+i|0;if((j|0)==(i|0)){break p}f=f-a|0;b=H[g+20>>2];continue}}H[e+12>>2]=0;Kb(H[e+16>>2]);H[e+24>>2]=0;H[e+16>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;Kb(H[e+28>>2]);H[e+28>>2]=0;H[e+20>>2]=0;H[e+24>>2]=0}xb=n+16|0;return d|0}function Wn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=xb-48|0;xb=c;H[a+44>>2]=0;H[a>>2]=0;H[a+4>>2]=0;F[c+24|0]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;F[c+40|0]=0;H[c+36>>2]=65536;H[c>>2]=0;H[c+4>>2]=0;H[c+28>>2]=0;H[c+32>>2]=0;e=H[b+32>>2];if((e|0)==-1){e=De(b)}F[c+40|0]=1;H[c+36>>2]=e;d=H[b+12>>2];a:{if(d){b=zb[d|0](b,1668112752,H[b+16>>2])|0;if(b){break a}}b=163632}if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}e=b;H[c+32>>2]=b;b:{c:{d:{e:{f:{while(1){F[c+24|0]=f;g=H[e+12>>2];H[c+4>>2]=g;h=H[e+16>>2];H[c+8>>2]=h+g;H[c+28>>2]=0;if(h>>>0<=67108862){h=h<<6;h=h>>>0>16384?h:16384;d=h>>>0<1073741823?h:1073741823}else{d=1073741823}H[c+12>>2]=d;H[c+20>>2]=0;H[c>>2]=0;if(!g){Wb(e);H[c+32>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;break b}d=Ls(g,c);h=H[c+28>>2];g:{if(d){if(!h){break g}H[c+28>>2]=0;h=Ls(g,c);d=H[c+28>>2];Wb(H[c+32>>2]);H[c+32>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;if(!h){break c}if(!d){break f}break c}if(I[c+24|0]|!h){break e}d=ve(b);H[c+4>>2]=d;H[c+8>>2]=d+H[b+16>>2];e=H[c+32>>2];f=1;if(d){continue}break d}break}Wb(H[c+32>>2]);H[c+32>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}break b}e=H[c+32>>2]}Wb(e);H[c+32>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0}Wb(b);b=163632}H[a+44>>2]=b;h=163632;b=b?b:163632;i=K[b+16>>2]<4?163632:H[b+12>>2];if(c){F[c|0]=0}j=163632;k=I[i+2|0]|I[i+3|0]<<8;h:{if(!k){break h}b=((k<<8|k>>>8)&65535)-1|0;while(1){i:{j:{f=b+l>>>1|0;g=i+(f<<3)|0;e=I[g+4|0]|I[g+5|0]<<8;d=(e<<8|e>>>8)&65535;k:{if(!(d>>>0>3|(e|0)!=768)){if(I[g+6|0]|I[g+7|0]<<8){break k}j=(i+(f<<3)|0)+4|0;break h}if(d>>>0<4){break j}}b=f-1|0;break i}l=f+1|0}if((b|0)>=(l|0)){continue}break}}b=I[j+4|0]|I[j+5|0]<<8|(I[j+6|0]<<16|I[j+7|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);l:{if(b){b=b+i|0;if(!c){break l}F[c|0]=1;break l}f=163632;m:{if(!k){break m}j=((k<<8|k>>>8)&65535)-1|0;l=0;while(1){n:{o:{p:{g=j+l>>>1|0;e=i+(g<<3)|0;d=I[e+4|0]|I[e+5|0]<<8;b=(d<<8|d>>>8)&65535;q:{if(!(b>>>0>3|(d|0)!=768)){b=I[e+6|0]|I[e+7|0]<<8;if(((b<<8|b>>>8)&65535)>>>0>10){break q}if((b|0)==2560){break p}break o}if(b>>>0<4){break o}}j=g-1|0;break n}f=(i+(g<<3)|0)+4|0;break m}l=g+1|0}if((j|0)>=(l|0)){continue}break}}r:{b=I[f+4|0]|I[f+5|0]<<8|(I[f+6|0]<<16|I[f+7|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(f){break r}f=163632;s:{if(!k){break s}b=((k<<8|k>>>8)&65535)-1|0;j=0;while(1){t:{u:{v:{e=b+j>>>1|0;d=i+(e<<3)|0;if(!(I[d+4|0]|I[d+5|0]<<8)){d=I[d+6|0]|I[d+7|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<7){break v}}b=e-1|0;break u}if((d|0)==1536){break t}j=e+1|0}if((b|0)>=(j|0)){continue}break s}break}f=(i+(e<<3)|0)+4|0}b=I[f+4|0]|I[f+5|0]<<8|(I[f+6|0]<<16|I[f+7|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(f){break r}f=163632;w:{if(!k){break w}b=((k<<8|k>>>8)&65535)-1|0;j=0;while(1){x:{y:{z:{e=b+j>>>1|0;d=i+(e<<3)|0;if(!(I[d+4|0]|I[d+5|0]<<8)){d=I[d+6|0]|I[d+7|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<5){break z}}b=e-1|0;break y}if((d|0)==1024){break x}j=e+1|0}if((b|0)>=(j|0)){continue}break w}break}f=(i+(e<<3)|0)+4|0}b=I[f+4|0]|I[f+5|0]<<8|(I[f+6|0]<<16|I[f+7|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(f){break r}b=Xj(i,3,1);if(b){break l}b=Xj(i,0,3);if(b){break l}b=Xj(i,0,2);if(b){break l}b=Xj(i,0,1);if(b){break l}b=Xj(i,0,0);b=b?b:163632;break l}b=f+i|0}H[a+4>>2]=163632;d=b;H[a>>2]=b;b=H[a+44>>2];b=b?b:163632;l=K[b+16>>2]<4?163632:H[b+12>>2];b=I[l+2|0]|I[l+3|0]<<8;A:{if(!b){break A}b=((b<<8|b>>>8)&65535)-1|0;e=0;while(1){B:{C:{D:{f=b+e>>>1|0;g=l+(f<<3)|0;if(!(I[g+4|0]|I[g+5|0]<<8)){g=I[g+6|0]|I[g+7|0]<<8;if(((g<<8|g>>>8)&65535)>>>0<6){break D}}b=f-1|0;break C}if((g|0)==1280){break B}e=f+1|0}if((b|0)>=(e|0)){continue}break A}break}h=(l+(f<<3)|0)+4|0}b=I[h+4|0]|I[h+5|0]<<8|(I[h+6|0]<<16|I[h+7|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);E:{if(!b){break E}b=b+l|0;if((I[b|0]|I[b+1|0]<<8)!=3584){break E}H[a+4>>2]=b}g=d?d:163632;H[a+12>>2]=g;F:{if(I[c|0]){e=600;break F}e=601;G:{H:{b=I[g|0]|I[g+1|0]<<8;switch(((b<<8|b>>>8)&65535)-4|0){case 0:break G;case 8:break H;default:break F}}e=602;break F}b=I[g+6|0]|I[g+7|0]<<8;H[a+16>>2]=g+14;d=((b<<8|b>>>8)&65534)>>>1|0;H[a+36>>2]=d;h=d<<1;b=(h+g|0)+16|0;H[a+20>>2]=b;b=b+h|0;H[a+24>>2]=b;b=b+h|0;H[a+28>>2]=b;H[a+32>>2]=b+h;b=I[g+2|0]|I[g+3|0]<<8;H[a+12>>2]=a+16;H[a+40>>2]=(((b<<8|b>>>8)&65535)-(d<<3)|0)-16>>>1;e=603}H[a+8>>2]=e;xb=c+48|0}function UR(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;h=xb-32|0;xb=h;H[h+24>>2]=b;H[e>>2]=0;j=h+8|0;i=H[d+28>>2];H[j>>2]=i;H[i+4>>2]=H[i+4>>2]+1;H[197455]=0;i=aa(3329,j|0)|0;j=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){j=H[h+8>>2];k=H[j+4>>2]-1|0;H[j+4>>2]=k;if((k|0)==-1){zb[H[H[j>>2]+8>>2]](j)}switch(g-65|0){case 54:break j;case 19:break k;case 18:break l;case 17:break m;case 49:break n;case 47:break o;case 45:case 51:break p;case 12:break q;case 44:break r;case 41:break s;case 8:break t;case 7:break u;case 5:break v;case 3:break w;case 35:case 36:break x;case 34:break y;case 1:case 33:case 39:break z;case 0:case 32:break A;case 2:case 4:case 6:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 37:case 38:case 40:case 42:case 43:case 46:case 48:case 50:case 52:case 53:break d;case 24:break f;case 56:break g;case 23:break h;case 55:break i;default:break e}}c=$()|0;_()|0;a=H[h+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}Kw(a,f+24|0,h+24|0,c,e,i);break b}Jw(a,f+16|0,h+24|0,c,e,i);break b}g=a;i=b;a=zb[H[H[a+8>>2]+12>>2]](a+8|0)|0;B:{if(I[a+11|0]>>>7|0){b=H[a>>2];break B}b=a}j=b;if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}l=h,m=Gg(g,i,c,d,e,f,j,b+a|0),H[l+24>>2]=m;break b}a=eg(h+24|0,c,e,i,2);b=H[e>>2];C:{if(!(a-1>>>0>30|b&4)){H[f+12>>2]=a;break C}H[e>>2]=b|4}break b}H[h+8>>2]=623865125;H[h+12>>2]=2032480100;l=h,m=Gg(a,b,c,d,e,f,h+8|0,h+16|0),H[l+24>>2]=m;break b}H[h+8>>2]=623728933;H[h+12>>2]=1680158061;l=h,m=Gg(a,b,c,d,e,f,h+8|0,h+16|0),H[l+24>>2]=m;break b}a=eg(h+24|0,c,e,i,2);b=H[e>>2];D:{if(!((a|0)>23|b&4)){H[f+8>>2]=a;break D}H[e>>2]=b|4}break b}a=eg(h+24|0,c,e,i,2);b=H[e>>2];E:{if(!(a-1>>>0>11|b&4)){H[f+8>>2]=a;break E}H[e>>2]=b|4}break b}a=eg(h+24|0,c,e,i,3);b=H[e>>2];F:{if(!((a|0)>365|b&4)){H[f+28>>2]=a;break F}H[e>>2]=b|4}break b}a=eg(h+24|0,c,e,i,2);b=H[e>>2];G:{if(!((a|0)>12|b&4)){H[f+16>>2]=a-1;break G}H[e>>2]=b|4}break b}a=eg(h+24|0,c,e,i,2);b=H[e>>2];H:{if(!((a|0)>59|b&4)){H[f+4>>2]=a;break H}H[e>>2]=b|4}break b}a=h+24|0;b=xb-16|0;xb=b;H[b+8>>2]=c;while(1){I:{if(!pk(a,b+8|0)){break I}c=rh(a);if((c|0)>=0){c=(J[H[i+8>>2]+((c&255)<<1)>>1]&8192)!=0}else{c=0}if(!c){break I}ki(a);continue}break}if(Ig(a,b+8|0)){H[e>>2]=H[e>>2]|2}xb=b+16|0;break b}g=h+24|0;b=zb[H[H[a+8>>2]+8>>2]](a+8|0)|0;J:{if(I[b+11|0]>>>7|0){a=H[b+4>>2];break J}a=I[b+11|0]}if(I[b+23|0]>>>7|0){d=H[b+16>>2]}else{d=I[b+23|0]}K:{if((a|0)==(0-d|0)){H[e>>2]=H[e>>2]|4;break K}c=am(g,c,b,b+24|0,i,e,0);a=H[f+8>>2];if(!((c|0)!=(b|0)|(a|0)!=12)){H[f+8>>2]=0;break K}if(!((c-b|0)!=12|(a|0)>11)){H[f+8>>2]=a+12}}break b}g=I[773124]|I[773125]<<8|(I[773126]<<16|I[773127]<<24);F[h+15|0]=g;F[h+16|0]=g>>>8;F[h+17|0]=g>>>16;F[h+18|0]=g>>>24;g=I[773121]|I[773122]<<8|(I[773123]<<16|I[773124]<<24);H[h+8>>2]=I[773117]|I[773118]<<8|(I[773119]<<16|I[773120]<<24);H[h+12>>2]=g;l=h,m=Gg(a,b,c,d,e,f,h+8|0,h+19|0),H[l+24>>2]=m;break b}F[h+12|0]=I[773132];H[h+8>>2]=I[773128]|I[773129]<<8|(I[773130]<<16|I[773131]<<24);l=h,m=Gg(a,b,c,d,e,f,h+8|0,h+13|0),H[l+24>>2]=m;break b}a=eg(h+24|0,c,e,i,2);b=H[e>>2];L:{if(!((a|0)>60|b&4)){H[f>>2]=a;break L}H[e>>2]=b|4}break b}H[h+8>>2]=624576549;H[h+12>>2]=1394948685;l=h,m=Gg(a,b,c,d,e,f,h+8|0,h+16|0),H[l+24>>2]=m;break b}a=eg(h+24|0,c,e,i,1);b=H[e>>2];M:{if(!((a|0)>6|b&4)){H[f+24>>2]=a;break M}H[e>>2]=b|4}break b}a=zb[H[H[a>>2]+20>>2]](a,b,c,d,e,f)|0;break a}g=a;i=b;a=zb[H[H[a+8>>2]+24>>2]](a+8|0)|0;N:{if(I[a+11|0]>>>7|0){b=H[a>>2];break N}b=a}j=b;if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}l=h,m=Gg(g,i,c,d,e,f,j,b+a|0),H[l+24>>2]=m;break b}Iw(f+20|0,h+24|0,c,e,i);break b}a=eg(h+24|0,c,e,i,4);if(!(I[e|0]&4)){H[f+20>>2]=a-1900}break b}if((g|0)==37){break c}}H[e>>2]=H[e>>2]|4;break b}a=xb-16|0;xb=a;H[a+8>>2]=c;b=6;c=h+24|0;O:{P:{if(Ig(c,a+8|0)){break P}b=4;if(((m=i,n=rh(c),o=0,l=H[H[i>>2]+36>>2],zb[l](m|0,n|0,o|0)|0)|0)!=37){break P}b=2;if(!Ig(ki(c),a+8|0)){break O}}H[e>>2]=H[e>>2]|b}xb=a+16|0}a=H[h+24>>2]}xb=h+32|0;return a|0}function IL(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;k=xb-16|0;xb=k;j=H[a+16>>2];d=I[j+6|0]|I[j+7|0]<<8|(I[j+8|0]<<16|I[j+9|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);a:{if(!d){c=0;break a}i=j+13|0;b:{while(1){e=d+g>>>1|0;f=i+N(e,11)|0;h=f-3|0;h=I[h+1|0]<<8|I[h|0]<<16|I[h+2|0];c:{if(h>>>0>c>>>0){d=e;break c}if(c>>>0<=h>>>0){break b}g=e+1|0}if(d>>>0>g>>>0){continue}break}c=0;break a}c=0;d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);e=I[f+4|0]|I[f+5|0]<<8|(I[f+6|0]<<16|I[f+7|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(!(d|e)){break a}d:{if(!d){c=H[a+28>>2];d=e+j|0;e=I[d+3|0];f=I[d+2|0];g=I[d+1|0];h=I[d|0];H[k+4>>2]=0;f=e|(g<<16|h<<24|f<<8);g=f+1|0;e:{if(g>>>0<=c>>>0){c=H[a+32>>2];break e}H[a+36>>2]=b;c=Ub(b,4,c,g,H[a+32>>2],k+4|0);H[a+32>>2]=c;if(H[k+4>>2]){break d}H[a+28>>2]=g}f:{if(!f){break f}a=e&1;e=d+4|0;d=0;if((f|0)!=1){b=f-a|0;g=0;while(1){h=d<<2;H[h+c>>2]=I[e+2|0]|(I[e+1|0]<<8|I[e|0]<<16);H[(h|4)+c>>2]=I[e+7|0]|(I[e+6|0]<<8|I[e+5|0]<<16);d=d+2|0;e=e+10|0;g=g+2|0;if((b|0)!=(g|0)){continue}break}}if(!a){break f}H[(d<<2)+c>>2]=I[e+2|0]|(I[e+1|0]<<8|I[e|0]<<16)}H[(f<<2)+c>>2]=0;break a}if(!e){c=Du(a,d+j|0,b);break a}c=e+j|0;q=I[c+3|0];h=q|(I[c+1|0]<<16|I[c|0]<<24|I[c+2|0]<<8);f=c+4|0;i=d+j|0;c=I[i+3|0];g:{h:{n=c|(I[i+1|0]<<16|I[i|0]<<24|I[i+2|0]<<8);i:{if(n){l=c&3;e=i+7|0;c=0;j:{if(n-1>>>0<3){g=0;d=e;break j}m=n-l|0;g=0;j=0;while(1){g=(I[e+12|0]+(I[e+8|0]+(I[e+4|0]+(I[e|0]+g|0)|0)|0)|0)+4|0;d=e+16|0;e=d;j=j+4|0;if((m|0)!=(j|0)){continue}break}}if(l){while(1){g=(I[d|0]+g|0)+1|0;d=d+4|0;c=c+1|0;if((l|0)!=(c|0)){continue}break}}if(!h){break i}if(g){break h}break g}if(h){break g}}c=Du(a,i,b);break a}c=H[a+28>>2];H[k+12>>2]=0;d=(g+h|0)+1|0;k:{if(d>>>0<=c>>>0){c=H[a+32>>2];break k}H[a+36>>2]=b;c=Ub(b,4,c,d,H[a+32>>2],k+12|0);H[a+32>>2]=c;if(H[k+12>>2]){break d}H[a+28>>2]=d}o=I[f+2|0]|(I[f+1|0]<<8|I[f|0]<<16);a=i+4|0;g=I[a+1|0]<<8|I[a|0]<<16|I[a+2|0];f=f+5|0;b=a+4|0;l=I[a+3|0];d=0;m=1;i=1;while(1){l:{if(g+l>>>0>>0){a=l+1|0;r=a&3;j=0;m:{if(l>>>0<3){e=0;break m}s=a&-4;e=0;a=0;while(1){p=(d<<2)+c|0;H[p>>2]=e+g;H[p+12>>2]=(e|3)+g;H[p+8>>2]=(e|2)+g;H[p+4>>2]=(e|1)+g;e=e+4|0;d=d+4|0;a=a+4|0;if((s|0)!=(a|0)){continue}break}}if(r){while(1){H[(d<<2)+c>>2]=e+g;e=e+1|0;d=d+1|0;j=j+1|0;if((r|0)!=(j|0)){continue}break}}m=m+1|0;if(n>>>0>>0){break l}g=I[b+2|0]|(I[b+1|0]<<8|I[b|0]<<16);l=I[b+3|0];b=b+4|0;continue}if(g>>>0>o>>>0){H[(d<<2)+c>>2]=o;d=d+1|0}i=i+1|0;if(h>>>0>>0){break l}o=I[f+2|0]|(I[f+1|0]<<8|I[f|0]<<16);f=f+5|0;continue}break}n:{if(h>>>0>=i>>>0){H[(d<<2)+c>>2]=o;a=d+1|0;if(h>>>0<=i>>>0){d=a;break n}b=i+1|0;if(q-i&1){H[(a<<2)+c>>2]=I[f+2|0]|(I[f+1|0]<<8|I[f|0]<<16);i=i+1|0;f=f+5|0;a=d+2|0}d=a;if((b|0)==(h|0)){break n}while(1){a=(d<<2)+c|0;H[a>>2]=I[f+2|0]|(I[f+1|0]<<8|I[f|0]<<16);H[a+4>>2]=I[f+7|0]|(I[f+6|0]<<8|I[f+5|0]<<16);d=d+2|0;f=f+10|0;i=i+2|0;if((h|0)!=(i|0)){continue}break}break n}if(m>>>0>n>>>0){break n}a=l+1|0;h=a&3;j=0;o:{if(l>>>0<3){e=0;break o}i=a&-4;e=0;a=0;while(1){f=(d<<2)+c|0;H[f>>2]=e+g;H[f+12>>2]=(e|3)+g;H[f+8>>2]=(e|2)+g;H[f+4>>2]=(e|1)+g;e=e+4|0;d=d+4|0;a=a+4|0;if((i|0)!=(a|0)){continue}break}}if(h){while(1){H[(d<<2)+c>>2]=e+g;e=e+1|0;d=d+1|0;j=j+1|0;if((h|0)!=(j|0)){continue}break}}if(m>>>0>=n>>>0){break n}while(1){f=I[b+2|0]|(I[b+1|0]<<8|I[b|0]<<16);a=I[b+3|0];e=a+1|0;h=e&3;j=0;p:{if(a>>>0<3){e=0;break p}i=e&508;e=0;a=0;while(1){g=(d<<2)+c|0;H[g>>2]=e+f;H[g+12>>2]=f+(e|3);H[g+8>>2]=f+(e|2);H[g+4>>2]=f+(e|1);e=e+4|0;d=d+4|0;a=a+4|0;if((i|0)!=(a|0)){continue}break}}if(h){while(1){H[(d<<2)+c>>2]=e+f;e=e+1|0;d=d+1|0;j=j+1|0;if((h|0)!=(j|0)){continue}break}}b=b+4|0;m=m+1|0;if((n|0)!=(m|0)){continue}break}}H[(d<<2)+c>>2]=0;break a}c=H[a+28>>2];H[k+8>>2]=0;d=h+1|0;q:{if(d>>>0<=c>>>0){c=H[a+32>>2];break q}H[a+36>>2]=b;c=Ub(b,4,c,d,H[a+32>>2],k+8|0);H[a+32>>2]=c;if(H[k+8>>2]){break d}H[a+28>>2]=d}a=q&1;e=0;if((h|0)!=1){b=h-a|0;d=0;while(1){g=e<<2;H[g+c>>2]=I[f+2|0]|(I[f+1|0]<<8|I[f|0]<<16);H[(g|4)+c>>2]=I[f+7|0]|(I[f+6|0]<<8|I[f+5|0]<<16);e=e+2|0;f=f+10|0;d=d+2|0;if((b|0)!=(d|0)){continue}break}}if(a){H[(e<<2)+c>>2]=I[f+2|0]|(I[f+1|0]<<8|I[f|0]<<16)}H[(h<<2)+c>>2]=0;break a}c=0}xb=k+16|0;return c|0}function kE(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,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;k=xb-32|0;xb=k;if(!(e-d>>>0<2|d>>>0>=e>>>0)){E=H[c+80>>2];while(1){p=N(d,20);a:{if(1<>1]&7168){t=d;break a}i=d+1|0;g=e>>>0>i>>>0?e:i;h=g-1|0;m=d;while(1){b:{t=m;m=m+1|0;if(m>>>0>=e>>>0){t=h;m=g;break b}if(1<>1]&7168){continue}}break}h=H[c+68>>2];u=h>>>0>>0?h:m;r=u-d|0;c:{if(r>>>0<=1){q=H[c+80>>2];break c}o=H[c+144>>2]|32;H[c+144>>2]=o;q=H[c+80>>2];if(d>>>0>=u>>>0){break c}l=-1;h=d;y=u+(d^-1)|0;if(y>>>0>=3){C=r&-4;x=0;while(1){v=N(h,20)+q|0;g=H[v+8>>2];j=g>>>0>l>>>0?l:g;g=H[v+28>>2];j=g>>>0>j>>>0?j:g;g=H[v+48>>2];j=g>>>0>j>>>0?j:g;g=H[v+68>>2];l=g>>>0>j>>>0?j:g;h=h+4|0;x=x+4|0;if((C|0)!=(x|0)){continue}break}}s=0;j=r&3;if(j){while(1){g=H[(N(h,20)+q|0)+8>>2];l=g>>>0>l>>>0?l:g;h=h+1|0;s=s+1|0;if((j|0)!=(s|0)){continue}break}}h=d;if(r&1){h=q+p|0;if(H[h+8>>2]!=(l|0)){H[c+144>>2]=o;H[h+4>>2]=H[h+4>>2]|3}h=d+1|0}if(!y){break c}while(1){g=N(h,20)+q|0;if(H[g+8>>2]!=(l|0)){o=o|32;H[c+144>>2]=o;H[g+4>>2]=H[g+4>>2]|3}g=N(h+1|0,20)+q|0;if(H[g+8>>2]!=(l|0)){o=o|32;H[c+144>>2]=o;H[g+4>>2]=H[g+4>>2]|3}h=h+2|0;if((u|0)!=(h|0)){continue}break}}h=H[q+p>>2];H[k+8>>2]=0;H[k+12>>2]=0;H[k>>2]=0;H[k+4>>2]=0;g=h;h=H[b+80>>2];if(!(zb[H[h+208>>2]](b,H[b+84>>2],g,k,H[h- -64>>2])|0)){if(i>>>0>=m>>>0){break a}m=H[c+80>>2];if(!f){if(t-d&1){h=N(i,20);if((J[(h+m|0)+16>>1]&31)==12){h=h+H[c+88>>2]|0;H[h>>2]=0;H[h+4>>2]=0}i=d+2|0}if((d+1|0)==(t|0)){break a}while(1){d=N(i,20);if((J[(d+m|0)+16>>1]&31)==12){d=d+H[c+88>>2]|0;H[d>>2]=0;H[d+4>>2]=0}h=i+1|0;d=N(h,20);if((J[(d+m|0)+16>>1]&31)==12){d=d+H[c+88>>2]|0;H[d>>2]=0;H[d+4>>2]=0}i=i+2|0;if((h|0)!=(t|0)){continue}break}break a}while(1){d=N(i,20);if((J[(d+m|0)+16>>1]&31)==12){g=d+H[c+88>>2]|0;h=H[g+4>>2];H[g+4>>2]=0;d=H[g>>2];H[g>>2]=0;H[g+8>>2]=H[g+8>>2]-d;H[g+12>>2]=H[g+12>>2]-h}d=(i|0)==(t|0);i=i+1|0;if(!d){continue}break}break a}d=H[(p+H[c+88>>2]|0)+12>>2];q=0;H[k>>2]=0;H[k+4>>2]=d+H[k+4>>2];d=H[b+80>>2];g=zb[H[d+176>>2]](b,H[b+84>>2],H[p+H[c+80>>2]>>2],H[d+32>>2])|0;H[k+8>>2]=g;s=0;if((H[c+40>>2]&-3)==4){d=p+H[c+88>>2]|0;q=0-H[d+4>>2]|0;s=0-H[d>>2]|0}if(i>>>0>=m>>>0){break a}F=H[c+80>>2];d=p+F|0;D=I[d+14|0];w=I[d+12|0]&4?D&16?D&15:1:1;r=-1;u=255;z=0;x=H[k>>2];p=x;v=H[k+4>>2];m=v;h=g;y=H[k+12>>2];d=y;while(1){C=i;A=N(i,20);i=F+A|0;l=J[i+16>>1];o=1<>>0<256)){e:{if(w>>>0<2){break e}n=I[i+14|0];j=n&16?0:n&15;n=D>>>0<32?w:(n^D)>>>0>31?w:j>>>0>w>>>0?w:j;j=n-1|0;if((j|0)==(r|0)){break e}y=H[k+12>>2];r=H[k+8>>2];v=H[k+4>>2];g=H[k>>2];f:{if(z){break f}z=H[a>>2];if((z&-2)==4){break f}z=Yn(H[a+4>>2]);l=J[i+16>>1];o=1<>>8|0:0;if((j|0)!=(u|0)){h=g;m=v;p=x;u=j;d=y}i=H[H[c+80>>2]+A>>2];H[k+24>>2]=0;H[k+28>>2]=0;H[k+16>>2]=0;H[k+20>>2]=0;l=i;i=H[b+80>>2];g:{if(!(zb[H[i+208>>2]](b,H[b+84>>2],l,k+16|0,H[i- -64>>2])|0)){o=H[c+88>>2];break g}l=H[b+24>>2];o=H[c+88>>2];i=A+o|0;H[i+12>>2]=0;n=(l|0)/16|0;h:{i:{j:{k:{l:{j=j-200|0;switch(j|0){case 16:case 22:case 32:break i;case 0:case 18:case 28:break j;case 33:case 34:break l;default:break k}}m:{switch(H[c+40>>2]-4|0){case 0:B=((h+p|0)+(H[k+24>>2]/-2|0)|0)-H[k+16>>2]|0;break h;case 1:break m;default:break k}}B=((H[k+24>>2]/-2|0)+p|0)-H[k+16>>2]|0;break h}B=(p-H[k+16>>2]|0)+((h-H[k+24>>2]|0)/2|0)|0;break h}B=p-H[k+16>>2]|0;break h}B=h+p-(H[k+24>>2]+H[k+16>>2])|0}H[i+8>>2]=B;n:{switch(j|0){case 18:case 20:case 22:case 33:d=d-n|0;case 0:case 2:n=(d+m|0)-H[k+20>>2]|0;j=(l|0)<16^(n|0)>0;H[i+12>>2]=j?0:n;d=(H[k+28>>2]+d|0)-(j?n:0)|0;break g;case 28:case 30:case 32:case 34:d=d-n|0;m=m+n|0;break;case 14:case 16:break n;default:break g}}j=(l|0)<16;n=H[k+28>>2];l=m-(n+H[k+20>>2]|0)|0;if(!(j^(l|0)>0)){j=(l|0)/-2|0;l=j+l|0;m=j+m|0;d=d-j|0}H[i+12>>2]=l;d=d+n|0;m=m-n|0}i=o+A|0;H[i>>2]=0;H[i+4>>2]=0;H[i+8>>2]=H[i+8>>2]+s;H[i+12>>2]=H[i+12>>2]+q;break d}j=H[c+88>>2]+A|0;i=H[j>>2];if((H[c+40>>2]&-3)==4){s=s-i|0;q=q-H[j+4>>2]|0;break d}s=i+s|0;q=H[j+4>>2]+q|0}i=C+1|0;if((t|0)!=(C|0)){continue}break}}d=t+1|0;if(e>>>0>d>>>0){continue}break}}xb=k+32|0}function XF(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,w=0,x=0;s=xb-16|0;xb=s;e=N(b,1348)+a|0;l=e;h=H[e+52>>2];a:{b:{if(h){e=H[e+44>>2];d=xi(a,b);if(d){break a}if((e|0)<=0){break b}e=N(e,44)+h|0;while(1){d=H[h+36>>2];c=J[d>>1];f=I[h|0];F[h|0]=f&254;i=H[h+40>>2];c:{if((i|0)==(d|0)){break c}c=c&3;while(1){g=c;d=H[d+32>>2];c=J[d>>1]&3;if(!((g|c)&65535)){break c}if((d|0)!=(i|0)){continue}break}F[h|0]=f|1}h=h+44|0;if(e>>>0>h>>>0){continue}break}break b}d=xi(a,b);if(d){break a}}n=H[H[a+2748>>2]+40>>2]/256|0;p=N(b,1348)+a|0;q=p+44|0;c=H[q>>2];e=H[l+52>>2];j=H[p+68>>2];t=(b?12:4)+a|0;h=dc(192,H[t>>2]);if((c|0)>0){k=N(c,44)+e|0;c=e;while(1){d=e;if((j|0)==F[c+1|0]){while(1){d:{if((c|0)==(d|0)|(j|0)!=(0-F[d+1|0]|0)){break d}i=G[d+2>>1]-G[c+2>>1]|0;if((i|0)<0){break d}f=G[c+8>>1];g=G[d+8>>1];r=(f|0)<(g|0)?f:g;f=G[c+6>>1];g=G[d+6>>1];f=r-((f|0)>(g|0)?f:g)|0;if((f|0)<(n|0)){break d}g=i<<3;m=H[c+28>>2];if(!((g|0)>=(N(m,9)|0)|(f|0)<=H[c+32>>2]&(g|0)>=(N(m,7)|0))){H[c+32>>2]=f;H[c+28>>2]=i;H[c+20>>2]=d}m=H[d+28>>2];if((g|0)>=(N(m,9)|0)|(f|0)<=H[d+32>>2]&(g|0)>=(N(m,7)|0)){break d}H[d+32>>2]=f;H[d+28>>2]=i;H[d+20>>2]=c}d=d+44|0;if(k>>>0>d>>>0){continue}break}}c=c+44|0;if(k>>>0>c>>>0){continue}break}c=e;while(1){f=H[c+20>>2];e:{if(!f|H[f+20>>2]!=(c|0)){break e}n=G[f+2>>1];m=G[c+2>>1];if((n|0)<=(m|0)){break e}o=H[c+28>>2];if((o|0)>=(h|0)){break e}v=o<<2;d=e;while(1){f:{i=G[d+2>>1];g:{if((c|0)==(d|0)|(i|0)>(m|0)){break g}j=H[d+20>>2];if(!j|H[j+20>>2]!=(d|0)){break g}g=G[j+2>>1];if((g|0)<(n|0)|(i|0)==(m|0)&(g|0)==(n|0)){break g}i=H[d+28>>2];if((i|0)<=(o|0)|(i|0)>=(v|0)){break g}g=e;if(H[c+32>>2]<(N(H[d+32>>2],3)|0)){break f}while(1){i=f;u=H[g+20>>2];h:{if((u|0)!=(d|0)){i=c;if((j|0)!=(u|0)){break h}}H[g+24>>2]=i;H[g+20>>2]=0}g=g+44|0;if(k>>>0>g>>>0){continue}break}}d=d+44|0;if(k>>>0>d>>>0){continue}break e}break}H[f+20>>2]=0;H[c+20>>2]=0}c=c+44|0;if(k>>>0>c>>>0){continue}break}while(1){c=H[e+20>>2];i:{if(!c|H[c+20>>2]==(e|0)){break i}H[e+20>>2]=0;d=H[c+28>>2];if((d|0)>=(h|0)&H[e+28>>2]>=d<<2){break i}H[e+24>>2]=H[c+20>>2]}e=e+44|0;if(k>>>0>e>>>0){continue}break}}v=H[a>>2];f=H[l+52>>2];c=H[a+2748>>2];H[p+56>>2]=0;e=H[q>>2];c=c+N(b,7676)|0;n=H[t>>2];j:{if((Rb(H[c+248>>2],n)|0)>=17){g=dc(16,n);break j}g=H[c+248>>2]}if((e|0)>0){t=N(e,44)+f|0;u=(N(b,1348)+a|0)- -64|0;while(1){k:{l:{w=H[p+56>>2];m:{if((w|0)<=0){l=I[f+1|0];break m}l=I[f+1|0];m=H[u>>2];e=0;i=65535;h=0;while(1){d=N(h,44);k=d+m|0;n:{if(I[k+13|0]!=(l|0)){break n}j=G[f+2>>1]-G[k>>1]|0;c=j>>31;j=(c^j)-c|0;if((j|0)>=(g|0)|(i|0)<=(j|0)){break n}x=H[f+20>>2];if(x){c=0;r=H[(d+m|0)+36>>2];d=r;while(1){o:{o=H[d+20>>2];if(o){c=G[x+2>>1];o=G[o+2>>1];c=(c|0)>(o|0)?c-o|0:o-c|0;if((g|0)<=(c|0)){break o}}d=H[d+16>>2];if((r|0)!=(d|0)){continue}}break}if((c|0)>=(g|0)){break n}}i=j;e=k}h=h+1|0;if((w|0)!=(h|0)){continue}break}if(e){break l}}d=jv(q,G[f+2>>1],l<<24>>24,0,v,s+12|0);if(d){break a}e=H[s+12>>2];H[e+40>>2]=f;H[e+36>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+32>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;F[e+13|0]=I[f+1|0];c=G[f+2>>1];G[e>>1]=c;c=Rb(c,n);H[e+8>>2]=c;H[e+4>>2]=c;H[f+16>>2]=f;break k}H[f+16>>2]=H[e+36>>2];H[H[e+40>>2]+16>>2]=f;H[e+40>>2]=f}f=f+44|0;if(t>>>0>f>>>0){continue}break}}c=H[p+56>>2];if((c|0)>0){e=H[(N(b,1348)+a|0)- -64>>2];p=e+N(c,44)|0;c=e;while(1){a=H[c+36>>2];d=a;if(d){while(1){H[d+12>>2]=c;d=H[d+16>>2];if((a|0)!=(d|0)){continue}break}}c=c+44|0;if(p>>>0>c>>>0){continue}break}while(1){h=0;g=0;k=H[e+36>>2];if(k){j=e+28|0;a=e+24|0;d=k;while(1){q=F[d|0]&1;n=!q;c=H[d+24>>2];p:{q:{if(c){b=H[d+20>>2];f=H[c+12>>2];if(!b&(f|0)==(e|0)){break p}if((e|0)==(f|0)){i=0;f=a;break q}i=1;f=j;b=c;break q}i=0;f=a;b=H[d+20>>2];if(!b){break p}}c=H[f>>2];r:{if(c){l=G[e>>1]-G[c>>1]|0;f=l>>31;r=(f^l)-f|0;f=G[d+2>>1];l=G[b+2>>1];if((r|0)<=(((f|0)>(l|0)?f-l|0:l-f|0)|0)){break r}}c=H[b+12>>2]}if(i){H[j>>2]=c;F[c+12|0]=I[c+12|0]|2;break p}H[a>>2]=c}h=h+q|0;g=g+n|0;d=H[d+16>>2];if((k|0)!=(d|0)){continue}break}}F[e+12|0]=(g|0)<=(h|0)&(h|0)>0;if(!(!H[e+28>>2]|!H[e+24>>2])){H[e+28>>2]=0}e=e+44|0;if(p>>>0>e>>>0){continue}break}}d=0}xb=s+16|0;return d}function Kba(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=xb-16|0;xb=g;i=Tb(40);H[i>>2]=0;H[197455]=0;H[g+8>>2]=0;k=ca(1394,1,0,0)|0;e=H[197455];H[197455]=0;a:{b:{if((e|0)==1){break b}j=4;f=-1;c:{d:{if(!e){break d}h=H[197456];if(!h){break d}f=Sb(H[e>>2],i,4);if(!f){break c}ja(h|0)}e=_()|0;e:{f:{if((f|0)==1){break f}H[g+12>>2]=k;e=0;if(!H[g+12>>2]){break e}H[H[g+12>>2]+700>>2]=1e6;H[H[g+12>>2]+704>>2]=1e6;H[H[g+12>>2]+708>>2]=0;H[H[g+12>>2]+712>>2]=0;H[197455]=0;e=H[g+12>>2];if(e){H[e+156>>2]=988}else{e=0}k=e;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;g:{if(!e){break g}h=H[197456];if(!h){break g}f=Sb(H[e>>2],i,4);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){break f}i=sd(k,1,i,4);j=_()|0;e=0}while(1){if(e){H[197455]=0;na(1396);e=H[197455];H[197455]=0;if((e|0)==1){break b}h:{if(!e){break h}h=H[197456];if(!h){break h}if(!Sb(H[e>>2],i,j)){break c}ja(h|0)}e=_()|0;continue}H[197455]=0;e=H[g+12>>2];if(e){H[e+676>>2]=0;H[e+672>>2]=0;H[e+668>>2]=0}e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;i:{if(!e){break i}h=H[197456];if(!h){break i}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}H[197455]=0;e=H[g+12>>2];if(e){H[e+164>>2]=d;H[e+160>>2]=c;H[e+168>>2]=b}e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;j:{if(!e){break j}h=H[197456];if(!h){break j}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}H[197455]=0;k=da(1398,H[g+12>>2],a|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;k:{if(!e){break k}h=H[197456];if(!h){break k}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}if(!k){H[g+8>>2]=1}l:{if(H[g+8>>2]){break l}H[H[g+12>>2]+272>>2]=8192;e=H[g+12>>2];k=H[H[g+12>>2]+272>>2];H[197455]=0;k=da(1399,e|0,k|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;m:{if(!e){break m}h=H[197456];if(!h){break m}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}H[H[g+12>>2]+268>>2]=k;if(H[H[g+12>>2]+268>>2]){break l}H[g+8>>2]=1}H[H[g+12>>2]+244>>2]=1400;H[H[g+12>>2]+248>>2]=1401;H[H[g+12>>2]+252>>2]=H[g+12>>2];n:{if(H[g+8>>2]){break n}H[197455]=0;k=ca(1402,H[g+12>>2]+212|0,259071,56)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;o:{if(!e){break o}h=H[197456];if(!h){break o}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}p:{switch(k+6|0){case 2:H[197455]=0;ba(1403,H[g+12>>2],259132);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;q:{if(!e){break q}h=H[197456];if(!h){break q}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}H[g+8>>2]=1;break n;case 4:H[197455]=0;ba(1403,H[g+12>>2],259394);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;r:{if(!e){break r}h=H[197456];if(!h){break r}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}H[g+8>>2]=1;break n;case 0:H[197455]=0;ba(1403,H[g+12>>2],259641);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;s:{if(!e){break s}h=H[197456];if(!h){break s}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}H[g+8>>2]=1;break n;case 6:break n;default:break p}}H[197455]=0;ba(1403,H[g+12>>2],259902);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;t:{if(!e){break t}h=H[197456];if(!h){break t}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}H[g+8>>2]=1}e=H[g+12>>2];if(H[g+8>>2]){k=H[H[g+12>>2]+268>>2];H[197455]=0;ba(1404,e|0,k|0);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;u:{if(!e){break u}h=H[197456];if(!h){break u}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}H[H[g+12>>2]+268>>2]=0;H[197455]=0;ga(1405,H[g+12>>2],0,0);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;v:{if(!e){break v}h=H[197456];if(!h){break v}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}e=0;break e}H[H[g+12>>2]+224>>2]=H[e+268>>2];H[H[g+12>>2]+228>>2]=H[H[g+12>>2]+272>>2];H[197455]=0;ga(1010,H[g+12>>2],0,0);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;w:{if(!e){break w}h=H[197456];if(!h){break w}f=Sb(H[e>>2],i,j);if(!f){break c}ja(h|0)}e=_()|0;if((f|0)==1){continue}break}e=H[g+12>>2]}Kb(i);xb=g+16|0;break a}Kb(i);ed(e,h);X()}a=$()|0;Kb(i);ea(a|0);X()}return e|0}function vr(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;H[a>>2]=0;if(!(!b|!c)){d=1;a:{b:{c:{d:{e:{if(GD(a,b,c)){break e}f:{g:{h:{i:{j:{k:{if(c>>>0>=4){d=2;if(!gc(b,239654,4)){break e}l:{m:{if(c>>>0>=6){if(!gc(b,239485,6)){break e}if(!gc(b,239478,6)){break e}if(c>>>0>15){break m}}e=I[b|0];break l}e=I[b|0];n:{if((e|0)!=137|I[b+1|0]!=80|(I[b+2|0]!=78|I[b+3|0]!=71)){break n}if(I[b+4|0]!=13|I[b+5|0]!=10|(I[b+6|0]!=26|I[b+7|0]!=10)){break n}if(I[b+8|0]|I[b+9|0]|(I[b+10|0]|I[b+11|0]!=13)){break n}if(I[b+12|0]!=73|I[b+13|0]!=72|I[b+14|0]!=68){break n}d=4;if(I[b+15|0]==82){break e}}if(c>>>0<17){break l}o:{p:{switch(I[b+1|0]){case 1:switch(I[b+2|0]-1|0){case 0:case 8:break o;default:break l};case 0:break p;default:break l}}d=I[b+2|0];if(d>>>0>11|!(1<>>3)&255)>>>0<4){break e}}if((e|0)!=10|I[b+1|0]>5){break k}d=8;e=I[b+3|0]-1&255;if(e>>>0>=8|!(139>>>e&1)){break k}break e}if((c|0)!=3){break j}}if(!(I[b|0]!=255|I[b+1|0]!=216|I[b+2|0]!=255)){d=3;break e}if(c>>>0>43){break i}}d=I[b|0];break h}d=I[b|0];if((d|0)!=1){break h}if(I[b+1|0]|I[b+2|0]|(I[b+3|0]|I[b+40|0]!=32)){break g}if(I[b+41|0]!=69|I[b+42|0]!=77){break g}d=21;if(I[b+43|0]!=70){break g}break e}if(!((d&255)!=215|c>>>0<6)){if(I[b+1|0]!=205|I[b+2|0]!=198|(I[b+4|0]|I[b+3|0]!=154)){break d}if(I[b+5|0]){break d}d=10;break e}if((d&255)!=1){break f}}if(I[b+1|0]|I[b+2|0]!=9|(I[b+3|0]|I[b+4|0])){break d}d=10;if(I[b+5|0]!=3){break d}break e}q:{r:{if(!((d&255)!=73|c>>>0<4)){if(I[b+1|0]!=73){break d}if(I[b+3|0]|I[b+2|0]!=42){break r}break q}s:{switch((d&255)-73|0){case 4:if(I[b+2|0]|I[b+1|0]!=77){break d}d=6;if(I[b+3|0]==42){break e}break d;case 0:break s;default:break d}}if(I[b+1|0]!=73){break d}}if(I[b+3|0]|I[b+2|0]!=42){break d}}d=6}H[a>>2]=d;f=c>>>0>15;break c}f=c>>>0>15;d=0;if(I[b+1|0]|(I[b|0]|c>>>0<16)){break c}e=H[b+18>>2];if(e>>>0>=c-40>>>0){break c}g=H[(b+e|0)+4>>2];e=I[b+6|0];if((g|0)!=((e?e:256)|0)){break c}d=5;H[a>>2]=5;e=22;if(xr(a,b,c)){break b}break a}e=22;if(xr(a,b,c)){break b}if(d){break a}t:{if(I[b|0]!=56|c>>>0<12|(I[b+1|0]!=66|I[b+2|0]!=80)){break t}if(I[b+6|0]|I[b+3|0]!=83|(I[b+7|0]|I[b+8|0]!=24)){break t}if(I[b+9|0]|I[b+10|0]){break t}e=20;if(I[b+11|0]==24){break b}}u:{if(!f|I[b|0]!=89|(I[b+1|0]!=166|I[b+2|0]!=106)){break u}if(I[b+5|0]|(I[b+4|0]|I[b+3|0]!=149)){break u}e=15;if(I[b+15|0]==24){break b}}d=0;if(I[b|0]!=255|c>>>0<52|(I[b+1|0]!=79|I[b+2|0]!=255)){break a}e=11;if(I[b+3|0]!=81){break a}}H[a>>2]=e;d=e}if(FD(a,b,c)){H[a>>2]=11;d=11}v:{w:{x:{if(!ED(a,b,c)){if(wr(a,b,c)){break x}if(d){break v}if(c>>>0>=6){break w}break v}H[a>>2]=11;if(!wr(a,b,c)){break v}}H[a>>2]=0;if(c>>>0<=5){break v}}y:{z:{if(I[b|0]!=86|I[b+1|0]!=67|(I[b+2|0]!=76|I[b+3|0]!=77)){break z}if(I[b+4|0]!=84|I[b+5|0]!=70|(I[b+9|0]|I[b+10|0])){break z}if(I[b+11|0]){break z}H[a>>2]=0;if(c>>>0>9){break y}break v}if(c>>>0<10){break v}}A:{B:{switch(I[b|0]-67|0){case 3:if(I[b+1|0]!=87|I[b+2|0]!=83){break v}if(!I[b+9|0]){break A}break v;case 0:break B;default:break v}}if(I[b+1|0]!=87|I[b+2|0]!=83|(I[b+8|0]!=120|I[b+9|0]!=156)){break v}}H[a>>2]=0}j=xb-32|0;xb=j;C:{D:{d=0;E:{if(H[a>>2]){break E}F:{if(I[b|0]!=60|c>>>0<6|(I[b+1|0]!=63|I[b+2|0]!=120)){break F}if(I[b+3|0]!=109|I[b+4|0]!=108|I[b+5|0]!=32){break F}d=j+16|0;e=b;G:{if(c>>>0<4294967280){H:{I:{if(c>>>0>=11){f=c+16&-16;b=Qb(f);H[d+8>>2]=f|-2147483648;H[d>>2]=b;H[d+4>>2]=c;break I}F[d+11|0]=c;b=d;if(!c){break H}}Ob(b,e,c)}F[b+c|0]=0;b=d;break G}qd(d);X()}H[197455]=0;g=da(933,j|0,239030)|0;c=H[197455];H[197455]=0;if((c|0)==1){break D}c=b;e=I[b+11|0];d=e<<24>>24<0;e=d?H[b+4>>2]:e;f=I[g+11|0];h=f<<24>>24<0;i=h?H[g+4>>2]:f;b=0;J:{if(!i){break J}b=e;e=d?H[c>>2]:c;d=b+e|0;f=e;b=d-e|0;K:{L:{if((i|0)>(b|0)){break L}h=h?H[g>>2]:g;l=I[h|0];while(1){b=b-i|0;k=b+1|0;if(k>>>0>>0){break L}b=Kg(f,l,k);if(!b){break L}if(!md(b,h,i)){break K}f=b+1|0;b=d-f|0;if((i|0)<=(b|0)){continue}break}}b=d}b=(b|0)==(d|0)?-1:b-e|0}if(F[g+11|0]<0){Kb(H[g>>2])}if(F[c+11|0]<0){Kb(H[c>>2])}d=1;if((b|0)!=-1){break E}}d=0}xb=j+32|0;break C}a=$()|0;_()|0;if(F[b+11|0]<0){Kb(H[b>>2])}ea(a|0);X()}if(!d){return H[a>>2]!=0}H[a>>2]=24;d=1}return d}function Qba(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;a=Nb(a,0,256);d=H[b>>2]+c|0;f=I[d+3|0];g=I[d|0];e=f+g|0;h=I[d+2|0];d=I[d+1|0];i=h+d|0;H[a+8>>2]=e-i<<3;H[a>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=N(e+f|0,4433)+512|0;H[a+12>>2]=d+N(e,-15137)>>10;H[a+4>>2]=d+N(f,6270)>>10;d=H[b+4>>2]+c|0;f=I[d+3|0];g=I[d|0];e=f+g|0;h=I[d+2|0];d=I[d+1|0];i=h+d|0;H[a+40>>2]=e-i<<3;H[a+32>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=N(e+f|0,4433)+512|0;H[a+44>>2]=d+N(e,-15137)>>10;H[a+36>>2]=d+N(f,6270)>>10;d=H[b+8>>2]+c|0;f=I[d+3|0];g=I[d|0];e=f+g|0;h=I[d+2|0];d=I[d+1|0];i=h+d|0;H[a+72>>2]=e-i<<3;H[a+64>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=N(e+f|0,4433)+512|0;H[a+76>>2]=d+N(e,-15137)>>10;H[a+68>>2]=d+N(f,6270)>>10;d=H[b+12>>2]+c|0;f=I[d+3|0];g=I[d|0];e=f+g|0;h=I[d+2|0];d=I[d+1|0];i=h+d|0;H[a+104>>2]=e-i<<3;H[a+96>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=N(e+f|0,4433)+512|0;H[a+108>>2]=d+N(e,-15137)>>10;H[a+100>>2]=d+N(f,6270)>>10;d=H[b+16>>2]+c|0;f=I[d+3|0];g=I[d|0];e=f+g|0;h=I[d+2|0];d=I[d+1|0];i=h+d|0;H[a+136>>2]=e-i<<3;H[a+128>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=N(e+f|0,4433)+512|0;H[a+140>>2]=d+N(e,-15137)>>10;H[a+132>>2]=d+N(f,6270)>>10;d=H[b+20>>2]+c|0;f=I[d+3|0];g=I[d|0];e=f+g|0;h=I[d+2|0];d=I[d+1|0];i=h+d|0;H[a+168>>2]=e-i<<3;H[a+160>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=N(e+f|0,4433)+512|0;H[a+172>>2]=d+N(e,-15137)>>10;H[a+164>>2]=d+N(f,6270)>>10;d=H[b+24>>2]+c|0;f=I[d+3|0];g=I[d|0];e=f+g|0;h=I[d+2|0];i=I[d+1|0];d=h+i|0;H[a+200>>2]=e-d<<3;d=(d+e<<3)-4096|0;H[a+192>>2]=d;e=i-h|0;g=g-f|0;f=N(e+g|0,4433)+512|0;H[a+204>>2]=f+N(e,-15137)>>10;H[a+196>>2]=f+N(g,6270)>>10;b=H[b+28>>2]+c|0;c=I[b+3|0];f=I[b|0];g=c+f|0;e=I[b+2|0];h=I[b+1|0];b=e+h|0;H[a+232>>2]=g-b<<3;b=(b+g<<3)-4096|0;H[a+224>>2]=b;g=h-e|0;f=f-c|0;c=N(g+f|0,4433)+512|0;H[a+236>>2]=c+N(g,-15137)>>10;c=c+N(f,6270)>>10;H[a+228>>2]=c;g=H[a>>2];f=g+b|0;e=H[a+128>>2];h=H[a+96>>2];i=e+h|0;j=(f+i|0)+2|0;k=H[a+160>>2];l=H[a+64>>2];m=k+l|0;n=H[a+32>>2];o=n+d|0;p=m+o|0;H[a+128>>2]=j-p>>2;H[a>>2]=j+p>>2;i=f-i|0;j=o-m|0;f=N(i+j|0,4433)+16384|0;H[a+192>>2]=f+N(j,-15137)>>15;H[a+64>>2]=f+N(i,6270)>>15;f=h-e|0;b=g-b|0;g=N(f+b|0,-7373);d=n-d|0;i=d+f|0;e=l-k|0;j=e+b|0;h=N(i+j|0,9633)+16384|0;k=g+N(f,2446)|0;f=h+N(i,-16069)|0;H[a+224>>2]=k+f>>15;h=h+N(j,-3196)|0;i=N(e,16819);e=N(d+e|0,-20995);H[a+160>>2]=h+(i+e|0)>>15;H[a+96>>2]=f+(e+N(d,25172)|0)>>15;H[a+32>>2]=h+(g+N(b,12299)|0)>>15;d=H[a+4>>2];b=d+c|0;f=H[a+132>>2];g=H[a+100>>2];e=f+g|0;h=(b+e|0)+2|0;i=H[a+164>>2];j=H[a+68>>2];k=i+j|0;l=H[a+196>>2];m=H[a+36>>2];n=l+m|0;o=k+n|0;H[a+132>>2]=h-o>>2;H[a+4>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=N(e+h|0,4433)+16384|0;H[a+196>>2]=b+N(h,-15137)>>15;H[a+68>>2]=b+N(e,6270)>>15;b=g-f|0;c=d-c|0;d=N(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=N(h+i|0,9633)+16384|0;j=d+N(b,2446)|0;b=e+N(h,-16069)|0;H[a+228>>2]=j+b>>15;e=e+N(i,-3196)|0;h=N(g,16819);g=N(f+g|0,-20995);H[a+164>>2]=e+(h+g|0)>>15;H[a+100>>2]=b+(g+N(f,25172)|0)>>15;H[a+36>>2]=e+(d+N(c,12299)|0)>>15;c=H[a+232>>2];d=H[a+8>>2];b=c+d|0;f=H[a+136>>2];g=H[a+104>>2];e=f+g|0;h=(b+e|0)+2|0;i=H[a+168>>2];j=H[a+72>>2];k=i+j|0;l=H[a+200>>2];m=H[a+40>>2];n=l+m|0;o=k+n|0;H[a+136>>2]=h-o>>2;H[a+8>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=N(e+h|0,4433)+16384|0;H[a+200>>2]=b+N(h,-15137)>>15;H[a+72>>2]=b+N(e,6270)>>15;b=g-f|0;c=d-c|0;d=N(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=N(h+i|0,9633)+16384|0;j=d+N(b,2446)|0;b=e+N(h,-16069)|0;H[a+232>>2]=j+b>>15;e=e+N(i,-3196)|0;h=N(g,16819);g=N(f+g|0,-20995);H[a+168>>2]=e+(h+g|0)>>15;H[a+104>>2]=b+(g+N(f,25172)|0)>>15;H[a+40>>2]=e+(d+N(c,12299)|0)>>15;c=H[a+236>>2];d=H[a+12>>2];b=c+d|0;f=H[a+140>>2];g=H[a+108>>2];e=f+g|0;h=(b+e|0)+2|0;i=H[a+172>>2];j=H[a+76>>2];k=i+j|0;l=H[a+204>>2];m=H[a+44>>2];n=l+m|0;o=k+n|0;H[a+140>>2]=h-o>>2;H[a+12>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=N(e+h|0,4433)+16384|0;H[a+204>>2]=b+N(h,-15137)>>15;H[a+76>>2]=b+N(e,6270)>>15;b=g-f|0;c=d-c|0;d=N(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=N(h+i|0,9633)+16384|0;j=d+N(b,2446)|0;b=e+N(h,-16069)|0;H[a+236>>2]=j+b>>15;e=e+N(i,-3196)|0;h=N(g,16819);g=N(f+g|0,-20995);H[a+172>>2]=e+(h+g|0)>>15;H[a+108>>2]=b+(g+N(f,25172)|0)>>15;H[a+44>>2]=e+(d+N(c,12299)|0)>>15}function N0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-144|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(H[c>>2]==H[c+4>>2]){break i}f=a+8|0;Em(d+128|0,f);a=d+96|0;Ce(a,M[d+128>>3],-1);H[197455]=0;ba(1650,a|0,44);a=H[197455];H[197455]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if((a|0)!=1){H[d+24>>2]=H[d+104>>2];H[d+104>>2]=0;a=H[d+100>>2];H[d+16>>2]=H[d+96>>2];H[d+20>>2]=a;H[d+96>>2]=0;H[d+100>>2]=0;H[197455]=0;fa(1756,d+80|0,+M[d+136>>3],-1);a=H[197455];H[197455]=0;if((a|0)==1){break x}H[197455]=0;a=I[d+91|0];b=a<<24>>24<0;a=ca(1759,d+16|0,(b?H[d+80>>2]:d+80|0)|0,(b?H[d+84>>2]:a)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break w}H[d+120>>2]=H[a+8>>2];b=H[a+4>>2];H[d+112>>2]=H[a>>2];H[d+116>>2]=b;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}a=H[c>>2];c=H[c+4>>2];if((a|0)!=(c|0)){while(1){b=H[a>>2];H[197455]=0;fa(1756,d- -64|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break t}H[197455]=0;b=d- -64|0;ca(1774,b|0,(F[d+75|0]<0?H[d+64>>2]:b)|0,32)|0;b=H[197455];H[197455]=0;if((b|0)==1){break s}H[d+88>>2]=H[d+72>>2];H[d+72>>2]=0;b=H[d+68>>2];H[d+80>>2]=H[d+64>>2];H[d+84>>2]=b;H[d+64>>2]=0;H[d+68>>2]=0;H[197455]=0;ba(1650,d+80|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break r}H[d+104>>2]=H[d+88>>2];H[d+88>>2]=0;b=H[d+84>>2];H[d+96>>2]=H[d+80>>2];H[d+100>>2]=b;H[d+80>>2]=0;H[d+84>>2]=0;b=H[a+4>>2];H[197455]=0;fa(1756,d+48|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break q}H[197455]=0;b=I[d+59|0];e=b<<24>>24<0;b=ca(1759,d+96|0,(e?H[d+48>>2]:d+48|0)|0,(e?H[d+52>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break p}H[d+24>>2]=H[b+8>>2];e=H[b+4>>2];H[d+16>>2]=H[b>>2];H[d+20>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=I[d+27|0];e=b<<24>>24<0;ca(1759,d+112|0,(e?H[d+16>>2]:d+16|0)|0,(e?H[d+20>>2]:b)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}a=a+8|0;if((c|0)!=(a|0)){continue}break}}H[197455]=0;a=ca(1775,d+16|0,409148,d+112|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break j}a=$()|0;_()|0;break c}a=$()|0;_()|0;break u}a=$()|0;_()|0;break v}a=$()|0;_()|0;if(F[d+91|0]>=0){break v}Kb(H[d+80>>2])}if(F[d+27|0]>=0){break u}Kb(H[d+16>>2])}if(F[d+107|0]>=0){break b}Kb(H[d+96>>2]);ea(a|0);X()}a=$()|0;_()|0;break c}a=$()|0;_()|0;break k}a=$()|0;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;break n}a=$()|0;_()|0;if(F[d+27|0]>=0){break n}Kb(H[d+16>>2])}if(F[d+59|0]>=0){break m}Kb(H[d+48>>2])}if(F[d+107|0]>=0){break l}Kb(H[d+96>>2])}if(F[d+91|0]>=0){break k}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break c}Kb(H[d+64>>2]);break c}H[d+40>>2]=a;H[197455]=0;H[d+44>>2]=1;a=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=a;e=da(1763,d+96|0,d+8|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break h}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;ba(1770,f|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;ba(1771,f|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;ga(1766,f|0,e|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;ia(1764,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;a=aa(899,48)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}H[d+16>>2]=a;H[d+20>>2]=8;H[d+24>>2]=-2147483636;H[197455]=0;Mb(a,409676,8);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+32>>2]=0;F[d+91|0]=0;H[197455]=0;H[d+80>>2]=0;ka(1767,f|0,d+16|0,e|0,d+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}b=H[e>>2];if(b){a=H[e+4>>2];if((b|0)==(a|0)){a=b}else{while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}c=a-24|0;if(F[a-13|0]<0){Kb(H[c>>2])}a=c;if((b|0)!=(a|0)){continue}break}a=H[e>>2]}H[e+4>>2]=b;Kb(a)}if(F[d+123|0]>=0){break i}Kb(H[d+112>>2])}xb=d+144|0;return}a=$()|0;_()|0;Vb(d+16|0);break c}a=$()|0;_()|0;break d}a=$()|0;_()|0;break d}a=$()|0;_()|0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]>=0){break d}Kb(H[d+16>>2])}yc(e)}if(F[d+123|0]>=0){break b}Kb(H[d+112>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function L0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-144|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(H[c>>2]==H[c+4>>2]){break i}f=a+8|0;Em(d+128|0,f);a=d+96|0;Ce(a,M[d+128>>3],-1);H[197455]=0;ba(1650,a|0,44);a=H[197455];H[197455]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if((a|0)!=1){H[d+24>>2]=H[d+104>>2];H[d+104>>2]=0;a=H[d+100>>2];H[d+16>>2]=H[d+96>>2];H[d+20>>2]=a;H[d+96>>2]=0;H[d+100>>2]=0;H[197455]=0;fa(1756,d+80|0,+M[d+136>>3],-1);a=H[197455];H[197455]=0;if((a|0)==1){break x}H[197455]=0;a=I[d+91|0];b=a<<24>>24<0;a=ca(1759,d+16|0,(b?H[d+80>>2]:d+80|0)|0,(b?H[d+84>>2]:a)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break w}H[d+120>>2]=H[a+8>>2];b=H[a+4>>2];H[d+112>>2]=H[a>>2];H[d+116>>2]=b;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}a=H[c>>2];c=H[c+4>>2];if((a|0)!=(c|0)){while(1){b=G[a>>1];H[197455]=0;fa(1756,d- -64|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break t}H[197455]=0;b=d- -64|0;ca(1774,b|0,(F[d+75|0]<0?H[d+64>>2]:b)|0,32)|0;b=H[197455];H[197455]=0;if((b|0)==1){break s}H[d+88>>2]=H[d+72>>2];H[d+72>>2]=0;b=H[d+68>>2];H[d+80>>2]=H[d+64>>2];H[d+84>>2]=b;H[d+64>>2]=0;H[d+68>>2]=0;H[197455]=0;ba(1650,d+80|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break r}H[d+104>>2]=H[d+88>>2];H[d+88>>2]=0;b=H[d+84>>2];H[d+96>>2]=H[d+80>>2];H[d+100>>2]=b;H[d+80>>2]=0;H[d+84>>2]=0;b=G[a+2>>1];H[197455]=0;fa(1756,d+48|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break q}H[197455]=0;b=I[d+59|0];e=b<<24>>24<0;b=ca(1759,d+96|0,(e?H[d+48>>2]:d+48|0)|0,(e?H[d+52>>2]:b)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break p}H[d+24>>2]=H[b+8>>2];e=H[b+4>>2];H[d+16>>2]=H[b>>2];H[d+20>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=I[d+27|0];e=b<<24>>24<0;ca(1759,d+112|0,(e?H[d+16>>2]:d+16|0)|0,(e?H[d+20>>2]:b)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break o}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}a=a+4|0;if((c|0)!=(a|0)){continue}break}}H[197455]=0;a=ca(1775,d+16|0,409148,d+112|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break j}a=$()|0;_()|0;break c}a=$()|0;_()|0;break u}a=$()|0;_()|0;break v}a=$()|0;_()|0;if(F[d+91|0]>=0){break v}Kb(H[d+80>>2])}if(F[d+27|0]>=0){break u}Kb(H[d+16>>2])}if(F[d+107|0]>=0){break b}Kb(H[d+96>>2]);ea(a|0);X()}a=$()|0;_()|0;break c}a=$()|0;_()|0;break k}a=$()|0;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;break n}a=$()|0;_()|0;if(F[d+27|0]>=0){break n}Kb(H[d+16>>2])}if(F[d+59|0]>=0){break m}Kb(H[d+48>>2])}if(F[d+107|0]>=0){break l}Kb(H[d+96>>2])}if(F[d+91|0]>=0){break k}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break c}Kb(H[d+64>>2]);break c}H[d+40>>2]=a;H[197455]=0;H[d+44>>2]=1;a=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=a;e=da(1763,d+96|0,d+8|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break h}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;ba(1770,f|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;ba(1771,f|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;ga(1766,f|0,e|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;ia(1764,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}H[197455]=0;a=aa(899,48)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}H[d+16>>2]=a;H[d+20>>2]=8;H[d+24>>2]=-2147483636;H[197455]=0;Mb(a,409676,8);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+32>>2]=0;F[d+91|0]=0;H[197455]=0;H[d+80>>2]=0;ka(1767,f|0,d+16|0,e|0,d+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}b=H[e>>2];if(b){a=H[e+4>>2];if((b|0)==(a|0)){a=b}else{while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}c=a-24|0;if(F[a-13|0]<0){Kb(H[c>>2])}a=c;if((b|0)!=(a|0)){continue}break}a=H[e>>2]}H[e+4>>2]=b;Kb(a)}if(F[d+123|0]>=0){break i}Kb(H[d+112>>2])}xb=d+144|0;return}a=$()|0;_()|0;Vb(d+16|0);break c}a=$()|0;_()|0;break d}a=$()|0;_()|0;break d}a=$()|0;_()|0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]>=0){break d}Kb(H[d+16>>2])}yc(e)}if(F[d+123|0]>=0){break b}Kb(H[d+112>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function pF(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,r=0,s=0,t=0;n=xb-16|0;xb=n;g=H[b+4>>2];a:{if(g>>>0>a>>>0){break a}k=H[b+8>>2];if(k>>>0>>0|k-a>>>0<4){break a}j=H[b+12>>2];d=j-4|0;H[b+12>>2]=d;if((d|0)<=0){break a}f=F[a|0];d=I[a+3|0]|(I[a+1|0]<<16|f<<24|I[a+2|0]<<8);f=(d|0)!=0&(f|0)<0;o=!f;if(!d|f){break a}d=c+d|0;b:{if(d>>>0>>0|d>>>0>k>>>0|k-d>>>0<=3){break b}c=j-8|0;H[b+12>>2]=c;if((I[d|0]|I[d+1|0]<<8)!=256|(c|0)<=0){break b}H[n+12>>2]=d;o=1;c=0;j=d+4|0;i=H[b+4>>2];c:{d:{if(j>>>0>>0){break d}k=H[b+8>>2];if(k>>>0>>0|k-j>>>0<4){break d}g=H[b+12>>2]-4|0;H[b+12>>2]=g;if((g|0)<=0){break d}d=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);f=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(f>>>0>536870910){break d}e=1;if(!f){break c}d=j+4|0;if(d>>>0>>0|d>>>0>k>>>0){break d}e=k-d|0;d=f<<3;if(e>>>0>>0){break d}d=g-d|0;H[b+12>>2]=d;if((d|0)<=0){break d}c=1;d=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);s=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(!s){break d}while(1){p=H[n+12>>2];c=0;k=0;g=(j+(r<<3)|0)+4|0;i=H[b+4>>2];e:{if(g>>>0>>0){break e}d=H[b+8>>2];if(d>>>0>>0|d-g>>>0<4){break e}e=H[b+12>>2];f=e-4|0;H[b+12>>2]=f;if((f|0)<=0){break e}c=F[g|0];f=I[g+3|0]|(I[g+1|0]<<16|c<<24|I[g+2|0]<<8);h=(f|0)!=0&(c|0)<0;c=!h;if(!f|h){break e}f:{f=f+p|0;if(f>>>0>>0|d>>>0>>0|d-f>>>0<2){break f}e=e-6|0;H[b+12>>2]=e;c=1;if((e|0)<=0){break f}h=I[f|0]|I[f+1|0]<<8;if(!h){break e}c=f+2|0;if(c>>>0>>0|c>>>0>d>>>0){break f}l=d-c|0;c=(h<<8|h>>>8)&65535;d=c<<2;if(l>>>0>>0){break f}d=e-d|0;H[b+12>>2]=d;if((d|0)<=0){break f}q=c>>>0>1?c:1;d=0;while(1){i=0;c=(f+(d<<2)|0)+2|0;l=H[b+4>>2];g:{if(c>>>0>>0){break g}h=H[b+8>>2];if(h>>>0>>0|h-c>>>0<4){break g}m=H[b+12>>2];e=m-4|0;H[b+12>>2]=e;if((e|0)<=0){break g}i=F[c|0];e=I[c+3|0]|(I[c+1|0]<<16|i<<24|I[c+2|0]<<8);t=(e|0)!=0&(i|0)<0;i=!t;if(!e|t){break g}e=f+e|0;h:{if(e>>>0>>0|e>>>0>h>>>0){break h}h=h-e|0;if(h>>>0<2){break h}l=m-6|0;H[b+12>>2]=l;i=1;if((l|0)<=0){break h}if((I[e|0]|I[e+1|0]<<8)!=256){break g}if(h>>>0<8){break h}e=m-14|0;H[b+12>>2]=e;if((e|0)>0){break g}}i=0;e=H[b+28>>2];if(e>>>0>31){break g}H[b+28>>2]=e+1;if(!I[b+24|0]){break g}F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;i=1}if(!i){break f}c=1;d=d+1|0;if((q|0)!=(d|0)){continue}break}break e}c=0;d=H[b+28>>2];if(d>>>0>31){break e}H[b+28>>2]=d+1;if(!I[b+24|0]){break e}F[g|0]=0;F[g+1|0]=0;F[g+2|0]=0;F[g+3|0]=0;c=1}i:{if(!c){break i}i=g+4|0;if(i>>>0>2]){break i}c=H[b+8>>2];if(c>>>0>>0|c-i>>>0<4){break i}c=H[b+12>>2]-4|0;H[b+12>>2]=c;if((c|0)<=0){break i}d=F[g+4|0];c=I[g+7|0]|(I[g+5|0]<<16|d<<24|I[g+6|0]<<8);d=(c|0)!=0&(d|0)<0;k=!d;if(d|!c){break i}k=1;j:{k:{f=H[b+4>>2];g=c+p|0;if(f>>>0>g>>>0){break k}c=H[b+8>>2];if(c>>>0>>0|c-g>>>0<4){break k}e=H[b+12>>2];d=e-4|0;H[b+12>>2]=d;if((I[g|0]|I[g+1|0]<<8)!=256|(d|0)<=0){break k}d=g+4|0;if(d>>>0>>0|c>>>0>>0|c-d>>>0<2){break k}e=e-6|0;H[b+12>>2]=e;d=1;if((e|0)<=0){break k}h=I[g+4|0]|I[g+5|0]<<8;l:{if(!h){break l}d=g+6|0;if(d>>>0>>0|c>>>0>>0){break k}l=c-d|0;c=(h<<8|h>>>8)&65535;d=N(c,6);if(l>>>0>>0){break k}f=e-d|0;H[b+12>>2]=f;d=0;if((f|0)<=0){break l}p=c>>>0>1?c:1;c=0;while(1){d=0;f=(g+N(c,6)|0)+6|0;e=H[b+4>>2];m:{if(f>>>0>>0){break m}h=H[b+8>>2];if(h>>>0>>0|h-f>>>0<6){break m}m=H[b+12>>2];q=m-6|0;H[b+12>>2]=q;if((q|0)<=0){break m}l=e;e=f+2|0;if(l>>>0>e>>>0|e>>>0>h>>>0|h-e>>>0<4){break m}h=m-10|0;H[b+12>>2]=h;if((h|0)<=0){break m}d=F[f+2|0];f=I[f+5|0]|(I[f+3|0]<<16|d<<24|I[f+4|0]<<8);h=(f|0)!=0&(d|0)<0;d=!h;if(h|!f){break m}d=1;if(oF(f+g|0,b,0)){break m}d=0;f=H[b+28>>2];if(f>>>0>31){break m}H[b+28>>2]=f+1;if(!I[b+24|0]){break m}F[e|0]=0;F[e+1|0]=0;F[e+2|0]=0;F[e+3|0]=0;d=1}if(!d){break l}c=c+1|0;if((p|0)!=(c|0)){continue}break}}break j}d=0}if(d){break i}k=0;c=H[b+28>>2];if(c>>>0>31){break i}H[b+28>>2]=c+1;if(!I[b+24|0]){break i}F[i|0]=0;F[i+1|0]=0;F[i+2|0]=0;F[i+3|0]=0;k=1}c=k;if(!c){break d}r=r+1|0;if((s|0)!=(r|0)){continue}break}}e=c}if(e){break a}}o=0;c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;o=1}xb=n+16|0;return o}function X0(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;c=xb-192|0;xb=c;d=H[b+12>>2];e=H[b+4>>2];g=H[b+8>>2];b=H[b>>2];H[197455]=0;f=+(g|0);h=+(b|0);b=f>2]=b;H[c+76>>2]=2;H[c+80>>2]=-2147483644;H[197455]=0;Mb(b,406144,2);g=H[197455];H[197455]=0;if((g|0)==1){break a}H[b+8>>2]=0;b=c- -64|0;H[c+92>>2]=H[b>>2];H[b>>2]=0;b=H[c+60>>2];H[c+84>>2]=H[c+56>>2];H[c+88>>2]=b;H[c+56>>2]=0;H[c+60>>2]=0;H[197455]=0;f=+(d|0);h=+(e|0);b=f>2]=2;H[c+104>>2]=-2147483644;H[c+96>>2]=e;H[197455]=0;Mb(e,406292,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[e+8>>2]=0;H[c+116>>2]=H[c+48>>2];b=H[c+44>>2];H[c+108>>2]=H[c+40>>2];H[c+112>>2]=b;H[c+48>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[197455]=0;fa(1756,c+24|0,+((j-i)*.5),-1);e=H[197455];H[197455]=0;b=c+120|0;if((e|0)==1){break p}H[197455]=0;d=aa(899,16)|0;e=H[197455];H[197455]=0;if((e|0)==1){break o}H[c+124>>2]=2;H[c+128>>2]=-2147483644;H[c+120>>2]=d;H[197455]=0;Mb(d,406488,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[d+8>>2]=0;H[c+140>>2]=H[c+32>>2];b=H[c+28>>2];H[c+132>>2]=H[c+24>>2];H[c+136>>2]=b;H[c+32>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[197455]=0;fa(1756,c+8|0,+((f-k)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break n}H[197455]=0;b=aa(899,16)|0;e=H[197455];H[197455]=0;d=1;if((e|0)==1){break m}H[c+148>>2]=2;H[c+152>>2]=-2147483644;H[c+144>>2]=b;H[197455]=0;Mb(b,406668,2);d=H[197455];H[197455]=0;if((d|0)==1){break a}d=0;H[b+8>>2]=0;H[c+164>>2]=H[c+16>>2];b=H[c+12>>2];H[c+156>>2]=H[c+8>>2];H[c+160>>2]=b;H[c+16>>2]=0;H[c+172>>2]=4;H[197455]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+168>>2]=c+72;b=H[c+172>>2];H[c>>2]=H[c+168>>2];H[c+4>>2]=b;e=da(1763,c+176|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break l}if(F[c+167|0]<0){Kb(H[c+156>>2])}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+143|0]<0){Kb(H[c+132>>2])}if(F[c+131|0]<0){Kb(H[c+120>>2])}if(F[c+119|0]<0){Kb(H[c+108>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+95|0]<0){Kb(H[c+84>>2])}if(F[c+83|0]<0){Kb(H[c+72>>2])}if(F[c+19|0]<0){Kb(H[c+8>>2])}if(F[c+35|0]<0){Kb(H[c+24>>2])}if(F[c+51|0]<0){Kb(H[c+40>>2])}if(F[c+67|0]<0){Kb(H[c+56>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c+72>>2]=b;H[c+76>>2]=7;H[c+80>>2]=-2147483640;H[197455]=0;Mb(b,406892,7);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+28>>2]=0;F[c+67|0]=0;H[197455]=0;H[c+56>>2]=0;ka(1767,a|0,c+72|0,e|0,c+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+67|0]<0){Kb(H[c+56>>2])}if(F[c+83|0]<0){Kb(H[c+72>>2])}a=H[e>>2];if(a){b=H[e+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}d=b-24|0;if(F[b-13|0]<0){Kb(H[d>>2])}b=d;if((a|0)!=(b|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}xb=c+192|0;return}a=$()|0;_()|0;ea(a|0);X()}a=$()|0;d=1;b=c+72|0;_()|0;break g}a=$()|0;d=1;_()|0;break g}a=$()|0;_()|0;break h}a=$()|0;_()|0;break h}a=$()|0;d=1;_()|0;break i}a=$()|0;d=1;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;Vb(c+144|0);Vb(c+120|0);Vb(c+96|0);Vb(c+72|0)}if(F[c+19|0]>=0){break j}Kb(H[c+8>>2])}b=c+144|0}if(F[c+35|0]>=0){break h}Kb(H[c+24>>2])}if(F[c+51|0]>=0){break g}Kb(H[c+40>>2])}if(F[c+67|0]<0){Kb(H[c+56>>2])}if(!d|(c+72|0)==(b|0)){break b}while(1){b=Vb(b-24|0);if((b|0)!=(c+72|0)){continue}break}break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[c+67|0]<0){Kb(H[c+56>>2])}if(F[c+83|0]>=0){break c}Kb(H[c+72>>2])}yc(e)}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function xt(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;c=1;a:{b:{switch(I[a+7|0]){case 0:a=a+12|0;d=H[b+4>>2];c:{d:{if(a>>>0>>0){break d}g=b;b=H[b+8>>2];if(b>>>0>>0|b-a>>>0<16){break d}e=H[g+12>>2];c=e-16|0;H[g+12>>2]=c;if((c|0)<=0){break d}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if((c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0<4){break d}c=a+4|0;if(c>>>0>>0|b>>>0>>0|b-c>>>0<4){break d}b=e-20|0;H[g+12>>2]=b;if((b|0)<=0){break d}b=F[c|0];if((b|0)<0){break d}i=0;if(!Hf(a+(I[a+7|0]|(I[a+5|0]<<16|(b&255)<<24|I[a+6|0]<<8))|0,g)){break c}b=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);h=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(h>>>0>2147483646){break d}b=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);l=a+(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))|0;b=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);k=a+(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))|0;m=h<<1;c=0;a=0;while(1){b=a;e:{f:{g:{h:{if((c|0)<=(j|0)){d=j+1|0;i=0;if(!(!h|d>>>0<4294967295/(m>>>0)>>>0)){break c}a=N(d,m);i:{if(!a){e=H[g+12>>2];break i}if(k>>>0>2]){break d}e=H[g+8>>2];if(e>>>0>>0|a>>>0>e-k>>>0){break d}e=H[g+12>>2]-a|0;H[g+12>>2]=e;if((e|0)<=0){break d}}a=((j^-1)+c|0)+e|0;H[g+12>>2]=a;if((a|0)<=0|(d>>>0>=4294967295/(h>>>0)>>>0?h:0)){break d}a=N(d,h);if((a|0)<0){break d}c=N(c,h);if((c|0)<(a|0)){break h}c=d}if(!b){break f}a=b;break g}f=k+(a<<1)|0;e=k+(c<<1)|0;a=b;while(1){c=I[e|0]|I[e+1|0]<<8;c=((c<<8|c>>>8)&65535)+1|0;a=a>>>0>c>>>0?a:c;e=e+2|0;if(f>>>0>e>>>0){continue}break}c=d}f=0;if(l>>>0>2]){break d}d=H[g+8>>2];if(d>>>0>>0){break d}e=d-l|0;d=a<<2;if(e>>>0>>0){break d}e=H[g+12>>2]-d|0;H[g+12>>2]=e;if((e|0)<=0){break d}break e}e=H[g+12>>2];a=b}e=(b-a|0)+e|0;H[g+12>>2]=e;i=0;if((e|0)<=0){break c}if((a|0)>(b|0)){d=l+(a<<2)|0;e=l+(b<<2)|0;while(1){b=I[e|0]|I[e+1|0]<<8;b=(b<<8|b>>>8)&65535;j=(b|0)<(j|0)?j:b;e=e+4|0;if(d>>>0>e>>>0){continue}break}}if((c|0)<=(j|0)){continue}break}f=1}i=f}return i|0;case 1:c=0;g=xb-16|0;xb=g;H[g+8>>2]=0;a=a+12|0;j:{if(!wt(a,b,g+8|0)){break j}j=H[g+8>>2];if(j){c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);l=a+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;c=0;while(1){f=l+(d<<3)|0;h=I[f+4|0]|I[f+5|0]<<8;k=((h<<8|h>>>8)&65535)+1|0;c=(h|0)==65535?c:c>>>0>k>>>0?c:k;f=I[f+6|0]|I[f+7|0]<<8;h=((f<<8|f>>>8)&65535)+1|0;c=(f|0)==65535?c:c>>>0>h>>>0?c:h;d=d+1|0;if((j|0)!=(d|0)){continue}break}}d=a+16|0;if(d>>>0>2]){break j}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<4){break j}f=H[b+12>>2]-4|0;H[b+12>>2]=f;if((f|0)<=0){break j}d=F[d|0];if((d|0)<0){break j}f=a+(I[a+19|0]|(I[a+17|0]<<16|(d&255)<<24|I[a+18|0]<<8))|0;H[g+12>>2]=f;d=0;k:{l:{if(c>>>0>1073741822){break l}a=1;if(!c){break k}if(f>>>0>2]){break l}a=H[b+8>>2];if(a>>>0>>0){break l}i=a-f|0;a=c<<2;if(i>>>0>>0){break l}a=H[b+12>>2]-a|0;H[b+12>>2]=a;if((a|0)<=0){break l}while(1){m:{a=f+(e<<2)|0;if(a>>>0>2]){break m}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<4){break m}d=H[g+12>>2];h=H[b+12>>2]-4|0;H[b+12>>2]=h;if((h|0)<=0){break m}h=F[a|0];if((h|0)<0){break m}if(!Hf(d+(I[a+3|0]|(I[a+1|0]<<16|(h&255)<<24|I[a+2|0]<<8))|0,b)){break m}d=1;e=e+1|0;if((e|0)!=(c|0)){continue}break l}break}d=0}a=d}e=a}xb=g+16|0;return e|0;case 2:c=0;a=a+12|0;n:{if(a>>>0>2]){break n}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<28){break n}d=H[b+12>>2]-28|0;H[b+12>>2]=d;if((d|0)<=0){break n}if(!vt(a,b)){break n}b=I[a+16|0]|I[a+17|0]<<8|(I[a+18|0]<<16|I[a+19|0]<<24);if(!(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))){break n}b=I[a+20|0]|I[a+21|0]<<8|(I[a+22|0]<<16|I[a+23|0]<<24);if(!(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))){break n}a=I[a+24|0]|I[a+25|0]<<8|(I[a+26|0]<<16|I[a+27|0]<<24);c=(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))!=0}return c|0;case 4:return Hf(a+12|0,b)|0;case 5:break b;default:break a}}c=0;d=a+12|0;if(d>>>0>2]){break a}e=H[b+8>>2];if(e>>>0>>0|e-d>>>0<20){break a}e=H[b+12>>2]-20|0;H[b+12>>2]=e;if((e|0)<=0){break a}if(!wt(d,b,0)){break a}a=I[a+28|0]|I[a+29|0]<<8|(I[a+30|0]<<16|I[a+31|0]<<24);c=(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))!=0}return c|0}function Kp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=xb-208|0;xb=c;zb[H[H[a>>2]+60>>2]](a);d=H[a+72>>2];h=zb[H[H[d>>2]+68>>2]](d,2)|0;d=H[a+56>>2]+1|0;H[a+56>>2]=d;e=c+176|0;Ce(e,+(d>>>0),0);H[197455]=0;d=ca(1758,e|0,0,429644)|0;e=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{if((e|0)!=1){H[c+200>>2]=H[d+8>>2];e=H[d+4>>2];H[c+192>>2]=H[d>>2];H[c+196>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;if(F[c+187|0]<0){Kb(H[c+176>>2])}f=M[h>>3];g=M[b>>3];H[197455]=0;fa(1756,c+48|0,+(g*f),0);d=H[197455];H[197455]=0;if((d|0)==1){break y}H[197455]=0;d=ca(1758,c+48|0,0,429704)|0;e=H[197455];H[197455]=0;if((e|0)==1){break x}H[c+72>>2]=H[d+8>>2];e=H[d+4>>2];H[c+64>>2]=H[d>>2];H[c+68>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=da(1699,c- -64|0,428356)|0;e=H[197455];H[197455]=0;if((e|0)==1){break w}H[c+88>>2]=H[d+8>>2];e=H[d+4>>2];H[c+80>>2]=H[d>>2];H[c+84>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;f=M[h+24>>3];g=M[b+8>>3];H[197455]=0;fa(1756,c+32|0,+(g*f),0);d=H[197455];H[197455]=0;if((d|0)==1){break v}H[197455]=0;d=I[c+43|0];e=d<<24>>24<0;d=ca(1759,c+80|0,(e?H[c+32>>2]:c+32|0)|0,(e?H[c+36>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break u}H[c+104>>2]=H[d+8>>2];e=H[d+4>>2];H[c+96>>2]=H[d>>2];H[c+100>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=da(1699,c+96|0,429744)|0;e=H[197455];H[197455]=0;if((e|0)==1){break t}H[c+120>>2]=H[d+8>>2];e=H[d+4>>2];H[c+112>>2]=H[d>>2];H[c+116>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;f=M[h>>3];g=M[b>>3];i=M[b+16>>3];H[197455]=0;fa(1756,c+16|0,+(f*(i-g)),0);d=H[197455];H[197455]=0;if((d|0)==1){break s}H[197455]=0;d=I[c+27|0];e=d<<24>>24<0;d=ca(1759,c+112|0,(e?H[c+16>>2]:c+16|0)|0,(e?H[c+20>>2]:d)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break r}H[c+136>>2]=H[d+8>>2];e=H[d+4>>2];H[c+128>>2]=H[d>>2];H[c+132>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[197455]=0;d=da(1699,c+128|0,428424)|0;e=H[197455];H[197455]=0;if((e|0)==1){break q}H[c+152>>2]=H[d+8>>2];e=H[d+4>>2];H[c+144>>2]=H[d>>2];H[c+148>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;f=M[h+24>>3];g=M[b+8>>3];i=M[b+24>>3];H[197455]=0;fa(1756,c|0,+(f*(i-g)),0);b=H[197455];H[197455]=0;if((b|0)==1){break p}H[197455]=0;b=I[c+11|0];d=b<<24>>24<0;b=ca(1759,c+144|0,(d?H[c>>2]:c)|0,(d?H[c+4>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break o}H[c+168>>2]=H[b+8>>2];d=H[b+4>>2];H[c+160>>2]=H[b>>2];H[c+164>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,c+160|0,429784)|0;d=H[197455];H[197455]=0;if((d|0)==1){break n}H[c+184>>2]=H[b+8>>2];d=H[b+4>>2];H[c+176>>2]=H[b>>2];H[c+180>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[c+171|0]<0){Kb(H[c+160>>2])}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+139|0]<0){Kb(H[c+128>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+123|0]<0){Kb(H[c+112>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}H[197455]=0;ka(1796,a+84|0,c+192|0,c+176|0,1);a=H[197455];H[197455]=0;if((a|0)==1){break c}if(F[c+187|0]<0){Kb(H[c+176>>2])}if(F[c+203|0]<0){Kb(H[c+192>>2])}xb=c+208|0;return}a=$()|0;_()|0;if(F[c+187|0]>=0){break a}Kb(H[c+176>>2]);ea(a|0);X()}a=$()|0;_()|0;break b}a=$()|0;_()|0;break d}a=$()|0;_()|0;break e}a=$()|0;_()|0;break f}a=$()|0;_()|0;break g}a=$()|0;_()|0;break h}a=$()|0;_()|0;break i}a=$()|0;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;break l}a=$()|0;_()|0;break m}a=$()|0;_()|0;if(F[c+171|0]>=0){break m}Kb(H[c+160>>2])}if(F[c+11|0]>=0){break l}Kb(H[c>>2])}if(F[c+155|0]>=0){break k}Kb(H[c+144>>2])}if(F[c+139|0]>=0){break j}Kb(H[c+128>>2])}if(F[c+27|0]>=0){break i}Kb(H[c+16>>2])}if(F[c+123|0]>=0){break h}Kb(H[c+112>>2])}if(F[c+107|0]>=0){break g}Kb(H[c+96>>2])}if(F[c+43|0]>=0){break f}Kb(H[c+32>>2])}if(F[c+91|0]>=0){break e}Kb(H[c+80>>2])}if(F[c+75|0]>=0){break d}Kb(H[c+64>>2])}if(F[c+59|0]>=0){break b}Kb(H[c+48>>2]);break b}a=$()|0;_()|0;if(F[c+187|0]>=0){break b}Kb(H[c+176>>2])}if(F[c+203|0]>=0){break a}Kb(H[c+192>>2])}ea(a|0);X()}function y0(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=xb-192|0;xb=d;f=M[c+24>>3];h=M[c+8>>3];g=M[c+16>>3];i=M[c>>3];H[197455]=0;g=i+g;fa(1756,d+56|0,+((i+g)*.5),-1);b=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if((b|0)!=1){H[197455]=0;b=aa(899,16)|0;c=H[197455];H[197455]=0;if((c|0)==1){break s}H[d+72>>2]=b;H[d+76>>2]=2;H[d+80>>2]=-2147483644;H[197455]=0;Mb(b,406144,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+8>>2]=0;b=d- -64|0;H[d+92>>2]=H[b>>2];H[b>>2]=0;b=H[d+60>>2];H[d+84>>2]=H[d+56>>2];H[d+88>>2]=b;H[d+56>>2]=0;H[d+60>>2]=0;H[197455]=0;f=h+f;fa(1756,d+40|0,+((h+f)*.5),-1);b=H[197455];H[197455]=0;c=d+96|0;if((b|0)==1){break r}H[197455]=0;e=aa(899,16)|0;j=H[197455];H[197455]=0;b=1;if((j|0)==1){break q}H[d+100>>2]=2;H[d+104>>2]=-2147483644;H[d+96>>2]=e;H[197455]=0;Mb(e,406292,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[e+8>>2]=0;H[d+116>>2]=H[d+48>>2];b=H[d+44>>2];H[d+108>>2]=H[d+40>>2];H[d+112>>2]=b;H[d+48>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[197455]=0;fa(1756,d+24|0,+((g-i)*.5),-1);e=H[197455];H[197455]=0;b=1;c=d+120|0;if((e|0)==1){break p}H[197455]=0;b=aa(899,16)|0;e=H[197455];H[197455]=0;if((e|0)==1){break o}H[d+124>>2]=2;H[d+128>>2]=-2147483644;H[d+120>>2]=b;H[197455]=0;Mb(b,406488,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+8>>2]=0;H[d+140>>2]=H[d+32>>2];b=H[d+28>>2];H[d+132>>2]=H[d+24>>2];H[d+136>>2]=b;H[d+32>>2]=0;H[d+24>>2]=0;H[d+28>>2]=0;H[197455]=0;fa(1756,d+8|0,+((f-h)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break n}H[197455]=0;c=aa(899,16)|0;e=H[197455];H[197455]=0;b=1;if((e|0)==1){break m}H[d+148>>2]=2;H[d+152>>2]=-2147483644;H[d+144>>2]=c;H[197455]=0;Mb(c,406668,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=0;H[c+8>>2]=0;H[d+164>>2]=H[d+16>>2];c=H[d+12>>2];H[d+156>>2]=H[d+8>>2];H[d+160>>2]=c;H[d+16>>2]=0;H[d+172>>2]=4;H[197455]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d+168>>2]=d+72;c=H[d+172>>2];H[d>>2]=H[d+168>>2];H[d+4>>2]=c;e=da(1763,d+176|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break l}if(F[d+167|0]<0){Kb(H[d+156>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+143|0]<0){Kb(H[d+132>>2])}if(F[d+131|0]<0){Kb(H[d+120>>2])}if(F[d+119|0]<0){Kb(H[d+108>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+95|0]<0){Kb(H[d+84>>2])}if(F[d+83|0]<0){Kb(H[d+72>>2])}if(F[d+19|0]<0){Kb(H[d+8>>2])}if(F[d+35|0]<0){Kb(H[d+24>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+72>>2]=b;H[d+76>>2]=7;H[d+80>>2]=-2147483640;H[197455]=0;Mb(b,406892,7);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+28>>2]=0;F[d+67|0]=0;H[197455]=0;H[d+56>>2]=0;ka(1767,a|0,d+72|0,e|0,d+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+83|0]<0){Kb(H[d+72>>2])}a=H[e>>2];if(a){c=H[e+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((b|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}xb=d+192|0;return}a=$()|0;_()|0;ea(a|0);X()}a=$()|0;b=1;c=d+72|0;_()|0;break g}a=$()|0;b=1;_()|0;break g}a=$()|0;_()|0;break h}a=$()|0;_()|0;break h}a=$()|0;b=1;_()|0;break i}a=$()|0;b=1;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;Vb(d+144|0);Vb(d+120|0);Vb(d+96|0);Vb(d+72|0)}if(F[d+19|0]>=0){break j}Kb(H[d+8>>2])}c=d+144|0}if(F[d+35|0]>=0){break h}Kb(H[d+24>>2])}if(F[d+51|0]>=0){break g}Kb(H[d+40>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(!b|(d+72|0)==(c|0)){break b}while(1){c=Vb(c-24|0);if((c|0)!=(d+72|0)){continue}break}break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+83|0]>=0){break c}Kb(H[d+72>>2])}yc(e)}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function wX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-192|0;xb=f;H[197455]=0;h=+(c|0);i=+(e|0);fa(1756,f+56|0,+((h+i)*.5),-1);c=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if((c|0)!=1){H[197455]=0;c=aa(899,16)|0;e=H[197455];H[197455]=0;if((e|0)==1){break s}H[f+72>>2]=c;H[f+76>>2]=2;H[f+80>>2]=-2147483644;H[197455]=0;Mb(c,434100,2);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[c+8>>2]=0;c=f- -64|0;H[f+92>>2]=H[c>>2];H[c>>2]=0;c=H[f+60>>2];H[f+84>>2]=H[f+56>>2];H[f+88>>2]=c;H[f+56>>2]=0;H[f+60>>2]=0;H[197455]=0;j=+(b|0);k=+(d|0);fa(1756,f+40|0,+((j+k)*.5),-1);b=H[197455];H[197455]=0;c=f+96|0;if((b|0)==1){break r}H[197455]=0;b=aa(899,16)|0;e=H[197455];H[197455]=0;d=1;if((e|0)==1){break q}H[f+100>>2]=2;H[f+104>>2]=-2147483644;H[f+96>>2]=b;H[197455]=0;Mb(b,434112,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+8>>2]=0;H[f+116>>2]=H[f+48>>2];b=H[f+44>>2];H[f+108>>2]=H[f+40>>2];H[f+112>>2]=b;H[f+48>>2]=0;H[f+40>>2]=0;H[f+44>>2]=0;H[197455]=0;fa(1756,f+24|0,+((h-i)*.5),-1);b=H[197455];H[197455]=0;c=f+120|0;if((b|0)==1){break p}H[197455]=0;b=aa(899,16)|0;d=H[197455];H[197455]=0;if((d|0)==1){break o}H[f+124>>2]=2;H[f+128>>2]=-2147483644;H[f+120>>2]=b;H[197455]=0;Mb(b,434124,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+8>>2]=0;H[f+140>>2]=H[f+32>>2];b=H[f+28>>2];H[f+132>>2]=H[f+24>>2];H[f+136>>2]=b;H[f+32>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;H[197455]=0;fa(1756,f+8|0,+((j-k)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break n}H[197455]=0;b=aa(899,16)|0;c=H[197455];H[197455]=0;d=1;if((c|0)==1){break m}H[f+148>>2]=2;H[f+152>>2]=-2147483644;H[f+144>>2]=b;H[197455]=0;Mb(b,434136,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}d=0;H[b+8>>2]=0;H[f+164>>2]=H[f+16>>2];b=H[f+12>>2];H[f+156>>2]=H[f+8>>2];H[f+160>>2]=b;H[f+16>>2]=0;H[f+172>>2]=4;H[197455]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f+168>>2]=f+72;b=H[f+172>>2];H[f>>2]=H[f+168>>2];H[f+4>>2]=b;g=da(1763,f+176|0,f|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break l}if(F[f+167|0]<0){Kb(H[f+156>>2])}if(F[f+155|0]<0){Kb(H[f+144>>2])}if(F[f+143|0]<0){Kb(H[f+132>>2])}if(F[f+131|0]<0){Kb(H[f+120>>2])}if(F[f+119|0]<0){Kb(H[f+108>>2])}if(F[f+107|0]<0){Kb(H[f+96>>2])}if(F[f+95|0]<0){Kb(H[f+84>>2])}if(F[f+83|0]<0){Kb(H[f+72>>2])}if(F[f+19|0]<0){Kb(H[f+8>>2])}if(F[f+35|0]<0){Kb(H[f+24>>2])}if(F[f+51|0]<0){Kb(H[f+40>>2])}if(F[f+67|0]<0){Kb(H[f+56>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,g|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,g|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,g|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[f+72>>2]=b;H[f+76>>2]=7;H[f+80>>2]=-2147483640;H[197455]=0;Mb(b,434148,7);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+28>>2]=0;F[f+67|0]=0;H[197455]=0;H[f+56>>2]=0;ka(1767,a|0,f+72|0,g|0,f+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[f+67|0]<0){Kb(H[f+56>>2])}if(F[f+83|0]<0){Kb(H[f+72>>2])}a=H[g>>2];if(a){c=H[g+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((b|0)!=(a|0)){continue}break}b=H[g>>2]}H[g+4>>2]=a;Kb(b)}xb=f+192|0;return}a=$()|0;_()|0;ea(a|0);X()}e=$()|0;d=1;c=f+72|0;_()|0;break g}e=$()|0;d=1;_()|0;break g}e=$()|0;_()|0;break h}e=$()|0;_()|0;break h}e=$()|0;d=1;_()|0;break i}e=$()|0;d=1;_()|0;break j}e=$()|0;_()|0;break k}e=$()|0;_()|0;Vb(f+144|0);Vb(f+120|0);Vb(f+96|0);Vb(f+72|0)}if(F[f+19|0]>=0){break j}Kb(H[f+8>>2])}c=f+144|0}if(F[f+35|0]>=0){break h}Kb(H[f+24>>2])}if(F[f+51|0]>=0){break g}Kb(H[f+40>>2])}if(F[f+67|0]<0){Kb(H[f+56>>2])}if(!d|(f+72|0)==(c|0)){break b}while(1){c=Vb(c-24|0);if((c|0)!=(f+72|0)){continue}break}break b}e=$()|0;_()|0;break c}e=$()|0;_()|0;break c}e=$()|0;_()|0;if(F[f+67|0]<0){Kb(H[f+56>>2])}if(F[f+83|0]>=0){break c}Kb(H[f+72>>2])}yc(g)}ea(e|0);X()}ha(0)|0;_()|0;Zb();X()}function Yba(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;Nb(a+128|0,0,128);d=H[b>>2]+c|0;f=I[d+4|0];j=I[d+3|0];e=f+j|0;g=I[d+7|0];i=I[d|0];h=g+i|0;k=e+h|0;l=I[d+5|0];m=I[d+2|0];n=l+m|0;o=I[d+6|0];p=I[d+1|0];d=o+p|0;q=n+d|0;H[a+16>>2]=k-q<<3;H[a>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=N(e+h|0,4433)+512|0;H[a+24>>2]=d+N(h,-15137)>>10;H[a+8>>2]=d+N(e,6270)>>10;d=j-f|0;f=i-g|0;j=N(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=N(h+k|0,9633)+512|0;l=j+N(d,2446)|0;d=i+N(h,-16069)|0;H[a+28>>2]=l+d>>10;i=i+N(k,-3196)|0;h=N(g,16819);g=N(e+g|0,-20995);H[a+20>>2]=i+(h+g|0)>>10;H[a+12>>2]=d+(g+N(e,25172)|0)>>10;H[a+4>>2]=i+(j+N(f,12299)|0)>>10;d=H[b+4>>2]+c|0;f=I[d+4|0];j=I[d+3|0];e=f+j|0;g=I[d+7|0];i=I[d|0];h=g+i|0;k=e+h|0;l=I[d+5|0];m=I[d+2|0];n=l+m|0;o=I[d+6|0];p=I[d+1|0];d=o+p|0;q=n+d|0;H[a+48>>2]=k-q<<3;H[a+32>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=N(e+h|0,4433)+512|0;H[a+56>>2]=d+N(h,-15137)>>10;H[a+40>>2]=d+N(e,6270)>>10;d=j-f|0;f=i-g|0;j=N(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=N(h+k|0,9633)+512|0;l=j+N(d,2446)|0;d=i+N(h,-16069)|0;H[a+60>>2]=l+d>>10;i=i+N(k,-3196)|0;h=N(g,16819);g=N(e+g|0,-20995);H[a+52>>2]=i+(h+g|0)>>10;H[a+44>>2]=d+(g+N(e,25172)|0)>>10;H[a+36>>2]=i+(j+N(f,12299)|0)>>10;d=H[b+8>>2]+c|0;f=I[d+4|0];j=I[d+3|0];e=f+j|0;g=I[d+7|0];i=I[d|0];h=g+i|0;k=e+h|0;l=I[d+5|0];m=I[d+2|0];n=l+m|0;o=I[d+6|0];p=I[d+1|0];d=o+p|0;q=n+d|0;H[a+80>>2]=k-q<<3;H[a+64>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=N(e+h|0,4433)+512|0;H[a+88>>2]=d+N(h,-15137)>>10;H[a+72>>2]=d+N(e,6270)>>10;d=j-f|0;f=i-g|0;j=N(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=N(h+k|0,9633)+512|0;l=j+N(d,2446)|0;d=i+N(h,-16069)|0;H[a+92>>2]=l+d>>10;i=i+N(k,-3196)|0;h=N(g,16819);g=N(e+g|0,-20995);H[a+84>>2]=i+(h+g|0)>>10;H[a+76>>2]=d+(g+N(e,25172)|0)>>10;H[a+68>>2]=i+(j+N(f,12299)|0)>>10;b=H[b+12>>2]+c|0;c=I[b+4|0];d=I[b+3|0];f=c+d|0;j=I[b+7|0];e=I[b|0];g=j+e|0;i=f+g|0;h=I[b+5|0];k=I[b+2|0];l=h+k|0;m=I[b+6|0];n=I[b+1|0];b=m+n|0;o=l+b|0;H[a+112>>2]=i-o<<3;f=g-f|0;g=b-l|0;b=N(f+g|0,4433)+512|0;H[a+120>>2]=b+N(g,-15137)>>10;b=b+N(f,6270)>>10;H[a+104>>2]=b;c=d-c|0;d=e-j|0;f=N(c+d|0,-7373);j=n-m|0;l=j+c|0;e=k-h|0;h=e+d|0;g=N(l+h|0,9633)+512|0;k=g+N(l,-16069)|0;H[a+124>>2]=k+(f+N(c,2446)|0)>>10;g=g+N(h,-3196)|0;c=N(e,16819);e=N(e+j|0,-20995);H[a+116>>2]=g+(c+e|0)>>10;c=H[a>>2];i=(i+o<<3)+-8192|0;h=(c+i|0)+2|0;l=H[a+64>>2];m=H[a+32>>2];n=l+m|0;H[a+64>>2]=h-n>>2;H[a>>2]=h+n>>2;h=m-l|0;i=c-i|0;c=N(h+i|0,4433)+16384|0;H[a+96>>2]=c+N(h,-15137)>>15;H[a+32>>2]=c+N(i,6270)>>15;c=H[a+4>>2];d=g+(f+N(d,12299)|0)>>10;f=(c+d|0)+2|0;g=H[a+68>>2];i=H[a+36>>2];h=g+i|0;H[a+68>>2]=f-h>>2;H[a+4>>2]=f+h>>2;f=i-g|0;d=c-d|0;c=N(f+d|0,4433)+16384|0;H[a+100>>2]=c+N(f,-15137)>>15;H[a+36>>2]=c+N(d,6270)>>15;c=H[a+8>>2];d=(c+b|0)+2|0;f=H[a+72>>2];g=H[a+40>>2];i=f+g|0;H[a+72>>2]=d-i>>2;H[a+8>>2]=d+i>>2;d=g-f|0;c=c-b|0;b=N(d+c|0,4433)+16384|0;H[a+104>>2]=b+N(d,-15137)>>15;H[a+40>>2]=b+N(c,6270)>>15;b=H[a+12>>2];c=k+(e+N(j,25172)|0)>>10;d=(b+c|0)+2|0;f=H[a+76>>2];j=H[a+44>>2];e=f+j|0;H[a+76>>2]=d-e>>2;H[a+12>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=N(d+c|0,4433)+16384|0;H[a+108>>2]=b+N(d,-15137)>>15;H[a+44>>2]=b+N(c,6270)>>15;b=H[a+16>>2];c=H[a+112>>2];d=(b+c|0)+2|0;f=H[a+80>>2];j=H[a+48>>2];e=f+j|0;H[a+80>>2]=d-e>>2;H[a+16>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=N(d+c|0,4433)+16384|0;H[a+112>>2]=b+N(d,-15137)>>15;H[a+48>>2]=b+N(c,6270)>>15;b=H[a+20>>2];c=H[a+116>>2];d=(b+c|0)+2|0;f=H[a+84>>2];j=H[a+52>>2];e=f+j|0;H[a+84>>2]=d-e>>2;H[a+20>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=N(d+c|0,4433)+16384|0;H[a+116>>2]=b+N(d,-15137)>>15;H[a+52>>2]=b+N(c,6270)>>15;b=H[a+24>>2];c=H[a+120>>2];d=(b+c|0)+2|0;f=H[a+88>>2];j=H[a+56>>2];e=f+j|0;H[a+88>>2]=d-e>>2;H[a+24>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=N(d+c|0,4433)+16384|0;H[a+120>>2]=b+N(d,-15137)>>15;H[a+56>>2]=b+N(c,6270)>>15;b=H[a+28>>2];c=H[a+124>>2];d=(b+c|0)+2|0;f=H[a+92>>2];j=H[a+60>>2];e=f+j|0;H[a+92>>2]=d-e>>2;H[a+28>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=N(d+c|0,4433)+16384|0;H[a+124>>2]=b+N(d,-15137)>>15;H[a+60>>2]=b+N(c,6270)>>15}function jE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=xb-16|0;xb=f;c=H[a+4>>2];d=H[H[c+80>>2]+N(H[c+64>>2],20)>>2];a:{b:{c:{d:{if(b){b=H[a+8>>2];H[f+12>>2]=H[a+16>>2];e=b;g=H[b+84>>2];b=H[b+80>>2];if(!(zb[H[b+164>>2]](e,g,d,f+12|0,H[b+20>>2])|0)){break d}H[(H[c+80>>2]+N(H[c+64>>2],20)|0)+12>>2]=H[f+12>>2];if(I[c+61|0]){e:{if(H[c+84>>2]==H[c+80>>2]){a=H[c+72>>2];if((a|0)==H[c+64>>2]){break e}}if(!ec(c,1,1)){break a}b=H[c+80>>2]+N(H[c+64>>2],20)|0;d=H[b+4>>2];a=H[c+84>>2]+N(H[c+72>>2],20)|0;H[a>>2]=H[b>>2];H[a+4>>2]=d;H[a+16>>2]=H[b+16>>2];d=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=d;a=H[c+72>>2]}H[c+72>>2]=a+1}H[c+64>>2]=H[c+64>>2]+1;break a}if(Mr(a,0,d)){break b}b=H[a+8>>2];H[f+12>>2]=H[a+16>>2];e=b;g=H[b+84>>2];b=H[b+80>>2];if(!(zb[H[b+164>>2]](e,g,d,f+12|0,H[b+20>>2])|0)){break c}H[(H[c+80>>2]+N(H[c+64>>2],20)|0)+12>>2]=H[f+12>>2];if(I[c+61|0]){f:{if(H[c+84>>2]==H[c+80>>2]){a=H[c+72>>2];if((a|0)==H[c+64>>2]){break f}}if(!ec(c,1,1)){break a}b=H[c+80>>2]+N(H[c+64>>2],20)|0;d=H[b+4>>2];a=H[c+84>>2]+N(H[c+72>>2],20)|0;H[a>>2]=H[b>>2];H[a+4>>2]=d;H[a+16>>2]=H[b+16>>2];d=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=d;a=H[c+72>>2]}H[c+72>>2]=a+1}H[c+64>>2]=H[c+64>>2]+1;break a}if(Mr(a,1,d)){break b}}g:{if((J[(H[c+80>>2]+N(H[c+64>>2],20)|0)+16>>1]&31)!=29){break g}h:{if((d|0)<=8191){b=4608;if((d|0)==32|(d|0)==160){break h}break g}i:{switch(d+-8192|0){case 0:case 2:b=512;break h;case 4:b=768;break h;case 5:b=1024;break h;case 6:b=1536;break h;case 7:b=4864;break h;case 8:b=5120;break h;case 9:b=1280;break h;case 10:b=4096;break h;case 47:b=5376;break h;case 95:b=4352;break h;default:if((d|0)!=12288){break g}break;case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 94:break g;case 1:case 3:break i}}b=256}e=H[a+8>>2];H[f+8>>2]=0;g=e;h=H[e+84>>2];e=H[e+80>>2];if(!(zb[H[e+164>>2]](g,h,32,f+8|0,H[e+20>>2])|0)){e=H[c+28>>2];H[f+8>>2]=e;if(!e){break g}}a=H[c+80>>2];d=H[c+64>>2];e=J[(a+N(d,20)|0)+16>>1];if((e&31)==29){G[(N(d,20)+a|0)+16>>1]=e&255|b;d=H[c+64>>2];a=H[c+80>>2]}H[(a+N(d,20)|0)+12>>2]=H[f+8>>2];j:{if(I[c+61|0]){k:{if(H[c+84>>2]==H[c+80>>2]){a=H[c+72>>2];if((a|0)==H[c+64>>2]){break k}}if(!ec(c,1,1)){break j}b=H[c+80>>2]+N(H[c+64>>2],20)|0;d=H[b+4>>2];a=H[c+84>>2]+N(H[c+72>>2],20)|0;H[a>>2]=H[b>>2];H[a+4>>2]=d;H[a+16>>2]=H[b+16>>2];d=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=d;a=H[c+72>>2]}H[c+72>>2]=a+1}H[c+64>>2]=H[c+64>>2]+1}H[c+144>>2]=H[c+144>>2]|4;break a}l:{if((d|0)!=8209){break l}a=H[a+8>>2];H[f+4>>2]=0;b=a;e=H[a+84>>2];a=H[a+80>>2];if(!(zb[H[a+164>>2]](b,e,8208,f+4|0,H[a+20>>2])|0)){break l}H[(H[c+80>>2]+N(H[c+64>>2],20)|0)+12>>2]=H[f+4>>2];if(I[c+61|0]){m:{if(H[c+84>>2]==H[c+80>>2]){a=H[c+72>>2];if((a|0)==H[c+64>>2]){break m}}if(!ec(c,1,1)){break a}b=H[c+80>>2]+N(H[c+64>>2],20)|0;d=H[b+4>>2];a=H[c+84>>2]+N(H[c+72>>2],20)|0;H[a>>2]=H[b>>2];H[a+4>>2]=d;H[a+16>>2]=H[b+16>>2];d=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=d;a=H[c+72>>2]}H[c+72>>2]=a+1}H[c+64>>2]=H[c+64>>2]+1;break a}H[(H[c+80>>2]+N(H[c+64>>2],20)|0)+12>>2]=H[f+12>>2];if(I[c+61|0]){n:{if(H[c+84>>2]==H[c+80>>2]){a=H[c+72>>2];if((a|0)==H[c+64>>2]){break n}}if(!ec(c,1,1)){break a}b=H[c+80>>2]+N(H[c+64>>2],20)|0;d=H[b+4>>2];a=H[c+84>>2]+N(H[c+72>>2],20)|0;H[a>>2]=H[b>>2];H[a+4>>2]=d;H[a+16>>2]=H[b+16>>2];d=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=d;a=H[c+72>>2]}H[c+72>>2]=a+1}H[c+64>>2]=H[c+64>>2]+1;break a}H[c+64>>2]=H[c+64>>2]+1}xb=f+16|0}function yu(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,p=0;k=xb-16|0;xb=k;h=8;a:{if(e>>>0>100){break a}b:{i=H[a+32>>2];if(!i){break b}j=H[a+40>>2];m=H[a+36>>2]+H[a+28>>2]|0;g=m;while(1){c:{H[k+12>>2]=g+2;h=I[g+1|0];l=I[g|0];H[k+12>>2]=g+4;l=h|l<<8;if(l>>>0<=b>>>0&(I[g+3|0]|I[g+2|0]<<8)>>>0>=b>>>0){break c}g=g+8|0;H[k+12>>2]=g;i=i-1|0;if(i){continue}break b}break}g=I[g+4|0]|I[g+5|0]<<8|(I[g+6|0]<<16|I[g+7|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);h=8;if(g>>>0>j-m>>>0){break a}h=g+m|0;g=h+8|0;if(g>>>0>j>>>0){break b}H[k+12>>2]=h+2;i=I[h|0]|I[h+1|0]<<8;H[k+12>>2]=h+4;n=I[h+3|0];o=I[h+2|0];H[k+12>>2]=g;m=I[h+4|0]|I[h+5|0]<<8|(I[h+6|0]<<16|I[h+7|0]<<24);d:{e:{switch(((i<<8|i>>>8)&65535)-1|0){case 0:b=g+(b-l<<2)|0;g=b+8|0;if(g>>>0>j>>>0){break b}H[k+12>>2]=b+4;h=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[k+12>>2]=g;b=I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]<<16|I[b+7|0]<<24);g=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);i=h<<8&16711680|h<<24|(h>>>8&65280|h>>>24);if((g|0)!=(i|0)){break d}break b;case 1:if(g+12>>>0>j>>>0){break b}H[k+12>>2]=g+4;h=I[g+3|0];i=I[g+2|0];p=I[g+1|0];g=I[g|0];if(so(a,k+12|0,j)){break b}l=b-l|0;b=h|(p<<16|g<<24|i<<8);i=N(l,b);g=i+b|0;break d;case 2:b=g+(b-l<<1)|0;if(b+4>>>0>j>>>0){break b}H[k+12>>2]=b+2;h=I[b+1|0];i=I[b|0];H[k+12>>2]=b+4;g=I[b+3|0]|I[b+2|0]<<8;i=h|i<<8;if((g|0)!=(i|0)){break d}break b;case 3:g=g+4|0;if(j>>>0>>0){break b}H[k+12>>2]=g;if(g+4>>>0>j>>>0){break b}h=g-4|0;h=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);h=h<<24|h<<8&16711680|(h>>>8&65280|h>>>24);if(h>>>0>(j-g>>2)-1>>>0|!h){break b}i=0;while(1){H[k+12>>2]=g+2;if((I[g+1|0]|I[g|0]<<8)==(b|0)){H[k+12>>2]=g+4;b=I[g+3|0];h=I[g+2|0];H[k+12>>2]=g+6;i=b|h<<8;g=I[g+7|0]|I[g+6|0]<<8;break d}g=g+4|0;H[k+12>>2]=g;i=i+1|0;if((h|0)!=(i|0)){continue}break};break b;case 4:case 18:break e;default:break b}}if(g+16>>>0>j>>>0){break b}H[k+12>>2]=g+4;h=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);if(so(a,k+12|0,j)){break b}i=H[k+12>>2];g=i+4|0;H[k+12>>2]=g;l=j-g>>1;i=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);j=i<<24|i<<8&16711680|(i>>>8&65280|i>>>24);if(l>>>0>>0|!j){break b}l=h<<8&16711680|h<<24|(h>>>8&65280|h>>>24);i=0;while(1){f:{h=g+2|0;H[k+12>>2]=h;if((I[g+1|0]|I[g|0]<<8)==(b|0)){break f}g=h;i=i+1|0;if((j|0)!=(i|0)){continue}break b}break}i=N(i,l);g=l+i|0}if(g>>>0>>0){break b}l=n|o<<8;j=xb-16|0;xb=j;b=6;h=g-i|0;m=(m<<8&16711680|m<<24|(m>>>8&65280|m>>>24))+i|0;g:{if(!h|K[a+24>>2]>>0){break g}n=H[a+4>>2];b=bc(n,m+H[a+20>>2]|0);if(b){break g}b=Ke(n,h,j+8|0);if(b){break g}g=H[j+8>>2];H[j+12>>2]=g;i=g+h|0;b=7;h:{i:{j:{k:{l:{m:{n:{o:{switch(l-1|0){case 0:case 1:case 7:case 16:b=6;if((h|0)<5){break h}b=H[a+12>>2];G[b>>1]=I[g|0];G[b+2>>1]=I[g+1|0];G[b+4>>1]=F[g+2|0];G[b+6>>1]=F[g+3|0];h=I[g+4|0];G[b+14>>1]=0;G[b+10>>1]=0;G[b+12>>1]=0;G[b+8>>1]=h;F[a+16|0]=1;H[j+12>>2]=g+5;break n;case 18:break h;case 4:break m;case 5:case 6:case 8:case 17:break o;default:break i}}b=so(a,j+12|0,i);if(b){break h}}m=72;b=7;p:{switch(l-1|0){case 16:case 17:break h;case 0:case 5:break j;case 8:break k;case 7:break l;case 4:break m;case 1:case 6:break p;default:break i}}g=H[a+12>>2];b=J[g>>1];h=J[g+2>>1];g=N(b,h+7>>>3|0);if(g>>>0<=N(b,h)+7>>>3>>>0){break m}if((g|0)==(i-H[j+12>>2]|0)){break j}}m=73;break j}b=0;g=H[j+12>>2]+1|0;if(g>>>0>i>>>0){break h}H[j+12>>2]=g}m=74}if(!I[a+17|0]){if(I[a+16|0]){h=H[a+12>>2];b=J[h+2>>1];g=H[a+8>>2];l=J[h>>1];H[g>>2]=l;H[g+4>>2]=b;h=3;q:{r:{s:{t:{switch(I[a+18|0]-1|0){case 0:F[g+18|0]=1;b=b+7>>>3|0;h=2;break r;case 1:F[g+18|0]=3;b=b+3>>>2|0;h=4;break r;case 3:F[g+18|0]=4;b=b+1>>>1|0;h=16;break r;case 7:F[g+18|0]=2;break s;case 31:break t;default:break q}}F[g+18|0]=7;b=b<<2}h=256}G[g+16>>1]=h;H[g+8>>2]=b;h=0;if(f){break q}b=N(b,l);if(!b){break q}h=jn(H[H[a>>2]+84>>2],b);if(h){break q}F[a+17|0]=1;h=0}b=h}else{b=6}if(b){break h}}b=0;if(f){break h}b=zb[m|0](a,H[j+12>>2],i,c,d,e)|0;break h}b=8}nd(n,j+8|0)}xb=j+16|0;h=b;break a}h=e?21:157}xb=k+16|0;return h}function jy(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,w=0,x=0,y=0;c=N(b,1348)+a|0;j=H[c- -64>>2];n=H[c+56>>2];r=j+N(n,44)|0;a:{if((b|0)==1){q=H[a+2748>>2];u=I[H[(H[H[q>>2]+8>>2]<<2)+16352>>2]+12|0];if((n|0)<=0){break a}s=a+2744|0;c=j;while(1){h=I[c+12|0];b:{if(h&4){break b}c:{d:{e:{f=H[c+20>>2];d=H[c+24>>2];f:{if(!f|!d){break f}e=1;if(!H[d+20>>2]){break e}g=I[d+12|0];if(g&8){H[d+20>>2]=0;F[d+12|0]=g&247;f=H[c+20>>2];break f}if(!(h&8)){break e}f=0;H[c+20>>2]=0;F[c+12|0]=h&247}e=(f|0)!=0;if(!d|f){break e}e=H[d+20>>2];if(!e){break b}f=H[e+8>>2];H[d+8>>2]=f;h=I[d+12|0]|4;F[d+12|0]=h;e=d;d=c;break d}if(!e){break b}f=H[f+8>>2];H[c+8>>2]=f;h=I[c+12|0]|4;F[c+12|0]=h;if(!d){break c}e=c;if(H[d+20>>2]){break c}}e=H[e+4>>2];g=H[d+4>>2]-e|0;i=f-e|0;e=I[d+12|0];h=hk(H[s>>2],q,1,g,i,h&255,e);F[d+12|0]=e|4;H[d+8>>2]=f+h}l=l?l:c}c=c+44|0;if(r>>>0>c>>>0){continue}break}}g:{if((n|0)<=0){h=0;break g}w=(n|0)>0;q=a+2748|0;s=a+2744|0;c=j;h=0;while(1){f=I[c+12|0];h:{if(f&4){break h}d=H[c+24>>2];if(!d){h=h+1|0;break h}if(H[d+20>>2]){a=H[d+4>>2];e=H[d+8>>2];a=hk(H[s>>2],H[q>>2],b,H[c+4>>2]-a|0,e-a|0,I[d+12|0],f);F[c+12|0]=f|4;H[c+8>>2]=a+e;break h}if(!l){m=H[s>>2];o=H[q>>2];e=H[c+4>>2];l=H[d+4>>2]-e|0;a=hk(m,o,b,l,0,f,I[d+12|0]);i:{if((a|0)<=95){g=e+(l>>1)|0;t=g+32&-64;p=(a|0)<65;k=t+(p?-32:-38)|0;v=g-k|0;i=v>>31;p=t|(p?32:26);t=g-p|0;g=t>>31;g=((a|0)/-2|0)+((i^v)-i>>>0<(g^t)-g>>>0?k:p)|0;H[c+8>>2]=g;H[d+8>>2]=a+g;a=H[c+8>>2];break i}a=e+32&-64;H[c+8>>2]=a}f=f|4;F[c+12|0]=f;x=d,y=hk(m,o,b,l,a-e|0,f,I[d+12|0])+a|0,H[x+8>>2]=y;l=c;break h}e=H[l+4>>2];k=H[l+8>>2];i=H[c+4>>2];g=H[d+4>>2]-i|0;m=I[d+12|0];a=hk(H[s>>2],H[q>>2],b,g,0,f,m);j:{if(m&4){e=H[d+8>>2]-a|0;a=c;break j}k=k+(i-e|0)|0;e=k+(g>>1)|0;k:{if((a|0)<=95){i=e+32&-64;k=(a|0)<65;m=i+(k?-32:-38)|0;o=e-m|0;g=o>>31;k=i|(k?32:26);i=e-k|0;e=i>>31;e=(g^o)-g>>>0<(e^i)-e>>>0?m:k;a=(a|0)/2|0;H[c+8>>2]=e-a;e=a+e|0;break k}o=a>>>1|0;i=k+32|0;m=i&-64;p=o+(m-e|0)|0;k=p>>31;g=(g+i&-64)-a|0;i=g+(o-e|0)|0;e=i>>31;e=(k^p)-k>>>0<(e^i)-e>>>0?m:g;H[c+8>>2]=e;e=a+e|0}a=d}H[a+8>>2]=e;F[c+12|0]=f|4;F[d+12|0]=I[d+12|0]|4;if(c>>>0<=j>>>0){break h}a=H[c-36>>2];e=H[c+8>>2];l:{if(u){if((a|0)<(e|0)){break l}break h}if((a|0)<=(e|0)){break h}}e=H[d+8>>2]-a|0;d=e>>31;if((d^e)-d>>>0<17){break h}H[c+8>>2]=a}c=c+44|0;if(r>>>0>c>>>0){continue}break}}if(b){break a}c=4;f=2;d=j;m:{switch(n-6|0){case 6:d=j+44|0;c=9;f=5;break;case 0:break m;default:break a}}e=N(f,44)+j|0;a=N(c,44)+j|0;f=(H[e+4>>2]<<1)-(H[d+4>>2]+H[a+4>>2]|0)|0;b=f>>31;if((b^f)-b>>>0>7){break a}b=H[a+8>>2];d=(H[e+8>>2]<<1)-H[d+8>>2]|0;H[a+8>>2]=d;b=b-d|0;a=H[a+24>>2];if(a){H[a+8>>2]=H[a+8>>2]-b}if((n|0)==12){H[j+360>>2]=H[j+360>>2]-b;H[j+492>>2]=H[j+492>>2]-b}b=N(c,44)+j|0;F[b+12|0]=I[b+12|0]|4;if(!a){break a}F[a+12|0]=I[a+12|0]|4}if(!(!(!l|(h|0)!=0)|!w)){c=j;while(1){e=I[c+12|0];n:{if(e&4){break n}o:{p:{q:{a=H[c+28>>2];if(!a){break q}d=H[a+4>>2];f=H[c+4>>2];h=d-f|0;b=h>>31;if((b^h)-b>>>0>79){break q}d=f+(H[a+8>>2]-d|0)|0;break p}d=c;if(!l){d=H[c+4>>2]+32&-64;H[c+8>>2]=d;l=c;break o}while(1){a=d;d=d-44|0;h=j>>>0>d>>>0;if(!(I[a-32|0]&4?1:h)){continue}break}f=c;r:{while(1){b=f;f=b+44|0;n=r>>>0<=f>>>0;if(n){break r}if(!(I[b+56|0]&4)){continue}break}if(c>>>0<=d>>>0|h|(c>>>0>=f>>>0|n)){break r}d=H[a-36>>2];f=H[b+48>>2];a=H[a-40>>2];if((f|0)==(a|0)){break p}d=ic(H[c+4>>2]-a|0,H[b+52>>2]-d|0,f-a|0)+d|0;H[c+8>>2]=d;e=I[c+12|0];break o}d=H[l+8>>2]+((H[c+4>>2]-H[l+4>>2]|0)+16&-32)|0}H[c+8>>2]=d}F[c+12|0]=e|4;s:{if(c>>>0<=j>>>0){break s}a=H[c-36>>2];t:{if(u){if((a|0)<(d|0)){break t}break s}if((a|0)<=(d|0)){break s}}b=H[c+24>>2];if(!b){break s}e=H[b+8>>2]-a|0;b=e>>31;if((b^e)-b>>>0<17){break s}H[c+8>>2]=a;d=a}if(!(I[c+56|0]&4)|c+44>>>0>=r>>>0){break n}a=H[c+52>>2];u:{if(u){if((a|0)>(d|0)){break u}break n}if((a|0)>=(d|0)){break n}}b=H[c+24>>2];if(!b){break n}d=H[b+8>>2]-H[c-36>>2]|0;b=d>>31;if((b^d)-b>>>0<17){break n}H[c+8>>2]=a}c=c+44|0;if(r>>>0>c>>>0){continue}break}}}function $la(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=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=f;H[a+8>>2]=H[b+8>>2];H[a+24>>2]=0;H[a+28>>2]=0;F[a+20|0]=0;F[a+16|0]=0;H[a+12>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;k=a+28|0;i=H[k>>2];if((i|0)>=0){a:{if(i>>>0<513){f=i;while(1){f=((f>>>1|0)+f|0)+8|0;if(f>>>0<=513){continue}break}b:{if(!(f>>>0>>0|f>>>0>134217726)){i=Tb(f<<5);if(i){l=H[k+4>>2];c:{if(!l){break c}if(l-1>>>0>=7){n=l&-8;while(1){g=h<<5;e=g+i|0;H[e>>2]=0;H[e+4>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;e=(g|32)+i|0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;e=(g|64)+i|0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;e=(g|96)+i|0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;e=(g|128)+i|0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;e=(g|160)+i|0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;e=(g|192)+i|0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;g=(g|224)+i|0;H[g+24>>2]=0;H[g+28>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;H[g+4>>2]=0;h=h+8|0;m=m+8|0;if((n|0)!=(m|0)){continue}break}}e=l&7;if(e){while(1){g=(h<<5)+i|0;H[g>>2]=0;H[g+4>>2]=0;H[g+24>>2]=0;H[g+28>>2]=0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;h=h+1|0;j=j+1|0;if((e|0)!=(j|0)){continue}break}}if(!l){j=0;break c}g=0;while(1){j=g<<5;h=j+i|0;j=j+H[k+8>>2]|0;e=H[j+4>>2];H[h>>2]=H[j>>2];H[h+4>>2]=e;e=H[j+12>>2];H[h+8>>2]=H[j+8>>2];H[h+12>>2]=e;e=H[h+16>>2];H[h+16>>2]=H[j+16>>2];H[j+16>>2]=e;e=H[h+20>>2];H[h+20>>2]=H[j+20>>2];H[j+20>>2]=e;e=H[h+24>>2];H[h+24>>2]=H[j+24>>2];H[j+24>>2]=e;g=g+1|0;j=H[k+4>>2];if(g>>>0>>0){continue}break}if(!j){j=0;break c}h=j;while(1){h=H[k+8>>2]+(h<<5)|0;H[h-12>>2]=0;g=h-8|0;Kb(H[g>>2]);H[g>>2]=0;h=h-16|0;H[h>>2]=0;H[h+4>>2]=0;h=H[k+4>>2]-1|0;H[k+4>>2]=h;if(h){continue}break}}H[k+4>>2]=j;Kb(H[k+8>>2])}if(i){break b}}H[k>>2]=-1;break a}H[k>>2]=f;H[k+8>>2]=i}f=H[k+4>>2];d:{if(f>>>0<513){while(1){H[k+4>>2]=f+1;f=H[k+8>>2]+(f<<5)|0;H[f>>2]=0;H[f+4>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;f=H[k+4>>2];if(f>>>0<513){continue}break d}}if(f>>>0<=513){break d}while(1){f=H[k+8>>2]+(f<<5)|0;H[f-12>>2]=0;i=f-8|0;Kb(H[i>>2]);H[i>>2]=0;f=f-16|0;H[f>>2]=0;H[f+4>>2]=0;f=H[k+4>>2]-1|0;H[k+4>>2]=f;if(f>>>0>513){continue}break}}H[k+4>>2]=513}}F[a+40|0]=0;f=H[b+4>>2];i=H[b>>2];H[a+52>>2]=H[b+8>>2];H[a+44>>2]=i;H[a+48>>2]=f;F[a+73|0]=1;F[a+74|0]=0;b=a- -64|0;H[b>>2]=0;H[b+4>>2]=0;F[a+60|0]=0;H[a+56>>2]=0;f=Tb(560);H[a+100>>2]=0;H[a+104>>2]=0;H[a+92>>2]=0;H[a+96>>2]=0;H[a+76>>2]=0;H[a+80>>2]=0;F[a+81|0]=0;F[a+82|0]=0;F[a+83|0]=0;F[a+84|0]=0;F[a+85|0]=0;F[a+86|0]=0;F[a+87|0]=0;F[a+88|0]=0;H[a+128>>2]=0;H[a+132>>2]=0;H[a+136>>2]=0;H[a+140>>2]=0;e:{if(!f){H[a+96>>2]=-1;break e}H[a+96>>2]=20;H[a+104>>2]=f;H[f+24>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f>>2]=0;H[f+4>>2]=0;b=2;H[a+100>>2]=2;H[f+52>>2]=0;H[f+44>>2]=0;H[f+48>>2]=0;H[f+36>>2]=0;H[f+40>>2]=0;H[f+28>>2]=0;H[f+32>>2]=0;while(1){H[a+100>>2]=b+1;b=H[a+104>>2]+N(b,28)|0;H[b>>2]=0;H[b+4>>2]=0;H[b+24>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;b=H[a+100>>2];if(b>>>0<10){continue}break}H[a+100>>2]=10}H[a+112>>2]=c;f:{g:{if(c){b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(b>>>0>1239){break g}}H[a+108>>2]=107;break f}if(b>>>0<=33899){H[a+108>>2]=1131;break f}H[a+108>>2]=32768}H[a+120>>2]=d;h:{if(d){b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(b>>>0>1239){break h}}H[a+116>>2]=107;return}if(b>>>0<=33899){H[a+116>>2]=1131;return}H[a+116>>2]=32768}function s0(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=xb-192|0;xb=d;f=M[c+24>>3];h=M[c+8>>3];g=M[c+16>>3];i=M[c>>3];H[197455]=0;g=i+g;fa(1756,d+56|0,+((i+g)*.5),-1);b=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if((b|0)!=1){H[197455]=0;b=aa(899,16)|0;c=H[197455];H[197455]=0;if((c|0)==1){break s}H[d+72>>2]=b;H[d+76>>2]=2;H[d+80>>2]=-2147483644;H[197455]=0;Mb(b,406144,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+8>>2]=0;b=d- -64|0;H[d+92>>2]=H[b>>2];H[b>>2]=0;b=H[d+60>>2];H[d+84>>2]=H[d+56>>2];H[d+88>>2]=b;H[d+56>>2]=0;H[d+60>>2]=0;H[197455]=0;f=h+f;fa(1756,d+40|0,+((h+f)*.5),-1);b=H[197455];H[197455]=0;c=d+96|0;if((b|0)==1){break r}H[197455]=0;e=aa(899,16)|0;j=H[197455];H[197455]=0;b=1;if((j|0)==1){break q}H[d+100>>2]=2;H[d+104>>2]=-2147483644;H[d+96>>2]=e;H[197455]=0;Mb(e,406292,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[e+8>>2]=0;H[d+116>>2]=H[d+48>>2];b=H[d+44>>2];H[d+108>>2]=H[d+40>>2];H[d+112>>2]=b;H[d+48>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[197455]=0;fa(1756,d+24|0,+((g-i)*.5),-1);e=H[197455];H[197455]=0;b=1;c=d+120|0;if((e|0)==1){break p}H[197455]=0;b=aa(899,16)|0;e=H[197455];H[197455]=0;if((e|0)==1){break o}H[d+124>>2]=2;H[d+128>>2]=-2147483644;H[d+120>>2]=b;H[197455]=0;Mb(b,406488,2);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+8>>2]=0;H[d+140>>2]=H[d+32>>2];b=H[d+28>>2];H[d+132>>2]=H[d+24>>2];H[d+136>>2]=b;H[d+32>>2]=0;H[d+24>>2]=0;H[d+28>>2]=0;H[197455]=0;fa(1756,d+8|0,+((f-h)*.5),-1);b=H[197455];H[197455]=0;if((b|0)==1){break n}H[197455]=0;c=aa(899,16)|0;e=H[197455];H[197455]=0;b=1;if((e|0)==1){break m}H[d+148>>2]=2;H[d+152>>2]=-2147483644;H[d+144>>2]=c;H[197455]=0;Mb(c,406668,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=0;H[c+8>>2]=0;H[d+164>>2]=H[d+16>>2];c=H[d+12>>2];H[d+156>>2]=H[d+8>>2];H[d+160>>2]=c;H[d+16>>2]=0;H[d+172>>2]=4;H[197455]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d+168>>2]=d+72;c=H[d+172>>2];H[d>>2]=H[d+168>>2];H[d+4>>2]=c;e=da(1763,d+176|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break l}if(F[d+167|0]<0){Kb(H[d+156>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+143|0]<0){Kb(H[d+132>>2])}if(F[d+131|0]<0){Kb(H[d+120>>2])}if(F[d+119|0]<0){Kb(H[d+108>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+95|0]<0){Kb(H[d+84>>2])}if(F[d+83|0]<0){Kb(H[d+72>>2])}if(F[d+19|0]<0){Kb(H[d+8>>2])}if(F[d+35|0]<0){Kb(H[d+24>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}H[197455]=0;a=a+8|0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+72>>2]=b;H[d+76>>2]=7;H[d+80>>2]=-2147483640;H[197455]=0;Mb(b,406892,7);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+28>>2]=0;F[d+67|0]=0;H[197455]=0;H[d+56>>2]=0;ka(1767,a|0,d+72|0,e|0,d+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+83|0]<0){Kb(H[d+72>>2])}a=H[e>>2];if(a){c=H[e+4>>2];if((a|0)==(c|0)){b=a}else{while(1){if(F[c-1|0]<0){Kb(H[c-12>>2])}b=c-24|0;if(F[c-13|0]<0){Kb(H[b>>2])}c=b;if((b|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}xb=d+192|0;return}a=$()|0;_()|0;ea(a|0);X()}a=$()|0;b=1;c=d+72|0;_()|0;break g}a=$()|0;b=1;_()|0;break g}a=$()|0;_()|0;break h}a=$()|0;_()|0;break h}a=$()|0;b=1;_()|0;break i}a=$()|0;b=1;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;Vb(d+144|0);Vb(d+120|0);Vb(d+96|0);Vb(d+72|0)}if(F[d+19|0]>=0){break j}Kb(H[d+8>>2])}c=d+144|0}if(F[d+35|0]>=0){break h}Kb(H[d+24>>2])}if(F[d+51|0]>=0){break g}Kb(H[d+40>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(!b|(d+72|0)==(c|0)){break b}while(1){c=Vb(c-24|0);if((c|0)!=(d+72|0)){continue}break}break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+83|0]>=0){break c}Kb(H[d+72>>2])}yc(e)}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function dy(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,w=0,x=0,y=0;h=xb-560|0;xb=h;g=c;c=(c-3|0)/24|0;t=(c|0)>0?c:0;m=g+N(t,-24)|0;n=H[(e<<2)+752608>>2];j=d-1|0;if((n+j|0)>=0){g=d+n|0;c=t-j|0;while(1){M[(h+320|0)+(i<<3)>>3]=(c|0)<0?0:+H[(c<<2)+752624>>2];c=c+1|0;i=i+1|0;if((g|0)!=(i|0)){continue}break}}q=m-24|0;g=0;i=(n|0)>0?n:0;l=(d|0)<=0;while(1){a:{if(l){f=0;break a}r=g+j|0;c=0;f=0;while(1){f=M[(c<<3)+a>>3]*M[(h+320|0)+(r-c<<3)>>3]+f;c=c+1|0;if((d|0)!=(c|0)){continue}break}}M[(g<<3)+h>>3]=f;c=(g|0)==(i|0);g=g+1|0;if(!c){continue}break}x=47-m|0;r=48-m|0;y=m-25|0;g=n;b:{while(1){f=M[(g<<3)+h>>3];c=0;i=g;o=(g|0)<=0;if(!o){while(1){l=(h+480|0)+(c<<2)|0;k=f*5.960464477539063e-8;c:{if(P(k)<2147483648){j=~~k;break c}j=-2147483648}k=+(j|0);f=k*-16777216+f;d:{if(P(f)<2147483648){j=~~f;break d}j=-2147483648}H[l>>2]=j;i=i-1|0;f=M[(i<<3)+h>>3]+k;c=c+1|0;if((g|0)!=(c|0)){continue}break}}f=sh(f,q);f=f+T(f*.125)*-8;e:{if(P(f)<2147483648){l=~~f;break e}l=-2147483648}f=f-+(l|0);f:{g:{h:{u=(q|0)<=0;i:{if(!u){i=(g<<2)+h|0;j=H[i+476>>2];c=j>>r;s=i;i=j-(c<>2]=i;l=c+l|0;j=i>>x;break i}if(q){break h}j=H[((g<<2)+h|0)+476>>2]>>23}if((j|0)<=0){break f}break g}j=2;if(f>=.5){break g}j=0;break f}c=0;i=0;if(!o){while(1){s=(h+480|0)+(c<<2)|0;o=H[s>>2];v=16777215;j:{k:{if(i){break k}v=16777216;if(o){break k}i=0;break j}H[s>>2]=v-o;i=1}c=c+1|0;if((g|0)!=(c|0)){continue}break}}l:{if(u){break l}c=8388607;m:{switch(y|0){case 1:c=4194303;break;case 0:break m;default:break l}}o=(g<<2)+h|0;H[o+476>>2]=H[o+476>>2]&c}l=l+1|0;if((j|0)!=2){break f}f=1-f;j=2;if(!i){break f}f=f-sh(1,q)}if(f==0){i=0;c=g;n:{if((c|0)<=(n|0)){break n}while(1){c=c-1|0;i=H[(h+480|0)+(c<<2)>>2]|i;if((c|0)>(n|0)){continue}break}if(!i){break n}m=q;while(1){m=m-24|0;g=g-1|0;if(!H[(h+480|0)+(g<<2)>>2]){continue}break}break b}c=1;while(1){i=c;c=c+1|0;if(!H[(h+480|0)+(n-i<<2)>>2]){continue}break}i=g+i|0;while(1){j=d+g|0;g=g+1|0;M[(h+320|0)+(j<<3)>>3]=H[(t+g<<2)+752624>>2];c=0;f=0;if((d|0)>0){while(1){f=M[(c<<3)+a>>3]*M[(h+320|0)+(j-c<<3)>>3]+f;c=c+1|0;if((d|0)!=(c|0)){continue}break}}M[(g<<3)+h>>3]=f;if((g|0)<(i|0)){continue}break}g=i;continue}break}f=sh(f,24-m|0);o:{if(f>=16777216){d=(h+480|0)+(g<<2)|0;k=f*5.960464477539063e-8;p:{if(P(k)<2147483648){c=~~k;break p}c=-2147483648}f=+(c|0)*-16777216+f;q:{if(P(f)<2147483648){a=~~f;break q}a=-2147483648}H[d>>2]=a;g=g+1|0;break o}if(P(f)<2147483648){c=~~f}else{c=-2147483648}m=q}H[(h+480|0)+(g<<2)>>2]=c}f=sh(1,m);r:{if((g|0)<0){break r}d=g;while(1){a=d;M[(d<<3)+h>>3]=f*+H[(h+480|0)+(d<<2)>>2];d=d-1|0;f=f*5.960464477539063e-8;if(a){continue}break}if((g|0)<0){break r}c=g;while(1){a=c;d=g-c|0;f=0;c=0;while(1){s:{f=M[(c<<3)+755392>>3]*M[(a+c<<3)+h>>3]+f;if((c|0)>=(n|0)){break s}i=c>>>0>>0;c=c+1|0;if(i){continue}}break}M[(h+160|0)+(d<<3)>>3]=f;c=a-1|0;if((a|0)>0){continue}break}}t:{u:{v:{switch(e|0){case 3:w:{if((g|0)<=0){break w}f=M[(h+160|0)+(g<<3)>>3];c=g;while(1){k=f;d=h+160|0;a=c-1|0;e=d+(a<<3)|0;w=M[e>>3];f=w+f;M[d+(c<<3)>>3]=k+(w-f);M[e>>3]=f;d=c>>>0>1;c=a;if(d){continue}break}if((g|0)<2){break w}f=M[(h+160|0)+(g<<3)>>3];c=g;while(1){k=f;d=h+160|0;a=c-1|0;e=d+(a<<3)|0;p=M[e>>3];f=p+f;M[d+(c<<3)>>3]=k+(p-f);M[e>>3]=f;d=c>>>0>2;c=a;if(d){continue}break}p=0;if((g|0)<=1){break w}while(1){p=p+M[(h+160|0)+(g<<3)>>3];a=(g|0)>2;g=g-1|0;if(a){continue}break}}f=M[h+160>>3];if(j){break u}M[b>>3]=f;f=M[h+168>>3];M[b+16>>3]=p;M[b+8>>3]=f;break t;case 0:f=0;if((g|0)>=0){while(1){a=g;g=g-1|0;f=f+M[(h+160|0)+(a<<3)>>3];if(a){continue}break}}M[b>>3]=j?-f:f;break t;case 1:case 2:break v;default:break t}}f=0;if((g|0)>=0){d=g;while(1){a=d;d=d-1|0;f=f+M[(h+160|0)+(a<<3)>>3];if(a){continue}break}}M[b>>3]=j?-f:f;f=M[h+160>>3]-f;c=1;if((g|0)>0){while(1){f=f+M[(h+160|0)+(c<<3)>>3];a=(c|0)!=(g|0);c=c+1|0;if(a){continue}break}}M[b+8>>3]=j?-f:f;break t}M[b>>3]=-f;f=M[h+168>>3];M[b+16>>3]=-p;M[b+8>>3]=-f}xb=h+560|0;return l&7}function Ir(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,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;i=xb+-64|0;H[i+48>>2]=0;H[i+52>>2]=0;H[i+56>>2]=0;H[i+60>>2]=0;H[i+32>>2]=0;H[i+36>>2]=0;H[i+40>>2]=0;H[i+44>>2]=0;a:{b:{c:{d:{e:{if(c){if(c-1>>>0>=3){n=c&-4;while(1){m=i+32|0;l=k<<1;h=m+(J[l+b>>1]<<1)|0;G[h>>1]=J[h>>1]+1;h=m+(J[(l|2)+b>>1]<<1)|0;G[h>>1]=J[h>>1]+1;h=m+(J[(l|4)+b>>1]<<1)|0;G[h>>1]=J[h>>1]+1;h=m+(J[(l|6)+b>>1]<<1)|0;G[h>>1]=J[h>>1]+1;k=k+4|0;g=g+4|0;if((n|0)!=(g|0)){continue}break}}h=c&3;if(h){while(1){g=(i+32|0)+(J[(k<<1)+b>>1]<<1)|0;G[g>>1]=J[g>>1]+1;k=k+1|0;j=j+1|0;if((h|0)!=(j|0)){continue}break}}k=H[e>>2];l=15;g=J[i+62>>1];if(g){break d}break e}k=H[e>>2]}l=14;g=0;if(J[i+60>>1]){break d}l=13;if(J[i+58>>1]){break d}l=12;if(J[i+56>>1]){break d}l=11;if(J[i+54>>1]){break d}l=10;if(J[i+52>>1]){break d}l=9;if(J[i+50>>1]){break d}l=8;if(J[i+48>>1]){break d}l=7;if(J[i+46>>1]){break d}l=6;if(J[i+44>>1]){break d}l=5;if(J[i+42>>1]){break d}l=4;if(J[i+40>>1]){break d}l=3;if(J[i+38>>1]){break d}l=2;if(J[i+36>>1]){break d}if(!J[i+34>>1]){a=H[d>>2];H[d>>2]=a+4;G[a>>1]=320;G[a+2>>1]=0;a=H[d>>2];H[d>>2]=a+4;G[a>>1]=320;G[a+2>>1]=0;m=1;break b}r=(k|0)!=0;l=1;k=1;break c}r=k>>>0>>0?k:l;p=1;k=1;while(1){if(J[(i+32|0)+(k<<1)>>1]){break c}k=k+1|0;if((l|0)!=(k|0)){continue}break}k=l}j=-1;o=J[i+34>>1];if(o>>>0>2){break a}s=J[i+36>>1];h=4-(s+(o<<1)|0)|0;if((h|0)<0){break a}q=J[i+38>>1];h=(h<<1)-q|0;if((h|0)<0){break a}t=J[i+40>>1];h=(h<<1)-t|0;if((h|0)<0){break a}u=J[i+42>>1];h=(h<<1)-u|0;if((h|0)<0){break a}w=J[i+44>>1];h=(h<<1)-w|0;if((h|0)<0){break a}x=J[i+46>>1];h=(h<<1)-x|0;if((h|0)<0){break a}z=J[i+48>>1];h=(h<<1)-z|0;if((h|0)<0){break a}A=J[i+50>>1];h=(h<<1)-A|0;if((h|0)<0){break a}y=J[i+52>>1];h=(h<<1)-y|0;if((h|0)<0){break a}B=J[i+54>>1];h=(h<<1)-B|0;if((h|0)<0){break a}v=J[i+56>>1];h=(h<<1)-v|0;if((h|0)<0){break a}m=J[i+58>>1];h=(h<<1)-m|0;if((h|0)<0){break a}n=J[i+60>>1];h=(h<<1)-n|0;if((h|0)<0){break a}h=h<<1;if(h>>>0>>0|(!a|p?(g|0)!=(h|0):0)){break a}C=k>>>0>>0;j=0;G[i+2>>1]=0;G[i+4>>1]=o;g=o+s|0;G[i+6>>1]=g;g=g+q|0;G[i+8>>1]=g;g=g+t|0;G[i+10>>1]=g;g=g+u|0;G[i+12>>1]=g;g=g+w|0;G[i+14>>1]=g;g=g+x|0;G[i+16>>1]=g;g=g+z|0;G[i+18>>1]=g;g=g+A|0;G[i+20>>1]=g;g=g+y|0;G[i+22>>1]=g;g=g+B|0;G[i+24>>1]=g;g=g+v|0;G[i+26>>1]=g;g=g+m|0;G[i+28>>1]=g;G[i+30>>1]=g+n;f:{if(!c){break f}if((c|0)!=1){m=c&-2;g=0;while(1){h=J[(j<<1)+b>>1];if(h){h=(h<<1)+i|0;n=J[h>>1];G[h>>1]=n+1;G[(n<<1)+f>>1]=j}n=j|1;h=J[(n<<1)+b>>1];if(h){h=(h<<1)+i|0;v=J[h>>1];G[h>>1]=v+1;G[(v<<1)+f>>1]=n}j=j+2|0;g=g+2|0;if((m|0)!=(g|0)){continue}break}}if(!(c&1)){break f}c=J[(j<<1)+b>>1];if(!c){break f}c=(c<<1)+i|0;g=J[c>>1];G[c>>1]=g+1;G[(g<<1)+f>>1]=j}m=C?r:k;s=20;z=0;n=f;w=n;A=0;g:{h:{switch(a|0){case 1:j=1;if(m>>>0>9){break a}s=257;w=242192;n=242128;A=1;break g;case 0:break g;default:break h}}z=(a|0)==2;s=0;w=242320;n=242256;if((a|0)!=2){break g}j=1;if(m>>>0>9){break a}}q=1<>2];u=0;g=m;o=0;p=0;a=-1;while(1){h=1<>1];c=0;j:{if(g+1>>>0>>0){break j}if(g>>>0>>0){g=0;c=96;break j}c=g-s<<1;g=J[c+n>>1];c=I[c+w|0]}v=p>>>o|0;C=-1<>1]=g;F[y+1|0]=x;F[y|0]=c;if(j){continue}break}g=1<>>1|0;if(c&p){continue}break}g=(i+32|0)+(k<<1)|0;j=J[g>>1]-1|0;G[g>>1]=j;p=c?c+(c-1&p)|0:0;u=u+1|0;if(!(j&65535)){if((k|0)==(l|0)){break i}k=J[(J[(u<<1)+f>>1]<<1)+b>>1]}if(k>>>0<=m>>>0){continue}c=p&B;if((c|0)==(a|0)){continue}break}o=o?o:m;g=k-o|0;r=1<>>0>>0){a=l-o|0;j=k;k:{while(1){j=r-J[(i+32|0)+(j<<1)>>1]|0;if((j|0)<=0){break k}r=j<<1;g=g+1|0;j=o+g|0;if(l>>>0>j>>>0){continue}break}g=a}r=1<>>0>852&A|q>>>0>592&z){break a}a=H[d>>2];j=a+(c<<2)|0;F[j+1|0]=m;F[j|0]=g;t=(h<<2)+t|0;G[j+2>>1]=t-a>>>2;a=c;continue}break}if(p){a=(p<<2)+t|0;G[a+2>>1]=0;F[a+1|0]=x;F[a|0]=64}H[d>>2]=H[d>>2]+(q<<2)}H[e>>2]=m;j=0}return j}function rE(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,r=0,s=0;F[a|0]=0;F[a+1|0]=0;h=Ni(b);a:{b:{if(H[b+20>>2]){break b}i=4;c:{g=h+2|0;f=H[b+4>>2];d=g-f|0;if((d|0)<0|(d|0)>(H[b+8>>2]-f|0)){break c}m=H[c+16>>2];j=H[c+12>>2];k=H[c+4>>2];l=H[c>>2];d:{if((f|0)==(g|0)){H[b+4>>2]=d+g;break d}Nb(f,0,d);c=H[b+4>>2];H[b+4>>2]=c+d;if(!c){break b}}e:{f:{g:{h:{if(!(!k|!m)){q=(m<<1)+j|0;r=(k<<1)+l|0;f=-2;g=m;e=j;c=k;d=l;while(1){i=c?d:163632;i=I[i|0]|I[i+1|0]<<8;i=(i<<8|i>>>8)&65535;o=((i|0)!=(f+1|0))+o|0;n=n+1|0;f=!!c;d=(f<<1)+d|0;if(!((r|0)!=(d|0)|(c|0)!=(f|0))){break h}c=c-f|0;p=!!g;g=g-p|0;f=i;e=(p<<1)+e|0;if((q|0)!=(e|0)){continue}break}break h}F[h|0]=0;F[h+1|0]=1;break g}c=N(o,3)>>>0>>0;d=c?512:256;F[h|0]=d;F[h+1|0]=d>>>8;if(c-1|0){break g}break f}if(H[b+20>>2]){break b}i=4;f=h+4|0;d=H[b+4>>2];c=f-d|0;if((c|0)<0|(c|0)>(H[b+8>>2]-d|0)){break c}i:{if((d|0)==(f|0)){H[b+4>>2]=(c+h|0)+4;break i}Nb(d,0,c);e=c;c=H[b+4>>2];H[b+4>>2]=e+c;if(!c){break b}}c=k>>>0>>0?k:m;d=c<<8|(c&65280)>>>8;F[h+2|0]=d;F[h+3|0]=d>>>8;d=H[b+20>>2];if(c>>>0>=65536){H[b+20>>2]=d|16;break b}if(d){break b}g=((c<<1&131070)+h|0)+4|0;f=H[b+4>>2];d=g-f|0;if((d|0)<0|(d|0)>(H[b+8>>2]-f|0)){break c}j:{if((f|0)==(g|0)){H[b+4>>2]=d+g;break j}Nb(f,0,d);e=d;d=H[b+4>>2];H[b+4>>2]=e+d;if(!d){break b}}if(!c){break e}d=0;if((c|0)!=1){m=c&-2;g=0;while(1){f=(d<<1)+h|0;j=k?l:163632;j=I[j|0]|I[j+1|0]<<8;F[f+4|0]=j;F[f+5|0]=j>>>8;j=((d|1)<<1)+h|0;f=!!k;l=(f<<1)+l|0;e=(f|0)==(k|0);i=e?163632:l;i=I[i|0]|I[i+1|0]<<8;F[j+4|0]=i;F[j+5|0]=i>>>8;d=d+2|0;j=!e;l=l+(j<<1)|0;k=k-(f+j|0)|0;g=g+2|0;if((m|0)!=(g|0)){continue}break}}if(!(c&1)){break e}c=(d<<1)+h|0;d=k?l:163632;d=I[d|0]|I[d+1|0]<<8;F[c+4|0]=d;F[c+5|0]=d>>>8;break e}if(H[b+20>>2]){break b}i=4;f=h+4|0;d=H[b+4>>2];c=f-d|0;if((c|0)<0|(c|0)>(H[b+8>>2]-d|0)){break c}k:{if((d|0)==(f|0)){e=c+f|0;H[b+4>>2]=e;break k}Nb(d,0,c);e=c;c=H[b+4>>2];e=e+c|0;H[b+4>>2]=e;if(!c){break b}}o=0;f=-2;g=m;i=j;c=k;d=l;while(1){p=!!g;n=c?d:163632;n=I[n|0]|I[n+1|0]<<8;n=(n<<8|n>>>8)&65535;o=((n|0)!=(f+1|0))+o|0;f=!!c;d=(f<<1)+d|0;if((r|0)!=(d|0)|(c|0)!=(f|0)){c=c-f|0;g=g-p|0;f=n;i=(p<<1)+i|0;if((q|0)!=(i|0)){continue}}break}if(H[b+20>>2]){break b}i=4;d=h+4|0;c=d-e|0;if((c|0)<0|(c|0)>(H[b+8>>2]-e|0)){break c}l:{if((d|0)==(e|0)){H[b+4>>2]=c+e;break l}Nb(e,0,c);e=c;c=H[b+4>>2];H[b+4>>2]=e+c;if(!c){break b}}c=o<<8|(o&65280)>>>8;F[h+2|0]=c;F[h+3|0]=c>>>8;c=H[b+20>>2];if(o>>>0>=65536){i=c|16;break c}if(c){break b}f=(N(o,6)+h|0)+4|0;d=H[b+4>>2];c=f-d|0;if((c|0)<0|(c|0)>(H[b+8>>2]-d|0)){break c}m:{if((d|0)==(f|0)){H[b+4>>2]=c+f;break m}Nb(d,0,c);e=c;c=H[b+4>>2];H[b+4>>2]=e+c;if(!c){break b}}d=-2;c=-1;f=0;while(1){e=d+1|0;d=k?l:163632;g=I[d|0]|I[d+1|0]<<8;d=(g<<8|g>>>8)&65535;if((e|0)!=(d|0)){c=c+1|0;e=I[h+2|0]|I[h+3|0]<<8;n:{if(c>>>0>=((e<<8|e>>>8)&65535)>>>0){G[392498]=I[164028]|I[164029]<<8;H[196248]=I[164024]|I[164025]<<8|(I[164026]<<16|I[164027]<<24);e=784992;break n}e=(N(c,6)+h|0)+4|0}F[e|0]=g;F[e+1|0]=g>>>8;e=I[h+2|0]|I[h+3|0]<<8;o:{if(((e<<8|e>>>8)&65535)>>>0<=c>>>0){G[392498]=I[164028]|I[164029]<<8;H[196248]=I[164024]|I[164025]<<8|(I[164026]<<16|I[164027]<<24);e=784992;break o}e=(N(c,6)+h|0)+4|0}i=f<<8|(f&65280)>>>8;F[e+4|0]=i;F[e+5|0]=i>>>8}e=I[h+2|0]|I[h+3|0]<<8;p:{if(((e<<8|e>>>8)&65535)>>>0<=c>>>0){G[392498]=I[164028]|I[164029]<<8;H[196248]=I[164024]|I[164025]<<8|(I[164026]<<16|I[164027]<<24);e=784992;break p}e=(N(c,6)+h|0)+4|0}F[e+2|0]=g;F[e+3|0]=g>>>8;g=!!k;l=(g<<1)+l|0;if(!((r|0)!=(l|0)|(g|0)!=(k|0))){break e}f=f+1|0;k=k-g|0;g=!!m;m=m-g|0;j=(g<<1)+j|0;if((q|0)!=(j|0)){continue}break}}s=1;Sj(b,a,Zh(b,1));break a}H[b+20>>2]=i}a=H[b+40>>2];if(H[b+20>>2]|!a){break a}H[b+40>>2]=H[a+32>>2];c=H[a+4>>2];H[b+4>>2]=H[a>>2];H[b+8>>2]=c;Rj(b);H[a+12>>2]=0;Kb(H[a+16>>2]);H[a+24>>2]=0;H[a+16>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;Kb(H[a+28>>2]);H[a+28>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[a>>2]=H[b+24>>2];H[b+24>>2]=a;return 0}return s}function WM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-176|0;xb=f;H[f+172>>2]=0;i=H[e+32>>2];if(i){h=H[i+100>>2]}a:{b:{if(gc(a,11158,7)){break b}c:{g=I[a+7|0];switch(g|0){case 0:case 9:case 10:case 13:case 32:break c;default:break b}}c=0;if(!H[H[e+36>>2]+8>>2]|!i){break a}c=H[i+100>>2];H[f+32>>2]=0;h=c;c=H[i+88>>2];e=(g?-8:-7)+b|0;d=e+1|0;b=Ub(h,1,c,d+c|0,H[i+84>>2],f+32|0);H[i+84>>2]=b;c=H[f+32>>2];if(c){break a}j=Ob(b+H[i+88>>2]|0,g?a+8|0:a+7|0,e)+e|0,k=10,F[j|0]=k;H[i+88>>2]=d+H[i+88>>2];c=H[f+32>>2];break a}g=H[e>>2];if(!(g&1)){g=H[e+56>>2];c=176;if(gc(a,11270,9)){break a}d:{switch(I[a+9|0]){case 0:case 9:case 10:case 13:case 32:break d;default:break a}}a=0;H[e+32>>2]=0;H[e>>2]=1;b=pc(g,136,f+172|0);c=H[f+172>>2];if(c){break a}H[e+32>>2]=b;H[b+100>>2]=H[e+56>>2];H[e+56>>2]=0;b=b+112|0;c=hD(b,g);H[f+172>>2]=c;if(c){break a}d=21680;while(1){c=ln(H[d>>2],a,b,g);H[f+172>>2]=c;if(c){break a}d=d+16|0;a=a+1|0;if((a|0)!=83){continue}break}a=pc(g,24,f+172|0);H[H[e+32>>2]+92>>2]=a;c=H[f+172>>2];if(c){break a}c=hD(a,g);if(c){break a}b=H[H[e+36>>2]+12>>2];a=H[e+32>>2];H[a+36>>2]=-1;H[a+28>>2]=b;c=0;break a}e:{f:{if(gc(a,11394,15)){break f}g:{switch(I[a+15|0]){case 0:case 9:case 10:case 13:case 32:break g;default:break f}}c=179;if(!(g&8)){break e}c=sf(e+40|0,11510,a,b);H[f+172>>2]=c;if(c){break a}a=H[e+32>>2];b=Ti(H[H[e+40>>2]+4>>2]);H[a+72>>2]=b;H[e+4>>2]=b;if(b>>>0>H[e+60>>2]>>>2>>>0){H[a+72>>2]=0;c=6;break e}b=Ub(h,16,0,b,0,f+172|0);a=H[e+32>>2];H[a+80>>2]=b;c=H[f+172>>2];if(c){H[a+72>>2]=0;break a}H[e>>2]=H[e>>2]|16;H[d>>2]=3;c=0;break a}h:{if(gc(a,11606,15)){break h}i:{switch(I[a+15|0]){case 0:case 9:case 10:case 13:case 32:break i;default:break h}}c=178;if(!(g&4)){break e}c=sf(e+40|0,11510,a,b);H[f+172>>2]=c;if(c){break a}d=H[e+32>>2];b=H[e+40>>2];j=d,k=El(H[b+4>>2]),G[j+4>>1]=k;a=El(H[b+8>>2]);G[d+6>>1]=a;j=d,k=ck(H[b+12>>2]),G[j+8>>1]=k;b=ck(H[b+16>>2]);G[d+10>>1]=b;c=0;G[d+14>>1]=0-b;G[d+12>>1]=a+b;H[e>>2]=H[e>>2]|8;break a}j:{k:{if(gc(a,11730,4)){break k}l:{switch(I[a+4|0]){case 0:case 9:case 10:case 13:case 32:break l;default:break k}}d=e+40|0;c=sf(d,11510,a,b);H[f+172>>2]=c;if(c){break a}vu(d);b=tu(d,f+32|0);if(!b){break j}a=H[H[e+32>>2]>>2];if(a){zb[H[h+8>>2]](h,a)}H[H[e+32>>2]>>2]=0;a=H[f+32>>2]+1|0;d=Ub(h,1,0,a,0,f+172|0);H[H[e+32>>2]>>2]=d;c=H[f+172>>2];if(c){break a}Ob(d,b,a);b=H[e+36>>2];h=xb-272|0;xb=h;d=6;g=H[e+32>>2];m:{if(!g){break m}c=H[g>>2];if(!c|!I[c|0]){break m}a=H[g+100>>2];H[h+8>>2]=0;H[h>>2]=0;H[h+4>>2]=0;H[h+12>>2]=a;H[g+28>>2]=H[b+12>>2];b=ac(c)+1|0;if(b>>>0>255){break m}a=h+16|0;Ob(a,c,b);d=sf(h,24292,a,b);n:{if(d|H[h+8>>2]!=15){break n}c=32;o:{p:{switch(F[H[H[h>>2]+44>>2]]-67|0){case 10:case 42:c=16;break o;case 0:case 32:break o;case 13:case 45:break p;default:break n}}c=8}H[g+28>>2]=c}b=H[h+12>>2];if(!b){break m}a=H[h>>2];if(a){zb[H[b+8>>2]](b,a)}}xb=h+272|0;c=d;H[f+172>>2]=c;if(c){break a}H[e>>2]=H[e>>2]|2;c=0;break a}q:{if(gc(a,11809,4)){break q}r:{switch(I[a+4|0]){case 0:case 9:case 10:case 13:case 32:break r;default:break q}}c=177;if(!(g&2)){break e}c=sf(e+40|0,11510,a,b);H[f+172>>2]=c;if(c){break a}b=H[e+32>>2];a=H[e+40>>2];j=b,k=Ti(H[a+4>>2]),H[j+16>>2]=k;j=b,k=Ti(H[a+8>>2]),H[j+20>>2]=k;j=b,k=Ti(H[a+12>>2]),H[j+24>>2]=k;s:{if(H[e+48>>2]==5){a=ck(H[a+16>>2]);if(a>>>0>=5){G[b+96>>1]=8;break s}if(a>>>0>=3){G[b+96>>1]=4;break s}if((a|0)==2){G[b+96>>1]=2;break s}G[b+96>>1]=1;break s}G[b+96>>1]=1}H[e>>2]=H[e>>2]|4;c=0;break a}if(gc(a,11901,5)){break j}t:{switch(I[a+5|0]){case 0:case 9:case 10:case 13:case 32:break t;default:break j}}c=179;if(!(g&8)){break e}a=G[i+12>>1];H[i+40>>2]=a;H[f+16>>2]=a;a=f+32|0;Ad(a,12020,f+16|0);c=fi(H[e+32>>2],12084,a);H[f+172>>2]=c;if(c){break a}a=H[e+32>>2];b=G[a+14>>1];H[a+44>>2]=b;H[f>>2]=b;a=f+32|0;Ad(a,12020,f);c=fi(H[e+32>>2],12180,a);if(c){break a}H[d>>2]=4;c=-1;break e}c=3}H[f+172>>2]=c}xb=f+176|0;return c|0}function $ja(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=oc(1,140);a:{if(!f){break a}d=135328;H[f>>2]=135328;b:{c:{d:{e:{f:{g:{h:{i:{c=H[a+4>>2];if((c|0)<=1298954604){if((c|0)<=1198877297){if((c|0)==1113943655){break i}b=135356;if((c|0)==1147500129){break c}break b}if((c|0)==1198877298){break g}if((c|0)==1198879349){break h}if((c|0)!=1265525857){break b}b=135552;break c}if((c|0)<=1399418471){if((c|0)==1298954605){break e}if((c|0)!=1332902241){break b}b=135468;break c}if((c|0)==1399418472){break d}if((c|0)==1415671148){break f}if((c|0)!=1415933045){break b}b=135524;break c}b=135384;break c}b=135412;break c}b=135440;break c}b=135496;break c}b=135580;break c}b=135608}H[f>>2]=b;d=b}c=0;c=I[d+4|0]?I[a+24|0]!=50:c;F[f+4|0]=c;d=H[196240];if(!d){Ts();d=H[196240]}b=-1;H[f+8>>2]=-1;F[f+5|0]=d>>>2&1;g=c?g:H[a+4>>2]!=1298954605;F[f+20|0]=g;j=H[a+60>>2];h=H[a+56>>2];j:{if((h|0)<=0){break j}b=h-1|0;c=0;k:{while(1){d=c+b>>>1|0;e=H[N(d,36)+j>>2];l:{if(e>>>0>=1919969383){b=d-1|0;break l}if((e|0)==1919969382){break k}c=d+1|0}if((c|0)<=(b|0)){continue}break}b=-1;break j}b=H[(N(d,36)+j|0)+12>>2]}d=H[a+92>>2];m:{if(d>>>0>>0){H[f+12>>2]=0;b=0;break m}if(b){c=b-1|0;c=H[(c>>>0>>0?H[a+96>>2]+(c<<3)|0:163632)>>2]}else{c=0}if(b>>>0>>0){b=H[a+96>>2]+(b<<3)|0}else{b=a+68|0}e=H[b>>2];if((c|0)!=(e|0)){b=c>>>0>2]?H[a+72>>2]+(c<<3)|0:163632}else{b=0}H[f+12>>2]=b;b=e-c|0}F[f+32|0]=g;H[f+16>>2]=b;b=-1;n:{if((h|0)<=0){break n}b=h-1|0;c=0;o:{while(1){e=c+b>>>1|0;i=H[N(e,36)+j>>2];p:{if(i>>>0>=1886545255){b=e-1|0;break p}if((i|0)==1886545254){break o}c=e+1|0}if((c|0)<=(b|0)){continue}break}b=-1;break n}b=H[(N(e,36)+j|0)+12>>2]}q:{if(b>>>0>d>>>0){H[f+24>>2]=0;b=0;break q}if(b){c=b-1|0;c=H[(c>>>0>>0?H[a+96>>2]+(c<<3)|0:163632)>>2]}else{c=0}if(b>>>0>>0){b=H[a+96>>2]+(b<<3)|0}else{b=a+68|0}e=H[b>>2];if((c|0)!=(e|0)){b=c>>>0>2]?H[a+72>>2]+(c<<3)|0:163632}else{b=0}H[f+24>>2]=b;b=e-c|0}F[f+44|0]=g;H[f+28>>2]=b;b=-1;r:{if((h|0)<=0){break r}b=h-1|0;c=0;s:{while(1){e=c+b>>>1|0;i=H[N(e,36)+j>>2];t:{if(i>>>0>=1651275623){b=e-1|0;break t}if((i|0)==1651275622){break s}c=e+1|0}if((c|0)<=(b|0)){continue}break}b=-1;break r}b=H[(N(e,36)+j|0)+12>>2]}u:{if(b>>>0>d>>>0){H[f+36>>2]=0;b=0;break u}if(b){c=b-1|0;c=H[(c>>>0>>0?H[a+96>>2]+(c<<3)|0:163632)>>2]}else{c=0}if(b>>>0>>0){b=H[a+96>>2]+(b<<3)|0}else{b=a+68|0}e=H[b>>2];if((c|0)!=(e|0)){b=c>>>0>2]?H[a+72>>2]+(c<<3)|0:163632}else{b=0}H[f+36>>2]=b;b=e-c|0}F[f+56|0]=g;H[f+40>>2]=b;b=-1;v:{if((h|0)<=0){break v}b=h-1|0;c=0;w:{while(1){e=c+b>>>1|0;i=H[N(e,36)+j>>2];x:{if(i>>>0>=1886614631){b=e-1|0;break x}if((i|0)==1886614630){break w}c=e+1|0}if((c|0)<=(b|0)){continue}break}b=-1;break v}b=H[(N(e,36)+j|0)+12>>2]}y:{if(b>>>0>d>>>0){H[f+48>>2]=0;b=0;break y}if(b){c=b-1|0;c=H[(c>>>0>>0?H[a+96>>2]+(c<<3)|0:163632)>>2]}else{c=0}if(b>>>0>>0){b=H[a+96>>2]+(b<<3)|0}else{b=a+68|0}e=H[b>>2];if((c|0)!=(e|0)){b=c>>>0>2]?H[a+72>>2]+(c<<3)|0:163632}else{b=0}H[f+48>>2]=b;b=e-c|0}F[f+68|0]=g;H[f+52>>2]=b;e=f- -64|0;b=-1;z:{if((h|0)<=0){break z}b=h-1|0;c=0;A:{while(1){g=c+b>>>1|0;i=H[N(g,36)+j>>2];B:{if(i>>>0>=1986098294){b=g-1|0;break B}if((i|0)==1986098293){break A}c=g+1|0}if((c|0)<=(b|0)){continue}break}b=-1;break z}b=H[(N(g,36)+j|0)+12>>2]}C:{if(b>>>0>d>>>0){H[f+60>>2]=0;a=0;break C}if(b){c=b-1|0;c=H[(c>>>0>>0?H[a+96>>2]+(c<<3)|0:163632)>>2]}else{c=0}if(b>>>0>>0){b=H[a+96>>2]+(b<<3)|0}else{b=a+68|0}d=H[b>>2];if((c|0)!=(d|0)){a=c>>>0>2]?H[a+72>>2]+(c<<3)|0:163632}else{a=0}H[f+60>>2]=a;a=d-c|0}H[e>>2]=a;if((h|0)<=0){break a}a=h-1|0;d=0;while(1){k=(d<<2)+f|0;b=0;D:{if(!(2548>>>d&1)){break D}h=H[(d<<3)+132208>>2];c=0;b=a;E:{while(1){g=c+b>>>1|0;i=N(g,36)+j|0;e=H[i>>2];F:{if(e>>>0>h>>>0){b=g-1|0;break F}if(e>>>0>=h>>>0){break E}c=g+1|0}if((c|0)<=(b|0)){continue}break}b=0;break D}b=H[i+28>>2]}H[k+72>>2]=b;d=d+1|0;if((d|0)!=17){continue}break}}return f|0}function W0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-208|0;xb=c;f=a+8|0;Em(c+192|0,f);H[197455]=0;fa(1756,c+56|0,+M[c+192>>3],-1);a=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if((a|0)!=1){H[197455]=0;a=aa(899,16)|0;d=H[197455];H[197455]=0;if((d|0)==1){break s}H[c+72>>2]=a;H[c+76>>2]=2;H[c+80>>2]=-2147483644;H[197455]=0;Mb(a,407096,2);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a+8>>2]=0;a=c- -64|0;H[c+92>>2]=H[a>>2];H[a>>2]=0;a=H[c+60>>2];H[c+84>>2]=H[c+56>>2];H[c+88>>2]=a;H[c+56>>2]=0;H[c+60>>2]=0;H[197455]=0;fa(1756,c+40|0,+M[c+200>>3],-1);d=H[197455];H[197455]=0;a=c+96|0;if((d|0)==1){break r}H[197455]=0;e=aa(899,16)|0;g=H[197455];H[197455]=0;d=1;if((g|0)==1){break q}H[c+100>>2]=2;H[c+104>>2]=-2147483644;H[c+96>>2]=e;H[197455]=0;Mb(e,407272,2);a=H[197455];H[197455]=0;if((a|0)==1){break a}H[e+8>>2]=0;H[c+116>>2]=H[c+48>>2];a=H[c+44>>2];H[c+108>>2]=H[c+40>>2];H[c+112>>2]=a;H[c+48>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;a=H[b>>2];H[197455]=0;fa(1756,c+24|0,+(a|0),-1);e=H[197455];H[197455]=0;a=c+120|0;if((e|0)==1){break p}H[197455]=0;d=aa(899,16)|0;e=H[197455];H[197455]=0;if((e|0)==1){break o}H[c+124>>2]=2;H[c+128>>2]=-2147483644;H[c+120>>2]=d;H[197455]=0;Mb(d,407456,2);a=H[197455];H[197455]=0;if((a|0)==1){break a}H[d+8>>2]=0;H[c+140>>2]=H[c+32>>2];a=H[c+28>>2];H[c+132>>2]=H[c+24>>2];H[c+136>>2]=a;H[c+32>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;a=H[b+4>>2];H[197455]=0;fa(1756,c+8|0,+(a|0),-1);a=H[197455];H[197455]=0;if((a|0)==1){break n}H[197455]=0;a=aa(899,16)|0;b=H[197455];H[197455]=0;d=1;if((b|0)==1){break m}H[c+148>>2]=2;H[c+152>>2]=-2147483644;H[c+144>>2]=a;H[197455]=0;Mb(a,407636,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}d=0;H[a+8>>2]=0;H[c+164>>2]=H[c+16>>2];a=H[c+12>>2];H[c+156>>2]=H[c+8>>2];H[c+160>>2]=a;H[c+16>>2]=0;H[c+172>>2]=4;H[197455]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+168>>2]=c+72;a=H[c+172>>2];H[c>>2]=H[c+168>>2];H[c+4>>2]=a;e=da(1763,c+176|0,c|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break l}if(F[c+167|0]<0){Kb(H[c+156>>2])}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+143|0]<0){Kb(H[c+132>>2])}if(F[c+131|0]<0){Kb(H[c+120>>2])}if(F[c+119|0]<0){Kb(H[c+108>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+95|0]<0){Kb(H[c+84>>2])}if(F[c+83|0]<0){Kb(H[c+72>>2])}if(F[c+19|0]<0){Kb(H[c+8>>2])}if(F[c+35|0]<0){Kb(H[c+24>>2])}if(F[c+51|0]<0){Kb(H[c+40>>2])}if(F[c+67|0]<0){Kb(H[c+56>>2])}H[197455]=0;ba(1770,f|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;ga(1766,f|0,e|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;ia(1764,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;a=aa(899,32)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}H[c+72>>2]=a;H[c+76>>2]=4;H[c+80>>2]=-2147483640;H[197455]=0;Mb(a,407816,4);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+16>>2]=0;F[c+67|0]=0;H[197455]=0;H[c+56>>2]=0;ka(1767,f|0,c+72|0,e|0,c+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+67|0]<0){Kb(H[c+56>>2])}if(F[c+83|0]<0){Kb(H[c+72>>2])}b=H[e>>2];if(b){a=H[e+4>>2];if((b|0)==(a|0)){a=b}else{while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}d=a-24|0;if(F[a-13|0]<0){Kb(H[d>>2])}a=d;if((b|0)!=(a|0)){continue}break}a=H[e>>2]}H[e+4>>2]=b;Kb(a)}xb=c+208|0;return}a=$()|0;_()|0;ea(a|0);X()}b=$()|0;d=1;a=c+72|0;_()|0;break g}b=$()|0;d=1;_()|0;break g}b=$()|0;_()|0;break h}b=$()|0;_()|0;break h}b=$()|0;d=1;_()|0;break i}b=$()|0;d=1;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;Vb(c+144|0);Vb(c+120|0);Vb(c+96|0);Vb(c+72|0)}if(F[c+19|0]>=0){break j}Kb(H[c+8>>2])}a=c+144|0}if(F[c+35|0]>=0){break h}Kb(H[c+24>>2])}if(F[c+51|0]>=0){break g}Kb(H[c+40>>2])}if(F[c+67|0]<0){Kb(H[c+56>>2])}if(!d|(c+72|0)==(a|0)){break b}while(1){a=Vb(a-24|0);if((a|0)!=(c+72|0)){continue}break}break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[c+67|0]<0){Kb(H[c+56>>2])}if(F[c+83|0]>=0){break c}Kb(H[c+72>>2])}yc(e)}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function Mha(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;H[a>>2]=0;i=xb-32|0;xb=i;H[a>>2]=0;h=i+16|0;H[h+12>>2]=0;H[h+4>>2]=0;H[h+8>>2]=0;H[h>>2]=436884;H[197455]=0;c=ca(910,h|0,b|0,0)|0;e=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{if((e|0)!=1){if(!c){break c}H[197455]=0;c=aa(929,4096)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}H[197455]=0;H[i+12>>2]=0;e=la(930,h|0,c|0,4096,i+12|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break b}if(!e){Kb(c);break c}H[197455]=0;ia(923,h|0);e=H[197455];H[197455]=0;if((e|0)==1){break b}e=H[i+12>>2];if(GD(a,c,e)){H[a>>2]=1;break f}if(H[a>>2]){break f}h:{if(e>>>0>=4){f=2;if((I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24))==944130375){break e}i:{if(e>>>0<6){break i}if(!md(c,239485,6)){break e}if(!md(c,239478,6)){break e}if(e>>>0<16){break i}d=I[c+2|0];g=I[c+1|0];j:{if(I[c|0]!=137|(g|0)!=80|((d|0)!=78|I[c+3|0]!=71)){break j}if(I[c+4|0]!=13|I[c+5|0]!=10|(I[c+6|0]!=26|I[c+7|0]!=10)){break j}if(I[c+8|0]|I[c+9|0]|(I[c+10|0]|I[c+11|0]!=13)){break j}if(I[c+12|0]!=73|I[c+13|0]!=72|I[c+14|0]!=68){break j}f=4;if(I[c+15|0]==82){break e}}if(e>>>0<17){break i}k:{l:{switch(g|0){case 1:switch(d-1|0){case 0:case 8:break k;default:break i};case 0:break l;default:break i}}if(!(1<>>0>11){break i}}f=7;d=I[c+16|0]-8|0;if(((d<<5|(d&248)>>>3)&255)>>>0<4){break e}}d=I[c|0];if((d|0)!=10){break g}if(I[c+1|0]>5){d=10;break g}f=8;g=I[c+3|0]-1&255;if(g>>>0<8){break h}d=10;break g}g=1;if((e|0)!=3){break f}d=I[c|0];break g}d=10;if(!(139>>>g&1)){break g}break e}break b}g=1;if((d|0)!=255|I[c+1|0]!=216){break f}f=3;if(I[c+2|0]==255){break e}}f=21;d=0;m:{if(H[a>>2]){break m}n:{if(I[c|0]!=1|e>>>0<44|(I[c+1|0]|I[c+2|0])){break n}if(I[c+3|0]|I[c+40|0]!=32|(I[c+41|0]!=69|I[c+42|0]!=77)){break n}d=1;if(I[c+43|0]==70){break m}}d=0}if(d){break e}f=10;d=0;o:{if(H[a>>2]){break o}d=I[c|0];p:{if(!((d|0)!=215|e>>>0<6)){if(I[c+1|0]!=205|I[c+2|0]!=198|(I[c+4|0]|I[c+3|0]!=154)){break p}if(I[c+5|0]){break p}d=1;break o}if(I[c+1|0]|(d|0)!=1|(I[c+3|0]|I[c+2|0]!=9)){break p}if(I[c+4|0]){break p}d=1;if(I[c+5|0]==3){break o}}d=0}if(d){break e}f=6;d=0;q:{if(H[a>>2]){break q}r:{s:{t:{d=I[c|0];if(!((d|0)!=73|e>>>0<4)){if(I[c+1|0]!=73|I[c+2|0]!=42){break t}if(!I[c+3|0]){break s}break t}u:{switch(d-73|0){case 0:break t;case 4:break u;default:break r}}if(I[c+2|0]|I[c+1|0]!=77){break r}d=1;if(I[c+3|0]==42){break q}break r}if(I[c+3|0]|(I[c+1|0]!=73|I[c+2|0]!=42)){break r}}d=1;break q}d=0}if(d){break e}f=5;d=0;v:{if(H[a>>2]|e>>>0<16|(I[c|0]|I[c+1|0])){break v}j=H[c+18>>2];if(j>>>0>>0){d=1;k=H[(c+j|0)+4>>2];j=I[c+6|0];if((k|0)==((j?j:256)|0)){break v}}d=0}if(d){break e}f=22;if(xr(a,c,e)){break e}f=20;d=0;w:{if(H[a>>2]){break w}x:{if(I[c|0]!=56|e>>>0<12|(I[c+1|0]!=66|I[c+2|0]!=80)){break x}if(I[c+6|0]|I[c+3|0]!=83|(I[c+7|0]|I[c+8|0]!=24)){break x}if(I[c+9|0]|I[c+10|0]){break x}d=1;if(I[c+11|0]==24){break w}}d=0}if(d){break e}f=15;d=0;y:{if(H[a>>2]){break y}z:{if(I[c|0]!=89|e>>>0<16|(I[c+1|0]!=166|I[c+2|0]!=106)){break z}if(I[c+5|0]|(I[c+4|0]|I[c+3|0]!=149)){break z}d=1;if(I[c+15|0]==24){break y}}d=0}if(d){break e}f=11;if(!(!g|e>>>0<52|I[c|0]!=255|(I[c+1|0]!=79|I[c+2|0]!=255))){if(I[c+3|0]==81){break e}}if(FD(a,c,e)){break e}if(ED(a,c,e)){break e}f=0;if(wr(a,c,e)){break e}d=0;A:{if(H[a>>2]|e>>>0<6|(I[c|0]!=86|I[c+1|0]!=67)){break A}if(I[c+2|0]!=76|I[c+3|0]!=77|(I[c+4|0]!=84|I[c+5|0]!=70)){break A}if(I[c+11|0]|(I[c+9|0]|I[c+10|0])){break A}d=1}g=0;B:{if(H[a>>2]){break B}C:{if(e>>>0<10){break C}D:{switch(I[c|0]-67|0){case 3:if(I[c+9|0]|(I[c+1|0]!=87|I[c+2|0]!=83)){break C}g=1;break B;case 0:break D;default:break C}}if(I[c+1|0]!=87|I[c+2|0]!=83|I[c+8|0]!=120){break C}g=1;if(I[c+9|0]==156){break B}}g=0}if(g|d){break e}H[197455]=0;b=da(931,i|0,b|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=24;if(!b){break d}}H[a>>2]=f}Kb(c)}gf(h);xb=i+32|0;break a}a=$()|0;_()|0;gf(h);ea(a|0);X()}return a|0}function Dr(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;o=xb-16|0;xb=o;b=-102;a:{if(!a|!H[a+56>>2]){break a}H[a+68>>2]=0;b=a- -64|0;b:{if(!(H[a+160>>2]|H[a+156>>2]!=8)){c=a+164|0;while(1){if(!H[a+80>>2]){Cr(a);H[a+76>>2]=c;H[a+80>>2]=65536}g=H[a+84>>2];d=_f(b,4);H[a+124>>2]=H[a+124>>2]+(H[a+84>>2]-g|0);if(!d){continue}break}if((d|0)!=1){break b}}d=0;if(!H[a+124>>2]){break b}d=(Cr(a)|0)==-1?-1:0}if(!(H[a+160>>2]|H[a+156>>2]!=8)){b=Oj(b);H[a+120>>2]=0;d=d?d:b}b=H[a+65760>>2];g=b+H[a+65728>>2]|0;if(!H[a+160>>2]){k=H[a+65704>>2];j=H[a+65736>>2];i=H[a+65740>>2]}c=H[a+65732>>2]+(b>>31)|0;h=b>>>0>g>>>0?c+1|0:c;if(!(!(!h&g>>>0>4294967294|(h|0)!=0|(!i&j>>>0>4294967294|(i|0)!=0))&(!H[a+132>>2]&H[a+128>>2]!=-1))){b=H[a+136>>2];F[b+4|0]=45;F[b+5|0]=0;b=H[a+136>>2];F[b+6|0]=45;F[b+7|0]=0}b=H[a+136>>2];F[b+16|0]=k;F[b+17|0]=k>>>8;F[b+18|0]=k>>>16;F[b+19|0]=k>>>24;b=H[a+136>>2];c:{if(!h&(g|0)==-1|h){F[b+20|0]=255;F[b+21|0]=255;F[b+22|0]=255;F[b+23|0]=255;break c}F[b+20|0]=g;F[b+21|0]=g>>>8;F[b+22|0]=g>>>16;F[b+23|0]=g>>>24}if(H[a+108>>2]==1){b=H[a+136>>2];F[b+36|0]=1;F[b+37|0]=0}b=H[a+136>>2];d:{if(!i&(j|0)==-1|i){F[b+24|0]=255;F[b+25|0]=255;F[b+26|0]=255;F[b+27|0]=255;b=8;break d}F[b+24|0]=j;F[b+25|0]=j>>>8;F[b+26|0]=j>>>16;F[b+27|0]=j>>>24;b=0}b=!h&g>>>0>4294967294|h?b+8|0:b;m=b+8|0;e=b;b=H[a+132>>2];c=!b&K[a+128>>2]>4294967294|b?m:e;e:{if(!c){break e}b=-103;l=c|4;if(l>>>0>K[a+148>>2]){break a}b=H[a+136>>2]+H[a+144>>2]|0;F[b+2|0]=c;F[b|0]=1;F[b+1|0]=0;F[b+3|0]=0;b=b+4|0;if(!i&(j|0)==-1|i){F[b|0]=j;F[b+1|0]=j>>>8;F[b+2|0]=j>>>16;F[b+3|0]=j>>>24;F[b+4|0]=i;F[b+5|0]=i>>>8;F[b+6|0]=i>>>16;F[b+7|0]=i>>>24;b=b+8|0}if(!h&(g|0)==-1|h){F[b|0]=g;F[b+1|0]=g>>>8;F[b+2|0]=g>>>16;F[b+3|0]=g>>>24;F[b+4|0]=h;F[b+5|0]=h>>>8;F[b+6|0]=h>>>16;F[b+7|0]=h>>>24;b=b+8|0}c=H[a+132>>2];f=H[a+128>>2];if(!c&(f|0)==-1|c){F[b|0]=f;F[b+1|0]=f>>>8;F[b+2|0]=f>>>16;F[b+3|0]=f>>>24;F[b+4|0]=c;F[b+5|0]=c>>>8;F[b+6|0]=c>>>16;F[b+7|0]=c>>>24}H[a+148>>2]=H[a+148>>2]-l;H[a+144>>2]=l+H[a+144>>2];b=l+H[a+140>>2]|0;H[a+140>>2]=b;c=H[a+136>>2];F[c+30|0]=b;F[c+31|0]=b>>>8;if(b>>>0<65536){break e}F[c+30|0]=255;F[c+31|0]=255}f:{if(d){Kb(H[a+136>>2]);b=d;break f}l=H[a+136>>2];p=H[a+144>>2];d=a+48|0;g:{if(d){h:{i:{j:{b=H[d+4>>2];if(!b){b=Tb(4096);if(!b){break j}H[b+8>>2]=0;H[b>>2]=0;H[b+4>>2]=4080;H[d>>2]=b;H[d+4>>2]=b}e=0;if(!p){break g}e=H[b+4>>2];while(1){k:{if(e){f=H[b+8>>2];break k}c=Tb(4096);if(!c){break i}f=0;H[c+8>>2]=0;H[c>>2]=0;H[c+4>>2]=4080;H[b>>2]=c;H[d+4>>2]=c;b=c;e=4080}m=e;c=p>>>0>m>>>0?m:p;l:{if(!c){e=m;break l}e=(b+f|0)+16|0;r=0;f=0;if(c-1>>>0>=3){s=c&-4;q=0;while(1){F[f+e|0]=I[f+l|0];n=f|1;F[n+e|0]=I[l+n|0];n=f|2;F[n+e|0]=I[l+n|0];n=f|3;F[n+e|0]=I[l+n|0];f=f+4|0;q=q+4|0;if((s|0)!=(q|0)){continue}break}}q=c&3;if(q){while(1){F[f+e|0]=I[f+l|0];f=f+1|0;r=r+1|0;if((q|0)!=(r|0)){continue}break}}f=H[b+8>>2];e=H[b+4>>2]}e=e-c|0;H[b+4>>2]=e;H[b+8>>2]=c+f;l=c+l|0;f=p>>>0>m>>>0;p=p-c|0;if(f){continue}break}e=0;break g}H[d+4>>2]=0;break h}d=b}H[d>>2]=0}e=-104}b=e;Kb(H[a+136>>2]);if(b){break f}c=Uh(a,H[a+44>>2]);f=yb;b=H[a+132>>2];e=b+1|0;d=b;b=H[a+128>>2]+14|0;d=b>>>0<14?e:d;m:{n:{if(!We(a,H[a+44>>2],b,d,0)){b=H[a+44>>2];F[o+11|0]=k>>>24;F[o+10|0]=k>>>16;F[o+9|0]=k>>>8;F[o+8|0]=k;b=zb[H[a+8>>2]](H[a+28>>2],b,o+8|0,4)|0;d=(b|0)!=4?-1:0;if(!i&j>>>0>4294967294|i|(!h&g>>>0>4294967294|h)){break n}d=-1;if((b|0)!=4){break m}d=wn(a,H[a+44>>2],g,h,4);if(d){break m}d=wn(a,H[a+44>>2],j,i,4);break m}d=-1;if(!i&j>>>0>4294967294|i){break n}if(!h&(g|0)!=-1){break m}}k=H[a+65720>>2];b=H[a+65724>>2];if(!(k|b)){d=-103;break m}m=b+1|0;e=b;b=k+4|0;k=b>>>0<4?m:e;b=We(a,H[a+44>>2],b,k,0)|d;d=-1;if(b){break m}d=wn(a,H[a+44>>2],j,i,8);if(d){break m}d=wn(a,H[a+44>>2],g,h,8)}b=We(a,H[a+44>>2],c,f,0)?-1:d}H[a+56>>2]=0;d=H[a+65788>>2];e=d;m=d+1|0;d=H[a+65784>>2]+1|0;c=d?e:m;H[a+65784>>2]=d;H[a+65788>>2]=c}xb=o+16|0;return b} +function dja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;while(1){a:{b:{c:{if(K[a+116>>2]>261){break c}Bn(a);c=H[a+116>>2];if(!(c>>>0>=262|b)){return 0}if(!c){break a}if(c>>>0>2){break c}d=H[a+96>>2];H[a+120>>2]=d;H[a+100>>2]=H[a+112>>2];g=2;H[a+96>>2]=2;break b}g=2;f=H[a+108>>2];c=H[a+84>>2]&(I[(f+H[a+56>>2]|0)+2|0]^H[a+72>>2]<>2]);H[a+72>>2]=c;c=H[a+68>>2]+(c<<1)|0;e=J[c>>1];G[H[a+64>>2]+((f&H[a+52>>2])<<1)>>1]=e;G[c>>1]=f;d=H[a+96>>2];H[a+120>>2]=d;H[a+100>>2]=H[a+112>>2];H[a+96>>2]=2;if(!e){break b}d:{if(H[a+44>>2]-262>>>0>>0|K[a+128>>2]<=d>>>0){break d}g=$D(a,e);H[a+96>>2]=g;if(g>>>0>5){break d}if(H[a+136>>2]!=1){if((g|0)!=3){break d}g=3;if(H[a+108>>2]-H[a+112>>2]>>>0<4097){break d}}g=2;H[a+96>>2]=2}d=H[a+120>>2]}if(!(d>>>0<3|d>>>0>>0)){h=H[a+116>>2];c=H[a+5792>>2];f=H[a+108>>2];e=f+(H[a+100>>2]^-1)|0;G[H[a+5796>>2]+(c<<1)>>1]=e;H[a+5792>>2]=c+1;i=c+H[a+5784>>2]|0;c=d-3|0;F[i|0]=c;c=((I[(c&255)+242896|0]<<2)+a|0)+1176|0;G[c>>1]=J[c>>1]+1;c=e-1&65535;c=((I[(c>>>0<256?c:(c>>>7|0)+256|0)+242384|0]<<2)+a|0)+2440|0;G[c>>1]=J[c>>1]+1;c=H[a+120>>2];g=c-2|0;H[a+120>>2]=g;H[a+116>>2]=(H[a+116>>2]-c|0)+1;i=(f+h|0)-3|0;h=H[a+5788>>2]-1|0;d=H[a+108>>2];f=H[a+5792>>2];while(1){c=d;d=c+1|0;H[a+108>>2]=d;if(d>>>0<=i>>>0){e=H[a+84>>2]&(I[(c+H[a+56>>2]|0)+3|0]^H[a+72>>2]<>2]);H[a+72>>2]=e;e=H[a+68>>2]+(e<<1)|0;G[H[a+64>>2]+((H[a+52>>2]&d)<<1)>>1]=J[e>>1];G[e>>1]=d}g=g-1|0;H[a+120>>2]=g;if(g){continue}break}H[a+96>>2]=2;H[a+104>>2]=0;c=c+2|0;H[a+108>>2]=c;if((f|0)!=(h|0)){continue}e=H[a+92>>2];if((e|0)>=0){d=e+H[a+56>>2]|0}else{d=0}qf(a,d,c-e|0,0);H[a+92>>2]=H[a+108>>2];f=H[a>>2];e=H[f+28>>2];ue(e);d=H[e+20>>2];c=H[f+16>>2];d=c>>>0>d>>>0?d:c;e:{if(!d){break e}Ob(H[f+12>>2],H[e+16>>2],d);H[f+12>>2]=d+H[f+12>>2];H[e+16>>2]=d+H[e+16>>2];H[f+20>>2]=d+H[f+20>>2];H[f+16>>2]=H[f+16>>2]-d;c=H[e+20>>2];H[e+20>>2]=c-d;if((c|0)!=(d|0)){break e}H[e+16>>2]=H[e+8>>2]}if(H[H[a>>2]+16>>2]){continue}return 0}if(H[a+104>>2]){d=I[(H[a+108>>2]+H[a+56>>2]|0)-1|0];c=H[a+5792>>2];G[H[a+5796>>2]+(c<<1)>>1]=0;H[a+5792>>2]=c+1;F[c+H[a+5784>>2]|0]=d;c=(d<<2)+a|0;G[c+148>>1]=J[c+148>>1]+1;f:{if(H[a+5792>>2]!=(H[a+5788>>2]-1|0)){break f}d=H[a+92>>2];if((d|0)>=0){c=d+H[a+56>>2]|0}else{c=0}qf(a,c,H[a+108>>2]-d|0,0);H[a+92>>2]=H[a+108>>2];f=H[a>>2];e=H[f+28>>2];ue(e);d=H[e+20>>2];c=H[f+16>>2];d=c>>>0>d>>>0?d:c;if(!d){break f}Ob(H[f+12>>2],H[e+16>>2],d);H[f+12>>2]=d+H[f+12>>2];H[e+16>>2]=d+H[e+16>>2];H[f+20>>2]=d+H[f+20>>2];H[f+16>>2]=H[f+16>>2]-d;c=H[e+20>>2];H[e+20>>2]=c-d;if((c|0)!=(d|0)){break f}H[e+16>>2]=H[e+8>>2]}H[a+108>>2]=H[a+108>>2]+1;H[a+116>>2]=H[a+116>>2]-1;if(H[H[a>>2]+16>>2]){continue}return 0}else{H[a+104>>2]=1;H[a+108>>2]=H[a+108>>2]+1;H[a+116>>2]=H[a+116>>2]-1;continue}}break}if(H[a+104>>2]){d=I[(H[a+108>>2]+H[a+56>>2]|0)-1|0];c=H[a+5792>>2];G[H[a+5796>>2]+(c<<1)>>1]=0;H[a+5792>>2]=c+1;F[c+H[a+5784>>2]|0]=d;c=(d<<2)+a|0;G[c+148>>1]=J[c+148>>1]+1;H[a+104>>2]=0}d=H[a+108>>2];H[a+5812>>2]=d>>>0<2?d:2;if((b|0)==4){c=H[a+92>>2];if((c|0)>=0){b=c+H[a+56>>2]|0}else{b=0}qf(a,b,d-c|0,1);H[a+92>>2]=H[a+108>>2];e=H[a>>2];d=H[e+28>>2];ue(d);c=H[d+20>>2];b=H[e+16>>2];c=b>>>0>c>>>0?c:b;g:{if(!c){break g}Ob(H[e+12>>2],H[d+16>>2],c);H[e+12>>2]=c+H[e+12>>2];H[d+16>>2]=c+H[d+16>>2];H[e+20>>2]=c+H[e+20>>2];H[e+16>>2]=H[e+16>>2]-c;b=H[d+20>>2];H[d+20>>2]=b-c;if((b|0)!=(c|0)){break g}H[d+16>>2]=H[d+8>>2]}return(H[H[a>>2]+16>>2]?3:2)|0}h:{if(!H[a+5792>>2]){break h}c=H[a+92>>2];if((c|0)>=0){b=c+H[a+56>>2]|0}else{b=0}qf(a,b,d-c|0,0);H[a+92>>2]=H[a+108>>2];e=H[a>>2];d=H[e+28>>2];ue(d);c=H[d+20>>2];b=H[e+16>>2];c=b>>>0>c>>>0?c:b;i:{if(!c){break i}Ob(H[e+12>>2],H[d+16>>2],c);H[e+12>>2]=c+H[e+12>>2];H[d+16>>2]=c+H[d+16>>2];H[e+20>>2]=c+H[e+20>>2];H[e+16>>2]=H[e+16>>2]-c;b=H[d+20>>2];H[d+20>>2]=b-c;if((b|0)!=(c|0)){break i}H[d+16>>2]=H[d+8>>2]}if(H[H[a>>2]+16>>2]){break h}return 0}return 1}function tX(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-208|0;xb=d;f=a+8|0;Em(d+192|0,f);H[197455]=0;fa(1756,d+56|0,+M[d+192>>3],-1);a=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if((a|0)!=1){H[197455]=0;a=aa(899,16)|0;e=H[197455];H[197455]=0;if((e|0)==1){break s}H[d+72>>2]=a;H[d+76>>2]=2;H[d+80>>2]=-2147483644;H[197455]=0;Mb(a,434300,2);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[a+8>>2]=0;a=d- -64|0;H[d+92>>2]=H[a>>2];H[a>>2]=0;a=H[d+60>>2];H[d+84>>2]=H[d+56>>2];H[d+88>>2]=a;H[d+56>>2]=0;H[d+60>>2]=0;H[197455]=0;fa(1756,d+40|0,+M[d+200>>3],-1);e=H[197455];H[197455]=0;a=d+96|0;if((e|0)==1){break r}H[197455]=0;e=aa(899,16)|0;h=H[197455];H[197455]=0;g=1;if((h|0)==1){break q}H[d+100>>2]=2;H[d+104>>2]=-2147483644;H[d+96>>2]=e;H[197455]=0;Mb(e,434312,2);a=H[197455];H[197455]=0;if((a|0)==1){break a}H[e+8>>2]=0;H[d+116>>2]=H[d+48>>2];a=H[d+44>>2];H[d+108>>2]=H[d+40>>2];H[d+112>>2]=a;H[d+48>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[197455]=0;fa(1756,d+24|0,+(c|0),-1);c=H[197455];H[197455]=0;a=d+120|0;if((c|0)==1){break p}H[197455]=0;c=aa(899,16)|0;e=H[197455];H[197455]=0;if((e|0)==1){break o}H[d+124>>2]=2;H[d+128>>2]=-2147483644;H[d+120>>2]=c;H[197455]=0;Mb(c,434324,2);a=H[197455];H[197455]=0;if((a|0)==1){break a}H[c+8>>2]=0;H[d+140>>2]=H[d+32>>2];a=H[d+28>>2];H[d+132>>2]=H[d+24>>2];H[d+136>>2]=a;H[d+32>>2]=0;H[d+24>>2]=0;H[d+28>>2]=0;H[197455]=0;fa(1756,d+8|0,+(b|0),-1);a=H[197455];H[197455]=0;if((a|0)==1){break n}H[197455]=0;a=aa(899,16)|0;b=H[197455];H[197455]=0;if((b|0)==1){break m}H[d+148>>2]=2;H[d+152>>2]=-2147483644;H[d+144>>2]=a;H[197455]=0;Mb(a,434336,2);b=H[197455];H[197455]=0;if((b|0)==1){break a}g=0;H[a+8>>2]=0;H[d+164>>2]=H[d+16>>2];a=H[d+12>>2];H[d+156>>2]=H[d+8>>2];H[d+160>>2]=a;H[d+16>>2]=0;H[d+172>>2]=4;H[197455]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d+168>>2]=d+72;a=H[d+172>>2];H[d>>2]=H[d+168>>2];H[d+4>>2]=a;e=da(1763,d+176|0,d|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break l}if(F[d+167|0]<0){Kb(H[d+156>>2])}if(F[d+155|0]<0){Kb(H[d+144>>2])}if(F[d+143|0]<0){Kb(H[d+132>>2])}if(F[d+131|0]<0){Kb(H[d+120>>2])}if(F[d+119|0]<0){Kb(H[d+108>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+95|0]<0){Kb(H[d+84>>2])}if(F[d+83|0]<0){Kb(H[d+72>>2])}if(F[d+19|0]<0){Kb(H[d+8>>2])}if(F[d+35|0]<0){Kb(H[d+24>>2])}if(F[d+51|0]<0){Kb(H[d+40>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}H[197455]=0;ba(1770,f|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;ga(1766,f|0,e|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;ia(1764,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;a=aa(899,32)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}H[d+72>>2]=a;H[d+76>>2]=4;H[d+80>>2]=-2147483640;H[197455]=0;Mb(a,434348,4);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a+16>>2]=0;F[d+67|0]=0;H[197455]=0;H[d+56>>2]=0;ka(1767,f|0,d+72|0,e|0,d+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+83|0]<0){Kb(H[d+72>>2])}b=H[e>>2];if(b){a=H[e+4>>2];if((b|0)==(a|0)){a=b}else{while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}c=a-24|0;if(F[a-13|0]<0){Kb(H[c>>2])}a=c;if((b|0)!=(a|0)){continue}break}a=H[e>>2]}H[e+4>>2]=b;Kb(a)}xb=d+208|0;return}a=$()|0;_()|0;ea(a|0);X()}b=$()|0;g=1;a=d+72|0;_()|0;break g}b=$()|0;g=1;_()|0;break g}b=$()|0;_()|0;break h}b=$()|0;_()|0;break h}b=$()|0;_()|0;break i}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;Vb(d+144|0);Vb(d+120|0);Vb(d+96|0);Vb(d+72|0)}if(F[d+19|0]>=0){break j}Kb(H[d+8>>2])}a=d+144|0}if(F[d+35|0]>=0){break h}Kb(H[d+24>>2])}if(F[d+51|0]>=0){break g}Kb(H[d+40>>2])}if(F[d+67|0]<0){Kb(H[d+56>>2])}if(!g|(d+72|0)==(a|0)){break b}while(1){a=Vb(a-24|0);if((a|0)!=(d+72|0)){continue}break}break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[d+67|0]<0){Kb(H[d+56>>2])}if(F[d+83|0]>=0){break c}Kb(H[d+72>>2])}yc(e)}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function rl(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,w=0,x=0;l=xb-16|0;xb=l;H[l+12>>2]=0;H[a+1404>>2]=0;H[a+1392>>2]=0;H[a+56>>2]=0;H[a+44>>2]=0;H[a+36>>2]=0;H[a+24>>2]=0;e=H[a>>2];i=H[a+16>>2];m=H[a+8>>2];k=H[a+12>>2];t=H[a+4>>2];d=G[b>>1];a:{b:{c:{if(d>>>0<=8){if(H[a+40>>2]){break b}H[a+40>>2]=a+2760;c=8;break c}c=H[a+32>>2];if(c>>>0>=d>>>0){break b}h=c;c=d+3&-4;d=H[a+40>>2];if((d|0)==(a+2760|0)){H[a+40>>2]=0;d=0}w=a,x=Ub(e,4,h,c,d,l+12|0),H[w+40>>2]=x;if(H[l+12>>2]){break a}}H[a+32>>2]=c}c=G[b+2>>1];d=c+2|0;d:{if(d>>>0<=96){if(H[a+28>>2]){break d}H[a+20>>2]=96;H[a+28>>2]=a+2792;break d}f=d;d=H[a+20>>2];if(f>>>0<=d>>>0){break d}h=c+11&-8;c=H[a+28>>2];if((c|0)==(a+2792|0)){H[a+28>>2]=0;c=0}w=a,x=Ub(e,40,d,h,c,l+12|0),H[w+28>>2]=x;if(H[l+12>>2]){break a}H[a+20>>2]=h;c=G[b+2>>1]}H[a+24>>2]=c;c=G[b>>1];H[a+1416>>2]=-1;H[a+68>>2]=2;H[a+36>>2]=c;if((oB(b)|0)==1){H[a+1416>>2]=1;H[a+68>>2]=-2}H[a+12>>2]=k;H[a+4>>2]=t;H[a+2752>>2]=0;H[a+2756>>2]=0;H[a+16>>2]=i;H[a+8>>2]=m;p=H[a+24>>2];if(!p){break a}h=H[a+28>>2];r=h+N(p,40)|0;s=N(J[H[H[a+2748>>2]+4>>2]+68>>1],20)>>>11|0;e=H[b+12>>2];if((p|0)>0){d=H[b+4>>2];n=H[b+8>>2];c=h;g=G[e>>1];f=c+N(g,40)|0;e=f;while(1){G[c+2>>1]=1028;j=H[d>>2];G[c+12>>1]=j;G[c+14>>1]=H[d+4>>2];j=Rb(j,t)+m|0;H[c+4>>2]=j;H[c+16>>2]=j;j=Rb(H[d+4>>2],k)+i|0;H[c+8>>2]=j;H[c+20>>2]=j;j=H[b+4>>2]+(g<<16>>16<<3)|0;G[f+12>>1]=H[j>>2];G[f+14>>1]=H[j+4>>2];j=I[n|0]&3;G[c>>1]=j?((j|0)==2)<<1:1;u=G[c+14>>1]-G[e+14>>1]|0;j=u>>31;v=G[c+12>>1]-G[e+12>>1]|0;q=v>>31;if((j^u)-j+((q^v)-q)>>>0>>0){G[e>>1]=J[e>>1]|32}H[c+36>>2]=e;H[e+32>>2]=c;e:{if((c|0)!=(f|0)){e=c;break e}o=o+1|0;if((o|0)>=G[b>>1]){e=c;f=c;break e}g=G[H[b+12>>2]+(o<<1)>>1];e=N(g,40)+h|0;f=e}n=n+1|0;d=d+8|0;c=c+40|0;if(r>>>0>c>>>0){continue}break}e=H[b+12>>2]}b=H[a+36>>2];f:{if((b|0)<=0){break f}c=H[a+40>>2];f=c+(b<<2)|0;d=0;while(1){H[c>>2]=N(d<<16>>16,40)+h;d=J[e>>1]+1|0;e=e+2|0;c=c+4|0;if(f>>>0>c>>>0){continue}break}if((b|0)<=0){break f}m=H[a+40>>2];j=m+(b<<2)|0;q=(s<<1)-1|0;while(1){d=H[m>>2];c=d;while(1){g:{f=c;n=G[c+12>>1];c=H[c+36>>2];if((d|0)==(c|0)){b=J[f+14>>1];break g}b=G[f+14>>1];g=b-G[c+14>>1]|0;a=g>>31;i=n-G[c+12>>1]|0;e=i>>31;if((q|0)>((a^g)-a+((e^i)-e)|0)){continue}}break}H[f+24>>2]=0;H[f+28>>2]=0;c=0;d=f;a=d;e=0;while(1){i=n<<16;g=b<<16;d=H[d+32>>2];b=G[d+14>>1];e=(b-(g>>16)|0)+e|0;g=e>>31;n=G[d+12>>1];c=(n-(i>>16)|0)+c|0;i=c>>31;g=(e^g)-g|0;i=(c^i)-i|0;h:{if(g+i>>>0>>0){G[d>>1]=J[d>>1]|16;break h}k=(d-a|0)/40|0;H[a+24>>2]=k;H[d+28>>2]=0-k;k=0-c|0;i:{if((c|0)<=(e|0)){i=(e|0)<(k|0);g=i?e:c;c=g>>31;g=(c^g)-c|0;c=i?k:e;o=i?-1:2;break i}o=1;if((e|0)>=(k|0)){break i}c=0-e|0;g=i;o=254}e=(N(g,14)|0)<(c|0)?o:4;F[a+3|0]=e;c=H[a+32>>2];if((d|0)!=(c|0)){while(1){F[c+3|0]=e;F[c+2|0]=e;c=H[c+32>>2];if((d|0)!=(c|0)){continue}break}}F[d+2|0]=e;a=(f-d|0)/40|0;H[d+24>>2]=a;c=0;H[f+28>>2]=0-a;a=d;e=0}if((d|0)!=(f|0)){continue}break}m=m+4|0;if(j>>>0>m>>>0){continue}break}}if((p|0)<=0){break a}c=h;while(1){e=J[c>>1];j:{if(e&16|I[c+2|0]!=4|I[c+3|0]!=4){break j}d=H[c+24>>2];a=N(d,40)+c|0;b=G[c+12>>1];i=G[a+12>>1]-b|0;g=b;f=H[c+28>>2];b=N(f,40)+c|0;if((i^g-G[b+12>>1])<0){break j}g=G[c+14>>1];if((g-G[b+14>>1]^G[a+14>>1]-g)<0){break j}G[c>>1]=e|16;e=b;b=(N(d-f|0,40)|0)/40|0;H[e+24>>2]=b;H[a+28>>2]=0-b}c=c+40|0;if(r>>>0>c>>>0){continue}break}if((p|0)<=0){break a}while(1){c=J[h>>1];k:{if(c&16){break k}l:{if(c&3){break l}a=I[h+3|0];b=I[h+2|0];if((a|0)==(b|0)){if((a|0)!=4){break l}c=G[h+12>>1];e=H[h+28>>2];a=N(e,40)+h|0;d=G[h+14>>1];f=H[h+24>>2];b=N(f,40)+h|0;if(!rD(c-G[a+12>>1]|0,d-G[a+14>>1]|0,G[b+12>>1]-c|0,G[b+14>>1]-d|0)){break k}c=a;a=(N(f-e|0,40)|0)/40|0;H[c+24>>2]=a;H[b+28>>2]=0-a;c=J[h>>1];break l}if((0-(a<<24>>24)|0)!=b<<24>>24){break k}}G[h>>1]=c|16}h=h+40|0;if(r>>>0>h>>>0){continue}break}}xb=l+16|0;return H[l+12>>2]}function J0(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;c=xb-192|0;xb=c;d=H[b+12>>2];i=H[b+4>>2];e=H[b+8>>2];b=H[b>>2];H[197455]=0;f=+(e|0);g=+(b|0);e=f>2];H[b>>2]=0;H[c+92>>2]=h;H[c+76>>2]=0;b=H[c+56>>2];h=H[c+60>>2];H[c+56>>2]=0;H[c+60>>2]=0;H[c+84>>2]=b;H[c+88>>2]=h;H[197455]=0;j=+(d|0);k=+(i|0);i=j>2]=0;b=H[c+44>>2];H[c+108>>2]=H[c+40>>2];H[c+112>>2]=b;b=H[c+48>>2];H[c+48>>2]=0;H[c+116>>2]=b;H[c+40>>2]=0;H[c+44>>2]=0;H[197455]=0;f=(e?g:f)-l;fa(1756,c+24|0,+f,-1);e=H[197455];H[197455]=0;b=c+120|0;if((e|0)==1){break p}H[197455]=0;d=aa(899,32)|0;e=H[197455];H[197455]=0;if((e|0)==1){break o}H[c+124>>2]=5;H[c+128>>2]=-2147483640;H[c+120>>2]=d;H[197455]=0;Mb(d,403488,5);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[d+20>>2]=0;H[c+140>>2]=H[c+32>>2];b=H[c+28>>2];H[c+132>>2]=H[c+24>>2];H[c+136>>2]=b;H[c+32>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[197455]=0;g=(i?k:j)-m;fa(1756,c+8|0,+g,-1);b=H[197455];H[197455]=0;if((b|0)==1){break n}H[197455]=0;b=aa(899,32)|0;e=H[197455];H[197455]=0;d=1;if((e|0)==1){break m}H[c+148>>2]=6;H[c+152>>2]=-2147483640;H[c+144>>2]=b;H[197455]=0;Mb(b,403652,6);d=H[197455];H[197455]=0;if((d|0)==1){break a}d=0;H[b+24>>2]=0;H[c+164>>2]=H[c+16>>2];b=H[c+12>>2];H[c+156>>2]=H[c+8>>2];H[c+160>>2]=b;H[c+16>>2]=0;H[c+172>>2]=4;H[197455]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+168>>2]=c+72;b=H[c+172>>2];H[c>>2]=H[c+168>>2];H[c+4>>2]=b;e=da(1763,c+176|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break l}if(F[c+167|0]<0){Kb(H[c+156>>2])}if(F[c+155|0]<0){Kb(H[c+144>>2])}if(F[c+143|0]<0){Kb(H[c+132>>2])}if(F[c+131|0]<0){Kb(H[c+120>>2])}if(F[c+119|0]<0){Kb(H[c+108>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+95|0]<0){Kb(H[c+84>>2])}if(F[c+83|0]<0){Kb(H[c+72>>2])}if(F[c+19|0]<0){Kb(H[c+8>>2])}if(F[c+35|0]<0){Kb(H[c+24>>2])}if(F[c+51|0]<0){Kb(H[c+40>>2])}if(F[c+67|0]<0){Kb(H[c+56>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,e|0,+f,+g);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c+72>>2]=b;H[c+76>>2]=4;H[c+80>>2]=-2147483640;H[197455]=0;Mb(b,410880,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[c+67|0]=0;H[197455]=0;H[c+56>>2]=0;ka(1767,a|0,c+72|0,e|0,c+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+67|0]<0){Kb(H[c+56>>2])}if(F[c+83|0]<0){Kb(H[c+72>>2])}a=H[e>>2];if(a){b=H[e+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}d=b-24|0;if(F[b-13|0]<0){Kb(H[d>>2])}b=d;if((a|0)!=(b|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}xb=c+192|0;return}a=$()|0;_()|0;ea(a|0);X()}a=$()|0;_()|0;break g}a=$()|0;_()|0;break h}a=$()|0;d=1;_()|0;break i}a=$()|0;d=1;_()|0;break j}a=$()|0;_()|0;break k}a=$()|0;_()|0;Vb(c+144|0);Vb(c+120|0);Vb(c+96|0);Vb(c+72|0)}if(F[c+19|0]>=0){break j}Kb(H[c+8>>2])}b=c+144|0}if(F[c+35|0]>=0){break h}Kb(H[c+24>>2])}if(F[c+51|0]>=0){break g}Kb(H[c+40>>2])}if(F[c+67|0]<0){Kb(H[c+56>>2])}if(!d){break b}while(1){b=Vb(b-24|0);if((b|0)!=(c+72|0)){continue}break}break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[c+67|0]<0){Kb(H[c+56>>2])}if(F[c+83|0]>=0){break c}Kb(H[c+72>>2])}yc(e)}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Ag(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;e=35;a:{if(!a|!H[a+88>>2]){break a}d=H[a+84>>2];if(!d){break a}b:{c:{e=H[d+156>>2];if(!e){break c}f=H[e+4>>2];if(!(f&1)){break c}g=H[d+88>>2];if(g){e=H[H[d+4>>2]+100>>2];zb[H[e+8>>2]](e,g);e=H[d+156>>2];f=H[e+4>>2]}H[d+88>>2]=0;H[e+4>>2]=f&-2;break b}H[d+88>>2]=0}H[d+24>>2]=0;H[d+28>>2]=0;H[d+72>>2]=0;H[d+76>>2]=0;H[d+100>>2]=0;H[d+104>>2]=0;F[d+94|0]=0;H[d+32>>2]=0;H[d+36>>2]=0;H[d+40>>2]=0;H[d+44>>2]=0;H[d+48>>2]=0;H[d+52>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;H[d+80>>2]=0;H[d+84>>2]=0;H[d+108>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;H[d+120>>2]=0;H[d+124>>2]=0;H[d+128>>2]=0;H[d+132>>2]=0;H[d+136>>2]=0;H[d+140>>2]=0;H[d+144>>2]=0;H[d+148>>2]=0;H[d+152>>2]=0;d:{e:{c=c&1024?c|2049:c;c=c&1?c&-15|10:c;h=c&4194304?c&-5:c;i=h&2;f=H[a+96>>2];g=H[H[f+4>>2]+160>>2];if(i|!g|h&32768){break e}e=H[a+8>>2];if((e&8193)!=1){break e}f:{if(h&2048){break f}j=H[a+128>>2];c=H[j>>2];if(!H[j+8>>2]){if(c){break f}break e}if(c){break e}}g:{if(h&32){break g}c=H[f>>2];if(!(I[c+1|0]&4)){break g}if(_c(zb[H[c+32>>2]](f,8765)|0,9155)){c=H[f+28>>2]==1}else{c=0}if(!(c|(I[H[f>>2]+1|0]&8)>>>3|(h&983040)!=65536)){e=H[a+8>>2];break g}e=H[a+8>>2];if(!(e&8)|!H[a+760>>2]|(J[a+286>>1]|H[a+684>>2])){break e}if(H[a+692>>2]){break e}}h:{if(!(e&2)|h&8){break h}if(zb[H[H[f+12>>2]+72>>2]](d,H[a+88>>2],b,h|16384)|0){break h}c=0;if(H[d+72>>2]==1651078259){break d}}e=H[a+128>>2];f=H[e+24>>2];H[e+24>>2]=0;c=zb[H[H[H[g>>2]+20>>2]+12>>2]](g,d,H[a+88>>2],b,h)|0;H[e+24>>2]=f;break d}e=zb[H[H[f+12>>2]+72>>2]](d,H[a+88>>2],b,h)|0;if(e){break a}c=0;if(H[d+72>>2]!=1869968492){break d}g=G[d+110>>1];j=G[d+108>>1];if((g|j)&65535){e=6;if((g|0)<=0|(j|0)<=0){break a}l=H[d+120>>2];f=-1;while(1){m=f;f=G[(k<<1)+l>>1];if((m|0)>=(f|0)|(f|0)>=(g|0)){break a}k=k+1|0;if((j|0)!=(k|0)){continue}break}if((g-1|0)!=(f|0)){break a}}if(i){break d}i:{if(h>>>4&1){H[d+32>>2]=H[d+32>>2]&-64;e=H[d+44>>2];f=e&-64;H[d+44>>2]=f;g=H[d+48>>2];i=g&-64;H[d+48>>2]=i;H[d+36>>2]=H[d+36>>2]+63&-64;H[d+24>>2]=((e+H[d+24>>2]|0)+63&-64)-f;H[d+28>>2]=((g+H[d+28>>2]|0)+63&-64)-i;break i}H[d+44>>2]=H[d+44>>2]&-64;H[d+48>>2]=H[d+48>>2]&-64;e=H[d+32>>2];f=e&-64;H[d+32>>2]=f;g=H[d+36>>2];i=g+63&-64;H[d+36>>2]=i;H[d+28>>2]=i-(g-H[d+28>>2]&-64);H[d+24>>2]=((e+H[d+24>>2]|0)+63&-64)-f}H[d+40>>2]=H[d+40>>2]+32&-64;H[d+52>>2]=H[d+52>>2]+32&-64}j:{if(h&16){f=0;e=H[d+52>>2];break j}f=H[d+40>>2];e=0}H[d+64>>2]=f;H[d+68>>2]=e;if(!(!(F[a+8|0]&1)|h&8192)){e=H[a+88>>2];n=d,o=ic(H[d+56>>2],H[e+16>>2],64),H[n+56>>2]=o;n=d,o=ic(H[d+60>>2],H[e+20>>2],64),H[n+60>>2]=o}k:{if(h&2048){break k}i=H[a+128>>2];g=H[i+24>>2];if(!g){break k}l:{m:{a=H[H[H[d+4>>2]+96>>2]+4>>2];e=H[a+156>>2];n:{if(!e){f=H[d+72>>2];break n}f=H[d+72>>2];if((f|0)==H[e+16>>2]){break m}}a=H[a+148>>2];if(a){while(1){e=H[a+8>>2];if(H[e+16>>2]==(f|0)){break m}a=H[a+4>>2];if(a){continue}break}}o:{if((f|0)!=1869968492){break o}if(g&1){Wg(d+108|0,i);g=H[i+24>>2]}if(!(g&2)){break o}j=G[d+110>>1];if((j|0)<=0){break o}f=H[i+20>>2];g=H[i+16>>2];a=H[d+112>>2];if(j-1>>>0>=3){k=j&-4;e=0;while(1){H[a>>2]=g+H[a>>2];H[a+4>>2]=f+H[a+4>>2];H[a+8>>2]=g+H[a+8>>2];H[a+16>>2]=g+H[a+16>>2];H[a+24>>2]=g+H[a+24>>2];H[a+12>>2]=f+H[a+12>>2];H[a+20>>2]=f+H[a+20>>2];H[a+28>>2]=f+H[a+28>>2];a=a+32|0;e=e+4|0;if((k|0)!=(e|0)){continue}break}}j=j&3;if(!j){break o}e=0;while(1){H[a>>2]=g+H[a>>2];H[a+4>>2]=f+H[a+4>>2];a=a+8|0;e=e+1|0;if((j|0)!=(e|0)){continue}break}}break l}c=zb[H[H[e+12>>2]+44>>2]](e,d,i,i+16|0)|0}un(d- -64|0,i)}e=c;H[d+12>>2]=b;H[H[d+156>>2]+40>>2]=h;if(e){break a}e=0;if(h&1){break a}a=H[d+72>>2];if((a|0)==1651078259|(a|0)==1668246896){break a}a=h>>>16&15;a=a?a:h>>>11&2;if(h&4){b=H[d+4>>2];if(!b){return 6}return BD(H[H[b+96>>2]+4>>2],d,a)|0}tr(d,a,0)}return e|0}function aG(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;n=N(b,c)+a|0;if(b>>>0>=10){p=0-c|0;q=c-1&3;o=c-2>>>0<3;while(1){j=a+c|0;g=H[j+4>>2];h=N(b>>>1|0,c)+a|0;f=H[h+4>>2];e=gc(H[j>>2],H[h>>2],f>>>0>g>>>0?g:f);f=((e?e:g-f|0)|0)>0;d=f?j:h;g=N(b-1|0,c);l=g+a|0;k=l+p|0;e=H[k>>2];i=H[d+4>>2];m=H[k+4>>2];b=gc(H[d>>2],e,i>>>0>>0?i:m);if(((b?b:i-m|0)|0)>0){b=f?h:j;f=H[b+4>>2];i=b;b=gc(H[b>>2],e,f>>>0>>0?f:m);d=((b?b:f-m|0)|0)>0?i:k}if(!((d|0)==(l|0)|(c|0)<=0)){f=c+d|0;b=l;while(1){e=I[d|0];F[d|0]=I[b|0];F[b|0]=e;b=b+1|0;d=d+1|0;if(f>>>0>d>>>0){continue}break}}a:{if((g|0)<=0){h=0;break a}f=l;e=f;j=a;h=a;b:while(1){c:{if(e>>>0<=h>>>0){break c}while(1){g=H[h>>2];k=H[l>>2];i=H[h+4>>2];d=H[l+4>>2];b=gc(g,k,d>>>0>i>>>0?i:d);b=b?b:i-d|0;if((b|0)>0){g=e;d:{if(e>>>0<=h>>>0){break d}while(1){e:{f:{e=g+p|0;m=H[e>>2];i=H[e+4>>2];b=gc(m,k,d>>>0>i>>>0?i:d);b=b?b:i-d|0;if(!b){i=f+p|0;if((c|0)<=0|f>>>0<=g>>>0){break f}F[e|0]=I[i|0];F[i|0]=m;d=e+1|0;if(g>>>0<=d>>>0){break f}k=0;b=i;if(q){while(1){f=I[d|0];F[d|0]=I[b+1|0];F[b+1|0]=f;d=d+1|0;b=b+1|0;k=k+1|0;if((q|0)!=(k|0)){continue}break}}if(o){break f}while(1){f=I[d|0];F[d|0]=I[b+1|0];F[b+1|0]=f;f=I[d+1|0];F[d+1|0]=I[b+2|0];F[b+2|0]=f;f=I[d+2|0];F[d+2|0]=I[b+3|0];F[b+3|0]=f;f=I[d+3|0];F[d+3|0]=I[b+4|0];F[b+4|0]=f;b=b+4|0;d=d+4|0;if(g>>>0>d>>>0){continue}break}break f}if((b|0)>=0){break e}g:{if((c|0)<=0|e>>>0<=h>>>0){break g}b=I[h|0];F[h|0]=m;F[e|0]=b;if((c|0)==1){break g}i=c+h|0;d=h+1|0;b=e;while(1){g=I[d|0];F[d|0]=I[b+1|0];F[b+1|0]=g;b=b+1|0;d=d+1|0;if(i>>>0>d>>>0){continue}break}}h=c+h|0;break d}f=i}if(e>>>0<=h>>>0){break d}k=H[l>>2];d=H[l+4>>2];g=e;continue}}if(e>>>0>h>>>0){continue b}break c}if(!b){h:{if((c|0)<=0|h>>>0<=j>>>0){break h}b=I[j|0];F[j|0]=g;F[h|0]=b;if((c|0)==1){break h}i=c+j|0;d=j+1|0;b=h;while(1){g=I[d|0];F[d|0]=I[b+1|0];F[b+1|0]=g;b=b+1|0;d=d+1|0;if(i>>>0>d>>>0){continue}break}}j=c+j|0}h=c+h|0;if(h>>>0>>0){continue}break}}break}g=e-j|0;i:{if((a|0)==(j|0)|(e|0)==(j|0)){break i}b=j-a|0;if(b>>>0>g>>>0){if((g|0)<=0){break i}l=a+g|0;d=a+b|0;b=a;while(1){i=I[b|0];F[b|0]=I[d|0];F[d|0]=i;d=d+1|0;b=b+1|0;if(l>>>0>b>>>0){continue}break}break i}if((b|0)<=0){break i}l=a+b|0;d=a+g|0;b=a;while(1){i=I[b|0];F[b|0]=I[d|0];F[d|0]=i;d=d+1|0;b=b+1|0;if(l>>>0>b>>>0){continue}break}}h=f-e|0;if((e|0)==(f|0)|(f|0)==(n|0)){break a}b=n-f|0;if(b>>>0>>0){if((b|0)<=0){break a}f=b+e|0;d=e+h|0;while(1){b=I[e|0];F[e|0]=I[d|0];F[d|0]=b;d=d+1|0;e=e+1|0;if(f>>>0>e>>>0){continue}break}break a}if((h|0)<=0){break a}f=e+h|0;d=b+e|0;while(1){b=I[e|0];F[e|0]=I[d|0];F[d|0]=b;d=d+1|0;e=e+1|0;if(f>>>0>e>>>0){continue}break}}aG(a,(g>>>0)/(c>>>0)|0,c);a=n-h|0;b=(h>>>0)/(c>>>0)|0;n=a+N(c,b)|0;if(b>>>0>=10){continue}break}}f=a+c|0;j:{if(n>>>0<=f>>>0){break j}m=0-c|0;if((c|0)>0){o=c+2&3;i=c-3>>>0<3;while(1){k=f;k:{if(a>>>0>=f>>>0){break k}while(1){e=k;k=e+m|0;j=H[k>>2];g=H[e>>2];h=H[k+4>>2];l=H[e+4>>2];b=gc(j,g,h>>>0>>0?h:l);if(((b?b:h-l|0)|0)<=0){break k}F[k|0]=g;F[e|0]=j;b=k+1|0;l:{if(b>>>0>=e>>>0){break l}F[b|0]=I[e+1|0];F[e+1|0]=j>>>8;d=b+1|0;if((e|0)==(d|0)){break l}b=e+1|0;h=0;if(o){while(1){g=I[d|0];F[d|0]=I[b+1|0];F[b+1|0]=g;d=d+1|0;b=b+1|0;h=h+1|0;if((o|0)!=(h|0)){continue}break}}if(i){break l}while(1){g=I[d|0];F[d|0]=I[b+1|0];F[b+1|0]=g;g=I[d+1|0];F[d+1|0]=I[b+2|0];F[b+2|0]=g;g=I[d+2|0];F[d+2|0]=I[b+3|0];F[b+3|0]=g;g=I[d+3|0];F[d+3|0]=I[b+4|0];F[b+4|0]=g;b=b+4|0;d=d+4|0;if((e|0)!=(d|0)){continue}break}}if(a>>>0>>0){continue}break}}f=c+f|0;if(n>>>0>f>>>0){continue}break}break j}while(1){m:{if(a>>>0>=f>>>0){break m}e=H[f>>2];d=H[f+4>>2];b=f;while(1){b=b+m|0;g=H[b>>2];i=H[b+4>>2];e=gc(g,e,d>>>0>i>>>0?i:d);if(((e?e:i-d|0)|0)<=0){break m}e=g;d=i;if(a>>>0>>0){continue}break}}f=c+f|0;if(n>>>0>f>>>0){continue}break}}}function hla(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;e=xb-48|0;xb=e;H[b+72>>2]=0;a:{c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);n=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(n){q=n-1|0;a=a+8|0;while(1){c=I[a+4|0];b:{if(c&32){break b}f=H[b+16>>2];d=H[f+40>>2];if(((d&-2)!=4|0)==(c<<24>>24>=0|0)){break b}c=H[b+8>>2];H[e+16>>2]=h;if(!Ac(f,c,106245,e+16|0)){break b}h=d&-3;g=1;c:{if(j){break c}g=0;if(!(I[a+4|0]&64)){break c}j=H[b+16>>2];f=H[j+68>>2];g=1;if(!f){break c}d=H[j+88>>2];j=0;if((f|0)!=1){g=f&-2;c=0;while(1){i=d+N(j,20)|0;F[i+18|0]=2;G[i+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;i=d+N(j|1,20)|0;F[i+18|0]=2;G[i+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;j=j+2|0;c=c+2|0;if((g|0)!=(c|0)){continue}break}}g=1;if(!(f&1)){break c}c=d+N(j,20)|0;F[c+18|0]=2;G[c+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;g=1}j=g;k=(h|0)!=5;d:{if(k){break d}h=H[b+16>>2];i=H[h+68>>2];if(i>>>0>=2){m=H[h+80>>2];c=i-1|0;f=0;while(1){g=m+N(c,20)|0;d=g;H[e+40>>2]=H[d+16>>2];l=H[d+12>>2];H[e+32>>2]=H[d+8>>2];H[e+36>>2]=l;l=H[d+4>>2];H[e+24>>2]=H[d>>2];H[e+28>>2]=l;d=m+N(f,20)|0;H[g+16>>2]=H[d+16>>2];l=H[d+12>>2];H[g+8>>2]=H[d+8>>2];H[g+12>>2]=l;l=H[d+4>>2];H[g>>2]=H[d>>2];H[g+4>>2]=l;H[d+16>>2]=H[e+40>>2];g=H[e+36>>2];H[d+8>>2]=H[e+32>>2];H[d+12>>2]=g;g=H[e+28>>2];H[d>>2]=H[e+24>>2];H[d+4>>2]=g;c=c-1|0;f=f+1|0;if(c>>>0>f>>>0){continue}break}}if(!I[h+62|0]){break d}c=H[h+68>>2];c=c>>>0>>0?c:i;if(c>>>0<2){break d}g=H[h+88>>2];c=c-1|0;f=0;while(1){h=g+N(c,20)|0;d=h;H[e+40>>2]=H[d+16>>2];i=H[d+12>>2];H[e+32>>2]=H[d+8>>2];H[e+36>>2]=i;i=H[d+4>>2];H[e+24>>2]=H[d>>2];H[e+28>>2]=i;d=g+N(f,20)|0;H[h+16>>2]=H[d+16>>2];i=H[d+12>>2];H[h+8>>2]=H[d+8>>2];H[h+12>>2]=i;i=H[d+4>>2];H[h>>2]=H[d>>2];H[h+4>>2]=i;H[d+16>>2]=H[e+40>>2];h=H[e+36>>2];H[d+8>>2]=H[e+32>>2];H[d+12>>2]=h;h=H[e+28>>2];H[d>>2]=H[e+24>>2];H[d+4>>2]=h;c=c-1|0;f=f+1|0;if(c>>>0>f>>>0){continue}break}}f=H[b+52>>2];c=H[f+12>>2];H[b+24>>2]=c;f=c+H[f+16>>2]|0;H[b+28>>2]=f;e:{if(!a|o>>>0>=q>>>0){break e}if(!(a>>>0>>0&a>>>0>=c>>>0)){H[b+24>>2]=0;H[b+28>>2]=0;break e}H[b+24>>2]=a;f=f-a|0;c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);H[b+28>>2]=(c>>>0>f>>>0?f:c)+a}H[197455]=0;l=da(713,a|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}c=H[b+52>>2];f=H[c+12>>2];H[b+24>>2]=f;H[b+28>>2]=f+H[c+16>>2];f:{if(k){break f}h=H[b+16>>2];i=H[h+68>>2];if(i>>>0>=2){m=H[h+80>>2];c=i-1|0;f=0;while(1){g=m+N(c,20)|0;d=g;H[e+40>>2]=H[d+16>>2];k=H[d+12>>2];H[e+32>>2]=H[d+8>>2];H[e+36>>2]=k;k=H[d+4>>2];H[e+24>>2]=H[d>>2];H[e+28>>2]=k;d=m+N(f,20)|0;H[g+16>>2]=H[d+16>>2];k=H[d+12>>2];H[g+8>>2]=H[d+8>>2];H[g+12>>2]=k;k=H[d+4>>2];H[g>>2]=H[d>>2];H[g+4>>2]=k;H[d+16>>2]=H[e+40>>2];g=H[e+36>>2];H[d+8>>2]=H[e+32>>2];H[d+12>>2]=g;g=H[e+28>>2];H[d>>2]=H[e+24>>2];H[d+4>>2]=g;c=c-1|0;f=f+1|0;if(c>>>0>f>>>0){continue}break}}if(!I[h+62|0]){break f}c=H[h+68>>2];c=c>>>0>>0?c:i;if(c>>>0<2){break f}g=H[h+88>>2];c=c-1|0;f=0;while(1){h=g+N(c,20)|0;d=h;H[e+40>>2]=H[d+16>>2];i=H[d+12>>2];H[e+32>>2]=H[d+8>>2];H[e+36>>2]=i;i=H[d+4>>2];H[e+24>>2]=H[d>>2];H[e+28>>2]=i;d=g+N(f,20)|0;H[h+16>>2]=H[d+16>>2];i=H[d+12>>2];H[h+8>>2]=H[d+8>>2];H[h+12>>2]=i;i=H[d+4>>2];H[h>>2]=H[d>>2];H[h+4>>2]=i;H[d+16>>2]=H[e+40>>2];h=H[e+36>>2];H[d+8>>2]=H[e+32>>2];H[d+12>>2]=h;h=H[e+28>>2];H[d>>2]=H[e+24>>2];H[d+4>>2]=h;c=c-1|0;f=f+1|0;if(c>>>0>f>>>0){continue}break}}p=l|p;c=H[b+8>>2];f=H[b+16>>2];H[e>>2]=H[b+72>>2];Ac(f,c,106272,e)}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);h=H[b+72>>2]+1|0;H[b+72>>2]=h;a=(c<<8&16711680|c<<24|(c>>>8&65280|c>>>24))+a|0;o=o+1|0;if((n|0)!=(o|0)){continue}break}}xb=e+48|0;return p&1}a=$()|0;_()|0;c=H[b+52>>2];j=H[c+12>>2];H[b+24>>2]=j;H[b+28>>2]=j+H[c+16>>2];ea(a|0);X()}function lt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=1;a:{b:{c:{switch(I[a+7|0]){case 0:d=0;f=H[b+4>>2];e=a+12|0;if(f>>>0>e>>>0){break b}c=H[b+8>>2];if(c>>>0>>0|c-e>>>0<8){break b}g=H[b+12>>2]-8|0;H[b+12>>2]=g;if((g|0)<=0){break b}e=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(e>>>0>715827881){break b}if(e){a=a+28|0;if(a>>>0>>0|a>>>0>c>>>0){break b}c=c-a|0;a=N(e,6);if(c>>>0>>0){break b}a=g-a|0;H[b+12>>2]=a;if((a|0)<=0){break b}}return 1;case 1:d=0;if(K[b+4>>2]>a>>>0){break b}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<32){break b}c=H[b+12>>2]-32|0;H[b+12>>2]=c;if((c|0)<=0){break b}break a;case 2:d=0;e=H[b+4>>2];d:{if(e>>>0>a>>>0){break d}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<28){break d}g=H[b+12>>2];f=g-28|0;H[b+12>>2]=f;if((f|0)<=0){break d}f=e;e=a+16|0;if(f>>>0>e>>>0|c>>>0>>0|c-e>>>0<4){break d}c=g-32|0;H[b+12>>2]=c;if((c|0)<=0){break d}c=F[e|0];if((c|0)<0){break d}e:{if(!Hf((I[a+19|0]|(I[a+17|0]<<16|(c&255)<<24|I[a+18|0]<<8))+a|0,b)){break e}c=a+20|0;if(c>>>0>2]){break e}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<4){break e}d=H[b+12>>2]-4|0;H[b+12>>2]=d;if((d|0)<=0){break e}d=0;c=F[c|0];if((c|0)<0){break d}if(!Hf((I[a+23|0]|(I[a+21|0]<<16|(c&255)<<24|I[a+22|0]<<8))+a|0,b)){break e}d=1;c=I[a+24|0]|I[a+25|0]<<8|(I[a+26|0]<<16|I[a+27|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(!c){break d}if(K[b+4>>2]>a>>>0){break e}e=H[b+8>>2];if(e>>>0>>0){break e}d=0;if(c>>>0>e-a>>>0){break d}a=H[b+12>>2]-c|0;H[b+12>>2]=a;d=(a|0)>0;break d}d=0}return d|0;case 4:d=0;if(K[b+4>>2]>a>>>0){break b}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<32){break b}c=H[b+12>>2]-32|0;H[b+12>>2]=c;if((c|0)<=0){break b}break a;case 6:break c;default:break b}}f:{g:{c=H[b+4>>2];if(c>>>0>a>>>0){break g}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<36){break g}e=H[b+12>>2];g=e-36|0;H[b+12>>2]=g;if((g|0)<=0){break g}h:{i:{if(F[a+15|0]&1){f=c;c=a+20|0;if(f>>>0>c>>>0|c>>>0>d>>>0|d-c>>>0<4){break g}d=e-40|0;H[b+12>>2]=d;if((d|0)<=0){break g}d=0;c=F[c|0];if((c|0)<0){break g}if(!kt((I[a+23|0]|(I[a+21|0]<<16|(c&255)<<24|I[a+22|0]<<8))+a|0,b)){break h}c=a+24|0;if(c>>>0>2]){break h}e=H[b+8>>2];if(e>>>0>>0|e-c>>>0<4){break h}e=H[b+12>>2]-4|0;H[b+12>>2]=e;if((e|0)<=0){break h}c=F[c|0];if((c|0)<0){break h}if(!kt((I[a+27|0]|(I[a+25|0]<<16|(c&255)<<24|I[a+26|0]<<8))+a|0,b)){break g}d=I[a+28|0]|I[a+29|0]<<8|(I[a+30|0]<<16|I[a+31|0]<<24);c=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(!c){break i}if(K[b+4>>2]>a>>>0){break g}e=H[b+8>>2];if(e>>>0>>0){break g}d=0;if(c>>>0>e-a>>>0){break h}c=H[b+12>>2]-c|0;H[b+12>>2]=c;if((c|0)>0){break i}break h}f=c;c=a+20|0;if(f>>>0>c>>>0|c>>>0>d>>>0|d-c>>>0<4){break g}d=e-40|0;H[b+12>>2]=d;if((d|0)<=0){break g}d=0;c=F[c|0];if((c|0)<0){break g}if(!Hf((I[a+23|0]|(I[a+21|0]<<16|(c&255)<<24|I[a+22|0]<<8))+a|0,b)){break h}c=a+24|0;if(c>>>0>2]){break h}e=H[b+8>>2];if(e>>>0>>0|e-c>>>0<4){break h}e=H[b+12>>2]-4|0;H[b+12>>2]=e;if((e|0)<=0){break h}c=F[c|0];if((c|0)<0){break h}if(!Hf((I[a+27|0]|(I[a+25|0]<<16|(c&255)<<24|I[a+26|0]<<8))+a|0,b)){break g}d=I[a+28|0]|I[a+29|0]<<8|(I[a+30|0]<<16|I[a+31|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(!d){break i}if(K[b+4>>2]>a>>>0){break g}c=H[b+8>>2];if(c>>>0>>0|d>>>0>c-a>>>0){break g}c=H[b+12>>2]-d|0;H[b+12>>2]=c;d=0;if((c|0)<=0){break h}}d=1;c=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);if(!(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))){break h}c=I[a+32|0]|I[a+33|0]<<8|(I[a+34|0]<<16|I[a+35|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(!c){break h}if(K[b+4>>2]>a>>>0){break g}e=H[b+8>>2];if(e>>>0>>0){break g}d=0;if(c>>>0>e-a>>>0){break h}a=H[b+12>>2]-c|0;H[b+12>>2]=a;d=(a|0)>0}break f}d=0}}return d|0}return vt(a+12|0,b)|0}function Qe(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=O(0),l=0,m=0,n=O(0),o=0,p=O(0),q=O(0);l=xb-16|0;xb=l;H[l+12>>2]=c;d=zj(a,b);a:{if(!d){break a}if(b>>>0<=65535){d=J[d+12>>1];if(!(H[((d>>>3&8188)+a|0)+40>>2]>>>d&1)){break a}}e=zb[H[a+672>>2]](a,b,c)|0}b:{c:{d:{e:{if(e){break e}f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{switch(b-254|0){default:r:{switch(b-529|0){case 2:break i;case 1:break j;case 0:break k;case 3:break f;default:break r}}switch(b-32995|0){case 2:break l;case 1:break n;case 3:break o;case 0:break p;default:break d};case 0:H[H[c>>2]>>2]=H[a+80>>2];break e;case 4:G[H[c>>2]>>1]=J[a+84>>1];break e;case 9:G[H[c>>2]>>1]=J[a+92>>1];break e;case 12:G[H[c>>2]>>1]=J[a+94>>1];break e;case 20:G[H[c>>2]>>1]=J[a+96>>1];break e;case 23:G[H[c>>2]>>1]=J[a+98>>1];break e;case 24:H[H[c>>2]>>2]=H[a+100>>2];break e;case 26:G[H[c>>2]>>1]=J[a+104>>1];break e;case 27:G[H[c>>2]>>1]=J[a+106>>1];break e;case 30:G[H[c>>2]>>1]=J[a+138>>1];break e;case 42:G[H[c>>2]>>1]=J[a+136>>1];break e;case 63:G[H[c>>2]>>1]=H[H[a+584>>2]>>2];break e;case 82:G[H[c>>2]>>1]=0;G[H[c+4>>2]>>1]=-1<>1]^-1;break e;case 78:G[H[c>>2]>>1]=1;a=1;break b;case 80:G[H[c>>2]>>1]=4;break e;case 85:break m;case 84:break q;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 22:case 25:case 28:case 29:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 43:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 79:case 81:case 83:break d;case 47:break g;case 64:break h}}G[H[c>>2]>>1]=J[a+168>>1];H[H[c+4>>2]>>2]=H[a+172>>2];break e}G[H[c>>2]>>1]=J[H[a+172>>2]>>1]==1&J[a+168>>1]==1;a=1;break b}H[H[c>>2]>>2]=H[a+76>>2];break e}G[H[c>>2]>>1]=J[a+86>>1]-1;break e}G[H[c>>2]>>1]=J[a+86>>1];break e}H[H[c>>2]>>2]=H[a- -64>>2];break e}H[H[c>>2]>>2]=784252;break e}G[H[c>>2]>>1]=J[a+204>>1];G[H[c+4>>2]>>1]=J[a+206>>1];break e}G[H[c>>2]>>1]=J[a+208>>1];break e}H[196372]=1051788566;H[196373]=1052218684;H[H[c>>2]>>2]=785488;break e}b=H[a+216>>2];if(!b){H[a+216>>2]=0;H[a+220>>2]=0;H[a+224>>2]=0;g=J[a+84>>1];s:{if(g>>>0>29){break s}e=1<>2]=b;if(!b){break s}G[b>>1]=0;t:{if(!g){break t}f=1;h=e-1|0;o=h&1;i=+(e|0)+-1;if((g|0)!=1){h=h&-2;g=0;while(1){m=b+(f<<1)|0;j=T(Kd(+(f|0)/i,2.2)*65535+.5);u:{if(j<4294967296&j>=0){e=~~j>>>0;break u}e=0}G[m>>1]=e;e=f+1|0;m=b+(e<<1)|0;j=T(Kd(+(e|0)/i,2.2)*65535+.5);v:{if(j<4294967296&j>=0){e=~~j>>>0;break v}e=0}G[m>>1]=e;f=f+2|0;g=g+2|0;if((h|0)!=(g|0)){continue}break}}if(!o){break t}e=b+(f<<1)|0;i=T(Kd(+(f|0)/i,2.2)*65535+.5);w:{if(i<4294967296&i>=0){b=~~i>>>0;break w}b=0}G[e>>1]=b}f=1;if((J[a+98>>1]-J[a+168>>1]|0)<2){break s}b=Tb(d);H[a+220>>2]=b;x:{if(!b){break x}Kc(b,H[a+216>>2],d);b=Tb(d);H[a+224>>2]=b;if(!b){break x}Kc(b,H[a+216>>2],d);break s}b=H[a+216>>2];if(b){Kb(b)}b=H[a+220>>2];if(b){Kb(b)}b=H[a+224>>2];if(b){Kb(b)}f=0;H[a+224>>2]=0;H[a+216>>2]=0;H[a+220>>2]=0}if(!f){break c}b=H[a+216>>2]}H[H[c>>2]>>2]=b;if((J[a+98>>1]-J[a+168>>1]|0)<2){break e}H[H[c+4>>2]>>2]=H[a+220>>2];H[H[c+8>>2]>>2]=H[a+224>>2];break e}b=H[a+212>>2];if(!b){d=Tb(24);H[a+212>>2]=d;b=0;y:{if(!d){break y}z:{if(J[a+90>>1]==6){p=O(128);g=4;e=12;k=O(255);q=O(255);n=O(128);h=8;b=20;break z}g=12;e=8;k=O(-1<>1]^-1);n=k;h=20;b=4}H[d>>2]=0;L[b+d>>2]=k;L[d+e>>2]=q;L[d+g>>2]=k;L[d+16>>2]=p;L[d+h>>2]=n;b=1}if(!b){break d}b=H[a+212>>2]}H[H[c>>2]>>2]=b}f=1}a=f;break b}Pb(H[a+628>>2],H[a>>2],271424,0);a=0}xb=l+16|0;return a|0}function XH(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;e=xb-48|0;xb=e;H[b+72>>2]=0;a:{c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);m=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(m){q=m-1|0;h=a+8|0;a=0;while(1){c=H[b+16>>2];d=H[c+40>>2];f=F[h+4|0];b:{if(((d&-2)!=4|0)==((f|0)>=0|0)){break b}g=H[b+8>>2];H[e+16>>2]=a;if(!Ac(c,g,106160,e+16|0)){break b}k=(f&16)>>>4^(d&-3)!=5;a=1;c:{if(n){break c}a=0;if(!(I[h+4|0]&64)){break c}d=H[b+16>>2];c=H[d+68>>2];a=1;if(!c){break c}d=H[d+88>>2];f=0;if((c|0)!=1){n=c&-2;a=0;while(1){g=d+N(f,20)|0;F[g+18|0]=2;G[g+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;g=d+N(f|1,20)|0;F[g+18|0]=2;G[g+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;f=f+2|0;a=a+2|0;if((n|0)!=(a|0)){continue}break}}a=1;if(!(c&1)){break c}a=d+N(f,20)|0;F[a+18|0]=2;G[a+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;a=1}n=a;d:{if(k){break d}g=H[b+16>>2];i=H[g+68>>2];if(i>>>0>=2){l=H[g+80>>2];a=i-1|0;f=0;while(1){c=l+N(a,20)|0;H[e+40>>2]=H[c+16>>2];d=H[c+12>>2];H[e+32>>2]=H[c+8>>2];H[e+36>>2]=d;d=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=d;d=l+N(f,20)|0;H[c+16>>2]=H[d+16>>2];j=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=j;j=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=j;H[d+16>>2]=H[e+40>>2];c=H[e+36>>2];H[d+8>>2]=H[e+32>>2];H[d+12>>2]=c;c=H[e+28>>2];H[d>>2]=H[e+24>>2];H[d+4>>2]=c;a=a-1|0;f=f+1|0;if(a>>>0>f>>>0){continue}break}}if(!I[g+62|0]){break d}a=H[g+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2){break d}g=H[g+88>>2];a=a-1|0;f=0;while(1){c=g+N(a,20)|0;H[e+40>>2]=H[c+16>>2];d=H[c+12>>2];H[e+32>>2]=H[c+8>>2];H[e+36>>2]=d;d=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=d;d=g+N(f,20)|0;H[c+16>>2]=H[d+16>>2];i=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=i;i=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=i;H[d+16>>2]=H[e+40>>2];c=H[e+36>>2];H[d+8>>2]=H[e+32>>2];H[d+12>>2]=c;c=H[e+28>>2];H[d>>2]=H[e+24>>2];H[d+4>>2]=c;a=a-1|0;f=f+1|0;if(a>>>0>f>>>0){continue}break}}c=H[b+52>>2];a=H[c+12>>2];H[b+24>>2]=a;c=a+H[c+16>>2]|0;H[b+28>>2]=c;e:{if(!h|o>>>0>=q>>>0){break e}if(!(a>>>0<=h>>>0&c>>>0>h>>>0)){H[b+24>>2]=0;H[b+28>>2]=0;break e}H[b+24>>2]=h;c=c-h|0;a=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);H[b+28>>2]=(a>>>0>c>>>0?c:a)+h}H[197455]=0;l=da(589,h|0,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[b+52>>2];c=H[a+12>>2];H[b+24>>2]=c;H[b+28>>2]=c+H[a+16>>2];f:{if(k){break f}g=H[b+16>>2];i=H[g+68>>2];if(i>>>0>=2){k=H[g+80>>2];a=i-1|0;f=0;while(1){c=k+N(a,20)|0;H[e+40>>2]=H[c+16>>2];d=H[c+12>>2];H[e+32>>2]=H[c+8>>2];H[e+36>>2]=d;d=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=d;d=k+N(f,20)|0;H[c+16>>2]=H[d+16>>2];j=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=j;j=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=j;H[d+16>>2]=H[e+40>>2];c=H[e+36>>2];H[d+8>>2]=H[e+32>>2];H[d+12>>2]=c;c=H[e+28>>2];H[d>>2]=H[e+24>>2];H[d+4>>2]=c;a=a-1|0;f=f+1|0;if(a>>>0>f>>>0){continue}break}}if(!I[g+62|0]){break f}a=H[g+68>>2];a=a>>>0>>0?a:i;if(a>>>0<2){break f}g=H[g+88>>2];a=a-1|0;f=0;while(1){c=g+N(a,20)|0;H[e+40>>2]=H[c+16>>2];d=H[c+12>>2];H[e+32>>2]=H[c+8>>2];H[e+36>>2]=d;d=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=d;d=g+N(f,20)|0;H[c+16>>2]=H[d+16>>2];i=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=i;i=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=i;H[d+16>>2]=H[e+40>>2];c=H[e+36>>2];H[d+8>>2]=H[e+32>>2];H[d+12>>2]=c;c=H[e+28>>2];H[d>>2]=H[e+24>>2];H[d+4>>2]=c;a=a-1|0;f=f+1|0;if(a>>>0>f>>>0){continue}break}}p=l|p;a=H[b+8>>2];c=H[b+16>>2];H[e>>2]=H[b+72>>2];Ac(c,a,106186,e)}c=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);a=H[b+72>>2]+1|0;H[b+72>>2]=a;h=(c<<8&16711680|c<<24|(c>>>8&65280|c>>>24))+h|0;o=o+1|0;if((m|0)!=(o|0)){continue}break}}xb=e+48|0;return p&1}a=$()|0;_()|0;c=H[b+52>>2];d=H[c+12>>2];H[b+24>>2]=d;H[b+28>>2]=d+H[c+16>>2];ea(a|0);X()}function HE(a,b){var c=0,d=0,e=0,f=0,g=O(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;j=xb-32|0;xb=j;h=H[b+100>>2];d=I[a+2|0]|I[a+3|0]<<8;if(d){c=((d<<8|d>>>8)&65535)+a|0}else{c=163632}c=Gc(c,H[H[h+80>>2]+N(H[h+64>>2],20)>>2]);i=I[a+4|0]|I[a+5|0]<<8;n=c>>>0<((i<<8|i>>>8)&65535)>>>0?((c<<2)+a|0)+6|0:163632;d=0;a:{if(!(I[n|0]|I[n+1|0]<<8)){break a}d=H[h+64>>2];H[b+40>>2]=1;H[b+4>>2]=d;c=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[c+68>>2];F[b+24|0]=(d|0)==H[c+64>>2]?I[(H[c+80>>2]+N(d,20)|0)+15|0]:0;c=b+4|0;if(!ah(c,j+28|0)){d=0;if(!(I[h+16|0]&64)){break a}Rc(h,2,H[j+28>>2],H[h+64>>2]+1|0,0,1);d=0;break a}d=I[a+2|0]|I[a+3|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}d=Gc(d,H[H[h+80>>2]+N(H[c>>2],20)>>2]);i=I[a+4|0]|I[a+5|0]<<8;d=d>>>0<((i<<8|i>>>8)&65535)>>>0?((d<<2)+a|0)+6|0:163632;r=I[d+2|0]|I[d+3|0]<<8;if(!r){d=0;if(!(I[h+16|0]&64)){break a}Rc(h,2,H[c>>2],H[h+64>>2]+1|0,0,1);d=0;break a}d=H[h+68>>2];i=H[h+64>>2];o=d>>>0>>0?d:i;d=H[c>>2];p=o-d|0;b:{if(p>>>0<2){break b}k=H[h+144>>2]|32;H[h+144>>2]=k;if(d>>>0>=o>>>0){break b}m=H[h+80>>2];f=-1;c=d;s=(c^-1)+o|0;if(s>>>0>=3){q=p&-4;while(1){e=N(c,20)+m|0;l=H[e+8>>2];f=f>>>0>>0?f:l;l=H[e+28>>2];f=f>>>0>>0?f:l;l=H[e+48>>2];f=f>>>0>>0?f:l;e=H[e+68>>2];f=f>>>0>>0?f:e;c=c+4|0;t=t+4|0;if((q|0)!=(t|0)){continue}break}}q=p&3;if(q){e=0;while(1){l=H[(N(c,20)+m|0)+8>>2];f=f>>>0>>0?f:l;c=c+1|0;e=e+1|0;if((q|0)!=(e|0)){continue}break}}c=d;if(p&1){c=N(d,20)+m|0;if(H[c+8>>2]!=(f|0)){H[h+144>>2]=k;H[c+4>>2]=H[c+4>>2]|3}c=d+1|0}if(!s){break b}while(1){e=N(c,20)+m|0;if(H[e+8>>2]!=(f|0)){k=k|32;H[h+144>>2]=k;H[e+4>>2]=H[e+4>>2]|3}e=N(c+1|0,20)+m|0;if(H[e+8>>2]!=(f|0)){k=k|32;H[h+144>>2]=k;H[e+4>>2]=H[e+4>>2]|3}c=c+2|0;if((o|0)!=(c|0)){continue}break}}Hn(((r<<8|r>>>8)&65535)+a|0,b,H[H[h+80>>2]+N(d,20)>>2],j+16|0,j+12|0);c=I[n|0]|I[n+1|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}Hn(a,b,H[H[h+80>>2]+N(i,20)>>2],j+24|0,j+20|0);f=H[h+88>>2];c:{d:{e:{f:{g:{k=H[b+116>>2];switch(k-4|0){case 3:break d;case 2:break e;case 1:break f;case 0:break g;default:break c}}c=f+N(d,20)|0;g=O(O(T(O(L[j+16>>2]+O(.5))))+O(H[c+8>>2]));h:{if(O(P(g))>2]=a;a=f+N(i,20)|0;e=H[a+8>>2];g=O(O(T(O(L[j+24>>2]+O(.5))))+O(e|0));i:{if(O(P(g))>2]=e-c;H[a>>2]=H[a>>2]-c;break c}a=f+N(d,20)|0;e=H[a+8>>2];g=O(O(T(O(L[j+16>>2]+O(.5))))+O(e|0));j:{if(O(P(g))>2]=e-c;H[a>>2]=H[a>>2]-c;a=f+N(i,20)|0;g=O(O(T(O(L[j+24>>2]+O(.5))))+O(H[a+8>>2]));if(O(P(g))>2]=~~g;break c}H[a>>2]=-2147483648;break c}c=f+N(d,20)|0;g=O(O(T(O(L[j+12>>2]+O(.5))))+O(H[c+12>>2]));k:{if(O(P(g))>2]=a;a=f+N(i,20)|0;e=H[a+12>>2];g=O(O(T(O(L[j+20>>2]+O(.5))))+O(e|0));l:{if(O(P(g))>2]=e-c;H[a+4>>2]=H[a+4>>2]-c;break c}a=f+N(d,20)|0;e=H[a+12>>2];g=O(O(T(O(L[j+12>>2]+O(.5))))+O(e|0));m:{if(O(P(g))>2]=e-c;H[a+4>>2]=H[a+4>>2]-c;c=f+N(i,20)|0;g=O(T(O(L[j+20>>2]+O(.5))));n:{if(O(P(g))>2]=a}a=I[b+132|0];g=O(L[j+20>>2]-L[j+12>>2]);o:{if(O(P(g))>2]-L[j+16>>2]);p:{if(O(P(g))>1]=d-a;F[i+18|0]=2;H[h+144>>2]=H[h+144>>2]|8;r:{if((H[b+116>>2]&-2)==4){H[i+12>>2]=c;break r}H[i+8>>2]=e}a=f+N(d,20)|0;if(G[a+16>>1]==(0-G[i+16>>1]|0)){G[a+16>>1]=0}H[h+64>>2]=H[h+64>>2]+1;d=1}xb=j+32|0;return d}function nX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=xb-192|0;xb=f;H[197455]=0;h=+(e|0);fa(1756,f+56|0,+h,-1);e=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((e|0)!=1){F[f+83|0]=1;H[197455]=0;Mb(f+72|0,434368,1);e=H[197455];H[197455]=0;if((e|0)==1){break a}e=f- -64|0;g=H[e>>2];H[e>>2]=0;H[f+92>>2]=g;H[f+76>>2]=0;e=H[f+56>>2];g=H[f+60>>2];H[f+56>>2]=0;H[f+60>>2]=0;H[f+84>>2]=e;H[f+88>>2]=g;H[197455]=0;i=+(d|0);fa(1756,f+40|0,+i,-1);g=H[197455];H[197455]=0;d=1;e=f+96|0;if((g|0)==1){break q}F[f+107|0]=1;H[197455]=0;Mb(e,434376,1);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[f+100>>2]=0;d=H[f+44>>2];H[f+108>>2]=H[f+40>>2];H[f+112>>2]=d;d=H[f+48>>2];H[f+48>>2]=0;H[f+116>>2]=d;H[f+40>>2]=0;H[f+44>>2]=0;H[197455]=0;fa(1756,f+24|0,+(+(c|0)-h),-1);c=H[197455];H[197455]=0;d=1;e=f+120|0;if((c|0)==1){break p}H[197455]=0;c=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break o}H[f+124>>2]=5;H[f+128>>2]=-2147483640;H[f+120>>2]=c;H[197455]=0;Mb(c,433808,5);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[c+20>>2]=0;H[f+140>>2]=H[f+32>>2];c=H[f+28>>2];H[f+132>>2]=H[f+24>>2];H[f+136>>2]=c;H[f+32>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;H[197455]=0;fa(1756,f+8|0,+(+(b|0)-i),-1);b=H[197455];H[197455]=0;if((b|0)==1){break n}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;d=1;if((c|0)==1){break m}H[f+148>>2]=6;H[f+152>>2]=-2147483640;H[f+144>>2]=b;H[197455]=0;Mb(b,433832,6);c=H[197455];H[197455]=0;if((c|0)==1){break a}d=0;H[b+24>>2]=0;H[f+164>>2]=H[f+16>>2];b=H[f+12>>2];H[f+156>>2]=H[f+8>>2];H[f+160>>2]=b;H[f+16>>2]=0;H[f+172>>2]=4;H[197455]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f+168>>2]=f+72;b=H[f+172>>2];H[f>>2]=H[f+168>>2];H[f+4>>2]=b;g=da(1763,f+176|0,f|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break l}if(F[f+167|0]<0){Kb(H[f+156>>2])}if(F[f+155|0]<0){Kb(H[f+144>>2])}if(F[f+143|0]<0){Kb(H[f+132>>2])}if(F[f+131|0]<0){Kb(H[f+120>>2])}if(F[f+119|0]<0){Kb(H[f+108>>2])}if(F[f+107|0]<0){Kb(H[f+96>>2])}if(F[f+95|0]<0){Kb(H[f+84>>2])}if(F[f+83|0]<0){Kb(H[f+72>>2])}if(F[f+19|0]<0){Kb(H[f+8>>2])}if(F[f+35|0]<0){Kb(H[f+24>>2])}if(F[f+51|0]<0){Kb(H[f+40>>2])}if(F[f+67|0]<0){Kb(H[f+56>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,g|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,g|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,g|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[f+72>>2]=b;H[f+76>>2]=4;H[f+80>>2]=-2147483640;H[197455]=0;Mb(b,434384,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[f+67|0]=0;H[197455]=0;H[f+56>>2]=0;ka(1767,a|0,f+72|0,g|0,f+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[f+67|0]<0){Kb(H[f+56>>2])}if(F[f+83|0]<0){Kb(H[f+72>>2])}a=H[g>>2];if(a){e=H[g+4>>2];if((a|0)==(e|0)){b=a}else{while(1){if(F[e-1|0]<0){Kb(H[e-12>>2])}b=e-24|0;if(F[e-13|0]<0){Kb(H[b>>2])}e=b;if((b|0)!=(a|0)){continue}break}b=H[g>>2]}H[g+4>>2]=a;Kb(b)}xb=f+192|0;return}a=$()|0;_()|0;ea(a|0);X()}c=$()|0;_()|0;break g}c=$()|0;_()|0;break h}c=$()|0;d=1;_()|0;break i}c=$()|0;d=1;_()|0;break j}c=$()|0;_()|0;break k}c=$()|0;_()|0;Vb(f+144|0);Vb(f+120|0);Vb(f+96|0);Vb(f+72|0)}if(F[f+19|0]>=0){break j}Kb(H[f+8>>2])}e=f+144|0}if(F[f+35|0]>=0){break h}Kb(H[f+24>>2])}if(F[f+51|0]>=0){break g}Kb(H[f+40>>2])}if(F[f+67|0]<0){Kb(H[f+56>>2])}if(!d){break b}while(1){e=Vb(e-24|0);if((e|0)!=(f+72|0)){continue}break}break b}c=$()|0;_()|0;break c}c=$()|0;_()|0;break c}c=$()|0;_()|0;if(F[f+67|0]<0){Kb(H[f+56>>2])}if(F[f+83|0]>=0){break c}Kb(H[f+72>>2])}yc(g)}ea(c|0);X()}ha(0)|0;_()|0;Zb();X()}function xea(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(H[a+36>>2]>0){l=H[a+468>>2];i=H[a+216>>2];while(1){d=b;h=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{g=H[i+36>>2];c=H[i+40>>2]+(g<<8)|0;if((c|0)<=2051){if((c|0)<=1025){K:{switch(c-513|0){case 3:break i;case 0:break p;case 1:break J;case 2:break e;default:break K}}b=1253;e=0;L:{switch(c-257|0){case 1:break h;case 0:break a;default:break L}}switch(c-771|0){case 3:break j;case 0:break I;default:break e}}if((c|0)<=1538){M:{switch(c-1026|0){case 6:break k;case 0:break q;case 2:break H;case 1:case 3:case 4:case 5:break e;default:break M}}switch(c-1285|0){case 5:break l;case 0:break G;default:break e}}N:{switch(c-1539|0){case 9:break m;case 0:break r;case 3:break F;case 1:case 2:case 4:case 5:case 6:case 7:case 8:break e;default:break N}}switch(c-1799|0){case 7:break n;case 0:break E;default:break e}}if((c|0)<=3077){if((c|0)<=2564){switch(c-2052|0){case 12:break o;case 0:break s;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break e;case 4:break g;default:break f}}switch(c-2565|0){case 0:break t;case 5:break D;case 1:case 2:case 3:case 4:break e;default:break C}}if((c|0)<=3590){switch(c-3078|0){case 0:break u;case 6:break B;case 1:case 2:case 3:case 4:case 5:break e;default:break A}}O:{switch(c-3591|0){case 0:break v;case 7:break z;case 1:case 2:case 3:case 4:case 5:case 6:break e;default:break O}}switch(c-4104|0){case 0:break w;case 8:break x;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break e;default:break y}}b=1254;e=0;break a}b=1255;break a}b=1256;e=0;break a}b=1257;e=0;break a}b=1258;e=0;break a}b=1259;e=0;break a}b=1260;e=0;break a}if((c|0)!=2827){break e}b=1261;e=0;break a}b=1262;e=0;break a}if((c|0)!=3341){break e}b=1263;e=0;break a}b=1264;e=0;break a}if((c|0)!=3855){break e}b=1265;e=0;break a}b=1266;e=0;break a}b=1267;e=0;break a}b=1268;e=0;break a}b=1269;e=0;break a}b=1270;e=0;break a}b=1271;e=0;break a}b=1272;e=0;break a}b=1273;e=0;break a}b=1274;e=0;break a}b=1275;e=0;break a}b=1276;e=0;break a}b=1277;e=0;break a}b=1278;e=0;break a}b=1279;e=0;break a}b=1280;break a}b=1281;e=0;break a}b=1282;break a}e=H[a+72>>2];if(e>>>0<3){break d}b=H[a>>2];H[b+20>>2]=49;zb[H[b>>2]](a);break c}if((c|0)==2313){break b}}b=H[a>>2];H[b+24>>2]=g;H[b+20>>2]=7;H[H[a>>2]+28>>2]=H[i+40>>2];zb[H[H[a>>2]>>2]](a);break c}b=H[(e<<2)+256128>>2];break a}b=d;e=h;break a}b=1283;e=0}d=(k<<2)+l|0;H[d+4>>2]=b;P:{if(!H[i+52>>2]|H[d+44>>2]==(e|0)){break P}h=H[i+80>>2];if(!h){break P}H[d+44>>2]=e;Q:{switch(e|0){case 0:c=H[i+84>>2];d=0;while(1){H[c+(d<<2)>>2]=J[h+(d<<1)>>1];g=d|1;H[c+(g<<2)>>2]=J[h+(g<<1)>>1];g=d|2;H[c+(g<<2)>>2]=J[h+(g<<1)>>1];g=d|3;H[c+(g<<2)>>2]=J[h+(g<<1)>>1];d=d+4|0;if((d|0)!=64){continue}break};break P;case 1:c=H[i+84>>2];d=0;while(1){g=d<<1;H[c+(d<<2)>>2]=N(G[g+255936>>1],J[h+g>>1])+2048>>12;f=d|1;g=f<<1;H[c+(f<<2)>>2]=N(G[g+255936>>1],J[h+g>>1])+2048>>12;d=d+2|0;if((d|0)!=64){continue}break};break P;case 2:c=H[i+84>>2];g=0;d=0;while(1){j=M[(g<<3)+256064>>3];L[c+(d<<2)>>2]=j*+J[h+(d<<1)>>1]*.125;f=d|1;L[c+(f<<2)>>2]=j*+J[h+(f<<1)>>1]*1.387039845*.125;f=d|2;L[c+(f<<2)>>2]=j*+J[h+(f<<1)>>1]*1.306562965*.125;f=d|3;L[c+(f<<2)>>2]=j*+J[h+(f<<1)>>1]*1.175875602*.125;f=d|4;L[c+(f<<2)>>2]=j*+J[h+(f<<1)>>1]*.125;f=d|5;L[c+(f<<2)>>2]=j*+J[h+(f<<1)>>1]*.785694958*.125;f=d|6;L[c+(f<<2)>>2]=j*+J[h+(f<<1)>>1]*.5411961*.125;f=d|7;L[c+(f<<2)>>2]=j*+J[h+(f<<1)>>1]*.275899379*.125;d=d+8|0;g=g+1|0;if((g|0)!=8){continue}break};break P;default:break Q}}d=H[a>>2];H[d+20>>2]=49;zb[H[d>>2]](a)}i=i+88|0;k=k+1|0;if((k|0)>2]){continue}break}}}function D8(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=H[a+12>>2];i=H[d+584>>2];a:{b:{c:{while(1){d:{a=0;e:{f:{g:{h:{switch(H[i+3204>>2]){case 1:a=H[d+584>>2];b=H[a+252>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 2:a=H[d+584>>2];b=H[a+256>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 3:a=H[d+584>>2];b=H[a+260>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 4:a=H[d+584>>2];b=H[a+264>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 5:a=H[d+584>>2];b=H[a+268>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 6:a=H[d+584>>2];b=H[a+272>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 7:a=H[d+584>>2];b=H[a+276>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 8:a=H[d+584>>2];b=H[a+280>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 9:a=H[d+584>>2];b=H[a+284>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 10:a=H[d+584>>2];b=H[a+288>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 11:a=H[d+584>>2];b=H[a+292>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 12:a=H[d+584>>2];b=H[a+296>>2];if(b){e=b+4|0;c=H[b>>2]-4|0;b=c}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 13:a=H[d+584>>2];b=J[a+300>>1];if(b){H[a+3208>>2]=67165695;F[a+3213|0]=b;F[a+3212|0]=b>>>8;e=a+3208|0;c=6;b=6}else{b=0}H[a+3204>>2]=H[a+3204>>2]+1;if(!b){continue}break a;case 14:d=H[d+584>>2];F[d+3208|0]=255;F[d+3210|0]=0;F[d+3209|0]=I[d+304|0];F[d+3212|0]=8;c=I[d+194|0];F[d+3217|0]=c;e=H[d+308>>2];F[d+3216|0]=e;F[d+3215|0]=e>>>8;F[d+3211|0]=N(c,3)+8;e=d+3213|0;b=J[d+312>>1];b=b<<8|b>>>8;F[e|0]=b;F[e+1|0]=b>>>8;if(c){h=I[d+193|0];while(1){e=d+N(a,3)|0;b=d+(a+h|0)|0;F[e+3218|0]=I[b+316|0];F[e+3219|0]=I[b+319|0];F[e+3220|0]=I[b+322|0];a=a+1|0;if((c|0)!=(a|0)){continue}break}c=N(c,3)+10|0}else{c=10}e=d+3208|0;H[d+3204>>2]=H[d+3204>>2]+1;break a;case 15:c=H[d+584>>2];G[c+3208>>1]=56063;F[c+3210|0]=0;e=I[c+194|0];F[c+3212|0]=e;F[c+3211|0]=(e<<1)+6;if(e){d=I[c+193|0];if((e|0)!=1){l=e&254;b=c+3208|0;h=c+325|0;j=c+328|0;while(1){f=b+(a<<1)|0;g=a+d|0;F[f+5|0]=I[g+h|0];F[f+6|0]=I[g+j|0];f=a|1;g=b+(f<<1)|0;f=d+f|0;F[g+5|0]=I[f+h|0];F[g+6|0]=I[f+j|0];a=a+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}if(e&1){b=c+(a<<1)|0;a=c+(a+d|0)|0;F[b+3213|0]=I[a+325|0];F[b+3214|0]=I[a+328|0]}a=e<<1}e=c+3208|0;d=a+c|0;F[d+3215|0]=0;d=d+3213|0;F[d|0]=0;F[d+1|0]=63;H[c+3204>>2]=H[c+3204>>2]+1;c=a+8|0;break a;case 16:b=H[d+584>>2];a=J[b+1148>>1];if(!a){if(!Fd(b)){break d}a=J[b+1148>>1]}G[b+1148>>1]=0;c=a&65535;e=H[b+1152>>2];if(H[b+1144>>2]){break f}a=c;i:{switch(H[b+1124>>2]-2|0){case 0:break i;case 1:break g;default:break e}}if(K[b+1128>>2]>=K[b+1132>>2]){break g}H[b+3204>>2]=17;break f;case 17:a=H[d+584>>2];F[a+3208|0]=255;H[a+3204>>2]=16;c=I[a+302|0];F[a+3209|0]=c-48;c=c+1|0;F[a+302|0]=(c&255)==8?0:c;e=a+3208|0;break b;case 0:break c;case 18:break h;default:break e}}a=H[d+584>>2];G[a+3208>>1]=55807;e=a+3208|0;break b}H[b+3204>>2]=18}a=c}if(!a){continue}break a}break}Pb(H[d+628>>2],288972,289172,0);ed(H[d+584>>2]+4|0,1);X()}a=H[d+584>>2];G[a+3208>>1]=55551;H[a+3204>>2]=H[a+3204>>2]+1;e=a+3208|0}c=2}H[i+1024>>2]=e;H[i+1028>>2]=c;return 1}function sF(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,w=0;r=xb-16|0;xb=r;a:{if(K[b+4>>2]>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<4){break a}d=H[b+12>>2]-4|0;H[b+12>>2]=d;if((I[a|0]|I[a+1|0]<<8)!=256|(d|0)<=0){break a}if(!rF(a+4|0,b,a)){break a}if(!qF(a+6|0,b,a)){break a}n=a+8|0;if(n>>>0>2]){break a}d=H[b+8>>2];if(d>>>0>>0|d-n>>>0<2){break a}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=I[n|0]|I[n+1|0]<<8;b:{if(!d){break b}k=((d<<8|d>>>8)&65535)+a|0;H[r+12>>2]=k;e=H[b+4>>2];c:{d:{if(e>>>0>k>>>0){break d}f=H[b+8>>2];if(f>>>0>>0|f-k>>>0<2){break d}g=H[b+12>>2]-2|0;H[b+12>>2]=g;if((g|0)<=0){break d}h=I[k|0]|I[k+1|0]<<8;d=1;if(!h){break c}d=k+2|0;if(d>>>0>>0|d>>>0>f>>>0){break d}j=f-d|0;d=(h<<8|h>>>8)&65535;f=d<<1;if(j>>>0>>0){break d}f=g-f|0;H[b+12>>2]=f;if((f|0)<=0){break d}l=k+2|0;if(e>>>0>l>>>0){break d}v=d>>>0>1?d:1;while(1){e:{c=H[b+8>>2];if(c>>>0>>0|c-l>>>0<2){break e}d=H[r+12>>2];c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break e}c=I[l|0]|I[l+1|0]<<8;f:{if(!c){break f}g=0;p=xb-16|0;xb=p;f=d+((c<<8|c>>>8)&65535)|0;d=H[b+4>>2];g:{if(f>>>0>>0){break g}c=H[b+8>>2];if(c>>>0>>0|c-f>>>0<6){break g}e=H[b+12>>2];h=e-6|0;H[b+12>>2]=h;if((h|0)<=0){break g}h=f+4|0;if(h>>>0>>0|c>>>0>>0|c-h>>>0<2){break g}e=e-8|0;H[b+12>>2]=e;if((e|0)<=0){break g}q=I[f+4|0]|I[f+5|0]<<8;u=q<<8|q>>>8;s=u&65535;m=s<<1;if(q){i=f+6|0;if(i>>>0>>0|c>>>0>>0|m>>>0>c-i>>>0){break g}e=e-m|0;H[b+12>>2]=e;if((e|0)<=0){break g}}i=H[b+16>>2]+s|0;H[b+16>>2]=i;if((i|0)>16383){break g}if(I[f+3|0]&16){j=d;d=(f+m|0)+6|0;if(j>>>0>d>>>0|c>>>0>>0|c-d>>>0<2){break g}H[b+12>>2]=e-2;if((e|0)<3){break g}}H[p+12>>2]=f;c=I[f|0]|I[f+1|0]<<8;H[p+8>>2]=(c<<8|c>>>8)&65535;d=0;m=H[b+4>>2];h:{i:{if(m>>>0>h>>>0){break i}e=H[b+8>>2];if(e>>>0>>0|e-h>>>0<2){break i}i=H[b+12>>2]-2|0;H[b+12>>2]=i;if((i|0)<=0){break i}o=I[h|0]|I[h+1|0]<<8;j=1;if(!o){break h}c=h+2|0;if(m>>>0>c>>>0|c>>>0>e>>>0){break i}o=(o<<8|o>>>8)&65535;j=o<<1;if(j>>>0>e-c>>>0){break i}c=i-j|0;H[b+12>>2]=c;if((c|0)<=0){break i}e=h+2|0;if(m>>>0>e>>>0){break i}m=o>>>0>1?o:1;c=0;while(1){j:{d=H[b+8>>2];if(d>>>0>>0|d-e>>>0<2){break j}i=H[p+12>>2];d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break j}d=I[e|0]|I[e+1|0]<<8;k:{if(!d){break k}if(mF(i+((d<<8|d>>>8)&65535)|0,b,H[p+8>>2])){break k}d=H[b+28>>2];if(d>>>0>31){break j}H[b+28>>2]=d+1;if(!I[b+24|0]){break j}F[e|0]=0;F[e+1|0]=0}d=1;c=c+1|0;if((m|0)==(c|0)){break i}e=(h+(c<<1)|0)+2|0;if(e>>>0>=K[b+4>>2]){continue}}break}d=0}j=d}if(!j){break g}g=1;if(H[b+28>>2]|(!q|(I[f|0]|I[f+1|0]<<8)!=1792)){break g}d=0;c=J[81816];e=I[f+4|0]|I[f+5|0]<<8;g=e?I[f+6|0]|I[f+7|0]<<8:c;l:{if(!(g&65535)){g=163632;break l}g=f+((g<<8|(g&65280)>>>8)&65535)|0;c=I[g|0]|I[g+1|0]<<8}if((c&65535)==256){c=I[g+2|0]|I[g+3|0]<<8;d=(c<<8|c>>>8)&65535}c=1;if((u&65535)>>>0<2){g=1;break g}q=(e<<8|e>>>8)&65535;while(1){g=163632;e=c>>>0>>0?(h+(c<<1)|0)+2|0:163632;e=I[e|0]|I[e+1|0]<<8;if(e){g=f+((e<<8|e>>>8)&65535)|0}e=0;if((I[g|0]|I[g+1|0]<<8)==256){e=I[g+2|0]|I[g+3|0]<<8;e=(e<<8|e>>>8)&65535}g=(d|0)==(e|0);if((d|0)!=(e|0)){break g}c=c+1|0;if((s|0)!=(c|0)){continue}break}}xb=p+16|0;if(g){break f}c=H[b+28>>2];if(c>>>0>31){break e}H[b+28>>2]=c+1;if(!I[b+24|0]){break e}F[l|0]=0;F[l+1|0]=0}c=1;t=t+1|0;if((v|0)==(t|0)){break d}l=((t<<1)+k|0)+2|0;if(l>>>0>=K[b+4>>2]){continue}}break}c=0}d=c}if(d){break b}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[n|0]=0;F[n+1|0]=0}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if((c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0>=65537){if(!pF(a+10|0,b,a)){break a}}w=1}xb=r+16|0;return w}function OE(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,w=0;r=xb-16|0;xb=r;a:{if(K[b+4>>2]>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<4){break a}d=H[b+12>>2]-4|0;H[b+12>>2]=d;if((I[a|0]|I[a+1|0]<<8)!=256|(d|0)<=0){break a}if(!rF(a+4|0,b,a)){break a}if(!qF(a+6|0,b,a)){break a}n=a+8|0;if(n>>>0>2]){break a}d=H[b+8>>2];if(d>>>0>>0|d-n>>>0<2){break a}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=I[n|0]|I[n+1|0]<<8;b:{if(!d){break b}k=((d<<8|d>>>8)&65535)+a|0;H[r+12>>2]=k;e=H[b+4>>2];c:{d:{if(e>>>0>k>>>0){break d}f=H[b+8>>2];if(f>>>0>>0|f-k>>>0<2){break d}g=H[b+12>>2]-2|0;H[b+12>>2]=g;if((g|0)<=0){break d}h=I[k|0]|I[k+1|0]<<8;d=1;if(!h){break c}d=k+2|0;if(d>>>0>>0|d>>>0>f>>>0){break d}j=f-d|0;d=(h<<8|h>>>8)&65535;f=d<<1;if(j>>>0>>0){break d}f=g-f|0;H[b+12>>2]=f;if((f|0)<=0){break d}l=k+2|0;if(e>>>0>l>>>0){break d}v=d>>>0>1?d:1;while(1){e:{c=H[b+8>>2];if(c>>>0>>0|c-l>>>0<2){break e}d=H[r+12>>2];c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break e}c=I[l|0]|I[l+1|0]<<8;f:{if(!c){break f}g=0;p=xb-16|0;xb=p;f=d+((c<<8|c>>>8)&65535)|0;d=H[b+4>>2];g:{if(f>>>0>>0){break g}c=H[b+8>>2];if(c>>>0>>0|c-f>>>0<6){break g}e=H[b+12>>2];h=e-6|0;H[b+12>>2]=h;if((h|0)<=0){break g}h=f+4|0;if(h>>>0>>0|c>>>0>>0|c-h>>>0<2){break g}e=e-8|0;H[b+12>>2]=e;if((e|0)<=0){break g}q=I[f+4|0]|I[f+5|0]<<8;u=q<<8|q>>>8;s=u&65535;m=s<<1;if(q){i=f+6|0;if(i>>>0>>0|c>>>0>>0|m>>>0>c-i>>>0){break g}e=e-m|0;H[b+12>>2]=e;if((e|0)<=0){break g}}i=H[b+16>>2]+s|0;H[b+16>>2]=i;if((i|0)>16383){break g}if(I[f+3|0]&16){j=d;d=(f+m|0)+6|0;if(j>>>0>d>>>0|c>>>0>>0|c-d>>>0<2){break g}H[b+12>>2]=e-2;if((e|0)<3){break g}}H[p+12>>2]=f;c=I[f|0]|I[f+1|0]<<8;H[p+8>>2]=(c<<8|c>>>8)&65535;d=0;m=H[b+4>>2];h:{i:{if(m>>>0>h>>>0){break i}e=H[b+8>>2];if(e>>>0>>0|e-h>>>0<2){break i}i=H[b+12>>2]-2|0;H[b+12>>2]=i;if((i|0)<=0){break i}o=I[h|0]|I[h+1|0]<<8;j=1;if(!o){break h}c=h+2|0;if(m>>>0>c>>>0|c>>>0>e>>>0){break i}o=(o<<8|o>>>8)&65535;j=o<<1;if(j>>>0>e-c>>>0){break i}c=i-j|0;H[b+12>>2]=c;if((c|0)<=0){break i}e=h+2|0;if(m>>>0>e>>>0){break i}m=o>>>0>1?o:1;c=0;while(1){j:{d=H[b+8>>2];if(d>>>0>>0|d-e>>>0<2){break j}i=H[p+12>>2];d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break j}d=I[e|0]|I[e+1|0]<<8;k:{if(!d){break k}if(NE(i+((d<<8|d>>>8)&65535)|0,b,H[p+8>>2])){break k}d=H[b+28>>2];if(d>>>0>31){break j}H[b+28>>2]=d+1;if(!I[b+24|0]){break j}F[e|0]=0;F[e+1|0]=0}d=1;c=c+1|0;if((m|0)==(c|0)){break i}e=(h+(c<<1)|0)+2|0;if(e>>>0>=K[b+4>>2]){continue}}break}d=0}j=d}if(!j){break g}g=1;if(H[b+28>>2]|(!q|(I[f|0]|I[f+1|0]<<8)!=2304)){break g}d=0;c=J[81816];e=I[f+4|0]|I[f+5|0]<<8;g=e?I[f+6|0]|I[f+7|0]<<8:c;l:{if(!(g&65535)){g=163632;break l}g=f+((g<<8|(g&65280)>>>8)&65535)|0;c=I[g|0]|I[g+1|0]<<8}if((c&65535)==256){c=I[g+2|0]|I[g+3|0]<<8;d=(c<<8|c>>>8)&65535}c=1;if((u&65535)>>>0<2){g=1;break g}q=(e<<8|e>>>8)&65535;while(1){g=163632;e=c>>>0>>0?(h+(c<<1)|0)+2|0:163632;e=I[e|0]|I[e+1|0]<<8;if(e){g=f+((e<<8|e>>>8)&65535)|0}e=0;if((I[g|0]|I[g+1|0]<<8)==256){e=I[g+2|0]|I[g+3|0]<<8;e=(e<<8|e>>>8)&65535}g=(d|0)==(e|0);if((d|0)!=(e|0)){break g}c=c+1|0;if((s|0)!=(c|0)){continue}break}}xb=p+16|0;if(g){break f}c=H[b+28>>2];if(c>>>0>31){break e}H[b+28>>2]=c+1;if(!I[b+24|0]){break e}F[l|0]=0;F[l+1|0]=0}c=1;t=t+1|0;if((v|0)==(t|0)){break d}l=((t<<1)+k|0)+2|0;if(l>>>0>=K[b+4>>2]){continue}}break}c=0}d=c}if(d){break b}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[n|0]=0;F[n+1|0]=0}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if((c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0>=65537){if(!pF(a+10|0,b,a)){break a}}w=1}xb=r+16|0;return w}function ot(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;h=xb-32|0;xb=h;e=I[c+2|0]|I[c+3|0]<<8;n=(e<<8|e>>>8)&65535;d=H[b+4>>2];o=H[d+72>>2];b=I[c+6|0]|I[c+7|0]<<8;a:{if((b|0)!=65535){g=n&31;e=H[d+152>>2]-g|0;H[d+152>>2]=e;if((e|0)<=0){break a}m=H[a+12>>2]+(((b<<8|b>>>8)&65535)<<1)|0;b:{c:{if(!g){break c}b=H[a+4>>2];if(m>>>0>2]){break c}e=H[b+28>>2];if(e>>>0>>0){break c}f=e-m|0;e=g<<1;if(f>>>0>>0){break c}f=b;b=H[b+32>>2]-e|0;H[f+32>>2]=b;if((b|0)>0){break b}}g=0}if(!bf(d,H[a+8>>2])){break a}f=n&1024;d:{if(f){break d}b=H[d+64>>2];if(b>>>0>=K[d+68>>2]){break d}b=H[d+80>>2]+N(b,20)|0;H[h+24>>2]=H[b+16>>2];e=H[b+12>>2];H[h+16>>2]=H[b+8>>2];H[h+20>>2]=e;e=H[b+4>>2];H[h+8>>2]=H[b>>2];H[h+12>>2]=e;if(!ec(d,0,1)){break a}e=H[h+12>>2];b=H[d+84>>2]+N(H[d+72>>2],20)|0;H[b>>2]=H[h+8>>2];H[b+4>>2]=e;H[b+16>>2]=H[h+24>>2];e=H[h+20>>2];H[b+8>>2]=H[h+16>>2];H[b+12>>2]=e;H[d+72>>2]=H[d+72>>2]+1}if(!ec(d,0,g)){break a}b=H[d+64>>2];i=H[d+68>>2];e:{if(b>>>0>>0){e=H[d+80>>2]+N(b,20)|0;break e}e=H[d+72>>2];e=H[d+84>>2]+N(e?e-1|0:0,20)|0}p=f;if(g){b=H[d+84>>2]+N(H[d+72>>2],20)|0;i=0;if((g|0)!=1){k=g&30;while(1){f=H[e+4>>2];H[b>>2]=H[e>>2];H[b+4>>2]=f;H[b+16>>2]=H[e+16>>2];f=e+8|0;l=H[f+4>>2];H[b+8>>2]=H[f>>2];H[b+12>>2]=l;f=i<<1;l=f+m|0;l=I[l|0]|I[l+1|0]<<8;H[b>>2]=(l<<8|l>>>8)&65535;H[b+36>>2]=H[e+16>>2];l=H[e+12>>2];H[b+28>>2]=H[e+8>>2];H[b+32>>2]=l;l=H[e+4>>2];H[b+20>>2]=H[e>>2];H[b+24>>2]=l;f=m+(f|2)|0;f=I[f|0]|I[f+1|0]<<8;H[b+20>>2]=(f<<8|f>>>8)&65535;i=i+2|0;b=b+40|0;j=j+2|0;if((k|0)!=(j|0)){continue}break}}if(g&1){j=H[e+4>>2];H[b>>2]=H[e>>2];H[b+4>>2]=j;H[b+16>>2]=H[e+16>>2];j=H[e+12>>2];H[b+8>>2]=H[e+8>>2];H[b+12>>2]=j;e=b;b=m+(i<<1)|0;b=I[b|0]|I[b+1|0]<<8;H[e>>2]=(b<<8|b>>>8)&65535}H[d+72>>2]=H[d+72>>2]+g;i=H[d+68>>2];b=H[d+64>>2]}if(!(p|b>>>0>=i>>>0)){H[d+64>>2]=b+1}if(!bf(d,g+o|0)){break a}b=H[d+64>>2]+1|0;e=H[d+68>>2];Rc(d,3,H[a+8>>2],b>>>0>>0?b:e,1,1)}if(n&32768){H[a+8>>2]=o}b=I[c+4|0]|I[c+5|0]<<8;if((b|0)==65535){break a}g=n>>>5&31;c=H[d+152>>2]-g|0;H[d+152>>2]=c;if((c|0)<=0){break a}c=H[a+12>>2]+(((b<<8|b>>>8)&65535)<<1)|0;f:{g:{if(!g){break g}a=H[a+4>>2];if(c>>>0>2]){break g}b=H[a+28>>2];if(b>>>0>>0){break g}e=b-c|0;b=g<<1;if(e>>>0>>0){break g}e=a;a=H[a+32>>2]-b|0;H[e+32>>2]=a;if((a|0)>0){break f}}g=0}e=H[d+72>>2];m=n&2048;h:{if(m){break h}a=H[d+64>>2];if(a>>>0>=K[d+68>>2]){break h}a=H[d+80>>2]+N(a,20)|0;H[h+24>>2]=H[a+16>>2];b=H[a+12>>2];H[h+16>>2]=H[a+8>>2];H[h+20>>2]=b;b=H[a+4>>2];H[h+8>>2]=H[a>>2];H[h+12>>2]=b;if(!ec(d,0,1)){break a}b=H[h+12>>2];a=H[d+84>>2]+N(H[d+72>>2],20)|0;H[a>>2]=H[h+8>>2];H[a+4>>2]=b;H[a+16>>2]=H[h+24>>2];b=H[h+20>>2];H[a+8>>2]=H[h+16>>2];H[a+12>>2]=b;H[d+72>>2]=H[d+72>>2]+1}if(!ec(d,0,g)){break a}b=H[d+64>>2];i=H[d+68>>2];i:{if(b>>>0>>0){a=H[d+80>>2]+N(b,20)|0;break i}a=H[d+72>>2];a=H[d+84>>2]+N(a?a-1|0:0,20)|0}if(g){b=H[d+84>>2]+N(H[d+72>>2],20)|0;i=0;if((g|0)!=1){o=g&30;j=0;while(1){f=H[a+4>>2];H[b>>2]=H[a>>2];H[b+4>>2]=f;H[b+16>>2]=H[a+16>>2];f=a+8|0;k=H[f+4>>2];H[b+8>>2]=H[f>>2];H[b+12>>2]=k;f=i<<1;k=f+c|0;k=I[k|0]|I[k+1|0]<<8;H[b>>2]=(k<<8|k>>>8)&65535;H[b+36>>2]=H[a+16>>2];k=H[a+12>>2];H[b+28>>2]=H[a+8>>2];H[b+32>>2]=k;k=H[a+4>>2];H[b+20>>2]=H[a>>2];H[b+24>>2]=k;f=c+(f|2)|0;f=I[f|0]|I[f+1|0]<<8;H[b+20>>2]=(f<<8|f>>>8)&65535;i=i+2|0;b=b+40|0;j=j+2|0;if((o|0)!=(j|0)){continue}break}}if(g&1){j=H[a+4>>2];H[b>>2]=H[a>>2];H[b+4>>2]=j;H[b+16>>2]=H[a+16>>2];j=H[a+12>>2];H[b+8>>2]=H[a+8>>2];H[b+12>>2]=j;a=c+(i<<1)|0;a=I[a|0]|I[a+1|0]<<8;H[b>>2]=(a<<8|a>>>8)&65535}H[d+72>>2]=H[d+72>>2]+g;i=H[d+68>>2];b=H[d+64>>2]}if(!(b>>>0>=i>>>0|m)){H[d+64>>2]=b+1}bf(d,e+(n&16384?0:g)|0)}xb=h+32|0}function fi(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=xb-16|0;xb=f;g=H[a+100>>2];H[f+8>>2]=0;d=Me(b,H[a+92>>2]);a:{if(d){b:{c:{d:{e=H[a+80>>2];d=H[d>>2];a=e+(d<<4)|0;switch(H[a+4>>2]-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}b=H[a+12>>2];if(b){zb[H[g+8>>2]](g,b)}H[a+12>>2]=0;if(!c|!I[c|0]){break a}l=a,m=jf(g,c,f+8|0),H[l+12>>2]=m;break a}a=0;e:{if(!c){break e}g=I[c|0];if(!g){break e}b=0;g=(g|0)==45;c=g+c|0;a=F[c|0];f:{if(!(I[((a&248)>>>3|0)+24096|0]>>>(a&7)&1)){break f}while(1){if((b|0)>214748362){b=2147483647;break f}b=I[a+24128|0]+N(b,10)|0;a=F[c+1|0];c=c+1|0;if(I[((a&248)>>>3|0)+24096|0]>>>(a&7)&1){continue}break}}a=g?0-b|0:b}H[(e+(d<<4)|0)+12>>2]=a;break a}b=0;g:{if(!c){break g}a=F[c|0];g=a&255;if(!g|!(I[(g>>>3|0)+24096|0]>>>(a&7)&1)){break g}while(1){if(b>>>0>429496727){b=-1;break g}b=I[a+24128|0]+N(b,10)|0;a=F[c+1|0];c=c+1|0;if(I[((a&248)>>>3|0)+24096|0]>>>(a&7)&1){continue}break}}H[(e+(d<<4)|0)+12>>2]=b;break a}h:{i=a+112|0;e=Me(b,i);if(!e){e=H[a+100>>2];H[f+12>>2]=0;if(!Me(b,i)){d=H[a+108>>2];d=Ub(e,16,d,d+1|0,H[a+104>>2],f+12|0);H[a+104>>2]=d;h=H[f+12>>2];if(h){break h}d=d+(H[a+108>>2]<<4)|0;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;j=ac(b)+1|0;k=Ub(e,1,0,j,0,f+12|0);H[d>>2]=k;h=H[f+12>>2];if(h){break h}Ob(k,b,j);H[d+4>>2]=1;H[d+8>>2]=0;h=ln(H[d>>2],H[a+108>>2]+83|0,i,e);if(h){break h}H[a+108>>2]=H[a+108>>2]+1}H[f+8>>2]=0;e=Me(b,i)}d=H[a+76>>2];if((d|0)==H[a+72>>2]){i:{if(!d){d=Ub(g,16,0,1,0,f+8|0);H[a+80>>2]=d;if(!H[f+8>>2]){break i}break a}d=Ub(g,16,d,d+1|0,H[a+80>>2],f+8|0);H[a+80>>2]=d;if(H[f+8>>2]){break a}}d=(H[a+72>>2]<<4)+d|0;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[a+72>>2]=H[a+72>>2]+1}h=H[a+80>>2];i=H[a+76>>2];j=h+(i<<4)|0;d=H[e>>2];j:{if(d>>>0>=83){d=(H[a+104>>2]+(d<<4)|0)-1328|0;break j}d=(d<<4)+21680|0}H[j>>2]=H[d>>2];H[j+4>>2]=H[d+4>>2];H[j+8>>2]=H[d+8>>2];k:{l:{m:{switch(H[d+4>>2]-1|0){case 0:H[j+12>>2]=0;if(!c|!I[c|0]){break k}l=j,m=jf(g,c,f+8|0),H[l+12>>2]=m;if(!H[f+8>>2]){break k}break a;case 1:d=0;if(!c){break l}e=I[c|0];if(!e){break l}k=(e|0)==45;e=k+c|0;c=F[e|0];n:{if(!(I[((c&248)>>>3|0)+24096|0]>>>(c&7)&1)){break n}while(1){if((d|0)>214748362){d=2147483647;break n}d=I[c+24128|0]+N(d,10)|0;c=F[e+1|0];e=e+1|0;if(I[((c&248)>>>3|0)+24096|0]>>>(c&7)&1){continue}break}}d=k?0-d|0:d;break l;case 2:break m;default:break k}}d=0;if(!c){break l}e=F[c|0];k=e&255;if(!k|!(I[(k>>>3|0)+24096|0]>>>(e&7)&1)){break l}while(1){if(d>>>0>429496727){d=-1;break l}d=I[e+24128|0]+N(d,10)|0;e=F[c+1|0];c=c+1|0;if(I[((e&248)>>>3|0)+24096|0]>>>(e&7)&1){continue}break}}H[(h+(i<<4)|0)+12>>2]=d}o:{p:{if(gc(b,11158,7)){break p}switch(I[b+7|0]){case 0:case 9:case 10:case 13:case 32:break o;default:break p}}c=ln(H[j>>2],H[a+76>>2],H[a+92>>2],g);H[f+8>>2]=c;if(c){break a}}H[a+76>>2]=H[a+76>>2]+1;q:{if(gc(b,12772,12)){break q}r:{switch(I[b+12|0]){case 0:case 9:case 10:case 13:case 32:break r;default:break q}}H[a+36>>2]=H[(h+(i<<4)|0)+12>>2];break a}s:{if(gc(b,12084,11)){break s}t:{switch(I[b+11|0]){case 0:case 9:case 10:case 13:case 32:break t;default:break s}}H[a+40>>2]=H[(h+(i<<4)|0)+12>>2];break a}u:{if(gc(b,12180,12)){break u}v:{switch(I[b+12|0]){case 0:case 9:case 10:case 13:case 32:break v;default:break u}}H[a+44>>2]=H[(h+(i<<4)|0)+12>>2];break a}if(gc(b,9396,7)){break a}w:{switch(I[b+7|0]){case 0:case 9:case 10:case 13:case 32:break w;default:break a}}b=H[(h+(i<<4)|0)+12>>2];if(!b){H[f+8>>2]=3;break a}x:{switch(I[b|0]-67|0){case 13:case 45:H[a+28>>2]=8;break a;case 10:case 42:H[a+28>>2]=16;break a;case 0:case 32:break x;default:break a}}H[a+28>>2]=32;break a}H[f+8>>2]=h}xb=f+16|0;return H[f+8>>2]}function rF(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,r=0,s=0,t=0;e=H[b+4>>2];if(e>>>0>a>>>0){return 0}g=H[b+8>>2];if(g>>>0>>0){return 0}if(g-a>>>0<2){return 0}f=H[b+12>>2];j=f-2|0;H[b+12>>2]=j;d=1;if((j|0)<=0){return 0}j=I[a|0]|I[a+1|0]<<8;a:{if(!j){break a}b:{j=((j<<8|j>>>8)&65535)+c|0;if(j>>>0>>0|g>>>0>>0|g-j>>>0<2){break b}c=f-4|0;H[b+12>>2]=c;if((c|0)<=0){break b}f=I[j|0]|I[j+1|0]<<8;if(!f){break a}d=j+2|0;if(d>>>0>>0|d>>>0>g>>>0){break b}h=g-d|0;d=(f<<8|f>>>8)&65535;g=N(d,6);if(h>>>0>>0){break b}c=c-g|0;H[b+12>>2]=c;if((c|0)<=0){break b}s=d>>>0>1?d:1;while(1){p=xb-16|0;xb=p;g=H[b+4>>2];c=(j+N(r,6)|0)+2|0;c:{if(g>>>0>c>>>0){g=0;break c}d=H[b+8>>2];if(d>>>0>>0){g=0;break c}if(d-c>>>0<6){g=0;break c}e=H[b+12>>2];f=e-6|0;H[b+12>>2]=f;if((f|0)<=0){g=0;break c}m=c+4|0;if(g>>>0>m>>>0){g=0;break c}if(d>>>0>>0){g=0;break c}if(d-m>>>0<2){g=0;break c}c=e-8|0;H[b+12>>2]=c;g=1;if((c|0)<=0){g=0;break c}d=I[m|0]|I[m+1|0]<<8;if(!d){break c}i=H[b+4>>2];e=j+((d<<8|d>>>8)&65535)|0;c=0;d:{if(i>>>0>e>>>0){break d}f=H[b+8>>2];c=0;if(f>>>0>>0){break d}c=0;if(f-e>>>0<2){break d}l=H[b+12>>2];k=l-2|0;H[b+12>>2]=k;d=1;c=0;if((k|0)<=0){break d}c=I[e|0]|I[e+1|0]<<8;e:{if(!c){break e}c=e+((c<<8|c>>>8)&65535)|0;f:{if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<6){break f}d=l-8|0;H[b+12>>2]=d;if((d|0)<=0){break f}d=c+4|0;if(d>>>0>>0|d>>>0>f>>>0|f-d>>>0<2){break f}l=l-10|0;H[b+12>>2]=l;d=1;if((l|0)<=0){break f}k=I[c+4|0]|I[c+5|0]<<8;if(!k){break e}c=c+6|0;if(c>>>0>>0|c>>>0>f>>>0){break f}h=f-c|0;c=((k<<8|k>>>8)&65535)<<1;if(h>>>0>>0){break f}c=l-c|0;H[b+12>>2]=c;if((c|0)>0){break e}}d=H[b+28>>2];c=0;if(d>>>0>31){break d}H[b+28>>2]=d+1;d=0;if(!I[b+24|0]){break e}F[e|0]=0;F[e+1|0]=0;d=1}c=d}if(c){H[p+12>>2]=e;d=0;l=xb-16|0;xb=l;g:{i=H[b+4>>2];f=e+2|0;if(i>>>0>f>>>0){break g}c=H[b+8>>2];if(c>>>0>>0|c-f>>>0<2){break g}e=H[b+12>>2]-2|0;H[b+12>>2]=e;d=1;if((e|0)<=0){d=0;break g}k=I[f|0]|I[f+1|0]<<8;if(!k){break g}d=f+2|0;if(d>>>0>>0){d=0;break g}if(c>>>0>>0){d=0;break g}h=c-d|0;c=(k<<8|k>>>8)&65535;d=N(c,6);if(h>>>0>>0){d=0;break g}e=e-d|0;H[b+12>>2]=e;d=0;if((e|0)<=0){break g}t=c>>>0>1?c:1;k=0;while(1){e=f+N(k,6)|0;c=e+2|0;d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);o=H[p+12>>2];H[l+12>>2]=o;H[l+8>>2]=d<<8&16711680|d<<24|(d>>>8&65280|d>>>24);h:{i:{if(c>>>0>>0){break i}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<=5){break i}c=H[b+12>>2]-6|0;H[b+12>>2]=c;if((c|0)>0){break h}}d=0;break g}H[l+4>>2]=l+8;q=H[b+4>>2];i=e+6|0;h=0;j:{if(q>>>0>i>>>0){break j}e=H[b+8>>2];h=0;if(e>>>0>>0){break j}h=0;if(e-i>>>0<2){break j}n=H[b+12>>2];c=n-2|0;H[b+12>>2]=c;d=1;h=0;if((c|0)<=0){break j}c=I[i|0]|I[i+1|0]<<8;k:{if(!c){break k}c=o+((c<<8|c>>>8)&65535)|0;l:{if(c>>>0>>0|c>>>0>e>>>0|e-c>>>0<6){break l}d=n-8|0;H[b+12>>2]=d;if((d|0)<=0){break l}d=c+4|0;if(d>>>0>>0|d>>>0>e>>>0|e-d>>>0<2){break l}n=n-10|0;H[b+12>>2]=n;d=1;if((n|0)<=0){break l}o=I[c+4|0]|I[c+5|0]<<8;if(!o){break k}c=c+6|0;if(c>>>0>>0|c>>>0>e>>>0){break l}h=e-c|0;c=((o<<8|o>>>8)&65535)<<1;if(h>>>0>>0){break l}c=n-c|0;H[b+12>>2]=c;if((c|0)>0){break k}}d=H[b+28>>2];h=0;if(d>>>0>31){break j}H[b+28>>2]=d+1;d=0;if(!I[b+24|0]){break k}F[i|0]=0;F[i+1|0]=0;d=1}h=d}d=h;if(!d){break g}k=k+1|0;if((t|0)==(k|0)){break g}i=H[b+4>>2];continue}}xb=l+16|0;if(d){break c}}c=H[b+28>>2];if(c>>>0>31){g=0;break c}H[b+28>>2]=c+1;g=0;if(!I[b+24|0]){break c}F[m|0]=0;F[m+1|0]=0;g=1}xb=p+16|0;if(!g){break b}d=1;r=r+1|0;if((s|0)!=(r|0)){continue}break}break a}c=H[b+28>>2];if(c>>>0>31){return 0}H[b+28>>2]=c+1;d=0;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;d=1}return d}function Zj(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=xb-32|0;xb=e;a:{b:{c:{switch(H[a+68>>2]){case 1:d=1;j=c^1;c=0;f=1;break b;case 0:break a;default:break c}}j=c^1;c=0;f=1;while(1){i=c;d=H[a+80>>2]+N(f,20)|0;d:{if(zb[b|0](d-20|0,d)|0){break d}if(!(f-i>>>0<2|j)){Jd(a,i,f)}c=H[a+68>>2];d=c>>>0>>0?c:f;h=c>>>0>>0?c:i;e:{if(d>>>0>>0){break e}g=d-1|0;if(h>>>0>=g>>>0){break e}k=H[a+80>>2];while(1){c=N(g,20)+k|0;H[e+24>>2]=H[c+16>>2];d=H[c+12>>2];H[e+16>>2]=H[c+8>>2];H[e+20>>2]=d;d=H[c+4>>2];H[e+8>>2]=H[c>>2];H[e+12>>2]=d;d=N(h,20)+k|0;H[c+16>>2]=H[d+16>>2];l=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=l;l=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=l;H[d+16>>2]=H[e+24>>2];c=H[e+20>>2];H[d+8>>2]=H[e+16>>2];H[d+12>>2]=c;c=H[e+12>>2];H[d>>2]=H[e+8>>2];H[d+4>>2]=c;g=g-1|0;h=h+1|0;if(g>>>0>h>>>0){continue}break}}c=f;if(!I[a+62|0]){break d}d=H[a+68>>2];g=d>>>0>>0?d:f;h=d>>>0>>0?d:i;c=f;if(g>>>0>>0){break d}g=g-1|0;c=f;if(h>>>0>=g>>>0){break d}i=H[a+88>>2];while(1){c=i+N(g,20)|0;H[e+24>>2]=H[c+16>>2];d=H[c+12>>2];H[e+16>>2]=H[c+8>>2];H[e+20>>2]=d;d=H[c+4>>2];H[e+8>>2]=H[c>>2];H[e+12>>2]=d;d=i+N(h,20)|0;H[c+16>>2]=H[d+16>>2];k=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=k;k=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=k;H[d+16>>2]=H[e+24>>2];c=H[e+20>>2];H[d+8>>2]=H[e+16>>2];H[d+12>>2]=c;c=H[e+12>>2];H[d>>2]=H[e+8>>2];H[d+4>>2]=c;g=g-1|0;h=h+1|0;if(g>>>0>h>>>0){continue}break}c=f}d=H[a+68>>2];f=f+1|0;if(d>>>0>f>>>0){continue}break}}if(!(f-c>>>0<2|j)){Jd(a,c,f);d=H[a+68>>2]}b=d>>>0>>0?d:f;g=c>>>0>d>>>0?d:c;f:{if(b>>>0>>0){break f}h=b-1|0;if(h>>>0<=g>>>0){break f}i=H[a+80>>2];while(1){b=i+N(h,20)|0;H[e+24>>2]=H[b+16>>2];d=H[b+12>>2];H[e+16>>2]=H[b+8>>2];H[e+20>>2]=d;d=H[b+4>>2];H[e+8>>2]=H[b>>2];H[e+12>>2]=d;d=i+N(g,20)|0;H[b+16>>2]=H[d+16>>2];j=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=j;j=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=j;H[d+16>>2]=H[e+24>>2];b=H[e+20>>2];H[d+8>>2]=H[e+16>>2];H[d+12>>2]=b;b=H[e+12>>2];H[d>>2]=H[e+8>>2];H[d+4>>2]=b;g=g+1|0;h=h-1|0;if(g>>>0>>0){continue}break}}g:{h:{if(!I[a+62|0]){break h}b=H[a+68>>2];f=b>>>0>>0?b:f;h=b>>>0>>0?b:c;if(f>>>0>>0){break g}g=f-1|0;if(h>>>0>=g>>>0){break h}f=H[a+88>>2];while(1){b=f+N(g,20)|0;H[e+24>>2]=H[b+16>>2];c=H[b+12>>2];H[e+16>>2]=H[b+8>>2];H[e+20>>2]=c;c=H[b+4>>2];H[e+8>>2]=H[b>>2];H[e+12>>2]=c;c=f+N(h,20)|0;H[b+16>>2]=H[c+16>>2];d=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=d;d=H[c+4>>2];H[b>>2]=H[c>>2];H[b+4>>2]=d;H[c+16>>2]=H[e+24>>2];b=H[e+20>>2];H[c+8>>2]=H[e+16>>2];H[c+12>>2]=b;b=H[e+12>>2];H[c>>2]=H[e+8>>2];H[c+4>>2]=b;g=g-1|0;h=h+1|0;if(g>>>0>h>>>0){continue}break}}b=H[a+68>>2]}if(b>>>0>=2){d=H[a+80>>2];h=b-1|0;g=0;while(1){c=d+N(h,20)|0;H[e+24>>2]=H[c+16>>2];f=H[c+12>>2];H[e+16>>2]=H[c+8>>2];H[e+20>>2]=f;f=H[c+4>>2];H[e+8>>2]=H[c>>2];H[e+12>>2]=f;f=d+N(g,20)|0;H[c+16>>2]=H[f+16>>2];i=H[f+12>>2];H[c+8>>2]=H[f+8>>2];H[c+12>>2]=i;i=H[f+4>>2];H[c>>2]=H[f>>2];H[c+4>>2]=i;H[f+16>>2]=H[e+24>>2];c=H[e+20>>2];H[f+8>>2]=H[e+16>>2];H[f+12>>2]=c;c=H[e+12>>2];H[f>>2]=H[e+8>>2];H[f+4>>2]=c;g=g+1|0;h=h-1|0;if(g>>>0>>0){continue}break}}if(!I[a+62|0]){break a}c=H[a+68>>2];b=b>>>0>c>>>0?c:b;if(b>>>0<2){break a}c=H[a+88>>2];h=b-1|0;g=0;while(1){a=c+N(h,20)|0;H[e+24>>2]=H[a+16>>2];b=H[a+12>>2];H[e+16>>2]=H[a+8>>2];H[e+20>>2]=b;b=H[a+4>>2];H[e+8>>2]=H[a>>2];H[e+12>>2]=b;b=c+N(g,20)|0;H[a+16>>2]=H[b+16>>2];f=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=f;f=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=f;H[b+16>>2]=H[e+24>>2];a=H[e+20>>2];H[b+8>>2]=H[e+16>>2];H[b+12>>2]=a;a=H[e+12>>2];H[b>>2]=H[e+8>>2];H[b+4>>2]=a;g=g+1|0;h=h-1|0;if(g>>>0>>0){continue}break}}xb=e+32|0}function ila(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;e=xb-48|0;xb=e;H[b+72>>2]=0;a:{d=I[a+2|0]|I[a+3|0]<<8;if(d){d=(d<<8|d>>>8)&65535;p=d>>>0>1?d:1;q=d-1|0;i=a+4|0;while(1){a=H[b+16>>2];d=H[a+40>>2];b:{if((F[i+5|0]&1)==((d&-2)!=4|0)){break b}c=H[b+8>>2];H[e+16>>2]=g;if(!Ac(a,c,106245,e+16|0)){break b}g=d&-3;f=1;c:{if(k){break c}f=0;if(!(I[i+5|0]&4)){break c}a=H[b+16>>2];k=H[a+68>>2];f=1;if(!k){break c}c=H[a+88>>2];a=0;if((k|0)!=1){f=k&-2;d=0;while(1){h=c+N(a,20)|0;F[h+18|0]=2;G[h+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;h=c+N(a|1,20)|0;F[h+18|0]=2;G[h+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;a=a+2|0;d=d+2|0;if((f|0)!=(d|0)){continue}break}}f=1;if(!(k&1)){break c}a=c+N(a,20)|0;F[a+18|0]=2;G[a+16>>1]=(H[H[b+16>>2]+40>>2]&-3)==4?-1:1;f=1}k=f;j=(g|0)!=5;d:{if(j){break d}g=H[b+16>>2];h=H[g+68>>2];if(h>>>0>=2){m=H[g+80>>2];d=h-1|0;a=0;while(1){f=m+N(d,20)|0;c=f;H[e+40>>2]=H[c+16>>2];l=H[c+12>>2];H[e+32>>2]=H[c+8>>2];H[e+36>>2]=l;l=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=l;c=m+N(a,20)|0;H[f+16>>2]=H[c+16>>2];l=H[c+12>>2];H[f+8>>2]=H[c+8>>2];H[f+12>>2]=l;l=H[c+4>>2];H[f>>2]=H[c>>2];H[f+4>>2]=l;H[c+16>>2]=H[e+40>>2];f=H[e+36>>2];H[c+8>>2]=H[e+32>>2];H[c+12>>2]=f;f=H[e+28>>2];H[c>>2]=H[e+24>>2];H[c+4>>2]=f;d=d-1|0;a=a+1|0;if(d>>>0>a>>>0){continue}break}}if(!I[g+62|0]){break d}a=H[g+68>>2];a=a>>>0>>0?a:h;if(a>>>0<2){break d}f=H[g+88>>2];d=a-1|0;a=0;while(1){g=f+N(d,20)|0;c=g;H[e+40>>2]=H[c+16>>2];h=H[c+12>>2];H[e+32>>2]=H[c+8>>2];H[e+36>>2]=h;h=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=h;c=f+N(a,20)|0;H[g+16>>2]=H[c+16>>2];h=H[c+12>>2];H[g+8>>2]=H[c+8>>2];H[g+12>>2]=h;h=H[c+4>>2];H[g>>2]=H[c>>2];H[g+4>>2]=h;H[c+16>>2]=H[e+40>>2];g=H[e+36>>2];H[c+8>>2]=H[e+32>>2];H[c+12>>2]=g;g=H[e+28>>2];H[c>>2]=H[e+24>>2];H[c+4>>2]=g;d=d-1|0;a=a+1|0;if(d>>>0>a>>>0){continue}break}}d=H[b+52>>2];a=H[d+12>>2];H[b+24>>2]=a;d=a+H[d+16>>2]|0;H[b+28>>2]=d;e:{if(!i|n>>>0>=q>>>0){break e}if(!(a>>>0<=i>>>0&d>>>0>i>>>0)){H[b+24>>2]=0;H[b+28>>2]=0;break e}H[b+24>>2]=i;a=d-i|0;d=I[i+2|0]|I[i+3|0]<<8;d=(d<<8|d>>>8)&65535;H[b+28>>2]=(a>>>0>>0?a:d)+i}H[197455]=0;l=da(712,i|0,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[b+52>>2];d=H[a+12>>2];H[b+24>>2]=d;H[b+28>>2]=d+H[a+16>>2];f:{if(j){break f}g=H[b+16>>2];h=H[g+68>>2];if(h>>>0>=2){m=H[g+80>>2];d=h-1|0;a=0;while(1){f=m+N(d,20)|0;c=f;H[e+40>>2]=H[c+16>>2];j=H[c+12>>2];H[e+32>>2]=H[c+8>>2];H[e+36>>2]=j;j=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=j;c=m+N(a,20)|0;H[f+16>>2]=H[c+16>>2];j=H[c+12>>2];H[f+8>>2]=H[c+8>>2];H[f+12>>2]=j;j=H[c+4>>2];H[f>>2]=H[c>>2];H[f+4>>2]=j;H[c+16>>2]=H[e+40>>2];f=H[e+36>>2];H[c+8>>2]=H[e+32>>2];H[c+12>>2]=f;f=H[e+28>>2];H[c>>2]=H[e+24>>2];H[c+4>>2]=f;d=d-1|0;a=a+1|0;if(d>>>0>a>>>0){continue}break}}if(!I[g+62|0]){break f}a=H[g+68>>2];a=a>>>0>>0?a:h;if(a>>>0<2){break f}f=H[g+88>>2];d=a-1|0;a=0;while(1){g=f+N(d,20)|0;c=g;H[e+40>>2]=H[c+16>>2];h=H[c+12>>2];H[e+32>>2]=H[c+8>>2];H[e+36>>2]=h;h=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=h;c=f+N(a,20)|0;H[g+16>>2]=H[c+16>>2];h=H[c+12>>2];H[g+8>>2]=H[c+8>>2];H[g+12>>2]=h;h=H[c+4>>2];H[g>>2]=H[c>>2];H[g+4>>2]=h;H[c+16>>2]=H[e+40>>2];g=H[e+36>>2];H[c+8>>2]=H[e+32>>2];H[c+12>>2]=g;g=H[e+28>>2];H[c>>2]=H[e+24>>2];H[c+4>>2]=g;d=d-1|0;a=a+1|0;if(d>>>0>a>>>0){continue}break}}o=l|o;a=H[b+8>>2];d=H[b+16>>2];H[e>>2]=H[b+72>>2];Ac(d,a,106272,e)}a=I[i+2|0]|I[i+3|0]<<8;g=H[b+72>>2]+1|0;H[b+72>>2]=g;i=((a<<8|a>>>8)&65535)+i|0;n=n+1|0;if((p|0)!=(n|0)){continue}break}}xb=e+48|0;return o&1}a=$()|0;_()|0;d=H[b+52>>2];k=H[d+12>>2];H[b+24>>2]=k;H[b+28>>2]=k+H[d+16>>2];ea(a|0);X()}function pfa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=2;a:{f=H[a+456>>2];if(H[f+20>>2]){break a}while(1){b:{c:{d:{e:{c=zb[H[H[a+460>>2]+4>>2]](a)|0;if((c|0)!=1){if((c|0)!=2){break a}H[f+20>>2]=1;if(!H[f+24>>2]){break e}c=2;if(!H[H[a+460>>2]+16>>2]){break a}b=H[a>>2];H[b+20>>2]=61;zb[H[b>>2]](a);return 2}f:{switch(H[f+24>>2]){default:c=H[a+336>>2];break b;case 1:if(!(H[a+28>>2]<65501&H[a+32>>2]<=65500)){b=H[a>>2];H[b+20>>2]=42;H[b+24>>2]=65500;zb[H[H[a>>2]>>2]](a)}b=H[a+212>>2];if((b|0)!=8){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=16;zb[H[H[a>>2]>>2]](a)}e=H[a+36>>2];if((e|0)>=11){b=H[a>>2];H[b+24>>2]=e;H[b+20>>2]=27;H[H[a>>2]+28>>2]=10;zb[H[H[a>>2]>>2]](a);e=H[a+36>>2]}H[a+312>>2]=1;H[a+316>>2]=1;if((e|0)>0){c=H[a+216>>2];i=0;b=1;d=1;while(1){g=H[c+8>>2];g:{if(g-5>>>0>=4294967292){h=H[c+12>>2];if(h-5>>>0>4294967291){break g}}b=H[a>>2];H[b+20>>2]=19;zb[H[b>>2]](a);e=H[a+36>>2];h=H[c+12>>2];b=H[a+316>>2];g=H[c+8>>2];d=H[a+312>>2]}b=(b|0)>(h|0)?b:h;H[a+316>>2]=b;d=(d|0)>(g|0)?d:g;H[a+312>>2]=d;c=c+88|0;i=i+1|0;if((i|0)<(e|0)){continue}break}}if(H[a+220>>2]|(H[a+336>>2]?H[a+224>>2]:0)){break d}h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{b=H[a+412>>2];if((b|0)<=119){switch(b|0){case 99:break m;case 80:break n;case 48:break o;case 35:break p;case 24:break q;case 15:break r;case 8:break s;case 3:break t;case 0:break u;case 63:break d;default:break h}}if((b|0)<=194){if((b|0)==120){break l}if((b|0)==143){break k}if((b|0)!=168){break h}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=13;b=13;break c}if((b|0)==195){break j}if((b|0)==224){break i}if((b|0)!=255){break h}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=16;b=16;break c}H[a+432>>2]=0;H[a+428>>2]=254352;H[a+424>>2]=1;b=1;break c}H[a+432>>2]=3;H[a+428>>2]=255568;H[a+424>>2]=2;b=2;break c}H[a+432>>2]=8;H[a+428>>2]=255456;H[a+424>>2]=3;b=3;break c}H[a+432>>2]=15;H[a+428>>2]=255328;H[a+424>>2]=4;b=4;break c}H[a+432>>2]=24;H[a+428>>2]=255152;H[a+424>>2]=5;b=5;break c}H[a+432>>2]=35;H[a+428>>2]=254944;H[a+424>>2]=6;b=6;break c}H[a+432>>2]=48;H[a+428>>2]=254672;H[a+424>>2]=7;b=7;break c}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=9;b=9;break c}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=10;b=10;break c}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=11;b=11;break c}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=12;b=12;break c}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=14;b=14;break c}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=15;b=15;break c}b=H[a>>2];H[b+20>>2]=17;H[b+24>>2]=H[a+408>>2];H[H[a>>2]+28>>2]=H[a+412>>2];H[H[a>>2]+32>>2]=H[a+416>>2];H[H[a>>2]+36>>2]=H[a+420>>2];zb[H[H[a>>2]>>2]](a);e=H[a+36>>2];b=H[a+424>>2];break c;case 0:break f}}if(!H[f+16>>2]){b=H[a>>2];H[b+20>>2]=36;zb[H[b>>2]](a)}if(!H[a+336>>2]){continue}ZC(a);return 1}c=2;b=H[a+144>>2];if((b|0)>=H[a+152>>2]){break a}H[a+152>>2]=b;break a}H[a+432>>2]=63;H[a+428>>2]=254352;H[a+424>>2]=8;b=8}H[a+324>>2]=b;H[a+320>>2]=b;if((e|0)>0){c=H[a+216>>2];d=0;while(1){H[c+40>>2]=b;H[c+36>>2]=b;b=N(H[a+312>>2],b);H[c+28>>2]=((b+N(H[c+8>>2],H[a+28>>2])|0)-1|0)/(b|0);b=N(H[a+424>>2],H[a+316>>2]);H[c+32>>2]=((b+N(H[c+12>>2],H[a+32>>2])|0)-1|0)/(b|0);b=H[a+312>>2];H[c+44>>2]=((b+N(H[c+8>>2],H[a+28>>2])|0)-1|0)/(b|0);b=H[a+316>>2];b=((b+N(H[c+12>>2],H[a+32>>2])|0)-1|0)/(b|0)|0;H[c+80>>2]=0;H[c+52>>2]=1;H[c+48>>2]=b;d=d+1|0;if((d|0)>2]){c=c+88|0;b=H[a+424>>2];continue}break}b=H[a+424>>2]}b=N(H[a+316>>2],b);H[a+328>>2]=((b+H[a+32>>2]|0)-1|0)/(b|0);c=H[a+336>>2];H[H[a+456>>2]+16>>2]=(c|0)>=H[a+36>>2]?H[a+224>>2]!=0:1}if(!c){H[f+24>>2]=2;continue}break}H[f+24>>2]=0;return 1}return c|0}function sX(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;g=xb-192|0;xb=g;H[197455]=0;fa(1756,g+56|0,+(f|0),-1);b=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((b|0)!=1){F[g+83|0]=1;H[197455]=0;Mb(g+72|0,434368,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=g- -64|0;f=H[b>>2];H[b>>2]=0;H[g+92>>2]=f;H[g+76>>2]=0;b=H[g+56>>2];f=H[g+60>>2];H[g+56>>2]=0;H[g+60>>2]=0;H[g+84>>2]=b;H[g+88>>2]=f;H[197455]=0;fa(1756,g+40|0,+(e|0),-1);b=H[197455];H[197455]=0;e=1;f=g+96|0;if((b|0)==1){break q}F[g+107|0]=1;H[197455]=0;Mb(f,434376,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[g+100>>2]=0;b=H[g+44>>2];H[g+108>>2]=H[g+40>>2];H[g+112>>2]=b;b=H[g+48>>2];H[g+48>>2]=0;H[g+116>>2]=b;H[g+40>>2]=0;H[g+44>>2]=0;H[197455]=0;fa(1756,g+24|0,+(d|0),-1);b=H[197455];H[197455]=0;f=g+120|0;if((b|0)==1){break p}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break o}H[g+124>>2]=5;H[g+128>>2]=-2147483640;H[g+120>>2]=b;H[197455]=0;Mb(b,433808,5);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+20>>2]=0;H[g+140>>2]=H[g+32>>2];b=H[g+28>>2];H[g+132>>2]=H[g+24>>2];H[g+136>>2]=b;H[g+32>>2]=0;H[g+24>>2]=0;H[g+28>>2]=0;H[197455]=0;fa(1756,g+8|0,+(c|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break n}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break m}H[g+148>>2]=6;H[g+152>>2]=-2147483640;H[g+144>>2]=b;H[197455]=0;Mb(b,433832,6);c=H[197455];H[197455]=0;if((c|0)==1){break a}e=0;H[b+24>>2]=0;H[g+164>>2]=H[g+16>>2];b=H[g+12>>2];H[g+156>>2]=H[g+8>>2];H[g+160>>2]=b;H[g+16>>2]=0;H[g+172>>2]=4;H[197455]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g+168>>2]=g+72;b=H[g+172>>2];H[g>>2]=H[g+168>>2];H[g+4>>2]=b;c=da(1763,g+176|0,g|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break l}if(F[g+167|0]<0){Kb(H[g+156>>2])}if(F[g+155|0]<0){Kb(H[g+144>>2])}if(F[g+143|0]<0){Kb(H[g+132>>2])}if(F[g+131|0]<0){Kb(H[g+120>>2])}if(F[g+119|0]<0){Kb(H[g+108>>2])}if(F[g+107|0]<0){Kb(H[g+96>>2])}if(F[g+95|0]<0){Kb(H[g+84>>2])}if(F[g+83|0]<0){Kb(H[g+72>>2])}if(F[g+19|0]<0){Kb(H[g+8>>2])}if(F[g+35|0]<0){Kb(H[g+24>>2])}if(F[g+51|0]<0){Kb(H[g+40>>2])}if(F[g+67|0]<0){Kb(H[g+56>>2])}H[197455]=0;a=a+8|0;qa(1765,a|0,c|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,c|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[g+72>>2]=b;H[g+76>>2]=4;H[g+80>>2]=-2147483640;H[197455]=0;Mb(b,434384,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[g+67|0]=0;H[197455]=0;H[g+56>>2]=0;ka(1767,a|0,g+72|0,c|0,g+56|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[g+67|0]<0){Kb(H[g+56>>2])}if(F[g+83|0]<0){Kb(H[g+72>>2])}a=H[c>>2];if(a){f=H[c+4>>2];if((a|0)==(f|0)){b=a}else{while(1){if(F[f-1|0]<0){Kb(H[f-12>>2])}b=f-24|0;if(F[f-13|0]<0){Kb(H[b>>2])}f=b;if((b|0)!=(a|0)){continue}break}b=H[c>>2]}H[c+4>>2]=a;Kb(b)}xb=g+192|0;return}a=$()|0;_()|0;ea(a|0);X()}d=$()|0;_()|0;break g}d=$()|0;_()|0;break h}d=$()|0;_()|0;break i}d=$()|0;_()|0;break j}d=$()|0;_()|0;break k}d=$()|0;_()|0;Vb(g+144|0);Vb(g+120|0);Vb(g+96|0);Vb(g+72|0)}if(F[g+19|0]>=0){break j}Kb(H[g+8>>2])}f=g+144|0}if(F[g+35|0]>=0){break h}Kb(H[g+24>>2])}if(F[g+51|0]>=0){break g}Kb(H[g+40>>2])}if(F[g+67|0]<0){Kb(H[g+56>>2])}if(!e){break b}while(1){f=Vb(f-24|0);if((f|0)!=(g+72|0)){continue}break}break b}d=$()|0;_()|0;break c}d=$()|0;_()|0;break c}d=$()|0;_()|0;if(F[g+67|0]<0){Kb(H[g+56>>2])}if(F[g+83|0]>=0){break c}Kb(H[g+72>>2])}yc(c)}ea(d|0);X()}ha(0)|0;_()|0;Zb();X()}function Y8(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;h=xb-160|0;xb=h;e=H[a+608>>2];j=H[a+604>>2];v=1;m=H[a+584>>2];s=H[m+72>>2];g=H[m+68>>2];n=H[m+64>>2];a:{b:{if((c|0)<=0){f=j;break b}t=e+j|0;p=H[m+88>>2];u=H[m+60>>2];k=H[m+12>>2];d=H[m+4>>2];x=d&8;y=d&4;c:while(1){f=p;e=0;d:while(1){o=0;while(1){e:{f:{g:{if((g|0)>11){d=g;break g}if(j>>>0>=t>>>0){d=12;if(g){break g}break f}l=g+8|0;i=j+1|0;n=I[I[j|0]+u|0]<3){j=i;d=l;break g}d=12;if(i>>>0>=t>>>0){j=i;break g}d=g+16|0;n=I[I[j+1|0]+u|0]<>>g|0;g=d-g|0;q=1;d=f;h:{i:{j:{k:{switch(I[i|0]-7|0){case 0:i=H[i+4>>2];w=i+o|0;H[f>>2]=w;o=0;d=f+4|0;e=e+i|0;if((k|0)<=(e|0)){break h}while(1){l:{if((g|0)>12){i=g;break l}if(j>>>0>=t>>>0){i=13;if(g){break l}f=d;break f}r=g+8|0;l=j+1|0;n=I[I[j|0]+u|0]<4){j=l;i=r;break l}i=13;if(l>>>0>=t>>>0){j=l;break l}i=g+16|0;n=I[I[j+1|0]+u|0]<>>g|0;g=i-g|0;m:{i=I[l|0];if(i-10>>>0>=2){n:{switch(i-8|0){case 4:break i;case 0:break n;default:break m}}i=H[l+4>>2];l=i+o|0;H[f+4>>2]=l;d=f+8|0;e=e+i|0;if((k|0)<=(e|0)){break h}f=l|w?d:f;continue d}i=H[l+4>>2];o=i+o|0;e=e+i|0;continue}break};f=H[a+12>>2]&1024;i=H[(f?504:480)+a>>2];l=H[a+628>>2];q=H[a>>2];r=H[m+108>>2];H[h+80>>2]=e;H[h+76>>2]=i;H[h+72>>2]=f?288118:288139;H[h+68>>2]=r;H[h+64>>2]=q;Pb(l,295333,288035,h- -64|0);break j;case 5:break i;case 2:case 4:break e;default:break k}}d=H[a+12>>2]&1024;i=H[(d?504:480)+a>>2];l=H[a+628>>2];q=H[a>>2];r=H[m+108>>2];H[h+48>>2]=e;H[h+44>>2]=i;H[h+40>>2]=d?288118:288139;H[h+36>>2]=r;H[h+32>>2]=q;Pb(l,295333,288035,h+32|0);d=f}q=s}s=q;if(o){H[d>>2]=o;d=d+4|0}}o:{if((e|0)==(k|0)){break o}f=H[a+12>>2]&1024;i=H[(f?504:480)+a>>2];l=H[a+628>>2];q=H[a>>2];r=H[m+108>>2];H[h+24>>2]=k;H[h+20>>2]=e;H[h+16>>2]=i;H[h+12>>2]=f?288118:288139;H[h+8>>2]=r;H[h+4>>2]=e>>>0>>0?288626:288700;H[h>>2]=q;sc(l,295333,288332,h);f=(e|0)>(k|0);p:{if((e|0)<=(k|0)|d>>>0<=p>>>0){break p}while(1){d=d-4|0;e=e-H[d>>2]|0;f=(k|0)<(e|0);if((e|0)<=(k|0)){break p}if(d>>>0>p>>>0){continue}break}}if((e|0)<(k|0)){if(d-p&4){H[d>>2]=0;d=d+4|0}H[d>>2]=k-((e|0)>0?e:0);d=d+4|0;break o}if(!f){break o}H[d+4>>2]=0;H[d>>2]=k;d=d+8|0}zb[H[m+76>>2]](b,p,d,k);q:{if(y){n=n>>>(g&7)|0;g=g&-8;break q}if(!x){break q}n=n>>>(g&15)|0;g=g&-16;j=(!g&j)+j|0}H[m+108>>2]=H[m+108>>2]+1;d=H[m+8>>2];b=d+b|0;c=c-d|0;if((c|0)>0){continue c}e=H[a+608>>2];f=H[a+604>>2];break b}c=H[a+12>>2]&1024;d=H[(c?504:480)+a>>2];g=H[a+628>>2];i=H[a>>2];l=H[m+108>>2];H[h+144>>2]=e;H[h+140>>2]=d;H[h+136>>2]=c?288118:288139;H[h+132>>2]=l;H[h+128>>2]=i;sc(g,295333,288256,h+128|0);if(o){H[f>>2]=o;f=f+4|0}r:{if((e|0)==(k|0)){break r}c=H[a+12>>2]&1024;d=H[(c?504:480)+a>>2];g=H[a+628>>2];i=H[a>>2];l=H[m+108>>2];H[h+120>>2]=k;H[h+116>>2]=e;H[h+112>>2]=d;H[h+108>>2]=c?288118:288139;H[h+104>>2]=l;H[h+100>>2]=e>>>0>>0?288626:288700;H[h+96>>2]=i;sc(g,295333,288332,h+96|0);g=(e|0)>(k|0);s:{if((e|0)<=(k|0)|f>>>0<=p>>>0){break s}while(1){f=f-4|0;e=e-H[f>>2]|0;g=(k|0)<(e|0);if((e|0)<=(k|0)){break s}if(f>>>0>p>>>0){continue}break}}if((e|0)<(k|0)){if(f-p&4){H[f>>2]=0;f=f+4|0}H[f>>2]=k-((e|0)>0?e:0);f=f+4|0;break r}if(!g){break r}H[f+4>>2]=0;H[f>>2]=k;f=f+8|0}zb[H[m+76>>2]](b,p,f,k);H[m+72>>2]=s;H[m+64>>2]=n;H[m+68>>2]=0;v=-1;b=H[a+608>>2]+(H[a+604>>2]-j|0)|0;break a}d=H[i+4>>2];o=d+o|0;e=d+e|0;continue}}}}H[m+72>>2]=s;H[m+64>>2]=n;H[m+68>>2]=g;b=(f-j|0)+e|0}H[a+604>>2]=j;H[a+608>>2]=b;xb=h+160|0;return v|0}function mka(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=xb-48|0;xb=f;a:{if(!sE(a,b,1,c)){break a}j=Ni(b);H[f+32>>2]=H[d+8>>2];c=H[d+4>>2];d=H[d>>2];H[f+24>>2]=d;H[f+28>>2]=c;H[f+44>>2]=H[e+8>>2];h=H[e+4>>2];H[f+36>>2]=H[e>>2];H[f+40>>2]=h;e=H[f+36>>2];H[f+8>>2]=H[f+32>>2];H[f+12>>2]=e;e=H[f+44>>2];H[f+16>>2]=H[f+40>>2];H[f+20>>2]=e;H[f>>2]=d;H[f+4>>2]=c;e=0;k=xb+-64|0;xb=k;b:{if(H[b+20>>2]){break b}h=j+2|0;d=H[b+4>>2];c=h-d|0;if(!((c|0)>=0&(c|0)<=(H[b+8>>2]-d|0))){H[b+20>>2]=4;break b}c:{if((d|0)==(h|0)){H[b+4>>2]=c+h;break c}Nb(d,0,c);d=c;c=H[b+4>>2];H[b+4>>2]=d+c;if(!c){break b}}d:{c=H[f+4>>2];if(!c){break d}d=H[f+16>>2];if(!d){break d}e=H[f+12>>2];h=I[e|0]|I[e+1|0]<<8;g=(h<<8|h>>>8)&65535;i=H[f>>2];h=I[i|0]|I[i+1|0]<<8;h=g-((h<<8|h>>>8)&65535)|0;e:{if((c|0)==1|(d|0)==1){break e}m=d-1|0;e=e+2|0;c=c-1|0;d=i+2|0;while(1){i=I[e|0]|I[e+1|0]<<8;g=i<<8|i>>>8;i=I[d|0]|I[d+1|0]<<8;if((h^g-(i<<8|i>>>8))&65535){break d}c=c-1|0;if(!c){break e}e=e+2|0;d=d+2|0;m=m-1|0;if(m){continue}break}}F[j|0]=0;F[j+1|0]=1;c=H[f+20>>2];H[k+48>>2]=H[f+16>>2];H[k+52>>2]=c;c=H[f+12>>2];H[k+40>>2]=H[f+8>>2];H[k+44>>2]=c;c=H[f+4>>2];H[k+32>>2]=H[f>>2];H[k+36>>2]=c;H[k+56>>2]=124897;if(H[b+20>>2]){e=0;break b}e=0;i=j+6|0;d=H[b+4>>2];c=i-d|0;if(!((c|0)<0|(c|0)>(H[b+8>>2]-d|0))){f:{if((d|0)==(i|0)){H[b+4>>2]=(c+j|0)+6;break f}Nb(d,0,c);d=c;c=H[b+4>>2];H[b+4>>2]=d+c;if(!c){break b}}if(!rE(j+2|0,b,k+32|0)){break b}c=h<<8|(h&65280)>>>8;F[j+4|0]=c;F[j+5|0]=c>>>8;e=1;break b}H[b+20>>2]=4;break b}F[j|0]=0;F[j+1|0]=2;c=H[f+20>>2];H[k+24>>2]=H[f+16>>2];H[k+28>>2]=c;c=H[f+12>>2];H[k+16>>2]=H[f+8>>2];H[k+20>>2]=c;c=H[f+4>>2];H[k+8>>2]=H[f>>2];H[k+12>>2]=c;i=xb-32|0;xb=i;c=k+8|0;e=H[c+16>>2];m=H[c+12>>2];h=H[c+4>>2];d=H[c+20>>2];H[i+16>>2]=H[c+16>>2];H[i+20>>2]=d;d=H[c+12>>2];H[i+8>>2]=H[c+8>>2];H[i+12>>2]=d;d=H[c+4>>2];H[i>>2]=H[c>>2];H[i+4>>2]=d;H[i+24>>2]=124897;g:{if(H[b+20>>2]){c=0;break g}c=0;l=j+6|0;g=H[b+4>>2];d=l-g|0;if(!((d|0)>=0&(d|0)<=(H[b+8>>2]-g|0))){H[b+20>>2]=4;break g}h:{if((g|0)==(l|0)){d=d+l|0;H[b+4>>2]=d;h=e>>>0>h>>>0?h:e;break h}Nb(g,0,d);g=H[b+4>>2];d=g+d|0;H[b+4>>2]=d;if(H[b+20>>2]|!g){break g}h=e>>>0>h>>>0?h:e}l=j+6|0;g=l-d|0;if(!((g|0)>=0&(g|0)<=(H[b+8>>2]-d|0))){H[b+20>>2]=4;break g}i:{if((d|0)==(l|0)){H[b+4>>2]=d+g;break i}Nb(d,0,g);d=H[b+4>>2];H[b+4>>2]=d+g;if(!d){break g}}d=h<<8|(h&65280)>>>8;F[j+4|0]=d;F[j+5|0]=d>>>8;d=H[b+20>>2];if(h>>>0>=65536){H[b+20>>2]=d|16;break g}if(d){break g}l=(j+(h<<1&131070)|0)+6|0;g=H[b+4>>2];d=l-g|0;if(!((d|0)>=0&(d|0)<=(H[b+8>>2]-g|0))){H[b+20>>2]=4;break g}j:{if((g|0)==(l|0)){H[b+4>>2]=d+l;break j}Nb(g,0,d);g=d;d=H[b+4>>2];H[b+4>>2]=g+d;if(!d){break g}}k:{if(!h){break k}d=0;if((h|0)!=1){l=h&-2;while(1){g=j+(d<<1)|0;n=e?m:163632;n=I[n|0]|I[n+1|0]<<8;F[g+6|0]=n;F[g+7|0]=n>>>8;n=j+((d|1)<<1)|0;g=!!e;m=(g<<1)+m|0;p=(e|0)==(g|0);o=p?163632:m;o=I[o|0]|I[o+1|0]<<8;F[n+6|0]=o;F[n+7|0]=o>>>8;d=d+2|0;n=!p;m=m+(n<<1)|0;e=e-(g+n|0)|0;c=c+2|0;if((l|0)!=(c|0)){continue}break}}if(!(h&1)){break k}c=j+(d<<1)|0;d=e?m:163632;d=I[d|0]|I[d+1|0]<<8;F[c+6|0]=d;F[c+7|0]=d>>>8}c=rE(j+2|0,b,i)}xb=i+32|0;e=c}xb=k- -64|0;if(e){q=1;l:{if(!(I[a+4|0]|I[a+5|0]<<8)){G[392496]=J[81816];a=784992;break l}a=a+6|0}Sj(b,a,Zh(b,1));break a}a=H[b+40>>2];if(H[b+20>>2]|!a){break a}H[b+40>>2]=H[a+32>>2];c=H[a+4>>2];H[b+4>>2]=H[a>>2];H[b+8>>2]=c;Rj(b);H[a+12>>2]=0;Kb(H[a+16>>2]);H[a+24>>2]=0;H[a+16>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;Kb(H[a+28>>2]);H[a+28>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[a>>2]=H[b+24>>2];H[b+24>>2]=a}xb=f+48|0;return q|0}function BE(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{switch(c-1|0){case 0:c:{d:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break c;case 0:break d;default:break a}}c=H[b+100>>2];c=H[H[c+80>>2]+N(H[c+64>>2],20)>>2];d=I[a+2|0]|I[a+3|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}f=Gc(d,c);e:{if((f|0)==-1){break e}a=I[a+4|0]|I[a+5|0]<<8;e=c+(a<<8|a>>>8)&65535;a=H[b+100>>2];c=H[a+80>>2]+N(H[a+64>>2],20)|0;a=J[c+12>>1]|16;if(I[b+140|0]){a=Ye(H[b+108>>2],e)|a&112}G[c+12>>1]=a;c=H[b+100>>2];if(!ec(c,1,1)){break e}a=H[c+64>>2];f:{if(a>>>0>2]){b=H[c+72>>2];d=H[c+84>>2];a=H[c+80>>2]+N(a,20)|0;break f}d=H[c+84>>2];b=H[c+72>>2];a=d+N(b?b-1|0:0,20)|0}b=N(b,20)+d|0;d=H[a+4>>2];H[b>>2]=H[a>>2];H[b+4>>2]=d;H[b+16>>2]=H[a+16>>2];d=H[a+12>>2];H[b+8>>2]=H[a+8>>2];H[b+12>>2]=d;H[b>>2]=e;H[c+64>>2]=H[c+64>>2]+1;H[c+72>>2]=H[c+72>>2]+1}return(f|0)!=-1}c=0;d=I[a+2|0]|I[a+3|0]<<8;if(d){e=((d<<8|d>>>8)&65535)+a|0}else{e=163632}d=H[b+100>>2];d=Gc(e,H[H[d+80>>2]+N(H[d+64>>2],20)>>2]);g:{if((d|0)==-1){break g}e=I[a+4|0]|I[a+5|0]<<8;if(d>>>0>=((e<<8|e>>>8)&65535)>>>0){break g}c=1;a=(d<<1)+a|0;a=I[a+6|0]|I[a+7|0]<<8;e=(a<<8|a>>>8)&65535;a=H[b+100>>2];d=H[a+80>>2]+N(H[a+64>>2],20)|0;a=J[d+12>>1]|16;if(I[b+140|0]){a=Ye(H[b+108>>2],e)|a&112}G[d+12>>1]=a;a=H[b+100>>2];if(!ec(a,1,1)){break g}b=H[a+64>>2];h:{if(b>>>0>2]){c=H[a+80>>2]+N(b,20)|0;b=H[a+72>>2];d=H[a+84>>2];break h}d=H[a+84>>2];b=H[a+72>>2];c=d+N(b?b-1|0:0,20)|0}b=N(b,20)+d|0;d=H[c+4>>2];H[b>>2]=H[c>>2];H[b+4>>2]=d;H[b+16>>2]=H[c+16>>2];d=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=d;H[b>>2]=e;c=1;H[a+64>>2]=H[a+64>>2]+1;H[a+72>>2]=H[a+72>>2]+1}return c;case 1:if((I[a|0]|I[a+1|0]<<8)!=256){break a}c=I[a+2|0]|I[a+3|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}else{d=163632}c=H[b+100>>2];c=Gc(d,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);if((c|0)==-1){break a}d=I[a+4|0]|I[a+5|0]<<8;c=c>>>0<((d<<8|d>>>8)&65535)>>>0?((c<<1)+a|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}return YE(a,b);case 2:if((I[a|0]|I[a+1|0]<<8)!=256){break a}c=I[a+2|0]|I[a+3|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}else{d=163632}c=H[b+100>>2];c=Gc(d,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);if((c|0)==-1){break a}d=I[a+4|0]|I[a+5|0]<<8;c=c>>>0<((d<<8|d>>>8)&65535)>>>0?((c<<1)+a|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}return XE(a,b);case 3:if((I[a|0]|I[a+1|0]<<8)!=256){break a}i:{c=I[a+2|0]|I[a+3|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}else{e=163632}c=H[b+100>>2];e=Gc(e,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);if((e|0)==-1){break i}c=163632;f=I[a+4|0]|I[a+5|0]<<8;e=e>>>0<((f<<8|f>>>8)&65535)>>>0?((e<<1)+a|0)+6|0:163632;e=I[e|0]|I[e+1|0]<<8;if(e){c=((e<<8|e>>>8)&65535)+a|0}a=I[c|0]|I[c+1|0]<<8;if(!a){break i}f=(a<<8|a>>>8)&65535;g=f>>>0>1?f:1;e=0;d=1;while(1){a=((a<<8|(a&65280)>>>8)&65535)>>>0>e>>>0?((e<<1)+c|0)+2|0:163632;a=I[a|0]|I[a+1|0]<<8;if(a){a=((a<<8|a>>>8)&65535)+c|0}else{a=163632}if(WE(a,b)){break i}e=e+1|0;d=f>>>0>e>>>0;if((e|0)==(g|0)){break i}a=I[c|0]|I[c+1|0]<<8;continue}}return d;case 4:return AE(a,b);case 5:j:{k:{l:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break j;case 1:break k;case 0:break l;default:break a}}return zE(b,a)}return Tr(a,b)}return Sr(a,b);case 6:if((I[a|0]|I[a+1|0]<<8)==256){c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?c+a|0:163632;a=I[a+2|0]|I[a+3|0]<<8;a=BE(c,b,(a<<8|a>>>8)&65535)}else{a=0}return a;case 7:break b;default:break a}}if((I[a|0]|I[a+1|0]<<8)!=256){break a}e=RE(a,b)}return e}function PD(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;j=xb-16|0;xb=j;if(a){if(H[a+56>>2]==1){e=Dr(a)}l=H[a+65792>>2];f=Uh(a,H[a+44>>2]);m=yb;a:{if(e){break a}c=H[a+48>>2];if(!c){e=0;break a}e=0;while(1){d=H[c+8>>2];b=-1;b:{if(e){break b}if(!d){d=0;b=0;break b}e=zb[H[a+8>>2]](H[a+28>>2],H[a+44>>2],c+16|0,d)|0;d=H[c+8>>2];b=(e|0)!=(d|0)?-1:0}e=b;k=d+k|0;c=H[c>>2];if(c){continue}break}}c=H[a+48>>2];if(c){while(1){b=H[c>>2];Kb(c);c=b;if(b){continue}break}}H[a+48>>2]=0;H[a+52>>2]=0;c=H[a+65776>>2];b=f-c|0;if(!((H[a+65780>>2]+(c>>>0>f>>>0)|0)==(m|0)&b>>>0<=4294967294&(!H[a+65788>>2]&K[a+65784>>2]<65536))){c=Uh(a,H[a+44>>2]);h=yb;b=xb-16|0;xb=b;d=H[a+44>>2];H[b+8>>2]=101075792;c:{if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,4)|0)!=4){break c}d=H[a+44>>2];F[b+9|0]=0;F[b+10|0]=0;F[b+11|0]=0;F[b+12|0]=0;F[b+8|0]=44;F[b+12|0]=0;F[b+13|0]=0;F[b+14|0]=0;F[b+15|0]=0;if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,8)|0)!=8){break c}d=H[a+44>>2];G[b+8>>1]=45;if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,2)|0)!=2){break c}d=H[a+44>>2];G[b+8>>1]=45;if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,2)|0)!=2){break c}d=H[a+44>>2];H[b+8>>2]=0;if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,4)|0)!=4){break c}d=H[a+44>>2];H[b+8>>2]=0;if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,4)|0)!=4){break c}d=H[a+44>>2];g=H[a+65788>>2];H[b+8>>2]=H[a+65784>>2];H[b+12>>2]=g;if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,8)|0)!=8){break c}d=H[a+44>>2];g=H[a+65788>>2];H[b+8>>2]=H[a+65784>>2];H[b+12>>2]=g;if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,8)|0)!=8){break c}d=H[a+44>>2];H[b+12>>2]=0;F[b+8|0]=k;F[b+11|0]=k>>>24;F[b+10|0]=k>>>16;F[b+9|0]=k>>>8;if((zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,8)|0)!=8){break c}d=H[a+44>>2];g=H[a+65776>>2];i=m-(H[a+65780>>2]+(g>>>0>f>>>0)|0)|0;H[b+8>>2]=f-g;H[b+12>>2]=i;zb[H[a+8>>2]](H[a+28>>2],d,b+8|0,8)|0}xb=b+16|0;d=xb-16|0;xb=d;b=H[a+65776>>2];g=H[a+65780>>2];i=H[a+44>>2];H[d+8>>2]=117853008;d:{if((zb[H[a+8>>2]](H[a+28>>2],i,d+8|0,4)|0)!=4){break d}i=H[a+44>>2];H[d+8>>2]=0;if((zb[H[a+8>>2]](H[a+28>>2],i,d+8|0,4)|0)!=4){break d}i=H[a+44>>2];H[d+8>>2]=c-b;H[d+12>>2]=h-((b>>>0>c>>>0)+g|0);if((zb[H[a+8>>2]](H[a+28>>2],i,d+8|0,8)|0)!=8){break d}c=H[a+44>>2];H[d+8>>2]=1;zb[H[a+8>>2]](H[a+28>>2],c,d+8|0,4)|0}xb=d+16|0}e:{if(e){break e}e=xb-16|0;xb=e;c=H[a+44>>2];H[e+8>>2]=101010256;d=-1;f:{if((zb[H[a+8>>2]](H[a+28>>2],c,e+8|0,4)|0)!=4){break f}c=H[a+44>>2];G[e+8>>1]=0;if((zb[H[a+8>>2]](H[a+28>>2],c,e+8|0,2)|0)!=2){break f}c=H[a+44>>2];G[e+8>>1]=0;if((zb[H[a+8>>2]](H[a+28>>2],c,e+8|0,2)|0)!=2){break f}c=H[a+44>>2];b=H[a+65788>>2];h=H[a+65784>>2];g:{if(!b&h>>>0>=65535|b){G[e+8>>1]=65535;c=zb[H[a+8>>2]](H[a+28>>2],c,e+8|0,2)|0;break g}G[e+8>>1]=h;c=zb[H[a+8>>2]](H[a+28>>2],c,e+8|0,2)|0}if((c|0)!=2){break f}c=H[a+44>>2];b=H[a+65788>>2];h=H[a+65784>>2];h:{if(!b&h>>>0>=65535|b){G[e+8>>1]=65535;c=zb[H[a+8>>2]](H[a+28>>2],c,e+8|0,2)|0;break h}G[e+8>>1]=h;c=zb[H[a+8>>2]](H[a+28>>2],c,e+8|0,2)|0}if((c|0)!=2){break f}c=H[a+44>>2];H[e+8>>2]=k;if((zb[H[a+8>>2]](H[a+28>>2],c,e+8|0,4)|0)!=4){break f}b=H[a+44>>2];c=f;d=H[a+65776>>2];f=m-(H[a+65780>>2]+(c>>>0>>0)|0)|0;c=c-d|0;if(!f&(c|0)==-1|f){H[e+8>>2]=-1;d=(zb[H[a+8>>2]](H[a+28>>2],b,e+8|0,4)|0)!=4?-1:0;break f}H[e+8>>2]=c;d=(zb[H[a+8>>2]](H[a+28>>2],b,e+8|0,4)|0)!=4?-1:0}xb=e+16|0;if(d){break e}i:{if(!l){d=H[a+44>>2];c=0;G[j+8>>1]=0;break i}d=H[a+44>>2];c=ac(l);G[j+8>>1]=c;if(c>>>0<65536){break i}G[j+8>>1]=65535}if(!(!c|(zb[H[a+8>>2]](H[a+28>>2],d,j+8|0,2)|0)!=2)){zb[H[a+8>>2]](H[a+28>>2],H[a+44>>2],l,c)|0}}zb[H[a+20>>2]](H[a+28>>2],H[a+44>>2])|0;f=H[a+65792>>2];if(f){Kb(f)}Kb(a)}xb=j+16|0}function Rc(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,p=0,q=0;g=H[a+68>>2];j=d>>>0>g>>>0?g:d;l=j-c|0;a:{if(!(!e|f)&l>>>0<2){break a}h=H[a+144>>2]|32;H[a+144>>2]=h;if((!I[a+61|0]|f^1)==1){if(!e){if(c>>>0>=j>>>0){break a}f=(c^-1)+j|0;e=H[a+80>>2];a=l&3;if(a){d=0;while(1){g=e+N(c,20)|0;H[g+4>>2]=H[g+4>>2]|b;c=c+1|0;d=d+1|0;if((a|0)!=(d|0)){continue}break}}if(f>>>0<3){break a}while(1){a=e+N(c,20)|0;H[a+4>>2]=H[a+4>>2]|b;H[a+24>>2]=H[a+24>>2]|b;H[a+44>>2]=H[a+44>>2]|b;a=a- -64|0;H[a>>2]=H[a>>2]|b;c=c+4|0;if((j|0)!=(c|0)){continue}break}break a}if(c>>>0>=j>>>0){break a}e=H[a+80>>2];d=-1;f=c;i=(c^-1)+j|0;if(i>>>0>=3){m=l&-4;while(1){g=e+N(f,20)|0;k=H[g+8>>2];d=d>>>0>>0?d:k;k=H[g+28>>2];d=d>>>0>>0?d:k;k=H[g+48>>2];d=d>>>0>>0?d:k;g=H[g+68>>2];d=d>>>0>>0?d:g;f=f+4|0;p=p+4|0;if((m|0)!=(p|0)){continue}break}}m=l&3;if(m){g=0;while(1){k=H[(e+N(f,20)|0)+8>>2];d=d>>>0>>0?d:k;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}if(l&1){f=e+N(c,20)|0;if(H[f+8>>2]!=(d|0)){H[a+144>>2]=h;H[f+4>>2]=H[f+4>>2]|b}c=c+1|0}if(!i){break a}while(1){f=e+N(c,20)|0;if(H[f+8>>2]!=(d|0)){h=h|32;H[a+144>>2]=h;H[f+4>>2]=H[f+4>>2]|b}f=e+N(c+1|0,20)|0;if(H[f+8>>2]!=(d|0)){h=h|32;H[a+144>>2]=h;H[f+4>>2]=H[f+4>>2]|b}c=c+2|0;if((j|0)!=(c|0)){continue}break}break a}if(!e){e=H[a+72>>2];b:{if(e>>>0<=c>>>0){break b}g=e+(c^-1)|0;f=H[a+84>>2];h=e-c&3;if(h){d=0;while(1){l=f+N(c,20)|0;H[l+4>>2]=H[l+4>>2]|b;c=c+1|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}if(g>>>0<=2){break b}while(1){d=f+N(c,20)|0;H[d+4>>2]=H[d+4>>2]|b;H[d+24>>2]=H[d+24>>2]|b;H[d+44>>2]=H[d+44>>2]|b;d=d- -64|0;H[d>>2]=H[d>>2]|b;c=c+4|0;if((e|0)!=(c|0)){continue}break}}c=H[a+64>>2];if(j>>>0<=c>>>0){break a}f=(c^-1)+j|0;e=H[a+80>>2];a=j-c&3;if(a){d=0;while(1){g=e+N(c,20)|0;H[g+4>>2]=H[g+4>>2]|b;c=c+1|0;d=d+1|0;if((a|0)!=(d|0)){continue}break}}if(f>>>0<3){break a}while(1){a=e+N(c,20)|0;H[a+4>>2]=H[a+4>>2]|b;H[a+24>>2]=H[a+24>>2]|b;H[a+44>>2]=H[a+44>>2]|b;a=a- -64|0;H[a>>2]=H[a>>2]|b;c=c+4|0;if((j|0)!=(c|0)){continue}break}break a}l=H[a+80>>2];d=-1;g=H[a+64>>2];p=j>>>0<=g>>>0;c:{if(p){break c}e=j-g|0;m=e&3;f=g;if((f^-1)+j>>>0>=3){k=e&-4;e=0;while(1){i=l+N(f,20)|0;n=H[i+8>>2];d=d>>>0>>0?d:n;n=H[i+28>>2];d=d>>>0>>0?d:n;n=H[i+48>>2];d=d>>>0>>0?d:n;i=H[i+68>>2];d=d>>>0>>0?d:i;f=f+4|0;e=e+4|0;if((k|0)!=(e|0)){continue}break}}if(!m){break c}e=0;while(1){i=H[(l+N(f,20)|0)+8>>2];d=d>>>0>>0?d:i;f=f+1|0;e=e+1|0;if((m|0)!=(e|0)){continue}break}}m=H[a+72>>2];d:{if(m>>>0<=c>>>0){break d}i=H[a+84>>2];k=m+(c^-1)|0;n=m-c|0;o=n&3;e:{if(!o){f=c;break e}e=0;f=c;while(1){q=H[(i+N(f,20)|0)+8>>2];d=d>>>0>>0?d:q;f=f+1|0;e=e+1|0;if((o|0)!=(e|0)){continue}break}}if(k>>>0>=3){while(1){e=i+N(f,20)|0;o=H[e+8>>2];d=d>>>0>>0?d:o;o=H[e+28>>2];d=d>>>0>>0?d:o;o=H[e+48>>2];d=d>>>0>>0?d:o;e=H[e+68>>2];d=d>>>0>>0?d:e;f=f+4|0;if((m|0)!=(f|0)){continue}break}}if(n&1){e=i+N(c,20)|0;if(H[e+8>>2]!=(d|0)){H[a+144>>2]=h;H[e+4>>2]=H[e+4>>2]|b}c=c+1|0}if(!k){break d}while(1){e=i+N(c,20)|0;if(H[e+8>>2]!=(d|0)){h=h|32;H[a+144>>2]=h;H[e+4>>2]=H[e+4>>2]|b}e=i+N(c+1|0,20)|0;if(H[e+8>>2]!=(d|0)){h=h|32;H[a+144>>2]=h;H[e+4>>2]=H[e+4>>2]|b}c=c+2|0;if((m|0)!=(c|0)){continue}break}}if(p){break a}e=g+1|0;if(j-g&1){c=l+N(g,20)|0;if(H[c+8>>2]!=(d|0)){h=h|32;H[a+144>>2]=h;H[c+4>>2]=H[c+4>>2]|b}g=g+1|0}if((e|0)==(j|0)){break a}while(1){c=l+N(g,20)|0;if(H[c+8>>2]!=(d|0)){h=h|32;H[a+144>>2]=h;H[c+4>>2]=H[c+4>>2]|b}c=l+N(g+1|0,20)|0;if(H[c+8>>2]!=(d|0)){h=h|32;H[a+144>>2]=h;H[c+4>>2]=H[c+4>>2]|b}g=g+2|0;if((j|0)!=(g|0)){continue}break}}}function Hf(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;l=xb-16|0;xb=l;h=H[b+4>>2];a:{if(h>>>0>a>>>0){break a}e=H[b+8>>2];if(e>>>0>>0){break a}f=e-a|0;if(f>>>0<2){break a}d=H[b+12>>2];j=d-2|0;H[b+12>>2]=j;c=1;if((j|0)<=0){c=0;break a}b:{c:{d:{e:{f:{g:{h:{i=I[a|0]|I[a+1|0]<<8;switch((i<<8|i>>>8)&65535){case 10:break c;case 8:break d;case 6:break e;case 4:break f;case 2:break g;case 0:break h;default:break a}}c=H[b+36>>2];if(c>>>0>2147483646){c=0;break a}if(!c){break b}a=a+2|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}e=e-a|0;a=c<<1;if(e>>>0>>0){c=0;break a}a=j-a|0;H[b+12>>2]=a;c=0;if((a|0)>0){break b}break a}c=a+2|0;if(c>>>0>>0){c=0;break a}if(c>>>0>e>>>0){c=0;break a}if(e-c>>>0<10){c=0;break a}d=d-12|0;H[b+12>>2]=d;if((d|0)<=0){c=0;break a}c=I[c|0]|I[c+1|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0<6){c=0;break a}f=I[a+4|0]|I[a+5|0]<<8;c=N(c,(f<<8|f>>>8)&65535);if(!c){break b}a=a+12|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}if(c>>>0>e-a>>>0){c=0;break a}a=d-c|0;H[b+12>>2]=a;c=0;if((a|0)>0){break b}break a}H[l+12>>2]=a;e=0;d=a+2|0;h=H[b+4>>2];i:{j:{if(d>>>0>>0){break j}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<10){break j}a=H[b+12>>2]-10|0;H[b+12>>2]=a;if((a|0)<=0){break j}c=I[d|0]|I[d+1|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0<6){break j}m=I[d+2|0]|I[d+3|0]<<8;j=(m<<8|m>>>8)&65535;i=N(j,c);if(i){g=d+10|0;if(g>>>0>>0|f>>>0>>0|i>>>0>f-g>>>0){break j}a=a-i|0;H[b+12>>2]=a;if((a|0)<=0){break j}}k:{if(!m){break k}c=d+N(c,j-1|0)|0;if((I[c+10|0]|I[c+11|0]<<8)!=65535){break k}e=(I[c+12|0]|I[c+13|0]<<8)==65535?-1:0}n=e+j|0;c=1;if(!n){break i}o=d+10|0;c=I[d|0]|I[d+1|0]<<8;p=(c<<8|c>>>8)&65535;d=o+N(p,j-1|0)|0;q=H[l+12>>2];i=0;while(1){e=0;g=N(i,p)+o|0;c=0;l:{if(!m){break l}c=0;if((I[d|0]|I[d+1|0]<<8)!=65535){break l}c=(I[d+2|0]|I[d+3|0]<<8)==65535?-1:0}c=c+j>>>0>i>>>0?g:163632;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<6){break j}g=a-6|0;H[b+12>>2]=g;if((g|0)<=0){break j}g=I[c|0]|I[c+1|0]<<8;g=(g<<8|g>>>8)&65535;k=I[c+2|0]|I[c+3|0]<<8;k=(k<<8|k>>>8)&65535;if(g>>>0>>0){break j}c=c+4|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<2){break j}a=a-8|0;H[b+12>>2]=a;if((a|0)<=0){break j}g=(g-k|0)+1|0;if(g>>>0>2147483646){break j}if(g){c=I[c|0]|I[c+1|0]<<8;c=((c<<8|c>>>8)&65535)+q|0;if(c>>>0>>0|c>>>0>f>>>0){break j}k=f-c|0;c=g<<1;if(k>>>0>>0){break j}a=a-c|0;H[b+12>>2]=a;if((a|0)<=0){break j}}e=1;i=i+1|0;if((n|0)!=(i|0)){continue}break}}c=e}break a}c=a+2|0;if(c>>>0>>0){c=0;break a}if(c>>>0>e>>>0){c=0;break a}if(e-c>>>0<10){c=0;break a}d=d-12|0;H[b+12>>2]=d;if((d|0)<=0){c=0;break a}c=I[c|0]|I[c+1|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0<4){c=0;break a}f=I[a+4|0]|I[a+5|0]<<8;c=N(c,(f<<8|f>>>8)&65535);if(!c){break b}a=a+12|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}if(c>>>0>e-a>>>0){c=0;break a}a=d-c|0;H[b+12>>2]=a;c=0;if((a|0)>0){break b}break a}if(f>>>0<6){c=0;break a}c=d-8|0;H[b+12>>2]=c;if((c|0)<=0){c=0;break a}d=I[a+4|0]|I[a+5|0]<<8;if(!d){break b}a=a+6|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}e=e-a|0;a=((d<<8|d>>>8)&65535)<<1;if(e>>>0>>0){c=0;break a}a=c-a|0;H[b+12>>2]=a;c=0;if((a|0)>0){break b}break a}if(f>>>0<8){c=0;break a}c=d-10|0;H[b+12>>2]=c;if((c|0)<=0){c=0;break a}d=I[a+2|0]|I[a+3|0]<<8;d=(d<<8|d>>>8)&65535;if(d>>>0>4){c=0;break a}f=I[a+6|0]|I[a+7|0]<<8;d=N(d,(f<<8|f>>>8)&65535);if(!d){break b}a=a+8|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}if(d>>>0>e-a>>>0){c=0;break a}a=c-d|0;H[b+12>>2]=a;c=0;if((a|0)<=0){break a}}c=1}xb=l+16|0;return c}function K7(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;k=xb-96|0;xb=k;i=H[a+584>>2];d=H[i+88>>2];a:{b:{if(!d){g=c;break b}e=H[i+100>>2];f=J[e+4>>1];h=f-d|0;c:{if((h|0)>(c|0)){g=c+d|0;H[i+88>>2]=g;l=(f+(d^-1)|0)-c|0;g=f-g&7;d:{if(!g){d=h;break d}f=0;d=h;while(1){d=d-1|0;e=H[e>>2];f=f+1|0;if((g|0)!=(f|0)){continue}break}}if(l>>>0>=7){while(1){e=H[H[H[H[H[H[H[H[e>>2]>>2]>>2]>>2]>>2]>>2]>>2]>>2];d=d-8|0;if((d|0)>(c|0)){continue}break}}l=c-1|0;d=b+c|0;g=c&3;e:{if(!g){f=c;break e}f=c;while(1){d=d-1|0;F[d|0]=I[e+6|0];f=f-1|0;e=H[e>>2];j=j+1|0;if((g|0)!=(j|0)){continue}break}}g=0;if(l>>>0<3){break c}while(1){F[d-1|0]=I[e+6|0];e=H[e>>2];F[d-2|0]=I[e+6|0];e=H[e>>2];F[d-3|0]=I[e+6|0];d=d-4|0;e=H[e>>2];F[d|0]=I[e+6|0];e=H[e>>2];f=f-4|0;if(f){continue}break}break c}b=b+h|0;g=f+(d^-1)|0;l=h&3;f:{if(!l){d=b;f=h;break f}d=b;f=h;while(1){d=d-1|0;F[d|0]=I[e+6|0];f=f-1|0;e=H[e>>2];j=j+1|0;if((l|0)!=(j|0)){continue}break}}if(g>>>0>=3){while(1){F[d-1|0]=I[e+6|0];e=H[e>>2];F[d-2|0]=I[e+6|0];e=H[e>>2];F[d-3|0]=I[e+6|0];d=d-4|0;e=H[e>>2];F[d|0]=I[e+6|0];e=H[e>>2];f=f-4|0;if(f){continue}break}}H[i+88>>2]=0;g=c-h|0}r=1;if((c|0)<(h|0)){break a}}r=1;q=H[i+112>>2];m=H[i+108>>2];d=H[i+104>>2];p=H[i+84>>2];j=H[i+76>>2];n=H[i+72>>2];f=J[i+64>>1];c=H[a+604>>2];g:{h:{if((g|0)<=0){break h}while(1){i:{j:{k:{h=H[i+92>>2];if((h|0)>=(f|0)){e=I[c|0]<=(f|0)){c=c+1|0}else{e=I[c+1|0]<>2]=h-f;j=n-f|0;n=e>>f;l:{o=e&p;l=o&65535;switch(l-256|0){case 1:break h;case 0:break l;default:break j}}m=H[i+116>>2]+2064|0;Id(m,0,38888);q=H[i+116>>2]+4088|0;f=9;h=H[i+92>>2];if((h|0)>=9){break k}p=511}b=H[a>>2];h=H[a+628>>2];H[k+16>>2]=H[a+480>>2];sc(h,b,273582,k+16|0);break h}f=j+8|0;e=I[c|0]<0){c=c+1|0}else{e=I[c+1|0]<>2]=h-9;p=511;j=f-9|0;f=9;n=e>>9;m:{n:{h=e&511;switch(h-256|0){case 1:break h;case 0:break n;default:break m}}b=H[a>>2];c=H[a+628>>2];H[k+80>>2]=H[a+472>>2];Pb(c,b,274210,k+80|0);break g}F[b|0]=e;g=g-1|0;b=b+1|0;d=H[i+116>>2]+(h<<3)|0;break i}o:{e=H[i+116>>2];if(e>>>0<=m>>>0){h=e+40952|0;if(h>>>0>m>>>0){break o}}b=H[a>>2];c=H[a+628>>2];H[k+64>>2]=H[a+472>>2];Pb(c,b,274793,k- -64|0);break g}H[m>>2]=d;if(!(d>>>0>>0&d>>>0>=e>>>0)){b=H[a>>2];c=H[a+628>>2];H[k+48>>2]=H[a+472>>2];Pb(c,b,274793,k+48|0);break g}F[m+7|0]=I[d+7|0];G[m+4>>1]=J[d+4>>1]+1;d=l<<3;h=d+e|0;F[m+6|0]=I[(h>>>0>>0?h+7|0:m+7|0)|0];m=m+8|0;if(q>>>0>>0){f=((f|0)<11?f:11)+1|0;p=-1<>>0>=256){o=J[(d+e|0)+4>>1];if(!o){b=H[a>>2];c=H[a+628>>2];H[k+32>>2]=H[a+472>>2];Pb(c,b,275451,k+32|0);break g}if(g>>>0>>0){H[i+100>>2]=h;e=h;while(1){e=H[e>>2];if(J[e+4>>1]>(g|0)){continue}break}H[i+88>>2]=g;l=g-1|0;d=b+g|0;o=g&3;if(o){b=0;while(1){d=d-1|0;F[d|0]=I[e+6|0];g=g-1|0;e=H[e>>2];b=b+1|0;if((o|0)!=(b|0)){continue}break}}if(l>>>0<3){break r}while(1){F[d-1|0]=I[e+6|0];b=H[e>>2];F[d-2|0]=I[b+6|0];b=H[b>>2];F[d-3|0]=I[b+6|0];d=d-4|0;b=H[b>>2];F[d|0]=I[b+6|0];e=H[b>>2];g=g-4|0;if(g){continue}break}break r}l=b+o|0;d=l;e=h;while(1){d=d-1|0;F[d|0]=I[e+6|0];e=H[e>>2];if(!e){break q}if(b>>>0>>0){continue}break}break q}F[b|0]=o;g=g-1|0;b=b+1|0;break p}g=0;d=h;break h}g=g-o|0;b=l}d=h}if((g|0)>0){continue}break}}H[a+604>>2]=c;H[i+112>>2]=q;H[i+108>>2]=m;H[i+104>>2]=d;H[i+84>>2]=p;H[i+76>>2]=j;H[i+72>>2]=n;G[i+64>>1]=f;if((g|0)<=0){break a}b=H[a>>2];c=H[a+628>>2];a=H[a+472>>2];H[k+4>>2]=g;H[k>>2]=a;Pb(c,b,276099,k)}r=0}xb=k+96|0;return r|0}function kt(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;l=xb-16|0;xb=l;h=H[b+4>>2];a:{if(h>>>0>a>>>0){break a}e=H[b+8>>2];if(e>>>0>>0){break a}f=e-a|0;if(f>>>0<2){break a}d=H[b+12>>2];j=d-2|0;H[b+12>>2]=j;if((j|0)<=0){break a}c=1;b:{c:{d:{e:{f:{g:{h:{i=I[a|0]|I[a+1|0]<<8;switch((i<<8|i>>>8)&65535){case 10:break c;case 8:break d;case 6:break e;case 4:break f;case 2:break g;case 0:break h;default:break a}}c=H[b+36>>2];if(c>>>0>1073741822){c=0;break a}if(!c){break b}a=a+2|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}e=e-a|0;a=c<<2;if(e>>>0>>0){c=0;break a}a=j-a|0;H[b+12>>2]=a;c=0;if((a|0)>0){break b}break a}c=a+2|0;if(c>>>0>>0){c=0;break a}if(c>>>0>e>>>0){c=0;break a}if(e-c>>>0<10){c=0;break a}d=d-12|0;H[b+12>>2]=d;if((d|0)<=0){c=0;break a}c=I[c|0]|I[c+1|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0<8){c=0;break a}f=I[a+4|0]|I[a+5|0]<<8;c=N(c,(f<<8|f>>>8)&65535);if(!c){break b}a=a+12|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}if(c>>>0>e-a>>>0){c=0;break a}a=d-c|0;H[b+12>>2]=a;c=0;if((a|0)>0){break b}break a}H[l+12>>2]=a;e=0;d=a+2|0;h=H[b+4>>2];i:{j:{if(d>>>0>>0){break j}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<10){break j}a=H[b+12>>2]-10|0;H[b+12>>2]=a;if((a|0)<=0){break j}c=I[d|0]|I[d+1|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0<6){break j}m=I[d+2|0]|I[d+3|0]<<8;j=(m<<8|m>>>8)&65535;i=N(j,c);if(i){g=d+10|0;if(g>>>0>>0|f>>>0>>0|i>>>0>f-g>>>0){break j}a=a-i|0;H[b+12>>2]=a;if((a|0)<=0){break j}}k:{if(!m){break k}c=d+N(c,j-1|0)|0;if((I[c+10|0]|I[c+11|0]<<8)!=65535){break k}e=(I[c+12|0]|I[c+13|0]<<8)==65535?-1:0}n=e+j|0;c=1;if(!n){break i}o=d+10|0;c=I[d|0]|I[d+1|0]<<8;p=(c<<8|c>>>8)&65535;d=o+N(p,j-1|0)|0;q=H[l+12>>2];i=0;while(1){e=0;g=N(i,p)+o|0;c=0;l:{if(!m){break l}c=0;if((I[d|0]|I[d+1|0]<<8)!=65535){break l}c=(I[d+2|0]|I[d+3|0]<<8)==65535?-1:0}c=c+j>>>0>i>>>0?g:163632;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<6){break j}g=a-6|0;H[b+12>>2]=g;if((g|0)<=0){break j}g=I[c|0]|I[c+1|0]<<8;g=(g<<8|g>>>8)&65535;k=I[c+2|0]|I[c+3|0]<<8;k=(k<<8|k>>>8)&65535;if(g>>>0>>0){break j}c=c+4|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<2){break j}a=a-8|0;H[b+12>>2]=a;if((a|0)<=0){break j}g=(g-k|0)+1|0;if(g>>>0>1073741822){break j}if(g){c=I[c|0]|I[c+1|0]<<8;c=((c<<8|c>>>8)&65535)+q|0;if(c>>>0>>0|c>>>0>f>>>0){break j}k=f-c|0;c=g<<2;if(k>>>0>>0){break j}a=a-c|0;H[b+12>>2]=a;if((a|0)<=0){break j}}e=1;i=i+1|0;if((n|0)!=(i|0)){continue}break}}c=e}break a}c=a+2|0;if(c>>>0>>0){c=0;break a}if(c>>>0>e>>>0){c=0;break a}if(e-c>>>0<10){c=0;break a}d=d-12|0;H[b+12>>2]=d;if((d|0)<=0){c=0;break a}c=I[c|0]|I[c+1|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0<6){c=0;break a}f=I[a+4|0]|I[a+5|0]<<8;c=N(c,(f<<8|f>>>8)&65535);if(!c){break b}a=a+12|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}if(c>>>0>e-a>>>0){c=0;break a}a=d-c|0;H[b+12>>2]=a;c=0;if((a|0)>0){break b}break a}if(f>>>0<6){c=0;break a}c=d-8|0;H[b+12>>2]=c;if((c|0)<=0){c=0;break a}d=I[a+4|0]|I[a+5|0]<<8;if(!d){break b}a=a+6|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}e=e-a|0;a=((d<<8|d>>>8)&65535)<<2;if(e>>>0>>0){c=0;break a}a=c-a|0;H[b+12>>2]=a;c=0;if((a|0)>0){break b}break a}if(f>>>0<8){c=0;break a}c=d-10|0;H[b+12>>2]=c;if((c|0)<=0){c=0;break a}d=I[a+2|0]|I[a+3|0]<<8;d=(d<<8|d>>>8)&65535;if(d>>>0>4){c=0;break a}f=I[a+6|0]|I[a+7|0]<<8;d=N(d,(f<<8|f>>>8)&65535);if(!d){break b}a=a+8|0;if(a>>>0>>0){c=0;break a}if(a>>>0>e>>>0){c=0;break a}if(d>>>0>e-a>>>0){c=0;break a}a=c-d|0;H[b+12>>2]=a;c=0;if((a|0)<=0){break a}}c=1}xb=l+16|0;return c}function vG(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=O(0);if(!I[a+178|0]){d=H[a+152>>2];b=I[d+8|0]|I[d+9|0]<<8;c=H[a+160>>2];c=c>>>0<((b<<8|b>>>8)&65535)>>>0?(d+(c<<2)|0)+10|0:163632;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?(c+d|0)+2|0:163632;e=I[c+4|0]|I[c+5|0]<<8;d=(e<<8|e>>>8)&65535;H[a+156>>2]=d;a:{if(!I[a+176|0]){break a}b:{c:{c=H[a+164>>2];if((c|0)>=0){if(c>>>0>=d>>>0){break b}b=c;while(1){b=((b>>>1|0)+b|0)+8|0;if(d>>>0>=b>>>0){continue}break}if(!(b>>>0>>0|b>>>0>1073741822)){c=tc(H[a+172>>2],b<<2);if(c){break c}}H[a+164>>2]=-1}F[a+40|0]=1;break a}H[a+164>>2]=b;H[a+172>>2]=c}c=H[a+168>>2];if(c>>>0>>0){Nb(H[a+172>>2]+(c<<2)|0,0,d-c<<2)}H[a+168>>2]=d;g=H[a+152>>2]+2|0;d=H[a+160>>2];p=H[a+144>>2];q=H[a+148>>2];d:{if(!e){H[196248]=H[40908];c=784992;break d}c=H[a+172>>2]}b=I[g+6|0]|I[g+7|0]<<8;b=d>>>0<((b<<8|b>>>8)&65535)>>>0?(g+(d<<2)|0)+8|0:163632;b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);h=b?b+g|0:163632;b=I[h+4|0]|I[h+5|0]<<8;k=(b<<8|b>>>8)&65535;j=H[a+156>>2];f=j>>>0>k>>>0?k:j;if(f){b=I[g+2|0]|I[g+3|0]<<8|(I[g+4|0]<<16|I[g+5|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);e=b?b+g|0:163632;b=0;while(1){d=h+(b<<1)|0;d=I[d+6|0]|I[d+7|0]<<8;v=c+(b<<2)|0,w=ks(e,(d<<8|d>>>8)&65535,p,q),L[v>>2]=w;b=b+1|0;if((f|0)!=(b|0)){continue}break}}if(j>>>0>k>>>0){Nb(c+(f<<2)|0,0,j-f<<2)}}F[a+178|0]=1}c=H[a+24>>2];e:{f:{if(c){c=c-1|0;H[a+24>>2]=c;if(c>>>0>=K[a+32>>2]){break f}c=H[a+36>>2]+(c<<5)|0;break e}F[a+20|0]=1}c=H[40915];H[196254]=H[40914];H[196255]=c;c=H[40913];H[196252]=H[40912];H[196253]=c;c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992}i=H[a+156>>2];b=0;g:{h:{i:{u=M[c>>3];j:{if(P(u)<2147483648){c=~~u;break j}c=-2147483648}if((c|0)>=0){e=H[a+24>>2];r=e+N(c,i^-1)|0;if(e>>>0>>0){break h}if(c){break i}break g}F[a+20|0]=1;e=H[a+24>>2];break g}l=(i|0)>0?i:0;k=i&-2;p=i&1;q=c+r|0;n=H[40908];o=H[40909];while(1){f=H[a+32>>2];b=m+r|0;if(b>>>0>=e>>>0){F[a+20|0]=1}h=H[a+36>>2];k:{if(b>>>0>=f>>>0){b=H[40915];H[196254]=H[40914];H[196255]=b;b=H[40913];H[196252]=H[40912];H[196253]=b;b=H[40911];H[196250]=H[40910];H[196251]=b;H[196248]=n;H[196249]=o;d=784992;break k}d=h+(b<<5)|0}H[d+12>>2]=m;H[d+8>>2]=c;b=H[d+16>>2];l:{if((b|0)<0){break l}e=b;if(b>>>0>>0){while(1){e=((e>>>1|0)+e|0)+8|0;if(l>>>0>=e>>>0){continue}break}m:{if(!(b>>>0>e>>>0|e>>>0>536870910)){b=tc(H[d+24>>2],e<<3);if(b){break m}}H[d+16>>2]=-1;break l}H[d+16>>2]=e;H[d+24>>2]=b}b=H[d+20>>2];if(b>>>0>>0){Nb(H[d+24>>2]+(b<<3)|0,0,l-b<<3)}H[d+20>>2]=l}n:{if(!i){break n}e=N(i,m)+q|0;b=f-e|0;s=e?b>>>0>f>>>0?0:b:f;t=h+(e<<5)|0;g=H[d+24>>2];j=H[d+20>>2];b=0;h=0;if((i|0)!=1){while(1){d=t+(b<<5)|0;o:{if(b>>>0>=j>>>0){H[196248]=n;H[196249]=o;f=784992;break o}f=g+(b<<3)|0}e=b>>>0>>0?d:163632;d=H[e+4>>2];H[f>>2]=H[e>>2];H[f+4>>2]=d;e=b|1;d=t+(e<<5)|0;p:{if(e>>>0>=j>>>0){H[196248]=n;H[196249]=o;f=784992;break p}f=g+(e<<3)|0}e=e>>>0>>0?d:163632;d=H[e+4>>2];H[f>>2]=H[e>>2];H[f+4>>2]=d;b=b+2|0;h=h+2|0;if((k|0)!=(h|0)){continue}break}}if(!p){break n}d=t+(b<<5)|0;q:{if(b>>>0>=j>>>0){H[196248]=n;H[196249]=o;e=784992;break q}e=g+(b<<3)|0}d=b>>>0>>0?d:163632;b=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=b}e=H[a+24>>2];m=m+1|0;if((c|0)!=(m|0)){continue}break}b=c;break g}F[a+40|0]=1;return}c=N(b,i);if(c>>>0<=e>>>0){H[a+24>>2]=e-c;return}F[a+20|0]=1}function bJ(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;d=xb-16|0;xb=d;k=H[b+16>>2];l=H[b+8>>2];e=H[b>>2];n=H[a+492>>2];a:{b:{c=zb[H[b+36>>2]](b)|0;if((c|0)<0){break b}e=l-e>>3;e=(c|0)<(e|0)?c:e;if(H[b+12>>2]|!e){break a}i=b+260|0;m=b+156|0;j=b+208|0;c:{if(!H[b+152>>2]){f=e+6|0;c=zb[H[H[n>>2]>>2]](j,f,k)|0;if(c){break c}c=zb[H[H[n>>2]>>2]](m,f,k)|0;if(c){break c}c=zb[H[H[n>>2]>>2]](i,4,k)|0;H[d+12>>2]=c;if(c){break c}}zb[H[b+28>>2]](b);c=H[b>>2];if(l>>>0<=c>>>0){break b}t=e+5|0;d:{e:{while(1){f:{g:{if(c+3>>>0>=l>>>0){break g}h:{switch(I[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break h;default:break g}}i:{switch(I[c|0]-100|0){case 0:if(!g|(I[c+1|0]!=101|I[c+2|0]!=102)){break g}break e;case 1:break i;default:break g}}if(I[c+1|0]!=110){break g}if(I[c+2|0]==100){break f}}zb[H[b+32>>2]](b);h=H[b>>2];if(h>>>0>=l>>>0){break b}if(H[b+12>>2]){break a}j:{if(I[c|0]!=47){break j}if(c+2>>>0>=l>>>0){H[d+12>>2]=3;break d}o=H[H[a+128>>2]+52>>2];f=H[b+8>>2];zb[H[b+28>>2]](b);k:{e=H[b>>2];l:{if(e>>>0>=f>>>0|I[e|0]-48>>>0>9){break l}e=zb[H[b+36>>2]](b)|0;zb[H[b+32>>2]](b);if((e|0)<0){break l}q=f;r=H[b>>2];f=r+1|0;if((e|0)<(q-f|0)){break k}}if(o){break a}H[b+12>>2]=3;break a}H[b>>2]=(e+r|0)+1;if(H[b+12>>2]){break a}if(H[b+152>>2]){break j}c=c+1|0;h=h-c|0;o=zb[H[b+200>>2]](m,g,c,h+1|0)|0;H[d+12>>2]=o;if(o){break d}q=h;h=g<<2;F[q+H[h+H[b+180>>2]>>2]|0]=0;if(I[c|0]==46){c=fc(11262,H[h+H[b+180>>2]>>2]);s=c?s:1;p=c?p:g}c=H[a+172>>2];m:{if(!((c|0)<0|(g|0)>=(t|0))){if(c>>>0>=e>>>0){H[d+12>>2]=3;break d}c=pc(k,e,d+12|0);if(H[d+12>>2]){break d}c=Ob(c,f,e);zb[H[n+16>>2]](c,e,4330);f=H[a+172>>2];u=d,v=zb[H[b+252>>2]](j,g,f+c|0,e-f|0)|0,H[u+12>>2]=v;if(c){zb[H[k+8>>2]](k,c)}c=H[d+12>>2];break m}c=zb[H[b+252>>2]](j,g,f,e)|0;H[d+12>>2]=c}if(c){break d}g=g+1|0}zb[H[b+28>>2]](b);c=H[b>>2];if(l>>>0>c>>>0){continue}}break}if(!g){break b}}H[b+152>>2]=g;if(s&255){a=H[H[b+180>>2]>>2];if(!fc(11262,a)){break a}c=zb[H[b+304>>2]](i,0,a,H[H[b+184>>2]>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+304>>2]](i,1,H[H[b+232>>2]>>2],H[H[b+236>>2]>>2])|0;H[d+12>>2]=c;if(c){break c}a=p<<2;c=zb[H[b+304>>2]](i,2,H[a+H[b+180>>2]>>2],H[a+H[b+184>>2]>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+304>>2]](i,3,H[a+H[b+232>>2]>>2],H[a+H[b+236>>2]>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+200>>2]](m,p,H[H[b+284>>2]>>2],H[H[b+288>>2]>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+252>>2]](j,p,H[H[b+284>>2]+4>>2],H[H[b+288>>2]+4>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+200>>2]](m,0,H[H[b+284>>2]+8>>2],H[H[b+288>>2]+8>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+252>>2]](j,0,H[H[b+284>>2]+12>>2],H[H[b+288>>2]+12>>2])|0;H[d+12>>2]=c;if(c){break c}break a}F[d+8|0]=I[100176];H[d+4>>2]=I[100172]|I[100173]<<8|(I[100174]<<16|I[100175]<<24);c=zb[H[b+304>>2]](i,0,H[H[b+180>>2]>>2],H[H[b+184>>2]>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+304>>2]](i,1,H[H[b+232>>2]>>2],H[H[b+236>>2]>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+200>>2]](m,0,11262,8)|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+252>>2]](j,0,d+4|0,5)|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+200>>2]](m,g,H[H[b+284>>2]>>2],H[H[b+288>>2]>>2])|0;H[d+12>>2]=c;if(c){break c}c=zb[H[b+252>>2]](j,g,H[H[b+284>>2]+4>>2],H[H[b+288>>2]+4>>2])|0;H[d+12>>2]=c;if(c){break c}H[b+152>>2]=H[b+152>>2]+1;break a}c=H[d+12>>2]}H[b+12>>2]=c;break a}H[d+12>>2]=3;H[b+12>>2]=3}xb=d+16|0}function aE(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;d=H[a+12>>2]-5|0;c=H[a+44>>2];m=c>>>0>d>>>0?d:c;c=H[a>>2];l=H[c+4>>2];n=(b|0)!=4;a:{while(1){h=1;e=H[c+16>>2];d=H[a+5820>>2]+42>>3;if(e>>>0>>0){break a}f=H[a+108>>2];g=H[a+92>>2];k=f-g|0;i=k+H[c+4>>2]|0;d=e-d|0;d=d>>>0>i>>>0?i:d;d=d>>>0<65535?d:65535;if(m>>>0>d>>>0){if(!b|!d&n|(d|0)!=(i|0)){break a}}h=(b|0)==4&(d|0)==(i|0);An(a,0,0,h);F[(H[a+20>>2]+H[a+8>>2]|0)-4|0]=d;F[(H[a+20>>2]+H[a+8>>2]|0)-3|0]=d>>>8;c=d^-1;F[(H[a+20>>2]+H[a+8>>2]|0)-2|0]=c;F[(H[a+20>>2]+H[a+8>>2]|0)-1|0]=c>>>8;j=H[a>>2];i=H[j+28>>2];ue(i);e=H[i+20>>2];c=H[j+16>>2];e=c>>>0>e>>>0?e:c;b:{if(!e){break b}Ob(H[j+12>>2],H[i+16>>2],e);H[j+12>>2]=e+H[j+12>>2];H[i+16>>2]=e+H[i+16>>2];H[j+20>>2]=e+H[j+20>>2];H[j+16>>2]=H[j+16>>2]-e;c=H[i+20>>2];H[i+20>>2]=c-e;if((c|0)!=(e|0)){break b}H[i+16>>2]=H[i+8>>2]}if((f|0)!=(g|0)){e=d>>>0>k>>>0?k:d;Ob(H[H[a>>2]+12>>2],H[a+56>>2]+H[a+92>>2]|0,e);c=H[a>>2];H[c+12>>2]=e+H[c+12>>2];H[c+16>>2]=H[c+16>>2]-e;H[c+20>>2]=e+H[c+20>>2];H[a+92>>2]=e+H[a+92>>2];d=d-e|0}if(d){f=H[a>>2];g=H[f+12>>2];c=H[f+4>>2];e=c>>>0>>0?c:d;if(e){H[f+4>>2]=c-e;c=Ob(g,H[f>>2],e);c:{d:{switch(H[H[f+28>>2]+24>>2]-1|0){case 0:o=f,p=Yg(H[f+48>>2],c,e),H[o+48>>2]=p;break c;case 1:break d;default:break c}}o=f,p=yd(H[f+48>>2],c,e),H[o+48>>2]=p}H[f>>2]=e+H[f>>2];H[f+8>>2]=e+H[f+8>>2];f=H[a>>2];g=H[f+12>>2]}H[f+12>>2]=d+g;H[f+16>>2]=H[f+16>>2]-d;H[f+20>>2]=H[f+20>>2]+d}c=H[a>>2];if(!h){continue}break}h=0}d=H[c+4>>2];e:{if((d|0)==(l|0)){d=H[a+108>>2];break e}g=l-d|0;e=H[a+44>>2];f:{if(g>>>0>=e>>>0){H[a+5808>>2]=2;Ob(H[a+56>>2],H[c>>2]-e|0,e);c=H[a+44>>2];H[a+108>>2]=c;d=c;break f}c=H[a+108>>2];g:{if(g>>>0>2]-c>>>0){break g}d=c-e|0;H[a+108>>2]=d;c=H[a+56>>2];Ob(c,c+e|0,d);c=H[a+5808>>2];if(c>>>0>1){break g}H[a+5808>>2]=c+1}Ob(H[a+56>>2]+H[a+108>>2]|0,H[H[a>>2]>>2]-g|0,g);d=g+H[a+108>>2]|0;H[a+108>>2]=d;c=H[a+44>>2]}H[a+92>>2]=d;e=H[a+5812>>2];c=c-e|0;H[a+5812>>2]=(c>>>0>g>>>0?g:c)+e}if(K[a+5824>>2]>>0){H[a+5824>>2]=d}f=3;h:{if(!h){break h}c=H[a>>2];f=H[c+4>>2];i:{if(!(f|!(b&-5))){f=1;if(H[a+92>>2]==(d|0)){break h}g=H[a+60>>2]+(d^-1)|0;f=0;break i}g=H[a+60>>2]+(d^-1)|0;if(g>>>0>=f>>>0){break i}e=H[a+92>>2];h=H[a+44>>2];if((e|0)<(h|0)){break i}d=d-h|0;H[a+108>>2]=d;H[a+92>>2]=e-h;c=H[a+56>>2];Ob(c,c+h|0,d);c=H[a+5808>>2];if(c>>>0<=1){H[a+5808>>2]=c+1}g=H[a+44>>2]+g|0;c=H[a>>2];f=H[c+4>>2]}h=f>>>0>g>>>0?g:f;j:{if(!h){d=H[a+108>>2];break j}e=H[a+108>>2];d=H[a+56>>2];H[c+4>>2]=f-h;d=Ob(d+e|0,H[c>>2],h);k:{l:{switch(H[H[c+28>>2]+24>>2]-1|0){case 0:o=c,p=Yg(H[c+48>>2],d,h),H[o+48>>2]=p;break k;case 1:break l;default:break k}}o=c,p=yd(H[c+48>>2],d,h),H[o+48>>2]=p}H[c>>2]=h+H[c>>2];H[c+8>>2]=h+H[c+8>>2];d=h+H[a+108>>2]|0;H[a+108>>2]=d}if(K[a+5824>>2]>>0){H[a+5824>>2]=d}e=H[a+92>>2];h=d-e|0;c=H[a+12>>2]-(H[a+5820>>2]+42>>3)|0;g=c>>>0<65535?c:65535;c=H[a+44>>2];if(h>>>0<(c>>>0>g>>>0?g:c)>>>0){f=0;if(!b|!((b|0)==4|(d|0)!=(e|0))|(H[H[a>>2]+4>>2]|g>>>0>>0)){break h}}c=0;c=(b|0)==4?!H[H[a>>2]+4>>2]&g>>>0>=h>>>0:c;b=g>>>0>h>>>0?h:g;An(a,e+H[a+56>>2]|0,b,c);H[a+92>>2]=b+H[a+92>>2];e=H[a>>2];d=H[e+28>>2];ue(d);b=H[d+20>>2];a=H[e+16>>2];b=a>>>0>b>>>0?b:a;m:{if(!b){break m}Ob(H[e+12>>2],H[d+16>>2],b);H[e+12>>2]=b+H[e+12>>2];H[d+16>>2]=b+H[d+16>>2];H[e+20>>2]=b+H[e+20>>2];H[e+16>>2]=H[e+16>>2]-b;a=H[d+20>>2];H[d+20>>2]=a-b;if((a|0)!=(b|0)){break m}H[d+16>>2]=H[d+8>>2]}f=c?2:0}return f|0}function Xt(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;g=xb-16|0;xb=g;H[b+12>>2]=0;H[b>>2]=c;h=c+d|0;H[b+8>>2]=h;zb[H[b+28>>2]](b);c=H[b>>2];a:{b:{if(h>>>0<=c>>>0){break b}k=a+132|0;m=a+164|0;n=a+168|0;o=a+464|0;while(1){c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{d=I[c|0];switch(d-99|0){case 1:break i;case 0:break k;case 2:break l;default:break j}}d=c+6|0;if((d|0)==(h|0)){break h}if(d>>>0>=h>>>0){break d}switch(I[c+5|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break h;default:break d}}m:{d=c+10|0;if((d|0)==(h|0)){break m}if(d>>>0>=h>>>0){break d}switch(I[c+9|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break m;default:break d}}if(gc(c,11709,9)){break d}break b}if((d|0)==70){break e}}if(d-48>>>0<=9){zb[H[b+32>>2]](b);e=1;l=c;if(!H[b+12>>2]){break c}break b}f=c+6|0;if(!((d|0)!=82|f>>>0>=h>>>0)){if(!e|I[c+1|0]!=68){break d}H[b>>2]=l;e=H[H[a+128>>2]+52>>2];d=H[b+8>>2];zb[H[b+28>>2]](b);n:{c=H[b>>2];o:{if(c>>>0>=d>>>0|I[c|0]-48>>>0>9){break o}c=zb[H[b+36>>2]](b)|0;zb[H[b+32>>2]](b);if((c|0)<0){break o}f=d;d=H[b>>2];if((c|0)<(f+(d^-1)|0)){break n}}c=3;if(e){break a}break f}H[b>>2]=(c+d|0)+1;e=0;if(!H[b+12>>2]){break c}c=3;break a}if(!((d|0)!=45|f>>>0>=h>>>0)){if(!e|I[c+1|0]!=124){break d}H[b>>2]=l;e=H[H[a+128>>2]+52>>2];d=H[b+8>>2];zb[H[b+28>>2]](b);p:{c=H[b>>2];q:{if(c>>>0>=d>>>0|I[c|0]-48>>>0>9){break q}c=zb[H[b+36>>2]](b)|0;zb[H[b+32>>2]](b);if((c|0)<0){break q}f=d;d=H[b>>2];if((c|0)<(f+(d^-1)|0)){break p}}c=3;if(!e){break f}break a}H[b>>2]=(c+d|0)+1;e=0;if(!H[b+12>>2]){break c}c=3;break a}if((d|0)!=47|c+2>>>0>=h>>>0){break d}i=c+1|0;H[b>>2]=i;zb[H[b+32>>2]](b);if(H[b+12>>2]){break b}e=0;c=H[b>>2];if((c|0)==(i|0)){break c}j=c-i|0;if(j>>>0>21|c>>>0>=h>>>0){break c}p=I[i|0];c=98480;f=12002;while(1){d=c;r:{if(I[f|0]!=(p|0)){break r}if((ac(f)|0)!=(j|0)){break r}if(md(i,f,j)){break r}c=H[b+376>>2];if(!(H[d+32>>2]&(c&1?2:1))){break c}if(c&2){if(fc(f,11880)){break c}}f=H[a+532>>2];if(f){c=H[f>>2]?f:0}else{c=0}i=H[d+8>>2];s:{if((i|0)==11){zb[H[d+12>>2]](a,b);c=H[b+12>>2];break s}t:{u:{v:{w:{x:{y:{z:{switch(H[d+4>>2]-2|0){case 1:H[g+12>>2]=k;if(c){break y}e=g+12|0;break u;case 2:H[g+12>>2]=n;e=g+12|0;if(!c){break u}e=c+212|0;break x;case 3:H[g+12>>2]=o;e=g+12|0;if(!c){break u}e=c+284|0;break x;case 4:H[g+12>>2]=b;e=g+12|0;break u;case 5:H[g+12>>2]=a;e=g+12|0;break u;case 6:H[g+12>>2]=f;e=g+12|0;c=0;break w;case 0:break v;default:break z}}H[g+12>>2]=k;e=g+12|0;break u}e=c+144|0}f=H[e>>2];c=H[c>>2]}if(f){break t}break g}H[g+12>>2]=m;e=g+12|0}c=0}if(i-9>>>0<=1){c=zb[H[b+68>>2]](b,d,e,c,0)|0;break s}c=zb[H[b+64>>2]](b,d,e,c,0)|0}H[b+12>>2]=c;if(!c){e=0;break c}if((c&255)==162){break g}break a}c=d+36|0;f=H[d+36>>2];if(f){continue}break}break c}if(!gc(c,11600,5)){break b}break d}e=0;H[b+12>>2]=0;break c}H[b+12>>2]=3;break a}A:{d=c+14|0;if((d|0)==(h|0)){break A}if(d>>>0>=h>>>0){break d}switch(I[c+13|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break A;default:break d}}if(gc(c,11768,13)){break d}d=H[b+376>>2];if(d&1){H[b+376>>2]=d|2}H[b>>2]=c+13;break c}zb[H[b+32>>2]](b);e=0;if(H[b+12>>2]){break b}}zb[H[b+28>>2]](b);c=H[b>>2];if(h>>>0>c>>>0){continue}break}}c=H[b+12>>2]}xb=g+16|0;return c}function Pt(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;g=xb-1328|0;xb=g;j=H[a+4>>2];l=H[j+328>>2];H[g+1324>>2]=0;o=H[j+136>>2];q=H[j+100>>2];m=H[H[j+128>>2]+52>>2];a:{b:{if(m){c=zb[H[H[m>>2]>>2]](H[m+4>>2],b,g+664|0)|0;H[g+1324>>2]=c;if(c){break a}c=0;l=H[j+288>>2];c:{if(!(l&255)){break c}k=l&3;f=H[g+664>>2];if((l-1&255)>>>0<3){d=0}else{n=l&252;while(1){e=f;f=e+4|0;d=d+4|0;if((n|0)!=(d&255)){continue}break}d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24)}if(!k){break c}while(1){d=I[f|0]|d<<8;f=f+1|0;i=i+1|0;if((k|0)!=(i&255)){continue}break}}f=H[g+668>>2];d:{if(!f){f=0;break d}c=f-l|0;f=pc(q,c,g+1324|0);if(H[g+1324>>2]){break d}Ob(f,H[g+664>>2]+H[j+288>>2]|0,c)}zb[H[H[m>>2]+4>>2]](H[m+4>>2],g+664|0);if(!H[g+1324>>2]){break b}break a}c=H[j+292>>2]+H[j+288>>2]|0;k=bc(l,(H[j+284>>2]+H[j+308>>2]|0)+N(c,b)|0);H[g+1324>>2]=k;if(k){break a}c=Jc(l,c<<1);H[g+1324>>2]=c;if(c){break a}c=H[l+32>>2];n=H[j+288>>2];if(n&255){f=c;k=n-1&255;if(k>>>0>=3){p=n&252;while(1){h=f;f=f+4|0;d=d+4|0;if((p|0)!=(d&255)){continue}break}d=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24)}h=n&3;if(h){while(1){d=I[f|0]|d<<8;f=f+1|0;e=e+1|0;if((h|0)!=(e&255)){continue}break}}c=(c+k|0)+1|0}e=0;k=H[j+292>>2];e:{if(!(k&255)){break e}f=c;r=k-1|0;s=r&255;if(s>>>0>=3){p=k&252;h=0;while(1){i=f;f=f+4|0;h=h+4|0;if((p|0)!=(h&255)){continue}break}h=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);i=h<<24|h<<8&16711680|(h>>>8&65280|h>>>24)}h=k&3;if(h){while(1){i=I[f|0]|i<<8;f=f+1|0;e=e+1|0;if((h|0)!=(e&255)){continue}break}}p=k&3;f=((c+s|0)+n|0)+1|0;h=0;if((r&255)>>>0<3){e=0}else{k=k&252;e=0;while(1){c=f;f=c+4|0;e=e+4|0;if((k|0)!=(e&255)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}if(!p){break e}while(1){e=I[f|0]|e<<8;f=f+1|0;h=h+1|0;if((p|0)!=(h&255)){continue}break}}wc(l);if(!(!(K[l+4>>2]>>0|K[j+300>>2]<=d>>>0)&e>>>0>=i>>>0)){H[g+1324>>2]=9;h=0;f=0;break a}h=0;f=0;if((e|0)==(i|0)){break a}c=e-i|0;f=pc(q,c,g+1324|0);if(H[g+1324>>2]){break a}e=Xm(l,H[j+308>>2]+i|0,f,c);H[g+1324>>2]=e;if(e){break a}}e=H[j+316>>2]+(d<<3)|0;H[a+1364>>2]=H[e>>2];e=H[e+4>>2];H[a+1372>>2]=0;H[a+1376>>2]=0;H[a+1368>>2]=e;d=H[j+304>>2]+N(d,252)|0;e=H[d+220>>2];H[a+1380>>2]=H[d+216>>2];H[a+1384>>2]=e;i=H[d+228>>2];e=a+1388|0;H[e>>2]=H[d+224>>2];H[e+4>>2]=i;e=H[d+236>>2];H[a+1396>>2]=H[d+232>>2];H[a+1400>>2]=e;i=H[d+4>>2];H[a+1360>>2]=i;e=(i|0)>=0?i:0;if(e>>>0<=c>>>0){if((i|0)>=0){zb[H[o+16>>2]](f,c,4330)}f:{if(I[a+70|0]){d=zb[H[H[o+12>>2]+8>>2]](a,f+e|0,c-e|0)|0;H[g+1324>>2]=d;h=0;break f}h=g+664|0;zb[H[o+24>>2]](h,a,1);i=d;d=g+8|0;zb[H[o+28>>2]](j,i,d);H[g+1200>>2]=d;i=f+e|0;c=c-e|0;d=zb[H[H[o+12>>2]+12>>2]](h,i,c)|0;H[g+1324>>2]=d;h=0;if((d&255)!=164){break f}F[H[a+8>>2]+160|0]=0;d=zb[H[H[o+12>>2]+12>>2]](g+664|0,i,c)|0;H[g+1324>>2]=d;h=1}if(!H[H[m>>2]+8>>2]|(!m|d)){break a}c=H[a+32>>2];H[g+668>>2]=0;H[g+664>>2]=((c+(c>>31)|0)+32768&-65536)>>16;c=H[a+40>>2];H[g+672>>2]=(((c>>31)+c|0)+32768&-65536)>>16;c=H[a+44>>2];H[g+676>>2]=(((c>>31)+c|0)+32768&-65536)>>16;t=g,u=zb[H[H[m>>2]+8>>2]](H[m+4>>2],b,0,g+664|0)|0,H[t+1324>>2]=u;H[a+32>>2]=H[g+664>>2]<<16;H[a+40>>2]=H[g+672>>2]<<16;H[a+44>>2]=H[g+676>>2]<<16;break a}H[g+1324>>2]=9}if(f){zb[H[q+8>>2]](q,f)}F[H[a+8>>2]+161|0]=h;xb=g+1328|0;return H[g+1324>>2]}function T6(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=xb-96|0;xb=f;H[f+88>>2]=e;H[f+92>>2]=d;g=H[a+8>>2];k=zb[H[H[g>>2]+52>>2]](g)|0;g=H[a+8>>2];q=0,r=zb[H[H[g>>2]+24>>2]](g)|0,p=H[H[0]+24>>2],zb[p](q|0,r|0);zb[H[H[k>>2]+68>>2]](k,0);zb[H[H[0]+464>>2]](0,k);if((e|0)==-1){zb[H[H[a>>2]+32>>2]](a,f+24|0,f+8|0,f+80|0,f+72|0);h=M[f+80>>3];if(h<0){h=-h;M[f+80>>3]=h}j=M[f+72>>3];j=j<0?-j:j;d=H[f+92>>2];if((d|0)<0){m=h*96/25.4;a:{if(P(m)<2147483648){d=~~m;break a}d=-2147483648}H[f+92>>2]=d}h=j*+(d|0)/h;b:{if(P(h)<2147483648){e=~~h;break b}e=-2147483648}H[f+88>>2]=e}h=+(d|0);M[f+80>>3]=h*25.4/96;j=+(e|0);M[f+72>>3]=j*25.4/96;c:{d:{e:{f:{g=Tb(N(d,e)<<2);g:{if(!g){m=2e3/+(((d|0)>(e|0)?d:e)|0);j=m*j;h:{if(P(j)<2147483648){e=~~j;break h}e=-2147483648}H[f+88>>2]=e;h=m*h;i:{if(P(h)<2147483648){d=~~h;break i}d=-2147483648}H[f+92>>2]=d;M[f+80>>3]=+(d|0)*25.4/96;M[f+72>>3]=+(e|0)*25.4/96;g=Tb(N(d,e)<<2);if(!g){break g}}l=N(d,e);j:{if((l|0)<=0){break j}e=0;d=0;if(l-1>>>0>=7){o=l&-8;while(1){i=d<<2;H[i+g>>2]=16777215;H[(i|4)+g>>2]=16777215;H[(i|8)+g>>2]=16777215;H[(i|12)+g>>2]=16777215;H[(i|16)+g>>2]=16777215;H[(i|20)+g>>2]=16777215;H[(i|24)+g>>2]=16777215;H[(i|28)+g>>2]=16777215;d=d+8|0;n=n+8|0;if((n|0)!=(o|0)){continue}break}}i=l&7;if(!i){break j}while(1){H[(d<<2)+g>>2]=16777215;d=d+1|0;e=e+1|0;if((i|0)!=(e|0)){continue}break}}d=f+24|0;H[d>>2]=0;H[d+4>>2]=0;F[d+40|0]=0;H[d+32>>2]=0;H[d+36>>2]=-1074790400;F[d+21|0]=0;F[d+22|0]=0;F[d+23|0]=0;F[d+24|0]=0;F[d+25|0]=0;F[d+26|0]=0;F[d+27|0]=0;F[d+28|0]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[197455]=0;H[d+16>>2]=g;e=H[197455];H[197455]=0;if((e|0)==1){break d}H[197455]=0;H[d+4>>2]=H[f+92>>2];e=H[197455];H[197455]=0;if((e|0)==1){break d}H[197455]=0;H[d+8>>2]=H[f+88>>2];e=H[197455];H[197455]=0;if((e|0)==1){break d}H[197455]=0;H[f+8>>2]=0-(H[f+92>>2]<<2);H[d+12>>2]=H[f+8>>2];e=H[197455];H[197455]=0;if((e|0)==1){break f}e=H[H[0]+492>>2];H[197455]=0;ba(e|0,0,d|0);e=H[197455];H[197455]=0;if((e|0)==1){break d}e=H[H[0]+484>>2];H[197455]=0;ba(e|0,0,0);e=H[197455];H[197455]=0;if((e|0)==1){break d}e=H[H[0]+36>>2];H[197455]=0;da(e|0,0,f+80|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break d}e=H[H[0]+28>>2];H[197455]=0;da(e|0,0,f+72|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break d}e=H[H[a>>2]+24>>2];H[197455]=0;ub(e|0,a|0,0,0,0,+M[f+80>>3],+M[f+72>>3])|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}k:{l:{m:{a=ad(b);if(a>>>0>=1073741808){H[197455]=0;ia(1640,f+8|0);a=H[197455];H[197455]=0;if((a|0)==1){break m}X()}n:{o:{if(a>>>0>=2){H[197455]=0;i=a+4&-4;e=aa(899,i<<2)|0;l=H[197455];H[197455]=0;if((l|0)==1){break m}H[f+8>>2]=e;H[f+12>>2]=a;H[f+16>>2]=i|-2147483648;break o}F[f+19|0]=a;e=f+8|0;if(!a){break n}}H[197455]=0;Mb(e,b,a);b=H[197455];H[197455]=0;if((b|0)==1){break e}}H[(a<<2)+e>>2]=0;H[197455]=0;ca(1641,d|0,f+8|0,c|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break l}if(F[f+19|0]<0){Kb(H[f+8>>2])}H[197455]=0;H[d+16>>2]=0;a=H[197455];H[197455]=0;if((a|0)==1){break d}if(!k){break k}a=H[H[k>>2]+12>>2];H[197455]=0;aa(a|0,k|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break k}break d}g=$()|0;_()|0;break c}g=$()|0;_()|0;if(F[f+19|0]>=0){break c}Kb(H[f+8>>2]);break c}a=H[H[0]+12>>2];H[197455]=0;aa(a|0,0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}Kb(g);id(d)}xb=f+96|0;return}g=$()|0;_()|0;break c}ha(0)|0;_()|0;Zb();X()}g=$()|0;_()|0}id(d);ea(g|0);X()}function O0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-128|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{b=H[c>>2];e=H[c+4>>2];i:{if((b|0)==(e|0)){break i}H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{while(1){c=G[b>>1];H[197455]=0;fa(1756,d- -64|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break u}H[197455]=0;ba(1650,d- -64|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break t}H[d+88>>2]=H[d+72>>2];H[d+72>>2]=0;c=H[d+68>>2];H[d+80>>2]=H[d+64>>2];H[d+84>>2]=c;H[d+64>>2]=0;H[d+68>>2]=0;c=G[b+2>>1];H[197455]=0;fa(1756,d+48|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break s}H[197455]=0;c=I[d+59|0];f=c<<24>>24<0;c=ca(1759,d+80|0,(f?H[d+48>>2]:d+48|0)|0,(f?H[d+52>>2]:c)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break r}H[d+104>>2]=H[c+8>>2];f=H[c+4>>2];H[d+96>>2]=H[c>>2];H[d+100>>2]=f;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+96|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break q}H[d+24>>2]=H[d+104>>2];H[d+104>>2]=0;c=H[d+100>>2];f=H[d+96>>2];H[d+16>>2]=f;H[d+20>>2]=c;H[d+96>>2]=0;H[d+100>>2]=0;H[197455]=0;g=f;c=F[d+27|0];f=(c|0)<0;ca(1759,d+112|0,(f?g:d+16|0)|0,(f?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break p}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}b=b+4|0;if((e|0)!=(b|0)){continue}break}b=F[d+123|0];if((b|0)>=0){break k}b=H[d+116>>2]-1|0;H[d+116>>2]=b;b=H[d+112>>2]+(b<<2)|0;break j}b=$()|0;_()|0;break b}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;if(F[d+27|0]>=0){break o}Kb(H[d+16>>2])}if(F[d+107|0]>=0){break n}Kb(H[d+96>>2])}if(F[d+59|0]>=0){break m}Kb(H[d+48>>2])}if(F[d+91|0]>=0){break l}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break b}Kb(H[d+64>>2]);break b}b=(b&255)-1|0;F[d+123|0]=b;b=(d+112|0)+(b<<2)|0}H[b>>2]=0;H[197455]=0;b=ca(1775,d+16|0,409148,d+112|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break h}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+96|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ba(1771,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+16>>2]=b;H[d+20>>2]=8;H[d+24>>2]=-2147483636;H[197455]=0;Mb(b,409676,8);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+32>>2]=0;F[d+91|0]=0;H[197455]=0;H[d+80>>2]=0;ka(1767,a|0,d+16|0,e|0,d+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){b=H[e+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+123|0]>=0){break i}Kb(H[d+112>>2])}xb=d+128|0;return}b=$()|0;_()|0;break b}b=$()|0;_()|0;Vb(d+16|0);break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]>=0){break c}Kb(H[d+16>>2])}yc(e)}if(F[d+123|0]<0){Kb(H[d+112>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function aea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,J=0,K=0,L=0,M=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,_=0,$=0,aa=0,ba=0,ca=0;b=H[b+84>>2];n=N(H[b+108>>2],G[c+54>>1]);g=N(H[b+44>>2],G[c+22>>1]);h=N(n+g|0,6810);i=N(H[b+100>>2],G[c+50>>1]);f=N(H[b+36>>2],G[c+18>>1]);j=N(i+f|0,6810);O=h+N(g,4209)|0;o=N(G[c+6>>1],H[b+12>>2])<<13|1024;g=N(H[b+76>>2],G[c+38>>1]);k=N(H[b+140>>2],G[c+70>>1]);p=g-k|0;r=o+N(p,2896)|0;s=N(g+k|0,6476);P=r+s|0;l=O+P>>11;Q=j+N(f,4209)|0;t=N(G[c+2>>1],H[b+4>>2])<<13|1024;g=N(H[b+68>>2],G[c+34>>1]);f=N(H[b+132>>2],G[c+66>>1]);u=g-f|0;v=t+N(u,2896)|0;w=N(f+g|0,6476);R=v+w|0;m=Q+R>>11;f=N(l+m|0,6810);x=N(H[b+96>>2],G[c+48>>1]);y=N(H[b+32>>2],G[c+16>>1]);k=N(x+y|0,6810);g=H[d>>2]+e|0;a=H[a+332>>2]+128|0;m=f+N(m,4209)|0;z=N(H[b+104>>2],G[c+52>>1]);A=N(H[b+40>>2],G[c+20>>1]);B=N(z+A|0,6810);A=B+N(A,4209)|0;S=N(G[c+4>>1],H[b+8>>2])<<13|1024;q=N(H[b+72>>2],G[c+36>>1]);C=N(H[b+136>>2],G[c+68>>1]);T=q-C|0;U=S+N(T,2896)|0;q=N(q+C|0,6476);C=U+q|0;D=A+C>>11;V=N(G[c+8>>1],H[b+16>>2])<<13|1024;E=N(H[b+80>>2],G[c+40>>1]);J=N(H[b+144>>2],G[c+72>>1]);W=E-J|0;X=V+N(W,2896)|0;E=N(E+J|0,6476);J=X+E|0;Y=N(H[b+112>>2],G[c+56>>1]);K=N(H[b+48>>2],G[c+24>>1]);Z=N(Y+K|0,6810);K=Z+N(K,4209)|0;L=J+K>>11;_=D-L|0;y=k+N(y,4209)|0;$=N(G[c>>1],H[b>>2])<<13|1024;M=N(H[b+64>>2],G[c+32>>1]);b=N(H[b+128>>2],G[c+64>>1]);aa=M-b|0;ba=$+N(aa,2896)|0;M=N(b+M|0,6476);ca=ba+M|0;b=(y+ca<<2)+131072&-8192;c=N(_,2896)+b|0;D=N(D+L|0,6476);L=c+D|0;F[g|0]=I[a+(m+L>>>18&1023)|0];F[g+4|0]=I[a+(L-m>>>18&1023)|0];f=f+N(l,-17828)|0;c=c-D|0;F[g+1|0]=I[a+(f+c>>>18&1023)|0];F[g+3|0]=I[a+(c-f>>>18&1023)|0];F[g+2|0]=I[a+(b+N(_,268423872)>>>18&1023)|0];g=h+N(n,-17828)|0;h=r-s|0;f=g+h>>11;j=j+N(i,-17828)|0;n=v-w|0;i=j+n>>11;c=N(f+i|0,6810);b=H[d+4>>2]+e|0;i=c+N(i,4209)|0;r=N(z,-17828)+B|0;s=U-q|0;l=r+s>>11;v=N(Y,-17828)+Z|0;w=X-E|0;m=v+w>>11;z=l-m|0;k=k+N(x,-17828)|0;x=ba-M|0;B=(k+x<<2)+131072&-8192;q=N(z,2896)+B|0;l=N(l+m|0,6476);m=q+l|0;F[b|0]=I[a+(i+m>>>18&1023)|0];F[b+4|0]=I[a+(m-i>>>18&1023)|0];c=c+N(f,-17828)|0;f=q-l|0;F[b+1|0]=I[a+(c+f>>>18&1023)|0];F[b+3|0]=I[a+(f-c>>>18&1023)|0];F[b+2|0]=I[a+(B+N(z,268423872)>>>18&1023)|0];f=o+N(p,-11584)>>11;i=t+N(u,-11584)>>11;c=N(f+i|0,6810);b=H[d+8>>2]+e|0;i=c+N(i,4209)|0;u=(N(aa,1073730240)+$<<2)+131072&-8192;p=N(T,-11584)+S>>11;o=N(W,-11584)+V>>11;l=p-o|0;t=u+N(l,2896)|0;p=N(p+o|0,6476);o=t+p|0;F[b|0]=I[a+(i+o>>>18&1023)|0];F[b+4|0]=I[a+(o-i>>>18&1023)|0];c=c+N(f,-17828)|0;f=t-p|0;F[b+1|0]=I[a+(c+f>>>18&1023)|0];F[b+3|0]=I[a+(f-c>>>18&1023)|0];F[b+2|0]=I[a+(u+N(l,268423872)>>>18&1023)|0];g=h-g>>11;h=n-j>>11;c=N(g+h|0,6810);b=H[d+12>>2]+e|0;h=c+N(h,4209)|0;k=(x-k<<2)+131072&-8192;j=s-r>>11;f=w-v>>11;n=j-f|0;i=k+N(n,2896)|0;j=N(f+j|0,6476);f=i+j|0;F[b|0]=I[a+(h+f>>>18&1023)|0];F[b+4|0]=I[a+(f-h>>>18&1023)|0];c=c+N(g,-17828)|0;g=i-j|0;F[b+1|0]=I[a+(c+g>>>18&1023)|0];F[b+3|0]=I[a+(g-c>>>18&1023)|0];F[b+2|0]=I[a+(k+N(n,268423872)>>>18&1023)|0];g=P-O>>11;h=R-Q>>11;c=N(g+h|0,6810);b=H[d+16>>2]+e|0;d=c+N(h,4209)|0;f=(ca-y<<2)+131072&-8192;e=C-A>>11;h=J-K>>11;j=e-h|0;k=f+N(j,2896)|0;e=N(e+h|0,6476);h=k+e|0;F[b|0]=I[a+(d+h>>>18&1023)|0];F[b+4|0]=I[a+(h-d>>>18&1023)|0];c=c+N(g,-17828)|0;d=k-e|0;F[b+1|0]=I[a+(c+d>>>18&1023)|0];F[b+3|0]=I[a+(d-c>>>18&1023)|0];F[b+2|0]=I[a+(f+N(j,268423872)>>>18&1023)|0]}function Bla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=O(0),j=0,k=O(0),l=0,m=0;d=H[a>>2];h=d+10|0;e=H[a+4>>2];d=I[d|0]|I[d+1|0]<<8;g=(d<<8|d>>>8)<<16>>16;m=g+1|0;d=h+(m<<1)|0;a:{if(e>>>0>d>>>0){break a}e=e+H[a+8>>2]|0;if(e>>>0>>0|e-d>>>0<2){break a}d=(h+(g<<1)|0)-2|0;d=I[d|0]|I[d+1|0]<<8;j=(d<<8|d>>>8)&65535;d=0;e=H[b>>2];b:{if((e|0)<0){break b}l=j+1|0;if(e>>>0<=j>>>0){f=e;while(1){f=((f>>>1|0)+f|0)+8|0;if(l>>>0>=f>>>0){continue}break}c:{if(!(e>>>0>f>>>0|f>>>0>268435454)){e=tc(H[b+8>>2],f<<4);if(e){break c}}H[b>>2]=-1;break b}H[b>>2]=f;H[b+8>>2]=e}f=H[b+4>>2];if(f>>>0<=j>>>0){Nb(H[b+8>>2]+(f<<4)|0,0,l-f<<4)}H[b+4>>2]=l}f=H[b+4>>2];if(f){d=f;e=0;while(1){d:{if(d>>>0<=e>>>0){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=H[b+4>>2];f=784992;break d}f=H[b+8>>2]+(e<<4)|0}H[f+4>>2]=0;H[f+8>>2]=0;F[f|0]=0;F[f+12|0]=0;e=e+1|0;if(d>>>0>e>>>0){continue}break}}f=1;if(c){break a}e:{if((g|0)<=0){break e}e=0;while(1){c=h+(e<<1)|0;c=I[c|0]|I[c+1|0]<<8;c=(c<<8|c>>>8)&65535;f:{if(c>>>0>=d>>>0){c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break f}c=H[b+8>>2]+(c<<4)|0}F[c+12|0]=1;e=e+1|0;if((g|0)==(e|0)){break e}d=H[b+4>>2];continue}}c=h+(g<<1)|0;c=I[c|0]|I[c+1|0]<<8;c=(h+(m<<1)|0)+((c<<8|c>>>8)&65535)|0;f=0;e=0;while(1){d=H[a+4>>2];if(d>>>0>c>>>0|d+H[a+8>>2]>>>0<=c>>>0){break a}h=I[c|0];d=c+1|0;g:{if(K[b+4>>2]<=e>>>0){g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;g=784992;break g}g=H[b+8>>2]+(e<<4)|0}F[g|0]=h;if(h&8){g=H[a+4>>2];if(g>>>0>d>>>0|d>>>0>=g+H[a+8>>2]>>>0){break a}d=c+2|0;c=I[c+1|0];h:{if(!c){break h}while(1){e=e+1|0;if(j>>>0>>0){break h}c=c-1|0;i:{if(K[b+4>>2]<=e>>>0){g=H[40911];H[196250]=H[40910];H[196251]=g;g=H[40909];H[196248]=H[40908];H[196249]=g;g=784992;break i}g=H[b+8>>2]+(e<<4)|0}F[g|0]=h;if(c){continue}break}}}c=d;e=e+1|0;if(j>>>0>=e>>>0){continue}break}d=H[b+4>>2];if(!d){return 1}e=0;while(1){j:{if(d>>>0<=e>>>0){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break j}d=H[b+8>>2]+(e<<4)|0}h=I[d|0];k:{if(h&2){d=H[a+4>>2];if(d>>>0>c>>>0|d+H[a+8>>2]>>>0<=c>>>0){break a}d=c+1|0;k=O(I[c|0]);if(h&16){i=O(i+k);c=d;break k}i=O(i-k);c=d;break k}if(h&16){break k}d=H[a+4>>2];if(d>>>0>c>>>0){break a}d=d+H[a+8>>2]|0;if(d>>>0>>0|d-c>>>0<2){break a}d=I[c|0]|I[c+1|0]<<8;i=O(i+O((d<<8|d>>>8)<<16>>16));c=c+2|0}d=H[b+4>>2];l:{if(d>>>0<=e>>>0){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=H[b+4>>2];h=784992;break l}h=H[b+8>>2]+(e<<4)|0}L[h+4>>2]=i;e=e+1|0;if(d>>>0>e>>>0){continue}break}if(!d){return 1}i=O(0);e=0;while(1){m:{if(d>>>0<=e>>>0){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break m}d=H[b+8>>2]+(e<<4)|0}h=I[d|0];n:{if(h&4){f=0;d=H[a+4>>2];if(d>>>0>c>>>0|d+H[a+8>>2]>>>0<=c>>>0){break a}d=c+1|0;k=O(I[c|0]);if(h&32){i=O(i+k);c=d;break n}i=O(i-k);c=d;break n}if(h&32){break n}f=0;d=H[a+4>>2];if(d>>>0>c>>>0){break a}d=d+H[a+8>>2]|0;if(d>>>0>>0|d-c>>>0<2){break a}d=I[c|0]|I[c+1|0]<<8;i=O(i+O((d<<8|d>>>8)<<16>>16));c=c+2|0}d=H[b+4>>2];o:{if(d>>>0<=e>>>0){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=H[b+4>>2];f=784992;break o}f=H[b+8>>2]+(e<<4)|0}L[f+8>>2]=i;f=1;e=e+1|0;if(d>>>0>e>>>0){continue}break}}return f|0}function _m(a,b){var c=0,d=0,e=0,f=0,g=0,h=O(0),i=0;d=xb-240|0;xb=d;g=rd(a,J[b>>1]);a:{b:{c:{c=H[b+4>>2];if(c>>>0>=2){d:{e:{switch(J[b+2>>1]-1|0){case 0:case 5:c=Md(a,c,1,291456);if(!c){break a}if(vq(a,b,c)){break b}Kb(c);break a;case 2:case 7:c=Md(a,c,2,291456);if(!c){break a}e=H[b+4>>2];if(e>>>0<=2){if(J[a+456>>1]==19789){f:{g:{switch(e-1|0){case 0:e=H[b+8>>2];break f;case 1:break g;default:break b}}e=H[b+8>>2];G[c+2>>1]=e}G[c>>1]=e>>>16;break b}h:{switch(e-1|0){case 1:break h;case 0:break d;default:break b}}e=H[b+8>>2];G[c+2>>1]=e>>>16;G[c>>1]=e;break b}if(re(a,b,c)){break b}e=0;Kb(c);break a;case 3:case 8:c=Md(a,c,4,291456);if(!c){break a}if(H[b+4>>2]==1){H[c>>2]=H[b+8>>2];break b}if(re(a,b,c)){break b}Kb(c);break a;case 4:case 9:c=Md(a,c,4,291456);if(!c){break a}if(qB(a,b,c)){break b}Kb(c);break a;case 10:c=Md(a,c,4,291456);if(!c){break a}if(H[b+4>>2]==1){L[c>>2]=L[b+8>>2];break b}if(re(a,b,c)){break b}Kb(c);break a;case 1:case 6:c=Md(a,c+1|0,1,291456);if(!c){break a}e=H[b+4>>2];if(e>>>0<=4){H[d+232>>2]=H[b+8>>2];f=d+232|0;if(I[a+12|0]&128){Hh(d+232|0);e=H[b+4>>2]}Kc(c,f,e);break c}if(re(a,b,c)){break c}e=0;Kb(c);break a;case 11:break e;default:break a}}c=Md(a,c,8,291456);if(!c){break a}if(re(a,b,c)){break b}Kb(c);break a}G[c>>1]=H[b+8>>2];break b}if(!c){c=H[a>>2];e=H[a+628>>2];a=H[rd(a,J[b>>1])+16>>2];b=H[b+4>>2];H[d+40>>2]=1;H[d+36>>2]=b;H[d+32>>2]=a;sc(e,c,283105,d+32|0);e=0;break a}i:{j:{k:{l:{m:{c=J[b+2>>1];switch(c-1|0){case 1:case 6:break i;case 11:break j;case 4:case 9:case 10:break k;case 3:case 8:break l;case 0:case 2:case 5:case 7:break m;default:break a}}n:{switch(H[g+8>>2]-4|0){case 0:case 5:break l;default:break n}}e=H[b+8>>2];o:{if(J[a+456>>1]==19789){f=c<<2;c=f+H[a+468>>2]|0;e=e>>>H[f+H[a+464>>2]>>2]|0;break o}c=H[a+468>>2]+(c<<2)|0}c=H[c>>2]&e;G[d+232>>1]=c;b=J[b>>1];if(I[g+15|0]){H[d+64>>2]=1;H[d+68>>2]=d+232;e=rc(a,b,d- -64|0);break a}H[d+48>>2]=c&65535;e=rc(a,b,d+48|0);break a}e=H[b+8>>2];p:{if(J[a+456>>1]==19789){f=c<<2;c=f+H[a+468>>2]|0;e=e>>>H[f+H[a+464>>2]>>2]|0;break p}c=H[a+468>>2]+(c<<2)|0}c=H[c>>2]&e;H[d+232>>2]=c;b=J[b>>1];if(I[g+15|0]){H[d+96>>2]=1;H[d+100>>2]=d+232;e=rc(a,b,d+96|0);break a}H[d+80>>2]=c;e=rc(a,b,d+80|0);break a}q:{if((c|0)==11){c=H[b+8>>2];if(J[a+456>>1]==19789){c=c>>>H[H[a+464>>2]+44>>2]|0}H[d+228>>2]=H[H[a+468>>2]+44>>2]&c;Kc(d+232|0,d+228|0,4);h=L[d+232>>2];break q}h=O(1);if(!re(a,b,d+232|0)){break q}c=H[d+232>>2];e=H[d+236>>2];if(e){if(J[b+2>>1]==5){h=O(O(c>>>0)/O(e>>>0));break q}h=O(O(c|0)/O(e|0));break q}e=H[a>>2];f=H[a+628>>2];i=H[rd(a,J[b>>1])+16>>2];H[d+148>>2]=c;H[d+144>>2]=i;Pb(f,e,288171,d+144|0)}L[d+224>>2]=h;b=J[b>>1];if(I[g+15|0]){H[d+128>>2]=1;H[d+132>>2]=d+224;e=rc(a,b,d+128|0);break a}M[d+112>>3]=h;e=rc(a,b,d+112|0);break a}if(!re(a,b,d+232|0)){break a}b=J[b>>1];r:{if(I[g+15|0]){H[d+176>>2]=1;H[d+180>>2]=d+232;a=rc(a,b,d+176|0);break r}M[d+160>>3]=M[d+232>>3];a=rc(a,b,d+160|0)}e=(a|0)!=0;break a}H[d+232>>2]=H[b+8>>2];e=d+228|0;f=d+232|0;if(I[a+12|0]&128){Hh(d+232|0);c=H[b+4>>2]}else{c=1}Kc(e,f,c);F[d+229|0]=0;b=J[b>>1];if(I[g+15|0]){H[d+208>>2]=1;H[d+212>>2]=d+228;e=rc(a,b,d+208|0);break a}H[d+192>>2]=d+228;e=rc(a,b,d+192|0);break a}F[H[b+4>>2]+c|0]=0}e=J[b>>1];if(I[g+15|0]){b=H[b+4>>2];H[d+20>>2]=c;H[d+16>>2]=b;e=rc(a,e,d+16|0);Kb(c);break a}H[d>>2]=c;e=rc(a,e,d);Kb(c)}xb=d+240|0;return e}function Ps(a){var b=0,c=0;a:{if(!a|!H[a>>2]){break a}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break a}H[a>>2]=-57005;b=H[a+8>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}b=H[a+208>>2];if(b){while(1){c=H[b+4>>2];Lr(H[b>>2]);Kb(b);b=c;if(b){continue}break}}b=H[a+52>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+56>>2];if(!(!b|(b|0)==163632)){Wb(b)}b:{c:{b=H[a+60>>2];if(!(!b|(b|0)==163632)){c=H[b+44>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+64>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+68>>2];if(!(!b|(b|0)==163632)){c=H[b+20>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}H[b+20>>2]=0;c=H[b+24>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+72>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+76>>2];if(!(!b|(b|0)==163632)){Kb(H[b+28>>2]);c=H[b>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}H[b>>2]=0;H[b+16>>2]=0;Kb(H[b+20>>2]);Kb(b)}b=H[a+80>>2];if(!(!b|(b|0)==163632)){c=H[b+8>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}H[b+8>>2]=0;H[b+16>>2]=0;Kb(H[b+20>>2]);Kb(b)}b=H[a+84>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+88>>2];if(!(!b|(b|0)==163632)){c=H[b>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+92>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+96>>2];if(!(!b|(b|0)==163632)){c=H[b+20>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}H[b+20>>2]=0;c=H[b+24>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+100>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+104>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+108>>2];if(!(!b|(b|0)==163632)){c=H[b+24>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+112>>2];if(!(!b|(b|0)==163632)){ol(b);Kb(b)}b=H[a+116>>2];if(!(!b|(b|0)==163632)){hs(b);Kb(b)}b=H[a+120>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+124>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+128>>2];if(!(!b|(b|0)==163632)){c=H[b>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+132>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+136>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+140>>2];if(!(!b|(b|0)==163632)){c=H[b>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}af(H[a+144>>2]);af(H[a+148>>2]);b=H[a+152>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+156>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+160>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+164>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+168>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+172>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+176>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+180>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+184>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+188>>2];if(!(!b|(b|0)==163632)){Wb(b)}b=H[a+192>>2];if(!(!b|(b|0)==163632)){c=H[b>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}H[b>>2]=0;c=H[b+4>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+196>>2];if(!(!b|(b|0)==163632)){c=H[b>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+200>>2];if(!(!b|(b|0)==163632)){c=H[b>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(b)}b=H[a+204>>2];if(!(!b|(b|0)==163632)){Wb(b)}break b}ha(0)|0;_()|0;Zb();X()}b=H[a+20>>2];if(b){zb[b|0](H[a+16>>2])}Kb(a)}}function Zba(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,u=0,v=0;Nb(a+160|0,0,96);d=a;while(1){f=H[(g<<2)+b>>2]+c|0;j=I[f+4|0];k=I[f+5|0];e=j-k|0;l=I[f|0];n=I[f+9|0];h=l-n|0;s=e+h|0;o=I[f+2|0];t=I[f+7|0];u=o-t|0;p=I[f+1|0];q=I[f+8|0];i=p-q|0;r=I[f+3|0];v=I[f+6|0];f=r-v|0;m=i-f|0;H[d+20>>2]=s-(u+m|0)<<2;j=j+k|0;k=l+n|0;l=j+k|0;r=r+v|0;p=p+q|0;q=r+p|0;o=o+t|0;H[d>>2]=(l+(q+o|0)<<2)-5120;n=o<<1;H[d+16>>2]=(N(q-n|0,-3580)+N(l-n|0,9373)|0)+1024>>11;k=k-j|0;l=p-r|0;j=N(k+l|0,6810)+1024|0;H[d+24>>2]=j+N(l,-17828)>>11;H[d+8>>2]=j+N(k,4209)>>11;j=(N(h-e|0,7791)+N(f+i|0,-4815)|0)+1024|0;k=u<<13;m=((m<<12)-k|0)+N(m+s|0,2531)|0;H[d+28>>2]=j-m>>11;H[d+12>>2]=j+m>>11;H[d+4>>2]=(((k+(N(h,11443)+N(i,10323)|0)|0)+N(f,5260)|0)+N(e,1812)|0)+1024>>11;d=d+32|0;g=g+1|0;if((g|0)!=5){continue}break}b=H[a+128>>2];c=H[a>>2];d=b+c|0;f=H[a+96>>2];g=H[a+32>>2];e=f+g|0;h=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+64>>2];i=N(d-(e<<2)|0,3707);H[a+128>>2]=h-i>>15;H[a+64>>2]=h+i>>15;H[a>>2]=N(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+96>>2]=b+N(d,-22820)>>15;H[a+32>>2]=b+N(c,5387)>>15;b=H[a+100>>2];c=H[a+36>>2];d=b+c|0;f=H[a+132>>2];g=H[a+4>>2];e=f+g|0;h=d+e|0;i=H[a+68>>2];H[a+4>>2]=N(h+i|0,10486)+16384>>15;d=N(e-d|0,8290)+16384|0;e=N(h-(i<<2)|0,3707);H[a+132>>2]=d-e>>15;H[a+68>>2]=d+e>>15;c=c-b|0;d=g-f|0;b=N(c+d|0,8716)+16384|0;H[a+36>>2]=b+N(d,5387)>>15;H[a+100>>2]=b+N(c,-22820)>>15;b=H[a+136>>2];c=H[a+8>>2];d=b+c|0;f=H[a+104>>2];g=H[a+40>>2];e=f+g|0;h=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+72>>2];i=N(d-(e<<2)|0,3707);H[a+136>>2]=h-i>>15;H[a+72>>2]=h+i>>15;H[a+8>>2]=N(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+104>>2]=b+N(d,-22820)>>15;H[a+40>>2]=b+N(c,5387)>>15;b=H[a+140>>2];c=H[a+12>>2];d=b+c|0;f=H[a+108>>2];g=H[a+44>>2];e=f+g|0;h=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+76>>2];i=N(d-(e<<2)|0,3707);H[a+140>>2]=h-i>>15;H[a+76>>2]=h+i>>15;H[a+12>>2]=N(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+108>>2]=b+N(d,-22820)>>15;H[a+44>>2]=b+N(c,5387)>>15;b=H[a+144>>2];c=H[a+16>>2];d=b+c|0;f=H[a+112>>2];g=H[a+48>>2];e=f+g|0;h=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+80>>2];i=N(d-(e<<2)|0,3707);H[a+144>>2]=h-i>>15;H[a+80>>2]=h+i>>15;H[a+16>>2]=N(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+112>>2]=b+N(d,-22820)>>15;H[a+48>>2]=b+N(c,5387)>>15;b=H[a+148>>2];c=H[a+20>>2];d=b+c|0;f=H[a+116>>2];g=H[a+52>>2];e=f+g|0;h=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+84>>2];i=N(d-(e<<2)|0,3707);H[a+148>>2]=h-i>>15;H[a+84>>2]=h+i>>15;H[a+20>>2]=N(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+116>>2]=b+N(d,-22820)>>15;H[a+52>>2]=b+N(c,5387)>>15;b=H[a+152>>2];c=H[a+24>>2];d=b+c|0;f=H[a+120>>2];g=H[a+56>>2];e=f+g|0;h=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+88>>2];i=N(d-(e<<2)|0,3707);H[a+152>>2]=h-i>>15;H[a+88>>2]=h+i>>15;H[a+24>>2]=N(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+120>>2]=b+N(d,-22820)>>15;H[a+56>>2]=b+N(c,5387)>>15;b=H[a+156>>2];c=H[a+28>>2];d=b+c|0;f=H[a+124>>2];g=H[a+60>>2];e=f+g|0;h=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+92>>2];i=N(d-(e<<2)|0,3707);H[a+156>>2]=h-i>>15;H[a+92>>2]=h+i>>15;H[a+28>>2]=N(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+124>>2]=b+N(d,-22820)>>15;H[a+60>>2]=b+N(c,5387)>>15}function xj(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=xb-16|0;xb=i;d=H[a+12>>2];a:{if(!(d&64)){f=xb+-64|0;xb=f;b:{c:{d:{if(!H[a+8>>2]){d=H[a+628>>2];H[f>>2]=H[a>>2];Pb(d,291520,273036,f);break d}d=H[a+12>>2];if(d>>>10&1){Pb(H[a+628>>2],H[a>>2],274132,0);d=0;break b}e=H[a+40>>2];if(!(e&2)){d=H[a+628>>2];H[f+16>>2]=H[a>>2];Pb(d,291520,274854,f+16|0);break d}e=e&1048576;if(J[a+98>>1]==1){if(e){break c}G[a+138>>1]=1;break c}if(e){break c}d=H[a+628>>2];H[f+48>>2]=H[a>>2];Pb(d,291520,275551,f+48|0)}d=0;break b}e:{if(!H[a+184>>2]){d=H[a+40>>2];f:{if(I[a+13|0]&4){e=J[a+98>>1];if(!(H[a+60>>2]|!(d&4))){break f}e=AB(a);break f}e=J[a+98>>1];if(!(H[a+60>>2]|!(d&131072))){break f}e=DB(a)}d=e;H[a+180>>2]=d;H[a+176>>2]=d;if(J[a+138>>1]==2){H[a+176>>2]=(d>>>0)/J[a+98>>1]}j=a,k=Tb(d<<2),H[j+184>>2]=k;e=Tb(H[a+180>>2]<<2);H[a+188>>2]=e;d=0;g=H[a+184>>2];if(!(!g|!e)){Id(g,0,H[a+180>>2]<<2);Id(H[a+188>>2],0,H[a+180>>2]<<2);H[a+40>>2]=H[a+40>>2]|50331648;d=1}if(!d){break e}d=H[a+12>>2]}if(d&1024){d=pg(a)}else{d=-1}H[a+508>>2]=d;j=a,k=Ve(a),H[j+588>>2]=k;H[a+12>>2]=H[a+12>>2]|64;d=1;break b}H[a+180>>2]=0;d=H[a+628>>2];e=H[a+12>>2];H[f+32>>2]=H[a>>2];H[f+36>>2]=e&1024?276416:276903;Pb(d,291520,275723,f+32|0);d=0}xb=f- -64|0;if(!d){f=-1;break a}d=H[a+12>>2]}if(!(H[a+596>>2]?d&16:0)){f=-1;d=xb-16|0;xb=d;e=H[a+596>>2];if(e){if(I[a+13|0]&2){Kb(e);H[a+12>>2]=H[a+12>>2]&-513}H[a+596>>2]=0}if(I[a+13|0]&4){e=H[a+508>>2]}else{e=Cj(a)}g=(e|0)>8192?e:8192;e=Tb(g);g:{if(!e){e=H[a+628>>2];H[d>>2]=H[a>>2];Pb(e,291552,277415,d);e=0;break g}h=H[a+12>>2]|512;H[a+608>>2]=0;H[a+600>>2]=g;H[a+596>>2]=e;H[a+604>>2]=e;H[a+12>>2]=h|16;e=1}xb=d+16|0;if(!e){break a}}e=J[a+138>>1];h:{i:{j:{d=H[a+60>>2];if(d>>>0<=c>>>0){if((e|0)!=2){break j}Pb(H[a+628>>2],H[a>>2],270313,0);f=-1;break a}d=c>>>0>=d>>>0;if((e|0)!=2){break i}e=J[a+98>>1];if(!e){b=H[a>>2];a=H[a+628>>2];H[i+4>>2]=e;H[i>>2]=0;Pb(a,b,271641,i);f=-1;break a}e=(c>>>0)/K[a+100>>2]|0;break h}H[a+60>>2]=c+1;d=c>>>0>=d>>>0}e=(c>>>0)/K[a+100>>2]|0}k:{if(e>>>0>2]){break k}g=xb-16|0;xb=g;f=Ij(H[a+184>>2],(H[a+180>>2]<<2)+4|0);h=Ij(H[a+188>>2],(H[a+180>>2]<<2)+4|0);l:{if(!(h?f:0)){if(f){Kb(f)}if(h){Kb(h)}H[a+180>>2]=0;f=H[a+628>>2];H[g>>2]=H[a>>2];Pb(f,291520,277945,g);f=0;break l}H[a+188>>2]=h;H[a+184>>2]=f;Id(f+(H[a+180>>2]<<2)|0,0,4);Id(H[a+188>>2]+(H[a+180>>2]<<2)|0,0,4);H[a+180>>2]=H[a+180>>2]+1;f=1}xb=g+16|0;if(f){break k}f=-1;break a}if((e|0)!=H[a+480>>2]){f=-1;g=0;h=H[a+12>>2];m:{if(!(h&64)){break m}if(h&4096){H[a+12>>2]=h&-4097;if(!(zb[H[a+536>>2]](a)|0)){break m}}g=Uc(a)}if(!g){break a}H[a+480>>2]=e;g=H[a+176>>2];n:{if(!(e>>>0>=g>>>0&d)){d=H[a+100>>2];break n}g=0;h=H[a+60>>2];d=H[a+100>>2];if(h>>>0<0-d>>>0){g=((d+h|0)-1>>>0)/(d>>>0)|0}H[a+176>>2]=g}H[a+472>>2]=N((e>>>0)%(g>>>0)|0,d);if(!(I[a+12|0]&32)){if(!(zb[H[a+524>>2]](a)|0)){break a}H[a+12>>2]=H[a+12>>2]|32}H[a+608>>2]=0;H[a+604>>2]=H[a+596>>2];d=H[a+188>>2]+(e<<2)|0;if(H[d>>2]){H[d>>2]=0;H[a+484>>2]=0}if(!(zb[H[a+532>>2]](a,0)|0)){break a}H[a+12>>2]=H[a+12>>2]|4096}f=H[a+472>>2];if((f|0)!=(c|0)){if(c>>>0>>0){H[a+604>>2]=H[a+596>>2];f=N(H[a+100>>2],(e>>>0)%K[a+176>>2]|0);H[a+472>>2]=f}if(!(zb[H[a+568>>2]](a,c-f|0)|0)){f=-1;break a}H[a+472>>2]=c}zb[H[a+652>>2]](a,b,H[a+588>>2]);f=zb[H[a+544>>2]](a,b,H[a+588>>2],0)|0;H[a+472>>2]=c+1}xb=i+16|0;return f}function eE(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{d:{e:{if(!(!f|!b)){l=oc(f,16);if(l){break e}l=0;break c}j=H[d+4>>2];H[a>>2]=H[d>>2];H[a+4>>2]=j;H[a+16>>2]=H[d+16>>2];j=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=j;H[a+24>>2]=f;H[a+20>>2]=b?0:e;break d}b=H[d+4>>2];H[a>>2]=H[d>>2];H[a+4>>2]=b;H[a+16>>2]=H[d+16>>2];b=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=b;H[a+24>>2]=f;H[a+20>>2]=l;j=f&1;e=Ob(l,e,f<<4);d=H[e+8>>2];b=H[e+12>>2];f:{if((f|0)==1){f=b;break f}k=f&-2;while(1){if(d){H[e+8>>2]=1}if((b|0)!=-1){H[e+12>>2]=2}if(d){H[e+8>>2]=1;d=1}else{d=0}f=-1;if((b|0)!=-1){H[e+12>>2]=2;f=2}b=f;m=m+2|0;if((k|0)!=(m|0)){continue}break}}if(!j){break d}if(d){H[e+8>>2]=1}if((f|0)==-1){break d}H[e+12>>2]=2}H[a+36>>2]=0;H[a+40>>2]=0;IF(c,1196643650,g,h,a+28|0);IF(c,1196445523,g,h,a+32|0);if(i){b=H[i>>2];if(!b){break c}d=c+40|0;e=c+44|0;while(1){c=i;g:{if(!fc(b,105020)){g=H[d>>2];h:{if(g){break h}f=d-4|0;while(1){if(!H[f>>2]){g=0;break h}g=1;b=H[d>>2];H[d>>2]=b?b:1;if(!b){break h}g=H[d>>2];if(!g){continue}break}}if(!g){break g}break b}if(fc(b,105334)){break g}g=H[e>>2];i:{if(g){break i}f=e-8|0;while(1){if(!H[f>>2]){g=0;break i}g=1;b=H[e>>2];H[e>>2]=b?b:1;if(!b){break i}g=H[e>>2];if(!g){continue}break}}if(!g){break g}break a}i=c+4|0;b=H[c+4>>2];if(b){continue}break}break c}d=H[196246];j:{if(d){break j}while(1){d=0;e=0;g=xb-32|0;xb=g;h=kg(105159);k:{if(!h|!I[h|0]){break k}f=oc(1,40);if(!f){break k}b=H[40905];H[f+32>>2]=H[40904];H[f+36>>2]=b;b=H[40903];H[f+24>>2]=H[40902];H[f+28>>2]=b;b=H[40901];H[f+16>>2]=H[40900];H[f+20>>2]=b;b=H[40899];H[f+8>>2]=H[40898];H[f+12>>2]=b;b=H[40897];H[f>>2]=H[40896];H[f+4>>2]=b;j=f+20|0;while(1){e=ie(h,44);if(!e){e=ac(h)+h|0}l:{if(d>>>0>1){break l}i=f+N(d,20)|0;k=e-h|0;b=d;m:{if((ac(i)|0)!=(k|0)){break m}b=d;if(gc(i,h,k)){break m}n=H[i+16>>2];H[g+24>>2]=n;b=H[i+12>>2];o=H[i+8>>2];H[g+16>>2]=o;H[g+20>>2]=b;m=H[i+4>>2];p=H[i>>2];H[g+8>>2]=p;H[g+12>>2]=m;H[i+16>>2]=n;H[i+8>>2]=o;H[i+12>>2]=b;H[i>>2]=p;H[i+4>>2]=m;b=d+1|0}n:{if(d){break n}if((ac(j)|0)!=(k|0)){break n}if(gc(j,h,k)){break n}H[g+24>>2]=H[j+16>>2];d=H[j+12>>2];H[g+16>>2]=H[j+8>>2];H[g+20>>2]=d;d=H[j+4>>2];H[g+8>>2]=H[j>>2];H[g+12>>2]=d;d=f+N(b,20)|0;$c(d+20|0,d,N(1-b|0,20));H[d+16>>2]=H[g+24>>2];h=H[g+20>>2];H[d+8>>2]=H[g+16>>2];H[d+12>>2]=h;h=H[g+12>>2];H[d>>2]=H[g+8>>2];H[d+4>>2]=h;d=b+1|0;break l}d=b}h=e+1|0;if(I[e|0]){continue}break}e=f}xb=g+32|0;d=e;if(!d){d=163584}b=H[196246];H[196246]=b?b:d;if(!b){break j}if(!(!d|(d|0)==163584)){Kb(d)}d=H[196246];if(!d){continue}break}}o:{p:{b=H[d+16>>2];if((b|0)==785){if(H[c+40>>2]){break o}while(1){if(!H[c+36>>2]){break p}b=H[c+40>>2];H[c+40>>2]=b?b:1;if(!b){break o}if(!H[c+40>>2]){continue}break}break o}if((b|0)!=786){break p}if(H[c+44>>2]){break a}while(1){if(!H[c+36>>2]){break p}b=H[c+44>>2];H[c+44>>2]=b?b:1;if(!b){break a}if(!H[c+44>>2]){continue}break}break a}b=H[d+36>>2];if((b|0)!=785){if((b|0)!=786){break c}if(H[c+44>>2]){break a}while(1){if(!H[c+36>>2]){break c}b=H[c+44>>2];H[c+44>>2]=b?b:1;if(!b){break a}if(!H[c+44>>2]){continue}break}break a}if(H[c+40>>2]){break o}while(1){if(!H[c+36>>2]){break c}b=H[c+40>>2];H[c+40>>2]=b?b:1;if(!b){break o}if(!H[c+40>>2]){continue}break}}break b}Kb(l);return 0}H[a+40>>2]=105020;H[a+36>>2]=785;return 1}H[a+40>>2]=105334;H[a+36>>2]=786;return 1}function gj(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,r=0;g=xb-304|0;xb=g;a:{b:{c:{d:{e:{f:{g:{if(!gc(a,239582,13)){q=b,r=fj(a+13|0),F[q|0]=r;break g}if(!gc(a,239559,14)){q=b,r=fj(a+14|0),F[q+1|0]=r;break g}if(!gc(a,239574,21)){q=b,r=fj(a+21|0),F[q+2|0]=r;break g}if(!gc(a,239551,22)){q=b,r=fj(a+22|0),F[q+3|0]=r;break g}if(!gc(a,239596,8)){d=a+8|0;while(1){c=I[d|0];if(!((c|0)!=32&(c|0)!=9)){d=d+1|0;continue}break}h:{if(I[a|0]){c=ac(d);h=c+1|0;a=Tb(h);if(!a){break f}h=c;c=Ob(a,d,c);F[h+c|0]=0;H[b+4>>2]=c;break h}a=H[b+4>>2];if(!a){break g}}c=ac(a)+a|0;F[c-1|0]=0;a=H[b+4>>2];d=c-2|0;if(a>>>0>=d>>>0){break g}while(1){if(I[d|0]==44){H[b+8>>2]=H[b+8>>2]+1;F[d|0]=0;a=H[b+4>>2]}d=d-1|0;if(d>>>0>a>>>0){continue}break}break g}F[g+80|0]=48;d=ie(a,47);if(d){h=d+1|0;e=ie(h,44);F[d|0]=0;i:{if(e){i=e+1|0;d=ie(i,44);F[e|0]=0;e=0;if(!d){break i}F[d|0]=0;j=fj(i)-1|0;e=fj(d+1|0);break i}e=ac(h);j:{if((e|0)<=0){break j}k:{l:{d=h+e|0;i=d-1|0;switch(I[i|0]-10|0){case 0:case 3:break l;default:break k}}F[i|0]=0}if(e>>>0<2){break j}e=d-2|0;if(I[e|0]!=13){break j}F[e|0]=0}e=ac(a)}d=ac(h);i=d+1|0;m=Tb(i);if(!m){break e}q=Ob(m,h,d)+d|0,r=0,F[q|0]=r}d=I[a|0];m:{if(d>>>0<33){i=0;break m}i=0;while(1){if((d-48&255)>>>0>=10){F[(g+192|0)+i|0]=d;i=i+1|0;d=48}F[(g+80|0)+i|0]=d;f=f+1|0;d=I[f+a|0];if(d>>>0>32){continue}break}}d=0;F[(g+192|0)+i|0]=0;F[(g+i|0)+81|0]=0;n:{if(!m){while(1){h=d;d=d+1|0;if(I[(g+80|0)+h|0]==48){continue}break}d=I[g+192|0];break n}d=I[g+192|0];h=(d|0)==46;if(!H[b+36>>2]){break n}l=ac(g+192|0);o:{if(l+1>>>0<=h>>>0){break o}o=e<<24>>24;f=-1;a=h;k=-1;while(1){k=((I[(g+192|0)+a|0]&192)!=128)+k|0;n=j<<24>>24;p=(k|0)==(n|0)&(f|0)<0;j=p?a:j;f=p?n:f;if(!((f|0)<0|(o|0)!=(k-f|0))){e=a-j|0;break o}n=(a|0)!=(l|0);a=a+1|0;if(n){continue}break}}j=j-((d|0)==46)|0}f=0;if(d&255){a=g+192|0;while(1){d=(f<<4)+(d<<24>>24)|0;k=d&-268435456;f=k?k>>>24^d&268435455:d;d=I[a+1|0];a=a+1|0;if(d){continue}break}f=(f>>>0)%31627|0}a=-1;d=H[(f<<2)+c>>2];p:{if(!d){break p}while(1){if(!fc(g+192|0,H[d+4>>2])){a=H[d+8>>2];break p}d=H[d>>2];if(d){continue}break}}k=iy(b,c,g+192|0);d=(g+80|0)+h|0;h=ac(d);f=h+1|0;l=Tb(f);if(!l){break d}d=Ob(l,d,h);F[d+h|0]=0;h=H[b+40>>2]+N(k,24)|0;F[h+8|0]=j;H[h+4>>2]=m;H[h>>2]=d;if(!(e&255)){e=ac(g+192|0)}F[h+9|0]=e;if((i|0)<=0|(a|0)>=0){break g}while(1){d=g+192|0;m=i-1|0;a=d+m|0;o=I[a|0];f=0;F[a|0]=0;a=I[g+192|0];if(a){while(1){a=(f<<4)+(a<<24>>24)|0;h=a&-268435456;f=h?h>>>24^a&268435455:a;a=I[d+1|0];d=d+1|0;if(a){continue}break}f=(f>>>0)%31627|0}h=-1;d=H[(f<<2)+c>>2];q:{if(!d){break q}while(1){if(!fc(g+192|0,H[d+4>>2])){h=H[d+8>>2];break q}d=H[d>>2];if(d){continue}break}}d=iy(b,c,g+192|0);j=H[b+40>>2];l=N(d,24);e=j+l|0;a=H[e+16>>2];r:{if(!a){f=Tb(8);if(!f){break c}H[e+20>>2]=f;e=0;break r}if(a&a-1){f=H[e+20>>2];e=a;break r}f=H[e+20>>2];e=a<<4;f=tc(f,e);if(!f){break b}j=H[b+40>>2];e=l+j|0;H[e+20>>2]=f;e=H[e+16>>2]}a=(a<<3)+f|0;H[a+4>>2]=k;F[a|0]=o;H[(j+l|0)+16>>2]=e+1;if((h|0)>=0){break g}a=(i|0)>1;i=m;k=d;if(a){continue}break}}xb=g+304|0;return}H[g>>2]=h;Fc(H[191568],239726,g);break a}H[g+64>>2]=i;Fc(H[191568],239726,g- -64|0);break a}H[g+16>>2]=f;Fc(H[191568],239726,g+16|0);break a}H[g+32>>2]=8;Fc(H[191568],239726,g+32|0);break a}H[g+48>>2]=e;Fc(H[191568],239726,g+48|0)}Ba(1);X()} +function Rz(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=Tb(16);if(d){H[d+12>>2]=24;H[d+4>>2]=25;H[d>>2]=0;H[d+8>>2]=26}if(!d){return 7}b=6;a:{if(!(!d|!a)){c=zb[H[d+4>>2]](d,208)|0;b=64;if(!c){break a}Nb(c+16|0,0,188);H[c+204>>2]=1;H[c+12>>2]=4;H[c+4>>2]=2;H[c+8>>2]=10;H[c>>2]=d;H[a>>2]=c;b=0}}j=b;b:{if(b){Kb(d);break b}b=H[a>>2];if(b){Te(b,17032)}if(b){Te(b,95956)}if(b){Te(b,98216)}if(b){Te(b,24508)}if(b){Te(b,100180)}if(b){Te(b,30036)}if(b){Te(b,102292)}if(b){Te(b,103200)}if(b){Te(b,29408)}if(b){Te(b,30724)}if(b){Te(b,93472)}if(b){Te(b,31368)}if(b){Te(b,93656)}if(b){Te(b,93928)}if(b){Te(b,29324)}if(b){Te(b,21496)}}i=H[a>>2];h=xb-432|0;xb=h;c:{c=kg(8924);if(!c){break c}while(1){b=0;d:{e:{f:{f=c;e=I[c|0];switch(e|0){case 0:break c;case 9:break d;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break e;default:break f}}if((e|0)==32){break d}}g:{h:{i:{while(1){a=e&255;if(!a){e=b;break g}if((a|0)==58){e=b;break g}F[(h+288|0)+b|0]=e;e=b|1;a=I[f+1|0];if(!a|(a|0)==58){break h}F[(h+288|0)+e|0]=a;e=b|2;a=I[f+2|0];if(!a|(a|0)==58){break i}F[(h+288|0)+e|0]=a;e=b|3;a=I[f+3|0];if(!(!a|(a|0)==58)){F[(h+288|0)+e|0]=a;f=f+4|0;e=128;b=b+4|0;if((b|0)==128){break g}e=I[f|0];continue}break}f=f+3|0;break g}f=f+2|0;break g}f=f+1|0}F[(h+288|0)+e|0]=0;if((c|0)==(f|0)|I[f|0]!=58){break c}a=1;e=f+1|0;b=0;j:{while(1){c=I[e|0];if(!c){c=b;break j}if((c|0)==61){c=b;break j}F[(h+144|0)+b|0]=c;c=b|1;d=a+1|0;e=d+f|0;g=I[e|0];if(!g){a=d;break j}if((g|0)==61){a=d;break j}F[(h+144|0)+c|0]=g;c=b|2;d=a+2|0;e=d+f|0;g=I[e|0];if(!g){a=d;break j}if((g|0)==61){a=d;break j}F[(h+144|0)+c|0]=g;c=b|3;d=a+3|0;e=d+f|0;g=I[e|0];if(!g){a=d;break j}if((g|0)==61){a=d;break j}F[(h+144|0)+c|0]=g;a=a+4|0;e=f+a|0;c=128;b=b+4|0;if((b|0)!=128){continue}break}a=129}F[(h+144|0)+c|0]=0;if((a|0)==1|I[e|0]!=61){break c}a=1;c=e+1|0;b=0;k:{while(1){d=a;f=b;l:{m:{g=I[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break l;default:break m}}if((g|0)!=32){break l}break k}F[b+h|0]=g;f=b|1;n:{o:{d=a+1|0;c=e+d|0;g=I[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break n;default:break o}}if((g|0)==32){break k}}F[f+h|0]=g;f=b|2;p:{q:{d=a+2|0;c=e+d|0;g=I[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break p;default:break q}}if((g|0)==32){break k}}F[f+h|0]=g;f=b|3;r:{s:{d=a+3|0;c=e+d|0;g=I[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break r;default:break s}}if((g|0)==32){break k}}F[f+h|0]=g;a=a+4|0;c=e+a|0;f=128;b=b+4|0;if((b|0)!=128){continue}break}d=129}F[f+h|0]=0;t:{u:{a=I[c|0];switch(a|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break c;case 0:case 9:break t;default:break u}}if((a|0)!=32){break c}}if((d|0)==1){break c}f=h+288|0;e=h+144|0;v:{if(!i){break v}w:{if(!h|(!f|!e)){break w}a=i+20|0;b=H[i+16>>2];d=a+(b<<2)|0;x:{if((b|0)<=0){break x}while(1){if(!fc(H[H[H[a>>2]>>2]+8>>2],f)){break x}a=a+4|0;if(d>>>0>a>>>0){continue}break}}if((a|0)==(d|0)){break v}d=H[a>>2];b=H[H[d>>2]+32>>2];if(!b){break w}b=zb[b|0](d,11331)|0;if(!b){break w}b=H[b>>2];if(!b){break w}zb[b|0](H[a>>2],e,h,1)|0}}if(!I[c|0]){break c}}c=c+1|0;continue}}xb=h+432|0;return j}function q0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-128|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{b=H[c>>2];f=H[c+4>>2];j:{if((b|0)==(f|0)){break j}H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{while(1){g=M[b>>3];H[197455]=0;fa(1756,d- -64|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break u}H[197455]=0;ba(1650,d- -64|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break t}H[d+88>>2]=H[d+72>>2];H[d+72>>2]=0;c=H[d+68>>2];H[d+80>>2]=H[d+64>>2];H[d+84>>2]=c;H[d+64>>2]=0;H[d+68>>2]=0;g=M[b+8>>3];H[197455]=0;fa(1756,d+48|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break s}H[197455]=0;c=I[d+59|0];e=c<<24>>24<0;c=ca(1759,d+80|0,(e?H[d+48>>2]:d+48|0)|0,(e?H[d+52>>2]:c)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break r}H[d+104>>2]=H[c+8>>2];e=H[c+4>>2];H[d+96>>2]=H[c>>2];H[d+100>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+96|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break q}H[d+24>>2]=H[d+104>>2];H[d+104>>2]=0;c=H[d+100>>2];e=H[d+96>>2];H[d+16>>2]=e;H[d+20>>2]=c;H[d+96>>2]=0;H[d+100>>2]=0;H[197455]=0;h=e;c=F[d+27|0];e=(c|0)<0;ca(1759,d+112|0,(e?h:d+16|0)|0,(e?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break p}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}b=b+16|0;if((f|0)!=(b|0)){continue}break}H[197455]=0;b=ca(1775,d+16|0,409148,d+112|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break k}b=$()|0;_()|0;break b}b=$()|0;_()|0;break b}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;break n}b=$()|0;_()|0;break o}b=$()|0;_()|0;if(F[d+27|0]>=0){break o}Kb(H[d+16>>2])}if(F[d+107|0]>=0){break n}Kb(H[d+96>>2])}if(F[d+59|0]>=0){break m}Kb(H[d+48>>2])}if(F[d+91|0]>=0){break l}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break b}Kb(H[d+64>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;f=da(1763,d+96|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break i}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;qa(1765,a|0,f|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break h}H[197455]=0;ga(1766,a|0,f|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break h}H[d+24>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break g}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[d+80>>2]=b;H[d+84>>2]=7;H[d+88>>2]=-2147483640;H[197455]=0;Mb(b,409408,7);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+28>>2]=0;F[d+75|0]=0;H[197455]=0;H[d+64>>2]=0;ka(1767,a|0,d+80|0,f|0,d- -64|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}a=H[f>>2];if(a){b=H[f+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((c|0)!=(a|0)){continue}break}b=H[f>>2]}H[f+4>>2]=a;Kb(b)}if(F[d+123|0]>=0){break j}Kb(H[d+112>>2])}xb=d+128|0;return}b=$()|0;_()|0;Vb(d+16|0);break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break d}b=$()|0;_()|0;break d}b=$()|0;_()|0;if(F[d+75|0]<0){Kb(H[d+64>>2])}if(F[d+91|0]>=0){break d}Kb(H[d+80>>2])}yc(d+16|0)}yc(f)}if(F[d+123|0]<0){Kb(H[d+112>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function R0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-128|0;xb=d;a:{b:{c:{d:{e:{f:{g:{b=H[c>>2];e=H[c+4>>2];h:{if((b|0)==(e|0)){break h}H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{while(1){c=H[b>>2];H[197455]=0;fa(1756,d- -64|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break s}H[197455]=0;ba(1650,d- -64|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break r}H[d+88>>2]=H[d+72>>2];H[d+72>>2]=0;c=H[d+68>>2];H[d+80>>2]=H[d+64>>2];H[d+84>>2]=c;H[d+64>>2]=0;H[d+68>>2]=0;c=H[b+4>>2];H[197455]=0;fa(1756,d+48|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break q}H[197455]=0;c=I[d+59|0];f=c<<24>>24<0;c=ca(1759,d+80|0,(f?H[d+48>>2]:d+48|0)|0,(f?H[d+52>>2]:c)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break p}H[d+104>>2]=H[c+8>>2];f=H[c+4>>2];H[d+96>>2]=H[c>>2];H[d+100>>2]=f;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+96|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break o}H[d+24>>2]=H[d+104>>2];H[d+104>>2]=0;c=H[d+100>>2];f=H[d+96>>2];H[d+16>>2]=f;H[d+20>>2]=c;H[d+96>>2]=0;H[d+100>>2]=0;H[197455]=0;g=f;c=F[d+27|0];f=(c|0)<0;ca(1759,d+112|0,(f?g:d+16|0)|0,(f?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break n}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}b=b+8|0;if((e|0)!=(b|0)){continue}break}H[197455]=0;b=ca(1775,d+16|0,409148,d+112|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break i}b=$()|0;_()|0;break b}b=$()|0;_()|0;break b}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;if(F[d+27|0]>=0){break m}Kb(H[d+16>>2])}if(F[d+107|0]>=0){break l}Kb(H[d+96>>2])}if(F[d+59|0]>=0){break k}Kb(H[d+48>>2])}if(F[d+91|0]>=0){break j}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break b}Kb(H[d+64>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+96|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+16>>2]=b;H[d+20>>2]=7;H[d+24>>2]=-2147483640;H[197455]=0;Mb(b,409408,7);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+28>>2]=0;F[d+91|0]=0;H[197455]=0;H[d+80>>2]=0;ka(1767,a|0,d+16|0,e|0,d+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){b=H[e+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((c|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+123|0]>=0){break h}Kb(H[d+112>>2])}xb=d+128|0;return}b=$()|0;_()|0;Vb(d+16|0);break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]>=0){break c}Kb(H[d+16>>2])}yc(e)}if(F[d+123|0]<0){Kb(H[d+112>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function Q0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-128|0;xb=d;a:{b:{c:{d:{e:{f:{g:{b=H[c>>2];e=H[c+4>>2];h:{if((b|0)==(e|0)){break h}H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{while(1){c=G[b>>1];H[197455]=0;fa(1756,d- -64|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break s}H[197455]=0;ba(1650,d- -64|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break r}H[d+88>>2]=H[d+72>>2];H[d+72>>2]=0;c=H[d+68>>2];H[d+80>>2]=H[d+64>>2];H[d+84>>2]=c;H[d+64>>2]=0;H[d+68>>2]=0;c=G[b+2>>1];H[197455]=0;fa(1756,d+48|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break q}H[197455]=0;c=I[d+59|0];f=c<<24>>24<0;c=ca(1759,d+80|0,(f?H[d+48>>2]:d+48|0)|0,(f?H[d+52>>2]:c)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break p}H[d+104>>2]=H[c+8>>2];f=H[c+4>>2];H[d+96>>2]=H[c>>2];H[d+100>>2]=f;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+96|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break o}H[d+24>>2]=H[d+104>>2];H[d+104>>2]=0;c=H[d+100>>2];f=H[d+96>>2];H[d+16>>2]=f;H[d+20>>2]=c;H[d+96>>2]=0;H[d+100>>2]=0;H[197455]=0;g=f;c=F[d+27|0];f=(c|0)<0;ca(1759,d+112|0,(f?g:d+16|0)|0,(f?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break n}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}b=b+4|0;if((e|0)!=(b|0)){continue}break}H[197455]=0;b=ca(1775,d+16|0,409148,d+112|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break i}b=$()|0;_()|0;break b}b=$()|0;_()|0;break b}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;if(F[d+27|0]>=0){break m}Kb(H[d+16>>2])}if(F[d+107|0]>=0){break l}Kb(H[d+96>>2])}if(F[d+59|0]>=0){break k}Kb(H[d+48>>2])}if(F[d+91|0]>=0){break j}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break b}Kb(H[d+64>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+96|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+16>>2]=b;H[d+20>>2]=7;H[d+24>>2]=-2147483640;H[197455]=0;Mb(b,409408,7);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+28>>2]=0;F[d+91|0]=0;H[197455]=0;H[d+80>>2]=0;ka(1767,a|0,d+16|0,e|0,d+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){b=H[e+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((c|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+123|0]>=0){break h}Kb(H[d+112>>2])}xb=d+128|0;return}b=$()|0;_()|0;Vb(d+16|0);break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]>=0){break c}Kb(H[d+16>>2])}yc(e)}if(F[d+123|0]<0){Kb(H[d+112>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function pX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-128|0;xb=c;a:{b:{c:{d:{e:{f:{g:{d=H[b>>2];e=H[b+4>>2];h:{if((d|0)==(e|0)){break h}H[c+120>>2]=0;H[c+112>>2]=0;H[c+116>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{while(1){b=G[d>>1];H[197455]=0;fa(1756,c- -64|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break s}H[197455]=0;ba(1650,c- -64|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break r}H[c+88>>2]=H[c+72>>2];H[c+72>>2]=0;b=H[c+68>>2];H[c+80>>2]=H[c+64>>2];H[c+84>>2]=b;H[c+64>>2]=0;H[c+68>>2]=0;b=G[d+2>>1];H[197455]=0;fa(1756,c+48|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break q}H[197455]=0;b=I[c+59|0];f=b<<24>>24<0;b=ca(1759,c+80|0,(f?H[c+48>>2]:c+48|0)|0,(f?H[c+52>>2]:b)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break p}H[c+104>>2]=H[b+8>>2];f=H[b+4>>2];H[c+96>>2]=H[b>>2];H[c+100>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+96|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break o}H[c+24>>2]=H[c+104>>2];H[c+104>>2]=0;b=H[c+100>>2];f=H[c+96>>2];H[c+16>>2]=f;H[c+20>>2]=b;H[c+96>>2]=0;H[c+100>>2]=0;H[197455]=0;g=f;b=F[c+27|0];f=(b|0)<0;ca(1759,c+112|0,(f?g:c+16|0)|0,(f?H[c+20>>2]:b&255)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break n}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}d=d+4|0;if((e|0)!=(d|0)){continue}break}H[197455]=0;b=ca(1775,c+16|0,434460,c+112|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break i}d=$()|0;_()|0;break b}d=$()|0;_()|0;break b}d=$()|0;_()|0;break j}d=$()|0;_()|0;break k}d=$()|0;_()|0;break l}d=$()|0;_()|0;break m}d=$()|0;_()|0;if(F[c+27|0]>=0){break m}Kb(H[c+16>>2])}if(F[c+107|0]>=0){break l}Kb(H[c+96>>2])}if(F[c+59|0]>=0){break k}Kb(H[c+48>>2])}if(F[c+91|0]>=0){break j}Kb(H[c+80>>2])}if(F[c+75|0]>=0){break b}Kb(H[c+64>>2]);break b}H[c+40>>2]=b;H[197455]=0;H[c+44>>2]=1;b=H[c+44>>2];H[c+8>>2]=H[c+40>>2];H[c+12>>2]=b;e=da(1763,c+96|0,c+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[c+39|0]<0){Kb(H[c+28>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c+16>>2]=b;H[c+20>>2]=7;H[c+24>>2]=-2147483640;H[197455]=0;Mb(b,434524,7);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+28>>2]=0;F[c+91|0]=0;H[197455]=0;H[c+80>>2]=0;ka(1767,a|0,c+16|0,e|0,c+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}a=H[e>>2];if(a){d=H[e+4>>2];if((a|0)==(d|0)){b=a}else{while(1){if(F[d-1|0]<0){Kb(H[d-12>>2])}b=d-24|0;if(F[d-13|0]<0){Kb(H[b>>2])}d=b;if((b|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[c+123|0]>=0){break h}Kb(H[c+112>>2])}xb=c+128|0;return}d=$()|0;_()|0;Vb(c+16|0);break b}d=$()|0;_()|0;break c}d=$()|0;_()|0;break c}d=$()|0;_()|0;if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+27|0]>=0){break c}Kb(H[c+16>>2])}yc(e)}if(F[c+123|0]<0){Kb(H[c+112>>2])}ea(d|0);X()}ha(0)|0;_()|0;Zb();X()}function P0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-128|0;xb=d;a:{b:{c:{d:{e:{f:{g:{b=H[c>>2];e=H[c+4>>2];h:{if((b|0)==(e|0)){break h}H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{while(1){c=H[b>>2];H[197455]=0;fa(1756,d- -64|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break s}H[197455]=0;ba(1650,d- -64|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break r}H[d+88>>2]=H[d+72>>2];H[d+72>>2]=0;c=H[d+68>>2];H[d+80>>2]=H[d+64>>2];H[d+84>>2]=c;H[d+64>>2]=0;H[d+68>>2]=0;c=H[b+4>>2];H[197455]=0;fa(1756,d+48|0,+(c|0),-1);c=H[197455];H[197455]=0;if((c|0)==1){break q}H[197455]=0;c=I[d+59|0];f=c<<24>>24<0;c=ca(1759,d+80|0,(f?H[d+48>>2]:d+48|0)|0,(f?H[d+52>>2]:c)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break p}H[d+104>>2]=H[c+8>>2];f=H[c+4>>2];H[d+96>>2]=H[c>>2];H[d+100>>2]=f;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+96|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break o}H[d+24>>2]=H[d+104>>2];H[d+104>>2]=0;c=H[d+100>>2];f=H[d+96>>2];H[d+16>>2]=f;H[d+20>>2]=c;H[d+96>>2]=0;H[d+100>>2]=0;H[197455]=0;g=f;c=F[d+27|0];f=(c|0)<0;ca(1759,d+112|0,(f?g:d+16|0)|0,(f?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break n}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}b=b+8|0;if((e|0)!=(b|0)){continue}break}H[197455]=0;b=ca(1775,d+16|0,409148,d+112|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break i}b=$()|0;_()|0;break b}b=$()|0;_()|0;break b}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;if(F[d+27|0]>=0){break m}Kb(H[d+16>>2])}if(F[d+107|0]>=0){break l}Kb(H[d+96>>2])}if(F[d+59|0]>=0){break k}Kb(H[d+48>>2])}if(F[d+91|0]>=0){break j}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break b}Kb(H[d+64>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+96|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ba(1771,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+16>>2]=b;H[d+20>>2]=8;H[d+24>>2]=-2147483636;H[197455]=0;Mb(b,409676,8);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+32>>2]=0;F[d+91|0]=0;H[197455]=0;H[d+80>>2]=0;ka(1767,a|0,d+16|0,e|0,d+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){b=H[e+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((c|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+123|0]>=0){break h}Kb(H[d+112>>2])}xb=d+128|0;return}b=$()|0;_()|0;Vb(d+16|0);break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]>=0){break c}Kb(H[d+16>>2])}yc(e)}if(F[d+123|0]<0){Kb(H[d+112>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function w0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-128|0;xb=d;a:{b:{c:{d:{e:{f:{g:{b=H[c>>2];e=H[c+4>>2];h:{if((b|0)==(e|0)){break h}H[d+120>>2]=0;H[d+112>>2]=0;H[d+116>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{while(1){g=M[b>>3];H[197455]=0;fa(1756,d- -64|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break s}H[197455]=0;ba(1650,d- -64|0,44);c=H[197455];H[197455]=0;if((c|0)==1){break r}H[d+88>>2]=H[d+72>>2];H[d+72>>2]=0;c=H[d+68>>2];H[d+80>>2]=H[d+64>>2];H[d+84>>2]=c;H[d+64>>2]=0;H[d+68>>2]=0;g=M[b+8>>3];H[197455]=0;fa(1756,d+48|0,+g,-1);c=H[197455];H[197455]=0;if((c|0)==1){break q}H[197455]=0;c=I[d+59|0];f=c<<24>>24<0;c=ca(1759,d+80|0,(f?H[d+48>>2]:d+48|0)|0,(f?H[d+52>>2]:c)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break p}H[d+104>>2]=H[c+8>>2];f=H[c+4>>2];H[d+96>>2]=H[c>>2];H[d+100>>2]=f;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,d+96|0,32);c=H[197455];H[197455]=0;if((c|0)==1){break o}H[d+24>>2]=H[d+104>>2];H[d+104>>2]=0;c=H[d+100>>2];f=H[d+96>>2];H[d+16>>2]=f;H[d+20>>2]=c;H[d+96>>2]=0;H[d+100>>2]=0;H[197455]=0;h=f;c=F[d+27|0];f=(c|0)<0;ca(1759,d+112|0,(f?h:d+16|0)|0,(f?H[d+20>>2]:c&255)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break n}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+107|0]<0){Kb(H[d+96>>2])}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+75|0]<0){Kb(H[d+64>>2])}b=b+16|0;if((e|0)!=(b|0)){continue}break}H[197455]=0;b=ca(1775,d+16|0,409148,d+112|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break i}b=$()|0;_()|0;break b}b=$()|0;_()|0;break b}b=$()|0;_()|0;break j}b=$()|0;_()|0;break k}b=$()|0;_()|0;break l}b=$()|0;_()|0;break m}b=$()|0;_()|0;if(F[d+27|0]>=0){break m}Kb(H[d+16>>2])}if(F[d+107|0]>=0){break l}Kb(H[d+96>>2])}if(F[d+59|0]>=0){break k}Kb(H[d+48>>2])}if(F[d+91|0]>=0){break j}Kb(H[d+80>>2])}if(F[d+75|0]>=0){break b}Kb(H[d+64>>2]);break b}H[d+40>>2]=b;H[197455]=0;H[d+44>>2]=1;b=H[d+44>>2];H[d+8>>2]=H[d+40>>2];H[d+12>>2]=b;e=da(1763,d+96|0,d+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[d+39|0]<0){Kb(H[d+28>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ba(1771,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+16>>2]=b;H[d+20>>2]=8;H[d+24>>2]=-2147483636;H[197455]=0;Mb(b,409676,8);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+32>>2]=0;F[d+91|0]=0;H[197455]=0;H[d+80>>2]=0;ka(1767,a|0,d+16|0,e|0,d+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}a=H[e>>2];if(a){b=H[e+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((c|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[d+123|0]>=0){break h}Kb(H[d+112>>2])}xb=d+128|0;return}b=$()|0;_()|0;Vb(d+16|0);break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[d+91|0]<0){Kb(H[d+80>>2])}if(F[d+27|0]>=0){break c}Kb(H[d+16>>2])}yc(e)}if(F[d+123|0]<0){Kb(H[d+112>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function qX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-128|0;xb=c;a:{b:{c:{d:{e:{f:{g:{d=H[b>>2];e=H[b+4>>2];h:{if((d|0)==(e|0)){break h}H[c+120>>2]=0;H[c+112>>2]=0;H[c+116>>2]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{while(1){b=G[d>>1];H[197455]=0;fa(1756,c- -64|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break s}H[197455]=0;ba(1650,c- -64|0,44);b=H[197455];H[197455]=0;if((b|0)==1){break r}H[c+88>>2]=H[c+72>>2];H[c+72>>2]=0;b=H[c+68>>2];H[c+80>>2]=H[c+64>>2];H[c+84>>2]=b;H[c+64>>2]=0;H[c+68>>2]=0;b=G[d+2>>1];H[197455]=0;fa(1756,c+48|0,+(b|0),-1);b=H[197455];H[197455]=0;if((b|0)==1){break q}H[197455]=0;b=I[c+59|0];f=b<<24>>24<0;b=ca(1759,c+80|0,(f?H[c+48>>2]:c+48|0)|0,(f?H[c+52>>2]:b)|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break p}H[c+104>>2]=H[b+8>>2];f=H[b+4>>2];H[c+96>>2]=H[b>>2];H[c+100>>2]=f;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1650,c+96|0,32);b=H[197455];H[197455]=0;if((b|0)==1){break o}H[c+24>>2]=H[c+104>>2];H[c+104>>2]=0;b=H[c+100>>2];f=H[c+96>>2];H[c+16>>2]=f;H[c+20>>2]=b;H[c+96>>2]=0;H[c+100>>2]=0;H[197455]=0;g=f;b=F[c+27|0];f=(b|0)<0;ca(1759,c+112|0,(f?g:c+16|0)|0,(f?H[c+20>>2]:b&255)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break n}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+107|0]<0){Kb(H[c+96>>2])}if(F[c+59|0]<0){Kb(H[c+48>>2])}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+75|0]<0){Kb(H[c+64>>2])}d=d+4|0;if((e|0)!=(d|0)){continue}break}H[197455]=0;b=ca(1775,c+16|0,434460,c+112|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break i}d=$()|0;_()|0;break b}d=$()|0;_()|0;break b}d=$()|0;_()|0;break j}d=$()|0;_()|0;break k}d=$()|0;_()|0;break l}d=$()|0;_()|0;break m}d=$()|0;_()|0;if(F[c+27|0]>=0){break m}Kb(H[c+16>>2])}if(F[c+107|0]>=0){break l}Kb(H[c+96>>2])}if(F[c+59|0]>=0){break k}Kb(H[c+48>>2])}if(F[c+91|0]>=0){break j}Kb(H[c+80>>2])}if(F[c+75|0]>=0){break b}Kb(H[c+64>>2]);break b}H[c+40>>2]=b;H[197455]=0;H[c+44>>2]=1;b=H[c+44>>2];H[c+8>>2]=H[c+40>>2];H[c+12>>2]=b;e=da(1763,c+96|0,c+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[c+39|0]<0){Kb(H[c+28>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ba(1771,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,48)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c+16>>2]=b;H[c+20>>2]=8;H[c+24>>2]=-2147483636;H[197455]=0;Mb(b,434488,8);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+32>>2]=0;F[c+91|0]=0;H[197455]=0;H[c+80>>2]=0;ka(1767,a|0,c+16|0,e|0,c+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}a=H[e>>2];if(a){d=H[e+4>>2];if((a|0)==(d|0)){b=a}else{while(1){if(F[d-1|0]<0){Kb(H[d-12>>2])}b=d-24|0;if(F[d-13|0]<0){Kb(H[b>>2])}d=b;if((b|0)!=(a|0)){continue}break}b=H[e>>2]}H[e+4>>2]=a;Kb(b)}if(F[c+123|0]>=0){break h}Kb(H[c+112>>2])}xb=c+128|0;return}d=$()|0;_()|0;Vb(c+16|0);break b}d=$()|0;_()|0;break c}d=$()|0;_()|0;break c}d=$()|0;_()|0;if(F[c+91|0]<0){Kb(H[c+80>>2])}if(F[c+27|0]>=0){break c}Kb(H[c+16>>2])}yc(e)}if(F[c+123|0]<0){Kb(H[c+112>>2])}ea(d|0);X()}ha(0)|0;_()|0;Zb();X()}function ee(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=xb-16|0;xb=i;g=H[a>>2];a:{b:{f=H[a+4>>2];c:{if(!f){f=0;break c}if(H[a+40>>2]){break c}e=f<<1;if((e|0)<0){d=6;break b}if(e){d=10;if(e>>>0>268435455){break b}f=f<<4;d=zb[H[g+4>>2]](g,f)|0;if(!d){d=64;break b}Nb(d,0,f);f=H[a+4>>2]}F[a+16|0]=1;H[a+40>>2]=d;j=(f<<3)+d|0;H[a+44>>2]=j;e=H[a+24>>2];if(e){h=e+(G[a+22>>1]<<3)|0}else{h=0}H[a+60>>2]=h;k=a- -64|0;e=H[a+28>>2];if(e){h=e+G[a+22>>1]|0}else{h=0}H[k>>2]=h;e=H[a+32>>2];if(e){h=e+(G[a+20>>1]<<1)|0}else{h=0}H[a+68>>2]=h;e=G[a+22>>1]<<3;H[a+80>>2]=e+j;H[a+76>>2]=d+e}d:{e:{f:{b=G[a+58>>1]+(G[a+22>>1]+b|0)|0;k=b>>>0<=f>>>0;g:{if(k){b=f;break g}d=10;j=b+7|0;b=j&-8;if(b>>>0>32767){break a}e=H[a+24>>2];if((f|j)<0){break f}h:{i:{j:{if(!b){if(e){zb[H[g+8>>2]](g,e)}e=0;H[a+24>>2]=0;j=a+28|0;d=H[j>>2];if(!d){break j}zb[H[g+8>>2]](g,d);break j}h=(b|0)<=(f|0);k:{if(!f){e=zb[H[g+4>>2]](g,b<<3)|0;d=!e<<6;break k}d=zb[H[g+12>>2]](g,f<<3,b<<3,e)|0;e=d?d:e;d=!d<<6}l:{if(e?h|d:1){H[a+24>>2]=e;if(!d){break l}break e}Nb((f<<3)+e|0,0,b-f<<3);H[a+24>>2]=e}j=a+28|0;m:{if(!f){e=zb[H[g+4>>2]](g,b)|0;d=!e<<6;break m}e=H[a+28>>2];d=zb[H[g+12>>2]](g,f,b,e)|0;e=d?d:e;d=!d<<6}if(d|h|!e){break i}Nb(e+f|0,0,b-f|0)}H[i+12>>2]=0;H[j>>2]=e;break h}H[i+12>>2]=d;H[a+28>>2]=e;if(d){break e}}if(I[a+16|0]){e=Ub(g,8,f<<1,b<<1,H[a+40>>2],i+12|0);H[a+40>>2]=e;d=H[i+12>>2];if(d){break e}d=b<<3;f=f<<3;$c(d+e|0,f+e|0,f);H[a+44>>2]=d+H[a+40>>2]}H[a+4>>2]=b}if(!(H[a+40>>2]|!b)){f=b<<1;if((f|0)<0){d=6;break d}n:{if(!f){f=0;break n}d=10;if(f>>>0>268435455){break d}d=H[a>>2];b=b<<4;f=zb[H[d+4>>2]](d,b)|0;if(!f){d=64;H[a+40>>2]=0;break a}Nb(f,0,b);b=H[a+4>>2]}F[a+16|0]=1;H[a+40>>2]=f;d=(b<<3)+f|0;H[a+44>>2]=d;b=H[a+24>>2];if(b){b=b+(G[a+22>>1]<<3)|0}else{b=0}H[a+60>>2]=b;h=a- -64|0;b=H[a+28>>2];if(b){b=b+G[a+22>>1]|0}else{b=0}H[h>>2]=b;b=H[a+32>>2];if(b){b=b+(G[a+20>>1]<<1)|0}else{b=0}H[a+68>>2]=b;b=G[a+22>>1]<<3;H[a+80>>2]=b+d;H[a+76>>2]=b+f}d=0;H[i+12>>2]=0;b=G[a+56>>1]+(G[a+20>>1]+c|0)|0;c=H[a+8>>2];o:{if(b>>>0>c>>>0){d=10;b=b+3&-4;if(b>>>0>32767){break a}l=a,m=Ub(g,2,c,b,H[a+32>>2],i+12|0),H[l+32>>2]=m;d=H[i+12>>2];if(d){break e}H[a+8>>2]=b;break o}if(k){break a}}d=0;b=H[a+24>>2];if(b){b=b+(G[a+22>>1]<<3)|0}else{b=0}H[a+60>>2]=b;c=a- -64|0;b=H[a+28>>2];if(b){b=b+G[a+22>>1]|0}else{b=0}H[c>>2]=b;b=H[a+32>>2];if(b){b=b+(G[a+20>>1]<<1)|0}else{b=0}H[a+68>>2]=b;if(!I[a+16|0]){break a}b=G[a+22>>1]<<3;H[a+76>>2]=b+H[a+40>>2];H[a+80>>2]=b+H[a+44>>2];break a}d=6;H[i+12>>2]=6;H[a+24>>2]=e}b=H[a>>2];c=H[a+24>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+24>>2]=0;c=H[a+28>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+28>>2]=0;c=H[a+32>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+32>>2]=0;c=H[a+40>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+40>>2]=0;c=H[a+52>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+20>>2]=0;H[a+36>>2]=0;H[a+44>>2]=0;H[a+48>>2]=0;H[a+52>>2]=0;H[a+12>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[a+88>>2]=0;b=H[a+24>>2];H[a+56>>2]=H[a+20>>2];H[a+60>>2]=b;c=H[a+32>>2];b=a- -64|0;H[b>>2]=H[a+28>>2];H[b+4>>2]=c;b=H[a+40>>2];H[a+72>>2]=H[a+36>>2];H[a+76>>2]=b;b=H[a+48>>2];H[a+80>>2]=H[a+44>>2];H[a+84>>2]=b;break a}H[a+40>>2]=0;break a}H[a+40>>2]=0;H[i+12>>2]=d}xb=i+16|0;return d}function pN(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;l=xb-16|0;xb=l;H[l+8>>2]=c;H[l+12>>2]=a;c=Nb(c,0,652);f=I[b+8|0];F[c+188|0]=f;a:{if(!f){break a}if(f-1>>>0>=3){i=f&252;g=c+192|0;h=b+12|0;while(1){H[g+(d<<2)>>2]=G[h+(d<<1)>>1];k=d|1;H[g+(k<<2)>>2]=G[h+(k<<1)>>1];k=d|2;H[g+(k<<2)>>2]=G[h+(k<<1)>>1];k=d|3;H[g+(k<<2)>>2]=G[h+(k<<1)>>1];d=d+4|0;j=j+4|0;if((i|0)!=(j|0)){continue}break}}f=f&3;if(!f){break a}j=0;while(1){H[(c+(d<<2)|0)+192>>2]=G[((d<<1)+b|0)+12>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0)){continue}break}}g=I[b+9|0];F[c+189|0]=g;b:{if(!g){break b}j=0;d=0;if(g-1>>>0>=3){k=g&252;h=c+248|0;i=b+40|0;f=0;while(1){H[h+(d<<2)>>2]=G[i+(d<<1)>>1];e=d|1;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|2;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|3;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0)){continue}break}}f=g&3;if(!f){break b}while(1){H[(c+(d<<2)|0)+248>>2]=G[((d<<1)+b|0)+40>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0)){continue}break}}g=I[b+10|0];F[c+190|0]=g;c:{if(!g){break c}j=0;d=0;if(g-1>>>0>=3){k=g&252;h=c+288|0;i=b+60|0;f=0;while(1){H[h+(d<<2)>>2]=G[i+(d<<1)>>1];e=d|1;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|2;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|3;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0)){continue}break}}f=g&3;if(!f){break c}while(1){H[(c+(d<<2)|0)+288>>2]=G[((d<<1)+b|0)+60>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0)){continue}break}}g=I[b+11|0];F[c+191|0]=g;d:{if(!g){break d}j=0;d=0;if(g-1>>>0>=3){k=g&252;h=c+344|0;i=b+88|0;f=0;while(1){H[h+(d<<2)>>2]=G[i+(d<<1)>>1];e=d|1;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|2;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|3;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0)){continue}break}}f=g&3;if(!f){break d}while(1){H[(c+(d<<2)|0)+344>>2]=G[((d<<1)+b|0)+88>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0)){continue}break}}H[c+384>>2]=H[b+108>>2];H[c+388>>2]=H[b+112>>2];H[c+392>>2]=H[b+116>>2];H[c+396>>2]=J[b+120>>1];H[c+400>>2]=J[b+122>>1];g=I[b+124|0];F[c+404|0]=g;e:{if(!g){break e}j=0;d=0;if(g-1>>>0>=3){k=g&252;h=c+408|0;i=b+128|0;f=0;while(1){H[h+(d<<2)>>2]=G[i+(d<<1)>>1];e=d|1;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|2;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|3;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0)){continue}break}}f=g&3;if(!f){break e}while(1){H[(c+(d<<2)|0)+408>>2]=G[((d<<1)+b|0)+128>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0)){continue}break}}g=I[b+125|0];F[c+405|0]=g;f:{if(!g){break f}j=0;d=0;if(g-1>>>0>=3){k=g&252;h=c+460|0;i=b+154|0;f=0;while(1){H[h+(d<<2)>>2]=G[i+(d<<1)>>1];e=d|1;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|2;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];e=d|3;H[h+(e<<2)>>2]=G[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0)){continue}break}}f=g&3;if(!f){break f}while(1){H[(c+(d<<2)|0)+460>>2]=G[((d<<1)+b|0)+154>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0)){continue}break}}F[c+512|0]=I[b+126|0];H[c+520>>2]=H[b+4>>2];H[c+524>>2]=H[b+184>>2];b=H[b+180>>2];H[c+552>>2]=c;H[c+528>>2]=b;g:{h:{a=H[a+128>>2];d=H[a+60>>2];if((d|0)==-1){break h}H[c+648>>2]=d;if(!d){break h}while(1){b=d<<13^d;b=b>>>17^b;d=b<<5^b;if((d|0)<0){continue}break}H[a+60>>2]=d;break g}a=l+4^(l+8^l+12);a=a>>>10^a^a>>>20;H[c+648>>2]=a?a:29572}xb=l+16|0}function fk(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,p=0,q=0,r=0,s=0,t=0,u=0;h=xb-48|0;xb=h;g=H[a+11748>>2]==2;i=(g?11760:11776)+a|0;k=H[i+4>>2];s=1;o=H[i>>2];n=H[c>>2];j=H[c+4>>2];a:{if(!((o|0)!=(n|0)|(j|0)!=(k|0))){j=0;break a}g=(g?11752:11768)+a|0;m=H[g+4>>2];q=o;o=H[g>>2];p=(e-j|0)+16>>5;q=Rb((q-o|0)+16>>5,p);r=(k-m|0)+16>>5;k=(d-n|0)+16>>5;r=Rb(r,k);if((q|0)==(r|0)){j=0;break a}l=dc(Rb((n-o|0)+16>>5,p)-Rb((j-m|0)+16>>5,k)|0,q-r|0);j=H[g>>2];j=Rb(l,H[i>>2]-j|0)+j|0;n=H[g+4>>2];m=Rb(l,H[i+4>>2]-n|0);l=H[g>>2];o=H[i>>2];if((l|0)==(o|0)){p=j-l|0;k=p>>31;j=H[a+11700>>2]>((k^p)-k|0)?l:j}l=m+n|0;g=H[g+4>>2];n=H[i+4>>2];if((g|0)==(n|0)){m=l-g|0;k=m>>31;l=H[a+11700>>2]>((k^m)-k|0)?g:l}k=H[c>>2];if((k|0)==(d|0)){m=j-d|0;g=m>>31;j=H[a+11700>>2]>((g^m)-g|0)?d:j}g=H[c+4>>2];if((g|0)==(e|0)){m=l-e|0;d=m>>31;l=H[a+11700>>2]>((d^m)-d|0)?e:l}e=((k+o|0)/-2|0)+j|0;d=e>>31;d=(d^e)-d|0;e=H[a+11696>>2];if((d|0)>(e|0)){break a}g=((g+n|0)/-2|0)+l|0;d=g>>31;if((e|0)<((d^g)-d|0)){break a}H[i>>2]=j;H[i+4>>2]=l;s=0}d=H[a+11732>>2];i=d;e=H[a+11728>>2];H[h+8>>2]=e;H[h+12>>2]=d;b:{c:{d:{switch(H[a+11748>>2]-2|0){case 0:H[h+40>>2]=2;e:{if(f){g=H[a+11764>>2];d=Rb(H[a+11644>>2],H[a+11760>>2])+Rb(H[a+11648>>2],g)|0;g=Jf(a+3876|0,g);break e}g=H[a+11764>>2];d=Rb(H[a+11644>>2],H[a+11760>>2])+Rb(H[a+11648>>2],g)|0;g=Jf(b,g)}k=(Rb(H[H[a>>2]+64>>2],d)+Rb(H[H[a>>2]+72>>2],g)|0)+H[a+11656>>2]|0;H[h+16>>2]=k;d=(Rb(H[H[a>>2]+68>>2],d)+Rb(H[H[a>>2]+76>>2],g)|0)+H[a+11660>>2]|0;H[h+20>>2]=d;if((e|0)==(k|0)&(d|0)==(i|0)){break b}d=H[a+4>>2];i=d+4|0;e=h+16|0;break c;case 2:break d;default:break b}}H[h+40>>2]=4;d=H[a+11764>>2];e=Rb(H[a+11644>>2],H[a+11760>>2]);i=Rb(H[a+11648>>2],d);d=Jf(b,d);e=e+i|0;t=h,u=(Rb(H[H[a>>2]+64>>2],e)+Rb(H[H[a>>2]+72>>2],d)|0)+H[a+11656>>2]|0,H[t+16>>2]=u;e=Rb(H[H[a>>2]+68>>2],e)+Rb(H[H[a>>2]+76>>2],d)|0;d=a+11660|0;H[h+20>>2]=e+H[d>>2];e=H[a+11772>>2];i=Rb(H[a+11644>>2],H[a+11768>>2]);g=Rb(H[a+11648>>2],e);e=Jf(b,e);i=g+i|0;t=h,u=(Rb(H[H[a>>2]+64>>2],i)+Rb(H[H[a>>2]+72>>2],e)|0)+H[a+11656>>2]|0,H[t+24>>2]=u;t=h,u=(Rb(H[H[a>>2]+68>>2],i)+Rb(H[H[a>>2]+76>>2],e)|0)+H[d>>2]|0,H[t+28>>2]=u;e=H[a+11780>>2];i=Rb(H[a+11644>>2],H[a+11776>>2]);g=Rb(H[a+11648>>2],e);e=Jf(b,e);i=g+i|0;t=h,u=(Rb(H[H[a>>2]+64>>2],i)+Rb(H[H[a>>2]+72>>2],e)|0)+H[a+11656>>2]|0,H[t+32>>2]=u;t=h,u=(Rb(H[H[a>>2]+68>>2],i)+Rb(H[H[a>>2]+76>>2],e)|0)+H[d>>2]|0,H[t+36>>2]=u;d=H[a+4>>2];i=d+12|0;e=h+32|0}zb[H[i>>2]](d,h+8|0);d=H[e+4>>2];H[a+11728>>2]=H[e>>2];H[a+11732>>2]=d}f:{if(!(f|s)){break f}g:{if(f){b=H[c+4>>2];d=Rb(H[a+11644>>2],H[c>>2])+Rb(H[a+11648>>2],b)|0;b=Jf(a+3876|0,b);break g}e=H[c+4>>2];d=Rb(H[a+11644>>2],H[c>>2])+Rb(H[a+11648>>2],e)|0;b=Jf(b,e)}t=h,u=(Rb(H[H[a>>2]+64>>2],d)+Rb(H[H[a>>2]+72>>2],b)|0)+H[a+11656>>2]|0,H[t+16>>2]=u;b=(Rb(H[H[a>>2]+68>>2],d)+Rb(H[H[a>>2]+76>>2],b)|0)+H[a+11660>>2]|0;H[h+20>>2]=b;if(H[h+16>>2]==H[a+11728>>2]&(b|0)==H[a+11732>>2]){break f}H[h+40>>2]=2;b=H[a+11732>>2];H[h+8>>2]=H[a+11728>>2];H[h+12>>2]=b;b=H[a+4>>2];zb[H[b+4>>2]](b,h+8|0);b=H[h+20>>2];H[a+11728>>2]=H[h+16>>2];H[a+11732>>2]=b}if(!s){H[c>>2]=j;H[c+4>>2]=l}xb=h+48|0}function Rg(a,b,c){var d=0,e=0,f=0,g=0,h=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;d=I[c+68|0]|I[c+69|0]<<8|(I[c+70|0]<<16|I[c+71|0]<<24);e=d+(I[c+24|0]|I[c+25|0]<<8|(I[c+26|0]<<16|I[c+27|0]<<24))|0;F[c+68|0]=e;F[c+69|0]=e>>>8;F[c+70|0]=e>>>16;F[c+71|0]=e>>>24;d=I[c+64|0]|I[c+65|0]<<8|(I[c+66|0]<<16|I[c+67|0]<<24)|b<>>8;F[c+66|0]=d>>>16;F[c+67|0]=d>>>24;if((e|0)>=8){f=c+72|0;b=I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24);while(1){e=b+1|0;F[c+328|0]=e;F[c+329|0]=e>>>8;F[c+330|0]=e>>>16;F[c+331|0]=e>>>24;F[(b+c|0)+72|0]=d;b=I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24);if((b|0)>=255){d=H[a+1060>>2];zb[H[H[d>>2]+44>>2]](d,b&255)|0;b=H[a+1060>>2];zb[H[H[b>>2]+16>>2]](b,f,1,I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24))|0;F[c+328|0]=0;F[c+329|0]=0;F[c+330|0]=0;F[c+331|0]=0;b=0}d=(I[c+64|0]|I[c+65|0]<<8|(I[c+66|0]<<16|I[c+67|0]<<24))>>>8|0;F[c+64|0]=d;F[c+65|0]=d>>>8;F[c+66|0]=d>>>16;F[c+67|0]=d>>>24;g=I[c+68|0]|I[c+69|0]<<8|(I[c+70|0]<<16|I[c+71|0]<<24);e=g-8|0;F[c+68|0]=e;F[c+69|0]=e>>>8;F[c+70|0]=e>>>16;F[c+71|0]=e>>>24;if((g|0)>15){continue}break}}b=(I[c+32|0]|I[c+33|0]<<8|(I[c+34|0]<<16|I[c+35|0]<<24))+1|0;F[c+32|0]=b;F[c+33|0]=b>>>8;F[c+34|0]=b>>>16;F[c+35|0]=b>>>24;g=I[c+36|0]|I[c+37|0]<<8|(I[c+38|0]<<16|I[c+39|0]<<24);if((g|0)<=(b|0)){h=I[c+24|0]|I[c+25|0]<<8|(I[c+26|0]<<16|I[c+27|0]<<24);f=h+1|0;F[c+24|0]=f;F[c+25|0]=f>>>8;F[c+26|0]=f>>>16;F[c+27|0]=f>>>24;f=g+(1<>>8;F[c+38|0]=f>>>16;F[c+39|0]=f>>>24}if((b|0)>=(I[c+44|0]|I[c+45|0]<<8|(I[c+46|0]<<16|I[c+47|0]<<24))){b=(I[c+24|0]|I[c+25|0]<<8|(I[c+26|0]<<16|I[c+27|0]<<24))+e|0;F[c+68|0]=b;F[c+69|0]=b>>>8;F[c+70|0]=b>>>16;F[c+71|0]=b>>>24;d=(I[c+56|0]|I[c+57|0]<<8|(I[c+58|0]<<16|I[c+59|0]<<24))<>>8;F[c+66|0]=d>>>16;F[c+67|0]=d>>>24;if((b|0)>=8){f=c+72|0;b=I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24);while(1){e=b+1|0;F[c+328|0]=e;F[c+329|0]=e>>>8;F[c+330|0]=e>>>16;F[c+331|0]=e>>>24;F[(b+c|0)+72|0]=d;b=I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24);if((b|0)>=255){d=H[a+1060>>2];zb[H[H[d>>2]+44>>2]](d,b&255)|0;b=H[a+1060>>2];zb[H[H[b>>2]+16>>2]](b,f,1,I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24))|0;F[c+328|0]=0;F[c+329|0]=0;F[c+330|0]=0;F[c+331|0]=0;b=0}d=(I[c+64|0]|I[c+65|0]<<8|(I[c+66|0]<<16|I[c+67|0]<<24))>>>8|0;F[c+64|0]=d;F[c+65|0]=d>>>8;F[c+66|0]=d>>>16;F[c+67|0]=d>>>24;g=I[c+68|0]|I[c+69|0]<<8|(I[c+70|0]<<16|I[c+71|0]<<24);e=g-8|0;F[c+68|0]=e;F[c+69|0]=e>>>8;F[c+70|0]=e>>>16;F[c+71|0]=e>>>24;if((g|0)>15){continue}break}}F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=1;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;a=I[c+28|0]|I[c+29|0]<<8|(I[c+30|0]<<16|I[c+31|0]<<24);F[c+24|0]=a;F[c+25|0]=a>>>8;F[c+26|0]=a>>>16;F[c+27|0]=a>>>24;a=I[c+40|0]|I[c+41|0]<<8|(I[c+42|0]<<16|I[c+43|0]<<24);F[c+36|0]=a;F[c+37|0]=a>>>8;F[c+38|0]=a>>>16;F[c+39|0]=a>>>24;a=I[c+48|0]|I[c+49|0]<<8|(I[c+50|0]<<16|I[c+51|0]<<24);F[c+44|0]=a;F[c+45|0]=a>>>8;F[c+46|0]=a>>>16;F[c+47|0]=a>>>24}}function b7(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;g=xb-96|0;xb=g;H[g+88>>2]=f;H[g+92>>2]=e;a:{b:{c:{d:{if(!(!b|!c)){wz(H[a+20>>2],0,b);i=H[a+8>>2];m=zb[H[H[i>>2]+52>>2]](i)|0;i=H[a+8>>2];r=0,s=zb[H[H[i>>2]+24>>2]](i)|0,q=H[H[0]+24>>2],zb[q](r|0,s|0);zb[H[H[m>>2]+68>>2]](m,0);zb[H[H[0]+464>>2]](0,m);if((f|0)==-1){zb[H[H[a>>2]+32>>2]](a,g+24|0,g+8|0,g+80|0,g+72|0);n=M[g+80>>3];if(n<0){n=-n;M[g+80>>3]=n}k=M[g+72>>3];p=k<0?-k:k;e=H[g+92>>2];if((e|0)<0){k=n*96/25.4;e:{if(P(k)<2147483648){e=~~k;break e}e=-2147483648}H[g+92>>2]=e}k=p*+(e|0)/n;f:{if(P(k)<2147483648){f=~~k;break f}f=-2147483648}H[g+88>>2]=f}M[g+80>>3]=+(e|0)*25.4/96;M[g+72>>3]=+(f|0)*25.4/96;i=N(e,f);j=Qb(i<<2);g:{if((i|0)<=0){break g}e=0;if(i-1>>>0>=7){f=i&-8;while(1){l=e<<2;H[l+j>>2]=16777215;H[j+(l|4)>>2]=16777215;H[j+(l|8)>>2]=16777215;H[j+(l|12)>>2]=16777215;H[j+(l|16)>>2]=16777215;H[j+(l|20)>>2]=16777215;H[j+(l|24)>>2]=16777215;H[j+(l|28)>>2]=16777215;e=e+8|0;o=o+8|0;if((o|0)!=(f|0)){continue}break}}f=i&7;if(!f){break g}while(1){H[j+(e<<2)>>2]=16777215;e=e+1|0;h=h+1|0;if((f|0)!=(h|0)){continue}break}}h=g+24|0;H[h>>2]=0;H[h+4>>2]=0;F[h+40|0]=0;H[h+32>>2]=0;H[h+36>>2]=-1074790400;F[h+21|0]=0;F[h+22|0]=0;F[h+23|0]=0;F[h+24|0]=0;F[h+25|0]=0;F[h+26|0]=0;F[h+27|0]=0;F[h+28|0]=0;H[h+16>>2]=0;H[h+20>>2]=0;H[h+8>>2]=0;H[h+12>>2]=0;H[197455]=0;H[h+16>>2]=j;e=H[197455];H[197455]=0;if((e|0)==1){break b}H[197455]=0;H[h+4>>2]=H[g+92>>2];e=H[197455];H[197455]=0;if((e|0)==1){break b}H[197455]=0;H[h+8>>2]=H[g+88>>2];e=H[197455];H[197455]=0;if((e|0)==1){break b}H[197455]=0;H[g+8>>2]=0-(H[g+92>>2]<<2);H[h+12>>2]=H[g+8>>2];e=H[197455];H[197455]=0;if((e|0)==1){break d}e=H[H[0]+492>>2];H[197455]=0;ba(e|0,0,h|0);e=H[197455];H[197455]=0;if((e|0)==1){break b}e=H[H[0]+484>>2];H[197455]=0;ba(e|0,0,0);e=H[197455];H[197455]=0;if((e|0)==1){break b}e=H[H[0]+36>>2];H[197455]=0;da(e|0,0,g+80|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}e=H[H[0]+28>>2];H[197455]=0;da(e|0,0,g+72|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}H[197455]=0;vb(1639,a|0,b|0,0,0,0,+M[g+80>>3],+M[g+72>>3])|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}h:{i:{j:{f=ad(c);if(f>>>0>=1073741808){H[197455]=0;ia(1640,g+8|0);a=H[197455];H[197455]=0;if((a|0)==1){break j}X()}k:{l:{if(f>>>0>=2){H[197455]=0;b=f+4&-4;e=aa(899,b<<2)|0;a=H[197455];H[197455]=0;if((a|0)==1){break j}H[g+8>>2]=e;H[g+12>>2]=f;H[g+16>>2]=b|-2147483648;break l}F[g+19|0]=f;e=g+8|0;if(!f){break k}}H[197455]=0;Mb(e,c,f);a=H[197455];H[197455]=0;if((a|0)==1){break c}}H[(f<<2)+e>>2]=0;H[197455]=0;ca(1641,h|0,g+8|0,d|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break i}if(F[g+19|0]<0){Kb(H[g+8>>2])}if(!m){break h}a=H[H[m>>2]+12>>2];H[197455]=0;aa(a|0,m|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break h}break b}f=$()|0;_()|0;break a}f=$()|0;_()|0;if(F[g+19|0]>=0){break a}Kb(H[g+8>>2]);break a}a=H[H[0]+12>>2];H[197455]=0;aa(a|0,0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}id(h)}xb=g+96|0;return}f=$()|0;_()|0;break a}ha(0)|0;_()|0;Zb();X()}f=$()|0;_()|0}id(h);ea(f|0);X()}function Jh(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=xb-16|0;xb=h;b=H[a+344>>2]+1|0;H[a+344>>2]=b;a:{if(b>>>0>2]){break a}if(I[a+398|0]){H[a+344>>2]=0;Nb(H[a+352>>2],0,H[a+336>>2]+1|0);b:{g=I[a+399|0];f=g+1|0;b=f&255;if(b>>>0>6){break b}e=I[b+269960|0];d=(e+H[a+320>>2]|0)+(I[b+269953|0]^-1)|0;H[a+340>>2]=(d>>>0)/(e>>>0);c:{if(I[a+208|0]&2){break c}c=I[b+269859|0];b=(c+H[a+324>>2]|0)+(I[b+269852|0]^-1)|0;H[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0){break c}f=g+2|0;b=f&255;if(b>>>0>6){break b}e=I[b+269960|0];d=(e+H[a+320>>2]|0)+(I[b+269953|0]^-1)|0;H[a+340>>2]=(d>>>0)/(e>>>0);if(I[a+208|0]&2){break c}c=I[b+269859|0];b=(c+H[a+324>>2]|0)+(I[b+269852|0]^-1)|0;H[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0){break c}f=g+3|0;b=f&255;if(b>>>0>6){break b}e=I[b+269960|0];d=(e+H[a+320>>2]|0)+(I[b+269953|0]^-1)|0;H[a+340>>2]=(d>>>0)/(e>>>0);if(I[a+208|0]&2){break c}c=I[b+269859|0];b=(c+H[a+324>>2]|0)+(I[b+269852|0]^-1)|0;H[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0){break c}f=g+4|0;b=f&255;if(b>>>0>6){break b}e=I[b+269960|0];d=(e+H[a+320>>2]|0)+(I[b+269953|0]^-1)|0;H[a+340>>2]=(d>>>0)/(e>>>0);if(I[a+208|0]&2){break c}c=I[b+269859|0];b=(c+H[a+324>>2]|0)+(I[b+269852|0]^-1)|0;H[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0){break c}f=g+5|0;b=f&255;if(b>>>0>6){break b}e=I[b+269960|0];d=(e+H[a+320>>2]|0)+(I[b+269953|0]^-1)|0;H[a+340>>2]=(d>>>0)/(e>>>0);if(I[a+208|0]&2){break c}c=I[b+269859|0];b=(c+H[a+324>>2]|0)+(I[b+269852|0]^-1)|0;H[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0){break c}f=g+6|0;b=f&255;if(b>>>0>6){break b}e=I[b+269960|0];d=(e+H[a+320>>2]|0)+(I[b+269953|0]^-1)|0;H[a+340>>2]=(d>>>0)/(e>>>0);if(I[a+208|0]&2){break c}c=I[b+269859|0];b=(c+H[a+324>>2]|0)+(I[b+269852|0]^-1)|0;H[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0){break c}f=g+7|0;if(g>>>0<249){break b}b=f&255;e=I[b+269960|0];d=(e+H[a+320>>2]|0)+(I[b+269953|0]^-1)|0;H[a+340>>2]=(d>>>0)/(e>>>0);if(I[a+208|0]&2){break c}c=I[b+269859|0];b=(c+H[a+324>>2]|0)+(I[b+269852|0]^-1)|0;H[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0){break c}f=g+8|0;d=f&255;if(d>>>0>6){break b}b=I[d+269960|0];H[a+340>>2]=((b+H[a+320>>2]|0)+(I[d+269953|0]^-1)>>>0)/(b>>>0);if(I[a+208|0]&2){break c}b=I[d+269859|0];H[a+328>>2]=((b+H[a+324>>2]|0)+(I[d+269852|0]^-1)>>>0)/(b>>>0)}F[a+399|0]=f;break a}F[a+399|0]=f}if(!(I[a+204|0]&32)){H[a+228>>2]=1;H[a+224>>2]=h+15;d=a+212|0;d:{while(1){if(!H[a+216>>2]){b=H[a+380>>2];e:{while(1){if(b){break e}mc(a,0);b=en(a);H[a+380>>2]=b;if(H[a+348>>2]==1229209940){continue}break}hc(a,269866);X()}f=H[a+272>>2];H[a+216>>2]=f;c=H[a+268>>2];H[a+212>>2]=c;if(b>>>0>>0){H[a+216>>2]=b;f=b}vd(a,c,f);xc(a,c,f);H[a+380>>2]=H[a+380>>2]-H[a+216>>2]}b=Vh(d,1);f:{if(b){if((b|0)==1){if(H[a+380>>2]|(H[a+216>>2]|!H[a+228>>2])){break f}break d}b=a;a=H[a+236>>2];hc(b,a?a:269910);X()}if(H[a+228>>2]){continue}}break}Xb(a,269888)}H[a+228>>2]=0;H[a+200>>2]=H[a+200>>2]|8;H[a+204>>2]=H[a+204>>2]|32}if(H[a+216>>2]?1:H[a+380>>2]){Xb(a,269930)}el(a+212|0);H[a+200>>2]=H[a+200>>2]|8}xb=h+16|0}function x8(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;h=xb+-64|0;xb=h;d=H[a+584>>2];c=Tb(40);H[c>>2]=0;c=sd(d+624|0,1,c,4);k=_()|0;a:{b:{c:{while(1){if(e){break b}H[197455]=0;ia(1569,d|0);e=H[197455];H[197455]=0;if((e|0)==1){break a}i=-1;d:{e:{if(!e){break e}j=H[197456];if(!j){break e}i=Sb(H[e>>2],c,k);if(!i){break d}ja(j|0)}e=_()|0;if((i|0)!=1){break c}continue}break}Kb(c);ed(e,j);X()}g=1}Kb(c);f:{if(!g){break f}if((bB(d,1)|0)!=1){break f}g:{if(I[a+13|0]&4){e=H[a+72>>2];c=H[a+68>>2];g=qg(a);break g}c=H[a+60>>2]-H[a+472>>2]|0;e=H[a+100>>2];e=c>>>0>>0?c:e;c=H[a+56>>2];g=BB(a)}H[d+840>>2]=g;h:{if(!b){b=c;break h}if(J[a+138>>1]!=2){b=c;break h}b=0;g=J[d+834>>1];if(0-g>>>0>c>>>0){b=((c+g|0)-1>>>0)/(g>>>0)|0}c=J[d+836>>1];if(0-c>>>0<=e>>>0){e=0;break h}e=((c+e|0)-1>>>0)/(c>>>0)|0}c=H[d+28>>2];g=H[d+32>>2];if(!(c>>>0>=b>>>0&g>>>0>=e>>>0)){i=H[a+628>>2];H[h+60>>2]=g;H[h+56>>2]=c;H[h+52>>2]=e;H[h+48>>2]=b;sc(i,296306,279957,h+48|0);c=H[d+28>>2]}g=H[d+32>>2];if(!(g>>>0<=e>>>0&b>>>0>=c>>>0)){a=H[a+628>>2];H[h+12>>2]=g;H[h+8>>2]=c;H[h+4>>2]=e;H[h>>2]=b;Pb(a,296306,280373,h);break f}c=H[d+36>>2];e=J[a+138>>1];if((c|0)!=(((e|0)==1?J[a+98>>1]:1)|0)){Pb(H[a+628>>2],296306,280582,0);break f}if(H[d+212>>2]!=J[a+84>>1]){Pb(H[a+628>>2],296306,280710,0);break f}c=H[d+216>>2];b=H[c+8>>2];i:{if((e|0)==1){e=J[d+834>>1];f=J[d+836>>1];c=H[c+12>>2];j:{if((e|0)==(b|0)&(f|0)==(c|0)){break j}g=H[a+628>>2];H[h+44>>2]=f;H[h+40>>2]=e;H[h+36>>2]=c;H[h+32>>2]=b;sc(g,296306,281228,h+32|0);b=H[d+216>>2];if(!(H[b+8>>2]<=J[d+834>>1]&H[b+12>>2]<=J[d+836>>1])){f=0;Pb(H[a+628>>2],296306,281476,0);break f}if(zj(a,33918)){break j}b=H[a+628>>2];c=H[d+216>>2];e=H[c+12>>2];H[h+16>>2]=H[c+8>>2];H[h+20>>2]=e;sc(b,296306,281756,h+16|0);b=H[d+216>>2];G[d+834>>1]=H[b+8>>2];G[d+836>>1]=H[b+12>>2]}b=H[d+36>>2];if((b|0)<2){break i}c=H[d+216>>2];f=1;while(1){e=c+N(f,88)|0;if(!(H[e+8>>2]!=1|H[e+12>>2]!=1)){f=f+1|0;if((b|0)!=(f|0)){continue}break i}break}f=0;Pb(H[a+628>>2],296306,281856,0);break f}if((b|0)==1&H[c+12>>2]==1){break i}Pb(H[a+628>>2],296306,281856,0);break f}k:{l:{if(!(J[a+138>>1]!=1|J[d+832>>1]!=6|H[d+924>>2]!=1)){H[d+40>>2]=3;H[d+44>>2]=2;break l}H[d+40>>2]=0;H[d+44>>2]=0;if(J[a+138>>1]!=1){break l}b=0;f=1556;c=1;if(J[d+834>>1]!=1){break k}c=1;if(J[d+836>>1]!=1){break k}}b=1;f=1546;c=0}H[d+68>>2]=c;H[a+556>>2]=f;H[a+548>>2]=f;H[a+540>>2]=f;f=0;e=0;c=Tb(40);H[c>>2]=0;c=sd(d+624|0,1,c,4);j=_()|0;m:{n:{while(1){if(f){break m}H[197455]=0;aa(977,d|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break a}g=-1;o:{p:{if(!f){break p}i=H[197456];if(!i){break p}g=Sb(H[f>>2],c,j);if(!g){break o}ja(i|0)}f=_()|0;if((g|0)!=1){break n}continue}break}Kb(c);ed(f,i);X()}e=1}Kb(c);f=(e|0)!=0;if(!e|b){break f}b=H[a+584>>2];a=H[d+216>>2];c=0;f=0;g=H[d+36>>2];q:{if((g|0)>0){while(1){i=H[a+8>>2];j=H[a+12>>2];k=YA(b,H[a+28>>2]<<3,j<<3);e=0;if(!k){break q}H[(b+(f<<2)|0)+844>>2]=k;a=a+88|0;c=N(i,j)+c|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}}H[b+888>>2]=c;e=1}if(!e){f=0;break f}H[d+884>>2]=8;f=1}xb=h- -64|0;return f|0}a=$()|0;Kb(c);ea(a|0);X()}function Kd(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,w=0,y=0,B=0,C=0,D=0,E=0,F=0;o=xb-16|0;xb=o;A(+b);h=v(1)|0;g=v(0)|0;A(+a);d=v(1)|0;c=v(0)|0;r=h>>>20|0;s=r&2047;t=s-1086|0;j=d>>>20|0;a:{b:{if(t>>>0>4294967167&j-2047>>>0>=4294965250){break b}f=h<<1|g>>>31;l=g<<1;p=f-!l|0;if((p|0)==-2097153&(l-1|0)==-1|p>>>0>4292870143){e=1;if(!(f|l)|!c&(d|0)==1072693248){break a}g=!l&(f|0)==-2097152|f>>>0<4292870144;f=c;c=d<<1|c>>>31;d=f<<1;if(!(g&(!d&(c|0)==-2097152|c>>>0<4292870144))){e=a+b;break a}if(!d&(c|0)==2145386496){break a}e=(!(h>>>31|0)|0)==(c>>>0<2145386496|0)?0:b*b;break a}f=d<<1|c>>>31;l=c<<1;p=l-1|0;f=f-!l|0;if((f|0)==-2097153&(p|0)==-1|f>>>0>4292870143){e=a*a;if((d|0)<0){e=(Vx(g,h)|0)==1?-e:e}if((h|0)>0|(h|0)>=0){break a}M[o+8>>3]=1/e;e=M[o+8>>3];break a}if((d|0)<0){f=Vx(g,h);if(!f){a=a-a;e=a/a;break a}j=j&2047;q=((f|0)==1)<<18;d=d&2147483647}if(t>>>0<=4294967167){e=1;if(!c&(d|0)==1072693248){break a}if(s>>>0<=957){e=((d|0)==1072693248&(c|0)!=0|d>>>0>1072693248?b:-b)+1;break a}if((!c&(d|0)==1072693248|d>>>0<1072693248)!=(r>>>0<2048|0)){c=xb-16|0;M[c+8>>3]=3.105036184601418e231;e=M[c+8>>3]*3.105036184601418e231;break a}c=xb-16|0;M[c+8>>3]=1.2882297539194267e-231;e=M[c+8>>3]*1.2882297539194267e-231;break a}if(j){break b}A(+(a*4503599627370496));d=v(1)|0;c=v(0)|0;d=(d&2147483647)-54525952|0}x(0,g&-134217728);x(1,h|0);u=+z();f=d;h=d-1072076117|0;d=c;g=0;c=f-((h&-1048576)+(c>>>0>>0)|0)|0;f=d-g|0;g=c;x(0,0);x(1,(f- -2147483648>>>0<2147483648?c+1|0:c)|0);e=+z();c=(h>>>13&127)<<5;i=M[c+762136>>3];a=e*i+-1;n=M[95260];k=a*n;w=a*k;y=+(h>>20);B=y*M[95258]+M[c+762152>>3];x(0,f|0);x(1,g|0);C=i*(+z()-e);a=a+C;m=B+a;e=w+m;n=n*a;i=a*n;m=w+(m-e)+(C*(k+n)+(y*M[95259]+M[c+762160>>3]+(a+(B-m))))+a*i*(i*(i*(a*M[95266]+M[95265])+(a*M[95264]+M[95263]))+(a*M[95262]+M[95261]));i=e+m;A(+i);c=v(1)|0;x(0,v(0)&-134217728);x(1,c|0);k=+z();a=u*k;A(+a);c=v(1)|0;v(0)|0;c:{j=c>>>20&2047;if(j-969>>>0<63){break c}if(j>>>0<=968){a=a+1;e=q?-a:a;break a}d=j>>>0<1033;j=0;if(d){break c}if((c|0)<0){c=xb-16|0;M[c+8>>3]=q?-1.2882297539194267e-231:1.2882297539194267e-231;e=M[c+8>>3]*1.2882297539194267e-231;break a}c=xb-16|0;M[c+8>>3]=q?-3.105036184601418e231:3.105036184601418e231;e=M[c+8>>3]*3.105036184601418e231;break a}i=(b-u)*k+(m+(e-i)+(i-k))*b;b=M[94433];e=a*M[94432]+b;b=e-b;a=i+(b*M[94435]+(b*M[94434]+a));b=a*a;i=b*b*(a*M[94439]+M[94438]);b=b*(a*M[94437]+M[94436]);A(+e);v(1)|0;g=v(0)|0;c=g<<4&2032;a=i+(b+(M[c+755568>>3]+a));c=c+755576|0;d=H[c>>2];h=H[c+4>>2];c=g+q|0;c=c<<13;f=0;d=f+d|0;c=c+h|0;c=d>>>0>>0?c+1|0:c;h=d;if(!j){d=xb-16|0;xb=d;d:{if(!(g&-2147483648)){x(0,h|0);x(1,c-1058013184|0);b=+z();e=(b*a+b)*5.486124068793689e303;break d}f=c+1071644672|0;g=f;x(0,h|0);x(1,f|0);b=+z();i=b*a;a=i+b;if(P(a)<1){c=d;H[c+8>>2]=0;H[c+12>>2]=1048576;M[c+8>>3]=M[c+8>>3]*2.2250738585072014e-308;x(0,0);x(1,g&-2147483648);e=a<0?-1:1;k=a+e;a=k+(i+(b-a)+(a+(e-k)))-e;a=(D=+z(),E=a,F=a==0,F?D:E)}e=a*2.2250738585072014e-308}xb=d+16|0;break a}x(0,h|0);x(1,c|0);b=+z();e=b*a+b}xb=o+16|0;return e}function nca(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;a=Nb(a,0,256);d=H[b>>2]+c|0;g=I[d+3|0];f=I[d+1|0];e=g+f|0;i=I[d+4|0];h=I[d|0];j=i+h|0;k=e+j|0;d=I[d+2|0];H[a>>2]=(k+d<<3)-5120;e=N(j-e|0,6476)+512|0;d=N(k-(d<<2)|0,2896);H[a+16>>2]=e-d>>10;H[a+8>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=N(g+f|0,6810)+512|0;H[a+12>>2]=d+N(g,-17828)>>10;H[a+4>>2]=d+N(f,4209)>>10;d=H[b+4>>2]+c|0;g=I[d+3|0];f=I[d+1|0];e=g+f|0;i=I[d+4|0];h=I[d|0];j=i+h|0;k=e+j|0;d=I[d+2|0];H[a+32>>2]=(k+d<<3)-5120;e=N(j-e|0,6476)+512|0;d=N(k-(d<<2)|0,2896);H[a+48>>2]=e-d>>10;H[a+40>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=N(g+f|0,6810)+512|0;H[a+44>>2]=d+N(g,-17828)>>10;H[a+36>>2]=d+N(f,4209)>>10;d=H[b+8>>2]+c|0;g=I[d+3|0];f=I[d+1|0];e=g+f|0;i=I[d+4|0];h=I[d|0];j=i+h|0;k=e+j|0;d=I[d+2|0];H[a+64>>2]=(k+d<<3)-5120;e=N(j-e|0,6476)+512|0;d=N(k-(d<<2)|0,2896);H[a+80>>2]=e-d>>10;H[a+72>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=N(g+f|0,6810)+512|0;H[a+76>>2]=d+N(g,-17828)>>10;H[a+68>>2]=d+N(f,4209)>>10;d=H[b+12>>2]+c|0;g=I[d+3|0];f=I[d+2|0];e=I[d+1|0];i=e+g|0;h=I[d+4|0];j=I[d|0];k=h+j|0;l=i+k|0;d=(f+l<<3)-5120|0;H[a+96>>2]=d;i=N(k-i|0,6476)+512|0;f=N(l-(f<<2)|0,2896);H[a+112>>2]=i-f>>10;H[a+104>>2]=f+i>>10;f=e-g|0;e=j-h|0;g=N(f+e|0,6810)+512|0;H[a+108>>2]=g+N(f,-17828)>>10;H[a+100>>2]=g+N(e,4209)>>10;b=H[b+16>>2]+c|0;c=I[b+4|0];g=I[b|0];f=c+g|0;e=I[b+3|0];i=I[b+1|0];h=e+i|0;j=N(f-h|0,6476)+512|0;f=f+h|0;h=I[b+2|0];b=N(f-(h<<2)|0,2896);H[a+144>>2]=j-b>>10;H[a+136>>2]=b+j>>10;e=i-e|0;g=g-c|0;b=N(e+g|0,6810)+512|0;H[a+140>>2]=b+N(e,-17828)>>10;c=(f+h<<3)-5120|0;f=H[a>>2];e=c+f|0;i=H[a+32>>2];h=i+d|0;j=N(e-h|0,8290)+16384|0;e=e+h|0;h=H[a+64>>2];k=N(e-(h<<2)|0,3707);H[a+128>>2]=j-k>>15;H[a+64>>2]=j+k>>15;H[a>>2]=N(e+h|0,10486)+16384>>15;d=i-d|0;f=f-c|0;c=N(d+f|0,8716)+16384|0;H[a+96>>2]=c+N(d,-22820)>>15;H[a+32>>2]=c+N(f,5387)>>15;b=b+N(g,4209)>>10;c=H[a+4>>2];d=b+c|0;g=H[a+100>>2];f=H[a+36>>2];e=g+f|0;i=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+68>>2];h=N(d-(e<<2)|0,3707);H[a+132>>2]=i-h>>15;H[a+68>>2]=h+i>>15;H[a+4>>2]=N(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+100>>2]=b+N(d,-22820)>>15;H[a+36>>2]=b+N(c,5387)>>15;b=H[a+136>>2];c=H[a+8>>2];d=b+c|0;g=H[a+104>>2];f=H[a+40>>2];e=g+f|0;i=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+72>>2];h=N(d-(e<<2)|0,3707);H[a+136>>2]=i-h>>15;H[a+72>>2]=h+i>>15;H[a+8>>2]=N(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+104>>2]=b+N(d,-22820)>>15;H[a+40>>2]=b+N(c,5387)>>15;b=H[a+140>>2];c=H[a+12>>2];d=b+c|0;g=H[a+108>>2];f=H[a+44>>2];e=g+f|0;i=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+76>>2];h=N(d-(e<<2)|0,3707);H[a+140>>2]=i-h>>15;H[a+76>>2]=h+i>>15;H[a+12>>2]=N(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+108>>2]=b+N(d,-22820)>>15;H[a+44>>2]=b+N(c,5387)>>15;b=H[a+144>>2];c=H[a+16>>2];d=b+c|0;g=H[a+112>>2];f=H[a+48>>2];e=g+f|0;i=N(d-e|0,8290)+16384|0;d=d+e|0;e=H[a+80>>2];h=N(d-(e<<2)|0,3707);H[a+144>>2]=i-h>>15;H[a+80>>2]=h+i>>15;H[a+16>>2]=N(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=N(d+c|0,8716)+16384|0;H[a+112>>2]=b+N(d,-22820)>>15;H[a+48>>2]=b+N(c,5387)>>15}function sn(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;b=0;a:{if(!a){break a}n=H[a+12>>2];b=n>>31;m=H[a+8>>2];c=m>>31;i=H[a+4>>2];h=i>>31;f=H[a>>2];a=f>>31;d=(b^n)-b|0;j=(c^m)-c|0;k=(h^i)-h|0;e=(a^f)-a|0;a=(e|0)<(k|0)?k:e;a=(a|0)<(j|0)?j:a;b=(a|0)<(d|0)?d:a;if(b>>>0>=23171){b:{c:{if(b>>>0<=65535){a=((b<<16|11584)>>>0)/23170|0;h=a;break c}a=2147483647;h=2147483647;if(b>>>0>1518469119){break c}g=b<<16|11585;c=b>>>16|0;a=Q(c);b=32-a|0;c=g>>>b|c<>>0)/23170|0;c=N(h,-23170)+c|0;a=g<>>31;c=(g>>>0<23170?0:-23170)+g|0;h=h<<1|g>>>0>23169;a=a<<1;b=b-1|0;if(b){continue}break}a=h>>31;a=(a^h)-a|0;if(h){break c}c=2147483647;h=0;j=1;break b}b=f?(e|0)!=2147483647?e:2147483647:2147483647;b=i?b>>>0>k>>>0?k:b:b;b=m?b>>>0>j>>>0?j:b:b;b=n?b>>>0>d>>>0?d:b:b;if(b>>>0<=(a>>>17^65535)>>>0){c=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;j=0;break b}c=a>>>1|0;j=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>j>>>0)|0;if(b>>>0>=a>>>0){c=2147483647;j=0;break b}e=Q(b);d=32-e|0;b=j>>>d|b<>>0)/(a>>>0)|0;k=b-N(a,c)|0;b=j<>>31;k=e-(a>>>0>e>>>0?0:a)|0;c=c<<1|a>>>0<=e>>>0;b=b<<1;d=d-1|0;if(d){continue}break}}b=0;if(!((h|0)<0?0-c|0:c)){break a}k=2147483647;c=2147483647;d:{if(j){break d}b=f>>31;b=(b^f)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){c=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break d}d=a>>>1|0;g=d+(b<<16)|0;b=(b>>>16|0)+(d>>>0>g>>>0)|0;if(b>>>0>=a>>>0){break d}l=Q(b);d=32-l|0;b=g>>>d|b<>>0)/(a>>>0)|0;e=b-N(a,c)|0;b=g<>>31;e=g-(a>>>0>g>>>0?0:a)|0;c=c<<1|a>>>0<=g>>>0;b=b<<1;d=d-1|0;if(d){continue}break}}g=(h|0)<0;o=f>>31|1;p=0-o|0;e:{if(j){break e}b=i>>31;b=(b^i)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){k=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break e}d=a>>>1|0;e=d+(b<<16)|0;b=(b>>>16|0)+(e>>>0>>0)|0;if(b>>>0>=a>>>0){break e}l=Q(b);d=32-l|0;b=e>>>d|b<>>0)/(a>>>0)|0;f=b-N(a,k)|0;b=e<>>31;f=e-(a>>>0>e>>>0?0:a)|0;k=k<<1|a>>>0<=e>>>0;b=b<<1;d=d-1|0;if(d){continue}break}}o=g?p:o;b=i>>31|1;p=g?0-b|0:b;e=2147483647;d=2147483647;f:{if(j){break f}b=m>>31;b=(b^m)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){d=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break f}f=a>>>1|0;g=f+(b<<16)|0;b=(b>>>16|0)+(f>>>0>g>>>0)|0;if(b>>>0>=a>>>0){break f}l=Q(b);i=32-l|0;b=g>>>i|b<>>0)/(a>>>0)|0;f=b-N(a,d)|0;b=g<>>31;f=g-(a>>>0>g>>>0?0:a)|0;d=d<<1|a>>>0<=g>>>0;b=b<<1;i=i-1|0;if(i){continue}break}}g=(o|0)<0;l=0-c|0;o=(p|0)<0;p=0-k|0;b=m>>31|1;q=(h|0)<0;m=((q?0-b|0:b)|0)<0;r=0-d|0;g:{if(j){break g}b=n>>31;b=(b^n)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){e=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break g}h=a>>>1|0;f=h+(b<<16)|0;b=(b>>>16|0)+(f>>>0>>0)|0;if(b>>>0>=a>>>0){break g}i=Q(b);h=32-i|0;b=f>>>h|b<>>0)/(a>>>0)|0;j=b-N(a,e)|0;b=f<>>31;j=f-(a>>>0>f>>>0?0:a)|0;e=e<<1|a>>>0<=f>>>0;b=b<<1;h=h-1|0;if(h){continue}break}}i=o?p:k;m=m?r:d;a=n>>31|1;n=((q?0-a|0:a)|0)<0?0-e|0:e;f=g?l:c}a=N(f,n);c=N(i,m);b=0;if((a|0)==(c|0)){break a}b=a-c|0;a=b>>31;b=(((N(f,f)+N(i,i)|0)+N(m,m)|0)+N(n,n)>>>0)/((a^b)-a>>>0)>>>0<51}return b}function NC(a){a=a|0;var b=0,c=0,d=0,e=0;d=H[a+420>>2];b=H[d+12>>2];c=(b+H[d+16>>2]|0)-1&-65536;c=((b|0)>(c|0)?c|32768:c)<>2];H[d+12>>2]=c;b=H[d+32>>2];a:{if(c>>>0>=134217728){b:{if((b|0)<0){break b}if(H[d+24>>2]){while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;c:{if(c){break c}if(zb[H[b+12>>2]](a)|0){break c}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+24>>2]-1|0;H[d+24>>2]=b;if(b){continue}break}b=H[d+32>>2]}c=H[a+24>>2];e=H[c>>2];H[c>>2]=e+1;F[e|0]=b+1;b=H[c+4>>2]-1|0;H[c+4>>2]=b;d:{if(b){break d}if(zb[H[c+12>>2]](a)|0){break d}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(H[d+32>>2]!=254){break b}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;if(c){break b}if(zb[H[b+12>>2]](a)|0){break b}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+20>>2];H[d+20>>2]=0;H[d+24>>2]=b+H[d+24>>2];break a}e:{if(!b){H[d+24>>2]=H[d+24>>2]+1;break e}if((b|0)<0){break e}if(H[d+24>>2]){while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;f:{if(c){break f}if(zb[H[b+12>>2]](a)|0){break f}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+24>>2]-1|0;H[d+24>>2]=b;if(b){continue}break}b=H[d+32>>2]}c=H[a+24>>2];e=H[c>>2];H[c>>2]=e+1;F[e|0]=b;b=H[c+4>>2]-1|0;H[c+4>>2]=b;if(b){break e}if(zb[H[c+12>>2]](a)|0){break e}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(!H[d+20>>2]){break a}if(H[d+24>>2]){while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;g:{if(c){break g}if(zb[H[b+12>>2]](a)|0){break g}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+24>>2]-1|0;H[d+24>>2]=b;if(b){continue}break}}while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;h:{if(c){break h}if(zb[H[b+12>>2]](a)|0){break h}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;i:{if(c){break i}if(zb[H[b+12>>2]](a)|0){break i}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+20>>2]-1|0;H[d+20>>2]=b;if(b){continue}break}}c=H[d+12>>2];j:{if(!(c&134215680)){break j}if(H[d+24>>2]){while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;k:{if(c){break k}if(zb[H[b+12>>2]](a)|0){break k}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+24>>2]-1|0;H[d+24>>2]=b;if(b){continue}break}c=H[d+12>>2]}b=H[a+24>>2];e=H[b>>2];H[b>>2]=e+1;F[e|0]=c>>>19;c=H[b+4>>2]-1|0;H[b+4>>2]=c;l:{if(c){break l}if(zb[H[b+12>>2]](a)|0){break l}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}m:{if((H[d+12>>2]&133693440)!=133693440){break m}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;if(c){break m}if(zb[H[b+12>>2]](a)|0){break m}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}e=H[d+12>>2];if(!(e&522240)){break j}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=e>>>11;c=H[b+4>>2]-1|0;H[b+4>>2]=c;n:{if(c){break n}if(zb[H[b+12>>2]](a)|0){break n}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if((H[d+12>>2]&522240)!=522240){break j}d=H[a+24>>2];b=H[d>>2];H[d>>2]=b+1;F[b|0]=0;b=H[d+4>>2]-1|0;H[d+4>>2]=b;if(b){break j}if(zb[H[d+12>>2]](a)|0){break j}d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}}function r8(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=O(0),l=O(0),m=0;e=xb-144|0;xb=e;f=H[a+584>>2];Ym(a,1,0);H[f+36>>2]=1;H[f+40>>2]=0;b=Tb(40);H[b>>2]=0;b=sd(f+624|0,1,b,4);i=_()|0;a:{b:{while(1){if(d){break a}H[197455]=0;ia(996,f|0);d=H[197455];H[197455]=0;if((d|0)==1){a=$()|0;Kb(b);ea(a|0);X()}c=-1;c:{d:{if(!d){break d}g=H[197456];if(!g){break d}c=Sb(H[d>>2],b,i);if(!c){break c}ja(g|0)}d=_()|0;if((c|0)!=1){break b}continue}break}Kb(b);ed(d,g);X()}h=1}Kb(b);e:{f:{g:{if(!h){break g}b=J[a+90>>1];G[f+832>>1]=b;h:{i:{switch(b-3|0){case 3:G[f+834>>1]=J[a+204>>1];G[f+836>>1]=J[a+206>>1];H[e+80>>2]=e+140;if(Cc(a,532,e+80|0)){break h}b=J[a+84>>1];H[e+112>>2]=0;b=1<>2]=k;l=O(b>>1);L[e+128>>2]=l;L[e+124>>2]=k;L[e+120>>2]=l;L[e+116>>2]=k;H[e+64>>2]=e+112;rc(a,532,e- -64|0);break h;case 0:case 1:a=H[a+628>>2];H[e+96>>2]=b;Pb(a,296320,282305,e+96|0);break g;default:break i}}G[f+834>>1]=1;G[f+836>>1]=1}b=J[a+84>>1];if((b|0)!=8){a=H[a+628>>2];H[e+48>>2]=b;Pb(a,296320,282462,e+48|0);break g}H[f+72>>2]=8;j:{if(I[a+13|0]&4){b=J[f+836>>1]<<3;if(K[a+72>>2]%(b>>>0)|0){a=H[a+628>>2];H[e+32>>2]=b;Pb(a,296320,282571,e+32|0);break g}b=J[f+834>>1]<<3;if(!(K[a+68>>2]%(b>>>0)|0)){break j}a=H[a+628>>2];H[e+16>>2]=b;Pb(a,296320,282810,e+16|0);break g}b=H[a+100>>2];if(b>>>0>=K[a+60>>2]){break j}j=b;b=J[f+836>>1]<<3;if(!((j>>>0)%(b>>>0)|0)){break j}a=H[a+628>>2];H[e>>2]=b;Pb(a,296320,282980,e);break g}k:{if(I[f+928|0]&3){b=H[f+912>>2];if(I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24)|(I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]<<16|I[b+7|0]<<24))?b:0){break k}b=H[a+584>>2];Ym(a,0,0);if(!_A(b,H[b+920>>2])){break g}c=0;i=0;d=Tb(40);H[d>>2]=0;g=sd(b+624|0,1,d,4);j=_()|0;l:{m:{while(1){if(c){break l}H[197455]=0;Uq(b,1);d=H[197455];H[197455]=0;if((d|0)==1){break f}h=-1;n:{o:{if(!d){break o}c=H[197456];if(!c){break o}h=Sb(H[d>>2],g,j);if(!h){break n}ja(c|0)}c=_()|0;if((h|0)!=1){break m}continue}break}break e}i=1}Kb(g);if(!i){break g}c=H[b+928>>2];p:{if(!(c&1)){break p}d=H[b+88>>2];if(d){H[d+128>>2]=0}if(J[b+832>>1]!=6){break p}d=H[b+92>>2];if(!d){break p}H[d+128>>2]=0}q:{if(!(c&2)){break q}c=H[b+120>>2];if(c){H[c+276>>2]=0}c=H[b+136>>2];if(c){H[c+276>>2]=0}if(J[b+832>>1]!=6){break q}c=H[b+124>>2];if(c){H[c+276>>2]=0}c=H[b+140>>2];if(!c){break q}H[c+276>>2]=0}c=H[b+912>>2];if(c){Kb(c)}H[b+916>>2]=1e3;c=Tb(1e3);H[b+912>>2]=c;if(!c){H[b+916>>2]=0;Pb(H[H[b+828>>2]+628>>2],283247,287330,0);break g}H[b+796>>2]=1563;H[b+792>>2]=1564;H[b+788>>2]=1565;H[b+24>>2]=b+780;c=0;i=0;d=Tb(40);H[d>>2]=0;g=sd(b+624|0,1,d,4);j=_()|0;r:{s:{while(1){if(c){break r}H[197455]=0;ia(1571,b|0);d=H[197455];H[197455]=0;if((d|0)==1){break f}h=-1;t:{u:{if(!d){break u}c=H[197456];if(!c){break u}h=Sb(H[d>>2],g,j);if(!h){break t}ja(c|0)}c=_()|0;if((h|0)!=1){break s}continue}break}break e}i=1}Kb(g);if(!i){break g}H[a+12>>2]=H[a+12>>2]|8;H[a+48>>2]=H[a+48>>2]|4;break k}H[a+48>>2]=H[a+48>>2]&-5}H[f+796>>2]=1566;H[f+792>>2]=1567;H[f+788>>2]=1568;H[f+24>>2]=f+780;m=1}xb=e+144|0;return m|0}a=$()|0;Kb(g);ea(a|0);X()}Kb(g);ed(d,c);X()}function Hla(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;a=d;i=jG(b+28|0);f=H[i+4>>2];a:{b:{if((f|0)==65536){g=258}else{if((f|0)!=131072){break b}f=H[i+8>>2];f=I[f|0]|I[f+1|0]<<8;if(!f){break b}g=(f<<8|f>>>8)&65535}if((a|0)<0){a=ac(c)}if(!a){break b}f=H[i+28>>2];c:{if(f){break c}l=g<<1;if(!g){while(1){f=Tb(l);h=0;if(!f){break a}as(f,0,i);h=H[i+28>>2];H[i+28>>2]=h?h:f;if(!h){break c}Kb(f);f=H[i+28>>2];if(!f){continue}break c}}p=g&65528;m=g&7;q=g-1>>>0<7;while(1){f=Tb(l);if(!f){break b}n=0;h=0;o=0;if(!q){while(1){G[(h<<1)+f>>1]=h;j=h|1;G[(j<<1)+f>>1]=j;j=h|2;G[(j<<1)+f>>1]=j;j=h|3;G[(j<<1)+f>>1]=j;j=h|4;G[(j<<1)+f>>1]=j;j=h|5;G[(j<<1)+f>>1]=j;j=h|6;G[(j<<1)+f>>1]=j;j=h|7;G[(j<<1)+f>>1]=j;h=h+8|0;o=o+8|0;if((p|0)!=(o|0)){continue}break}}if(m){while(1){G[(h<<1)+f>>1]=h;h=h+1|0;n=n+1|0;if((m|0)!=(n|0)){continue}break}}as(f,g,i);h=H[i+28>>2];H[i+28>>2]=h?h:f;if(!h){break c}Kb(f);f=H[i+28>>2];if(!f){continue}break}}if(!g){break b}l=g-1|0;n=H[i+20>>2];o=H[i+16>>2];p=H[i+24>>2];m=H[i+8>>2];g=H[i+4>>2];q=(g|0)==131072;j=(g|0)!=65536;d:{while(1){r=k+l|0;i=J[(r&-2)+f>>1];e:{if(!q){h=0;g=0;if(i>>>0>257|j){break e}g=i<<2;h=H[g+122816>>2];g=H[g+122820>>2]+(h^-1)|0;h=h+119104|0;break e}h=0;g=0;s=I[m|0]|I[m+1|0]<<8;if(i>>>0>=((s<<8|s>>>8)&65535)>>>0){break e}g=m+(i<<1)|0;g=I[g+2|0]|I[g+3|0]<<8;i=(g<<8|g>>>8)&65535;if(i>>>0<=257){g=i<<2;h=H[g+122816>>2];g=H[g+122820>>2]+(h^-1)|0;h=h+119104|0;break e}g=0;i=i-258|0;if(i>>>0>=o>>>0){break e}g=p+H[n+(i<<2)>>2]|0;h=g+1|0;g=I[g|0]}i=r>>>1|0;if((a|0)!=(g|0)){g=a-g|0}else{g=md(c,h,a)}f:{if((g|0)<0){l=i-1|0;break f}if(!g){break d}k=i+1|0}if((k|0)<=(l|0)){continue}break}h=0;break a}k=1;a=(i<<1)+f|0;h=0;if(!a){break a}H[e>>2]=J[a>>1]}h=k}if(h){b=1}else{a=H[b+64>>2];g:{if(a){break g}while(1){f=H[b>>2];if(!f){a=163632;break g}a=oc(1,244);h:{if(a){g=Nn(a,f);f=H[b+64>>2];H[b+64>>2]=f?f:a;if(!f){break g}ol(g);Kb(a);break h}a=163632;f=H[b+64>>2];H[b+64>>2]=f?f:163632;if(!f){break g}}a=H[b+64>>2];if(!a){continue}break}}b=0;if((d|0)<0){d=ac(c)}i:{if(!d){break i}f=H[a+236>>2];if((f|0)<=0){break i}k=H[a+240>>2];b=f-1|0;f=0;j:{while(1){g=b+f>>>1|0;i=k+(g<<4)|0;h=H[i+4>>2];i=gc(c,H[i>>2],d>>>0>>0?d:h);h=i?i:d-h|0;k:{if((h|0)<0){b=g-1|0;break k}if(!h){break j}f=g+1|0}if((b|0)>=(f|0)){continue}break}b=0;break i}f=k+(g<<4)|0;d=J[f+12>>1];l:{b=H[a+52>>2];m:{n:{if((b|0)!=163632){d=ql(b,d,H[a+216>>2]);break n}o:{switch(H[a+172>>2]){case 0:b=0;if(d>>>0<229){break n}break i;case 1:a=0;b=164;d=d&65535;p:{q:{while(1){c=a+b>>>1|0;g=J[(c<<2)+107792>>1];r:{if(g>>>0>d>>>0){b=c-1|0;break r}if((d|0)==(g|0)){break q}a=c+1|0}if((a|0)<=(b|0)){continue}break}d=0;break p}d=I[(c<<2)+107794|0]}break n;case 2:break o;default:break m}}a=0;b=85;d=d&65535;s:{t:{while(1){c=a+b>>>1|0;g=J[(c<<2)+108464>>1];u:{if(g>>>0>d>>>0){b=c-1|0;break u}if((d|0)==(g|0)){break t}a=c+1|0}if((a|0)<=(b|0)){continue}break}d=0;break s}d=I[(c<<2)+108466|0]}}if(d){break l}d=J[f+12>>1]}a=d&65535;d=0;if(!a){break l}b=0;break i}H[e>>2]=d;b=1}}return b|0}function FZ(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;i=xb+-64|0;xb=i;H[i+60>>2]=0;h=b+108|0;n=H[a+8>>2];a:{b:{if(H[b+72>>2]!=H[a+16>>2]){H[i+60>>2]=6;break b}if(!((c|0)!=2&c>>>0<=4)){H[i+60>>2]=19;break b}if(F[H[b+156>>2]+4|0]&1){e=H[b+88>>2];if(e){zb[H[n+8>>2]](n,e)}H[b+88>>2]=0;e=H[b+156>>2];H[e+4>>2]=H[e+4>>2]&-2}if(tr(b,c,d)){H[i+60>>2]=98;break b}f=b+76|0;e=H[f>>2];c:{if(!e){break c}g=H[b+84>>2];if(!g){break c}p=b,q=Ub(n,g,0,e,0,i+60|0),H[p+88>>2]=q;if(H[i+60>>2]){break b}e=H[b+156>>2];H[e+4>>2]=H[e+4>>2]|1;e=H[b+76>>2]<<6;l=(I[b+94|0]==6?(e|0)/3|0:e)-(H[b+104>>2]<<6)|0;m=0-(H[b+100>>2]<<6)|0;if(d){m=H[d>>2]+m|0;l=H[d+4>>2]+l|0}if(l|m){je(h,m,l)}d:{e:{if(c>>>0<=1){if(I[b+124|0]&64){d=a;g=xb+-64|0;xb=g;a=H[h+4>>2];if(a){e=(G[h+2>>1]<<3)+a|0}else{e=0}c=98;j=H[f+4>>2];f:{if(j&1073733632){break f}H[g+56>>2]=j<<2;H[g+48>>2]=0;H[g+52>>2]=0;H[g+28>>2]=31;H[g+24>>2]=3;H[g+20>>2]=h;H[g+44>>2]=g+8;j=H[f>>2];H[g+60>>2]=j<<2;k=H[f+12>>2];c=H[f+8>>2];H[g+12>>2]=c;H[g+8>>2]=k+((c|0)<0?0:N(c,j-1|0));if(a>>>0>>0){c=a;while(1){H[c>>2]=H[c>>2]<<2;H[c+4>>2]=H[c+4>>2]<<2;c=c+8|0;if(e>>>0>c>>>0){continue}break}c=zb[H[d+56>>2]](H[d+52>>2],g+16|0)|0;if(a>>>0>=e>>>0){break f}while(1){H[a>>2]=H[a>>2]/4;H[a+4>>2]=H[a+4>>2]/4;a=a+8|0;if(e>>>0>a>>>0){continue}break}break f}c=zb[H[d+56>>2]](H[d+52>>2],g+16|0)|0}xb=g- -64|0;break e}H[i+16>>2]=1;H[i+12>>2]=h;H[i+8>>2]=f;c=zb[H[a+56>>2]](H[a+52>>2],i+8|0)|0;break e}g:{switch(c-3|0){default:a=H[i+60>>2];break d;case 0:d=xb+-64|0;xb=d;e=H[a+4>>2];H[d+48>>2]=0;H[d+52>>2]=0;H[d+28>>2]=32;H[d+24>>2]=3;H[d+20>>2]=h;H[d+44>>2]=d+8;H[d+56>>2]=H[f+4>>2];g=H[f>>2];H[d+60>>2]=g;j=H[f+12>>2];c=H[f+8>>2];H[d+12>>2]=c;H[d+8>>2]=j+((c|0)<0?0:N(c,g-1|0));f=e+184|0;je(h,0-H[e+180>>2]|0,0-H[f>>2]|0);c=zb[H[a+56>>2]](H[a+52>>2],d+16|0)|0;h:{if(c){g=e+180|0;break h}H[d+8>>2]=H[d+8>>2]+1;g=e+188|0;f=e+192|0;je(h,H[e+180>>2]-H[g>>2]|0,H[e+184>>2]-H[f>>2]|0);c=zb[H[a+56>>2]](H[a+52>>2],d+16|0)|0;if(c){break h}H[d+8>>2]=H[d+8>>2]+1;g=e+196|0;f=e+200|0;je(h,H[e+188>>2]-H[g>>2]|0,H[e+192>>2]-H[f>>2]|0);c=zb[H[a+56>>2]](H[a+52>>2],d+16|0)|0}je(h,H[g>>2],H[f>>2]);xb=d- -64|0;break e;case 1:break g}}e=xb-48|0;xb=e;d=H[a+4>>2];k=H[f+8>>2];H[e+8>>2]=1;H[e+4>>2]=h;H[e>>2]=f;H[f+8>>2]=N(k,3);H[f>>2]=K[f>>2]/3;je(h,0-H[d+184>>2]|0,H[d+180>>2]);c=zb[H[a+56>>2]](H[a+52>>2],e)|0;g=H[d+184>>2];j=H[d+180>>2];i:{if(c){break i}H[f+12>>2]=k+H[f+12>>2];je(h,g-H[d+192>>2]|0,H[d+188>>2]-j|0);c=zb[H[a+56>>2]](H[a+52>>2],e)|0;j=H[d+188>>2];g=H[d+192>>2];o=H[f+12>>2]-k|0;H[f+12>>2]=o;if(c){break i}k=k<<1;H[f+12>>2]=k+o;je(h,g-H[d+200>>2]|0,H[d+196>>2]-j|0);c=zb[H[a+56>>2]](H[a+52>>2],e)|0;j=H[d+196>>2];g=H[d+200>>2];H[f+12>>2]=H[f+12>>2]-k}je(h,g,0-j|0);H[f+8>>2]=H[f+8>>2]/3;H[f>>2]=N(H[f>>2],3);xb=e+48|0}a=c;H[i+60>>2]=a}if(a){break b}}H[b+72>>2]=1651078259;break a}if(!(F[H[b+156>>2]+4|0]&1)){break a}a=H[b+88>>2];if(a){zb[H[n+8>>2]](n,a)}H[b+88>>2]=0;a=H[b+156>>2];H[a+4>>2]=H[a+4>>2]&-2}if(l|m){je(h,0-m|0,0-l|0)}xb=i- -64|0;return H[i+60>>2]}function sg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{i=I[a+409|0];if(i){d=H[a+320>>2];f=H[a+376>>2];if((f|0)!=((i>>>0>=8?N(i>>>3|0,d):N(d,i)+7>>>3|0)|0)?f:0){break c}if(!d){break b}g=H[a+356>>2];k=I[a+399|0];l=N(d,i);h=l&7;d:{if(!h){f=0;j=0;break d}f=((i>>>0>7?N(i>>>3|0,d):l+7>>>3|0)+b|0)-1|0;m=I[f|0];j=255<>>h|0}g=g+1|0;e:{f:{g:{if(!I[a+398|0]){break g}e=H[a+208>>2];if(!(e&2)|k>>>0>5){break g}h:{i:{switch(c|0){case 0:h=k&1;break h;case 1:break i;default:break g}}h=1;if(!(k&1)){break g}}h=h<<3-(k+1>>>1|0)&7;if(h>>>0>=d>>>0){break e}if(i>>>0<=7){l=(i|0)==1?0:(i|0)==2?1:2;h=8/(i>>>0)|0;j:{if(e&65536){a=(N(l,12)+(k<<1&508)|0)+269712|0;if(c){break j}a=(N(l,24)+(k<<2)|0)+269568|0;break j}a=(N(l,12)+(k<<1&508)|0)+269748|0;if(c){break j}a=(N(l,24)+(k<<2)|0)+269640|0}a=H[a>>2];while(1){c=a&255;if(c){if((c|0)!=255){c=I[g|0]&a|I[b|0]&(a^-1)}else{c=I[g|0]}F[b|0]=c}if(d>>>0<=h>>>0){break f}a=kma(a,24);g=g+1|0;b=b+1|0;d=d-h|0;continue}}if(i&7){break a}j=i>>>3|0;h=N(j,h);e=N(d,j)-h|0;f=j;if(c){a=j<<(6-k>>>1);f=a>>>0>>0?a:e}a=g+h|0;d=b+h|0;c=j<<(7-k>>>1);k:{switch(f-1|0){case 2:F[d|0]=I[a|0];F[d+1|0]=I[a+1|0];F[d+2|0]=I[a+2|0];if(c>>>0>=e>>>0){break e}while(1){d=c+d|0;a=a+c|0;F[d|0]=I[a|0];F[d+1|0]=I[a+1|0];F[d+2|0]=I[a+2|0];e=e-c|0;if(c>>>0>>0){continue}break};break e;case 0:F[d|0]=I[a|0];if(c>>>0>=e>>>0){break e}while(1){d=c+d|0;a=a+c|0;F[d|0]=I[a|0];e=e-c|0;if(c>>>0>>0){continue}break};break e;case 1:while(1){F[d|0]=I[a|0];F[d+1|0]=I[a+1|0];if(c>>>0>=e>>>0){break e}d=c+d|0;a=a+c|0;e=e-c|0;if(e>>>0>1){continue}break};F[d|0]=I[a|0];return;default:break k}}l:{if(d&1|f>>>0>15|(a&1|f&1)){break l}if(c&1){break l}if(!(d&3|a&3|(f&3|c&3))){b=c-f>>>2<<2;while(1){g=f;while(1){H[d>>2]=H[a>>2];d=d+4|0;a=a+4|0;g=g-4|0;if(g){continue}break}if(c>>>0>=e>>>0){break e}d=b+d|0;a=a+b|0;e=e-c|0;if(f>>>0<=e>>>0){continue}break}f=e-1|0;c=e&7;if(c){b=0;while(1){F[d|0]=I[a|0];e=e-1|0;d=d+1|0;a=a+1|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}if(f>>>0<7){break e}while(1){F[d|0]=I[a|0];F[d+1|0]=I[a+1|0];F[d+2|0]=I[a+2|0];F[d+3|0]=I[a+3|0];F[d+4|0]=I[a+4|0];F[d+5|0]=I[a+5|0];F[d+6|0]=I[a+6|0];F[d+7|0]=I[a+7|0];d=d+8|0;a=a+8|0;e=e-8|0;if(e){continue}break}break e}b=c-f>>>1<<1;while(1){g=f;while(1){G[d>>1]=J[a>>1];d=d+2|0;a=a+2|0;g=g-2|0;if(g){continue}break}if(c>>>0>=e>>>0){break e}d=b+d|0;a=a+b|0;e=e-c|0;if(f>>>0<=e>>>0){continue}break}f=e-1|0;c=e&7;if(c){b=0;while(1){F[d|0]=I[a|0];e=e-1|0;d=d+1|0;a=a+1|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}if(f>>>0<7){break e}while(1){F[d|0]=I[a|0];F[d+1|0]=I[a+1|0];F[d+2|0]=I[a+2|0];F[d+3|0]=I[a+3|0];F[d+4|0]=I[a+4|0];F[d+5|0]=I[a+5|0];F[d+6|0]=I[a+6|0];F[d+7|0]=I[a+7|0];d=d+8|0;a=a+8|0;e=e-8|0;if(e){continue}break}break e}Ob(d,a,f);if(c>>>0>=e>>>0){break e}while(1){d=c+d|0;a=a+c|0;e=e-c|0;f=e>>>0>f>>>0?f:e;Ob(d,a,f);if(c>>>0>>0){continue}break}break e}Ob(b,g,i>>>0>7?N(i>>>3|0,d):l+7>>>3|0)}if(!f){break e}F[f|0]=I[f|0]&(j^-1)|j&m}return}hc(a,269475);X()}hc(a,269500);X()}hc(a,269536);X()}hc(a,269784);X()}function Kb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!a){break a}d=a-8|0;b=H[a-4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=H[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=H[d+8>>2];b=b>>>3|0;c=H[d+12>>2];if((c|0)==(e|0)){i=789324,j=H[197331]&kma(-2,b),H[i>>2]=j;break b}H[e+12>>2]=c;H[c+8>>2]=e;break b}h=H[d+24>>2];b=H[d+12>>2];c:{if((d|0)!=(b|0)){c=H[d+8>>2];H[c+12>>2]=b;H[b+8>>2]=c;break c}d:{e=d+20|0;c=H[e>>2];if(c){break d}e=d+16|0;c=H[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=H[e>>2];if(c){continue}e=b+16|0;c=H[b+16>>2];if(c){continue}break}H[g>>2]=0}if(!h){break b}e=H[d+28>>2];c=(e<<2)+789628|0;e:{if(H[c>>2]==(d|0)){H[c>>2]=b;if(b){break e}i=789328,j=H[197332]&kma(-2,e),H[i>>2]=j;break b}H[h+(H[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}H[b+24>>2]=h;c=H[d+16>>2];if(c){H[b+16>>2]=c;H[c+24>>2]=b}c=H[d+20>>2];if(!c){break b}H[b+20>>2]=c;H[c+24>>2]=b;break b}b=H[f+4>>2];if((b&3)!=3){break b}H[197333]=a;H[f+4>>2]=b&-2;H[d+4>>2]=a|1;H[a+d>>2]=a;return}if(d>>>0>=f>>>0){break a}b=H[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if(H[197337]==(f|0)){H[197337]=d;a=H[197334]+a|0;H[197334]=a;H[d+4>>2]=a|1;if(H[197336]!=(d|0)){break a}H[197333]=0;H[197336]=0;return}if(H[197336]==(f|0)){H[197336]=d;a=H[197333]+a|0;H[197333]=a;H[d+4>>2]=a|1;H[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){e=H[f+8>>2];b=b>>>3|0;c=H[f+12>>2];if((c|0)==(e|0)){i=789324,j=H[197331]&kma(-2,b),H[i>>2]=j;break g}H[e+12>>2]=c;H[c+8>>2]=e;break g}h=H[f+24>>2];b=H[f+12>>2];h:{if((f|0)!=(b|0)){c=H[f+8>>2];H[c+12>>2]=b;H[b+8>>2]=c;break h}i:{e=f+20|0;c=H[e>>2];if(c){break i}e=f+16|0;c=H[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=H[e>>2];if(c){continue}e=b+16|0;c=H[b+16>>2];if(c){continue}break}H[g>>2]=0}if(!h){break g}e=H[f+28>>2];c=(e<<2)+789628|0;j:{if(H[c>>2]==(f|0)){H[c>>2]=b;if(b){break j}i=789328,j=H[197332]&kma(-2,e),H[i>>2]=j;break g}H[h+(H[h+16>>2]==(f|0)?16:20)>>2]=b;if(!b){break g}}H[b+24>>2]=h;c=H[f+16>>2];if(c){H[b+16>>2]=c;H[c+24>>2]=b}c=H[f+20>>2];if(!c){break g}H[b+20>>2]=c;H[c+24>>2]=b}H[d+4>>2]=a|1;H[a+d>>2]=a;if(H[197336]!=(d|0)){break f}H[197333]=a;return}H[f+4>>2]=b&-2;H[d+4>>2]=a|1;H[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+789364|0;c=H[197331];a=1<>2]}H[b+8>>2]=d;H[a+12>>2]=d;H[d+12>>2]=b;H[d+8>>2]=a;return}e=31;H[d+16>>2]=0;H[d+20>>2]=0;if(a>>>0<=16777215){b=a>>>8|0;g=b+1048320>>>16&8;b=b<>>16&4;b=b<>>16&2;b=(b<>>15|0)-(c|(e|g))|0;e=(b<<1|a>>>b+21&1)+28|0}H[d+28>>2]=e;g=(e<<2)+789628|0;l:{m:{c=H[197332];b=1<>2]=d;H[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=H[g>>2];while(1){c=b;if((H[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=c+(b&4)|0;b=H[g+16>>2];if(b){continue}break}H[g+16>>2]=d;H[d+24>>2]=c}H[d+12>>2]=d;H[d+8>>2]=d;break l}a=H[c+8>>2];H[a+12>>2]=d;H[c+8>>2]=d;H[d+24>>2]=0;H[d+12>>2]=c;H[d+8>>2]=a}a=H[197339]-1|0;H[197339]=a?a:-1}}function Yy(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c=H[a>>2];c:{if(!c){a=H[a+16>>2];if(!a){break c}break b}d=Qb(688);e=H[c>>2];H[197455]=0;Im(d,e);e=H[197455];H[197455]=0;if((e|0)==1){a=$()|0;_()|0;Kb(d);ea(a|0);X()}H[d+4>>2]=H[c+4>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=H[c+12>>2];H[d+16>>2]=H[c+16>>2];H[d+392>>2]=H[c+392>>2];M[d+400>>3]=M[c+400>>3];M[d+408>>3]=M[c+408>>3];M[d+416>>3]=M[c+416>>3];M[d+424>>3]=M[c+424>>3];M[d+432>>3]=M[c+432>>3];M[d+440>>3]=M[c+440>>3];M[d+448>>3]=M[c+448>>3];M[d+456>>3]=M[c+456>>3];M[d+464>>3]=M[c+464>>3];M[d+472>>3]=M[c+472>>3];M[d+480>>3]=M[c+480>>3];M[d+488>>3]=M[c+488>>3];M[d+496>>3]=M[c+496>>3];M[d+504>>3]=M[c+504>>3];M[d+512>>3]=M[c+512>>3];M[d+520>>3]=M[c+520>>3];M[d+528>>3]=M[c+528>>3];M[d+536>>3]=M[c+536>>3];M[d+544>>3]=M[c+544>>3];M[d+552>>3]=M[c+552>>3];M[d+560>>3]=M[c+560>>3];M[d+568>>3]=M[c+568>>3];M[d+576>>3]=M[c+576>>3];M[d+584>>3]=M[c+584>>3];F[d+592|0]=I[c+592|0];F[d+593|0]=I[c+593|0];F[d+594|0]=I[c+594|0];F[d+595|0]=I[c+595|0];F[d+596|0]=I[c+596|0];F[d+597|0]=I[c+597|0];F[d+598|0]=I[c+598|0];F[d+599|0]=I[c+599|0];H[d+600>>2]=H[c+600>>2];H[d+604>>2]=H[c+604>>2];H[d+608>>2]=H[c+608>>2];H[d+612>>2]=H[c+612>>2];H[d+616>>2]=H[c+616>>2];H[d+620>>2]=H[c+620>>2];M[d+632>>3]=M[c+632>>3];M[d+624>>3]=M[c+624>>3];H[d+640>>2]=H[c+640>>2];H[d+644>>2]=H[c+644>>2];H[d+648>>2]=H[c+648>>2];H[d+652>>2]=H[c+652>>2];H[d+656>>2]=H[c+656>>2];H[d+660>>2]=H[c+660>>2];H[d+664>>2]=H[c+664>>2];H[d+668>>2]=H[c+668>>2];H[d+672>>2]=H[c+672>>2];H[d+676>>2]=H[c+676>>2];H[d+680>>2]=H[c+680>>2];if(!d){a=H[a+16>>2];if(!a){break c}break b}if((b|0)<0){d:{if(H[a+12>>2]){b=H[H[a+4>>2]+16>>2];if((b|0)<0){break d}}f=a+8|0;c=H[f>>2];e:{if(c){f=a+8|0;while(1){b=H[c+16>>2];f:{if((b|0)>=0){e=H[c>>2];if(e){break f}f=c;break e}if((b|0)==-1){break e}f=c+4|0;e=H[c+4>>2];if(!e){break e}c=f}f=c;c=e;continue}}c=f}if(H[f>>2]){break c}e=Qb(24);H[e+16>>2]=-1;H[e+8>>2]=c;H[e>>2]=0;H[e+4>>2]=0;H[e+20>>2]=d;H[f>>2]=e;b=H[H[a+4>>2]>>2];if(b){H[a+4>>2]=b;e=H[f>>2]}Og(H[a+8>>2],e);break a}g=b-1|0;e=a+8|0;c=H[e>>2];g:{if(c){e=a+8|0;while(1){f=H[c+16>>2];h:{if((f|0)>=(b|0)){f=H[c>>2];if(f){break h}e=c;break g}if((f|0)>=(g|0)){break g}e=c+4|0;f=H[c+4>>2];if(!f){break g}c=e}e=c;c=f;continue}}c=e}if(H[e>>2]){break c}f=Qb(24);H[f+16>>2]=g;H[f+8>>2]=c;H[f>>2]=0;H[f+4>>2]=0;H[f+20>>2]=d;H[e>>2]=f;b=H[H[a+4>>2]>>2];if(b){H[a+4>>2]=b;f=H[e>>2]}Og(H[a+8>>2],f);break a}g=a+8|0;e=H[g>>2];i:{if(e){f=g;c=e;while(1){h=H[c+16>>2]<(b|0);f=h?f:c;c=H[(h<<2)+c>>2];if(c){continue}break}if(!((f|0)==(g|0)|H[f+16>>2]>(b|0))){a=H[f+20>>2];if(a){si(a);Kb(a)}H[f+20>>2]=d;return}g=a+8|0;while(1){c=H[e+16>>2];j:{if((c|0)>(b|0)){c=H[e>>2];if(c){break j}g=e;break i}if((b|0)<=(c|0)){break i}g=e+4|0;c=H[e+4>>2];if(!c){break i}e=g}g=e;e=c;continue}}e=g}if(H[g>>2]){break c}c=Qb(24);H[c+16>>2]=b;H[c+8>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+20>>2]=d;H[g>>2]=c;b=H[H[a+4>>2]>>2];if(b){H[a+4>>2]=b;c=H[g>>2]}Og(H[a+8>>2],c);H[a+12>>2]=H[a+12>>2]+1}return}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}H[a+12>>2]=H[a+12>>2]+1}function tG(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,r=0;a:{g=H[b+4>>2];b:{if(g>>>0>a>>>0){break b}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<4){break b}j=H[b+12>>2]-4|0;H[b+12>>2]=j;if((j|0)<=0){break b}e=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(e>>>0>89478484){break b}if(!e){return 1}i=a+4|0;if(i>>>0>>0|d>>>0>>0){break b}e=N(e,48);if(e>>>0>d-i>>>0){break b}e=j-e|0;H[b+12>>2]=e;if((e|0)<=0){break b}f=1;j=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);r=j<<24|j<<8&16711680|(j>>>8&65280|j>>>24);if(!r){break b}while(1){j=N(p,48)+a|0;f=j+4|0;if(f>>>0>>0|d>>>0>>0|d-f>>>0<48){break a}n=H[c>>2];H[b+12>>2]=e-48;if((e|0)<49){break a}d=0;h=H[b+4>>2];c:{d:{if(h>>>0>f>>>0){break d}g=H[b+8>>2];if(g>>>0>>0|g-f>>>0<4){break d}m=H[b+12>>2]-4|0;H[b+12>>2]=m;if((m|0)<=0){break d}k=F[f|0];if((k|0)<0){break d}i=I[j+12|0]|I[j+13|0]<<8|(I[j+14|0]<<16|I[j+15|0]<<24);o=i<<24|i<<8&16711680|(i>>>8&65280|i>>>24);e=0;if(o>>>0>536870910){break c}e=1;if(!o){break c}n=n+(I[f+3|0]|(I[f+1|0]<<16|(k&255)<<24|I[f+2|0]<<8))|0;e=0;if(n>>>0>>0){break c}e=0;if(g>>>0>>0){break c}e=o<<3;if(e>>>0>g-n>>>0){break d}d=m-e|0;H[b+12>>2]=d;m=0;e=0;if((d|0)<=0){break c}while(1){e=0;d=n+(m<<3)|0;g=H[b+4>>2];e:{if(d>>>0>>0){break e}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<8){break e}i=H[b+12>>2];h=i-8|0;H[b+12>>2]=h;if((h|0)<=0){break e}h=I[d+2|0]|I[d+3|0]<<8;h=(h<<8|h>>>8)&65535;k=I[d|0]|I[d+1|0]<<8;k=(k<<8|k>>>8)&65535;if(h>>>0>>0){break e}l=g;g=d+4|0;if(l>>>0>g>>>0|f>>>0>>0|f-g>>>0<4){break e}f=i-12|0;H[b+12>>2]=f;if((f|0)<=0){break e}e=F[d+4|0];d=I[d+7|0]|(I[d+5|0]<<16|e<<24|I[d+6|0]<<8);f=(d|0)!=0&(e|0)<0;e=!f;if(f|!d){break e}e=1;h=(h-k|0)+1|0;f:{g:{k=H[b+4>>2];d=d+n|0;if(k>>>0>d>>>0){break g}i=H[b+8>>2];if(i>>>0>>0|i-d>>>0<8){break g}q=H[b+12>>2];l=q-8|0;H[b+12>>2]=l;f=1;if((l|0)<=0){break g}h:{i:{j:{k:{l=I[d|0]|I[d+1|0]<<8;switch(((l<<8|l>>>8)&65535)-1|0){case 2:break j;case 0:break k;default:break h}}f=q-16|0;H[b+12>>2]=f;if((f|0)<=0){break g}h=h+1|0;if(h>>>0>1073741822){break g}if(!h){break i}d=d+8|0;if(d>>>0>>0|d>>>0>i>>>0){break g}l=i-d|0;d=h<<2;if(l>>>0>>0){break g}d=f-d|0;H[b+12>>2]=d;f=0;if((d|0)>0){break i}break h}f=q-16|0;H[b+12>>2]=f;if((f|0)<=0){break g}h=h+1|0;if(h>>>0>2147483646){break g}if(!h){break i}d=d+8|0;if(d>>>0>>0|d>>>0>i>>>0){break g}l=i-d|0;d=h<<1;if(l>>>0>>0){break g}d=f-d|0;H[b+12>>2]=d;f=0;if((d|0)<=0){break h}}f=1}break f}f=0}if(f){break e}e=0;d=H[b+28>>2];if(d>>>0>31){break e}H[b+28>>2]=d+1;if(!I[b+24|0]){break e}F[g|0]=0;F[g+1|0]=0;F[g+2|0]=0;F[g+3|0]=0;e=1}d=e;if(!d){break d}m=m+1|0;if((o|0)!=(m|0)){continue}break}}e=d}if(!e){break a}g=H[b+4>>2];e=j+20|0;if(g>>>0>e>>>0){break a}d=H[b+8>>2];if(e>>>0>d>>>0|d-e>>>0<12){break a}f=H[b+12>>2];e=f-12|0;H[b+12>>2]=e;if((e|0)<=0){break a}e=j+32|0;if(e>>>0>>0|d>>>0>>0|d-e>>>0<12){break a}e=f-24|0;H[b+12>>2]=e;f=0;if((e|0)<=0){break b}f=1;p=p+1|0;if((r|0)!=(p|0)){continue}break}}return f}return 0}function OF(a,b,c){var d=0,e=0;d=H[b+16>>2]<<10;b=H[c+144>>2];a:{if(b){break a}while(1){a=H[c+48>>2];if(!a){b=163632;break a}b=oc(1,12);b:{if(!b){b=163632;break b}Yh(b,a)}a=H[c+144>>2];H[c+144>>2]=a?a:b;if(!a){break a}af(b);b=H[c+144>>2];if(!b){continue}break}}a=H[b>>2];b=H[(a?a:163632)+16>>2];a=b>>>11|0;e=e|b<<21;d=a|d;b=H[c+148>>2];c:{if(b){break c}while(1){a=H[c+48>>2];if(!a){b=163632;break c}b=oc(1,12);d:{if(!b){b=163632;break d}hl(b,a)}a=H[c+148>>2];H[c+148>>2]=a?a:b;if(!a){break c}af(b);b=H[c+148>>2];if(!b){continue}break}}c=1;e:{f:{a=H[b>>2];a=H[(a?a:163632)+16>>2]|e;if((d|0)<=987147&a>>>0<=2743134887|(d|0)<987147){if((d|0)<=452609&a>>>0<=1732289589|(d|0)<452609){if((d|0)<=196614&a>>>0<=843062357|(d|0)<196614){if((d|0)<=192512&a>>>0<=553651553|(d|0)<192512){if((a|0)==1606425686&(d|0)==184326){break e}if((a|0)!=520097548|(d|0)!=192512){break f}break e}if((a|0)==553651554&(d|0)==192512){break e}if((a|0)!=734010454|(d|0)!=196614){break f}break e}if((d|0)<=440321&a>>>0<=1732288213|(d|0)<440321){if((a|0)==843062358&(d|0)==196614){break e}if((a|0)!=1732286926|(d|0)!=440321){break f}break e}if((a|0)==1732288214&(d|0)==440321){break e}if((a|0)!=1732286668|(d|0)!=452609){break f}break e}if((d|0)<=864259&a>>>0<=2428547489|(d|0)<864259){if((d|0)<=501761&a>>>0<=2092999333|(d|0)<501761){if((a|0)==1732289590&(d|0)==452609){break e}if((a|0)!=2092999598|(d|0)!=489473){break f}break e}if((a|0)==2092999334&(d|0)==501761){break e}if((a|0)!=-1820280774|(d|0)!=851971){break f}break e}if((d|0)<=931846&a>>>0<=583055987|(d|0)<931846){if((a|0)==-1866419806&(d|0)==864259){break e}if((a|0)!=557888902|(d|0)!=919558){break f}break e}if((a|0)==583055988&(d|0)==931846|(a|0)==1614866372&(d|0)==950283){break e}if((a|0)!=1640033596|(d|0)!=962571){break f}break e}g:{if((d|0)<=1071126&a>>>0<=4139790647|(d|0)<1071126){if((d|0)<=1030155&a>>>0<=4072730923|(d|0)<1030155){if((d|0)<=1017867&a>>>0<=4081118127|(d|0)<1017867){if((a|0)==-1551832408&(d|0)==987147){break e}if((a|0)!=-1560219632|(d|0)!=999435){break f}break e}if((a|0)==-213849168&(d|0)==1017867){break e}if((a|0)!=-629130764|(d|0)!=1028124){break f}break e}b=a-61346|0;if(((a>>>0<61346)+1030156|0)==(d|0)&b>>>0<=6){break g}b=d-((a>>>0<4286641516)+1042443|0)|0;e=a+8325780|0;if(!b&e>>>0>6|b){if((a|0)!=-222236372|(d|0)!=1030155){break f}break e}switch(e-1|0){case 0:case 1:case 2:case 3:case 4:break f;default:break e}}if((d|0)<=1083427&a>>>0<=239092841|(d|0)<1083427){if((d|0)<=1071139&a>>>0<=230704581|(d|0)<1071139){if((a|0)==-155176648&(d|0)==1071126){break e}if((a|0)!=226509528|(d|0)!=1071139){break f}break e}if((a|0)==230704582&(d|0)==1071139){break e}if((a|0)!=-150983126|(d|0)!=1083414){break f}break e}if((d|0)<=1361973&a>>>0<=2852184657|(d|0)<1361973){if((a|0)==239092842&(d|0)==1083427){break e}if((a|0)!=243286402|(d|0)!=1083427){break f}break e}b=(d|0)==1361973;if(b&(a|0)==-1442782638|b&(a|0)==-1442781604){break e}break f}switch(b-1|0){case 0:case 1:case 2:case 3:case 4:break f;default:break e}}c=0}return c}function fja(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;a:{while(1){b:{c:{if(K[a+116>>2]<=261){Bn(a);c=H[a+116>>2];if(!(c>>>0>=262|b)){return 0}if(!c){break a}if(c>>>0<3){break c}}e=H[a+108>>2];c=H[a+84>>2]&(I[(e+H[a+56>>2]|0)+2|0]^H[a+72>>2]<>2]);H[a+72>>2]=c;c=H[a+68>>2]+(c<<1)|0;d=J[c>>1];G[H[a+64>>2]+((e&H[a+52>>2])<<1)>>1]=d;G[c>>1]=e;if(!d|H[a+44>>2]-262>>>0>>0){break c}d=$D(a,d);H[a+96>>2]=d;break b}d=H[a+96>>2]}d:{if(d>>>0>=3){c=H[a+5792>>2];e=H[a+108>>2]-H[a+112>>2]|0;G[H[a+5796>>2]+(c<<1)>>1]=e;H[a+5792>>2]=c+1;i=c+H[a+5784>>2]|0;c=d-3|0;F[i|0]=c;c=((I[(c&255)+242896|0]<<2)+a|0)+1176|0;G[c>>1]=J[c>>1]+1;c=e-1&65535;c=((I[(c>>>0<256?c:(c>>>7|0)+256|0)+242384|0]<<2)+a|0)+2440|0;G[c>>1]=J[c>>1]+1;d=H[a+96>>2];c=H[a+116>>2]-d|0;H[a+116>>2]=c;j=H[a+5788>>2]-1|0;k=H[a+5792>>2];if(!(c>>>0<3|d>>>0>K[a+128>>2])){g=d-1|0;H[a+96>>2]=g;h=H[a+72>>2];d=H[a+108>>2];l=H[a+52>>2];m=H[a+64>>2];n=H[a+68>>2];o=H[a+84>>2];i=H[a+56>>2];f=H[a+88>>2];while(1){c=d;d=c+1|0;H[a+108>>2]=d;h=(I[(c+i|0)+3|0]^h<>2]=h;e=(h<<1)+n|0;G[((d&l)<<1)+m>>1]=J[e>>1];G[e>>1]=d;g=g-1|0;H[a+96>>2]=g;if(g){continue}break}d=c+2|0;H[a+108>>2]=d;if((j|0)!=(k|0)){continue}break d}H[a+96>>2]=0;d=d+H[a+108>>2]|0;H[a+108>>2]=d;e=H[a+56>>2]+d|0;c=I[e|0];H[a+72>>2]=c;H[a+72>>2]=H[a+84>>2]&(I[e+1|0]^c<>2]);if((j|0)!=(k|0)){continue}break d}d=I[H[a+56>>2]+H[a+108>>2]|0];c=H[a+5792>>2];G[H[a+5796>>2]+(c<<1)>>1]=0;H[a+5792>>2]=c+1;F[c+H[a+5784>>2]|0]=d;c=(d<<2)+a|0;G[c+148>>1]=J[c+148>>1]+1;H[a+116>>2]=H[a+116>>2]-1;d=H[a+108>>2]+1|0;H[a+108>>2]=d;if(H[a+5792>>2]!=(H[a+5788>>2]-1|0)){continue}}e=H[a+92>>2];if((e|0)>=0){c=e+H[a+56>>2]|0}else{c=0}qf(a,c,d-e|0,0);H[a+92>>2]=H[a+108>>2];f=H[a>>2];e=H[f+28>>2];ue(e);d=H[e+20>>2];c=H[f+16>>2];d=c>>>0>d>>>0?d:c;e:{if(!d){break e}Ob(H[f+12>>2],H[e+16>>2],d);H[f+12>>2]=d+H[f+12>>2];H[e+16>>2]=d+H[e+16>>2];H[f+20>>2]=d+H[f+20>>2];H[f+16>>2]=H[f+16>>2]-d;c=H[e+20>>2];H[e+20>>2]=c-d;if((c|0)!=(d|0)){break e}H[e+16>>2]=H[e+8>>2]}if(H[H[a>>2]+16>>2]){continue}break}return 0}d=H[a+108>>2];H[a+5812>>2]=d>>>0<2?d:2;if((b|0)==4){c=H[a+92>>2];if((c|0)>=0){b=c+H[a+56>>2]|0}else{b=0}qf(a,b,d-c|0,1);H[a+92>>2]=H[a+108>>2];e=H[a>>2];d=H[e+28>>2];ue(d);c=H[d+20>>2];b=H[e+16>>2];c=b>>>0>c>>>0?c:b;f:{if(!c){break f}Ob(H[e+12>>2],H[d+16>>2],c);H[e+12>>2]=c+H[e+12>>2];H[d+16>>2]=c+H[d+16>>2];H[e+20>>2]=c+H[e+20>>2];H[e+16>>2]=H[e+16>>2]-c;b=H[d+20>>2];H[d+20>>2]=b-c;if((b|0)!=(c|0)){break f}H[d+16>>2]=H[d+8>>2]}return(H[H[a>>2]+16>>2]?3:2)|0}g:{if(!H[a+5792>>2]){break g}c=H[a+92>>2];if((c|0)>=0){b=c+H[a+56>>2]|0}else{b=0}qf(a,b,d-c|0,0);H[a+92>>2]=H[a+108>>2];e=H[a>>2];d=H[e+28>>2];ue(d);c=H[d+20>>2];b=H[e+16>>2];c=b>>>0>c>>>0?c:b;h:{if(!c){break h}Ob(H[e+12>>2],H[d+16>>2],c);H[e+12>>2]=c+H[e+12>>2];H[d+16>>2]=c+H[d+16>>2];H[e+20>>2]=c+H[e+20>>2];H[e+16>>2]=H[e+16>>2]-c;b=H[d+20>>2];H[d+20>>2]=b-c;if((b|0)!=(c|0)){break h}H[d+16>>2]=H[d+8>>2]}if(H[H[a>>2]+16>>2]){break g}return 0}return 1}function iD(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=xb+-64|0;xb=f;a:{b:{c:{d:{e:{c=F[b|0];switch(c-97|0){case 17:break c;case 0:case 22:break e;default:break d}}g=(c|0)==119?578:66;break b}H[f>>2]=b;Pb(0,283588,270514,f);break a}g=(I[b+1|0]==43)<<1}c=Tb(ac(245664)+689|0);if(!c){H[f+16>>2]=245664;Pb(a,283588,271677,f+16|0);break a}Id(c,0,688);d=c+688|0;H[c>>2]=d;he(d,245664);G[c+476>>1]=65535;H[c+8>>2]=g&2;H[c+480>>2]=-1;H[c+484>>2]=0;H[c+628>>2]=a;H[c+472>>2]=-1;H[c+648>>2]=1108;H[c+644>>2]=1107;H[c+640>>2]=1106;H[c+636>>2]=1105;H[c+632>>2]=1104;H[c+624>>2]=1110;H[c+620>>2]=1109;Ai(c);a=g?1:2049;d=g&576?a:a|32768;H[c+12>>2]=d;e=I[b|0];f:{if(!e){break f}if(!g){a=b;while(1){g:{h:{i:{switch((e<<24>>24)-66|0){case 33:d=d&-32769;break h;case 1:d=d|32768;break h;case 43:d=d&-2049;break h;case 11:d=d|2048;break h;case 6:d=d&-4|2;break h;case 10:d=d&-4|2;break h;case 0:d=d&-4|1;break h;case 38:break i;default:break g}}d=d|65536}H[c+12>>2]=d}e=I[a+1|0];a=a+1|0;if(e){continue}break}break f}if(!(g&64)){a=b;while(1){j:{k:{l:{switch((e<<24>>24)-66|0){case 6:d=d&-4|2;break k;case 10:d=d&-4|2;break k;case 0:d=d&-4|1;break k;case 38:break l;default:break j}}d=d|65536}H[c+12>>2]=d}e=I[a+1|0];a=a+1|0;if(e){continue}break}break f}a=b;while(1){m:{n:{o:{switch((e<<24>>24)-66|0){case 32:d=d|128;break n;case 0:d=d&-4|1;break n;case 10:d=d&-4|2;break n;case 6:d=d&-4|2;break n;case 38:break o;default:break m}}d=d|65536}H[c+12>>2]=d}e=I[a+1|0];a=a+1|0;if(e){continue}break}}p:{q:{r:{if(!(I[c+9|0]&2)){if((zb[H[c+632>>2]](H[c+628>>2],c+456|0,8)|0)==8){break r}if(!H[c+8>>2]){break q}d=H[c+12>>2]}G[c+458>>1]=42;a=d&128;G[c+456>>1]=a?19789:18761;if(a){a=I[c+459|0];F[c+459|0]=I[c+458|0];F[c+458|0]=a}H[c+460>>2]=0;zb[H[c+640>>2]](H[c+628>>2],0,0)|0;if((zb[H[c+636>>2]](H[c+628>>2],c+456|0,8)|0)!=8){Pb(H[c+628>>2],245664,272996,0);break p}H[c+468>>2]=283616;if(J[c+456>>1]==19789){H[c+12>>2]=H[c+12>>2]|128;a=283680}else{a=283744}H[c+464>>2]=a;if(!an(c)){break p}G[c+32>>1]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;e=c;break a}a=J[c+456>>1];if(!((a|0)==18761|(a|0)==19789)){b=H[c+628>>2];H[f+36>>2]=a;H[f+32>>2]=a;Pb(b,245664,273769,f+32|0);break p}H[c+468>>2]=283616;d=H[c+12>>2];if((a|0)==19789){d=d|128;H[c+12>>2]=d;a=283680}else{a=283744}H[c+464>>2]=a;if(d&128){a=I[c+459|0];F[c+459|0]=I[c+458|0];F[c+458|0]=a;Hh(c+460|0)}s:{t:{u:{a=J[c+458>>1];switch(a-42|0){case 0:break s;case 1:break u;default:break t}}Pb(H[c+628>>2],245664,274344,0);break p}b=H[c+628>>2];H[f+52>>2]=a;H[f+48>>2]=a;Pb(b,245664,274910,f+48|0);break p}H[c+604>>2]=0;H[c+596>>2]=0;H[c+600>>2]=0;a=H[c+12>>2];H[c+12>>2]=a|512;e=c;if(a&65536){break a}b=F[b|0]-97|0;if(b){if((b|0)!=17){break p}H[c+20>>2]=H[c+460>>2];v:{if(!(a&2048)){break v}if(zb[H[c+620>>2]](H[c+628>>2],c+612|0,c+616|0)|0){break v}H[c+12>>2]=H[c+12>>2]&-2049}if(!tB(c)){break p}H[c+608>>2]=-1;H[c+12>>2]=H[c+12>>2]|16;break a}if(an(c)){break a}break p}Pb(H[c+628>>2],245664,272419,0)}e=0;H[c+8>>2]=0;KB(c)}xb=f- -64|0;return e|0}function TB(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;g=H[a>>2];e=I[a+8|0];a:{b:{if(!e){i=c?J[c+8>>1]:0;d=I[a+9|0];if(d>>>0<=7){c:{d:{switch(d-1|0){case 0:i=N(i&1,255);if(!g){break c}e=b+g|0;d=0-g&7;h=g-1|0;f=(h>>>3|0)+b|0;if(h){k=g&-2;h=0;while(1){F[e-1|0]=I[f|0]>>>d&1?-1:0;e=e-2|0;j=f;f=(d|0)==7;j=j-f|0;d=f?0:d+1|0;F[e|0]=I[j|0]>>>d&1?-1:0;f=(d|0)==7;d=f?0:d+1|0;f=j-f|0;h=h+2|0;if((k|0)!=(h|0)){continue}break}}if(!(g&1)){break c}F[e-1|0]=I[f|0]>>>d&1?-1:0;break c;case 1:i=N(i&3,85);if(!g){break c}e=b+g|0;h=g-1|0;f=(h>>>2|0)+b|0;d=((g<<1)+6^-1)&6;if(h){k=g&-2;h=0;while(1){F[e-1|0]=N(I[f|0]>>>d&3,85);e=e-2|0;j=f;f=(d|0)==6;j=j-f|0;d=f?0:d+2|0;F[e|0]=N(I[j|0]>>>d&3,85);f=(d|0)==6;d=f?0:d+2|0;f=j-f|0;h=h+2|0;if((k|0)!=(h|0)){continue}break}}if(!(g&1)){break c}F[e-1|0]=N(I[f|0]>>>d&3,85);break c;case 3:break d;default:break c}}i=N(i&15,17);if(!g){break c}e=b+g|0;d=g<<2&4;h=g-1|0;f=(h>>>1|0)+b|0;if(h){k=g&-2;h=0;while(1){F[e-1|0]=N(I[f|0]>>>d&15,17);e=e-2|0;j=(d|0)==4;f=f-j|0;d=(d|0)!=4;F[e|0]=N(I[f|0]>>>(d<<2)&15,17);f=f-d|0;d=j<<2;h=h+2|0;if((k|0)!=(h|0)){continue}break}}if(!(g&1)){break c}F[e-1|0]=N(I[f|0]>>>d&15,17)}F[a+11|0]=8;F[a+9|0]=8;H[a+4>>2]=g;d=8}if(!c){break a}e:{f:{switch(d-8|0){case 0:if(!g){break e}e=b+g|0;d=(g<<1)+b|0;if((g|0)!=1){b=g&-2;f=0;while(1){c=e-1|0;F[d-1|0]=I[c|0]!=(i|0)?-1:0;F[d-2|0]=I[c|0];e=e-2|0;F[d-3|0]=I[e|0]!=(i|0)?-1:0;d=d-4|0;F[d|0]=I[e|0];f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(!(g&1)){break e}b=e-1|0;F[d-1|0]=I[b|0]!=(i|0)?-1:0;F[d-2|0]=I[b|0];break e;case 8:break f;default:break e}}if(!g){break e}f=(i&65280)>>>8|0;c=H[a+4>>2];e=c+b|0;d=(c<<1)+b|0;b=0;h=i&255;while(1){i=e-1|0;j=d-1|0;e=e-2|0;g:{if((f|0)==I[e|0]){c=0;if((h|0)==I[i|0]){break g}}c=255}F[j|0]=c;F[d-2|0]=c;F[d-3|0]=I[i|0];d=d-4|0;F[d|0]=I[e|0];b=b+1|0;if((g|0)!=(b|0)){continue}break}}F[a+10|0]=2;F[a+8|0]=4;b=I[a+9|0]<<1;F[a+11|0]=b;b=b&254;if(b>>>0>=8){b=N(b>>>3|0,g);break b}b=N(b,g)+7>>>3|0;break b}if(!c|(e|0)!=2){break a}h:{i:{switch(I[a+9|0]-8|0){case 0:if(!g){break h}e=H[a+4>>2]+b|0;d=(g<<2)+b|0;f=J[c+2>>1]&255;k=J[c+4>>1]&255;j=J[c+6>>1]&255;while(1){c=e-1|0;l=d-1|0;b=e-3|0;j:{if(!((f|0)!=I[b|0]|(k|0)!=I[e-2|0])){i=0;if((j|0)==I[c|0]){break j}}i=255}F[l|0]=i;F[d-2|0]=I[c|0];F[d-3|0]=I[e-2|0];d=d-4|0;F[d|0]=I[b|0];e=b;h=h+1|0;if((h|0)!=(g|0)){continue}break};break h;case 8:break i;default:break h}}if(!g){break h}h=J[c+6>>1];k=h>>>8|0;j=J[c+4>>1];l=j>>>8|0;c=J[c+2>>1];m=c>>>8|0;e=H[a+4>>2]+b|0;d=(g<<3)+b|0;b=0;n=c&255;while(1){f=e-1|0;o=d-1|0;c=e-6|0;k:{l:{if(I[c|0]!=(m|0)|I[e-5|0]!=(n|0)|(I[e-4|0]!=(l|0)|I[e-3|0]!=(j&255))){break l}if((k|0)!=I[e-2|0]){break l}i=0;if(I[f|0]==(h&255)){break k}}i=255}F[o|0]=i;F[d-2|0]=i;F[d-3|0]=I[f|0];F[d-4|0]=I[e-2|0];F[d-5|0]=I[e-3|0];F[d-6|0]=I[e-4|0];F[d-7|0]=I[e-5|0];d=d-8|0;F[d|0]=I[c|0];e=c;b=b+1|0;if((g|0)!=(b|0)){continue}break}}F[a+10|0]=4;F[a+8|0]=6;b=I[a+9|0]<<2;F[a+11|0]=b;b=b&252;if(b>>>0>=8){b=N(b>>>3|0,g);break b}b=N(b,g)+7>>>3|0}H[a+4>>2]=b}}function S7(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;i=xb-144|0;xb=i;g=H[a+584>>2];e=H[g+88>>2];a:{b:{if(!e){e=c;break b}d=H[g+100>>2];f=J[d+4>>1]-e|0;c:{if((f|0)>(c|0)){H[g+88>>2]=c+e;e=f;while(1){d:{d=H[d>>2];e=e-1|0;if((e|0)<=(c|0)){break d}if(d){continue}}break}if(!d){e=c;break c}h=b+c|0;e=c;while(1){h=h-1|0;F[h|0]=I[d+6|0];e=e-1|0;if(!e){break c}d=H[d>>2];if(d){continue}break}break c}b=b+f|0;h=b;e=f;while(1){e:{j=H[d>>2];h=h-1|0;F[h|0]=I[d+6|0];e=e-1|0;if(!e){break e}d=j;if(d){continue}}break}H[g+88>>2]=0;e=c-f|0}s=1;if((c|0)<(f|0)){break a}}s=1;q=H[g+112>>2];k=H[g+108>>2];d=H[g+104>>2];o=H[g+84>>2];n=H[g+76>>2];c=H[g+72>>2];m=J[g+64>>1];j=H[a+604>>2];f:{g:{if((e|0)<=0){break g}while(1){f=H[g+92>>2];if((f|0)<(m|0)){b=H[a>>2];f=H[a+628>>2];H[i+16>>2]=H[a+480>>2];sc(f,b,273582,i+16|0);break g}c=I[j|0]|c<<8;h=n+8|0;if((m|0)<=(h|0)){j=j+1|0}else{h=n+16|0;c=I[j+1|0]|c<<8;j=j+2|0}H[g+92>>2]=f-m;h:{i:{j:{n=h-m|0;h=c>>n&o;p=h&65535;switch(p-256|0){case 1:break g;case 0:break j;default:break i}}k=H[g+116>>2]+2064|0;Id(k,0,38888);q=H[g+116>>2]+4080|0;l=H[g+92>>2];if((l|0)<=8){b=H[a>>2];f=H[a+628>>2];H[i+112>>2]=H[a+480>>2];sc(f,b,273582,i+112|0);o=511;m=9;break g}c=I[j|0]|c<<8;k:{if((n|0)>0){j=j+1|0;f=n+8|0;break k}c=I[j+1|0]|c<<8;j=j+2|0;f=n+16|0}H[g+92>>2]=l-9;o=511;m=9;l:{m:{n=f-9|0;f=c>>n;switch((f&511)-256|0){case 1:break g;case 0:break m;default:break l}}b=H[a>>2];c=H[a+628>>2];H[i+128>>2]=H[a+472>>2];Pb(c,b,274210,i+128|0);break f}F[b|0]=f;e=e-1|0;d=H[g+116>>2]+((f&511)<<3)|0;b=b+1|0;break h}n:{l=H[g+116>>2];if(l>>>0<=k>>>0){f=l+40952|0;if(f>>>0>k>>>0){break n}}b=H[a>>2];c=H[a+628>>2];H[i+96>>2]=H[a+472>>2];Pb(c,b,274210,i+96|0);break f}H[k>>2]=d;if(!(d>>>0>>0&d>>>0>=l>>>0)){b=H[a>>2];c=H[a+628>>2];H[i+80>>2]=H[a+472>>2];Pb(c,b,274210,i+80|0);break f}F[k+7|0]=I[d+7|0];G[k+4>>1]=J[d+4>>1]+1;d=p<<3;f=d+l|0;F[k+6|0]=I[(f>>>0>>0?f+7|0:k+7|0)|0];k=k+8|0;if(q>>>0>>0){m=((m|0)<11?m:11)+1|0;o=-1<>>0>=256){r=J[(d+l|0)+4>>1];if(!r){b=H[a>>2];c=H[a+628>>2];H[i+32>>2]=H[a+472>>2];Pb(c,b,276533,i+32|0);break f}if(e>>>0>>0){H[g+100>>2]=f;d=f;o:{while(1){d=H[d>>2];if(!d){break o}if(J[d+4>>1]>(e|0)){continue}break}H[g+88>>2]=e;h=b+e|0;while(1){p:{h=h-1|0;F[h|0]=I[d+6|0];d=H[d>>2];e=e-1|0;if(!e){break p}if(d){continue}}break}if(!d){break o}b=H[a>>2];d=H[a+628>>2];H[i+48>>2]=H[a+472>>2];Pb(d,b,277757,i+48|0)}d=f;break g}p=b+r|0;h=p;d=f;while(1){q:{l=H[d>>2];h=h-1|0;F[h|0]=I[d+6|0];if(!l){break q}d=l;if(b>>>0>>0){continue}}break}if(l){b=H[a>>2];d=H[a+628>>2];H[i+64>>2]=H[a+472>>2];Pb(d,b,277757,i- -64|0);d=f;break g}e=e-r|0;d=f;b=p;break h}F[b|0]=h;e=e-1|0;d=f;b=b+1|0}if((e|0)>0){continue}break}}H[a+604>>2]=j;H[g+112>>2]=q;H[g+108>>2]=k;H[g+104>>2]=d;H[g+84>>2]=o;H[g+76>>2]=n;H[g+72>>2]=c;G[g+64>>1]=m;if((e|0)<=0){break a}b=H[a>>2];c=H[a+628>>2];a=H[a+472>>2];H[i+4>>2]=e;H[i>>2]=a;Pb(c,b,277154,i)}s=0}xb=i+144|0;return s|0}function Ze(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;j=xb-112|0;xb=j;l=i&2147483647;k=e&2147483647;m=k;a:{b:{p=!(b|c);if(!(d|k?k-2147418112>>>0<2147549184:p)){n=l-2147418112|0;if(!h&(n|0)==-2147418112?f|g:(n|0)==-2147418112&(h|0)!=0|n>>>0>2147549184){break b}}if(!(!d&(m|0)==2147418112?p:m>>>0<2147418112)){h=d;i=e|32768;f=b;g=c;break a}if(!(!h&(l|0)==2147418112?!(f|g):l>>>0<2147418112)){i=i|32768;break a}if(!(b|d|(m^2147418112|c))){k=d;d=!(b^f|d^h|(c^g|e^i^-2147483648));h=d?0:k;i=d?2147450880:e;f=d?0:b;g=d?0:c;break a}if(!(f|h|(l^2147418112|g))){break a}if(!(b|d|(c|m))){if(f|h|(g|l)){break a}f=b&f;g=c&g;h=d&h;i=e&i;break a}if(f|h|(g|l)){break b}f=b;g=c;h=d;i=e;break a}k=(l|0)==(m|0);q=k&(d|0)==(h|0)?(c|0)==(g|0)&b>>>0>>0|c>>>0>>0:k&d>>>0>>0|l>>>0>m>>>0;l=q;o=l?f:b;k=l?g:c;m=l?i:e;r=m;p=l?h:d;m=m&65535;e=l?e:i;s=e;h=l?d:h;l=e>>>16&32767;n=r>>>16&32767;if(!n){d=!(m|p);e=d<<6;i=Q(d?o:p)+32|0;d=Q(d?k:m);d=e+((d|0)==32?i:d)|0;He(j+96|0,o,k,p,m,d-15|0);p=H[j+104>>2];m=H[j+108>>2];o=H[j+96>>2];n=16-d|0;k=H[j+100>>2]}f=q?b:f;g=q?c:g;i=s&65535;if(!l){b=!(h|i);c=b<<6;d=Q(b?f:h)+32|0;b=Q(b?g:i);b=c+((b|0)==32?d:b)|0;He(j+80|0,f,g,h,i,b-15|0);l=16-b|0;h=H[j+88>>2];i=H[j+92>>2];g=H[j+84>>2];f=H[j+80>>2]}b=h;i=i<<3|b>>>29;d=b<<3|g>>>29;e=i|524288;b=p;c=m<<3|b>>>29;h=b<<3|k>>>29;i=c;b=f;c=g<<3|b>>>29;b=b<<3;g=r^s;c:{if((l|0)==(n|0)){break c}f=n-l|0;if(f>>>0>127){d=0;e=0;b=1;c=0;break c}He(j- -64|0,b,c,d,e,128-f|0);li(j+48|0,b,c,d,e,f);b=H[j+48>>2]|(H[j+64>>2]|H[j+72>>2]|(H[j+68>>2]|H[j+76>>2]))!=0;c=H[j+52>>2];d=H[j+56>>2];e=H[j+60>>2]}l=h;q=i|524288;f=o;i=k<<3|f>>>29;m=f<<3;p=i;d:{if((g|0)<0){f=0;g=0;h=0;i=0;if(!(b^m|d^l|(c^p|e^q))){break a}o=m-b|0;k=p-((b>>>0>m>>>0)+c|0)|0;f=l-d|0;b=(c|0)==(p|0)&b>>>0>m>>>0|c>>>0>p>>>0;i=(q-((d>>>0>l>>>0)+e|0)|0)-(f>>>0>>0)|0;h=f-b|0;if(i>>>0>524287){break d}b=!(h|i);c=b<<6;d=Q(b?o:h)+32|0;b=Q(b?k:i);b=c+((b|0)==32?d:b)|0;b=b-12|0;He(j+32|0,o,k,h,i,b);n=n-b|0;h=H[j+40>>2];i=H[j+44>>2];o=H[j+32>>2];k=H[j+36>>2];break d}k=c+p|0;f=b+m|0;k=f>>>0>>0?k+1|0:k;o=f;f=(c|0)==(k|0)&b>>>0>f>>>0|c>>>0>k>>>0;c=e+q|0;b=d+l|0;c=b>>>0>>0?c+1|0:c;d=b;b=f+b|0;h=b;i=b>>>0>>0?c+1|0:c;if(!(i&1048576)){break d}o=o&1|((k&1)<<31|o>>>1);c=h;k=c<<31|k>>>1;n=n+1|0;h=(i&1)<<31|c>>>1;i=i>>>1|0}d=0;e=r&-2147483648;if((n|0)>=32767){h=d;i=e|2147418112;f=0;g=0;break a}l=0;e:{if((n|0)>0){l=n;break e}He(j+16|0,o,k,h,i,n+127|0);li(j,o,k,h,i,1-n|0);o=H[j>>2]|(H[j+16>>2]|H[j+24>>2]|(H[j+20>>2]|H[j+28>>2]))!=0;k=H[j+4>>2];h=H[j+8>>2];i=H[j+12>>2]}c=h<<29;n=(k&7)<<29|o>>>3;m=o&7;g=m>>>0>4;f=n+g|0;b=k>>>3|c;k=f>>>0>>0?b+1|0:b;c=f;g=k;b=(b|0)==(k|0)&c>>>0>>0|b>>>0>k>>>0;c=d|((i&7)<<29|h>>>3);b=b+c|0;i=e|(i>>>3&65535|l<<16);i=b>>>0>>0?i+1|0:i;h=b;f:{if((m|0)==4){c=g+0|0;e=f&1;b=f+e|0;c=b>>>0>>0?c+1|0:c;f=b;g=c;c=(d|0)==(c|0)&b>>>0>>0|c>>>0>>0;b=c+h|0;i=b>>>0>>0?i+1|0:i;h=b;break f}if(!m){break a}}}H[a>>2]=f;H[a+4>>2]=g;H[a+8>>2]=h;H[a+12>>2]=i;xb=j+112|0}function dN(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;l=xb-16|0;xb=l;i=pc(a,2496,l+12|0);g=H[l+12>>2];if(!g){H[i>>2]=a;H[i+212>>2]=J[b+120>>1];f=I[b+124|0];a:{if(!f){break a}h=f-1|0;a=i+224|0;g=b+128|0;k=f&7;b:{if(!k){e=f;break b}e=f;while(1){H[a>>2]=G[g>>1];e=e-1|0;g=g+2|0;a=a+12|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}if(h>>>0<7){break a}while(1){H[a>>2]=G[g>>1];H[a+12>>2]=G[g+2>>1];H[a+24>>2]=G[g+4>>1];H[a+36>>2]=G[g+6>>1];H[a+48>>2]=G[g+8>>1];H[a+60>>2]=G[g+10>>1];H[a+72>>2]=G[g+12>>1];H[a+84>>2]=G[g+14>>1];g=g+16|0;a=a+96|0;e=e-8|0;if(e){continue}break}}e=1;H[i+208>>2]=f+1;H[i+8>>2]=J[b+122>>1];f=I[b+125|0];c:{if(!f){break c}k=f-1|0;a=i+20|0;g=b+154|0;j=f&7;d:{if(!j){d=f;break d}h=0;d=f;while(1){H[a>>2]=G[g>>1];d=d-1|0;g=g+2|0;a=a+12|0;h=h+1|0;if((j|0)!=(h|0)){continue}break}}if(k>>>0<7){break c}while(1){H[a>>2]=G[g>>1];H[a+12>>2]=G[g+2>>1];H[a+24>>2]=G[g+4>>1];H[a+36>>2]=G[g+6>>1];H[a+48>>2]=G[g+8>>1];H[a+60>>2]=G[g+10>>1];H[a+72>>2]=G[g+12>>1];H[a+84>>2]=G[g+14>>1];g=g+16|0;a=a+96|0;d=d-8|0;if(d){continue}break}}H[i+4>>2]=f+1;d=0;a=i+412|0;Wu(a,I[b+8|0],b+12|0,I[b+9|0],b+40|0,H[b+116>>2],0);Wu(a,I[b+10|0],b+60|0,I[b+11|0],b+88|0,H[b+116>>2],1);a=I[b+8|0];e:{if(!a){break e}a=a-1|0;f=(a>>>1|0)+1|0;g=f&1;if(a>>>0>=2){k=f&-2;a=b+12|0;h=0;while(1){f=d<<1;j=J[a+(f|6)>>1]-J[a+(f|4)>>1]<<16>>16;f=J[a+(f|2)>>1]-J[a+f>>1]<<16>>16;e=e<<16>>16;e=(e|0)<(f|0)?f:e;e=(e|0)<(j|0)?j:e;d=d+4|0;h=h+2|0;if((k|0)!=(h|0)){continue}break}}if(!g){break e}a=d<<1;d=b+12|0;a=J[(a|2)+d>>1]-J[a+d>>1]<<16>>16;e=(a|0)>(e|0)?a:e}a=I[b+9|0];f:{if(!a){break f}a=a-1|0;d=(a>>>1|0)+1|0;g=d&1;g:{if(a>>>0<2){d=0;break g}k=d&-2;d=0;a=b+40|0;h=0;while(1){f=d<<1;j=J[a+(f|6)>>1]-J[a+(f|4)>>1]<<16>>16;f=J[a+(f|2)>>1]-J[a+f>>1]<<16>>16;e=e<<16>>16;e=(e|0)<(f|0)?f:e;e=(e|0)<(j|0)?j:e;d=d+4|0;h=h+2|0;if((k|0)!=(h|0)){continue}break}}if(!g){break f}a=d<<1;d=b+40|0;a=J[(a|2)+d>>1]-J[a+d>>1]<<16>>16;d=e<<16>>16;e=(a|0)>(d|0)?a:d}a=I[b+10|0];h:{if(!a){break h}a=a-1|0;d=(a>>>1|0)+1|0;g=d&1;i:{if(a>>>0<2){d=0;break i}k=d&-2;d=0;a=b+60|0;h=0;while(1){f=d<<1;j=J[a+(f|6)>>1]-J[a+(f|4)>>1]<<16>>16;f=J[a+(f|2)>>1]-J[a+f>>1]<<16>>16;e=e<<16>>16;e=(e|0)<(f|0)?f:e;e=(e|0)<(j|0)?j:e;d=d+4|0;h=h+2|0;if((k|0)!=(h|0)){continue}break}}if(!g){break h}a=d<<1;d=b+60|0;a=J[(a|2)+d>>1]-J[a+d>>1]<<16>>16;d=e<<16>>16;e=(a|0)>(d|0)?a:d}a=I[b+11|0];j:{if(!a){break j}a=a-1|0;d=(a>>>1|0)+1|0;g=d&1;k:{if(a>>>0<2){d=0;break k}k=d&-2;d=0;a=b+88|0;h=0;while(1){f=d<<1;j=J[a+(f|6)>>1]-J[a+(f|4)>>1]<<16>>16;f=J[a+(f|2)>>1]-J[a+f>>1]<<16>>16;e=e<<16>>16;e=(e|0)<(f|0)?f:e;e=(e|0)<(j|0)?j:e;d=d+4|0;h=h+2|0;if((k|0)!=(h|0)){continue}break}}if(!g){break j}a=d<<1;d=b+88|0;a=J[(a|2)+d>>1]-J[a+d>>1]<<16>>16;d=e<<16>>16;e=(a|0)>(d|0)?a:d}a=dc(1e3,e&65535);d=H[b+108>>2];H[i+2476>>2]=(a|0)>(d|0)?d:a;H[i+2480>>2]=H[b+112>>2];a=H[b+116>>2];H[i+404>>2]=0;H[i+408>>2]=0;H[i+200>>2]=0;H[i+204>>2]=0;H[i+2488>>2]=a;g=H[l+12>>2]}H[c>>2]=i;xb=l+16|0;return g|0}function oka(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;j=xb-640|0;xb=j;h=H[b+80>>2];a:{b:{a=c;if(d>>>0<=a>>>0){break b}while(1){f=J[(N(a,20)+h|0)+16>>1];if(f>>>0>56319?1<>1];c:{if(!(!(1<>>0<56576)){f=a;break c}if(a>>>0>=d>>>0){f=a;break c}f=a;d:{if(!(1<>2];switch(e-2250|0){case 2:case 6:case 7:case 8:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:break d;case 0:case 1:case 3:case 4:case 5:case 9:case 41:break e;default:break f}}i=e-1756|0;if(1<>>0<=12:0){break e}e=e-1620|0;if(e>>>0>4|!(1<>1];if(!(1<>>0>=2){Jd(b,c,f)}e=g;g=f-a|0;i=N(g,20);l=Ob(j,e,i);e=(c-a|0)+f|0;k=N(c,20)+h|0;$c(N(e,20)+h|0,k,N(a-c|0,20));Ob(k,l,i);if(c>>>0>=e>>>0){break c}if(g&1){g=N(c,20)+h|0;i=J[g+16>>1];if(1<>1]=i&255|6400}c=c+1|0}if((a+1|0)!=(f|0)){while(1){a=N(c,20)+h|0;g=J[a+16>>1];if(1<>1]=g&255|6400}a=N(c+1|0,20)+h|0;g=J[a+16>>1];if(1<>1]=g&255|6400}c=c+2|0;if((e|0)!=(c|0)){continue}break}}c=e}g:{if(d>>>0<=f>>>0){break g}while(1){a=J[(N(f,20)+h|0)+16>>1];if(a>>>0>58879?1<>1];if(!(!(1<>>0<59136)|d>>>0<=f>>>0){break a}a=f;h:{if(!(1<>2];switch(e-2250|0){case 2:case 6:case 7:case 8:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:break h;case 0:case 1:case 3:case 4:case 5:case 9:case 41:break i;default:break j}}i=e-1756|0;if(1<>>0<=12:0){break i}e=e-1620|0;if(e>>>0>4|!(1<>1];if(!(1<>>0>=2){Jd(b,c,a)}d=a-f|0;e=N(d,20);g=Ob(j,g,e);b=(c-f|0)+a|0;i=N(c,20)+h|0;$c(N(b,20)+h|0,i,N(f-c|0,20));Ob(i,g,e);if(b>>>0<=c>>>0){break a}if(d&1){d=N(c,20)+h|0;e=J[d+16>>1];if(1<>1]=e&255|6656}c=c+1|0}if((f+1|0)==(a|0)){break a}while(1){a=N(c,20)+h|0;d=J[a+16>>1];if(1<>1]=d&255|6656}a=N(c+1|0,20)+h|0;d=J[a+16>>1];if(1<>1]=d&255|6656}c=c+2|0;if((b|0)!=(c|0)){continue}break}}xb=j+640|0}function qea(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=H[a+408>>2];f=H[a+464>>2];a:{if(H[a+224>>2]){c=H[a+412>>2];b:{c:{d:{if(!b){if(!c){break d}break c}if((b|0)>(c|0)|(c|0)>H[a+432>>2]|H[a+336>>2]!=1){break c}}c=H[a+416>>2];e:{if(!c){e=H[a+420>>2];break e}e=c-1|0;if((e|0)!=H[a+420>>2]){break c}}if((e|0)<14){break b}}c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=17;H[H[a>>2]+28>>2]=H[a+412>>2];H[H[a>>2]+32>>2]=H[a+416>>2];H[H[a>>2]+36>>2]=H[a+420>>2];zb[H[H[a>>2]>>2]](a)}b=H[a+336>>2];if((b|0)>0){while(1){d=H[H[((g<<2)+a|0)+340>>2]+4>>2];e=H[a+160>>2];c=H[a+408>>2];b=0;f:{if(!c){break f}b=c;if(H[e+(d<<8)>>2]>=0){break f}b=H[a>>2];H[b+24>>2]=d;H[b+20>>2]=118;H[H[a>>2]+28>>2]=0;zb[H[H[a>>2]+4>>2]](a,-1);b=H[a+408>>2]}if((b|0)<=H[a+412>>2]){while(1){c=(e+(d<<8)|0)+(b<<2)|0;h=H[c>>2];if(H[a+416>>2]!=(((h|0)>0?h:0)|0)){h=H[a>>2];H[h+24>>2]=d;H[h+20>>2]=118;H[H[a>>2]+28>>2]=b;zb[H[H[a>>2]+4>>2]](a,-1)}H[c>>2]=H[a+420>>2];c=H[a+412>>2]>(b|0);b=b+1|0;if(c){continue}break}}b=H[a+336>>2];g=g+1|0;if((b|0)>(g|0)){continue}break}}e=H[a+408>>2];H[f+4>>2]=H[a+416>>2]?e?1291:1292:e?1293:1294;g:{if((b|0)<=0){break g}b=0;while(1){d=b<<2;c=H[(d+a|0)+340>>2];h:{if(!e){if(H[a+416>>2]){break h}c=H[c+20>>2];kn(a,1,c,((c<<2)+f|0)+44|0);break h}e=H[c+24>>2];c=(e<<2)+f|0;kn(a,0,e,c+44|0);H[f+60>>2]=H[c+44>>2]}H[(d+f|0)+20>>2]=0;b=b+1|0;if((b|0)>=H[a+336>>2]){break g}e=H[a+408>>2];continue}}H[f+16>>2]=0;break a}i:{if(!(H[a+420>>2]|(H[a+416>>2]|b))){b=H[a+412>>2];if(!H[a+220>>2]&(b|0)>63|(b|0)==H[a+432>>2]){break i}}b=H[a>>2];H[b+20>>2]=125;zb[H[b+4>>2]](a,-1)}H[f+4>>2]=H[a+432>>2]==63?1295:1296;b=0;if(H[a+336>>2]>0){while(1){c=b<<2;d=H[(c+a|0)+340>>2];e=H[d+20>>2];kn(a,1,e,((e<<2)+f|0)- -64|0);if(H[a+432>>2]){d=H[d+24>>2];kn(a,0,d,((d<<2)+f|0)+80|0)}H[(c+f|0)+20>>2]=0;b=b+1|0;if((b|0)>2]){continue}break}}e=0;if(H[a+364>>2]<=0){break a}while(1){b=e<<2;g=b+f|0;b=H[((H[(a+b|0)+368>>2]<<2)+a|0)+340>>2];H[g+96>>2]=H[((H[b+20>>2]<<2)+f|0)- -64>>2];H[g+136>>2]=H[((H[b+24>>2]<<2)+f|0)+80>>2];j:{if(!H[b+52>>2]){b=0;break j}c=H[b+36>>2];d=H[b+40>>2];b=1;k:{l:{switch(H[a+432>>2]){case 3:b=(((d-3>>>0<4294967294?1:d-1|0)<<3)+((c-3>>>0<4294967294?1:c-1|0)<<2)|0)+256144|0;break k;case 8:b=(N(d-4>>>0<4294967293?2:d-1|0,12)+((c-4>>>0<4294967293?2:c-1|0)<<2)|0)+256160|0;break k;case 15:b=(((d-5>>>0<4294967292?3:d-1|0)<<4)+((c-5>>>0<4294967292?3:c-1|0)<<2)|0)+256208|0;break k;case 24:b=(N(d-6>>>0<4294967291?4:d-1|0,20)+((c-6>>>0<4294967291?4:c-1|0)<<2)|0)+256272|0;break k;case 35:b=(N(d-7>>>0<4294967290?5:d-1|0,24)+((c-7>>>0<4294967290?5:c-1|0)<<2)|0)+256384|0;break k;case 48:b=(N(d-8>>>0<4294967289?6:d-1|0,28)+((c-8>>>0<4294967289?6:c-1|0)<<2)|0)+256528|0;break k;case 0:break j;default:break l}}b=(((d-9>>>0<4294967288?7:d-1|0)<<5)+((c-9>>>0<4294967288?7:c-1|0)<<2)|0)+256736|0}b=H[b>>2]+1|0}H[g+176>>2]=b;e=e+1|0;if((e|0)>2]){continue}break}}H[f+36>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f+40>>2]=H[a+280>>2]}function WE(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;i=xb-272|0;xb=i;a:{b:{c:{c=I[a+2|0]|I[a+3|0]<<8;k=(c<<8|c>>>8)&65535;switch(k|0){case 0:break a;case 1:break c;default:break b}}a=I[a|0]|I[a+1|0]<<8;ZE(b,(a<<8|a>>>8)&65535);l=1;break a}H[i+268>>2]=0;H[i+264>>2]=0;l=Ur(b,k,a+4|0,731,0,i+264|0,i,i+268|0);if(!l){a=H[b+100>>2];if(!(I[a+16|0]&64)){break a}Rc(a,2,H[a+64>>2],H[i+264>>2],1,0);break a}a=I[a|0]|I[a+1|0]<<8;f=(a<<8|a>>>8)&65535;j=H[i+268>>2];a=H[i+264>>2];d=H[b+100>>2];c=H[d+64>>2];if(a-c>>>0>=2){Jd(d,c,a)}c=1;a=H[d+80>>2];e=J[(a+N(H[i>>2],20)|0)+12>>1];m=!(e&8);e=!(e&2);d:{if(k>>>0<=1){break d}while(1){if(I[(a+N(H[(c<<2)+i>>2],20)|0)+12|0]&8){c=c+1|0;if((k|0)!=(c|0)){continue}break d}break}m=1;e=1}c=e&m;if(c){e=I[d+140|0]+1|0;e=(e|0)!=(e&255)?1:e;F[d+140|0]=e;n=e<<5&224}g=c?4:0;h=a+N(H[d+64>>2],20)|0;e=I[h+14|0];a=I[h+12|0]&4?e&16?e&15:1:1;e:{f:{g:{h:{if(c){F[h+14|0]=j&15|n|16;j=H[d+80>>2];h=H[d+64>>2];o=J[(j+N(h,20)|0)+16>>1];if((o&31)==12){G[(j+N(h,20)|0)+16>>1]=o&224|7}VE(b,f,g);g=0-a|0;if(k>>>0>1){break h}b=a;break e}VE(b,f,g);if(k>>>0<2){g=0-a|0;b=a;break e}f=d+72|0;h=d+60|0;break g}f=d+72|0;h=d+60|0;if(c){break f}}c=H[d+64>>2];g=1;while(1){i:{j=(g<<2)+i|0;if(!I[h|0]|K[j>>2]<=c>>>0){break i}e=1;if(!I[d+61|0]){while(1){c=c+1|0;H[d+64>>2]=c;if(K[j>>2]>c>>>0){continue}break i}}while(1){j:{if(e){k:{if(H[d+84>>2]==H[d+80>>2]){b=c;if(H[f>>2]==(c|0)){break k}}if(!ec(d,1,1)){c=H[d+64>>2];break j}c=H[d+80>>2]+N(H[d+64>>2],20)|0;e=H[c+4>>2];b=H[d+84>>2]+N(H[d+72>>2],20)|0;H[b>>2]=H[c>>2];H[b+4>>2]=e;H[b+16>>2]=H[c+16>>2];e=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=e;c=H[d+64>>2];b=H[d+72>>2]}H[f>>2]=b+1}c=c+1|0;H[d+64>>2]=c}if(!I[h|0]|K[j>>2]<=c>>>0){break i}e=I[d+61|0];continue}}b=H[d+80>>2]+N(c,20)|0;j=J[b+12>>1];e=I[b+14|0];c=c+1|0;H[d+64>>2]=c;b=j&4?e&16?e&15:1:1;a=b+a|0;g=g+1|0;if((k|0)!=(g|0)){continue}break}g=0-b|0;break e}c=H[d+64>>2];h=1;b=a;while(1){e=(h<<2)+i|0;l:{if(K[e>>2]<=c>>>0){break l}g=a+g|0;while(1){if(!I[d+60|0]){break l}f=H[d+80>>2]+N(c,20)|0;c=I[f+14|0];c=c&16?0:c&15;c=c?c:b;F[f+14|0]=g+(b>>>0>c>>>0?c:b)&15|n;m:{if(I[d+61|0]){n:{if(H[d+84>>2]==H[d+80>>2]){c=H[d+72>>2];if((c|0)==H[d+64>>2]){break n}}if(!ec(d,1,1)){c=H[d+64>>2];break m}f=H[d+80>>2]+N(H[d+64>>2],20)|0;j=H[f+4>>2];c=H[d+84>>2]+N(H[d+72>>2],20)|0;H[c>>2]=H[f>>2];H[c+4>>2]=j;H[c+16>>2]=H[f+16>>2];j=H[f+12>>2];H[c+8>>2]=H[f+8>>2];H[c+12>>2]=j;c=H[d+72>>2]}H[d+72>>2]=c+1}c=H[d+64>>2]+1|0;H[d+64>>2]=c}if(K[e>>2]>c>>>0){continue}break}}b=H[d+80>>2]+N(c,20)|0;f=J[b+12>>1];e=I[b+14|0];c=c+1|0;H[d+64>>2]=c;b=f&4?e&16?e&15:1:1;g=0-b|0;a=a+b|0;h=h+1|0;if((k|0)!=(h|0)){continue}break}}o:{if(!(e>>>0>31&m)){break o}c=H[d+64>>2];if(c>>>0>=K[d+68>>2]){break o}f=a+g|0;while(1){g=H[d+80>>2]+N(c,20)|0;a=I[g+14|0];if((a^e)>>>0>31|a&16){break o}a=a&15;if(!a){break o}F[g+14|0]=f+(a>>>0>b>>>0?b:a)&15|n;c=c+1|0;if(c>>>0>2]){continue}break}}}xb=i+272|0;return l}function v9(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;d=H[a+584>>2];k=(c|0)/H[d+8>>2]|0;if(H[d>>2]!=1){c=H[d+12>>2];zb[H[d+20>>2]](d,b,k);b=c}c=H[a+600>>2];g=c-H[a+608>>2]|0;e=H[a+604>>2];if((k|0)>0){c=0;while(1){if((g|0)<=3){H[a+604>>2]=e;H[a+608>>2]=H[a+600>>2]-g;if(!Uc(a)){return-1}g=H[a+600>>2]-H[a+608>>2]|0;e=H[a+604>>2]}d=c;h=c;a:{if((c|0)>=(k|0)){break a}while(1){f=1;h=d;i=G[(d<<1)+b>>1]&-256;b:{while(1){d=f+h|0;if((k|0)<=(d|0)){j=f;break b}c:{if((i|0)!=I[((d<<1)+b|0)+1|0]<<8){j=f;break c}j=f+1|0;d=j+h|0;if((k|0)<=(d|0)){break b}if((i|0)!=I[((d<<1)+b|0)+1|0]<<8){break c}j=129;f=f+2|0;if((f|0)!=129){continue}break a}break}if(j>>>0<=3){continue}break a}break}h=j>>>0>3?h:d}f=h-c|0;d:{if((f&-2)!=2){break d}d=c+1|0;i=J[(c<<1)+b>>1];l=(i&65280)<<16>>16;while(1){if((l|0)!=I[((d<<1)+b|0)+1|0]<<8){break d}d=d+1|0;if((h|0)!=(d|0)){continue}break}F[e+1|0]=i>>>8;F[e|0]=f+126;g=g-2|0;e=e+2|0;c=h}if((c|0)<(h|0)){while(1){d=h-c|0;i=(d|0)<127?d:127;if((i+3|0)>(g|0)){H[a+604>>2]=e;H[a+608>>2]=H[a+600>>2]-g;if(!Uc(a)){return-1}g=H[a+600>>2]-H[a+608>>2]|0;e=H[a+604>>2]}F[e|0]=i;e=e+1|0;g=g-1|0;if(i){f=0;d=i;l=d&3;if(l){while(1){F[e|0]=I[((c<<1)+b|0)+1|0];e=e+1|0;c=c+1|0;d=d-1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}if(i-1>>>0>=3){while(1){f=(c<<1)+b|0;F[e|0]=I[f+1|0];F[e+1|0]=I[f+3|0];F[e+2|0]=I[f+5|0];F[e+3|0]=I[f+7|0];e=e+4|0;c=c+4|0;d=d-4|0;if(d){continue}break}}g=g-i|0}if((c|0)<(h|0)){continue}break}}d=0;e:{if((j|0)<4){j=0;break e}F[e|0]=j+126;F[e+1|0]=I[((h<<1)+b|0)+1|0];g=g-2|0;e=e+2|0}c=c+j|0;if((k|0)>(c|0)){continue}break}while(1){if((g|0)<=3){H[a+604>>2]=e;H[a+608>>2]=H[a+600>>2]-g;if(!Uc(a)){return-1}g=H[a+600>>2]-H[a+608>>2]|0;e=H[a+604>>2]}c=d;h=c;f:{if((c|0)>=(k|0)){break f}while(1){f=1;h=c;i=J[(c<<1)+b>>1];g:{while(1){c=f+h|0;if((k|0)<=(c|0)){j=f;break g}h:{l=i&255;if(l^I[(c<<1)+b|0]){j=f;break h}j=f+1|0;c=j+h|0;if((k|0)<=(c|0)){break g}if(l^I[(c<<1)+b|0]){break h}j=129;f=f+2|0;if((f|0)!=129){continue}break f}break}if(j>>>0<=3){continue}break f}break}h=j>>>0>3?h:c}i=h-d|0;i:{if((i&-2)!=2){break i}c=d+1|0;f=J[(d<<1)+b>>1];while(1){if(I[(c<<1)+b|0]^f&255){break i}c=c+1|0;if((h|0)!=(c|0)){continue}break}F[e+1|0]=f;F[e|0]=i+126;g=g-2|0;e=e+2|0;d=h}if((d|0)<(h|0)){while(1){c=h-d|0;i=(c|0)<127?c:127;if((i+3|0)>(g|0)){H[a+604>>2]=e;H[a+608>>2]=H[a+600>>2]-g;if(!Uc(a)){return-1}g=H[a+600>>2]-H[a+608>>2]|0;e=H[a+604>>2]}F[e|0]=i;e=e+1|0;g=g-1|0;if(i){f=0;c=i;l=c&3;if(l){while(1){F[e|0]=I[(d<<1)+b|0];e=e+1|0;d=d+1|0;c=c-1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}if(i-1>>>0>=3){while(1){f=(d<<1)+b|0;F[e|0]=I[f|0];F[e+1|0]=I[f+2|0];F[e+2|0]=I[f+4|0];F[e+3|0]=I[f+6|0];e=e+4|0;d=d+4|0;c=c-4|0;if(c){continue}break}}g=g-i|0}if((d|0)<(h|0)){continue}break}}j:{if((j|0)<4){j=0;break j}F[e|0]=j+126;F[e+1|0]=I[(h<<1)+b|0];g=g-2|0;e=e+2|0}d=d+j|0;if((k|0)>(d|0)){continue}break}c=H[a+600>>2]}H[a+604>>2]=e;H[a+608>>2]=c-g;return 1}function Kda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;m=H[a+332>>2];b=H[b+84>>2];g=N(H[b+64>>2],G[c+32>>1]);f=N(H[b+96>>2],G[c+48>>1]);i=N(H[b+32>>2],G[c+16>>1]);h=N(f+i|0,4433)+1024|0;a=xb-128|0;j=N(H[b>>2],G[c>>1]);k=j+g<<2;i=h+N(i,6270)>>11;H[a+96>>2]=k-i;H[a>>2]=i+k;g=j-g<<2;h=h+N(f,-15137)>>11;H[a+64>>2]=g-h;H[a+32>>2]=g+h;h=N(H[b+100>>2],G[c+50>>1]);f=N(H[b+36>>2],G[c+18>>1]);g=N(h+f|0,4433)+1024|0;i=N(H[b+68>>2],G[c+34>>1]);j=N(H[b+4>>2],G[c+2>>1]);k=i+j<<2;f=g+N(f,6270)>>11;H[a+100>>2]=k-f;H[a+4>>2]=f+k;f=j-i<<2;g=g+N(h,-15137)>>11;H[a+68>>2]=f-g;H[a+36>>2]=f+g;h=N(H[b+104>>2],G[c+52>>1]);f=N(H[b+40>>2],G[c+20>>1]);g=N(h+f|0,4433)+1024|0;i=N(H[b+72>>2],G[c+36>>1]);j=N(H[b+8>>2],G[c+4>>1]);k=i+j<<2;f=g+N(f,6270)>>11;H[a+104>>2]=k-f;H[a+8>>2]=f+k;f=j-i<<2;g=g+N(h,-15137)>>11;H[a+72>>2]=f-g;H[a+40>>2]=f+g;h=N(H[b+108>>2],G[c+54>>1]);f=N(H[b+44>>2],G[c+22>>1]);g=N(h+f|0,4433)+1024|0;i=N(H[b+76>>2],G[c+38>>1]);j=N(H[b+12>>2],G[c+6>>1]);k=i+j<<2;f=g+N(f,6270)>>11;H[a+108>>2]=k-f;H[a+12>>2]=f+k;f=j-i<<2;g=g+N(h,-15137)>>11;H[a+76>>2]=f-g;H[a+44>>2]=f+g;h=N(H[b+112>>2],G[c+56>>1]);f=N(H[b+48>>2],G[c+24>>1]);g=N(h+f|0,4433)+1024|0;i=N(H[b+80>>2],G[c+40>>1]);j=N(H[b+16>>2],G[c+8>>1]);k=i+j<<2;f=g+N(f,6270)>>11;H[a+112>>2]=k-f;H[a+16>>2]=f+k;f=j-i<<2;g=g+N(h,-15137)>>11;H[a+80>>2]=f-g;H[a+48>>2]=f+g;h=N(H[b+116>>2],G[c+58>>1]);f=N(H[b+52>>2],G[c+26>>1]);g=N(h+f|0,4433)+1024|0;i=N(H[b+84>>2],G[c+42>>1]);j=N(H[b+20>>2],G[c+10>>1]);k=i+j<<2;f=g+N(f,6270)>>11;H[a+116>>2]=k-f;H[a+20>>2]=f+k;f=j-i<<2;g=g+N(h,-15137)>>11;H[a+84>>2]=f-g;H[a+52>>2]=f+g;h=N(H[b+120>>2],G[c+60>>1]);f=N(H[b+56>>2],G[c+28>>1]);g=N(h+f|0,4433)+1024|0;i=N(H[b+88>>2],G[c+44>>1]);j=N(H[b+24>>2],G[c+12>>1]);k=i+j<<2;f=g+N(f,6270)>>11;H[a+120>>2]=k-f;H[a+24>>2]=f+k;f=j-i<<2;g=g+N(h,-15137)>>11;H[a+88>>2]=f-g;H[a+56>>2]=f+g;h=N(H[b+124>>2],G[c+62>>1]);f=N(H[b+60>>2],G[c+30>>1]);g=N(h+f|0,4433)+1024|0;i=N(H[b+92>>2],G[c+46>>1]);b=N(H[b+28>>2],G[c+14>>1]);c=i+b<<2;f=g+N(f,6270)>>11;H[a+124>>2]=c-f;H[a+28>>2]=c+f;b=b-i<<2;c=g+N(h,-15137)>>11;H[a+92>>2]=b-c;H[a+60>>2]=b+c;b=m+128|0;g=0;c=a;while(1){h=H[c+4>>2];m=H[c+28>>2];f=N(h+m|0,-7373);i=H[c+20>>2];l=i+h|0;j=H[c+12>>2];n=j+m|0;k=N(l+n|0,9633);a=H[(g<<2)+d>>2]+e|0;o=H[c>>2]+16|0;p=H[c+16>>2];r=o+p<<13;s=H[c+24>>2];q=H[c+8>>2];t=N(s+q|0,4433);q=t+N(q,6270)|0;u=r+q|0;v=f+N(h,12299)|0;h=k+N(l,-3196)|0;l=v+h|0;F[a|0]=I[b+(u+l>>>18&1023)|0];F[a+7|0]=I[b+(u-l>>>18&1023)|0];k=k+N(n,-16069)|0;l=N(j,25172);j=N(i+j|0,-20995);l=k+(l+j|0)|0;n=o-p<<13;o=N(s,-15137)+t|0;p=n+o|0;F[a+1|0]=I[b+(l+p>>>18&1023)|0];F[a+6|0]=I[b+(p-l>>>18&1023)|0];h=h+(j+N(i,16819)|0)|0;i=n-o|0;F[a+2|0]=I[b+(h+i>>>18&1023)|0];F[a+5|0]=I[b+(i-h>>>18&1023)|0];h=k+(f+N(m,2446)|0)|0;m=r-q|0;F[a+3|0]=I[b+(h+m>>>18&1023)|0];F[a+4|0]=I[b+(m-h>>>18&1023)|0];c=c+32|0;g=g+1|0;if((g|0)!=4){continue}break}}function M6(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,u=0;d=xb-128|0;xb=d;a:{b:{f=H[a+8>>2];f=zb[H[H[f>>2]+32>>2]](f)|0;c:{if(!f){break c}j=M[a+48>>3];k=M[a+56>>3];e=H[a+8>>2];e=zb[H[H[e>>2]+68>>2]](e,2)|0;M[d+80>>3]=M[e>>3];n=M[e+8>>3];M[d+88>>3]=n;o=M[e+16>>3];M[d+96>>3]=o;M[d+104>>3]=M[e+24>>3];p=M[e+32>>3];M[d+112>>3]=p;q=M[e+40>>3];M[d+120>>3]=q;e=H[a+4>>2];zb[H[H[e>>2]+404>>2]](e)|0;e=H[a+4>>2];M[d+72>>3]=k*n/j;M[d+64>>3]=j*o/k;M[d+56>>3]=j*p;M[d+48>>3]=k*q;g=d+72|0;i=d- -64|0;h=d+56|0;l=d+48|0;zb[H[H[e>>2]+396>>2]](e,d+80|0,g,i,d+104|0,h,l)|0;k=+zb[H[H[f>>2]+8>>2]](f);e=H[a+4>>2];zb[H[H[e>>2]+400>>2]](e,g,i,h,l,d+40|0,d+32|0)|0;j=1;k=P(k);if(k<5){j=M[d+72>>3];M[d+72>>3]=j/P(j);j=M[d+48>>3];M[d+48>>3]=j/P(j);e=H[a+4>>2];zb[H[H[e>>2]+396>>2]](e,d+72|0,d- -64|0,d+56|0,d+48|0,d+40|0,d+32|0)|0;k=k*j}e=H[a+4>>2];g=d+80|0;zb[H[H[f>>2]+12>>2]](g,f);i=H[H[e>>2]+236>>2];H[197455]=0;da(i|0,e|0,g|0)|0;e=H[197455];H[197455]=0;d:{e:{if((e|0)!=1){if(F[d+91|0]<0){Kb(H[d+80>>2])}g=H[a+4>>2];M[d+80>>3]=M[d+48>>3]*P(k*M[a+48>>3]/25.4*72);e=d+80|0;zb[H[H[g>>2]+252>>2]](g,e)|0;g=zb[H[H[f>>2]+16>>2]](f)|0;i=zb[H[H[f>>2]+20>>2]](f)|0;h=zb[H[H[f>>2]+28>>2]](f)|0;l=zb[H[H[f>>2]+24>>2]](f)|0;f=H[a+4>>2];g=(g|0)>550;g=i?g|2:g;g=h?g|4:g;H[d+80>>2]=l?g|128:g;zb[H[H[f>>2]+260>>2]](f,e)|0;f=H[a+4>>2];zb[H[H[f>>2]+136>>2]](f,396292)|0;f=H[a+4>>2];g=H[a+8>>2];t=d,u=zb[H[H[g>>2]+28>>2]](g)|0,H[t+80>>2]=u;zb[H[H[f>>2]+144>>2]](f,e)|0;f=H[a+4>>2];H[d+80>>2]=255;zb[H[H[f>>2]+152>>2]](f,e)|0;f=H[a+4>>2];zb[H[H[f>>2]+400>>2]](f,d+72|0,d- -64|0,d+56|0,d+48|0,d+40|0,d+32|0)|0;f=H[a+4>>2];zb[H[H[f>>2]+404>>2]](f)|0;i=H[c>>2];e=H[c+4>>2];H[d+88>>2]=0;H[d+80>>2]=0;H[d+84>>2]=0;h=e-i|0;g=h>>4;f=0;if((e|0)==(i|0)){break d}f:{if((h|0)<0){H[197455]=0;ia(1652,d+80|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}X()}e=0;H[197455]=0;f=aa(899,h|0)|0;h=H[197455];H[197455]=0;if((h|0)!=1){break e}}b=$()|0;_()|0;a=H[d+80>>2];if(!a){break a}H[d+84>>2]=a;Kb(a);break a}b=$()|0;_()|0;if(F[d+91|0]>=0){break a}Kb(H[d+80>>2]);ea(b|0);X()}H[d+80>>2]=f;h=g<<4;l=h+f|0;H[d+88>>2]=l;h=Nb(f,0,h);H[d+84>>2]=l;l=g>>>0>1?g:1;k=M[a+56>>3];n=M[a+48>>3];o=M[d+32>>3];p=M[d+48>>3];q=M[d+40>>3];s=M[d+72>>3];while(1){m=e<<4;r=m+h|0;m=i+m|0;M[r>>3]=M[m>>3]*s*n*j+q;M[r+8>>3]=M[m+8>>3]*p*k*j+o;e=e+1|0;if((l|0)!=(e|0)){continue}break}}e=I[b+11|0];i=e<<24>>24<0;e=i?H[b+4>>2]:e;if(e>>>0>>0?e:g){e=0;while(1){g=H[a+4>>2];H[d+28>>2]=H[(e<<2)+(i?H[b>>2]:b)>>2];H[d+16>>2]=0;H[d+20>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;i=H[H[g>>2]+288>>2];H[197455]=0;h=g;g=(e<<4)+f|0;ma(i|0,h|0,d+28|0,g|0,g+8|0,d+16|0,d+8|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}g=I[b+11|0];i=g<<24>>24<0;e=e+1|0;g=i?H[b+4>>2]:g;h=H[c+4>>2]-H[c>>2]>>4;if(e>>>0<(g>>>0>>0?g:h)>>>0){continue}break}}if(!f){break c}Kb(f)}xb=d+128|0;return}b=$()|0;_()|0;if(!f){break a}Kb(f);ea(b|0);X()}ea(b|0);X()}function Pda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;D=xb-512|0;xb=D;w=H[a+332>>2];a=H[b+84>>2];b=D;while(1){l=N(H[a+64>>2],G[c+32>>1]);k=N(H[a+192>>2],G[c+96>>1]);h=l-k|0;o=N(h,11363);i=N(H[a+96>>2],G[c+48>>1]);m=N(H[a+32>>2],G[c+16>>1]);p=N(i+m|0,11086);y=o+N(k,20995)|0;j=N(H[a+128>>2],G[c+64>>1]);z=N(j,10703);n=N(G[c>>1],H[a>>2])<<13|1024;t=z+n|0;u=y+t|0;f=N(H[a+224>>2],G[c+112>>1]);A=N(f+m|0,8956);g=N(H[a+160>>2],G[c+80>>1]);r=g+m|0;v=N(r,10217);s=A+(v+(p+N(m,-18730)|0)|0)|0;H[b+480>>2]=u-s>>11;H[b>>2]=s+u>>11;h=N(h,2260);u=h+N(l,7373)|0;j=N(j,4433);s=j+n|0;q=u+s|0;B=N(g+i|0,1136);x=B+(p+N(i,589)|0)|0;p=f+i|0;C=N(p,-5461);x=x+C|0;H[b+448>>2]=q-x>>11;H[b+32>>2]=q+x>>11;l=o+N(l,-4926)|0;o=n-j|0;j=l+o|0;q=v+(N(g,-9222)+B|0)|0;v=N(f+g|0,-11086);q=q+v|0;H[b+416>>2]=j-q>>11;H[b+64>>2]=j+q>>11;k=h+N(k,-4176)|0;n=n-z|0;h=k+n|0;j=v+(A+(C+N(f,8728)|0)|0)|0;H[b+384>>2]=h-j>>11;H[b+96>>2]=h+j>>11;n=n-k|0;k=N(p,-10217);p=N(m-f|0,7350);h=(k+N(f,25733)|0)+p|0;f=N(f-g|0,3363);h=h+f|0;H[b+352>>2]=n-h>>11;H[b+128>>2]=h+n>>11;n=o-l|0;l=N(r,5461);h=N(g,-6278);g=N(g-i|0,11529);f=f+(l+(h+g|0)|0)|0;H[b+320>>2]=n-f>>11;H[b+160>>2]=f+n>>11;f=s-u|0;h=N(i,16154);i=N(m-i|0,3363);g=k+(g+(h+i|0)|0)|0;H[b+288>>2]=f-g>>11;H[b+192>>2]=f+g>>11;g=t-y|0;i=p+(l+(i+N(m,-15038)|0)|0)|0;H[b+256>>2]=g-i>>11;H[b+224>>2]=g+i>>11;b=b+4|0;a=a+4|0;c=c+2|0;E=E+1|0;if((E|0)!=8){continue}break}b=w+128|0;n=0;a=D;while(1){i=H[a+12>>2];m=H[a+4>>2];k=N(i+m|0,11086);o=H[a+8>>2];p=H[a+24>>2];h=o-p|0;w=N(h,11363);c=H[(n<<2)+d>>2]+e|0;f=H[a+28>>2];z=N(f+m|0,8956);g=H[a+20>>2];y=g+m|0;j=N(y,10217);t=z+(j+(k+N(m,-18730)|0)|0)|0;u=w+N(p,20995)|0;l=(H[a>>2]<<13)+131072|0;r=H[a+16>>2];v=N(r,10703);A=l+v|0;s=u+A|0;F[c|0]=I[b+(t+s>>>18&1023)|0];F[c+15|0]=I[b+(s-t>>>18&1023)|0];t=f+i|0;s=N(t,-5461);q=k+N(i,589)|0;k=N(g+i|0,1136);q=s+(q+k|0)|0;h=N(h,2260);B=h+N(o,7373)|0;r=N(r,4433);C=r+l|0;x=B+C|0;F[c+1|0]=I[b+(q+x>>>18&1023)|0];F[c+14|0]=I[b+(x-q>>>18&1023)|0];j=j+(k+N(g,-9222)|0)|0;k=N(f+g|0,-11086);j=j+k|0;o=w+N(o,-4926)|0;w=l-r|0;r=o+w|0;F[c+2|0]=I[b+(j+r>>>18&1023)|0];F[c+13|0]=I[b+(r-j>>>18&1023)|0];k=k+(z+(s+N(f,8728)|0)|0)|0;p=h+N(p,-4176)|0;l=l-v|0;h=p+l|0;F[c+3|0]=I[b+(k+h>>>18&1023)|0];F[c+12|0]=I[b+(h-k>>>18&1023)|0];h=N(m-f|0,7350);k=N(t,-10217);j=h+(k+N(f,25733)|0)|0;f=N(f-g|0,3363);j=j+f|0;l=l-p|0;F[c+4|0]=I[b+(j+l>>>18&1023)|0];F[c+11|0]=I[b+(l-j>>>18&1023)|0];l=N(y,5461);j=N(g,-6278);g=N(g-i|0,11529);f=f+(l+(j+g|0)|0)|0;o=w-o|0;F[c+5|0]=I[b+(f+o>>>18&1023)|0];F[c+10|0]=I[b+(o-f>>>18&1023)|0];f=N(i,16154);i=N(m-i|0,3363);g=k+(g+(f+i|0)|0)|0;f=C-B|0;F[c+6|0]=I[b+(g+f>>>18&1023)|0];F[c+9|0]=I[b+(f-g>>>18&1023)|0];i=h+(l+(i+N(m,-15038)|0)|0)|0;m=A-u|0;F[c+7|0]=I[b+(i+m>>>18&1023)|0];F[c+8|0]=I[b+(m-i>>>18&1023)|0];a=a+32|0;n=n+1|0;if((n|0)!=16){continue}break}xb=D+512|0}function Jz(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;j=xb-16|0;xb=j;f=H[a+72>>2];m=H[a+64>>2];h=H[a+68>>2];a:{if(!c){break a}b:{c:{d:{e:{f:{g:{switch(H[a>>2]){case 0:if(bc(H[a+164>>2],2)){break f}if((nq(H[a+164>>2],j+12|0,1)|0)!=1){break f}e=I[j+12|0];H[a+44>>2]=e&128;k=e&31;H[a+40>>2]=k;g=1<>2]=g-256;if(k>>>0>16){break f}H[a+52>>2]=9;H[a+56>>2]=e>>>7;H[a+60>>2]=k>>>0>9?256:g-255|0;f=0;g=Zp(a);if(g>>>0>255){break f}if(b){F[b|0]=g}if(c>>>0<2){break e}k=1;H[a>>2]=1;h=g;m=g;break;case 2:break d;case 1:break g;default:break a}}e=0;break c}k=0;break b}e=1;h=g;m=g;break a}e=1}while(1){h:{if(!e){e=Zp(a);if((e|0)<0){break b}i:{j:{k:{while(1){if((e|0)!=256){break k}if(!H[a+44>>2]){break j}F[a+32|0]=1;m=0;H[a+56>>2]=0;h=0;e=Zp(a);if((e|0)>=0){continue}break}break b}g=e;if(e>>>0<256){break i}}g=e;d=e-256|0;f=H[a+56>>2];if(d>>>0>=f>>>0){if(d>>>0>f>>>0){break h}d=H[a+92>>2];f=H[a+96>>2];l:{if(d>>>0>>0){f=H[a+88>>2];break l}g=((f>>>1|0)+f|0)+4|0;l=H[a+168>>2];m:{n:{i=H[a+88>>2];if((i|0)!=(a+100|0)){d=65536;if(g>>>0>65536){break n}d=g;break m}i=0;H[a+88>>2]=0;d=g>>>0<65536?g:65536;f=0;break m}if((f|0)==65536){break h}}f=Ub(l,1,f,d,i,j+12|0);H[a+88>>2]=f;if(H[j+12>>2]){break h}H[a+96>>2]=d;d=H[a+92>>2]}H[a+92>>2]=d+1;F[d+f|0]=h;g=m;if(g>>>0<256){break i}}l=a+100|0;d=H[a+76>>2];while(1){if(!d){break h}d=H[a+92>>2];f=H[a+96>>2];o:{if(d>>>0>>0){f=H[a+88>>2];break o}d=((f>>>1|0)+f|0)+4|0;n=H[a+168>>2];i=H[a+88>>2];p:{if((l|0)!=(i|0)){if(d>>>0<=65536){break p}d=65536;if((f|0)==65536){break h}break p}i=0;H[a+88>>2]=0;d=d>>>0<65536?d:65536;f=0}f=Ub(n,1,f,d,i,j+12|0);H[a+88>>2]=f;if(H[j+12>>2]){break h}H[a+96>>2]=d;d=H[a+92>>2]}g=g-256|0;i=I[g+H[a+80>>2]|0];H[a+92>>2]=d+1;F[d+f|0]=i;d=H[a+76>>2];g=J[d+(g<<1)>>1];if(g>>>0>255){continue}break}}d=H[a+92>>2];h=H[a+96>>2];q:{if(d>>>0>>0){h=H[a+88>>2];break q}f=((h>>>1|0)+h|0)+4|0;l=H[a+168>>2];r:{s:{t:{u:{i=H[a+88>>2];if((i|0)!=(a+100|0)){d=65536;if(f>>>0>65536){break u}d=f;break t}i=0;H[a+88>>2]=0;d=f>>>0<65536?f:65536;h=0;break t}if((h|0)==65536){break s}}h=Ub(l,1,h,d,i,j+12|0);H[a+88>>2]=h;if(!H[j+12>>2]){break r}}h=g;break h}H[a+96>>2]=d;d=H[a+92>>2]}H[a+92>>2]=d+1;F[d+h|0]=g;H[a>>2]=2;h=g;f=e;d=k;e=1;continue}v:{if(b){while(1){e=H[a+92>>2];if(!e){break v}e=e-1|0;H[a+92>>2]=e;F[b+d|0]=I[e+H[a+88>>2]|0];d=d+1|0;if((d|0)!=(c|0)){continue}break}e=c;break a}e=H[a+92>>2];while(1){if(!e){break v}e=e-1|0;H[a+92>>2]=e;d=d+1|0;if((d|0)!=(c|0)){continue}break}e=c;break a}k=d;e=H[a+56>>2];if(e>>>0>2]){g=H[a+84>>2];if(g>>>0<=e>>>0){e=g?g+(g>>>2|0)|0:512;i=Ub(H[a+168>>2],3,g,e,H[a+76>>2],j+12|0);H[a+76>>2]=i;if(H[j+12>>2]){break b}l=i+(e<<1)|0;H[a+80>>2]=l;$c(l,i+(g<<1)|0,g);H[a+84>>2]=e;e=H[a+56>>2]}G[H[a+76>>2]+(e<<1)>>1]=m;F[H[a+80>>2]+e|0]=h;H[a+56>>2]=H[a+56>>2]+1}H[a>>2]=1;m=f;e=0;continue}break}f=e}e=k;H[a>>2]=3}H[a+72>>2]=f;H[a+68>>2]=h;H[a+64>>2]=m;xb=j+16|0;return e}function JE(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;p=xb-16|0;xb=p;d=H[b+100>>2];c=I[a+2|0]|I[a+3|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}else{e=163632}c=0;g=Gc(e,H[H[d+80>>2]+N(H[d+64>>2],20)>>2]);a:{if((g|0)==-1){break a}c=H[d+64>>2];H[b+40>>2]=1;H[b+4>>2]=c;e=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[e+68>>2];F[b+24|0]=(c|0)==H[e+64>>2]?I[(H[e+80>>2]+N(c,20)|0)+15|0]:0;if(!Ne(b+4|0,p+12|0)){c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,H[d+64>>2],H[p+12>>2],1,0);break a}h=a+4|0;m=H[b+4>>2];d=0;e=H[b+100>>2];k=H[e+80>>2];b:{c:{c=I[a+8|0]|I[a+9|0]<<8;c=g>>>0<((c<<8|c>>>8)&65535)>>>0?((g<<1)+a|0)+10|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}c=I[a|0]|I[a+1|0]<<8;if(c){n=h+2|0;g=jma(I[h|0]|I[h+1|0]<<8);q=I[h+2|0]|I[h+3|0]<<8;r=(jma(q)+g<<1)+2|0;j=H[N(m,20)+k>>2];c=((c<<8|c>>>8)&65535)-1|0;while(1){l=c+d>>>1|0;i=(a+N(l,r)|0)+2|0;o=I[i|0]|I[i+1|0]<<8;o=(o<<8|o>>>8)&65535;d:{if(o>>>0>j>>>0){c=l-1|0;break d}if((j|0)==(o|0)){break c}d=l+1|0}if((c|0)>=(d|0)){continue}break}}c=0;if(!(I[e+16|0]&64)){break b}a=H[e+68>>2];b=m+1|0;h=a>>>0>>0?a:b;a=H[e+64>>2];m=h-a|0;if(m>>>0<2){break b}b=H[e+144>>2]|32;H[e+144>>2]=b;if(a>>>0>=h>>>0){break b}d=-1;c=a;j=h+(c^-1)|0;if(j>>>0>=3){l=m&-4;while(1){g=N(c,20)+k|0;i=H[g+8>>2];d=d>>>0>>0?d:i;i=H[g+28>>2];d=d>>>0>>0?d:i;i=H[g+48>>2];d=d>>>0>>0?d:i;g=H[g+68>>2];d=d>>>0>>0?d:g;c=c+4|0;f=f+4|0;if((l|0)!=(f|0)){continue}break}}g=m&3;if(g){f=0;while(1){l=H[(N(c,20)+k|0)+8>>2];d=d>>>0>>0?d:l;c=c+1|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}}if(m&1){c=N(a,20)+k|0;if(H[c+8>>2]!=(d|0)){H[e+144>>2]=b;H[c+4>>2]=H[c+4>>2]|2}a=a+1|0}c=0;if(!j){break b}while(1){f=N(a,20)+k|0;if(H[f+8>>2]!=(d|0)){b=b|32;H[e+144>>2]=b;H[f+4>>2]=H[f+4>>2]|2}f=N(a+1|0,20)+k|0;if(H[f+8>>2]!=(d|0)){b=b|32;H[e+144>>2]=b;H[f+4>>2]=H[f+4>>2]|2}a=a+2|0;if((h|0)!=(a|0)){continue}break}break b}c=i+2|0;e:{if(!(s=1,t=Wh(h,b,a,c,H[e+88>>2]+N(H[e+64>>2],20)|0),u=Wh(n,b,a,c+(g<<1)|0,H[e+88>>2]+N(m,20)|0),u?s:t)){break e}a=H[e+68>>2];b=m+1|0;k=a>>>0>>0?a:b;a=H[e+64>>2];g=k-a|0;if(g>>>0<2){break e}f=H[e+144>>2]|32;H[e+144>>2]=f;if(a>>>0>=k>>>0){break e}h=H[e+80>>2];c=-1;d=a;l=k+(a^-1)|0;if(l>>>0>=3){i=g&-4;j=0;while(1){b=h+N(d,20)|0;n=H[b+8>>2];c=c>>>0>>0?c:n;n=H[b+28>>2];c=c>>>0>>0?c:n;n=H[b+48>>2];c=c>>>0>>0?c:n;b=H[b+68>>2];c=b>>>0>c>>>0?c:b;d=d+4|0;j=j+4|0;if((i|0)!=(j|0)){continue}break}}j=g&3;if(j){b=0;while(1){i=H[(h+N(d,20)|0)+8>>2];c=c>>>0>>0?c:i;d=d+1|0;b=b+1|0;if((j|0)!=(b|0)){continue}break}}if(g&1){b=h+N(a,20)|0;if(H[b+8>>2]!=(c|0)){H[e+144>>2]=f;H[b+4>>2]=H[b+4>>2]|3}a=a+1|0}if(!l){break e}while(1){b=h+N(a,20)|0;if(H[b+8>>2]!=(c|0)){f=f|32;H[e+144>>2]=f;H[b+4>>2]=H[b+4>>2]|3}b=h+N(a+1|0,20)|0;if(H[b+8>>2]!=(c|0)){f=f|32;H[e+144>>2]=f;H[b+4>>2]=H[b+4>>2]|3}a=a+2|0;if((k|0)!=(a|0)){continue}break}}H[e+64>>2]=((q|0)!=0)+m;c=1}}xb=p+16|0;return c}function rea(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;f=H[a+464>>2];if(H[a+280>>2]){d=H[f+52>>2];if(!d){if(!(zb[H[H[a+460>>2]+8>>2]](a)|0)){d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}if(H[a+336>>2]>0){d=0;while(1){g=d<<2;e=H[(g+a|0)+340>>2];a:{b:{if(H[a+224>>2]){if(H[a+408>>2]){break b}if(H[a+416>>2]){break a}}c=H[((H[e+20>>2]<<2)+f|0)+56>>2];F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+56|0]=0;F[c+57|0]=0;F[c+58|0]=0;F[c+59|0]=0;F[c+60|0]=0;F[c+61|0]=0;F[c+62|0]=0;F[c+63|0]=0;F[c+48|0]=0;F[c+49|0]=0;F[c+50|0]=0;F[c+51|0]=0;F[c+52|0]=0;F[c+53|0]=0;F[c+54|0]=0;F[c+55|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+42|0]=0;F[c+43|0]=0;F[c+44|0]=0;F[c+45|0]=0;F[c+46|0]=0;F[c+47|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;c=f+g|0;H[c+36>>2]=0;H[c+20>>2]=0;if(!H[a+224>>2]){if(H[a+432>>2]){break b}break a}if(!H[a+408>>2]){break a}}Nb(H[((H[e+24>>2]<<2)+f|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2]){continue}break}}H[f+16>>2]=-16;H[f+8>>2]=0;H[f+12>>2]=0;d=H[a+280>>2]}H[f+52>>2]=d-1}c:{if(!(H[f+16>>2]==-1|H[a+364>>2]<=0)){o=H[a+428>>2];p=f+184|0;while(1){d=m<<2;n=H[d+b>>2];d=H[(a+d|0)+368>>2]<<2;k=H[(d+a|0)+340>>2];h=H[k+20>>2];l=(h<<2)+f|0;g=d+f|0;d=H[l+56>>2]+H[g+36>>2]|0;d:{if(!pd(a,d)){H[g+36>>2]=0;c=H[g+20>>2];break d}i=0;c=0;j=pd(a,d+1|0);d=(j+d|0)+2|0;e=pd(a,d);e:{if(!e){break e}c=e;d=H[l+56>>2]+20|0;if(!pd(a,d)){break e}while(1){c=c<<1;if((c|0)==32768){break c}d=d+1|0;if(pd(a,d)){continue}break}}h=a+h|0;f:{if(1<>1>(c|0)){break f}e=j<<2;if(1<>1<(c|0)){i=e+12|0;break f}i=e+4|0}H[g+36>>2]=i;g:{if(c>>>0<2){d=c;break g}i=d+14|0;d=c;while(1){e=c>>1;d=(pd(a,i)?e:0)|d;h=c>>>0>3;c=e;if(h){continue}break}}c=H[g+20>>2]+(j?d^-1:d+1|0)|0;H[g+20>>2]=c}G[n>>1]=c;h:{if(H[a+432>>2]<=0){break h}d=H[k+24>>2];j=d+a|0;i=(d<<2)+f|0;d=1;while(1){c=d;d=(H[i+120>>2]+N(c,3)|0)-3|0;if(pd(a,d)){break h}while(1){if(!pd(a,d+1|0)){d=d+3|0;e=H[a+432>>2]>(c|0);c=c+1|0;if(e){continue}break c}break}k=pd(a,p);e=d+2|0;d=pd(a,e);i:{if(!d){e=0;break i}j:{if(!pd(a,e)){break j}d=d<<1;e=H[i+120>>2]+(I[j+264|0]<(c|0)?217:189)|0;if(!pd(a,e)){break j}while(1){d=d<<1;if((d|0)==32768){break c}e=e+1|0;if(pd(a,e)){continue}break}}if(d>>>0<2){e=d;break i}h=e+14|0;e=d;while(1){g=d>>1;e=(pd(a,h)?g:0)|e;l=d>>>0>3;d=g;if(l){continue}break}}G[(H[(c<<2)+o>>2]<<1)+n>>1]=k?e^-1:e+1|0;d=c+1|0;if(H[a+432>>2]>(c|0)){continue}break}}m=m+1|0;if((m|0)>2]){continue}break}}return 1}b=H[a>>2];H[b+20>>2]=117;zb[H[b+4>>2]](a,-1);H[f+16>>2]=-1;return 1}function zx(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=a+b|0;c=H[a+4>>2];a:{b:{if(c&1){break b}if(!(c&3)){break a}c=H[a>>2];b=c+b|0;c:{a=a-c|0;if((a|0)!=H[197336]){if(c>>>0<=255){e=H[a+8>>2];c=c>>>3|0;d=H[a+12>>2];if((d|0)!=(e|0)){break c}i=789324,j=H[197331]&kma(-2,c),H[i>>2]=j;break b}h=H[a+24>>2];c=H[a+12>>2];d:{if((c|0)!=(a|0)){d=H[a+8>>2];H[d+12>>2]=c;H[c+8>>2]=d;break d}e:{e=a+20|0;d=H[e>>2];if(d){break e}e=a+16|0;d=H[e>>2];if(d){break e}c=0;break d}while(1){g=e;c=d;e=c+20|0;d=H[e>>2];if(d){continue}e=c+16|0;d=H[c+16>>2];if(d){continue}break}H[g>>2]=0}if(!h){break b}e=H[a+28>>2];d=(e<<2)+789628|0;f:{if(H[d>>2]==(a|0)){H[d>>2]=c;if(c){break f}i=789328,j=H[197332]&kma(-2,e),H[i>>2]=j;break b}H[h+(H[h+16>>2]==(a|0)?16:20)>>2]=c;if(!c){break b}}H[c+24>>2]=h;d=H[a+16>>2];if(d){H[c+16>>2]=d;H[d+24>>2]=c}d=H[a+20>>2];if(!d){break b}H[c+20>>2]=d;H[d+24>>2]=c;break b}c=H[f+4>>2];if((c&3)!=3){break b}H[197333]=b;H[f+4>>2]=c&-2;H[a+4>>2]=b|1;H[f>>2]=b;return}H[e+12>>2]=d;H[d+8>>2]=e}c=H[f+4>>2];g:{if(!(c&2)){if(H[197337]==(f|0)){H[197337]=a;b=H[197334]+b|0;H[197334]=b;H[a+4>>2]=b|1;if(H[197336]!=(a|0)){break a}H[197333]=0;H[197336]=0;return}if(H[197336]==(f|0)){H[197336]=a;b=H[197333]+b|0;H[197333]=b;H[a+4>>2]=b|1;H[a+b>>2]=b;return}b=(c&-8)+b|0;h:{if(c>>>0<=255){e=H[f+8>>2];c=c>>>3|0;d=H[f+12>>2];if((d|0)==(e|0)){i=789324,j=H[197331]&kma(-2,c),H[i>>2]=j;break h}H[e+12>>2]=d;H[d+8>>2]=e;break h}h=H[f+24>>2];c=H[f+12>>2];i:{if((f|0)!=(c|0)){d=H[f+8>>2];H[d+12>>2]=c;H[c+8>>2]=d;break i}j:{d=f+20|0;e=H[d>>2];if(e){break j}d=f+16|0;e=H[d>>2];if(e){break j}c=0;break i}while(1){g=d;c=e;d=c+20|0;e=H[d>>2];if(e){continue}d=c+16|0;e=H[c+16>>2];if(e){continue}break}H[g>>2]=0}if(!h){break h}e=H[f+28>>2];d=(e<<2)+789628|0;k:{if(H[d>>2]==(f|0)){H[d>>2]=c;if(c){break k}i=789328,j=H[197332]&kma(-2,e),H[i>>2]=j;break h}H[h+(H[h+16>>2]==(f|0)?16:20)>>2]=c;if(!c){break h}}H[c+24>>2]=h;d=H[f+16>>2];if(d){H[c+16>>2]=d;H[d+24>>2]=c}d=H[f+20>>2];if(!d){break h}H[c+20>>2]=d;H[d+24>>2]=c}H[a+4>>2]=b|1;H[a+b>>2]=b;if(H[197336]!=(a|0)){break g}H[197333]=b;return}H[f+4>>2]=c&-2;H[a+4>>2]=b|1;H[a+b>>2]=b}if(b>>>0<=255){b=b>>>3|0;c=(b<<3)+789364|0;d=H[197331];b=1<>2]}H[c+8>>2]=a;H[b+12>>2]=a;H[a+12>>2]=c;H[a+8>>2]=b;return}e=31;H[a+16>>2]=0;H[a+20>>2]=0;if(b>>>0<=16777215){c=b>>>8|0;g=c+1048320>>>16&8;c=c<>>16&4;c=c<>>16&2;c=(c<>>15|0)-(d|(e|g))|0;e=(c<<1|b>>>c+21&1)+28|0}H[a+28>>2]=e;g=(e<<2)+789628|0;m:{d=H[197332];c=1<>2]=a;H[a+24>>2]=g;break n}e=b<<((e|0)==31?0:25-(e>>>1|0)|0);c=H[g>>2];while(1){d=c;if((H[c+4>>2]&-8)==(b|0)){break m}c=e>>>29|0;e=e<<1;g=d+(c&4)|0;c=H[g+16>>2];if(c){continue}break}H[g+16>>2]=a;H[a+24>>2]=d}H[a+12>>2]=a;H[a+8>>2]=a;return}b=H[d+8>>2];H[b+12>>2]=a;H[d+8>>2]=a;H[a+24>>2]=0;H[a+12>>2]=d;H[a+8>>2]=b}}function kea(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;e=xb-48|0;xb=e;i=H[a+464>>2];a:{b:{if(H[i+40>>2]|!H[a+280>>2]){break b}d=H[a+460>>2];H[d+24>>2]=H[d+24>>2]+(H[i+12>>2]/8|0);H[i+12>>2]=0;f=0;if(!(zb[H[d+8>>2]](a)|0)){break a}if(H[a+336>>2]>0){d=0;while(1){H[((d<<2)+i|0)+20>>2]=0;d=d+1|0;if((d|0)>2]){continue}break}}H[i+16>>2]=0;H[i+40>>2]=H[a+280>>2];if(H[a+436>>2]){break b}H[i+36>>2]=0}if(!H[i+36>>2]){o=H[a+432>>2];p=H[a+428>>2];H[e+40>>2]=a;h=H[a+24>>2];c=H[h>>2];H[e+24>>2]=c;k=H[h+4>>2];H[e+28>>2]=k;d=H[i+12>>2];g=H[i+8>>2];H[e+16>>2]=H[i+32>>2];f=H[i+28>>2];H[e+8>>2]=H[i+24>>2];H[e+12>>2]=f;f=H[i+20>>2];H[e>>2]=H[i+16>>2];H[e+4>>2]=f;if(H[a+364>>2]>0){while(1){h=n<<2;k=H[h+b>>2];m=i+h|0;c=H[m+96>>2];c:{d:{e:{if((d|0)>7){break e}f=0;if(!Hd(e+24|0,g,d,0)){break a}g=H[e+32>>2];d=H[e+36>>2];if((d|0)>7){break e}c=Le(e+24|0,g,d,c,1);break d}f=g>>d-8&255;j=H[(c+(f<<2)|0)+144>>2];if(j){c=I[(c+f|0)+1168|0];d=d-j|0;break c}c=Le(e+24|0,g,d,c,9)}f=0;if((c|0)<0){break a}g=H[e+32>>2];d=H[e+36>>2]}j=H[m+136>>2];m=H[m+176>>2];f:{g:{if(m){if(c){if((d|0)<(c|0)){f=0;if(!Hd(e+24|0,g,d,c)){break a}g=H[e+32>>2];d=H[e+36>>2]}d=d-c|0;c=c<<2;f=H[c+256992>>2];l=g>>d&f;c=l-((l|0)>H[c+256988>>2]?0:f)|0}else{c=0}h=(H[(a+h|0)+368>>2]<<2)+e|0;c=c+H[h+4>>2]|0;H[h+4>>2]=c;G[k>>1]=c;h=1;if((m|0)<2){break g}while(1){h:{i:{j:{if((d|0)>7){break j}f=0;if(!Hd(e+24|0,g,d,0)){break a}g=H[e+32>>2];d=H[e+36>>2];if((d|0)>7){break j}c=Le(e+24|0,g,d,j,1);break i}c=g>>d-8&255;f=H[(j+(c<<2)|0)+144>>2];if(f){c=I[(c+j|0)+1168|0];d=d-f|0;break h}c=Le(e+24|0,g,d,j,9)}f=0;if((c|0)<0){break a}g=H[e+32>>2];d=H[e+36>>2]}l=c>>>4|0;c=c&15;k:{if(c){if((d|0)<(c|0)){f=0;if(!Hd(e+24|0,g,d,c)){break a}g=H[e+32>>2];d=H[e+36>>2]}h=h+l|0;d=d-c|0;c=c<<2;f=H[c+256992>>2];l=g>>d&f;G[(H[(h<<2)+p>>2]<<1)+k>>1]=l-((l|0)>H[c+256988>>2]?0:f);break k}if((l|0)!=15){break f}h=h+15|0}h=h+1|0;if((m|0)>(h|0)){continue}break}break g}h=1;if(!c){break g}if((d|0)<(c|0)){f=0;if(!Hd(e+24|0,g,d,c)){break a}g=H[e+32>>2];d=H[e+36>>2]}d=d-c|0}if((h|0)>(o|0)){break f}while(1){l:{m:{n:{if((d|0)>7){break n}f=0;if(!Hd(e+24|0,g,d,0)){break a}g=H[e+32>>2];d=H[e+36>>2];if((d|0)>7){break n}c=Le(e+24|0,g,d,j,1);break m}c=g>>d-8&255;f=H[(j+(c<<2)|0)+144>>2];if(f){c=I[(c+j|0)+1168|0];d=d-f|0;break l}c=Le(e+24|0,g,d,j,9)}f=0;if((c|0)<0){break a}g=H[e+32>>2];d=H[e+36>>2]}k=c>>>4|0;c=c&15;o:{if(c){if((d|0)<(c|0)){f=0;if(!Hd(e+24|0,g,d,c)){break a}g=H[e+32>>2];d=H[e+36>>2]}d=d-c|0;break o}c=(k|0)!=15;k=15;if(c){break f}}h=(h+k|0)+1|0;if((o|0)>=(h|0)){continue}break}}n=n+1|0;if((n|0)>2]){continue}break}h=H[a+24>>2];k=H[e+28>>2];c=H[e+24>>2]}H[h+4>>2]=k;H[h>>2]=c;H[i+12>>2]=d;H[i+8>>2]=g;H[i+32>>2]=H[e+16>>2];a=H[e+12>>2];H[i+24>>2]=H[e+8>>2];H[i+28>>2]=a;a=H[e+4>>2];H[i+16>>2]=H[e>>2];H[i+20>>2]=a}H[i+40>>2]=H[i+40>>2]-1;f=1}xb=e+48|0;return f|0}function fm(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;i=xb-16|0;xb=i;e=pc(H[a+100>>2],(H[a+16>>2]<<1)+392|0,i+4|0);d=H[i+4>>2];if(!d){H[e>>2]=a;d=H[a+16>>2];H[e+388>>2]=c;f=e+392|0;H[e+8>>2]=f;H[e+4>>2]=d;H[e+368>>2]=0;H[e+372>>2]=0;c=0;G[e+364>>1]=0;H[e+376>>2]=0;H[e+380>>2]=0;H[e+384>>2]=0;n=H[a+92>>2];a:{if(!d){break a}if(d-1>>>0>=7){j=d&-8;while(1){g=c<<1;G[g+f>>1]=16383;G[(g|2)+f>>1]=16383;G[(g|4)+f>>1]=16383;G[(g|6)+f>>1]=16383;G[(g|8)+f>>1]=16383;G[(g|10)+f>>1]=16383;G[(g|12)+f>>1]=16383;G[(g|14)+f>>1]=16383;c=c+8|0;h=h+8|0;if((j|0)!=(h|0)){continue}break}}g=d&7;if(!g){break a}d=0;while(1){G[(c<<1)+f>>1]=16383;c=c+1|0;d=d+1|0;if((g|0)!=(d|0)){continue}break}}b:{if(Kh(a,1970170211)){break b}h=0;d=14512;while(1){j=H[(H[d+8>>2]<<2)+16352>>2];c=H[j+4>>2];c:{if(!c|H[d+16>>2]!=10){break c}d=H[c>>2];if(d){while(1){g=c;c=Wd(a,d);H[i+12>>2]=c;d:{if(!c|c>>>0>=K[e+4>>2]){break d}c=(c<<1)+f|0;if((J[c>>1]&16383)!=16383){break d}G[c>>1]=h}d=bn(a,d,i+12|0);while(1){c=H[i+12>>2];if(!(!c|K[g+4>>2]>>0)){e:{if(c>>>0>=K[e+4>>2]){break e}c=(c<<1)+f|0;if((J[c>>1]&16383)!=16383){break e}G[c>>1]=h}d=bn(a,d,i+12|0);continue}break}c=g+8|0;d=H[g+8>>2];if(d){continue}break}}c=H[j+8>>2];d=H[c>>2];if(!d){break c}while(1){g=c;c=Wd(a,d);H[i+8>>2]=c;f:{if(!c|c>>>0>=K[e+4>>2]){break f}c=(c<<1)+f|0;j=J[c>>1];if((j&16383)!=(h&65535)){break f}G[c>>1]=j|16384}d=bn(a,d,i+8|0);while(1){c=H[i+8>>2];if(!(!c|K[g+4>>2]>>0)){g:{if(c>>>0>=K[e+4>>2]){break g}c=(c<<1)+f|0;j=J[c>>1];if((j&16383)!=(h&65535)){break g}G[c>>1]=j|16384}d=bn(a,d,i+8|0);continue}break}c=g+8|0;d=H[g+8>>2];if(d){continue}break}}h=h+1|0;d=H[(h<<2)+16608>>2];if((h|0)!=87){continue}break}c=Wd(a,48);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,49);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,50);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,51);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,52);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,53);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,54);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,55);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,56);if(!(!c|c>>>0>=K[e+4>>2])){c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}c=Wd(a,57);if(!c|c>>>0>=K[e+4>>2]){break b}c=(c<<1)+f|0;G[c>>1]=J[c>>1]|32768}g=H[H[e+388>>2]+12>>2];h:{if((g|0)==16383){break h}h=H[e+4>>2];if((h|0)<=0){break h}d=0;if((h|0)!=1){j=h&-2;c=0;while(1){k=d<<1;l=k+f|0;m=J[l>>1];if((m&16383)==16383){G[l>>1]=g|m&49152}k=(k|2)+f|0;l=J[k>>1];if((l&16383)==16383){G[k>>1]=g|l&49152}d=d+2|0;c=c+2|0;if((j|0)!=(c|0)){continue}break}}if(!(h&1)){break h}c=(d<<1)+f|0;d=J[c>>1];if((d&16383)!=16383){break h}G[c>>1]=g|d&49152}Ih(a,n);H[e+12>>2]=0;d=0}H[b>>2]=e;xb=i+16|0;return d}function t_(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;f=xb-96|0;xb=f;a:{e=H[b>>2];b:{if((H[b+4>>2]-e|0)-65>>>0<4294967279){break b}i=H[e>>2];if((i|0)==-2147483648|H[e+4>>2]==-2147483648|(!H[a+208>>2]|(i|0)==H[e+16>>2])){break b}H[f+24>>2]=0;H[f+28>>2]=0;H[f+32>>2]=0;H[f+36>>2]=0;H[f+40>>2]=0;H[f+44>>2]=0;H[f+48>>2]=0;H[f+52>>2]=0;H[f+56>>2]=0;H[f+60>>2]=0;H[f+88>>2]=0;H[f+92>>2]=0;H[f+24>>2]=10;H[f+16>>2]=0;H[f+20>>2]=0;H[f+80>>2]=0;H[f+84>>2]=0;H[f+12>>2]=418012;H[f+8>>2]=417944;g=+J[e+8>>1]/255;c:{if(g<4294967296&g>=0){h=~~g>>>0;break c}h=0}F[f+18|0]=h;g=+J[e+10>>1]/255;d:{if(g<4294967296&g>=0){h=~~g>>>0;break d}h=0}F[f+17|0]=h;i=J[e+12>>1];F[f+19|0]=255;g=+(i>>>0)/255;e:{if(g<4294967296&g>=0){h=~~g>>>0;break e}h=0}F[f+16|0]=h;f:{if(!(d&-3)){if((H[e+16>>2]-H[e>>2]|0)!=1){g=+J[e+24>>1]/255;g:{if(g<4294967296&g>=0){h=~~g>>>0;break g}h=0}F[f+22|0]=h;g=+J[e+26>>1]/255;h:{if(g<4294967296&g>=0){h=~~g>>>0;break h}h=0}F[f+21|0]=h;g=+J[e+28>>1]/255;if(g<4294967296&g>=0){F[f+20|0]=~~g>>>0;break f}F[f+20|0]=0;break f}H[f+24>>2]=0;break f}if((d|0)!=1){break f}if((H[e+36>>2]-H[e+4>>2]|0)!=1){g=+J[e+40>>1]/255;i:{if(g<4294967296&g>=0){h=~~g>>>0;break i}h=0}F[f+22|0]=h;g=+J[e+42>>1]/255;j:{if(g<4294967296&g>=0){h=~~g>>>0;break j}h=0}F[f+21|0]=h;g=+J[e+44>>1]/255;if(g<4294967296&g>=0){F[f+20|0]=~~g>>>0;break f}F[f+20|0]=0;break f}H[f+24>>2]=0}F[f+23|0]=255;e=H[a+120>>2];H[197455]=0;i=H[e+8>>2];e=H[197455];H[197455]=0;if((e|0)==1){break a}e=H[a+120>>2];H[197455]=0;j=f+8|4;H[e+8>>2]=j;e=H[197455];H[197455]=0;if((e|0)==1){break a}e=H[b>>2];h=H[e+4>>2];e=H[e>>2];H[197455]=0;ga(1863,a|0,e|0,h|0);e=H[197455];H[197455]=0;if((e|0)==1){break a}e=H[b>>2];h=H[e+20>>2];e=H[e+16>>2];H[197455]=0;ga(1864,a|0,e|0,h|0);e=H[197455];H[197455]=0;if((e|0)==1){break a}e=H[b>>2];h=H[e+36>>2];e=H[e+32>>2];H[197455]=0;ga(1864,a|0,e|0,h|0);e=H[197455];H[197455]=0;if((e|0)==1){break a}e=H[b>>2];if((H[b+4>>2]-e|0)==64){h=H[e+52>>2];e=H[e+48>>2];H[197455]=0;ga(1864,a|0,e|0,h|0);e=H[197455];H[197455]=0;if((e|0)==1){break a}}H[197455]=0;ia(1865,a|0);e=H[197455];H[197455]=0;if((e|0)==1){break a}e=H[a+208>>2];if(!(!(!H[a+156>>2]|!e)|!e)){h=H[H[e>>2]+52>>2];H[197455]=0;ba(h|0,e|0,2);e=H[197455];H[197455]=0;if((e|0)==1){break a}e=H[a+208>>2];h=H[H[e>>2]+56>>2];H[197455]=0;ia(h|0,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break a}e=H[a+208>>2]}if(e){h=H[H[e>>2]+448>>2];H[197455]=0;ka(h|0,e|0,b|0,c|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}}b=H[a+120>>2];H[197455]=0;if(H[b+8>>2]==(j|0)){H[b+8>>2]=0}b=H[197455];H[197455]=0;if((b|0)==1){break a}a=H[a+120>>2];H[197455]=0;H[a+8>>2]=i;a=H[197455];H[197455]=0;if((a|0)==1){break a}H[f+12>>2]=418012;H[f+8>>2]=417944;if(F[f+95|0]>=0){break b}Kb(H[f+84>>2])}xb=f+96|0;return}a=$()|0;_()|0;H[f+12>>2]=418012;H[f+8>>2]=417944;if(F[f+95|0]<0){Kb(H[f+84>>2])}ea(a|0);X()}function it(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if((I[a|0]|I[a+1|0]<<8)==2560){a:{c=I[a+4|0]|I[a+5|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0<=b>>>0){d=I[a+6|0]|I[a+7|0]<<8;f=(d<<8|d>>>8)&65535;d=b-c|0;if(f>>>0>d>>>0){break a}}a=H[40908];return a<<24|a<<8&16711680|(a>>>8&65280|a>>>24)}b=I[a+2|0]|I[a+3|0]<<8;if(!b){return 0}c=0;f=a;b=(b<<8|b>>>8)&65535;a=N(b,d);a=(a|0)<0?163632:(f+a|0)+8|0;b=b>>>0>1?b:1;e=b&3;if(b-1>>>0<3){b=0}else{g=b&65532;b=0;while(1){d=a;a=a+4|0;b=b+4|0;if((g|0)!=(b|0)){continue}break}b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(e){while(1){b=I[a|0]|b<<8;a=a+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return b}b:{c:{d:{e:{f:{g:{e=I[a|0]|I[a+1|0]<<8;switch((e<<8|e>>>8)&65535){case 4:break c;case 6:break d;case 8:break e;case 2:break f;case 0:break g;default:break b}}d=b>>>0>>0?(b|0)<0?163632:((b<<2)+a|0)+2|0:0;break b}e=0;c=I[a+4|0]|I[a+5|0]<<8;d=(c<<8|c>>>8)&65535;f=d;h:{if(!c){c=I[a+2|0]|I[a+3|0]<<8;g=(c<<8|c>>>8)&65535;c=0;break h}g=I[a+2|0]|I[a+3|0]<<8;g=(g<<8|g>>>8)&65535;d=N(g,d-1|0)+a|0;c=0;if((I[d+12|0]|I[d+13|0]<<8)!=65535){break h}c=(I[d+14|0]|I[d+15|0]<<8)==65535?-1:0}c=f+c|0;i:{if((c|0)<=0){break i}f=a+12|0;c=c-1|0;d=0;while(1){a=c+d>>>1|0;e=f+N(a,g)|0;h=I[e+2|0]|I[e+3|0]<<8;j:{if(((h<<8|h>>>8)&65535)>>>0<=b>>>0){d=I[e|0]|I[e+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>=b>>>0){break i}d=a+1|0;break j}c=a-1|0}if((c|0)>=(d|0)){continue}break}e=0}d=e?e+4|0:0;break b}c=I[a+2|0]|I[a+3|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0>b>>>0){break b}b=b-c|0;e=I[a+4|0]|I[a+5|0]<<8;if(b>>>0>=((e<<8|e>>>8)&65535)>>>0){break b}d=(b|0)<0?163632:((b<<2)+a|0)+6|0;break b}c=I[a+4|0]|I[a+5|0]<<8;d=(c<<8|c>>>8)&65535;e=0;k:{if(!c){c=I[a+2|0]|I[a+3|0]<<8;g=(c<<8|c>>>8)&65535;c=0;break k}c=I[a+2|0]|I[a+3|0]<<8;g=(c<<8|c>>>8)&65535;c=N(g,d-1|0)+a|0;c=(I[c+12|0]|I[c+13|0]<<8)==65535?-1:0}c=c+d|0;l:{if((c|0)<=0){break l}f=a+12|0;c=c-1|0;d=0;while(1){a=c+d>>>1|0;e=f+N(a,g)|0;h=I[e|0]|I[e+1|0]<<8;h=(h<<8|h>>>8)&65535;m:{if(h>>>0>b>>>0){c=a-1|0;break m}if((b|0)==(h|0)){break l}d=a+1|0}if((c|0)>=(d|0)){continue}break}e=0}d=e?e+2|0:0;break b}c=I[a+4|0]|I[a+5|0]<<8;f=(c<<8|c>>>8)&65535;n:{if(!c){c=I[a+2|0]|I[a+3|0]<<8;g=(c<<8|c>>>8)&65535;c=0;break n}e=I[a+2|0]|I[a+3|0]<<8;g=(e<<8|e>>>8)&65535;e=N(g,f-1|0)+a|0;c=0;if((I[e+12|0]|I[e+13|0]<<8)!=65535){break n}c=(I[e+14|0]|I[e+15|0]<<8)==65535?-1:0}c=c+f|0;if((c|0)<=0){break b}h=a+12|0;c=c-1|0;while(1){f=c+d>>>1|0;e=h+N(f,g)|0;i=I[e+2|0]|I[e+3|0]<<8;i=(i<<8|i>>>8)&65535;o:{if(i>>>0<=b>>>0){d=I[e|0]|I[e+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>>0){d=f+1|0;break o}c=a;a=I[e+4|0]|I[e+5|0]<<8;c=c+((a<<8|a>>>8)&65535)|0;a=b-i|0;d=(a|0)<0?163632:c+(a<<2)|0;break b}c=f-1|0}if((c|0)>=(d|0)){continue}break}d=0}a=d?d:163632;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);return a<<24|a<<8&16711680|(a>>>8&65280|a>>>24)}function gF(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,r=0,s=0,t=0,u=0;n=xb-16|0;xb=n;e=H[b+4>>2];a:{if(e>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break a}k=H[b+12>>2]-2|0;H[b+12>>2]=k;if((k|0)<=0){break a}l=I[a|0]|I[a+1|0]<<8;if(!l){h=1;break a}i=a+2|0;if(i>>>0>>0|d>>>0>>0){break a}i=d-i|0;d=(l<<8|l>>>8)&65535;l=d<<1;if(i>>>0>>0){break a}k=k-l|0;H[b+12>>2]=k;if((k|0)<=0){break a}l=a+2|0;if(e>>>0>l>>>0){break a}s=d>>>0>1?d:1;while(1){b:{d=H[b+8>>2];if(d>>>0>>0|d-l>>>0<2){break b}e=H[c>>2];d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break b}d=I[l|0]|I[l+1|0]<<8;c:{if(!d){break c}k=e+((d<<8|d>>>8)&65535)|0;H[n+12>>2]=k;d=0;i=H[b+4>>2];d:{e:{if(i>>>0>k>>>0){break e}h=H[b+8>>2];if(h>>>0>>0|h-k>>>0<2){break e}f=H[b+12>>2]-2|0;H[b+12>>2]=f;if((f|0)<=0){break e}j=I[k|0]|I[k+1|0]<<8;g=1;if(!j){break d}e=k+2|0;if(e>>>0>>0|e>>>0>h>>>0){break e}g=h-e|0;e=(j<<8|j>>>8)&65535;h=e<<1;if(g>>>0>>0){break e}h=f-h|0;H[b+12>>2]=h;if((h|0)<=0){break e}h=k+2|0;if(i>>>0>h>>>0){break e}t=e>>>0>1?e:1;o=0;while(1){f:{d=H[b+8>>2];if(d>>>0>>0|d-h>>>0<2){break f}e=H[n+12>>2];d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break f}d=I[h|0]|I[h+1|0]<<8;g:{if(!d){break g}q=0;f=e+((d<<8|d>>>8)&65535)|0;i=H[b+4>>2];h:{if(f>>>0>>0){break h}d=H[b+8>>2];if(d>>>0>>0|d-f>>>0<2){break h}e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break h}g=I[f|0]|I[f+1|0]<<8;j=((g<<8|g>>>8)&65535)<<1;if(g){g=f+2|0;if(g>>>0>>0|d>>>0>>0|j>>>0>d-g>>>0){break h}e=e-j|0;H[b+12>>2]=e;if((e|0)<=0){break h}}f=(f+j|0)+2|0;if(f>>>0>>0|d>>>0>>0|d-f>>>0<2){break h}j=e-2|0;H[b+12>>2]=j;if((e|0)<3){break h}e=I[f|0]|I[f+1|0]<<8;g=(e<<8|e>>>8)&65535;i:{if(!e){break i}r=g-1|0;if(!r){g=1;break i}m=f+2|0;if(i>>>0>m>>>0|d>>>0>>0){break h}u=d-m|0;m=r<<1;if(u>>>0>>0){break h}j=j-m|0;H[b+12>>2]=j;if((j|0)<=0){break h}}f=f+(e?g<<1:2)|0;if(f>>>0>>0|d>>>0>>0|d-f>>>0<2){break h}e=j-2|0;H[b+12>>2]=e;if((j|0)<3){break h}g=I[f|0]|I[f+1|0]<<8;j=((g<<8|g>>>8)&65535)<<1;if(g){g=f+2|0;if(g>>>0>>0|d>>>0>>0|j>>>0>d-g>>>0){break h}e=e-j|0;H[b+12>>2]=e;if((e|0)<=0){break h}}f=(f+j|0)+2|0;if(f>>>0>>0|d>>>0>>0|d-f>>>0<2){break h}j=e-2|0;H[b+12>>2]=j;if((e|0)<3){break h}e=I[f|0]|I[f+1|0]<<8;if(e){g=i;i=f+2|0;if(g>>>0>i>>>0|d>>>0>>0){break h}i=d-i|0;d=((e<<8|e>>>8)&65535)<<2;if(i>>>0>>0){break h}d=j-d|0;H[b+12>>2]=d;if((d|0)<=0){break h}}q=1}if(q){break g}d=H[b+28>>2];if(d>>>0>31){break f}H[b+28>>2]=d+1;if(!I[b+24|0]){break f}F[h|0]=0;F[h+1|0]=0}d=1;o=o+1|0;if((t|0)==(o|0)){break e}h=(k+(o<<1)|0)+2|0;if(h>>>0>=K[b+4>>2]){continue}}break}d=0}g=d}if(g){break c}d=H[b+28>>2];if(d>>>0>31){break b}H[b+28>>2]=d+1;if(!I[b+24|0]){break b}F[l|0]=0;F[l+1|0]=0}h=1;p=p+1|0;if((s|0)==(p|0)){break a}l=((p<<1)+a|0)+2|0;if(l>>>0>=K[b+4>>2]){continue}}break}h=0}xb=n+16|0;return h}function lea(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;e=xb-48|0;xb=e;h=H[a+464>>2];a:{b:{if(H[h+40>>2]|!H[a+280>>2]){break b}d=H[a+460>>2];H[d+24>>2]=H[d+24>>2]+(H[h+12>>2]/8|0);H[h+12>>2]=0;f=0;if(!(zb[H[d+8>>2]](a)|0)){break a}if(H[a+336>>2]>0){d=0;while(1){H[((d<<2)+h|0)+20>>2]=0;d=d+1|0;if((d|0)>2]){continue}break}}H[h+16>>2]=0;H[h+40>>2]=H[a+280>>2];if(H[a+436>>2]){break b}H[h+36>>2]=0}if(!H[h+36>>2]){H[e+40>>2]=a;c=H[a+24>>2];i=H[c>>2];H[e+24>>2]=i;j=H[c+4>>2];H[e+28>>2]=j;d=H[h+12>>2];g=H[h+8>>2];H[e+16>>2]=H[h+32>>2];f=H[h+28>>2];H[e+8>>2]=H[h+24>>2];H[e+12>>2]=f;f=H[h+20>>2];H[e>>2]=H[h+16>>2];H[e+4>>2]=f;if(H[a+364>>2]>0){while(1){j=l<<2;n=H[j+b>>2];i=h+j|0;c=H[i+96>>2];c:{d:{e:{if((d|0)>7){break e}f=0;if(!Hd(e+24|0,g,d,0)){break a}g=H[e+32>>2];d=H[e+36>>2];if((d|0)>7){break e}c=Le(e+24|0,g,d,c,1);break d}f=g>>d-8&255;k=H[(c+(f<<2)|0)+144>>2];if(k){c=I[(c+f|0)+1168|0];d=d-k|0;break c}c=Le(e+24|0,g,d,c,9)}f=0;if((c|0)<0){break a}g=H[e+32>>2];d=H[e+36>>2]}k=H[i+136>>2];m=H[i+176>>2];f:{g:{if(m){if(c){if((c|0)>(d|0)){f=0;if(!Hd(e+24|0,g,d,c)){break a}g=H[e+32>>2];d=H[e+36>>2]}d=d-c|0;c=c<<2;f=H[c+256992>>2];i=g>>d&f;c=i-((i|0)>H[c+256988>>2]?0:f)|0}else{c=0}f=(H[(a+j|0)+368>>2]<<2)+e|0;c=c+H[f+4>>2]|0;H[f+4>>2]=c;G[n>>1]=c;i=1;if((m|0)<2){break g}while(1){h:{i:{j:{if((d|0)>7){break j}f=0;if(!Hd(e+24|0,g,d,0)){break a}g=H[e+32>>2];d=H[e+36>>2];if((d|0)>7){break j}c=Le(e+24|0,g,d,k,1);break i}c=g>>d-8&255;f=H[(k+(c<<2)|0)+144>>2];if(f){c=I[(c+k|0)+1168|0];d=d-f|0;break h}c=Le(e+24|0,g,d,k,9)}f=0;if((c|0)<0){break a}g=H[e+32>>2];d=H[e+36>>2]}j=c>>>4|0;c=c&15;k:{if(c){if((c|0)>(d|0)){f=0;if(!Hd(e+24|0,g,d,c)){break a}g=H[e+32>>2];d=H[e+36>>2]}j=i+j|0;d=d-c|0;c=c<<2;f=H[c+256992>>2];i=g>>d&f;G[(H[(j<<2)+254352>>2]<<1)+n>>1]=i-((i|0)>H[c+256988>>2]?0:f);break k}if((j|0)!=15){break f}j=i+15|0}i=j+1|0;if((m|0)>(i|0)){continue}break}if((j|0)<=62){break g}break f}i=1;if(!c){break g}if((c|0)>(d|0)){f=0;if(!Hd(e+24|0,g,d,c)){break a}g=H[e+32>>2];d=H[e+36>>2]}d=d-c|0}while(1){l:{m:{n:{if((d|0)>7){break n}f=0;if(!Hd(e+24|0,g,d,0)){break a}g=H[e+32>>2];d=H[e+36>>2];if((d|0)>7){break n}c=Le(e+24|0,g,d,k,1);break m}c=g>>d-8&255;f=H[(k+(c<<2)|0)+144>>2];if(f){c=I[(c+k|0)+1168|0];d=d-f|0;break l}c=Le(e+24|0,g,d,k,9)}f=0;if((c|0)<0){break a}g=H[e+32>>2];d=H[e+36>>2]}j=c>>>4|0;c=c&15;o:{if(c){if((c|0)>(d|0)){f=0;if(!Hd(e+24|0,g,d,c)){break a}g=H[e+32>>2];d=H[e+36>>2]}d=d-c|0;break o}c=(j|0)!=15;j=15;if(c){break f}}i=(i+j|0)+1|0;if((i|0)<64){continue}break}}l=l+1|0;if((l|0)>2]){continue}break}j=H[e+28>>2];i=H[e+24>>2];c=H[a+24>>2]}H[c+4>>2]=j;H[c>>2]=i;H[h+12>>2]=d;H[h+8>>2]=g;H[h+32>>2]=H[e+16>>2];a=H[e+12>>2];H[h+24>>2]=H[e+8>>2];H[h+28>>2]=a;a=H[e+4>>2];H[h+16>>2]=H[e>>2];H[h+20>>2]=a}H[h+40>>2]=H[h+40>>2]-1;f=1}xb=e+48|0;return f|0}function OC(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;i=xb-16|0;xb=i;a:{b:{c:{d:{e:{k=H[b+8>>2];if(K[b+4>>2]<=k+3>>>0){break e}o=H[a>>2];e=H[b+20>>2];if(e){if((zb[e|0](b,k,i+12|0,4)|0)!=4){break e}h=H[b+8>>2];e=i+12|0;break d}e=H[b>>2];if(e){e=e+k|0;h=k;break d}H[b+8>>2]=k+4;e=2;break c}e=85;break a}f=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);j=h+4|0;H[b+8>>2]=j;e=2;if((f<<8&16711680|f<<24|(f>>>8&65280|f>>>24))!=1954115633){break c}f=H[b+4>>2];if(f>>>0<=h+5>>>0){break b}f:{g:{h:{e=H[b+20>>2];i:{if(e){if((zb[e|0](b,j,i+12|0,2)|0)!=2){break b}h=H[b+20>>2];j=H[b+8>>2];e=i+12|0;break i}e=H[b>>2];if(!e){break h}h=0;e=e+j|0}f=I[e+1|0];e=I[e|0];H[b+8>>2]=j+2;g=j+8|0;p=f|e<<8;if(!h){f=H[b+4>>2];break g}e=85;if(!(zb[h|0](b,g,0,0)|0)){break f}break a}H[b+8>>2]=h+6;g=h+12|0}e=85;if(f>>>0>>0){break a}}H[b+8>>2]=g;e=142;if(!p){break a}l=(c|0)>0?c&65535:c;n=-1;j:{k:{l:{while(1){h=H[b+4>>2];if(h>>>0<=g+3>>>0){break l}m:{n:{o:{p:{c=H[b+20>>2];q:{if(c){if((zb[c|0](b,g,i+12|0,4)|0)!=4){break l}h=H[b+20>>2];g=H[b+8>>2];c=i+12|0;break q}c=H[b>>2];if(!c){break p}h=0;c=c+g|0}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+8>>2]=g+4;j=c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);c=g+8|0;if(!h){h=H[b+4>>2];break o}if(!(zb[h|0](b,c,0,0)|0)){break n}e=85;break a}H[b+8>>2]=g+4;c=g+8|0;j=0}if(c>>>0<=h>>>0){break m}e=85;break a}h=H[b+4>>2]}H[b+8>>2]=c;r:{s:{t:{if(g+11>>>0>=h>>>0){break t}f=H[b+20>>2];u:{if(f){if((zb[f|0](b,c,i+12|0,4)|0)!=4){break t}h=H[b+4>>2];c=H[b+8>>2];f=i+12|0;break u}f=H[b>>2];if(!f){break s}f=c+f|0}f=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);break r}e=85;break a}f=0}g=c+4|0;H[b+8>>2]=g;v:{w:{x:{if(c+7>>>0>=h>>>0){break x}c=H[b+20>>2];y:{if(c){if((zb[c|0](b,g,i+12|0,4)|0)!=4){break x}g=H[b+8>>2];c=i+12|0;break y}c=H[b>>2];if(!c){break w}c=c+g|0}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);break v}e=85;break a}c=0}g=g+4|0;H[b+8>>2]=g;z:{A:{if((j|0)!=1415139377){if((j|0)!=1128875040){break A}c=c-22|0;f=f+22|0;q=1;if((l|0)<0){break z}n=n+1|0;break A}c=c-24|0;f=f+24|0;q=0;if((l|0)<0){break z}n=n+1|0}if((l|0)==(n|0)&(l|0)>=0){break z}m=m+1|0;if((m|0)==(p|0)){break a}continue}break}e=8;h=H[b+4>>2];if(h>>>0>>0|h-f>>>0>>0){break a}m=f+k|0;f=H[b+20>>2];B:{if(f){e=85;if(!(zb[f|0](b,m,0,0)|0)){break B}break a}e=85;if(h>>>0>>0){break a}}H[b+8>>2]=m;if((c|0)<=0){e=6;if(c){break a}g=0;e=wd(b,0,0);if(e){break j}break k}g=zb[H[o+4>>2]](o,c)|0;if(!g){e=64;break a}f=Nb(g,0,c);e=wd(b,f,c);if(!e){break k}zb[H[o+8>>2]](o,f);break j}e=85;break a}e=gq(a,g,c,l>>31&l,q?10933:11064,d)}if((e&255)!=2){break a}}a=e;c=H[b+20>>2];C:{if(c){e=85;if(!(zb[c|0](b,k,0,0)|0)){break C}break a}e=85;if(K[b+4>>2]>>0){break a}}H[b+8>>2]=k;e=a;break a}e=85}xb=i+16|0;return e}function Zq(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;c=H[a+36>>2];n=H[a+40>>2];k=H[a+28>>2];o=H[a+24>>2];q=k+N(o,40)|0;a:{if(b){r=8;if((o|0)<=0){break a}a=k;while(1){H[a+24>>2]=H[a+20>>2];H[a+28>>2]=H[a+8>>2];a=a+40|0;if(q>>>0>a>>>0){continue}break}break a}r=4;if((o|0)<=0){break a}a=k;while(1){H[a+24>>2]=H[a+16>>2];H[a+28>>2]=H[a+4>>2];a=a+40|0;if(q>>>0>a>>>0){continue}break}}if((c|0)>0){t=(c<<2)+n|0;while(1){i=H[n>>2];a=i;j=H[a+36>>2];b:{if(a>>>0>j>>>0){break b}c:{while(1){d:{if(J[a>>1]&r){c=a;e:while(1){d=c;h=d>>>0>=j>>>0;if(!h){c=d+40|0;if(J[d+40>>1]&r){continue}}g=1;f:{g:{e=d+40|0;c=e;f=j>>>0>>0;if(!f){while(1){if(J[c>>1]&r){break g}g=g+1|0;c=d+N(g,40)|0;if(j>>>0>=c>>>0){continue}break}}if((a|0)!=(d|0)){break f}c=H[a+24>>2];e=H[a+28>>2];if((c|0)==(e|0)){break b}e=c-e|0;if(a>>>0>i>>>0){break d}break c}if(g>>>0<2){continue}g=d+N(g,40)|0;l=g-40|0;h=H[d+28>>2]>H[g+28>>2];g=h?d:c;f=H[g+24>>2];g=H[g+28>>2];p=f-g|0;d=h?c:d;h=H[d+24>>2];d=H[d+28>>2];s=h-d|0;if(!((f|0)!=(h|0)&(d|0)!=(g|0))){while(1){f=H[e+28>>2];H[e+24>>2]=(d|0)<(f|0)?(f|0)<(g|0)?h:f+p|0:f+s|0;e=e+40|0;if(l>>>0>=e>>>0){continue}continue e}}u=dc(f-h|0,g-d|0);while(1){f=H[e+28>>2];h:{if((f|0)<=(d|0)){m=f+s|0;break h}m=f+p|0;if((f|0)>=(g|0)){break h}m=Rb(f-d|0,u)+h|0}H[e+24>>2]=m;e=e+40|0;if(l>>>0>=e>>>0){continue}break}continue}break}i:{if(f|h){break i}c=H[d+28>>2]>H[a+28>>2];g=c?d:a;f=H[g+24>>2];g=H[g+28>>2];l=f-g|0;c=c?a:d;h=H[c+24>>2];c=H[c+28>>2];p=h-c|0;if(!((f|0)!=(h|0)&(c|0)!=(g|0))){while(1){f=H[e+28>>2];H[e+24>>2]=(c|0)<(f|0)?(f|0)<(g|0)?h:f+l|0:f+p|0;e=e+40|0;if(j>>>0>=e>>>0){continue}break i}}s=dc(f-h|0,g-c|0);while(1){f=H[e+28>>2];j:{if((f|0)<=(c|0)){m=f+p|0;break j}m=f+l|0;if((f|0)>=(g|0)){break j}m=Rb(f-c|0,s)+h|0}H[e+24>>2]=m;e=e+40|0;if(j>>>0>=e>>>0){continue}break}}if(a>>>0<=k>>>0){break b}g=a-40|0;if(g>>>0>>0){break b}e=H[d+28>>2]>H[a+28>>2];c=e?d:a;j=H[c+24>>2];c=H[c+28>>2];h=j-c|0;a=e?a:d;e=H[a+24>>2];a=H[a+28>>2];f=e-a|0;if(!((e|0)!=(j|0)&(a|0)!=(c|0))){while(1){d=H[i+28>>2];H[i+24>>2]=(a|0)<(d|0)?(c|0)>(d|0)?e:d+h|0:d+f|0;i=i+40|0;if(g>>>0>=i>>>0){continue}break b}}j=dc(j-e|0,c-a|0);while(1){d=H[i+28>>2];k:{if((d|0)<=(a|0)){l=d+f|0;break k}l=d+h|0;if((c|0)<=(d|0)){break k}l=Rb(d-a|0,j)+e|0}H[i+24>>2]=l;i=i+40|0;if(g>>>0>=i>>>0){continue}break}break b}a=a+40|0;if(j>>>0>=a>>>0){continue}break b}break}while(1){H[i+24>>2]=e+H[i+28>>2];i=i+40|0;if(i>>>0>>0){continue}break}}c=a+40|0;if(j>>>0>>0){break b}while(1){H[a- -64>>2]=e+H[a+68>>2];a=c;c=a+40|0;if(j>>>0>=c>>>0){continue}break}}n=n+4|0;if(t>>>0>n>>>0){continue}break}}l:{if(b){if((o|0)<=0){break l}while(1){H[k+20>>2]=H[k+24>>2];k=k+40|0;if(q>>>0>k>>>0){continue}break}break l}if((o|0)<=0){break l}while(1){H[k+16>>2]=H[k+24>>2];k=k+40|0;if(q>>>0>k>>>0){continue}break}}}function qka(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;a:{if(!(F[b+147|0]&1)){break a}x=H[c+20>>2]>>31|1;v=1;while(1){t=H[b+68>>2];y=t+w|0;if(t){s=H[b+88>>2];q=H[b+80>>2];r=y;a=t;while(1){j=0;f=0;i=0;g=a;h=N(g-1|0,20);d=h+q|0;b:{if((I[d+19|0]&254)!=8){if(!B){break b}l=H[d+4>>2];r=r-1|0;f=N(r,20);g=f+q|0;H[g>>2]=H[d>>2];H[g+4>>2]=l;H[g+16>>2]=H[d+16>>2];l=H[d+12>>2];H[g+8>>2]=H[d+8>>2];H[g+12>>2]=l;g=f+s|0;d=h+s|0;H[g+16>>2]=H[d+16>>2];h=H[d+12>>2];H[g+8>>2]=H[d+8>>2];H[g+12>>2]=h;h=H[d+4>>2];H[g>>2]=H[d>>2];H[g+4>>2]=h;break b}c:{while(1){h=g-1|0;d=N(h,20)+q|0;if((I[d+19|0]&254)==8){l=0;g=H[c+80>>2];g=zb[H[g+176>>2]](c,H[c+84>>2],H[d>>2],H[g+32>>2])|0;d=I[d+19|0];e=(d|0)==8;j=(e?g:0)+j|0;i=(e?0:g)+i|0;f=((d|0)!=8)+f|0;k=0;d=0;g=h;if(g){continue}break c}break}d=g;k=0;d:{while(1){h=d-1|0;e=N(h,20);l=e+q|0;if((I[l+19|0]&254)==8){break d}m=J[l+16>>1];if(!(1<>2]+k|0;d=h;if(d){continue}break}d=0}l=g}e=N(k-j|0,x);z=0;i=N(i,x);g=0;e:{if((i|0)<=0){break e}g=0;if((e|0)<=(i|0)){break e}g=((e|0)/(i|0)|0)-1|0}h=g+1|0;f:{if((e|0)<=(N(h,i)|0)){h=g;break f}if((f|0)<=0){h=g;break f}g=N(i,g+2|0)-e|0;if((g|0)<=0){break f}z=(g|0)/(N(f,h)|0)|0}g=l+1|0;if(v){w=N(f,h)+w|0;a=g;break b}f=H[b+68>>2];n=a>>>0>f>>>0?f:a;o=n-d|0;g:{if(o>>>0<2){break g}i=H[b+144>>2]|32;H[b+144>>2]=i;if(d>>>0>=n>>>0){break g}m=H[b+80>>2];e=-1;f=d;A=(d^-1)+n|0;if(A>>>0>=3){u=o&-4;k=0;while(1){j=N(f,20)+m|0;p=H[j+8>>2];e=e>>>0

>>0?e:p;p=H[j+28>>2];e=e>>>0

>>0?e:p;p=H[j+48>>2];e=e>>>0

>>0?e:p;j=H[j+68>>2];e=e>>>0>>0?e:j;f=f+4|0;k=k+4|0;if((u|0)!=(k|0)){continue}break}}j=0;k=o&3;if(k){while(1){u=H[(N(f,20)+m|0)+8>>2];e=e>>>0>>0?e:u;f=f+1|0;j=j+1|0;if((k|0)!=(j|0)){continue}break}}if(o&1){f=N(d,20)+m|0;if(H[f+8>>2]!=(e|0)){H[b+144>>2]=i;H[f+4>>2]=H[f+4>>2]|3}d=d+1|0}if(!A){break g}while(1){f=N(d,20)+m|0;if(H[f+8>>2]!=(e|0)){i=i|32;H[b+144>>2]=i;H[f+4>>2]=H[f+4>>2]|3}f=N(d+1|0,20)+m|0;if(H[f+8>>2]!=(e|0)){i=i|32;H[b+144>>2]=i;H[f+4>>2]=H[f+4>>2]|3}d=d+2|0;if((n|0)!=(d|0)){continue}break}}if(a>>>0<=l>>>0){a=g;break b}k=h+1|0;i=0;while(1){a=a-1|0;d=N(a,20);h=d+q|0;f=H[c+80>>2];j=zb[H[f+176>>2]](c,H[c+84>>2],H[h>>2],H[f+32>>2])|0;m=I[h+19|0]==9?k:1;if(m){f=d+s|0;d=0;while(1){i=(i-j|0)+(d?z:0)|0;H[f+8>>2]=i;r=r-1|0;n=N(r,20);e=n+q|0;H[e+16>>2]=H[h+16>>2];o=H[h+12>>2];H[e+8>>2]=H[h+8>>2];H[e+12>>2]=o;o=H[h+4>>2];H[e>>2]=H[h>>2];H[e+4>>2]=o;e=n+s|0;H[e+16>>2]=H[f+16>>2];n=H[f+12>>2];H[e+8>>2]=H[f+8>>2];H[e+12>>2]=n;n=H[f+4>>2];H[e>>2]=H[f>>2];H[e+4>>2]=n;d=d+1|0;if((m|0)!=(d|0)){continue}break}}if(a>>>0>l>>>0){continue}break}a=g}a=a-1|0;if(a){continue}break}}if(v){v=0;B=1;a=w+t|0;if(!a|a>>>0>2]){continue}if(fh(b,a)){continue}break a}break}H[b+68>>2]=y}} +function vX(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=xb-80|0;xb=i;e=1;j=H[a+80>>2];a:{if(!j){break a}j=zb[H[H[j>>2]+32>>2]](j)|0;if(!j){break a}b:{c:{j=zb[H[H[j>>2]+36>>2]](j)|0;switch(j-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:break a;case 0:case 1:case 2:case 6:case 8:case 33:case 34:case 35:case 49:case 50:case 58:case 76:case 94:case 110:break b;default:break c}}if(j){break a}}e=j}hj(i- -64|0,g,d,e);d=H[a+80>>2];e=H[H[d>>2]+88>>2];H[197455]=0;d=aa(e|0,d|0)|0;e=H[197455];H[197455]=0;d:{e:{if((e|0)==1){break e}e=H[a+80>>2];g=H[H[e>>2]+84>>2];H[197455]=0;e=aa(g|0,e|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break e}M[i+56>>3]=e?-1:1;M[i+48>>3]=d?-1:1;g=0;H[i+40>>2]=0;H[i+32>>2]=0;H[i+36>>2]=0;f:{g:{if(h){H[i+24>>2]=0;H[i+16>>2]=0;H[i+20>>2]=0;e=0;d=F[i+75|0];j=(d|0)<0?H[i+68>>2]:d&255;h:{if(!j){break h}l=j<<1;if(l>>>0>=1073741823){H[197455]=0;ia(1654,i+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}X()}d=0;H[197455]=0;g=j<<3;k=aa(899,g|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break g}m=l-2|0;n=(m>>>1|0)+1&7;i:{if(!n){j=h;e=k;break i}j=h;e=k;while(1){M[e>>3]=G[j>>1];e=e+8|0;j=j+2|0;d=d+1|0;if((n|0)!=(d|0)){continue}break}}g=g+k|0;if(m>>>0<14){break h}d=h+l|0;while(1){M[e>>3]=G[j>>1];M[e+8>>3]=G[j+2>>1];M[e+16>>3]=G[j+4>>1];M[e+24>>3]=G[j+6>>1];M[e+32>>3]=G[j+8>>1];M[e+40>>3]=G[j+10>>1];M[e+48>>3]=G[j+12>>1];M[e+56>>3]=G[j+14>>1];e=e- -64|0;j=j+16|0;if((d|0)!=(j|0)){continue}break}}H[i+40>>2]=g;H[i+36>>2]=e;H[i+32>>2]=k}M[i+24>>3]=b|0;M[i+16>>3]=c|0;H[197455]=0;H[i>>2]=G[f>>1];H[i+4>>2]=G[f+2>>1];H[i+8>>2]=G[f+4>>1];H[i+12>>2]=G[f+6>>1];b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;Fa(1773,a+8|0,i- -64|0,i+16|0,i|0,i+48|0,i+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}a=H[i+32>>2];if(a){H[i+36>>2]=a;Kb(a)}if(F[i+75|0]<0){Kb(H[i+64>>2])}xb=i+80|0;return}e=$()|0;_()|0;a=H[i+16>>2];if(!a){break d}H[i+20>>2]=a;Kb(a);break d}e=$()|0;_()|0;a=H[i+32>>2];if(!a){break d}H[i+36>>2]=a;Kb(a);break d}e=$()|0;_()|0}if(F[i+75|0]<0){Kb(H[i+64>>2])}ea(e|0);X()}function Uea(a){a=a|0;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;s=H[a+480>>2];H[a+136>>2]=H[s+16>>2];e=H[s+20>>2];k=zb[H[H[a+4>>2]>>2]](a,1,e<<5)|0;H[k+16>>2]=0;H[k+20>>2]=31;H[k+8>>2]=0;H[k+12>>2]=63;H[k>>2]=0;H[k+4>>2]=31;Xq(H[H[a+480>>2]+24>>2],k);l=1;a:{b:{if((e|0)<2){break b}while(1){c:{d:{e:{f:{g:{if(l<<1<=(e|0)){o=l&1;if(p){break g}c=0;d=0;b=k;break f}o=l&3;i=0;if(p>>>0>=3){break e}c=0;d=0;b=k;break d}g=l&2147483646;c=0;d=0;b=k;i=0;while(1){h=H[b+28>>2];if((h|0)>(d|0)){f=H[b+24>>2]>0;c=f?b:c;d=f?h:d}h=H[b+60>>2];if((h|0)>(d|0)){f=H[b+56>>2]>0;c=f?b+32|0:c;d=f?h:d}b=b- -64|0;i=i+2|0;if((g|0)!=(i|0)){continue}break}}if(!o|H[b+28>>2]<=(d|0)){break c}c=H[b+24>>2]>0?b:c;break c}h=l&2147483644;c=0;d=0;b=k;g=0;while(1){m=c;c=H[b+24>>2];f=(c|0)>(d|0);j=H[b+56>>2];c=f?c:d;d=(j|0)>(c|0);m=d?b+32|0:f?b:m;f=H[b+88>>2];c=d?j:c;d=(f|0)>(c|0);m=d?b- -64|0:m;j=H[b+120>>2];d=d?f:c;f=(j|0)>(d|0);c=f?b+96|0:m;d=f?j:d;b=b+128|0;g=g+4|0;if((h|0)!=(g|0)){continue}break}}if(!o){break c}while(1){g=H[b+24>>2];h=(g|0)>(d|0);c=h?b:c;d=h?g:d;b=b+32|0;i=i+1|0;if((o|0)!=(i|0)){continue}break}}if(!c){break b}b=(l<<5)+k|0;H[b+4>>2]=H[c+4>>2];H[b+12>>2]=H[c+12>>2];H[b+20>>2]=H[c+20>>2];H[b>>2]=H[c>>2];H[b+8>>2]=H[c+8>>2];H[b+16>>2]=H[c+16>>2];h:{i:{j:{k:{l:{o=H[c+4>>2];g=H[c>>2];i=o-g<<4;h=H[c+12>>2];f=H[c+8>>2];d=N(h-f|0,12);j=H[c+20>>2];n=H[c+16>>2];switch((j-n<<3>(((d|0)<(i|0)?i:d)|0)?2:(i|0)<=(d|0))|0){case 2:break j;case 1:break k;case 0:break l;default:break h}}d=(g+o|0)/2|0;H[c+4>>2]=d;m=b;break i}d=(f+h|0)/2|0;H[c+12>>2]=d;m=b+8|0;break i}d=(j+n|0)/2|0;H[c+20>>2]=d;m=b+16|0}H[m>>2]=d+1}Xq(H[H[a+480>>2]+24>>2],c);Xq(H[H[a+480>>2]+24>>2],b);p=p+1|0;l=l+1|0;if((l|0)!=(e|0)){continue}break}l=e;if((e|0)<=0){break a}}n=0;while(1){g=0;h=0;f=0;j=0;b=(n<<5)+k|0;q=H[b>>2];v=H[b+4>>2];m:{if((q|0)>(v|0)){break m}w=H[b+12>>2];p=H[b+8>>2];if((w|0)<(p|0)){break m}r=H[b+20>>2];d=H[b+16>>2];if((r|0)<(d|0)){break m}y=H[H[a+480>>2]+24>>2];o=d+1|0;z=d<<3|4;A=(r-d|0)+1&1;while(1){t=q<<3|4;m=H[(q<<2)+y>>2];i=p;while(1){e=((i<<6)+m|0)+(d<<1)|0;u=i<<2|2;n:{if(!A){b=e;e=d;break n}b=e+2|0;e=J[e>>1];if(e){j=N(e,z)+j|0;f=N(e,u)+f|0;h=N(e,t)+h|0;g=e+g|0}e=o}c=e;if((d|0)!=(r|0)){while(1){e=J[b>>1];if(e){f=N(e,u)+f|0;h=N(e,t)+h|0;j=N(e,c<<3|4)+j|0;g=e+g|0}x=c+1|0;e=J[b+2>>1];if(e){f=N(e,u)+f|0;h=N(e,t)+h|0;j=N(e,x<<3|4)+j|0;g=e+g|0}b=b+4|0;c=c+2|0;if((r|0)!=(x|0)){continue}break}}b=(i|0)!=(w|0);i=i+1|0;if(b){continue}break}b=(q|0)!=(v|0);q=q+1|0;if(b){continue}break}}b=g>>1;F[H[H[a+136>>2]>>2]+n|0]=(b+h|0)/(g|0);F[H[H[a+136>>2]+4>>2]+n|0]=(b+f|0)/(g|0);F[H[H[a+136>>2]+8>>2]+n|0]=(b+j|0)/(g|0);n=n+1|0;if((n|0)!=(l|0)){continue}break}e=l}H[a+132>>2]=e;b=H[a>>2];H[b+24>>2]=e;H[b+20>>2]=98;zb[H[H[a>>2]+4>>2]](a,1);H[s+28>>2]=1}function pL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=xb-160|0;xb=h;a:{b:{if(gc(a,24256,13)){break b}c:{switch(I[a+13|0]){case 0:case 9:case 10:case 13:case 32:break c;default:break b}}a=H[e+32>>2];d:{e:{if(!a|!H[a+72>>2]){break e}if(!Me(12084,H[a+92>>2])){break e}if(H[a+80>>2]){break d}}b=H[e+32>>2];a=G[b+12>>1];H[b+40>>2]=a;H[h+16>>2]=a;a=h+32|0;Ad(a,12020,h+16|0);c=fi(H[e+32>>2],12084,a);if(c){break a}}a=H[e+32>>2];f:{g:{if(!a|!H[a+72>>2]){break g}if(!Me(12180,H[a+92>>2])){break g}if(H[a+80>>2]){break f}}b=H[e+32>>2];a=G[b+14>>1];H[b+44>>2]=a;H[h>>2]=a;a=h+32|0;Ad(a,12020,h);c=fi(H[e+32>>2],12180,a);if(c){break a}}H[e>>2]=H[e>>2]&-17;H[d>>2]=4;c=0;break a}h:{if(gc(a,24270,21)){break h}c=0;switch(I[a+21|0]){case 0:case 9:case 10:case 13:case 32:break a;default:break h}}i:{if(gc(a,11158,7)){break i}c=a+7|0;j:{switch(I[a+7|0]){case 9:case 10:case 13:case 32:F[a+7|0]=0;c=a+8|0;break;case 0:break j;default:break i}}c=fi(H[e+32>>2],a,c);break a}j=H[e+32>>2];c=a;k:{while(1){l:{f=-1;m:{n:{d=I[c|0];switch(d|0){case 0:break k;case 9:break l;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break m;default:break n}}if((d|0)==32){break l}}c=c+1|0;continue}break}F[c|0]=0;f=d}d=0;o:{if(!a|!I[a|0]){break o}g=Me(a,j+112|0);if(!g){break o}d=H[g>>2];if(d>>>0>=83){d=(H[j+104>>2]+(d<<4)|0)-1328|0;break o}d=(d<<4)+21680|0}if((f|0)!=-1){F[c|0]=f}if(!(H[d+4>>2]!=1?d:0)){if(I[c|0]){F[c|0]=0;c=c+1|0}f=a+b|0;while(1){b=I[c|0];if(!((b|0)!=32&(b|0)!=9)){c=c+1|0;continue}break}b=((b|0)==34)+c|0;p:{if(b>>>0>=f>>>0){break p}while(1){q:{r:{f=f-1|0;switch(I[f|0]-9|0){case 25:break q;case 0:case 23:break r;default:break p}}F[f|0]=0;if(b>>>0>>0){continue}break p}break}F[f|0]=0}c=fi(H[e+32>>2],a,b);break a}c=sf(e+40|0,11510,a,b);if(c){break a}b=H[e+40>>2];l=H[b>>2];j=0;s:{t:{u:{a=H[e+48>>2];switch(a|0){case 0:break s;case 1:break u;default:break t}}H[e+48>>2]=0;break s}H[b>>2]=H[b+4>>2];c=1;g=a-1|0;v:{if((g|0)==1){break v}b=a-2|0;k=b&3;d=1;if(a-3>>>0>=3){m=b&-4;b=0;while(1){f=H[e+40>>2];a=c<<2;n=f+a|0;i=f;f=d<<2;H[n>>2]=H[(i+f|0)+4>>2];i=H[e+40>>2];H[(i+a|0)+4>>2]=H[(f+i|0)+8>>2];i=H[e+40>>2];H[(i+a|0)+8>>2]=H[(f+i|0)+12>>2];f=a;a=H[e+40>>2];d=d+4|0;H[(f+a|0)+12>>2]=H[a+(d<<2)>>2];c=c+4|0;b=b+4|0;if((m|0)!=(b|0)){continue}break}}if(!k){break v}f=0;while(1){a=H[e+40>>2];d=d+1|0;H[a+(c<<2)>>2]=H[a+(d<<2)>>2];c=c+1|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}}H[e+48>>2]=g;if(!g){break s}d=0;a=H[H[e+40>>2]>>2];c=a;b=0;while(1){f=I[c|0];if(f){while(1){F[a+d|0]=f;d=d+1|0;f=I[c+1|0];c=c+1|0;if(f){continue}break}g=H[e+48>>2]}b=b+1|0;if(g>>>0>b>>>0){F[a+d|0]=32;g=H[e+48>>2];d=d+1|0}if(b>>>0>>0){c=H[H[e+40>>2]+(b<<2)>>2];continue}break}j=24081;if((a|0)==24081){break s}F[a+d|0]=0;j=a}c=fi(H[e+32>>2],l,j)}xb=h+160|0;return c|0}function gu(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,w=0,x=0,y=0,z=0;g=xb-16|0;xb=g;h=H[b+28>>2];i=H[a+736>>2];H[g>>2]=0;a:{b:{if(i){c:{if(!H[a+704>>2]){break c}if(zb[H[a+516>>2]](a,1668702578,b,g+8|0)|0){break c}f=Jc(b,H[g+8>>2]);H[g+12>>2]=f;if(f){break c}f=H[b>>2];d=H[b+32>>2];d:{if((de(b)|0)!=65536){H[g+12>>2]=0;break d}o=Ub(h,4,0,H[i>>2],0,g+12|0);if(H[g+12>>2]){break d}p=Ub(h,4,0,H[i>>2],0,g+12|0);if(H[g+12>>2]){break d}q=Ub(h,4,0,H[i>>2],0,g+12|0);if(H[g+12>>2]){break d}e=Tc(b);s=e&4095;k=Tc(b);c=H[g+8>>2];if((s<<2)+k>>>0>c>>>0){H[g+12>>2]=8;break d}j=k+(d-f|0)|0;if(e&32768){e=H[b+32>>2];f=H[b>>2];d=H[b+36>>2];H[b+32>>2]=d-f>>>0>j>>>0?f+j|0:d;r=Bl(b,c,g);k=H[b+32>>2];d=H[b>>2];f=e-f|0;e=H[b+36>>2];H[b+32>>2]=f>>>0>>0?d+f|0:e;j=k-d|0}l=Ub(h,4,0,H[a+700>>2],0,g+12|0);e:{if(H[g+12>>2]){break e}if(s){k=H[g>>2];f=0;while(1){x=Tc(b);d=Tc(b);f:{if(d&32768){c=0;if(!H[i>>2]){break f}while(1){y=(c<<2)+o|0,z=Tc(b)<<16>>16<<2,H[y>>2]=z;c=c+1|0;if(c>>>0>2]){continue}break}break f}e=d&4095;if(e>>>0>=K[i+60>>2]){H[g+12>>2]=8;break e}c=H[i+64>>2];if(!c){H[g+12>>2]=8;break e}t=e;e=H[i>>2];Ob(o,c+(N(t,e)<<2)|0,e<<2)}g:{if(!(d&16384)){break g}c=0;if(!H[i>>2]){break g}while(1){y=(c<<2)+p|0,z=Tc(b)<<16>>16<<2,H[y>>2]=z;c=c+1|0;e=H[i>>2];if(c>>>0>>0){continue}break}c=0;if(!e){break g}while(1){y=(c<<2)+q|0,z=Tc(b)<<16>>16<<2,H[y>>2]=z;c=c+1|0;if(c>>>0>2]){continue}break}}u=fu(i,d,o,p,q);if(u){m=H[b+32>>2];c=H[b>>2];e=H[b+36>>2];H[b+32>>2]=e-c>>>0>j>>>0?c+j|0:e;v=m-c|0;h:{if(d&8192){e=Bl(b,H[g+8>>2],g+4|0);d=H[g+4>>2];f=e;break h}H[g+4>>2]=k;d=k;e=f;f=r}m=lo(b,H[g+8>>2],d?d:H[a+700>>2]);i:{j:{k:{if(!f|!m){break k}if((e|0)!=-1){c=0;if(!d){break j}while(1){n=J[f+(c<<1)>>1];if(n>>>0>2]){n=(n<<2)+l|0;t=H[n>>2];y=n,z=Rb(H[m+(c<<2)>>2],u)+t|0,H[y>>2]=z}c=c+1|0;if((d|0)!=(c|0)){continue}break}break k}f=-1;if((d|0)!=H[a+700>>2]){break i}c=0;if(!d){break i}while(1){f=c<<2;d=f+l|0;n=H[d>>2];y=d,z=Rb(H[f+m>>2],u)+n|0,H[y>>2]=z;c=c+1|0;if(c>>>0>2]){continue}break}}f=-1;if((e|0)==-1){break i}}if(e){zb[H[h+8>>2]](h,e)}f=0}if(m){zb[H[h+8>>2]](h,m)}d=H[b>>2];e=H[b+36>>2];H[b+32>>2]=v>>>0>>0?d+v|0:e}j=j+x|0;w=w+1|0;if((w|0)!=(s|0)){continue}break}}f=H[a+700>>2];if(!f){break e}e=H[a+704>>2];d=0;if((f|0)!=1){i=f&-2;k=0;while(1){c=d<<2;j=c+e|0;H[j>>2]=H[j>>2]+(H[c+l>>2]+512>>10);c=c|4;j=c+e|0;H[j>>2]=H[j>>2]+(H[c+l>>2]+512>>10);d=d+2|0;k=k+2|0;if((i|0)!=(k|0)){continue}break}}if(!(f&1)){break e}f=d<<2;d=f+e|0;H[d>>2]=H[d>>2]+(H[f+l>>2]+512>>10)}wc(b);if((r|0)==-1){break a}break b}wc(b);break b}}H[g+12>>2]=0}if(r){zb[H[h+8>>2]](h,r)}}if(o){zb[H[h+8>>2]](h,o)}if(p){zb[H[h+8>>2]](h,p)}if(q){zb[H[h+8>>2]](h,q)}if(l){zb[H[h+8>>2]](h,l)}GA(a+108|0,108);xb=g+16|0;return H[g+12>>2]}function Bja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;c=H[H[a+124>>2]+4>>2];if(c){tE(c,b,H[a+4>>2])}d=H[b+68>>2];if(d){g=H[b+80>>2];a=0;while(1){e=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{f=N(a,20)+g|0;b=H[f>>2];c=b>>>12|0;switch(c|0){case 19:break g;case 17:break h;case 16:break i;case 15:break j;case 10:break k;case 2:break l;case 1:break m;case 0:break n;case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 11:case 12:case 13:case 14:case 18:case 20:case 21:case 23:case 25:case 26:case 28:case 29:break a;case 30:break c;case 27:break d;case 24:break e;case 22:break f;default:break o}}if((c|0)!=224|b-917760>>>0>239){break a}c=b-908608|0;break b}c=b-40|0;if(c>>>0<24){break b}if(b-160>>>0<=55){c=b-136|0;break b}p:{c=b&-8;if((c|0)!=1600){if((c|0)!=840){break p}c=b-760|0;break b}c=b-1512|0;break b}if(b-1992>>>0<=55){c=b-1896|0;break b}if((b&-32)==2112){c=b-1960|0;break b}if(b-2304>>>0<=1271){c=b-2120|0;break b}if(b-3840>>>0>199){break a}c=b-2384|0;break b}if(b-4096>>>0<=159){c=b-2440|0;break b}if(b-5888>>>0<=431){c=b-4072|0;break b}if(b-6400>>>0<=415){c=b-4152|0;break b}if(b-6912>>>0<=335){c=b-4248|0;break b}if(b-7376>>>0<=47){c=b-4376|0;break b}if((b&-8)!=7672){break a}c=b-4624|0;break b}if(b-8200>>>0<=15){c=b-5144|0;break b}if(b-8304>>>0<=23){c=b-5232|0;break b}q:{c=b&-8;if((c|0)!=9672){if((c|0)!=8432){break q}c=b-5336|0;break b}c=b-6568|0;break b}if(b-11568>>>0>79){break a}c=b-8456|0;break b}if(b-43008>>>0<=759){c=b-39816|0;break b}if((b&-64)!=43968){break a}c=b-40016|0;break b}if((b&-16)!=65024){break a}c=b-61008|0;break b}if(b-66928>>>0<=79){c=b-62896|0;break b}if(b-68096>>>0<=79){c=b-63984|0;break b}if(b-68288>>>0<=47){c=b-64096|0;break b}if(b-68480>>>0<=47){c=b-64240|0;break b}if((b&-64)==68864){c=b-64576|0;break b}if(b-69248>>>0<=55){c=b-64896|0;break b}if(b-69424>>>0>407){break a}c=b-65016|0;break b}if(b-69424>>>0<=407){c=b-65016|0;break b}if(b-69888>>>0<=319){c=b-65072|0;break b}if(b-70272>>>0<=247){c=b-65136|0;break b}if(b-70656>>>0<=223){c=b-65272|0;break b}if(b-71040>>>0<=455){c=b-65432|0;break b}if((b&-64)==71680){c=b-65616|0;break b}if(b-71936>>>0<=95){c=b-65808|0;break b}if(b-72096>>>0<=255){c=b-65872|0;break b}if(b-72704>>>0<=183){c=b-66224|0;break b}if(b-72960>>>0<=175){c=b-66296|0;break b}if(b-73440>>>0>23){break a}c=b-66600|0;break b}if(b-77824>>>0>1087){break a}c=b-70960|0;break b}if(b-92864>>>0<=119){c=b-84912|0;break b}if(b-93952>>>0<=151){c=b-85880|0;break b}if((b&-8)!=94176){break a}c=b-85952|0;break b}if(b-101120>>>0>471){break a}c=b-92888|0;break b}if(b-113664>>>0>159){break a}c=b-104960|0;break b}if(b-123136>>>0<=79){c=b-114272|0;break b}if(b-123536>>>0<=111){c=b-114592|0;break b}if(b-125184>>>0>95){break a}c=b-116128|0}e=I[c+142288|0]}F[f+18|0]=e;a=a+1|0;if((d|0)!=(a|0)){continue}break}}}function nn(a,b,c){var d=0,e=0,f=0,g=0;d=I[c+52|0]|I[c+53|0]<<8|(I[c+54|0]<<16|I[c+55|0]<<24);F[c+44|0]=d;F[c+45|0]=d>>>8;F[c+46|0]=d>>>16;F[c+47|0]=d>>>24;d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);F[c+12|0]=d;F[c+13|0]=d>>>8;F[c+14|0]=d>>>16;F[c+15|0]=d>>>24;a:{b:{if((b|0)<=0){e=c+32|0;break b}e=c+32|0;d=1;while(1){c:{d:{if((d|0)==1){F[c+16|0]=1;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;Rg(a,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24),c);b=b-1|0;break d}if((b|0)<(d|0)){break c}F[c+16|0]=d;F[c+17|0]=d>>>8;F[c+18|0]=d>>>16;F[c+19|0]=d>>>24;Rg(a,((I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24))+d|0)-2|0,c);b=b-d|0}f=I[c+32|0]|I[c+33|0]<<8|(I[c+34|0]<<16|I[c+35|0]<<24);d=f?d+1|0:1;if((b|0)>0){continue}break a}break}d=(I[c+16|0]|I[c+17|0]<<8|(I[c+18|0]<<16|I[c+19|0]<<24))+1|0;F[c+16|0]=d;F[c+17|0]=d>>>8;F[c+18|0]=d>>>16;F[c+19|0]=d>>>24;if((b|0)==1){b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)}else{b=((I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24))+b|0)-2|0}Rg(a,b,c)}f=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24)}d=I[c+48|0]|I[c+49|0]<<8|(I[c+50|0]<<16|I[c+51|0]<<24);F[c+44|0]=d;F[c+45|0]=d>>>8;F[c+46|0]=d>>>16;F[c+47|0]=d>>>24;if((d|0)<=(f|0)){b=I[c+68|0]|I[c+69|0]<<8|(I[c+70|0]<<16|I[c+71|0]<<24);e=b+(I[c+24|0]|I[c+25|0]<<8|(I[c+26|0]<<16|I[c+27|0]<<24))|0;F[c+68|0]=e;F[c+69|0]=e>>>8;F[c+70|0]=e>>>16;F[c+71|0]=e>>>24;b=I[c+64|0]|I[c+65|0]<<8|(I[c+66|0]<<16|I[c+67|0]<<24)|(I[c+56|0]|I[c+57|0]<<8|(I[c+58|0]<<16|I[c+59|0]<<24))<>>8;F[c+66|0]=b>>>16;F[c+67|0]=b>>>24;if((e|0)>=8){f=c+72|0;d=I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24);while(1){e=d+1|0;F[c+328|0]=e;F[c+329|0]=e>>>8;F[c+330|0]=e>>>16;F[c+331|0]=e>>>24;F[(c+d|0)+72|0]=b;d=I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24);if((d|0)>=255){b=H[a+1060>>2];zb[H[H[b>>2]+44>>2]](b,d&255)|0;b=H[a+1060>>2];zb[H[H[b>>2]+16>>2]](b,f,1,I[c+328|0]|I[c+329|0]<<8|(I[c+330|0]<<16|I[c+331|0]<<24))|0;F[c+328|0]=0;F[c+329|0]=0;F[c+330|0]=0;F[c+331|0]=0;d=0}b=(I[c+64|0]|I[c+65|0]<<8|(I[c+66|0]<<16|I[c+67|0]<<24))>>>8|0;F[c+64|0]=b;F[c+65|0]=b>>>8;F[c+66|0]=b>>>16;F[c+67|0]=b>>>24;g=I[c+68|0]|I[c+69|0]<<8|(I[c+70|0]<<16|I[c+71|0]<<24);e=g-8|0;F[c+68|0]=e;F[c+69|0]=e>>>8;F[c+70|0]=e>>>16;F[c+71|0]=e>>>24;if((g|0)>15){continue}break}a=I[c+48|0]|I[c+49|0]<<8|(I[c+50|0]<<16|I[c+51|0]<<24)}else{a=d}F[c+44|0]=a;F[c+45|0]=a>>>8;F[c+46|0]=a>>>16;F[c+47|0]=a>>>24;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=1;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;a=I[c+28|0]|I[c+29|0]<<8|(I[c+30|0]<<16|I[c+31|0]<<24);F[c+24|0]=a;F[c+25|0]=a>>>8;F[c+26|0]=a>>>16;F[c+27|0]=a>>>24;a=I[c+40|0]|I[c+41|0]<<8|(I[c+42|0]<<16|I[c+43|0]<<24);F[c+36|0]=a;F[c+37|0]=a>>>8;F[c+38|0]=a>>>16;F[c+39|0]=a>>>24}}function wea(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=H[a+408>>2];e=H[a+464>>2];a:{if(H[a+224>>2]){c=H[a+412>>2];b:{c:{d:{if(!b){if(!c){break d}break c}if((b|0)>(c|0)|(c|0)>H[a+432>>2]|H[a+336>>2]!=1){break c}}c=H[a+416>>2];e:{if(!c){d=H[a+420>>2];break e}d=c-1|0;if((d|0)!=H[a+420>>2]){break c}}if((d|0)<14){break b}}c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=17;H[H[a>>2]+28>>2]=H[a+412>>2];H[H[a>>2]+32>>2]=H[a+416>>2];H[H[a>>2]+36>>2]=H[a+420>>2];zb[H[H[a>>2]>>2]](a)}b=H[a+336>>2];if((b|0)>0){d=0;while(1){g=H[H[((d<<2)+a|0)+340>>2]+4>>2];f=H[a+160>>2];c=H[a+408>>2];b=0;f:{if(!c){break f}b=c;if(H[f+(g<<8)>>2]>=0){break f}b=H[a>>2];H[b+24>>2]=g;H[b+20>>2]=118;H[H[a>>2]+28>>2]=0;zb[H[H[a>>2]+4>>2]](a,-1);b=H[a+408>>2]}if((b|0)<=H[a+412>>2]){while(1){c=(f+(g<<8)|0)+(b<<2)|0;h=H[c>>2];if(H[a+416>>2]!=(((h|0)>0?h:0)|0)){h=H[a>>2];H[h+24>>2]=g;H[h+20>>2]=118;H[H[a>>2]+28>>2]=b;zb[H[H[a>>2]+4>>2]](a,-1)}H[c>>2]=H[a+420>>2];c=H[a+412>>2]>(b|0);b=b+1|0;if(c){continue}break}}b=H[a+336>>2];d=d+1|0;if((b|0)>(d|0)){continue}break}}c=H[a+408>>2];if(!H[a+416>>2]){if(!c){H[e+4>>2]=1285;break a}H[e+4>>2]=1286;break a}if(!c){H[e+4>>2]=1287;break a}H[e+4>>2]=1288;break a}g:{if(!(H[a+420>>2]|(H[a+416>>2]|b))){b=H[a+412>>2];if((b|0)>63|(b|0)==H[a+432>>2]){break g}}b=H[a>>2];H[b+20>>2]=125;zb[H[b+4>>2]](a,-1)}H[e+4>>2]=1289;b=H[a+336>>2]}if((b|0)>0){d=0;while(1){g=d<<2;c=H[(g+a|0)+340>>2];h:{i:{if(H[a+224>>2]){if(H[a+408>>2]){break i}if(H[a+416>>2]){break h}}b=H[c+20>>2];if(b>>>0>=16){f=H[a>>2];H[f+24>>2]=b;H[f+20>>2]=50;zb[H[H[a>>2]>>2]](a)}f=(b<<2)+e|0;b=H[f+56>>2];if(!b){b=zb[H[H[a+4>>2]>>2]](a,1,64)|0;H[f+56>>2]=b}F[b|0]=0;F[b+1|0]=0;F[b+2|0]=0;F[b+3|0]=0;F[b+4|0]=0;F[b+5|0]=0;F[b+6|0]=0;F[b+7|0]=0;F[b+56|0]=0;F[b+57|0]=0;F[b+58|0]=0;F[b+59|0]=0;F[b+60|0]=0;F[b+61|0]=0;F[b+62|0]=0;F[b+63|0]=0;F[b+48|0]=0;F[b+49|0]=0;F[b+50|0]=0;F[b+51|0]=0;F[b+52|0]=0;F[b+53|0]=0;F[b+54|0]=0;F[b+55|0]=0;F[b+40|0]=0;F[b+41|0]=0;F[b+42|0]=0;F[b+43|0]=0;F[b+44|0]=0;F[b+45|0]=0;F[b+46|0]=0;F[b+47|0]=0;F[b+32|0]=0;F[b+33|0]=0;F[b+34|0]=0;F[b+35|0]=0;F[b+36|0]=0;F[b+37|0]=0;F[b+38|0]=0;F[b+39|0]=0;F[b+24|0]=0;F[b+25|0]=0;F[b+26|0]=0;F[b+27|0]=0;F[b+28|0]=0;F[b+29|0]=0;F[b+30|0]=0;F[b+31|0]=0;F[b+16|0]=0;F[b+17|0]=0;F[b+18|0]=0;F[b+19|0]=0;F[b+20|0]=0;F[b+21|0]=0;F[b+22|0]=0;F[b+23|0]=0;F[b+8|0]=0;F[b+9|0]=0;F[b+10|0]=0;F[b+11|0]=0;F[b+12|0]=0;F[b+13|0]=0;F[b+14|0]=0;F[b+15|0]=0;b=e+g|0;H[b+36>>2]=0;H[b+20>>2]=0;if(!H[a+224>>2]){if(H[a+432>>2]){break i}break h}if(!H[a+408>>2]){break h}}b=H[c+24>>2];if(b>>>0>=16){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=50;zb[H[H[a>>2]>>2]](a)}c=(b<<2)+e|0;b=H[c+120>>2];if(!b){b=zb[H[H[a+4>>2]>>2]](a,1,256)|0;H[c+120>>2]=b}Nb(b,0,256)}d=d+1|0;if((d|0)>2]){continue}break}}H[e+16>>2]=-16;H[e+8>>2]=0;H[e+12>>2]=0;H[e+52>>2]=H[a+280>>2]}function eea(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,I=0,L=0,M=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;i=xb-128|0;xb=i;W=H[a+328>>2]-1|0;x=H[a+448>>2];a:{b:{while(1){j=H[a+144>>2];l=H[a+152>>2];if((j|0)>(l|0)){break b}d=H[a+456>>2];if(H[d+20>>2]|(l|0)==(j|0)&K[a+148>>2]>H[a+156>>2]+!H[a+408>>2]>>>0){break b}if(zb[H[d>>2]](a)|0){continue}break}a=0;break a}if(H[a+36>>2]>0){m=H[a+216>>2];while(1){c:{if(!H[m+52>>2]){break c}r=H[a+156>>2];B=W>>>0<=r>>>0;d:{if(!B){d=H[m+12>>2];k=d<<1;j=d;break d}d=H[m+12>>2];l=K[m+32>>2]%(d>>>0)|0;k=l?l:d;j=k}y=j;e:{if(r){C=(zb[H[H[a+4>>2]+32>>2]](a,H[((n<<2)+x|0)+72>>2],N(r-1|0,d),d+k|0,0)|0)+(H[m+12>>2]<<2)|0;break e}C=zb[H[H[a+4>>2]+32>>2]](a,H[((n<<2)+x|0)+72>>2],0,k,0)|0}if((y|0)<=0){break c}l=n<<2;X=H[(l+H[a+468>>2]|0)+4>>2];Y=y-1|0;p=H[x+112>>2]+N(n,24)|0;f=H[m+80>>2];d=J[f+4>>1];D=d<<8;E=d<<7;d=J[f+18>>1];F=d<<8;I=d<<7;j=J[f>>1];Z=N(j,5);d=J[f+32>>1];L=d<<8;M=d<<7;O=N(j,9);d=J[f+16>>1];P=d<<8;Q=d<<7;d=J[f+2>>1];R=d<<8;S=d<<7;T=N(j,36);z=H[b+l>>2];o=0;while(1){d=(o<<2)+C|0;k=H[d>>2];s=o|r?H[d-4>>2]:k;U=H[m+28>>2]-1|0;t=0;u=(o|0)==(Y|0)&B?k:H[d+4>>2];v=G[u>>1];d=v;q=G[k>>1];j=q;w=G[s>>1];l=w;A=0;while(1){g=l;l=w;V=j;j=q;f=d;d=v;Ob(i,k,128);if(t>>>0>>0){v=G[u+128>>1];q=G[k+128>>1];w=G[s+128>>1]}h=H[p+4>>2];if(!(J[i+2>>1]|!h)){c=N(V-q|0,T);f:{if((c|0)>=0){e=(c+S|0)/(R|0)|0;if((h|0)<=0){break f}c=1<(e|0)?e:c-1|0;break f}e=(S-c|0)/(R|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}G[i+2>>1]=e}h=H[p+8>>2];if(!(J[i+16>>1]|!h)){c=N(l-d|0,T);g:{if((c|0)>=0){e=(c+Q|0)/(P|0)|0;if((h|0)<=0){break g}c=1<(e|0)?e:c-1|0;break g}e=(Q-c|0)/(P|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}G[i+16>>1]=e}h=H[p+12>>2];if(!(J[i+32>>1]|!h)){c=N((l-(j<<1)|0)+d|0,O);h:{if((c|0)>=0){e=(c+M|0)/(L|0)|0;if((h|0)<=0){break h}c=1<(e|0)?e:c-1|0;break h}e=(M-c|0)/(L|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}G[i+32>>1]=e}c=H[p+16>>2];if(!(J[i+18>>1]|!c)){f=N((g-(f+w|0)|0)+v|0,Z);i:{if((f|0)>=0){g=(f+I|0)/(F|0)|0;if((c|0)<=0){break i}f=1<(g|0)?g:f-1|0;break i}g=(I-f|0)/(F|0)|0;f=1<0?(f|0)>(g|0)?g:f-1|0:g)|0}G[i+18>>1]=g}c=H[p+20>>2];if(!(J[i+4>>1]|!c)){f=N((V-(j<<1)|0)+q|0,O);j:{if((f|0)>=0){g=(f+E|0)/(D|0)|0;if((c|0)<=0){break j}f=1<(g|0)?g:f-1|0;break j}g=(E-f|0)/(D|0)|0;f=1<0?(f|0)>(g|0)?g:f-1|0:g)|0}G[i+4>>1]=g}zb[X|0](a,m,i,z,A);u=u+128|0;s=s+128|0;k=k+128|0;A=H[m+36>>2]+A|0;t=t+1|0;if(U>>>0>=t>>>0){continue}break}z=(H[m+40>>2]<<2)+z|0;o=o+1|0;if((y|0)!=(o|0)){continue}break}}m=m+88|0;n=n+1|0;if((n|0)>2]){continue}break}}b=H[a+156>>2]+1|0;H[a+156>>2]=b;a=b>>>0>2]?3:4}xb=i+128|0;return a|0}function GX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;d=xb-16|0;xb=d;a:{b:{if(Py(a,b,c)){Am(b);g=xb-16|0;xb=g;e=b+132|0;c:{if(!(a?e:0)){H[g+8>>2]=40;break c}h=H[a+28>>2];f=fA(a);H[g+8>>2]=f;if(f){break c}H[e+24>>2]=0;H[e+28>>2]=0;H[e>>2]=0;H[e+4>>2]=0;H[e+32>>2]=0;H[e+36>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e+28>>2]=h;f=mq(h,8276,g+8|0);if(!H[g+8>>2]){H[f>>2]=a;H[f+4>>2]=e;i=H[e+28>>2];j=f+8264|0;H[f+8272>>2]=j;H[f+8>>2]=i;H[f+8268>>2]=j;H[f+8264>>2]=0;d:{i=fA(a);e:{if(i){break e}i=H[a+8>>2];H[f+48>>2]=16;H[f+44>>2]=17;H[f+68>>2]=i;i=H[a+28>>2];H[f+16>>2]=0;H[f+52>>2]=i;H[f+12>>2]=f+4168;i=3;if(Jr(f+12|0,-15,8969)){break e}if(H[f+12>>2]){break d}}H[g+8>>2]=i;if(f){zb[H[h+8>>2]](h,f)}break c}H[g+8>>2]=0;H[e+12>>2]=f}j=H[a+8>>2];f:{g:{if(!bc(a,H[a+4>>2]-4|0)){i=Pe(a,g+12|0);k=H[g+12>>2];bc(a,j);j=k?0:i;if(j-1>>>0<=40958){k=pc(h,j,g+8|0);if(!H[g+8>>2]){if((cq(f,0,k,j)|0)==(j|0)){break f}cq(f,0,0,0);if(k){zb[H[h+8>>2]](h,k)}}H[g+8>>2]=0;break g}if(j){break g}}i=2147483647}H[e+8>>2]=0;H[e+4>>2]=i;H[e+24>>2]=18;H[e+20>>2]=19;H[e>>2]=0;break c}Bg(f+12|0);H[f+52>>2]=0;H[f+44>>2]=0;H[f+48>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;H[f>>2]=0;H[f+4>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f+16>>2]=0;if(f){zb[H[h+8>>2]](h,f)}H[e+4>>2]=j;H[e+8>>2]=0;H[e+12>>2]=0;H[e+24>>2]=18;H[e+20>>2]=0;H[e>>2]=k}xb=g+16|0;f=H[g+8>>2];if((f&255)==7){break b}if(f){h=xb-16|0;xb=h;f=40;h:{if(!e|!a){break h}i=H[a+28>>2];f=bc(a,0);if(f){break h}f=wd(a,h+12|0,2);if(f){break h}f=3;if(I[h+12|0]!=31|I[h+13|0]!=157){break h}H[h+8>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+32>>2]=0;H[e+36>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;H[e+28>>2]=i;g=pc(i,4292,h+8|0);f=H[h+8>>2];if(!f){H[g>>2]=a;H[g+4>>2]=e;j=H[e+28>>2];k=g+4280|0;H[g+4288>>2]=k;H[g+8>>2]=j;H[g+4284>>2]=k;H[g+4280>>2]=0;i:{j=bc(a,0);j:{if(j){break j}j=wd(a,h+14|0,2);if(j){break j}j=3;if(I[h+14|0]!=31){break j}if(I[h+15|0]==157){break i}}H[h+8>>2]=j;if(g){zb[H[i+8>>2]](i,g)}f=H[h+8>>2];break h}Nb(g+12|0,0,172);H[g+176>>2]=a;i=H[a+28>>2];H[g+108>>2]=64;H[g+100>>2]=g+112;H[g+180>>2]=i;H[g+36>>2]=0;H[g+40>>2]=0;F[g+44|0]=0;H[g+64>>2]=9;H[e+12>>2]=g}H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=2147483647;H[e+24>>2]=20;H[e+20>>2]=21}xb=h+16|0;if((f&255)==7|f){break b}}H[b+104>>2]=e;H[b+172>>2]=a;if(Py(e,b,c)){break b}}a=0;if((c|0)<0){break a}if(c&65535){Am(b);a=6;break a}k:{l:{a=H[b+180>>2];m:{if(!a){break m}c=H[b+176>>2];if(!c|(I[a|0]|32)!=105|((I[a+1|0]|32)!=115|(I[a+2|0]|32)!=111)){break m}a=a+3|0;if(!fc(a,9668)){break l}if(!fc(a,9831)){if(!fc(c,9964)){break l}}if(fc(a,10109)){break m}if(!fc(c,10212)){break l}}H[d+4>>2]=0;H[d+8>>2]=0;break k}H[d+4>>2]=1970170211;H[d+8>>2]=65539}H[d>>2]=b;a=of(29552,0,d,0);break a}Am(b);a=2}xb=d+16|0;return a|0}function sla(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=H[a+4>>2]+1|0;f=a;g=H[a>>2];a:{if((g|0)>=0){h=(d|0)>0?d:0;if(g>>>0>>0){a=g;while(1){a=((a>>>1|0)+a|0)+8|0;if(h>>>0>=a>>>0){continue}break}b:{if(!(a>>>0>>0|a>>>0>134217726)){d=0;g=Tb(a<<5);if(g){i=H[f+4>>2];c:{if(!i){break c}if(i-1>>>0>=7){k=i&-8;while(1){c=d<<5;b=c+g|0;H[b>>2]=0;H[b+4>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;b=(c|32)+g|0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;b=(c|64)+g|0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;b=(c|96)+g|0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;b=(c|128)+g|0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;b=(c|160)+g|0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;b=(c|192)+g|0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;c=(c|224)+g|0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=d+8|0;j=j+8|0;if((k|0)!=(j|0)){continue}break}}b=i&7;if(b){while(1){c=(d<<5)+g|0;H[c>>2]=0;H[c+4>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;d=d+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}}if(!i){e=0;break c}c=0;while(1){e=c<<5;d=e+g|0;e=e+H[f+8>>2]|0;H[d>>2]=H[e>>2];b=H[d+4>>2];H[d+4>>2]=H[e+4>>2];H[e+4>>2]=b;b=H[d+8>>2];H[d+8>>2]=H[e+8>>2];H[e+8>>2]=b;b=H[d+12>>2];H[d+12>>2]=H[e+12>>2];H[e+12>>2]=b;b=H[e+28>>2];H[d+24>>2]=H[e+24>>2];H[d+28>>2]=b;b=H[e+20>>2];H[d+16>>2]=H[e+16>>2];H[d+20>>2]=b;e=H[f+4>>2];c=c+1|0;if(e>>>0>c>>>0){continue}break}if(!e){e=0;break c}d=e;while(1){d=H[f+8>>2]+(d<<5)|0;H[d-24>>2]=0;c=d-20|0;Kb(H[c>>2]);H[c>>2]=0;d=d-28|0;H[d>>2]=0;H[d+4>>2]=0;d=H[f+4>>2]-1|0;H[f+4>>2]=d;if(d){continue}break}}H[f+4>>2]=e;Kb(H[f+8>>2])}if(g){break b}}H[f>>2]=-1;a=0;break a}H[f>>2]=a;H[f+8>>2]=g}a=H[f+4>>2];d:{if(h>>>0>a>>>0){while(1){H[f+4>>2]=a+1;a=H[f+8>>2]+(a<<5)|0;H[a>>2]=0;H[a+4>>2]=0;H[a+24>>2]=0;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;a=H[f+4>>2];if(h>>>0>a>>>0){continue}break d}}if(a>>>0<=h>>>0){break d}while(1){a=H[f+8>>2]+(a<<5)|0;H[a-24>>2]=0;g=a-20|0;Kb(H[g>>2]);H[g>>2]=0;a=a-28|0;H[a>>2]=0;H[a+4>>2]=0;a=H[f+4>>2]-1|0;H[f+4>>2]=a;if(a>>>0>h>>>0){continue}break}}H[f+4>>2]=h;a=1}else{a=0}}if(!a){a=H[40915];H[196254]=H[40914];H[196255]=a;a=H[40913];H[196252]=H[40912];H[196253]=a;a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;return 784992}return(H[f+8>>2]+(H[f+4>>2]<<5)|0)-32|0}function Qs(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=Nb(b,0,196);e=I[a+188|0];F[b+8|0]=e;a:{if(!e){break a}if(e-1>>>0>=3){h=e&252;f=b+12|0;g=a+192|0;while(1){G[f+(c<<1)>>1]=H[g+(c<<2)>>2];j=c|1;G[f+(j<<1)>>1]=H[g+(j<<2)>>2];j=c|2;G[f+(j<<1)>>1]=H[g+(j<<2)>>2];j=c|3;G[f+(j<<1)>>1]=H[g+(j<<2)>>2];c=c+4|0;i=i+4|0;if((h|0)!=(i|0)){continue}break}}e=e&3;if(!e){break a}i=0;while(1){G[(b+(c<<1)|0)+12>>1]=H[((c<<2)+a|0)+192>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0)){continue}break}}f=I[a+189|0];F[b+9|0]=f;b:{if(!f){break b}i=0;c=0;if(f-1>>>0>=3){j=f&252;g=b+40|0;h=a+248|0;e=0;while(1){G[g+(c<<1)>>1]=H[h+(c<<2)>>2];d=c|1;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|2;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|3;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}e=f&3;if(!e){break b}while(1){G[(b+(c<<1)|0)+40>>1]=H[((c<<2)+a|0)+248>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0)){continue}break}}f=I[a+190|0];F[b+10|0]=f;c:{if(!f){break c}i=0;c=0;if(f-1>>>0>=3){j=f&252;g=b+60|0;h=a+288|0;e=0;while(1){G[g+(c<<1)>>1]=H[h+(c<<2)>>2];d=c|1;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|2;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|3;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}e=f&3;if(!e){break c}while(1){G[(b+(c<<1)|0)+60>>1]=H[((c<<2)+a|0)+288>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0)){continue}break}}f=I[a+191|0];F[b+11|0]=f;d:{if(!f){break d}i=0;c=0;if(f-1>>>0>=3){j=f&252;g=b+88|0;h=a+344|0;e=0;while(1){G[g+(c<<1)>>1]=H[h+(c<<2)>>2];d=c|1;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|2;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|3;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}e=f&3;if(!e){break d}while(1){G[(b+(c<<1)|0)+88>>1]=H[((c<<2)+a|0)+344>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0)){continue}break}}H[b+108>>2]=H[a+384>>2];H[b+112>>2]=H[a+388>>2];H[b+116>>2]=H[a+392>>2];G[b+120>>1]=H[a+396>>2];G[b+122>>1]=H[a+400>>2];f=I[a+404|0];F[b+124|0]=f;e:{if(!f){break e}i=0;c=0;if(f-1>>>0>=3){j=f&252;g=b+128|0;h=a+408|0;e=0;while(1){G[g+(c<<1)>>1]=H[h+(c<<2)>>2];d=c|1;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|2;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|3;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}e=f&3;if(!e){break e}while(1){G[(b+(c<<1)|0)+128>>1]=H[((c<<2)+a|0)+408>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0)){continue}break}}f=I[a+405|0];F[b+125|0]=f;f:{if(!f){break f}i=0;c=0;if(f-1>>>0>=3){j=f&252;g=b+154|0;h=a+460|0;e=0;while(1){G[g+(c<<1)>>1]=H[h+(c<<2)>>2];d=c|1;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|2;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];d=c|3;G[g+(d<<1)>>1]=H[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}}e=f&3;if(!e){break f}while(1){G[(b+(c<<1)|0)+154>>1]=H[((c<<2)+a|0)+460>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0)){continue}break}}F[b+126|0]=I[a+512|0];H[b+184>>2]=H[a+524>>2];H[b+4>>2]=H[a+520>>2]}function Qg(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=H[a+344>>2]+1|0;H[a+344>>2]=c;a:{b:{if(c>>>0>2]){break b}if(!I[a+398|0]){break a}H[a+344>>2]=0;d=I[a+399|0];c:{if(!(I[a+208|0]&2)){c=d+1|0;b=c&255;if(b>>>0>6){break c}e=I[b+270140|0];g=(e+H[a+320>>2]|0)+(I[b+270133|0]^-1)|0;H[a+332>>2]=(g>>>0)/(e>>>0);f=I[b+270126|0];b=(f+H[a+324>>2]|0)+(I[b+270119|0]^-1)|0;H[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0){break c}c=d+2|0;b=c&255;if(b>>>0>6){break c}e=I[b+270140|0];g=(e+H[a+320>>2]|0)+(I[b+270133|0]^-1)|0;H[a+332>>2]=(g>>>0)/(e>>>0);f=I[b+270126|0];b=(f+H[a+324>>2]|0)+(I[b+270119|0]^-1)|0;H[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0){break c}c=d+3|0;b=c&255;if(b>>>0>6){break c}e=I[b+270140|0];g=(e+H[a+320>>2]|0)+(I[b+270133|0]^-1)|0;H[a+332>>2]=(g>>>0)/(e>>>0);f=I[b+270126|0];b=(f+H[a+324>>2]|0)+(I[b+270119|0]^-1)|0;H[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0){break c}c=d+4|0;b=c&255;if(b>>>0>6){break c}e=I[b+270140|0];g=(e+H[a+320>>2]|0)+(I[b+270133|0]^-1)|0;H[a+332>>2]=(g>>>0)/(e>>>0);f=I[b+270126|0];b=(f+H[a+324>>2]|0)+(I[b+270119|0]^-1)|0;H[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0){break c}c=d+5|0;b=c&255;if(b>>>0>6){break c}e=I[b+270140|0];g=(e+H[a+320>>2]|0)+(I[b+270133|0]^-1)|0;H[a+332>>2]=(g>>>0)/(e>>>0);f=I[b+270126|0];b=(f+H[a+324>>2]|0)+(I[b+270119|0]^-1)|0;H[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0){break c}c=d+6|0;b=c&255;if(b>>>0>6){break c}e=I[b+270140|0];g=(e+H[a+320>>2]|0)+(I[b+270133|0]^-1)|0;H[a+332>>2]=(g>>>0)/(e>>>0);f=I[b+270126|0];b=(f+H[a+324>>2]|0)+(I[b+270119|0]^-1)|0;H[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0){break c}c=d+7|0;if(d>>>0<249){break c}b=c&255;e=I[b+270140|0];g=(e+H[a+320>>2]|0)+(I[b+270133|0]^-1)|0;H[a+332>>2]=(g>>>0)/(e>>>0);f=I[b+270126|0];b=(f+H[a+324>>2]|0)+(I[b+270119|0]^-1)|0;H[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0){break c}c=d+8|0;d=c&255;if(d>>>0>6){break c}b=I[d+270140|0];H[a+332>>2]=((b+H[a+320>>2]|0)+(I[d+270133|0]^-1)>>>0)/(b>>>0);b=I[d+270126|0];H[a+328>>2]=((b+H[a+324>>2]|0)+(I[d+270119|0]^-1)>>>0)/(b>>>0);break c}c=d+1|0}F[a+399|0]=c;if((c&255)>>>0>6){break a}c=H[a+352>>2];if(!c){break b}d=H[a+320>>2];a=N(I[a+403|0],I[a+406|0]);d:{if(a>>>0>=8){a=N(d,a>>>3|0);break d}a=N(a,d)+7>>>3|0}Nb(c,0,a+1|0)}return}c=a+212|0;while(1){e:{d=_f(c,4);if(d){if((d|0)!=1){break e}c=H[a+272>>2];d=H[a+228>>2];if(c>>>0>d>>>0){se(a,1229209940,H[a+268>>2],c-d|0);c=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=c;H[a+200>>2]=H[a+200>>2]|4}OB(a);H[a+256>>2]=0;return}if(H[a+228>>2]){continue}se(a,1229209940,H[a+268>>2],H[a+272>>2]);d=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=d;H[a+200>>2]=H[a+200>>2]|4;continue}break}c=H[a+236>>2];if(!c){hc(a,264530);X()}hc(a,c);X()} +function Hw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=xb-48|0;xb=g;jh(a,g+32|0);k=H[g+40>>2];a:{if(!k){h=3;break a}f=H[g+32>>2];H[g+28>>2]=f;i=H[g+36>>2];b:{c:{d:{e=H[b+8>>2];if((e|0)==7){e=H[a+8>>2];H[a+8>>2]=i-1;l=1;h=H[a>>2];H[a>>2]=f+1;jh(a,g);H[a+8>>2]=e;H[a>>2]=h;h=3;if(H[g+8>>2]==3){break d}e=7;break b}h=3;if((k|0)==3){break c}l=1;break b}if(!d){break a}H[g+28>>2]=f+1;i=i-1|0;e=8;m=1;break b}if(!d){break a}m=1;H[g+28>>2]=f+1;i=i-1|0;l=d}n=d<<1;o=N(d,3);p=d<<2;q=e-1|0;r=k-2|0;e:{while(1){e=H[(m<<2)+c>>2];f=H[b+16>>2];be(g+28|0,i);k=e+f|0;h=3;f:{g:{h:{i:{j:{k:{switch(q|0){case 0:h=H[g+28>>2];f=h;l:{if(I[f|0]!=116|f+3>>>0>=i>>>0|(I[f+1|0]!=114|I[f+2|0]!=117)){break l}if(I[f+3|0]!=101){break l}e=1;H[g+28>>2]=h+5;break j}e=0;m:{if(I[h|0]!=102|h+4>>>0>=i>>>0|(I[h+1|0]!=97|I[h+2|0]!=108)){break m}if(I[f+3|0]!=115){break m}h=(I[h+4|0]==101?6:0)+h|0}H[g+28>>2]=h;break j;case 2:e=fg(g+28|0,i,0);break j;case 3:e=fg(g+28|0,i,3);break j;case 7:break g;case 6:break h;case 4:case 5:break i;case 1:break k;default:break a}}j=H[g+28>>2];H[g>>2]=j;f=gg(g,i,10);e=0;h=H[g>>2];if((j|0)==(h|0)){break j}if(!(I[h|0]!=35|h>>>0>=i>>>0)){j=h+1|0;H[g>>2]=j;f=gg(g,i,f);h=H[g>>2];if((j|0)==(h|0)){break j}}H[g+28>>2]=h;e=f}n:{switch(I[b+20|0]-1|0){case 0:F[k|0]=e;break f;case 1:G[k>>1]=e;break f;default:break n}}H[k>>2]=e;break f}e=H[g+28>>2];if(e>>>0>=i>>>0){break f}j=i-e|0;f=H[a+16>>2];o:{p:{switch(r|0){case 2:H[g+28>>2]=e+1;e=j-1|0;break o;case 0:break p;default:break a}}H[g+28>>2]=e+1;e=j-2|0}h=H[k>>2];if(h){if(h){zb[H[f+8>>2]](f,h)}H[k>>2]=0}f=pc(f,e+1|0,g+24|0);h=H[g+24>>2];if(h){break a}h=e;e=Ob(f,H[g+28>>2],e);F[h+e|0]=0;H[k>>2]=e;break f}if((Wi(g+28|0,i,4,g,0)|0)<=3){break a}e=H[g>>2];H[k>>2]=((e>>31)+e|0)+32768&-65536;e=H[g+4>>2];H[k+4>>2]=((e>>31)+e|0)+32768&-65536;e=H[g+8>>2];H[k+8>>2]=((e>>31)+e|0)+32768&-65536;e=H[g+12>>2];H[k+12>>2]=((e>>31)+e|0)+32768&-65536;break f}k=H[a+16>>2];e=Ub(k,4,0,p,0,g+24|0);h=H[g+24>>2];if(h){break a}f=Wi(g+28|0,i,d,e,0);if((f|0)<0|d>>>0>f>>>0){break e}f=g+28|0;be(f,i);f=Wi(f,i,d,e+p|0,0);if((f|0)<0|d>>>0>f>>>0){break e}f=g+28|0;be(f,i);f=Wi(f,i,d,e+(n<<2)|0,0);if((f|0)<0|d>>>0>f>>>0){break e}f=g+28|0;be(f,i);f=Wi(f,i,d,e+(o<<2)|0,0);if((f|0)<0|d>>>0>f>>>0){break e}be(g+28|0,i);f=0;if(d){while(1){j=f<<2;h=H[j+c>>2];j=H[e+j>>2];H[h>>2]=((j>>31)+j|0)+32768&-65536;j=H[e+(d+f<<2)>>2];H[h+4>>2]=((j>>31)+j|0)+32768&-65536;j=H[e+(f+n<<2)>>2];H[h+8>>2]=((j>>31)+j|0)+32768&-65536;j=h;h=H[e+(f+o<<2)>>2];H[j+12>>2]=((h>>31)+h|0)+32768&-65536;f=f+1|0;if((f|0)!=(d|0)){continue}break}}if(e){zb[H[k+8>>2]](k,e)}}m=m+1|0;l=l-1|0;if(l){continue}break}h=0;break a}H[g+24>>2]=3;if(e){zb[H[k+8>>2]](k,e)}h=H[g+24>>2]}xb=g+48|0;return h|0}function xo(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(H[a+200>>2]==(b|0)&H[a+204>>2]==(d|0)){break a}H[a+200>>2]=b;H[a+204>>2]=d;d=H[a+4>>2];if(!d){break a}f=Rb(H[a+8>>2],b);H[a+12>>2]=f;H[a+16>>2]=f+32&-64;f=d-1|0;if(!f){break a}d=a+20|0;while(1){h=Rb(H[d>>2],b);i=H[a+12>>2];j=h-i|0;g=j>>31;g=(g^j)-g>>>0<128?i:h;H[d+4>>2]=g;H[d+8>>2]=g+32&-64;d=d+12|0;f=f-1|0;if(f){continue}break}}b:{if(H[a+404>>2]==(c|0)&H[a+408>>2]==(e|0)){break b}H[a+404>>2]=c;H[a+408>>2]=e;b=H[a+208>>2];c:{if(!b){break c}d=Rb(H[a+212>>2],c);H[a+216>>2]=d;H[a+220>>2]=d+32&-64;f=b-1|0;if(!f){break c}d=a+224|0;while(1){g=Rb(H[d>>2],c);h=H[a+216>>2];i=g-h|0;b=i>>31;b=(b^i)-b>>>0<128?h:g;H[d+4>>2]=b;H[d+8>>2]=b+32&-64;d=d+12|0;f=f-1|0;if(f){continue}break}}F[a+2492|0]=(N(c,125)|0)>2]<<3&(c|0)<=34359737;d=H[a+2480>>2];d:{if((d|0)<=0){break d}while(1){if((Rb(d,c)|0)<33){break d}b=(d|0)>1;d=d-1|0;if(b){continue}break}d=0}H[a+2484>>2]=d;b=H[a+412>>2];if(b){d=a+416|0;while(1){k=d,l=Rb(H[d+8>>2],c)+e|0,H[k+28>>2]=l;k=d,l=Rb(H[d+12>>2],c)+e|0,H[k+24>>2]=l;k=d,l=Rb(H[d>>2],c)+e|0,H[k+16>>2]=l;k=d,l=Rb(H[d+4>>2],c),H[k+20>>2]=l;H[d+16>>2]=H[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b){continue}break}}b=H[a+928>>2];if(b){d=a+932|0;while(1){k=d,l=Rb(H[d+8>>2],c)+e|0,H[k+28>>2]=l;k=d,l=Rb(H[d+12>>2],c)+e|0,H[k+24>>2]=l;k=d,l=Rb(H[d>>2],c)+e|0,H[k+16>>2]=l;k=d,l=Rb(H[d+4>>2],c),H[k+20>>2]=l;H[d+16>>2]=H[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b){continue}break}}b=H[a+1444>>2];if(b){d=a+1448|0;while(1){k=d,l=Rb(H[d+8>>2],c)+e|0,H[k+28>>2]=l;k=d,l=Rb(H[d+12>>2],c)+e|0,H[k+24>>2]=l;k=d,l=Rb(H[d>>2],c)+e|0,H[k+16>>2]=l;k=d,l=Rb(H[d+4>>2],c),H[k+20>>2]=l;H[d+16>>2]=H[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b){continue}break}}b=H[a+1960>>2];if(b){d=a+1964|0;while(1){k=d,l=Rb(H[d+8>>2],c)+e|0,H[k+28>>2]=l;k=d,l=Rb(H[d+12>>2],c)+e|0,H[k+24>>2]=l;k=d,l=Rb(H[d>>2],c)+e|0,H[k+16>>2]=l;k=d,l=Rb(H[d+4>>2],c),H[k+20>>2]=l;H[d+16>>2]=H[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b){continue}break}}e:{g=H[a+412>>2];if(!g){break e}d=H[a+1444>>2];if(!d){break e}b=a+1448|0;f=a+416|0;while(1){f:{if(!d){break f}e=b;while(1){i=H[f>>2]-H[e>>2]|0;h=i>>31;if((Rb((h^i)-h|0,c)|0)<=63){H[f+28>>2]=H[e+28>>2];H[f+24>>2]=H[e+24>>2];H[f+16>>2]=H[e+16>>2];H[f+20>>2]=H[e+20>>2];break f}e=e+32|0;d=d-1|0;if(d){continue}break}}g=g-1|0;if(!g){break e}f=f+32|0;d=H[a+1444>>2];continue}}g=H[a+928>>2];if(!g){break b}d=H[a+1960>>2];if(!d){break b}b=a+1964|0;f=a+932|0;while(1){g:{if(!d){break g}e=b;while(1){i=H[f>>2]-H[e>>2]|0;h=i>>31;if((Rb((h^i)-h|0,c)|0)>=64){e=e+32|0;d=d-1|0;if(d){continue}break g}break}H[f+28>>2]=H[e+28>>2];H[f+24>>2]=H[e+24>>2];H[f+16>>2]=H[e+16>>2];H[f+20>>2]=H[e+20>>2]}g=g-1|0;if(!g){break b}f=f+32|0;d=H[a+1960>>2];continue}}}function ll(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=xb-16|0;xb=h;a:{if(K[b+16>>2]<=c>>>0){H[a+16>>2]=163632;H[a+8>>2]=0;H[a+12>>2]=-1;H[a>>2]=0;H[a+4>>2]=0;b=J[81816];if(!b){H[a+20>>2]=0;break a}if((b<<8|b>>>8)<<16>>16>0){H[a+20>>2]=1;break a}H[a+20>>2]=2;break a}e=H[b+20>>2];e=e?e:163632;b:{if(I[b+12|0]){e=H[e+12>>2]+(c<<1)|0;f=I[e|0]|I[e+1|0]<<8;f=((f<<8|f>>>8)&65535)<<1;e=I[e+2|0]|I[e+3|0]<<8;e=((e<<8|e>>>8)&65535)<<1;break b}e=H[e+12>>2]+(c<<2)|0;f=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);e=I[e+4|0]|I[e+5|0]<<8|(I[e+6|0]<<16|I[e+7|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24)}c:{if(e>>>0>=f>>>0){b=H[b+24>>2];b=b?b:163632;if(e>>>0<=K[b+16>>2]){break c}}H[a+16>>2]=163632;H[a+8>>2]=0;H[a+12>>2]=-1;H[a>>2]=0;H[a+4>>2]=0;b=J[81816];if(!b){H[a+20>>2]=0;break a}if((b<<8|b>>>8)<<16>>16>0){H[a+20>>2]=1;break a}H[a+20>>2]=2;break a}g=H[b+12>>2]+f|0;f=e-f|0;e=f>>>0<10?163632:g;b=I[e|0]|I[e+1|0]<<8;if(b){b=(b<<8|b>>>8)<<16>>16>0?1:2}else{b=0}if(d){d:{switch(b-1|0){case 1:H[a+16>>2]=e;H[a+8>>2]=0;H[a+12>>2]=-1;H[a+4>>2]=f;H[a>>2]=g;b=I[e|0]|I[e+1|0]<<8;if(!b){H[a+20>>2]=0;break a}if((b<<8|b>>>8)<<16>>16>0){H[a+20>>2]=1;break a}H[a+20>>2]=2;break a;case 0:H[h+12>>2]=0;H[h+8>>2]=f;H[h+4>>2]=g;H[h>>2]=e;f=0;e=0;g=H[h+4>>2];b=H[h>>2];b=I[b|0]|I[b+1|0]<<8;b=g+((b<<8|b>>>8)<<16>>16<<1)|0;e:{f:{g:{h:{i=H[h+8>>2];j=g+i|0;if(j>>>0<=b+12>>>0){H[a+16>>2]=163632;H[a+8>>2]=0;H[a+12>>2]=-1;H[a>>2]=0;H[a+4>>2]=0;b=J[81816];if(!b){break h}if((b<<8|b>>>8)<<16>>16>0){break g}break f}c=b+10|0;b=I[c|0]|I[c+1|0]<<8;b=(((b<<8|b>>>8)&65535)+c|0)+2|0;c=c-2|0;c=I[c|0]|I[c+1|0]<<8;l=(c<<8|c>>>8)&65535;m=l+1|0;while(1){if(b>>>0>>0){k=1;c=b+1|0;d=I[b|0];if(d&8){if(c>>>0>=j>>>0){H[a+16>>2]=163632;H[a+8>>2]=0;H[a+12>>2]=-1;H[a>>2]=0;H[a+4>>2]=0;b=J[81816];if(!b){break h}if((b<<8|b>>>8)<<16>>16>0){break g}break f}k=I[b+1|0]+1|0;b=b+2|0}else{b=c}f=N((d&2?1:(d>>>3^-1)&2)+(d&4?1:(d>>>4^-1)&2)|0,k)+f|0;e=e+k|0;if(l>>>0>=e>>>0){continue}}break}if((e|0)!=(m|0)){H[a+16>>2]=163632;H[a+8>>2]=0;H[a+12>>2]=-1;H[a>>2]=0;H[a+4>>2]=0;b=J[81816];if(!b){break h}if((b<<8|b>>>8)<<16>>16>0){break g}break f}H[a+8>>2]=0;H[a+12>>2]=-1;H[a>>2]=g;b=((i-j|0)+f|0)+b|0;b=b>>>0>i>>>0?i:b;H[a+4>>2]=b;b=b>>>0<10?163632:g;H[a+16>>2]=b;b=I[b|0]|I[b+1|0]<<8;if(!b){break h}if((b<<8|b>>>8)<<16>>16>0){break g}H[a+20>>2]=2;break e}H[a+20>>2]=0;break e}H[a+20>>2]=1;break e}H[a+20>>2]=2}break a;default:break d}}H[a+16>>2]=e;H[a+8>>2]=0;H[a+12>>2]=-1;H[a+4>>2]=f;H[a>>2]=g;b=I[e|0]|I[e+1|0]<<8;if(!b){H[a+20>>2]=0;break a}if((b<<8|b>>>8)<<16>>16>0){H[a+20>>2]=1;break a}H[a+20>>2]=2;break a}H[a+20>>2]=b;H[a+16>>2]=e;H[a+12>>2]=c;H[a+8>>2]=0;H[a+4>>2]=f;H[a>>2]=g}xb=h+16|0}function Tj(a,b,c){var d=0,e=0,f=0,g=O(0),h=O(0);e=H[a+16>>2];a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)<=1986098018){if((b|0)==1751216995){break h}if((b|0)==1751413603){break g}if((b|0)!=1751934832){break a}d=e+72|0;b=$g(d);if((I[b+62|0]|I[b+63|0]<<8)<<16>>16>=0){break f}b=$g(d);if(!(I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]|I[b+7|0]<<8)|(I[b+64|0]|I[b+65|0]<<8))){if(!(I[b+66|0]|I[b+67|0]<<8)){break f}}if(!c){break b}b=$g(d);b=I[b+72|0]|I[b+73|0]<<8;g=O(Zg(_g(e+132|0),1751934832,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16));h=O(H[a+24>>2]);break c}if((b|0)==1986098019){break e}if((b|0)==1986294627){break d}if((b|0)!=1986815856){break a}b=e+92|0;f=Oi(b);d=I[f|0]|I[f+1|0]<<8;f=(d|0)!=0;if(!c|!d){break a}b=Oi(b);b=I[b+8|0]|I[b+9|0]<<8;g=O(Zg(_g(e+132|0),1986815856,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16));h=O(H[a+20>>2]);break c}i:{d=e+72|0;b=$g(d);if((I[b+62|0]|I[b+63|0]<<8)<<16>>16>=0){break i}b=$g(d);if(!(I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]|I[b+7|0]<<8)|(I[b+64|0]|I[b+65|0]<<8))){if(!(I[b+66|0]|I[b+67|0]<<8)){break i}}if(!c){break b}b=$g(d);b=I[b+68|0]|I[b+69|0]<<8;g=O(P(O(Zg(_g(e+132|0),1751216995,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16))));h=O(H[a+24>>2]);break c}b=e- -64|0;d=Pi(b);if(!(I[d|0]|I[d+1|0]<<8)){break a}if(!c){break b}b=Pi(b);b=I[b+4|0]|I[b+5|0]<<8;g=O(P(O(Zg(_g(e+132|0),1751216995,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16))));h=O(H[a+24>>2]);break c}j:{d=e+72|0;b=$g(d);if((I[b+62|0]|I[b+63|0]<<8)<<16>>16>=0){break j}b=$g(d);if(!(I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]|I[b+7|0]<<8)|(I[b+64|0]|I[b+65|0]<<8))){if(!(I[b+66|0]|I[b+67|0]<<8)){break j}}if(!c){break b}b=$g(d);b=I[b+70|0]|I[b+71|0]<<8;h=O(-O(P(O(Zg(_g(e+132|0),1751413603,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16)))));g=O(H[a+24>>2]);break c}b=e- -64|0;d=Pi(b);if(!(I[d|0]|I[d+1|0]<<8)){break a}if(!c){break b}b=Pi(b);b=I[b+6|0]|I[b+7|0]<<8;h=O(-O(P(O(Zg(_g(e+132|0),1751413603,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16)))));g=O(H[a+24>>2]);break c}b=e- -64|0;d=Pi(b);if(!(I[d|0]|I[d+1|0]<<8)){break a}if(!c){break b}b=Pi(b);b=I[b+8|0]|I[b+9|0]<<8;g=O(Zg(_g(e+132|0),1751934832,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16));h=O(H[a+24>>2]);break c}b=e+92|0;f=Oi(b);d=I[f|0]|I[f+1|0]<<8;f=(d|0)!=0;if(!c|!d){break a}b=Oi(b);b=I[b+4|0]|I[b+5|0]<<8;g=O(P(O(Zg(_g(e+132|0),1986098019,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16))));h=O(H[a+20>>2]);break c}b=e+92|0;f=Oi(b);d=I[f|0]|I[f+1|0]<<8;f=(d|0)!=0;if(!c|!d){break a}b=Oi(b);b=I[b+6|0]|I[b+7|0]<<8;h=O(-O(P(O(Zg(_g(e+132|0),1986294627,H[a+72>>2],H[a+68>>2])+O((b<<8|b>>>8)<<16>>16)))));g=O(H[a+20>>2])}b=H[a+16>>2];a=H[b+28>>2];if(!a){a=kc(b)}g=O(T(O(O(O(g*h)/O(a>>>0))+O(.5))));k:{if(O(P(g))>2]=a}f=1}return f}function mba(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=xb-16|0;xb=h;i=Tb(40);H[i>>2]=0;H[h+12>>2]=0;H[197455]=0;j=ca(1394,1,0,0)|0;e=H[197455];H[197455]=0;a:{b:{if((e|0)==1){break b}k=4;f=-1;c:{d:{if(!e){break d}g=H[197456];if(!g){break d}f=Sb(H[e>>2],i,4);if(!f){break c}ja(g|0)}e=_()|0;e:{f:{if((f|0)==1){break f}H[h+8>>2]=j;e=0;if(!H[h+8>>2]){break e}H[H[h+8>>2]+700>>2]=1e6;H[H[h+8>>2]+704>>2]=1e6;H[197455]=0;e=H[h+8>>2];if(e){H[e+156>>2]=988}else{e=0}j=e;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;g:{if(!e){break g}g=H[197456];if(!g){break g}f=Sb(H[e>>2],i,4);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){break f}i=sd(j,1,i,4);k=_()|0;e=0}while(1){if(e){H[197455]=0;na(1396);e=H[197455];H[197455]=0;if((e|0)==1){break b}h:{if(!e){break h}g=H[197456];if(!g){break h}if(!Sb(H[e>>2],i,k)){break c}ja(g|0)}e=_()|0;continue}H[197455]=0;e=H[h+8>>2];if(e){H[e+676>>2]=0;H[e+672>>2]=0;H[e+668>>2]=0}e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;i:{if(!e){break i}g=H[197456];if(!g){break i}f=Sb(H[e>>2],i,k);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}H[197455]=0;e=H[h+8>>2];if(e){H[e+164>>2]=d;H[e+160>>2]=c;H[e+168>>2]=b}e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;j:{if(!e){break j}g=H[197456];if(!g){break j}f=Sb(H[e>>2],i,k);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}H[197455]=0;j=da(1398,H[h+8>>2],a|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;k:{if(!e){break k}g=H[197456];if(!g){break k}f=Sb(H[e>>2],i,k);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}if(!j){H[h+12>>2]=1}H[H[h+8>>2]+272>>2]=8192;l:{if(H[h+12>>2]){break l}e=H[h+8>>2];j=H[e+272>>2];H[197455]=0;j=da(1399,e|0,j|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;m:{if(!e){break m}g=H[197456];if(!g){break m}f=Sb(H[e>>2],i,k);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}H[H[h+8>>2]+268>>2]=j;if(H[H[h+8>>2]+268>>2]){break l}H[h+12>>2]=1}e=H[h+8>>2];if(H[h+12>>2]){j=H[H[h+8>>2]+268>>2];H[197455]=0;ba(1404,e|0,j|0);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;n:{if(!e){break n}g=H[197456];if(!g){break n}f=Sb(H[e>>2],i,k);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}H[H[h+8>>2]+268>>2]=0;H[197455]=0;ga(1405,H[h+8>>2],0,0);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;o:{if(!e){break o}g=H[197456];if(!g){break o}f=Sb(H[e>>2],i,k);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}e=0;break e}H[197455]=0;ka(1032,e|0,0,0,0);e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;p:{if(!e){break p}g=H[197456];if(!g){break p}f=Sb(H[e>>2],i,k);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}break}e=H[h+8>>2]}Kb(i);xb=h+16|0;break a}Kb(i);ed(e,g);X()}a=$()|0;Kb(i);ea(a|0);X()}return e|0}function MC(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=xb-1312|0;xb=g;if(c>>>0>=4){e=H[a>>2];H[e+24>>2]=c;H[e+20>>2]=52;zb[H[H[a>>2]>>2]](a)}h=H[((b?120:136)+a|0)+(c<<2)>>2];if(!h){e=H[a>>2];H[e+24>>2]=c;H[e+20>>2]=52;zb[H[H[a>>2]>>2]](a)}i=H[d>>2];if(!i){i=zb[H[H[a+4>>2]>>2]](a,1,1280)|0;H[d>>2]=i}c=I[h+1|0];a:{if(!c){c=0;break a}Nb(g+1040|0,1,c)}e=I[h+2|0];d=e+c|0;if(d>>>0>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}b:{if(!e){d=c;break b}Nb((g+1040|0)+c|0,2,e)}e=I[h+3|0];c=e+d|0;if((c|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}c:{if(!e){c=d;break c}Nb((g+1040|0)+d|0,3,e)}e=I[h+4|0];d=e+c|0;if((d|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}d:{if(!e){d=c;break d}Nb((g+1040|0)+c|0,4,e)}e=I[h+5|0];c=e+d|0;if((c|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}e:{if(!e){c=d;break e}Nb((g+1040|0)+d|0,5,e)}e=I[h+6|0];d=e+c|0;if((d|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}f:{if(!e){d=c;break f}Nb((g+1040|0)+c|0,6,e)}e=I[h+7|0];c=e+d|0;if((c|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}g:{if(!e){c=d;break g}Nb((g+1040|0)+d|0,7,e)}e=I[h+8|0];d=e+c|0;if((d|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}h:{if(!e){d=c;break h}Nb((g+1040|0)+c|0,8,e)}e=I[h+9|0];c=e+d|0;if((c|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}i:{if(!e){c=d;break i}Nb((g+1040|0)+d|0,9,e)}e=I[h+10|0];d=e+c|0;if((d|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}j:{if(!e){d=c;break j}Nb((g+1040|0)+c|0,10,e)}e=I[h+11|0];c=e+d|0;if((c|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}k:{if(!e){c=d;break k}Nb((g+1040|0)+d|0,11,e)}e=I[h+12|0];d=e+c|0;if((d|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}l:{if(!e){d=c;break l}Nb((g+1040|0)+c|0,12,e)}e=I[h+13|0];c=e+d|0;if((c|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}m:{if(!e){c=d;break m}Nb((g+1040|0)+d|0,13,e)}e=I[h+14|0];d=e+c|0;if((d|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}n:{if(!e){d=c;break n}Nb((g+1040|0)+c|0,14,e)}e=I[h+15|0];c=e+d|0;if((c|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}o:{if(!e){c=d;break o}Nb((g+1040|0)+d|0,15,e)}d=I[h+16|0];e=d+c|0;if((e|0)>=257){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}p:{if(!d){e=c;break p}Nb((g+1040|0)+c|0,16,d)}c=0;F[(g+1040|0)+e|0]=0;j=I[g+1040|0];if(j){f=j<<24>>24;d=0;while(1){if(j<<24>>24==(f|0)){while(1){H[(d<<2)+g>>2]=c;c=c+1|0;d=d+1|0;j=F[d+(g+1040|0)|0];if((j|0)==(f|0)){continue}break}}if(1<>2];H[k+20>>2]=9;zb[H[k>>2]](a)}f=f+1|0;c=c<<1;if(j&255){continue}break}}c=0;Nb(i+1024|0,0,256);if((e|0)>0){d=b?15:255;while(1){b=I[(c+h|0)+17|0];if(!(I[(b+i|0)+1024|0]?0:b>>>0<=d>>>0)){f=H[a>>2];H[f+20>>2]=9;zb[H[f>>2]](a)}H[(b<<2)+i>>2]=H[(c<<2)+g>>2];F[(b+i|0)+1024|0]=I[(g+1040|0)+c|0];c=c+1|0;if((e|0)!=(c|0)){continue}break}}xb=g+1312|0}function SX(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=xb-112|0;xb=b;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!(I[a+96|0]|H[a+84>>2]==H[a+88>>2])){F[b+107|0]=1;H[197455]=0;Mb(b+96|0,428332,1);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+100>>2]=0;c=H[a+84>>2];l:{if((c|0)==H[a+88>>2]){H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;break l}if(F[c+11|0]>=0){H[b+16>>2]=H[c+8>>2];d=H[c+4>>2];H[b+8>>2]=H[c>>2];H[b+12>>2]=d;break l}d=H[c+4>>2];c=H[c>>2];H[197455]=0;ga(1647,b+8|0,c|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break k}}H[197455]=0;c=ca(1758,b+8|0,0,430708)|0;d=H[197455];H[197455]=0;if((d|0)==1){break j}H[b+32>>2]=H[c+8>>2];d=H[c+4>>2];H[b+24>>2]=H[c>>2];H[b+28>>2]=d;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1650,b+24|0,41);c=H[197455];H[197455]=0;if((c|0)==1){break i}d=F[b+35|0];c=I[b+31|0]|I[b+32|0]<<8|(I[b+33|0]<<16|I[b+34|0]<<24);H[b+32>>2]=0;f=H[b+24>>2];e=H[b+28>>2];H[b+24>>2]=0;H[b+28>>2]=0;H[b+40>>2]=e;F[b+43|0]=c;F[b+44|0]=c>>>8;F[b+45|0]=c>>>16;F[b+46|0]=c>>>24;H[197455]=0;c=aa(899,48)|0;e=H[197455];H[197455]=0;if((e|0)==1){break e}H[b+48>>2]=c;H[b+52>>2]=9;H[b+56>>2]=-2147483636;H[197455]=0;Mb(c,430836,9);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[c+36>>2]=0;H[b- -64>>2]=H[b+40>>2];c=I[b+43|0]|I[b+44|0]<<8|(I[b+45|0]<<16|I[b+46|0]<<24);F[b+67|0]=c;F[b+68|0]=c>>>8;F[b+69|0]=c>>>16;F[b+70|0]=c>>>24;H[b+60>>2]=f;F[b+71|0]=d;H[197455]=0;H[b+40>>2]=0;F[b+43|0]=0;F[b+44|0]=0;F[b+45|0]=0;F[b+46|0]=0;H[b+72>>2]=b+48;H[b+76>>2]=1;c=H[b+76>>2];H[b>>2]=H[b+72>>2];H[b+4>>2]=c;e=da(1763,b+80|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break h}c=H[a+76>>2];d=H[e+4>>2];f=H[e>>2];H[197455]=0;ga(1754,c|0,b+96|0,(d|0)!=(f|0)|0);c=H[197455];H[197455]=0;if((c|0)==1){break g}c=H[e>>2];d=H[e+4>>2];if((c|0)!=(d|0)){while(1){f=H[a+76>>2];H[197455]=0;ga(1755,f|0,c|0,c+12|0);f=H[197455];H[197455]=0;if((f|0)==1){break g}c=c+24|0;if((d|0)!=(c|0)){continue}break}c=H[a+76>>2];H[197455]=0;ka(1760,c|0,b+96|0,1,0);c=H[197455];H[197455]=0;if((c|0)==1){break g}c=H[e>>2]}if(c){d=H[e+4>>2];if((d|0)==(c|0)){d=c}else{while(1){if(F[d-1|0]<0){Kb(H[d-12>>2])}f=d-24|0;if(F[d-13|0]<0){Kb(H[f>>2])}d=f;if((d|0)!=(c|0)){continue}break}d=H[e>>2]}H[e+4>>2]=c;Kb(d)}if(F[b+71|0]<0){Kb(H[b+60>>2])}if(F[b+59|0]<0){Kb(H[b+48>>2])}if(F[b+35|0]<0){Kb(H[b+24>>2])}if(F[b+19|0]<0){Kb(H[b+8>>2])}if(F[b+107|0]<0){Kb(H[b+96>>2])}F[a+96|0]=1}xb=b+112|0;return}c=$()|0;_()|0;break b}c=$()|0;_()|0;break c}c=$()|0;_()|0;break d}c=$()|0;_()|0;break f}c=$()|0;_()|0;yc(e)}Vb(b+48|0);break d}c=$()|0;_()|0;if((d|0)>=0){break d}Kb(f)}if(F[b+35|0]>=0){break c}Kb(H[b+24>>2])}if(F[b+19|0]>=0){break b}Kb(H[b+8>>2])}if(F[b+107|0]<0){Kb(H[b+96>>2])}ea(c|0);X()}ha(0)|0;_()|0;Zb();X()}function hF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;h=xb-16|0;xb=h;e=H[b+4>>2];a:{if(e>>>0>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}d=H[b+12>>2];g=d-2|0;H[b+12>>2]=g;f=1;if((g|0)<=0){f=0;break a}b:{c:{d:{e:{g=I[a|0]|I[a+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break a}}f=a+2|0;if(f>>>0>>0|c>>>0>>0|c-f>>>0<2){break b}c=d-4|0;H[b+12>>2]=c;if((c|0)<=0){break b}c=I[f|0]|I[f+1|0]<<8;f:{if(!c){break f}if(Ud(((c<<8|c>>>8)&65535)+a|0,b)){break f}c=H[b+28>>2];if(c>>>0>31){break b}H[b+28>>2]=c+1;if(!I[b+24|0]){break b}F[f|0]=0;F[f+1|0]=0}H[h+12>>2]=a;f=gF(a+4|0,b,h+12|0);break a}e=xb-16|0;xb=e;g:{h:{f=a+2|0;if(f>>>0>2]){break h}c=H[b+8>>2];if(c>>>0>>0|c-f>>>0<2){break h}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break h}c=I[f|0]|I[f+1|0]<<8;i:{if(!c){break i}if(Ud(((c<<8|c>>>8)&65535)+a|0,b)){break i}c=H[b+28>>2];if(c>>>0>31){break h}H[b+28>>2]=c+1;if(!I[b+24|0]){break h}F[f|0]=0;F[f+1|0]=0}f=0;c=a+4|0;if(c>>>0>2]){break g}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break g}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break g}d=I[c|0]|I[c+1|0]<<8;j:{if(!d){break j}if(gh(((d<<8|d>>>8)&65535)+a|0,b)){break j}d=H[b+28>>2];if(d>>>0>31){break g}H[b+28>>2]=d+1;if(!I[b+24|0]){break g}F[c|0]=0;F[c+1|0]=0}c=a+6|0;if(c>>>0>2]){break g}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break g}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break g}d=I[c|0]|I[c+1|0]<<8;k:{if(!d){break k}if(gh(((d<<8|d>>>8)&65535)+a|0,b)){break k}d=H[b+28>>2];if(d>>>0>31){break g}H[b+28>>2]=d+1;if(!I[b+24|0]){break g}F[c|0]=0;F[c+1|0]=0}c=a+8|0;if(c>>>0>2]){break g}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break g}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break g}d=I[c|0]|I[c+1|0]<<8;l:{if(!d){break l}if(gh(((d<<8|d>>>8)&65535)+a|0,b)){break l}d=H[b+28>>2];if(d>>>0>31){break g}H[b+28>>2]=d+1;if(!I[b+24|0]){break g}F[c|0]=0;F[c+1|0]=0}H[e+12>>2]=a;f=gF(a+10|0,b,e+12|0);break g}f=0}xb=e+16|0;break a}f=0;c=xb-16|0;xb=c;H[c+12>>2]=a;d=a+2|0;m:{if(!gl(d,b,c+12|0)){break m}e=I[a+2|0]|I[a+3|0]<<8;H[c+8>>2]=a;e=(d+(((e<<8|e>>>8)&65535)<<1)|0)+2|0;if(!gl(e,b,c+8|0)){break m}d=I[e|0]|I[e+1|0]<<8;if(!d){break m}H[c+4>>2]=a;a=(e+(((d<<8|d>>>8)&65535)<<1)|0)+2|0;if(!gl(a,b,c+4|0)){break m}i=H[b+4>>2];e=I[a|0]|I[a+1|0]<<8;a=(a+(((e<<8|e>>>8)&65535)<<1)|0)+2|0;if(i>>>0>a>>>0){break m}e=H[b+8>>2];if(e>>>0>>0|e-a>>>0<2){break m}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break m}g=I[a|0]|I[a+1|0]<<8;if(g){a=a+2|0;if(a>>>0>>0|a>>>0>e>>>0){break m}e=e-a|0;a=((g<<8|g>>>8)&65535)<<2;if(e>>>0>>0){break m}a=d-a|0;H[b+12>>2]=a;if((a|0)<=0){break m}}f=1}xb=c+16|0;break a}f=0}xb=h+16|0;return f}function WD(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;if((c|0)>=0){j=J[b+2>>1];g=j?4:3;e=j?7:138;i=a+5817|0;h=-1;while(1){o=n;k=j;n=n+1|0;j=J[((n<<2)+b|0)+2>>1];d=f+1|0;a:{if(!((k|0)!=(j|0)|(e|0)<=(d|0))){f=d;break a}b:{if((d|0)<(g|0)){f=(k<<2)+a|0;g=f+2684|0;h=f+2686|0;f=H[a+5820>>2];while(1){e=J[h>>1];l=J[g>>1];m=J[a+5816>>1]|l<>1]=m;c:{if((16-e|0)<(f|0)){f=H[a+20>>2];H[a+20>>2]=f+1;F[f+H[a+8>>2]|0]=m;f=H[a+20>>2];H[a+20>>2]=f+1;F[f+H[a+8>>2]|0]=I[i|0];f=H[a+5820>>2];G[a+5816>>1]=l>>>16-f;f=(e+f|0)-16|0;break c}f=e+f|0}H[a+5820>>2]=f;d=d-1|0;if(d){continue}break}break b}m=a;d:{if(k){e:{if((h|0)==(k|0)){e=H[a+5820>>2];f=d;break e}d=(k<<2)+a|0;e=J[d+2686>>1];h=J[d+2684>>1];g=H[a+5820>>2];l=J[a+5816>>1]|h<>1]=l;f:{if((g|0)>(16-e|0)){g=H[a+20>>2];H[a+20>>2]=g+1;F[g+H[a+8>>2]|0]=l;g=H[a+20>>2];H[a+20>>2]=g+1;F[g+H[a+8>>2]|0]=I[i|0];g=H[a+5820>>2];G[a+5816>>1]=h>>>16-g;d=(e+g|0)-16|0;break f}d=e+g|0}e=d;H[a+5820>>2]=e}h=J[a+2748>>1];d=J[a+5816>>1]|h<>1];g:{if((16-g|0)<(e|0)){G[a+5816>>1]=d;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=d;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[i|0];d=H[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break g}e=e+g|0}H[a+5820>>2]=e;f=f+65533|0;if((e|0)>=15){d=f<>1]=d;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=d;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[i|0];d=f&65535;f=H[a+5820>>2];G[a+5816>>1]=d>>>16-f;f=f-14|0;break d}G[a+5816>>1]=f<>1];e=H[a+5820>>2];d=J[a+5816>>1]|h<>1];h:{if((e|0)>(16-g|0)){G[a+5816>>1]=d;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=d;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[i|0];d=H[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break h}e=e+g|0}H[a+5820>>2]=e;f=f+65534|0;if((e|0)>=14){d=f<>1]=d;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=d;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[i|0];d=f&65535;f=H[a+5820>>2];G[a+5816>>1]=d>>>16-f;f=f-13|0;break d}G[a+5816>>1]=f<>1];e=H[a+5820>>2];d=J[a+5816>>1]|h<>1];i:{if((e|0)>(16-g|0)){G[a+5816>>1]=d;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=d;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[i|0];d=H[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break i}e=e+g|0}H[a+5820>>2]=e;f=f+65526|0;if((e|0)>=10){d=f<>1]=d;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=d;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[i|0];d=f&65535;f=H[a+5820>>2];G[a+5816>>1]=d>>>16-f;f=f-9|0;break d}G[a+5816>>1]=f<>2]=f}f=0;j:{if(!j){e=138;d=3;break j}d=(k|0)==(j|0);e=d?6:7;d=d?3:4}g=d;h=k}if((c|0)!=(o|0)){continue}break}}}function d8(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;g=H[a+584>>2];d=J[g+834>>1];f=J[g+836>>1];e=N(N(f,d)+2|0,N(H[g+72>>2],((d+H[g+28>>2]|0)-1>>>0)/(d>>>0)|0))+7>>>3|0;d=(c|0)/(e|0)|0;q=N(d,f);p=H[g+888>>2];if((N(d,e)|0)!=(c|0)){sc(H[a+628>>2],H[a>>2],287581,0)}h=1;a:{if((q|0)<=0){break a}n=H[g+84>>2];d=H[n+132>>2];w=d&3;x=g+844|0;y=d-1>>>0<3;while(1){r=0;k=0;if(H[g+76>>2]>0){while(1){l=H[n+12>>2];b:{if((l|0)<=0){break b}c=H[n+28>>2]<<3;i=H[n+8>>2];f=N(i,d);m=c-f|0;u=(r<<2)+g|0;if((i|0)==1){s=m&-8;o=m&7;t=c+(f^-1)|0;i=0;while(1){c=H[H[u+844>>2]+(N(H[g+884>>2],l)+i<<2)>>2];c:{if(!d){break c}h=b+k|0;j=0;f=d;if(w){while(1){F[c|0]=I[h|0];h=h+p|0;c=c+1|0;f=f-1|0;j=j+1|0;if((w|0)!=(j|0)){continue}break}}if(y){break c}while(1){F[c|0]=I[h|0];e=h+p|0;F[c+1|0]=I[e|0];e=e+p|0;F[c+2|0]=I[e|0];e=e+p|0;F[c+3|0]=I[e|0];c=c+4|0;h=e+p|0;f=f-4|0;if(f){continue}break}}d:{if((m|0)<=0){break d}e=I[c-1|0];f=0;if(t>>>0>=7){while(1){F[c+7|0]=e;F[c+6|0]=e;F[c+5|0]=e;F[c+4|0]=e;F[c+3|0]=e;F[c+2|0]=e;F[c+1|0]=e;F[c|0]=e;c=c+8|0;f=f+8|0;if((s|0)!=(f|0)){continue}break}}f=0;if(!o){break d}while(1){F[c|0]=e;c=c+1|0;f=f+1|0;if((o|0)!=(f|0)){continue}break}}k=k+1|0;i=i+1|0;if((l|0)!=(i|0)){continue}break}break b}if(d){z=m&-8;s=m&7;A=i&-4;t=i&3;B=i-1|0;C=c+(f^-1)|0;o=0;while(1){c=H[H[u+844>>2]+(N(H[g+884>>2],l)+o<<2)>>2];if((i|0)>0){f=b+k|0;e=d;while(1){j=0;h=0;v=0;if(B>>>0>=3){while(1){F[c|0]=I[f+h|0];F[c+1|0]=I[(h|1)+f|0];F[c+2|0]=I[(h|2)+f|0];F[c+3|0]=I[(h|3)+f|0];h=h+4|0;c=c+4|0;v=v+4|0;if((A|0)!=(v|0)){continue}break}}e=e-1|0;if(t){while(1){F[c|0]=I[f+h|0];h=h+1|0;c=c+1|0;j=j+1|0;if((t|0)!=(j|0)){continue}break}}f=f+p|0;if(e){continue}break}}e:{if((m|0)<=0){break e}e=I[c-1|0];f=0;if(C>>>0>=7){while(1){F[c+7|0]=e;F[c+6|0]=e;F[c+5|0]=e;F[c+4|0]=e;F[c+3|0]=e;F[c+2|0]=e;F[c+1|0]=e;F[c|0]=e;c=c+8|0;f=f+8|0;if((z|0)!=(f|0)){continue}break}}f=0;if(!s){break e}while(1){F[c|0]=e;c=c+1|0;f=f+1|0;if((s|0)!=(f|0)){continue}break}}k=i+k|0;o=o+1|0;if((o|0)!=(l|0)){continue}break}break b}j=0;if((m|0)>0){while(1){c=H[H[u+844>>2]+(N(H[g+884>>2],l)+j<<2)>>2];e=I[c-1|0];f=0;while(1){F[c+7|0]=e;F[c+6|0]=e;F[c+5|0]=e;F[c+4|0]=e;F[c+3|0]=e;F[c+2|0]=e;F[c+1|0]=e;F[c|0]=e;c=c+8|0;f=f+8|0;if((m|0)!=(f|0)){continue}break}j=j+1|0;if((l|0)!=(j|0)){continue}break}}k=N(i,l)+k|0}n=n+88|0;r=r+1|0;if((r|0)>2]){continue}break}}c=H[g+884>>2];H[g+884>>2]=c+1;if((c|0)>=7){c=H[g+272>>2]<<3;if((XA(g,x,c)|0)!=(c|0)){h=0;break a}H[g+884>>2]=0}c=J[g+836>>1];H[a+472>>2]=c+H[a+472>>2];h=1;q=q-c|0;if((q|0)<=0){break a}b=H[g+840>>2]+b|0;n=H[g+84>>2];continue}}return h|0}function hB(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;i=xb-16|0;xb=i;o=H[a>>2];k=H[b+20>>2];a:{b:{if(k){a=85;if(zb[k|0](b,c,0,0)|0){break a}j=H[b+4>>2];break b}a=85;j=H[b+4>>2];if(j>>>0>>0){break a}}H[b+8>>2]=c;H[i>>2]=0;c:{d:{if(c+1>>>0>=j>>>0){break d}e:{f:{a=H[b+20>>2];g:{if(a){if((zb[a|0](b,c,i+6|0,2)|0)!=2){break d}j=H[b+8>>2];l=i+6|0;a=H[i>>2];break g}a=H[b>>2];if(!a){break f}l=a+c|0;j=c;a=0}k=I[l|0]|I[l+1|0]<<8;j=j+2|0;H[b+8>>2]=j;if(a){break a}a=8;p=(k<<8|k>>>8)<<16>>16;if((p|0)>4078){break a}if((p|0)>=0){break e}a=1;break a}j=c+2|0;H[b+8>>2]=j}while(1){H[i>>2]=0;if(K[b+4>>2]<=j+3>>>0){break d}h:{i:{a=H[b+20>>2];if(a){if((zb[a|0](b,j,i+8|0,4)|0)!=4){break d}j=H[b+8>>2];a=H[i>>2];l=i+8|0;break i}a=H[b>>2];if(a){l=a+j|0;a=0;break i}l=j+4|0;H[b+8>>2]=l;n=0;break h}k=I[l|0]|I[l+1|0]<<8|(I[l+2|0]<<16|I[l+3|0]<<24);l=j+4|0;H[b+8>>2]=l;if(a){break a}n=k<<8&16711680|k<<24|(k>>>8&65280|k>>>24)}H[i>>2]=0;if(K[b+4>>2]<=j+5>>>0){break d}j:{k:{a=H[b+20>>2];if(a){if((zb[a|0](b,l,i+12|0,2)|0)!=2){break d}l=H[b+8>>2];a=H[i>>2];j=i+12|0;break k}a=H[b>>2];if(a){j=a+l|0;a=0;break k}j=l+2|0;H[b+8>>2]=j;m=0;break j}k=I[j|0]|I[j+1|0]<<8;j=l+2|0;H[b+8>>2]=j;if(a){break a}m=k<<8|k>>>8}H[i>>2]=0;if(K[b+4>>2]<=l+3>>>0){break c}l:{m:{a=H[b+20>>2];if(a){if((zb[a|0](b,j,i+14|0,2)|0)!=2){break c}j=H[b+8>>2];a=H[i>>2];l=i+14|0;break m}a=H[b>>2];if(a){l=a+j|0;a=0;break m}j=j+2|0;H[b+8>>2]=j;k=0;break l}k=I[l|0]|I[l+1|0]<<8;j=j+2|0;H[b+8>>2]=j;if(a){break a}k=(k<<8|k>>>8)<<16>>16}if((e|0)!=(n|0)){a=1;k=(p|0)==(q|0);q=q+1|0;if(k){break a}continue}break}H[h>>2]=(m<<16>>16)+1;a=8;if((m&65535)>>>0>2726){break a}e=c+k|0;c=H[b+20>>2];n:{if(c){a=85;if(!(zb[c|0](b,e,0,0)|0)){break n}break a}a=85;if(e>>>0>K[b+4>>2]){break a}}H[b+8>>2]=e;c=0;H[i>>2]=0;m=Ub(o,8,0,H[h>>2],0,i);a=H[i>>2];if(a){break a}a=H[h>>2];o:{if((a|0)>0){while(1){e=m+(c<<3)|0;r=e,s=nc(b,i),G[r>>1]=s;if(H[i>>2]){break o}k=H[b+8>>2]+2|0;p:{a=H[b+20>>2];q:{if(a){if(zb[a|0](b,k,0,0)|0){break q}break p}if(k>>>0<=K[b+4>>2]){break p}}H[i>>2]=85;break o}H[b+8>>2]=k;H[i>>2]=0;k=hd(b,i);if(H[i>>2]){break o}n=H[b+8>>2]+4|0;r:{a=H[b+20>>2];s:{if(a){if(zb[a|0](b,n,0,0)|0){break s}break r}if(n>>>0<=K[b+4>>2]){break r}}H[i>>2]=85;break o}H[b+8>>2]=n;H[i>>2]=0;if((k|0)<0){H[i>>2]=8;break o}H[e+4>>2]=k&16777215;a=H[h>>2];c=c+1|0;if((a|0)>(c|0)){continue}break}}b=0;c=o;if(f){th(m,a,8,14);a=H[h>>2]}c=Ub(c,4,0,a,0,i);a=H[i>>2];if(!a){if(H[h>>2]>0){while(1){H[c+(b<<2)>>2]=H[(m+(b<<3)|0)+4>>2]+d;b=b+1|0;if((b|0)>2]){continue}break}}H[g>>2]=c;H[i>>2]=0;a=0}if(!m){break a}}zb[H[o+8>>2]](o,m);a=H[i>>2];break a}a=85;H[i>>2]=85;break a}a=85}xb=i+16|0;return a}function _c(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;c=F[b|0];if(!c){return a}a=ie(a,c);a:{if(!a){break a}if(!I[b+1|0]){return a}if(!I[a+1|0]){break a}if(!I[b+2|0]){c=I[a+1|0];e=(c|0)!=0;b:{if(!c){break b}c=c|I[a|0]<<8;h=I[b+1|0]|I[b|0]<<8;if((c|0)==(h|0)){break b}b=a+1|0;while(1){a=b;d=I[a+1|0];e=(d|0)!=0;if(!d){break b}b=a+1|0;c=d|c<<8&65280;if((h|0)!=(c|0)){continue}break}}return e?a:0}if(!I[a+2|0]){break a}if(!I[b+3|0]){d=b;b=a+2|0;c=I[a+2|0];e=(c|0)!=0;c:{d:{if(!c){break d}c=I[a+1|0]<<16|I[a|0]<<24|c<<8;h=I[d+1|0]<<16|I[d|0]<<24|I[d+2|0]<<8;if((c|0)==(h|0)){break d}while(1){a=b+1|0;d=I[b+1|0];e=(d|0)!=0;if(!d){break c}b=a;c=(c|d)<<8;if((h|0)!=(c|0)){continue}break}break c}a=b}return e?a-2|0:0}if(!I[a+3|0]){break a}if(!I[b+4|0]){d=b;b=a+3|0;c=I[a+3|0];e=(c|0)!=0;e:{f:{if(!c){break f}c=c|(I[a+1|0]<<16|I[a|0]<<24|I[a+2|0]<<8);a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);h=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if((c|0)==(h|0)){break f}while(1){a=b+1|0;d=I[b+1|0];e=(d|0)!=0;if(!d){break e}b=a;c=d|c<<8;if((h|0)!=(c|0)){continue}break}break e}a=b}return e?a-3|0:0}h=a;i=xb-1056|0;xb=i;a=i+1048|0;H[a>>2]=0;H[a+4>>2]=0;a=i+1040|0;H[a>>2]=0;H[a+4>>2]=0;H[i+1032>>2]=0;H[i+1036>>2]=0;H[i+1024>>2]=0;H[i+1028>>2]=0;k=b;g:{h:{i:{j:{c=I[b|0];k:{if(!c){j=-1;a=1;break k}while(1){if(!I[f+h|0]){break h}a=c&255;f=f+1|0;H[(a<<2)+i>>2]=f;a=(i+1024|0)+(a>>>3&28)|0;H[a>>2]=H[a>>2]|1<>>0>1){break j}}g=-1;d=1;break i}b=1;c=1;while(1){g=I[(c+j|0)+k|0];e=I[a+k|0];l:{if((g|0)==(e|0)){if((b|0)==(c|0)){d=b+d|0;c=1;break l}c=c+1|0;break l}if(e>>>0>>0){b=a-j|0;d=a;c=1;break l}j=d;d=d+1|0;b=1;c=1}a=c+d|0;if(f>>>0>a>>>0){continue}break}d=1;g=-1;if(f>>>0<=1){a=b;break i}a=0;e=1;c=1;while(1){m=I[(c+g|0)+k|0];l=I[d+k|0];m:{if((m|0)==(l|0)){if((c|0)==(e|0)){a=a+e|0;c=1;break m}c=c+1|0;break m}if(l>>>0>m>>>0){e=d-g|0;a=d;c=1;break m}g=a;a=a+1|0;e=1;c=1}d=a+c|0;if(f>>>0>d>>>0){continue}break}a=b;d=e}b=a;a=g+1>>>0>j+1>>>0;e=a?d:b;l=a?g:j;m=l+1|0;n:{if(md(k,e+k|0,m)){a=(l^-1)+f|0;e=(a>>>0>>0?l:a)+1|0;b=0;break n}b=f-e|0}o=f-1|0;n=f|63;g=0;a=h;while(1){o:{if(h-a>>>0>=f>>>0){break o}c=Kg(h,0,n);if(c){h=c;if(c-a>>>0>>0){break h}break o}h=h+n|0}d=I[a+o|0];c=f;p:{q:{if(!(H[(i+1024|0)+(d>>>3&28)>>2]>>>d&1)){break q}c=H[(d<<2)+i>>2];if((c|0)!=(f|0)){c=f-c|0;c=c>>>0>g>>>0?c:g;break q}r:{c=m;d=c>>>0>g>>>0?c:g;j=I[k+d|0];if(j){while(1){if(I[a+d|0]!=(j&255)){break r}d=d+1|0;j=I[k+d|0];if(j){continue}break}}while(1){if(c>>>0<=g>>>0){break g}c=c-1|0;if(I[k+c|0]==I[a+c|0]){continue}break}c=e;g=b;break p}c=d-l|0}g=0}a=a+c|0;continue}}a=0}xb=i+1056|0;d=a}return d}function KH(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;j=xb-16|0;xb=j;d=H[c>>2];a:{if(!b){if(!(!d|!H[d>>2])){H[d>>2]=H[d>>2]+1}break a}k=b<<8&16711680|b<<24|(b>>>8&65280|b>>>24);a=65535;f=K[d+16>>2]<4?163632:H[d+12>>2];h=J[c+4>>1];i=j+12|0;if(i){H[i>>2]=0}d=163632;b:{c:{d:{e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);e:{if((e|0)<=1953658212){if((e|0)==256){break c}if((e|0)==65536|(e|0)==1330926671){break e}break b}if((e|0)==1954115633){break e}if((e|0)==1953784678){break d}if((e|0)!=1953658213){break b}}d=f;break b}e=I[f+4|0]|I[f+5|0]<<8;if(((e<<8|e>>>8)&65535)-1>>>0>1){break b}d=I[f+8|0]|I[f+9|0]<<8|(I[f+10|0]<<16|I[f+11|0]<<24);d=h>>>0<(d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0?(f+(h<<2)|0)+12|0:163632;d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);d=d?d+f|0:163632;break b}d=I[f+4|0]|I[f+5|0]<<8|(I[f+6|0]<<16|I[f+7|0]<<24);d=f+(d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))|0;e=I[d+24|0]|I[d+25|0]<<8;e=((e<<8|e>>>8)&65535)+d|0;d=I[e|0]|I[e+1|0]<<8;n=(d<<8|d>>>8)&65535;d=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);o=f+(d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))|0;d=0;f:{while(1){g:{l=e+(d<<3)|0;g=l;g=I[g+2|0]|I[g+3|0]<<8|(I[g+4|0]<<16|I[g+5|0]<<24);if((g<<24|g<<8&16711680|(g>>>8&65280|g>>>24))!=1936092788){break g}g=I[l+6|0]|I[l+7|0]<<8;if(h>>>0>((g<<8|g>>>8)&65535)>>>0){break g}d=e+(d<<3)|0;d=I[d+8|0]|I[d+9|0]<<8;d=(e+((d<<8|d>>>8)&65535)|0)+N(h,12)|0;d=((I[d+6|0]<<8|I[d+5|0]<<16|I[d+7|0])+o|0)+4|0;break f}g=(d|0)!=(n|0);d=d+1|0;if(g){continue}break}d=163632}if(i){H[i>>2]=d-f}}f=d;d=I[d+4|0]|I[d+5|0]<<8;e=d<<8|d>>>8;i=e&65535;h:{if(i>>>0<=15){i=e&65535;if(!d){break h}d=0;e=I[f+12|0]|I[f+13|0]<<8|(I[f+14|0]<<16|I[f+15|0]<<24);if(!((e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))>>>0>>0|(e|0)!=(k|0))){a=0;break h}while(1){d=d+1|0;if((i|0)==(d|0)){break h}e=f+(d<<4)|0;e=I[e+12|0]|I[e+13|0]<<8|(I[e+14|0]<<16|I[e+15|0]<<24);if((e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))>>>0>>0|(e|0)!=(k|0)){continue}break}a=d;break h}if(!d){break h}d=i-1|0;while(1){e=d+m>>>1|0;h=f+(e<<4)|0;h=I[h+12|0]|I[h+13|0]<<8|(I[h+14|0]<<16|I[h+15|0]<<24);g=(h<<24|h<<8&16711680|(h>>>8&65280|h>>>24))>>>0>>0;i:{if(!(g|(h|0)==(k|0))){d=e-1|0;break i}if(!((h|0)!=(k|0)|g)){a=e;break h}m=e+1|0}if((d|0)>=(m|0)){continue}break}}a=a>>>0>>0?(f+(a<<4)|0)+12|0:163632;b=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);a=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);d=ct(H[c>>2],H[j+12>>2]+(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))|0,a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))}xb=j+16|0;return d|0}function vJ(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;g=xb-32|0;xb=g;i=H[b+28>>2];H[g+4>>2]=2;c=H[a+496>>2];if(c){d=H[c+36>>2];if(d){zb[H[i+8>>2]](i,d)}H[c+36>>2]=0;H[c+40>>2]=0;d=H[c+28>>2];if(d){zb[H[i+8>>2]](i,d)}H[c+28>>2]=0;H[c+32>>2]=0;if(c){zb[H[i+8>>2]](i,c)}H[a+496>>2]=0}d=pc(i,44,g+4|0);a:{if(H[g+4>>2]){break a}c=Jc(b,H[b+4>>2]);H[g+4>>2]=c;if(c){break a}c=H[a+476>>2];H[d+12>>2]=H[a+472>>2];H[d+16>>2]=c;c=H[a+468>>2];H[d+4>>2]=H[a+464>>2];H[d+8>>2]=c;H[d+20>>2]=H[a+476>>2];H[d+24>>2]=H[a+468>>2];e=H[a+492>>2];c=H[e+36>>2];b:{if(c){c=zb[H[c>>2]](g+8|0,H[b+28>>2],H[b+32>>2],H[b+36>>2])|0;H[g+4>>2]=c;if(!c){H[g+24>>2]=a+132;H[g+20>>2]=110;H[g+16>>2]=d;c=g+8|0;q=g,r=zb[H[H[e+36>>2]+8>>2]](c)|0,H[q+4>>2]=r;zb[H[H[e+36>>2]+4>>2]](c);c=H[g+4>>2]}if((c&255)==2){e=H[b+4>>2];if(e>>>0<7){break b}c=H[b+32>>2];if(I[c+1|0]>3|(e|0)!=(I[c+2|0]|I[c+3|0]<<8|(I[c+4|0]<<16|I[c+5|0]<<24))){break b}c=xb-16|0;xb=c;H[c+12>>2]=0;l=H[b+28>>2];c:{d:{j=H[b+36>>2];h=H[b+32>>2];if(j>>>0>>0){H[c+12>>2]=2;break d}e=(h+99|0)+(I[h+99|0]|I[h+100|0]<<8)|0;if(j>>>0>>0|(I[e+18|0]|I[e+19|0]<<8)>>>0<18){break c}e=I[e+32|0]|I[e+33|0]<<8|(I[e+34|0]<<16|I[e+35|0]<<24);if(!e){break c}k=e+h|0;h=k+2|0;if(j>>>0>>0){H[c+12>>2]=2;break d}e=I[k|0]|I[k+1|0]<<8;H[d+40>>2]=e;if(j>>>0<(e<<2)+h>>>0){H[c+12>>2]=2;break d}if(!e){break c}e=Ub(l,16,0,e,0,c+12|0);H[d+36>>2]=e;if(H[c+12>>2]){break d}o=H[d+40>>2];j=H[a+92>>2];m=H[a+36>>2];e:{if((m|0)<=0){break e}p=H[a+40>>2];while(1){n=H[(f<<2)+p>>2];if(J[n+8>>1]!=7){f=f+1|0;if((m|0)!=(f|0)){continue}break e}break}f=Ih(a,n);H[c+12>>2]=f;if(f){break d}}f=o<<2;if((f|0)>0){f=(f+k|0)+2|0;while(1){q=e,r=Wd(a,I[h|0]),H[q>>2]=r;q=e,r=Wd(a,I[h+1|0]),H[q+4>>2]=r;k=(I[h+2|0]|I[h+3|0]<<8)<<16>>16;H[e+12>>2]=0;H[e+8>>2]=k;e=e+16|0;h=h+4|0;if(f>>>0>h>>>0){continue}break}}f:{if(j){e=Ih(a,j);H[c+12>>2]=e;break f}e=H[c+12>>2]}if(e){break d}th(H[d+36>>2],H[d+40>>2],16,111);if(H[c+12>>2]){break d}f=0;break c}f=H[d+36>>2];if(f){zb[H[l+8>>2]](l,f)}H[d+36>>2]=0;H[d+40>>2]=0;f=H[c+12>>2]}xb=c+16|0;c=f;H[g+4>>2]=c}if(c){break b}}c=H[d+8>>2];H[a+464>>2]=H[d+4>>2];H[a+468>>2]=c;c=H[d+16>>2];H[a+472>>2]=H[d+12>>2];H[a+476>>2]=c;H[a+52>>2]=G[d+6>>1];H[a+56>>2]=G[d+10>>1];H[a+60>>2]=H[d+12>>2]+65535>>16;H[a- -64>>2]=H[d+16>>2]+65535>>16;G[a+70>>1]=H[d+20>>2]+32768>>>16;G[a+72>>1]=H[d+24>>2]+32768>>>16;if(!H[d+40>>2]){break b}H[a+496>>2]=d;H[a+8>>2]=H[a+8>>2]|64;d=0}wc(b)}if(d){a=H[d+36>>2];if(a){zb[H[i+8>>2]](i,a)}H[d+36>>2]=0;H[d+40>>2]=0;a=H[d+28>>2];if(a){zb[H[i+8>>2]](i,a)}H[d+28>>2]=0;H[d+32>>2]=0;if(d){zb[H[i+8>>2]](i,d)}}xb=g+32|0;return H[g+4>>2]}function Oda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;y=xb-256|0;xb=y;r=H[a+332>>2];a=H[b+84>>2];n=8;b=y;while(1){a:{b:{f=J[c+32>>1];g=G[c+16>>1];if((f|g)&65535){break b}f=0;if(J[c+48>>1]|J[c+64>>1]|(J[c+80>>1]|J[c+96>>1])){break b}if(J[c+112>>1]){break b}f=N(G[c>>1],H[a>>2])<<2;H[b+192>>2]=f;H[b+160>>2]=f;H[b+128>>2]=f;H[b+96>>2]=f;H[b+64>>2]=f;H[b+32>>2]=f;H[b>>2]=f;g=56;break a}o=N(H[a+192>>2],G[c+96>>1]);j=N(H[a+64>>2],f<<16>>16);f=N(o+j|0,4433);g=N(g,H[a+32>>2]);i=N(H[a+224>>2],G[c+112>>1]);t=N(g+i|0,-7373);k=N(H[a+160>>2],G[c+80>>1]);p=k+g|0;l=N(H[a+96>>2],G[c+48>>1]);h=l+i|0;m=N(p+h|0,9633);w=N(G[c+64>>1],H[a+128>>2])<<13;s=N(G[c>>1],H[a>>2])<<13|1024;q=w+s|0;j=f+N(j,6270)|0;x=q+j|0;u=t+N(g,12299)|0;g=m+N(p,-3196)|0;p=u+g|0;H[b+224>>2]=x-p>>11;H[b>>2]=p+x>>11;p=s-w|0;f=f+N(o,-15137)|0;o=p+f|0;m=m+N(h,-16069)|0;h=N(l,25172);l=N(k+l|0,-20995);h=m+(h+l|0)|0;H[b+192>>2]=o-h>>11;H[b+32>>2]=h+o>>11;f=p-f|0;g=g+(l+N(k,16819)|0)|0;H[b+160>>2]=f-g>>11;H[b+64>>2]=f+g>>11;f=m+(t+N(i,2446)|0)|0;g=q-j|0;H[b+96>>2]=f+g>>11;f=g-f>>11;g=32}H[(g<<2)+b>>2]=f;c=c+2|0;a=a+4|0;b=b+4|0;f=n>>>0>1;n=n-1|0;if(f){continue}break}b=r+128|0;t=0;a=y;while(1){f=H[a+12>>2];n=H[a+4>>2];l=N(f+n|0,11086);m=H[a+8>>2];r=H[a+24>>2];j=m-r|0;o=N(j,11363);c=H[(t<<2)+d>>2]+e|0;i=H[a+28>>2];w=N(i+n|0,8956);g=H[a+20>>2];p=g+n|0;h=N(p,10217);s=w+(h+(l+N(n,-18730)|0)|0)|0;q=H[a+16>>2];x=N(q,10703);k=(H[a>>2]<<13)+131072|0;A=x+k|0;B=o+N(r,20995)|0;u=A+B|0;F[c|0]=I[b+(s+u>>>18&1023)|0];F[c+15|0]=I[b+(u-s>>>18&1023)|0];j=N(j,2260);s=j+N(m,7373)|0;q=N(q,4433);u=q+k|0;v=s+u|0;C=N(f+g|0,1136);z=C+(l+N(f,589)|0)|0;l=f+i|0;D=N(l,-5461);z=z+D|0;F[c+1|0]=I[b+(v+z>>>18&1023)|0];F[c+14|0]=I[b+(v-z>>>18&1023)|0];v=h+(N(g,-9222)+C|0)|0;h=N(g+i|0,-11086);v=v+h|0;m=o+N(m,-4926)|0;o=k-q|0;q=m+o|0;F[c+2|0]=I[b+(v+q>>>18&1023)|0];F[c+13|0]=I[b+(q-v>>>18&1023)|0];h=h+(w+(D+N(i,8728)|0)|0)|0;r=j+N(r,-4176)|0;k=k-x|0;j=r+k|0;F[c+3|0]=I[b+(h+j>>>18&1023)|0];F[c+12|0]=I[b+(j-h>>>18&1023)|0];j=N(n-i|0,7350);l=N(l,-10217);h=j+(l+N(i,25733)|0)|0;i=N(i-g|0,3363);h=h+i|0;k=k-r|0;F[c+4|0]=I[b+(h+k>>>18&1023)|0];F[c+11|0]=I[b+(k-h>>>18&1023)|0];k=N(p,5461);h=N(g,-6278);g=N(g-f|0,11529);i=i+(k+(h+g|0)|0)|0;m=o-m|0;F[c+5|0]=I[b+(i+m>>>18&1023)|0];F[c+10|0]=I[b+(m-i>>>18&1023)|0];i=N(f,16154);f=N(n-f|0,3363);g=l+(g+(i+f|0)|0)|0;i=u-s|0;F[c+6|0]=I[b+(g+i>>>18&1023)|0];F[c+9|0]=I[b+(i-g>>>18&1023)|0];f=j+(k+(f+N(n,-15038)|0)|0)|0;n=A-B|0;F[c+7|0]=I[b+(f+n>>>18&1023)|0];F[c+8|0]=I[b+(n-f>>>18&1023)|0];a=a+32|0;t=t+1|0;if((t|0)!=8){continue}break}xb=y+256|0}function hl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=xb-48|0;xb=d;H[a>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;F[d+24|0]=0;H[d+28>>2]=0;H[d+32>>2]=0;H[d>>2]=0;H[d+4>>2]=0;c=kd(b);F[d+40|0]=1;H[d+36>>2]=c;b=dd(b,1196445523);if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}c=b;H[d+32>>2]=c;a:{b:{c:{d:{e:{while(1){F[d+24|0]=f;f=H[c+12>>2];H[d+4>>2]=f;e=H[c+16>>2];H[d+8>>2]=e+f;H[d+28>>2]=0;if(e>>>0<=67108862){e=e<<6;e=e>>>0>16384?e:16384;j=e>>>0<1073741823?e:1073741823}else{j=1073741823}H[d+12>>2]=j;H[d+20>>2]=0;H[d>>2]=0;if(!f){Wb(c);H[d+32>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;break a}e=OE(f,d);c=H[d+28>>2];f:{if(e){if(!c){break f}H[d+28>>2]=0;c=OE(f,d);f=H[d+28>>2];Wb(H[d+32>>2]);H[d+32>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;if(!c){break b}if(!f){break e}break b}if(I[d+24|0]|!c){break d}e=ve(b);H[d+4>>2]=e;H[d+8>>2]=e+H[b+16>>2];c=H[d+32>>2];f=1;if(e){continue}break c}break}Wb(H[d+32>>2]);H[d+32>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}break a}c=H[d+32>>2]}Wb(c);H[d+32>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0}Wb(b);b=163632}c=b;H[a>>2]=c;b=c?c:163632;b=K[b+16>>2]<10?163632:H[b+12>>2];f=I[b+8|0]|I[b+9|0]<<8;if(f){b=b+((f<<8|f>>>8)&65535)|0}else{b=163632}b=I[b|0]|I[b+1|0]<<8;b=(b<<8|b>>>8)&65535;H[a+4>>2]=b;f=oc(b,24);H[a+8>>2]=f;if(!f){H[a+4>>2]=0;Wb(c);H[a>>2]=0;c=163632;H[a>>2]=163632;b=H[a+4>>2]}g:{if(!b){break g}b=0;while(1){f=163632;g=163632;e=H[a+8>>2]+N(b,24)|0;c=c?c:163632;c=K[c+16>>2]<10?163632:H[c+12>>2];h=I[c+8|0]|I[c+9|0]<<8;if(h){g=c+((h<<8|h>>>8)&65535)|0}c=I[g|0]|I[g+1|0]<<8;h:{if(((c<<8|c>>>8)&65535)>>>0<=b>>>0){break h}c=(b<<1)+g|0;c=I[c+2|0]|I[c+3|0]<<8;if(!c){break h}f=((c<<8|c>>>8)&65535)+g|0}h=0;g=xb-16|0;xb=g;H[e>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[g+12>>2]=e;H[g+8>>2]=0;i:{c=I[f+4|0]|I[f+5|0]<<8;if(!c){H[e+12>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[g+12>>2]=e+12;H[g+8>>2]=0;break i}i=I[f|0]|I[f+1|0]<<8;k=(i<<8|i>>>8)&65535;i=(c<<8|c>>>8)&65535;j=i>>>0>1?i:1;i=f+4|0;while(1){c=((c<<8|(c&65280)>>>8)&65535)>>>0>h>>>0?(i+(h<<1)|0)+2|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+f|0}else{c=163632}Ee(QE(c,g+8|0,k),H[g+12>>2]);h=h+1|0;if((j|0)!=(h|0)){c=I[i|0]|I[i+1|0]<<8;continue}break}c=I[f+4|0]|I[f+5|0]<<8;i=I[f|0]|I[f+1|0]<<8;h=0;H[e+20>>2]=0;H[e+12>>2]=0;H[e+16>>2]=0;H[g+12>>2]=e+12;H[g+8>>2]=0;if(!c){break i}i=(i<<8|i>>>8)&65535;e=(c<<8|c>>>8)&65535;k=e>>>0>1?e:1;e=f+4|0;while(1){c=((c<<8|(c&65280)>>>8)&65535)>>>0>h>>>0?(e+(h<<1)|0)+2|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+f|0}else{c=163632}PE(c,g+8|0,i);h=h+1|0;if((k|0)==(h|0)){break i}c=I[e|0]|I[e+1|0]<<8;continue}}xb=g+16|0;b=b+1|0;if(b>>>0>=K[a+4>>2]){break g}c=H[a>>2];continue}}xb=d+48|0}function gE(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=xb-16|0;xb=i;a:{if(!a|!b|(!c|!H[b>>2])){break a}a=_c(a,d);if(!a){break a}b:{c:{a=ac(d)+a|0;d=I[a|0];if((d|0)!=45){f=d-48|0;k=(d&223)-65|0;d:{if((f&255)>>>0>=10&(k&255)>>>0>=26){break d}d=zb[e|0](d)|0;F[i+12|0]=d;g=I[a+1|0];if((g-48&255)>>>0>=10){j=1;if(((g&-33)-65&255)>>>0>25){break d}}g=zb[e|0](g)|0;F[i+13|0]=g;h=I[a+2|0];if((h-48&255)>>>0>=10){j=2;if(((h&-33)-65&255)>>>0>25){break d}}h=zb[e|0](h)|0;F[i+14|0]=h;a=I[a+3|0];if((a-48&255)>>>0<10){break c}j=3;if(((a&-33)-65&255)>>>0<26){break c}}if((f&255)>>>0>=10){f=0;if((k&255)>>>0>=26){break a}}Nb((i+12|0)+j|0,32,4-j|0);a=I[i+15|0];h=I[i+14|0];g=I[i+13|0];d=I[i+12|0];break b}d=I[a+1|0];e=d-48|0;if((e&255)>>>0>=10){e:{switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break e;default:break a}}e=((d-65&255)>>>0<26?d+32|0:d)-87|0}d=I[a+2|0];g=d-48|0;if((g&255)>>>0>=10){f:{switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break f;default:break a}}g=((d-65&255)>>>0<26?d+32|0:d)-87|0}d=I[a+3|0];h=d-48|0;if((h&255)>>>0>=10){g:{switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break g;default:break a}}h=((d-65&255)>>>0<26?d+32|0:d)-87|0}d=I[a+4|0];k=d-48|0;if((k&255)>>>0>=10){h:{switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break h;default:break a}}k=((d-65&255)>>>0<26?d+32|0:d)-87|0}d=I[a+5|0];j=d-48|0;if((j&255)>>>0>=10){i:{switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i;default:break a}}j=((d-65&255)>>>0<26?d+32|0:d)-87|0}d=I[a+6|0];l=d-48|0;if((l&255)>>>0>=10){j:{switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break j;default:break a}}l=((d-65&255)>>>0<26?d+32|0:d)-87|0}d=I[a+7|0];m=d-48|0;if((m&255)>>>0>=10){k:{switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break k;default:break a}}m=((d-65&255)>>>0<26?d+32|0:d)-87|0}a=I[a+8|0];f=a-48|0;if((f&255)>>>0>=10){f=0;l:{switch(a-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break l;default:break a}}f=((a-65&255)>>>0<26?a+32|0:a)-87|0}d=(e<<4)+g|0;g=(h<<4)+k|0;h=(j<<4)+l|0;a=(m<<4)+f|0;break b}a=zb[e|0](a)|0;if((f&255)>>>0<10){break b}f=0;if((k&255)>>>0>=26){break a}}a=a&255|((g&255)<<16|d<<24|(h&255)<<8);H[c>>2]=(a&-538976289)==1145457748?a^538976288:a;f=1;H[b>>2]=1}xb=i+16|0;return f} +function mE(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,z=0,A=0;u=xb-272|0;xb=u;r=H[b+4>>2];m=H[b+8>>2];H[a+52>>2]=-2147483648;H[a+56>>2]=0;H[a+48>>2]=m;H[a+44>>2]=r;y=H[b+52>>2];s=H[b+28>>2];f=H[b+24>>2];v=H[b+44>>2];H[c>>2]=r;H[d>>2]=m;a:{if((f|0)<2|(v|0)<=0){break a}e=f-1|0;j=e&3;l=G[s+12>>1];b:{if(f-2>>>0<3){e=1;n=l;break b}h=e&-4;e=1;n=l;while(1){k=s+N(e,40)|0;o=G[k+12>>1];f=(n|0)>(o|0)?n:o;p=G[k+52>>1];f=(f|0)>(p|0)?f:p;i=G[k+92>>1];f=(f|0)>(i|0)?f:i;k=G[k+132>>1];n=(f|0)>(k|0)?f:k;f=(l|0)<(o|0)?l:o;f=(f|0)<(p|0)?f:p;f=(f|0)<(i|0)?f:i;l=(f|0)<(k|0)?f:k;e=e+4|0;g=g+4|0;if((h|0)!=(g|0)){continue}break}}if(j){h=0;while(1){f=G[(s+N(e,40)|0)+12>>1];n=(f|0)<(n|0)?n:f;l=(f|0)>(l|0)?l:f;e=e+1|0;h=h+1|0;if((j|0)!=(h|0)){continue}break}}if((l|0)>=(n|0)){break a}z=a,A=Rb(l,r)+m|0,H[z>>2]=A;h=Rb(n,r)+m|0;H[a+4>>2]=h;e=h&-32;H[a+24>>2]=e;k=H[a>>2];i=k&-32;H[a+16>>2]=i;H[a+8>>2]=k&-64;g=e+32|0;H[a+28>>2]=g;f=i+32|0;H[a+20>>2]=f;H[a+12>>2]=h+63&-64;if((f|0)>(h|0)){H[a+20>>2]=h;f=h}if((e|0)<(k|0)){H[a+24>>2]=k;e=k}j=h-k|0;H[a+32>>2]=j;if((j|0)>=65){f=e-f|0}else{H[a+24>>2]=h;H[a+20>>2]=k;f=j}H[a+36>>2]=f;e=g-i|0;H[a+40>>2]=e;i=(j|0)<129?(j|0)<97?4:8:16;g=j-i|0;if((g|0)>(f|0)){H[a+36>>2]=g;f=g}g=j+i|0;if((g|0)<(e|0)){H[a+40>>2]=g;e=g}g=(N(j,3)|0)/4|0;if((g|0)>(f|0)){H[a+36>>2]=g;f=g}g=(N(j,5)|0)/4|0;if((g|0)<(e|0)){H[a+40>>2]=g;e=g}c:{if((e|0)<(f|0)){break c}s=n-l|0;while(1){g=(j-f|0)+k|0;d:{e:{if((f|0)>=(j|0)){e=H[a+16>>2];if((g|0)>=(e|0)){break e}g=(h-g|0)+e|0;break d}e=H[a+20>>2];if((g|0)<=(e|0)){break e}g=(h-g|0)+e|0;break d}e=g;g=h}w=dc(f-j|0,s)+r|0;o=Rb(l,w);x=Nb(u,0,260);i=H[a+24>>2];j=g;m=g-e|0;g=H[a+16>>2];i=(i|0)>(g+m|0)?i-m|0:g;q=H[a+8>>2];g=i-q|0;f:{if((g|0)<0){break f}t=i;p=H[a+28>>2];i=H[a+20>>2];i=(p|0)<(i+m|0)?p-m|0:i;if((t|0)>(i|0)){break f}t=i-q|0;if((t|0)>64){break f}p=((h|0)>(j|0)?h-j|0:j-h|0)+((e|0)<(k|0)?k-e|0:e-k|0)|0;m=e-o|0;o=e-q|0;if((v|0)>0){i=(m-o|0)+g|0;q=0;while(1){e=N(q,44)+y|0;k=G[e+8>>1]-G[e+6>>1]|0;j=Rb(G[e+2>>1],w)+i|0;e=g;while(1){h=(e<<2)+x|0;H[h>>2]=H[h>>2]+N(k,H[((j&63)<<2)+21040>>2]);j=j+1|0;h=(e|0)<(t|0);e=e+1|0;if(h){continue}break}q=q+1|0;if((v|0)!=(q|0)){continue}break}}k=N(p,10);h=H[a+52>>2];while(1){e=g;j=e-o|0;i=j+k|0;g=H[(e<<2)+x>>2];if(!((g|0)<=(h|0)&((g|0)!=(h|0)|(i|0)>=H[a+56>>2]))){H[a+56>>2]=i;H[a+52>>2]=g;H[a+44>>2]=w;H[a+48>>2]=j+m;h=g}g=e+1|0;if((e|0)<(t|0)){continue}break}}if(H[a+40>>2]<=(f|0)){break c}f=f+1|0;j=H[a+32>>2];h=H[a+4>>2];k=H[a>>2];continue}}f=H[a+48>>2];e=H[a+44>>2];a=e-r|0;z=b,A=Rb(l,a)+f|0,H[z+2752>>2]=A;z=b,A=Rb(n,a)+f|0,H[z+2756>>2]=A;H[c>>2]=e;H[d>>2]=f}xb=u+272|0}function UU(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;n=xb-16|0;xb=n;H[n+8>>2]=d;H[n+12>>2]=b;o=xb-16|0;xb=o;b=H[a>>2];a=H[n+8>>2];if((a|0)==-1){a=ac(c)}H[o+12>>2]=a;k=xb-16|0;xb=k;d=H[b+24>>2];a=H[o+12>>2];a:{if(K[b+28>>2]>>0){if(d){Kb(d);a=H[o+12>>2]}a=(a<<1)+10|0;H[b+28>>2]=a;d=Qb(a);H[b+24>>2]=d;Nb(d,0,a);break a}if(!I[d|0]){break a}while(1){F[d|0]=0;a=I[d+1|0];d=d+1|0;if(a){continue}break}}b:{c:{e=H[n+12>>2];d:{if((e|0)==H[b+16>>2]){d=H[b+20>>2];break d}g=b+8|0;d=H[g>>2];if(!d){break c}a=g;while(1){f=(e|0)>H[d+16>>2];a=f?a:d;d=H[(f<<2)+d>>2];if(d){continue}break}if((a|0)==(g|0)|(e|0)>2]){break c}H[b+16>>2]=e;d=H[a+20>>2];H[b+20>>2]=d}a=0;if(!d){break b}H[k+12>>2]=0;H[k+8>>2]=0;H[k+4>>2]=0;h=H[o+12>>2];g=H[b+24>>2];l=k+12|0;p=k+8|0;q=k+4|0;Dp(d,c,h,g,l,p,q,F[d+2|0],F[d+3|0],1,1);a=F[d|0];gy(H[d+36>>2],c,g,l,p,q,((a|0)>0?a:2)&255);a=F[d+1|0];fy(H[d+36>>2],c,h,g,l,p,q,((a|0)>0?a:2)&255);a=H[d+4>>2];e:{if(!a){break e}f=H[d+8>>2];if((f|0)<0){break e}while(1){e=_c(c,a);if(e){while(1){f=e-c|0;i=f-1|0;x=g+(ac(a)+i|0)|0,y=48,F[x|0]=y;if((f|0)>0){F[g+i|0]=48}e=_c(e+1|0,a);if(e){continue}break}f=H[d+8>>2]}a=(ac(a)+a|0)+1|0;e=(f|0)>(j|0);j=j+1|0;if(e){continue}break}}if(H[d+36>>2]){a=0;s=xb-16|0;xb=s;d=I[c|0];f:{if((d&192)!=128){g:{if((h|0)<=0){e=-1;break g}if(!(!q|(!l|!p))){e=-1;while(1){e=((d&192)!=128)+e|0;F[g+e|0]=I[a+g|0];t=H[l>>2];h:{if(!t){break h}d=H[p>>2];if(!d){break h}r=H[q>>2];if(!r){break h}j=a<<2;i=H[j+d>>2];u=e<<2;m=d+u|0;H[m>>2]=0;i:{if((i|0)<=0){break i}f=0;d=0;if((i|0)!=1){w=i&-2;v=0;while(1){if((I[(a-d|0)+c|0]&192)!=128){f=f+1|0;H[m>>2]=f}if((I[((d^-1)+a|0)+c|0]&192)!=128){f=f+1|0;H[m>>2]=f}d=d+2|0;v=v+2|0;if((w|0)!=(v|0)){continue}break}}if(!(i&1)|(I[(a-d|0)+c|0]&192)==128){break i}H[m>>2]=f+1}m=H[j+r>>2];f=0;r=r+u|0;H[r>>2]=0;if((m|0)>0){d=(a-i|0)+1|0;i=m+d|0;while(1){if((I[c+d|0]&192)!=128){f=f+1|0;H[r>>2]=f}d=d+1|0;if((i|0)>(d|0)){continue}break}}H[t+u>>2]=H[j+t>>2];if((a|0)<=(e|0)){break h}H[j+H[l>>2]>>2]=0;H[j+H[p>>2]>>2]=0;H[j+H[q>>2]>>2]=0}a=a+1|0;if((h|0)==(a|0)){break g}d=I[a+c|0];continue}}d=(d&192)==128;F[g-d|0]=I[g|0];e=d?-1:0;d=1;if((h|0)==1){break g}f=h-1|0;l=f&1;if((h|0)!=2){f=f&-2;while(1){e=((I[c+d|0]&192)!=128)+e|0;F[e+g|0]=I[d+g|0];h=d+1|0;e=e+((I[h+c|0]&192)!=128)|0;F[g+e|0]=I[g+h|0];d=d+2|0;a=a+2|0;if((f|0)!=(a|0)){continue}break}}if(!l){break g}e=((I[c+d|0]&192)!=128)+e|0;F[g+e|0]=I[d+g|0]}F[(e+g|0)+1|0]=0;break f}H[s>>2]=c;Fc(H[191568],239751,s)}xb=s+16|0}a=H[b+24>>2];break b}H[b+20>>2]=0;H[b+16>>2]=e;a=0}xb=k+16|0;xb=o+16|0;xb=n+16|0;return a|0}function pea(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;e=xb-288|0;xb=e;h=H[a+464>>2];a:{b:{if(H[h+40>>2]|!H[a+280>>2]){break b}f=H[a+460>>2];H[f+24>>2]=H[f+24>>2]+(H[h+12>>2]/8|0);H[h+12>>2]=0;if(!(zb[H[f+8>>2]](a)|0)){break a}if(H[a+336>>2]>0){while(1){H[((c<<2)+h|0)+20>>2]=0;c=c+1|0;if((c|0)>2]){continue}break}}H[h+16>>2]=0;H[h+40>>2]=H[a+280>>2];if(H[a+436>>2]){break b}H[h+36>>2]=0}c:{if(!H[h+36>>2]){o=H[a+428>>2];m=H[a+412>>2];c=H[a+420>>2];H[e+280>>2]=a;f=H[a+24>>2];H[e+264>>2]=H[f>>2];H[e+268>>2]=H[f+4>>2];p=-1<>2];l=H[b>>2];g=H[h+8>>2];d:{e:{f:{j=H[h+16>>2];f=H[a+408>>2];if(j|(m|0)<(f|0)){break f}j=H[h+60>>2];while(1){g:{h:{i:{if((d|0)>7){break i}if(!Hd(e+264|0,g,d,0)){break c}g=H[e+272>>2];d=H[e+276>>2];if((d|0)>7){break i}c=Le(e+264|0,g,d,j,1);break h}b=g>>d-8&255;c=H[(j+(b<<2)|0)+144>>2];if(c){d=d-c|0;c=I[(b+j|0)+1168|0];break g}c=Le(e+264|0,g,d,j,9)}if((c|0)<0){break c}d=H[e+276>>2];g=H[e+272>>2]}k=c>>>4|0;j:{k:{switch(c&15){default:b=H[a>>2];H[b+20>>2]=121;zb[H[b+4>>2]](a,-1);case 1:if((d|0)<=0){if(!Hd(e+264|0,g,d,1)){break c}g=H[e+272>>2];d=H[e+276>>2]}d=d-1|0;q=g>>>d&1?n:p;break j;case 0:break k}}q=0;if((k|0)==15){break j}j=1<>>0<16){break e}if((d|0)<(k|0)){if(!Hd(e+264|0,g,d,k)){break c}g=H[e+272>>2];d=H[e+276>>2]}d=d-k|0;j=(H[(k<<2)+256992>>2]&g>>d)+j|0;break f}s=(f|0)>(m|0)?f:m;b=s+1|0;l:{while(1){c=f;f=(H[(c<<2)+o>>2]<<1)+l|0;m:{if(J[f>>1]){if((d|0)<=0){if(!Hd(e+264|0,g,d,1)){break c}g=H[e+272>>2];d=H[e+276>>2]}d=d-1|0;if(!(g>>>d&1)){break m}r=G[f>>1];if(r&n){break m}G[f>>1]=((r|0)>=0?n:p)+r;break m}if((k|0)<=0){break l}k=k-1|0}f=c+1|0;if((c|0)!=(s|0)){continue}break}c=b}if(q){b=H[(c<<2)+o>>2];G[(b<<1)+l>>1]=q;H[(i<<2)+e>>2]=b;i=i+1|0}f=c+1|0;if((c|0)<(m|0)){continue}break}break d}if(!j){break d}}if((f|0)<=(m|0)){while(1){b=f;c=(H[(f<<2)+o>>2]<<1)+l|0;n:{if(!J[c>>1]){break n}if((d|0)<=0){if(!Hd(e+264|0,g,d,1)){break c}g=H[e+272>>2];d=H[e+276>>2]}d=d-1|0;if(!(g>>>d&1)){break n}f=G[c>>1];if(f&n){break n}G[c>>1]=f+((f|0)>=0?n:p)}f=b+1|0;if((b|0)!=(m|0)){continue}break}}t=j-1|0}a=H[a+24>>2];H[a>>2]=H[e+264>>2];H[a+4>>2]=H[e+268>>2];H[h+16>>2]=t;H[h+12>>2]=d;H[h+8>>2]=g}H[h+40>>2]=H[h+40>>2]-1;c=1;break a}if((i|0)<=0){c=0;break a}a=i-1|0;b=i&3;if(b){c=0;while(1){i=i-1|0;G[(H[(i<<2)+e>>2]<<1)+l>>1]=0;c=c+1|0;if((b|0)!=(c|0)){continue}break}}c=0;if(a>>>0<3){break a}while(1){a=(i<<2)+e|0;G[(H[a-4>>2]<<1)+l>>1]=0;G[(H[a-8>>2]<<1)+l>>1]=0;a=i-3|0;G[(H[(a<<2)+e>>2]<<1)+l>>1]=0;i=i-4|0;G[(H[(i<<2)+e>>2]<<1)+l>>1]=0;if(a>>>0>1){continue}break}}xb=e+288|0;return c|0}function Qda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=xb-480|0;xb=C;w=H[a+332>>2];a=H[b+84>>2];b=C;while(1){n=H[a+160>>2];q=G[c+80>>1];h=H[a+32>>2];g=G[c+16>>1];i=H[a+224>>2];p=G[c+112>>1];j=H[a+96>>2];m=G[c+48>>1];k=N(G[c>>1],H[a>>2])<<13|1024;t=N(H[a+192>>2],G[c+96>>1]);u=k+N(t,-11586)|0;o=N(H[a+64>>2],G[c+32>>1]);l=N(H[a+128>>2],G[c+64>>1]);f=o-l|0;H[b+224>>2]=u+N(f,-11584)>>11;n=N(N(n,q),10033);h=N(h,g);g=N(i,p);r=h-g|0;q=n+N(r,11522)|0;p=k+N(t,9373)|0;x=N(f,374);i=l+o|0;l=N(i,10958);s=p+(x+l|0)|0;j=N(j,m);m=N(j,-11018);v=q+(N(g,20131)-m|0)|0;H[b+448>>2]=s-v>>11;H[b>>2]=s+v>>11;t=k+N(t,-3580)|0;s=N(f,2896);v=N(i,6476);k=t+(s+v|0)|0;y=j-g|0;z=N(y+h|0,6810);A=z+N(h,4209)|0;H[b+416>>2]=k-A>>11;H[b+32>>2]=k+A>>11;k=u+N(f,5792)|0;u=N(r,10033)-n|0;H[b+384>>2]=k-u>>11;H[b+64>>2]=k+u>>11;f=N(f,-3271);k=N(i,4482);i=p+(f-k|0)|0;m=(n+m|0)+N(g,-7121)|0;g=N(h+g|0,4712);m=m+g|0;H[b+288>>2]=i-m>>11;H[b+160>>2]=i+m>>11;o=N(o,11795);i=t+(x+(o-l|0)|0)|0;j=N(j,-6810);g=g+((j+N(h,3897)|0)-n|0)|0;H[b+352>>2]=i-g>>11;H[b+96>>2]=g+i>>11;g=s+(p-v|0)|0;n=z+N(y,-17828)|0;H[b+320>>2]=g-n>>11;H[b+128>>2]=g+n>>11;f=t+(f+(k-o|0)|0)|0;h=q+(j+N(h,-9113)|0)|0;H[b+256>>2]=f-h>>11;H[b+192>>2]=h+f>>11;b=b+4|0;a=a+4|0;c=c+2|0;B=B+1|0;if((B|0)!=8){continue}break}b=w+128|0;n=0;a=C;while(1){o=N(H[a+20>>2],10033);h=H[a+4>>2];f=H[a+28>>2];l=h-f|0;t=o+N(l,11522)|0;c=H[(n<<2)+d>>2]+e|0;k=H[a+12>>2];u=N(k,-11018);m=t+(N(f,20131)-u|0)|0;j=(H[a>>2]<<13)+131072|0;p=H[a+24>>2];w=j+N(p,9373)|0;q=H[a+8>>2];i=H[a+16>>2];g=q-i|0;r=N(g,374);i=i+q|0;x=N(i,10958);s=w+(r+x|0)|0;F[c|0]=I[b+(m+s>>>18&1023)|0];F[c+14|0]=I[b+(s-m>>>18&1023)|0];s=k-f|0;v=N(s+h|0,6810);y=v+N(h,4209)|0;m=j+N(p,-3580)|0;z=N(g,2896);A=N(i,6476);B=m+(z+A|0)|0;F[c+1|0]=I[b+(y+B>>>18&1023)|0];F[c+13|0]=I[b+(B-y>>>18&1023)|0];l=N(l,10033)-o|0;p=j+N(p,-11586)|0;j=p+N(g,5792)|0;F[c+2|0]=I[b+(l+j>>>18&1023)|0];F[c+12|0]=I[b+(j-l>>>18&1023)|0];j=N(h+f|0,4712);k=N(k,-6810);l=j+((k+N(h,3897)|0)-o|0)|0;q=N(q,11795);r=m+(r+(q-x|0)|0)|0;F[c+3|0]=I[b+(l+r>>>18&1023)|0];F[c+11|0]=I[b+(r-l>>>18&1023)|0];l=v+N(s,-17828)|0;r=z+(w-A|0)|0;F[c+4|0]=I[b+(l+r>>>18&1023)|0];F[c+10|0]=I[b+(r-l>>>18&1023)|0];f=j+((o+u|0)+N(f,-7121)|0)|0;o=N(g,-3271);i=N(i,4482);j=w+(o-i|0)|0;F[c+5|0]=I[b+(f+j>>>18&1023)|0];F[c+9|0]=I[b+(j-f>>>18&1023)|0];h=t+(k+N(h,-9113)|0)|0;f=m+(o+(i-q|0)|0)|0;F[c+6|0]=I[b+(h+f>>>18&1023)|0];F[c+8|0]=I[b+(f-h>>>18&1023)|0];F[c+7|0]=I[b+(p+N(g,268423872)>>>18&1023)|0];a=a+32|0;n=n+1|0;if((n|0)!=15){continue}break}xb=C+480|0}function Vja(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;f=xb-48|0;xb=f;if(Ac(c,b,105023,0)){Fn(b,c,1,12,15,-1);q=H[c+68>>2];a:{if(!q){break a}e=q-1|0;d=H[c+80>>2];i=I[d+15|0];while(1){b:{if((e|0)==(g|0)){g=q;break b}g=g+1|0;if((i|0)==I[(d+N(g,20)|0)+15|0]){continue}}break}if(!q){break a}l=H[c+80>>2];h=I[l+15|0];d=q;while(1){i=g;c:{if(h&14){break c}g=o+1|0;if(i>>>0<=g>>>0){break c}n=H[a+124>>2];p=H[n+8>>2]|H[n+4>>2]|H[n+12>>2];h=0;d=g;j=i+(o^-1)&3;if(j){while(1){e=N(d,20)+l|0;H[e+4>>2]=p|H[e+4>>2];d=d+1|0;h=h+1|0;if((j|0)!=(h|0)){continue}break}}if((i-o|0)-2>>>0>2){while(1){e=N(d,20)+l|0;H[e+4>>2]=p|H[e+4>>2];H[e+24>>2]=p|H[e+24>>2];H[e+44>>2]=p|H[e+44>>2];e=e- -64|0;H[e>>2]=p|H[e>>2];d=d+4|0;if((i|0)!=(d|0)){continue}break}}s=i-4|0;t=i+1|0;r=N(g,20)+l|0;m=N(o,20)+l|0;p=m+40|0;h=0;while(1){e=g;k=N(e,20)+l|0;d=I[k+18|0];d:{if(!((d|0)!=14|h>>>0>2)){g=e+1|0;if(i>>>0<=g>>>0){break d}j=N(g,20)+l|0;if(I[j+18|0]!=16){h=h+1|0;break d}H[k+4>>2]=H[k+4>>2]|H[n>>2];H[j+4>>2]=H[j+4>>2]|H[n>>2];h=e+2|0;if(h-o>>>0>=2){Jd(c,o,h)}H[f+40>>2]=H[k+16>>2];d=H[k+12>>2];H[f+32>>2]=H[k+8>>2];H[f+36>>2]=d;d=H[k+4>>2];H[f+24>>2]=H[k>>2];H[f+28>>2]=d;H[f+16>>2]=H[j+16>>2];d=H[j+12>>2];H[f+8>>2]=H[j+8>>2];H[f+12>>2]=d;d=H[j+4>>2];H[f>>2]=H[j>>2];H[f+4>>2]=d;$c(p,m,N(e-o|0,20));H[m+16>>2]=H[f+40>>2];d=H[f+36>>2];H[m+8>>2]=H[f+32>>2];H[m+12>>2]=d;d=H[f+28>>2];H[m>>2]=H[f+24>>2];H[m+4>>2]=d;H[r+16>>2]=H[f+16>>2];d=H[f+12>>2];H[r+8>>2]=H[f+8>>2];H[r+12>>2]=d;d=H[f+4>>2];H[r>>2]=H[f>>2];H[r+4>>2]=d;j=H[n+16>>2];e:{if(!j|i>>>0<=h>>>0){break e}d=N(h,20)+l|0;H[d+4>>2]=j|H[d+4>>2];d=e+3|0;if(i>>>0<=d>>>0){break e}k=0;h=t-e&3;if(h){while(1){j=N(d,20)+l|0;H[j+4>>2]=H[j+4>>2]|H[n+16>>2];d=d+1|0;k=k+1|0;if((h|0)!=(k|0)){continue}break}}if(s-e>>>0<3){break e}while(1){e=N(d,20)+l|0;H[e+4>>2]=H[e+4>>2]|H[n+16>>2];H[e+24>>2]=H[e+24>>2]|H[n+16>>2];H[e+44>>2]=H[e+44>>2]|H[n+16>>2];e=e- -64|0;H[e>>2]=H[e>>2]|H[n+16>>2];d=d+4|0;if((i|0)!=(d|0)){continue}break}}h=2;break d}g=e+1|0;if((d|0)!=28){break d}if(g-o>>>0>=2){Jd(c,o,g)}H[f+40>>2]=H[k+16>>2];d=H[k+12>>2];H[f+32>>2]=H[k+8>>2];H[f+36>>2]=d;d=H[k+4>>2];H[f+24>>2]=H[k>>2];H[f+28>>2]=d;$c(r,m,N(e-o|0,20));H[m+16>>2]=H[f+40>>2];d=H[f+36>>2];H[m+8>>2]=H[f+32>>2];H[m+12>>2]=d;d=H[f+28>>2];H[m>>2]=H[f+24>>2];H[m+4>>2]=d}if((g|0)!=(i|0)){continue}break}l=H[c+80>>2];d=H[c+68>>2]}g=i+1|0;e=d>>>0>g>>>0?d:g;h=I[(N(i,20)+l|0)+15|0];g=i;while(1){f:{g=g+1|0;if(g>>>0>=d>>>0){g=e;break f}if(I[(N(g,20)+l|0)+15|0]==(h|0)){continue}}break}o=i;if(i>>>0>>0){continue}break}}Ac(c,b,105617,0)}xb=f+48|0}function PH(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;a:{d=yl(H[a>>2]+180|0);if(!(I[d|0]|I[d+1|0]<<8|(I[d+2|0]|I[d+3|0]<<8))){break a}if((b|0)==1633774708){e=163632;f=yl(H[a>>2]+180|0);b=I[f+4|0]|I[f+5|0]<<8;b:{if(!b){break b}d=((b<<8|b>>>8)&65535)-1|0;b=0;while(1){c:{g=b+d>>>1|0;h=f+N(g,12)|0;h=I[h+12|0]|I[h+13|0]<<8;d:{if(((h<<8|h>>>8)&65535)>>>0>=18){d=g-1|0;break d}if((h|0)==4352){break c}b=g+1|0}if((b|0)<=(d|0)){continue}break b}break}e=(f+N(g,12)|0)+12|0}if(!(I[e+2|0]|I[e+3|0]<<8)){break a}d=H[a+20>>2];e:{f:{g:{f=H[a+16>>2];if((f|0)>=0){b=d+1|0;e=(b|0)>0?b:0;if(e>>>0<=f>>>0){break f}b=f;while(1){b=((b>>>1|0)+b|0)+8|0;if(e>>>0>=b>>>0){continue}break}if(!(b>>>0>>0|b>>>0>268435454)){d=tc(H[a+24>>2],b<<4);if(d){break g}d=H[a+20>>2]}H[a+16>>2]=-1}a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break e}H[a+16>>2]=b;H[a+24>>2]=d;d=H[a+20>>2]}if(d>>>0>>0){Nb(H[a+24>>2]+(d<<4)|0,0,e-d<<4)}H[a+20>>2]=e;d=e;a=(H[a+24>>2]+(d<<4)|0)-16|0}H[a+12>>2]=d;H[a+4>>2]=c;H[a>>2]=17;F[a+8|0]=1;return}d=0;e=75;h:{i:{while(1){f=d+e>>>1|0;g=H[(f<<4)+103776>>2];j:{if(g>>>0>b>>>0){e=f-1|0;break j}if(b>>>0<=g>>>0){break i}d=f+1|0}if((d|0)<=(e|0)){continue}break}f=0;break h}f=(f<<4)+103776|0}if(!f){break a}e=yl(H[a>>2]+180|0);g=H[f+4>>2];h=163632;b=I[e+4|0]|I[e+5|0]<<8;k:{if(!b){break k}d=((b<<8|b>>>8)&65535)-1|0;b=0;while(1){l:{i=b+d>>>1|0;j=e+N(i,12)|0;j=I[j+12|0]|I[j+13|0]<<8;j=(j<<8|j>>>8)&65535;m:{if((j|0)>(g|0)){d=i-1|0;break m}if((g|0)==(j|0)){break l}b=i+1|0}if((b|0)<=(d|0)){continue}break k}break}h=(e+N(i,12)|0)+12|0}if(!(I[h+2|0]|I[h+3|0]<<8)){if((g|0)!=37|H[f+8>>2]!=1){break a}h=163632;e=yl(H[a>>2]+180|0);b=I[e+4|0]|I[e+5|0]<<8;n:{if(!b){break n}d=((b<<8|b>>>8)&65535)-1|0;b=0;while(1){o:{g=b+d>>>1|0;i=e+N(g,12)|0;i=I[i+12|0]|I[i+13|0]<<8;p:{if(((i<<8|i>>>8)&65535)>>>0>=4){d=g-1|0;break p}if((i|0)==768){break o}b=g+1|0}if((b|0)<=(d|0)){continue}break n}break}h=(e+N(g,12)|0)+12|0}if(!(I[h+2|0]|I[h+3|0]<<8)){break a}}d=H[a+20>>2];q:{r:{s:{g=H[a+16>>2];if((g|0)>=0){b=d+1|0;e=(b|0)>0?b:0;if(e>>>0<=g>>>0){break r}b=g;while(1){b=((b>>>1|0)+b|0)+8|0;if(e>>>0>=b>>>0){continue}break}if(!(b>>>0>>0|b>>>0>268435454)){d=tc(H[a+24>>2],b<<4);if(d){break s}d=H[a+20>>2]}H[a+16>>2]=-1}a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break q}H[a+16>>2]=b;H[a+24>>2]=d;d=H[a+20>>2]}if(d>>>0>>0){Nb(H[a+24>>2]+(d<<4)|0,0,e-d<<4)}H[a+20>>2]=e;d=e;a=(H[a+24>>2]+(d<<4)|0)-16|0}H[a>>2]=H[f+4>>2];b=H[f+(c?8:12)>>2];H[a+12>>2]=d;H[a+4>>2]=b;F[a+8|0]=I[h+8|0]>>>7}}function oI(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;g=H[a+492>>2];i=H[b+16>>2];e=H[b+8>>2];zb[H[b+28>>2]](b);c=3;a=H[b>>2];a:{b:{if(a>>>0>=e>>>0){break b}a=I[a|0];c:{if(a-48>>>0<=9){a=zb[H[b+36>>2]](b)|0;H[b+144>>2]=a;if(H[b+12>>2]){break a}if((a|0)<0){break b}f=a;a=H[b>>2];d=e-a>>2;if((f|0)<=(d|0)){break c}H[b+144>>2]=d;break c}if((a|0)!=60){break b}zb[H[b+32>>2]](b);if(H[b+12>>2]){break a}zb[H[b+28>>2]](b);d=H[b>>2];if(d>>>0>=e>>>0){a=d;break c}a=d;while(1){a=I[a|0]-47|0;d:{if(a){if((a|0)!=15){break d}H[b>>2]=d;H[b+144>>2]=h;a=d;break c}h=h+1|0}zb[H[b+32>>2]](b);if(H[b+12>>2]){break a}zb[H[b+28>>2]](b);a=H[b>>2];if(e>>>0>a>>>0){continue}break}}if(H[b+264>>2]|a>>>0>=e>>>0){break b}k=b+200|0;c=zb[H[H[g>>2]>>2]](k,H[b+144>>2],i)|0;if(c){break b}l=b+148|0;c=zb[H[H[g>>2]>>2]](l,H[b+144>>2],i)|0;if(c){break b}h=b+252|0;c=zb[H[H[g>>2]>>2]](h,4,i)|0;if(c){break b}zb[H[b+28>>2]](b);a=H[b>>2];if(e>>>0<=a>>>0){H[b+144>>2]=0;c=3;break b}i=0;g=0;d=0;while(1){e:{f:{c=I[a|0];if((c|0)!=101){if((c|0)==62){break e}break f}if(I[a+1|0]!=110|a+3>>>0>=e>>>0|I[a+2|0]!=100){break f}switch(I[a+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:break e;default:break f}}zb[H[b+32>>2]](b);f=H[b>>2];if(f>>>0>=e>>>0){c=3;break b}if(H[b+12>>2]){break a}g:{h:{j=I[a|0];switch(j-40|0){case 0:case 7:break h;default:break g}}c=3;m=(j|0)==40;if((m?3:2)+a>>>0>=e>>>0){break b}a=a+1|0;f=(f-a|0)-m|0;c=zb[H[b+192>>2]](l,d,a,f+1|0)|0;if(c){break b}c=f;f=d<<2;F[c+H[f+H[b+172>>2]>>2]|0]=0;if(I[a|0]==46){a=fc(10293,H[f+H[b+172>>2]>>2]);i=a?i:1;g=a?g:d}zb[H[b+28>>2]](b);if((j|0)==40){zb[H[b+32>>2]](b)}a=H[b>>2];zb[H[b+36>>2]](b)|0;c=3;j=H[b>>2];if(j>>>0>=e>>>0){break b}c=a;a=j-a|0;c=zb[H[b+244>>2]](k,d,c,a+1|0)|0;if(c){break b}F[a+H[f+H[b+224>>2]>>2]|0]=0;d=d+1|0;if((d|0)>=H[b+144>>2]){break e}}zb[H[b+28>>2]](b);a=H[b>>2];if(e>>>0>a>>>0){continue}}break}H[b+144>>2]=d;if(!(i&255)){c=3;break b}a=H[H[b+172>>2]>>2];if(!fc(10293,a)){break a}c=zb[H[b+296>>2]](h,0,a,H[H[b+176>>2]>>2])|0;if(c){break b}c=zb[H[b+296>>2]](h,1,H[H[b+224>>2]>>2],H[H[b+228>>2]>>2])|0;if(c){break b}a=g<<2;c=zb[H[b+296>>2]](h,2,H[a+H[b+172>>2]>>2],H[a+H[b+176>>2]>>2])|0;if(c){break b}c=zb[H[b+296>>2]](h,3,H[a+H[b+224>>2]>>2],H[a+H[b+228>>2]>>2])|0;if(c){break b}c=zb[H[b+192>>2]](l,g,H[H[b+276>>2]>>2],H[H[b+280>>2]>>2])|0;if(c){break b}c=zb[H[b+244>>2]](k,g,H[H[b+276>>2]+4>>2],H[H[b+280>>2]+4>>2])|0;if(c){break b}c=zb[H[b+192>>2]](l,0,H[H[b+276>>2]+8>>2],H[H[b+280>>2]+8>>2])|0;if(c){break b}c=zb[H[b+244>>2]](k,0,H[H[b+276>>2]+12>>2],H[H[b+280>>2]+12>>2])|0;if(!c){break a}}H[b+12>>2]=c}}function Dja(a){a=a|0;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;d=xb+-64|0;xb=d;h=H[a+16>>2];b=161;a:{if(K[a+20>>2]>>0){break a}e=H[a+32>>2];m=e+48|0;F[e+64|0]=1;j=-2147483648;i=2147483647;while(1){b=l<<2;k=b+d|0;n=b+(d+32|0)|0;c=H[h>>2];f=I[c|0];b:{if((f|0)==30){b=En(a,c,0,k);break b}g=c+1|0;c:{d:{e:{switch(f-28|0){case 0:b=0;if(K[a+8>>2]<=c+2>>>0){break c}b=I[c+2|0]|I[g|0]<<8;break c;case 1:b=0;if(K[a+8>>2]<=c+4>>>0){break c}b=I[c+1|0]|I[c+2|0]<<8|(I[c+3|0]<<16|I[c+4|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);break d;default:break e}}if(f>>>0<=246){b=f-139|0;break c}c=H[a+8>>2];if(f>>>0<=250){b=0;if(c>>>0<=g>>>0){break c}b=(I[g|0]|f<<8)-63124|0;break c}b=0;if(c>>>0<=g>>>0){break c}b=64148-(I[g|0]|f<<8)|0}if((b|0)<32768){break c}c=5;f:{if(b>>>0<1e5){break f}c=6;if(b>>>0<1e6){break f}c=7;if(b>>>0<1e7){break f}c=8;if(b>>>0<1e8){break f}c=b>>>0<1e9?9:10}f=c-5|0;g=H[(f<<2)+27536>>2];if(((b|0)/(g|0)|0)>=32768){c=c-4|0;H[k>>2]=c;b=dc(b,H[(c<<2)+27536>>2]);break b}H[k>>2]=f;b=dc(b,g);break b}H[k>>2]=0;b=b<<16}H[n>>2]=b;if(b){b=H[k>>2];i=(b|0)<(i|0)?b:i;j=(b|0)>(j|0)?b:j}h=h+4|0;l=l+1|0;if((l|0)!=6){continue}break}if(!(j-1>>>0<4294967286|j-i>>>0>9)){f=0;h=0;a=H[d+32>>2];if(a){b=H[(j-H[d>>2]<<2)+27536>>2];h=b>>1;g:{if((a|0)<0){c=(a-h|0)/(b|0)|0;if(a>>>0>(h|-2147483648)>>>0){break g}c=-2147483648/(b|0)|0;break g}c=(a+h|0)/(b|0)|0;if(a>>>0<2147483647-h>>>0){break g}c=2147483647/(b|0)|0}h=c;H[d+32>>2]=h}a=H[d+36>>2];if(a){c=H[(j-H[d+4>>2]<<2)+27536>>2];b=c>>1;f=(((a|0)>=0?a>>>0<2147483647-b>>>0?a+b|0:2147483647:a>>>0>(b|-2147483648)>>>0?a-b|0:-2147483648)|0)/(c|0)|0;H[d+36>>2]=f}b=0;k=0;a=H[d+40>>2];if(a){i=H[(j-H[d+8>>2]<<2)+27536>>2];c=i>>1;k=(((a|0)>=0?a>>>0<2147483647-c>>>0?a+c|0:2147483647:a>>>0>(c|-2147483648)>>>0?a-c|0:-2147483648)|0)/(i|0)|0;H[d+40>>2]=k}a=H[d+44>>2];if(a){c=H[(j-H[d+12>>2]<<2)+27536>>2];b=c>>1;b=(((a|0)>=0?a>>>0<2147483647-b>>>0?a+b|0:2147483647:a>>>0>(b|-2147483648)>>>0?a-b|0:-2147483648)|0)/(c|0)|0}i=0;g=0;a=H[d+48>>2];if(a){g=H[(j-H[d+16>>2]<<2)+27536>>2];c=g>>1;g=(((a|0)>=0?a>>>0<2147483647-c>>>0?a+c|0:2147483647:a>>>0>(c|-2147483648)>>>0?a-c|0:-2147483648)|0)/(g|0)|0}a=H[d+52>>2];if(a){i=H[(j-H[d+20>>2]<<2)+27536>>2];c=i>>1;i=(((a|0)>=0?a>>>0<2147483647-c>>>0?a+c|0:2147483647:a>>>0>(c|-2147483648)>>>0?a-c|0:-2147483648)|0)/(i|0)|0}H[e+48>>2]=h;H[e+72>>2]=g;H[e+56>>2]=f;H[e+76>>2]=i;H[e+60>>2]=b;H[e+52>>2]=k;H[e+68>>2]=H[27536-(j<<2)>>2];b=0;if(sn(m)){break a}}H[e+48>>2]=65536;H[e+52>>2]=0;H[e+68>>2]=1;H[e+72>>2]=0;H[e+76>>2]=0;H[e+56>>2]=0;H[e+60>>2]=65536;b=0}xb=d- -64|0;return b|0}function UF(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;g=H[b+4>>2];a:{if(g>>>0>a>>>0){break a}h=H[b+8>>2];if(h>>>0>>0|h-a>>>0<2){break a}d=H[b+12>>2];f=d-2|0;H[b+12>>2]=f;if((f|0)<=0){break a}b:{switch(I[a|0]){case 0:e=H[b+36>>2];if(!e){return 1}j=1;k=a+1|0;if(!(g>>>0>k>>>0|h>>>0<=k>>>0)){i=d-3|0;d=i&i>>31;c:{if((i|0)<=0){c=d;break c}c=f-e|0;a=0;d:{while(1){a=a+1|0;if((e|0)==(a|0)){break d}f=a+k|0;if(f>>>0>>0){c=i;break d}if(f>>>0>=h>>>0){c=i;break d}i=i-1|0;if((i|0)>0){continue}break}c=d}j=a>>>0>>0}H[b+12>>2]=c}return!j|0;case 3:return ZF(a+1|0,b,c)|0;case 4:break b;default:break a}}h=xb-16|0;xb=h;H[h+12>>2]=c;d=a+1|0;e:{if(d>>>0>2]){break e}a=H[b+8>>2];if(a>>>0>>0|a-d>>>0<=3){break e}a=H[b+12>>2]-4|0;H[b+12>>2]=a;if((a|0)<=0){break e}H[h+8>>2]=0;c=0;j=H[b+4>>2];f:{g:{if(j>>>0>d>>>0){break g}e=H[b+8>>2];if(e>>>0>>0|e-d>>>0<4){break g}g=H[b+12>>2]-4|0;H[b+12>>2]=g;if((g|0)<=0){break g}a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);f=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(f>>>0>715827881){break g}a=1;if(!f){break f}a=d+4|0;if(a>>>0>>0|a>>>0>e>>>0){break g}e=e-a|0;a=N(f,6);if(e>>>0>>0){break g}a=g-a|0;H[b+12>>2]=a;if((a|0)<=0){break g}c=1;a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);g=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(!g){break g}f=H[h+12>>2];j=H[b+36>>2];e=0;while(1){h:{a=d+N(e,6)|0;c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);if(j>>>0<=(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0){break h}a=I[a+8|0]|I[a+9|0]<<8;if(f>>>0<=((a<<8|a>>>8)&65535)>>>0){break h}c=1;e=e+1|0;if((g|0)!=(e|0)){continue}break g}break}c=0}a=c}if(!a){break e}a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);if(!a){break e}c=I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24);if(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)){break e}c=1;a=a<<8&16711680|a<<24|(a>>>8&65280|a>>>24);if(a>>>0>1){while(1){g=d+N(c,6)|0;e=a>>>0>c-1>>>0?g-2|0:163632;e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);f=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);e=a>>>0>c>>>0?g+4|0:163632;e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);if(f>>>0>=(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))>>>0){break e}c=c+1|0;if((a|0)!=(c|0)){continue}break}}a=(d+N(a,6)|0)+4|0;if(a>>>0>2]){break e}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<4){break e}a=H[b+12>>2]-4|0;H[b+12>>2]=a;if((a|0)<=0){break e}a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);a=a?(d+N(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24),6)|0)-2|0:163632;a=I[a+6|0]|I[a+7|0]<<8|(I[a+8|0]<<16|I[a+9|0]<<24);i=H[b+36>>2]==(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))}xb=h+16|0}return i|0}function Bi(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;h=H[a+88>>2];k=h+12|0;a:{b:{c:{d:{if(F[a+8|0]&1){e:{f:{g:{h:{i:{j:{k:{o=H[b>>2];switch(o|0){case 3:break i;case 2:break j;case 0:break k;case 1:break g;case 4:break h;default:break e}}e=J[a+68>>1];f=e;break e}e=H[a+60>>2]-H[a+52>>2]|0;d=H[a- -64>>2]-H[a+56>>2]|0;break f}e=G[a+76>>1];d=G[a+70>>1]-G[a+72>>1]|0;break f}c=H[b+4>>2];H[h+16>>2]=c;b=H[b+8>>2];H[h+20>>2]=b;if(!c){break c}if(b){break b}break d}e=G[a+70>>1]-G[a+72>>1]|0;d=e}c=d;c=c>>31;f=(d^c)-c|0;c=e>>31;e=(c^e)-c|0}d=H[b+4>>2];l=d;c=H[b+12>>2];if(c){l=(N(c,d)+36|0)/72|0}g=H[b+8>>2];j=g;b=H[b+16>>2];if(b){j=(N(b,g)+36|0)/72|0}l:{if(d){c=2147483647;m:{if(!e){break m}b=l>>31;d=(b^l)-b|0;if(d>>>0<=(e>>>17^65535)>>>0){c=((d<<16)+(e>>>1|0)>>>0)/(e>>>0)|0;break m}b=d<<16;n=b+(e>>>1|0)|0;b=(d>>>16|0)+(b>>>0>n>>>0)|0;if(b>>>0>=e>>>0){break m}d=Q(b);i=32-d|0;b=n>>>i|b<>>0)/(e>>>0)|0;m=b-N(c,e)|0;b=n<>>31;m=d-(d>>>0>>0?0:e)|0;c=c<<1|d>>>0>=e>>>0;b=b<<1;i=i-1|0;if(i){continue}break}}c=(l|0)<0?0-c|0:c;H[h+16>>2]=c;if(g){b=2147483647;n:{if(!f){break n}d=j>>31;g=(d^j)-d|0;if(g>>>0<=(f>>>17^65535)>>>0){b=((g<<16)+(f>>>1|0)>>>0)/(f>>>0)|0;break n}d=g<<16;n=d+(f>>>1|0)|0;d=(g>>>16|0)+(d>>>0>n>>>0)|0;if(d>>>0>=f>>>0){break n}g=Q(d);i=32-g|0;d=n>>>i|d<>>0)/(f>>>0)|0;m=d-N(b,f)|0;e=n<>>31;m=d-(d>>>0>>0?0:f)|0;b=b<<1|d>>>0>=f>>>0;e=e<<1;i=i-1|0;if(i){continue}break}}b=(j|0)<0?0-b|0:b;H[h+20>>2]=b;if((o|0)!=3){break l}if((b|0)<=(c|0)){break c}break d}H[h+20>>2]=c;j=ic(l,f,e);b=c;break l}c=2147483647;o:{if(!f){break o}b=j>>31;d=(b^j)-b|0;if(d>>>0<=(f>>>17^65535)>>>0){c=((d<<16)+(f>>>1|0)>>>0)/(f>>>0)|0;break o}b=d<<16;g=b+(f>>>1|0)|0;b=(d>>>16|0)+(b>>>0>g>>>0)|0;if(b>>>0>=f>>>0){break o}d=Q(b);i=32-d|0;b=g>>>i|b<>>0)/(f>>>0)|0;m=b-N(c,f)|0;b=g<>>31;m=d-(d>>>0>>0?0:f)|0;c=c<<1|d>>>0>=f>>>0;b=b<<1;i=i-1|0;if(i){continue}break}}b=(j|0)<0?0-c|0:c;H[h+16>>2]=b;H[h+20>>2]=b;l=ic(j,e,f);c=b}if(!o){break a}break b}H[k>>2]=0;H[k+4>>2]=0;H[k+24>>2]=0;H[k+16>>2]=0;H[k+20>>2]=0;H[k+8>>2]=0;H[k+12>>2]=0;H[h+16>>2]=65536;H[h+20>>2]=65536;return}H[h+20>>2]=c;b=c;break b}H[h+16>>2]=b;c=b}d=(c|0)<0;g=J[a+68>>1];e=c;c=c>>31;c=(e^c)-c|0;p:{if(g+(c>>>8|0)>>>0<=8190){c=N(c,g)+32768>>>16|0;break p}c=N(g,c>>>16|0)+(N(g,c&65535)+32768>>>16|0)|0}l=d?0-c|0:c;c=b>>31;c=(c^b)-c|0;q:{if(g+(c>>>8|0)>>>0<=8190){c=N(c,g)+32768>>>16|0;break q}c=N(g,c>>>16|0)+(N(g,c&65535)+32768>>>16|0)|0}j=(b|0)<0?0-c|0:c}G[h+14>>1]=j+32>>>6;G[h+12>>1]=l+32>>>6;wC(a,k)}function cu(a,b){var c=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((b|0)<=1935833198){if((b|0)<=1751346272){J:{switch(b-1735618608|0){case 9:break z;case 8:break A;case 7:break B;case 6:break C;case 5:break D;case 4:break E;case 3:break F;case 2:break G;case 1:break H;case 0:break I;default:break J}}if((b|0)==1668311156){break y}if((b|0)!=1751216995){break a}return a+442|0}if((b|0)<=1751347821){switch(b-1751346273|0){case 1:case 2:break a;case 3:break w;case 0:break x;default:break v}}K:{switch(b-1751347822|0){case 1:case 2:case 3:case 4:break a;case 5:break t;case 0:break u;default:break K}}if((b|0)==1751413603){break s}if((b|0)!=1751934832){break a}return a+446|0}if((b|0)<=1970168942){if((b|0)<=1936750702){L:{switch(b-1935833199|0){case 1:case 2:case 3:break a;case 4:break q;case 0:break r;default:break L}}switch(b-1935833455|0){case 4:break o;case 0:break p;default:break a}}M:{switch(b-1936750703|0){case 1:case 2:case 3:break a;case 4:break m;case 0:break n;default:break M}}N:{switch(b-1936750959|0){case 1:case 2:case 3:break a;case 4:break k;case 0:break l;default:break N}}switch(b-1937011311|0){case 0:break j;case 4:break i;default:break a}}if((b|0)<=1986228845){O:{switch(b-1970168943|0){case 1:case 2:case 3:break a;case 4:break g;case 0:break h;default:break O}}if((b|0)==1986098019){break f}if((b|0)!=1986228070){break a}return a+318|0}if((b|0)<=1986815855){switch(b-1986228846|0){case 1:case 2:case 3:case 4:break a;case 5:break d;case 0:break e;default:break c}}if((b|0)==1986815856){break b}if((b|0)!=2020108148){break a}return a+460|0}if(J[a+562>>1]<2){break a}return H[a+564>>2]}if(J[a+562>>1]<3){break a}return H[a+564>>2]+4|0}if(J[a+562>>1]<4){break a}return H[a+564>>2]+8|0}if(J[a+562>>1]<5){break a}return H[a+564>>2]+12|0}if(J[a+562>>1]<6){break a}return H[a+564>>2]+16|0}if(J[a+562>>1]<7){break a}return H[a+564>>2]+20|0}if(J[a+562>>1]<8){break a}return H[a+564>>2]+24|0}if(J[a+562>>1]<9){break a}return H[a+564>>2]+28|0}if(J[a+562>>1]<10){break a}return H[a+564>>2]+32|0}if(J[a+562>>1]<11){break a}return H[a+564>>2]+36|0}return a+462|0}return a+448|0}return a+450|0}if((b|0)!=1751347046){break a}return a+238|0}return a+236|0}return a+234|0}return a+444|0}return a+386|0}return a+382|0}return a+388|0}return a+384|0}return a+394|0}return a+390|0}return a+396|0}return a+392|0}return a+400|0}return a+398|0}return a+484|0}return a+486|0}return a+300|0}return a+316|0}return a+314|0}if((b|0)!=1986294627){break a}return a+302|0}c=a+304|0}return c}function EV(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;d=xb-1072|0;xb=d;H[d+44>>2]=d+48;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;e=I[b+11|0];i=e<<24>>24<0;a:{b:{g=i?H[b+4>>2]:e;j=ad(436896);e=g+j|0;c:{if(e>>>0>=1073741808){H[197455]=0;ia(1640,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break c}X()}k=H[b>>2];d:{if(e>>>0<=1){F[d+11|0]=g;e=d;break d}H[197455]=0;h=e+4&-4;e=aa(899,h<<2)|0;f=H[197455];H[197455]=0;if((f|0)==1){break c}H[d>>2]=e;H[d+4>>2]=g;H[d+8>>2]=h|-2147483648}if(g){H[197455]=0;Mb(e,i?k:b,g);b=H[197455];H[197455]=0;if((b|0)==1){break b}}H[(g<<2)+e>>2]=0;H[197455]=0;ca(1759,d|0,436896,j|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break a}}a=$()|0;_()|0;if(F[d+11|0]<0){Kb(H[d>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}f=I[c+11|0];b=H[c>>2];e=H[c+4>>2];H[197455]=0;g=b;b=f<<24>>24<0;c=ca(1759,d|0,(b?g:c)|0,(b?e:f)|0)|0;b=H[197455];H[197455]=0;e:{f:{g:{h:{i:{j:{if((b|0)!=1){H[d+24>>2]=H[c+8>>2];b=H[c+4>>2];H[d+16>>2]=H[c>>2];H[d+20>>2]=b;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;c=da(1699,d+16|0,436904)|0;b=H[197455];H[197455]=0;if((b|0)==1){break j}H[d+40>>2]=H[c+8>>2];b=H[c+4>>2];H[d+32>>2]=H[c>>2];H[d+36>>2]=b;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+11|0]<0){Kb(H[d>>2])}f=F[d+43|0];b=0;H[d>>2]=0;k:{l:{c=(f|0)<0;e=c?H[d+32>>2]:d+32|0;if(e){c=c?H[d+36>>2]:f&255;if(c){break l}}H[d+44>>2]=0;break k}H[197455]=0;wa(3284,e|0,c|0,d+44|0,d|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break h}b=H[d>>2]}c=b;b=d+48|0;F[c+b|0]=0;H[197455]=0;c=aa(3285,b|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){if((c|0)==-1){break g}H[197455]=0;aa(3286,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break g}}c=$()|0;_()|0;break f}c=$()|0;_()|0;break i}c=$()|0;_()|0;if(F[d+27|0]>=0){break i}Kb(H[d+16>>2])}if(F[d+11|0]>=0){break e}Kb(H[d>>2]);ea(c|0);X()}c=$()|0;_()|0;break f}m:{f=ac(d+48|0);if(f>>>0>=4294967280){H[197455]=0;ia(3287,d+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break m}X()}n:{o:{if(f>>>0>=11){H[197455]=0;e=f+16&-16;b=aa(899,e|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break m}H[d+16>>2]=b;H[d+20>>2]=f;H[d+24>>2]=e|-2147483648;break o}F[d+27|0]=f;b=d+16|0;if(!f){break n}}Ob(b,d+48|0,f)}F[b+f|0]=0;h=H[d+16>>2];c=H[d+20>>2];f=I[d+27|0];H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;H[197455]=0;e=f<<24>>24;b=(e|0)<0;ga(3282,(b?h:d+16|0)|0,(b?c:f)|0,a|0);b=H[197455];H[197455]=0;if((b|0)==1){c=$()|0;_()|0;if(F[a+11|0]<0){Kb(H[a>>2])}if((e|0)>=0){break f}Kb(h);break f}if((e|0)<0){Kb(h)}if(F[d+43|0]<0){Kb(H[d+32>>2])}xb=d+1072|0;return}c=$()|0;_()|0}if(F[d+43|0]>=0){break e}Kb(H[d+32>>2])}ea(c|0);X()}function Sda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;z=xb-416|0;xb=z;u=H[a+332>>2];a=H[b+84>>2];b=z;while(1){p=H[a+224>>2];l=G[c+112>>1];g=H[a+96>>2];i=G[c+48>>1];s=H[a+160>>2];t=G[c+80>>1];h=H[a+32>>2];j=G[c+16>>1];m=N(G[c>>1],H[a>>2])<<13|1024;f=N(H[a+128>>2],G[c+64>>1]);o=N(H[a+192>>2],G[c+96>>1]);n=f-o|0;k=N(H[a+64>>2],G[c+32>>1]);H[b+192>>2]=m+N(n-k|0,11585)>>11;g=N(g,i);h=N(h,j);j=N(g+h|0,10832);q=m+N(n,793)|0;f=f+o|0;o=N(f,9465);v=q+(o+N(k,11249)|0)|0;i=N(s,t);s=N(i+h|0,9534);p=N(p,l);l=p+h|0;t=N(l,7682);r=(s+(j+N(h,-16549)|0)|0)+t|0;H[b+384>>2]=v-r>>11;H[b>>2]=r+v>>11;r=m+N(n,3989)|0;v=N(f,2592);x=r+(N(k,8672)-v|0)|0;y=N(g+i|0,-2773);w=y+(j+N(g,6859)|0)|0;j=N(g+p|0,-9534);w=w+j|0;H[b+352>>2]=x-w>>11;H[b+32>>2]=x+w>>11;o=q+(N(k,4108)-o|0)|0;q=s+(N(i,-12879)+y|0)|0;s=N(i+p|0,-5384);q=q+s|0;H[b+320>>2]=o-q>>11;H[b+64>>2]=o+q>>11;n=m+N(n,-7678)|0;f=N(f,3570);m=n+(N(k,-1396)-f|0)|0;j=s+(t+(j+N(p,18068)|0)|0)|0;H[b+288>>2]=m-j>>11;H[b+96>>2]=j+m>>11;n=n+(f+N(k,-6581)|0)|0;f=N(h,2611);h=N(l,2773)+N(i-g|0,7682)|0;g=(f+h|0)+N(g,-3818)|0;H[b+256>>2]=n-g>>11;H[b+128>>2]=g+n>>11;k=r+(v+N(k,-10258)|0)|0;g=(h+N(i,3150)|0)+N(p,-14273)|0;H[b+224>>2]=k-g>>11;H[b+160>>2]=g+k>>11;b=b+4|0;a=a+4|0;c=c+2|0;A=A+1|0;if((A|0)!=8){continue}break}b=u+128|0;n=0;a=z;while(1){g=H[a+12>>2];h=H[a+4>>2];f=N(g+h|0,10832);c=H[(n<<2)+d>>2]+e|0;p=H[a+28>>2];s=p+h|0;t=N(s,7682);i=H[a+20>>2];l=N(i+h|0,9534);o=t+(l+(f+N(h,-16549)|0)|0)|0;m=H[a+24>>2];j=H[a+16>>2];u=m+j|0;q=N(u,9465);k=H[a+8>>2];m=j-m|0;j=(H[a>>2]<<13)+131072|0;v=N(m,793)+j|0;r=(q+N(k,11249)|0)+v|0;F[c|0]=I[b+(o+r>>>18&1023)|0];F[c+12|0]=I[b+(r-o>>>18&1023)|0];o=N(g+p|0,-9534);r=f+N(g,6859)|0;f=N(g+i|0,-2773);r=o+(r+f|0)|0;y=j+N(m,3989)|0;x=N(u,2592);w=y+(N(k,8672)-x|0)|0;F[c+1|0]=I[b+(r+w>>>18&1023)|0];F[c+11|0]=I[b+(w-r>>>18&1023)|0];l=l+(f+N(i,-12879)|0)|0;f=N(i+p|0,-5384);l=l+f|0;q=v+(N(k,4108)-q|0)|0;F[c+2|0]=I[b+(l+q>>>18&1023)|0];F[c+10|0]=I[b+(q-l>>>18&1023)|0];f=f+(t+(o+N(p,18068)|0)|0)|0;l=j+N(m,-7678)|0;u=N(u,3570);t=l+(N(k,-1396)-u|0)|0;F[c+3|0]=I[b+(f+t>>>18&1023)|0];F[c+9|0]=I[b+(t-f>>>18&1023)|0];f=N(h,2611);h=N(s,2773)+N(i-g|0,7682)|0;g=(f+h|0)+N(g,-3818)|0;f=l+(u+N(k,-6581)|0)|0;F[c+4|0]=I[b+(g+f>>>18&1023)|0];F[c+8|0]=I[b+(f-g>>>18&1023)|0];g=(h+N(i,3150)|0)+N(p,-14273)|0;i=y+(x+N(k,-10258)|0)|0;F[c+5|0]=I[b+(g+i>>>18&1023)|0];F[c+7|0]=I[b+(i-g>>>18&1023)|0];F[c+6|0]=I[b+(j+N(m-k|0,11585)>>>18&1023)|0];a=a+32|0;n=n+1|0;if((n|0)!=13){continue}break}xb=z+416|0}function Xq(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;i=H[b+20>>2];d=H[b+16>>2];n=H[b+12>>2];h=H[b+8>>2];j=H[b+4>>2];f=H[b>>2];a:{if(!((n|0)<(h|0)|(j|0)<=(f|0)|(d|0)>(i|0))){l=d<<1;k=f;while(1){m=H[(k<<2)+a>>2];g=h;while(1){e=l+(m+(g<<6)|0)|0;c=d;while(1){if(J[e>>1]){H[b>>2]=k;break a}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o){continue}break}c=(g|0)!=(n|0);g=g+1|0;if(c){continue}break}c=(j|0)!=(k|0);k=k+1|0;if(c){continue}break}}k=f}b:{if(!((j|0)<=(k|0)|(h|0)>(n|0)|(d|0)>(i|0))){f=d<<1;l=j;while(1){m=H[(l<<2)+a>>2];g=h;while(1){e=f+(m+(g<<6)|0)|0;c=d;while(1){if(J[e>>1]){H[b+4>>2]=l;break b}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o){continue}break}c=(g|0)!=(n|0);g=g+1|0;if(c){continue}break}c=(k|0)<(l|0);l=l-1|0;if(c){continue}break}}l=j}c:{if(!((k|0)>(l|0)|(h|0)>=(n|0)|(d|0)>(i|0))){g=d<<1;j=h;while(1){f=k;while(1){e=g+(H[(f<<2)+a>>2]+(j<<6)|0)|0;c=d;while(1){if(J[e>>1]){H[b+8>>2]=j;break c}e=e+2|0;m=(c|0)!=(i|0);c=c+1|0;if(m){continue}break}c=(f|0)!=(l|0);f=f+1|0;if(c){continue}break}c=(j|0)!=(n|0);j=j+1|0;if(c){continue}break}}j=h}d:{if(!((k|0)>(l|0)|(j|0)>=(n|0)|(d|0)>(i|0))){f=d<<1;g=n;while(1){m=k;while(1){e=f+(H[(m<<2)+a>>2]+(g<<6)|0)|0;c=d;while(1){if(J[e>>1]){H[b+12>>2]=g;break d}e=e+2|0;h=(c|0)!=(i|0);c=c+1|0;if(h){continue}break}c=(l|0)!=(m|0);m=m+1|0;if(c){continue}break}c=(g|0)>(j|0);g=g-1|0;if(c){continue}break}}g=n}e:{if(!((k|0)>(l|0)|(d|0)>=(i|0)|(g|0)<(j|0))){n=j<<6;f=d;while(1){h=k;while(1){e=(n+H[(h<<2)+a>>2]|0)+(f<<1)|0;c=j;while(1){if(J[e>>1]){H[b+16>>2]=f;break e}e=e- -64|0;m=(c|0)!=(g|0);c=c+1|0;if(m){continue}break}c=(h|0)!=(l|0);h=h+1|0;if(c){continue}break}c=(f|0)!=(i|0);f=f+1|0;if(c){continue}break}}f=d}f:{if(!((k|0)>(l|0)|(f|0)>=(i|0)|(g|0)<(j|0))){n=j<<6;h=i;while(1){d=k;while(1){e=(n+H[(d<<2)+a>>2]|0)+(h<<1)|0;c=j;while(1){if(J[e>>1]){H[b+20>>2]=h;break f}e=e- -64|0;m=(c|0)!=(g|0);c=c+1|0;if(m){continue}break}c=(d|0)!=(l|0);d=d+1|0;if(c){continue}break}c=(f|0)<(h|0);h=h-1|0;if(c){continue}break}}h=i}c=N(g-j|0,12);d=N(c,c);c=l-k<<4;d=d+N(c,c)|0;n=h-f|0;c=n<<3;H[b+24>>2]=d+N(c,c);c=0;if(!((g|0)<(j|0)|(k|0)>(l|0))){o=n+1&3;while(1){if((f|0)<=(h|0)){p=H[(k<<2)+a>>2];m=j;while(1){i=(p+(m<<6)|0)+(f<<1)|0;d=0;e=f;if(o){while(1){e=e+1|0;c=(J[i>>1]!=0)+c|0;i=i+2|0;d=d+1|0;if((o|0)!=(d|0)){continue}break}}if(n>>>0>=3){while(1){c=((((J[i>>1]!=0)+c|0)+(J[i+2>>1]!=0)|0)+(J[i+4>>1]!=0)|0)+(J[i+6>>1]!=0)|0;i=i+8|0;d=e+3|0;e=e+4|0;if((d|0)!=(h|0)){continue}break}}d=(g|0)!=(m|0);m=m+1|0;if(d){continue}break}}d=(k|0)!=(l|0);k=k+1|0;if(d){continue}break}}H[b+28>>2]=c}function cy(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=xb-48|0;xb=i;A(+a);e=v(1)|0;d=v(0)|0;a:{b:{h=e;j=e&2147483647;c:{if(j>>>0<=1074752122){if((h&1048575)==598523){break c}if(j>>>0<=1073928572){if((e|0)>0|(e|0)>=0){a=a+-1.5707963267341256;c=a+-6.077100506506192e-11;M[b>>3]=c;M[b+8>>3]=a-c+-6.077100506506192e-11;d=1;break a}a=a+1.5707963267341256;c=a+6.077100506506192e-11;M[b>>3]=c;M[b+8>>3]=a-c+6.077100506506192e-11;d=-1;break a}if((e|0)>0|(e|0)>=0){a=a+-3.1415926534682512;c=a+-1.2154201013012384e-10;M[b>>3]=c;M[b+8>>3]=a-c+-1.2154201013012384e-10;d=2;break a}a=a+3.1415926534682512;c=a+1.2154201013012384e-10;M[b>>3]=c;M[b+8>>3]=a-c+1.2154201013012384e-10;d=-2;break a}if(j>>>0<=1075594811){if(j>>>0<=1075183036){if((j|0)==1074977148){break c}if((e|0)>0|(e|0)>=0){a=a+-4.712388980202377;c=a+-1.8231301519518578e-10;M[b>>3]=c;M[b+8>>3]=a-c+-1.8231301519518578e-10;d=3;break a}a=a+4.712388980202377;c=a+1.8231301519518578e-10;M[b>>3]=c;M[b+8>>3]=a-c+1.8231301519518578e-10;d=-3;break a}if((j|0)==1075388923){break c}if((e|0)>0|(e|0)>=0){a=a+-6.2831853069365025;c=a+-2.430840202602477e-10;M[b>>3]=c;M[b+8>>3]=a-c+-2.430840202602477e-10;d=4;break a}a=a+6.2831853069365025;c=a+2.430840202602477e-10;M[b>>3]=c;M[b+8>>3]=a-c+2.430840202602477e-10;d=-4;break a}if(j>>>0>1094263290){break b}}f=a*.6366197723675814+6755399441055744+-6755399441055744;c=a+f*-1.5707963267341256;g=f*6.077100506506192e-11;l=c-g;e=l<-.7853981633974483;if(P(f)<2147483648){d=~~f}else{d=-2147483648}d:{if(e){d=d-1|0;f=f+-1;g=f*6.077100506506192e-11;c=a+f*-1.5707963267341256;break d}if(!(l>.7853981633974483)){break d}d=d+1|0;f=f+1;g=f*6.077100506506192e-11;c=a+f*-1.5707963267341256}a=c-g;M[b>>3]=a;A(+a);h=v(1)|0;v(0)|0;e=j>>>20|0;e:{if((e-(h>>>20&2047)|0)<17){break e}g=c;a=f*6.077100506303966e-11;c=c-a;g=f*2.0222662487959506e-21-(g-c-a);a=c-g;M[b>>3]=a;h=e;A(+a);e=v(1)|0;v(0)|0;if((h-(e>>>20&2047)|0)<50){break e}g=c;a=f*2.0222662487111665e-21;c=c-a;g=f*8.4784276603689e-32-(g-c-a);a=c-g;M[b>>3]=a}M[b+8>>3]=c-a-g;break a}if(j>>>0>=2146435072){a=a-a;M[b>>3]=a;M[b+8>>3]=a;d=0;break a}x(0,d|0);x(1,e&1048575|1096810496);a=+z();d=0;h=1;while(1){k=(i+16|0)+(d<<3)|0;if(P(a)<2147483648){d=~~a}else{d=-2147483648}c=+(d|0);M[k>>3]=c;a=(a-c)*16777216;d=1;k=h&1;h=0;if(k){continue}break}M[i+32>>3]=a;f:{if(a!=0){h=3;break f}d=2;while(1){h=d;d=d-1|0;if(M[(i+16|0)+(d<<3)>>3]==0){continue}break}}d=dy(i+16|0,i,(j>>>20|0)-1046|0,h,1);a=M[i>>3];if((e|0)<0){M[b>>3]=-a;M[b+8>>3]=-M[i+8>>3];d=0-d|0;break a}M[b>>3]=a;M[b+8>>3]=M[i+8>>3]}xb=i+48|0;return d}function bca(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,J=0,K=0;F=xb-256|0;xb=F;g=a;while(1){a:{i=g;d=H[(k<<2)+b>>2]+c|0;n=I[d+9|0];o=I[d+6|0];e=n+o|0;q=I[d+14|0];l=I[d+1|0];h=q+l|0;f=e+h|0;j=I[d+10|0];m=I[d+5|0];p=j+m|0;s=I[d+13|0];t=I[d+2|0];r=s+t|0;u=p+r|0;v=I[d+8|0];w=I[d+7|0];x=v+w|0;y=I[d+15|0];z=I[d|0];A=y+z|0;B=x+A|0;C=I[d+11|0];D=I[d+4|0];E=C+D|0;G=I[d+3|0];J=I[d+12|0];d=G+J|0;K=E+d|0;H[g+16>>2]=(N(f-u|0,4433)+N(B-K|0,10703)|0)+1024>>11;H[g>>2]=(B+(f+(u+K|0)|0)<<2)+-8192;f=A-x|0;p=r-p|0;r=d-E|0;e=h-e|0;d=(N(f-p|0,11363)+N(r-e|0,2260)|0)+1024|0;H[g+24>>2]=(d+N(r,-8697)|0)+N(f,-1730)>>11;H[g+8>>2]=(d+N(p,17799)|0)+N(e,11893)>>11;d=m-j|0;e=D-C|0;h=G-J|0;f=t-s|0;j=(N(d-e|0,3363)+N(h+f|0,-11086)|0)+1024|0;n=o-n|0;o=l-q|0;q=N(n+e|0,-10217)+N(o+h|0,-5461)|0;p=q+((j+N(h,8728)|0)+N(e,17760)|0)|0;l=e;e=w-v|0;m=h;h=z-y|0;l=N(l-e|0,7350)+N(m+h|0,8956)|0;H[g+28>>2]=p+l>>11;m=(j+N(f,-9222)|0)+N(d,10055)|0;j=N(n-d|0,11529)+N(f+o|0,1136)|0;d=N(d+e|0,5461)+N(f+h|0,10217)|0;H[g+20>>2]=(m+j|0)+d>>11;f=N(n-e|0,3363)+N(h+o|0,11086)|0;H[g+12>>2]=(f+(j+((q+N(o,589)|0)+N(n,-13631)|0)|0)|0)+1024>>11;H[g+4>>2]=(d+(l+((f+N(h,-18730)|0)+N(e,6387)|0)|0)|0)+1024>>11;e=k-7|0;k=k+1|0;d=7;g=F;b:{switch(e|0){case 0:continue;case 8:break a;default:break b}}g=i+32|0;continue}break}while(1){e=H[g+32>>2];h=H[a+192>>2];b=e+h|0;n=H[g+192>>2];o=H[a+32>>2];c=n+o|0;i=b+c|0;k=H[g+64>>2];f=H[a+160>>2];j=k+f|0;q=H[g+160>>2];l=H[a+64>>2];m=q+l|0;p=j+m|0;s=H[g>>2];t=H[a+224>>2];r=s+t|0;u=H[g+224>>2];v=H[a>>2];w=u+v|0;x=r+w|0;y=H[g+96>>2];z=H[a+128>>2];A=y+z|0;B=H[g+128>>2];C=H[a+96>>2];D=B+C|0;E=A+D|0;H[a+128>>2]=(N(i-p|0,4433)+N(x-E|0,10703)|0)+65536>>17;H[a>>2]=(x+(i+(p+E|0)|0)|0)+8>>4;i=w-r|0;j=m-j|0;m=D-A|0;c=c-b|0;b=(N(i-j|0,11363)+N(m-c|0,2260)|0)+65536|0;H[a+192>>2]=(b+N(m,-8697)|0)+N(i,-1730)>>17;H[a+64>>2]=(b+N(j,17799)|0)+N(c,11893)>>17;b=f-k|0;c=z-y|0;i=C-B|0;k=l-q|0;f=(N(b-c|0,3363)+N(i+k|0,-11086)|0)+65536|0;e=h-e|0;h=o-n|0;n=N(e+c|0,-10217)+N(h+i|0,-5461)|0;j=n+((f+N(i,8728)|0)+N(c,17760)|0)|0;l=c;c=t-s|0;m=i;i=v-u|0;o=N(l-c|0,7350)+N(m+i|0,8956)|0;H[a+224>>2]=j+o>>17;l=(f+N(k,-9222)|0)+N(b,10055)|0;f=N(e-b|0,11529)+N(h+k|0,1136)|0;b=N(b+c|0,5461)+N(i+k|0,10217)|0;H[a+160>>2]=(l+f|0)+b>>17;k=N(e-c|0,3363)+N(h+i|0,11086)|0;H[a+96>>2]=(k+(f+((n+N(h,589)|0)+N(e,-13631)|0)|0)|0)+65536>>17;H[a+32>>2]=(b+(o+((k+N(i,-18730)|0)+N(c,6387)|0)|0)|0)+65536>>17;b=d;d=d-1|0;g=g+4|0;a=a+4|0;if(b){continue}break}xb=F+256|0}function Pr(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;m=N(b,c)+a|0;if(b>>>0>=10){n=0-c|0;while(1){j=a+c|0;f=N(b>>>1|0,c)+a|0;h=(zb[d|0](j,f)|0)>0;e=h?j:f;k=N(b-1|0,c);l=k+a|0;g=n+l|0;if((zb[d|0](e,g)|0)>0){b=h?f:j;e=(zb[d|0](b,g)|0)>0?b:g}if(!((e|0)==(l|0)|(c|0)<=0)){h=c+e|0;b=l;while(1){g=I[e|0];F[e|0]=I[b|0];F[b|0]=g;b=b+1|0;e=e+1|0;if(h>>>0>e>>>0){continue}break}}h=l;f=h;i=a;g=a;a:{if((k|0)<=0){i=0;break a}while(1){b:{if(g>>>0>=f>>>0){break b}c:{o=(c|0)<=0;if(!o){while(1){b=zb[d|0](g,l)|0;if((b|0)>0){break c}if(!b){if(g>>>0>i>>>0){k=c+i|0;e=i;b=g;while(1){j=I[e|0];F[e|0]=I[b|0];F[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0){continue}break}}i=c+i|0}g=c+g|0;if(f>>>0>g>>>0){continue}break b}}while(1){b=zb[d|0](g,l)|0;if((b|0)>0){break c}i=b?i:c+i|0;g=c+g|0;if(f>>>0>g>>>0){continue}break}break b}d:{if(g>>>0>=f>>>0){break d}while(1){k=f;e:{f:{f=f+n|0;b=zb[d|0](f,l)|0;if(!b){j=h+n|0;if(h>>>0<=k>>>0){break f}e=f;b=j;if(o){break f}while(1){h=I[e|0];F[e|0]=I[b|0];F[b|0]=h;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0){continue}break}break f}if((b|0)>=0){break e}if(!(o|g>>>0>=f>>>0)){k=c+g|0;e=g;b=f;while(1){j=I[e|0];F[e|0]=I[b|0];F[b|0]=j;b=b+1|0;e=e+1|0;if(k>>>0>e>>>0){continue}break}}g=c+g|0;break d}h=j}if(g>>>0>>0){continue}break}}if(g>>>0>>0){continue}}break}k=f-i|0;g:{if((a|0)==(i|0)|(f|0)==(i|0)){break g}b=i-a|0;if(b>>>0>k>>>0){if((k|0)<=0){break g}j=a+k|0;e=a+b|0;b=a;while(1){g=I[b|0];F[b|0]=I[e|0];F[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0){continue}break}break g}if((b|0)<=0){break g}j=a+b|0;e=a+k|0;b=a;while(1){g=I[b|0];F[b|0]=I[e|0];F[e|0]=g;e=e+1|0;b=b+1|0;if(j>>>0>b>>>0){continue}break}}i=h-f|0;if((f|0)==(h|0)|(h|0)==(m|0)){break a}b=m-h|0;if(b>>>0>>0){if((b|0)<=0){break a}g=b+f|0;e=f+i|0;while(1){b=I[f|0];F[f|0]=I[e|0];F[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0){continue}break}break a}if((i|0)<=0){break a}g=f+i|0;e=b+f|0;while(1){b=I[f|0];F[f|0]=I[e|0];F[e|0]=b;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0){continue}break}}Pr(a,(k>>>0)/(c>>>0)|0,c,d);a=m-i|0;b=(i>>>0)/(c>>>0)|0;m=a+N(c,b)|0;if(b>>>0>=10){continue}break}}h=a+c|0;h:{if(m>>>0<=h>>>0){break h}l=0-c|0;if((c|0)>0){while(1){g=h;i:{if(g>>>0<=a>>>0){break i}while(1){f=g+l|0;if((zb[d|0](f,g)|0)<=0){break i}e=f;b=g;while(1){j=I[e|0];F[e|0]=I[b|0];F[b|0]=j;b=b+1|0;e=e+1|0;if(g>>>0>e>>>0){continue}break}g=f;if(f>>>0>a>>>0){continue}break}}h=c+h|0;if(m>>>0>h>>>0){continue}break h}}while(1){e=h;j:{if(e>>>0<=a>>>0){break j}while(1){b=e+l|0;if((zb[d|0](b,e)|0)<=0){break j}e=b;if(b>>>0>a>>>0){continue}break}}h=c+h|0;if(m>>>0>h>>>0){continue}break}}}function CG(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;c=xb+-64|0;xb=c;e=H[a+24>>2];d=e-4|0;if(e>>>0<=3){F[a+20|0]=1}g=H[a+32>>2];a:{if(g>>>0<=d>>>0){d=H[40909];h=H[40908];H[196248]=h;H[196249]=d;x(0,h|0);x(1,d|0);l=+z();break a}l=M[H[a+36>>2]+(d<<3)>>3]}if(e>>>0<=2){F[a+20|0]=1}d=e-3|0;b:{if(d>>>0>=g>>>0){d=H[40909];h=H[40908];H[196248]=h;H[196249]=d;x(0,h|0);x(1,d|0);m=+z();break b}m=M[H[a+36>>2]+(d<<3)>>3]}h=H[b+40>>2];if(e>>>0<=1){F[a+20|0]=1}d=e-2|0;c:{if(d>>>0>=g>>>0){d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);f=+z();break c}f=M[H[a+36>>2]+(d<<3)>>3]}d:{if(P(f)<2147483648){d=~~f;break d}d=-2147483648}g=0;e:{if(d>>>0<=255){g=I[d+108816|0];n=H[h+52>>2];if((n|0)!=163632){g=ql(n,g,H[h+216>>2]);h=H[b+40>>2];d=H[a+24>>2];break e}g=d>>>0<229?H[h+172>>2]?0:g:0}d=e}e=e-1|0;if(d>>>0<=e>>>0){F[a+20|0]=1}f:{if(e>>>0>=K[a+32>>2]){e=H[40909];d=H[40908];H[196248]=d;H[196249]=e;x(0,d|0);x(1,e|0);f=+z();break f}f=M[H[a+36>>2]+(e<<3)>>3]}g:{if(P(f)<2147483648){d=~~f;break g}d=-2147483648}e=0;h:{if(d>>>0>255){break h}e=I[d+108816|0];n=H[h+52>>2];if((n|0)!=163632){e=ql(n,e,H[h+216>>2]);break h}e=d>>>0<229?H[h+172>>2]?0:e:0}H[c+56>>2]=0;H[c+60>>2]=0;H[c+48>>2]=0;H[c+52>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;i:{j:{if(I[a+160|0]|(!e|!g)){break j}if(!Rn(H[b+40>>2],g,c+32|0,1)){break j}if(!Rn(H[b+40>>2],e,c,1)){break j}a=b+8|0;k:{l:{o=M[b+24>>3];p=M[b+8>>3];if(o>p){q=M[b+32>>3];r=M[b+16>>3];if(q>r){break l}}e=H[c+36>>2];H[a>>2]=H[c+32>>2];H[a+4>>2]=e;e=H[c+60>>2];H[a+24>>2]=H[c+56>>2];H[a+28>>2]=e;e=H[c+52>>2];H[a+16>>2]=H[c+48>>2];H[a+20>>2]=e;e=H[c+44>>2];H[a+8>>2]=H[c+40>>2];H[a+12>>2]=e;break k}f=M[c+48>>3];i=M[c+32>>3];if(!(f>i)){break k}j=M[c+56>>3];k=M[c+40>>3];if(!(j>k)){break k}if(i>3]=i}if(f>o){M[b+24>>3]=f}if(k>3]=k}if(!(j>q)){break k}M[b+32>>3]=j}j=M[c+16>>3];k=M[c>>3];f=M[c+24>>3];i=M[c+8>>3];if(!(!(j>k)|!(f>i))){f=m+f;M[c+24>>3]=f;j=l+j;M[c+16>>3]=j;i=m+i;M[c+8>>3]=i;k=l+k;M[c>>3]=k}m:{l=M[b+24>>3];m=M[b+8>>3];if(l>m){o=M[b+32>>3];p=M[b+16>>3];if(o>p){break m}}b=H[c+4>>2];H[a>>2]=H[c>>2];H[a+4>>2]=b;b=H[c+28>>2];H[a+24>>2]=H[c+24>>2];H[a+28>>2]=b;b=H[c+20>>2];H[a+16>>2]=H[c+16>>2];H[a+20>>2]=b;b=H[c+12>>2];H[a+8>>2]=H[c+8>>2];H[a+12>>2]=b;break i}if(!(j>k)|!(f>i)){break i}if(k>3]=k}if(j>l){M[b+24>>3]=j}if(i>3]=i}if(!(f>o)){break i}M[b+32>>3]=f;break i}F[a+40|0]=1}xb=c- -64|0}function xJ(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;e=xb-1568|0;xb=e;g=H[a+4>>2];F[e+47|0]=0;h=H[H[g+492>>2]+12>>2];a:{if(!(H[H[g+128>>2]+52>>2]|K[g+16>>2]>c>>>0)){f=6;break a}d=d&1024?d|3:d;b:{if(b){H[a+164>>2]=H[b+16>>2];f=H[b+20>>2];break b}H[a+164>>2]=65536;f=65536}H[a+108>>2]=0;H[a+72>>2]=1869968492;H[a+168>>2]=f;j=d&1;F[a+161|0]=!j;f=!(d&3);F[a+160|0]=f;f=zb[H[h>>2]](e+48|0,g,b,a,H[g+424>>2],H[g+532>>2],f,d>>>16&15,109)|0;if(f){break a}i=d&1024;F[e+117|0]=i>>>10;H[e+1412>>2]=H[g+404>>2];H[e+1416>>2]=H[g+408>>2];H[e+1420>>2]=H[g+412>>2];H[e+1424>>2]=H[g+416>>2];H[e+1544>>2]=H[g+548>>2];H[e+1548>>2]=H[g+544>>2];f=$j(e+48|0,c,e+16|0,e+47|0);if(!f){k=I[a+160|0];c=e+1436|0;f=H[c+4>>2];H[e+32>>2]=H[c>>2];H[e+36>>2]=f;c=H[e+1432>>2];H[e+24>>2]=H[e+1428>>2];H[e+28>>2]=c;c=H[e+1448>>2];f=H[e+1444>>2];zb[H[h+4>>2]](e+48|0);H[a+124>>2]=H[a+124>>2]&1|4;c:{if(i){b=H[a+156>>2];d=H[e+80>>2];H[a+32>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=H[e+88>>2];H[a+40>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=H[e+36>>2];H[b+20>>2]=H[e+32>>2];H[b+24>>2]=d;d=H[e+28>>2];H[b+12>>2]=H[e+24>>2];H[b+16>>2]=d;H[b+32>>2]=c;H[b+28>>2]=f;F[b+8|0]=1;break c}h=H[e+88>>2];H[a+40>>2]=(((h>>31)+h|0)+32768&-65536)>>16;h=H[e+88>>2];H[a+56>>2]=(((h>>31)+h|0)+32768&-65536)>>16;F[H[a+156>>2]+8|0]=0;i=d&16;d:{if(i){d=H[g+476>>2]-H[g+468>>2]>>16;H[a+52>>2]=d;break d}d=H[e+92>>2];H[a+52>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=H[e+92>>2];d=(((d>>31)+d|0)+32768&-65536)>>16}H[a+72>>2]=1869968492;H[a+60>>2]=d;if(!(!b|J[b+14>>1]>23)){H[a+124>>2]=H[a+124>>2]|256}h=a+108|0;e:{if(!(H[e+28>>2]|(H[e+24>>2]!=65536|H[e+36>>2]!=65536))){if(!H[e+32>>2]){break e}}Wg(h,e+24|0);l=a,m=Rb(H[a+40>>2],H[e+24>>2]),H[l+40>>2]=m;l=a,m=Rb(H[a+52>>2],H[e+36>>2]),H[l+52>>2]=m}if(c|f){je(h,f,c);H[a+40>>2]=f+H[a+40>>2];H[a+52>>2]=c+H[a+52>>2]}if(!(I[e+47|0]?0:j)){c=H[a+168>>2];f=H[a+164>>2];f:{if(H[e+120>>2]?k:0){break f}b=H[e+64>>2];d=G[b+2>>1];if((d|0)<=0){break f}d=d&65535;b=H[b+4>>2];while(1){l=b,m=Rb(H[b>>2],f),H[l>>2]=m;l=b,m=Rb(H[b+4>>2],c),H[l+4>>2]=m;b=b+8|0;j=d>>>0>1;d=d-1|0;if(j){continue}break}}l=a,m=Rb(H[a+40>>2],f),H[l+40>>2]=m;l=a,m=Rb(H[a+52>>2],c),H[l+52>>2]=m}Nh(h,e);b=H[e>>2];H[a+24>>2]=H[e+8>>2]-b;c=H[e+4>>2];d=H[e+12>>2];H[a+36>>2]=d;H[a+32>>2]=b;H[a+28>>2]=d-c;if(!i){break c}Fj(a+24|0,H[a+52>>2])}H[a+136>>2]=H[e+16>>2];H[a+140>>2]=H[e+20>>2];f=0;b=H[H[g+128>>2]+52>>2];if(!b){break a}zb[H[H[b>>2]+4>>2]](H[b+4>>2],e+16|0);H[a+136>>2]=0;H[a+140>>2]=0;break a}zb[H[h+4>>2]](e+48|0)}xb=e+1568|0;return f|0}function Qu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{switch(H[a+92>>2]){case 0:f=H[a+64>>2];if((f|0)<(c|0)){j:{if(H[a+84>>2]){e=H[a+36>>2];break j}e=H[a+36>>2];H[a+84>>2]=e;H[a+80>>2]=e;e=e+32|0;H[a+36>>2]=e}if(K[a+32>>2]>e>>>0){g=H[a+4>>2];i=H[a+8>>2];d=H[a+80>>2];H[d+16>>2]=0;H[d+20>>2]=0;H[d+8>>2]=e;H[d+28>>2]=0;H[d+4>>2]=0;G[d+12>>1]=I[a+164|0]|((i|0)>(((f+g|0)-1&0-g)-f|0)?8:40);if(!H[a+88>>2]){H[a+88>>2]=d}break f}break a}if((c|0)>=(f|0)){break c}k:{if(H[a+84>>2]){e=H[a+36>>2];break k}e=H[a+36>>2];H[a+84>>2]=e;H[a+80>>2]=e;e=e+32|0;H[a+36>>2]=e}if(K[a+32>>2]>e>>>0){g=H[a+4>>2];i=H[a+8>>2];d=H[a+80>>2];H[d+16>>2]=0;H[d+20>>2]=0;H[d+8>>2]=e;H[d+28>>2]=0;H[d+4>>2]=0;e=I[a+164|0];G[d+12>>1]=(i|0)>(f&g-1)?e:e|16;if(!H[a+88>>2]){H[a+88>>2]=d}break h}break a;case 2:break g;case 1:break i;default:break c}}d=H[a+64>>2];if((d|0)<=(c|0)){break e}f=H[a+36>>2];e=H[a+80>>2];h=H[e+8>>2];j=f-h|0;if((j|0)<0){H[a+40>>2]=99;return 1}g=H[a+4>>2]-1&d;i=H[a+8>>2];l:{if((f|0)==(h|0)){d=f;break l}H[e+16>>2]=j>>2;if((g|0)>=(i|0)){d=J[e+12>>1];G[e+12>>1]=(d&8?16:32)|d}H[a+80>>2]=f;d=f+32|0;H[a+36>>2]=d;H[f+8>>2]=d;H[f+16>>2]=0;H[e+28>>2]=f;G[a+76>>1]=J[a+76>>1]+1;e=f}h=H[a+32>>2];if(h>>>0<=d>>>0){break a}F[a+79|0]=0;if(!H[a+84>>2]){H[a+84>>2]=d;H[a+80>>2]=d;f=d+32|0;H[a+36>>2]=f;e=d;d=f}if(d>>>0>=h>>>0){break a}H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=d;H[e+28>>2]=0;H[e+4>>2]=0;d=I[a+164|0];G[e+12>>1]=(g|0)<(i|0)?d:d|16;if(!H[a+88>>2]){H[a+88>>2]=e}}F[a+78|0]=1;H[a+92>>2]=2;F[a+79|0]=0;d=H[a+64>>2];break d}d=H[a+64>>2];if((d|0)>=(c|0)){break d}f=H[a+36>>2];e=H[a+80>>2];h=H[e+8>>2];j=f-h|0;if((j|0)<0){H[a+40>>2]=99;return 1}g=H[a+4>>2];g=((g+d|0)-1&0-g)-d|0;i=H[a+8>>2];m:{if((f|0)==(h|0)){d=f;break m}H[e+16>>2]=j>>2;if((g|0)>=(i|0)){d=J[e+12>>1];G[e+12>>1]=(d&8?16:32)|d}H[a+80>>2]=f;d=f+32|0;H[a+36>>2]=d;H[f+8>>2]=d;H[f+16>>2]=0;H[e+28>>2]=f;G[a+76>>1]=J[a+76>>1]+1;e=f}h=H[a+32>>2];if(h>>>0<=d>>>0){break a}F[a+79|0]=0;if(!H[a+84>>2]){H[a+84>>2]=d;H[a+80>>2]=d;f=d+32|0;H[a+36>>2]=f;e=d;d=f}if(d>>>0>=h>>>0){break a}H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=d;H[e+28>>2]=0;H[e+4>>2]=0;G[e+12>>1]=I[a+164|0]|((g|0)<(i|0)?8:40);if(!H[a+88>>2]){H[a+88>>2]=e}}F[a+78|0]=1;H[a+92>>2]=1;F[a+79|0]=0;d=H[a+64>>2]}f=1;if(Ou(a,H[a+60>>2],d,b,c,H[a+68>>2],H[a+72>>2])){break b}break c}e=I[a+78|0];d=Ou(a,H[a+60>>2],0-d|0,b,0-c|0,0-H[a+72>>2]|0,0-H[a+68>>2]|0);if(!(I[a+78|0]|!e)){e=H[a+80>>2];H[e+20>>2]=0-H[e+20>>2]}f=1;if(d){break b}}H[a+64>>2]=c;H[a+60>>2]=b;f=0}return f}H[a+40>>2]=98;return 1}function bS(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=xb-16|0;xb=j;m=jp(g);p=Yo(g);g=p;zb[H[H[g>>2]+20>>2]](j,g);H[f>>2]=d;a:{b:{c:{i=a;g=I[i|0];switch(g-43|0){case 0:case 2:break c;default:break b}}H[197455]=0;g=da(3343,m|0,g<<24>>24)|0;i=H[197455];H[197455]=0;if((i|0)==1){break a}i=H[f>>2];H[f>>2]=i+4;H[i>>2]=g;i=a+1|0}d:{g=i;if(!((c-g|0)<=1|I[g|0]!=48|(I[g+1|0]|32)!=120)){H[197455]=0;g=da(3343,m|0,48)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=H[f>>2];H[f>>2]=h+4;H[h>>2]=g;g=F[i+1|0];H[197455]=0;g=da(3343,m|0,g|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=H[f>>2];H[f>>2]=h+4;H[h>>2]=g;i=i+2|0;g=i;while(1){if(c>>>0<=g>>>0){break d}h=F[g|0];H[197455]=0;va(3442)|0;k=H[197455];H[197455]=0;e:{if((k|0)==1){break e}H[197455]=0;k=H[197455];H[197455]=0;if((k|0)==1){break e}if(!(h-48>>>0<10|(h|32)-97>>>0<6)){break d}g=g+1|0;continue}break}break a}while(1){if(c>>>0<=g>>>0){break d}h=F[g|0];H[197455]=0;va(3442)|0;k=H[197455];H[197455]=0;if((k|0)==1){break a}H[197455]=0;k=H[197455];H[197455]=0;if((k|0)==1){break a}if(h-48>>>0>=10){break d}g=g+1|0;continue}}f:{if(I[j+11|0]>>>7|0){l=H[j+4>>2]}else{l=I[j+11|0]}if(!l){h=H[f>>2];H[197455]=0;la(3458,m|0,i|0,g|0,h|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}H[f>>2]=H[f>>2]+(g-i<<2);break f}H[197455]=0;lh(i,g);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[197455]=0;q=aa(3455,p|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=0;k=i;while(1){if(g>>>0<=k>>>0){h=H[f>>2];H[197455]=0;nk((i-a<<2)+d|0,h);i=H[197455];H[197455]=0;if((i|0)!=1){break f}break a}if(I[j+11|0]>>>7|0){l=H[j>>2]}else{l=j}o=F[l+h|0]!=(n|0);if(I[j+11|0]>>>7|0){l=H[j>>2]}else{l=j}if(!(o|F[l+h|0]<=0)){n=H[f>>2];H[f>>2]=n+4;H[n>>2]=q;if(I[j+11|0]>>>7|0){l=H[j+4>>2]}else{l=I[j+11|0]}h=(l-1>>>0>h>>>0)+h|0;n=0}l=F[k|0];H[197455]=0;l=da(3343,m|0,l|0)|0;o=H[197455];H[197455]=0;if((o|0)!=1){o=H[f>>2];H[f>>2]=o+4;H[o>>2]=l;k=k+1|0;n=n+1|0;continue}break}break a}g:{while(1){if(c>>>0>g>>>0){i=I[g|0];if((i|0)==46){H[197455]=0;i=aa(3459,p|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=H[f>>2];k=h+4|0;H[f>>2]=k;H[h>>2]=i;g=g+1|0;break g}H[197455]=0;i=da(3343,m|0,i<<24>>24)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=H[f>>2];H[f>>2]=h+4;H[h>>2]=i;g=g+1|0;continue}break}k=H[f>>2]}H[197455]=0;la(3458,m|0,g|0,c|0,k|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break a}i=f;f=H[f>>2]+(c-g<<2)|0;H[i>>2]=f;H[e>>2]=(b|0)==(c|0)?f:(b-a<<2)+d|0;_b(j);xb=j+16|0;return}a=$()|0;_()|0;_b(j);ea(a|0);X()}function eC(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;i=xb-16|0;xb=i;a:{b:{c:{d:{e:{d=H[a+708>>2];switch(d|0){case 0:break c;case 1:break e;default:break d}}mc(a,c);break b}d=d-1|0;H[a+708>>2]=d;if((d|0)!=1){break c}Xb(a,267193);mc(a,c);break b}d=H[a+200>>2];if(!(d&1)){break a}if(d&4){Xb(a,267251);mc(a,c);break b}cc(a,H[a+740>>2]);d=Rd(a,c+1|0);H[a+740>>2]=d;vd(a,d,c);xc(a,d,c);d=mc(a,0);e=H[a+740>>2];if(d){cc(a,e);H[a+740>>2]=0;break b}F[c+e|0]=0;g=H[a+740>>2];e=g;while(1){d=e;e=d+1|0;if(I[d|0]){continue}break}if(!((c+g|0)-2>>>0>=e>>>0&c>>>0>=2)){cc(a,g);H[a+740>>2]=0;Xb(a,267275);break b}k=I[d+1|0];F[i+4|0]=k;e=d+2|0;d=(g-e|0)+c|0;c=(k|0)==8?6:10;h=(d>>>0)/(c>>>0)|0;if((d|0)!=(N(c,h)|0)){cc(a,g);H[a+740>>2]=0;Xb(a,267296);break b}if(h>>>0>=429496730){Xb(a,267322);break b}H[i+12>>2]=h;g=xd(a,N(h,10));H[i+8>>2]=g;f:{g:{if(g){if(c>>>0>d>>>0){break f}if((k|0)!=8){break g}while(1){c=g+N(f,10)|0;G[c>>1]=I[e|0];G[c+2>>1]=I[e+1|0];G[c+4>>1]=I[e+2|0];G[c+6>>1]=I[e+3|0];d=c;c=I[e+4|0]|I[e+5|0]<<8;G[d+8>>1]=c<<8|c>>>8;e=e+6|0;f=f+1|0;if((h|0)!=(f|0)){continue}break}break f}Xb(a,267342);break b}while(1){d=g+N(f,10)|0;c=I[e|0]|I[e+1|0]<<8;G[d>>1]=c<<8|c>>>8;c=I[e+2|0]|I[e+3|0]<<8;G[d+2>>1]=c<<8|c>>>8;c=I[e+4|0]|I[e+5|0]<<8;G[d+4>>1]=c<<8|c>>>8;c=I[e+6|0]|I[e+7|0]<<8;G[d+6>>1]=c<<8|c>>>8;c=I[e+8|0]|I[e+9|0]<<8;G[d+8>>1]=c<<8|c>>>8;e=e+10|0;f=f+1|0;if((h|0)!=(f|0)){continue}break}}H[i>>2]=H[a+740>>2];e=xb-80|0;xb=e;h:{if(!a|!b){break h}i:{c=H[b+216>>2];j:{if((c|0)==2147483647){break j}c=c+1|0;if(c>>>0>268435454){break j}c=xd(a,c<<4);if(c){break i}}Xb(a,266321);break h}d=c;c=H[b+212>>2];g=Ob(d,c,H[b+216>>2]<<4);cc(a,c);H[b+212>>2]=0;while(1){l=(n<<4)+i|0;h=H[l>>2];k:{if(!h){F[e|0]=0;Xb(a,266414);break k}k=H[b+216>>2];f=1;m=0;d=e;j=I[h|0];l:{if(!j){c=1;break l}while(1){h=h+1|0;m:{n:{if(j>>>0>160){c=0;break n}c=0;if((j-33&255)>>>0<94){break n}c=1;if(f){break m}j=32}F[d|0]=j;m=m+1|0;d=d+1|0}j=I[h|0];if(!j){break l}f=c;if(m>>>0<79){continue}break}}c=(m|0)!=0&c;F[d-c|0]=0;c=m-c|0;if(!c){Xb(a,266414);break k}f=((k<<4)+g|0)+(o<<4)|0;c=c+1|0;d=xd(a,c);H[f>>2]=d;if(!d){Xb(a,266476);break k}c=Ob(d,e,c);d=xd(a,N(H[l+12>>2],10));H[f+8>>2]=d;if(!d){Xb(a,266476);cc(a,c);H[f>>2]=0;break k}c=H[l+12>>2];Ob(d,H[l+8>>2],N(c,10));H[f+12>>2]=c;F[f+4|0]=I[l+4|0];o=o+1|0}n=n+1|0;if((n|0)!=1){continue}break}H[b+216>>2]=o;H[b+212>>2]=g;H[b+8>>2]=H[b+8>>2]|8192;H[b+184>>2]=H[b+184>>2]|32}xb=e+80|0;cc(a,H[a+740>>2]);H[a+740>>2]=0;cc(a,H[i+8>>2])}xb=i+16|0;return}hc(a,267226);X()}function Gy(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;p=xb-16|0;xb=p;e=xi(a,d);a:{if(e){break a}Jk(a,b,c,d);q=H[a>>2];h=H[a+2748>>2];c=H[H[h>>2]+8>>2];b=N(d,1348)+a|0;i=b;H[b+56>>2]=0;e=0;e=(d|0)==1?I[H[(c<<2)+16352>>2]+12|0]:e;m=b+44|0;f=H[m>>2];c=H[b+52>>2];g=H[(d?12:4)+a>>2];if(!d){k=dc(64,H[a+12>>2])}u=dc(32,g);b=Rb(H[((h+44|0)+N(d,9804)|0)+204>>2],g);l=dc((b|0)<16?b:16,g);if((f|0)>0){n=N(f,44)+c|0;v=N(k,3);o=(N(d,1348)+a|0)- -64|0;w=e&255;b=c;while(1){e=G[b+10>>1];b:{if((e|0)<(k|0)|G[b+4>>1]>(u|0)){break b}j=I[b+1|0];if((j|0)==4|(e<<1<(v|0)?H[b+24>>2]:0)){break b}c:{s=H[i+56>>2];d:{if((s|0)<=0){h=G[b+2>>1];break d}h=G[b+2>>1];x=H[o>>2];e=0;while(1){f=N(e,44)+x|0;t=h-G[f>>1]|0;r=t>>31;if((j|0)==I[f+13|0]&(l|0)>((r^t)-r|0)){break c}e=e+1|0;if((s|0)!=(e|0)){continue}break}}e=jv(m,h,j<<24>>24,w,q,p+12|0);if(e){break a}e=H[p+12>>2];H[e+40>>2]=b;H[e+36>>2]=b;H[e>>2]=0;H[e+4>>2]=0;H[e+32>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;F[e+13|0]=I[b+1|0];f=G[b+2>>1];G[e>>1]=f;f=Rb(f,g);H[e+8>>2]=f;H[e+4>>2]=f;H[b+16>>2]=b;break b}H[b+16>>2]=H[f+36>>2];H[H[f+40>>2]+16>>2]=b;H[f+40>>2]=b}b=b+44|0;if(n>>>0>b>>>0){continue}break}while(1){e:{if(I[c+1|0]!=4){break e}f=H[i+56>>2];if((f|0)<=0){break e}h=G[c+2>>1];k=H[o>>2];b=0;while(1){e=k+N(b,44)|0;j=h-G[e>>1]|0;g=j>>31;if((l|0)<=((g^j)-g|0)){b=b+1|0;if((f|0)!=(b|0)){continue}break e}break}H[c+16>>2]=H[e+36>>2];H[H[e+40>>2]+16>>2]=c;H[e+40>>2]=c}c=c+44|0;if(n>>>0>c>>>0){continue}break}}e=0;g=H[(N(d,1348)+a|0)- -64>>2];if(!g){break a}a=H[i+56>>2];if((a|0)<=0){break a}n=N(a,44)+g|0;e=g;while(1){a=H[e+36>>2];b=a;if(b){while(1){H[b+12>>2]=e;b=H[b+16>>2];if((a|0)!=(b|0)){continue}break}}e=e+44|0;if(n>>>0>e>>>0){continue}break}while(1){f=g+28|0;d=g+24|0;o=H[g+36>>2];b=o;c=0;k=0;while(1){j=F[b|0]&1;r=!j;f:{g:{h:{i:{h=H[b+24>>2];if(h){a=H[h+12>>2];i=(a|0)!=0&(a|0)!=(g|0);e=H[b+20>>2];if(!e){break i}if(!(i|H[e+12>>2]!=0)){break f}l=0;a=d;if(i){break h}break g}e=H[b+20>>2];if(!e){break f}l=0;a=d;if(H[e+12>>2]){break g}break f}if(!i){break f}}l=1;e=h;a=f}h=H[a>>2];j:{if(h){q=G[b+2>>1]-G[e+2>>1]|0;a=q>>31;m=G[g>>1]-G[h>>1]|0;i=m>>31;if((a^q)-a>>>0>=(i^m)-i>>>0){break j}}h=H[e+12>>2]}if(l){H[f>>2]=h;F[h+12|0]=I[h+12|0]|2;break f}H[d>>2]=h}c=c+j|0;k=k+r|0;b=H[b+16>>2];if((o|0)!=(b|0)){continue}break}F[g+12|0]=(c|0)!=0&c>>>0>=k>>>0;if(!(!H[g+28>>2]|!H[d>>2])){H[f>>2]=0}g=g+44|0;if(n>>>0>g>>>0){continue}break}e=0}xb=p+16|0;return e}function lS(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=xb-16|0;xb=j;m=lp(g);p=$o(g);g=p;zb[H[H[g>>2]+20>>2]](j,g);H[f>>2]=d;a:{b:{c:{i=a;g=I[i|0];switch(g-43|0){case 0:case 2:break c;default:break b}}H[197455]=0;g=da(3462,m|0,g<<24>>24)|0;i=H[197455];H[197455]=0;if((i|0)==1){break a}i=H[f>>2];H[f>>2]=i+1;F[i|0]=g;i=a+1|0}d:{g=i;if(!((c-g|0)<=1|I[g|0]!=48|(I[g+1|0]|32)!=120)){H[197455]=0;g=da(3462,m|0,48)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=H[f>>2];H[f>>2]=h+1;F[h|0]=g;g=F[i+1|0];H[197455]=0;g=da(3462,m|0,g|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=H[f>>2];H[f>>2]=h+1;F[h|0]=g;i=i+2|0;g=i;while(1){if(c>>>0<=g>>>0){break d}h=F[g|0];H[197455]=0;va(3442)|0;l=H[197455];H[197455]=0;e:{if((l|0)==1){break e}H[197455]=0;l=H[197455];H[197455]=0;if((l|0)==1){break e}if(!(h-48>>>0<10|(h|32)-97>>>0<6)){break d}g=g+1|0;continue}break}break a}while(1){if(c>>>0<=g>>>0){break d}h=F[g|0];H[197455]=0;va(3442)|0;l=H[197455];H[197455]=0;if((l|0)==1){break a}H[197455]=0;l=H[197455];H[197455]=0;if((l|0)==1){break a}if(h-48>>>0>=10){break d}g=g+1|0;continue}}f:{if(I[j+11|0]>>>7|0){k=H[j+4>>2]}else{k=I[j+11|0]}if(!k){h=H[f>>2];H[197455]=0;la(3438,m|0,i|0,g|0,h|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}H[f>>2]=H[f>>2]+(g-i|0);break f}H[197455]=0;lh(i,g);h=H[197455];H[197455]=0;if((h|0)==1){break a}H[197455]=0;q=aa(3429,p|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=0;l=i;while(1){if(g>>>0<=l>>>0){h=H[f>>2];H[197455]=0;lh((i-a|0)+d|0,h);i=H[197455];H[197455]=0;if((i|0)!=1){break f}break a}if(I[j+11|0]>>>7|0){k=H[j>>2]}else{k=j}o=F[k+h|0]!=(n|0);if(I[j+11|0]>>>7|0){k=H[j>>2]}else{k=j}if(!(o|F[k+h|0]<=0)){n=H[f>>2];H[f>>2]=n+1;F[n|0]=q;if(I[j+11|0]>>>7|0){k=H[j+4>>2]}else{k=I[j+11|0]}h=(k-1>>>0>h>>>0)+h|0;n=0}k=F[l|0];H[197455]=0;k=da(3462,m|0,k|0)|0;o=H[197455];H[197455]=0;if((o|0)!=1){o=H[f>>2];H[f>>2]=o+1;F[o|0]=k;l=l+1|0;n=n+1|0;continue}break}break a}while(1){g:{if(c>>>0>g>>>0){i=I[g|0];if((i|0)!=46){break g}H[197455]=0;i=aa(3439,p|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=H[f>>2];H[f>>2]=h+1;F[h|0]=i;g=g+1|0}i=H[f>>2];H[197455]=0;la(3438,m|0,g|0,c|0,i|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break a}i=f;f=H[f>>2]+(c-g|0)|0;H[i>>2]=f;H[e>>2]=(b|0)==(c|0)?f:(b-a|0)+d|0;_b(j);xb=j+16|0;return}H[197455]=0;i=da(3462,m|0,i<<24>>24)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}h=H[f>>2];H[f>>2]=h+1;F[h|0]=i;g=g+1|0;continue}}a=$()|0;_()|0;_b(j);ea(a|0);X()}function Lc(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=H[a+420>>2];g=I[b|0];h=H[((g&127)<<2)+257056>>2];f=h>>16;e=H[d+16>>2]-f|0;H[d+16>>2]=e;a:{b:{if((g>>>7|0)!=(c|0)){if((e|0)>=(f|0)){H[d+16>>2]=f;H[d+12>>2]=e+H[d+12>>2]}c=g&128^h&255;break b}if((e|0)>32767){break a}if((e|0)<(f|0)){H[d+16>>2]=f;H[d+12>>2]=e+H[d+12>>2]}c=g&128^h>>>8}F[b|0]=c;b=H[d+28>>2];e=H[d+12>>2];c=H[d+16>>2];while(1){b=b-1|0;H[d+28>>2]=b;e=e<<1;H[d+12>>2]=e;c=c<<1;H[d+16>>2]=c;if(!b){f=e>>19;c:{if((e|0)>=134217728){c=H[d+32>>2];d:{if((c|0)<0){break d}if(H[d+24>>2]){while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;e:{if(c){break e}if(zb[H[b+12>>2]](a)|0){break e}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+24>>2]-1|0;H[d+24>>2]=b;if(b){continue}break}c=H[d+32>>2]}b=H[a+24>>2];e=H[b>>2];H[b>>2]=e+1;F[e|0]=c+1;c=H[b+4>>2]-1|0;H[b+4>>2]=c;f:{if(c){break f}if(zb[H[b+12>>2]](a)|0){break f}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(H[d+32>>2]!=254){break d}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;if(c){break d}if(zb[H[b+12>>2]](a)|0){break d}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}H[d+32>>2]=f&255;b=H[d+20>>2];H[d+20>>2]=0;H[d+24>>2]=b+H[d+24>>2];break c}if((f|0)==255){H[d+20>>2]=H[d+20>>2]+1;break c}b=H[d+32>>2];g:{if(!b){H[d+24>>2]=H[d+24>>2]+1;break g}if((b|0)<0){break g}if(H[d+24>>2]){while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;h:{if(c){break h}if(zb[H[b+12>>2]](a)|0){break h}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+24>>2]-1|0;H[d+24>>2]=b;if(b){continue}break}b=H[d+32>>2]}c=H[a+24>>2];e=H[c>>2];H[c>>2]=e+1;F[e|0]=b;b=H[c+4>>2]-1|0;H[c+4>>2]=b;if(b){break g}if(zb[H[c+12>>2]](a)|0){break g}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(H[d+20>>2]){if(H[d+24>>2]){while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;i:{if(c){break i}if(zb[H[b+12>>2]](a)|0){break i}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+24>>2]-1|0;H[d+24>>2]=b;if(b){continue}break}}while(1){b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;j:{if(c){break j}if(zb[H[b+12>>2]](a)|0){break j}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=0;c=H[b+4>>2]-1|0;H[b+4>>2]=c;k:{if(c){break k}if(zb[H[b+12>>2]](a)|0){break k}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[d+20>>2]-1|0;H[d+20>>2]=b;if(b){continue}break}}H[d+32>>2]=f&255}e=H[d+12>>2]&524287;H[d+12>>2]=e;b=H[d+28>>2]+8|0;H[d+28>>2]=b;c=H[d+16>>2]}if((c|0)<32768){continue}break}}}function Bfa(a){a=a|0;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;c=xb-16|0;xb=c;g=H[a+24>>2];e=H[g+4>>2];a:{if(!e){if(!(zb[H[g+12>>2]](a)|0)){e=0;break a}e=H[g+4>>2]}b=H[g>>2];f=I[b|0];e=e-1|0;if(e){b=b+1|0}else{if(!(zb[H[g+12>>2]](a)|0)){e=0;break a}e=H[g+4>>2];b=H[g>>2]}k=b+1|0;e=e-1|0;b=I[b|0]|f<<8;f=b-2|0;b=b>>>0>15?14:b>>>0>>0?0:f;if(b){while(1){if(!e){if(!(zb[H[g+12>>2]](a)|0)){e=0;break a}k=H[g>>2];e=H[g+4>>2]}F[(c+2|0)+d|0]=I[k|0];k=k+1|0;e=e-1|0;d=d+1|0;if((b|0)!=(d|0)){continue}break}}m=f-b|0;b:{c:{d:{d=H[a+436>>2];h=d-224|0;if(h){if((h|0)==14){break d}else{break c}}f=b+m|0;e:{f:{g:{h:{if(b>>>0>=14){if(I[c+2|0]!=74){break g}if(I[c+3|0]!=70|I[c+4|0]!=73|(I[c+6|0]|I[c+5|0]!=70)){break h}H[a+284>>2]=1;b=I[c+7|0];F[a+288|0]=b;d=I[c+8|0];F[a+289|0]=d;h=I[c+9|0];F[a+290|0]=h;i=I[c+10|0]|I[c+11|0]<<8;i=i<<8|i>>>8;G[a+292>>1]=i;j=I[c+12|0]|I[c+13|0]<<8;j=j<<8|j>>>8;G[a+294>>1]=j;l=1;if((b|0)!=1){d=H[a>>2];H[d+24>>2]=b;H[d+20>>2]=122;H[H[a>>2]+28>>2]=I[a+289|0];zb[H[H[a>>2]+4>>2]](a,-1);l=I[a+288|0];h=I[a+290|0];j=J[a+294>>1];i=J[a+292>>1];d=I[a+289|0]}b=H[a>>2];H[b+24>>2]=l;H[b+20>>2]=89;H[b+40>>2]=h;H[b+36>>2]=j&65535;H[b+32>>2]=i&65535;H[b+28>>2]=d;zb[H[b+4>>2]](a,1);f=f-14|0;d=I[c+14|0];b=I[c+15|0];if(d|b){b=H[a>>2];H[b+20>>2]=92;H[b+24>>2]=I[c+14|0];H[H[a>>2]+28>>2]=I[c+15|0];zb[H[H[a>>2]+4>>2]](a,1);d=I[c+14|0];b=I[c+15|0]}if((N(N(b,d),3)|0)==(f|0)){break e}b=H[a>>2];H[b+24>>2]=f;H[b+20>>2]=90;break f}if(I[c+2|0]!=74|b>>>0<6){break g}}if(I[c+3|0]!=70|I[c+4|0]!=88|(I[c+6|0]|I[c+5|0]!=88)){break g}i:{switch(I[c+7|0]-16|0){case 0:b=H[a>>2];H[b+24>>2]=f;H[b+20>>2]=110;break f;case 1:b=H[a>>2];H[b+24>>2]=f;H[b+20>>2]=111;break f;case 3:b=H[a>>2];H[b+24>>2]=f;H[b+20>>2]=112;break f;default:break i}}b=H[a>>2];H[b+20>>2]=91;H[b+24>>2]=I[c+7|0];H[H[a>>2]+28>>2]=f;break f}b=H[a>>2];H[b+24>>2]=f;H[b+20>>2]=79;zb[H[H[a>>2]+4>>2]](a,1);break e}zb[H[H[a>>2]+4>>2]](a,1)}break b}j:{if(I[c+2|0]!=65|b>>>0<12|(I[c+3|0]!=100|I[c+4|0]!=111)){break j}if(I[c+5|0]!=98|I[c+6|0]!=101){break j}f=I[c+8|0];h=I[c+7|0];i=I[c+10|0];j=I[c+9|0];l=I[c+12|0];n=I[c+11|0];d=I[c+13|0];b=H[a>>2];H[b+20>>2]=78;H[b+36>>2]=d;H[b+32>>2]=l|n<<8;H[b+28>>2]=i|j<<8;H[b+24>>2]=f|h<<8;zb[H[b+4>>2]](a,1);F[a+300|0]=d;H[a+296>>2]=1;break b}b=H[a>>2];H[b+24>>2]=f;H[b+20>>2]=80;zb[H[H[a>>2]+4>>2]](a,1);break b}b=H[a>>2];H[b+24>>2]=d;H[b+20>>2]=70;zb[H[H[a>>2]>>2]](a)}H[g+4>>2]=e;H[g>>2]=k;e=1;if((m|0)<=0){break a}zb[H[H[a+24>>2]+16>>2]](a,m)}xb=c+16|0;return e|0}function UM(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;h=xb-96|0;xb=h;H[h+80>>2]=0;H[h+84>>2]=0;H[h+72>>2]=0;H[h+76>>2]=0;j=h- -64|0;H[j>>2]=0;H[j+4>>2]=0;H[h+56>>2]=0;H[h+60>>2]=0;H[h+48>>2]=0;H[h+52>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;m=c+10|0;g=Ub(a,8,0,m,0,h+92|0);H[b+20>>2]=g;j=H[h+92>>2];if(!j){a:{if(!c){break a}while(1){j=zb[d|0](f,l)|0;b:{if(!j){break b}i=0;c:{d:{if(!fc(93520,j)){break d}i=1;if(!fc(93526,j)){break d}i=2;if(!fc(93532,j)){break d}i=3;if(!fc(93541,j)){break d}i=4;if(!fc(93548,j)){break d}i=5;if(!fc(93555,j)){break d}i=6;if(!fc(93558,j)){break d}i=7;if(!fc(93573,j)){break d}i=8;if(!fc(93579,j)){break d}if(fc(93592,j)){break c}i=9}k=i<<2;i=k+(h+48|0)|0;if(H[i>>2]){break c}H[i>>2]=1;H[h+k>>2]=l}i=Uu(j);if(i&2147483647){n=h+48|0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((i|0)<=915){n:{switch(i-160|0){case 0:break i;case 13:break m;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break e;default:break n}}switch(i-538|0){case 1:break g;case 0:break h;default:break l}}o:{p:{switch(i-937|0){default:q:{switch(i-8725|0){case 4:break j;case 0:break o;case 1:case 2:case 3:break e;default:break q}}k=0;if((i|0)==916){break f}break e;case 19:break k;case 0:break p;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:break e}}k=1;break f}k=2;break f}k=3;break f}if((i|0)!=713){break e}k=4;break f}k=5;break f}k=6;break f}k=7;break f}k=8;break f}k=9}H[n+(k<<2)>>2]=2}H[g+4>>2]=l;H[g>>2]=i;g=g+8|0}if(!e){break b}zb[e|0](f,j)}l=l+1|0;if((l|0)!=(c|0)){continue}break}if(H[h+48>>2]!=1){break a}H[g>>2]=916;H[g+4>>2]=H[h>>2];g=g+8|0}if(H[h+52>>2]==1){H[g>>2]=937;H[g+4>>2]=H[h+4>>2];g=g+8|0}if(H[h+56>>2]==1){H[g>>2]=8725;H[g+4>>2]=H[h+8>>2];g=g+8|0}if(H[h+60>>2]==1){H[g>>2]=173;H[g+4>>2]=H[h+12>>2];g=g+8|0}if(H[h+64>>2]==1){H[g>>2]=713;H[g+4>>2]=H[h+16>>2];g=g+8|0}if(H[h+68>>2]==1){H[g>>2]=956;H[g+4>>2]=H[h+20>>2];g=g+8|0}if(H[h+72>>2]==1){H[g>>2]=8729;H[g+4>>2]=H[h+24>>2];g=g+8|0}if(H[h+76>>2]==1){H[g>>2]=160;H[g+4>>2]=H[h+28>>2];g=g+8|0}if(H[h+80>>2]==1){H[g>>2]=538;H[g+4>>2]=H[h+32>>2];g=g+8|0}if(H[h+84>>2]==1){H[g>>2]=539;H[g+4>>2]=H[h+36>>2];g=g+8|0}j=H[b+20>>2];d=g-j>>3;r:{if((g|0)==(j|0)){if(g){zb[H[a+8>>2]](a,g)}H[b+20>>2]=0;a=H[h+92>>2];j=a?a:163;break r}if(d>>>0>>1>>>0){j=Ub(a,8,m,d,j,h+92|0);H[b+20>>2]=j;H[h+92>>2]=0}th(j,d,8,52);j=H[h+92>>2]}H[b+16>>2]=d}xb=h+96|0;return j|0}function xda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=O(0),h=O(0),i=O(0),j=O(0),k=O(0),l=O(0),m=O(0),n=O(0),o=0,p=O(0),q=O(0),r=O(0),s=O(0),t=O(0),u=O(0),v=0,w=0,x=0,y=O(0);v=xb-256|0;xb=v;o=H[a+332>>2];a=H[b+84>>2];w=8;b=v;while(1){a:{b:{f=J[c+32>>1];x=J[c+16>>1];if(f|x){break b}f=0;if(J[c+48>>1]|J[c+64>>1]|(J[c+80>>1]|J[c+96>>1])){break b}if(J[c+112>>1]){break b}h=O(L[a>>2]*O(G[c>>1]));L[b+192>>2]=h;L[b+160>>2]=h;L[b+128>>2]=h;L[b+96>>2]=h;L[b+64>>2]=h;L[b+32>>2]=h;L[b>>2]=h;f=56;break a}i=O(L[a>>2]*O(G[c>>1]));j=O(L[a+128>>2]*O(G[c+64>>1]));p=O(i+j);k=O(L[a+64>>2]*O(f<<16>>16));l=O(L[a+192>>2]*O(G[c+96>>1]));h=O(k+l);m=O(p+h);n=O(L[a+96>>2]*O(G[c+48>>1]));q=O(L[a+160>>2]*O(G[c+80>>1]));r=O(n+q);s=O(L[a+32>>2]*O(x<<16>>16));t=O(L[a+224>>2]*O(G[c+112>>1]));u=O(s+t);g=O(r+u);L[b+224>>2]=m-g;L[b>>2]=m+g;i=O(i-j);j=O(O(O(k-l)*O(1.4142135381698608))-h);k=O(i+j);l=O(q-n);m=O(s-t);n=O(O(l+m)*O(1.8477590084075928));g=O(O(n+O(l*O(-2.613126039505005)))-g);L[b+192>>2]=k-g;L[b+32>>2]=k+g;i=O(i-j);g=O(O(O(u-r)*O(1.4142135381698608))-g);L[b+160>>2]=i-g;L[b+64>>2]=i+g;h=O(p-h);g=O(O(n+O(m*O(-1.0823922157287598)))-g);L[b+96>>2]=h+g;h=O(h-g);f=32}L[(f<<2)+b>>2]=h;c=c+2|0;a=a+4|0;b=b+4|0;f=w>>>0>1;w=w-1|0;if(f){continue}break}a=0;c=v;while(1){b=H[(a<<2)+d>>2]+e|0;i=O(L[c>>2]+O(128.5));j=L[c+16>>2];p=O(i+j);k=L[c+8>>2];l=L[c+24>>2];h=O(k+l);m=O(p+h);n=L[c+20>>2];q=L[c+12>>2];r=O(n+q);s=L[c+4>>2];t=L[c+28>>2];u=O(s+t);g=O(r+u);y=O(m+g);c:{if(O(P(y))>2];h=(c|0)/H[l+8>>2]|0;c=0;j=H[l>>2]==2?b:H[l+12>>2];Id(j,0,h<<2);d=H[a+608>>2];f=H[a+604>>2];a:{b:{c:{if((h|0)>0){if((d|0)<=0){break b}e=d;d:{while(1){g=F[f|0];d=g&255;e:{if((g|0)>=0){f=f+1|0;e=e-1|0;if(e){while(1){if(!d|(c|0)>=(h|0)){break e}g=(c<<2)+j|0;H[g>>2]=H[g>>2]|I[f|0]<<24;f=f+1|0;c=c+1|0;d=d-1|0;e=e-1|0;if(e){continue}break}}d=0;e=0;if((c|0)==(h|0)){break d}break b}e=e-2|0;g=f+2|0;d=d-126|0;f:{if(!d|(c|0)>=(h|0)){break f}f=I[f+1|0]<<24;while(1){i=(c<<2)+j|0;H[i>>2]=f|H[i>>2];c=c+1|0;d=d-1|0;if(!d){break f}if((c|0)<(h|0)){continue}break}}f=g}if((c|0)<(h|0)&(e|0)>0){continue}break}if((c|0)!=(h|0)){d=e;break b}d=0;if((e|0)<=0){break d}while(1){g=F[f|0];c=g&255;g:{if((g|0)>=0){f=f+1|0;e=e-1|0;if(!e){e=0;break d}while(1){if(!c|(d|0)>=(h|0)){break g}g=(d<<2)+j|0;H[g>>2]=H[g>>2]|I[f|0]<<16;f=f+1|0;d=d+1|0;c=c-1|0;e=e-1|0;if(e){continue}break}e=0;break d}e=e-2|0;g=f+2|0;c=c-126|0;h:{if(!c|(d|0)>=(h|0)){break h}f=I[f+1|0]<<16;while(1){i=(d<<2)+j|0;H[i>>2]=f|H[i>>2];d=d+1|0;c=c-1|0;if(!c){break h}if((d|0)<(h|0)){continue}break}}f=g}if((d|0)>=(h|0)){break d}if((e|0)>0){continue}break}}if((d|0)!=(h|0)){c=d;d=e;break b}c=0;i:{j:{if((e|0)<=0){break j}while(1){g=F[f|0];d=g&255;k:{if((g|0)>=0){f=f+1|0;e=e-1|0;if(e){while(1){if(!d|(c|0)>=(h|0)){break k}g=(c<<2)+j|0;H[g>>2]=H[g>>2]|I[f|0]<<8;f=f+1|0;c=c+1|0;d=d-1|0;e=e-1|0;if(e){continue}break}}g=0;d=0;if((c|0)==(h|0)){break i}break b}e=e-2|0;g=f+2|0;d=d-126|0;l:{if(!d|(c|0)>=(h|0)){break l}f=I[f+1|0]<<8;while(1){i=(c<<2)+j|0;H[i>>2]=f|H[i>>2];c=c+1|0;d=d-1|0;if(!d){break l}if((c|0)<(h|0)){continue}break}}f=g}if((c|0)>=(h|0)){break j}if((e|0)>0){continue}break}}if((c|0)!=(h|0)){d=e;break b}g=0;if((e|0)<=0){d=e;break i}d=e;while(1){e=F[f|0];c=e&255;m:{if((e|0)>=0){f=f+1|0;d=d-1|0;if(!d){d=0;break i}while(1){if(!c|(g|0)>=(h|0)){break m}e=(g<<2)+j|0;H[e>>2]=H[e>>2]|I[f|0];f=f+1|0;g=g+1|0;c=c-1|0;d=d-1|0;if(d){continue}break}d=0;break i}d=d-2|0;e=f+2|0;c=c-126|0;n:{if(!c|(g|0)>=(h|0)){break n}f=I[f+1|0];while(1){i=(g<<2)+j|0;H[i>>2]=f|H[i>>2];g=g+1|0;c=c-1|0;if(!c){break n}if((g|0)<(h|0)){continue}break}}f=e}if((g|0)>=(h|0)){break i}if((d|0)>0){continue}break}}c=g;if((h|0)==(c|0)){break c}break b}if(h){break b}}zb[H[l+20>>2]](l,b,h);b=1;break a}b=H[a>>2];e=H[a+628>>2];g=H[a+472>>2];H[k+4>>2]=h-c;H[k>>2]=g;Pb(e,b,276642,k);b=0}H[a+608>>2]=d;H[a+604>>2]=f;xb=k+16|0;return b|0}function gz(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=xb-22064|0;xb=e;g=H[b+100>>2];Nb(e+15424|4,0,2756);H[e+15424>>2]=g;H[a+7728>>2]=0;H[a+52>>2]=0;g=H[H[(H[H[a>>2]+8>>2]<<2)+16352>>2]+16>>2];c=I[g|0];a:{if(!c){break a}while(1){if((c&255)==32){while(1){c=I[g+1|0];g=g+1|0;if((c|0)==32){continue}break}}d=g+1|0;if((c&255)==32){while(1){g=d;d=d+1|0;c=I[g|0];if((c|0)==32){continue}break}}j=H[a+36>>2];h=c&255;if(c<<24>>24>=0){g=d}else{f=h>>>0<240;c=h>>>0<224;i=c?1:f?2:3;k=i-1|0;h=(c?31:f?15:7)&h;f=0;c=i;while(1){h=I[d|0]&63|h<<6;c=c-1|0;d=d+1|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}if(k>>>0>=3){while(1){h=I[d+3|0]&63|((I[d+1|0]&63|(h<<12|(I[d|0]&63)<<6))<<12|(I[d+2|0]&63)<<6);d=d+4|0;c=c-4|0;if(c){continue}break}}g=(g+i|0)+1|0}j=H[j>>2];d=0;while(1){c=I[g|0];if((c|32)!=32){g=g+1|0;d=c;if(c<<24>>24>=0){continue}f=d>>>0<240;c=d>>>0<224;i=c?1:f?2:3;k=i-1|0;d=(c?31:f?15:7)&d;l=0;f=i;c=g;while(1){d=I[c|0]&63|d<<6;f=f-1|0;c=c+1|0;l=l+1|0;if((i|0)!=(l|0)){continue}break}if(k>>>0>=3){while(1){d=I[c+3|0]&63|((I[c+1|0]&63|(d<<12|(I[c|0]&63)<<6))<<12|(I[c+2|0]&63)<<6);c=c+4|0;f=f-4|0;if(f){continue}break}}g=g+i|0;continue}break}b:{if(!d){d=Wd(j,h);if(d){break b}c=I[g|0]}if(c&255){continue}break a}break}if(Ag(b,d,1)){break a}c=H[b+84>>2];if(G[c+110>>1]<=0){break a}d=e+16|0;Nb(d,0,15396);g=H[a+40>>2];H[e+36>>2]=0;H[e+44>>2]=0;H[e+24>>2]=65536;H[e+28>>2]=65536;H[e+56>>2]=g;H[e+20>>2]=b;H[e+18164>>2]=0;H[e+18172>>2]=d;if(rl(e+15424|0,c+108|0)){break a}if(xi(e+15424|0,0)){break a}f=0;Jk(e+15424|0,0,0,0);b=H[e+15468>>2];if((b|0)>0){c=H[e+15476>>2];g=c+N(b,44)|0;while(1){b=H[c+20>>2];if(!(!b|H[b+20>>2]!=(c|0)|(b>>>0<=c>>>0|f>>>0>15))){b=G[c+2>>1]-G[b+2>>1]|0;d=b>>31;H[(N(f,12)+a|0)+56>>2]=(b^d)-d;f=f+1|0}c=c+44|0;if(g>>>0>c>>>0){continue}break}}H[e+12>>2]=f;Wm(e+12|0,a+56|0,K[e+56>>2]/100|0);H[a+52>>2]=H[e+12>>2];if(xi(e+15424|0,1)){break a}f=0;Jk(e+15424|0,0,0,1);b=H[e+16816>>2];if((b|0)>0){c=H[e+16824>>2];g=c+N(b,44)|0;while(1){b=H[c+20>>2];if(!(!b|H[b+20>>2]!=(c|0)|(b>>>0<=c>>>0|f>>>0>15))){b=G[c+2>>1]-G[b+2>>1]|0;d=b>>31;H[(N(f,12)+a|0)+7732>>2]=(b^d)-d;f=f+1|0}c=c+44|0;if(g>>>0>c>>>0){continue}break}}H[e+12>>2]=f;Wm(e+12|0,a+7732|0,K[e+56>>2]/100|0);H[a+7728>>2]=H[e+12>>2]}if(H[a+52>>2]){b=H[a+56>>2]}else{b=(N(H[a+40>>2],50)|0)/2048|0}F[a+256|0]=0;H[a+252>>2]=b;H[a+248>>2]=(b|0)/5;if(H[a+7728>>2]){b=H[a+7732>>2]}else{b=(N(H[a+40>>2],50)|0)/2048|0}F[a+7932|0]=0;H[a+7928>>2]=b;H[a+7924>>2]=(b|0)/5;dq(e+15424|0);xb=e+22064|0}function uG(a,b){var c=0,d=0;a:{b:{c:{d:{e:{switch(a-247|0){default:if((a|0)!=28){break d}a=H[b+12>>2];d=H[b+4>>2];f:{if(a>>>0>=d>>>0){F[b+16|0]=1;c=163632;break f}c=a+H[b>>2]|0}c=I[c|0];a=a+1|0;g:{if(a>>>0>=d>>>0){F[b+16|0]=1;a=163632;break g}a=a+H[b>>2]|0}d=I[a|0];a=H[b+24>>2];h:{if(a>>>0>2]){H[b+24>>2]=a+1;a=H[b+36>>2]+(a<<5)|0;break h}F[b+20|0]=1;a=H[40915];H[196254]=H[40914];H[196255]=a;a=H[40913];H[196252]=H[40912];H[196253]=a;a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}H[a+8>>2]=0;H[a+12>>2]=0;if(H[a+16>>2]>=0){H[a+20>>2]=0}M[a>>3]=(d|c<<8)<<16>>16;if(I[b+16|0]){a=H[b+4>>2];break c}a=H[b+4>>2];c=H[b+12>>2];if(a>>>0>>0){break c}c=c+2|0;if(c>>>0>a>>>0){break c}break b;case 0:case 1:case 2:case 3:c=(a<<8)+2304|0;a=H[b+12>>2];i:{if(a>>>0>=K[b+4>>2]){F[b+16|0]=1;a=163632;break i}a=a+H[b>>2]|0}c=((c|I[a|0])<<16)+7077888|0;a=H[b+24>>2];j:{if(a>>>0>2]){H[b+24>>2]=a+1;a=H[b+36>>2]+(a<<5)|0;break j}F[b+20|0]=1;a=H[40915];H[196254]=H[40914];H[196255]=a;a=H[40913];H[196252]=H[40912];H[196253]=a;a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}H[a+8>>2]=0;H[a+12>>2]=0;if(H[a+16>>2]>=0){H[a+20>>2]=0}M[a>>3]=c>>16;if(I[b+16|0]){a=H[b+4>>2];break a}a=H[b+4>>2];c=H[b+12>>2];if(a>>>0>>0){break a}c=c+1|0;if(c>>>0>a>>>0){break a}break b;case 4:case 5:case 6:case 7:break e}}c=(a<<16)-16449536>>>8|0;a=H[b+12>>2];k:{if(a>>>0>=K[b+4>>2]){F[b+16|0]=1;a=163632;break k}a=a+H[b>>2]|0}c=c|I[a|0];a=H[b+24>>2];l:{if(a>>>0>2]){H[b+24>>2]=a+1;a=H[b+36>>2]+(a<<5)|0;break l}F[b+20|0]=1;a=H[40915];H[196254]=H[40914];H[196255]=a;a=H[40913];H[196252]=H[40912];H[196253]=a;a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}H[a+8>>2]=0;H[a+12>>2]=0;if(H[a+16>>2]>=0){H[a+20>>2]=0}M[a>>3]=-108-c|0;if(I[b+16|0]){a=H[b+4>>2];break a}a=H[b+4>>2];c=H[b+12>>2];if(a>>>0>>0){break a}c=c+1|0;if(c>>>0>a>>>0){break a}break b}if(a-32>>>0<=214){c=H[b+24>>2];m:{if(c>>>0>2]){H[b+24>>2]=c+1;b=H[b+36>>2]+(c<<5)|0;break m}F[b+20|0]=1;b=H[40915];H[196254]=H[40914];H[196255]=b;b=H[40913];H[196252]=H[40912];H[196253]=b;b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;b=784992}H[b+8>>2]=0;H[b+12>>2]=0;if(H[b+16>>2]>=0){H[b+20>>2]=0}M[b>>3]=a-139|0;return}F[b+40|0]=1;H[b+24>>2]=0;return}F[b+16|0]=1;H[b+12>>2]=a;return}H[b+12>>2]=c;return}F[b+16|0]=1;H[b+12>>2]=a}function du(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;e=xb-16|0;xb=e;j=H[a+28>>2];f=bc(a,c);H[e+12>>2]=f;a:{if(f){break a}f=nc(a,e+12|0);if(H[e+12>>2]){break a}if((f|0)!=1){H[e+12>>2]=8;break a}g=hd(a,e+12|0);if(H[e+12>>2]){break a}i=nc(a,e+12|0);H[d>>2]=i;if(H[e+12>>2]){break a}if(!i){H[e+12>>2]=8;break a}f=0;l=Ub(j,4,0,i,0,e+12|0);if(H[e+12>>2]){break a}if(H[d>>2]){while(1){n=(f<<2)+l|0,o=hd(a,e+12|0),H[n>>2]=o;if(H[e+12>>2]){break a}f=f+1|0;if(f>>>0>2]){continue}break}}f=bc(a,c+g|0);H[e+12>>2]=f;if(f){break a}n=d,o=nc(a,e+12|0),G[n+8>>1]=o;if(H[e+12>>2]){break a}f=nc(a,e+12|0);H[d+12>>2]=f;if(H[e+12>>2]){break a}if(H[H[b+12>>2]>>2]!=J[d+8>>1]){H[e+12>>2]=8;break a}n=d,o=Ub(j,4,0,f,0,e+12|0),H[n+16>>2]=o;if(H[e+12>>2]){break a}if(H[d+12>>2]){b=J[d+8>>1];while(1){i=Ub(j,12,0,b&65535,0,e+12|0);H[H[d+16>>2]+(h<<2)>>2]=i;if(H[e+12>>2]){break a}b=0;if(J[d+8>>1]){f=0;while(1){g=nc(a,e+12|0);if(H[e+12>>2]){break a}k=nc(a,e+12|0);if(H[e+12>>2]){break a}m=nc(a,e+12|0);if(H[e+12>>2]){break a}b=i+N(f,12)|0;H[b+8>>2]=m<<16>>16<<2;H[b+4>>2]=k<<16>>16<<2;H[b>>2]=g<<16>>16<<2;b=J[d+8>>1];f=f+1|0;if(b>>>0>f>>>0){continue}break}}h=h+1|0;if(h>>>0>2]){continue}break}}f=Ub(j,16,0,H[d>>2],0,e+12|0);H[d+4>>2]=f;if(H[e+12>>2]|!H[d>>2]){break a}b=bc(a,H[l>>2]+c|0);H[e+12>>2]=b;if(b){break a}k=0;while(1){g=(k<<4)+f|0;n=g,o=nc(a,e+12|0),H[n>>2]=o;if(H[e+12>>2]){break a}i=nc(a,e+12|0);if(H[e+12>>2]){break a}b=nc(a,e+12|0);H[g+4>>2]=b;if(H[e+12>>2]){break a}if(b>>>0>>0){H[e+12>>2]=8;break a}if(b>>>0>K[d+12>>2]){H[e+12>>2]=8;break a}n=g,o=Ub(j,4,0,b,0,e+12|0),H[n+8>>2]=o;if(H[e+12>>2]){break a}f=0;b:{if(!H[g+4>>2]){b=0;break b}while(1){b=nc(a,e+12|0);H[H[g+8>>2]+(f<<2)>>2]=b;if(H[e+12>>2]){break a}if(b>>>0>2]){b=H[g+4>>2];f=f+1|0;if(b>>>0<=f>>>0){break b}continue}break}H[e+12>>2]=8;break a}n=g,o=Ub(j,2,0,N(H[g>>2],b),0,e+12|0),H[n+12>>2]=o;if(H[e+12>>2]){break a}h=H[g+4>>2];if(N(h,H[g>>2])){f=0;while(1){if(i){b=f+i|0;while(1){h=nc(a,e+12|0);if(H[e+12>>2]){break a}G[H[g+12>>2]+(f<<1)>>1]=h;f=f+1|0;if((b|0)!=(f|0)){continue}break}h=H[g+4>>2];f=b}b=i;if(h>>>0>b>>>0){while(1){h=Gd(a,e+12|0);if(H[e+12>>2]){break a}G[H[g+12>>2]+(f<<1)>>1]=h;f=f+1|0;b=b+1|0;h=H[g+4>>2];if(b>>>0>>0){continue}break}}if(N(H[g>>2],h)>>>0>f>>>0){continue}break}}k=k+1|0;if(k>>>0>=K[d>>2]){break a}f=H[d+4>>2];b=bc(a,H[(k<<2)+l>>2]+c|0);H[e+12>>2]=b;if(!b){continue}break}}if(l){zb[H[j+8>>2]](j,l)}xb=e+16|0;return H[e+12>>2]}function eca(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;B=xb-160|0;xb=B;d=a;while(1){a:{e=d;d=H[(j<<2)+b>>2]+c|0;k=I[d+12|0];r=I[d|0];h=k+r|0;s=I[d+11|0];t=I[d+1|0];g=s+t|0;l=I[d+10|0];m=I[d+2|0];o=l+m|0;u=I[d+9|0];f=I[d+3|0];p=u+f|0;w=I[d+8|0];x=I[d+4|0];q=w+x|0;y=I[d+7|0];z=I[d+5|0];i=y+z|0;d=I[d+6|0];H[e>>2]=((((((h+g|0)+o|0)+p|0)+q|0)+i|0)+d|0)-1664;d=d<<1;p=p-d|0;q=q-d|0;v=h-d|0;o=o-d|0;n=g-d|0;i=i-d|0;d=(N(p-q|0,-3570)+N(v-o|0,9465)|0)+N(n-i|0,-2592)|0;h=(N(p+q|0,-7678)+N(o+v|0,793)|0)+N(i+n|0,3989)|0;H[e+24>>2]=(d-h|0)+4096>>13;H[e+16>>2]=(d+h|0)+4096>>13;d=f-u|0;h=m-l|0;m=N(d+h|0,-5384);g=z-y|0;l=x-w|0;k=r-k|0;r=N(g+l|0,2773)+N(k+d|0,7682)|0;u=m+N(d,18068)|0;f=d;d=t-s|0;s=N(f+d|0,-9534);H[e+28>>2]=(r+((u+s|0)+N(g,-14273)|0)|0)+4096>>13;f=m;m=N(h+k|0,9534);f=(f+(m+N(h,-12879)|0)|0)+N(g,18515)|0;h=N(l-g|0,7682)+N(d+h|0,-2773)|0;H[e+20>>2]=(f+h|0)+4096>>13;f=N(d,6859);d=N(d+k|0,10832)+4096|0;H[e+12>>2]=h+((s+(f+d|0)|0)+N(l,-19183)|0)>>13;H[e+4>>2]=r+((m+(d+N(k,-16549)|0)|0)+N(l,2611)|0)>>13;H[e+8>>2]=(((((N(n,8672)+N(v,11249)|0)+N(o,4108)|0)+N(p,-1396)|0)+N(q,-6581)|0)+N(i,-10258)|0)+4096>>13;g=j-7|0;j=j+1|0;h=7;d=B;b:{switch(g|0){case 0:continue;case 5:break a;default:break b}}d=e+32|0;continue}break}while(1){c=H[d+32>>2];e=H[a+96>>2];m=c+e|0;r=H[a+192>>2];b=r<<1;l=m-b|0;j=H[d>>2];g=H[a+128>>2];s=j+g|0;k=s-b|0;i=H[d+128>>2];t=H[a>>2];u=i+t|0;p=u-b|0;n=H[d+64>>2];f=H[a+64>>2];w=n+f|0;q=w-b|0;x=H[d+96>>2];y=H[a+32>>2];z=x+y|0;v=z-b|0;A=H[a+224>>2];C=H[a+160>>2];D=A+C|0;o=D-b|0;b=(N(l-k|0,-2704)+N(p-q|0,7169)|0)+N(v-o|0,-1963)|0;E=(N(k+l|0,-5816)+N(p+q|0,601)|0)+N(o+v|0,3021)|0;H[a+192>>2]=(b-E|0)- -8192>>14;H[a+128>>2]=(b+E|0)- -8192>>14;b=e-c|0;c=f-n|0;n=N(b+c|0,-4078);e=C-A|0;j=g-j|0;g=t-i|0;i=N(e+j|0,2100)+N(g+b|0,5819)|0;A=n+N(b,13685)|0;f=b;b=y-x|0;t=N(f+b|0,-7221);H[a+224>>2]=(i+((A+t|0)+N(e,-10811)|0)|0)- -8192>>14;f=N(c+g|0,7221);n=(n+(f+N(c,-9754)|0)|0)+N(e,14023)|0;c=N(j-e|0,5819)+N(b+c|0,-2100)|0;H[a+160>>2]=(n+c|0)- -8192>>14;e=N(b,5195);b=N(b+g|0,8204)- -8192|0;H[a+96>>2]=c+((t+(e+b|0)|0)+N(j,-14529)|0)>>14;H[a+32>>2]=i+((f+(b+N(g,-12534)|0)|0)+N(j,1978)|0)>>14;H[a+64>>2]=(((((N(v,6568)+N(p,8520)|0)+N(q,3112)|0)+N(l,-1058)|0)+N(k,-4985)|0)+N(o,-7770)|0)- -8192>>14;H[a>>2]=N(r+((s+(m+(w+(u+z|0)|0)|0)|0)+D|0)|0,6205)- -8192>>14;b=h;h=b-1|0;d=d+4|0;a=a+4|0;if(b){continue}break}xb=B+160|0}function dJ(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;k=xb-16|0;xb=k;f=H[a+492>>2];h=H[b+8>>2];zb[H[b+28>>2]](b);d=H[b>>2];a:{if(h>>>0<=d>>>0){H[b+12>>2]=3;break a}b:{l=I[d|0];if(!(l-48>>>0>=10&(l|0)!=91)){g=H[b+16>>2];c:{if((l|0)==91){H[b>>2]=d+1;c=256;break c}c=zb[H[b+36>>2]](b)|0}zb[H[b+28>>2]](b);if(K[b>>2]>=h>>>0){break a}i=b+100|0;n=c;j=(c|0)<256?c:256;c=H[a+384>>2];d:{if(!c){break d}if(c){zb[H[g+8>>2]](g,c)}H[a+384>>2]=0;c=H[a+388>>2];if(c){zb[H[g+8>>2]](g,c)}H[a+388>>2]=0;c=H[b+148>>2];if(!c){break d}zb[c|0](i)}H[a+372>>2]=j;H[b+96>>2]=j;o=a,p=Ub(g,2,0,j,0,k+12|0),H[o+384>>2]=p;e=H[k+12>>2];if(e){break b}o=a,p=Ub(g,4,0,j,0,k+12|0),H[o+388>>2]=p;e=H[k+12>>2];if(e){break b}e=zb[H[H[f>>2]>>2]](i,j,g)|0;H[k+12>>2]=e;if(e){break b}e:{if((n|0)<=0){break e}e=(j|0)>1?j:1;m=e&3;f=0;c=0;if(e-1>>>0>=3){g=e&2147483644;e=0;while(1){zb[H[b+144>>2]](i,c,11262,8)|0;zb[H[b+144>>2]](i,c|1,11262,8)|0;zb[H[b+144>>2]](i,c|2,11262,8)|0;zb[H[b+144>>2]](i,c|3,11262,8)|0;c=c+4|0;e=e+4|0;if((g|0)!=(e|0)){continue}break}}if(!m){break e}while(1){zb[H[b+144>>2]](i,c,11262,8)|0;c=c+1|0;f=f+1|0;if((m|0)!=(f|0)){continue}break}}zb[H[b+28>>2]](b);c=H[b>>2];f:{if(h>>>0<=c>>>0){break f}m=(l|0)==91;e=0;while(1){g:{h:{i:{f=I[c|0];switch(f-93|0){case 0:break h;case 7:break i;default:break g}}d=c+3|0;if(I[c+1|0]!=101|h>>>0<=d>>>0|I[c+2|0]!=102){break g}switch(I[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break f;default:break g}}d=c+1|0;break f}j:{k:{l:{if(!((l|0)!=91&f-48>>>0>=10)){m:{if(m){d=c;f=e;break m}f=zb[H[b+36>>2]](b)|0;zb[H[b+28>>2]](b);d=H[b>>2];if((d|0)==(c|0)){break k}}if(I[d|0]!=47|d+2>>>0>=h>>>0|(e|0)>=(n|0)){break l}d=d+1|0;H[b>>2]=d;zb[H[b+32>>2]](b);c=H[b>>2];if(H[b+12>>2]|c>>>0>=h>>>0){break a}if((e|0)<(j|0)){g=c-d|0;c=zb[H[b+144>>2]](i,f,d,g+1|0)|0;H[b+12>>2]=c;if(c){break a}F[g+H[H[b+124>>2]+(f<<2)>>2]|0]=0}e=e+1|0;break j}zb[H[b+32>>2]](b);d=c;if(H[b+12>>2]){break a}break j}if(!m){break j}}H[b+12>>2]=2;break a}zb[H[b+28>>2]](b);c=H[b>>2];if(h>>>0>c>>>0){continue}break}}H[a+368>>2]=1;H[b>>2]=d;break a}n:{if(d+17>>>0>=h>>>0){break n}if(gc(d,23503,16)){break n}H[a+368>>2]=2;break a}o:{if(d+15>>>0>=h>>>0){break o}if(gc(d,23540,14)){break o}H[a+368>>2]=4;break a}p:{if(d+18>>>0>=h>>>0){break p}if(gc(d,23574,17)){break p}H[a+368>>2]=3;break a}H[b+12>>2]=162;break a}H[b+12>>2]=e}xb=k+16|0}function H7(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;j=xb-16|0;xb=j;k=H[a+584>>2];a:{if((b|0)==65557){i=H[c>>2];H[k+120>>2]=i;b=1;if(!(I[k+124|0]&2)){break a}e=-2;c=k- -64|0;b:{if(!c|!H[c+32>>2]|!H[c+36>>2]){break b}g=H[c+28>>2];if(!g|(c|0)!=H[g>>2]){break b}c:{d:{d=H[g+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break b;case 0:case 12:case 16:case 34:case 46:case 56:break c;default:break d}}if((d|0)==666){break c}if((d|0)!=42){break b}}l=(i|0)==-1?6:i;if(l>>>0>9){break b}e:{if(!H[g+5824>>2]|!H[g+136>>2]&H[N(H[g+132>>2],12)+237944>>2]==H[N(l,12)+237944>>2]){break e}if((_f(c,5)|0)==-2){break b}if(H[c+16>>2]){break e}e=-5;break b}c=H[g+132>>2];if((c|0)!=(l|0)){f:{if(c){break f}g:{h:{switch(H[g+5808>>2]){case 1:d=0;i=H[g+76>>2];h=i-1|0;e=H[g+68>>2]+(i<<1)|0;c=H[g+44>>2];m=i&3;if(m){while(1){e=e-2|0;n=J[e>>1];f=n-c|0;G[e>>1]=f>>>0>n>>>0?0:f;i=i-1|0;d=d+1|0;if((m|0)!=(d|0)){continue}break}}if(h>>>0>=3){while(1){f=e-2|0;h=J[f>>1];d=h-c|0;G[f>>1]=d>>>0>h>>>0?0:d;f=e-4|0;h=J[f>>1];d=h-c|0;G[f>>1]=d>>>0>h>>>0?0:d;f=e-6|0;h=J[f>>1];d=h-c|0;G[f>>1]=d>>>0>h>>>0?0:d;e=e-8|0;f=J[e>>1];d=f-c|0;G[e>>1]=d>>>0>f>>>0?0:d;i=i-4|0;if(i){continue}break}}h=c-1|0;e=H[g+64>>2]+(c<<1)|0;m=c&3;i:{if(!m){i=c;break i}d=0;i=c;while(1){e=e-2|0;n=J[e>>1];f=n-c|0;G[e>>1]=f>>>0>n>>>0?0:f;i=i-1|0;d=d+1|0;if((m|0)!=(d|0)){continue}break}}if(h>>>0>=3){while(1){f=e-2|0;h=J[f>>1];d=h-c|0;G[f>>1]=d>>>0>h>>>0?0:d;f=e-4|0;h=J[f>>1];d=h-c|0;G[f>>1]=d>>>0>h>>>0?0:d;f=e-6|0;h=J[f>>1];d=h-c|0;G[f>>1]=d>>>0>h>>>0?0:d;e=e-8|0;f=J[e>>1];d=f-c|0;G[e>>1]=d>>>0>f>>>0?0:d;i=i-4|0;if(i){continue}break}}c=H[g+76>>2];e=H[g+68>>2];break g;case 0:break f;default:break h}}e=H[g+68>>2];c=H[g+76>>2];G[(e+(c<<1)|0)-2>>1]=0}Nb(e,0,(c<<1)-2|0);H[g+5808>>2]=0}H[g+132>>2]=l;c=N(l,12);H[g+144>>2]=J[c+237940>>1];H[g+140>>2]=J[c+237936>>1];H[g+128>>2]=J[c+237938>>1];H[g+124>>2]=J[c+237942>>1]}H[g+136>>2]=0;e=0}if(!e){break a}b=H[a+628>>2];a=H[a>>2];H[j+4>>2]=H[k+88>>2];H[j>>2]=a;Pb(b,296468,272400,j);b=0;break a}b=zb[H[k+132>>2]](a,b,c)|0}xb=j+16|0;return b|0}function ZB(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;a:{b:{c:{d=H[a+200>>2];if(d&1){if(d&4){Xb(a,268066);mc(a,c);return}if(!(!b|!(I[b+9|0]&4))){Xb(a,268090);mc(a,c);return}cc(a,H[a+740>>2]);d=xd(a,c+1|0);H[a+740>>2]=d;if(!d){Xb(a,268111);return}vd(a,d,c);xc(a,d,c);d=mc(a,0);h=H[a+740>>2];if(d){cc(a,h);H[a+740>>2]=0;return}F[c+h|0]=0;h=H[a+740>>2];d=h;while(1){e=d;d=d+1|0;if(I[e|0]){continue}break}i=c+h|0;if((i-e|0)<=12){Xb(a,268138);break b}c=I[d|0];d:{if(c&128){h=0-(((N(c,2130706432)-(I[e+2|0]<<16)|0)-(I[e+3|0]<<8)|0)-I[e+4|0]&2147483647)|0;break d}h=I[e+4|0]|(I[e+2|0]<<16|c<<24|I[e+3|0]<<8)}c=I[e+5|0];e:{if(c&128){k=0-(((N(c,2130706432)-(I[e+6|0]<<16)|0)-(I[e+7|0]<<8)|0)-I[e+8|0]&2147483647)|0;break e}k=I[e+8|0]|(I[e+6|0]<<16|c<<24|I[e+7|0]<<8)}f:{j=I[e+9|0];g=I[e+10|0];if(!(!j&(g|0)!=2|(j|0)==1&(g|0)!=3|(j|0)==2&(g|0)!=3)){if((g|0)==4|(j|0)!=3){break f}}Xb(a,268156);break b}if(j>>>0>=4){Xb(a,268198)}e=e+11|0;d=e;while(1){c=d;d=c+1|0;if(I[c|0]){continue}break}l=xd(a,g<<2);if(!l){break c}if(g){d=0;while(1){c=c+1|0;H[(d<<2)+l>>2]=c;g:{if(c>>>0<=i>>>0){while(1){if(!I[c|0]){break g}c=c+1|0;if(i>>>0>=c>>>0){continue}break}}Xb(a,268138);break a}d=d+1|0;if((g|0)!=(d|0)){continue}break}}m=H[a+740>>2];n=xb-80|0;xb=n;h:{if(!a|!b){break h}i:{j:{if(!m){F[n|0]=0;break j}c=1;d=n;f=I[m|0];k:{if(!f){i=1;break k}while(1){m=m+1|0;i=0;l:{if(!((f-33&255)>>>0<94|(f&255)>>>0>160)){i=1;if(c){break l}f=32}F[d|0]=f;o=o+1|0;d=d+1|0}f=I[m|0];if(!f){break k}c=i;if(o>>>0<79){continue}break}}c=(o|0)!=0&i;F[d-c|0]=0;d=o-c|0;if(d){break i}}Xb(a,262521);break h}m:{n:{if(j>>>0<=3){f=0;if(!g){break m}break n}hc(a,262774);X()}while(1){c=H[(f<<2)+l>>2];if(Iq(c,ac(c))){f=f+1|0;if((g|0)!=(f|0)){continue}break m}break}hc(a,262848);X()}c=d+1|0;d=xd(a,c);H[b+160>>2]=d;if(!d){Xb(a,263019);break h}Ob(d,n,c);F[b+181|0]=g;F[b+180|0]=j;H[b+168>>2]=k;H[b+164>>2]=h;c=ac(e)+1|0;d=xd(a,c);H[b+172>>2]=d;if(!d){Xb(a,263148);break h}Ob(d,e,c);c=(g<<2)+4|0;d=xd(a,c);H[b+176>>2]=d;if(!d){Xb(a,263327);break h}f=0;Nb(d,0,c);if(g){while(1){k=f<<2;h=k+l|0;d=ac(H[h>>2])+1|0;c=xd(a,d);H[k+H[b+176>>2]>>2]=c;c=H[k+H[b+176>>2]>>2];if(!c){Xb(a,263426);break h}Ob(c,H[h>>2],d);f=f+1|0;if((g|0)!=(f|0)){continue}break}}H[b+8>>2]=H[b+8>>2]|1024;H[b+184>>2]=H[b+184>>2]|128}xb=n+80|0;break a}hc(a,268041);X()}cc(a,H[a+740>>2]);H[a+740>>2]=0;Xb(a,268240);return}cc(a,H[a+740>>2]);H[a+740>>2]=0;return}cc(a,H[a+740>>2]);H[a+740>>2]=0;cc(a,l)}function Ku(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,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=H[a+16>>2];l=I[d+6|0]<<8|I[d+7|0]&254;if(!l){return 0}w=H[a>>2];A=H[w+508>>2]+H[w+512>>2]|0;e=H[b>>2];r=e+1|0;o=c?r:e;u=l+2|0;s=d+14|0;v=l>>>1|0;g=v;a:{b:{c:{d:{while(1){j=g+h|0;f=(j&-2)+s|0;k=I[f|0]<<8|I[f+1|0];e=j>>>1|0;f=f+u|0;t=I[f|0]<<8|I[f+1|0];if(t>>>0<=o>>>0){if(k>>>0>=o>>>0){break d}h=e+1|0}else{g=e}if(g>>>0>h>>>0){continue}break}h=0;break c}h=0;g=f+l|0;i=g+l|0;x=I[i|0]<<8|I[i+1|0];f=(t|0)==65535&v-1>>>0<=e>>>0&(k|0)==65535&(x|0)!=0&(i+x|0)+2>>>0>A>>>0;p=f?0:x;g=I[g|0]|I[g+1|0]<<8;B=(g<<8|g>>>8)<<16>>16;m=f?1:B;e:{f:{g:{h:{if(I[a+20|0]&2){n=e+1|0;g=(p|0)==65535?n:e;if(j>>>0<2){break h}h=e-1|0;q=h<<1;j=q+s|0;f=I[j|0]<<8|I[j+1|0];if(o>>>0>f>>>0){break h}m=(d+N(l,3)|0)+16|0;C=s+u|0;i:{while(1){j:{j=f;d=h;y=q+C|0;z=y+l|0;i=z+l|0;p=I[i|0]<<8|I[i+1|0];g=(p|0)==65535?g:d;if(!d){break j}h=d-1|0;q=h<<1;f=q+s|0;f=I[f|0]<<8|I[f+1|0];if(o>>>0<=f>>>0){continue}break i}break}d=0;i=m}f=I[z|0]|I[z+1|0]<<8;m=(f<<8|f>>>8)<<16>>16;f=I[y+1|0]|I[y|0]<<8;break g}d=e;if((p|0)==65535){break e}break f}d=e;j=k;f=t}k:{if((g|0)!=(n|0)){k=j;break k}if((d|0)!=(e|0)){m=B;p=x;f=t;j=k}h=0;if(n>>>0>=v>>>0){d=e;k=j;break e}d=(n<<1)+s|0;i=u+d|0;q=I[i|0]<<8|I[i+1|0];l:{if(q>>>0>o>>>0){g=e;break l}g=e;m:{while(1){n:{f=q;j=d;k=(d+u|0)+l|0;i=k+l|0;p=I[i|0]<<8|I[i+1|0];g=(p|0)==65535?g:n;n=n+1|0;if((v|0)==(n|0)){break n}d=(n<<1)+s|0;i=u+d|0;q=I[i|0]<<8|I[i+1|0];if(q>>>0<=o>>>0){continue}break m}break}n=v}d=I[k|0]|I[k+1|0]<<8;m=(d<<8|d>>>8)<<16>>16;j=I[j+1|0]|I[j|0]<<8}k=j;d=n-1|0;if((e|0)==(g|0)){break e}}if((d|0)==(g|0)){e=g;t=f;break f}e=(g<<1)+s|0;k=I[e|0]<<8|I[e+1|0];e=e+u|0;t=I[e|0]<<8|I[e+1|0];e=e+l|0;i=e+l|0;p=I[i|0]<<8|I[i+1|0];e=I[e|0]|I[e+1|0]<<8;m=(e<<8|e>>>8)<<16>>16;e=g}if(p){h=0;d=((o-t<<1)+p|0)+i|0;if(d>>>0>A>>>0?c:0){break c}d=I[d+1|0]|I[d|0]<<8;if(!d){break c}d=d+m&65535;h=d>>>0>2]?d:0;d=e;if(c){break b}break a}d=m+o|0;h=d&65535;if(!c){break a}o:{if(K[w+16>>2]>h>>>0){break o}c=k+m|0;p:{if((d|0)>=0){break p}h=0;if((c|0)<0){break p}r=0-m|0;break o}r=(d|0)<65536?(c|0)>65535?65536-m|0:o:o;h=0}d=e;break b}if(c){break b}break a}d=e;if(!c){break a}}c=h;if(k>>>0>>0){h=0;d=d+1|0;if((v|0)==(d|0)){break a}}q:{if(Ju(a,d)){h=c;if(c){break q}return 0}H[a+24>>2]=r;if(c){H[a+28>>2]=c;h=c;break q}Iu(a);h=H[a+28>>2];if(!h){return 0}r=H[a+24>>2]}H[b>>2]=r}return h}function rt(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,r=0,s=0,t=0,u=0,v=0,w=0;k=H[b+4>>2];a:{if(k>>>0>a>>>0){break a}h=H[b+8>>2];if(h>>>0>>0|h-a>>>0<8){break a}g=H[b+12>>2];d=g-8|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=I[a|0]|I[a+1|0]<<8;o=(d<<8|d>>>8)&65535;if(o>>>0<4){break a}d=a+2|0;if(d>>>0>>0|d>>>0>h>>>0|h-d>>>0<2){break a}d=g-10|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=I[a+2|0]|I[a+3|0]<<8;d=((d<<8|d>>>8)&65535)+a|0;if(d>>>0>>0|d>>>0>h>>>0|h-d>>>0<4){break a}e=g-14|0;H[b+12>>2]=e;if((e|0)<=0){break a}e=d+2|0;if(e>>>0>>0|e>>>0>h>>>0|h-e>>>0<2){break a}f=g-16|0;H[b+12>>2]=f;if((f|0)<=0){break a}g=I[d+2|0]|I[d+3|0]<<8;if(g){d=d+4|0;if(d>>>0>>0|d>>>0>h>>>0){break a}e=h-d|0;d=(g<<8|g>>>8)&65535;if(e>>>0>>0){break a}f=f-d|0;H[b+12>>2]=f;if((f|0)<=0){break a}}d=I[a|0]|I[a+1|0]<<8;u=(d<<8|d>>>8)&65535;d=I[a+6|0]|I[a+7|0]<<8;p=((d<<8|d>>>8)&65535)+a|0;v=h-p|0;g=a;a=I[a+4|0]|I[a+5|0]<<8;s=(a<<8|a>>>8)&65535;l=g+s|0;w=h-l|0;a=0;g=0;while(1){b:{if(!(a&1)){d=g;break b}i=0;if(4294967295/(o>>>0)>>>0<=m>>>0){break a}e=N(m,o);q=e+l|0;if(e){if(h>>>0>>0|k>>>0>q>>>0|h-q>>>0<0-e>>>0){break a}f=e+f|0;H[b+12>>2]=f;if((f|0)<=0){break a}}f=(m-r|0)+f|0;H[b+12>>2]=f;if((f|0)<=0|(e|0)>0){break a}c:{if(l>>>0<=q>>>0){d=g;break c}a=l;d=g;r=0-e&3;if(r){while(1){a=a-1|0;t=I[a|0]+1|0;d=d>>>0>t>>>0?d:t;i=i+1|0;if((r|0)!=(i|0)){continue}break}}if(e>>>0>4294967292){break c}while(1){e=I[a-1|0]+1|0;d=d>>>0>e>>>0?d:e;e=I[a-2|0]+1|0;d=d>>>0>e>>>0?d:e;e=I[a-3|0]+1|0;d=d>>>0>e>>>0?d:e;a=a-4|0;e=I[a|0]+1|0;d=d>>>0>e>>>0?d:e;if(a>>>0>q>>>0){continue}break}}r=m}d:{e:{f:{if((j|0)<=(n|0)){e=n+1|0;a=N(e,o);if(a){i=0;if(h>>>0>>0|k>>>0>l>>>0|a>>>0>w>>>0){break a}f=f-a|0;H[b+12>>2]=f;if((f|0)<=0){break a}}f=((n^-1)+j|0)+f|0;H[b+12>>2]=f;i=0;if((a|0)<0|(f|0)<=0){break a}j=N(j,o);if((j|0)<(a|0)){break f}j=e}a=j;if(d){break e}d=0;break d}i=a+l|0;a=j+l|0;while(1){j=I[a|0]+1|0;d=d>>>0>j>>>0?d:j;a=a+1|0;if(i>>>0>a>>>0){continue}break}a=e}j=a;i=0;if(h>>>0

>>0|k>>>0>p>>>0){break a}a=d<<3;if(a>>>0>v>>>0){break a}f=f-a|0;H[b+12>>2]=f;if((f|0)<=0){break a}}f=(g-d|0)+f|0;H[b+12>>2]=f;if((f|0)<=0){return 0}if((d|0)>(g|0)){e=(d<<3)+p|0;i=(g<<3)+p|0;while(1){a=I[i|0]|I[i+1|0]<<8;a=(((a<<8|a>>>8)&65535)-s|0)/(u|0)|0;n=(a|0)<(n|0)?n:a;m=(a|0)>(m|0)?m:a;i=i+8|0;if(e>>>0>i>>>0){continue}break}}g=d;a=(m|0)<(r|0);if(a|(j|0)<=(n|0)){continue}break}i=1;if(!c){break a}H[c>>2]=g}return i}function Rda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0;y=xb-448|0;xb=y;t=H[a+332>>2];a=H[b+84>>2];b=y;while(1){j=H[a+192>>2];n=G[c+96>>1];i=H[a+64>>2];k=G[c+32>>1];o=N(G[c>>1],H[a>>2])<<13|1024;p=N(H[a+128>>2],G[c+64>>1]);l=o+N(p,-11586)>>11;h=N(H[a+224>>2],G[c+112>>1]);m=N(H[a+32>>2],G[c+16>>1]);f=N(H[a+96>>2],G[c+48>>1]);u=m-f|0;g=N(H[a+160>>2],G[c+80>>1]);q=h+(u-g|0)<<2;H[b+320>>2]=l-q;H[b+96>>2]=l+q;n=N(j,n);i=N(i,k);k=N(n+i|0,9058);l=k+N(n,-14084)|0;q=o+N(p,2578)|0;r=l+q|0;j=h<<13;h=N(f+g|0,-1297)-j|0;x=N(f+m|0,10935);v=h+(x+N(f,-3474)|0)|0;H[b+384>>2]=r-v>>11;H[b+32>>2]=r+v>>11;n=N(n,-11295)+N(i,5027)|0;r=o+N(p,-7223)|0;v=n+r|0;s=h;h=g+m|0;w=N(h,9810);s=s+(w+N(g,-19447)|0)|0;H[b+352>>2]=v-s>>11;H[b+64>>2]=v+s>>11;l=q-l|0;u=N(u,3826)-j|0;s=N(f,5529);f=N(g-f|0,11512);q=u+(s+f|0)|0;H[b+256>>2]=l-q>>11;H[b+160>>2]=l+q>>11;p=o+N(p,10438)|0;o=k+N(i,2237)|0;i=p-o|0;k=N(h,6164);l=u+(k+N(m,-8693)|0)|0;H[b+224>>2]=i-l>>11;H[b+192>>2]=i+l>>11;p=p+o|0;m=j+(w+(x+N(m,-9232)|0)|0)|0;H[b+416>>2]=p-m>>11;H[b>>2]=m+p>>11;m=r-n|0;f=j+(k+(f+N(g,-13850)|0)|0)|0;H[b+288>>2]=m-f>>11;H[b+128>>2]=f+m>>11;b=b+4|0;a=a+4|0;c=c+2|0;z=z+1|0;if((z|0)!=8){continue}break}b=t+128|0;p=0;a=y;while(1){f=H[a+12>>2];m=H[a+4>>2];i=N(f+m|0,10935);k=H[a+24>>2];t=H[a+8>>2];l=N(k+t|0,9058);c=H[(p<<2)+d>>2]+e|0;q=H[a+28>>2];o=q<<13;g=H[a+20>>2];u=g+m|0;h=N(u,9810);r=o+(h+(i+N(m,-9232)|0)|0)|0;x=l+N(t,2237)|0;n=(H[a>>2]<<13)+131072|0;j=H[a+16>>2];v=n+N(j,10438)|0;w=x+v|0;F[c|0]=I[b+(r+w>>>18&1023)|0];F[c+13|0]=I[b+(w-r>>>18&1023)|0];s=i+N(f,-3474)|0;i=N(f+g|0,-1297)-o|0;r=s+i|0;l=l+N(k,-14084)|0;w=n+N(j,2578)|0;s=l+w|0;F[c+1|0]=I[b+(r+s>>>18&1023)|0];F[c+12|0]=I[b+(s-r>>>18&1023)|0];i=i+(h+N(g,-19447)|0)|0;k=N(k,-11295)+N(t,5027)|0;t=n+N(j,-7223)|0;h=k+t|0;F[c+2|0]=I[b+(i+h>>>18&1023)|0];F[c+11|0]=I[b+(h-i>>>18&1023)|0];i=m-f|0;h=q+(i-g|0)<<13;j=n+N(j,-11586)|0;F[c+3|0]=I[b+(h+j>>>18&1023)|0];F[c+10|0]=I[b+(j-h>>>18&1023)|0];j=N(u,6164);h=o+N(g,-13850)|0;g=N(g-f|0,11512);n=j+(h+g|0)|0;k=t-k|0;F[c+4|0]=I[b+(n+k>>>18&1023)|0];F[c+9|0]=I[b+(k-n>>>18&1023)|0];h=g+N(f,5529)|0;f=N(i,3826)-o|0;g=h+f|0;o=w-l|0;F[c+5|0]=I[b+(g+o>>>18&1023)|0];F[c+8|0]=I[b+(o-g>>>18&1023)|0];f=f+(j+N(m,-8693)|0)|0;g=v-x|0;F[c+6|0]=I[b+(f+g>>>18&1023)|0];F[c+7|0]=I[b+(g-f>>>18&1023)|0];a=a+32|0;p=p+1|0;if((p|0)!=14){continue}break}xb=y+448|0}function p6(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;d=xb-176|0;xb=d;H[d+12>>2]=0;H[197455]=0;H[d+72>>2]=398820;H[d+8>>2]=398800;H[d+16>>2]=398580;j=d+72|0;k=d+20|0;ba(1700,j|0,k|0);e=H[197455];H[197455]=0;a:{b:{if((e|0)!=1){H[d+144>>2]=0;H[d+148>>2]=-1;H[197455]=0;H[d+72>>2]=398600;H[d+8>>2]=398560;H[d+16>>2]=398580;o=aa(1701,k|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break b}break a}break a}H[d+52>>2]=0;H[d+56>>2]=0;H[d+60>>2]=0;H[d+64>>2]=0;H[d+68>>2]=24;H[d+20>>2]=398960;c:{d:{e=H[b>>2];i=H[b+4>>2];if((e|0)==(i|0)){break d}l=d+24|0;m=d+20|0;n=d+16|0;e:{if((c|0)==-1){while(1){g=M[e>>3];b=H[d+16>>2]-12|0;c=H[b>>2]+m|0;H[c>>2]=H[c>>2]&-261|4;h=l+H[b>>2]|0;if(P(g)<2147483648){c=~~g}else{c=-2147483648}b=0;f:{if(+(c|0)==g){break f}f=g<0?-g:g;b=2;if(f>1){break f}f=f*10;b=3;if(f>=1){break f}f=f*10;b=4;if(f>=1){break f}f=f*10;b=5;if(f>=1){break f}f=f*10;b=6;if(f>=1){break f}f=f*10;b=7;if(f>=1){break f}f=f*10;b=8;if(f>=1){break f}f=f*10;b=9;if(f>=1){break f}f=f*10;b=10;if(f>=1){break f}f=f*10;b=11;if(f>=1){break f}b=12;if(f*10>=1){break f}b=0}H[h>>2]=b;H[197455]=0;b=Ra(1702,n|0,+g)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[197455]=0;ca(1704,b|0,398540,1)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}e=e+8|0;if((i|0)!=(e|0)){continue}break d}}while(1){g:{g=M[e>>3];b=H[d+16>>2]-12|0;h=H[b>>2]+m|0;H[h>>2]=H[h>>2]&-261|4;H[l+H[b>>2]>>2]=c;H[197455]=0;b=Ra(1702,n|0,+g)|0;h=H[197455];H[197455]=0;if((h|0)==1){break g}H[197455]=0;ca(1704,b|0,398540,1)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}e=e+8|0;if((i|0)!=(e|0)){continue}break d}break}e=$()|0;_()|0;break c}e=$()|0;_()|0;break c}H[197455]=0;c=d+16|0;b=da(1705,d+168|0,c|0)|0;e=H[197455];H[197455]=0;h:{if((e|0)==1){break h}i:{e=c+H[H[d+16>>2]-12>>2]|0;if(I[e+16|0]&5){break i}e=H[e+24>>2];i=H[H[e>>2]+16>>2];H[197455]=0;cb(i|0,d+152|0,e|0,-1,-1,2,16);e=H[197455];H[197455]=0;if((e|0)!=1){if((H[d+160>>2]&H[d+164>>2])!=-1){break i}c=c+H[H[d+16>>2]-12>>2]|0;e=H[c+16>>2];H[197455]=0;ba(1706,c|0,e|4);c=H[197455];H[197455]=0;if((c|0)!=1){break i}e=$()|0;_()|0;Hg(b);break c}e=$()|0;_()|0;Hg(b);break c}Hg(b);H[197455]=0;ba(1703,a|0,k|0);a=H[197455];H[197455]=0;if((a|0)==1){break h}H[d+72>>2]=398600;H[d+8>>2]=398560;H[d+20>>2]=398960;H[d+16>>2]=398580;if(F[d+63|0]<0){Kb(H[d+52>>2])}wf(o);ge(j);xb=d+176|0;return}e=$()|0;_()|0}iq(d+8|0);ea(e|0);X()}a=$()|0;_()|0;ge(j);ea(a|0);X()}function xB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb-48|0;xb=g;c=H[a+12>>2];a:{b:{if(c&131072){break b}e=H[H[a+188>>2]+(b<<2)>>2];if(!e){c=H[a>>2];a=H[a+628>>2];H[g+4>>2]=b;H[g>>2]=0;Pb(a,c,275623,g);d=0;break a}if(!(!(c&2048)|!((J[a+94>>1]|256)&c))){c:{if(!(c&512)){break c}d=H[a+596>>2];if(!d){break c}Kb(d);c=H[a+12>>2]}c=c&-513;H[a+12>>2]=c;d:{d=H[a+616>>2];if(d>>>0>=e>>>0){f=H[a+184>>2]+(b<<2)|0;if(K[f>>2]<=d-e>>>0){break d}}H[a+504>>2]=-1;d=0;break a}H[a+600>>2]=e;H[a+596>>2]=H[a+612>>2]+H[f>>2];break b}e:{if(e>>>0<=K[a+600>>2]){f=H[a+596>>2];break e}H[a+504>>2]=-1;if(!(c&512)){c=H[a+628>>2];a=H[a>>2];H[g+20>>2]=b;H[g+16>>2]=a;Pb(c,283810,276421,g+16|0);d=0;break a}c=H[a+596>>2];if(c){Kb(c);H[a+596>>2]=0}c=e>>>0<4294966272?e+1023&-1024:0;c=(c|0)==-1024?0:c;H[a+600>>2]=c;f:{if((c|0)<=0){H[a+12>>2]=H[a+12>>2]|512;break f}f=Tb(c);H[a+596>>2]=f;H[a+12>>2]=H[a+12>>2]|512;if(!f){break f}if(H[a+600>>2]){break e}}b=H[a+628>>2];c=H[a>>2];H[g+36>>2]=H[a+472>>2];H[g+32>>2]=c;Pb(b,283824,276909,g+32|0);H[a+600>>2]=0;d=0;break a}c=e;d=xb-80|0;xb=d;g:{if(!(I[a+13|0]&8)){h=b<<2;if((zb[H[a+640>>2]](H[a+628>>2],H[h+H[a+184>>2]>>2],0)|0)!=H[h+H[a+184>>2]>>2]){c=H[a+628>>2];f=H[a>>2];h=H[a+472>>2];i=H[a+500>>2];H[d+44>>2]=b;H[d+40>>2]=i;H[d+36>>2]=h;H[d+32>>2]=f;Pb(c,283810,279674,d+32|0);c=-1;break g}f=zb[H[a+632>>2]](H[a+628>>2],f,c)|0;if((f|0)==(c|0)){break g}h=H[a+628>>2];i=H[a>>2];k=H[a+472>>2];l=H[a+500>>2];H[d+16>>2]=c;H[d+12>>2]=f;H[d+8>>2]=l;H[d+4>>2]=k;H[d>>2]=i;Pb(h,283810,279817,d);c=-1;break g}i=H[a+616>>2];h=H[H[a+184>>2]+(b<<2)>>2];if(i>>>0>>0){f=H[a+628>>2];k=H[a>>2];l=H[a+472>>2];j=H[a+500>>2];H[d+68>>2]=c;H[d- -64>>2]=i-h;H[d+60>>2]=b;H[d+56>>2]=j;H[d+52>>2]=l;H[d+48>>2]=k;Pb(f,283810,280199,d+48|0);c=-1;break g}Kc(f,H[a+612>>2]+h|0,c)}xb=d+80|0;d=0;if((c|0)!=(e|0)){break a}c=H[a+12>>2];if(c&(J[a+94>>1]|256)){break b}wq(H[a+596>>2],e);c=H[a+12>>2]}if(!(c&32)){d=0;if(!(zb[H[a+516>>2]](a)|0)){break a}c=H[a+12>>2]|32;H[a+12>>2]=c}H[a+504>>2]=b;e=H[a+72>>2];f=H[a+56>>2];d=H[a+68>>2];if(f>>>0<0-d>>>0){j=((d+f|0)-1>>>0)/(d>>>0)|0}else{j=0}H[a+472>>2]=N(e,(b>>>0)%(j>>>0)|0);f=H[a+60>>2];if(f>>>0<0-e>>>0){e=((e+f|0)-1>>>0)/(e>>>0)|0}else{e=0}H[a+500>>2]=N(d,(b>>>0)%(e>>>0)|0);e=0;if(c&131072){d=0}else{e=H[a+596>>2];d=H[H[a+188>>2]+(b<<2)>>2]}H[a+608>>2]=d;H[a+604>>2]=e;d=zb[H[a+520>>2]](a,(b>>>0)/K[a+176>>2]&65535)|0}xb=g+48|0;return d}function cka(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;h=xb-16|0;xb=h;if(Ac(c,b,105102,0)){e=H[a+124>>2];d=H[e>>2];a:{if(H[d+12>>2]!=1){break a}f=H[e+8>>2];if((f|0)==-1){f=H[d+8>>2];if(f){H[h+4>>2]=0;d=f;f=H[b+80>>2];f=zb[H[f+164>>2]](b,H[b+84>>2],d,h+4|0,H[f+20>>2])|0;f=f?H[h+4>>2]:0}else{f=0}H[e+8>>2]=f}if(!f){break a}n=H[c+68>>2];if(!n){break a}o=H[c+80>>2];g=H[b+16>>2];j=h+8|0;while(1){m=N(l,20)+o|0;if(I[m+19|0]==4){d=H[m>>2];H[h+12>>2]=f;H[h+8>>2]=d;H[h+4>>2]=f;d=0;b:{c:{if(!H[e+40>>2]){break c}while(1){i=8;if(Ff(g,J[H[e+36>>2]+(d<<3)>>1],h+4|0,2,I[e+44|0])){break b}d=d+1|0;k=H[e+40>>2];if(d>>>0>>0){continue}break}d=0;if(!k){break c}while(1){if(Ff(g,J[H[e+36>>2]+(d<<3)>>1],j,2,I[e+44|0])){break b}d=d+1|0;if(d>>>0>2]){continue}break}}d=0;d:{if(!H[e+64>>2]){break d}while(1){i=8;if(Ff(g,J[H[e+60>>2]+(d<<3)>>1],h+4|0,2,I[e+68|0])){break b}d=d+1|0;k=H[e+64>>2];if(d>>>0>>0){continue}break}d=0;if(!k){break d}while(1){if(Ff(g,J[H[e+60>>2]+(d<<3)>>1],j,2,I[e+68|0])){break b}d=d+1|0;if(d>>>0>2]){continue}break}}d=0;e:{if(!H[e+52>>2]){break e}while(1){i=11;if(Ff(g,J[H[e+48>>2]+(d<<3)>>1],h+4|0,2,I[e+56|0])){break b}d=d+1|0;k=H[e+52>>2];if(d>>>0>>0){continue}break}d=0;if(!k){break e}while(1){if(Ff(g,J[H[e+48>>2]+(d<<3)>>1],j,2,I[e+56|0])){break b}d=d+1|0;if(d>>>0>2]){continue}break}}d=0;i=4;if(!H[e+28>>2]){break b}f:{while(1){if(Ff(g,J[H[e+24>>2]+(d<<3)>>1],h+4|0,2,I[e+32|0])){break f}d=d+1|0;k=H[e+28>>2];if(d>>>0>>0){continue}break}d=0;if(!k){break b}while(1){if(Ff(g,J[H[e+24>>2]+(d<<3)>>1],j,2,I[e+32|0])){break f}d=d+1|0;if(d>>>0>2]){continue}break}break b}i=11}F[m+19|0]=i}l=l+1|0;if((n|0)!=(l|0)){continue}break}}Fn(b,c,4,12,15,15);g=H[c+68>>2];g:{if(!g){break g}f=g-1|0;e=0;d=H[c+80>>2];i=I[d+15|0];while(1){h:{if((e|0)==(f|0)){e=g;break h}e=e+1|0;if((i|0)==I[(d+N(e,20)|0)+15|0]){continue}}break}if(!g){break g}i=H[c+80>>2];j=I[i+15|0];d=0;while(1){f=e;e=H[b+16>>2];i:{j:{switch(j&15){case 0:case 1:oE(H[a+124>>2],e,c,d,f);break i;case 2:case 4:break j;default:break i}}j=H[a+124>>2];if(I[(N(f,20)+i|0)-2|0]==12?I[j+5|0]:0){break i}oE(j,e,c,d,f)}l=H[c+68>>2];e=f+1|0;d=e>>>0>>0?l:e;i=H[c+80>>2];j=I[(i+N(f,20)|0)+15|0];e=f;while(1){k:{e=e+1|0;if(l>>>0<=e>>>0){e=d;break k}if(I[(N(e,20)+i|0)+15|0]==(j|0)){continue}}break}d=f;if(g>>>0>d>>>0){continue}break}}Ac(c,b,105679,0)}xb=h+16|0}function NH(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i=xb-1120|0;xb=i;j=H[a+68>>2];l=f?f:i+92|0;H[l>>2]=0;c=b>>>0>>0?c:b;j=c>>>0>j>>>0?j:c;if(e){F[d|0]=0}a:{if(b>>>0>=j>>>0){break a}c=b>>>0>j>>>0?j:b;b:{if((g|0)!=1246973774){if((g|0)!=1413830740){break a}g=H[a+80>>2];H[l>>2]=0;if(b>>>0>=j>>>0){k=j-c|0;break a}n=j-1|0;a=1;k=i+96|1;c:{if(!(h&1)){h=i+1120|0;b=c;while(1){F[i+96|0]=b?124:60;m=g+N(b,20)|0;H[i+16>>2]=H[m>>2];f=jg(k,1023,106538,i+16|0);H[i>>2]=H[m+8>>2];f=((f|0)>0?f:0)+k|0;m=jg(f,h-f|0,105573,i);f=((m|0)>0?m:0)+f|0;if((b|0)==(n|0)){F[f|0]=62;f=f+1|0}f=f-(i+96|0)|0;if(f>>>0>=e>>>0){break b}a=Ob(d,i+96|0,f);H[l>>2]=f+H[l>>2];d=a+f|0;F[d|0]=0;e=e-f|0;b=b+1|0;a=j>>>0>b>>>0;if((b|0)!=(j|0)){continue}break}break c}b=c;while(1){F[i+96|0]=b?124:60;H[i+32>>2]=H[g+N(b,20)>>2];f=jg(k,1023,106538,i+32|0);f=((f|0)>0?f:0)+k|0;if((b|0)==(n|0)){F[f|0]=62;f=f+1|0}f=f-(i+96|0)|0;if(f>>>0>=e>>>0){break b}a=Ob(d,i+96|0,f);H[l>>2]=f+H[l>>2];d=a+f|0;F[d|0]=0;e=e-f|0;b=b+1|0;a=j>>>0>b>>>0;if((b|0)!=(j|0)){continue}break}}if(a){break a}k=j-c|0;break a}n=H[a+80>>2];H[l>>2]=0;if(b>>>0>=j>>>0){k=j-c|0;break a}m=j-1|0;a=1;b=i+96|0;k=b|6;g=b|2;d:{e:{if(!(h&1)){p=i+1120|0;q=I[106583];f=I[106579]|I[106580]<<8|(I[106581]<<16|I[106582]<<24);b=c;while(1){F[i+97|0]=123;F[i+96|0]=b?44:91;F[g+4|0]=q;F[g|0]=f;F[g+1|0]=f>>>8;F[g+2|0]=f>>>16;F[g+3|0]=f>>>24;o=n+N(b,20)|0;H[i+64>>2]=H[o>>2];h=jg(k,1018,105428,i- -64|0);H[i+48>>2]=H[o+8>>2];h=((h|0)>0?h:0)+k|0;o=jg(h,p-h|0,106351,i+48|0);h=((o|0)>0?o:0)+h|0;F[h|0]=125;if((b|0)!=(m|0)){h=h+1|0}else{F[h+1|0]=93;h=h+2|0}h=h-(i+96|0)|0;if(h>>>0>=e>>>0){break d}a=Ob(d,i+96|0,h);H[l>>2]=h+H[l>>2];d=a+h|0;F[d|0]=0;e=e-h|0;b=b+1|0;a=j>>>0>b>>>0;if((b|0)!=(j|0)){continue}break}break e}p=I[106583];f=I[106579]|I[106580]<<8|(I[106581]<<16|I[106582]<<24);b=c;while(1){F[i+97|0]=123;F[i+96|0]=b?44:91;F[g+4|0]=p;F[g|0]=f;F[g+1|0]=f>>>8;F[g+2|0]=f>>>16;F[g+3|0]=f>>>24;H[i+80>>2]=H[n+N(b,20)>>2];h=jg(k,1018,105428,i+80|0);h=((h|0)>0?h:0)+k|0;F[h|0]=125;if((b|0)!=(m|0)){h=h+1|0}else{F[h+1|0]=93;h=h+2|0}h=h-(i+96|0)|0;if(h>>>0>=e>>>0){break d}a=Ob(d,i+96|0,h);H[l>>2]=h+H[l>>2];d=a+h|0;F[d|0]=0;e=e-h|0;b=b+1|0;a=j>>>0>b>>>0;if((b|0)!=(j|0)){continue}break}}if(a){break a}k=j-c|0;break a}if(!a){k=j-c|0;break a}k=b-c|0;break a}if(!(a&1)){k=j-c|0;break a}k=b-c|0}xb=i+1120|0;return k|0}function ao(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;j=H[b+4>>2];a:{if(j>>>0>a>>>0){break a}g=H[b+8>>2];if(g>>>0>>0|g-a>>>0<8){break a}f=H[b+12>>2];c=f-8|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[a|0]|I[a+1|0]<<8;n=(c<<8|c>>>8)&65535;if(n>>>0<4){break a}c=a+2|0;if(c>>>0>>0|c>>>0>g>>>0|g-c>>>0<2){break a}c=f-10|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[a+2|0]|I[a+3|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;if(c>>>0>>0|c>>>0>g>>>0|g-c>>>0<4){break a}d=f-14|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=c+2|0;if(d>>>0>>0|d>>>0>g>>>0|g-d>>>0<2){break a}e=f-16|0;H[b+12>>2]=e;if((e|0)<=0){break a}f=I[c+2|0]|I[c+3|0]<<8;if(f){c=c+4|0;if(c>>>0>>0|c>>>0>g>>>0){break a}d=g-c|0;c=(f<<8|f>>>8)&65535;if(d>>>0>>0){break a}e=e-c|0;H[b+12>>2]=e;if((e|0)<=0){break a}}c=I[a|0]|I[a+1|0]<<8;t=(c<<8|c>>>8)&65535;c=I[a+6|0]|I[a+7|0]<<8;o=((c<<8|c>>>8)&65535)+a|0;u=g-o|0;f=a;a=I[a+4|0]|I[a+5|0]<<8;r=(a<<8|a>>>8)&65535;k=f+r|0;v=g-k|0;a=0;f=0;while(1){b:{if(!(a&1)){c=f;break b}h=0;if(4294967295/(n>>>0)>>>0<=l>>>0){break a}d=N(l,n);p=d+k|0;if(d){if(g>>>0

>>0|j>>>0>p>>>0|g-p>>>0<0-d>>>0){break a}e=d+e|0;H[b+12>>2]=e;if((e|0)<=0){break a}}e=(l-q|0)+e|0;H[b+12>>2]=e;if((e|0)<=0|(d|0)>0){break a}c:{if(k>>>0<=p>>>0){c=f;break c}a=k;c=f;q=0-d&3;if(q){while(1){a=a-1|0;s=I[a|0]+1|0;c=c>>>0>s>>>0?c:s;h=h+1|0;if((q|0)!=(h|0)){continue}break}}if(d>>>0>4294967292){break c}while(1){d=I[a-1|0]+1|0;c=c>>>0>d>>>0?c:d;d=I[a-2|0]+1|0;c=c>>>0>d>>>0?c:d;d=I[a-3|0]+1|0;c=c>>>0>d>>>0?c:d;a=a-4|0;d=I[a|0]+1|0;c=c>>>0>d>>>0?c:d;if(a>>>0>p>>>0){continue}break}}q=l}d:{e:{f:{if((i|0)<=(m|0)){d=m+1|0;a=N(d,n);if(a){h=0;if(g>>>0>>0|j>>>0>k>>>0|a>>>0>v>>>0){break a}e=e-a|0;H[b+12>>2]=e;if((e|0)<=0){break a}}e=((m^-1)+i|0)+e|0;H[b+12>>2]=e;h=0;if((a|0)<0|(e|0)<=0){break a}i=N(i,n);if((i|0)<(a|0)){break f}i=d}a=i;if(c){break e}c=0;break d}h=a+k|0;a=i+k|0;while(1){i=I[a|0]+1|0;c=c>>>0>i>>>0?c:i;a=a+1|0;if(h>>>0>a>>>0){continue}break}a=d}i=a;h=0;if(g>>>0>>0|j>>>0>o>>>0){break a}a=c<<2;if(a>>>0>u>>>0){break a}e=e-a|0;H[b+12>>2]=e;if((e|0)<=0){break a}}e=(f-c|0)+e|0;H[b+12>>2]=e;if((e|0)<=0){return 0}if((c|0)>(f|0)){d=(c<<2)+o|0;h=(f<<2)+o|0;while(1){a=I[h|0]|I[h+1|0]<<8;a=(((a<<8|a>>>8)&65535)-r|0)/(t|0)|0;m=(a|0)<(m|0)?m:a;l=(a|0)>(l|0)?l:a;h=h+4|0;if(d>>>0>h>>>0){continue}break}}f=c;a=(l|0)<(q|0);if(a|(i|0)<=(m|0)){continue}break}h=1}return h}function rR(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;j=xb-1072|0;xb=j;H[j+16>>2]=f;H[j+20>>2]=g;H[j+24>>2]=h;H[j+28>>2]=i;a=j+960|0;H[j+956>>2]=a;k=jg(a,100,239055,j+16|0);H[j+48>>2]=594;a=j+48|0;p=Ed(j+536|0,0,a);H[j+48>>2]=594;l=Ed(j+528|0,0,a);n=j+544|0;a:{b:{c:{d:{if(k>>>0>=100){H[197455]=0;a=va(3442)|0;k=H[197455];H[197455]=0;if((k|0)==1){break d}H[j>>2]=f;H[j+4>>2]=g;H[197455]=0;H[j+8>>2]=h;H[j+12>>2]=i;k=la(3464,j+956|0,a|0,239055,j|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}e:{if((k|0)!=-1){ae(p,H[j+956>>2]);ae(l,Tb(k<<2));if(H[l>>2]){break e}}H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)==1){break d}break a}n=H[l>>2]}H[197455]=0;a=H[d+28>>2];H[j+520>>2]=a;H[a+4>>2]=H[a+4>>2]+1;a=H[197455];H[197455]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){H[197455]=0;r=aa(3342,j+520|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break k}H[197455]=0;a=H[j+956>>2];la(3458,r|0,a|0,a+k|0,n|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break k}q=(k|0)>0?I[H[j+956>>2]]==45:q;h=Dc(j+488|0);f=Dc(j+472|0);g=Dc(j+456|0);H[197455]=0;Ea(3500,c|0,q|0,j+520|0,j+512|0,j+508|0,j+504|0,h|0,f|0,g|0,j+452|0);a=H[197455];H[197455]=0;if((a|0)==1){break j}H[j+36>>2]=594;i=Ed(j+40|0,0,j+36|0);c=j+48|0;a=H[j+452>>2];l:{if((a|0)<(k|0)){s=H[j+452>>2];if(I[f+11|0]>>>7|0){m=H[f+4>>2]}else{m=I[f+11|0]}if(I[g+11|0]>>>7|0){o=H[g+4>>2]}else{o=I[g+11|0]}a=(s+(m+(o+(k-a<<1)|0)|0)|0)+1|0;break l}o=H[j+452>>2];if(I[g+11|0]>>>7|0){a=H[g+4>>2]}else{a=I[g+11|0]}if(I[f+11|0]>>>7|0){m=H[f+4>>2]}else{m=I[f+11|0]}a=(o+(a+m|0)|0)+2|0}if(a>>>0<101){break i}ae(i,Tb(a<<2));c=H[i>>2];if(c){break i}H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)!=1){break a}break h}k=$()|0;_()|0;break b}k=$()|0;_()|0;break f}k=$()|0;_()|0;break g}a=H[d+4>>2];H[197455]=0;Ga(3501,c|0,j+36|0,j+32|0,a|0,n|0,(k<<2)+n|0,r|0,q|0,j+512|0,H[j+508>>2],H[j+504>>2],h|0,f|0,g|0,H[j+452>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){H[197455]=0;c=ma(1709,b|0,c|0,H[j+36>>2],H[j+32>>2],d|0,e|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break c}}}k=$()|0;_()|0;Bc(i)}Sc(g);Sc(f);_b(h)}a=H[j+520>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break b}k=$()|0;_()|0;break b}Bc(i);Sc(g);Sc(f);_b(h);a=H[j+520>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}Bc(l);Bc(p);xb=j+1072|0;return c|0}Bc(l);Bc(p);ea(k|0);X()}X()}function eG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=O(0),j=O(0),k=O(0),l=O(0),m=0;d=xb-32|0;xb=d;H[d+24>>2]=0;H[d+28>>2]=1065353216;H[d+16>>2]=1065353216;H[d+20>>2]=0;h=I[a|0]|I[a+1|0]<<8;c=h<<8|h>>>8;f=c&65535;a:{if(c&1){c=I[a+4|0]|I[a+5|0]<<8;m=(c<<8|c>>>8)<<16>>16;c=a+6|0;g=I[c|0]|I[c+1|0]<<8;g=(g<<8|g>>>8)<<16>>16;break a}c=a+4|0;m=F[a+4|0];g=F[a+5|0]}F[d+12|0]=0;F[d|0]=0;h=h<<22>>31;g=h&g;L[d+8>>2]=g|0;h=h&m;L[d+4>>2]=h|0;b:{if(f&8){c=I[c+2|0]|I[c+3|0]<<8;i=O(O((c<<8|c>>>8)<<16>>16)*O(6103515625e-14));L[d+16>>2]=i;L[d+28>>2]=i;g=1;break b}if(f&64){f=I[c+2|0]|I[c+3|0]<<8;L[d+16>>2]=O((f<<8|f>>>8)<<16>>16)*O(6103515625e-14);c=I[c+4|0]|I[c+5|0]<<8;L[d+28>>2]=O((c<<8|c>>>8)<<16>>16)*O(6103515625e-14);g=1;break b}if(f&128){f=I[c+2|0]|I[c+3|0]<<8;L[d+16>>2]=O((f<<8|f>>>8)<<16>>16)*O(6103515625e-14);f=I[c+4|0]|I[c+5|0]<<8;L[d+20>>2]=O((f<<8|f>>>8)<<16>>16)*O(6103515625e-14);f=I[c+6|0]|I[c+7|0]<<8;L[d+24>>2]=O((f<<8|f>>>8)<<16>>16)*O(6103515625e-14);c=I[c+8|0]|I[c+9|0]<<8;L[d+28>>2]=O((c<<8|c>>>8)<<16>>16)*O(6103515625e-14);g=1;break b}g=(h|g)!=0}c:{if(!g){break c}c=H[b+4>>2];if(((I[a|0]|I[a+1|0]<<8)&24)==8){if(!c){break c}while(1){d:{if(c>>>0<=e>>>0){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;c=H[b+4>>2];a=784992;break d}a=H[b+8>>2]+(e<<4)|0}L[a+4>>2]=L[d+4>>2]+L[a+4>>2];L[a+8>>2]=L[d+8>>2]+L[a+8>>2];e=e+1|0;if(e>>>0>>0){continue}break}if(!c){break c}k=L[d+16>>2];e=0;while(1){e:{if(c>>>0<=e>>>0){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;c=H[b+4>>2];a=784992;break e}a=H[b+8>>2]+(e<<4)|0}l=L[d+24>>2];i=L[a+4>>2];j=L[a+8>>2];L[a+8>>2]=O(i*L[d+20>>2])+O(j*L[d+28>>2]);L[a+4>>2]=O(i*k)+O(j*l);e=e+1|0;if(e>>>0>>0){continue}break}break c}if(!c){break c}k=L[d+16>>2];while(1){f:{if(c>>>0<=e>>>0){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;c=H[b+4>>2];a=784992;break f}a=H[b+8>>2]+(e<<4)|0}l=L[d+24>>2];i=L[a+4>>2];j=L[a+8>>2];L[a+8>>2]=O(i*L[d+20>>2])+O(j*L[d+28>>2]);L[a+4>>2]=O(i*k)+O(j*l);e=e+1|0;if(e>>>0>>0){continue}break}if(!c){break c}e=0;while(1){g:{if(c>>>0<=e>>>0){a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;c=H[b+4>>2];a=784992;break g}a=H[b+8>>2]+(e<<4)|0}L[a+4>>2]=L[d+4>>2]+L[a+4>>2];L[a+8>>2]=L[d+8>>2]+L[a+8>>2];e=e+1|0;if(e>>>0>>0){continue}break}}xb=d+32|0}function TF(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;d=H[a>>2];if((d|0)>=0){g=(b|0)>0?b:0;if(d>>>0>>0){b=d;while(1){b=((b>>>1|0)+b|0)+8|0;if(g>>>0>=b>>>0){continue}break}a:{if(!(b>>>0>>0|b>>>0>153391688)){f=Tb(N(b,28));if(f){i=H[a+4>>2];b:{if(!i){break b}d=0;if(i-1>>>0>=7){j=i&-8;while(1){c=N(d,28)+f|0;H[c>>2]=0;H[c+4>>2]=0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;c=N(d|1,28)+f|0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;c=N(d|2,28)+f|0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;c=N(d|3,28)+f|0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;c=N(d|4,28)+f|0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;c=N(d|5,28)+f|0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;c=N(d|6,28)+f|0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;c=N(d|7,28)+f|0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=d+8|0;e=e+8|0;if((j|0)!=(e|0)){continue}break}}c=i&7;if(c){while(1){e=N(d,28)+f|0;H[e>>2]=0;H[e+4>>2]=0;H[e+24>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;d=d+1|0;h=h+1|0;if((c|0)!=(h|0)){continue}break}}if(!i){e=0;break b}h=0;while(1){e=N(h,28);d=e+f|0;e=e+H[a+8>>2]|0;H[d>>2]=H[e>>2];c=H[d+4>>2];H[d+4>>2]=H[e+4>>2];H[e+4>>2]=c;c=H[d+8>>2];H[d+8>>2]=H[e+8>>2];H[e+8>>2]=c;c=H[d+12>>2];H[d+12>>2]=H[e+12>>2];H[e+12>>2]=c;H[d+24>>2]=H[e+24>>2];c=H[e+20>>2];H[d+16>>2]=H[e+16>>2];H[d+20>>2]=c;e=H[a+4>>2];h=h+1|0;if(e>>>0>h>>>0){continue}break}if(!e){e=0;break b}d=e;while(1){d=H[a+8>>2]+N(d,28)|0;H[d-20>>2]=0;c=d-16|0;Kb(H[c>>2]);H[c>>2]=0;d=d-24|0;H[d>>2]=0;H[d+4>>2]=0;d=H[a+4>>2]-1|0;H[a+4>>2]=d;if(d){continue}break}}H[a+4>>2]=e;Kb(H[a+8>>2])}if(f){break a}}H[a>>2]=-1;return 0}H[a>>2]=b;H[a+8>>2]=f}b=H[a+4>>2];c:{if(g>>>0>b>>>0){while(1){H[a+4>>2]=b+1;b=H[a+8>>2]+N(b,28)|0;H[b>>2]=0;H[b+4>>2]=0;H[b+24>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;b=H[a+4>>2];if(g>>>0>b>>>0){continue}break c}}if(b>>>0<=g>>>0){break c}while(1){b=H[a+8>>2]+N(b,28)|0;H[b-20>>2]=0;d=b-16|0;Kb(H[d>>2]);H[d>>2]=0;b=b-24|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+4>>2]-1|0;H[a+4>>2]=b;if(b>>>0>g>>>0){continue}break}}H[a+4>>2]=g;a=1}else{a=0}return a|0}function Taa(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a=J[a+26>>1];d=N(a,g);c=e>>>0<8;j=h<<2;while(1){g=e;if(!c){while(1){h=I[i+3|0]^255;H[b>>2]=(N(h,I[i+1|0]^255)>>>0)/255<<8|(N(h,I[i|0]^255)>>>0)/255|(N(h,I[i+2|0]^255)>>>0)/255<<16|-16777216;h=a+i|0;i=I[h+3|0]^255;H[b+4>>2]=(N(i,I[h|0]^255)>>>0)/255|(N(i,I[h+1|0]^255)>>>0)/255<<8|(N(i,I[h+2|0]^255)>>>0)/255<<16|-16777216;h=a+h|0;i=I[h+3|0]^255;H[b+8>>2]=(N(i,I[h|0]^255)>>>0)/255|(N(i,I[h+1|0]^255)>>>0)/255<<8|(N(i,I[h+2|0]^255)>>>0)/255<<16|-16777216;h=a+h|0;i=I[h+3|0]^255;H[b+12>>2]=(N(i,I[h|0]^255)>>>0)/255|(N(i,I[h+1|0]^255)>>>0)/255<<8|(N(i,I[h+2|0]^255)>>>0)/255<<16|-16777216;h=a+h|0;i=I[h+3|0]^255;H[b+16>>2]=(N(i,I[h|0]^255)>>>0)/255|(N(i,I[h+1|0]^255)>>>0)/255<<8|(N(i,I[h+2|0]^255)>>>0)/255<<16|-16777216;h=a+h|0;i=I[h+3|0]^255;H[b+20>>2]=(N(i,I[h|0]^255)>>>0)/255|(N(i,I[h+1|0]^255)>>>0)/255<<8|(N(i,I[h+2|0]^255)>>>0)/255<<16|-16777216;h=a+h|0;i=I[h+3|0]^255;H[b+24>>2]=(N(i,I[h|0]^255)>>>0)/255|(N(i,I[h+1|0]^255)>>>0)/255<<8|(N(i,I[h+2|0]^255)>>>0)/255<<16|-16777216;h=a+h|0;i=I[h+3|0]^255;H[b+28>>2]=(N(i,I[h|0]^255)>>>0)/255|(N(i,I[h+1|0]^255)>>>0)/255<<8|(N(i,I[h+2|0]^255)>>>0)/255<<16|-16777216;b=b+32|0;i=a+h|0;g=g-8|0;if(g>>>0>7){continue}break}}f=f-1|0;a:{switch(g-1|0){case 6:g=I[i+3|0]^255;H[b>>2]=(N(g,I[i+1|0]^255)>>>0)/255<<8|(N(g,I[i|0]^255)>>>0)/255|(N(g,I[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 5:g=I[i+3|0]^255;H[b>>2]=(N(g,I[i+1|0]^255)>>>0)/255<<8|(N(g,I[i|0]^255)>>>0)/255|(N(g,I[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 4:g=I[i+3|0]^255;H[b>>2]=(N(g,I[i+1|0]^255)>>>0)/255<<8|(N(g,I[i|0]^255)>>>0)/255|(N(g,I[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 3:g=I[i+3|0]^255;H[b>>2]=(N(g,I[i+1|0]^255)>>>0)/255<<8|(N(g,I[i|0]^255)>>>0)/255|(N(g,I[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 2:g=I[i+3|0]^255;H[b>>2]=(N(g,I[i+1|0]^255)>>>0)/255<<8|(N(g,I[i|0]^255)>>>0)/255|(N(g,I[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 1:g=I[i+3|0]^255;H[b>>2]=(N(g,I[i+1|0]^255)>>>0)/255<<8|(N(g,I[i|0]^255)>>>0)/255|(N(g,I[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 0:g=I[i+3|0]^255;H[b>>2]=(N(g,I[i+1|0]^255)>>>0)/255<<8|(N(g,I[i|0]^255)>>>0)/255|(N(g,I[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;break;default:break a}}i=d+i|0;b=b+j|0;if(f){continue}break}}}function vR(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;j=xb-464|0;xb=j;H[j+16>>2]=f;H[j+20>>2]=g;H[j+24>>2]=h;H[j+28>>2]=i;a=j+352|0;H[j+348>>2]=a;k=jg(a,100,239055,j+16|0);H[j+48>>2]=594;a=j+48|0;p=Ed(j+232|0,0,a);H[j+48>>2]=594;l=Ed(j+224|0,0,a);n=j+240|0;a:{b:{c:{d:{if(k>>>0>=100){H[197455]=0;a=va(3442)|0;k=H[197455];H[197455]=0;if((k|0)==1){break d}H[j>>2]=f;H[j+4>>2]=g;H[197455]=0;H[j+8>>2]=h;H[j+12>>2]=i;k=la(3464,j+348|0,a|0,239055,j|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}e:{if((k|0)!=-1){ae(p,H[j+348>>2]);ae(l,Tb(k));if(H[l>>2]){break e}}H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)==1){break d}break a}n=H[l>>2]}H[197455]=0;a=H[d+28>>2];H[j+216>>2]=a;H[a+4>>2]=H[a+4>>2]+1;a=H[197455];H[197455]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){H[197455]=0;r=aa(3329,j+216|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break k}H[197455]=0;a=H[j+348>>2];la(3438,r|0,a|0,a+k|0,n|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break k}q=(k|0)>0?I[H[j+348>>2]]==45:q;h=Dc(j+192|0);f=Dc(j+176|0);g=Dc(j+160|0);H[197455]=0;Ea(3498,c|0,q|0,j+216|0,j+208|0,j+207|0,j+206|0,h|0,f|0,g|0,j+156|0);a=H[197455];H[197455]=0;if((a|0)==1){break j}H[j+36>>2]=594;i=Ed(j+40|0,0,j+36|0);c=j+48|0;a=H[j+156>>2];l:{if((a|0)<(k|0)){s=H[j+156>>2];if(I[f+11|0]>>>7|0){m=H[f+4>>2]}else{m=I[f+11|0]}if(I[g+11|0]>>>7|0){o=H[g+4>>2]}else{o=I[g+11|0]}a=(s+(m+(o+(k-a<<1)|0)|0)|0)+1|0;break l}o=H[j+156>>2];if(I[g+11|0]>>>7|0){a=H[g+4>>2]}else{a=I[g+11|0]}if(I[f+11|0]>>>7|0){m=H[f+4>>2]}else{m=I[f+11|0]}a=(o+(a+m|0)|0)+2|0}if(a>>>0<101){break i}ae(i,Tb(a));c=H[i>>2];if(c){break i}H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)!=1){break a}break h}k=$()|0;_()|0;break b}k=$()|0;_()|0;break f}k=$()|0;_()|0;break g}a=H[d+4>>2];H[197455]=0;Ga(3499,c|0,j+36|0,j+32|0,a|0,n|0,k+n|0,r|0,q|0,j+208|0,F[j+207|0],F[j+206|0],h|0,f|0,g|0,H[j+156>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){H[197455]=0;c=ma(3466,b|0,c|0,H[j+36>>2],H[j+32>>2],d|0,e|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break c}}}k=$()|0;_()|0;Bc(i)}_b(g);_b(f);_b(h)}a=H[j+216>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break b}k=$()|0;_()|0;break b}Bc(i);_b(g);_b(f);_b(h);a=H[j+216>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}Bc(l);Bc(p);xb=j+464|0;return c|0}Bc(l);Bc(p);ea(k|0);X()}X()}function Ar(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;i=xb-16|0;xb=i;H[i+8>>2]=0;p=H[H[a>>2]+28>>2];H[b>>2]=0;a:{b:{if(H[a+28>>2]){break b}H[i+12>>2]=0;c:{f=H[a+12>>2];if(f){m=I[a+16|0];k=H[a>>2];h=H[k+28>>2];f=f+1|0;r=a,s=Ub(h,4,0,f,0,i+12|0),H[r+28>>2]=s;if(H[i+12>>2]){break c}e=bc(k,H[a+8>>2]+H[a+4>>2]|0);H[i+12>>2]=e;if(e){break c}g=N(f,m);f=Jc(k,g);H[i+12>>2]=f;if(f){break c}e=H[k+32>>2];j=g+e|0;f=H[a+28>>2];d:{e:{switch(m-1|0){case 2:if((g|0)<=0){break d}while(1){H[f>>2]=I[e+2|0]|(I[e+1|0]<<8|I[e|0]<<16);f=f+4|0;e=e+3|0;if(j>>>0>e>>>0){continue}break};break d;case 1:if((g|0)<=0){break d}while(1){H[f>>2]=I[e+1|0]|I[e|0]<<8;f=f+4|0;e=e+2|0;if(j>>>0>e>>>0){continue}break};break d;case 0:if((g|0)<=0){break d}while(1){H[f>>2]=I[e|0];f=f+4|0;e=e+1|0;if(j>>>0>e>>>0){continue}break};break d;default:break e}}if((g|0)<=0){break d}while(1){g=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[f>>2]=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);f=f+4|0;e=e+4|0;if(j>>>0>e>>>0){continue}break}}wc(k);if(H[i+12>>2]){break c}}H[i+8>>2]=0;break b}f=h;h=H[a+28>>2];if(h){zb[H[f+8>>2]](f,h)}H[a+28>>2]=0;e=H[i+12>>2];H[i+8>>2]=e;if(e){break a}}e=0;f=H[a+12>>2];if(!f){break a}h=H[a+24>>2];g=Ub(p,4,0,f+1|0,0,i+8|0);e=H[i+8>>2];f:{if(e){break f}q=f+h|0;g:{h:{i:{j:{if(c){k=pc(p,q,i+8|0);if(H[i+8>>2]){break g}o=H[a+32>>2];H[g>>2]=k;l=H[a+12>>2];if(l){e=1;j=0;f=0;while(1){h=e<<2;n=H[h+H[a+28>>2]>>2]-1|0;k:{if(n>>>0>>0){H[g+h>>2]=(f+k|0)+j;break k}m=g+h|0;h=H[a+24>>2];h=h>>>0>n>>>0?n:h;n=(h+k|0)+j|0;H[m>>2]=n;if((f|0)!=(h|0)){l=H[m-4>>2];Ob(l,f+o|0,n-l|0);F[H[m>>2]]=0;H[m>>2]=H[m>>2]+1;l=H[a+12>>2];j=j+1|0}f=h}e=e+1|0;if(l>>>0>=e>>>0){continue}break}break j}H[b>>2]=g;break i}h=H[a+32>>2];H[g>>2]=h;j=H[a+12>>2];if(!j){k=0;break j}f=1;k=0;e=0;if((j|0)!=1){n=j&-2;m=0;while(1){o=f<<2;l=H[o+H[a+28>>2]>>2]-1|0;if(l>>>0>=e>>>0){e=H[a+24>>2];e=e>>>0>l>>>0?l:e}H[g+o>>2]=e+h;o=f+1<<2;l=H[o+H[a+28>>2]>>2]-1|0;if(l>>>0>=e>>>0){e=H[a+24>>2];e=e>>>0>l>>>0?l:e}H[g+o>>2]=e+h;f=f+2|0;m=m+2|0;if((n|0)!=(m|0)){continue}break}}if(!(j&1)){break j}j=f<<2;f=H[j+H[a+28>>2]>>2]-1|0;if(f>>>0>=e>>>0){a=H[a+24>>2];e=a>>>0>f>>>0?f:a}H[g+j>>2]=e+h}H[b>>2]=g;if(!c){break h}}H[c>>2]=k}if(!d){break g}H[d>>2]=q}e=H[i+8>>2];if(!e|!k){break f}if(k){zb[H[p+8>>2]](p,k)}e=H[i+8>>2]}if(!e|!g){break a}if(g){zb[H[p+8>>2]](p,g)}e=H[i+8>>2]}xb=i+16|0;return e}function Ri(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;d=I[b|0]|I[b+1|0]<<8;l=(d<<8|d>>>8)&65535;if(l>>>0<=c>>>0){H[a+8>>2]=H[40910];b=H[40909];H[a>>2]=H[40908];H[a+4>>2]=b;return}h=I[b+2|0];n=(N(h,l+1|0)+b|0)+3|0;d=0;a:{if(!h){break a}d=0;j=(N(c,h)+b|0)+3|0;f=j;k=h-1|0;if(k>>>0>=3){i=h&252;f=j;while(1){e=f;f=e+4|0;g=g+4|0;if((i|0)!=(g|0)){continue}break}e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);g=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24)}e=h&3;if(e){while(1){g=I[f|0]|g<<8;f=f+1|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}i=0;e=0;f=(N(c+1|0,h)+b|0)+3|0;d=f;if(k>>>0>=3){m=h&252;d=f;while(1){c=d;d=c+4|0;e=e+4|0;if((m|0)!=(e|0)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}c=h&3;if(c){while(1){e=I[d|0]|e<<8;d=d+1|0;i=i+1|0;if((c|0)!=(i|0)){continue}break}}m=0;i=0;d=j;if(k>>>0>=3){o=h&252;while(1){c=d;d=c+4|0;i=i+4|0;if((o|0)!=(i|0)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}c=h&3;if(c){while(1){i=I[d|0]|i<<8;d=d+1|0;m=m+1|0;if((c|0)!=(m|0)){continue}break}}n=g+n|0;d=0;if(e>>>0>>0){break a}e=0;g=0;d=f;if(k>>>0>=3){i=h&252;while(1){c=d;d=c+4|0;g=g+4|0;if((i|0)!=(g|0)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);g=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}c=h&3;if(c){while(1){g=I[d|0]|g<<8;d=d+1|0;e=e+1|0;if((c|0)!=(e|0)){continue}break}}c=h&3;d=(N(h,l)+b|0)+3|0;i=0;if(k>>>0<3){e=0}else{l=h&252;e=0;while(1){b=d;d=b+4|0;e=e+4|0;if((l|0)!=(e|0)){continue}break}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);e=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(c){while(1){e=I[d|0]|e<<8;d=d+1|0;i=i+1|0;if((c|0)!=(i|0)){continue}break}}d=0;if(e>>>0>>0){break a}c=h&3;g=0;if(k>>>0<3){d=0}else{e=h&252;d=0;while(1){b=f;f=b+4|0;d=d+4|0;if((e|0)!=(d|0)){continue}break}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);d=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(c){while(1){d=I[f|0]|d<<8;f=f+1|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}}c=h&3;g=0;if(k>>>0<3){f=0}else{e=h&252;f=0;while(1){b=j;j=b+4|0;f=f+4|0;if((e|0)!=(f|0)){continue}break}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(c){while(1){f=I[j|0]|f<<8;j=j+1|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}}d=d-f|0}H[a+8>>2]=0;H[a+4>>2]=d;H[a>>2]=n-1}function _aa(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;l=xb-32|0;xb=l;s=H[a+52>>2];p=H[a+16>>2];f=H[a>>2];o=Tb(Cj(f));a:{if(!o){Pb(H[f+628>>2],H[f>>2],281962,0);break a}Id(o,0,Cj(f));b:{c:{d:{switch(J[a+28>>1]-1|0){case 0:case 4:e=J[a+30>>1]-2|0;if((e&65535)>>>0>=7){break b}e=(e<<16>>16<<2)+283468|0;break c;case 1:case 5:e=J[a+30>>1]-1|0;if((e&65535)>>>0>=8){break b}e=(e<<16>>16<<2)+283496|0;break c;case 2:case 6:e=J[a+30>>1]-1|0;if((e&65535)>>>0>=8){break b}e=(e<<16>>16<<2)+283528|0;break c;case 3:case 7:break d;default:break b}}e=J[a+30>>1]-1|0;if((e&65535)>>>0>=7){break b}e=(e<<16>>16<<2)+283560|0}m=H[e>>2]}H[l+16>>2]=l+28;Qe(f,278,l+16|0);H[l+4>>2]=l+24;H[l>>2]=l+26;Qe(f,530,l);i=1;h=xb-80|0;xb=h;e:{f:{if(J[f+138>>1]==1){if(!(I[f+13|0]&64|J[f+90>>1]!=6)){H[h+4>>2]=h+78;H[h>>2]=h+76;Cc(f,530,h);g=J[h+78>>1];e=J[h+76>>1];j=N(g,e);if(!j){Pb(H[f+628>>2],H[f>>2],271954,0);e=0;break e}e=(N(J[f+84>>1],N(j+2|0,((e+H[f+56>>2]|0)-1>>>0)/(e>>>0)|0))+7>>>3>>>0)/(g>>>0)|0;break e}j=J[f+98>>1];e=gma(H[f+56>>2],0,j,0);g=yb;if(!j|!g){break f}e=H[f>>2];g=H[f+628>>2];H[h+64>>2]=273482;Pb(g,e,274538,h- -64|0);e=0;break f}e=H[f+56>>2]}g=e;n=J[f+84>>1];e=gma(e,0,n,0);j=(yb|0)!=0;g:{h:{i:{j:{if(n){if(j){e=H[f>>2];j=H[f+628>>2];H[h+32>>2]=273482;Pb(j,e,274538,h+32|0);n=J[f+84>>1];e=gma(n,0,g,0);j=(yb|0)!=0;break j}if(!(e&7)){break i}if(!j){break g}e=H[f>>2];g=H[f+628>>2];H[h+48>>2]=273482;Pb(g,e,274538,h+48|0);e=0;break g}if(e&7){break g}}if(!n){break h}}if(!j){break h}e=H[f>>2];g=H[f+628>>2];H[h+16>>2]=273482;Pb(g,e,274538,h+16|0);e=0}e=e>>>3|0;break e}e=(e>>>3|0)+1|0}xb=h+80|0;k:{if(!d){break k}i=p-c|0;n=i>>>0>p>>>0?0:i;h=m&1;p=0-h&0-(c<<1);g=h?d-1|0:0;l:{while(1){i=H[l+28>>2];j=J[l+24>>1];r=H[a+76>>2]+k|0;t=j;i=i-((r>>>0)%(i>>>0)|0)|0;i=i+k>>>0>d>>>0?d-k|0:i;j=(i>>>0)%(j>>>0)|0;q=0;if(!((Bj(f,Dj(f,r,0),o,N((j?t-j|0:0)+i+(H[a+76>>2]+k>>>0)%K[l+28>>2]|0,e))|0)>=0|!H[a+4>>2])){break l}zb[s|0](a,(N(c,g)<<2)+b|0,0,g,c,i,n,p,N((H[a+76>>2]+k>>>0)%K[l+28>>2]|0,e)+o|0);g=(h?0-i|0:i)+g|0;k=i+k|0;if(k>>>0>>0){continue}break}q=1}i=q;if(!(m&2)){break k}g=0;while(1){k=(N(c,g)<<2)+b|0;m=(k+(c<<2)|0)-4|0;if(k>>>0>>0){while(1){a=H[k>>2];H[k>>2]=H[m>>2];H[m>>2]=a;k=k+4|0;m=m-4|0;if(k>>>0>>0){continue}break}}g=g+1|0;if((g|0)!=(d|0)){continue}break}}Kb(o)}xb=l+32|0;return i|0}function wF(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;e=1;a:{b:{c:{switch(I[a+5|0]){case 0:e=0;f=H[b+4>>2];g=a+8|0;if(f>>>0>g>>>0){break b}d=H[b+8>>2];if(d>>>0>>0|d-g>>>0<8){break b}g=H[b+12>>2]-8|0;H[b+12>>2]=g;if((g|0)<=0){break b}c=I[a+8|0]|I[a+9|0]<<8;if(c){a=a+16|0;if(a>>>0>>0|a>>>0>d>>>0){break b}h=d-a|0;a=N((c<<8|c>>>8)&65535,6);if(h>>>0>>0){break b}a=g-a|0;H[b+12>>2]=a;if((a|0)<=0){break b}}return 1;case 1:e=0;if(K[b+4>>2]>a>>>0){break b}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<18){break b}d=H[b+12>>2]-18|0;H[b+12>>2]=d;if((d|0)<=0){break b}return ao(a+8|0,b)|0;case 2:d:{e:{g=H[b+4>>2];if(g>>>0>a>>>0){break e}d=H[b+8>>2];if(d>>>0>>0){break e}j=d-a|0;if(j>>>0<16){break e}e=H[b+12>>2];c=e-16|0;H[b+12>>2]=c;if((c|0)<=0){break e}c=a+10|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break e}c=e-18|0;H[b+12>>2]=c;if((c|0)<=0){break e}c=I[a+10|0]|I[a+11|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<4){break e}f=e-22|0;H[b+12>>2]=f;if((f|0)<=0){break e}f=c+2|0;if(f>>>0>>0|d>>>0>>0|d-f>>>0<2){break e}e=e-24|0;H[b+12>>2]=e;if((e|0)<=0){break e}f:{f=I[c+2|0]|I[c+3|0]<<8;if(!f){break f}c=c+4|0;if(c>>>0>>0|c>>>0>d>>>0){break e}h=d-c|0;c=((f<<8|f>>>8)&65535)<<1;if(h>>>0>>0){break e}e=e-c|0;H[b+12>>2]=e;if((e|0)>0){break f}break e}c=a+12|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break e}H[b+12>>2]=e-2;if((e|0)<3){break e}c=I[a+12|0]|I[a+13|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<4){break e}H[b+12>>2]=e-6;if((e|0)<7){break e}f=c+2|0;if(f>>>0>>0|d>>>0>>0|d-f>>>0<2){break e}f=e-8|0;H[b+12>>2]=f;if((e|0)<9){break e}e=1;g:{i=I[c+2|0]|I[c+3|0]<<8;if(!i){break g}h=g;g=c+4|0;if(h>>>0>g>>>0|d>>>0>>0){break e}g=d-g|0;d=((i<<8|i>>>8)&65535)<<1;if(g>>>0>>0){break e}f=f-d|0;H[b+12>>2]=f;if((f|0)>0){break g}break e}a=I[a+14|0]|I[a+15|0]<<8;h:{if(!a){break h}e=0;a=(a<<8|a>>>8)&65535;if(a>>>0>j>>>0){break h}a=f-a|0;H[b+12>>2]=a;e=(a|0)>0}break d}e=0}return e|0;case 3:break c;default:break b}}f=H[b+4>>2];if(f>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<14){break a}g=H[b+12>>2]-14|0;H[b+12>>2]=g;if((g|0)<=0){break a}c=I[a+8|0]|I[a+9|0]<<8;c=N(I[a+12|0],I[a+11|0])+(I[a+10|0]+((c<<8|c>>>8)&65535)<<1)|0;if(!c){break b}a=a+14|0;if(a>>>0>>0|a>>>0>d>>>0){break a}e=0;if(c>>>0>d-a>>>0){break b}a=g-c|0;H[b+12>>2]=a;e=(a|0)>0}return e|0}return 0}function hX(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=H[b>>2];if(!f){return 35}b=6;a:{if(K[f+16>>2]<=c>>>0){break a}h=H[f+104>>2];g=H[f+292>>2];b=g+(c<<4)|0;j=G[b+6>>1];k=j+G[b+8>>1]|0;H[a+76>>2]=k;i=G[b>>1];b=G[b+2>>1];F[a+94|0]=1;G[a+92>>1]=1;e=b-i|0;H[a+80>>2]=e;b=3;b:{c:{switch((1<<(H[f+312>>2]&3))-1|0){case 0:b=e+7>>>3|0;break b;case 1:b=e+15>>>3&536870910;break b;case 3:b=e+31>>>3&536870908;break b;case 7:break c;default:break a}}b=e+63>>>3&536870904}H[a+104>>2]=j;H[a+100>>2]=i;H[a+72>>2]=1651078259;H[a+84>>2]=b;b=G[(g+(c<<4)|0)+4>>1];H[a+36>>2]=j<<6;H[a+32>>2]=i<<6;H[a+28>>2]=k<<6;H[a+24>>2]=e<<6;H[a+40>>2]=b<<6;Fj(a+24|0,H[f+208>>2]+H[f+204>>2]<<6);d:{if(d&4194304){break d}d=N(H[a+76>>2],H[a+84>>2]);b=jn(a,d);if(b){break a}b=bc(h,H[(g+(c<<4)|0)+12>>2]);if(b){break a}b=wd(h,H[a+88>>2],d);if(b){break a}c=H[f+312>>2];if(!(!d|c&8)){i=d-1|0;c=H[a+88>>2];h=d&3;e:{if(!h){b=d;break e}e=0;b=d;while(1){g=I[c|0];g=g>>>4|(g&15)<<4;g=g>>>2&51|(g&51)<<2;F[c|0]=g>>>1&85|(g&85)<<1;c=c+1|0;b=b-1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}if(i>>>0>=3){while(1){e=I[c|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;F[c|0]=e>>>1&85|(e&85)<<1;e=I[c+1|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;F[c+1|0]=e>>>1&85|(e&85)<<1;e=I[c+2|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;F[c+2|0]=e>>>1&85|(e&85)<<1;e=I[c+3|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;F[c+3|0]=e>>>1&85|(e&85)<<1;c=c+4|0;b=b-4|0;if(b){continue}break}}c=H[f+312>>2]}if(!((c>>>2^c>>>3)&1)){break d}b=0;f:{switch((1<<(c>>>4&3))-2|0){case 0:if(d>>>0<2){break a}a=H[a+88>>2];c=d-2|0;f=(c>>>1|0)+1&3;if(f){while(1){e=I[a+1|0];F[a+1|0]=I[a|0];F[a|0]=e;a=a+2|0;d=d-2|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}b=0;if(c>>>0<6){break a}while(1){c=I[a+1|0];F[a+1|0]=I[a|0];F[a|0]=c;c=I[a+2|0];F[a+2|0]=I[a+3|0];F[a+3|0]=c;c=I[a+4|0];F[a+4|0]=I[a+5|0];F[a+5|0]=c;c=I[a+6|0];F[a+6|0]=I[a+7|0];F[a+7|0]=c;a=a+8|0;d=d-8|0;if(d>>>0>1){continue}break};break a;case 2:break f;default:break a}}if(d>>>0<4){break d}a=H[a+88>>2];b=d-4|0;if(!(b&4)){c=I[a+3|0];F[a+3|0]=I[a|0];F[a|0]=c;c=I[a+1|0];F[a+1|0]=I[a+2|0];F[a+2|0]=c;d=b;a=a+4|0}if(b>>>0<4){break d}while(1){b=I[a+3|0];F[a+3|0]=I[a|0];F[a|0]=b;b=I[a+1|0];F[a+1|0]=I[a+2|0];F[a+2|0]=b;b=I[a+4|0];F[a+4|0]=I[a+7|0];F[a+7|0]=b;b=I[a+5|0];F[a+5|0]=I[a+6|0];F[a+6|0]=b;a=a+8|0;d=d-8|0;if(d>>>0>3){continue}break}}b=0}return b|0}function Haa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;j=xb-16|0;xb=j;k=((e<<2)+b|0)+(h<<2)|0;n=(N(g,10)|0)/4|0;o=(h<<1)+e|0;a:{if(f&3|e&1){if(!f|!e){break a}while(1){h=e;while(1){c=I[i+9|0];d=I[i+8|0];b:{switch(h-1|0){default:if((f|0)!=1){qc(H[a+68>>2],I[i+7|0],d,c,j+12|0,j+8|0,j+4|0);H[k+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216}qc(H[a+68>>2],I[i+3|0],d,c,j+12|0,j+8|0,j+4|0);H[b+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 2:if((f|0)!=1){qc(H[a+68>>2],I[i+6|0],d,c,j+12|0,j+8|0,j+4|0);H[k+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216}qc(H[a+68>>2],I[i+2|0],d,c,j+12|0,j+8|0,j+4|0);H[b+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 1:if((f|0)!=1){qc(H[a+68>>2],I[i+5|0],d,c,j+12|0,j+8|0,j+4|0);H[k+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216}qc(H[a+68>>2],I[i+1|0],d,c,j+12|0,j+8|0,j+4|0);H[b+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;break;case 0:break b}}if((f|0)!=1){qc(H[a+68>>2],I[i+4|0],d,c,j+12|0,j+8|0,j+4|0);H[k>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216}qc(H[a+68>>2],I[i|0],d,c,j+12|0,j+8|0,j+4|0);H[b>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;i=i+10|0;c=(h>>>0<4?h:4)<<2;b=c+b|0;k=c+k|0;c=h>>>0>4;d=h-4|0;h=d>>>0>h>>>0?0:d;if(c){continue}break}if(f>>>0<3){break a}i=i+n|0;f=f-2|0;c=o<<2;k=c+k|0;b=b+c|0;continue}}if(f>>>0<2){break a}c=e>>>2|0;while(1){d=c;while(1){e=I[i+8|0];g=I[i+9|0];h=j+12|0;l=j+8|0;m=j+4|0;qc(H[a+68>>2],I[i|0],e,g,h,l,m);H[b>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+1|0],e,g,h,l,m);H[b+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+2|0],e,g,h,l,m);H[b+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+3|0],e,g,h,l,m);H[b+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+4|0],e,g,h,l,m);H[k>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+5|0],e,g,h,l,m);H[k+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+6|0],e,g,h,l,m);H[k+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+7|0],e,g,h,l,m);H[k+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;i=i+10|0;k=k+16|0;b=b+16|0;d=d-1|0;if(d){continue}break}i=i+n|0;d=o<<2;k=d+k|0;b=b+d|0;f=f-2|0;if(f>>>0>1){continue}break}}xb=j+16|0}function $F(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;d=I[b|0]|I[b+1|0]<<8;l=(d<<8|d>>>8)&65535;if(l>>>0>c>>>0){h=I[b+2|0];n=(N(h,l+1|0)+b|0)+3|0;d=0;a:{if(!h){break a}d=0;j=(N(c,h)+b|0)+3|0;f=j;k=h-1|0;if(k>>>0>=3){i=h&252;f=j;while(1){e=f;f=e+4|0;g=g+4|0;if((i|0)!=(g|0)){continue}break}e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);g=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24)}e=h&3;if(e){while(1){g=I[f|0]|g<<8;f=f+1|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}i=0;e=0;f=(N(c+1|0,h)+b|0)+3|0;d=f;if(k>>>0>=3){m=h&252;d=f;while(1){c=d;d=c+4|0;e=e+4|0;if((m|0)!=(e|0)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}c=h&3;if(c){while(1){e=I[d|0]|e<<8;d=d+1|0;i=i+1|0;if((c|0)!=(i|0)){continue}break}}m=0;i=0;d=j;if(k>>>0>=3){o=h&252;while(1){c=d;d=c+4|0;i=i+4|0;if((o|0)!=(i|0)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}c=h&3;if(c){while(1){i=I[d|0]|i<<8;d=d+1|0;m=m+1|0;if((c|0)!=(m|0)){continue}break}}n=g+n|0;d=0;if(e>>>0>>0){break a}e=0;g=0;d=f;if(k>>>0>=3){i=h&252;while(1){c=d;d=c+4|0;g=g+4|0;if((i|0)!=(g|0)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);g=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}c=h&3;if(c){while(1){g=I[d|0]|g<<8;d=d+1|0;e=e+1|0;if((c|0)!=(e|0)){continue}break}}c=h&3;d=(N(h,l)+b|0)+3|0;i=0;if(k>>>0<3){e=0}else{l=h&252;e=0;while(1){b=d;d=b+4|0;e=e+4|0;if((l|0)!=(e|0)){continue}break}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);e=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(c){while(1){e=I[d|0]|e<<8;d=d+1|0;i=i+1|0;if((c|0)!=(i|0)){continue}break}}d=0;if(e>>>0>>0){break a}c=h&3;g=0;if(k>>>0<3){d=0}else{e=h&252;d=0;while(1){b=f;f=b+4|0;d=d+4|0;if((e|0)!=(d|0)){continue}break}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);d=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(c){while(1){d=I[f|0]|d<<8;f=f+1|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}}c=h&3;g=0;if(k>>>0<3){f=0}else{e=h&252;f=0;while(1){b=j;j=b+4|0;f=f+4|0;if((e|0)!=(f|0)){continue}break}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(c){while(1){f=I[j|0]|f<<8;j=j+1|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}}d=d-f|0}H[a+8>>2]=0;H[a+4>>2]=d;H[a>>2]=n-1;return}H[a+8>>2]=H[40910];b=H[40909];H[a>>2]=H[40908];H[a+4>>2]=b}function UK(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;e=xb-16|0;xb=e;l=H[a+100>>2];H[e+8>>2]=0;c=zb[H[a+516>>2]](a,1129333068,b,e+4|0)|0;H[e+12>>2]=c;a:{b:{if(c){break b}c=H[e+4>>2];c:{if(c>>>0<12){break c}c=Ke(b,c,e+8|0);H[e+12>>2]=c;if(c){break b}c=H[e+8>>2];j=pc(l,20,e+12|0);if(H[e+12>>2]){break b}d=I[c|0]|I[c+1|0]<<8;h=d<<8|d>>>8;G[j>>1]=h;if((h&65535)>>>0>1){break c}d=I[c+2|0]|I[c+3|0]<<8;k=d<<8|d>>>8;G[a+660>>1]=k;d=I[c+4|0]|I[c+5|0]<<8;d=d<<8|d>>>8;G[a+648>>1]=d;f=I[c+6|0]|I[c+7|0]<<8;n=f<<8|f>>>8;G[j+2>>1]=n;m=d&65535;f=m<<1;d=H[e+4>>2];if(f+12>>>0>d>>>0){break c}g=I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24);i=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);if(i>>>0>=d>>>0){break c}g=n&65535;if(d-i>>>0>>0|g>>>0<(k&65535)>>>0){break c}c=c+12|0;H[j+8>>2]=c;g=H[e+8>>2];H[j+4>>2]=i+g;d:{if((h&65535)!=1){break d}if(d>>>0>>0){break c}c=c+f|0;h=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);i=I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24);c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(c){if(f>>>0>d-c>>>0|c>>>0>=d>>>0){break c}d=Ub(l,2,0,m,0,e+12|0);if(H[e+12>>2]){break b}g=H[e+8>>2];k=d+(J[a+648>>1]<<1)|0;if(k>>>0>d>>>0){f=c+g|0;c=d;while(1){n=I[f|0]|I[f+1|0]<<8;G[c>>1]=n<<8|n>>>8;f=f+2|0;c=c+2|0;if(k>>>0>c>>>0){continue}break}}H[a+656>>2]=d}c=h<<8&16711680|h<<24|(h>>>8&65280|h>>>24);if(c){d=H[e+4>>2];if(d>>>0<=c>>>0){break c}m=d-c|0;d=J[a+648>>1];if(m>>>0>>0){break c}d=Ub(l,2,0,d,0,e+12|0);if(H[e+12>>2]){break b}g=H[e+8>>2];h=d+(J[a+648>>1]<<1)|0;if(h>>>0>d>>>0){f=c+g|0;c=d;while(1){k=I[f|0]|I[f+1|0]<<8;G[c>>1]=k<<8|k>>>8;f=f+2|0;c=c+2|0;if(h>>>0>c>>>0){continue}break}}H[a+652>>2]=d}c=i<<8&16711680|i<<24|(i>>>8&65280|i>>>24);if(!c){break d}d=H[e+4>>2];if(d>>>0<=c>>>0){break c}m=d-c|0;d=J[a+660>>1];if(m>>>0>>0){break c}d=Ub(l,2,0,d,0,e+12|0);if(H[e+12>>2]){break b}g=H[e+8>>2];h=d+(J[a+660>>1]<<1)|0;if(h>>>0>d>>>0){f=c+g|0;c=d;while(1){i=I[f|0]|I[f+1|0]<<8;G[c>>1]=i<<8|i>>>8;f=f+2|0;c=c+2|0;if(h>>>0>c>>>0){continue}break}}H[a+664>>2]=d}H[j+12>>2]=g;H[j+16>>2]=H[e+4>>2];H[a+868>>2]=j;g=0;o=a,p=Ub(l,4,0,J[a+660>>1],0,e+12|0),H[o+672>>2]=p;if(H[e+12>>2]){break b}if(!wu(a,0)){break a}}H[e+12>>2]=8}nd(b,e+8|0);if(j){zb[H[l+8>>2]](l,j)}H[a+868>>2]=0;g=H[e+12>>2]}xb=e+16|0;return g|0}function pI(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;k=xb-16|0;xb=k;f=H[a+492>>2];i=H[b+8>>2];zb[H[b+28>>2]](b);d=H[b>>2];a:{if(i>>>0<=d>>>0){H[b+12>>2]=3;break a}b:{l=I[d|0];if(!(l-48>>>0>=10&(l|0)!=91)){g=H[b+16>>2];c:{if((l|0)==91){H[b>>2]=d+1;h=256;break c}e=3;h=zb[H[b+36>>2]](b)|0;if((h|0)>256){break b}}zb[H[b+28>>2]](b);if(K[b>>2]>=i>>>0){break a}j=b+92|0;c=H[a+384>>2];d:{if(!c){break d}if(c){zb[H[g+8>>2]](g,c)}H[a+384>>2]=0;c=H[a+388>>2];if(c){zb[H[g+8>>2]](g,c)}H[a+388>>2]=0;c=H[b+140>>2];if(!c){break d}zb[c|0](j)}H[a+372>>2]=h;H[b+88>>2]=h;n=a,o=Ub(g,2,0,h,0,k+12|0),H[n+384>>2]=o;e=H[k+12>>2];if(e){break b}n=a,o=Ub(g,4,0,h,0,k+12|0),H[n+388>>2]=o;e=H[k+12>>2];if(e){break b}e=zb[H[H[f>>2]>>2]](j,h,g)|0;H[k+12>>2]=e;if(e){break b}e:{if((h|0)<=0){break e}f=0;c=0;if(h-1>>>0>=3){g=h&-4;e=0;while(1){zb[H[b+136>>2]](j,c,10293,8)|0;zb[H[b+136>>2]](j,c|1,10293,8)|0;zb[H[b+136>>2]](j,c|2,10293,8)|0;zb[H[b+136>>2]](j,c|3,10293,8)|0;c=c+4|0;e=e+4|0;if((g|0)!=(e|0)){continue}break}}e=h&3;if(!e){break e}while(1){zb[H[b+136>>2]](j,c,10293,8)|0;c=c+1|0;f=f+1|0;if((e|0)!=(f|0)){continue}break}}zb[H[b+28>>2]](b);c=H[b>>2];f:{if(i>>>0<=c>>>0){break f}m=(l|0)==91;e=0;while(1){g:{h:{i:{f=I[c|0];switch(f-93|0){case 0:break h;case 7:break i;default:break g}}d=c+3|0;if(I[c+1|0]!=101|i>>>0<=d>>>0|I[c+2|0]!=102){break g}switch(I[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break g}}d=c+1|0;break f}j:{k:{l:{if(!((l|0)!=91&f-48>>>0>=10)){m:{if(m){d=c;f=e;break m}f=zb[H[b+36>>2]](b)|0;zb[H[b+28>>2]](b);d=H[b>>2];if((d|0)==(c|0)){break k}}if(I[d|0]!=47|d+2>>>0>=i>>>0|(e|0)>=(h|0)){break l}d=d+1|0;H[b>>2]=d;zb[H[b+32>>2]](b);c=H[b>>2];if(H[b+12>>2]|c>>>0>=i>>>0){break a}g=c-d|0;c=zb[H[b+136>>2]](j,f,d,g+1|0)|0;H[b+12>>2]=c;if(c){break a}F[g+H[H[b+116>>2]+(f<<2)>>2]|0]=0;e=e+1|0;break j}zb[H[b+32>>2]](b);d=c;if(H[b+12>>2]){break a}break j}if(!m){break j}}H[b+12>>2]=2;break a}zb[H[b+28>>2]](b);c=H[b>>2];if(i>>>0>c>>>0){continue}break}}H[a+368>>2]=1;H[b>>2]=d;break a}n:{if(d+17>>>0>=i>>>0){break n}if(gc(d,12672,16)){break n}H[a+368>>2]=2;break a}o:{if(d+15>>>0>=i>>>0){break o}if(gc(d,12736,14)){break o}H[a+368>>2]=4;break a}p:{if(d+18>>>0>=i>>>0){break p}if(gc(d,12844,17)){break p}H[a+368>>2]=3;break a}H[b+12>>2]=162;break a}H[b+12>>2]=e}xb=k+16|0}function $fa(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;if(!H[a+4>>2]){return 0}p=Qb(940);H[197455]=0;h=pa(1069,p|0,a|0,0,1,1)|0;d=H[197455];H[197455]=0;if((d|0)!=1){q=H[h+4>>2]!=0;if(q){d=J[a+26>>1];g=N(H[a+16>>2]-1|0,(d|0)==24?3:1);f=g+H[a+56>>2]|0;e=H[h+56>>2];a:{b:{c:{d=d-8|0;if(d){if((d|0)==16){break c}break b}if((g|0)<0|H[a+20>>2]<=0){break a}d=g+1|0;m=d&-4;k=d&3;while(1){j=0;d=0;i=0;if(g>>>0>=3){while(1){l=f-d|0;F[d+e|0]=I[l|0];F[(d|1)+e|0]=I[(d^-1)+f|0];F[(d|2)+e|0]=I[l-2|0];F[(d|3)+e|0]=I[l-3|0];d=d+4|0;i=i+4|0;if((m|0)!=(i|0)){continue}break}}if(k){while(1){F[d+e|0]=I[f-d|0];d=d+1|0;j=j+1|0;if((k|0)!=(j|0)){continue}break}}d=H[a+52>>2];e=d+e|0;f=d+f|0;n=n+1|0;if((n|0)>2]){continue}break}break a}if((g|0)<0|H[a+20>>2]<=0){break a}while(1){d=0;while(1){k=d+e|0;j=f-d|0;F[k|0]=I[j|0];F[k+1|0]=I[j+1|0];F[k+2|0]=I[j+2|0];d=d+3|0;if((g|0)>=(d|0)){continue}break}d=H[a+52>>2];e=d+e|0;f=d+f|0;i=i+1|0;if((i|0)>2]){continue}break}break a}if((g|0)<0|H[a+20>>2]<=0){break a}e=0;while(1){d=0;while(1){Tg(h,d,e,Wf(a,g-d|0,e));f=(d|0)!=(g|0);d=d+1|0;if(f){continue}break}e=e+1|0;if((e|0)>2]){continue}break}}if(b){d:{k=0;j=H[h+924>>2];if(!j){break d}l=H[h+20>>2];g=H[h+16>>2];d=Tb(N(l,g));if(d){if(!((l|0)<=0|(g|0)<=0)){o=g&-4;m=g&3;r=g-1|0;f=j+r|0;b=d;while(1){e=0;i=0;if(r>>>0>=3){while(1){n=f-e|0;F[b+e|0]=I[n|0];F[(e|1)+b|0]=I[(e^-1)+f|0];F[(e|2)+b|0]=I[n-2|0];F[(e|3)+b|0]=I[n-3|0];e=e+4|0;i=i+4|0;if((o|0)!=(i|0)){continue}break}}i=0;if(m){while(1){F[b+e|0]=I[f-e|0];e=e+1|0;i=i+1|0;if((m|0)!=(i|0)){continue}break}}b=b+g|0;f=f+g|0;k=k+1|0;if((l|0)!=(k|0)){continue}break}}Kb(j);H[h+924>>2]=d;b=H[h+372>>2];d=H[h+16>>2];H[h+372>>2]=d-H[h+380>>2];H[h+380>>2]=d-b}}}if(c){e:{i=0;k=H[h+928>>2];if(!k){break e}j=H[h+20>>2];e=H[h+16>>2];c=Tb(N(j,e));if(c){if(!((j|0)<=0|(e|0)<=0)){n=e&-4;l=e&3;o=e-1|0;g=o+k|0;b=c;while(1){d=0;f=0;if(o>>>0>=3){while(1){m=g-d|0;F[b+d|0]=I[m|0];F[(d|1)+b|0]=I[(d^-1)+g|0];F[(d|2)+b|0]=I[m-2|0];F[(d|3)+b|0]=I[m-3|0];d=d+4|0;f=f+4|0;if((n|0)!=(f|0)){continue}break}}f=0;if(l){while(1){F[b+d|0]=I[g-d|0];d=d+1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}b=b+e|0;g=e+g|0;i=i+1|0;if((j|0)!=(i|0)){continue}break}}Kb(k);H[h+928>>2]=c}}}$k(a,h,1)}zb[H[H[p>>2]+4>>2]](h);return q|0}a=$()|0;_()|0;Kb(p);ea(a|0);X()}function Tn(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;a:{b:{c:{d:{e:{f:{g:{d=I[a|0]|I[a+1|0]<<8;switch((d<<8|d>>>8)&65535){case 13:break b;case 12:break c;case 10:break d;case 6:break e;case 4:break f;case 0:break g;default:break a}}if(b>>>0>255){break a}a=I[(a+b|0)+6|0];if(!a){break a}H[c>>2]=a;return 1}d=0;e=I[a+6|0]|I[a+7|0]<<8;e=(e<<8|e>>>8)&65535;h:{if(e>>>0<2){break h}d=I[a+2|0]|I[a+3|0]<<8;e=e>>>1|0;n=(((d<<8|d>>>8)&65535)-(e<<3)|0)-16>>>1|0;d=e<<1;j=(d+a|0)+16|0;k=j+d|0;l=k+d|0;o=l+d|0;d=e-1|0;p=e+1<<1;i:{while(1){g=d+f|0;h=g>>>1|0;g=g&-2;i=(g+a|0)+14|0;m=I[i|0]|I[i+1|0]<<8;j:{if(((m<<8|m>>>8)&65535)>>>0>=b>>>0){d=i+p|0;d=I[d|0]|I[d+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<=b>>>0){break i}d=h-1|0;break j}f=h+1|0}if((d|0)>=(f|0)){continue}break}d=0;break h}a=g>>1;d=g+l|0;f=I[d|0]|I[d+1|0]<<8;if(f){d=0;e=a+(b-e|0)+(((f<<8|f>>>8)&65534)>>>1)|0;b=(a<<1)+j|0;b=I[b|0]|I[b+1|0]<<8;b=e-((b<<8|b>>>8)&65535)|0;if(b>>>0>=n>>>0){break h}b=(b<<1)+o|0;b=I[b|0]|I[b+1|0]<<8;if(!b){break h}b=(b<<8|b>>>8)&65535}d=0;a=(a<<1)+k|0;a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)+b&65535;if(!a){break h}H[c>>2]=a;d=1}return d}e=b;b=I[a+6|0]|I[a+7|0]<<8;b=e-((b<<8|b>>>8)&65535)|0;e=((b<<1)+a|0)+10|0;a=I[a+8|0]|I[a+9|0]<<8;a=b>>>0<((a<<8|a>>>8)&65535)>>>0?e:163632;a=I[a|0]|I[a+1|0]<<8;if(a){H[c>>2]=(a<<8|a>>>8)&65535}return(a|0)!=0}e=b;b=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);b=e-(b<<24|b<<8&16711680|(b>>>8&65280|b>>>24))|0;e=((b<<1)+a|0)+20|0;a=I[a+16|0]|I[a+17|0]<<8|(I[a+18|0]<<16|I[a+19|0]<<24);a=b>>>0<(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))>>>0?e:163632;a=I[a|0]|I[a+1|0]<<8;if(a){H[c>>2]=(a<<8|a>>>8)&65535}return(a|0)!=0}return Ms(a,b,c)}d=0;f=164030;e=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);k:{if((e|0)<=0){break k}h=e-1|0;while(1){g=d+h>>>1|0;e=N(g,12)+a|0;i=I[e+16|0]|I[e+17|0]<<8|(I[e+18|0]<<16|I[e+19|0]<<24);l:{if((i<<24|i<<8&16711680|(i>>>8&65280|i>>>24))>>>0<=b>>>0){d=e;d=I[d+20|0]|I[d+21|0]<<8|(I[d+22|0]<<16|I[d+23|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0>>0){d=g+1|0;break l}f=(N(g,12)+a|0)+16|0;break k}h=g-1|0}if((d|0)<=(h|0)){continue}break}}a=I[f+8|0]|I[f+9|0]<<8|(I[f+10|0]<<16|I[f+11|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(a){H[c>>2]=a}h=(a|0)!=0}return h}function cca(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;D=xb-224|0;xb=D;e=a;while(1){a:{d=H[(r<<2)+b>>2]+c|0;f=I[d+10|0];t=e;v=I[d+12|0];E=I[d+2|0];F=v+E|0;G=I[d+7|0];u=F+G|0;j=I[d+9|0];h=I[d+5|0];l=j+h|0;g=I[d+4|0];m=g+f|0;i=I[d+14|0];k=I[d|0];n=i+k|0;s=l+(m+n|0)|0;w=I[d+8|0];x=I[d+6|0];o=w+x|0;y=I[d+11|0];z=I[d+3|0];p=y+z|0;A=I[d+13|0];B=I[d+1|0];q=A+B|0;C=o+(p+q|0)|0;H[e>>2]=(u+(s+C|0)|0)-1920;d=k-i|0;g=g-f|0;f=h-j|0;i=B-A|0;j=z-y|0;h=x-w|0;H[e+12>>2]=(N(d-(g+f|0)|0,11018)+N(i-(j+h|0)|0,6810)|0)+4096>>13;k=u<<1;H[e+24>>2]=(N(s-k|0,9373)+N(C-k|0,-3580)|0)+4096>>13;k=E-v|0;s=N(k,10033);u=((N(d,-2912)+N(i,-17828)|0)-s|0)+N(f,-7121)|0;i=(N(f+j|0,4712)+N(g+i|0,11018)|0)+N(d-h|0,11522)|0;H[e+28>>2]=(u+i|0)+4096>>13;H[e+20>>2]=N(h+(f+(d-(j+k|0)|0)|0)|0,10033)+4096>>13;H[e+4>>2]=(i+(((s+N(j,3897)|0)+N(g,-4209)|0)+N(h,13930)|0)|0)+4096>>13;f=((N(q-m|0,6476)+N(n-p|0,11332)|0)+N(o-l|0,7752)|0)+4096|0;d=(F+(m+q>>>1|0)|0)-(G<<1)|0;H[e+16>>2]=(f+N(l-d|0,6541)|0)+N(n-d|0,-748)>>13;H[e+8>>2]=(f+N(p-d|0,12543)|0)+N(o-d|0,-18336)>>13;f=r-7|0;d=7;r=r+1|0;e=D;b:{switch(f|0){case 0:continue;case 7:break a;default:break b}}e=t+32|0;continue}break}while(1){f=H[e+128>>2];m=H[a>>2];n=H[e+192>>2];b=m-n|0;l=H[a+128>>2];p=H[e+64>>2];j=l-p|0;q=H[a+160>>2];o=H[e+32>>2];c=q-o|0;g=H[a+32>>2];i=H[e+160>>2];h=g-i|0;k=H[a+96>>2];s=H[e+96>>2];t=k-s|0;y=H[a+192>>2];z=H[e>>2];r=y-z|0;H[a+96>>2]=(N(b-(j+c|0)|0,12536)+N(h-(t+r|0)|0,7748)|0)+16384>>15;l=l+p|0;m=m+n|0;n=q+o|0;A=(l+m|0)+n|0;B=H[a+224>>2];w=H[a+64>>2];x=w+f|0;C=B+x|0;v=C<<1;o=y+z|0;p=k+s|0;q=g+i|0;g=o+(p+q|0)|0;H[a+192>>2]=(N(A-v|0,10664)+N(g-v|0,-4073)|0)+16384>>15;H[a>>2]=N(C+(g+A|0)|0,9321)+16384>>15;f=w-f|0;g=N(f,11415);u=((N(b,-3314)+N(h,-20284)|0)-g|0)+N(c,-8102)|0;h=(N(c+t|0,5361)+N(h+j|0,12536)|0)+N(b-r|0,13109)|0;H[a+224>>2]=(u+h|0)+16384>>15;H[a+160>>2]=N(r+(c+(b-(f+t|0)|0)|0)|0,11415)+16384>>15;H[a+32>>2]=(h+(((g+N(t,4434)|0)+N(j,-4788)|0)+N(r,15850)|0)|0)+16384>>15;c=((N(q-l|0,7369)+N(m-p|0,12893)|0)+N(o-n|0,8820)|0)+16384|0;b=(x+(l+q>>1)|0)-(B<<1)|0;H[a+128>>2]=(c+N(n-b|0,7442)|0)+N(m-b|0,-852)>>15;H[a+64>>2]=(c+N(p-b|0,14271)|0)+N(o-b|0,-20862)>>15;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b){continue}break}xb=D+224|0}function jB(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=(d|0)<=0;g=0;a:{if(k){break a}e=F[b|0];g=0;if((e|0)<0){break a}f=b;g=d;b:{c:{if(d>>>0<64){break c}d:{e:{if(b&3){if(e){break b}g=d-8|0;f=b+1|0;f:{if(!(f&3)){e=d;h=8;break f}h=8;e=I[f|0];if(e){break b}j=d-16|0;f=b+2|0;if(!(f&3)){e=g;g=j;h=16;break f}h=16;e=I[f|0];if(e){break b}g=d-24|0;f=b+3|0;if(!(f&3)){e=j;h=24;break f}h=24;e=I[f|0];if(e){break b}f=b+4|0;if(f&3){break e}e=g;g=d-32|0;h=32}if((e|0)<40){break c}break d}break d}e=I[f|0];h=32;break b}e=g;while(1){if(H[f>>2]){g=e;break c}f=f+4|0;h=h+32|0;j=(e|0)>63;g=e-32|0;e=g;if(j){continue}break}}g:{if((g|0)<8){e=g;break g}while(1){e=I[f|0];if(e){g=I[e+294768|0]+h|0;break a}f=f+1|0;h=h+8|0;j=(g|0)>15;e=g-8|0;g=e;if(j){continue}break}}g=h;if((e|0)<=0){break a}g=I[I[f|0]+294768|0];g=((e|0)<(g|0)?e:g)+h|0;break a}g=I[(e&255)+294768|0]+h|0}h:{if(k){break h}h=0;e=F[c|0];if((e|0)<0){break h}f=c;i=d;i:{j:{if(d>>>0<64){break j}k:{l:{if(c&3){if(e){break i}i=d-8|0;f=c+1|0;m:{if(!(f&3)){e=d;h=8;break m}h=8;e=I[f|0];if(e){break i}j=d-16|0;f=c+2|0;if(!(f&3)){e=i;i=j;h=16;break m}h=16;e=I[f|0];if(e){break i}i=d-24|0;f=c+3|0;if(!(f&3)){e=j;h=24;break m}h=24;e=I[f|0];if(e){break i}f=c+4|0;if(f&3){break l}e=i;i=d-32|0;h=32}if((e|0)<40){break j}break k}break k}e=I[f|0];h=32;break i}e=i;while(1){if(H[f>>2]){i=e;break j}f=f+4|0;h=h+32|0;j=(e|0)>63;i=e-32|0;e=i;if(j){continue}break}}n:{if((i|0)<8){e=i;break n}while(1){e=I[f|0];if(e){i=I[e+294768|0]+h|0;break h}f=f+1|0;h=h+8|0;j=(i|0)>15;e=i-8|0;i=e;if(j){continue}break}}if((e|0)<=0){i=h;break h}i=I[I[f|0]+294768|0];i=((e|0)<(i|0)?e:i)+h|0;break h}i=I[(e&255)+294768|0]+h|0}h=0;while(1){f=d;if(i>>>0>>0){o:{if(I[(i>>>3|0)+c|0]>>>((i^-1)&7)&1){e=uj(c,i,d);break o}e=wj(c,i,d)}f=e+i|0}p:{if(f>>>0>=g>>>0){e=(i-g|0)+3|0;if(e>>>0>=7){f=d;if(g>>>0>>0){q:{if(I[(g>>>3|0)+b|0]>>>((g^-1)&7)&1){e=uj(b,g,d);break q}e=wj(b,g,d)}f=e+g|0}Tf(a,1,3);if(!(I[(h>>>3|0)+b|0]>>>((h^-1)&7)&1&(0-g|0)!=(h|0))){vj(a,g-h|0,293072);vj(a,f-g|0,293728);break p}vj(a,g-h|0,293728);vj(a,f-g|0,293072);break p}e=N(e,6);Tf(a,J[e+295282>>1],J[e+295280>>1]);f=g;break p}Tf(a,1,4)}if(d>>>0>f>>>0){r:{if(I[(f>>>3|0)+b|0]>>>((f^-1)&7)&1){g=uj(b,f,d);i=wj(c,f,d)+f|0;e=uj(c,i,d);break r}g=wj(b,f,d);i=uj(c,f,d)+f|0;e=wj(c,i,d)}i=e+i|0;g=f+g|0;h=f;continue}break}}function LK(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;k=3;a:{if((d|e)<0){break a}j=H[a+8>>2];f=H[a+12>>2];i=J[f+2>>1];if(K[j+4>>2]>>0){break a}f=J[f>>1];if(K[j>>2]>>0){break a}i=N(i,I[a+18|0]);if(N(i+7>>>3|0,f)+b>>>0>c>>>0){break a}a=d>>>3|0;h=H[j+8>>2];j=H[j+12>>2];c=(a+N(h,e)|0)+j|0;g=d&7;if(g){k=0;if(!f){break a}if(i>>>0>=8){while(1){d=0;e=i;a=c;while(1){j=a;k=b;d=I[b|0]|d;F[a|0]=I[a|0]|d>>>g;l=e;e=e-8|0;a=a+1|0;b=b+1|0;d=d<<8;if((l|0)>15){continue}break}if((l|0)>8){d=I[k+1|0]&65280>>>e|d;b=k+2|0}F[a|0]=I[a|0]|d>>>g;if((e+g|0)>=9){F[j+2|0]=I[j+2|0]|d<<8>>>g}c=c+h|0;a=f;f=a-1|0;k=0;if((a|0)>1){continue}break a}}d=65280>>>i|0;if(g+i>>>0>=9){if(!i){break a}if((h|0)!=1){if(f&1){a=d&I[b|0];F[c|0]=I[c|0]|a>>>g;F[c+1|0]=I[c+1|0]|a<<8>>>g;c=c+h|0;b=b+1|0;a=f-1|0}else{a=f}if((f|0)==1){break a}while(1){e=d&I[b|0];F[c|0]=I[c|0]|e>>>g;F[c+1|0]=I[c+1|0]|e<<8>>>g;c=c+h|0;e=d&I[b+1|0];F[c|0]=I[c|0]|e>>>g;F[c+1|0]=I[c+1|0]|e<<8>>>g;b=b+2|0;c=c+h|0;e=a-3|0;a=a-2|0;if(e>>>0<4294967294){continue}break}break a}e=I[j+(a+e|0)|0];if(f&1){a=d&I[b|0];F[c|0]=a>>>g|e;e=I[c+1|0]|a<<8>>>g;F[c+1|0]=e;c=c+h|0;b=b+1|0;a=f-1|0}else{a=f}if((f|0)==1){break a}while(1){f=e;e=d&I[b|0];F[c|0]=f|e>>>g;e=I[c+1|0]|e<<8>>>g;F[c+1|0]=e;c=c+h|0;f=d&I[b+1|0];F[c|0]=e|f>>>g;e=I[c+1|0]|f<<8>>>g;F[c+1|0]=e;b=b+2|0;c=c+h|0;f=a-3|0;a=a-2|0;if(f>>>0<4294967294){continue}break}break a}if(!i){break a}if(f&1){F[c|0]=I[c|0]|(d&I[b|0])>>>g;c=c+h|0;b=b+1|0;a=f-1|0}else{a=f}if((f|0)==1){break a}while(1){F[c|0]=I[c|0]|(d&I[b|0])>>>g;c=c+h|0;F[c|0]=I[c|0]|(d&I[b+1|0])>>>g;b=b+2|0;c=c+h|0;e=a-3|0;a=a-2|0;if(e>>>0<4294967294){continue}break}break a}k=0;if(!f){break a}if(i>>>0>=8){while(1){a=f;d=i;f=c;while(1){e=b;F[f|0]=I[b|0]|I[f|0];j=d;d=d-8|0;f=f+1|0;b=b+1|0;if((j|0)>15){continue}break}if((j|0)>8){F[f|0]=I[f|0]|I[e+1|0]&65280>>>d;b=e+2|0}c=c+h|0;f=a-1|0;if((a|0)>1){continue}break a}}if(!i){break a}d=65280>>>i|0;e=f-1|0;i=f&3;if(i){a=0;while(1){F[c|0]=I[c|0]|d&I[b|0];c=c+h|0;f=f-1|0;b=b+1|0;a=a+1|0;if((i|0)!=(a|0)){continue}break}}if(e>>>0<3){break a}while(1){F[c|0]=I[c|0]|d&I[b|0];a=c+h|0;F[a|0]=I[a|0]|d&I[b+1|0];a=a+h|0;F[a|0]=I[a|0]|d&I[b+2|0];a=a+h|0;F[a|0]=I[a|0]|d&I[b+3|0];b=b+4|0;c=a+h|0;a=f-5|0;f=f-4|0;if(a>>>0<4294967294){continue}break}}return k|0}function Nn(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;f=xb-16|0;xb=f;H[a>>2]=0;H[a+4>>2]=0;H[a+48>>2]=0;H[a+52>>2]=0;H[a+192>>2]=0;H[a+196>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;F[a+21|0]=0;F[a+22|0]=0;F[a+23|0]=0;F[a+24|0]=0;F[a+25|0]=0;F[a+26|0]=0;F[a+27|0]=0;F[a+28|0]=0;H[a+100>>2]=0;H[a+92>>2]=0;H[a+96>>2]=0;F[a+44|0]=0;H[a+40>>2]=65536;H[a+56>>2]=0;H[a+60>>2]=0;c=a- -64|0;H[c>>2]=0;H[c+4>>2]=0;H[a+72>>2]=0;H[a+76>>2]=0;H[a+80>>2]=0;H[a+84>>2]=0;H[a+200>>2]=0;H[a+204>>2]=0;H[a+208>>2]=0;H[a+212>>2]=0;H[a+216>>2]=0;H[a+220>>2]=0;H[a+224>>2]=0;H[a+228>>2]=0;H[a+232>>2]=0;H[a+236>>2]=0;H[a+240>>2]=0;H[197455]=0;ba(681,a|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){a:{b:{if(!H[a>>2]|H[a+148>>2]!=-1){break b}if(H[a+216>>2]){while(1){H[197455]=0;g=es(a,h);b=H[197455];H[197455]=0;c:{d:{if((b|0)!=1){if(g>>>0>390){break d}b=g<<2;c=H[b+115968>>2];j=H[b+115972>>2]+(c^-1)|0;i=c+109072|0;break c}break a}b=H[a+64>>2];H[197455]=0;Ri(f,b,g-391|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}i=H[f>>2];if(i){j=H[f+4>>2];break c}H[197455]=0;ia(657,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){break b}break a}c=H[a+232>>2];e:{if((c|0)<0){b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;break e}f:{e=c;b=H[a+236>>2];d=b+1|0;d=(d|0)>0?d:0;if(c>>>0>>0){while(1){e=((e>>>1|0)+e|0)+8|0;if(d>>>0>=e>>>0){continue}break}if(c>>>0>e>>>0|e>>>0>268435454){break f}b=tc(H[a+240>>2],e<<4);if(!b){break f}H[a+232>>2]=e;H[a+240>>2]=b;b=H[a+236>>2]}if(b>>>0>>0){while(1){H[a+236>>2]=b+1;b=H[a+240>>2]+(b<<4)|0;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;b=H[a+236>>2];if(d>>>0>b>>>0){continue}break}}H[a+236>>2]=d;c=H[a+240>>2];b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;b=c+(d-1<<4)|0;if((b|0)==784992){break e}H[b>>2]=i;G[b+12>>1]=g;H[b+8>>2]=0;H[b+4>>2]=j;break e}H[a+232>>2]=-1;b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b}h=h+1|0;if(h>>>0>2]){continue}break}}b=H[a+236>>2];if(!b){break b}aG(H[a+240>>2],b,16)}xb=f+16|0;return a|0}}b=$()|0;_()|0;H[a+236>>2]=0;Kb(H[a+240>>2]);H[a+240>>2]=0;H[a+232>>2]=0;H[a+236>>2]=0;H[a+224>>2]=0;Kb(H[a+228>>2]);H[a+228>>2]=0;H[a+220>>2]=0;H[a+224>>2]=0;rG(a);ea(b|0);X()}function Uda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;x=xb-352|0;xb=x;v=H[a+332>>2];a=H[b+84>>2];b=x;while(1){q=H[a+224>>2];r=G[c+112>>1];g=H[a+96>>2];j=G[c+48>>1];n=H[a+160>>2];o=G[c+80>>1];k=H[a+32>>2];s=G[c+16>>1];f=N(G[c>>1],H[a>>2])<<13|1024;l=N(H[a+192>>2],G[c+96>>1]);m=N(H[a+64>>2],G[c+32>>1]);p=l+m|0;h=N(H[a+128>>2],G[c+64>>1]);t=p-h|0;H[b+160>>2]=f+N(t,-11585)>>11;g=N(g,j);k=N(k,s);i=g+k|0;s=N(i,7274);j=N(n,o);n=N(j+k|0,5492);q=N(q,r);r=N(q+(j+i|0)|0,3264);o=f+N(t,11116)|0;t=o+N(h-l|0,20862)|0;f=t+N(l,17333)|0;i=n+(s+N(k,-7562)|0)|0;k=r+N(k+q|0,3e3)|0;i=i+k|0;H[b+320>>2]=f-i>>11;H[b>>2]=f+i>>11;f=N(l,-6461);l=o+N(p,-9467)|0;p=f+l|0;f=n+N(j,-9766)|0;n=r+N(g+j|0,-9527)|0;f=f+n|0;H[b+256>>2]=p-f>>11;H[b+64>>2]=p+f>>11;f=o;o=N(h-m|0,3529);p=(f+o|0)+N(m,-12399)|0;f=k;k=N(g+q|0,-14731);f=f+(k+N(q,17223)|0)|0;H[b+224>>2]=p-f>>11;H[b+96>>2]=p+f>>11;l=l+(N(h,15929)+N(m,-11395)|0)|0;j=r+((N(j,8203)+N(g,-12019)|0)+N(q,-13802)|0)|0;H[b+192>>2]=l-j>>11;H[b+128>>2]=j+l>>11;h=o+(t+N(h,-14924)|0)|0;g=n+(k+(s+N(g,16984)|0)|0)|0;H[b+288>>2]=h-g>>11;H[b+32>>2]=g+h>>11;b=b+4|0;a=a+4|0;c=c+2|0;u=u+1|0;if((u|0)!=8){continue}break}b=v+128|0;l=0;a=x;while(1){h=H[a+12>>2];m=H[a+4>>2];c=h+m|0;o=N(c,7274);g=H[a+20>>2];v=N(g+m|0,5492);j=H[a+28>>2];k=N(j+(c+g|0)|0,3264);f=(H[a>>2]<<13)+131072|0;r=H[a+24>>2];s=H[a+8>>2];p=r+s|0;q=H[a+16>>2];t=p-q|0;n=f+N(t,11116)|0;c=H[(l<<2)+d>>2]+e|0;i=v+(o+N(m,-7562)|0)|0;m=k+N(j+m|0,3e3)|0;i=i+m|0;u=n+N(q-r|0,20862)|0;w=u+N(r,17333)|0;F[c|0]=I[b+(i+w>>>18&1023)|0];F[c+10|0]=I[b+(w-i>>>18&1023)|0];i=k+N(g+h|0,-9527)|0;w=o+N(h,16984)|0;o=N(j+h|0,-14731);w=i+(w+o|0)|0;y=N(q-s|0,3529);u=y+(u+N(q,-14924)|0)|0;F[c+1|0]=I[b+(w+u>>>18&1023)|0];F[c+9|0]=I[b+(u-w>>>18&1023)|0];v=i+(v+N(g,-9766)|0)|0;i=N(r,-6461);r=n+N(p,-9467)|0;p=i+r|0;F[c+2|0]=I[b+(v+p>>>18&1023)|0];F[c+8|0]=I[b+(p-v>>>18&1023)|0];m=m+(o+N(j,17223)|0)|0;n=(n+y|0)+N(s,-12399)|0;F[c+3|0]=I[b+(m+n>>>18&1023)|0];F[c+7|0]=I[b+(n-m>>>18&1023)|0];h=k+((N(g,8203)+N(h,-12019)|0)+N(j,-13802)|0)|0;g=r+(N(q,15929)+N(s,-11395)|0)|0;F[c+4|0]=I[b+(h+g>>>18&1023)|0];F[c+6|0]=I[b+(g-h>>>18&1023)|0];F[c+5|0]=I[b+(f+N(t,268423871)>>>18&1023)|0];a=a+32|0;l=l+1|0;if((l|0)!=11){continue}break}xb=x+352|0}function eD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((d|0)<=0){p=65531;break a}H[e>>2]=0;p=65535;g=H[a+984>>2];if((g|0)>=16383){f=zb[H[H[b>>2]+12>>2]](b,H[a+992>>2],1,16383,0,0)|0;H[a+988>>2]=f;if((f|0)<=16382){F[f+H[a+992>>2]|0]=255}H[a+984>>2]=0;g=0}if(H[a+988>>2]<=(g|0)){break a}H[a+984>>2]=g+1;p=65516;f=I[H[a+992>>2]+g|0];if((f<<16)-589825>>>0<4294508543){break a}p=0;H[a+1008>>2]=0;r=f+1|0;G[a+996>>1]=r;f=1<>1]=f;s=1<>1]=s;i=f+2|0;G[a+1006>>1]=i;G[a+1002>>1]=i;G[a+1e3>>1]=f+1;Nb(H[a+1024>>2],0,4096);Nb(H[a+1032>>2],0,4096);Nb(H[a+1028>>2],0,4096);l=Qb(d+1|0);g=H[a+1024>>2];m=cr(a,b);b:{if((m&65535)==J[a+1e3>>1]){break b}k=d;f=0;i=l;while(1){n=m<<16>>16;if((n|0)<0){break b}c:{d:{e:{if(J[a+998>>1]==(m&65535)){G[a+996>>1]=r;G[a+1004>>1]=s;G[a+1006>>1]=J[a+1002>>1];while(1){f=cr(a,b);h=f&65535;if((h|0)==J[a+998>>1]){continue}break}if((h|0)==J[a+1e3>>1]){break c}h=(f|0)>1]?f:0;F[i|0]=h;k=k-1|0;if(k&65535){i=i+1|0;f=h;break d}if(!c){i=l;f=h;k=d;break d}i=l;f=h;k=d;if(!(br(a,c,l,d)&32768)){break d}break e}o=H[a+1024>>2];j=G[a+1006>>1];q=m;f:{if((j|0)>(n|0)){break f}q=m;if(o+4094>>>0<=g>>>0){break f}if((j|0)<(n|0)){H[e>>2]=H[e>>2]+1}F[g|0]=h;g=g+1|0;o=H[a+1024>>2];q=f}j=q;g:{if(o+4094>>>0<=g>>>0|G[a+1002>>1]>j<<16>>16){break g}while(1){j=j<<16>>16;F[g|0]=I[j+H[a+1028>>2]|0];g=g+1|0;j=G[H[a+1032>>2]+(j<<1)>>1];if((j|0)>1]){break g}if(H[a+1024>>2]+4094>>>0>g>>>0){continue}break}}F[g|0]=j;o=G[a+1006>>1];n=G[a+1004>>1];h:{if((o|0)>=(n|0)){j=h;m=f;break h}F[H[a+1028>>2]+o|0]=j;h=G[a+1006>>1];G[a+1006>>1]=h+1;G[H[a+1032>>2]+(h<<1)>>1]=f;n=J[a+1004>>1];o=J[a+1006>>1]}g=g+1|0;i:{if(o<<16>>16>16){break i}f=G[a+996>>1];if((f|0)>11){break i}G[a+996>>1]=f+1;G[a+1004>>1]=n<<1}j:{if(K[a+1024>>2]>=g>>>0){break j}if(!c){while(1){g=g-1|0;F[i|0]=I[g|0];h=k-1|0;f=h&65535;k=f?h:d;i=f?i+1|0:l;if(K[a+1024>>2]>>0){continue}break j}}while(1){g=g-1|0;F[i|0]=I[g|0];k=k-1|0;k:{if(k&65535){i=i+1|0;break k}i=l;k=d;if(br(a,c,l,d)&32768){break e}}if(K[a+1024>>2]>>0){continue}break}}h=j;f=m;break d}p=65535;break b}m=cr(a,b);if((m&65535)!=J[a+1e3>>1]){continue}}break}if(!c|(k&65535)==(d&65535)){break b}p=br(a,c,l,d-(k<<16>>16)|0)}Kb(l)}return p<<16>>16}function dea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;v=xb-256|0;xb=v;q=H[a+332>>2];a=H[b+84>>2];o=8;b=v;while(1){a:{b:{f=J[c+32>>1];g=G[c+16>>1];if((f|g)&65535){break b}f=0;if(J[c+48>>1]|J[c+64>>1]|(J[c+80>>1]|J[c+96>>1])){break b}if(J[c+112>>1]){break b}f=N(G[c>>1],H[a>>2])<<2;H[b+192>>2]=f;H[b+160>>2]=f;H[b+128>>2]=f;H[b+96>>2]=f;H[b+64>>2]=f;H[b+32>>2]=f;H[b>>2]=f;i=56;break a}h=N(H[a+192>>2],G[c+96>>1]);j=N(H[a+64>>2],f<<16>>16);f=N(h+j|0,4433);g=N(g,H[a+32>>2]);r=N(H[a+224>>2],G[c+112>>1]);t=N(g+r|0,-7373);m=N(H[a+160>>2],G[c+80>>1]);k=m+g|0;n=N(H[a+96>>2],G[c+48>>1]);p=n+r|0;l=N(k+p|0,9633);i=N(G[c+64>>1],H[a+128>>2])<<13;s=N(G[c>>1],H[a>>2])<<13|1024;u=i+s|0;j=f+N(j,6270)|0;w=u+j|0;x=t+N(g,12299)|0;g=l+N(k,-3196)|0;k=x+g|0;H[b+224>>2]=w-k>>11;H[b>>2]=k+w>>11;k=s-i|0;f=f+N(h,-15137)|0;h=k+f|0;l=l+N(p,-16069)|0;i=N(n,25172);n=N(m+n|0,-20995);p=l+(i+n|0)|0;H[b+192>>2]=h-p>>11;H[b+32>>2]=h+p>>11;f=k-f|0;g=g+(n+N(m,16819)|0)|0;H[b+160>>2]=f-g>>11;H[b+64>>2]=f+g>>11;f=l+(t+N(r,2446)|0)|0;g=u-j|0;H[b+96>>2]=f+g>>11;f=g-f>>11;i=32}H[(i<<2)+b>>2]=f;c=c+2|0;a=a+4|0;b=b+4|0;f=o>>>0>1;o=o-1|0;if(f){continue}break}b=q+128|0;o=0;c=v;while(1){a=H[(o<<2)+d>>2]+e|0;c:{d:{f=H[c+8>>2];g=H[c+4>>2];if(f|g){break d}f=0;if(H[c+12>>2]|H[c+16>>2]|(H[c+20>>2]|H[c+24>>2])){break d}if(H[c+28>>2]){break d}f=gma(I[b+(H[c>>2]+16>>>5&1023)|0],0,16843009,16843009);F[a|0]=f;F[a+1|0]=f>>>8;F[a+2|0]=f>>>16;F[a+3|0]=f>>>24;f=yb;F[a+4|0]=f;F[a+5|0]=f>>>8;F[a+6|0]=f>>>16;F[a+7|0]=f>>>24;break c}r=H[c+28>>2];t=N(r+g|0,-7373);m=H[c+12>>2];q=m+r|0;n=H[c+20>>2];h=n+g|0;l=N(q+h|0,9633);i=t+N(g,12299)|0;g=l+N(h,-3196)|0;h=i+g|0;j=H[c>>2]+16|0;k=H[c+16>>2];p=j+k<<13;s=N(f,6270);i=f;f=H[c+24>>2];i=N(i+f|0,4433);s=s+i|0;u=p+s|0;F[a|0]=I[b+(h+u>>>18&1023)|0];F[a+7|0]=I[b+(u-h>>>18&1023)|0];l=l+N(q,-16069)|0;h=N(m,25172);m=N(m+n|0,-20995);q=l+(h+m|0)|0;h=j-k<<13;f=i+N(f,-15137)|0;j=h+f|0;F[a+1|0]=I[b+(q+j>>>18&1023)|0];F[a+6|0]=I[b+(j-q>>>18&1023)|0];g=g+(m+N(n,16819)|0)|0;f=h-f|0;F[a+2|0]=I[b+(g+f>>>18&1023)|0];F[a+5|0]=I[b+(f-g>>>18&1023)|0];f=l+(t+N(r,2446)|0)|0;g=p-s|0;F[a+3|0]=I[b+(f+g>>>18&1023)|0];F[a+4|0]=I[b+(g-f>>>18&1023)|0]}c=c+32|0;o=o+1|0;if((o|0)!=8){continue}break}xb=v+256|0}function Mh(a,b,c,d){var e=0,f=0;if(!(!a|!b)){f=H[b+56>>2];a:{if(!f|!(H[b+184>>2]&c&16384)){break a}if((d|0)==-1){e=1;if(H[b+48>>2]>0){cc(a,H[f+4>>2]);if(H[b+48>>2]>1){while(1){cc(a,H[(H[b+56>>2]+N(e,28)|0)+4>>2]);e=e+1|0;if((e|0)>2]){continue}break}}f=H[b+56>>2]}cc(a,f);H[b+48>>2]=0;H[b+56>>2]=0;break a}e=N(d,28);cc(a,H[(e+f|0)+4>>2]);H[(e+H[b+56>>2]|0)+4>>2]=0}e=H[b+184>>2];if(e&c&8192){H[b+8>>2]=H[b+8>>2]&-17;cc(a,H[b+76>>2]);G[b+22>>1]=0;H[b+76>>2]=0;e=H[b+184>>2]}if(c&e&256){cc(a,H[b+224>>2]);cc(a,H[b+228>>2]);H[b+224>>2]=0;H[b+228>>2]=0;H[b+8>>2]=H[b+8>>2]&-16385;e=H[b+184>>2]}if(c&e&128){cc(a,H[b+160>>2]);cc(a,H[b+172>>2]);H[b+172>>2]=0;H[b+160>>2]=0;e=H[b+176>>2];if(e){if(I[b+181|0]){cc(a,H[e>>2]);if(I[b+181|0]>=2){e=1;while(1){cc(a,H[H[b+176>>2]+(e<<2)>>2]);e=e+1|0;if(e>>>0>2]}cc(a,e);H[b+176>>2]=0}H[b+8>>2]=H[b+8>>2]&-1025;e=H[b+184>>2]}if(c&e&16){cc(a,H[b+196>>2]);cc(a,H[b+200>>2]);H[b+196>>2]=0;H[b+200>>2]=0;H[b+8>>2]=H[b+8>>2]&-4097}f=H[b+212>>2];b:{if(!f|!(H[b+184>>2]&c&32)){break b}if((d|0)==-1){e=1;if(H[b+216>>2]>0){cc(a,H[f>>2]);cc(a,H[H[b+212>>2]+8>>2]);if(H[b+216>>2]>1){while(1){f=e<<4;cc(a,H[f+H[b+212>>2]>>2]);cc(a,H[(f+H[b+212>>2]|0)+8>>2]);e=e+1|0;if((e|0)>2]){continue}break}}f=H[b+212>>2]}cc(a,f);H[b+212>>2]=0;H[b+216>>2]=0;H[b+8>>2]=H[b+8>>2]&-8193;break b}e=d<<4;cc(a,H[e+f>>2]);cc(a,H[(e+H[b+212>>2]|0)+8>>2]);e=e+H[b+212>>2]|0;H[e+8>>2]=0;H[e>>2]=0}f=H[b+188>>2];c:{if(!f|!(H[b+184>>2]&c&512)){break c}if((d|0)==-1){e=1;if(H[b+192>>2]>0){cc(a,H[f+8>>2]);if(H[b+192>>2]>1){while(1){cc(a,H[(H[b+188>>2]+N(e,20)|0)+8>>2]);e=e+1|0;if((e|0)>2]){continue}break}}f=H[b+188>>2]}cc(a,f);H[b+188>>2]=0;H[b+192>>2]=0;break c}e=N(d,20);cc(a,H[(e+f|0)+8>>2]);H[(e+H[b+188>>2]|0)+8>>2]=0}e=H[b+184>>2];if(e&c&8){cc(a,H[b+124>>2]);H[b+124>>2]=0;H[b+8>>2]=H[b+8>>2]&-65;e=H[b+184>>2]}if(c&e&4096){cc(a,H[b+16>>2]);H[b+16>>2]=0;G[b+20>>1]=0;H[b+8>>2]=H[b+8>>2]&-9;e=H[b+184>>2]}if(c&e&64){f=H[b+232>>2];if(f){if(H[b+4>>2]){cc(a,H[f>>2]);if(K[b+4>>2]>=2){e=1;while(1){cc(a,H[H[b+232>>2]+(e<<2)>>2]);e=e+1|0;if(e>>>0>2]){continue}break}}f=H[b+232>>2]}cc(a,f);H[b+232>>2]=0;e=H[b+184>>2]}H[b+8>>2]=H[b+8>>2]&-32769}H[b+184>>2]=(((d|0)==-1?c:c&-16929)^-1)&e}}function Ur(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;q=xb-16|0;xb=q;a:{if(b>>>0>64){a=0;break a}o=H[a+100>>2];k=H[o+64>>2];H[a+40>>2]=b-1;H[a+4>>2]=k;i=H[H[a+8>>2]+100>>2];H[a+44>>2]=H[i+68>>2];l=(k|0)==H[i+64>>2]?I[(H[i+80>>2]+N(k,20)|0)+15|0]:l;H[a+36>>2]=c;H[a+32>>2]=e;H[a+28>>2]=d;F[a+24|0]=l;c=H[o+80>>2]+N(k,20)|0;i=I[c+14|0];e=i&16;b:{c:{d:{if(I[c+12|0]&4){if(!e){d=i>>>5|0;break d}d=i>>>5|0;c=i&15;break b}d=i>>>5|0;if(!e){break d}n=0;break c}n=i&15}c=1}j=a+4|0;H[g>>2]=k;e:{f:{g:{if(b>>>0<2){break g}p=1;h:{if(!(!n|i>>>0<32)){k=1;while(1){if(!Ne(j,q+12|0)){break f}H[(k<<2)+g>>2]=H[j>>2];l=H[o+80>>2];e=H[j>>2];a=I[(l+N(e,20)|0)+14|0];if((a>>>5|0)==(d|0)){a=((a&16?0:a&15)|0)==(n|0)}else{a=0}i:{if(a){break i}j:{switch(m|0){case 0:break j;case 1:break e;default:break i}}a=H[o+72>>2];e=H[o+84>>2];while(1){if(!a){break h}a=a-1|0;m=e+N(a,20)|0;i=I[m+14|0];if((i>>>5|0)!=(d|0)){break h}if(!(i&15?i&16:1)){continue}break}l=1;e=J[m+12>>1];i=H[j+8>>2];k:{if(e&i&14){break k}l:{if(!(e&8)){break l}if(i&16){e=H[H[j+4>>2]+108>>2];a=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);if((a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))>>>0<65538){break k}a=I[e+12|0]|I[e+13|0]<<8;if(a){a=e+((a<<8|a>>>8)&65535)|0}else{a=163632}if((I[a|0]|I[a+1|0]<<8)!=256){break k}r=a;e=i>>>16|0;i=(a+(e<<2)|0)+4|0;a=I[a+2|0]|I[a+3|0]<<8;a=e>>>0<((a<<8|a>>>8)&65535)>>>0?i:163632;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if((Gc(a?r+a|0:163632,H[m>>2])|0)==-1){break k}e=J[m+12>>1];break l}a=i&65280;if(!a){break l}if((a|0)!=(e&65280)){break k}}l=0;a=J[m+16>>1];if(e&16|(a&96)!=32|!I[j+12|0]&(a&543)==513){break k}l=I[j+13|0]?2:((a&287)!=257)<<1}if((l|0)!=1){break h}e=H[j>>2];l=H[o+80>>2];m=2}a=1;e=N(e,20)+l|0;m:{if(!(I[e+12|0]&4)){break m}e=I[e+14|0];if(!(e&16)){break m}a=e&15}c=a+c|0;k=k+1|0;p=k>>>0>>0;if((b|0)!=(k|0)){continue}break}break g}while(1){if(!Ne(j,q+12|0)){break f}H[(p<<2)+g>>2]=H[j>>2];a=H[o+80>>2]+N(H[j>>2],20)|0;n=I[a+14|0];m=n&15;e=n&16;if(!(e|((n>>>5|0)==(d|0)|n>>>0<32))){if(m){break e}}c=(J[a+12>>1]&4?e?m:1:1)+c|0;p=p+1|0;if((p|0)!=(b|0)){continue}break}break g}a=0;if(p&1){break a}}a=1;H[f>>2]=H[j>>2]+1;if(!h){break a}H[h>>2]=c;break a}H[f>>2]=H[q+12>>2]}a=0}xb=q+16|0;return a}function yB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=xb+-64|0;xb=f;c=H[a+12>>2];a:{b:{if(c&131072){break b}e=H[H[a+188>>2]+(b<<2)>>2];if(!e){e=H[a+628>>2];a=H[a>>2];H[f+8>>2]=b;H[f+4>>2]=0;H[f>>2]=a;Pb(e,283796,272789,f);d=0;break a}if(!(!(c&2048)|!((J[a+94>>1]|256)&c))){c:{if(!(c&512)){break c}d=H[a+596>>2];if(!d){break c}Kb(d);c=H[a+12>>2]}c=c&-513;H[a+12>>2]=c;d=H[a+616>>2];g=H[a+184>>2]+(b<<2)|0;h=H[g>>2];if(!(d>>>0>=e>>>0&h>>>0<=d-e>>>0)){c=H[a+628>>2];g=H[a>>2];H[f+60>>2]=e;H[f+56>>2]=d-h;H[f+52>>2]=b;H[f+48>>2]=g;Pb(c,283796,273332,f+48|0);H[a+480>>2]=-1;d=0;break a}H[a+600>>2]=e;H[a+596>>2]=H[a+612>>2]+H[g>>2];break b}d:{if(e>>>0<=K[a+600>>2]){g=H[a+596>>2];break d}H[a+480>>2]=-1;if(!(c&512)){e=H[a+628>>2];a=H[a>>2];H[f+20>>2]=b;H[f+16>>2]=a;Pb(e,283796,273942,f+16|0);d=0;break a}c=H[a+596>>2];if(c){Kb(c);H[a+596>>2]=0}c=e>>>0<4294966272?e+1023&-1024:0;c=(c|0)==-1024?0:c;H[a+600>>2]=c;e:{if((c|0)<=0){H[a+12>>2]=H[a+12>>2]|512;break e}g=Tb(c);H[a+596>>2]=g;H[a+12>>2]=H[a+12>>2]|512;if(!g){break e}if(H[a+600>>2]){break d}}b=H[a+628>>2];e=H[a>>2];H[f+36>>2]=H[a+472>>2];H[f+32>>2]=e;Pb(b,283824,276909,f+32|0);H[a+600>>2]=0;d=0;break a}c=e;d=xb+-64|0;xb=d;f:{if(!(I[a+13|0]&8)){h=b<<2;if((zb[H[a+640>>2]](H[a+628>>2],H[h+H[a+184>>2]>>2],0)|0)!=H[h+H[a+184>>2]>>2]){c=H[a+628>>2];g=H[a>>2];h=H[a+472>>2];H[d+24>>2]=b;H[d+20>>2]=h;H[d+16>>2]=g;Pb(c,283796,278522,d+16|0);c=-1;break f}g=zb[H[a+632>>2]](H[a+628>>2],g,c)|0;if((g|0)==(c|0)){break f}h=H[a+628>>2];i=H[a>>2];j=H[a+472>>2];H[d+12>>2]=c;H[d+8>>2]=g;H[d+4>>2]=j;H[d>>2]=i;Pb(h,283796,278899,d);c=-1;break f}i=H[a+616>>2];h=H[H[a+184>>2]+(b<<2)>>2];if(i>>>0>>0){g=H[a+628>>2];j=H[a>>2];k=H[a+472>>2];H[d+48>>2]=c;H[d+44>>2]=i-h;H[d+40>>2]=b;H[d+36>>2]=k;H[d+32>>2]=j;Pb(g,283796,279231,d+32|0);c=-1;break f}Kc(g,H[a+612>>2]+h|0,c)}xb=d- -64|0;d=0;if((c|0)!=(e|0)){break a}c=H[a+12>>2];if(c&(J[a+94>>1]|256)){break b}wq(H[a+596>>2],e);c=H[a+12>>2]}if(!(c&32)){d=0;if(!(zb[H[a+516>>2]](a)|0)){break a}c=H[a+12>>2]|32;H[a+12>>2]=c}H[a+480>>2]=b;d=H[a+176>>2];e=(b>>>0)/(d>>>0)|0;H[a+472>>2]=N(H[a+100>>2],b-N(d,e)|0);d=0;if(c&131072){b=0}else{d=H[a+596>>2];b=H[H[a+188>>2]+(b<<2)>>2]}H[a+608>>2]=b;H[a+604>>2]=d;d=zb[H[a+520>>2]](a,e&65535)|0}xb=f- -64|0;return d}function oN(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;e=xb-48|0;xb=e;a:{b:{c:{if(!fc(b,21380)){f=6;if(d){break a}d=H[c>>2];b=0;c=14512;while(1){if(!((d|0)!=H[c+8>>2]|H[c+16>>2]!=10)){c=b;break c}c=b+1|0;g=H[(c<<2)+16608>>2];if((d|0)==H[g+8>>2]&H[g+16>>2]==10){break c}c=b+2|0;g=H[(c<<2)+16608>>2];if((d|0)==H[g+8>>2]&H[g+16>>2]==10){break c}b=b+3|0;c=H[(b<<2)+16608>>2];if((b|0)!=87){continue}break}break a}if(!fc(b,21396)){f=6;if(d){break a}H[a+16>>2]=H[c>>2];break b}if(!fc(b,21411)){f=6;if(d){break a}b=H[c>>2];if(!b){f=35;break a}d=H[b+116>>2];H[e+16>>2]=d;if(!d){f=fm(b,e+16|0,a);if(f){break a}d=H[e+16>>2];H[b+116>>2]=d;H[b+120>>2]=1}H[d+12>>2]=H[c+4>>2];break b}if(!fc(b,21429)){if(d){f=6;d:{switch(Pd(c,0)|0){case 0:f=0;F[a+20|0]=0;break a;case 1:break d;default:break a}}F[a+20|0]=1;break b}F[a+20|0]=I[c|0];break b}if(!fc(b,21437)){e:{if(d){b=Pd(c,e+12|0);f:{d=H[e+12>>2];g:{if(I[d|0]!=44|(c|0)==(d|0)){break g}d=d+1|0;l=e,m=Pd(d,e+12|0),H[l+20>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break g}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+24>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break g}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+28>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break g}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+32>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break g}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+36>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break g}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+40>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break g}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+44>>2]=m;f=H[e+12>>2];if((I[f|0]|32)==32){break f}}f=6;break a}c=e+16|0;if((d|0)!=(f|0)){break e}f=6;break a}b=H[c>>2]}f=6;if((b|0)<0){break a}d=H[c+8>>2];if((d|0)<0){break a}g=H[c+16>>2];if((g|0)<0){break a}h=H[c+24>>2];if((h|0)<0){break a}i=H[c+4>>2];if((i|0)<0){break a}j=H[c+12>>2];if((j|0)<0){break a}k=H[c+20>>2];if((k|0)<0){break a}c=H[c+28>>2];if((c|0)<0|(b|0)>(d|0)|((d|0)>(g|0)|g>>>0>h>>>0)){break a}if(i>>>0>500|j>>>0>500|(k>>>0>500|c>>>0>500)){break a}H[a+48>>2]=h;H[a+36>>2]=j;H[a+24>>2]=b;H[a+52>>2]=c;H[a+44>>2]=k;H[a+40>>2]=g;H[a+32>>2]=d;H[a+28>>2]=i;break b}f=12;if(fc(b,21458)){break a}if(d){f=0;if(!Pd(c,0)){F[a+21|0]=0;break a}F[a+21|0]=1;break a}F[a+21|0]=I[c|0];break b}H[a+12>>2]=c}f=0}xb=e+48|0;return f|0}function r0(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;e=xb-96|0;xb=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!H[a+80>>2]){break j}vi(e+80|0,a,d?d+4|0:0,0);c=I[e+91|0];b=c<<24>>24;if((b|0)<0?H[e+84>>2]:c){H[197455]=0;b=ca(1762,e+32|0,404840,e+80|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[e+56>>2]=b;H[197455]=0;H[e+60>>2]=1;b=H[e+60>>2];H[e+8>>2]=H[e+56>>2];H[e+12>>2]=b;j=da(1763,e- -64|0,e+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}if(F[e+55|0]<0){Kb(H[e+44>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}b=H[d+8>>2];k:{if((b|0)==H[d+12>>2]){f=-4294967295;g=-4294967295;break k}c=0;g=2147483647;f=-2147483648;k=-2147483648;l=2147483647;while(1){b=H[(c<<2)+b>>2];m=H[H[b>>2]+8>>2];H[197455]=0;m=aa(m|0,b|0)|0;n=H[197455];H[197455]=0;if((n|0)==1){break g}l:{m:{n:{switch(m-1|0){case 0:h=M[b+16>>3];f=f>3];k=kh?h:g;l=l>i?i:l;break m;case 4:break l;case 1:break n;default:break m}}h=M[b+16>>3];f=f>3];k=kh?h:g;l=l>i?i:l}c=c+1|0;b=H[d+8>>2];if(c>>>0>2]-b>>2>>>0){continue}}break}f=f-g;g=k-l}H[197455]=0;a=a+8|0;qa(1765,a|0,j|0,+P(g),+P(f));b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,j|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[e+32>>2]=b;H[e+36>>2]=4;H[e+40>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[e+27|0]=0;H[197455]=0;H[e+16>>2]=0;ka(1767,a|0,e+32|0,j|0,e+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}a=H[j>>2];if(a){b=H[j+4>>2];if((a|0)==(b|0)){b=a}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}c=b-24|0;if(F[b-13|0]<0){Kb(H[c>>2])}b=c;if((a|0)!=(b|0)){continue}break}b=H[j>>2]}H[j+4>>2]=a;Kb(b)}b=I[e+91|0]}if(b<<24>>24>=0){break j}Kb(H[e+80>>2])}xb=e+96|0;return}b=$()|0;_()|0;break b}b=$()|0;_()|0;Vb(e+32|0);break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;break c}b=$()|0;_()|0;if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+43|0]>=0){break c}Kb(H[e+32>>2])}yc(j)}if(F[e+91|0]<0){Kb(H[e+80>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}function Bda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,K=0,L=0,M=0,O=0,P=0,Q=0,R=0;b=H[b+84>>2];f=N(H[b+160>>2],G[c+80>>1]);h=N(H[b+32>>2],G[c+16>>1]);g=N(f+h|0,2998);l=H[d>>2]+e|0;a=H[a+332>>2]+128|0;m=N(H[b+96>>2],J[c+48>>1]);x=g+(m+h<<13)|0;y=N(N(G[c+32>>1],H[b+64>>2]),10033);r=N(G[c>>1],H[b>>2])<<13|1024;s=N(H[b+128>>2],G[c+64>>1]);z=r+N(s,5793)|0;A=y+z|0;B=(x+A<<2)+131072&-8192;i=N(H[b+168>>2],G[c+84>>1]);n=N(H[b+40>>2],G[c+20>>1]);t=N(i+n|0,2998);j=N(H[b+104>>2],G[c+52>>1]);C=t+(j+n<<13)|0;u=N(N(G[c+36>>1],H[b+72>>2]),10033);v=N(G[c+4>>1],H[b+8>>2])<<13|1024;k=N(H[b+136>>2],G[c+68>>1]);D=v+N(k,5793)|0;E=u+D|0;w=C+E>>11;K=B+N(w,5793)|0;o=N(H[b+164>>2],G[c+82>>1]);p=N(H[b+36>>2],G[c+18>>1]);L=N(o+p|0,2998);q=N(H[b+100>>2],G[c+50>>1]);M=L+(q+p<<13)|0;O=N(N(G[c+34>>1],H[b+68>>2]),10033);P=N(G[c+2>>1],H[b+4>>2])<<13|1024;c=N(H[b+132>>2],G[c+66>>1]);Q=P+N(c,5793)|0;R=O+Q|0;b=N(M+R>>11,10033);F[l|0]=I[a+(K+b>>>18&1023)|0];F[l+2|0]=I[a+(K-b>>>18&1023)|0];F[l+1|0]=I[a+(B+N(w,268423870)>>>18&1023)|0];b=H[d+4>>2]+e|0;l=n-(i+j|0)<<2;n=v+N(k,-11586)>>11;k=l+n|0;h=h-(f+m|0)<<2;v=r+N(s,-11586)>>11;w=(h+v<<13)+131072|0;s=N(k,5793)+w|0;p=p-(o+q|0)<<2;c=N(c,-11586)+P>>11;r=N(p+c|0,10033);F[b|0]=I[a+(s+r>>>18&1023)|0];F[b+2|0]=I[a+(s-r>>>18&1023)|0];F[b+1|0]=I[a+(w+N(k,268423870)>>>18&1023)|0];b=H[d+8>>2]+e|0;f=g+(f-m<<13)|0;g=z-y|0;m=(f+g<<2)+131072&-8192;i=(i-j<<13)+t|0;j=D-u|0;t=i+j>>11;u=m+N(t,5793)|0;o=(o-q<<13)+L|0;q=Q-O|0;k=N(o+q>>11,10033);F[b|0]=I[a+(u+k>>>18&1023)|0];F[b+2|0]=I[a+(u-k>>>18&1023)|0];F[b+1|0]=I[a+(m+N(t,268423870)>>>18&1023)|0];b=H[d+12>>2]+e|0;f=(g-f<<2)+131072&-8192;i=j-i>>11;g=f+N(i,5793)|0;j=N(q-o>>11,10033);F[b|0]=I[a+(g+j>>>18&1023)|0];F[b+2|0]=I[a+(g-j>>>18&1023)|0];F[b+1|0]=I[a+(f+N(i,268423870)>>>18&1023)|0];b=H[d+16>>2]+e|0;h=(v-h<<13)+131072|0;f=n-l|0;g=h+N(f,5793)|0;c=N(c-p|0,10033);F[b|0]=I[a+(g+c>>>18&1023)|0];F[b+2|0]=I[a+(g-c>>>18&1023)|0];F[b+1|0]=I[a+(h+N(f,268423870)>>>18&1023)|0];b=H[d+20>>2]+e|0;d=(A-x<<2)+131072&-8192;c=E-C>>11;e=d+N(c,5793)|0;f=N(R-M>>11,10033);F[b|0]=I[a+(e+f>>>18&1023)|0];F[b+2|0]=I[a+(e-f>>>18&1023)|0];F[b+1|0]=I[a+(d+N(c,268423870)>>>18&1023)|0]}function Gda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;x=xb-512|0;xb=x;s=H[a+332>>2];a=H[b+84>>2];b=x;while(1){l=N(H[a+64>>2],G[c+32>>1]);n=N(H[a+192>>2],G[c+96>>1]);i=l-n|0;p=N(i,11363);k=N(H[a+96>>2],G[c+48>>1]);j=N(H[a+32>>2],G[c+16>>1]);g=N(k+j|0,11086);q=p+N(n,20995)|0;o=N(H[a+128>>2],G[c+64>>1]);t=N(o,10703);h=N(G[c>>1],H[a>>2])<<13|1024;u=t+h|0;r=q+u|0;f=N(H[a+224>>2],G[c+112>>1]);y=N(f+j|0,8956);m=N(H[a+160>>2],G[c+80>>1]);z=m+j|0;v=N(z,10217);w=y+(v+(g+N(j,-18730)|0)|0)|0;H[b+480>>2]=r-w>>11;H[b>>2]=r+w>>11;i=N(i,2260);r=i+N(l,7373)|0;o=N(o,4433);w=o+h|0;A=r+w|0;B=f+k|0;C=N(B,-5461);D=N(k+m|0,1136);g=C+(D+(g+N(k,589)|0)|0)|0;H[b+448>>2]=A-g>>11;H[b+32>>2]=g+A>>11;l=p+N(l,-4926)|0;p=h-o|0;g=l+p|0;o=N(f+m|0,-11086);v=o+(v+(N(m,-9222)+D|0)|0)|0;H[b+416>>2]=g-v>>11;H[b+64>>2]=g+v>>11;n=i+N(n,-4176)|0;h=h-t|0;g=n+h|0;i=o+((N(f,8728)+C|0)+y|0)|0;H[b+384>>2]=g-i>>11;H[b+96>>2]=g+i>>11;h=h-n|0;g=N(j-f|0,7350);n=N(B,-10217);i=g+(n+N(f,25733)|0)|0;f=N(f-m|0,3363);i=i+f|0;H[b+352>>2]=h-i>>11;H[b+128>>2]=h+i>>11;h=p-l|0;l=N(z,5461);i=N(m,-6278);m=N(m-k|0,11529);f=f+(l+(i+m|0)|0)|0;H[b+320>>2]=h-f>>11;H[b+160>>2]=f+h>>11;f=w-r|0;h=N(k,16154);k=N(j-k|0,3363);m=n+(m+(h+k|0)|0)|0;H[b+288>>2]=f-m>>11;H[b+192>>2]=f+m>>11;f=u-q|0;k=g+(l+(k+N(j,-15038)|0)|0)|0;H[b+256>>2]=f-k>>11;H[b+224>>2]=f+k>>11;b=b+4|0;a=a+4|0;c=c+2|0;E=E+1|0;if((E|0)!=8){continue}break}a=s+128|0;k=0;b=x;while(1){j=H[b+4>>2];f=H[b+28>>2];m=N(j+f|0,-7373);h=H[b+20>>2];g=h+j|0;l=H[b+12>>2];s=l+f|0;n=N(g+s|0,9633);i=H[b+24>>2];q=H[b+8>>2];p=N(i+q|0,4433);c=H[(k<<2)+d>>2]+e|0;o=m+N(j,12299)|0;j=n+N(g,-3196)|0;g=o+j|0;o=H[b>>2]+16|0;t=H[b+16>>2];u=o+t<<13;q=p+N(q,6270)|0;r=u+q|0;F[c|0]=I[a+(g+r>>>18&1023)|0];F[c+7|0]=I[a+(r-g>>>18&1023)|0];n=n+N(s,-16069)|0;g=N(l,25172);l=N(h+l|0,-20995);g=n+(g+l|0)|0;s=o-t<<13;p=p+N(i,-15137)|0;i=s+p|0;F[c+1|0]=I[a+(g+i>>>18&1023)|0];F[c+6|0]=I[a+(i-g>>>18&1023)|0];j=j+(l+N(h,16819)|0)|0;h=s-p|0;F[c+2|0]=I[a+(j+h>>>18&1023)|0];F[c+5|0]=I[a+(h-j>>>18&1023)|0];j=n+(m+N(f,2446)|0)|0;f=u-q|0;F[c+3|0]=I[a+(j+f>>>18&1023)|0];F[c+4|0]=I[a+(f-j>>>18&1023)|0];b=b+32|0;k=k+1|0;if((k|0)!=16){continue}break}xb=x+512|0}function Bn(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;i=H[a+44>>2];m=i-262|0;d=H[a+116>>2];b=i;while(1){h=H[a+108>>2];j=H[a+60>>2]-(h+d|0)|0;if(b+m>>>0<=h>>>0){c=H[a+56>>2];Ob(c,c+i|0,i-j|0);H[a+112>>2]=H[a+112>>2]-i;h=H[a+108>>2]-i|0;H[a+108>>2]=h;H[a+92>>2]=H[a+92>>2]-i;c=H[a+76>>2];g=c-1|0;e=H[a+68>>2]+(c<<1)|0;b=H[a+44>>2];d=0;k=c&3;if(k){while(1){e=e-2|0;l=J[e>>1];f=l-b|0;G[e>>1]=f>>>0>l>>>0?0:f;c=c-1|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}if(g>>>0>=3){while(1){f=e-2|0;g=J[f>>1];d=g-b|0;G[f>>1]=d>>>0>g>>>0?0:d;f=e-4|0;g=J[f>>1];d=g-b|0;G[f>>1]=d>>>0>g>>>0?0:d;f=e-6|0;g=J[f>>1];d=g-b|0;G[f>>1]=d>>>0>g>>>0?0:d;e=e-8|0;f=J[e>>1];d=f-b|0;G[e>>1]=d>>>0>f>>>0?0:d;c=c-4|0;if(c){continue}break}}e=H[a+64>>2]+(b<<1)|0;d=0;c=b;g=b&3;if(g){while(1){e=e-2|0;k=J[e>>1];f=k-b|0;G[e>>1]=f>>>0>k>>>0?0:f;c=c-1|0;d=d+1|0;if((g|0)!=(d|0)){continue}break}}if(b-1>>>0>=3){while(1){f=e-2|0;g=J[f>>1];d=g-b|0;G[f>>1]=d>>>0>g>>>0?0:d;f=e-4|0;g=J[f>>1];d=g-b|0;G[f>>1]=d>>>0>g>>>0?0:d;f=e-6|0;g=J[f>>1];d=g-b|0;G[f>>1]=d>>>0>g>>>0?0:d;e=e-8|0;f=J[e>>1];d=f-b|0;G[e>>1]=d>>>0>f>>>0?0:d;c=c-4|0;if(c){continue}break}}j=i+j|0}a:{b=H[a>>2];d=H[b+4>>2];if(!d){break a}c=H[a+116>>2];e=d>>>0>>0?d:j;if(e){j=H[a+56>>2];H[b+4>>2]=d-e;c=Ob(c+(j+h|0)|0,H[b>>2],e);b:{c:{switch(H[H[b+28>>2]+24>>2]-1|0){case 0:n=b,o=Yg(H[b+48>>2],c,e),H[n+48>>2]=o;break b;case 1:break c;default:break b}}n=b,o=yd(H[b+48>>2],c,e),H[n+48>>2]=o}H[b>>2]=e+H[b>>2];H[b+8>>2]=e+H[b+8>>2];c=H[a+116>>2]}d=c+e|0;H[a+116>>2]=d;e=H[a+5812>>2];d:{if(e+d>>>0<3){break d}b=H[a+108>>2]-e|0;j=H[a+56>>2];c=b+j|0;h=I[c|0];H[a+72>>2]=h;f=H[a+84>>2];g=h;h=H[a+88>>2];c=f&(I[c+1|0]^g<>2]=c;while(1){if(!e){break d}c=f&(I[(b+j|0)+2|0]^c<>2]=c;g=H[a+68>>2]+(c<<1)|0;G[H[a+64>>2]+((H[a+52>>2]&b)<<1)>>1]=J[g>>1];G[g>>1]=b;e=e-1|0;H[a+5812>>2]=e;b=b+1|0;if(d+e>>>0>2){continue}break}}if(!H[H[a>>2]+4>>2]|d>>>0>261){break a}b=H[a+44>>2];continue}break}i=H[a+60>>2];c=H[a+5824>>2];e:{if(i>>>0<=c>>>0){break e}b=H[a+116>>2]+H[a+108>>2]|0;f:{if(b>>>0>c>>>0){c=i-b|0;c=c>>>0<258?c:258;Nb(b+H[a+56>>2]|0,0,c);b=b+c|0;break f}b=b+258|0;if(b>>>0<=c>>>0){break e}h=c+H[a+56>>2]|0;b=b-c|0;c=i-c|0;c=b>>>0>>0?b:c;Nb(h,0,c);b=c+H[a+5824>>2]|0}H[a+5824>>2]=b}}function DK(a){a=a|0;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;m=xb-16|0;xb=m;h=H[a+12>>2];k=H[a+200>>2];b=H[a+196>>2];l=G[a+32>>1];a:{if(l){if(K[h+8>>2]>1]+(G[h+20>>1]+l|0)>>>0){c=ee(h,0,l);if(c){break a}}c=20;if((l|0)>4094){break a}}c=20;e=l<<1;if((e+b|0)+2>>>0>k>>>0){break a}d=H[h+68>>2];i=I[b|0];j=I[b+1|0]|i<<8;if((l|0)>0){G[d>>1]=j}if(i<<24>>16<0){break a}i=d+e|0;while(1){e=d+2|0;if(e>>>0>>0){d=I[b+2|0]|I[b+3|0]<<8;f=d<<8|d>>>8;G[e>>1]=f;g=j<<16;d=e;e=f<<16>>16;j=e;b=b+2|0;if((e|0)>g>>16){continue}break a}break}e=H[h+4>>2];f=G[h+58>>1];if((l|0)<=0){i=0}else{d=G[d>>1];if((d|0)<-1){break a}i=d+1|0}d=i+4|0;if(e>>>0>1]|0)>>>0){c=ee(h,d,0);if(c){break a}}d=H[a+8>>2];H[d+136>>2]=0;H[d+140>>2]=0;e=b+4|0;if(e>>>0>k>>>0){c=20;break a}b=I[b+2|0]|I[b+3|0]<<8;b=b<<8|b>>>8;b:{c:{d:{e:{if(I[a+16|0]&2){d=b&65535;break e}d=b&65535;if((d|0)>(k-e|0)){break d}c=H[a+156>>2];H[m+12>>2]=H[c+392>>2];c=$t(H[c+8>>2],m+12|0,c+396|0,d);f=H[a+156>>2];H[f+392>>2]=J[m+12>>1];if(c){break a}c=H[a+8>>2];H[c+140>>2]=d;g=c;c=H[f+396>>2];H[g+136>>2]=c;if(!(b&65535)){break e}Ob(c,e,d)}b=d+e|0;if((i|0)>0){e=H[h- -64>>2];c=i+e|0;while(1){f=b+1|0;if(f>>>0>k>>>0){c=20;break a}g=I[b|0];F[e|0]=g;d=e+1|0;f:{if(!(g&8)){b=f;break f}b=b+2|0;if(k>>>0>>0){c=20;break a}f=I[f|0];if(c>>>0>>0){c=20;break a}if(!f){break f}Nb(d,g,f);d=((f-1&255)+e|0)+2|0}e=d;if(c>>>0>d>>>0){continue}break}}c=H[h+64>>2];if(!(!i|!(I[c|0]&64))){H[h+36>>2]=H[h+36>>2]|64}if(b>>>0>k>>>0){c=20;break a}if((i|0)<=0){break b}f=H[h+60>>2];o=f+(i<<3)|0;d=f;e=c;while(1){n=I[e|0];g:{if(n&2){g=b+1|0;if(g>>>0>k>>>0){c=20;break a}b=I[b|0];j=n&16?b:0-b|0;b=g;break g}j=0;if(n&16){break g}g=b+2|0;if(g>>>0>k>>>0){c=20;break a}b=I[b|0]|I[b+1|0]<<8;j=(b<<8|b>>>8)<<16>>16;b=g}p=j+p|0;H[d>>2]=p;e=e+1|0;d=d+8|0;if(o>>>0>d>>>0){continue}break}break c}c=22;break a}j=0;if((i|0)<=0){break b}while(1){g=I[c|0];h:{if(g&4){e=b+1|0;if(e>>>0>k>>>0){c=20;break a}b=I[b|0];d=g&32?b:0-b|0;b=e;break h}d=0;if(g&32){break h}e=b+2|0;if(e>>>0>k>>>0){c=20;break a}b=I[b|0]|I[b+1|0]<<8;d=(b<<8|b>>>8)<<16>>16;b=e}j=d+j|0;H[f+4>>2]=j;F[c|0]=g&1;c=c+1|0;f=f+8|0;if(o>>>0>f>>>0){continue}break}}G[h+56>>1]=l;G[h+58>>1]=i;H[a+196>>2]=b;c=0}xb=m+16|0;return c|0}function _t(a,b){var c=0,d=0,e=0,f=0;f=H[H[a>>2]+96>>2];e=H[H[a+8>>2]+140>>2];if((e|0)>0){Ob(H[a+132>>2],H[a+136>>2],J[a+128>>1]<<3)}Ob(H[a+156>>2]+288|0,H[a+4>>2]+180|0,68);a:{if(b){c=H[a+156>>2];H[c+224>>2]=65536;H[c+228>>2]=65536;Ob(H[a+140>>2],H[a+136>>2],J[a+128>>1]<<3);break a}c=H[a+156>>2];d=H[H[a+4>>2]+44>>2];H[c+224>>2]=H[d+4>>2];H[c+228>>2]=H[d+8>>2]}c=H[a+136>>2]+(J[a+128>>1]<<3)|0;d=c-32|0;H[d>>2]=H[d>>2]+32&-64;d=c-24|0;H[d>>2]=H[d>>2]+32&-64;d=c-12|0;H[d>>2]=H[d>>2]+32&-64;c=c-4|0;H[c>>2]=H[c>>2]+32&-64;b:{if((e|0)>0){d=H[H[a+12>>2]- -64>>2];c=H[a+156>>2];F[c+564|0]=b;H[c+468>>2]=e;H[c+464>>2]=H[c+396>>2];b=H[a+124>>2];H[c+144>>2]=H[a+120>>2];H[c+148>>2]=b;b=H[a+132>>2];H[c+152>>2]=H[a+128>>2];H[c+156>>2]=b;b=H[a+140>>2];H[c+160>>2]=H[a+136>>2];H[c+164>>2]=b;b=H[a+148>>2];H[c+168>>2]=H[a+144>>2];H[c+172>>2]=b;H[c+176>>2]=H[a+152>>2];b=H[a+156>>2];H[b+364>>2]=0;H[b+356>>2]=3;c=H[b+148>>2];H[b+36>>2]=H[b+144>>2];H[b+40>>2]=c;H[b+368>>2]=H[b+468>>2];c=H[b+156>>2];H[b+44>>2]=H[b+152>>2];H[b+48>>2]=c;c=H[b+164>>2];H[b+52>>2]=H[b+160>>2];H[b+56>>2]=c;c=H[b+172>>2];H[b+60>>2]=H[b+168>>2];H[b+64>>2]=c;H[b+68>>2]=H[b+176>>2];H[b+360>>2]=H[b+464>>2];c=H[b+148>>2];H[b+72>>2]=H[b+144>>2];H[b+76>>2]=c;c=H[b+156>>2];H[b+80>>2]=H[b+152>>2];H[b+84>>2]=c;c=H[b+164>>2];H[b+88>>2]=H[b+160>>2];H[b+92>>2]=c;c=H[b+172>>2];H[b+96>>2]=H[b+168>>2];H[b+100>>2]=c;H[b+104>>2]=H[b+176>>2];H[b+140>>2]=H[b+176>>2];c=H[b+172>>2];H[b+132>>2]=H[b+168>>2];H[b+136>>2]=c;c=H[b+164>>2];H[b+124>>2]=H[b+160>>2];H[b+128>>2]=c;c=H[b+156>>2];H[b+116>>2]=H[b+152>>2];H[b+120>>2]=c;c=H[b+148>>2];H[b+108>>2]=H[b+144>>2];H[b+112>>2]=c;G[b+352>>1]=1;H[b+348>>2]=65537;G[b+298>>1]=16384;G[b+300>>1]=0;G[b+302>>1]=16384;G[b+304>>1]=0;H[b+316>>2]=1;G[b+294>>1]=16384;G[b+296>>1]=0;H[b+308>>2]=1;H[b+432>>2]=0;H[b+16>>2]=0;b=zb[H[H[b>>2]+708>>2]](b)|0;c=H[a+156>>2];if(I[c+565|0]?b:0){break b}F[d|0]=I[d|0]|I[c+344|0]<<5|4}if(H[f+64>>2]==40){b=0;if(I[H[a+156>>2]+615|0]){break b}}b=H[a+136>>2]+(J[a+128>>1]<<3)|0;c=b-32|0;e=H[c+4>>2];H[a+68>>2]=H[c>>2];H[a+72>>2]=e;c=b-24|0;e=H[c+4>>2];H[a+76>>2]=H[c>>2];H[a+80>>2]=e;c=b-16|0;e=H[c+4>>2];H[a+180>>2]=H[c>>2];H[a+184>>2]=e;b=b-8|0;c=H[b+4>>2];H[a+188>>2]=H[b>>2];H[a+192>>2]=c;b=0}return b}function Baa(a,b,c,d,e,f,g,h,i){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;var j=0,k=O(0),l=O(0),m=0,n=O(0),o=0,p=O(0),q=O(0),r=O(0),s=O(0),t=O(0),u=O(0),v=O(0),w=0,x=O(0),y=O(0),z=O(0),A=O(0),B=O(0),C=O(0);c=xb-32|0;xb=c;if(!(!f|!e)){d=N(g,3);w=h<<2;while(1){f=f-1|0;h=e;while(1){g=H[a+72>>2];j=F[i+1|0];m=F[i+2|0];k=O(O(O(I[i|0])*O(100))/O(255));a:{if(k>2])/O(903.2919921875));L[c+24>>2]=k;k=O(O(O(k/L[g+20>>2])*O(7.7870001792907715))+O(.13793103396892548));break a}k=O(O(k+O(16))/O(116));L[c+24>>2]=k*O(k*O(k*L[g+20>>2]))}p=L[g+16>>2];l=O(O(O(j|0)/O(500))+k);b:{if(l>2]=l;l=L[g+24>>2];k=O(k+O(O(m|0)/O(-200)));c:{if(k>2]=O(O(k+O(-.1379300057888031))*l)/O(7.7870001792907715);break c}L[c+20>>2]=k*O(k*O(k*l))}g=H[a+72>>2];p=L[g+72>>2];k=L[g+96>>2];x=L[g+60>>2];y=L[g+52>>2];z=L[g+56>>2];u=L[g+68>>2];l=L[g+92>>2];A=L[g+48>>2];B=L[g+40>>2];C=L[g+44>>2];m=H[g>>2];r=L[c+20>>2];s=L[c+28>>2];t=L[c+24>>2];q=O(O(L[g+36>>2]*r)+O(O(L[g+28>>2]*s)+O(L[g+32>>2]*t)));n=L[g+88>>2];q=n>2];n=O(O((q>2]);d:{if(O(P(n))(m|0)?m:j)<<2)+g|0)+112>>2];o=(n>O(0)?.5:-.5)+ +n;e:{if(o<4294967296&o>=0){j=~~o>>>0;break e}j=0}H[c+16>>2]=j;m=H[g>>2];n=O(O(A*r)+O(O(B*s)+O(C*t)));n=l>2]);f:{if(O(P(l))(m|0)?m:j)<<2)+g|0)+6116>>2];o=(l>O(0)?.5:-.5)+ +l;g:{if(o<4294967296&o>=0){j=~~o>>>0;break g}j=0}H[c+12>>2]=j;m=H[g>>2];l=O(O(x*r)+O(O(y*s)+O(z*t)));l=k>2]);h:{if(O(P(k))(m|0)?m:j)<<2)+g|0)+12120>>2];o=(k>O(0)?.5:-.5)+ +k;i:{if(o<4294967296&o>=0){j=~~o>>>0;break i}j=0}H[c+8>>2]=j;j=H[c+16>>2];m=H[g+76>>2];H[c+16>>2]=j>>>0>>0?j:m;j=H[c+12>>2];m=H[g+80>>2];H[c+12>>2]=j>>>0>>0?j:m;j=H[c+8>>2];g=H[g+84>>2];H[c+8>>2]=g>>>0>j>>>0?j:g;H[b>>2]=H[c+16>>2]|H[c+12>>2]<<8|H[c+8>>2]<<16|-16777216;i=i+3|0;b=b+4|0;h=h-1|0;if(h){continue}break}i=d+i|0;b=b+w|0;if(f){continue}break}}xb=c+32|0}function _ba(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,u=0,v=0,w=0,x=0,y=0;F[a+192|0]=0;F[a+193|0]=0;F[a+194|0]=0;F[a+195|0]=0;F[a+196|0]=0;F[a+197|0]=0;F[a+198|0]=0;F[a+199|0]=0;F[a+248|0]=0;F[a+249|0]=0;F[a+250|0]=0;F[a+251|0]=0;F[a+252|0]=0;F[a+253|0]=0;F[a+254|0]=0;F[a+255|0]=0;F[a+240|0]=0;F[a+241|0]=0;F[a+242|0]=0;F[a+243|0]=0;F[a+244|0]=0;F[a+245|0]=0;F[a+246|0]=0;F[a+247|0]=0;F[a+232|0]=0;F[a+233|0]=0;F[a+234|0]=0;F[a+235|0]=0;F[a+236|0]=0;F[a+237|0]=0;F[a+238|0]=0;F[a+239|0]=0;F[a+224|0]=0;F[a+225|0]=0;F[a+226|0]=0;F[a+227|0]=0;F[a+228|0]=0;F[a+229|0]=0;F[a+230|0]=0;F[a+231|0]=0;F[a+216|0]=0;F[a+217|0]=0;F[a+218|0]=0;F[a+219|0]=0;F[a+220|0]=0;F[a+221|0]=0;F[a+222|0]=0;F[a+223|0]=0;F[a+208|0]=0;F[a+209|0]=0;F[a+210|0]=0;F[a+211|0]=0;F[a+212|0]=0;F[a+213|0]=0;F[a+214|0]=0;F[a+215|0]=0;F[a+200|0]=0;F[a+201|0]=0;F[a+202|0]=0;F[a+203|0]=0;F[a+204|0]=0;F[a+205|0]=0;F[a+206|0]=0;F[a+207|0]=0;f=a;while(1){d=H[(k<<2)+b>>2]+c|0;i=I[d+11|0];l=I[d|0];g=i+l|0;m=I[d+5|0];n=I[d+6|0];j=m+n|0;o=g-j|0;p=I[d+10|0];q=I[d+1|0];e=p+q|0;r=I[d+7|0];s=I[d+4|0];h=r+s|0;t=I[d+9|0];u=I[d+2|0];v=t+u|0;w=I[d+8|0];x=I[d+3|0];y=w+x|0;d=v-y|0;H[f+24>>2]=o-((e-h|0)+d|0)<<2;g=g+j|0;j=v+y|0;H[f+16>>2]=N(g-j|0,10033)+1024>>11;H[f>>2]=(g+(h+(e+j|0)|0)<<2)-6144;H[f+8>>2]=((e-(d+h|0)|0)+N(d+o|0,11190)|0)+1024>>11;h=s-r|0;j=q-p|0;g=N(h+j|0,4433);d=l-i|0;e=x-w|0;l=g+N(h,-15137)|0;h=m-n|0;i=u-t|0;H[f+12>>2]=((N(d-e|0,10703)+l|0)+N(h+i|0,-4433)|0)+1024>>11;m=N(d+e|0,7053);n=m+N(e,5946)|0;e=N(e+i|0,-1512);g=g+N(j,6270)|0;H[f+28>>2]=(((n+e|0)-g|0)+N(h,-9191)|0)+1024>>11;j=e;e=N(d+i|0,9191)+1024|0;H[f+20>>2]=((j+(e+N(i,-19165)|0)|0)-l|0)+N(h,7053)>>11;H[f+4>>2]=(g+(m+(e+N(d,-4758)|0)|0)|0)+N(h,1512)>>11;f=f+32|0;k=k+1|0;if((k|0)!=6){continue}break}b=7;while(1){f=H[a+160>>2];d=H[a>>2];c=f+d|0;e=H[a+96>>2];h=H[a+64>>2];i=e+h|0;H[a+64>>2]=N(c-i|0,17837)+32768>>16;c=c+i|0;i=H[a+128>>2];k=H[a+32>>2];g=i+k|0;H[a+128>>2]=N(c-(g<<1)|0,10298)+32768>>16;H[a>>2]=N(c+g|0,14564)+32768>>16;c=h-e|0;f=d-f|0;d=N(c+f|0,5331)+32768|0;e=k-i|0;H[a+160>>2]=d+N(c-e|0,14564)>>16;H[a+96>>2]=N(f-(c+e|0)|0,14564)+32768>>16;H[a+32>>2]=d+N(f+e|0,14564)>>16;c=b;b=c-1|0;a=a+4|0;if(c){continue}break}}function pj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{d=b;g=H[b>>2];if(g){c=H[b+4>>2];if(!c){break b}while(1){d=c;c=H[c>>2];if(c){continue}break}}g=H[d+4>>2];if(g){break b}g=0;e=1;break a}H[g+8>>2]=H[d+8>>2];e=0}f=H[d+8>>2];c=H[f>>2];c:{if((d|0)==(c|0)){H[f>>2]=g;if((a|0)==(d|0)){c=0;a=g;break c}c=H[f+4>>2];break c}H[f+4>>2]=g}h=!I[d+12|0];if((b|0)!=(d|0)){f=H[b+8>>2];H[d+8>>2]=f;H[f+((H[H[b+8>>2]>>2]!=(b|0))<<2)>>2]=d;f=H[b>>2];H[d>>2]=f;H[f+8>>2]=d;f=H[b+4>>2];H[d+4>>2]=f;if(f){H[f+8>>2]=d}F[d+12|0]=I[b+12|0];a=(a|0)==(b|0)?d:a}if(!(h|!a)){if(e){while(1){b=I[c+12|0];d:{e=H[c+8>>2];if(H[e>>2]!=(c|0)){if(!b){F[c+12|0]=1;F[e+12|0]=0;d=H[e+4>>2];b=H[d>>2];H[e+4>>2]=b;if(b){H[b+8>>2]=e}H[d+8>>2]=H[e+8>>2];b=H[e+8>>2];H[(((e|0)!=H[b>>2])<<2)+b>>2]=d;H[d>>2]=e;H[e+8>>2]=d;b=H[c>>2];a=(b|0)==(a|0)?c:a;c=H[b+4>>2]}e:{f:{d=H[c>>2];g:{if(!(I[d+12|0]?0:d)){b=H[c+4>>2];if(I[b+12|0]?0:b){break g}F[c+12|0]=0;c=H[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(I[c+12|0]){break d}}F[c+12|0]=1;return}b=H[c+4>>2];if(!b){break f}}if(I[b+12|0]){break f}d=c;break e}F[d+12|0]=1;F[c+12|0]=0;a=H[d+4>>2];H[c>>2]=a;if(a){H[a+8>>2]=c}H[d+8>>2]=H[c+8>>2];a=H[c+8>>2];H[((H[a>>2]!=(c|0))<<2)+a>>2]=d;H[d+4>>2]=c;H[c+8>>2]=d;b=c}c=H[d+8>>2];F[d+12|0]=I[c+12|0];F[c+12|0]=1;F[b+12|0]=1;b=H[c+4>>2];a=H[b>>2];H[c+4>>2]=a;if(a){H[a+8>>2]=c}H[b+8>>2]=H[c+8>>2];a=H[c+8>>2];H[(((c|0)!=H[a>>2])<<2)+a>>2]=b;H[b>>2]=c;H[c+8>>2]=b;return}if(!b){F[c+12|0]=1;F[e+12|0]=0;b=H[c+4>>2];H[e>>2]=b;if(b){H[b+8>>2]=e}H[c+8>>2]=H[e+8>>2];b=H[e+8>>2];H[(((e|0)!=H[b>>2])<<2)+b>>2]=c;H[c+4>>2]=e;H[e+8>>2]=c;a=(a|0)==(e|0)?c:a;c=H[e>>2]}b=H[c>>2];i:{if(!(!b|I[b+12|0])){d=c;break i}d=H[c+4>>2];if(!(I[d+12|0]?0:d)){F[c+12|0]=0;c=H[c+8>>2];if((a|0)!=(c|0)?I[c+12|0]:0){break d}F[c+12|0]=1;return}if(b){if(!I[b+12|0]){d=c;break i}d=H[c+4>>2]}F[d+12|0]=1;F[c+12|0]=0;a=H[d>>2];H[c+4>>2]=a;if(a){H[a+8>>2]=c}H[d+8>>2]=H[c+8>>2];a=H[c+8>>2];H[((H[a>>2]!=(c|0))<<2)+a>>2]=d;H[d>>2]=c;H[c+8>>2]=d;b=c}c=H[d+8>>2];F[d+12|0]=I[c+12|0];F[c+12|0]=1;F[b+12|0]=1;b=H[c>>2];a=H[b+4>>2];H[c>>2]=a;if(a){H[a+8>>2]=c}H[b+8>>2]=H[c+8>>2];a=H[c+8>>2];H[(((c|0)!=H[a>>2])<<2)+a>>2]=b;H[b+4>>2]=c;H[c+8>>2]=b;return}b=H[c+8>>2];c=H[((H[b>>2]==(c|0))<<2)+b>>2];continue}}F[g+12|0]=1}}function rla(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;H[b>>2]=0;H[b+4>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b+24>>2]=0;H[b+28>>2]=-1;i=I[163632];k=i|256;f=!I[a+16|0];while(1){a:{c=H[a+12>>2];d=c+1|0;g=H[a+4>>2];j=d>>>0<=g>>>0&f;if(!j){break a}b:{c:{if(c>>>0>>0){h=H[a>>2];f=I[h+c|0];if((f|0)==12){c=k;if(d>>>0>=g>>>0){break c}f=I[d+h|0]|256;c=d}if(c>>>0>=g>>>0){c=f;break c}H[a+12>>2]=c+1;break b}F[a+16|0]=1;f=65535;c=i;if((c|0)==12){break b}}F[a+16|0]=1;H[a+12>>2]=g;f=c}d:{e:{f:{g:{h:{i:{j:{switch(f-18|0){default:k:{switch(f-261|0){case 0:case 2:break g;case 1:break i;default:break k}}if((f|0)!=294){break i}g=a+24|0;c=H[g>>2];l:{if(c){c=c-1|0;if(c>>>0>=K[a+32>>2]){c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z();break l}e=M[H[a+36>>2]+(c<<3)>>3];break l}F[a+20|0]=1;c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z()}m:{if(P(e)<2147483648){c=~~e;break m}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}H[b+28>>2]=c;break f;case 0:g=a+24|0;c=H[g>>2];n:{if(c){c=c-1|0;H[a+24>>2]=c;if(K[a+32>>2]<=c>>>0){d=H[40909];h=H[40908];H[196248]=h;H[196249]=d;x(0,h|0);x(1,d|0);e=+z();break n}e=M[H[a+36>>2]+(c<<3)>>3];break n}F[a+20|0]=1;c=0;d=H[40909];h=H[40908];H[196248]=h;H[196249]=d;x(0,h|0);x(1,d|0);e=+z()}o:{if(P(e)<2147483648){d=~~e;break o}d=-2147483648}if((d|0)<0){F[a+20|0]=1;d=0}H[b+16>>2]=d;p:{if(c){c=c-1|0;if(c>>>0>=K[a+32>>2]){c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z();break p}e=M[H[a+36>>2]+(c<<3)>>3];break p}F[a+20|0]=1;c=H[40909];d=H[40908];H[196248]=d;H[196249]=c;x(0,d|0);x(1,c|0);e=+z()}q:{if(P(e)<2147483648){c=~~e;break q}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}H[b+20>>2]=c;break f;case 11:kl(a+20|0,a);break h;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:break i;case 12:break j}}e=jl(a);c=H[a+24>>2];if(c>>>0>2]){H[a+24>>2]=c+1;M[H[a+36>>2]+(c<<3)>>3]=e;break h}F[a+20|0]=1;c=H[40909];H[196248]=H[40908];H[196249]=c;M[98124]=e;break h}Qi(f,a)}if(!H[a+24>>2]){break e}break d}g=a+24|0}H[g>>2]=0}if(I[a+20|0]|(I[a+40|0]|I[a+16|0])|H[a+28>>2]<0){break d}Ln(b,f,a)}if(I[a+20|0]|(I[a+40|0]|I[a+16|0])){break a}f=1;if(H[a+28>>2]>=0){continue}}break}return!j|0}function IZ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a=xb-96|0;xb=a;if(H[b+16>>2]==1){f=H[b+8>>2];g=H[b+4>>2];e=a+80|0;H[e+12>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[e>>2]=436884;H[197455]=0;ia(1901,a+16|0);b=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((b|0)!=1){H[197455]=0;b=da(1699,a+16|0,413548)|0;d=H[197455];H[197455]=0;if((d|0)==1){break k}H[a+40>>2]=H[b+8>>2];d=H[b+4>>2];H[a+32>>2]=H[b>>2];H[a+36>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;ba(1902,a|0,f|0);b=H[197455];H[197455]=0;if((b|0)==1){break j}H[197455]=0;b=I[a+11|0];d=b<<24>>24<0;b=ca(1759,a+32|0,(d?H[a>>2]:a)|0,(d?H[a+4>>2]:b)|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break i}H[a+56>>2]=H[b+8>>2];d=H[b+4>>2];H[a+48>>2]=H[b>>2];H[a+52>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,a+48|0,413708)|0;d=H[197455];H[197455]=0;if((d|0)==1){break h}H[a+72>>2]=H[b+8>>2];d=H[b+4>>2];H[a+64>>2]=H[b>>2];H[a+68>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[a+59|0]<0){Kb(H[a+48>>2])}if(F[a+11|0]<0){Kb(H[a>>2])}if(F[a+43|0]<0){Kb(H[a+32>>2])}if(F[a+27|0]<0){Kb(H[a+16>>2])}d=0;H[197455]=0;b=da(919,e|0,a- -64|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}if(!b){break a}H[197455]=0;b=ca(1903,e|0,g|0,f|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break c}if(b){break d}d=0;H[197455]=0;ia(923,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}break a}b=$()|0;_()|0;break b}b=$()|0;_()|0;break e}b=$()|0;_()|0;break f}b=$()|0;_()|0;break g}b=$()|0;_()|0;if(F[a+59|0]>=0){break g}Kb(H[a+48>>2])}if(F[a+11|0]>=0){break f}Kb(H[a>>2])}if(F[a+43|0]>=0){break e}Kb(H[a+32>>2])}if(F[a+27|0]>=0){break b}Kb(H[a+16>>2]);break b}H[197455]=0;ia(923,e|0);b=H[197455];H[197455]=0;d=1;if((b|0)==1){break c}if((a- -64|0)==(c|0)){break a}f=I[a+75|0];b=f<<24>>24;l:{if(F[c+11|0]>=0){if((b|0)<0){break l}b=H[a+68>>2];H[c>>2]=H[a+64>>2];H[c+4>>2]=b;H[c+8>>2]=H[a+72>>2];break a}H[197455]=0;b=(b|0)<0;ca(1897,c|0,(b?H[a+64>>2]:a- -64|0)|0,(b?H[a+68>>2]:f)|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break c}break a}H[197455]=0;ca(1898,c|0,H[a+64>>2],H[a+68>>2])|0;b=H[197455];H[197455]=0;if((b|0)!=1){break a}}b=$()|0;_()|0;if(F[a+75|0]>=0){break b}Kb(H[a+64>>2])}gf(e);ea(b|0);X()}if(F[a+75|0]<0){Kb(H[a+64>>2])}gf(e)}xb=a+96|0;return d|0}function Aca(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;d=H[a+420>>2];c=H[a+24>>2];H[d+112>>2]=H[c>>2];H[d+116>>2]=H[c+4>>2];if(!(H[d+36>>2]|!H[a+236>>2])){gn(d,H[d+40>>2])}e=H[a+360>>2];k=H[a+364>>2];a:{if((e|0)>(k|0)){break a}p=H[b>>2];q=H[a+380>>2];l=H[a+372>>2];b=0;while(1){m=e;e=G[(H[(e<<2)+q>>2]<<1)+p>>1];c=b+1|0;b:{if(!e){break b}j=0-e>>l;n=e>>l;o=(e|0)<0;i=o?j:n;c=b+1|0;if(!i){break b}if(H[d+128>>2]){Gi(d)}c:{if((b|0)<16){break c}d:{if(!H[d+108>>2]){e=0;break d}c=H[((H[d+124>>2]<<2)+d|0)+92>>2];e=c;f=H[c+960>>2];c=(b-((b|0)<31?b:31)|0)+15|0;H[e+960>>2]=(f+(c>>>4|0)|0)+1;b=(b-(c&-16)|0)-16|0;break c}while(1){c=H[d+124>>2];e:{if(e){c=H[((c<<2)+d|0)+92>>2];H[c+960>>2]=H[c+960>>2]+1;break e}c=H[((c<<2)+d|0)+60>>2];e=H[c+960>>2];f=H[d+16>>2];c=F[c+1264|0];if(!c){g=H[d+120>>2];h=H[g>>2];H[h+20>>2]=41;zb[H[h>>2]](g);if(H[d+108>>2]){break e}}e=e&(-1<>2]|e<<24-c;if((c|0)>=8){while(1){f=H[d+112>>2];H[d+112>>2]=f+1;F[f|0]=e>>>16;f=H[d+116>>2]-1|0;H[d+116>>2]=f;if(!f){g=H[d+120>>2];f=H[g+24>>2];if(!(zb[H[f+12>>2]](g)|0)){g=H[d+120>>2];h=H[g>>2];H[h+20>>2]=25;zb[H[h>>2]](g)}H[d+112>>2]=H[f>>2];H[d+116>>2]=H[f+4>>2]}f=c;f:{if((e&16711680)!=16711680){break f}c=H[d+112>>2];H[d+112>>2]=c+1;F[c|0]=0;c=H[d+116>>2]-1|0;H[d+116>>2]=c;if(c){break f}g=H[d+120>>2];c=H[g+24>>2];if(!(zb[H[c+12>>2]](g)|0)){g=H[d+120>>2];h=H[g>>2];H[h+20>>2]=25;zb[H[h>>2]](g)}H[d+112>>2]=H[c>>2];H[d+116>>2]=H[c+4>>2]}c=f-8|0;e=e<<8;if((f|0)>15){continue}break}}H[d+16>>2]=c;H[d+12>>2]=e}c=b-16|0;if((b|0)>=32){e=H[d+108>>2];b=c;continue}break}b=c}f=j^-1;e=1;g:{if(i>>>0<2){break g}while(1){c=e;e=c+1|0;j=i>>>0>3;i=i>>1;if(j){continue}break}if(c>>>0<10){break g}c=H[a>>2];H[c+20>>2]=6;zb[H[c>>2]](a)}f=o?f:n;b=(b<<4)+e|0;c=H[d+124>>2];h:{if(H[d+108>>2]){b=H[((c<<2)+d|0)+92>>2]+(b<<2)|0;H[b>>2]=H[b>>2]+1;break h}c=H[((c<<2)+d|0)+60>>2];Fi(d,H[c+(b<<2)>>2],F[(b+c|0)+1024|0])}Fi(d,f,e);c=0}b=c;e=m+1|0;if((m|0)!=(k|0)){continue}break}if((b|0)<=0){break a}b=H[d+128>>2]+1|0;H[d+128>>2]=b;if((b|0)!=32767){break a}Gi(d)}b=H[a+24>>2];H[b>>2]=H[d+112>>2];H[b+4>>2]=H[d+116>>2];a=H[a+236>>2];if(a){b=H[d+36>>2];if(b){a=b}else{H[d+40>>2]=H[d+40>>2]+1&7}H[d+36>>2]=a-1}return 1}function yi(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-16|0;xb=f;H[f+8>>2]=0;a:{b:{c:{d:{e:{e=H[a+8>>2];f:{if(K[a+4>>2]<=e+3>>>0){break f}g:{h:{d=H[a+20>>2];if(d){if((zb[d|0](a,e,f+12|0,4)|0)!=4){break f}e=H[a+8>>2];d=H[f+8>>2];g=f+12|0;break h}d=H[a>>2];if(d){g=d+e|0;d=0;break h}h=e+4|0;H[a+8>>2]=h;d=0;break g}g=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);h=e+4|0;H[a+8>>2]=h;if(d){break a}d=g<<8&16711680|g<<24|(g>>>8&65280|g>>>24)}g=d;d=2;if((b|0)!=(g|0)){break a}H[f+8>>2]=0;if(K[a+4>>2]<=e+7>>>0){break f}b=H[a+20>>2];i:{if(!b){H[a+8>>2]=h+4;break i}if((zb[b|0](a,h,f+12|0,4)|0)!=4){break f}d=H[f+8>>2];h=H[a+8>>2];H[a+8>>2]=h+4;if(d){break a}}e=h+20|0;b=H[a+20>>2];j:{if(b){d=85;if(zb[b|0](a,e,0,0)|0){break a}b=H[a+4>>2];break j}d=85;b=H[a+4>>2];if(e>>>0>b>>>0){break a}}H[a+8>>2]=e;H[f+8>>2]=0;if(h+21>>>0>=b>>>0){break f}b=H[a+20>>2];if(!b){break e}if((zb[b|0](a,e,f+12|0,2)|0)==2){break d}}d=85;H[f+8>>2]=85;break a}b=H[a>>2];if(!b){break c}d=b+e|0;b=I[d+1|0];g=I[d|0];e=h+22|0;H[a+8>>2]=e;break b}b=I[f+13|0];g=I[f+12|0];d=H[f+8>>2];e=H[a+8>>2]+2|0;H[a+8>>2]=e;if(!d){break b}break a}H[a+8>>2]=h+22;d=2;break a}d=2;h=(b&255|g<<8)&65535;if(!h){break a}g=0;H[f+8>>2]=0;k:{if(K[a+4>>2]<=e+3>>>0){break k}while(1){l:{m:{n:{o:{p:{q:{b=H[a+20>>2];r:{if(b){if((zb[b|0](a,e,f+12|0,4)|0)!=4){break k}e=H[a+8>>2];d=H[f+8>>2];b=f+12|0;break r}b=H[a>>2];if(!b){break q}d=0;b=b+e|0}i=I[b+3|0];j=I[b+2|0];k=I[b+1|0];l=I[b|0];b=e+4|0;H[a+8>>2]=b;if(d){break a}if((k<<16|l<<24|j<<8|i)==2){H[f+8>>2]=0;s:{if(K[a+4>>2]<=e+7>>>0){break s}d=H[a+20>>2];if(d){if((zb[d|0](a,b,f+12|0,4)|0)!=4){break s}b=H[a+8>>2];e=H[f+8>>2];d=f+12|0;break n}d=H[a>>2];if(d){d=b+d|0;e=0;break n}H[a+8>>2]=e+8;b=0;break m}H[f+8>>2]=85;break l}d=e+12|0;b=H[a+20>>2];if(!b){break p}if(!(zb[b|0](a,d,0,0)|0)){break o}d=85;break a}H[a+8>>2]=e+4;d=e+12|0}if(d>>>0<=K[a+4>>2]){break o}d=85;break a}H[a+8>>2]=d;H[f+8>>2]=0;break l}d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[a+8>>2]=b+4;if(e){break l}b=d<<8&16711680|d<<24|(d>>>8&65280|d>>>24)}hd(a,f+8|0);if(H[f+8>>2]){break l}H[c>>2]=b;d=0;break a}g=g+1|0;if((h|0)==(g|0)){d=2;break a}e=H[a+8>>2];H[f+8>>2]=0;if(K[a+4>>2]>e+3>>>0){continue}break}}d=85}xb=f+16|0;return d}function uea(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;e=H[a+464>>2];if(H[a+280>>2]){d=H[e+52>>2];if(!d){if(!(zb[H[H[a+460>>2]+8>>2]](a)|0)){d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}if(H[a+336>>2]>0){d=0;while(1){f=d<<2;g=H[(f+a|0)+340>>2];a:{b:{if(H[a+224>>2]){if(H[a+408>>2]){break b}if(H[a+416>>2]){break a}}c=H[((H[g+20>>2]<<2)+e|0)+56>>2];F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+56|0]=0;F[c+57|0]=0;F[c+58|0]=0;F[c+59|0]=0;F[c+60|0]=0;F[c+61|0]=0;F[c+62|0]=0;F[c+63|0]=0;F[c+48|0]=0;F[c+49|0]=0;F[c+50|0]=0;F[c+51|0]=0;F[c+52|0]=0;F[c+53|0]=0;F[c+54|0]=0;F[c+55|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+42|0]=0;F[c+43|0]=0;F[c+44|0]=0;F[c+45|0]=0;F[c+46|0]=0;F[c+47|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;c=e+f|0;H[c+36>>2]=0;H[c+20>>2]=0;if(!H[a+224>>2]){if(H[a+432>>2]){break b}break a}if(!H[a+408>>2]){break a}}Nb(H[((H[g+24>>2]<<2)+e|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2]){continue}break}}H[e+16>>2]=-16;H[e+8>>2]=0;H[e+12>>2]=0;d=H[a+280>>2]}H[e+52>>2]=d-1}c:{d:{if(H[e+16>>2]==-1){break d}d=H[a+408>>2];if((d|0)>H[a+412>>2]){break d}h=H[b>>2];i=H[a+428>>2];j=e+184|0;b=H[H[a+340>>2]+24>>2];k=b+a|0;f=(b<<2)+e|0;while(1){c=d;d=(H[f+120>>2]+N(c,3)|0)-3|0;if(pd(a,d)){break d}while(1){if(!pd(a,d+1|0)){d=d+3|0;b=H[a+412>>2]>(c|0);c=c+1|0;if(b){continue}break c}break}l=pd(a,j);b=d+2|0;d=pd(a,b);e:{if(!d){b=0;break e}f:{if(!pd(a,b)){break f}d=d<<1;b=H[f+120>>2]+(I[k+264|0]<(c|0)?217:189)|0;if(!pd(a,b)){break f}while(1){d=d<<1;if((d|0)==32768){break c}b=b+1|0;if(pd(a,b)){continue}break}}if(d>>>0<2){b=d;break e}m=b+14|0;b=d;while(1){g=d>>1;b=(pd(a,m)?g:0)|b;n=d>>>0>3;d=g;if(n){continue}break}}G[(H[(c<<2)+i>>2]<<1)+h>>1]=(l?b^-1:b+1|0)<>2];d=c+1|0;if(H[a+412>>2]>(c|0)){continue}break}}return 1}b=H[a>>2];H[b+20>>2]=117;zb[H[b+4>>2]](a,-1);H[e+16>>2]=-1;return 1}function O7(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;e=H[a+584>>2];if(!e){return 0}l=J[e+120>>1];x=H[e+140>>2];f=H[a+604>>2];j=J[e+64>>1];q=J[e+66>>1];k=J[e+68>>1];g=H[e+76>>2];i=H[e+72>>2];u=H[e+124>>2];m=H[e+136>>2];d=H[e+132>>2];if(!((l|0)!=65535|(c|0)<=0)){i=i<>g;if((o|0)<16){f=f+1|0}else{g=o-16|0;F[f+1|0]=i>>g;f=f+2|0}d=d+1|0;c=c-1|0;m=j+m|0;l=I[b|0];b=b+1|0}v=b;a:{if((c|0)<=0){break a}while(1){t=H[e+144>>2];o=c;b:{while(1){h=l;l=I[v|0];b=d+1|0;c=o-1|0;v=v+1|0;w=h+(l<<12)|0;p=h^l<<5;r=p<<3;s=r+t|0;n=H[s>>2];if((w|0)!=(n|0)){break b}h=o>>>0>1;l=J[(t+r|0)+4>>1];d=b;o=c;if(h){continue}break}break a}c:{if((n|0)>=0){y=p?p-9001|0:-1;while(1){n=p+y|0;p=(n|0)<0?n+9001|0:n;r=p<<3;s=r+t|0;n=H[s>>2];if((n|0)==(w|0)){l=J[(t+r|0)+4>>1];d=b;break c}if((n|0)>=0){continue}break}}if(f>>>0>x>>>0){H[a+608>>2]=f-H[a+596>>2];Uc(a);f=H[a+596>>2]}i=h|i<>g;if((h|0)<16){f=f+1|0}else{g=h-16|0;F[f+1|0]=i>>g;f=f+2|0}H[s>>2]=w;G[s+4>>1]=k;d:{e:{h=k+1|0;if((h|0)==4094){h=H[e+144>>2];b=h+72e3|0;k=8993;while(1){H[b>>2]=-1;H[b-8>>2]=-1;H[b-16>>2]=-1;H[b-24>>2]=-1;H[b-32>>2]=-1;H[b-40>>2]=-1;H[b-48>>2]=-1;H[b-56>>2]=-1;b=b+-64|0;d=k>>>0>7;k=k-8|0;if(d){continue}break}H[h>>2]=-1;d=0;H[e+128>>2]=0;i=i<>g;q=511;k=258;if((b|0)<16){break e}g=b-16|0;F[f+1|0]=i>>g;f=f+2|0;break d}m=j+m|0;f:{if((k|0)>=(q|0)){j=j+1|0;q=-1<=8388607){d=2147483647;if(m>>>0<256){break g}d=(b|0)/(m>>8)|0;break g}d=(b<<8)/(m|0)|0}if((d|0)<=H[e+128>>2]){h=H[e+144>>2];b=h+72e3|0;k=8993;while(1){H[b>>2]=-1;H[b-8>>2]=-1;H[b-16>>2]=-1;H[b-24>>2]=-1;H[b-32>>2]=-1;H[b-40>>2]=-1;H[b-48>>2]=-1;H[b-56>>2]=-1;b=b+-64|0;d=k>>>0>7;k=k-8|0;if(d){continue}break}H[h>>2]=-1;d=0;H[e+128>>2]=0;i=i<>g;q=511;k=258;if((b|0)<16){break e}g=b-16|0;F[f+1|0]=i>>g;f=f+2|0;break d}H[e+128>>2]=d}d=b;k=h;break c}f=f+1|0}m=j;j=9}if((o|0)>1){continue}break}}H[e+136>>2]=m;H[e+132>>2]=d;H[e+124>>2]=u;H[e+76>>2]=g;H[e+72>>2]=i;G[e+68>>1]=k;G[e+66>>1]=q;G[e+64>>1]=j;H[e+120>>2]=l;H[a+604>>2]=f;return 1}function qo(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-16|0;xb=f;H[a+4>>2]=c;H[a>>2]=b;if(c){H[a+400>>2]=H[c+124>>2];H[a+404>>2]=H[c+128>>2];H[a+412>>2]=H[c+136>>2];H[a+416>>2]=H[c+140>>2];H[a+408>>2]=H[c+132>>2];H[a+420>>2]=H[c+144>>2];H[a+216>>2]=H[c+120>>2];d=H[c+80>>2];H[a+248>>2]=H[c+76>>2];H[a+252>>2]=d;d=H[c+88>>2];H[a+256>>2]=H[c+84>>2];H[a+260>>2]=d;d=H[c+96>>2];H[a+264>>2]=H[c+92>>2];H[a+268>>2]=d;d=H[c+104>>2];H[a+272>>2]=H[c+100>>2];H[a+276>>2]=d;d=H[c+112>>2];H[a+280>>2]=H[c+108>>2];H[a+284>>2]=d;d=H[c+44>>2];e=H[d+4>>2];H[a+220>>2]=H[d>>2];H[a+224>>2]=e;e=H[d+12>>2];H[a+228>>2]=H[d+8>>2];H[a+232>>2]=e;e=H[d+20>>2];H[a+236>>2]=H[d+16>>2];H[a+240>>2]=e;H[a+244>>2]=H[d+24>>2];H[a+424>>2]=H[c+148>>2];H[a+428>>2]=H[c+152>>2];d=H[c+160>>2];H[a+448>>2]=H[c+156>>2];H[a+452>>2]=d;d=H[c+168>>2];H[a+456>>2]=H[c+164>>2];H[a+460>>2]=d;d=H[c+176>>2];H[a+464>>2]=H[c+172>>2];H[a+468>>2]=d;Ob(a+288|0,c+180|0,68);H[a+384>>2]=H[c+248>>2];H[a+388>>2]=H[c+252>>2];G[a+472>>1]=J[c+256>>1];H[a+476>>2]=H[c+260>>2];d=H[c+268>>2];H[a+180>>2]=H[c+264>>2];H[a+184>>2]=d;d=H[c+276>>2];H[a+188>>2]=H[c+272>>2];H[a+192>>2]=d;d=H[c+284>>2];H[a+196>>2]=H[c+280>>2];H[a+200>>2]=d;d=H[c+292>>2];H[a+204>>2]=H[c+288>>2];H[a+208>>2]=d;H[a+212>>2]=H[c+296>>2];Nb(a+36|0,0,108)}e=H[a+8>>2];a:{b:{c:{c=J[b+284>>1]+32|0;d=H[a+20>>2];d:{if(c>>>0<=d>>>0){c=d;break d}i=a,j=Ub(e,1,d<<2,c<<2,H[a+24>>2],f+8|0),H[i+24>>2]=j;e=H[f+8>>2];if(e){break c}e=H[a+8>>2]}H[a+20>>2]=c;c=J[b+286>>1];b=H[a+392>>2];if(c>>>0<=b>>>0){c=b;break b}i=a,j=Ub(e,1,b,c,H[a+396>>2],f+12|0),H[i+396>>2]=j;e=H[f+12>>2];if(!e){break b}H[a+392>>2]=b&65535;break a}H[a+20>>2]=d;break a}e=0;H[a+152>>2]=0;H[a+392>>2]=c&65535;b=H[a+148>>2];c=H[a+144>>2];H[a+72>>2]=c;H[a+76>>2]=b;H[a+108>>2]=c;H[a+112>>2]=b;H[a+36>>2]=c;H[a+40>>2]=b;b=H[a+164>>2];c=H[a+160>>2];H[a+88>>2]=c;H[a+92>>2]=b;d=H[a+172>>2];g=H[a+168>>2];H[a+96>>2]=g;H[a+100>>2]=d;h=H[a+176>>2];H[a+104>>2]=h;H[a+124>>2]=c;H[a+128>>2]=b;H[a+132>>2]=g;H[a+136>>2]=d;H[a+140>>2]=h;H[a+52>>2]=c;H[a+56>>2]=b;H[a+60>>2]=g;H[a+64>>2]=d;H[a+68>>2]=h;b=H[a+156>>2];c=H[a+152>>2];H[a+80>>2]=c;H[a+84>>2]=b;H[a+116>>2]=c;H[a+120>>2]=b;H[a+44>>2]=c;H[a+48>>2]=b;F[a+492|0]=0}xb=f+16|0;return e}function xS(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;g=xb-352|0;xb=g;H[g+336>>2]=c;H[g+344>>2]=b;h=Dc(g+208|0);H[197455]=0;a=H[d+28>>2];H[g+16>>2]=a;H[a+4>>2]=H[a+4>>2]+1;a=H[197455];H[197455]=0;a:{b:{c:{d:{if((a|0)!=1){H[197455]=0;b=aa(3342,g+16|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;la(3458,b|0,773072,773098,g+224|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}b=H[g+16>>2];a=H[b+4>>2]-1|0;H[b+4>>2]=a;if((a|0)==-1){zb[H[H[b>>2]+8>>2]](b)}a=Dc(g+192|0);if(I[a+11|0]>>>7|0){b=(H[a+8>>2]&2147483647)-1|0}else{b=10}H[197455]=0;ba(3349,a|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}H[g+188>>2]=b;H[g+12>>2]=g+16;H[g+8>>2]=0;while(1){e:{H[197455]=0;d=da(3449,g+344|0,g+336|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}if(!d){break c}d=H[g+188>>2];if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}if((d|0)==(c+b|0)){if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}if(I[a+11|0]>>>7|0){b=H[a+4>>2]}else{b=I[a+11|0]}H[197455]=0;ba(3349,a|0,b<<1);b=H[197455];H[197455]=0;if((b|0)==1){break b}b=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,a|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}H[g+188>>2]=c+b}H[197455]=0;d=aa(3451,g+344|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[197455]=0;d=oh(d,16,b,g+188|0,g+8|0,0,h,g+16|0,g+12|0,g+224|0);c=H[197455];H[197455]=0;if((c|0)==1){break e}if(d){break c}H[197455]=0;aa(3453,g+344|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){continue}}break}break b}b=$()|0;_()|0;break a}b=$()|0;_()|0;c=H[g+16>>2];a=H[c+4>>2]-1|0;H[c+4>>2]=a;if((a|0)==-1){zb[H[H[c>>2]+8>>2]](c)}break a}H[197455]=0;ba(3349,a|0,H[g+188>>2]-b|0);b=H[197455];H[197455]=0;f:{if((b|0)==1){break f}if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}H[197455]=0;d=va(3442)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[g>>2]=f;H[197455]=0;c=la(3443,b|0,d|0,238708,g|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}if((c|0)!=1){H[e>>2]=4}H[197455]=0;c=da(3450,g+344|0,g+336|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}b=H[g+344>>2];_b(a);_b(h);xb=g+352|0;return b|0}}b=$()|0;_()|0;_b(a)}_b(h);ea(b|0);X()}function LS(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;g=xb-272|0;xb=g;H[g+256>>2]=c;H[g+264>>2]=b;h=Dc(g+208|0);H[197455]=0;a=H[d+28>>2];H[g+16>>2]=a;H[a+4>>2]=H[a+4>>2]+1;a=H[197455];H[197455]=0;a:{b:{c:{d:{if((a|0)!=1){H[197455]=0;b=aa(3329,g+16|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}H[197455]=0;la(3438,b|0,773072,773098,g+224|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}b=H[g+16>>2];a=H[b+4>>2]-1|0;H[b+4>>2]=a;if((a|0)==-1){zb[H[H[b>>2]+8>>2]](b)}a=Dc(g+192|0);if(I[a+11|0]>>>7|0){b=(H[a+8>>2]&2147483647)-1|0}else{b=10}H[197455]=0;ba(3349,a|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}H[g+188>>2]=b;H[g+12>>2]=g+16;H[g+8>>2]=0;while(1){e:{H[197455]=0;d=da(3420,g+264|0,g+256|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}if(!d){break c}d=H[g+188>>2];if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}if((d|0)==(c+b|0)){if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}if(I[a+11|0]>>>7|0){b=H[a+4>>2]}else{b=I[a+11|0]}H[197455]=0;ba(3349,a|0,b<<1);b=H[197455];H[197455]=0;if((b|0)==1){break b}b=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,a|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}H[g+188>>2]=c+b}H[197455]=0;d=aa(3422,g+264|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[197455]=0;d=ph(d,16,b,g+188|0,g+8|0,0,h,g+16|0,g+12|0,g+224|0);c=H[197455];H[197455]=0;if((c|0)==1){break e}if(d){break c}H[197455]=0;aa(3424,g+264|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){continue}}break}break b}b=$()|0;_()|0;break a}b=$()|0;_()|0;c=H[g+16>>2];a=H[c+4>>2]-1|0;H[c+4>>2]=a;if((a|0)==-1){zb[H[H[c>>2]+8>>2]](c)}break a}H[197455]=0;ba(3349,a|0,H[g+188>>2]-b|0);b=H[197455];H[197455]=0;f:{if((b|0)==1){break f}if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}H[197455]=0;d=va(3442)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[g>>2]=f;H[197455]=0;c=la(3443,b|0,d|0,238708,g|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}if((c|0)!=1){H[e>>2]=4}H[197455]=0;c=da(3421,g+264|0,g+256|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}b=H[g+264>>2];_b(a);_b(h);xb=g+272|0;return b|0}}b=$()|0;_()|0;_b(a)}_b(h);ea(b|0);X()}function ym(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;f=xb-32|0;xb=f;a:{if(H[a+240>>2]){H[f+28>>2]=0;g=H[a+8>>2];j=H[a+32>>2]+(H[a+36>>2]+(H[a+4>>2]-g|0)|0)|0;b:{if(!j){break b}i=d&65535;d=f+28|0;NA(g,j,i,d,f+24|0,f+20|0);kq(e,d,H[f+24>>2],H[f+20>>2]);k=+G[b+12>>1];l=+G[b+8>>1];m=+G[b+4>>1];n=+G[b>>1];d=0;if(!(H[b>>2]==H[c>>2]|H[b+4>>2]==H[c+4>>2]|H[b+8>>2]==H[c+8>>2])){d=H[b+12>>2]!=H[c+12>>2]}if(d){b=H[c+12>>2];H[f+8>>2]=H[c+8>>2];H[f+12>>2]=b;b=H[c+4>>2];H[f>>2]=H[c>>2];H[f+4>>2]=b;k=P(k-m);l=P(l-n);j=H[f+28>>2];if(j){g=H[f+24>>2];i=H[f+20>>2];b=H[f>>2];c:{if((b|0)<0){break c}d=H[f+8>>2];if((d|0)<0){break c}c=H[f+4>>2];if((c|0)<0){break c}e=H[f+12>>2];if((e|0)<0){break c}if(i>>>0>>0){e=c+g|0;H[f+12>>2]=e}if(g>>>0>>0){d=b+g|0;H[f+8>>2]=d}if((i|0)==(e-c|0)&(g|0)==(d-b|0)){break c}i=(b|0)<(d|0)?d:b;b=(b|0)>(d|0)?d:b;d=(c|0)<(e|0)?e:c;c=(c|0)>(e|0)?e:c;h=Qb(N(i-b|0,d-c|0)<<2);e=c<<2;p=d<<2;if(e>>>0>=p>>>0){break c}q=i<<2;c=b<<2;if(q>>>0<=c>>>0){break c}d=0;while(1){r=N(e,g);b=c;while(1){i=d+h|0;o=b+r|0;F[i|0]=I[j+o|0];F[i+1|0]=I[j+(o|1)|0];F[i+2|0]=I[j+(o|2)|0];F[i+3|0]=I[j+(o|3)|0];d=d+4|0;b=b+4|0;if(q>>>0>b>>>0){continue}break}e=e+4|0;if(p>>>0>e>>>0){continue}break}}b=h}else{b=0}c=H[a+240>>2];if(b){h=H[f+8>>2]-H[f>>2]|0;d=h>>31;g=H[f+12>>2]-H[f+4>>2]|0;e=g>>31;zb[H[H[c>>2]+16>>2]](c,n,m,l,k,b,(d^h)-d|0,(e^g)-e|0);Kb(b);break b}zb[H[H[c>>2]+16>>2]](c,n,m,l,k,H[f+28>>2],H[f+24>>2],H[f+20>>2]);break b}b=H[a+240>>2];zb[H[H[b>>2]+16>>2]](b,n,m,P(l-n),P(k-m),H[f+28>>2],H[f+24>>2],H[f+20>>2])}b=H[f+28>>2];if(b){Kb(b)}if((H[a+32>>2]+(H[a+36>>2]+(H[a+4>>2]-H[a+8>>2]|0)|0)|0)>=0){break a}F[a+29|0]=1;break a}d=a+172|0;c=G[b>>1];e=H[b+4>>2];d:{if(I[a+188|0]){H[a+172>>2]=c;F[a+188|0]=0;H[a+180>>2]=c;e=e<<16>>16;H[a+184>>2]=e;H[a+176>>2]=e;break d}h=d;e:{if(H[d>>2]<=(c|0)){h=a+180|0;if(H[h>>2]>=(c|0)){break e}}H[h>>2]=c}c=e<<16>>16;h=c;g=a+176|0;e=H[g>>2];f:{if((c|0)>=(e|0)){h=e;g=a+184|0;if((c|0)<=H[g>>2]){break f}}H[g>>2]=c;e=h}c=H[d>>2]}h=H[b+12>>2];b=G[b+8>>1];g:{if((b|0)>=(c|0)){d=a+180|0;if((b|0)<=H[d>>2]){break g}}H[d>>2]=b}b=h<<16>>16;if((b|0)<(e|0)){H[a+176>>2]=b;break a}if((b|0)<=H[a+184>>2]){break a}H[a+184>>2]=b}xb=f+32|0}function vea(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;e=H[a+464>>2];if(H[a+280>>2]){c=H[e+52>>2];if(!c){if(!(zb[H[H[a+460>>2]+8>>2]](a)|0)){c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}if(H[a+336>>2]>0){while(1){g=d<<2;f=H[(g+a|0)+340>>2];a:{b:{if(H[a+224>>2]){if(H[a+408>>2]){break b}if(H[a+416>>2]){break a}}c=H[((H[f+20>>2]<<2)+e|0)+56>>2];F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+56|0]=0;F[c+57|0]=0;F[c+58|0]=0;F[c+59|0]=0;F[c+60|0]=0;F[c+61|0]=0;F[c+62|0]=0;F[c+63|0]=0;F[c+48|0]=0;F[c+49|0]=0;F[c+50|0]=0;F[c+51|0]=0;F[c+52|0]=0;F[c+53|0]=0;F[c+54|0]=0;F[c+55|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+42|0]=0;F[c+43|0]=0;F[c+44|0]=0;F[c+45|0]=0;F[c+46|0]=0;F[c+47|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;c=e+g|0;H[c+36>>2]=0;H[c+20>>2]=0;if(!H[a+224>>2]){if(H[a+432>>2]){break b}break a}if(!H[a+408>>2]){break a}}Nb(H[((H[f+24>>2]<<2)+e|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2]){continue}break}}H[e+16>>2]=-16;H[e+8>>2]=0;H[e+12>>2]=0;c=H[a+280>>2]}H[e+52>>2]=c-1}if(!(H[e+16>>2]==-1|H[a+364>>2]<=0)){while(1){c=j<<2;m=H[c+b>>2];c=H[(a+c|0)+368>>2]<<2;h=H[H[(c+a|0)+340>>2]+20>>2];l=(h<<2)+e|0;g=c+e|0;d=H[l+56>>2]+H[g+36>>2]|0;c:{if(!pd(a,d)){H[g+36>>2]=0;c=H[g+20>>2];break c}i=0;c=0;k=pd(a,d+1|0);d=(d+k|0)+2|0;f=pd(a,d);d:{if(!f){break d}c=f;d=H[l+56>>2]+20|0;if(!pd(a,d)){break d}while(1){c=c<<1;if((c|0)==32768){b=H[a>>2];H[b+20>>2]=117;zb[H[b+4>>2]](a,-1);H[e+16>>2]=-1;return 1}d=d+1|0;if(pd(a,d)){continue}break}}h=a+h|0;e:{if(1<>1>(c|0)){break e}f=k<<2;if(1<>1<(c|0)){i=f+12|0;break e}i=f+4|0}H[g+36>>2]=i;f:{if(c>>>0<2){d=c;break f}i=d+14|0;d=c;while(1){f=c>>1;d=(pd(a,i)?f:0)|d;h=c>>>0>3;c=f;if(h){continue}break}}c=H[g+20>>2]+(k?d^-1:d+1|0)|0;H[g+20>>2]=c}G[m>>1]=c<>2];j=j+1|0;if((j|0)>2]){continue}break}}return 1}function Nfa(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;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;i=xb-16|0;xb=i;if((e|0)>0){while(1){if((g&255)==255){zb[H[H[d>>2]+12>>2]](d,i+15|0,1,1,0,0)|0;g=I[i+15|0]}a:{if(g<<24>>24<0){h=g-127|0;F[i+15|0]=h;g=255;if(((h&255)+p|0)>(e|0)){r=zb[H[H[d>>2]+24>>2]](d)|0;g=e-p|0;F[i+15|0]=g;g=h+(g^-1)^-128}b:{c:{switch(I[c+16|0]-8|0){case 24:h=0;zb[H[H[d>>2]+12>>2]](d,i+8|0,4,1,0,0)|0;if(!I[i+15|0]){break b}while(1){k=N(h,3)+b|0;m=J[i+8>>1];F[k|0]=m;F[k+1|0]=m>>>8;F[k+2|0]=I[i+10|0];te(a,h+p|0,f,I[i+11|0]);h=h+1|0;if(h>>>0>2]+12>>2]](d,i+5|0,3,1,0,0)|0;k=I[i+15|0];if(!k){break b}m=0;h=0;if(k-1>>>0>=3){q=k&252;o=0;while(1){j=N(h,3)+b|0;l=I[i+5|0]|I[i+6|0]<<8;F[j|0]=l;F[j+1|0]=l>>>8;F[j+2|0]=I[i+7|0];j=N(h|1,3)+b|0;F[j+2|0]=I[i+7|0];l=I[i+5|0]|I[i+6|0]<<8;F[j|0]=l;F[j+1|0]=l>>>8;j=N(h|2,3)+b|0;F[j+2|0]=I[i+7|0];l=I[i+5|0]|I[i+6|0]<<8;F[j|0]=l;F[j+1|0]=l>>>8;j=N(h|3,3)+b|0;F[j+2|0]=I[i+7|0];l=I[i+5|0]|I[i+6|0]<<8;F[j|0]=l;F[j+1|0]=l>>>8;h=h+4|0;o=o+4|0;if((q|0)!=(o|0)){continue}break}}o=k&3;if(!o){break b}while(1){k=N(h,3)+b|0;j=I[i+5|0]|I[i+6|0]<<8;F[k|0]=j;F[k+1|0]=j>>>8;F[k+2|0]=I[i+7|0];h=h+1|0;m=m+1|0;if((o|0)!=(m|0)){continue}break};break b;case 7:case 8:zb[H[H[d>>2]+12>>2]](d,i+2|0,2,1,0,0)|0;j=I[i+15|0];if(!j){break b}h=J[i+2>>1];k=h<<3;m=h>>>7&248;o=h>>>2&248;q=0;h=0;if(j-1>>>0>=3){s=j&252;l=0;while(1){n=N(h,3)+b|0;F[n+2|0]=m;F[n+1|0]=o;F[n|0]=k;n=N(h|1,3)+b|0;F[n+2|0]=m;F[n+1|0]=o;F[n|0]=k;n=N(h|2,3)+b|0;F[n+2|0]=m;F[n+1|0]=o;F[n|0]=k;n=N(h|3,3)+b|0;F[n+2|0]=m;F[n+1|0]=o;F[n|0]=k;h=h+4|0;l=l+4|0;if((s|0)!=(l|0)){continue}break}}l=j&3;if(!l){break b}while(1){j=N(h,3)+b|0;F[j+2|0]=m;F[j+1|0]=o;F[j|0]=k;h=h+1|0;q=q+1|0;if((l|0)!=(q|0)){continue}break};break b;case 0:break c;default:break b}}zb[H[H[d>>2]+12>>2]](d,i+1|0,1,1,0,0)|0;h=I[i+15|0];if(!h){break b}Nb(b,I[i+1|0],h)}if((g&255)==255){g=255;break a}zb[H[H[d>>2]+20>>2]](d,r,0)|0;break a}k=g+1|0;h=((k&255)+p|0)>(e|0);m=e-p|0;k=h?m:k;F[i+15|0]=k;aD(a,b,c,d,k&255,f,p);g=h?g-m|0:-1}h=I[i+15|0];b=(J[a+26>>1]==24?N(h,3):h)+b|0;p=h+p|0;if((p|0)<(e|0)){continue}break}}xb=i+16|0;return g&255}function gca(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;q=xb-96|0;d=a;while(1){a:{f=d;d=H[(t<<2)+b>>2]+c|0;w=I[d+9|0];n=I[d+1|0];r=w+n|0;x=I[d+10|0];y=I[d|0];h=x+y|0;l=I[d+8|0];o=I[d+2|0];j=l+o|0;p=I[d+7|0];s=I[d+3|0];i=p+s|0;k=I[d+6|0];e=I[d+4|0];g=k+e|0;d=I[d+5|0];H[f>>2]=(((((r+h|0)+j|0)+i|0)+g|0)+d<<1)-2816;m=d<<1;h=h-m|0;i=i-m|0;v=j-m|0;u=g-m|0;d=N(h+i|0,11116)+N(v+u|0,1649)|0;g=N(h,-13275);r=r-m|0;h=N(h-r|0,9746)+2048|0;H[f+24>>2]=d+((g+h|0)+N(v,-6461)|0)>>12;j=N(r-i|0,7587);H[f+8>>2]=(d+((j+N(i,-8342)|0)+N(u,-11395)|0)|0)+2048>>12;d=s-p|0;n=n-w|0;s=N(d+n|0,-11467);p=y-x|0;i=N(p+d|0,6263);m=i+(s+N(d,10695)|0)|0;g=o-l|0;d=N(g+d|0,3264);k=e-k|0;H[f+28>>2]=((m+d|0)+N(k,-10538)|0)+2048>>12;e=N(g+n|0,-6263);l=e+N(g,-16294)|0;g=N(g+p|0,8756);H[f+20>>2]=(((l+g|0)+d|0)+N(k,11467)|0)+2048>>12;d=N(n+p|0,10538)+2048|0;H[f+12>>2]=(s+(e+(d+N(n,10456)|0)|0)|0)+N(k,-8756)>>12;H[f+4>>2]=(i+(g+(d+N(p,-14090)|0)|0)|0)+N(k,3264)>>12;H[f+16>>2]=j+(((h+N(r,511)|0)+N(v,-11116)|0)+N(u,4813)|0)>>12;e=t-7|0;t=t+1|0;g=7;d=q;b:{switch(e|0){case 0:continue;case 3:break a;default:break b}}d=f+32|0;continue}break}while(1){w=H[d+64>>2];n=H[a>>2];r=w+n|0;x=H[a+160>>2];e=x<<1;b=r-e|0;y=H[a+224>>2];l=H[a+96>>2];o=y+l|0;z=o-e|0;p=H[d>>2];s=H[a+64>>2];k=p+s|0;m=k-e|0;h=H[a+128>>2];j=H[a+192>>2];f=h+j|0;t=f-e|0;v=N(b+z|0,11759)+N(m+t|0,1744)|0;A=N(b,-14043);i=b;q=H[d+32>>2];c=H[a+32>>2];b=q+c|0;u=b-e|0;i=N(i-u|0,10310)+16384|0;H[a+192>>2]=v+((A+i|0)+N(m,-6835)|0)>>15;e=N(u-z|0,8026);H[a+64>>2]=(v+((e+N(z,-8825)|0)+N(t,-12054)|0)|0)+16384>>15;H[a>>2]=N(x+(f+(o+(k+(b+r|0)|0)|0)|0)|0,8666)+16384>>15;b=l-y|0;l=c-q|0;k=N(b+l|0,-12131);o=n-w|0;f=N(o+b|0,6626);q=f+(k+N(b,11314)|0)|0;c=s-p|0;b=N(c+b|0,3453);j=h-j|0;H[a+224>>2]=((q+b|0)+N(j,-11148)|0)+16384>>15;q=N(c+l|0,-6626);h=q+N(c,-17237)|0;c=N(c+o|0,9262);H[a+160>>2]=(((h+c|0)+b|0)+N(j,12131)|0)+16384>>15;b=N(l+o|0,11148)+16384|0;H[a+96>>2]=(k+(q+(b+N(l,11061)|0)|0)|0)+N(j,-9262)>>15;H[a+32>>2]=(f+(c+(b+N(o,-14905)|0)|0)|0)+N(j,3453)>>15;H[a+128>>2]=(((i+N(u,540)|0)+N(m,-11759)|0)+N(t,5091)|0)+e>>15;b=g;g=b-1|0;d=d+4|0;a=a+4|0;if(b){continue}break}}function f0(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=O(0);g=H[a+8>>2];d=H[a+4>>2];if(g>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[a+4>>2]=d}H[b>>2]=c;a:{if(g>>>0<=d+3>>>0){c=d;break a}e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);c=d+4|0;H[a+4>>2]=c}H[b+4>>2]=e;d=0;if(g>>>0>c+3>>>0){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+8>>2]=f;if(g>>>0>c+3>>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+12>>2]=d;e=0;if(g>>>0>c+3>>>0){e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+16>>2]=e;if(g>>>0<=c+3>>>0){l=0}else{m=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;l=+m}M[b+24>>3]=l;if(g>>>0>c+3>>>0){m=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[a+4>>2]=c+4;l=+m}else{l=0}M[b+32>>3]=l;if(!(d&256)){Be(a,b+40|0);f=H[b+8>>2]}H[b+56>>2]=0;if(f){b:{if(I[b+13|0]&2){k=Qb(f);j=H[a+8>>2];c=H[a+4>>2];d=j-c|0;g=d>>>0>>0?d:f;c:{if(!g){break c}if((g|0)!=1){d=g&-2;while(1){d:{if(c>>>0>=j>>>0){e=0;break d}e=I[c|0];c=c+1|0;H[a+4>>2]=c}F[h+k|0]=e;e=0;if(c>>>0>>0){e=I[c|0];c=c+1|0;H[a+4>>2]=c}F[(h|1)+k|0]=e;h=h+2|0;i=i+2|0;if((d|0)!=(i|0)){continue}break}}if(!(g&1)){break c}e=0;if(c>>>0>>0){e=I[c|0];H[a+4>>2]=c+1}F[h+k|0]=e}i=f>>>0>1?f:1;g=i&3;e=0;d=f+f|0;c=Qb(d>>>0>>0?-1:d);h=0;if(i-1>>>0>=3){i=i&-4;f=0;while(1){G[(h<<1)+c>>1]=I[h+k|0];d=h|1;G[(d<<1)+c>>1]=I[d+k|0];d=h|2;G[(d<<1)+c>>1]=I[d+k|0];d=h|3;G[(d<<1)+c>>1]=I[d+k|0];h=h+4|0;f=f+4|0;if((i|0)!=(f|0)){continue}break}}if(g){while(1){G[(h<<1)+c>>1]=I[h+k|0];h=h+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}}Kb(k);break b}d=f+f|0;c=Qb(d>>>0>>0?-1:d);j=H[a+8>>2];d=H[a+4>>2];i=(j-d|0)/2|0;g=f>>>0>i>>>0?i:f;if(!g){break b}if(j>>>0>d+1>>>0){if((g|0)!=1){i=g&-2;f=0;while(1){e:{if(j>>>0<=d+1>>>0){e=0;break e}e=I[d|0]|I[d+1|0]<<8;d=d+2|0;H[a+4>>2]=d}G[(h<<1)+c>>1]=e;e=0;if(j>>>0>d+1>>>0){e=I[d|0]|I[d+1|0]<<8;d=d+2|0;H[a+4>>2]=d}G[((h|1)<<1)+c>>1]=e;h=h+2|0;f=f+2|0;if((i|0)!=(f|0)){continue}break}}if(!(g&1)){break b}e=0;if(j>>>0>d+1>>>0){e=I[d|0]|I[d+1|0]<<8;H[a+4>>2]=d+2}G[(h<<1)+c>>1]=e;break b}Nb(c,0,g<<1)}H[b+56>>2]=c}return a|0} +function Kla(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=O(0),h=0,i=O(0);b=xb+-64|0;xb=b;g=L[a+32>>2];H[b+24>>2]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b+36>>2]=0;H[b+40>>2]=0;H[b+44>>2]=0;H[b+48>>2]=0;H[b+52>>2]=0;H[b+56>>2]=0;H[b+60>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+12>>2]=e;H[b+8>>2]=d;L[b>>2]=g;F[b+4|0]=g==O(0);a:{e=H[a+16>>2];d=H[e+108>>2];b:{c:{if(d){break c}while(1){f=H[e+48>>2];if(!f){d=163632;break c}d:{d=oc(1,28);if(d){H[197455]=0;da(674,d|0,f|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){f=H[e+108>>2];H[e+108>>2]=f?f:d;if(!f){break c}f=H[d+24>>2];H[197455]=0;ia(579,f|0);f=H[197455];H[197455]=0;if((f|0)==1){break a}Kb(d);break d}break b}d=163632;f=H[e+108>>2];H[e+108>>2]=f?f:163632;if(f){break d}break c}d=H[e+108>>2];if(!d){continue}break}}H[197455]=0;d=la(675,d|0,a|0,c|0,b|0)|0;e=H[197455];H[197455]=0;e:{if((e|0)==1){break e}f:{if(d){break f}e=H[a+16>>2];d=H[e+112>>2];g:{if(d){break g}while(1){f=H[e+48>>2];if(!f){d=163632;break g}d=oc(1,244);h:{if(d){H[197455]=0;h=da(676,d|0,f|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break e}f=H[e+112>>2];H[e+112>>2]=f?f:d;if(!f){break g}ol(h);Kb(d);break h}d=163632;f=H[e+112>>2];H[e+112>>2]=f?f:163632;if(!f){break g}}d=H[e+112>>2];if(!d){continue}break}}H[197455]=0;d=la(677,d|0,a|0,c|0,b|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break e}if(d){break f}e=H[a+16>>2];d=H[e+116>>2];i:{if(d){break i}while(1){f=H[e+48>>2];if(!f){d=163632;break i}d=oc(1,132);j:{if(d){H[197455]=0;h=da(678,d|0,f|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break e}f=H[e+116>>2];H[e+116>>2]=f?f:d;if(!f){break i}hs(h);Kb(d);break j}d=163632;f=H[e+116>>2];H[e+116>>2]=f?f:163632;if(!f){break i}}d=H[e+116>>2];if(!d){continue}break}}H[197455]=0;la(679,d|0,a|0,c|0,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break e}}k:{if(H[b+16>>2]){c=b+16|0;d=H[b+12>>2];a=H[b+8>>2];i=L[b+20>>2];g=L[b+24>>2];if(!(i==L[b+28>>2]&g==L[b+32>>2])){e=H[a+36>>2];f=H[a+16>>2];H[197455]=0;Ma(f|0,a|0,d|0,c|0,O(i),O(g),e|0);e=H[197455];H[197455]=0;if((e|0)==1){break k}}e=H[a+48>>2];f=H[a+28>>2];H[197455]=0;ka(f|0,a|0,d|0,c|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break k}}xb=b- -64|0;return}break a}}a=$()|0;_()|0;ns(b);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function _ia(a){a=a|0;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;m=xb-16|0;xb=m;b=3;e=H[a+32>>2];a:{if(!e){break a}c=H[e+364>>2];if(!c){break a}h=H[c+588>>2];b=H[c+584>>2];e=H[e+360>>2];b:{if(!(!I[c+556|0]|(e|0)!=H[c+564>>2]|(b|0)!=H[c+568>>2])){if(!b){break b}if(!md(h,H[c+572>>2],b<<2)){break b}}b=qE(c+556|0,e,b,h);if(b){break a}}b=3;n=Ef(a,H[H[a+20>>2]-4>>2]);if(n>>>0>K[a+24>>2]){break a}e=H[H[c+560>>2]+8>>2];H[m+12>>2]=0;b=161;f=(H[a+20>>2]-H[a+16>>2]|0)-4>>2;g=N(H[c+576>>2],n);c:{if(f>>>0>>0){break c}b=H[c+604>>2];i=H[c+600>>2];h=N(n,5);d:{if(b>>>0>=i+h>>>0){break d}j=H[c+596>>2];d=e;e=H[c+592>>2];d=Ub(d,1,b,b+h|0,e,m+12|0);H[c+592>>2]=d;b=H[m+12>>2];if(b){break c}i=H[c+600>>2];H[c+596>>2]=d+i;H[c+604>>2]=h+H[c+604>>2];if(!e|(d|0)==(e|0)){break d}b=H[a+16>>2];k=H[a+20>>2];if(b>>>0>=k>>>0){break d}l=d-e|0;while(1){d=H[b>>2];if(!(d>>>0>>0|d>>>0>=j>>>0)){H[b>>2]=d+l;k=H[a+20>>2]}b=b+4|0;if(k>>>0>b>>>0){continue}break}}H[c+600>>2]=h+i;p=f-g|0;h=p+n|0;if(n){e=h;while(1){b=H[c+580>>2];q=o+p<<2;j=Ef(a,H[q+H[a+16>>2]>>2])<<16;k=1;i=H[c+576>>2];if(i>>>0>=2){while(1){b=b+4|0;e:{f:{d=H[H[a+16>>2]+(e<<2)>>2];g=I[d|0];if((g|0)!=255){if((g|0)!=30){break f}f=En(a,d,0,0)>>16;i=H[c+576>>2];break e}f=((I[d+3|0]|(I[d+2|0]<<8|I[d+1|0]<<16))<<8)+32768>>16;break e}l=d+1|0;g:{switch(g-28|0){case 0:f=0;if(K[a+8>>2]<=d+2>>>0){break e}f=(I[d+2|0]|I[l|0]<<8)<<16>>16;break e;case 1:f=0;if(K[a+8>>2]<=d+4>>>0){break e}d=I[d+1|0]|I[d+2|0]<<8|(I[d+3|0]<<16|I[d+4|0]<<24);f=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);break e;default:break g}}if(g>>>0<=246){f=g-139|0;break e}d=H[a+8>>2];if(g>>>0<=250){f=0;if(d>>>0<=l>>>0){break e}f=(I[l|0]|g<<8)-63124|0;break e}f=0;if(d>>>0<=l>>>0){break e}f=64148-(I[l|0]|g<<8)|0}e=e+1|0;j=N(H[b>>2],f)+j|0;k=k+1|0;if(k>>>0>>0){continue}break}}H[H[a+16>>2]+q>>2]=H[c+596>>2];b=H[c+596>>2];H[c+596>>2]=b+1;F[b|0]=255;b=H[c+596>>2];H[c+596>>2]=b+1;F[b|0]=j>>>24;b=H[c+596>>2];H[c+596>>2]=b+1;F[b|0]=j>>>16;b=H[c+596>>2];H[c+596>>2]=b+1;F[b|0]=j>>>8;b=H[c+596>>2];H[c+596>>2]=b+1;F[b|0]=j;o=o+1|0;if((o|0)!=(n|0)){continue}break}b=H[m+12>>2]}else{b=0}H[a+20>>2]=H[a+16>>2]+(h<<2)}F[c+557|0]=1}xb=m+16|0;return b|0}function Cu(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;d=xb-16|0;xb=d;c=H[a+104>>2];b=zb[H[a+516>>2]](a,1886352244,c,d+4|0)|0;a:{if(b){break a}i=H[c+8>>2];l=H[d+4>>2];e=H[a+476>>2];b=ud(c,32);if(b){break a}b:{c:{d:{e:{f:{if((e|0)!=151552){b=3;if((e|0)!=131072){break b}e=H[c+28>>2];h=nc(c,d+8|0);b=H[d+8>>2];if(b){break b}b=3;if(h>>>0>J[a+264>>1]){break b}k=Ub(e,2,0,h,0,d+8|0);if(H[d+8>>2]){break c}b=Jc(c,h<<1);H[d+8>>2]=b;if(b){break c}if(!h){break f}b=0;while(1){r=k+(b<<1)|0,s=Tc(c),G[r>>1]=s;b=b+1|0;if((h|0)!=(b|0)){continue}break}wc(c);m=h&1;g:{if((h|0)==1){b=0;break g}n=h&65534;b=0;while(1){j=f<<1;o=J[k+(j|2)>>1];p=o-257|0;j=J[k+j>>1];q=j-257|0;b=j>>>0>257?(b&65535)<(q|0)?q:b:b;b=o>>>0>257?(b&65535)<(p|0)?p:b:b;f=f+2|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}}if(!m){break d}f=J[k+(f<<1)>>1];g=f-257|0;b=f>>>0>257?(g|0)>(b&65535)?g:b:b;break d}h=H[c+28>>2];e=nc(c,d+12|0);b=H[d+12>>2];if(b){break b}b=3;if(J[a+264>>1]<=(e-1&65535)>>>0|e>>>0>258){break b}b=0;f=Ub(h,1,0,e,0,d+12|0);h:{if(H[d+12>>2]){break h}c=wd(c,f,e);H[d+12>>2]=c;if(c){break h}while(1){c=F[b+f|0]+b|0;if(!((c|0)<0|(c|0)>(e|0))){b=b+1|0;if((e|0)!=(b|0)){continue}break e}break}H[d+12>>2]=3}if(f){zb[H[h+8>>2]](h,f)}b=H[d+12>>2];break b}wc(c);b=0;break d}H[a+640>>2]=f;G[a+636>>1]=e;b=0;break b}g=0;m=b&65535;f=Ub(e,4,0,m,0,d+8|0);if(H[d+8>>2]){break c}i:{j:{if(!m){break j}l=i+l|0;while(1){if(l>>>0<=K[c+8>>2]){if((b&65535)>>>0<=(g&65535)>>>0){break j}while(1){c=Ub(e,1,0,1,0,d+8|0);H[(g<<2)+f>>2]=c;if(H[d+8>>2]){break i}F[c|0]=0;g=g+1|0;if((m|0)!=(g|0)){continue}break}break j}i=Gd(c,d+8|0);if(H[d+8>>2]){break i}i=i&255;if(!(l>>>0>=i>>>0&K[c+8>>2]<=l-i>>>0)){i=l-H[c+8>>2]|0;i=(i|0)>0?i:0}n=(g<<2)+f|0;j=Ub(e,1,0,i+1|0,0,d+8|0);H[n>>2]=j;if(H[d+8>>2]){break i}j=wd(c,j,i);H[d+8>>2]=j;if(j){break i}F[H[n>>2]+i|0]=0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}H[a+644>>2]=f;H[a+640>>2]=k;G[a+638>>1]=b;G[a+636>>1]=h;b=0;break b}b=b&65535;c=b>>>0>1?b:1;b=0;while(1){h=(b<<2)+f|0;g=H[h>>2];if(g){zb[H[e+8>>2]](e,g)}H[h>>2]=0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}if(f){zb[H[e+8>>2]](e,f)}if(k){zb[H[e+8>>2]](e,k)}b=H[d+8>>2]}F[a+632|0]=1}xb=d+16|0;return b}function Jda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,J=0,K=0,L=0,M=0,O=0,P=0,Q=0;b=H[b+84>>2];l=N(N(G[c+26>>1],H[b+52>>2]),10033);m=N(G[c+10>>1],H[b+20>>2])<<13|1024;k=N(H[b+84>>2],G[c+42>>1]);p=m+N(k,5793)|0;i=l+p>>11;q=N(N(G[c+18>>1],H[b+36>>2]),10033);n=N(G[c+2>>1],H[b+4>>2])<<13|1024;o=N(H[b+68>>2],G[c+34>>1]);r=n+N(o,5793)|0;g=q+r>>11;h=N(i+g|0,2998);f=H[d>>2]+e|0;a=H[a+332>>2]+128|0;s=N(N(G[c+22>>1],H[b+44>>2]),10033);t=N(G[c+6>>1],H[b+12>>2])<<13|1024;u=N(H[b+76>>2],G[c+38>>1]);v=t+N(u,5793)|0;j=s+v>>11;w=h+(j+g<<13)|0;x=N(N(G[c+16>>1],H[b+32>>2]),10033);y=N(G[c>>1],H[b>>2])<<13|1024;z=N(H[b+64>>2],G[c+32>>1]);A=y+N(z,5793)|0;B=(x+A<<2)+131072&-8192;C=N(N(G[c+24>>1],H[b+48>>2]),10033);D=N(G[c+8>>1],H[b+16>>2])<<13|1024;E=N(H[b+80>>2],G[c+40>>1]);J=D+N(E,5793)|0;K=C+J>>11;L=B+N(K,5793)|0;M=N(N(G[c+20>>1],H[b+40>>2]),10033);O=N(G[c+4>>1],H[b+8>>2])<<13|1024;P=N(H[b+72>>2],G[c+36>>1]);Q=O+N(P,5793)|0;b=N(M+Q>>11,10033);c=L+b|0;F[f|0]=I[a+(w+c>>>18&1023)|0];F[f+5|0]=I[a+(c-w>>>18&1023)|0];c=g-(i+j|0)<<13;g=N(K,-11586)+B|0;F[f+1|0]=I[a+(c+g>>>18&1023)|0];F[f+4|0]=I[a+(g-c>>>18&1023)|0];c=h+(i-j<<13)|0;b=L-b|0;F[f+2|0]=I[a+(c+b>>>18&1023)|0];F[f+3|0]=I[a+(b-c>>>18&1023)|0];c=m+N(k,-11586)>>11;f=n+N(o,-11586)>>11;i=N(c+f|0,2998);b=H[d+4>>2]+e|0;g=N(u,-11586)+t>>11;h=i+(g+f<<13)|0;k=(N(z,1073730238)+y<<2)+131072&-8192;j=N(E,-11586)+D>>11;m=k+N(j,5793)|0;o=N(N(P,-11586)+O>>11,10033);n=m+o|0;F[b|0]=I[a+(h+n>>>18&1023)|0];F[b+5|0]=I[a+(n-h>>>18&1023)|0];f=f-(c+g|0)<<13;h=k+N(j,-11586)|0;F[b+1|0]=I[a+(f+h>>>18&1023)|0];F[b+4|0]=I[a+(h-f>>>18&1023)|0];c=i+(c-g<<13)|0;f=m-o|0;F[b+2|0]=I[a+(c+f>>>18&1023)|0];F[b+3|0]=I[a+(f-c>>>18&1023)|0];c=p-l>>11;f=r-q>>11;l=N(c+f|0,2998);b=H[d+8>>2]+e|0;d=v-s>>11;e=l+(d+f<<13)|0;g=(A-x<<2)+131072&-8192;i=J-C>>11;h=g+N(i,5793)|0;j=N(Q-M>>11,10033);k=h+j|0;F[b|0]=I[a+(e+k>>>18&1023)|0];F[b+5|0]=I[a+(k-e>>>18&1023)|0];e=f-(c+d|0)<<13;f=g+N(i,-11586)|0;F[b+1|0]=I[a+(e+f>>>18&1023)|0];F[b+4|0]=I[a+(f-e>>>18&1023)|0];c=l+(c-d<<13)|0;d=h-j|0;F[b+2|0]=I[a+(c+d>>>18&1023)|0];F[b+3|0]=I[a+(d-c>>>18&1023)|0]}function dca(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=xb-192|0;xb=D;e=a;while(1){a:{o=e;d=H[(k<<2)+b>>2]+c|0;f=I[d|0];g=I[d+13|0];l=f-g|0;i=I[d+3|0];j=I[d+10|0];y=i-j|0;r=I[d+2|0];s=I[d+11|0];m=r-s|0;t=I[d+1|0];u=I[d+12|0];h=t-u|0;z=m+h|0;v=I[d+5|0];w=I[d+8|0];n=v-w|0;x=I[d+4|0];A=I[d+9|0];q=x-A|0;B=n-q|0;C=I[d+6|0];p=I[d+7|0];d=C-p|0;H[e+28>>2]=l+y-((z+B|0)+d);v=v+w|0;t=t+u|0;u=v+t|0;i=i+j|0;j=x+A|0;r=r+s|0;s=j+r|0;w=C+p|0;g=f+g|0;x=w+g|0;H[e>>2]=((u+(i+s|0)|0)+x|0)-1792;f=i<<1;H[e+16>>2]=((N(s-f|0,-7223)+N(u-f|0,2578)|0)+N(x-f|0,10438)|0)+4096>>13;f=r-j|0;g=g-w|0;i=t-v|0;j=N(g+i|0,9058)+4096|0;H[e+24>>2]=(N(f,-11295)+j|0)+N(i,-14084)>>13;H[e+8>>2]=(j+N(f,5027)|0)+N(g,2237)>>13;f=y<<13;g=((N(B,11512)-f|0)+N(z,-1297)|0)+4096|0;p=(g+N(m,-19447)|0)+N(q,9175)|0;m=N(d+q|0,6164)+N(l+m|0,9810)|0;H[e+20>>2]=p+m>>13;p=(g+N(h,-3474)|0)+N(n,-25148)|0;h=N(n-d|0,3826)+N(l+h|0,10935)|0;H[e+12>>2]=p+h>>13;H[e+4>>2]=(m+((d+(f+h|0)|0)+N(d+l|0,-9232)|0)|0)+4096>>13;l=k-7|0;k=k+1|0;d=7;e=D;b:{switch(l|0){case 0:continue;case 6:break a;default:break b}}e=o+32|0;continue}break}while(1){c=H[e+32>>2];m=H[a+128>>2];h=c+m|0;o=H[e+96>>2];k=H[a+64>>2];n=o+k|0;l=h+n|0;q=H[e+64>>2];f=H[a+96>>2];g=q+f|0;b=g<<1;i=H[e>>2];j=H[a+160>>2];y=i+j|0;r=H[e+128>>2];s=H[a+32>>2];t=r+s|0;u=y+t|0;z=H[a+224>>2];v=H[a+192>>2];w=z+v|0;x=H[e+160>>2];A=H[a>>2];B=x+A|0;C=w+B|0;H[a+128>>2]=((N(l-b|0,-4717)+N(u-b|0,1684)|0)+N(C-b|0,6817)|0)- -8192>>14;H[a>>2]=N(C+(u+(g+l|0)|0)|0,5350)- -8192>>14;b=A-x|0;q=f-q|0;o=k-o|0;k=s-r|0;f=o+k|0;l=j-i|0;m=m-c|0;g=l-m|0;c=v-z|0;H[a+224>>2]=N(b+q-((f+g|0)+c)|0,5350)- -8192>>14;h=n-h|0;n=B-w|0;i=t-y|0;j=N(n+i|0,5915)- -8192|0;H[a+192>>2]=(N(h,-7376)+j|0)+N(i,-9198)>>14;H[a+64>>2]=(j+N(h,3283)|0)+N(n,1461)>>14;h=N(q,5350);n=((N(g,7518)-h|0)+N(f,-847)|0)- -8192|0;p=(n+N(o,-12700)|0)+N(m,5992)|0;o=N(c+m|0,4025)+N(b+o|0,6406)|0;H[a+160>>2]=p+o>>14;p=(n+N(k,-2269)|0)+N(l,-16423)|0;k=N(l-c|0,2499)+N(b+k|0,7141)|0;H[a+96>>2]=p+k>>14;H[a+32>>2]=(o+((h+(k+N(b,-6029)|0)|0)+N(c,-679)|0)|0)- -8192>>14;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b){continue}break}xb=D+192|0}function Tk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=H[((b<<2)+a|0)+88>>2];if(!g){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=54;zb[H[H[a>>2]>>2]](a)}e=H[a+384>>2];a:{if((e|0)<0){break a}h=e+1|0;j=h&3;d=H[a+380>>2];c=0;if(e>>>0>=3){h=h&-4;e=0;while(1){i=f;f=c<<2;f=J[(H[d+(f|12)>>2]<<1)+g>>1]>255?1:J[(H[d+(f|8)>>2]<<1)+g>>1]>255?1:J[(H[d+(f|4)>>2]<<1)+g>>1]>255?1:J[(H[f+d>>2]<<1)+g>>1]>255?1:i;c=c+4|0;e=e+4|0;if((h|0)!=(e|0)){continue}break}}if(!j){break a}while(1){f=J[(H[d+(c<<2)>>2]<<1)+g>>1]>255?1:f;c=c+1|0;k=k+1|0;if((k|0)!=(j|0)){continue}break}}if(!H[g+128>>2]){c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=255;d=H[c+4>>2]-1|0;H[c+4>>2]=d;b:{if(d){break b}if(zb[H[c+12>>2]](a)|0){break b}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=219;d=H[c+4>>2]-1|0;H[c+4>>2]=d;c:{if(d){break c}if(zb[H[c+12>>2]](a)|0){break c}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}d=H[a+384>>2];c=H[a+24>>2];e=H[c>>2];H[c>>2]=e+1;i=e;e=f?(d<<1)+5|0:d+4|0;F[i|0]=e>>>8;d=H[c+4>>2]-1|0;H[c+4>>2]=d;d:{if(d){break d}if(zb[H[c+12>>2]](a)|0){break d}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=e;d=H[c+4>>2]-1|0;H[c+4>>2]=d;e:{if(d){break e}if(zb[H[c+12>>2]](a)|0){break e}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=(f<<4)+b;b=H[c+4>>2]-1|0;H[c+4>>2]=b;f:{if(b){break f}if(zb[H[c+12>>2]](a)|0){break f}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}c=0;g:{if(H[a+384>>2]<0){break g}if(!f){while(1){b=c;e=I[(H[H[a+380>>2]+(c<<2)>>2]<<1)+g|0];c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=e;d=H[c+4>>2]-1|0;H[c+4>>2]=d;h:{if(d){break h}if(zb[H[c+12>>2]](a)|0){break h}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=b+1|0;if((b|0)>2]){continue}break g}}while(1){b=c;d=J[(H[H[a+380>>2]+(c<<2)>>2]<<1)+g>>1];c=H[a+24>>2];e=H[c>>2];H[c>>2]=e+1;F[e|0]=d>>>8;e=H[c+4>>2]-1|0;H[c+4>>2]=e;i:{if(e){break i}if(zb[H[c+12>>2]](a)|0){break i}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=H[a+24>>2];e=H[c>>2];H[c>>2]=e+1;F[e|0]=d;d=H[c+4>>2]-1|0;H[c+4>>2]=d;j:{if(d){break j}if(zb[H[c+12>>2]](a)|0){break j}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=b+1|0;if((b|0)>2]){continue}break}}H[g+128>>2]=1}return f}function Jd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(H[a+20>>2]==2){e=H[a+68>>2];m=c>>>0>e>>>0?e:c;h=m-b|0;if(h>>>0<2){break a}j=H[a+144>>2]|32;H[a+144>>2]=j;if(b>>>0>=m>>>0){break a}l=H[a+80>>2];d=-1;e=b;g=(e^-1)+m|0;if(g>>>0>=3){f=h&-4;while(1){k=N(e,20)+l|0;c=H[k+8>>2];d=c>>>0>d>>>0?d:c;c=H[k+28>>2];d=c>>>0>d>>>0?d:c;c=H[k+48>>2];d=c>>>0>d>>>0?d:c;c=H[k+68>>2];d=c>>>0>d>>>0?d:c;e=e+4|0;i=i+4|0;if((f|0)!=(i|0)){continue}break}}f=h&3;if(f){c=0;while(1){i=H[(N(e,20)+l|0)+8>>2];d=d>>>0>>0?d:i;e=e+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}if(h&1){c=N(b,20)+l|0;if(H[c+8>>2]!=(d|0)){H[a+144>>2]=j;H[c+4>>2]=H[c+4>>2]|3}b=b+1|0}if(!g){break a}while(1){c=N(b,20)+l|0;if(H[c+8>>2]!=(d|0)){j=j|32;H[a+144>>2]=j;H[c+4>>2]=H[c+4>>2]|3}c=N(b+1|0,20)+l|0;if(H[c+8>>2]!=(d|0)){j=j|32;H[a+144>>2]=j;H[c+4>>2]=H[c+4>>2]|3}b=b+2|0;if((m|0)!=(b|0)){continue}break}break a}h=H[a+80>>2];i=H[(h+N(b,20)|0)+8>>2];d=i;e=b+1|0;b:{if(e>>>0>=c>>>0){break b}k=(c-b|0)-2|0;g=(b^-1)+c&3;c:{if(!g){d=i;break c}d=i;while(1){f=H[(h+N(e,20)|0)+8>>2];d=d>>>0>>0?d:f;e=e+1|0;j=j+1|0;if((g|0)!=(j|0)){continue}break}}if(k>>>0<=2){break b}while(1){g=h+N(e,20)|0;f=H[g+8>>2];f=d>>>0>>0?d:f;d=H[g+28>>2];f=d>>>0>f>>>0?f:d;d=H[g+48>>2];f=d>>>0>f>>>0?f:d;d=H[g+68>>2];d=d>>>0>f>>>0?f:d;e=e+4|0;if((e|0)!=(c|0)){continue}break}}e=H[a+68>>2];d:{if(e>>>0<=c>>>0){break d}while(1){f=h+N(c,20)|0;if(H[f-12>>2]!=H[f+8>>2]){break d}c=c+1|0;if((e|0)!=(c|0)){continue}break}c=e}g=H[a+64>>2];f=b>>>0>g>>>0?g:b;while(1){e:{e=b;if(g>>>0>=e>>>0){e=f;break e}b=e-1|0;if((i|0)==H[(h+N(b,20)|0)+8>>2]){continue}}break}f:{if((e|0)!=(g|0)){break f}b=H[a+72>>2];if(!b){break f}f=h+N(g,20)|0;i=H[a+84>>2];while(1){b=b-1|0;g=i+N(b,20)|0;a=H[g+8>>2];if((a|0)!=H[f+8>>2]){break f}if((a|0)!=(d|0)){H[g+4>>2]=H[g+4>>2]&-4}H[g+8>>2]=d;if(b){continue}break}}if(c>>>0<=e>>>0){break a}a=e+1|0;if(c-e&1){b=h+N(e,20)|0;if(H[b+8>>2]!=(d|0)){H[b+4>>2]=H[b+4>>2]&-4}H[b+8>>2]=d;e=e+1|0}if((a|0)==(c|0)){break a}while(1){a=h+N(e,20)|0;if(H[a+8>>2]!=(d|0)){H[a+4>>2]=H[a+4>>2]&-4}H[a+8>>2]=d;a=h+N(e+1|0,20)|0;if(H[a+8>>2]!=(d|0)){H[a+4>>2]=H[a+4>>2]&-4}H[a+8>>2]=d;e=e+2|0;if((e|0)!=(c|0)){continue}break}}}function A7(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;d=xb-48|0;xb=d;i=H[a+584>>2];H[i+80>>2]=c;H[i+76>>2]=b;g=i- -64|0;a:{b:{c:{d:{while(1){e:{switch(Vh(g,1)+3|0){case 0:b=H[a+628>>2];c=H[a>>2];e=H[a+472>>2];H[d+40>>2]=H[i+88>>2];H[d+36>>2]=e;H[d+32>>2]=c;Pb(b,296496,274028,d+32|0);h=0;l=0;k=xb-16|0;b=-2;f:{if(!H[g+36>>2]|(!g|!H[g+32>>2])){break f}e=H[g+28>>2];if(!e|(g|0)!=H[e>>2]){break f}f=H[e+4>>2];if(f-16180>>>0>31){break f}c=H[g+4>>2];if(!c){b=-5;if(K[e+64>>2]<8){break f}}g:{if((f|0)==16211){f=H[e+108>>2];break g}H[e+4>>2]=16211;b=H[e+64>>2];f=H[e+60>>2]<<(b&7);H[e+60>>2]=f;h:{i:{j:{b=b&-8;if(b){b=b-8|0;c=(b>>>3|0)+1|0;m=c&3;if(b>>>0>=24){break j}b=0;break i}f=0;H[e+108>>2]=0;H[e+64>>2]=0;h=e+108|0;break h}n=c&1073741820;b=0;while(1){j=k+12|0;F[j+b|0]=f;F[(b|1)+j|0]=f>>>8;F[(b|2)+j|0]=f>>>16;c=b|3;F[j+c|0]=f>>>24;b=b+4|0;f=0;h=h+4|0;if((n|0)!=(h|0)){continue}break}}k:{if(!m){f=0;break k}while(1){c=b;F[(k+12|0)+b|0]=f;f=f>>>8|0;b=b+1|0;l=l+1|0;if((m|0)!=(l|0)){continue}break}}H[e+108>>2]=0;H[e+64>>2]=0;H[e+60>>2]=f;h=e+108|0;b=0;f=0;while(1){j=I[(k+12|0)+b|0];f=(j|0)==((f>>>0<2?0:255)|0)?f+1|0:j?0:4-f|0;if(b>>>0>=c>>>0){break h}b=b+1|0;if(f>>>0<4){continue}break}}H[h>>2]=f;c=H[g+4>>2]}h=H[g>>2];b=0;l:{if(!c|f>>>0>3){break l}while(1){k=I[b+h|0];f=(k|0)==((f>>>0<2?0:255)|0)?f+1|0:k?0:4-f|0;b=b+1|0;if(b>>>0>=c>>>0){break l}if(f>>>0<4){continue}break}}H[e+108>>2]=f;H[g>>2]=b+h;H[g+4>>2]=H[g+4>>2]-b;h=H[g+8>>2]+b|0;H[g+8>>2]=h;b=-3;if((f|0)!=4){break f}b=0;H[e+52>>2]=0;H[e+44>>2]=0;H[e+48>>2]=0;H[e+32>>2]=0;H[g+24>>2]=0;c=H[e+12>>2];if(c){H[g+48>>2]=c&1}H[e+60>>2]=0;H[e+64>>2]=0;H[e+36>>2]=0;H[e+24>>2]=32768;H[e+16>>2]=0;H[e+8>>2]=0;H[e+7108>>2]=1;H[e+7112>>2]=-1;c=e+1332|0;H[e+112>>2]=c;H[e+84>>2]=c;H[e+80>>2]=c;H[g+8>>2]=h;H[e+4>>2]=16191}if(b){break b}break;case 4:break d;case 3:break e;default:break c}}if(H[i+80>>2]){continue}break}b=1;break a}c=H[i+80>>2];b=1;if(!c){break a}b=H[a+628>>2];e=H[a>>2];a=H[a+472>>2];H[d+24>>2]=c;H[d+20>>2]=a;H[d+16>>2]=e;Pb(b,296496,274956,d+16|0);break b}b=H[a+628>>2];a=H[a>>2];H[d+4>>2]=H[i+88>>2];H[d>>2]=a;Pb(b,296496,272400,d)}b=0}xb=d+48|0;return b|0}function RX(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;j=xb-80|0;xb=j;e=rl(b,c);a:{if(e){break a}e=H[b+2740>>2];if(!(e&1)){e=Gy(b,H[d+52>>2],d+56|0,0);if(e){break a}e=H[b+2740>>2]}b:{if(e&2){break b}e=Gy(b,H[d+9856>>2],d+9860|0,1);if(e){break a}if(I[(H[H[d+36>>2]+8>>2]+(a<<1)|0)+1|0]&64){break b}a=H[b+1404>>2];if((a|0)<=0){break b}i=H[b+1412>>2];q=i+N(a,44)|0;o=H[d+9848>>2];while(1){a=Rb(K[d+40>>2]/40|0,o);c:{if(!H[d+10064>>2]){break c}e=(a|0)<32?a:32;a=0;g=0;m=0;while(1){h=N(a,36)+d|0;f=H[h+10100>>2];d:{if(!(f&1)){break d}k=f>>>3&1;n=(f&6)!=0;if(!(k|n^H[b+1416>>2]==F[i+13|0])){break d}p=h+10068|0;l=G[i>>1]-H[p>>2]|0;f=l>>31;l=Rb((f^l)-f|0,o);f=(l|0)<(e|0);e=f?l:e;g=f?p:g;m=f?k:m;if(k|(!(F[i+12|0]&1)|!l)){break d}f=G[i>>1];if(((f|0)>2]|0)==(n|0)){break d}n=f;f=h+10080|0;k=n-H[f>>2]|0;h=k>>31;h=Rb((h^k)-h|0,o);if((h|0)>=(e|0)){break d}m=0;e=h;g=f}a=a+1|0;if(a>>>0>2]){continue}break}if(!g){break c}H[i+20>>2]=g;if(!(m&255)){break c}F[i+12|0]=I[i+12|0]|8}i=i+44|0;if(q>>>0>i>>>0){continue}break}}a=H[b+2740>>2];e:{if(!(H[d+24>>2]|a&8)){mE(j+16|0,b,j+12|0,j+8|0);d=H[b+24>>2];if((d|0)<=0){break e}a=H[b+28>>2];d=a+N(d,40)|0;e=H[j+8>>2];g=H[j+12>>2];while(1){r=a,s=Rb(G[a+12>>1],g)+e|0,H[r+16>>2]=s;a=a+40|0;if(d>>>0>a>>>0){continue}break}break e}if(a&1){break e}jy(b,0);a=H[b+44>>2];if((a|0)>0){e=H[b+52>>2];g=e+N(a,44)|0;while(1){a=H[e+12>>2];if(a){d=e+36|0;f=H[a+8>>2];h=H[e+40>>2];while(1){a=H[d>>2];H[a+16>>2]=f;G[a>>1]=J[a>>1]|4;d=a+32|0;if((a|0)!=(h|0)){continue}break}}e=e+44|0;if(g>>>0>e>>>0){continue}break}}jr(b,0);Zq(b,0)}if(!(I[b+2740|0]&2)){jy(b,1);a=H[b+1392>>2];if((a|0)>0){e=H[b+1400>>2];g=e+N(a,44)|0;while(1){a=H[e+12>>2];if(a){d=e+36|0;f=H[a+8>>2];h=H[e+40>>2];while(1){a=H[d>>2];H[a+20>>2]=f;G[a>>1]=J[a>>1]|8;d=a+32|0;if((a|0)!=(h|0)){continue}break}}e=e+44|0;if(g>>>0>e>>>0){continue}break}}jr(b,1);Zq(b,1)}d=H[b+24>>2];if((d|0)<=0){e=0;break a}a=H[b+28>>2];b=a+N(d,40)|0;d=H[c+4>>2];g=H[c+8>>2];while(1){H[d>>2]=H[a+16>>2];H[d+4>>2]=H[a+20>>2];e=0;c=J[a>>1];F[g|0]=c&1?0:c&2?2:1;g=g+1|0;d=d+8|0;a=a+40|0;if(b>>>0>a>>>0){continue}break}}xb=j+80|0;return e|0}function Aaa(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;j=xb-32|0;xb=j;t=H[a+52>>2];n=H[a+12>>2];k=H[a>>2];e=pg(k);f=N(n?4:3,e);m=Tb(f);a:{if(!m){Pb(H[k+628>>2],H[k>>2],281887,0);break a}Id(m,0,f);H[j+16>>2]=j+28;Cc(k,322,j+16|0);H[j>>2]=j+24;Cc(k,323,j);b:{c:{d:{e:{f:{g:{h:{switch(J[a+28>>1]-1|0){case 0:case 4:f=J[a+30>>1];if(f>>>0>8){break d}h=1<>1];if(f>>>0>8){break d}h=1<>1];if(f>>>0>8){break d}h=1<>1];if(f>>>0>7){break d}g=1<>2]+c|0)|0;f=d-1|0;break b}g=0}r=c-H[j+28>>2]|0;x=1;f=0}u=1;i:{if(!d){break i}if(c){p=e+m|0;q=e+p|0;s=n?e+q|0:0;h=0;while(1){e=H[j+24>>2];i=H[a+76>>2];e=e-((i+h>>>0)%(e>>>0)|0)|0;o=e+h>>>0>d>>>0?d-h|0:e;v=(N(c,f)<<2)+b|0;e=0;while(1){j:{k:{l:{if(y=(Aj(k,m,H[a+80>>2]+e|0,i+h|0,0,0)|0)<0,z=0,A=H[a+4>>2],A?y:z){break l}if(y=(Aj(k,p,H[a+80>>2]+e|0,H[a+76>>2]+h|0,0,1)|0)<0,z=0,A=H[a+4>>2],A?y:z){break l}if(y=(Aj(k,q,H[a+80>>2]+e|0,H[a+76>>2]+h|0,0,2)|0)<0,z=0,A=H[a+4>>2],A?y:z){break l}if(!n){break k}if((Aj(k,s,H[a+80>>2]+e|0,H[a+76>>2]+h|0,0,3)|0)>=0|!H[a+4>>2]){break k}}u=0;break j}i=H[a+76>>2];l=H[j+24>>2];i=N(qg(k),(i+h>>>0)%(l>>>0)|0);l=H[j+28>>2];m:{if(l+e>>>0<=c>>>0){zb[t|0](a,(e<<2)+v|0,e,f,l,o,0,r,i+m|0,i+p|0,i+q|0,n?i+s|0:0);break m}w=c-e|0;l=l-w|0;zb[t|0](a,(e<<2)+v|0,e,f,w,o,l,l+r|0,i+m|0,i+p|0,i+q|0,n?i+s|0:0)}e=H[j+28>>2]+e|0;if(e>>>0>=c>>>0){break j}i=H[a+76>>2];continue}break}f=(x?o:0-o|0)+f|0;h=h+o|0;if(h>>>0>>0){continue}break}}if(!(g&2)){break i}i=0;while(1){a=(N(c,i)<<2)+b|0;e=(a+(c<<2)|0)-4|0;if(a>>>0>>0){while(1){g=H[a>>2];H[a>>2]=H[e>>2];H[e>>2]=g;a=a+4|0;e=e-4|0;if(a>>>0>>0){continue}break}}i=i+1|0;if((i|0)!=(d|0)){continue}break}}Kb(m)}xb=j+32|0;return u|0}function cQ(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;H[a+64>>2]=0;H[a+1140>>2]=b;j=a+1140|0;H[a+1344>>2]=j;k=a+112|0;H[a+1136>>2]=k;d=b+c|0;H[a+1148>>2]=d;H[a+1144>>2]=b;l=160;a:{if((c|0)<=0){break a}c=k;g=j;while(1){e=b+1|0;f=22;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{h=I[b|0];switch(h-1|0){case 0:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 13:case 14:case 20:case 21:case 29:case 30:break a;case 11:break j;case 12:break k;case 9:break f;case 10:break g;case 1:case 15:case 16:case 17:case 18:case 19:case 22:case 23:case 24:case 25:case 26:case 27:case 28:break h;default:break i}}f=2;break f}if(d>>>0<=e>>>0){break a}e=b+2|0;h=20;f=4;switch(I[b+1|0]-7|0){case 5:break e;case 0:break f;default:break a}}if((h|0)==255){break d}}if(h>>>0<32){break a}l:{if(h>>>0<=246){b=h-139|0;break l}f=b+2|0;if(f>>>0>d>>>0){break a}if(h>>>0<=250){b=(I[e|0]|h<<8)-63124|0}else{b=64148-(I[e|0]|h<<8)|0}e=f}b=i?b:b<<16;f=(i|0)!=0;break c}f=24}h=f;if(i){break a}}b=H[(h<<2)+31200>>2];if((b|0)>c-k>>2){return 161}c=c-(b<<2)|0;m:{n:{o:{p:{switch(h-2>>>1|0){case 1:H[a+64>>2]=1;H[a+32>>2]=H[c>>2]+H[a+32>>2];H[a+36>>2]=H[c+4>>2]+H[a+36>>2];H[a+40>>2]=H[c+8>>2];b=H[c+12>>2];break m;case 9:m=c,n=dc(H[c>>2],H[c+4>>2]),H[m>>2]=n;c=c+4|0;i=0;b=e;break b;case 10:b=G[c+2>>1];d=H[a+1376>>2];if(d){b=Me(b,d);if(!b){break a}b=H[b>>2]}if((b|0)<0|H[a+1364>>2]<=(b|0)|(g-j|0)>180){break a}H[g>>2]=e;e=b<<2;d=e+H[a+1368>>2]|0;b=H[d>>2];H[g+16>>2]=b;f=H[a+1372>>2];q:{if(f){d=H[e+f>>2]+b|0;break q}e=b;b=H[a+1360>>2];b=e+((b|0)>0?b:0)|0;H[g+16>>2]=b;d=H[d+4>>2]}H[g+12>>2]=b;H[g+20>>2]=d;if(!b){break a}g=g+12|0;break o;case 0:break n;case 11:break p;default:break a}}if(g>>>0<=j>>>0){break a}g=g-12|0;d=H[g+8>>2];b=H[g>>2]}H[a+1344>>2]=g;break b}H[a+64>>2]=1;H[a+32>>2]=H[c>>2]+H[a+32>>2];H[a+40>>2]=H[c+4>>2];b=0}H[a+44>>2]=b;l=0;break a}e=b+5|0;if(d>>>0>>0){break a}b=I[b+1|0]|I[b+2|0]<<8|(I[b+3|0]<<16|I[b+4|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(b-32001>>>0<=4294903294){f=1;if(!i){break c}break a}b=i?b:b<<16;f=(i|0)!=0}i=f;if((c-k|0)>1020){break a}H[c>>2]=b;c=c+4|0;b=e}H[a+1136>>2]=c;if(b>>>0>>0){continue}break}}return l|0}function nB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(b<.016939999535679817){break a}f=b+-.016939999535679817;if(c){e=gma(H[197066],H[197067],1284865837,1481765933)+1|0;d=yb;d=e?d:d+1|0;H[197066]=e;H[197067]=d;f=f*285.7142768952314+ +(d>>>1|0)*4.656612875245797e-10+-.5}else{f=f*285.7142768952314}b:{if(P(f)<2147483648){e=~~f;break b}e=-2147483648}if((e|0)>=163){break a}f=+L[(e<<3)+291616>>2];if(f>a){break a}f=a-f;if(c){c=gma(H[197066],H[197067],1284865837,1481765933)+1|0;d=yb;d=c?d:d+1|0;H[197066]=c;H[197067]=d;f=f*285.7142768952314+ +(d>>>1|0)*4.656612875245797e-10+-.5}else{f=f*285.7142768952314}if(P(f)<2147483648){c=~~f}else{c=-2147483648}if((c|0)>=G[(e<<3)+291620>>1]){break a}return c+G[(e<<3)+291622>>1]|0}h=xb-800|0;xb=h;if(!I[785920]){c=100;while(1){e=(c<<3)+h|0;d=e-16|0;H[d>>2]=0;H[d+4>>2]=1073741824;d=e-8|0;H[d>>2]=0;H[d+4>>2]=1073741824;d=e-24|0;H[d>>2]=0;H[d+4>>2]=1073741824;e=e-32|0;H[e>>2]=0;H[e+4>>2]=1073741824;c=c-5|0;e=(c<<3)+h|0;H[e>>2]=0;H[e+4>>2]=1073741824;if(c){continue}break}c=162;while(1){e=c;d=c<<3;c=G[d+291620>>1]-1|0;i=(e|0)==162?1:e?c:1;g=d+291622|0;k=(+(e|0)+.5)*.0035000001080334187+.016939999535679817+-.473684211;l=+L[d+291616>>2];while(1){f=qi(k,(+(c|0)+.5)*.0035000001080334187+l+-.210526316)*15.915494277358546+50;c:{if(P(f)<2147483648){d=~~f;break c}d=-2147483648}j=(d<<3)+h|0;f=P(f-(+(d|0)+.5));if(M[j>>3]>f){H[(d<<2)+785520>>2]=G[g>>1]+c;M[j>>3]=f}c=c-i|0;if((c|0)>=0){continue}break}c=e-1|0;if(e){continue}break}e=100;g=99;while(1){c=1;d=g;if(M[(d<<3)+h>>3]>1.5){while(1){d:{if(M[((c+d>>>0)%100<<3)+h>>3]<1.5){i=c;break d}i=50;g=c+1|0;if((g|0)==50){break d}i=g;if(M[((g+d>>>0)%100<<3)+h>>3]<1.5){break d}c=c+2|0;continue}break}j=e+99|0;c=1;g=-1;while(1){e:{if(M[((g+j>>>0)%100<<3)+h>>3]<1.5){e=c;break e}e=c+1|0;if((e|0)==50){g=-50;e=50;break e}g=c^-1;if(M[((j+g>>>0)%100<<3)+h>>3]<1.5){break e}g=-2-c|0;c=c+2|0;continue}break}H[(d<<2)+785520>>2]=H[(((e>>>0>i>>>0?d+i|0:g+j|0)|0)%100<<2)+785520>>2]}g=d-1|0;e=d;if(d){continue}break}F[785920]=1}a=qi(b+-.473684211,a+-.210526316)*15.915494277358546+50;f:{if(P(a)<2147483648){c=~~a;break f}c=-2147483648}xb=h+800|0;return H[(c<<2)+785520>>2]}function no(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;j=xb-16|0;xb=j;H[j+12>>2]=0;o=H[a+100>>2];k=H[a+736>>2];a:{b:{if(!k){e=Si(a,0);H[j+12>>2]=e;if(e){break b}k=H[a+736>>2]}l=H[k+12>>2];e=H[l>>2];d=H[k+4>>2];if(!d){d=Ub(o,4,0,e,0,j+12|0);H[k+4>>2]=d;if(H[j+12>>2]){break b}}e=b>>>0>e>>>0?e:b;c:{if(!e){break c}if(e-1>>>0>=3){i=e&-4;b=0;while(1){h=H[c>>2];if((h|0)!=H[d>>2]){H[d>>2]=h;f=1}h=H[c+4>>2];if((h|0)!=H[d+4>>2]){H[d+4>>2]=h;f=1}h=H[c+8>>2];if((h|0)!=H[d+8>>2]){H[d+8>>2]=h;f=1}h=H[c+12>>2];if((h|0)!=H[d+12>>2]){H[d+12>>2]=h;f=1}d=d+16|0;c=c+16|0;b=b+4|0;if((i|0)!=(b|0)){continue}break}}b=e&3;if(!b){break c}while(1){i=H[c>>2];if((i|0)!=H[d>>2]){H[d>>2]=i;f=1}d=d+4|0;c=c+4|0;g=g+1|0;if((b|0)!=(g|0)){continue}break}}i=H[l>>2];b=H[a+4>>2];d:{if(b&2147418112){if(e>>>0>=i>>>0){break d}c=H[(H[l+16>>2]+N(b>>>16|0,12)|0)-12>>2]+(e<<2)|0;h=i+(e^-1)|0;m=i-e&3;e:{if(!m){g=e;break e}b=0;g=e;while(1){n=H[c>>2];if((n|0)!=H[d>>2]){H[d>>2]=n;f=1}d=d+4|0;c=c+4|0;g=g+1|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}if(h>>>0<3){break d}while(1){b=H[c>>2];if((b|0)!=H[d>>2]){H[d>>2]=b;f=1}b=H[c+4>>2];if((b|0)!=H[d+4>>2]){H[d+4>>2]=b;f=1}b=H[c+8>>2];if((b|0)!=H[d+8>>2]){H[d+8>>2]=b;f=1}b=H[c+12>>2];if((b|0)!=H[d+12>>2]){H[d+12>>2]=b;f=1}d=d+16|0;c=c+16|0;g=g+4|0;if((i|0)!=(g|0)){continue}break}break d}if(e>>>0>=i>>>0){break d}h=i+(e^-1)|0;c=H[l+12>>2]+N(e,24)|0;m=i-e&3;f:{if(!m){g=e;break f}b=0;g=e;while(1){n=H[c+8>>2];if((n|0)!=H[d>>2]){H[d>>2]=n;f=1}d=d+4|0;c=c+24|0;g=g+1|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}if(h>>>0<3){break d}while(1){b=H[c+8>>2];if((b|0)!=H[d>>2]){H[d>>2]=b;f=1}b=H[c+32>>2];if((b|0)!=H[d+4>>2]){H[d+4>>2]=b;f=1}b=H[c+56>>2];if((b|0)!=H[d+8>>2]){H[d+8>>2]=b;f=1}b=H[c+80>>2];if((b|0)!=H[d+12>>2]){H[d+12>>2]=b;f=1}d=d+16|0;c=c+96|0;g=g+4|0;if((i|0)!=(g|0)){continue}break}}if(H[k+8>>2]){b=-1;if(!(f&255)){break a}}f=Ub(o,4,0,i,0,j+12|0);if(H[j+12>>2]){break b}b=H[a+736>>2];if(!I[b+24|0]){iu(a);b=H[a+736>>2]}hu(b,e,H[k+4>>2],f);b=Cl(a,H[l>>2],f,0);H[j+12>>2]=b;if(b){break b}H[a+8>>2]=H[a+8>>2]&-32769|((e|0)!=0)<<15}if(f){zb[H[o+8>>2]](o,f)}b=H[j+12>>2]}xb=j+16|0;return b|0}function fg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=xb-16|0;xb=h;e=H[a>>2];a:{if(e>>>0>=b>>>0){break a}b:{c:{d=I[e|0];switch(d-43|0){case 0:case 2:break c;default:break b}}e=e+1|0;if((e|0)==(b|0)){break a}m=(d|0)==45;d=I[e|0];switch(d-43|0){case 0:case 2:break a;default:break b}}d:{if((d|0)==46){d=e;break d}H[h+8>>2]=e;f=gg(h+8|0,b,10);e:{d=H[h+8>>2];if((e|0)!=(d|0)){if(I[d|0]!=35|b>>>0<=d>>>0){break e}i=d+1|0;H[h+8>>2]=i;f=gg(h+8|0,b,f);d=H[h+8>>2];if((i|0)!=(d|0)){break e}}f=0;break a}if((d|0)==(e|0)){f=0;break a}l=(f|0)>32767;i=l?f:f<<16}f:{if(!(I[d|0]!=46|b>>>0<=d>>>0)){g=1;d=d+1|0;if(d>>>0>=b>>>0){e=0;break f}e=0;g:{if(!i){while(1){h:{f=I[d|0];switch(f|0){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break h}}if(f<<24>>24<0|f-58>>>0<4294967286){break f}i:{if((g|0)>214748363|(e|0)>214748363){break i}e=F[f+31072|0]+N(e,10)|0;if((c|0)>0){c=c-1|0;break i}g=N(g,10)}d=d+1|0;if((d|0)!=(b|0)){continue}break g}}while(1){j:{f=I[d|0];switch(f|0){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break j}}if(f<<24>>24<0|f-58>>>0<4294967286){break f}k=F[f+31072|0]+N(e,10)|0;f=(g|0)<214748364&(e|0)<214748364;e=f?k:e;g=f?N(g,10):g;d=d+1|0;if((d|0)!=(b|0)){continue}break}}d=b;break f}e=0;g=1}k:{l:{m:{n:{k=d+1|0;if(!((I[d|0]|32)!=101|k>>>0>=b>>>0)){H[h+12>>2]=k;j=gg(h+12|0,b,10);o:{d=H[h+12>>2];if((k|0)!=(d|0)){if(I[d|0]!=35|b>>>0<=d>>>0){break o}f=d+1|0;H[h+12>>2]=f;j=gg(h+12|0,b,j);d=H[h+12>>2];if((f|0)!=(d|0)){break o}}f=0;break a}f=0;if((d|0)==(k|0)){break a}if((j|0)>1e3){break n}b=j;j=(j|0)<-1e3;c=(j?0:b)+c|0}H[a>>2]=d;f=0;if(!(e|i)){break a}b=2147483647;if(l){break k}if(j){break a}if((c|0)<=0){break m}while(1){if((i|0)>214748363){break k}p:{if((e|0)>=214748364){if((g|0)==1){break k}g=(g|0)/10|0;break p}e=N(e,10)}i=N(i,10);a=(c|0)>1;c=c-1|0;if(a){continue}break}break l}H[a>>2]=d;b=2147483647;if(e|i){break k}break a}if((c|0)>=0){break l}while(1){a=i;i=(i|0)/10|0;q:{if((g|0)<=214748363){g=N(g,10);break q}e=(e|0)/10|0}if(!(e?0:a-10>>>0>=4294967277)){a=c;c=c+1|0;if(a>>>0>c>>>0){break l}continue}break}break a}if(!e){b=i;break k}b=dc(e,g)+i|0}f=m?0-b|0:b}xb=h+16|0;return f}function sea(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;e=H[a+464>>2];if(H[a+280>>2]){c=H[e+52>>2];if(!c){if(!(zb[H[H[a+460>>2]+8>>2]](a)|0)){c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}if(H[a+336>>2]>0){while(1){g=f<<2;d=H[(g+a|0)+340>>2];a:{b:{if(H[a+224>>2]){if(H[a+408>>2]){break b}if(H[a+416>>2]){break a}}c=H[((H[d+20>>2]<<2)+e|0)+56>>2];F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+56|0]=0;F[c+57|0]=0;F[c+58|0]=0;F[c+59|0]=0;F[c+60|0]=0;F[c+61|0]=0;F[c+62|0]=0;F[c+63|0]=0;F[c+48|0]=0;F[c+49|0]=0;F[c+50|0]=0;F[c+51|0]=0;F[c+52|0]=0;F[c+53|0]=0;F[c+54|0]=0;F[c+55|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+42|0]=0;F[c+43|0]=0;F[c+44|0]=0;F[c+45|0]=0;F[c+46|0]=0;F[c+47|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;c=e+g|0;H[c+36>>2]=0;H[c+20>>2]=0;if(!H[a+224>>2]){if(H[a+432>>2]){break b}break a}if(!H[a+408>>2]){break a}}Nb(H[((H[d+24>>2]<<2)+e|0)+120>>2],0,256)}f=f+1|0;if((f|0)>2]){continue}break}}H[e+16>>2]=-16;H[e+8>>2]=0;H[e+12>>2]=0;c=H[a+280>>2]}H[e+52>>2]=c-1}c:{if(H[e+16>>2]==-1){break c}g=H[b>>2];i=H[a+428>>2];c=H[a+412>>2];b=c;d:{if((c|0)<=0){break d}b=c;while(1){if(J[g+(H[(b<<2)+i>>2]<<1)>>1]){break d}d=(b|0)>1;b=b-1|0;if(d){continue}break}b=0}d=H[a+408>>2];if((c|0)<(d|0)){break c}c=H[a+420>>2];j=-1<>2]+24>>2]<<2)+e|0;while(1){f=(H[m+120>>2]+N(d,3)|0)-3|0;if((b|0)<(d|0)){if(pd(a,f)){break c}}c=d;e:{f:{g:{while(1){h=g+(H[(c<<2)+i>>2]<<1)|0;if(J[h>>1]){if(!pd(a,f+2|0)){break e}d=G[h>>1];if((d|0)>=0){break g}d=d+j|0;break f}if(pd(a,f+1|0)){d=pd(a,l)?j:k;break f}f=f+3|0;d=H[a+412>>2]>(c|0);c=c+1|0;if(d){continue}break}b=H[a>>2];H[b+20>>2]=117;zb[H[b+4>>2]](a,-1);H[e+16>>2]=-1;return 1}d=d+k|0}G[h>>1]=d}d=c+1|0;if(H[a+412>>2]>(c|0)){continue}break}}return 1}function uo(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;m=H[a+88>>2];H[c>>2]=0;a:{if(!I[a+848|0]){H[a+828>>2]=0;H[a+832>>2]=0;H[a+836>>2]=0;H[a+840>>2]=0;H[a+844>>2]=0;H[a+848>>2]=0;k=8;e=J[a+152>>1];if(!e){break a}d=H[a+156>>2];e=d+(e<<4)|0;n=H[a+104>>2];while(1){b:{if(H[d>>2]==1111770656){i=H[d+12>>2];if(i){break b}}d=d+16|0;if(e>>>0>d>>>0){continue}break a}break}if(bc(n,H[d+8>>2])|i>>>0<8){break a}e=a+828|0;if(Ke(n,i,e)){break a}g=H[a+828>>2];H[a+832>>2]=g+i;c:{d:{if((I[g+1|0]|I[g|0]<<8)!=1){break d}h=I[g+4|0]|I[g+5|0]<<8|(I[g+6|0]<<16|I[g+7|0]<<24);d=h<<24|h<<8&16711680|(h>>>8&65280|h>>>24);if(d>>>0<8){break d}h=I[g+3|0];f=h|I[g+2|0]<<8;if(i>>>0>>0|f>>>0>d-8>>>2>>>0){break d}H[a+840>>2]=i-d;l=d+g|0;H[a+836>>2]=l;H[a+844>>2]=f;d=g+8|0;k=d+(f<<2)|0;e:{if(!f){break e}g=f-1|0;i=h&3;if(i){h=d;while(1){f=f-1|0;k=N(I[h+3|0]|I[h+2|0]<<8,10)+k|0;d=h+4|0;h=d;j=j+1|0;if((i|0)!=(j|0)){continue}break}}if(g>>>0<3){break e}while(1){k=(((N(I[d+3|0]|I[d+2|0]<<8,10)+k|0)+N(I[d+7|0]|I[d+6|0]<<8,10)|0)+N(I[d+11|0]|I[d+10|0]<<8,10)|0)+N(I[d+15|0]|I[d+14|0]<<8,10)|0;d=d+16|0;f=f-4|0;if(f){continue}break}}if(k>>>0<=l>>>0){break c}}nd(n,e);H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;return 8}F[a+848|0]=1}k=6;if(!b|!m){break a}j=H[a+844>>2];i=ac(b);if(!i|!j){break a}d=H[a+828>>2]+8|0;f=d+(j<<2)|0;e=J[m+14>>1];while(1){h=I[d+3|0]|I[d+2|0]<<8;if((e|0)==(I[d+1|0]|I[d|0]<<8)){if(!h){break a}while(1){f:{j=I[f+5|0];if(!(j&16)){break f}g=H[a+840>>2];e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(g>>>0<=e>>>0){break f}d=g-e|0;if(d>>>0<=i>>>0){break f}l=I[f+6|0]|I[f+7|0]<<8|(I[f+8|0]<<16|I[f+9|0]<<24);m=e;e=H[a+836>>2];if(gc(b,m+e|0,d)){break f}d=l<<8&16711680|l<<24|(l>>>8&65280|l>>>24);g:{switch(j&15){case 0:case 1:if(d>>>0>=g>>>0){break f}e=d+e|0;if(!Kg(e,0,g)){break f}H[c+4>>2]=e;H[c>>2]=1;return 0;case 2:H[c+4>>2]=d;H[c>>2]=2;return 0;case 3:break g;default:break f}}H[c+4>>2]=d;H[c>>2]=3;return 0}f=f+10|0;h=h-1|0;if(h){continue}break}break a}d=d+4|0;f=N(h,10)+f|0;j=j-1|0;if(j){continue}break}}return k|0}function yU(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=xb-16|0;xb=j;h=H[c>>2];H[j+12>>2]=0;d=8;e=a+5|0;a:{if(e>>>0>b>>>0){break a}f=I[a+3|0];g=I[a+4|0];a=H[c+92>>2];d=g+a|0;if(d>>>0>K[c+96>>2]){i=a;a=d+3&-4;o=c,p=Ub(h,36,i,a,H[c+100>>2],j+12|0),H[o+100>>2]=p;d=H[j+12>>2];if(d){break a}H[c+96>>2]=a}d=8;a=b;b=f&4;h=f&1;i=f&2;l=f&8;k=f&16;if(a>>>0>>2|0)+(i?h+9|0:h|8)+(l>>>3)+(k>>>4)|0,g)+e>>>0){break a}m=H[c+92>>2];b:{if(!g){break b}a=H[c+100>>2]+N(m,36)|0;if(!b){b=0;while(1){c:{if(h){d=e+2|0;e=I[e+1|0]|I[e|0]<<8;break c}d=e+1|0;e=I[e|0]}H[a>>2]=e;d:{if(i){e=d+2|0;d=I[d+1|0]|I[d|0]<<8;break d}e=d+1|0;d=I[d|0]}H[a+4>>2]=d;H[a+8>>2]=I[e|0];H[a+20>>2]=I[e+2|0]|I[e+1|0]<<8;e:{if(l){f=I[e+4|0]<<8|I[e+3|0]<<16;n=5;d=e+6|0;break e}f=I[e+3|0]<<8;n=4;d=e+5|0}H[a+24>>2]=I[e+n|0]|f;f:{if(k){e=d+2|0;d=I[d+1|0]|I[d|0]<<8;break f}e=d+1|0;d=I[d|0]}H[a+28>>2]=d;a=a+36|0;b=b+1|0;if((g|0)!=(b|0)){continue}break}break b}if(!l){f=0;while(1){g:{if(h){d=I[e+1|0]|I[e|0]<<8;b=e+2|0;break g}d=I[e|0];b=e+1|0}H[a>>2]=d;h:{if(i){e=I[b+1|0]|I[b|0]<<8;b=b+2|0;break h}e=I[b|0];b=b+1|0}H[a+4>>2]=e;H[a+8>>2]=I[b|0];H[a+20>>2]=I[b+3|0]|(I[b+2|0]<<8|I[b+1|0]<<16);H[a+24>>2]=I[b+5|0]|I[b+4|0]<<8;i:{if(k){e=b+8|0;b=I[b+7|0]|I[b+6|0]<<8;break i}e=b+7|0;b=I[b+6|0]}H[a+28>>2]=b;a=a+36|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}break b}b=0;if(!h){while(1){H[a>>2]=I[e|0];j:{if(i){d=e+3|0;e=I[e+2|0]|I[e+1|0]<<8;break j}d=e+2|0;e=I[e+1|0]}H[a+4>>2]=e;H[a+8>>2]=I[d|0];H[a+20>>2]=I[d+3|0]|(I[d+2|0]<<8|I[d+1|0]<<16);H[a+24>>2]=I[d+6|0]|(I[d+5|0]<<8|I[d+4|0]<<16);k:{if(k){e=d+9|0;d=I[d+8|0]|I[d+7|0]<<8;break k}e=d+8|0;d=I[d+7|0]}H[a+28>>2]=d;a=a+36|0;b=b+1|0;if((g|0)!=(b|0)){continue}break b}}while(1){H[a>>2]=I[e+1|0]|I[e|0]<<8;l:{if(i){d=e+4|0;e=I[e+3|0]|I[e+2|0]<<8;break l}d=e+3|0;e=I[e+2|0]}H[a+4>>2]=e;H[a+8>>2]=I[d|0];H[a+20>>2]=I[d+3|0]|(I[d+2|0]<<8|I[d+1|0]<<16);H[a+24>>2]=I[d+6|0]|(I[d+5|0]<<8|I[d+4|0]<<16);m:{if(k){e=d+9|0;d=I[d+8|0]|I[d+7|0]<<8;break m}e=d+8|0;d=I[d+7|0]}H[a+28>>2]=d;a=a+36|0;b=b+1|0;if((g|0)!=(b|0)){continue}break}}H[c+92>>2]=g+m;d=H[j+12>>2]}xb=j+16|0;return d|0}function Oz(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;j=H[(c?16:12)+b>>2];g=H[(c?8:4)+b>>2];b=N(c,9804)+a|0;d=b+9840|0;a:{if((g|0)==H[d>>2]&(j|0)==H[b+9844>>2]){break a}H[d>>2]=g;H[b+9844>>2]=j;d=H[a+10064>>2];b:{if(!d){break b}b=0;while(1){if(!(I[(N(b,36)+a|0)+10100|0]&16)){b=b+1|0;if((d|0)!=(b|0)){continue}break b}break}b=Rb(H[(N(b,36)+a|0)+10080>>2],g);d=H[H[a+36>>2]+12>>2];if(d){i=d;d=J[H[H[a+4>>2]+88>>2]+12>>1];d=d>>>0>5?i>>>0>=d>>>0?52:40:40}else{d=40}if((c|0)!=1){break b}d=b+d&-64;if((d|0)==(b|0)){break b}e=ic(g,d,b);d=H[a+40>>2];b=H[a+10064>>2];c:{if(!b){break c}m=b&1;d:{if((b|0)==1){b=0;break d}i=b&-2;k=a+10068|0;b=0;while(1){h=k+N(b,36)|0;l=H[h+24>>2];d=(d|0)>(l|0)?d:l;h=0-H[h+28>>2]|0;d=(d|0)>(h|0)?d:h;h=k+N(b|1,36)|0;l=H[h+24>>2];d=(d|0)>(l|0)?d:l;h=0-H[h+28>>2]|0;d=(d|0)>(h|0)?d:h;b=b+2|0;f=f+2|0;if((i|0)!=(f|0)){continue}break}}if(!m){break c}b=N(b,36)+a|0;f=H[b+10092>>2];d=(d|0)>(f|0)?d:f;b=0-H[b+10096>>2]|0;d=(b|0)<(d|0)?d:b}b=e-g|0;f=Rb(d,b);b=Rb(d,b);g=((f|0)<0?0-b|0:b)>>>0<128?e:g}b=N(c,9804)+a|0;H[b+48>>2]=j;H[b+44>>2]=g;e:{if(!c){H[a+8>>2]=g;b=a+16|0;break e}H[a+12>>2]=g;b=a+20|0}H[b>>2]=j;d=N(c,9804)+a|0;if(H[d+52>>2]){b=0;while(1){f=d+N(b,12)|0;e=Rb(H[f+56>>2],g);H[f- -64>>2]=e;H[f+60>>2]=e;b=b+1|0;if(b>>>0>2]){continue}break}}n=d,o=(Rb(H[d+252>>2],g)|0)<40,F[n+256|0]=o;if(!H[a+10064>>2]|(c|0)!=1){break a}d=0;while(1){b=N(d,36)+a|0;f=b+10076|0;c=b+10068|0;e=Rb(H[c>>2],g)+j|0;H[f>>2]=e;k=b+10072|0;H[k>>2]=e;e=b+10088|0;m=b+10080|0;i=Rb(H[m>>2],g)+j|0;H[e>>2]=i;H[b+10084>>2]=i;b=b+10100|0;H[b>>2]=H[b>>2]&-2;c=Rb(H[c>>2]-H[m>>2]|0,g);if(c+48>>>0<=96){i=f;f=H[k>>2]+32&-64;H[i>>2]=f;i=e;e=c>>31;e=(e^c)-e|0;e=e>>>0<32?0:e>>>0<48?32:64;H[i>>2]=f+((c|0)<0?e:0-e|0);H[b>>2]=H[b>>2]|1}d=d+1|0;c=H[a+10064>>2];if(d>>>0>>0){continue}break}if(!c){break a}f=0;while(1){b=N(f,36)+a|0;d=b+10100|0;j=H[d>>2];f:{if((j&5)!=5){break f}e=b+10076|0;k=b+10088|0;b=0;while(1){g=N(b,36)+a|0;if(!((H[g+10100>>2]&5)!=1|H[g+10076>>2]>H[k>>2]|H[g+10088>>2]>2])){H[d>>2]=j&-2;break f}b=b+1|0;if((c|0)!=(b|0)){continue}break}}f=f+1|0;if((c|0)!=(f|0)){continue}break}}}function Tda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;w=xb-384|0;xb=w;p=H[a+332>>2];a=H[b+84>>2];b=w;while(1){s=H[a+128>>2];l=G[c+64>>1];o=N(H[a+32>>2],G[c+16>>1]);j=N(H[a+224>>2],G[c+112>>1]);i=o-j|0;m=N(H[a+96>>2],G[c+48>>1]);k=N(H[a+160>>2],G[c+80>>1]);g=m-k|0;h=N(i+g|0,4433);n=N(H[a+64>>2],G[c+32>>1]);q=N(H[a+192>>2],G[c+96>>1]);t=n-q<<13;f=N(G[c>>1],H[a>>2])<<13|1024;u=t+f|0;i=h+N(i,6270)|0;H[b+320>>2]=u-i>>11;H[b+32>>2]=i+u>>11;i=f-t|0;h=h+N(g,-15137)|0;H[b+224>>2]=i-h>>11;H[b+128>>2]=h+i>>11;s=N(N(l,s),10033);l=s+f|0;i=q<<13;g=i+N(n,11190)|0;q=l-g|0;u=k+o|0;h=N(u+j|0,7053);t=N(m,-4433);v=h+((t+N(o,-5540)|0)+N(j,-16244)|0)|0;H[b+192>>2]=q-v>>11;H[b+160>>2]=q+v>>11;l=g+l|0;g=N(o,2295);o=N(m,10703);m=h+N(u,2139)|0;g=(g+o|0)+m|0;H[b+352>>2]=l-g>>11;H[b>>2]=g+l>>11;n=N(n,2998)-i|0;f=f-s|0;s=n+f|0;i=t+N(k,-12112)|0;k=N(j+k|0,-8565);m=m+(i+k|0)|0;H[b+288>>2]=s-m>>11;H[b+64>>2]=m+s>>11;f=f-n|0;j=k+(h+(N(j,12998)-o|0)|0)|0;H[b+256>>2]=f-j>>11;H[b+96>>2]=f+j>>11;b=b+4|0;a=a+4|0;c=c+2|0;r=r+1|0;if((r|0)!=8){continue}break}b=p+128|0;o=0;a=w;while(1){k=H[a+4>>2];f=H[a+20>>2];h=k+f|0;j=H[a+28>>2];m=N(h+j|0,7053);c=H[(o<<2)+d>>2]+e|0;l=m+N(h,2139)|0;n=H[a+12>>2];s=N(n,10703);i=l+(s+N(k,2295)|0)|0;g=H[a+24>>2];q=g<<13;p=H[a+8>>2];t=q+N(p,11190)|0;h=(H[a>>2]<<13)+131072|0;u=N(H[a+16>>2],10033);v=h+u|0;r=t+v|0;F[c|0]=I[b+(i+r>>>18&1023)|0];F[c+11|0]=I[b+(r-i>>>18&1023)|0];i=p-g<<13;g=i+h|0;r=k-j|0;x=n-f|0;y=N(r+x|0,4433);r=y+N(r,6270)|0;F[c+1|0]=I[b+(g+r>>>18&1023)|0];F[c+10|0]=I[b+(g-r>>>18&1023)|0];n=N(n,-4433);g=n+N(f,-12112)|0;f=N(f+j|0,-8565);l=(g+f|0)+l|0;p=N(p,2998)-q|0;g=h-u|0;q=p+g|0;F[c+2|0]=I[b+(l+q>>>18&1023)|0];F[c+9|0]=I[b+(q-l>>>18&1023)|0];f=f+(m+(N(j,12998)-s|0)|0)|0;p=g-p|0;F[c+3|0]=I[b+(f+p>>>18&1023)|0];F[c+8|0]=I[b+(p-f>>>18&1023)|0];f=N(x,-15137)+y|0;h=h-i|0;F[c+4|0]=I[b+(f+h>>>18&1023)|0];F[c+7|0]=I[b+(h-f>>>18&1023)|0];j=m+((n+N(k,-5540)|0)+N(j,-16244)|0)|0;k=v-t|0;F[c+5|0]=I[b+(j+k>>>18&1023)|0];F[c+6|0]=I[b+(k-j>>>18&1023)|0];a=a+32|0;o=o+1|0;if((o|0)!=12){continue}break}xb=w+384|0}function jl(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;i=xb-48|0;xb=i;xb=i+48|0;a:{if(!I[a+16|0]){j=H[a>>2];n=I[163632];g=H[a+4>>2];while(1){b:{c:{d:{e:{if(!(h&1)){if(c){break b}e=H[a+12>>2];l=e+1|0;if(l>>>0>g>>>0){break b}k=n;f:{g:{if(e>>>0>=g>>>0){break g}k=I[e+j|0];if(c){break g}H[a+12>>2]=l;c=0;break f}F[a+16|0]=1;H[a+12>>2]=g;c=1}e=(k&240)>>>4|0;break e}e=k&15}switch(e-13|0){case 0:break b;case 2:break d;default:break c}}e=i+16|0;H[i+12>>2]=e;g=0;l=0;k=H[i+12>>2];e=f+e|0;h:{if(k>>>0>=e>>>0){f=k;break h}f=k;while(1){c=I[f|0];if(c-9>>>0>=5&(c|0)!=32){break h}f=f+1|0;if((e|0)!=(f|0)){continue}break}f=e}i:{if((f|0)==(e|0)){f=e;break i}n=(e-f|0)+f|0;h=1;j:{while(1){c=F[h+107240|0];o=h<<1;p=I[o+107008|0];j=F[f|0];if((p|0)<=(j|0)){c=(j|0)>I[o+107009|0]?c:j-p|0}c=F[(I[h+107231|0]+107040|0)+c|0];k:{if(587>>>c&1){break k}l:{switch(F[c+107259|0]-1|0){case 0:q=1;break k;case 3:r=1;break k;case 1:b=b*10+ +(j-48|0);break k;case 2:if(!(d<=450359962737049)){break k}d=d*10+ +(j-48|0);m=m+1;break k;case 4:break l;default:break k}}h=(j+N(g,10)|0)-48|0;g=h>>>0<2048?h:g;l=h>>>0>2047|l}if((c|0)==1){break j}h=F[c+107249|0];f=f+1|0;if((e|0)!=(f|0)){continue}break}f=n}m:{n:{o:{p:{if(m!=0){s=b;if(m<4294967296&m>=0){c=~~m>>>0}else{c=0}b=c&256?1e256:1;b=c&128?b*1e128:b;b=c&64?b*1e64:b;b=c&32?b*1e32:b;b=c&16?b*1e16:b;b=c&8?b*1e8:b;b=c&4?b*1e4:b;b=c&2?b*100:b;b=s+d/(c&1?b*10:b);if(q){break p}break o}if(!q){break o}}b=-b;h=1;if(!(l&1)){break m}break n}if(!(l&1)){break m}h=0}if(b==0){break i}if(r){b=h?-2.2250738585072014e-308:2.2250738585072014e-308;break i}b=h?-1.7976931348623157e308:1.7976931348623157e308;break i}if(!g){break i}d=g&256?1e256:1;d=g&128?d*1e128:d;d=g&64?d*1e64:d;d=g&32?d*1e32:d;d=g&16?d*1e16:d;d=g&8?d*1e8:d;d=g&4?d*1e4:d;d=g&2?d*100:d;d=g&1?d*10:d;if(r){b=b/d;break i}b=d*b}M[i>>3]=b;c=0;q:{if((f|0)==(k|0)){break q}H[i+12>>2]=f;c=(f|0)==(e|0)}if(!c){break b}b=M[i>>3];break a}F[(i+16|0)+f|0]=I[e+106545|0];r:{if((e|0)!=12){e=f;break r}e=f+1|0;if((e|0)==32){break b}F[(i+16|0)+e|0]=45}f=e+1|0;h=h+1|0;if(e>>>0<31){continue}}break}F[a+16|0]=1}b=0}return b}function Paa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;k=(g|0)/4|0;a:{if(!f){break a}c=f-1|0;j=H[a+64>>2];if(e>>>0>=4){d=e-4|0;m=d&4;n=d>>>0<4;o=(e-(d&-4)|0)-5|0;while(1){l=c;a=e;f=b;c=i;if(!m){a=H[(I[i|0]<<2)+j>>2];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];f=b+16|0;c=i+1|0;a=d}g=d;if(!n){while(1){b=f;g=H[(I[c|0]<<2)+j>>2];H[b>>2]=H[g>>2];H[b+4>>2]=H[g+4>>2];H[b+8>>2]=H[g+8>>2];H[b+12>>2]=H[g+12>>2];g=c;i=H[(I[c+1|0]<<2)+j>>2];H[b+16>>2]=H[i>>2];H[b+20>>2]=H[i+4>>2];H[b+24>>2]=H[i+8>>2];H[b+28>>2]=H[i+12>>2];f=b+32|0;c=c+2|0;a=a-8|0;if(a>>>0>3){continue}break}i=g+1|0;g=a;b=b+16|0}b:{if(g){a=2;c=H[(I[c|0]<<2)+j>>2];c:{switch(o|0){case 2:H[f>>2]=H[c>>2];f=b+20|0;c=c+4|0;case 1:H[f>>2]=H[c>>2];f=f+4|0;c=c+4|0;break;case 0:break c;default:break b}}H[f>>2]=H[c>>2];f=f+4|0;break b}a=1}c=l-1|0;i=(i+k|0)+a|0;b=(h<<2)+f|0;if(l){continue}break}break a}d:{switch(e-1|0){case 1:if(f&1){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+8|0;f=f-2|0}else{f=c}if(!c){break a}while(1){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];a=h<<2;b=a+b|0;c=b+8|0;d=(i+k|0)+1|0;e=H[(I[d|0]<<2)+j>>2];H[c>>2]=H[e>>2];H[b+12>>2]=H[e+4>>2];b=(a+c|0)+8|0;i=(d+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a){continue}break};break a;case 2:if(f&1){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];H[b+8>>2]=H[a+8>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+12|0;f=f-2|0}else{f=c}if(!c){break a}while(1){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];H[b+8>>2]=H[a+8>>2];c=h<<2;a=c+b|0;d=a+12|0;e=(i+k|0)+1|0;b=H[(I[e|0]<<2)+j>>2];H[d>>2]=H[b>>2];H[a+16>>2]=H[b+4>>2];H[a+20>>2]=H[b+8>>2];b=(c+d|0)+12|0;i=(e+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a){continue}break};break a;case 0:break d;default:break a}}if(f&1){H[b>>2]=H[H[(I[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else{f=c}if(!c){break a}while(1){H[b>>2]=H[H[(I[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;H[b>>2]=H[H[(I[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a){continue}break}}}function Kaa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;k=(g|0)/4|0;a:{if(!f){break a}c=f-1|0;j=H[a+60>>2];if(e>>>0>=4){d=e-4|0;m=d&4;n=d>>>0<4;o=(e-(d&-4)|0)-5|0;while(1){l=c;a=e;f=b;c=i;if(!m){a=H[(I[i|0]<<2)+j>>2];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];f=b+16|0;c=i+1|0;a=d}g=d;if(!n){while(1){b=f;g=H[(I[c|0]<<2)+j>>2];H[b>>2]=H[g>>2];H[b+4>>2]=H[g+4>>2];H[b+8>>2]=H[g+8>>2];H[b+12>>2]=H[g+12>>2];g=c;i=H[(I[c+1|0]<<2)+j>>2];H[b+16>>2]=H[i>>2];H[b+20>>2]=H[i+4>>2];H[b+24>>2]=H[i+8>>2];H[b+28>>2]=H[i+12>>2];f=b+32|0;c=c+2|0;a=a-8|0;if(a>>>0>3){continue}break}i=g+1|0;g=a;b=b+16|0}b:{if(g){a=2;c=H[(I[c|0]<<2)+j>>2];c:{switch(o|0){case 2:H[f>>2]=H[c>>2];f=b+20|0;c=c+4|0;case 1:H[f>>2]=H[c>>2];f=f+4|0;c=c+4|0;break;case 0:break c;default:break b}}H[f>>2]=H[c>>2];f=f+4|0;break b}a=1}c=l-1|0;i=(i+k|0)+a|0;b=(h<<2)+f|0;if(l){continue}break}break a}d:{switch(e-1|0){case 1:if(f&1){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+8|0;f=f-2|0}else{f=c}if(!c){break a}while(1){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];a=h<<2;b=a+b|0;c=b+8|0;d=(i+k|0)+1|0;e=H[(I[d|0]<<2)+j>>2];H[c>>2]=H[e>>2];H[b+12>>2]=H[e+4>>2];b=(a+c|0)+8|0;i=(d+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a){continue}break};break a;case 2:if(f&1){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];H[b+8>>2]=H[a+8>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+12|0;f=f-2|0}else{f=c}if(!c){break a}while(1){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];H[b+8>>2]=H[a+8>>2];c=h<<2;a=c+b|0;d=a+12|0;e=(i+k|0)+1|0;b=H[(I[e|0]<<2)+j>>2];H[d>>2]=H[b>>2];H[a+16>>2]=H[b+4>>2];H[a+20>>2]=H[b+8>>2];b=(c+d|0)+12|0;i=(e+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a){continue}break};break a;case 0:break d;default:break a}}if(f&1){H[b>>2]=H[H[(I[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else{f=c}if(!c){break a}while(1){H[b>>2]=H[H[(I[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;H[b>>2]=H[H[(I[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a){continue}break}}}function $ba(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;F[a+224|0]=0;F[a+225|0]=0;F[a+226|0]=0;F[a+227|0]=0;F[a+228|0]=0;F[a+229|0]=0;F[a+230|0]=0;F[a+231|0]=0;F[a+248|0]=0;F[a+249|0]=0;F[a+250|0]=0;F[a+251|0]=0;F[a+252|0]=0;F[a+253|0]=0;F[a+254|0]=0;F[a+255|0]=0;F[a+240|0]=0;F[a+241|0]=0;F[a+242|0]=0;F[a+243|0]=0;F[a+244|0]=0;F[a+245|0]=0;F[a+246|0]=0;F[a+247|0]=0;F[a+232|0]=0;F[a+233|0]=0;F[a+234|0]=0;F[a+235|0]=0;F[a+236|0]=0;F[a+237|0]=0;F[a+238|0]=0;F[a+239|0]=0;f=a;while(1){d=H[(m<<2)+b>>2]+c|0;h=I[d|0];e=I[d+3|0];i=I[d+10|0];w=e-i|0;l=I[d+13|0];g=h-l|0;p=I[d+2|0];q=I[d+11|0];j=p-q|0;r=I[d+1|0];s=I[d+12|0];k=r-s|0;x=j+k|0;t=I[d+5|0];u=I[d+8|0];n=t-u|0;v=I[d+4|0];y=I[d+9|0];o=v-y|0;z=n-o|0;A=I[d+6|0];B=I[d+7|0];d=A-B|0;H[f+28>>2]=w+g-((x+z|0)+d)<<2;v=v+y|0;p=p+q|0;q=v+p|0;e=e+i|0;i=t+u|0;r=r+s|0;s=i+r|0;t=A+B|0;l=h+l|0;u=t+l|0;H[f>>2]=(((q+e|0)+s|0)+u<<2)-7168;h=e<<1;H[f+16>>2]=((N(q-h|0,-7223)+N(s-h|0,2578)|0)+N(u-h|0,10438)|0)+1024>>11;e=l-t|0;i=r-i|0;l=N(e+i|0,9058)+1024|0;h=p-v|0;H[f+24>>2]=(l+N(h,-11295)|0)+N(i,-14084)>>11;H[f+8>>2]=(l+N(h,5027)|0)+N(e,2237)>>11;h=w<<13;e=((N(z,11512)-h|0)+N(x,-1297)|0)+1024|0;i=(e+N(j,-19447)|0)+N(o,9175)|0;j=N(d+o|0,6164)+N(g+j|0,9810)|0;H[f+20>>2]=i+j>>11;e=(e+N(k,-3474)|0)+N(n,-25148)|0;k=N(n-d|0,3826)+N(g+k|0,10935)|0;H[f+12>>2]=e+k>>11;H[f+4>>2]=(j+((d+(h+k|0)|0)+N(d+g|0,-9232)|0)|0)+1024>>11;f=f+32|0;d=7;m=m+1|0;if((m|0)!=7){continue}break}while(1){j=H[a+128>>2];k=H[a+64>>2];f=j+k|0;n=H[a+192>>2];o=H[a>>2];g=n+o|0;e=f+g|0;c=H[a+96>>2];m=H[a+160>>2];h=H[a+32>>2];b=m+h|0;H[a>>2]=N(e+(c+b|0)|0,10700)+32768>>16;e=N(e-(c<<2)|0,3783);i=N(g-b|0,9434)+32768|0;g=N(g-f|0,9850);H[a+192>>2]=e+(i-g|0)>>16;f=N(b-f|0,3367);H[a+128>>2]=(f+i|0)+N(b-(c<<1)|0,-7566)>>16;H[a+64>>2]=(e+(f+g|0)|0)+32768>>16;b=k-j|0;c=o-n|0;f=N(b+c|0,6565)+32768|0;e=f+N(b,20017)|0;g=b;b=h-m|0;g=N(g+b|0,-14752);H[a+160>>2]=e+g>>16;e=g;g=N(c-b|0,1822);b=N(b+c|0,10009);H[a+96>>2]=((e+g|0)+b|0)+32768>>16;H[a+32>>2]=b+(f-g|0)>>16;b=d;d=d-1|0;a=a+4|0;if(b){continue}break}} +function Wu(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;l=g?a+1032|0:a;H[l>>2]=0;j=g?a+1548|0:a+516|0;H[j>>2]=0;if(b>>>0>=2){while(1){a=c+2|0;m=h&1;o=G[(m?c:a)>>1];k=G[(m?a:c)>>1]-o|0;a=m?l:j;h=a+4|0;g=m?n:i;a:{b:{if(!g){break b}a=(a+(g<<5)|0)+4|0;c:{while(1){p=H[h>>2];if((p|0)>(o|0)){break c}if((o|0)==(p|0)){a=H[h+4>>2];if((k|0)<0){if((a|0)<=(k|0)){break a}H[h+4>>2]=k;break a}if((a|0)>=(k|0)){break a}H[h+4>>2]=k;break a}h=h+32|0;g=g-1|0;if(g){continue}break}h=a;break b}$c(h+32|0,h,g<<5)}H[h+4>>2]=k;H[h>>2]=o;if(m){n=n+1|0;break a}i=i+1|0}c=c+4|0;h=1;b=b-2|0;if(b>>>0>1){continue}break}}H[l>>2]=n;H[j>>2]=i;if(d>>>0>=2){a=j+4|0;while(1){k=G[e+2>>1];c=G[e>>1]-k|0;h=a;d:{e:{if(!i){break e}b=((i<<5)+j|0)+4|0;g=i;f:{while(1){m=H[h>>2];if((m|0)>(k|0)){break f}if((k|0)==(m|0)){b=H[h+4>>2];if((c|0)<0){if((b|0)<=(c|0)){break d}H[h+4>>2]=c;break d}if((b|0)>=(c|0)){break d}H[h+4>>2]=c;break d}h=h+32|0;g=g-1|0;if(g){continue}break}h=b;break e}$c(h+32|0,h,g<<5)}H[h+4>>2]=c;H[h>>2]=k;i=i+1|0}e=e+4|0;d=d-2|0;if(d>>>0>1){continue}break}}H[l>>2]=n;H[j>>2]=i;g:{if(!n){break g}h=l+4|0;a=n;while(1){h:{i:{switch(a|0){case 1:b=H[h+4>>2];g=H[h>>2];break h;case 0:break g;default:break i}}g=H[h>>2];b=H[h+32>>2]-g|0;c=H[h+4>>2];if((b|0)>=(c|0)){b=c;break h}H[h+4>>2]=b}H[h+12>>2]=g;H[h+8>>2]=b+g;h=h+32|0;a=a-1|0;continue}}j:{if(!i){break j}h=j+4|0;a=i;while(1){k:{l:{switch(a|0){case 1:b=H[h+4>>2];g=H[h>>2];break k;case 0:break j;default:break l}}g=H[h>>2];b=g-H[h+32>>2]|0;c=H[h+4>>2];if((b|0)<=(c|0)){b=c;break k}H[h+4>>2]=b}H[h+8>>2]=g;H[h+12>>2]=b+g;h=h+32|0;a=a-1|0;continue}}if(n){H[l+16>>2]=H[l+16>>2]-f;h=l+4|0;a=H[l+12>>2];g=n-1|0;m:{if(!g){b=h;break m}while(1){b=H[h+44>>2];c=(b-a|0)/2|0;d=c+a|0;e=a+f|0;a=(c|0)<(f|0);H[h+8>>2]=a?d:e;H[h+44>>2]=a?d:b-f|0;a=H[h+40>>2];b=h+32|0;h=b;g=g-1|0;if(g){continue}break}}H[b+8>>2]=a+f}if(i){H[j+16>>2]=H[j+16>>2]-f;h=j+4|0;a=H[j+12>>2];g=i-1|0;n:{if(!g){b=h;break n}while(1){b=H[h+44>>2];c=(b-a|0)/2|0;d=c+a|0;e=a+f|0;a=(c|0)<(f|0);H[h+8>>2]=a?d:e;H[h+44>>2]=a?d:b-f|0;a=H[h+40>>2];b=h+32|0;h=b;g=g-1|0;if(g){continue}break}}H[b+8>>2]=a+f}}function Re(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{d:{e:{f:{d=I[a|0]|I[a+1|0]<<8;switch((d<<8|d>>>8)&65535){case 4:break b;case 6:break c;case 8:break d;case 2:break e;case 0:break f;default:break a}}return b>>>0>>0?(b|0)<0?163632:((b<<1)+a|0)+2|0:0}c=I[a+4|0]|I[a+5|0]<<8;e=(c<<8|c>>>8)&65535;g:{if(!c){c=I[a+2|0]|I[a+3|0]<<8;f=(c<<8|c>>>8)&65535;c=0;break g}d=I[a+2|0]|I[a+3|0]<<8;f=(d<<8|d>>>8)&65535;d=N(f,e-1|0)+a|0;g=d+12|0;c=0;if((I[g|0]|I[g+1|0]<<8)!=65535){break g}c=(I[d+14|0]|I[d+15|0]<<8)==65535?-1:0}d=0;c=c+e|0;h:{if((c|0)<=0){break h}g=a+12|0;c=c-1|0;e=0;while(1){a=c+e>>>1|0;d=g+N(a,f)|0;h=I[d+2|0]|I[d+3|0]<<8;i:{if(((h<<8|h>>>8)&65535)>>>0<=b>>>0){e=I[d|0]|I[d+1|0]<<8;if(((e<<8|e>>>8)&65535)>>>0>=b>>>0){break h}e=a+1|0;break i}c=a-1|0}if((c|0)>=(e|0)){continue}break}d=0}return d?d+4|0:0}c=I[a+2|0]|I[a+3|0]<<8;c=(c<<8|c>>>8)&65535;if(c>>>0>b>>>0){break a}b=b-c|0;d=I[a+4|0]|I[a+5|0]<<8;if(b>>>0>=((d<<8|d>>>8)&65535)>>>0){break a}e=(b|0)<0?163632:((b<<1)+a|0)+6|0;break a}c=I[a+4|0]|I[a+5|0]<<8;e=(c<<8|c>>>8)&65535;d=0;j:{if(!c){c=I[a+2|0]|I[a+3|0]<<8;f=(c<<8|c>>>8)&65535;c=0;break j}c=I[a+2|0]|I[a+3|0]<<8;f=(c<<8|c>>>8)&65535;c=N(f,e-1|0)+a|0;c=(I[c+12|0]|I[c+13|0]<<8)==65535?-1:0}c=c+e|0;k:{if((c|0)<=0){break k}g=a+12|0;c=c-1|0;e=0;while(1){a=c+e>>>1|0;d=g+N(a,f)|0;h=I[d|0]|I[d+1|0]<<8;h=(h<<8|h>>>8)&65535;l:{if(h>>>0>b>>>0){c=a-1|0;break l}if((b|0)==(h|0)){break k}e=a+1|0}if((c|0)>=(e|0)){continue}break}d=0}return d?d+2|0:0}c=I[a+4|0]|I[a+5|0]<<8;d=(c<<8|c>>>8)&65535;m:{if(!c){c=I[a+2|0]|I[a+3|0]<<8;f=(c<<8|c>>>8)&65535;c=0;break m}f=I[a+2|0]|I[a+3|0]<<8;f=(f<<8|f>>>8)&65535;g=N(f,d-1|0)+a|0;h=g+12|0;c=0;if((I[h|0]|I[h+1|0]<<8)!=65535){break m}c=(I[g+14|0]|I[g+15|0]<<8)==65535?-1:0}c=c+d|0;if((c|0)<=0){break a}h=a+12|0;c=c-1|0;while(1){g=c+e>>>1|0;d=h+N(g,f)|0;i=I[d+2|0]|I[d+3|0]<<8;i=(i<<8|i>>>8)&65535;n:{if(i>>>0<=b>>>0){e=I[d|0]|I[d+1|0]<<8;if(((e<<8|e>>>8)&65535)>>>0>>0){e=g+1|0;break n}c=a;a=I[d+4|0]|I[d+5|0]<<8;c=c+((a<<8|a>>>8)&65535)|0;a=b-i|0;return(a|0)<0?163632:c+(a<<1)|0}c=g-1|0}if((c|0)>=(e|0)){continue}break}return 0}return e}function XD(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;a:{if(!H[a+5792>>2]){e=H[a+5820>>2];break a}l=a+5817|0;while(1){m=d+1|0;h=I[H[a+5784>>2]+d|0];n=a;k=J[H[a+5796>>2]+(d<<1)>>1];b:{c:{if(!k){d=(h<<2)+b|0;f=J[d+2>>1];g=J[d>>1];d=H[a+5820>>2];e=J[a+5816>>1]|g<>1]=e;if((d|0)>(16-f|0)){d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=e;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[l|0];d=H[a+5820>>2];G[a+5816>>1]=g>>>16-d;e=(d+f|0)-16|0;break c}e=d+f|0;break c}f=I[h+242896|0];j=f<<2;d=j+b|0;i=J[d+1030>>1];g=J[d+1028>>1];d=H[a+5820>>2];e=J[a+5816>>1]|g<>1]=e;d:{if((d|0)>(16-i|0)){d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=e;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[l|0];d=H[a+5820>>2];e=g>>>16-d|0;G[a+5816>>1]=e;d=(d+i|0)-16|0;break d}d=d+i|0}H[a+5820>>2]=d;if(f-28>>>0>=4294967276){f=h-H[j+244864>>2]|0;g=H[j+244496>>2];e:{if((16-g|0)<(d|0)){e=f<>1]=e;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=e;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[l|0];d=H[a+5820>>2];e=(f&65535)>>>16-d|0;G[a+5816>>1]=e;d=(d+g|0)-16|0;break e}e=f<>1]=e;d=d+g|0}H[a+5820>>2]=d}i=k-1|0;f=I[(i>>>0<256?i:(i>>>7|0)+256|0)+242384|0];k=f<<2;g=k+c|0;j=J[g+2>>1];h=e;e=J[g>>1];h=h|e<>1]=h;f:{if((16-j|0)<(d|0)){d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=h;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[l|0];d=H[a+5820>>2];h=e>>>16-d|0;G[a+5816>>1]=h;e=(d+j|0)-16|0;break f}e=d+j|0}H[a+5820>>2]=e;if(f>>>0<4){break b}f=i-H[k+244992>>2]|0;g=H[k+244624>>2];if((16-g|0)<(e|0)){e=f<>1]=e;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=e;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[l|0];d=H[a+5820>>2];G[a+5816>>1]=(f&65535)>>>16-d;e=(d+g|0)-16|0;break c}G[a+5816>>1]=f<>2]=e}d=m;if(d>>>0>2]){continue}break}}m=J[b+1026>>1];d=J[b+1024>>1];c=J[a+5816>>1]|d<>1]=c;if((16-m|0)<(e|0)){b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=c;b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5817|0];b=H[a+5820>>2];G[a+5816>>1]=d>>>16-b;H[a+5820>>2]=(b+m|0)-16;return}H[a+5820>>2]=e+m}function nl(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;H[a>>2]=0;H[a+4>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;F[a+5|0]=0;F[a+6|0]=0;F[a+7|0]=0;F[a+8|0]=0;F[a+9|0]=0;F[a+10|0]=0;F[a+11|0]=0;F[a+12|0]=0;H[a+24>>2]=0;c=_r(b+52|0);d=I[c+50|0]|I[c+51|0]<<8;if(!(((d<<8|d>>>8)&65535)>>>0>1|(I[c+52|0]|I[c+53|0]<<8))){F[a+12|0]=!d;k=a,l=RF(b+104|0),H[k+20>>2]=l;kd(b);c=dd(b,1735162214);if(!(!c|!H[c>>2])){H[c>>2]=H[c>>2]+1}d=H[c+12>>2];Wb(c);if(H[c+4>>2]?d:0){H[c+4>>2]=0}H[a+24>>2]=c;d=xb-48|0;xb=d;i=b+128|0;f=H[i>>2];a:{if(f){break a}j=i-80|0;while(1){c=H[j>>2];if(!c){f=163632;break a}b:{c:{f=oc(1,4);if(f){H[d+8>>2]=0;H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;F[d+24|0]=0;H[d+28>>2]=0;H[d+32>>2]=0;H[d>>2]=0;H[d+4>>2]=0;g=kd(c);F[d+40|0]=1;H[d+36>>2]=g;h=0;c=dd(c,1735811442);if(!(!c|!H[c>>2])){H[c>>2]=H[c>>2]+1}g=c;H[d+32>>2]=c;d:{e:{f:{g:{h:{while(1){F[d+24|0]=h;h=H[g+12>>2];H[d+4>>2]=h;e=H[g+16>>2];H[d+8>>2]=e+h;H[d+28>>2]=0;if(e>>>0<=67108862){e=e<<6;e=e>>>0>16384?e:16384;e=e>>>0<1073741823?e:1073741823}else{e=1073741823}H[d+12>>2]=e;H[d+20>>2]=0;H[d>>2]=0;if(!h){Wb(g);H[d+32>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;break d}e=QF(h,d);g=H[d+28>>2];i:{if(e){if(!g){break i}H[d+28>>2]=0;g=QF(h,d);h=H[d+28>>2];Wb(H[d+32>>2]);H[d+32>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;if(!g){break e}if(!h){break h}break e}if(I[d+24|0]|!g){break g}e=ve(c);H[d+4>>2]=e;H[d+8>>2]=e+H[c+16>>2];g=H[d+32>>2];h=1;if(e){continue}break f}break}Wb(H[d+32>>2]);H[d+32>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0}if(H[c+4>>2]){H[c+4>>2]=0}break d}g=H[d+32>>2]}Wb(g);H[d+32>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0}Wb(c);c=163632}H[f>>2]=c;c=H[i>>2];H[i>>2]=c?c:f;if(!c){break a}c=H[f>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(f);break b}f=163632;c=H[i>>2];H[i>>2]=c?c:163632;if(c){break b}break a}ha(0)|0;_()|0;Zb();X()}f=H[i>>2];if(!f){continue}break}}xb=d+48|0;H[a>>2]=f;k=a,l=mG(b+68|0),H[k+4>>2]=l;k=a,l=fs(b+96|0),H[k+8>>2]=l;c=H[a+20>>2];c=H[(c?c:163632)+16>>2]>>>(I[a+12|0]?1:2)|0;c=(c>>>0>1?c:1)-1|0;H[a+16>>2]=c;f=H[b+32>>2];if((f|0)==-1){f=De(b);c=H[a+16>>2]}H[a+16>>2]=c>>>0>>0?c:f}return a|0}function Pba(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;a=Nb(a,0,256);d=H[b>>2]+c|0;e=I[d+2|0];f=I[d|0];g=e+f|0;d=I[d+1|0];H[a>>2]=(g+d<<3)-3072;H[a+4>>2]=N(f-e|0,10033)+512>>10;H[a+8>>2]=N(g-(d<<1)|0,5793)+512>>10;d=H[b+4>>2]+c|0;e=I[d+2|0];f=I[d|0];g=e+f|0;d=I[d+1|0];H[a+32>>2]=(g+d<<3)-3072;H[a+36>>2]=N(f-e|0,10033)+512>>10;H[a+40>>2]=N(g-(d<<1)|0,5793)+512>>10;d=H[b+8>>2]+c|0;e=I[d+2|0];f=I[d|0];g=e+f|0;d=I[d+1|0];H[a+64>>2]=(g+d<<3)-3072;H[a+68>>2]=N(f-e|0,10033)+512>>10;H[a+72>>2]=N(g-(d<<1)|0,5793)+512>>10;d=H[b+12>>2]+c|0;e=I[d+2|0];f=I[d|0];g=e+f|0;h=I[d+1|0];d=(g+h<<3)-3072|0;H[a+96>>2]=d;H[a+100>>2]=N(f-e|0,10033)+512>>10;H[a+104>>2]=N(g-(h<<1)|0,5793)+512>>10;e=H[b+16>>2]+c|0;f=I[e+2|0];g=I[e|0];h=f+g|0;i=I[e+1|0];e=(h+i<<3)-3072|0;H[a+128>>2]=e;f=N(g-f|0,10033)+512>>10;H[a+132>>2]=f;H[a+136>>2]=N(h-(i<<1)|0,5793)+512>>10;b=H[b+20>>2]+c|0;g=I[b+2|0];h=I[b|0];c=g+h|0;b=I[b+1|0];H[a+168>>2]=N(c-(b<<1)|0,5793)+512>>10;c=(b+c<<3)-3072|0;i=H[a>>2];b=c+i|0;k=H[a+64>>2];j=d+k|0;H[a+64>>2]=N(b-j|0,17837)+16384>>15;b=b+j|0;j=H[a+32>>2];l=j+e|0;H[a+128>>2]=N(b-(l<<1)|0,10298)+16384>>15;H[a>>2]=N(b+l|0,14564)+16384>>15;b=k-d|0;c=i-c|0;d=N(b+c|0,5331)+16384|0;e=j-e|0;H[a+160>>2]=d+N(b-e|0,14564)>>15;H[a+96>>2]=N(c-(b+e|0)|0,14564)+16384>>15;H[a+32>>2]=d+N(c+e|0,14564)>>15;c=N(h-g|0,10033)+512>>10;d=H[a+4>>2];b=c+d|0;e=H[a+100>>2];g=H[a+68>>2];h=e+g|0;H[a+68>>2]=N(b-h|0,17837)+16384>>15;b=b+h|0;h=H[a+36>>2];i=h+f|0;H[a+132>>2]=N(b-(i<<1)|0,10298)+16384>>15;H[a+4>>2]=N(b+i|0,14564)+16384>>15;b=g-e|0;c=d-c|0;d=N(b+c|0,5331)+16384|0;e=h-f|0;H[a+36>>2]=d+N(e+c|0,14564)>>15;H[a+164>>2]=d+N(b-e|0,14564)>>15;H[a+100>>2]=N(c-(b+e|0)|0,14564)+16384>>15;b=H[a+136>>2];c=H[a+40>>2];e=H[a+168>>2];f=H[a+8>>2];d=e+f|0;g=H[a+104>>2];h=H[a+72>>2];i=g+h|0;H[a+72>>2]=N(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;H[a+136>>2]=N(d-(i<<1)|0,10298)+16384>>15;H[a+8>>2]=N(d+i|0,14564)+16384>>15;d=h-g|0;e=f-e|0;f=N(d+e|0,5331)+16384|0;b=c-b|0;H[a+168>>2]=f+N(d-b|0,14564)>>15;H[a+104>>2]=N(e-(b+d|0)|0,14564)+16384>>15;H[a+40>>2]=f+N(b+e|0,14564)>>15}function bD(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,u=0,v=0;r=xb-1024|0;xb=r;t=I[a+8|0];if(t){k=I[a+9|0];g=Nb(r,0,1024);h=H[a+4>>2];a:{if(!h){break a}d=H[a>>2];if(h-1>>>0>=3){m=h&-4;while(1){f=d+k|0;j=g+(I[f|0]<<2)|0;H[j>>2]=H[j>>2]+1;j=g+(I[f+8|0]<<2)|0;H[j>>2]=H[j>>2]+1;j=g+(I[f+16|0]<<2)|0;H[j>>2]=H[j>>2]+1;f=g+(I[f+24|0]<<2)|0;H[f>>2]=H[f>>2]+1;d=d+32|0;i=i+4|0;if((m|0)!=(i|0)){continue}break}}f=h&3;if(!f){break a}while(1){i=g+(I[d+k|0]<<2)|0;H[i>>2]=H[i>>2]+1;d=d+8|0;l=l+1|0;if((f|0)!=(l|0)){continue}break}}i=h>>>1|0;d=0;while(1){f=e;e=f+1|0;d=H[g+(f<<2)>>2]+d|0;if(i>>>0>d>>>0){continue}break}g=H[a>>2];e=g+(h<<3)|0;b:{if(!h){d=g;g=e;break b}d=f-((d|0)==(h|0))|0;while(1){c:{if(d>>>0>=I[g+k|0]){g=g+8|0;break c}f=H[g>>2];h=H[g+4>>2];e=e-8|0;i=H[e+4>>2];H[g>>2]=H[e>>2];H[g+4>>2]=i;H[e>>2]=f;H[e+4>>2]=h}if((e|0)!=(g|0)){continue}break}d=H[a>>2]}H[b>>2]=d;d=H[a>>2];e=g-d>>>3|0;H[b+4>>2]=e;g=d+(e<<3)|0;H[c>>2]=g;s=H[a+4>>2]-e|0;H[c+4>>2]=s;d=0;e=0;u=H[b+4>>2];if(u>>>0>=2){d=H[b>>2];f=I[d|0];l=f;k=f;h=I[d+1|0];i=h;m=h;p=1;e=I[d+3|0];j=e;n=e;q=I[d+2|0];a=q;o=a;while(1){e=e&255;j=(e|0)<(j|0)?j:e;n=(e|0)>(n|0)?n:e;a=(a|0)>(q|0)?a:q;o=(o|0)<(q|0)?o:q;m=(h|0)<(m|0)?m:h;i=(h|0)>(i|0)?i:h;k=(f|0)<(k|0)?k:f;l=(f|0)>(l|0)?l:f;p=p+1|0;if((p|0)!=(u|0)){e=I[d+11|0];q=I[d+10|0];h=I[d+9|0];f=I[d+8|0];d=d+8|0;continue}break}e=k-l|0;f=m-i|0;h=(e|0)>(f|0)?e:f;a=a-o|0;i=(a|0)<(h|0)?h:a;k=j-n|0;d=(i|0)>(k|0)?i:k;e=(i|0)<(k|0)?3:(a|0)>(h|0)?2:(e|0)<(f|0)}F[b+8|0]=d;F[b+9|0]=e;d=0;if(s>>>0>=2){p=I[g|0];e=p;l=e;f=I[g+1|0];k=f;i=f;o=1;d=I[g+3|0];m=d;j=d;h=I[g+2|0];n=h;a=h;while(1){b=d&255;m=(b|0)<(m|0)?m:b;j=(b|0)>(j|0)?j:b;n=(h|0)<(n|0)?n:h;a=(a|0)<(h|0)?a:h;i=(f|0)<(i|0)?i:f;k=(f|0)>(k|0)?k:f;b=p&255;l=(b|0)<(l|0)?l:b;e=(b|0)>(e|0)?e:b;o=o+1|0;if((o|0)!=(s|0)){d=I[g+11|0];h=I[g+10|0];f=I[g+9|0];p=I[g+8|0];g=g+8|0;continue}break}b=l-e|0;e=i-k|0;d=(b|0)>(e|0)?b:e;a=n-a|0;g=(a|0)<(d|0)?d:a;f=m-j|0;v=(g|0)>(f|0)?g:f;d=(g|0)<(f|0)?3:(a|0)>(d|0)?2:(b|0)<(e|0)}F[c+8|0]=v;F[c+9|0]=d}xb=r+1024|0;return(t|0)!=0|0}function uca(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;if(H[a+76>>2]>0){u=H[a+284>>2]-1|0;q=H[a+400>>2];h=H[a+84>>2];while(1){d=s<<2;f=H[h+12>>2];p=zb[H[H[a+4>>2]+32>>2]](a,H[(d+q|0)- -64>>2],N(f,H[q+8>>2]),f,1)|0;if(K[q+8>>2]>>0){f=H[h+12>>2]}else{f=H[h+12>>2];c=K[h+32>>2]%(f>>>0)|0;f=c?c:f}j=H[h+28>>2];k=H[h+8>>2];c=(j>>>0)%(k>>>0)|0;l=(c|0)>0?k-c|0:c;a:{if((f|0)<=0){break a}n=H[(d+H[a+416>>2]|0)+4>>2];m=b+d|0;if((l|0)<=0){c=0;if((f|0)!=1){g=f&-2;d=0;while(1){zb[n|0](a,h,H[m>>2],H[(c<<2)+p>>2],N(H[h+40>>2],c),0,j);i=c|1;zb[n|0](a,h,H[m>>2],H[(i<<2)+p>>2],N(i,H[h+40>>2]),0,j);c=c+2|0;d=d+2|0;if((g|0)!=(d|0)){continue}break}}if(!(f&1)){break a}zb[n|0](a,h,H[m>>2],H[(c<<2)+p>>2],N(H[h+40>>2],c),0,j);break a}t=l<<7;v=l&-8;r=l&7;w=l-1|0;i=0;while(1){c=H[(i<<2)+p>>2];zb[n|0](a,h,H[m>>2],c,N(H[h+40>>2],i),0,j);c=c+(j<<7)|0;Mc(c,t);g=J[c-128>>1];d=0;o=0;if(w>>>0>=7){while(1){e=d<<7;G[e+c>>1]=g;G[c+(e|128)>>1]=g;G[c+(e|256)>>1]=g;G[c+(e|384)>>1]=g;G[c+(e|512)>>1]=g;G[c+(e|640)>>1]=g;G[c+(e|768)>>1]=g;G[c+(e|896)>>1]=g;d=d+8|0;o=o+8|0;if((v|0)!=(o|0)){continue}break}}e=0;if(r){while(1){G[c+(d<<7)>>1]=g;d=d+1|0;e=e+1|0;if((r|0)!=(e|0)){continue}break}}i=i+1|0;if((i|0)!=(f|0)){continue}break}}b:{if(H[q+8>>2]!=(u|0)|H[h+12>>2]<=(f|0)){break b}c=j+l|0;d=(c>>>0)/(k>>>0)|0;j=c<<7;if(c>>>0>=k>>>0){l=k-1|0;r=d>>>0>1?d:1;t=k&-8;n=k&7;while(1){c=(f<<2)+p|0;i=H[c-4>>2];c=H[c>>2];Mc(c,j);m=0;if((k|0)>0){while(1){g=J[(l<<7)+i>>1];d=0;o=0;if(l>>>0>=7){while(1){e=d<<7;G[e+c>>1]=g;G[(e|128)+c>>1]=g;G[(e|256)+c>>1]=g;G[(e|384)+c>>1]=g;G[(e|512)+c>>1]=g;G[(e|640)+c>>1]=g;G[(e|768)+c>>1]=g;G[(e|896)+c>>1]=g;d=d+8|0;o=o+8|0;if((t|0)!=(o|0)){continue}break}}e=0;if(n){while(1){G[(d<<7)+c>>1]=g;d=d+1|0;e=e+1|0;if((n|0)!=(e|0)){continue}break}}d=k<<7;i=d+i|0;c=c+d|0;m=m+1|0;if((r|0)!=(m|0)){continue}break}}f=f+1|0;if((f|0)>2]){continue}break}break b}while(1){Mc(H[(f<<2)+p>>2],j);f=f+1|0;if((f|0)>2]){continue}break}}h=h+88|0;s=s+1|0;if((s|0)>2]){continue}break}}return HC(a,b)|0}function cv(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;if(!(I[a+16|0]&8)){f=N(c,204)+b|0;n=H[f+200>>2];g=H[f+204>>2]+Rb(H[a>>2],n)|0;e=Rb(H[a+4>>2],n);a:{b:{c:{d:{e:{switch(c|0){case 1:if(I[d+121|0]){break d}break b;case 0:if(!I[d+120|0]){break b}k=I[d+122|0]!=0;break;default:break e}}H[a+12>>2]=e;i=a+12|0;break c}o=I[d+123|0];H[a+12>>2]=e;p=H[a>>2];r=I[b+2492|0];k=2;f=H[b+412>>2];f:{g:{if(!f){break g}i=H[a+4>>2]+p|0;h=b+416|0;j=H[b+2488>>2];l=0-j|0;while(1){m=i-H[h+12>>2]|0;if((m|0)<(l|0)){break g}if((i|0)<=(j+H[h+8>>2]|0)){if(!r){f=0;if((m|0)>H[b+2484>>2]){break f}}q=H[h+16>>2];k=3;f=1;break f}h=h+32|0;f=f-1|0;if(f){continue}break}}f=0}i=H[b+928>>2];h:{if(!i){j=0;break h}j=0;l=H[b+2488>>2];m=0-l|0;h=((i<<5)+b|0)+932|0;while(1){s=H[h-24>>2]-p|0;if((m|0)>(s|0)){break h}if((H[h-20>>2]-l|0)>(p|0)){h=h-32|0;i=i-1|0;if(i){continue}break h}break}if(!r&H[b+2484>>2]<=(s|0)){break h}j=H[h-16>>2];f=k}i=a+12|0;k=(o|0)!=0;i:{switch(f-1|0){case 1:H[a+8>>2]=j;if(!o){break a}H[a+12>>2]=(e|0)<64?64:e+32&-64;break a;case 2:H[a+8>>2]=j;H[a+12>>2]=q-j;break a;case 0:break i;default:break c}}H[a+8>>2]=q-e;if(!o){break a}b=(e|0)<64?64:e+32&-64;H[a+12>>2]=b;H[a+8>>2]=q-b;break a}f=H[a+20>>2];if(f){if(!(I[f+16|0]&8)){cv(f,b,c,d)}g=((H[f+8>>2]-(e>>1)|0)+(H[f+12>>2]>>1)|0)+Rb((H[a>>2]-(H[f>>2]+(H[f+4>>2]>>1)|0)|0)+(H[a+4>>2]>>1)|0,n)|0}H[a+12>>2]=e;j:{if(!I[d+124|0]){break j}if((e|0)<=64){if((e|0)>=32){g=(e>>>1|0)+g&-64;e=64;break j}b=g+32&-64;if((e|0)<=0){g=b;break j}f=b-g|0;c=f>>31;d=e+g|0;g=d+32&-64;h=g-d|0;d=h>>31;g=(c^f)-c>>>0>(d^h)-d>>>0?g:b;break j}b=H[(N(c,204)+b|0)+12>>2];d=e-b|0;c=d>>31;e=(c^d)-c>>>0<40?(b|0)>48?b:48:e;if(e>>>0<=191){b=e&63;if(b>>>0<10){break j}c=e&-64;if(b>>>0<=31){e=c|10;break j}e=b>>>0<54?c|54:e;break j}e=e+32&-64}H[a+12>>2]=e;b=(g+32&-64)-g|0;c=b>>31;d=e+g|0;d=(d+32&-64)-d|0;f=d>>31;d=((b^c)-c>>>0>(d^f)-f>>>0?d:b)+g|0;H[a+8>>2]=d;if(!k){break a}b=(e|0)<64?64:e+32&-64;H[i>>2]=b;c=b>>1;H[a+12>>2]=b;H[a+8>>2]=(b&64?c+d&-64|32:(c+d|0)+32&-64)-c;break a}H[a+12>>2]=e;H[a+8>>2]=g}H[a+16>>2]=H[a+16>>2]|8}}function wB(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;d=xb-48|0;xb=d;a:{b:{if(!a){break b}if(!b){f=6;break a}if(G[a>>1]<=0){break a}h=H[b+20>>2];i=H[b+16>>2];while(1){m=G[H[a+12>>2]+(n<<1)>>1];if((m|0)<0){break b}k=H[a+4>>2];e=k+(g<<3)|0;f=H[e+4>>2];o=(H[e>>2]<>2]=o;f=(f<>2]=f;l=k+(m<<3)|0;k=H[l>>2];q=H[l+4>>2];j=H[d+36>>2];H[d+40>>2]=H[d+32>>2];H[d+44>>2]=j;p=H[a+8>>2];j=p+g|0;g=I[j|0]&3;c:{if((g|0)==3){break c}d:{switch(g-1|0){case 1:break b;case 0:break c;default:break d}}g=(q<>2]=g;H[d+32>>2]=k;l=l-8|0;break e}H[d+36>>2]=(g+f|0)/2;H[d+32>>2]=(k+o|0)/2}j=j-1|0;e=e-8|0}f=zb[H[b>>2]](d+32|0,c)|0;if(f){break a}f:{if(e>>>0>>0){while(1){k=j+1|0;g=e+8|0;g:{h:{i:{switch(I[j+1|0]&3){case 1:H[d+24>>2]=(H[e+8>>2]<>2]=(H[e+12>>2]<>2]](d+24|0,c)|0;if(f){break a}break g;case 0:H[d+40>>2]=(H[e+8>>2]<>2]=(H[e+12>>2]<>>0>>0){while(1){e=I[k+1|0];j=(H[g+8>>2]<>2]=j;f=(H[g+12>>2]<>2]=f;k=k+1|0;g=g+8|0;j:{e=e&3;k:{if(e){if((e|0)!=1){g=7;f=0;break h}f=zb[H[b+8>>2]](d+40|0,d+24|0,c)|0;if(f){break k}e=g;j=k;break g}H[d+16>>2]=(j+H[d+40>>2]|0)/2;H[d+20>>2]=(f+H[d+44>>2]|0)/2;f=zb[H[b+8>>2]](d+40|0,d+16|0,c)|0;if(!f){break j}}g=10;break h}e=H[d+28>>2];H[d+40>>2]=H[d+24>>2];H[d+44>>2]=e;if(g>>>0>>0){continue}break}}f=zb[H[b+8>>2]](d+40|0,d+32|0,c)|0;break f;default:break i}}g=7;f=0;if((I[j+2|0]&3)!=2|e+16>>>0>l>>>0){break h}H[d+24>>2]=(H[e+8>>2]<>2]=(H[e+12>>2]<>2]=(H[e+16>>2]<>2]=(H[e+20>>2]<>>0<=l>>>0){H[d+8>>2]=(H[e+24>>2]<>2]=(H[e+28>>2]<>2]](d+24|0,d+16|0,d+8|0,c)|0;if(f){g=10;break h}j=j+3|0;e=g;break g}f=zb[H[b+12>>2]](d+24|0,d+16|0,d+32|0,c)|0;break f}if((g|0)!=7){break a}break b}if(e>>>0>>0){continue}break}}f=zb[H[b+4>>2]](d+32|0,c)|0}if(f){break a}g=m+1|0;f=0;n=n+1|0;if((n|0)>1]){continue}break}break a}f=20}xb=d+48|0;return f|0}function Wk(a,b,c,d){var e=0,f=0,g=0,h=0;f=H[a+24>>2];g=H[f+4>>2];e=H[f>>2];H[a+228>>2]=d;H[a+224>>2]=c;H[a+220>>2]=b;a:{if(!g){if(!(zb[H[f+12>>2]](a)|0)){break a}e=H[f>>2];g=H[f+4>>2]}h=I[e|0];b=g-1|0;if(b){c=e+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}b=H[f+4>>2];c=H[f>>2]}g=I[c|0];e=b-1|0;if(e){b=c+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}e=H[f+4>>2];b=H[f>>2]}H[a+212>>2]=I[b|0];e=e-1|0;if(e){c=b+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}e=H[f+4>>2];c=H[f>>2]}b=I[c|0]<<8;H[a+32>>2]=b;e=e-1|0;if(e){c=c+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}b=H[a+32>>2];e=H[f+4>>2];c=H[f>>2]}d=b;b=c;H[a+32>>2]=d+I[b|0];e=e-1|0;if(e){c=b+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}e=H[f+4>>2];c=H[f>>2]}b=I[c|0]<<8;H[a+28>>2]=b;e=e-1|0;if(e){c=c+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}b=H[a+28>>2];e=H[f+4>>2];c=H[f>>2]}d=b;b=c;H[a+28>>2]=d+I[b|0];c=e-1|0;if(c){b=b+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}c=H[f+4>>2];b=H[f>>2]}H[a+36>>2]=I[b|0];e=H[a>>2];H[e+24>>2]=H[a+436>>2];H[e+28>>2]=H[a+28>>2];H[e+32>>2]=H[a+32>>2];d=H[a+36>>2];H[e+20>>2]=102;H[e+36>>2]=d;zb[H[e+4>>2]](a,1);if(H[H[a+460>>2]+16>>2]){d=H[a>>2];H[d+20>>2]=60;zb[H[d>>2]](a)}h=(g|h<<8)-8|0;b:{if(!(!H[a+32>>2]|!H[a+28>>2])){g=H[a+36>>2];if((g|0)>0){break b}}d=H[a>>2];H[d+20>>2]=33;zb[H[d>>2]](a);g=H[a+36>>2]}if((h|0)!=(N(g,3)|0)){d=H[a>>2];H[d+20>>2]=12;zb[H[d>>2]](a)}g=H[a+216>>2];if(!g){g=zb[H[H[a+4>>2]>>2]](a,1,N(H[a+36>>2],88))|0;H[a+216>>2]=g}b=b+1|0;e=c-1|0;if(H[a+36>>2]>0){c=0;while(1){H[g+4>>2]=c;if(!e){if(!(zb[H[f+12>>2]](a)|0)){break a}e=H[f+4>>2];b=H[f>>2]}H[g>>2]=I[b|0];d=e-1|0;if(d){b=b+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}d=H[f+4>>2];b=H[f>>2]}h=I[b|0];H[g+12>>2]=h&15;H[g+8>>2]=h>>>4;d=d-1|0;if(d){h=b+1|0}else{if(!(zb[H[f+12>>2]](a)|0)){break a}d=H[f+4>>2];h=H[f>>2]}H[g+16>>2]=I[h|0];e=H[a>>2];H[e+24>>2]=H[g>>2];H[e+28>>2]=H[g+8>>2];H[e+32>>2]=H[g+12>>2];b=H[g+16>>2];H[e+20>>2]=103;H[e+36>>2]=b;zb[H[e+4>>2]](a,1);b=h+1|0;e=d-1|0;g=g+88|0;c=c+1|0;if((c|0)>2]){continue}break}}H[H[a+460>>2]+16>>2]=1;H[f+4>>2]=e;H[f>>2]=b;return 1}return 0}function QH(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(a){g=H[a+100>>2];d=H[a+540>>2];if(d){zb[H[d+12>>2]](a)}c=H[a+712>>2];if(c){d=H[c+8>>2];b=H[c+108>>2];if(b){e=H[b+28>>2];f=c+140|0;if(H[f>>2]){nd(b,f)}b=H[c+136>>2];if(b){zb[H[e+8>>2]](e,b)}H[c+140>>2]=0;H[c+132>>2]=0;H[c+136>>2]=0;H[c+124>>2]=0;H[c+128>>2]=0;H[c+116>>2]=0;H[c+120>>2]=0;H[c+108>>2]=0;H[c+112>>2]=0}b=H[c+1240>>2];if(b){e=H[b+28>>2];f=c+1272|0;if(H[f>>2]){nd(b,f)}b=H[c+1268>>2];if(b){zb[H[e+8>>2]](e,b)}b=c+1240|0;H[b+32>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0}b=H[c+36>>2];if(b){e=H[b+28>>2];f=c+68|0;if(H[f>>2]){nd(b,f)}b=H[c- -64>>2];if(b){zb[H[e+8>>2]](e,b)}H[c+68>>2]=0;H[c+60>>2]=0;H[c+64>>2]=0;H[c+52>>2]=0;H[c+56>>2]=0;H[c+44>>2]=0;H[c+48>>2]=0;H[c+36>>2]=0;H[c+40>>2]=0}b=H[c+1204>>2];if(b){e=H[b+28>>2];f=c+1236|0;if(H[f>>2]){nd(b,f)}b=H[c+1232>>2];if(b){zb[H[e+8>>2]](e,b)}b=c+1204|0;H[b+32>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0}if(H[c+2024>>2]){b=0;while(1){bt(d,H[((b<<2)+c|0)+2028>>2]);b=b+1|0;if(b>>>0>2]){continue}break}b=H[c+2028>>2];if(b){zb[H[d+8>>2]](d,b)}H[c+2028>>2]=0}H[c+144>>2]=0;H[c+148>>2]=0;H[c+152>>2]=0;b=H[H[c+4>>2]+28>>2];e=c+1192|0;f=H[e>>2];if(f){zb[H[b+8>>2]](b,f)}H[e>>2]=0;H[e+4>>2]=0;e=c+1188|0;f=H[e>>2];if(f){zb[H[b+8>>2]](b,f)}H[c+1180>>2]=0;H[c+1184>>2]=0;H[e>>2]=0;$s(c+3112|0,d);bt(d,c+1372|0);b=c+3060|0;if(H[b>>2]){nd(H[c+4>>2],b)}F[c+3052|0]=0;H[c+3056>>2]=0;H[c+3064>>2]=0;b=H[c+3092>>2];if(b){zb[H[d+8>>2]](d,b)}H[c+3092>>2]=0;b=H[c+1348>>2];if(b){zb[H[d+8>>2]](d,b)}H[c+1348>>2]=0;b=H[c+1352>>2];if(b){zb[H[d+8>>2]](d,b)}H[c+1352>>2]=0;b=H[c+1360>>2];if(b){zb[H[d+8>>2]](d,b)}H[c+1360>>2]=0;b=H[c+1364>>2];if(b){zb[H[d+8>>2]](d,b)}H[c+1364>>2]=0;b=H[c+3108>>2];if(b){zb[b|0](H[c+3104>>2]);b=H[c+3104>>2];if(b){zb[H[d+8>>2]](d,b)}H[c+3104>>2]=0}b=H[c+3132>>2];if(b){zb[H[d+8>>2]](d,b)}H[c+3132>>2]=0;d=H[a+712>>2];if(d){zb[H[g+8>>2]](g,d)}H[a+712>>2]=0}d=H[a+548>>2];if(d){zb[H[d+44>>2]](a)}H[a+736>>2]=0}}function vg(a,b){var c=0,d=0,e=0,f=0;c=H[a+960>>2];e=c+H[a+1044>>2]|0;H[a+960>>2]=e;d=(c|0)>0?H[a+956>>2]&H[(c<<2)+248992>>2]|b<>2]=d;if((e|0)>=8){c=H[a+1072>>2];while(1){H[a+1072>>2]=c+1;F[H[a+1076>>2]+c|0]=d;c=H[a+1072>>2];if((c|0)>=254){d=H[a+1060>>2];zb[H[H[d>>2]+44>>2]](d,c&255)|0;c=H[a+1060>>2];zb[H[H[c>>2]+16>>2]](c,H[a+1076>>2],1,H[a+1072>>2])|0;H[a+1072>>2]=0;c=0}d=H[a+956>>2]>>>8|0;H[a+956>>2]=d;f=H[a+960>>2];e=f-8|0;H[a+960>>2]=e;if((f|0)>15){continue}break}}c=H[a+1052>>2];a:{if(c?0:G[a+1050>>1]<=G[a+1048>>1]){break a}if(c){H[a+1052>>2]=0;c=H[a+1056>>2];H[a+1044>>2]=c;G[a+1048>>1]=-1<>2]+1|0;H[a+1044>>2]=c;if((c|0)==12){G[a+1048>>1]=4096;break a}G[a+1048>>1]=-1<>2]!=(b|0)){break b}c:{if((e|0)<=0){c=H[a+1072>>2];break c}c=H[a+1072>>2];while(1){H[a+1072>>2]=c+1;F[H[a+1076>>2]+c|0]=d;c=H[a+1072>>2];if((c|0)>=254){b=H[a+1060>>2];zb[H[H[b>>2]+44>>2]](b,c&255)|0;b=H[a+1060>>2];zb[H[H[b>>2]+16>>2]](b,H[a+1076>>2],1,H[a+1072>>2])|0;H[a+1072>>2]=0;c=0}d=H[a+956>>2]>>>8|0;H[a+956>>2]=d;b=H[a+960>>2];H[a+960>>2]=b-8;if((b|0)>8){continue}break}}if((c|0)>0){b=H[a+1060>>2];zb[H[H[b>>2]+44>>2]](b,c&255)|0;b=H[a+1060>>2];zb[H[H[b>>2]+16>>2]](b,H[a+1076>>2],1,H[a+1072>>2])|0;H[a+1072>>2]=0}b=H[a+1060>>2];zb[H[H[b>>2]+32>>2]](b)|0;b=H[a+1060>>2];if(!(zb[H[H[b>>2]+40>>2]](b)|0)){break b}b=I[247969]|I[247970]<<8|(I[247971]<<16|I[247972]<<24);c=I[247965]|I[247966]<<8|(I[247967]<<16|I[247968]<<24);F[a+88|0]=c;F[a+89|0]=c>>>8;F[a+90|0]=c>>>16;F[a+91|0]=c>>>24;F[a+92|0]=b;F[a+93|0]=b>>>8;F[a+94|0]=b>>>16;F[a+95|0]=b>>>24;b=I[247961]|I[247962]<<8|(I[247963]<<16|I[247964]<<24);c=I[247957]|I[247958]<<8|(I[247959]<<16|I[247960]<<24);F[a+80|0]=c;F[a+81|0]=c>>>8;F[a+82|0]=c>>>16;F[a+83|0]=c>>>24;F[a+84|0]=b;F[a+85|0]=b>>>8;F[a+86|0]=b>>>16;F[a+87|0]=b>>>24;b=I[247953]|I[247954]<<8|(I[247955]<<16|I[247956]<<24);c=I[247949]|I[247950]<<8|(I[247951]<<16|I[247952]<<24);F[a+72|0]=c;F[a+73|0]=c>>>8;F[a+74|0]=c>>>16;F[a+75|0]=c>>>24;F[a+76|0]=b;F[a+77|0]=b>>>8;F[a+78|0]=b>>>16;F[a+79|0]=b>>>24}}function iN(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;e=xb-16|0;xb=e;a:{if(H[a+4>>2]){break a}d=6;b:{if(H[a+12>>2]!=1){break b}l=(b|0)!=0;b=(N(l,36)+a|0)+16|0;d=H[c>>2];f=(((d>>31)+d|0)+32768&-65536)>>16;d=H[c+4>>2];j=H[a>>2];d=dk(b,f,(((d>>31)+d|0)+32768&-65536)>>16,j,e);if(d){break b}d=H[c+8>>2];f=(((d>>31)+d|0)+32768&-65536)>>16;d=H[c+12>>2];d=dk(b,f,(((d>>31)+d|0)+32768&-65536)>>16,j,e+4|0);if(d){break b}d=b;b=H[c+16>>2];f=(((b>>31)+b|0)+32768&-65536)>>16;b=H[c+20>>2];d=dk(d,f,(((b>>31)+b|0)+32768&-65536)>>16,j,e+8|0);if(d){break b}g=H[e+8>>2];h=H[e+4>>2];i=H[e>>2];k=N(l,36)+a|0;f=H[k+40>>2];c:{if(f){m=g>>3;n=h>>3;o=i>>3;p=128>>>(g&7)|0;q=128>>>(h&7)|0;r=128>>>(i&7)|0;c=H[k+48>>2];d=f;while(1){b=H[c>>2];if((I[H[c+8>>2]+o|0]&r?i>>>0>>0:0)|(I[H[c+8>>2]+n|0]&q?b>>>0>h>>>0:0)|(I[m+H[c+8>>2]|0]&p?b>>>0>g>>>0:0)){break c}c=c+16|0;d=d-1|0;if(d){continue}break}}m=f+1|0;b=H[k+44>>2];d:{if(m>>>0<=b>>>0){c=H[(N(l,36)+a|0)+48>>2];break d}H[e+12>>2]=0;c=b;b=f+8&-8;d=N(l,36)+a|0;c=Ub(j,16,c,b,H[d+48>>2],e+12|0);H[d+48>>2]=c;d=H[e+12>>2];if(d){break b}H[k+44>>2]=b}b=0;c=(f<<4)+c|0;H[c+12>>2]=0;H[c>>2]=0;H[k+40>>2]=m}if((i|0)>=0){if(b>>>0<=i>>>0){b=H[c+4>>2];H[e+12>>2]=0;d=i+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Ub(j,1,f,b,H[c+8>>2],e+12|0),H[s+8>>2]=t;d=H[e+12>>2];if(d){break b}H[c+4>>2]=b<<3}H[c>>2]=i+1}b=H[c+8>>2]+(i>>>3|0)|0;F[b|0]=I[b|0]|128>>>(i&7)}e:{if((h|0)>=0){if(K[c>>2]<=h>>>0){b=H[c+4>>2];H[e+12>>2]=0;d=h+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Ub(j,1,f,b,H[c+8>>2],e+12|0),H[s+8>>2]=t;d=H[e+12>>2];if(d){break b}H[c+4>>2]=b<<3}H[c>>2]=h+1}b=H[c+8>>2]+(h>>>3|0)|0;F[b|0]=I[b|0]|128>>>(h&7);if((g|0)>=0){break e}break a}if((g|0)<0){break a}}if(K[c>>2]<=g>>>0){b=H[c+4>>2];H[e+12>>2]=0;d=g+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Ub(j,1,f,b,H[c+8>>2],e+12|0),H[s+8>>2]=t;d=H[e+12>>2];if(d){break b}H[c+4>>2]=b<<3}H[c>>2]=g+1}a=H[c+8>>2]+(g>>>3|0)|0;F[a|0]=I[a|0]|128>>>(g&7);break a}H[a+4>>2]=d}xb=e+16|0}function UE(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,p=0,q=0,r=0,s=0;k=H[a+100>>2];g=H[k+64>>2];i=I[k+61|0]?H[k+72>>2]:g;o=f-g|0;a:{if(!b){break a}f=i-g|0;if(b-1>>>0>=3){n=b&-4;while(1){g=j<<2;m=g+c|0;H[m>>2]=f+H[m>>2];m=(g|4)+c|0;H[m>>2]=f+H[m>>2];m=(g|8)+c|0;H[m>>2]=f+H[m>>2];g=(g|12)+c|0;H[g>>2]=f+H[g>>2];j=j+4|0;l=l+4|0;if((n|0)!=(l|0)){continue}break}}g=b&3;if(!g){break a}while(1){n=(j<<2)+c|0;H[n>>2]=f+H[n>>2];j=j+1|0;h=h+1|0;if((g|0)!=(h|0)){continue}break}}f=i+o|0;b:{if(!d){break b}m=0;while(1){if(!I[k+60|0]){break b}g=(m<<2)+e|0;i=I[g|0]|I[g+1|0]<<8;l=(i<<8|i>>>8)&65535;c:{if(l>>>0>=b>>>0){break c}if(!i){i=I[g+2|0]|I[g+3|0]<<8;if(H[a+128>>2]==((i<<8|i>>>8)&65535)){break c}}p=(l<<2)+c|0;if(!bf(k,H[p>>2])|H[k+152>>2]<=0){break b}n=H[a+136>>2];if(!n){break c}h=H[a+104>>2];if(!h){break c}j=I[k+61|0];i=H[k+64>>2];q=H[k+72>>2];g=I[g+2|0]|I[g+3|0]<<8;s=H[k+68>>2];r=H[a+100>>2];o=H[r+152>>2];H[r+152>>2]=o-1;if((o|0)<=0){break c}H[a+136>>2]=n-1;g=zb[h|0](a,(g<<8|g>>>8)&65535)|0;H[a+136>>2]=H[a+136>>2]+1;if(!g){break c}g=H[k+64>>2];g=(H[k+68>>2]-g|0)+(I[k+61|0]?H[k+72>>2]:g)|0;i=(s-i|0)+(j?q:i)|0;if((g|0)==(i|0)){break c}h=g-i|0;n=h+f|0;f=H[p>>2];if((n|0)<=(f|0)){break b}g=l+1|0;d:{if((h|0)>0){i=b+h|0;f=g;if(i>>>0<=64){break d}bf(k,n);return}f=g-b|0;h=(f|0)<(h|0)?h:f;i=h+b|0;f=g-h|0}o=f;f=(f<<2)+c|0;$c(f+(h<<2)|0,f,b-o<<2);j=h+o|0;e:{if(j>>>0<=g>>>0){break e}b=(h+o|0)-l|0;q=b-2|0;f=H[p>>2];l=0;b=b-1&3;if(b){while(1){f=f+1|0;H[(g<<2)+c>>2]=f;g=g+1|0;l=l+1|0;if((b|0)!=(l|0)){continue}break}}if(q>>>0<=2){break e}while(1){l=(g<<2)+c|0;H[l>>2]=f+1;b=f+4|0;H[l+12>>2]=b;H[l+8>>2]=f+3;H[l+4>>2]=f+2;f=b;g=g+4|0;if((j|0)!=(g|0)){continue}break}}f:{if(i>>>0<=j>>>0){break f}f=0;b=i-(h+o|0)&3;if(b){while(1){g=(j<<2)+c|0;H[g>>2]=H[g>>2]+h;j=j+1|0;f=f+1|0;if((b|0)!=(f|0)){continue}break}}if(((h^-1)+i|0)-o>>>0<3){break f}while(1){b=(j<<2)+c|0;H[b>>2]=H[b>>2]+h;H[b+4>>2]=H[b+4>>2]+h;H[b+8>>2]=H[b+8>>2]+h;H[b+12>>2]=H[b+12>>2]+h;j=j+4|0;if((i|0)!=(j|0)){continue}break}}f=n;b=i}m=m+1|0;if((m|0)!=(d|0)){continue}break}}bf(k,f)}function pl(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;g=I[a+4|0];a:{b:{if(!g){break b}k=N(b+1|0,g)+a|0;f=k+5|0;c=f;i=g-1|0;if(i>>>0>=3){j=g&252;c=f;while(1){h=c;c=c+4|0;e=e+4|0;if((j|0)!=(e|0)){continue}break}e=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24)}h=g&3;if(h){while(1){e=I[c|0]|e<<8;c=c+1|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}h=g&3;l=N(b,g)+a|0;c=l+5|0;j=0;if(i>>>0<3){d=0}else{m=g&252;d=0;while(1){b=c;c=b+4|0;d=d+4|0;if((m|0)!=(d|0)){continue}break}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);d=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(h){while(1){d=I[c|0]|d<<8;c=c+1|0;j=j+1|0;if((h|0)!=(j|0)){continue}break}}if(e>>>0>>0){return 0}d=g&3;c=0;if(i>>>0<3){e=0}else{h=g&252;e=0;while(1){b=f;f=b+4|0;e=e+4|0;if((h|0)!=(e|0)){continue}break}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);e=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(d){while(1){e=I[f|0]|e<<8;f=f+1|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}c:{if(g){b=a;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);c=(b+N(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24),g)|0)+5|0;b=g&3;d=0;if(i>>>0<3){f=0}else{h=g&252;f=0;while(1){a=c;c=a+4|0;f=f+4|0;if((h|0)!=(f|0)){continue}break}a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);f=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24)}if(b){while(1){f=I[c|0]|f<<8;c=c+1|0;d=d+1|0;if((b|0)!=(d|0)){continue}break}}if(e>>>0<=f>>>0){break c}return 0}f=0;d=0;if(!e){break b}break a}b=g&3;c=k+5|0;e=0;if(i>>>0<3){f=0}else{d=g&252;f=0;while(1){a=c;c=a+4|0;f=f+4|0;if((d|0)!=(f|0)){continue}break}a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);f=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24)}if(b){while(1){f=I[c|0]|f<<8;c=c+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}}b=g&3;c=l+5|0;e=0;if(i>>>0<3){d=0}else{h=g&252;d=0;while(1){a=c;c=a+4|0;d=d+4|0;if((h|0)!=(d|0)){continue}break}a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);d=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24)}if(!b){break b}while(1){d=I[c|0]|d<<8;c=c+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}}f=f-d|0}return f|0}function xF(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;a:{c=H[b+4>>2];if(c>>>0>a>>>0){break a}f=H[b+8>>2];if(f>>>0>>0){break a}g=f-a|0;if(g>>>0<6){break a}d=H[b+12>>2]-6|0;H[b+12>>2]=d;if((d|0)<=0){break a}e=I[a+2|0]|I[a+3|0]<<8;e=(e<<8|e>>>8)&65535;if(e>>>0<6|e>>>0>g>>>0){break a}e=d-e|0;H[b+12>>2]=e;if((e|0)<=0){break a}d=1;b:{c:{switch(I[a+4|0]){case 0:d=a+6|0;if(d>>>0>>0|d>>>0>f>>>0|f-d>>>0<8){break a}g=e-8|0;H[b+12>>2]=g;if((e|0)<9){break a}d=I[a+6|0]|I[a+7|0]<<8;if(d){a=a+14|0;if(a>>>0>>0|a>>>0>f>>>0){break a}e=f-a|0;a=N((d<<8|d>>>8)&65535,6);if(e>>>0>>0){break a}a=g-a|0;H[b+12>>2]=a;d=0;if((a|0)<=0){break b}}return 1;case 2:break c;default:break b}}d:{e:{e=H[b+4>>2];if(e>>>0>a>>>0){break e}f=H[b+8>>2];if(f>>>0>>0){break e}j=f-a|0;if(j>>>0<14){break e}d=H[b+12>>2];c=d-14|0;H[b+12>>2]=c;if((c|0)<=0){break e}c=a+8|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<2){break e}c=d-16|0;H[b+12>>2]=c;if((c|0)<=0){break e}c=I[a+8|0]|I[a+9|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<4){break e}g=d-20|0;H[b+12>>2]=g;if((g|0)<=0){break e}g=c+2|0;if(g>>>0>>0|f>>>0>>0|f-g>>>0<2){break e}d=d-22|0;H[b+12>>2]=d;if((d|0)<=0){break e}f:{g=I[c+2|0]|I[c+3|0]<<8;if(!g){break f}c=c+4|0;if(c>>>0>>0|c>>>0>f>>>0){break e}h=f-c|0;c=((g<<8|g>>>8)&65535)<<1;if(h>>>0>>0){break e}d=d-c|0;H[b+12>>2]=d;if((d|0)>0){break f}break e}c=a+10|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<2){break e}H[b+12>>2]=d-2;if((d|0)<3){break e}c=I[a+10|0]|I[a+11|0]<<8;c=((c<<8|c>>>8)&65535)+a|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<4){break e}H[b+12>>2]=d-6;if((d|0)<7){break e}g=c+2|0;if(g>>>0>>0|f>>>0>>0|f-g>>>0<2){break e}g=d-8|0;H[b+12>>2]=g;if((d|0)<9){break e}d=1;g:{i=I[c+2|0]|I[c+3|0]<<8;if(!i){break g}h=e;e=c+4|0;if(h>>>0>e>>>0|f>>>0>>0){break e}e=f-e|0;f=((i<<8|i>>>8)&65535)<<1;if(e>>>0>>0){break e}g=g-f|0;H[b+12>>2]=g;if((g|0)>0){break g}break e}a=I[a+12|0]|I[a+13|0]<<8;h:{if(!a){break h}d=0;a=(a<<8|a>>>8)&65535;if(a>>>0>j>>>0){break h}a=g-a|0;H[b+12>>2]=a;d=(a|0)>0}break d}d=0}}return d|0}return 0}function rda(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=H[a+20>>2];if((c|0)!=100){d=H[a>>2];H[d+24>>2]=c;H[d+20>>2]=21;zb[H[H[a>>2]>>2]](a)}H[a+256>>2]=0;H[a+244>>2]=0;H[a+80>>2]=b;a:{b:{c:{switch(b|0){case 1:H[a+76>>2]=1;H[a+244>>2]=1;a=H[a+84>>2];H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=1;H[a+12>>2]=1;H[a>>2]=1;return;case 2:H[a+76>>2]=3;H[a+256>>2]=1;a=H[a+84>>2];H[a+176>>2]=66;H[a+88>>2]=71;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=1;H[a+12>>2]=1;H[a>>2]=82;break b;case 3:H[a+76>>2]=3;H[a+244>>2]=1;a=H[a+84>>2];H[a+176>>2]=3;H[a+88>>2]=2;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=2;H[a+12>>2]=2;H[a>>2]=1;break a;case 4:H[a+76>>2]=4;H[a+256>>2]=1;a=H[a+84>>2];H[a+264>>2]=75;H[a+176>>2]=89;H[a+88>>2]=77;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=1;H[a+12>>2]=1;H[a>>2]=67;H[a+288>>2]=0;H[a+280>>2]=0;H[a+284>>2]=0;H[a+272>>2]=1;H[a+276>>2]=1;break b;case 5:H[a+76>>2]=4;H[a+256>>2]=1;a=H[a+84>>2];H[a+264>>2]=4;H[a+176>>2]=3;H[a+88>>2]=2;H[a+24>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=2;H[a+12>>2]=2;H[a>>2]=1;H[a+288>>2]=0;H[a+280>>2]=0;H[a+284>>2]=0;H[a+272>>2]=2;H[a+276>>2]=2;break a;case 0:b=H[a+36>>2];H[a+76>>2]=b;d:{if(b-11>>>0<=4294967285){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=27;H[H[a>>2]+28>>2]=10;zb[H[H[a>>2]>>2]](a);b=H[a+76>>2];if((b|0)<=0){break d}}d=H[a+84>>2];a=0;if((b|0)!=1){g=b&-2;while(1){c=d+N(a,88)|0;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=1;H[c+12>>2]=1;H[c>>2]=a;e=a|1;c=d+N(e,88)|0;H[c+24>>2]=0;H[c+8>>2]=1;H[c+12>>2]=1;H[c+16>>2]=0;H[c+20>>2]=0;H[c>>2]=e;a=a+2|0;f=f+2|0;if((g|0)!=(f|0)){continue}break}}if(!(b&1)){break d}b=d+N(a,88)|0;H[b+24>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=1;H[b+12>>2]=1;H[b>>2]=a}return;default:break c}}b=H[a>>2];H[b+20>>2]=11;zb[H[b>>2]](a);return}H[a+200>>2]=0;H[a+192>>2]=0;H[a+196>>2]=0;H[a+184>>2]=1;H[a+188>>2]=1;H[a+112>>2]=0;H[a+104>>2]=0;H[a+108>>2]=0;H[a+96>>2]=1;H[a+100>>2]=1;return}H[a+200>>2]=1;H[a+192>>2]=1;H[a+196>>2]=1;H[a+184>>2]=1;H[a+188>>2]=1;H[a+112>>2]=1;H[a+104>>2]=1;H[a+108>>2]=1;H[a+96>>2]=1;H[a+100>>2]=1}function Lx(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;j=xb-128|0;xb=j;a:{b:{c:{if(!mi(f,g,h,i,0,0,0,0)){break c}m=i&65535;n=i>>>16&32767;d:{e:{if((n|0)!=32767){l=4;if(n){break e}l=f|h|(g|m)?3:2;break d}l=!(f|h|(g|m))}}r=e>>>16|0;o=r&32767;if((o|0)==32767){break c}if(l){break b}}ld(j+16|0,b,c,d,e,f,g,h,i);e=H[j+16>>2];d=H[j+20>>2];c=H[j+24>>2];b=H[j+28>>2];yx(j,e,d,c,b,e,d,c,b);d=H[j+8>>2];e=H[j+12>>2];h=H[j>>2];i=H[j+4>>2];break a}m=e&65535|o<<16;p=m;l=d;m=h;q=i>>>16&32767;k=i&65535|q<<16;if((mi(b,c,l,p,f,g,h,k)|0)<=0){if(mi(b,c,l,p,f,g,m,k)){h=b;i=c;break a}ld(j+112|0,b,c,d,e,0,0,0,0);d=H[j+120>>2];e=H[j+124>>2];h=H[j+112>>2];i=H[j+116>>2];break a}if(o){i=c;h=b}else{ld(j+96|0,b,c,l,p,0,0,0,1081540608);h=H[j+108>>2];p=h;l=H[j+104>>2];o=(h>>>16|0)-120|0;i=H[j+100>>2];h=H[j+96>>2]}if(!q){ld(j+80|0,f,g,m,k,0,0,0,1081540608);f=H[j+92>>2];k=f;m=H[j+88>>2];q=(k>>>16|0)-120|0;g=H[j+84>>2];f=H[j+80>>2]}s=k&65535|65536;p=p&65535|65536;if((o|0)>(q|0)){while(1){t=l-m|0;k=(g|0)==(i|0)&f>>>0>h>>>0|g>>>0>i>>>0;n=(p-((l>>>0>>0)+s|0)|0)-(t>>>0>>0)|0;k=t-k|0;f:{if((n|0)>0|(n|0)>=0){l=h;h=h-f|0;i=i-((f>>>0>l>>>0)+g|0)|0;if(!(h|k|(i|n))){ld(j+32|0,b,c,d,e,0,0,0,0);d=H[j+40>>2];e=H[j+44>>2];h=H[j+32>>2];i=H[j+36>>2];break a}n=n<<1|k>>>31;l=k<<1|i>>>31;p=n;break f}n=p<<1|l>>>31;l=l<<1|i>>>31;p=n}n=i<<1|h>>>31;h=h<<1;i=n;o=o-1|0;if((q|0)<(o|0)){continue}break}o=q}q=l-m|0;n=(g|0)==(i|0)&f>>>0>h>>>0|g>>>0>i>>>0;k=(p-((l>>>0>>0)+s|0)|0)-(q>>>0>>0)|0;m=q-n|0;g:{if((k|0)<0){m=l;k=p;break g}l=h;h=h-f|0;i=i-((f>>>0>l>>>0)+g|0)|0;if(h|m|(i|k)){break g}ld(j+48|0,b,c,d,e,0,0,0,0);d=H[j+56>>2];e=H[j+60>>2];h=H[j+48>>2];i=H[j+52>>2];break a}if((k|0)==65535|k>>>0<65535){while(1){b=i>>>31|0;o=o-1|0;p=i<<1|h>>>31;h=h<<1;i=p;c=b;b=m;k=k<<1|b>>>31;m=c|b<<1;if(k>>>0<65536){continue}break}}b=r&32768;if((o|0)<=0){ld(j- -64|0,h,i,m,k&65535|(b|o+120)<<16,0,0,0,1065811968);d=H[j+72>>2];e=H[j+76>>2];h=H[j+64>>2];i=H[j+68>>2];break a}d=m;e=k&65535|(b|o)<<16}H[a>>2]=h;H[a+4>>2]=i;H[a+8>>2]=d;H[a+12>>2]=e;xb=j+128|0}function Uba(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;u=xb-256|0;xb=u;e=a;while(1){a:{h=e;d=H[(l<<2)+b>>2]+c|0;i=I[d+4|0];m=I[d+3|0];g=i+m|0;k=I[d+7|0];j=I[d|0];f=k+j|0;n=g+f|0;p=I[d+5|0];o=I[d+2|0];q=p+o|0;r=I[d+6|0];s=I[d+1|0];d=r+s|0;t=q+d|0;H[e+16>>2]=n-t<<2;H[e>>2]=(n+t<<2)-4096;g=f-g|0;f=d-q|0;d=N(g+f|0,4433)+1024|0;H[e+24>>2]=d+N(f,-15137)>>11;H[e+8>>2]=d+N(g,6270)>>11;d=m-i|0;i=j-k|0;m=N(d+i|0,-7373)+1024|0;g=s-r|0;f=g+d|0;k=o-p|0;n=k+i|0;j=N(f+n|0,9633);o=m+N(d,2446)|0;d=j+N(f,-16069)|0;H[e+28>>2]=o+d>>11;j=j+N(n,-3196)|0;f=N(k,16819);k=N(g+k|0,-20995)+1024|0;H[e+20>>2]=j+(f+k|0)>>11;H[e+12>>2]=d+(k+N(g,25172)|0)>>11;H[e+4>>2]=j+(m+N(i,12299)|0)>>11;i=l-7|0;l=l+1|0;d=7;e=u;b:{switch(i|0){case 0:continue;case 8:break a;default:break b}}e=h+32|0;continue}break}while(1){i=H[e+32>>2];m=H[a+192>>2];b=i+m|0;k=H[e+192>>2];j=H[a+32>>2];c=k+j|0;h=b+c|0;l=H[e+64>>2];g=H[a+160>>2];f=l+g|0;n=H[e+160>>2];p=H[a+64>>2];o=n+p|0;q=f+o|0;r=H[e>>2];s=H[a+224>>2];t=r+s|0;v=H[e+224>>2];w=H[a>>2];x=v+w|0;y=t+x|0;z=H[e+96>>2];A=H[a+128>>2];B=z+A|0;C=H[e+128>>2];D=H[a+96>>2];E=C+D|0;F=B+E|0;H[a+128>>2]=(N(h-q|0,4433)+N(y-F|0,10703)|0)+32768>>16;H[a>>2]=((h+(q+F|0)|0)+y|0)+4>>3;h=x-t|0;f=o-f|0;o=E-B|0;c=c-b|0;b=(N(h-f|0,11363)+N(o-c|0,2260)|0)+32768|0;H[a+192>>2]=(b+N(o,-8697)|0)+N(h,-1730)>>16;H[a+64>>2]=(b+N(f,17799)|0)+N(c,11893)>>16;b=g-l|0;c=A-z|0;h=D-C|0;l=p-n|0;g=(N(b-c|0,3363)+N(h+l|0,-11086)|0)+32768|0;i=m-i|0;m=j-k|0;k=N(i+c|0,-10217)+N(m+h|0,-5461)|0;n=k+((g+N(h,8728)|0)+N(c,17760)|0)|0;j=c;c=s-r|0;f=h;h=w-v|0;j=N(j-c|0,7350)+N(f+h|0,8956)|0;H[a+224>>2]=n+j>>16;f=(g+N(l,-9222)|0)+N(b,10055)|0;g=N(i-b|0,11529)+N(l+m|0,1136)|0;b=N(b+c|0,5461)+N(h+l|0,10217)|0;H[a+160>>2]=(f+g|0)+b>>16;l=N(i-c|0,3363)+N(h+m|0,11086)|0;H[a+96>>2]=(l+(g+((k+N(m,589)|0)+N(i,-13631)|0)|0)|0)+32768>>16;H[a+32>>2]=(b+(j+((l+N(h,-18730)|0)+N(c,6387)|0)|0)|0)+32768>>16;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b){continue}break}xb=u+256|0}function qla(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;H[b>>2]=0;H[b+4>>2]=0;H[b+20>>2]=163632;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;i=I[163632];k=i|256;f=!I[a+16|0];while(1){a:{c=H[a+12>>2];d=c+1|0;g=H[a+4>>2];j=d>>>0<=g>>>0&f;if(!j){break a}b:{c:{if(c>>>0>>0){e=H[a>>2];f=I[e+c|0];if((f|0)==12){c=k;if(d>>>0>=g>>>0){break c}f=I[d+e|0]|256;c=d}if(c>>>0>=g>>>0){c=f;break c}H[a+12>>2]=c+1;break b}F[a+16|0]=1;f=65535;c=i;if((c|0)==12){break b}}F[a+16|0]=1;H[a+12>>2]=g;f=c}d=xb-32|0;xb=d;H[d+28>>2]=0;H[d+20>>2]=0;H[d+24>>2]=0;H[d+12>>2]=0;H[d+16>>2]=0;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{switch(f-6|0){default:c=f-265|0;if(c>>>0>10){break i}c=1<>2];if(c){c=c-1|0;if(c>>>0>2]){break g}c=H[40909];e=H[40908];H[196248]=e;H[196249]=c;H[d+24>>2]=e;H[d+28>>2]=c;break f}F[a+20|0]=1;c=H[40909];e=H[40908];H[196248]=e;H[196249]=c;H[d+24>>2]=e;H[d+28>>2]=c;break f}g=a+24|0;c=H[g>>2];o:{if(c){c=c-1|0;if(c>>>0>=K[a+32>>2]){c=H[40909];e=H[40908];H[196248]=e;H[196249]=c;x(0,e|0);x(1,c|0);h=+z();break o}h=M[H[a+36>>2]+(c<<3)>>3];break o}F[a+20|0]=1;c=H[40909];e=H[40908];H[196248]=e;H[196249]=c;x(0,e|0);x(1,c|0);h=+z()}p:{if(P(h)<2147483648){c=~~h;break p}c=-2147483648}if((c|0)<0){F[a+20|0]=1;c=0}H[b+16>>2]=c;break f}kl(a+20|0,a);break h}h=jl(a);c=H[a+24>>2];if(c>>>0>2]){H[a+24>>2]=c+1;M[H[a+36>>2]+(c<<3)>>3]=h;break h}F[a+20|0]=1;c=H[40909];H[196248]=H[40908];H[196249]=c;M[98124]=h;break h}Qi(f,a)}if(!H[a+24>>2]){break e}break d}c=H[a+36>>2]+(c<<3)|0;e=H[c+4>>2];H[d+24>>2]=H[c>>2];H[d+28>>2]=e}H[g>>2]=0}if(I[a+20|0]|(I[a+40|0]|I[a+16|0])|H[a+28>>2]<0){break d}WF(b,f,a,d+8|0)}xb=d+32|0;if(I[a+20|0]|(I[a+40|0]|I[a+16|0])){break a}f=1;if(H[a+28>>2]>=0){continue}}break}return!j|0}function Nda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;v=xb-224|0;xb=v;n=H[a+332>>2];b=H[b+84>>2];a=v;while(1){h=H[b+160>>2];i=G[c+80>>1];j=H[b+32>>2];o=G[c+16>>1];q=H[b+96>>2];l=G[c+48>>1];p=N(G[c>>1],H[b>>2])<<13|1024;g=N(H[b+128>>2],G[c+64>>1]);f=N(H[b+192>>2],G[c+96>>1]);m=N(H[b+64>>2],G[c+32>>1]);k=f+m|0;H[a+96>>2]=p+N(g-k|0,11585)>>11;h=N(h,i);i=N(j,o);j=N(h+i|0,5027);k=p+N(k,10438)|0;o=N(g-f|0,7223);s=k+(o+N(f,-637)|0)|0;f=N(q,l);q=N(f+i|0,7663);i=N(i-f|0,1395);l=j+(q-i|0)|0;H[a+192>>2]=s-l>>11;H[a>>2]=l+s>>11;l=N(m,-20239);m=N(m-g|0,2578);l=k+(l+m|0)|0;f=N(f+h|0,-11295);h=f+(j+N(h,15326)|0)|0;H[a+128>>2]=l-h>>11;H[a+64>>2]=h+l>>11;g=o+(m+(p+N(g,-15083)|0)|0)|0;f=f+(i+q|0)|0;H[a+160>>2]=g-f>>11;H[a+32>>2]=f+g>>11;a=a+4|0;b=b+4|0;c=c+2|0;r=r+1|0;if((r|0)!=8){continue}break}b=n+128|0;r=0;a=v;while(1){g=H[a+12>>2];m=H[a+4>>2];j=N(g+m|0,10935);n=H[a+24>>2];o=H[a+8>>2];q=N(n+o|0,9058);c=H[(r<<2)+d>>2]+e|0;s=H[a+28>>2];p=s<<13;f=H[a+20>>2];l=f+m|0;k=N(l,9810);t=p+(k+(j+N(m,-9232)|0)|0)|0;x=q+N(o,2237)|0;i=(H[a>>2]<<13)+131072|0;h=H[a+16>>2];y=i+N(h,10438)|0;u=x+y|0;F[c|0]=I[b+(t+u>>>18&1023)|0];F[c+13|0]=I[b+(u-t>>>18&1023)|0];q=q+N(n,-14084)|0;t=i+N(h,2578)|0;u=q+t|0;w=j+N(g,-3474)|0;j=N(f+g|0,-1297)-p|0;w=w+j|0;F[c+1|0]=I[b+(u+w>>>18&1023)|0];F[c+12|0]=I[b+(u-w>>>18&1023)|0];j=j+(k+N(f,-19447)|0)|0;n=N(n,-11295)+N(o,5027)|0;o=i+N(h,-7223)|0;k=n+o|0;F[c+2|0]=I[b+(j+k>>>18&1023)|0];F[c+11|0]=I[b+(k-j>>>18&1023)|0];j=m-g|0;k=s+(j-f|0)<<13;h=i+N(h,-11586)|0;F[c+3|0]=I[b+(k+h>>>18&1023)|0];F[c+10|0]=I[b+(h-k>>>18&1023)|0];h=N(l,6164);i=p+N(f,-13850)|0;f=N(f-g|0,11512);i=h+(i+f|0)|0;n=o-n|0;F[c+4|0]=I[b+(i+n>>>18&1023)|0];F[c+9|0]=I[b+(n-i>>>18&1023)|0];f=f+N(g,5529)|0;g=N(j,3826)-p|0;f=f+g|0;p=t-q|0;F[c+5|0]=I[b+(f+p>>>18&1023)|0];F[c+8|0]=I[b+(p-f>>>18&1023)|0];g=g+(h+N(m,-8693)|0)|0;f=y-x|0;F[c+6|0]=I[b+(g+f>>>18&1023)|0];F[c+7|0]=I[b+(f-g>>>18&1023)|0];a=a+32|0;r=r+1|0;if((r|0)!=7){continue}break}xb=v+224|0}function yda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;u=xb-256|0;xb=u;p=H[a+332>>2];a=H[b+84>>2];b=u;g=8;while(1){a:{b:{h=J[c+32>>1];f=G[c+16>>1];if((h|f)&65535){break b}h=0;if(J[c+48>>1]|J[c+64>>1]|(J[c+80>>1]|J[c+96>>1])){break b}if(J[c+112>>1]){break b}h=N(H[a>>2],G[c>>1]);H[b+192>>2]=h;H[b+160>>2]=h;H[b+128>>2]=h;H[b+96>>2]=h;H[b+64>>2]=h;H[b+32>>2]=h;H[b>>2]=h;f=56;break a}j=N(H[a+192>>2],G[c+96>>1]);l=N(H[a+64>>2],h<<16>>16);h=j+l|0;k=N(H[a+128>>2],G[c+64>>1]);m=N(H[a>>2],G[c>>1]);q=k+m|0;i=h+q|0;n=N(H[a+160>>2],G[c+80>>1]);o=N(H[a+96>>2],G[c+48>>1]);r=n+o|0;s=N(H[a+224>>2],G[c+112>>1]);t=N(f,H[a+32>>2]);v=s+t|0;f=r+v|0;H[b+224>>2]=i-f;H[b>>2]=f+i;n=n-o|0;o=t-s|0;i=N(n+o|0,473)>>8;j=(N(l-j|0,362)>>8)-h|0;l=m-k|0;k=j+l|0;f=i+((N(n,-669)>>8)-f|0)|0;H[b+192>>2]=k-f;H[b+32>>2]=f+k;j=l-j|0;f=(N(v-r|0,362)>>8)-f|0;H[b+160>>2]=j-f;H[b+64>>2]=f+j;f=f+((N(o,277)>>8)-i|0)|0;h=q-h|0;H[b+128>>2]=f+h;h=h-f|0;f=24}H[(f<<2)+b>>2]=h;c=c+2|0;a=a+4|0;b=b+4|0;h=g>>>0>1;g=g-1|0;if(h){continue}break}b=p+128|0;h=0;c=u;while(1){a=H[(h<<2)+d>>2]+e|0;c:{d:{g=H[c+8>>2];f=H[c+4>>2];if(g|f){break d}g=0;if(H[c+12>>2]|H[c+16>>2]|(H[c+20>>2]|H[c+24>>2])){break d}if(H[c+28>>2]){break d}g=gma(I[b+(H[c>>2]>>>5&1023)|0],0,16843009,16843009);F[a|0]=g;F[a+1|0]=g>>>8;F[a+2|0]=g>>>16;F[a+3|0]=g>>>24;g=yb;F[a+4|0]=g;F[a+5|0]=g>>>8;F[a+6|0]=g>>>16;F[a+7|0]=g>>>24;break c}j=H[c+28>>2];l=j+f|0;k=H[c+12>>2];m=H[c+20>>2];q=k+m|0;i=l+q|0;n=H[c+24>>2];p=n+g|0;o=H[c+16>>2];r=H[c>>2];s=o+r|0;t=p+s|0;F[a|0]=I[b+(i+t>>>5&1023)|0];F[a+7|0]=I[b+(t-i>>>5&1023)|0];k=m-k|0;j=f-j|0;f=N(k+j|0,473)>>8;i=f+((N(k,-669)>>8)-i|0)|0;k=(N(g-n|0,362)>>8)-p|0;m=r-o|0;g=k+m|0;F[a+1|0]=I[b+(i+g>>>5&1023)|0];F[a+6|0]=I[b+(g-i>>>5&1023)|0];g=(N(l-q|0,362)>>8)-i|0;i=m-k|0;F[a+2|0]=I[b+(g+i>>>5&1023)|0];F[a+5|0]=I[b+(i-g>>>5&1023)|0];g=g+((N(j,277)>>8)-f|0)|0;f=s-p|0;F[a+4|0]=I[b+(g+f>>>5&1023)|0];F[a+3|0]=I[b+(f-g>>>5&1023)|0]}c=c+32|0;h=h+1|0;if((h|0)!=8){continue}break}xb=u+256|0}function dv(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;j=xb-16|0;xb=j;g=H[b>>2];e=g<<1;u=a,v=Ub(d,4,0,e,0,j+12|0),H[u+12>>2]=v;a:{if(H[j+12>>2]){break a}u=a,v=Ub(d,28,0,g,0,j+12|0),H[u+8>>2]=v;if(H[j+12>>2]){break a}u=a,v=Ub(d,16,0,e|1,0,j+12|0),H[u+24>>2]=v;if(H[j+12>>2]){break a}H[a>>2]=g;H[a+28>>2]=0;H[a+20>>2]=0;H[a+4>>2]=0;H[a+16>>2]=H[a+12>>2]+(g<<2);b:{if(!g){break b}h=g-1|0;d=H[a+8>>2];b=H[b+8>>2];i=g&3;c:{if(!i){f=g;break c}e=0;f=g;while(1){H[d>>2]=H[b>>2];H[d+4>>2]=H[b+4>>2];H[d+16>>2]=H[b+8>>2];b=b+12|0;d=d+28|0;f=f-1|0;e=e+1|0;if((i|0)!=(e|0)){continue}break}}if(h>>>0<3){break b}while(1){H[d>>2]=H[b>>2];H[d+4>>2]=H[b+4>>2];H[d+16>>2]=H[b+8>>2];H[d+28>>2]=H[b+12>>2];H[d+32>>2]=H[b+16>>2];H[d+44>>2]=H[b+20>>2];H[d+56>>2]=H[b+24>>2];H[d+60>>2]=H[b+28>>2];H[d+72>>2]=H[b+32>>2];H[d+84>>2]=H[b+36>>2];H[d+88>>2]=H[b+40>>2];H[d+100>>2]=H[b+44>>2];b=b+48|0;d=d+112|0;f=f-4|0;if(f){continue}break}}e=0;d:{if(!c){break d}k=H[c>>2];i=H[c+8>>2];H[a+32>>2]=c;if(!k){break d}while(1){p=H[i>>2];if(p){m=H[i+8>>2];b=0;l=0;q=0;while(1){if(!b){q=I[m|0];m=m+1|0;b=128}e:{if(!(b&q)|g>>>0<=l>>>0){break e}h=H[a+8>>2]+N(l,28)|0;c=H[h+16>>2];if(c&4){break e}H[h+16>>2]=c|4;c=H[a+16>>2];H[h+20>>2]=0;f:{if(!e){break f}r=H[h>>2];t=r+H[h+4>>2]|0;f=e;d=c;while(1){n=H[d>>2];s=H[n>>2];if(!((s|0)>(t|0)|(H[n+4>>2]+s|0)<(r|0))){H[h+20>>2]=n;break f}d=d+4|0;f=f-1|0;if(f){continue}break}}if(e>>>0>=g>>>0){break e}d=e+1|0;H[a+4>>2]=d;H[c+(e<<2)>>2]=h;e=d}b=b>>1;l=l+1|0;if((p|0)!=(l|0)){continue}break}}i=i+16|0;k=k-1|0;if(k){continue}break}}if(!g|(e|0)==(g|0)){break a}while(1){f=H[a+8>>2]+N(o,28)|0;b=H[f+16>>2];g:{if(b&4){break g}H[f+16>>2]=b|4;c=H[a+16>>2];H[f+20>>2]=0;h:{if(!e){break h}i=H[f>>2];l=i+H[f+4>>2]|0;b=e;d=c;while(1){h=H[d>>2];k=H[h>>2];if(!((k|0)>(l|0)|(i|0)>(k+H[h+4>>2]|0))){H[f+20>>2]=h;break h}d=d+4|0;b=b-1|0;if(b){continue}break}}if(e>>>0>=g>>>0){break g}b=e+1|0;H[a+4>>2]=b;H[c+(e<<2)>>2]=f;e=b}o=o+1|0;if((o|0)!=(g|0)){continue}break}}xb=j+16|0;return H[j+12>>2]}function Ks(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a=xb-16|0;xb=a;d=0;H[a+4>>2]=0;e=H[b+80>>2];g=zb[H[e+164>>2]](b,H[b+84>>2],32,a+4|0,H[e+20>>2])|0;at(c);m=H[c+40>>2];k=H[c+68>>2];a:{if(!k){break a}j=H[c+88>>2];i=H[c+80>>2];if((m&-2)==4){while(1){b:{c:{if(!g){break c}e=N(d,20);f=e+i|0;if(!Sn(H[f>>2])){break c}H[f>>2]=H[a+4>>2];e=e+j|0;H[e>>2]=0;H[e+4>>2]=0;break b}e=N(d,20);f=e+i|0;h=H[f>>2];H[f>>2]=0;l=h;h=H[b+80>>2];zb[H[h+164>>2]](b,H[b+84>>2],l,f,H[h+20>>2])|0;h=H[f>>2];e=e+j|0;H[e>>2]=0;H[e+4>>2]=0;l=h;h=H[b+80>>2];n=e,o=zb[H[h+176>>2]](b,H[b+84>>2],l,H[h+32>>2])|0,H[n>>2]=o;ci(b,H[f>>2],a+12|0,a+8|0);H[e+8>>2]=H[e+8>>2]-H[a+12>>2];H[e+12>>2]=H[e+12>>2]-H[a+8>>2]}d=d+1|0;if((k|0)!=(d|0)){continue}break a}}if(!g){while(1){e=N(d,20);f=e+i|0;g=H[f>>2];H[f>>2]=0;h=g;g=H[b+80>>2];zb[H[g+164>>2]](b,H[b+84>>2],h,f,H[g+20>>2])|0;g=H[f>>2];e=e+j|0;H[e>>2]=0;H[e+4>>2]=0;h=g;g=H[b+80>>2];n=e,o=zb[H[g+180>>2]](b,H[b+84>>2],h,H[g+36>>2])|0,H[n+4>>2]=o;_n(b,H[f>>2],a+12|0,a+8|0);H[e+8>>2]=H[e+8>>2]-H[a+12>>2];H[e+12>>2]=H[e+12>>2]-H[a+8>>2];d=d+1|0;if((k|0)!=(d|0)){continue}break a}}while(1){f=N(d,20);e=f+i|0;d:{if(Sn(H[e>>2])){H[e>>2]=H[a+4>>2];e=f+j|0;H[e>>2]=0;H[e+4>>2]=0;break d}g=H[e>>2];H[e>>2]=0;h=g;g=H[b+80>>2];zb[H[g+164>>2]](b,H[b+84>>2],h,e,H[g+20>>2])|0;g=H[e>>2];f=f+j|0;H[f>>2]=0;H[f+4>>2]=0;h=g;g=H[b+80>>2];n=f,o=zb[H[g+180>>2]](b,H[b+84>>2],h,H[g+36>>2])|0,H[n+4>>2]=o;_n(b,H[e>>2],a+12|0,a+8|0);H[f+8>>2]=H[f+8>>2]-H[a+12>>2];H[f+12>>2]=H[f+12>>2]-H[a+8>>2]}d=d+1|0;if((k|0)!=(d|0)){continue}break}}if((m&-3)==5){$h(c)}e=H[c+68>>2];e:{if(!e){break e}c=H[c+80>>2];d=0;b=0;if(e-1>>>0>=3){j=e&-4;f=0;while(1){i=c+N(b,20)|0;H[i+4>>2]=H[i+4>>2]&-4;i=c+N(b|1,20)|0;H[i+4>>2]=H[i+4>>2]&-4;i=c+N(b|2,20)|0;H[i+4>>2]=H[i+4>>2]&-4;i=c+N(b|3,20)|0;H[i+4>>2]=H[i+4>>2]&-4;b=b+4|0;f=f+4|0;if((j|0)!=(f|0)){continue}break}}e=e&3;if(!e){break e}while(1){f=c+N(b,20)|0;H[f+4>>2]=H[f+4>>2]&-4;b=b+1|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}xb=a+16|0;return 1}function Gz(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=xb-16|0;xb=g;H[g+12>>2]=0;a:{if(zb[H[H[a>>2]+132>>2]](a,H[b+4>>2],H[b+8>>2],H[b+12>>2],H[b+16>>2],32,g+12|0,g+8|0,g+4|0)|0){b=Qb(48);H[197455]=0;h=Ng(b);d=H[197455];H[197455]=0;if((d|0)==1){break a}f=H[g+12>>2];e=H[g+8>>2];b=xb-80|0;xb=b;i=H[g+4>>2];H[h+44>>2]=i;H[h+40>>2]=e;H[h+36>>2]=f;b:{c:{d:{e:{f:{if(!e|!i){break f}F[b+27|0]=0;H[197455]=0;H[b+16>>2]=0;ba(1925,b- -64|0,b+16|0);d=H[197455];H[197455]=0;g:{h:{i:{j:{k:{if((d|0)!=1){if(F[b+27|0]<0){Kb(H[b+16>>2])}d=F[b+75|0];if(!((d|0)<0?H[b+68>>2]:d&255)){break g}H[197455]=0;d=b+16|0;H[d>>2]=0;H[d+4>>2]=0;F[d+40|0]=0;H[d+32>>2]=0;H[d+36>>2]=-1074790400;F[d+21|0]=0;F[d+22|0]=0;F[d+23|0]=0;F[d+24|0]=0;F[d+25|0]=0;F[d+26|0]=0;F[d+27|0]=0;F[d+28|0]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;j=H[197455];H[197455]=0;if((j|0)==1){break k}H[197455]=0;H[d+16>>2]=f;f=H[197455];H[197455]=0;if((f|0)==1){break e}H[197455]=0;H[b+12>>2]=e;H[d+4>>2]=H[b+12>>2];e=H[197455];H[197455]=0;if((e|0)==1){break e}H[197455]=0;H[b+12>>2]=i;H[d+8>>2]=H[b+12>>2];e=H[197455];H[197455]=0;if((e|0)==1){break e}H[197455]=0;e=ca(1641,d|0,b- -64|0,4)|0;f=H[197455];H[197455]=0;if((f|0)==1){break e}if(!e){break h}H[h+8>>2]=5;e=h+24|0;if((e|0)==(b- -64|0)){break h}i=I[b+75|0];f=i<<24>>24;if(F[h+35|0]<0){break j}if((f|0)<0){break i}f=H[b+68>>2];H[e>>2]=H[b+64>>2];H[e+4>>2]=f;H[e+8>>2]=H[b+72>>2];break h}a=$()|0;_()|0;if(F[b+27|0]>=0){break c}Kb(H[b+16>>2]);ea(a|0);X()}a=$()|0;_()|0;break d}H[197455]=0;j=e;e=(f|0)<0;ca(1897,j|0,(e?H[b+64>>2]:b- -64|0)|0,(e?H[b+68>>2]:i)|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break h}break e}H[197455]=0;ca(1898,e|0,H[b+64>>2],H[b+68>>2])|0;e=H[197455];H[197455]=0;if((e|0)==1){break e}}H[197455]=0;H[d+16>>2]=0;e=H[197455];H[197455]=0;if((e|0)==1){break e}id(d);d=I[b+75|0]}if(d<<24>>24>=0){break f}Kb(H[b+64>>2])}xb=b+80|0;break b}a=$()|0;_()|0;id(d)}if(F[b+75|0]>=0){break c}Kb(H[b+64>>2])}ea(a|0);X()}$e(a+124|0,c,h)}xb=g+16|0;return}a=$()|0;_()|0;Kb(b);ea(a|0);X()}function PI(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;e=xb-1552|0;xb=e;f=6;g=H[a+4>>2];a:{if(K[g+16>>2]<=c>>>0){break a}h=H[g+136>>2];H[a+164>>2]=H[b+16>>2];H[a+168>>2]=H[b+20>>2];d=d&1024?d|3:d;i=d&1;F[a+161|0]=!i;f=!(d&3);F[a+160|0]=f;H[a+108>>2]=0;H[a+72>>2]=1869968492;f=zb[H[H[h+12>>2]>>2]](e+32|0,g,b,a,0,0,f,d>>>16&15,112)|0;if(f){break a}j=d&1024;F[e+101|0]=j>>>10;f=Pt(e+32|0,c);if(!f){k=I[a+161|0];l=I[a+160|0];c=e+1420|0;f=H[c+4>>2];H[e+24>>2]=H[c>>2];H[e+28>>2]=f;c=H[e+1416>>2];H[e+16>>2]=H[e+1412>>2];H[e+20>>2]=c;c=H[e+1432>>2];f=H[e+1428>>2];zb[H[H[h+12>>2]+4>>2]](e+32|0);H[a+124>>2]=H[a+124>>2]&1|4;if(j){b=H[a+156>>2];d=H[e+64>>2];H[a+32>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=a;a=H[e+72>>2];H[d+40>>2]=(((a>>31)+a|0)+32768&-65536)>>16;a=H[e+28>>2];H[b+20>>2]=H[e+24>>2];H[b+24>>2]=a;a=H[e+20>>2];H[b+12>>2]=H[e+16>>2];H[b+16>>2]=a;H[b+32>>2]=c;H[b+28>>2]=f;F[b+8|0]=1;f=0;break a}h=H[e+72>>2];H[a+40>>2]=(((h>>31)+h|0)+32768&-65536)>>16;h=H[e+72>>2];H[a+56>>2]=(((h>>31)+h|0)+32768&-65536)>>16;F[H[a+156>>2]+8|0]=0;h=H[g+200>>2];g=H[g+208>>2];H[a+72>>2]=1869968492;g=g-h>>16;H[a+60>>2]=g;H[a+52>>2]=g;if(J[b+14>>1]<=23){H[a+124>>2]=H[a+124>>2]|256}g=a+108|0;b:{if(!(H[e+20>>2]|(H[e+16>>2]!=65536|H[e+28>>2]!=65536))){if(!H[e+24>>2]){break b}}Wg(g,e+16|0);m=a,n=Rb(H[a+40>>2],H[e+16>>2]),H[m+40>>2]=n;m=a,n=Rb(H[a+52>>2],H[e+28>>2]),H[m+52>>2]=n}if(c|f){je(g,f,c);H[a+40>>2]=f+H[a+40>>2];H[a+52>>2]=c+H[a+52>>2]}if(!(k?0:i)){c=H[a+168>>2];h=H[a+164>>2];c:{if(H[e+104>>2]?l:0){break c}f=H[e+48>>2];b=G[f+2>>1];if((b|0)<=0){break c}b=b&65535;f=H[f+4>>2];while(1){m=f,n=Rb(H[f>>2],h),H[m>>2]=n;m=f,n=Rb(H[f+4>>2],c),H[m+4>>2]=n;f=f+8|0;i=b>>>0>1;b=b-1|0;if(i){continue}break}}m=a,n=Rb(H[a+40>>2],h),H[m+40>>2]=n;m=a,n=Rb(H[a+52>>2],c),H[m+52>>2]=n}Nh(g,e);b=H[e>>2];H[a+24>>2]=H[e+8>>2]-b;c=H[e+4>>2];f=H[e+12>>2];H[a+36>>2]=f;H[a+32>>2]=b;H[a+28>>2]=f-c;if(d&16){Fj(a+24|0,H[a+52>>2])}f=0;break a}zb[H[H[h+12>>2]+4>>2]](e+32|0)}xb=e+1552|0;return f|0}function FB(a){var b=0,c=0,d=0,e=O(0),f=0,g=0,h=0,i=0,j=0,k=O(0),l=O(0),m=O(0),n=0,o=O(0),p=O(0),q=O(0),r=O(0),s=O(0),t=0,u=0,v=0,w=0,x=0,y=0,z=O(0),A=0,B=0,C=0,D=0;i=xb-32|0;xb=i;a:{b:{if(H[a+68>>2]){break b}d=Tb(6168);H[a+68>>2]=d;if(d){break b}Pb(H[H[a>>2]+628>>2],784352,282939,0);a=0;break a}d=H[a>>2];H[i+16>>2]=i+28;Qe(d,529,i+16|0);d=H[a>>2];H[i>>2]=i+24;Qe(d,532,i);f=H[i+28>>2];d=H[i+24>>2];g=H[a+68>>2];Id(g+24|0,0,256);b=g+280|0;H[g>>2]=b;while(1){F[c+b|0]=c;a=c|1;F[a+b|0]=a;a=c|2;F[a+b|0]=a;a=c|3;F[a+b|0]=a;a=c|4;F[a+b|0]=a;a=c|5;F[a+b|0]=a;a=c|6;F[a+b|0]=a;a=c|7;F[a+b|0]=a;c=c+8|0;if((c|0)!=256){continue}break}Id(b+256|0,255,512);u=b+4864|0;H[g+20>>2]=u;v=b+3840|0;H[g+16>>2]=v;w=b+2816|0;H[g+12>>2]=w;x=b+1792|0;H[g+8>>2]=x;y=b+768|0;H[g+4>>2]=y;k=L[d+12>>2];p=O(L[d+16>>2]+O(-128));l=L[d+20>>2];q=L[d>>2];z=L[d+4>>2];r=O(L[d+8>>2]+O(-128));c:{if(O(P(r))>2];e=O(O(2)-O(m+m));h=+O(e*O(65536))+.5;d:{if(P(h)<2147483648){d=~~h;break d}d=-2147483648}s=L[f>>2];o=O(O(2)-O(s+s));h=+O(o*O(65536))+.5;e:{if(P(h)<2147483648){a=~~h;break e}a=-2147483648}k=O(k+O(-128));l=O(l+O(-128));m=O(m*e);e=L[f+4>>2];h=+O(O(m/e)*O(65536))+.5;f:{if(P(h)<2147483648){b=~~h;break f}b=-2147483648}C=b;m=O(k-r);k=O(l-p);l=O(z-q);h=+O(O(O(s*o)/e)*O(65536))+.5;g:{if(P(h)<2147483648){b=~~h;break g}b=-2147483648}j=m!=O(0);c=k!=O(0);f=l!=O(0);if(O(P(q))>2]=N(a,f)+32768>>16;D=n+x|0;e=O(O(O(c-A|0)*O(127))/o);i:{if(O(P(e))>2]=N(d,j)+32768>>16;H[n+w>>2]=0-N(b,f);H[n+v>>2]=32768-N(j,C);j=n+u|0;e=O(O(O((c-g|0)+128|0)*O(255))/l);j:{if(O(P(e))>2]=f;c=c+1|0;t=t+1|0;if((t|0)!=256){continue}break}a=1}xb=i+32|0;return a}function jG(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;c=H[a>>2];a:{if(c){break a}l=a-28|0;while(1){b=H[l>>2];if(!b){return 163632}b:{c:{c=oc(1,32);if(c){e=xb-48|0;xb=e;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;F[e+24|0]=0;H[197455]=0;H[e+28>>2]=0;H[e+32>>2]=0;H[e>>2]=0;H[e+4>>2]=0;d=aa(683,b|0)|0;f=H[197455];H[197455]=0;d:{e:{if((f|0)==1){break e}H[e+36>>2]=d;H[197455]=0;F[e+40|0]=1;b=da(684,b|0,1886352244)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[197455]=0;b=da(709,e|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c>>2]=b;b=b?b:163632;h=H[b+16>>2];b=h>>>0<32?163632:H[b+12>>2];d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[c+4>>2]=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);f:{if((d|0)!=512){break f}d=b+32|0;H[c+8>>2]=d;f=I[b+32|0]|I[b+33|0]<<8;g=(d+(((f<<8|f>>>8)&65535)<<1)|0)+2|0;H[c+24>>2]=g;f=H[c+16>>2];if(f>>>0>65534){break f}i=b+h|0;if(i>>>0<=g>>>0){break f}k=H[40908];while(1){if(I[g|0]+g>>>0>=i>>>0){break f}g:{h:{i:{h=H[c+12>>2];if((h|0)>=0){j=f+1|0;m=H[c+24>>2];b=f;d=h;if(b>>>0>>0){break h}while(1){d=((d>>>1|0)+d|0)+8|0;if(j>>>0>=d>>>0){continue}break}if(!(d>>>0>>0|d>>>0>1073741822)){b=tc(H[c+20>>2],d<<2);if(b){break i}}H[c+12>>2]=-1}H[196248]=k;break g}H[c+12>>2]=d;H[c+20>>2]=b;b=H[c+16>>2]}if(b>>>0<=f>>>0){Nb(H[c+20>>2]+(b<<2)|0,0,j-b<<2)}H[c+16>>2]=j;b=H[c+20>>2];H[196248]=k;b=b+(f<<2)|0;if((b|0)==784992){break g}H[b>>2]=g-m}f=H[c+16>>2];if(f>>>0>65534){break f}g=(I[g|0]+g|0)+1|0;if(i>>>0>g>>>0){continue}break}}xb=e+48|0;break d}a=$()|0;_()|0;H[c+16>>2]=0;Kb(H[c+20>>2]);H[c+20>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;ea(a|0);X()}b=H[a>>2];H[a>>2]=b?b:c;if(!b){break a}Kb(H[c+28>>2]);b=H[c>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}H[c>>2]=0;H[c+16>>2]=0;Kb(H[c+20>>2]);Kb(c);break b}c=163632;b=H[a>>2];H[a>>2]=b?b:163632;if(b){break b}break a}ha(0)|0;_()|0;Zb();X()}c=H[a>>2];if(!c){continue}break}}return c}function Bq(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;m=xb-160|0;xb=m;a:{if(!a|!b){break a}b:{f=H[b+48>>2];if((2147483639-f|0)>0){d=f+1|0;j=d+8|0;if(j>>>0<153391689){break b}}Xb(a,264936);break a}e=d;d=H[b+52>>2];c:{if((e|0)<=(d|0)){break c}e=H[b+56>>2];if(e){H[b+52>>2]=j;f=xd(a,N(j,28));H[b+56>>2]=f;if(!f){H[b+56>>2]=e;H[b+52>>2]=d;g=1;break a}Ob(f,e,N(d,28));cc(a,e);break c}H[b+48>>2]=0;H[b+52>>2]=9;e=xd(a,252);H[b+56>>2]=e;if(!e){H[b+52>>2]=d;H[b+48>>2]=f;g=1;break a}H[b+184>>2]=H[b+184>>2]|16384}d:{while(1){k=N(n,28)+c|0;h=H[k+4>>2];e:{if(!h){break e}if(H[k>>2]-3>>>0<=4294967291){Xb(a,265040);break e}j=H[b+48>>2];o=H[b+56>>2];e=1;i=0;f=m+80|0;g=I[h|0];f:{if(!g){d=1;break f}while(1){h=h+1|0;g:{h:{if(g>>>0>160){d=0;break h}d=0;if((g-33&255)>>>0<94){break h}d=1;if(e){break g}g=32}F[f|0]=g;i=i+1|0;f=f+1|0}g=I[h|0];if(!g){break f}e=d;if(i>>>0<79){continue}break}}d=(i|0)!=0&(d|0)!=0;F[f-d|0]=0;l=i-d|0;if(!l){Xb(a,265173);break e}p=N(j,28);i:{if(H[k>>2]<=0){d=0;j=0;break i}j=0;d=0;h=H[k+20>>2];if(h){e=1;i=0;f=m;g=I[h|0];j:{if(!g){d=1;break j}while(1){h=h+1|0;k:{l:{if(g>>>0>160){d=0;break l}d=0;if((g-33&255)>>>0<94){break l}d=1;if(e){break k}g=32}F[f|0]=g;i=i+1|0;f=f+1|0}g=I[h|0];if(!g){break j}e=d;if(i>>>0<79){continue}break}}d=(i|0)!=0&(d|0)!=0;F[f-d|0]=0;d=i-d|0}e=H[k+24>>2];if(!e){break i}j=ac(e)}e=o+p|0;f=H[k+8>>2];m:{if(!(I[f|0]?f:0)){if(H[k>>2]>0){H[e>>2]=1;h=0;break m}H[e>>2]=-1;h=0;break m}h=ac(f);H[e>>2]=H[k>>2]}f=xd(a,(((d+l|0)+j|0)+h|0)+4|0);H[e+4>>2]=f;if(!f){break d}Ob(f,m+80|0,l);i=e+4|0;F[H[i>>2]+l|0]=0;n:{if(H[k>>2]>0){f=(H[e+4>>2]+l|0)+1|0;H[e+20>>2]=f;Ob(f,H[k+20>>2],d);F[H[e+20>>2]+d|0]=0;d=(H[e+20>>2]+d|0)+1|0;H[e+24>>2]=d;Ob(d,H[k+24>>2],j);F[H[e+24>>2]+j|0]=0;i=e+24|0;break n}H[e+20>>2]=0;H[e+24>>2]=0;j=l}d=(H[i>>2]+j|0)+1|0;H[e+8>>2]=d;if(h){Ob(d,H[k+8>>2],h);d=H[e+8>>2]}F[d+h|0]=0;d=H[e>>2]>0;H[e+16>>2]=d?h:0;H[e+12>>2]=d?0:h;H[b+48>>2]=H[b+48>>2]+1}n=n+1|0;if((n|0)!=1){continue}break}g=0;break a}g=1}xb=m+160|0;return g}function Pu(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;H[a+168>>2]=f;n=a+168|0;H[a+48>>2]=n;i=H[a+64>>2];H[a+192>>2]=H[a+60>>2];H[a+196>>2]=i;H[a+188>>2]=c;H[a+184>>2]=b;H[a+180>>2]=e;H[a+176>>2]=d;H[a+172>>2]=g;g=n;while(1){a:{b:{c:{j=H[g+20>>2];l=H[g+12>>2];e=H[g+28>>2];i=H[g+4>>2];if((((j|0)<(l|0)?j:l)|0)>=(((e|0)<(i|0)?e:i)|0)){k=(e|0)>(i|0);if((((j|0)>(l|0)?j:l)|0)<=((k?e:i)|0)){break c}}b=H[g+24>>2];H[g+48>>2]=b;H[g+52>>2]=e;c=e+j|0;H[g+44>>2]=c>>1;d=i+l|0;H[g+12>>2]=d>>1;e=H[g+8>>2];k=e+f|0;H[g+8>>2]=k>>1;m=b;b=H[g+16>>2];h=m+b|0;H[g+40>>2]=h>>1;m=c;c=j+l|0;j=m+c|0;H[g+36>>2]=j>>2;c=c+d|0;H[g+20>>2]=c>>2;b=b+e|0;d=b+k|0;H[g+16>>2]=d>>2;e=b+h|0;H[g+32>>2]=e>>2;b=3;H[g+28>>2]=c+j>>3;H[g+24>>2]=d+e>>3;break b}b=-3;if((e|0)==(i|0)){break b}o=k?2:1;c=H[a+92>>2];if((o|0)!=(c|0)){b=H[a+4>>2];d=k?e&b-1:((b+e|0)-1&0-b)-e|0;m=H[a+8>>2];if(c){b=H[a+36>>2];h=H[a+80>>2];c=H[h+8>>2];p=b-c|0;if((p|0)<0){H[a+40>>2]=99;return 1}d:{if((b|0)==(c|0)){c=b;break d}H[h+16>>2]=p>>2;if((d|0)>=(m|0)){c=J[h+12>>1];G[h+12>>1]=(c&8?16:32)|c}H[a+80>>2]=b;c=b+32|0;H[a+36>>2]=c;H[b+8>>2]=c;H[b+16>>2]=0;H[h+28>>2]=b;G[a+76>>1]=J[a+76>>1]+1}if(K[a+32>>2]<=c>>>0){H[a+40>>2]=98;return 1}F[a+79|0]=0}e:{if(H[a+84>>2]){c=H[a+36>>2];break e}b=H[a+36>>2];H[a+84>>2]=b;H[a+80>>2]=b;c=b+32|0;H[a+36>>2]=c}if(K[a+32>>2]<=c>>>0){H[a+40>>2]=98;return 1}b=H[a+80>>2];H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=c;H[b+28>>2]=0;H[b+4>>2]=0;h=I[a+164|0];G[b+12>>1]=h;f:{g:{if(!k){G[b+12>>1]=h|8;c=40;if((d|0)>=(m|0)){break g}break f}c=16;if((d|0)<(m|0)){break f}}G[b+12>>1]=c|h}if(!H[a+88>>2]){H[a+88>>2]=b}G[a+78>>1]=1;H[a+92>>2]=o}b=H[a+72>>2];c=H[a+68>>2];if(!k){if(!Hl(a,3,62,c,b)){break a}return 1}H[g+28>>2]=0-e;H[g+20>>2]=0-j;H[g+12>>2]=0-l;H[g+4>>2]=0-i;d=I[a+78|0];b=Hl(a,3,62,0-b|0,0-c|0);if(!(I[a+78|0]|!d)){c=H[a+80>>2];H[c+20>>2]=0-H[c+20>>2]}H[g+4>>2]=0-H[g+4>>2];if(!b){break a}return 1}H[a+48>>2]=(b<<3)+g}g=H[a+48>>2];if(n>>>0<=g>>>0){f=H[g>>2];continue}break}H[a+64>>2]=i;H[a+60>>2]=f;return 0}function Jba(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!a|!b){break a}b:{c=I[a+407|0];if(c>>>0>7){break b}H[a+744>>2]=17;d=b+32|0;e=8-c|0;vd(a,d+c|0,e);F[a+407|0]=8;c:{if(zC(d,c,e)){if(c>>>0<=3){if(zC(d,c,4-c|0)){break c}}hc(a,259412);X()}if(c>>>0>2){break b}H[a+200>>2]=H[a+200>>2]|4096;break b}hc(a,259207);X()}d:{e:{while(1){f:{d=en(a);g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{c=H[a+348>>2];if((c|0)!=1229278788){if((c|0)!=1229472850){if((c|0)!=1229209940){break r}c=H[a+200>>2];if(c&8){H[a+200>>2]=c|8192}e=Pk(a,1229209940);c=H[a+200>>2];if(!e){break q}H[a+200>>2]=c|4;Nk(a,b,d);b=H[a+200>>2];if(!(b&1)){break f}if(b&2|I[a+401|0]!=3){break a}hc(a,260367);X()}nC(a,b,d);continue}lC(a,d);continue}if(Pk(a,c)){Nk(a,b,d);if((c|0)!=1347179589){continue}H[a+200>>2]=H[a+200>>2]|2;continue}s:{if((c|0)<=1883789682){if((c|0)<=1749635923){if((c|0)<=1665684044){if((c|0)==1347179589){break s}if((c|0)!=1649100612){break g}cC(a,b,d);continue}if((c|0)==1665684045){break p}if((c|0)!=1732332865){break g}jC(a,b,d);continue}if((c|0)<=1767135347){if((c|0)==1749635924){break o}if((c|0)!=1766015824){break g}fC(a,b,d);continue}if((c|0)==1767135348){break h}if((c|0)==1866876531){break n}if((c|0)!=1883455820){break g}ZB(a,b,d);continue}if((c|0)<=1934772033){if((c|0)<=1933787467){if((c|0)==1883789683){break l}if((c|0)!=1933723988){break g}iC(a,b,d);continue}if((c|0)==1933787468){break m}if((c|0)!=1934642260){break g}eC(a,b,d);continue}if((c|0)<=1950960964){if((c|0)==1934772034){break k}if((c|0)!=1950701684){break g}WB(a,b,d);continue}if((c|0)==1950960965){break j}if((c|0)==1951551059){break i}if((c|0)!=2052348020){break g}VB(a,b,d);continue}mC(a,b,d);continue}if(!(c&1)){break e}if(c&2?0:I[a+401|0]==3){break d}H[a+380>>2]=d;H[a+200>>2]=c|4;break a}hC(a,b,d);continue}bC(a,b,d);continue}_B(a,b,d);continue}YB(a,b,d);continue}aC(a,b,d);continue}gC(a,b,d);continue}XB(a,b,d);continue}dC(a,b,d);continue}UB(a,b,d);continue}Nk(a,b,d);continue}break}hc(a,260201);X()}hc(a,260201);X()}hc(a,260367);X()}}function PK(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;o=xb-16|0;xb=o;a:{b:{if(!H[c+88>>2]){H[c+100>>2]=H[d+100>>2];H[c+104>>2]=H[d+104>>2];e=H[d+80>>2];H[c+80>>2]=e;f=H[d+76>>2];F[c+94|0]=7;H[c+76>>2]=f;G[c+92>>1]=256;e=e<<2;H[c+84>>2]=e;e=N(e,f);f=jn(c,e);H[o+12>>2]=f;if(f){break a}Nb(H[c+88>>2],0,e);break b}i=H[d+104>>2];j=i-H[d+76>>2]|0;k=H[c+104>>2];m=k-H[c+76>>2]|0;l=H[d+100>>2];g=l+H[d+80>>2]|0;f=H[c+100>>2];e=f+H[c+80>>2]|0;if(!((e|0)<(g|0)|(f|0)>(l|0)|(i|0)>(k|0))){if((j|0)>=(m|0)){break b}}i=(i|0)<(k|0)?k:i;m=i-((j|0)>(m|0)?m:j)|0;k=(f|0)<(l|0)?f:l;g=((e|0)>(g|0)?e:g)-k|0;j=g<<2;l=pc(H[a+100>>2],N(m,j),o+12|0);f=H[o+12>>2];if(f){break a}if(H[c+76>>2]){e=(l+N(j,i-H[c+104>>2]|0)|0)+(H[c+100>>2]-k<<2)|0;f=H[c+88>>2];while(1){e=Ob(e,f,H[c+80>>2]<<2)+j|0;f=H[c+84>>2]+f|0;h=h+1|0;if(h>>>0>2]){continue}break}}Wq(c,l);H[c+100>>2]=k;H[c+104>>2]=i;H[c+80>>2]=g;H[c+84>>2]=j;H[c+76>>2]=m;e=H[c+156>>2];H[e+4>>2]=H[e+4>>2]|1;H[c+72>>2]=1651078259}c:{if((b|0)==65535){if(I[a+676|0]){e=I[a+680|0];h=I[a+679|0];n=I[a+678|0];g=I[a+677|0];break c}b=H[a+656>>2];if(b){e=255;h=255;n=255;g=255;if(I[b+(J[a+668>>1]<<1)|0]&2){break c}}h=0;e=255;n=0;g=0;break c}a=H[a+672>>2]+(b<<2)|0;e=I[a+3|0];h=I[a+2|0];n=I[a+1|0];g=I[a|0]}f=0;i=H[d+76>>2];if(!i|!H[d+80>>2]){break a}l=h&255;m=n&255;g=g&255;b=e&255;a=H[c+84>>2];n=(H[c+88>>2]+N(a,H[c+104>>2]-H[d+104>>2]|0)|0)+(H[d+100>>2]-H[c+100>>2]<<2)|0;j=H[d+88>>2];k=0;e=1;while(1){h=0;f=0;if(e){while(1){f=(h<<2)+n|0;e=(N(b,I[j+h|0])>>>0)/255|0;a=255-e|0;F[f+1|0]=(((N(a,I[f+1|0])&65535)>>>0)/255|0)+(((N(e,m)&65535)>>>0)/255|0);F[f|0]=(((N(a,I[f|0])&65535)>>>0)/255|0)+(((N(e,g)&65535)>>>0)/255|0);F[f+2|0]=(((N(a,I[f+2|0])&65535)>>>0)/255|0)+(((N(e,l)&65535)>>>0)/255|0);F[f+3|0]=e+(((N(a,I[f+3|0])&65535)>>>0)/255|0);f=H[d+80>>2];h=h+1|0;if(f>>>0>h>>>0){continue}break}i=H[d+76>>2];a=H[c+84>>2]}n=a+n|0;j=H[d+84>>2]+j|0;e=f;k=k+1|0;if(k>>>0>>0){continue}break}f=0}xb=o+16|0;return f|0}function $H(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;f=xb-32|0;xb=f;d=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);g=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);a:{if(!g){break a}d=a;a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);d=(d+N(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24),12)|0)+16|0;while(1){a=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);b:{if(!((a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))&c)){break b}a=I[d+4|0];if(!(a&32)&(a>>>7|0)==((H[H[b+16>>2]+40>>2]&-2)!=6|0)){break b}c:{if(a&16){e=(a&64)>>>6|0;a=H[b+16>>2];break c}e=(a&64)>>>6|0;a=H[b+16>>2];e=e^(H[a+40>>2]&-3)==5}i=H[b+8>>2];H[f+16>>2]=H[b+72>>2];if(!Ac(a,i,106086,f+16|0)){break b}d:{e:{f:{if(e){a=H[b+16>>2];Zj(a,583,H[a+20>>2]==1);e=H[b+52>>2];a=H[e+12>>2];H[b+24>>2]=a;e=a+H[e+16>>2]|0;H[b+28>>2]=e;g:{if(!(d>>>0>>0&a>>>0<=d>>>0)){H[b+24>>2]=0;H[b+28>>2]=0;break g}H[b+24>>2]=d;e=e-d|0;a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);H[b+28>>2]=(a>>>0>e>>>0?e:a)+d}H[197455]=0;da(584,d|0,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break f}a=H[b+52>>2];e=H[a+12>>2];H[b+24>>2]=e;H[b+28>>2]=e+H[a+16>>2];a=H[b+16>>2];Zj(a,583,H[a+20>>2]==1);break d}e=H[b+52>>2];a=H[e+12>>2];H[b+24>>2]=a;e=a+H[e+16>>2]|0;H[b+28>>2]=e;h:{if(!(d>>>0>>0&a>>>0<=d>>>0)){H[b+24>>2]=0;H[b+28>>2]=0;break h}H[b+24>>2]=d;e=e-d|0;a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);H[b+28>>2]=(a>>>0>e>>>0?e:a)+d}H[197455]=0;da(584,d|0,b|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break e}}a=$()|0;_()|0;c=H[b+52>>2];d=H[c+12>>2];H[b+24>>2]=d;H[b+28>>2]=d+H[c+16>>2];ea(a|0);X()}a=H[b+52>>2];e=H[a+12>>2];H[b+24>>2]=e;H[b+28>>2]=e+H[a+16>>2]}a=H[b+8>>2];e=H[b+16>>2];H[f>>2]=H[b+72>>2];Ac(e,a,106120,f);if(!I[H[b+16>>2]+60|0]){break a}}a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[b+72>>2]=H[b+72>>2]+1;d=(a<<8&16711680|a<<24|(a>>>8&65280|a>>>24))+d|0;h=h+1|0;if((g|0)!=(h|0)){continue}break}}xb=f+32|0}function fla(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;j=Xh(a,b);h=I[j+4|0]|I[j+5|0]<<8;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if(c){l=h?((h<<8|h>>>8)&65535)+j|0:163632;m=I[l|0]|I[l+1|0]<<8;a=((m<<8|m>>>8)&65535)-1|0;while(1){if(m){o=(n<<2)+d|0;p=H[o>>2];g=0;b=a;while(1){k=b+g>>>1|0;i=N(k,6)+l|0;i=I[i+2|0]|I[i+3|0]<<8|(I[i+4|0]<<16|I[i+5|0]<<24);i=i<<24|i<<8&16711680|(i>>>8&65280|i>>>24);n:{if(i>>>0>p>>>0){b=k-1|0;break n}if((i|0)==(p|0)){break m}g=k+1|0}if((b|0)>=(g|0)){continue}break}}if(e){H[e>>2]=65535}n=n+1|0;if((n|0)!=(c|0)){continue}break}}if(h){break l}a=163632;break k}if(e){H[e>>2]=k}if(!f){return 1}b=H[o>>2];a=1;break b}a=((h<<8|(h&65280)>>>8)&65535)+j|0}b=I[a|0]|I[a+1|0]<<8;if(b){b=((b<<8|b>>>8)&65535)-1|0;g=0;while(1){c=b+g>>>1|0;d=a+N(c,6)|0;d=I[d+2|0]|I[d+3|0]<<8|(I[d+4|0]<<16|I[d+5|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);o:{if(d>>>0>=1145457749){b=c-1|0;break o}if((d|0)==1145457748){break j}g=c+1|0}if((b|0)>=(g|0)){continue}break}}if(e){H[e>>2]=65535}if(h){break i}a=163632;break h}if(e){H[e>>2]=c}b=1145457748;break c}a=((h<<8|(h&65280)>>>8)&65535)+j|0}b=I[a|0]|I[a+1|0]<<8;if(b){b=((b<<8|b>>>8)&65535)-1|0;g=0;while(1){c=b+g>>>1|0;d=a+N(c,6)|0;d=I[d+2|0]|I[d+3|0]<<8|(I[d+4|0]<<16|I[d+5|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);p:{if(d>>>0>=1684434037){b=c-1|0;break p}if((d|0)==1684434036){break g}g=c+1|0}if((b|0)>=(g|0)){continue}break}}if(e){H[e>>2]=65535}if(h){break f}a=163632;break e}if(e){H[e>>2]=c}b=1684434036;break c}a=((h<<8|(h&65280)>>>8)&65535)+j|0}b=I[a|0]|I[a+1|0]<<8;if(b){b=((b<<8|b>>>8)&65535)-1|0;g=0;while(1){c=b+g>>>1|0;d=a+N(c,6)|0;d=I[d+2|0]|I[d+3|0]<<8|(I[d+4|0]<<16|I[d+5|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);q:{if(d>>>0>=1818326127){b=c-1|0;break q}if((d|0)==1818326126){break d}g=c+1|0}if((b|0)>=(g|0)){continue}break}}if(e){H[e>>2]=65535}b=65535;break c}if(e){H[e>>2]=c}b=1818326126}a=0;if(!f){break a}}H[f>>2]=b}return a|0}function xp(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=H[b>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!d){break l}g=H[d>>2];if(!g){break l}if(!a){d=c;break j}H[d>>2]=0;d=c;break k}m:{if(!H[H[197059]>>2]){if(!a){break m}if(!c){break a}g=c;while(1){d=F[e|0];if(d){H[a>>2]=d&57343;a=a+4|0;e=e+1|0;g=g-1|0;if(g){continue}break a}break}H[a>>2]=0;H[b>>2]=0;return c-g|0}d=c;if(!a){break i}break g}return ac(e)|0}f=1;break g}f=0;break h}f=1}while(1){if(!f){f=I[e|0]>>>3|0;if((f-16|f+(g>>26))>>>0>7){break f}f=e+1|0;n:{if(!(g&33554432)){break n}if((I[f|0]&192)!=128){e=e-1|0;break d}f=e+2|0;if(!(g&524288)){break n}if((I[f|0]&192)!=128){e=e-1|0;break d}f=e+3|0}e=f;d=d-1|0;f=1;continue}while(1){g=I[e|0];o:{if(e&3|g-1>>>0>126){break o}g=H[e>>2];if((g|g-16843009)&-2139062144){break o}while(1){d=d-4|0;g=H[e+4>>2];e=e+4|0;if(!((g-16843009|g)&-2139062144)){continue}break}}f=g&255;if(f-1>>>0<=126){d=d-1|0;e=e+1|0;continue}break}f=f-194|0;if(f>>>0>50){break e}e=e+1|0;g=H[(f<<2)+761856>>2];f=0;continue}}while(1){if(!f){if(!d){break a}while(1){p:{f=I[e|0];h=f-1|0;q:{r:{if(h>>>0>126){g=f;break r}if(e&3|d>>>0<5){break q}s:{while(1){g=H[e>>2];if((g|g-16843009)&-2139062144){break s}H[a>>2]=g&255;H[a+4>>2]=I[e+1|0];H[a+8>>2]=I[e+2|0];H[a+12>>2]=I[e+3|0];a=a+16|0;e=e+4|0;d=d-4|0;if(d>>>0>4){continue}break}g=I[e|0]}f=g&255;h=f-1|0}if(h>>>0>126){break p}}H[a>>2]=f;a=a+4|0;e=e+1|0;d=d-1|0;if(d){continue}break a}break}f=f-194|0;if(f>>>0>50){break e}e=e+1|0;g=H[(f<<2)+761856>>2];f=1;continue}i=I[e|0];f=i>>>3|0;if((f-16|f+(g>>26))>>>0>7){break f}t:{u:{h=e+1|0;f=i-128|g<<6;v:{if((f|0)>=0){break v}i=I[h|0]-128|0;if(i>>>0>63){break u}h=e+2|0;f=i|f<<6;if((f|0)>=0){break v}h=I[h|0]-128|0;if(h>>>0>63){break u}f=h|f<<6;h=e+3|0}e=h;H[a>>2]=f;d=d-1|0;a=a+4|0;break t}H[197018]=25;e=e-1|0;break c}f=0;continue}}e=e-1|0;if(g){break d}g=I[e|0]}if(g&255){break d}if(a){H[a>>2]=0;H[b>>2]=0}return c-d|0}H[197018]=25;if(!a){break b}}H[b>>2]=e}return-1}H[b>>2]=e;return c|0}function VH(a,b){a=a|0;b=b|0;var c=0,d=0,e=O(0),f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=L[H[b+8>>2]+64>>2];j=e<=O(0);a:{if(j){break a}k=H[H[b+4>>2]+148>>2];g=H[b+16>>2];if((H[g+40>>2]&-2)==4){d=I[a+6|0]|I[a+7|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}f=Ft(d,a,e);e=O((f|0)/2|0);a=H[b+8>>2];d=H[a+20>>2];c=H[a+16>>2];a=H[c+28>>2];if(a){b=d}else{a=kc(c);b=H[b+8>>2];c=H[b+16>>2];b=H[b+20>>2]}e=O(T(O(O(O(e*O(d|0))/O(a>>>0))+O(.5))));b:{if(O(P(e))>2];if(!a){a=kc(c)}e=O(T(O(O(e/O(a>>>0))+O(.5))));c:{if(O(P(e))>2];if(!c){break a}b=c-1|0;a=0;while(1){d:{if((a|0)==(b|0)){a=c;break d}a=a+1|0;if(I[(H[g+80>>2]+N(a,20)|0)+16|0]&128){continue}}break}if(!c){break a}l=H[g+80>>2];d=0;while(1){b=N(d,20);if(H[(b+l|0)+4>>2]&k){b=b+H[g+88>>2]|0;H[b>>2]=f+H[b>>2];H[b+8>>2]=h+H[b+8>>2]}b=a+1|0;d=b>>>0>>0?c:b;b=a;while(1){e:{b=b+1|0;if(c>>>0<=b>>>0){b=d;break e}if(I[(l+N(b,20)|0)+16|0]&128){continue}}break}i=a>>>0>>0;d=a;a=b;if(i){continue}break}break a}d=I[a+8|0]|I[a+9|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}f=Ft(d,a,e);e=O((f|0)/2|0);a=H[b+8>>2];d=H[a+24>>2];c=H[a+16>>2];a=H[c+28>>2];if(a){b=d}else{a=kc(c);b=H[b+8>>2];c=H[b+16>>2];b=H[b+24>>2]}e=O(T(O(O(O(e*O(d|0))/O(a>>>0))+O(.5))));f:{if(O(P(e))>2];if(!a){a=kc(c)}e=O(T(O(O(e/O(a>>>0))+O(.5))));g:{if(O(P(e))>2];if(!c){break a}a=c-1|0;b=0;while(1){h:{if((a|0)==(b|0)){b=c;break h}b=b+1|0;if(I[(H[g+80>>2]+N(b,20)|0)+16|0]&128){continue}}break}if(!c){break a}i=H[g+80>>2];d=0;while(1){a=N(d,20);if(H[(a+i|0)+4>>2]&k){a=a+H[g+88>>2]|0;H[a+4>>2]=f+H[a+4>>2];H[a+12>>2]=h+H[a+12>>2]}d=b;a=b+1|0;a=a>>>0>>0?c:a;while(1){i:{b=b+1|0;if(c>>>0<=b>>>0){b=a;break i}if(I[(i+N(b,20)|0)+16|0]&128){continue}}break}if(c>>>0>d>>>0){continue}break}}return!j|0} +function KC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=xb-2128|0;xb=d;e=d+2096|0;H[e>>2]=0;H[e+4>>2]=0;e=d+2104|0;H[e>>2]=0;H[e+4>>2]=0;F[d+2112|0]=0;H[d+2080>>2]=0;H[d+2084>>2]=0;H[d+2088>>2]=0;H[d+2092>>2]=0;Nb(d+1040|0,0,1028);f=Nb(d,255,1028);H[c+1024>>2]=1;i=1e9;j=-1;while(1){d=H[(h<<2)+c>>2];e=!d|(d|0)>(i|0);i=e?i:d;j=e?j:h;g=1e9;d=0;e=-1;h=h+1|0;if((h|0)!=257){continue}while(1){h=H[(d<<2)+c>>2];l=!h|(g|0)<(h|0)|(d|0)==(j|0);i=l?e:d;e=d|1;if((e|0)!=257){k=H[(e<<2)+c>>2];g=l?g:h;h=!k|(k|0)>(g|0)|(e|0)==(j|0);g=h?g:k;e=h?i:e;d=d+2|0;continue}break}if((i|0)<0){d=0;while(1){c=H[(f+1040|0)+(d<<2)>>2];if(c){if((c|0)>=33){e=H[a>>2];H[e+20>>2]=40;zb[H[e>>2]](a)}c=c+(f+2080|0)|0;F[c|0]=I[c|0]+1}d=d+1|0;if((d|0)!=257){continue}break}c=32;while(1){i=(f+2080|0)+c|0;j=I[i|0];a:{if(!j){a=c-1|0;break a}g=c-2|0;a=c-1|0;h=a+(f+2080|0)|0;while(1){d=g;while(1){e=d;d=d-1|0;k=e+(f+2080|0)|0;if(!I[k|0]){continue}break}F[i|0]=j-2;F[h|0]=I[h|0]+1;d=(e+f|0)+2081|0;F[d|0]=I[d|0]+2;F[k|0]=I[k|0]-1;j=I[i|0];if(j){continue}break}}d=c>>>0>17;c=a;if(d){continue}break}d=16;while(1){a=(f+2080|0)+d|0;d=d-1|0;c=I[a|0];if(!c){continue}break}F[a|0]=c-1;F[b+16|0]=I[f+2096|0];a=H[f+2092>>2];H[b+8>>2]=H[f+2088>>2];H[b+12>>2]=a;a=H[f+2084>>2];H[b>>2]=H[f+2080>>2];H[b+4>>2]=a;e=0;g=1;while(1){d=0;while(1){if(H[(f+1040|0)+(d<<2)>>2]==(g|0)){F[(b+e|0)+17|0]=d;e=e+1|0}a=d|1;if(H[(f+1040|0)+(a<<2)>>2]==(g|0)){F[(b+e|0)+17|0]=a;e=e+1|0}d=d+2|0;if((d|0)!=256){continue}break}g=g+1|0;if((g|0)!=33){continue}break}H[b+276>>2]=0;xb=f+2128|0;return}d=j<<2;e=d+c|0;l=e;k=H[e>>2];g=i<<2;e=g+c|0;H[l>>2]=k+H[e>>2];H[e>>2]=0;e=d+(f+1040|0)|0;H[e>>2]=H[e>>2]+1;e=d+f|0;d=H[e>>2];if((d|0)>=0){while(1){d=d<<2;e=d+(f+1040|0)|0;H[e>>2]=H[e>>2]+1;e=d+f|0;d=H[e>>2];if((d|0)>=0){continue}break}}H[e>>2]=i;d=g+(f+1040|0)|0;H[d>>2]=H[d>>2]+1;h=0;i=1e9;j=-1;d=H[f+g>>2];if((d|0)<0){continue}while(1){d=d<<2;e=d+(f+1040|0)|0;H[e>>2]=H[e>>2]+1;d=H[d+f>>2];if((d|0)>=0){continue}break}continue}}function pR(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;t=xb-16|0;xb=t;H[c>>2]=a;w=d&512;x=h<<2;while(1){if((u|0)==4){if(I[n+11|0]>>>7|0){e=H[n+4>>2]}else{e=I[n+11|0]}if(e>>>0>1){z=t,A=Ue(n),H[z+8>>2]=A;z=c,A=Ul(To(t+8|0,1),kh(n),H[c>>2]),H[z>>2]=A}d=d&176;if((d|0)!=16){if((d|0)==32){a=H[c>>2]}H[b>>2]=a}xb=t+16|0}else{a:{b:{switch(F[i+u|0]){case 0:H[b>>2]=H[c>>2];break a;case 1:H[b>>2]=H[c>>2];h=zb[H[H[g>>2]+44>>2]](g,32)|0;p=H[c>>2];H[c>>2]=p+4;H[p>>2]=h;break a;case 3:if(I[n+11|0]>>>7|0){h=H[n+4>>2]}else{h=I[n+11|0]}if(!h){break a}if(I[n+11|0]>>>7|0){h=H[n>>2]}else{h=n}h=H[h>>2];p=H[c>>2];H[c>>2]=p+4;H[p>>2]=h;break a;case 2:p=!w;if(I[m+11|0]>>>7|0){h=H[m+4>>2]}else{h=I[m+11|0]}if(p|!h){break a}z=c,A=Ul(Ue(m),kh(m),H[c>>2]),H[z>>2]=A;break a;case 4:break b;default:break a}}y=H[c>>2];e=e+x|0;h=e;while(1){c:{if(f>>>0<=h>>>0){break c}if(!(zb[H[H[g>>2]+12>>2]](g,2048,H[h>>2])|0)){break c}h=h+4|0;continue}break}if((o|0)>0){p=H[c>>2];r=o;while(1){if(!(!r|e>>>0>=h>>>0)){h=h-4|0;s=H[h>>2];q=p+4|0;H[c>>2]=q;H[p>>2]=s;r=r-1|0;p=q;continue}break}d:{if(!r){q=0;break d}q=zb[H[H[g>>2]+44>>2]](g,48)|0;p=H[c>>2]}while(1){s=p+4|0;if((r|0)>0){H[p>>2]=q;r=r-1|0;p=s;continue}break}H[c>>2]=s;H[p>>2]=j}e:{if((e|0)==(h|0)){p=zb[H[H[g>>2]+44>>2]](g,48)|0;q=H[c>>2];h=q+4|0;H[c>>2]=h;H[q>>2]=p;break e}if(I[l+11|0]>>>7|0){p=H[l>>2]}else{p=l}q=F[p|0];if(I[l+11|0]>>>7|0){p=H[l+4>>2]}else{p=I[l+11|0]}q=p?q:-1;p=0;r=0;while(1){if((e|0)!=(h|0)){f:{if((p|0)!=(q|0)){s=p;break f}q=H[c>>2];H[c>>2]=q+4;H[q>>2]=k;s=0;if(I[l+11|0]>>>7|0){q=H[l+4>>2]}else{q=I[l+11|0]}r=r+1|0;if(q>>>0<=r>>>0){q=p;break f}if(I[l+11|0]>>>7|0){p=H[l>>2]}else{p=l}if(I[p+r|0]==127){q=-1;break f}if(I[l+11|0]>>>7|0){p=H[l>>2]}else{p=l}q=F[p+r|0]}h=h-4|0;p=H[h>>2];v=H[c>>2];H[c>>2]=v+4;H[v>>2]=p;p=s+1|0;continue}break}h=H[c>>2]}nk(y,h)}u=u+1|0;continue}break}}function cJ(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;f=xb-16|0;xb=f;h=H[b+16>>2];n=H[a+492>>2];zb[H[b+28>>2]](b);e=H[b>>2];a:{if(!(e>>>0>=K[b+8>>2]|I[e|0]!=91)){zb[H[b+32>>2]](b);zb[H[b+28>>2]](b);a=H[b>>2];if(a>>>0>2]&I[a|0]==93){break a}H[b+12>>2]=3;break a}e=zb[H[b+36>>2]](b)|0;if((e|0)<0){H[b+12>>2]=3;break a}b:{d=H[b+8>>2];c=H[b>>2];c:{if(d>>>0>>0){break c}d=d-c>>3;if((d|0)>=(e|0)){break c}if(H[b+368>>2]){e=d;break c}e=pc(h,24,f+12|0);H[b+368>>2]=e;c=H[f+12>>2];if(c){break b}i=f;H[e+16>>2]=12;H[e+12>>2]=13;H[e+8>>2]=0;H[e>>2]=80;H[e+4>>2]=241;c=zb[H[h+4>>2]](h,964)|0;d:{if(!c){H[e+20>>2]=c;c=64;break d}o=e,p=Nb(c,0,964),H[o+20>>2]=p;c=0}H[i+12>>2]=c;e=d;if(c){break b}}zb[H[b+32>>2]](b);if(H[b+12>>2]){break a}j=b+316|0;zb[H[b+28>>2]](b);if(!H[b+312>>2]){c=zb[H[H[n>>2]>>2]](j,e,h)|0;H[f+12>>2]=c;if(c){break b}}d=H[b>>2];e:{if(K[b+8>>2]<=d+4>>>0){break e}while(1){if(gc(d,23623,3)){break e}zb[H[b+32>>2]](b);d=zb[H[b+36>>2]](b)|0;k=H[H[a+128>>2]+52>>2];c=H[b+8>>2];zb[H[b+28>>2]](b);f:{g=H[b>>2];g:{if(g>>>0>=c>>>0|I[g|0]-48>>>0>9){break g}g=zb[H[b+36>>2]](b)|0;zb[H[b+32>>2]](b);if((g|0)<0){break g}i=c;c=H[b>>2];l=c+1|0;if((g|0)<(i-l|0)){break f}}if(k){break a}H[b+12>>2]=3;break a}H[b>>2]=(c+g|0)+1;if(H[b+12>>2]){break a}zb[H[b+32>>2]](b);if(H[b+12>>2]){break a}zb[H[b+28>>2]](b);c=H[b>>2];h:{if(K[b+8>>2]<=c+4>>>0){break h}if(gc(c,23645,3)){break h}zb[H[b+32>>2]](b);zb[H[b+28>>2]](b)}c=H[b+368>>2];if(c){ln(d,m,c,h);d=m}if(!H[b+312>>2]){c=H[a+172>>2];i:{if((c|0)>=0){if(c>>>0>g>>>0){c=3;H[f+12>>2]=3;break b}k=pc(h,g,f+12|0);c=H[f+12>>2];if(c){break b}c=Ob(k,l,g);zb[H[n+16>>2]](c,g,4330);i=d;d=H[a+172>>2];o=f,p=zb[H[b+360>>2]](j,i,d+c|0,g-d|0)|0,H[o+12>>2]=p;if(c){zb[H[h+8>>2]](h,c)}c=H[f+12>>2];break i}c=zb[H[b+360>>2]](j,d,l,g)|0;H[f+12>>2]=c}if(c){break b}}m=m+1|0;d=H[b>>2];if(K[b+8>>2]>d+4>>>0){continue}break}}if(H[b+312>>2]){break a}H[b+312>>2]=e;break a}H[b+12>>2]=c}xb=f+16|0}function kS(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;i=xb-256|0;xb=i;H[i+248>>2]=37;H[i+252>>2]=0;m=Yl(i+248|1,239630,H[c+4>>2]);H[i+204>>2]=i+208;a=Od();a:{if(m){k=H[c+8>>2];j=i- -64|0;H[j>>2]=g;H[j+4>>2]=h;H[i+56>>2]=e;H[i+60>>2]=f;H[i+48>>2]=k;a=Fe(i+208|0,30,a,i+248|0,i+48|0);break a}H[i+80>>2]=e;H[i+84>>2]=f;H[i+88>>2]=g;H[i+92>>2]=h;a=Fe(i+208|0,30,a,i+248|0,i+80|0)}H[i+128>>2]=594;k=Ed(i+192|0,0,i+128|0);l=i+208|0;j=l;b:{c:{d:{if((a|0)>=30){e:{if(m){H[197455]=0;a=va(3442)|0;j=H[197455];H[197455]=0;if((j|0)==1){break c}j=H[c+8>>2];H[i+16>>2]=g;H[i+20>>2]=h;H[i>>2]=j;H[197455]=0;H[i+8>>2]=e;H[i+12>>2]=f;a=la(3464,i+204|0,a|0,i+248|0,i|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break e}break c}H[197455]=0;a=va(3442)|0;j=H[197455];H[197455]=0;if((j|0)==1){break c}H[i+32>>2]=e;H[i+36>>2]=f;H[197455]=0;H[i+40>>2]=g;H[i+44>>2]=h;a=la(3464,i+204|0,a|0,i+248|0,i+32|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break c}}if((a|0)==-1){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)==1){break c}break d}ae(k,H[i+204>>2]);j=H[i+204>>2]}g=a+j|0;h=ef(j,g,c);H[i+116>>2]=594;e=Ed(i+120|0,0,i+116|0);f:{g:{if(H[i+204>>2]==(i+208|0)){a=i+128|0;break g}a=Tb(a<<1);if(!a){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)!=1){break d}c=$()|0;_()|0;break f}ae(e,a);l=H[i+204>>2]}H[197455]=0;f=H[c+28>>2];H[i+104>>2]=f;H[f+4>>2]=H[f+4>>2]+1;f=H[197455];H[197455]=0;h:{i:{if((f|0)!=1){H[197455]=0;ua(3465,l|0,h|0,g|0,a|0,i+116|0,i+112|0,i+104|0);f=H[197455];H[197455]=0;if((f|0)==1){break i}f=H[i+104>>2];g=H[f+4>>2]-1|0;H[f+4>>2]=g;if((g|0)==-1){zb[H[H[f>>2]+8>>2]](f)}H[197455]=0;a=ma(3466,b|0,a|0,H[i+116>>2],H[i+112>>2],c|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}Bc(e);Bc(k);xb=i+256|0;return a|0}c=$()|0;_()|0;break f}c=$()|0;_()|0;a=H[i+104>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break f}c=$()|0;_()|0}Bc(e);break b}X()}c=$()|0;_()|0}Bc(k);ea(c|0);X()}function aS(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;i=xb-432|0;xb=i;H[i+424>>2]=37;H[i+428>>2]=0;m=Yl(i+424|1,239630,H[c+4>>2]);H[i+380>>2]=i+384;a=Od();a:{if(m){k=H[c+8>>2];j=i- -64|0;H[j>>2]=g;H[j+4>>2]=h;H[i+56>>2]=e;H[i+60>>2]=f;H[i+48>>2]=k;a=Fe(i+384|0,30,a,i+424|0,i+48|0);break a}H[i+80>>2]=e;H[i+84>>2]=f;H[i+88>>2]=g;H[i+92>>2]=h;a=Fe(i+384|0,30,a,i+424|0,i+80|0)}H[i+128>>2]=594;k=Ed(i+368|0,0,i+128|0);l=i+384|0;j=l;b:{c:{d:{if((a|0)>=30){e:{if(m){H[197455]=0;a=va(3442)|0;j=H[197455];H[197455]=0;if((j|0)==1){break c}j=H[c+8>>2];H[i+16>>2]=g;H[i+20>>2]=h;H[i>>2]=j;H[197455]=0;H[i+8>>2]=e;H[i+12>>2]=f;a=la(3464,i+380|0,a|0,i+424|0,i|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){break e}break c}H[197455]=0;a=va(3442)|0;j=H[197455];H[197455]=0;if((j|0)==1){break c}H[i+32>>2]=e;H[i+36>>2]=f;H[197455]=0;H[i+40>>2]=g;H[i+44>>2]=h;a=la(3464,i+380|0,a|0,i+424|0,i+32|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break c}}if((a|0)==-1){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)==1){break c}break d}ae(k,H[i+380>>2]);j=H[i+380>>2]}g=a+j|0;h=ef(j,g,c);H[i+116>>2]=594;e=Ed(i+120|0,0,i+116|0);f:{g:{if(H[i+380>>2]==(i+384|0)){a=i+128|0;break g}a=Tb(a<<3);if(!a){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)!=1){break d}c=$()|0;_()|0;break f}ae(e,a);l=H[i+380>>2]}H[197455]=0;f=H[c+28>>2];H[i+104>>2]=f;H[f+4>>2]=H[f+4>>2]+1;f=H[197455];H[197455]=0;h:{i:{if((f|0)!=1){H[197455]=0;ua(3474,l|0,h|0,g|0,a|0,i+116|0,i+112|0,i+104|0);f=H[197455];H[197455]=0;if((f|0)==1){break i}f=H[i+104>>2];g=H[f+4>>2]-1|0;H[f+4>>2]=g;if((g|0)==-1){zb[H[H[f>>2]+8>>2]](f)}H[197455]=0;a=ma(1709,b|0,a|0,H[i+116>>2],H[i+112>>2],c|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}Bc(e);Bc(k);xb=i+432|0;return a|0}c=$()|0;_()|0;break f}c=$()|0;_()|0;a=H[i+104>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break f}c=$()|0;_()|0}Bc(e);break b}X()}c=$()|0;_()|0}Bc(k);ea(c|0);X()}function Fda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0;v=xb-400|0;xb=v;w=H[a+332>>2];a=H[b+84>>2];b=v;while(1){j=H[a+192>>2];o=G[c+96>>1];k=H[a+64>>2];n=G[c+32>>1];l=N(G[c>>1],H[a>>2])<<13|1024;g=N(H[a+128>>2],G[c+64>>1]);m=l+N(g,-11586)>>11;i=N(H[a+224>>2],G[c+112>>1]);f=N(H[a+32>>2],G[c+16>>1]);h=N(H[a+96>>2],G[c+48>>1]);r=f-h|0;p=N(H[a+160>>2],G[c+80>>1]);q=i+(r-p|0)<<2;H[b+280>>2]=m-q;H[b+84>>2]=m+q;o=N(j,o);k=N(k,n);n=N(o+k|0,9058);m=n+N(o,-14084)|0;q=l+N(g,2578)|0;t=m+q|0;j=i<<13;i=N(h+p|0,-1297)-j|0;x=N(f+h|0,10935);u=i+(x+N(h,-3474)|0)|0;H[b+336>>2]=t-u>>11;H[b+28>>2]=t+u>>11;o=N(o,-11295)+N(k,5027)|0;t=l+N(g,-7223)|0;u=o+t|0;s=i;i=f+p|0;y=N(i,9810);s=s+(y+N(p,-19447)|0)|0;H[b+308>>2]=u-s>>11;H[b+56>>2]=u+s>>11;m=q-m|0;r=N(r,3826)-j|0;s=N(h,5529);h=N(p-h|0,11512);q=r+(s+h|0)|0;H[b+224>>2]=m-q>>11;H[b+140>>2]=m+q>>11;g=l+N(g,10438)|0;l=n+N(k,2237)|0;k=g-l|0;n=N(i,6164);m=r+(n+N(f,-8693)|0)|0;H[b+196>>2]=k-m>>11;H[b+168>>2]=k+m>>11;g=g+l|0;f=j+((N(f,-9232)+x|0)+y|0)|0;H[b+364>>2]=g-f>>11;H[b>>2]=f+g>>11;f=t-o|0;h=j+(n+(h+N(p,-13850)|0)|0)|0;H[b+252>>2]=f-h>>11;H[b+112>>2]=f+h>>11;b=b+4|0;a=a+4|0;c=c+2|0;z=z+1|0;if((z|0)!=7){continue}break}a=w+128|0;h=0;b=v;while(1){p=H[b+16>>2];f=H[b+24>>2];g=N(p-f|0,7223);c=H[(h<<2)+d>>2]+e|0;l=H[b+12>>2];j=H[b+4>>2];k=N(l+j|0,7663);n=N(j-l|0,1395);i=j;j=H[b+20>>2];w=N(i+j|0,5027);m=(k-n|0)+w|0;s=g+N(f,-637)|0;o=(H[b>>2]<<13)+131072|0;i=f;f=H[b+8>>2];r=i+f|0;i=o+N(r,10438)|0;q=s+i|0;F[c|0]=I[a+(m+q>>>18&1023)|0];F[c+6|0]=I[a+(q-m>>>18&1023)|0];l=N(j+l|0,-11295);k=l+(k+n|0)|0;n=N(f-p|0,2578);g=g+(n+(o+N(p,-15083)|0)|0)|0;F[c+1|0]=I[a+(k+g>>>18&1023)|0];F[c+5|0]=I[a+(g-k>>>18&1023)|0];g=l+(w+N(j,15326)|0)|0;f=i+(n+N(f,-20239)|0)|0;F[c+2|0]=I[a+(g+f>>>18&1023)|0];F[c+4|0]=I[a+(f-g>>>18&1023)|0];F[c+3|0]=I[a+(o+N(p-r|0,11585)>>>18&1023)|0];b=b+28|0;h=h+1|0;if((h|0)!=14){continue}break}xb=v+400|0}function $da(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,K=0,L=0,M=0;b=H[b+84>>2];j=N(H[b+108>>2],G[c+54>>1]);f=N(H[b+44>>2],G[c+22>>1]);g=N(j+f|0,4433)+1024|0;k=N(H[b+100>>2],G[c+50>>1]);h=N(H[b+36>>2],G[c+18>>1]);i=N(k+h|0,4433)+1024|0;m=N(H[b+76>>2],G[c+38>>1]);n=N(H[b+12>>2],G[c+6>>1]);t=m+n<<2;u=g+N(f,6270)>>11;o=t+u|0;p=N(H[b+68>>2],G[c+34>>1]);q=N(H[b+4>>2],G[c+2>>1]);v=p+q<<2;w=i+N(h,6270)>>11;l=v+w|0;h=N(o+l|0,4433);f=H[d>>2]+e|0;a=H[a+332>>2]+128|0;r=N(H[b+64>>2],J[c+32>>1]);x=N(H[b>>2],J[c>>1]);y=r+x<<2;z=N(H[b+96>>2],G[c+48>>1]);s=N(H[b+32>>2],G[c+16>>1]);A=N(z+s|0,4433)+1024|0;s=A+N(s,6270)>>11;B=(y+s|0)+16|0;C=N(H[b+72>>2],J[c+36>>1]);D=N(H[b+8>>2],J[c+4>>1]);E=C+D<<2;K=N(H[b+104>>2],G[c+52>>1]);b=N(H[b+40>>2],G[c+20>>1]);L=N(K+b|0,4433)+1024|0;M=L+N(b,6270)>>11;b=E+M|0;c=B+b<<13;l=h+N(l,6270)|0;F[f|0]=I[a+(c+l>>>18&1023)|0];F[f+3|0]=I[a+(c-l>>>18&1023)|0];c=h+N(o,-15137)|0;b=B-b<<13;F[f+1|0]=I[a+(c+b>>>18&1023)|0];F[f+2|0]=I[a+(b-c>>>18&1023)|0];f=g+N(j,-15137)>>11;g=n-m<<2;h=f+g|0;i=i+N(k,-15137)>>11;j=q-p<<2;k=i+j|0;c=N(h+k|0,4433);b=H[d+4>>2]+e|0;k=c+N(k,6270)|0;m=N(z,-15137)+A>>11;n=x-r<<2;o=(m+n|0)+16|0;p=N(K,-15137)+L>>11;q=D-C<<2;l=p+q|0;r=o+l<<13;F[b|0]=I[a+(k+r>>>18&1023)|0];F[b+3|0]=I[a+(r-k>>>18&1023)|0];c=c+N(h,-15137)|0;h=o-l<<13;F[b+1|0]=I[a+(c+h>>>18&1023)|0];F[b+2|0]=I[a+(h-c>>>18&1023)|0];f=g-f|0;g=j-i|0;c=N(f+g|0,4433);b=H[d+8>>2]+e|0;g=c+N(g,6270)|0;i=(n-m|0)+16|0;h=q-p|0;j=i+h<<13;F[b|0]=I[a+(g+j>>>18&1023)|0];F[b+3|0]=I[a+(j-g>>>18&1023)|0];c=c+N(f,-15137)|0;f=i-h<<13;F[b+1|0]=I[a+(c+f>>>18&1023)|0];F[b+2|0]=I[a+(f-c>>>18&1023)|0];f=t-u|0;g=v-w|0;c=N(f+g|0,4433);b=H[d+12>>2]+e|0;d=c+N(g,6270)|0;e=(y-s|0)+16|0;g=E-M|0;i=e+g<<13;F[b|0]=I[a+(d+i>>>18&1023)|0];F[b+3|0]=I[a+(i-d>>>18&1023)|0];c=c+N(f,-15137)|0;d=e-g<<13;F[b+1|0]=I[a+(c+d>>>18&1023)|0];F[b+2|0]=I[a+(d-c>>>18&1023)|0]} +function yS(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;a=xb-384|0;xb=a;H[a+368>>2]=c;H[a+376>>2]=b;Xo(a+216|0,d,a+240|0,a+236|0,a+232|0);b=Dc(a+200|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+196>>2]=c;H[a+28>>2]=a+32;H[a+24>>2]=0;F[a+23|0]=1;F[a+22|0]=69;while(1){d:{H[197455]=0;d=da(3449,a+376|0,a+368|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+196>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+196>>2]=d+c}H[197455]=0;d=aa(3451,a+376|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=Zl(d,a+23|0,a+22|0,c,a+196|0,H[a+236>>2],H[a+232>>2],a+216|0,a+32|0,a+28|0,a+24|0,a+240|0);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+376|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+227|0]>>>7|0){d=H[a+220>>2]}else{d=I[a+227|0]}e:{if(!d|!I[a+23|0]){break e}d=H[a+28>>2];if((d-(a+32|0)|0)>159){break e}H[a+28>>2]=d+4;H[d>>2]=H[a+24>>2]}H[197455]=0;ka(3441,a|0,c|0,H[a+196>>2],e|0);c=H[197455];H[197455]=0;f:{if((c|0)==1){break f}c=H[a+8>>2];d=H[a+12>>2];g=H[a+4>>2];H[f>>2]=H[a>>2];H[f+4>>2]=g;H[f+8>>2]=c;H[f+12>>2]=d;H[197455]=0;fe(a+216|0,a+32|0,H[a+28>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+376|0,a+368|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+376>>2];_b(b);_b(a+216|0);xb=a+384|0;break a}}c=$()|0;_()|0;_b(b);_b(a+216|0);ea(c|0);X()}return c|0}function lla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=xb-32|0;xb=f;H[f+28>>2]=0;H[f+20>>2]=0;H[f+24>>2]=0;H[f+12>>2]=0;H[f+16>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{switch(a-6|0){default:d=a-265|0;if(d>>>0>9){break f}d=1<>2];if(d){d=d-1|0;if(d>>>0>2]){break d}d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;H[f+24>>2]=g;H[f+28>>2]=d;break c}F[b+20|0]=1;d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;H[f+24>>2]=g;H[f+28>>2]=d;break c}e=b+24|0;d=H[e>>2];m:{if(d){d=d-1|0;if(d>>>0>=K[b+32>>2]){d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);h=+z();break m}h=M[H[b+36>>2]+(d<<3)>>3];break m}F[b+20|0]=1;d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);h=+z()}n:{if(P(h)<2147483648){d=~~h;break n}d=-2147483648}if((d|0)<0){F[b+20|0]=1;d=0}H[c+16>>2]=d;break c}o:{if(I[b+48|0]){e=H[b+44>>2];break o}d=H[b+24>>2];p:{if(d){d=d-1|0;if(d>>>0>=K[b+32>>2]){d=H[40909];e=H[40908];H[196248]=e;H[196249]=d;x(0,e|0);x(1,d|0);h=+z();break p}h=M[H[b+36>>2]+(d<<3)>>3];break p}F[b+20|0]=1;d=H[40909];e=H[40908];H[196248]=e;H[196249]=d;x(0,e|0);x(1,d|0);h=+z()}q:{if(P(h)<2147483648){e=~~h;break q}e=-2147483648}if((e|0)<0){F[b+20|0]=1;e=0}H[b+44>>2]=e}F[b+48|0]=1;H[c+24>>2]=e;e=b+24|0;break c}kl(b+20|0,b);break e}h=jl(b);d=H[b+24>>2];if(d>>>0>2]){H[b+24>>2]=d+1;M[H[b+36>>2]+(d<<3)>>3]=h;break e}F[b+20|0]=1;d=H[40909];H[196248]=H[40908];H[196249]=d;M[98124]=h;break e}Qi(a,b)}if(!H[b+24>>2]){break b}break a}d=H[b+36>>2]+(d<<3)|0;g=H[d+4>>2];H[f+24>>2]=H[d>>2];H[f+28>>2]=g}H[e>>2]=0}if(I[b+20|0]|(I[b+40|0]|I[b+16|0])|H[b+28>>2]<0){break a}WF(c,a,b,f+8|0)}xb=f+32|0}function NS(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;a=xb-288|0;xb=a;H[a+272>>2]=c;H[a+280>>2]=b;_o(a+224|0,d,a+240|0,a+239|0,a+238|0);b=Dc(a+208|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+204>>2]=c;H[a+28>>2]=a+32;H[a+24>>2]=0;F[a+23|0]=1;F[a+22|0]=69;while(1){d:{H[197455]=0;d=da(3420,a+280|0,a+272|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+204>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+204>>2]=d+c}H[197455]=0;d=aa(3422,a+280|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=$l(d,a+23|0,a+22|0,c,a+204|0,F[a+239|0],F[a+238|0],a+224|0,a+32|0,a+28|0,a+24|0,a+240|0);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+280|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+235|0]>>>7|0){d=H[a+228>>2]}else{d=I[a+235|0]}e:{if(!d|!I[a+23|0]){break e}d=H[a+28>>2];if((d-(a+32|0)|0)>159){break e}H[a+28>>2]=d+4;H[d>>2]=H[a+24>>2]}H[197455]=0;ka(3441,a|0,c|0,H[a+204>>2],e|0);c=H[197455];H[197455]=0;f:{if((c|0)==1){break f}c=H[a+8>>2];d=H[a+12>>2];g=H[a+4>>2];H[f>>2]=H[a>>2];H[f+4>>2]=g;H[f+8>>2]=c;H[f+12>>2]=d;H[197455]=0;fe(a+224|0,a+32|0,H[a+28>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+280|0,a+272|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+280>>2];_b(b);_b(a+224|0);xb=a+288|0;break a}}c=$()|0;_()|0;_b(b);_b(a+224|0);ea(c|0);X()}return c|0}function Oja(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;if(Ac(c,b,105060,0)){Fn(b,c,2,11,-1,-1);k=H[c+68>>2];a:{if(!k){break a}f=k-1|0;a=0;d=H[c+80>>2];g=I[d+15|0];while(1){b:{if((a|0)==(f|0)){a=k;break b}a=a+1|0;if((g|0)==I[(d+N(a,20)|0)+15|0]){continue}}break}if(!k){break a}h=H[c+80>>2];d=I[h+15|0];g=0;e=k;while(1){f=a;c:{switch(d&15){case 0:case 2:d:{e:{a=g+3|0;if(f>>>0>>0){break e}d=N(g,20)+h|0;if(I[d+18|0]!=16|I[d+38|0]!=18|I[d+58|0]!=4){break e}i=3;j=0;break d}i=0;a=g;j=1}d=g;f:{if(a>>>0>=f>>>0){break f}while(1){g:{d=N(a,20)+h|0;if(I[d+12|0]&32){break g}d=I[d+18|0];if(d>>>0>31|!(1<>>0>>0){a=0;e=g;if(!j){while(1){F[(N(e,20)+h|0)+19|0]=5;e=e+1|0;a=a+1|0;if((i|0)!=(a|0)){continue}break}}if(i-1>>>0>6){while(1){a=N(e,20)+h|0;F[a+39|0]=5;F[a+19|0]=5;F[a+59|0]=5;F[a+79|0]=5;F[a+99|0]=5;F[a+119|0]=5;F[a+139|0]=5;F[a+159|0]=5;e=e+8|0;if((l|0)!=(e|0)){continue}break}}a=l}if(a>>>0>>0){l=d+(a^-1)|0;e=0;j=d-a&7;if(j){while(1){F[(N(a,20)+h|0)+19|0]=3;a=a+1|0;e=e+1|0;if((j|0)!=(e|0)){continue}break}}if(l>>>0>=7){while(1){e=N(a,20)+h|0;F[e+39|0]=3;F[e+19|0]=3;F[e+59|0]=3;F[e+79|0]=3;F[e+99|0]=3;F[e+119|0]=3;F[e+139|0]=3;F[e+159|0]=3;a=a+8|0;if((d|0)!=(a|0)){continue}break}}a=d}if(a>>>0>>0){F[(N(a,20)+h|0)+19|0]=4;a=a+1|0}d=5;if(a>>>0>>0){while(1){i=3;e=N(a,20)+h|0;j=I[e+18|0];h:{i:{if((j|0)==22){break i}if(I[e+19|0]<4){break h}if((j|0)==30){i=I[e-1|0];break i}i=8;if(!((d|0)!=5|(j|0)!=27)){d=8;break i}if((d|0)==8){i=7;d=8;if((j|0)==10){break i}i=(j|0)==27?8:9;d=i;break i}i=d}F[e+19|0]=i}a=a+1|0;if((f|0)!=(a|0)){continue}break}}Ws(c,g,f,764);h=H[c+80>>2];e=H[c+68>>2];break;default:break c}}a=f+1|0;g=a>>>0>>0?e:a;d=I[(N(f,20)+h|0)+15|0];a=f;while(1){j:{a=a+1|0;if(e>>>0<=a>>>0){a=g;break j}if((d|0)==I[(N(a,20)+h|0)+15|0]){continue}}break}g=f;if(f>>>0>>0){continue}break}}Ac(c,b,105638,0)}}function Gca(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;h=H[a+420>>2];if(H[a+236>>2]){d=H[h+68>>2];if(!d){Sk(a,H[h+72>>2]);d=H[a+236>>2];H[h+72>>2]=H[h+72>>2]+1&7}H[h+68>>2]=d-1}if(H[a+316>>2]>0){o=H[a+380>>2];q=h+204|0;while(1){c=p<<2;d=H[(c+a|0)+320>>2]<<2;l=H[(d+a|0)+292>>2];m=H[l+20>>2];i=(m<<2)+h|0;d=d+h|0;f=d;e=H[i+76>>2]+H[d+52>>2]|0;n=H[b+c>>2];c=G[n>>1];g=H[d+36>>2];a:{if((c|0)==(g|0)){Lc(a,e,0);H[f+52>>2]=0;break a}H[d+36>>2]=c;Lc(a,e,1);d=0;c=c-g|0;b:{if((c|0)>0){j=0;k=2;g=4;break b}c=0-c|0;j=1;k=3;g=8}Lc(a,e+1|0,j);H[f+52>>2]=g;e=e+k|0;g=c-1|0;c:{if(!g){break c}d=1;Lc(a,e,1);e=H[i+76>>2]+20|0;c=g;if((c|0)==1){break c}while(1){Lc(a,e,1);e=e+1|0;d=d<<1;i=c>>>0>3;c=c>>1;if(i){continue}break}}Lc(a,e,0);c=a+m|0;d:{if(1<>1<=(d|0)){if(1<>1>=(d|0)){break d}c=H[f+52>>2]+8|0}else{c=0}H[f+52>>2]=c}if(d>>>0<2){break a}e=e+14|0;while(1){c=d>>1;Lc(a,e,(c&g)!=0);f=d>>>0>3;d=c;if(f){continue}break}}e=1;k=H[l+24>>2];c=H[a+384>>2];j=c;e:{if((c|0)<=0){break e}while(1){if(!J[(H[(j<<2)+o>>2]<<1)+n>>1]){d=(j|0)>1;j=j-1|0;if(d){continue}break e}break}m=a+k|0;l=(k<<2)+h|0;while(1){d=(H[l+140>>2]+N(e,3)|0)-3|0;Lc(a,d,0);c=J[(H[(e<<2)+o>>2]<<1)+n>>1];if(!c){while(1){Lc(a,d+1|0,0);d=d+3|0;e=e+1|0;c=J[(H[(e<<2)+o>>2]<<1)+n>>1];if(!c){continue}break}}g=e;Lc(a,d+1|0,1);e=c<<16;Lc(a,q,e>>16<=0);d=d+2|0;f:{g:{h:{f=c;c=e>>31;f=((f^c)-c&65535)-1|0;if(!f){break h}Lc(a,d,1);if((f|0)==1){break h}Lc(a,d,1);c=H[l+140>>2]+((g|0)>I[m+184|0]?217:189)|0;d=2;if(f>>>0>3){e=f;while(1){i=c;Lc(a,c,1);c=c+1|0;d=d<<1;r=e>>>0<8;e=e>>1;if(!r){continue}break}Lc(a,c,0);if(!d){break f}e=i+15|0;break g}Lc(a,c,0);e=c+14|0;break g}Lc(a,d,0);break f}while(1){c=d>>1;Lc(a,e,(c&f)!=0);i=d>>>0>3;d=c;if(i){continue}break}}e=g+1|0;if((g|0)<(j|0)){continue}break}c=H[a+384>>2]}if((c|0)>=(e|0)){Lc(a,(H[((k<<2)+h|0)+140>>2]+N(e,3)|0)-3|0,1)}p=p+1|0;if((p|0)>2]){continue}break}}return 1}function Fja(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;f=xb-32|0;xb=f;if(Ac(c,b,105185,0)){Fn(b,c,7,1,18,-1);m=H[c+68>>2];a:{if(!m){break a}d=m-1|0;a=0;g=H[c+80>>2];h=I[g+15|0];while(1){b:{if((a|0)==(d|0)){a=m;break b}a=a+1|0;if((h|0)==I[(g+N(a,20)|0)+15|0]){continue}}break}if(!m){break a}i=H[c+80>>2];e=I[i+15|0];g=0;while(1){h=a;c:{if(!(1<<(e&15)&135)){break c}d:{if(h-g>>>0<2){break d}j=N(g,20)+i|0;if(I[j+18|0]!=18){break d}e=g+1|0;if(e>>>0>=h>>>0){break d}n=h-1|0;a=e;while(1){e:{f:{g:{o=N(a,20)+i|0;d=I[o+18|0];if(d>>>0<=63){k=d&31;if((d&63)>>>0>=32){k=1<>>32-k}l=(l&2143289344|k&238)!=0}else{l=0}if(!l){if((d|32)!=44){break g}d=J[o+12>>1]&32;if((a|0)!=(n|0)?d:0){break e}if(d){break f}}a=a-1|0;break f}if((a|0)!=(n|0)){break e}a=n}d=a+1|0;if(d-g>>>0>=2){Jd(c,g,d)}H[f+24>>2]=H[j+16>>2];d=H[j+12>>2];H[f+16>>2]=H[j+8>>2];H[f+20>>2]=d;d=H[j+4>>2];H[f+8>>2]=H[j>>2];H[f+12>>2]=d;$c(j,N(e,20)+i|0,N(a-g|0,20));d=N(a,20)+i|0;H[d+16>>2]=H[f+24>>2];a=H[f+20>>2];H[d+8>>2]=H[f+16>>2];H[d+12>>2]=a;a=H[f+12>>2];H[d>>2]=H[f+8>>2];H[d+4>>2]=a;break d}a=a+1|0;if((h|0)!=(a|0)){continue}break}}a=g;if(h>>>0<=a>>>0){break c}while(1){e=N(g,20)+i|0;d=I[e+18|0];h:{if(!((d|32)!=44|I[e+12|0]&32)){a=g+1|0;break h}if(!(1<>>0>31){break h}d=I[e+14|0];if(!(d&16)&(d&15)!=0|a>>>0>=g>>>0){break h}d=g+1|0;if(d-a>>>0>=2){Jd(c,a,d)}H[f+24>>2]=H[e+16>>2];d=H[e+12>>2];H[f+16>>2]=H[e+8>>2];H[f+20>>2]=d;d=H[e+4>>2];H[f+8>>2]=H[e>>2];H[f+12>>2]=d;e=N(a,20)+i|0;$c(e+20|0,e,N(g-a|0,20));H[e+16>>2]=H[f+24>>2];d=H[f+20>>2];H[e+8>>2]=H[f+16>>2];H[e+12>>2]=d;d=H[f+12>>2];H[e>>2]=H[f+8>>2];H[e+4>>2]=d}g=g+1|0;if((h|0)!=(g|0)){continue}break}}d=H[c+68>>2];a=h+1|0;g=a>>>0>>0?d:a;i=H[c+80>>2];e=I[(i+N(h,20)|0)+15|0];a=h;while(1){i:{a=a+1|0;if(d>>>0<=a>>>0){a=g;break i}if(I[(N(a,20)+i|0)+15|0]==(e|0)){continue}}break}g=h;if(m>>>0>g>>>0){continue}break}}Ac(c,b,105721,0)}xb=f+32|0}function tR(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;u=xb-16|0;xb=u;H[c>>2]=a;x=d&512;while(1){if((v|0)==4){if(I[n+11|0]>>>7|0){e=H[n+4>>2]}else{e=I[n+11|0]}if(e>>>0>1){z=u,A=Ue(n),H[z+8>>2]=A;z=c,A=Ul(sw(u+8|0,1),nh(n),H[c>>2]),H[z>>2]=A}d=d&176;if((d|0)!=16){if((d|0)==32){a=H[c>>2]}H[b>>2]=a}xb=u+16|0;return}a:{b:{switch(F[i+v|0]){case 0:H[b>>2]=H[c>>2];break a;case 1:H[b>>2]=H[c>>2];p=zb[H[H[g>>2]+28>>2]](g,32)|0;q=H[c>>2];H[c>>2]=q+1;F[q|0]=p;break a;case 3:if(I[n+11|0]>>>7|0){p=H[n+4>>2]}else{p=I[n+11|0]}if(!p){break a}if(I[n+11|0]>>>7|0){p=H[n>>2]}else{p=n}p=I[p|0];q=H[c>>2];H[c>>2]=q+1;F[q|0]=p;break a;case 2:q=!x;if(I[m+11|0]>>>7|0){p=H[m+4>>2]}else{p=I[m+11|0]}if(q|!p){break a}z=c,A=Ul(Ue(m),nh(m),H[c>>2]),H[z>>2]=A;break a;case 4:break b;default:break a}}y=H[c>>2];e=e+h|0;r=e;while(1){c:{if(f>>>0<=r>>>0){break c}p=F[r|0];if((p|0)>=0){p=(J[H[g+8>>2]+((p&255)<<1)>>1]&2048)!=0}else{p=0}if(!p){break c}r=r+1|0;continue}break}p=o;if((p|0)>0){while(1){if(!(!p|e>>>0>=r>>>0)){r=r-1|0;q=I[r|0];s=H[c>>2];H[c>>2]=s+1;F[s|0]=q;p=p-1|0;continue}break}if(p){q=zb[H[H[g>>2]+28>>2]](g,48)|0}else{q=0}while(1){s=H[c>>2];H[c>>2]=s+1;if((p|0)>0){F[s|0]=q;p=p-1|0;continue}break}F[s|0]=j}d:{if((e|0)==(r|0)){p=zb[H[H[g>>2]+28>>2]](g,48)|0;q=H[c>>2];H[c>>2]=q+1;F[q|0]=p;break d}if(I[l+11|0]>>>7|0){p=H[l>>2]}else{p=l}q=F[p|0];if(I[l+11|0]>>>7|0){p=H[l+4>>2]}else{p=I[l+11|0]}q=p?q:-1;p=0;t=0;while(1){if((e|0)==(r|0)){break d}e:{if((p|0)!=(q|0)){s=p;break e}q=H[c>>2];H[c>>2]=q+1;F[q|0]=k;s=0;if(I[l+11|0]>>>7|0){q=H[l+4>>2]}else{q=I[l+11|0]}t=t+1|0;if(q>>>0<=t>>>0){q=p;break e}if(I[l+11|0]>>>7|0){p=H[l>>2]}else{p=l}if(I[p+t|0]==127){q=-1;break e}if(I[l+11|0]>>>7|0){p=H[l>>2]}else{p=l}q=F[p+t|0]}r=r-1|0;p=I[r|0];w=H[c>>2];H[c>>2]=w+1;F[w|0]=p;p=s+1|0;continue}}lh(y,H[c>>2])}v=v+1|0;continue}}function oR(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;g=xb-496|0;xb=g;a=g+488|0;h=H[d+28>>2];H[a>>2]=h;H[h+4>>2]=H[h+4>>2]+1;H[197455]=0;n=aa(3342,a|0)|0;a=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{if((a|0)!=1){if(I[f+11|0]>>>7|0){a=H[f+4>>2]}else{a=I[f+11|0]}if(a){if(I[f+11|0]>>>7|0){a=H[f>>2]}else{a=f}k=H[a>>2];H[197455]=0;h=da(3343,n|0,45)|0;a=H[197455];H[197455]=0;if((a|0)==1){break g}o=(h|0)==(k|0)}l=Dc(g+456|0);i=Dc(g+440|0);j=Dc(g+424|0);H[197455]=0;Ea(3500,c|0,o|0,g+488|0,g+480|0,g+476|0,g+472|0,l|0,i|0,j|0,g+420|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[g+4>>2]=594;m=Ed(g+8|0,0,g+4|0);c=g+16|0;if(I[f+11|0]>>>7|0){a=H[f+4>>2]}else{a=I[f+11|0]}h:{if((a|0)>H[g+420>>2]){if(I[f+11|0]>>>7|0){h=H[f+4>>2]}else{h=I[f+11|0]}k=H[g+420>>2];if(I[i+11|0]>>>7|0){a=H[i+4>>2]}else{a=I[i+11|0]}if(I[j+11|0]>>>7|0){p=H[j+4>>2]}else{p=I[j+11|0]}a=(k+(a+(p+(h-k<<1)|0)|0)|0)+1|0;break h}k=H[g+420>>2];if(I[j+11|0]>>>7|0){a=H[j+4>>2]}else{a=I[j+11|0]}if(I[i+11|0]>>>7|0){h=H[i+4>>2]}else{h=I[i+11|0]}a=(k+(a+h|0)|0)+2|0}if(a>>>0<101){break e}ae(m,Tb(a<<2));c=H[m>>2];if(c){break e}H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)==1){break d}X()}f=$()|0;_()|0;break b}f=$()|0;_()|0;break b}f=$()|0;_()|0;break c}k=H[d+4>>2];if(I[f+11|0]>>>7|0){h=H[f>>2]}else{h=f}if(I[f+11|0]>>>7|0){a=H[f>>2]}else{a=f}if(I[f+11|0]>>>7|0){f=H[f+4>>2]}else{f=I[f+11|0]}H[197455]=0;Ga(3501,c|0,g+4|0,g|0,k|0,h|0,(f<<2)+a|0,n|0,o|0,g+480|0,H[g+476>>2],H[g+472>>2],l|0,i|0,j|0,H[g+420>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){H[197455]=0;b=ma(1709,b|0,c|0,H[g+4>>2],H[g>>2],d|0,e|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break a}}}f=$()|0;_()|0;Bc(m)}Sc(j);Sc(i);_b(l)}b=H[g+488>>2];a=H[b+4>>2]-1|0;H[b+4>>2]=a;if((a|0)==-1){zb[H[H[b>>2]+8>>2]](b)}ea(f|0);X()}Bc(m);Sc(j);Sc(i);_b(l);c=H[g+488>>2];a=H[c+4>>2]-1|0;H[c+4>>2]=a;if((a|0)==-1){zb[H[H[c>>2]+8>>2]](c)}xb=g+496|0;return b|0}function Vu(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,r=0;i=xb-16|0;xb=i;d=H[a+12>>2];if(d){H[(H[a+20>>2]+(d<<4)|0)-4>>2]=b}k=H[a+24>>2];a:{if((k|0)<2){break a}o=k;while(1){p=o;g=H[a+32>>2];o=o-1|0;b=g+(o<<4)|0;l=H[b>>2];d=H[b+8>>2];j=p-2|0;while(1){b:{h=g+(j<<4)|0;b=H[h+8>>2];c:{h=H[h>>2];f=h>>>0>l>>>0?l:h;d:{e:{if(f>>>0<8){m=d;break e}m=(f-8>>>3|0)+1|0;h=m+b|0;m=d+m|0;e=d;while(1){if(I[b|0]&I[e|0]){break d}b=b+1|0;e=e+1|0;f=f-8|0;if(f>>>0>7){continue}break}b=h}if(!f|!(I[b|0]&I[m|0]&-256>>f)){break c}}b=j>>>0>>0?j:o;m=j>>>0>o>>>0?j:o;if(b>>>0>=m>>>0|m>>>0>=k>>>0){break b}n=g+(m<<4)|0;l=H[n>>2];f:{if(!l){break f}g=g+(b<<4)|0;b=H[g>>2];g:{if(l>>>0<=b>>>0){k=l+7|0;f=k>>>3|0;break g}d=H[g+4>>2];H[i>>2]=0;k=l+7|0;f=k>>>3|0;d=d+7>>>3|0;if(f>>>0>d>>>0){e=d;d=f+7&1073741816;q=g,r=Ub(c,1,e,d,H[g+8>>2],i),H[q+8>>2]=r;e=H[i>>2];if(e){break a}H[g+4>>2]=d<<3}d=b+1|0;if(l-b&1){if(K[g>>2]>b>>>0){h=H[g+8>>2]+(b>>>3|0)|0;F[h|0]=I[h|0]&-129>>(b&7)}b=d}if((d|0)==(l|0)){break g}while(1){if(K[g>>2]>b>>>0){d=H[g+8>>2]+(b>>>3|0)|0;F[d|0]=I[d|0]&-129>>(b&7)}h=b+1|0;if(h>>>0>2]){d=H[g+8>>2]+(h>>>3|0)|0;F[d|0]=I[d|0]&-129>>(h&7)}b=b+2|0;if((l|0)!=(b|0)){continue}break}}if(k>>>0<8){break f}h=f-1|0;e=H[n+8>>2];b=H[g+8>>2];j=0;d=f&3;if(d){while(1){F[b|0]=I[e|0]|I[b|0];f=f-1|0;e=e+1|0;b=b+1|0;j=j+1|0;if((d|0)!=(j|0)){continue}break}}if(h>>>0<3){break f}while(1){F[b|0]=I[e|0]|I[b|0];F[b+1|0]=I[e+1|0]|I[b+1|0];F[b+2|0]=I[e+2|0]|I[b+2|0];F[b+3|0]=I[e+3|0]|I[b+3|0];e=e+4|0;b=b+4|0;f=f-4|0;if(f){continue}break}}H[n>>2]=0;H[n+12>>2]=0;b=H[a+24>>2];d=b+(m^-1)|0;if((d|0)>0){b=H[n+12>>2];H[i+8>>2]=H[n+8>>2];H[i+12>>2]=b;b=H[n+4>>2];H[i>>2]=H[n>>2];H[i+4>>2]=b;b=d<<4;d=$c(n,n+16|0,b)+b|0;b=H[i+12>>2];H[d+8>>2]=H[i+8>>2];H[d+12>>2]=b;b=H[i+4>>2];H[d>>2]=H[i>>2];H[d+4>>2]=b;b=H[a+24>>2]}k=b-1|0;H[a+24>>2]=k;break b}b=(j|0)>0;j=j-1|0;if(b){continue}}break}if((p|0)>2){continue}break}e=0}xb=i+16|0;return e}function aca(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;h=a;while(1){d=H[(p<<2)+b>>2]+c|0;i=I[d+9|0];k=I[d+6|0];f=i+k|0;n=I[d+14|0];j=I[d+1|0];g=n+j|0;e=f+g|0;m=I[d+13|0];o=I[d+2|0];l=m+o|0;r=I[d+10|0];s=I[d+5|0];q=r+s|0;t=l+q|0;u=I[d+8|0];v=I[d+7|0];w=u+v|0;x=I[d+15|0];y=I[d|0];z=x+y|0;A=w+z|0;B=I[d+11|0];C=I[d+4|0];D=B+C|0;E=I[d+12|0];F=I[d+3|0];d=E+F|0;G=D+d|0;H[h+16>>2]=(N(e-t|0,4433)+N(A-G|0,10703)|0)+1024>>11;H[h>>2]=((e+(t+G|0)|0)+A<<2)+-8192;e=z-w|0;l=l-q|0;q=d-D|0;f=g-f|0;d=(N(e-l|0,11363)+N(q-f|0,2260)|0)+1024|0;H[h+24>>2]=(d+N(q,-8697)|0)+N(e,-1730)>>11;H[h+8>>2]=(d+N(l,17799)|0)+N(f,11893)>>11;d=s-r|0;f=C-B|0;g=F-E|0;e=o-m|0;m=(N(d-f|0,3363)+N(g+e|0,-11086)|0)+1024|0;i=k-i|0;k=j-n|0;n=N(i+f|0,-10217)+N(k+g|0,-5461)|0;o=n+((m+N(g,8728)|0)+N(f,17760)|0)|0;j=f;f=v-u|0;l=g;g=y-x|0;j=N(j-f|0,7350)+N(l+g|0,8956)|0;H[h+28>>2]=o+j>>11;l=(m+N(e,-9222)|0)+N(d,10055)|0;m=N(i-d|0,11529)+N(e+k|0,1136)|0;d=N(d+f|0,5461)+N(e+g|0,10217)|0;H[h+20>>2]=(l+m|0)+d>>11;e=N(i-f|0,3363)+N(g+k|0,11086)|0;H[h+12>>2]=(e+(m+((n+N(k,589)|0)+N(i,-13631)|0)|0)|0)+1024>>11;H[h+4>>2]=(d+(j+((e+N(g,-18730)|0)+N(f,6387)|0)|0)|0)+1024>>11;h=h+32|0;p=p+1|0;if((p|0)!=8){continue}break}b=7;while(1){h=H[a+128>>2];d=H[a+96>>2];c=h+d|0;f=H[a+224>>2];g=H[a>>2];e=f+g|0;i=c+e|0;k=H[a+160>>2];p=H[a+64>>2];m=k+p|0;n=H[a+192>>2];j=H[a+32>>2];o=n+j|0;l=m+o|0;H[a+128>>2]=(i-l|0)+4>>3;H[a>>2]=(i+l|0)+4>>3;e=e-c|0;i=o-m|0;c=N(e+i|0,4433)+32768|0;H[a+192>>2]=c+N(i,-15137)>>16;H[a+64>>2]=c+N(e,6270)>>16;c=d-h|0;h=g-f|0;d=N(c+h|0,-7373)+32768|0;f=j-n|0;i=f+c|0;g=p-k|0;k=g+h|0;e=N(i+k|0,9633);j=d+N(c,2446)|0;c=e+N(i,-16069)|0;H[a+224>>2]=j+c>>16;e=e+N(k,-3196)|0;j=N(g,16819);g=N(f+g|0,-20995)+32768|0;H[a+160>>2]=e+(j+g|0)>>16;H[a+96>>2]=c+(g+N(f,25172)|0)>>16;H[a+32>>2]=e+(d+N(h,12299)|0)>>16;c=b;b=c-1|0;a=a+4|0;if(c){continue}break}}function fca(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,u=0,v=0,w=0,x=0,y=0,z=0;n=xb-128|0;d=a;while(1){a:{e=d;d=H[(h<<2)+b>>2]+c|0;k=I[d+11|0];l=I[d|0];i=k+l|0;o=I[d+6|0];p=I[d+5|0];j=o+p|0;q=i-j|0;r=I[d+10|0];s=I[d+1|0];g=r+s|0;t=I[d+7|0];u=I[d+4|0];f=t+u|0;v=I[d+9|0];w=I[d+2|0];m=v+w|0;x=I[d+8|0];y=I[d+3|0];z=x+y|0;d=m-z|0;H[e+24>>2]=q-((g-f|0)+d|0);i=i+j|0;m=m+z|0;H[e>>2]=(i+(f+(m+g|0)|0)|0)-1536;H[e+16>>2]=N(i-m|0,10033)+4096>>13;H[e+8>>2]=((g-(d+f|0)|0)+N(d+q|0,11190)|0)+4096>>13;f=u-t|0;j=s-r|0;i=N(f+j|0,4433);d=l-k|0;g=y-x|0;l=i+N(f,-15137)|0;f=p-o|0;k=w-v|0;H[e+12>>2]=((N(d-g|0,10703)+l|0)+N(f+k|0,-4433)|0)+4096>>13;o=N(d+g|0,7053);m=o+N(g,5946)|0;g=N(g+k|0,-1512);i=i+N(j,6270)|0;H[e+28>>2]=(((m+g|0)-i|0)+N(f,-9191)|0)+4096>>13;j=g;g=N(d+k|0,9191)+4096|0;H[e+20>>2]=((j+(g+N(k,-19165)|0)|0)-l|0)+N(f,7053)>>13;H[e+4>>2]=(i+(o+(g+N(d,-4758)|0)|0)|0)+N(f,1512)>>13;f=h-7|0;h=h+1|0;g=7;d=n;b:{switch(f|0){case 0:continue;case 4:break a;default:break b}}d=e+32|0;continue}break}while(1){b=H[d+64>>2];c=H[a+128>>2];n=H[a+192>>2];f=H[a+160>>2];e=n+f|0;k=H[d+96>>2];i=H[a>>2];h=k+i|0;l=e+h|0;o=H[d>>2];p=H[a+96>>2];j=o+p|0;q=H[d+32>>2];r=H[a+64>>2];s=q+r|0;t=j+s|0;H[a+128>>2]=N(l-t|0,8918)- -8192>>14;h=h-e|0;u=H[a+32>>2];v=u+b|0;w=H[a+224>>2];m=w+c|0;x=v-m|0;e=s-j|0;H[a+192>>2]=N(h-(x+e|0)|0,7282)- -8192>>14;H[a+64>>2]=(N(x-e|0,7282)+N(e+h|0,9947)|0)- -8192>>14;H[a>>2]=N(l+(m+(t+v|0)|0)|0,7282)- -8192>>14;e=c-w|0;l=u-b|0;h=N(e+l|0,3941);b=i-k|0;c=p-o|0;k=h+N(e,-13455)|0;e=f-n|0;n=r-q|0;H[a+96>>2]=((N(b-c|0,9514)+k|0)+N(e+n|0,-3941)|0)- -8192>>14;f=N(b+c|0,6269);j=f+N(c,5285)|0;c=N(c+n|0,-1344);h=h+N(l,5573)|0;H[a+224>>2]=(((j+c|0)-h|0)+N(e,-8170)|0)- -8192>>14;j=c;c=N(b+n|0,8170)- -8192|0;H[a+160>>2]=((j+(c+N(n,-17036)|0)|0)-k|0)+N(e,6269)>>14;H[a+32>>2]=(h+(f+(c+N(b,-4229)|0)|0)|0)+N(e,1344)>>14;b=g;g=g-1|0;d=d+4|0;a=a+4|0;if(b){continue}break}}function gs(a,b,c,d){var e=0,f=0,g=O(0),h=O(0),i=0,j=0,k=0;f=xb-48|0;xb=f;if(K[a+16>>2]>c>>>0){H[f+40>>2]=0;H[f+32>>2]=0;H[f+36>>2]=0;e=H[d+4>>2];H[197455]=0;ll(f+8|0,a,c,0);c=H[197455];H[197455]=0;a:{b:{c:{d:{if((c|0)==1){break d}H[197455]=0;k=ma(672,f+8|0,b|0,a|0,f+32|0,!e|0,0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break d}if(!k){break a}e:{if(!e){break e}c=H[f+36>>2];if(c>>>0>=5){i=c-5|0;j=H[f+40>>2];a=0;while(1){f:{if(a>>>0>=c>>>0){b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;b=784992;break f}b=(a<<4)+j|0}g=L[d+12>>2];h=L[b+4>>2];L[d+12>>2]=g<=h?g:h;g=L[d+16>>2];h=L[b+8>>2];L[d+16>>2]=g<=h?g:h;g=L[d+20>>2];h=L[b+4>>2];L[d+20>>2]=g>=h?g:h;g=L[d+24>>2];h=L[b+8>>2];L[d+24>>2]=g>=h?g:h;b=(a|0)==(i|0);a=a+1|0;if(!b){continue}break}}a=H[d>>2];H[197455]=0;ga(673,d+12|0,a|0,e|0);a=H[197455];H[197455]=0;if((a|0)!=1){break e}break d}b=H[d+8>>2];if(!b){break a}c=H[f+40>>2];g:{h:{i:{a=H[f+36>>2];j:{if(a>>>0>=4){d=(c+(a<<4)|0)+-64|0;e=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=e;e=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=e;break j}d=H[40911];e=H[40910];H[196250]=e;H[196251]=d;i=H[40909];j=H[40908];H[196248]=j;H[196249]=i;H[b+8>>2]=e;H[b+12>>2]=d;H[b>>2]=j;H[b+4>>2]=i;if((a|0)!=3){break i}}d=(c+(a<<4)|0)-48|0;e=H[d+4>>2];H[b+16>>2]=H[d>>2];H[b+20>>2]=e;e=H[d+12>>2];H[b+24>>2]=H[d+8>>2];H[b+28>>2]=e;break h}H[196250]=e;H[196251]=d;H[196248]=j;H[196249]=i;H[b+24>>2]=e;H[b+28>>2]=d;H[b+16>>2]=j;H[b+20>>2]=i;if(a>>>0<2){break g}}d=(c+(a<<4)|0)-32|0;e=H[d+4>>2];H[b+32>>2]=H[d>>2];H[b+36>>2]=e;e=H[d+12>>2];H[b+40>>2]=H[d+8>>2];H[b+44>>2]=e;break c}d=H[40911];H[b+40>>2]=H[40910];H[b+44>>2]=d;d=H[40909];H[b+32>>2]=H[40908];H[b+36>>2]=d;if(a){break c}a=784992;break b}a=$()|0;_()|0;H[f+36>>2]=0;Kb(H[f+40>>2]);ea(a|0);X()}a=(c+(a<<4)|0)-16|0}c=H[a+4>>2];H[b+48>>2]=H[a>>2];H[b+52>>2]=c;c=H[a+12>>2];H[b+56>>2]=H[a+8>>2];H[b+60>>2]=c}H[f+36>>2]=0;Kb(H[f+40>>2])}xb=f+48|0;return k}function sR(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;g=xb-192|0;xb=g;a=g+184|0;h=H[d+28>>2];H[a>>2]=h;H[h+4>>2]=H[h+4>>2]+1;H[197455]=0;n=aa(3329,a|0)|0;a=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{if((a|0)!=1){if(I[f+11|0]>>>7|0){a=H[f+4>>2]}else{a=I[f+11|0]}if(a){if(I[f+11|0]>>>7|0){a=H[f>>2]}else{a=f}k=I[a|0];H[197455]=0;h=da(3462,n|0,45)|0;a=H[197455];H[197455]=0;if((a|0)==1){break g}o=(k|0)==(h&255)}l=Dc(g+160|0);i=Dc(g+144|0);j=Dc(g+128|0);H[197455]=0;Ea(3498,c|0,o|0,g+184|0,g+176|0,g+175|0,g+174|0,l|0,i|0,j|0,g+124|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[g+4>>2]=594;m=Ed(g+8|0,0,g+4|0);c=g+16|0;if(I[f+11|0]>>>7|0){a=H[f+4>>2]}else{a=I[f+11|0]}h:{if((a|0)>H[g+124>>2]){if(I[f+11|0]>>>7|0){h=H[f+4>>2]}else{h=I[f+11|0]}k=H[g+124>>2];if(I[i+11|0]>>>7|0){a=H[i+4>>2]}else{a=I[i+11|0]}if(I[j+11|0]>>>7|0){p=H[j+4>>2]}else{p=I[j+11|0]}a=(k+(a+(p+(h-k<<1)|0)|0)|0)+1|0;break h}k=H[g+124>>2];if(I[j+11|0]>>>7|0){a=H[j+4>>2]}else{a=I[j+11|0]}if(I[i+11|0]>>>7|0){h=H[i+4>>2]}else{h=I[i+11|0]}a=(k+(a+h|0)|0)+2|0}if(a>>>0<101){break e}ae(m,Tb(a));c=H[m>>2];if(c){break e}H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)==1){break d}X()}f=$()|0;_()|0;break b}f=$()|0;_()|0;break b}f=$()|0;_()|0;break c}k=H[d+4>>2];if(I[f+11|0]>>>7|0){h=H[f>>2]}else{h=f}if(I[f+11|0]>>>7|0){a=H[f>>2]}else{a=f}if(I[f+11|0]>>>7|0){f=H[f+4>>2]}else{f=I[f+11|0]}H[197455]=0;Ga(3499,c|0,g+4|0,g|0,k|0,h|0,a+f|0,n|0,o|0,g+176|0,F[g+175|0],F[g+174|0],l|0,i|0,j|0,H[g+124>>2]);a=H[197455];H[197455]=0;if((a|0)!=1){H[197455]=0;b=ma(3466,b|0,c|0,H[g+4>>2],H[g>>2],d|0,e|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break a}}}f=$()|0;_()|0;Bc(m)}_b(j);_b(i);_b(l)}b=H[g+184>>2];a=H[b+4>>2]-1|0;H[b+4>>2]=a;if((a|0)==-1){zb[H[H[b>>2]+8>>2]](b)}ea(f|0);X()}Bc(m);_b(j);_b(i);_b(l);c=H[g+184>>2];a=H[c+4>>2]-1|0;H[c+4>>2]=a;if((a|0)==-1){zb[H[H[c>>2]+8>>2]](c)}xb=g+192|0;return b|0}function Xba(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;a=Nb(a,0,256);d=H[b>>2]+c|0;e=I[d|0];f=I[d+5|0];h=e-f|0;j=I[d+1|0];i=I[d+4|0];g=j-i|0;k=I[d+2|0];l=I[d+3|0];d=k-l|0;H[a+12>>2]=h-(g+d|0)<<3;e=e+f|0;f=k+l|0;H[a+8>>2]=N(e-f|0,10033)+512>>10;e=e+f|0;f=i+j|0;H[a>>2]=(e+f<<3)-6144;H[a+16>>2]=N(e-(f<<1)|0,5793)+512>>10;e=d-g<<3;d=N(d+h|0,2998)+512>>10;H[a+20>>2]=e+d;H[a+4>>2]=d+(g+h<<3);d=H[b+4>>2]+c|0;e=I[d|0];f=I[d+5|0];h=e-f|0;j=I[d+1|0];i=I[d+4|0];g=j-i|0;k=I[d+2|0];l=I[d+3|0];d=k-l|0;H[a+44>>2]=h-(g+d|0)<<3;e=e+f|0;f=k+l|0;H[a+40>>2]=N(e-f|0,10033)+512>>10;f=e+f|0;j=i+j|0;e=(f+j<<3)-6144|0;H[a+32>>2]=e;H[a+48>>2]=N(f-(j<<1)|0,5793)+512>>10;f=d-g<<3;d=N(d+h|0,2998)+512>>10;H[a+52>>2]=f+d;d=d+(g+h<<3)|0;H[a+36>>2]=d;b=H[b+8>>2]+c|0;f=I[b+2|0];j=I[b+3|0];c=f-j|0;i=I[b|0];k=I[b+5|0];h=i-k|0;g=N(c+h|0,2998)+512>>10;l=I[b+1|0];m=I[b+4|0];b=l-m|0;H[a+84>>2]=g+(c-b<<3);f=f+j|0;j=i+k|0;i=f+j|0;k=l+m|0;H[a+80>>2]=N(i-(k<<1)|0,5793)+512>>10;l=H[a>>2];i=(i+k<<3)-6144|0;H[a+32>>2]=N(l-i|0,17837)+16384>>15;i=i+l|0;H[a+64>>2]=N(i-(e<<1)|0,10298)+16384>>15;H[a>>2]=N(e+i|0,14564)+16384>>15;e=H[a+4>>2];g=g+(b+h<<3)|0;H[a+36>>2]=N(e-g|0,17837)+16384>>15;g=e+g|0;H[a+68>>2]=N(g-(d<<1)|0,10298)+16384>>15;H[a+4>>2]=N(d+g|0,14564)+16384>>15;d=H[a+40>>2];g=H[a+8>>2];e=N(j-f|0,10033)+512>>10;H[a+40>>2]=N(g-e|0,17837)+16384>>15;g=e+g|0;H[a+72>>2]=N(g-(d<<1)|0,10298)+16384>>15;H[a+8>>2]=N(d+g|0,14564)+16384>>15;b=h-(b+c|0)<<3;c=H[a+12>>2];d=b+c|0;h=H[a+44>>2];H[a+76>>2]=N(d-(h<<1)|0,10298)+16384>>15;H[a+12>>2]=N(d+h|0,14564)+16384>>15;H[a+44>>2]=N(c-b|0,17837)+16384>>15;b=H[a+80>>2];c=H[a+16>>2];d=b+c|0;h=H[a+48>>2];H[a+80>>2]=N(d-(h<<1)|0,10298)+16384>>15;H[a+16>>2]=N(d+h|0,14564)+16384>>15;H[a+48>>2]=N(c-b|0,17837)+16384>>15;b=H[a+84>>2];c=H[a+20>>2];d=b+c|0;h=H[a+52>>2];H[a+84>>2]=N(d-(h<<1)|0,10298)+16384>>15;H[a+20>>2]=N(d+h|0,14564)+16384>>15;H[a+52>>2]=N(c-b|0,17837)+16384>>15}function wt(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=H[b+4>>2];a:{if(h>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<16){break a}g=H[b+12>>2];e=g-16|0;H[b+12>>2]=e;if((e|0)<=0){break a}e=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if((e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))>>>0<4){break a}e=a+4|0;if(e>>>0>>0|d>>>0>>0|d-e>>>0<4){break a}d=g-20|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=F[e|0];if((d|0)<0){break a}if(!Hf((I[a+7|0]|(I[a+5|0]<<16|(d&255)<<24|I[a+6|0]<<8))+a|0,b)){return 0}d=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);i=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(i>>>0>2147483646){break a}d=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);j=(d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))+a|0;e=a;a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);k=e+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0;m=i<<1;h=0;a=0;d=0;while(1){e=d;b:{c:{d:{e:{if((a|0)>=(h|0)){g=a+1|0;if(!(!i|g>>>0<4294967295/(m>>>0)>>>0)){return 0}d=N(g,m);f:{if(!d){f=H[b+12>>2];break f}if(K[b+4>>2]>k>>>0){break a}f=H[b+8>>2];if(f>>>0>>0|d>>>0>f-k>>>0){break a}f=H[b+12>>2]-d|0;H[b+12>>2]=f;if((f|0)<=0){break a}}d=((a^-1)+h|0)+f|0;H[b+12>>2]=d;if((d|0)<=0|(g>>>0>=4294967295/(i>>>0)>>>0?i:0)){break a}d=N(g,i);if((d|0)<0){break a}h=N(h,i);if((h|0)<(d|0)){break e}h=g}if(!e){break c}d=e;break d}l=(d<<1)+k|0;f=(h<<1)+k|0;d=e;while(1){h=I[f|0]|I[f+1|0]<<8;h=((h<<8|h>>>8)&65535)+1|0;d=d>>>0>h>>>0?d:h;f=f+2|0;if(l>>>0>f>>>0){continue}break}h=g}l=0;if(K[b+4>>2]>j>>>0){break a}g=H[b+8>>2];if(g>>>0>>0){break a}f=g-j|0;g=d<<3;if(f>>>0>>0){break a}f=H[b+12>>2]-g|0;H[b+12>>2]=f;if((f|0)<=0){break a}break b}f=H[b+12>>2];d=e}g=(e-d|0)+f|0;H[b+12>>2]=g;if((g|0)<=0){return 0}if((d|0)>(e|0)){g=(d<<3)+j|0;f=(e<<3)+j|0;while(1){e=I[f|0]|I[f+1|0]<<8;e=(e<<8|e>>>8)&65535;a=(a|0)>(e|0)?a:e;f=f+8|0;if(g>>>0>f>>>0){continue}break}}if((a|0)>=(h|0)){continue}break}l=1;if(!c){break a}H[c>>2]=d}return l}function xE(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;H[a+12>>2]=b;H[a+8>>2]=c;H[a+4>>2]=b;H[a+20>>2]=H[a+16>>2];l=6;a:{b:{while(1){if(b>>>0>=c>>>0){break b}h=H[a+20>>2];m=H[a+16>>2];i=h-m>>2;g=H[a+24>>2];e=I[b|0];c:{d:{if(!((e|0)==31|(e-27&255)>>>0>227)){d=4;if(g>>>0<=i>>>0){break c}H[a+20>>2]=h+4;H[h>>2]=b;e:{switch(e-28|0){case 2:while(1){b=b+1|0;if(c>>>0<=b>>>0){b=c;d=7;break c}d=I[b|0];if((d&240)==240){break d}if((d&15)!=15){continue}break};break d;case 0:b=b+2|0;break d;case 1:b=b+4|0;break d;default:break e}}b=(e>>>0>246)+b|0;break d}d=4;if(g>>>0<=i>>>0){break c}H[h>>2]=b;if((e|0)==12){b=b+1|0;d=8;if(c>>>0<=b>>>0){break c}e=I[b|0]|256}g=25376;f=4;d=25376;j=H[a+28>>2]|e;f:{g:{if((j|0)==4096){break g}h:{i:{while(1){if((j|0)==H[d+32>>2]){break h}if((j|0)==H[d+60>>2]){break i}if((j|0)!=H[d+88>>2]){f=H[d+112>>2];if(!f){break f}e=d;g=d+112|0;d=g;if((j|0)!=H[e+116>>2]){continue}break g}break}g=d+84|0;f=H[d+84>>2];break g}g=d+56|0;f=H[d+56>>2];break g}g=d+28|0;f=H[d+28>>2]}e=H[g+8>>2];j=H[a+32>>2];if((f|0)!=6){d=12;if((h|0)==(m|0)){break c}}d=e+j|0;j:{k:{l:{m:{n:{o:{switch(f-1|0){case 0:case 3:case 4:e=Ef(a,H[H[a+16>>2]>>2]);break n;case 1:e=Qj(a,H[H[a+16>>2]>>2],0);break n;case 5:break m;case 2:break o;default:break l}}e=Qj(a,H[H[a+16>>2]>>2],3)}p:{switch(I[g+12|0]-1|0){case 1:G[d>>1]=e;break j;case 0:break k;default:break p}}H[d>>2]=e;break j}e=H[a+16>>2];f=H[g+20>>2];i=f>>>0>i>>>0?i:f;F[j+H[g+24>>2]|0]=i;if(!i){break j}f=0;while(1){f=Ef(a,H[e>>2])+f|0;q:{r:{s:{t:{u:{h=I[g+12|0];switch(h-1|0){case 3:break s;case 1:break t;case 0:break u;default:break r}}F[d|0]=f;h=I[g+12|0];break q}G[d>>1]=f;h=2;break q}H[d>>2]=f;h=4;break q}H[d>>2]=f}e=e+4|0;d=d+h|0;i=i-1|0;if(i){continue}break}break j}k=zb[H[g+16>>2]](a)|0;d=7;if(k){break c}k=0;break j}F[d|0]=e}if(H[g>>2]==8){break d}}H[a+20>>2]=H[a+16>>2]}b=b+1|0;d=0}if(!d){continue}break}if(kma(d,30)-1>>>0<3){break a}}l=k}return l}function tc(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;if(!a){return Tb(b)}if(b>>>0>=4294967232){H[197018]=48;return 0}g=b>>>0<11?16:b+11&-8;f=a-8|0;j=H[f+4>>2];e=j&-8;a:{if(!(j&3)){if(g>>>0<256){break a}if(e>>>0>=g+4>>>0){c=f;if(e-g>>>0<=H[197451]<<1>>>0){break a}}c=0;break a}h=e+f|0;b:{if(e>>>0>=g>>>0){d=e-g|0;if(d>>>0<16){break b}H[f+4>>2]=j&1|g|2;c=f+g|0;H[c+4>>2]=d|3;H[h+4>>2]=H[h+4>>2]|1;zx(c,d);break b}if(H[197337]==(h|0)){e=e+H[197334]|0;if(e>>>0<=g>>>0){break a}H[f+4>>2]=j&1|g|2;d=f+g|0;c=e-g|0;H[d+4>>2]=c|1;H[197334]=c;H[197337]=d;break b}if(H[197336]==(h|0)){d=e+H[197333]|0;if(d>>>0>>0){break a}c=d-g|0;c:{if(c>>>0>=16){H[f+4>>2]=j&1|g|2;e=f+g|0;H[e+4>>2]=c|1;d=d+f|0;H[d>>2]=c;H[d+4>>2]=H[d+4>>2]&-2;break c}H[f+4>>2]=d|j&1|2;c=d+f|0;H[c+4>>2]=H[c+4>>2]|1;c=0;e=0}H[197336]=e;H[197333]=c;break b}d=H[h+4>>2];if(d&2){break a}k=e+(d&-8)|0;if(k>>>0>>0){break a}m=k-g|0;d:{if(d>>>0<=255){e=H[h+8>>2];c=d>>>3|0;d=H[h+12>>2];if((d|0)==(e|0)){n=789324,o=H[197331]&kma(-2,c),H[n>>2]=o;break d}H[e+12>>2]=d;H[d+8>>2]=e;break d}l=H[h+24>>2];i=H[h+12>>2];e:{if((i|0)!=(h|0)){c=H[h+8>>2];H[c+12>>2]=i;H[i+8>>2]=c;break e}f:{e=h+20|0;c=H[e>>2];if(c){break f}e=h+16|0;c=H[e>>2];if(c){break f}i=0;break e}while(1){d=e;i=c;e=c+20|0;c=H[e>>2];if(c){continue}e=i+16|0;c=H[i+16>>2];if(c){continue}break}H[d>>2]=0}if(!l){break d}d=H[h+28>>2];c=(d<<2)+789628|0;g:{if(H[c>>2]==(h|0)){H[c>>2]=i;if(i){break g}n=789328,o=H[197332]&kma(-2,d),H[n>>2]=o;break d}H[(H[l+16>>2]==(h|0)?16:20)+l>>2]=i;if(!i){break d}}H[i+24>>2]=l;c=H[h+16>>2];if(c){H[i+16>>2]=c;H[c+24>>2]=i}c=H[h+20>>2];if(!c){break d}H[i+20>>2]=c;H[c+24>>2]=i}if(m>>>0<=15){H[f+4>>2]=j&1|k|2;c=f+k|0;H[c+4>>2]=H[c+4>>2]|1;break b}H[f+4>>2]=j&1|g|2;d=f+g|0;H[d+4>>2]=m|3;c=f+k|0;H[c+4>>2]=H[c+4>>2]|1;zx(d,m)}c=f}if(c){return c+8|0}f=Tb(b);if(!f){return 0}c=H[a-4>>2];c=(c&3?-4:-8)+(c&-8)|0;Ob(f,a,b>>>0>c>>>0?c:b);Kb(a);return f}function nfa(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;a:{e=H[a+444>>2];if(!H[e+48>>2]){if(!(zb[H[H[a+448>>2]+12>>2]](a,H[((H[e+64>>2]<<2)+e|0)+56>>2])|0)){break a}H[e+48>>2]=1;H[e+76>>2]=H[e+76>>2]+1}b:{switch(H[e+68>>2]){case 2:zb[H[H[a+452>>2]+4>>2]](a,H[((H[e+64>>2]<<2)+e|0)+56>>2],e+52|0,H[e+72>>2],b,c,d);if(K[e+52>>2]>2]){break a}H[e+68>>2]=0;if(K[c>>2]>=d>>>0){break a}case 0:H[e+52>>2]=0;m=H[a+324>>2];H[e+72>>2]=m-1;c:{if(H[e+76>>2]!=H[a+328>>2]){break c}q=H[a+36>>2];if((q|0)<=0){break c}o=H[a+444>>2];r=(H[o+64>>2]<<2)+o|0;h=H[a+216>>2];while(1){f=N(H[h+40>>2],H[h+12>>2]);g=K[h+48>>2]%(f>>>0)|0;g=g?g:f;f=(f|0)/(m|0)|0;if(!i){H[o+72>>2]=((g-1|0)/(f|0)|0)+1}d:{if((f|0)<=0){break d}f=f<<1;j=(f|0)>1?f:1;p=j&3;k=H[H[r+56>>2]+(i<<2)>>2];n=(k+(g<<2)|0)-4|0;l=0;f=0;if(j-1>>>0>=3){s=j&2147483644;j=0;while(1){H[k+(f+g<<2)>>2]=H[n>>2];H[k+(g+(f|1)<<2)>>2]=H[n>>2];H[k+(g+(f|2)<<2)>>2]=H[n>>2];H[k+(g+(f|3)<<2)>>2]=H[n>>2];f=f+4|0;j=j+4|0;if((s|0)!=(j|0)){continue}break}}if(!p){break d}while(1){H[k+(f+g<<2)>>2]=H[n>>2];f=f+1|0;l=l+1|0;if((p|0)!=(l|0)){continue}break}}h=h+88|0;i=i+1|0;if((q|0)!=(i|0)){continue}break}}H[e+68>>2]=1;break;case 1:break b;default:break a}}zb[H[H[a+452>>2]+4>>2]](a,H[((H[e+64>>2]<<2)+e|0)+56>>2],e+52|0,H[e+72>>2],b,c,d);if(K[e+52>>2]>2]){break a}b=H[a+324>>2];e:{if(H[e+76>>2]!=1){break e}k=H[a+36>>2];if((k|0)<=0){break e}n=b+2|0;o=b+1|0;g=H[a+444>>2];h=H[a+216>>2];i=0;while(1){a=(N(H[h+40>>2],H[h+12>>2])|0)/(b|0)|0;if((a|0)>0){d=i<<2;c=H[d+H[g+60>>2]>>2];d=H[d+H[g+56>>2]>>2];j=N(a,n);p=N(a,o);f=0;while(1){l=f-a<<2;m=f+p<<2;H[l+d>>2]=H[m+d>>2];H[c+l>>2]=H[c+m>>2];l=f+j<<2;m=f<<2;H[l+d>>2]=H[m+d>>2];H[c+l>>2]=H[c+m>>2];f=f+1|0;if((a|0)!=(f|0)){continue}break}}h=h+88|0;i=i+1|0;if((k|0)!=(i|0)){continue}break}}H[e+48>>2]=0;H[e+68>>2]=2;H[e+72>>2]=b+2;H[e+52>>2]=b+1;H[e+64>>2]=H[e+64>>2]^1}}function nI(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;f=xb-16|0;xb=f;j=H[b+16>>2];k=H[b+8>>2];zb[H[b+28>>2]](b);a:{b:{c:{d:{c=H[b>>2];if(c>>>0>>0){H[b>>2]=c+1;if(I[c|0]==91){break d}}c=3;H[f+12>>2]=3;break c}zb[H[b+28>>2]](b);e:{f:{d=H[b>>2];g:{if(k>>>0<=d>>>0){break g}while(1){h:{i:{j:{c=I[d|0];if((c|0)!=60){if((c|0)!=93){break j}H[b>>2]=d+1;break b}if(l?0:g){break e}zb[H[b+32>>2]](b);if(H[b+12>>2]){break b}c=H[b>>2];i=(c+(d^-1)|0)/2|0;if(c-d>>>0<=2){break g}g=Ub(j,1,p,i,g,f+12|0);c=H[f+12>>2];if(c){break c}H[b>>2]=d;l=1;zb[H[b+44>>2]](b,g,i,f+8|0,1)|0;h=H[f+8>>2];break i}if(c-48>>>0>9){i=p;break i}if(l){break g}h=zb[H[b+36>>2]](b)|0;if((h|0)<0){break e}zb[H[b+32>>2]](b);if(H[b+12>>2]){break a}c=H[b>>2];g=c+1|0;if(k-c>>>0<=h>>>0){break e}H[b>>2]=(c+h|0)+1;l=0;break h}if(!g){break f}p=i}k:{l:{if(!(h&1)){c=h;break l}c=h-1|0;if(I[g+c|0]){break k}}h=c;if(!c){break g}}i=k-H[b>>2]|0;n=0;while(1){m:{n:{o:{switch(e|0){case 0:e=0;if((m|0)<12){break n}c=H[a+496>>2];o=(I[c+4|0]<<4)+I[c+5|0]|0;d=o<<4|12;H[a+500>>2]=d;if((d|0)>(i|0)){break g}s=a,t=Ub(j,1,12,d,c,f+12|0),H[s+496>>2]=t;c=H[f+12>>2];if(c){break c}case 1:e=1;c=H[a+500>>2];if((m|0)<(c|0)){break n}q=H[a+496>>2];if(o){r=q+24|0;d=0;while(1){e=(d<<4)+r|0;e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(e>>>0>i>>>0|(i-e|0)<(c|0)){break g}c=(e+3&-4)+c|0;H[a+500>>2]=c;d=d+1|0;if((o|0)!=(d|0)){continue}break}}s=a,t=Ub(j,1,o<<4|12,c+1|0,q,f+12|0),H[s+496>>2]=t;c=H[f+12>>2];if(c){break c}break;case 2:break o;default:break m}}e=2;if(H[a+500>>2]<=(m|0)){break g}}F[H[a+496>>2]+m|0]=I[g+n|0];m=m+1|0}n=n+1|0;if((n|0)!=(h|0)){continue}break}zb[H[b+28>>2]](b);d=H[b>>2];if(k>>>0>d>>>0){continue}break}}c=3;H[f+12>>2]=3;break c}c=3;H[f+12>>2]=3;g=0;break c}c=3;H[f+12>>2]=3;l=0}H[b+12>>2]=c}if(!l){break a}if(g){zb[H[j+8>>2]](j,g)}}xb=f+16|0}function tr(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;if(H[a+72>>2]==1869968492){if(c){l=H[c>>2];i=H[c+4>>2]}c=0;g=G[a+110>>1];a:{if(!g){break a}e=H[a+112>>2];c=H[e+4>>2];d=H[e>>2];if((g|0)<2){f=c;h=d;break a}j=(g<<3)+e|0;g=e+8|0;h=d;f=c;while(1){e=H[e+12>>2];f=(e|0)>(f|0)?e:f;c=(c|0)>(e|0)?e:c;e=H[g>>2];h=(e|0)>(h|0)?e:h;d=(d|0)>(e|0)?e:d;e=g;g=e+8|0;if(j>>>0>g>>>0){continue}break}}g=i&63;e=g+(f&63)|0;m=l&63;j=m+(h&63)|0;n=g+(c&63)|0;m=m+(d&63)|0;g=6;k=i>>6;i=k+(f>>6)|0;l=l>>6;f=l+(h>>6)|0;h=(c>>6)+k|0;c=l+(d>>6)|0;b:{c:{d:{switch(b-2|0){default:f=f+(j+63>>>6|0)|0;c=c+(m>>>6|0)|0;d=f-c|0;g=2;e=i+(e+63>>>6|0)|0;h=h+(n>>>6|0)|0;i=e-h|0;break c;case 0:d=j+32|0;f=f+(d>>>6|0)|0;b=c;c=m+31|0;b=b+(c>>>6|0)|0;e:{if((f|0)==(b|0)){if((((d&63)+(c&63)|0)-31|0)<=31){f=b;b=b-1|0;break e}f=b+1|0}}c=b;d=e+32|0;e=i+(d>>>6|0)|0;b=h;h=n+31|0;b=b+(h>>>6|0)|0;f:{if((e|0)==(b|0)){if((((d&63)+(h&63)|0)-31|0)<=31){e=b;b=b-1|0;break f}e=b+1|0}}h=b;i=e-b|0;d=f-c|0;b=d+15>>3&-2;g=1;break b;case 1:o=i;k=e;b=H[a>>2];d=H[b+184>>2];g=H[b+192>>2];e=(d|0)<(g|0)?d:g;i=H[b+200>>2];e=o+((k-((e|0)<(i|0)?e:i)|0)+63>>6)|0;d=(d|0)>(g|0)?d:g;h=(n-((d|0)>(i|0)?d:i)>>6)+h|0;i=e-h|0;k=f;d=H[b+180>>2];g=H[b+188>>2];f=(d|0)<(g|0)?d:g;b=H[b+196>>2];f=k+((j-((b|0)>(f|0)?f:b)|0)+63>>6)|0;k=c;c=(d|0)>(g|0)?d:g;c=k+(m-((b|0)<(c|0)?c:b)>>6)|0;d=N(f-c|0,3);b=d+3&-4;g=5;break b;case 2:break d}}o=f;k=j;b=H[a>>2];d=H[b+184>>2];j=H[b+192>>2];f=(d|0)<(j|0)?d:j;l=H[b+200>>2];f=o+((k-((f|0)<(l|0)?f:l)|0)+63>>6)|0;k=c;c=(d|0)>(j|0)?d:j;c=k+(m-((c|0)>(l|0)?c:l)>>6)|0;d=f-c|0;k=i;i=H[b+180>>2];j=H[b+188>>2];m=(i|0)>(j|0)?i:j;b=H[b+196>>2];e=k+((e+((b|0)<(m|0)?m:b)|0)+63>>6)|0;k=h;h=(i|0)<(j|0)?i:j;h=k+(((b|0)>(h|0)?h:b)+n>>6)|0;i=N(e-h|0,3)}b=d}H[a+104>>2]=e;H[a+100>>2]=c;H[a+76>>2]=i;F[a+94|0]=g;G[a+92>>1]=256;H[a+80>>2]=d;H[a+84>>2]=b;a=(c|0)<-32768|(f|0)>32767|(h|0)<-32768|(e|0)>32767}else{a=1}return a}function vt(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=H[b+4>>2];a:{if(g>>>0>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<16){break a}f=H[b+12>>2];d=f-16|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0<4){break a}d=a+4|0;if(d>>>0>>0|c>>>0>>0|c-d>>>0<4){break a}c=f-20|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=F[d|0];if((c|0)<0){break a}if(!Hf((I[a+7|0]|(I[a+5|0]<<16|(c&255)<<24|I[a+6|0]<<8))+a|0,b)){return 0}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);h=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(h>>>0>2147483646){break a}c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);i=(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))+a|0;d=a;a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);j=d+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0;l=h<<1;g=0;a=0;c=0;while(1){d=c;b:{c:{d:{e:{if((a|0)>=(g|0)){f=a+1|0;if(!(!h|f>>>0<4294967295/(l>>>0)>>>0)){return 0}c=N(f,l);f:{if(!c){e=H[b+12>>2];break f}if(K[b+4>>2]>j>>>0){break a}e=H[b+8>>2];if(e>>>0>>0|c>>>0>e-j>>>0){break a}e=H[b+12>>2]-c|0;H[b+12>>2]=e;if((e|0)<=0){break a}}c=((a^-1)+g|0)+e|0;H[b+12>>2]=c;if((c|0)<=0|(f>>>0>=4294967295/(h>>>0)>>>0?h:0)){break a}c=N(f,h);if((c|0)<0){break a}g=N(g,h);if((g|0)<(c|0)){break e}g=f}if(!d){break c}c=d;break d}k=(c<<1)+j|0;e=(g<<1)+j|0;c=d;while(1){g=I[e|0]|I[e+1|0]<<8;g=((g<<8|g>>>8)&65535)+1|0;c=c>>>0>g>>>0?c:g;e=e+2|0;if(k>>>0>e>>>0){continue}break}g=f}k=0;if(K[b+4>>2]>i>>>0){break a}f=H[b+8>>2];if(f>>>0>>0){break a}e=f-i|0;f=N(c,6);if(e>>>0>>0){break a}e=H[b+12>>2]-f|0;H[b+12>>2]=e;if((e|0)<=0){break a}break b}e=H[b+12>>2];c=d}f=(d-c|0)+e|0;H[b+12>>2]=f;if((f|0)<=0){return 0}if((c|0)>(d|0)){f=N(c,6)+i|0;e=N(d,6)+i|0;while(1){d=I[e|0]|I[e+1|0]<<8;d=(d<<8|d>>>8)&65535;a=(a|0)>(d|0)?a:d;e=e+6|0;if(f>>>0>e>>>0){continue}break}}if((a|0)>=(g|0)){continue}break}k=1}return k}function JY(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-16|0;xb=f;g=f+8|0;h=d;i=b;a:{b:{c:{d:{d=c;j=b+4|0;if((c|0)!=(j|0)){k=J[h>>1];b=J[d+16>>1];if(k>>>0>=b>>>0){break d}}g=H[d>>2];e:{if((d|0)!=H[i>>2]){f:{if(g){b=g;while(1){c=b;b=H[b+4>>2];if(b){continue}break}break f}c=d+8|0;if((d|0)==H[H[d+8>>2]>>2]){while(1){b=H[c>>2];c=b+8|0;if((b|0)==H[H[b+8>>2]>>2]){continue}break}}c=H[c>>2]}h=J[h>>1];if(h>>>0<=J[c+16>>1]){break e}}if(!g){H[f+12>>2]=d;b=d;break a}H[f+12>>2]=c;b=c+4|0;break a}b=H[j>>2];if(!b){break c}d=i+4|0;g:{while(1){h:{c=J[b+16>>1];i:{if(c>>>0>h>>>0){c=H[b>>2];if(c){break i}H[f+12>>2]=b;break a}if(c>>>0>=h>>>0){break g}d=b+4|0;c=H[b+4>>2];if(!c){break h}b=d}d=b;b=c;continue}break}H[f+12>>2]=b;b=d;break a}H[f+12>>2]=b;b=d;break a}if(b>>>0>=k>>>0){break b}h=H[d+4>>2];j:{if(h){b=h;while(1){c=b;b=H[b>>2];if(b){continue}break}break j}c=H[d+8>>2];if((d|0)==H[c>>2]){break j}g=d+8|0;while(1){b=H[g>>2];g=b+8|0;c=H[b+8>>2];if((b|0)!=H[c>>2]){continue}break}}if(!((c|0)!=(j|0)&J[c+16>>1]<=k>>>0)){if(!h){H[f+12>>2]=d;b=d+4|0;break a}H[f+12>>2]=c;b=c;break a}b=H[j>>2];if(!b){break c}d=i+4|0;k:{while(1){l:{c=J[b+16>>1];m:{if(c>>>0>k>>>0){c=H[b>>2];if(c){break m}H[f+12>>2]=b;break a}if(c>>>0>=k>>>0){break k}d=b+4|0;c=H[b+4>>2];if(!c){break l}b=d}d=b;b=c;continue}break}H[f+12>>2]=b;b=d;break a}H[f+12>>2]=b;b=d;break a}H[f+12>>2]=j;b=j;break a}H[f+12>>2]=d;H[g>>2]=d;b=g}n:{c=H[b>>2];if(c){b=0}else{c=Qb(32);G[c+16>>1]=J[e>>1];g=c+20|0;o:{if(F[e+15|0]>=0){d=H[e+8>>2];H[g>>2]=H[e+4>>2];H[g+4>>2]=d;H[g+8>>2]=H[e+12>>2];break o}h=H[e+8>>2];d=H[e+4>>2];H[197455]=0;ga(1647,g|0,d|0,h|0);d=H[197455];H[197455]=0;if((d|0)==1){break n}}H[c+8>>2]=H[f+12>>2];H[c>>2]=0;H[c+4>>2]=0;H[b>>2]=c;d=H[H[i>>2]>>2];if(d){H[i>>2]=d;b=H[b>>2]}else{b=c}Og(H[i+4>>2],b);H[i+8>>2]=H[i+8>>2]+1;b=1}F[a+4|0]=b;H[a>>2]=c;xb=f+16|0;return}a=$()|0;_()|0;Kb(c);ea(a|0);X()}function FX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-16|0;xb=f;g=f+8|0;h=d;i=b;a:{b:{c:{d:{d=c;j=b+4|0;if((c|0)!=(j|0)){k=H[h>>2];b=H[d+16>>2];if((k|0)>=(b|0)){break d}}g=H[d>>2];e:{if((d|0)!=H[i>>2]){f:{if(g){b=g;while(1){c=b;b=H[b+4>>2];if(b){continue}break}break f}c=d+8|0;if((d|0)==H[H[d+8>>2]>>2]){while(1){b=H[c>>2];c=b+8|0;if((b|0)==H[H[b+8>>2]>>2]){continue}break}}c=H[c>>2]}h=H[h>>2];if((h|0)<=H[c+16>>2]){break e}}if(!g){H[f+12>>2]=d;b=d;break a}H[f+12>>2]=c;b=c+4|0;break a}b=H[j>>2];if(!b){break c}d=i+4|0;g:{while(1){h:{c=H[b+16>>2];i:{if((c|0)>(h|0)){c=H[b>>2];if(c){break i}H[f+12>>2]=b;break a}if((c|0)>=(h|0)){break g}d=b+4|0;c=H[b+4>>2];if(!c){break h}b=d}d=b;b=c;continue}break}H[f+12>>2]=b;b=d;break a}H[f+12>>2]=b;b=d;break a}if((b|0)>=(k|0)){break b}h=H[d+4>>2];j:{if(h){b=h;while(1){c=b;b=H[b>>2];if(b){continue}break}break j}c=H[d+8>>2];if((d|0)==H[c>>2]){break j}g=d+8|0;while(1){b=H[g>>2];g=b+8|0;c=H[b+8>>2];if((b|0)!=H[c>>2]){continue}break}}if(!((c|0)!=(j|0)&H[c+16>>2]<=(k|0))){if(!h){H[f+12>>2]=d;b=d+4|0;break a}H[f+12>>2]=c;b=c;break a}b=H[j>>2];if(!b){break c}d=i+4|0;k:{while(1){l:{c=H[b+16>>2];m:{if((c|0)>(k|0)){c=H[b>>2];if(c){break m}H[f+12>>2]=b;break a}if((c|0)>=(k|0)){break k}d=b+4|0;c=H[b+4>>2];if(!c){break l}b=d}d=b;b=c;continue}break}H[f+12>>2]=b;b=d;break a}H[f+12>>2]=b;b=d;break a}H[f+12>>2]=j;b=j;break a}H[f+12>>2]=d;H[g>>2]=d;b=g}n:{c=H[b>>2];if(c){b=0}else{c=Qb(32);H[c+16>>2]=H[e>>2];g=c+20|0;o:{if(F[e+15|0]>=0){d=H[e+8>>2];H[g>>2]=H[e+4>>2];H[g+4>>2]=d;H[g+8>>2]=H[e+12>>2];break o}h=H[e+8>>2];d=H[e+4>>2];H[197455]=0;ga(1647,g|0,d|0,h|0);d=H[197455];H[197455]=0;if((d|0)==1){break n}}H[c+8>>2]=H[f+12>>2];H[c>>2]=0;H[c+4>>2]=0;H[b>>2]=c;d=H[H[i>>2]>>2];if(d){H[i>>2]=d;b=H[b>>2]}else{b=c}Og(H[i+4>>2],b);H[i+8>>2]=H[i+8>>2]+1;b=1}F[a+4|0]=b;H[a>>2]=c;xb=f+16|0;return}a=$()|0;_()|0;Kb(c);ea(a|0);X()}function yt(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=H[b+4>>2];e=a+4|0;a:{if(f>>>0>e>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-e>>>0<4){break a}g=H[b+12>>2]-4|0;H[b+12>>2]=g;if((g|0)<=0){break a}e=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(e>>>0<16|a>>>0>>0|(a>>>0>c>>>0|e>>>0>c-a>>>0)){break a}g=g-e|0;H[b+12>>2]=g;if((g|0)<=0){break a}e=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(e>>>0>357913940){break a}if(e){h=f;f=a+16|0;if(h>>>0>f>>>0|c>>>0>>0){break a}f=c-f|0;c=N(e,12);if(f>>>0>>0){break a}c=g-c|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);c=N(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24),12)}else{c=0}d=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);g=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(!g){return 1}a=(a+c|0)+16|0;e=0;while(1){c=0;b:{if(K[b+4>>2]>a>>>0){break b}d=H[b+8>>2];if(d>>>0>>0){break b}h=d-a|0;if(h>>>0<4){break b}f=H[b+12>>2]-4|0;H[b+12>>2]=f;if((f|0)<=0){break b}d=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(d>>>0<13|d>>>0>h>>>0){break b}d=f-d|0;H[b+12>>2]=d;if((d|0)<=0){break b}d=H[b+32>>2];c=H[d+12>>2];H[b+4>>2]=c;d=c+H[d+16>>2]|0;H[b+8>>2]=d;c:{if(!(a>>>0>>0&a>>>0>=c>>>0)){H[b+4>>2]=0;H[b+8>>2]=0;break c}H[b+4>>2]=a;d=d-a|0;c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);H[b+8>>2]=(c>>>0>d>>>0?d:c)+a}H[197455]=0;c=xt(a,b);d=H[197455];H[197455]=0;d:{if((d|0)==1){break d}d=H[b+32>>2];f=H[d+12>>2];H[b+4>>2]=f;H[b+8>>2]=f+H[d+16>>2];break b}a=$()|0;_()|0;c=H[b+32>>2];d=H[c+12>>2];H[b+4>>2]=d;H[b+8>>2]=d+H[c+16>>2];ea(a|0);X()}d=c;if(!d){break a}c=a;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=c+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}}return d}function yd(a,b,c){var d=0,e=0;if(b){d=a^-1;a:{if(!c|!(b&3)){break a}d=H[((I[b|0]^d&255)<<2)+229744>>2]^d>>>8;e=c-1|0;a=b+1|0;if(!(!e|!(a&3))){d=H[((I[b+1|0]^d&255)<<2)+229744>>2]^d>>>8;e=c-2|0;a=b+2|0;if(!(!e|!(a&3))){d=H[((I[b+2|0]^d&255)<<2)+229744>>2]^d>>>8;e=c-3|0;a=b+3|0;if(!(!e|!(a&3))){d=H[((I[b+3|0]^d&255)<<2)+229744>>2]^d>>>8;c=c-4|0;b=b+4|0;break a}b=a;c=e;break a}b=a;c=e;break a}b=a;c=e}if(c>>>0>31){while(1){a=H[b>>2]^d;a=H[b+4>>2]^(H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2]);a=H[b+8>>2]^(H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2]);a=H[b+12>>2]^(H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2]);a=H[b+16>>2]^(H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2]);a=H[b+20>>2]^(H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2]);a=H[b+24>>2]^(H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2]);a=H[b+28>>2]^(H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2]);d=H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2];b=b+32|0;c=c-32|0;if(c>>>0>31){continue}break}}if(c>>>0>3){while(1){a=H[b>>2]^d;d=H[(a>>>6&1020)+231792>>2]^H[((a&255)<<2)+232816>>2]^H[(a>>>14&1020)+230768>>2]^H[(a>>>22&1020)+229744>>2];b=b+4|0;c=c-4|0;if(c>>>0>3){continue}break}}b:{if(!c){break b}if(c&1){d=H[((I[b|0]^d&255)<<2)+229744>>2]^d>>>8;b=b+1|0;a=c-1|0}else{a=c}if((c|0)==1){break b}while(1){c=H[((I[b|0]^d&255)<<2)+229744>>2]^d>>>8;d=H[((I[b+1|0]^c&255)<<2)+229744>>2]^c>>>8;b=b+2|0;a=a-2|0;if(a){continue}break}}a=d^-1}else{a=0}return a}function Yg(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,r=0,s=0,t=0,u=0;d=a&65535;e=a>>>16|0;a:{if((c|0)==1){a=I[b|0]+d|0;a=a>>>0>65520?a-65521|0:a;b=a+e|0;c=b<<16;a=(b>>>0>65520?c+983040|0:c)|a;break a}if(b){if(c>>>0>=16){b:{c:{d:{if(c>>>0>5551){while(1){c=c-5552|0;f=347;a=b;while(1){g=I[a|0]+d|0;h=g+I[a+1|0]|0;i=h+I[a+2|0]|0;j=i+I[a+3|0]|0;k=j+I[a+4|0]|0;l=k+I[a+5|0]|0;m=l+I[a+6|0]|0;n=m+I[a+7|0]|0;o=n+I[a+8|0]|0;p=o+I[a+9|0]|0;q=p+I[a+10|0]|0;r=q+I[a+11|0]|0;s=r+I[a+12|0]|0;t=s+I[a+13|0]|0;u=t+I[a+14|0]|0;d=u+I[a+15|0]|0;e=d+(u+(t+(s+(r+(q+(p+(o+(n+(m+(l+(k+(j+(i+(h+(e+g|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;a=a+16|0;f=f-1|0;if(f){continue}break}e=(e>>>0)%65521|0;d=(d>>>0)%65521|0;b=b+5552|0;if(c>>>0>5551){continue}break}if(!c){break b}if(c>>>0<16){break d}}while(1){a=I[b|0]+d|0;f=a+I[b+1|0]|0;g=f+I[b+2|0]|0;h=g+I[b+3|0]|0;i=h+I[b+4|0]|0;j=i+I[b+5|0]|0;k=j+I[b+6|0]|0;l=k+I[b+7|0]|0;m=l+I[b+8|0]|0;n=m+I[b+9|0]|0;o=n+I[b+10|0]|0;p=o+I[b+11|0]|0;q=p+I[b+12|0]|0;r=q+I[b+13|0]|0;s=r+I[b+14|0]|0;d=s+I[b+15|0]|0;e=d+(s+(r+(q+(p+(o+(n+(m+(l+(k+(j+(i+(h+(g+(f+(a+e|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;b=b+16|0;c=c-16|0;if(c>>>0>15){continue}break}if(!c){break c}}g=c-1|0;h=c&3;if(h){f=0;a=b;while(1){c=c-1|0;d=I[a|0]+d|0;e=e+d|0;b=a+1|0;a=b;f=f+1|0;if((h|0)!=(f|0)){continue}break}}if(g>>>0<3){break c}while(1){a=I[b|0]+d|0;f=a+I[b+1|0]|0;g=f+I[b+2|0]|0;d=g+I[b+3|0]|0;e=d+(g+(f+(a+e|0)|0)|0)|0;b=b+4|0;c=c-4|0;if(c){continue}break}}e=(e>>>0)%65521|0;d=(d>>>0)%65521|0}a=e<<16|d;break a}e:{if(!c){break e}g=c-1|0;h=c&3;if(h){a=b;while(1){c=c-1|0;d=I[a|0]+d|0;e=e+d|0;b=a+1|0;a=b;f=f+1|0;if((h|0)!=(f|0)){continue}break}}if(g>>>0<3){break e}while(1){a=I[b|0]+d|0;f=a+I[b+1|0]|0;g=f+I[b+2|0]|0;d=g+I[b+3|0]|0;e=d+(g+(f+(a+e|0)|0)|0)|0;b=b+4|0;c=c-4|0;if(c){continue}break}}a=(e>>>0)%65521<<16|(d>>>0>65520?d-65521|0:d)}else{a=1}}return a}function RE(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;f=xb-16|0;xb=f;a:{if(H[b+136>>2]!=6){break a}c=I[a+2|0]|I[a+3|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}else{d=163632}c=H[b+100>>2];k=Gc(d,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);if((k|0)==-1){break a}c=I[a+4|0]|I[a+5|0]<<8;g=(c<<8|c>>>8)&65535;d=((g<<1)+a|0)+6|0;c=I[d|0]|I[d+1|0]<<8;j=((((c<<8|c>>>8)&65535)<<1)+d|0)+2|0;c=I[j|0]|I[j+1|0]<<8;if(((c<<8|c>>>8)&65535)>>>0<=k>>>0){break a}H[f+12>>2]=0;H[f+8>>2]=0;l=a+6|0;h=xb-16|0;xb=h;c=H[b+100>>2];c=H[(I[c+61|0]?72:64)+c>>2];H[b+84>>2]=g;H[b+48>>2]=c;i=H[H[b+52>>2]+100>>2];H[b+88>>2]=H[i+68>>2];m=(c|0)==H[i+64>>2]?I[(H[i+80>>2]+N(c,20)|0)+15|0]:m;H[b+80>>2]=l;H[b+76>>2]=a;H[b+72>>2]=732;F[b+68|0]=m;b:{if(g){e=1;c:{c=b+48|0;if(ah(c,h+12|0)){e=0;while(1){e=e+1|0;if((g|0)==(e|0)){break c}if(ah(c,h+12|0)){continue}break}e=e>>>0>>0}H[f+12>>2]=H[h+12>>2];break b}e=e>>>0>>0;c=H[c>>2]}H[f+12>>2]=c}xb=h+16|0;d:{if(e){break d}l=d+2|0;c=H[H[b+100>>2]+64>>2]+1|0;e=0;h=0;g=xb-16|0;xb=g;d=I[d|0]|I[d+1|0]<<8;d=(d<<8|d>>>8)&65535;H[b+84>>2]=d;c=c-1|0;H[b+48>>2]=c;i=H[H[b+52>>2]+100>>2];H[b+88>>2]=H[i+68>>2];h=(c|0)==H[i+64>>2]?I[(H[i+80>>2]+N(c,20)|0)+15|0]:h;H[b+80>>2]=l;H[b+76>>2]=a;H[b+72>>2]=732;F[b+68|0]=h;e:{if(d){e=1;f:{c=b+48|0;if(Ne(c,g+12|0)){a=0;while(1){a=a+1|0;if((d|0)==(a|0)){break f}if(Ne(c,g+12|0)){continue}break}e=a>>>0>>0}H[f+8>>2]=H[g+12>>2];break e}e=a>>>0>>0;c=H[c>>2]}H[f+8>>2]=c+1}xb=g+16|0;if(e){break d}Rc(H[b+100>>2],3,H[f+12>>2],H[f+8>>2],1,1);a=I[j|0]|I[j+1|0]<<8;a=((a<<8|a>>>8)&65535)>>>0>k>>>0?((k<<1)+j|0)+2|0:163632;a=I[a|0]|I[a+1|0]<<8;e=(a<<8|a>>>8)&65535;a=H[b+100>>2];c=H[a+80>>2]+N(H[a+64>>2],20)|0;a=J[c+12>>1]|16;if(I[b+140|0]){a=Ye(H[b+108>>2],e)|a&112}G[c+12>>1]=a;a=H[b+100>>2];H[H[a+80>>2]+N(H[a+64>>2],20)>>2]=e;n=1;break a}a=H[b+100>>2];if(!(I[a+16|0]&64)){break a}Rc(a,2,H[f+12>>2],H[f+8>>2],0,1)}xb=f+16|0;return n}function Jl(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;g=xb+-64|0;xb=g;k=H[b>>2];H[g>>2]=k;H[g+4>>2]=H[c>>2];m=I[e+9|0];o=m?10:9;while(1){n=(i<<2)+g|0;H[n+8>>2]=k;if(I[e+i|0]){j=H[a+8>>2];a:{if(H[a+12>>2]-j>>3>>>0<=h>>>0){j=0;l=H[a+4>>2];if(!l|H[l>>2]){break a}H[l>>2]=130;break a}b:{c:{d:{j=j+(h<<3)|0;switch(H[j+4>>2]-1|0){case 0:break c;case 1:break d;default:break b}}j=H[j>>2]<<16;break a}j=H[j>>2];j=((j>>31)+j|0)- -8192>>14;break a}j=H[j>>2]}H[n+8>>2]=j+k;h=h+1|0}i=i+1|0;if((o|0)!=(i|0)){k=H[(i<<2)+g>>2];continue}break}if(!m){H[g+44>>2]=H[c>>2]}e:{f:{if(f){f=H[g+44>>2]-H[c>>2]|0;e=f>>31;f=(e^f)-e|0;i=H[g+40>>2]-H[b>>2]|0;e=i>>31;i=(e^i)-e|0;e=H[a+8>>2];g:{if(H[a+12>>2]-e>>3>>>0<=h>>>0){h=0;e=H[a+4>>2];if(!e|H[e>>2]){break g}H[e>>2]=130;break g}h:{i:{j:{e=e+(h<<3)|0;switch(H[e+4>>2]-1|0){case 0:break i;case 1:break j;default:break h}}h=H[e>>2]<<16;break g}e=H[e>>2];h=((e>>31)+e|0)- -8192>>14;break g}h=H[e>>2]}if((f|0)<(i|0)){i=H[g+40>>2]+h|0;break f}i=H[b>>2];e=H[g+44>>2]+h|0;break e}k:{if(I[e+10|0]){i=H[g+40>>2];f=H[a+8>>2];l:{if(H[a+12>>2]-f>>3>>>0<=h>>>0){k=0;f=H[a+4>>2];if(!f|H[f>>2]){break l}H[f>>2]=130;break l}m:{n:{o:{f=f+(h<<3)|0;switch(H[f+4>>2]-1|0){case 0:break n;case 1:break o;default:break m}}k=H[f>>2]<<16;break l}f=H[f>>2];k=((f>>31)+f|0)- -8192>>14;break l}k=H[f>>2]}h=h+1|0;i=i+k|0;break k}i=H[b>>2]}H[g+48>>2]=i;if(!I[e+11|0]){break f}f=H[g+44>>2];e=H[a+8>>2];p:{if(H[a+12>>2]-e>>3>>>0<=h>>>0){h=0;e=H[a+4>>2];if(!e|H[e>>2]){break p}H[e>>2]=130;i=H[g+48>>2];break p}q:{r:{s:{e=e+(h<<3)|0;switch(H[e+4>>2]-1|0){case 0:break r;case 1:break s;default:break q}}h=H[e>>2]<<16;break p}e=H[e>>2];h=((e>>31)+e|0)- -8192>>14;break p}h=H[e>>2]}e=f+h|0;break e}e=H[c>>2]}hh(d,H[g+8>>2],H[g+12>>2],H[g+16>>2],H[g+20>>2],H[g+24>>2],H[g+28>>2]);hh(d,H[g+32>>2],H[g+36>>2],H[g+40>>2],H[g+44>>2],i,e);H[a+12>>2]=H[a+8>>2];H[b>>2]=i;H[c>>2]=e;xb=g- -64|0}function CR(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;var h=0,i=0,j=0,k=0;a=xb-624|0;xb=a;H[a+608>>2]=c;H[a+616>>2]=b;H[a+16>>2]=3480;b=Ed(a+200|0,a+208|0,a+16|0);H[197455]=0;h=H[e+28>>2];H[a+192>>2]=h;H[h+4>>2]=H[h+4>>2]+1;h=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((h|0)!=1){H[197455]=0;h=aa(3342,a+192|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break j}F[a+191|0]=0;e=H[e+4>>2];H[197455]=0;c=Ha(3491,a+616|0,c|0,d|0,a+192|0,e|0,f|0,a+191|0,h|0,b|0,a+196|0,a+608|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!c){break f}c=I[239650]|I[239651]<<8|(I[239652]<<16|I[239653]<<24);F[a+183|0]=c;F[a+184|0]=c>>>8;F[a+185|0]=c>>>16;F[a+186|0]=c>>>24;c=I[239647]|I[239648]<<8|(I[239649]<<16|I[239650]<<24);H[a+176>>2]=I[239643]|I[239644]<<8|(I[239645]<<16|I[239646]<<24);H[a+180>>2]=c;H[197455]=0;la(3458,h|0,a+176|0,a+186|0,a+128|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[a+4>>2]=594;d=Ed(a+8|0,0,a+4|0);c=a+16|0;if((H[a+196>>2]-H[b>>2]|0)<393){break g}ae(d,Tb((H[a+196>>2]-H[b>>2]>>2)+2|0));if(H[d>>2]){break h}H[197455]=0;na(3419);c=H[197455];H[197455]=0;if((c|0)==1){break d}break a}e=$()|0;_()|0;break b}e=$()|0;_()|0;break c}e=$()|0;_()|0;break c}c=H[d>>2]}if(I[a+191|0]){F[c|0]=45;c=c+1|0}e=H[b>>2];while(1){if(K[a+196>>2]<=e>>>0){F[c|0]=0;H[a>>2]=g;if((vp(a+16|0,239061,a)|0)!=1){H[197455]=0;ia(3482,238570);c=H[197455];H[197455]=0;if((c|0)!=1){break a}break d}Bc(d)}else{h=a+128|0;j=c,k=I[(a+176|0)+(Wo(h,h+40|0,e)-h>>2)|0],F[j|0]=k;c=c+1|0;e=e+4|0;continue}break}}H[197455]=0;c=da(3450,a+616|0,a+608|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}if(c){H[f>>2]=H[f>>2]|2}e=H[a+616>>2];c=H[a+192>>2];d=H[c+4>>2]-1|0;H[c+4>>2]=d;if((d|0)==-1){zb[H[H[c>>2]+8>>2]](c)}Bc(b);xb=a+624|0;return e|0}e=$()|0;_()|0;break c}e=$()|0;_()|0;Bc(d)}a=H[a+192>>2];c=H[a+4>>2]-1|0;H[a+4>>2]=c;if((c|0)==-1){zb[H[H[a>>2]+8>>2]](a)}}Bc(b);ea(e|0);X()}X()}function JR(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;var h=0,i=0,j=0,k=0;a=xb-288|0;xb=a;H[a+272>>2]=c;H[a+280>>2]=b;H[a+16>>2]=3480;b=Ed(a+152|0,a+160|0,a+16|0);H[197455]=0;h=H[e+28>>2];H[a+144>>2]=h;H[h+4>>2]=H[h+4>>2]+1;h=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((h|0)!=1){H[197455]=0;h=aa(3329,a+144|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break j}F[a+143|0]=0;e=H[e+4>>2];H[197455]=0;c=Ha(3481,a+280|0,c|0,d|0,a+144|0,e|0,f|0,a+143|0,h|0,b|0,a+148|0,a+260|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}if(!c){break f}c=I[239650]|I[239651]<<8|(I[239652]<<16|I[239653]<<24);F[a+135|0]=c;F[a+136|0]=c>>>8;F[a+137|0]=c>>>16;F[a+138|0]=c>>>24;c=I[239647]|I[239648]<<8|(I[239649]<<16|I[239650]<<24);H[a+128>>2]=I[239643]|I[239644]<<8|(I[239645]<<16|I[239646]<<24);H[a+132>>2]=c;H[197455]=0;la(3438,h|0,a+128|0,a+138|0,a+118|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break i}H[a+4>>2]=594;d=Ed(a+8|0,0,a+4|0);c=a+16|0;if((H[a+148>>2]-H[b>>2]|0)<99){break g}ae(d,Tb((H[a+148>>2]-H[b>>2]|0)+2|0));if(H[d>>2]){break h}H[197455]=0;na(3419);c=H[197455];H[197455]=0;if((c|0)==1){break d}break a}e=$()|0;_()|0;break b}e=$()|0;_()|0;break c}e=$()|0;_()|0;break c}c=H[d>>2]}if(I[a+143|0]){F[c|0]=45;c=c+1|0}e=H[b>>2];while(1){if(K[a+148>>2]<=e>>>0){F[c|0]=0;H[a>>2]=g;if((vp(a+16|0,239061,a)|0)!=1){H[197455]=0;ia(3482,238570);c=H[197455];H[197455]=0;if((c|0)!=1){break a}break d}Bc(d)}else{h=a+118|0;j=c,k=I[(a+(Zo(h,h+10|0,e)-a|0)|0)+10|0],F[j|0]=k;c=c+1|0;e=e+1|0;continue}break}}H[197455]=0;c=da(3421,a+280|0,a+272|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}if(c){H[f>>2]=H[f>>2]|2}e=H[a+280>>2];c=H[a+144>>2];d=H[c+4>>2]-1|0;H[c+4>>2]=d;if((d|0)==-1){zb[H[H[c>>2]+8>>2]](c)}Bc(b);xb=a+288|0;return e|0}e=$()|0;_()|0;break c}e=$()|0;_()|0;Bc(d)}a=H[a+144>>2];c=H[a+4>>2]-1|0;H[a+4>>2]=c;if((c|0)==-1){zb[H[H[a>>2]+8>>2]](a)}}Bc(b);ea(e|0);X()}X()}function vj(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=H[a+584>>2];g=H[i+64>>2];e=H[i+68>>2];if((b|0)>=2624){while(1){h=J[c+620>>1];d=J[c+618>>1];a:{if(d>>>0<=e>>>0){break a}d=d-e|0;e=h>>>d|g;if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}g=H[a+604>>2];H[a+604>>2]=g+1;F[g|0]=e;f=H[a+608>>2]+1|0;H[a+608>>2]=f;e=8;g=0;if(d>>>0<9){break a}while(1){d=d-8|0;e=h>>>d|0;if(H[a+600>>2]<=(f|0)){Uc(a)}f=H[a+604>>2];H[a+604>>2]=f+1;F[f|0]=e;f=H[a+608>>2]+1|0;H[a+608>>2]=f;e=8;if(d>>>0>8){continue}break}}f=h&H[(d<<2)+294720>>2];h=e-d|0;g=f<>2]>=H[a+600>>2]){Uc(a)}e=H[a+604>>2];H[a+604>>2]=e+1;F[e|0]=g;H[a+608>>2]=H[a+608>>2]+1;g=0;e=8}b=b-G[c+622>>1]|0;if((b|0)>2623){continue}break}}b:{if((b|0)<64){h=e;break b}j=(b>>>6|0)+63|0;d=N(j,6)+c|0;h=J[d+2>>1];d=J[d>>1];c:{if(d>>>0<=e>>>0){break c}d=d-e|0;e=h>>>d|g;if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}g=H[a+604>>2];H[a+604>>2]=g+1;F[g|0]=e;f=H[a+608>>2]+1|0;H[a+608>>2]=f;e=8;g=0;if(d>>>0<9){break c}while(1){d=d-8|0;e=h>>>d|0;if(H[a+600>>2]<=(f|0)){Uc(a)}f=H[a+604>>2];H[a+604>>2]=f+1;F[f|0]=e;f=H[a+608>>2]+1|0;H[a+608>>2]=f;e=8;if(d>>>0>8){continue}break}}f=h&H[(d<<2)+294720>>2];h=e-d|0;g=f<>2]>=H[a+600>>2]){Uc(a)}e=H[a+604>>2];H[a+604>>2]=e+1;F[e|0]=g;H[a+608>>2]=H[a+608>>2]+1;g=0;h=8}b=b-G[(N(j,6)+c|0)+4>>1]|0}c=N(b,6)+c|0;b=J[c+2>>1];d=J[c>>1];d:{if(h>>>0>=d>>>0){break d}d=d-h|0;c=b>>>d|g;if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}e=H[a+604>>2];H[a+604>>2]=e+1;F[e|0]=c;f=H[a+608>>2]+1|0;H[a+608>>2]=f;h=8;g=0;if(d>>>0<9){break d}while(1){d=d-8|0;c=b>>>d|0;if(H[a+600>>2]<=(f|0)){Uc(a)}e=H[a+604>>2];H[a+604>>2]=e+1;F[e|0]=c;f=H[a+608>>2]+1|0;H[a+608>>2]=f;if(d>>>0>8){continue}break}}c=b&H[(d<<2)+294720>>2];b=h-d|0;f=c<>2]>=H[a+600>>2]){Uc(a)}b=H[a+604>>2];H[a+604>>2]=b+1;F[b|0]=f;H[a+608>>2]=H[a+608>>2]+1;f=0;b=8}H[i+68>>2]=b;H[i+64>>2]=f}function lG(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;f=xb-96|0;xb=f;e=0;a:{if(K[a+16>>2]<=c>>>0){break a}b:{e=H[b+68>>2];if(!e){break b}g=H[H[a>>2]>>2];g=g?g:163632;g=K[g+16>>2]<20?163632:H[g+12>>2];g=I[g+4|0]|I[g+5|0]<<8;if((e|0)!=((g<<8|g>>>8)&65535)){break b}H[f+88>>2]=-8388609;H[f+80>>2]=2139095039;H[f+84>>2]=-8388609;H[f+72>>2]=0;H[f+76>>2]=2139095039;H[f+68>>2]=d;H[f+64>>2]=b;if(d){H[f+88>>2]=-8388609}H[f+32>>2]=H[f+88>>2];d=H[f+84>>2];H[f+24>>2]=H[f+80>>2];H[f+28>>2]=d;d=H[f+76>>2];H[f+16>>2]=H[f+72>>2];H[f+20>>2]=d;d=H[f+68>>2];H[f+8>>2]=H[f+64>>2];H[f+12>>2]=d;e=gs(a,b,c,f+8|0);break a}ll(f+40|0,a,c,0);e=1;if(!H[f+60>>2]){break a}c=H[f+56>>2];g=H[a+4>>2];h=H[g>>2];e=H[f+52>>2];c:{d:{if(h>>>0>e>>>0){a=H[g+20>>2];a=((e|0)<0?163632:H[(a?a:163632)+12>>2]+(e<<2)|0)+2|0;break d}a=0;i=0;if(e>>>0>=K[g+4>>2]){break c}a=H[g+20>>2];a=(e-h<<1)+((h|0)<0?163632:H[(a?a:163632)+12>>2]+(h<<2)|0)|0}a=I[a|0]|I[a+1|0]<<8;e=(a<<8|a>>>8)<<16;a=e>>31;i=e>>16}g=H[b+40>>2];h=H[b+44>>2];e=gma(i,a,g,h)+32768|0;a=yb;a=e>>>0<32768?a+1|0:a;H[d>>2]=(a&65535)<<16|e>>>16;a=H[b+52>>2];i=a;j=H[b+48>>2];k=c+8|0;l=c+4|0;a=I[c+4|0]|I[c+5|0]<<8;m=(a<<8|a>>>8)<<16>>16;a=I[c+8|0]|I[c+9|0]<<8;n=(a<<8|a>>>8)<<16>>16;a=(m|0)<(n|0)?k:l;a=I[a|0]|I[a+1|0]<<8;o=a<<8|a>>>8;e=o<<16;a=e>>31;a=gma(j,i,e>>16,a)+32768|0;b=yb;b=a>>>0<32768?b+1|0:b;H[d+4>>2]=(b&65535)<<16|a>>>16;p=g;a=c+6|0;b=c+2|0;e=I[c+2|0]|I[c+3|0]<<8;e=(e<<8|e>>>8)<<16>>16;c=I[c+6|0]|I[c+7|0]<<8;c=(c<<8|c>>>8)<<16>>16;g=(e|0)<(c|0)?a:b;g=I[g|0]|I[g+1|0]<<8;a=(c|0)<(e|0)?a:b;a=I[a|0]|I[a+1|0]<<8;a=(g<<8|g>>>8)-(a<<8|a>>>8)<<16;b=a>>31;b=gma(p,h,a>>16,b)+32768|0;a=yb;a=b>>>0<32768?a+1|0:a;H[d+8>>2]=(a&65535)<<16|b>>>16;a=(m|0)>(n|0)?k:l;a=I[a|0]|I[a+1|0]<<8;b=(a<<8|a>>>8)-o<<16;a=b>>31;b=gma(j,i,b>>16,a)+32768|0;a=yb;a=b>>>0<32768?a+1|0:a;H[d+12>>2]=(a&65535)<<16|b>>>16;e=1}xb=f+96|0;return e}function TA(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;e=H[a+604>>2];if((c|0)<=0){b=e}else{k=H[a+596>>2]+H[a+600>>2]|0;while(1){d=b+1|0;j=I[b|0];a:{if(c>>>0<2){h=1;b=d;c=0;break a}b=b+c|0;h=1;f=c;while(1){f=f-1|0;if(I[d|0]!=(j|0)){b=d;c=f;break a}d=d+1|0;h=h+1|0;if((h|0)!=(c|0)){continue}break}h=c;c=0}d=g;b:{c:{d:{e:{while(1){f:{f=i;g:{h:{i:{j:{if((h|0)==1){while(1){k:{if(e+2>>>0>=k>>>0){l:{if((i&-3)!=1){H[a+608>>2]=H[a+608>>2]+(e-H[a+604>>2]|0);if(Uc(a)){break l}return-1}H[a+608>>2]=H[a+608>>2]+(d-H[a+604>>2]|0);if(!Uc(a)){return-1}f=e-d|0;e=H[a+604>>2];g=e;if((f|0)<=0){break k}while(1){F[e|0]=I[d|0];e=e+1|0;d=d+1|0;g=f>>>0>1;f=f-1|0;if(g){continue}break}g=H[a+604>>2];break k}e=H[a+604>>2]}g=d}if((i|0)!=3){switch(i|0){case 2:break h;case 1:break i;case 0:break j;default:break b}}i=2;d=g;g=e-2|0;if(I[g|0]!=255){continue}f=I[d|0];if(f>>>0>125){continue}f=f+2|0;F[d|0]=f;F[g|0]=I[e-1|0];i=(f&255)!=127;continue}}while(1){i=f;m:{if(e+2>>>0>>0){break m}if((i&-3)==1){H[a+608>>2]=H[a+608>>2]+(g-H[a+604>>2]|0);if(!Uc(a)){return-1}d=e-g|0;f=g;e=H[a+604>>2];g=e;if((d|0)<=0){break m}while(1){F[e|0]=I[f|0];e=e+1|0;f=f+1|0;g=d>>>0>1;d=d-1|0;if(g){continue}break}g=H[a+604>>2];break m}H[a+608>>2]=H[a+608>>2]+(e-H[a+604>>2]|0);if(!Uc(a)){return-1}e=H[a+604>>2]}f=2;if((i|0)==3){continue}break}switch(i|0){case 2:break h;case 1:break i;case 0:break j;default:break b}}if((h|0)<2){break e}i=2;if(h>>>0>128){break g}break d}if((h|0)>=2){i=3;if(h>>>0>128){break g}F[e|0]=1-h;f=e+1|0;e=e+2|0;break c}d=I[g|0]+1|0;F[g|0]=d;i=(d&255)!=127;f=e;e=e+1|0;break c}if((h|0)<2){break e}i=2;if(h>>>0<129){break f}}F[e+1|0]=j;F[e|0]=129;h=h-128|0;e=e+2|0;d=g;continue}break}break d}F[e|0]=0;i=1;f=e+1|0;g=e;e=e+2|0;break c}F[e|0]=1-h;f=e+1|0;e=e+2|0}F[f|0]=j}if((c|0)>0){continue}break}b=H[a+604>>2]}H[a+604>>2]=e;H[a+608>>2]=H[a+608>>2]+(e-b|0);return 1}function fl(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;n=xb-272|0;xb=n;H[n+268>>2]=0;s=Ur(a,b,c,f,g,n+268|0,n,0);i=H[a+100>>2];g=H[i+64>>2];a:{if(s){c=H[i+68>>2];r=H[n+268>>2];m=c>>>0>>0?c:r;j=m-g|0;b:{if(j>>>0<2){break b}h=H[i+144>>2]|32;H[i+144>>2]=h;if(g>>>0>=m>>>0){break b}o=H[i+80>>2];c=-1;f=g;t=m+(g^-1)|0;if(t>>>0>=3){q=j&-4;while(1){l=o+N(f,20)|0;p=H[l+8>>2];c=c>>>0

>>0?c:p;p=H[l+28>>2];c=c>>>0

>>0?c:p;p=H[l+48>>2];c=c>>>0

>>0?c:p;l=H[l+68>>2];c=c>>>0>>0?c:l;f=f+4|0;k=k+4|0;if((q|0)!=(k|0)){continue}break}}l=j&3;if(l){k=0;while(1){q=H[(o+N(f,20)|0)+8>>2];c=c>>>0>>0?c:q;f=f+1|0;k=k+1|0;if((l|0)!=(k|0)){continue}break}}if(j&1){f=o+N(g,20)|0;if(H[f+8>>2]!=(c|0)){H[i+144>>2]=h;H[f+4>>2]=H[f+4>>2]|3}g=g+1|0}if(!t){break b}while(1){f=o+N(g,20)|0;if(H[f+8>>2]!=(c|0)){h=h|32;H[i+144>>2]=h;H[f+4>>2]=H[f+4>>2]|3}f=o+N(g+1|0,20)|0;if(H[f+8>>2]!=(c|0)){h=h|32;H[i+144>>2]=h;H[f+4>>2]=H[f+4>>2]|3}g=g+2|0;if((m|0)!=(g|0)){continue}break}}UE(a,b,n,d,e,r);break a}if(!(I[i+16|0]&64)){break a}a=H[i+68>>2];b=H[n+268>>2];b=a>>>0>>0?a:b;d=b-g|0;if(d>>>0<2){break a}h=H[i+144>>2]|32;H[i+144>>2]=h;if(b>>>0<=g>>>0){break a}a=H[i+80>>2];c=-1;f=g;o=b+(g^-1)|0;if(o>>>0>=3){m=d&-4;while(1){e=a+N(f,20)|0;j=H[e+8>>2];c=c>>>0>>0?c:j;j=H[e+28>>2];c=c>>>0>>0?c:j;j=H[e+48>>2];c=c>>>0>>0?c:j;e=H[e+68>>2];c=c>>>0>>0?c:e;f=f+4|0;k=k+4|0;if((m|0)!=(k|0)){continue}break}}e=d&3;if(e){k=0;while(1){m=H[(a+N(f,20)|0)+8>>2];c=c>>>0>>0?c:m;f=f+1|0;k=k+1|0;if((e|0)!=(k|0)){continue}break}}if(d&1){d=a+N(g,20)|0;if(H[d+8>>2]!=(c|0)){H[i+144>>2]=h;H[d+4>>2]=H[d+4>>2]|2}g=g+1|0}if(!o){break a}while(1){d=a+N(g,20)|0;if(H[d+8>>2]!=(c|0)){h=h|32;H[i+144>>2]=h;H[d+4>>2]=H[d+4>>2]|2}d=a+N(g+1|0,20)|0;if(H[d+8>>2]!=(c|0)){h=h|32;H[i+144>>2]=h;H[d+4>>2]=H[d+4>>2]|2}g=g+2|0;if((b|0)!=(g|0)){continue}break}}xb=n+272|0;return s}function AS(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=O(0);a=xb-368|0;xb=a;H[a+352>>2]=c;H[a+360>>2]=b;Xo(a+200|0,d,a+224|0,a+220|0,a+216|0);b=Dc(a+184|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+180>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;F[a+7|0]=1;F[a+6|0]=69;while(1){d:{H[197455]=0;d=da(3449,a+360|0,a+352|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+180>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+180>>2]=d+c}H[197455]=0;d=aa(3451,a+360|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=Zl(d,a+7|0,a+6|0,c,a+180|0,H[a+220>>2],H[a+216>>2],a+200|0,a+16|0,a+12|0,a+8|0,a+224|0);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+360|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+211|0]>>>7|0){d=H[a+204>>2]}else{d=I[a+211|0]}e:{if(!d|!I[a+7|0]){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;h=O(Ta(3437,c|0,H[a+180>>2],e|0));c=H[197455];H[197455]=0;f:{if((c|0)==1){break f}L[f>>2]=h;H[197455]=0;fe(a+200|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+360|0,a+352|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+360>>2];_b(b);_b(a+200|0);xb=a+368|0;break a}}c=$()|0;_()|0;_b(b);_b(a+200|0);ea(c|0);X()}return c|0}function RS(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=O(0);a=xb-272|0;xb=a;H[a+256>>2]=c;H[a+264>>2]=b;_o(a+208|0,d,a+224|0,a+223|0,a+222|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;F[a+7|0]=1;F[a+6|0]=69;while(1){d:{H[197455]=0;d=da(3420,a+264|0,a+256|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3422,a+264|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=$l(d,a+7|0,a+6|0,c,a+188|0,F[a+223|0],F[a+222|0],a+208|0,a+16|0,a+12|0,a+8|0,a+224|0);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+264|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d|!I[a+7|0]){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;h=O(Ta(3437,c|0,H[a+188>>2],e|0));c=H[197455];H[197455]=0;f:{if((c|0)==1){break f}L[f>>2]=h;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+264|0,a+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+264>>2];_b(b);_b(a+208|0);xb=a+272|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function Vda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;w=xb-320|0;xb=w;s=H[a+332>>2];a=H[b+84>>2];b=w;while(1){k=H[a+192>>2];l=G[c+96>>1];i=H[a+64>>2];m=G[c+32>>1];g=N(G[c>>1],H[a>>2])<<13|1024;f=N(H[a+128>>2],G[c+64>>1]);p=g+N(f,-11586)>>11;h=N(H[a+32>>2],G[c+16>>1]);n=N(H[a+160>>2],G[c+80>>1]);q=N(H[a+96>>2],G[c+48>>1]);o=N(H[a+224>>2],G[c+112>>1]);j=q-o|0;r=h-(n+j|0)<<2;H[b+224>>2]=p-r;H[b+64>>2]=p+r;l=N(k,l);i=N(i,m);k=N(l+i|0,6810);i=k+N(i,4209)|0;m=g+N(f,9373)|0;p=i+m|0;r=N(j,2531);n=n<<13;u=r+n|0;q=o+q|0;o=N(q,7791);v=u+(o+N(h,11443)|0)|0;H[b+288>>2]=p-v>>11;H[b>>2]=p+v>>11;i=m-i|0;m=u+(N(h,1812)-o|0)|0;H[b+160>>2]=i-m>>11;H[b+128>>2]=i+m>>11;f=g+N(f,-3580)|0;g=k+N(l,-17828)|0;k=f-g|0;j=(n-r|0)-(j<<12)|0;l=N(q,4815);i=j+(N(h,5260)-l|0)|0;H[b+192>>2]=k-i>>11;H[b+96>>2]=k+i>>11;f=f+g|0;h=N(h,10323)-(j+l|0)|0;H[b+256>>2]=f-h>>11;H[b+32>>2]=f+h>>11;b=b+4|0;a=a+4|0;c=c+2|0;t=t+1|0;if((t|0)!=8){continue}break}a=s+128|0;t=0;c=w;while(1){s=H[c+24>>2];j=H[c+8>>2];f=N(s+j|0,6810);b=H[(t<<2)+d>>2]+e|0;g=H[c+28>>2];k=H[c+12>>2];l=g+k|0;i=N(l,7791);h=H[c+4>>2];g=k-g|0;m=N(g,2531);p=H[c+20>>2];n=p<<13;q=m+n|0;o=(i+N(h,11443)|0)+q|0;r=f+N(j,4209)|0;k=(H[c>>2]<<13)+131072|0;j=H[c+16>>2];u=k+N(j,9373)|0;v=r+u|0;F[b|0]=I[a+(o+v>>>18&1023)|0];F[b+9|0]=I[a+(v-o>>>18&1023)|0];l=N(l,4815);m=(n-m|0)-(g<<12)|0;n=N(h,10323)-(l+m|0)|0;f=f+N(s,-17828)|0;s=k+N(j,-3580)|0;o=f+s|0;F[b+1|0]=I[a+(n+o>>>18&1023)|0];F[b+8|0]=I[a+(o-n>>>18&1023)|0];g=h-(g+p|0)<<13;j=k+N(j,-11586)|0;F[b+2|0]=I[a+(g+j>>>18&1023)|0];F[b+7|0]=I[a+(j-g>>>18&1023)|0];g=m+(N(h,5260)-l|0)|0;f=s-f|0;F[b+3|0]=I[a+(g+f>>>18&1023)|0];F[b+6|0]=I[a+(f-g>>>18&1023)|0];h=q+(N(h,1812)-i|0)|0;f=u-r|0;F[b+4|0]=I[a+(h+f>>>18&1023)|0];F[b+5|0]=I[a+(f-h>>>18&1023)|0];c=c+32|0;t=t+1|0;if((t|0)!=10){continue}break}xb=w+320|0}function aA(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;f=xb-32|0;xb=f;a:{b:{c=H[a+4>>2];i=H[a>>2];h=(c-i|0)/24|0;d=h+1|0;if(d>>>0<178956971){e=H[a+8>>2];H[f+24>>2]=a+8;c:{e=(e-i|0)/24|0;j=e<<1;e=e>>>0<89478485?d>>>0>>0?j:d:178956970;if(e){if(e>>>0>=178956971){break c}g=Qb(N(e,24))}H[f+8>>2]=g;d=N(h,24)+g|0;H[f+16>>2]=d;j=N(e,24)+g|0;H[f+20>>2]=j;H[f+12>>2]=d;d:{if(F[b+11|0]>=0){e=H[b+4>>2];H[d>>2]=H[b>>2];H[d+4>>2]=e;H[d+8>>2]=H[b+8>>2];break d}c=H[b+4>>2];i=H[b>>2];H[197455]=0;ga(1647,d|0,i|0,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break b}c=H[a+4>>2];i=H[a>>2]}e=H[b+16>>2];g=N(h,24)+g|0;H[g+12>>2]=H[b+12>>2];H[g+16>>2]=e;H[g+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;k=d+24|0;H[f+16>>2]=k;e:{if((c|0)==(i|0)){b=d;d=c;break e}while(1){g=c-24|0;b=d-24|0;f:{g:{h:{if(F[c-13|0]>=0){e=H[g+4>>2];H[b>>2]=H[g>>2];H[b+4>>2]=e;H[b+8>>2]=H[g+8>>2];break h}e=H[c-20>>2];h=H[g>>2];H[197455]=0;ga(1647,b|0,h|0,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break g}}e=c-12|0;h=d-12|0;if(F[c-1|0]>=0){c=H[e+4>>2];H[h>>2]=H[e>>2];H[h+4>>2]=c;H[h+8>>2]=H[e+8>>2];break f}c=H[c-8>>2];e=H[e>>2];H[197455]=0;ga(1647,h|0,e|0,c|0);c=H[197455];H[197455]=0;if((c|0)!=1){break f}c=$()|0;_()|0;if(F[d-13|0]>=0){break a}Kb(H[b>>2]);break a}c=$()|0;_()|0;break a}H[f+12>>2]=b;d=b;c=g;if((i|0)!=(c|0)){continue}break}c=H[a+4>>2];d=H[a>>2]}H[a>>2]=b;H[f+12>>2]=d;H[a+4>>2]=k;b=H[a+8>>2];H[a+8>>2]=j;H[f+8>>2]=d;H[f+20>>2]=b;if((c|0)!=(d|0)){while(1){a=c-24|0;H[f+16>>2]=a;if(F[a+23|0]<0){Kb(H[c-12>>2])}if(F[c-13|0]<0){Kb(H[a>>2])}c=a;if((a|0)!=(d|0)){continue}break}}if(d){Kb(d)}xb=f+32|0;return}Td(416380);X()}bd(a);X()}c=$()|0;_()|0}a=H[f+16>>2];d=H[f+12>>2];if((a|0)!=(d|0)){while(1){b=a-24|0;H[f+16>>2]=b;if(F[b+23|0]<0){Kb(H[a-12>>2])}if(F[a-13|0]<0){Kb(H[b>>2])}a=H[f+16>>2];if((d|0)!=(a|0)){continue}break}}a=H[f+8>>2];if(a){Kb(a)}ea(c|0);X()} +function zS(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;a=xb-368|0;xb=a;H[a+352>>2]=c;H[a+360>>2]=b;Xo(a+200|0,d,a+224|0,a+220|0,a+216|0);b=Dc(a+184|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+180>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;F[a+7|0]=1;F[a+6|0]=69;while(1){d:{H[197455]=0;d=da(3449,a+360|0,a+352|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+180>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+180>>2]=d+c}H[197455]=0;d=aa(3451,a+360|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=Zl(d,a+7|0,a+6|0,c,a+180|0,H[a+220>>2],H[a+216>>2],a+200|0,a+16|0,a+12|0,a+8|0,a+224|0);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+360|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+211|0]>>>7|0){d=H[a+204>>2]}else{d=I[a+211|0]}e:{if(!d|!I[a+7|0]){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;h=+Sa(3440,c|0,H[a+180>>2],e|0);c=H[197455];H[197455]=0;f:{if((c|0)==1){break f}M[f>>3]=h;H[197455]=0;fe(a+200|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+360|0,a+352|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+360>>2];_b(b);_b(a+200|0);xb=a+368|0;break a}}c=$()|0;_()|0;_b(b);_b(a+200|0);ea(c|0);X()}return c|0}function am(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;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;j=xb-128|0;xb=j;H[j+120>>2]=b;H[j+4>>2]=594;n=Ed(j+8|0,0,j+4|0);k=j+16|0;l=(d-c|0)/12|0;a:{b:{if(l>>>0>=101){k=Tb(l);if(!k){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)!=1){break a}b=$()|0;_()|0;break b}ae(n,k)}h=k;b=c;while(1){if((b|0)==(d|0)){c:{d:{e:while(1){f:{H[197455]=0;h=da(3420,a|0,j+120|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}if(!(h&(l|0)!=0)){H[197455]=0;b=da(3421,a|0,j+120|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break c}if(!b){break d}H[f>>2]=H[f>>2]|2;break d}H[197455]=0;o=aa(3422,a|0)|0;b=H[197455];H[197455]=0;g:{if((b|0)!=1){if(g){break g}H[197455]=0;o=da(3423,e|0,o|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break g}}b=$()|0;_()|0;break b}r=p+1|0;s=0;h=k;b=c;while(1){if((b|0)==(d|0)){p=r;if(!s){continue e}H[197455]=0;aa(3424,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){h=k;b=c;if(l+m>>>0<2){continue e}while(1){if((b|0)==(d|0)){continue e}if(I[b+11|0]>>>7|0){i=H[b+4>>2]}else{i=I[b+11|0]}if(!((i|0)==(p|0)|I[h|0]!=2)){F[h|0]=0;m=m-1|0}h=h+1|0;b=b+12|0;continue}}b=$()|0;_()|0;break b}h:{if(I[h|0]!=1){break h}if(I[b+11|0]>>>7|0){i=H[b>>2]}else{i=b}q=F[i+p|0];i:{if(g){break i}H[197455]=0;q=da(3423,e|0,q<<24>>24)|0;i=H[197455];H[197455]=0;if((i|0)!=1){break i}b=$()|0;_()|0;break b}j:{if((o&255)==(q&255)){s=1;if(I[b+11|0]>>>7|0){i=H[b+4>>2]}else{i=I[b+11|0]}if((i|0)!=(r|0)){break h}F[h|0]=2;m=m+1|0;break j}F[h|0]=0}l=l-1|0}h=h+1|0;b=b+12|0;continue}}break}b=$()|0;_()|0;break b}k:{l:{while(1){if((c|0)==(d|0)){break l}if(I[k|0]!=2){k=k+1|0;c=c+12|0;continue}break}d=c;break k}H[f>>2]=H[f>>2]|4}Bc(n);xb=j+128|0;return d|0}b=$()|0;_()|0}else{if(I[b+11|0]>>>7|0){i=H[b+4>>2]}else{i=I[b+11|0]}m:{if(i){F[h|0]=1;break m}F[h|0]=2;m=m+1|0;l=l-1|0}h=h+1|0;b=b+12|0;continue}break}}Bc(n);ea(b|0)}X()}function PS(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;a=xb-272|0;xb=a;H[a+256>>2]=c;H[a+264>>2]=b;_o(a+208|0,d,a+224|0,a+223|0,a+222|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;F[a+7|0]=1;F[a+6|0]=69;while(1){d:{H[197455]=0;d=da(3420,a+264|0,a+256|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3422,a+264|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=$l(d,a+7|0,a+6|0,c,a+188|0,F[a+223|0],F[a+222|0],a+208|0,a+16|0,a+12|0,a+8|0,a+224|0);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+264|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d|!I[a+7|0]){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;h=+Sa(3440,c|0,H[a+188>>2],e|0);c=H[197455];H[197455]=0;f:{if((c|0)==1){break f}M[f>>3]=h;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+264|0,a+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+264>>2];_b(b);_b(a+208|0);xb=a+272|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function Dy(a,b,c,d,e,f){var g=0;a:{b:{g=H[a+240>>2];if(!g){break b}zb[H[H[g>>2]+168>>2]](g,b,c,d,e,f);b=H[a+240>>2];if(!b){break b}zb[H[H[b>>2]+32>>2]](b,+(f|0),+(e|0));break a}if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;H[a+184>>2]=e;H[a+176>>2]=e;break a}b=a+172|0;c:{if(H[b>>2]<=(f|0)){b=a+180|0;if(H[b>>2]>=(f|0)){break c}}H[b>>2]=f}if(H[a+176>>2]>(e|0)){H[a+176>>2]=e;break a}if(H[a+184>>2]>=(e|0)){break a}H[a+184>>2]=e}b=H[a+168>>2];G[b+132>>1]=f;G[b+134>>1]=e;g=d+f|0;b=H[a+240>>2];d:{if(b){zb[H[H[b>>2]+36>>2]](b,+(g<<16>>16),+(e|0));break d}d=g<<16>>16;if(I[a+188|0]){H[a+172>>2]=d;F[a+188|0]=0;H[a+180>>2]=d;H[a+184>>2]=e;H[a+176>>2]=e;break d}b=a+172|0;e:{if((d|0)>=H[b>>2]){b=a+180|0;if((d|0)<=H[b>>2]){break e}}H[b>>2]=d}if(H[a+176>>2]>(e|0)){H[a+176>>2]=e;break d}if(H[a+184>>2]>=(e|0)){break d}H[a+184>>2]=e}b=H[a+168>>2];d=g<<16>>16;G[b+132>>1]=d;G[b+134>>1]=e;b=c+e|0;c=H[a+240>>2];f:{if(c){zb[H[H[c>>2]+36>>2]](c,+(d|0),+(b<<16>>16));break f}if(I[a+188|0]){H[a+172>>2]=d;F[a+188|0]=0;H[a+180>>2]=d;c=b<<16>>16;H[a+184>>2]=c;H[a+176>>2]=c;break f}c=a+172|0;g:{if((d|0)>=H[c>>2]){c=a+180|0;if((d|0)<=H[c>>2]){break g}}H[c>>2]=d}c=b<<16>>16;if((c|0)>2]){H[a+176>>2]=c;break f}if((c|0)<=H[a+184>>2]){break f}H[a+184>>2]=c}c=H[a+168>>2];G[c+132>>1]=g;d=b<<16>>16;G[c+134>>1]=d;c=H[a+240>>2];h:{if(c){zb[H[H[c>>2]+36>>2]](c,+(f|0),+(d|0));break h}if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;c=b<<16>>16;H[a+184>>2]=c;H[a+176>>2]=c;break h}d=a+172|0;i:{if(H[d>>2]<=(f|0)){d=a+180|0;if(H[d>>2]>=(f|0)){break i}}H[d>>2]=f}c=b<<16>>16;if((c|0)>2]){H[a+176>>2]=c;break h}if((c|0)<=H[a+184>>2]){break h}H[a+184>>2]=c}c=H[a+168>>2];G[c+132>>1]=f;G[c+134>>1]=b;b=H[a+240>>2];j:{if(!b){break j}zb[H[H[b>>2]+48>>2]](b);b=H[a+240>>2];if(!b){break j}zb[H[H[b>>2]+52>>2]](b,2);a=H[a+240>>2];zb[H[H[a>>2]+56>>2]](a)}}function _l(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;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;j=xb-128|0;xb=j;H[j+120>>2]=b;H[j+4>>2]=594;n=Ed(j+8|0,0,j+4|0);k=j+16|0;l=(d-c|0)/12|0;a:{b:{if(l>>>0>=101){k=Tb(l);if(!k){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)!=1){break a}b=$()|0;_()|0;break b}ae(n,k)}h=k;b=c;while(1){if((b|0)==(d|0)){c:{d:{e:while(1){f:{H[197455]=0;h=da(3449,a|0,j+120|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}if(!(h&(l|0)!=0)){H[197455]=0;b=da(3450,a|0,j+120|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break c}if(!b){break d}H[f>>2]=H[f>>2]|2;break d}H[197455]=0;o=aa(3451,a|0)|0;b=H[197455];H[197455]=0;g:{if((b|0)!=1){if(g){break g}H[197455]=0;o=da(3452,e|0,o|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break g}}b=$()|0;_()|0;break b}r=p+1|0;s=0;h=k;b=c;while(1){if((b|0)==(d|0)){p=r;if(!s){continue e}H[197455]=0;aa(3453,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){h=k;b=c;if(l+m>>>0<2){continue e}while(1){if((b|0)==(d|0)){continue e}if(I[b+11|0]>>>7|0){i=H[b+4>>2]}else{i=I[b+11|0]}if(!((i|0)==(p|0)|I[h|0]!=2)){F[h|0]=0;m=m-1|0}h=h+1|0;b=b+12|0;continue}}b=$()|0;_()|0;break b}h:{if(I[h|0]!=1){break h}if(I[b+11|0]>>>7|0){i=H[b>>2]}else{i=b}q=H[i+(p<<2)>>2];i:{if(g){break i}H[197455]=0;q=da(3452,e|0,q|0)|0;i=H[197455];H[197455]=0;if((i|0)!=1){break i}b=$()|0;_()|0;break b}j:{if((o|0)==(q|0)){s=1;if(I[b+11|0]>>>7|0){i=H[b+4>>2]}else{i=I[b+11|0]}if((i|0)!=(r|0)){break h}F[h|0]=2;m=m+1|0;break j}F[h|0]=0}l=l-1|0}h=h+1|0;b=b+12|0;continue}}break}b=$()|0;_()|0;break b}k:{l:{while(1){if((c|0)==(d|0)){break l}if(I[k|0]!=2){k=k+1|0;c=c+12|0;continue}break}d=c;break k}H[f>>2]=H[f>>2]|4}Bc(n);xb=j+128|0;return d|0}b=$()|0;_()|0}else{if(I[b+11|0]>>>7|0){i=H[b+4>>2]}else{i=I[b+11|0]}m:{if(i){F[h|0]=1;break m}F[h|0]=2;m=m+1|0;l=l-1|0}h=h+1|0;b=b+12|0;continue}break}}Bc(n);ea(b|0)}X()}function sf(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=xb-48|0;xb=f;H[a+8>>2]=0;i=H[a+4>>2];if(i){H[H[a>>2]>>2]=24081;H[H[a>>2]+4>>2]=24081;H[H[a>>2]+8>>2]=24081;H[H[a>>2]+12>>2]=24081;H[H[a>>2]+16>>2]=24081}a:{if(!d){break a}e=I[c|0];if(!e){break a}j=6;if(!b){break a}h=I[b|0];if(!h){break a}H[f+24>>2]=0;H[f+28>>2]=0;H[f+16>>2]=0;H[f+20>>2]=0;H[f+8>>2]=0;H[f+12>>2]=0;H[f>>2]=0;H[f+4>>2]=0;while(1){b:{c:{d:{g=h&255;if((g|0)!=43){if(!g){break d}g=I[b+1|0];break c}g=I[b+1|0];if(g){break c}k=1;g=0;break b}e:{if((d|0)<=0){d=0;b=0;break e}i=c+d|0;while(1){h=c;while(1){f:{if(I[((e&248)>>>3|0)+f|0]>>>(e&7)&1){g=h;break f}e=I[h+1|0];g=h+1|0;h=g;if(e){continue}}break}e=H[a+8>>2];g:{if((e|0)!=H[a+4>>2]){break g}H[f+44>>2]=0;if((e|0)==-1){break g}if((e|0)==536870911){j=64;break a}b=((e>>>1|0)+e|0)+5|0;b=b>>>0>>0?536870911:b>>>0>536870911?536870911:b;l=a,m=Ub(H[a+12>>2],4,e,b,H[a>>2],f+44|0),H[l>>2]=m;j=H[f+44>>2];if(j){break a}H[a+4>>2]=b;e=H[a+8>>2]}H[a+8>>2]=e+1;H[H[a>>2]+(e<<2)>>2]=c>>>0>>0?c:24081;h=I[g|0];h:{i:{if(k){d=0;b=g;if(!(h&255)){e=0;c=g;break h}while(1){j:{if(!(I[((h&248)>>>3|0)+f|0]>>>(h&7)&1)){e=h;c=b;break j}e=0;F[b|0]=0;h=I[b+1|0];c=b+1|0;b=c;if(h){continue}}break}if(c>>>0<=g>>>0){break h}break i}if(!(h&255)){e=0;c=g;d=0;break h}F[g|0]=0;c=g+1|0;e=I[g+1|0]}d=!(e&255)}if(e&255?c>>>0>>0:0){continue}break}i=H[a+4>>2];b=H[a+8>>2]}b=b+d|0;k:{if(b>>>0>>0){break k}H[f+44>>2]=0;if(b+1>>>0<=i>>>0){break k}j=64;if((i|0)==536870911){break a}b=((i>>>1|0)+i|0)+5|0;b=b>>>0>>0?536870911:b>>>0>536870911?536870911:b;l=a,m=Ub(H[a+12>>2],4,i,b,H[a>>2],f+44|0),H[l>>2]=m;j=H[f+44>>2];if(j){break a}H[a+4>>2]=b}l:{if(!d){e=H[a+8>>2];break l}b=H[a+8>>2];e=b+1|0;H[a+8>>2]=e;H[H[a>>2]+(b<<2)>>2]=24081}j=0;H[H[a>>2]+(e<<2)>>2]=0;break a}j=((h&248)>>>3|0)+f|0;F[j|0]=I[j|0]|1<<(h&7)}b=b+1|0;h=g;continue}}xb=f+48|0;return j}function qC(a,b){var c=0,d=0,e=0,f=0;a:{d=I[a+8|0];if(!(d&2)){break a}c=H[a>>2];b:{switch(I[a+9|0]-8|0){case 0:c:{switch(d-2|0){case 4:if(!c){break a}if(c-1>>>0>=3){d=c&-4;a=0;while(1){e=I[b+2|0];F[b+2|0]=I[b|0];F[b|0]=e;e=I[b+4|0];F[b+4|0]=I[b+6|0];F[b+6|0]=e;e=I[b+8|0];F[b+8|0]=I[b+10|0];F[b+10|0]=e;e=I[b+12|0];F[b+12|0]=I[b+14|0];F[b+14|0]=e;b=b+16|0;a=a+4|0;if((d|0)!=(a|0)){continue}break}}c=c&3;if(!c){break a}a=0;while(1){d=I[b+2|0];F[b+2|0]=I[b|0];F[b|0]=d;b=b+4|0;a=a+1|0;if((c|0)!=(a|0)){continue}break};break a;case 0:break c;default:break a}}if(!c){break a}if(c-1>>>0>=3){d=c&-4;a=0;while(1){e=I[b+2|0];F[b+2|0]=I[b|0];F[b|0]=e;e=I[b+3|0];F[b+3|0]=I[b+5|0];F[b+5|0]=e;e=I[b+6|0];F[b+6|0]=I[b+8|0];F[b+8|0]=e;e=I[b+9|0];F[b+9|0]=I[b+11|0];F[b+11|0]=e;b=b+12|0;a=a+4|0;if((d|0)!=(a|0)){continue}break}}c=c&3;if(!c){break a}a=0;while(1){d=I[b+2|0];F[b+2|0]=I[b|0];F[b|0]=d;b=b+3|0;a=a+1|0;if((c|0)!=(a|0)){continue}break};break a;case 8:break b;default:break a}}d:{switch(d-2|0){case 4:if(!c){break a}if((c|0)!=1){e=c&-2;a=0;while(1){d=I[b|0]|I[b+1|0]<<8;f=I[b+4|0]|I[b+5|0]<<8;F[b|0]=f;F[b+1|0]=f>>>8;F[b+4|0]=d;F[b+5|0]=d>>>8;d=I[b+8|0]|I[b+9|0]<<8;f=I[b+12|0]|I[b+13|0]<<8;F[b+8|0]=f;F[b+9|0]=f>>>8;F[b+12|0]=d;F[b+13|0]=d>>>8;b=b+16|0;a=a+2|0;if((e|0)!=(a|0)){continue}break}}if(!(c&1)){break a}a=I[b|0]|I[b+1|0]<<8;c=I[b+4|0]|I[b+5|0]<<8;F[b|0]=c;F[b+1|0]=c>>>8;F[b+4|0]=a;F[b+5|0]=a>>>8;return;case 0:break d;default:break a}}if(!c){break a}if((c|0)!=1){e=c&-2;a=0;while(1){d=I[b|0]|I[b+1|0]<<8;f=I[b+4|0]|I[b+5|0]<<8;F[b|0]=f;F[b+1|0]=f>>>8;F[b+4|0]=d;F[b+5|0]=d>>>8;d=I[b+6|0]|I[b+7|0]<<8;f=I[b+10|0]|I[b+11|0]<<8;F[b+6|0]=f;F[b+7|0]=f>>>8;F[b+10|0]=d;F[b+11|0]=d>>>8;b=b+12|0;a=a+2|0;if((e|0)!=(a|0)){continue}break}}if(!(c&1)){break a}a=I[b|0]|I[b+1|0]<<8;c=I[b+4|0]|I[b+5|0]<<8;F[b|0]=c;F[b+1|0]=c>>>8;F[b+4|0]=a;F[b+5|0]=a>>>8}}function cr(a,b){var c=0,d=0,e=0,f=0,g=0;e=G[a+1008>>1];a:{b:{d=J[a+1010>>1];if(!d){c:{if((e|0)>0){break c}H[a+1020>>2]=H[a+1016>>2];c=H[a+984>>2];if((c|0)>=16383){c=0;d=zb[H[H[b>>2]+12>>2]](b,H[a+992>>2],1,16383,0,0)|0;H[a+988>>2]=d;if((d|0)<=16382){F[d+H[a+992>>2]|0]=255}H[a+984>>2]=0}if(H[a+988>>2]<=(c|0)){break b}d=c+1|0;H[a+984>>2]=d;c=I[H[a+992>>2]+c|0];G[a+1008>>1]=c;if(!c){e=0;break c}c=0;while(1){if((d|0)>=16383){d=zb[H[H[b>>2]+12>>2]](b,H[a+992>>2],1,16383,0,0)|0;H[a+988>>2]=d;if((d|0)<=16382){F[d+H[a+992>>2]|0]=255}H[a+984>>2]=0;d=0}f=65535;if(H[a+988>>2]<=(d|0)){break a}H[a+984>>2]=d+1;F[H[a+1016>>2]+c|0]=I[H[a+992>>2]+d|0];c=c+1|0;e=G[a+1008>>1];if((c|0)>=(e|0)){break c}d=H[a+984>>2];continue}}c=H[a+1020>>2];H[a+1020>>2]=c+1;c=I[c|0];G[a+1010>>1]=8;F[a+1012|0]=c;e=e-1|0;G[a+1008>>1]=e;d=8}f=J[a+1e3>>1];if(e<<16>>16<0){break a}f=d<<16>>16;g=I[a+1012|0]>>>8-f|0;c=G[a+996>>1];if((f|0)<(c|0)){while(1){d:{if(e<<16>>16>0){break d}H[a+1020>>2]=H[a+1016>>2];c=H[a+984>>2];if((c|0)>=16383){c=zb[H[H[b>>2]+12>>2]](b,H[a+992>>2],1,16383,0,0)|0;H[a+988>>2]=c;if((c|0)<=16382){F[c+H[a+992>>2]|0]=255}H[a+984>>2]=0;c=0}if(H[a+988>>2]<=(c|0)){break b}d=c+1|0;H[a+984>>2]=d;c=I[H[a+992>>2]+c|0];G[a+1008>>1]=c;e=0;if(!c){break d}c=0;while(1){if((d|0)>=16383){d=zb[H[H[b>>2]+12>>2]](b,H[a+992>>2],1,16383,0,0)|0;H[a+988>>2]=d;if((d|0)<=16382){F[d+H[a+992>>2]|0]=255}H[a+984>>2]=0;d=0}f=65535;if(H[a+988>>2]<=(d|0)){break a}H[a+984>>2]=d+1;F[H[a+1016>>2]+c|0]=I[H[a+992>>2]+d|0];c=c+1|0;e=G[a+1008>>1];if((c|0)>=(e|0)){break d}d=H[a+984>>2];continue}}c=H[a+1020>>2];H[a+1020>>2]=c+1;c=I[c|0];F[a+1012|0]=c;d=J[a+1010>>1];f=d+8|0;G[a+1010>>1]=f;e=e-1|0;G[a+1008>>1]=e;g=c<>16;c=G[a+996>>1];if((d|0)<(c|0)){continue}break}}G[a+1010>>1]=d-c;f=H[(c<<2)+248992>>2]&g;break a}G[a+1008>>1]=65535;f=65535}return f<<16>>16}function Dz(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=xb-32|0;xb=f;a:{if(!H[b+40>>2]){F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break a}g=1;e=zb[H[H[a>>2]+52>>2]](a)|0;b:{if(!e){break b}c:{d:{e=zb[H[H[e>>2]+36>>2]](e)|0;switch(e-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:break b;case 0:case 1:case 2:case 6:case 8:case 33:case 34:case 35:case 49:case 50:case 58:case 76:case 94:case 110:break c;default:break d}}if(e){break b}}g=e}hj(f+16|0,H[b+40>>2],H[b+8>>2],g);e=H[b+8>>2];e:{h=H[b+44>>2];f:{g:{if(!h){g=e;break g}g=0;H[197455]=0;i=aa(929,((e|0)!=(e&1073741823)?-1:e<<2)|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break f}if(!e){break g}j=H[b+16>>2]>>>13&1;while(1){k=g<<2;H[k+i>>2]=H[h+k>>2];g=(g+j|0)+1|0;if(e>>>0>g>>>0){continue}break}g=e}e=H[b+4>>2];b=H[b>>2];H[197455]=0;h=H[d+12>>2];H[f+8>>2]=H[d+8>>2];H[f+12>>2]=h;h=H[d+4>>2];H[f>>2]=H[d>>2];H[f+4>>2]=h;La(1856,a|0,f+16|0,g|0,b|0,e|0,i|0,c|0,f|0);a=H[197455];H[197455]=0;if((a|0)!=1){break e}}a=$()|0;_()|0;if(F[f+27|0]<0){Kb(H[f+16>>2])}ea(a|0);X()}if(i){Kb(i)}if(F[f+27|0]>=0){break a}Kb(H[f+16>>2])}xb=f+32|0}function Q6(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;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;i=xb-176|0;xb=i;a:{if(!(!h|(!f|!g))){if(I[a+64|0]){zb[H[H[a>>2]+52>>2]](a,0);zb[H[H[a>>2]+56>>2]](a)}k=M[a+48>>3];l=M[a+56>>3];j=H[a+8>>2];j=zb[H[H[j>>2]+68>>2]](j,2)|0;M[i+128>>3]=M[j>>3];n=M[j+8>>3];M[i+136>>3]=n;m=M[j+16>>3];M[i+144>>3]=m;M[i+152>>3]=M[j+24>>3];o=M[j+32>>3];M[i+160>>3]=o;p=M[j+40>>3];M[i+168>>3]=p;j=H[a+4>>2];zb[H[H[j>>2]+404>>2]](j)|0;q=H[a+4>>2];M[i+120>>3]=l*n/k;M[i+112>>3]=k*m/l;M[i+104>>3]=k*o;M[i+96>>3]=l*p;j=i+128|0;r=i+120|0;s=i+112|0;t=i+104|0;zb[H[H[q>>2]+396>>2]](q,j,r,s,i+152|0,t,i+96|0)|0;H[j+12>>2]=0;H[j+16>>2]=0;H[j+4>>2]=1;H[j+8>>2]=8;H[j>>2]=245200;H[j+20>>2]=0;H[j+24>>2]=0;F[j+28|0]=0;H[i+120>>2]=g;H[i+112>>2]=h;H[197455]=0;H[i+104>>2]=g<<2;JD(j,f,r,s,t,1);f=H[197455];H[197455]=0;b:{if((f|0)!=1){k=M[a+24>>3];m=M[a+56>>3];o=M[a+48>>3];p=M[a+16>>3];l=o*b+p;M[i+120>>3]=l;n=k+m*c;M[i+112>>3]=n;b=p+o*(b+d)-l;M[i+104>>3]=b;k=k+m*(c+e)-n;M[i+96>>3]=k;if(!(k<0|b<0)){break b}f=H[a+4>>2];g=H[H[f>>2]+400>>2];H[197455]=0;Aa(g|0,f|0,i+88|0,i+80|0,i+72|0,i- -64|0,i+56|0,i+48|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break a}m=0;c=1;d=1;e=0;if(b<0){M[i+120>>3]=b+l;M[i+104>>3]=-b;e=l+l+b;d=-1}if(k<0){M[i+112>>3]=k+n;M[i+96>>3]=-k;m=n+n+k;c=-1}f=H[a+4>>2];b=M[i+88>>3];M[i+40>>3]=d*b;l=d;d=M[i+80>>3];M[i+32>>3]=l*d;k=M[i+72>>3];M[i+24>>3]=c*k;l=c;c=M[i+64>>3];M[i+16>>3]=l*c;M[i+8>>3]=e*b+m*k+M[i+56>>3];M[i>>3]=e*d+m*c+M[i+48>>3];g=H[H[f>>2]+396>>2];H[197455]=0;Aa(g|0,f|0,i+40|0,i+32|0,i+24|0,i+16|0,i+8|0,i|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){break b}break a}break a}a=H[a+4>>2];f=H[H[a>>2]+376>>2];H[197455]=0;ma(f|0,a|0,j|0,i+120|0,i+112|0,i+104|0,i+96|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}vn(j)}xb=i+176|0;return}a=$()|0;_()|0;vn(j);ea(a|0);X()}function _h(a,b,c,d){var e=0,f=0,g=0,h=0;a:{e=H[b+68>>2];d=d>>>0>e>>>0?e:d;if(d>>>0<=c>>>0){break a}e=H[a+68>>2];g=c>>>0>d>>>0?d:c;h=d-g|0;f=e+h|0;if(e>>>0>f>>>0){F[a+60|0]=0;return}b:{if(!H[a+4>>2]){break b}c=e;c:{if(!f){break c}c=e;if(f>>>0>2]){break c}if(!fh(a,f)){break b}c=H[a+68>>2]}d:{if(c>>>0>=f>>>0){break d}Nb(H[a+80>>2]+N(c,20)|0,0,N(f-c|0,20));if(!I[a+62|0]){break d}c=H[a+68>>2];Nb(H[a+88>>2]+N(c,20)|0,0,N(f-c|0,20))}H[a+68>>2]=f;if(!f){H[a+132>>2]=0;H[a+36>>2]=0}H[a+136>>2]=0}if(!I[a+60|0]){break a}if(!e){H[a+36>>2]=H[b+36>>2]}e:{if(I[a+62|0]|!I[b+62|0]){break e}H[a+72>>2]=0;F[a+61|0]=0;F[a+62|0]=1;H[a+84>>2]=H[a+80>>2];c=N(H[a+68>>2],20);if(!c){break e}Nb(H[a+88>>2],0,c)}c=H[a+40>>2];if(!c){c=H[b+40>>2];H[a+40>>2]=c}f:{if(H[b+40>>2]!=(c|0)){break f}c=H[a+44>>2];if(!c){c=H[b+44>>2];H[a+44>>2]=c}if(H[a+48>>2]|H[b+44>>2]!=(c|0)){break f}H[a+48>>2]=H[b+48>>2]}c=N(e,20);f=N(g,20);h=N(h,20);Ob(c+H[a+80>>2]|0,f+H[b+80>>2]|0,h);if(I[a+62|0]){Ob(c+H[a+88>>2]|0,f+H[b+88>>2]|0,h)}if(H[b+36>>2]!=1){break a}g:{if((0-H[b+132>>2]|0)==(g|0)|e){break g}H[a+132>>2]=0;h:{if(!g){break h}e=H[b+80>>2];c=0;while(1){g=g-1|0;f=H[e+N(g,20)>>2];H[a+132>>2]=c+1;H[((c<<2)+a|0)+92>>2]=f;if(!g){break h}c=H[a+132>>2];if(c>>>0<5){continue}break}}if(!H[b+132>>2]){break g}c=0;while(1){e=H[a+132>>2];if(e>>>0>4){break g}f=H[((c<<2)+b|0)+92>>2];H[a+132>>2]=e+1;H[((e<<2)+a|0)+92>>2]=f;c=c+1|0;if(c>>>0>2]){continue}break}}c=0;H[a+136>>2]=0;i:{if(K[b+68>>2]<=d>>>0){break i}f=H[b+80>>2];e=0;while(1){g=H[f+N(d,20)>>2];H[a+136>>2]=e+1;H[((e<<2)+a|0)+112>>2]=g;d=d+1|0;if(d>>>0>=K[b+68>>2]){break i}e=H[a+136>>2];if(e>>>0<5){continue}break}}if(!H[b+136>>2]){break a}while(1){d=H[a+136>>2];if(d>>>0>4){break a}e=H[((c<<2)+b|0)+112>>2];H[a+136>>2]=d+1;H[((d<<2)+a|0)+112>>2]=e;c=c+1|0;if(c>>>0>2]){continue}break}}}function Mr(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=xb-16|0;xb=f;H[f+12>>2]=0;H[f+8>>2]=0;H[f+4>>2]=0;H[f>>2]=0;e=H[a+8>>2];d=H[a+4>>2];a:{if(!(zb[H[a+20>>2]](a,c,f+12|0,f+8|0)|0)){break a}c=H[f+8>>2];if(c){H[f>>2]=0;h=c;c=H[e+80>>2];if(!(zb[H[c+164>>2]](e,H[e+84>>2],h,f,H[c+20>>2])|0)){break a}}H[f+4>>2]=0;c=H[e+80>>2];c=zb[H[c+164>>2]](e,H[e+84>>2],H[f+12>>2],f+4|0,H[c+20>>2])|0;g=H[f+12>>2];if(!c|!b){g=Mr(a,b,g);if(g){c=H[f+8>>2];if(!c){break a}H[(H[d+80>>2]+N(H[d+64>>2],20)|0)+12>>2]=H[f>>2];b:{if(!ec(d,0,1)){a=H[d+72>>2];break b}a=H[d+64>>2];c:{if(a>>>0>2]){e=H[d+72>>2];b=H[d+84>>2];a=H[d+80>>2]+N(a,20)|0;break c}b=H[d+84>>2];e=H[d+72>>2];a=b+N(e?e-1|0:0,20)|0}b=N(e,20)+b|0;e=H[a+4>>2];H[b>>2]=H[a>>2];H[b+4>>2]=e;H[b+16>>2]=H[a+16>>2];e=H[a+12>>2];H[b+8>>2]=H[a+8>>2];H[b+12>>2]=e;H[b>>2]=c;a=H[d+72>>2]+1|0;H[d+72>>2]=a}Mi(H[d+84>>2]+N(a?a-1|0:0,20)|0,d);g=g+1|0;break a}if(!c){g=0;break a}g=H[f+12>>2]}H[(H[d+80>>2]+N(H[d+64>>2],20)|0)+12>>2]=H[f+4>>2];d:{if(!ec(d,0,1)){a=H[d+72>>2];break d}a=H[d+64>>2];e:{if(a>>>0>2]){e=H[d+72>>2];c=H[d+84>>2];a=H[d+80>>2]+N(a,20)|0;break e}c=H[d+84>>2];e=H[d+72>>2];a=c+N(e?e-1|0:0,20)|0}b=N(e,20)+c|0;c=H[a+4>>2];H[b>>2]=H[a>>2];H[b+4>>2]=c;H[b+16>>2]=H[a+16>>2];c=H[a+12>>2];H[b+8>>2]=H[a+8>>2];H[b+12>>2]=c;H[b>>2]=g;a=H[d+72>>2]+1|0;H[d+72>>2]=a}Mi(H[d+84>>2]+N(a?a-1|0:0,20)|0,d);g=H[f+8>>2];if(!g){g=1;break a}H[(H[d+80>>2]+N(H[d+64>>2],20)|0)+12>>2]=H[f>>2];f:{if(!ec(d,0,1)){a=H[d+72>>2];break f}a=H[d+64>>2];g:{if(a>>>0>2]){e=H[d+72>>2];c=H[d+84>>2];a=H[d+80>>2]+N(a,20)|0;break g}c=H[d+84>>2];e=H[d+72>>2];a=c+N(e?e-1|0:0,20)|0}b=N(e,20)+c|0;c=H[a+4>>2];H[b>>2]=H[a>>2];H[b+4>>2]=c;H[b+16>>2]=H[a+16>>2];c=H[a+12>>2];H[b+8>>2]=H[a+8>>2];H[b+12>>2]=c;H[b>>2]=g;a=H[d+72>>2]+1|0;H[d+72>>2]=a}Mi(H[d+84>>2]+N(a?a-1|0:0,20)|0,d);g=2}xb=f+16|0;return g}function zl(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,r=0,s=0;g=xb-16|0;xb=g;i=H[a+100>>2];H[g+12>>2]=0;e=H[a+532>>2];a:{if(!e){e=pc(i,420,g+12|0);if(H[g+12>>2]){break a}H[e+416>>2]=0;H[a+532>>2]=e}b:{c:{if(!b){break c}d=H[e>>2];if(!d){r=e,s=Ub(i,32,0,b,0,g+12|0),H[r+148>>2]=s;if(H[g+12>>2]){break a}r=e,s=Ub(i,196,0,b,0,g+12|0),H[r+216>>2]=s;if(H[g+12>>2]){break a}r=e,s=Ub(i,16,0,b,0,g+12|0),H[r+288>>2]=s;if(H[g+12>>2]){break a}d=Ub(i,4,0,b<<1,0,g+12|0);H[e+136>>2]=d;if(H[g+12>>2]){break a}H[e+284>>2]=a+464;H[e+212>>2]=a+168;H[e+144>>2]=a+132;j=2;H[e+140>>2]=d+(b<<2);d:{if(b>>>0<2){break d}f=b-1|0;o=f&3;a=H[e+288>>2];d=H[e+216>>2];h=H[e+148>>2];if(b-2>>>0>=3){q=f&-4;k=e+144|0;m=e+212|0;n=e+284|0;while(1){f=j<<2;H[f+k>>2]=h+32;H[f+m>>2]=d+196;H[f+n>>2]=a+16;l=f|4;H[l+k>>2]=h- -64;H[l+m>>2]=d+392;H[l+n>>2]=a+32;l=f+8|0;H[l+k>>2]=h+96;H[l+m>>2]=d+588;H[l+n>>2]=a+48;f=f+12|0;h=h+128|0;H[f+k>>2]=h;d=d+784|0;H[f+m>>2]=d;a=a- -64|0;H[f+n>>2]=a;j=j+4|0;p=p+4|0;if((q|0)!=(p|0)){continue}break}}if(!o){break d}f=0;while(1){k=(j<<2)+e|0;a=a+16|0;H[k+284>>2]=a;d=d+196|0;H[k+212>>2]=d;h=h+32|0;H[k+144>>2]=h;j=j+1|0;f=f+1|0;if((o|0)!=(f|0)){continue}break}}H[e>>2]=b;break c}if((b|0)!=(d|0)){break b}}a=H[e+4>>2];e:{if(!c){c=a;break e}if((a|0)!=(c|0)?a:0){break b}H[e+4>>2]=c}d=H[e>>2];if(H[e+24>>2]|(!d|!c)){break a}b=Ub(i,4,0,N(c,d),0,g+12|0);H[e+24>>2]=b;if(H[g+12>>2]|d>>>0<2){break a}h=d-1|0;i=h&3;a=1;if(d-2>>>0>=3){j=h&-4;d=0;h=e+24|0;while(1){H[h+(a<<2)>>2]=b+(N(a,c)<<2);f=a+1|0;H[h+(f<<2)>>2]=b+(N(c,f)<<2);f=a+2|0;H[h+(f<<2)>>2]=b+(N(c,f)<<2);f=a+3|0;H[h+(f<<2)>>2]=b+(N(c,f)<<2);a=a+4|0;d=d+4|0;if((j|0)!=(d|0)){continue}break}}if(!i){break a}d=0;while(1){H[((a<<2)+e|0)+24>>2]=b+(N(a,c)<<2);a=a+1|0;d=d+1|0;if((i|0)!=(d|0)){continue}break}break a}H[g+12>>2]=3}xb=g+16|0;return H[g+12>>2]}function Tba(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;u=xb-192|0;xb=u;f=Nb(a,0,256);while(1){a:{i=f;d=H[(j<<2)+b>>2]+c|0;l=I[d+5|0];m=I[d+1|0];g=l+m|0;h=I[d+3|0];n=I[d+4|0];o=I[d+2|0];e=n+o|0;p=I[d+6|0];r=I[d|0];d=p+r|0;q=e+d|0;H[f>>2]=((g+h|0)+q<<2)-3584;q=N(q-(h<<2)|0,2896);s=N(d-g|0,7223)+1024|0;d=N(d-e|0,7542);H[f+24>>2]=q+(s-d|0)>>11;e=N(g-e|0,2578);H[f+16>>2]=(e+s|0)+N(g-(h<<1)|0,-5793)>>11;H[f+8>>2]=(q+(d+e|0)|0)+1024>>11;d=o-n|0;g=r-p|0;h=N(d+g|0,5027)+1024|0;t=h+N(d,15326)|0;k=d;d=m-l|0;e=N(k+d|0,-11295);H[f+20>>2]=t+e>>11;k=e;e=N(g-d|0,1395);d=N(d+g|0,7663);H[f+12>>2]=((k+e|0)+d|0)+1024>>11;H[f+4>>2]=d+(h-e|0)>>11;d=j-7|0;j=j+1|0;f=u;b:{switch(d|0){case 0:continue;case 6:break a;default:break b}}f=i+32|0;continue}break}while(1){c=H[f+32>>2];g=H[a+128>>2];h=c+g|0;i=H[f+96>>2];d=H[a+64>>2];e=i+d|0;j=h+e|0;l=H[f+64>>2];m=H[a+96>>2];n=l+m|0;b=n<<1;o=H[a+32>>2];p=H[f+128>>2];r=o+p|0;q=H[f>>2];s=H[a+160>>2];v=q+s|0;w=r+v|0;x=H[a+224>>2];y=H[a+192>>2];z=x+y|0;A=H[f+160>>2];B=H[a>>2];t=A+B|0;k=z+t|0;H[a+128>>2]=((N(j-b|0,-4717)+N(w-b|0,1684)|0)+N(k-b|0,6817)|0)+16384>>15;H[a>>2]=N(((j+n|0)+w|0)+k|0,5350)+16384>>15;b=B-A|0;l=m-l|0;i=d-i|0;d=o-p|0;m=i+d|0;j=s-q|0;g=g-c|0;n=j-g|0;c=y-x|0;H[a+224>>2]=N(b+l-((m+n|0)+c)|0,5350)+16384>>15;h=e-h|0;e=t-z|0;o=r-v|0;p=N(e+o|0,5915)+16384|0;H[a+192>>2]=(N(h,-7376)+p|0)+N(o,-9198)>>15;H[a+64>>2]=(p+N(h,3283)|0)+N(e,1461)>>15;h=N(l,5350);e=((N(n,7518)-h|0)+N(m,-847)|0)+16384|0;k=(e+N(i,-12700)|0)+N(g,5992)|0;i=N(c+g|0,4025)+N(b+i|0,6406)|0;H[a+160>>2]=k+i>>15;k=(e+N(d,-2269)|0)+N(j,-16423)|0;d=N(j-c|0,2499)+N(b+d|0,7141)|0;H[a+96>>2]=k+d>>15;H[a+32>>2]=(i+((h+(d+N(b,-6029)|0)|0)+N(c,-679)|0)|0)+16384>>15;f=f+4|0;a=a+4|0;C=C+1|0;if((C|0)!=7){continue}break}xb=u+192|0}function FS(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;a=xb-352|0;xb=a;H[a+336>>2]=c;H[a+344>>2]=b;h=uf(d);i=Zi(d,a+224|0);Yi(a+208|0,d,a+332|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3449,a+344|0,a+336|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3451,a+344|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=oh(d,h,c,a+188|0,a+8|0,H[a+332>>2],a+208|0,a+16|0,a+12|0,i);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+344|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=Ml(3431,c,H[a+188>>2],e,h);d=yb;h=H[197455];H[197455]=0;f:{if((h|0)==1){break f}H[f>>2]=c;H[f+4>>2]=d;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+344|0,a+336|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+344>>2];_b(b);_b(a+208|0);xb=a+352|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function BS(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;a=xb-352|0;xb=a;H[a+336>>2]=c;H[a+344>>2]=b;h=uf(d);i=Zi(d,a+224|0);Yi(a+208|0,d,a+332|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3449,a+344|0,a+336|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3451,a+344|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=oh(d,h,c,a+188|0,a+8|0,H[a+332>>2],a+208|0,a+16|0,a+12|0,i);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+344|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=Ml(3435,c,H[a+188>>2],e,h);d=yb;h=H[197455];H[197455]=0;f:{if((h|0)==1){break f}H[f>>2]=c;H[f+4>>2]=d;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+344|0,a+336|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+344>>2];_b(b);_b(a+208|0);xb=a+352|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function vca(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;d=H[a+400>>2];e=d;c=H[d+20>>2];j=H[d+16>>2];if((c|0)>(j|0)){t=H[a+284>>2]-1|0;p=H[a+308>>2]-1|0;m=d+24|0;i=H[d+12>>2];while(1){if(i>>>0<=p>>>0){while(1){c=H[a+288>>2];if((c|0)>0){e=0;n=0;while(1){f=H[((n<<2)+a|0)+292>>2];if(H[f+60>>2]>0){u=N(H[f+68>>2],i);v=H[(H[a+416>>2]+(H[f+4>>2]<<2)|0)+4>>2];k=H[(i>>>0

>>0?56:72)+f>>2];s=k+1|0;q=N(H[f+40>>2],j);o=0;while(1){a:{if(!(H[f+76>>2]<=(j+o|0)&K[d+8>>2]>=t>>>0)){zb[v|0](a,f,H[(H[f+4>>2]<<2)+b>>2],H[((e<<2)+d|0)+24>>2],q,u,k);h=H[f+56>>2];if((k|0)>=(h|0)){break a}g=(e+k<<2)+d|0;Mc(H[g+24>>2],h-k<<7);h=H[f+56>>2];if((k|0)>=(h|0)){break a}c=k;if(h-c&1){G[H[g+24>>2]>>1]=J[H[g+20>>2]>>1];c=s}if((h|0)==(s|0)){break a}while(1){g=(c+e<<2)+d|0;G[H[g+24>>2]>>1]=J[H[g+20>>2]>>1];G[H[g+28>>2]>>1]=J[H[g+24>>2]>>1];c=c+2|0;if((h|0)!=(c|0)){continue}break}break a}c=(e<<2)+d|0;Mc(H[c+24>>2],H[f+56>>2]<<7);h=H[f+56>>2];if((h|0)<=0){break a}g=H[c+20>>2];r=0;c=0;if(h-1>>>0>=3){w=h&-4;l=0;while(1){G[H[(c+e<<2)+m>>2]>>1]=J[g>>1];G[H[((c|1)+e<<2)+m>>2]>>1]=J[g>>1];G[H[((c|2)+e<<2)+m>>2]>>1]=J[g>>1];G[H[((c|3)+e<<2)+m>>2]>>1]=J[g>>1];c=c+4|0;l=l+4|0;if((w|0)!=(l|0)){continue}break}}l=h&3;if(!l){break a}while(1){G[H[((c+e<<2)+d|0)+24>>2]>>1]=J[g>>1];c=c+1|0;r=r+1|0;if((l|0)!=(r|0)){continue}break}}e=e+h|0;q=H[f+40>>2]+q|0;o=o+1|0;if((o|0)>2]){continue}break}c=H[a+288>>2]}n=n+1|0;if((n|0)<(c|0)){continue}break}}if(!(zb[H[H[a+420>>2]+4>>2]](a,m)|0)){H[d+12>>2]=i;H[d+16>>2]=j;return 0}i=i+1|0;if(p>>>0>=i>>>0){continue}break}c=H[d+20>>2]}i=0;H[d+12>>2]=0;j=j+1|0;if((j|0)<(c|0)){continue}break}e=H[a+400>>2]}H[d+8>>2]=H[d+8>>2]+1;c=1;c=H[a+288>>2]<=1?H[H[a+292>>2]+(K[e+8>>2]>2]-1>>>0?12:76)>>2]:c;H[e+12>>2]=0;H[e+16>>2]=0;H[e+20>>2]=c;return 1}function GS(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;a=xb-352|0;xb=a;H[a+336>>2]=c;H[a+344>>2]=b;h=uf(d);i=Zi(d,a+224|0);Yi(a+208|0,d,a+332|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3449,a+344|0,a+336|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3451,a+344|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=oh(d,h,c,a+188|0,a+8|0,H[a+332>>2],a+208|0,a+16|0,a+12|0,i);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+344|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=la(3427,c|0,H[a+188>>2],e|0,h|0)|0;d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}H[f>>2]=c;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+344|0,a+336|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+344>>2];_b(b);_b(a+208|0);xb=a+352|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function ES(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;a=xb-352|0;xb=a;H[a+336>>2]=c;H[a+344>>2]=b;h=uf(d);i=Zi(d,a+224|0);Yi(a+208|0,d,a+332|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3449,a+344|0,a+336|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3451,a+344|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=oh(d,h,c,a+188|0,a+8|0,H[a+332>>2],a+208|0,a+16|0,a+12|0,i);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+344|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=la(3432,c|0,H[a+188>>2],e|0,h|0)|0;d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}G[f>>1]=c;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+344|0,a+336|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+344>>2];_b(b);_b(a+208|0);xb=a+352|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function DS(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;a=xb-352|0;xb=a;H[a+336>>2]=c;H[a+344>>2]=b;h=uf(d);i=Zi(d,a+224|0);Yi(a+208|0,d,a+332|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3449,a+344|0,a+336|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3451,a+344|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=oh(d,h,c,a+188|0,a+8|0,H[a+332>>2],a+208|0,a+16|0,a+12|0,i);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+344|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=la(3433,c|0,H[a+188>>2],e|0,h|0)|0;d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}H[f>>2]=c;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+344|0,a+336|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+344>>2];_b(b);_b(a+208|0);xb=a+352|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function CS(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;a=xb-352|0;xb=a;H[a+336>>2]=c;H[a+344>>2]=b;h=uf(d);i=Zi(d,a+224|0);Yi(a+208|0,d,a+332|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3449,a+344|0,a+336|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3451,a+344|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=oh(d,h,c,a+188|0,a+8|0,H[a+332>>2],a+208|0,a+16|0,a+12|0,i);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3453,a+344|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=la(3434,c|0,H[a+188>>2],e|0,h|0)|0;d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}H[f>>2]=c;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3450,a+344|0,a+336|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+344>>2];_b(b);_b(a+208|0);xb=a+352|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function c0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=O(0),i=0,j=0,k=0,l=0,m=0,n=0;Be(a,b);e=H[a+8>>2];d=H[a+4>>2];if(e>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[a+4>>2]=d}H[b+16>>2]=c;if(e>>>0<=d+3>>>0){g=0}else{h=(x(2,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)),B());d=d+4|0;H[a+4>>2]=d;g=+h}M[b+24>>3]=g;if(e>>>0>d+3>>>0){h=(x(2,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)),B());d=d+4|0;H[a+4>>2]=d;g=+h}else{g=0}M[b+32>>3]=g;a:{if(e>>>0<=d+3>>>0){H[b+40>>2]=0;break a}f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);i=d+4|0;H[a+4>>2]=i;H[b+40>>2]=f;if(!f){break a}e=Qb((l=-1,m=gma(f,0,48,0),n=yb,n?l:m));f=N(f,48);j=f-48|0;k=((j>>>0)/48|0)+1&7;b:{if(!k){c=e;break b}d=0;c=e;while(1){H[c+20>>2]=0;H[c+24>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[c+28>>2]=0;H[c+32>>2]=0;c=c+48|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}if(j>>>0>=336){d=e+f|0;while(1){H[c+20>>2]=0;H[c+24>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c+68>>2]=0;H[c+72>>2]=0;H[c+76>>2]=0;H[c+80>>2]=0;H[c+116>>2]=0;H[c+120>>2]=0;H[c+88>>2]=0;H[c+92>>2]=0;H[c+124>>2]=0;H[c+128>>2]=0;H[c+164>>2]=0;H[c+168>>2]=0;H[c+136>>2]=0;H[c+140>>2]=0;H[c+172>>2]=0;H[c+176>>2]=0;H[c+184>>2]=0;H[c+188>>2]=0;H[c+220>>2]=0;H[c+224>>2]=0;H[c+212>>2]=0;H[c+216>>2]=0;H[c+232>>2]=0;H[c+236>>2]=0;H[c+260>>2]=0;H[c+264>>2]=0;H[c+268>>2]=0;H[c+272>>2]=0;H[c+308>>2]=0;H[c+312>>2]=0;H[c+280>>2]=0;H[c+284>>2]=0;H[c+316>>2]=0;H[c+320>>2]=0;H[c+328>>2]=0;H[c+332>>2]=0;H[c+356>>2]=0;H[c+360>>2]=0;H[c+364>>2]=0;H[c+368>>2]=0;H[c+376>>2]=0;H[c+380>>2]=0;c=c+384|0;if((d|0)!=(c|0)){continue}break}}H[b+44>>2]=e;d=e;c=H[a>>2];e=(c-i|0)+36|0;$p(a,d,(e+i|0)-c|0);if(K[b+40>>2]>=2){c=1;while(1){$p(a,H[b+44>>2]+N(c,48)|0,(e+H[a+4>>2]|0)-H[a>>2]|0);c=c+1|0;if(c>>>0>2]){continue}break}}return a|0}H[b+44>>2]=0;return a|0}function b0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=O(0),i=0,j=0,k=0,l=0,m=0,n=0;Be(a,b);e=H[a+8>>2];d=H[a+4>>2];if(e>>>0>d+3>>>0){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[a+4>>2]=d}H[b+16>>2]=c;if(e>>>0<=d+3>>>0){g=0}else{h=(x(2,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)),B());d=d+4|0;H[a+4>>2]=d;g=+h}M[b+24>>3]=g;if(e>>>0>d+3>>>0){h=(x(2,I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24)),B());d=d+4|0;H[a+4>>2]=d;g=+h}else{g=0}M[b+32>>3]=g;a:{if(e>>>0<=d+3>>>0){H[b+40>>2]=0;break a}f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);i=d+4|0;H[a+4>>2]=i;H[b+40>>2]=f;if(!f){break a}e=Qb((l=-1,m=gma(f,0,48,0),n=yb,n?l:m));f=N(f,48);j=f-48|0;k=((j>>>0)/48|0)+1&7;b:{if(!k){c=e;break b}d=0;c=e;while(1){H[c+20>>2]=0;H[c+24>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[c+28>>2]=0;H[c+32>>2]=0;c=c+48|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}if(j>>>0>=336){d=e+f|0;while(1){H[c+20>>2]=0;H[c+24>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c+68>>2]=0;H[c+72>>2]=0;H[c+76>>2]=0;H[c+80>>2]=0;H[c+116>>2]=0;H[c+120>>2]=0;H[c+88>>2]=0;H[c+92>>2]=0;H[c+124>>2]=0;H[c+128>>2]=0;H[c+164>>2]=0;H[c+168>>2]=0;H[c+136>>2]=0;H[c+140>>2]=0;H[c+172>>2]=0;H[c+176>>2]=0;H[c+184>>2]=0;H[c+188>>2]=0;H[c+220>>2]=0;H[c+224>>2]=0;H[c+212>>2]=0;H[c+216>>2]=0;H[c+232>>2]=0;H[c+236>>2]=0;H[c+260>>2]=0;H[c+264>>2]=0;H[c+268>>2]=0;H[c+272>>2]=0;H[c+308>>2]=0;H[c+312>>2]=0;H[c+280>>2]=0;H[c+284>>2]=0;H[c+316>>2]=0;H[c+320>>2]=0;H[c+328>>2]=0;H[c+332>>2]=0;H[c+356>>2]=0;H[c+360>>2]=0;H[c+364>>2]=0;H[c+368>>2]=0;H[c+376>>2]=0;H[c+380>>2]=0;c=c+384|0;if((d|0)!=(c|0)){continue}break}}H[b+44>>2]=e;d=e;c=H[a>>2];e=(c-i|0)+36|0;_p(a,d,(e+i|0)-c|0);if(K[b+40>>2]>=2){c=1;while(1){_p(a,H[b+44>>2]+N(c,48)|0,(e+H[a+4>>2]|0)-H[a>>2]|0);c=c+1|0;if(c>>>0>2]){continue}break}}return a|0}H[b+44>>2]=0;return a|0}function _K(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;d=xb-48|0;xb=d;i=H[b+28>>2];H[d+20>>2]=H[b+8>>2];o=d,p=hd(b,d+4|0),H[o+8>>2]=p;c=H[d+4>>2];a:{if(c){break a}c=Ic(b,95856,d+8|0);H[d+4>>2]=c;if(c){break a}c=1330926671;b:{if(H[d+8>>2]!=1330926671){e=H[d+20>>2];c=bc(b,e+12|0);H[d+44>>2]=c;if(c){break a}c=2;if(!J[d+12>>1]){break a}j=e+28|0;e=0;while(1){c:{c=Ic(b,95888,d+24|0);H[d+44>>2]=c;if(c){G[d+12>>1]=e-1;break c}g=H[b+4>>2];h=H[d+32>>2];d:{if(g>>>0>>0){break d}c=H[d+24>>2];m=g-h|0;g=H[d+36>>2];if(!((c|0)==1986884728|m>>>0>=g>>>0)&(c|0)!=1752003704){break d}f=f+1|0;e:{if((c|0)<=1651008867){if((c|0)==1296389185){break e}if((c|0)!=1397313095){break d}l=1;break d}if((c|0)!=1751474532&(c|0)!=1651008868){break d}if(g>>>0<54){c=142;break a}c=bc(b,h+12|0);H[d+44>>2]=c;if(c){break a}hd(b,d+44|0);c=H[d+44>>2];if(c){break a}c=bc(b,j+(e<<4)|0);H[d+44>>2]=c;k=1;if(!c){break d}break a}n=1}e=e+1|0;if(e>>>0>1]){continue}}break}c=2;if(!(f&65535)){break a}if(!k){c=142;if(!l|!n){break a}}H[d+4>>2]=0;c=H[d+8>>2];break b}f=J[d+12>>1];if(f){break b}c=2;break a}H[a+148>>2]=c;G[a+152>>1]=f;o=a,p=Ub(i,16,0,f&65535,0,d+4|0),H[o+156>>2]=p;c=H[d+4>>2];if(c){break a}c=bc(b,H[d+20>>2]+12|0);H[d+4>>2]=c;if(c){break a}c=Jc(b,J[d+12>>1]<<4);H[d+4>>2]=c;if(c){break a}f:{if(!J[d+12>>1]){f=0;break f}j=0;f=0;while(1){h=de(b);l=de(b);i=de(b);k=de(b);c=H[b+4>>2];g:{if(c>>>0>>0){break g}c=c-i|0;if(c>>>0>>0){if((h|0)!=1986884728&(h|0)!=1752003704){break g}k=c&-4}g=H[a+156>>2];e=f&65535;h:{if(!e){e=0;break h}c=0;while(1){if((h|0)==H[g+(c<<4)>>2]){break g}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=g+(e<<4)|0;H[c+12>>2]=k;H[c+8>>2]=i;H[c+4>>2]=l;H[c>>2]=h;f=f+1|0}j=j+1|0;if(J[d+12>>1]>(j&65535)>>>0){continue}break}}G[a+152>>1]=f;wc(b);c=H[d+4>>2]}xb=d+48|0;return c|0}function ZC(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=1;c=H[a+336>>2];a:{b:{if((c|0)==1){c=H[a+340>>2];H[a+356>>2]=H[c+28>>2];d=H[c+32>>2];H[a+360>>2]=d;H[c+64>>2]=1;H[c+56>>2]=1;H[c+60>>2]=1;H[c+72>>2]=1;H[c+68>>2]=H[c+36>>2];f=c;c=H[c+12>>2];d=(d>>>0)%(c>>>0)|0;H[f+76>>2]=d?d:c;H[a+364>>2]=1;H[a+368>>2]=0;break b}if(c-5>>>0<=4294967291){b=H[a>>2];H[b+24>>2]=c;H[b+20>>2]=27;H[H[a>>2]+28>>2]=4;zb[H[H[a>>2]>>2]](a)}c=N(H[a+424>>2],H[a+312>>2]);H[a+356>>2]=((c+H[a+28>>2]|0)-1|0)/(c|0);c=N(H[a+424>>2],H[a+316>>2]);c=((c+H[a+32>>2]|0)-1|0)/(c|0)|0;H[a+364>>2]=0;H[a+360>>2]=c;if(H[a+336>>2]<=0){break a}h=a+368|0;while(1){b=H[((d<<2)+a|0)+340>>2];e=H[b+8>>2];H[b+56>>2]=e;g=H[b+12>>2];H[b+60>>2]=g;c=N(e,g);H[b+64>>2]=c;H[b+68>>2]=N(e,H[b+36>>2]);f=K[b+28>>2]%(e>>>0)|0;H[b+72>>2]=f?f:e;f=b;b=K[b+32>>2]%(g>>>0)|0;H[f+76>>2]=b?b:g;if((c+i|0)>=11){b=H[a>>2];H[b+20>>2]=14;zb[H[b>>2]](a)}c:{if((c|0)<=0){break c}e=c-1|0;b=0;g=c&3;if(g){while(1){f=H[a+364>>2];H[a+364>>2]=f+1;H[((f<<2)+a|0)+368>>2]=d;c=c-1|0;b=b+1|0;if((g|0)!=(b|0)){continue}break}}if(e>>>0<3){break c}while(1){b=H[a+364>>2];H[a+364>>2]=b+1;H[h+(b<<2)>>2]=d;b=H[a+364>>2];H[a+364>>2]=b+1;H[h+(b<<2)>>2]=d;b=H[a+364>>2];H[a+364>>2]=b+1;H[h+(b<<2)>>2]=d;b=H[a+364>>2];H[a+364>>2]=b+1;H[h+(b<<2)>>2]=d;b=c-5|0;c=c-4|0;if(b>>>0<4294967294){continue}break}}b=H[a+336>>2];d=d+1|0;if((b|0)>(d|0)){i=H[a+364>>2];continue}break}if((b|0)<=0){break a}}c=0;while(1){d=H[((c<<2)+a|0)+340>>2];if(!H[d+80>>2]){b=H[d+16>>2];if(!(H[((b<<2)+a|0)+164>>2]?b>>>0<=3:0)){e=H[a>>2];H[e+24>>2]=b;H[e+20>>2]=54;zb[H[H[a>>2]>>2]](a)}j=d,k=Ob(zb[H[H[a+4>>2]>>2]](a,1,132)|0,H[((b<<2)+a|0)+164>>2],132),H[j+80>>2]=k;b=H[a+336>>2]}c=c+1|0;if((c|0)<(b|0)){continue}break}}zb[H[H[a+464>>2]>>2]](a);zb[H[H[a+448>>2]>>2]](a);H[H[a+456>>2]>>2]=H[H[a+448>>2]+4>>2]}function TS(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;a=xb-272|0;xb=a;H[a+256>>2]=c;H[a+264>>2]=b;h=uf(d);_i(a+208|0,d,a+255|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3420,a+264|0,a+256|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3422,a+264|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=ph(d,h,c,a+188|0,a+8|0,F[a+255|0],a+208|0,a+16|0,a+12|0,773072);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+264|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=Ml(3435,c,H[a+188>>2],e,h);d=yb;h=H[197455];H[197455]=0;f:{if((h|0)==1){break f}H[f>>2]=c;H[f+4>>2]=d;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+264|0,a+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+264>>2];_b(b);_b(a+208|0);xb=a+272|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function $S(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;a=xb-272|0;xb=a;H[a+256>>2]=c;H[a+264>>2]=b;h=uf(d);_i(a+208|0,d,a+255|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3420,a+264|0,a+256|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3422,a+264|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=ph(d,h,c,a+188|0,a+8|0,F[a+255|0],a+208|0,a+16|0,a+12|0,773072);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+264|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=Ml(3431,c,H[a+188>>2],e,h);d=yb;h=H[197455];H[197455]=0;f:{if((h|0)==1){break f}H[f>>2]=c;H[f+4>>2]=d;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+264|0,a+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+264>>2];_b(b);_b(a+208|0);xb=a+272|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function Yn(a){var b=0;b=5;a:{b:{c:{d:{if((a|0)<=1315009121){if((a|0)<=1215655526){if((a|0)<=1130918514){if((a|0)<=1098018152){if((a|0)==1097100397){break b}if((a|0)!=1098015074){break c}break b}if((a|0)==1098018153){break b}if((a|0)!=1098281844){break c}break b}if((a|0)<=1164736876){if((a|0)==1130918515){break b}if((a|0)!=1131442804){break c}break b}if((a|0)==1164736877|(a|0)==1214346354){break b}if((a|0)!=1214603890){break c}break b}if((a|0)<=1298230883){if((a|0)<=1265131889){if((a|0)==1215655527){break a}if((a|0)!=1232363884){break c}break a}if((a|0)==1265131890){break b}if((a|0)!=1283023977){break c}break b}e:{switch(a-1298230884|0){case 0:case 5:break b;case 1:case 2:case 3:case 4:break c;default:break e}}switch(a-1298494051|0){case 0:case 12:break b;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break c;default:break d}}if((a|0)<=1349678184){if((a|0)<=1348562028){if((a|0)<=1315663726){if((a|0)==1315009122){break b}if((a|0)!=1315070324){break c}break b}if((a|0)==1315663727|(a|0)==1332898664){break b}if((a|0)!=1333094258){break c}break b}f:{switch(a-1349020777|0){case 0:case 7:break b;case 1:case 2:case 3:case 4:case 5:case 6:break c;default:break f}}if((a|0)==1348562029){break b}if((a|0)!=1349021304){break c}break b}if((a|0)<=1399809891){if((a|0)<=1383427697){if((a|0)==1349678185){break b}if((a|0)!=1383032935){break c}break b}if((a|0)==1383427698){break a}if((a|0)==1398893938){break b}if((a|0)!=1398895202){break c}break b}if((a|0)<=1416126816){g:{switch(a-1399809892|0){case 0:case 11:break b;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:break c;default:break g}}if((a|0)!=1400468067){break c}break b}if((a|0)==1416126817){break b}if((a|0)!=1499822697){break c}break b}if((a|0)==1298493028){break b}}b=4}return b}return 0}function tg(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,r=0,s=0,t=0,u=0,v=0;e=c?b+16|0:b;b=(b<<2)+a|0;b=H[(c?b+136|0:b+120|0)>>2];if(!b){c=H[a>>2];H[c+24>>2]=e;H[c+20>>2]=52;zb[H[H[a>>2]>>2]](a)}if(!H[b+276>>2]){c=H[a+24>>2];f=H[c>>2];H[c>>2]=f+1;F[f|0]=255;f=H[c+4>>2]-1|0;H[c+4>>2]=f;a:{if(f){break a}if(zb[H[c+12>>2]](a)|0){break a}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=H[a+24>>2];f=H[c>>2];H[c>>2]=f+1;F[f|0]=196;f=H[c+4>>2]-1|0;H[c+4>>2]=f;b:{if(f){break b}if(zb[H[c+12>>2]](a)|0){break b}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}d=I[b+16|0];g=I[b+15|0];h=I[b+14|0];i=I[b+13|0];j=I[b+12|0];k=I[b+11|0];l=I[b+10|0];m=I[b+9|0];n=I[b+8|0];o=I[b+7|0];p=I[b+6|0];q=I[b+5|0];r=I[b+4|0];s=I[b+3|0];t=I[b+2|0];u=I[b+1|0];c=H[a+24>>2];f=H[c>>2];H[c>>2]=f+1;v=f;f=d+(g+(h+((((((((((((t+u|0)+s|0)+r|0)+q|0)+p|0)+o|0)+n|0)+m|0)+l|0)+k|0)+j|0)+i|0)|0)|0)|0;g=f+19|0;F[v|0]=g>>>8;d=H[c+4>>2]-1|0;H[c+4>>2]=d;c:{if(d){break c}if(zb[H[c+12>>2]](a)|0){break c}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=g;d=H[c+4>>2]-1|0;H[c+4>>2]=d;d:{if(d){break d}if(zb[H[c+12>>2]](a)|0){break d}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=e;e=H[c+4>>2]-1|0;H[c+4>>2]=e;e:{if(e){break e}if(zb[H[c+12>>2]](a)|0){break e}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}c=1;while(1){g=I[b+c|0];e=H[a+24>>2];d=H[e>>2];H[e>>2]=d+1;F[d|0]=g;d=H[e+4>>2]-1|0;H[e+4>>2]=d;f:{if(d){break f}if(zb[H[e+12>>2]](a)|0){break f}e=H[a>>2];H[e+20>>2]=25;zb[H[e>>2]](a)}c=c+1|0;if((c|0)!=17){continue}break}if(f){c=0;while(1){g=I[(b+c|0)+17|0];e=H[a+24>>2];d=H[e>>2];H[e>>2]=d+1;F[d|0]=g;d=H[e+4>>2]-1|0;H[e+4>>2]=d;g:{if(d){break g}if(zb[H[e+12>>2]](a)|0){break g}e=H[a>>2];H[e+20>>2]=25;zb[H[e>>2]](a)}c=c+1|0;if(f>>>0>c>>>0){continue}break}}H[b+276>>2]=1}}function bT(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;a=xb-272|0;xb=a;H[a+256>>2]=c;H[a+264>>2]=b;h=uf(d);_i(a+208|0,d,a+255|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3420,a+264|0,a+256|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3422,a+264|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=ph(d,h,c,a+188|0,a+8|0,F[a+255|0],a+208|0,a+16|0,a+12|0,773072);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+264|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=la(3427,c|0,H[a+188>>2],e|0,h|0)|0;d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}H[f>>2]=c;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+264|0,a+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+264>>2];_b(b);_b(a+208|0);xb=a+272|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function XS(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;a=xb-272|0;xb=a;H[a+256>>2]=c;H[a+264>>2]=b;h=uf(d);_i(a+208|0,d,a+255|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3420,a+264|0,a+256|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3422,a+264|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=ph(d,h,c,a+188|0,a+8|0,F[a+255|0],a+208|0,a+16|0,a+12|0,773072);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+264|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=la(3432,c|0,H[a+188>>2],e|0,h|0)|0;d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}G[f>>1]=c;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+264|0,a+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+264>>2];_b(b);_b(a+208|0);xb=a+272|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function VS(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;a=xb-272|0;xb=a;H[a+256>>2]=c;H[a+264>>2]=b;h=uf(d);_i(a+208|0,d,a+255|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3420,a+264|0,a+256|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3422,a+264|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=ph(d,h,c,a+188|0,a+8|0,F[a+255|0],a+208|0,a+16|0,a+12|0,773072);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+264|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=la(3433,c|0,H[a+188>>2],e|0,h|0)|0;d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}H[f>>2]=c;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+264|0,a+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+264>>2];_b(b);_b(a+208|0);xb=a+272|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function US(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;a=xb-272|0;xb=a;H[a+256>>2]=c;H[a+264>>2]=b;h=uf(d);_i(a+208|0,d,a+255|0);b=Dc(a+192|0);if(I[b+11|0]>>>7|0){c=(H[b+8>>2]&2147483647)-1|0}else{c=10}H[197455]=0;ba(3349,b|0,c|0);c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=c;H[a+12>>2]=a+16;H[a+8>>2]=0;while(1){d:{H[197455]=0;d=da(3420,a+264|0,a+256|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}if(!d){break c}g=H[a+188>>2];if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}if((g|0)==(d+c|0)){if(I[b+11|0]>>>7|0){c=H[b+4>>2]}else{c=I[b+11|0]}if(I[b+11|0]>>>7|0){d=H[b+4>>2]}else{d=I[b+11|0]}H[197455]=0;ba(3349,b|0,d<<1);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=I[b+11|0]>>>7|0?(H[b+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,b|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}d=c;if(I[b+11|0]>>>7|0){c=H[b>>2]}else{c=b}H[a+188>>2]=d+c}H[197455]=0;d=aa(3422,a+264|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break d}H[197455]=0;d=ph(d,h,c,a+188|0,a+8|0,F[a+255|0],a+208|0,a+16|0,a+12|0,773072);g=H[197455];H[197455]=0;if((g|0)==1){break d}if(d){break c}H[197455]=0;aa(3424,a+264|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){continue}}break}break b}break b}if(I[a+219|0]>>>7|0){d=H[a+212>>2]}else{d=I[a+219|0]}e:{if(!d){break e}d=H[a+12>>2];if((d-(a+16|0)|0)>159){break e}H[a+12>>2]=d+4;H[d>>2]=H[a+8>>2]}H[197455]=0;c=la(3434,c|0,H[a+188>>2],e|0,h|0)|0;d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}H[f>>2]=c;H[197455]=0;fe(a+208|0,a+16|0,H[a+12>>2],e);c=H[197455];H[197455]=0;if((c|0)==1){break f}H[197455]=0;c=da(3421,a+264|0,a+256|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if(c){H[e>>2]=H[e>>2]|2}c=H[a+264>>2];_b(b);_b(a+208|0);xb=a+272|0;break a}}c=$()|0;_()|0;_b(b);_b(a+208|0);ea(c|0);X()}return c|0}function Rr(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=O(0),l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=O(0);j=xb-16|0;xb=j;o=163632;i=((c<<2)+a|0)+2|0;h=c;c=I[a|0]|I[a+1|0]<<8;c=h>>>0<((c<<8|c>>>8)&65535)>>>0?i:163632;h=I[c|0]|I[c+1|0]<<8;h=(h<<8|h>>>8)&65535;c=I[c+2|0]|I[c+3|0]<<8;if(c){o=((c<<8|c>>>8)&65535)+a|0}c=0;a:{if(f>>>0<=h>>>0){break a}a=I[e|0]|I[e+1|0]<<8;if(((a<<8|a>>>8)&65535)>>>0<=d>>>0){break a}a=h+N(d,f)|0;a=(a|0)<0?163632:((a<<1)+e|0)+2|0;a=I[a|0]|I[a+1|0]<<8;if(!a){break a}s=((a<<8|a>>>8)&65535)+e|0;d=H[b+100>>2];a=H[d+68>>2];p=H[d+64>>2];c=p+1|0;l=a>>>0>>0?a:c;m=l-g|0;b:{if(m>>>0<=1){c=H[d+80>>2];break b}h=H[d+144>>2]|32;H[d+144>>2]=h;c=H[d+80>>2];if(g>>>0>=l>>>0){break b}a=-1;e=g;q=(e^-1)+l|0;if(q>>>0>=3){n=m&-4;while(1){f=N(e,20)+c|0;i=H[f+8>>2];a=a>>>0>>0?a:i;i=H[f+28>>2];a=a>>>0>>0?a:i;i=H[f+48>>2];a=a>>>0>>0?a:i;f=H[f+68>>2];a=a>>>0>>0?a:f;e=e+4|0;r=r+4|0;if((n|0)!=(r|0)){continue}break}}n=m&3;if(n){f=0;while(1){i=H[(N(e,20)+c|0)+8>>2];a=a>>>0>>0?a:i;e=e+1|0;f=f+1|0;if((n|0)!=(f|0)){continue}break}}e=g;if(m&1){e=N(g,20)+c|0;if(H[e+8>>2]!=(a|0)){H[d+144>>2]=h;H[e+4>>2]=H[e+4>>2]|3}e=g+1|0}if(!q){break b}while(1){f=N(e,20)+c|0;if(H[f+8>>2]!=(a|0)){h=h|32;H[d+144>>2]=h;H[f+4>>2]=H[f+4>>2]|3}f=N(e+1|0,20)+c|0;if(H[f+8>>2]!=(a|0)){h=h|32;H[d+144>>2]=h;H[f+4>>2]=H[f+4>>2]|3}e=e+2|0;if((l|0)!=(e|0)){continue}break}}Hn(o,b,H[N(p,20)+c>>2],j+12|0,j+8|0);Hn(s,b,H[H[d+80>>2]+N(g,20)>>2],j+4|0,j);a=H[d+88>>2]+N(H[d+64>>2],20)|0;k=O(T(O(O(L[j+4>>2]-L[j+12>>2])+O(.5))));c:{if(O(P(k))>2]=b;k=L[j+8>>2];t=L[j>>2];c=1;F[a+18|0]=1;k=O(T(O(O(t-k)+O(.5))));d:{if(O(P(k))>2]=b;G[a+16>>1]=g-H[d+64>>2];H[d+144>>2]=H[d+144>>2]|8;H[d+64>>2]=H[d+64>>2]+1}xb=j+16|0;return c}function jfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=c+d|0;if(H[b>>2]?K[b+12>>2]>>0|j>>>0>K[b+4>>2]:1){d=H[a>>2];H[d+20>>2]=23;zb[H[d>>2]](a)}d=H[b+24>>2];a:{if(d>>>0<=c>>>0&d+H[b+16>>2]>>>0>=j>>>0){break a}if(!H[b+40>>2]){d=H[a>>2];H[d+20>>2]=71;zb[H[d>>2]](a)}if(H[b+36>>2]){d=H[b+16>>2];b:{if((d|0)<=0){break b}g=H[b+20>>2];g=(d|0)>(g|0)?g:d;d=H[b+24>>2];f=H[b+28>>2]-d|0;g=(f|0)>(g|0)?g:f;f=H[b+4>>2]-d|0;f=(f|0)>(g|0)?g:f;if((f|0)<=0){break b}l=b+48|0;k=H[b+8>>2]<<7;g=N(k,d);d=0;while(1){h=N(f,k);zb[H[b+52>>2]](a,l,H[H[b>>2]+(d<<2)>>2],g,h);f=H[b+20>>2];d=f+d|0;i=H[b+16>>2];if((d|0)>=(i|0)){break b}g=g+h|0;h=i-d|0;f=(f|0)<(h|0)?f:h;h=H[b+24>>2]+d|0;i=H[b+28>>2]-h|0;f=(f|0)<(i|0)?f:i;h=H[b+4>>2]-h|0;f=(f|0)<(h|0)?f:h;if((f|0)>0){continue}break}}H[b+36>>2]=0}d=H[b+16>>2];g=j-d|0;g=K[b+24>>2]>>0?c:(g|0)>0?g:0;H[b+24>>2]=g;if((d|0)<=0){break a}f=H[b+20>>2];d=(d|0)>(f|0)?f:d;f=H[b+28>>2]-g|0;d=(d|0)<(f|0)?d:f;f=H[b+4>>2]-g|0;f=(d|0)<(f|0)?d:f;if((f|0)<=0){break a}l=b+48|0;k=H[b+8>>2]<<7;g=N(k,g);d=0;while(1){h=N(f,k);zb[H[b+48>>2]](a,l,H[H[b>>2]+(d<<2)>>2],g,h);f=H[b+20>>2];d=f+d|0;i=H[b+16>>2];if((d|0)>=(i|0)){break a}g=g+h|0;h=i-d|0;f=(f|0)<(h|0)?f:h;h=H[b+24>>2]+d|0;i=H[b+28>>2]-h|0;f=(f|0)<(i|0)?f:i;h=H[b+4>>2]-h|0;f=(f|0)<(h|0)?f:h;if((f|0)>0){continue}break}}d=H[b+28>>2];c:{d:{e:{if(j>>>0<=d>>>0){break e}f:{g:{h:{if(c>>>0>d>>>0){d=c;if(!e){break h}d=H[a>>2];H[d+20>>2]=23;zb[H[d>>2]](a);d=c;break g}if(e){break g}}if(H[b+32>>2]){break f}d=H[a>>2];H[d+20>>2]=23;zb[H[d>>2]](a);break c}H[b+28>>2]=j;if(!H[b+32>>2]){break d}}a=H[b+24>>2];d=d-a|0;a=j-a|0;if(d>>>0>=a>>>0){break e}g=H[b+8>>2]<<7;while(1){Mc(H[H[b>>2]+(d<<2)>>2],g);d=d+1|0;if((a|0)!=(d|0)){continue}break}}if(!e){break c}}H[b+36>>2]=1}return H[b>>2]+(c-H[b+24>>2]<<2)|0}function xh(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,r=0,s=0,t=0,u=0,v=0;a:{b:{switch(c-1|0){case 0:H[a+408>>2]=0;H[a+412>>2]=0;H[a+400>>2]=0;H[a+404>>2]=1072693248;H[a+432>>2]=0;H[a+436>>2]=0;H[a+424>>2]=0;H[a+428>>2]=1072693248;H[a+416>>2]=0;H[a+420>>2]=0;H[a+440>>2]=0;H[a+444>>2]=0;break a;case 1:d=M[b+32>>3];g=M[b+40>>3];e=M[b>>3];h=M[b+8>>3];i=M[b+16>>3];j=M[a+408>>3];k=M[a+424>>3];f=M[b+24>>3];M[a+424>>3]=i*j+k*f;p=i;i=M[a+400>>3];l=f;f=M[a+416>>3];M[a+416>>3]=p*i+l*f;M[a+408>>3]=e*j+h*k;M[a+400>>3]=e*i+h*f;M[a+440>>3]=d*j+k*g+M[a+440>>3];M[a+432>>3]=M[a+432>>3]+(d*i+f*g);break a;case 2:j=M[b+32>>3];k=M[b+40>>3];d=M[b>>3];g=M[b+16>>3];i=M[a+416>>3];e=M[b+8>>3];h=M[b+24>>3];f=M[a+424>>3];M[a+424>>3]=i*e+h*f;M[a+416>>3]=i*d+g*f;i=M[a+400>>3];f=M[a+408>>3];M[a+408>>3]=e*i+h*f;M[a+400>>3]=i*d+f*g;p=e;e=M[a+432>>3];l=h;h=M[a+440>>3];M[a+440>>3]=k+(p*e+l*h);M[a+432>>3]=j+(e*d+g*h);break a;default:break b}}M[a+400>>3]=M[b>>3];M[a+408>>3]=M[b+8>>3];M[a+416>>3]=M[b+16>>3];M[a+424>>3]=M[b+24>>3];M[a+432>>3]=M[b+32>>3];M[a+440>>3]=M[b+40>>3]}g=M[a+424>>3];j=M[a+400>>3];e=M[a+416>>3];h=M[a+408>>3];d=g*j-e*h;k=g/d;M[a+472>>3]=k;M[a+464>>3]=-e/d;M[a+456>>3]=-h/d;M[a+448>>3]=k;k=M[a+432>>3];i=M[a+440>>3];M[a+488>>3]=h*k/d-j*i/d;M[a+480>>3]=e*i/d-g*k/d;b=H[a+644>>2];c=H[a+660>>2];u=H[a+640>>2];v=H[a+656>>2];q=M[a+624>>3];r=+(H[a+664>>2]>>31|1);f=q*r;d=f*0+0;s=M[a+632>>3];t=+(H[a+668>>2]>>31|1);m=s*t;n=m+0;o=j*d+e*n;n=d*h+g*n;p=o*0+n;M[a+568>>3]=p;n=o+n*0;M[a+560>>3]=n;o=f+0;f=m*0+0;m=j*o+e*f;o=o*h+g*f;l=m*0+o;M[a+552>>3]=l;m=m+o*0;M[a+544>>3]=m;M[a+520>>3]=p;M[a+512>>3]=n;M[a+504>>3]=l;M[a+496>>3]=m;d=d+ +(v|0);l=e;e=f+ +(c|0);j=k+(j*d+l*e);d=i+(d*h+g*e);g=j*0+d-s*+(b|0)*t;M[a+584>>3]=g;d=j+d*0-q*+(u|0)*r;M[a+576>>3]=d;M[a+536>>3]=g;M[a+528>>3]=d}function tK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb-16|0;xb=g;f=H[a+4>>2]&2147418112;a:{if(d&16){if(I[a+9|0]&128?1:f){i=7;if(!(I[a+740|0]&16)){break a}}if(!c){i=0;break a}b:{if(I[a+292|0]){d=0;f=1;break b}if(J[a+372>>1]==65535){b=G[a+220>>1]-G[a+222>>1]|0;a=b>>31;a=(a^b)-a&65535;i=0;b=0;if(c-1>>>0>=7){h=c&-8;f=0;while(1){d=b<<2;H[d+e>>2]=a;H[(d|4)+e>>2]=a;H[(d|8)+e>>2]=a;H[(d|12)+e>>2]=a;H[(d|16)+e>>2]=a;H[(d|20)+e>>2]=a;H[(d|24)+e>>2]=a;H[(d|28)+e>>2]=a;b=b+8|0;f=f+8|0;if((h|0)!=(f|0)){continue}break}}c=c&7;if(!c){break a}d=0;while(1){H[(b<<2)+e>>2]=a;b=b+1|0;d=d+1|0;if((c|0)!=(d|0)){continue}break}break a}b=G[a+442>>1]-G[a+444>>1]|0;a=b>>31;a=(a^b)-a&65535;i=0;b=0;if(c-1>>>0>=7){h=c&-8;f=0;while(1){d=b<<2;H[d+e>>2]=a;H[(d|4)+e>>2]=a;H[(d|8)+e>>2]=a;H[(d|12)+e>>2]=a;H[(d|16)+e>>2]=a;H[(d|20)+e>>2]=a;H[(d|24)+e>>2]=a;H[(d|28)+e>>2]=a;b=b+8|0;f=f+8|0;if((h|0)!=(f|0)){continue}break}}c=c&7;if(!c){break a}d=0;while(1){H[(b<<2)+e>>2]=a;b=b+1|0;d=d+1|0;if((c|0)!=(d|0)){continue}break}break a}while(1){i=(d<<2)+e|0;c:{if(f&255){zb[H[H[a+540>>2]+140>>2]](a,1,b+d|0,g+14|0,g+12|0);f=J[g+12>>1];break c}if(J[a+372>>1]!=65535){h=G[a+442>>1]-G[a+444>>1]|0;f=h>>31;f=(f^h)-f|0;break c}h=G[a+220>>1]-G[a+222>>1]|0;f=h>>31;f=(f^h)-f|0}H[i>>2]=f&65535;d=d+1|0;if((d|0)!=(c|0)){f=I[a+292|0];continue}break}i=0;break a}if(I[a+9|0]&128?1:f){i=7;if(!(I[a+740|0]&2)){break a}}if(!c){i=0;break a}i=0;d=0;if((c|0)!=1){h=c&-2;f=0;while(1){j=g+10|0;k=g+8|0;zb[H[H[a+540>>2]+140>>2]](a,0,b+d|0,j,k);H[(d<<2)+e>>2]=J[g+8>>1];l=d|1;zb[H[H[a+540>>2]+140>>2]](a,0,l+b|0,j,k);H[(l<<2)+e>>2]=J[g+8>>1];d=d+2|0;f=f+2|0;if((h|0)!=(f|0)){continue}break}}if(!(c&1)){break a}zb[H[H[a+540>>2]+140>>2]](a,0,b+d|0,g+10|0,g+8|0);H[(d<<2)+e>>2]=J[g+8>>1]}xb=g+16|0;return i|0}function ifa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=c+d|0;if(H[b>>2]?K[b+12>>2]>>0|j>>>0>K[b+4>>2]:1){d=H[a>>2];H[d+20>>2]=23;zb[H[d>>2]](a)}d=H[b+24>>2];a:{if(d>>>0<=c>>>0&d+H[b+16>>2]>>>0>=j>>>0){break a}if(!H[b+40>>2]){d=H[a>>2];H[d+20>>2]=71;zb[H[d>>2]](a)}if(H[b+36>>2]){d=H[b+16>>2];b:{if((d|0)<=0){break b}g=H[b+20>>2];g=(d|0)>(g|0)?g:d;d=H[b+24>>2];f=H[b+28>>2]-d|0;g=(f|0)>(g|0)?g:f;f=H[b+4>>2]-d|0;f=(f|0)>(g|0)?g:f;if((f|0)<=0){break b}l=b+48|0;k=H[b+8>>2];g=N(k,d);d=0;while(1){h=N(f,k);zb[H[b+52>>2]](a,l,H[H[b>>2]+(d<<2)>>2],g,h);f=H[b+20>>2];d=f+d|0;i=H[b+16>>2];if((d|0)>=(i|0)){break b}g=g+h|0;h=i-d|0;f=(f|0)<(h|0)?f:h;h=H[b+24>>2]+d|0;i=H[b+28>>2]-h|0;f=(f|0)<(i|0)?f:i;h=H[b+4>>2]-h|0;f=(f|0)<(h|0)?f:h;if((f|0)>0){continue}break}}H[b+36>>2]=0}d=H[b+16>>2];g=j-d|0;g=K[b+24>>2]>>0?c:(g|0)>0?g:0;H[b+24>>2]=g;if((d|0)<=0){break a}f=H[b+20>>2];d=(d|0)>(f|0)?f:d;f=H[b+28>>2]-g|0;d=(d|0)<(f|0)?d:f;f=H[b+4>>2]-g|0;f=(d|0)<(f|0)?d:f;if((f|0)<=0){break a}l=b+48|0;k=H[b+8>>2];g=N(k,g);d=0;while(1){h=N(f,k);zb[H[b+48>>2]](a,l,H[H[b>>2]+(d<<2)>>2],g,h);f=H[b+20>>2];d=f+d|0;i=H[b+16>>2];if((d|0)>=(i|0)){break a}g=g+h|0;h=i-d|0;f=(f|0)<(h|0)?f:h;h=H[b+24>>2]+d|0;i=H[b+28>>2]-h|0;f=(f|0)<(i|0)?f:i;h=H[b+4>>2]-h|0;f=(f|0)<(h|0)?f:h;if((f|0)>0){continue}break}}d=H[b+28>>2];c:{d:{e:{if(j>>>0<=d>>>0){break e}f:{g:{h:{if(c>>>0>d>>>0){d=c;if(!e){break h}d=H[a>>2];H[d+20>>2]=23;zb[H[d>>2]](a);d=c;break g}if(e){break g}}if(H[b+32>>2]){break f}d=H[a>>2];H[d+20>>2]=23;zb[H[d>>2]](a);break c}H[b+28>>2]=j;if(!H[b+32>>2]){break d}}a=H[b+24>>2];d=d-a|0;a=j-a|0;if(d>>>0>=a>>>0){break e}g=H[b+8>>2];while(1){Mc(H[H[b>>2]+(d<<2)>>2],g);d=d+1|0;if((a|0)!=(d|0)){continue}break}}if(!e){break c}}H[b+36>>2]=1}return H[b>>2]+(c-H[b+24>>2]<<2)|0}function vo(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;H[a+168>>2]=d;k=a+168|0;H[a+48>>2]=k;g=H[a+64>>2];H[a+184>>2]=H[a+60>>2];H[a+188>>2]=g;H[a+180>>2]=c;H[a+176>>2]=b;H[a+172>>2]=e;e=k;while(1){h=H[e+4>>2];f=H[e+20>>2];c=(h|0)>(f|0);a:{b:{i=H[e+12>>2];if(!((i|0)>=((c?f:h)|0)&(i|0)<=(((f|0)>(h|0)?f:h)|0))){b=H[e+16>>2];H[e+32>>2]=b;H[e+36>>2]=f;c=f+i|0;H[e+28>>2]=c>>1;g=h+i|0;H[e+12>>2]=g>>1;f=H[e+8>>2];i=f+d|0;H[e+8>>2]=i>>1;f=b+f|0;H[e+24>>2]=f>>1;b=2;H[e+20>>2]=c+g>>2;H[e+16>>2]=f+i>>2;break b}b=-2;if((f|0)==(h|0)){break b}m=c?1:2;c=H[a+92>>2];if((m|0)!=(c|0)){b=H[a+4>>2];n=(f|0)>=(h|0);g=n?f&b-1:((b+f|0)-1&0-b)-f|0;l=H[a+8>>2];if(c){b=H[a+36>>2];j=H[a+80>>2];c=H[j+8>>2];o=b-c|0;if((o|0)<0){H[a+40>>2]=99;return 1}c:{if((b|0)==(c|0)){c=b;break c}H[j+16>>2]=o>>2;if((g|0)>=(l|0)){c=J[j+12>>1];G[j+12>>1]=(c&8?16:32)|c}H[a+80>>2]=b;c=b+32|0;H[a+36>>2]=c;H[b+8>>2]=c;H[b+16>>2]=0;H[j+28>>2]=b;G[a+76>>1]=J[a+76>>1]+1}if(K[a+32>>2]<=c>>>0){H[a+40>>2]=98;return 1}F[a+79|0]=0}d:{if(H[a+84>>2]){c=H[a+36>>2];break d}b=H[a+36>>2];H[a+84>>2]=b;H[a+80>>2]=b;c=b+32|0;H[a+36>>2]=c}if(K[a+32>>2]<=c>>>0){H[a+40>>2]=98;return 1}b=H[a+80>>2];H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=c;H[b+28>>2]=0;H[b+4>>2]=0;c=I[a+164|0];G[b+12>>1]=c;e:{f:{if(!n){G[b+12>>1]=c|8;j=40;if((g|0)>=(l|0)){break f}break e}j=16;if((g|0)<(l|0)){break e}}G[b+12>>1]=c|j}if(!H[a+88>>2]){H[a+88>>2]=b}G[a+78>>1]=1;H[a+92>>2]=m}b=H[a+72>>2];c=H[a+68>>2];if((f|0)<(h|0)){if(!Hl(a,2,61,c,b)){break a}return 1}H[e+20>>2]=0-f;H[e+12>>2]=0-i;H[e+4>>2]=0-h;g=I[a+78|0];b=Hl(a,2,61,0-b|0,0-c|0);if(!(I[a+78|0]|!g)){c=H[a+80>>2];H[c+20>>2]=0-H[c+20>>2]}H[e+4>>2]=0-H[e+4>>2];if(!b){break a}return 1}H[a+48>>2]=(b<<3)+e}e=H[a+48>>2];if(k>>>0<=e>>>0){d=H[e>>2];continue}break}H[a+64>>2]=h;H[a+60>>2]=d;return 0}function zaa(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;i=xb-16|0;xb=i;t=H[a+52>>2];g=H[a+16>>2];n=H[a+12>>2];h=H[a>>2];f=Cj(h);k=N(n?4:3,f);m=Tb(k);a:{if(!m){Pb(H[h+628>>2],H[h>>2],281887,0);break a}Id(m,0,k);b:{c:{d:{switch(J[a+28>>1]-1|0){case 0:case 4:e=J[a+30>>1]-2|0;if((e&65535)>>>0>=7){break b}e=(e<<16>>16<<2)+283468|0;break c;case 1:case 5:e=J[a+30>>1]-1|0;if((e&65535)>>>0>=8){break b}e=(e<<16>>16<<2)+283496|0;break c;case 2:case 6:e=J[a+30>>1]-1|0;if((e&65535)>>>0>=8){break b}e=(e<<16>>16<<2)+283528|0;break c;case 3:case 7:break d;default:break b}}e=J[a+30>>1]-1|0;if((e&65535)>>>0>=7){break b}e=(e<<16>>16<<2)+283560|0}r=H[e>>2]}H[i>>2]=i+12;Qe(h,278,i);e=1;k=Ve(h);e:{if(!d){break e}o=f+m|0;p=f+o|0;s=n?f+p|0:0;e=g-c|0;u=g>>>0>>0?0:e;q=r&1;v=0-q&0-(c<<1);e=q?d-1|0:0;f=0;f:{while(1){g=H[i+12>>2];j=H[a+76>>2]+f|0;g=g-((j>>>0)%(g>>>0)|0)|0;g=f+g>>>0>d>>>0?d-f|0:g;l=0;if(!((Bj(h,Dj(h,j,0),m,N(k,g+((H[a+76>>2]+f>>>0)%K[i+12>>2]|0)|0))|0)>=0|!H[a+4>>2])){break f}l=0;if(!((Bj(h,Dj(h,j,1),o,N(k,g+((H[a+76>>2]+f>>>0)%K[i+12>>2]|0)|0))|0)>=0|!H[a+4>>2])){break f}l=0;if(!((Bj(h,Dj(h,j,2),p,N(k,g+((H[a+76>>2]+f>>>0)%K[i+12>>2]|0)|0))|0)>=0|!H[a+4>>2])){break f}g:{if(!n){break g}if((Bj(h,Dj(h,j,3),s,N(k,g+((H[a+76>>2]+f>>>0)%K[i+12>>2]|0)|0))|0)>=0|!H[a+4>>2]){break g}l=0;break f}j=N(k,(H[a+76>>2]+f>>>0)%K[i+12>>2]|0);zb[t|0](a,(N(c,e)<<2)+b|0,0,e,c,g,u,v,j+m|0,j+o|0,j+p|0,n?j+s|0:0);e=(q?0-g|0:g)+e|0;f=f+g|0;if(f>>>0>>0){continue}break}l=1}e=l;if(!(r&2)){break e}h=0;while(1){f=(N(c,h)<<2)+b|0;a=(f+(c<<2)|0)-4|0;if(a>>>0>f>>>0){while(1){g=H[f>>2];H[f>>2]=H[a>>2];H[a>>2]=g;a=a-4|0;f=f+4|0;if(a>>>0>f>>>0){continue}break}}h=h+1|0;if((h|0)!=(d|0)){continue}break}}Kb(m)}xb=i+16|0;return e|0}function Jia(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;e=xb-32|0;xb=e;d=H[a+84>>2];a:{if(!(!H[d+88>>2]|b|H[d+72>>2]!=1651078259)){a=Tb(60);H[a+8>>2]=0;H[a>>2]=15;H[a+4>>2]=0;b=H[d+24>>2];H[a+12>>2]=b;c=H[d+28>>2];H[a+24>>2]=c;H[a+20>>2]=b;H[a+16>>2]=c;H[a+28>>2]=H[d+40>>2];H[a+32>>2]=H[d+32>>2];H[a+36>>2]=H[d+36>>2];H[a+40>>2]=H[d+52>>2];H[a+44>>2]=H[d+44>>2];H[a+48>>2]=H[d+48>>2];H[a+52>>2]=H[d+56>>2];H[a+56>>2]=H[d+60>>2];break a}h=xb-16|0;xb=h;i=e+28|0;b:{if(!d|!i){break b}f=H[d>>2];if(!f){break b}j=H[f>>2];g=H[d+72>>2];c=29224;c:{d:{if((g|0)==1651078259){break d}c=29256;if((g|0)==1869968492){break d}e:{f:{if(!f){break f}c=H[f+148>>2];if(!c){break f}while(1){a=H[c+8>>2];if((g|0)==H[a+16>>2]){break e}c=H[c+4>>2];if(c){continue}break}}a=0}if(!a){break c}c=a+20|0}a=pc(j,H[c>>2],h+12|0);if(H[h+12>>2]){break b}H[a+4>>2]=c;H[a>>2]=f;H[a+8>>2]=H[c+4>>2];g:{f=H[d+64>>2];h:{if(f-2097152>>>0<4290772993){break h}g=H[d+68>>2];if(g-2097152>>>0<4290772993){break h}H[a+16>>2]=g<<10;H[a+12>>2]=f<<10;if(!(zb[H[c+8>>2]](a,d)|0)){break g}c=H[a+4>>2]}f=H[H[a>>2]>>2];c=H[c+12>>2];if(c){zb[c|0](a)}if(a){zb[H[f+8>>2]](f,a)}break b}H[i>>2]=a}}xb=h+16|0;a=H[e+28>>2];if(!a){a=0;break a}c=Tb(800);H[e+20>>2]=200;H[e+16>>2]=c;H[c>>2]=0;gA(a,1,e);H[c+4>>2]=H[e>>2];H[c+8>>2]=H[e+4>>2];H[c+12>>2]=H[e+8>>2];H[c+16>>2]=H[e+12>>2];H[c+20>>2]=H[d+24>>2];H[c+24>>2]=H[d+28>>2];H[c+28>>2]=H[d+40>>2];H[c+32>>2]=H[d+32>>2];H[c+36>>2]=H[d+36>>2];H[c+40>>2]=H[d+52>>2];H[c+44>>2]=H[d+44>>2];H[c+48>>2]=H[d+48>>2];H[c+52>>2]=H[d+56>>2];H[c+56>>2]=H[d+60>>2];a=15;H[e+24>>2]=15;if(b){wB(H[e+28>>2]+20|0,784188,e+16|0);a=H[e+24>>2];c=H[e+16>>2]}H[c>>2]=a;a=H[e+28>>2];if(a){b=H[H[a>>2]>>2];c=H[H[a+4>>2]+12>>2];if(c){zb[c|0](a)}if(a){zb[H[b+8>>2]](b,a)}}a=H[e+16>>2]}xb=e+32|0;return a|0}function On(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;d=H[a+24>>2];a:{b:{if(d){d=d-1|0;H[a+24>>2]=d;if(d>>>0>=K[a+32>>2]){break b}d=H[a+36>>2]+(d<<5)|0;break a}F[a+20|0]=1}d=H[40915];H[196254]=H[40914];H[196255]=d;d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992}e=H[b>>2];c:{i=M[d>>3];d:{if(P(i)<2147483648){d=~~i;break d}d=-2147483648}h=d+e|0;e:{if((h|0)<0){break e}d=H[b+4>>2];if(!d){break e}d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0<=h>>>0){break e}e=H[a+92>>2];if(e>>>0<10){break c}}F[a+40|0]=1;return}d=H[a+4>>2];H[a+44>>2]=H[a>>2];H[a+48>>2]=d;F[a+60|0]=I[a+16|0];d=H[a+12>>2];H[a+52>>2]=H[a+8>>2];H[a+56>>2]=d;d=a+44|0;f:{if(e>>>0>2]){H[a+92>>2]=e+1;f=H[d+4>>2];e=H[a+104>>2]+N(e,28)|0;H[e>>2]=H[d>>2];H[e+4>>2]=f;H[e+24>>2]=H[d+24>>2];f=H[d+20>>2];H[e+16>>2]=H[d+16>>2];H[e+20>>2]=f;f=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=f;break f}F[a+88|0]=1}g:{h:{g=H[b+4>>2];if(g){b=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(b>>>0>h>>>0){break h}}l=H[40910];e=H[40908];b=H[40909];break g}f=I[g+4|0];m=(N(f,b+1|0)+g|0)+5|0;e=0;i:{if(!f){break i}j=f&3;b=(N(f,h)+g|0)+5|0;if(f-1>>>0<3){e=0}else{n=f&252;while(1){f=b;b=b+4|0;e=e+4|0;if((n|0)!=(e|0)){continue}break}e=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24)}if(!j){break i}while(1){e=I[b|0]|e<<8;b=b+1|0;k=k+1|0;if((k|0)!=(j|0)){continue}break}}e=(e+m|0)-1|0;b=pl(g,h)}H[a+44>>2]=e;H[a+68>>2]=h;H[a- -64>>2]=c;F[a+60|0]=0;H[a+56>>2]=0;H[a+52>>2]=l;H[a+48>>2]=b;b=H[d+4>>2];H[a>>2]=H[d>>2];H[a+4>>2]=b;b=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=b;F[a+16|0]=I[d+16|0]}function cga(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!b|!c){break a}if(!(zb[H[H[b>>2]+12>>2]](b,c,40,1,0,0)|0)){break a}Rh(a,c);b:{c:{d:{e:{a=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);if((a|0)<=63){if((a|0)==12){break e}if((a|0)==40){break b}break d}d=24;if((a|0)==64){break c}if((a|0)!=124){break d}d=84;break c}F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;a=I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24);F[c+12|0]=a;F[c+13|0]=a>>>8;F[c+14|0]=a>>>16;F[c+15|0]=a>>>24;a=I[c+6|0]|I[c+7|0]<<8;F[c+8|0]=a;F[c+9|0]=a>>>8;F[c+10|0]=a>>>16;F[c+11|0]=a>>>24;a=I[c+4|0]|I[c+5|0]<<8;F[c+4|0]=a;F[c+5|0]=a>>>8;F[c+6|0]=a>>>16;F[c+7|0]=a>>>24;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;d=-28;break c}if(a>>>0<41|(I[c+20|0]|I[c+21|0]<<8|(I[c+22|0]<<16|I[c+23|0]<<24))>>>0>>0|(I[c+32|0]|I[c+33|0]<<8|(I[c+34|0]<<16|I[c+35|0]<<24)|(I[c+12|0]|I[c+13|0]<<8)!=1)){break a}if(I[c+16|0]|I[c+17|0]<<8|(I[c+18|0]<<16|I[c+19|0]<<24)){break b}d=a-40|0}zb[H[H[b>>2]+20>>2]](b,d,1)|0}if(!(I[c+20|0]|I[c+21|0]<<8|(I[c+22|0]<<16|I[c+23|0]<<24))){a=N(N(I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24),I[c+14|0]|I[c+15|0]<<8)+31>>>3&536870908,I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24));F[c+20|0]=a;F[c+21|0]=a>>>8;F[c+22|0]=a>>>16;F[c+23|0]=a>>>24}e=1;if(I[c+32|0]|I[c+33|0]<<8|(I[c+34|0]<<16|I[c+35|0]<<24)){break a}a=I[c+14|0]|I[c+15|0]<<8;a=a>>>0<9?1<>>8;F[c+34|0]=a>>>16;F[c+35|0]=a>>>24}return e|0}function H0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-96|0;xb=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(!H[a+80>>2]){break i}vi(c+80|0,a,0,0);e=I[c+91|0];d=e<<24>>24;if((d|0)<0?H[c+84>>2]:e){H[197455]=0;d=ca(1762,c+32|0,404840,c+80|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break h}H[c+56>>2]=d;H[197455]=0;H[c+60>>2]=1;d=H[c+60>>2];H[c+8>>2]=H[c+56>>2];H[c+12>>2]=d;e=da(1763,c- -64|0,c+8|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break g}if(F[c+55|0]<0){Kb(H[c+44>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);d=H[197455];H[197455]=0;if((d|0)==1){break f}d=H[b>>2];f=H[b+8>>2];g=H[b+4>>2];b=H[b+12>>2];H[197455]=0;qa(1765,a|0,e|0,+P(+(f-d|0)),+P(+(b-g|0)));b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c+32>>2]=b;H[c+36>>2]=4;H[c+40>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[c+27|0]=0;H[197455]=0;H[c+16>>2]=0;ka(1767,a|0,c+32|0,e|0,c+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}b=H[e>>2];if(b){a=H[e+4>>2];if((b|0)==(a|0)){a=b}else{while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}d=a-24|0;if(F[a-13|0]<0){Kb(H[d>>2])}a=d;if((b|0)!=(a|0)){continue}break}a=H[e>>2]}H[e+4>>2]=b;Kb(a)}d=F[c+91|0]}if(d<<24>>24>=0){break i}Kb(H[c+80>>2])}xb=c+96|0;return}a=$()|0;_()|0;break b}a=$()|0;_()|0;Vb(c+32|0);break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+43|0]>=0){break c}Kb(H[c+32>>2])}yc(e)}if(F[c+91|0]<0){Kb(H[c+80>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Rt(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;k=xb+-64|0;xb=k;m=6;i=H[a+532>>2];a:{if(!i){break a}d=H[i+4>>2];o=b>>>0>d>>>0?d:b;b:{if(!d){d=0;break b}while(1){b=N(h,12)+i|0;g=H[b+96>>2];l=H[b+92>>2];c:{if(h>>>0>>0){e=I[b+88|0];f=H[(h<<2)+c>>2];break c}e=I[b+88|0];f=(H[((e<<2)+l|0)-4>>2]-H[l>>2]|0)/2|0}d:{e:{if(!e){break e}b=0;j=-1;f:{g:{while(1){n=b<<2;p=n+l|0;q=H[p>>2];if((f|0)==(q|0)){break f}if((f|0)<(q|0)){break g}j=b;b=b+1|0;if((e|0)!=(b|0)){continue}break}if(!e){break e}b=H[(g+(e<<2)|0)-4>>2];break d}if((j|0)<0){break e}b=j<<2;e=H[b+l>>2];b=ic(f-e|0,H[g+n>>2]-H[b+g>>2]|0,H[p>>2]-e|0);d=H[i+4>>2];break d}b=H[g+n>>2];break d}b=H[g>>2]}H[(h<<2)+k>>2]=b;h=h+1|0;if(h>>>0>>0){continue}break}i=H[a+532>>2];if(!i){break a}}m=-1;b=H[i>>2];if(!b){break a}f=H[i+4>>2];h:{if(f){g=d>>>0>f>>>0?f:d;j=0;e=f;h=0;while(1){b=0;d=65536;c=0;i:{if(!e){break i}while(1){j:{if(b>>>0>=g>>>0){d=d>>1;break j}c=H[(b<<2)+k>>2];c=h>>>b&1?c:65536-c|0;if((c|0)<=0){d=0;c=e;break i}if(c>>>0>65535){break j}d=Rb(d,c);f=H[i+4>>2]}e=f;c=f;b=b+1|0;if(f>>>0>b>>>0){continue}break}}b=H[i+136>>2]+(h<<2)|0;if(H[b>>2]!=(d|0)){H[b>>2]=d;j=1}e=c;h=h+1|0;if(h>>>0>2]){continue}break}break h}h=b&3;f=H[i+136>>2];c=0;k:{if(b-1>>>0<3){j=0;b=0;break k}i=b&-4;j=0;b=0;e=0;while(1){d=b<<2;g=d+f|0;if(H[g>>2]!=65536){H[g>>2]=65536;j=1}g=f+(d|4)|0;if(H[g>>2]!=65536){H[g>>2]=65536;j=1}g=f+(d|8)|0;if(H[g>>2]!=65536){H[g>>2]=65536;j=1}d=f+(d|12)|0;if(H[d>>2]!=65536){H[d>>2]=65536;j=1}b=b+4|0;e=e+4|0;if((i|0)!=(e|0)){continue}break}}if(!h){break h}while(1){e=f+(b<<2)|0;if(H[e>>2]!=65536){H[e>>2]=65536;j=1}b=b+1|0;c=c+1|0;if((h|0)!=(c|0)){continue}break}}if(!j){break a}m=0;H[a+8>>2]=H[a+8>>2]&-32769|((o|0)!=0)<<15}xb=k- -64|0;return m|0}function k8(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;f=H[a+584>>2];k=H[f+32>>2];a:{b:{if(!k){break b}s=f+844|0;e=H[f+884>>2];c=H[H[f+216>>2]+132>>2];if(!c){while(1){if((e|0)>=8){e=0;b=H[f+316>>2]<<3;d=0;if((UA(f,s,b)|0)!=(b|0)){break a}}e=e+1|0;H[f+884>>2]=e;b=J[f+836>>1];H[a+472>>2]=b+H[a+472>>2];k=k-b|0;if((k|0)>0){continue}break b}}n=H[f+888>>2];t=c&3;w=c-1>>>0<3;while(1){if((e|0)>=8){e=0;h=H[f+316>>2]<<3;d=0;if((UA(f,s,h)|0)!=(h|0)){break a}H[f+884>>2]=0}if(H[f+36>>2]>0){p=H[f+216>>2];i=0;q=0;while(1){o=H[p+12>>2];c:{if((o|0)<=0){break c}u=(q<<2)+f|0;j=0;l=H[p+8>>2];if((l|0)==1){while(1){g=b+i|0;e=H[H[u+844>>2]+(N(H[f+884>>2],o)+j<<2)>>2];d=c;m=0;if(t){while(1){F[g|0]=I[e|0];g=g+n|0;e=e+1|0;d=d-1|0;m=m+1|0;if((t|0)!=(m|0)){continue}break}}if(!w){while(1){F[g|0]=I[e|0];h=g+n|0;F[h|0]=I[e+1|0];h=h+n|0;F[h|0]=I[e+2|0];h=h+n|0;F[h|0]=I[e+3|0];e=e+4|0;g=h+n|0;d=d-4|0;if(d){continue}break}}i=i+1|0;j=j+1|0;if((o|0)!=(j|0)){continue}break c}}if((l|0)>0){x=l&-4;v=l&3;y=l-1|0;r=0;while(1){d=b+i|0;g=H[H[u+844>>2]+(N(H[f+884>>2],o)+r<<2)>>2];h=c;while(1){m=0;e=0;j=0;if(y>>>0>=3){while(1){F[d+e|0]=I[g|0];F[(e|1)+d|0]=I[g+1|0];F[(e|2)+d|0]=I[g+2|0];F[(e|3)+d|0]=I[g+3|0];e=e+4|0;g=g+4|0;j=j+4|0;if((x|0)!=(j|0)){continue}break}}h=h-1|0;if(v){while(1){F[d+e|0]=I[g|0];e=e+1|0;g=g+1|0;m=m+1|0;if((v|0)!=(m|0)){continue}break}}d=d+n|0;if(h){continue}break}i=i+l|0;r=r+1|0;if((r|0)!=(o|0)){continue}break}break c}i=N(l,o)+i|0}p=p+88|0;q=q+1|0;if((q|0)>2]){continue}break}e=H[f+884>>2]}e=e+1|0;H[f+884>>2]=e;d=J[f+836>>1];H[a+472>>2]=d+H[a+472>>2];b=H[f+840>>2]+b|0;k=k-d|0;if((k|0)>0){continue}break}}d=1;if(K[f+140>>2]>2]){break a}d=($A(f)|0)!=0}return d|0}function nS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-208|0;xb=f;H[f+200>>2]=37;H[f+204>>2]=0;g=Yl(f+200|1,239897,H[c+4>>2]);H[f+156>>2]=f+160;a=Od();a:{if(g){j=H[c+8>>2];M[f+40>>3]=e;H[f+32>>2]=j;a=Fe(f+160|0,30,a,f+200|0,f+32|0);break a}M[f+48>>3]=e;a=Fe(f+160|0,30,a,f+200|0,f+48|0)}H[f+80>>2]=594;j=Ed(f+144|0,0,f+80|0);i=f+160|0;h=i;b:{c:{d:{if((a|0)>=30){e:{if(g){H[197455]=0;a=va(3442)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}H[f>>2]=H[c+8>>2];H[197455]=0;M[f+8>>3]=e;a=la(3464,f+156|0,a|0,f+200|0,f|0)|0;h=H[197455];H[197455]=0;if((h|0)!=1){break e}break c}H[197455]=0;a=va(3442)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}M[f+16>>3]=e;H[197455]=0;a=la(3464,f+156|0,a|0,f+200|0,f+16|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}}if((a|0)==-1){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)==1){break c}break d}ae(j,H[f+156>>2]);h=H[f+156>>2]}k=a+h|0;l=ef(h,k,c);H[f+68>>2]=594;h=Ed(f+72|0,0,f+68|0);f:{g:{if(H[f+156>>2]==(f+160|0)){a=f+80|0;break g}a=Tb(a<<1);if(!a){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)!=1){break d}c=$()|0;_()|0;break f}ae(h,a);i=H[f+156>>2]}H[197455]=0;g=H[c+28>>2];H[f+56>>2]=g;H[g+4>>2]=H[g+4>>2]+1;g=H[197455];H[197455]=0;h:{i:{if((g|0)!=1){H[197455]=0;ua(3465,i|0,l|0,k|0,a|0,f+68|0,f- -64|0,f+56|0);g=H[197455];H[197455]=0;if((g|0)==1){break i}g=H[f+56>>2];i=H[g+4>>2]-1|0;H[g+4>>2]=i;if((i|0)==-1){zb[H[H[g>>2]+8>>2]](g)}H[197455]=0;a=ma(3466,b|0,a|0,H[f+68>>2],H[f+64>>2],c|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}Bc(h);Bc(j);xb=f+208|0;return a|0}c=$()|0;_()|0;break f}c=$()|0;_()|0;a=H[f+56>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break f}c=$()|0;_()|0}Bc(h);break b}X()}c=$()|0;_()|0}Bc(j);ea(c|0);X()}function cS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-384|0;xb=f;H[f+376>>2]=37;H[f+380>>2]=0;g=Yl(f+376|1,239897,H[c+4>>2]);H[f+332>>2]=f+336;a=Od();a:{if(g){j=H[c+8>>2];M[f+40>>3]=e;H[f+32>>2]=j;a=Fe(f+336|0,30,a,f+376|0,f+32|0);break a}M[f+48>>3]=e;a=Fe(f+336|0,30,a,f+376|0,f+48|0)}H[f+80>>2]=594;j=Ed(f+320|0,0,f+80|0);i=f+336|0;h=i;b:{c:{d:{if((a|0)>=30){e:{if(g){H[197455]=0;a=va(3442)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}H[f>>2]=H[c+8>>2];H[197455]=0;M[f+8>>3]=e;a=la(3464,f+332|0,a|0,f+376|0,f|0)|0;h=H[197455];H[197455]=0;if((h|0)!=1){break e}break c}H[197455]=0;a=va(3442)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}M[f+16>>3]=e;H[197455]=0;a=la(3464,f+332|0,a|0,f+376|0,f+16|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}}if((a|0)==-1){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)==1){break c}break d}ae(j,H[f+332>>2]);h=H[f+332>>2]}k=a+h|0;l=ef(h,k,c);H[f+68>>2]=594;h=Ed(f+72|0,0,f+68|0);f:{g:{if(H[f+332>>2]==(f+336|0)){a=f+80|0;break g}a=Tb(a<<3);if(!a){H[197455]=0;na(3419);a=H[197455];H[197455]=0;if((a|0)!=1){break d}c=$()|0;_()|0;break f}ae(h,a);i=H[f+332>>2]}H[197455]=0;g=H[c+28>>2];H[f+56>>2]=g;H[g+4>>2]=H[g+4>>2]+1;g=H[197455];H[197455]=0;h:{i:{if((g|0)!=1){H[197455]=0;ua(3474,i|0,l|0,k|0,a|0,f+68|0,f- -64|0,f+56|0);g=H[197455];H[197455]=0;if((g|0)==1){break i}g=H[f+56>>2];i=H[g+4>>2]-1|0;H[g+4>>2]=i;if((i|0)==-1){zb[H[H[g>>2]+8>>2]](g)}H[197455]=0;a=ma(1709,b|0,a|0,H[f+68>>2],H[f+64>>2],c|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break h}Bc(h);Bc(j);xb=f+384|0;return a|0}c=$()|0;_()|0;break f}c=$()|0;_()|0;a=H[f+56>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break f}c=$()|0;_()|0}Bc(h);break b}X()}c=$()|0;_()|0}Bc(j);ea(c|0);X()}function QE(a,b,c){var d=0;d=163632;a:{b:{c:{switch(c-1|0){case 0:d:{e:{b=I[a|0]|I[a+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 1:f:{g:{b=I[a|0]|I[a+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 1:break f;case 0:break g;default:break b}}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 2:if((I[a|0]|I[a+1|0]<<8)!=256){break b}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 3:if((I[a|0]|I[a+1|0]<<8)!=256){break b}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 4:if((I[a|0]|I[a+1|0]<<8)!=256){break b}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 5:if((I[a|0]|I[a+1|0]<<8)!=256){break b}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 6:h:{i:{j:{b=I[a|0]|I[a+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 2:break h;case 1:break i;case 0:break j;default:break b}}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+6|0]|I[a+7|0]<<8;if(!b){break b}break a;case 7:k:{l:{m:{b=I[a|0]|I[a+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 2:break k;case 1:break l;case 0:break m;default:break b}}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;b=(a+2|0)+(((b<<8|b>>>8)&65535)<<1)|0;b=I[b+2|0]|I[b+3|0]<<8?b+4|0:163632;b=I[b|0]|I[b+1|0]<<8;if(!b){break b}break a;case 8:break c;default:break b}}if((I[a|0]|I[a+1|0]<<8)==256){c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?c+a|0:163632;a=I[a+2|0]|I[a+3|0]<<8;d=QE(c,b,(a<<8|a>>>8)&65535)}else{d=163632}}return d}return((b<<8|b>>>8)&65535)+a|0}function Ft(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=O(0),j=0,k=O(0),l=0;d=I[a|0]|I[a+1|0]<<8;if(!d){return 0}d=(d<<8|d>>>8)&65535;e=d>>>0>1?d:1;a:{while(1){g=((f<<3)+a|0)+8|0;d=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);if(O(O(d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))*O(152587890625e-16))==O(0)){break a}f=f+1|0;if((e|0)!=(f|0)){continue}break}return 0}d=0;b:{c:{d:{e=I[a+2|0]|I[a+3|0]<<8;h=(e<<8|e>>>8)&65535;switch(h|0){case 0:break b;case 1:break d;default:break c}}a=(f<<3)+a|0;a=I[a+14|0]|I[a+15|0]<<8;a=((a<<8|a>>>8)&65535)+b|0;a=I[a|0]|I[a+1|0]<<8;return(a<<8|a>>>8)<<16>>16}d=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);j=(d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))+b|0;e:{f:{f=h-1|0;if(!f){break f}d=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);l=(d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))+b|0;d=0;g:{while(1){e=d>>>0>>0?l+(d<<2)|0:163632;e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);if(O(O(e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))*O(152587890625e-16))>=c){break g}d=d+1|0;if((f|0)!=(d|0)){continue}break}d=f}if(!d){break f}d=d-1|0;break e}d=0}a=I[a+2|0]|I[a+3|0]<<8;a=(a<<8|a>>>8)&65535;f=d>>>0>>0;e=d+1|0;h=e>>>0>>0;a=f?(d<<2)+j|0:163632;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);i=O(O(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))*O(152587890625e-16));a=h?(e<<2)+j|0:163632;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);k=O(O(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))*O(152587890625e-16));if(i==k){c=O(0)}else{c=O(O(c-i)/O(k-i))}a=I[g+6|0]|I[g+7|0]<<8;a=((a<<8|a>>>8)&65535)+b|0;b=h?a+(e<<1)|0:163632;b=I[b|0]|I[b+1|0]<<8;a=f?a+(d<<1)|0:163632;a=I[a|0]|I[a+1|0]<<8;c=O(T(O(O(O(c*O((b<<8|b>>>8)<<16>>16))+O(O(O(1)-c)*O((a<<8|a>>>8)<<16>>16)))+O(.5))));if(O(P(c))>>8)&65535;h=d>>>0>1?d:1;d=a;a=I[a+8|0]|I[a+9|0]<<8;a=(d+N((a<<8|a>>>8)&65535,12)|0)+12|0;while(1){d=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);b:{if(!((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))&c)){break b}e=I[a+2|0]|I[a+3|0]<<8;d=e&255;if(!(e&32)&(d>>>7|0)==((H[H[b+16>>2]+40>>2]&-2)!=6|0)){break b}c:{if(d&16){e=H[b+16>>2];d=(d&64)>>>6|0;break c}e=H[b+16>>2];d=(d&64)>>>6^(H[e+40>>2]&-3)==5}i=H[b+8>>2];H[f+16>>2]=H[b+72>>2];if(!Ac(e,i,106086,f+16|0)){break b}d:{e:{f:{if(d){d=H[b+16>>2];Zj(d,583,H[d+20>>2]==1);e=H[b+52>>2];d=H[e+12>>2];H[b+24>>2]=d;e=d+H[e+16>>2]|0;H[b+28>>2]=e;g:{if(!(a>>>0>>0&a>>>0>=d>>>0)){H[b+24>>2]=0;H[b+28>>2]=0;break g}H[b+24>>2]=a;d=e-a|0;e=I[a|0]|I[a+1|0]<<8;e=(e<<8|e>>>8)&65535;H[b+28>>2]=(d>>>0>>0?d:e)+a}H[197455]=0;da(585,a|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}d=H[b+52>>2];e=H[d+12>>2];H[b+24>>2]=e;H[b+28>>2]=e+H[d+16>>2];d=H[b+16>>2];Zj(d,583,H[d+20>>2]==1);break d}e=H[b+52>>2];d=H[e+12>>2];H[b+24>>2]=d;e=d+H[e+16>>2]|0;H[b+28>>2]=e;h:{if(!(a>>>0>>0&a>>>0>=d>>>0)){H[b+24>>2]=0;H[b+28>>2]=0;break h}H[b+24>>2]=a;d=e-a|0;e=I[a|0]|I[a+1|0]<<8;e=(e<<8|e>>>8)&65535;H[b+28>>2]=(d>>>0>>0?d:e)+a}H[197455]=0;da(585,a|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){break e}}a=$()|0;_()|0;c=H[b+52>>2];f=H[c+12>>2];H[b+24>>2]=f;H[b+28>>2]=f+H[c+16>>2];ea(a|0);X()}d=H[b+52>>2];e=H[d+12>>2];H[b+24>>2]=e;H[b+28>>2]=e+H[d+16>>2]}d=H[b+8>>2];e=H[b+16>>2];H[f>>2]=H[b+72>>2];Ac(e,d,106120,f);if(!I[H[b+16>>2]+60|0]){break a}}d=I[a|0]|I[a+1|0]<<8;H[b+72>>2]=H[b+72>>2]+1;a=((d<<8|d>>>8)&65535)+a|0;g=g+1|0;if((h|0)!=(g|0)){continue}break}}xb=f+32|0}function Z7(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;j=xb-16|0;xb=j;d=1;a:{if((c|0)<=0){break a}l=H[a+608>>2];m=H[a+604>>2];while(1){k=H[a+56>>2];e=(k|0)>0;b:{if((k|0)<=0){f=l;g=0;break b}g=0;h=0;d=b;f=l;if((f|0)<=0){break b}while(1){c:{d:{e:{f:{g:{f=I[m|0];switch((f>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}h:{if(g&1){e=I[d|0]|h;F[d|0]=e;f=f-1|0;g=g+1|0;d=d+1|0;e=e&255;break h}e=h<<4|h}g=g+f|0;if(!((f|0)<=0|(k|0)<=(g|0))){i=f-2|0;i=(f>>>0>>0?0:i)+1|0;f=(f-(i&-2)|0)-2|0;h=d;d=i>>>1|0;d=(Nb(h,e,d+1|0)+d|0)+1|0}if((f|0)==-1){d=d-1|0;F[d|0]=I[d|0]&240}h=e&15;break c}e=f>>>4&3;i:{if((e|0)==2){e=d;break i}e=H[(e<<2)+296352>>2]+h|0;h=e&15;j:{if(g&1){i=I[d|0]|h;e=d+1|0;break j}i=e<<4;e=d}g=g+1|0;F[d|0]=i}d=f>>>2&3;k:{if((d|0)==2){d=e;e=g;break k}d=H[(d<<2)+296352>>2]+h|0;h=d&15;l:{if(g&1){i=I[e|0]|h;d=e+1|0;break l}i=d<<4;d=e}F[e|0]=i;e=g+1|0}f=f&3;if((f|0)==2){g=e;break c}g=e+1|0;f=H[(f<<2)+296352>>2]+h|0;h=f&15;if(e&1){F[d|0]=I[d|0]|h;d=d+1|0;break c}F[d|0]=f<<4;break c}e=f>>>3&7;m:{if((e|0)==4){e=d;break m}e=H[(e<<2)+296368>>2]+h|0;h=e&15;n:{if(g&1){i=I[d|0]|h;e=d+1|0;break n}i=e<<4;e=d}F[d|0]=i;g=g+1|0}i=g;d=f&7;if((d|0)==4){d=e;break c}g=i+1|0;d=H[(d<<2)+296368>>2]+h|0;h=d&15;if(i&1){F[e|0]=I[e|0]|h;d=e+1|0;break c}F[e|0]=d<<4;d=e;break c}e=g+1|0;h=f&15;o:{if(g&1){F[d|0]=I[d|0]|h;d=d+1|0;break o}F[d|0]=f<<4}g=e}f=l-1|0;m=m+1|0;e=(g|0)<(k|0);if(l>>>0<2){break b}l=f;if((g|0)<(k|0)){continue}break}}H[a+608>>2]=f;H[a+604>>2]=m;if((g|0)!=(k|0)){b=H[a>>2];c=H[a+628>>2];a=H[a+472>>2];H[j+12>>2]=k;H[j+8>>2]=g;H[j+4>>2]=a;H[j>>2]=e?271413:271945;Pb(c,b,270881,j);d=0;break a}d=H[a+588>>2];b=d+b|0;l=f;c=c-d|0;if((c|0)>0){continue}break}d=1}xb=j+16|0;return d|0}function aba(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;h=xb-32|0;xb=h;p=H[a+52>>2];i=H[a>>2];m=Tb(pg(i));a:{if(!m){Pb(H[i+628>>2],H[i>>2],281887,0);break a}Id(m,0,pg(i));H[h+16>>2]=h+28;Cc(i,322,h+16|0);H[h>>2]=h+24;Cc(i,323,h);b:{c:{d:{e:{f:{g:{h:{switch(J[a+28>>1]-1|0){case 0:case 4:g=J[a+30>>1];if(g>>>0>8){break d}e=1<>1];if(g>>>0>8){break d}e=1<>1];if(g>>>0>8){break d}e=1<>1];if(g>>>0>7){break d}f=1<>2]+c|0)|0;break b}f=0}t=1;g=c-H[h+28>>2]|0}q=1;if(!(!d|!c)){while(1){e=H[h+24>>2];j=H[a+76>>2];e=e-((j+l>>>0)%(e>>>0)|0)|0;o=e+l>>>0>d>>>0?d-l|0:e;r=(N(c,n)<<2)+b|0;e=0;while(1){i:{if(!((Aj(i,m,H[a+80>>2]+e|0,j+l|0,0,0)|0)>=0|!H[a+4>>2])){q=0;break i}j=H[a+76>>2];k=H[h+24>>2];j=N(qg(i),(j+l>>>0)%(k>>>0)|0);k=H[h+28>>2];j:{if(k+e>>>0<=c>>>0){zb[p|0](a,(e<<2)+r|0,e,n,k,o,0,g,j+m|0);break j}s=c-e|0;k=k-s|0;zb[p|0](a,(e<<2)+r|0,e,n,s,o,k,g+k|0,j+m|0)}e=H[h+28>>2]+e|0;if(e>>>0>=c>>>0){break i}j=H[a+76>>2];continue}break}n=(t?o:0-o|0)+n|0;l=l+o|0;if(l>>>0>>0){continue}break}}Kb(m);if(!(f&2)|!d){break a}f=0;while(1){e=(N(c,f)<<2)+b|0;a=(e+(c<<2)|0)-4|0;if(a>>>0>e>>>0){while(1){g=H[e>>2];H[e>>2]=H[a>>2];H[a>>2]=g;a=a-4|0;e=e+4|0;if(a>>>0>e>>>0){continue}break}}f=f+1|0;if((f|0)!=(d|0)){continue}break}}xb=h+32|0;return q|0}function Xda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;u=xb-288|0;xb=u;q=H[a+332>>2];a=H[b+84>>2];b=u;while(1){j=H[a+96>>2];i=G[c+48>>1];k=H[a+160>>2];h=G[c+80>>1];o=H[a+224>>2];m=G[c+112>>1];n=H[a+32>>2];v=G[c+16>>1];r=N(G[c>>1],H[a>>2])<<13|1024;l=N(H[a+192>>2],G[c+96>>1]);s=r+N(l,-11586)|0;g=N(H[a+64>>2],G[c+32>>1]);f=N(H[a+128>>2],G[c+64>>1]);t=g-f|0;H[b+128>>2]=s+N(t,-11586)>>11;w=N(f+g|0,10887);x=N(f,2012);f=r+N(l,5793)|0;l=(w-x|0)+f|0;k=N(h,k);h=N(n,v);n=N(k+h|0,7447);j=N(N(i,j),-10033);i=N(m,o);o=N(i+h|0,3962);m=(n-j|0)+o|0;H[b+256>>2]=l-m>>11;H[b>>2]=m+l>>11;m=s+N(t,5793)|0;h=N(h-(i+k|0)|0,10033);H[b+224>>2]=m-h>>11;H[b+32>>2]=h+m>>11;g=N(g,8875);h=g+(f-w|0)|0;k=N(k-i|0,11409);i=n+(j-k|0)|0;H[b+192>>2]=h-i>>11;H[b+64>>2]=h+i>>11;g=(f-g|0)+x|0;f=o+(j+k|0)|0;H[b+160>>2]=g-f>>11;H[b+96>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;p=p+1|0;if((p|0)!=8){continue}break}a=q+128|0;p=0;b=u;while(1){c=H[(p<<2)+d>>2]+e|0;g=H[b+20>>2];f=H[b+4>>2];o=N(g+f|0,7447);k=N(H[b+12>>2],-10033);h=H[b+28>>2];m=N(h+f|0,3962);n=(o-k|0)+m|0;r=(H[b>>2]<<13)+131072|0;l=H[b+24>>2];q=r+N(l,5793)|0;j=H[b+16>>2];i=H[b+8>>2];v=N(j+i|0,10887);t=N(j,2012);s=q+(v-t|0)|0;F[c|0]=I[a+(n+s>>>18&1023)|0];F[c+8|0]=I[a+(s-n>>>18&1023)|0];f=N(f-(h+g|0)|0,10033);n=r+N(l,-11586)|0;j=i-j|0;l=n+N(j,5793)|0;F[c+1|0]=I[a+(f+l>>>18&1023)|0];F[c+7|0]=I[a+(l-f>>>18&1023)|0];g=N(g-h|0,11409);f=o+(k-g|0)|0;h=N(i,8875);i=h+(q-v|0)|0;F[c+2|0]=I[a+(f+i>>>18&1023)|0];F[c+6|0]=I[a+(i-f>>>18&1023)|0];g=m+(g+k|0)|0;f=t+(q-h|0)|0;F[c+3|0]=I[a+(g+f>>>18&1023)|0];F[c+5|0]=I[a+(f-g>>>18&1023)|0];F[c+4|0]=I[a+(n+N(j,268423870)>>>18&1023)|0];b=b+32|0;p=p+1|0;if((p|0)!=9){continue}break}xb=u+288|0}function Hn(a,b,c,d,e){var f=0,g=0,h=O(0),i=0,j=0,k=0,l=0;H[e>>2]=0;H[d>>2]=0;a:{b:{c:{d:{f=I[a|0]|I[a+1|0]<<8;switch(((f<<8|f>>>8)&65535)-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}c=I[a+2|0]|I[a+3|0]<<8;g=c<<8|c>>>8;f=H[b+92>>2];j=H[f+20>>2];b=H[f+16>>2];c=H[b+28>>2];if(!c){c=kc(b);b=H[f+16>>2]}L[d>>2]=O(O(g<<16>>16)*O(j|0))/O(c>>>0);a=I[a+4|0]|I[a+5|0]<<8;h=O(O((a<<8|(a&65280)>>>8)<<16>>16)*O(H[f+24>>2]));a=H[b+28>>2];if(!a){a=kc(b)}L[e>>2]=h/O(a>>>0);return}f=xb-16|0;xb=f;g=H[b+92>>2];j=H[g+60>>2];i=H[g+56>>2];H[f+4>>2]=0;H[f>>2]=0;e:{f:{k=0;g:{if(!(j|i)){break g}b=I[a+6|0]|I[a+7|0]<<8;H[f+4>>2]=0;l=(b<<8|b>>>8)&65535;b=H[g+80>>2];k=0;if(!(zb[H[b+212>>2]](g,H[g+84>>2],c,l,f+4|0,f,H[b+68>>2])|0)){break g}ci(g,c,f+12|0,f+8|0);b=H[f+4>>2]-H[f+12>>2]|0;H[f+4>>2]=b;H[f>>2]=H[f>>2]-H[f+8>>2];if(i){break f}k=1}c=k;b=I[a+2|0]|I[a+3|0]<<8;h=O(O((b<<8|b>>>8)<<16>>16)*O(H[g+20>>2]));i=H[g+16>>2];b=H[i+28>>2];if(!b){b=kc(i)}h=O(h/O(b>>>0));break e}c=1;h=O(b|0)}L[d>>2]=h;if(!c|!j){a=I[a+4|0]|I[a+5|0]<<8;h=O(O((a<<8|a>>>8)<<16>>16)*O(H[g+24>>2]));b=H[g+16>>2];a=H[b+28>>2];if(!a){a=kc(b)}h=O(h/O(a>>>0))}else{h=O(H[f>>2])}L[e>>2]=h;xb=f+16|0;return}c=I[a+2|0]|I[a+3|0]<<8;j=c<<8|c>>>8;f=H[b+92>>2];i=H[f+20>>2];g=H[f+16>>2];c=H[g+28>>2];if(!c){c=kc(g);g=H[f+16>>2]}L[d>>2]=O(O(j<<16>>16)*O(i|0))/O(c>>>0);c=I[a+4|0]|I[a+5|0]<<8;h=O(O((c<<8|c>>>8)<<16>>16)*O(H[f+24>>2]));c=H[g+28>>2];if(!c){c=kc(g)}L[e>>2]=h/O(c>>>0);if(H[f+68>>2]?1:H[f+56>>2]){c=I[a+6|0]|I[a+7|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+a|0}else{c=163632}c=Vr(c,f,H[b+112>>2]);L[d>>2]=L[d>>2]+O(c|0)}if(H[f+68>>2]?1:H[f+60>>2]){c=I[a+8|0]|I[a+9|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}a=Wr(a,f,H[b+112>>2]);L[e>>2]=L[e>>2]+O(a|0)}}}function lX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=xb-80|0;xb=f;h=1;g=H[a+80>>2];a:{if(!g){break a}g=zb[H[H[g>>2]+32>>2]](g)|0;if(!g){break a}b:{c:{g=zb[H[H[g>>2]+36>>2]](g)|0;switch(g-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:break a;case 0:case 1:case 2:case 6:case 8:case 33:case 34:case 35:case 49:case 50:case 58:case 76:case 94:case 110:break b;default:break c}}if(g){break a}}h=g}hj(f- -64|0,c,b,h);M[f+56>>3]=e|0;M[f+48>>3]=d|0;H[197455]=0;b=f+32|0;H[b+8>>2]=1024;H[b+12>>2]=1024;H[b>>2]=0;H[b+4>>2]=0;c=H[197455];H[197455]=0;d:{e:{if((c|0)!=1){H[f+24>>2]=0;H[f+28>>2]=1072693248;H[f+16>>2]=0;H[f+20>>2]=1072693248;H[197455]=0;H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;Fa(1773,a+8|0,f- -64|0,f+48|0,b|0,f+16|0,f|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}a=H[f>>2];if(a){H[f+4>>2]=a;Kb(a)}if(F[f+75|0]<0){Kb(H[f+64>>2])}xb=f+80|0;return}h=$()|0;_()|0;break d}h=$()|0;_()|0;a=H[f>>2];if(!a){break d}H[f+4>>2]=a;Kb(a)}if(F[f+75|0]<0){Kb(H[f+64>>2])}ea(h|0);X()} +function Zla(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;e=xb-208|0;xb=e;if(!(!H[a>>2]|K[a+128>>2]<=c>>>0)){k=xG(H[a+96>>2],c);F[e+40|0]=0;H[e+32>>2]=0;H[e+36>>2]=0;H[e+60>>2]=0;H[e+52>>2]=0;H[e+56>>2]=0;H[e+76>>2]=0;H[e+80>>2]=0;F[e+84|0]=0;H[e+128>>2]=0;H[e+120>>2]=0;H[e+124>>2]=0;H[e+160>>2]=0;H[e+164>>2]=0;H[e+196>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+68>>2]=0;H[e+72>>2]=0;H[e+152>>2]=0;H[e+156>>2]=0;H[e+188>>2]=0;H[e+192>>2]=0;a:{h=H[a+88>>2];g=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);m=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);b:{c:{if(m>>>0<=c>>>0){H[e+16>>2]=H[40910];c=H[40909];H[e+8>>2]=H[40908];H[e+12>>2]=c;break c}i=I[h+4|0];d:{if(!i){break d}n=i&3;g=(N(c,i)+h|0)+5|0;if(i-1>>>0<3){f=0}else{o=i&252;while(1){j=g;g=g+4|0;f=f+4|0;if((o|0)!=(f|0)){continue}break}f=I[j|0]|I[j+1|0]<<8|(I[j+2|0]<<16|I[j+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24)}if(!n){break d}while(1){f=I[g|0]|f<<8;g=g+1|0;l=l+1|0;if((n|0)!=(l|0)){continue}break}}H[197455]=0;c=pl(h,c);g=H[197455];H[197455]=0;if((g|0)==1){break b}H[e+16>>2]=0;H[e+12>>2]=c;H[e+8>>2]=((N(m+1|0,i)+h|0)+f|0)+4}f=H[(K[a+120>>2]>k>>>0?H[a+124>>2]+N(k,28)|0:163632)+20>>2];c=H[b+68>>2];g=H[b+72>>2];j=H[a+80>>2];l=0;H[197455]=0;ka(652,e+24|0,e+8|0,j|0,f|0);f=H[197455];H[197455]=0;if((f|0)==1){break b}H[e+172>>2]=c;H[e+168>>2]=g;f=H[a+84>>2];H[e+176>>2]=f;F[e+201|0]=0;F[e+202|0]=0;H[e+196>>2]=0;H[e+188>>2]=0;H[e+192>>2]=0;F[e+200|0]=!g|!c?l:(I[f|0]|I[f+1|0]<<8)!=0;H[e+184>>2]=H[(K[a+120>>2]>k>>>0?H[a+124>>2]+N(k,28)|0:163632)+24>>2];H[197455]=0;H[e+4>>2]=b;H[e>>2]=d;g=da(656,e+24|0,e|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){break a}}a=$()|0;_()|0;Pn(e+24|0);ea(a|0);X()}Pn(e+24|0)}xb=e+208|0;return g|0} +function mt(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{f=H[b+4>>2];b:{if(f>>>0>a>>>0){break b}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break b}g=H[b+12>>2];e=g-2|0;H[b+12>>2]=e;if((e|0)<=0){break b}e=I[a|0]|I[a+1|0]<<8;if(((e<<8|e>>>8)&65535)>>>0<2){break b}e=a+4|0;if(e>>>0>>0|d>>>0>>0|d-e>>>0<4){break b}e=g-6|0;H[b+12>>2]=e;if((e|0)<=0){break b}c=1;e=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);g=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(!g){break b}j=g-1|0;a=a+8|0;e=0;while(1){if(a>>>0>>0){return 0}if(a>>>0>d>>>0){return 0}if(d-a>>>0<12){return 0}k=H[b+12>>2];c=k-12|0;H[b+12>>2]=c;if((c|0)<=0){return 0}c=H[b+32>>2];f=H[c+12>>2];H[b+4>>2]=f;i=H[c+16>>2];d=i+f|0;H[b+8>>2]=d;c:{d:{e:{f:{if(e>>>0>=j>>>0){c=f;break f}c=e>>>0>>0?a:0;if(!(f>>>0<=c>>>0&c>>>0>>0)){H[b+4>>2]=0;H[b+8>>2]=0;d=0;break e}H[b+4>>2]=c;h=d-c|0;d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);d=(d>>>0>h>>>0?h:d)+c|0;H[b+8>>2]=d}if(a>>>0>>0){break d}}if(a>>>0>d>>>0){break d}h=d-a|0;if(h>>>0<12){break d}d=k-24|0;H[b+12>>2]=d;if((d|0)<=0){break d}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(c>>>0<13|c>>>0>h>>>0){break d}c=d-c|0;H[b+12>>2]=c;if((c|0)<=0){break d}H[197455]=0;c=lt(a,b);f=H[197455];H[197455]=0;if((f|0)==1){break a}if(c){break c}a=H[b+32>>2];i=H[a+16>>2];f=H[a+12>>2]}H[b+4>>2]=f;H[b+8>>2]=f+i;return 0}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);d=H[b+32>>2];f=H[d+12>>2];H[b+4>>2]=f;d=H[d+16>>2]+f|0;H[b+8>>2]=d;a=(c<<8&16711680|c<<24|(c>>>8&65280|c>>>24))+a|0;c=1;e=e+1|0;if((g|0)!=(e|0)){continue}break}}return c}a=$()|0;_()|0;c=H[b+32>>2];f=H[c+12>>2];H[b+4>>2]=f;H[b+8>>2]=f+H[c+16>>2];ea(a|0);X()}function pr(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;a:{b:{f=f-16|0;if(f){if((f|0)==16){break b}break a}i=H[a+20>>2];f=H[a+16>>2];if((i|0)<=0|(f|0)<=0){break a}h=(((((((((((((((c&1)+(c>>>1&1)|0)+(c>>>2&1)|0)+(c>>>3&1)|0)+(c>>>4&1)|0)+(c>>>5&1)|0)+(c>>>6&1)|0)+(c>>>7&1)|0)+(c>>>8&1)|0)+(c>>>9&1)|0)+(c>>>10&1)|0)+(c>>>11&1)|0)+(c>>>12&1)|0)+(c>>>13&1)|0)+(c>>>14&1)|0)+(c>>>15&1)|0;q=(h+((((((((((((((((d&1)+(d>>>1&1)|0)+(d>>>2&1)|0)+(d>>>3&1)|0)+(d>>>4&1)|0)+(d>>>5&1)|0)+(d>>>6&1)|0)+(d>>>7&1)|0)+(d>>>8&1)|0)+(d>>>9&1)|0)+(d>>>10&1)|0)+(d>>>11&1)|0)+(d>>>12&1)|0)+(d>>>13&1)|0)+(d>>>14&1)|0)+(d>>>15&1)|0)|0)-8|0;r=q+((((((((((((((((e>>>1&1)+(e&1)|0)+(e>>>2&1)|0)+(e>>>3&1)|0)+(e>>>4&1)|0)+(e>>>5&1)|0)+(e>>>6&1)|0)+(e>>>7&1)|0)+(e>>>8&1)|0)+(e>>>9&1)|0)+(e>>>10&1)|0)+(e>>>11&1)|0)+(e>>>12&1)|0)+(e>>>13&1)|0)+(e>>>14&1)|0)+(e>>>15&1)|0)|0;s=8-h|0;j=(f+1|0)/2<<2;l=H[a+56>>2];while(1){h=i-1|0;if((f|0)>0){m=N(h,H[a+52>>2]);n=N(h,j);while(1){k=f-1|0;g=n+(k<<1)|0;o=I[(g|1)+b|0];p=l+(m+N(k,3)|0)|0;g=I[b+g|0];F[p|0]=(g&e)<>>r;F[p+1|0]=(d&g)>>>q;g=f>>>0>1;f=k;if(g){continue}break}}if((i|0)<2){break a}f=H[a+16>>2];i=h;continue}}h=H[a+20>>2];if((h|0)<=0){break a}f=H[a+16>>2];if((f|0)<=0){break a}l=((e>>>0>255)+(e>>>0>65535)|0)+(e>>>0>16777215)|0;m=((d>>>0>255)+(d>>>0>65535)|0)+(d>>>0>16777215)|0;n=((c>>>0>255)+(c>>>0>65535)|0)+(c>>>0>16777215)|0;o=f<<2;g=H[a+56>>2];while(1){c=h-1|0;if((f|0)>0){k=N(c,H[a+52>>2]);i=N(c,o);while(1){d=f-1|0;j=g+(k+N(d,3)|0)|0;e=i+(d<<2)|0;F[j|0]=I[(e+l|0)+b|0];F[j+1|0]=I[(e+m|0)+b|0];F[j+2|0]=I[(e+n|0)+b|0];e=f>>>0>1;f=d;if(e){continue}break}}if((h|0)<2){break a}f=H[a+16>>2];h=c;continue}}}function ek(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;l=1;a:{b:{if(!H[b>>2]){b=c;break b}if(!H[c>>2]){break b}l=0;if(H[c+8>>2]>2]){break a}}d=H[a+20>>2];c:{if(!d){break c}g=H[b+8>>2];d:{while(1){h=H[(N(f,20)+a|0)+36>>2];if((h|0)>=(g|0)){break d}f=f+1|0;if((d|0)!=(f|0)){continue}break}f=d;break c}if(I[(N(f,20)+a|0)+28|0]&8|(!l&(h|0)<=H[c+8>>2]|(g|0)==(h|0))){break a}}d=H[a+4>>2];if(!(!I[d+12|0]|I[b|0]&16)){e:{if(!l){d=Jf(d,(H[b+8>>2]+H[c+8>>2]|0)/2|0);g=Rb((H[c+8>>2]-H[b+8>>2]|0)/2|0,H[a+16>>2]);H[b+12>>2]=d-g;g=d+g|0;d=c;break e}g=Jf(d,H[b+8>>2]);d=b}H[d+12>>2]=g}if(H[b+12>>2]>2]?f:0){break a}d=H[a+20>>2];f:{if(d>>>0<=f>>>0){break f}if(!l){if(H[c+12>>2]<=H[(N(f,20)+a|0)+40>>2]){break f}break a}if(H[b+12>>2]>H[(N(f,20)+a|0)+40>>2]){break a}}h=d+!l|0;if(h>>>0>191){break a}g:{if((d|0)==(f|0)){break g}i=f+1|0;m=d-f|0;h:{if(!(m&1)){g=d;break h}e=a+28|0;j=e+N(h,20)|0;g=d-1|0;e=e+N(g,20)|0;k=H[e+4>>2];H[j>>2]=H[e>>2];H[j+4>>2]=k;H[j+16>>2]=H[e+16>>2];k=H[e+12>>2];H[j+8>>2]=H[e+8>>2];H[j+12>>2]=k;h=h-1|0;m=m-1|0}if((d|0)==(i|0)){break g}j=a+28|0;while(1){i=j+N(g,20)|0;e=i-20|0;k=H[e+4>>2];d=j+N(h,20)|0;H[d>>2]=H[e>>2];H[d+4>>2]=k;H[d+16>>2]=H[e+16>>2];k=H[e+12>>2];H[d+8>>2]=H[e+8>>2];H[d+12>>2]=k;e=i-40|0;i=H[e+4>>2];d=d-20|0;H[d>>2]=H[e>>2];H[d+4>>2]=i;i=H[e+12>>2];H[d+8>>2]=H[e+8>>2];H[d+12>>2]=i;H[d+16>>2]=H[e+16>>2];h=h-2|0;g=g-2|0;m=m-2|0;if(m){continue}break}}d=N(f,20)+a|0;H[d+44>>2]=H[b+16>>2];f=H[b+12>>2];H[d+36>>2]=H[b+8>>2];H[d+40>>2]=f;f=H[b+4>>2];H[d+28>>2]=H[b>>2];H[d+32>>2]=f;H[a+20>>2]=H[a+20>>2]+1;if(l){break a}H[d- -64>>2]=H[c+16>>2];b=H[c+12>>2];H[d+56>>2]=H[c+8>>2];H[d+60>>2]=b;b=H[c+4>>2];H[d+48>>2]=H[c>>2];H[d+52>>2]=b;H[a+20>>2]=H[a+20>>2]+1}}function XE(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=I[a|0]|I[a+1|0]<<8;a:{if(!c){break a}m=(c<<8|c>>>8)&65535;c=H[b+120>>2];g=H[b+100>>2];h=H[g+80>>2];n=H[g+64>>2];c=(c&H[(h+N(n,20)|0)+4>>2])>>>fma(c)|0;b:{if((c|0)!=255){break b}c=255;if(!I[b+143|0]){break b}e=H[g+68>>2];c:{if(e>>>0<2){break c}i=H[g+144>>2]|32;H[g+144>>2]=i;d=-1;c=0;l=e-1|0;if(l>>>0>=3){j=e&-4;while(1){f=H[(N(c,20)+h|0)+8>>2];d=d>>>0>>0?d:f;f=H[(N(c|1,20)+h|0)+8>>2];d=d>>>0>>0?d:f;f=H[(N(c|2,20)+h|0)+8>>2];d=d>>>0>>0?d:f;f=H[(N(c|3,20)+h|0)+8>>2];d=d>>>0>>0?d:f;c=c+4|0;o=o+4|0;if((j|0)!=(o|0)){continue}break}}j=e&3;if(j){while(1){f=H[(N(c,20)+h|0)+8>>2];d=d>>>0>>0?d:f;c=c+1|0;k=k+1|0;if((j|0)!=(k|0)){continue}break}}j=e&1;d:{if(!l){c=0;break d}l=e&-2;c=0;k=0;while(1){e=N(c,20)+h|0;if(H[e+8>>2]!=(d|0)){i=i|32;H[g+144>>2]=i;H[e+4>>2]=H[e+4>>2]|3}e=N(c|1,20)+h|0;if(H[e+8>>2]!=(d|0)){i=i|32;H[g+144>>2]=i;H[e+4>>2]=H[e+4>>2]|3}c=c+2|0;k=k+2|0;if((l|0)!=(k|0)){continue}break}}if(!j){break c}c=N(c,20)+h|0;if(H[c+8>>2]==(d|0)){break c}H[g+144>>2]=i|32;H[c+4>>2]=H[c+4>>2]|3}c=(N(H[b+144>>2],48271)>>>0)%2147483647|0;H[b+144>>2]=c;c=((c>>>0)%(m>>>0)|0)+1|0}c=c-1|0;if(c>>>0>=m>>>0){break a}p=1;a=(c<<1)+a|0;a=I[a+2|0]|I[a+3|0]<<8;g=(a<<8|a>>>8)&65535;c=N(n,20)+h|0;a=J[c+12>>1]|16;if(I[b+140|0]){a=Ye(H[b+108>>2],g)|a&112}G[c+12>>1]=a;a=H[b+100>>2];if(!ec(a,1,1)){break a}b=H[a+64>>2];e:{if(b>>>0>2]){d=H[a+80>>2]+N(b,20)|0;c=H[a+72>>2];b=H[a+84>>2];break e}b=H[a+84>>2];c=H[a+72>>2];d=b+N(c?c-1|0:0,20)|0}b=N(c,20)+b|0;c=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=c;H[b+16>>2]=H[d+16>>2];c=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=c;H[b>>2]=g;H[a+64>>2]=H[a+64>>2]+1;H[a+72>>2]=H[a+72>>2]+1}return p}function wy(a,b){var c=0,d=0,e=0,f=0,g=0;g=a+24|0;c=H[g>>2];a:{if(!c){break a}d=g;while(1){e=K[c+16>>2]>>0;d=e?d:c;c=H[(e<<2)+c>>2];if(c){continue}break}if((d|0)==(g|0)|K[d+16>>2]>b>>>0){break a}e=H[d+20>>2];f=H[a+4>>2];b:{c:{if((f|0)!=H[a+8>>2]){c=0;while(1){d=H[(c<<2)+f>>2];d:{e:{switch((zb[H[H[e>>2]+8>>2]](e)|0)-1|0){case 0:if((e|0)!=H[d+60>>2]){break d}H[d+60>>2]=0;break d;case 1:if((e|0)!=H[d+72>>2]){break d}H[d+72>>2]=0;break d;case 2:if((e|0)!=H[d+64>>2]){break d}H[d+64>>2]=0;break d;case 3:if((e|0)!=H[d+68>>2]){break d}H[d+68>>2]=0;break d;case 4:break e;default:break d}}if((e|0)!=H[d+76>>2]){break d}H[d+76>>2]=0}c=c+1|0;f=H[a+4>>2];if(c>>>0>2]-f>>2>>>0){continue}break}break c}if(!e){break b}}zb[H[H[e>>2]+4>>2]](e)}e=H[g>>2];if(!e){break a}d=g;c=e;while(1){f=K[c+16>>2]>>0;d=f?d:c;c=H[(f<<2)+c>>2];if(c){continue}break}if((d|0)==(g|0)|K[d+16>>2]>b>>>0){break a}c=H[d+4>>2];f:{if(!c){f=H[d+8>>2];if(H[f>>2]==(d|0)){break f}c=d+8|0;while(1){g=H[c>>2];c=g+8|0;f=H[g+8>>2];if((g|0)!=H[f>>2]){continue}break}break f}while(1){f=c;c=H[c>>2];if(c){continue}break}}if(H[a+20>>2]==(d|0)){H[a+20>>2]=f}H[a+28>>2]=H[a+28>>2]-1;pj(e,d);Kb(d)}g:{h:{i:{if(J[a+32>>1]<=b>>>0){break i}j:{k:{g=H[a+36>>2];c=g;d=H[a+40>>2];if((c|0)==(d|0)){break k}c=g;while(1){if(J[c>>1]==(b|0)){break k}c=c+2|0;if((d|0)!=(c|0)){continue}break}break j}if((d|0)!=(c|0)){break i}}if((d|0)!=H[a+44>>2]){G[d>>1]=b;H[a+40>>2]=d+2;return}f=d-g|0;if((f|0)<=-3){break h}d=f>>1;c=d+1|0;e=f>>>0<2147483646?c>>>0>>0?f:c:2147483647;if(e){if((e|0)<0){break g}c=Qb(e<<1)}else{c=0}d=c+(d<<1)|0;G[d>>1]=b;if((f|0)>0){Ob(c,g,f)}H[a+44>>2]=c+(e<<1);H[a+40>>2]=d+2;H[a+36>>2]=c;if(!g){break i}Kb(g)}return}bd(a+36|0);X()}Td(239085);X()}function En(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;if(d){H[d>>2]=0}g=4;a:{while(1){f=i;b:{while(1){c:{if(!g){break c}b=b+1|0;if(b>>>0>2]){break c}e=0;break a}e=4-g|0;i=I[b|0];h=i>>>g&15;if((h|0)==14){o=1;g=e;continue}if(h>>>0>9){break b}if((f|0)>=214748364){n=n+1|0;g=e;continue}break}i=0;g=e;if(!(f|h)){continue}l=l+1|0;i=N(f,10)+h|0;continue}break}g=0;d:{if((h|0)!=10){break d}e:while(1){j=(f|0)<214748364&(m|0)<9;while(1){if(e){b=b+1|0;if(b>>>0>=K[a+8>>2]){e=0;break a}i=I[b|0]}k=4-e|0;h=(i&255)>>>e&15;if(h>>>0>9){e=k;break d}if(!(f|h)){n=n-1|0;f=0;e=k;continue e}e=k;if(!j){continue}break}m=m+1|0;f=N(f,10)+h|0;continue}}f:{g:{h:{if(h-11>>>0<=1){k=0;while(1){if(e){b=b+1|0;if(b>>>0>=K[a+8>>2]){e=0;break a}i=I[b|0]}j=(i&255)>>>e&15;if(j>>>0<=9){p=j+N(g,10)|0;j=(g|0)>1e3;g=j?g:p;k=j?1:k;e=4-e|0;continue}break}if(!f){e=0;break a}a=(h|0)==12;if(k){break g}e=a?0-g|0:g;break h}e=0;if(!f){break a}}a=(c+n|0)+e|0;if(d){a=a+l|0;b=l+m|0;if((b|0)<=5){if((f|0)>=32768){e=dc(f,10);H[d>>2]=(a-b|0)+1;break a}i:{j:{if((a|0)<=0){break j}c=(a|0)<5?a:5;e=c-b|0;if((e|0)<=0){break j}a=a-c|0;f=N(H[(e<<2)+27536>>2],f);if((f|0)<32768){break i}f=(f>>>0)/10|0;a=a+1|0;break i}a=a-b|0}H[d>>2]=a;e=f<<16;break a}b=b<<2;c=H[b+27516>>2];if(((f|0)/(c|0)|0)>=32768){e=dc(f,H[b+27520>>2]);H[d>>2]=a-4;break a}e=dc(f,c);H[d>>2]=a-5;break a}e=2147483647;b=a+l|0;if((b|0)>5){break a}if((b|0)<-5){break f}if((b|0)>=0){a=m-a|0}else{f=(f|0)/H[27536-(b<<2)>>2]|0;a=l+m|0}c=(a|0)==10;b=c?(f|0)/10|0:f;a=c?9:a;if((a|0)>0){e=0;a=H[(a<<2)+27536>>2];if(((b|0)/(a|0)|0)>32767){break a}e=dc(b,a);break a}a=N(b,H[27536-(a<<2)>>2]);e=(a|0)>32767?2147483647:a<<16;break a}e=2147483647;if(!a){break a}}e=0}return o?0-e|0:e}function ND(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;i=xb+-64|0;xb=i;H[i+12>>2]=0;m=H[h+556>>2];k=H[g>>2];j=H[k>>2];H[i+28>>2]=0;H[i+32>>2]=0;H[i+36>>2]=0;H[i+40>>2]=0;H[i+20>>2]=0;H[i+24>>2]=0;H[i+48>>2]=a;H[i+44>>2]=f;H[i+52>>2]=0;H[i+16>>2]=k;l=(f|0)==12288|(f|0)==16384;n=l?513:96;k=Ub(j,4,0,n,0,i+60|0);H[i+32>>2]=k;a:{b:{if(!H[i+60>>2]){H[i+36>>2]=k;H[i+40>>2]=n;break b}if(k){zb[H[j+8>>2]](j,k)}H[i+32>>2]=0;j=H[i+60>>2];if(j){break a}}Nb(a+24|0,0,160);H[a+156>>2]=8720;H[a+60>>2]=65536;H[a+44>>2]=2;H[a+48>>2]=65536;H[a+32>>2]=-6553600;H[a+36>>2]=3276800;H[a+184>>2]=l?513:48;H[a+172>>2]=65535;H[a+136>>2]=65535;H[a+128>>2]=65535;H[a+132>>2]=65535;H[a+16>>2]=65535;H[a+20>>2]=65535;H[a+8>>2]=65535;H[a+12>>2]=65535;H[a>>2]=65535;H[a+4>>2]=65535;c:{d:{if(!H[b+12>>2]){j=bc(d,H[b+20>>2]);if(j){break a}j=Ke(d,H[b+24>>2],i+12|0);if(j){break a}c=H[b+24>>2];H[i+60>>2]=c;break d}j=xn(b,c,i+12|0,i+60|0);if(j){break c}c=H[i+60>>2]}j=H[i+12>>2];j=xE(i+16|0,j,j?c+j|0:0)}e:{if(H[b+12>>2]){if(H[b+32>>2]){break e}b=H[b>>2]}else{b=d}nd(b,i+12|0)}if(j){break a}j=0;if(H[a+132>>2]!=65535){break a}j=EE(g,a,0,0);if(j){break a}f:{if((f|0)==12288|(f|0)==16384){break f}f=H[H[h+128>>2]+60>>2];g:{if((f|0)==-1){b=H[h+96>>2];f=H[b+68>>2];H[a+648>>2]=f;if(!f){break g}while(1){f=zb[H[m+20>>2]](f)|0;H[b+68>>2]=f;if((f|0)<0){continue}break}break g}H[a+648>>2]=f;if(!f){break g}while(1){f=zb[H[m+20>>2]](f)|0;H[H[h+128>>2]+60>>2]=f;if((f|0)<0){continue}break}}if(H[a+648>>2]){break f}H[a+648>>2]=H[a+532>>2]}b=H[a+536>>2];if(!b){j=0;break a}j=bc(d,H[a+116>>2]+(b+e|0)|0);if(j){break a}b=a+608|0;j=Th(b,d,1,l);if(j){break a}j=Ar(b,a+644|0,0,0)}a=H[H[i+16>>2]>>2];b=H[i+32>>2];if(b){zb[H[a+8>>2]](a,b)}xb=i- -64|0;return j}function Fha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=xb-80|0;xb=e;d=e+72|0;H[d>>2]=0;a:{if(!vr(d,a,b)){break a}b:{c:{d:{switch(H[d>>2]-10|0){case 0:case 11:if((c|0)!=24){break a}c=Qb(28);H[197455]=0;da(1635,c|0,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){a=$()|0;_()|0;Kb(c);ea(a|0);X()}zb[H[H[c>>2]+20>>2]](c,a,b)|0;a=e+8|0;zb[H[H[c>>2]+48>>2]](a,c,0,0);H[197455]=0;d=a;a=F[e+19|0];b=(a|0)<0;ka(946,e+56|0,(b?H[e+8>>2]:d)|0,(b?H[e+12>>2]:a&255)|0,0);a=H[197455];H[197455]=0;e:{f:{if((a|0)!=1){a=H[H[c>>2]+12>>2];H[197455]=0;aa(a|0,c|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;f=aa(899,12)|0;a=H[197455];H[197455]=0;if((a|0)==1){break f}F[f+8|0]=1;H[f>>2]=0;H[f+4>>2]=0;H[197455]=0;b=I[e+67|0];a=b<<24>>24;b=(a|0)<0?H[e+60>>2]:b;c=aa(929,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}H[f+4>>2]=b;H[f>>2]=c;d=c;c=H[e+56>>2];a=(a|0)<0;Ob(d,a?c:e+56|0,b);if(a){Kb(c)}if(F[e+19|0]>=0){break a}Kb(H[e+8>>2]);break a}f=$()|0;_()|0;break e}f=$()|0;_()|0;if(F[e+67|0]>=0){break e}Kb(H[e+56>>2])}if(F[e+19|0]>=0){break c}Kb(H[e+8>>2]);ea(f|0);X();default:break d}}d=e+8|0;H[d>>2]=0;H[d+4>>2]=0;F[d+40|0]=0;H[d+32>>2]=0;H[d+36>>2]=-1074790400;F[d+21|0]=0;F[d+22|0]=0;F[d+23|0]=0;F[d+24|0]=0;F[d+25|0]=0;F[d+26|0]=0;F[d+27|0]=0;F[d+28|0]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[197455]=0;la(947,d|0,a|0,b|0,c|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){g:{H[e+56>>2]=0;H[197455]=0;H[e+4>>2]=0;a=la(945,d|0,e+56|0,e+4|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(!a){break b}H[197455]=0;f=aa(899,12)|0;a=H[197455];H[197455]=0;if((a|0)==1){break g}F[f+8|0]=0;H[f>>2]=H[e+56>>2];H[f+4>>2]=H[e+4>>2];id(d);break a}}f=$()|0;_()|0;id(d)}ea(f|0);X()}id(d)}xb=e+80|0;return f|0}function Zea(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;a:{if((d|0)<=0){break a}i=H[a+112>>2];h=H[a+480>>2];g=H[a+120>>2];if((g|0)<=0){while(1){Mc(H[(e<<2)+c>>2],i);H[h+84>>2]=!H[h+84>>2];e=e+1|0;if((e|0)!=(d|0)){continue}break a}}r=i+1|0;if(i){x=H[a+332>>2];p=0-g|0;u=i-1|0;y=N(g,u);while(1){a=s<<2;v=a+c|0;Mc(H[v>>2],i);z=a+b|0;l=0;while(1){m=H[z>>2]+l|0;e=H[v>>2];b:{if(H[h+84>>2]){f=H[((l<<2)+h|0)+68>>2]+(r<<1)|0;e=e+u|0;m=m+y|0;t=-1;a=p;break b}f=H[((l<<2)+h|0)+68>>2];t=1;a=g}q=a;a=l<<2;A=H[a+H[h+16>>2]>>2];B=H[a+H[h+24>>2]>>2];n=0;a=0;k=i;j=0;while(1){o=(t<<1)+f|0;n=I[(I[m|0]+((G[o>>1]+n|0)+8>>4)|0)+x|0];w=I[n+B|0];F[e|0]=w+I[e|0];C=f;f=n-I[A+w|0]|0;G[C>>1]=N(f,3)+j;n=N(f,7);j=N(f,5)+a|0;e=e+t|0;m=m+q|0;a=f;f=o;k=k-1|0;if(k){continue}break}G[f>>1]=j;l=l+1|0;if((g|0)!=(l|0)){continue}break}H[h+84>>2]=!H[h+84>>2];s=s+1|0;if((s|0)!=(d|0)){continue}break}break a}p=g&-4;i=g&3;q=g-1|0;b=0;while(1){Mc(H[(b<<2)+c>>2],0);o=H[h+84>>2];c:{if(o){j=0;e=0;a=0;if(q>>>0>=3){while(1){k=r<<1;f=h+68|0;g=e<<2;G[k+H[f+g>>2]>>1]=0;G[k+H[f+(g|4)>>2]>>1]=0;G[k+H[f+(g|8)>>2]>>1]=0;G[k+H[f+(g|12)>>2]>>1]=0;e=e+4|0;a=a+4|0;if((p|0)!=(a|0)){continue}break}}if(!i){break c}while(1){G[H[((e<<2)+h|0)+68>>2]+(r<<1)>>1]=0;e=e+1|0;j=j+1|0;if((i|0)!=(j|0)){continue}break}break c}f=0;e=0;j=0;if(q>>>0>=3){while(1){a=h+68|0;g=e<<2;G[H[a+g>>2]>>1]=0;G[H[a+(g|4)>>2]>>1]=0;G[H[a+(g|8)>>2]>>1]=0;G[H[a+(g|12)>>2]>>1]=0;e=e+4|0;j=j+4|0;if((p|0)!=(j|0)){continue}break}}if(!i){break c}while(1){G[H[((e<<2)+h|0)+68>>2]>>1]=0;e=e+1|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}}H[h+84>>2]=!o;b=b+1|0;if((d|0)!=(b|0)){continue}break}}}function Yh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-48|0;xb=c;H[a>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=kd(b);F[c+40|0]=1;H[c+36>>2]=d;b=dd(b,1196643650);if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=b;H[c+32>>2]=b;a:{b:{c:{d:{e:{while(1){F[c+24|0]=e;e=H[d+12>>2];H[c+4>>2]=e;f=H[d+16>>2];H[c+8>>2]=f+e;H[c+28>>2]=0;if(f>>>0<=67108862){f=f<<6;f=f>>>0>16384?f:16384;f=f>>>0<1073741823?f:1073741823}else{f=1073741823}H[c+12>>2]=f;H[c+20>>2]=0;H[c>>2]=0;if(!e){Wb(d);H[c+32>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;break a}f=sF(e,c);d=H[c+28>>2];f:{if(f){if(!d){break f}H[c+28>>2]=0;d=sF(e,c);e=H[c+28>>2];Wb(H[c+32>>2]);H[c+32>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;if(!d){break b}if(!e){break e}break b}if(I[c+24|0]|!d){break d}f=ve(b);H[c+4>>2]=f;H[c+8>>2]=f+H[b+16>>2];d=H[c+32>>2];e=1;if(f){continue}break c}break}Wb(H[c+32>>2]);H[c+32>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}break a}d=H[c+32>>2]}Wb(d);H[c+32>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0}Wb(b);b=163632}d=b;H[a>>2]=b;b=b?b:163632;b=K[b+16>>2]<10?163632:H[b+12>>2];e=I[b+8|0]|I[b+9|0]<<8;if(e){b=b+((e<<8|e>>>8)&65535)|0}else{b=163632}b=I[b|0]|I[b+1|0]<<8;b=(b<<8|b>>>8)&65535;H[a+4>>2]=b;e=oc(b,24);H[a+8>>2]=e;if(!e){H[a+4>>2]=0;Wb(d);H[a>>2]=0;d=163632;H[a>>2]=163632;b=H[a+4>>2]}g:{if(!b){break g}b=0;while(1){f=163632;e=163632;h=H[a+8>>2]+N(b,24)|0;d=d?d:163632;d=K[d+16>>2]<10?163632:H[d+12>>2];g=I[d+8|0]|I[d+9|0]<<8;if(g){e=((g<<8|g>>>8)&65535)+d|0}d=I[e|0]|I[e+1|0]<<8;h:{if(((d<<8|d>>>8)&65535)>>>0<=b>>>0){break h}d=(b<<1)+e|0;d=I[d+2|0]|I[d+3|0]<<8;if(!d){break h}f=((d<<8|d>>>8)&65535)+e|0}vF(h,f);b=b+1|0;if(b>>>0>=K[a+4>>2]){break g}d=H[a>>2];continue}}xb=c+48|0}function v0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-96|0;xb=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(!H[a+80>>2]){break i}vi(e+80|0,a,d,0);c=I[e+91|0];b=c<<24>>24;if((b|0)<0?H[e+84>>2]:c){H[197455]=0;b=ca(1762,e+32|0,404840,e+80|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break h}H[e+56>>2]=b;H[197455]=0;H[e+60>>2]=1;b=H[e+60>>2];H[e+8>>2]=H[e+56>>2];H[e+12>>2]=b;d=da(1763,e- -64|0,e+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[e+55|0]<0){Kb(H[e+44>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ba(1771,a|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,d|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[e+32>>2]=b;H[e+36>>2]=4;H[e+40>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+16>>2]=0;F[e+27|0]=0;H[197455]=0;H[e+16>>2]=0;ka(1767,a|0,e+32|0,d|0,e+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}b=H[d>>2];if(b){a=H[d+4>>2];if((b|0)==(a|0)){a=b}else{while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}c=a-24|0;if(F[a-13|0]<0){Kb(H[c>>2])}a=c;if((b|0)!=(a|0)){continue}break}a=H[d>>2]}H[d+4>>2]=b;Kb(a)}b=I[e+91|0]}if(b<<24>>24>=0){break i}Kb(H[e+80>>2])}xb=e+96|0;return}a=$()|0;_()|0;break b}a=$()|0;_()|0;Vb(e+32|0);break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+43|0]>=0){break c}Kb(H[e+32>>2])}yc(d)}if(F[e+91|0]<0){Kb(H[e+80>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Aj(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;if(H[a+8>>2]==1){Pb(H[a+628>>2],H[a>>2],280658,0);return-1}if(!(I[a+13|0]&4)){Pb(H[a+628>>2],H[a>>2],280853,0);return-1}h=xb+-64|0;xb=h;g=H[a+56>>2];a:{b:{if(g>>>0<=c>>>0){i=H[a>>2];j=H[a+628>>2];H[h+52>>2]=g-1;H[h+48>>2]=c;Pb(j,i,270188,h+48|0);break b}g=H[a+60>>2];if(g>>>0<=d>>>0){i=H[a>>2];j=H[a+628>>2];H[h+36>>2]=g-1;H[h+32>>2]=d;Pb(j,i,271004,h+32|0);break b}g=H[a- -64>>2];if(g>>>0<=e>>>0){i=H[a>>2];j=H[a+628>>2];H[h+20>>2]=g-1;H[h+16>>2]=e;Pb(j,i,271712,h+16|0);break b}g=1;if(J[a+138>>1]!=2){break a}i=J[a+98>>1];if(i>>>0>f>>>0){break a}g=H[a>>2];j=H[a+628>>2];H[h+4>>2]=i-1;H[h>>2]=f;Pb(j,g,272261,h)}g=0}xb=h- -64|0;if(!g){return-1}i=H[a+72>>2];h=1;g=H[a+68>>2];if((g|0)==-1){g=H[a+56>>2]}i=(i|0)==-1?H[a+60>>2]:i;c:{d:{if(!g|!i){break d}l=H[a- -64>>2];j=H[a+76>>2];j=(j|0)==-1?l:j;if(!j){break d}h=0;k=H[a+56>>2];if(k>>>0<0-g>>>0){m=((g+k|0)-1>>>0)/(g>>>0)|0}k=H[a+60>>2];if(k>>>0<0-i>>>0){h=((i+k|0)-1>>>0)/(i>>>0)|0}k=0;k=0-j>>>0>l>>>0?((j+l|0)-1>>>0)/(j>>>0)|0:k;e=(l|0)==1?0:e;f=N(N(N(f,k)+((e>>>0)/(j>>>0)|0)|0,h)+((d>>>0)/(i>>>0)|0)|0,m)+((c>>>0)/(g>>>0)|0)|0;if(J[a+138>>1]==2){break c}h=N(N((e>>>0)/(j>>>0)|0,h)+((d>>>0)/(i>>>0)|0)|0,m)+((c>>>0)/(g>>>0)|0)|0}f=h}c=f;e=b;f=xb-16|0;xb=f;e:{if(H[a+8>>2]==1){Pb(H[a+628>>2],H[a>>2],280658,0);b=-1;break e}if(!(I[a+13|0]&4)){Pb(H[a+628>>2],H[a>>2],280853,0);b=-1;break e}b=H[a+180>>2];if(b>>>0<=c>>>0){d=H[a>>2];a=H[a+628>>2];H[f+4>>2]=b;H[f>>2]=c;Pb(a,d,274660,f);b=-1;break e}d=H[a+508>>2];b=-1;if(!xB(a,c)){break e}if(!(zb[H[a+556>>2]](a,e,d,(c>>>0)/K[a+176>>2]&65535)|0)){break e}zb[H[a+652>>2]](a,e,d);b=d}xb=f+16|0;return b|0}function QF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{i=H[b+4>>2];b:{if(i>>>0>a>>>0){break b}f=H[b+8>>2];if(f>>>0>>0|f-a>>>0<20){break b}e=H[b+12>>2];c=e-20|0;H[b+12>>2]=c;if((I[a|0]|I[a+1|0]<<8)!=256|(c|0)<=0){break b}c=I[a+12|0]|I[a+13|0]<<8;h=(c<<8|c>>>8)&65535;if((h|0)!=H[b+36>>2]){break b}c=a+8|0;if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<4){break b}g=I[a+4|0]|I[a+5|0]<<8;j=I[a+6|0]|I[a+7|0]<<8;e=e-24|0;H[b+12>>2]=e;if((e|0)<=0){break b}k=F[c|0];if((k|0)<0){break b}c=N((j<<8|j>>>8)&65535,(g<<8|g>>>8)&65535);if(c>>>0>2147483646){break a}c:{if(!c){break c}d=(I[a+11|0]|(I[a+9|0]<<16|(k&255)<<24|I[a+10|0]<<8))+a|0;if(d>>>0>>0|d>>>0>f>>>0){break a}c=c<<1;if(c>>>0>f-d>>>0){break a}e=e-c|0;H[b+12>>2]=e;if((e|0)>0){break c}break a}c=a+20|0;d:{e:{g=(I[a+14|0]|I[a+15|0]<<8)&256;if(g){if(c>>>0>>0|c>>>0>f>>>0){break a}d=f-c|0;c=(h<<2)+4|0;if(d>>>0>=c>>>0){break e}break a}if(c>>>0>>0|c>>>0>f>>>0){break a}d=f-c|0;c=(h<<1)+2|0;if(d>>>0>>0){break a}e=e-c|0;H[b+12>>2]=e;if((e|0)>0){break d}break a}e=e-c|0;H[b+12>>2]=e;d=0;if((e|0)<=0){break b}}c=a+20|0;f:{if(g){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);g=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);c=c+(h<<2)|0;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);break f}d=I[c|0]|I[c+1|0]<<8;g=((d<<8|d>>>8)&65535)<<1;c=c+(h<<1)|0;c=I[c|0]|I[c+1|0]<<8;c=((c<<8|c>>>8)&65535)<<1}h=c-g|0;if((h|0)==-1){break a}d=1;if((c|0)==(g|0)){break b}c=a;a=I[a+16|0]|I[a+17|0]<<8|(I[a+18|0]<<16|I[a+19|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=(a?c+a|0:163632)+g|0;if(a>>>0>>0|a>>>0>f>>>0){break a}d=0;if(h>>>0>f-a>>>0){break b}a=e-h|0;H[b+12>>2]=a;d=(a|0)>0}return d}return 0}function Lca(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=H[a+420>>2];if(b){b=H[a>>2];H[b+20>>2]=49;zb[H[b>>2]](a)}a:{if(H[a+264>>2]){b=H[a+360>>2];if(!H[a+368>>2]){if(!b){H[d+4>>2]=1371;break a}H[d+4>>2]=1372;break a}if(!b){H[d+4>>2]=1373;break a}H[d+4>>2]=1374;break a}H[d+4>>2]=1375}if(H[a+288>>2]>0){b=0;while(1){f=b<<2;g=H[(f+a|0)+292>>2];if(!(H[a+360>>2]|H[a+368>>2])){e=H[g+20>>2];if(e>>>0>=16){c=H[a>>2];H[c+24>>2]=e;H[c+20>>2]=50;zb[H[H[a>>2]>>2]](a)}e=(e<<2)+d|0;c=H[e+76>>2];if(!c){c=zb[H[H[a+4>>2]>>2]](a,1,64)|0;H[e+76>>2]=c}F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+56|0]=0;F[c+57|0]=0;F[c+58|0]=0;F[c+59|0]=0;F[c+60|0]=0;F[c+61|0]=0;F[c+62|0]=0;F[c+63|0]=0;F[c+48|0]=0;F[c+49|0]=0;F[c+50|0]=0;F[c+51|0]=0;F[c+52|0]=0;F[c+53|0]=0;F[c+54|0]=0;F[c+55|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+42|0]=0;F[c+43|0]=0;F[c+44|0]=0;F[c+45|0]=0;F[c+46|0]=0;F[c+47|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;c=d+f|0;H[c+52>>2]=0;H[c+36>>2]=0}if(H[a+364>>2]){e=H[g+24>>2];if(e>>>0>=16){c=H[a>>2];H[c+24>>2]=e;H[c+20>>2]=50;zb[H[H[a>>2]>>2]](a)}e=(e<<2)+d|0;c=H[e+140>>2];if(!c){c=zb[H[H[a+4>>2]>>2]](a,1,256)|0;H[e+140>>2]=c}Nb(c,0,256)}b=b+1|0;if((b|0)>2]){continue}break}}H[d+28>>2]=11;H[d+32>>2]=-1;H[d+20>>2]=0;H[d+24>>2]=0;H[d+12>>2]=0;H[d+16>>2]=65536;a=H[a+236>>2];H[d+72>>2]=0;H[d+68>>2]=a}function G0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-96|0;xb=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(!H[a+80>>2]){break i}vi(c+80|0,a,0,0);d=I[c+91|0];b=d<<24>>24;if((b|0)<0?H[c+84>>2]:d){H[197455]=0;b=ca(1762,c+32|0,404840,c+80|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break h}H[c+56>>2]=b;H[197455]=0;H[c+60>>2]=1;b=H[c+60>>2];H[c+8>>2]=H[c+56>>2];H[c+12>>2]=b;e=da(1763,c- -64|0,c+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[c+55|0]<0){Kb(H[c+44>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}H[197455]=0;a=a+8|0;ba(1770,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ba(1771,a|0,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c+32>>2]=b;H[c+36>>2]=4;H[c+40>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[c+27|0]=0;H[197455]=0;H[c+16>>2]=0;ka(1767,a|0,c+32|0,e|0,c+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}b=H[e>>2];if(b){a=H[e+4>>2];if((b|0)==(a|0)){a=b}else{while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}d=a-24|0;if(F[a-13|0]<0){Kb(H[d>>2])}a=d;if((b|0)!=(a|0)){continue}break}a=H[e>>2]}H[e+4>>2]=b;Kb(a)}b=F[c+91|0]}if(b<<24>>24>=0){break i}Kb(H[c+80>>2])}xb=c+96|0;return}a=$()|0;_()|0;break b}a=$()|0;_()|0;Vb(c+32|0);break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+43|0]>=0){break c}Kb(H[c+32>>2])}yc(e)}if(F[c+91|0]<0){Kb(H[c+80>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function T9(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;e=xb-48|0;xb=e;a:{if(!fc(b,10266)){b:{if(d){b=Pd(c,e+12|0);c:{d=H[e+12>>2];d:{if(I[d|0]!=44|(c|0)==(d|0)){break d}d=d+1|0;l=e,m=Pd(d,e+12|0),H[l+20>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break d}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+24>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break d}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+28>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break d}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+32>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break d}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+36>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break d}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+40>>2]=m;c=H[e+12>>2];if(I[c|0]!=44|(c|0)==(d|0)){break d}d=c+1|0;l=e,m=Pd(d,e+12|0),H[l+44>>2]=m;f=H[e+12>>2];if((I[f|0]|32)==32){break c}}f=6;break a}c=e+16|0;if((d|0)!=(f|0)){break b}f=6;break a}b=H[c>>2]}f=6;if((b|0)<0){break a}d=H[c+8>>2];if((d|0)<0){break a}g=H[c+16>>2];if((g|0)<0){break a}h=H[c+24>>2];if((h|0)<0){break a}i=H[c+4>>2];if((i|0)<0){break a}j=H[c+12>>2];if((j|0)<0){break a}k=H[c+20>>2];if((k|0)<0){break a}c=H[c+28>>2];if((c|0)<0|(b|0)>(d|0)|((d|0)>(g|0)|g>>>0>h>>>0)){break a}if(i>>>0>500|j>>>0>500|(k>>>0>500|c>>>0>500)){break a}H[a+60>>2]=h;H[a+48>>2]=j;H[a+36>>2]=b;H[a- -64>>2]=c;H[a+56>>2]=k;H[a+52>>2]=g;H[a+44>>2]=d;H[a+40>>2]=i;f=0;break a}if(!fc(b,10438)){if(d){f=6;if(fc(c,10589)){break a}H[a+28>>2]=1;f=0;break a}f=7;if(H[c>>2]!=1){break a}H[a+28>>2]=1;f=0;break a}if(!fc(b,10703)){if(d){if(!Pd(c,0)){F[a+32|0]=0;break a}F[a+32|0]=1;break a}F[a+32|0]=I[c|0];break a}f=12;if(fc(b,10830)){break a}f=0;e:{if(d){b=Pd(c,0);break e}b=H[c>>2]}H[a+68>>2]=(b|0)>0?b:0}xb=e+48|0;return f|0}function YK(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;d=xb-16|0;xb=d;H[a+788>>2]=0;H[a+792>>2]=0;g=a+796|0;H[g>>2]=0;H[g+4>>2]=0;h=a+788|0;a:{b:{c:{d:{if(!(zb[H[a+516>>2]](a,1128418371,b,d+12|0)|0)){c=2;break d}c=1;if(!(zb[H[a+516>>2]](a,1161972803,b,d+12|0)|0)){break d}if(!(zb[H[a+516>>2]](a,1651273571,b,d+12|0)|0)){break d}c=zb[H[a+516>>2]](a,1935829368,b,d+12|0)|0;if(c){break c}c=3}H[g>>2]=c;if(K[d+12>>2]<8){c=3;break c}i=a+800|0;k=H[b+8>>2];e:{f:{g:{h:{i:{c=H[g>>2];switch(c-1|0){case 2:break h;case 0:case 1:break i;default:break f}}c=Ke(b,H[d+12>>2],h);if(c){break c}f=H[d+12>>2];H[a+792>>2]=f;c=H[a+788>>2];e=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);j=I[c+1|0]<<16|I[c|0]<<24;if(!((j|0)==131072|(j|0)==196608)){c=I[c+2|0]|I[c+3|0]<<8;if(((c<<8|c>>>8|256)&65535)!=768){break e}}c=3;e=e<<8&16711680|e<<24|(e>>>8&65280|e>>>24);if(e>>>0>65535){break c}if(f>>>0>=(N(e,48)|8)>>>0){break g}e=(f-8>>>0)/48|0;break g}c=Jc(b,8);if(c){break c}c=Tc(b);f=Tc(b);e=de(b);wc(b);if(!c){break e}if((f&65533)!=1){c=3;break c}c=3;if(e>>>0>65535){break c}f=H[d+12>>2];c=bc(b,H[b+8>>2]-8|0);if(c){break c}e=f>>>0<(e<<2)+8>>>0?f-8>>>2|0:e;c=(e<<2)+8|0;H[a+792>>2]=c;c=Ke(b,c,h);if(c){break c}}H[a+800>>2]=e;c=H[g>>2]}H[a+860>>2]=0;H[a+864>>2]=0;j:{k:{l:{switch(c|0){case 3:H[a+860>>2]=k;b=H[d+12>>2];break k;case 0:break b;default:break l}}m:{if(!(zb[H[a+516>>2]](a,1128416340,b,d+8|0)|0)){break m}if(!(zb[H[a+516>>2]](a,1161970772,b,d+8|0)|0)){break m}if(!(zb[H[a+516>>2]](a,1650745716,b,d+8|0)|0)){break m}b=H[a+864>>2];break j}H[a+860>>2]=H[b+8>>2];b=H[d+8>>2]}H[a+864>>2]=b}c=0;if(b){break a}break b}c=2}if(H[h>>2]){nd(b,h)}H[a+792>>2]=0;i=g}H[i>>2]=0}xb=d+16|0;return c|0}function yF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{f=H[b+4>>2];b:{if(f>>>0>a>>>0){break b}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<4){break b}g=H[b+12>>2];c=g-4|0;H[b+12>>2]=c;if(!(I[a+1|0]<<16|I[a|0]<<24)|(c|0)<=0){break b}c=a+4|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<4){break b}c=g-8|0;H[b+12>>2]=c;if((c|0)<=0){break b}e=1;c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(!i){break b}k=i-1|0;a=a+8|0;while(1){if(a>>>0>>0){return 0}if(a>>>0>d>>>0){return 0}if(d-a>>>0<8){return 0}l=H[b+12>>2];e=l-8|0;H[b+12>>2]=e;if((e|0)<=0){return 0}d=H[b+32>>2];e=H[d+12>>2];H[b+4>>2]=e;j=H[d+16>>2];f=j+e|0;H[b+8>>2]=f;c:{d:{e:{f:{if(h>>>0>=k>>>0){d=e;break f}d=h>>>0>>0?a:0;if(!(e>>>0<=d>>>0&d>>>0>>0)){H[b+4>>2]=0;H[b+8>>2]=0;f=0;break e}H[b+4>>2]=d;g=f-d|0;c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);f=(c>>>0>g>>>0?g:c)+d|0;H[b+8>>2]=f}if(a>>>0>>0){break d}}if(a>>>0>f>>>0){break d}d=f-a|0;if(d>>>0<8){break d}g=l-16|0;H[b+12>>2]=g;if((g|0)<=0){break d}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(c>>>0<8|c>>>0>d>>>0){break d}d=g-c|0;H[b+12>>2]=d;if((d|0)<=0){break d}H[197455]=0;d=wF(a,b);e=H[197455];H[197455]=0;if((e|0)==1){break a}if(d){break c}a=H[b+32>>2];j=H[a+16>>2];e=H[a+12>>2]}H[b+4>>2]=e;H[b+8>>2]=e+j;return 0}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);e=H[b+32>>2];f=H[e+12>>2];H[b+4>>2]=f;d=H[e+16>>2]+f|0;H[b+8>>2]=d;a=(c<<8&16711680|c<<24|(c>>>8&65280|c>>>24))+a|0;e=1;h=h+1|0;if((i|0)!=(h|0)){continue}break}}return e}d=$()|0;_()|0;e=H[b+32>>2];a=H[e+12>>2];H[b+4>>2]=a;H[b+8>>2]=a+H[e+16>>2];ea(d|0);X()}function s8(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;c=H[a+584>>2];a:{if(I[a+13|0]&4){f=H[a+72>>2];d=H[a+68>>2];e=qg(a);break a}d=H[a+60>>2]-H[a+472>>2]|0;e=H[a+100>>2];f=d>>>0>>0?d:e;d=H[a+56>>2];e=BB(a)}H[c+840>>2]=e;b:{if(!b){e=d;break b}if(J[a+138>>1]!=2){e=d;break b}e=0;g=J[c+834>>1];if(0-g>>>0>d>>>0){e=((d+g|0)-1>>>0)/(g>>>0)|0}d=J[c+836>>1];if(0-d>>>0<=f>>>0){f=0;break b}f=((d+f|0)-1>>>0)/(d>>>0)|0}if(!(f>>>0<65536&e>>>0<=65535)){Pb(H[a+628>>2],296336,287513,0);return 0}H[c+32>>2]=f;H[c+28>>2]=e;c:{d:{if(J[a+138>>1]==1){H[c+36>>2]=J[a+98>>1];if(J[c+832>>1]==6){e:{if(H[c+924>>2]==1){H[c+40>>2]=2;d=0;break e}H[c+40>>2]=3;if(J[c+834>>1]==1){d=0;if(J[c+836>>1]==1){break e}}d=1}if(!rq(c,3)){return 0}H[H[c+84>>2]+8>>2]=J[c+834>>1];H[H[c+84>>2]+12>>2]=J[c+836>>1];break d}d=0;H[c+40>>2]=0;if(rq(c,0)){break d}break c}H[c+36>>2]=1;H[c+40>>2]=0;d=0;if(!rq(c,0)){break c}H[H[c+84>>2]>>2]=b;if(!b|J[c+832>>1]!=6){break d}H[H[c+84>>2]+16>>2]=1;H[H[c+84>>2]+20>>2]=1;H[H[c+84>>2]+24>>2]=1}H[c+256>>2]=0;H[c+244>>2]=0;if(!_A(c,H[c+920>>2])){return 0}b=H[c+928>>2];f:{if(b&1){break f}e=H[c+88>>2];if(e){H[e+128>>2]=0}e=H[c+92>>2];if(!e){break f}H[e+128>>2]=0}H[c+216>>2]=(b>>>1^-1)&1;g:{if(!d){d=0;H[c+208>>2]=0;H[a+560>>2]=1550;H[a+552>>2]=1550;H[a+544>>2]=1550;if(ZA(c)){break g}break c}H[c+208>>2]=1;H[a+560>>2]=1562;H[a+552>>2]=1562;H[a+544>>2]=1562;d=0;if(!ZA(c)){break c}e=H[a+584>>2];g=H[c+76>>2];h:{if((g|0)<=0){b=0;break h}a=H[c+84>>2];b=0;f=0;while(1){j=H[a+8>>2];h=H[a+12>>2];i=YA(e,H[a+28>>2]<<3,h<<3);if(!i){break c}H[(e+(f<<2)|0)+844>>2]=i;a=a+88|0;b=N(j,h)+b|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}}H[e+888>>2]=b}H[c+884>>2]=0;d=1}return d|0}function gt(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;k=xb-16|0;xb=k;H[k+12>>2]=c;g=H[b+4>>2];a:{if(g>>>0>a>>>0){break a}f=H[b+8>>2];if(f>>>0>>0|f-a>>>0<8){break a}d=H[b+12>>2];e=d-8|0;H[b+12>>2]=e;if((e|0)<=0){break a}e=a+4|0;if(e>>>0>>0|e>>>0>f>>>0|f-e>>>0<4){break a}d=d-12|0;H[b+12>>2]=d;if((d|0)<=0){break a}i=F[e|0];if((i|0)<0){break a}e=I[a+2|0]|I[a+3|0]<<8;if(e){c=(I[a+7|0]|(I[a+5|0]<<16|(i&255)<<24|I[a+6|0]<<8))+c|0;if(c>>>0>>0|c>>>0>f>>>0){break a}f=f-c|0;c=((e<<8|e>>>8)&65535)<<2;if(f>>>0>>0){break a}c=d-c|0;H[b+12>>2]=c;if((c|0)<=0){break a}}f=a+8|0;c=I[a|0]|I[a+1|0]<<8;g=(c<<8|c>>>8)&65535;b:{c:{if(g>>>0>536870910){break c}c=1;if(!g){break b}if(f>>>0>2]){break c}c=H[b+8>>2];if(c>>>0>>0){break c}d=c-f|0;c=g<<3;if(d>>>0>>0){break c}c=H[b+12>>2]-c|0;H[b+12>>2]=c;if((c|0)<=0){break c}e=H[b+4>>2];c=0;a=I[a+2|0]|I[a+3|0]<<8;if(!a){while(1){j=0;a=f+(c<<3)|0;if(a>>>0>>0){break c}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<8){break c}i=H[b+12>>2];h=i-8|0;H[b+12>>2]=h;if((h|0)<=0){break c}a=a+6|0;if(a>>>0>>0|a>>>0>d>>>0|d-a>>>0<2){break c}a=i-10|0;H[b+12>>2]=a;if((a|0)<=0){break c}j=1;c=c+1|0;if((g|0)!=(c|0)){continue}break c}}i=((a<<8|a>>>8)&65535)<<1;m=H[k+12>>2];while(1){j=0;d=f+(c<<3)|0;if(d>>>0>>0){break c}a=H[b+8>>2];if(a>>>0>>0|a-d>>>0<8){break c}h=H[b+12>>2];l=h-8|0;H[b+12>>2]=l;if((l|0)<=0){break c}d=d+6|0;if(d>>>0>>0|a>>>0>>0|a-d>>>0<2){break c}h=h-10|0;H[b+12>>2]=h;if((h|0)<=0){break c}d=I[d|0]|I[d+1|0]<<8;d=((d<<8|d>>>8)&65535)+m|0;if(d>>>0>>0|a>>>0>>0|i>>>0>a-d>>>0){break c}a=h-i|0;H[b+12>>2]=a;if((a|0)<=0){break c}j=1;c=c+1|0;if((g|0)!=(c|0)){continue}break}}c=j}j=c}xb=k+16|0;return j}function ofa(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;j=H[a+444>>2];a:{switch(b|0){case 0:b:{if(H[H[a+472>>2]+8>>2]){H[j+4>>2]=1201;q=H[a+36>>2];if((q|0)>0){n=H[a+324>>2];r=n-2|0;s=n+2|0;o=H[a+216>>2];while(1){a=p<<2;b=H[a+H[j+60>>2]>>2];e=H[a+H[j+56>>2]>>2];f=H[(a+j|0)+8>>2];i=(N(H[o+40>>2],H[o+12>>2])|0)/(n|0)|0;k=N(s,i);c:{if((k|0)<=0){break c}d=0;a=0;if(k-1>>>0>=3){m=k&-4;l=0;while(1){c=a<<2;g=H[c+f>>2];H[b+c>>2]=g;H[e+c>>2]=g;g=c|4;h=H[g+f>>2];H[b+g>>2]=h;H[e+g>>2]=h;g=c|8;h=H[g+f>>2];H[b+g>>2]=h;H[e+g>>2]=h;c=c|12;g=H[c+f>>2];H[b+c>>2]=g;H[e+c>>2]=g;a=a+4|0;l=l+4|0;if((m|0)!=(l|0)){continue}break}}l=k&3;if(!l){break c}while(1){c=a<<2;k=H[c+f>>2];H[b+c>>2]=k;H[e+c>>2]=k;a=a+1|0;d=d+1|0;if((l|0)!=(d|0)){continue}break}}d:{if((i|0)<=0){break d}d=i<<1;l=(d|0)>1?d:1;g=l&1;c=N(i,r);k=N(i,n);a=0;if((d|0)>=2){l=l&2147483646;d=0;while(1){h=a+c<<2;m=a+k<<2;H[h+b>>2]=H[m+f>>2];H[b+m>>2]=H[f+h>>2];h=a|1;m=h+c<<2;h=h+k<<2;H[m+b>>2]=H[h+f>>2];H[b+h>>2]=H[f+m>>2];a=a+2|0;d=d+2|0;if((l|0)!=(d|0)){continue}break}}if(g){d=a+c<<2;a=a+k<<2;H[d+b>>2]=H[a+f>>2];H[a+b>>2]=H[f+d>>2]}f=0;b=0;if(i-1>>>0>=3){d=i&-4;a=0;while(1){H[(b-i<<2)+e>>2]=H[e>>2];H[((b|1)-i<<2)+e>>2]=H[e>>2];H[((b|2)-i<<2)+e>>2]=H[e>>2];H[((b|3)-i<<2)+e>>2]=H[e>>2];b=b+4|0;a=a+4|0;if((d|0)!=(a|0)){continue}break}}a=i&3;if(!a){break d}while(1){H[(b-i<<2)+e>>2]=H[e>>2];b=b+1|0;f=f+1|0;if((a|0)!=(f|0)){continue}break}}o=o+88|0;p=p+1|0;if((q|0)!=(p|0)){continue}break}}H[j+76>>2]=0;H[j+64>>2]=0;H[j+68>>2]=0;break b}H[j+4>>2]=1202}H[j+48>>2]=0;H[j+52>>2]=0;return;case 2:H[j+4>>2]=1203;return;default:break a}}b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}function N6(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;h=(c-b|0)/12|0;e=H[a+8>>2];d=H[a>>2];if(h>>>0<=(e-d|0)/12>>>0){f=(H[a+4>>2]-d|0)/12|0;e=N(f,12)+b|0;i=f>>>0>>0?e:c;if((i|0)!=(b|0)){while(1){a:{if((b|0)==(d|0)){break a}j=I[b+11|0];g=j<<24>>24;if(F[d+11|0]>=0){if((g|0)>=0){g=H[b+4>>2];H[d>>2]=H[b>>2];H[d+4>>2]=g;H[d+8>>2]=H[b+8>>2];break a}Av(d,H[b>>2],H[b+4>>2]);break a}g=(g|0)<0;Bv(d,g?H[b>>2]:b,g?H[b+4>>2]:j)}d=d+12|0;b=b+12|0;if((i|0)!=(b|0)){continue}break}}b=H[a+4>>2];if(f>>>0>>0){b:{if((c|0)!=(i|0)){while(1){c:{if(F[e+11|0]>=0){d=H[e+4>>2];H[b>>2]=H[e>>2];H[b+4>>2]=d;H[b+8>>2]=H[e+8>>2];break c}d=H[e+4>>2];f=H[e>>2];H[197455]=0;ga(1647,b|0,f|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break b}}b=b+12|0;e=e+12|0;if((e|0)!=(c|0)){continue}break}}H[a+4>>2]=b;return}c=$()|0;_()|0;H[a+4>>2]=b;ea(c|0);X()}if((b|0)!=(d|0)){while(1){c=b-12|0;if(F[b-1|0]<0){Kb(H[c>>2])}b=c;if((d|0)!=(b|0)){continue}break}}H[a+4>>2]=d;return}if(d){e=H[a+4>>2];if((e|0)==(d|0)){e=d}else{while(1){f=e-12|0;if(F[e-1|0]<0){Kb(H[f>>2])}e=f;if((e|0)!=(d|0)){continue}break}e=H[a>>2]}H[a+4>>2]=d;Kb(e);H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;e=0}d:{e:{if(h>>>0>=357913942){break e}d=(e|0)/12|0;e=d<<1;d=d>>>0<178956970?e>>>0>h>>>0?e:h:357913941;if(d>>>0>=357913942){break e}e=N(d,12);d=Qb(e);H[a>>2]=d;H[a+4>>2]=d;H[a+8>>2]=d+e;if((b|0)!=(c|0)){while(1){f:{if(F[b+11|0]>=0){e=H[b+4>>2];H[d>>2]=H[b>>2];H[d+4>>2]=e;H[d+8>>2]=H[b+8>>2];break f}e=H[b+4>>2];f=H[b>>2];H[197455]=0;ga(1647,d|0,f|0,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break d}}d=d+12|0;b=b+12|0;if((c|0)!=(b|0)){continue}break}}H[a+4>>2]=d;return}bd(a);X()}b=$()|0;_()|0;H[a+4>>2]=d;ea(b|0);X()}function Ym(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=xb-32|0;xb=f;e=H[a+584>>2];H[f+28>>2]=0;a:{b:{c:{if(H[e+488>>2]){if(!(H[e+16>>2]|!c?H[e+16>>2]?b:0:1)){break c}VA(e);H[e+488>>2]=0}d=1;d:{if(!(H[a+12>>2]>>>10&1)){break d}H[f+16>>2]=f+28;if(!Cc(a,325,f+16|0)){break d}g=H[f+28>>2];if(!g){break d}d=!H[g>>2]}e:{if(H[a+12>>2]>>>10&1){break e}H[f>>2]=f+28;if(!Cc(a,279,f)){break e}g=H[f+28>>2];if(!g){break e}d=!H[g>>2]}f:{g:{h:{if(c){break h}if(b){break g}if(!H[a+8>>2]){break h}if(d){break g}}b=Tb(40);H[b>>2]=0;H[197455]=0;h=Hj(e+492|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}g=4;d=-1;i:{j:{if(!a){break j}c=H[197456];if(!c){break j}d=Sb(H[a>>2],b,4);if(!d){break b}ja(c|0)}a=_()|0;if((d|0)!=1){H[e+492>>2]=1574;H[e>>2]=h;H[e+500>>2]=1575;b=sd(e+624|0,1,b,4);g=_()|0;a=0}while(1){if(a){c=0;break i}H[197455]=0;ga(971,e|0,80,488);a=H[197455];H[197455]=0;if((a|0)==1){break a}d=-1;k:{if(!a){break k}c=H[197456];if(!c){break k}d=Sb(H[a>>2],b,g);if(!d){break b}ja(c|0)}c=1;a=_()|0;if((d|0)==1){continue}break}break i}Kb(b);if(c){break f}break c}b=Tb(40);H[b>>2]=0;H[197455]=0;h=Hj(e+492|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}g=4;d=-1;l:{m:{if(!a){break m}c=H[197456];if(!c){break m}d=Sb(H[a>>2],b,4);if(!d){break b}ja(c|0)}a=_()|0;if((d|0)!=1){H[e+492>>2]=1574;H[e>>2]=h;H[e+500>>2]=1575;b=sd(e+624|0,1,b,4);g=_()|0;a=0}while(1){if(a){c=0;break l}H[197455]=0;ga(994,e|0,80,432);a=H[197455];H[197455]=0;if((a|0)==1){break a}d=-1;n:{if(!a){break n}c=H[197456];if(!c){break n}d=Sb(H[a>>2],b,g);if(!d){break b}ja(c|0)}c=1;a=_()|0;if((d|0)==1){continue}break}break l}Kb(b);if(!c){break c}}H[e+488>>2]=1}xb=f+32|0;return}Kb(b);ed(a,c);X()}a=$()|0;Kb(b);ea(a|0);X()}function hca(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,u=0,v=0,w=0;m=xb+-64|0;d=a;while(1){a:{e=d;d=H[(i<<2)+b>>2]+c|0;f=I[d+4|0];g=I[d+5|0];r=f-g|0;l=I[d|0];n=I[d+9|0];h=l-n|0;s=r+h|0;o=I[d+2|0];t=I[d+7|0];u=o-t|0;p=I[d+1|0];q=I[d+8|0];j=p-q|0;v=I[d+3|0];w=I[d+6|0];d=v-w|0;k=j-d|0;H[e+20>>2]=s-(u+k|0)<<1;f=f+g|0;g=l+n|0;l=f+g|0;v=v+w|0;p=p+q|0;q=v+p|0;o=o+t|0;H[e>>2]=(l+(q+o|0)<<1)-2560;n=o<<1;H[e+16>>2]=(N(q-n|0,-3580)+N(l-n|0,9373)|0)+2048>>12;g=g-f|0;l=p-v|0;f=N(g+l|0,6810)+2048|0;H[e+24>>2]=f+N(l,-17828)>>12;H[e+8>>2]=f+N(g,4209)>>12;f=(N(h-r|0,7791)+N(d+j|0,-4815)|0)+2048|0;g=u<<13;k=((k<<12)-g|0)+N(k+s|0,2531)|0;H[e+28>>2]=f-k>>12;H[e+12>>2]=f+k>>12;H[e+4>>2]=(((g+(N(h,11443)+N(j,10323)|0)|0)+N(d,5260)|0)+N(r,1812)|0)+2048>>12;h=i-7|0;i=i+1|0;r=7;d=m;b:{switch(h|0){case 0:continue;case 2:break a;default:break b}}d=e+32|0;continue}break}while(1){m=H[a+192>>2];i=H[a+96>>2];b=m+i|0;e=H[d>>2];h=H[a+32>>2];c=e+h|0;j=b+c|0;k=H[a+224>>2];f=H[a+64>>2];g=k+f|0;l=g<<1;n=H[a+160>>2];s=H[a+128>>2];o=n+s|0;t=H[d+32>>2];u=H[a>>2];p=t+u|0;q=o+p|0;H[a+128>>2]=(N(j-l|0,-4582)+N(q-l|0,11997)|0)+16384>>15;H[a>>2]=N(q+(g+j|0)|0,10486)+16384>>15;j=p-o|0;c=c-b|0;b=N(j+c|0,8716)+16384|0;H[a+192>>2]=b+N(c,-22820)>>15;H[a+64>>2]=b+N(j,5387)>>15;b=s-n|0;c=u-t|0;j=b+c|0;e=h-e|0;m=i-m|0;i=e-m|0;h=f-k|0;H[a+160>>2]=N(j-(i+h|0)|0,10486)+16384>>15;k=(N(c-b|0,9973)+N(e+m|0,-6163)|0)+16384|0;h=N(h,10486);i=(N(i,5243)-h|0)+N(i+j|0,3240)|0;H[a+224>>2]=k-i>>15;H[a+96>>2]=i+k>>15;H[a+32>>2]=(((h+(N(c,14647)+N(e,13213)|0)|0)+N(m,6732)|0)+N(b,2320)|0)+16384>>15;b=r;r=b-1|0;d=d+4|0;a=a+4|0;if(b){continue}break}}function y9(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;d=H[a+584>>2];l=(c|0)/H[d+8>>2]|0;if(H[d>>2]!=2){c=H[d+12>>2];zb[H[d+20>>2]](d,b,l);b=c}c=H[a+600>>2];g=c-H[a+608>>2]|0;e=H[a+604>>2];if((l|0)>0){c=24;while(1){k=c;m=255<>2]=e;H[a+608>>2]=H[a+600>>2]-g;if(!Uc(a)){return-1}g=H[a+600>>2]-H[a+608>>2]|0;e=H[a+604>>2]}d=c;h=d;a:{if((d|0)>=(l|0)){break a}while(1){h=d;i=H[(d<<2)+b>>2];f=1;b:{while(1){d=f+h|0;if((l|0)<=(d|0)){j=f;break b}c:{if((i^H[(d<<2)+b>>2])&m){j=f;break c}j=f+1|0;d=j+h|0;if((l|0)<=(d|0)){break b}if((i^H[(d<<2)+b>>2])&m){break c}j=129;f=f+2|0;if((f|0)!=129){continue}break a}break}if(j>>>0<=3){continue}break a}break}h=j>>>0>3?h:d}i=h-c|0;d:{if((i&-2)!=2){break d}d=c+1|0;f=H[(c<<2)+b>>2]&m;while(1){if((f|0)!=(H[(d<<2)+b>>2]&m)){break d}d=d+1|0;if((h|0)!=(d|0)){continue}break}F[e+1|0]=f>>>k;F[e|0]=i+126;g=g-2|0;e=e+2|0;c=h}if((c|0)<(h|0)){while(1){d=h-c|0;i=(d|0)<127?d:127;if((i+3|0)>(g|0)){H[a+604>>2]=e;H[a+608>>2]=H[a+600>>2]-g;if(!Uc(a)){return-1}g=H[a+600>>2]-H[a+608>>2]|0;e=H[a+604>>2]}F[e|0]=i;e=e+1|0;g=g-1|0;if(i){f=0;d=i;n=d&3;if(n){while(1){F[e|0]=H[(c<<2)+b>>2]>>>k;e=e+1|0;c=c+1|0;d=d-1|0;f=f+1|0;if((n|0)!=(f|0)){continue}break}}if(i-1>>>0>=3){while(1){f=(c<<2)+b|0;F[e|0]=H[f>>2]>>>k;F[e+1|0]=H[f+4>>2]>>>k;F[e+2|0]=H[f+8>>2]>>>k;F[e+3|0]=H[f+12>>2]>>>k;e=e+4|0;c=c+4|0;d=d-4|0;if(d){continue}break}}g=g-i|0}if((c|0)<(h|0)){continue}break}}e:{if((j|0)<4){j=0;break e}F[e|0]=j+126;F[e+1|0]=H[(h<<2)+b>>2]>>>k;g=g-2|0;e=e+2|0}c=c+j|0;if((l|0)>(c|0)){continue}break}c=k-8|0;if(k){continue}break}c=H[a+600>>2]}H[a+604>>2]=e;H[a+608>>2]=c-g;return 1}function _y(a){var b=0,c=0,d=0,e=0,f=0;b=H[a+20>>2];e=a+24|0;if((b|0)!=(e|0)){while(1){d=b;b=H[b+20>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}c=H[d+4>>2];a:{if(!c){b=H[d+8>>2];if((d|0)==H[b>>2]){break a}c=d+8|0;while(1){d=H[c>>2];c=d+8|0;b=H[d+8>>2];if((d|0)!=H[b>>2]){continue}break}break a}while(1){b=c;c=H[b>>2];if(c){continue}break}}if((b|0)!=(e|0)){continue}break}}nj(a+20|0,H[a+24>>2]);H[a+20>>2]=e;H[a+24>>2]=0;H[a+28>>2]=0;b=H[a+4>>2];f=a+8|0;if((b|0)!=(f|0)){while(1){d=b;b=H[b+20>>2];if(b){si(b);Kb(b)}c=H[d+4>>2];b:{if(!c){b=H[d+8>>2];if((d|0)==H[b>>2]){break b}c=d+8|0;while(1){d=H[c>>2];c=d+8|0;b=H[d+8>>2];if((d|0)!=H[b>>2]){continue}break}break b}while(1){b=c;c=H[b>>2];if(c){continue}break}}if((b|0)!=(f|0)){continue}break}}mj(a+4|0,H[a+8>>2]);H[a+4>>2]=f;H[a+8>>2]=0;H[a+12>>2]=0;b=H[a>>2];if(b){si(b);Kb(b);H[a>>2]=0}b=Qb(688);H[197455]=0;Im(b,a);c=H[197455];H[197455]=0;if((c|0)!=1){H[a>>2]=b;az(a);c=H[a+24>>2];c:{if(!c){break c}b=e;while(1){d=K[c+16>>2]<2147483655;b=d?b:c;c=H[(d<<2)+c>>2];if(c){continue}break}d:{if((b|0)==(e|0)|K[b+16>>2]>2147483655){break d}e:{f:{g:{b=H[b+20>>2];switch((zb[H[H[b>>2]+8>>2]](b)|0)-1|0){case 2:break e;case 1:break f;case 0:break g;default:break d}}H[H[a>>2]+8>>2]=b+4;break d}H[H[a>>2]+16>>2]=b+4;break d}H[H[a>>2]+12>>2]=b+4}c=H[e>>2];if(!c){break c}b=e;while(1){d=H[c+16>>2]>=0;b=d?b:c;c=H[(d<<2)+c>>2];if(c){continue}break}if((b|0)==(e|0)|K[b+16>>2]>2147483648){break c}h:{i:{j:{b=H[b+20>>2];switch((zb[H[H[b>>2]+8>>2]](b)|0)-1|0){case 2:break h;case 1:break i;case 0:break j;default:break c}}H[H[a>>2]+8>>2]=b+4;return}H[H[a>>2]+16>>2]=b+4;return}H[H[a>>2]+12>>2]=b+4}return}a=$()|0;_()|0;Kb(b);ea(a|0);X()}function sM(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;if(K[b+160>>2]>>0){vc(b,8)}d=I[a+3|0]|I[a+2|0]<<8;if(K[b+160>>2]>>0){if(H[b+164>>2]>0){vc(b,8)}d=H[b+160>>2]-a|0}if(d>>>0<=15){vc(b,8)}c=I[a+7|0];k=c|I[a+6|0]<<8;if(!(!(c&1)|H[b+164>>2]<2)){vc(b,8)}h=k&65534;if((h<<2)+16>>>0>d>>>0){vc(b,8)}g=k>>>1|0;a:{if(H[b+164>>2]<2){break a}l=I[a+12|0];i=I[a+10|0];e=I[a+11|0];c=I[a+9|0];q=c|I[a+8|0]<<8;f=c;c=I[a+13|0];if((f|c)&1){vc(b,8)}f=q>>>1|0;if(!(f>>>0>g>>>0|g>>>0>(q&65534)>>>0|(g|0)!=(f+((c|l<<8)>>>1|0)|0))){if((f|0)==1<<(e|i<<8)){break a}}vc(b,8)}m=a+14|0;b:{if(H[b+164>>2]<2){break b}c=(h+m|0)-2|0;if((I[c|0]<<8|I[c+1|0])==65535){break b}vc(b,8)}if(k>>>0>=2){n=(a+h|0)+16|0;o=h+n|0;j=h+o|0;s=h+j|0;h=g>>>0>1?g:1;k=a+d|0;g=g-1|0;e=0;c=0;while(1){a=c;d=e;q=I[j|0]<<8;f=I[j+1|0];l=I[o|0];i=I[o+1|0];c=I[n+1|0]|I[n|0]<<8;e=I[m+1|0]|I[m|0]<<8;if(c>>>0>e>>>0){vc(b,8)}f=f|q;c:{if(!p|c>>>0>d>>>0){break c}if(H[b+164>>2]>0){vc(b,8);break c}if(!(a>>>0<=c>>>0&e>>>0>=d>>>0)){r=r|1;break c}r=r|2}d:{if(!f){break d}if((f|0)!=65535){a=f+j|0;e:{f:{if(H[b+164>>2]>0){if(a>>>0>>0|k>>>0<((e-c<<1)+a|0)+2>>>0){break f}break e}if(!((g|0)!=(p|0)|(c|0)!=65535)&(e|0)==65535){break e}if(a>>>0>>0){break f}if(K[b+160>>2]>=((e-c<<1)+a|0)+2>>>0){break e}}vc(b,8)}if(H[b+164>>2]<=0|c>>>0>=e>>>0){break d}l=i|l<<8;d=c;while(1){i=I[a+1|0]|I[a|0]<<8;if(!(!i|K[b+172>>2]>(l+i&65535)>>>0)){vc(b,16)}a=a+2|0;d=d+1|0;if((d|0)!=(e|0)){continue}break}break d}if(!((g|0)!=(p|0)|H[b+164>>2]>1|(c|0)!=65535)){if((e|0)==65535){break d}}vc(b,8)}j=j+2|0;o=o+2|0;m=m+2|0;n=n+2|0;p=p+1|0;if((h|0)!=(p|0)){continue}break}}return r|0}function Mda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;t=xb-192|0;xb=t;h=H[a+332>>2];b=H[b+84>>2];a=t;while(1){k=H[b+64>>2];i=G[c+32>>1];g=N(G[c>>1],H[b>>2])<<13|1024;j=N(H[b+128>>2],G[c+64>>1]);r=g+N(j,-11586)>>11;f=N(H[b+32>>2],G[c+16>>1]);n=N(H[b+96>>2],G[c+48>>1]);l=N(H[b+160>>2],G[c+80>>1]);o=f-(n+l|0)<<2;H[a+128>>2]=r-o;H[a+32>>2]=o+r;k=N(N(i,k),10033);i=g+N(j,5793)|0;j=k+i|0;g=f+n<<13;f=N(f+l|0,2998);g=g+f|0;H[a+160>>2]=j-g>>11;H[a>>2]=g+j>>11;k=i-k|0;f=f+(l-n<<13)|0;H[a+96>>2]=k-f>>11;H[a+64>>2]=f+k>>11;a=a+4|0;b=b+4|0;c=c+2|0;p=p+1|0;if((p|0)!=8){continue}break}b=h+128|0;n=0;a=t;while(1){l=H[a+4>>2];h=H[a+20>>2];i=l+h|0;f=H[a+28>>2];k=N(i+f|0,7053);c=H[(n<<2)+d>>2]+e|0;o=k+N(i,2139)|0;j=H[a+12>>2];r=N(j,10703);p=o+(r+N(l,2295)|0)|0;m=H[a+24>>2];s=m<<13;g=H[a+8>>2];u=s+N(g,11190)|0;v=N(H[a+16>>2],10033);i=(H[a>>2]<<13)+131072|0;w=v+i|0;q=u+w|0;F[c|0]=I[b+(p+q>>>18&1023)|0];F[c+11|0]=I[b+(q-p>>>18&1023)|0];p=g-m<<13;m=p+i|0;q=l-f|0;x=j-h|0;y=N(q+x|0,4433);q=y+N(q,6270)|0;F[c+1|0]=I[b+(m+q>>>18&1023)|0];F[c+10|0]=I[b+(m-q>>>18&1023)|0];j=N(j,-4433);m=j+N(h,-12112)|0;h=N(f+h|0,-8565);o=(m+h|0)+o|0;g=N(g,2998)-s|0;m=i-v|0;s=g+m|0;F[c+2|0]=I[b+(o+s>>>18&1023)|0];F[c+9|0]=I[b+(s-o>>>18&1023)|0];h=h+(k+(N(f,12998)-r|0)|0)|0;g=m-g|0;F[c+3|0]=I[b+(h+g>>>18&1023)|0];F[c+8|0]=I[b+(g-h>>>18&1023)|0];h=N(x,-15137)+y|0;i=i-p|0;F[c+4|0]=I[b+(h+i>>>18&1023)|0];F[c+7|0]=I[b+(i-h>>>18&1023)|0];f=k+((j+N(l,-5540)|0)+N(f,-16244)|0)|0;l=w-u|0;F[c+5|0]=I[b+(f+l>>>18&1023)|0];F[c+6|0]=I[b+(l-f>>>18&1023)|0];a=a+32|0;n=n+1|0;if((n|0)!=6){continue}break}xb=t+192|0}function yl(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=xb-48|0;xb=b;c=H[a>>2];a:{if(c){break a}i=a-132|0;while(1){d=H[i>>2];if(!d){c=163632;break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;c=kd(d);F[b+40|0]=1;H[b+36>>2]=c;d=dd(d,1717920116);c=0;h=xb-16|0;xb=h;if(!(!d|!H[d>>2])){H[d>>2]=H[d>>2]+1}e=d;H[b+32>>2]=d;b:{c:{d:{e:{f:{while(1){F[b+24|0]=c;c=H[e+12>>2];H[b+4>>2]=c;f=H[e+16>>2];H[b+8>>2]=f+c;g=1073741823;H[b+28>>2]=0;if(f>>>0<=67108862){g=f<<6;g=g>>>0>16384?g:16384;g=g>>>0<1073741823?g:1073741823}H[b+12>>2]=g;H[b+20>>2]=0;H[b>>2]=0;if(!c){Wb(e);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;break b}if((f|0)<=11){break e}H[b+12>>2]=g-12;if((I[c|0]|I[c+1|0]<<8)!=256){break e}e=I[c+4|0]|I[c+5|0]<<8;H[h+8>>2]=c;g:{f=c+12|0;if(ft(f,b,(e<<8|e>>>8)&65535,h+8|0)){if(!H[b+28>>2]){break g}H[b+28>>2]=0;if(c>>>0>2]){break e}e=H[b+8>>2];if(e>>>0>>0|e-c>>>0<=11){break e}e=H[b+12>>2]-12|0;H[b+12>>2]=e;if((I[c|0]|I[c+1|0]<<8)!=256|(e|0)<=0){break e}e=I[c+4|0]|I[c+5|0]<<8;H[h+12>>2]=c;c=ft(f,b,(e<<8|e>>>8)&65535,h+12|0);e=H[b+32>>2];if(H[b+28>>2]){break d}Wb(e);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(c){break f}break c}if(I[b+24|0]|!H[b+28>>2]){break e}f=ve(d);H[b+4>>2]=f;H[b+8>>2]=f+H[d+16>>2];e=H[b+32>>2];c=1;if(f){continue}break d}break}Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}if(H[d+4>>2]){H[d+4>>2]=0}break b}e=H[b+32>>2]}Wb(e);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}Wb(d);d=163632}xb=h+16|0;c=d;if(!c){c=163632}d=H[a>>2];H[a>>2]=d?d:c;if(!d){break a}if(!(!c|(c|0)==163632)){Wb(c)}c=H[a>>2];if(!c){continue}break}}xb=b+48|0;return K[c+16>>2]<12?163632:H[c+12>>2]}function fha(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=H[a+508>>2];if((c|0)>=2){d=c-2|0;c=0;while(1){if(H[(N(c,12)+a|0)+272>>2]==218){break a}e=(c|0)!=(d|0);c=c+1|0;if(e){continue}break}}b=I[248688]|I[248689]<<8|(I[248690]<<16|I[248691]<<24);F[a+35|0]=b;F[a+36|0]=b>>>8;F[a+37|0]=b>>>16;F[a+38|0]=b>>>24;b=I[248685]|I[248686]<<8|(I[248687]<<16|I[248688]<<24);c=I[248681]|I[248682]<<8|(I[248683]<<16|I[248684]<<24);F[a+28|0]=c;F[a+29|0]=c>>>8;F[a+30|0]=c>>>16;F[a+31|0]=c>>>24;F[a+32|0]=b;F[a+33|0]=b>>>8;F[a+34|0]=b>>>16;F[a+35|0]=b>>>24;b=I[248677]|I[248678]<<8|(I[248679]<<16|I[248680]<<24);c=I[248673]|I[248674]<<8|(I[248675]<<16|I[248676]<<24);F[a+20|0]=c;F[a+21|0]=c>>>8;F[a+22|0]=c>>>16;F[a+23|0]=c>>>24;F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24;b=I[248669]|I[248670]<<8|(I[248671]<<16|I[248672]<<24);c=I[248665]|I[248666]<<8|(I[248667]<<16|I[248668]<<24);F[a+12|0]=c;F[a+13|0]=c>>>8;F[a+14|0]=c>>>16;F[a+15|0]=c>>>24;F[a+16|0]=b;F[a+17|0]=b>>>8;F[a+18|0]=b>>>16;F[a+19|0]=b>>>24;b=I[248661]|I[248662]<<8|(I[248663]<<16|I[248664]<<24);c=I[248657]|I[248658]<<8|(I[248659]<<16|I[248660]<<24);F[a+4|0]=c;F[a+5|0]=c>>>8;F[a+6|0]=c>>>16;F[a+7|0]=c>>>24;F[a+8|0]=b;F[a+9|0]=b>>>8;F[a+10|0]=b>>>16;F[a+11|0]=b>>>24;return 0}zb[H[H[b>>2]+44>>2]](b,255)|0;zb[H[H[b>>2]+44>>2]](b,216)|0;if((H[a+272>>2]&-2)!=224){zb[H[H[b>>2]+16>>2]](b,784224,18,1)|0}c=0;if(H[a+508>>2]>=2){while(1){zb[H[H[b>>2]+44>>2]](b,255)|0;d=N(c,12)+a|0;zb[H[H[b>>2]+44>>2]](b,I[d+272|0])|0;zb[H[H[b>>2]+16>>2]](b,H[d+268>>2],H[d+276>>2],1)|0;c=c+1|0;if((c|0)<(H[a+508>>2]-1|0)){continue}break}}a=N(c,12)+a|0;zb[H[H[b>>2]+16>>2]](b,H[a+268>>2],H[a+276>>2],1)|0;return 1} +function zfa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=H[a+20>>2];if((c&-2)!=200){d=H[a>>2];H[d+24>>2]=c;H[d+20>>2]=21;zb[H[H[a>>2]>>2]](a)}c=1;a:{b:{c:{d:{e:{d=H[a+20>>2];switch(d-200|0){case 2:break a;case 3:case 4:case 5:case 6:case 7:case 8:case 10:break c;case 1:break d;case 0:break e;default:break b}}zb[H[H[a+456>>2]+4>>2]](a);zb[H[H[a+24>>2]+8>>2]](a);H[a+20>>2]=201}c=zb[H[H[a+456>>2]>>2]](a)|0;if((c|0)!=1){break a}c=H[a+36>>2];d=c;f:{g:{switch(c-1|0){case 2:d=2;c=3;if(H[a+284>>2]){break f}if(H[a+296>>2]){c=2;h:{i:{e=I[a+300|0];switch(e|0){case 1:break i;case 0:break f;default:break h}}c=3;break f}c=H[a>>2];H[c+24>>2]=e;H[c+20>>2]=116;zb[H[H[a>>2]+4>>2]](a,-1);c=3;break f}f=H[a+216>>2];e=H[f+176>>2];g=H[f+88>>2];f=H[f>>2];if(!((f|0)!=1|(g|0)!=2)&(e|0)==3){break f}if(!((f|0)!=82|(g|0)!=71|(e|0)!=66)){c=2;break f}c=H[a>>2];H[c+24>>2]=f;H[c+20>>2]=113;H[c+32>>2]=e;H[c+28>>2]=g;zb[H[c+4>>2]](a,1);c=3;break f;case 3:d=4;if(!H[a+296>>2]){c=4;break f}c=4;j:{k:{e=I[a+300|0];switch(e|0){case 2:break k;case 0:break f;default:break j}}c=5;break f}c=H[a>>2];H[c+24>>2]=e;H[c+20>>2]=116;zb[H[H[a>>2]+4>>2]](a,-1);c=5;break f;case 0:break f;default:break g}}c=0;d=0}H[a+44>>2]=d;H[a+40>>2]=c;H[a+136>>2]=0;H[a+96>>2]=256;H[a+88>>2]=2;H[a+92>>2]=1;H[a+80>>2]=1;H[a+84>>2]=0;H[a+72>>2]=0;H[a+76>>2]=1;H[a+64>>2]=0;H[a+68>>2]=0;H[a+56>>2]=0;H[a+60>>2]=1072693248;H[a+108>>2]=0;H[a+100>>2]=0;H[a+104>>2]=0;H[a+20>>2]=202;c=H[a+424>>2];H[a+52>>2]=c;H[a+48>>2]=c;c=1;break a}c=zb[H[H[a+456>>2]>>2]](a)|0;break a}c=H[a>>2];H[c+24>>2]=d;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a);c=0}if((c|0)==2){if(b){b=H[a>>2];H[b+20>>2]=53;zb[H[b>>2]](a)}Vk(a)}return c|0}function Mz(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=H[a+8>>2];c=H[a+4>>2];if(g>>>0>c+3>>>0){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b>>2]=f;if(g>>>0>c+3>>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+4>>2]=d;d=0;a:{if(g>>>0<=c+3>>>0){f=0;break a}f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+8>>2]=f;if(g>>>0>c+3>>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+12>>2]=d;d=0;b:{if(g>>>0<=c+3>>>0){f=0;break b}f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+16>>2]=f;if(c>>>0>>0){d=I[c|0];H[a+4>>2]=c+1}F[b+20|0]=d;c=0;d=H[a+4>>2];if(d>>>0>2]){c=I[d|0];H[a+4>>2]=d+1}F[b+21|0]=c;c=H[a+4>>2];if(c>>>0>2]){e=I[c|0];H[a+4>>2]=c+1}F[b+22|0]=e;e=0;c=0;d=H[a+4>>2];if(d>>>0>2]){c=I[d|0];H[a+4>>2]=d+1}F[b+23|0]=c;c=H[a+4>>2];if(c>>>0>2]){e=I[c|0];H[a+4>>2]=c+1}F[b+24|0]=e;e=0;c=0;d=H[a+4>>2];if(d>>>0>2]){c=I[d|0];H[a+4>>2]=d+1}F[b+25|0]=c;c=H[a+4>>2];if(c>>>0>2]){e=I[c|0];H[a+4>>2]=c+1}F[b+26|0]=e;e=0;c=H[a+4>>2];if(c>>>0>2]){e=I[c|0];H[a+4>>2]=c+1}F[b+27|0]=e;c:{f=H[a+8>>2];c=H[a+4>>2];d=(f-c|0)/2|0;g=d>>>0<32?d:32;d:{if(!g){break d}if(f>>>0<=c+1>>>0){break c}e=0;if((g|0)!=1){i=g&62;while(1){e:{if(f>>>0<=c+1>>>0){d=0;break e}d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[((e<<1)+b|0)+28>>1]=d;d=0;if(f>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[(((e|1)<<1)+b|0)+28>>1]=d;e=e+2|0;h=h+2|0;if((h|0)!=(i|0)){continue}break}}if(!(g&1)){break d}d=0;if(f>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;H[a+4>>2]=c+2}G[((e<<1)+b|0)+28>>1]=d}return}Nb(b+28|0,0,g<<1)}function Wh(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;h=I[a|0]|I[a+1|0]<<8;if(!h){return 0}j=H[b+116>>2];i=H[b+92>>2];a=0;l=(h<<8|h>>>8)&65535;if(l&1){k=H[e+8>>2];a=I[d|0]|I[d+1|0]<<8;f=(a<<8|a>>>8)<<16;g=f>>31;f=gma(H[i+40>>2],H[i+44>>2],f>>16,g)+32768|0;g=yb;g=f>>>0<32768?g+1|0:g;H[e+8>>2]=k+((g&65535)<<16|f>>>16);d=d+2|0;a=(a|0)!=0}if(l&2){m=H[e+12>>2];k=I[d|0]|I[d+1|0]<<8;f=(k<<8|k>>>8)<<16;g=f>>31;f=gma(H[i+48>>2],H[i+52>>2],f>>16,g)+32768|0;g=yb;g=f>>>0<32768?g+1|0:g;H[e+12>>2]=m+((g&65535)<<16|f>>>16);d=d+2|0;a=(k|0)!=0|a}k=j&-2;if(l&4){if((k|0)==4){m=H[e>>2];j=I[d|0]|I[d+1|0]<<8;f=(j<<8|j>>>8)<<16;g=f>>31;f=gma(H[i+40>>2],H[i+44>>2],f>>16,g)+32768|0;g=yb;g=f>>>0<32768?g+1|0:g;H[e>>2]=m+((g&65535)<<16|f>>>16);a=(j|0)!=0|a}d=d+2|0}if(l&8){if((k|0)!=4){m=H[e+4>>2];j=I[d|0]|I[d+1|0]<<8;f=(j<<8|j>>>8)<<16;g=f>>31;f=gma(H[i+48>>2],H[i+52>>2],f>>16,g)+32768|0;g=yb;g=f>>>0<32768?g+1|0:g;H[e+4>>2]=m-((g&65535)<<16|f>>>16);a=(j|0)!=0|a}d=d+2|0}a:{if(h>>>0<4096){break a}g=1;f=1;f=H[i+56>>2]?f:H[i+68>>2]!=0;if(!H[i+60>>2]){g=H[i+68>>2]!=0;if((g|f)!=1){break a}}b=H[b+112>>2];if(l&16){if(f){h=I[d|0]|I[d+1|0]<<8;j=(h|0)!=0;n=e,o=Vr(h?((h<<8|h>>>8)&65535)+c|0:163632,i,b)+H[e+8>>2]|0,H[n+8>>2]=o;a=a|j}d=d+2|0}if(l&32){if(g){h=I[d|0]|I[d+1|0]<<8;j=(h|0)!=0;n=e,o=Wr(h?((h<<8|h>>>8)&65535)+c|0:163632,i,b)+H[e+12>>2]|0,H[n+12>>2]=o;a=a|j}d=d+2|0}if(l&64){if((k|0)==4&f){f=I[d|0]|I[d+1|0]<<8;h=(f|0)!=0;n=e,o=Vr(f?((f<<8|f>>>8)&65535)+c|0:163632,i,b)+H[e>>2]|0,H[n>>2]=o;a=a|h}d=d+2|0}if(!g|(!(l&128)|(k|0)==4)){break a}d=I[d|0]|I[d+1|0]<<8;a=(d|0)!=0|a;b=Wr(d?((d<<8|d>>>8)&65535)+c|0:163632,i,b);H[e+4>>2]=H[e+4>>2]-b}return a}function mca(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;a=Nb(a,0,256);d=H[b>>2]+c|0;e=I[d+3|0];f=I[d|0];g=e+f|0;h=I[d+2|0];d=I[d+1|0];i=h+d|0;H[a+8>>2]=g-i<<4;H[a>>2]=(g+i<<4)+-8192;g=d-h|0;e=f-e|0;d=N(g+e|0,4433)+256|0;H[a+12>>2]=d+N(g,-15137)>>9;H[a+4>>2]=d+N(e,6270)>>9;d=H[b+4>>2]+c|0;f=I[d+3|0];g=I[d|0];e=f+g|0;h=I[d+2|0];d=I[d+1|0];i=h+d|0;H[a+40>>2]=e-i<<4;e=(e+i<<4)+-8192|0;H[a+32>>2]=e;h=d-h|0;f=g-f|0;d=N(h+f|0,4433)+256|0;H[a+44>>2]=d+N(h,-15137)>>9;H[a+36>>2]=d+N(f,6270)>>9;d=H[b+8>>2]+c|0;f=I[d+3|0];g=I[d|0];h=f+g|0;i=I[d+2|0];j=I[d+1|0];d=i+j|0;H[a+72>>2]=h-d<<4;d=(d+h<<4)+-8192|0;H[a+64>>2]=d;h=j-i|0;g=g-f|0;f=N(h+g|0,4433)+256|0;H[a+76>>2]=f+N(h,-15137)>>9;f=f+N(g,6270)>>9;H[a+68>>2]=f;b=H[b+12>>2]+c|0;c=I[b+2|0];g=I[b+3|0];h=I[b|0];i=g+h|0;j=I[b+1|0];k=j+c|0;b=(i+k<<4)+-8192|0;l=H[a>>2];m=(b+l|0)+2|0;n=d+e|0;H[a+64>>2]=m-n>>2;H[a>>2]=m+n>>2;d=e-d|0;e=l-b|0;b=N(d+e|0,4433)+16384|0;H[a+96>>2]=b+N(d,-15137)>>15;H[a+32>>2]=b+N(e,6270)>>15;d=j-c|0;c=h-g|0;b=N(d+c|0,4433)+256|0;e=H[a+4>>2];c=b+N(c,6270)>>9;g=(e+c|0)+2|0;h=H[a+36>>2];j=h+f|0;H[a+68>>2]=g-j>>2;H[a+4>>2]=g+j>>2;f=h-f|0;e=e-c|0;c=N(f+e|0,4433)+16384|0;H[a+100>>2]=c+N(f,-15137)>>15;H[a+36>>2]=c+N(e,6270)>>15;c=H[a+8>>2];e=i-k<<4;f=(c+e|0)+2|0;g=H[a+72>>2];h=H[a+40>>2];i=g+h|0;H[a+72>>2]=f-i>>2;H[a+8>>2]=f+i>>2;f=h-g|0;e=c-e|0;c=N(f+e|0,4433)+16384|0;H[a+104>>2]=c+N(f,-15137)>>15;H[a+40>>2]=c+N(e,6270)>>15;c=H[a+12>>2];b=b+N(d,-15137)>>9;d=(c+b|0)+2|0;e=H[a+76>>2];f=H[a+44>>2];g=e+f|0;H[a+76>>2]=d-g>>2;H[a+12>>2]=d+g>>2;d=f-e|0;c=c-b|0;b=N(d+c|0,4433)+16384|0;H[a+108>>2]=b+N(d,-15137)>>15;H[a+44>>2]=b+N(c,6270)>>15}function Rh(a,b){a=a|0;b=b|0;var c=0;c=I[b+12|0]|I[b+13|0]<<8;a=I[a+458|0];c=a?c:c<<8|c>>>8;F[b+12|0]=c;F[b+13|0]=c>>>8;c=I[b+14|0]|I[b+15|0]<<8;c=a?c:c<<8|c>>>8;F[b+14|0]=c;F[b+15|0]=c>>>8;c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);c=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b|0]=c;F[b+1|0]=c>>>8;F[b+2|0]=c>>>16;F[b+3|0]=c>>>24;c=I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]<<16|I[b+7|0]<<24);c=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b+4|0]=c;F[b+5|0]=c>>>8;F[b+6|0]=c>>>16;F[b+7|0]=c>>>24;c=I[b+8|0]|I[b+9|0]<<8|(I[b+10|0]<<16|I[b+11|0]<<24);c=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b+8|0]=c;F[b+9|0]=c>>>8;F[b+10|0]=c>>>16;F[b+11|0]=c>>>24;c=I[b+16|0]|I[b+17|0]<<8|(I[b+18|0]<<16|I[b+19|0]<<24);c=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b+16|0]=c;F[b+17|0]=c>>>8;F[b+18|0]=c>>>16;F[b+19|0]=c>>>24;c=I[b+20|0]|I[b+21|0]<<8|(I[b+22|0]<<16|I[b+23|0]<<24);c=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b+20|0]=c;F[b+21|0]=c>>>8;F[b+22|0]=c>>>16;F[b+23|0]=c>>>24;c=I[b+24|0]|I[b+25|0]<<8|(I[b+26|0]<<16|I[b+27|0]<<24);c=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b+24|0]=c;F[b+25|0]=c>>>8;F[b+26|0]=c>>>16;F[b+27|0]=c>>>24;c=I[b+28|0]|I[b+29|0]<<8|(I[b+30|0]<<16|I[b+31|0]<<24);c=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b+28|0]=c;F[b+29|0]=c>>>8;F[b+30|0]=c>>>16;F[b+31|0]=c>>>24;c=I[b+32|0]|I[b+33|0]<<8|(I[b+34|0]<<16|I[b+35|0]<<24);c=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b+32|0]=c;F[b+33|0]=c>>>8;F[b+34|0]=c>>>16;F[b+35|0]=c>>>24;c=I[b+36|0]|I[b+37|0]<<8|(I[b+38|0]<<16|I[b+39|0]<<24);a=a?c:c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);F[b+36|0]=a;F[b+37|0]=a>>>8;F[b+38|0]=a>>>16;F[b+39|0]=a>>>24}function nz(a,b){var c=0,d=0,e=O(0),f=0,g=0,h=0;f=H[a+8>>2];c=H[a+4>>2];if(f>>>0<=c+3>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+8>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+16>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+24>>3]=d;if(c+3>>>0>=f>>>0){g=0}else{g=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c;g=(g|0)==1}F[b+32|0]=g;if(c+3>>>0>>0){h=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+36>>2]=h;h=0;a:{if(c+3>>>0>=f>>>0){g=0;break a}g=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+40>>2]=g;if(c+3>>>0>>0){h=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+44>>2]=h;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+48>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+56>>3]=d;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+64>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+72>>3]=d;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+80>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[a+4>>2]=c+4;d=+e}else{d=0}M[b+88>>3]=d}function Ff(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;h=xb-32|0;xb=h;f=a;g=H[a+144>>2];a:{if(g){break a}while(1){a=H[f+48>>2];if(!a){g=163632;break a}g=oc(1,12);b:{if(!g){g=163632;break b}Yh(g,a)}a=H[f+144>>2];H[f+144>>2]=a?a:g;if(!a){break a}af(g);g=H[f+144>>2];if(!g){continue}break}}if(K[g+4>>2]<=b>>>0){c=0}else{H[h+20>>2]=d;H[h+16>>2]=c;H[h+8>>2]=0;F[h+24|0]=(e|0)!=0;H[h+12>>2]=f;c=H[f+144>>2];c:{if(c){break c}while(1){a=H[f+48>>2];if(!a){c=163632;break c}c=oc(1,12);d:{if(!c){c=163632;break d}Yh(c,a)}a=H[f+144>>2];H[f+144>>2]=a?a:c;if(!a){break c}af(c);c=H[f+144>>2];if(!c){continue}break}}g=163632;a=163632;c=H[c>>2];c=c?c:163632;c=K[c+16>>2]<10?163632:H[c+12>>2];d=I[c+8|0]|I[c+9|0]<<8;if(d){a=c+((d<<8|d>>>8)&65535)|0}c=I[a|0]|I[a+1|0]<<8;e:{if(((c<<8|c>>>8)&65535)>>>0<=b>>>0){break e}c=(b<<1)+a|0;c=I[c+2|0]|I[c+3|0]<<8;if(!c){break e}g=((c<<8|c>>>8)&65535)+a|0}a=H[f+144>>2];f:{if(a){break f}while(1){c=H[f+48>>2];if(!c){a=163632;break f}a=oc(1,12);g:{if(!a){a=163632;break g}Yh(a,c)}c=H[f+144>>2];H[f+144>>2]=c?c:a;if(!c){break f}af(a);a=H[f+144>>2];if(!a){continue}break}}a=H[a+8>>2]+N(b,24)|0;c=0;h:{e=h+8|0;if(!H[e+12>>2]){break h}b=H[H[e+8>>2]>>2];if(!(H[a>>2]>>>(b>>>4)&1)|!(H[a+4>>2]>>>b&1)|!(H[a+8>>2]>>>(b>>>9)&1)){break h}a=I[g+4|0]|I[g+5|0]<<8;if(!a){break h}b=I[g|0]|I[g+1|0]<<8;i=(b<<8|b>>>8)&65535;f=(a<<8|a>>>8)&65535;j=f>>>0>1?f:1;d=g+4|0;b=0;c=1;while(1){a=((a<<8|(a&65280)>>>8)&65535)>>>0>b>>>0?(d+(b<<1)|0)+2|0:163632;a=I[a|0]|I[a+1|0]<<8;if(a){a=((a<<8|a>>>8)&65535)+g|0}else{a=163632}if(GF(a,e,i)){break h}b=b+1|0;c=f>>>0>b>>>0;if((b|0)==(j|0)){break h}a=I[d|0]|I[d+1|0]<<8;continue}}}xb=h+32|0;return c}function QL(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;d=a+10|0;if(d>>>0>K[b+160>>2]){vc(b,8)}c=I[a+6|0]|I[a+7|0]<<8|(I[a+8|0]<<16|I[a+9|0]<<24);k=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=I[a+2|0]|I[a+3|0]<<8|(I[a+4|0]<<16|I[a+5|0]<<24);g=c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);if(!(!(g>>>0<10|H[b+160>>2]-a>>>0>>0)&(g-10>>>0)/11>>>0>=k>>>0)){vc(b,8)}if(k){l=a+4|0;c=1;while(1){m=I[d+2|0]|(I[d+1|0]<<8|I[d|0]<<16);a=I[d+7|0]|I[d+8|0]<<8|(I[d+9|0]<<16|I[d+10|0]<<24);e=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=I[d+3|0]|I[d+4|0]<<8|(I[d+5|0]<<16|I[d+6|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(!(e>>>0>>0&a>>>0>>0)){vc(b,8)}if(c>>>0>m>>>0){vc(b,8)}a:{if(!a){break a}a=a+l|0;if(a>>>0>K[b+160>>2]){vc(b,8)}c=a-4|0;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);f=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);b:{if(f>>>0>H[b+160>>2]-a>>>2>>>0){vc(b,8);break b}if(!f){break a}}c=0;h=0;while(1){i=I[a+2|0]|(I[a+1|0]<<8|I[a|0]<<16);j=i+I[a+3|0]|0;if(j>>>0>=1114112){vc(b,8)}if(h>>>0>i>>>0){vc(b,8)}a=a+4|0;h=j+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}c:{if(!e){break c}a=e+l|0;if(a>>>0>K[b+160>>2]){vc(b,8)}c=a-4|0;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);d:{if(c>>>0>(H[b+160>>2]-a>>>0)/5>>>0){vc(b,8);break d}if(!c){break c}}h=0;e=0;while(1){i=I[a+3|0];j=I[a+4|0];f=I[a+2|0]|(I[a+1|0]<<8|I[a|0]<<16);if(f>>>0>=1114112){vc(b,8)}if(f>>>0>>0){vc(b,8)}if(!(H[b+164>>2]<=0|K[b+172>>2]>(j|i<<8)>>>0)){vc(b,16)}a=a+5|0;h=f+1|0;e=e+1|0;if((c|0)!=(e|0)){continue}break}}d=d+11|0;c=m+1|0;n=n+1|0;if((n|0)!=(k|0)){continue}break}}return 0}function KF(a,b,c,d,e,f,g){var h=0,i=0;b=Xh(a,b);a:{b:{if((d|0)==-1){break b}a=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);if((a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))>>>0<65537){break b}a=I[b+10|0]|I[b+11|0]<<8|(I[b+12|0]<<16|I[b+13|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=a?a+b|0:163632;h=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);i=a;a=(h<<8&16711680|h<<24|(h>>>8&65280|h>>>24))>>>0>d>>>0?(a+(d<<3)|0)+8|0:163632;a=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);d=a?i+a|0:163632;a=I[d+4|0]|I[d+5|0]<<8;if(!a){break b}a=(a<<8|a>>>8)&65535;h=a>>>0>1?a:1;a=0;while(1){i=d+N(a,6)|0;i=I[i+6|0]|I[i+7|0]<<8;if(((i<<8|i>>>8)&65535)!=(c|0)){a=a+1|0;if((h|0)!=(a|0)){continue}break b}break}a=d+N(a,6)|0;a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);d=a?a+d|0:163632;if(d){break a}}d=163632;a=163632;h=I[b+6|0]|I[b+7|0]<<8;if(h){a=b+((h<<8|h>>>8)&65535)|0}b=I[a|0]|I[a+1|0]<<8;b=((b<<8|b>>>8)&65535)>>>0>c>>>0?(N(c,6)+a|0)+2|0:163632;b=I[b+4|0]|I[b+5|0]<<8;if(!b){break a}d=((b<<8|b>>>8)&65535)+a|0}a=I[d+2|0]|I[d+3|0]<<8;a=(a<<8|a>>>8)&65535;c:{if(!f){break c}b=a-e|0;a=a>>>0>>0?0:b;b=H[f>>2];a=a>>>0>>0?a:b;H[f>>2]=a;if(!a){break c}e=(d+(e<<1)|0)+4|0;if(a&1){b=I[e|0]|I[e+1|0]<<8;H[g>>2]=(b<<8|b>>>8)&65535;e=e+2|0;g=g+4|0;f=a-1|0}else{f=a}if((a|0)==1){break c}b=f;while(1){a=I[e|0]|I[e+1|0]<<8;H[(f?g:784992)>>2]=(a<<8|a>>>8)&65535;a=(f|0)!=0;c=(a<<2)+g|0;d=I[e+2|0]|I[e+3|0]<<8;H[((a|0)==(f|0)?784992:c)>>2]=(d<<8|d>>>8)&65535;d=(a|0)!=(f|0);g=c+(d<<2)|0;f=f-(a+d|0)|0;e=e+4|0;b=b-2|0;if(b){continue}break}}}function bo(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;f=H[b+4>>2];a:{b:{if(f>>>0>a>>>0){break b}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break b}g=H[b+12>>2]-2|0;H[b+12>>2]=g;e=1;if((g|0)<=0){break b}h=I[a|0]|I[a+1|0]<<8;if(!h){break a}e=a+2|0;if(e>>>0>>0|d>>>0>>0){break b}i=d-e|0;d=(h<<8|h>>>8)&65535;e=d<<2;if(i>>>0>>0){break b}g=g-e|0;H[b+12>>2]=g;e=0;if((g|0)<=0){break a}g=a+2|0;if(f>>>0>g>>>0){break a}n=d>>>0>1?d:1;while(1){e=H[b+8>>2];if(e>>>0>>0|e-g>>>0<4){break b}f=H[c>>2];e=H[b+12>>2]-4|0;H[b+12>>2]=e;if((e|0)<=0){break b}e=(k<<2)+a|0;h=F[g|0];d=I[e+3|0]<<16|h<<24|I[e+4|0]<<8|I[e+5|0];e=(d|0)!=0&(h|0)<0;c:{if(!(e|!d)){e=0;f=d+f|0;l=H[b+4>>2];d:{e:{if(f>>>0>>0){break e}h=H[b+8>>2];if(h>>>0>>0|h-f>>>0<6){break e}j=H[b+12>>2];d=j-6|0;H[b+12>>2]=d;if((d|0)<=0){break e}d=f+4|0;if(d>>>0>>0|d>>>0>h>>>0|h-d>>>0<2){break e}j=j-8|0;H[b+12>>2]=j;if((j|0)<=0){break e}d=I[f+4|0]|I[f+5|0]<<8;i=(d<<8|d>>>8)&65535;m=i<<1;if(d){d=f+6|0;if(d>>>0>>0|d>>>0>h>>>0|m>>>0>h-d>>>0){break e}j=j-m|0;H[b+12>>2]=j;if((j|0)<=0){break e}}d=I[f+2|0]|I[f+3|0]<<8;d=d<<8|d>>>8;if(i>>>0<(d&65535)>>>0){break e}i=i+(d&65535)|0;d=I[f|0]|I[f+1|0]<<8;d=(d<<8|d>>>8)&65535;if(d>>>0>=4294967295/(i>>>0)>>>0?i:0){break e}i=N(d,i);d=1;if(!i){break d}d=(f+m|0)+6|0;if(d>>>0>>0|d>>>0>h>>>0|i>>>0>h-d>>>0){break e}e=j-i|0;H[b+12>>2]=e;e=(e|0)>0}d=e}if(d){break c}e=H[b+28>>2];if(e>>>0>31){break b}H[b+28>>2]=e+1;if(!I[b+24|0]){break b}F[g|0]=0;F[g+1|0]=0;F[g+2|0]=0;F[g+3|0]=0;break c}if(e){break b}}e=1;k=k+1|0;if((n|0)==(k|0)){break a}g=((k<<2)+a|0)+2|0;if(g>>>0>=K[b+4>>2]){continue}break}}e=0}return e}function a1(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-96|0;xb=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(!H[a+80>>2]){break i}vi(c+80|0,a,0,0);d=I[c+91|0];b=d<<24>>24;if((b|0)<0?H[c+84>>2]:d){H[197455]=0;b=ca(1762,c+32|0,404840,c+80|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break h}H[c+56>>2]=b;H[197455]=0;H[c+60>>2]=1;b=H[c+60>>2];H[c+8>>2]=H[c+56>>2];H[c+12>>2]=b;e=da(1763,c- -64|0,c+8|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break g}if(F[c+55|0]<0){Kb(H[c+44>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}H[197455]=0;a=a+8|0;ia(1764,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;qa(1765,a|0,e|0,0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;ga(1766,a|0,e|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=aa(899,32)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[c+32>>2]=b;H[c+36>>2]=4;H[c+40>>2]=-2147483640;H[197455]=0;Mb(b,405068,4);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[b+16>>2]=0;F[c+27|0]=0;H[197455]=0;H[c+16>>2]=0;ka(1767,a|0,c+32|0,e|0,c+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+43|0]<0){Kb(H[c+32>>2])}b=H[e>>2];if(b){a=H[e+4>>2];if((b|0)==(a|0)){a=b}else{while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}d=a-24|0;if(F[a-13|0]<0){Kb(H[d>>2])}a=d;if((b|0)!=(a|0)){continue}break}a=H[e>>2]}H[e+4>>2]=b;Kb(a)}b=F[c+91|0]}if(b<<24>>24>=0){break i}Kb(H[c+80>>2])}xb=c+96|0;return}a=$()|0;_()|0;break b}a=$()|0;_()|0;Vb(c+32|0);break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[c+27|0]<0){Kb(H[c+16>>2])}if(F[c+43|0]>=0){break c}Kb(H[c+32>>2])}yc(e)}if(F[c+91|0]<0){Kb(H[c+80>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Vn(a){a=a|0;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;a:{b:{if(H[a+20>>2]){break b}b=H[a+48>>2];if(!b|(b|0)==1){break b}h=H[a+52>>2];m=h+(b<<2)|0;j=b-1|0;k=h+4|0;h=H[40908];while(1){f=H[(j?k:163632)>>2];g=H[f+12>>2];if(g){i=H[f+16>>2];n=i+(g<<4)|0;while(1){c=g?i:163632;b=H[c+12>>2];c:{if(b>>>0>=K[a+48>>2]){H[196248]=h;d=h;break c}d=H[H[a+52>>2]+(b<<2)>>2]}b=d;if(!b){break a}d=0;d:{e:{f:{g:{e=I[c|0];switch(e>>>4&3){case 1:break f;case 0:break g;case 2:break e;default:break d}}d=H[b>>2]-H[f>>2]|0;break d}d=H[b>>2]-H[f+4>>2]|0;break d}d=H[a+4>>2]+H[b>>2]-(H[a>>2]+H[a+8>>2])|0}b=d-H[c+8>>2]|0;h:{i:{if(e&8){d=H[f>>2]+(H[c+4>>2]&268435455)|0;if((e&7)==4){c=b<<8&16711680|b<<24|(b>>>8&65280|b>>>24);F[d|0]=c;e=c>>>8|0;F[d+1|0]=e;F[d+2|0]=c>>>16;l=d;d=c>>>24|0;F[l+3|0]=d;c=d|(e&65280|(c<<8&16711680|c<<24));if((b|0)!=(c|0)|c>>31){break i}break h}c=b<<8|(b&65280)>>>8;F[d|0]=c;F[d+1|0]=c>>>8;c=b<<16;d=c>>31;if((b|0)!=c>>16|d){break i}break h}j:{switch((e&7)-3|0){case 1:d=H[f>>2]+(H[c+4>>2]&268435455)|0;c=b<<8&16711680|b<<24|(b>>>8&65280|b>>>24);F[d|0]=c;e=c>>>8|0;F[d+1|0]=e;F[d+2|0]=c>>>16;l=d;d=c>>>24|0;F[l+3|0]=d;if((b|0)!=(d|(e&65280|(c<<8&16711680|c<<24)))){break i}break h;case 0:c=H[f>>2]+(H[c+4>>2]&268435455)|0;F[c+2|0]=b;F[c+1|0]=b>>>8;F[c|0]=b>>>16;if(b>>>0>=16777216){break i}break h;default:break j}}c=H[f>>2]+(H[c+4>>2]&268435455)|0;d=b<<8|(b&65280)>>>8;F[c|0]=d;F[c+1|0]=d>>>8;if(b>>>0<65536){break h}}H[a+20>>2]=H[a+20>>2]|2}b=!!g;g=g-b|0;i=(b<<4)+i|0;if((n|0)!=(i|0)){continue}break}}b=!!j;j=j-b|0;k=(b<<2)+k|0;if((m|0)!=(k|0)){continue}break}}return}H[a+20>>2]=H[a+20>>2]|1}function Qi(a,b){var c=0,d=0,e=0;a:{b:{c:{d:{switch(a-247|0){default:if((a|0)!=28){break c}d=H[b+12>>2];a=H[b+4>>2];e:{if(d>>>0>=a>>>0){F[b+16|0]=1;c=163632;break e}c=d+H[b>>2]|0}e=I[c|0]<<8;c=a;a=d+1|0;f:{if(c>>>0<=a>>>0){F[b+16|0]=1;a=163632;break f}a=a+H[b>>2]|0}c=e|I[a|0];a=H[b+24>>2];g:{if(a>>>0>2]){H[b+24>>2]=a+1;a=H[b+36>>2]+(a<<3)|0;break g}F[b+20|0]=1;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}M[a>>3]=c<<16>>16;h:{a=H[b+4>>2];if(I[b+16|0]|d>>>0>a>>>0){break h}c=d+2|0;if(c>>>0>a>>>0){break h}break b}break a;case 0:case 1:case 2:case 3:d=H[b+12>>2];i:{if(d>>>0>=K[b+4>>2]){F[b+16|0]=1;c=163632;break i}c=d+H[b>>2]|0}c=((I[c|0]|(a<<8)+2304)<<16)+7077888>>16;a=H[b+24>>2];j:{if(a>>>0>2]){H[b+24>>2]=a+1;a=H[b+36>>2]+(a<<3)|0;break j}F[b+20|0]=1;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}M[a>>3]=c|0;k:{a=H[b+4>>2];if(I[b+16|0]|d>>>0>a>>>0){break k}c=d+1|0;if(c>>>0>a>>>0){break k}break b}break a;case 4:case 5:case 6:case 7:break d}}d=H[b+12>>2];l:{if(d>>>0>=K[b+4>>2]){F[b+16|0]=1;c=163632;break l}c=d+H[b>>2]|0}c=-108-(I[c|0]|(a<<16)-16449536>>>8)|0;a=H[b+24>>2];m:{if(a>>>0>2]){H[b+24>>2]=a+1;a=H[b+36>>2]+(a<<3)|0;break m}F[b+20|0]=1;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}M[a>>3]=c|0;n:{a=H[b+4>>2];if(I[b+16|0]|d>>>0>a>>>0){break n}c=d+1|0;if(c>>>0>a>>>0){break n}break b}break a}if(a-32>>>0<=214){c=a-139|0;a=H[b+24>>2];o:{if(a>>>0>2]){H[b+24>>2]=a+1;a=H[b+36>>2]+(a<<3)|0;break o}F[b+20|0]=1;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}M[a>>3]=c|0;return}F[b+40|0]=1;H[b+24>>2]=0;return}H[b+12>>2]=c;return}F[b+16|0]=1;H[b+12>>2]=a}function Eda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;t=xb-288|0;xb=t;u=H[a+332>>2];a=H[b+84>>2];b=t;while(1){m=H[a+128>>2];n=G[c+64>>1];i=N(H[a+32>>2],G[c+16>>1]);j=N(H[a+224>>2],G[c+112>>1]);g=i-j|0;k=N(H[a+96>>2],G[c+48>>1]);f=N(H[a+160>>2],G[c+80>>1]);o=k-f|0;h=N(g+o|0,4433);p=N(H[a+64>>2],G[c+32>>1]);q=N(H[a+192>>2],G[c+96>>1]);r=p-q<<13;l=N(G[c>>1],H[a>>2])<<13|1024;s=r+l|0;g=h+N(g,6270)|0;H[b+240>>2]=s-g>>11;H[b+24>>2]=g+s>>11;g=l-r|0;h=h+N(o,-15137)|0;H[b+168>>2]=g-h>>11;H[b+96>>2]=h+g>>11;m=N(N(m,n),10033);n=m+l|0;g=q<<13;o=g+N(p,11190)|0;q=n-o|0;s=f+i|0;h=N(s+j|0,7053);r=N(k,-4433);v=h+((r+N(i,-5540)|0)+N(j,-16244)|0)|0;H[b+144>>2]=q-v>>11;H[b+120>>2]=q+v>>11;n=n+o|0;o=N(i,2295);i=N(k,10703);k=h+N(s,2139)|0;o=(o+i|0)+k|0;H[b+264>>2]=n-o>>11;H[b>>2]=n+o>>11;p=N(p,2998)-g|0;l=l-m|0;m=p+l|0;g=r+N(f,-12112)|0;f=N(f+j|0,-8565);k=k+(g+f|0)|0;H[b+216>>2]=m-k>>11;H[b+48>>2]=k+m>>11;l=l-p|0;j=f+(h+(N(j,12998)-i|0)|0)|0;H[b+192>>2]=l-j>>11;H[b+72>>2]=j+l>>11;b=b+4|0;a=a+4|0;c=c+2|0;w=w+1|0;if((w|0)!=6){continue}break}a=u+128|0;j=0;b=t;while(1){i=H[b+20>>2];f=H[b+4>>2];l=N(i+f|0,2998);c=H[(j<<2)+d>>2]+e|0;k=H[b+12>>2];h=l+(k+f<<13)|0;u=(H[b>>2]<<13)+131072|0;p=H[b+16>>2];m=u+N(p,5793)|0;n=N(H[b+8>>2],10033);g=m+n|0;F[c|0]=I[a+(h+g>>>18&1023)|0];F[c+5|0]=I[a+(g-h>>>18&1023)|0];f=f-(i+k|0)<<13;h=u+N(p,-11586)|0;F[c+1|0]=I[a+(f+h>>>18&1023)|0];F[c+4|0]=I[a+(h-f>>>18&1023)|0];i=l+(i-k<<13)|0;f=m-n|0;F[c+2|0]=I[a+(i+f>>>18&1023)|0];F[c+3|0]=I[a+(f-i>>>18&1023)|0];b=b+24|0;j=j+1|0;if((j|0)!=12){continue}break}xb=t+288|0}function er(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;a:{e=H[a+4>>2];if(!e){break a}k=H[a+44>>2];if(!k){break a}l=e+40|0;h=b>>>0>=k>>>0;if(!h){g=l+(b<<2)|0;o=I[g|0];m=I[g+2|0];n=I[g+1|0];g=I[g+3|0]}if(c>>>0>>0){d=l+(c<<2)|0;j=I[d|0];i=I[d+3|0];f=I[d+2|0];d=I[d+1|0]}b:{if(!h){h=l+(b<<2)|0;F[h|0]=j;F[h+1|0]=d;F[h+2|0]=f;F[h+3|0]=i;F[a+445|0]=0;e=H[a+4>>2];if(!e){break b}}if(K[a+44>>2]<=c>>>0){break b}d=(c<<2)+e|0;F[d+41|0]=n;F[d+40|0]=o;F[d+42|0]=m;F[d+43|0]=g;F[a+445|0]=0}j=H[a+20>>2];if((j|0)<=0){break a}d=H[a+16>>2];if((d|0)<=0){break a}l=b&15;k=b&1;h=c&15;o=c&1;i=0;while(1){e=0;if((d|0)>0){while(1){c:{d:{e:{f:{f=J[a+26>>1];if((f|0)!=8){g=H[a+56>>2];m=N(H[a+52>>2],i);n=N(e,f)>>>3|0;j=I[g+(m+n|0)|0];d=0;g:{h:{i:{f=f-1|0;switch(f|0){case 0:break h;case 3:break i;default:break g}}d=4-((e&1)<<2)|0;d=(j&15<>>d|0;break g}d=(e^-1)&7;d=(j&1<>>d|0}if((b|0)!=(d|0)){break c}g=n+(g+m|0)|0;d=b;switch(f|0){case 0:break e;case 3:break f;default:break c}}f=H[a+56>>2]+(N(H[a+52>>2],i)+e|0)|0;d=I[f|0];if((d|0)!=(b|0)){break c}F[f|0]=c;break d}d=4-((e&1)<<2)|0;F[g|0]=I[g|0]&(15<>1];if((d|0)==8){F[H[a+56>>2]+(N(H[a+52>>2],i)+e|0)|0]=b;break j}f=H[a+56>>2]+N(H[a+52>>2],i)+(N(d,e)>>>3)|0;k:{switch(d-1|0){case 3:d=4-((e&1)<<2)|0;F[f|0]=I[f|0]&(15<>2];e=e+1|0;if((d|0)>(e|0)){continue}break}j=H[a+20>>2]}i=i+1|0;if((i|0)<(j|0)){continue}break}}}function cma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=O(0),k=O(0);g=xb-16|0;xb=g;c=H[b+4>>2];d=c+16|0;if(H[c+16>>2]){f=H[c+12>>2];e=H[c+8>>2];j=L[c+20>>2];k=L[c+24>>2];if(!(j==L[c+28>>2]&k==L[c+32>>2])){zb[H[e+16>>2]](e,f,d,j,k,H[e+36>>2])}zb[H[e+28>>2]](e,f,d,H[e+48>>2])}H[d>>2]=0;H[d+4>>2]=0;H[d+16>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;d=H[a+24>>2];c=d-4|0;if(d>>>0<=3){F[a+20|0]=1}f=H[a+32>>2];a:{if(f>>>0<=c>>>0){c=H[40909];e=H[40908];H[196248]=e;H[196249]=c;break a}c=H[a+36>>2]+(c<<3)|0;e=H[c>>2];c=H[c+4>>2]}H[g>>2]=e;H[g+4>>2]=c;if(d>>>0<=2){F[a+20|0]=1}c=d-3|0;b:{if(c>>>0>=f>>>0){c=H[40909];e=H[40908];H[196248]=e;H[196249]=c;break b}c=H[a+36>>2]+(c<<3)|0;e=H[c>>2];c=H[c+4>>2]}H[g+8>>2]=e;H[g+12>>2]=c;e=H[b+12>>2];if(d>>>0<=1){F[a+20|0]=1}c=d-2|0;c:{if(c>>>0>=f>>>0){c=H[40909];f=H[40908];H[196248]=f;H[196249]=c;x(0,f|0);x(1,c|0);h=+z();break c}h=M[H[a+36>>2]+(c<<3)>>3]}d:{if(P(h)<2147483648){c=~~h;break d}c=-2147483648}f=0;e:{if(c>>>0<=255){f=I[c+108816|0];i=H[e+52>>2];if((i|0)!=163632){f=ql(i,f,H[e+216>>2]);e=H[b+12>>2];c=H[a+24>>2];break e}f=c>>>0<229?H[e+172>>2]?0:f:0}c=d}d=d-1|0;if(c>>>0<=d>>>0){F[a+20|0]=1}f:{if(d>>>0>=K[a+32>>2]){d=H[40909];c=H[40908];H[196248]=c;H[196249]=d;x(0,c|0);x(1,d|0);h=+z();break f}h=M[H[a+36>>2]+(d<<3)>>3]}g:{if(P(h)<2147483648){d=~~h;break g}d=-2147483648}h:{i:{if(d>>>0>255){break i}c=I[d+108816|0];i=H[e+52>>2];j:{if((i|0)!=163632){d=ql(i,c,H[e+216>>2]);break j}d=d>>>0<229?H[e+172>>2]?0:c:0}if(!d|!f|I[a+160|0]){break i}if(!ms(H[b+12>>2],H[b>>2],f,H[b+4>>2],1,0)){break i}if(ms(H[b+12>>2],H[b>>2],d,H[b+4>>2],1,g)){break h}}F[a+40|0]=1}xb=g+16|0}function pt(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;j=xb-80|0;xb=j;c=I[c+2|0]|I[c+3|0]<<8;d=c<<8|c>>>8;c=d&65535;e=H[b+4>>2];if(d&32768){H[a+4>>2]=H[e+64>>2]}if(c&8192){b=H[e+64>>2]+1|0;d=H[e+68>>2];H[a+8>>2]=b>>>0>>0?b:d}b=c&15;a:{if(!b){break a}c=H[a+4>>2];d=H[a+8>>2];if(c>>>0>=d>>>0){break a}b=I[b+106144|0];k=b>>>4|0;f=k>>>0<2?k:2;l=b&15;i=l>>>0<2?l:2;n=f+i|0;b=d-c|0;if(n>>>0>b>>>0){break a}g=H[e+64>>2]+1|0;h=H[e+68>>2];g=g>>>0>>0?g:h;if(g-c>>>0>=2){Jd(e,c,g);d=H[a+8>>2];c=H[a+4>>2];b=d-c|0}if(b>>>0>=2){Jd(e,c,d);d=H[a+8>>2];c=H[a+4>>2]}b=H[e+80>>2];g=b+N(c,20)|0;h=N(f,20);e=Ob(j,g,h);m=N(i,20);o=Ob(e+40|0,(b+N(d,20)|0)+N(i,-20)|0,m);if((f|0)!=(i|0)){$c(g+m|0,g+h|0,N(d-(c+n|0)|0,20));c=H[a+4>>2]}Ob(N(c,20)+b|0,o,m);Ob((b+N(H[a+8>>2],20)|0)+N(f,-20)|0,e,h);if((k|0)==3){d=b+N(H[a+8>>2],20)|0;c=d-20|0;H[e+16>>2]=H[c+16>>2];f=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=f;f=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=f;d=d-40|0;f=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=f;f=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=f;H[c+16>>2]=H[d+16>>2];d=H[e+4>>2];c=(b+N(H[a+8>>2],20)|0)-40|0;H[c>>2]=H[e>>2];H[c+4>>2]=d;H[c+16>>2]=H[e+16>>2];d=H[e+12>>2];H[c+8>>2]=H[e+8>>2];H[c+12>>2]=d}if((l|0)!=3){break a}c=b+N(H[a+4>>2],20)|0;H[e+16>>2]=H[c+16>>2];d=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=d;d=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=d;d=H[c+24>>2];H[c>>2]=H[c+20>>2];H[c+4>>2]=d;d=H[c+32>>2];H[c+8>>2]=H[c+28>>2];H[c+12>>2]=d;H[c+16>>2]=H[c+36>>2];a=b+N(H[a+4>>2],20)|0;H[a+36>>2]=H[e+16>>2];b=H[e+12>>2];H[a+28>>2]=H[e+8>>2];H[a+32>>2]=b;b=H[e+4>>2];H[a+20>>2]=H[e>>2];H[a+24>>2]=b}xb=j+80|0}function yE(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{switch(c-1|0){case 0:c:{d:{e:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break c}}c=H[b+100>>2];d=I[a+2|0]|I[a+3|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}d=Gc(d,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);if((d|0)!=-1){Wh(a+4|0,b,a,a+6|0,H[c+88>>2]+N(H[c+64>>2],20)|0);H[c+64>>2]=H[c+64>>2]+1}d=(d|0)!=-1;break c}c=H[b+100>>2];f=I[a+2|0]|I[a+3|0]<<8;if(f){e=((f<<8|f>>>8)&65535)+a|0}else{e=163632}f=Gc(e,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);if((f|0)==-1){break c}e=I[a+6|0]|I[a+7|0]<<8;if(f>>>0>=((e<<8|e>>>8)&65535)>>>0){break c}d=1;g=a+4|0;e=a;a=N(jma(I[a+4|0]|I[a+5|0]<<8),f);Wh(g,b,e,(a|0)<0?163632:(e+(a<<1)|0)+8|0,H[c+88>>2]+N(H[c+64>>2],20)|0);H[c+64>>2]=H[c+64>>2]+1}return d;case 1:f:{g:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break f;case 0:break g;default:break a}}return JE(a,b)}return IE(a,b);case 2:if((I[a|0]|I[a+1|0]<<8)!=256){break a}return HE(a,b);case 3:if((I[a|0]|I[a+1|0]<<8)!=256){break a}return FE(a,b);case 4:if((I[a|0]|I[a+1|0]<<8)!=256){break a}return DE(a,b);case 5:if((I[a|0]|I[a+1|0]<<8)!=256){break a}return CE(a,b);case 6:return AE(a,b);case 7:h:{i:{j:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break h;case 1:break i;case 0:break j;default:break a}}return zE(b,a)}return Tr(a,b)}return Sr(a,b);case 8:break b;default:break a}}if((I[a|0]|I[a+1|0]<<8)==256){c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?c+a|0:163632;a=I[a+2|0]|I[a+3|0]<<8;d=yE(c,b,(a<<8|a>>>8)&65535)}else{d=0}}return d}function zB(a,b){var c=0,d=0,e=0,f=0,g=0;e=xb-144|0;xb=e;a:{if(!H[a+72>>2]){break a}f=H[a+68>>2];if(!f|!H[a+76>>2]){break a}b:{c:{d:{d=J[a+138>>1];if(!(I[a+13|0]&64|((d|0)!=1|J[a+90>>1]!=6))){c=J[a+204>>1];if(f>>>0<0-c>>>0){f=((c+f|0)-1>>>0)/(c>>>0)|0}else{f=0}g=N(f,c);f=J[a+84>>1];c=gma(g,0,f,0);d=(yb|0)!=0;e:{f:{g:{if(f){if(d){c=H[a>>2];d=H[a+628>>2];H[e+64>>2]=274118;Pb(d,c,275233,e- -64|0);f=J[a+84>>1];c=gma(f,0,g,0);d=(yb|0)!=0;break g}if(!(c&7)){break f}if(!d){break d}c=H[a>>2];d=H[a+628>>2];H[e+80>>2]=274118;Pb(d,c,275233,e+80|0);c=0;break d}if(c&7){break d}}if(!f){break e}}if(!(d&1)){break e}c=H[a>>2];d=H[a+628>>2];H[e+48>>2]=274118;Pb(d,c,275233,e+48|0);c=0}c=c>>>3|0;break c}c=gma(J[a+84>>1],0,f,0);if(yb){c=H[a>>2];d=H[a+628>>2];H[e+128>>2]=273466;Pb(d,c,275233,e+128|0);d=J[a+138>>1];c=0}h:{if((d|0)!=1){break h}f=J[a+98>>1];c=gma(f,0,c,0);d=yb;if(!f|!d){break h}c=H[a>>2];d=H[a+628>>2];H[e+112>>2]=273466;Pb(d,c,275233,e+112|0);c=0}d=(c>>>3|0)+((c&7)!=0)|0;c=gma(d,0,b,0);b=yb;if(!d|!b){break b}b=H[a>>2];c=H[a+628>>2];H[e+96>>2]=274118;Pb(c,b,275233,e+96|0);c=0;break b}c=(c>>>3|0)+1|0}d=J[a+206>>1];g=N(d,J[a+204>>1]);if(!g){c=0;Pb(H[a+628>>2],H[a>>2],274614,0);break a}b=gma(c,0,N(d,0-d>>>0>b>>>0?((b+d|0)-1>>>0)/(d>>>0)|0:0),0);d=yb;if(!(!c|!d)){b=H[a>>2];c=H[a+628>>2];H[e+32>>2]=274118;Pb(c,b,275233,e+32|0);b=0}c=(b|0)/(g|0)|0;f=c+c|0;if(!(!c|c>>>0<=f>>>0)){c=H[a>>2];d=H[a+628>>2];H[e+16>>2]=274118;Pb(d,c,275233,e+16|0);f=0}c=f+b|0}d=H[a+76>>2];c=gma(d,0,c,0);b=yb;if(!d|!b){break a}b=H[a>>2];a=H[a+628>>2];H[e>>2]=274118;Pb(a,b,275233,e);c=0}xb=e+144|0;return c}function Yja(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;g=H[b+68>>2];if(g){i=H[b+80>>2];while(1){d=8;f=N(e,20)+i|0;c=H[f>>2];h=Nr(c);b=h>>>8|0;a:{b:{c:{if(c-2387>>>0<2){break c}d=1;d:{e:{f:{a=c-7394|0;if(a>>>0>20){break f}a=1<>>0<6){break e}if(c-2674>>>0<2){break c}if(c-7406>>>0<4){d=18;break c}if((c|0)==2641){a=12;d=7;break a}d=8;if((c&-3)==70401){break c}d=3;if(c-70459>>>0<2){break c}g:{if((c|0)<=2810){if((c|0)==2432|(c|0)==2556){break g}break d}if((c|0)==2811|(c|0)==2901){break c}if((c|0)!=3200){break d}}d=11;break c}d=18;break c}if((c&-2)==8208){d=11;break c}if((c|0)==9676){d=12;break c}a=0;d=h&255;if(d>>>0>=32){break b}}a=1<>>7|0){case 5:a=c>>>0<3139?7:9;break a;case 6:a=c-3287>>>0<4294967276?7:9;break a;case 0:case 1:case 2:case 3:case 4:case 7:break j;default:break a}}a=12;break a;case 3:a=9;b=c-2560|0;if(b>>>0>=768){break a}a=H[(b>>>5&134217724)+135636>>2];break a;case 5:a=9;b=c-2560|0;if(b>>>0>=896){break a}a=H[(b>>>5&134217724)+135660>>2];break a;case 0:break a;default:break i}}a=b;break a}a=a&263424?14:b}F[f+19|0]=(c|0)==2817?7:a;F[f+18|0]=d;e=e+1|0;if((g|0)!=(e|0)){continue}break}}}function mea(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;d=xb-48|0;xb=d;m=H[a+420>>2];f=H[a+464>>2];a:{b:{if(H[f+40>>2]|!H[a+280>>2]){break b}e=H[a+460>>2];H[e+24>>2]=H[e+24>>2]+(H[f+12>>2]/8|0);H[f+12>>2]=0;g=0;if(!(zb[H[e+8>>2]](a)|0)){break a}if(H[a+336>>2]>0){e=0;while(1){H[((e<<2)+f|0)+20>>2]=0;e=e+1|0;if((e|0)>2]){continue}break}}H[f+16>>2]=0;H[f+40>>2]=H[a+280>>2];if(H[a+436>>2]){break b}H[f+36>>2]=0}if(!H[f+36>>2]){H[d+40>>2]=a;c=H[a+24>>2];i=H[c>>2];H[d+24>>2]=i;g=H[c+4>>2];H[d+28>>2]=g;e=H[f+12>>2];h=H[f+8>>2];H[d+16>>2]=H[f+32>>2];j=H[f+28>>2];H[d+8>>2]=H[f+24>>2];H[d+12>>2]=j;j=H[f+20>>2];H[d>>2]=H[f+16>>2];H[d+4>>2]=j;if(H[a+364>>2]>0){i=0;while(1){c=i<<2;j=H[c+b>>2];l=H[(a+c|0)+368>>2]<<2;c=H[((H[H[(l+a|0)+340>>2]+20>>2]<<2)+f|0)+44>>2];c:{d:{e:{if((e|0)>7){break e}g=0;if(!Hd(d+24|0,h,e,0)){break a}h=H[d+32>>2];e=H[d+36>>2];if((e|0)>7){break e}c=Le(d+24|0,h,e,c,1);break d}g=h>>e-8&255;k=H[(c+(g<<2)|0)+144>>2];if(k){c=I[(c+g|0)+1168|0];e=e-k|0;break c}c=Le(d+24|0,h,e,c,9)}g=0;if((c|0)<0){break a}h=H[d+32>>2];e=H[d+36>>2]}if(c){if((c|0)>(e|0)){g=0;if(!Hd(d+24|0,h,e,c)){break a}h=H[d+32>>2];e=H[d+36>>2]}e=e-c|0;c=c<<2;g=H[c+256992>>2];k=h>>e&g;c=k-((k|0)>H[c+256988>>2]?0:g)|0}else{c=0}g=d+l|0;c=c+H[g+4>>2]|0;H[g+4>>2]=c;G[j>>1]=c<>2]){continue}break}g=H[d+28>>2];i=H[d+24>>2];c=H[a+24>>2]}H[c+4>>2]=g;H[c>>2]=i;H[f+12>>2]=e;H[f+8>>2]=h;H[f+32>>2]=H[d+16>>2];a=H[d+12>>2];H[f+24>>2]=H[d+8>>2];H[f+28>>2]=a;a=H[d+4>>2];H[f+16>>2]=H[d>>2];H[f+20>>2]=a}H[f+40>>2]=H[f+40>>2]-1;g=1}xb=d+48|0;return g|0}function Xr(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{d=H[a+100>>2];c=H[d+64>>2];if(c>>>0>=K[d+68>>2]){break a}while(1){if(!I[d+60|0]){break a}c=H[d+80>>2]+N(c,20)|0;e=H[c>>2];b:{c:{if(!(H[b>>2]>>>(e>>>4)&1)|!(H[b+4>>2]>>>e&1)|(!(H[b+8>>2]>>>(e>>>9)&1)|!(H[a+120>>2]&H[c+4>>2]))){break c}g=H[a+132>>2];c=J[c+12>>1];if(g&c&14){break c}d:{if(!(c&8)){break d}if(g&16){c=H[a+108>>2];f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);if((f<<24|f<<8&16711680|(f>>>8&65280|f>>>24))>>>0<65538){break c}f=I[c+12|0]|I[c+13|0]<<8;if(f){c=c+((f<<8|f>>>8)&65535)|0}else{c=163632}if((I[c|0]|I[c+1|0]<<8)!=256){break c}f=c;g=g>>>16|0;h=(c+(g<<2)|0)+4|0;c=I[c+2|0]|I[c+3|0]<<8;c=g>>>0<((c<<8|c>>>8)&65535)>>>0?h:163632;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((Gc(c?f+c|0:163632,e)|0)!=-1){break d}break c}e=g&65280;if(!e){break d}if((e|0)!=(c&65280)){break c}}c=0;g=H[b+16>>2];if(!g){break c}while(1){e=c>>>0>>0?H[b+20>>2]+N(c,20)|0:163632;f=H[a+100>>2];f=H[H[f+80>>2]+N(H[f+64>>2],20)>>2];if(!(!(H[e+8>>2]>>>(f>>>4)&1)|!(H[e+12>>2]>>>f&1)|!(H[e+16>>2]>>>(f>>>9)&1))){if(zb[H[e+4>>2]](H[e>>2],a)|0){break b}g=H[b+16>>2]}c=c+1|0;if(g>>>0>c>>>0){continue}break}}if(I[d+61|0]){e:{if(H[d+84>>2]==H[d+80>>2]){c=H[d+72>>2];if((c|0)==H[d+64>>2]){break e}}if(!ec(d,1,1)){break b}e=H[d+80>>2]+N(H[d+64>>2],20)|0;g=H[e+4>>2];c=H[d+84>>2]+N(H[d+72>>2],20)|0;H[c>>2]=H[e>>2];H[c+4>>2]=g;H[c+16>>2]=H[e+16>>2];g=H[e+12>>2];H[c+8>>2]=H[e+8>>2];H[c+12>>2]=g;c=H[d+72>>2]}H[d+72>>2]=c+1}H[d+64>>2]=H[d+64>>2]+1}c=H[d+64>>2];if(c>>>0>2]){continue}break}}}function Nja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=H[b+68>>2];if(g){h=H[b+80>>2];while(1){e=N(d,20)+h|0;c=H[e>>2];a=Nr(c);b=(c&-16)!=65024?a&255:30;f=a>>>8|0;a=1;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{if((c|0)<=8209){if((c|0)<=4099){if((c|0)==45|(c|0)==160){break c}if((c|0)!=215){break d}break c}switch(c-4100|0){case 70:case 71:break f;case 52:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 139:case 150:case 151:case 152:break g;case 95:case 96:case 101:case 102:case 103:case 104:case 105:break h;case 55:case 90:case 91:break i;case 57:case 126:break j;case 56:break k;case 92:break l;case 58:break m;case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:break n;case 54:break o;case 53:break p;case 46:case 50:break q;case 0:case 23:case 86:break r;case 74:break a;default:break d}}if((c|0)<=9722){a=c-8210|0;if(a>>>0>16|!(1<>>0>=4){break d}break c}a=16;break a}a=10;break a}a=4;break a}a=18;break a}a=32;break a}a=21;break a}a=33;break a}a=22;break a}a=23;break a}a=24;break a}a=25;break a}a=8;break a}a=31;break a}if((c|0)==9676){break c}}if((b|0)==7){break b}a=b;break a}a=11;break a}a=7;b=f-3|0;c=b&255;if(c>>>0>8|!(297>>>c&1)){break a}a=b<<24>>24<<2;f=H[a+139436>>2];a=H[a+139400>>2]}F[e+19|0]=f;F[e+18|0]=a;d=d+1|0;if((g|0)!=(d|0)){continue}break}}}function uF(a,b,c){var d=0;d=163632;a:{b:{c:{switch(c-1|0){case 0:d:{e:{b=I[a|0]|I[a+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 1:if((I[a|0]|I[a+1|0]<<8)!=256){break b}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 2:if((I[a|0]|I[a+1|0]<<8)!=256){break b}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 3:if((I[a|0]|I[a+1|0]<<8)!=256){break b}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a;case 4:f:{g:{h:{b=I[a|0]|I[a+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 2:break f;case 1:break g;case 0:break h;default:break b}}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+6|0]|I[a+7|0]<<8;if(!b){break b}break a;case 5:i:{j:{k:{b=I[a|0]|I[a+1|0]<<8;switch(((b<<8|b>>>8)&65535)-1|0){case 2:break i;case 1:break j;case 0:break k;default:break b}}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}break a}b=I[a+2|0]|I[a+3|0]<<8;b=(a+2|0)+(((b<<8|b>>>8)&65535)<<1)|0;b=I[b+2|0]|I[b+3|0]<<8?b+4|0:163632;b=I[b|0]|I[b+1|0]<<8;if(!b){break b}break a;case 6:if((I[a|0]|I[a+1|0]<<8)==256){c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=c?c+a|0:163632;a=I[a+2|0]|I[a+3|0]<<8;a=uF(c,b,(a<<8|a>>>8)&65535)}else{a=163632}return a;case 7:break c;default:break b}}if((I[a|0]|I[a+1|0]<<8)!=256){break b}b=I[a+2|0]|I[a+3|0]<<8;if(!b){break b}d=((b<<8|b>>>8)&65535)+a|0}return d}return((b<<8|b>>>8)&65535)+a|0}function nea(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;d=xb-32|0;xb=d;e=H[a+464>>2];a:{b:{if(H[e+40>>2]|!H[a+280>>2]){break b}c=H[a+460>>2];H[c+24>>2]=H[c+24>>2]+(H[e+12>>2]/8|0);H[e+12>>2]=0;i=0;if(!(zb[H[c+8>>2]](a)|0)){break a}if(H[a+336>>2]>0){c=0;while(1){H[((c<<2)+e|0)+20>>2]=0;c=c+1|0;if((c|0)>2]){continue}break}}H[e+16>>2]=0;H[e+40>>2]=H[a+280>>2];if(H[a+436>>2]){break b}H[e+36>>2]=0}if(!H[e+36>>2]){c=H[e+16>>2];c:{if(c){f=c-1|0;break c}m=H[a+428>>2];n=H[a+420>>2];l=H[a+412>>2];H[d+24>>2]=a;c=H[a+24>>2];H[d+8>>2]=H[c>>2];H[d+12>>2]=H[c+4>>2];c=H[e+12>>2];g=H[e+8>>2];k=H[a+408>>2];f=0;d:{if((l|0)<(k|0)){break d}f=H[e+60>>2];o=H[b>>2];while(1){e:{f:{g:{if((c|0)>7){break g}i=0;if(!Hd(d+8|0,g,c,0)){break a}g=H[d+16>>2];c=H[d+20>>2];if((c|0)>7){break g}b=Le(d+8|0,g,c,f,1);break f}b=g>>c-8&255;h=H[((b<<2)+f|0)+144>>2];if(h){b=I[(b+f|0)+1168|0];c=c-h|0;break e}b=Le(d+8|0,g,c,f,9)}i=0;if((b|0)<0){break a}g=H[d+16>>2];c=H[d+20>>2]}h=b>>>4|0;h:{j=b&15;if(j){if((c|0)<(j|0)){i=0;if(!Hd(d+8|0,g,c,j)){break a}g=H[d+16>>2];c=H[d+20>>2]}b=h+k|0;h=j<<2;k=H[h+256992>>2];c=c-j|0;j=k&g>>c;G[(H[(b<<2)+m>>2]<<1)+o>>1]=j-((j|0)>H[h+256988>>2]?0:k)<>>0>=16){if((c|0)<(h|0)){i=0;if(!Hd(d+8|0,g,c,h)){break a}g=H[d+16>>2];c=H[d+20>>2]}c=c-h|0;f=f+(H[(h<<2)+256992>>2]&g>>c)|0}f=f-1|0;break d}k=b+1|0;if((b|0)<(l|0)){continue}break}f=0}a=H[a+24>>2];H[a>>2]=H[d+8>>2];H[a+4>>2]=H[d+12>>2];H[e+12>>2]=c;H[e+8>>2]=g}H[e+16>>2]=f}H[e+40>>2]=H[e+40>>2]-1;i=1}xb=d+32|0;return i|0}function gS(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=xb-16|0;xb=i;m=jp(g);g=Yo(g);zb[H[H[g>>2]+20>>2]](i,g);a:{if(I[i+11|0]>>>7|0){k=H[i+4>>2]}else{k=I[i+11|0]}b:{if(!k){H[197455]=0;la(3458,m|0,a|0,c|0,d|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}g=(c-a<<2)+d|0;H[f>>2]=g;break a}H[f>>2]=d;c:{d:{k=a;h=I[k|0];switch(h-43|0){case 0:case 2:break d;default:break c}}H[197455]=0;k=da(3343,m|0,h<<24>>24)|0;h=H[197455];H[197455]=0;if((h|0)==1){break b}h=H[f>>2];H[f>>2]=h+4;H[h>>2]=k;k=a+1|0}if(!(I[k|0]!=48|(c-k|0)<2|(I[k+1|0]|32)!=120)){H[197455]=0;h=da(3343,m|0,48)|0;j=H[197455];H[197455]=0;if((j|0)==1){break b}j=H[f>>2];H[f>>2]=j+4;H[j>>2]=h;h=F[k+1|0];H[197455]=0;h=da(3343,m|0,h|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break b}j=H[f>>2];H[f>>2]=j+4;H[j>>2]=h;k=k+2|0}j=0;H[197455]=0;lh(k,c);h=H[197455];H[197455]=0;if((h|0)==1){break b}H[197455]=0;o=aa(3455,g|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}h=0;g=k;while(1){e:{if(c>>>0<=g>>>0){g=H[f>>2];H[197455]=0;nk((k-a<<2)+d|0,g);g=H[197455];H[197455]=0;if((g|0)==1){break e}g=H[f>>2];break a}if(I[i+11|0]>>>7|0){l=H[i>>2]}else{l=i}n=!I[l+h|0];if(I[i+11|0]>>>7|0){l=H[i>>2]}else{l=i}if(!(n|F[l+h|0]!=(j|0))){j=H[f>>2];H[f>>2]=j+4;H[j>>2]=o;if(I[i+11|0]>>>7|0){l=H[i+4>>2]}else{l=I[i+11|0]}h=(l-1>>>0>h>>>0)+h|0;j=0}n=F[g|0];H[197455]=0;n=da(3343,m|0,n|0)|0;l=H[197455];H[197455]=0;if((l|0)!=1){l=H[f>>2];H[f>>2]=l+4;H[l>>2]=n;g=g+1|0;j=j+1|0;continue}}break}}a=$()|0;_()|0;_b(i);ea(a|0);X()}H[e>>2]=(b|0)==(c|0)?g:(b-a<<2)+d|0;_b(i);xb=i+16|0}function Ye(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{c:{d:{e:{f:{g:{c=I[a+4|0]|I[a+5|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+a|0}else{c=163632}d=I[c|0]|I[c+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break f;case 0:break g;default:break a}}d=I[c+2|0]|I[c+3|0]<<8;d=b-((d<<8|d>>>8)&65535)|0;e=(c+(d<<1)|0)+6|0;c=I[c+4|0]|I[c+5|0]<<8;c=d>>>0<((c<<8|c>>>8)&65535)>>>0?e:163632;break e}h=164024;d=I[c+2|0]|I[c+3|0]<<8;h:{if(!d){break h}d=((d<<8|d>>>8)&65535)-1|0;while(1){f=d+e>>>1|0;g=c+N(f,6)|0;i=g+4|0;i=I[i|0]|I[i+1|0]<<8;i:{if(((i<<8|i>>>8)&65535)>>>0<=b>>>0){e=I[g+6|0]|I[g+7|0]<<8;if(((e<<8|e>>>8)&65535)>>>0>>0){e=f+1|0;break i}h=(c+N(f,6)|0)+4|0;break h}d=f-1|0}if((d|0)>=(e|0)){continue}break}}c=h+4|0}c=I[c|0]|I[c+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}return 2}return 4}j=8;j:{k:{l:{c=I[a+10|0]|I[a+11|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+a|0}else{c=163632}a=I[c|0]|I[c+1|0]<<8;switch(((a<<8|a>>>8)&65535)-1|0){case 1:break k;case 0:break l;default:break a}}a=I[c+2|0]|I[c+3|0]<<8;a=b-((a<<8|a>>>8)&65535)|0;b=I[c+4|0]|I[c+5|0]<<8;a=a>>>0<((b<<8|b>>>8)&65535)>>>0?(c+(a<<1)|0)+6|0:163632;break j}a=164024;d=I[c+2|0]|I[c+3|0]<<8;m:{if(!d){break m}d=((d<<8|d>>>8)&65535)-1|0;e=0;while(1){f=d+e>>>1|0;h=c+N(f,6)|0;g=h+4|0;g=I[g|0]|I[g+1|0]<<8;n:{if(((g<<8|g>>>8)&65535)>>>0<=b>>>0){e=I[h+6|0]|I[h+7|0]<<8;if(((e<<8|e>>>8)&65535)>>>0>>0){e=f+1|0;break n}a=(c+N(f,6)|0)+4|0;break m}d=f-1|0}if((d|0)>=(e|0)){continue}break}}a=a+4|0}a=I[a|0]|I[a+1|0]<<8;j=((a<<8|a>>>8)&65535)<<8|8}return j}function gla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=xb-16|0;xb=h;d=H[a+712>>2];H[h+12>>2]=0;a:{if(!d){break a}f=H[d+3092>>2];if(f){c=0}else{f=pc(H[a+100>>2],32,h+12|0);c=H[h+12>>2];if(c){break a}a=0;e=H[d+1372>>2];g=0;b:{if((e|0)==65535){break b}if(e>>>0>=391){e=e-391|0;g=0;if(e>>>0>=K[d+1356>>2]){break b}g=H[H[d+1360>>2]+(e<<2)>>2];break b}c=H[d+3084>>2];g=0;if(!c){break b}g=zb[H[c+20>>2]](e)|0}H[f>>2]=g;c=H[d+1376>>2];c:{if((c|0)==65535){break c}if(c>>>0>=391){c=c-391|0;if(c>>>0>=K[d+1356>>2]){break c}a=H[H[d+1360>>2]+(c<<2)>>2];break c}e=H[d+3084>>2];if(!e){break c}a=zb[H[e+20>>2]](c)|0}H[f+4>>2]=a;a=0;e=H[d+1384>>2];g=0;d:{if((e|0)==65535){break d}if(e>>>0>=391){e=e-391|0;g=0;if(e>>>0>=K[d+1356>>2]){break d}g=H[H[d+1360>>2]+(e<<2)>>2];break d}c=H[d+3084>>2];g=0;if(!c){break d}g=zb[H[c+20>>2]](e)|0}H[f+8>>2]=g;c=H[d+1388>>2];e:{if((c|0)==65535){break e}if(c>>>0>=391){c=c-391|0;if(c>>>0>=K[d+1356>>2]){break e}a=H[H[d+1360>>2]+(c<<2)>>2];break e}e=H[d+3084>>2];if(!e){break e}a=zb[H[e+20>>2]](c)|0}H[f+12>>2]=a;c=0;a=H[d+1392>>2];f:{if((a|0)==65535){break f}if(a>>>0>=391){a=a-391|0;if(a>>>0>=K[d+1356>>2]){break f}c=H[H[d+1360>>2]+(a<<2)>>2];break f}e=H[d+3084>>2];if(!e){break f}c=zb[H[e+20>>2]](a)|0}H[f+16>>2]=c;H[f+20>>2]=H[d+1400>>2];F[f+24|0]=I[d+1396|0];G[f+26>>1]=H[d+1404>>2];G[f+28>>1]=H[d+1408>>2];H[d+3092>>2]=f;c=H[h+12>>2]}a=H[f+4>>2];H[b>>2]=H[f>>2];H[b+4>>2]=a;a=H[f+28>>2];H[b+24>>2]=H[f+24>>2];H[b+28>>2]=a;a=H[f+20>>2];H[b+16>>2]=H[f+16>>2];H[b+20>>2]=a;a=H[f+12>>2];H[b+8>>2]=H[f+8>>2];H[b+12>>2]=a}xb=h+16|0;return c|0}function Lu(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;a:{m=I[b+7|0]&254|I[b+6|0]<<8;b:{if(!m){break b}q=(d|0)!=0;f=q+H[c>>2]|0;if(f>>>0>65535){break b}p=H[a+508>>2]+H[a+512>>2]|0;h=m>>>1|0;r=h>>>0>1?h:1;s=h-1|0;l=b+14|0;h=(b+m|0)+16|0;c:{if(!d){while(1){b=I[h+1|0]|I[h|0]<<8;if(b>>>0>f>>>0){break c}d:{f=b>>>0>>0?f:b;g=I[l+1|0]|I[l|0]<<8;if(f>>>0>g>>>0){break d}j=(b|0)==65535&n>>>0>=s>>>0&(g|0)==65535;g=h+m|0;k=g+m|0;i=I[k|0]<<8|I[k+1|0];j=j&(i|0)!=0&(i+k|0)+2>>>0>p>>>0;i=j?0:i;if((i|0)==65535){break d}if(!i){break a}b=k+(i+(f-b<<1)|0)|0;b=I[b|0]<<8|I[b+1|0];if(!b){break c}b=b+(j?1:I[g+1|0]|I[g|0]<<8)&65535;e=b>>>0>2]?b:0;break c}h=h+2|0;l=l+2|0;n=n+1|0;if((r|0)!=(n|0)){continue}break}break c}while(1){b=h;g=I[b|0]<<8|I[b+1|0];f=f>>>0>g>>>0?f:g;j=I[l+1|0]|I[l|0]<<8;t=(g|0)==65535&n>>>0>=s>>>0&(j|0)==65535;h=b+2|0;l=l+2|0;i=b+m|0;k=i+m|0;u=k+2|0;e:{while(1){if(f>>>0>j>>>0){break e}b=I[i|0]|I[i+1|0]<<8;e=I[k+1|0]|I[k|0]<<8;o=(e|0)!=0&t&e+u>>>0>p>>>0;b=o?1:(b<<8|b>>>8)<<16>>16;f:{g:{e=o?0:e;if(e){if((e|0)==65535){break e}e=k+(e+(f-g<<1)|0)|0;if(e>>>0>p>>>0&q){break e}e=I[e+1|0]|I[e|0]<<8;if(!e){b=f;break f}e=b+e&65535;if(e>>>0>2]){break g}b=f;break f}o=b+f|0;e=o&65535;if(e>>>0>2]){break g}e=b+j|0;if(!((e|0)<0|(o|0)>=0)){b=0-b|0;break f}if((e|0)<65536|(o|0)>65535){break e}b=65536-b|0;break f}b=f;if(e){break c}}f=b+1|0;if(b>>>0<=65534){continue}break}e=0;f=b;break c}n=n+1|0;if((r|0)!=(n|0)){continue}break}e=0}if(!d){break b}H[c>>2]=f}return e}return(j?1:I[g+1|0]|I[g|0]<<8)+f&65535}function hL(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;e=xb-16|0;xb=e;j=H[b+28>>2];H[a+368>>2]=b;c=zb[H[a+516>>2]](a,1851878757,b,e+8|0)|0;a:{if(c){break a}k=H[b+8>>2];c=Ic(b,95696,a+344|0);H[e+12>>2]=c;if(c){break a}c=145;g=k+6|0;d=H[a+348>>2];h=g+N(d,12)|0;i=H[e+8>>2]+k|0;if(h>>>0>i>>>0){break a}if(J[a+344>>1]==1){c=bc(b,h);H[e+12>>2]=c;if(c){break a}d=nc(b,e+12|0);H[a+360>>2]=d;c=H[e+12>>2];if(c){break a}l=a,m=Ub(j,12,0,d,0,e+12|0),H[l+364>>2]=m;c=H[e+12>>2];if(c){break a}c=Jc(b,H[a+360>>2]<<2);H[e+12>>2]=c;if(c){break a}h=((d<<2)+h|0)+2|0;c=H[a+364>>2];b:{if(!c){break b}d=H[a+360>>2];if((d|0)<=0){break b}d=N(d,12)+c|0;while(1){l=e,m=Ic(b,95756,c),H[l+12>>2]=m;f=H[c+4>>2]+(H[a+352>>2]+k|0)|0;H[c+4>>2]=f;if(!(h>>>0<=f>>>0&f+J[c>>1]>>>0<=i>>>0)){G[c>>1]=0}c=c+12|0;if(d>>>0>c>>>0){continue}break}}wc(b);l=e,m=bc(b,g),H[l+12>>2]=m;d=H[a+348>>2]}l=a,m=Ub(j,20,0,d,0,e+12|0),H[l+356>>2]=m;c=H[e+12>>2];if(c){break a}c=Jc(b,N(H[a+348>>2],12));H[e+12>>2]=c;if(c){break a}d=H[a+356>>2];f=H[a+348>>2];c:{if(!f){c=d;i=0;break c}c=d;while(1){d=Ic(b,95728,c);H[e+12>>2]=d;d:{if(d){break d}d=J[c+8>>1];if(!d){break d}g=H[c+12>>2]+(H[a+352>>2]+k|0)|0;H[c+12>>2]=g;if(h>>>0>g>>>0|d+g>>>0>i>>>0){break d}e:{if(J[a+344>>1]!=1){break e}d=G[c+4>>1];if((d|0)>=0){break e}d=(d&65535)-32768|0;if(d>>>0>=K[a+360>>2]|!J[H[a+364>>2]+N(d,12)>>1]){break d}}c=c+20|0}f=f-1|0;if(f){continue}break}d=H[a+356>>2];i=H[a+348>>2]}c=(c-d|0)/20|0;j=Ub(j,20,i,c,d,e+12|0);H[a+348>>2]=c;H[a+356>>2]=j;wc(b);G[a+340>>1]=H[a+348>>2];c=H[e+12>>2]}xb=e+16|0;return c|0}function BD(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=xb-32|0;xb=h;g=H[b+72>>2];a:{if((g|0)==1651078259){break a}b:{c:{if(!(I[H[b+156>>2]+42|0]&16)){break c}d=H[b+4>>2];f=H[b+12>>2];H[h+24>>2]=0;if(!(I[d+8|0]&8)|(!d|f>>>0>=K[d+16>>2])){break c}e=H[H[d+540>>2]+132>>2];if(!e){break c}if(!(zb[e|0](d,f,h+12|0,h+8|0,h+16|0)|0)){g=H[b+72>>2];break c}if(!Vq(d,0)){e=H[d+540>>2];d:{while(1){g=Ag(d,H[h+12>>2],H[H[b+156>>2]+40>>2]&-1048581|4);if(g){break d}g=zb[H[e+136>>2]](d,H[h+8>>2],b,H[d+84>>2])|0;if(g){break d}e:{if(!(I[d+8|0]&8)|f>>>0>=K[d+16>>2]){break e}g=H[H[d+540>>2]+132>>2];if(!g){break e}if(zb[g|0](d,f,h+12|0,h+8|0,h+16|0)|0){continue}}break}H[b+72>>2]=1651078259;g=0}i=H[d+84>>2];f:{if(!i){break f}j=H[i+4>>2];e=H[j+84>>2];if(!e){break f}k=H[H[j+96>>2]+8>>2];g:{if((e|0)==(i|0)){d=0;break g}while(1){f=H[e+8>>2];if(!f){break f}d=e;e=f;if((i|0)!=(e|0)){continue}break}}H[(d?d+8|0:j+84|0)>>2]=H[i+8>>2];d=H[i+20>>2];if(d){zb[d|0](i)}hn(i);zb[H[k+8>>2]](k,i)}if(!g){break b}}g=1869968492;H[b+72>>2]=1869968492}h:{if((g|0)!=1869968492){d=7;if(!a){break a}e=H[a+148>>2];if(!e){break a}while(1){f=H[e+8>>2];if(H[f+16>>2]==(g|0)){break h}e=H[e+4>>2];if(e){continue}break}break a}f=H[a+156>>2];if(!f){d=7;break a}e=H[a+148>>2]}d=0;f=zb[H[f+60>>2]](f,b,c,0)|0;if(!f){break a}g=a+148|0;while(1){if((f&255)!=19){d=f;break a}e=H[(e?e+4|0:g)>>2];if(!e){d=f;break a}d=H[b+72>>2];i:{while(1){a=H[e+8>>2];if((d|0)==H[a+16>>2]){break i}e=H[e+4>>2];if(e){continue}break}d=f;break a}d=0;f=zb[H[a+60>>2]](a,b,c,0)|0;if(f){continue}break}break a}d=0}xb=h+32|0;return d}function rS(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=xb-16|0;xb=i;m=lp(g);g=$o(g);zb[H[H[g>>2]+20>>2]](i,g);a:{if(I[i+11|0]>>>7|0){k=H[i+4>>2]}else{k=I[i+11|0]}b:{if(!k){H[197455]=0;la(3438,m|0,a|0,c|0,d|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}g=(c-a|0)+d|0;H[f>>2]=g;break a}H[f>>2]=d;c:{d:{k=a;h=I[k|0];switch(h-43|0){case 0:case 2:break d;default:break c}}H[197455]=0;k=da(3462,m|0,h<<24>>24)|0;h=H[197455];H[197455]=0;if((h|0)==1){break b}h=H[f>>2];H[f>>2]=h+1;F[h|0]=k;k=a+1|0}if(!(I[k|0]!=48|(c-k|0)<2|(I[k+1|0]|32)!=120)){H[197455]=0;h=da(3462,m|0,48)|0;j=H[197455];H[197455]=0;if((j|0)==1){break b}j=H[f>>2];H[f>>2]=j+1;F[j|0]=h;h=F[k+1|0];H[197455]=0;h=da(3462,m|0,h|0)|0;j=H[197455];H[197455]=0;if((j|0)==1){break b}j=H[f>>2];H[f>>2]=j+1;F[j|0]=h;k=k+2|0}j=0;H[197455]=0;lh(k,c);h=H[197455];H[197455]=0;if((h|0)==1){break b}H[197455]=0;o=aa(3429,g|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}h=0;g=k;while(1){e:{if(c>>>0<=g>>>0){g=H[f>>2];H[197455]=0;lh((k-a|0)+d|0,g);g=H[197455];H[197455]=0;if((g|0)==1){break e}g=H[f>>2];break a}if(I[i+11|0]>>>7|0){l=H[i>>2]}else{l=i}n=!I[l+h|0];if(I[i+11|0]>>>7|0){l=H[i>>2]}else{l=i}if(!(n|F[l+h|0]!=(j|0))){j=H[f>>2];H[f>>2]=j+1;F[j|0]=o;if(I[i+11|0]>>>7|0){l=H[i+4>>2]}else{l=I[i+11|0]}h=(l-1>>>0>h>>>0)+h|0;j=0}n=F[g|0];H[197455]=0;n=da(3462,m|0,n|0)|0;l=H[197455];H[197455]=0;if((l|0)!=1){l=H[f>>2];H[f>>2]=l+1;F[l|0]=n;g=g+1|0;j=j+1|0;continue}}break}}a=$()|0;_()|0;_b(i);ea(a|0);X()}H[e>>2]=(b|0)==(c|0)?g:(b-a|0)+d|0;_b(i);xb=i+16|0}function dC(a,b,c){var d=0,e=0,f=0;d=xb-256|0;xb=d;f=H[a+200>>2];if(f&1){a:{if(f&4){Xb(a,267403);mc(a,c);break a}if(!(!b|!(I[b+8|0]&16))){Xb(a,267427);mc(a,c);break a}b:{c:{d:{switch(I[a+401|0]){case 0:if((c|0)==2){vd(a,d,2);xc(a,d,2);G[a+394>>1]=1;c=I[d|0]|I[d+1|0]<<8;G[a+516>>1]=c<<8|c>>>8;break b}Xb(a,267448);mc(a,c);break a;case 2:if((c|0)==6){vd(a,d,6);xc(a,d,6);G[a+394>>1]=1;c=I[d|0]|I[d+1|0]<<8;G[a+510>>1]=c<<8|c>>>8;c=I[d+2|0]|I[d+3|0]<<8;G[a+512>>1]=c<<8|c>>>8;c=I[d+4|0]|I[d+5|0]<<8;G[a+514>>1]=c<<8|c>>>8;break b}Xb(a,267448);mc(a,c);break a;case 3:if(!(f&2)){Xb(a,267476)}if(!(c>>>0<=256&J[a+392>>1]>=c>>>0)){Xb(a,267448);mc(a,c);break a}if(c){break c}Xb(a,267501);mc(a,0);break a;default:break d}}Xb(a,267524);mc(a,c);break a}vd(a,d,c);xc(a,d,c);G[a+394>>1]=c}if(mc(a,0)){G[a+394>>1]=0;break a}f=J[a+394>>1];c=a+508|0;e:{if(!a|!b){break e}if(f>>>0>=257){Xb(a,266138);break e}f:{g:{h:{i:{if(d){Mh(a,b,8192,0);e=Rd(a,256);H[b+76>>2]=e;H[a+504>>2]=e;if(!f){break i}Ob(e,d,f)}if(!c){break h}break g}if(c){break g}G[b+22>>1]=f;break e}G[b+22>>1]=f;if(!f){break e}break f}e=I[b+24|0];j:{if(e>>>0>15){break j}e=-1<>>0>1]){break k}break j;case 2:break l;default:break j}}if(e>>>0>1]|e>>>0>1]){break k}if(e>>>0>=J[c+6>>1]){break j}}Xb(a,266232)}a=J[c+4>>1]|J[c+6>>1]<<16;e=J[c>>1]|J[c+2>>1]<<16;G[b+80>>1]=e;G[b+82>>1]=e>>>16;G[b+84>>1]=a;G[b+86>>1]=a>>>16;G[b+88>>1]=J[c+8>>1];G[b+22>>1]=f?f:1}H[b+8>>2]=H[b+8>>2]|16;H[b+184>>2]=H[b+184>>2]|8192}}xb=d+256|0;return}hc(a,267378);X()}function rf(a,b,c,d){var e=0,f=0;H[a+24>>2]=0;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+72>>2]=0;H[a+76>>2]=0;e=a- -64|0;H[e>>2]=0;H[e+4>>2]=0;H[a>>2]=0;H[a+4>>2]=0;H[a+48>>2]=0;H[a+52>>2]=0;H[a+92>>2]=c;H[a+40>>2]=0;H[a+44>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a+56>>2]=0;H[a+60>>2]=0;H[a+80>>2]=0;H[a+84>>2]=0;H[a+88>>2]=0;H[a+28>>2]=0;H[a+20>>2]=-1;H[a+72>>2]=0;H[e>>2]=-1;e=H[c+16>>2];H[a+104>>2]=0;H[a+100>>2]=d;H[a+96>>2]=e;c=H[e+140>>2];a:{if(c){break a}while(1){f=H[e+48>>2];if(!f){c=163632;break a}b:{c:{c=oc(1,4);if(c){Nt(c,f);f=H[e+140>>2];H[e+140>>2]=f?f:c;if(!f){break a}f=H[c>>2];H[197455]=0;ia(579,f|0);f=H[197455];H[197455]=0;if((f|0)==1){break c}Kb(c);break b}c=163632;f=H[e+140>>2];H[e+140>>2]=f?f:163632;if(f){break b}break a}ha(0)|0;_()|0;Zb();X()}c=H[e+140>>2];if(!c){continue}break}}c=H[c>>2];c=c?c:163632;c=K[c+16>>2]<12?163632:H[c+12>>2];H[a+108>>2]=c;e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);if((e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))>>>0>=65539){e=I[c+14|0]|I[c+15|0]<<8|(I[c+16|0]<<16|I[c+17|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);e=e?e+c|0:163632}else{e=163632}H[a+112>>2]=e;d=H[d+40>>2];H[a+136>>2]=6;H[a+128>>2]=-1;H[a+132>>2]=0;H[a+124>>2]=b;H[a+120>>2]=1;H[a+116>>2]=d;c=I[c+4|0]|I[c+5|0]<<8;H[a+56>>2]=0;H[a+64>>2]=-1;G[a+60>>1]=257;H[a+72>>2]=0;H[a+76>>2]=0;H[a+12>>2]=0;F[a+16|0]=(b|0)==1;F[a+17|0]=1;H[a+20>>2]=1;H[a+52>>2]=a;H[a+80>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;H[a+8>>2]=a;H[a+36>>2]=0;F[a+143|0]=0;H[a+144>>2]=1;F[a+141|0]=1;F[a+142|0]=1;F[a+140|0]=(c|0)!=0;return a}function cea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;t=xb-208|0;xb=t;q=H[a+332>>2];b=H[b+84>>2];a=t;while(1){i=H[b+160>>2];h=G[c+80>>1];o=H[b+32>>2];m=G[c+16>>1];r=H[b+96>>2];n=G[c+48>>1];j=N(G[c>>1],H[b>>2])<<13|1024;k=N(H[b+128>>2],G[c+64>>1]);f=N(H[b+192>>2],G[c+96>>1]);g=N(H[b+64>>2],G[c+32>>1]);p=f+g|0;H[a+84>>2]=j+N(k-p|0,11585)>>11;i=N(h,i);h=N(o,m);o=N(i+h|0,5027);p=j+N(p,10438)|0;m=N(k-f|0,7223);l=p+(m+N(f,-637)|0)|0;f=N(n,r);r=N(f+h|0,7663);h=N(h-f|0,1395);n=o+(r-h|0)|0;H[a+168>>2]=l-n>>11;H[a>>2]=n+l>>11;l=N(g,-20239);g=N(g-k|0,2578);n=p+(l+g|0)|0;f=N(f+i|0,-11295);i=f+(o+N(i,15326)|0)|0;H[a+112>>2]=n-i>>11;H[a+56>>2]=i+n>>11;k=m+(g+(j+N(k,-15083)|0)|0)|0;f=f+(h+r|0)|0;H[a+140>>2]=k-f>>11;H[a+28>>2]=f+k>>11;a=a+4|0;b=b+4|0;c=c+2|0;s=s+1|0;if((s|0)!=7){continue}break}a=q+128|0;k=0;c=t;while(1){f=H[c+16>>2];g=H[c+24>>2];j=N(f-g|0,7223);b=H[(k<<2)+d>>2]+e|0;i=H[c+12>>2];h=H[c+4>>2];q=N(i+h|0,7663);m=N(h-i|0,1395);l=h;h=H[c+20>>2];r=N(l+h|0,5027);n=(q-m|0)+r|0;s=j+N(g,-637)|0;o=(H[c>>2]<<13)+131072|0;l=g;g=H[c+8>>2];p=l+g|0;l=o+N(p,10438)|0;s=s+l|0;F[b|0]=I[a+(n+s>>>18&1023)|0];F[b+6|0]=I[a+(s-n>>>18&1023)|0];i=N(h+i|0,-11295);q=i+(m+q|0)|0;m=N(g-f|0,2578);j=j+(m+(o+N(f,-15083)|0)|0)|0;F[b+1|0]=I[a+(q+j>>>18&1023)|0];F[b+5|0]=I[a+(j-q>>>18&1023)|0];j=i+(r+N(h,15326)|0)|0;g=l+(m+N(g,-20239)|0)|0;F[b+2|0]=I[a+(j+g>>>18&1023)|0];F[b+4|0]=I[a+(g-j>>>18&1023)|0];F[b+3|0]=I[a+(o+N(f-p|0,11585)>>>18&1023)|0];c=c+28|0;k=k+1|0;if((k|0)!=7){continue}break}xb=t+208|0}function Uca(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;h=N(H[b+36>>2],H[b+28>>2]);e=H[a+272>>2];a:{if((e|0)<-1){break a}l=H[a+28>>2];f=(h<<1)-l|0;if((f|0)<=0){break a}g=c-4|0;k=e+2|0;m=k&3;b=0;if(e+1>>>0>=3){n=k&-4;k=0;while(1){e=b<<2;j=l+H[e+g>>2]|0;Nb(j,I[j-1|0],f);j=l+H[c+e>>2]|0;Nb(j,I[j-1|0],f);j=l+H[g+(e|8)>>2]|0;Nb(j,I[j-1|0],f);e=l+H[g+(e|12)>>2]|0;Nb(e,I[e-1|0],f);b=b+4|0;k=k+4|0;if((n|0)!=(k|0)){continue}break}}if(m){while(1){e=l+H[g+(b<<2)>>2]|0;Nb(e,I[e-1|0],f);b=b+1|0;i=i+1|0;if((m|0)!=(i|0)){continue}break}}e=H[a+272>>2]}if((e|0)>0){b=H[a+228>>2];k=b<<4;n=N(b,-80)+16384|0;l=h-2|0;m=0;j=0;while(1){b=m<<2;i=H[(b|4)+c>>2];f=b+c|0;b=H[f>>2];e=I[i|0]+I[b|0]|0;h=H[(j<<2)+d>>2];g=H[f-4>>2];o=I[g|0];m=m+2|0;f=H[(m<<2)+c>>2];p=I[f|0];F[h|0]=(N(n,I[i+1|0]+(e+I[b+1|0]|0)|0)+N(k,(((o+p|0)+I[g+2|0]|0)+I[f+2|0]|0)+(I[i+2|0]+(I[b+2|0]+(I[f+1|0]+(p+(I[g+1|0]+(e+o|0)|0)|0)|0)|0)<<1)|0)|0)+32768>>>16;e=h+1|0;b=b+2|0;f=f+2|0;g=g+2|0;h=i+2|0;i=l;if(i){while(1){F[e|0]=(N(n,I[h+1|0]+(I[h|0]+(I[b+1|0]+I[b|0]|0)|0)|0)+N(k,I[f+2|0]+(I[f-1|0]+((I[g+2|0]+I[g-1|0]|0)+(I[h+2|0]+(I[h-1|0]+(I[b+2|0]+(I[b-1|0]+(I[f+1|0]+(I[f|0]+(I[g+1|0]+I[g|0]|0)|0)|0)|0)|0)|0)<<1)|0)|0)|0)|0)+32768>>>16;e=e+1|0;f=f+2|0;g=g+2|0;h=h+2|0;b=b+2|0;i=i-1|0;if(i){continue}break}}p=e;i=I[h+1|0]+I[b+1|0]|0;e=I[f+1|0];o=I[g+1|0];F[p|0]=(N(n,I[h|0]+(i+I[b|0]|0)|0)+N(k,(I[f-1|0]+(I[g-1|0]+(e+o|0)|0)|0)+(I[h-1|0]+(I[b-1|0]+(e+(I[f|0]+(o+(i+I[g|0]|0)|0)|0)|0)|0)<<1)|0)|0)+32768>>>16;j=j+1|0;if(H[a+272>>2]>(m|0)){continue}break}}}function fF(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=H[b+4>>2];if(h>>>0>a>>>0){return 0}d=H[b+8>>2];if(d>>>0>>0){return 0}if(d-a>>>0<2){return 0}i=H[b+12>>2];f=i-2|0;H[b+12>>2]=f;e=1;if((f|0)<=0){return 0}f=I[a|0]|I[a+1|0]<<8;a:{if(!f){break a}b:{f=((f<<8|f>>>8)&65535)+c|0;if(f>>>0>>0|d>>>0>>0|d-f>>>0<2){break b}c=i-4|0;H[b+12>>2]=c;if((c|0)<=0){break b}i=I[f|0]|I[f+1|0]<<8;if(!i){break a}e=f+2|0;if(e>>>0>>0|d>>>0>>0){break b}g=d-e|0;d=(i<<8|i>>>8)&65535;e=d<<1;if(g>>>0>>0){break b}c=c-e|0;H[b+12>>2]=c;if((c|0)<=0){break b}l=d>>>0>1?d:1;i=0;while(1){k=H[b+4>>2];h=(f+(i<<1)|0)+2|0;c=0;c:{if(k>>>0>h>>>0){break c}e=H[b+8>>2];c=0;if(e>>>0>>0){break c}c=0;if(e-h>>>0<2){break c}j=H[b+12>>2];g=j-2|0;H[b+12>>2]=g;d=1;c=0;if((g|0)<=0){break c}c=I[h|0]|I[h+1|0]<<8;d:{if(!c){break d}c=f+((c<<8|c>>>8)&65535)|0;e:{if(c>>>0>>0|c>>>0>e>>>0|e-c>>>0<2){break e}d=j-4|0;H[b+12>>2]=d;if((d|0)<=0){break e}d=c+2|0;if(d>>>0>>0|d>>>0>e>>>0|e-d>>>0<2){break e}j=j-6|0;H[b+12>>2]=j;d=1;if((j|0)<=0){break e}g=I[c+2|0]|I[c+3|0]<<8;m=((g<<8|g>>>8)&65535)<<2;g=I[c|0]|I[c+1|0]<<8;g=m+(g?(((g<<8|g>>>8)&65535)<<1)-2|0:0)|0;if(!g){break d}c=c+4|0;if(c>>>0>>0|c>>>0>e>>>0|g>>>0>e-c>>>0){break e}c=j-g|0;H[b+12>>2]=c;if((c|0)>0){break d}}d=H[b+28>>2];c=0;if(d>>>0>31){break c}H[b+28>>2]=d+1;d=0;if(!I[b+24|0]){break d}F[h|0]=0;F[h+1|0]=0;d=1}c=d}if(!c){break b}e=1;i=i+1|0;if((l|0)!=(i|0)){continue}break}break a}c=H[b+28>>2];if(c>>>0>31){return 0}H[b+28>>2]=c+1;e=0;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;e=1}return e}function _u(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;i=xb+-64|0;xb=i;g=H[a>>2];a:{if((g|0)<=0){break a}e=H[a+24>>2];d=N(b,204);k=H[a+16>>2];c=H[a+8>>2];l=c+N(g,40)|0;b=0;a=c;while(1){b=(H[a+16>>2]>>>4&1)+b|0;a=a+40|0;if(l>>>0>a>>>0){continue}break}if(!b){break a}n=H[(e+d|0)+200>>2];b:{if(b>>>0<=16){e=i;break b}e=Ub(k,4,0,b,0,i);if(H[i>>2]){break a}}c:{if((g|0)<=0){break c}d=c;while(1){if(I[d+16|0]&16){a=(f<<2)+e|0;d:{if((f|0)<=0){b=a;break d}m=H[d+28>>2];while(1){b=a-4|0;j=H[b>>2];if((m|0)>=H[j+28>>2]){b=a;break d}H[a>>2]=j;a=b;if(e>>>0>>0){continue}break}}H[b>>2]=d;f=f+1|0}d=d+40|0;if(l>>>0>d>>>0){continue}break}if((g|0)<=0){break c}m=((f<<2)+e|0)-4|0;while(1){b=H[c+16>>2];e:{if(b&16){break e}a=H[c+12>>2];if(a&2){d=I[c+20|0];if(!(b&64|a&4)|((d|0)==4|(d|0)!=I[c+21|0])){break e}H[c+12>>2]=a&-3}f:{g:{if(f){b=H[c+28>>2];a=0;h:{while(1){if((b|0)>2]+28>>2]){break h}a=a+1|0;if((f|0)!=(a|0)){continue}break}a=f}if(a){break g}}a=H[e>>2];h=H[a+36>>2]+Rb(H[c+28>>2]-H[a+28>>2]|0,n)|0;break f}d=H[((a<<2)+e|0)-4>>2];b=f;while(1){a=b;if(a){b=a-1|0;if(H[H[(b<<2)+e>>2]+28>>2]>=H[c+28>>2]){continue}}break}if((a|0)==(f|0)){a=H[m>>2];h=H[a+36>>2]+Rb(H[c+28>>2]-H[a+28>>2]|0,n)|0;break f}b=H[c+28>>2];g=H[d+28>>2];h=H[d+36>>2];if((b|0)==(g|0)){break f}a=H[(a<<2)+e>>2];j=H[a+28>>2];if((j|0)==(b|0)){h=H[a+36>>2];break f}h=H[a+36>>2];a=H[d+36>>2];h=ic(b-g|0,h-a|0,j-g|0)+a|0}H[c+36>>2]=h;H[c+16>>2]=H[c+16>>2]|32}c=c+40|0;if(l>>>0>c>>>0){continue}break}}if((e|0)==(i|0)){break a}if(e){zb[H[k+8>>2]](k,e)}}xb=i- -64|0}function cla(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;e=163632;c=163632;d=H[H[H[a+96>>2]+144>>2]>>2];d=d?d:163632;d=K[d+16>>2]<10?163632:H[d+12>>2];f=I[d+8|0]|I[d+9|0]<<8;if(f){c=d+((f<<8|f>>>8)&65535)|0}d=I[c|0]|I[c+1|0]<<8;a:{if(((d<<8|d>>>8)&65535)>>>0<=b>>>0){break a}d=(b<<1)+c|0;d=I[d+2|0]|I[d+3|0]<<8;if(!d){break a}e=((d<<8|d>>>8)&65535)+c|0}j=H[a+128>>2];H[a+128>>2]=b;b=I[e+2|0]|I[e+3|0]<<8;b=b<<8|b>>>8;c=b&65535;d=H[a+132>>2];if(b&16){b=I[e+4|0]|I[e+5|0]<<8;b=(((b<<8|b>>>8)&65535)<<1)+e|0;b=I[b+6|0]|I[b+7|0]<<8;c=(b<<8|b>>>8)<<16|c}H[a+132>>2]=c;H[a+36>>2]=0;H[a+8>>2]=a;H[a+28>>2]=0;H[a+32>>2]=0;H[a+12>>2]=c;H[a+80>>2]=0;H[a+52>>2]=a;f=H[a+120>>2];H[a+20>>2]=f;g=I[a+142|0];F[a+17|0]=g;H[a+72>>2]=0;H[a+76>>2]=0;H[a+56>>2]=c;H[a- -64>>2]=-1;F[a+61|0]=1;c=H[a+124>>2];b=(c|0)==1;F[a+16|0]=b;h=I[a+141|0];F[a+60|0]=b|(h|0)!=0;b=I[e+4|0]|I[e+5|0]<<8;if(b){c=I[e|0]|I[e+1|0]<<8;h=(c<<8|c>>>8)&65535;g=(b<<8|b>>>8)&65535;k=g>>>0>1?g:1;f=e+4|0;c=0;i=1;while(1){b:{b=((b<<8|(b&65280)>>>8)&65535)>>>0>c>>>0?(f+(c<<1)|0)+2|0:163632;b=I[b|0]|I[b+1|0]<<8;if(b){b=((b<<8|b>>>8)&65535)+e|0}else{b=163632}if(BE(b,a,h)){break b}c=c+1|0;i=g>>>0>c>>>0;if((c|0)==(k|0)){break b}b=I[f|0]|I[f+1|0]<<8;continue}break}h=I[a+141|0];f=H[a+120>>2];g=I[a+142|0];c=H[a+124>>2]}H[a+132>>2]=d;H[a+128>>2]=j;H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;H[a+80>>2]=0;H[a+20>>2]=f;F[a+17|0]=g;H[a+12>>2]=d;H[a+72>>2]=0;H[a+76>>2]=0;H[a+64>>2]=-1;F[a+61|0]=1;H[a+56>>2]=d;b=(c|0)==1;F[a+16|0]=b;F[a+60|0]=b|(h|0)!=0;H[a+8>>2]=a;H[a+52>>2]=a;return i|0}function ala(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;e=163632;c=163632;d=H[H[H[a+96>>2]+148>>2]>>2];d=d?d:163632;d=K[d+16>>2]<10?163632:H[d+12>>2];f=I[d+8|0]|I[d+9|0]<<8;if(f){c=d+((f<<8|f>>>8)&65535)|0}d=I[c|0]|I[c+1|0]<<8;a:{if(((d<<8|d>>>8)&65535)>>>0<=b>>>0){break a}d=(b<<1)+c|0;d=I[d+2|0]|I[d+3|0]<<8;if(!d){break a}e=((d<<8|d>>>8)&65535)+c|0}j=H[a+128>>2];H[a+128>>2]=b;b=I[e+2|0]|I[e+3|0]<<8;b=b<<8|b>>>8;c=b&65535;d=H[a+132>>2];if(b&16){b=I[e+4|0]|I[e+5|0]<<8;b=(((b<<8|b>>>8)&65535)<<1)+e|0;b=I[b+6|0]|I[b+7|0]<<8;c=(b<<8|b>>>8)<<16|c}H[a+132>>2]=c;H[a+36>>2]=0;H[a+8>>2]=a;H[a+28>>2]=0;H[a+32>>2]=0;H[a+12>>2]=c;H[a+80>>2]=0;H[a+52>>2]=a;f=H[a+120>>2];H[a+20>>2]=f;g=I[a+142|0];F[a+17|0]=g;H[a+72>>2]=0;H[a+76>>2]=0;H[a+56>>2]=c;H[a- -64>>2]=-1;F[a+61|0]=1;c=H[a+124>>2];b=(c|0)==1;F[a+16|0]=b;h=I[a+141|0];F[a+60|0]=b|(h|0)!=0;b=I[e+4|0]|I[e+5|0]<<8;if(b){c=I[e|0]|I[e+1|0]<<8;h=(c<<8|c>>>8)&65535;g=(b<<8|b>>>8)&65535;k=g>>>0>1?g:1;f=e+4|0;c=0;i=1;while(1){b:{b=((b<<8|(b&65280)>>>8)&65535)>>>0>c>>>0?(f+(c<<1)|0)+2|0:163632;b=I[b|0]|I[b+1|0]<<8;if(b){b=((b<<8|b>>>8)&65535)+e|0}else{b=163632}if(yE(b,a,h)){break b}c=c+1|0;i=g>>>0>c>>>0;if((c|0)==(k|0)){break b}b=I[f|0]|I[f+1|0]<<8;continue}break}h=I[a+141|0];f=H[a+120>>2];g=I[a+142|0];c=H[a+124>>2]}H[a+132>>2]=d;H[a+128>>2]=j;H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;H[a+80>>2]=0;H[a+20>>2]=f;F[a+17|0]=g;H[a+12>>2]=d;H[a+72>>2]=0;H[a+76>>2]=0;H[a+64>>2]=-1;F[a+61|0]=1;H[a+56>>2]=d;b=(c|0)==1;F[a+16|0]=b;F[a+60|0]=b|(h|0)!=0;H[a+8>>2]=a;H[a+52>>2]=a;return i|0}function Cda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;r=H[a+332>>2];a=H[b+84>>2];k=xb-128|0;b=k;l=4;while(1){a:{b:{f=J[c+32>>1];g=G[c+16>>1];if((f|g)&65535){break b}f=0;if(J[c+48>>1]|J[c+64>>1]|(J[c+80>>1]|J[c+96>>1])){break b}if(J[c+112>>1]){break b}f=N(G[c>>1],H[a>>2])<<2;H[b+96>>2]=f;H[b+80>>2]=f;H[b+64>>2]=f;H[b+48>>2]=f;H[b+32>>2]=f;H[b+16>>2]=f;H[b>>2]=f;h=28;break a}m=N(H[a+192>>2],G[c+96>>1]);i=N(H[a+64>>2],f<<16>>16);f=N(m+i|0,4433);n=N(G[c+64>>1],H[a+128>>2])<<13;o=N(G[c>>1],H[a>>2])<<13|1024;s=n+o|0;t=f+N(i,6270)|0;p=s+t|0;g=N(g,H[a+32>>2]);i=N(H[a+224>>2],G[c+112>>1]);u=N(g+i|0,-7373);x=u+N(g,12299)|0;j=N(H[a+96>>2],G[c+48>>1]);v=j+i|0;h=g;g=N(H[a+160>>2],G[c+80>>1]);q=h+g|0;w=N(v+q|0,9633);q=w+N(q,-3196)|0;h=x+q|0;H[b+112>>2]=p-h>>11;H[b>>2]=p+h>>11;n=o-n|0;f=f+N(m,-15137)|0;m=n+f|0;o=N(v,-16069)+w|0;h=N(j,25172);j=N(g+j|0,-20995);p=o+(h+j|0)|0;H[b+96>>2]=m-p>>11;H[b+16>>2]=m+p>>11;f=n-f|0;g=q+(j+N(g,16819)|0)|0;H[b+80>>2]=f-g>>11;H[b+32>>2]=f+g>>11;f=o+(N(i,2446)+u|0)|0;g=s-t|0;H[b+48>>2]=f+g>>11;f=g-f>>11;h=16}H[(h<<2)+b>>2]=f;c=c+2|0;a=a+4|0;b=b+4|0;f=l>>>0>1;l=l-1|0;if(f){continue}break}a=r+128|0;l=0;c=k;while(1){f=H[c+12>>2];g=H[c+4>>2];k=N(f+g|0,4433);b=H[(l<<2)+d>>2]+e|0;g=k+N(g,6270)|0;i=H[c>>2]+16|0;j=H[c+8>>2];r=i+j<<13;F[b|0]=I[a+(g+r>>>18&1023)|0];F[b+3|0]=I[a+(r-g>>>18&1023)|0];k=k+N(f,-15137)|0;f=i-j<<13;F[b+1|0]=I[a+(k+f>>>18&1023)|0];F[b+2|0]=I[a+(f-k>>>18&1023)|0];c=c+16|0;l=l+1|0;if((l|0)!=8){continue}break}}function gea(a){a=a|0;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;j=xb-16|0;xb=j;e=H[a+448>>2];if(H[a+336>>2]>0){while(1){f=b<<2;c=H[(f+a|0)+340>>2];d=H[c+12>>2];t=f+j|0,u=zb[H[H[a+4>>2]+32>>2]](a,H[((H[c+4>>2]<<2)+e|0)+72>>2],N(d,H[a+148>>2]),d,1)|0,H[t>>2]=u;b=b+1|0;if((b|0)>2]){continue}break}}c=H[e+28>>2];h=H[e+24>>2];a:{if((c|0)>(h|0)){p=e+32|0;b=H[a+356>>2];g=H[e+20>>2];while(1){if(b>>>0>g>>>0){while(1){k=0;f=0;m=H[a+336>>2];if((m|0)>0){while(1){d=k<<2;b=H[(d+a|0)+340>>2];n=H[b+60>>2];b:{if((n|0)<=0){break b}i=H[b+56>>2];if((i|0)<=0){break b}q=N(g,i);r=H[d+j>>2];o=i&7;s=i-1|0;l=0;while(1){b=H[(h+l<<2)+r>>2]+(q<<7)|0;d=f;c=0;if(o){while(1){H[((d<<2)+e|0)+32>>2]=b;d=d+1|0;b=b+128|0;c=c+1|0;if((o|0)!=(c|0)){continue}break}}f=f+i|0;if(s>>>0>=7){while(1){c=(d<<2)+e|0;H[c+36>>2]=b+128;H[c+32>>2]=b;H[c+40>>2]=b+256;H[c+44>>2]=b+384;H[c+48>>2]=b+512;H[c+52>>2]=b+640;H[c+56>>2]=b+768;H[c+60>>2]=b+896;b=b+1024|0;d=d+8|0;if((f|0)!=(d|0)){continue}break}}l=l+1|0;if((n|0)!=(l|0)){continue}break}}k=k+1|0;if((m|0)!=(k|0)){continue}break}}if(!(zb[H[H[a+464>>2]+4>>2]](a,p)|0)){H[e+20>>2]=g;H[e+24>>2]=h;a=0;break a}b=H[a+356>>2];g=g+1|0;if(b>>>0>g>>>0){continue}break}c=H[e+28>>2]}g=0;H[e+20>>2]=0;h=h+1|0;if((h|0)<(c|0)){continue}break}}c=1;f=H[a+148>>2]+1|0;H[a+148>>2]=f;b=H[a+328>>2];if(b>>>0>f>>>0){d=H[a+448>>2];c=H[a+336>>2]<=1?H[H[a+340>>2]+(f>>>0>>0?12:76)>>2]:c;H[d+20>>2]=0;H[d+24>>2]=0;H[d+28>>2]=c;a=3;break a}zb[H[H[a+456>>2]+12>>2]](a);a=4}xb=j+16|0;return a|0}function fC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb-272|0;xb=g;d=H[a+200>>2];if(d&1){a:{if(d&4){Xb(a,266865);mc(a,c);break a}if(d&2){Xb(a,266889);d=H[a+200>>2]}if(!(!(d&16384)&(!b|!(I[b+9|0]&24)))){Xb(a,266957);mc(a,c);break a}H[a+200>>2]=d|16384;cc(a,H[a+740>>2]);d=Rd(a,c+1|0);H[a+740>>2]=d;vd(a,d,c);xc(a,d,c);e=mc(a,0);d=H[a+740>>2];if(e){cc(a,d);H[a+740>>2]=0;break a}F[c+d|0]=0;e=H[a+740>>2];d=e;while(1){f=d;d=d+1|0;if(I[f|0]){continue}break}if(!((c+e|0)-1>>>0>d>>>0?c:0)){cc(a,e);H[a+740>>2]=0;Xb(a,267014);break a}d=f+2|0;if(I[f+1|0]){Xb(a,267035);e=H[a+740>>2]}d=d-e|0;Eq(a,0,c,d,g+268|0);c=H[a+740>>2];b:{e=H[g+268>>2];if(e>>>0>=d>>>0){e=e-d|0;if(e>>>0>3){break b}}cc(a,c);H[a+740>>2]=0;Xb(a,267083);break a}k=c+d|0;d=k;d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);i=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(i>>>0>e>>>0){cc(a,c);H[a+740>>2]=0;BC(g,1,i);BC(g,2,e);Ci(a,g,267126);break a}f=xb-80|0;xb=f;c:{if(!a|!b|(!c|!k)){break c}l=1;d=f;h=I[c|0];d:{if(!h){e=1;break d}while(1){c=c+1|0;e=0;e:{if(!((h-33&255)>>>0<94|h>>>0>160)){e=1;if(l){break e}h=32}F[d|0]=h;j=j+1|0;d=d+1|0}h=I[c|0];if(!h){break d}l=e;if(j>>>0<79){continue}break}}c=(j|0)!=0&e;F[d-c|0]=0;c=j-c|0;if(!c){Xb(a,264611);break c}c=c+1|0;d=xd(a,c);if(!d){Xb(a,264633);break c}c=Ob(d,f,c);d=xd(a,i);if(!d){cc(a,c);Xb(a,264733);break c}d=Ob(d,k,i);Mh(a,b,16,0);F[b+208|0]=0;H[b+200>>2]=d;H[b+196>>2]=c;H[b+204>>2]=i;H[b+184>>2]=H[b+184>>2]|16;H[b+8>>2]=H[b+8>>2]|4096}xb=f+80|0;cc(a,H[a+740>>2]);H[a+740>>2]=0}xb=g+272|0;return}hc(a,266822);X()}function bu(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;e=xb-16|0;xb=e;d=H[a+104>>2];f=H[d+28>>2];k=H[a+736>>2];F[k+(b?44:32)|0]=1;c=zb[H[a+516>>2]](a,b?1448493394:1213612370,d,e+8|0)|0;H[e+12>>2]=c;a:{if(c){break a}g=H[d+8>>2];i=nc(d,e+12|0);c=H[e+12>>2];if(c){break a}c=ud(d,2);H[e+12>>2]=c;if(c){break a}if((i|0)!=1){c=8;H[e+12>>2]=8;break a}i=hd(d,e+12|0);c=H[e+12>>2];if(c){break a}h=hd(d,e+12|0);c=H[e+12>>2];if(c){break a}f=pc(f,32,e+12|0);b:{if(b){H[k+52>>2]=f;break b}H[k+40>>2]=f}c=H[e+12>>2];if(c){break a}c=du(H[a+104>>2],H[a+736>>2],g+i|0,f);H[e+12>>2]=c;if(c){break a}if(h){d=xb-16|0;xb=d;i=H[a+104>>2];j=H[i+28>>2];c=bc(i,g+h|0);H[d+12>>2]=c;c:{if(c){break c}g=nc(i,d+12|0);c=H[d+12>>2];if(c){break c}h=nc(i,d+12|0);H[f+20>>2]=h;c=H[d+12>>2];if(c){break c}d:{if(g&65472){break d}p=f,q=Ub(j,4,0,h,0,d+12|0),H[p+28>>2]=q;c=H[d+12>>2];if(c){break c}p=f,q=Ub(j,4,0,H[f+20>>2],0,d+12|0),H[p+24>>2]=q;c=H[d+12>>2];if(c){break c}if(!H[f+20>>2]){c=0;break c}c=g&15;m=c+1|0;n=g>>>4&3;o=(2<>2];if(c){break c}g=l&255|g<<8;c=(j|0)!=(n|0);j=j+1|0;if(c){continue}break}c=g>>>m|0;if(c>>>0>=K[f>>2]){break d}j=h<<2;H[j+H[f+24>>2]>>2]=c;l=H[H[f+4>>2]+(c<<4)>>2];c=g&o;if(l>>>0<=c>>>0){break d}H[j+H[f+28>>2]>>2]=c;h=h+1|0;if(h>>>0>2]){continue}break}c=H[d+12>>2];break c}c=8;H[d+12>>2]=8}xb=d+16|0;if(c){break a}}c=0;H[e+12>>2]=0;if(b){F[k+45|0]=1;H[a+740>>2]=H[a+740>>2]|16;break a}F[k+33|0]=1;H[a+740>>2]=H[a+740>>2]|2}xb=e+16|0;return c}function hk(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;if(!(I[(N(c,9804)+b|0)+256|0]|!(a&4))){h=d>>31;h=(h^d)-h|0;a:{b:{c:{if((c|0)==1){if(a&2){break c}if(!(g&2)|h>>>0>=192){break b}f=h;break a}if(!(a&1)){break b}}d:{e:{f:{g:{h:{e=H[(N(c,9804)+b|0)+52>>2];if(e){q=e&1;if((e|0)!=1){break h}g=98;f=0;e=h;break g}f=h+32&2147483584;e=h;break f}r=e&-2;g=98;f=0;i=(N(c,9804)+b|0)+56|0;e=h;while(1){n=H[(N(f|1,12)+i|0)+4>>2];j=h-n|0;k=j>>31;o=H[(N(f,12)+i|0)+4>>2];l=h-o|0;m=l>>31;l=(m^l)-m|0;m=(l|0)<(g|0);j=(k^j)-k|0;g=m?l:g;k=(j|0)<(g|0);g=k?j:g;e=k?n:m?o:e;f=f+2|0;p=p+2|0;if((r|0)!=(p|0)){continue}break}}if(q){f=H[((N(c,9804)+b|0)+N(f,12)|0)+60>>2];i=h-f|0;b=i>>31;e=((b^i)-b|0)<(g|0)?f:e}f=e+32&-64;if((e|0)>(h|0)){break e}}b=(h|0)<(f|48)?e:h;break d}b=(h|0)>(f-48|0)?e:h}if((c|0)==1){f=64;if((b|0)<64){break a}f=b+16&-64;break a}if(a&8){f=64;if((b|0)<64){break a}f=b+32&-64;break a}if((b|0)<=47){f=b- -64>>1;break a}if(b>>>0<=127){f=b+22&-64;b=f-h|0;a=b>>31;if((a^b)-a>>>0<16){break a}if(h>>>0>47){f=h;break a}f=h- -64>>>1|0;break a}f=b+32&-64;break a}f=f&1?h>>>0<80?64:h:h>>>0>56?h:56;a=N(c,9804)+b|0;if(!H[a+52>>2]){break a}a=H[a+60>>2];g=f-a|0;c=g>>31;if((c^g)-c>>>0<=39){f=(a|0)>48?a:48;break a}if(f>>>0<=191){a=f&63;if(a>>>0<10){break a}b=f&2147483584;if(a>>>0<=31){f=b|10;break a}f=a>>>0<54?b|54:f;break a}g=0;i:{if(!((d|0)>0&(e|0)>0)&(d&e)>=0){break i}a=J[H[H[b+4>>2]+88>>2]+12>>1];if(a>>>0>=10){if(a>>>0>29){break i}e=(N(30-a|0,e)|0)/20|0}a=e>>31;g=a-(a^e)|0}f=(f+g|0)+32&-64}d=(d|0)<0?0-f|0:f}return d}function Vea(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,K=0,L=0,M=0,O=0,P=0,Q=0,R=0,S=0;a:{if((d|0)>0){g=H[a+480>>2];o=H[a+112>>2];i=N(o,3);p=i+3|0;if(!o){break a}r=H[a+332>>2];e=H[a+136>>2];K=H[e+8>>2];L=H[e+4>>2];M=H[e>>2];s=H[g+40>>2];O=H[g+24>>2];P=o-1|0;Q=i-3|0;while(1){e=t<<2;i=H[e+c>>2];j=H[b+e>>2];b:{if(H[g+36>>2]){i=i+P|0;j=j+Q|0;l=-3;y=-1;f=0;e=H[g+32>>2]+(p<<1)|0;break b}l=3;f=1;y=1;e=H[g+32>>2]}H[g+36>>2]=f;R=l+2|0;S=l+1|0;m=0;k=0;n=0;z=0;A=0;B=0;u=0;v=0;w=0;x=o;while(1){C=(l<<1)+e|0;m=I[(H[((G[C>>1]+m|0)+8>>4<<2)+s>>2]+I[j|0]|0)+r|0];h=m>>>3|0;k=I[(H[((G[(S<<1)+e>>1]+k|0)+8>>4<<2)+s>>2]+I[j+1|0]|0)+r|0];q=k>>>2|0;n=I[(H[((G[(R<<1)+e>>1]+n|0)+8>>4<<2)+s>>2]+I[j+2|0]|0)+r|0];D=n>>>3|0;E=(H[(h<<2)+O>>2]+(q<<6)|0)+(D<<1)|0;f=J[E>>1];if(!f){TC(a,h,q,D);f=J[E>>1]}f=(f&65535)-1|0;F[i|0]=f;q=I[f+M|0];h=I[f+L|0];f=n-I[f+K|0]|0;G[e+4>>1]=N(f,3)+w;h=k-h|0;G[e+2>>1]=N(h,3)+v;k=e;e=m-q|0;G[k>>1]=N(e,3)+u;i=i+y|0;j=j+l|0;n=N(f,7);k=N(h,7);m=N(e,7);w=N(f,5)+B|0;v=N(h,5)+A|0;u=N(e,5)+z|0;z=e;A=h;B=f;e=C;x=x-1|0;if(x){continue}break}G[e+4>>1]=w;G[e+2>>1]=v;G[e>>1]=u;t=t+1|0;if((t|0)!=(d|0)){continue}break}}return}e=H[g+36>>2];if((d|0)!=1){c=d&-2;a=H[g+32>>2];while(1){b=a+((e?p:0)<<1)|0;G[b+4>>1]=0;G[b>>1]=0;G[b+2>>1]=0;b=a+((e?0:p)<<1)|0;G[b>>1]=0;G[b+2>>1]=0;G[b+4>>1]=0;e=(e|0)!=0;f=f+2|0;if((c|0)!=(f|0)){continue}break}}if(d&1){a=H[g+32>>2]+((e?p:0)<<1)|0;G[a+4>>1]=0;G[a>>1]=0;G[a+2>>1]=0;e=!e}H[g+36>>2]=e}function l7(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:{d=H[H[a+584>>2]+4>>2];if((d|0)>=(c|0)){break a}c=c-d|0;b:{switch(d-3|0){case 0:a=I[b+2|0];e=I[b+1|0];f=I[b|0];while(1){d=I[b+3|0];F[b+3|0]=d-f;f=I[b+4|0];F[b+4|0]=f-e;e=I[b+5|0];F[b+5|0]=e-a;b=b+3|0;h=(c|0)>3;a=e;e=f;f=d;c=c-3|0;if(h){continue}break};break a;case 1:a=I[b+3|0];e=I[b+2|0];f=I[b+1|0];d=I[b|0];while(1){h=I[b+4|0];F[b+4|0]=h-d;i=I[b+5|0];F[b+5|0]=i-f;g=I[b+6|0];F[b+6|0]=g-e;j=I[b+7|0];F[b+7|0]=j-a;b=b+4|0;k=(c|0)>4;c=c-4|0;d=h;f=i;e=g;a=j;if(k){continue}break};break a;default:break b}}b=(b+c|0)-1|0;if((d|0)<5){while(1){c:{switch(d|0){default:a=b+d|0;F[a|0]=I[a|0]-I[b|0];b=b-1|0;case 3:a=b+d|0;F[a|0]=I[a|0]-I[b|0];b=b-1|0;case 2:a=b+d|0;F[a|0]=I[a|0]-I[b|0];b=b-1|0;case 1:a=b+d|0;F[a|0]=I[a|0]-I[b|0];b=b-1|0;break;case 0:break c}}c=c-d|0;if((c|0)>0){continue}break a}}a=d-4|0;h=d&3;i=d-5>>>0>2;while(1){d:{e:{f:{g:{h:{i:{switch(d|0){case 0:break d;case 1:break e;case 2:break f;case 3:break g;case 4:break h;default:break i}}f=0;e=a;if(h){while(1){g=b+d|0;F[g|0]=I[g|0]-I[b|0];e=e-1|0;b=b-1|0;f=f+1|0;if((h|0)!=(f|0)){continue}break}}if(!i){break h}while(1){f=b+d|0;F[f|0]=I[f|0]-I[b|0];f=b-1|0;g=f+d|0;F[g|0]=I[g|0]-I[f|0];f=b-2|0;g=f+d|0;F[g|0]=I[g|0]-I[f|0];f=b-3|0;g=f+d|0;F[g|0]=I[g|0]-I[f|0];b=b-4|0;f=(e|0)>4;e=e-4|0;if(f){continue}break}}e=b+d|0;F[e|0]=I[e|0]-I[b|0];b=b-1|0}e=b+d|0;F[e|0]=I[e|0]-I[b|0];b=b-1|0}e=b+d|0;F[e|0]=I[e|0]-I[b|0];b=b-1|0}e=b+d|0;F[e|0]=I[e|0]-I[b|0];b=b-1|0}c=c-d|0;if((c|0)>0){continue}break}}}function cG(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;d=H[c>>2];e=H[a>>2];a:{if(d>>>0>e>>>0){break a}f=H[c+4>>2];if(e>>>0>=f+d>>>0){break a}d=e+1|0;H[a>>2]=d;h=I[e|0];if(h&128){g=H[c>>2];if(g>>>0>d>>>0|d>>>0>=f+g>>>0){break a}H[a>>2]=e+2;h=I[e+1|0]|h<<8&32512}e=H[b>>2];b:{if((e|0)<0){break b}if(e>>>0>>0){f=e;while(1){f=((f>>>1|0)+f|0)+8|0;if(h>>>0>=f>>>0){continue}break}c:{if(!(e>>>0>f>>>0|f>>>0>1073741822)){e=tc(H[b+8>>2],f<<2);if(e){break c}}H[b>>2]=-1;break b}H[b>>2]=f;H[b+8>>2]=e}e=H[b+4>>2];if(e>>>0>>0){Nb(H[b+8>>2]+(e<<2)|0,0,h-e<<2)}H[b+4>>2]=h}m=H[40908];f=0;while(1){i=f&65535;k=i>>>0>=h>>>0;if(k){break a}d=H[c>>2];e=H[a>>2];if(d>>>0>e>>>0|e>>>0>=d+H[c+4>>2]>>>0){break a}g=e+1|0;H[a>>2]=g;e=F[e|0];l=e&127;d:{e:{if((e|0)<0){e=0;while(1){d=H[c>>2];if(d>>>0>g>>>0){break e}d=d+H[c+4>>2]|0;if(d>>>0>>0|d-g>>>0<2){break e}d=I[g|0]|I[g+1|0]<<8;j=((d<<8|d>>>8)&65535)+j|0;f:{if(K[b+4>>2]<=i>>>0){H[196248]=m;g=H[a>>2];d=784992;break f}d=H[b+8>>2]+(i<<2)|0}H[d>>2]=j;g=g+2|0;H[a>>2]=g;d=e+1|0;f=f+1|0;if((e&65535)>>>0>=l>>>0){break d}e=d;i=f&65535;if(i>>>0>>0){continue}break}break d}e=0;d=H[c>>2];if(g>>>0>>0){break e}while(1){if(H[c+4>>2]+d>>>0<=g>>>0){break e}H[a>>2]=g+1;j=I[g|0]+j|0;g:{if(K[b+4>>2]<=i>>>0){H[196248]=m;d=784992;break g}d=H[b+8>>2]+(i<<2)|0}H[d>>2]=j;d=e+1|0;f=f+1|0;if((e&65535)>>>0>=l>>>0){break d}i=f&65535;if(i>>>0>=h>>>0){break d}e=d;d=H[c>>2];g=H[a>>2];if(d>>>0<=g>>>0){continue}break}}k=0;break a}if((d&65535)>>>0>l>>>0){continue}break}}return k|0}function Hba(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){mc(a,0);while(1){d=en(a);a:{b:{c=H[a+348>>2];if((c|0)!=1229278788){if((c|0)!=1229472850){break b}nC(a,b,d);break a}lC(a,d);break a}c:{if(Pk(a,c)){if((c|0)==1229209940){if(!(I[a+201|0]&32?1:d)){break c}Nq(a,262257);break c}Nk(a,b,d);if((c|0)!=1347179589){break a}H[a+200>>2]=H[a+200>>2]|2;break a}d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((c|0)<=1883455819){if((c|0)<=1732332864){if((c|0)<=1649100611){if((c|0)==1229209940){break n}if((c|0)!=1347179589){break c}mC(a,b,d);break a}if((c|0)==1649100612){break m}if((c|0)!=1665684045){break c}hC(a,b,d);break a}if((c|0)<=1766015823){if((c|0)==1732332865){break l}if((c|0)!=1749635924){break c}bC(a,b,d);break a}if((c|0)==1766015824){break g}if((c|0)==1767135348){break d}if((c|0)!=1866876531){break c}_B(a,b,d);break a}if((c|0)<=1934772033){if((c|0)<=1933723987){if((c|0)==1883455820){break k}if((c|0)!=1883789683){break c}aC(a,b,d);break a}if((c|0)==1933723988){break i}if((c|0)==1933787468){break j}if((c|0)!=1934642260){break c}eC(a,b,d);break a}if((c|0)<=1950960964){if((c|0)==1934772034){break h}if((c|0)!=1950701684){break c}WB(a,b,d);break a}if((c|0)==1950960965){break f}if((c|0)==1951551059){break e}if((c|0)!=2052348020){break c}VB(a,b,d);break a}if(I[a+201|0]&32?1:d){Nq(a,262257)}mc(a,d);break a}cC(a,b,d);break a}jC(a,b,d);break a}ZB(a,b,d);break a}YB(a,b,d);break a}iC(a,b,d);break a}gC(a,b,d);break a}fC(a,b,d);break a}XB(a,b,d);break a}dC(a,b,d);break a}UB(a,b,d);break a}Nk(a,b,d)}if(!(I[a+200|0]&16)){continue}break}}}function eA(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;c=xb-80|0;xb=c;zk(c- -64|0,H[b+80>>2],H[b+48>>2]);H[c+56>>2]=0;H[c+48>>2]=0;H[c+52>>2]=0;a:{b:{c:{d:{e:{f=H[b+84>>2];if(f){d=H[b+48>>2];H[c+40>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;f:{if(!d){break f}i=d<<2;if(i>>>0>=2147483645){H[197455]=0;ia(1654,c+32|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}X()}H[197455]=0;j=d<<3;g=aa(899,j|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}k=i-4|0;l=(k>>>2|0)+1&7;g:{if(!l){d=f;e=g;break g}d=f;e=g;while(1){M[e>>3]=K[d>>2];e=e+8|0;d=d+4|0;h=h+1|0;if((l|0)!=(h|0)){continue}break}}h=g+j|0;if(k>>>0<28){break f}f=f+i|0;while(1){M[e>>3]=K[d>>2];M[e+8>>3]=K[d+4>>2];M[e+16>>3]=K[d+8>>2];M[e+24>>3]=K[d+12>>2];M[e+32>>3]=K[d+16>>2];M[e+40>>3]=K[d+20>>2];M[e+48>>3]=K[d+24>>2];M[e+56>>3]=K[d+28>>2];e=e- -64|0;d=d+32|0;if((f|0)!=(d|0)){continue}break}}H[c+56>>2]=h;H[c+52>>2]=e;H[c+48>>2]=g}f=H[b+44>>2];M[c+32>>3]=H[b+40>>2];M[c+40>>3]=f|0;H[197455]=0;d=c+16|0;H[d>>2]=H[b>>2];H[d+4>>2]=H[b+4>>2];H[d+8>>2]=H[b+8>>2];H[d+12>>2]=H[b+12>>2];f=H[197455];H[197455]=0;if((f|0)==1){break d}m=M[b+24>>3];M[c+8>>3]=M[b+32>>3];M[c>>3]=m;H[197455]=0;Fa(1773,a+8|0,c- -64|0,c+32|0,d|0,c|0,c+48|0);a=H[197455];H[197455]=0;if((a|0)==1){break c}a=H[c+48>>2];if(a){H[c+52>>2]=a;Kb(a)}if(F[c+75|0]<0){Kb(H[c+64>>2])}xb=c+80|0;return}e=$()|0;_()|0;a=H[c+32>>2];if(!a){break a}H[c+36>>2]=a;Kb(a);break a}e=$()|0;_()|0;break b}e=$()|0;_()|0;g=H[c+48>>2]}if(!g){break a}H[c+52>>2]=g;Kb(g)}if(F[c+75|0]<0){Kb(H[c+64>>2])}ea(e|0);X()}function YE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{c:{d:{e:{d=I[a|0]|I[a+1|0]<<8;f=d<<8|d>>>8;switch(f&65535){case 1:break c;case 0:break e;default:break d}}a=H[b+100>>2];d=H[a+80>>2];c=H[a+64>>2];e=H[(d+N(c,20)|0)+8>>2];f=c+1|0;f:{g:{h:{if(f>>>0>2]){if((e|0)==H[(d+N(f,20)|0)+8>>2]){break g}b=H[a+72>>2];if(b){break h}Jd(a,c,c+2|0);H[a+64>>2]=H[a+64>>2]+1;break f}b=H[a+72>>2];if(!b){break g}}h=H[a+84>>2];i=H[(h+N(b,20)|0)-12>>2];if(i>>>0<=e>>>0){break g}d=H[(d+N(c,20)|0)+4>>2]&3;while(1){b=b-1|0;c=h+N(b,20)|0;if((i|0)!=H[c+8>>2]){break g}H[c+4>>2]=d|H[c+4>>2]&-4;H[c+8>>2]=e;if(b){continue}break}}H[a+64>>2]=f}return 1}c=H[b+100>>2];e=H[c+64>>2];if(!d){break a}c=H[c+80>>2]+N(e,20)|0;h=J[c+12>>1]>>>1&2;j=f&65535;k=I[c+14|0]>31;f=0;while(1){if(!k){c=H[b+100>>2];F[(H[c+80>>2]+N(H[c+64>>2],20)|0)+14|0]=f&15}c=(f<<1)+a|0;c=I[c+2|0]|I[c+3|0]<<8;i=(c<<8|c>>>8)&65535;c=H[b+100>>2];d=H[c+80>>2]+N(H[c+64>>2],20)|0;c=J[d+12>>1]|80;i:{if(I[b+140|0]){c=Ye(H[b+108>>2],i)|c&112;break i}if(!h){break i}c=h|c&112}G[d+12>>1]=c;d=H[b+100>>2];if(ec(d,0,1)){c=H[d+64>>2];j:{if(c>>>0>2]){e=H[d+72>>2];g=H[d+84>>2];c=H[d+80>>2]+N(c,20)|0;break j}g=H[d+84>>2];e=H[d+72>>2];c=g+N(e?e-1|0:0,20)|0}e=N(e,20)+g|0;g=H[c+4>>2];H[e>>2]=H[c>>2];H[e+4>>2]=g;H[e+16>>2]=H[c+16>>2];g=H[c+12>>2];H[e+8>>2]=H[c+8>>2];H[e+12>>2]=g;H[e>>2]=i;H[d+72>>2]=H[d+72>>2]+1}f=f+1|0;if((j|0)!=(f|0)){continue}break}break b}a=I[a+2|0]|I[a+3|0]<<8;ZE(b,(a<<8|a>>>8)&65535);return 1}c=H[b+100>>2];e=H[c+64>>2]}H[c+64>>2]=e+1;return 1}function h7(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;g=J[a+84>>1];h=g>>>3|0;f=(c>>>0)/(h>>>0)|0;d=H[H[a+584>>2]+4>>2];i=Tb(c);a:{if(!i){break a}Kc(i,b,c);if(!(g>>>0<8|(f|0)<=0)){a=h>>>0>1?h:1;k=a&8190;l=a&1;m=g>>>0<16;while(1){g=N(e,h);a=0;j=0;if(!m){while(1){F[(N(f,h+(a^-1)|0)+e|0)+b|0]=I[i+(a+g|0)|0];F[(N(f,(h-a|0)-2|0)+e|0)+b|0]=I[i+(g+(a|1)|0)|0];a=a+2|0;j=j+2|0;if((k|0)!=(j|0)){continue}break}}if(l){F[(N(f,h+(a^-1)|0)+e|0)+b|0]=I[i+(a+g|0)|0]}e=e+1|0;if((f|0)!=(e|0)){continue}break}}Kb(i);if((c|0)<=(d|0)){break a}a=((d^-1)+c|0)+b|0;if((d|0)>=5){b=d-4|0;h=d&3;i=d-5>>>0>2;while(1){b:{c:{d:{e:{f:{g:{switch(d|0){case 1:break c;case 2:break d;case 3:break e;case 4:break f;case 0:break b;default:break g}}f=0;e=b;if(h){while(1){g=a+d|0;F[g|0]=I[g|0]-I[a|0];e=e-1|0;a=a-1|0;f=f+1|0;if((h|0)!=(f|0)){continue}break}}if(!i){break f}while(1){f=a+d|0;F[f|0]=I[f|0]-I[a|0];f=a-1|0;g=f+d|0;F[g|0]=I[g|0]-I[f|0];f=a-2|0;g=f+d|0;F[g|0]=I[g|0]-I[f|0];f=a-3|0;g=f+d|0;F[g|0]=I[g|0]-I[f|0];a=a-4|0;f=(e|0)>4;e=e-4|0;if(f){continue}break}}e=a+d|0;F[e|0]=I[e|0]-I[a|0];a=a-1|0}e=a+d|0;F[e|0]=I[e|0]-I[a|0];a=a-1|0}e=a+d|0;F[e|0]=I[e|0]-I[a|0];a=a-1|0}e=a+d|0;F[e|0]=I[e|0]-I[a|0];a=a-1|0}c=c-d|0;if((d|0)<(c|0)){continue}break}break a}while(1){h:{switch(d|0){default:b=a+d|0;F[b|0]=I[b|0]-I[a|0];a=a-1|0;case 3:b=a+d|0;F[b|0]=I[b|0]-I[a|0];a=a-1|0;case 2:b=a+d|0;F[b|0]=I[b|0]-I[a|0];a=a-1|0;case 1:b=a+d|0;F[b|0]=I[b|0]-I[a|0];a=a-1|0;break;case 0:break h}}c=c-d|0;if((d|0)<(c|0)){continue}break}}}function Te(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!b|H[b+16>>2]>131082){break a}e=H[a+16>>2];if(e){c=H[b+8>>2];b:{while(1){f=H[((d<<2)+a|0)+20>>2];g=H[f>>2];if(fc(H[g+8>>2],c)){d=d+1|0;if((d|0)!=(e|0)){continue}break b}break}if(H[b+12>>2]<=H[g+12>>2]){break a}if(a){nv(a,f)}e=H[a+16>>2]}if(e>>>0>31){break a}}e=0;g=H[a>>2];c=H[b+4>>2];c:{if((c|0)<=0){if(!c){break c}break a}e=zb[H[g+4>>2]](g,c)|0;if(!e){return}Nb(e,0,c)}H[e+8>>2]=g;H[e+4>>2]=a;H[e>>2]=b;d:{c=b;d=H[c>>2];if(d&2){c=64;f=H[e+4>>2];h=H[f>>2];d=zb[H[h+4>>2]](h,12)|0;e:{if(!d){break e}F[d|0]=0;F[d+1|0]=0;F[d+2|0]=0;F[d+3|0]=0;F[d+4|0]=0;F[d+5|0]=0;F[d+6|0]=0;F[d+7|0]=0;F[d+8|0]=0;F[d+9|0]=0;F[d+10|0]=0;F[d+11|0]=0;i=H[e>>2];H[e+12>>2]=i;c=H[i+36>>2];H[e+16>>2]=c;f:{g:{h:{if((c|0)!=1869968492){break h}c=H[H[i+56>>2]+4>>2];if(!c){break h}c=zb[c|0](h,e+52|0)|0;if(c){break g}H[e+56>>2]=H[H[i+56>>2]+16>>2];H[e+60>>2]=H[i+40>>2]}H[d+8>>2]=e;c=H[f+152>>2];H[d>>2]=c;H[d+4>>2]=0;H[(c?c+4|0:f+148|0)>>2]=d;H[f+152>>2]=d;c=H[f+148>>2];if(!c){break f}i:{while(1){d=H[c+8>>2];if(H[d+16>>2]==1869968492){break i}c=H[c+4>>2];if(c){continue}break}d=0}H[f+156>>2]=d;c=0;break e}zb[H[h+8>>2]](h,d);break e}H[f+156>>2]=0;c=0}if(c){break d}c=H[e>>2];d=H[c>>2]}if(d&4){H[a+160>>2]=e}if(d&1){H[e+12>>2]=c}b=H[b+24>>2];if(b){if(zb[b|0](e)|0){break d}}b=H[a+16>>2];H[a+16>>2]=b+1;H[((b<<2)+a|0)+20>>2]=e;return}j:{if(!(I[H[e>>2]]&2)){break j}a=H[e+12>>2];if(!a|H[a+36>>2]!=1869968492){break j}b=H[e+52>>2];if(!b){break j}zb[H[H[a+56>>2]+20>>2]](b)}zb[H[g+8>>2]](g,e)}}function m7(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;m=J[a+84>>1];h=m>>>3|0;l=(c>>>0)/(h>>>0)|0;d=H[H[a+584>>2]+4>>2];k=Tb(c);if(k){a:{if((c|0)<=(d|0)){break a}if((d|0)<5){f=c;a=b;while(1){b:{switch(d|0){default:g=a+d|0;F[g|0]=I[g|0]+I[a|0];a=a+1|0;case 3:g=a+d|0;F[g|0]=I[g|0]+I[a|0];a=a+1|0;case 2:g=a+d|0;F[g|0]=I[g|0]+I[a|0];a=a+1|0;case 1:g=a+d|0;F[g|0]=I[g|0]+I[a|0];a=a+1|0;break;case 0:break b}}f=f-d|0;if((f|0)>(d|0)){continue}break}break a}g=d-4|0;n=d&3;o=d-5>>>0>2;i=c;a=b;while(1){c:{d:{e:{f:{g:{h:{switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}}j=0;f=g;if(n){while(1){e=a+d|0;F[e|0]=I[e|0]+I[a|0];f=f-1|0;a=a+1|0;j=j+1|0;if((n|0)!=(j|0)){continue}break}}if(!o){break g}while(1){e=a+d|0;F[e|0]=I[e|0]+I[a|0];e=(a+1|0)+d|0;F[e|0]=I[e|0]+I[a+1|0];e=(a+2|0)+d|0;F[e|0]=I[e|0]+I[a+2|0];e=(a+3|0)+d|0;F[e|0]=I[e|0]+I[a+3|0];a=a+4|0;e=(f|0)>4;f=f-4|0;if(e){continue}break}}f=a+d|0;F[f|0]=I[f|0]+I[a|0];a=a+1|0}f=a+d|0;F[f|0]=I[f|0]+I[a|0];a=a+1|0}f=a+d|0;F[f|0]=I[f|0]+I[a|0];a=a+1|0}f=a+d|0;F[f|0]=I[f|0]+I[a|0];a=a+1|0}i=i-d|0;if((i|0)>(d|0)){continue}break}}Kc(k,b,c);if(!(m>>>0<8|(l|0)<=0)){a=h>>>0>1?h:1;g=a&8190;f=a&1;e=0;c=m>>>0<16;while(1){i=N(e,h);a=0;j=0;if(!c){while(1){F[(a+i|0)+b|0]=I[(N((a^-1)+h|0,l)+e|0)+k|0];F[(i+(a|1)|0)+b|0]=I[(N((h-a|0)-2|0,l)+e|0)+k|0];a=a+2|0;j=j+2|0;if((g|0)!=(j|0)){continue}break}}if(f){F[(a+i|0)+b|0]=I[(N((a^-1)+h|0,l)+e|0)+k|0]}e=e+1|0;if((l|0)!=(e|0)){continue}break}}Kb(k)}}function tea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=H[a+464>>2];if(H[a+280>>2]){d=H[e+52>>2];if(!d){if(!(zb[H[H[a+460>>2]+8>>2]](a)|0)){d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}if(H[a+336>>2]>0){while(1){d=f<<2;g=H[(d+a|0)+340>>2];a:{b:{if(H[a+224>>2]){if(H[a+408>>2]){break b}if(H[a+416>>2]){break a}}c=H[(e+(H[g+20>>2]<<2)|0)+56>>2];F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+56|0]=0;F[c+57|0]=0;F[c+58|0]=0;F[c+59|0]=0;F[c+60|0]=0;F[c+61|0]=0;F[c+62|0]=0;F[c+63|0]=0;F[c+48|0]=0;F[c+49|0]=0;F[c+50|0]=0;F[c+51|0]=0;F[c+52|0]=0;F[c+53|0]=0;F[c+54|0]=0;F[c+55|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+42|0]=0;F[c+43|0]=0;F[c+44|0]=0;F[c+45|0]=0;F[c+46|0]=0;F[c+47|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;d=e+d|0;H[d+36>>2]=0;H[d+20>>2]=0;if(!H[a+224>>2]){if(H[a+432>>2]){break b}break a}if(!H[a+408>>2]){break a}}Nb(H[(e+(H[g+24>>2]<<2)|0)+120>>2],0,256)}f=f+1|0;if((f|0)>2]){continue}break}}H[e+16>>2]=-16;H[e+8>>2]=0;H[e+12>>2]=0;d=H[a+280>>2]}H[e+52>>2]=d-1}if(H[a+364>>2]>0){g=e+184|0;e=1<>2];f=0;while(1){if(pd(a,g)){d=H[(f<<2)+b>>2];G[d>>1]=e|J[d>>1]}f=f+1|0;if((f|0)>2]){continue}break}}return 1}function In(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=H[b+4>>2];if(g>>>0>a>>>0){return 0}d=H[b+8>>2];if(d>>>0>>0){return 0}if(d-a>>>0<2){return 0}f=H[b+12>>2];e=f-2|0;H[b+12>>2]=e;h=1;if((e|0)<=0){return 0}e=I[a|0]|I[a+1|0]<<8;a:{if(!e){break a}e=((e<<8|e>>>8)&65535)+c|0;b:{if(e>>>0>>0|d>>>0>>0){break b}c=d-e|0;if(c>>>0<2){break b}d=f-4|0;H[b+12>>2]=d;if((d|0)<=0){break b}c:{d:{e:{d=I[e|0]|I[e+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break c;case 2:break d;case 0:break e;default:break a}}if(c>>>0<6){break b}c=f-10|0;H[b+12>>2]=c;if((c|0)<=0){break b}break a}f:{g:{c=H[b+4>>2];if(c>>>0>e>>>0){break g}d=H[b+8>>2];if(d>>>0>>0|d-e>>>0<10){break g}f=H[b+12>>2];g=f-10|0;H[b+12>>2]=g;if((g|0)<=0){break g}g=c;c=e+6|0;if(g>>>0>c>>>0|c>>>0>d>>>0|d-c>>>0<2){break g}d=f-12|0;H[b+12>>2]=d;if((d|0)<=0){break g}d=I[c|0]|I[c+1|0]<<8;h:{if(!d){break h}if(di(e+((d<<8|d>>>8)&65535)|0,b)){break h}d=H[b+28>>2];if(d>>>0>31){break g}H[b+28>>2]=d+1;if(!I[b+24|0]){break g}F[c|0]=0;F[c+1|0]=0}d=e+8|0;if(d>>>0>2]){break g}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break g}f=H[b+12>>2]-2|0;H[b+12>>2]=f;c=1;if((f|0)<=0){break g}f=I[d|0]|I[d+1|0]<<8;i:{if(!f){break i}if(di(e+((f<<8|f>>>8)&65535)|0,b)){break i}c=H[b+28>>2];if(c>>>0>31){break g}H[b+28>>2]=c+1;c=0;if(!I[b+24|0]){break i}F[d|0]=0;F[d+1|0]=0;c=1}break f}c=0}if(!c){break b}break a}if(c>>>0<8){break b}c=f-12|0;H[b+12>>2]=c;if((c|0)>0){break a}}c=H[b+28>>2];if(c>>>0>31){return 0}H[b+28>>2]=c+1;h=0;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;h=1}return h}function ica(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,u=0,v=0;k=xb-32|0;j=a;while(1){a:{d=H[(e<<2)+b>>2]+c|0;g=I[d+6|0];f=j;l=I[d+5|0];m=I[d+3|0];j=l+m|0;n=I[d+2|0];h=n+g|0;o=I[d+8|0];p=I[d|0];i=o+p|0;q=j+(h+i|0)|0;r=I[d+7|0];s=I[d+1|0];t=r+s|0;u=I[d+4|0];v=t+u|0;H[f>>2]=(q+v<<1)-2304;d=p-o|0;g=n-g|0;l=m-l|0;H[f+12>>2]=N(d-(g+l|0)|0,10033)+2048>>12;H[f+24>>2]=N(q-(v<<1)|0,5793)+2048>>12;n=N(j-i|0,2012);i=N(i-h|0,10887)+2048|0;m=N(t-(u<<1)|0,5793);H[f+16>>2]=(n+i|0)-m>>12;H[f+8>>2]=m+(i+N(h-j|0,8875)|0)>>12;i=N(g-l|0,11409);h=N(d+l|0,3962);j=N(s-r|0,10033);H[f+28>>2]=(i+(h-j|0)|0)+2048>>12;d=N(d+g|0,7447);H[f+20>>2]=(d-(j+i|0)|0)+2048>>12;H[f+4>>2]=(h+(d+j|0)|0)+2048>>12;g=e-7|0;e=e+1|0;d=7;j=k;b:{switch(g|0){case 0:continue;case 1:break a;default:break b}}j=f+32|0;continue}break}while(1){e=H[a>>2];g=H[j>>2];b=e-g|0;k=H[a+64>>2];h=H[a+192>>2];c=k-h|0;i=H[a+96>>2];l=H[a+160>>2];f=i-l|0;H[a+96>>2]=N(b-(c+f|0)|0,15855)+16384>>15;k=h+k|0;e=e+g|0;g=i+l|0;h=(k+e|0)+g|0;i=H[a+128>>2];l=H[a+224>>2];m=H[a+32>>2];n=l+m|0;o=i+n|0;H[a+192>>2]=N(h-(o<<1)|0,9154)+16384>>15;H[a>>2]=N(h+o|0,12945)+16384>>15;o=N(g-e|0,3179);e=N(e-k|0,17203)+16384|0;h=N(n-(i<<1)|0,9154);H[a+128>>2]=(o+e|0)-h>>15;H[a+64>>2]=h+(e+N(k-g|0,14024)|0)>>15;e=N(b+f|0,6262);k=N(m-l|0,15855);f=N(c-f|0,18029);H[a+224>>2]=((e-k|0)+f|0)+16384>>15;b=N(b+c|0,11768);H[a+160>>2]=(b-(f+k|0)|0)+16384>>15;H[a+32>>2]=(e+(b+k|0)|0)+16384>>15;b=d;d=d-1|0;j=j+4|0;a=a+4|0;if(b){continue}break}}function Kv(a,b,c){var d=0,e=0,f=0;d=xb-16|0;xb=d;a:{b:{switch(b-9|0){case 0:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=H[b>>2];break a;case 1:b=H[c>>2];H[c>>2]=b+4;b=H[b>>2];H[a>>2]=b;H[a+4>>2]=b>>31;break a;case 2:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=H[b>>2];H[a+4>>2]=0;break a;case 4:b=H[c>>2];H[c>>2]=b+4;b=H[b>>2];H[a>>2]=b;H[a+4>>2]=b>>31;break a;case 5:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=H[b>>2];H[a+4>>2]=0;break a;case 3: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;break a;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;break a;case 7:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=J[b>>1];H[a+4>>2]=0;break a;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;break a;case 9:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=I[b|0];H[a+4>>2]=0;break a;case 10: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;break a;case 11:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=H[b>>2];H[a+4>>2]=0;break a;case 12: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;break a;case 13: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;break a;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;break a;case 15:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=H[b>>2];H[a+4>>2]=0;break a;case 16:b=H[c>>2]+7&-8;H[c>>2]=b+8;Lf(d,M[b>>3]);b=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=b;b=H[d+4>>2];H[a>>2]=H[d>>2];H[a+4>>2]=b;break a;case 17:break b;default:break a}}b=H[c>>2]+7&-8;H[c>>2]=b+16;c=H[b>>2];e=H[b+4>>2];f=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=f;H[a>>2]=c;H[a+4>>2]=e}xb=d+16|0}function nG(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=163632;e=H[a+4>>2];i=e?e:163632;e=I[i+6|0]|I[i+7|0]<<8|(I[i+8|0]<<16|I[i+9|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);a:{if((e|0)<=0){break a}e=e-1|0;while(1){b:{f=e+j>>>1|0;h=i+N(f,11)|0;h=I[h+11|0]<<8|I[h+10|0]<<16|I[h+12|0];c:{if(h>>>0>c>>>0){e=f-1|0;break c}if((c|0)==(h|0)){break b}j=f+1|0}if((e|0)>=(j|0)){continue}break a}break}g=(i+N(f,11)|0)+10|0}c=0;d:{e:{f:{e=0;j=163632;f=I[g+3|0]|I[g+4|0]<<8|(I[g+5|0]<<16|I[g+6|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);l=f?f+i|0:163632;f=l;f=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);g:{if((f|0)>0){f=f-1|0;while(1){k=e+f>>>1|0;h=(k<<2)+l|0;m=I[h+5|0]<<8|I[h+4|0]<<16|I[h+6|0];h:{if(m>>>0>b>>>0){f=k-1|0;break h}e=2;if(I[h+7|0]+m>>>0>=b>>>0){break g}e=k+1|0}if((e|0)<=(f|0)){continue}break}}e=I[g+7|0]|I[g+8|0]<<8|(I[g+9|0]<<16|I[g+10|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);g=e?e+i|0:163632;e=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);i:{if((e|0)<=0){break i}f=e-1|0;e=0;while(1){j:{i=e+f>>>1|0;h=g+N(i,5)|0;h=I[h+5|0]<<8|I[h+4|0]<<16|I[h+6|0];k:{if(h>>>0>b>>>0){f=i-1|0;break k}if((b|0)==(h|0)){break j}e=i+1|0}if((e|0)<=(f|0)){continue}break i}break}j=(g+N(i,5)|0)+4|0}g=I[j+3|0]|I[j+4|0]<<8;e=0;if(!g){break g}H[d>>2]=(g<<8|g>>>8)&65535;e=1}switch(e|0){case 0:break d;case 1:break f;default:break e}}return 1}e=H[a+8>>2];if(!e){break d}c=zb[e|0](H[a+12>>2],b,d)|0}return c}function fea(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;e=H[a+328>>2];f=H[a+448>>2];i=H[f+24>>2];a:{c=H[f+28>>2];if((i|0)<(c|0)){t=e-1|0;p=H[a+356>>2]-1|0;l=f+32|0;h=H[f+20>>2];while(1){if(h>>>0<=p>>>0){while(1){Mc(H[l>>2],H[a+364>>2]<<7);if(!(zb[H[H[a+464>>2]+4>>2]](a,l)|0)){break a}c=H[a+336>>2];if((c|0)>0){g=0;m=0;while(1){d=H[((m<<2)+a|0)+340>>2];b:{if(!H[d+52>>2]){g=H[d+64>>2]+g|0;break b}e=H[d+60>>2];if((e|0)<=0){break b}n=H[(h>>>0

>>0?56:72)+d>>2];if((n|0)>0){j=N(H[d+68>>2],h);c=H[d+4>>2]<<2;q=H[(c+H[a+468>>2]|0)+4>>2];r=H[b+c>>2];c=H[d+40>>2];k=r+(N(i,c)<<2)|0;u=n&-2;r=n&1;o=0;while(1){if(!(H[d+76>>2]<=(i+o|0)&K[a+148>>2]>=t>>>0)){e=0;c=j;s=0;if((n|0)!=1){while(1){zb[q|0](a,d,H[(e+g<<2)+l>>2],k,c);c=H[d+36>>2]+c|0;zb[q|0](a,d,H[((e|1)+g<<2)+l>>2],k,c);e=e+2|0;c=c+H[d+36>>2]|0;s=s+2|0;if((u|0)!=(s|0)){continue}break}}if(r){zb[q|0](a,d,H[((e+g<<2)+f|0)+32>>2],k,c)}e=H[d+60>>2];c=H[d+40>>2]}k=(c<<2)+k|0;g=H[d+56>>2]+g|0;o=o+1|0;if((o|0)<(e|0)){continue}break}c=H[a+336>>2];break b}g=N(H[d+56>>2],e)+g|0}m=m+1|0;if((m|0)<(c|0)){continue}break}}h=h+1|0;if(p>>>0>=h>>>0){continue}break}c=H[f+28>>2]}h=0;H[f+20>>2]=0;i=i+1|0;if((i|0)<(c|0)){continue}break}e=H[a+328>>2]}c=1;H[a+156>>2]=H[a+156>>2]+1;b=H[a+148>>2]+1|0;H[a+148>>2]=b;if(b>>>0>>0){j=H[a+448>>2];c=H[a+336>>2]<=1?H[H[a+340>>2]+(b>>>0>>0?12:76)>>2]:c;H[j+20>>2]=0;H[j+24>>2]=0;H[j+28>>2]=c;return 3}zb[H[H[a+456>>2]+12>>2]](a);return 4}H[f+20>>2]=h;H[f+24>>2]=i;return 0}function a7(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0;h=xb-80|0;xb=h;if(!(!b|!c)){H[h+8>>2]=3;zb[H[H[c>>2]+308>>2]](c,h+8|0)|0;a:{b:{c:{switch(H[a+24>>2]-1|0){case 0:i=H[a+16>>2];H[h+76>>2]=0;M[h+48>>3]=g;M[h+40>>3]=f;M[h+32>>3]=e;M[h+24>>3]=d;H[h+16>>2]=i;H[h+8>>2]=396108;H[h+12>>2]=c;if(i){i=zb[H[H[i>>2]+16>>2]](i)|0;j=H[i+8>>2];k=H[i>>2];M[h+64>>3]=g/P(+(H[i+12>>2]-H[i+4>>2]|0));M[h+56>>3]=f/P(+(j-k|0));i=H[a+16>>2]}H[197455]=0;F[h+72|0]=0;ba(1642,i|0,h+8|0);i=H[197455];H[197455]=0;d:{if((i|0)==1){break d}a=H[a+16>>2];i=H[H[a>>2]+116>>2];H[197455]=0;ia(i|0,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[h+8>>2]=396108;a=H[h+76>>2];if(!a){break a}Kb(a);break a}c=$()|0;_()|0;H[h+8>>2]=396108;a=H[h+76>>2];if(!a){break b}Kb(a);ea(c|0);X();case 1:break c;default:break a}}j=H[a+20>>2];if(j){i=H[H[j>>2]-12>>2]+j|0}H[h+76>>2]=0;M[h+48>>3]=g;M[h+40>>3]=f;M[h+32>>3]=e;M[h+24>>3]=d;H[h+16>>2]=i;H[h+12>>2]=c;H[h+8>>2]=396108;if(i){i=zb[H[H[i>>2]+16>>2]](i)|0;j=H[i+8>>2];k=H[i>>2];M[h+64>>3]=g/P(+(H[i+12>>2]-H[i+4>>2]|0));M[h+56>>3]=f/P(+(j-k|0));j=H[a+20>>2]}H[197455]=0;F[h+72|0]=0;ga(1643,j|0,h+8|0,b|0);i=H[197455];H[197455]=0;e:{if((i|0)==1){break e}a=H[a+20>>2];i=H[H[a>>2]+16>>2];H[197455]=0;ia(i|0,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}H[h+8>>2]=396108;a=H[h+76>>2];if(!a){break a}Kb(a);break a}c=$()|0;_()|0;H[h+8>>2]=396108;a=H[h+76>>2];if(!a){break b}Kb(a)}ea(c|0);X()}H[h+8>>2]=3;zb[H[H[c>>2]+312>>2]](c,h+8|0)|0}xb=h+80|0;return(b|0)!=0&(c|0)!=0}function t7(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;a:{d=H[H[a+584>>2]+4>>2];if((d|0)>=(c|0)){break a}c=c-d|0;b:{c:{switch(d-3|0){default:if((d|0)>=5){break b}while(1){d:{switch(d|0){default:a=b+d|0;F[a|0]=I[b|0]+I[a|0];b=b+1|0;case 3:a=b+d|0;F[a|0]=I[b|0]+I[a|0];b=b+1|0;case 2:a=b+d|0;F[a|0]=I[b|0]+I[a|0];b=b+1|0;case 1:a=b+d|0;F[a|0]=I[b|0]+I[a|0];b=b+1|0;break;case 0:break d}}c=c-d|0;if((c|0)>0){continue}break};break a;case 1:a=I[b+3|0];e=I[b+2|0];f=I[b+1|0];d=I[b|0];while(1){d=I[b+4|0]+d|0;F[b+4|0]=d;f=I[b+5|0]+f|0;F[b+5|0]=f;e=I[b+6|0]+e|0;F[b+6|0]=e;a=I[b+7|0]+a|0;F[b+7|0]=a;b=b+4|0;g=(c|0)>4;c=c-4|0;if(g){continue}break};break a;case 0:break c}}a=I[b+2|0];e=I[b+1|0];f=I[b|0];while(1){f=I[b+3|0]+f|0;F[b+3|0]=f;e=I[b+4|0]+e|0;F[b+4|0]=e;a=I[b+5|0]+a|0;F[b+5|0]=a;b=b+3|0;d=(c|0)>3;c=c-3|0;if(d){continue}break}break a}a=d-4|0;g=d&3;i=d-5>>>0>2;while(1){e:{f:{g:{h:{i:{j:{switch(d|0){case 0:break e;case 1:break f;case 2:break g;case 3:break h;case 4:break i;default:break j}}f=0;e=a;if(g){while(1){h=b+d|0;F[h|0]=I[b|0]+I[h|0];e=e-1|0;b=b+1|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}}if(!i){break i}while(1){f=b+d|0;F[f|0]=I[b|0]+I[f|0];f=d+(b+1|0)|0;F[f|0]=I[b+1|0]+I[f|0];f=d+(b+2|0)|0;F[f|0]=I[b+2|0]+I[f|0];f=d+(b+3|0)|0;F[f|0]=I[b+3|0]+I[f|0];b=b+4|0;f=(e|0)>4;e=e-4|0;if(f){continue}break}}e=b+d|0;F[e|0]=I[b|0]+I[e|0];b=b+1|0}e=b+d|0;F[e|0]=I[b|0]+I[e|0];b=b+1|0}e=b+d|0;F[e|0]=I[b|0]+I[e|0];b=b+1|0}e=b+d|0;F[e|0]=I[b|0]+I[e|0];b=b+1|0}c=c-d|0;if((c|0)>0){continue}break}}}function gy(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;i=I[b|0];a:{b:{if(!a){break b}h=239;if((i|0)!=239){break b}m=1;if(I[b+1|0]!=172){break a}m=(I[b+2|0]+125&255)>>>0<2?2:1;break a}m=1;if((i-48&255)>>>0<10){h=0;while(1){m=m-1|0;h=h+1|0;if((I[h+b|0]-48&255)>>>0<10){continue}break}}h=i}c:{if(!(h&255)|(g|0)<=(m|0)){break c}i=0;while(1){h=H[d>>2];d:{e:{if(!h){break e}j=H[e>>2];if(!j|!H[f>>2]){break e}q=i<<2;o=H[h+q>>2];if(!o){break e}r=ie(o,61);if(!r){break d}n=0;k=0;p=i-H[j+q>>2]|0;f:{if((p|0)<0){break f}if(!a){h=p+1|0;while(1){if(!I[b+k|0]){break f}j=(k|0)==(p|0);k=k+1|0;if(!j){continue}break}k=h;break f}l=I[b|0];h=0;while(1){if(!l){break f}k=k+1|0;g:{if((l|0)!=239){break g}j=b+h|0;if(I[j+1|0]!=172){break g}k=((I[j+2|0]+125&255)>>>0<2)+k|0}while(1){j=h;h=h+1|0;l=I[h+b|0];if((l&192)==128){continue}break}if((j|0)<(p|0)){continue}break}}j=r-o|0;h:{if((j|0)<=0){break h}if(!a){while(1){if(!I[n+o|0]){break h}n=n+1|0;if((j|0)!=(n|0)){continue}break}n=j;break h}l=I[o|0];h=0;while(1){if(!l){break h}n=n+1|0;i:{if((l|0)!=239){break i}l=h+o|0;if(I[l+1|0]!=172){break i}n=((I[l+2|0]+125&255)>>>0<2)+n|0}while(1){h=h+1|0;l=I[o+h|0];if((l&192)==128){continue}break}if((h|0)<(j|0)){continue}break}}if((k+n|0)>=(g|0)){break d}Kb(o);H[H[d>>2]+q>>2]=0}F[c+i|0]=48}h=i+1|0;j:{if(!a){break j}k=I[b+h|0];if((k|0)==239){i=b+i|0;if(I[i+2|0]!=172){break j}m=((I[i+3|0]+125&255)>>>0<2)+m|0;break j}i=h;if((k&192)==128){continue}}m=m+1|0;if((m|0)>=(g|0)){break c}i=h;if(I[h+b|0]){continue}break}}}function lia(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;f=xb-32|0;xb=f;a:{b:{c:{d:{e=H[a+8>>2];i=H[a+12>>2];if((e|0)==(i|0)){break d}g=I[b+11|0];n=g<<24>>24;h=(n|0)<0;m=h?H[b>>2]:b;l=h?H[b+4>>2]:g;if(!l){while(1){j=I[e+11|0];g=j<<24>>24;e:{if((g|0)<0?H[e+4>>2]:j){break e}if((g|0)<=0){break d}if(I[m|0]!=I[e|0]){break e}g=e;h=m;while(1){j=j-1|0;if(!j){break d}l=I[h+1|0];k=I[g+1|0];g=g+1|0;h=h+1|0;if((k|0)==(l|0)){continue}break}}e=e+20|0;if((i|0)!=(e|0)){continue}break c}}while(1){j=I[e+11|0];h=j<<24>>24;g=(h|0)<0;f:{if((l|0)!=((g?H[e+4>>2]:j)|0)){break f}k=H[e>>2];if(!g){if(!h){break d}g=e;h=m;if(I[h|0]!=(k&255)){break f}while(1){j=j-1|0;if(!j){break d}k=I[h+1|0];o=I[g+1|0];g=g+1|0;h=h+1|0;if((k|0)==(o|0)){continue}break}break f}if(!md(k,m,l)){break d}}e=e+20|0;if((i|0)!=(e|0)){continue}break}break c}if((e|0)!=(i|0)){break b}n=F[b+11|0]}c=Ob(Qb(d),c,d);g:{if((n|0)>=0){H[f+16>>2]=H[b+8>>2];e=H[b+4>>2];H[f+8>>2]=H[b>>2];H[f+12>>2]=e;break g}Jo(f+8|0,H[b>>2],H[b+4>>2]);i=H[a+12>>2]}H[f+24>>2]=d;H[f+20>>2]=c;if(K[a+16>>2]>i>>>0){b=H[f+12>>2];H[i>>2]=H[f+8>>2];H[i+4>>2]=b;H[i+8>>2]=H[f+16>>2];b=H[f+24>>2];H[i+12>>2]=H[f+20>>2];H[i+16>>2]=b;H[a+12>>2]=i+20;break a}H[197455]=0;ba(890,a+8|0,f+8|0);a=H[197455];H[197455]=0;if((a|0)!=1){if(F[f+19|0]>=0){break a}Kb(H[f+8>>2]);break a}a=$()|0;_()|0;if(F[f+19|0]<0){Kb(H[f+8>>2])}ea(a|0);X()}a=H[e+12>>2];if((a|0)!=(c|0)){if(a){Kb(a);H[e+12>>2]=0}p=e,q=Ob(Qb(d),c,d),H[p+12>>2]=q}H[e+16>>2]=d}xb=f+32|0}function W6(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;var g=0,h=0,i=0,j=0;g=xb-80|0;xb=g;if(b){H[g+8>>2]=3;zb[H[H[b>>2]+308>>2]](b,g+8|0)|0;a:{b:{c:{switch(H[a+24>>2]-1|0){case 0:h=H[a+16>>2];H[g+76>>2]=0;M[g+48>>3]=f;M[g+40>>3]=e;M[g+32>>3]=d;M[g+24>>3]=c;H[g+16>>2]=h;H[g+8>>2]=396108;H[g+12>>2]=b;if(h){h=zb[H[H[h>>2]+16>>2]](h)|0;i=H[h+8>>2];j=H[h>>2];M[g+64>>3]=f/P(+(H[h+12>>2]-H[h+4>>2]|0));M[g+56>>3]=e/P(+(i-j|0));h=H[a+16>>2]}H[197455]=0;F[g+72|0]=0;ba(1642,h|0,g+8|0);h=H[197455];H[197455]=0;d:{if((h|0)==1){break d}a=H[a+16>>2];h=H[H[a>>2]+116>>2];H[197455]=0;ia(h|0,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}H[g+8>>2]=396108;a=H[g+76>>2];if(!a){break a}Kb(a);break a}b=$()|0;_()|0;H[g+8>>2]=396108;a=H[g+76>>2];if(!a){break b}Kb(a);ea(b|0);X();case 1:break c;default:break a}}i=H[a+20>>2];if(i){h=H[H[i>>2]-12>>2]+i|0}H[g+76>>2]=0;M[g+48>>3]=f;M[g+40>>3]=e;M[g+32>>3]=d;M[g+24>>3]=c;H[g+16>>2]=h;H[g+12>>2]=b;H[g+8>>2]=396108;if(h){h=zb[H[H[h>>2]+16>>2]](h)|0;i=H[h+8>>2];j=H[h>>2];M[g+64>>3]=f/P(+(H[h+12>>2]-H[h+4>>2]|0));M[g+56>>3]=e/P(+(i-j|0));i=H[a+20>>2]}F[g+72|0]=0;h=H[H[i>>2]+128>>2];H[197455]=0;ba(h|0,i|0,g+8|0);h=H[197455];H[197455]=0;e:{if((h|0)==1){break e}a=H[a+20>>2];h=H[H[a>>2]+16>>2];H[197455]=0;ia(h|0,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break e}H[g+8>>2]=396108;a=H[g+76>>2];if(!a){break a}Kb(a);break a}b=$()|0;_()|0;H[g+8>>2]=396108;a=H[g+76>>2];if(!a){break b}Kb(a)}ea(b|0);X()}H[g+8>>2]=3;zb[H[H[b>>2]+312>>2]](b,g+8|0)|0}xb=g+80|0;return(b|0)!=0|0}function nF(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;if(K[b+4>>2]>a>>>0){return 0}e=H[b+8>>2];if(e>>>0>>0){return 0}if(e-a>>>0<2){return 0}e=H[b+12>>2]-2|0;H[b+12>>2]=e;i=1;if((e|0)<=0){return 0}e=I[a|0]|I[a+1|0]<<8;a:{if(!e){break a}c=((e<<8|e>>>8)&65535)+c|0;b:{c:{d=H[d>>2];if((d|0)==1936292453){if(c>>>0>2]){break c}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<10){break c}d=H[b+12>>2]-10|0;H[b+12>>2]=d;if((d|0)<=0){break c}g=I[c|0]|I[c+1|0]<<8;if(!g){break c}e=I[c+8|0]|I[c+9|0]<<8;h=I[c+6|0]|I[c+7|0]<<8;f=I[c+4|0]|I[c+5|0]<<8;if(!(h|(f|(I[c+2|0]|I[c+3|0]<<8)))){d=1;if(!e){break b}}c=(g<<8|g>>>8)&65535;if(c>>>0<((h<<8|(h&65280)>>>8)&65535)>>>0){break c}d=0;if(c>>>0>((e<<8|(e&65280)>>>8)&65535)>>>0){break b}d=(f<<8|(f&65280)>>>8)<<16>>16>255;break b}e=d&-65536;if((e|0)!=1668677632){d=1;if((e|0)!=1936916480){break b}d=0;if(c>>>0>2]){break b}e=H[b+8>>2];if(e>>>0>>0|e-c>>>0<4){break b}c=H[b+12>>2]-4|0;H[b+12>>2]=c;d=(c|0)>0;break b}d=0;h=H[b+4>>2];if(h>>>0>c>>>0){break b}e=H[b+8>>2];if(e>>>0>>0|e-c>>>0<14){break b}g=H[b+12>>2];f=g-14|0;H[b+12>>2]=f;if((f|0)<=0){break b}f=c+12|0;if(f>>>0>>0|e>>>0>>0|e-f>>>0<2){break b}f=g-16|0;H[b+12>>2]=f;if((f|0)<=0){break b}g=I[c+12|0]|I[c+13|0]<<8;if(g){c=c+14|0;if(c>>>0>>0|c>>>0>e>>>0){break b}e=e-c|0;c=N((g<<8|g>>>8)&65535,3);if(e>>>0>>0){break b}c=f-c|0;H[b+12>>2]=c;if((c|0)<=0){break b}}d=1;break b}d=0}if(d){break a}c=H[b+28>>2];if(c>>>0>31){return 0}H[b+28>>2]=c+1;i=0;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;i=1}return i}function Wy(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{g=a+24|0;d=H[g>>2];if(!d){break a}c=g;while(1){e=K[d+16>>2]>>0;c=e?c:d;d=H[(e<<2)+d>>2];if(d){continue}break}if((c|0)==(g|0)|K[c+16>>2]>b>>>0){break a}b:{c:{d:{e:{f=H[c+20>>2];switch((zb[H[H[f>>2]+8>>2]](f)|0)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break b}}c=H[a>>2];if(H[c+8>>2]!=(f+4|0)){break b}H[c+8>>2]=0;break b}c=H[a>>2];if(H[c+16>>2]!=(f+4|0)){break b}H[c+16>>2]=0;break b}c=H[a>>2];if(H[c+12>>2]!=(f+4|0)){break b}H[c+12>>2]=0}e=H[a+4>>2];i=a+8|0;f:{if((e|0)!=(i|0)){h=f+4|0;while(1){c=H[e+20>>2];g:{h:{switch((zb[H[H[f>>2]+8>>2]](f)|0)-1|0){case 0:if(H[c+8>>2]!=(h|0)){break g}H[c+8>>2]=0;break g;case 1:if(H[c+16>>2]!=(h|0)){break g}H[c+16>>2]=0;break g;case 2:break h;default:break g}}if(H[c+12>>2]!=(h|0)){break g}H[c+12>>2]=0}d=H[e+4>>2];i:{if(!d){c=H[e+8>>2];if(H[c>>2]==(e|0)){break i}e=e+8|0;while(1){d=H[e>>2];e=d+8|0;c=H[d+8>>2];if((d|0)!=H[c>>2]){continue}break}break i}while(1){c=d;d=H[c>>2];if(d){continue}break}}e=c;if((c|0)!=(i|0)){continue}break}if(!f){break f}}zb[H[H[f>>2]+4>>2]](f)}f=H[g>>2];if(!f){break a}c=g;d=f;while(1){e=K[d+16>>2]>>0;c=e?c:d;d=H[(e<<2)+d>>2];if(d){continue}break}if((c|0)==(g|0)|K[c+16>>2]>b>>>0){break a}d=H[c+4>>2];j:{if(!d){e=H[c+8>>2];if(H[e>>2]==(c|0)){break j}b=c+8|0;while(1){d=H[b>>2];b=d+8|0;e=H[d+8>>2];if((d|0)!=H[e>>2]){continue}break}break j}while(1){e=d;d=H[d>>2];if(d){continue}break}}if(H[a+20>>2]==(c|0)){H[a+20>>2]=e}H[a+28>>2]=H[a+28>>2]-1;pj(f,c);Kb(c)}}function y8(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;h=xb-16|0;xb=h;d=H[a+584>>2];f=H[d+840>>2];e=(c|0)/(f|0)|0;if((N(e,f)|0)!=(c|0)){sc(H[a+628>>2],H[a>>2],282105,0)}c=H[d+32>>2];l=(c|0)>(e|0)?e:c;a:{b:{if(!l){break b}c=0;H[h+12>>2]=0;if(H[d+212>>2]==12){c=Tb(N(H[d+112>>2],H[d+36>>2])<<1);H[h+12>>2]=c}while(1){c:{d:{if(c){if((aB(d,h+12|0)|0)!=1){break d}e:{switch(H[d+212>>2]-8|0){case 4:i=N(H[d+36>>2],H[d+112>>2]);if(i>>>0<2){break c}c=0;f=H[h+12>>2];e=i>>>1|0;if((e|0)!=1){k=e&2147483646;e=0;while(1){j=N(c,3)+b|0;g=f+(c<<1)|0;F[j|0]=I[g|0]>>>4;F[j+1|0]=I[g|0]<<4;F[j+2|0]=I[g+1|0];g=c|1;j=N(g,3)+b|0;g=f+(g<<1)|0;F[j|0]=I[g|0]>>>4;F[j+1|0]=I[g|0]<<4;F[j+2|0]=I[g+1|0];c=c+2|0;e=e+2|0;if((k|0)!=(e|0)){continue}break}}if(!(i&2)){break c}e=N(c,3)+b|0;c=f+(c<<1)|0;F[e|0]=I[c|0]>>>4;F[e+1|0]=I[c|0]<<4;F[e+2|0]=I[c+1|0];break c;case 0:break e;default:break c}}i=N(H[d+36>>2],H[d+112>>2]);if((i|0)<=0){break c}e=0;f=H[h+12>>2];c=0;if(i-1>>>0>=3){g=i&-4;j=0;while(1){F[b+c|0]=I[c+f|0];k=c|1;F[k+b|0]=I[f+k|0];k=c|2;F[k+b|0]=I[f+k|0];k=c|3;F[k+b|0]=I[f+k|0];c=c+4|0;j=j+4|0;if((g|0)!=(j|0)){continue}break}}i=i&3;if(!i){break c}while(1){F[b+c|0]=I[c+f|0];c=c+1|0;e=e+1|0;if((i|0)!=(e|0)){continue}break}break c}H[h+8>>2]=b;if((aB(d,h+8|0)|0)==1){break c}}a=0;break a}H[a+472>>2]=H[a+472>>2]+1;if((l|0)>=2){l=l-1|0;b=H[d+840>>2]+b|0;c=H[h+12>>2];continue}break}a=H[h+12>>2];if(!a){break b}Kb(a)}a=1;if(K[d+140>>2]>2]){break a}a=($A(d)|0)!=0}xb=h+16|0;return a|0}function fy(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;a:{if((c|0)<2){break a}j=1-c|0;m=c-1|0;i=m;b:{while(1){if((I[b+i|0]-48&255)>>>0>9){break b}o=o-1|0;k=(i|0)>1;i=i-1|0;if(k){continue}break}o=j}if((c|0)<2|(h|0)<=(o|0)){break a}r=b+1|0;while(1){c=H[e>>2];c:{d:{if(!c){break d}i=H[f>>2];if(!i){break d}j=H[g>>2];if(!j){break d}p=m<<2;q=H[c+p>>2];if(!q){break d}n=ie(q,61);if(!n){break c}l=H[j+p>>2]+((m+r|0)-H[i+p>>2]|0)|0;e:{if(!a){i=0;while(1){if(!I[i+l|0]){j=i;break e}j=i+1|0;if(!I[l+j|0]){break e}j=i+2|0;if(!I[l+j|0]){break e}j=i+3|0;if(!I[l+j|0]){break e}j=i+4|0;if(!I[l+j|0]){break e}j=100;i=i+5|0;if((i|0)!=100){continue}break}break e}c=I[l|0];i=0;j=0;while(1){c=c&255;if(!c){break e}j=j+1|0;f:{if((c|0)!=239){break f}c=i+l|0;if(I[c+1|0]!=172){break f}j=((I[c+2|0]+125&255)>>>0<2)+j|0}while(1){k=i;i=i+1|0;c=I[l+i|0];if((c&192)==128){continue}break}if((k|0)<99){continue}break}}n=n+1|0;l=ac(n);g:{if((l|0)<=0){k=0;break g}if(!a){k=0;while(1){if(!I[k+n|0]){break g}k=k+1|0;if((l|0)!=(k|0)){continue}break}k=l;break g}c=I[n|0];i=0;k=0;while(1){c=c&255;if(!c){break g}k=k+1|0;h:{if((c|0)!=239){break h}c=i+n|0;if(I[c+1|0]!=172){break h}k=((I[c+2|0]+125&255)>>>0<2)+k|0}while(1){i=i+1|0;c=I[n+i|0];if((c&192)==128){continue}break}if((i|0)<(l|0)){continue}break}}if((j+k|0)>=(h|0)){break c}Kb(q);H[H[e>>2]+p>>2]=0}F[d+m|0]=48}i:{j:{if(!a){break j}c=I[b+m|0];if((c&192)==192){break j}if(c&128){break i}}o=o+1|0}if((h|0)<=(o|0)){break a}c=(m|0)>1;m=m-1|0;if(c){continue}break}}}function Faa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;d=xb-16|0;xb=d;c=(g|0)/2|0;if(f>>>0>=2){o=N(c,6);g=((e<<2)+b|0)+(h<<2)|0;n=(h<<1)+e<<2;while(1){c=e;if(c>>>0>=2){while(1){h=I[i+4|0];j=I[i+5|0];k=d+12|0;l=d+8|0;m=d+4|0;qc(H[a+68>>2],I[i|0],h,j,k,l,m);H[b>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+1|0],h,j,k,l,m);H[b+4>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+2|0],h,j,k,l,m);H[g>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+3|0],h,j,k,l,m);H[g+4>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216;i=i+6|0;g=g+8|0;b=b+8|0;c=c-2|0;if(c>>>0>1){continue}break}}if((c|0)==1){c=I[i+4|0];h=I[i+5|0];j=d+12|0;k=d+8|0;l=d+4|0;qc(H[a+68>>2],I[i|0],c,h,j,k,l);H[b>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+2|0],c,h,j,k,l);H[g>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216;i=i+6|0;g=g+4|0;b=b+4|0}i=i+o|0;g=g+n|0;b=b+n|0;f=f-2|0;if(f>>>0>1){continue}break}}a:{if((f|0)!=1){break a}if(e>>>0>=2){while(1){c=I[i+4|0];f=I[i+5|0];g=d+12|0;h=d+8|0;j=d+4|0;qc(H[a+68>>2],I[i|0],c,f,g,h,j);H[b>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+1|0],c,f,g,h,j);H[b+4>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216;i=i+6|0;b=b+8|0;e=e-2|0;if(e>>>0>1){continue}break}}if((e|0)!=1){break a}qc(H[a+68>>2],I[i|0],I[i+4|0],I[i+5|0],d+12|0,d+8|0,d+4|0);H[b>>2]=H[d+12>>2]|H[d+8>>2]<<8|H[d+4>>2]<<16|-16777216}xb=d+16|0}function lJ(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;g=xb-80|0;xb=g;i=H[a+532>>2];a:{if(!i){a=6;break a}h=H[a+100>>2];j=H[i+4>>2];H[g+24>>2]=j;if(j){a=0;while(1){c=N(a,12);d=c+(g+24|0)|0;H[d+8>>2]=H[((a<<2)+i|0)+8>>2];c=c+i|0;e=H[c+92>>2];H[d+12>>2]=H[e>>2];H[d+16>>2]=H[(e+(I[c+88|0]<<2)|0)-4>>2];a=a+1|0;if((j|0)!=(a|0)){continue}break}}c=H[i>>2];H[g+20>>2]=0;e=j<<1;d=e+3&-4;h=pc(h,(d+N(j,24)|0)+20|0,g+20|0);a=H[g+20>>2];if(a){break a}H[h+8>>2]=0;H[h+4>>2]=c;H[h>>2]=j;c=h+20|0;b:{if(!j){H[h+16>>2]=0;H[h+12>>2]=c+d;Al(H[i+140>>2],g,H[i+4>>2]);break b}a=0;c=Nb(c,0,e);H[h+16>>2]=0;e=c+d|0;H[h+12>>2]=e;while(1){d=N(a,24)+e|0;f=(g+24|0)+N(a,12)|0;c=H[f+8>>2];H[d>>2]=c;H[d+4>>2]=H[f+12>>2]<<16;f=H[f+16>>2];H[d+16>>2]=-1;H[d+20>>2]=-1;H[d+12>>2]=f<<16;c:{if(!c){break c}f=2003265652;d:{if(!fc(c,10150)){break d}f=2003072104;if(!fc(c,10287)){break d}if(fc(c,10426)){break c}f=1869640570}H[d+16>>2]=f}a=a+1|0;if((j|0)!=(a|0)){continue}break}Al(H[i+140>>2],g,H[i+4>>2]);if(!j){break b}d=0;while(1){k=H[(d<<2)+g>>2];c=N(d,12)+i|0;f=H[c+96>>2];e:{if((k|0)>H[f>>2]){a=1;l=I[c+88|0];if(l>>>0>1){while(1){m=a<<2;n=H[m+f>>2];if((k|0)<=(n|0)){c=H[c+92>>2];e=m-4|0;a=H[c+e>>2];c=H[c+m>>2];e=H[e+f>>2];a=N(dc(k-e|0,n-e|0),c-a|0)+(a<<16)|0;e=H[h+12>>2];break e}a=a+1|0;if((l|0)!=(a|0)){continue}break}}a=H[(H[c+92>>2]+(l<<2)|0)-4>>2]<<16;break e}a=H[H[c+92>>2]>>2]<<16}H[(N(d,24)+e|0)+8>>2]=a;d=d+1|0;if((j|0)!=(d|0)){continue}break}}H[b>>2]=h;a=H[g+20>>2]}xb=g+80|0;return a|0}function HC(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;j=xb-16|0;xb=j;e=H[a+400>>2];d=H[a+288>>2];if((d|0)>0){while(1){f=c<<2;d=H[(f+a|0)+292>>2];b=H[d+12>>2];t=f+j|0,u=zb[H[H[a+4>>2]+32>>2]](a,H[((H[d+4>>2]<<2)+e|0)- -64>>2],N(b,H[e+8>>2]),b,0)|0,H[t>>2]=u;c=c+1|0;d=H[a+288>>2];if((c|0)<(d|0)){continue}break}}b=H[e+20>>2];h=H[e+16>>2];a:{if((b|0)>(h|0)){p=e+24|0;c=H[a+308>>2];g=H[e+12>>2];while(1){if(c>>>0>g>>>0){while(1){k=0;f=0;m=H[a+288>>2];if((m|0)>0){while(1){b=k<<2;c=H[(b+a|0)+292>>2];n=H[c+60>>2];b:{if((n|0)<=0){break b}i=H[c+56>>2];if((i|0)<=0){break b}q=N(g,i);r=H[b+j>>2];o=i&7;s=i-1|0;l=0;while(1){c=H[(h+l<<2)+r>>2]+(q<<7)|0;b=f;d=0;if(o){while(1){H[((b<<2)+e|0)+24>>2]=c;b=b+1|0;c=c+128|0;d=d+1|0;if((o|0)!=(d|0)){continue}break}}f=f+i|0;if(s>>>0>=7){while(1){d=(b<<2)+e|0;H[d+28>>2]=c+128;H[d+24>>2]=c;H[d+32>>2]=c+256;H[d+36>>2]=c+384;H[d+40>>2]=c+512;H[d+44>>2]=c+640;H[d+48>>2]=c+768;H[d+52>>2]=c+896;c=c+1024|0;b=b+8|0;if((f|0)!=(b|0)){continue}break}}l=l+1|0;if((n|0)!=(l|0)){continue}break}}k=k+1|0;if((m|0)!=(k|0)){continue}break}}if(!(zb[H[H[a+420>>2]+4>>2]](a,p)|0)){H[e+12>>2]=g;H[e+16>>2]=h;c=0;break a}c=H[a+308>>2];g=g+1|0;if(c>>>0>g>>>0){continue}break}b=H[e+20>>2]}g=0;H[e+12>>2]=0;h=h+1|0;if((h|0)<(b|0)){continue}break}d=H[a+288>>2]}c=1;H[e+8>>2]=H[e+8>>2]+1;b=H[a+400>>2];f=1;f=(d|0)<=1?H[H[a+292>>2]+(K[b+8>>2]>2]-1>>>0?12:76)>>2]:f;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=f}xb=j+16|0;return c|0}function jv(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=xb-16|0;xb=i;H[i+12>>2]=0;g=H[a+12>>2];a:{b:{c:{d:{if((g|0)<=11){if(H[a+20>>2]){break d}H[a+16>>2]=12;H[a+20>>2]=a+820;break d}j=H[a+16>>2];if((j|0)>(g|0)){e=H[a+20>>2];h=e+N(g,44)|0;break c}g=64;if((j|0)>48806445){break a}e:{if((j|0)>=-16){k=((j>>2)+j|0)+4|0;if((k|0)<48806447){break e}}k=48806446}l=H[a+20>>2];f:{if((l|0)==(a+820|0)){e=Ub(e,44,0,k,0,i+12|0);H[a+20>>2]=e;g=H[i+12>>2];if(g){break a}Ob(e,l,528);break f}m=a,n=Ub(e,44,j,k,l,i+12|0),H[m+20>>2]=n;g=H[i+12>>2];if(g){break a}}H[a+16>>2]=k;g=H[a+12>>2]}e=H[a+20>>2];h=e+N(g,44)|0;if((g|0)<=0){break b}}if(!d){g=h;while(1){h=g-44|0;d=G[h>>1];if((d|0)<(b|0)){h=g;break b}if(!((b|0)!=(d|0)|H[a+24>>2]!=(c|0))){h=g;break b}d=H[h+4>>2];H[g>>2]=H[h>>2];H[g+4>>2]=d;H[g+40>>2]=H[h+40>>2];d=H[h+36>>2];H[g+32>>2]=H[h+32>>2];H[g+36>>2]=d;d=H[h+28>>2];H[g+24>>2]=H[h+24>>2];H[g+28>>2]=d;d=H[h+20>>2];H[g+16>>2]=H[h+16>>2];H[g+20>>2]=d;d=H[h+12>>2];H[g+8>>2]=H[h+8>>2];H[g+12>>2]=d;g=h;if(g>>>0>e>>>0){continue}break}break b}g=h;while(1){h=g-44|0;d=G[h>>1];if((d|0)>(b|0)){h=g;break b}if(!((b|0)!=(d|0)|H[a+24>>2]!=(c|0))){h=g;break b}d=H[h+4>>2];H[g>>2]=H[h>>2];H[g+4>>2]=d;H[g+40>>2]=H[h+40>>2];d=H[h+36>>2];H[g+32>>2]=H[h+32>>2];H[g+36>>2]=d;d=H[h+28>>2];H[g+24>>2]=H[h+24>>2];H[g+28>>2]=d;d=H[h+20>>2];H[g+16>>2]=H[h+16>>2];H[g+20>>2]=d;d=H[h+12>>2];H[g+8>>2]=H[h+8>>2];H[g+12>>2]=d;g=h;if(g>>>0>e>>>0){continue}break}}H[a+12>>2]=H[a+12>>2]+1;g=0}H[f>>2]=h;xb=i+16|0;return g}function $N(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=xb+-64|0;xb=f;a:{if($d(b,782384,0)){H[c>>2]=0;d=1;break a}b:{if(I[a+8|0]&24){e=1}else{if(!b){break b}e=Oe(b,782020,782116,0);if(!e){break b}e=(I[e+8|0]&24)!=0}g=$d(a,b,e)}if(g){d=1;a=H[c>>2];if(!a){break a}H[c>>2]=H[a>>2];break a}c:{if(!b){break c}e=Oe(b,782020,782164,0);if(!e){break a}b=H[c>>2];if(b){H[c>>2]=H[b>>2]}g=H[e+8>>2];b=H[a+8>>2];if(g&(b^-1)&7|b&(g^-1)&96){break a}d=1;if($d(H[a+12>>2],H[e+12>>2],0)){break a}if($d(H[a+12>>2],782372,0)){a=H[e+12>>2];if(!a){break a}d=!Oe(a,782020,782216,0);break a}b=H[a+12>>2];if(!b){break c}d=0;b=Oe(b,782020,782164,0);if(b){if(!(F[a+8|0]&1)){break a}a=b;c=H[e+12>>2];d:{e:{while(1){b=0;if(!c){break d}c=Oe(c,782020,782164,0);if(!c|H[c+8>>2]&(H[a+8>>2]^-1)){break e}b=1;if($d(H[a+12>>2],H[c+12>>2],0)){break d}if(!(F[a+8|0]&1)){break e}b=H[a+12>>2];if(!b){break e}b=Oe(b,782020,782164,0);if(b){c=H[c+12>>2];a=b;continue}break}a=H[a+12>>2];if(!a){break e}a=Oe(a,782020,782276,0);if(!a){break e}d=rv(a,H[c+12>>2])}b=d}d=b;break a}b=H[a+12>>2];if(!b){break a}b=Oe(b,782020,782276,0);if(b){if(!(F[a+8|0]&1)){break a}d=rv(b,H[e+12>>2]);break a}a=H[a+12>>2];if(!a){break a}b=Oe(a,782020,782068,0);if(!b){break a}a=H[e+12>>2];if(!a){break a}a=Oe(a,782020,782068,0);if(!a){break a}d=f+8|0;Nb(d|4,0,52);H[f+56>>2]=1;H[f+20>>2]=-1;H[f+16>>2]=b;H[f+8>>2]=a;zb[H[H[a>>2]+28>>2]](a,d,H[c>>2],1);a=H[f+32>>2];if(!(!H[c>>2]|(a|0)!=1)){H[c>>2]=H[f+24>>2]}d=(a|0)==1;break a}d=0}xb=f- -64|0;return d|0}function Sba(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,u=0,v=0,w=0,x=0;p=xb-128|0;xb=p;f=Nb(a,0,256);while(1){a:{k=f;d=H[(l<<2)+b>>2]+c|0;o=I[d|0];e=I[d+5|0];m=o-e|0;g=I[d+1|0];i=I[d+4|0];h=g-i|0;j=I[d+2|0];d=I[d+3|0];n=j-d|0;H[f+12>>2]=m-(h+n|0)<<2;e=e+o|0;d=d+j|0;H[f+8>>2]=N(e-d|0,10033)+1024>>11;e=d+e|0;d=g+i|0;H[f>>2]=(e+d<<2)-3072;H[f+16>>2]=N(e-(d<<1)|0,5793)+1024>>11;d=N(m+n|0,2998)+1024>>11;H[f+20>>2]=d+(n-h<<2);H[f+4>>2]=d+(h+m<<2);d=l-7|0;l=l+1|0;f=p;b:{switch(d|0){case 0:continue;case 4:break a;default:break b}}f=k+32|0;continue}break}while(1){q=H[f+64>>2];r=H[a+128>>2];s=H[a+192>>2];t=H[a+160>>2];c=s+t|0;u=H[f+96>>2];v=H[a>>2];b=u+v|0;w=c+b|0;l=H[f>>2];m=H[a+96>>2];h=l+m|0;n=H[f+32>>2];o=H[a+64>>2];g=n+o|0;i=h+g|0;H[a+128>>2]=N(w-i|0,8918)+16384>>15;j=b-c|0;e=H[a+32>>2];d=e+q|0;k=H[a+224>>2];c=k+r|0;b=d-c|0;g=g-h|0;H[a+192>>2]=N(j-(b+g|0)|0,7282)+16384>>15;H[a+64>>2]=(N(b-g|0,7282)+N(g+j|0,9947)|0)+16384>>15;H[a>>2]=N((c+(d+i|0)|0)+w|0,7282)+16384>>15;b=r-k|0;c=e-q|0;e=N(b+c|0,3941);d=e+N(b,-13455)|0;h=v-u|0;g=m-l|0;i=t-s|0;j=o-n|0;H[a+96>>2]=((d+N(h-g|0,9514)|0)+N(i+j|0,-3941)|0)+16384>>15;b=N(g+j|0,-1344);k=N(g+h|0,6269);c=e+N(c,5573)|0;H[a+224>>2]=(((b+(k+N(g,5285)|0)|0)-c|0)+N(i,-8170)|0)+16384>>15;e=b;b=N(h+j|0,8170)+16384|0;H[a+160>>2]=((e+(b+N(j,-17036)|0)|0)-d|0)+N(i,6269)>>15;H[a+32>>2]=(c+(k+(b+N(h,-4229)|0)|0)|0)+N(i,1344)>>15;f=f+4|0;a=a+4|0;x=x+1|0;if((x|0)!=6){continue}break}xb=p+128|0}function Xca(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;k=N(H[b+36>>2],H[b+28>>2]);e=H[a+272>>2];a:{if((e|0)<-1){break a}f=H[a+28>>2];l=k-f|0;if((l|0)<=0){break a}j=c-4|0;g=e+2|0;m=g&3;b=0;if(e+1>>>0>=3){n=g&-4;g=0;while(1){e=b<<2;h=f+H[e+j>>2]|0;Nb(h,I[h-1|0],l);h=f+H[c+e>>2]|0;Nb(h,I[h-1|0],l);h=f+H[j+(e|8)>>2]|0;Nb(h,I[h-1|0],l);e=f+H[j+(e|12)>>2]|0;Nb(e,I[e-1|0],l);b=b+4|0;g=g+4|0;if((n|0)!=(g|0)){continue}break}}if(m){while(1){e=f+H[j+(b<<2)>>2]|0;Nb(e,I[e-1|0],l);b=b+1|0;i=i+1|0;if((m|0)!=(i|0)){continue}break}}e=H[a+272>>2]}b:{if((e|0)<=0){break b}b=H[a+228>>2];m=b<<6;n=65536-(b<<9)|0;j=0;l=k-2|0;if(!l){while(1){f=j<<2;b=H[f+d>>2];e=c+f|0;f=H[e>>2];i=I[f|0];j=j+1|0;g=H[(j<<2)+c>>2];l=H[e-4>>2];k=I[g|0]+I[l|0]|0;e=i+k|0;h=N(i,n);i=I[f+1|0]+(I[g+1|0]+I[l+1|0]|0)|0;F[b|0]=(h+N(m,i+(e+k|0)|0)|0)+32768>>>16;g=b;b=I[f+1|0];F[g+1|0]=(N(b,n)+N(m,(e+(i<<1)|0)-b|0)|0)+32768>>>16;if(H[a+272>>2]>(j|0)){continue}break b}}while(1){f=j<<2;b=H[f+d>>2];e=c+f|0;f=H[e>>2];k=I[f|0];j=j+1|0;g=H[(j<<2)+c>>2];o=H[e-4>>2];h=I[g|0]+I[o|0]|0;i=k+h|0;e=I[f+1|0]+(I[g+1|0]+I[o+1|0]|0)|0;F[b|0]=(N(k,n)+N(m,e+(i+h|0)|0)|0)+32768>>>16;k=b+1|0;b=f+1|0;h=g+1|0;o=o+1|0;g=l;while(1){f=e;i=e+i|0;e=I[b|0];i=i-e|0;p=N(e,n);e=I[b+1|0]+(I[h+1|0]+I[o+1|0]|0)|0;F[k|0]=(p+N(m,i+e|0)|0)+32768>>>16;k=k+1|0;h=h+1|0;o=o+1|0;b=b+1|0;i=f;g=g-1|0;if(g){continue}break}b=I[b|0];F[k|0]=(N(b,n)+N(m,((e<<1)+i|0)-b|0)|0)+32768>>>16;if(H[a+272>>2]>(j|0)){continue}break}}}function Uj(a,b,c,d){var e=0,f=0,g=0;a=I[a|0]|I[a+1|0]<<8;a=a<<8|a>>>8;f=a&65535;d=(((((a&1)<<1)+d|0)+(a&2)|0)+(f>>>1&2)|0)+(f>>>2&2)|0;a:{b:{if(!(a&16)){a=d;break b}if(d>>>0>2]){break a}a=H[b+8>>2];if(a>>>0>>0|a-d>>>0<2){break a}a=H[b+12>>2]-2|0;H[b+12>>2]=a;if((a|0)<=0){break a}a=d+2|0;e=I[d|0]|I[d+1|0]<<8;if(!e){break b}if(di(((e<<8|e>>>8)&65535)+c|0,b)){break b}e=H[b+28>>2];if(e>>>0>31){break a}H[b+28>>2]=e+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}c:{if(!(f&32)){d=a;break c}if(K[b+4>>2]>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break a}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=a+2|0;e=I[a|0]|I[a+1|0]<<8;if(!e){break c}if(di(((e<<8|e>>>8)&65535)+c|0,b)){break c}e=H[b+28>>2];if(e>>>0>31){break a}H[b+28>>2]=e+1;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0}d:{if(!(f&64)){a=d;break d}if(K[b+4>>2]>d>>>0){break a}a=H[b+8>>2];if(a>>>0>>0|a-d>>>0<2){break a}a=H[b+12>>2]-2|0;H[b+12>>2]=a;if((a|0)<=0){break a}a=d+2|0;e=I[d|0]|I[d+1|0]<<8;if(!e){break d}if(di(((e<<8|e>>>8)&65535)+c|0,b)){break d}e=H[b+28>>2];if(e>>>0>31){break a}H[b+28>>2]=e+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}g=1;if(!(f&128)){break a}if(K[b+4>>2]>a>>>0){return 0}d=H[b+8>>2];if(d>>>0>>0){return 0}if(d-a>>>0<2){return 0}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){return 0}d=I[a|0]|I[a+1|0]<<8;if(!d){break a}if(di(((d<<8|d>>>8)&65535)+c|0,b)){break a}c=H[b+28>>2];if(c>>>0>31){return 0}H[b+28>>2]=c+1;g=0;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;g=1}return g}function Ni(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;a:{if(H[a+20>>2]){break a}b:{b=H[a+24>>2];if(b){break b}c=H[a+32>>2]+1|0;e=a+28|0;d=H[e>>2];c:{if((d|0)<0){break c}g=1;if(c>>>0<=d>>>0){break c}b=d;while(1){b=((b>>>1|0)+b|0)+8|0;if(c>>>0>=b>>>0){continue}break}c=-1;g=0;d:{if(b>>>0>>0|b>>>0>1073741822){break d}d=tc(H[e+8>>2],b<<2);if(!d){break d}H[e+8>>2]=d;g=1;c=b}H[e>>2]=c}e:{if(!g){break e}b=oc(1,576);H[f+12>>2]=b;if(!b){break e}f:{g:{h:{d=H[e>>2];if((d|0)>=0){b=H[e+4>>2];c=b+1|0;c=(c|0)>0?c:0;if(c>>>0<=d>>>0){break g}b=d;while(1){b=((b>>>1|0)+b|0)+8|0;if(c>>>0>=b>>>0){continue}break}if(!(b>>>0>>0|b>>>0>1073741822)){d=tc(H[e+8>>2],b<<2);if(d){break h}}H[e>>2]=-1}H[196248]=H[40908];break f}H[e>>2]=b;H[e+8>>2]=d;b=H[e+4>>2]}if(b>>>0>>0){Nb(H[e+8>>2]+(b<<2)|0,0,c-b<<2)}H[e+4>>2]=c;b=H[e+8>>2];H[196248]=H[40908];b=(b+(c<<2)|0)-4|0;if((b|0)!=784992){H[b>>2]=H[f+12>>2]}}b=H[f+12>>2];H[b+540>>2]=0;H[b+504>>2]=b+540;H[b+468>>2]=b+504;H[b+432>>2]=b+468;H[b+396>>2]=b+432;H[b+360>>2]=b+396;H[b+324>>2]=b+360;H[b+288>>2]=b+324;H[b+252>>2]=b+288;H[b+216>>2]=b+252;H[b+180>>2]=b+216;H[b+144>>2]=b+180;H[b+108>>2]=b+144;H[b+72>>2]=b+108;H[b+36>>2]=b+72;H[b>>2]=b+36;H[a+24>>2]=b;break b}if(H[a+20>>2]){break a}H[a+20>>2]=1;break a}H[a+24>>2]=H[b>>2];H[b+32>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[b>>2]=H[a+4>>2];H[b+4>>2]=H[a+8>>2];H[b+32>>2]=H[a+40>>2];H[a+40>>2]=b}xb=f+16|0;return H[a+4>>2]}function ER(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;var h=0,i=0;a=xb-160|0;xb=a;H[a+144>>2]=c;H[a+152>>2]=b;H[a+20>>2]=3480;h=Ed(a+24|0,a+32|0,a+20|0);H[197455]=0;b=H[e+28>>2];H[a+16>>2]=b;H[b+4>>2]=H[b+4>>2]+1;b=H[197455];H[197455]=0;a:{b:{c:{d:{if((b|0)!=1){H[197455]=0;i=aa(3329,a+16|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break b}F[a+15|0]=0;b=H[e+4>>2];H[197455]=0;b=Ha(3481,a+152|0,c|0,d|0,a+16|0,b|0,f|0,a+15|0,i|0,h|0,a+20|0,a+132|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}if(!b){break c}b=xb-16|0;xb=b;e:{if(I[g+11|0]>>>7|0){c=H[g>>2];F[b+15|0]=0;F[c|0]=I[b+15|0];H[g+4>>2]=0;break e}F[b+14|0]=0;F[g|0]=I[b+14|0];F[g+11|0]=0}xb=b+16|0;if(!I[a+15|0]){break d}H[197455]=0;b=da(3462,i|0,45)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;ba(3348,g|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){break d}break b}e=$()|0;_()|0;break a}H[197455]=0;b=da(3462,i|0,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}e=H[h>>2];c=H[a+20>>2];d=c-1|0;b=b&255;while(1){if(!((b|0)!=I[e|0]|d>>>0<=e>>>0)){e=e+1|0;continue}break}H[197455]=0;ca(3489,g|0,e|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break c}break b}H[197455]=0;b=da(3421,a+152|0,a+144|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}if(b){H[f>>2]=H[f>>2]|2}d=H[a+152>>2];b=H[a+16>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Bc(h);xb=a+160|0;return d|0}e=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}}Bc(h);ea(e|0);X()}function xR(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;var h=0,i=0;a=xb-448|0;xb=a;H[a+432>>2]=c;H[a+440>>2]=b;H[a+20>>2]=3480;h=Ed(a+24|0,a+32|0,a+20|0);H[197455]=0;b=H[e+28>>2];H[a+16>>2]=b;H[b+4>>2]=H[b+4>>2]+1;b=H[197455];H[197455]=0;a:{b:{c:{d:{if((b|0)!=1){H[197455]=0;i=aa(3342,a+16|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break b}F[a+15|0]=0;b=H[e+4>>2];H[197455]=0;b=Ha(3491,a+440|0,c|0,d|0,a+16|0,b|0,f|0,a+15|0,i|0,h|0,a+20|0,a+432|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}if(!b){break c}b=xb-16|0;xb=b;e:{if(I[g+11|0]>>>7|0){c=H[g>>2];H[b+12>>2]=0;H[c>>2]=H[b+12>>2];H[g+4>>2]=0;break e}H[b+8>>2]=0;H[g>>2]=H[b+8>>2];F[g+11|0]=0}xb=b+16|0;if(!I[a+15|0]){break d}H[197455]=0;b=da(3343,i|0,45)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;ba(1650,g|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){break d}break b}e=$()|0;_()|0;break a}H[197455]=0;b=da(3343,i|0,48)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}e=H[h>>2];c=H[a+20>>2];d=c-4|0;while(1){if(!((b|0)!=H[e>>2]|d>>>0<=e>>>0)){e=e+4|0;continue}break}H[197455]=0;ca(3497,g|0,e|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break c}break b}H[197455]=0;b=da(3450,a+440|0,a+432|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}if(b){H[f>>2]=H[f>>2]|2}d=H[a+440>>2];b=H[a+16>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Bc(h);xb=a+448|0;return d|0}e=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}}Bc(h);ea(e|0);X()}function Nk(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{e:{f:{e=H[a+708>>2];switch(e|0){case 1:break d;case 0:break e;default:break f}}e=e-1|0;H[a+708>>2]=e;if((e|0)!=1){break e}Xb(a,269371);mc(a,c);return}d=H[a+348>>2];e=H[a+200>>2];g:{h:{if(e&4){if((d|0)==1229209940){e=a+348|0;d=1229209940;break h}H[a+200>>2]=e|8}e=a+348|0;if(d&536870912){break g}}if((Pk(a,d)|0)==3){break g}if(!H[a+640>>2]){break c}}if(!(H[a+640>>2]?1:I[a+205|0]&128)){break d}H[a+728>>2]=c;F[a+720|0]=0;d=H[a+348>>2];F[a+719|0]=d;F[a+718|0]=d>>>8;F[a+717|0]=d>>>16;F[a+716|0]=d>>>24;i:{if(!c){H[a+724>>2]=0;break i}d=Rd(a,c);H[a+724>>2]=d;vd(a,d,c);xc(a,d,c)}g=a+716|0;c=H[a+640>>2];j:{k:{if(!c){break k}c=zb[c|0](a,g)|0;if((c|0)<0){break b}if(c){break j}c=H[e>>2];if(c&536870912){break k}if((Pk(a,c)|0)!=3){break a}}e=0;l:{if(!a|!b){break l}m:{c=H[b+192>>2];n:{if((c|0)==2147483647){break n}c=c+1|0;if(c>>>0>214748363){break n}c=xd(a,N(c,20));if(c){break m}}Xb(a,266558);break l}d=c;c=H[b+188>>2];h=Ob(d,c,N(H[b+192>>2],20));cc(a,c);H[b+188>>2]=0;while(1){c=N(e,20);d=c+g|0;f=H[d>>2];c=c+(N(H[b+192>>2],20)+h|0)|0;F[c+4|0]=0;H[c>>2]=f;f=H[d+12>>2];H[c+12>>2]=f;F[c+16|0]=H[a+200>>2];o:{if(!f){H[c+8>>2]=0;break o}f=xd(a,f);H[c+8>>2]=f;if(!f){Xb(a,266558);H[c+12>>2]=0;break o}Ob(f,H[d+8>>2],H[d+12>>2])}e=e+1|0;if((e|0)!=1){continue}break}H[b+188>>2]=h;H[b+192>>2]=H[b+192>>2]+1;H[b+184>>2]=H[b+184>>2]|512}}cc(a,H[a+724>>2]);c=0;H[a+724>>2]=0}mc(a,c);return}Qk(a,269413);X()}Qk(a,269436);X()}Qk(a,269413);X()}function Sk(a,b){var c=0,d=0,e=0,f=0;f=H[a+420>>2];NC(a);d=H[a+24>>2];e=H[d>>2];H[d>>2]=e+1;F[e|0]=255;e=H[d+4>>2]-1|0;H[d+4>>2]=e;a:{if(e){break a}if(zb[H[d+12>>2]](a)|0){break a}e=H[a>>2];H[e+20>>2]=25;zb[H[e>>2]](a)}d=H[a+24>>2];e=H[d>>2];H[d>>2]=e+1;F[e|0]=b-48;b=H[d+4>>2]-1|0;H[d+4>>2]=b;b:{if(b){break b}if(zb[H[d+12>>2]](a)|0){break b}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(H[a+288>>2]>0){d=0;while(1){b=d<<2;e=H[(b+a|0)+292>>2];if(!(H[a+360>>2]|H[a+368>>2])){c=H[((H[e+20>>2]<<2)+f|0)+76>>2];F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+56|0]=0;F[c+57|0]=0;F[c+58|0]=0;F[c+59|0]=0;F[c+60|0]=0;F[c+61|0]=0;F[c+62|0]=0;F[c+63|0]=0;F[c+48|0]=0;F[c+49|0]=0;F[c+50|0]=0;F[c+51|0]=0;F[c+52|0]=0;F[c+53|0]=0;F[c+54|0]=0;F[c+55|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+42|0]=0;F[c+43|0]=0;F[c+44|0]=0;F[c+45|0]=0;F[c+46|0]=0;F[c+47|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;b=b+f|0;H[b+52>>2]=0;H[b+36>>2]=0}if(H[a+364>>2]){Nb(H[((H[e+24>>2]<<2)+f|0)+140>>2],0,256)}d=d+1|0;if((d|0)>2]){continue}break}}H[f+28>>2]=11;H[f+32>>2]=-1;H[f+20>>2]=0;H[f+24>>2]=0;H[f+12>>2]=0;H[f+16>>2]=65536}function Uz(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb+-64|0;xb=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!b){break j}b=Oe(b,414888,424852,0);if(!b){break j}vi(e+48|0,a,b,d);d=I[e+59|0];b=d<<24>>24;if((b|0)<0?H[e+52>>2]:d){H[197455]=0;ia(1795,a+8|0);d=H[197455];H[197455]=0;if((d|0)==1){break i}d=a- -64|0;b=H[d>>2]+1|0;H[d>>2]=b;H[197455]=0;fa(1756,e+16|0,+(b>>>0),0);b=H[197455];H[197455]=0;if((b|0)==1){break h}H[197455]=0;b=ca(1758,e+16|0,0,414896)|0;d=H[197455];H[197455]=0;if((d|0)==1){break g}H[e+40>>2]=H[b+8>>2];d=H[b+4>>2];H[e+32>>2]=H[b>>2];H[e+36>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[e+27|0]<0){Kb(H[e+16>>2])}H[197455]=0;ga(1785,e|0,415048,e+48|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=da(1699,e|0,415188)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[e+24>>2]=H[b+8>>2];d=H[b+4>>2];H[e+16>>2]=H[b>>2];H[e+20>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[e+11|0]<0){Kb(H[e>>2])}H[197455]=0;ka(1796,a+92|0,e+32|0,e+16|0,c|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+43|0]<0){Kb(H[e+32>>2])}b=I[e+59|0]}if(b<<24>>24>=0){break j}Kb(H[e+48>>2])}xb=e- -64|0;return}a=$()|0;_()|0;break a}a=$()|0;_()|0;break b}a=$()|0;_()|0;if(F[e+27|0]>=0){break b}Kb(H[e+16>>2]);break b}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[e+11|0]>=0){break c}Kb(H[e>>2]);break c}a=$()|0;_()|0;if(F[e+27|0]>=0){break c}Kb(H[e+16>>2])}if(F[e+43|0]>=0){break b}Kb(H[e+32>>2])}b=I[e+59|0]}if(b<<24>>24<0){Kb(H[e+48>>2])}ea(a|0);X()}function Sca(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;n=N(H[b+36>>2],H[b+28>>2]);b=H[a+412>>2]+H[b+4>>2]|0;k=I[b+92|0];m=I[b+102|0];e=H[a+272>>2];a:{if((e|0)<=0){break a}f=H[a+28>>2];h=N(k,n)-f|0;if((h|0)<=0){break a}b=0;if(e-1>>>0>=3){o=e&-4;while(1){i=b<<2;g=f+H[i+c>>2]|0;Nb(g,I[g-1|0],h);g=f+H[(i|4)+c>>2]|0;Nb(g,I[g-1|0],h);g=f+H[(i|8)+c>>2]|0;Nb(g,I[g-1|0],h);i=f+H[(i|12)+c>>2]|0;Nb(i,I[i-1|0],h);b=b+4|0;j=j+4|0;if((o|0)!=(j|0)){continue}break}}e=e&3;if(e){while(1){j=f+H[(b<<2)+c>>2]|0;Nb(j,I[j-1|0],h);b=b+1|0;l=l+1|0;if((e|0)!=(l|0)){continue}break}}e=H[a+272>>2]}b:{if(!n|(e|0)<=0){break b}h=N(k,m);i=h>>>1|0;if(m){if(k){s=k&248;r=k&7;l=0;t=k-1>>>0<7;o=0;while(1){g=H[(o<<2)+d>>2];p=0;q=0;while(1){e=0;j=0;while(1){b=H[(j+l<<2)+c>>2]+p|0;f=0;if(!t){while(1){e=I[b+7|0]+(I[b+6|0]+(I[b+5|0]+(I[b+4|0]+(I[b+3|0]+(I[b+2|0]+(I[b+1|0]+(I[b|0]+e|0)|0)|0)|0)|0)|0)|0)|0;b=b+8|0;f=f+8|0;if((s|0)!=(f|0)){continue}break}}f=0;if(r){while(1){e=I[b|0]+e|0;b=b+1|0;f=f+1|0;if((r|0)!=(f|0)){continue}break}}j=j+1|0;if((m|0)!=(j|0)){continue}break}F[g|0]=(e+i|0)/(h|0);p=k+p|0;g=g+1|0;q=q+1|0;if((q|0)!=(n|0)){continue}break}o=o+1|0;l=m+l|0;if((l|0)>2]){continue}break}break b}c=(i>>>0)/(h>>>0)|0;e=0;b=0;while(1){Nb(H[(b<<2)+d>>2],c,n);b=b+1|0;e=e+m|0;if((e|0)>2]){continue}break}break b}c=(i>>>0)/(h>>>0)|0;e=0;b=0;while(1){Nb(H[(b<<2)+d>>2],c,n);b=b+1|0;e=e+m|0;if((e|0)>2]){continue}break}}}function UB(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;i=xb-16|0;xb=i;a:{b:{c:{d:{e:{f:{d=H[a+708>>2];switch(d|0){case 1:break d;case 0:break e;default:break f}}d=d-1|0;H[a+708>>2]=d;if((d|0)!=1){break e}Xb(a,269099);mc(a,c);break a}d=H[a+200>>2];if(!(d&1)){break c}if(d&4){H[a+200>>2]=d|8}cc(a,H[a+740>>2]);d=xd(a,c+1|0);H[a+740>>2]=d;if(!d){Xb(a,269157);break a}vd(a,d,c);xc(a,d,c);e=mc(a,0);d=H[a+740>>2];if(e){cc(a,d);H[a+740>>2]=0;break a}F[c+d|0]=0;g=H[a+740>>2];d=g;while(1){e=d;d=d+1|0;if(I[e|0]){continue}break}g:{if(c>>>0>=3){j=c+g|0;if(j-3>>>0>d>>>0){break g}}Xb(a,269189);cc(a,H[a+740>>2]);H[a+740>>2]=0;break a}l=F[e+2|0];f=e+3|0;d=f;h:{h=I[e+1|0];if(!h){break h}if((h|0)!=1){Xb(a,269210);cc(a,H[a+740>>2]);H[a+740>>2]=0;break a}d=f;if(!l){break h}Xb(a,269240);cc(a,H[a+740>>2]);H[a+740>>2]=0;break a}while(1){k=I[d|0];e=d+1|0;d=e;if(k){continue}break}if(e>>>0>=j>>>0){break b}d=e;while(1){k=I[d|0];d=d+1|0;if(k){continue}break}if(d>>>0>=j>>>0){Xb(a,269270);cc(a,H[a+740>>2]);H[a+740>>2]=0;break a}d=d-g|0;i:{if(h){Eq(a,l,c,d,i+12|0);break i}m=i,n=ac(d+g|0),H[m+12>>2]=n}c=xd(a,28);if(!c){Xb(a,269291);cc(a,H[a+740>>2]);H[a+740>>2]=0;break a}H[c>>2]=h?2:1;h=f-g|0;f=H[a+740>>2];H[c+20>>2]=h+f;H[c+24>>2]=f+(e-g|0);e=H[i+12>>2];H[c+12>>2]=0;H[c+16>>2]=e;H[c+8>>2]=d+f;H[c+4>>2]=f;b=Bq(a,b,c);cc(a,c);cc(a,H[a+740>>2]);H[a+740>>2]=0;if(!b){break a}hc(a,269331);X()}mc(a,c);break a}hc(a,269132);X()}Xb(a,269189);cc(a,H[a+740>>2]);H[a+740>>2]=0}xb=i+16|0}function Fg(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0;i=xb-32|0;xb=i;H[i+16>>2]=c;H[i+24>>2]=b;c=i+8|0;b=H[d+28>>2];H[c>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;b=aa(3342,c|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){c=H[i+8>>2];j=H[c+4>>2]-1|0;H[c+4>>2]=j;if((j|0)==-1){zb[H[H[c>>2]+8>>2]](c)}H[e>>2]=0;c=0;a:{while(1){if(c|(g|0)==(h|0)){break a}b:{if(qh(i+24|0,i+16|0)){break b}c:{if((zb[H[H[b>>2]+52>>2]](b,H[g>>2],0)|0)==37){c=g+4|0;if((h|0)==(c|0)){break b}k=0;j=zb[H[H[b>>2]+52>>2]](b,H[c>>2],0)|0;d:{if(!((j|0)==69|(j&255)==48)){c=g;break d}if((g+8|0)==(h|0)){break b}k=j;j=zb[H[H[b>>2]+52>>2]](b,H[g+8>>2],0)|0}l=i,m=zb[H[H[a>>2]+36>>2]](a,H[i+24>>2],H[i+16>>2],d,e,f,j,k)|0,H[l+24>>2]=m;g=c+8|0;break c}if(zb[H[H[b>>2]+12>>2]](b,8192,H[g>>2])|0){while(1){e:{g=g+4|0;if((h|0)==(g|0)){g=h;break e}if(zb[H[H[b>>2]+12>>2]](b,8192,H[g>>2])|0){continue}}break}while(1){if(!gm(i+24|0,i+16|0)){break c}c=H[i+24>>2];j=H[c+12>>2];f:{if((j|0)==H[c+16>>2]){c=zb[H[H[c>>2]+36>>2]](c)|0;break f}c=H[j>>2]}if(!(zb[H[H[b>>2]+12>>2]](b,8192,c)|0)){break c}$i(i+24|0);continue}}c=H[i+24>>2];j=H[c+12>>2];g:{if((j|0)==H[c+16>>2]){c=zb[H[H[c>>2]+36>>2]](c)|0;break g}c=H[j>>2]}if((zb[H[H[b>>2]+28>>2]](b,c)|0)==(zb[H[H[b>>2]+28>>2]](b,H[g>>2])|0)){g=g+4|0;$i(i+24|0);break c}H[e>>2]=4}c=H[e>>2];continue}break}H[e>>2]=4}if(qh(i+24|0,i+16|0)){H[e>>2]=H[e>>2]|2}xb=i+32|0;return H[i+24>>2]}c=$()|0;_()|0;a=H[i+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function oz(a,b){var c=0,d=0,e=O(0),f=0,g=0,h=0;f=H[a+8>>2];c=H[a+4>>2];if(f>>>0>c+3>>>0){h=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+4>>2]=h;if(c+3>>>0>>0){g=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+8>>2]=g;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+16>>3]=d;g=0;a:{if(c+3>>>0>=f>>>0){h=0;break a}h=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+24>>2]=h;if(c+3>>>0>>0){g=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+28>>2]=g;g=0;if(c+3>>>0>>0){g=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+32>>2]=g;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+40>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+48>>3]=d;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+56>>3]=d;g=b- -64|0;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[g>>3]=d;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+72>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[a+4>>2]=c+4;d=+e}else{d=0}M[b+80>>3]=d}function Lda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;s=xb-160|0;xb=s;n=H[a+332>>2];b=H[b+84>>2];a=s;while(1){f=H[b+96>>2];j=G[c+48>>1];g=H[b+32>>2];h=G[c+16>>1];l=N(G[c>>1],H[b>>2])<<13|1024;k=N(H[b+64>>2],G[c+32>>1]);i=N(H[b+128>>2],G[c+64>>1]);m=k-i|0;H[a+64>>2]=l+N(m,-11584)>>11;j=N(f,j);g=N(g,h);f=N(j+g|0,6810);h=l+N(m,2896)|0;k=N(i+k|0,6476);i=h+k|0;g=f+N(g,4209)|0;H[a+128>>2]=i-g>>11;H[a>>2]=g+i>>11;g=h-k|0;f=f+N(j,-17828)|0;H[a+96>>2]=g-f>>11;H[a+32>>2]=f+g>>11;a=a+4|0;b=b+4|0;c=c+2|0;o=o+1|0;if((o|0)!=8){continue}break}a=n+128|0;n=0;b=s;while(1){f=H[b+28>>2];i=H[b+12>>2];m=f+i|0;j=N(m,7791);l=H[b+24>>2];h=H[b+8>>2];g=N(l+h|0,6810);c=H[(n<<2)+d>>2]+e|0;o=g+N(h,4209)|0;k=(H[b>>2]<<13)+131072|0;h=H[b+16>>2];t=k+N(h,9373)|0;p=o+t|0;i=i-f|0;q=N(i,2531);u=H[b+20>>2];r=u<<13;v=q+r|0;f=H[b+4>>2];w=v+(j+N(f,11443)|0)|0;F[c|0]=I[a+(p+w>>>18&1023)|0];F[c+9|0]=I[a+(p-w>>>18&1023)|0];m=N(m,4815);p=(r-q|0)-(i<<12)|0;q=N(f,10323)-(m+p|0)|0;g=g+N(l,-17828)|0;l=k+N(h,-3580)|0;r=g+l|0;F[c+1|0]=I[a+(q+r>>>18&1023)|0];F[c+8|0]=I[a+(r-q>>>18&1023)|0];i=f-(i+u|0)<<13;h=k+N(h,-11586)|0;F[c+2|0]=I[a+(i+h>>>18&1023)|0];F[c+7|0]=I[a+(h-i>>>18&1023)|0];h=p+(N(f,5260)-m|0)|0;g=l-g|0;F[c+3|0]=I[a+(h+g>>>18&1023)|0];F[c+6|0]=I[a+(g-h>>>18&1023)|0];f=(N(f,1812)-j|0)+v|0;j=t-o|0;F[c+4|0]=I[a+(f+j>>>18&1023)|0];F[c+5|0]=I[a+(j-f>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=5){continue}break}xb=s+160|0}function OM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=xb-17408|0;xb=e;d=96;a:{if(!a){break a}a=H[b+4>>2];d=20;if(!a){break a}f=G[a+2>>1];d=0;if(!f){break a}c=G[a>>1];d=0;if((c|0)<=0){break a}g=H[a+12>>2];d=20;if(!g){break a}d=20;if(!H[a+4>>2]){break a}d=20;if((f|0)!=(G[((c<<1)+g|0)-2>>1]+1|0)){break a}d=19;if(I[b+8|0]&3){break a}b=H[b>>2];d=20;if(!b){break a}d=0;if(!H[b+4>>2]){break a}d=0;if(!H[b>>2]){break a}d=20;if(!H[b+12>>2]){break a}H[e+16520>>2]=H[a+16>>2];f=H[a+12>>2];c=e+16512|0;H[c>>2]=H[a+8>>2];H[c+4>>2]=f;c=H[a+4>>2];H[e+16504>>2]=H[a>>2];H[e+16508>>2]=c;c=H[b+12>>2];a=e+16488|0;H[a>>2]=H[b+8>>2];H[a+4>>2]=c;c=H[b+20>>2];a=e+16496|0;H[a>>2]=H[b+16>>2];H[a+4>>2]=c;a=H[b+4>>2];H[e+16480>>2]=H[b>>2];H[e+16484>>2]=a;a=e+16384|0;H[e+16412>>2]=a;H[e+16408>>2]=e;b=H[a+136>>2];c=b&256;H[a+20>>2]=c?30:2;H[a+16>>2]=c?256:32;c=c?12:6;H[a>>2]=c;c=1<>2]=c;H[a+12>>2]=c>>>6;H[a+8>>2]=c>>>1;b:{if(b&8){F[a+164|0]=2;break b}c=b>>>2&4;F[a+164|0]=c;if(b&32){break b}F[a+164|0]=c|1}H[a+1008>>2]=0;H[a+160>>2]=53;H[a+156>>2]=54;H[a+152>>2]=55;H[a+148>>2]=56;G[a+944>>1]=0;c=H[a+96>>2]-1|0;G[a+946>>1]=c;G[a+52>>1]=H[a+100>>2];f=H[a+108>>2];H[a+56>>2]=f;F[a+165|0]=(b>>>9^-1)&1;b=H[a+104>>2];if((b|0)>0){H[a+56>>2]=f+N(b,c)}b=Ru(a,0);c:{if(b){break c}if(!(!I[a+165|0]|I[a+164|0]==2)){H[a+1008>>2]=0;H[a+160>>2]=57;H[a+156>>2]=58;H[a+152>>2]=59;H[a+148>>2]=60;G[a+944>>1]=0;G[a+946>>1]=J[a+100>>1]-1;b=Ru(a,1);if(b){break c}}b=0}d=b}c=d;xb=e+17408|0;return c|0}function Jk(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;f=N(d,1348)+a|0;k=H[f+44>>2];g=b?H[(N(b,12)+c|0)-12>>2]:0;e=H[H[a+2748>>2]+40>>2];b=(e|0)/256|0;l=(N(e,6e3)|0)/2048|0;a:{if((k|0)<=0){break a}c=H[f+52>>2];h=c+N(k,44)|0;m=e+255>>>0<511?1:b;i=H[(N(d,1348)+a|0)+68>>2];b:{if(!g){b=c;while(1){if((i|0)==F[b+1|0]){e=G[b+2>>1];a=c;while(1){c:{if((i|0)!=(0-F[a+1|0]|0)){break c}f=G[a+2>>1];if((f|0)<=(e|0)){break c}g=G[b+8>>1];d=G[a+8>>1];j=(d|0)>(g|0)?g:d;g=G[b+6>>1];d=G[a+6>>1];d=j-((d|0)<(g|0)?g:d)|0;if((d|0)<(m|0)){break c}d=(f-e|0)+((l|0)/(d|0)|0)|0;if((d|0)>2]){H[b+20>>2]=a;H[b+28>>2]=d}if((d|0)>=H[a+28>>2]){break c}H[a+20>>2]=b;H[a+28>>2]=d}a=a+44|0;if(h>>>0>a>>>0){continue}break}}b=b+44|0;if(h>>>0>b>>>0){continue}break}break b}b=c;while(1){if((i|0)==F[b+1|0]){j=G[b+2>>1];a=c;while(1){d:{if((i|0)!=(0-F[a+1|0]|0)){break d}e=G[a+2>>1];if((e|0)<=(j|0)){break d}f=G[b+8>>1];d=G[a+8>>1];n=(d|0)>(f|0)?f:d;f=G[b+6>>1];d=G[a+6>>1];f=n-((d|0)<(f|0)?f:d)|0;if((f|0)<(m|0)){break d}d=(e-j<<10)/(g|0)|0;e=32e3;e:{if((d|0)>11024){break e}e=0;if((d|0)<1025){break e}d=d-1024|0;e=(N(d,d)>>>0)/3e3|0}d=e+((l|0)/(f|0)|0)|0;if((d|0)>2]){H[b+20>>2]=a;H[b+28>>2]=d}if((d|0)>=H[a+28>>2]){break d}H[a+20>>2]=b;H[a+28>>2]=d}a=a+44|0;if(h>>>0>a>>>0){continue}break}}b=b+44|0;if(h>>>0>b>>>0){continue}break}}if((k|0)<=0){break a}while(1){a=H[c+20>>2];if(!(!a|H[a+20>>2]==(c|0))){H[c+20>>2]=0;H[c+24>>2]=H[a+20>>2]}c=c+44|0;if(h>>>0>c>>>0){continue}break}}}function x9(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;if((c|0)>0){k=H[a+12>>2];while(1){h=H[a+4>>2];i=.210526316;j=.473684211;d=+L[b+4>>2];e=32767;a:{if(d>=18371976e12){break a}e=65535;if(d<=-18371976e12){break a}if(d>5.4136769e-20){d=tk(d)*1.4426950408889634+64;if(h){e=gma(H[197066],H[197067],1284865837,1481765933)+1|0;f=yb;f=e?f:f+1|0;H[197066]=e;H[197067]=f;d=d*256+ +(f>>>1|0)*4.656612875245797e-10+-.5}else{d=d*256}if(P(d)<2147483648){e=~~d;break a}e=-2147483648;break a}e=0;if(!(d<-5.4136769e-20)){break a}d=tk(-d)*1.4426950408889634+64;if(h){e=gma(H[197066],H[197067],1284865837,1481765933)+1|0;f=yb;f=e?f:f+1|0;H[197066]=e;H[197067]=f;d=d*256+ +(f>>>1|0)*4.656612875245797e-10+-.5}else{d=d*256}b:{if(P(d)<2147483648){e=~~d;break b}e=-2147483648}e=e|-32768}c:{d:{if(!e){break d}l=+L[b+4>>2];m=+L[b>>2];d=+L[b+8>>2]*3+(l*15+m);if(d<=0){break d}j=l*9/d;i=m*4/d;f=0;if(i<=0){break c}}if(h){f=gma(H[197066],H[197067],1284865837,1481765933)+1|0;g=yb;g=f?g:g+1|0;H[197066]=f;H[197067]=g;d=i*410+ +(g>>>1|0)*4.656612875245797e-10+-.5}else{d=i*410}if(P(d)<2147483648){f=~~d;break c}f=-2147483648}g=(f>>>0<255?f:255)<<8|e<<16;e=0;e:{if(j<=0){break e}if(h){e=gma(H[197066],H[197067],1284865837,1481765933)+1|0;f=yb;f=e?f:f+1|0;H[197066]=e;H[197067]=f;d=j*410+ +(f>>>1|0)*4.656612875245797e-10+-.5}else{d=j*410}if(P(d)<2147483648){e=~~d;break e}e=-2147483648}H[k>>2]=g|(e>>>0<255?e:255);b=b+12|0;k=k+4|0;e=c>>>0>1;c=c-1|0;if(e){continue}break}}}function xn(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;k=xb-16|0;xb=k;f=6;a:{if(!a){break a}g=H[a+12>>2];if(g>>>0<=b>>>0){break a}l=H[a>>2];b:{c:{d:{e:{f:{h=H[a+28>>2];if(!h){f=bc(l,(H[a+8>>2]+H[a+4>>2]|0)+N(I[a+16|0],b)|0);if(f){break a}f=wd(H[a>>2],k+8|0,I[a+16|0]);if(f){break a}g:{f=I[a+16|0];if(f){h=0;if(f-1>>>0>=3){i=f&252;while(1){g=e;e=e+4|0;j=j+4|0;if((i|0)!=(j|0)){continue}break}i=k+8|0;i=I[i+(g|3)|0]|(I[i+(g|2)|0]|(I[i+g|0]<<16|I[i+(g|1)|0]<<8))<<8}g=f&3;if(g){while(1){i=I[(k+8|0)+e|0]|i<<8;e=e+1|0;h=h+1|0;if((g|0)!=(h|0)){continue}break}}if(i){break g}}i=0;f=0;break e}while(1){f=wd(H[a>>2],k+12|0,f&255);h:{if(f){break h}m=I[a+16|0];if(!m){break h}j=0;h=0;e=0;if(m-1>>>0>=3){n=m&252;while(1){g=h;h=g+4|0;e=e+4|0;if((n|0)!=(e|0)){continue}break}e=k+12|0;e=I[e+(g|3)|0]|(I[e+(g|2)|0]|(I[e+g|0]<<16|I[e+(g|1)|0]<<8))<<8}g=m&3;if(g){while(1){e=I[(k+12|0)+h|0]|e<<8;h=h+1|0;j=j+1|0;if((g|0)!=(j|0)){continue}break}}if(e){break f}}b=b+1|0;if(b>>>0>=K[a+12>>2]){break e}f=I[a+16|0];continue}}f=0;i=H[h+(b<<2)>>2];if(!i){break e}while(1){b=b+1|0;e=H[h+(b<<2)>>2];if(e){break f}if((b|0)!=(g|0)){continue}break}break e}f=0;b=H[l+4>>2];h=b+1|0;if(h>>>0>=e>>>0){break d}j=H[a+20>>2];break c}b=H[l+4>>2];e=0}j=H[a+20>>2];h=b+1|0;if(j>>>0<=h-e>>>0){break b}}e=h-j|0}if(!(!i|e>>>0<=i>>>0)){b=e-i|0;H[d>>2]=b;d=H[a+32>>2];if(d){H[c>>2]=(d+i|0)-1;break a}f=bc(l,(H[a+20>>2]+i|0)-1|0);if(f){break a}f=Ke(l,b,c);break a}H[c>>2]=0;H[d>>2]=0}xb=k+16|0;return f}function iI(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;h=xb-16|0;xb=h;b=H[b>>2];H[h+12>>2]=0;a:{if(!b){e=35;break a}e=6;g=H[b+132>>2];if(!g|K[b+16>>2]<=c>>>0){break a}e=J[g+4>>1];b=(e|0)==768;c=N(c?c-1|0:I[g+106|0],b?6:4)+(b?148:118)|0;b:{f=b?-4:-2;b=H[g+8>>2];if(c>>>0>=(f+b|0)-2>>>0){break b}c=c+H[g+160>>2]|0;i=I[c|0]|I[c+1|0]<<8;H[a+80>>2]=i;f=b;c=c+2|0;j=I[c|0];if((e|0)==768){b=I[c+2|0]<<16|I[c+3|0]<<24|I[c+1|0]<<8}else{b=I[c+1|0]<<8}b=j|b;if(f>>>0<=b>>>0){break b}c=J[g+96>>1];e=0;H[a+100>>2]=0;F[a+94|0]=1;H[a+76>>2]=c;f=J[g+80>>1];H[a+72>>2]=1651078259;H[a+104>>2]=f;i=i<<6;H[a+40>>2]=i;c=c<<6;H[a+28>>2]=c;H[a+24>>2]=i;H[a+32>>2]=0;H[a+36>>2]=f<<6;Fj(a+24|0,c);if(d&4194304){break a}e=3;c=H[H[a+4>>2]+100>>2];i=H[g+160>>2];d=H[a+80>>2]+7|0;f=d>>>3|0;H[a+84>>2]=f;if(d>>>0<8){break a}j=H[g+8>>2];g=H[a+76>>2];if(j>>>0>>0){break a}c=Ub(c,f,0,g,0,h+12|0);H[a+88>>2]=c;e=H[h+12>>2];if(e){break a}b=b+i|0;if(d&8){d=H[a+76>>2];if((d|0)>0){d=b+d|0;e=c;while(1){F[e|0]=I[b|0];e=H[a+84>>2]+e|0;b=b+1|0;if(d>>>0>b>>>0){continue}break}}c=c+1|0;d=f-1|0}else{d=f}if((f|0)!=1){while(1){e=H[a+76>>2];if((e|0)>0){f=b+e|0;e=c;while(1){F[e|0]=I[b|0];e=H[a+84>>2]+e|0;b=b+1|0;if(f>>>0>b>>>0){continue}break}}e=H[a+76>>2];if((e|0)>0){f=b+e|0;e=c+1|0;while(1){F[e|0]=I[b|0];e=H[a+84>>2]+e|0;b=b+1|0;if(f>>>0>b>>>0){continue}break}}c=c+2|0;d=d-2|0;if(d){continue}break}}e=H[h+12>>2];H[H[a+156>>2]+4>>2]=1;break a}e=3;H[h+12>>2]=3}xb=h+16|0;return e|0}function e9(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;if((c|0)>0){g=H[a+584>>2];while(1){if(!(I[g+4|0]&2)){i=H[a+584>>2];j=H[i+64>>2];e=H[i+68>>2];a:{if(!(I[i+28|0]&4)){break a}if((e|0)!=4){b:{h=e+((e|0)<4?4:-4)|0;if(e>>>0>>0){if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}d=H[a+604>>2];H[a+604>>2]=d+1;F[d|0]=j;f=H[a+608>>2]+1|0;H[a+608>>2]=f;h=4;d=-4;if((e|0)>=4){break b}j=0;e=8}e=e-h|0;break a}while(1){d=d-8|0;if(H[a+600>>2]<=(f|0)){Uc(a)}e=H[a+604>>2];H[a+604>>2]=e+1;j=0;F[e|0]=0;f=H[a+608>>2]+1|0;H[a+608>>2]=f;if(d>>>0>8){continue}break}}e=4}h=1;d=12;if(F[i+28|0]&1){h=!H[i+92>>2]|2;d=13}c:{if(d>>>0<=e>>>0){break c}d=d-e|0;e=h>>>d|j;if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}f=H[a+604>>2];H[a+604>>2]=f+1;F[f|0]=e;f=H[a+608>>2]+1|0;H[a+608>>2]=f;j=0;e=8;if(d>>>0<9){break c}while(1){d=d-8|0;e=h>>>d|0;if(H[a+600>>2]<=(f|0)){Uc(a)}f=H[a+604>>2];H[a+604>>2]=f+1;F[f|0]=e;f=H[a+608>>2]+1|0;H[a+608>>2]=f;e=8;if(d>>>0>8){continue}break}}f=H[(d<<2)+294720>>2]&h;h=e-d|0;f=f<>2]>=H[a+600>>2]){Uc(a)}d=H[a+604>>2];H[a+604>>2]=d+1;F[d|0]=f;H[a+608>>2]=H[a+608>>2]+1;f=0;h=8}H[i+68>>2]=h;H[i+64>>2]=f}d:{if(F[g+28|0]&1){e:{if(!H[g+92>>2]){iB(a,b,H[g+12>>2]);H[g+92>>2]=1;d=H[g+100>>2];break e}jB(a,b,H[g+96>>2],H[g+12>>2]);d=H[g+100>>2]-1|0;H[g+100>>2]=d}if(!d){H[g+92>>2]=0;H[g+100>>2]=H[g+104>>2]-1;break d}Kc(H[g+96>>2],b,H[g+8>>2]);break d}iB(a,b,H[g+12>>2])}d=H[g+8>>2];b=d+b|0;c=c-d|0;if((c|0)>0){continue}break}}return 1}function xaa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(f){a=e>>>0<8;c=h<<2;while(1){h=e;if(!a){while(1){H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|I[l|0]<<24;H[b+4>>2]=I[i+1|0]|I[j+1|0]<<8|I[k+1|0]<<16|I[l+1|0]<<24;H[b+8>>2]=I[i+2|0]|I[j+2|0]<<8|I[k+2|0]<<16|I[l+2|0]<<24;H[b+12>>2]=I[i+3|0]|I[j+3|0]<<8|I[k+3|0]<<16|I[l+3|0]<<24;H[b+16>>2]=I[i+4|0]|I[j+4|0]<<8|I[k+4|0]<<16|I[l+4|0]<<24;H[b+20>>2]=I[i+5|0]|I[j+5|0]<<8|I[k+5|0]<<16|I[l+5|0]<<24;H[b+24>>2]=I[i+6|0]|I[j+6|0]<<8|I[k+6|0]<<16|I[l+6|0]<<24;H[b+28>>2]=I[i+7|0]|I[j+7|0]<<8|I[k+7|0]<<16|I[l+7|0]<<24;b=b+32|0;l=l+8|0;k=k+8|0;j=j+8|0;i=i+8|0;h=h-8|0;if(h>>>0>7){continue}break}}f=f-1|0;a:{switch(h-1|0){case 6:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|I[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 5:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|I[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 4:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|I[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 3:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|I[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 2:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|I[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 1:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|I[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 0:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|I[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;break;default:break a}}l=g+l|0;k=g+k|0;j=g+j|0;i=g+i|0;b=b+c|0;if(f){continue}break}}}function dG(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=O(0),j=0,k=O(0),l=0,m=0,n=0,o=0,p=0,q=0,r=0;f=I[a+2|0]|I[a+3|0]<<8;e=f&128;a:{if(e){q=a+4|0;d=N(f>>>5&2|f>>>7&1,c);g=c>>>0>d>>>0?d:c;break a}g=f&65295;h=N((g<<8|g>>>8)&4095,c);g=H[d+4>>2];if(h>>>0>=g>>>0){return O(O(0))}q=H[d>>2]+(h<<1)|0;d=g-h|0;d=d>>>0>g>>>0?0:d;g=c>>>0>d>>>0?d:c}b:{if(!(f&64)){k=O(1);if(!c){break b}d=0;while(1){i=k;a=d>>>0>>0?(d<<1)+q|0:163632;a=I[a|0]|I[a+1|0]<<8;c:{if(!a){break c}e=H[(d<<2)+b>>2];a=(a<<8|a>>>8)<<16>>16;if((e|0)==(a|0)){break c}k=O(0);if(!e|(e|0)<(a&a>>31)|(e|0)>(((a|0)>0?a:0)|0)){break b}i=O(i*O(O(e|0)/O(a|0)))}k=i;d=d+1|0;if((d|0)!=(c|0)){continue}break}break b}k=O(1);if(!c){break b}d=0;f=N(f>>>5&2|f>>>7&1,c);h=e?c:0;l=h+c|0;e=f-l|0;e=e>>>0>f>>>0?0:e;r=c>>>0>e>>>0?e:c;e=f-h|0;e=e>>>0>f>>>0?0:e;f=c>>>0>e>>>0?e:c;a=a+4|0;h=a+(h<<1)|0;e=a+(l<<1)|0;while(1){i=k;j=d<<1;a=d>>>0>>0?j+q|0:163632;o=I[a|0]|I[a+1|0]<<8;d:{if(!o){break d}m=H[(d<<2)+b>>2];n=(o<<8|o>>>8)<<16>>16;if((m|0)==(n|0)){break d}a=d>>>0>>0?h+j|0:163632;l=I[a|0]|I[a+1|0]<<8;p=(l<<8|l>>>8)<<16>>16;if((p|0)>(n|0)){break d}a=d>>>0>>0?e+j|0:163632;a=I[a|0]|I[a+1|0]<<8;j=(a<<8|a>>>8)<<16>>16;if((j|0)<(n|0)|!((j|0)<=0|(p|0)>=0)){break d}k=O(0);if((m|0)<(p|0)|(j|0)<(m|0)){break b}if((m|0)<(n|0)){if((l|0)==(o|0)){break d}i=O(i*O(O(m-p|0)/O(n-p|0)));break d}if((a|0)==(o|0)){break d}i=O(i*O(O(j-m|0)/O(j-n|0)))}k=i;d=d+1|0;if((d|0)!=(c|0)){continue}break}}return O(k)}function Rq(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b=H[a+288>>2];if((b|0)==1){b=H[a+292>>2];H[a+308>>2]=H[b+28>>2];c=H[b+32>>2];H[a+312>>2]=c;H[b+64>>2]=1;H[b+56>>2]=1;H[b+60>>2]=1;H[b+72>>2]=1;H[b+68>>2]=H[b+36>>2];d=b;b=H[b+12>>2];c=(c>>>0)%(b>>>0)|0;H[d+76>>2]=c?c:b;H[a+316>>2]=1;H[a+320>>2]=0;break a}if(b-5>>>0<=4294967291){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=27;H[H[a>>2]+28>>2]=4;zb[H[H[a>>2]>>2]](a)}b=N(H[a+376>>2],H[a+268>>2]);H[a+308>>2]=((b+H[a+64>>2]|0)-1|0)/(b|0);b=N(H[a+376>>2],H[a+272>>2]);b=((b+H[a+68>>2]|0)-1|0)/(b|0)|0;H[a+316>>2]=0;H[a+312>>2]=b;if(H[a+288>>2]<=0){break a}h=a+320|0;while(1){b=H[((e<<2)+a|0)+292>>2];d=H[b+8>>2];H[b+56>>2]=d;f=H[b+12>>2];H[b+60>>2]=f;c=N(d,f);H[b+64>>2]=c;H[b+68>>2]=N(d,H[b+36>>2]);g=K[b+28>>2]%(d>>>0)|0;H[b+72>>2]=g?g:d;d=b;b=K[b+32>>2]%(f>>>0)|0;H[d+76>>2]=b?b:f;if((c+i|0)>=11){b=H[a>>2];H[b+20>>2]=14;zb[H[b>>2]](a)}b:{if((c|0)<=0){break b}d=c-1|0;b=0;f=c&3;if(f){while(1){g=H[a+316>>2];H[a+316>>2]=g+1;H[((g<<2)+a|0)+320>>2]=e;c=c-1|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}if(d>>>0<3){break b}while(1){b=H[a+316>>2];H[a+316>>2]=b+1;H[(b<<2)+h>>2]=e;b=H[a+316>>2];H[a+316>>2]=b+1;H[(b<<2)+h>>2]=e;b=H[a+316>>2];H[a+316>>2]=b+1;H[(b<<2)+h>>2]=e;b=H[a+316>>2];H[a+316>>2]=b+1;H[(b<<2)+h>>2]=e;b=c-5|0;c=c-4|0;if(b>>>0<4294967294){continue}break}}e=e+1|0;if((e|0)>=H[a+288>>2]){break a}i=H[a+316>>2];continue}}b=H[a+240>>2];if((b|0)>0){d=a;a=N(b,H[a+308>>2]);H[d+236>>2]=(a|0)<65535?a:65535}}function FP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;a=xb-16|0;xb=a;H[a+12>>2]=c;H[a+8>>2]=f;H[a+12>>2]=c;H[a+8>>2]=f;a:{b:{c:{while(1){d:{c=H[a+12>>2];if(c>>>0>=d>>>0){break d}j=H[a+8>>2];if(j>>>0>=g>>>0){break d}b=2;f=I[c|0];if(f>>>0>1114111){break b}e:{if(f<<24>>24>=0){G[j>>1]=f;b=c+1|0;break e}if(f>>>0<194){break b}if(f>>>0<=223){if((d-c|0)<2){break c}i=I[c+1|0];if((i&192)!=128){break a}f=i&63|f<<6&1984;if(f>>>0>1114111){break a}G[j>>1]=f;b=c+2|0;break e}if(f>>>0<=239){if((d-c|0)<3){break c}k=I[c+2|0];i=I[c+1|0];f:{g:{if((f|0)!=237){if((f|0)!=224){break g}if((i&224)==160){break f}break a}if((i&224)==128){break f}break a}if((i&192)!=128){break a}}if((k&192)!=128){break a}f=k&63|((i&63)<<6|f<<12);if((f&65535)>>>0>1114111){break a}G[j>>1]=f;b=c+3|0;break e}if(f>>>0>244){break b}b=1;if((d-c|0)<4){break a}k=I[c+2|0];i=I[c+1|0];h:{i:{switch(f-240|0){case 0:if((i+112&255)>>>0>=48){break b}break h;case 4:if((i&240)!=128){break b}break h;default:break i}}if((i&192)!=128){break b}}if((k&192)!=128){break b}c=I[c+3|0];if((c&192)!=128){break b}if((g-j|0)<4){break a}b=2;c=c&63;l=k<<6;f=f&7;if((c|(l&4032|(i<<12&258048|f<<18)))>>>0>1114111){break a}b=i<<2;G[j>>1]=(k>>>4&3|(b&192|f<<8|b&60))+16320|55296;H[a+8>>2]=j+2;G[j+2>>1]=c|l&960|56320;b=H[a+12>>2]+4|0}H[a+12>>2]=b;H[a+8>>2]=H[a+8>>2]+2;continue}break}b=c>>>0>>0;break a}b=1;break a}b=2}H[e>>2]=H[a+12>>2];H[h>>2]=H[a+8>>2];xb=a+16|0;return b|0}function Dda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;t=xb-208|0;xb=t;n=H[a+332>>2];a=H[b+84>>2];b=t;while(1){h=H[a+192>>2];l=G[c+96>>1];f=H[a+64>>2];m=G[c+32>>1];j=N(G[c>>1],H[a>>2])<<13|1024;g=N(H[a+128>>2],G[c+64>>1]);o=j+N(g,-11586)>>11;i=N(H[a+32>>2],G[c+16>>1]);p=N(H[a+160>>2],G[c+80>>1]);q=N(H[a+96>>2],G[c+48>>1]);r=N(H[a+224>>2],G[c+112>>1]);k=q-r|0;s=i-(p+k|0)<<2;H[b+140>>2]=o-s;H[b+40>>2]=o+s;l=N(h,l);f=N(f,m);h=N(l+f|0,6810);f=h+N(f,4209)|0;m=j+N(g,9373)|0;o=f+m|0;s=N(k,2531);p=p<<13;u=s+p|0;q=q+r|0;r=N(q,7791);v=u+(r+N(i,11443)|0)|0;H[b+180>>2]=o-v>>11;H[b>>2]=o+v>>11;f=m-f|0;m=(N(i,1812)-r|0)+u|0;H[b+100>>2]=f-m>>11;H[b+80>>2]=f+m>>11;g=j+N(g,-3580)|0;j=h+N(l,-17828)|0;h=g-j|0;k=(p-s|0)-(k<<12)|0;l=N(q,4815);f=k+(N(i,5260)-l|0)|0;H[b+120>>2]=h-f>>11;H[b+60>>2]=f+h>>11;g=g+j|0;i=N(i,10323)-(k+l|0)|0;H[b+160>>2]=g-i>>11;H[b+20>>2]=g+i>>11;b=b+4|0;a=a+4|0;c=c+2|0;w=w+1|0;if((w|0)!=5){continue}break}a=n+128|0;i=0;b=t;while(1){j=H[b+12>>2];k=H[b+4>>2];g=N(j+k|0,6810);c=H[(i<<2)+d>>2]+e|0;k=g+N(k,4209)|0;f=(H[b>>2]<<13)+131072|0;h=H[b+8>>2];n=H[b+16>>2];l=h-n|0;m=f+N(l,2896)|0;h=N(h+n|0,6476);n=m+h|0;F[c|0]=I[a+(k+n>>>18&1023)|0];F[c+4|0]=I[a+(n-k>>>18&1023)|0];g=g+N(j,-17828)|0;j=m-h|0;F[c+1|0]=I[a+(g+j>>>18&1023)|0];F[c+3|0]=I[a+(j-g>>>18&1023)|0];F[c+2|0]=I[a+(f+N(l,268423872)>>>18&1023)|0];b=b+20|0;i=i+1|0;if((i|0)!=10){continue}break}xb=t+208|0}function tm(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if(!d|(!a|!c)){break a}h=H[d>>2];if((b|0)<=536870911){f=b;f=hma(f<<2,f>>31<<2|f>>>30,3,0);f=e&1?f:f+((b|0)%3|0)|0;g=(f|0)/76|0;i=f-N(g,76)|0;b:{if(!i){break b}i=(i<<24>>24)%4|0;if(!i){break b}f=(4-i&255)+f|0}f=(e&2?0:(g<<1)+2|0)+f|0}else{f=-1}if((f|0)>(h|0)){break a}l=(b|0)/57|0;g=0;c:{if((b|0)<-56){break c}o=e&2;p=(((b|0)/3<<2)%76<<24>>24)/4<<24>>24;f=19;while(1){h=0;m=(j|0)==(l|0);f=m?p:f;if((f|0)>0){while(1){k=I[a+1|0];i=I[a|0];n=I[a+2|0];F[c+3|0]=I[(n&63)+436976|0];F[c|0]=I[(i>>>2|0)+436976|0];k=k<<8;F[c+2|0]=I[((k|n)>>>6&63)+436976|0];F[c+1|0]=I[((k|i<<16)>>>12&63)+436976|0];a=a+3|0;c=c+4|0;h=h+1|0;if((h|0)!=(f|0)){continue}break}}g=(f<<2)+g|0;if(!o){F[c|0]=13;F[c+1|0]=10;g=g+2|0;c=c+2|0}j=j+1|0;if(!m){continue}break}if(!g){g=0;break c}if(e&2){break c}g=g-2|0;c=c-2|0}j=1;h=(b|0)%3|0;d:{if(!h){break d}i=h+1|0;if(i>>>0>>0){break d}e:{f:{if((h|0)>0){b=I[a|0]<<8;if((h|0)!=1){b=b|I[a+1|0]}a=b<<16;break f}a=0;if((h|0)<0){break e}}f=h+1|0;b=f&3;if(h>>>0>=3){l=f&-4;f=0;while(1){F[c+3|0]=65;F[c|0]=I[(a>>>26|0)+436976|0];F[c+2|0]=I[(a>>>14&63)+436976|0];F[c+1|0]=I[(a>>>20&63)+436976|0];c=c+4|0;a=0;f=f+4|0;if((l|0)!=(f|0)){continue}break}}if(!b){break e}f=0;while(1){F[c|0]=I[(a>>>26|0)+436976|0];a=a<<6;c=c+1|0;f=f+1|0;if((b|0)!=(f|0)){continue}break}}if(e&1){g=g+i|0;break d}a=3-h|0;Nb(c,61,(a|0)>1?a:1);g=g+4|0}H[d>>2]=g}return j|0}function st(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;f=xb-16|0;xb=f;c=1;a:{b:{switch(I[a+3|0]){case 0:c=ao(a+8|0,b);break a;case 1:c=0;H[f+12>>2]=0;j=a+8|0;if(!rt(j,b,f+12|0)){break a}H[f+8>>2]=0;c=a+16|0;a=H[b+4>>2];c:{d:{if(c>>>0>>0){break d}d=H[b+8>>2];if(c>>>0>d>>>0|d-c>>>0<2){break d}i=H[b+12>>2]-2|0;H[b+12>>2]=i;if((i|0)<=0){break d}h=H[f+8>>2];if(h>>>0>2147483646){break d}g=1;if(!h){break c}g=a;a=I[c|0]|I[c+1|0]<<8;a=j+((a<<8|a>>>8)&65535)|0;if(g>>>0>a>>>0|a>>>0>d>>>0){break d}d=d-a|0;c=h<<1;if(d>>>0>>0){break d}c=i-c|0;H[b+12>>2]=c;if(d>>>0<2|(c|0)<=0){break d}H[b+12>>2]=c-2;e:{if((c|0)<=2){break e}e=a;c=0;while(1){e=I[e|0]|I[e+1|0]<<8;if(!Hf(a+((e<<8|e>>>8)&65535)|0,b)){break e}e=1;c=c+1|0;if((h|0)==(c|0)){break d}e=a+(c<<1)|0;if(e>>>0>2]){break e}d=H[b+8>>2];if(d>>>0>>0|d-e>>>0<2){break e}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)>0){continue}break}}e=0}g=e}c=g;break a;case 2:c=0;e=a+8|0;if(e>>>0>2]){break a}d=H[b+8>>2];if(d>>>0>>0|d-e>>>0<28){break a}d=H[b+12>>2]-28|0;H[b+12>>2]=d;if((d|0)<=0){break a}if(!ao(e,b)|!(I[a+16|0]|I[a+17|0]<<8)|!(I[a+18|0]|I[a+19|0]<<8)){break a}c=(I[a+20|0]|I[a+21|0]<<8)!=0;break a;case 4:c=Hf(a+8|0,b);break a;case 5:break b;default:break a}}c=0;e=a+8|0;if(e>>>0>2]){break a}d=H[b+8>>2];if(d>>>0>>0|d-e>>>0<20){break a}d=H[b+12>>2]-20|0;H[b+12>>2]=d;if((d|0)<=0){break a}if(!rt(e,b,0)){break a}c=(I[a+16|0]|I[a+17|0]<<8)!=0}xb=f+16|0;return c|0}function ela(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;j=163632;h=163632;a=Xh(a,b);b=I[a+4|0]|I[a+5|0]<<8;if(b){h=a+((b<<8|b>>>8)&65535)|0}a=I[h|0]|I[h+1|0]<<8;a=((a<<8|a>>>8)&65535)>>>0>c>>>0?(N(c,6)+h|0)+2|0:163632;a=I[a+4|0]|I[a+5|0]<<8;if(a){j=((a<<8|a>>>8)&65535)+h|0}k=I[j+2|0]|I[j+3|0]<<8;a:{b:{c:{d:{e:{f:{if(!d){break f}c=65535;if(!k){break e}h=((k<<8|k>>>8)&65535)-1|0;if(!f){while(1){l=H[(i<<2)+e>>2];b=0;a=h;while(1){c=a+b>>>1|0;g=N(c,6)+j|0;g=I[g+4|0]|I[g+5|0]<<8|(I[g+6|0]<<16|I[g+7|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);g:{if(g>>>0<=l>>>0){if((g|0)==(l|0)){break d}b=c+1|0;break g}a=c-1|0}if((a|0)>=(b|0)){continue}break}i=i+1|0;if((i|0)!=(d|0)){continue}break f}}while(1){l=H[(i<<2)+e>>2];b=0;a=h;while(1){c=a+b>>>1|0;g=N(c,6)+j|0;g=I[g+4|0]|I[g+5|0]<<8|(I[g+6|0]<<16|I[g+7|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);h:{if(g>>>0>l>>>0){a=c-1|0;break h}if((g|0)==(l|0)){break d}b=c+1|0}if((a|0)>=(b|0)){continue}break}H[f>>2]=65535;i=i+1|0;if((i|0)!=(d|0)){continue}break}}c=65535;if(!k){break e}a=((k<<8|(k&65280)>>>8)&65535)-1|0;b=0;while(1){d=a+b>>>1|0;e=N(d,6)+j|0;e=I[e+4|0]|I[e+5|0]<<8|(I[e+6|0]<<16|I[e+7|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);i:{if(e>>>0>=1684434037){a=d-1|0;break i}if((e|0)==1684434036){break c}b=d+1|0}if((a|0)>=(b|0)){continue}break}}h=0;if(!f){break a}break b}h=1;if(f){break b}break a}h=0;c=d;if(!f){break a}}H[f>>2]=c}return h|0}function tt(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=H[b+4>>2];d=a+4|0;a:{if(e>>>0>d>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<4){break a}g=H[b+12>>2]-4|0;H[b+12>>2]=g;if((g|0)<=0){break a}d=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(d>>>0<12|a>>>0>>0|(a>>>0>c>>>0|d>>>0>c-a>>>0)){break a}g=g-d|0;H[b+12>>2]=g;if((g|0)<=0){break a}h=I[a+8|0]|I[a+9|0]<<8;d=N((h<<8|h>>>8)&65535,12);if(h){h=e;e=a+12|0;if(h>>>0>e>>>0|c>>>0>>0|d>>>0>c-e>>>0){break a}c=g-d|0;H[b+12>>2]=c;if((c|0)<=0){break a}}c=I[a+10|0]|I[a+11|0]<<8;if(!c){return 1}c=(c<<8|c>>>8)&65535;g=c>>>0>1?c:1;a=(a+d|0)+12|0;c=0;while(1){f=0;b:{if(K[b+4>>2]>a>>>0){break b}d=H[b+8>>2];if(d>>>0>>0){break b}h=d-a|0;if(h>>>0<2){break b}e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break b}d=I[a|0]|I[a+1|0]<<8;d=(d<<8|d>>>8)&65535;if(d>>>0<9|d>>>0>h>>>0){break b}e=e-d|0;H[b+12>>2]=e;if((e|0)<=0){break b}e=H[b+32>>2];f=H[e+12>>2];H[b+4>>2]=f;e=f+H[e+16>>2]|0;H[b+8>>2]=e;c:{if(!(a>>>0>>0&a>>>0>=f>>>0)){H[b+4>>2]=0;H[b+8>>2]=0;break c}H[b+4>>2]=a;f=e-a|0;H[b+8>>2]=(d>>>0>f>>>0?f:d)+a}H[197455]=0;f=st(a,b);d=H[197455];H[197455]=0;d:{if((d|0)==1){break d}d=H[b+32>>2];e=H[d+12>>2];H[b+4>>2]=e;H[b+8>>2]=e+H[d+16>>2];break b}a=$()|0;_()|0;c=H[b+32>>2];f=H[c+12>>2];H[b+4>>2]=f;H[b+8>>2]=f+H[c+16>>2];ea(a|0);X()}if(!f){break a}e=a;a=I[a|0]|I[a+1|0]<<8;a=e+((a<<8|a>>>8)&65535)|0;c=c+1|0;if((g|0)!=(c|0)){continue}break}}return f}function Fn(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=xb-32|0;xb=g;a:{if(I[b+16|0]&16){break a}i=H[b+68>>2];if(!i){break a}j=H[b+80>>2];while(1){if((I[(j+N(h,20)|0)+15|0]&15)!=(c|0)){h=h+1|0;if((i|0)!=(h|0)){continue}break a}break}H[g+28>>2]=0;i=a;h=H[a+84>>2];a=H[a+80>>2];if(!(zb[H[a+164>>2]](i,h,9676,g+28|0,H[a+20>>2])|0)){break a}l=H[g+28>>2];H[b+72>>2]=0;H[b+64>>2]=0;F[b+61|0]=1;F[b+62|0]=0;H[b+84>>2]=H[b+80>>2];H[b+64>>2]=0;k=H[b+68>>2];b:{if(!k){break b}m=(f|0)==-1?0:f;f=g+8|4;h=0;if((e|0)==-1){a=0;while(1){if(!I[b+60|0]){break b}i=H[b+80>>2]+N(h,20)|0;e=I[i+15|0];c:{if(!((e|0)!=(a|0)&(e&15)==(c|0))){Cg(b);break c}H[g+8>>2]=l;G[f+6>>1]=0;G[f+8>>1]=0;G[f+10>>1]=0;G[f+12>>1]=0;H[f>>2]=0;H[f+4>>2]=0;F[g+27|0]=m;F[g+26|0]=d;H[g+16>>2]=H[i+8>>2];H[g+12>>2]=H[i+4>>2];F[g+23|0]=I[i+15|0];lE(b,g+8|0);a=e}h=H[b+64>>2];if(h>>>0>2]){continue}break}break b}a=0;while(1){if(!I[b+60|0]){break b}j=H[b+80>>2]+N(h,20)|0;i=I[j+15|0];d:{if(!((i|0)==(a|0)|(i&15)!=(c|0))){H[g+8>>2]=l;G[f+6>>1]=0;G[f+8>>1]=0;G[f+10>>1]=0;G[f+12>>1]=0;H[f>>2]=0;H[f+4>>2]=0;F[g+27|0]=m;F[g+26|0]=d;H[g+16>>2]=H[j+8>>2];H[g+12>>2]=H[j+4>>2];F[g+23|0]=I[j+15|0];e:{if(h>>>0>=k>>>0){break e}while(1){a=H[b+80>>2]+N(h,20)|0;if((i|0)!=I[a+15|0]|I[a+18|0]!=(e|0)){break e}Cg(b);h=H[b+64>>2];if(h>>>0>=K[b+68>>2]){break e}if(I[b+60|0]){continue}break}}lE(b,g+8|0);a=i;break d}Cg(b)}h=H[b+64>>2];k=H[b+68>>2];if(h>>>0>>0){continue}break}}cf(b)}xb=g+32|0}function jr(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;a:{c=N(b,1348)+a|0;e=H[c+56>>2];if((e|0)<=0){break a}f=H[a+24>>2];if((f|0)<=0){break a}a=H[a+28>>2];m=a+N(f,40)|0;j=b?8:4;n=j|16;g=H[c- -64>>2];i=(g+N(e,44)|0)-44|0;k=(b|0)==1;o=k?14:12;p=(e|0)==2;q=(e|0)==3;r=(e|0)==5;s=(e|0)==6;t=(e|0)==7;u=b?20:16;while(1){if(!(J[a>>1]&n)){b=H[(k?8:4)+a>>2];v=a+u|0;d=G[a+o>>1];f=G[g>>1];h=(d|0)>(f|0);c=(b+H[g+8>>2]|0)-H[g+4>>2]|0;b:{if(!h){break b}c=(b+H[i+8>>2]|0)-H[i+4>>2]|0;if(G[i>>1]<=(d|0)){break b}b=0;c:{c=e;d:{if(c>>>0<=8){b=h?e:0;e:{if((e|0)==1|(d|0)<=(f|0)){break e}c=G[g+44>>1];b=(c|0)<(d|0)?e:1;if(p|(c|0)>=(d|0)){break e}c=G[g+88>>1];b=(c|0)<(d|0)?e:2;if(q|(c|0)>=(d|0)){break e}c=G[g+132>>1];b=(c|0)<(d|0)?e:3;if((e|0)==4|(c|0)>=(d|0)){break e}c=G[g+176>>1];b=(c|0)<(d|0)?e:4;if(r|(c|0)>=(d|0)){break e}c=G[g+220>>1];b=(c|0)<(d|0)?e:5;if(s|(c|0)>=(d|0)){break e}c=G[g+264>>1];b=(c|0)<(d|0)?e:6;if(t|(c|0)>=(d|0)){break e}b=G[g+308>>1]<(d|0)?(e|0)==8?e:8:7}c=N(b,44)+g|0;if(J[c>>1]!=(d&65535)){break d}c=H[c+8>>2];break b}while(1){f=b+c>>1;h=N(f,44)+g|0;l=G[h>>1];f:{if((l|0)>(d|0)){c=f;break f}if((d|0)<=(l|0)){break c}b=f+1|0}if((b|0)<(c|0)){continue}break}}c=N(b,44)+g|0;b=c-44|0;f=H[c-28>>2];if(!f){f=dc(H[c+8>>2]-H[b+8>>2]|0,G[c>>1]-G[b>>1]|0);H[b+16>>2]=f}c=H[b+8>>2]+Rb(d-G[b>>1]|0,f)|0;break b}c=H[h+8>>2]}H[v>>2]=c;G[a>>1]=J[a>>1]|j}a=a+40|0;if(m>>>0>a>>>0){continue}break}}}function YB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-16|0;xb=e;d=H[a+200>>2];if(d&1){a:{if(d&4){Xb(a,268291);mc(a,c);break a}if(!(!b|!(I[b+9|0]&64))){Xb(a,268315);mc(a,c);break a}if(c>>>0<=3){Xb(a,268336);mc(a,c);break a}d=xd(a,c+1|0);H[a+740>>2]=d;if(!d){Xb(a,268357);mc(a,c);break a}vd(a,d,c);xc(a,d,c);F[H[a+740>>2]+c|0]=0;f=mc(a,0);d=H[a+740>>2];if(f){cc(a,d);H[a+740>>2]=0;break a}if((I[d|0]-1&255)>>>0>=2){Xb(a,268399);cc(a,H[a+740>>2]);H[a+740>>2]=0;break a}H[e+8>>2]=0;H[e+12>>2]=1;b:{c:{d:{if(!Jq(d,c,e+8|0,e+12|0)){break d}d=H[e+12>>2];if(d>>>0>=c>>>0){break d}f=H[a+740>>2];g=d+1|0;H[e+12>>2]=g;if(!I[d+f|0]){break c}}Xb(a,268434);break b}if((H[e+8>>2]&392)!=264){Xb(a,268479);break b}H[e+8>>2]=0;if(!(i=Jq(f,c,e+8|0,e+12|0),j=0,k=H[e+12>>2]==(c|0),k?i:j)){Xb(a,268526);break b}if((H[e+8>>2]&392)!=264){Xb(a,268572);break b}d=H[a+740>>2];f=F[d|0];c=d+1|0;d=d+g|0;e:{if(!a|!b){break e}f:{g:{if(f-3>>>0>4294967293){if(!c){break g}g=ac(c);if(!g|I[c|0]==45){break g}if(!Iq(c,g)){break g}if(!d){break f}h=ac(d);if(!h|I[d|0]==45){break f}if(!Iq(d,h)){break f}F[b+220|0]=f;g=g+1|0;f=xd(a,g);H[b+224>>2]=f;if(!f){Xb(a,264103);break e}Ob(f,c,g);f=h+1|0;c=xd(a,f);H[b+228>>2]=c;if(!c){cc(a,H[b+224>>2]);H[b+224>>2]=0;Xb(a,264103);break e}Ob(c,d,f);H[b+8>>2]=H[b+8>>2]|16384;H[b+184>>2]=H[b+184>>2]|256;break e}hc(a,263582);X()}hc(a,263742);X()}hc(a,263847);X()}}cc(a,H[a+740>>2]);H[a+740>>2]=0}xb=e+16|0;return}hc(a,268266);X()} +function PC(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;j=H[a+8>>2];m=H[a+12>>2];i=H[m+36>>2];a:{b:{if((i|0)<=0){k=6;if(!i){break b}break a}h=zb[H[j+4>>2]](j,i)|0;if(!h){k=64;h=0;break a}Nb(h,0,i)}H[h+100>>2]=j;H[h+96>>2]=a;H[h+104>>2]=H[b>>2];if(c){H[h+8>>2]=H[h+8>>2]|1024}c:{l=zb[H[j+4>>2]](j,68)|0;if(!l){k=64;break c}i=0;c=Nb(l,0,68);H[h+128>>2]=c;d:{if((e|0)<=0){break d}a=0;while(1){if(i){break d}i=0;k=(a<<3)+f|0;if(H[k>>2]==1768842098){i=H[k+4>>2];H[c+52>>2]=i}a=a+1|0;if((e|0)!=(a|0)){continue}break}}H[c+60>>2]=-1;a=H[m+48>>2];e:{if(!a){H[b>>2]=H[h+104>>2];break e}k=zb[a|0](H[b>>2],h,d,e,f)|0;H[b>>2]=H[h+104>>2];if(k){break c}}b=H[h+40>>2];f:{if(!b){break f}a=b+(H[h+36>>2]<<2)|0;c=a-4|0;g:{if(b>>>0<=c>>>0){while(1){i=H[c>>2];h:{if(H[i+4>>2]!=1970170211){break h}i:{switch(J[i+8>>1]){case 3:if(J[i+10>>1]!=10){break h}break g;case 0:break i;default:break h}}if(J[i+10>>1]==4){break g}}c=c-4|0;if(b>>>0<=c>>>0){continue}break}}while(1){a=a-4|0;if(b>>>0>a>>>0){break f}i=H[a>>2];if(H[i+4>>2]!=1970170211){continue}break}}H[h+92>>2]=i}H[g>>2]=h;return 0}if(H[h+36>>2]>0){i=0;while(1){c=i<<2;a=H[c+H[h+40>>2]>>2];b=H[H[a>>2]+100>>2];d=H[H[a+12>>2]+8>>2];if(d){zb[d|0](a)}zb[H[b+8>>2]](b,a);H[c+H[h+40>>2]>>2]=0;i=i+1|0;if((i|0)>2]){continue}break}}a=H[h+40>>2];if(a){zb[H[j+8>>2]](j,a)}H[h+36>>2]=0;H[h+40>>2]=0}a=H[m+52>>2];if(a){zb[a|0](h)}if(l){zb[H[j+8>>2]](j,l)}if(h){zb[H[j+8>>2]](j,h)}H[g>>2]=0;return k}function Kr(a){var b=0,c=0,d=0;c=-2;a:{if(!H[a+36>>2]|(!a|!H[a+32>>2])){break a}b=H[a+28>>2];if(!b|H[b>>2]!=(a|0)){break a}b:{c:{d=H[b+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break a;case 0:case 12:case 16:case 34:case 46:case 56:break b;default:break c}}if((d|0)==666){break b}if((d|0)!=42){break a}}H[a+44>>2]=2;H[a+8>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[b+20>>2]=0;H[b+16>>2]=H[b+8>>2];c=H[b+24>>2];if((c|0)<0){c=0-c|0;H[b+24>>2]=c}d=c?42:113;c=(c|0)==2;H[b+4>>2]=c?57:d;d:{if(c){c=yd(0,0,0);break d}c=Yg(0,0,0)}H[a+48>>2]=c;c=0;H[b+40>>2]=0;H[b+5820>>2]=0;G[b+5816>>1]=0;H[b+2872>>2]=243192;H[b+2864>>2]=b+2684;H[b+2860>>2]=243172;H[b+2852>>2]=b+2440;H[b+2848>>2]=243152;H[b+2840>>2]=b+148;YD(b)}if(!c){a=H[a+28>>2];H[a+60>>2]=H[a+44>>2]<<1;b=H[a+68>>2];d=(H[a+76>>2]<<1)-2|0;G[b+d>>1]=0;Nb(b,0,d);H[a+5812>>2]=0;H[a+116>>2]=0;H[a+120>>2]=2;H[a+104>>2]=0;H[a+108>>2]=0;H[a+92>>2]=0;H[a+96>>2]=2;H[a+72>>2]=0;b=N(H[a+132>>2],12);H[a+144>>2]=J[b+237940>>1];H[a+140>>2]=J[b+237936>>1];H[a+128>>2]=J[b+237938>>1];H[a+124>>2]=J[b+237942>>1]}return c}function dia(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;a:{b:{if(!a){break b}H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0;c:{b=H[a+8>>2];f=H[a+12>>2];if((b|0)==(f|0)){break c}a=0;while(1){d:{e:{f:{if((a|0)!=(c|0)){if(F[b+11|0]>=0){c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];break e}c=H[b+4>>2];e=H[b>>2];H[197455]=0;ga(889,a|0,e|0,c|0);c=H[197455];H[197455]=0;if((c|0)!=1){break e}b=$()|0;_()|0;H[d+4>>2]=a;break f}H[197455]=0;ba(891,d|0,b|0);a=H[197455];H[197455]=0;if((a|0)!=1){break d}b=$()|0;_()|0}zr(d);ea(b|0);X()}H[d+4>>2]=a+12}b=b+20|0;if((f|0)==(b|0)){break c}c=H[d+8>>2];a=H[d+4>>2];continue}}c=H[d>>2];if((c|0)!=H[d+4>>2]){H[197455]=0;c=aa(899,20)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}H[c+4>>2]=0;H[c+8>>2]=0;H[c>>2]=245168;H[c+12>>2]=0;H[c+16>>2]=0;H[197455]=0;ba(900,c|0,0);a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[d>>2];f=H[d+4>>2];if((a|0)!=(f|0)){while(1){e=H[a>>2];g=H[a+4>>2];b=I[a+11|0];H[197455]=0;h=e;e=b<<24>>24<0;ga(901,c|0,(e?h:a)|0,(e?g:b)|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}a=a+12|0;if((f|0)!=(a|0)){continue}break}}a=H[c+4>>2];b=H[c+16>>2];F[a|0]=b;F[a+1|0]=b>>>8;F[a+2|0]=b>>>16;F[a+3|0]=b>>>24;g=H[c+4>>2];c=H[d>>2]}if(!c){break b}a=H[d+4>>2];b=c;g:{if((c|0)==(a|0)){break g}while(1){b=a-12|0;if(F[a-1|0]<0){Kb(H[b>>2])}a=b;if((c|0)!=(a|0)){continue}break}b=H[d>>2]}a=b;H[d+4>>2]=c;Kb(a)}xb=d+16|0;return g|0}a=$()|0;_()|0;zr(d);ea(a|0);X()}function Im(a,b){a=a|0;b=b|0;H[a+544>>2]=0;H[a+548>>2]=1072693248;H[a+400>>2]=0;H[a+404>>2]=1072693248;H[a+12>>2]=0;H[a+16>>2]=0;H[a+4>>2]=1;H[a+8>>2]=0;H[a>>2]=b;H[a+552>>2]=0;H[a+556>>2]=0;F[a+388|0]=0;H[a+24>>2]=417500;H[a+20>>2]=417444;H[a+560>>2]=0;H[a+564>>2]=0;H[a+576>>2]=0;H[a+580>>2]=0;H[a+568>>2]=0;H[a+572>>2]=1072693248;H[a+584>>2]=0;H[a+588>>2]=0;H[a+408>>2]=0;H[a+412>>2]=0;H[a+416>>2]=0;H[a+420>>2]=0;H[a+424>>2]=0;H[a+428>>2]=1072693248;H[a+432>>2]=0;H[a+436>>2]=0;H[a+440>>2]=0;H[a+444>>2]=0;H[a+464>>2]=0;H[a+468>>2]=0;H[a+456>>2]=0;H[a+460>>2]=0;H[a+448>>2]=0;H[a+452>>2]=1072693248;H[a+472>>2]=0;H[a+476>>2]=1072693248;H[a+488>>2]=0;H[a+492>>2]=0;H[a+480>>2]=0;H[a+484>>2]=0;H[a+592>>2]=0;H[a+596>>2]=16777215;H[a+496>>2]=0;H[a+500>>2]=1072693248;H[a+512>>2]=0;H[a+516>>2]=0;H[a+504>>2]=0;H[a+508>>2]=0;H[a+520>>2]=0;H[a+524>>2]=1072693248;H[a+536>>2]=0;H[a+540>>2]=0;H[a+528>>2]=0;H[a+532>>2]=0;H[a+616>>2]=0;H[a+600>>2]=0;H[a+604>>2]=1;H[a+608>>2]=0;H[a+612>>2]=2;H[a+640>>2]=0;H[a+644>>2]=0;H[a+648>>2]=1;H[a+652>>2]=1;H[a+656>>2]=0;H[a+660>>2]=0;H[a+664>>2]=1;H[a+668>>2]=1;H[a+680>>2]=1;H[a+632>>2]=0;H[a+636>>2]=1072693248;H[a+672>>2]=0;H[a+676>>2]=0;H[a+624>>2]=0;H[a+628>>2]=1072693248;H[a+56>>2]=7471169;H[a+60>>2]=6357097;H[a- -64>>2]=108;H[a+48>>2]=16777216;H[a+52>>2]=33554436;H[a+36>>2]=0;H[a+40>>2]=0;H[a+44>>2]=400;H[a+28>>2]=-18;H[a+32>>2]=0;H[a+380>>2]=0;H[a+384>>2]=0;return a|0}function qF(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=H[b+4>>2];if(h>>>0>a>>>0){return 0}d=H[b+8>>2];if(d>>>0>>0){return 0}if(d-a>>>0<2){return 0}e=H[b+12>>2];g=e-2|0;H[b+12>>2]=g;f=1;if((g|0)<=0){return 0}g=I[a|0]|I[a+1|0]<<8;a:{if(!g){break a}b:{g=((g<<8|g>>>8)&65535)+c|0;if(g>>>0>>0|d>>>0>>0|d-g>>>0<2){break b}c=e-4|0;H[b+12>>2]=c;if((c|0)<=0){break b}e=I[g|0]|I[g+1|0]<<8;if(!e){break a}f=g+2|0;if(f>>>0>>0|d>>>0>>0){break b}i=d-f|0;d=(e<<8|e>>>8)&65535;f=N(d,6);if(i>>>0>>0){break b}c=c-f|0;H[b+12>>2]=c;if((c|0)<=0){break b}k=d>>>0>1?d:1;h=0;while(1){f=xb-16|0;xb=f;c=(g+N(h,6)|0)+2|0;d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[f+12>>2]=g;H[f+8>>2]=d<<8&16711680|d<<24|(d>>>8&65280|d>>>24);d=H[b+4>>2];c:{if(c>>>0>>0){c=0;break c}e=H[b+8>>2];if(e>>>0>>0){c=0;break c}if(e-c>>>0<6){c=0;break c}j=H[b+12>>2];i=j-6|0;H[b+12>>2]=i;if((i|0)<=0){c=0;break c}i=d;d=c+4|0;if(i>>>0>d>>>0){c=0;break c}if(d>>>0>e>>>0){c=0;break c}if(e-d>>>0<2){c=0;break c}e=j-8|0;H[b+12>>2]=e;c=1;if((e|0)<=0){c=0;break c}e=I[d|0]|I[d+1|0]<<8;if(!e){break c}if(oF(g+((e<<8|e>>>8)&65535)|0,b,f+8|0)){break c}c=H[b+28>>2];if(c>>>0>31){c=0;break c}H[b+28>>2]=c+1;c=0;if(!I[b+24|0]){break c}F[d|0]=0;F[d+1|0]=0;c=1}xb=f+16|0;if(!c){break b}f=1;h=h+1|0;if((k|0)!=(h|0)){continue}break}break a}c=H[b+28>>2];if(c>>>0>31){return 0}H[b+28>>2]=c+1;f=0;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;f=1}return f}function Gg(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;i=xb-32|0;xb=i;H[i+16>>2]=c;H[i+24>>2]=b;c=i+8|0;b=H[d+28>>2];H[c>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;j=aa(3329,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[i+8>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}H[e>>2]=0;c=0;a:{while(1){if(c|(g|0)==(h|0)){break a}b:{if(Ig(i+24|0,i+16|0)){break b}c:{if((zb[H[H[j>>2]+36>>2]](j,F[g|0],0)|0)==37){c=g+1|0;if((h|0)==(c|0)){break b}k=0;b=zb[H[H[j>>2]+36>>2]](j,F[c|0],0)|0;d:{if(!((b|0)==69|(b&255)==48)){c=g;break d}if((g+2|0)==(h|0)){break b}k=b;b=zb[H[H[j>>2]+36>>2]](j,F[g+2|0],0)|0}l=i,m=zb[H[H[a>>2]+36>>2]](a,H[i+24>>2],H[i+16>>2],d,e,f,b,k)|0,H[l+24>>2]=m;g=c+2|0;break c}b=F[g|0];if((b|0)>=0){b=J[H[j+8>>2]+((b&255)<<1)>>1]&8192}else{b=0}if(b){while(1){e:{g=g+1|0;if((h|0)==(g|0)){g=h;break e}b=F[g|0];if((b|0)>=0){b=J[H[j+8>>2]+((b&255)<<1)>>1]&8192}else{b=0}if(b){continue}}break}while(1){if(!pk(i+24|0,i+16|0)){break c}b=rh(i+24|0);if((b|0)>=0){b=(J[H[j+8>>2]+((b&255)<<1)>>1]&8192)!=0}else{b=0}if(!b){break c}ki(i+24|0);continue}}if(((m=j,n=rh(i+24|0),l=H[H[j>>2]+12>>2],zb[l](m|0,n|0)|0)|0)==(zb[H[H[j>>2]+12>>2]](j,F[g|0])|0)){g=g+1|0;ki(i+24|0);break c}H[e>>2]=4}c=H[e>>2];continue}break}H[e>>2]=4}if(Ig(i+24|0,i+16|0)){H[e>>2]=H[e>>2]|2}xb=i+32|0;return H[i+24>>2]}c=$()|0;_()|0;a=H[i+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function LF(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=163632;i=163632;g=Xh(a,b);a=I[g+4|0]|I[g+5|0]<<8;if(a){i=g+((a<<8|a>>>8)&65535)|0}a=I[i|0]|I[i+1|0]<<8;a=((a<<8|a>>>8)&65535)>>>0>c>>>0?(N(c,6)+i|0)+2|0:163632;a=I[a+4|0]|I[a+5|0]<<8;if(a){h=((a<<8|a>>>8)&65535)+i|0}a:{if((d|0)==65535){b=I[h|0]|I[h+1|0]<<8;a=164018;if(!b){break a}a=((b<<8|b>>>8)&65535)+h|0;break a}b=I[h+2|0]|I[h+3|0]<<8;b=((b<<8|b>>>8)&65535)>>>0>d>>>0?(N(d,6)+h|0)+4|0:163632;b=I[b+4|0]|I[b+5|0]<<8;a=164018;if(!b){break a}a=((b<<8|b>>>8)&65535)+h|0}d=65535;b:{c:{b=I[a+4|0]|I[a+5|0]<<8;if(!b){break c}b=(b<<8|b>>>8)&65535;d:{c=I[g+6|0]|I[g+7|0]<<8;if(!c){i=0;g=b>>>0>1?b:1;c=J[81816];j=(c<<8|c>>>8)&65535;while(1){c=b>>>0>i>>>0?(a+(i<<1)|0)+6|0:164016;h=I[c|0]|I[c+1|0]<<8;c=(h<<8|h>>>8)&65535;if((h|0)!=65535){h=c>>>0>>0?N(c,6)+163634|0:163632;h=J[h>>1]|J[h+2>>1]<<16;h=h<<24|h<<8&16711680|(h>>>8&65280|h>>>24)}else{h=0}if((h|0)==(e|0)){break d}i=i+1|0;if((g|0)!=(i|0)){continue}break}break c}h=g+((c<<8|c>>>8)&65535)|0;j=b>>>0>1?b:1;i=0;while(1){c=b>>>0>i>>>0?(a+(i<<1)|0)+6|0:164016;g=I[c|0]|I[c+1|0]<<8;c=(g<<8|g>>>8)&65535;if((g|0)!=65535){g=I[h|0]|I[h+1|0]<<8;g=((g<<8|g>>>8)&65535)>>>0>c>>>0?(h+N(c,6)|0)+2|0:163632;g=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24)}else{g=0}if((g|0)==(e|0)){break d}i=i+1|0;if((j|0)!=(i|0)){continue}break}break c}d=c;i=1;break b}i=0}if(f){H[f>>2]=d}return i}function Y6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=H[a+12>>2];if(c){zb[H[H[c>>2]+12>>2]](c)|0;H[a+12>>2]=0}c=0;d=H[a+8>>2];if(d){f=a,g=zb[H[H[d>>2]+52>>2]](d)|0,H[f+12>>2]=g;c=H[a+8>>2];g=0,h=zb[H[H[c>>2]+24>>2]](c)|0,f=H[H[0]+24>>2],zb[f](g|0,h|0);c=H[a+12>>2];zb[H[H[c>>2]+68>>2]](c,0);c=H[a+12>>2]}d=H[a+16>>2];H[d+20>>2]=c;e=H[a+20>>2];H[(H[H[e>>2]-12>>2]+e|0)+20>>2]=c;e=H[d+20>>2];zb[H[H[d>>2]+4>>2]](d);c=Qb(264);H[197455]=0;aa(1636,c|0)|0;d=H[197455];H[197455]=0;a:{b:{if((d|0)!=1){H[a+16>>2]=c;H[c+20>>2]=e;if(zb[H[H[c>>2]+112>>2]](c,b)|0){c=H[a+16>>2];zb[H[H[c>>2]+120>>2]](c);c=H[a+16>>2];if(!I[c+29|0]){H[a+24>>2]=1;return 1}c:{if(I[c+28|0]){break c}d=H[c+24>>2];if(!d){break c}Kb(d);H[c+24>>2]=0}H[c+4>>2]=0;H[c+8>>2]=0;F[c+29|0]=0;H[c+12>>2]=0;H[c+16>>2]=0;zb[H[H[c>>2]+12>>2]](c)}c=H[a+20>>2];d=zb[H[H[c>>2]+24>>2]](c)|0;c=H[a+20>>2];d:{if(d){d=H[c>>2];e=H[(H[d-12>>2]+c|0)+20>>2];zb[H[d+4>>2]](c);c=Qb(256);H[197455]=0;aa(1637,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break d}H[a+20>>2]=c;H[(H[H[c>>2]-12>>2]+c|0)+20>>2]=e}if(!(zb[H[H[c>>2]+12>>2]](c,b)|0)){break a}b=H[a+20>>2];zb[H[H[b>>2]+20>>2]](b);b=H[a+20>>2];b=H[H[b>>2]-12>>2]+b|0;if(I[b+29|0]){break b}H[a+24>>2]=2;return 1}}a=$()|0;_()|0;Kb(c);ea(a|0);X()}e:{if(I[b+28|0]){break e}a=H[b+24>>2];if(!a){break e}Kb(a);H[b+24>>2]=0}H[b+4>>2]=0;H[b+8>>2]=0;F[b+29|0]=0;H[b+12>>2]=0;H[b+16>>2]=0;zb[H[H[b>>2]+12>>2]](b)}return 0}function E9(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;j=xb-16|0;xb=j;k=H[a+584>>2];g=(c|0)/H[k+8>>2]|0;c=0;i=H[k>>2]==1?b:H[k+12>>2];Id(i,0,g<<1);e=H[a+608>>2];d=H[a+604>>2];a:{b:{c:{if((g|0)>0){if((e|0)<=0){break b}d:{while(1){h=F[d|0];f=h&255;e:{if((h|0)>=0){d=d+1|0;e=e-1|0;if(e){while(1){if(!f|(c|0)>=(g|0)){break e}h=i+(c<<1)|0;G[h>>1]=J[h>>1]|I[d|0]<<8;d=d+1|0;c=c+1|0;f=f-1|0;e=e-1|0;if(e){continue}break}}f=0;e=0;if((c|0)==(g|0)){break d}break b}e=e-2|0;h=d+2|0;f=f-126|0;f:{if(!f|(c|0)>=(g|0)){break f}d=I[d+1|0]<<8;while(1){l=i+(c<<1)|0;G[l>>1]=d|J[l>>1];c=c+1|0;f=f-1|0;if(!f){break f}if((c|0)<(g|0)){continue}break}}d=h}if((c|0)<(g|0)&(e|0)>0){continue}break}if((c|0)!=(g|0)){break b}f=0;if((e|0)<=0){break d}while(1){h=F[d|0];c=h&255;g:{if((h|0)>=0){d=d+1|0;e=e-1|0;if(!e){e=0;break d}while(1){if(!c|(f|0)>=(g|0)){break g}h=i+(f<<1)|0;G[h>>1]=J[h>>1]|I[d|0];d=d+1|0;f=f+1|0;c=c-1|0;e=e-1|0;if(e){continue}break}e=0;break d}e=e-2|0;h=d+2|0;c=c-126|0;h:{if(!c|(f|0)>=(g|0)){break h}d=I[d+1|0];while(1){l=i+(f<<1)|0;G[l>>1]=d|J[l>>1];f=f+1|0;c=c-1|0;if(!c){break h}if((f|0)<(g|0)){continue}break}}d=h}if((f|0)>=(g|0)){break d}if((e|0)>0){continue}break}}c=f;if((g|0)==(c|0)){break c}break b}if(g){break b}}zb[H[k+20>>2]](k,b,g);b=1;break a}b=H[a>>2];f=H[a+628>>2];i=H[a+472>>2];H[j+4>>2]=g-c;H[j>>2]=i;Pb(f,b,277820,j);b=0}H[a+608>>2]=e;H[a+604>>2]=d;xb=j+16|0;return b|0}function qN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=Nb(a,0,656);H[a+56>>2]=0;H[a+48>>2]=0;H[a+52>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;H[a+24>>2]=0;H[a+28>>2]=0;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;H[a>>2]=H[b>>2];H[a+4>>2]=H[b+4>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=H[b+12>>2];H[a+16>>2]=H[b+16>>2];d=H[b+20>>2];H[a+40>>2]=b+48;H[a+36>>2]=b+40;H[a+32>>2]=b+32;H[a+28>>2]=b+28;H[a+24>>2]=b+24;H[a+20>>2]=d;if(c){d=I[b+68|0]|I[b+69|0]<<8;e=I[b+70|0];H[a+540>>2]=b+1508;f=H[7599];H[a+52>>2]=H[7598];H[a+56>>2]=f;F[a+48|0]=c;F[a+47|0]=e;F[a+45|0]=d;F[a+46|0]=d>>>8;H[a+604>>2]=H[b+1348>>2];H[a+584>>2]=H[b+1352>>2];H[a+580>>2]=H[b+1356>>2];H[a+588>>2]=H[b+1472>>2];H[a+644>>2]=H[b+1468>>2];H[a+556>>2]=H[b+1364>>2];H[a+572>>2]=H[b+1368>>2];H[a+612>>2]=H[b+1372>>2];H[a+616>>2]=H[b+1376>>2];H[a+648>>2]=H[b+1496>>2];H[a+652>>2]=H[b+1500>>2];H[a+608>>2]=H[b+1360>>2];return}F[a+44|0]=I[b+64|0];c=I[b+65|0]|I[b+66|0]<<8;d=I[b+67|0];e=H[7599];H[a+52>>2]=H[7598];H[a+56>>2]=e;F[a+48|0]=0;F[a+47|0]=d;F[a+45|0]=c;F[a+46|0]=c>>>8;c=H[b+108>>2];H[a+532>>2]=c;H[a+540>>2]=c+3104;H[a+536>>2]=H[b+768>>2];H[a+560>>2]=H[b+732>>2];H[a+576>>2]=H[b+748>>2];H[a+568>>2]=H[b+740>>2];H[a+556>>2]=H[b+728>>2];H[a+572>>2]=H[b+744>>2];c=H[b+736>>2];H[a+544>>2]=b+584;H[a+564>>2]=c;F[a+548|0]=I[b+593|0];H[a+588>>2]=H[b+760>>2];H[a+596>>2]=H[b+772>>2];H[a+600>>2]=H[b+776>>2]}function EK(a){a=a|0;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;i=H[a+12>>2];j=H[a+200>>2];c=H[a+196>>2];n=H[H[a>>2]+16>>2];a:{while(1){b=k;k=b+1|0;g=lD(i,k);if(g){break a}g=21;h=c+4|0;if(h>>>0>j>>>0){break a}d=H[i+88>>2]+(b<<5)|0;H[d+8>>2]=0;H[d+12>>2]=0;l=I[c+1|0];e=l|I[c|0]<<8;G[d+4>>1]=e;b=I[c+3|0]|I[c+2|0]<<8;H[d>>2]=b;if((b|0)>=(n|0)){break a}f=l&1?4:2;m=e&8;b=f+2|0;b:{if(m){break b}b=f+4|0;if(e&64){break b}b=f|e>>>4&8}if(b+h>>>0>j>>>0){break a}b=e&1;c:{if(e&2){if(b){b=I[c+4|0]|I[c+5|0]<<8;H[d+8>>2]=(b<<8|b>>>8)<<16>>16;b=I[c+6|0]|I[c+7|0]<<8;f=(b<<8|b>>>8)<<16>>16;b=c+8|0;break c}H[d+8>>2]=F[c+4|0];f=F[c+5|0];b=c+6|0;break c}if(b){H[d+8>>2]=I[c+5|0]|I[c+4|0]<<8;f=I[c+7|0]|I[c+6|0]<<8;b=c+8|0;break c}H[d+8>>2]=I[c+4|0];f=I[c+5|0];b=c+6|0}H[d+12>>2]=f;d:{if(m){c=b+2|0;e=0;b=I[b|0]|I[b+1|0]<<8;g=(b<<8|b>>>8)<<16>>16<<2;f=g;h=0;break d}if(e&64){c=I[b+2|0]|I[b+3|0]<<8;f=(c<<8|c>>>8)<<16>>16<<2;c=I[b|0]|I[b+1|0]<<8;g=(c<<8|c>>>8)<<16>>16<<2;c=b+4|0;e=0;h=0;break d}if(!(e&128)){e=0;g=65536;c=b;f=65536;h=0;break d}c=I[b+6|0]|I[b+7|0]<<8;f=(c<<8|c>>>8)<<16>>16<<2;c=I[b+4|0]|I[b+5|0]<<8;e=(c<<8|c>>>8)<<16>>16<<2;c=I[b+2|0]|I[b+3|0]<<8;h=(c<<8|c>>>8)<<16>>16<<2;c=I[b|0]|I[b+1|0]<<8;g=(c<<8|c>>>8)<<16>>16<<2;c=b+8|0}H[d+16>>2]=g;H[d+28>>2]=f;H[d+24>>2]=h;H[d+20>>2]=e;if(l&32){continue}break}H[i+84>>2]=k;b=H[H[a+24>>2]+8>>2];H[a+196>>2]=c;H[a+164>>2]=(c+b|0)-j;g=0}return g|0}function mG(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=H[a>>2];a:{if(c){break a}j=a-20|0;while(1){g=H[j>>2];if(!g){return 163632}b:{c:{c=oc(1,28);if(c){e=xb-48|0;xb=e;H[c+20>>2]=0;H[c+24>>2]=0;kd(g);b=dd(g,1752003704);if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=H[b+12>>2];Wb(b);if(H[b+4>>2]?d:0){H[b+4>>2]=0}H[c+20>>2]=b;H[e+8>>2]=0;H[e+12>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;F[e+24|0]=0;H[e+28>>2]=0;H[e+32>>2]=0;H[e>>2]=0;H[e+4>>2]=0;b=kd(g);F[e+40|0]=1;H[e+36>>2]=b;k=c,l=hG(e,dd(g,1213612370)),H[k+24>>2]=l;k=c,l=wl(g),H[k+16>>2]=l;b=H[c+20>>2];b=H[(b?b:163632)+16>>2];i=b&-2;d=Pi(g- -64|0);d=I[d+34|0]|I[d+35|0]<<8;f=(d<<8|d>>>8)&65535;if(i>>>0>>0){f=b>>>2|0}H[c>>2]=f;b=ds(g+56|0);b=I[b+4|0]|I[b+5|0]<<8;h=(b<<8|b>>>8)&65535;H[c+4>>2]=h;b=h;d=H[c>>2];if(b>>>0>>0){b=d}f=i-(f<<2)|0;i=f>>>0>=b-d<<1>>>0;if(!i){b=d+(f>>>1|0)|0}if(!(i&d>>>0<=h>>>0)){H[c+4>>2]=b}if(d){h=b}else{H[c>>2]=0;H[c+4>>2]=0;h=0}f=h+((d+(f>>>1|0)|0)-b&2147483647)|0;H[c+8>>2]=f;b=H[g+32>>2];if((b|0)==-1){b=De(g);f=H[c+8>>2]}H[c+12>>2]=b>>>0>f>>>0?b:f;xb=e+48|0;b=H[a>>2];H[a>>2]=b?b:c;if(!b){break a}b=H[c+20>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}H[c+20>>2]=0;b=H[c+24>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}Kb(c);break b}c=163632;b=H[a>>2];H[a>>2]=b?b:163632;if(b){break b}break a}ha(0)|0;_()|0;Zb();X()}c=H[a>>2];if(!c){continue}break}}return c}function Ve(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=xb-128|0;xb=c;a:{b:{c:{d:{if(J[a+138>>1]==1){if(!(I[a+13|0]&64|J[a+90>>1]!=6)){H[c+52>>2]=c+126;H[c+48>>2]=c+124;Cc(a,530,c+48|0);d=J[c+124>>1];if(!d){Pb(H[a+628>>2],H[a>>2],271954,0);a=0;break a}b=H[a+56>>2];if(b>>>0<0-d>>>0){b=((b+d|0)-1>>>0)/(d>>>0)|0}else{b=0}g=N(b,d);e=J[a+84>>1];b=gma(g,0,e,0);f=(yb|0)!=0;e:{f:{g:{if(e){if(f){d=H[a>>2];b=H[a+628>>2];H[c+16>>2]=273482;Pb(b,d,274538,c+16|0);e=J[a+84>>1];b=gma(e,0,g,0);f=(yb|0)!=0;break g}if(!(b&7)){break f}if(!f){break c}b=H[a>>2];a=H[a+628>>2];H[c+32>>2]=273482;Pb(a,b,274538,c+32|0);b=0;break c}if(b&7){break c}}if(!e){break e}}if(!f){break e}b=H[a>>2];a=H[a+628>>2];H[c>>2]=273482;Pb(a,b,274538,c);b=0}a=b>>>3|0;break b}g=J[a+98>>1];b=gma(H[a+56>>2],0,g,0);d=yb;if(!g|!d){break d}d=H[a>>2];b=H[a+628>>2];H[c+112>>2]=273482;Pb(b,d,274538,c+112|0);b=0;break d}b=H[a+56>>2]}d=b;e=J[a+84>>1];b=gma(b,0,e,0);f=(yb|0)!=0;h:{i:{j:{k:{if(e){if(f){g=H[a>>2];b=H[a+628>>2];H[c+80>>2]=273482;Pb(b,g,274538,c+80|0);e=J[a+84>>1];b=gma(e,0,d,0);f=(yb|0)!=0;break k}if(!(b&7)){break j}if(!f){break h}b=H[a>>2];a=H[a+628>>2];H[c+96>>2]=273482;Pb(a,b,274538,c+96|0);b=0;break h}if(b&7){break h}}if(!e){break i}}if(!f){break i}b=H[a>>2];a=H[a+628>>2];H[c+64>>2]=273482;Pb(a,b,274538,c- -64|0);b=0}a=b>>>3|0;break a}a=(b>>>3|0)+1|0;break a}a=(b>>>3|0)+1|0}a=((a>>>0)/J[c+124>>1]<<1)+a|0}xb=c+128|0;return a|0}function fs(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=H[a>>2];a:{if(c){break a}j=a-48|0;while(1){g=H[j>>2];if(!g){return 163632}b:{c:{c=oc(1,28);if(c){e=xb-48|0;xb=e;H[c+20>>2]=0;H[c+24>>2]=0;kd(g);b=dd(g,1986884728);if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=H[b+12>>2];Wb(b);if(H[b+4>>2]?d:0){H[b+4>>2]=0}H[c+20>>2]=b;H[e+8>>2]=0;H[e+12>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;F[e+24|0]=0;H[e+28>>2]=0;H[e+32>>2]=0;H[e>>2]=0;H[e+4>>2]=0;b=kd(g);F[e+40|0]=1;H[e+36>>2]=b;k=c,l=hG(e,dd(g,1448493394)),H[k+24>>2]=l;k=c,l=wl(g),H[k+16>>2]=l;b=H[c+20>>2];b=H[(b?b:163632)+16>>2];i=b&-2;d=Oi(g+92|0);d=I[d+34|0]|I[d+35|0]<<8;f=(d<<8|d>>>8)&65535;if(i>>>0>>0){f=b>>>2|0}H[c>>2]=f;b=ds(g+56|0);b=I[b+4|0]|I[b+5|0]<<8;h=(b<<8|b>>>8)&65535;H[c+4>>2]=h;b=h;d=H[c>>2];if(b>>>0>>0){b=d}f=i-(f<<2)|0;i=f>>>0>=b-d<<1>>>0;if(!i){b=d+(f>>>1|0)|0}if(!(i&d>>>0<=h>>>0)){H[c+4>>2]=b}if(d){h=b}else{H[c>>2]=0;H[c+4>>2]=0;h=0}f=h+((d+(f>>>1|0)|0)-b&2147483647)|0;H[c+8>>2]=f;b=H[g+32>>2];if((b|0)==-1){b=De(g);f=H[c+8>>2]}H[c+12>>2]=b>>>0>f>>>0?b:f;xb=e+48|0;b=H[a>>2];H[a>>2]=b?b:c;if(!b){break a}b=H[c+20>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}H[c+20>>2]=0;b=H[c+24>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}Kb(c);break b}c=163632;b=H[a>>2];H[a>>2]=b?b:163632;if(b){break b}break a}ha(0)|0;_()|0;Zb();X()}c=H[a>>2];if(!c){continue}break}}return c}function Afa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;H[a+4>>2]=0;if((b|0)!=80){d=H[a>>2];H[d+20>>2]=13;H[d+24>>2]=80;H[H[a>>2]+28>>2]=b;zb[H[H[a>>2]>>2]](a)}if((c|0)!=488){b=H[a>>2];H[b+20>>2]=22;H[b+24>>2]=488;H[H[a>>2]+28>>2]=c;zb[H[H[a>>2]>>2]](a)}b=H[a>>2];c=H[a+12>>2];Nb(a+4|0,0,484);H[a+16>>2]=1;H[a+12>>2]=c;H[a>>2]=b;YC(a);H[a+308>>2]=0;H[a+24>>2]=0;H[a+8>>2]=0;H[a+164>>2]=0;H[a+168>>2]=0;H[a+172>>2]=0;H[a+176>>2]=0;H[a+180>>2]=0;H[a+184>>2]=0;H[a+188>>2]=0;H[a+192>>2]=0;H[a+196>>2]=0;H[a+200>>2]=0;H[a+204>>2]=0;H[a+208>>2]=0;b=zb[H[H[a+4>>2]>>2]](a,0,172)|0;H[a+460>>2]=b;H[b+96>>2]=0;H[b+100>>2]=0;H[b+28>>2]=1189;H[b+8>>2]=1190;H[b+4>>2]=1191;H[b>>2]=1192;H[b+104>>2]=0;H[b+36>>2]=1189;H[b+40>>2]=1189;H[b+108>>2]=0;H[b+112>>2]=0;H[b+44>>2]=1189;H[b+48>>2]=1189;H[b+116>>2]=0;H[b+120>>2]=0;H[b+52>>2]=1189;H[b+56>>2]=1189;H[b+124>>2]=0;H[b+128>>2]=0;H[b+60>>2]=1189;H[b+132>>2]=0;H[b+64>>2]=1189;H[b+136>>2]=0;H[b+140>>2]=0;H[b+68>>2]=1189;H[b+72>>2]=1189;H[b+76>>2]=1189;H[b+80>>2]=1189;H[b+144>>2]=0;H[b+148>>2]=0;H[b+84>>2]=1189;H[b+152>>2]=0;H[b+156>>2]=0;H[b+160>>2]=0;H[b+92>>2]=1189;H[b+32>>2]=1193;H[b+88>>2]=1193;H[a+436>>2]=0;H[a+144>>2]=0;H[a+216>>2]=0;b=H[a+460>>2];H[b+164>>2]=0;H[b+24>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;b=zb[H[H[a+4>>2]>>2]](a,0,28)|0;H[a+456>>2]=b;H[b+24>>2]=1;H[b+16>>2]=0;H[b+20>>2]=0;H[b+12>>2]=1196;H[b+8>>2]=1197;H[b+4>>2]=1198;H[b>>2]=1199;H[a+20>>2]=200}function Tja(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=oc(1,36);if(g){a:{b:{c:{d:{e:{c=H[a+56>>2];if((c|0)<=0){break e}e=H[a+60>>2];c=c-1|0;f:{g:{while(1){d=b+c>>>1|0;f=H[e+N(d,36)>>2];h:{if(f>>>0>=1886545255){c=d-1|0;break h}if((f|0)==1886545254){break g}b=d+1|0}if((b|0)<=(c|0)){continue}break}c=0;break f}c=H[(e+N(d,36)|0)+28>>2]}b=H[a+56>>2];H[g>>2]=c;if((b|0)<=0){break e}e=H[a+60>>2];c=b-1|0;b=0;i:{while(1){d=b+c>>>1|0;f=H[e+N(d,36)>>2];j:{if(f>>>0<=1651275622){b=H[(e+N(d,36)|0)+28>>2];if((f|0)==1651275622){break i}b=d+1|0;break j}c=d-1|0}if((b|0)<=(c|0)){continue}break}b=0}c=b;b=H[a+56>>2];H[g+4>>2]=c;if((b|0)<=0){break c}e=H[a+60>>2];c=b-1|0;b=0;while(1){d=b+c>>>1|0;f=H[e+N(d,36)>>2];k:{if(f>>>0<=1633842790){b=H[(e+N(d,36)|0)+28>>2];if((f|0)==1633842790){break d}b=d+1|0;break k}c=d-1|0}if((b|0)<=(c|0)){continue}break}b=0;break d}H[g+4>>2]=0;b=0}c=b;b=H[a+56>>2];H[g+8>>2]=c;c=0;if((b|0)<=0){H[g+12>>2]=0;b=0;break a}e=H[a+60>>2];b=b-1|0;while(1){d=b+c>>>1|0;f=H[e+N(d,36)>>2];l:{if(f>>>0<=1886614630){c=H[(e+N(d,36)|0)+28>>2];if((f|0)==1886614630){break b}c=d+1|0;break l}b=d-1|0}if((b|0)>=(c|0)){continue}break}}c=0}b=H[a+56>>2];H[g+12>>2]=c;if((b|0)>0){d=H[a+60>>2];c=b-1|0;b=0;while(1){a=b+c>>>1|0;e=H[d+N(a,36)>>2];m:{if(e>>>0<=1667654002){b=H[(d+N(a,36)|0)+28>>2];if((e|0)==1667654002){break a}b=a+1|0;break m}c=a-1|0}if((b|0)<=(c|0)){continue}break}}b=0}H[g+16>>2]=b}return g|0}function r_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=H[e>>2];m=H[e+4>>2];if((g|0)!=(m|0)){l=a+29|0;while(1){h=H[g+4>>2];i=+(h|0);j=H[g>>2];k=+(j|0);f=H[a+156>>2];a:{b:{if(f){if(Qd(f,k,i)){break b}F[H[H[a>>2]-12>>2]+l|0]=1;break a}f=H[a+208>>2];if(!f){break b}zb[H[H[f>>2]+32>>2]](f,k,i)}f=H[a+120>>2];H[f+672>>2]=j;H[f+676>>2]=h}h=H[g+4>>2];i=+(h|0);j=H[g+8>>2];k=+(j|0);f=H[a+156>>2];c:{d:{if(f){if(jd(f,k,i)){break d}F[H[H[a>>2]-12>>2]+l|0]=1;break c}f=H[a+208>>2];if(!f){break d}zb[H[H[f>>2]+36>>2]](f,k,i)}f=H[a+120>>2];H[f+672>>2]=j;H[f+676>>2]=h}h=H[g+12>>2];i=+(h|0);j=H[g+8>>2];k=+(j|0);f=H[a+156>>2];e:{f:{if(f){if(jd(f,k,i)){break f}F[H[H[a>>2]-12>>2]+l|0]=1;break e}f=H[a+208>>2];if(!f){break f}zb[H[H[f>>2]+36>>2]](f,k,i)}f=H[a+120>>2];H[f+672>>2]=j;H[f+676>>2]=h}h=H[g+12>>2];i=+(h|0);j=H[g>>2];k=+(j|0);f=H[a+156>>2];g:{h:{if(f){if(jd(f,k,i)){break h}F[H[H[a>>2]-12>>2]+l|0]=1;break g}f=H[a+208>>2];if(!f){break h}zb[H[H[f>>2]+36>>2]](f,k,i)}f=H[a+120>>2];H[f+672>>2]=j;H[f+676>>2]=h}g=g+16|0;if((m|0)!=(g|0)){continue}break}}g=H[a+156>>2];i:{if(g){if(hf(g)){break i}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break i}g=H[a+208>>2];if(!g){break i}zb[H[H[g>>2]+48>>2]](g)}Zy(a+124|0,c);g=H[a+208>>2];if(g){zb[H[H[g>>2]+456>>2]](g,b,c,d,e);b=H[a+208>>2]}else{b=0}if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,2);a=H[a+208>>2];zb[H[H[a>>2]+56>>2]](a)}}function Wm(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,r=0,s=0;h=xb-16|0;e=1;a:{b:{c:{switch(H[a>>2]){case 1:break a;case 0:break b;default:break c}}while(1){i=e;while(1){f=N(i,12)+b|0;d=f-12|0;if(H[f>>2]>2]){H[h+8>>2]=H[f+8>>2];g=H[f+4>>2];H[h>>2]=H[f>>2];H[h+4>>2]=g;H[f+8>>2]=H[d+8>>2];g=H[d+4>>2];H[f>>2]=H[d>>2];H[f+4>>2]=g;H[d+8>>2]=H[h+8>>2];f=H[h+4>>2];H[d>>2]=H[h>>2];H[d+4>>2]=f;i=i-1|0;if(i){continue}}break}e=e+1|0;j=H[a>>2];if(e>>>0>>0){continue}break}e=1;if(j>>>0<2){break b}k=j-1|0;m=H[b>>2];h=0;d=1;while(1){f=H[N(d,12)+b>>2]-m|0;d:{if(!((d|0)==(k|0)|(f|0)>(c|0))){f=d;break d}i=0;g=(d|0)==(k|0)&(c|0)>=(f|0);f=g+d|0;e=h;e:{if(h>>>0>=f>>>0){break e}e=(d+g|0)-h|0;n=e&3;l=0;d=h;if(e-1>>>0>=3){o=e&-4;e=0;while(1){g=N(d,12)+b|0;p=H[g>>2];H[g>>2]=0;q=H[g+12>>2];H[g+12>>2]=0;r=H[g+24>>2];H[g+24>>2]=0;s=H[g+36>>2];H[g+36>>2]=0;i=s+(((i+p|0)+q|0)+r|0)|0;d=d+4|0;e=e+4|0;if((o|0)!=(e|0)){continue}break}}e=f;if(!n){break e}while(1){e=N(d,12)+b|0;g=H[e>>2];H[e>>2]=0;d=d+1|0;i=g+i|0;l=l+1|0;if((l|0)!=(n|0)){continue}break}e=f}H[N(h,12)+b>>2]=(i|0)/(e|0);if(f>>>0>=k>>>0){break d}h=f+1|0;m=H[N(h,12)+b>>2]}d=f+1|0;if(j>>>0>d>>>0){continue}break}e=1;if(j>>>0<=1){break b}d=1;while(1){c=N(d,12)+b|0;if(H[c>>2]){h=H[c+4>>2];f=N(e,12)+b|0;H[f>>2]=H[c>>2];H[f+4>>2]=h;H[f+8>>2]=H[c+8>>2];j=H[a>>2];e=e+1|0}d=d+1|0;if(j>>>0>d>>>0){continue}break}}H[a>>2]=e}}function Z5(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=xb-32|0;xb=f;j=f+8|0;a=j;H[a>>2]=0;H[a+4>>2]=0;H[f>>2]=0;H[f+4>>2]=0;a:{i=H[d+4>>2];k=H[d+8>>2];if((i|0)!=(k|0)){while(1){b:{c:{d:{e:{f:{g:{a=H[i>>2];switch((zb[H[H[a>>2]+8>>2]](a)|0)-1|0){case 4:break c;case 3:break d;case 2:break e;case 1:break f;case 0:break g;default:break b}}Qd(b,M[a+8>>3],M[a+16>>3]);g=M[a+8>>3];M[f>>3]=g;h=M[a+16>>3];M[f+8>>3]=h;break b}l=Bp((M[a+16>>3]-h)/(M[a+8>>3]-g))*180/3.14+-90;d=H[e+56>>2];h:{if(!d){break h}if(zb[H[H[d>>2]+8>>2]](d)|0){break h}d=H[H[e+56>>2]+88>>2];if(!d){break h}d=cz(f+16|0,d+4|0);g=M[e+16>>3];H[197455]=0;m=$a(1748,a|0,c|0,d|0,f|0,j|0,+(l+180),+g)|0;n=H[197455];H[197455]=0;if((n|0)==1){a=$()|0;_()|0;oe(d);ea(a|0);X()}oe(d);if(!m){break h}Qd(b,M[f>>3],M[f+8>>3])}g=M[a+8>>3];M[f>>3]=g;h=M[a+16>>3];M[f+8>>3]=h;a=H[e+60>>2];i:{if(!a){break i}if(zb[H[H[a>>2]+8>>2]](a)|0){break i}a=H[H[e+60>>2]+88>>2];if(!a){break i}a=cz(f+16|0,a+4|0);g=M[e+16>>3];H[197455]=0;$a(1748,a|0,c|0,a|0,f|0,j|0,+l,+g)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}oe(a);h=M[f+8>>3];g=M[f>>3]}jd(b,g,h);break b}ti(b,M[a+8>>3],M[a+16>>3],M[a+24>>3],M[a+32>>3],M[a+40>>3],M[a+48>>3]);break b}Je(b,M[a+8>>3],M[a+16>>3],M[a+24>>3],M[a+32>>3],M[a+40>>3],M[a+48>>3]);break b}hf(b)}i=i+4|0;if((k|0)!=(i|0)){continue}break}}xb=f+32|0;return}b=$()|0;_()|0;oe(a);ea(b|0);X()}function cfa(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=H[a+480>>2];H[a+136>>2]=H[c+16>>2];H[a+132>>2]=H[c+20>>2];a:{b:{switch(H[a+88>>2]){case 0:if(H[a+120>>2]==3){H[c+4>>2]=1218;return}H[c+4>>2]=1219;return;case 1:b=H[a+120>>2];H[c+48>>2]=0;H[c+4>>2]=(b|0)==3?1220:1221;if(!H[c+28>>2]){VC(a)}if(H[c+52>>2]){break a}d=H[a+120>>2];if((d|0)<=0){break a}h=H[a+480>>2];c=0;while(1){i=(c<<2)+h|0;g=H[i+32>>2];b=0;c:{d:{if(!c){break d}while(1){e=(b<<2)+h|0;if((g|0)!=H[e+32>>2]){b=b+1|0;if((c|0)!=(b|0)){continue}break d}break}e=H[e+52>>2];if(e){break c}}g=(g<<9)-512|0;d=0;e=zb[H[H[a+4>>2]>>2]](a,1,1024)|0;while(1){b=0;while(1){j=((d<<6)+e|0)+(b<<2)|0;f=N(I[((d<<4)+b|0)+255664|0],-510);e:{if((f|0)<=-65026){f=0-((-65025-f|0)/(g|0)|0)|0;break e}f=(f+65025|0)/(g|0)|0}H[j>>2]=f;b=b+1|0;if((b|0)!=16){continue}break}d=d+1|0;if((d|0)!=16){continue}break}d=H[a+120>>2]}H[i+52>>2]=e;c=c+1|0;if((d|0)>(c|0)){continue}break};break a;case 2:H[c+84>>2]=0;H[c+4>>2]=1222;f:{if(H[c+68>>2]){d=H[a+120>>2];break f}if(H[a+120>>2]<=0){break a}e=(H[a+112>>2]<<1)+4|0;b=0;while(1){k=c+(b<<2)|0,l=zb[H[H[a+4>>2]+4>>2]](a,1,e)|0,H[k+68>>2]=l;b=b+1|0;d=H[a+120>>2];if((b|0)<(d|0)){continue}break}}if((d|0)<=0){break a}d=(H[a+112>>2]<<1)+4|0;b=0;while(1){Mc(H[(c+(b<<2)|0)+68>>2],d);b=b+1|0;if((b|0)>2]){continue}break};break a;default:break b}}b=H[a>>2];H[b+20>>2]=49;zb[H[b>>2]](a)}}function ri(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;g=J[a+32>>1];e=H[a+40>>2];c=H[a+36>>2];a:{if((e|0)==(c|0)){i=-1;break a}e=e-c>>1;h=e&3;i=-1;if(e-1>>>0>=3){t=e&-4;e=0;while(1){j=g&65535;k=J[c+(d<<1)>>1];l=j>>>0>>0?j:k;p=d|1;m=J[c+(p<<1)>>1];n=l>>>0>>0?l:m;q=d|2;o=J[c+(q<<1)>>1];f=n>>>0>>0?n:o;r=d|3;g=J[c+(r<<1)>>1];i=f>>>0>g>>>0?r:n>>>0>o>>>0?q:l>>>0>m>>>0?p:j>>>0>k>>>0?d:i;g=f>>>0>>0?f:g;d=d+4|0;e=e+4|0;if((t|0)!=(e|0)){continue}break}}if(!h){break a}while(1){e=g&65535;f=J[c+(d<<1)>>1];i=e>>>0>f>>>0?d:i;g=e>>>0>>0?e:f;d=d+1|0;s=s+1|0;if((h|0)!=(s|0)){continue}break}}h=g&65535;b:{c:{e=a+24|0;c=H[e>>2];if(!c){break c}f=e;d=c;while(1){j=h>>>0>K[d+16>>2];f=j?f:d;d=H[(j<<2)+d>>2];if(d){continue}break}if(!((e|0)==(f|0)|h>>>0>2])){wy(a,g&65535);c=H[a+24>>2]}if(!c){break c}f=a+24|0;d:{while(1){e:{e=H[c+16>>2];f:{if(e>>>0>h>>>0){d=H[c>>2];if(d){break f}e=c;break b}if(e>>>0>=h>>>0){break d}f=c+4|0;d=H[c+4>>2];if(!d){break e}c=f}f=c;c=d;continue}break}e=c;c=f;break b}e=c;c=f;break b}c=e}if(!H[c>>2]){d=Qb(24);H[d+16>>2]=h;H[d+8>>2]=e;H[d>>2]=0;H[d+4>>2]=0;H[d+20>>2]=b;H[c>>2]=d;b=H[H[a+20>>2]>>2];if(b){H[a+20>>2]=b;d=H[c>>2]}Og(H[a+24>>2],d);H[a+28>>2]=H[a+28>>2]+1}if((i|0)!=-1){f=H[a+40>>2];b=H[a+36>>2]+(i<<1)|0;c=b+2|0;e=f-c|0;if((c|0)!=(f|0)){$c(b,c,e)}H[a+40>>2]=b+e}if(J[a+32>>1]==(g&65535)){G[a+32>>1]=g+1}}function gG(a,b){var c=0,d=0,e=0,f=0;a:{if(K[b+4>>2]>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<4){break a}d=H[b+12>>2]-4|0;H[b+12>>2]=d;if((I[a|0]|I[a+1|0]<<8)!=256|(d|0)<=0){break a}if(!Bt(a+4|0,b,a)){break a}d=a+8|0;if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<4){break a}c=H[b+12>>2]-4|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=F[a+8|0];c=I[a+11|0]|(I[a+9|0]<<16|e<<24|I[a+10|0]<<8);e=(c|0)!=0&(e|0)<0;b:{if(!(e|!c)){if(is(a+c|0,b)){break b}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0;F[d+2|0]=0;F[d+3|0]=0;break b}if(e){break a}}d=a+12|0;if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<4){break a}c=H[b+12>>2]-4|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=F[a+12|0];c=I[a+15|0]|(I[a+13|0]<<16|e<<24|I[a+14|0]<<8);e=(c|0)!=0&(e|0)<0;c:{if(!(e|!c)){if(is(a+c|0,b)){break c}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0;F[d+2|0]=0;F[d+3|0]=0;break c}if(e){break a}}d=a+16|0;if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<4){break a}c=H[b+12>>2]-4|0;H[b+12>>2]=c;if((c|0)<=0){break a}f=F[a+16|0];c=I[a+19|0]|(I[a+17|0]<<16|f<<24|I[a+18|0]<<8);e=(c|0)!=0&(f|0)<0;f=!e;if(e|!c){break a}f=1;if(is(a+c|0,b)){break a}f=0;a=H[b+28>>2];if(a>>>0>31){break a}H[b+28>>2]=a+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0;F[d+2|0]=0;F[d+3|0]=0;f=1}return f}function Ee(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{c:{d=I[a|0]|I[a+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break b;case 0:break c;default:break a}}c=I[a+2|0]|I[a+3|0]<<8;if(!c){return}d=a+4|0;f=(c<<8|c>>>8)&65535;g=f&1;c=H[b>>2];h=f-1|0;d:{if(!h){a=d;break d}i=f&65534;a=d;while(1){j=c;c=I[a|0]|I[a+1|0]<<8;j=j|1<<((c<<8|c>>>8)>>>4);c=I[a+2|0]|I[a+3|0]<<8;c=j|1<<((c<<8|c>>>8)>>>4);a=a+4|0;e=e+2|0;if((i|0)!=(e|0)){continue}break}}if(g){a=I[a|0]|I[a+1|0]<<8;c=1<<((a<<8|a>>>8)>>>4)|c}H[b>>2]=c;g=f&3;c=H[b+4>>2];e:{if(h>>>0<3){a=d;break e}i=f&65532;e=0;a=d;while(1){c=1<>2]=c;a=H[b+8>>2];if(h>>>0>=3){e=f&65532;c=0;while(1){a=1<<((I[d|0]|I[d+1|0]<<8)>>>1)|a|1<<((I[d+2|0]|I[d+3|0]<<8)>>>1)|1<<((I[d+4|0]|I[d+5|0]<<8)>>>1)|1<<((I[d+6|0]|I[d+7|0]<<8)>>>1);d=d+8|0;c=c+4|0;if((e|0)!=(c|0)){continue}break}}e=f&3;if(e){c=0;while(1){a=1<<((I[d|0]|I[d+1|0]<<8)>>>1)|a;d=d+2|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}H[b+8>>2]=a;return}c=I[a+2|0]|I[a+3|0]<<8;if(!c){return}d=0;if(!eF(a+4|0,b)){return}c=(c<<8|c>>>8)&65535;c=c>>>0>1?c:1;while(1){d=d+1|0;if((c|0)==(d|0)){break a}e=I[a+2|0]|I[a+3|0]<<8;if(eF(((e<<8|e>>>8)&65535)>>>0>d>>>0?(N(d,6)+a|0)+4|0:164024,b)){continue}break}}}function dT(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;g=xb-32|0;xb=g;H[g+24>>2]=b;a:{b:{if(!(H[d+4>>2]&1)){H[g>>2]=-1;b=zb[H[H[a>>2]+16>>2]](a,b,c,d,e,g)|0;H[g+24>>2]=b;c:{switch(H[g>>2]){case 1:F[f|0]=1;break a;case 0:break b;default:break c}}F[f|0]=1;H[e>>2]=4;break a}a=H[d+28>>2];H[g>>2]=a;H[a+4>>2]=H[a+4>>2]+1;H[197455]=0;h=aa(3329,g|0)|0;a=H[197455];H[197455]=0;d:{e:{f:{g:{if((a|0)!=1){a=H[g>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}a=H[d+28>>2];H[g>>2]=a;H[a+4>>2]=H[a+4>>2]+1;H[197455]=0;b=aa(3415,g|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break g}a=H[g>>2];d=H[a+4>>2]-1|0;H[a+4>>2]=d;if((d|0)==-1){zb[H[H[a>>2]+8>>2]](a)}H[197455]=0;ba(3416,g|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){b=$()|0;_()|0;break d}H[197455]=0;ba(3417,g|12,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;d=g+24|0;a=Aa(3418,d|0,c|0,g|0,d|0,h|0,e|0,1)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}F[f|0]=(a|0)==(g|0);b=H[g+24>>2];while(1){d=_b(d-12|0);if((g|0)!=(d|0)){continue}break}break a}b=$()|0;_()|0;a=H[g>>2];c=H[a+4>>2]-1|0;H[a+4>>2]=c;if((c|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break d}b=$()|0;_()|0;a=H[g>>2];c=H[a+4>>2]-1|0;H[a+4>>2]=c;if((c|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break d}b=$()|0;_()|0;_b(g);break d}b=$()|0;_()|0;while(1){d=_b(d-12|0);if((g|0)!=(d|0)){continue}break}}ea(b|0);X()}F[f|0]=0}xb=g+32|0;return b|0}function HS(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;g=xb-32|0;xb=g;H[g+24>>2]=b;a:{b:{if(!(H[d+4>>2]&1)){H[g>>2]=-1;b=zb[H[H[a>>2]+16>>2]](a,b,c,d,e,g)|0;H[g+24>>2]=b;c:{switch(H[g>>2]){case 1:F[f|0]=1;break a;case 0:break b;default:break c}}F[f|0]=1;H[e>>2]=4;break a}a=H[d+28>>2];H[g>>2]=a;H[a+4>>2]=H[a+4>>2]+1;H[197455]=0;h=aa(3342,g|0)|0;a=H[197455];H[197455]=0;d:{e:{f:{g:{if((a|0)!=1){a=H[g>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}a=H[d+28>>2];H[g>>2]=a;H[a+4>>2]=H[a+4>>2]+1;H[197455]=0;b=aa(3445,g|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break g}a=H[g>>2];d=H[a+4>>2]-1|0;H[a+4>>2]=d;if((d|0)==-1){zb[H[H[a>>2]+8>>2]](a)}H[197455]=0;ba(3446,g|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){b=$()|0;_()|0;break d}H[197455]=0;ba(3447,g|12,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break f}H[197455]=0;d=g+24|0;a=Aa(3448,d|0,c|0,g|0,d|0,h|0,e|0,1)|0;b=H[197455];H[197455]=0;if((b|0)==1){break e}F[f|0]=(a|0)==(g|0);b=H[g+24>>2];while(1){d=Sc(d-12|0);if((g|0)!=(d|0)){continue}break}break a}b=$()|0;_()|0;a=H[g>>2];c=H[a+4>>2]-1|0;H[a+4>>2]=c;if((c|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break d}b=$()|0;_()|0;a=H[g>>2];c=H[a+4>>2]-1|0;H[a+4>>2]=c;if((c|0)==-1){zb[H[H[a>>2]+8>>2]](a)}break d}b=$()|0;_()|0;Sc(g);break d}b=$()|0;_()|0;while(1){d=Sc(d-12|0);if((g|0)!=(d|0)){continue}break}}ea(b|0);X()}F[f|0]=0}xb=g+32|0;return b|0}function iW(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;g=H[a+240>>2];if(g){zb[H[H[g>>2]+184>>2]](g,b)}c=H[b>>2];a:{if((c|0)==H[b+4>>2]){break a}j=a+180|0;g=a+172|0;while(1){i=N(h,12);d=i+c|0;f=H[d>>2];b:{if((f|0)==H[d+4>>2]){break b}e=G[f+2>>1];c=G[f>>1];d=H[a+240>>2];c:{if(d){zb[H[H[d>>2]+32>>2]](d,+(c|0),+(e|0));break c}if(I[a+188|0]){H[a+180>>2]=c;H[a+172>>2]=c;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break c}d=g;d:{if((c|0)>=H[d>>2]){d=j;if((c|0)<=H[d>>2]){break d}}H[d>>2]=c}if((e|0)>2]){H[a+176>>2]=e;break c}if((e|0)<=H[a+184>>2]){break c}H[a+184>>2]=e}d=H[a+168>>2];G[d+132>>1]=c;G[d+134>>1]=e;d=1;c=H[b>>2];f=i+c|0;e=H[f>>2];if(H[f+4>>2]-e>>>0>4){while(1){c=(d<<2)+e|0;e=G[c+2>>1];f=G[c>>1];c=H[a+240>>2];e:{if(c){zb[H[H[c>>2]+36>>2]](c,+(f|0),+(e|0));break e}if(I[a+188|0]){H[a+180>>2]=f;H[a+172>>2]=f;F[a+188|0]=0;H[a+184>>2]=e;H[a+176>>2]=e;break e}c=g;f:{if((f|0)>=H[c>>2]){c=j;if((f|0)<=H[c>>2]){break f}}H[c>>2]=f}if((e|0)>2]){H[a+176>>2]=e;break e}if((e|0)<=H[a+184>>2]){break e}H[a+184>>2]=e}c=H[a+168>>2];G[c+132>>1]=f;G[c+134>>1]=e;c=H[b>>2];f=i+c|0;e=H[f>>2];d=d+1|0;if(d>>>0>2]-e>>2>>>0){continue}break}}d=H[a+240>>2];if(!d){break b}zb[H[H[d>>2]+48>>2]](d);c=H[b>>2]}h=h+1|0;if(h>>>0<(H[b+4>>2]-c|0)/12>>>0){continue}break}b=H[a+240>>2];if(!b){break a}zb[H[H[b>>2]+52>>2]](b,3);a=H[a+240>>2];zb[H[H[a>>2]+56>>2]](a)}}function eh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{f=c-b|0;if(H[a+20>>2]==2|f>>>0<2){break a}i=H[a+84>>2];g=H[(i+N(b,20)|0)+8>>2];d=g;e=b+1|0;b:{if(e>>>0>=c>>>0){break b}h=f-2|0;j=(b^-1)+c&3;c:{if(!j){d=g;break c}f=0;d=g;while(1){k=H[(N(e,20)+i|0)+8>>2];d=d>>>0>>0?d:k;e=e+1|0;f=f+1|0;if((j|0)!=(f|0)){continue}break}}if(h>>>0<=2){break b}while(1){f=N(e,20)+i|0;h=H[f+8>>2];d=d>>>0>>0?d:h;h=H[f+28>>2];d=d>>>0>>0?d:h;h=H[f+48>>2];d=d>>>0>>0?d:h;f=H[f+68>>2];d=d>>>0>>0?d:f;e=e+4|0;if((e|0)!=(c|0)){continue}break}}while(1){e=b;if(e){b=e-1|0;if((g|0)==H[(N(b,20)+i|0)+8>>2]){continue}}break}d:{e:{f:{g=H[a+72>>2];if(g>>>0<=c>>>0){break f}while(1){b=N(c,20)+i|0;if(H[b-12>>2]!=H[b+8>>2]){break f}c=c+1|0;if((g|0)!=(c|0)){continue}break}c=g;break e}if((c|0)!=(g|0)){break d}}b=H[a+64>>2];f=H[a+68>>2];if(b>>>0>=f>>>0){break d}g=(N(g,20)+i|0)-12|0;h=H[a+80>>2];while(1){a=h+N(b,20)|0;j=H[a+8>>2];if((j|0)!=H[g>>2]){break d}if((d|0)!=(j|0)){H[a+4>>2]=H[a+4>>2]&-4}H[a+8>>2]=d;b=b+1|0;if((f|0)!=(b|0)){continue}break}}if(c>>>0<=e>>>0){break a}b=e+1|0;if(c-e&1){a=N(e,20)+i|0;if(H[a+8>>2]!=(d|0)){H[a+4>>2]=H[a+4>>2]&-4}H[a+8>>2]=d;e=e+1|0}if((b|0)==(c|0)){break a}while(1){a=N(e,20)+i|0;if(H[a+8>>2]!=(d|0)){H[a+4>>2]=H[a+4>>2]&-4}H[a+8>>2]=d;a=N(e+1|0,20)+i|0;if(H[a+8>>2]!=(d|0)){H[a+4>>2]=H[a+4>>2]&-4}H[a+8>>2]=d;e=e+2|0;if((e|0)!=(c|0)){continue}break}}}function pY(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;i=xb-400|0;xb=i;e=H[c+4>>2];f=H[b+4>>2];c=H[c>>2];b=H[b>>2];j=H[a>>2];a=H[a+4>>2];H[i+20>>2]=a<<2;H[i+16>>2]=j<<2;H[i+12>>2]=f<<2;H[i+8>>2]=b<<2;k=e<<2;H[i+4>>2]=k;g=c<<2;H[i>>2]=g;H[i+24>>2]=H[d+208>>2];b=H[d+212>>2];H[i+28>>2]=b;j=a>>6;a:{b:{c=e>>6;a=H[d+176>>2];e=f>>6;c:{d:{if(!((c|0)>=(a|0)&(e|0)>=(a|0))){b=b>>8;break d}b=b>>8;if((a|0)>(j|0)){break d}if((a|0)<=(b|0)){break c}}a=i;f=c;c=H[d+172>>2];if((f|0)>=(c|0)|(c|0)<=(e|0)|((c|0)<=(j|0)|(b|0)>=(c|0))){break b}}H[d+212>>2]=k;H[d+208>>2]=g;break a}while(1){f=H[a+24>>2];k=H[a+8>>2];e=H[a>>2];c=f+(N(k,-3)+(e<<1)|0)|0;b=c>>31;e:{if((b^c)-b>>>0>=129){j=H[a+12>>2];c=H[a+28>>2];b=H[a+4>>2];break e}c=H[a+28>>2];j=H[a+12>>2];b=H[a+4>>2];h=c+(N(j,-3)+(b<<1)|0)|0;g=h>>31;if((g^h)-g>>>0>128){break e}h=(e+(f<<1)|0)+N(H[a+16>>2],-3)|0;g=h>>31;if((g^h)-g>>>0>128){break e}h=((c<<1)+b|0)+N(H[a+20>>2],-3)|0;g=h>>31;if((g^h)-g>>>0>128){break e}Pp(d,e,b);if((a|0)==(i|0)){break a}a=a-24|0;continue}H[a+48>>2]=f;H[a+52>>2]=c;e=e+k|0;H[a+8>>2]=e>>1;b=b+j|0;H[a+12>>2]=b>>1;h=f;f=H[a+16>>2];g=h+f|0;H[a+40>>2]=g>>1;h=e;e=f+k|0;f=h+e|0;H[a+16>>2]=f>>2;e=e+g|0;H[a+32>>2]=e>>2;h=c;c=H[a+20>>2];k=h+c|0;H[a+44>>2]=k>>1;H[a+24>>2]=e+f>>3;e=b;b=c+j|0;c=e+b|0;H[a+20>>2]=c>>2;b=b+k|0;H[a+36>>2]=b>>2;H[a+28>>2]=b+c>>3;a=a+24|0;continue}}xb=i+400|0;return 0}function A8(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=H[a+584>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)<=34907){if((b|0)==262){break j}if((b|0)==347){break m}if((b|0)!=530){break d}H[d+932>>2]=1;return zb[H[d+896>>2]](a,530,c)|0}n:{switch(b-34908|0){case 3:break e;case 2:break f;case 1:break g;case 0:break h;default:break n}}switch(b-65537|0){case 1:break k;case 0:break l;case 2:break i;default:break d}}e=H[c>>2];if(e){break c}return 0}H[d+920>>2]=H[c>>2];return 1}c=H[c>>2];H[d+924>>2]=c;d=H[a+12>>2];b=d&-16385;H[a+12>>2]=b;if(!(J[a+138>>1]!=1|J[a+90>>1]!=6|(c|0)!=1)){b=d|16384;H[a+12>>2]=b}if(H[a+508>>2]>0){if(b&1024){b=pg(a)}else{b=-1}H[a+508>>2]=b}b=1;if(H[a+588>>2]<=0){break a}f=a,g=Ve(a),H[f+588>>2]=g;return 1}b=zb[H[d+896>>2]](a,262,c)|0;d=H[a+12>>2];c=d&-16385;H[a+12>>2]=c;if(!(J[a+138>>1]!=1|J[a+90>>1]!=6|H[H[a+584>>2]+924>>2]!=1)){c=d|16384;H[a+12>>2]=c}if(H[a+508>>2]>0){if(c&1024){c=pg(a)}else{c=-1}H[a+508>>2]=c}if(H[a+588>>2]<=0){break a}f=a,g=Ve(a),H[f+588>>2]=g;return b|0}H[d+928>>2]=H[c>>2];return 1}H[d+936>>2]=H[c>>2];break b}Lk(d+940|0,H[c>>2]);break b}H[d+944>>2]=H[c>>2];break b}Lk(d+948|0,H[c>>2]);break b}return zb[H[d+896>>2]](a,b,c)|0}JB(d+912|0,H[c+4>>2],e);H[d+916>>2]=e;H[a+48>>2]=H[a+48>>2]|4}c=rd(a,b);if(!c){return 0}b=1;c=J[c+12>>1];d=(c>>>3&8188)+a|0;H[d+40>>2]=H[d+40>>2]|1<>2]=H[a+12>>2]|8}return b|0}function Lba(a,b,c){a=a|0;b=b|0;c=c|0;var d=O(0),e=O(0),f=O(0),g=O(0),h=0,i=0,j=O(0),k=O(0),l=O(0),m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=O(0),v=O(0),w=O(0),x=O(0),y=O(0),z=O(0),A=O(0);h=a;while(1){i=H[(m<<2)+b>>2]+c|0;n=I[i+7|0];o=I[i|0];d=O(n+o|0);p=I[i+4|0];q=I[i+3|0];e=O(p+q|0);g=O(d+e);r=I[i+6|0];s=I[i+1|0];f=O(r+s|0);t=I[i+5|0];i=I[i+2|0];j=O(t+i|0);k=O(f+j);L[h+16>>2]=g-k;L[h>>2]=O(k+g)+O(-1024);d=O(d-e);e=O(O(d+O(f-j))*O(.7071067690849304));L[h+24>>2]=d-e;L[h+8>>2]=d+e;d=O(o-n|0);g=O(s-r|0);f=O(i-t|0);j=O(O(g+f)*O(.7071067690849304));e=O(d-j);f=O(f+O(q-p|0));k=O(d+g);g=O(O(f-k)*O(.3826834261417389));f=O(O(f*O(.5411961078643799))+g);L[h+20>>2]=e+f;L[h+12>>2]=e-f;d=O(j+d);e=O(O(k*O(1.3065630197525024))+g);L[h+28>>2]=d-e;L[h+4>>2]=d+e;h=h+32|0;m=m+1|0;if((m|0)!=8){continue}break}h=7;while(1){g=L[a>>2];f=L[a+224>>2];d=O(g+f);j=L[a+96>>2];k=L[a+128>>2];e=O(j+k);l=O(d+e);u=L[a+32>>2];v=L[a+192>>2];w=O(u+v);x=L[a+64>>2];y=L[a+160>>2];z=O(x+y);A=O(w+z);L[a+128>>2]=l-A;L[a>>2]=A+l;d=O(d-e);e=O(O(d+O(w-z))*O(.7071067690849304));L[a+192>>2]=d-e;L[a+64>>2]=d+e;d=O(g-f);g=O(u-v);f=O(x-y);l=O(O(g+f)*O(.7071067690849304));e=O(d-l);f=O(f+O(j-k));j=O(d+g);g=O(O(f-j)*O(.3826834261417389));f=O(O(f*O(.5411961078643799))+g);L[a+160>>2]=e+f;L[a+96>>2]=e-f;d=O(d+l);e=O(O(j*O(1.3065630197525024))+g);L[a+224>>2]=d-e;L[a+32>>2]=d+e;b=h;h=h-1|0;a=a+4|0;if(b){continue}break}}function JL(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;j=xb-16|0;xb=j;d=H[a+28>>2];e=H[a+16>>2];k=H[a+24>>2];H[j+12>>2]=0;a:{b:{g=k+1|0;c:{if(g>>>0<=d>>>0){l=H[a+32>>2];break c}H[a+36>>2]=b;l=Ub(b,4,d,g,H[a+32>>2],j+12|0);H[a+32>>2]=l;if(H[j+12>>2]){break b}H[a+28>>2]=g}g=l;if(k){e=e+10|0;while(1){h=I[e+7|0]|I[e+8|0]<<8|(I[e+9|0]<<16|I[e+10|0]<<24);o=I[e|0];p=I[e+1|0];q=I[e+2|0];d:{e:{f:{b=I[e+3|0]|I[e+4|0]<<8|(I[e+5|0]<<16|I[e+6|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(!b){break f}d=b+H[a+16>>2]|0;b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);m=d+7|0;i=0;while(1){if(b>>>0<=i>>>0){break f}d=b;b=b+i>>>1|0;n=m+(b<<2)|0;f=n-3|0;f=I[f+1|0]<<8|I[f|0]<<16|I[f+2|0];if(f>>>0>c>>>0){continue}i=b+1|0;b=d;if(f+I[n|0]>>>0>>0){continue}break}break e}b=h<<8&16711680|h<<24|(h>>>8&65280|h>>>24);if(!b){break d}d=b+H[a+16>>2]|0;b=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(!b){break d}m=d+7|0;i=0;while(1){g:{d=b+i>>>1|0;h=m+N(d,5)|0;f=h-3|0;f=I[f+1|0]<<8|I[f|0]<<16|I[f+2|0];h:{if(f>>>0>c>>>0){b=d;break h}if(c>>>0<=f>>>0){break g}i=d+1|0}if(b>>>0>i>>>0){continue}break d}break}if(!(I[h+1|0]|I[h|0]<<8)){break d}}H[g>>2]=p<<8|o<<16|q;g=g+4|0}e=e+11|0;k=k-1|0;if(k){continue}break}}H[g>>2]=0;break a}l=0}xb=j+16|0;return l|0}function kv(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;l=H[a>>2];if(a){b=H[a+204>>2];H[a+204>>2]=b-1;if((b|0)<=1){k=H[a>>2];b=H[a+16>>2];a:{if(!b){break a}while(1){i=H[((h<<2)+a|0)+20>>2];c=H[i>>2];b:{if(fc(H[c+8>>2],9957)|!(F[c|0]&1)){break b}c=H[i+16>>2];if(!c){break b}while(1){f=H[c+8>>2];c:{if(!f){break c}d=H[f+96>>2];if(!d){break c}e=H[f+128>>2];b=H[e+64>>2];H[e+64>>2]=b-1;if((b|0)>1){break c}b=H[d+16>>2];if(!b){break c}g=d+16|0;e=H[d+8>>2];while(1){if((f|0)!=H[b+8>>2]){b=H[b+4>>2];if(b){continue}break c}break}c=H[b>>2];j=c?c+4|0:g;g=H[b+4>>2];H[j>>2]=g;H[(g?g:d+20|0)>>2]=c;zb[H[e+8>>2]](e,b);Gj(e,f,d);c=H[i+16>>2]}if(c){continue}break}b=H[a+16>>2]}h=h+1|0;if(h>>>0>>0){continue}break}if(!b){break a}h=0;while(1){i=H[((h<<2)+a|0)+20>>2];d:{if(!(F[H[i>>2]]&1)){break d}c=H[i+16>>2];if(!c){break d}while(1){f=H[c+8>>2];e:{if(!f){break e}d=H[f+96>>2];if(!d){break e}e=H[f+128>>2];b=H[e+64>>2];H[e+64>>2]=b-1;if((b|0)>1){break e}b=H[d+16>>2];if(!b){break e}g=d+16|0;e=H[d+8>>2];while(1){if((f|0)!=H[b+8>>2]){b=H[b+4>>2];if(b){continue}break e}break}c=H[b>>2];j=c?c+4|0:g;g=H[b+4>>2];H[j>>2]=g;H[(g?g:d+20|0)>>2]=c;zb[H[e+8>>2]](e,b);Gj(e,f,d);c=H[i+16>>2]}if(c){continue}break}b=H[a+16>>2]}h=h+1|0;if(h>>>0>>0){continue}break}if(!b){break a}while(1){b=H[((b<<2)+a|0)+16>>2];if(a){nv(a,b)}b=H[a+16>>2];if(b){continue}break}}zb[H[k+8>>2]](k,a)}}Kb(l)}function Zaa(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a=J[a+26>>1];c=N(a,g);d=e>>>0<8;j=h<<2;while(1){h=e;if(!d){while(1){H[b>>2]=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);g=a+i|0;H[b+4>>2]=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=a+g|0;H[b+8>>2]=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=a+g|0;H[b+12>>2]=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=a+g|0;H[b+16>>2]=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=a+g|0;H[b+20>>2]=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=a+g|0;H[b+24>>2]=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=a+g|0;H[b+28>>2]=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);b=b+32|0;i=a+g|0;h=h-8|0;if(h>>>0>7){continue}break}}f=f-1|0;a:{switch(h-1|0){case 6:H[b>>2]=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);i=a+i|0;b=b+4|0;case 5:H[b>>2]=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);i=a+i|0;b=b+4|0;case 4:H[b>>2]=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);i=a+i|0;b=b+4|0;case 3:H[b>>2]=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);i=a+i|0;b=b+4|0;case 2:H[b>>2]=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);i=a+i|0;b=b+4|0;case 1:H[b>>2]=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);i=a+i|0;b=b+4|0;case 0:H[b>>2]=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24);i=a+i|0;b=b+4|0;break;default:break a}}i=c+i|0;b=b+j|0;if(f){continue}break}}}function qE(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;j=xb-16|0;xb=j;H[j+12>>2]=0;k=H[a+4>>2];p=H[k+8>>2];e=3;a:{if(d?0:c){break a}F[a|0]=0;if(K[k+3112>>2]<=b>>>0|(J[k+3120>>1]!=(c|0)?c:0)){break a}g=H[k+3116>>2];o=H[g+(b<<3)>>2];h=o+1|0;f=Ub(p,1,H[a+20>>2]<<2,h<<2,H[a+24>>2],j+12|0);H[a+24>>2]=f;e=H[j+12>>2];if(e){break a}H[a+20>>2]=h;b:{if(!h){break b}q=g+(b<<3)|0;h=0;if(!c){while(1){c:{if(h){e=h<<2;if(K[(e+H[q+4>>2]|0)-4>>2]>=K[k+3124>>2]){e=3;break a}H[e+f>>2]=0;break c}H[f>>2]=65536}e=(h|0)==(o|0);h=h+1|0;if(!e){continue}break b}}while(1){d:{if(!h){H[f>>2]=65536;break d}n=h<<2;e=H[(n+H[q+4>>2]|0)-4>>2];if(e>>>0>=K[k+3124>>2]){e=3;break a}g=H[k+3128>>2];H[f+n>>2]=65536;r=g+(e<<2)|0;e=0;while(1){f=65536;i=H[r>>2]+N(e,12)|0;g=H[i+4>>2];l=H[i>>2];e:{if((g|0)<(l|0)){break e}m=H[i+8>>2];if(!g|((g|0)>(m|0)|!(!g|((m|0)<=0|(l|0)>=0)))){break e}f=0;i=H[(e<<2)+d>>2];if((i|0)<(l|0)|(i|0)>(m|0)){break e}f=65536;if((g|0)==(i|0)){break e}if((g|0)>(i|0)){f=dc(i-l|0,g-l|0);break e}f=dc(m-i|0,m-g|0)}g=Rb(H[H[a+24>>2]+n>>2],f);f=H[a+24>>2];H[n+f>>2]=g;e=e+1|0;if((e|0)!=(c|0)){continue}break}}e=(h|0)!=(o|0);h=h+1|0;if(e){continue}break}}H[a+8>>2]=b;if(c){b=c<<2;f=Ub(p,1,H[a+12>>2]<<2,b,H[a+16>>2],j+12|0);H[a+16>>2]=f;e=H[j+12>>2];if(e){break a}Ob(f,d,b)}F[a|0]=1;H[a+12>>2]=c;e=H[j+12>>2]}xb=j+16|0;return e|0}function GP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;a=xb-16|0;xb=a;H[a+12>>2]=c;H[a+8>>2]=f;H[a+12>>2]=c;H[a+8>>2]=f;c=H[a+12>>2];a:{b:{while(1){if(c>>>0>=d>>>0){f=0;break a}f=2;b=J[c>>1];if(b>>>0>1114111){break a}c:{d:{if(b>>>0<=127){f=1;c=H[a+8>>2];if((g-c|0)<=0){break a}H[a+8>>2]=c+1;F[c|0]=b;break d}if(b>>>0<=2047){c=H[a+8>>2];if((g-c|0)<2){break b}H[a+8>>2]=c+1;F[c|0]=b>>>6|192;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b&63|128;break d}if(b>>>0<=55295){c=H[a+8>>2];if((g-c|0)<3){break b}H[a+8>>2]=c+1;F[c|0]=b>>>12|224;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b>>>6&63|128;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b&63|128;break d}if(b>>>0<=56319){f=1;if((d-c|0)<4){break a}i=J[c+2>>1];if((i&64512)!=56320){break c}if((g-H[a+8>>2]|0)<4){break a}f=b&960;if((i&1023|(b<<10&64512|f<<10))+65536>>>0>1114111){break c}H[a+12>>2]=c+2;c=H[a+8>>2];H[a+8>>2]=c+1;j=c;c=(f>>>6|0)+1|0;F[j|0]=c>>>2|240;f=H[a+8>>2];H[a+8>>2]=f+1;F[f|0]=c<<4&48|b>>>2&15|128;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=i>>>6&15|b<<4&48|128;b=H[a+8>>2];H[a+8>>2]=b+1;F[b|0]=i&63|128;break d}if(b>>>0<57344){break a}c=H[a+8>>2];if((g-c|0)<3){break b}H[a+8>>2]=c+1;F[c|0]=b>>>12|224;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b>>>6&63|128;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b&63|128}c=H[a+12>>2]+2|0;H[a+12>>2]=c;continue}break}f=2;break a}f=1}H[e>>2]=H[a+12>>2];H[h>>2]=H[a+8>>2];xb=a+16|0;return f|0}function qca(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;f=a;while(1){d=H[(l<<2)+b>>2]+c|0;h=I[d+4|0];g=I[d+3|0];e=h+g|0;i=I[d+7|0];j=I[d|0];k=i+j|0;m=e+k|0;n=I[d+5|0];o=I[d+2|0];p=n+o|0;q=I[d+6|0];r=I[d+1|0];d=q+r|0;s=p+d|0;H[f+16>>2]=m-s<<2;H[f>>2]=(m+s<<2)-4096;e=k-e|0;k=d-p|0;d=N(e+k|0,4433)+1024|0;H[f+24>>2]=d+N(k,-15137)>>11;H[f+8>>2]=d+N(e,6270)>>11;d=g-h|0;h=j-i|0;g=N(d+h|0,-7373);e=r-q|0;k=e+d|0;i=o-n|0;m=i+h|0;j=N(k+m|0,9633)+1024|0;n=g+N(d,2446)|0;d=j+N(k,-16069)|0;H[f+28>>2]=n+d>>11;j=j+N(m,-3196)|0;k=N(i,16819);i=N(e+i|0,-20995);H[f+20>>2]=j+(k+i|0)>>11;H[f+12>>2]=d+(i+N(e,25172)|0)>>11;H[f+4>>2]=j+(g+N(h,12299)|0)>>11;f=f+32|0;l=l+1|0;if((l|0)!=8){continue}break}b=7;while(1){f=H[a+224>>2];d=H[a>>2];c=f+d|0;l=H[a+128>>2];h=H[a+96>>2];g=l+h|0;e=(c+g|0)+2|0;i=H[a+160>>2];j=H[a+64>>2];k=i+j|0;m=H[a+192>>2];n=H[a+32>>2];o=m+n|0;p=k+o|0;H[a+128>>2]=e-p>>2;H[a>>2]=e+p>>2;g=c-g|0;e=o-k|0;c=N(g+e|0,4433)+16384|0;H[a+192>>2]=c+N(e,-15137)>>15;H[a+64>>2]=c+N(g,6270)>>15;c=h-l|0;f=d-f|0;d=N(c+f|0,-7373);l=n-m|0;e=l+c|0;h=j-i|0;i=h+f|0;g=N(e+i|0,9633)+16384|0;j=d+N(c,2446)|0;c=g+N(e,-16069)|0;H[a+224>>2]=j+c>>15;g=g+N(i,-3196)|0;e=N(h,16819);h=N(h+l|0,-20995);H[a+160>>2]=g+(e+h|0)>>15;H[a+96>>2]=c+(h+N(l,25172)|0)>>15;H[a+32>>2]=g+(d+N(f,12299)|0)>>15;c=b;b=c-1|0;a=a+4|0;if(c){continue}break}}function oL(a){a=a|0;var b=0,c=0,d=0;if(a){c=H[a+100>>2];b=H[a+540>>2];a:{if(!b){break a}d=H[b+80>>2];if(d){zb[d|0](a)}d=H[b+100>>2];if(d){zb[d|0](a)}d=H[b+120>>2];if(!d){break a}zb[d|0](a);zb[H[b+124>>2]](a)}if(I[a+848|0]){if(H[a+828>>2]){nd(H[a+104>>2],a+828|0)}H[a+840>>2]=0;H[a+832>>2]=0;H[a+836>>2]=0}nd(H[a+104>>2],a+808|0);H[a+820>>2]=0;H[a+824>>2]=0;H[a+812>>2]=0;H[a+816>>2]=0;d=H[a+144>>2];if(d){zb[H[c+8>>2]](c,d)}H[a+140>>2]=0;H[a+144>>2]=0;d=H[a+156>>2];if(d){zb[H[c+8>>2]](c,d)}G[a+152>>1]=0;H[a+156>>2]=0;nd(H[a+104>>2],a+508|0);H[a+752>>2]=0;H[a+756>>2]=0;H[a+512>>2]=0;if(I[a+292|0]){d=H[a+332>>2];if(d){zb[H[c+8>>2]](c,d)}H[a+332>>2]=0;d=H[a+336>>2];if(d){zb[H[c+8>>2]](c,d)}F[a+292|0]=0;H[a+336>>2]=0}d=H[a+564>>2];if(d){zb[H[c+8>>2]](c,d)}G[a+562>>1]=0;H[a+564>>2]=0;if(b){zb[H[b+52>>2]](a)}b=H[a+20>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+20>>2]=0;b=H[a+24>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+24>>2]=0;b=H[a+32>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+32>>2]=0;b=H[a+804>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+28>>2]=0;H[a+804>>2]=0;b=H[a+720>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+720>>2]=0;b=H[a+744>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+744>>2]=0;b=H[a+652>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+652>>2]=0;b=H[a+656>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+656>>2]=0;b=H[a+664>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+664>>2]=0;b=H[a+672>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+540>>2]=0;H[a+672>>2]=0}}function Uu(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{g=I[a|0];if((g|0)!=117){break b}c:{d=I[a+1|0];if((d|0)!=110|I[a+2|0]!=105){break c}b=I[a+3|0];c=b-48|0;e=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(e>>>0>15){break c}b=I[a+4|0];c=b-48|0;f=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(f>>>0>15){break c}b=I[a+5|0];c=b-48|0;h=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(h>>>0>15){break c}b=I[a+6|0];c=b-48|0;b=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(b>>>0>15){break c}b=b+((f+(e<<4)<<4)+h<<4)|0;c=I[a+7|0];if(!c){break a}if((c|0)!=46){break c}return b|-2147483648}b=d-48|0;c=b>>>0>9?d-71>>>0<4294967290?16:d-55|0:b;if(c>>>0>15){break b}b=I[a+2|0];d=b-48|0;e=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(e>>>0>15){break b}b=I[a+3|0];d=b-48|0;f=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(f>>>0>15){break b}b=I[a+4|0];d=b-48|0;b=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(b>>>0>15){break b}b=b+(f+(e+(c<<4)<<4)<<4)|0;c=I[a+5|0];e=c-48|0;c=e>>>0>9?c-71>>>0<4294967290?16:c-55|0:e;d=a+5|0;d:{if(c>>>0>15){break d}b=c+(b<<4)|0;c=I[a+6|0];e=c-48|0;c=e>>>0>9?c-71>>>0<4294967290?16:c-55|0:e;d=a+6|0;if(c>>>0>15){break d}b=c+(b<<4)|0;d=a+7|0}d=I[d|0];if(!d){break a}if((d|0)!=46){break b}return b|-2147483648}b=a;while(1){e:{f:{if((g|0)!=46){if(g){break f}return Tu(a,b)|0}if(a>>>0>>0){break e}}g=I[b+1|0];b=b+1|0;continue}break}b=Tu(a,b)|-2147483648}return b|0}function Qf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{e=H[a>>2]-12|0;f=H[e>>2]+a|0;d=H[f+8>>2];b:{if(d+3>>>0>=K[f+12>>2]){break b}g=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[f+8>>2]=d+4;c:{d:{e:{f:{g:{switch(g-1|0){default:switch(g-268435456|0){case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break b};case 0:c=Qb(16);H[c>>2]=420036;h=c,i=Qf(a,b),H[h+8>>2]=i;a=Qf(a,b);H[c+4>>2]=1;break a;case 1:c=Qb(16);H[c>>2]=420036;h=c,i=Qf(a,b),H[h+8>>2]=i;a=Qf(a,b);H[c+4>>2]=2;break a;case 2:c=Qb(16);H[c>>2]=420036;h=c,i=Qf(a,b),H[h+8>>2]=i;a=Qf(a,b);H[c+4>>2]=3;break a;case 3:c=Qb(16);H[c>>2]=420036;h=c,i=Qf(a,b),H[h+8>>2]=i;a=Qf(a,b);H[c+4>>2]=4;break a;case 4:break g}}c=Qb(16);H[c>>2]=420036;h=c,i=Qf(a,b),H[h+8>>2]=i;a=Qf(a,b);H[c+4>>2]=5;break a}d=Qb(12);H[d>>2]=419968;c=Qb(32);H[c>>2]=0;H[c+4>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;Ae((H[e>>2]+a|0)+4|0,c);H[d+8>>2]=c;H[b>>2]=H[b>>2]+4;H[d+4>>2]=268435456;return d}d=Qb(12);H[d>>2]=419904;f=0;e=H[e>>2]+a|0;c=H[e+8>>2];if(c+3>>>0>2]){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[e+8>>2]=c+4}h=d,i=oj(a),H[h+8>>2]=i;H[b>>2]=H[b>>2]+f;H[d+4>>2]=268435457;return d}a=Qb(8);H[a+4>>2]=268435458;H[a>>2]=419848;H[b>>2]=H[b>>2]+1;return a}c=Qb(8);H[c+4>>2]=268435459;H[c>>2]=419848;H[b>>2]=H[b>>2]+1}return c}H[c+12>>2]=a;return c}function vaa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(f){a=e>>>0<8;c=h<<2;while(1){h=e;if(!a){while(1){H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|-16777216;H[b+4>>2]=I[i+1|0]|I[j+1|0]<<8|I[k+1|0]<<16|-16777216;H[b+8>>2]=I[i+2|0]|I[j+2|0]<<8|I[k+2|0]<<16|-16777216;H[b+12>>2]=I[i+3|0]|I[j+3|0]<<8|I[k+3|0]<<16|-16777216;H[b+16>>2]=I[i+4|0]|I[j+4|0]<<8|I[k+4|0]<<16|-16777216;H[b+20>>2]=I[i+5|0]|I[j+5|0]<<8|I[k+5|0]<<16|-16777216;H[b+24>>2]=I[i+6|0]|I[j+6|0]<<8|I[k+6|0]<<16|-16777216;H[b+28>>2]=I[i+7|0]|I[j+7|0]<<8|I[k+7|0]<<16|-16777216;b=b+32|0;k=k+8|0;j=j+8|0;i=i+8|0;h=h-8|0;if(h>>>0>7){continue}break}}f=f-1|0;a:{switch(h-1|0){case 6:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 5:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 4:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 3:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 2:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 1:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 0:H[b>>2]=I[i|0]|I[j|0]<<8|I[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;break;default:break a}}k=g+k|0;j=g+j|0;i=g+i|0;b=b+c|0;if(f){continue}break}}}function il(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;k=H[b+4>>2];a:{if(k>>>0>a>>>0){break a}h=H[b+8>>2];if(h>>>0>>0|h-a>>>0<5){break a}c=H[b+12>>2]-5|0;H[b+12>>2]=c;b:{if((c|0)<=0){break b}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)){break b}return 1}g=H[b+12>>2]-5|0;H[b+12>>2]=g;if((g|0)<=0){break a}e=I[a+4|0];if((e-1&255)>>>0>3){break a}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=i+1|0;if(4294967295/(c>>>0)>>>0<=e>>>0&c>>>0>=i>>>0){break a}j=N(c,e);if((j|0)==-1){break a}if(j){c=a+5|0;if(c>>>0>>0|c>>>0>h>>>0|j>>>0>h-c>>>0){break a}g=g-j|0;H[b+12>>2]=g;if((g|0)<=0){break a}c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);d=N(i+1|0,e)}if((i|0)==-1){break a}l=(a+d|0)+5|0;p=e&252;o=e&3;j=e-1>>>0<3;while(1){f=(N(e,m)+a|0)+5|0;d=0;c=0;if(!j){while(1){c=f;f=c+4|0;d=d+4|0;if((p|0)!=(d|0)){continue}break}c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24)}d=0;if(o){while(1){c=I[f|0]|c<<8;f=f+1|0;d=d+1|0;if((o|0)!=(d|0)){continue}break}}n=c>>>0>n>>>0?c:n;c=(i|0)!=(m|0);m=m+1|0;if(c){continue}break}a=n-1|0;if(!a){return 1}f=0;if((a|0)<0|l>>>0>>0|(h>>>0>>0|a>>>0>h-l>>>0)){break a}a=g-a|0;H[b+12>>2]=a;f=(a|0)>0}return f|0}function fD(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;c=1;a:{if((zb[H[H[b>>2]+12>>2]](b,d+14|0,1,1,0,0)|0)!=1){break a}e=I[d+14|0];if((e|0)==249){c=0;b:{if((zb[H[H[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1){break b}f=I[d+15|0];g=zb[H[H[b>>2]+12>>2]](b,a+940|0,1,4,0,0)|0;c=(I[a+941|0]|I[a+942|0]<<8)<<16>>16;e=(I[a+458|0]?c:c<<8|(c&65280)>>>8)<<16>>16;F[a+941|0]=e;F[a+942|0]=e>>>8;c=0;if((f|0)!=(g|0)){break b}H[a+360>>2]=e&65535;c=I[a+940|0];H[a+336>>2]=c&1?I[a+943|0]:-1;F[a+456|0]=c>>>2&7;c=1}e=I[d+14|0]}c:{if((e|0)!=254){break c}c=0;if((zb[H[H[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1){break c}c=zb[H[H[b>>2]+12>>2]](b,H[a+1080>>2],I[d+15|0],1,0,0)|0;F[H[a+1080>>2]+I[d+15|0]|0]=0;c=(c|0)==1}d:{if(I[d+14|0]==255){if((zb[H[H[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1|I[d+15|0]!=11){break a}if((zb[H[H[b>>2]+12>>2]](b,d+3|0,11,1,0,0)|0)!=1){break a}if((zb[H[H[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1){break a}e=I[d+15|0];c=Tb(e);if(!c){Kb(c);break a}e=zb[H[H[b>>2]+12>>2]](b,c,e,1,0,0)|0;if(I[d+15|0]>=3){H[a+1084>>2]=I[c+1|0]|I[c+2|0]<<8;Kb(c);if((e|0)==1){break d}break a}Kb(c);if((e|0)==1){break d}break a}if(!c){break a}}h=1;if(!(zb[H[H[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)){break a}c=I[d+15|0];if(!c){break a}while(1){zb[H[H[b>>2]+20>>2]](b,c,1)|0;if(!(zb[H[H[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)){break a}c=I[d+15|0];if(c){continue}break}}xb=d+16|0;return h}function Jx(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;H[d>>2]=0;H[d+4>>2]=0;h=b?b-1|0:0;b=H[a+408>>2];a:{if(h>>>0>b>>>0){break a}c=c?c-1|0:0;if(c>>>0>b>>>0){break a}b=H[a+424>>2];if(!b){break a}f=c<<4;c=H[a+416>>2];c=J[f+c>>1]|H[c+(h<<4)>>2]<<16;i=H[a+104>>2];while(1){if(!(c>>>0<=K[b+20>>2]&c>>>0>=K[b+16>>2])){b=H[b>>2];if(b){continue}break a}break}e=bc(i,H[b+12>>2]);if(e){break a}e=Jc(i,N(H[b+8>>2],I[b+4|0]));if(e){break a}a=I[b+5|0];j=a&1;k=a>>>1&1;h=H[b+8>>2];e=H[i+32>>2];a=I[b+4|0];f=-2147483648>>>Q(a)|0;b:{c:{d:{if((a|0)==(f|0)){break d}a=N(h,a-f|0)+e|0;e:{if(j){g=I[a+1|0]<<16|I[a|0]<<24|I[a+2|0]<<8;l=a+3|0;a=a+4|0;break e}l=a+1|0;g=I[a|0]<<16;a=a+2|0}g=I[l|0]|g;if((g|0)==(c|0)){break c}if(c>>>0<=g>>>0){break d}e=(k?2:1)+a|0}a=N(f,h);f:{if(h>>>0>=a>>>0){break f}if(!j){while(1){a=a>>>1|0;f=e+a|0;g=I[f|0]<<16|I[f+1|0];if((g|0)==(c|0)){a=f+2|0;break c}e=c>>>0>g>>>0?f:e;if(a>>>0>h>>>0){continue}break f}}while(1){a=a>>>1|0;f=e+a|0;g=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);g=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);if((g|0)==(c|0)){a=f+4|0;break c}e=c>>>0>g>>>0?f:e;if(a>>>0>h>>>0){continue}break}}g:{if(j){h=3;f=I[e+1|0]<<16|I[e|0]<<24|I[e+2|0]<<8;a=e+4|0;break g}h=1;f=I[e|0]<<16;a=e+2|0}if((c|0)!=(f|I[e+h|0])){break b}}c=I[a|0];if(k){c=(I[a+1|0]|c<<8)<<16>>16}H[d>>2]=G[b+6>>1]+c}wc(i);e=0}return e|0}function q_(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;i=H[a+208>>2];if(i){zb[H[H[i>>2]+460>>2]](i,b,c,d)}b=H[d>>2];i=H[d+4>>2];if((b|0)!=(i|0)){c=a+29|0;while(1){e=H[b+4>>2];f=+(e|0);g=H[b>>2];h=+(g|0);d=H[a+156>>2];a:{b:{if(d){if(Qd(d,h,f)){break b}F[c+H[H[a>>2]-12>>2]|0]=1;break a}d=H[a+208>>2];if(!d){break b}zb[H[H[d>>2]+32>>2]](d,h,f)}d=H[a+120>>2];H[d+672>>2]=g;H[d+676>>2]=e}e=H[b+4>>2];f=+(e|0);g=H[b+8>>2];h=+(g|0);d=H[a+156>>2];c:{d:{if(d){if(jd(d,h,f)){break d}F[c+H[H[a>>2]-12>>2]|0]=1;break c}d=H[a+208>>2];if(!d){break d}zb[H[H[d>>2]+36>>2]](d,h,f)}d=H[a+120>>2];H[d+672>>2]=g;H[d+676>>2]=e}e=H[b+12>>2];f=+(e|0);g=H[b+8>>2];h=+(g|0);d=H[a+156>>2];e:{f:{if(d){if(jd(d,h,f)){break f}F[c+H[H[a>>2]-12>>2]|0]=1;break e}d=H[a+208>>2];if(!d){break f}zb[H[H[d>>2]+36>>2]](d,h,f)}d=H[a+120>>2];H[d+672>>2]=g;H[d+676>>2]=e}e=H[b+12>>2];f=+(e|0);g=H[b>>2];h=+(g|0);d=H[a+156>>2];g:{h:{if(d){if(jd(d,h,f)){break h}F[c+H[H[a>>2]-12>>2]|0]=1;break g}d=H[a+208>>2];if(!d){break h}zb[H[H[d>>2]+36>>2]](d,h,f)}d=H[a+120>>2];H[d+672>>2]=g;H[d+676>>2]=e}b=b+16|0;if((i|0)!=(b|0)){continue}break}}b=H[a+156>>2];i:{if(b){if(hf(b)){break i}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break i}b=H[a+208>>2];if(!b){break i}zb[H[H[b>>2]+48>>2]](b)}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,2);a=H[a+208>>2];zb[H[H[a>>2]+56>>2]](a)}}function o9(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;if(c-b&4){H[c>>2]=0;c=c+4|0}if(b>>>0>>0){while(1){f=H[b>>2];if(!(f>>>0<=d>>>0&f+i>>>0<=d>>>0)){f=d-i|0;H[b>>2]=f}if(f){e=(i>>>3|0)+a|0;g=i&7;h=8-g|0;a:{if(h>>>0>>0){if(g){F[e|0]=I[e|0]&255<>>0>=8){g=f>>>3|0;if(f>>>0>=64){if(e&3){h=(e^-1)&3;g=g-1|0;h=g?g>>>0>h>>>0?h:g:0;g=g-h|0;e=(Nb(e,0,h+1|0)+h|0)+1|0}h=g&-4;g=g&3;e=Nb(e,0,h)+h|0}b:{switch(g-1|0){case 6:F[e+6|0]=0;case 5:F[e+5|0]=0;case 4:F[e+4|0]=0;case 3:F[e+3|0]=0;case 2:F[e+2|0]=0;case 1:F[e+1|0]=0;case 0:F[e|0]=0;e=e+g|0;break;default:break b}}f=f&7}if(!f){break a}F[e|0]=I[e|0]&255>>>f;break a}F[e|0]=I[e|0]&(I[f+294382|0]>>>g^-1)}i=H[b>>2]+i|0}f=H[b+4>>2];if(!(f>>>0<=d>>>0&f+i>>>0<=d>>>0)){f=d-i|0;H[b+4>>2]=f}if(f){e=(i>>>3|0)+a|0;g=i&7;h=8-g|0;c:{d:{if(h>>>0>>0){if(g){F[e|0]=I[e|0]|255>>>g;f=f-h|0;e=e+1|0}if(f>>>0>=8){g=f>>>3|0;if(f>>>0>=64){if(e&3){h=(e^-1)&3;g=g-1|0;h=g?g>>>0>h>>>0?h:g:0;g=g-h|0;e=(Nb(e,255,h+1|0)+h|0)+1|0}h=g&-4;g=g&3;e=Nb(e,255,h)+h|0}e:{switch(g-1|0){case 6:F[e+6|0]=255;case 5:F[e+5|0]=255;case 4:F[e+4|0]=255;case 3:F[e+3|0]=255;case 2:F[e+2|0]=255;case 1:F[e+1|0]=255;case 0:F[e|0]=255;e=e+g|0;break;default:break e}}f=f&7}if(!f){break c}f=65280>>>f|0;break d}f=I[f+294382|0]>>>g|0}F[e|0]=f|I[e|0]}i=H[b+4>>2]+i|0}b=b+8|0;if(c>>>0>b>>>0){continue}break}}}function xca(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;g=H[a+420>>2];d=H[a+236>>2];if(d){c=H[g+36>>2];a:{if(c){break a}c=d;if(H[a+288>>2]<=0){break a}c=0;while(1){H[((c<<2)+g|0)+20>>2]=0;c=c+1|0;if((c|0)>2]){continue}break}c=H[a+236>>2]}H[g+36>>2]=c-1}if(H[a+316>>2]>0){while(1){e=j<<2;c=H[(e+a|0)+320>>2]<<2;d=H[(c+a|0)+292>>2];h=H[((H[d+24>>2]<<2)+g|0)+92>>2];i=H[((H[d+20>>2]<<2)+g|0)+76>>2];o=H[a+380>>2];k=H[a+384>>2];d=0;l=c+g|0;c=H[l+20>>2];m=b+e|0;n=H[m>>2];e=G[n>>1];b:{if((c|0)==(e|0)){break b}e=e-c|0;d=e>>31;c=(d^e)-d|0;d=0;while(1){e=d;d=e+1|0;f=c>>>0>1;c=c>>>1|0;if(f){continue}break}if(e>>>0<11){break b}e=H[a>>2];H[e+20>>2]=6;zb[H[e>>2]](a)}d=i+(d<<2)|0;H[d>>2]=H[d>>2]+1;c:{if((k|0)<=0){break c}f=1;e=0;while(1){d:{c=J[(H[(f<<2)+o>>2]<<1)+n>>1];e:{if(c){if((e|0)>=16){d=(e-((e|0)<31?e:31)|0)+15|0;H[h+960>>2]=(H[h+960>>2]+(d>>>4|0)|0)+1;e=(e-(d&-16)|0)-16|0}d=1;i=c;c=c<<16>>31;c=(i^c)-c&65535;f:{if(c>>>0<2){break f}while(1){i=d;d=d+1|0;p=c>>>0>3;c=c>>>1|0;if(p){continue}break}if(i>>>0<10){break f}c=H[a>>2];H[c+20>>2]=6;zb[H[c>>2]](a)}d=((e<<4)+d<<2)+h|0;H[d>>2]=H[d>>2]+1;e=0;if((f|0)!=(k|0)){break e}break c}if((f|0)==(k|0)){break d}e=e+1|0}f=f+1|0;continue}break}if((e|0)<0){break c}H[h>>2]=H[h>>2]+1}H[l+20>>2]=G[H[m>>2]>>1];j=j+1|0;if((j|0)>2]){continue}break}}return 1}function DE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=xb-16|0;xb=i;d=H[b+100>>2];c=I[a+2|0]|I[a+3|0]<<8;if(c){g=((c<<8|c>>>8)&65535)+a|0}else{g=163632}k=Gc(g,H[H[d+80>>2]+N(H[d+64>>2],20)>>2]);c=0;a:{if((k|0)==-1){break a}c=H[d+64>>2];H[b+40>>2]=1;H[b+4>>2]=c;e=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[e+68>>2];g=0;g=(c|0)==H[e+64>>2]?I[(H[e+80>>2]+N(c,20)|0)+15|0]:g;H[b+12>>2]=8;F[b+24|0]=g;e=b+4|0;if(!ah(e,i+12|0)){c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,H[i+12>>2],H[d+64>>2]+1|0,0,1);c=0;break a}j=H[e>>2];c=I[a+4|0]|I[a+5|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+a|0}else{c=163632}f=Gc(c,H[H[d+80>>2]+N(j,20)>>2]);if((f|0)==-1){c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,H[e>>2],H[d+64>>2]+1|0,0,1);c=0;break a}g=163632;c=163632;h=I[a+10|0]|I[a+11|0]<<8;if(h){c=((h<<8|h>>>8)&65535)+a|0}h=I[c|0]|I[c+1|0]<<8;b:{if(f>>>0>=((h<<8|h>>>8)&65535)>>>0){break b}f=(f<<1)+c|0;f=I[f+2|0]|I[f+3|0]<<8;if(!f){break b}g=((f<<8|f>>>8)&65535)+c|0}c=I[g|0]|I[g+1|0]<<8;if(!c){c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,H[e>>2],H[d+64>>2]+1|0,0,1);c=0;break a}c=(c<<8|c>>>8)&65535;e=H[d+80>>2];f=I[(e+N(j,20)|0)+14|0];if(f>>>0>=32){d=I[(e+N(H[d+64>>2],20)|0)+14|0];e=d&16?0:d&15;c=(d^f)>>>0<32?e?c>>>0>>0?c:e:c:c}d=c-1|0;c=I[a+8|0]|I[a+9|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+a|0}else{c=163632}a=I[a+6|0]|I[a+7|0]<<8;c=Rr(c,b,k,d,g,(a<<8|a>>>8)&65535,j)}xb=i+16|0;return c}function $G(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;i=H[a+84>>2];a:{b:{c:{f=H[a+8>>2];if(!(f&8)){break c}f=!(H[a+4>>2]&2147418112|f&32768);if(d&16){if(!f){f=7;if(!(I[a+740|0]&16)){break a}}if(!I[a+292|0]){break c}if(!c){break b}f=0;if((c|0)!=1){i=c&-2;d=0;while(1){j=h+14|0;k=h+12|0;zb[H[H[a+540>>2]+140>>2]](a,1,b+g|0,j,k);H[(g<<2)+e>>2]=J[h+12>>1];l=g|1;zb[H[H[a+540>>2]+140>>2]](a,1,l+b|0,j,k);H[(l<<2)+e>>2]=J[h+12>>1];g=g+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}zb[H[H[a+540>>2]+140>>2]](a,1,b+g|0,h+14|0,h+12|0);H[(g<<2)+e>>2]=J[h+12>>1];break a}if(!f){f=7;if(!(I[a+740|0]&2)){break a}}if(!J[a+250>>1]){break c}if(!c){break b}f=0;if((c|0)!=1){i=c&-2;d=0;while(1){j=h+14|0;k=h+10|0;zb[H[H[a+540>>2]+140>>2]](a,0,b+g|0,j,k);H[(g<<2)+e>>2]=J[h+10>>1];l=g|1;zb[H[H[a+540>>2]+140>>2]](a,0,l+b|0,j,k);H[(l<<2)+e>>2]=J[h+10>>1];g=g+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!(c&1)){break a}zb[H[H[a+540>>2]+140>>2]](a,0,b+g|0,h+14|0,h+10|0);H[(g<<2)+e>>2]=J[h+10>>1];break a}if(!c){break b}if(!i){f=37;break a}l=i+(d&16?60:56)|0;while(1){f=H[a+88>>2];j=(f?256:259)|d;k=b+g|0;d:{if(!(j&1?0:f)){f=sl(i,0,k,j);break d}if(H[f>>2]!=H[i+4>>2]){f=35;break a}f=sl(i,f,k,j)}if(f){break a}H[(g<<2)+e>>2]=H[l>>2];g=g+1|0;if((g|0)!=(c|0)){continue}break}}f=0}xb=h+16|0;return f|0}function Sz(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-32|0;xb=c;a:{if(I[a+28|0]){break a}d=H[a+24>>2];if(!d){break a}Kb(d);H[a+24>>2]=0}H[a+4>>2]=0;H[a+8>>2]=0;F[a+29|0]=0;H[a+12>>2]=0;H[a+16>>2]=0;zb[H[H[a>>2]+12>>2]](a);e=c+16|0;H[e+12>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[e>>2]=436884;b:{c:{d:{e:{f:{g:{f=ad(b);if(f>>>0>=1073741808){H[197455]=0;ia(1640,c|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}X()}h:{i:{if(f>>>0>=2){H[197455]=0;g=f+4&-4;d=aa(899,g<<2)|0;h=H[197455];H[197455]=0;if((h|0)==1){break g}H[c>>2]=d;H[c+4>>2]=f;H[c+8>>2]=g|-2147483648;break i}F[c+11|0]=f;d=c;if(!f){break h}}H[197455]=0;Mb(d,b,f);b=H[197455];H[197455]=0;if((b|0)==1){break b}}H[(f<<2)+d>>2]=0;H[197455]=0;h=ca(910,e|0,c|0,0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}if(F[c+11|0]<0){Kb(H[c>>2])}if(!h){break e}H[197455]=0;g=H[e+12>>2];b=H[197455];H[197455]=0;if((b|0)==1){break d}F[a+28|0]=0;H[197455]=0;d=aa(929,g|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break d}H[a+24>>2]=d;H[197455]=0;la(930,e|0,d|0,g|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[a+24>>2];H[a+8>>2]=b;H[a+4>>2]=b;H[a+12>>2]=b+g;H[197455]=0;ia(923,e|0);a=H[197455];H[197455]=0;if((a|0)!=1){break e}}a=$()|0;_()|0;break c}a=$()|0;_()|0;break c}a=$()|0;_()|0;if(F[c+11|0]>=0){break c}Kb(H[c>>2]);break c}gf(e);xb=c+32|0;return h}a=$()|0;_()|0}gf(e);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Ne(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c=H[a+40>>2];e=H[a>>2];if(c>>>0>e+H[a+36>>2]>>>0){while(1){c=e+1|0;H[a>>2]=c;d=H[a+4>>2];e=H[H[d+100>>2]+80>>2]+N(c,20)|0;c=J[e+12>>1];f=H[a+8>>2];c:{if(c&f&14){break c}d:{if(!(c&8)){break d}if(f&16){c=H[d+108>>2];d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0<65538){break c}d=I[c+12|0]|I[c+13|0]<<8;if(d){c=c+((d<<8|d>>>8)&65535)|0}else{c=163632}if((I[c|0]|I[c+1|0]<<8)!=256){break c}d=c;f=f>>>16|0;g=(c+(f<<2)|0)+4|0;c=I[c+2|0]|I[c+3|0]<<8;c=f>>>0<((c<<8|c>>>8)&65535)>>>0?g:163632;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((Gc(c?d+c|0:163632,H[e>>2])|0)==-1){break c}c=J[e+12>>1];break d}f=f&65280;if(!f){break d}if((f|0)!=(c&65280)){break c}}f=0;d=J[e+16>>1];if(!(c&16|(d&96)!=32|!I[a+12|0]&(d&543)==513)){f=I[a+13|0]?2:((d&287)!=257)<<1}e:{if(!(H[a+16>>2]&H[e+4>>2])){break e}c=H[a+32>>2];d=I[a+20|0];if((d|0)!=I[e+15|0]?d:0){break e}d=H[a+24>>2];f:{if(d){if(!(zb[d|0](H[e>>2],c,H[a+28>>2])|0)){break e}c=H[a+32>>2];break f}if(f){break c}}H[a+36>>2]=H[a+36>>2]-1;e=1;if(!c){break a}H[a+32>>2]=c+2;return 1}if(!f){break b}}c=H[a+40>>2];e=H[a>>2];if(c>>>0>e+H[a+36>>2]>>>0){continue}break}}e=0;if(!b){break a}H[b>>2]=c;break a}e=0;if(!b){break a}H[b>>2]=H[a>>2]+1;return 0}return e}function _d(a,b,c,d){var e=0,f=O(0),g=O(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=O(0),u=O(0),v=O(0),w=O(0),x=O(0),y=0,z=0,A=0,B=0,C=0;h=M[d+8>>3];i=M[d>>3];j=M[c+8>>3];k=M[c>>3];l=M[b+8>>3];m=M[b>>3];b=H[a+8>>2];if(b){n=M[b+8>>3];h=h+n;o=M[b>>3];i=i+o;k=k+o;l=l+n;m=m+o;j=j+n}b=H[a+4>>2];c=H[a>>2];y=H[c+20>>2];d=H[c+16>>2];e=H[d+28>>2];if(!e){e=kc(d);c=H[a>>2];d=H[c+16>>2]}z=H[c+24>>2];p=H[d+28>>2];if(!p){p=kc(d);c=H[a>>2];d=H[c+16>>2]}A=H[c+20>>2];q=H[d+28>>2];if(!q){q=kc(d);c=H[a>>2];d=H[c+16>>2]}B=H[c+24>>2];r=H[d+28>>2];if(!r){r=kc(d);c=H[a>>2];d=H[c+16>>2]}C=H[c+20>>2];s=H[d+28>>2];if(!s){s=kc(d);c=H[a>>2];d=H[c+16>>2]}a=H[c+24>>2];c=H[d+28>>2];if(!c){c=kc(d)}w=O(O(O(m)*O(y|0))/O(e>>>0));t=O(O(O(l)*O(z|0))/O(p>>>0));x=O(O(O(k)*O(A|0))/O(q>>>0));u=O(O(O(j)*O(B|0))/O(r>>>0));f=O(O(O(i)*O(C|0))/O(s>>>0));d=b+16|0;g=O(O(O(h)*O(a|0))/O(c>>>0));c=H[b+12>>2];a=H[b+8>>2];a:{if(I[b+4|0]){if(!H[d>>2]){zb[H[a+12>>2]](a,c,d,L[b+28>>2],L[b+32>>2],H[a+32>>2]);H[b+16>>2]=1;e=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=e}zb[H[a+24>>2]](a,c,d,w,t,x,u,f,g,H[a+44>>2]);break a}v=L[b>>2];f=O(O(g*v)+f);if(!H[b+16>>2]){zb[H[a+12>>2]](a,c,d,L[b+28>>2],L[b+32>>2],H[a+32>>2]);H[b+16>>2]=1;e=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=e}zb[H[a+24>>2]](a,c,d,O(O(t*v)+w),t,O(O(u*v)+x),u,f,g,H[a+44>>2])}L[b+32>>2]=g;L[b+28>>2]=f}function sG(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=H[b+4>>2];a:{if(e>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<4){break a}h=H[b+12>>2]-4|0;H[b+12>>2]=h;if((h|0)<=0){break a}f=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);if(f>>>0>1073741822){break a}if(!f){return 1}i=e;e=a+4|0;if(i>>>0>e>>>0|d>>>0>>0){break a}e=d-e|0;d=f<<2;if(e>>>0>>0){break a}d=h-d|0;H[b+12>>2]=d;if((d|0)<=0){break a}g=1;d=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);l=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(!l){break a}h=0;while(1){j=H[c>>2];g=0;d=((h<<2)+a|0)+4|0;k=H[b+4>>2];b:{if(d>>>0>>0){break b}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<4){break b}i=H[b+12>>2];e=i-4|0;H[b+12>>2]=e;if((e|0)<=0){break b}g=F[d|0];e=I[d+3|0]|(I[d+1|0]<<16|g<<24|I[d+2|0]<<8);m=(e|0)!=0&(g|0)<0;g=!m;if(!e|m){break b}e=e+j|0;c:{if(e>>>0>>0|f>>>0>>0|f-e>>>0<4){break c}j=i-8|0;H[b+12>>2]=j;if((j|0)<=0){break c}i=H[b+36>>2]+1|0;if(i>>>0>1073741822){break c}g=1;if(!i){break b}e=e+4|0;if(e>>>0>>0|f>>>0>>0){break c}e=f-e|0;f=i<<2;if(e>>>0>>0){break c}f=j-f|0;H[b+12>>2]=f;if((f|0)>0){break b}}g=0;f=H[b+28>>2];if(f>>>0>31){break b}H[b+28>>2]=f+1;if(!I[b+24|0]){break b}F[d|0]=0;F[d+1|0]=0;F[d+2|0]=0;F[d+3|0]=0;g=1}if(!g){break a}h=h+1|0;if((l|0)!=(h|0)){continue}break}}return g}function CE(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;h=xb-16|0;xb=h;d=H[b+100>>2];g=I[a+2|0]|I[a+3|0]<<8;if(g){c=((g<<8|g>>>8)&65535)+a|0}else{c=163632}g=Gc(c,H[H[d+80>>2]+N(H[d+64>>2],20)>>2]);c=0;a:{if((g|0)==-1){break a}c=H[d+64>>2];H[b+40>>2]=1;H[b+4>>2]=c;f=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[f+68>>2];F[b+24|0]=(c|0)==H[f+64>>2]?I[(H[f+80>>2]+N(c,20)|0)+15|0]:0;H[b+12>>2]=H[b+132>>2]&-15;i=b+4|0;if(!ah(i,h+12|0)){c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,H[h+12>>2],H[d+64>>2]+1|0,0,1);c=0;break a}j=H[d+80>>2];f=H[i>>2];c=j+N(f,20)|0;if(!(I[c+12|0]&8)){c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,f,H[d+64>>2]+1|0,0,1);c=0;break a}e=I[c+14|0];k=e&16?0:e&15;l=H[d+64>>2];c=I[(j+N(l,20)|0)+14|0];m=c&16?0:c&15;b:{c:{if((c^e)>>>0<=31){if(c>>>0<32){break b}if((k|0)!=(m|0)){break c}break b}if(m?0:c>>>0>=32){break b}if(e>>>0<32){break c}if(!k){break b}}c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,f,l+1|0,0,1);c=0;break a}c=I[a+4|0]|I[a+5|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+a|0}else{c=163632}c=Gc(c,H[j+N(f,20)>>2]);if((c|0)==-1){c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,H[i>>2],H[d+64>>2]+1|0,0,1);c=0;break a}d=I[a+8|0]|I[a+9|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}e=I[a+10|0]|I[a+11|0]<<8;if(e){e=((e<<8|e>>>8)&65535)+a|0}else{e=163632}a=I[a+6|0]|I[a+7|0]<<8;c=Rr(d,b,g,c,e,(a<<8|a>>>8)&65535,f)}xb=h+16|0;return c}function SB(a,b){var c=0,d=0,e=0,f=0,g=0;a:{c=I[a+9|0];if(c>>>0<8){break a}d=I[a+8|0];if(d&2){break a}e=H[a>>2];b:{c:{switch(d|0){case 0:if((c|0)==8){if(!e){break b}b=(b+e|0)-1|0;c=b+(e<<1)|0;if((e|0)!=1){g=e&-2;d=0;while(1){F[c|0]=I[b|0];F[c-1|0]=I[b|0];F[c-2|0]=I[b|0];f=b-1|0;F[c-3|0]=I[f|0];F[c-4|0]=I[f|0];F[c-5|0]=I[f|0];c=c-6|0;b=b-2|0;d=d+2|0;if((g|0)!=(d|0)){continue}break}}if(!(e&1)){break b}F[c|0]=I[b|0];F[c-1|0]=I[b|0];F[c-2|0]=I[b|0];break b}if(!e){break b}b=((e<<1)+b|0)-1|0;c=b+(e<<2)|0;d=0;while(1){F[c|0]=I[b|0];f=b-1|0;F[c-1|0]=I[f|0];F[c-2|0]=I[b|0];F[c-3|0]=I[f|0];F[c-4|0]=I[b|0];F[c-5|0]=I[f|0];c=c-6|0;b=b-2|0;d=d+1|0;if((d|0)!=(e|0)){continue}break};break b;case 4:break c;default:break b}}if((c|0)==8){if(!e){break b}c=e<<1;b=(c+b|0)-1|0;c=b+c|0;d=0;while(1){F[c|0]=I[b|0];f=b-1|0;F[c-1|0]=I[f|0];F[c-2|0]=I[f|0];F[c-3|0]=I[f|0];c=c-4|0;b=b-2|0;d=d+1|0;if((d|0)!=(e|0)){continue}break}break b}if(!e){break b}c=e<<2;b=(c+b|0)-1|0;c=b+c|0;d=0;while(1){F[c|0]=I[b|0];F[c-1|0]=I[b-1|0];f=b-2|0;F[c-2|0]=I[f|0];g=b-3|0;F[c-3|0]=I[g|0];F[c-4|0]=I[f|0];F[c-5|0]=I[g|0];F[c-6|0]=I[f|0];F[c-7|0]=I[g|0];c=c-8|0;b=b-4|0;d=d+1|0;if((d|0)!=(e|0)){continue}break}}b=I[a+10|0]+2|0;F[a+10|0]=b;F[a+8|0]=I[a+8|0]|2;b=N(b,I[a+9|0]);F[a+11|0]=b;b=b&255;d:{if(b>>>0>=8){b=N(b>>>3|0,e);break d}b=N(b,e)+7>>>3|0}H[a+4>>2]=b}}function Rba(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,u=0,v=0;n=xb+-64|0;xb=n;d=Nb(a,0,256);while(1){a:{h=d;d=H[(i<<2)+b>>2]+c|0;e=I[d+3|0];f=I[d+1|0];g=e+f|0;j=I[d+4|0];k=I[d|0];l=j+k|0;m=g+l|0;d=I[d+2|0];H[h>>2]=(m+d<<2)-2560;g=N(l-g|0,6476)+1024|0;d=N(m-(d<<2)|0,2896);H[h+16>>2]=g-d>>11;H[h+8>>2]=d+g>>11;e=f-e|0;f=k-j|0;d=N(e+f|0,6810)+1024|0;H[h+12>>2]=d+N(e,-17828)>>11;H[h+4>>2]=d+N(f,4209)>>11;e=i-7|0;i=i+1|0;d=n;b:{switch(e|0){case 0:continue;case 2:break a;default:break b}}d=h+32|0;continue}break}while(1){i=H[a+192>>2];e=H[a+96>>2];b=i+e|0;h=H[d>>2];f=H[a+32>>2];c=h+f|0;g=b+c|0;j=H[a+224>>2];k=H[a+64>>2];l=j+k|0;m=l<<1;o=H[a+160>>2];p=H[a+128>>2];q=o+p|0;r=H[d+32>>2];s=H[a>>2];t=r+s|0;u=q+t|0;H[a+128>>2]=(N(g-m|0,-4582)+N(u-m|0,11997)|0)+16384>>15;H[a>>2]=N((g+l|0)+u|0,10486)+16384>>15;g=t-q|0;c=c-b|0;b=N(g+c|0,8716)+16384|0;H[a+192>>2]=b+N(c,-22820)>>15;H[a+64>>2]=b+N(g,5387)>>15;b=p-o|0;c=s-r|0;g=b+c|0;h=f-h|0;i=e-i|0;e=h-i|0;f=k-j|0;H[a+160>>2]=N(g-(e+f|0)|0,10486)+16384>>15;j=(N(c-b|0,9973)+N(h+i|0,-6163)|0)+16384|0;f=N(f,10486);e=(N(e,5243)-f|0)+N(e+g|0,3240)|0;H[a+224>>2]=j-e>>15;H[a+96>>2]=e+j>>15;H[a+32>>2]=(((f+(N(c,14647)+N(h,13213)|0)|0)+N(i,6732)|0)+N(b,2320)|0)+16384>>15;d=d+4|0;a=a+4|0;v=v+1|0;if((v|0)!=5){continue}break}xb=n- -64|0}function av(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(d){g=(f|0)==2;m=g?256:128;n=g?128:256;l=0-f|0;while(1){i=H[c+16>>2];a:{if(i&16){break a}k=H[c+28>>2];b:{g=F[c+20|0];c:{if((g|0)==(f|0)|(g|0)==(l|0)){break c}g=F[c+21|0];if((g|0)==(f|0)){break c}if((g|0)!=(l|0)){break b}}if(!g){break b}if((f|0)==(g|0)){g=0;if(!a){break a}while(1){h=H[(g<<2)+b>>2];j=k-H[h>>2]|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0)){continue}break a}break}H[c+24>>2]=h;H[c+16>>2]=i|528;break a}if((g|0)!=(l|0)){break a}g=0;if(!a){break a}while(1){h=H[(g<<2)+b>>2];j=k-(H[h>>2]+H[h+4>>2]|0)|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0)){continue}break a}break}H[c+24>>2]=h;H[c+16>>2]=i|1040;break a}if(!(i&64)){break a}d:{e:{if(i&n){g=0;if(!a){break a}while(1){h=H[(g<<2)+b>>2];j=k-H[h>>2]|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0)){continue}break d}break}g=528;break e}if(!(i&m)){break d}g=0;if(!a){break d}while(1){h=H[(g<<2)+b>>2];j=k-(H[h>>2]+H[h+4>>2]|0)|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0)){continue}break d}break}g=1040}H[c+24>>2]=h;H[c+16>>2]=g|i}if(H[c+24>>2]){break a}g=0;if(!a){break a}while(1){i=H[(g<<2)+b>>2];h=H[i>>2];if(!((h|0)>(k|0)|(h+H[i+4>>2]|0)<(k|0))){H[c+24>>2]=i;break a}g=g+1|0;if((g|0)!=(a|0)){continue}break}}c=c+40|0;d=d-1|0;if(d){continue}break}}}function ah(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c=H[a>>2];if(c>>>0>H[a+36>>2]-1>>>0){while(1){c=c-1|0;H[a>>2]=c;e=H[a+4>>2];f=H[H[e+100>>2]+84>>2]+N(c,20)|0;c=J[f+12>>1];d=H[a+8>>2];c:{if(c&d&14){break c}d:{if(!(c&8)){break d}if(d&16){c=H[e+108>>2];e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);if((e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))>>>0<65538){break c}e=I[c+12|0]|I[c+13|0]<<8;if(e){c=c+((e<<8|e>>>8)&65535)|0}else{c=163632}if((I[c|0]|I[c+1|0]<<8)!=256){break c}e=c;d=d>>>16|0;g=(c+(d<<2)|0)+4|0;c=I[c+2|0]|I[c+3|0]<<8;c=d>>>0<((c<<8|c>>>8)&65535)>>>0?g:163632;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((Gc(c?e+c|0:163632,H[f>>2])|0)==-1){break c}c=J[f+12>>1];break d}d=d&65280;if(!d){break d}if((d|0)!=(c&65280)){break c}}e=0;d=J[f+16>>1];if(!(c&16|(d&96)!=32|!I[a+12|0]&(d&543)==513)){e=I[a+13|0]?2:((d&287)!=257)<<1}e:{if(!(H[a+16>>2]&H[f+4>>2])){break e}d=H[a+32>>2];c=I[a+20|0];if((c|0)!=I[f+15|0]?c:0){break e}c=H[a+24>>2];f:{if(c){if(!(zb[c|0](H[f>>2],d,H[a+28>>2])|0)){break e}d=H[a+32>>2];break f}if(e){break c}}H[a+36>>2]=H[a+36>>2]-1;c=1;if(!d){break a}H[a+32>>2]=d+2;return 1}if(!e){break b}}c=H[a>>2];if(c>>>0>H[a+36>>2]-1>>>0){continue}break}}c=0;if(!b){break a}H[b>>2]=0;break a}c=0;if(!b){break a}a=H[a>>2];H[b>>2]=(a>>>0>1?a:1)-1;return 0}return c}function az(a){a=a|0;var b=0,c=0,d=0;b=Qb(48);H[197455]=0;c=Ng(b);d=H[197455];H[197455]=0;a:{b:{if((d|0)==1){break b}F[c+12|0]=255;F[c+13|0]=255;H[c+8>>2]=0;F[c+14|0]=255;$e(a,-2147483648,c);b=Qb(48);H[197455]=0;c=Ng(b);d=H[197455];H[197455]=0;if((d|0)==1){break b}F[c+12|0]=192;F[c+13|0]=192;H[c+8>>2]=0;F[c+14|0]=192;$e(a,-2147483647,c);b=Qb(48);H[197455]=0;c=Ng(b);d=H[197455];H[197455]=0;if((d|0)==1){break b}F[c+12|0]=128;F[c+13|0]=128;H[c+8>>2]=0;F[c+14|0]=128;$e(a,-2147483646,c);b=Qb(48);H[197455]=0;c=Ng(b);d=H[197455];H[197455]=0;if((d|0)==1){break b}F[c+12|0]=64;F[c+13|0]=64;H[c+8>>2]=0;F[c+14|0]=64;$e(a,-2147483645,c);b=Qb(48);H[197455]=0;c=Ng(b);d=H[197455];H[197455]=0;if((d|0)==1){break b}H[c+8>>2]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;$e(a,-2147483644,c);b=Qb(48);H[197455]=0;c=Ng(b);d=H[197455];H[197455]=0;if((d|0)!=1){break a}}a=$()|0;_()|0;Kb(b);ea(a|0);X()}H[c+8>>2]=1;$e(a,-2147483643,c);b=Qb(28);H[b+24>>2]=0;H[b+4>>2]=424656;H[b>>2]=424608;F[b+16|0]=255;F[b+17|0]=255;H[b+8>>2]=0;H[b+12>>2]=1;F[b+18|0]=255;$e(a,-2147483642,b);b=Qb(28);H[b+24>>2]=0;H[b+4>>2]=424656;H[b>>2]=424608;F[b+16|0]=0;F[b+17|0]=0;H[b+8>>2]=0;H[b+12>>2]=1;F[b+18|0]=0;$e(a,-2147483641,b);b=Qb(28);H[b+24>>2]=0;G[b+16>>1]=0;H[b+4>>2]=424656;H[b>>2]=424608;H[b+8>>2]=5;H[b+12>>2]=1;F[b+18|0]=0;$e(a,-2147483640,b)}function Qca(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if(K[f>>2]>=g>>>0){break a}o=N(H[a+272>>2],3);j=H[a+396>>2];p=j+8|0;while(1){b:{c:{d:{h=H[c>>2];if(h>>>0>>0){i=H[j+52>>2];k=H[j+60>>2]-i|0;l=d-h|0;l=k>>>0>>0?k:l;zb[H[H[a+408>>2]+4>>2]](a,(h<<2)+b|0,p,i,l);e:{if(H[j+48>>2]!=H[a+32>>2]){break e}i=H[a+76>>2];if((i|0)<=0){break e}k=0;h=H[a+272>>2];if((h|0)<=0){break e}while(1){if((h|0)>0){m=(k<<2)+j|0;i=1;while(1){h=H[m+8>>2];ug(h,0,h,0-i|0,1,H[a+28>>2]);h=H[a+272>>2];n=(h|0)>(i|0);i=i+1|0;if(n){continue}break}i=H[a+76>>2]}k=k+1|0;if((k|0)<(i|0)){continue}break}}H[c>>2]=l+H[c>>2];i=l+H[j+52>>2]|0;H[j+52>>2]=i;H[j+48>>2]=H[j+48>>2]-l;h=H[j+60>>2];break d}if(H[j+48>>2]){break a}i=H[j+52>>2];h=H[j+60>>2];if((i|0)>=(h|0)){break d}l=0;k=H[a+76>>2];if((k|0)>0){while(1){if((h|0)>(i|0)){k=H[((l<<2)+j|0)+8>>2];m=H[a+28>>2];n=i-1|0;while(1){ug(k,n,k,i,1,m);i=i+1|0;if((h|0)!=(i|0)){continue}break}k=H[a+76>>2]}l=l+1|0;if((l|0)<(k|0)){h=H[j+60>>2];i=H[j+52>>2];continue}break}h=H[j+60>>2]}H[j+52>>2]=h;break c}if((h|0)!=(i|0)){break b}}zb[H[H[a+412>>2]+4>>2]](a,p,H[j+56>>2],e,H[f>>2]);H[f>>2]=H[f>>2]+1;i=H[a+272>>2];h=i+H[j+56>>2]|0;H[j+56>>2]=(h|0)<(o|0)?h:0;h=H[j+52>>2];if((h|0)>=(o|0)){H[j+52>>2]=0;h=0}H[j+60>>2]=h+i}if(K[f>>2]>>0){continue}break}}}function Ce(a,b,c){a=a|0;b=+b;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-144|0;xb=e;a:{if((c|0)!=-1){break a}c=0;if(P(b)<2147483648){f=~~b}else{f=-2147483648}if(+(f|0)==b){break a}c=2;d=b<0?-b:b;if(d>1){break a}c=3;d=d*10;if(d>=1){break a}c=4;d=d*10;if(d>=1){break a}c=5;d=d*10;if(d>=1){break a}c=6;d=d*10;if(d>=1){break a}c=7;d=d*10;if(d>=1){break a}c=8;d=d*10;if(d>=1){break a}c=9;d=d*10;if(d>=1){break a}c=10;d=d*10;if(d>=1){break a}c=11;d=d*10;if(d>=1){break a}c=12;if(d*10>=1){break a}c=0}H[e+4>>2]=0;H[197455]=0;H[e+64>>2]=398820;H[e>>2]=398800;H[e+8>>2]=398580;g=e- -64|0;h=e+12|0;ba(1700,g|0,h|0);f=H[197455];H[197455]=0;b:{c:{if((f|0)!=1){H[e+136>>2]=0;H[e+140>>2]=-1;H[197455]=0;H[e+64>>2]=398600;H[e>>2]=398560;H[e+8>>2]=398580;k=aa(1701,h|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){break c}break b}break b}H[e+44>>2]=0;H[e+48>>2]=0;H[e+52>>2]=0;H[e+56>>2]=0;H[e+60>>2]=24;H[e+12>>2]=398960;f=e+8|0;i=H[e+8>>2]-12|0;j=f+H[i>>2]|0;H[j+4>>2]=H[j+4>>2]&-261|4;H[(f+H[i>>2]|0)+8>>2]=c;H[197455]=0;Ra(1702,f|0,+b)|0;c=H[197455];H[197455]=0;if((c|0)!=1){H[197455]=0;ba(1703,a|0,h|0);a=H[197455];H[197455]=0;if((a|0)!=1){H[e+64>>2]=398600;H[e>>2]=398560;H[e+12>>2]=398960;H[e+8>>2]=398580;if(F[e+55|0]<0){Kb(H[e+44>>2])}wf(k);ge(g);xb=e+144|0;return}}a=$()|0;_()|0;iq(e);ea(a|0);X()}a=$()|0;_()|0;ge(g);ea(a|0);X()}function VK(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=H[a+804>>2];a:{b:{if(e){d=6;if(K[a+28>>2]<=b>>>0){break a}b=H[e+(b<<2)>>2];break b}d=6;if(K[a+800>>2]<=b>>>0){break a}}d=2;c:{d:{switch(H[a+796>>2]-1|0){case 0:case 1:b=H[a+788>>2]+N(b,48)|0;f=I[b+52|0];G[c>>1]=f;g=I[b+53|0];G[c+2>>1]=g;j=F[b+24|0];e=j<<6;H[c+12>>2]=e;h=F[b+25|0];d=h<<6;H[c+16>>2]=d;i=F[b+33|0];e:{f:{if((h|0)>0){if((i|0)>=0){break e}d=0-d|0;break f}if(h|j){break e}d=F[b+32|0];if(d|i){e=d<<6;H[c+12>>2]=e;d=i<<6;break f}e=g<<6;H[c+12>>2]=e;d=0}H[c+16>>2]=d}H[c+20>>2]=e-d;if((d|0)==(e|0)){e=g<<6;H[c+20>>2]=e;H[c+16>>2]=d-e}H[c+24>>2]=F[b+31|0]+(I[b+26|0]+F[b+30|0]|0)<<6;b=a+178|0;break c;case 2:break d;default:break a}}d=3;b=H[a+788>>2]+(b<<2)|0;b=I[b+8|0]|I[b+9|0]<<8|(I[b+10|0]<<16|I[b+11|0]<<24);e=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(K[a+864>>2]>>0){break a}b=H[a+104>>2];d=bc(b,e+H[a+860>>2]|0);if(d){break a}d=Jc(b,4);if(d){break a}e=Tc(b);Tc(b);wc(b);b=a+178|0;d=J[b>>1];G[c+2>>1]=e;G[c>>1]=e;e=e<<6;k=c,l=ic(G[a+220>>1],e,d),H[k+12>>2]=l;k=c,l=ic(G[a+222>>1],e,d),H[k+16>>2]=l;k=c,l=ic(G[a+224>>1]+(G[a+220>>1]-G[a+222>>1]|0)|0,e,d),H[k+20>>2]=l;k=c,l=ic(J[a+226>>1],e,d),H[k+24>>2]=l;f=J[c>>1]}k=c,l=ic(f,4194304,J[b>>1]),H[k+4>>2]=l;k=c,l=ic(J[c+2>>1],4194304,J[b>>1]),H[k+8>>2]=l;d=0}return d|0}function Qn(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;a:{b:{d=H[a+24>>2];c:{if(d){d=d-1|0;H[a+24>>2]=d;if(d>>>0>=K[a+32>>2]){d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);i=+z();break c}i=M[H[a+36>>2]+(d<<3)>>3];break c}F[a+20|0]=1;d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);i=+z()}d:{if(P(i)<2147483648){d=~~i;break d}d=-2147483648}f=d+H[b>>2]|0;e:{if((f|0)<0){break e}d=H[b+4>>2];if(!d){break e}d=I[d|0]|I[d+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<=f>>>0){break e}e=H[a+92>>2];if(e>>>0<10){break b}}F[a+40|0]=1;break a}d=H[a+4>>2];H[a+44>>2]=H[a>>2];H[a+48>>2]=d;F[a+60|0]=I[a+16|0];d=H[a+12>>2];H[a+52>>2]=H[a+8>>2];H[a+56>>2]=d;d=a+44|0;f:{if(e>>>0>2]){H[a+92>>2]=e+1;h=H[d+4>>2];e=H[a+104>>2]+N(e,28)|0;H[e>>2]=H[d>>2];H[e+4>>2]=h;H[e+24>>2]=H[d+24>>2];h=H[d+20>>2];H[e+16>>2]=H[d+16>>2];H[e+20>>2]=h;h=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=h;break f}F[a+88|0]=1}g:{h:{b=H[b+4>>2];if(b){e=I[b|0]|I[b+1|0]<<8;if(((e<<8|e>>>8)&65535)>>>0>f>>>0){break h}}H[g+8>>2]=H[40910];b=H[40909];H[g>>2]=H[40908];H[g+4>>2]=b;break g}Ri(g,b,f)}b=H[g+4>>2];H[d>>2]=H[g>>2];H[d+4>>2]=b;H[d+8>>2]=H[g+8>>2];H[a+68>>2]=f;H[a- -64>>2]=c;F[a+60|0]=0;H[a+56>>2]=0;F[a+16|0]=I[d+16|0];b=H[d+12>>2];H[a+8>>2]=H[d+8>>2];H[a+12>>2]=b;b=H[d+4>>2];H[a>>2]=H[d>>2];H[a+4>>2]=b}xb=g+16|0}function cE(){var a=0,b=0,c=0;a=H[196344];a:{if(a){break a}while(1){a=oc(1,112);if(a){H[a+8>>2]=0;H[a>>2]=1;H[a+4>>2]=1;if(H[196020]){H[196020]=0}if(H[196019]){H[196019]=H[196019]+1}H[a+12>>2]=784076;b=H[196024];H[a+16>>2]=H[196023];H[a+20>>2]=b;b=H[196026];H[a+24>>2]=H[196025];H[a+28>>2]=b;b=H[196028];H[a+32>>2]=H[196027];H[a+36>>2]=b;b=H[196030];H[a+40>>2]=H[196029];H[a+44>>2]=b;b=H[196032];H[a+48>>2]=H[196031];H[a+52>>2]=b;b=H[196034];H[a+56>>2]=H[196033];H[a+60>>2]=b;c=H[196036];b=a- -64|0;H[b>>2]=H[196035];H[b+4>>2]=c;b=H[196038];H[a+72>>2]=H[196037];H[a+76>>2]=b}else{a=784076}if(H[a+4>>2]){b=H[a+80>>2];if(b){zb[b|0](H[a+48>>2])}H[a+16>>2]=787;H[a+80>>2]=0;H[a+48>>2]=0}if(H[a+4>>2]){b=H[a+88>>2];if(b){zb[b|0](H[a+56>>2])}H[a+24>>2]=788;H[a+88>>2]=0;H[a+56>>2]=0}if(H[a+4>>2]){b=H[a+92>>2];if(b){zb[b|0](H[a+60>>2])}H[a+28>>2]=789;H[a+92>>2]=0;H[a+60>>2]=0}if(H[a+4>>2]){b=H[a+96>>2];if(b){zb[b|0](H[a- -64>>2])}H[a+32>>2]=790;H[a+96>>2]=0;H[a- -64>>2]=0}if(H[a+4>>2]){b=H[a+100>>2];if(b){zb[b|0](H[a+68>>2])}H[a+36>>2]=791;H[a+100>>2]=0;H[a+68>>2]=0}if(H[a+4>>2]){b=H[a+104>>2];if(b){zb[b|0](H[a+72>>2])}H[a+40>>2]=792;H[a+104>>2]=0;H[a+72>>2]=0}if(H[a+4>>2]){H[a+4>>2]=0}b=H[196344];a=a?a:784076;H[196344]=b?b:a;if(!b){break a}if(!(!a|(a|0)==784076)){Pj(a)}a=H[196344];if(!a){continue}break}}return a}function Jca(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;f=H[a+420>>2];if(H[a+236>>2]){d=H[f+68>>2];if(!d){Sk(a,H[f+72>>2]);d=H[a+236>>2];H[f+72>>2]=H[f+72>>2]+1&7}H[f+68>>2]=d-1}k=H[b>>2];l=H[a+380>>2];d=H[a+292>>2];b=H[a+364>>2];g=b;a:{if((b|0)<=0){break a}g=b;while(1){c=G[(H[(g<<2)+l>>2]<<1)+k>>1];b:{if((c|0)>=0){if(!(c>>H[a+372>>2])){break b}break a}if(0-c>>H[a+372>>2]){break a}}c=(g|0)>1;g=g-1|0;if(c){continue}break}g=0}i=H[d+24>>2];c=H[a+360>>2];if((g|0)>=(c|0)){n=f+204|0;o=a+i|0;m=(i<<2)+f|0;while(1){d=(H[m+140>>2]+N(c,3)|0)-3|0;Lc(a,d,0);b=c;c:{d:{e:{while(1){f:{g:{c=G[(H[(b<<2)+l>>2]<<1)+k>>1];h:{if((c|0)>=0){c=c>>H[a+372>>2];if(!c){break g}e=0;break h}c=0-c>>H[a+372>>2];if(!c){break g}e=1}Lc(a,d+1|0,1);Lc(a,n,e);d=d+2|0;h=c-1|0;if(!h){break e}Lc(a,d,1);if((h|0)==1){break e}Lc(a,d,1);e=H[m+140>>2]+(I[o+184|0]<(b|0)?217:189)|0;d=2;if(h>>>0<=3){break f}c=h;while(1){j=e;Lc(a,e,1);e=e+1|0;d=d<<1;p=c>>>0<8;c=c>>1;if(!p){continue}break}Lc(a,e,0);if(!d){break c}e=j+15|0;break d}Lc(a,d+1|0,0);b=b+1|0;d=d+3|0;continue}break}Lc(a,e,0);e=e+14|0;break d}Lc(a,d,0);break c}while(1){c=d>>1;Lc(a,e,(c&h)!=0);j=d>>>0>3;d=c;if(j){continue}break}}c=b+1|0;if((b|0)<(g|0)){continue}break}b=H[a+364>>2]}if((b|0)>=(c|0)){Lc(a,(H[((i<<2)+f|0)+140>>2]+N(c,3)|0)-3|0,1)}return 1}function fp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;H[c+12>>2]=H[a>>2];d=H[a+8>>2];be(c+12|0,d);b=H[c+12>>2];a:{if(d>>>0<=b>>>0){break a}b:{c:{d:{e:{f:{g:{h:{i:{e=I[b|0];switch(e-40|0){case 1:case 2:case 3:case 4:case 5:case 6: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 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 52:break c;case 7:break d;case 22:break e;case 20:break f;case 0:break g;case 51:case 53:break i;default:break h}}H[c+12>>2]=b+1;break b}if((e|0)!=123){break c}e=$w(c+12|0,d);break a}e=cp(c+12|0,d);break a}if(!(I[b+1|0]!=60|b+1>>>0>=d>>>0)){H[c+12>>2]=b+2;break b}e=Xw(c+12|0,d);break a}f=b+1|0;H[c+12>>2]=f;e=3;if(I[f|0]!=62|d>>>0<=f>>>0){break a}H[c+12>>2]=b+2;break b}b=b+1|0}j:{if(b>>>0>=d>>>0){break j}while(1){k:{switch(I[b|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break j;default:break k}}b=b+1|0;if((d|0)!=(b|0)){continue}break}b=d}H[c+12>>2]=b}e=0}b=H[c+12>>2];if(b>>>0>>0){e=(b|0)==H[a>>2]?3:e}H[a+12>>2]=e;H[a>>2]=b>>>0>d>>>0?d:b;xb=c+16|0}function dn(a,b,c,d,e){var f=0,g=0;g=xb-256|0;xb=g;H[e+16>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e+4>>2]=c;H[e>>2]=0;a:{if((d|0)==-1){H[e>>2]=b;break a}if((d|0)>=3){pf(g,1,1,d);Ci(a,g,264832)}PB(a,2);H[a+212>>2]=b;H[a+216>>2]=c;b=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=b;c=a+212|0;b:{c:{while(1){if(_f(c,0)){b=H[a+236>>2];if(b){break c}hc(a,264530);X()}if(!H[a+228>>2]){b=H[e+8>>2];d=H[e+12>>2];d:{if((b|0)<(d|0)){break d}f=b+4|0;H[e+12>>2]=f;b=H[e+16>>2];f=Rd(a,f<<2);H[e+16>>2]=f;if(!b){break d}Ob(f,b,d<<2);cc(a,b)}b=Rd(a,H[a+272>>2]);d=H[e+8>>2]<<2;H[d+H[e+16>>2]>>2]=b;Ob(H[d+H[e+16>>2]>>2],H[a+268>>2],H[a+272>>2]);H[e+8>>2]=H[e+8>>2]+1;b=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=b}if(H[a+216>>2]){continue}break}while(1){e:{b=_f(c,4);if(b){if((b|0)!=1){break e}b=H[a+272>>2];a=b-H[a+228>>2]|0;c=(a>>>0>b>>>0?0:a)+N(b,H[e+8>>2])|0;break a}if(H[a+228>>2]){continue}b=H[e+8>>2];d=H[e+12>>2];f:{if((b|0)<(d|0)){break f}f=b+4|0;H[e+12>>2]=f;b=H[e+16>>2];f=Rd(a,f<<2);H[e+16>>2]=f;if(!b){break f}Ob(f,b,d<<2);cc(a,b)}b=Rd(a,H[a+272>>2]);d=H[e+8>>2]<<2;H[d+H[e+16>>2]>>2]=b;Ob(H[d+H[e+16>>2]>>2],H[a+268>>2],H[a+272>>2]);H[e+8>>2]=H[e+8>>2]+1;b=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=b;continue}break}b=H[a+236>>2];if(b){break b}hc(a,264530);X()}hc(a,b);X()}hc(a,b);X()}xb=g+256|0;return c}function Oaa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;k=(g|0)/8|0;a:{if(!f){break a}f=f-1|0;j=H[a+64>>2];if(e>>>0>=8){l=(e-(e-8&-8)|0)-9|0;while(1){a=f;g=e;while(1){d=i;c=b;f=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[f>>2];H[b+4>>2]=H[f+4>>2];H[b+8>>2]=H[f+8>>2];H[b+12>>2]=H[f+12>>2];H[b+16>>2]=H[f+16>>2];H[b+20>>2]=H[f+20>>2];H[b+24>>2]=H[f+24>>2];H[b+28>>2]=H[f+28>>2];b=b+32|0;i=i+1|0;g=g-8|0;if(g>>>0>7){continue}break}b:{if(g){g=2;i=H[(I[i|0]<<2)+j>>2];c:{switch(l|0){case 6:H[c+32>>2]=H[i>>2];b=c+36|0;i=i+4|0;case 5:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;case 4:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;case 3:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;case 2:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;case 1:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;break;case 0:break c;default:break b}}H[b>>2]=H[i>>2];b=b+4|0;break b}g=1}f=a-1|0;i=(d+k|0)+g|0;b=(h<<2)+b|0;if(a){continue}break}break a}if(!e){break a}c=e-1|0;while(1){a=f;d=i+1|0;f=H[(I[i|0]<<2)+j>>2];d:{switch(c|0){case 6:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 5:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 4:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 3:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 2:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 1:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 0:H[b>>2]=H[f>>2];b=b+4|0;break;default:break d}}f=a-1|0;i=d+k|0;b=(h<<2)+b|0;if(a){continue}break}}} +function BP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;a=xb-16|0;xb=a;H[a+12>>2]=c;H[a+8>>2]=f;H[a+12>>2]=c;H[a+8>>2]=f;a:{b:{while(1){c:{i=H[a+12>>2];if(i>>>0>=d>>>0){break c}l=H[a+8>>2];if(l>>>0>=g>>>0){break c}f=F[i|0];c=f&255;d:{if((f|0)>=0){if(c>>>0<=1114111){f=1;break d}b=2;break a}b=2;if(f>>>0<4294967234){break a}if(f>>>0<=4294967263){if((d-i|0)<2){break b}j=I[i+1|0];if((j&192)!=128){break a}f=2;c=j&63|c<<6&1984;if(c>>>0<=1114111){break d}break a}if(f>>>0<=4294967279){if((d-i|0)<3){break b}k=I[i+2|0];j=I[i+1|0];e:{f:{if((c|0)!=237){if((c|0)!=224){break f}if((j&224)==160){break e}break a}if((j&224)==128){break e}break a}if((j&192)!=128){break a}}if((k&192)!=128){break a}f=3;c=k&63|(c<<12&61440|(j&63)<<6);if(c>>>0<=1114111){break d}break a}if(f>>>0>4294967284){break a}if((d-i|0)<4){break b}k=I[i+2|0];j=I[i+1|0];g:{h:{switch(c-240|0){case 0:if((j+112&255)>>>0<48){break g}break a;case 4:if((j&240)==128){break g}break a;default:break h}}if((j&192)!=128){break a}}if((k&192)!=128){break a}m=I[i+3|0];if((m&192)!=128){break a}f=4;c=m&63|(k<<6&4032|(c<<18&1835008|(j&63)<<12));if(c>>>0>1114111){break a}}H[l>>2]=c;H[a+12>>2]=f+i;H[a+8>>2]=H[a+8>>2]+4;continue}break}b=d>>>0>i>>>0;break a}b=1}H[e>>2]=H[a+12>>2];H[h>>2]=H[a+8>>2];xb=a+16|0;return b|0}function Jaa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;k=(g|0)/8|0;a:{if(!f){break a}f=f-1|0;j=H[a+60>>2];if(e>>>0>=8){l=(e-(e-8&-8)|0)-9|0;while(1){a=f;g=e;while(1){d=i;c=b;f=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[f>>2];H[b+4>>2]=H[f+4>>2];H[b+8>>2]=H[f+8>>2];H[b+12>>2]=H[f+12>>2];H[b+16>>2]=H[f+16>>2];H[b+20>>2]=H[f+20>>2];H[b+24>>2]=H[f+24>>2];H[b+28>>2]=H[f+28>>2];b=b+32|0;i=i+1|0;g=g-8|0;if(g>>>0>7){continue}break}b:{if(g){g=2;i=H[(I[i|0]<<2)+j>>2];c:{switch(l|0){case 6:H[c+32>>2]=H[i>>2];b=c+36|0;i=i+4|0;case 5:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;case 4:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;case 3:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;case 2:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;case 1:H[b>>2]=H[i>>2];b=b+4|0;i=i+4|0;break;case 0:break c;default:break b}}H[b>>2]=H[i>>2];b=b+4|0;break b}g=1}f=a-1|0;i=(d+k|0)+g|0;b=(h<<2)+b|0;if(a){continue}break}break a}if(!e){break a}c=e-1|0;while(1){a=f;d=i+1|0;f=H[(I[i|0]<<2)+j>>2];d:{switch(c|0){case 6:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 5:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 4:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 3:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 2:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 1:H[b>>2]=H[f>>2];b=b+4|0;f=f+4|0;case 0:H[b>>2]=H[f>>2];b=b+4|0;break;default:break d}}f=a-1|0;i=d+k|0;b=(h<<2)+b|0;if(a){continue}break}}}function o6(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;g=xb-16|0;xb=g;H[197455]=0;h=da(1705,g|0,a|0)|0;e=H[197455];H[197455]=0;a:{b:{c:{if((e|0)!=1){d:{e:{f:{if(!I[g|0]){break f}e=H[H[a>>2]-12>>2]+a|0;j=H[e+4>>2];k=H[e+24>>2];d=H[e+76>>2];if((d|0)==-1){H[197455]=0;d=H[e+28>>2];H[g+8>>2]=d;H[d+4>>2]=H[d+4>>2]+1;d=H[197455];H[197455]=0;if((d|0)==1){break e}H[197455]=0;d=da(1708,g+8|0,790096)|0;f=H[197455];H[197455]=0;g:{if((f|0)!=1){f=H[H[d>>2]+44>>2];H[197455]=0;d=da(f|0,d|0,32)|0;f=H[197455];H[197455]=0;if((f|0)!=1){break g}}b=ha(0)|0;_()|0;c=H[g+8>>2];e=H[c+4>>2]-1|0;H[c+4>>2]=e;if((e|0)==-1){zb[H[H[c>>2]+8>>2]](c)}break d}f=H[g+8>>2];i=H[f+4>>2]-1|0;H[f+4>>2]=i;if((i|0)==-1){zb[H[H[f>>2]+8>>2]](f)}H[e+76>>2]=d}H[197455]=0;c=(c<<2)+b|0;b=ma(1709,k|0,b|0,((j&176)==32?c:b)|0,c|0,e|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}if(b){break f}b=H[H[a>>2]-12>>2]+a|0;c=H[b+16>>2];H[197455]=0;ba(1706,b|0,c|5);b=H[197455];H[197455]=0;if((b|0)!=1){break f}b=ha(0)|0;_()|0;break d}Hg(h);break b}b=ha(0)|0;_()|0}Hg(h);break c}b=ha(0)|0;_()|0}sa(b|0)|0;b=H[H[a>>2]-12>>2];H[197455]=0;ia(1710,a+b|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}ra()}xb=g+16|0;return a|0}a=$()|0;_()|0;H[197455]=0;na(1711);b=H[197455];H[197455]=0;if((b|0)==1){ha(0)|0;_()|0;Zb();X()}ea(a|0);X()}function pca(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;f=Nb(a,0,256);while(1){d=H[(j<<2)+b>>2]+c|0;k=I[d+5|0];l=I[d+1|0];h=k+l|0;i=I[d+3|0];g=I[d+4|0];m=I[d+2|0];e=g+m|0;o=I[d+6|0];p=I[d|0];d=o+p|0;n=e+d|0;H[f>>2]=((h+i|0)+n<<2)-3584;n=N(n-(i<<2)|0,2896);q=N(d-h|0,7223)+1024|0;d=N(d-e|0,7542);H[f+24>>2]=n+(q-d|0)>>11;e=N(h-e|0,2578);H[f+16>>2]=(e+q|0)+N(h-(i<<1)|0,-5793)>>11;H[f+8>>2]=(n+(d+e|0)|0)+1024>>11;d=m-g|0;h=p-o|0;i=N(d+h|0,5027)+1024|0;g=i+N(d,15326)|0;e=d;d=l-k|0;e=N(e+d|0,-11295);H[f+20>>2]=g+e>>11;g=e;e=N(h-d|0,1395);d=N(d+h|0,7663);H[f+12>>2]=((g+e|0)+d|0)+1024>>11;H[f+4>>2]=d+(i-e|0)>>11;f=f+32|0;j=j+1|0;if((j|0)!=7){continue}break}while(1){i=H[a+128>>2];e=H[a+64>>2];f=i+e|0;k=H[a+192>>2];l=H[a>>2];d=k+l|0;g=f+d|0;c=H[a+96>>2];h=H[a+160>>2];j=H[a+32>>2];b=h+j|0;H[a>>2]=N(g+(c+b|0)|0,10700)+16384>>15;g=N(g-(c<<2)|0,3783);m=N(d-b|0,9434)+16384|0;d=N(d-f|0,9850);H[a+192>>2]=g+(m-d|0)>>15;f=N(b-f|0,3367);H[a+128>>2]=(f+m|0)+N(b-(c<<1)|0,-7566)>>15;H[a+64>>2]=(g+(d+f|0)|0)+16384>>15;b=e-i|0;c=l-k|0;f=N(b+c|0,6565)+16384|0;e=f+N(b,20017)|0;d=b;b=j-h|0;d=N(d+b|0,-14752);H[a+160>>2]=e+d>>15;e=d;d=N(c-b|0,1822);b=N(b+c|0,10009);H[a+96>>2]=((e+d|0)+b|0)+16384>>15;H[a+32>>2]=b+(f-d|0)>>15;a=a+4|0;r=r+1|0;if((r|0)!=7){continue}break}}function IE(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;i=xb-16|0;xb=i;d=H[b+100>>2];c=I[a+2|0]|I[a+3|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}else{e=163632}c=0;a:{if((Gc(e,H[H[d+80>>2]+N(H[d+64>>2],20)>>2])|0)==-1){break a}c=H[d+64>>2];H[b+40>>2]=1;H[b+4>>2]=c;e=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[e+68>>2];F[b+24|0]=(c|0)==H[e+64>>2]?I[(H[e+80>>2]+N(c,20)|0)+15|0]:0;e=b+4|0;if(!Ne(e,i+12|0)){c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,H[d+64>>2],H[i+12>>2],1,0);c=0;break a}c=163632;g=I[a+8|0]|I[a+9|0]<<8;if(g){c=((g<<8|g>>>8)&65535)+a|0}j=I[a+4|0]|I[a+5|0]<<8;g=I[a+6|0]|I[a+7|0]<<8;c=Kn(c,H[H[d+80>>2]+N(H[d+64>>2],20)>>2]);h=I[a+10|0]|I[a+11|0]<<8;if(h){f=((h<<8|h>>>8)&65535)+a|0}else{f=163632}h=Kn(f,H[H[d+80>>2]+N(H[e>>2],20)>>2]);b:{f=I[a+12|0]|I[a+13|0]<<8;if(c>>>0<((f<<8|f>>>8)&65535)>>>0){f=I[a+14|0]|I[a+15|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0>h>>>0){break b}}c=0;if(!(I[d+16|0]&64)){break a}Rc(d,2,H[d+64>>2],H[e>>2]+1|0,1,0);c=0;break a}j=jma(j);c=N(h+N(c,f)|0,jma(g)+j|0);c=(c|0)<0?163632:((c<<1)+a|0)+16|0;c:{if(k=1,l=Wh(a+4|0,b,a,c,H[d+88>>2]+N(H[d+64>>2],20)|0),m=Wh(a+6|0,b,a,c+(j<<1)|0,H[d+88>>2]+N(H[b+4>>2],20)|0),m?k:l){ag(d,H[d+64>>2],H[e>>2]+1|0);break c}if(!(I[d+16|0]&64)){break c}Rc(d,2,H[d+64>>2],H[e>>2]+1|0,1,0)}H[d+64>>2]=H[e>>2]+((g|0)!=0);c=1}xb=i+16|0;return c}function Xaa(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a=J[a+26>>1];d=N(a,g);g=e>>>0<8;j=h<<2;while(1){h=e;if(!g){while(1){H[b>>2]=I[i|0]|I[i+1|0]<<8|I[i+2|0]<<16|-16777216;c=a+i|0;H[b+4>>2]=I[c|0]|I[c+1|0]<<8|I[c+2|0]<<16|-16777216;c=a+c|0;H[b+8>>2]=I[c|0]|I[c+1|0]<<8|I[c+2|0]<<16|-16777216;c=a+c|0;H[b+12>>2]=I[c|0]|I[c+1|0]<<8|I[c+2|0]<<16|-16777216;c=a+c|0;H[b+16>>2]=I[c|0]|I[c+1|0]<<8|I[c+2|0]<<16|-16777216;c=a+c|0;H[b+20>>2]=I[c|0]|I[c+1|0]<<8|I[c+2|0]<<16|-16777216;c=a+c|0;H[b+24>>2]=I[c|0]|I[c+1|0]<<8|I[c+2|0]<<16|-16777216;c=a+c|0;H[b+28>>2]=I[c|0]|I[c+1|0]<<8|I[c+2|0]<<16|-16777216;b=b+32|0;i=a+c|0;h=h-8|0;if(h>>>0>7){continue}break}}f=f-1|0;a:{switch(h-1|0){case 6:H[b>>2]=I[i|0]|I[i+1|0]<<8|I[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 5:H[b>>2]=I[i|0]|I[i+1|0]<<8|I[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 4:H[b>>2]=I[i|0]|I[i+1|0]<<8|I[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 3:H[b>>2]=I[i|0]|I[i+1|0]<<8|I[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 2:H[b>>2]=I[i|0]|I[i+1|0]<<8|I[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 1:H[b>>2]=I[i|0]|I[i+1|0]<<8|I[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 0:H[b>>2]=I[i|0]|I[i+1|0]<<8|I[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;break;default:break a}}i=d+i|0;b=b+j|0;if(f){continue}break}}}function Jn(a,b,c,d,e,f,g,h,i,j){var k=0,l=0,m=0,n=0,o=0,p=0,q=0;k=xb-272|0;xb=k;l=H[H[a+100>>2]+64>>2];H[k+264>>2]=0;a:{b:{c:{if(!Ur(a,d,e,H[j>>2],H[j+8>>2],k+264|0,k,0)){break c}n=H[k+264>>2];if(!n){l=0;break c}p=H[j+12>>2];q=H[j>>2];H[a+84>>2]=f;e=n-1|0;H[a+48>>2]=e;m=H[H[a+52>>2]+100>>2];H[a+88>>2]=H[m+68>>2];l=0;l=(e|0)==H[m+64>>2]?I[(H[m+80>>2]+N(e,20)|0)+15|0]:l;m=a+48|0;H[a+80>>2]=g;H[a+76>>2]=p;H[a+72>>2]=q;F[a+68|0]=l;l=n;if(!f){break b}d:{if(Ne(m,k+268|0)){e=0;break d}l=H[k+268>>2];break c}e:{while(1){e=e+1|0;if((f|0)!=(e|0)){if(Ne(m,k+268|0)){continue}break e}break}l=H[m>>2]+1|0;break b}l=H[k+268>>2];if(e>>>0>=f>>>0){break b}}a=H[a+100>>2];if(!(I[a+16|0]&64)){break a}Rc(a,2,H[a+64>>2],l,1,0);break a}f=H[a+100>>2];e=H[f+(I[f+61|0]?72:64)>>2];o=H[j+4>>2];p=H[j>>2];H[a+84>>2]=b;H[a+48>>2]=e;g=H[H[a+52>>2]+100>>2];H[a+88>>2]=H[g+68>>2];j=0;j=H[g+64>>2]==(e|0)?I[(H[g+80>>2]+N(e,20)|0)+15|0]:j;H[a+80>>2]=c;H[a+76>>2]=o;H[a+72>>2]=p;F[a+68|0]=j;f:{g:{if(b){if(!ah(m,k+268|0)){break g}j=0;h:{while(1){j=j+1|0;if((j|0)==(b|0)){e=H[m>>2];break h}if(ah(m,k+268|0)){continue}break}e=H[k+268>>2];c=e;if(b>>>0>j>>>0){break f}}f=H[a+100>>2]}o=1;Rc(f,3,e,l,1,1);UE(a,d,k,h,i,n);break a}c=H[k+268>>2]}o=0;a=H[a+100>>2];if(!(I[a+16|0]&64)){break a}Rc(a,2,c,l,0,1)}xb=k+272|0;return o}function VT(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0,g=0;d=xb-32|0;xb=d;H[197455]=0;da(1705,d+24|0,a|0)|0;c=H[197455];H[197455]=0;a:{b:{c:{if((c|0)!=1){d:{if(!I[d+24|0]){break d}c=H[H[a>>2]-12>>2];H[197455]=0;c=H[(a+c|0)+28>>2];H[d+16>>2]=c;H[c+4>>2]=H[c+4>>2]+1;c=H[197455];H[197455]=0;e:{f:{g:{if((c|0)!=1){H[197455]=0;f=aa(3344,d+16|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break g}c=H[d+16>>2];e=H[c+4>>2]-1|0;H[c+4>>2]=e;if((e|0)==-1){zb[H[H[c>>2]+8>>2]](c)}H[d+8>>2]=H[(H[H[a>>2]-12>>2]+a|0)+24>>2];c=H[H[a>>2]-12>>2];H[197455]=0;c=a+c|0;e=aa(3345,c|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break f}g=H[d+8>>2];H[197455]=0;c=fb(3346,f|0,g|0,c|0,e|0,+b)|0;e=H[197455];H[197455]=0;if((e|0)==1){break f}H[d+16>>2]=c;if(H[d+16>>2]){break d}c=H[H[a>>2]-12>>2];H[197455]=0;ba(3339,a+c|0,5);c=H[197455];H[197455]=0;if((c|0)!=1){break d}c=ha(0)|0;_()|0;break e}c=ha(0)|0;_()|0;break e}c=ha(0)|0;_()|0;e=H[d+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}break e}c=ha(0)|0;_()|0}Hg(d+24|0);break c}Hg(d+24|0);break b}c=ha(0)|0;_()|0}sa(c|0)|0;c=H[H[a>>2]-12>>2];H[197455]=0;ia(1710,a+c|0);c=H[197455];H[197455]=0;if((c|0)==1){break a}ra()}xb=d+32|0;return a|0}a=$()|0;_()|0;H[197455]=0;na(1711);d=H[197455];H[197455]=0;if((d|0)!=1){ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function hh(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;h=xb+-64|0;xb=h;i=a+11724|0;yo(a,H[a+11720>>2],H[i>>2],b,c,h+20|0,h+16|0);yo(a,d,e,f,g,h+12|0,h+8|0);j=H[a+4>>2];H[j+16>>2]=H[j+16>>2]+(N(e-c>>16,b>>16)-N(d-b>>16,c>>16)|0);j=H[h+20>>2];l=j+H[a+11720>>2]|0;H[h>>2]=l;k=H[h+16>>2];i=k+H[i>>2]|0;H[h+4>>2]=i;n=H[h+8>>2];o=H[h+12>>2];c=c+k|0;j=b+j|0;if(I[a+11667|0]){H[h+56>>2]=1;b=H[a+11732>>2];H[h+24>>2]=H[a+11728>>2];H[h+28>>2]=b;if(!I[a+20|0]){Vi(a,H[a+11736>>2],H[a+11740>>2])}k=Rb(H[a+11644>>2],l);m=Rb(H[a+11648>>2],i);b=Jf(a+8|0,i);k=k+m|0;p=h,q=(Rb(H[H[a>>2]+64>>2],k)+Rb(H[H[a>>2]+72>>2],b)|0)+H[a+11656>>2]|0,H[p+32>>2]=q;p=h,q=(Rb(H[H[a>>2]+68>>2],k)+Rb(H[H[a>>2]+76>>2],b)|0)+H[a+11660>>2]|0,H[p+36>>2]=q;b=H[a+4>>2];zb[H[b>>2]](b,h+24|0);k=H[h+32>>2];m=H[h+36>>2];b=0;H[a+11704>>2]=b|l;H[a+11708>>2]=i;H[a+11728>>2]=k;H[a+11732>>2]=m;H[a+11712>>2]=b|j;H[a+11716>>2]=c;F[a+11664|0]=1;F[a+11667|0]=0}if(I[a+11744|0]){fk(a,a+8|0,h,j,c,0)}H[a+11748>>2]=4;F[a+11744|0]=1;b=H[h+4>>2];i=H[h>>2];H[a+11780>>2]=g+n;H[a+11776>>2]=f+o;H[a+11772>>2]=e+n;H[a+11768>>2]=d+o;H[a+11752>>2]=i;H[a+11756>>2]=b;H[a+11760>>2]=j;H[a+11764>>2]=c;b=H[a+11676>>2];if(I[b+5|0]){gk(a+8|0,H[a+11668>>2],H[a+11672>>2],b,H[a+11680>>2],0)}H[a+11724>>2]=g;H[a+11720>>2]=f;xb=h- -64|0}function H5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;a:{if(!c){break a}d=332;d=I[c+368|0]?d:(H[c+360>>2]<<2)+368|0;H[e+8>>2]=d;H[e+4>>2]=82;H[a+8>>2]=H[a+8>>2]+d;H[a+12>>2]=H[a+12>>2]+1;G[a+16>>1]=J[a+16>>1]+1;Lb(H[a+4>>2],e+4|0,4);Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],c+16|0,4);Lb(H[a+4>>2],c+20|0,4);Lb(H[a+4>>2],c+24|0,4);Lb(H[a+4>>2],c+28|0,1);Lb(H[a+4>>2],c+29|0,1);Lb(H[a+4>>2],c+30|0,1);Lb(H[a+4>>2],c+31|0,1);Lb(H[a+4>>2],c+32|0,1);Lb(H[a+4>>2],c+33|0,1);Lb(H[a+4>>2],c+34|0,1);Lb(H[a+4>>2],c+35|0,1);d=0;H[e+12>>2]=0;while(1){b=(d<<1)+c|0;Lb(H[a+4>>2],J[b+36>>1]==52685?e+12|0:b+36|0,2);d=d+1|0;if((d|0)!=32){continue}break}d=0;H[e+12>>2]=0;while(1){b=(d<<1)+c|0;Lb(H[a+4>>2],J[b+100>>1]==52685?e+12|0:b+100|0,2);d=d+1|0;if((d|0)!=64){continue}break}d=0;H[e+12>>2]=0;while(1){b=(d<<1)+c|0;Lb(H[a+4>>2],J[b+228>>1]==52685?e+12|0:b+228|0,2);d=d+1|0;if((d|0)!=32){continue}break}d=0;H[e+12>>2]=0;while(1){b=(d<<1)+c|0;Lb(H[a+4>>2],J[b+292>>1]==52685?e+12|0:b+292|0,2);d=d+1|0;if((d|0)!=32){continue}break}if(I[c+368|0]){break a}Lb(H[a+4>>2],c+356|0,4);Lb(H[a+4>>2],c+360|0,4);if(!H[c+360>>2]){break a}d=0;while(1){Lb(H[a+4>>2],H[c+364>>2]+(d<<2)|0,4);d=d+1|0;if(d>>>0>2]){continue}break}}xb=e+16|0}function ML(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;i=-1;g=H[a+16>>2];a=I[g+6|0]|I[g+7|0]<<8|(I[g+8|0]<<16|I[g+9|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a:{if(!a){break a}j=g+13|0;while(1){b:{e=a+f>>>1|0;d=j+N(e,11)|0;h=d-3|0;h=I[h+1|0]<<8|I[h|0]<<16|I[h+2|0];c:{if(h>>>0>c>>>0){a=e;break c}if(c>>>0<=h>>>0){break b}f=e+1|0}if(a>>>0>f>>>0){continue}break a}break}e=I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24);d:{a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(!a){break d}c=a+g|0;a=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);h=c+7|0;f=0;while(1){if(a>>>0<=f>>>0){break d}c=a;a=a+f>>>1|0;j=h+(a<<2)|0;d=j-3|0;d=I[d+1|0]<<8|I[d|0]<<16|I[d+2|0];if(d>>>0>b>>>0){continue}i=1;f=a+1|0;a=c;if(d+I[j|0]>>>0>>0){continue}break}break a}a=e<<8&16711680|e<<24|(e>>>8&65280|e>>>24);e:{if(!a){break e}c=a+g|0;a=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(!a){break e}g=c+7|0;f=0;while(1){f:{c=a+f>>>1|0;e=g+N(c,5)|0;d=e-3|0;d=I[d+1|0]<<8|I[d|0]<<16|I[d+2|0];g:{if(d>>>0>b>>>0){a=c;break g}if(b>>>0<=d>>>0){break f}f=c+1|0}if(a>>>0>f>>>0){continue}break e}break}i=0;if(I[e+1|0]|I[e|0]<<8){break a}}i=-1}return i|0}function YH(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=xb-48|0;xb=b;c=H[a>>2];a:{if(c){break a}g=a-120|0;while(1){d=H[g>>2];if(!d){c=163632;break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;c=kd(d);F[b+40|0]=1;H[b+36>>2]=c;c=0;d=dd(d,1634626418);if(!(!d|!H[d>>2])){H[d>>2]=H[d>>2]+1}f=d;H[b+32>>2]=d;b:{c:{d:{e:{f:{while(1){F[b+24|0]=c;c=H[f+12>>2];H[b+4>>2]=c;e=H[f+16>>2];H[b+8>>2]=e+c;H[b+28>>2]=0;if(e>>>0<=67108862){e=e<<6;e=e>>>0>16384?e:16384;e=e>>>0<1073741823?e:1073741823}else{e=1073741823}H[b+12>>2]=e;H[b+20>>2]=0;H[b>>2]=0;if(!c){Wb(f);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;break b}e=jt(c,b);f=H[b+28>>2];g:{if(e){if(!f){break g}H[b+28>>2]=0;c=jt(c,b);f=H[b+28>>2];Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(!c){break c}if(!f){break f}break c}if(I[b+24|0]|!f){break e}e=ve(d);H[b+4>>2]=e;H[b+8>>2]=e+H[d+16>>2];f=H[b+32>>2];c=1;if(e){continue}break d}break}Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}if(H[d+4>>2]){H[d+4>>2]=0}break b}f=H[b+32>>2]}Wb(f);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}Wb(d);d=163632}c=d;if(!d){c=163632}d=H[a>>2];H[a>>2]=d?d:c;if(!d){break a}if(!(!c|(c|0)==163632)){Wb(c)}c=H[a>>2];if(!c){continue}break}}xb=b+48|0;return(K[c+16>>2]<12?163632:H[c+12>>2])|0}function NL(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;a:{i=H[a+16>>2];a=I[i+6|0]|I[i+7|0]<<8|(I[i+8|0]<<16|I[i+9|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);b:{if(!a){break b}j=i+13|0;while(1){c:{f=a+g>>>1|0;e=j+N(f,11)|0;h=e-3|0;h=I[h+1|0]<<8|I[h|0]<<16|I[h+2|0];d:{if(h>>>0>d>>>0){a=f;break d}if(d>>>0<=h>>>0){break c}g=f+1|0}if(a>>>0>g>>>0){continue}break b}break}f=I[e+4|0]|I[e+5|0]<<8|(I[e+6|0]<<16|I[e+7|0]<<24);e:{a=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(!a){break e}d=a+i|0;a=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);h=d+7|0;g=0;while(1){if(a>>>0<=g>>>0){break e}d=a;a=a+g>>>1|0;j=h+(a<<2)|0;e=j-3|0;e=I[e+1|0]<<8|I[e|0]<<16|I[e+2|0];if(e>>>0>c>>>0){continue}g=a+1|0;a=d;if(e+I[j|0]>>>0>>0){continue}break}return zb[H[H[b+12>>2]+12>>2]](b,c)|0}a=f<<8&16711680|f<<24|(f>>>8&65280|f>>>24);if(!a){break b}b=a+i|0;a=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(!a){break b}e=b+7|0;g=0;while(1){b=a+g>>>1|0;d=e+N(b,5)|0;f=d-3|0;f=I[f+1|0]<<8|I[f|0]<<16|I[f+2|0];f:{if(f>>>0>c>>>0){a=b;break f}if(c>>>0<=f>>>0){break a}g=b+1|0}if(a>>>0>g>>>0){continue}break}}return 0}return I[d+1|0]|I[d|0]<<8}function Sq(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;f=H[a+204>>2];a:{if(f){i=H[H[a+388>>2]+32>>2];e=H[f+N(i,36)>>2];H[a+288>>2]=e;b:{if((e|0)<=0){break b}c=H[a+84>>2];if(e-1>>>0>=3){m=e&-4;h=a+292|0;d=(f+N(i,36)|0)+4|0;while(1){g=b<<2;H[g+h>>2]=c+N(H[d+g>>2],88);j=g|4;H[j+h>>2]=c+N(H[d+j>>2],88);j=g|8;H[j+h>>2]=c+N(H[d+j>>2],88);g=g|12;H[g+h>>2]=c+N(H[d+g>>2],88);b=b+4|0;k=k+4|0;if((m|0)!=(k|0)){continue}break}}e=e&3;if(!e){break b}h=f+N(i,36)|0;while(1){d=b<<2;H[(d+a|0)+292>>2]=c+N(H[(d+h|0)+4>>2],88);b=b+1|0;l=l+1|0;if((e|0)!=(l|0)){continue}break}}if(!H[a+264>>2]){break a}b=f+N(i,36)|0;H[a+360>>2]=H[b+20>>2];H[a+364>>2]=H[b+24>>2];H[a+368>>2]=H[b+28>>2];H[a+372>>2]=H[b+32>>2];return}c=H[a+76>>2];if((c|0)>=5){b=H[a>>2];H[b+24>>2]=c;H[b+20>>2]=27;H[H[a>>2]+28>>2]=4;zb[H[H[a>>2]>>2]](a);c=H[a+76>>2]}H[a+288>>2]=c;if((c|0)<=0){break a}f=H[a+84>>2];b=0;if(c-1>>>0>=3){h=c&-4;e=a+292|0;while(1){H[e+(b<<2)>>2]=f+N(b,88);d=b|1;H[e+(d<<2)>>2]=f+N(d,88);d=b|2;H[e+(d<<2)>>2]=f+N(d,88);d=b|3;H[e+(d<<2)>>2]=f+N(d,88);b=b+4|0;g=g+4|0;if((h|0)!=(g|0)){continue}break}}c=c&3;if(!c){break a}while(1){H[((b<<2)+a|0)+292>>2]=f+N(b,88);b=b+1|0;i=i+1|0;if((c|0)!=(i|0)){continue}break}}H[a+360>>2]=0;H[a+368>>2]=0;b=H[a+376>>2];H[a+364>>2]=N(b,b)-1;H[a+372>>2]=0}function qv(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;f=xb-32|0;xb=f;H[f+28>>2]=0;H[f+16>>2]=H[5328];d=H[5327];H[f+8>>2]=H[5326];H[f+12>>2]=d;d=H[5325];H[f>>2]=H[5324];H[f+4>>2]=d;c=48;d=f;a:{while(1){b=d+1|0;if((c&255)==32){while(1){d=b;b=b+1|0;c=I[d|0];if((c|0)==32){continue}break}}i=H[a+36>>2];g=c&255;if(!(c<<24>>24>=0)){e=g>>>0<240;c=g>>>0<224;h=c?1:e?2:3;j=h-1|0;g=(c?31:e?15:7)&g;e=0;c=h;while(1){g=I[b|0]&63|g<<6;c=c-1|0;b=b+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}if(j>>>0>=3){while(1){g=I[b+3|0]&63|((I[b+1|0]&63|(g<<12|(I[b|0]&63)<<6))<<12|(I[b+2|0]&63)<<6);b=b+4|0;c=c-4|0;if(c){continue}break}}b=(d+h|0)+1|0}d=b;k=H[i>>2];c=0;while(1){b=I[d|0];if((b|32)!=32){d=d+1|0;c=b;if(b<<24>>24>=0){continue}e=c>>>0<240;b=c>>>0<224;h=b?1:e?2:3;j=h-1|0;c=(b?31:e?15:7)&c;i=0;e=h;b=d;while(1){c=I[b|0]&63|c<<6;e=e-1|0;b=b+1|0;i=i+1|0;if((h|0)!=(i|0)){continue}break}if(j>>>0>=3){while(1){c=I[b+3|0]&63|((I[b+1|0]&63|(c<<12|(I[b|0]&63)<<6))<<12|(I[b+2|0]&63)<<6);b=b+4|0;e=e-4|0;if(e){continue}break}}d=d+h|0;continue}break}b:{if(c){dl(k,0,2051,f+28|0);break b}b=Wd(k,g);dl(H[H[a+36>>2]>>2],b,2051,f+28|0);if(!b){break b}b=l;l=1;c=H[f+28>>2];if(!b){m=c;break b}if((c|0)==(m|0)){break b}b=0;break a}c=I[d|0];if(c){continue}break}b=1}F[a+32|0]=b;xb=f+32|0}function oia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-384|0;xb=d;e=Qb(c);H[a>>2]=e;b=Ob(e,b,c);H[a+4>>2]=c;f=Qb(24);H[f+4>>2]=c;H[f>>2]=b;b=d+128|0;Br(b,f);h=a+8|0;e=VD(b);a:{b:{c:{while(1){yn(e,d+48|0,0,0);d:{if(!H[d+76>>2]){break d}e:{f:{if(!yn(e,0,d+128|0,256)){b=ac(d+128|0);if(b>>>0<4294967280){g:{h:{if(b>>>0>=11){g=b+16&-16;c=Qb(g);H[d+16>>2]=g|-2147483648;H[d+8>>2]=c;H[d+12>>2]=b;break h}F[d+19|0]=b;c=d+8|0;if(!b){break g}}Ob(c,d+128|0,b)}F[b+c|0]=0;if(F[d+19|0]>=0){break f}H[197455]=0;ga(889,d+24|0,H[d+8>>2],H[d+12>>2]);c=H[197455];H[197455]=0;b=1;if((c|0)!=1){break e}c=$()|0;_()|0;break b}qd(d+8|0);X()}F[d+8|0]=0;F[d+19|0]=0}H[d+32>>2]=H[d+16>>2];b=H[d+12>>2];H[d+24>>2]=H[d+8>>2];H[d+28>>2]=b;b=0}H[d+36>>2]=0;H[d+40>>2]=0;c=H[a+12>>2];i:{if(c>>>0>2]){b=H[d+28>>2];H[c>>2]=H[d+24>>2];H[c+4>>2]=b;H[c+8>>2]=H[d+32>>2];H[d+32>>2]=0;H[d+24>>2]=0;H[d+28>>2]=0;b=H[d+40>>2];H[c+12>>2]=H[d+36>>2];H[c+16>>2]=b;H[a+12>>2]=c+20;break i}H[197455]=0;ba(890,h|0,d+24|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}if(F[d+35|0]>=0){break i}Kb(H[d+24>>2])}if(F[d+19|0]>=0){break d}Kb(H[d+8>>2])}if(!TD(e)){continue}break}if(e){mv(e)}Kb(f);xb=d+384|0;return}c=$()|0;_()|0;if(F[d+35|0]<0){Kb(H[d+24>>2])}if(!b){break a}}Kb(H[d+8>>2])}ea(c|0);X()}function mx(a,b){var c=0,d=0,e=0;e=xb-16|0;xb=e;H[a+4>>2]=0;mp(e+8|0,a,1);a:{b:{c=0;c:{if(!I[e+8|0]){break c}while(1){d:{c=H[H[a>>2]-12>>2];H[197455]=0;c=H[(a+c|0)+24>>2];d=H[197455];H[197455]=0;if((d|0)==1){break d}H[197455]=0;d=aa(3337,c|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break d}c=2;if((d|0)==-1){break c}d=d<<24>>24;if((d|0)==10){c=H[H[a>>2]-12>>2];H[197455]=0;c=H[(a+c|0)+24>>2];d=H[197455];H[197455]=0;e:{if((d|0)==1){break e}H[197455]=0;aa(3334,c|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[a+4>>2]=H[a+4>>2]+1;c=0;break c}break d}c=4;if(H[a+4>>2]>=99){break c}F[b|0]=d;c=H[H[a>>2]-12>>2];H[197455]=0;c=H[(a+c|0)+24>>2];d=H[197455];H[197455]=0;b=b+1|0;if((d|0)==1){break d}H[197455]=0;aa(3334,c|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break d}H[a+4>>2]=H[a+4>>2]+1;continue}break}c=ha(0)|0;_()|0;sa(c|0)|0;c=H[H[a>>2]-12>>2]+a|0;H[c+16>>2]=!H[c+24>>2]|(H[c+16>>2]|1);c=H[H[a>>2]-12>>2];H[197455]=0;c=H[(a+c|0)+20>>2];d=H[197455];H[197455]=0;f:{if((d|0)!=1){if(!(c&1)){break f}F[b|0]=0;H[197455]=0;na(3312);a=H[197455];H[197455]=0;if((a|0)!=1){break a}}a=$()|0;_()|0;H[197455]=0;na(1711);b=H[197455];H[197455]=0;if((b|0)==1){break b}ea(a|0);X()}ra();c=1}F[b|0]=0;aj(H[H[a>>2]-12>>2]+a|0,H[a+4>>2]?c:c|4);xb=e+16|0;return a}ha(0)|0;_()|0;Zb()}X()}function R8(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;h=xb-16|0;xb=h;a:{b:{c:{e=H[a+584>>2];if(!I[e+401|0]){if((c>>>0)%K[e+1116>>2]|0){break c}o=e+536|0;a=H[e+1112>>2];while(1){if(!a){if(!tq(e,o,H[e+1104>>2],I[e+209|0]<<3)){d=0;break a}a=H[e+1112>>2]}if(H[e+1108>>2]){d=N(H[e+1064>>2],a);j=d+H[e+1092>>2]|0;k=d+H[e+1096>>2]|0;i=I[e+209|0];l=H[e+1088>>2]+N(H[e+1056>>2],N(i,a))|0;m=0;f=b;while(1){d=I[e+208|0];d:{if(!i){break d}g=1;n=0;a=l;if(!d){d=0;break d}while(1){p=g&255;g=0;if(p){while(1){F[f|0]=I[a|0];f=f+1|0;a=a+1|0;d=I[e+208|0];g=g+1|0;if(d>>>0>(g&255)>>>0){continue}break}i=I[e+209|0];g=d}a=(H[e+1056>>2]-g|0)+a|0;n=n+1|0;if((n&255)>>>0>>0){continue}break}}F[f|0]=I[j|0];F[f+1|0]=I[k|0];m=m+1|0;if(m>>>0>2]){j=j+1|0;k=k+1|0;f=f+2|0;l=d+l|0;i=I[e+209|0];continue}break}a=H[e+1112>>2]}d=1;a=a+1|0;a=(a|0)==H[e+1068>>2]?0:a;H[e+1112>>2]=a;f=H[e+1116>>2];b=f+b|0;g=(c|0)==(f|0);c=c-f|0;if(!g){continue}break}break a}if((c>>>0)%K[e+1116>>2]|0){Pb(H[a+628>>2],296048,289234,0);break b}H[h+12>>2]=b;b=e+536|0;while(1){if(!dB(e,b,h+12|0)){break b}a=H[e+1116>>2];H[h+12>>2]=a+H[h+12>>2];d=(a|0)==(c|0);c=c-a|0;if(!d){continue}break}d=1;break a}d=0;Pb(H[a+628>>2],296028,289234,0);break a}d=0}xb=h+16|0;return d|0}function CJ(a){a=a|0;var b=0,c=0,d=0;if(a){c=H[a+100>>2];b=H[a+548>>2];if(b){if(b){zb[H[c+8>>2]](c,b)}H[a+544>>2]=0;H[a+548>>2]=0}ak(a);H[a+532>>2]=0;b=H[a+132>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+132>>2]=0;b=H[a+136>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+136>>2]=0;b=H[a+140>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+140>>2]=0;b=H[a+144>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+144>>2]=0;b=H[a+148>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+148>>2]=0;b=H[a+432>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+432>>2]=0;b=H[a+428>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+428>>2]=0;b=H[a+424>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+424>>2]=0;b=H[a+408>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+408>>2]=0;b=H[a+412>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+412>>2]=0;mn(H[a+416>>2],c);b=H[a+416>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+416>>2]=0;b=H[a+392>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+392>>2]=0;b=H[a+396>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+396>>2]=0;b=H[a+400>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+400>>2]=0;b=H[a+384>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+384>>2]=0;b=H[a+388>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+388>>2]=0;b=H[a+364>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+364>>2]=0;b=H[a+496>>2];if(b){d=H[b+36>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+36>>2]=0;H[b+40>>2]=0;d=H[b+28>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+28>>2]=0;H[b+32>>2]=0;if(b){zb[H[c+8>>2]](c,b)}}H[a+20>>2]=0;H[a+24>>2]=0}}function uI(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;h=H[H[H[a+4>>2]+96>>2]+28>>2];i=Pd(H[H[H[b>>2]+428>>2]+(c<<2)>>2],0);a:{b:{c=H[a+160>>2];e=H[c+156>>2];if(!e){break b}f=H[e+4>>2];if(!(f&1)){break b}g=H[c+88>>2];if(g){e=H[H[c+4>>2]+100>>2];zb[H[e+8>>2]](e,g);e=H[c+156>>2];f=H[e+4>>2]}H[c+88>>2]=0;H[e+4>>2]=f&-2;break a}H[c+88>>2]=0}H[c+24>>2]=0;H[c+28>>2]=0;H[c+152>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[c+48>>2]=0;H[c+52>>2]=0;H[c+56>>2]=0;H[c+60>>2]=0;Nb(c+72|0,0,72);c=zb[H[h+72>>2]](H[a+160>>2],H[b+44>>2],i,d|8)|0;if(!c){b=H[a+160>>2];d=H[b+28>>2];H[a+24>>2]=H[b+24>>2];H[a+28>>2]=d;d=H[b+36>>2];H[a+32>>2]=H[b+32>>2];H[a+36>>2]=d;d=H[b+44>>2];H[a+40>>2]=H[b+40>>2];H[a+44>>2]=d;d=H[b+52>>2];H[a+48>>2]=H[b+48>>2];H[a+52>>2]=d;H[a+56>>2]=H[b+56>>2];H[a+60>>2]=H[b+60>>2];H[a+72>>2]=H[b+72>>2];H[a+124>>2]=H[b+124>>2];d=H[b+120>>2];H[a+116>>2]=H[b+116>>2];H[a+120>>2]=d;d=H[b+112>>2];H[a+108>>2]=H[b+108>>2];H[a+112>>2]=d;d=H[b+96>>2];H[a+92>>2]=H[b+92>>2];H[a+96>>2]=d;d=H[b+88>>2];H[a+84>>2]=H[b+84>>2];H[a+88>>2]=d;d=H[b+80>>2];H[a+76>>2]=H[b+76>>2];H[a+80>>2]=d;H[a+100>>2]=H[b+100>>2];H[a+104>>2]=H[b+104>>2];H[a+128>>2]=H[b+128>>2];H[a+132>>2]=H[b+132>>2];H[a+136>>2]=H[b+136>>2];H[a+140>>2]=H[b+140>>2]}return c|0}function Uy(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;d=H[b>>2];H[a+664>>2]=d;b=H[b+4>>2];H[a+668>>2]=b;i=H[a+648>>2];a:{if(i){m=H[a+652>>2];if(m){break a}}H[a+652>>2]=b;H[a+648>>2]=d;m=b;i=d}p=H[a+4>>2];b:{if((p|0)!=7){break b}g=+(d|0);c=P(g/+(i|0));j=+(b|0);e=P(j/+(m|0));if(c>e){o=d>>31|1;c=T(e*g/c+.5);c:{if(P(c)<2147483648){d=~~c;break c}d=-2147483648}d=d?d:o;H[a+664>>2]=d;break b}o=b>>31|1;c=T(c*j/e+.5);d:{if(P(c)<2147483648){b=~~c;break d}b=-2147483648}b=b?b:o;H[a+668>>2]=b}e:{if((i|0)<2|(d|0)<2){break e}f:{switch(p-7|0){case 0:c=+(d|0)/+(i|0);M[a+624>>3]=c;M[a+632>>3]=c;break e;case 1:break f;default:break e}}if(!m|!b){break e}M[a+632>>3]=+(b|0)/+(m|0);M[a+624>>3]=+(d|0)/+(i|0)}q=M[a+624>>3];r=+(d>>31|1);k=q*r;c=k*0+0;e=M[a+400>>3];s=M[a+632>>3];t=+(b>>31|1);h=s*t;l=h+0;g=M[a+416>>3];n=c*e+l*g;j=M[a+408>>3];f=l;l=M[a+424>>3];f=c*j+f*l;u=n*0+f;M[a+568>>3]=u;n=n+f*0;M[a+560>>3]=n;f=k+0;k=h*0+0;h=e*f+g*k;f=f*j+k*l;v=h*0+f;M[a+552>>3]=v;h=h+f*0;M[a+544>>3]=h;M[a+520>>3]=u;M[a+512>>3]=n;M[a+504>>3]=v;M[a+496>>3]=h;c=c+ +H[a+656>>2];f=e*c;e=k+ +H[a+660>>2];g=f+g*e+M[a+432>>3];c=c*j+e*l+M[a+440>>3];e=g*0+c-s*+H[a+644>>2]*t;M[a+584>>3]=e;c=g+c*0-q*+H[a+640>>2]*r;M[a+576>>3]=c;M[a+536>>3]=e;M[a+528>>3]=c}function Gt(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=xb-48|0;xb=b;c=H[a>>2];a:{if(c){break a}g=a-124|0;while(1){d=H[g>>2];if(!d){c=163632;break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;c=kd(d);F[b+40|0]=1;H[b+36>>2]=c;c=0;d=dd(d,1953653099);if(!(!d|!H[d>>2])){H[d>>2]=H[d>>2]+1}f=d;H[b+32>>2]=d;b:{c:{d:{e:{f:{while(1){F[b+24|0]=c;c=H[f+12>>2];H[b+4>>2]=c;e=H[f+16>>2];H[b+8>>2]=e+c;H[b+28>>2]=0;if(e>>>0<=67108862){e=e<<6;e=e>>>0>16384?e:16384;e=e>>>0<1073741823?e:1073741823}else{e=1073741823}H[b+12>>2]=e;H[b+20>>2]=0;H[b>>2]=0;if(!c){Wb(f);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;break b}e=ht(c,b);f=H[b+28>>2];g:{if(e){if(!f){break g}H[b+28>>2]=0;c=ht(c,b);f=H[b+28>>2];Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(!c){break c}if(!f){break f}break c}if(I[b+24|0]|!f){break e}e=ve(d);H[b+4>>2]=e;H[b+8>>2]=e+H[d+16>>2];f=H[b+32>>2];c=1;if(e){continue}break d}break}Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}if(H[d+4>>2]){H[d+4>>2]=0}break b}f=H[b+32>>2]}Wb(f);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}Wb(d);d=163632}c=d;if(!d){c=163632}d=H[a>>2];H[a>>2]=d?d:c;if(!d){break a}if(!(!c|(c|0)==163632)){Wb(c)}c=H[a>>2];if(!c){continue}break}}xb=b+48|0;return K[c+16>>2]<12?163632:H[c+12>>2]}function ss(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=xb-48|0;xb=b;c=H[a>>2];a:{if(c){break a}g=a-72|0;while(1){d=H[g>>2];if(!d){c=163632;break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;c=kd(d);F[b+40|0]=1;H[b+36>>2]=c;c=0;d=dd(d,1719034226);if(!(!d|!H[d>>2])){H[d>>2]=H[d>>2]+1}f=d;H[b+32>>2]=d;b:{c:{d:{e:{f:{while(1){F[b+24|0]=c;c=H[f+12>>2];H[b+4>>2]=c;e=H[f+16>>2];H[b+8>>2]=e+c;H[b+28>>2]=0;if(e>>>0<=67108862){e=e<<6;e=e>>>0>16384?e:16384;e=e>>>0<1073741823?e:1073741823}else{e=1073741823}H[b+12>>2]=e;H[b+20>>2]=0;H[b>>2]=0;if(!c){Wb(f);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;break b}e=rs(c,b);f=H[b+28>>2];g:{if(e){if(!f){break g}H[b+28>>2]=0;c=rs(c,b);f=H[b+28>>2];Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(!c){break c}if(!f){break f}break c}if(I[b+24|0]|!f){break e}e=ve(d);H[b+4>>2]=e;H[b+8>>2]=e+H[d+16>>2];f=H[b+32>>2];c=1;if(e){continue}break d}break}Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}if(H[d+4>>2]){H[d+4>>2]=0}break b}f=H[b+32>>2]}Wb(f);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}Wb(d);d=163632}c=d;if(!d){c=163632}d=H[a>>2];H[a>>2]=d?d:c;if(!d){break a}if(!(!c|(c|0)==163632)){Wb(c)}c=H[a>>2];if(!c){continue}break}}xb=b+48|0;return K[c+16>>2]<16?163632:H[c+12>>2]}function _g(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=xb-48|0;xb=b;c=H[a>>2];a:{if(c){break a}g=a-84|0;while(1){d=H[g>>2];if(!d){c=163632;break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;c=kd(d);F[b+40|0]=1;H[b+36>>2]=c;c=0;d=dd(d,1297498450);if(!(!d|!H[d>>2])){H[d>>2]=H[d>>2]+1}f=d;H[b+32>>2]=d;b:{c:{d:{e:{f:{while(1){F[b+24|0]=c;c=H[f+12>>2];H[b+4>>2]=c;e=H[f+16>>2];H[b+8>>2]=e+c;H[b+28>>2]=0;if(e>>>0<=67108862){e=e<<6;e=e>>>0>16384?e:16384;e=e>>>0<1073741823?e:1073741823}else{e=1073741823}H[b+12>>2]=e;H[b+20>>2]=0;H[b>>2]=0;if(!c){Wb(f);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;break b}e=wE(c,b);f=H[b+28>>2];g:{if(e){if(!f){break g}H[b+28>>2]=0;c=wE(c,b);f=H[b+28>>2];Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(!c){break c}if(!f){break f}break c}if(I[b+24|0]|!f){break e}e=ve(d);H[b+4>>2]=e;H[b+8>>2]=e+H[d+16>>2];f=H[b+32>>2];c=1;if(e){continue}break d}break}Wb(H[b+32>>2]);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}if(H[d+4>>2]){H[d+4>>2]=0}break b}f=H[b+32>>2]}Wb(f);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}Wb(d);d=163632}c=d;if(!d){c=163632}d=H[a>>2];H[a>>2]=d?d:c;if(!d){break a}if(!(!c|(c|0)==163632)){Wb(c)}c=H[a>>2];if(!c){continue}break}}xb=b+48|0;return K[c+16>>2]<12?163632:H[c+12>>2]}function sm(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-32|0;xb=e;a:{b:{c:{if(!H[a>>2]){break c}d:{e:{if(c){if(d){b=Qb(16);H[e+16>>2]=b;H[e+20>>2]=3;H[e+24>>2]=-2147483644;H[197455]=0;Mb(b,752200,3);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[b+12>>2]=0;a=H[a>>2];H[197455]=0;ba(3306,a|0,e+16|0);a=H[197455];H[197455]=0;if((a|0)!=1){if(F[e+27|0]>=0){break c}Kb(H[e+16>>2]);break c}a=$()|0;_()|0;if(F[e+27|0]>=0){break e}break b}F[e+27|0]=1;H[197455]=0;Mb(e+16|0,752192,1);b=H[197455];H[197455]=0;if((b|0)==1){break d}H[e+20>>2]=0;a=H[a>>2];H[197455]=0;ba(3306,a|0,e+16|0);a=H[197455];H[197455]=0;if((a|0)!=1){if(F[e+27|0]>=0){break c}Kb(H[e+16>>2]);break c}a=$()|0;_()|0;if(F[e+27|0]>=0){break e}break b}rj(e,752216,b);H[197455]=0;b=da(1699,e|0,752192)|0;c=H[197455];H[197455]=0;f:{g:{if((c|0)!=1){H[e+24>>2]=H[b+8>>2];c=H[b+4>>2];H[e+16>>2]=H[b>>2];H[e+20>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;a=H[a>>2];H[197455]=0;ba(3306,a|0,e+16|0);a=H[197455];H[197455]=0;if((a|0)==1){break g}if(F[e+27|0]<0){Kb(H[e+16>>2])}if(F[e+11|0]>=0){break c}Kb(H[e>>2]);break c}a=$()|0;_()|0;break f}a=$()|0;_()|0;if(F[e+27|0]>=0){break f}Kb(H[e+16>>2])}if(F[e+11|0]>=0){break e}Kb(H[e>>2])}ea(a|0);X()}break a}xb=e+32|0;return}Kb(H[e+16>>2]);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Pca(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{h=H[c>>2];if(h>>>0>=d>>>0){break a}j=H[a+396>>2];m=j+8|0;while(1){if(K[f>>2]>=g>>>0){break a}k=H[j+52>>2];i=H[a+272>>2]-k|0;l=d-h|0;i=i>>>0>>0?i:l;zb[H[H[a+408>>2]+4>>2]](a,(h<<2)+b|0,m,k,i);H[c>>2]=i+H[c>>2];h=i+H[j+52>>2]|0;H[j+52>>2]=h;l=H[j+48>>2];H[j+48>>2]=l-i;k=H[a+272>>2];b:{c:{if(!((i|0)!=(l|0)|(k|0)<=(h|0))){i=0;l=H[a+76>>2];if((l|0)>0){while(1){if((h|0)<(k|0)){l=H[(j+(i<<2)|0)+8>>2];n=H[a+28>>2];o=h-1|0;while(1){ug(l,o,l,h,1,n);h=h+1|0;if((k|0)!=(h|0)){continue}break}l=H[a+76>>2]}i=i+1|0;if((l|0)>(i|0)){k=H[a+272>>2];h=H[j+52>>2];continue}break}k=H[a+272>>2]}H[j+52>>2]=k;break c}if((h|0)!=(k|0)){break b}}zb[H[H[a+412>>2]+4>>2]](a,m,0,e,H[f>>2]);H[j+52>>2]=0;H[f>>2]=H[f>>2]+1}d:{if(H[j+48>>2]){break d}h=H[f>>2];if(h>>>0>=g>>>0){break d}e:{c=H[a+76>>2];if((c|0)<=0){break e}i=H[a+84>>2];b=0;while(1){d=(N(H[i+40>>2],H[i+12>>2])|0)/H[a+280>>2]|0;h=N(d,h);d=N(d,g);if((h|0)<(d|0)){j=N(H[i+36>>2],H[i+28>>2]);c=H[(b<<2)+e>>2];k=h-1|0;while(1){ug(c,k,c,h,1,j);h=h+1|0;if((d|0)!=(h|0)){continue}break}c=H[a+76>>2]}b=b+1|0;if((c|0)<=(b|0)){break e}i=i+88|0;h=H[f>>2];continue}}H[f>>2]=g;return}h=H[c>>2];if(h>>>0>>0){continue}break}}}function Ic(a,b,c){var d=0,e=0,f=0,g=0,h=0;if(!b){return 6}if(!a){return 40}d=H[a+32>>2];a:{while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{g=I[b|0];switch(g-4|0){case 14:case 15:break g;case 12:case 13:break h;case 10:case 11:break i;case 8:case 9:break j;case 20:case 21:break k;case 0:break l;case 4:case 5:break d;case 18:case 19:break e;case 16:case 17:break f;default:break b}}d=Jc(a,J[b+2>>1]);if(d){break a}d=H[a+32>>2];h=1;b=b+4|0;continue}f=I[b+1|0];e=f+d|0;if(e>>>0>K[a+36>>2]){d=85;break a}if((g|0)!=24){d=e;b=b+4|0;continue}Ob(J[b+2>>1]+c|0,d,f);d=e;b=b+4|0;continue}e=I[d+1|0]|I[d|0]<<8;f=16;d=d+2|0;break c}e=I[d|0]|I[d+1|0]<<8;f=16;d=d+2|0;break c}e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);f=0;d=d+4|0;break c}e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);f=0;d=d+4|0;break c}f=8;e=I[d+2|0]|(I[d+1|0]<<8|I[d|0]<<16);d=d+3|0;break c}f=8;e=I[d|0]|(I[d+1|0]<<8|I[d+2|0]<<16);d=d+3|0;break c}e=I[d|0];f=24;d=d+1|0}e=g&1?e<>f:e;f=J[b+2>>1]+c|0;m:{n:{switch(I[b+1|0]-1|0){case 0:F[f|0]=e;break m;case 1:G[f>>1]=e;break m;default:break n}}H[f>>2]=e}b=b+4|0;continue}break}H[a+32>>2]=d;d=0}if(h){if(H[a+20>>2]){b=H[a>>2];if(b){c=H[a+28>>2];zb[H[c+8>>2]](c,b)}H[a>>2]=0}H[a+32>>2]=0;H[a+36>>2]=0}return d}function Vy(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;g=H[b>>2];H[a+648>>2]=g;i=H[b+4>>2];H[a+652>>2]=i;b=H[a+664>>2];a:{if(b){f=H[a+668>>2];if(f){break a}}H[a+668>>2]=i;H[a+664>>2]=g;f=i;b=g}q=H[a+4>>2];b:{if((q|0)!=7){break b}d=+(b|0);j=P(d/+(g|0));c=+(f|0);e=P(c/+(i|0));if(j>e){b=b>>31|1;c=T(e*d/j+.5);c:{if(P(c)<2147483648){h=~~c;break c}h=-2147483648}b=h?h:b;H[a+664>>2]=b;break b}f=f>>31|1;c=T(j*c/e+.5);d:{if(P(c)<2147483648){h=~~c;break d}h=-2147483648}f=h?h:f;H[a+668>>2]=f}e:{if((g|0)<2|(b|0)<2){break e}f:{switch(q-7|0){case 0:c=+(b|0)/+(g|0);M[a+624>>3]=c;M[a+632>>3]=c;break e;case 1:break f;default:break e}}if(!i|!f){break e}M[a+632>>3]=+(f|0)/+(i|0);M[a+624>>3]=+(b|0)/+(g|0)}r=M[a+624>>3];s=+(b>>31|1);k=r*s;l=k*0+0;m=M[a+400>>3];t=M[a+632>>3];u=+(f>>31|1);e=t*u;c=e+0;n=M[a+416>>3];d=l*m+c*n;o=M[a+408>>3];p=M[a+424>>3];c=l*o+c*p;v=d*0+c;M[a+568>>3]=v;j=d+c*0;M[a+560>>3]=j;c=k+0;k=e*0+0;e=m*c+n*k;c=c*o+k*p;d=e*0+c;M[a+552>>3]=d;c=e+c*0;M[a+544>>3]=c;M[a+520>>3]=v;M[a+512>>3]=j;M[a+504>>3]=d;M[a+496>>3]=c;d=l+ +H[a+656>>2];c=k+ +H[a+660>>2];e=m*d+n*c+M[a+432>>3];c=d*o+c*p+M[a+440>>3];d=e*0+c-t*+H[a+644>>2]*u;M[a+584>>3]=d;c=e+c*0-r*+H[a+640>>2]*s;M[a+576>>3]=c;M[a+536>>3]=d;M[a+528>>3]=c}function Rj(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;i=xb-16|0;xb=i;a:{if(H[a+20>>2]){break a}b=H[a+48>>2];if(b>>>0<2){break a}m=a+56|0;k=H[40908];while(1){b=b<<2;if(K[H[(b+H[a+52>>2]|0)-4>>2]>>2]>=K[a+8>>2]){break a}g=H[(b+H[a+52>>2]|0)-4>>2];b=0;H[i+12>>2]=0;h=0;d=H[g>>2];f=H[g+4>>2];b:{if((d|0)==(f|0)){break b}j=f-d|0;l=j&3;e=0;c=0;if(f+(d^-1)>>>0>=3){j=j&-4;f=0;while(1){h=N(F[(c|3)+d|0],-1640531535)+N(N(F[(c|2)+d|0],-1640531535)+N(N(F[(c|1)+d|0],-1640531535)+N(N(F[c+d|0],-1640531535)+N(h,31)|0,31)|0,31)|0,31)|0;c=c+4|0;f=f+4|0;if((j|0)!=(f|0)){continue}break}}if(!l){break b}while(1){h=N(F[c+d|0],-1640531535)+N(h,31)|0;c=c+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}d=H[g+12>>2]<<4;c:{if(!d){e=0;break c}c=H[g+16>>2];e=0;while(1){e=N(F[c+(b|3)|0],-1640531535)+N(N(F[c+(b|2)|0],-1640531535)+N(N(F[c+(b|1)|0],-1640531535)+N(N(F[b+c|0],-1640531535)+N(e,31)|0,31)|0,31)|0,31)|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}Un(m,g,e^h,i+12|0);b=H[a+48>>2];d:{if(!b){H[196248]=k;b=k;break d}b=H[(H[a+52>>2]+(b<<2)|0)-4>>2]}H[b+12>>2]=0;Kb(H[b+16>>2]);H[b+24>>2]=0;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;Kb(H[b+28>>2]);H[b+28>>2]=0;H[b+20>>2]=0;H[b+24>>2]=0;b=H[a+48>>2];if(!b){break a}b=b-1|0;H[a+48>>2]=b;if(b>>>0>1){continue}break}}xb=i+16|0}function WU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=xb-16|0;xb=f;H[f+8>>2]=d;H[f+12>>2]=b;b=xb-144|0;xb=b;e=H[f+12>>2];d=H[a>>2];H[d+20>>2]=0;H[d+16>>2]=e;H[b+8>>2]=768528;H[b+64>>2]=768548;a=H[192141];H[b>>2]=a;H[b+H[a-12>>2]>>2]=H[192142];H[b+4>>2]=0;a=H[H[b>>2]-12>>2];H[197455]=0;a=a+b|0;e=b+12|0;ba(1700,a|0,e|0);g=H[197455];H[197455]=0;a:{if((g|0)!=1){b:{H[a+72>>2]=0;H[a+76>>2]=-1;a=H[192143];H[b+8>>2]=a;H[H[a-12>>2]+(b+8|0)>>2]=H[192144];a=H[192140];H[b>>2]=a;H[b+H[a-12>>2]>>2]=H[192145];H[b+64>>2]=768548;H[b>>2]=768508;H[b+8>>2]=768528;H[197455]=0;aa(3316,e|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}H[b+44>>2]=0;H[b+48>>2]=0;H[b+12>>2]=767680;H[b+52>>2]=0;H[b+56>>2]=0;H[b+60>>2]=24;a=b;break a}}a=$()|0;_()|0;ge(b- -64|0);ea(a|0);X()}e=H[f+8>>2];H[197455]=0;ca(3313,a+8|0,c|0,e|0)|0;c=H[197455];H[197455]=0;c:{d:{if((c|0)==1){break d}H[197455]=0;c=aa(3314,a|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break d}H[d+20>>2]=c;H[197455]=0;ia(3315,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break d}c=H[d+20>>2];d=H[192139];H[a>>2]=d;H[b+H[d-12>>2]>>2]=H[192147];H[a+12>>2]=767680;H[a+8>>2]=H[192148];if(F[a+55|0]<0){Kb(H[a+44>>2])}qk(a+12|0);ge(a- -64|0);xb=b+144|0;a=!c;break c}b=$()|0;_()|0;xk(a);ea(b|0);X()}xb=f+16|0;return a|0}function Pha(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;g=xb-960|0;xb=g;e=H[a+4>>2];d=H[a+12>>2];a:{if(!d){h=e<<2;e=32;break a}f=d;d=d>>31;h=(f^d)-d|0;e=(h>>>0)/(e>>>0)<<3}d=g+944|0;H[d+12>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[d>>2]=436884;H[197455]=0;b=da(919,d|0,b|0)|0;i=H[197455];H[197455]=0;f=1;b:{c:{d:{if((i|0)!=1){e:{if(b){H[197455]=0;b=Bd(g,0);f=H[197455];H[197455]=0;if((f|0)==1){break e}f=H[a+8>>2];i=H[a+4>>2];j=H[a+16>>2];k=I[a+40|0];l=H[a+12>>2];H[197455]=0;e=Na(920,b|0,j|0,i|0,f|0,e|0,h|0,(l^-1)>>>31|0,!k|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break d}f=1;f:{if(!e){break f}e=H[a+20>>2];if(e){a=H[a+24>>2];H[197455]=0;ga(921,b|0,e|0,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}}H[197455]=0;a=H[d+4>>2];e=H[197455];H[197455]=0;if((e|0)==1){break d}H[197455]=0;a=ca(922,b|0,a|0,c|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break d}if(!a){break f}f=0;H[197455]=0;ia(923,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}}H[b>>2]=245276;H[197455]=0;aa(917,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break c}H[197455]=0;aa(918,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break c}}gf(d);xb=g+960|0;return!f|0}a=$()|0;_()|0;break b}a=$()|0;_()|0;break b}a=$()|0;_()|0;Zf(b);break b}ha(0)|0;_()|0;Zb();X()}gf(d);ea(a|0);X()}function Sd(a,b,c){var d=0;a:{b:{c:{d:{e:{f:{g:{h:{c=c-1|0;switch(c|0){case 2:case 7:break c;case 11:break d;case 10:break e;case 4:case 9:break f;case 3:case 8:break g;case 0:case 5:break h;default:break b}}if(H[b+4>>2]){break b}return 0}if(K[b+4>>2]>3){break b}break a}if(K[b+4>>2]>7){break b}break a}if(K[b+4>>2]<4){break a}return+L[H[b>>2]>>2]}if(K[b+4>>2]<8){break a}return M[H[b>>2]>>3]}if(K[b+4>>2]<=1){break a}}b=H[b>>2];i:{switch(c|0){case 5:return+F[b|0];case 0:return+I[b|0];case 2:a=H[a+264>>2];return+(I[!a+b|0]<<8|I[((a|0)!=0)+b|0]);case 3:j:{if(H[a+264>>2]){c=I[b+1|0]<<16|I[b|0]<<24|I[b+2|0]<<8;b=b+3|0;break j}c=I[b+2|0]<<16|I[b+3|0]<<24|I[b+1|0]<<8}return+((I[b|0]|c)>>>0);case 4:case 9:k:{if(H[a+264>>2]){a=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);c=I[b+5|0]<<16|I[b+4|0]<<24|I[b+6|0]<<8;b=b+7|0;break k}c=I[b+6|0]<<16|I[b+7|0]<<24|I[b+5|0]<<8;a=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);b=b+4|0}b=I[b|0]|c;if(!b){break a}return+(a|0)/+(b|0);case 7:a=H[a+264>>2];return+((I[!a+b|0]<<8|I[((a|0)!=0)+b|0])<<16>>16);case 8:break i;default:break a}}l:{if(H[a+264>>2]){c=I[b+1|0]<<16|I[b|0]<<24|I[b+2|0]<<8;b=b+3|0;break l}c=I[b+2|0]<<16|I[b+3|0]<<24|I[b+1|0]<<8}d=+(I[b|0]|c)}return d}function Ila(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;f=xb-16|0;xb=f;j=1;h=1;a=jG(b+28|0);g=H[a+4>>2];a:{b:{if((g|0)!=131072){if((g|0)!=65536|c>>>0>257){break a}a=c<<2;h=H[a+122816>>2];g=h+119104|0;a=H[a+122820>>2]+(h^-1)|0;break b}g=H[a+8>>2];i=I[g|0]|I[g+1|0]<<8;if(((i<<8|i>>>8)&65535)>>>0<=c>>>0){break a}g=g+(c<<1)|0;g=I[g+2|0]|I[g+3|0]<<8;g=(g<<8|g>>>8)&65535;if(g>>>0<=257){a=g<<2;h=H[a+122816>>2];g=h+119104|0;a=H[a+122820>>2]+(h^-1)|0;break b}g=g-258|0;if(g>>>0>=K[a+16>>2]){break a}a=H[a+24>>2]+H[H[a+20>>2]+(g<<2)>>2]|0;g=a+1|0;a=I[a|0]}h=!a;if(!e|!a){break a}h=0;i=g;g=e-1|0;a=a>>>0>g>>>0?g:a;k=Ld(d,i,a)+a|0,l=0,F[k|0]=l}c:{if(!h){break c}a=H[b+64>>2];d:{if(a){break d}while(1){h=H[b>>2];if(!h){a=163632;break d}a=oc(1,244);e:{if(a){g=Nn(a,h);h=H[b+64>>2];H[b+64>>2]=h?h:a;if(!h){break d}ol(g);Kb(a);break e}a=163632;h=H[b+64>>2];H[b+64>>2]=h?h:163632;if(!h){break d}}a=H[b+64>>2];if(!a){continue}break}}if(!d){break c}j=0;if(!H[a>>2]|H[a+148>>2]!=-1){break c}b=es(a,c);f:{if(b>>>0<=390){b=b<<2;a=H[b+115968>>2];b=H[b+115972>>2]+(a^-1)|0;a=a+109072|0;break f}Ri(f,H[a+64>>2],b-391|0);b=H[f+4>>2];a=H[f>>2]}if(!b){break c}c=a;a=e-1|0;a=a>>>0>>0?a:b;k=Ld(d,c,a)+a|0,l=0,F[k|0]=l;j=1}xb=f+16|0;return j|0}function Zd(a,b,c,d){var e=0,f=0,g=0,h=O(0),i=O(0),j=0,k=0,l=0,m=O(0),n=O(0),o=O(0),p=O(0),q=O(0),r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;e=H[a>>2];f=H[a+4>>2];r=H[f+20>>2];s=M[b>>3];g=H[f+16>>2];j=H[g+28>>2];if(!j){j=kc(g);f=H[a+4>>2];g=H[f+16>>2]}t=H[f+24>>2];u=M[b+8>>3];b=H[g+28>>2];if(!b){b=kc(g);f=H[a+4>>2];g=H[f+16>>2]}v=H[f+20>>2];w=M[c>>3];k=H[g+28>>2];if(!k){k=kc(g);f=H[a+4>>2];g=H[f+16>>2]}x=H[f+24>>2];y=M[c+8>>3];c=H[g+28>>2];if(!c){c=kc(g);f=H[a+4>>2];g=H[f+16>>2]}z=H[f+20>>2];h=O(M[d>>3]);l=H[g+28>>2];if(!l){l=kc(g);f=H[a+4>>2];g=H[f+16>>2]}p=O(O(O(s)*O(r|0))/O(j>>>0));m=O(O(O(u)*O(t|0))/O(b>>>0));q=O(O(O(w)*O(v|0))/O(k>>>0));n=O(O(O(y)*O(x|0))/O(c>>>0));h=O(O(h*O(z|0))/O(l>>>0));b=e+16|0;i=O(O(M[d+8>>3])*O(H[f+24>>2]));a=H[g+28>>2];if(!a){a=kc(g)}i=O(i/O(a>>>0));c=H[e+12>>2];a=H[e+8>>2];a:{if(I[e+4|0]){if(!H[b>>2]){zb[H[a+12>>2]](a,c,b,L[e+28>>2],L[e+32>>2],H[a+32>>2]);H[e+16>>2]=1;d=H[e+32>>2];H[e+20>>2]=H[e+28>>2];H[e+24>>2]=d}zb[H[a+24>>2]](a,c,b,p,m,q,n,h,i,H[a+44>>2]);break a}o=L[e>>2];h=O(O(i*o)+h);if(!H[e+16>>2]){zb[H[a+12>>2]](a,c,b,L[e+28>>2],L[e+32>>2],H[a+32>>2]);H[e+16>>2]=1;d=H[e+32>>2];H[e+20>>2]=H[e+28>>2];H[e+24>>2]=d}zb[H[a+24>>2]](a,c,b,O(O(m*o)+p),m,O(O(n*o)+q),n,h,i,H[a+44>>2])}L[e+32>>2]=i;L[e+28>>2]=h}function PF(a,b){var c=0,d=0,e=0,f=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}c=b;H[a+32>>2]=c;a:{b:{c:{while(1){F[a+24|0]=e;d=H[c+12>>2];H[a+4>>2]=d;e=H[c+16>>2];H[a+8>>2]=e+d;f=1073741823;H[a+28>>2]=0;if(e>>>0<=67108862){f=e<<6;f=f>>>0>16384?f:16384;f=f>>>0<1073741823?f:1073741823}H[a+12>>2]=f;H[a+20>>2]=0;H[a>>2]=0;if(!d){Wb(c);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b}d:{e:{if((e|0)<4){break e}H[a+12>>2]=f-4;f:{g:{c=I[d|0]|I[d+1|0]<<8;switch((c<<8|c>>>8)&65535){case 1:break f;case 0:break g;default:break d}}if(!zF(d,a)){break e}break d}if(yF(d,a)){break d}}if(I[a+24|0]|!H[a+28>>2]){break c}d=ve(b);H[a+4>>2]=d;H[a+8>>2]=d+H[b+16>>2];c=H[a+32>>2];e=1;if(d){continue}break b}break}h:{if(H[a+28>>2]){e=0;H[a+28>>2]=0;if(d>>>0>2]){break c}c=H[a+8>>2];i:{if(c>>>0>>0|c-d>>>0<4){break i}c=H[a+12>>2]-4|0;H[a+12>>2]=c;if((c|0)<=0){break i}e=1;j:{k:{c=I[d|0]|I[d+1|0]<<8;switch((c<<8|c>>>8)&65535){case 1:break j;case 0:break k;default:break i}}e=zF(d,a);break i}e=yF(d,a)}c=H[a+28>>2];Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(!e){break a}if(!c){break h}break a}Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}return b}c=H[a+32>>2]}Wb(c);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function Cz(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;f=xb-48|0;xb=f;a:{e=H[b+40>>2];b:{if(!e){F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break b}zk(f+32|0,e,H[b+8>>2]);c:{d:{l=H[b+44>>2];if(!l){break d}i=H[b+8>>2];if(!i){break d}H[197455]=0;j=aa(929,((i&1073741823)!=(i|0)?-1:i<<2)|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break a}H[f+28>>2]=0;e=H[b+16>>2];o=e&8192;p=e>>>13&1;n=H[b+40>>2];while(1){h=g+1|0;k=J[(g<<1)+n>>1];e:{f:{if((k- -8192&65535)>>>0<=63487){g=H[(g<<2)+l>>2];e=m+1|0;H[f+28>>2]=e;H[(m<<2)+j>>2]=g;break f}e=h;if(k>>>0>56319){break e}k=g+2|0;e=k;if((J[(h<<1)+n>>1]- -8192&65535)>>>0<64512){break e}h=H[(h<<2)+l>>2];q=H[(g<<2)+l>>2];e=m+1|0;H[f+28>>2]=e;H[(m<<2)+j>>2]=h+q;h=o?g+3|0:k}m=e;e=h+p|0}g=e;if(i>>>0>g>>>0){continue}break}break c}H[197455]=0;H[f+28>>2]=0;e=da(1651,f+32|0,f+28|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break a}if(!e){break c}Kb(e)}e=H[f+28>>2];if(e){g=H[b+4>>2];b=H[b>>2];H[197455]=0;h=H[d+12>>2];H[f+16>>2]=H[d+8>>2];H[f+20>>2]=h;h=H[d+4>>2];H[f+8>>2]=H[d>>2];H[f+12>>2]=h;La(1856,a|0,f+32|0,e|0,b|0,g|0,j|0,c|0,f+8|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}}if(j){Kb(j)}if(F[f+43|0]>=0){break b}Kb(H[f+32>>2])}xb=f+48|0;return}a=$()|0;_()|0;if(F[f+43|0]<0){Kb(H[f+32>>2])}ea(a|0);X()}function pB(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=xb-16|0;xb=h;f=283105;e=H[b+4>>2];a:{if(e>>>0>=c>>>0){f=283317;if(c>>>0>=e>>>0){break a}}e=H[a>>2];g=H[a+628>>2];i=H[rd(a,J[b>>1])+16>>2];j=H[b+4>>2];H[h+8>>2]=c;H[h+4>>2]=j;H[h>>2]=i;sc(g,e,f,h)}b:{c:{f=H[d>>2];if(f){break c}f=Md(a,c,4,288684);H[d>>2]=f;if(f){break c}d=0;break b}d=0;Id(f,0,c<<2);e=H[b+4>>2];if(J[b+2>>1]==3){e=Md(a,e,2,288877);if(!e){break b}g=H[b+4>>2];d:{if(g>>>0<=2){if(J[a+456>>1]==19789){d=1;e:{f:{switch(g-1|0){case 0:a=H[b+8>>2];break e;case 1:break f;default:break d}}a=H[b+8>>2];G[e+2>>1]=a}G[e>>1]=a>>>16;break d}d=1;g:{switch(g-1|0){case 0:G[e>>1]=H[b+8>>2];break d;case 1:break g;default:break d}}a=H[b+8>>2];G[e+2>>1]=a>>>16;G[e>>1]=a;break d}d=(re(a,b,e)|0)!=0}h:{if(!d|(c|0)<=0){break h}a=0;while(1){if(H[b+4>>2]<=(a|0)){break h}H[(a<<2)+f>>2]=J[e+(a<<1)>>1];a=a+1|0;if((c|0)!=(a|0)){continue}break}}Kb(e);break b}if((c|0)!=(e|0)){e=Md(a,e,4,288877);if(!e){break b}d=1;i:{if(H[b+4>>2]==1){H[e>>2]=H[b+8>>2];break i}d=(re(a,b,e)|0)!=0}j:{if(!d|(c|0)<=0){break j}a=0;while(1){if(H[b+4>>2]<=(a|0)){break j}g=a<<2;H[g+f>>2]=H[e+g>>2];a=a+1|0;if((c|0)!=(a|0)){continue}break}}Kb(e);break b}d=1;if((c|0)==1){H[f>>2]=H[b+8>>2];break b}d=(re(a,b,f)|0)!=0}xb=h+16|0;return d}function Gj(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;j=H[c+12>>2];d=H[b+120>>2];if(d){zb[d|0](H[b+116>>2])}e=H[b+84>>2];if(e){while(1){h=H[e+4>>2];d=H[h+84>>2];a:{if(!d){break a}i=H[H[h+96>>2]+8>>2];b:{if((d|0)==(e|0)){g=0;break b}while(1){f=H[d+8>>2];if(!f){break a}g=d;d=f;if((e|0)!=(d|0)){continue}break}}H[(g?g+8|0:h+84|0)>>2]=H[e+8>>2];d=H[e+20>>2];if(d){zb[d|0](e)}hn(e);zb[H[i+8>>2]](i,e);e=H[b+84>>2]}if(e){continue}break}}if(a){d=H[b+108>>2];if(d){while(1){g=H[d+4>>2];f=H[d+8>>2];e=H[f+8>>2];if(e){zb[e|0](f)}e=H[H[c+12>>2]+60>>2];if(e){zb[e|0](f)}e=H[f+40>>2];if(e){zb[H[a+8>>2]](a,e)}H[f+40>>2]=0;zb[H[a+8>>2]](a,f);zb[H[a+8>>2]](a,d);d=g;if(d){continue}break}}H[b+108>>2]=0;H[b+112>>2]=0}H[b+88>>2]=0;c=H[b+48>>2];if(c){zb[c|0](b)}if(H[b+36>>2]>0){d=0;while(1){f=d<<2;c=H[f+H[b+40>>2]>>2];g=H[H[c>>2]+100>>2];e=H[H[c+12>>2]+8>>2];if(e){zb[e|0](c)}zb[H[g+8>>2]](g,c);H[f+H[b+40>>2]>>2]=0;d=d+1|0;if((d|0)>2]){continue}break}}c=H[b+40>>2];if(c){zb[H[a+8>>2]](a,c)}H[b+36>>2]=0;H[b+40>>2]=0;c=H[j+52>>2];if(c){zb[c|0](b)}c=H[b+104>>2];c:{if(!c){break c}g=H[b+8>>2];d=H[c+28>>2];f=H[c+24>>2];if(f){zb[f|0](c)}if(g&1024){break c}zb[H[d+8>>2]](d,c)}H[b+104>>2]=0;c=H[b+128>>2];if(c){zb[H[a+8>>2]](a,c);H[b+128>>2]=0}zb[H[a+8>>2]](a,b)}function zha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=xb-32|0;xb=g;a:{b:{if(H[b>>2]){d=0;F[a+96|0]=I[246345];b=I[246341]|I[246342]<<8|(I[246343]<<16|I[246344]<<24);c=I[246337]|I[246338]<<8|(I[246339]<<16|I[246340]<<24);F[a+88|0]=c;F[a+89|0]=c>>>8;F[a+90|0]=c>>>16;F[a+91|0]=c>>>24;F[a+92|0]=b;F[a+93|0]=b>>>8;F[a+94|0]=b>>>16;F[a+95|0]=b>>>24;b=I[246333]|I[246334]<<8|(I[246335]<<16|I[246336]<<24);c=I[246329]|I[246330]<<8|(I[246331]<<16|I[246332]<<24);F[a+80|0]=c;F[a+81|0]=c>>>8;F[a+82|0]=c>>>16;F[a+83|0]=c>>>24;F[a+84|0]=b;F[a+85|0]=b>>>8;F[a+86|0]=b>>>16;F[a+87|0]=b>>>24;b=I[246325]|I[246326]<<8|(I[246327]<<16|I[246328]<<24);c=I[246321]|I[246322]<<8|(I[246323]<<16|I[246324]<<24);F[a+72|0]=c;F[a+73|0]=c>>>8;F[a+74|0]=c>>>16;F[a+75|0]=c>>>24;F[a+76|0]=b;F[a+77|0]=b>>>8;F[a+78|0]=b>>>16;F[a+79|0]=b>>>24;break b}e=Yk(g,0,0);H[197455]=0;aa(952,e|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break a}H[197455]=0;d=ca(951,a|0,e|0,d|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}if(d){H[197455]=0;F[e+12|0]=0;a=H[e+4>>2];f=H[197455];H[197455]=0;if((f|0)==1){break a}H[b>>2]=a;H[197455]=0;a=H[e+8>>2];b=H[e+4>>2];f=H[197455];H[197455]=0;if((f|0)==1){break a}H[c>>2]=b?a:-1}wg(e)}xb=g+32|0;return d|0}a=$()|0;_()|0;wg(e);ea(a|0);X()}function mia(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;e=xb-32|0;xb=e;a:{c=H[a+4>>2];h=H[a>>2];i=(c-h|0)/12|0;d=i+1|0;if(d>>>0<357913942){f=H[a+8>>2];H[e+24>>2]=a+8;f=(f-h|0)/12|0;j=f<<1;f=f>>>0<178956970?d>>>0>>0?j:d:357913941;if(f){if(f>>>0>=357913942){break a}g=Qb(N(f,12))}H[e+8>>2]=g;d=N(i,12)+g|0;H[e+16>>2]=d;f=N(f,12)+g|0;H[e+20>>2]=f;H[e+12>>2]=d;b:{c:{if(F[b+11|0]>=0){g=H[b+4>>2];H[d>>2]=H[b>>2];H[d+4>>2]=g;H[d+8>>2]=H[b+8>>2];break c}c=H[b+4>>2];b=H[b>>2];H[197455]=0;ga(889,d|0,b|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}c=H[a+4>>2];h=H[a>>2]}g=d+12|0;if((c|0)==(h|0)){b=c}else{while(1){c=c-12|0;b=H[c+4>>2];d=d-12|0;H[d>>2]=H[c>>2];H[d+4>>2]=b;H[d+8>>2]=H[c+8>>2];H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;if((c|0)!=(h|0)){continue}break}c=H[a+4>>2];b=H[a>>2]}H[a>>2]=d;H[e+12>>2]=b;H[a+4>>2]=g;d=H[a+8>>2];H[a+8>>2]=f;H[e+8>>2]=b;H[e+20>>2]=d;if((b|0)!=(c|0)){while(1){c=c-12|0;H[e+16>>2]=c;if(F[c+11|0]<0){Kb(H[c>>2])}if((b|0)!=(c|0)){continue}break}}if(b){Kb(b)}xb=e+32|0;return}b=$()|0;_()|0;a=H[e+16>>2];c=H[e+12>>2];if((a|0)!=(c|0)){while(1){a=a-12|0;H[e+16>>2]=a;if(F[a+11|0]<0){Kb(H[a>>2]);a=H[e+16>>2]}if((a|0)!=(c|0)){continue}break}}a=H[e+8>>2];if(a){Kb(a)}ea(b|0);X()}bd(a);X()}Td(239085);X()}function zn(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;if(a&4){f=d>>31;e=(f^d)-f|0;a:{b:{c:{if((c|0)==1){if(!(a&2)){break c}break b}if(a&1){break b}}d:{a=N(c,7676)+b|0;if(!H[a+52>>2]){break d}c=H[a+60>>2];a=e-c|0;b=a>>31;if((a^b)-b>>>0>39){break d}e=(c|0)>48?c:48;break a}if(e>>>0<=53){e=(54-e>>>1&127)+e|0;break a}if(e>>>0>191){break a}b=e&63;if(b>>>0<10){break a}a=e&2147483584;if(b>>>0<=21){e=a|10;break a}e=b-42>>>0<12?a|54:e;break a}e:{f:{g:{h:{i:{f=H[(N(c,7676)+b|0)+52>>2];if(f){r=f&1;if((f|0)!=1){break i}i=98;f=e;break h}h=e+32&2147483584;f=e;break g}s=f&-2;i=98;m=(N(c,7676)+b|0)+56|0;f=e;while(1){n=H[(N(h|1,12)+m|0)+4>>2];j=e-n|0;o=j>>31;p=H[(N(h,12)+m|0)+4>>2];g=e-p|0;k=g>>31;g=(g^k)-k|0;q=(g|0)<(i|0);j=(j^o)-o|0;g=q?g:i;k=(j|0)<(g|0);i=k?j:g;f=k?n:q?p:f;h=h+2|0;l=l+2|0;if((s|0)!=(l|0)){continue}break}}if(r){l=H[((N(c,7676)+b|0)+N(h,12)|0)+60>>2];b=e-l|0;g=b>>31;f=((b^g)-g|0)<(i|0)?l:f}h=f+32&-64;if((e|0)<(f|0)){break f}}b=(h|48)>(e|0)?f:e;break e}b=(h-48|0)<(e|0)?f:e}if((c|0)==1){e=64;if((b|0)<64){break a}e=b+16&-64;break a}if(a&8){e=64;if((b|0)<64){break a}e=b+32&-64;break a}if((b|0)<=47){e=b- -64>>1;break a}if(b>>>0<=127){e=b+22&-64;break a}e=b+32&-64}d=(d|0)<0?0-e|0:e}return d}function w9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=H[a+12>>2];a:{if(H[a+4>>2]){if((c|0)<=0){break a}d=1;while(1){h=J[b>>1]<<16;e=+G[b+2>>1];b:{c:{d:{if(!d){e=e*.01251220703125;e:{if(P(e)<2147483648){d=~~e;break e}d=-2147483648}d=h|d<<8&65280;break d}d=gma(H[197066],H[197067],1284865837,1481765933)+1|0;f=yb;f=d?f:f+1|0;H[197066]=d;H[197067]=f;e=e*.01251220703125+ +(f>>>1|0)*4.656612875245797e-10+-.5;f:{if(P(e)<2147483648){d=~~e;break f}d=-2147483648}d=h|d<<8&65280;if(H[a+4>>2]){break c}}e=+G[b+4>>1]*.01251220703125;break b}e=+G[b+4>>1]*.01251220703125;f=gma(H[197066],H[197067],1284865837,1481765933)+1|0;h=yb;h=f?h:h+1|0;H[197066]=f;H[197067]=h;e=e+ +(h>>>1|0)*4.656612875245797e-10+-.5}g:{if(P(e)<2147483648){f=~~e;break g}f=-2147483648}H[g>>2]=f&255|d;if(c>>>0<2){break a}c=c-1|0;g=g+4|0;b=b+6|0;d=H[a+4>>2];continue}}if((c|0)<=0){break a}if(c&1){H[g>>2]=N(G[b+4>>1],410)>>>15&255|(N(G[b+2>>1],410)>>>7&65280|J[b>>1]<<16);b=b+6|0;g=g+4|0;a=c-1|0}else{a=c}d=a;if((c|0)==1){break a}while(1){H[g>>2]=N(G[b+4>>1],410)>>>15&255|(N(G[b+2>>1],410)>>>7&65280|J[b>>1]<<16);H[g+4>>2]=N(G[b+10>>1],410)>>>15&255|(N(G[b+8>>1],410)>>>7&65280|J[b+6>>1]<<16);b=b+12|0;g=g+8|0;a=d-3|0;d=d-2|0;if(a>>>0<4294967294){continue}break}}}function tp(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;l=xb-16|0;xb=l;a:{b:{c:{if((c|0)<=36){f=I[a|0];if(f){break c}g=a;break b}H[197018]=28;d=0;e=0;break a}g=a;d:{while(1){f=f<<24>>24;if(!((f|0)==32|f-9>>>0<5)){break d}f=I[g+1|0];g=g+1|0;if(f){continue}break}break b}e:{f=I[g|0];switch(f-43|0){case 0:case 2:break e;default:break b}}m=(f|0)==45?-1:0;g=g+1|0}f:{if(!(c&-17|I[g|0]!=48)){o=1;if((I[g+1|0]&223)==88){g=g+2|0;j=16;break f}g=g+1|0;j=c?c:8;break f}j=c?c:10}p=j>>31;c=0;while(1){g:{f=-48;i=F[g|0];h:{if((i-48&255)>>>0<10){break h}f=-87;if((i-97&255)>>>0<26){break h}f=-55;if((i-65&255)>>>0>25){break g}}i=f+i|0;if((i|0)>=(j|0)){break g}we(l,j,p,0,0,k,h,0,0);f=1;i:{if(H[l+8>>2]|H[l+12>>2]){break i}q=gma(k,h,j,p);n=yb;r=i>>31;s=r^-1;if((n|0)==(s|0)&(i^-1)>>>0>>0|n>>>0>s>>>0){break i}h=n+r|0;f=i+q|0;h=f>>>0>>0?h+1|0:h;k=f;o=1;f=c}g=g+1|0;c=f;continue}break}if(b){H[b>>2]=o?g:a}j:{k:{if(c){H[197018]=68;a=d&1;m=a?0:m;k=d;h=e;break k}if((e|0)==(h|0)&d>>>0>k>>>0|e>>>0>h>>>0){break j}a=d&1}if(!(a|m)){H[197018]=68;a=d;d=a-1|0;e=e-!a|0;break a}if((e|0)==(h|0)&d>>>0>=k>>>0|e>>>0>h>>>0){break j}H[197018]=68;break a}a=m;b=a^k;d=b-a|0;c=a>>31;e=(c^h)-((a>>>0>b>>>0)+c|0)|0}xb=l+16|0;yb=e;return d}function Ix(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{c=H[a+4>>2];f:{if((c|0)!=H[a+104>>2]){H[a+4>>2]=c+1;c=I[c|0];break f}c=Wc(a)}switch(c-43|0){case 0:case 2:break e;default:break d}}f=(c|0)==45;g=!b;c=H[a+4>>2];g:{if((c|0)!=H[a+104>>2]){H[a+4>>2]=c+1;c=I[c|0];break g}c=Wc(a)}b=c-58|0;if(g|b>>>0>4294967285){break c}if(H[a+116>>2]<0){break b}H[a+4>>2]=H[a+4>>2]-1;break b}b=c-58|0}if(b>>>0<4294967286){break b}b=c-48|0;if(b>>>0<10){while(1){d=N(d,10)+c|0;d=d-48|0;e=(d|0)<214748364;b=H[a+4>>2];h:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;c=I[b|0];break h}c=Wc(a)}b=c-48|0;if(e&b>>>0<=9){continue}break}e=d>>31}i:{if(b>>>0>=10){break i}while(1){d=gma(d,e,10,0);c=d+c|0;b=yb;b=c>>>0>>0?b+1|0:b;d=c-48|0;e=b-(c>>>0<48)|0;b=H[a+4>>2];j:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;c=I[b|0];break j}c=Wc(a)}b=c-48|0;if(b>>>0>9){break i}if(d>>>0<2061584302&(e|0)<=21474836|(e|0)<21474836){continue}break}}if(b>>>0<10){while(1){b=H[a+4>>2];k:{if((b|0)!=H[a+104>>2]){H[a+4>>2]=b+1;b=I[b|0];break k}b=Wc(a)}if(b-48>>>0<10){continue}break}}b=H[a+116>>2];if((b|0)>0|(b|0)>=0){H[a+4>>2]=H[a+4>>2]-1}a=d;d=f?0-a|0:a;e=f?0-(((a|0)!=0)+e|0)|0:e;break a}e=-2147483648;if(H[a+116>>2]<0){break a}H[a+4>>2]=H[a+4>>2]-1;yb=-2147483648;return 0}yb=e;return d}function Su(a){var b=0,c=0,d=0,e=0,f=0;if(a){c=H[a+100>>2];d=H[a>>2];if(d){zb[H[c+8>>2]](c,d)}H[a>>2]=0;d=H[a+92>>2];if(d){mn(d,c);d=H[a+92>>2];if(d){zb[H[c+8>>2]](c,d)}H[a+92>>2]=0}d=H[a+84>>2];if(d){zb[H[c+8>>2]](c,d)}H[a+84>>2]=0;d=H[a+72>>2];if(d){while(1){e=b<<4;f=e+H[a+80>>2]|0;if(H[f+4>>2]==1){d=H[f+12>>2];if(d){zb[H[c+8>>2]](c,d)}H[(e+H[a+80>>2]|0)+12>>2]=0;d=H[a+72>>2]}b=b+1|0;if(d>>>0>b>>>0){continue}break}}b=H[a+80>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+80>>2]=0;if(H[a+52>>2]){b=H[a+56>>2];d=0;while(1){e=H[b>>2];if(e){zb[H[c+8>>2]](c,e)}H[b>>2]=0;e=H[b+24>>2];if(e){zb[H[c+8>>2]](c,e)}H[b+24>>2]=0;b=b+36|0;d=d+1|0;if(d>>>0>2]){continue}break}}if(H[a+64>>2]){b=H[a+68>>2];d=0;while(1){e=H[b>>2];if(e){zb[H[c+8>>2]](c,e)}H[b>>2]=0;e=H[b+24>>2];if(e){zb[H[c+8>>2]](c,e)}H[b+24>>2]=0;b=b+36|0;d=d+1|0;if(d>>>0>2]){continue}break}}b=H[a+56>>2];if(b){zb[H[c+8>>2]](c,b)}d=0;H[a+56>>2]=0;b=H[a+68>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+68>>2]=0;mn(a+112|0,c);b=H[a+104>>2];if(H[a+108>>2]){while(1){e=H[b>>2];if(e){zb[H[c+8>>2]](c,e)}H[b>>2]=0;if(H[b+4>>2]==1){e=H[b+12>>2];if(e){zb[H[c+8>>2]](c,e)}H[b+12>>2]=0}b=b+16|0;d=d+1|0;if(d>>>0>2]){continue}break}b=H[a+104>>2]}if(b){zb[H[c+8>>2]](c,b)}H[a+104>>2]=0}}function sE(a,b,c,d){var e=0,f=0,g=0;if(H[b+20>>2]){return 0}a:{f=a+6|0;g=H[b+4>>2];e=f-g|0;if(!((e|0)>=0&(e|0)<=(H[b+8>>2]-g|0))){break a}b:{c:{if((f|0)==(g|0)){H[b+4>>2]=e+f;break c}f=0;Nb(g,0,e);g=e;e=H[b+4>>2];H[b+4>>2]=g+e;if(!e){break b}}f=d<<8|(d&65280)>>>8;F[a+2|0]=f;F[a+3|0]=f>>>8;c=c<<8|(c&65280)>>>8;F[a|0]=c;F[a+1|0]=c>>>8;if(H[b+20>>2]){return 0}f=a+6|0;e=H[b+4>>2];c=f-e|0;if(!((c|0)>=0&(c|0)<=(H[b+8>>2]-e|0))){break a}d:{if((e|0)==(f|0)){H[b+4>>2]=c+f;break d}f=0;Nb(e,0,c);e=c;c=H[b+4>>2];H[b+4>>2]=e+c;if(!c){break b}}F[a+4|0]=0;F[a+5|0]=1;if(H[b+20>>2]){return 0}f=a+8|0;e=H[b+4>>2];c=f-e|0;if(!((c|0)>=0&(c|0)<=(H[b+8>>2]-e|0))){break a}e:{if((e|0)==(f|0)){c=c+f|0;H[b+4>>2]=c;break e}f=0;Nb(e,0,c);e=H[b+4>>2];c=e+c|0;H[b+4>>2]=c;if(!e){break b}}f=1;if(!(I[a+3|0]&16)){break b}f=0;if(H[b+20>>2]){break b}e=I[a+4|0]|I[a+5|0]<<8;g=(((e<<8|e>>>8)&65535)<<1)+2|0;e=((g+a|0)-a|0)+6|0;if((e|0)<0){break b}f=a+e|0;e=f-c|0;if(!((e|0)>=0&(e|0)<=(H[b+8>>2]-c|0))){break a}f:{if((c|0)==(f|0)){H[b+4>>2]=c+e;break f}f=0;Nb(c,0,e);c=b;b=H[b+4>>2];H[c+4>>2]=b+e;if(!b){break b}b=I[a+4|0]|I[a+5|0]<<8;g=(((b<<8|b>>>8)&65535)<<1)+2|0}a=a+g|0;b=d>>>8&16776960|d>>>24;F[a+4|0]=b;F[a+5|0]=b>>>8;f=1}return f}H[b+20>>2]=4;return 0}function jW(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=H[a+240>>2];if(c){zb[H[H[c>>2]+180>>2]](c,b)}c=H[b>>2];a:{if((c|0)==H[b+4>>2]){break a}e=G[c+2>>1];f=G[c>>1];c=H[a+240>>2];b:{if(c){zb[H[H[c>>2]+32>>2]](c,+(f|0),+(e|0));break b}if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;H[a+184>>2]=e;H[a+176>>2]=e;break b}c=a+172|0;c:{if((f|0)>=H[c>>2]){c=a+180|0;if((f|0)<=H[c>>2]){break c}}H[c>>2]=f}if((e|0)>2]){H[a+176>>2]=e;break b}if((e|0)<=H[a+184>>2]){break b}H[a+184>>2]=e}c=H[a+168>>2];G[c+132>>1]=f;G[c+134>>1]=e;c=H[b>>2];if(H[b+4>>2]-c>>>0>=5){e=a+180|0;f=a+172|0;d=1;h=1;while(1){c=(d<<2)+c|0;d=G[c+2>>1];g=G[c>>1];c=H[a+240>>2];d:{if(c){zb[H[H[c>>2]+36>>2]](c,+(g|0),+(d|0));break d}if(I[a+188|0]){H[a+180>>2]=g;H[a+172>>2]=g;F[a+188|0]=0;H[a+184>>2]=d;H[a+176>>2]=d;break d}c=f;e:{if(H[c>>2]<=(g|0)){c=e;if(H[c>>2]>=(g|0)){break e}}H[c>>2]=g}if((d|0)>2]){H[a+176>>2]=d;break d}if((d|0)<=H[a+184>>2]){break d}H[a+184>>2]=d}c=H[a+168>>2];G[c+132>>1]=g;G[c+134>>1]=d;h=h+1|0;d=h<<16>>16;c=H[b>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}b=H[a+240>>2];if(!b){break a}zb[H[H[b>>2]+48>>2]](b);b=H[a+240>>2];if(!b){break a}zb[H[H[b>>2]+52>>2]](b,3);a=H[a+240>>2];zb[H[H[a>>2]+56>>2]](a)}}function CB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-112|0;xb=e;b=(b|0)==-1?H[a+60>>2]:b;a:{b:{c:{if(!(I[a+13|0]&64|(J[a+138>>1]!=1|J[a+90>>1]!=6))){H[e+84>>2]=e+110;H[e+80>>2]=e+108;Cc(a,530,e+80|0);d=J[e+108>>1];h=N(d,J[e+110>>1]);if(!h){b=0;Pb(H[a+628>>2],H[a>>2],271954,0);break a}c=H[a+56>>2];if(c>>>0<0-d>>>0){f=((c+d|0)-1>>>0)/(d>>>0)|0}else{f=0}g=N(f,d);f=J[a+84>>1];c=gma(g,0,f,0);d=(yb|0)!=0;d:{e:{f:{if(f){if(d){d=H[a>>2];c=H[a+628>>2];H[e+48>>2]=272531;Pb(c,d,274538,e+48|0);f=J[a+84>>1];c=gma(f,0,g,0);d=(yb|0)!=0;break f}if(!(c&7)){break e}if(!d){break c}d=H[a>>2];c=H[a+628>>2];H[e+64>>2]=272531;Pb(c,d,274538,e- -64|0);c=0;break c}if(c&7){break c}}if(!f){break d}}if(!d){break d}d=H[a>>2];c=H[a+628>>2];H[e+32>>2]=272531;Pb(c,d,274538,e+32|0);c=0}d=c>>>3|0;break b}d=Ve(a);b=gma(d,0,b,0);c=yb;if(!d|!c){break a}b=H[a>>2];a=H[a+628>>2];H[e+96>>2]=272531;Pb(a,b,274538,e+96|0);b=0;break a}d=(c>>>3|0)+1|0}g=J[e+110>>1];if(0-g>>>0>b>>>0){b=((b+g|0)-1>>>0)/(g>>>0)|0}else{b=0}c=gma(d,0,N(b,g),0);b=yb;if(!(!d|!b)){c=H[a>>2];b=H[a+628>>2];H[e+16>>2]=272531;Pb(b,c,274538,e+16|0);c=0}b=(c|0)/(h|0)|0;f=b+b|0;if(!(!b|b>>>0<=f>>>0)){b=H[a>>2];a=H[a+628>>2];H[e>>2]=272531;Pb(a,b,274538,e);f=0}b=f+c|0}xb=e+112|0;return b}function FE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=xb-16|0;xb=i;e=H[b+100>>2];g=I[a+2|0]|I[a+3|0]<<8;if(g){c=((g<<8|g>>>8)&65535)+a|0}else{c=163632}g=Gc(c,H[H[e+80>>2]+N(H[e+64>>2],20)>>2]);c=0;a:{if((g|0)==-1){break a}c=H[e+64>>2];H[b+40>>2]=1;H[b+4>>2]=c;f=H[H[b+8>>2]+100>>2];H[b+44>>2]=H[f+68>>2];h=(c|0)==H[f+64>>2]?I[(H[f+80>>2]+N(c,20)|0)+15|0]:h;H[b+12>>2]=8;F[b+24|0]=h;b:{f=b+4|0;if(ah(f,i+12|0)){while(1){h=H[e+80>>2];c=H[f>>2];d=h+N(c,20)|0;if(!(I[d+12|0]&64)){break b}d=I[d+14|0];k=d&16?0:d&15;if(!k|!c){break b}l=h+N(c-1|0,20)|0;if(I[l+12|0]&8){break b}j=d;d=I[l+14|0];if((j^d)>>>0>31|((d&16?1:(d&15)+1|0)|0)!=(k|0)){break b}H[b+40>>2]=H[b+40>>2]+1;c=H[b+36>>2];if(c){H[b+36>>2]=c-2}if(ah(f,i+12|0)){continue}break}}if(I[e+16|0]&64){Rc(e,2,H[i+12>>2],H[e+64>>2]+1|0,0,1)}c=0;break a}d=I[a+4|0]|I[a+5|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}c=Gc(d,H[h+N(c,20)>>2]);if((c|0)==-1){c=0;if(!(I[e+16|0]&64)){break a}Rc(e,2,H[f>>2],H[e+64>>2]+1|0,0,1);c=0;break a}e=I[a+8|0]|I[a+9|0]<<8;if(e){d=((e<<8|e>>>8)&65535)+a|0}else{d=163632}f=I[a+10|0]|I[a+11|0]<<8;if(f){j=((f<<8|f>>>8)&65535)+a|0}else{j=163632}a=I[a+6|0]|I[a+7|0]<<8;c=Rr(d,b,g,c,j,(a<<8|a>>>8)&65535,H[b+4>>2])}xb=i+16|0;return c}function ME(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;d=H[b+4>>2];a:{if(d>>>0>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0){break a}if(c-a>>>0<=11){break a}g=H[b+12>>2];f=g-12|0;H[b+12>>2]=f;if((f|0)<=0){break a}f=d;d=a+2|0;if(f>>>0>d>>>0|c>>>0>>0|c-d>>>0<2){break a}c=g-14|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[d|0]|I[d+1|0]<<8;b:{if(!c){break b}if(Ud(((c<<8|c>>>8)&65535)+a|0,b)){break b}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}d=a+4|0;if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[d|0]|I[d+1|0]<<8;c:{if(!c){break c}if(Ud(((c<<8|c>>>8)&65535)+a|0,b)){break c}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}d=a+8|0;if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[d|0]|I[d+1|0]<<8;d:{if(!c){break d}c=((c<<8|c>>>8)&65535)+a|0;H[e+12>>2]=c;if(LE(c,b,e+12|0)){break d}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}d=I[a+6|0]|I[a+7|0]<<8;H[e+8>>2]=(d<<8|d>>>8)&65535;h=KE(a+10|0,b,a,e+8|0)}xb=e+16|0;return h}function ky(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb+-64|0;xb=d;a:{b:{c:{d:{e:{f:{g:{h:{if(!H[a>>2]){break h}rj(d,752228,b);H[197455]=0;b=da(1699,d|0,752236)|0;e=H[197455];H[197455]=0;if((e|0)==1){break g}H[d+24>>2]=H[b+8>>2];e=H[b+4>>2];H[d+16>>2]=H[b>>2];H[d+20>>2]=e;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;b=I[c+11|0];e=H[c>>2];f=H[c+4>>2];H[197455]=0;g=c;c=b<<24>>24<0;b=ca(1759,d+16|0,(c?e:g)|0,(c?f:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}H[d+40>>2]=H[b+8>>2];c=H[b+4>>2];H[d+32>>2]=H[b>>2];H[d+36>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[197455]=0;b=da(1699,d+32|0,752248)|0;c=H[197455];H[197455]=0;if((c|0)==1){break e}H[d+56>>2]=H[b+8>>2];c=H[b+4>>2];H[d+48>>2]=H[b>>2];H[d+52>>2]=c;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;a=H[a>>2];H[197455]=0;ba(3306,a|0,d+48|0);a=H[197455];H[197455]=0;if((a|0)==1){break d}if(F[d+59|0]<0){Kb(H[d+48>>2])}if(F[d+43|0]<0){Kb(H[d+32>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}if(F[d+11|0]>=0){break h}Kb(H[d>>2])}xb=d- -64|0;return}c=$()|0;_()|0;break a}c=$()|0;_()|0;break b}c=$()|0;_()|0;break c}c=$()|0;_()|0;if(F[d+59|0]>=0){break c}Kb(H[d+48>>2])}if(F[d+43|0]>=0){break b}Kb(H[d+32>>2])}if(F[d+27|0]>=0){break a}Kb(H[d+16>>2])}if(F[d+11|0]<0){Kb(H[d>>2])}ea(c|0);X()}function f7(a,b){a=a|0;b=b|0;var c=0,d=0;H[a+4>>2]=1;H[a>>2]=245312;H[a>>2]=395964;H[197455]=0;c=aa(899,264)|0;d=H[197455];H[197455]=0;a:{b:{c:{d:{if((d|0)!=1){H[197455]=0;aa(1636,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){b=$()|0;_()|0;Kb(c);break a}H[a+16>>2]=c;H[197455]=0;c=aa(899,256)|0;d=H[197455];H[197455]=0;if((d|0)==1){break d}H[197455]=0;aa(1637,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){b=$()|0;_()|0;Kb(c);break b}H[a+12>>2]=0;H[a+20>>2]=c;H[a+8>>2]=b;if(b){c=H[H[b>>2]+52>>2];H[197455]=0;c=aa(c|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break c}H[a+12>>2]=c;H[197455]=0;c=H[197455];H[197455]=0;if((c|0)==1){break c}c=H[H[b>>2]+24>>2];H[197455]=0;b=aa(c|0,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break c}c=H[H[0]+24>>2];H[197455]=0;ba(c|0,0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}b=H[a+12>>2];c=H[H[b>>2]+68>>2];H[197455]=0;ba(c|0,b|0,0);b=H[197455];H[197455]=0;if((b|0)==1){break c}c=H[a+20>>2];b=H[a+12>>2]}else{b=0}H[H[a+16>>2]+20>>2]=b;H[(H[H[c>>2]-12>>2]+c|0)+20>>2]=b;H[a+24>>2]=0;return a|0}b=$()|0;_()|0;break a}b=$()|0;_()|0;break b}b=$()|0;_()|0;c=H[a+20>>2];if(!c){break b}zb[H[H[c>>2]+4>>2]](c);H[a+20>>2]=0}a=H[a+16>>2];if(!a){break a}zb[H[H[a>>2]+4>>2]](a)}ea(b|0);X()}function ds(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=xb-48|0;xb=b;c=H[a>>2];a:{if(c){break a}h=a-8|0;while(1){c=H[h>>2];if(!c){c=163632;break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;F[b+40|0]=1;H[b+36>>2]=0;c=dd(c,1835104368);if(!(!c|!H[c>>2])){H[c>>2]=H[c>>2]+1}F[b+24|0]=0;H[b+32>>2]=c;e=H[c+12>>2];H[b+4>>2]=e;f=H[c+16>>2];H[b+8>>2]=e+f;H[b+28>>2]=0;if(f>>>0>67108862){d=1073741823}else{d=f<<6;d=d>>>0>16384?d:16384;d=d>>>0<1073741823?d:1073741823}H[b+12>>2]=d;H[b+20>>2]=0;H[b>>2]=0;b:{if(!e){Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;break b}c:{d:{if((f|0)<6){break d}H[b+12>>2]=d-6;e:{f:{g=I[e|0]|I[e+1|0]<<8;switch((g<<8|g>>>8)&65535){case 0:break e;case 1:break f;default:break d}}if(f-6>>>0<26){break d}H[b+12>>2]=d-32;Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(H[c+4>>2]){H[c+4>>2]=0}break b}d=I[e+2|0]|I[e+3|0]<<8;Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if((d|0)!=80){break c}if(H[c+4>>2]){H[c+4>>2]=0}break b}Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}Wb(c);c=163632}d=H[a>>2];c=c?c:163632;H[a>>2]=d?d:c;if(!d){break a}if(!(!c|(c|0)==163632)){Wb(c)}c=H[a>>2];if(!c){continue}break}}xb=b+48|0;return K[c+16>>2]<6?163632:H[c+12>>2]}function EF(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{e=N(c,20)+a|0;j=J[e+16>>1];if(!j){break a}f=I[e+18|0];G[e+16>>1]=0;g=j<<16>>16;e=g+c|0;if(e>>>0>=b>>>0){break a}EF(a,b,e,d);if(f&2){if((d&-2)==4){b=N(c,20)+a|0;H[b+12>>2]=H[b+12>>2]+H[(N(e,20)+a|0)+12>>2];return}b=N(c,20)+a|0;H[b+8>>2]=H[b+8>>2]+H[(N(e,20)+a|0)+8>>2];return}h=N(c,20)+a|0;b=N(e,20)+a|0;f=H[h+8>>2]+H[b+8>>2]|0;H[h+8>>2]=f;b=H[h+12>>2]+H[b+12>>2]|0;H[h+12>>2]=b;b:{if((d&-3)!=4){e=e+1|0;if(e>>>0>=c+1>>>0){break a}g=0-g&3;if(g){d=e;while(1){e=N(d,20)+a|0;b=H[e+4>>2]+b|0;f=H[e>>2]+f|0;e=d+1|0;d=e;i=i+1|0;if((g|0)!=(i|0)){continue}break}}if(j>>>0>65532){break b}while(1){d=N(e,20)+a|0;b=(((H[d+4>>2]+b|0)+H[d+24>>2]|0)+H[d+44>>2]|0)+H[d- -64>>2]|0;f=H[d+60>>2]+(H[d+40>>2]+(H[d+20>>2]+(H[d>>2]+f|0)|0)|0)|0;d=e+3|0;e=e+4|0;if((c|0)!=(d|0)){continue}break}break b}if(c>>>0<=e>>>0){break a}g=0-g&3;if(g){d=e;while(1){e=N(d,20)+a|0;b=b-H[e+4>>2]|0;f=f-H[e>>2]|0;e=d+1|0;d=e;i=i+1|0;if((g|0)!=(i|0)){continue}break}}if(j>>>0>65532){break b}while(1){d=N(e,20)+a|0;b=b-(((H[d+4>>2]+H[d+24>>2]|0)+H[d+44>>2]|0)+H[d- -64>>2]|0)|0;f=f-(H[d+60>>2]+(H[d+40>>2]+(H[d>>2]+H[d+20>>2]|0)|0)|0)|0;e=e+4|0;if((e|0)!=(c|0)){continue}break}}H[h+8>>2]=f;H[h+12>>2]=b}}function ak(a){a=a|0;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;c=H[a+532>>2];if(c){h=H[c+4>>2];e=H[c>>2];f=H[a+100>>2];b=H[c+24>>2];if(b){zb[H[f+8>>2]](f,b)}H[c+24>>2]=0;if(e>>>0>=2){Nb(c+28|0,0,(e<<2)-4|0)}b=H[c+216>>2];if(b){zb[H[f+8>>2]](f,b)}H[c+216>>2]=0;b=H[c+148>>2];if(b){zb[H[f+8>>2]](f,b)}H[c+148>>2]=0;b=H[c+288>>2];if(b){zb[H[f+8>>2]](f,b)}H[c+288>>2]=0;a:{if(!e){break a}if(e-1>>>0>=3){n=e&-4;i=c+212|0;j=c+144|0;k=c+284|0;while(1){b=d<<2;H[b+i>>2]=0;H[b+j>>2]=0;H[b+k>>2]=0;g=b|4;H[g+i>>2]=0;H[g+j>>2]=0;H[g+k>>2]=0;g=b|8;H[g+i>>2]=0;H[g+j>>2]=0;H[g+k>>2]=0;b=b|12;H[b+i>>2]=0;H[b+j>>2]=0;H[b+k>>2]=0;d=d+4|0;l=l+4|0;if((l|0)!=(n|0)){continue}break}}b=e&3;if(!b){break a}while(1){e=(d<<2)+c|0;H[e+284>>2]=0;H[e+144>>2]=0;H[e+212>>2]=0;d=d+1|0;m=m+1|0;if((b|0)!=(m|0)){continue}break}}d=H[c+136>>2];if(d){zb[H[f+8>>2]](f,d)}H[c+136>>2]=0;H[c+140>>2]=0;b:{if(!h){break b}d=0;while(1){e=(d<<2)+c|0;b=H[e+8>>2];if(b){zb[H[f+8>>2]](f,b)}H[e+8>>2]=0;d=d+1|0;if((h|0)!=(d|0)){continue}break}if(!h){break b}d=0;while(1){e=N(d,12)+c|0;b=H[e+92>>2];if(b){zb[H[f+8>>2]](f,b)}F[e+88|0]=0;H[e+92>>2]=0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}c=H[a+532>>2];if(c){zb[H[f+8>>2]](f,c)}H[a+532>>2]=0}}function Rp(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;g=H[a>>2]-12|0;f=H[g>>2]+a|0;e=f+8|0;d=H[e>>2];h=H[f+12>>2];if(h>>>0>d+3>>>0){l=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[f+8>>2]=d+4;f=H[g>>2]+a|0;h=H[f+12>>2];e=f+8|0;d=H[e>>2]}if(d+3>>>0>>0){m=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[e>>2]=d+4;f=H[g>>2]+a|0;h=H[f+12>>2];e=f+8|0;d=H[e>>2]}if(d+3>>>0>>0){H[e>>2]=d+4;e=(H[g>>2]+a|0)+8|0;d=H[e>>2]}H[e>>2]=d+4;f=H[g>>2]+a|0;d=H[f+8>>2];if(d+3>>>0>2]){n=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[f+8>>2]=d+4}if(c){f=H[a+116>>2]-28|0;i=Qb(f);j=H[g>>2]+a|0;k=H[j+12>>2];a=H[j+8>>2];c=k-a|0;g=c>>>0>>0?c:f;a:{if(!g){break a}d=0;if((g|0)!=1){h=g&-2;c=0;while(1){b:{if(a>>>0>=k>>>0){e=0;break b}e=I[a|0];a=a+1|0;H[j+8>>2]=a}F[d+i|0]=e;e=0;if(a>>>0>>0){e=I[a|0];a=a+1|0;H[j+8>>2]=a}F[(d|1)+i|0]=e;d=d+2|0;c=c+2|0;if((h|0)!=(c|0)){continue}break}}if(!(g&1)){break a}e=0;if(a>>>0>>0){e=I[a|0];H[j+8>>2]=a+1}F[d+i|0]=e}if(!n){H[b+28>>2]=m;H[b+24>>2]=l}d=H[b+12>>2];e=H[b+4>>2];c:{d:{if(!(d|(e|!f))){e=Qb(f);H[b+12>>2]=f;H[b+4>>2]=e;d=f;break d}if(!d){break c}}c=H[b+8>>2];a=c+f>>>0>d>>>0?d-c|0:f;Ob(c+e|0,i,a);H[b+8>>2]=a+H[b+8>>2]}Kb(i)}}function PP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;j=xb-16|0;xb=j;i=c;while(1){a:{if((d|0)==(i|0)){i=d;break a}if(!H[i>>2]){break a}i=i+4|0;continue}break}H[h>>2]=f;H[e>>2]=c;while(1){b:{c:{if(!((c|0)==(d|0)|(f|0)==(g|0))){k=H[b+4>>2];H[j+8>>2]=H[b>>2];H[j+12>>2]=k;m=1;l=xb-16|0;xb=l;H[l+12>>2]=H[a+8>>2];n=Kf(l+8|0,l+12|0);H[197455]=0;k=pa(3556,f|0,e|0,i-c>>2,g-f|0,b|0)|0;o=H[197455];H[197455]=0;d:{if((o|0)!=1){me(n);xb=l+16|0;break d}a=$()|0;_()|0;me(n);ea(a|0);X()}e:{f:{g:{h:{switch(k+1|0){case 0:H[h>>2]=f;while(1){i:{if(H[e>>2]==(c|0)){break i}b=Po(f,H[c>>2],j+8|0,H[a+8>>2]);if((b|0)==-1){break i}f=b+H[h>>2]|0;H[h>>2]=f;c=c+4|0;continue}break};H[e>>2]=c;break g;case 1:break c;default:break h}}f=k+H[h>>2]|0;H[h>>2]=f;if((f|0)==(g|0)){break e}if((d|0)==(i|0)){c=H[e>>2];i=d;continue}i=Po(j+4|0,0,b,H[a+8>>2]);if((i|0)!=-1){break f}}m=2;break c}c=j+4|0;if(g-H[h>>2]>>>0>>0){break c}while(1){if(i){f=I[c|0];k=H[h>>2];H[h>>2]=k+1;F[k|0]=f;i=i-1|0;c=c+1|0;continue}break}c=H[e>>2]+4|0;H[e>>2]=c;i=c;while(1){if((d|0)==(i|0)){i=d;break b}if(!H[i>>2]){break b}i=i+4|0;continue}}c=H[e>>2]}m=(c|0)!=(d|0)}xb=j+16|0;return m|0}f=H[h>>2];continue}}function LW(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=a+120|0;d=H[c+8>>2];b=H[c+4>>2];a:{if((d|0)==(b|0)){b=d;break a}while(1){f=H[(e<<2)+b>>2];if(f){Fp(f);Kb(f);d=H[c+8>>2];b=H[c+4>>2]}e=e+1|0;if(e>>>0>2>>>0){continue}break}}H[c+8>>2]=b;b=H[c+20>>2];f=c+24|0;if((b|0)!=(f|0)){while(1){d=b;b=H[b+20>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}e=H[d+4>>2];b:{if(!e){b=H[d+8>>2];if((d|0)==H[b>>2]){break b}e=d+8|0;while(1){d=H[e>>2];e=d+8|0;b=H[d+8>>2];if((d|0)!=H[b>>2]){continue}break}break b}while(1){b=e;e=H[b>>2];if(e){continue}break}}if((b|0)!=(f|0)){continue}break}}jj(c+20|0,H[c+24>>2]);H[c+20>>2]=f;H[c+24>>2]=0;H[c+28>>2]=0;e=Qb(296);H[197455]=0;vm(e);b=H[197455];H[197455]=0;c:{d:{e:{if((b|0)!=1){H[c>>2]=e;b=H[c+8>>2];f:{if((b|0)!=H[c+12>>2]){H[b>>2]=e;H[c+8>>2]=b+4;break f}g=c+4|0;f=H[g>>2];d=b-f|0;h=d>>2;b=h+1|0;if(b>>>0>=1073741824){break e}g=d>>1;g=d>>>0<2147483644?b>>>0>>0?g:b:1073741823;if(g){if(g>>>0>=1073741824){break d}b=Qb(g<<2)}else{b=0}h=b+(h<<2)|0;H[h>>2]=e;if((d|0)>0){Ob(b,f,d)}H[c+12>>2]=b+(g<<2);H[c+8>>2]=h+4;H[c+4>>2]=b;if(!f){break f}Kb(f)}G[c+32>>1]=0;H[c+40>>2]=H[c+36>>2];break c}a=$()|0;_()|0;Kb(e);ea(a|0);X()}bd(g);X()}Td(239085);X()}b=H[c>>2];F[a+256|0]=0;H[a+168>>2]=b}function uC(a,b){var c=0,d=0;a:{b:{switch(I[a+8|0]){case 0:c=H[a+4>>2];if(!c){break a}if(c-1>>>0>=3){d=c&-4;a=0;while(1){F[b|0]=I[b|0]^-1;F[b+1|0]=I[b+1|0]^-1;F[b+2|0]=I[b+2|0]^-1;F[b+3|0]=I[b+3|0]^-1;b=b+4|0;a=a+4|0;if((d|0)!=(a|0)){continue}break}}c=c&3;if(!c){break a}a=0;while(1){F[b|0]=I[b|0]^-1;b=b+1|0;a=a+1|0;if((c|0)!=(a|0)){continue}break};break a;case 4:break b;default:break a}}c:{switch(I[a+9|0]-8|0){case 0:a=H[a+4>>2];if(!a){break a}a=a-1|0;d=(a>>>1|0)+1|0;c=d&3;if(a>>>0>=6){d=d&-4;a=0;while(1){F[b|0]=I[b|0]^-1;F[b+2|0]=I[b+2|0]^-1;F[b+4|0]=I[b+4|0]^-1;F[b+6|0]=I[b+6|0]^-1;b=b+8|0;a=a+4|0;if((d|0)!=(a|0)){continue}break}}if(!c){break a}a=0;while(1){F[b|0]=I[b|0]^-1;b=b+2|0;a=a+1|0;if((c|0)!=(a|0)){continue}break};break a;case 8:break c;default:break a}}a=H[a+4>>2];if(!a){break a}a=a-1|0;d=(a>>>2|0)+1|0;c=d&3;if(a>>>0>=12){d=d&2147483644;a=0;while(1){F[b|0]=I[b|0]^-1;F[b+1|0]=I[b+1|0]^-1;F[b+4|0]=I[b+4|0]^-1;F[b+5|0]=I[b+5|0]^-1;F[b+8|0]=I[b+8|0]^-1;F[b+9|0]=I[b+9|0]^-1;F[b+12|0]=I[b+12|0]^-1;F[b+13|0]=I[b+13|0]^-1;b=b+16|0;a=a+4|0;if((d|0)!=(a|0)){continue}break}}if(!c){break a}a=0;while(1){F[b|0]=I[b|0]^-1;F[b+1|0]=I[b+1|0]^-1;b=b+4|0;a=a+1|0;if((c|0)!=(a|0)){continue}break}}}function Xea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=H[a+480>>2];c=H[d+24>>2];a:{b:{c:{if(!H[a+88>>2]){if(b){break b}b=1225;break c}H[a+88>>2]=2;if(b){break b}b=1226}H[d+8>>2]=1227;H[d+4>>2]=b;b=1;e=H[a+132>>2];d:{if((e|0)<=0){e=58}else{if(e>>>0<257){break d}b=256;e=59}f=H[a>>2];H[f+24>>2]=b;H[f+20>>2]=e;zb[H[H[a>>2]>>2]](a)}if(H[a+88>>2]!=2){break a}b=N(H[a+112>>2],6)+12|0;e=H[d+32>>2];if(!e){e=zb[H[H[a+4>>2]+4>>2]](a,1,b)|0;H[d+32>>2]=e}Mc(e,b);if(!H[d+40>>2]){UC(a)}H[d+36>>2]=0;break a}H[d+28>>2]=1;H[d+8>>2]=1228;H[d+4>>2]=1229}if(H[d+28>>2]){Mc(H[c>>2],4096);Mc(H[c+4>>2],4096);Mc(H[c+8>>2],4096);Mc(H[c+12>>2],4096);Mc(H[c+16>>2],4096);Mc(H[c+20>>2],4096);Mc(H[c+24>>2],4096);Mc(H[c+28>>2],4096);Mc(H[c+32>>2],4096);Mc(H[c+36>>2],4096);Mc(H[c+40>>2],4096);Mc(H[c+44>>2],4096);Mc(H[c+48>>2],4096);Mc(H[c+52>>2],4096);Mc(H[c+56>>2],4096);Mc(H[c+60>>2],4096);Mc(H[c+64>>2],4096);Mc(H[c+68>>2],4096);Mc(H[c+72>>2],4096);Mc(H[c+76>>2],4096);Mc(H[c+80>>2],4096);Mc(H[c+84>>2],4096);Mc(H[c+88>>2],4096);Mc(H[c+92>>2],4096);Mc(H[c+96>>2],4096);Mc(H[c+100>>2],4096);Mc(H[c+104>>2],4096);Mc(H[c+108>>2],4096);Mc(H[c+112>>2],4096);Mc(H[c+116>>2],4096);Mc(H[c+120>>2],4096);Mc(H[c+124>>2],4096);H[d+28>>2]=0}}function Fca(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;d=H[a+420>>2];a:{b:{c:{if(!b){H[d+8>>2]=1377;if(H[a+264>>2]){break c}H[d+4>>2]=1378;break a}H[d+8>>2]=1379;if(!H[a+264>>2]){break b}}H[d+108>>2]=b;H[d+120>>2]=a;c=H[a+360>>2];d:{if(!H[a+368>>2]){if(!c){H[d+4>>2]=1380;break d}H[d+4>>2]=1381;break d}if(!c){H[d+4>>2]=1382;break d}H[d+4>>2]=1383;if(H[d+136>>2]){break d}i=d,j=zb[H[H[a+4>>2]>>2]](a,1,1e3)|0,H[i+136>>2]=j}c=H[H[a+292>>2]+24>>2];H[d+128>>2]=0;H[d+132>>2]=0;H[d+124>>2]=c;break a}H[d+4>>2]=1384}if(H[a+288>>2]>0){while(1){h=g<<2;e=H[(h+a|0)+292>>2];if(!(H[a+360>>2]|H[a+368>>2])){c=H[e+20>>2];e:{if(b){if(c>>>0>=4){f=H[a>>2];H[f+24>>2]=c;H[f+20>>2]=52;zb[H[H[a>>2]>>2]](a)}f=(c<<2)+d|0;c=H[f+76>>2];if(!c){c=zb[H[H[a+4>>2]>>2]](a,1,1028)|0;H[f+76>>2]=c}Nb(c,0,1028);break e}MC(a,1,c,((c<<2)+d|0)+44|0)}H[(d+h|0)+20>>2]=0}f:{if(!H[a+364>>2]){break f}c=H[e+24>>2];if(b){if(c>>>0>=4){e=H[a>>2];H[e+24>>2]=c;H[e+20>>2]=52;zb[H[H[a>>2]>>2]](a)}e=(c<<2)+d|0;c=H[e+92>>2];if(!c){c=zb[H[H[a+4>>2]>>2]](a,1,1028)|0;H[e+92>>2]=c}Nb(c,0,1028);break f}MC(a,0,c,((c<<2)+d|0)+60|0)}g=g+1|0;if((g|0)>2]){continue}break}}H[d+12>>2]=0;H[d+16>>2]=0;a=H[a+236>>2];H[d+40>>2]=0;H[d+36>>2]=a}function yD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(H[b+60>>2]){c=H[b+16>>2];H[a+12>>2]=H[b+12>>2];H[a+16>>2]=c;c=H[b+48>>2];H[a+44>>2]=H[b+44>>2];H[a+48>>2]=c;c=H[b+40>>2];H[a+36>>2]=H[b+36>>2];H[a+40>>2]=c;c=H[b+32>>2];H[a+28>>2]=H[b+28>>2];H[a+32>>2]=c;c=H[b+24>>2];H[a+20>>2]=H[b+20>>2];H[a+24>>2]=c;Ob(a+52|0,b+52|0,872);H[a+4>>2]=H[b+4>>2];H[a+8>>2]=H[b+8>>2];H[a+924>>2]=H[b+924>>2];H[a+928>>2]=H[b+928>>2];H[a+932>>2]=H[b+932>>2];c=H[b+936>>2];H[a+60>>2]=b;H[a+936>>2]=c;return}Ob(a+52|0,b+52|0,872);f=H[b+48>>2];H[a+44>>2]=H[b+44>>2];H[a+48>>2]=f;f=H[b+40>>2];H[a+36>>2]=H[b+36>>2];H[a+40>>2]=f;f=H[b+32>>2];H[a+28>>2]=H[b+28>>2];H[a+32>>2]=f;f=H[b+24>>2];H[a+20>>2]=H[b+20>>2];H[a+24>>2]=f;f=H[b+16>>2];H[a+12>>2]=H[b+12>>2];H[a+16>>2]=f;cl(a,H[b+16>>2],H[b+20>>2],J[b+26>>1],H[b+68>>2]);a:{b:{if(!c){break b}c=H[a+4>>2];if(!c){break b}f=H[b+4>>2];if(!f){break b}Ob(c,f,(H[a+32>>2]+H[a+12>>2]|0)+(H[a+44>>2]<<2)|0);break a}c=H[b+4>>2];fr(a,c?H[b+44>>2]?c+40|0:0:0,256)}c=N(H[a+20>>2],H[a+16>>2]);if(!(!d|!H[b+924>>2])){d=H[a+924>>2];if(d){Kb(d)}d=Tb(c);H[a+924>>2]=d;Ob(d,H[b+924>>2],c)}if(!(!e|!H[b+928>>2])){d=H[a+928>>2];if(d){Kb(d)}d=a;a=Tb(c);H[d+928>>2]=a;Ob(a,H[b+928>>2],c)}}function K9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=O(0),j=0,k=O(0),l=0,m=0,n=O(0),o=0,p=0,q=0;if((c|0)>0){j=H[a+12>>2];while(1){n=O(0);a=H[j>>2];e=a>>>14&1023;a:{if(!e){k=O(0);i=O(0);break a}k=O(0);d=vh((+(e|0)+.5)*.010830424696249145+-8.317766166719343);i=O(0);if(d<=0){break a}b:{c:{d:{l=a&16383;if(l>>>0<=16288){m=163;a=0;while(1){e=a+m>>1;o=l-G[(e<<3)+291622>>1]|0;e:{if((o|0)>0){a=e;break e}if((o|0)>=0){break d}m=e}if((m-a|0)>1){continue}break}e=a;h=+(l-G[(e<<3)+291622>>1]|0)+.5;break c}f=.210526316;h=.473684211;break b}h=.5}f=h*.0035000001080334187+ +L[(e<<3)+291616>>2];h=(+(e|0)+.5)*.0035000001080334187+.016939999535679817}g=f*9;f=1/(f*6+h*-16+12);g=g*f;f=h*4*f;k=O(d*(g/f));n=O(d*((1-g-f)/f));i=O(d)}d=+k;f=+i;p=d*.061+f*-.224;h=+n;q=h*1.163;g=h*-.414+(d*2.69+f*-1.276);if(g<=0){a=0}else{e=g>=1;g=W(g)*256;f:{if(P(g)<2147483648){a=~~g;break f}a=-2147483648}a=e?-1:a}F[b|0]=a;d=h*.044+(d*-1.022+f*1.978);if(d<=0){a=0}else{e=d>=1;d=W(d)*256;g:{if(P(d)<2147483648){a=~~d;break g}a=-2147483648}a=e?-1:a}F[b+1|0]=a;j=j+4|0;d=q+p;if(d<=0){a=0}else{e=d>=1;d=W(d)*256;h:{if(P(d)<2147483648){a=~~d;break h}a=-2147483648}a=e?-1:a}F[b+2|0]=a;b=b+3|0;a=(c|0)>1;c=c-1|0;if(a){continue}break}}}function Hca(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;g=H[a+420>>2];if(H[a+236>>2]){d=H[g+68>>2];if(!d){Sk(a,H[g+72>>2]);d=H[a+236>>2];H[g+72>>2]=H[g+72>>2]+1&7}H[g+68>>2]=d-1}h=H[b>>2];i=H[a+380>>2];d=H[a+292>>2];b=H[a+364>>2];f=b;e=b;a:{if((b|0)<=0){break a}f=b;b:{c:{while(1){e=G[(H[(f<<2)+i>>2]<<1)+h>>1];d:{if((e|0)>=0){if(!(e>>H[a+372>>2])){break d}break c}if(0-e>>H[a+372>>2]){break c}}e=(f|0)>1;f=f-1|0;if(e){continue}break}f=0;break b}e=f;while(1){c=G[(H[(e<<2)+i>>2]<<1)+h>>1];e:{if((c|0)>=0){if(!(c>>H[a+368>>2])){break e}break a}if(0-c>>H[a+368>>2]){break a}}c=(e|0)>1;e=e-1|0;if(c){continue}break}}e=0}j=H[d+24>>2];c=H[a+360>>2];if((f|0)>=(c|0)){k=g+204|0;l=(j<<2)+g|0;while(1){d=(H[l+140>>2]+N(c,3)|0)-3|0;if((c|0)>(e|0)){Lc(a,d,0)}b=c;f:{while(1){g:{h:{c=G[(H[(b<<2)+i>>2]<<1)+h>>1];if((c|0)>=0){c=c>>H[a+372>>2];if(!c){break h}if((c|0)==1){break g}Lc(a,d+2|0,c&1);break f}c=0-c>>H[a+372>>2];if(!c){break h}if((c|0)!=1){Lc(a,d+2|0,c&1);break f}Lc(a,d+1|0,1);Lc(a,k,1);break f}Lc(a,d+1|0,0);b=b+1|0;d=d+3|0;continue}break}Lc(a,d+1|0,1);Lc(a,k,0)}c=b+1|0;if((b|0)<(f|0)){continue}break}b=H[a+364>>2]}if((b|0)>=(c|0)){Lc(a,(H[((j<<2)+g|0)+140>>2]+N(c,3)|0)-3|0,1)}return 1}function LC(a,b){var c=0,d=0,e=0,f=0,g=0;if(!a){return 35}c=6;a:{b:{c:{if(!b){break c}if(!H[a+96>>2]){return 34}H[b>>2]=0;e=H[a+100>>2];g=H[H[a+96>>2]+12>>2];d=H[g+40>>2];d:{if((d|0)<=0){if(!d){break d}break c}f=zb[H[e+4>>2]](e,d)|0;if(!f){return 64}Nb(f,0,d)}e:{d=zb[H[e+4>>2]](e,12)|0;if(d){F[d|0]=0;F[d+1|0]=0;F[d+2|0]=0;F[d+3|0]=0;F[d+4|0]=0;F[d+5|0]=0;F[d+6|0]=0;F[d+7|0]=0;F[d+8|0]=0;F[d+9|0]=0;F[d+10|0]=0;F[d+11|0]=0;H[f>>2]=a;c=zb[H[e+4>>2]](e,36)|0;if(c){break e}c=64;break b}c=64;if(f){break a}break c}F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;H[f+40>>2]=c;c=H[g+56>>2];if(c){c=zb[c|0](f)|0;if(c){break b}}H[b>>2]=f;H[d+8>>2]=f;b=H[a+112>>2];H[d>>2]=b;c=0;H[d+4>>2]=0;H[(b?b+4|0:a+108|0)>>2]=d;H[a+112>>2]=d}return c}zb[H[e+8>>2]](e,d)}a=H[f+40>>2];if(a){zb[H[e+8>>2]](e,a)}H[f+40>>2]=0;zb[H[e+8>>2]](e,f);return c}function Qha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-32|0;xb=d;H[a>>2]=c;a:{b:{c:{d:{e:{f:{g:{if(!c){h:{if(F[b+11|0]>=0){H[d+24>>2]=H[b+8>>2];c=H[b+4>>2];H[d+16>>2]=H[b>>2];H[d+20>>2]=c;break h}df(d+16|0,H[b>>2],H[b+4>>2])}H[197455]=0;c=da(909,d|0,d+16|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break g}if(F[d+27|0]<0){Kb(H[d+16>>2])}H[a>>2]=H[c>>2]}c=0;H[d+12>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[d>>2]=436884;H[197455]=0;b=ca(910,d|0,b|0,0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break c}i:{if(!b){break i}H[197455]=0;e=aa(899,940)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=Bd(e,0);c=H[197455];H[197455]=0;if((c|0)==1){break e}H[197455]=0;c=H[d+4>>2];f=H[197455];H[197455]=0;if((f|0)==1){break f}f=H[a>>2];H[197455]=0;f=ca(913,b|0,c|0,f|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}c=0;if(!f){break i}H[197455]=0;ba(914,b|0,a|0);c=H[197455];H[197455]=0;if((c|0)==1){break d}H[197455]=0;c=Hi(b);f=H[197455];H[197455]=0;if((f|0)==1){break d}F[a+28|0]=c;zb[H[H[e>>2]+4>>2]](b);c=1}gf(d);xb=d+32|0;return c|0}a=$()|0;_()|0;if(F[d+27|0]>=0){break a}Kb(H[d+16>>2]);ea(a|0);X()}a=$()|0;_()|0;break b}a=$()|0;_()|0;Kb(e);break b}a=$()|0;_()|0;break b}a=$()|0;_()|0}gf(d)}ea(a|0);X()}function pu(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=H[a+736>>2];if(d){f=H[H[d+12>>2]>>2];c=H[a+100>>2];b=H[d+4>>2];if(b){zb[H[c+8>>2]](c,b)}H[d+4>>2]=0;b=H[d+8>>2];if(b){zb[H[c+8>>2]](c,b)}H[d+8>>2]=0;b=H[d+20>>2];if(b){zb[H[c+8>>2]](c,b)}H[d+20>>2]=0;b=H[d+12>>2];if(b){zb[H[c+8>>2]](c,b)}H[d+12>>2]=0;b=H[d+28>>2];if(b){if(f){while(1){g=e<<3;b=H[(g+b|0)+4>>2];if(b){zb[H[c+8>>2]](c,b)}b=H[d+28>>2];H[(g+b|0)+4>>2]=0;e=e+1|0;if((f|0)!=(e|0)){continue}break}}if(b){zb[H[c+8>>2]](c,b)}H[d+28>>2]=0}b=H[d+40>>2];if(b){mo(H[a+100>>2],b);b=H[H[d+40>>2]+28>>2];if(b){zb[H[c+8>>2]](c,b)}b=H[d+40>>2];H[b+28>>2]=0;b=H[b+24>>2];if(b){zb[H[c+8>>2]](c,b)}b=H[d+40>>2];H[b+24>>2]=0;if(b){zb[H[c+8>>2]](c,b)}H[d+40>>2]=0}b=H[d+52>>2];if(b){mo(H[a+100>>2],b);b=H[H[d+52>>2]+28>>2];if(b){zb[H[c+8>>2]](c,b)}b=H[d+52>>2];H[b+28>>2]=0;b=H[b+24>>2];if(b){zb[H[c+8>>2]](c,b)}b=H[d+52>>2];H[b+24>>2]=0;if(b){zb[H[c+8>>2]](c,b)}H[d+52>>2]=0}b=H[d+56>>2];if(b){mo(H[a+100>>2],b+4|0);a=H[H[d+56>>2]+24>>2];if(a){zb[H[c+8>>2]](c,a)}a=H[d+56>>2];H[a+24>>2]=0;if(a){zb[H[c+8>>2]](c,a)}H[d+56>>2]=0}a=H[d+64>>2];if(a){zb[H[c+8>>2]](c,a)}H[d+64>>2]=0;a=H[d+72>>2];if(a){zb[H[c+8>>2]](c,a)}H[d+72>>2]=0;if(d){zb[H[c+8>>2]](c,d)}}}function br(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=-1;a:{if(!b|!c){break a}b:{e=J[a+26>>1];if(H[a+16>>2]<=0|e>>>0>7){break b}while(1){c:{d:{e:{f:{g=e&65535;switch(g-1|0){case 0:break e;case 3:break f;default:break c}}i=(f<<2^-1)&4;e=15;break d}i=(f^-1)&7;e=1}g=(N(f,g)>>>3|0)+c|0;j=I[g|0]&(e<=H[a+16>>2]){break b}e=J[a+26>>1];continue}}if(H[a+964>>2]){e=H[a+976>>2]+(H[a+968>>2]^-1)|0;if(!((e|0)<0|(e|0)>H[H[b+20>>2]+20>>2])){H[b+4>>2]=e;k=b,l=Xc(H[b+20>>2],0)+N(e,H[H[b+20>>2]+52>>2])|0,H[k+16>>2]=l}e=H[H[b+20>>2]+52>>2];b=H[b+16>>2];g:{if(!b){break g}d=(d|0)<0?e:(d|0)>(e|0)?e:d;if((d|0)<=0){break g}Ob(b,c,d)}e=H[a+972>>2];b=e+H[a+968>>2]|0;H[a+968>>2]=b;h=0;c=b;b=H[a+976>>2];if((c|0)<(b|0)){break a}f=H[a+980>>2];while(1){if((f|0)>0){e=(e|0)/2|0;H[a+972>>2]=e}f=f+1|0;c=(e|0)/2|0;if((c|0)>(b|0)){continue}break}H[a+968>>2]=c;H[a+980>>2]=f;return 0}a=H[b+20>>2];if(!a){break a}if(!bl(a,H[b>>2],H[b+4>>2])){break a}a=H[H[b+20>>2]+52>>2];h=0;e=H[b+16>>2];h:{if(!e){break h}a=(d|0)<0?a:(a|0)<(d|0)?a:d;if((a|0)<=0){break h}Ob(e,c,a)}a=H[b+4>>2];H[b+4>>2]=a-1;if((a|0)<=0){break a}H[b+16>>2]=H[b+16>>2]-H[H[b+20>>2]+52>>2]}return h}function Xg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=xb-16|0;xb=d;i=c;a:{b:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+8|0,1)|0)==1){c=I[d+8|0];f=c;break b}c=-1;if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break a}c=0}c:{d:{e:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+9|0,1)|0)==1){c=I[d+9|0];e=c>>>24|0;j=f|c<<8;break e}if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break d}j=c<<8|f}l=e;f:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+10|0,1)|0)==1){c=I[d+10|0];break f}if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break d}}e=c;g:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+11|0,1)|0)==1){f=I[d+11|0];break g}f=e;if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break d}}h:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+12|0,1)|0)==1){c=I[d+12|0];break h}c=f;if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break d}}i:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+13|0,1)|0)==1){h=I[d+13|0];break i}h=c;if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break d}}j:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+14|0,1)|0)==1){g=I[d+14|0];break j}g=h;if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break d}}if((zb[H[a+4>>2]](H[a+28>>2],b,d+15|0,1)|0)==1){k=I[d+15|0];break c}k=g;if(!(zb[H[a+24>>2]](H[a+28>>2],b)|0)){break c}}g=0;e=0;c=-1;break a}b=j|e<<16|f<<24;a=c|(l|e>>>16|f>>>8)|h<<8|g<<16;g=b;e=k<<24|a;c=0}H[i>>2]=g;H[i+4>>2]=e;xb=d+16|0;return c}function DF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=H[a+100>>2];c=H[g+64>>2];while(1){c=H[g+80>>2]+N(c,20)|0;e=H[c>>2];a:{if(!(H[b>>2]>>>(e>>>4)&1)|!(H[b+4>>2]>>>e&1)|(!(H[b+8>>2]>>>(e>>>9)&1)|!(H[a+120>>2]&H[c+4>>2]))){break a}f=H[a+132>>2];c=J[c+12>>1];if(f&c&14){break a}b:{if(!(c&8)){break b}if(f&16){c=H[a+108>>2];d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0<65538){break a}d=I[c+12|0]|I[c+13|0]<<8;if(d){c=c+((d<<8|d>>>8)&65535)|0}else{c=163632}if((I[c|0]|I[c+1|0]<<8)!=256){break a}d=c;f=f>>>16|0;h=(c+(f<<2)|0)+4|0;c=I[c+2|0]|I[c+3|0]<<8;c=f>>>0<((c<<8|c>>>8)&65535)>>>0?h:163632;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((Gc(c?d+c|0:163632,e)|0)!=-1){break b}break a}e=f&65280;if(!e){break b}if((e|0)!=(c&65280)){break a}}c=0;f=H[b+16>>2];if(!f){break a}while(1){e=c>>>0>>0?H[b+20>>2]+N(c,20)|0:163632;d=H[a+100>>2];d=H[H[d+80>>2]+N(H[d+64>>2],20)>>2];if(!(!(H[e+8>>2]>>>(d>>>4)&1)|!(H[e+12>>2]>>>d&1)|!(H[e+16>>2]>>>(d>>>9)&1))){if(zb[H[e+4>>2]](H[e>>2],a)|0){break a}f=H[b+16>>2]}c=c+1|0;if(f>>>0>c>>>0){continue}break}}c=H[g+64>>2]-1|0;H[g+64>>2]=c;if((c|0)>=0){continue}break}}function gC(a,b,c){var d=0,e=0,f=0;d=xb-272|0;xb=d;e=H[a+200>>2];if(e&1){a:{if(e&4){Xb(a,266518);mc(a,c);break a}if(e&2){Xb(a,266603)}if(!(!b|!(I[b+9|0]&8))){Xb(a,266627);mc(a,c);break a}if((c|0)!=1){Xb(a,266696);mc(a,c);break a}c=d+271|0;vd(a,c,1);xc(a,c,1);if(mc(a,0)){break a}e=I[d+271|0];if(e>>>0>=4){Xb(a,266724);break a}b:{if(!b){break b}c=H[b+8>>2];c:{if(!(c&1)){break c}f=H[b+40>>2];if(f-46001>>>0>4294966294){break c}pf(d,1,5,f);Ci(a,d,263975);c=H[b+8>>2]}if(!(c&4)){break b}d:{if(H[b+128>>2]-32271>>>0<4294965295|H[b+132>>2]-33901>>>0<4294965295|(H[b+136>>2]-65001>>>0<4294965295|H[b+140>>2]-34001>>>0<4294965295)){break d}if(H[b+144>>2]-31001>>>0<4294965295|H[b+148>>2]-61001>>>0<4294965295|H[b+152>>2]-16001>>>0<4294965295){break d}if(H[b+156>>2]-7001>>>0>4294965294){break b}}Xb(a,266758)}F[a+652|0]=1;if(!I[a+654|0]){H[a+656>>2]=1535777592;F[a+654|0]=1}e:{if(!a|!b){break e}F[b+44|0]=e;H[b+40>>2]=45455;H[b+8>>2]=H[b+8>>2]|2049;if(!Kq(a,31270,32900,64e3,33e3,3e4,6e4,15e3,6e3)){break e}H[b+152>>2]=15e3;H[b+156>>2]=6e3;H[b+144>>2]=3e4;H[b+148>>2]=6e4;H[b+136>>2]=64e3;H[b+140>>2]=33e3;H[b+128>>2]=31270;H[b+132>>2]=32900;H[b+8>>2]=H[b+8>>2]|4}}xb=d+272|0;return}hc(a,266436);X()}function NF(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=Xh(a,b);f=I[g+6|0]|I[g+7|0]<<8;if(f){a=g+((f<<8|f>>>8)&65535)|0}else{a=163632}b=65535;a=I[a|0]|I[a+1|0]<<8;e=0;a:{b:{c:{if(!a){break c}i=(a<<8|a>>>8)&65535;d:{e:{if(!f){a=0;e=1;g=I[163635];f=J[81816];h=I[163634];if((((f?g:I[163633])&255)<<16|(f?h:I[163632])<<24|((f?I[163636]:h)&255)<<8|(f?I[163637]:g)&255)==(c|0)){b=0;if(d){break b}break a}f=(f<<8|f>>>8)&65535;g=i>>>0>1?i:1;while(1){a=a+1|0;if((g|0)!=(a|0)){e=a>>>0>>0?N(a,6)+163634|0:163632;e=J[e>>1]|J[e+2>>1]<<16;if((e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))!=(c|0)){continue}break e}break}e=a>>>0>>0;break c}e=1;a=0;f=g+((f<<8|f>>>8)&65535)|0;g=I[f|0]|I[f+1|0]<<8;h=g?f+2|0:163632;h=I[h|0]|I[h+1|0]<<8|(I[h+2|0]<<16|I[h+3|0]<<24);if((h<<24|h<<8&16711680|(h>>>8&65280|h>>>24))!=(c|0)){break d}b=0;if(d){break b}break a}e=a>>>0>>0;b=a;if(d){break b}break a}g=(g<<8|g>>>8)&65535;h=i>>>0>1?i:1;f:{while(1){a=a+1|0;if((h|0)==(a|0)){break f}e=a>>>0>>0?(f+N(a,6)|0)+2|0:163632;e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);if((e<<24|e<<8&16711680|(e>>>8&65280|e>>>24))!=(c|0)){continue}break}e=a>>>0>>0;b=a;if(d){break b}break a}e=a>>>0>>0}if(!d){break a}}H[d>>2]=b}return e}function Ii(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{c:{d:{e:{f:{g:{h=H[b+4>>2];h:{if(!(!h|(c|d)<0|H[b+16>>2]<=(c|0))){if(H[b+20>>2]>(d|0)){break h}}c=H[b+336>>2];if((c|0)>=0){break g}if(!h){break a}e=1;c=0;d=0}j=H[b+44>>2];if(!j){break d}g=J[b+26>>1];if((g|0)!=8){break f}i=I[H[b+56>>2]+(N(H[b+52>>2],d)+c|0)|0];break e}if(J[b+26>>1]<=23){F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;if(!h){break b}b=H[b+44>>2];if(!b){break b}d=b;b=c&255;if(d>>>0<=b>>>0){break b}b=h+(b<<2)|0;F[a|0]=I[b+40|0];F[a+1|0]=I[b+41|0];F[a+2|0]=I[b+42|0];F[a+3|0]=I[b+43|0];return}break a}f=I[H[b+56>>2]+(N(H[b+52>>2],d)+(N(c,g)>>3)|0)|0];i:{switch(g-1|0){case 3:g=4-((c|0)%2<<2)&252;i=(f&15<>>g|0;break e;case 0:break i;default:break e}}g=7-((c|0)%8|0)|0;i=(f&1<>>g|0}if(!h){g=0;f=0;break c}g=0;i=i&255;f=0;if(i>>>0>=j>>>0){break c}f=h+(i<<2)|0;g=I[f+43|0];k=I[f+42|0];l=I[f+41|0];f=I[f+40|0];break c}f=(H[b+56>>2]+N(H[b+52>>2],d)|0)+N(c,3)|0;l=I[f+1|0];k=I[f+2|0];g=I[b+343|0];f=I[f|0]}if(!(!H[b+928>>2]|e^1)){g=I[H[b+928>>2]+(N(H[b+16>>2],d)+c|0)|0]}F[a+3|0]=g;F[a+2|0]=k;F[a+1|0]=l;F[a|0]=f}return}b=H[b+340>>2];F[a|0]=b;F[a+1|0]=b>>>8;F[a+2|0]=b>>>16;F[a+3|0]=b>>>24}function q$(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[b>>2];H[a>>2]=c;H[H[c-12>>2]+a>>2]=H[b+4>>2];H[a- -64>>2]=0;H[a+56>>2]=0;H[a+60>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+48>>2]=0;G[a+52>>1]=0;b=a+84|0;H[b+8>>2]=1024;H[b+12>>2]=1024;H[a+84>>2]=0;H[a+88>>2]=0;H[a+108>>2]=0;H[a+112>>2]=0;H[a+100>>2]=0;H[a+104>>2]=0;b=a+124|0;H[b+16>>2]=a;d=b+8|0;c=d;H[c>>2]=0;H[c+4>>2]=0;c=b+24|0;H[c>>2]=0;H[c+4>>2]=0;H[b+4>>2]=d;H[b+20>>2]=c;H[197455]=0;c=aa(899,688)|0;d=H[197455];H[197455]=0;a:{b:{c:{if((d|0)!=1){H[197455]=0;Im(c,b);d=H[197455];H[197455]=0;if((d|0)==1){break c}H[b>>2]=c;H[197455]=0;ia(1928,b|0);c=H[197455];H[197455]=0;if((c|0)!=1){break a}}a=$()|0;_()|0;break b}a=$()|0;_()|0;Kb(c)}nj(b+20|0,H[b+24>>2]);mj(b+4|0,H[b+8>>2]);ea(a|0);X()}H[a+168>>2]=0;H[a+172>>2]=0;H[a+160>>2]=0;H[a+164>>2]=1072693248;H[a+176>>2]=0;H[a+180>>2]=0;H[a+192>>2]=0;H[a+196>>2]=0;H[a+184>>2]=0;H[a+188>>2]=1072693248;H[a+200>>2]=0;H[a+204>>2]=0;H[a+156>>2]=0;H[197455]=0;c=H[b>>2];d=H[197455];H[197455]=0;if((d|0)!=1){F[a+212|0]=0;H[a+208>>2]=0;H[a+120>>2]=c;return a|0}a=$()|0;_()|0;$y(b);ea(a|0);X()}function Vq(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a){return 35}d=H[a+96>>2];if(!d){return 6}h=H[d+8>>2];a:{b:{i=H[d+12>>2];c=H[i+44>>2];c:{if((c|0)<=0){g=6;f=h;if(!c){break c}break b}e=zb[H[h+4>>2]](h,c)|0;if(!e){g=64;break b}Nb(e,0,c);d=H[a+96>>2];f=H[d+8>>2];i=H[d+12>>2]}H[e+4>>2]=a;H[e>>2]=H[d+4>>2];g=64;d:{c=zb[H[f+4>>2]](f,44)|0;e:{if(!c){break e}F[c|0]=0;F[c+1|0]=0;F[c+2|0]=0;F[c+3|0]=0;F[c+4|0]=0;F[c+5|0]=0;F[c+6|0]=0;F[c+7|0]=0;F[c+40|0]=0;F[c+41|0]=0;F[c+42|0]=0;F[c+43|0]=0;F[c+32|0]=0;F[c+33|0]=0;F[c+34|0]=0;F[c+35|0]=0;F[c+36|0]=0;F[c+37|0]=0;F[c+38|0]=0;F[c+39|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;F[c+29|0]=0;F[c+30|0]=0;F[c+31|0]=0;F[c+16|0]=0;F[c+17|0]=0;F[c+18|0]=0;F[c+19|0]=0;F[c+20|0]=0;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+8|0]=0;F[c+9|0]=0;F[c+10|0]=0;F[c+11|0]=0;F[c+12|0]=0;F[c+13|0]=0;F[c+14|0]=0;F[c+15|0]=0;H[e+156>>2]=c;if(!(I[H[d>>2]+1|0]&2)){d=zb[H[f+4>>2]](f,96)|0;if(!d){break e}Nb(d+4|0,0,92);H[d>>2]=f;H[c>>2]=d}f=H[i+64>>2];if(!f){break d}g=zb[f|0](e)|0;if(!g){break d}}hn(e);zb[H[h+8>>2]](h,e);return g}H[e+8>>2]=H[a+84>>2];H[a+84>>2]=e;g=0;if(!b){break a}H[b>>2]=e;break a}if(!b){break a}H[b>>2]=0;return g}return g}function zF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{e=H[b+4>>2];b:{if(e>>>0>a>>>0){break b}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break b}g=H[b+12>>2];d=g-2|0;H[b+12>>2]=d;if((d|0)<=0){break b}d=a+2|0;if(d>>>0>>0|c>>>0>>0|c-d>>>0<2){break b}g=g-4|0;H[b+12>>2]=g;if((g|0)<=0){break b}f=1;d=I[d|0]|I[d+1|0]<<8;if(!d){break b}d=(d<<8|d>>>8)&65535;h=d>>>0>1?d:1;g=d-1|0;a=a+4|0;d=0;while(1){if(a>>>0>>0){return 0}if(a>>>0>c>>>0){return 0}if(c-a>>>0<6){return 0}c=H[b+12>>2]-6|0;H[b+12>>2]=c;if((c|0)<=0){return 0}e=H[b+32>>2];c=H[e+12>>2];H[b+4>>2]=c;e=c+H[e+16>>2]|0;H[b+8>>2]=e;c:{if(d>>>0>=g>>>0){break c}f=c;c=d>>>0>>0?a:0;if(!(f>>>0<=c>>>0&c>>>0>>0)){H[b+4>>2]=0;H[b+8>>2]=0;break c}H[b+4>>2]=c;e=e-c|0;f=I[c+2|0]|I[c+3|0]<<8;f=(f<<8|f>>>8)&65535;H[b+8>>2]=c+(e>>>0>>0?e:f)}H[197455]=0;c=xF(a,b);e=H[197455];H[197455]=0;if((e|0)==1){break a}if(!c){a=H[b+32>>2];c=H[a+12>>2];H[b+4>>2]=c;H[b+8>>2]=c+H[a+16>>2];return 0}f=I[a+2|0]|I[a+3|0]<<8;c=H[b+32>>2];e=H[c+12>>2];H[b+4>>2]=e;c=H[c+16>>2]+e|0;H[b+8>>2]=c;a=((f<<8|f>>>8)&65535)+a|0;f=1;d=d+1|0;if((h|0)!=(d|0)){continue}break}}return f}a=$()|0;_()|0;c=H[b+32>>2];e=H[c+12>>2];H[b+4>>2]=e;H[b+8>>2]=e+H[c+16>>2];ea(a|0);X()}function $g(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=xb-48|0;xb=b;c=H[a>>2];a:{if(c){break a}g=a-24|0;while(1){c=H[g>>2];if(!c){c=163632;break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;d=kd(c);F[b+40|0]=1;H[b+36>>2]=d;c=dd(c,1330851634);if(!(!c|!H[c>>2])){H[c>>2]=H[c>>2]+1}F[b+24|0]=0;H[b+32>>2]=c;e=H[c+12>>2];H[b+4>>2]=e;f=H[c+16>>2];H[b+8>>2]=e+f;H[b+28>>2]=0;if(f>>>0>67108862){d=1073741823}else{d=f<<6;d=d>>>0>16384?d:16384;d=d>>>0<1073741823?d:1073741823}H[b+12>>2]=d;H[b+20>>2]=0;H[b>>2]=0;b:{if(!e){Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;break b}c:{if((f|0)<78){break c}H[b+12>>2]=d-78;e=I[e|0]|I[e+1|0]<<8;d:{if(!e){break d}if(f-78>>>0<8){break c}H[b+12>>2]=d-86;e=e<<8|e>>>8;if((e&65535)>>>0<2){break d}if(f-86>>>0<10){break c}H[b+12>>2]=d-96;if((e&65535)>>>0<5){break d}if((f&-4)==96){break c}H[b+12>>2]=d-100}Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(H[c+4>>2]){H[c+4>>2]=0}break b}Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;Wb(c);c=163632}d=H[a>>2];c=c?c:163632;H[a>>2]=d?d:c;if(!d){break a}if(!(!c|(c|0)==163632)){Wb(c)}c=H[a>>2];if(!c){continue}break}}xb=b+48|0;return K[c+16>>2]<78?163632:H[c+12>>2]}function RB(a,b,c,d,e,f,g,h,i){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;var j=0,k=0;if(!(!a|!b)){F[b+28|0]=g;F[b+27|0]=i;F[b+26|0]=h;F[b+25|0]=f;F[b+24|0]=e;H[b+4>>2]=d;H[b>>2]=c;j=e&255;f=f&255;k=g&255;h=h&255;g=i&255;a:{b:{if(!c){Xb(a,262963);break b}if((c|0)<0){Xb(a,263056);break b}if(c>>>0>=536870799){Xb(a,263222);break b}e=0;if(K[a+700>>2]>=c>>>0){break a}Xb(a,263387)}e=1}c:{d:{if(!d){Xb(a,263489);break d}if((d|0)<0){Xb(a,263685);break d}if(K[a+704>>2]>=d>>>0){break c}Xb(a,263807)}e=1}if(!(1<>>0<=16:0)){Xb(a,263949);e=1}d=f&-5;if(!((d|0)!=1&f>>>0<=6)){Xb(a,264076);e=1}if(!(!((f|0)==3&j>>>0>=9)&(!((f|0)==4|(d|0)==2)|j>>>0>7))){Xb(a,264202);e=1}if(k>>>0>=2){Xb(a,264377);e=1}if(h){Xb(a,264495);e=1}if(!(!(I[a+201|0]&16)|!H[a+660>>2])){Xb(a,264541)}e:{f:{g:{if(!g){break g}if(!(!(H[a+660>>2]&4)|(g|0)!=64|(d|0)!=2)){if(!(H[a+200>>2]&4096)){break g}}Xb(a,264703);if(!(I[a+201|0]&16)){break f}Xb(a,264777);break f}if(!e){break e}}hc(a,264894);X()}d=I[b+25|0];h:{if((d|0)==3){a=1}else{e=d&2;a=e|1;F[b+29|0]=a;if(!(d&4)){break h}a=e+2|0}F[b+29|0]=a}a=N(I[b+24|0],a);F[b+30|0]=a;a=a&255;i:{if(a>>>0>=8){a=N(a>>>3|0,c);break i}a=N(a,c)+7>>>3|0}H[b+12>>2]=a}}function HG(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=O(0),i=O(0);f=xb-96|0;xb=f;g=H[b+24>>2];b=H[b+28>>2];H[197455]=0;c=ca(643,g|0,c|0,b|8)|0;b=H[197455];H[197455]=0;a:{b:{if((b|0)!=1){c:{d:{if(c){break d}c=H[g+84>>2];if(H[c+72>>2]!=1869968492){break d}g=H[26749];H[f+88>>2]=H[26748];H[f+92>>2]=g;g=H[26747];H[f+80>>2]=H[26746];H[f+84>>2]=g;g=H[26745];H[f+72>>2]=H[26744];H[f+76>>2]=g;h=L[a+32>>2];H[f+32>>2]=0;H[f+36>>2]=0;H[f+40>>2]=0;H[f+44>>2]=0;H[f+48>>2]=0;H[f+52>>2]=0;H[f+56>>2]=0;H[f+60>>2]=0;a=f- -64|0;H[a>>2]=0;H[a+4>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;H[f+20>>2]=e;H[f+16>>2]=d;L[f+8>>2]=h;H[197455]=0;F[f+12|0]=h==O(0);ca(28,c+108|0,f+72|0,f+8|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break c}if(!H[f+24>>2]){break d}c=f+24|0;d=H[f+20>>2];a=H[f+16>>2];i=L[f+28>>2];h=L[f+32>>2];if(!(i==L[f+36>>2]&h==L[f+40>>2])){e=H[a+36>>2];g=H[a+16>>2];H[197455]=0;Ma(g|0,a|0,d|0,c|0,O(i),O(h),e|0);e=H[197455];H[197455]=0;if((e|0)==1){break b}}e=H[a+48>>2];g=H[a+28>>2];H[197455]=0;ka(g|0,a|0,d|0,c|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break b}}Vc();xb=f+96|0;return}a=$()|0;_()|0;ns(f+8|0);break a}a=$()|0;_()|0;break a}ha(0)|0;_()|0;Zb();X()}Vc();ea(a|0);X()}function j7(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;a:{d=H[H[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0)){break a}f=a-d|0;a=((f<<2)+b|0)-4|0;if((d|0)<5){b=d<<2;while(1){b:{switch(d|0){default:c=a+b|0;H[c>>2]=H[c>>2]-H[a>>2];a=a-4|0;case 3:c=a+b|0;H[c>>2]=H[c>>2]-H[a>>2];a=a-4|0;case 2:c=a+b|0;H[c>>2]=H[c>>2]-H[a>>2];a=a-4|0;case 1:c=a+b|0;H[c>>2]=H[c>>2]-H[a>>2];a=a-4|0;break;case 0:break b}}f=f-d|0;if((f|0)>0){continue}break}break a}i=d-4|0;h=d&3;j=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:{switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}}b=0;c=i;if(h){while(1){e=(d<<2)+a|0;H[e>>2]=H[e>>2]-H[a>>2];c=c-1|0;a=a-4|0;b=b+1|0;if((h|0)!=(b|0)){continue}break}}if(!j){break g}while(1){b=d<<2;e=b+a|0;H[e>>2]=H[e>>2]-H[a>>2];e=a-4|0;g=e+b|0;H[g>>2]=H[g>>2]-H[e>>2];e=a-8|0;g=e+b|0;H[g>>2]=H[g>>2]-H[e>>2];e=b;b=a-12|0;e=e+b|0;H[e>>2]=H[e>>2]-H[b>>2];a=a-16|0;b=(c|0)>4;c=c-4|0;if(b){continue}break}}b=(d<<2)+a|0;H[b>>2]=H[b>>2]-H[a>>2];a=a-4|0}b=(d<<2)+a|0;H[b>>2]=H[b>>2]-H[a>>2];a=a-4|0}b=(d<<2)+a|0;H[b>>2]=H[b>>2]-H[a>>2];a=a-4|0}b=(d<<2)+a|0;H[b>>2]=H[b>>2]-H[a>>2];a=a-4|0}f=f-d|0;if((f|0)>0){continue}break}}}function eB(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{b:{b=H[a+584>>2];if(!I[b+303|0]){break b}c=J[b+1148>>1];if(!c){if(!Fd(b)){break a}c=J[b+1148>>1]}d=H[b+1152>>2];f=I[d|0];c=c-1|0;G[b+1148>>1]=c;d=d+1|0;H[b+1152>>2]=d;if(!(c&65535)){if(!Fd(b)){break a}d=H[b+1152>>2];c=J[b+1148>>1]}g=I[d|0];c=c-1|0;G[b+1148>>1]=c;d=d+1|0;H[b+1152>>2]=d;e=I[b+194|0];if(((e<<1)+6|0)!=(f<<8|g)){break b}if(!(c&65535)){if(!Fd(b)){break a}d=H[b+1152>>2];e=I[b+194|0];c=J[b+1148>>1]}f=I[d|0];c=c-1|0;G[b+1148>>1]=c;d=d+1|0;H[b+1152>>2]=d;if((e|0)==(f|0)){if(e){a=0;while(1){if(!(c&65535)){if(!Fd(b)){break a}c=J[b+1148>>1]}d=H[b+1152>>2];e=I[d|0];f=c-1|0;G[b+1148>>1]=f;H[b+1152>>2]=d+1;c=I[b+193|0]+a|0;F[(c+b|0)+325|0]=e;if(!(f&65535)){if(!Fd(b)){break a}c=I[b+193|0]+a|0}d=H[b+1152>>2];e=I[d|0];H[b+1152>>2]=d+1;G[b+1148>>1]=J[b+1148>>1]-1;F[(b+c|0)+328|0]=e;c=J[b+1148>>1];a=a+1|0;if(a>>>0>2]}e=c;a=c&65535;c=a>>>0<3?a:3;G[b+1148>>1]=e-c;H[b+1152>>2]=c+d;if(a>>>0<=2){F[b+1140|0]=0;a=H[b+1144>>2];c=c^3;c=(a>>>0>>0?a:c)&65535;H[b+1144>>2]=a-c;H[b+1136>>2]=c+H[b+1136>>2]}return 1}Pb(H[a+628>>2],295712,282430,0);return 0}Pb(H[a+628>>2],295712,282430,0)}return 0}function yH(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;a:{b=H[a+80>>2];h=H[b+176>>2];if((h|0)!=H[195988]){if(!c){break a}k=f,l=zb[h|0](a,H[a+84>>2],H[d>>2],H[b+32>>2])|0,H[k>>2]=l;if((c|0)==1){break a}b=c-1|0;h=b&1;if((c|0)!=2){b=b&-2;c=0;while(1){f=f+g|0;d=d+e|0;i=H[a+80>>2];k=f,l=zb[H[i+176>>2]](a,H[a+84>>2],H[d>>2],H[i+32>>2])|0,H[k>>2]=l;f=f+g|0;d=d+e|0;i=H[a+80>>2];k=f,l=zb[H[i+176>>2]](a,H[a+84>>2],H[d>>2],H[i+32>>2])|0,H[k>>2]=l;c=c+2|0;if((b|0)!=(c|0)){continue}break}}if(!h){break a}b=a;c=H[a+84>>2];a=H[a+80>>2];k=f+g|0,l=zb[H[a+176>>2]](b,c,H[d+e>>2],H[a+32>>2])|0,H[k>>2]=l;return}b=H[a+12>>2];h=H[b+80>>2];zb[H[h+184>>2]](b,H[b+84>>2],c,d,e,f,g,H[h+40>>2]);if(!c){break a}d=H[a+12>>2];if(!d){break a}i=c&1;if((c|0)!=1){j=c&-2;e=0;while(1){b=H[f>>2];c=H[d+20>>2];h=H[a+20>>2];if((c|0)!=(h|0)){b=hma(gma(h,h>>31,b,b>>31),yb,c,c>>31)}H[f>>2]=b;c=f+g|0;b=H[c>>2];f=H[d+20>>2];h=H[a+20>>2];if((f|0)!=(h|0)){b=hma(gma(h,h>>31,b,b>>31),yb,f,f>>31)}H[c>>2]=b;f=c+g|0;e=e+2|0;if((j|0)!=(e|0)){continue}break}}if(!i){break a}b=H[f>>2];c=H[d+20>>2];a=H[a+20>>2];if((c|0)!=(a|0)){b=hma(gma(a,a>>31,b,b>>31),yb,c,c>>31)}H[f>>2]=b}}function xH(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;a:{b=H[a+80>>2];h=H[b+180>>2];if((h|0)!=H[195989]){if(!c){break a}k=f,l=zb[h|0](a,H[a+84>>2],H[d>>2],H[b+36>>2])|0,H[k>>2]=l;if((c|0)==1){break a}b=c-1|0;h=b&1;if((c|0)!=2){b=b&-2;c=0;while(1){f=f+g|0;d=d+e|0;i=H[a+80>>2];k=f,l=zb[H[i+180>>2]](a,H[a+84>>2],H[d>>2],H[i+36>>2])|0,H[k>>2]=l;f=f+g|0;d=d+e|0;i=H[a+80>>2];k=f,l=zb[H[i+180>>2]](a,H[a+84>>2],H[d>>2],H[i+36>>2])|0,H[k>>2]=l;c=c+2|0;if((b|0)!=(c|0)){continue}break}}if(!h){break a}b=a;c=H[a+84>>2];a=H[a+80>>2];k=f+g|0,l=zb[H[a+180>>2]](b,c,H[d+e>>2],H[a+36>>2])|0,H[k>>2]=l;return}b=H[a+12>>2];h=H[b+80>>2];zb[H[h+188>>2]](b,H[b+84>>2],c,d,e,f,g,H[h+44>>2]);if(!c){break a}d=H[a+12>>2];if(!d){break a}i=c&1;if((c|0)!=1){j=c&-2;e=0;while(1){b=H[f>>2];c=H[d+24>>2];h=H[a+24>>2];if((c|0)!=(h|0)){b=hma(gma(h,h>>31,b,b>>31),yb,c,c>>31)}H[f>>2]=b;c=f+g|0;b=H[c>>2];f=H[d+24>>2];h=H[a+24>>2];if((f|0)!=(h|0)){b=hma(gma(h,h>>31,b,b>>31),yb,f,f>>31)}H[c>>2]=b;f=c+g|0;e=e+2|0;if((j|0)!=(e|0)){continue}break}}if(!i){break a}b=H[f>>2];c=H[d+24>>2];a=H[a+24>>2];if((c|0)!=(a|0)){b=hma(gma(a,a>>31,b,b>>31),yb,c,c>>31)}H[f>>2]=b}}function m_(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;d=H[c>>2];if((d|0)!=H[c+4>>2]){i=a+29|0;while(1){k=N(j,12);d=H[k+d>>2];e=H[d+4>>2];g=+(e|0);f=H[d>>2];h=+(f|0);d=H[a+156>>2];a:{b:{if(d){if(Qd(d,h,g)){break b}F[H[H[a>>2]-12>>2]+i|0]=1;break a}d=H[a+208>>2];if(!d){break b}zb[H[H[d>>2]+32>>2]](d,h,g)}d=H[a+120>>2];H[d+672>>2]=f;H[d+676>>2]=e}d=1;f=H[c>>2]+k|0;e=H[f>>2];if(H[f+4>>2]-e>>>0>8){while(1){e=(d<<3)+e|0;f=H[e+4>>2];g=+(f|0);l=H[e>>2];h=+(l|0);e=H[a+156>>2];c:{d:{if(e){if(jd(e,h,g)){break d}F[H[H[a>>2]-12>>2]+i|0]=1;break c}e=H[a+208>>2];if(!e){break d}zb[H[H[e>>2]+36>>2]](e,h,g)}e=H[a+120>>2];H[e+672>>2]=l;H[e+676>>2]=f}f=H[c>>2]+k|0;e=H[f>>2];d=d+1|0;if(d>>>0>2]-e>>3>>>0){continue}break}}d=H[a+156>>2];e:{if(d){if(hf(d)){break e}F[H[H[a>>2]-12>>2]+i|0]=1;break e}d=H[a+208>>2];if(!d){break e}zb[H[H[d>>2]+48>>2]](d)}j=j+1|0;d=H[c>>2];if(j>>>0<(H[c+4>>2]-d|0)/12>>>0){continue}break}}d=H[a+208>>2];if(!(!(!H[a+156>>2]|!d)|!d)){zb[H[H[d>>2]+52>>2]](d,3);d=H[a+208>>2];zb[H[H[d>>2]+56>>2]](d);d=H[a+208>>2]}f:{if(!d){break f}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break f}d=H[a+208>>2]}zb[H[H[d>>2]+408>>2]](d,b,c)}}function l_(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;d=H[c>>2];if((d|0)!=H[c+4>>2]){i=a+29|0;while(1){k=N(j,12);d=H[k+d>>2];e=G[d+2>>1];g=+(e|0);f=G[d>>1];h=+(f|0);d=H[a+156>>2];a:{b:{if(d){if(Qd(d,h,g)){break b}F[H[H[a>>2]-12>>2]+i|0]=1;break a}d=H[a+208>>2];if(!d){break b}zb[H[H[d>>2]+32>>2]](d,h,g)}d=H[a+120>>2];H[d+672>>2]=f;H[d+676>>2]=e}d=1;f=H[c>>2]+k|0;e=H[f>>2];if(H[f+4>>2]-e>>>0>4){while(1){e=(d<<2)+e|0;f=G[e+2>>1];g=+(f|0);l=G[e>>1];h=+(l|0);e=H[a+156>>2];c:{d:{if(e){if(jd(e,h,g)){break d}F[H[H[a>>2]-12>>2]+i|0]=1;break c}e=H[a+208>>2];if(!e){break d}zb[H[H[e>>2]+36>>2]](e,h,g)}e=H[a+120>>2];H[e+672>>2]=l;H[e+676>>2]=f}f=H[c>>2]+k|0;e=H[f>>2];d=d+1|0;if(d>>>0>2]-e>>2>>>0){continue}break}}d=H[a+156>>2];e:{if(d){if(hf(d)){break e}F[H[H[a>>2]-12>>2]+i|0]=1;break e}d=H[a+208>>2];if(!d){break e}zb[H[H[d>>2]+48>>2]](d)}j=j+1|0;d=H[c>>2];if(j>>>0<(H[c+4>>2]-d|0)/12>>>0){continue}break}}d=H[a+208>>2];if(!(!(!H[a+156>>2]|!d)|!d)){zb[H[H[d>>2]+52>>2]](d,3);d=H[a+208>>2];zb[H[H[d>>2]+56>>2]](d);d=H[a+208>>2]}f:{if(!d){break f}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break f}d=H[a+208>>2]}zb[H[H[d>>2]+412>>2]](d,b,c)}}function k_(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;d=H[c>>2];if((d|0)!=H[c+4>>2]){i=a+29|0;while(1){k=N(j,12);d=H[k+d>>2];e=H[d+4>>2];g=+(e|0);f=H[d>>2];h=+(f|0);d=H[a+156>>2];a:{b:{if(d){if(Qd(d,h,g)){break b}F[H[H[a>>2]-12>>2]+i|0]=1;break a}d=H[a+208>>2];if(!d){break b}zb[H[H[d>>2]+32>>2]](d,h,g)}d=H[a+120>>2];H[d+672>>2]=f;H[d+676>>2]=e}d=1;f=H[c>>2]+k|0;e=H[f>>2];if(H[f+4>>2]-e>>>0>8){while(1){e=(d<<3)+e|0;f=H[e+4>>2];g=+(f|0);l=H[e>>2];h=+(l|0);e=H[a+156>>2];c:{d:{if(e){if(jd(e,h,g)){break d}F[H[H[a>>2]-12>>2]+i|0]=1;break c}e=H[a+208>>2];if(!e){break d}zb[H[H[e>>2]+36>>2]](e,h,g)}e=H[a+120>>2];H[e+672>>2]=l;H[e+676>>2]=f}f=H[c>>2]+k|0;e=H[f>>2];d=d+1|0;if(d>>>0>2]-e>>3>>>0){continue}break}}d=H[a+156>>2];e:{if(d){if(hf(d)){break e}F[H[H[a>>2]-12>>2]+i|0]=1;break e}d=H[a+208>>2];if(!d){break e}zb[H[H[d>>2]+48>>2]](d)}j=j+1|0;d=H[c>>2];if(j>>>0<(H[c+4>>2]-d|0)/12>>>0){continue}break}}d=H[a+208>>2];if(!(!(!H[a+156>>2]|!d)|!d)){zb[H[H[d>>2]+52>>2]](d,1);d=H[a+208>>2];zb[H[H[d>>2]+56>>2]](d);d=H[a+208>>2]}f:{if(!d){break f}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break f}d=H[a+208>>2]}zb[H[H[d>>2]+416>>2]](d,b,c)}}function j_(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;d=H[c>>2];if((d|0)!=H[c+4>>2]){i=a+29|0;while(1){k=N(j,12);d=H[k+d>>2];e=G[d+2>>1];g=+(e|0);f=G[d>>1];h=+(f|0);d=H[a+156>>2];a:{b:{if(d){if(Qd(d,h,g)){break b}F[H[H[a>>2]-12>>2]+i|0]=1;break a}d=H[a+208>>2];if(!d){break b}zb[H[H[d>>2]+32>>2]](d,h,g)}d=H[a+120>>2];H[d+672>>2]=f;H[d+676>>2]=e}d=1;f=H[c>>2]+k|0;e=H[f>>2];if(H[f+4>>2]-e>>>0>4){while(1){e=(d<<2)+e|0;f=G[e+2>>1];g=+(f|0);l=G[e>>1];h=+(l|0);e=H[a+156>>2];c:{d:{if(e){if(jd(e,h,g)){break d}F[H[H[a>>2]-12>>2]+i|0]=1;break c}e=H[a+208>>2];if(!e){break d}zb[H[H[e>>2]+36>>2]](e,h,g)}e=H[a+120>>2];H[e+672>>2]=l;H[e+676>>2]=f}f=H[c>>2]+k|0;e=H[f>>2];d=d+1|0;if(d>>>0>2]-e>>2>>>0){continue}break}}d=H[a+156>>2];e:{if(d){if(hf(d)){break e}F[H[H[a>>2]-12>>2]+i|0]=1;break e}d=H[a+208>>2];if(!d){break e}zb[H[H[d>>2]+48>>2]](d)}j=j+1|0;d=H[c>>2];if(j>>>0<(H[c+4>>2]-d|0)/12>>>0){continue}break}}d=H[a+208>>2];if(!(!(!H[a+156>>2]|!d)|!d)){zb[H[H[d>>2]+52>>2]](d,1);d=H[a+208>>2];zb[H[H[d>>2]+56>>2]](d);d=H[a+208>>2]}f:{if(!d){break f}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break f}d=H[a+208>>2]}zb[H[H[d>>2]+420>>2]](d,b,c)}}function ZF(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=H[b+4>>2];a:{if(i>>>0>a>>>0){break a}h=H[b+8>>2];if(h>>>0>>0|h-a>>>0<2){break a}e=H[b+12>>2];d=e-2|0;H[b+12>>2]=d;if((d|0)<=0){break a}e=e-4|0;H[b+12>>2]=e;if((e|0)<=0){break a}d=I[a|0]|I[a+1|0]<<8;if(!d){break a}f=a+2|0;if(f>>>0>>0|f>>>0>h>>>0){break a}g=h-f|0;d=(d<<8|d>>>8)&65535;f=N(d,3);if(g>>>0>>0){break a}f=e-f|0;H[b+12>>2]=f;if((f|0)<=0){break a}g=d>>>0>1?d:1;k=H[b+36>>2];e=0;while(1){d=N(e,3)+a|0;j=I[d+2|0]|I[d+3|0]<<8;if(k>>>0<=((j<<8|j>>>8)&65535)>>>0|I[d+4|0]>=c>>>0){break a}e=e+1|0;if((g|0)!=(e|0)){continue}break}c=I[a|0]|I[a+1|0]<<8;if(!c|(I[a+2|0]|I[a+3|0]<<8)){break a}d=c<<8|c>>>8;c=d&65535;e=1;if((d&65535)>>>0>1){while(1){d=N(e,3)+a|0;g=c>>>0>e-1>>>0?d-1|0:163632;g=I[g|0]|I[g+1|0]<<8;d=c>>>0>e>>>0?d+2|0:163632;d=I[d|0]|I[d+1|0]<<8;if(((g<<8|g>>>8)&65535)>>>0>=((d<<8|d>>>8)&65535)>>>0){break a}e=e+1|0;if((c|0)!=(e|0)){continue}break}}c=(N(c,3)+a|0)+2|0;if(c>>>0>>0|c>>>0>h>>>0|h-c>>>0<2){break a}c=f-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=a;a=I[a|0]|I[a+1|0]<<8;a=a?(c+N((a<<8|a>>>8)&65535,3)|0)-1|0:163632;a=I[a+3|0]|I[a+4|0]<<8;l=H[b+36>>2]==((a<<8|a>>>8)&65535)}return l}function OR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;e=xb-464|0;xb=e;f=b+8|0;g=H[f+4>>2];H[e+16>>2]=H[f>>2];H[e+20>>2]=g;H[e+40>>2]=H[b+32>>2];f=H[b+28>>2];H[e+32>>2]=H[b+24>>2];H[e+36>>2]=f;f=H[b+20>>2];H[e+24>>2]=H[b+16>>2];H[e+28>>2]=f;f=H[b+4>>2];g=H[b>>2];H[e+16>>2]=2;H[e+8>>2]=g;H[e+12>>2]=f;a:{switch(H[b+8>>2]-7|0){case 0:case 3:H[e+16>>2]=3;break;default:break a}}jh(a,e+448|0);b:{if(H[e+456>>2]!=3){b=162;break b}i=H[a>>2];g=H[e+448>>2]+1|0;H[a>>2]=g;j=H[a+8>>2];h=H[e+452>>2]-1|0;H[a+8>>2]=h;f=e+48|0;c:{if(g>>>0>=h>>>0){break c}g=e+432|0;f=e+48|0;while(1){jh(a,e+432|0);if(!H[e+440>>2]){break c}if(f>>>0>>0){h=H[e+436>>2];H[f>>2]=H[e+432>>2];H[f+4>>2]=h;H[f+8>>2]=H[e+440>>2]}f=f+12|0;if(K[a>>2]>2]){continue}break}}H[a+8>>2]=j;H[a>>2]=i;f=f-(e+48|0)|0;if((f|0)<0){b=162;break b}f=(f>>>0)/12|0;g=H[b+24>>2];g=f>>>0>>0?f:g;d:{if(H[b+8>>2]==7){break d}b=H[b+28>>2];if(!b){break d}F[b+H[c>>2]|0]=g}e:{if(g){h=I[e+28|0];f=e+48|0;while(1){H[a>>2]=H[f>>2];H[a+8>>2]=H[f+4>>2];b=Hw(a,e+8|0,c,d,0);if(b){break e}H[e+24>>2]=h+H[e+24>>2];f=f+12|0;b=(g|0)>1;g=g-1|0;if(b){continue}break}}b=0}H[a+8>>2]=j;H[a>>2]=i}xb=e+464|0;return b|0}function lW(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=H[a+240>>2];if(c){zb[H[H[c>>2]+176>>2]](c,b)}c=H[b>>2];a:{if((c|0)==H[b+4>>2]){break a}e=G[c+2>>1];f=G[c>>1];c=H[a+240>>2];b:{if(c){zb[H[H[c>>2]+32>>2]](c,+(f|0),+(e|0));break b}if(I[a+188|0]){H[a+172>>2]=f;F[a+188|0]=0;H[a+180>>2]=f;H[a+184>>2]=e;H[a+176>>2]=e;break b}c=a+172|0;c:{if((f|0)>=H[c>>2]){c=a+180|0;if((f|0)<=H[c>>2]){break c}}H[c>>2]=f}if((e|0)>2]){H[a+176>>2]=e;break b}if((e|0)<=H[a+184>>2]){break b}H[a+184>>2]=e}c=H[a+168>>2];G[c+132>>1]=f;G[c+134>>1]=e;c=H[b>>2];if(H[b+4>>2]-c>>>0>=5){e=a+180|0;f=a+172|0;d=1;h=1;while(1){c=(d<<2)+c|0;d=G[c+2>>1];g=G[c>>1];c=H[a+240>>2];d:{if(c){zb[H[H[c>>2]+36>>2]](c,+(g|0),+(d|0));break d}if(I[a+188|0]){H[a+180>>2]=g;H[a+172>>2]=g;F[a+188|0]=0;H[a+184>>2]=d;H[a+176>>2]=d;break d}c=f;e:{if(H[c>>2]<=(g|0)){c=e;if(H[c>>2]>=(g|0)){break e}}H[c>>2]=g}if((d|0)>2]){H[a+176>>2]=d;break d}if((d|0)<=H[a+184>>2]){break d}H[a+184>>2]=d}c=H[a+168>>2];G[c+132>>1]=g;G[c+134>>1]=d;h=h+1|0;d=h<<16>>16;c=H[b>>2];if(d>>>0>2]-c>>2>>>0){continue}break}}b=H[a+240>>2];if(!b){break a}zb[H[H[b>>2]+52>>2]](b,1);a=H[a+240>>2];zb[H[H[a>>2]+56>>2]](a)}}function iM(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;d=a+8208|0;if(d>>>0>K[b+160>>2]){vc(b,8)}c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(!(c>>>0<=H[b+160>>2]-a>>>0&c>>>0>8207)){vc(b,8)}c=I[a+8204|0]|I[a+8205|0]<<8|(I[a+8206|0]<<16|I[a+8207|0]<<24);g=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);a:{b:{if(g>>>0>(H[b+160>>2]-d>>>0)/12>>>0){vc(b,8);break b}if(!g){break a}}h=a+12|0;c=0;while(1){e=c;f=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);j=I[d+1|0]<<16|I[d|0]<<24;a=I[d+3|0]|(j|I[d+2|0]<<8);k=I[d+5|0]<<16|I[d+4|0]<<24;c=I[d+7|0]|(k|I[d+6|0]<<8);if(a>>>0>c>>>0){vc(b,8)}if(!(!i|a>>>0>e>>>0)){vc(b,8)}c:{if(H[b+164>>2]<=0){break c}l=H[b+172>>2];e=c-a|0;if(!(l>>>0>=e>>>0&l-e>>>0>(f<<8&16711680|f<<24|(f>>>8&65280|f>>>24))>>>0)){vc(b,16)}e=e+1|0;if(j){if(!e){break c}while(1){if(!(I[(a>>>19|0)+h|0]<<(a>>>16&7)&128)){vc(b,8)}if(!(I[(a>>>3&8191)+h|0]<<(a&7)&128)){vc(b,8)}a=a+1|0;e=e-1|0;if(e){continue}break}break c}if(k){vc(b,8)}if(!e){break c}while(1){if(I[(a>>>3&8191)+h|0]<<(a&7)&128){vc(b,8)}a=a+1|0;e=e-1|0;if(e){continue}break}}d=d+12|0;i=i+1|0;if((g|0)!=(i|0)){continue}break}}return 0}function $7(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;m=xb-16|0;xb=m;a:{b:{if((c|0)<=0){q=a+608|0;r=a+604|0;d=H[a+608>>2];e=H[a+604>>2];break b}Nb(b,255,c);q=a+608|0;r=a+604|0;i=H[a+588>>2];d=H[a+608>>2];e=H[a+604>>2];while(1){k=d-1|0;j=e+1|0;c:{d:{e:{g=I[e|0];if((g|0)!=64){if(g){break e}if((d|0)<=(i|0)){break d}Kc(b,j,i);d=k-i|0;e=i+j|0;break c}f=I[e+4|0]|I[e+3|0]<<8;h=f+4|0;if((h|0)>=(d|0)){break d}d=I[e+2|0]|I[e+1|0]<<8;if((d+f|0)>(i|0)){break d}Kc(b+d|0,e+5|0,f);d=k-h|0;e=h+j|0;break c}n=H[a+56>>2];f=0;d=b;while(1){l=f>>>0>>0;o=g&63;f:{if(!(!o|f>>>0>=n>>>0)){s=g&192;p=(g&255)>>>6|0;t=p<<4;u=p<<2;h=d;while(1){e=f+1|0;g=t;l=s;g:{h:{i:{switch((f&3)-1|0){case 1:g=u;h=d;break h;case 0:break h;case 2:break i;default:break g}}h=d+1|0;g=p}l=I[d|0]|g}F[d|0]=l;l=e>>>0>>0;if(o>>>0<2){break f}o=o-1|0;f=e;d=h;if(e>>>0>>0){continue}break}break f}h=d;e=f}if(!l){d=k;e=j;break c}if(!k){break d}k=k-1|0;g=I[j|0];d=h;j=j+1|0;f=e;continue}}c=H[a>>2];b=H[a+628>>2];H[m>>2]=H[a+472>>2];Pb(b,c,270562,m);a=0;break a}b=b+i|0;c=c-i|0;if((c|0)>0){continue}break}}H[r>>2]=e;H[q>>2]=d;a=1}xb=m+16|0;return a|0}function ii(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;d=xb+-64|0;xb=d;e=H[a+11720>>2];l=!(I[H[a+11676>>2]+5|0]?I[a+11665|0]:1);f=H[a+11724>>2];if(!(l|(f|0)!=(c|0)?0:(e|0)==(b|0))){yo(a,e,f,b,c,d+20|0,d+16|0);h=H[d+20>>2];i=h+H[a+11720>>2]|0;H[d+8>>2]=i;f=H[d+16>>2];e=f+H[a+11724>>2]|0;H[d+12>>2]=e;f=c+f|0;h=b+h|0;if(I[a+11667|0]){H[d+56>>2]=1;g=H[a+11732>>2];H[d+24>>2]=H[a+11728>>2];H[d+28>>2]=g;if(!I[a+20|0]){Vi(a,H[a+11736>>2],H[a+11740>>2])}j=Rb(H[a+11644>>2],i);k=Rb(H[a+11648>>2],e);g=Jf(a+8|0,e);j=j+k|0;m=d,n=(Rb(H[H[a>>2]+64>>2],j)+Rb(H[H[a>>2]+72>>2],g)|0)+H[a+11656>>2]|0,H[m+32>>2]=n;m=d,n=(Rb(H[H[a>>2]+68>>2],j)+Rb(H[H[a>>2]+76>>2],g)|0)+H[a+11660>>2]|0,H[m+36>>2]=n;g=H[a+4>>2];zb[H[g>>2]](g,d+24|0);g=H[d+32>>2];j=H[d+36>>2];k=i;i=0;H[a+11704>>2]=k|i;H[a+11708>>2]=e;H[a+11728>>2]=g;H[a+11732>>2]=j;H[a+11712>>2]=h|i;H[a+11716>>2]=f;F[a+11664|0]=1;F[a+11667|0]=0}if(I[a+11744|0]){fk(a,a+8|0,d+8|0,h,f,0)}H[a+11748>>2]=2;F[a+11744|0]=1;e=H[d+12>>2];H[a+11752>>2]=H[d+8>>2];H[a+11756>>2]=e;H[a+11760>>2]=h;H[a+11764>>2]=f;if(l){gk(a+8|0,H[a+11668>>2],H[a+11672>>2],H[a+11676>>2],H[a+11680>>2],0)}H[a+11724>>2]=c;H[a+11720>>2]=b}xb=d- -64|0}function Th(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;f=xb-16|0;xb=f;k=H[b+28>>2];H[a+28>>2]=0;H[a+32>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[a+12>>2]=0;H[a+16>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[a>>2]=b;H[a+4>>2]=H[b+8>>2];a:{b:{c:{if(d){e=hd(b,f+12|0);if(H[f+12>>2]){break b}d=5;break c}e=nc(b,f+12|0);if(H[f+12>>2]){break b}d=3}H[a+8>>2]=d;d=0;if(!e){break a}g=Gd(b,f+12|0);if(H[f+12>>2]){break b}if((g-5&255)>>>0<=251){H[f+12>>2]=8;break b}F[a+16|0]=g;H[a+12>>2]=e;g=g&255;H[a+20>>2]=H[a+8>>2]+(H[a+4>>2]+N(g,e+1|0)|0);e=ud(b,N(e,g));H[f+12>>2]=e;if(e){break b}i=xb-16|0;xb=i;l=wd(H[a>>2],i+12|0,I[a+16|0]);d:{if(l){break d}j=I[a+16|0];if(!j){break d}e=0;if(j-1>>>0>=3){n=j&252;while(1){g=e;e=e+4|0;h=h+4|0;if((n|0)!=(h|0)){continue}break}h=i+12|0;h=I[h+(g|3)|0]|(I[h+(g|2)|0]|(I[g+h|0]<<16|I[h+(g|1)|0]<<8))<<8}g=j&3;if(!g){break d}while(1){h=I[(i+12|0)+e|0]|h<<8;e=e+1|0;m=m+1|0;if((g|0)!=(m|0)){continue}break}}H[f+12>>2]=l;xb=i+16|0;if(H[f+12>>2]){break b}if(!h){H[f+12>>2]=8;break b}e=h-1|0;H[a+24>>2]=e;e:{if(c){b=Ke(b,e,a+32|0);break e}b=ud(b,e)}H[f+12>>2]=b;if(!b){break a}}b=H[a+28>>2];if(b){zb[H[k+8>>2]](k,b)}H[a+28>>2]=0;d=H[f+12>>2]}xb=f+16|0;return d}function Cn(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;h=-6;a:{if(!g|I[g|0]!=49){break a}h=-2;if(!a){break a}H[a+24>>2]=0;g=H[a+32>>2];if(!g){H[a+40>>2]=0;H[a+32>>2]=866;g=866}if(!H[a+36>>2]){H[a+36>>2]=867}b:{if((d|0)<0){d=0-d|0}else{if(d>>>0<16){i=1;j=0;break b}i=2;d=d-16|0}j=1}if(f>>>0>4){break a}k=(b|0)==-1?6:b;if((c|0)!=8|k>>>0>9|(e-10>>>0<4294967287|d>>>0<8)){break a}if((d|0)==8&j|d>>>0>15){break a}h=-4;b=zb[g|0](H[a+40>>2],1,5828)|0;if(!b){break a}H[a+28>>2]=b;H[b+28>>2]=0;H[b+24>>2]=i;H[b+4>>2]=42;H[b>>2]=a;c=e+7|0;H[b+80>>2]=c;d=(d|0)==8?9:d;H[b+48>>2]=d;g=1<>2]=g;c=1<>2]=c;H[b+88>>2]=((e+9&255)>>>0)/3;H[b+84>>2]=g-1;H[b+52>>2]=c-1;l=b,m=zb[H[a+32>>2]](H[a+40>>2],c,2)|0,H[l+56>>2]=m;l=b,m=zb[H[a+32>>2]](H[a+40>>2],H[b+44>>2],2)|0,H[l+64>>2]=m;c=zb[H[a+32>>2]](H[a+40>>2],H[b+76>>2],2)|0;H[b+5824>>2]=0;H[b+68>>2]=c;c=1<>2]=c;c=zb[H[a+32>>2]](H[a+40>>2],c,4)|0;H[b+8>>2]=c;d=H[b+5788>>2];H[b+12>>2]=d<<2;c:{if(!(!H[b+68>>2]|(!H[b+56>>2]|!H[b+64>>2]))){if(c){break c}}H[b+4>>2]=666;H[a+24>>2]=H[61286];Oj(a);return-4}H[b+136>>2]=f;H[b+132>>2]=k;F[b+36|0]=8;H[b+5784>>2]=c+N(d,3);H[b+5796>>2]=c+(d&-2);h=Kr(a)}return h}function Lha(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a=xb-32|0;xb=a;d=a+16|0;H[d+12>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[d>>2]=436884;H[197455]=0;b=ca(910,d|0,b|0,0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){a:{b:{if(!b){break b}H[197455]=0;b=H[d+12>>2];c=H[197455];H[197455]=0;if((c|0)==1){break a}H[197455]=0;c=b>>>0<1e3?b:1e3;g=aa(929,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;H[a+12>>2]=0;b=la(930,d|0,g|0,c|0,a+12|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break a}if(!b){Kb(g);c=0;break b}H[197455]=0;ia(923,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}c:{d:{if(c>>>0>=11){H[197455]=0;e=c+16&2032;b=aa(899,e|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break a}H[a>>2]=b;H[a+4>>2]=c;H[a+8>>2]=e|-2147483648;break d}F[a+11|0]=c;b=a;if(!c){break c}}Ob(b,g,c)}F[b+c|0]=0;b=I[a+11|0];c=b<<24>>24<0;e=c?H[a>>2]:a;c=c?H[a+4>>2]:b;f=e+c|0;e:{f:{if((c|0)<4){break f}b=e;while(1){c=Kg(b,60,c-3|0);if(!c){break f}if((I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24))==1735815996){break e}b=c+1|0;c=f-b|0;if((c|0)>3){continue}break}}c=f}Kb(g);if(F[a+11|0]<0){Kb(H[a>>2])}c=(c|0)!=(f|0)&(c-e|0)!=-1}gf(d);xb=a+32|0;return c|0}}a=$()|0;_()|0;gf(d);ea(a|0);X()}function Kl(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=xb-32|0;xb=h;i=H[b+12>>2];g=H[b+8>>2];m=i-g|0;n=m>>3;j=n&1;if(!(I[e|0]|(I[a+8|0]|!j))){a:{if((g|0)==(i|0)){l=H[b+4>>2];if(!l|H[l>>2]){break a}H[l>>2]=130;break a}b:{switch(H[g+4>>2]-1|0){case 1:k=H[g>>2]<<16;break a;case 0:k=H[g>>2];k=((k>>31)+k|0)- -8192>>14;break a;default:break b}}k=H[g>>2]}H[d>>2]=(H[H[H[a+176>>2]+536>>2]+544>>2]<<16)+k}if(!I[H[a+176>>2]+548|0]){c:{if(m>>>0<9){break c}while(1){i=i-g>>3;d:{if(i>>>0<=j>>>0){a=0;d=H[b+4>>2];if(!d|H[d>>2]){break d}H[d>>2]=130;break d}e:{f:{g:{a=(j<<3)+g|0;switch(H[a+4>>2]-1|0){case 0:break f;case 1:break g;default:break e}}a=H[a>>2]<<16;break d}a=H[a>>2];a=((a>>31)+a|0)- -8192>>14;break d}a=H[a>>2]}d=a+f|0;H[h+12>>2]=d;a=j+1|0;h:{if(a>>>0>=i>>>0){g=0;a=H[b+4>>2];if(!a|H[a>>2]){break h}H[a>>2]=130;break h}i:{j:{k:{a=(a<<3)+g|0;switch(H[a+4>>2]-1|0){case 0:break j;case 1:break k;default:break i}}g=H[a>>2]<<16;break h}a=H[a>>2];g=((a>>31)+a|0)- -8192>>14;break h}g=H[a>>2]}H[h+20>>2]=0;H[h+24>>2]=0;F[h+8|0]=0;f=d+g|0;H[h+16>>2]=f;ev(c,h+8|0);g=H[b+8>>2];j=j+2|0;if(n>>>0<=j>>>0){break c}i=H[b+12>>2];continue}}H[b+12>>2]=g}F[e|0]=1;xb=h+32|0}function J8(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+584>>2];a:{b:{switch(b-512|0){case 2:H[d+200>>2]=H[c>>2];break a;case 18:F[d+207|0]=1;e=H[c>>2];F[d+208|0]=e;c=H[c+4>>2];F[d+209|0]=c;G[a+206>>1]=c&255;G[a+204>>1]=e&255;break a;case 7:e=H[c>>2];if(!e){break a}if(e>>>0>=4){Pb(H[a+628>>2],295876,283268,0);return 0}F[d+211|0]=e;c=H[c+4>>2];H[d+216>>2]=H[c>>2];if((e|0)==1){break a}H[d+220>>2]=H[c+4>>2];if((e|0)==2){break a}H[d+224>>2]=H[c+8>>2];break a;case 8:e=H[c>>2];if(!e){break a}if(e>>>0>=4){Pb(H[a+628>>2],295876,287277,0);return 0}F[d+212|0]=e;c=H[c+4>>2];H[d+228>>2]=H[c>>2];if((e|0)==1){break a}H[d+232>>2]=H[c+4>>2];if((e|0)==2){break a}H[d+236>>2]=H[c+8>>2];break a;case 9:e=H[c>>2];if(!e){break a}if(e>>>0>=4){Pb(H[a+628>>2],295876,287407,0);return 0}F[d+213|0]=e;c=H[c+4>>2];H[d+240>>2]=H[c>>2];if((e|0)==1){break a}H[d+244>>2]=H[c+4>>2];if((e|0)==2){break a}H[d+248>>2]=H[c+8>>2];break a;case 0:F[d+204|0]=H[c>>2];break a;case 3:G[d+300>>1]=H[c>>2];break a;default:return zb[H[d+164>>2]](a,b,c)|0;case 1:break b}}H[d+196>>2]=H[c>>2]}c=J[rd(a,b)+12>>1];b=(J[rd(a,b)+12>>1]>>>3&8188)+a|0;H[b+40>>2]=H[b+40>>2]|1<>2]=H[a+12>>2]|8;return 1}function n7(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;a:{d=H[H[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0)){break a}Gh(b,a);g=a-d|0;if((d|0)<5){a=d<<2;while(1){b:{switch(d|0){default:c=a+b|0;H[c>>2]=H[c>>2]+H[b>>2];b=b+4|0;case 3:c=a+b|0;H[c>>2]=H[c>>2]+H[b>>2];b=b+4|0;case 2:c=a+b|0;H[c>>2]=H[c>>2]+H[b>>2];b=b+4|0;case 1:c=a+b|0;H[c>>2]=H[c>>2]+H[b>>2];b=b+4|0;break;case 0:break b}}g=g-d|0;if((g|0)>0){continue}break}break a}c=d-4|0;h=d&3;i=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:{switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}}e=0;a=c;if(h){while(1){f=(d<<2)+b|0;H[f>>2]=H[f>>2]+H[b>>2];a=a-1|0;b=b+4|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}if(!i){break g}while(1){e=d<<2;f=e+b|0;H[f>>2]=H[f>>2]+H[b>>2];f=e+(b+4|0)|0;H[f>>2]=H[f>>2]+H[b+4>>2];f=e+(b+8|0)|0;H[f>>2]=H[f>>2]+H[b+8>>2];e=e+(b+12|0)|0;H[e>>2]=H[e>>2]+H[b+12>>2];b=b+16|0;e=(a|0)>4;a=a-4|0;if(e){continue}break}}a=(d<<2)+b|0;H[a>>2]=H[a>>2]+H[b>>2];b=b+4|0}a=(d<<2)+b|0;H[a>>2]=H[a>>2]+H[b>>2];b=b+4|0}a=(d<<2)+b|0;H[a>>2]=H[a>>2]+H[b>>2];b=b+4|0}a=(d<<2)+b|0;H[a>>2]=H[a>>2]+H[b>>2];b=b+4|0}g=g-d|0;if((g|0)>0){continue}break}}}function If(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;f=xb-16|0;xb=f;h=H[a+100>>2];H[f+12>>2]=0;m=J[a+340>>1];a:{if(!m){break a}g=-1;i=-1;k=-1;l=-1;j=H[a+356>>2];e=j;while(1){b:{if(!J[e+8>>1]|J[e+6>>1]!=(b|0)){break b}c:{switch(J[e>>1]){case 0:case 2:g=d;break b;case 1:if(!J[e+4>>1]){k=d;break b}l=J[e+2>>1]?l:d;break b;case 3:break c;default:break b}}if((i|0)!=-1&(J[e+4>>1]&1023)!=9){break b}n=J[e+2>>1];if(n>>>0>10|!(1<>1]&1023)==9;i=d}e=e+20|0;d=d+1|0;if((m|0)!=(d|0)){continue}break}d=(k|0)>=0?k:l;d:{e:{f:{if((i|0)>=0){if((d|0)>=0){b=70;if(!o){break f}}e=0;d=N(i,20)+j|0;g=J[d+2>>1];if(g>>>0>10){break a}b=71;if(1<=0){break f}e=0;b=71;d=g;if((d|0)<0){break a}}if(!j){break d}d=N(d,20)+j|0}g:{if(H[d+16>>2]){break g}a=H[a+368>>2];e=0;p=d,q=Ub(h,1,0,J[d+8>>1],0,f+12|0),H[p+16>>2]=q;h:{if(H[f+12>>2]){break h}g=bc(a,H[d+12>>2]);H[f+12>>2]=g;if(g){break h}a=wd(a,H[d+16>>2],J[d+8>>1]);H[f+12>>2]=a;if(!a){break g}}a=H[d+16>>2];if(a){zb[H[h+8>>2]](h,a)}G[d+8>>1]=0;H[d+16>>2]=0;break a}e=zb[b|0](d,h)|0;break a}e=0}H[c>>2]=e;xb=f+16|0;return H[f+12>>2]}function IF(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;n=c;c=-1;b=Xh(a,b);a=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);if((a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))>>>0>=65537){a=I[b+10|0]|I[b+11|0]<<8|(I[b+12|0]<<16|I[b+13|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);h=a?a+b|0:163632}else{h=163632}a=h;a=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);l=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a:{if(!l){break a}a=0;while(1){b=(a<<3)+h|0;b=I[b+8|0]|I[b+9|0]<<8|(I[b+10|0]<<16|I[b+11|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);i=b?b+h|0:163632;b=I[i|0]|I[i+1|0]<<8;if(!b){c=a;break a}m=1;j=(b<<8|b>>>8)&65535;o=j>>>0>1?j:1;b=0;while(1){b:{f=(b<<2)+i|0;f=I[f+2|0]|I[f+3|0]<<8|(I[f+4|0]<<16|I[f+5|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);g=f?f+i|0:163632;if((I[g|0]|I[g+1|0]<<8)!=256){break b}k=0;f=I[g+2|0]|I[g+3|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0>>0){k=H[(f<<2)+n>>2]}f=I[g+4|0]|I[g+5|0]<<8;if((f<<8|f>>>8)<<16>>16>(k|0)){break b}f=I[g+6|0]|I[g+7|0]<<8;if((f<<8|f>>>8)<<16>>16<(k|0)){break b}b=b+1|0;m=j>>>0>b>>>0;if((b|0)!=(o|0)){continue}}break}if(!m){c=a;break a}a=a+1|0;if((l|0)!=(a|0)){continue}break}}H[e>>2]=c}function _N(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;if($d(a,H[b+8>>2],e)){if(!(H[b+28>>2]==1|H[b+4>>2]!=(c|0))){H[b+28>>2]=d}return}a:{if($d(a,H[b>>2],e)){if(!(H[b+16>>2]!=(c|0)&H[b+20>>2]!=(c|0))){if((d|0)!=1){break a}H[b+32>>2]=1;return}H[b+32>>2]=d;if(H[b+44>>2]!=4){f=a+16|0;h=f+(H[a+12>>2]<<3)|0;d=0;b:{c:{while(1){d:{if(f>>>0>=h>>>0){break d}G[b+52>>1]=0;Bo(f,b,c,c,1,e);if(I[b+54|0]){break d}e:{if(!I[b+53|0]){break e}if(I[b+52|0]){d=1;if(H[b+24>>2]==1){break c}g=1;if(I[a+8|0]&2){break e}break c}g=1;if(!(F[a+8|0]&1)){break c}}f=f+8|0;continue}break}a=4;if(!g){break b}}a=3}H[b+44>>2]=a;if(d&1){break a}}H[b+20>>2]=c;H[b+40>>2]=H[b+40>>2]+1;if(H[b+36>>2]!=1|H[b+24>>2]!=2){break a}F[b+54|0]=1;return}f=H[a+12>>2];g=a+16|0;Nl(g,b,c,d,e);if((f|0)<2){break a}g=g+(f<<3)|0;f=a+24|0;a=H[a+8>>2];if(!(!(a&2)&H[b+36>>2]!=1)){while(1){if(I[b+54|0]){break a}Nl(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0){continue}break}break a}if(!(a&1)){while(1){if(I[b+54|0]|H[b+36>>2]==1){break a}Nl(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0){continue}break a}}while(1){if(I[b+54|0]|H[b+36>>2]==1&H[b+24>>2]==1){break a}Nl(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0){continue}break}}}function Vf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=H[a+88>>2];b=H[a+32>>2]+(b<<4)|0;e=H[b+8>>2];G[f+12>>1]=e+32>>>6;j=H[b+12>>2];G[f+14>>1]=j+32>>>6;a:{b:{c:{d:{if(F[a+8|0]&1){k=f+12|0;c=J[a+68>>1];if(!c){d=2147483647;H[f+16>>2]=(e|0)<0?-2147483647:2147483647;break a}b=e>>31;d=(b^e)-b|0;if(d>>>0<=65535){b=((d<<16|c>>>1)>>>0)/(c>>>0)|0;break c}b=2147483647;g=d>>>16|0;if(g>>>0>=c>>>0){break c}h=d<<16|c>>>1;b=Q(g);i=32-b|0;g=h>>>i|g<>>0)/(c>>>0)|0;g=g-N(c,d)|0;b=h<>>31;g=h-(c>>>0>h>>>0?0:c)|0;d=d<<1|c>>>0<=h>>>0;b=b<<1;i=i-1|0;if(i){continue}break}H[f+16>>2]=(e|0)<0?0-d|0:d;if(!c){break d}b=j>>31;b=(b^j)-b|0;break b}H[f+28>>2]=0;H[f+24>>2]=j;H[f+16>>2]=65536;H[f+20>>2]=65536;a=G[b>>1];H[f+36>>2]=e;H[f+32>>2]=a<<6;return}d=2147483647;break a}H[f+16>>2]=(e|0)<0?0-b|0:b;b=j>>31;b=(b^j)-b|0}if(b>>>0<=65535){d=((b<<16|c>>>1)>>>0)/(c>>>0)|0;break a}d=2147483647;e=b>>>16|0;if(e>>>0>=c>>>0){break a}h=b<<16|c>>>1;b=Q(e);i=32-b|0;e=h>>>i|e<>>0)/(c>>>0)|0;g=e-N(c,d)|0;b=h<>>31;g=e-(c>>>0>e>>>0?0:c)|0;d=d<<1|c>>>0<=e>>>0;b=b<<1;i=i-1|0;if(i){continue}break}}H[f+20>>2]=(j|0)<0?0-d|0:d;wC(a,k)}function iV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=I[787987];f=d<<24>>24<0;e=f?H[196994]:787976;d=f?H[196995]:d;if((d|0)==-1){d=ad(e)}zb[H[H[a>>2]+8>>2]](a,d);f=e;e=d<<2;Ob(H[a+12>>2],f,e);H[a+12>>2]=e+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+d;e=I[b+11|0];f=e<<24>>24<0;d=f?H[b>>2]:b;b=f?H[b+4>>2]:e;if((b|0)==-1){b=ad(d)}zb[H[H[a>>2]+8>>2]](a,b);e=d;d=b<<2;Ob(H[a+12>>2],e,d);H[a+12>>2]=d+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;b=I[787999];e=b<<24>>24<0;d=e?H[196997]:787988;b=e?H[196998]:b;if((b|0)==-1){b=ad(d)}zb[H[H[a>>2]+8>>2]](a,b);e=d;d=b<<2;Ob(H[a+12>>2],e,d);H[a+12>>2]=d+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;b=I[788011];e=b<<24>>24<0;d=e?H[197e3]:788e3;b=e?H[197001]:b;if((b|0)==-1){b=ad(d)}zb[H[H[a>>2]+8>>2]](a,b);e=d;d=b<<2;Ob(H[a+12>>2],e,d);H[a+12>>2]=d+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;b=I[c+11|0];e=b<<24>>24<0;d=e?H[c>>2]:c;b=e?H[c+4>>2]:b;if((b|0)==-1){b=ad(d)}zb[H[H[a>>2]+8>>2]](a,b);c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;b=I[788011];d=b<<24>>24<0;c=d?H[197e3]:788e3;b=d?H[197001]:b;if((b|0)==-1){b=ad(c)}zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b}function My(a){a=a|0;var b=0,c=0,d=0;G[a+28>>1]=0;H[a+24>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a+16>>2]=0;G[a+46>>1]=0;G[a+48>>1]=0;G[a+50>>1]=0;G[a+52>>1]=0;H[a>>2]=436304;H[197455]=0;b=a+88|0;H[b+8>>2]=1024;H[b+12>>2]=1024;H[b>>2]=0;H[b+4>>2]=0;b=H[197455];H[197455]=0;a:{b:{c:{d:{e:{f:{if((b|0)==1){break f}H[197455]=0;b=a+104|0;H[b+8>>2]=1024;H[b+12>>2]=1024;H[b>>2]=0;H[b+4>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;d=da(3224,a+120|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break f}H[197455]=0;b=a+172|0;H[b+8>>2]=1024;H[b+12>>2]=1024;H[b>>2]=0;H[b+4>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){break e}H[a+192>>2]=0;H[a+196>>2]=1072693248;H[a+200>>2]=0;H[a+204>>2]=0;H[a+208>>2]=0;H[a+212>>2]=0;H[a+224>>2]=0;H[a+228>>2]=0;H[a+216>>2]=0;H[a+220>>2]=1072693248;H[a+232>>2]=0;H[a+236>>2]=0;H[a+240>>2]=0;H[a+244>>2]=0;H[a+248>>2]=0;H[a+252>>2]=0;F[a+256|0]=0;H[197455]=0;b=H[d>>2];c=H[197455];H[197455]=0;if((c|0)==1){break d}H[a+168>>2]=b;break a}b=$()|0;_()|0;break b}b=$()|0;_()|0;break c}b=$()|0;_()|0;c=H[a+244>>2];if(c){Kb(c);H[a+244>>2]=0}H[a+248>>2]=0;H[a+252>>2]=0}xy(d)}Rm(a);ea(b|0);X()}H[a>>2]=435872;return a|0}function WF(a,b,c,d){var e=0,f=0,g=0,h=0;a:{b:{c:{f=H[a+4>>2];if((f|0)>=0){e=H[a+8>>2];g=e+1|0;g=(g|0)>0?g:0;if(g>>>0<=f>>>0){break b}e=f;while(1){e=((e>>>1|0)+e|0)+8|0;if(g>>>0>=e>>>0){continue}break}if(!(e>>>0>>0|e>>>0>178956969)){f=tc(H[a+12>>2],N(e,24));if(f){break c}}H[a+4>>2]=-1}d=H[40913];H[196252]=H[40912];H[196253]=d;d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;h=784992;break a}H[a+4>>2]=e;H[a+12>>2]=f;e=H[a+8>>2]}if(e>>>0>>0){while(1){H[a+8>>2]=e+1;e=H[a+12>>2]+N(e,24)|0;H[e>>2]=0;H[e+4>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;e=H[a+8>>2];if(g>>>0>e>>>0){continue}break}}H[a+8>>2]=g;e=H[a+12>>2];f=H[40913];H[196252]=H[40912];H[196253]=f;f=H[40911];H[196250]=H[40910];H[196251]=f;f=H[40909];H[196248]=H[40908];H[196249]=f;e=(e+N(g,24)|0)-24|0;h=784992;if((e|0)==784992){break a}f=H[d+4>>2];H[e>>2]=H[d>>2];H[e+4>>2]=f;f=H[d+20>>2];H[e+16>>2]=H[d+16>>2];H[e+20>>2]=f;f=H[d+12>>2];H[e+8>>2]=H[d+8>>2];H[e+12>>2]=f;h=e}f=h;H[f>>2]=b;e=H[c+12>>2];d=H[c+4>>2];g=H[c>>2];b=H[a>>2];H[f+12>>2]=0;H[f+4>>2]=b+g;f=d-b|0;d=d>>>0>>0?0:f;b=e-b|0;H[h+8>>2]=b>>>0>d>>>0?d:b;H[a>>2]=H[c+12>>2]}function r7(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;a:{d=H[H[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0)){break a}g=a-d|0;if((d|0)<5){a=d<<2;while(1){b:{switch(d|0){default:c=a+b|0;H[c>>2]=H[c>>2]+H[b>>2];b=b+4|0;case 3:c=a+b|0;H[c>>2]=H[c>>2]+H[b>>2];b=b+4|0;case 2:c=a+b|0;H[c>>2]=H[c>>2]+H[b>>2];b=b+4|0;case 1:c=a+b|0;H[c>>2]=H[c>>2]+H[b>>2];b=b+4|0;break;case 0:break b}}g=g-d|0;if((g|0)>0){continue}break}break a}c=d-4|0;h=d&3;i=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:{switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}}e=0;a=c;if(h){while(1){f=(d<<2)+b|0;H[f>>2]=H[f>>2]+H[b>>2];a=a-1|0;b=b+4|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}if(!i){break g}while(1){e=d<<2;f=e+b|0;H[f>>2]=H[f>>2]+H[b>>2];f=e+(b+4|0)|0;H[f>>2]=H[f>>2]+H[b+4>>2];f=e+(b+8|0)|0;H[f>>2]=H[f>>2]+H[b+8>>2];e=e+(b+12|0)|0;H[e>>2]=H[e>>2]+H[b+12>>2];b=b+16|0;e=(a|0)>4;a=a-4|0;if(e){continue}break}}a=(d<<2)+b|0;H[a>>2]=H[a>>2]+H[b>>2];b=b+4|0}a=(d<<2)+b|0;H[a>>2]=H[a>>2]+H[b>>2];b=b+4|0}a=(d<<2)+b|0;H[a>>2]=H[a>>2]+H[b>>2];b=b+4|0}a=(d<<2)+b|0;H[a>>2]=H[a>>2]+H[b>>2];b=b+4|0}g=g-d|0;if((g|0)>0){continue}break}}}function zca(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;j=H[a+372>>2];c=H[a+420>>2];d=H[a+24>>2];H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2];if(!(H[c+36>>2]|!H[a+236>>2])){gn(c,H[c+40>>2])}a:{e=H[a+316>>2];if(H[c+108>>2]|(e|0)<=0){break a}while(1){if(!g){f=H[c+16>>2];g=H[c+12>>2]|(G[H[(i<<2)+b>>2]>>1]>>>j&1)<<23-f;d=f+1|0;if((f|0)>=7){while(1){e=H[c+112>>2];H[c+112>>2]=e+1;F[e|0]=g>>>16;e=H[c+116>>2]-1|0;H[c+116>>2]=e;if(!e){f=H[c+120>>2];e=H[f+24>>2];if(!(zb[H[e+12>>2]](f)|0)){f=H[c+120>>2];h=H[f>>2];H[h+20>>2]=25;zb[H[h>>2]](f)}H[c+112>>2]=H[e>>2];H[c+116>>2]=H[e+4>>2]}e=d;b:{if((g&16711680)!=16711680){break b}d=H[c+112>>2];H[c+112>>2]=d+1;F[d|0]=0;d=H[c+116>>2]-1|0;H[c+116>>2]=d;if(d){break b}f=H[c+120>>2];d=H[f+24>>2];if(!(zb[H[d+12>>2]](f)|0)){f=H[c+120>>2];h=H[f>>2];H[h+20>>2]=25;zb[H[h>>2]](f)}H[c+112>>2]=H[d>>2];H[c+116>>2]=H[d+4>>2]}d=e-8|0;g=g<<8;if((e|0)>15){continue}break}e=H[a+316>>2]}H[c+16>>2]=d;H[c+12>>2]=g}i=i+1|0;if((i|0)>=(e|0)){break a}g=H[c+108>>2];continue}}b=H[a+24>>2];H[b>>2]=H[c+112>>2];H[b+4>>2]=H[c+116>>2];a=H[a+236>>2];if(a){b=H[c+36>>2];if(b){a=b}else{H[c+40>>2]=H[c+40>>2]+1&7}H[c+36>>2]=a-1}return 1}function oB(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;a:{if(!a){break a}b=J[a+2>>1];c=b<<16>>16;if((c|0)<=0){break a}h=2;if((c|0)==1){break a}i=H[a+4>>2];j=i+(b<<3)|0;f=i+8|0;d=H[i>>2];e=d;b=i;c=H[b+4>>2];g=c;while(1){b=H[b+12>>2];g=(b|0)>(g|0)?b:g;c=(b|0)<(c|0)?b:c;b=H[f>>2];e=(b|0)>(e|0)?b:e;d=(b|0)<(d|0)?b:d;b=f;f=b+8|0;if(j>>>0>f>>>0){continue}break}if((d|0)==(e|0)|(c|0)==(g|0)|((d|0)<-16777216|(c|0)<-16777216)){break a}if((e|0)>16777216|(g|0)>16777216){break a}m=G[a>>1];if((m|0)>0){f=0;b=e>>31;e=(b^e)-b|0;b=d>>31;b=17-Q(e|(b^d)-b)|0;h=(b|0)>0?b:0;b=17-Q(g-c|0)|0;j=(b|0)>0?b:0;p=H[a+12>>2];a=0;while(1){e=G[(l<<1)+p>>1];b:{if((e|0)<(a|0)){break b}b=(e<<3)+i|0;c=H[b>>2]>>h;b=H[b+4>>2]>>j;c:{if(!((e-a|0)+1&1)){g=b;b=a;break c}d=c;c=(a<<3)+i|0;g=H[c+4>>2]>>j;c=H[c>>2]>>h;f=N(g-b|0,d+c|0)+f|0;b=a+1|0}if((a|0)==(e|0)){break b}while(1){n=b+1|0;d=(n<<3)+i|0;a=H[d+4>>2]>>j;k=(b<<3)+i|0;o=H[k+4>>2]>>j;d=H[d>>2]>>h;k=H[k>>2]>>h;f=N(a-o|0,d+k|0)+(N(c+k|0,o-g|0)+f|0)|0;b=b+2|0;c=d;g=a;if((e|0)!=(n|0)){continue}break}}a=e+1|0;l=l+1|0;if((m|0)!=(l|0)){continue}break}h=1;if((f|0)>0){break a}h=0;if(f){break a}}h=2}return h}function cz(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;H[a+4>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a>>2]=424816;a:{b:{if(!b){break b}c=H[b+4>>2];if((c|0)==H[b+8>>2]){break b}while(1){c=H[(f<<2)+c>>2];g=H[H[c>>2]+8>>2];H[197455]=0;g=aa(g|0,c|0)|0;l=H[197455];H[197455]=0;if((l|0)==1){break a}c:{d:{switch(g-1|0){case 0:d=M[c+16>>3];e=M[c+8>>3];H[197455]=0;xa(1780,a|0,+e,+d)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break c}break a;case 1:d=M[c+16>>3];e=M[c+8>>3];H[197455]=0;xa(1781,a|0,+e,+d)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break c}break a;case 2:d=M[c+48>>3];e=M[c+40>>3];h=M[c+32>>3];i=M[c+24>>3];j=M[c+16>>3];k=M[c+8>>3];H[197455]=0;Ia(1900,a|0,+k,+j,+i,+h,+e,+d)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break c}break a;case 3:d=M[c+48>>3];e=M[c+40>>3];h=M[c+32>>3];i=M[c+24>>3];j=M[c+16>>3];k=M[c+8>>3];H[197455]=0;Ia(1926,a|0,+k,+j,+i,+h,+e,+d)|0;c=H[197455];H[197455]=0;if((c|0)!=1){break c}break a;case 4:break d;default:break c}}H[197455]=0;aa(1782,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}}f=f+1|0;c=H[b+4>>2];if(f>>>0>2]-c>>2>>>0){continue}break}}return a}c=$()|0;_()|0;b=H[a+4>>2];if(b){H[a+8>>2]=b;Kb(b)}ea(c|0);X()}function k7(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;a:{e=H[H[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0)){break a}h=a-e|0;a=((h<<1)+b|0)-2|0;if((e|0)<5){b=e<<1;while(1){b:{switch(e|0){default:c=a+b|0;G[c>>1]=J[c>>1]-J[a>>1];a=a-2|0;case 3:c=a+b|0;G[c>>1]=J[c>>1]-J[a>>1];a=a-2|0;case 2:c=a+b|0;G[c>>1]=J[c>>1]-J[a>>1];a=a-2|0;case 1:c=a+b|0;G[c>>1]=J[c>>1]-J[a>>1];a=a-2|0;break;case 0:break b}}h=h-e|0;if((h|0)>0){continue}break}break a}c=e-4|0;i=e&3;j=e-5>>>0>2;g=e<<1;while(1){c:{d:{e:{f:{g:{h:{switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}}d=0;b=c;if(i){while(1){f=a+g|0;G[f>>1]=J[f>>1]-J[a>>1];b=b-1|0;a=a-2|0;d=d+1|0;if((i|0)!=(d|0)){continue}break}}if(!j){break g}while(1){d=a+g|0;G[d>>1]=J[d>>1]-J[a>>1];d=a-2|0;f=d+g|0;G[f>>1]=J[f>>1]-J[d>>1];d=a-4|0;f=d+g|0;G[f>>1]=J[f>>1]-J[d>>1];d=a-6|0;f=d+g|0;G[f>>1]=J[f>>1]-J[d>>1];a=a-8|0;d=(b|0)>4;b=b-4|0;if(d){continue}break}}b=a+g|0;G[b>>1]=J[b>>1]-J[a>>1];a=a-2|0}b=a+g|0;G[b>>1]=J[b>>1]-J[a>>1];a=a-2|0}b=a+g|0;G[b>>1]=J[b>>1]-J[a>>1];a=a-2|0}b=a+g|0;G[b>>1]=J[b>>1]-J[a>>1];a=a-2|0}h=h-e|0;if((h|0)>0){continue}break}}}function wE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(K[b+4>>2]>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0){break a}c=c-a|0;if(c>>>0<4){break a}d=H[b+12>>2];e=d-4|0;H[b+12>>2]=e;if((I[a|0]|I[a+1|0]<<8)!=256|(e|0)<=0|c>>>0<12){break a}c=d-16|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[a+6|0]|I[a+7|0]<<8;if(((c<<8|c>>>8)&65535)>>>0<8){break a}d=0;f=xb-16|0;xb=f;h=H[b+4>>2];e=a+10|0;b:{if(h>>>0>e>>>0){break b}g=H[b+8>>2];if(e>>>0>g>>>0|g-e>>>0<2){break b}i=H[b+12>>2];c=i-2|0;H[b+12>>2]=c;d=1;if((c|0)<=0){d=0;break b}c=I[e|0]|I[e+1|0]<<8;if(!c){break b}c=((c<<8|c>>>8)&65535)+a|0;c:{if(c>>>0>>0|c>>>0>g>>>0|g-c>>>0<=7){break c}d=i-10|0;H[b+12>>2]=d;if((I[c|0]|I[c+1|0]<<8)!=256|(d|0)<=0){break c}if(!co(c+2|0,b,c)){break c}H[f+12>>2]=c;d=1;if(bo(c+6|0,b,f+12|0)){break b}}c=H[b+28>>2];if(c>>>0>31){d=0;break b}H[b+28>>2]=c+1;d=0;if(!I[b+24|0]){break b}F[e|0]=0;F[e+1|0]=0;d=1}xb=f+16|0;if(!d){break a}c=I[a+6|0]|I[a+7|0]<<8;d=(c<<8|c>>>8)&65535;c=I[a+8|0]|I[a+9|0]<<8;c=N(d,(c<<8|c>>>8)&65535);if(!c){return 1}a=a+12|0;if(a>>>0>2]){break a}d=H[b+8>>2];if(d>>>0>>0|c>>>0>d-a>>>0){break a}a=H[b+12>>2]-c|0;H[b+12>>2]=a;j=(a|0)>0}return j}function pd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=H[a+464>>2];c=H[e+12>>2];a:{if((c|0)>=32768){d=H[e+16>>2];break a}d=H[e+16>>2];while(1){c=d-1|0;H[e+16>>2]=c;b:{if((d|0)>0){d=c;break b}f=0;if(!H[a+436>>2]){c=H[a+24>>2];c:{if(H[c+4>>2]){break c}if(zb[H[c+12>>2]](a)|0){break c}d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}H[c+4>>2]=H[c+4>>2]-1;d=c;c=H[c>>2];H[d>>2]=c+1;f=I[c|0];d:{if((f|0)!=255){break d}while(1){c=H[a+24>>2];e:{if(H[c+4>>2]){break e}if(zb[H[c+12>>2]](a)|0){break e}d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}H[c+4>>2]=H[c+4>>2]-1;d=c;c=H[c>>2];H[d>>2]=c+1;f=255;c=I[c|0];if((c|0)==255){continue}break}if(!c){break d}H[a+436>>2]=c;f=0}c=H[e+16>>2]}d=c+8|0;H[e+16>>2]=d;H[e+8>>2]=H[e+8>>2]<<8|f;if((c|0)>-9){break b}d=c+9|0;H[e+16>>2]=d;if(d){break b}H[e+12>>2]=32768;d=0}c=H[e+12>>2]<<1;H[e+12>>2]=c;if((c|0)<32768){continue}break}}a=I[b|0];f=H[((a&127)<<2)+257056>>2];g=f>>16;c=c-g|0;H[e+12>>2]=c;h=f>>8;i=H[e+8>>2];d=c<=(d|0)){H[e+12>>2]=g;H[e+8>>2]=i-d;d=a&128;if((c|0)<(g|0)){F[b|0]=d^h;break f}F[b|0]=d^f;a=a^128;break f}if(c>>>0>32767){break f}d=a&128;if((c|0)<(g|0)){F[b|0]=d^f;a=a^128;break f}F[b|0]=d^h}return a>>>7|0}function Pp(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;f=H[a+212>>2];g=f>>8;d=H[a+176>>2];j=c>>8;a:{if((g|0)>=(d|0)&(d|0)<=(j|0)){break a}d=H[a+172>>2];if((d|0)>(g|0)&(d|0)>(j|0)){break a}p=c&255;d=f&255;e=H[a+208>>2];if((g|0)==(j|0)){Hm(a,g,e,d,b,p);break a}h=c-f|0;if((b|0)==(e|0)){e=(h|0)>0;h=e<<8;d=h-d|0;H[a+184>>2]=d+H[a+184>>2];f=b<<1&510;H[a+180>>2]=H[a+180>>2]+N(f,d);k=b>>8;d=g;g=e?1:-1;d=d+g|0;zh(a,k,d);if((d|0)!=(j|0)){e=(e<<9)-256|0;m=N(e,f);while(1){H[a+180>>2]=m+H[a+180>>2];H[a+184>>2]=e+H[a+184>>2];d=d+g|0;zh(a,k,d);if((d|0)!=(j|0)){continue}break}}d=h+(c|-256)|0;H[a+184>>2]=d+H[a+184>>2];H[a+180>>2]=H[a+180>>2]+N(d,f);break a}i=b-e|0;m=1;f=d;b:{if((h|0)>0){k=256;d=256-d|0;break b}h=0-h|0;m=-1}n=N(d,i);d=(n|0)/(h|0)|0;o=e;l=f;f=n-N(d,h)|0;n=f>>31;e=n+(d+e|0)|0;Hm(a,g,o,l,e,k);d=g+m|0;zh(a,e>>8,d);c:{if((d|0)==(j|0)){g=256-k|0;break c}i=i<<8;g=(i|0)/(h|0)|0;i=i-N(g,h)|0;l=i>>31;i=(l&h)+i|0;l=g+l|0;g=256-k|0;f=f+(h&n)|0;while(1){o=e;f=f+i|0;e=(e+l|0)+((f|0)>=(h|0))|0;Hm(a,d,o,g,e,k);d=d+m|0;zh(a,e>>8,d);f=f-((f|0)<(h|0)?0:h)|0;if((d|0)!=(j|0)){continue}break}}Hm(a,j,e,g,b,p)}H[a+212>>2]=c;H[a+208>>2]=b}function nv(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!b){break a}e=H[a+16>>2];if((e|0)<=0){break a}d=((e<<2)+a|0)+20|0;c=a+20|0;while(1){if(H[c>>2]==(b|0)){H[a+16>>2]=e-1;g=d-4|0;if(g>>>0>c>>>0){d=c+4|0;a=((e<<2)+a|0)+16|0;$c(c,d,((c^-1)+(a>>>0>d>>>0?a:d)|0)+4&-4)}H[g>>2]=0;g=H[b+8>>2];e=H[b>>2];d=H[b+4>>2];a=e;b:{if(!d){break b}if(H[d+160>>2]==(b|0)){H[d+160>>2]=0}a=e;if(!(I[a|0]&2)){break b}c=H[d+148>>2];a=e;if(!c){break b}h=d+148|0;a=H[d>>2];c:{while(1){if(H[c+8>>2]==(b|0)){break c}c=H[c+4>>2];if(c){continue}break}a=e;break b}f=H[b+12>>2];d:{if(H[f+36>>2]!=1869968492){break d}i=H[b+52>>2];if(!i){break d}zb[H[H[f+56>>2]+20>>2]](i)}f=H[c>>2];i=f?f+4|0:h;h=H[c+4>>2];H[i>>2]=h;H[(h?h:d+152|0)>>2]=f;zb[H[a+8>>2]](a,c);c=H[d+148>>2];e:{if(c){while(1){a=H[c+8>>2];if(H[a+16>>2]==1869968492){break e}c=H[c+4>>2];if(c){continue}break}}a=0}H[d+156>>2]=a;a=H[b>>2]}f:{if(!(F[a|0]&1)){break f}d=H[b+8>>2];if(!d){break f}c=H[b+16>>2];if(c){while(1){a=H[c+4>>2];Gj(d,H[c+8>>2],b);zb[H[d+8>>2]](d,c);c=a;if(c){continue}break}}H[b+16>>2]=0;H[b+20>>2]=0}a=H[e+28>>2];if(a){zb[a|0](b)}zb[H[g+8>>2]](g,b);return}c=c+4|0;if(d>>>0>c>>>0){continue}break}}}function YF(a,b,c){var d=0,e=0;a:{b:{c:{d:{e:{switch(a-17|0){default:if((a|0)==263){break a}if((a|0)==292){break d}case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:Qi(a,b);return;case 13:break b;case 12:break c;case 0:break e}}a=H[b+24>>2];f:{if(a){a=a-1|0;if(a>>>0>=K[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);d=+z();break f}d=M[H[b+36>>2]+(a<<3)>>3];break f}F[b+20|0]=1;a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);d=+z()}g:{if(P(d)<2147483648){a=~~d;break g}a=-2147483648}if((a|0)<0){F[b+20|0]=1;a=0}H[c+16>>2]=a;break a}a=H[b+24>>2];h:{if(a){a=a-1|0;if(a>>>0>=K[b+32>>2]){a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);d=+z();break h}d=M[H[b+36>>2]+(a<<3)>>3];break h}F[b+20|0]=1;a=H[40909];e=H[40908];H[196248]=e;H[196249]=a;x(0,e|0);x(1,a|0);d=+z()}i:{if(P(d)<2147483648){a=~~d;break i}a=-2147483648}if((a|0)<0){F[b+20|0]=1;a=0}H[c+20>>2]=a;break a}kl(b+20|0,b);return}d=jl(b);a=H[b+24>>2];if(a>>>0>2]){H[b+24>>2]=a+1;M[H[b+36>>2]+(a<<3)>>3]=d;return}F[b+20|0]=1;a=H[40909];H[196248]=H[40908];H[196249]=a;M[98124]=d;return}H[b+24>>2]=0}function DA(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=xb-16|0;xb=i;H[i+12>>2]=0;a:{if(!a){d=33;break a}d=6;if(!b|!c){break a}d=0;if((b|0)==(c|0)){break a}f=H[c+8>>2];h=f>>31|1;e=H[b+8>>2];j=e>>31|1;if(!H[b+12>>2]){a=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=a;a=H[b+20>>2];H[c+16>>2]=H[b+16>>2];H[c+20>>2]=a;a=H[b+12>>2];H[c+8>>2]=H[b+8>>2];H[c+12>>2]=a;if((h|0)==(j|0)){break a}H[c+8>>2]=0-H[c+8>>2];break a}d=e>>31;e=(d^e)-d|0;g=N(e,H[b>>2]);a=H[a>>2];d=H[c+12>>2];b:{c:{if(d){k=f>>31;f=N(H[c>>2],(f^k)-k|0);if((f|0)==(g|0)){break b}d=HA(a,f,g,d,i+12|0);break c}d=mq(a,g,i+12|0)}H[c+12>>2]=d}d:{if(H[i+12>>2]){break d}a=H[b+12>>2];H[c+8>>2]=H[b+8>>2];H[c+12>>2]=a;a=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=a;a=H[b+20>>2];H[c+16>>2]=H[b+16>>2];H[c+20>>2]=a;H[c+12>>2]=d;if((h|0)==(j|0)){Ob(d,H[b+12>>2],g);break d}a=H[c>>2];if(!a){break d}g=0;c=0-e|0;f=a-1|0;d=N(f,e)+d|0;b=H[b+12>>2];h=a&3;if(h){while(1){a=a-1|0;d=Ob(d,b,e)+c|0;b=b+e|0;g=g+1|0;if((h|0)!=(g|0)){continue}break}}if(f>>>0<3){break d}while(1){f=b+e|0;h=f+e|0;g=h+e|0;d=Ob(Ob(Ob(Ob(d,b,e)+c|0,f,e)+c|0,h,e)+c|0,g,e)+c|0;b=e+g|0;a=a-4|0;if(a){continue}break}}d=H[i+12>>2]}xb=i+16|0;return d}function uq(a,b,c){var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;d=H[a+188>>2];if(d){Kb(d)}d=Md(a,H[a+180>>2],4,282355);H[a+188>>2]=d;a:{if(!d){b=-1;break a}b:{c:{d:{if(J[a+88>>1]!=1){e=N(c,12)+14|0;g=zb[H[a+648>>2]](H[a+628>>2])|0;if(c){while(1){d=J[b+2>>1];if(d>>>0<=13){d=H[(d<<2)+290752>>2]}else{d=0}if(!d){c=H[a+628>>2];a=H[a>>2];H[f+4>>2]=J[b+2>>1];H[f>>2]=a;Pb(c,291376,282611,f);b=-1;break a}d=N(d,H[b+4>>2]);e=(d>>>0>4?d:0)+e|0;b=b+12|0;c=c-1|0;if(c&65535){continue}break}}e=g-e|0;e=J[a+138>>1]==2?(e>>>0)/J[a+98>>1]|0:e;d=H[a+188>>2];if(!H[a+180>>2]){break d}c=0;while(1){b=c;H[d+(b<<2)>>2]=e;c=b+1|0;if(c>>>0>2]){continue}break}break c}if(I[a+13|0]&4){c=pg(a);if(!H[a+180>>2]){break b}d=H[a+188>>2];b=0;while(1){H[d+(b<<2)>>2]=c;b=b+1|0;if(b>>>0>2]){continue}break}break b}b=Ve(a);if(!H[a+180>>2]){break b}c=N(b,K[a+60>>2]/K[a+176>>2]|0);d=H[a+188>>2];b=0;while(1){H[d+(b<<2)>>2]=c;b=b+1|0;if(b>>>0>2]){continue}break}break b}e=H[d-4>>2];b=-1}b=b<<2;c=H[b+H[a+184>>2]>>2];if(c+e>>>0<=g>>>0){break b}H[b+d>>2]=g-c}c=H[a+40>>2];H[a+40>>2]=c|16777216;b=1;if(c&131072){break a}H[a+100>>2]=H[a+60>>2]}xb=f+16|0;return b}function cs(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;j=H[40908];h=H[b+4>>2];while(1){a:{k=f>>>0>=h>>>0;if(k){break a}g=H[c>>2];d=H[a>>2];if(g>>>0>d>>>0|d>>>0>=g+H[c+4>>2]>>>0){break a}e=d+1|0;H[a>>2]=e;d=I[d|0];i=d&63;b:{if(d&128){g=H[b+8>>2];e=0;while(1){c:{if(K[b+4>>2]<=f>>>0){H[196248]=j;d=784992;break c}d=g+(f<<2)|0}H[d>>2]=0;f=f+1|0;d=e+1|0;if(e>>>0>=i>>>0){break b}e=d;if(f>>>0>>0){continue}break}break b}d:{if(d&64){g=0;while(1){d=H[c>>2];if(d>>>0>e>>>0){break d}d=d+H[c+4>>2]|0;if(d>>>0>>0|d-e>>>0<2){break d}d=I[e|0]|I[e+1|0]<<8;d=(d<<8|d>>>8)<<16>>16;e:{if(K[b+4>>2]<=f>>>0){H[196248]=j;e=H[a>>2];l=784992;break e}l=H[b+8>>2]+(f<<2)|0}H[l>>2]=d;e=e+2|0;H[a>>2]=e;f=f+1|0;d=g+1|0;if(g>>>0>=i>>>0){break b}g=d;if(f>>>0>>0){continue}break}break b}g=0;d=H[c>>2];if(e>>>0>>0){break d}while(1){if(H[c+4>>2]+d>>>0<=e>>>0){break d}H[a>>2]=e+1;e=F[e|0];f:{if(K[b+4>>2]<=f>>>0){H[196248]=j;d=784992;break f}d=H[b+8>>2]+(f<<2)|0}H[d>>2]=e;d=g+1|0;f=f+1|0;if(h>>>0<=f>>>0|g>>>0>=i>>>0){break b}g=d;d=H[c>>2];e=H[a>>2];if(d>>>0<=e>>>0){continue}break}}k=0;break a}if(d>>>0>i>>>0){continue}}break}return k|0}function o7(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;a:{e=H[H[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0)){break a}yj(b,a);g=a-e|0;if((e|0)<5){a=e<<1;while(1){b:{switch(e|0){default:c=a+b|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0;case 3:c=a+b|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0;case 2:c=a+b|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0;case 1:c=a+b|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0;break;case 0:break b}}g=g-e|0;if((g|0)>0){continue}break}break a}a=e-4|0;h=e&3;j=e-5>>>0>2;f=e<<1;while(1){c:{d:{e:{f:{g:{h:{switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}}d=0;c=a;if(h){while(1){i=b+f|0;G[i>>1]=J[i>>1]+J[b>>1];c=c-1|0;b=b+2|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}if(!j){break g}while(1){d=b+f|0;G[d>>1]=J[d>>1]+J[b>>1];d=(b+2|0)+f|0;G[d>>1]=J[d>>1]+J[b+2>>1];d=(b+4|0)+f|0;G[d>>1]=J[d>>1]+J[b+4>>1];d=(b+6|0)+f|0;G[d>>1]=J[d>>1]+J[b+6>>1];b=b+8|0;d=(c|0)>4;c=c-4|0;if(d){continue}break}}c=b+f|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0}c=b+f|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0}c=b+f|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0}c=b+f|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0}g=g-e|0;if((g|0)>0){continue}break}}}function OP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;j=xb-16|0;xb=j;i=c;while(1){a:{if((d|0)==(i|0)){i=d;break a}if(!I[i|0]){break a}i=i+1|0;continue}break}H[h>>2]=f;H[e>>2]=c;while(1){b:{c:{d:{if((c|0)==(d|0)|(f|0)==(g|0)){break d}l=H[b+4>>2];H[j+8>>2]=H[b>>2];H[j+12>>2]=l;k=xb-16|0;xb=k;H[k+12>>2]=H[a+8>>2];m=Kf(k+8|0,k+12|0);H[197455]=0;l=Yw(f,e,i-c|0,g-f>>2,b);n=H[197455];H[197455]=0;e:{if((n|0)!=1){me(m);xb=k+16|0;break e}a=$()|0;_()|0;me(m);ea(a|0);X()}f:{g:{h:{i:{if((l|0)==-1){while(1){j:{H[h>>2]=f;if(H[e>>2]==(c|0)){break j}g=1;k:{l:{m:{b=cw(f,c,i-c|0,j+8|0,H[a+8>>2]);switch(b+2|0){case 2:break k;case 1:break m;case 0:break g;default:break l}}H[e>>2]=c;break i}g=b}c=c+g|0;f=H[h>>2]+4|0;continue}break}H[e>>2]=c;break d}f=H[h>>2]+(l<<2)|0;H[h>>2]=f;if((f|0)==(g|0)){break f}c=H[e>>2];if((d|0)==(i|0)){i=d;continue}if(!cw(f,c,1,b,H[a+8>>2])){break h}}a=2;break c}H[h>>2]=H[h>>2]+4;c=H[e>>2]+1|0;H[e>>2]=c;i=c;while(1){if((d|0)==(i|0)){i=d;break b}if(!I[i|0]){break b}i=i+1|0;continue}}H[e>>2]=c;a=1;break c}c=H[e>>2]}a=(c|0)!=(d|0)}xb=j+16|0;return a|0}f=H[h>>2];continue}}function xf(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!b){break a}b:{c:{h=a+236|0;e=H[h>>2];if(!e){break c}f=h;d=e;while(1){g=K[d+16>>2]>>0;f=g?f:d;d=H[(g<<2)+d>>2];if(d){continue}break}d:{if((f|0)==(h|0)|K[f+16>>2]>c>>>0){break d}d=H[f+20>>2];if(d){zb[H[H[d>>2]+4>>2]](d);e=H[h>>2]}if(!e){break c}f=h;d=e;while(1){g=K[d+16>>2]>>0;f=g?f:d;d=H[(g<<2)+d>>2];if(d){continue}break}if((f|0)==(h|0)|K[f+16>>2]>c>>>0){break d}d=H[f+4>>2];e:{if(!d){g=H[f+8>>2];if(H[g>>2]==(f|0)){break e}d=f+8|0;while(1){g=H[d>>2];d=g+8|0;i=g;g=H[g+8>>2];if((i|0)!=H[g>>2]){continue}break}break e}while(1){g=d;d=H[d>>2];if(d){continue}break}}if(H[a+232>>2]==(f|0)){H[a+232>>2]=g}H[a+240>>2]=H[a+240>>2]-1;pj(e,f);Kb(f);e=H[a+236>>2]}if(!e){break c}f=a+236|0;f:{while(1){g:{h=H[e+16>>2];h:{if(h>>>0>c>>>0){d=H[e>>2];if(d){break h}h=e;break b}if(c>>>0<=h>>>0){break f}f=e+4|0;d=H[e+4>>2];if(!d){break g}e=f}f=e;e=d;continue}break}h=e;e=f;break b}h=e;e=f;break b}e=h}if(H[e>>2]){break a}d=Qb(24);H[d+16>>2]=c;H[d+8>>2]=h;H[d>>2]=0;H[d+4>>2]=0;H[d+20>>2]=b;H[e>>2]=d;b=H[H[a+232>>2]>>2];if(b){H[a+232>>2]=b;d=H[e>>2]}Og(H[a+236>>2],d);H[a+240>>2]=H[a+240>>2]+1}}function Gaa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=xb-16|0;xb=j;n=e&3;o=e>>>2|0;p=h<<2;while(1){e=o;while(1){c=i;h=I[c+4|0];i=I[c+5|0];k=j+12|0;l=j+8|0;m=j+4|0;qc(H[a+68>>2],I[c|0],h,i,k,l,m);d=b;H[d>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[c+1|0],h,i,k,l,m);H[d+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[c+2|0],h,i,k,l,m);H[d+8>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[c+3|0],h,i,k,l,m);H[d+12>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;i=c+6|0;b=d+16|0;e=e-1|0;if(e){continue}break}a:{if(!n){i=c;break a}e=I[c+11|0];h=I[c+10|0];b:{switch(n-1|0){case 2:qc(H[a+68>>2],I[c+8|0],h,e,j+12|0,j+8|0,j+4|0);H[d+24>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 1:qc(H[a+68>>2],I[c+7|0],h,e,j+12|0,j+8|0,j+4|0);H[d+20>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;case 0:qc(H[a+68>>2],I[i|0],h,e,j+12|0,j+8|0,j+4|0);H[b>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;break;default:break b}}b=(n<<2)+b|0}i=(g+i|0)+6|0;b=b+p|0;f=f-1|0;if(f){continue}break}xb=j+16|0}function Nla(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=O(0);h=fs(b+48|0);if(c){b=0;while(1){i=0;j=H[d>>2];k=j;a:{b:{l=H[h+4>>2];if(l>>>0>j>>>0){break b}c:{k=H[h+8>>2];if(k){m=H[h+12>>2];if((k|0)==(l|0)){k=l-1|0;if(!l){if(j>>>0>=m>>>0|k>>>0>=m>>>0){break a}while(1)continue}if(j>>>0>>0){break b}break a}if(j>>>0>>0){break c}break a}i=H[h+16>>2];break a}i=H[h+20>>2];m=H[(i?i:163632)+12>>2];i=H[h>>2];m=((i|0)<0?163632:m+(i<<2)|0)+(l-i<<1)|0;i=j-l|0;j=k+(l^-1)|0;i=m+((i>>>0>>0?i:j)<<1)|0;i=I[i|0]|I[i+1|0]<<8;i=(i<<8|i>>>8)&65535;break a}i=H[h+20>>2];m=H[(i?i:163632)+12>>2];i=H[h>>2]-1|0;i=i>>>0>k>>>0?k:i;i=(i|0)<0?163632:m+(i<<2)|0;i=I[i|0]|I[i+1|0]<<8;k=i<<8|i>>>8;i=k&65535;if(!H[a+68>>2]|j>>>0>=l>>>0){break a}i=H[h+24>>2];i=i?i:163632;l=H[i+16>>2];if(l){n=O(O(T(O(iG(l>>>0<20?163632:H[i+12>>2],j,a)+O(.5))))+O((k&65535)>>>0));if(n=O(0)){i=~~n>>>0;break a}i=0;break a}i=qG(a,j,1)}i=0-(i<<16)|0;j=gma(i>>16,i>>31,H[a+48>>2],H[a+52>>2])+32768|0;i=yb;i=j>>>0<32768?i+1|0:i;H[f>>2]=(i&65535)<<16|j>>>16;f=f+g|0;d=d+e|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}}function RV(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;e=b+1|0;h=Qb((e|0)!=(e&1073741823)?-1:e<<2);if((b|0)>0){e=0;while(1){d=a+e|0;g=I[d|0];a:{if(!(g&128)){H[(i<<2)+h>>2]=g;e=e+1|0;break a}if(!(g&32)){f=(i<<2)+h|0;d=e+1|0;if((d|0)<(b|0)){d=g<<6&1984|I[a+d|0]&63}else{d=0}H[f>>2]=d;e=e+2|0;break a}if(!(g&16)){j=(i<<2)+h|0;f=e+2|0;if((f|0)<(b|0)){d=I[a+f|0]&63|(g<<12&61440|(I[d+1|0]&63)<<6)}else{d=0}H[j>>2]=d;e=e+3|0;break a}if(!(g&15)){j=(i<<2)+h|0;f=e+3|0;if((f|0)<(b|0)){d=I[a+f|0]&63|(g<<18&1835008|(I[d+1|0]&63)<<12|(I[d+2|0]&63)<<6)}else{d=0}H[j>>2]=d;e=e+4|0;break a}if(!(g&8)){j=(i<<2)+h|0;f=e+3|0;if((f|0)<(b|0)){d=I[a+f|0]&63|(g<<18&1835008|(I[d+1|0]&63)<<12|(I[d+2|0]&63)<<6)}else{d=0}H[j>>2]=d;e=e+4|0;break a}if(!(g&4)){j=(i<<2)+h|0;f=e+4|0;if((f|0)<(b|0)){d=I[a+f|0]&63|(g<<24&50331648|(I[d+1|0]&63)<<18|(I[d+2|0]&63)<<12|(I[d+3|0]&63)<<6)}else{d=0}H[j>>2]=d;e=e+5|0;break a}f=(i<<2)+h|0;e=e+5|0;if((e|0)<(b|0)){d=I[a+e|0]&63|(g<<30&1073741824|(I[d+1|0]&63)<<24|(I[d+2|0]&63)<<18|(I[d+3|0]&63)<<12|(I[d+4|0]&63)<<6)}else{d=0}H[f>>2]=d}i=i+1|0;if((b|0)>(e|0)){continue}break}}H[(i<<2)+h>>2]=0;zv(c,h);Kb(h)}function Pla(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=O(0);h=mG(b+20|0);if(c){b=0;while(1){i=0;j=H[d>>2];k=j;a:{b:{l=H[h+4>>2];if(l>>>0>j>>>0){break b}c:{k=H[h+8>>2];if(k){m=H[h+12>>2];if((k|0)==(l|0)){k=l-1|0;if(!l){if(j>>>0>=m>>>0|k>>>0>=m>>>0){break a}while(1)continue}if(j>>>0>>0){break b}break a}if(j>>>0>>0){break c}break a}i=H[h+16>>2];break a}i=H[h+20>>2];m=H[(i?i:163632)+12>>2];i=H[h>>2];m=((i|0)<0?163632:m+(i<<2)|0)+(l-i<<1)|0;i=j-l|0;j=k+(l^-1)|0;i=m+((i>>>0>>0?i:j)<<1)|0;i=I[i|0]|I[i+1|0]<<8;i=(i<<8|i>>>8)&65535;break a}i=H[h+20>>2];m=H[(i?i:163632)+12>>2];i=H[h>>2]-1|0;i=i>>>0>k>>>0?k:i;i=(i|0)<0?163632:m+(i<<2)|0;i=I[i|0]|I[i+1|0]<<8;k=i<<8|i>>>8;i=k&65535;if(!H[a+68>>2]|j>>>0>=l>>>0){break a}i=H[h+24>>2];i=i?i:163632;l=H[i+16>>2];if(l){n=O(O(T(O(iG(l>>>0<20?163632:H[i+12>>2],j,a)+O(.5))))+O((k&65535)>>>0));if(n=O(0)){i=~~n>>>0;break a}i=0;break a}i=qG(a,j,0)}i=i<<16;j=i>>31;j=gma(i>>16,j,H[a+40>>2],H[a+44>>2])+32768|0;i=yb;i=j>>>0<32768?i+1|0:i;H[f>>2]=(i&65535)<<16|j>>>16;f=f+g|0;d=d+e|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}}function $D(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;f=H[a+124>>2];d=f;c=f>>>2|0;f=H[a+120>>2];j=f>>>0>2]?d:c;d=H[a+108>>2];c=(d-H[a+44>>2]|0)+262|0;n=c>>>0>d>>>0?0:c;c=H[a+144>>2];i=H[a+116>>2];o=c>>>0>>0?c:i;k=H[a+56>>2];h=d+k|0;p=h+258|0;d=f+h|0;l=I[d|0];m=I[d-1|0];q=H[a+52>>2];r=H[a+64>>2];while(1){a:{e=b+k|0;d=f+e|0;b:{if(I[d|0]!=(l|0)|I[d-1|0]!=(m|0)|I[e|0]!=I[h|0]){break b}d=2;if(I[e+1|0]!=I[h+1|0]){break b}c:{d:{e:{f:{g:{h:{i:{while(1){c=d+h|0;if(I[c+1|0]!=I[e+3|0]){break d}if(I[c+2|0]!=I[e+4|0]){break e}if(I[c+3|0]!=I[e+5|0]){break f}if(I[c+4|0]!=I[e+6|0]){break g}if(I[c+5|0]!=I[e+7|0]){break h}if(I[c+6|0]!=I[e+8|0]){break i}if(I[c+7|0]==I[e+9|0]){c=d+8|0;g=c+h|0;if(I[g|0]!=I[e+10|0]){break c}e=e+8|0;s=d>>>0<250;d=c;if(s){continue}break c}break}g=c+7|0;break c}g=c+6|0;break c}g=c+5|0;break c}g=c+4|0;break c}g=c+3|0;break c}g=c+2|0;break c}g=c+1|0}c=g-p|0;d=c+258|0;if((d|0)<=(f|0)){break b}H[a+112>>2]=b;if((d|0)>=(o|0)){f=d;break a}l=I[d+h|0];m=I[(c+h|0)+257|0];f=d}b=J[((b&q)<<1)+r>>1];if(n>>>0>=b>>>0){break a}j=j-1|0;if(j){continue}}break}return f>>>0>>0?f:i}function s7(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;a:{e=H[H[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0)){break a}g=a-e|0;if((e|0)<5){a=e<<1;while(1){b:{switch(e|0){default:c=a+b|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0;case 3:c=a+b|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0;case 2:c=a+b|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0;case 1:c=a+b|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0;break;case 0:break b}}g=g-e|0;if((g|0)>0){continue}break}break a}a=e-4|0;h=e&3;j=e-5>>>0>2;f=e<<1;while(1){c:{d:{e:{f:{g:{h:{switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}}d=0;c=a;if(h){while(1){i=b+f|0;G[i>>1]=J[i>>1]+J[b>>1];c=c-1|0;b=b+2|0;d=d+1|0;if((h|0)!=(d|0)){continue}break}}if(!j){break g}while(1){d=b+f|0;G[d>>1]=J[d>>1]+J[b>>1];d=(b+2|0)+f|0;G[d>>1]=J[d>>1]+J[b+2>>1];d=(b+4|0)+f|0;G[d>>1]=J[d>>1]+J[b+4>>1];d=(b+6|0)+f|0;G[d>>1]=J[d>>1]+J[b+6>>1];b=b+8|0;d=(c|0)>4;c=c-4|0;if(d){continue}break}}c=b+f|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0}c=b+f|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0}c=b+f|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0}c=b+f|0;G[c>>1]=J[c>>1]+J[b>>1];b=b+2|0}g=g-e|0;if((g|0)>0){continue}break}}}function bg(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;g=xb-16|0;xb=g;a:{if((c|0)<=0){break a}i=H[a+4>>2];while(1){h=(k<<3)+b|0;b:{if(!H[h>>2]){Eg(i);if(H[i+12>>2]>1){break a}d=H[i>>2];f=d-1|0;l=H[i+8>>2];c:{while(1){j=3;if(d>>>0>=l>>>0){e=d;break c}e=d+1|0;H[i>>2]=e;m=I[d|0];d=e;d:{switch(m-10|0){case 16:break c;case 0:case 3:break d;default:continue}}break}j=2}H[i+12>>2]=j;H[g+8>>2]=f;break b}f=ik(i);H[g+8>>2]=f;if(!f){break a}e=H[i>>2]}d=e-f|0;e=d-1|0;e:{f:{switch(H[h>>2]){case 0:case 1:d=mq(H[a>>2],d,g+4|0);H[h+4>>2]=d;if(H[g+4>>2]){break e}Ob(d,f,e);F[e+H[h+4>>2]|0]=0;break e;case 2:n=h,o=fg(g+8|0,e+f|0,0),H[n+4>>2]=o;break e;case 3:H[g+12>>2]=f;l=e+f|0;j=gg(g+12|0,l,10);e=0;d=H[g+12>>2];g:{if((f|0)==(d|0)){break g}if(!(I[d|0]!=35|d>>>0>=l>>>0)){f=d+1|0;H[g+12>>2]=f;j=gg(g+12|0,l,j);d=H[g+12>>2];if((f|0)==(d|0)){break g}}H[g+8>>2]=d;e=j}H[h+4>>2]=e;break e;case 4:if((e|0)==4){e=gc(f,23711,4)}else{e=1}F[h+4|0]=!e;break e;case 5:break f;default:break e}}d=H[a+12>>2];if(d){n=h,o=zb[d|0](f,e,H[a+16>>2])|0,H[n+4>>2]=o;break e}H[h+4>>2]=0}k=k+1|0;if((k|0)!=(c|0)){continue}break}k=c}xb=g+16|0;return k}function bea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;q=xb-144|0;xb=q;n=H[a+332>>2];b=H[b+84>>2];a=q;while(1){g=H[b+64>>2];k=G[c+32>>1];i=N(G[c>>1],H[b>>2])<<13|1024;j=N(H[b+128>>2],G[c+64>>1]);o=i+N(j,-11586)>>11;f=N(H[b+32>>2],G[c+16>>1]);h=N(H[b+96>>2],G[c+48>>1]);m=N(H[b+160>>2],G[c+80>>1]);p=f-(h+m|0)<<2;H[a+96>>2]=o-p;H[a+24>>2]=o+p;g=N(N(g,k),10033);k=i+N(j,5793)|0;j=g+k|0;i=f+h<<13;f=N(f+m|0,2998);i=i+f|0;H[a+120>>2]=j-i>>11;H[a>>2]=j+i>>11;g=k-g|0;f=f+(m-h<<13)|0;H[a+72>>2]=g-f>>11;H[a+48>>2]=f+g>>11;a=a+4|0;b=b+4|0;c=c+2|0;l=l+1|0;if((l|0)!=6){continue}break}a=n+128|0;l=0;c=q;while(1){f=H[c+20>>2];h=H[c+4>>2];m=N(f+h|0,2998);b=H[(l<<2)+d>>2]+e|0;n=H[c+12>>2];g=m+(n+h<<13)|0;j=(H[c>>2]<<13)+131072|0;k=H[c+16>>2];i=j+N(k,5793)|0;o=N(H[c+8>>2],10033);p=i+o|0;F[b|0]=I[a+(g+p>>>18&1023)|0];F[b+5|0]=I[a+(p-g>>>18&1023)|0];h=h-(f+n|0)<<13;g=j+N(k,-11586)|0;F[b+1|0]=I[a+(h+g>>>18&1023)|0];F[b+4|0]=I[a+(g-h>>>18&1023)|0];f=m+(f-n<<13)|0;h=i-o|0;F[b+2|0]=I[a+(f+h>>>18&1023)|0];F[b+3|0]=I[a+(h-f>>>18&1023)|0];c=c+24|0;l=l+1|0;if((l|0)!=6){continue}break}xb=q+144|0}function Tr(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;h=xb-16|0;xb=h;d=I[a+2|0]|I[a+3|0]<<8;if(d){c=((d<<8|d>>>8)&65535)+a|0}else{c=163632}d=H[b+100>>2];if((Gc(c,H[H[d+80>>2]+N(H[d+64>>2],20)>>2])|0)!=-1){g=163632;d=163632;f=I[a+4|0]|I[a+5|0]<<8;if(f){d=((f<<8|f>>>8)&65535)+a|0}f=I[a+6|0]|I[a+7|0]<<8;if(f){g=((f<<8|f>>>8)&65535)+a|0}f=163632;e=163632;c=I[a+8|0]|I[a+9|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}c=H[b+100>>2];c=Kn(g,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);i=I[a+10|0]|I[a+11|0]<<8;c=c>>>0<((i<<8|i>>>8)&65535)>>>0?((c<<1)+a|0)+12|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){f=((c<<8|c>>>8)&65535)+a|0}H[h+12>>2]=e;H[h+8>>2]=g;H[h+4>>2]=d;H[h>>2]=716;a=I[f|0]|I[f+1|0]<<8;if(a){g=(a<<8|a>>>8)&65535;a=f+2|0;while(1){d=I[a|0]|I[a+1|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+f|0}else{d=163632}e=I[d|0]|I[d+1|0]<<8;j=(e<<8|e>>>8)&65535;k=(j<<1)+d|0;e=k+2|0;c=I[e|0]|I[e+1|0]<<8;l=(c<<8|c>>>8)&65535;e=(c?l<<1:2)+e|0;c=I[e|0]|I[e+1|0]<<8;m=(c<<8|c>>>8)&65535;c=(m<<1)+e|0;i=I[c+2|0]|I[c+3|0]<<8;d=Jn(b,j,d+2|0,l,k+4|0,m,e+2|0,(i<<8|i>>>8)&65535,c+4|0,h);if(!d){a=a+2|0;g=g-1|0;if(g){continue}}break}}else{d=0}g=d}xb=h+16|0;return g}function on(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((b|c)<0){break a}f=H[a+4>>2];if(!f|H[a+16>>2]<=(b|0)|H[a+20>>2]<=(c|0)){break a}h=H[a+44>>2];b:{if(h){c:{if(!f){h=0;break c}i=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);if(!(!I[a+445|0]|(i|0)!=H[a+440>>2])){h=I[a+444|0];break c}F[a+445|0]=1;H[a+440>>2]=i;g=H[a+48>>2];n=g?g:h;d:{if((n|0)<=0){h=0;break d}l=f+40|0;o=i&255;p=i>>>16&255;i=i>>>8&255;m=2e5;h=0;g=0;while(1){f=I[(k|1)+l|0]-i|0;j=N(f,f);f=I[k+l|0]-o|0;j=j+N(f,f)|0;f=I[(k|2)+l|0]-p|0;f=j+N(f,f)|0;if(!f){h=g;break d}j=f;f=(f|0)<(m|0);m=f?j:m;h=f?g:h;k=k+4|0;g=g+1|0;if((n|0)!=(g|0)){continue}break}}F[a+444|0]=h}g=J[a+26>>1];if((g|0)==8){F[H[a+56>>2]+(N(H[a+52>>2],c)+b|0)|0]=h;break b}f=(H[a+56>>2]+N(H[a+52>>2],c)|0)+(N(b,g)>>3)|0;e:{switch(g-1|0){case 3:g=4-((b|0)%2<<2)&252;F[f|0]=I[f|0]&(15<>2]+N(H[a+52>>2],c)|0)+N(b,3)|0;F[g|0]=I[d|0];F[g+1|0]=I[d+1|0];F[g+2|0]=I[d+2|0]}if(!e){break a}te(a,b,c,I[d+3|0])}}function EE(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=xb-48|0;xb=e;g=H[a+4>>2];F[b+557|0]=0;H[b+560>>2]=a;if(!(!H[b+116>>2]|!H[b+120>>2])){i=Nb(b+188|0,0,364);H[b+528>>2]=3932;H[b+520>>2]=-1;H[b+392>>2]=1;H[b+588>>2]=d;H[b+584>>2]=c;H[b+552>>2]=b;H[b+384>>2]=2596864;H[b+388>>2]=7;a:{if(!I[a+32|0]){d=8192;c=97;break a}d=20480;c=H[a+1556>>2]+1|0}h=H[a>>2];f=H[h>>2];j=H[b+176>>2];H[e+12>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+24>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[e+32>>2]=i;H[e+28>>2]=d;H[e>>2]=h;H[e+36>>2]=j;d=Ub(f,4,0,c,0,e+44|0);H[e+16>>2]=d;b:{c:{if(!H[e+44>>2]){H[e+20>>2]=d;H[e+24>>2]=c;break c}if(d){zb[H[f+8>>2]](f,d)}f=0;H[e+16>>2]=0;if(H[e+44>>2]){break b}}f=bc(g,H[b+116>>2]+H[a+12>>2]|0);if(f){break b}f=Jc(g,H[b+120>>2]);if(f){break b}f=xE(e,H[g+32>>2],H[g+36>>2]);wc(g);if(f){break b}F[b+188|0]=I[b+188|0]&254;a=H[b+532>>2];d:{e:{if((a|0)<0){a=0-a|0;break e}if(a){break d}a=987654321}H[b+532>>2]=a}if(K[b+388>>2]>=1001){H[b+388>>2]=7}f=0;if(K[b+392>>2]<1001){break b}H[b+392>>2]=1}H[b+600>>2]=0;H[b+596>>2]=H[b+592>>2];a=H[H[e>>2]>>2];b=H[e+16>>2];if(b){zb[H[a+8>>2]](a,b)}}xb=e+48|0;return f|0}function Zl(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0;m=xb-16|0;xb=m;H[m+12>>2]=a;a:{b:{if((a|0)==(f|0)){if(!I[b|0]){break b}a=0;F[b|0]=0;b=H[e>>2];H[e>>2]=b+1;F[b|0]=46;if(I[h+11|0]>>>7|0){b=H[h+4>>2]}else{b=I[h+11|0]}if(!b){break a}b=H[j>>2];if((b-i|0)>159){break a}c=H[k>>2];H[j>>2]=b+4;H[b>>2]=c;break a}if(I[h+11|0]>>>7|0){f=H[h+4>>2]}else{f=I[h+11|0]}if(!(!f|(a|0)!=(g|0))){if(!I[b|0]){break b}a=0;b=H[j>>2];if((b-i|0)>159){break a}a=H[k>>2];H[j>>2]=b+4;H[b>>2]=a;a=0;H[k>>2]=0;break a}a=-1;f=Wo(l,l+128|0,m+12|0)-l|0;if((f|0)>124){break a}g=I[(f>>2)+773072|0];c:{d:{a=f&-5;if((a|0)!=88){if((a|0)!=96){break d}b=H[e>>2];if((b|0)!=(d|0)){a=-1;if((I[b-1|0]&95)!=(I[c|0]&127)){break a}}H[e>>2]=b+1;F[b|0]=g;a=0;break a}F[c|0]=80;break c}a=F[c|0];if((a|0)!=(g&95)){break c}F[c|0]=a|128;if(!I[b|0]){break c}F[b|0]=0;if(I[h+11|0]>>>7|0){a=H[h+4>>2]}else{a=I[h+11|0]}if(!a){break c}a=H[j>>2];if((a-i|0)>159){break c}b=H[k>>2];H[j>>2]=a+4;H[a>>2]=b}a=H[e>>2];H[e>>2]=a+1;F[a|0]=g;a=0;if((f|0)>84){break a}H[k>>2]=H[k>>2]+1;break a}a=-1}xb=m+16|0;return a|0}function Sm(a){var b=0;b=H[a>>2];if(b){if(F[b+11|0]<0){Kb(H[b>>2])}Kb(b);H[a>>2]=0}b=H[a+4>>2];if(b){if(F[b+11|0]<0){Kb(H[b>>2])}Kb(b);H[a+4>>2]=0}b=H[a+8>>2];if(b){if(F[b+11|0]<0){Kb(H[b>>2])}Kb(b);H[a+8>>2]=0}b=H[a+12>>2];if(b){if(F[b+11|0]<0){Kb(H[b>>2])}Kb(b);H[a+12>>2]=0}b=H[a+16>>2];if(b){Kb(b);H[a+16>>2]=0}b=H[a+20>>2];if(b){Kb(b);H[a+20>>2]=0}b=H[a+24>>2];if(b){Kb(b);H[a+24>>2]=0}b=H[a+28>>2];if(b){Kb(b);H[a+28>>2]=0}b=H[a+32>>2];if(b){Kb(b);H[a+32>>2]=0}b=H[a+36>>2];if(b){Kb(b);H[a+36>>2]=0}b=H[a+40>>2];if(b){Kb(b);H[a+40>>2]=0}b=H[a+44>>2];if(b){Kb(b);H[a+44>>2]=0}b=H[a+48>>2];if(b){Kb(b);H[a+48>>2]=0}b=H[a+52>>2];if(b){Kb(b);H[a+52>>2]=0}b=H[a+56>>2];if(b){Kb(b);H[a+56>>2]=0}b=H[a+60>>2];if(b){Kb(b);H[a+60>>2]=0}b=H[a+64>>2];if(b){Kb(b);H[a+64>>2]=0}b=H[a+68>>2];if(b){Kb(b);H[a+68>>2]=0}b=H[a+72>>2];if(b){Kb(b);H[a+72>>2]=0}b=H[a+76>>2];if(b){Kb(b);H[a+76>>2]=0}b=H[a+80>>2];if(b){Kb(b);H[a+80>>2]=0}b=H[a+84>>2];if(b){Kb(b);H[a+84>>2]=0}b=H[a+88>>2];if(b){Kb(b);H[a+88>>2]=0}b=H[a+92>>2];if(b){Kb(b);H[a+92>>2]=0}b=H[a+96>>2];if(b){Kb(b);H[a+96>>2]=0}b=H[a+100>>2];if(b){Kb(b);H[a+100>>2]=0}}function QX(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=xb-32|0;xb=e;if((d|0)==5){f=H[a+4>>2];g=H[a>>2];if((f|0)!=(g|0)){while(1){if(F[f-5|0]<0){Kb(H[f-16>>2])}h=f-28|0;if(F[f-17|0]<0){Kb(H[h>>2])}f=h;if((g|0)!=(f|0)){continue}break}}H[a+4>>2]=g}a:{if(F[b+11|0]>=0){H[e+8>>2]=H[b+8>>2];f=H[b+4>>2];H[e>>2]=H[b>>2];H[e+4>>2]=f;break a}df(e,H[b>>2],H[b+4>>2])}b=e+12|0;b:{c:{d:{e:{if(F[c+11|0]>=0){f=H[c+4>>2];H[b>>2]=H[c>>2];H[b+4>>2]=f;H[b+8>>2]=H[c+8>>2];break e}f=H[c+4>>2];c=H[c>>2];H[197455]=0;ga(1647,b|0,c|0,f|0);c=H[197455];H[197455]=0;if((c|0)==1){break d}}H[e+24>>2]=d;c=H[a+4>>2];f:{if(c>>>0>2]){d=H[e+4>>2];H[c>>2]=H[e>>2];H[c+4>>2]=d;H[c+8>>2]=H[e+8>>2];H[e+8>>2]=0;H[e>>2]=0;H[e+4>>2]=0;H[c+20>>2]=H[b+8>>2];d=H[b+4>>2];H[c+12>>2]=H[b>>2];H[c+16>>2]=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[c+24>>2]=H[e+24>>2];H[a+4>>2]=c+28;break f}H[197455]=0;ba(2925,a|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){break c}if(F[e+23|0]>=0){break f}Kb(H[e+12>>2])}if(F[e+11|0]<0){Kb(H[e>>2])}xb=e+32|0;return}f=$()|0;_()|0;if(F[e+11|0]>=0){break b}Kb(H[e>>2]);ea(f|0);X()}f=$()|0;_()|0;Vb(e)}ea(f|0);X()}function Mba(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;e=a;while(1){d=H[(i<<2)+b>>2]+c|0;g=I[d+4|0];h=I[d+3|0];f=g+h|0;j=I[d+7|0];k=I[d|0];l=j+k|0;m=f+l|0;n=I[d+6|0];o=I[d+1|0];p=n+o|0;q=I[d+5|0];r=I[d+2|0];d=q+r|0;s=p+d|0;H[e+16>>2]=m-s;H[e>>2]=(m+s|0)-1024;m=p-d|0;d=l-f|0;f=N(m+d|0,181)>>8;H[e+24>>2]=d-f;H[e+8>>2]=d+f;d=h-g|0;g=r-q|0;h=d+g|0;l=o-n|0;d=k-j|0;j=l+d|0;f=N(h-j|0,98)>>8;h=f+(N(h,139)>>8)|0;g=N(g+l|0,181)>>8;k=d-g|0;H[e+20>>2]=h+k;H[e+12>>2]=k-h;d=d+g|0;f=f+(N(j,334)>>8)|0;H[e+28>>2]=d-f;H[e+4>>2]=d+f;e=e+32|0;i=i+1|0;if((i|0)!=8){continue}break}b=7;while(1){d=H[a+128>>2];i=H[a+96>>2];c=d+i|0;f=H[a+224>>2];g=H[a>>2];e=f+g|0;h=c+e|0;j=H[a+160>>2];k=H[a+64>>2];l=j+k|0;m=H[a+192>>2];n=H[a+32>>2];o=m+n|0;p=l+o|0;H[a+128>>2]=h-p;H[a>>2]=h+p;c=e-c|0;e=N(c+(o-l|0)|0,181)>>8;H[a+192>>2]=c-e;H[a+64>>2]=c+e;c=i-d|0;d=k-j|0;i=c+d|0;h=n-m|0;c=g-f|0;f=h+c|0;e=N(i-f|0,98)>>8;i=e+(N(i,139)>>8)|0;d=N(d+h|0,181)>>8;g=c-d|0;H[a+160>>2]=i+g;H[a+96>>2]=g-i;c=c+d|0;e=e+(N(f,334)>>8)|0;H[a+224>>2]=c-e;H[a+32>>2]=c+e;c=b;b=c-1|0;a=a+4|0;if(c){continue}break}}function _r(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=xb-48|0;xb=b;c=H[a>>2];a:{if(c){break a}g=a-4|0;while(1){c=H[g>>2];if(!c){c=163632;break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;F[b+40|0]=1;H[b+36>>2]=0;c=dd(c,1751474532);if(!(!c|!H[c>>2])){H[c>>2]=H[c>>2]+1}F[b+24|0]=0;H[b+32>>2]=c;e=H[c+12>>2];H[b+4>>2]=e;f=H[c+16>>2];H[b+8>>2]=e+f;H[b+28>>2]=0;if(f>>>0>67108862){d=1073741823}else{d=f<<6;d=d>>>0>16384?d:16384;d=d>>>0<1073741823?d:1073741823}H[b+12>>2]=d;H[b+20>>2]=0;H[b>>2]=0;b:{if(!e){Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;break b}c:{d:{if((f|0)<54){break d}H[b+12>>2]=d-54;if((I[e|0]|I[e+1|0]<<8)!=256){break d}d=I[e+12|0]|I[e+13|0]<<8|(I[e+14|0]<<16|I[e+15|0]<<24);Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if((d<<8&16711680|d<<24|(d>>>8&65280|d>>>24))!=1594834165){break c}if(H[c+4>>2]){H[c+4>>2]=0}break b}Wb(c);H[b+32>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0}Wb(c);c=163632}d=H[a>>2];c=c?c:163632;H[a>>2]=d?d:c;if(!d){break a}if(!(!c|(c|0)==163632)){Wb(c)}c=H[a>>2];if(!c){continue}break}}xb=b+48|0;return K[c+16>>2]<54?163632:H[c+12>>2]}function mla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{c:{d:{switch(a-18|0){case 0:d=H[b+24>>2];e:{if(d){f=d-1|0;H[b+24>>2]=f;if(K[b+32>>2]<=f>>>0){d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);e=+z();break e}e=M[H[b+36>>2]+(f<<3)>>3];break e}F[b+20|0]=1;d=H[40909];g=H[40908];H[196248]=g;H[196249]=d;x(0,g|0);x(1,d|0);e=+z()}f:{if(P(e)<2147483648){d=~~e;break f}d=-2147483648}if((d|0)<0){F[b+20|0]=1;d=0}H[c+16>>2]=d;g:{if(f){d=f-1|0;if(d>>>0>=K[b+32>>2]){d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);e=+z();break g}e=M[H[b+36>>2]+(d<<3)>>3];break g}F[b+20|0]=1;d=H[40909];f=H[40908];H[196248]=f;H[196249]=d;x(0,f|0);x(1,d|0);e=+z()}h:{if(P(e)<2147483648){d=~~e;break h}d=-2147483648}if((d|0)<0){F[b+20|0]=1;d=0}H[c+20>>2]=d;H[b+24>>2]=0;break b;case 11:kl(b+20|0,b);break c;case 12:e=jl(b);d=H[b+24>>2];if(d>>>0>2]){H[b+24>>2]=d+1;M[H[b+36>>2]+(d<<3)>>3]=e;break c}F[b+20|0]=1;d=H[40909];H[196248]=H[40908];H[196249]=d;M[98124]=e;break c;default:break d}}Qi(a,b)}if(H[b+24>>2]){break a}}if(I[b+20|0]|(I[b+40|0]|I[b+16|0])|H[b+28>>2]<0){break a}Ln(c,a,b)}}function k9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=xb-176|0;xb=c;e=H[a+584>>2];d=H[a+48>>2];if(d&512){a:{b:{if(J[a+88>>1]==4){ye(279722,18,1,b);d=279511;if(I[e+28|0]&2){break b}break a}ye(280481,18,1,b);d=279511;f=H[e+28>>2];if(f&1){H[c+160>>2]=279511;Fc(b,280643,c+160|0);f=H[e+28>>2];d=280973}if(f&4){H[c+144>>2]=d;Fc(b,281080,c+144|0);f=H[e+28>>2];d=280973}if(!(f&2)){break a}}H[c+128>>2]=d;Fc(b,280071,c+128|0)}d=H[e+28>>2];H[c+116>>2]=d;H[c+112>>2]=d;Fc(b,281541,c+112|0);d=H[a+48>>2]}if(d&8){ye(281673,11,1,b);c:{d:{switch(J[e+16>>1]){case 0:ye(281922,6,1,b);break c;case 1:ye(282083,21,1,b);break c;case 2:break d;default:break c}}ye(282183,19,1,b)}d=J[e+16>>1];H[c+100>>2]=d;H[c+96>>2]=d;Fc(b,282500,c+96|0);d=H[a+48>>2]}if(d&4){H[c+80>>2]=H[e+24>>2];Fc(b,282660,c+80|0);d=H[a+48>>2]}if(d&16){H[c+64>>2]=H[e+20>>2];Fc(b,282849,c- -64|0);d=H[a+48>>2]}if(d&32){H[c+48>>2]=H[e+32>>2];Fc(b,283025,c+48|0);d=H[a+48>>2]}if(d&64){H[c+32>>2]=H[e+36>>2];Fc(b,283215,c+32|0);d=H[a+48>>2]}if(d&128){H[c+16>>2]=H[e+40>>2];Fc(b,283435,c+16|0);d=H[a+48>>2]}if(d&256){H[c>>2]=H[e+44>>2];Fc(b,287354,c)}xb=c+176|0}function Un(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!I[a+12|0]){break a}if(!b){return}e=H[a+20>>2];if(K[a+24>>2]<=(e>>>1|0)+e>>>0){if(I[a+12|0]){e=(H[a+16>>2]<<1)+8|0;i=e?32-Q(e)|0:0;h=Tb(12<>2]=0;H[f>>2]=0;H[f+4>>2]=0;j=1;break c}H[196248]=0;H[196249]=0;H[196250]=0;j=0}e=e-j|0;f=N(j,12)+f|0;if((k|0)!=(f|0)){continue}break}}H[a+16>>2]=0;H[a+20>>2]=0;j=H[a+24>>2];H[a+24>>2]=g-1;H[a+28>>2]=H[(i>>>0>31?106972:(i<<2)+106848|0)>>2];g=H[a+32>>2];H[a+32>>2]=h;if(!(!g|(j|0)==-1)){e=0;while(1){f=e;e=g+N(e,12)|0;i=H[e>>2];if(!(!i|!H[e+4>>2])){Un(a,i,H[e+8>>2],e+4|0)}e=f+1|0;if((f|0)!=(j|0)){continue}break}}Kb(g)}e=(h|0)!=0}else{e=0}if(!e){break a}}f=Ns(a,b,c);h=H[a+32>>2];g=N(f,12)+h|0;e=H[g>>2];d:{e:{if(!H[d>>2]){if((b|0)!=(e|0)){break a}g=h+N(f,12)|0;break e}if(e){break e}e=H[a+20>>2];break d}e=H[a+20>>2]-1|0;H[a+20>>2]=e;if(!H[(h+N(f,12)|0)+4>>2]){break d}H[a+16>>2]=H[a+16>>2]-1}H[g>>2]=b;d=H[d>>2];b=h+N(f,12)|0;H[b+8>>2]=c;H[b+4>>2]=d;H[a+20>>2]=e+1;if(!H[b+4>>2]){break a}H[a+16>>2]=H[a+16>>2]+1}}function $l(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0;m=xb-16|0;xb=m;F[m+15|0]=a;a:{b:{if((a|0)==(f|0)){if(!I[b|0]){break b}a=0;F[b|0]=0;b=H[e>>2];H[e>>2]=b+1;F[b|0]=46;if(I[h+11|0]>>>7|0){b=H[h+4>>2]}else{b=I[h+11|0]}if(!b){break a}b=H[j>>2];if((b-i|0)>159){break a}c=H[k>>2];H[j>>2]=b+4;H[b>>2]=c;break a}if(I[h+11|0]>>>7|0){f=H[h+4>>2]}else{f=I[h+11|0]}if(!(!f|(a|0)!=(g|0))){if(!I[b|0]){break b}a=0;b=H[j>>2];if((b-i|0)>159){break a}a=H[k>>2];H[j>>2]=b+4;H[b>>2]=a;a=0;H[k>>2]=0;break a}a=-1;f=Zo(l,l+32|0,m+15|0)-l|0;if((f|0)>31){break a}g=I[f+773072|0];c:{d:{switch((f&-2)-22|0){case 2:b=H[e>>2];if((b|0)!=(d|0)&(I[b-1|0]&95)!=(I[c|0]&127)){break a}H[e>>2]=b+1;F[b|0]=g;a=0;break a;case 0:F[c|0]=80;break c;default:break d}}a=F[c|0];if((a|0)!=(g&95)){break c}F[c|0]=a|128;if(!I[b|0]){break c}F[b|0]=0;if(I[h+11|0]>>>7|0){a=H[h+4>>2]}else{a=I[h+11|0]}if(!a){break c}a=H[j>>2];if((a-i|0)>159){break c}b=H[k>>2];H[j>>2]=a+4;H[a>>2]=b}a=H[e>>2];H[e>>2]=a+1;F[a|0]=g;a=0;if((f|0)>21){break a}H[k>>2]=H[k>>2]+1;break a}a=-1}xb=m+16|0;return a|0}function jF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=a+2|0;a:{if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[d|0]|I[d+1|0]<<8;b:{if(!c){break b}if(Ud(((c<<8|c>>>8)&65535)+a|0,b)){break b}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}d=a+4|0;if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[d|0]|I[d+1|0]<<8;c:{if(!c){break c}if(gh(((c<<8|c>>>8)&65535)+a|0,b)){break c}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}g=H[b+4>>2];c=a+6|0;if(g>>>0>c>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=I[a+6|0]|I[a+7|0]<<8;if(!e){return 1}f=a+8|0;if(g>>>0>f>>>0|d>>>0>>0){break a}f=d-f|0;d=(e<<8|e>>>8)&65535;e=d<<1;if(f>>>0>>0){break a}c=c-e|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=d>>>0>1?d:1;d=0;while(1){h=fF(((d<<1)+a|0)+8|0,b,a);if(!h){break a}d=d+1|0;if((c|0)!=(d|0)){continue}break}}return h}function X6(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;f=xb-16|0;xb=f;a:{if(!b|!c){break a}d=H[a+12>>2];if(d){zb[H[H[d>>2]+12>>2]](d)|0;H[a+12>>2]=0}d=H[a+8>>2];if(d){h=a,i=zb[H[H[d>>2]+52>>2]](d)|0,H[h+12>>2]=i;d=H[a+8>>2];i=0,j=zb[H[H[d>>2]+24>>2]](d)|0,h=H[H[0]+24>>2],zb[h](i|0,j|0);d=H[a+12>>2];zb[H[H[d>>2]+68>>2]](d,0);d=H[a+12>>2]}else{d=0}e=H[a+16>>2];H[e+20>>2]=d;g=H[a+20>>2];H[(g+H[H[g>>2]-12>>2]|0)+20>>2]=d;if(zb[H[H[e>>2]+108>>2]](e,b,c)|0){d=H[a+16>>2];zb[H[H[d>>2]+120>>2]](d);d=H[a+16>>2];if(!I[d+29|0]){d=1;H[a+24>>2]=1;break a}b:{if(I[d+28|0]){break b}e=H[d+24>>2];if(!e){break b}Kb(e);H[d+24>>2]=0}H[d+4>>2]=0;H[d+8>>2]=0;F[d+29|0]=0;H[d+12>>2]=0;H[d+16>>2]=0;zb[H[H[d>>2]+12>>2]](d)}d=0;e=H[a+20>>2];if(!e){break a}F[f+15|0]=1;if(!(zb[H[H[e>>2]+8>>2]](e,b,c,f+15|0)|0)){break a}b=H[a+20>>2];zb[H[H[b>>2]+20>>2]](b);b=H[a+20>>2];b=H[H[b>>2]-12>>2]+b|0;if(!I[b+29|0]){H[a+24>>2]=2;d=1;break a}c:{if(I[b+28|0]){break c}a=H[b+24>>2];if(!a){break c}Kb(a);H[b+24>>2]=0}H[b+4>>2]=0;H[b+8>>2]=0;F[b+29|0]=0;H[b+12>>2]=0;H[b+16>>2]=0;zb[H[H[b>>2]+12>>2]](b)}xb=f+16|0;return d|0}function Ob(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){sb(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if(!(a&3)){c=a;break b}if(!c){c=a;break b}c=a;while(1){F[c|0]=I[b|0];b=b+1|0;c=c+1|0;if(!(c&3)){break b}if(c>>>0>>0){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+-64|0;if(f>>>0>>0){break c}while(1){H[c>>2]=H[b>>2];H[c+4>>2]=H[b+4>>2];H[c+8>>2]=H[b+8>>2];H[c+12>>2]=H[b+12>>2];H[c+16>>2]=H[b+16>>2];H[c+20>>2]=H[b+20>>2];H[c+24>>2]=H[b+24>>2];H[c+28>>2]=H[b+28>>2];H[c+32>>2]=H[b+32>>2];H[c+36>>2]=H[b+36>>2];H[c+40>>2]=H[b+40>>2];H[c+44>>2]=H[b+44>>2];H[c+48>>2]=H[b+48>>2];H[c+52>>2]=H[b+52>>2];H[c+56>>2]=H[b+56>>2];H[c+60>>2]=H[b+60>>2];b=b- -64|0;c=c- -64|0;if(f>>>0>=c>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){H[c>>2]=H[b>>2];b=b+4|0;c=c+4|0;if(d>>>0>c>>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e-4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){F[c|0]=I[b|0];F[c+1|0]=I[b+1|0];F[c+2|0]=I[b+2|0];F[c+3|0]=I[b+3|0];b=b+4|0;c=c+4|0;if(d>>>0>=c>>>0){continue}break}}if(c>>>0>>0){while(1){F[c|0]=I[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function Bl(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=xb-16|0;xb=h;f=H[a+28>>2];H[h+12>>2]=0;H[c>>2]=0;e=H[a+32>>2];if(e>>>0>2]){H[a+32>>2]=e+1;d=F[e|0]}else{d=0}e=d<<24>>24;d=-1;a:{if(!e){break a}g=e&255;if(g&128){g=g<<8&32512;e=H[a+32>>2];if(e>>>0>2]){H[a+32>>2]=e+1;d=F[e|0]}else{d=0}g=g|d<<24>>24&255}d=0;if(b>>>0>>0){break a}e=Ub(f,2,0,g+1|0,0,h+12|0);d=0;if(H[h+12>>2]){break a}H[c>>2]=g;if(g){c=0;b=0;while(1){d=H[a+32>>2];if(d>>>0>2]){H[a+32>>2]=d+1;d=F[d|0]}else{d=0}f=d<<24>>24;j=f&255;b:{if(f&128){c=Tc(a)+c|0;G[e+(b<<1)>>1]=c;b=b+1|0;d=0;f=j&127;if(!f){break b}while(1){c=Tc(a)+c|0;G[e+(b<<1)>>1]=c;b=b+1|0;if(g>>>0<=b>>>0){break b}d=d+1|0;if(f>>>0>d>>>0){continue}break}break b}i=e+(b<<1)|0;d=H[a+32>>2];if(d>>>0>2]){H[a+32>>2]=d+1;d=F[d|0]}else{d=0}c=(d<<24>>24&255)+c|0;G[i>>1]=c;b=b+1|0;d=0;if(!f){break b}while(1){i=e+(b<<1)|0;f=H[a+32>>2];if(f>>>0>2]){H[a+32>>2]=f+1;f=F[f|0]}else{f=0}c=(f<<24>>24&255)+c|0;G[i>>1]=c;b=b+1|0;if(g>>>0<=b>>>0){break b}d=d+1|0;if(j>>>0>d>>>0){continue}break}}if(b>>>0>>0){continue}break}}d=e}xb=h+16|0;return d}function dl(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;if(!a){return 35}if(!d){return 6}e=16;a:{if(K[a+16>>2]<=b>>>0){break a}e=H[H[H[a+96>>2]+12>>2]+84>>2];if(!(!e|!(c&3)&(c&983040)!=65536)){e=zb[e|0](a,b,1,c,d)|0;if(!e){e=0;if(c&1){break a}a=H[a+88>>2];if(!a){return 36}i=d,j=ic(H[d>>2],H[a+(c&16?20:16)>>2],64),H[i>>2]=j;return 0}if((e&255)!=7){break a}}e=35;b:{if(!a){break b}e=6;if(!d){break b}e=16;f=b+1|0;g=H[a+16>>2];c:{if(f>>>0>g>>>0|!f|b>>>0>=g>>>0){break c}e=H[H[H[a+96>>2]+12>>2]+84>>2];if(!(!e|!(c&3)&(c&983040)!=65536)){e=zb[e|0](a,b,1,c,d)|0;if(!e){d:{if(!(c&1)){a=H[a+88>>2];e=36;if(!a){break d}b=H[a+(c&16?20:16)>>2];a=0;while(1){c=(a<<2)+d|0;i=c,j=ic(H[c>>2],b,64),H[i>>2]=j;a=a+1|0;if((a|0)!=1){continue}break}}e=0}break b}if((e&255)!=7){break c}}e=7;if(c&536870912){break c}g=c&1?1:1024;h=c|256;f=0;if(!(c&16)){while(1){e=Ag(a,b+f|0,h);if(e){break c}H[(f<<2)+d>>2]=N(g,H[H[a+84>>2]+64>>2]);e=0;f=f+1|0;if((f|0)!=1){continue}break c}}while(1){e=Ag(a,b+f|0,h);if(e){break c}H[(f<<2)+d>>2]=N(g,H[H[a+84>>2]+68>>2]);e=0;f=f+1|0;if((f|0)!=1){continue}break}}}}return e|0}function VC(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=H[a+480>>2];b=H[a+88>>2];c=(b|0)==1;H[f+28>>2]=c;c=zb[H[H[a+4>>2]+8>>2]](a,1,c?766:256,H[a+120>>2])|0;H[f+24>>2]=c;a:{if(H[a+120>>2]<=0){break a}i=H[f+20>>2];if((b|0)==1){while(1){d=g<<2;b=H[(d+f|0)+32>>2];c=c+d|0;H[c>>2]=H[c>>2]+255;h=b-1|0;j=h<<1;e=(b+254|0)/(j|0)|0;i=(i|0)/(b|0)|0;d=H[d+H[f+24>>2]>>2];c=0;b=0;while(1){if((b|0)>(e|0)){while(1){c=c+1|0;e=(h+N(c<<1|1,255)|0)/(j|0)|0;if((e|0)<(b|0)){continue}break}}F[b+d|0]=N(c,i);b=b+1|0;if((b|0)!=256){continue}break}c=1;while(1){e=d-c|0;F[e|0]=I[d|0];b=c+d|0;F[b+255|0]=I[d+255|0];F[d+(c^-1)|0]=I[d|0];F[b+256|0]=I[d+255|0];F[e-2|0]=I[d|0];F[b+257|0]=I[d+255|0];c=c+3|0;if((c|0)!=256){continue}break}g=g+1|0;if((g|0)>=H[a+120>>2]){break a}c=H[f+24>>2];continue}}while(1){h=g<<2;b=H[(h+f|0)+32>>2];j=b-1|0;d=j<<1;e=(b+254|0)/(d|0)|0;i=(i|0)/(b|0)|0;h=H[c+h>>2];c=0;b=0;while(1){if((b|0)>(e|0)){while(1){c=c+1|0;e=(j+N(c<<1|1,255)|0)/(d|0)|0;if((e|0)<(b|0)){continue}break}}F[b+h|0]=N(c,i);b=b+1|0;if((b|0)!=256){continue}break}g=g+1|0;if((g|0)>=H[a+120>>2]){break a}c=H[f+24>>2];continue}}}function ln(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=xb-16|0;xb=h;H[h>>2]=a;g=H[c+20>>2];f=g+((zb[H[c+12>>2]](h)>>>0)%K[c+4>>2]<<2)|0;e=H[f>>2];a:{if(!e){break a}while(1){if(zb[H[c+16>>2]](e,h)|0){break a}f=f-4|0;if(g>>>0>f>>>0){f=(g+(H[c+4>>2]<<2)|0)-4|0}e=H[f>>2];if(e){continue}break}}b:{c:{d:{e=H[f>>2];e:{if(!e){e=64;g=zb[H[d+4>>2]](d,8)|0;if(!g){break b}H[f>>2]=g;H[g+4>>2]=b;H[g>>2]=a;f:{if(K[c+8>>2]>2]){break f}g=H[c+4>>2];a=g<<1;H[c+4>>2]=a;H[c>>2]=(a>>>0)/3;e=0;if((a|0)<0){e=6;break c}b=H[c+20>>2];if(a){e=10;if(a>>>0>536870911){break c}a=g<<3;e=zb[H[d+4>>2]](d,a)|0;if(!e){break d}Nb(e,0,a)}H[c+20>>2]=e;if(g){e=0;a=b;while(1){f=H[a>>2];if(f){H[h+8>>2]=H[f>>2];i=H[c+20>>2];f=i+((zb[H[c+12>>2]](h+8|0)>>>0)%K[c+4>>2]<<2)|0;while(1){g:{j=H[f>>2];if(!j){break g}if(zb[H[c+16>>2]](j,h+8|0)|0){break g}f=f-4|0;if(i>>>0<=f>>>0){continue}f=((H[c+4>>2]<<2)+i|0)-4|0;continue}break}H[f>>2]=H[a>>2]}a=a+4|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}}if(!b){break f}zb[H[d+8>>2]](d,b)}H[c+8>>2]=H[c+8>>2]+1;break e}H[e+4>>2]=b}e=0;break b}H[c+20>>2]=0;e=64;break b}H[c+20>>2]=0}xb=h+16|0;return e}function Wr(a,b,c){var d=0,e=0,f=0,g=O(0),h=0;d=I[a+4|0]|I[a+5|0]<<8;d=d<<8|d>>>8;f=d&65535;a:{if(f-1>>>0>=3){if((f|0)!=32768){break a}d=I[c+6|0]|I[c+7|0]<<8;e=(d<<8|d>>>8)&65535;d=I[a+1|0]|I[a|0]<<8;if(e>>>0<=d>>>0){g=O(0)}else{d=(d<<2)+c|0;d=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);e=I[a+3|0]|I[a+2|0]<<8;a=I[c+2|0]|I[c+3|0]<<8|(I[c+4|0]<<16|I[c+5|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);g=ml(d?d+c|0:163632,e,H[b+72>>2],H[b+68>>2],a?a+c|0:163632)}g=O(g*O(H[b+24>>2]));b=H[b+16>>2];a=H[b+28>>2];if(!a){a=kc(b)}g=O(T(O(O(g/O(a>>>0))+O(.5))));b:{if(O(P(g))>2];if(!c){break a}f=I[a|0]|I[a+1|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0>c>>>0){break a}e=I[a+2|0]|I[a+3|0]<<8;if(c>>>0>((e<<8|e>>>8)&65535)>>>0){break a}e=a;f=c-f|0;a=d&65535;d=4-a|0;e=e+(f>>>d<<1)|0;e=I[e+6|0]|I[e+7|0]<<8;e=((e<<8|e>>>8)&65535)>>>((f^-1|-1<>>(-1<>>0>>1>>>0?0:d;if((a|0)==(d|0)){break a}b=H[b+24>>2];a=a-d|0;h=hma(gma(b,b>>31,a,a>>31),yb,c,0)}return h}function Vr(a,b,c){var d=0,e=0,f=0,g=O(0),h=0;d=I[a+4|0]|I[a+5|0]<<8;d=d<<8|d>>>8;f=d&65535;a:{if(f-1>>>0>=3){if((f|0)!=32768){break a}d=I[c+6|0]|I[c+7|0]<<8;e=(d<<8|d>>>8)&65535;d=I[a+1|0]|I[a|0]<<8;if(e>>>0<=d>>>0){g=O(0)}else{d=(d<<2)+c|0;d=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);e=I[a+3|0]|I[a+2|0]<<8;a=I[c+2|0]|I[c+3|0]<<8|(I[c+4|0]<<16|I[c+5|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);g=ml(d?d+c|0:163632,e,H[b+72>>2],H[b+68>>2],a?a+c|0:163632)}g=O(g*O(H[b+20>>2]));b=H[b+16>>2];a=H[b+28>>2];if(!a){a=kc(b)}g=O(T(O(O(g/O(a>>>0))+O(.5))));b:{if(O(P(g))>2];if(!c){break a}f=I[a|0]|I[a+1|0]<<8;f=(f<<8|f>>>8)&65535;if(f>>>0>c>>>0){break a}e=I[a+2|0]|I[a+3|0]<<8;if(c>>>0>((e<<8|e>>>8)&65535)>>>0){break a}e=a;f=c-f|0;a=d&65535;d=4-a|0;e=e+(f>>>d<<1)|0;e=I[e+6|0]|I[e+7|0]<<8;e=((e<<8|e>>>8)&65535)>>>((f^-1|-1<>>(-1<>>0>>1>>>0?0:d;if((a|0)==(d|0)){break a}b=H[b+20>>2];a=a-d|0;h=hma(gma(b,b>>31,a,a>>31),yb,c,0)}return h}function At(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=H[b+4>>2];a:{if(e>>>0>a>>>0){break a}f=H[b+8>>2];if(f>>>0>>0|f-a>>>0<2){break a}g=H[b+12>>2]-2|0;H[b+12>>2]=g;if((g|0)<=0){break a}d=I[a|0]|I[a+1|0]<<8;if(!d){return 1}h=a+2|0;if(h>>>0>>0|f>>>0>>0){break a}k=f-h|0;d=(d<<8|d>>>8)&65535;f=d<<1;if(k>>>0>>0){break a}f=g-f|0;H[b+12>>2]=f;if((f|0)<=0){break a}f=a+2|0;if(f>>>0>>0){break a}l=d>>>0>1?d:1;h=0;while(1){b:{g=H[b+8>>2];if(g>>>0>>0|g-f>>>0<2){break b}i=H[c>>2];j=H[b+12>>2];d=j-2|0;H[b+12>>2]=d;if((d|0)<=0){break b}d=I[f|0]|I[f+1|0]<<8;c:{if(!d){break c}d=i+((d<<8|d>>>8)&65535)|0;d:{if(d>>>0>>0|d>>>0>g>>>0|g-d>>>0<2){break d}i=j-4|0;H[b+12>>2]=i;if((i|0)<=0){break d}j=I[d|0]|I[d+1|0]<<8;if(!j){break c}k=e;e=d+2|0;if(k>>>0>e>>>0|e>>>0>g>>>0){break d}k=g-e|0;e=((j<<8|j>>>8)&65535)<<1;if(k>>>0>>0){break d}e=i-e|0;H[b+12>>2]=e;if((e|0)>0){break c}}e=H[b+28>>2];if(e>>>0>31){break b}H[b+28>>2]=e+1;if(!I[b+24|0]){break b}F[f|0]=0;F[f+1|0]=0}i=1;h=h+1|0;if((l|0)==(h|0)){break a}e=H[b+4>>2];f=((h<<1)+a|0)+2|0;if(e>>>0<=f>>>0){continue}}break}i=0}return i}function AE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}c=I[a+2|0]|I[a+3|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}else{e=163632}c=H[b+100>>2];e=Gc(e,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);e:{if((e|0)==-1){break e}c=163632;f=I[a+4|0]|I[a+5|0]<<8;e=e>>>0<((f<<8|f>>>8)&65535)>>>0?((e<<1)+a|0)+6|0:163632;e=I[e|0]|I[e+1|0]<<8;if(e){c=((e<<8|e>>>8)&65535)+a|0}a=I[c|0]|I[c+1|0]<<8;if(!a){break e}e=(a<<8|a>>>8)&65535;a=c+2|0;while(1){d=I[a|0]|I[a+1|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+c|0}else{d=163632}f=I[d|0]|I[d+1|0]<<8;g=(f<<8|f>>>8)&65535;h=d+4|0;d=I[d+2|0]|I[d+3|0]<<8;d=fl(b,g,h,(d<<8|d>>>8)&65535,(f?(g<<1)-2|0:0)+h|0,731,0);if(d){break e}a=a+2|0;e=e-1|0;if(e){continue}break}}return d}return TE(a,b)}c=I[a+6|0]|I[a+7|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}else{e=163632}c=H[b+100>>2];if((Gc(e,H[H[c+80>>2]+N(H[c+64>>2],20)>>2])|0)==-1){break a}c=b;b=I[a+2|0]|I[a+3|0]<<8;b=(b<<8|b>>>8)&65535;d=I[a+4|0]|I[a+5|0]<<8;d=fl(c,b,a+8|0,(d<<8|d>>>8)&65535,((b<<1)+a|0)+6|0,732,a)}return d}function Rea(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;e=c<<2;h=H[e+H[b+8>>2]>>2];k=H[e+H[b+4>>2]>>2];b=H[b>>2]+(c<<3)|0;i=H[b>>2];l=H[b+4>>2];c=H[d+4>>2];d=H[d>>2];e=H[a+332>>2];b=H[a+472>>2];n=H[b+28>>2];o=H[b+24>>2];p=H[b+20>>2];q=H[b+16>>2];b=H[a+112>>2];if(b>>>0>=2){m=b>>>1|0;while(1){f=I[k|0]<<2;b=H[f+p>>2];j=I[h|0]<<2;r=H[j+o>>2];s=H[f+n>>2];f=H[j+q>>2];g=I[i|0];F[d|0]=I[(f+g|0)+e|0];j=r+s>>16;F[d+1|0]=I[(j+g|0)+e|0];F[d+2|0]=I[(b+g|0)+e|0];g=I[i+1|0];F[d+3|0]=I[(g+f|0)+e|0];F[d+4|0]=I[(g+j|0)+e|0];F[d+5|0]=I[(b+g|0)+e|0];g=I[l|0];F[c|0]=I[(g+f|0)+e|0];F[c+1|0]=I[(g+j|0)+e|0];F[c+2|0]=I[(b+g|0)+e|0];g=f;f=I[l+1|0];F[c+3|0]=I[(g+f|0)+e|0];F[c+4|0]=I[(f+j|0)+e|0];F[c+5|0]=I[(b+f|0)+e|0];c=c+6|0;l=l+2|0;d=d+6|0;i=i+2|0;h=h+1|0;k=k+1|0;m=m-1|0;if(m){continue}break}b=H[a+112>>2]}if(b&1){b=I[k|0]<<2;a=H[b+p>>2];h=I[h|0]<<2;k=H[h+o>>2];f=H[b+n>>2];h=H[h+q>>2];b=I[i|0];F[d|0]=I[(h+b|0)+e|0];i=f+k>>16;F[d+1|0]=I[(i+b|0)+e|0];F[d+2|0]=I[(a+b|0)+e|0];b=I[l|0];F[c|0]=I[(b+h|0)+e|0];F[c+1|0]=I[(b+i|0)+e|0];F[c+2|0]=I[(a+b|0)+e|0]}}function qR(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,m=0;k=xb-16|0;xb=k;a:{if(a){a=pw(c);b:{if(b){zb[H[H[a>>2]+44>>2]](k,a);b=H[k>>2];F[d|0]=b;F[d+1|0]=b>>>8;F[d+2|0]=b>>>16;F[d+3|0]=b>>>24;zb[H[H[a>>2]+32>>2]](k,a);break b}zb[H[H[a>>2]+40>>2]](k,a);b=H[k>>2];F[d|0]=b;F[d+1|0]=b>>>8;F[d+2|0]=b>>>16;F[d+3|0]=b>>>24;zb[H[H[a>>2]+28>>2]](k,a)}cg(i,k);Sc(k);l=e,m=zb[H[H[a>>2]+12>>2]](a)|0,H[l>>2]=m;l=f,m=zb[H[H[a>>2]+16>>2]](a)|0,H[l>>2]=m;zb[H[H[a>>2]+20>>2]](k,a);Ge(g,k);_b(k);zb[H[H[a>>2]+24>>2]](k,a);cg(h,k);Sc(k);a=zb[H[H[a>>2]+36>>2]](a)|0;break a}a=ow(c);c:{if(b){zb[H[H[a>>2]+44>>2]](k,a);b=H[k>>2];F[d|0]=b;F[d+1|0]=b>>>8;F[d+2|0]=b>>>16;F[d+3|0]=b>>>24;zb[H[H[a>>2]+32>>2]](k,a);break c}zb[H[H[a>>2]+40>>2]](k,a);b=H[k>>2];F[d|0]=b;F[d+1|0]=b>>>8;F[d+2|0]=b>>>16;F[d+3|0]=b>>>24;zb[H[H[a>>2]+28>>2]](k,a)}cg(i,k);Sc(k);l=e,m=zb[H[H[a>>2]+12>>2]](a)|0,H[l>>2]=m;l=f,m=zb[H[H[a>>2]+16>>2]](a)|0,H[l>>2]=m;zb[H[H[a>>2]+20>>2]](k,a);Ge(g,k);_b(k);zb[H[H[a>>2]+24>>2]](k,a);cg(h,k);Sc(k);a=zb[H[H[a>>2]+36>>2]](a)|0}H[j>>2]=a;xb=k+16|0}function _da(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=H[d>>2]+e|0;a=H[a+332>>2]+128|0;b=H[b+84>>2];i=N(N(G[c+16>>1],H[b+32>>2]),10033);g=N(G[c>>1],H[b>>2])<<13|1024;h=N(H[b+64>>2],G[c+32>>1]);j=g+N(h,5793)|0;k=(i+j<<2)+131072&-8192;l=N(N(G[c+20>>1],H[b+40>>2]),10033);m=N(G[c+4>>1],H[b+8>>2])<<13|1024;n=N(H[b+72>>2],G[c+36>>1]);o=m+N(n,5793)|0;p=l+o>>11;q=k+N(p,5793)|0;r=N(N(G[c+18>>1],H[b+36>>2]),10033);s=N(G[c+2>>1],H[b+4>>2])<<13|1024;c=N(H[b+68>>2],G[c+34>>1]);t=s+N(c,5793)|0;b=N(r+t>>11,10033);F[f|0]=I[a+(q+b>>>18&1023)|0];F[f+2|0]=I[a+(q-b>>>18&1023)|0];F[f+1|0]=I[a+(N(p,268423870)+k>>>18&1023)|0];b=H[d+4>>2]+e|0;h=(g+N(h,1073730238)<<2)+131072&-8192;f=N(n,-11586)+m>>11;g=h+N(f,5793)|0;c=N(N(c,-11586)+s>>11,10033);F[b|0]=I[a+(g+c>>>18&1023)|0];F[b+2|0]=I[a+(g-c>>>18&1023)|0];F[b+1|0]=I[a+(h+N(f,268423870)>>>18&1023)|0];b=H[d+8>>2]+e|0;d=(j-i<<2)+131072&-8192;c=o-l>>11;e=d+N(c,5793)|0;f=N(t-r>>11,10033);F[b|0]=I[a+(e+f>>>18&1023)|0];F[b+2|0]=I[a+(e-f>>>18&1023)|0];F[b+1|0]=I[a+(d+N(c,268423870)>>>18&1023)|0]}function hV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=I[787987];f=d<<24>>24<0;e=f?H[196994]:787976;d=f?H[196995]:d;if((d|0)==-1){d=ad(e)}zb[H[H[a>>2]+8>>2]](a,d);f=e;e=d<<2;Ob(H[a+12>>2],f,e);H[a+12>>2]=e+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+d;e=I[b+11|0];f=e<<24>>24<0;d=f?H[b>>2]:b;b=f?H[b+4>>2]:e;if((b|0)==-1){b=ad(d)}zb[H[H[a>>2]+8>>2]](a,b);e=d;d=b<<2;Ob(H[a+12>>2],e,d);H[a+12>>2]=d+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;b=I[787999];e=b<<24>>24<0;d=e?H[196997]:787988;b=e?H[196998]:b;if((b|0)==-1){b=ad(d)}zb[H[H[a>>2]+8>>2]](a,b);e=d;d=b<<2;Ob(H[a+12>>2],e,d);H[a+12>>2]=d+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;b=I[788011];e=b<<24>>24<0;d=e?H[197e3]:788e3;b=e?H[197001]:b;if((b|0)==-1){b=ad(d)}zb[H[H[a>>2]+8>>2]](a,b);e=d;d=b<<2;Ob(H[a+12>>2],e,d);H[a+12>>2]=d+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;b=ad(c);zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];H[a+16>>2]=b+H[a+16>>2];b=I[788011];d=b<<24>>24<0;c=d?H[197e3]:788e3;b=d?H[197001]:b;if((b|0)==-1){b=ad(c)}zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b}function VV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;H[a+16>>2]=b;H[a+4>>2]=0;H[a+8>>2]=0;H[a+36>>2]=0;H[a+40>>2]=0;b=a+24|0;H[b>>2]=0;H[b+4>>2]=0;H[a+12>>2]=0;H[a+44>>2]=0;H[a+20>>2]=b;H[197455]=0;c=aa(899,296)|0;b=H[197455];H[197455]=0;e=a+4|0;a:{b:{c:{if((b|0)==1){break c}H[197455]=0;vm(c);b=H[197455];H[197455]=0;if((b|0)!=1){H[a>>2]=c;b=H[a+8>>2];d:{if((b|0)!=H[a+12>>2]){H[b>>2]=c;H[a+8>>2]=b+4;break d}g=H[e>>2];f=b-g|0;h=f>>2;b=h+1|0;if(b>>>0>=1073741824){H[197455]=0;ia(3281,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}break a}d=f>>1;d=f>>>0<2147483644?b>>>0>>0?d:b:1073741823;e:{if(!d){b=0;break e}if(d>>>0>=1073741824){H[197455]=0;ia(1129,239085);b=H[197455];H[197455]=0;if((b|0)!=1){break a}break c}H[197455]=0;b=aa(899,d<<2)|0;i=H[197455];H[197455]=0;if((i|0)==1){break c}}e=(h<<2)+b|0;H[e>>2]=c;if((f|0)>0){Ob(b,g,f)}H[a+12>>2]=(d<<2)+b;H[a+8>>2]=e+4;H[a+4>>2]=b;if(!g){break d}Kb(g)}G[a+32>>1]=0;return a|0}b=$()|0;_()|0;Kb(c);break b}b=$()|0;_()|0}c=H[a+36>>2];if(c){H[a+40>>2]=c;Kb(c)}jj(a+20|0,H[a+24>>2]);c=H[e>>2];if(c){H[a+8>>2]=c;Kb(c)}ea(b|0);X()}X()}function uR(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,m=0;k=xb-16|0;xb=k;a:{if(a){a=uw(c);b:{if(b){zb[H[H[a>>2]+44>>2]](k,a);b=H[k>>2];F[d|0]=b;F[d+1|0]=b>>>8;F[d+2|0]=b>>>16;F[d+3|0]=b>>>24;zb[H[H[a>>2]+32>>2]](k,a);break b}zb[H[H[a>>2]+40>>2]](k,a);b=H[k>>2];F[d|0]=b;F[d+1|0]=b>>>8;F[d+2|0]=b>>>16;F[d+3|0]=b>>>24;zb[H[H[a>>2]+28>>2]](k,a)}Ge(i,k);_b(k);l=e,m=zb[H[H[a>>2]+12>>2]](a)|0,F[l|0]=m;l=f,m=zb[H[H[a>>2]+16>>2]](a)|0,F[l|0]=m;zb[H[H[a>>2]+20>>2]](k,a);Ge(g,k);_b(k);zb[H[H[a>>2]+24>>2]](k,a);Ge(h,k);_b(k);a=zb[H[H[a>>2]+36>>2]](a)|0;break a}a=tw(c);c:{if(b){zb[H[H[a>>2]+44>>2]](k,a);b=H[k>>2];F[d|0]=b;F[d+1|0]=b>>>8;F[d+2|0]=b>>>16;F[d+3|0]=b>>>24;zb[H[H[a>>2]+32>>2]](k,a);break c}zb[H[H[a>>2]+40>>2]](k,a);b=H[k>>2];F[d|0]=b;F[d+1|0]=b>>>8;F[d+2|0]=b>>>16;F[d+3|0]=b>>>24;zb[H[H[a>>2]+28>>2]](k,a)}Ge(i,k);_b(k);l=e,m=zb[H[H[a>>2]+12>>2]](a)|0,F[l|0]=m;l=f,m=zb[H[H[a>>2]+16>>2]](a)|0,F[l|0]=m;zb[H[H[a>>2]+20>>2]](k,a);Ge(g,k);_b(k);zb[H[H[a>>2]+24>>2]](k,a);Ge(h,k);_b(k);a=zb[H[H[a>>2]+36>>2]](a)|0}H[j>>2]=a;xb=k+16|0}function Xy(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{if((b|0)<0){if(!H[a+12>>2]|H[H[a+4>>2]+16>>2]>(b|0)){break b}while(1){c=H[a>>2];if(c){si(c);Kb(c)}f=H[a+4>>2];H[a>>2]=H[f+20>>2];c=H[f+4>>2];c:{if(!c){d=H[f+8>>2];if(H[d>>2]==(f|0)){break c}e=f+8|0;while(1){c=H[e>>2];e=c+8|0;d=H[c+8>>2];if((c|0)!=H[d>>2]){continue}break}break c}while(1){d=c;c=H[c>>2];if(c){continue}break}}H[a+4>>2]=d;H[a+12>>2]=H[a+12>>2]-1;pj(H[a+8>>2],f);Kb(f);g=g-1|0;if((g|0)>(b|0)){continue}break}break a}d:{e=a+8|0;c=H[e>>2];if(!c){break d}d=e;while(1){g=H[c+16>>2]<(b|0);d=g?d:c;c=H[(g<<2)+c>>2];if(c){continue}break}if((d|0)==(e|0)|H[d+16>>2]>(b|0)){break d}b=H[a>>2];if(b){si(b);Kb(b)}H[a>>2]=H[d+20>>2];c=H[d+4>>2];e:{if(!c){e=H[d+8>>2];if(H[e>>2]==(d|0)){break e}b=d+8|0;while(1){c=H[b>>2];b=c+8|0;e=H[c+8>>2];if((c|0)!=H[e>>2]){continue}break}break e}while(1){e=c;c=H[c>>2];if(c){continue}break}}if(H[a+4>>2]==(d|0)){H[a+4>>2]=e}H[a+12>>2]=H[a+12>>2]-1;pj(H[a+8>>2],d);Kb(d);return}a=H[a+16>>2];if(!a){break a}F[(a+H[H[a>>2]-12>>2]|0)+29|0]=1;break a}a=H[a+16>>2];if(!a){break a}F[(a+H[H[a>>2]-12>>2]|0)+29|0]=1}}function Zu(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;i=H[a+4>>2];if(i){b=H[a+24>>2]+N(b,204)|0;j=H[b+200>>2];l=H[b+204>>2];k=H[a+12>>2];while(1){a=H[k+4>>2];g=(a|0)<=0;a:{if(g){break a}d=H[k>>2];c=d+N(a,40)|0;b=0;a=d;f=0;while(1){e=H[a+16>>2]&32;f=e?f?f:a:f;b=(e>>>5|0)+b|0;a=a+40|0;if(c>>>0>a>>>0){continue}break}a=f;if(b>>>0<=1){if((b|0)==1){l=H[f+36>>2]-Rb(H[f+28>>2],j)|0}if(g){break a}while(1){if((d|0)!=(f|0)){n=d,o=Rb(H[d+28>>2],j)+l|0,H[n+36>>2]=o}d=d+40|0;if(c>>>0>d>>>0){continue}break}break a}while(1){c=a;a=H[a+4>>2];if((f|0)==(a|0)){break a}if(I[a+16|0]&32){continue}b=a;while(1){b=H[b+4>>2];if(!(I[b+16|0]&32)){continue}break}d=H[c+28>>2];e=H[b+28>>2];b:{if((d|0)<=(e|0)){h=e-d|0;e=c;g=b;break b}h=d-e|0;d=e;e=b;g=c}m=H[g+36>>2];g=H[e+36>>2];c:{if((h|0)<=0){e=65536;break c}e=dc(m-g|0,h);a=H[c+4>>2]}while(1){c=H[a+28>>2]-d|0;d:{if((c|0)<=0){c=Rb(c,j)+g|0;break d}if((c|0)>=(h|0)){c=Rb(c-h|0,j)+m|0;break d}c=Rb(c,e)+g|0}H[a+36>>2]=c;a=H[a+4>>2];if((b|0)!=(a|0)){continue}break}a=b;if((f|0)!=(a|0)){continue}break}}k=k+8|0;i=i-1|0;if(i){continue}break}}}function Vg(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(!b){b=I[245401]|I[245402]<<8;F[a+88|0]=b;F[a+89|0]=b>>>8;b=I[245397]|I[245398]<<8|(I[245399]<<16|I[245400]<<24);c=I[245393]|I[245394]<<8|(I[245395]<<16|I[245396]<<24);F[a+80|0]=c;F[a+81|0]=c>>>8;F[a+82|0]=c>>>16;F[a+83|0]=c>>>24;F[a+84|0]=b;F[a+85|0]=b>>>8;F[a+86|0]=b>>>16;F[a+87|0]=b>>>24;b=I[245389]|I[245390]<<8|(I[245391]<<16|I[245392]<<24);c=I[245385]|I[245386]<<8|(I[245387]<<16|I[245388]<<24);F[a+72|0]=c;F[a+73|0]=c>>>8;F[a+74|0]=c>>>16;F[a+75|0]=c>>>24;F[a+76|0]=b;F[a+77|0]=b>>>8;F[a+78|0]=b>>>16;F[a+79|0]=b>>>24;break b}b=0;if(H[a+4>>2]){break a}b=I[246057]|I[246058]<<8|(I[246059]<<16|I[246060]<<24);c=I[246053]|I[246054]<<8|(I[246055]<<16|I[246056]<<24);F[a+78|0]=c;F[a+79|0]=c>>>8;F[a+80|0]=c>>>16;F[a+81|0]=c>>>24;F[a+82|0]=b;F[a+83|0]=b>>>8;F[a+84|0]=b>>>16;F[a+85|0]=b>>>24;b=I[246051]|I[246052]<<8|(I[246053]<<16|I[246054]<<24);c=I[246047]|I[246048]<<8|(I[246049]<<16|I[246050]<<24);F[a+72|0]=c;F[a+73|0]=c>>>8;F[a+74|0]=c>>>16;F[a+75|0]=c>>>24;F[a+76|0]=b;F[a+77|0]=b>>>8;F[a+78|0]=b>>>16;F[a+79|0]=b>>>24}b=1}return b|0}function mC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-784|0;xb=f;a:{d=H[a+200>>2];if(d&1){b:{if(d&4){Xb(a,261598);mc(a,c);break b}if(d&2){break a}H[a+200>>2]=d|2;d=I[a+401|0];if(!(d&2)){Xb(a,262107);mc(a,c);break b}if(!((c>>>0)%3|0?0:c>>>0<=768)){if((d|0)!=3){Xb(a,262185);mc(a,c);break b}hc(a,262185);X()}e=256;e=(d|0)==3?1<>>0)/3|0;d=(d|0)>(e|0)?e:d;if((d|0)>0){e=0;g=f+16|0;while(1){h=f+13|0;vd(a,h,3);xc(a,h,3);F[g|0]=I[f+13|0];F[g+1|0]=I[f+14|0];F[g+2|0]=I[f+15|0];g=g+3|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}mc(a,N(d,-3)+c|0);c=f+16|0;c:{if(!a|!b){break c}d:{e:{if(I[b+25|0]==3){if((d|0)<=1<=0){break e}hc(a,264472);X()}if(d>>>0>256){break d}}Mh(a,b,4096,0);e=Rk(a,768);H[a+388>>2]=e;i=b,j=Ob(e,c,N(d,3)),H[i+16>>2]=j;G[a+392>>1]=d;G[b+20>>1]=d;H[b+184>>2]=H[b+184>>2]|4096;H[b+8>>2]=H[b+8>>2]|8;break c}Xb(a,264472)}if(!(I[b+8|0]&16)|(!b|I[a+401|0]!=3)){break b}c=d&65535;if(c>>>0>1]){Xb(a,262482);G[a+394>>1]=d}if(c>>>0>=J[b+22>>1]){break b}Xb(a,262730);G[b+22>>1]=d}xb=f+784|0;return}hc(a,261415);X()}hc(a,261743);X()}function Fq(a,b,c){var d=0,e=0,f=0,g=0;f=H[a+4>>2];g=f+b|0;a:{b:{c:{switch(I[a+10|0]-2|0){case 0:d:{e:{f:{f=I[a+9|0];switch(f-8|0){case 8:break e;case 0:break f;default:break a}}e=b+1|0;d=c?b:e;c=c?e:b+2|0;if(g>>>0<=c>>>0){break d}while(1){F[d|0]=I[c|0];d=d+1|0;c=c+2|0;if(g>>>0>c>>>0){continue}break}break d}e=b+2|0;d=c?b:e;c=c?e:b+4|0;if(g>>>0<=c>>>0){break d}while(1){F[d|0]=I[c|0];F[d+1|0]=I[c+1|0];d=d+2|0;c=c+4|0;if(g>>>0>c>>>0){continue}break}}F[a+10|0]=1;F[a+11|0]=f;if(I[a+8|0]!=4){break b}F[a+8|0]=0;break b;case 2:break c;default:break a}}g:{h:{switch(I[a+9|0]-8|0){case 0:d=(c?0:3)+b|0;e=24;c=c?1:4;if((c|0)>=(f|0)){break g}c=b+c|0;while(1){F[d|0]=I[c|0];F[d+1|0]=I[c+1|0];F[d+2|0]=I[c+2|0];d=d+3|0;c=c+4|0;if(g>>>0>c>>>0){continue}break};break g;case 8:break h;default:break a}}d=(c?0:6)+b|0;e=48;c=c?2:8;if((c|0)>=(f|0)){break g}c=b+c|0;while(1){F[d|0]=I[c|0];F[d+1|0]=I[c+1|0];F[d+2|0]=I[c+2|0];F[d+3|0]=I[c+3|0];F[d+4|0]=I[c+4|0];F[d+5|0]=I[c+5|0];d=d+6|0;c=c+8|0;if(g>>>0>c>>>0){continue}break}}F[a+10|0]=3;F[a+11|0]=e;if(I[a+8|0]!=6){break b}F[a+8|0]=2}H[a+4>>2]=d-b}}function qY(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{b:{if(b){c:{if((e|0)!=-1){zb[H[H[b>>2]+76>>2]](b,e,-1);break c}zb[H[H[b>>2]+28>>2]](b)}f=H[a+4>>2];if((f|0)!=H[a+8>>2]){while(1){d:{e:{f:{g:{h:{i:{f=H[(g<<2)+f>>2];switch((zb[H[H[f>>2]+8>>2]](f)|0)-1|0){case 3:break f;case 2:break g;case 1:break h;case 0:break i;case 4:break e;default:break d}}zb[H[H[b>>2]+32>>2]](b,M[f+8>>3],M[f+16>>3]);break d}zb[H[H[b>>2]+36>>2]](b,M[f+8>>3],M[f+16>>3]);break d}zb[H[H[b>>2]+40>>2]](b,M[f+8>>3],M[f+16>>3],M[f+24>>3],M[f+32>>3],M[f+40>>3],M[f+48>>3]);break d}zb[H[H[b>>2]+44>>2]](b,M[f+8>>3],M[f+16>>3],M[f+24>>3],M[f+32>>3],M[f+40>>3],M[f+48>>3]);break d}zb[H[H[b>>2]+48>>2]](b)}g=g+1|0;f=H[a+4>>2];if(g>>>0>2]-f>>2>>>0){continue}break}}if((e|0)==-1){zb[H[H[b>>2]+52>>2]](b,(d?2:0)|c);zb[H[H[b>>2]+56>>2]](b);break b}zb[H[H[b>>2]+80>>2]](b,e);return}if((e|0)!=-1){break a}}e=H[a+8>>2];g=H[a+4>>2];j:{if((e|0)==(g|0)){g=e;break j}f=0;while(1){b=H[(f<<2)+g>>2];if(b){zb[H[H[b>>2]+4>>2]](b);g=H[a+4>>2];e=H[a+8>>2]}f=f+1|0;if(f>>>0>2>>>0){continue}break}}H[a+8>>2]=g}}function _p(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;Hz(a,b);g=H[b+8>>2];j=H[b+12>>2];c=(H[a+4>>2]+(j-c|0)|0)-40|0;H[a+4>>2]=c;i=g<<1;d=g+1|0;e=d+d|0;f=Qb(d>>>0>e>>>0?-1:e);G[i+f>>1]=0;h=H[a+8>>2];d=(h-c|0)/2|0;d=d>>>0>>0?d:g;a:{if(!d){break a}b:{c:{if(c+1>>>0>>0){l=d&1;if((d|0)!=1){break c}d=0;break b}Nb(f,0,d<<1);break a}m=d&-2;d=0;while(1){d:{if(c+1>>>0>=h>>>0){e=0;break d}e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[f+(d<<1)>>1]=e;e=0;if(c+1>>>0>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[f+((d|1)<<1)>>1]=e;d=d+2|0;k=k+2|0;if((k|0)!=(m|0)){continue}break}}if(!l){break a}e=0;if(c+1>>>0>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[f+(d<<1)>>1]=e}H[b+40>>2]=f;d=(H[b+36>>2]-(i+j|0)|0)+c|0;H[a+4>>2]=d;c=H[b+16>>2]&8192?i:g;g=Qb((c|0)!=(c&1073741823)?-1:c<<2);e:{e=(h-d|0)/4|0;f=c>>>0>e>>>0?e:c;if(f){if(d+3>>>0>=h>>>0){break e}c=0;while(1){e=0;if(d+3>>>0>>0){e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[a+4>>2]=d}H[g+(c<<2)>>2]=e;c=c+1|0;if((f|0)!=(c|0)){continue}break}}H[b+44>>2]=g;return}n=b,o=Nb(g,0,f<<2),H[n+44>>2]=o}function Fd(a){var b=0,c=0,d=0,e=0,f=0;c=H[a+1144>>2];a:{b:{if(!c){c=H[a+1124>>2];while(1){c:{d:{e:{f:{switch(c|0){case 0:b=H[a+196>>2];g:{if(!b){b=0;break g}H[a+1136>>2]=b;b=H[a+200>>2];H[a+1144>>2]=b}c=1;H[a+1124>>2]=1;break c;case 1:H[a+1124>>2]=2;case 2:d=H[a+1128>>2];if((d|0)==H[a+1132>>2]){c=3;H[a+1124>>2]=3;continue}b=H[a>>2];c=H[b+184>>2];if(!c){F[a+1140|0]=0;Pb(H[b+628>>2],H[b>>2],279567,0);return 0}f=d<<2;c=H[c+f>>2];H[a+1136>>2]=c;if(!c){b=0;break d}e=H[a+168>>2];if(c>>>0>=e>>>0){break e}H[a+1144>>2]=0;b=H[b+188>>2];if(!b){break e}b=H[b+f>>2];H[a+1144>>2]=b;if(!b){break e}if(b+c>>>0<=e>>>0){break d}b=e-c|0;H[a+1144>>2]=b;break d;default:break f}}F[a+1140|0]=0;return 0}b=0;H[a+1136>>2]=0}H[a+1128>>2]=d+1;c=2}if(!b){continue}break}F[a+1140|0]=0;break b}if(I[a+1140|0]){break a}}b=H[a>>2];zb[H[b+640>>2]](H[b+628>>2],H[a+1136>>2],0)|0;F[a+1140|0]=1;c=H[a+1144>>2]}b=H[a>>2];d=a+1156|0;b=zb[H[b+632>>2]](H[b+628>>2],d,c>>>0<2048?c&65535:2048)|0;if(!b){return 0}H[a+1152>>2]=d;G[a+1148>>1]=b;b=b&65535;H[a+1144>>2]=H[a+1144>>2]-b;H[a+1136>>2]=b+H[a+1136>>2];return 1}function $j(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=xb-1312|0;xb=f;g=H[a+4>>2];i=H[g+492>>2];j=H[i+12>>2];h=H[H[g+128>>2]+52>>2];k=H[g+452>>2];e=a+1388|0;H[e>>2]=H[g+448>>2];H[e+4>>2]=k;e=H[g+444>>2];H[a+1380>>2]=H[g+440>>2];H[a+1384>>2]=e;e=H[g+460>>2];H[a+1396>>2]=H[g+456>>2];H[a+1400>>2]=e;a:{b:{if(!h){e=b<<2;H[c>>2]=H[e+H[g+428>>2]>>2];H[c+4>>2]=H[e+H[g+432>>2]>>2];break b}e=zb[H[H[h>>2]>>2]](H[h+4>>2],b,c)|0;if(e){break a}}c:{if(I[a+70|0]){e=zb[H[j+8>>2]](a,H[c>>2],H[c+4>>2])|0;break c}e=f+656|0;zb[H[i+24>>2]](e,a,1);zb[H[i+28>>2]](g,g+168|0,f);H[f+1192>>2]=f;e=zb[H[j+12>>2]](e,H[c>>2],H[c+4>>2])|0;if((e&255)!=164){break c}F[H[a+8>>2]+160|0]=0;F[d|0]=1;e=zb[H[j+12>>2]](f+656|0,H[c>>2],H[c+4>>2])|0}if(!h|e){break a}if(!H[H[h>>2]+8>>2]){e=0;break a}c=H[a+32>>2];H[f+4>>2]=0;H[f>>2]=((c+(c>>31)|0)+32768&-65536)>>16;c=H[a+40>>2];H[f+8>>2]=(((c>>31)+c|0)+32768&-65536)>>16;c=H[a+44>>2];H[f+12>>2]=(((c>>31)+c|0)+32768&-65536)>>16;e=zb[H[H[h>>2]+8>>2]](H[h+4>>2],b,0,f)|0;H[a+32>>2]=H[f>>2]<<16;H[a+40>>2]=H[f+8>>2]<<16;H[a+44>>2]=H[f+12>>2]<<16}xb=f+1312|0;return e}function AP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a=c;a:{if((d-a|0)<3){break a}}while(1){b:{if(e>>>0<=i>>>0|a>>>0>=d>>>0){break b}g=F[a|0];b=g&255;c:{if((g|0)>=0){g=1;if(b>>>0<=1114111){break c}break b}if(g>>>0<4294967234){break b}if(g>>>0<=4294967263){if((d-a|0)<2){break b}f=I[a+1|0];if((f&192)!=128){break b}g=2;if((f&63|b<<6&1984)>>>0<=1114111){break c}break b}d:{e:{if(g>>>0<=4294967279){if((d-a|0)<3){break b}h=I[a+2|0];f=I[a+1|0];if((b|0)==237){break e}if((b|0)==224){if((f&224)==160){break d}break b}if((f&192)!=128){break b}break d}if((d-a|0)<4|g>>>0>4294967284){break b}h=I[a+2|0];f=I[a+1|0];f:{g:{switch(b-240|0){case 0:if((f+112&255)>>>0<48){break f}break b;case 4:if((f&240)==128){break f}break b;default:break g}}if((f&192)!=128){break b}}if((h&192)!=128){break b}j=I[a+3|0];if((j&192)!=128){break b}g=4;if((j&63|(h<<6&4032|(b<<18&1835008|(f&63)<<12)))>>>0>1114111){break b}break c}if((f&224)!=128){break b}}if((h&192)!=128){break b}g=3;if((h&63|(b<<12&61440|(f&63)<<6))>>>0>1114111){break b}}i=i+1|0;a=a+g|0;continue}break}return a-c|0}function nba(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(a){c=H[a+200>>2];if(!(c&4)){break a}b:{if(!b){break b}if(!(!(I[b+9|0]&2)|c&512)){LB(a,b+60|0)}if(H[b+48>>2]>0){e=H[b+56>>2];while(1){g=N(f,28);c=g+e|0;d=H[c>>2];c:{d:{e:{if((d|0)>0){MB(a,d,H[c+4>>2],H[c+20>>2],H[c+24>>2],H[c+8>>2]);break e}if((d|0)>=0){NB(a,H[c+4>>2],H[c+8>>2]);c=-2;break d}if((d|0)!=-1){break c}cn(a,H[c+4>>2],H[c+8>>2])}c=-3}e=H[b+56>>2];H[g+e>>2]=c}f=f+1|0;if((f|0)>2]){continue}break}}c=H[b+192>>2];if(!c|(c|0)<=0){break b}c=H[b+188>>2];while(1){d=Lq(a,c);if(!((d|0)==1|!(I[c+16|0]&8)|!(F[a+206|0]&1?1:I[c+3|0]&32|(d|0)==3))){Aq(a,c,H[c+8>>2],H[c+12>>2])}c=c+20|0;if(c>>>0>2]+N(H[b+192>>2],20)>>>0){continue}break}}H[a+200>>2]=H[a+200>>2]|8;b=xb-16|0;xb=b;if(a){H[a+744>>2]=34;H[b+4>>2]=0;H[b+8>>2]=1145980233;Qc(a,b+4|0,8);H[a+348>>2]=1229278788;Uf(a);xc(a,b+8|0,4);H[a+744>>2]=130;c=H[a+384>>2];c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);F[b+12|0]=c;F[b+13|0]=c>>>8;F[b+14|0]=c>>>16;F[b+15|0]=c>>>24;Qc(a,b+12|0,4)}H[a+200>>2]=H[a+200>>2]|16;xb=b+16|0}return}hc(a,259670);X()}function bC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=xb-528|0;xb=f;e=H[a+200>>2];if(e&1){a:{if(e&4){Xb(a,267747);mc(a,c);break a}if(!(e&2)){Xb(a,267771);mc(a,c);break a}if(!(!b|!(I[b+8|0]&64))){Xb(a,267796);mc(a,c);break a}if(!(J[a+392>>1]<<1==(c|0)&c>>>0<=512)){Xb(a,267817);mc(a,c);break a}if(c>>>0>=2){c=c>>>1|0;e=c>>>0>1?c:1;c=0;while(1){d=f+14|0;vd(a,d,2);xc(a,d,2);d=I[f+14|0]|I[f+15|0]<<8;G[(f+16|0)+(c<<1)>>1]=d<<8|d>>>8;c=c+1|0;if((e|0)!=(c|0)){continue}break}}if(mc(a,0)){break a}e=f+16|0;b:{if(!a|!b){break b}if((J[b+20>>1]-257&65535)>>>0<=65279){Xb(a,262061);break b}Mh(a,b,8,0);c=xd(a,512);H[a+596>>2]=c;if(c){g=J[b+20>>1];c:{if(!g){break c}a=0;if(g-1>>>0>=3){k=g&65532;while(1){d=a<<1;G[d+c>>1]=J[d+e>>1];h=d|2;G[h+c>>1]=J[e+h>>1];h=d|4;G[h+c>>1]=J[e+h>>1];d=d|6;G[d+c>>1]=J[d+e>>1];a=a+4|0;i=i+4|0;if((k|0)!=(i|0)){continue}break}}d=g&3;if(!d){break c}while(1){g=a<<1;G[g+c>>1]=J[e+g>>1];a=a+1|0;j=j+1|0;if((d|0)!=(j|0)){continue}break}}H[b+124>>2]=c;H[b+8>>2]=H[b+8>>2]|64;H[b+184>>2]=H[b+184>>2]|8;break b}Xb(a,262278)}}xb=f+528|0;return}hc(a,267722);X()}function KK(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;f=3;a:{if((d|e)<0){break a}g=H[a+8>>2];h=H[a+12>>2];i=J[h+2>>1];if(K[g+4>>2]>>0){break a}k=J[h>>1];if(K[g>>2]>>0){break a}i=N(i,I[a+18|0]);if((N(i,k)+7>>>3|0)+b>>>0>c>>>0){break a}f=0;if(!i|!k){break a}l=d&7;a=8-l|0;j=a>>>0>i>>>0?i:a;p=(255<>2];h=H[g+12>>2]+(N(n,e)+(d>>>3|0)|0)|0;q=i-j|0;o=8-j|0;e=0;g=0;d=k;while(1){m=d;b:{if(!l){f=i;d=h;break b}c:{if((k|0)==(m|0)){e=I[b|0];b=b+1|0;a=l;break c}if((g|0)<(j|0)){a=g+o|0;if(b>>>0>=c>>>0){break c}e=I[b|0]|e;b=b+1|0;a=g+o|0;break c}e=(e&65280)>>>8|0;a=g-j|0}g=a;F[h|0]=I[h|0]|(e&65535)>>>g&p;e=e<<8;f=q;d=h+1|0}a=b;if((f|0)>=8){while(1){b=I[a|0]|e;F[d|0]=I[d|0]|(b&65535)>>>g;d=d+1|0;a=a+1|0;e=b<<8;b=f>>>0>15;f=f-8|0;if(b){continue}break}}d:{if((f|0)>0){if((f|0)>(g|0)){if(a>>>0>>0){e=I[a|0]|e;a=a+1|0}F[d|0]=I[d|0]|(e&65535)>>>g&65280>>>f;e=e<<8;g=(g-f|0)+8|0;break d}F[d|0]=I[d|0]|65280>>>f&(e&65535)>>>g;g=g-f|0}}b=a;h=h+n|0;d=m-1|0;if((m|0)>1){continue}break}f=0}return f|0}function vm(a){a=a|0;var b=0;b=xm(a);G[a+112>>1]=257;F[a+56|0]=0;G[a+54>>1]=0;H[a+44>>2]=436732;H[a+40>>2]=436684;H[a+152>>2]=0;H[a+156>>2]=1072693248;G[a+148>>1]=0;H[a+140>>2]=851969;H[a+144>>2]=3;H[a+132>>2]=0;H[a+136>>2]=2;F[a+130|0]=255;G[a+128>>1]=65535;F[a+126|0]=0;G[a+122>>1]=257;G[a+124>>1]=0;G[a+114>>1]=0;G[a+116>>1]=0;G[a+118>>1]=1;G[a+120>>1]=1;H[a+104>>2]=0;H[a+108>>2]=65537;H[a+96>>2]=0;H[a+100>>2]=1072693248;H[a+88>>2]=0;H[a+92>>2]=1072693248;G[a+80>>1]=1;H[a+76>>2]=0;H[a+68>>2]=0;H[a+72>>2]=0;H[a+64>>2]=a+40;H[a+60>>2]=b;H[a+168>>2]=0;H[a+172>>2]=0;H[a+160>>2]=0;H[a+164>>2]=0;H[a+176>>2]=0;H[a+180>>2]=1072693248;H[a+192>>2]=0;H[a+196>>2]=0;H[a+184>>2]=0;H[a+188>>2]=0;H[a+200>>2]=0;H[a+204>>2]=1072693248;H[a+216>>2]=0;H[a+220>>2]=0;H[a+208>>2]=0;H[a+212>>2]=0;H[a+224>>2]=0;H[a+228>>2]=1072693248;H[a+240>>2]=0;H[a+244>>2]=0;H[a+232>>2]=0;H[a+236>>2]=0;H[a+248>>2]=0;H[a+252>>2]=1072693248;H[a+264>>2]=0;H[a+268>>2]=0;H[a+256>>2]=0;H[a+260>>2]=0;H[a+272>>2]=0;H[a+276>>2]=1072693248;H[a+288>>2]=0;H[a+292>>2]=0;H[a+280>>2]=0;H[a+284>>2]=0;return a|0}function hfa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=H[a+4>>2];b=H[f+68>>2];if(b){while(1){if(!H[b>>2]){e=H[b+8>>2];c=N(e,H[b+4>>2])+c|0;d=N(e,H[b+12>>2])+d|0}b=H[b+44>>2];if(b){continue}break}}b=H[f+72>>2];if(b){while(1){if(!H[b>>2]){e=H[b+8>>2];c=(N(e,H[b+4>>2])<<7)+c|0;d=(N(e,H[b+12>>2])<<7)+d|0}b=H[b+44>>2];if(b){continue}break}}a:{if((d|0)<=0){break a}e=1e9;b=H[f+68>>2];if(b){while(1){if(!H[b>>2]){d=H[b+4>>2];c=H[b+12>>2];b:{if((((d-1>>>0)/(c>>>0)|0)+1|0)<=(e|0)){H[b+16>>2]=d;break b}H[b+16>>2]=N(c,e);c=H[a>>2];H[c+20>>2]=51;zb[H[c>>2]](a);H[b+40>>2]=1;d=H[b+16>>2]}g=b,h=WC(a,1,H[b+8>>2],d),H[g>>2]=h;c=H[f+80>>2];H[b+36>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+20>>2]=c}b=H[b+44>>2];if(b){continue}break}}b=H[f+72>>2];if(!b){break a}while(1){if(!H[b>>2]){d=H[b+4>>2];c=H[b+12>>2];c:{if((((d-1>>>0)/(c>>>0)|0)+1|0)<=(e|0)){H[b+16>>2]=d;break c}H[b+16>>2]=N(c,e);c=H[a>>2];H[c+20>>2]=51;zb[H[c>>2]](a);H[b+40>>2]=1;d=H[b+16>>2]}g=b,h=XC(a,1,H[b+8>>2],d),H[g>>2]=h;c=H[f+80>>2];H[b+36>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b+20>>2]=c}b=H[b+44>>2];if(b){continue}break}}}function dk(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;h=xb-16|0;xb=h;if(e){H[e>>2]=-1}k=(c|0)==-21;l=k?b-21|0:b;m=(c|0)>0?c:0;i=H[a+8>>2];g=H[a>>2];a:{b:{if(g){b=i;while(1){if(!(H[b>>2]!=(l|0)|H[b+4>>2]!=(m|0))){g=f;break b}b=b+12|0;f=f+1|0;if((f|0)!=(g|0)){continue}break}}j=g+1|0;b=H[a+4>>2];c:{if(j>>>0>>0){break c}H[h+4>>2]=0;if(b>>>0>=j>>>0){break c}f=b;b=g+8&-8;i=Ub(d,12,f,b,i,h+4|0);H[a+8>>2]=i;f=H[h+4>>2];if(f){break a}H[a+4>>2]=b}H[a>>2]=j;b=N(g,12)+i|0;H[b+8>>2]=c>>31&(k?3:1);H[b+4>>2]=m;H[b>>2]=l}b=H[a+12>>2];d:{e:{if(!b){f:{if(H[a+16>>2]){b=H[a+20>>2];break f}H[h+8>>2]=0;b=Ub(d,16,0,8,H[a+20>>2],h+8|0);H[a+20>>2]=b;f=H[h+8>>2];if(f){break a}H[a+16>>2]=8}H[b+12>>2]=0;H[b>>2]=0;H[a+12>>2]=1;break e}b=(H[a+20>>2]+(b<<4)|0)-16|0;if(K[b>>2]>g>>>0){break d}}a=H[b+4>>2];H[h+12>>2]=0;c=g+8>>>3|0;a=a+7>>>3|0;if(c>>>0>a>>>0){f=a;a=c+7&1073741816;n=b,o=Ub(d,1,f,a,H[b+8>>2],h+12|0),H[n+8>>2]=o;f=H[h+12>>2];if(f){break a}H[b+4>>2]=a<<3}H[b>>2]=g+1}a=H[b+8>>2]+(g>>>3|0)|0;F[a|0]=I[a|0]|128>>>(g&7);f=0;if(!e){break a}H[e>>2]=g}xb=h+16|0;return f}function zd(a){var b=0,c=0,d=0,e=0;b=xb-32|0;xb=b;H[b+12>>2]=0;H[b+8>>2]=3547;d=H[b+12>>2];H[b>>2]=H[b+8>>2];H[b+4>>2]=d;d=H[b+4>>2];c=b+16|0;H[c+4>>2]=H[b>>2];H[c+8>>2]=d;H[c>>2]=a;d=xb-16|0;xb=d;if(H[a>>2]!=-1){e=d+8|0;H[e>>2]=c;H[d>>2]=e;while(1){if(H[a>>2]==1){continue}break}a:{b:{c:{if(!H[a>>2]){H[a>>2]=1;H[197455]=0;c=H[197455];H[197455]=0;d:{if((c|0)==1){break d}H[197455]=0;ia(3552,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break d}H[197455]=0;c=H[197455];H[197455]=0;if((c|0)==1){break d}H[a>>2]=-1;H[197455]=0;c=H[197455];H[197455]=0;if((c|0)==1){break d}H[197455]=0;c=H[197455];H[197455]=0;if((c|0)!=1){break a}}b=ha(0)|0;_()|0;sa(b|0)|0;H[197455]=0;b=H[197455];H[197455]=0;e:{if((b|0)==1){break e}H[a>>2]=0;H[197455]=0;a=H[197455];H[197455]=0;if((a|0)==1){break e}H[197455]=0;a=H[197455];H[197455]=0;if((a|0)==1){break e}H[197455]=0;na(3312);a=H[197455];H[197455]=0;if((a|0)!=1){break b}}a=$()|0;_()|0;H[197455]=0;na(1711);b=H[197455];H[197455]=0;if((b|0)==1){break c}ea(a|0);X()}break a}ha(0)|0;_()|0;Zb()}X()}}xb=d+16|0;xb=b+32|0;return H[a+4>>2]-1|0}function l9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[a+584>>2];a:{b:{c:{d:{e:{f:{g:{h:{switch(b-292|0){default:i:{switch(b-34908|0){case 3:break d;case 2:break e;case 1:break f;case 0:break g;default:break i}}j:{switch(b-65536|0){case 0:H[d+4>>2]=H[c>>2];return 1;case 4:break j;default:break c}}H[d+76>>2]=H[c>>2];return 1;case 0:if(J[a+88>>1]!=3){break a}H[d+28>>2]=H[c>>2];break a;case 1:if(J[a+88>>1]!=4){break a}H[d+28>>2]=H[c>>2];break a;case 35:G[d+16>>1]=H[c>>2];break a;case 34:break b;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:break c;case 36:break h}}H[d+20>>2]=H[c>>2];break a}H[d+32>>2]=H[c>>2];break a}Lk(d+36|0,H[c>>2]);break a}H[d+40>>2]=H[c>>2];break a}Lk(d+44|0,H[c>>2]);break a}return zb[H[d+52>>2]](a,b,c)|0}H[d+24>>2]=H[c>>2]}b=rd(a,b);if(!b){return 0}b=J[b+12>>1];c=(b>>>3&8188)+a|0;H[c+40>>2]=H[c+40>>2]|1<>2]=H[a+12>>2]|8;return 1}function P4(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;d=xb-16|0;xb=d;h=b+76|0;l=H[h>>2];g=b+48|0;c=H[g>>2];i=b+56|0;f=H[i>>2];H[d+8>>2]=0;e=c<<1;f=f&8192?e:c;j=f<<2;c=j+e|0;e=(l-e|0)-76|0;c=(c+e|0)+76|0;H[d+4>>2]=c;H[d>>2]=84;H[a+8>>2]=c+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);c=(C(O(M[b+24>>3])),v(2));F[d+12|0]=c;F[d+13|0]=c>>>8;F[d+14|0]=c>>>16;F[d+15|0]=c>>>24;Lb(H[a+4>>2],d+12|0,4);c=(C(O(M[b+32>>3])),v(2));F[d+12|0]=c;F[d+13|0]=c>>>8;F[d+14|0]=c>>>16;F[d+15|0]=c>>>24;Lb(H[a+4>>2],d+12|0,4);Lb(H[a+4>>2],b+40|0,4);Lb(H[a+4>>2],b+44|0,4);Lb(H[a+4>>2],g,4);Lb(H[a+4>>2],b+52|0,4);Lb(H[a+4>>2],i,4);Lb(H[a+4>>2],b+60|0,4);Lb(H[a+4>>2],b- -64|0,4);Lb(H[a+4>>2],b+68|0,4);Lb(H[a+4>>2],b+72|0,4);Lb(H[a+4>>2],h,4);c=H[g>>2];a:{if(!c){break a}Lb(H[a+4>>2],H[b+80>>2],c<<1);if(e){while(1){Lb(H[a+4>>2],d+8|0,1);k=k+1|0;if((e|0)!=(k|0)){continue}break}}if(!f){break a}Lb(H[a+4>>2],H[b+84>>2],j)}xb=d+16|0}function Gha(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;g=xb+-64|0;xb=g;H[g+56>>2]=c;H[g+60>>2]=b;H[g+52>>2]=d;F[g+51|0]=f;H[g>>2]=0;H[g+4>>2]=0;F[g+40|0]=0;H[g+32>>2]=0;H[g+36>>2]=-1074790400;F[g+21|0]=0;F[g+22|0]=0;F[g+23|0]=0;F[g+24|0]=0;F[g+25|0]=0;F[g+26|0]=0;F[g+27|0]=0;F[g+28|0]=0;H[g+16>>2]=0;H[g+20>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[197455]=0;H[g+16>>2]=a;a=H[197455];H[197455]=0;a:{if((a|0)==1){break a}H[197455]=0;H[g+4>>2]=H[g+60>>2];a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;H[g+8>>2]=H[g+56>>2];a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;H[g+12>>2]=H[g+52>>2];a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;F[g+40|0]=I[g+51|0];a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;a=aa(899,12)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[a>>2]=0;H[a+4>>2]=0;F[a+8|0]=0;H[197455]=0;la(945,g|0,a|0,a+4|0,e|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;H[g+16>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){break a}id(g);xb=g- -64|0;return a|0}a=$()|0;_()|0;id(g);ea(a|0);X()}function sY(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;g=xb-272|0;xb=g;e=H[b+4>>2];f=H[b>>2];b=H[a>>2];d=H[a+4>>2];H[g+12>>2]=d<<2;H[g+8>>2]=b<<2;i=e<<2;H[g+4>>2]=i;f=f<<2;H[g>>2]=f;k=H[c+208>>2];H[g+16>>2]=k;a=H[c+212>>2];H[g+20>>2]=a;j=d>>6;a:{b:{l=e>>6;h=H[c+176>>2];c:{d:{if((l|0)<(h|0)){e=a>>8;break d}e=a>>8;if((h|0)>(j|0)){break d}if((e|0)>=(h|0)){break c}}h=H[c+172>>2];if((h|0)<=(l|0)|(h|0)<=(j|0)|(e|0)>=(h|0)){break b}}H[c+212>>2]=i;H[c+208>>2]=f;break a}e=1;f=(f-(b<<3)|0)+k|0;b=f>>31;d=a+(i-(d<<3)|0)|0;a=d>>31;b=(b^f)-b|0;a=(a^d)-a|0;a=a>>>0>>0?b:a;if(a>>>0>=65){while(1){e=e<<1;b=a>>>0>259;a=a>>>2|0;if(b){continue}break}}a=g;while(1){b=0-e&e;if(b>>>0>=2){while(1){d=H[a+16>>2];H[a+32>>2]=d;i=H[a+20>>2];H[a+36>>2]=i;f=H[a+8>>2];j=f+H[a>>2]|0;H[a+8>>2]=j>>1;d=d+f|0;H[a+24>>2]=d>>1;H[a+16>>2]=d+j>>2;d=H[a+12>>2];f=d+H[a+4>>2]|0;H[a+12>>2]=f>>1;d=d+i|0;H[a+28>>2]=d>>1;H[a+20>>2]=d+f>>2;a=a+16|0;d=b>>>0>3;b=b>>1;if(d){continue}break}}Pp(c,H[a>>2],H[a+4>>2]);a=a-16|0;e=e-1|0;if(e){continue}break}}xb=g+272|0;return 0}function iF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=H[b+4>>2];a:{if(d>>>0>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<6){break a}e=H[b+12>>2]-6|0;H[b+12>>2]=e;if((e|0)<=0){break a}f=I[a+2|0]|I[a+3|0]<<8;if(!f){break a}g=a+6|0;if(d>>>0>g>>>0|c>>>0>>0){break a}f=(f<<8|f>>>8)&65535;h=f<<1;if(h>>>0>c-g>>>0){break a}c=e-h|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=0;c=a+6|0;if(d>>>0>c>>>0){return 0}f=f>>>0>1?f:1;while(1){d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break a}d=H[b+12>>2]-2|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=I[c|0]|I[c+1|0]<<8;b:{if(!d){break b}if(Ud(((d<<8|d>>>8)&65535)+a|0,b)){break b}d=H[b+28>>2];if(d>>>0>31){break a}H[b+28>>2]=d+1;if(!I[b+24|0]){break a}F[c|0]=0;F[c+1|0]=0}e=e+1|0;if((f|0)!=(e|0)){c=((e<<1)+a|0)+6|0;if(c>>>0>=K[b+4>>2]){continue}break a}break}c=I[a+4|0]|I[a+5|0]<<8;if(!c){return 1}d=a;a=I[a+2|0]|I[a+3|0]<<8;a=(d+(((a<<8|a>>>8)&65535)<<1)|0)+6|0;if(a>>>0>2]){break a}e=H[b+8>>2];if(e>>>0>>0){break a}d=e-a|0;a=((c<<8|c>>>8)&65535)<<2;if(d>>>0>>0){break a}a=H[b+12>>2]-a|0;H[b+12>>2]=a;i=(a|0)>0}return i}function rB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb+-64|0;xb=g;f=283105;d=H[b+4>>2];h=J[a+98>>1];e=d>>>0>>0;a:{b:{if(!e){f=283317;if(d>>>0<=h>>>0){break b}}d=H[a>>2];i=H[a+628>>2];j=H[rd(a,J[b>>1])+16>>2];H[g+20>>2]=H[b+4>>2];H[g+16>>2]=j;H[g+24>>2]=h;sc(i,d,f,g+16|0);d=0;if(e){break a}d=H[b+4>>2]}f=g+32|0;if(d>>>0>=11){f=Md(a,d,2,288229);if(!f){d=0;break a}d=H[b+4>>2]}c:{d:{if(d>>>0<=2){if(J[a+456>>1]==19789){e=0;e:{f:{switch(d-1|0){case 0:e=H[b+8>>2];break e;case 1:break f;default:break d}}e=H[b+8>>2];G[f+2>>1]=e}G[f>>1]=e>>>16;e=d;break d}e=0;g:{switch(d-1|0){case 0:G[f>>1]=H[b+8>>2];e=d;break d;case 1:break g;default:break d}}e=H[b+8>>2];G[f+2>>1]=e>>>16;G[f>>1]=e;e=d;break d}d=0;if(!re(a,b,f)){break c}e=H[b+4>>2]}d=1;i=J[f>>1];h:{h=(e|0)<(h|0)?e:h;if((h|0)<=1){break h}e=1;while(1){if((i|0)==J[(d<<1)+f>>1]){e=e+1|0;d=e&65535;if((h|0)>(d|0)){continue}break h}break}c=H[a>>2];d=H[a+628>>2];k=g,l=H[rd(a,J[b>>1])+16>>2],H[k>>2]=l;Pb(d,c,288381,g);d=0;break c}G[c>>1]=i;d=1}if((g+32|0)==(f|0)){break a}Kb(f)}xb=g- -64|0;return d}function ou(a){var b=0,c=0,d=0,e=0;d=H[H[a>>2]+100>>2];b=H[a+300>>2];if(b){H[b+444>>2]=0;c=H[b+8>>2];e=H[b+24>>2];if(e){zb[H[c+8>>2]](c,e)}H[b+20>>2]=0;H[b+24>>2]=0;e=H[b+440>>2];if(e){zb[H[c+8>>2]](c,e)}H[b+440>>2]=0;H[b+432>>2]=0;H[b+436>>2]=0;e=H[b+396>>2];if(e){zb[H[c+8>>2]](c,e)}H[b+392>>2]=0;H[b+396>>2]=0;H[b>>2]=0;H[b+4>>2]=0;if(b){zb[H[c+8>>2]](c,b)}H[a+300>>2]=0}b=H[a+252>>2];if(b){zb[H[d+8>>2]](d,b)}H[a+248>>2]=0;H[a+252>>2]=0;b=H[a+260>>2];if(b){zb[H[d+8>>2]](d,b)}G[a+256>>1]=0;H[a+260>>2]=0;b=H[a+264>>2];if(b){c=H[a+292>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+292>>2]=0;c=H[a+288>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+288>>2]=0;c=H[a+280>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+280>>2]=0;c=H[a+276>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+276>>2]=0;c=H[a+284>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+284>>2]=0;H[a+272>>2]=0;H[a+264>>2]=0;H[a+268>>2]=0}b=H[a+132>>2];if(b){zb[H[d+8>>2]](d,b)}H[a+132>>2]=0;b=H[a+144>>2];if(b){zb[H[d+8>>2]](d,b)}H[a+136>>2]=0;H[a+140>>2]=0;H[a+124>>2]=0;H[a+128>>2]=0;H[a+144>>2]=0;H[a+148>>2]=0;H[a+152>>2]=0;H[a+304>>2]=-1;H[a+308>>2]=-1}function vh(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;A(+a);c=v(1)|0;d=v(0)|0;a:{b:{e=c>>>20&2047;if(e-969>>>0<63){j=e;break b}if(e>>>0<=968){return a+1}if(e>>>0<1033){break b}b=0;if(!d&(c|0)==-1048576){break a}if((e|0)==2047){return a+1}if((c|0)<0){c=xb-16|0;M[c+8>>3]=1.2882297539194267e-231;return M[c+8>>3]*1.2882297539194267e-231}c=xb-16|0;M[c+8>>3]=3.105036184601418e231;return M[c+8>>3]*3.105036184601418e231}b=M[94433];f=M[94432]*a+b;b=f-b;b=b*M[94435]+(b*M[94434]+a);a=b*b;g=a*a*(b*M[94439]+M[94438]);a=a*(b*M[94437]+M[94436]);A(+f);v(1)|0;h=v(0)|0;d=h<<4&2032;b=g+(a+(M[d+755568>>3]+b));e=d+755576|0;d=h<<13;c=0;i=H[e>>2]+c|0;d=d+H[e+4>>2]|0;d=c>>>0>i>>>0?d+1|0:d;e=i;if(!j){c:{if(!(h&-2147483648)){x(0,e|0);x(1,d-1058013184|0);a=+z();a=(a*b+a)*5.486124068793689e303;break c}c=xb-16|0;x(0,e|0);x(1,d+1071644672|0);g=+z();f=g*b;a=f+g;if(a<1){H[c+8>>2]=0;H[c+12>>2]=1048576;M[c+8>>3]=M[c+8>>3]*2.2250738585072014e-308;b=a+1;a=b+(f+(g-a)+(a+(1-b)))+-1;a=a==0?0:a}a=a*2.2250738585072014e-308}return a}x(0,e|0);x(1,d|0);a=+z();b=a*b+a}return b}function ima(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(b){if(!g){break k}if(!d){break j}c=Q(d)-Q(b)|0;if(c>>>0<=31){break i}break c}if((d|0)==1|d>>>0>1){break c}a=(a>>>0)/(g>>>0)|0;yb=0;break a}if(!a){break h}if(!d){break g}if(d-1&d){break g}a=b>>>fma(d)|0;yb=0;break a}if(!(g-1&g)){break f}h=(Q(g)+33|0)-Q(b)|0;e=0-h|0;break d}h=c+1|0;e=63-c|0;break d}a=(b>>>0)/(d>>>0)|0;yb=0;break a}c=Q(d)-Q(b)|0;if(c>>>0<31){break e}break c}if((g|0)==1){break b}c=fma(g);d=c&31;if((c&63)>>>0>=32){c=0;a=b>>>d|0}else{c=b>>>d|0;a=((1<>>d}yb=c;break a}h=c+1|0;e=63-c|0}c=h&63;f=c&31;if(c>>>0>=32){c=0;i=b>>>f|0}else{c=b>>>f|0;i=((1<>>f}f=c;c=e&63;e=c&31;if(c>>>0>=32){c=a<>>32-e|b<>>31;f=f<<1|i>>>31;j=m-(f+(c>>>0>e>>>0)|0)>>31;k=g&j;i=c-k|0;f=f-((d&j)+(c>>>0>>0)|0)|0;b=b<<1|a>>>31;a=l|a<<1;l=j&1;h=h-1|0;if(h){continue}break}}yb=b<<1|a>>>31;a=l|a<<1;break a}a=0;b=0}yb=b}return a}function $h(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=xb-32|0;f=H[a+68>>2];if(f>>>0>=2){i=H[a+80>>2];e=f-1|0;while(1){b=N(e,20)+i|0;H[c+24>>2]=H[b+16>>2];d=H[b+12>>2];H[c+16>>2]=H[b+8>>2];H[c+20>>2]=d;d=H[b+4>>2];H[c+8>>2]=H[b>>2];H[c+12>>2]=d;d=N(g,20)+i|0;H[b+16>>2]=H[d+16>>2];h=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=h;h=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=h;H[d+16>>2]=H[c+24>>2];b=H[c+20>>2];H[d+8>>2]=H[c+16>>2];H[d+12>>2]=b;b=H[c+12>>2];H[d>>2]=H[c+8>>2];H[d+4>>2]=b;e=e-1|0;g=g+1|0;if(e>>>0>g>>>0){continue}break}}a:{if(!I[a+62|0]){break a}b=H[a+68>>2];b=b>>>0>>0?b:f;if(b>>>0<2){break a}d=H[a+88>>2];e=b-1|0;g=0;while(1){a=d+N(e,20)|0;H[c+24>>2]=H[a+16>>2];b=H[a+12>>2];H[c+16>>2]=H[a+8>>2];H[c+20>>2]=b;b=H[a+4>>2];H[c+8>>2]=H[a>>2];H[c+12>>2]=b;b=d+N(g,20)|0;H[a+16>>2]=H[b+16>>2];f=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=f;f=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=f;H[b+16>>2]=H[c+24>>2];a=H[c+20>>2];H[b+8>>2]=H[c+16>>2];H[b+12>>2]=a;a=H[c+12>>2];H[b>>2]=H[c+8>>2];H[b+4>>2]=a;e=e-1|0;g=g+1|0;if(e>>>0>g>>>0){continue}break}}}function Qt(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;j=H[a+532>>2];if(!j){return 6}l=-1;d=H[j>>2];a:{if(!d){break a}e=H[j+4>>2];b:{if(e){m=b>>>0>e>>>0?e:b;d=e;while(1){h=0;i=65536;f=0;c:{if(!d){break c}while(1){d:{if(h>>>0>=m>>>0){i=i>>1;break d}f=H[(h<<2)+c>>2];f=g>>>h&1?f:65536-f|0;if((f|0)<=0){i=0;f=d;break c}if(f>>>0>65535){break d}i=Rb(i,f);e=H[j+4>>2]}d=e;f=d;h=h+1|0;if(h>>>0>>0){continue}break}}d=H[j+136>>2]+(g<<2)|0;if(H[d>>2]!=(i|0)){H[d>>2]=i;k=1}d=f;g=g+1|0;if(g>>>0>2]){continue}break}break b}i=d&3;c=H[j+136>>2];if(d-1>>>0>=3){j=d&-4;d=0;while(1){e=h<<2;g=e+c|0;if(H[g>>2]!=65536){H[g>>2]=65536;k=1}g=c+(e|4)|0;if(H[g>>2]!=65536){H[g>>2]=65536;k=1}g=c+(e|8)|0;if(H[g>>2]!=65536){H[g>>2]=65536;k=1}e=c+(e|12)|0;if(H[e>>2]!=65536){H[e>>2]=65536;k=1}h=h+4|0;d=d+4|0;if((j|0)!=(d|0)){continue}break}}if(!i){break b}while(1){d=c+(h<<2)|0;if(H[d>>2]!=65536){H[d>>2]=65536;k=1}h=h+1|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}}if(!k){break a}l=0;H[a+8>>2]=H[a+8>>2]&-32769|((b|0)!=0)<<15}return l|0}function hr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=H[a+44>>2];a:{if(f){h=H[a+4>>2];b:{if(!h){h=0;break b}i=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);if(!(!I[a+445|0]|(i|0)!=H[a+440>>2])){h=I[a+444|0];break b}F[a+445|0]=1;H[a+440>>2]=i;g=H[a+48>>2];n=g?g:f;c:{if((n|0)<=0){h=0;break c}l=h+40|0;o=i&255;p=i>>>16&255;i=i>>>8&255;m=2e5;h=0;g=0;while(1){f=I[(k|1)+l|0]-i|0;j=N(f,f);f=I[k+l|0]-o|0;j=j+N(f,f)|0;f=I[(k|2)+l|0]-p|0;f=j+N(f,f)|0;if(!f){h=g;break c}j=f;f=(f|0)<(m|0);m=f?j:m;h=f?g:h;k=k+4|0;g=g+1|0;if((n|0)!=(g|0)){continue}break}}F[a+444|0]=h}g=J[a+26>>1];if((g|0)==8){F[H[a+56>>2]+(N(H[a+52>>2],c)+b|0)|0]=h;break a}f=(H[a+56>>2]+N(H[a+52>>2],c)|0)+(N(b,g)>>3)|0;d:{switch(g-1|0){case 3:g=4-((b|0)%2<<2)&252;F[f|0]=I[f|0]&(15<>2]+N(H[a+52>>2],c)|0)+N(b,3)|0;F[g|0]=I[d|0];F[g+1|0]=I[d+1|0];F[g+2|0]=I[d+2|0]}if(e){te(a,b,c,I[d+3|0])}}function U$(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;a:{b:{c:{a=H[a+12>>2];f=H[a+4280>>2];if(f>>>0>b>>>0){f=f-b|0;e=H[a+4284>>2];if(f>>>0<=(e-a|0)-184>>>0){H[a+4280>>2]=b;H[a+4284>>2]=e-f;break c}f=0;if(bc(H[a>>2],0)){break a}H[a+12>>2]=0;H[a+16>>2]=0;H[a+104>>2]=0;H[a+48>>2]=0;H[a+36>>2]=0;H[a+40>>2]=0;F[a+44|0]=0;H[a- -64>>2]=9;e=a+4280|0;H[a+4288>>2]=e;H[a+4284>>2]=e;H[e>>2]=0}if(b>>>0<=f>>>0){break c}g=H[a+4284>>2];h=H[a+4288>>2]-g|0;b=b-f|0;e=h>>>0>>0;i=g;g=e?h:b;H[a+4284>>2]=i+g;H[a+4280>>2]=f+g;if(e){h=a+12|0;b=b-g|0;while(1){f=0;e=b>>>0<4096?b:4096;if(Jz(h,0,e)>>>0>>0){break a}H[a+4280>>2]=e+H[a+4280>>2];f=b>>>0>4096;b=b-e|0;if(f){continue}break}}if(d){break b}return 0}if(d){break b}return 0}g=a+184|0;j=a+12|0;e=H[a+4284>>2];h=H[a+4288>>2];f=0;while(1){i=e;e=h-e|0;b=d>>>0>e>>>0?e:d;Ob(c+f|0,i,b);H[a+4284>>2]=b+H[a+4284>>2];H[a+4280>>2]=b+H[a+4280>>2];f=b+f|0;if(d>>>0<=e>>>0){break a}H[a+4284>>2]=g;i=Jz(j,g,4096);e=H[a+4284>>2];h=i+e|0;H[a+4288>>2]=h;d=d-b|0;if(i){continue}break}}return f|0}function VL(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;a:{b:{c:{if(!I[a+24|0]){h=H[b>>2];break c}h=H[b>>2];d=a+28|0;if((h|0)!=H[d>>2]){break c}Eu(a);if(!I[a+24|0]){return 0}c=H[a+32>>2];break b}c=H[a+16>>2];d=I[c+12|0]|I[c+13|0]<<8|(I[c+14|0]<<16|I[c+15|0]<<24);i=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if(!i|(h|0)==-1){break a}j=c+20|0;k=h+1|0;d=i;d:{e:{while(1){g=d+l>>>1|0;e=N(g,12)+j|0;c=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);m=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=g;f=e-4|0;f=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);if((f<<24|f<<8&16711680|(f>>>8&65280|f>>>24))>>>0<=k>>>0){if(h>>>0>>0){break e}l=g+1|0}else{d=c}if(d>>>0>l>>>0){continue}break}c=0;break d}d=I[e+4|0]|I[e+5|0]<<8|(I[e+6|0]<<16|I[e+7|0]<<24);c=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24)}j=H[a>>2];if(h>>>0>=m>>>0){e=0;g=g+1|0;if((i|0)==(g|0)){break a}}F[a+24|0]=1;H[a+36>>2]=g;d=a+28|0;H[d>>2]=k;if(!(c>>>0>2]?c:0)){Eu(a);c=0;if(!I[a+24|0]){break b}c=H[a+32>>2];break b}H[a+32>>2]=c}e=c;H[b>>2]=H[d>>2]}return e|0}function Iu(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:{b=H[a+24>>2];if(b>>>0>65534){break b}i=H[a>>2];l=H[i+508>>2]+H[i+512>>2]|0;c=b+1|0;b=H[a+40>>2];c=b>>>0>>0?c:b;while(1){g=H[a+44>>2];c:{if(g>>>0>>0){break c}f=H[a+48>>2];d:{e=H[a+52>>2];if(!e){j=H[i+16>>2];b=f+g|0;if((b|0)<0){while(1){d=c+f&65535;if(j>>>0<=d>>>0){break c}if(d){break a}c=c+1|0;if(g>>>0>=c>>>0){continue}break c}}e=0-f|0;if(b>>>0<=65535){break d}h=65536-f|0;while(1){k=c+f|0;d=k&65535;e:{if(j>>>0<=d>>>0){b=e;if((k|0)<0){break e}b=h;if(k>>>0<65536){break e}break c}b=c;if(d){break a}}c=b+1|0;if(g>>>0>=c>>>0){continue}break}break c}b=e+(c-b<<1)|0;if(l>>>0>>0){break c}while(1){e=I[b+1|0]|I[b|0]<<8;if(e){d=f+e&65535;if(d){break a}}b=b+2|0;c=c+1|0;if(g>>>0>=c>>>0){continue}break}break c}while(1){h=c+f|0;d=h&65535;f:{if(j>>>0<=d>>>0){b=e;if((h|0)<0){break f}break c}b=c;if(d){break a}}c=b+1|0;if(g>>>0>=c>>>0){continue}break}}d=0;if((Ju(a,H[a+36>>2]+1|0)|0)<0){break b}b=H[a+40>>2];c=b>>>0>>0?c:b;continue}}c=-1}H[a+28>>2]=d;H[a+24>>2]=c}function EP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a=c;a:{if((d-a|0)<3){break a}}while(1){b:{if(e>>>0<=g>>>0|a>>>0>=d>>>0){break b}b=I[a|0];if(b>>>0>1114111){break b}f=a+1|0;c:{if(b<<24>>24>=0){break c}if(b>>>0<194){break b}if(b>>>0<=223){if((d-a|0)<2){break b}f=I[a+1|0];if((f&192)!=128|(f&63|b<<6&1984)>>>0>1114111){break b}f=a+2|0;break c}d:{e:{if(b>>>0<=239){if((d-a|0)<3){break b}h=I[a+2|0];f=I[a+1|0];if((b|0)==237){break e}if((b|0)==224){if((f&224)==160){break d}break b}if((f&192)!=128){break b}break d}if((d-a|0)<4|b>>>0>244|e-g>>>0<2){break b}h=I[a+2|0];f=I[a+1|0];f:{g:{switch(b-240|0){case 0:if((f+112&255)>>>0<48){break f}break b;case 4:if((f&240)==128){break f}break b;default:break g}}if((f&192)!=128){break b}}if((h&192)!=128){break b}i=I[a+3|0];if((i&192)!=128|(i&63|(h<<6&4032|(b<<18&1835008|(f&63)<<12)))>>>0>1114111){break b}g=g+1|0;f=a+4|0;break c}if((f&224)!=128){break b}}if((h&192)!=128|(h&63|(b<<12&61440|(f&63)<<6))>>>0>1114111){break b}f=a+3|0}a=f;g=g+1|0;continue}break}return a-c|0}function PX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{d=H[a+4>>2];h=H[a>>2];f=(d-h|0)/28|0;c=f+1|0;if(c>>>0<153391690){g=(H[a+8>>2]-h|0)/28|0;e=g<<1;c=g>>>0<76695844?c>>>0>>0?e:c:153391689;if(c>>>0>=153391690){break a}e=N(f,28);f=N(c,28);g=Qb(f);c=e+g|0;e=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=e;H[c+8>>2]=H[b+8>>2];H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[c+20>>2]=H[b+20>>2];e=H[b+16>>2];H[c+12>>2]=H[b+12>>2];H[c+16>>2]=e;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[c+24>>2]=H[b+24>>2];b=c+28|0;if((d|0)!=(h|0)){while(1){d=d-28|0;e=H[d+4>>2];c=c-28|0;H[c>>2]=H[d>>2];H[c+4>>2]=e;H[c+8>>2]=H[d+8>>2];H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[c+20>>2]=H[d+20>>2];e=H[d+16>>2];H[c+12>>2]=H[d+12>>2];H[c+16>>2]=e;H[d+12>>2]=0;H[d+16>>2]=0;H[d+20>>2]=0;H[c+24>>2]=H[d+24>>2];if((d|0)!=(h|0)){continue}break}d=H[a>>2]}H[a>>2]=c;H[a+8>>2]=f+g;c=H[a+4>>2];H[a+4>>2]=b;if((c|0)!=(d|0)){while(1){if(F[c-5|0]<0){Kb(H[c-16>>2])}a=c-28|0;if(F[c-17|0]<0){Kb(H[a>>2])}c=a;if((d|0)!=(c|0)){continue}break}}if(d){Kb(d)}return}bd(a);X()}Td(239085);X()}function yy(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;d=3;h=H[b+188>>2];a:{if(!h){break a}f=H[b+192>>2];while(1){if(H[f+(e<<4)>>2]==(c|0)){d=83;c=H[(f+(e<<4)|0)+12>>2];e=H[a+8>>2];if(c>>>0>>0){break a}if(ud(a,c-e|0)){break a}H[g+12>>2]=0;c=Pe(a,g+12|0);d=H[g+12>>2];if(d){break a}i=c&-256;if((i|256)==256){d=b+196|0;f=c&4;b:{if(f){d=Ic(a,29712,d);break b}d=Ic(a,29776,d)}H[g+12>>2]=d;if(d){break a}d=H[b+204>>2];e=d>>31;if((d^e)-e>>>0>=32768){H[b+204>>2]=(d|0)<0?-32767:32767}d=H[b+208>>2];e=d>>31;if((d^e)-e>>>0>=32768){H[b+208>>2]=(d|0)<0?-32767:32767}e=b+216|0;d=Ic(a,f?29840:29872,e);H[g+12>>2]=d;if(d){break a}h=c&255;f=b+232|0;d=Ep(a,h,f);H[g+12>>2]=d;if(d){break a}c=b+248|0;if((i|0)==256){d=Ep(a,h,c);H[g+12>>2]=d;if(d){break a}d=Ep(a,h,b+264|0);break a}a=H[e+4>>2];H[c>>2]=H[e>>2];H[c+4>>2]=a;a=H[e+12>>2];H[c+8>>2]=H[e+8>>2];H[c+12>>2]=a;a=H[f+12>>2];H[b+272>>2]=H[f+8>>2];H[b+276>>2]=a;a=H[f+4>>2];H[b+264>>2]=H[f>>2];H[b+268>>2]=a}d=0;break a}e=e+1|0;if((h|0)!=(e|0)){continue}break}}xb=g+16|0;return d}function qi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;A(+a);c=v(1)|0;c=c&2147483647;d=!(v(0)|0)&(c|0)==2146435072|c>>>0<2146435072;A(+b);c=v(1)|0;c=c&2147483647;if(!(d&(!(v(0)|0)&(c|0)==2146435072|c>>>0<2146435072))){return a+b}A(+b);d=v(1)|0;h=v(0)|0;e=d;if(!(h|d-1072693248)){return Bp(a)}A(+a);c=v(1)|0;d=v(0)|0;i=e>>>30&2;f=i|c>>>31;a:{c=c&2147483647;b:{if(!(d|c)){c:{switch(f-2|0){case 0:return 3.141592653589793;case 1:break c;default:break b}}return-3.141592653589793}d=e&2147483647;if(!(d|h)){break a}d:{if((d|0)==2146435072){if((c|0)!=2146435072){break d}return M[(f<<3)+752544>>3]}if(!((c|0)!=2146435072&d+67108864>>>0>=c>>>0)){break a}e:{if(i){g=0;if(d>>>0>c+67108864>>>0){break e}}g=Bp(P(a/b))}a=g;f:{switch(f|0){case 1:return-a;case 2:return 3.141592653589793-(a+-1.2246467991473532e-16);case 0:break b;default:break f}}return a+-1.2246467991473532e-16+-3.141592653589793}a=M[(f<<3)+752576>>3]}return a}A(1.5707963267948966);c=v(1)|0;e=v(0)|0;A(+a);d=v(1)|0;v(0)|0;x(0,e|0);x(1,c&2147483647|d&-2147483648);return+z()}function bda(a){a=a|0;var b=0,c=0;b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;a:{if(c){break a}if(zb[H[b+12>>2]](a)|0){break a}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=216;c=H[b+4>>2]-1|0;H[b+4>>2]=c;b:{if(c){break b}if(zb[H[b+12>>2]](a)|0){break b}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}if(H[a+88>>2]){Tk(a,0)}if(H[a+92>>2]){Tk(a,1)}if(H[a+96>>2]){Tk(a,2)}if(H[a+100>>2]){Tk(a,3)}c:{if(H[a+212>>2]){break c}if(H[a+120>>2]){tg(a,0,0)}if(H[a+136>>2]){tg(a,0,1)}if(H[a+124>>2]){tg(a,1,0)}if(H[a+140>>2]){tg(a,1,1)}if(H[a+128>>2]){tg(a,2,0)}if(H[a+144>>2]){tg(a,2,1)}if(H[a+132>>2]){tg(a,3,0)}if(!H[a+148>>2]){break c}tg(a,3,1)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;d:{if(c){break d}if(zb[H[b+12>>2]](a)|0){break d}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=217;c=H[b+4>>2]-1|0;H[b+4>>2]=c;e:{if(c){break e}if(zb[H[b+12>>2]](a)|0){break e}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}}function Og(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);F[b+12|0]=c;a:{if(c){break a}while(1){d=H[b+8>>2];if(I[d+12|0]){break a}b:{c=H[d+8>>2];e=H[c>>2];c:{if((d|0)==(e|0)){e=H[c+4>>2];if(!(!e|I[e+12|0])){break b}d:{if(H[d>>2]==(b|0)){b=d;break d}b=H[d+4>>2];a=H[b>>2];H[d+4>>2]=a;if(a){H[a+8>>2]=d;c=H[d+8>>2]}H[b+8>>2]=c;a=H[d+8>>2];H[(((d|0)!=H[a>>2])<<2)+a>>2]=b;H[b>>2]=d;H[d+8>>2]=b;c=H[b+8>>2]}F[b+12|0]=1;F[c+12|0]=0;a=H[c>>2];b=H[a+4>>2];H[c>>2]=b;if(b){H[b+8>>2]=c}H[a+8>>2]=H[c+8>>2];b=H[c+8>>2];H[((H[b>>2]!=(c|0))<<2)+b>>2]=a;H[a+4>>2]=c;b=c+8|0;break c}if(!(I[e+12|0]|!e)){break b}e:{if(H[d>>2]!=(b|0)){b=d;break e}a=H[b+4>>2];H[d>>2]=a;if(a){H[a+8>>2]=d;c=H[d+8>>2]}H[b+8>>2]=c;a=H[d+8>>2];H[(((d|0)!=H[a>>2])<<2)+a>>2]=b;H[b+4>>2]=d;H[d+8>>2]=b;c=H[b+8>>2]}F[b+12|0]=1;F[c+12|0]=0;a=H[c+4>>2];b=H[a>>2];H[c+4>>2]=b;if(b){H[b+8>>2]=c}H[a+8>>2]=H[c+8>>2];b=H[c+8>>2];H[((H[b>>2]!=(c|0))<<2)+b>>2]=a;H[a>>2]=c;b=c+8|0}H[b>>2]=a;break a}F[d+12|0]=1;d=(a|0)==(c|0);F[c+12|0]=d;F[e+12|0]=1;b=c;if(!d){continue}break}}}function Mq(a,b,c){var d=0,e=0,f=0,g=0;d=a>>>24|0;a:{if(!(d-123>>>0>=4294967238&d-91>>>0>5)){F[b+3|0]=93;F[b|0]=91;F[b+2|0]=I[(d&15)+262672|0];F[b+1|0]=I[(a>>>28|0)+262672|0];d=4;break a}F[b|0]=d;d=1}e=a>>>16|0;f=e&255;b:{if(!(f-123>>>0<4294967238|f-91>>>0<6)){f=d;break b}F[(b+d|0)+1|0]=I[(a>>>20&15)+262672|0];F[(d|2)+b|0]=I[(e&15)+262672|0];f=d+3|0;F[f+b|0]=93;e=91}F[b+d|0]=e;g=f+1|0;d=a>>>8|0;e=d&255;c:{if(!(e-123>>>0<4294967238|e-91>>>0<6)){e=g;break c}e=f+4|0;F[e+b|0]=93;f=b+f|0;F[f+3|0]=I[(d&15)+262672|0];F[f+2|0]=I[(a>>>12&15)+262672|0];d=91}F[b+g|0]=d;f=e+1|0;d=a&255;d:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){d=f;break d}d=e+4|0;F[d+b|0]=93;e=b+e|0;F[e+3|0]=I[(a&15)+262672|0];F[e+2|0]=I[(a>>>4&15)+262672|0];a=91}F[b+f|0]=a;a=d+1|0;e:{if(!c){break e}F[a+b|0]=58;F[(b+d|0)+2|0]=32;a=d+3|0;d=0;while(1){f=c+d|0;e=I[f|0];if(!e){break e}F[a+b|0]=e;e=a+1|0;g=I[f+1|0];if(!g){a=e;break e}F[b+e|0]=g;e=a+2|0;f=I[f+2|0];if(!f){a=e;break e}F[b+e|0]=f;a=a+3|0;d=d+3|0;if((d|0)!=63){continue}break}}F[a+b|0]=0}function th(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-208|0;xb=e;H[e+8>>2]=1;H[e+12>>2]=0;i=N(b,c);a:{if(!i){break a}H[e+16>>2]=c;H[e+20>>2]=c;j=0-c|0;b=c;f=b;h=2;while(1){g=b;b=(c+f|0)+b|0;H[(e+16|0)+(h<<2)>>2]=b;h=h+1|0;f=g;if(b>>>0>>0){continue}break}g=(a+i|0)+j|0;b:{if(g>>>0<=a>>>0){h=0;b=1;g=0;break b}h=1;b=1;while(1){c:{if((h&3)==3){wp(a,c,d,b,e+16|0);om(e+8|0,2);b=b+2|0;break c}f=b-1|0;d:{if(K[(e+16|0)+(f<<2)>>2]>=g-a>>>0){nm(a,c,d,e+8|0,b,0,e+16|0);break d}wp(a,c,d,b,e+16|0)}if((b|0)==1){mm(e+8|0,1);b=0;break c}mm(e+8|0,f);b=1}f=H[e+8>>2];h=f|1;H[e+8>>2]=h;a=a+c|0;if(g>>>0>a>>>0){continue}break}h=f>>>0>1;g=H[e+12>>2]!=0}nm(a,c,d,e+8|0,b,0,e+16|0);if(!(g?1:h|(b|0)!=1)){break a}while(1){e:{if((b|0)<=1){f=e+8|0;g=Tx(f);om(f,g);h=H[e+8>>2];b=b+g|0;break e}f=e+8|0;mm(f,2);H[e+8>>2]=H[e+8>>2]^7;om(f,1);k=a+j|0;i=e+16|0;g=b-2|0;nm(k-H[i+(g<<2)>>2]|0,c,d,f,b-1|0,1,i);mm(f,1);h=H[e+8>>2]|1;H[e+8>>2]=h;nm(k,c,d,f,g,1,i);b=g}a=a+j|0;if(H[e+12>>2]|((b|0)!=1|(h|0)!=1)){continue}break}}xb=e+208|0}function r6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-32|0;xb=c;e=I[b+11|0];d=e<<24>>24<0;f=H[b+4>>2];a:{if(!(d?f:e)){py(c+16|0);break a}if(!d){H[c+24>>2]=H[b+8>>2];d=H[b+4>>2];H[c+16>>2]=H[b>>2];H[c+20>>2]=d;break a}df(c+16|0,H[b>>2],f)}H[197455]=0;b=aa(899,16)|0;d=H[197455];H[197455]=0;b:{c:{d:{e:{f:{if((d|0)!=1){H[c>>2]=b;H[c+4>>2]=3;H[c+8>>2]=-2147483644;H[197455]=0;Mb(b,398404,3);d=H[197455];H[197455]=0;if((d|0)==1){break c}H[b+12>>2]=0;H[197455]=0;ga(1696,a|0,c+16|0,c|0);b=H[197455];H[197455]=0;if((b|0)==1){break f}if(F[c+11|0]<0){Kb(H[c>>2])}if(F[c+27|0]<0){Kb(H[c+16>>2])}b=I[a+11|0];if(!(b<<24>>24<0?H[a+4>>2]:b)){break b}H[197455]=0;b=aa(1697,a|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){if(!b){break b}H[197455]=0;aa(1698,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break b}}b=$()|0;_()|0;if(F[a+11|0]>=0){break d}Kb(H[a>>2]);ea(b|0);X()}b=$()|0;_()|0;break e}b=$()|0;_()|0;if(F[c+11|0]>=0){break e}Kb(H[c>>2])}if(F[c+27|0]>=0){break d}Kb(H[c+16>>2])}ea(b|0);X()}ha(0)|0;_()|0;Zb();X()}xb=c+32|0}function SV(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=xb-16|0;xb=e;a:{b:{c:{if(d){H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[197455]=0;ga(3282,b|0,c|0,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){break c}b=$()|0;_()|0;if(F[a+11|0]<0){Kb(H[a>>2])}ea(b|0);X()}d=c+1|0;f=Qb((d|0)!=(d&1073741823)?-1:d<<2);d:{if((c|0)<=0){break d}d=0;if(c-1>>>0>=3){h=c&-4;while(1){H[(d<<2)+f>>2]=I[b+d|0];g=d|1;H[(g<<2)+f>>2]=I[b+g|0];g=d|2;H[(g<<2)+f>>2]=I[b+g|0];g=d|3;H[(g<<2)+f>>2]=I[b+g|0];d=d+4|0;i=i+4|0;if((h|0)!=(i|0)){continue}break}}h=c&3;if(!h){break d}while(1){H[(d<<2)+f>>2]=I[b+d|0];d=d+1|0;j=j+1|0;if((h|0)!=(j|0)){continue}break}}H[(c<<2)+f>>2]=0;if(c>>>0>=1073741808){break b}e:{f:{if(c>>>0>=2){b=c+4&-4;d=Qb(b<<2);H[e+8>>2]=b|-2147483648;H[e>>2]=d;H[e+4>>2]=c;break f}F[e+11|0]=c;d=e;if(!c){break e}}H[197455]=0;Mb(d,f,c);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(c<<2)+d>>2]=0;Kb(f);H[a+8>>2]=H[e+8>>2];b=H[e+4>>2];H[a>>2]=H[e>>2];H[a+4>>2]=b}xb=e+16|0;return}qd(e);X()}ha(0)|0;_()|0;Zb();X()}function yX(a){a=a|0;var b=0,c=0,d=0,e=0;b=xb-32|0;xb=b;zb[H[H[a>>2]+60>>2]](a);a:{b:{c:{d:{e:{f:{c=I[a+79|0];g:{if(!(c<<24>>24<0?H[a+72>>2]:c)){break g}d=H[a+84>>2];rj(b,433956,a+68|0);H[197455]=0;c=da(1699,b|0,433984)|0;e=H[197455];H[197455]=0;if((e|0)==1){break f}H[b+24>>2]=H[c+8>>2];e=H[c+4>>2];H[b+16>>2]=H[c>>2];H[b+20>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1761,d|0,b+16|0);c=H[197455];H[197455]=0;if((c|0)==1){break e}if(F[b+27|0]<0){Kb(H[b+16>>2])}if(F[b+11|0]>=0){break g}Kb(H[b>>2])}c=H[a+84>>2];a=Qb(16);H[b+16>>2]=a;H[b+20>>2]=3;H[b+24>>2]=-2147483644;H[197455]=0;Mb(a,433496,3);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a+12>>2]=0;H[197455]=0;ka(1760,c|0,b+16|0,0,0);a=H[197455];H[197455]=0;if((a|0)==1){break c}if(F[b+27|0]<0){Kb(H[b+16>>2])}xb=b+32|0;return}a=$()|0;_()|0;break d}a=$()|0;_()|0;if(F[b+27|0]>=0){break d}Kb(H[b+16>>2])}if(F[b+11|0]>=0){break b}Kb(H[b>>2]);ea(a|0);X()}a=$()|0;_()|0;if(F[b+27|0]>=0){break b}Kb(H[b+16>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function c1(a){a=a|0;var b=0,c=0,d=0,e=0;b=xb-32|0;xb=b;zb[H[H[a>>2]+60>>2]](a);a:{b:{c:{d:{e:{f:{c=I[a+79|0];g:{if(!(c<<24>>24<0?H[a+72>>2]:c)){break g}d=H[a+84>>2];rj(b,404424,a+68|0);H[197455]=0;c=da(1699,b|0,404620)|0;e=H[197455];H[197455]=0;if((e|0)==1){break f}H[b+24>>2]=H[c+8>>2];e=H[c+4>>2];H[b+16>>2]=H[c>>2];H[b+20>>2]=e;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[197455]=0;ba(1761,d|0,b+16|0);c=H[197455];H[197455]=0;if((c|0)==1){break e}if(F[b+27|0]<0){Kb(H[b+16>>2])}if(F[b+11|0]>=0){break g}Kb(H[b>>2])}c=H[a+84>>2];a=Qb(16);H[b+16>>2]=a;H[b+20>>2]=3;H[b+24>>2]=-2147483644;H[197455]=0;Mb(a,400916,3);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a+12>>2]=0;H[197455]=0;ka(1760,c|0,b+16|0,0,0);a=H[197455];H[197455]=0;if((a|0)==1){break c}if(F[b+27|0]<0){Kb(H[b+16>>2])}xb=b+32|0;return}a=$()|0;_()|0;break d}a=$()|0;_()|0;if(F[b+27|0]>=0){break d}Kb(H[b+16>>2])}if(F[b+11|0]>=0){break b}Kb(H[b>>2]);ea(a|0);X()}a=$()|0;_()|0;if(F[b+27|0]>=0){break b}Kb(H[b+16>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function afa(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;a:{if((d|0)<=0){break a}g=H[a+112>>2];if(!g){break a}h=H[a+120>>2];if((h|0)<=0){if(d-1>>>0>=3){i=d&-4;b=0;while(1){a=e<<2;Nb(H[a+c>>2],0,g);Nb(H[(a|4)+c>>2],0,g);Nb(H[(a|8)+c>>2],0,g);Nb(H[(a|12)+c>>2],0,g);e=e+4|0;b=b+4|0;if((i|0)!=(b|0)){continue}break}}b=d&3;if(!b){break a}a=0;while(1){Nb(H[(e<<2)+c>>2],0,g);e=e+1|0;a=a+1|0;if((b|0)!=(a|0)){continue}break}break a}j=H[H[a+480>>2]+24>>2];q=h&-4;p=h&3;r=h-1>>>0<3;while(1){a=k<<2;l=H[a+c>>2];i=H[a+b>>2];m=g;while(1){n=0;f=0;a=0;e=i;o=0;if(!r){while(1){s=f;f=a<<2;f=(((s+I[H[f+j>>2]+I[e|0]|0]|0)+I[H[(f|4)+j>>2]+I[e+1|0]|0]|0)+I[H[(f|8)+j>>2]+I[e+2|0]|0]|0)+I[H[(f|12)+j>>2]+I[e+3|0]|0]|0;a=a+4|0;e=e+4|0;o=o+4|0;if((q|0)!=(o|0)){continue}break}}if(p){while(1){f=I[H[(a<<2)+j>>2]+I[e|0]|0]+f|0;a=a+1|0;e=e+1|0;n=n+1|0;if((n|0)!=(p|0)){continue}break}}F[l|0]=f;l=l+1|0;i=i+h|0;m=m-1|0;if(m){continue}break}k=k+1|0;if((k|0)!=(d|0)){continue}break}}}function Du(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=xb-16|0;xb=j;d=I[b+3|0];g=d|(I[b+1|0]<<16|I[b|0]<<24|I[b+2|0]<<8);if(g){h=d&3;e=b+7|0;a:{if(g-1>>>0<3){d=e;break a}l=g-h|0;while(1){f=(I[e+12|0]+(I[e+8|0]+(I[e+4|0]+(I[e|0]+f|0)|0)|0)|0)+4|0;d=e+16|0;e=d;k=k+4|0;if((l|0)!=(k|0)){continue}break}}if(h){while(1){f=(I[d|0]+f|0)+1|0;d=d+4|0;i=i+1|0;if((h|0)!=(i|0)){continue}break}}d=f+1|0}else{d=1}e=H[a+28>>2];H[j+12>>2]=0;b:{c:{d:{if(d>>>0<=e>>>0){c=H[a+32>>2];break d}H[a+36>>2]=c;c=Ub(c,4,e,d,H[a+32>>2],j+12|0);H[a+32>>2]=c;if(H[j+12>>2]){break c}H[a+28>>2]=d}d=c;if(g){while(1){e=I[b+6|0]|(I[b+5|0]<<8|I[b+4|0]<<16);i=0;a=I[b+7|0];f=a+1|0;h=f&7;if(h){while(1){H[d>>2]=e;f=f-1|0;d=d+4|0;e=e+1|0;i=i+1|0;if((h|0)!=(i|0)){continue}break}}if(a>>>0>=7){while(1){H[d>>2]=e;H[d+28>>2]=e+7;H[d+24>>2]=e+6;H[d+20>>2]=e+5;H[d+16>>2]=e+4;H[d+12>>2]=e+3;H[d+8>>2]=e+2;H[d+4>>2]=e+1;d=d+32|0;e=e+8|0;f=f-8|0;if(f){continue}break}}b=b+4|0;g=g-1|0;if(g){continue}break}}H[d>>2]=0;break b}c=0}xb=j+16|0;return c}function tQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=H[a+4>>2]-H[a>>2]>>2;if(d>>>0>>0){h=xb-32|0;xb=h;a:{b:{f=b-d|0;c:{if(f>>>0<=H[a+8>>2]-H[a+4>>2]>>2>>>0){So(a,f);break c}g=a+16|0;d=h+8|0;c=xb-16|0;xb=c;e=(H[a+4>>2]-H[a>>2]>>2)+f|0;H[c+12>>2]=e;d:{b=Yv();if(e>>>0<=b>>>0){e=H[a+8>>2]-H[a>>2]>>2;if(e>>>0>>1>>>0){H[c+8>>2]=e<<1;b=xb-16|0;xb=b;xb=b+16|0;b=c+12|0;e=c+8|0;b=H[(K[e>>2]>2]?b:e)>>2]}xb=c+16|0;break d}bd(a);X()}e=H[a+4>>2]-H[a>>2]>>2;c=xb-16|0;xb=c;H[c+12>>2]=0;H[d+12>>2]=0;H[d+16>>2]=g;if(b){i=Xv(H[d+16>>2],b)}H[d>>2]=i;g=(e<<2)+i|0;H[d+8>>2]=g;H[d+4>>2]=g;H[d+12>>2]=(b<<2)+i;xb=c+16|0;c=xb-16|0;xb=c;H[c>>2]=H[d+8>>2];b=H[d+8>>2];H[c+8>>2]=d+8;H[c+4>>2]=b+(f<<2);b=H[c>>2];while(1){if(H[c+4>>2]!=(b|0)){H[H[c>>2]>>2]=0;b=H[c>>2]+4|0;H[c>>2]=b;continue}break}H[H[c+8>>2]>>2]=H[c>>2];xb=c+16|0;H[197455]=0;ba(3550,a|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break b}Tv(d)}xb=h+32|0;break a}a=$()|0;_()|0;Tv(d);ea(a|0);X()}return}if(b>>>0>>0){Uv(a,H[a>>2]+(b<<2)|0)}}function fka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+12>>2];H[d>>2]=0;a:{if(!(!b|!c)){f=1;if(zb[H[e+36>>2]](e,b,c,d,H[e+68>>2])|0){break a}}if(I[H[a>>2]+152|0]&16){return 0}f=0;b:{c:{switch(c-1460|0){case 0:if((b|0)!=1497){break a}H[d>>2]=64285;break b;case 3:if((b|0)!=1488){if((b|0)!=1522){break a}H[d>>2]=64287;break b}H[d>>2]=64302;break b;case 4:if((b|0)!=1488){break a}H[d>>2]=64303;break b;case 5:if((b|0)!=1493){break a}H[d>>2]=64331;break b;case 8:a=b-1488|0;if(a>>>0<=26){H[d>>2]=H[(a<<2)+128448>>2];return 131817343>>>a&1}d:{switch(b-64298|0){case 0:H[d>>2]=64300;break b;case 1:break d;default:break a}}H[d>>2]=64301;break b;case 11:e:{switch(b-1489|0){case 0:H[d>>2]=64332;break b;case 10:H[d>>2]=64333;break b;case 19:break e;default:break a}}H[d>>2]=64334;break b;case 13:if((b|0)!=64329){if((b|0)!=1513){break a}H[d>>2]=64298;break b}H[d>>2]=64300;break b;case 14:break c;default:break a}}if((b|0)!=64329){if((b|0)!=1513){break a}H[d>>2]=64299;break b}H[d>>2]=64301}f=1}return f|0}function $r(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=J[b>>1];f=J[a>>1];a:{b:{c:{d:{a=H[c+4>>2];if((a|0)!=131072){if((a|0)!=65536){break a}b=0;a=0;if(d>>>0<=257){a=d<<2;c=H[a+122816>>2];h=c+119104|0;a=H[a+122820>>2]+(c^-1)|0}if(f>>>0<=257){break d}c=0;break b}b=0;g=H[c+8>>2];e=I[g|0]|I[g+1|0]<<8;e=(e<<8|e>>>8)&65535;a=0;e:{if(e>>>0<=d>>>0){break e}a=(d<<1)+g|0;a=I[a+2|0]|I[a+3|0]<<8;d=(a<<8|a>>>8)&65535;if(d>>>0<=257){a=d<<2;d=H[a+122816>>2];h=d+119104|0;a=H[a+122820>>2]+(d^-1)|0;break e}d=d-258|0;a=0;if(d>>>0>=K[c+16>>2]){break e}a=H[c+24>>2]+H[H[c+20>>2]+(d<<2)>>2]|0;h=a+1|0;a=I[a|0]}if(f>>>0>>0){break c}c=0;break b}c=f<<2;b=H[c+122816>>2];c=H[c+122820>>2]+(b^-1)|0;b=b+119104|0;break b}b=(f<<1)+g|0;b=I[b+2|0]|I[b+3|0]<<8;d=(b<<8|b>>>8)&65535;if(d>>>0<=257){c=d<<2;b=H[c+122816>>2];c=H[c+122820>>2]+(b^-1)|0;b=b+119104|0;break b}b=0;d=d-258|0;if(d>>>0>=K[c+16>>2]){c=0;break b}c=H[c+24>>2]+H[H[c+20>>2]+(d<<2)>>2]|0;b=c+1|0;c=I[c|0]}if((a|0)!=(c|0)){return c-a|0}if(!a){break a}i=md(b,h,a)}return i}function wS(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;f=xb-16|0;xb=f;be(a,H[a+8>>2]);g=H[a+8>>2];d=H[a>>2];H[f+12>>2]=d;a:{if(d>>>0>=g>>>0){break a}b:{c:{d:{e=I[d|0];if((e|0)==91){i=93}else{if((e|0)!=123){break d}i=125}d=d+1|0;H[f+12>>2]=d;if(d>>>0>=g>>>0){break a}e:{if(!c){while(1){be(f+12|0,g);e=H[f+12>>2];if(g>>>0<=e>>>0){d=e;break a}if(I[e|0]==(i|0)){break c}fg(f+12|0,g,0);d=H[f+12>>2];if((e|0)==(d|0)){break e}h=h+1|0;if(d>>>0>>0){continue}break}break a}b=(b|0)>0?b:0;while(1){be(f+12|0,g);e=H[f+12>>2];if(g>>>0<=e>>>0){d=e;break a}if(I[e|0]==(i|0)){break c}if((b|0)==(h|0)){d=e;h=b;break a}j=(h<<1)+c|0,k=fg(f+12|0,g,0)>>>16|0,G[j>>1]=k;d=H[f+12>>2];if((e|0)==(d|0)){break e}h=h+1|0;if(d>>>0>>0){continue}break}break a}h=-1;d=e;break a}be(f+12|0,g);e=H[f+12>>2];if(g>>>0<=e>>>0){d=e;break a}if(!I[e|0]){break c}if(!c|(b|0)>0){break b}d=e;break a}d=e+1|0;break a}j=c?c:f+10|0,k=fg(f+12|0,g,0)>>>16|0,G[j>>1]=k;d=H[f+12>>2];h=(e|0)==(d|0)?-1:1}H[a>>2]=d;xb=f+16|0;return h|0}function LD(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;e=H[a+12>>2];f=H[a+8>>2];if((e|0)!=(f|0)){c=I[b+11|0];d=c<<24>>24<0;j=d?H[b>>2]:b;i=d?H[b+4>>2]:c;c=f;while(1){g=I[c+11|0];d=g<<24>>24;b=(d|0)<0;a:{if(((b?H[c+4>>2]:g)|0)!=(i|0)){break a}h=H[c>>2];b:{if(!b){if(!d){break b}b=c;d=j;if(I[d|0]!=(h&255)){break a}while(1){g=g-1|0;if(!g){break b}h=I[d+1|0];k=I[b+1|0];b=b+1|0;d=d+1|0;if((h|0)==(k|0)){continue}break}break a}if(!i){break b}if(md(b?h:c,j,i)){break a}}b=H[c+12>>2];if(b){Kb(b);H[c+12>>2]=0;f=H[a+8>>2];e=H[a+12>>2]}b=N((c-f|0)/20|0,20)+f|0;d=b+20|0;c:{if((e|0)!=(d|0)){while(1){if(F[b+11|0]<0){Kb(H[b>>2])}c=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=c;H[b+8>>2]=H[d+8>>2];F[d+11|0]=0;F[d|0]=0;c=H[d+16>>2];H[b+12>>2]=H[d+12>>2];H[b+16>>2]=c;b=b+20|0;d=d+20|0;if((e|0)!=(d|0)){continue}break}e=H[a+12>>2];if((e|0)==(b|0)){break c}}while(1){c=e-20|0;if(F[e-9|0]<0){Kb(H[c>>2])}e=c;if((c|0)!=(b|0)){continue}break}}H[a+12>>2]=b;return 1}c=c+20|0;if((e|0)!=(c|0)){continue}break}}return 0}function B8(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=H[a+584>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)<=65536){n:{switch(b-34908|0){case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break n}}if((b|0)==347){break m}if((b|0)!=530){break b}Ym(a,0,0);if(H[d+932>>2]|!H[d+16>>2]|J[a+90>>1]!=6){break g}H[d+932>>2]=1;if(!(H[a+12>>2]>>>10&1)){break i}if(xB(a,0)){break h}break g}switch(b-65537|0){case 2:break j;case 1:break k;case 0:break l;default:break b}}H[H[c>>2]>>2]=H[d+916>>2];H[H[c+4>>2]>>2]=H[d+912>>2];a=1;break a}H[H[c>>2]>>2]=H[d+920>>2];a=1;break a}H[H[c>>2]>>2]=H[d+924>>2];a=1;break a}H[H[c>>2]>>2]=H[d+928>>2];a=1;break a}if(!yB(a,0)){break g}}b=J[d+834>>1];H[e+4>>2]=J[d+836>>1];H[e>>2]=b;rc(a,530,e);H[a+480>>2]=-1}a=zb[H[d+892>>2]](a,530,c)|0;break a}H[H[c>>2]>>2]=H[d+936>>2];a=1;break a}H[H[c>>2]>>2]=H[d+940>>2];a=1;break a}H[H[c>>2]>>2]=H[d+944>>2];a=1;break a}H[H[c>>2]>>2]=H[d+948>>2];a=1;break a}a=zb[H[d+892>>2]](a,b,c)|0}xb=e+16|0;return a|0}function Oj(a){var b=0,c=0,d=0,e=0;b=-2;a:{if(!a|!H[a+32>>2]){break a}e=H[a+36>>2];if(!e){break a}c=H[a+28>>2];if(!c|H[c>>2]!=(a|0)){break a}b:{c:{d=H[c+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break a;case 0:case 12:case 16:case 34:case 46:case 56:break b;default:break c}}if((d|0)==666){break b}if((d|0)!=42){break a}}b=H[c+8>>2];if(b){zb[e|0](H[a+40>>2],b);c=H[a+28>>2]}b=H[c+68>>2];if(b){zb[H[a+36>>2]](H[a+40>>2],b);c=H[a+28>>2]}b=H[c+64>>2];if(b){zb[H[a+36>>2]](H[a+40>>2],b);c=H[a+28>>2]}b=H[c+56>>2];if(b){zb[H[a+36>>2]](H[a+40>>2],b);c=H[a+28>>2]}zb[H[a+36>>2]](H[a+40>>2],c);H[a+28>>2]=0;b=(d|0)==113?-3:0}return b}function pi(a,b){var c=0,d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;a:{b:{if(!ie(239474,F[b|0])){H[197018]=28;break b}d=2;if(!ie(b,43)){d=I[b|0]!=114}d=ie(b,120)?d|128:d;d=ie(b,101)?d|524288:d;e=d;g=d|64;d=I[b|0];e=(d|0)==114?e:g;e=(d|0)==119?e|512:e;H[f>>2]=438;a=Wa(-100,a|0,((d|0)==97?e|1024:e)|32768,f|0)|0;if(a>>>0>=4294963201){H[197018]=0-a;a=-1}if((a|0)<0){break a}d=xb-32|0;xb=d;c:{d:{e:{if(!ie(239474,F[b|0])){H[197018]=28;break e}c=Tb(1176);if(c){break d}}b=0;break c}Nb(c,0,144);if(!ie(b,43)){H[c>>2]=I[b|0]==114?8:4}f:{if(I[b|0]!=97){b=H[c>>2];break f}b=Va(a|0,3,0)|0;if(!(b&1024)){H[d+16>>2]=b|1024;Va(a|0,4,d+16|0)|0}b=H[c>>2]|128;H[c>>2]=b}H[c+80>>2]=-1;H[c+48>>2]=1024;H[c+60>>2]=a;H[c+44>>2]=c+152;g:{if(b&8){break g}H[d>>2]=d+24;if(pb(a|0,21523,d|0)|0){break g}H[c+80>>2]=10}H[c+40>>2]=3319;H[c+36>>2]=3320;H[c+32>>2]=3321;H[c+12>>2]=3322;if(!I[788085]){H[c+76>>2]=-1}H[c+56>>2]=H[197036];b=H[197036];if(b){H[b+52>>2]=c}H[197036]=c;b=c}xb=d+32|0;c=b;if(c){break a}Oa(a|0)|0}c=0}xb=f+16|0;return c}function fL(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;f=xb-16|0;xb=f;e=zb[H[a+516>>2]](a,1801810542,b,f+12|0)|0;a:{if(e){break a}e=142;c=H[f+12>>2];if(c>>>0<4){break a}e=Ke(b,c,a+808|0);if(e){break a}c=H[f+12>>2];H[a+812>>2]=c;e=0;d=H[a+808>>2];b=I[d+2|0]<<8|I[d+3|0];j=b>>>0<32?b:32;b:{if(!j){break b}k=c+d|0;h=d+4|0;while(1){b=h;if(b+6>>>0>k>>>0){break b}c=I[b+3|0]|I[b+2|0]<<8;if(c>>>0<15){break b}c=b+c|0;h=c>>>0>k>>>0?k:c;c:{if(I[b+4|0]|(I[b+5|0]&3)!=1){break c}c=b+14|0;if(c>>>0>h>>>0){break c}l=1<>>8&65280|c>>>24);b=b+20|0;while(1){i=i-1|0;if(i){c=d;d=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);b=b+6|0;if(c>>>0>>0){continue}break c}break}n=n|l}g=g+1|0;if((j|0)!=(g|0)){continue}break}g=j}H[a+824>>2]=n;H[a+820>>2]=m;H[a+816>>2]=g}xb=f+16|0;return e|0}function _j(a,b,c,d,e){H[a+8>>2]=c;H[a+4>>2]=b;H[a>>2]=0;b=H[c+16>>2];H[a+64>>2]=163632;F[a+60|0]=0;H[a+56>>2]=65536;F[a+44|0]=0;H[a+36>>2]=0;H[a+40>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[a+48>>2]=0;H[a+52>>2]=0;H[a+16>>2]=d;H[a+12>>2]=b;d=H[b+140>>2];a:{if(d){break a}while(1){c=H[b+48>>2];if(!c){d=163632;break a}b:{c:{d=oc(1,4);if(d){Nt(d,c);c=H[b+140>>2];H[b+140>>2]=c?c:d;if(!c){break a}c=H[d>>2];H[197455]=0;ia(579,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break c}Kb(d);break b}d=163632;c=H[b+140>>2];H[b+140>>2]=c?c:163632;if(c){break b}break a}ha(0)|0;_()|0;Zb();X()}d=H[b+140>>2];if(!d){continue}break}}b=H[d>>2];b=b?b:163632;c=H[b+12>>2];b=H[b+16>>2];H[a+72>>2]=0;H[a+68>>2]=b>>>0<12?163632:c;if(!(!e|!H[e>>2])){H[e>>2]=H[e>>2]+1}F[a+44|0]=0;c=e;H[a+52>>2]=c;b=H[a+12>>2];d=H[b+32>>2];if((d|0)==-1){d=De(b);c=H[a+52>>2]}F[a+60|0]=1;H[a+56>>2]=d;b=H[c+12>>2];H[a+24>>2]=b;c=H[c+16>>2];H[a+48>>2]=0;H[a+40>>2]=0;H[a+20>>2]=0;H[a+32>>2]=1073741823;H[a+28>>2]=b+c;return a}function $K(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;g=H[a+816>>2];a:{if(!g){break a}e=H[a+812>>2];if((e|0)<10){break a}d=e;e=H[a+808>>2];k=d+e|0;d=e+4|0;f=e+10|0;l=b<<16|c;n=H[a+820>>2];h=1;while(1){b=(I[d+3|0]|I[d+2|0]<<8)+d|0;e=b>>>0>k>>>0?k:b;b:{if(I[d+4|0]|!(h&n)){break b}o=I[d+5|0];c=d+14|0;i=e-c|0;b=I[d+7|0]|I[f|0]<<8;b=(i|0)<(N(b,6)|0)?(i|0)/6|0:b;c:{if(H[a+824>>2]&h){if(!b){break b}i=d+18|0;c=0;while(1){f=b+c>>>1|0;j=i+N(f,6)|0;d=j-4|0;d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if((d|0)!=(l|0)){d=d>>>0>>0;c=d?f+1|0:c;b=d?b:f;if(c>>>0>>0){continue}break b}break}b=j+1|0;break c}if(!b){break b}while(1){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))!=(l|0)){c=c+6|0;b=b-1|0;if(b){continue}break b}break}j=c+4|0;b=c+5|0}m=((I[b|0]|I[j|0]<<8)<<16>>16)+(o&8?0:m)|0}g=g-1|0;if(!g){break a}h=h<<1;d=e;f=d+6|0;if(k>>>0>=f>>>0){continue}break}}return m|0}function yo(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;i=I[H[a>>2]+236|0];H[g>>2]=0;H[f>>2]=0;if(I[a+11666|0]){h=e-c|0;e=i?0-h|0:h;j=H[a+4>>2];h=N(h>>16,b>>16);b=d-b|0;H[j+16>>2]=H[j+16>>2]+(h-N(b>>16,c>>16)|0);a:{b:{b=i?0-b|0:b;if((b|0)>=0){if((e|0)>=0){if((b|0)>e<<1){break b}c=H[a+11688>>2];if((e|0)>b<<1){H[f>>2]=c;a=H[a+11692>>2];break a}k=f,l=Rb(45875,c),H[k>>2]=l;a=Rb(19661,H[a+11692>>2]);break a}if((b|0)>(0-(e<<1)|0)){break b}c=H[a+11688>>2];if((0-e|0)>b<<1){H[f>>2]=0-c;a=H[a+11692>>2];break a}k=f,l=Rb(-45874,c),H[k>>2]=l;a=Rb(19661,H[a+11692>>2]);break a}c=0-b|0;if((e|0)>=0){if((c|0)>e<<1){H[f>>2]=0;a=H[a+11692>>2]<<1;break a}c=H[a+11688>>2];if((e|0)>(0-(b<<1)|0)){H[f>>2]=c;a=H[a+11692>>2];break a}k=f,l=Rb(45875,c),H[k>>2]=l;a=Rb(111411,H[a+11692>>2]);break a}if((c|0)>(0-(e<<1)|0)){H[f>>2]=0;a=H[a+11692>>2]<<1;break a}c=H[a+11688>>2];if((0-(b<<1)|0)<(0-e|0)){H[f>>2]=0-c;a=H[a+11692>>2];break a}k=f,l=Rb(-45874,c),H[k>>2]=l;a=Rb(111411,H[a+11692>>2]);break a}H[f>>2]=0;a=0}H[g>>2]=a}}function Qy(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-32|0;xb=d;a:{b:{c=H[196977];c:{if(!c){break c}f=H[b>>2];g=787908;e=c;while(1){h=H[e+16>>2]<(f|0);g=h?g:e;e=H[(h<<2)+e>>2];if(e){continue}break}if((g|0)==787908){break c}if(H[g+16>>2]<=(f|0)){break b}}H[a>>2]=0;F[a+11|0]=0;break a}d:{while(1){e=H[c+16>>2];if((e|0)>(f|0)){c=H[c>>2];if(c){continue}break d}if((e|0)<(f|0)){c=H[c+4>>2];if(c){continue}break d}break}if(!c){break d}Ry(d+16|0,c+20|0,95);b=H[b+4>>2];H[197455]=0;fa(1756,d|0,+(b>>>0),-1);b=H[197455];H[197455]=0;e:{f:{if((b|0)!=1){H[197455]=0;b=I[d+11|0];c=b<<24>>24<0;b=ca(1759,d+16|0,(c?H[d>>2]:d)|0,(c?H[d+4>>2]:b)|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break f}c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;if(F[d+11|0]<0){Kb(H[d>>2])}if(F[d+27|0]>=0){break a}Kb(H[d+16>>2]);break a}e=$()|0;_()|0;break e}e=$()|0;_()|0;if(F[d+11|0]>=0){break e}Kb(H[d>>2])}if(F[d+27|0]<0){Kb(H[d+16>>2])}ea(e|0);X()}Ip(239278);X()}xb=d+32|0}function Kca(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;g=H[a+420>>2];if(H[a+236>>2]){d=H[g+68>>2];if(!d){Sk(a,H[g+72>>2]);d=H[a+236>>2];H[g+72>>2]=H[g+72>>2]+1&7}H[g+68>>2]=d-1}if(H[a+316>>2]>0){while(1){c=j<<2;d=H[(c+a|0)+320>>2]<<2;k=H[H[(d+a|0)+292>>2]+20>>2];i=(k<<2)+g|0;d=d+g|0;h=d;f=H[i+76>>2]+H[d+52>>2]|0;c=G[H[b+c>>2]>>1]>>H[a+372>>2];e=H[d+36>>2];a:{if((c|0)==(e|0)){Lc(a,f,0);H[h+52>>2]=0;break a}H[d+36>>2]=c;Lc(a,f,1);d=0;n=f+1|0;c=c-e|0;b:{if((c|0)>0){l=4;m=0;e=2;break b}c=0-c|0;l=8;m=1;e=3}Lc(a,n,m);H[h+52>>2]=l;e=e+f|0;f=c-1|0;c:{if(!f){break c}d=1;Lc(a,e,1);e=H[i+76>>2]+20|0;c=f;if((c|0)==1){break c}while(1){Lc(a,e,1);e=e+1|0;d=d<<1;i=c>>>0>3;c=c>>1;if(i){continue}break}}Lc(a,e,0);c=a+k|0;d:{if(1<>1<=(d|0)){if(1<>1>=(d|0)){break d}c=H[h+52>>2]+8|0}else{c=0}H[h+52>>2]=c}if(d>>>0<2){break a}h=e+14|0;while(1){c=d>>1;Lc(a,h,(c&f)!=0);e=d>>>0>3;d=c;if(e){continue}break}}j=j+1|0;if((j|0)>2]){continue}break}}return 1}function TI(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){c=H[a+100>>2];b=H[a+316>>2];if(b){d=H[a+300>>2];if((d|0)>0){while(1){b=(e<<3)+b|0;f=H[b+4>>2];if(f){d=H[f>>2];if(d){zb[H[c+8>>2]](c,d)}H[H[b+4>>2]>>2]=0;d=H[b+4>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+4>>2]=0;d=H[a+300>>2]}e=e+1|0;if((e|0)<(d|0)){b=H[a+316>>2];continue}break}b=H[a+316>>2]}if(b){zb[H[c+8>>2]](c,b)}H[a+316>>2]=0}b=H[a+164>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+164>>2]=0;b=H[a+168>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+168>>2]=0;b=H[a+172>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+172>>2]=0;b=H[a+176>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+176>>2]=0;b=H[a+180>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+180>>2]=0;b=H[a+304>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+300>>2]=0;H[a+304>>2]=0;b=H[a+140>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+140>>2]=0;b=H[a+152>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+152>>2]=0;b=H[a+156>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+20>>2]=0;H[a+24>>2]=0;H[a+156>>2]=0;b=H[a+324>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+324>>2]=0;b=H[a+328>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+328>>2]=0}}function OK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=xb-16|0;xb=f;j=H[a+552>>2];a:{b:{g=J[(b?a+296|0:a+216|0)+34>>1];if(!g){break b}h=H[(b?856:852)+a>>2];k=h+H[(b?756:752)+a>>2]|0;i=H[a+104>>2];if(c>>>0>>0){g=h+(c<<2)|0;if(g+4>>>0>k>>>0){break b}g=bc(i,g);H[f+12>>2]=g;if(g){break b}m=e,n=nc(i,f+12|0),G[m>>1]=n;if(H[f+12>>2]){break b}m=d,n=nc(i,f+12|0),G[m>>1]=n;if(!H[f+12>>2]){break a}break b}h=h+(g<<2)|0;if(h-2>>>0>k>>>0){break b}h=h-4|0;l=bc(i,h);H[f+12>>2]=l;if(l){break b}m=e,n=nc(i,f+12|0),G[m>>1]=n;if(H[f+12>>2]){break b}g=h+(c-g<<1)|0;if(g+6>>>0>k>>>0){G[d>>1]=0;break a}g=bc(i,g+4|0);H[f+12>>2]=g;if(g){G[d>>1]=0;break a}m=d,n=nc(i,f+12|0),G[m>>1]=n;break a}G[d>>1]=0;G[e>>1]=0}if(j){H[f+8>>2]=J[e>>1];H[f+4>>2]=G[d>>1];c:{d:{if(b){b=H[j+12>>2];if(b){zb[b|0](a,c,f+8|0)|0}b=H[j+16>>2];if(b){break d}break c}b=H[j>>2];if(b){zb[b|0](a,c,f+8|0)|0}b=H[j+4>>2];if(!b){break c}}zb[b|0](a,c,f+4|0)|0}G[e>>1]=H[f+8>>2];G[d>>1]=H[f+4>>2]}xb=f+16|0}function uj(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=c-b|0;if((d|0)<=0){return 0}c=(b>>3)+a|0;a:{b=b&7;b:{c:{if(!b){a=0;break c}a=8-b|0;e=I[(I[c|0]<>>0>>0?a:e;a=a>>>0>>0?a:d;if(b+a>>>0<8){break b}c=c+1|0;d=d-a|0}d:{if((d|0)<64){b=d;break d}e:{if(!(c&3)){b=d;break e}b=I[c|0];if((b|0)!=255){e=a;break a}g=d-8|0;e=a+8|0;h=c+1|0;f:{if(!(h&3)){b=g;g=d;c=h;break f}b=I[h|0];if((b|0)!=255){break a}h=d-16|0;e=a+16|0;f=c+2|0;if(!(f&3)){b=h;c=f;break f}b=I[f|0];if((b|0)!=255){break a}g=d-24|0;e=a+24|0;f=c+3|0;if(!(f&3)){b=g;g=h;c=f;break f}b=I[f|0];if((b|0)!=255){break a}b=d-32|0;e=a+32|0;c=c+4|0}a=e;if((g|0)<40){break d}}d=b;while(1){if(H[c>>2]!=-1){b=d;break d}c=c+4|0;a=a+32|0;e=(d|0)>63;b=d-32|0;d=b;if(e){continue}break}}g:{if((b|0)<8){e=b;break g}while(1){d=I[c|0];if((d|0)!=255){return I[d+295024|0]+a|0}c=c+1|0;a=a+8|0;d=(b|0)>15;e=b-8|0;b=e;if(d){continue}break}}if((e|0)<=0){break b}b=a;a=I[I[c|0]+295024|0];a=b+((a|0)>(e|0)?e:a)|0}return a}return I[b+295024|0]+e|0}function hn(a){var b=0,c=0,d=0,e=0,f=0;b=H[H[a+4>>2]+96>>2];f=H[b+8>>2];c=H[H[b+12>>2]+68>>2];if(c){zb[c|0](a)}c=H[a+156>>2];if(!c){H[a+88>>2]=0;return}d=H[c+4>>2];a:{if(d&1){e=H[a+88>>2];if(e){c=H[H[a+4>>2]+100>>2];zb[H[c+8>>2]](c,e);c=H[a+156>>2];d=H[c+4>>2]}H[a+88>>2]=0;H[c+4>>2]=d&-2;break a}H[a+88>>2]=0}if(!(I[H[b>>2]+1|0]&2)){b=H[c>>2];if(b){c=H[b>>2];d=H[b+24>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+24>>2]=0;d=H[b+28>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+28>>2]=0;d=H[b+32>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+32>>2]=0;d=H[b+40>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+40>>2]=0;d=H[b+52>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+20>>2]=0;H[b+36>>2]=0;H[b+44>>2]=0;H[b+48>>2]=0;H[b+52>>2]=0;H[b+12>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[b+88>>2]=0;d=H[b+24>>2];H[b+56>>2]=H[b+20>>2];H[b+60>>2]=d;e=H[b+32>>2];d=b- -64|0;H[d>>2]=H[b+28>>2];H[d+4>>2]=e;d=H[b+40>>2];H[b+72>>2]=H[b+36>>2];H[b+76>>2]=d;d=H[b+48>>2];H[b+80>>2]=H[b+44>>2];H[b+84>>2]=d;zb[H[c+8>>2]](c,b);c=H[a+156>>2]}H[c>>2]=0}zb[H[f+8>>2]](f,c);H[a+156>>2]=0}function kV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if(c){if(d){b=I[787975];d=b<<24>>24<0;c=d?H[196991]:787964;b=d?H[196992]:b;if((b|0)==-1){b=ad(c)}zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];a=a+16|0;break a}b=I[787951];d=b<<24>>24<0;c=d?H[196985]:787940;b=d?H[196986]:b;if((b|0)==-1){b=ad(c)}zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];a=a+16|0;break a}c=I[787963];e=c<<24>>24<0;d=e?H[196988]:787952;c=e?H[196989]:c;if((c|0)==-1){c=ad(d)}zb[H[H[a>>2]+8>>2]](a,c);e=d;d=c<<2;Ob(H[a+12>>2],e,d);H[a+12>>2]=d+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+c;d=I[b+11|0];e=d<<24>>24<0;c=e?H[b>>2]:b;b=e?H[b+4>>2]:d;if((b|0)==-1){b=ad(c)}zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;b=I[787951];d=b<<24>>24<0;c=d?H[196985]:787940;b=d?H[196986]:b;if((b|0)==-1){b=ad(c)}zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];a=a+16|0}H[a>>2]=H[a>>2]+b}function WC(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=999999984/(c>>>0)|0;e=H[a+4>>2];if(c>>>0>=999999985){i=H[a>>2];H[i+20>>2]=72;zb[H[i>>2]](a)}h=(d|0)>(h|0)?h:d;H[e+80>>2]=h;l=Uk(a,b,d<<2);if(d){m=b>>>0<2;i=0;while(1){g=H[a+4>>2];e=d-i|0;h=e>>>0>h>>>0?h:e;e=N(h,c);if(e>>>0>=999999985){f=H[a>>2];H[f+20>>2]=56;H[f+24>>2]=3;zb[H[H[a>>2]>>2]](a)}f=e&7;f=e+(f?8-f|0:0)|0;if(!m){e=H[a>>2];H[e+24>>2]=b;H[e+20>>2]=15;zb[H[H[a>>2]>>2]](a)}j=f+16|0;e=Tb(j);if(!e){k=H[a>>2];H[k+20>>2]=56;H[k+24>>2]=4;zb[H[H[a>>2]>>2]](a)}H[g+76>>2]=j+H[g+76>>2];g=g+(b<<2)|0;j=H[g+60>>2];H[e+8>>2]=0;H[e+4>>2]=f;H[e>>2]=j;H[g+60>>2]=e;a:{if(!h){break a}g=e+16|0;f=0;e=h;j=e&3;if(j){while(1){H[(i<<2)+l>>2]=g;e=e-1|0;g=c+g|0;i=i+1|0;f=f+1|0;if((j|0)!=(f|0)){continue}break}}if(h-1>>>0<3){break a}while(1){f=(i<<2)+l|0;H[f>>2]=g;g=c+g|0;j=g+c|0;k=j+c|0;H[f+12>>2]=k;H[f+8>>2]=j;H[f+4>>2]=g;i=i+4|0;g=c+k|0;e=e-4|0;if(e){continue}break}}if(d>>>0>i>>>0){continue}break}}return l|0}function vE(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{e=oc(1,40);if(e){f=H[a+56>>2];k=f-1|0;j=H[a+60>>2];b=H[a+4>>2]==1098015074;b:{c:{if((f|0)<=0){break c}a=k;while(1){d:{d=a+c>>>1|0;g=H[N(d,36)+j>>2];e:{if(g>>>0>=1937007465){a=d-1|0;break e}if((g|0)==1937007464){break d}c=d+1|0}if((a|0)>=(c|0)){continue}break c}break}a=2;if(H[(N(d,36)+j|0)+28>>2]){break b}}a=0}F[e+36|0]=b|a;d=0;if((f|0)<=0){break a}while(1){b=d<<2;f=H[b+124992>>2];c=0;a=k;g=e+b|0;f:{g:{while(1){b=a+c>>>1|0;h=N(b,36)+j|0;i=H[h>>2];h:{if(i>>>0>f>>>0){a=b-1|0;break h}if(f>>>0<=i>>>0){break g}c=b+1|0}if((a|0)>=(c|0)){continue}break}a=0;break f}a=H[h+28>>2]}H[g>>2]=a;g=I[e+36|0];b=0;i:{if(!(g&1)){break i}c=0;a=k;b=1;if(44>>>d&1){break i}j:{while(1){b=a+c>>>1|0;h=N(b,36)+j|0;i=H[h>>2];k:{if(i>>>0>f>>>0){a=b-1|0;break k}if(f>>>0<=i>>>0){break j}c=b+1|0}if((a|0)>=(c|0)){continue}break}b=0;break i}b=F[h+32|0]&1}F[e+36|0]=b|g&254;d=d+1|0;if((d|0)!=7){continue}break}}return e|0}F[e+36|0]=a;return e|0}function bv(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=H[a>>2];a:{if(!i){break a}g=i-1|0;d=H[a+8>>2];h=i&3;b:{if(!h){e=i;break b}e=i;while(1){H[d+24>>2]=-1;H[d+16>>2]=H[d+16>>2]&-5;d=d+28|0;e=e-1|0;f=f+1|0;if((h|0)!=(f|0)){continue}break}}if(g>>>0<3){break a}while(1){H[d+24>>2]=-1;H[d+52>>2]=-1;H[d+80>>2]=-1;H[d+108>>2]=-1;H[d+16>>2]=H[d+16>>2]&-5;H[d+44>>2]=H[d+44>>2]&-5;H[d+72>>2]=H[d+72>>2]&-5;H[d+100>>2]=H[d+100>>2]&-5;d=d+112|0;e=e-4|0;if(e){continue}break}}if(!b){H[a+4>>2]=0;return}d=0;f=0;e=0;g=0;while(1){if(!d){f=I[c|0];d=128;c=c+1|0}c:{if(!(d&f)){break c}h=H[a+8>>2]+N(e,28)|0;j=H[h+16>>2];if(j&4){break c}H[h+16>>2]=j|4;if(g>>>0>=i>>>0){break c}H[H[a+12>>2]+(g<<2)>>2]=h;g=g+1|0}d=d>>1;e=e+1|0;if((e|0)!=(b|0)){continue}break}H[a+4>>2]=g;if((g|0)>=2){c=H[a+12>>2];a=1;while(1){e=H[c+(a<<2)>>2];i=H[e>>2];d=a;while(1){b=d-1|0;f=c+(b<<2)|0;h=H[f>>2];if((i|0)<=H[h>>2]){H[c+(d<<2)>>2]=h;H[f>>2]=e;f=(d|0)>1;d=b;if(f){continue}}break}a=a+1|0;if((g|0)!=(a|0)){continue}break}}}function Tca(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;k=N(H[b+36>>2],H[b+28>>2]);e=H[a+272>>2];a:{if((e|0)<=0){break a}f=H[a+28>>2];g=(k<<1)-f|0;if((g|0)<=0){break a}b=0;if(e-1>>>0>=3){l=e&-4;while(1){h=b<<2;i=f+H[h+c>>2]|0;Nb(i,I[i-1|0],g);i=f+H[(h|4)+c>>2]|0;Nb(i,I[i-1|0],g);i=f+H[(h|8)+c>>2]|0;Nb(i,I[i-1|0],g);h=f+H[(h|12)+c>>2]|0;Nb(h,I[h-1|0],g);b=b+4|0;j=j+4|0;if((l|0)!=(j|0)){continue}break}}e=e&3;if(e){while(1){j=f+H[(b<<2)+c>>2]|0;Nb(j,I[j-1|0],g);b=b+1|0;m=m+1|0;if((e|0)!=(m|0)){continue}break}}e=H[a+272>>2]}if(!(!k|(e|0)<=0)){l=k&-2;i=k&1;j=0;h=0;while(1){e=j<<2;b=H[e+c>>2];g=H[(h<<2)+d>>2];f=H[(e|4)+c>>2];e=0;if((k|0)!=1){while(1){F[g|0]=(I[f+1|0]+(I[f|0]+(I[b|0]+I[b+1|0]|0)|0)|0)+1>>>2;F[g+1|0]=(I[f+3|0]+(I[f+2|0]+(I[b+2|0]+I[b+3|0]|0)|0)|0)+2>>>2;f=f+4|0;b=b+4|0;g=g+2|0;e=e+2|0;if((l|0)!=(e|0)){continue}break}}if(i){F[g|0]=(I[f+1|0]+(I[f|0]+(I[b|0]+I[b+1|0]|0)|0)|0)+1>>>2}h=h+1|0;j=j+2|0;if((j|0)>2]){continue}break}}}function o_(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;d=H[a+208>>2];a:{if(!d){break a}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break a}d=H[a+208>>2]}zb[H[H[d>>2]+360>>2]](d,b,c)}b=H[c>>2];d=H[b+4>>2];f=+(d|0);e=H[b>>2];g=+(e|0);b=H[a+156>>2];b:{c:{if(b){if(Qd(b,g,f)){break c}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break b}b=H[a+208>>2];if(!b){break c}zb[H[H[b>>2]+32>>2]](b,g,f)}b=H[a+120>>2];H[b+672>>2]=e;H[b+676>>2]=d}d=H[c>>2];if(H[c+4>>2]-d>>>0>=9){m=a+29|0;e=1;while(1){b=(e<<3)+d|0;f=+H[b+4>>2];g=+H[b>>2];d=H[b+20>>2];h=+(d|0);i=H[b+16>>2];j=+(i|0);k=+H[b+12>>2];l=+H[b+8>>2];b=H[a+156>>2];d:{e:{if(b){if(ti(b,g,f,l,k,j,h)){break e}F[H[H[a>>2]-12>>2]+m|0]=1;break d}b=H[a+208>>2];if(!b){break e}zb[H[H[b>>2]+40>>2]](b,g,f,l,k,j,h)}b=H[a+120>>2];H[b+672>>2]=i;H[b+676>>2]=d}e=e+3|0;d=H[c>>2];if(e>>>0>2]-d>>3>>>0){continue}break}}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,1);a=H[a+208>>2];zb[H[H[a>>2]+56>>2]](a)}}function TK(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;e=xb-16|0;xb=e;h=H[a+100>>2];H[e+8>>2]=0;c=3;a:{if(!H[a+868>>2]){break a}c=zb[H[a+516>>2]](a,1129270354,b,e+4|0)|0;H[e+12>>2]=c;b:{if(c){break b}c:{c=H[e+4>>2];if(c>>>0<14){break c}c=Ke(b,c,e+8|0);H[e+12>>2]=c;if(c){break b}c=H[e+8>>2];f=pc(h,24,e+12|0);if(H[e+12>>2]){break b}d=I[c|0]|I[c+1|0]<<8;d=d<<8|d>>>8;G[f>>1]=d;if(d&65535){break c}d=I[c+2|0]|I[c+3|0]<<8;g=d<<8|d>>>8;G[f+2>>1]=g;d=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);i=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);d=H[e+4>>2];if(i>>>0>=d>>>0|d-i>>>0>>0){break c}g=I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24);c=I[c+12|0]|I[c+13|0]<<8;j=c<<8|c>>>8;G[f+4>>1]=j;c=g<<8&16711680|g<<24|(g>>>8&65280|g>>>24);if(c>>>0>=d>>>0|d-c>>>0<(j&65535)<<2>>>0){break c}b=H[e+8>>2];H[f+20>>2]=d;H[f+16>>2]=b;H[f+12>>2]=b+c;H[f+8>>2]=b+i;H[a+872>>2]=f;c=0;break a}H[e+12>>2]=8}nd(b,e+8|0);if(f){zb[H[h+8>>2]](h,f)}c=H[e+12>>2]}xb=e+16|0;return c|0}function nla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{if((a|0)!=24){if((a|0)==293){break e}if((a|0)!=263){break c}Ln(c,263,b);g=b+24|0;break d}g=b+24|0;d=H[g>>2];f:{if(d){d=d-1|0;if(d>>>0>=K[b+32>>2]){d=H[40909];e=H[40908];H[196248]=e;H[196249]=d;x(0,e|0);x(1,d|0);f=+z();break f}f=M[H[b+36>>2]+(d<<3)>>3];break f}F[b+20|0]=1;d=H[40909];e=H[40908];H[196248]=e;H[196249]=d;x(0,e|0);x(1,d|0);f=+z()}g:{if(P(f)<2147483648){d=~~f;break g}d=-2147483648}if((d|0)<0){F[b+20|0]=1;d=0}H[c+24>>2]=d;break d}g=b+24|0;d=H[g>>2];h:{if(d){d=d-1|0;if(d>>>0>=K[b+32>>2]){d=H[40909];e=H[40908];H[196248]=e;H[196249]=d;x(0,e|0);x(1,d|0);f=+z();break h}f=M[H[b+36>>2]+(d<<3)>>3];break h}F[b+20|0]=1;d=H[40909];e=H[40908];H[196248]=e;H[196249]=d;x(0,e|0);x(1,d|0);f=+z()}i:{if(P(f)<2147483648){d=~~f;break i}d=-2147483648}if((d|0)<0){F[b+20|0]=1;d=0}H[c+28>>2]=d}H[g>>2]=0;break b}YF(a,b,c);if(H[b+24>>2]){break a}}if(I[b+20|0]|(I[b+40|0]|I[b+16|0])|H[b+28>>2]<0){break a}Ln(c,a,b)}}function n_(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;d=H[a+208>>2];a:{if(!d){break a}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break a}d=H[a+208>>2]}zb[H[H[d>>2]+364>>2]](d,b,c)}b=H[c>>2];d=G[b+2>>1];f=+(d|0);e=G[b>>1];g=+(e|0);b=H[a+156>>2];b:{c:{if(b){if(Qd(b,g,f)){break c}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;break b}b=H[a+208>>2];if(!b){break c}zb[H[H[b>>2]+32>>2]](b,g,f)}b=H[a+120>>2];H[b+672>>2]=e;H[b+676>>2]=d}d=H[c>>2];if(H[c+4>>2]-d>>>0>=5){m=a+29|0;e=1;while(1){b=(e<<2)+d|0;f=+G[b+2>>1];g=+G[b>>1];d=G[b+10>>1];h=+(d|0);i=G[b+8>>1];j=+(i|0);k=+G[b+6>>1];l=+G[b+4>>1];b=H[a+156>>2];d:{e:{if(b){if(ti(b,g,f,l,k,j,h)){break e}F[H[H[a>>2]-12>>2]+m|0]=1;break d}b=H[a+208>>2];if(!b){break e}zb[H[H[b>>2]+40>>2]](b,g,f,l,k,j,h)}b=H[a+120>>2];H[b+672>>2]=i;H[b+676>>2]=d}e=e+3|0;d=H[c>>2];if(e>>>0>2]-d>>2>>>0){continue}break}}b=H[a+208>>2];if(!(!(!H[a+156>>2]|!b)|!b)){zb[H[H[b>>2]+52>>2]](b,1);a=H[a+208>>2];zb[H[H[a>>2]+56>>2]](a)}}function XC(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;k=c<<7;f=999999984/(k>>>0)|0;e=H[a+4>>2];if(k>>>0>=999999985){h=H[a>>2];H[h+20>>2]=72;zb[H[h>>2]](a)}f=(d|0)>(f|0)?f:d;H[e+80>>2]=f;l=Uk(a,b,d<<2);if(d){n=b>>>0<2;j=c<<7;h=0;while(1){e=H[a+4>>2];c=d-h|0;f=c>>>0>f>>>0?f:c;g=N(k,f);if(g>>>0>=999999985){c=H[a>>2];H[c+20>>2]=56;H[c+24>>2]=3;zb[H[H[a>>2]>>2]](a)}if(!n){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=15;zb[H[H[a>>2]>>2]](a)}i=g|16;c=Tb(i);if(!c){m=H[a>>2];H[m+20>>2]=56;H[m+24>>2]=4;zb[H[H[a>>2]>>2]](a)}H[e+76>>2]=i+H[e+76>>2];e=e+(b<<2)|0;i=H[e+60>>2];H[c+8>>2]=0;H[c+4>>2]=g;H[c>>2]=i;H[e+60>>2]=c;a:{if(!f){break a}c=c+16|0;g=0;e=f;i=f&3;if(i){while(1){H[(h<<2)+l>>2]=c;e=e-1|0;h=h+1|0;c=c+j|0;g=g+1|0;if((i|0)!=(g|0)){continue}break}}if(f-1>>>0<3){break a}while(1){g=(h<<2)+l|0;H[g>>2]=c;c=c+j|0;i=c+j|0;H[g+8>>2]=i;H[g+4>>2]=c;c=i+j|0;H[g+12>>2]=c;c=c+j|0;h=h+4|0;e=e-4|0;if(e){continue}break}}if(d>>>0>h>>>0){continue}break}}return l|0}function op(a,b,c,d){var e=0,f=0,g=0,h=0;g=xb-32|0;xb=g;e=d&2147483647;h=e;f=e-1006698496|0;e=e-1140785152|0;a:{if((f|0)==(e|0)&0|e>>>0>f>>>0){e=d<<4|c>>>28;f=c<<4|b>>>28;c=e;b=b&268435455;if((b|0)==134217728&(a|0)!=0|b>>>0>134217728){e=c+1073741824|0;a=f+1|0;e=a?e:e+1|0;f=a;break a}e=c+1073741824|0;if(b^134217728|a){break a}b=f&1;a=b+f|0;e=a>>>0>>0?e+1|0:e;f=a;break a}if(!(!c&(h|0)==2147418112?!(a|b):h>>>0<2147418112)){e=c;c=d<<4|e>>>28;f=e<<4|b>>>28;e=c&524287|2146959360;break a}f=0;e=2146435072;if(h>>>0>1140785151){break a}e=0;h=h>>>16|0;if(h>>>0<15249){break a}e=d&65535|65536;He(g+16|0,a,b,c,e,h-15233|0);li(g,a,b,c,e,15361-h|0);e=H[g+4>>2];h=e;a=H[g+8>>2];c=H[g+12>>2]<<4|a>>>28;f=a<<4|e>>>28;e=c;a=h&268435455;b=H[g>>2]|(H[g+16>>2]|H[g+24>>2]|(H[g+20>>2]|H[g+28>>2]))!=0;if((a|0)==134217728&(b|0)!=0|a>>>0>134217728){a=f+1|0;e=a?e:e+1|0;f=a;break a}if(a^134217728|b){break a}a=f+(f&1)|0;e=a>>>0>>0?e+1|0:e;f=a}xb=g+32|0;x(0,f|0);x(1,d&-2147483648|e);return+z()}function vy(a,b){var c=0,d=0,e=0;G[a+80>>1]=b;a:{b:{c:{switch(b-1|0){case 0:H[a+96>>2]=0;H[a+100>>2]=1072693248;H[a+88>>2]=0;H[a+92>>2]=1072693248;break a;case 1:H[a+96>>2]=-1860025207;H[a+100>>2]=1070736456;H[a+88>>2]=-1860025207;H[a+92>>2]=1070736456;break a;case 2:H[a+96>>2]=-2117046872;H[a+100>>2]=1067255514;H[a+88>>2]=-2117046872;H[a+92>>2]=1067255514;break a;case 3:H[a+96>>2]=1889785610;H[a+100>>2]=1072106045;H[a+88>>2]=1889785610;H[a+92>>2]=1072106045;break a;case 4:H[a+96>>2]=-1924145348;H[a+100>>2]=1068658327;H[a+88>>2]=-1924145348;H[a+92>>2]=1068658327;break a;case 5:H[a+96>>2]=-1717986918;H[a+100>>2]=1068079513;H[a+88>>2]=-1717986918;H[a+92>>2]=1068079513;break a;case 6:case 7:break c;default:break b}}c=G[a+108>>1];if((c|0)<2){break b}d=G[a+118>>1];if((d|0)<2){break b}d:{switch(b-7|0){case 0:e=+(d|0)/+(c|0);M[a+88>>3]=e;M[a+96>>3]=e;break a;case 1:break d;default:break b}}M[a+88>>3]=+(d|0)/+(c|0);M[a+96>>3]=+G[a+120>>1]/+G[a+110>>1]}_e(a);return}_e(a)}function gh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{f=H[b+4>>2];if(f>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0){break a}h=d-a|0;if(h>>>0<2){break a}e=H[b+12>>2];g=e-2|0;H[b+12>>2]=g;c=1;if((g|0)<=0){break a}b:{c:{d:{e:{g=I[a|0]|I[a+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}if(h>>>0<6){break a}c=e-8|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=a+4|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break a}c=e-10|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=I[a+4|0]|I[a+5|0]<<8;if(!e){break c}a=a+6|0;if(a>>>0>>0|a>>>0>d>>>0){break a}d=d-a|0;a=((e<<8|e>>>8)&65535)<<1;if(d>>>0>>0){break a}a=c-a|0;H[b+12>>2]=a;c=0;if((a|0)>0){break c}break b}c=a+2|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break a}c=e-4|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=I[a+2|0]|I[a+3|0]<<8;if(!e){break c}a=a+4|0;if(a>>>0>>0|a>>>0>d>>>0){break a}d=d-a|0;a=N((e<<8|e>>>8)&65535,6);if(d>>>0>>0){break a}a=c-a|0;H[b+12>>2]=a;c=0;if((a|0)<=0){break b}}c=1}return c}return 0}function MB(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;g=xb-32|0;xb=g;H[g+16>>2]=0;H[g+8>>2]=0;H[g+12>>2]=0;H[g>>2]=0;k=ac(c);if(d){i=ac(d)}if(e){j=ac(e)}a:{if(!f){f=dn(a,0,0,b-2|0,g);break a}f=dn(a,f,ac(f),b-2|0,g)}b:{if(a){H[a+744>>2]=34;F[g+28|0]=105;F[g+29|0]=84;F[g+30|0]=88;F[g+31|0]=116;h=(f+((i+k|0)+j|0)|0)+5|0;F[g+27|0]=h;F[g+26|0]=h>>>8;F[g+25|0]=h>>>16;F[g+24|0]=h>>>24;Qc(a,g+24|0,8);H[a+348>>2]=1767135348;Uf(a);xc(a,g+28|0,4);H[a+744>>2]=66;c:{if(!c){break c}h=k+1|0;if(!h){break c}Qc(a,c,h);xc(a,c,h)}F[g+23|0]=0;F[g+22|0]=(b|0)!=-1&(b|0)!=1;b=g+22|0;Qc(a,b,2);xc(a,b,2);F[g+22|0]=0;d:{if(!a){break d}b=i+1|0;if(b>>>0>>0){break d}c=d?d:g+22|0;Qc(a,c,b);xc(a,c,b)}e:{if(!a){break e}b=j+1|0;if(b>>>0>>0){break e}c=e?e:g+22|0;Qc(a,c,b);xc(a,c,b)}Mk(a,g,f);H[a+744>>2]=130;b=H[a+384>>2];b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);F[g+24|0]=b;F[g+25|0]=b>>>8;F[g+26|0]=b>>>16;F[g+27|0]=b>>>24;Qc(a,g+24|0,4);break b}F[g+22|0]=(b|0)!=-1&(b|0)!=1;Mk(a,g,f)}xb=g+32|0}function Qaa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;k=(g|0)/2|0;a:{if(!f){break a}g=f-1|0;j=H[a+64>>2];if(e>>>0>=2){c=e-2|0;m=c&2;n=c>>>0<2;while(1){l=g;a=e;g=b;f=i;if(!m){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];g=b+8|0;f=i+1|0;a=c}d=c;if(!n){while(1){b=g;d=H[(I[f|0]<<2)+j>>2];H[b>>2]=H[d>>2];H[b+4>>2]=H[d+4>>2];d=f;i=H[(I[f+1|0]<<2)+j>>2];H[b+8>>2]=H[i>>2];H[b+12>>2]=H[i+4>>2];g=b+16|0;f=f+2|0;a=a-4|0;if(a>>>0>1){continue}break}i=d+1|0;d=a;b=b+8|0}b:{if(d){H[g>>2]=H[H[(I[f|0]<<2)+j>>2]>>2];g=3;a=2;break b}g=2;a=1}b=((h<<2)+b|0)+(g<<2)|0;g=l-1|0;i=a+(i+k|0)|0;if(l){continue}break}break a}if(!e){break a}if(f&1){H[b>>2]=H[H[(I[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else{f=g}if(!g){break a}while(1){H[b>>2]=H[H[(I[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;H[b>>2]=H[H[(I[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a){continue}break}}}function Laa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;k=(g|0)/2|0;a:{if(!f){break a}g=f-1|0;j=H[a+60>>2];if(e>>>0>=2){c=e-2|0;m=c&2;n=c>>>0<2;while(1){l=g;a=e;g=b;f=i;if(!m){a=H[(I[i|0]<<2)+j>>2];H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];g=b+8|0;f=i+1|0;a=c}d=c;if(!n){while(1){b=g;d=H[(I[f|0]<<2)+j>>2];H[b>>2]=H[d>>2];H[b+4>>2]=H[d+4>>2];d=f;i=H[(I[f+1|0]<<2)+j>>2];H[b+8>>2]=H[i>>2];H[b+12>>2]=H[i+4>>2];g=b+16|0;f=f+2|0;a=a-4|0;if(a>>>0>1){continue}break}i=d+1|0;d=a;b=b+8|0}b:{if(d){H[g>>2]=H[H[(I[f|0]<<2)+j>>2]>>2];g=3;a=2;break b}g=2;a=1}b=((h<<2)+b|0)+(g<<2)|0;g=l-1|0;i=a+(i+k|0)|0;if(l){continue}break}break a}if(!e){break a}if(f&1){H[b>>2]=H[H[(I[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else{f=g}if(!g){break a}while(1){H[b>>2]=H[H[(I[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;H[b>>2]=H[H[(I[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a){continue}break}}}function Os(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+52>>2];c=H[a+48>>2];if(!(!c|(c|0)==1)){e=(c<<2)+b|0;c=c-1|0;d=b+4|0;while(1){b=H[(c?d:163632)>>2];H[b+12>>2]=0;Kb(H[b+16>>2]);H[b+24>>2]=0;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;Kb(H[b+28>>2]);H[b+28>>2]=0;H[b+20>>2]=0;H[b+24>>2]=0;b=!!c;c=c-b|0;d=(b<<2)+d|0;if((e|0)!=(d|0)){continue}break}b=H[a+52>>2]}H[a+48>>2]=0;Kb(b);H[a+52>>2]=0;H[a+56>>2]=-57005;H[a+44>>2]=0;H[a+48>>2]=0;b=H[a- -64>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}b=H[a+88>>2];if(b){Kb(b);H[a+88>>2]=0}H[a+72>>2]=0;H[a+76>>2]=0;b=H[a+40>>2];if(b){while(1){H[a+40>>2]=H[b+32>>2];H[b+12>>2]=0;Kb(H[b+16>>2]);H[b+24>>2]=0;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;Kb(H[b+28>>2]);H[b+28>>2]=0;H[b+20>>2]=0;H[b+24>>2]=0;b=H[a+40>>2];if(b){continue}break}}H[a+24>>2]=0;c=H[a+36>>2];b=H[a+32>>2];if(b){d=(b<<2)+c|0;while(1){Kb(H[(b?c:163632)>>2]);e=!!b;b=b-e|0;c=(e<<2)+c|0;if((d|0)!=(c|0)){continue}break}c=H[a+36>>2]}H[a+32>>2]=0;Kb(c);H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0}function Il(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;i=xb-16|0;xb=i;h=H[a+12>>2];if(h){H[(H[a+20>>2]+(h<<4)|0)-4>>2]=e}a:{b:{c:{k=h+1|0;g=H[a+16>>2];if(k>>>0>g>>>0){H[i+4>>2]=0;j=h+8&-8;e=Ub(f,16,g,j,H[a+20>>2],i+4|0);H[a+20>>2]=e;g=H[i+4>>2];if(g){break a}H[a+16>>2]=j;g=(h<<4)+e|0;H[g+12>>2]=0;H[g>>2]=0;H[a+12>>2]=k;break c}e=H[a+20>>2];j=e+(h<<4)|0;H[j+12>>2]=0;H[j>>2]=0;H[a+12>>2]=k;if(k){break c}if(!g){H[i+8>>2]=0;e=Ub(f,16,0,8,e,i+8|0);H[a+20>>2]=e;g=H[i+8>>2];if(g){break a}H[a+16>>2]=8}H[e+12>>2]=0;H[e>>2]=0;H[a+12>>2]=1;break b}e=(h<<4)+e|0}a=H[e+4>>2];H[i+12>>2]=0;h=d+7>>>3|0;a=a+7>>>3|0;d:{if(h>>>0<=a>>>0){f=H[e+8>>2];break d}g=a;a=h+7&1073741816;f=Ub(f,1,g,a,H[e+8>>2],i+12|0);H[e+8>>2]=f;g=H[i+12>>2];if(g){break a}H[e+4>>2]=a<<3}H[e>>2]=d;g=0;if(!d){break a}b=(c>>>3|0)+b|0;e=128>>>(c&7)|0;a=128;while(1){c=I[f|0];F[f|0]=I[b|0]&e?c|a:c&(a^-1);c=a>>>0<2;a=c?128:a>>1;h=e>>>0<2;e=h?128:e>>1;f=c+f|0;b=b+h|0;d=d-1|0;if(d){continue}break}}xb=i+16|0;return g} +function Hl(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;m=b<<3;f=H[a+36>>2];a:{i=H[a+48>>2];g=H[i+4>>2];b:{if((g|0)<(d|0)){break b}j=H[(i+m|0)+4>>2];if((j|0)>(e|0)){break b}h=g;k=H[a+4>>2];g=0-k|0;l=h&g;h=(l|0)<(e|0);c:{if((d|0)>(j|0)){g=d;break c}g=g&(j+k|0)-1;if(j&k-1&65535){d=g;break c}if(I[a+79|0]){F[a+79|0]=0;f=f-4|0}H[f>>2]=H[(b<<3)+i>>2];d=g+k|0;f=f+4|0}if(I[a+78|0]){H[H[a+80>>2]+20>>2]=g>>H[a>>2];F[a+78|0]=0}g=h?l:e;if((g|0)<(d|0)){break b}if(K[a+32>>2]<=((g-d>>H[a>>2]<<2)+f|0)+4>>>0){break a}j=0-b|0;k=b<<3;e=i;while(1){F[a+79|0]=0;b=H[e+4>>2];d:{if((b|0)>(d|0)){h=b;b=e+k|0;l=H[b+4>>2];h=h-l|0;if((h|0)>=H[a+16>>2]){zb[c|0](e);break d}b=H[b>>2];H[f>>2]=((N(H[e>>2]-b|0,d-l|0)|0)/(h|0)|0)+b;f=f+4|0;d=H[a+4>>2]+d|0;b=(j<<3)+e|0;break d}if((b|0)==(d|0)){F[a+79|0]=1;H[f>>2]=H[e>>2];f=f+4|0;d=H[a+4>>2]+d|0}b=(j<<3)+e|0}e=b;if(i>>>0<=e>>>0&(d|0)<=(g|0)){continue}break}i=H[a+48>>2]}H[a+36>>2]=f;H[a+48>>2]=i-m;return 0}H[a+40>>2]=98;H[a+36>>2]=f;return 1}function VB(a,b,c){var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;a:{b:{c:{d:{e:{d=H[a+708>>2];switch(d|0){case 1:break c;case 0:break d;default:break e}}d=d-1|0;H[a+708>>2]=d;if((d|0)!=1){break d}Xb(a,268865);mc(a,c);break b}d=H[a+200>>2];if(!(d&1)){break a}if(d&4){H[a+200>>2]=d|8}cc(a,H[a+740>>2]);d=xd(a,c+1|0);H[a+740>>2]=d;if(!d){Xb(a,268923);break b}vd(a,d,c);xc(a,d,c);e=mc(a,0);d=H[a+740>>2];if(e){cc(a,d);H[a+740>>2]=0;break b}F[c+d|0]=0;g=H[a+740>>2];e=g;while(1){d=e;e=d+1|0;if(I[d|0]){continue}break}if(!(d>>>0<(c+g|0)-2>>>0&c>>>0>=2)){Xb(a,268959);cc(a,H[a+740>>2]);H[a+740>>2]=0;break b}if(I[e|0]){Xb(a,268980);g=H[a+740>>2]}e=(d-g|0)+2|0;Eq(a,0,c,e,f+12|0);c=xd(a,28);if(!c){Xb(a,269019);cc(a,H[a+740>>2]);H[a+740>>2]=0;break b}H[c>>2]=0;d=H[a+740>>2];H[c+24>>2]=0;H[c+4>>2]=d;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=d+e;H[c+12>>2]=H[f+12>>2];b=Bq(a,b,c);cc(a,c);cc(a,H[a+740>>2]);H[a+740>>2]=0;if(!b){break b}hc(a,269059);X()}mc(a,c)}xb=f+16|0;return}hc(a,268898);X()}function vF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[e+12>>2]=a;H[e+8>>2]=0;a:{c=I[b+4|0]|I[b+5|0]<<8;if(!c){H[a+12>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[e+12>>2]=a+12;H[e+8>>2]=0;break a}d=I[b|0]|I[b+1|0]<<8;g=(d<<8|d>>>8)&65535;d=(c<<8|c>>>8)&65535;h=d>>>0>1?d:1;d=b+4|0;while(1){c=((c<<8|(c&65280)>>>8)&65535)>>>0>f>>>0?(d+(f<<1)|0)+2|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+b|0}else{c=163632}Ee(uF(c,e+8|0,g),H[e+12>>2]);f=f+1|0;if((h|0)!=(f|0)){c=I[d|0]|I[d+1|0]<<8;continue}break}c=I[b+4|0]|I[b+5|0]<<8;d=I[b|0]|I[b+1|0]<<8;f=0;H[a+20>>2]=0;H[a+12>>2]=0;H[a+16>>2]=0;H[e+12>>2]=a+12;H[e+8>>2]=0;if(!c){break a}d=(d<<8|d>>>8)&65535;a=(c<<8|c>>>8)&65535;g=a>>>0>1?a:1;a=b+4|0;while(1){c=((c<<8|(c&65280)>>>8)&65535)>>>0>f>>>0?(a+(f<<1)|0)+2|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+b|0}else{c=163632}tF(c,e+8|0,d);f=f+1|0;if((g|0)==(f|0)){break a}c=I[a|0]|I[a+1|0]<<8;continue}}xb=e+16|0}function Wi(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;f=H[a>>2];H[h+12>>2]=f;a:{if(b>>>0<=f>>>0){break a}b:{c:{d:{g=I[f|0];if((g|0)==91){j=93}else{if((g|0)!=123){break d}j=125}f=f+1|0;H[h+12>>2]=f;if(b>>>0<=f>>>0){break a}e:{if(d){c=(c|0)>0?c:0;while(1){be(h+12|0,b);g=H[h+12>>2];if(g>>>0>=b>>>0){f=g;break a}if(I[g|0]==(j|0)){break c}if((c|0)==(i|0)){f=g;i=c;break a}k=(i<<2)+d|0,l=fg(h+12|0,b,e),H[k>>2]=l;f=H[h+12>>2];if((g|0)==(f|0)){break e}i=i+1|0;if(b>>>0>f>>>0){continue}break}break a}while(1){be(h+12|0,b);g=H[h+12>>2];if(g>>>0>=b>>>0){f=g;break a}if(I[g|0]==(j|0)){break c}fg(h+12|0,b,e);f=H[h+12>>2];if((g|0)==(f|0)){break e}i=i+1|0;if(b>>>0>f>>>0){continue}break}break a}i=-1;f=g;break a}if(b>>>0<=f>>>0){break a}be(h+12|0,b);g=H[h+12>>2];if(g>>>0>=b>>>0){f=g;break a}if(!I[g|0]){break c}if(!d|(c|0)>0){break b}f=g;break a}f=g+1|0;break a}k=d?d:h+8|0,l=fg(h+12|0,b,e),H[k>>2]=l;f=H[h+12>>2];i=(g|0)==(f|0)?-1:1}H[a>>2]=f;xb=h+16|0;return i}function $0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;a:{b:{c=H[b+4>>2];if(c){if(c>>>0>=178956971){H[197455]=0;ia(1769,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}X()}H[197455]=0;d=N(c,24);c=aa(899,d|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break b}H[a>>2]=c;H[a+4>>2]=c;H[a+8>>2]=c+d;b=H[b>>2];f=d+b|0;while(1){c:{d:{e:{f:{if(F[b+11|0]>=0){d=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=d;H[c+8>>2]=H[b+8>>2];break f}d=H[b+4>>2];e=H[b>>2];H[197455]=0;ga(1647,c|0,e|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break e}}d=c+12|0;if(F[b+23|0]>=0){e=b+12|0;g=H[e+4>>2];H[d>>2]=H[e>>2];H[d+4>>2]=g;H[d+8>>2]=H[b+20>>2];break c}e=H[b+16>>2];g=H[b+12>>2];H[197455]=0;ga(1647,d|0,g|0,e|0);d=H[197455];H[197455]=0;if((d|0)!=1){break c}b=$()|0;_()|0;if(F[c+11|0]>=0){break d}Kb(H[c>>2]);H[a+4>>2]=c;break a}b=$()|0;_()|0}H[a+4>>2]=c;break a}c=c+24|0;b=b+24|0;if((f|0)!=(b|0)){continue}break}H[a+4>>2]=c}return a|0}b=$()|0;_()|0}yc(a);ea(b|0);X()}function jla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}F[a+24|0]=0;H[a+32>>2]=b;d=H[b+12>>2];H[a+4>>2]=d;e=H[b+16>>2];H[a+8>>2]=e+d;H[a+28>>2]=0;if(e>>>0>67108862){c=1073741823}else{c=e<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}H[a+12>>2]=c;H[a+20>>2]=0;H[a>>2]=0;if(!d){Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b|0}a:{if((e|0)>=32){H[a+12>>2]=c-32;b:{c:{f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);g=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);if((g|0)==65536){break c}d:{if((e&-2)==32|(g|0)!=131072){break d}g=c-34|0;H[a+12>>2]=g;c=I[d+32|0]|I[d+33|0]<<8;if(!c){break c}if(e>>>0<34){break d}c=((c<<8|c>>>8)&65535)<<1;if(c>>>0>e-34>>>0){break d}c=g-c|0;H[a+12>>2]=c;if((c|0)>0){break c}}Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if((f|0)==768){break b}break a}Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}return b|0}Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function mp(a,b,c){var d=0,e=0,f=0,g=0;e=xb-32|0;xb=e;F[a|0]=0;a:{d=H[H[b>>2]-12>>2]+b|0;b:{if(!H[d+16>>2]){if(H[d+72>>2]){qx(H[(H[H[b>>2]-12>>2]+b|0)+72>>2])}c:{if(!(H[(H[H[b>>2]-12>>2]+b|0)+4>>2]&4096)|c){break c}d=e+24|0;c=H[(H[H[b>>2]-12>>2]+b|0)+28>>2];H[d>>2]=c;H[c+4>>2]=H[c+4>>2]+1;H[197455]=0;g=aa(3329,d|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}c=H[e+24>>2];d=H[c+4>>2]-1|0;H[c+4>>2]=d;if((d|0)==-1){zb[H[H[c>>2]+8>>2]](c)}c=e+16|0;d=H[H[b>>2]-12>>2];H[197455]=0;d=H[(b+d|0)+24>>2];f=H[197455];H[197455]=0;d:{if((f|0)!=1){H[c>>2]=d;break d}ha(0)|0;_()|0;Zb();X()}d=e+8|0;H[d>>2]=0;while(1){e:{if(!pk(c,d)){break e}f=rh(c);if((f|0)>=0){f=(J[H[g+8>>2]+((f&255)<<1)>>1]&8192)!=0}else{f=0}if(!f){break e}ki(c);continue}break}if(!Ig(c,d)){break c}aj(H[H[b>>2]-12>>2]+b|0,6)}F[a|0]=!H[(H[H[b>>2]-12>>2]+b|0)+16>>2];break b}aj(d,4)}xb=e+32|0;return}c=$()|0;_()|0;a=H[e+24>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function Eca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=xb-16|0;xb=d;b=H[a+420>>2];c=H[a+24>>2];e=H[c>>2];a:{if(H[a+264>>2]){H[b+112>>2]=e;H[b+116>>2]=H[c+4>>2];Gi(b);JC(b);a=H[a+24>>2];H[a>>2]=H[b+112>>2];H[a+4>>2]=H[b+116>>2];break a}h=H[b+16>>2];j=H[b+12>>2];f=H[c+4>>2];c=H[b+32>>2];H[d+8>>2]=H[b+28>>2];H[d+12>>2]=c;c=H[b+24>>2];H[d>>2]=H[b+20>>2];H[d+4>>2]=c;b:{c:{if((h|0)<=0){break c}c=h+7|0;i=127<<17-h|j;while(1){d:{F[e|0]=i>>>16;e=e+1|0;f=f-1|0;if(!f){g=H[a+24>>2];if(!(zb[H[g+12>>2]](a)|0)){break d}f=H[g+4>>2];e=H[g>>2]}g=c;e:{if((i&16711680)!=16711680){break e}F[e|0]=0;e=e+1|0;f=f-1|0;if(f){break e}c=H[a+24>>2];if(!(zb[H[c+12>>2]](a)|0)){break d}f=H[c+4>>2];e=H[c>>2]}c=g-8|0;i=i<<8;if((g|0)>15){continue}break c}break}c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a);f=0;break b}j=0;h=0}a=H[a+24>>2];H[a+4>>2]=f;H[a>>2]=e;H[b+16>>2]=h;H[b+12>>2]=j;a=H[d+12>>2];H[b+28>>2]=H[d+8>>2];H[b+32>>2]=a;a=H[d+4>>2];H[b+20>>2]=H[d>>2];H[b+24>>2]=a}xb=d+16|0}function gJ(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;h=6;f=H[a+532>>2];a:{if(!f){break a}if(!(b|c)){e=H[f>>2];if(!e){return 0}a=H[f+136>>2];b=H[f+140>>2];h=0;if(e-1>>>0>=3){f=e&-4;while(1){c=g<<2;H[c+a>>2]=H[b+c>>2];d=c|4;H[d+a>>2]=H[b+d>>2];d=c|8;H[d+a>>2]=H[b+d>>2];c=c|12;H[c+a>>2]=H[b+c>>2];g=g+4|0;i=i+4|0;if((f|0)!=(i|0)){continue}break}}f=e&3;if(!f){break a}c=0;while(1){e=g<<2;H[e+a>>2]=H[b+e>>2];g=g+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}break a}if(!c){break a}k=H[f>>2];h=b>>>0>k>>>0?k:b;b:{if(!h){break b}e=H[f+136>>2];if(h-1>>>0>=3){l=h&-4;while(1){d=g<<2;H[d+e>>2]=H[c+d>>2];j=d|4;H[j+e>>2]=H[c+j>>2];j=d|8;H[j+e>>2]=H[c+j>>2];d=d|12;H[d+e>>2]=H[c+d>>2];g=g+4|0;m=m+4|0;if((l|0)!=(m|0)){continue}break}}d=h&3;if(!d){break b}while(1){l=g<<2;H[l+e>>2]=H[c+l>>2];g=g+1|0;i=i+1|0;if((d|0)!=(i|0)){continue}break}}if(b>>>0>>0){Nb(H[f+136>>2]+(h<<2)|0,0,k-h<<2)}h=0;H[a+8>>2]=H[a+8>>2]&-32769|((b|0)!=0)<<15}return h|0}function _I(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;c=xb-336|0;xb=c;h=H[a+100>>2];zb[H[b+60>>2]](b,c+272|0,4,c+268|0);e=H[c+268>>2];a:{if((e|0)<0){d=162;break a}d=3;if(e-5>>>0<4294967292){break a}i=H[b+8>>2];j=H[b>>2];d=zl(a,0,e);H[c+332>>2]=d;if(d){break a}if(H[c+268>>2]>0){k=H[a+532>>2];a=0;while(1){d=N(a,12);f=d+(c+272|0)|0;H[b>>2]=H[f>>2];H[b+8>>2]=H[f+4>>2];zb[H[b+60>>2]](b,c+16|0,20,c+12|0);e=H[c+12>>2];if(e-21>>>0<4294967276){d=3;break a}f=d+k|0;if(H[f+92>>2]){d=3;H[c+332>>2]=3;break a}g=Ub(h,4,0,e<<1,0,c+332|0);H[f+92>>2]=g;d=H[c+332>>2];if(d){break a}e=H[c+12>>2];F[f+88|0]=e;H[f+96>>2]=g+(e<<2);d=0;if((e|0)>0){while(1){e=(c+16|0)+N(d,12)|0;H[b>>2]=H[e>>2]+1;H[b+8>>2]=H[e+4>>2]-1;e=zb[H[b+36>>2]](b)|0;g=d<<2;H[g+H[f+92>>2]>>2]=e;e=zb[H[b+40>>2]](b,0)|0;H[g+H[f+96>>2]>>2]=e;d=d+1|0;if((d|0)>2]){continue}break}}a=a+1|0;if((a|0)>2]){continue}break}f=H[c+332>>2]}H[b+8>>2]=i;H[b>>2]=j;d=f}H[b+12>>2]=d;xb=c+336|0}function Gu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=H[a+16>>2];f=I[d+12|0]|I[d+13|0]<<8|(I[d+14|0]<<16|I[d+15|0]<<24);i=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);a:{if(!i){break a}h=H[b>>2];if(c){if((h|0)==-1){break a}h=h+1|0}l=d+20|0;d=i;b:{c:{while(1){f=d+j>>>1|0;g=N(f,12)+l|0;e=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);k=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);e=g-4|0;e=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(e>>>0<=h>>>0){if(h>>>0<=k>>>0){break c}j=f+1|0}else{d=f}if(d>>>0>j>>>0){continue}break}d=0;break b}d=g;d=I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);g=h-e|0;d=d>>>0>(g^-1)>>>0?0:d+g|0}if(!c){return d}c=H[a>>2];if(h>>>0>k>>>0){g=0;f=f+1|0;if((i|0)==(f|0)){break a}}F[a+24|0]=1;H[a+36>>2]=f;H[a+28>>2]=h;d:{if(!(d>>>0>2]?d:0)){Fu(a);d=0;if(!I[a+24|0]){break d}d=H[a+32>>2];break d}H[a+32>>2]=d}g=d;H[b>>2]=H[a+28>>2]}return g}function _ea(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;a:{if((d|0)<=0){break a}g=H[a+112>>2];e=H[a+480>>2];j=H[a+120>>2];if((j|0)<=0){a=0;while(1){Mc(H[(a<<2)+c>>2],g);H[e+48>>2]=H[e+48>>2]+1&15;a=a+1|0;if((d|0)!=(a|0)){continue}break}break a}if(!g){a=0;while(1){Mc(H[(a<<2)+c>>2],0);H[e+48>>2]=H[e+48>>2]+1&15;a=a+1|0;if((d|0)!=(a|0)){continue}break}break a}r=g&-2;s=g&1;while(1){a=k<<2;o=a+c|0;Mc(H[o>>2],g);t=a+b|0;l=H[e+48>>2];h=0;while(1){f=H[t>>2]+h|0;a=h<<2;m=H[a+H[e+24>>2]>>2];p=H[(a+e|0)+52>>2];a=H[o>>2];i=0;n=0;if((g|0)!=1){while(1){q=(l<<6)+p|0;F[a|0]=I[a|0]+I[(H[q+(i<<2)>>2]+I[f|0]|0)+m|0];f=f+j|0;F[a+1|0]=I[a+1|0]+I[(H[((i+1&15)<<2)+q>>2]+I[f|0]|0)+m|0];a=a+2|0;i=i+2&15;f=f+j|0;n=n+2|0;if((r|0)!=(n|0)){continue}break}}if(s){F[a|0]=I[a|0]+I[(H[((l<<6)+p|0)+(i<<2)>>2]+I[f|0]|0)+m|0]}h=h+1|0;if((j|0)!=(h|0)){continue}break}H[e+48>>2]=l+1&15;k=k+1|0;if((k|0)!=(d|0)){continue}break}}}function JU(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-16|0;xb=e;a:{b:{c:{b=ac(a);if(b>>>0>=6){f=(a+b|0)-6|0;if(!md(f,239513,6)){break c}}H[197018]=28;break b}i=100;while(1){g=0;h=xb-16|0;xb=h;if(!I[788076]){b=qb()|0;F[788076]=1;F[788077]=b}b=h+8|0;j=+rb();d=j/1e3;d:{if(P(d)<0x8000000000000000){k=P(d)>=1?~~(d>0?R(T(d*2.3283064365386963e-10),4294967295):U((d-+(~~d>>>0>>>0))*2.3283064365386963e-10))>>>0:0;c=~~d>>>0;break d}k=-2147483648;c=0}H[b>>2]=c;d=(j-(+(gma(c,k,1e3,0)>>>0)+ +(yb|0)*4294967296))*1e3*1e3;e:{if(P(d)<2147483648){c=~~d;break e}c=-2147483648}H[b+4>>2]=c;b=(b>>>4|0)+f^N(H[h+12>>2],65537);while(1){F[f+g|0]=(b&15|b<<1&32)+65;b=b>>>5|0;g=g+1|0;if((g|0)!=6){continue}break}xb=h+16|0;H[e>>2]=384;c=xb-16|0;xb=c;H[c+12>>2]=e+4;H[c>>2]=H[e>>2];b=Wa(-100,a|0,32962,c|0)|0;if(b>>>0>=4294963201){H[197018]=0-b;b=-1}xb=c+16|0;if((b|0)>=0){break a}i=i-1|0;if(H[197018]==20?i:0){continue}break}Ob(f,239513,6)}b=-1}xb=e+16|0;return b|0}function un(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!(!a|!b)){c=H[a>>2];e=c>>31;f=H[b>>2];d=f>>31;e=(c^e)-e|0;d=(d^f)-d|0;a:{if(e+(d>>>8|0)>>>0<=8190){d=N(d,e)+32768>>>16|0;break a}g=e&65535;d=N(g,d>>>16|0)+N(d,e>>>16|0)+(N(g,d&65535)+32768>>>16)|0}g=c>>31|1;k=0-g|0;i=(((f|0)<0?k:g)|0)<0?0-d|0:d;f=H[a+4>>2];d=f>>31;h=H[b+4>>2];c=h>>31;d=(d^f)-d|0;c=(c^h)-c|0;b:{if(d+(c>>>8|0)>>>0<=8190){c=N(c,d)+32768>>>16|0;break b}j=d&65535;c=N(j,c>>>16|0)+N(c,d>>>16|0)+(N(j,c&65535)+32768>>>16)|0}f=f>>31|1;l=0-f|0;j=i+((((h|0)<0?l:f)|0)<0?0-c|0:c)|0;h=H[b+8>>2];c=h>>31;c=(c^h)-c|0;c:{if(e+(c>>>8|0)>>>0<=8190){e=N(c,e)+32768>>>16|0;break c}i=e&65535;e=N(i,c>>>16|0)+N(c,e>>>16|0)+(N(i,c&65535)+32768>>>16)|0}c=(((h|0)<0?k:g)|0)<0?0-e|0:e;e=H[b+12>>2];b=e>>31;b=(b^e)-b|0;d:{if(d+(b>>>8|0)>>>0<=8190){b=N(b,d)+32768>>>16|0;break d}g=d&65535;b=N(g,b>>>16|0)+N(b,d>>>16|0)+(N(g,b&65535)+32768>>>16)|0}H[a>>2]=j;H[a+4>>2]=c+((((e|0)<0?l:f)|0)<0?0-b|0:b)}}function DP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;a=xb-16|0;xb=a;H[a+12>>2]=c;H[a+8>>2]=f;H[a+12>>2]=c;H[a+8>>2]=f;b=H[a+12>>2];a:{while(1){if(b>>>0>=d>>>0){c=0;break a}c=2;b=H[b>>2];if(b>>>0>1114111|(b&-2048)==55296){break a}b:{c:{if(b>>>0<=127){c=1;f=H[a+8>>2];if((g-f|0)<=0){break a}H[a+8>>2]=f+1;F[f|0]=b;break c}if(b>>>0<=2047){c=H[a+8>>2];if((g-c|0)<2){break b}H[a+8>>2]=c+1;F[c|0]=b>>>6|192;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b&63|128;break c}c=H[a+8>>2];f=g-c|0;if(b>>>0<=65535){if((f|0)<3){break b}H[a+8>>2]=c+1;F[c|0]=b>>>12|224;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b>>>6&63|128;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b&63|128;break c}if((f|0)<4){break b}H[a+8>>2]=c+1;F[c|0]=b>>>18|240;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b>>>12&63|128;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b>>>6&63|128;c=H[a+8>>2];H[a+8>>2]=c+1;F[c|0]=b&63|128}b=H[a+12>>2]+4|0;H[a+12>>2]=b;continue}break}c=1}H[e>>2]=H[a+12>>2];H[h>>2]=H[a+8>>2];xb=a+16|0;return c|0}function Qp(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;a:{g=H[a>>2]-12|0;e=H[g>>2]+a|0;d=H[e+8>>2];if(d+3>>>0>2]){f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);H[e+8>>2]=d+4;if(f-1>>>0<5){break a}}H[b+20>>2]=0;return}H[b+20>>2]=f;d=0;f=H[g>>2]+a|0;e=H[f+8>>2];if(e+3>>>0>2]){d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);H[f+8>>2]=e+4}e=H[a+116>>2]-16|0;e=d>>>0>e>>>0?d:e;d=H[b+4>>2];if(d){Kb(d)}j=Qb(e);H[b+12>>2]=e;H[b+4>>2]=j;if(c){f=Qb(e);g=H[H[a>>2]-12>>2]+a|0;h=H[g+12>>2];d=H[g+8>>2];a=h-d|0;i=a>>>0>>0?a:e;b:{if(!i){break b}a=0;if((i|0)!=1){l=i&-2;while(1){c:{if(d>>>0>=h>>>0){c=0;break c}c=I[d|0];d=d+1|0;H[g+8>>2]=d}F[a+f|0]=c;c=0;if(d>>>0>>0){c=I[d|0];d=d+1|0;H[g+8>>2]=d}F[f+(a|1)|0]=c;a=a+2|0;k=k+2|0;if((k|0)!=(l|0)){continue}break}}if(!(i&1)){break b}c=0;if(d>>>0>>0){c=I[d|0];H[g+8>>2]=d+1}F[a+f|0]=c}if(e){a=H[b+8>>2];c=e-(e>>>0>>0?a:0)|0;Ob(a+j|0,f,c);H[b+8>>2]=a+c}Kb(f)}}function bf(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{if(!I[a+61|0]){H[a+64>>2]=b;break b}if(!I[a+60|0]){break a}d=H[a+72>>2];if(d>>>0>>0){if(K[a+76>>2]<=b>>>0){if(!fh(a,b)){break a}}e=b-d|0;c=H[a+84>>2];d=H[a+80>>2];c:{if((c|0)!=(d|0)){b=d;break c}f=H[a+72>>2];b=c;if(f+e>>>0<=e+H[a+64>>2]>>>0){break c}b=H[a+88>>2];H[a+84>>2]=b;Ob(b,d,N(f,20));c=H[a+84>>2];b=H[a+80>>2]}$c(N(H[a+72>>2],20)+c|0,b+N(H[a+64>>2],20)|0,N(e,20));H[a+64>>2]=e+H[a+64>>2];H[a+72>>2]=e+H[a+72>>2];break b}if(b>>>0>=d>>>0){break b}e=d-b|0;b=H[a+64>>2];if(e>>>0>b>>>0){f=H[a+68>>2];d=e-b|0;g=f+d|0;if(!(!g|K[a+76>>2]>g>>>0)){if(!fh(a,g)){break a}f=H[a+68>>2];b=H[a+64>>2]}c=H[a+80>>2]+N(b,20)|0;$c(c+N(d,20)|0,c,N(f-b|0,20));b=d+H[a+64>>2]|0;c=H[a+68>>2];if(b>>>0>c>>>0){Nb(H[a+80>>2]+N(c,20)|0,0,N(b-c|0,20));c=H[a+68>>2];b=d+H[a+64>>2]|0}H[a+68>>2]=c+d;d=H[a+72>>2]}c=d-e|0;H[a+72>>2]=c;b=b-e|0;H[a+64>>2]=b;$c(H[a+80>>2]+N(b,20)|0,H[a+84>>2]+N(c,20)|0,N(e,20))}c=1}return c}function Lka(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;g=xb-16|0;xb=g;e=I[a+2|0]|I[a+3|0]<<8;if(e){c=((e<<8|e>>>8)&65535)+a|0}else{c=163632}e=H[b+100>>2];c=Gc(c,H[H[e+80>>2]+N(H[e+64>>2],20)>>2]);a:{if((c|0)==-1){break a}e=163632;d=I[a+4|0]|I[a+5|0]<<8;c=c>>>0<((d<<8|d>>>8)&65535)>>>0?((c<<1)+a|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}d=0;a=H[31228];H[g+8>>2]=H[31227];H[g+12>>2]=a;a=H[31226];H[g>>2]=H[31225];H[g+4>>2]=a;a=I[e|0]|I[e+1|0]<<8;if(!a){break a}h=(a<<8|a>>>8)&65535;c=e+2|0;while(1){a=I[c|0]|I[c+1|0]<<8;if(a){a=((a<<8|a>>>8)&65535)+e|0}else{a=163632}d=I[a|0]|I[a+1|0]<<8;i=(d<<8|d>>>8)&65535;j=(i<<1)+a|0;d=j+2|0;f=I[d|0]|I[d+1|0]<<8;k=(f<<8|f>>>8)&65535;d=(f?k<<1:2)+d|0;f=I[d|0]|I[d+1|0]<<8;l=(f<<8|f>>>8)&65535;f=(l<<1)+d|0;m=I[f+2|0]|I[f+3|0]<<8;d=Jn(b,i,a+2|0,k,j+4|0,l,d+2|0,(m<<8|m>>>8)&65535,f+4|0,g);if(d){break a}c=c+2|0;h=h-1|0;if(h){continue}break}}xb=g+16|0;return d|0}function tk(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(+a);c=v(1)|0;e=v(0)|0;d=c-1072562176|0;if((d|0)==198911|d>>>0<198911){if(!e&(c|0)==1072693248){return 0}a=a+-1;b=a*134217728;b=a+b-b;h=M[94709];j=b*b*h;k=a+j;f=a*a;g=a*f;return k+(g*(g*(g*(g*M[94719]+(f*M[94718]+(a*M[94717]+M[94716])))+(f*M[94715]+(a*M[94714]+M[94713])))+(f*M[94712]+(a*M[94711]+M[94710])))+((a-b)*h*(a+b)+(j+(a-k))))}d=c>>>16|0;a:{if(d-32752>>>0<=4294934559){if(!(c&2147483647|e)){e=xb-16|0;M[e+8>>3]=-1;return M[e+8>>3]/0}if(!e&(c|0)==2146435072){break a}if(!(!(d&32768)&(d&32752)!=32752)){a=a-a;return a/a}A(+(a*4503599627370496));c=v(1)|0;e=v(0)|0;c=c-54525952|0}d=c-1072037888|0;f=+(d>>20);i=(d>>>13&127)<<4;g=f*M[94702]+M[i+757768>>3];a=M[i+757760>>3];x(0,e-0|0);x(1,c-((d&-1048576)+(e>>>0>>0)|0)|0);a=a*(+z()-M[i+759808>>3]-M[i+759816>>3]);h=g+a;b=a*a;a=h+(a*b*(b*(a*M[94708]+M[94707])+(a*M[94706]+M[94705]))+(b*M[94704]+(f*M[94703]+(a+(g-h)))))}return a}function F9(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=O(0),k=O(0),l=O(0),m=0,n=0,o=0;if((c|0)>0){a=H[a+12>>2];while(1){l=O(0);f=H[a>>2];e=f>>16;m=e&32767;a:{if(!m){k=O(0);j=O(0);break a}k=O(0);d=vh((+(m|0)+.5)*.0027076061740622863+-44.3614195558365);d=e&32768?-d:d;j=O(0);if(d<=0){break a}h=(+((f>>>8&255)>>>0)+.5)*.0024390243902439024;i=(+((f&255)>>>0)+.5)*.0024390243902439024;g=1/(h*6+i*-16+12);h=h*9*g;g=i*4*g;k=O(d*(h/g));l=O(d*((1-h-g)/g));j=O(d)}d=+k;g=+j;n=d*.061+g*-.224;h=+l;o=h*1.163;i=h*-.414+(d*2.69+g*-1.276);if(i<=0){e=0}else{e=i>=1;i=W(i)*256;b:{if(P(i)<2147483648){f=~~i;break b}f=-2147483648}e=e?-1:f}F[b|0]=e;d=h*.044+(d*-1.022+g*1.978);if(d<=0){e=0}else{e=d>=1;d=W(d)*256;c:{if(P(d)<2147483648){f=~~d;break c}f=-2147483648}e=e?-1:f}F[b+1|0]=e;a=a+4|0;d=o+n;if(d<=0){e=0}else{e=d>=1;d=W(d)*256;d:{if(P(d)<2147483648){f=~~d;break d}f=-2147483648}e=e?-1:f}F[b+2|0]=e;b=b+3|0;f=c>>>0>1;c=c-1|0;if(f){continue}break}}}function dr(a){a=a|0;var b=0,c=0,d=0;d=Bd(a,2);H[a>>2]=248976;H[197455]=0;b=aa(929,16384)|0;c=H[197455];H[197455]=0;a:{if((c|0)==1){break a}H[a+992>>2]=b;H[197455]=0;b=aa(929,4096)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+1024>>2]=b;H[197455]=0;b=aa(929,4096)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+1028>>2]=b;H[197455]=0;b=aa(929,8192)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+1032>>2]=b;H[197455]=0;b=aa(929,20012)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+1036>>2]=b;H[197455]=0;b=aa(929,10006)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+1040>>2]=b;H[197455]=0;b=aa(929,257)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+1016>>2]=b;H[197455]=0;b=aa(929,256)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+1076>>2]=b;H[197455]=0;b=aa(929,256)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[a+1084>>2]=0;H[a+1080>>2]=b;F[a+456|0]=0;F[b|0]=0;return a|0}a=$()|0;_()|0;Zf(d);ea(a|0);X()}function wC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=H[b+8>>2];d=g>>31;f=G[a+70>>1];c=f>>15;d=(d^g)-d|0;h=d>>>8|0;c=(c^f)-c&65535;a:{if(h+c>>>0<=8190){e=N(c,d)+32768>>>16|0;break a}e=N(c,d>>>16|0)+(N(c,d&65535)+32768>>>16|0)|0}c=e;i=0-c|0;c=f>>31|1;H[b+12>>2]=((((g|0)<0?0-c|0:c)|0)<0?i:e)+63&-64;f=G[a+72>>1];c=f>>15;c=(c^f)-c&65535;b:{if(c+h>>>0<=8190){e=N(c,d)+32768>>>16|0;break b}e=N(c,d>>>16|0)+(N(c,d&65535)+32768>>>16|0)|0}c=e;i=0-c|0;c=f>>31|1;H[b+16>>2]=((((g|0)<0?0-c|0:c)|0)<0?i:e)&-64;f=G[a+74>>1];c=f>>15;c=(c^f)-c&65535;c:{if(c+h>>>0<=8190){c=N(c,d)+32768>>>16|0;break c}c=N(c,d>>>16|0)+(N(c,d&65535)+32768>>>16|0)|0}d=c;e=0-d|0;d=f>>31|1;H[b+20>>2]=((((g|0)<0?0-d|0:d)|0)<0?e:c)+32&-64;g=G[a+76>>1];d=g>>15;c=H[b+4>>2];a=c>>31;d=(d^g)-d&65535;a=(a^c)-a|0;d:{if(d+(a>>>8|0)>>>0<=8190){e=N(a,d)+32768>>>16|0;break d}e=N(d,a>>>16|0)+(N(d,a&65535)+32768>>>16|0)|0}a=e;d=0-a|0;a=g>>31|1;H[b+24>>2]=((((c|0)<0?0-a|0:a)|0)<0?d:e)+32&-64}function Bp(a){var b=0,c=0,d=0,e=0,f=0,g=0;A(+a);e=v(1)|0;v(0)|0;d=e&2147483647;if(d>>>0>=1141899264){A(1.5707963267948966);e=v(1)|0;d=v(0)|0;A(+a);b=v(1)|0;v(0)|0;x(0,d|0);x(1,e&2147483647|b&-2147483648);g=+z();A(+a);b=v(1)|0;e=v(0)|0;b=b&2147483647;return(b|0)==2146435072&(e|0)!=0|b>>>0>2146435072?a:g}a:{b:{if(d>>>0<=1071382527){b=-1;if(d>>>0>=1044381696){break b}break a}a=P(a);if(d>>>0<=1072889855){if(d>>>0<=1072037887){a=(a+a+-1)/(a+2);b=0;break b}a=(a+-1)/(a+1);b=1;break b}if(d>>>0<=1073971199){a=(a+-1.5)/(a*1.5+1);b=2;break b}a=-1/a;b=3}f=a*a;c=f*f;g=c*(c*(c*(c*(c*-.036531572744216916+-.058335701337905735)+-.0769187620504483)+-.11111110405462356)+-.19999999999876483);f=f*(c*(c*(c*(c*(c*.016285820115365782+.049768779946159324)+.06661073137387531)+.09090887133436507)+.14285714272503466)+.3333333333333293);if(d>>>0<=1071382527){return a-a*(g+f)}b=b<<3;a=M[b+752480>>3]-(a*(g+f)-M[b+752512>>3]-a);a=(e|0)>0|(e|0)>=0?a:-a}return a}function wj(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=c-b|0;if((d|0)<=0){return 0}c=(b>>3)+a|0;a:{b=b&7;b:{c:{if(!b){a=0;break c}a=8-b|0;e=I[(I[c|0]<>>0>>0?a:e;a=a>>>0>>0?a:d;if(b+a>>>0<8){break b}c=c+1|0;d=d-a|0}d:{if((d|0)<64){b=d;break d}e:{if(!(c&3)){b=d;break e}b=I[c|0];if(b){e=a;break a}g=d-8|0;e=a+8|0;h=c+1|0;f:{if(!(h&3)){b=g;g=d;c=h;break f}b=I[h|0];if(b){break a}h=d-16|0;e=a+16|0;f=c+2|0;if(!(f&3)){b=h;c=f;break f}b=I[f|0];if(b){break a}g=d-24|0;e=a+24|0;f=c+3|0;if(!(f&3)){b=g;g=h;c=f;break f}b=I[f|0];if(b){break a}b=d-32|0;e=a+32|0;c=c+4|0}a=e;if((g|0)<40){break d}}d=b;while(1){if(H[c>>2]){b=d;break d}c=c+4|0;a=a+32|0;e=(d|0)>63;b=d-32|0;d=b;if(e){continue}break}}g:{if((b|0)<8){e=b;break g}while(1){d=I[c|0];if(d){return I[d+294768|0]+a|0}c=c+1|0;a=a+8|0;d=(b|0)>15;e=b-8|0;b=e;if(d){continue}break}}if((e|0)<=0){break b}b=a;a=I[I[c|0]+294768|0];a=b+((a|0)>(e|0)?e:a)|0}return a}return I[b+294768|0]+e|0}function oo(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;g=xb-16|0;xb=g;a:{if(F[a+372|0]&1){i=H[a+52>>2];j=H[a+48>>2];k=J[a+46>>1];h=J[a+44>>1];l=H[a+36>>2];m=H[a+40>>2];f=a- -64|0;n=H[f+4>>2];H[g+8>>2]=H[f>>2];H[g+12>>2]=n;f=H[a+60>>2];H[g>>2]=H[a+56>>2];H[g+4>>2]=f;f=a+290|0;break a}i=H[a+88>>2];j=H[a+84>>2];k=J[a+82>>1];h=J[a+80>>1];l=H[a+72>>2];m=H[a+76>>2];f=H[a+104>>2];H[g+8>>2]=H[a+100>>2];H[g+12>>2]=f;f=H[a+96>>2];H[g>>2]=H[a+92>>2];H[g+4>>2]=f;f=a+292|0}f=J[f>>1];b:{if(f>>>0>=h>>>0){if(I[a+565|0]){H[a+12>>2]=134}G[e>>1]=0;a=1;break b}H[d+16>>2]=i;H[d+12>>2]=j;G[d+10>>1]=k;G[d+8>>1]=h;H[d>>2]=l;H[d+4>>2]=m;h=H[g+4>>2];H[d+20>>2]=H[g>>2];H[d+24>>2]=h;h=H[g+12>>2];H[d+28>>2]=H[g+8>>2];H[d+32>>2]=h;G[e>>1]=f;e=b;b=f<<3;d=b+i|0;b=b+j|0;b=zb[H[a+576>>2]](a,H[d>>2]-H[b>>2]|0,H[d+4>>2]-H[b+4>>2]|0)|0;o=e,p=ic(b,G[a+302>>1],H[a+568>>2]),H[o>>2]=p;o=c,p=ic(b,G[a+304>>1],H[a+568>>2]),H[o>>2]=p;a=0}xb=g+16|0;return a}function ps(a,b,c){var d=0,e=0;d=H[b+92>>2];if(d){d=H[d+4>>2]==1937337698}else{d=0}e=oc(1,1064);if(e){F[e+33|0]=c;F[e+32|0]=d;H[e+24>>2]=b;H[e+28>>2]=2;d=0;b=e+40|0;while(1){c=d<<2;H[c+b>>2]=-1;H[b+(c|4)>>2]=-1;H[b+(c|8)>>2]=-1;H[b+(c|12)>>2]=-1;H[b+(c|16)>>2]=-1;H[b+(c|20)>>2]=-1;H[b+(c|24)>>2]=-1;H[b+(c|28)>>2]=-1;d=d+8|0;if((d|0)!=256){continue}break}while(1){a:{b=H[196243];if(b){break a}b=Gs();Es(b,623);Ds(b,624);Cs(b,625);Fs(b,626);Bs(b,627);if(H[b+4>>2]){c=H[b+108>>2];if(c){zb[c|0](H[b+36>>2])}H[b+108>>2]=0;H[b+180>>2]=628;H[b+36>>2]=0}As(b,629);if(H[b+4>>2]){c=H[b+128>>2];if(c){zb[c|0](H[b+56>>2])}H[b+128>>2]=0;H[b+200>>2]=630;H[b+56>>2]=0}zs(b,631);if(H[b+4>>2]){c=H[b+140>>2];if(c){zb[c|0](H[b+68>>2])}H[b+140>>2]=0;H[b+212>>2]=632;H[b+68>>2]=0}ys(b,633);ws(b,634);vs(b,635);if(H[b+4>>2]){H[b+4>>2]=0}c=H[196243];b=b?b:783776;H[196243]=c?c:b;if(!c){break a}if(!b|(b|0)==783776){continue}tl(b);continue}break}ts(a,b,e,622)}}function MT(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;e=xb-16|0;xb=e;a:{b:{if((b|0)!=-1){g=H[a+12>>2];h=H[a+8>>2];if(H[a+24>>2]==H[a+28>>2]){c=-1;if(!(I[a+48|0]&16)){break a}i=H[a+24>>2];f=H[a+20>>2];j=H[a+44>>2];H[197455]=0;d=a+32|0;ba(3348,d|0,0);c=H[197455];H[197455]=0;if((c|0)==1){break b}c=I[d+11|0]>>>7|0?(H[d+8>>2]&2147483647)-1|0:10;H[197455]=0;ba(3349,d|0,c|0);c=H[197455];H[197455]=0;if((c|0)==1){break b}if(I[d+11|0]>>>7|0){c=H[d>>2]}else{c=d}if(I[d+11|0]>>>7|0){d=H[d+4>>2]}else{d=I[d+11|0]}H[a+28>>2]=d+c;H[a+20>>2]=c;H[a+24>>2]=c;H[a+24>>2]=H[a+24>>2]+(i-f|0);H[a+44>>2]=H[a+20>>2]+(j-f|0)}H[e+12>>2]=H[a+24>>2]+1;c=xb-16|0;xb=c;xb=c+16|0;c=a+44|0;d=e+12|0;H[a+44>>2]=H[(K[d>>2]>2]?c:d)>>2];if(I[a+48|0]&8){c=a+32|0;if(I[c+11|0]>>>7|0){c=H[c>>2]}H[a+16>>2]=H[a+44>>2];H[a+12>>2]=c+(g-h|0);H[a+8>>2]=c}c=nx(a,b<<24>>24);break a}c=(b|0)==-1?0:b;break a}a=ha(0)|0;_()|0;sa(a|0)|0;ra();c=-1}xb=e+16|0;return c|0}function hea(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;l=H[a+328>>2]-1|0;m=H[a+448>>2];a:{while(1){f=H[a+144>>2];c=H[a+152>>2];if((f|0)>=(c|0)&((c|0)!=(f|0)|K[a+148>>2]>K[a+156>>2])){break a}if(zb[H[H[a+456>>2]>>2]](a)|0){continue}break}return 0}if(H[a+36>>2]>0){d=H[a+216>>2];while(1){b:{if(!H[d+52>>2]){break b}e=h<<2;c=H[d+12>>2];n=zb[H[H[a+4>>2]+32>>2]](a,H[(e+m|0)+72>>2],N(c,H[a+156>>2]),c,0)|0;g=!H[d+28>>2];if(K[a+156>>2]>>0){c=H[d+12>>2]}else{f=H[d+12>>2];c=K[d+32>>2]%(f>>>0)|0;c=c?c:f}if(g|(c|0)<=0){break b}o=H[(e+H[a+468>>2]|0)+4>>2];i=H[b+e>>2];g=0;e=1;while(1){f=0;if(e){e=H[(g<<2)+n>>2];j=0;k=0;while(1){zb[o|0](a,d,e,i,j);e=e+128|0;j=H[d+36>>2]+j|0;f=H[d+28>>2];k=k+1|0;if(f>>>0>k>>>0){continue}break}}i=(H[d+40>>2]<<2)+i|0;e=f;g=g+1|0;if((c|0)!=(g|0)){continue}break}}d=d+88|0;h=h+1|0;if((h|0)>2]){continue}break}}b=H[a+156>>2]+1|0;H[a+156>>2]=b;return(b>>>0>2]?3:4)|0}function pf(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=xb-32|0;F[j+23|0]=0;f=d>>31;g=(f^d)-f|0;e=j+23|0;l=c-1|0;m=(c|0)!=5;i=1;c=0;while(1){if(!(!g&(c|0)>=(i|0))){f=0;a:{b:{c:{d:{switch(l|0){case 4:f=(g>>>0)%10|0;i=f|k;k=0;if(i){e=e-1|0;h=I[f+262640|0];F[e|0]=h;k=1}f=(g>>>0)/10|0;i=5;default:c=c+1|0;if(!m){break b}break a;case 1:i=2;case 0:e=e-1|0;f=(g>>>0)/10|0;h=I[(g-N(f,10)|0)+262640|0];F[e|0]=h;break c;case 3:i=2;break;case 2:break d}}e=e-1|0;h=I[(g&15)+262640|0];F[e|0]=h;f=g>>>4|0}c=c+1|0;break a}if((c|0)!=5|e>>>0<=j>>>0){break a}if(k){h=46;e=e-1|0;F[e|0]=46;c=5;break a}k=0;c=5;if(f){break a}h=48;e=e-1|0;F[e|0]=48;f=0}g=f;if(e>>>0>j>>>0){continue}}break}if(!(e>>>0<=j>>>0|(d|0)>=0)){e=e-1|0;F[e|0]=45;h=45}e:{if(!a){break e}b=b-1|0;if(b>>>0>7){break e}c=0;f:{if(!e|!h){break f}d=(b<<5)+a|0;g=0;while(1){F[d+g|0]=h;c=g+1|0;h=I[e+1|0];if(!h){break f}e=e+1|0;f=g>>>0<30;g=c;if(f){continue}break}}F[((b<<5)+a|0)+c|0]=0}}function iu(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=xb-16|0;xb=c;d=H[a+104>>2];g=H[d+28>>2];e=H[a+736>>2];F[e+24|0]=1;a:{if(zb[H[a+516>>2]](a,1635148146,d,c+8|0)|0){break a}a=Jc(d,H[c+8>>2]);H[c+12>>2]=a;if(a){break a}a=de(d);f=de(d);b:{if((a|0)!=65536|(f|0)!=H[H[e+12>>2]>>2]){break b}a=Ub(g,8,0,f,0,c+12|0);H[e+28>>2]=a;if(H[c+12>>2]|(f|0)<=0){break b}while(1){c:{b=Tc(d);G[a>>1]=b;if(K[c+8>>2]>>0){break c}k=a,l=Ub(g,8,0,b,0,c+12|0),H[k+4>>2]=l;if(H[c+12>>2]){break c}b=0;if(J[a>>1]){while(1){i=Tc(d);j=b<<3;H[j+H[a+4>>2]>>2]=i<<16>>16<<2;i=Tc(d);H[(H[a+4>>2]+j|0)+4>>2]=i<<16>>16<<2;b=b+1|0;if(b>>>0>1]){continue}break}}a=a+8|0;h=h+1|0;if((f|0)!=(h|0)){continue}break b}break}d:{if(!h){a=H[e+28>>2];break d}a=H[e+28>>2];while(1){f=h-1|0;b=f<<3;a=H[(b+a|0)+4>>2];if(a){zb[H[g+8>>2]](g,a)}a=H[e+28>>2];H[(b+a|0)+4>>2]=0;b=(h|0)>1;h=f;if(b){continue}break}}if(a){zb[H[g+8>>2]](g,a)}H[e+28>>2]=0}wc(d)}xb=c+16|0}function UC(a){var b=0,c=0,d=0,e=0;b=H[a+480>>2];a=zb[H[H[a+4>>2]>>2]](a,1,2044)|0;c=a+1020|0;H[b+40>>2]=c;H[a+1016>>2]=-1;H[a+1020>>2]=0;H[a+1024>>2]=1;H[a+1028>>2]=2;H[a+1032>>2]=3;H[a+1036>>2]=4;H[a+1008>>2]=-3;H[a+1012>>2]=-2;H[a+1040>>2]=5;H[a+1044>>2]=6;H[a+1e3>>2]=-5;H[a+1004>>2]=-4;H[a+1048>>2]=7;H[a+1052>>2]=8;H[a+992>>2]=-7;H[a+996>>2]=-6;H[a+1056>>2]=9;H[a+1060>>2]=10;H[a+984>>2]=-9;H[a+988>>2]=-8;H[a+1064>>2]=11;H[a+1068>>2]=12;H[a+976>>2]=-11;H[a+980>>2]=-10;H[a+1072>>2]=13;H[a+1076>>2]=14;H[a+968>>2]=-13;H[a+972>>2]=-12;H[a+1080>>2]=15;H[a+960>>2]=-15;H[a+964>>2]=-14;b=16;d=16;while(1){a=d<<2;H[a+c>>2]=b;e=0-b|0;H[c-a>>2]=e;H[(a|4)+c>>2]=b;H[((d^-1)<<2)+c>>2]=e;b=b+1|0;a=48;d=d+2|0;if((d|0)!=48){continue}break}while(1){b=a<<2;H[b+c>>2]=32;H[c-b>>2]=-32;H[(b|4)+c>>2]=32;H[((a^-1)<<2)+c>>2]=-32;H[(b|8)+c>>2]=32;H[(-2-a<<2)+c>>2]=-32;H[(b|12)+c>>2]=32;H[(-3-a<<2)+c>>2]=-32;a=a+4|0;if((a|0)!=256){continue}break}}function mB(a){var b=0,c=0,d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;a:{if(J[a+138>>1]!=1){Pb(H[a+628>>2],292992,274256,0);break a}b=-1;e=H[a+584>>2];c=H[e>>2];if((c|0)==-1){c=0;b:{c:{d:{e:{f:{d=J[a+86>>1]|J[a+84>>1]<<3;switch(d-257|0){case 2:break b;case 0:case 1:case 3:break e;default:break f}}c=d-129|0;if(c>>>0<=3){break d}break c}b=2;c=-1;break b}if((c|0)==2){break c}c=1;break b}g:{switch(d-65|0){case 0:case 3:c=3;break b;default:break g}}c=-1}h:{i:{switch(J[a+98>>1]-1|0){case 2:b=c;break h;case 0:break h;default:break i}}b=-1}H[e>>2]=b;c=b}if(c>>>0>=4){c=0;Pb(H[a+628>>2],H[a>>2],274455,0);break a}H[e+8>>2]=H[(c<<2)+293024>>2];c=1;j:{if(I[a+13|0]&4){g=H[a+68>>2];b=gma(H[a+72>>2],0,g,0);d=(yb|0)!=0;break j}g=H[a+56>>2];b=gma(H[a+100>>2],0,g,0);d=(yb|0)!=0}d=g?d?0:b:b;H[e+16>>2]=d;b=d<<2;if(d?(d|0)!=(d&1073741823)?0:b:b){b=Tb(b);H[e+12>>2]=b;if(b){break a}}b=H[a+628>>2];H[f>>2]=H[a>>2];Pb(b,292992,275314,f);c=0}xb=f+16|0;return c}function iG(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);d=d?d+a|0:163632;a:{if(I[d|0]){break a}e=I[d+2|0]|I[d+3|0]<<8;if(!e){break a}g=I[d+1|0];h=g>>>4&3;f=h+1|0;e=(e<<8|e>>>8)&65535;d=d+N(f,b>>>0>>0?b:e-1|0)|0;b=I[d+4|0];b:{if(!h){break b}b=I[d+5|0]|b<<8;if((f|0)==2){break b}b=I[d+6|0]|b<<8;if((f|0)==3){break b}b=I[d+7|0]|b<<8}d=(g&15)+1|0;b=b>>>d<<16|(-1<>>8&65280|a>>>24);a=a?d+a|0:163632;d=I[a+6|0]|I[a+7|0]<<8;e=(d<<8|d>>>8)&65535;d=b>>>16|0;if(e>>>0<=d>>>0){return O(0)}d=a+(d<<2)|0;d=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);e=d?d+a|0:163632;d=a;a=I[a+2|0]|I[a+3|0]<<8|(I[a+4|0]<<16|I[a+5|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);return ml(e,b&65535,H[c+72>>2],H[c+68>>2],a?d+a|0:163632)}function m9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[a+584>>2];a:{b:{c:{d:{e:{f:{g:{switch(b-292|0){default:h:{switch(b-34908|0){case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break h}}i:{switch(b-65536|0){case 0:H[H[c>>2]>>2]=H[d+4>>2];break a;case 4:break i;default:break b}}H[H[c>>2]>>2]=H[d+76>>2];break a;case 0:case 1:H[H[c>>2]>>2]=H[d+28>>2];break a;case 34:H[H[c>>2]>>2]=H[d+24>>2];break a;case 35:G[H[c>>2]>>1]=J[d+16>>1];break a;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:break b;case 36:break g}}H[H[c>>2]>>2]=H[d+20>>2];break a}H[H[c>>2]>>2]=H[d+32>>2];break a}H[H[c>>2]>>2]=H[d+36>>2];break a}H[H[c>>2]>>2]=H[d+40>>2];break a}H[H[c>>2]>>2]=H[d+44>>2];break a}return zb[H[d+48>>2]](a,b,c)|0}return 1}function UG(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;a=H[b+24>>2];H[197455]=0;a=da(637,a|0,c|0)|0;e=H[197455];H[197455]=0;a:{if((e|0)==1){break a}b:{c:{d:{if(a){break d}if(!(!I[b+32|0]|c>>>0>255)){a=H[b+24>>2];H[197455]=0;a=da(637,a|0,c+61440|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break a}if(a){break d}}e=H[b+24>>2];e:{if(!e){break e}a=H[e+92>>2];if(!a){break e}h=H[a+4>>2]}if(H[e+36>>2]>0){while(1){b=0;a=H[H[e+40>>2]+(f<<2)>>2];if(!J[a+10>>1]){b=J[a+8>>1]==3}H[197455]=0;a=da(638,e|0,a|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}if(!a){H[197455]=0;a=da(637,e|0,c|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}if(!(!b|a)){H[197455]=0;a=da(637,e|0,61440)|0;b=H[197455];H[197455]=0;if((b|0)==1){break b}}if(a){break d}}f=f+1|0;if((f|0)>2]){continue}break}}a=0;H[197455]=0;Kh(e,h);c=H[197455];H[197455]=0;if((c|0)==1){break a}break c}H[d>>2]=a;a=1}Vc();return a|0}}a=$()|0;_()|0;Vc();ea(a|0);X()}function zE(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;g=xb-16|0;xb=g;e=I[b+2|0]|I[b+3|0]<<8;if(e){c=((e<<8|e>>>8)&65535)+b|0}else{c=163632}e=H[a+100>>2];c=Gc(c,H[H[e+80>>2]+N(H[e+64>>2],20)>>2]);a:{if((c|0)==-1){break a}e=163632;d=I[b+4|0]|I[b+5|0]<<8;c=c>>>0<((d<<8|d>>>8)&65535)>>>0?((c<<1)+b|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+b|0}d=0;b=H[31228];H[g+8>>2]=H[31227];H[g+12>>2]=b;b=H[31226];H[g>>2]=H[31225];H[g+4>>2]=b;b=I[e|0]|I[e+1|0]<<8;if(!b){break a}h=(b<<8|b>>>8)&65535;c=e+2|0;while(1){b=I[c|0]|I[c+1|0]<<8;if(b){b=((b<<8|b>>>8)&65535)+e|0}else{b=163632}d=I[b|0]|I[b+1|0]<<8;i=(d<<8|d>>>8)&65535;j=(i<<1)+b|0;d=j+2|0;f=I[d|0]|I[d+1|0]<<8;k=(f<<8|f>>>8)&65535;d=(f?k<<1:2)+d|0;f=I[d|0]|I[d+1|0]<<8;l=(f<<8|f>>>8)&65535;f=(l<<1)+d|0;m=I[f+2|0]|I[f+3|0]<<8;d=Jn(a,i,b+2|0,k,j+4|0,l,d+2|0,(m<<8|m>>>8)&65535,f+4|0,g);if(d){break a}c=c+2|0;h=h-1|0;if(h){continue}break}}xb=g+16|0;return d}function YD(a){var b=0,c=0,d=0;c=a+148|0;while(1){d=b<<2;G[d+c>>1]=0;G[(d|4)+c>>1]=0;b=b+2|0;if((b|0)!=286){continue}break}G[a+2684>>1]=0;G[a+2440>>1]=0;G[a+2756>>1]=0;G[a+2752>>1]=0;G[a+2748>>1]=0;G[a+2744>>1]=0;G[a+2740>>1]=0;G[a+2736>>1]=0;G[a+2732>>1]=0;G[a+2728>>1]=0;G[a+2724>>1]=0;G[a+2720>>1]=0;G[a+2716>>1]=0;G[a+2712>>1]=0;G[a+2708>>1]=0;G[a+2704>>1]=0;G[a+2700>>1]=0;G[a+2696>>1]=0;G[a+2692>>1]=0;G[a+2688>>1]=0;G[a+2556>>1]=0;G[a+2552>>1]=0;G[a+2548>>1]=0;G[a+2544>>1]=0;G[a+2540>>1]=0;G[a+2536>>1]=0;G[a+2532>>1]=0;G[a+2528>>1]=0;G[a+2524>>1]=0;G[a+2520>>1]=0;G[a+2516>>1]=0;G[a+2512>>1]=0;G[a+2508>>1]=0;G[a+2504>>1]=0;G[a+2500>>1]=0;G[a+2496>>1]=0;G[a+2492>>1]=0;G[a+2488>>1]=0;G[a+2484>>1]=0;G[a+2480>>1]=0;G[a+2476>>1]=0;G[a+2472>>1]=0;G[a+2468>>1]=0;G[a+2464>>1]=0;G[a+2460>>1]=0;G[a+2456>>1]=0;G[a+2452>>1]=0;G[a+2448>>1]=0;G[a+2444>>1]=0;H[a+5804>>2]=0;H[a+5808>>2]=0;G[a+1172>>1]=1;H[a+5800>>2]=0;H[a+5792>>2]=0}function Cea(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;a:{e=H[a+316>>2];b:{if((e|0)<=0){break b}h=H[d>>2];b=H[a+472>>2]+H[b+4>>2]|0;f=I[b+150|0];g=f-1|0;i=I[b+140|0];if(i){d=0;if(f>>>0>=2){while(1){k=d+1|0;e=H[a+112>>2];if((e|0)>0){b=H[(d<<2)+h>>2];l=e+b|0;e=H[(j<<2)+c>>2];while(1){m=I[e|0];e=e+1|0;b=Nb(b,m,i)+i|0;if(l>>>0>b>>>0){continue}break}e=H[a+112>>2]}ug(h,d,h,k,g,e);j=j+1|0;d=d+f|0;if((d|0)>2]){continue}break}break b}while(1){g=H[a+112>>2];if((g|0)>0){b=H[(d<<2)+h>>2];g=g+b|0;e=H[(j<<2)+c>>2];while(1){k=I[e|0];e=e+1|0;b=Nb(b,k,i)+i|0;if(g>>>0>b>>>0){continue}break}e=H[a+316>>2]}j=j+1|0;d=d+f|0;if((e|0)>(d|0)){continue}break}break b}if(f>>>0>=2){d=0;while(1){b=H[a+112>>2];if((b|0)>0){break a}ug(h,d,h,d+1|0,g,b);d=d+f|0;if((d|0)>2]){continue}break}break b}d=0;a=H[a+112>>2]<=0;while(1){if(!a){break a}d=d+f|0;if((e|0)>(d|0)){continue}break}}return}while(1)continue}function xM(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;if(K[b+160>>2]>>0){vc(b,8)}c=I[a+3|0]|I[a+2|0]<<8;i=c+a|0;if(!(c>>>0>=518&K[b+160>>2]>=i>>>0)){vc(b,8)}c=a+6|0;while(1){d=I[c+1|0];f=d|I[c|0]<<8;if(!(!(d&7)|H[b+164>>2]<2)){vc(b,8)}c=c+2|0;d=f>>>3|0;g=d>>>0>g>>>0?d:g;e=e+1|0;if((e|0)!=256){continue}break}c=a+518|0;j=(c+(g<<3)|0)+8|0;if(j>>>0>K[b+160>>2]){vc(b,8)}a=0;while(1){d=c+8|0;f=I[c+3|0]|I[c+2|0]<<8;a:{if(!f){c=d;break a}e=I[c+7|0]|I[c+6|0]<<8;k=I[c+4|0];l=I[c+5|0];h=I[c|0];m=I[c+1|0];b:{if(H[b+164>>2]<2){break b}h=h<<8|m;if(h>>>0<=255&f>>>0<=256-h>>>0){break b}vc(b,8)}if(!e){c=d;break a}e=e+(c+6|0)|0;if(!(e>>>0>=j>>>0&e+(f<<1)>>>0<=i>>>0)){vc(b,9)}if(H[b+164>>2]<=0){c=d;break a}e=k<<8|l;f=((f<<1)+c|0)+8|0;c=d;while(1){d=c;c=c+2|0;d=I[d+1|0]|I[d|0]<<8;if(!(!d|K[b+172>>2]>(d+e&65535)>>>0)){vc(b,16)}if(c>>>0>>0){continue}break}}a=a+1|0;if(g>>>0>=a>>>0){continue}break}return 0}function NA(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,p=0;a:{if(!a|!b|(b|0)<4){break a}k=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);if(k>>>0<13|b>>>0>>0){break a}m=a+4|0;g=m;if(b>>>0>=8){o=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);g=a+8|0}h=a+b|0;if(h>>>0>g+3>>>0){n=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g+4|0}if(h>>>0>g+1>>>0){p=I[g|0]|I[g+1|0]<<8;g=g+2|0}if(h>>>0>g+1>>>0){l=I[g|0]|I[g+1|0]<<8;g=g+2|0}i=g;b:{if(g+3>>>0>=h>>>0){i=0;break b}g=i+4|0;i=I[i|0]|I[i+1|0]<<8|(I[i+2|0]<<16|I[i+3|0]<<24)}g=((g+3>>>0>>0)<<2)+g|0;g=((g+3>>>0>>0)<<2)+g|0;g=((g+3>>>0>>0)<<2)+g|0;if(g+3>>>0>>0){j=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24)}if(c){break a}c:{if(i){c=j;break c}c=2;g=n>>31;g=((b-k|0)+N((g^n)-g|0,(N(N(o,p),l)+31&-32)/-8|0)|0)-(j<<2)|0;if((g|0)<0){break a}if(!((l|0)!=1|j)&g>>>0>7){break c}c=j?j:(l|0)==8?g>>>0>1023?256:j:j}c=(c<<2)+k|0;OA(m,c-4|0,a+c|0,b-c|0,d,e,f)}}function Am(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!a){break a}c=H[a+100>>2];b=H[a+292>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+292>>2]=0;b=H[a+308>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+308>>2]=0;b=H[a+284>>2];if(b){if(H[a+280>>2]>0){while(1){b:{if(!b){break b}b=N(e,12)+b|0;d=H[b>>2];if(d){zb[H[c+8>>2]](c,d)}H[b>>2]=0;if(!I[b+4|0]){break b}d=H[b+8>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+8>>2]=0}e=e+1|0;if((e|0)>2]){b=H[a+284>>2];continue}break}b=H[a+284>>2]}if(b){zb[H[c+8>>2]](c,b)}H[a+284>>2]=0}b=H[a+192>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+192>>2]=0;b=H[a+20>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+20>>2]=0;b=H[a+24>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+24>>2]=0;b=H[a+32>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+32>>2]=0;b=H[a+176>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+176>>2]=0;b=H[a+180>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+180>>2]=0;c=H[a+104>>2];if((c|0)!=(a+132|0)){break a}c:{if(!c){break c}b=H[c+24>>2];if(!b){break c}zb[b|0](c)}H[a+104>>2]=H[a+172>>2]}}function U5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(H[b+116>>2]+H[b+108>>2]|0)+108|0;H[e+12>>2]=d;H[e+8>>2]=114;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);Lb(H[a+4>>2],b+20|0,4);Lb(H[a+4>>2],b+24|0,4);Lb(H[a+4>>2],b+28|0,4);Lb(H[a+4>>2],b+32|0,1);Lb(H[a+4>>2],b+33|0,1);Lb(H[a+4>>2],b+34|0,1);Lb(H[a+4>>2],b+35|0,1);Lb(H[a+4>>2],b+36|0,4);Lb(H[a+4>>2],b+40|0,4);Hk(a,b+48|0);Lb(H[a+4>>2],b+96|0,1);Lb(H[a+4>>2],b+97|0,1);Lb(H[a+4>>2],b+98|0,1);Lb(H[a+4>>2],b+99|0,1);Lb(H[a+4>>2],b+100|0,4);Lb(H[a+4>>2],b+104|0,4);Lb(H[a+4>>2],b+108|0,4);Lb(H[a+4>>2],b+112|0,4);Lb(H[a+4>>2],b+116|0,4);Lb(H[a+4>>2],b+120|0,4);Lb(H[a+4>>2],b+124|0,4);d=H[b+108>>2];if(d){Lb(H[a+4>>2],H[c+4>>2],d)}d=H[b+116>>2];if(d){Lb(H[a+4>>2],H[c+4>>2]+H[b+108>>2]|0,d)}xb=e+16|0}function gB(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=xb+-64|0;xb=c;b=H[a+584>>2];a:{b:{c:{if(J[a+98>>1]!=3){break c}switch(J[a+90>>1]-6|0){case 0:case 4:break b;default:break c}}if(I[b+207|0]){sc(H[a+628>>2],295520,275768,0)}F[b+210|0]=0;G[b+208>>1]=257;break a}F[b+205|0]=1;F[b+206|0]=1;d=I[b+208|0];e=I[b+209|0];fB(a);g=I[b+210|0];d:{if(!g){F[b+205|0]=0;f=I[b+208|0];if(g|(e|0)==I[b+209|0]?(f|0)==(d|0):0){break d}g=I[b+209|0];h=H[a+628>>2];if(!I[b+207|0]){H[c+36>>2]=g;H[c+32>>2]=f;sc(h,295520,276165,c+32|0);break d}H[c+60>>2]=e;H[c+56>>2]=d;H[c+52>>2]=g;H[c+48>>2]=f;sc(h,295520,276735,c+48|0);break d}G[b+208>>1]=257;F[b+205|0]=0}if(I[b+210|0]){f=H[a+628>>2];e:{if(!I[b+207|0]){sc(f,295520,277454,0);break e}H[c+20>>2]=e;H[c+16>>2]=d;sc(f,295520,278101,c+16|0)}if(I[b+210|0]){break a}}d=I[b+208|0];e=I[b+209|0];if(d>>>0>=e>>>0){break a}a=H[a+628>>2];H[c+4>>2]=e;H[c>>2]=d;sc(a,295520,278750,c)}F[b+206|0]=1;xb=c- -64|0}function Gc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=-1;a:{b:{c:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break b;case 0:break c;default:break a}}c=I[a+2|0]|I[a+3|0]<<8;if(!c){break a}c=((c<<8|c>>>8)&65535)-1|0;while(1){d=c+e|0;f=d>>>1|0;d=(d&-2)+a|0;d=I[d+4|0]|I[d+5|0]<<8;d=(d<<8|d>>>8)&65535;d:{if(d>>>0>b>>>0){c=f-1|0;break d}if((b|0)==(d|0)){break a}e=f+1|0}if((c|0)>=(e|0)){continue}break}return-1}d=164024;c=I[a+2|0]|I[a+3|0]<<8;e:{if(!c){break e}c=((c<<8|c>>>8)&65535)-1|0;while(1){h=c+e>>>1|0;i=N(h,6)+a|0;g=i+4|0;g=I[g|0]|I[g+1|0]<<8;f:{if(((g<<8|g>>>8)&65535)>>>0<=b>>>0){e=I[i+6|0]|I[i+7|0]<<8;if(((e<<8|e>>>8)&65535)>>>0>>0){e=h+1|0;break f}d=(N(h,6)+a|0)+4|0;break e}c=h-1|0}if((c|0)>=(e|0)){continue}break}}a=I[d+2|0]|I[d+3|0]<<8;c=(a<<8|a>>>8)&65535;a=I[d|0]|I[d+1|0]<<8;a=(a<<8|a>>>8)&65535;if(c>>>0>>0){break a}b=b-a|0;a=I[d+4|0]|I[d+5|0]<<8;f=b+((a<<8|a>>>8)&65535)|0}return f}function Gq(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=b;b=8-c|0;h=1<>2]=i;f=-1<<16-c^-1;a:{if(d-95e3>>>0>1e4){l=+(d|0)*1e-5;m=+(f>>>0);d=0;while(1){e=Rd(a,512);H[(d<<2)+i>>2]=e;c=0;while(1){g=e+(c<<1)|0;j=T(Kd(+((c<>>0)/m,l)*65535+.5);b:{if(j<4294967296&j>=0){f=~~j>>>0;break b}f=0}G[g>>1]=f;c=c+1|0;if((c|0)!=256){continue}break}d=d+1|0;if((h|0)!=(d|0)){continue}break}break a}d=0;if(!c){while(1){f=Rd(a,512);H[(d<<2)+i>>2]=f;c=0;while(1){G[f+(c<<1)>>1]=(c<>1]=(e<>1]=(e<>1]=(e<>2]=g;c=0;while(1){G[(c<<1)+g>>1]=(e+N((c<>>0)/(f>>>0);k=c|1;G[(k<<1)+g>>1]=(e+N((k<>>0)/(f>>>0);c=c+2|0;if((c|0)!=256){continue}break}d=d+1|0;if((h|0)!=(d|0)){continue}break}}}function MM(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;e=xb+-64|0;xb=e;H[e+60>>2]=0;h=b+108|0;g=H[a+8>>2];a:{b:{c:{d:{if(H[b+72>>2]!=H[a+16>>2]){H[e+60>>2]=6;break d}i=19;if((c|0)!=2){break a}if(F[H[b+156>>2]+4|0]&1){c=H[b+88>>2];if(c){zb[H[g+8>>2]](g,c)}H[b+88>>2]=0;c=H[b+156>>2];H[c+4>>2]=H[c+4>>2]&-2}if(tr(b,2,d)){H[e+60>>2]=98;break d}j=b,k=Ub(g,H[b+84>>2],0,H[b+76>>2],0,e+60|0),H[j+88>>2]=k;c=0;if(H[e+60>>2]){break c}c=H[b+156>>2];H[c+4>>2]=H[c+4>>2]|1;f=H[b+76>>2]-H[b+104>>2]<<6;c=0-(H[b+100>>2]<<6)|0;if(d){f=H[d+4>>2]+f|0;c=H[d>>2]+c|0}if(c|f){je(h,c,f)}H[e+16>>2]=0;H[e+12>>2]=h;H[e+8>>2]=b+76;a=zb[H[a+56>>2]](H[a+52>>2],e+8|0)|0;H[e+60>>2]=a;if(a){break c}H[b+72>>2]=1651078259;break b}c=0}if(!(F[H[b+156>>2]+4|0]&1)){break b}a=H[b+88>>2];if(a){zb[H[g+8>>2]](g,a)}H[b+88>>2]=0;a=H[b+156>>2];H[a+4>>2]=H[a+4>>2]&-2}if(c|f){je(h,0-c|0,0-f|0)}i=H[e+60>>2]}a=i;xb=e- -64|0;return a|0}function $p(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;Hz(a,b);f=H[b+8>>2];j=H[b+12>>2];d=(H[a+4>>2]+(j-c|0)|0)-40|0;H[a+4>>2]=d;c=0;g=Qb(f+1|0);F[g+f|0]=0;h=H[a+8>>2];e=h-d|0;i=e>>>0>>0?e:f;a:{if(!i){break a}if((i|0)!=1){l=i&-2;while(1){b:{if(d>>>0>=h>>>0){e=0;break b}e=I[d|0];d=d+1|0;H[a+4>>2]=d}F[c+g|0]=e;e=0;if(d>>>0>>0){e=I[d|0];d=d+1|0;H[a+4>>2]=d}F[g+(c|1)|0]=e;c=c+2|0;k=k+2|0;if((k|0)!=(l|0)){continue}break}}if(!(i&1)){break a}e=0;if(d>>>0>>0){e=I[d|0];d=d+1|0;H[a+4>>2]=d}F[c+g|0]=e}H[b+40>>2]=g;c=f<<1;d=(H[b+36>>2]-(c+j|0)|0)+d|0;H[a+4>>2]=d;c=H[b+16>>2]&8192?c:f;f=Qb((c|0)!=(c&1073741823)?-1:c<<2);c:{e=(h-d|0)/4|0;g=c>>>0>e>>>0?e:c;if(g){if(d+3>>>0>=h>>>0){break c}c=0;while(1){e=0;if(d+3>>>0>>0){e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);d=d+4|0;H[a+4>>2]=d}H[f+(c<<2)>>2]=e;c=c+1|0;if((g|0)!=(c|0)){continue}break}}H[b+44>>2]=f;return}m=b,n=Nb(f,0,g<<2),H[m+44>>2]=n}function IB(a,b){var c=0,d=0,e=0;c=xb+-64|0;xb=c;a:{b:{if(I[a+13|0]&8){d=H[b>>2];e=d+2|0;if(e>>>0>K[a+616>>2]){b=H[a+628>>2];H[c+32>>2]=H[a>>2];Pb(b,280512,280547,c+32|0);d=0;break a}Kc(c+62|0,d+H[a+612>>2]|0,2);if(I[a+12|0]&128){d=I[c+63|0];F[c+63|0]=I[c+62|0];F[c+62|0]=d}d=e+N(J[c+62>>1],12)|0;if(K[a+616>>2]>>0){b=H[a+628>>2];H[c+48>>2]=H[a>>2];Pb(b,280512,280739,c+48|0);d=0;break a}Kc(b,d+H[a+612>>2]|0,4);d=1;if(I[a+12|0]&128){break b}break a}c:{if((zb[H[a+640>>2]](H[a+628>>2],H[b>>2],0)|0)==H[b>>2]){if((zb[H[a+632>>2]](H[a+628>>2],c+62|0,2)|0)==2){break c}}b=H[a+628>>2];H[c+16>>2]=H[a>>2];Pb(b,280512,280547,c+16|0);break a}if(I[a+12|0]&128){e=I[c+63|0];F[c+63|0]=I[c+62|0];F[c+62|0]=e}zb[H[a+640>>2]](H[a+628>>2],N(J[c+62>>1],12),1)|0;if((zb[H[a+632>>2]](H[a+628>>2],b,4)|0)!=4){b=H[a+628>>2];H[c>>2]=H[a>>2];Pb(b,280512,280739,c);break a}d=1;if(!(I[a+12|0]&128)){break a}}Hh(b)}xb=c- -64|0;return d}function zI(a){a=a|0;var b=0,c=0;if(a){c=H[a+100>>2];b=H[a+504>>2];if(b){Ll(b)}b=H[a+132>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+132>>2]=0;b=H[a+136>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+136>>2]=0;b=H[a+140>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+140>>2]=0;b=H[a+144>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+144>>2]=0;b=H[a+148>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+148>>2]=0;b=H[a+432>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+432>>2]=0;b=H[a+428>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+428>>2]=0;b=H[a+424>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+424>>2]=0;b=H[a+396>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+396>>2]=0;b=H[a+400>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+400>>2]=0;b=H[a+384>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+384>>2]=0;b=H[a+388>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+388>>2]=0;b=H[a+364>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+364>>2]=0;b=H[a+496>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+496>>2]=0;b=H[a+560>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+556>>2]=0;H[a+560>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0}}function wR(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;e=xb-16|0;xb=e;if(I[a+11|0]>>>7|0){g=H[a+4>>2]}else{g=I[a+11|0]}d=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:1;h=c-b>>2;a:{if(!h){break a}b:{if(I[a+11|0]>>>7|0){f=H[a>>2]}else{f=a}j=f>>>0<=b>>>0;if(I[a+11|0]>>>7|0){f=H[a>>2]}else{f=a}if(I[a+11|0]>>>7|0){i=H[a+4>>2]}else{i=I[a+11|0]}if(!(j&f+(i<<2)>>>0>=b>>>0)){if(d-g>>>0>>0){Pl(a,d,(g+h|0)-d|0,g,g,0)}if(I[a+11|0]>>>7|0){f=H[a>>2]}else{f=a}d=f+(g<<2)|0;while(1){if((b|0)==(c|0)){break b}H[d>>2]=H[b>>2];b=b+4|0;d=d+4|0;continue}}d=xb-16|0;xb=d;Uw(e,b,c);xb=d+16|0;b=e;c:{if(I[b+11|0]>>>7|0){c=H[b>>2];break c}c=b}if(I[b+11|0]>>>7|0){b=H[e+4>>2]}else{b=I[e+11|0]}H[197455]=0;ca(1759,a|0,c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){Sc(e);break a}a=$()|0;_()|0;Sc(e);ea(a|0);X()}H[e>>2]=0;H[d>>2]=H[e>>2];b=g+h|0;d:{if(I[a+11|0]>>>7|0){H[a+4>>2]=b;break d}F[a+11|0]=b}}xb=e+16|0;return a|0}function es(a,b){a=a|0;b=b|0;var c=0,d=0;d=H[a+52>>2];a:{if((d|0)!=163632){if(K[a+216>>2]<=b>>>0){break a}b:{switch(I[d|0]){case 0:if(!b){break a}a=(d+(b<<1)|0)-1|0;a=I[a|0]|I[a+1|0]<<8;return(a<<8|a>>>8)&65535;case 1:if(!b){break a}c=d+1|0;a=0;b=b-1|0;d=I[d+3|0];if(b>>>0>d>>>0){while(1){b=(d^-1)+b|0;a=a+1|0;d=I[(c+N(a,3)|0)+2|0];if(b>>>0>d>>>0){continue}break}}a=c+N(a,3)|0;a=I[a|0]|I[a+1|0]<<8;return((a<<8|a>>>8)&65535)+b|0;case 2:break b;default:break a}}if(!b){break a}a=0;b=b-1|0;c=I[d+3|0]|I[d+4|0]<<8;c=(c<<8|c>>>8)&65535;if(b>>>0>c>>>0){while(1){b=(c^-1)+b|0;a=a+1|0;c=d+(a<<2)|0;c=I[c+3|0]|I[c+4|0]<<8;c=(c<<8|c>>>8)&65535;if(b>>>0>c>>>0){continue}break}}a=d+(a<<2)|0;a=I[a+1|0]|I[a+2|0]<<8;return((a<<8|a>>>8)&65535)+b|0}c:{switch(H[a+172>>2]){case 0:return(b>>>0<229?b:0)|0;case 1:return(b>>>0<=165?J[(b<<1)+107280>>1]:0)|0;case 2:break c;default:break a}}c=b>>>0<=86?J[(b<<1)+107616>>1]:0}return c|0}function Cla(a,b,c){a=a|0;b=b|0;c=c|0;var d=O(0),e=0,f=0,g=0,h=0,i=O(0);i=L[a+8>>2];d=L[a>>2];if(L[a+4>>2]>=L[a+12>>2]?1:i<=d){H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;return}g=H[b+20>>2];e=H[b+16>>2];f=H[e+28>>2];if(f){h=g}else{f=kc(e);e=H[b+16>>2];i=L[a+8>>2];h=H[b+20>>2]}d=O(T(O(O(O(d*O(g|0))/O(f>>>0))+O(.5))));a:{if(O(P(d))>2]=g;f=H[e+28>>2];if(!f){f=kc(e);e=H[b+16>>2];g=H[c>>2]}d=O(T(O(O(O(i*O(h|0))/O(f>>>0))+O(.5))));b:{if(O(P(d))>2]=h-g;g=H[b+24>>2];d=L[a+12>>2];f=H[e+28>>2];if(f){h=g}else{f=kc(e);e=H[b+16>>2];h=H[b+24>>2]}d=O(T(O(O(O(d*O(g|0))/O(f>>>0))+O(.5))));c:{if(O(P(d))>2]=b;d=L[a+4>>2];a=H[e+28>>2];if(!a){a=kc(e);b=H[c+4>>2]}d=O(T(O(O(O(d*O(h|0))/O(a>>>0))+O(.5))));d:{if(O(P(d))>2]=a-b}function uD(a){a=a|0;var b=0,c=0;H[a>>2]=248756;c=H[a+940>>2];if(c){b=H[c+268>>2];if(b){Kb(b)}b=H[c+280>>2];if(b){Kb(b)}b=H[c+292>>2];if(b){Kb(b)}b=H[c+304>>2];if(b){Kb(b)}b=H[c+316>>2];if(b){Kb(b)}b=H[c+328>>2];if(b){Kb(b)}b=H[c+340>>2];if(b){Kb(b)}b=H[c+352>>2];if(b){Kb(b)}b=H[c+364>>2];if(b){Kb(b)}b=H[c+376>>2];if(b){Kb(b)}b=H[c+388>>2];if(b){Kb(b)}b=H[c+400>>2];if(b){Kb(b)}b=H[c+412>>2];if(b){Kb(b)}b=H[c+424>>2];if(b){Kb(b)}b=H[c+436>>2];if(b){Kb(b)}b=H[c+448>>2];if(b){Kb(b)}b=H[c+460>>2];if(b){Kb(b)}b=H[c+472>>2];if(b){Kb(b)}b=H[c+484>>2];if(b){Kb(b)}b=H[c+496>>2];if(b){Kb(b)}a:{if(!I[c+512|0]){break a}b=H[c>>2];if(!b){break a}Kb(b)}Kb(c)}H[a>>2]=245276;H[197455]=0;aa(917,a|0)|0;c=H[197455];H[197455]=0;b:{c:{if(!((c|0)!=1?c:0)){if((c|0)==1){break b}H[197455]=0;aa(918,a|0)|0;c=H[197455];H[197455]=0;if(!c|(c|0)==1){break c}}ed(c,H[197456]);X()}if((c|0)==1){break b}return a|0}ha(0)|0;_()|0;Zb();X()}function po(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=H[a>>2];a:{if(I[b+732|0]){break a}F[a+112|0]=0;c=H[a+16>>2];d=H[a+12>>2];H[a+48>>2]=d;H[a+52>>2]=c;c=H[a+24>>2];H[a+56>>2]=H[a+20>>2];H[a+60>>2]=c;e=H[a+32>>2];c=a- -64|0;H[c>>2]=H[a+28>>2];H[c+4>>2]=e;H[a+72>>2]=H[a+36>>2];e=151;if(!(d&65535)|!J[a+50>>1]){break a}if(I[b+176|0]&8){f=a,g=Rb(G[b+70>>1],H[a+56>>2])+32&-64,H[f+60>>2]=g;f=a- -64|0,g=Rb(G[b+72>>1],H[a+56>>2])+32&-64,H[f>>2]=g;f=a,g=Rb(G[b+74>>1],H[a+56>>2])+32&-64,H[f+68>>2]=g}F[a+112|0]=1;e=0;if(I[b+176|0]&8){f=a,g=dc(J[a+48>>1]<<6,J[b+68>>1]),H[f+52>>2]=g;f=a,g=dc(J[a+50>>1]<<6,J[b+68>>1]),H[f+56>>2]=g;f=a,g=Rb(G[b+76>>1],H[a+52>>2])+32&-64,H[f+72>>2]=g}d=a+48|0;b=J[a+50>>1];c=J[a+48>>1];b:{if(b>>>0<=c>>>0){H[a+76>>2]=65536;G[a+84>>1]=c;H[a+92>>2]=H[a+52>>2];b=dc(b,c);break b}G[a+84>>1]=b;H[a+92>>2]=H[a+56>>2];f=a,g=dc(c,b),H[f+76>>2]=g;b=65536}H[a+308>>2]=-1;H[a+44>>2]=d;H[a+80>>2]=b}return e}function nu(a,b){var c=0,d=0,e=0,f=0,g=0;e=H[a>>2];if(H[a+248>>2]){d=H[a+92>>2]>>6;while(1){f=c<<2;g=Rb(H[f+H[e+704>>2]>>2],d);H[f+H[a+252>>2]>>2]=g;c=c+1|0;if(c>>>0>2]){continue}break}}c=H[a+300>>2];d=qo(c,e,a);if(!d){F[c+565|0]=b;F[c+492|0]=0;H[c+16>>2]=0;H[c+432>>2]=0;f=H[e+696>>2];b=H[e+692>>2];H[c+464>>2]=0;H[c+468>>2]=0;H[c+460>>2]=b;H[c+456>>2]=f;d=0;if(b){H[c+368>>2]=b;H[c+360>>2]=f;H[c+364>>2]=0;H[c+356>>2]=2;d=zb[H[e+708>>2]](c)|0}H[a+308>>2]=d;G[c+304>>1]=0;G[c+296>>1]=0;G[c+298>>1]=16384;G[c+300>>1]=0;G[c+302>>1]=16384;H[c+288>>2]=0;H[c+292>>2]=1073741824;G[c+352>>1]=1;H[c+348>>2]=65537;H[c+308>>2]=1;Ob(a+180|0,c+288|0,68);H[a+124>>2]=H[c+400>>2];H[a+136>>2]=H[c+412>>2];H[a+148>>2]=H[c+424>>2];H[a+152>>2]=H[c+428>>2];b=H[c+452>>2];H[a+156>>2]=H[c+448>>2];H[a+160>>2]=b;b=H[c+460>>2];H[a+164>>2]=H[c+456>>2];H[a+168>>2]=b;b=H[c+468>>2];H[a+172>>2]=H[c+464>>2];H[a+176>>2]=b}return d}function Bba(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=xb-128|0;xb=e;a:{if(b){d=I[b|0];if((d|0)!=49){H[a+204>>2]=H[a+204>>2]|131072;d=I[b|0]}b:{if(!d){break b}c=I[b+1|0];if((c|0)!=46){H[a+204>>2]=H[a+204>>2]|131072;c=I[b+1|0]}d=((c|0)==46)+((d|0)==46)|0;if(!c|d>>>0>1){break b}c=I[b+2|0];if((c|0)!=53){H[a+204>>2]=H[a+204>>2]|131072;c=I[b+2|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1){break b}c=I[b+3|0];if((c|0)!=46){H[a+204>>2]=H[a+204>>2]|131072;c=I[b+3|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1){break b}c=I[b+4|0];if((c|0)!=50){H[a+204>>2]=H[a+204>>2]|131072;c=I[b+4|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1){break b}c=I[b+5|0];if((c|0)!=54){H[a+204>>2]=H[a+204>>2]|131072;c=I[b+5|0]}if(!I[b+6|0]|(!c|d+((c|0)==46)>>>0>1)){break b}H[a+204>>2]=H[a+204>>2]|131072}d=H[a+204>>2];break a}d=H[a+204>>2]|131072;H[a+204>>2]=d}c=1;if(d&131072){Di(e,128,Di(e,128,Di(e,128,Di(e,128,0,259752),b),259985),259598);Xb(a,e);c=0}xb=e+128|0;return c|0}function kda(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{e:{b=H[a+388>>2];switch(H[b+20>>2]){case 2:break c;case 1:break d;case 0:break e;default:break b}}Sq(a);Rq(a);if(!H[a+208>>2]){zb[H[H[a+408>>2]>>2]](a);zb[H[H[a+412>>2]>>2]](a);zb[H[H[a+396>>2]>>2]](a,0)}zb[H[H[a+416>>2]>>2]](a);zb[H[H[a+420>>2]>>2]](a,H[a+216>>2]);zb[H[H[a+400>>2]>>2]](a,H[b+28>>2]>1?3:0);zb[H[H[a+392>>2]>>2]](a,0);if(H[a+216>>2]){H[b+12>>2]=0;break a}H[b+12>>2]=1;break a}Sq(a);Rq(a);if(H[a+368>>2]?H[a+360>>2]:1){zb[H[H[a+420>>2]>>2]](a,1);zb[H[H[a+400>>2]>>2]](a,2);H[b+12>>2]=0;break a}H[b+20>>2]=2;H[b+24>>2]=H[b+24>>2]+1}if(!H[a+216>>2]){Sq(a);Rq(a)}zb[H[H[a+420>>2]>>2]](a,0);zb[H[H[a+400>>2]>>2]](a,2);if(!H[b+32>>2]){zb[H[H[a+404>>2]+4>>2]](a)}zb[H[H[a+404>>2]+8>>2]](a);H[b+12>>2]=0;break a}c=H[a>>2];H[c+20>>2]=49;zb[H[c>>2]](a)}d=b;c=H[b+28>>2];b=H[b+24>>2];H[d+16>>2]=(c-1|0)==(b|0);a=H[a+8>>2];if(a){H[a+16>>2]=c;H[a+12>>2]=b}}function oF(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=xb-16|0;xb=g;h=H[b+4>>2];a:{if(h>>>0>a>>>0){break a}f=H[b+8>>2];if(f>>>0>>0|f-a>>>0<4){break a}e=H[b+12>>2];d=e-4|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=a+2|0;if(d>>>0>>0|d>>>0>f>>>0|f-d>>>0<2){break a}i=e-6|0;H[b+12>>2]=i;if((i|0)<=0){break a}e=I[a+2|0]|I[a+3|0]<<8;if(e){d=a+4|0;if(h>>>0>d>>>0|d>>>0>f>>>0){break a}f=f-d|0;d=((e<<8|e>>>8)&65535)<<1;if(f>>>0>>0){break a}d=i-d|0;H[b+12>>2]=d;if((d|0)<=0){break a}}e=I[a|0]|I[a+1|0]<<8;b:{if(!e){break b}H[g+12>>2]=c?H[c>>2]:0;if(!nF(a,b,a,g+12|0)){break a}if(!c|(I[a|0]|I[a+1|0]<<8)|H[c>>2]!=1936292453){break b}d=H[c+4>>2];if(!d|a>>>0<=d>>>0){break b}e=(d-a|0)+((e<<8|e>>>8)&65535)|0;if(e>>>0>65535){break b}d=H[b+28>>2];if(d>>>0>31){break b}H[b+28>>2]=d+1;if(!I[b+24|0]){break b}d=e<<8|(e&65280)>>>8;F[a|0]=d;F[a+1|0]=d>>>8;H[g+8>>2]=H[c>>2];if(!nF(a,b,a,g+8|0)){break a}}j=1}xb=g+16|0;return j} +function Sn(a){var b=0,c=0,d=0;a:{b:{c:{if(a>>>0<=65535){d:{e:{f:{g:{h:{i:{j:{k:{l:{b=a>>>8|0;switch(b|0){case 6:break i;case 3:break j;case 0:break k;case 1:case 2:case 4:case 5:case 7: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 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:break b;case 32:break f;case 24:break g;case 23:break h;default:break l}}switch(b-254|0){case 1:break d;case 0:break e;default:break b}}return(a|0)==173}return(a|0)==847}return(a|0)==1564}return(a&-2)==6068}return a-6155>>>0<4}b=a-8203|0;if(b>>>0<36){break c}break a}return(a|0)==65279|(a&-16)==65024}return a-65520>>>0<9}m:{b=(a>>>16|0)-1|0;if(b){if((b|0)==13){break m}else{break b}}return a-119155>>>0<8}return(a&-4096)==917504}d=1;c=b&31;if(!(((b&63)>>>0>=32?15>>>c|0:((1<>>c)&1)){break a}}return d}return(a&-16)==8288}function Q4(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;e=b+48|0;c=H[e>>2];f=b+56|0;g=c<<(H[f>>2]>>>13&1);h=g<<2;c=(h+c|0)+76|0;H[d+8>>2]=c;H[d+4>>2]=83;H[a+8>>2]=H[a+8>>2]+c;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);c=(C(O(M[b+24>>3])),v(2));F[d+12|0]=c;F[d+13|0]=c>>>8;F[d+14|0]=c>>>16;F[d+15|0]=c>>>24;Lb(H[a+4>>2],d+12|0,4);c=(C(O(M[b+24>>3])),v(2));F[d+12|0]=c;F[d+13|0]=c>>>8;F[d+14|0]=c>>>16;F[d+15|0]=c>>>24;Lb(H[a+4>>2],d+12|0,4);Lb(H[a+4>>2],b+40|0,4);Lb(H[a+4>>2],b+44|0,4);Lb(H[a+4>>2],e,4);Lb(H[a+4>>2],b+52|0,4);Lb(H[a+4>>2],f,4);Lb(H[a+4>>2],b+60|0,4);Lb(H[a+4>>2],b- -64|0,4);Lb(H[a+4>>2],b+68|0,4);Lb(H[a+4>>2],b+72|0,4);Lb(H[a+4>>2],b+76|0,4);c=H[e>>2];a:{if(!c){break a}Lb(H[a+4>>2],b+80|0,c);if(!g){break a}Lb(H[a+4>>2],b+84|0,h)}xb=d+16|0}function jh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;be(a,H[a+8>>2]);c=H[a>>2];H[d+12>>2]=c;f=H[a+8>>2];if(c>>>0>>0){a:{b:{c:{d:{e:{f:{g:{e=I[c|0];if((e|0)!=123){if((e|0)==91){break g}if((e|0)!=40){break f}H[b>>2]=c;H[b+8>>2]=2;if(cp(d+12|0,f)){break e}break d}H[b>>2]=c;H[b+8>>2]=3;if(!$w(d+12|0,f)){break d}break e}H[b>>2]=c;H[b+8>>2]=3;H[a>>2]=c+1;be(a,f);c=H[a>>2];h:{if(f>>>0<=c>>>0){break h}e=1;while(1){if(H[a+12>>2]){break h}i:{j:{switch(I[c|0]-91|0){case 2:if((e|0)>1){e=e-1|0;break i}c=c+1|0;H[d+12>>2]=c;H[b+4>>2]=c;break a;case 0:break j;default:break i}}e=e+1|0}fp(a);be(a,H[a+8>>2]);c=H[a>>2];if(f>>>0>c>>>0){continue}break}}H[d+12>>2]=c;break e}H[b>>2]=c;H[b+8>>2]=I[c|0]==47?4:1;fp(a);c=H[a>>2];H[d+12>>2]=c;if(!H[a+12>>2]){break c}}c=H[b+4>>2];break b}c=H[d+12>>2]}H[b+4>>2]=c}if(c){break a}H[b+8>>2]=0;H[b>>2]=0}H[a>>2]=H[d+12>>2]}xb=d+16|0}function Ada(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;b=H[b+84>>2];f=N(H[b+96>>2],G[c+48>>1]);h=N(H[b+32>>2],G[c+16>>1]);g=N(f+h|0,4433);i=H[d>>2]+e|0;a=H[a+332>>2]+128|0;j=N(H[b+100>>2],G[c+50>>1]);k=N(H[b+36>>2],G[c+18>>1]);l=N(j+k|0,4433);k=l+N(k,6270)|0;m=N(H[b+68>>2],J[c+34>>1]);n=N(H[b+4>>2],J[c+2>>1]);o=m+n<<13;p=k+o|0;q=N(H[b+64>>2],J[c+32>>1]);b=N(H[b>>2],J[c>>1]);c=q+b<<13;h=g+N(h,6270)|0;r=(c+h|0)+32768|0;F[i|0]=I[a+(p+r>>>16&1023)|0];F[i+1|0]=I[a+(r-p>>>16&1023)|0];i=H[d+4>>2]+e|0;g=g+N(f,-15137)|0;b=b-q<<13;f=(g+b|0)+32768|0;j=N(j,-15137)+l|0;l=n-m<<13;m=j+l|0;F[i|0]=I[a+(f+m>>>16&1023)|0];F[i+1|0]=I[a+(f-m>>>16&1023)|0];f=H[d+8>>2]+e|0;b=(b-g|0)+32768|0;g=l-j|0;F[f|0]=I[a+(b+g>>>16&1023)|0];F[f+1|0]=I[a+(b-g>>>16&1023)|0];b=H[d+12>>2]+e|0;c=(c-h|0)+32768|0;d=o-k|0;F[b|0]=I[a+(c+d>>>16&1023)|0];F[b+1|0]=I[a+(c-d>>>16&1023)|0]}function AR(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,m=0;k=xb-16|0;xb=k;a:{if(a){a=pw(b);zb[H[H[a>>2]+44>>2]](k,a);b=H[k>>2];F[c|0]=b;F[c+1|0]=b>>>8;F[c+2|0]=b>>>16;F[c+3|0]=b>>>24;zb[H[H[a>>2]+32>>2]](k,a);cg(i,k);Sc(k);zb[H[H[a>>2]+28>>2]](k,a);cg(h,k);Sc(k);l=d,m=zb[H[H[a>>2]+12>>2]](a)|0,H[l>>2]=m;l=e,m=zb[H[H[a>>2]+16>>2]](a)|0,H[l>>2]=m;zb[H[H[a>>2]+20>>2]](k,a);Ge(f,k);_b(k);zb[H[H[a>>2]+24>>2]](k,a);cg(g,k);Sc(k);a=zb[H[H[a>>2]+36>>2]](a)|0;break a}a=ow(b);zb[H[H[a>>2]+44>>2]](k,a);b=H[k>>2];F[c|0]=b;F[c+1|0]=b>>>8;F[c+2|0]=b>>>16;F[c+3|0]=b>>>24;zb[H[H[a>>2]+32>>2]](k,a);cg(i,k);Sc(k);zb[H[H[a>>2]+28>>2]](k,a);cg(h,k);Sc(k);l=d,m=zb[H[H[a>>2]+12>>2]](a)|0,H[l>>2]=m;l=e,m=zb[H[H[a>>2]+16>>2]](a)|0,H[l>>2]=m;zb[H[H[a>>2]+20>>2]](k,a);Ge(f,k);_b(k);zb[H[H[a>>2]+24>>2]](k,a);cg(g,k);Sc(k);a=zb[H[H[a>>2]+36>>2]](a)|0}H[j>>2]=a;xb=k+16|0}function DR(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;e=xb-16|0;xb=e;if(I[a+11|0]>>>7|0){g=H[a+4>>2]}else{g=I[a+11|0]}d=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:10;h=c-b|0;a:{if(!h){break a}b:{if(I[a+11|0]>>>7|0){f=H[a>>2]}else{f=a}j=f>>>0<=b>>>0;if(I[a+11|0]>>>7|0){f=H[a>>2]}else{f=a}if(I[a+11|0]>>>7|0){i=H[a+4>>2]}else{i=I[a+11|0]}if(!(j&f+i>>>0>=b>>>0)){if(d-g>>>0>>0){Ko(a,d,(g+h|0)-d|0,g,g)}if(I[a+11|0]>>>7|0){f=H[a>>2]}else{f=a}d=f+g|0;while(1){if((b|0)==(c|0)){break b}F[d|0]=I[b|0];b=b+1|0;d=d+1|0;continue}}d=xb-16|0;xb=d;ex(e,b,c);xb=d+16|0;b=e;c:{if(I[b+11|0]>>>7|0){c=H[b>>2];break c}c=b}if(I[b+11|0]>>>7|0){b=H[e+4>>2]}else{b=I[e+11|0]}H[197455]=0;ca(3490,a|0,c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){_b(e);break a}a=$()|0;_()|0;_b(e);ea(a|0);X()}F[e+15|0]=0;F[d|0]=I[e+15|0];b=g+h|0;d:{if(I[a+11|0]>>>7|0){H[a+4>>2]=b;break d}F[a+11|0]=b}}xb=e+16|0;return a|0}function z4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;g=H[c+4>>2];d=H[c>>2];h=(g-d|0)/12|0;H[e+28>>2]=h;if((d|0)!=(g|0)){while(1){f=(H[d+4>>2]-H[d>>2]>>2)+f|0;d=d+12|0;if((g|0)!=(d|0)){continue}break}}H[e+24>>2]=f;d=((h<<2)+(f<<2)|0)+32|0;H[e+20>>2]=d;H[e+16>>2]=91;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+16|0,4);Lb(H[a+4>>2],e+20|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],e+28|0,4);Lb(H[a+4>>2],e+24|0,4);d=H[c>>2];b=H[c+4>>2];a:{if((d|0)==(b|0)){break a}while(1){H[e+12>>2]=H[d+4>>2]-H[d>>2]>>2;Lb(H[a+4>>2],e+12|0,4);d=d+12|0;if((b|0)!=(d|0)){continue}break}b=H[c>>2];c=H[c+4>>2];if((b|0)==(c|0)){break a}while(1){d=H[b>>2];f=H[b+4>>2];if((d|0)!=(f|0)){while(1){Lb(H[a+4>>2],d,2);Lb(H[a+4>>2],d+2|0,2);d=d+4|0;if((f|0)!=(d|0)){continue}break}}b=b+12|0;if((c|0)!=(b|0)){continue}break}}xb=e+32|0}function x4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;g=H[c+4>>2];d=H[c>>2];h=(g-d|0)/12|0;H[e+28>>2]=h;if((d|0)!=(g|0)){while(1){f=(H[d+4>>2]-H[d>>2]>>2)+f|0;d=d+12|0;if((g|0)!=(d|0)){continue}break}}H[e+24>>2]=f;d=((h<<2)+(f<<2)|0)+32|0;H[e+20>>2]=d;H[e+16>>2]=90;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+16|0,4);Lb(H[a+4>>2],e+20|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],e+28|0,4);Lb(H[a+4>>2],e+24|0,4);d=H[c>>2];b=H[c+4>>2];a:{if((d|0)==(b|0)){break a}while(1){H[e+12>>2]=H[d+4>>2]-H[d>>2]>>2;Lb(H[a+4>>2],e+12|0,4);d=d+12|0;if((b|0)!=(d|0)){continue}break}b=H[c>>2];c=H[c+4>>2];if((b|0)==(c|0)){break a}while(1){d=H[b>>2];f=H[b+4>>2];if((d|0)!=(f|0)){while(1){Lb(H[a+4>>2],d,2);Lb(H[a+4>>2],d+2|0,2);d=d+4|0;if((f|0)!=(d|0)){continue}break}}b=b+12|0;if((c|0)!=(b|0)){continue}break}}xb=e+32|0}function of(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=6;a:{if(!a|!c){break a}g=H[c>>2];if(!g){break a}i=H[g+100>>2];h=H[a>>2];b:{c:{if((h|0)<=0){if(!h){break c}break b}e=zb[H[i+4>>2]](i,h)|0;if(!e){e=64;break b}f=Nb(e,0,h)}e=H[c+4>>2];H[f>>2]=H[c>>2];H[f+4>>2]=e;H[f+8>>2]=H[c+8>>2];H[f+12>>2]=a;d:{a=H[a+4>>2];if(a){e=zb[a|0](f,b)|0;if(e){break d}}a=H[g+36>>2];b=a+1|0;if((a|b)<0){e=6;break d}h=H[g+40>>2];e:{f:{g:{if(!b){c=0;if(!h){break g}zb[H[i+8>>2]](i,h);H[g+40>>2]=0;break e}e=10;if((a|0)>536870910){break d}h:{if(!a){c=zb[H[i+4>>2]](i,b<<2)|0;e=!c<<6;break h}b=zb[H[i+12>>2]](i,a<<2,b<<2,h)|0;c=b?b:h;e=!b<<6}if(e|!c){break f}a=(a<<2)+c|0;F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0}H[g+40>>2]=c;break e}H[g+40>>2]=c;if(e){break d}}a=H[g+36>>2];H[g+36>>2]=a+1;H[(a<<2)+c>>2]=f;e=0;break b}a=H[H[f>>2]+100>>2];b=H[H[f+12>>2]+8>>2];if(b){zb[b|0](f)}zb[H[a+8>>2]](a,f);f=0}if(!d){break a}H[d>>2]=f}return e}function kP(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{d=H[a+28>>2];if(I[d+44|0]){break b}c=iv(d,H[b>>2],H[b+4>>2]);if(!c){break b}a=H[a+24>>2];if(H[a>>2]){break a}H[a>>2]=c;return}c:{c=H[d+12>>2];if((G[c+22>>1]+G[c+58>>1]|0)+3>>>0<=K[c+4>>2]){break c}c=ee(c,3,0);if(!c){break c}a=H[a+24>>2];if(H[a>>2]){break a}H[a>>2]=c;return}a=H[d+20>>2];d:{e:{f:{if(!I[d+45|0]){G[a+2>>1]=J[a+2>>1]+1;break f}c=H[a+8>>2];e=H[b+8>>2];f=G[a+2>>1];g=H[a+4>>2]+(f<<3)|0;H[g+4>>2]=H[b+12>>2]>>10;H[g>>2]=e>>10;F[c+f|0]=2;e=I[d+45|0];c=H[d+20>>2];G[a+2>>1]=J[a+2>>1]+1;if(e){break e}a=c}G[a+2>>1]=J[a+2>>1]+1;break d}a=H[c+8>>2];e=H[b+16>>2];f=G[c+2>>1];g=H[c+4>>2]+(f<<3)|0;H[g+4>>2]=H[b+20>>2]>>10;H[g>>2]=e>>10;F[a+f|0]=2;e=I[d+45|0];a=H[d+20>>2];G[c+2>>1]=J[c+2>>1]+1;if(!e){break d}c=H[a+8>>2];d=H[b+24>>2];e=G[a+2>>1];f=H[a+4>>2]+(e<<3)|0;H[f+4>>2]=H[b+28>>2]>>10;H[f>>2]=d>>10;F[c+e|0]=1}G[a+2>>1]=J[a+2>>1]+1}}function y4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;g=H[c+4>>2];d=H[c>>2];h=(g-d|0)/12|0;H[e+28>>2]=h;if((d|0)!=(g|0)){while(1){f=(H[d+4>>2]-H[d>>2]>>3)+f|0;d=d+12|0;if((g|0)!=(d|0)){continue}break}}H[e+24>>2]=f;d=((h<<2)+(f<<3)|0)+32|0;H[e+20>>2]=d;H[e+16>>2]=7;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+16|0,4);Lb(H[a+4>>2],e+20|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],e+28|0,4);Lb(H[a+4>>2],e+24|0,4);d=H[c>>2];b=H[c+4>>2];a:{if((d|0)==(b|0)){break a}while(1){H[e+12>>2]=H[d+4>>2]-H[d>>2]>>3;Lb(H[a+4>>2],e+12|0,4);d=d+12|0;if((b|0)!=(d|0)){continue}break}b=H[c>>2];c=H[c+4>>2];if((b|0)==(c|0)){break a}while(1){d=H[b>>2];f=H[b+4>>2];if((d|0)!=(f|0)){while(1){Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);d=d+8|0;if((f|0)!=(d|0)){continue}break}}b=b+12|0;if((c|0)!=(b|0)){continue}break}}xb=e+32|0}function A4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-32|0;xb=e;g=H[c+4>>2];d=H[c>>2];h=(g-d|0)/12|0;H[e+28>>2]=h;if((d|0)!=(g|0)){while(1){f=(H[d+4>>2]-H[d>>2]>>3)+f|0;d=d+12|0;if((g|0)!=(d|0)){continue}break}}H[e+24>>2]=f;d=((h<<2)+(f<<3)|0)+32|0;H[e+20>>2]=d;H[e+16>>2]=8;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+16|0,4);Lb(H[a+4>>2],e+20|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],e+28|0,4);Lb(H[a+4>>2],e+24|0,4);d=H[c>>2];b=H[c+4>>2];a:{if((d|0)==(b|0)){break a}while(1){H[e+12>>2]=H[d+4>>2]-H[d>>2]>>3;Lb(H[a+4>>2],e+12|0,4);d=d+12|0;if((b|0)!=(d|0)){continue}break}b=H[c>>2];c=H[c+4>>2];if((b|0)==(c|0)){break a}while(1){d=H[b>>2];f=H[b+4>>2];if((d|0)!=(f|0)){while(1){Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);d=d+8|0;if((f|0)!=(d|0)){continue}break}}b=b+12|0;if((c|0)!=(b|0)){continue}break}}xb=e+32|0}function HR(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,m=0;k=xb-16|0;xb=k;a:{if(a){a=uw(b);zb[H[H[a>>2]+44>>2]](k,a);b=H[k>>2];F[c|0]=b;F[c+1|0]=b>>>8;F[c+2|0]=b>>>16;F[c+3|0]=b>>>24;zb[H[H[a>>2]+32>>2]](k,a);Ge(i,k);_b(k);zb[H[H[a>>2]+28>>2]](k,a);Ge(h,k);_b(k);l=d,m=zb[H[H[a>>2]+12>>2]](a)|0,F[l|0]=m;l=e,m=zb[H[H[a>>2]+16>>2]](a)|0,F[l|0]=m;zb[H[H[a>>2]+20>>2]](k,a);Ge(f,k);_b(k);zb[H[H[a>>2]+24>>2]](k,a);Ge(g,k);_b(k);a=zb[H[H[a>>2]+36>>2]](a)|0;break a}a=tw(b);zb[H[H[a>>2]+44>>2]](k,a);b=H[k>>2];F[c|0]=b;F[c+1|0]=b>>>8;F[c+2|0]=b>>>16;F[c+3|0]=b>>>24;zb[H[H[a>>2]+32>>2]](k,a);Ge(i,k);_b(k);zb[H[H[a>>2]+28>>2]](k,a);Ge(h,k);_b(k);l=d,m=zb[H[H[a>>2]+12>>2]](a)|0,F[l|0]=m;l=e,m=zb[H[H[a>>2]+16>>2]](a)|0,F[l|0]=m;zb[H[H[a>>2]+20>>2]](k,a);Ge(f,k);_b(k);zb[H[H[a>>2]+24>>2]](k,a);Ge(g,k);_b(k);a=zb[H[H[a>>2]+36>>2]](a)|0}H[j>>2]=a;xb=k+16|0}function sU(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;g=xb-16|0;xb=g;H[g+12>>2]=0;i=H[c>>2];d=pc(i,24,g+12|0);e=H[g+12>>2];a:{if(e){break a}b:{e=a+4|0;if(e>>>0>b>>>0){break b}h=I[a|0];F[d+4|0]=h;f=I[a+1|0]|I[a+2|0]<<8;G[d+6>>1]=f<<8|f>>>8;f=I[a+3|0];F[d+5|0]=f;k=H[c+148>>2];l=H[c+4>>2];j=f&1;f=(f>>>1&1)+(j?5:3)|0;H[d+8>>2]=f;H[d+12>>2]=(e+l|0)-k;if(e+N(f,h)>>>0>b>>>0){break b}if(h){c:{if(j){a=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);H[d+16>>2]=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=e+N(f,h-1|0)|0;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);break c}H[d+16>>2]=I[a+5|0]|I[a+4|0]<<16;a=e+N(f,h-1|0)|0;a=I[a|0]<<16|I[a+1|0]}e=0;H[d>>2]=0;H[d+20>>2]=a;H[H[c+140>>2]>>2]=d;H[c+140>>2]=d;H[c+132>>2]=H[c+132>>2]+h;break a}if(d){zb[H[i+8>>2]](i,d)}e=H[g+12>>2];break a}if(d){zb[H[i+8>>2]](i,d)}e=8}xb=g+16|0;return e|0}function lca(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=Nb(a,0,256);d=H[b>>2]+c|0;h=I[d+2|0];e=I[d|0];f=h+e|0;g=I[d+1|0];d=(f+g<<4)-6144|0;H[a>>2]=d;h=N(e-h|0,10033)+256>>9;H[a+4>>2]=h;H[a+8>>2]=N(f-(g<<1)|0,5793)+256>>9;e=H[b+4>>2]+c|0;f=I[e+2|0];g=I[e|0];i=f+g|0;j=I[e+1|0];e=(i+j<<4)-6144|0;H[a+32>>2]=e;f=N(g-f|0,10033)+256>>9;H[a+36>>2]=f;g=N(i-(j<<1)|0,5793)+256>>9;H[a+40>>2]=g;b=H[b+8>>2]+c|0;c=I[b+2|0];i=I[b|0];j=c+i|0;b=I[b+1|0];k=(j+b<<4)-6144|0;H[a+32>>2]=N(d-k|0,17837)+16384>>15;c=N(i-c|0,10033)+256>>9;H[a+36>>2]=N(h-c|0,17837)+16384>>15;d=d+k|0;H[a+64>>2]=N(d-(e<<1)|0,10298)+16384>>15;H[a>>2]=N(d+e|0,14564)+16384>>15;c=c+h|0;H[a+68>>2]=N(c-(f<<1)|0,10298)+16384>>15;H[a+4>>2]=N(c+f|0,14564)+16384>>15;c=H[a+8>>2];b=N(j-(b<<1)|0,5793)+256>>9;H[a+40>>2]=N(c-b|0,17837)+16384>>15;b=b+c|0;H[a+72>>2]=N(b-(g<<1)|0,10298)+16384>>15;H[a+8>>2]=N(b+g|0,14564)+16384>>15}function kq(a,b,c,d){var e=0,f=0,g=0;a:{b=H[b>>2];if(!b){break a}b:{c:{if((a|0)<=13369375){if((a|0)==6684742){break c}if(!c|(!d|(a|0)!=8913094)){break a}while(1){g=N(c,f);a=0;while(1){e=a+g<<2;if(!(I[e+b|0]!=255|I[b+(e|1)|0]!=255|I[b+(e|2)|0]!=255)){F[b+(e|3)|0]=0}a=a+1|0;if((c|0)!=(a|0)){continue}break}f=f+1|0;if((f|0)!=(d|0)){continue}break}break a}if((a|0)==13369376){break b}if(!c|(!d|(a|0)!=15597702)){break a}while(1){g=N(c,f);a=0;while(1){e=a+g<<2;if(!(I[e+b|0]|I[b+(e|1)|0]|I[b+(e|2)|0])){F[b+(e|3)|0]=0}a=a+1|0;if((c|0)!=(a|0)){continue}break}f=f+1|0;if((f|0)!=(d|0)){continue}break}break a}if(!d|!c){break a}while(1){g=N(c,f);a=0;while(1){e=a+g<<2;if(!(I[e+b|0]|I[b+(e|1)|0]|I[b+(e|2)|0])){F[b+(e|3)|0]=0}a=a+1|0;if((c|0)!=(a|0)){continue}break}f=f+1|0;if((f|0)!=(d|0)){continue}break}break a}a=N(c,d)<<2;if(!a){break a}c=3;while(1){F[b+c|0]=255;c=c+4|0;if(a>>>0>c>>>0){continue}break}}}function Ms(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=164030;d=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);a:{if((d|0)<=0){break a}g=d-1|0;while(1){h=g+i>>>1|0;d=N(h,12)+a|0;f=d+16|0;f=I[f|0]|I[f+1|0]<<8|(I[f+2|0]<<16|I[f+3|0]<<24);b:{if((f<<24|f<<8&16711680|(f>>>8&65280|f>>>24))>>>0<=b>>>0){d=I[d+20|0]|I[d+21|0]<<8|(I[d+22|0]<<16|I[d+23|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0>>0){i=h+1|0;break b}e=(N(h,12)+a|0)+16|0;break a}g=h-1|0}if((g|0)>=(i|0)){continue}break}}g=0;a=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);d=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=I[e+4|0]|I[e+5|0]<<8|(I[e+6|0]<<16|I[e+7|0]<<24);c:{if(d>>>0>(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))>>>0){break c}a=I[e+8|0]|I[e+9|0]<<8|(I[e+10|0]<<16|I[e+11|0]<<24);a=(b-d|0)+(a<<24|a<<8&16711680|(a>>>8&65280|a>>>24))|0;if(!a){break c}H[c>>2]=a;g=1}return g}function gq(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=xb-32|0;xb=h;a:{if(!b){b=6;break a}i=H[a>>2];g=zb[H[i+4>>2]](i,40)|0;if(!g){zb[H[i+8>>2]](i,b);b=64;break a}F[g+20|0]=0;F[g+21|0]=0;F[g+22|0]=0;F[g+23|0]=0;F[g+24|0]=0;F[g+25|0]=0;F[g+26|0]=0;F[g+27|0]=0;H[g+8>>2]=0;H[g+4>>2]=c;H[g>>2]=b;F[g+12|0]=0;F[g+13|0]=0;F[g+14|0]=0;F[g+15|0]=0;F[g+16|0]=0;F[g+17|0]=0;F[g+18|0]=0;F[g+19|0]=0;F[g+36|0]=0;F[g+37|0]=0;F[g+38|0]=0;F[g+39|0]=0;F[g+28|0]=0;F[g+29|0]=0;F[g+30|0]=0;F[g+31|0]=0;F[g+32|0]=0;F[g+33|0]=0;F[g+34|0]=0;F[g+35|0]=0;H[g+24>>2]=15;H[h+16>>2]=g;H[h>>2]=2;if(e){H[h>>2]=10;b=H[a+16>>2];b:{if((b|0)<=0){c=0;break b}j=((b<<2)+a|0)+20|0;b=a+20|0;while(1){c=H[b>>2];if(!fc(H[H[c>>2]+8>>2],e)){break b}b=b+4|0;if(j>>>0>b>>>0){continue}break}c=0}H[h+20>>2]=c}b=Qq(a,h,d,f,0);if(!b){a=H[f>>2];H[a+8>>2]=H[a+8>>2]&-1025;b=0;break a}a=H[g+24>>2];if(a){zb[a|0](g)}zb[H[i+8>>2]](i,g)}xb=h+32|0;return b}function uO(a,b,c){a=a|0;b=b|0;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=xb-16|0;xb=i;g=b;a:{if(I[b+11|0]>>>7|0){h=H[g+4>>2];break a}h=I[g+11|0]}while(1){b:{if(I[g+11|0]>>>7|0){b=H[g>>2]}else{b=g}e=b;M[i>>3]=c;k=xb-16|0;xb=k;H[k+12>>2]=i;d=xb-416|0;xb=d;b=-1;j=h+1|0;H[d+156>>2]=j-1;H[d+152>>2]=e;Nb(d+8|0,0,144);H[d+84>>2]=-1;H[d+56>>2]=256;H[d+44>>2]=3813;H[d+88>>2]=-1;H[d+52>>2]=d+160;H[d+92>>2]=d+152;c:{if(!j){break c}if((j|0)<0){H[197018]=61;break c}e=d+8|0;b=xb-192|0;xb=b;H[b+188>>2]=i;f=b+144|0;Nb(f,0,36);H[b+184>>2]=H[b+188>>2];d:{if((Mv(0,b+184|0,b,f)|0)<0){f=-1;break d}m=H[e+76>>2];Pv(e);f=H[e>>2];H[e>>2]=f&-33;n=Mv(e,b+184|0,b,b+144|0);l=H[e>>2];H[e>>2]=l|f&32;f=l&32?-1:n;if((m|0)<0){break d}}xb=b+192|0;Lo(e,0,0);b=f>>>0>>0?f:-1}xb=d+416|0;xb=k+16|0;e:{if((b|0)>=0){if(b>>>0<=h>>>0){break b}h=b;break e}h=h<<1|1}Go(g,h);continue}break}Go(g,b);fw(a,g);xb=i+16|0}function vB(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;f=xb-16|0;xb=f;a:{if(!a){e=33;break a}e=6;if(!d){break a}g=H[a>>2];if(!g){break a}H[d>>2]=0;H[d+4>>2]=0;H[d+16>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;if((c|0)<0|b>>>0>>0){break a}e=10;if(b>>>0>32767){break a}b:{c:{d:{e:{if(!b){h=d+4|0;e=0;break e}e=b<<3;h=zb[H[g+4>>2]](g,e)|0;if(!h){H[f+12>>2]=64;e=d+4|0;h=e;break c}i=d,j=Nb(h,0,e),H[i+4>>2]=j;h=d+4|0;e=zb[H[g+4>>2]](g,b)|0;if(!e){break d}Nb(e,0,b)}H[f+12>>2]=0;H[d+8>>2]=e;i=d,j=Ub(g,2,0,c,0,f+12|0),H[i+12>>2]=j;e=H[f+12>>2];if(e){break b}G[d>>1]=c;G[d+2>>1]=b;H[d+16>>2]=H[d+16>>2]|1;e=0;break a}H[f+12>>2]=64;e=d+8|0}H[e>>2]=0;e=64}H[d+16>>2]=H[d+16>>2]|1;a=H[a>>2];if(!a){break a}b=H[h>>2];if(b){zb[H[a+8>>2]](a,b)}H[d+4>>2]=0;b=H[d+8>>2];if(b){zb[H[a+8>>2]](a,b)}H[d+8>>2]=0;b=H[d+12>>2];if(b){zb[H[a+8>>2]](a,b)}H[d>>2]=0;H[d+4>>2]=0;H[d+16>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0}xb=f+16|0;return e}function cC(a,b,c){var d=0,e=0,f=0;d=xb-16|0;xb=d;e=H[a+200>>2];if(e&1){a:{if(e&4){Xb(a,267591);mc(a,c);break a}f=I[a+401|0];if(!(e&2|(f|0)!=3)){Xb(a,267615);mc(a,c);break a}if(!(!b|!(I[b+8|0]&32))){Xb(a,267640);mc(a,c);break a}if((((f|0)==3?1:f&2?6:2)|0)!=(c|0)){Xb(a,267661);mc(a,c);break a}e=d+10|0;vd(a,e,c);xc(a,e,c);if(mc(a,0)){break a}e=I[a+401|0];b:{if((e|0)==3){c=I[d+10|0];F[d|0]=c;c:{d:{if(!b){break d}e=J[b+20>>1];if(!e){break d}if(c>>>0>=e>>>0){Xb(a,267689);break a}c=H[a+388>>2]+N(c,3)|0;G[d+2>>1]=I[c|0];G[d+4>>1]=I[c+1|0];G[d+6>>1]=I[c+2|0];break c}G[d+6>>1]=0;G[d+2>>1]=0;G[d+4>>1]=0}G[d+8>>1]=0;break b}F[d|0]=0;c=I[d+10|0]|I[d+11|0]<<8;c=c<<8|c>>>8;if(!(e&2)){G[d+6>>1]=c;G[d+8>>1]=c;G[d+4>>1]=c;G[d+2>>1]=c;break b}G[d+2>>1]=c;G[d+8>>1]=0;c=I[d+12|0]|I[d+13|0]<<8;G[d+4>>1]=c<<8|c>>>8;c=I[d+14|0]|I[d+15|0]<<8;G[d+6>>1]=c<<8|c>>>8}Dq(a,b,d)}xb=d+16|0;return}hc(a,267566);X()}function ika(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=oc(1,16);a:{if(!f){break a}d=H[a+56>>2];if((d|0)<=0){break a}e=H[a+60>>2];d=d-1|0;a=d;b:{c:{while(1){b=a>>>1|0;if(!H[N(b,36)+e>>2]){break c}c=a>>>0<2;a=b-1|0;if(!c){continue}break}a=0;break b}a=H[(N(b,36)+e|0)+28>>2]}H[f>>2]=a;b=0;a=d;d:{while(1){c=a+b>>>1|0;g=H[N(c,36)+e>>2];e:{if(g>>>0<=1818914159){b=H[(N(c,36)+e|0)+28>>2];if((g|0)==1818914159){break d}b=c+1|0;break e}a=c-1|0}if((a|0)>=(b|0)){continue}break}b=0}H[f+4>>2]=b;b=0;a=d;f:{while(1){c=a+b>>>1|0;g=H[N(c,36)+e>>2];g:{if(g>>>0<=1986686319){b=H[(N(c,36)+e|0)+28>>2];if((g|0)==1986686319){break f}b=c+1|0;break g}a=c-1|0}if((a|0)>=(b|0)){continue}break}b=0}H[f+8>>2]=b;a=0;h:{while(1){b=a+d>>>1|0;c=H[N(b,36)+e>>2];i:{if(c>>>0<=1953131887){a=H[(N(b,36)+e|0)+28>>2];if((c|0)==1953131887){break h}a=b+1|0;break i}d=b-1|0}if((a|0)<=(d|0)){continue}break}a=0}H[f+12>>2]=a}return f|0}function C8(a,b){a=a|0;b=b|0;var c=0;if(!og(a,296144,8)){Pb(H[a+628>>2],270850,271554,0);return 0}b=Tb(952);H[a+584>>2]=b;if(!b){Pb(H[a+628>>2],270850,271915,0);return 0}Id(b,0,952);b=H[a+584>>2];H[b+828>>2]=a;H[b+892>>2]=H[a+672>>2];H[a+672>>2]=1543;H[b+896>>2]=H[a+668>>2];H[a+668>>2]=1544;H[b+900>>2]=H[a+676>>2];H[a+676>>2]=1545;H[b+948>>2]=0;H[b+936>>2]=0;H[b+940>>2]=0;H[b+920>>2]=75;H[b+924>>2]=0;H[b+912>>2]=0;H[b+916>>2]=0;H[b+928>>2]=3;H[b+932>>2]=0;H[a+556>>2]=1546;H[a+548>>2]=1546;H[a+540>>2]=1546;H[a+520>>2]=1547;H[a+516>>2]=1548;H[a+572>>2]=1549;H[a+560>>2]=1550;H[a+552>>2]=1550;H[a+544>>2]=1550;H[a+536>>2]=1551;H[a+532>>2]=1552;H[a+524>>2]=1553;H[b+904>>2]=H[a+576>>2];H[a+576>>2]=1554;H[b+908>>2]=H[a+580>>2];H[a+580>>2]=1555;H[a+12>>2]=H[a+12>>2]|256;H[b+488>>2]=0;if(!H[a+16>>2]){H[b+916>>2]=2e3;c=b;b=Tb(2e3);H[c+912>>2]=b;Id(b,0,2e3)}H[a+44>>2]=H[a+44>>2]|128;return 1}function $n(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{if(c>>>0>2147483646){break b}if(!c){return 1}if(K[b+4>>2]>a>>>0){break b}e=H[b+8>>2];if(e>>>0>>0){break b}g=e-a|0;e=c<<1;if(g>>>0>>0){break b}e=H[b+12>>2]-e|0;H[b+12>>2]=e;if((e|0)<=0){break b}h=H[b+4>>2];j=H[d>>2];while(1){d=(i<<1)+a|0;if(d>>>0>>0){break a}e=H[b+8>>2];if(e>>>0>>0|e-d>>>0<2){break a}f=H[b+12>>2];g=f-2|0;H[b+12>>2]=g;if((g|0)<=0){break a}d=I[d|0]|I[d+1|0]<<8;d=((d<<8|d>>>8)&65535)+j|0;if(d>>>0>>0|d>>>0>e>>>0|e-d>>>0<4){break a}g=f-6|0;H[b+12>>2]=g;if((g|0)<=0){break a}f=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);if(f>>>0>1073741822){break a}c:{if(!f){break c}d=d+4|0;if(d>>>0>>0|d>>>0>e>>>0){break a}e=e-d|0;d=f<<2;if(e>>>0>>0){break a}d=g-d|0;H[b+12>>2]=d;if((d|0)>0){break c}break a}f=1;i=i+1|0;if((i|0)!=(c|0)){continue}break}}return f}return 0}function ij(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=H[c>>2];if(!f){f=Qb(N(b,6)+4|0);H[c>>2]=f}if(e){F[f+2|0]=191;F[f|0]=239;F[f+1|0]=187;f=f+3|0}if((b|0)>0){e=(b<<2)+a|0;while(1){b=a;a=b+4|0;b=H[b>>2];a:{if(b>>>0<=127){F[f|0]=b;f=f+1|0;break a}if(b>>>0<=2047){F[f+1|0]=b&63|128;F[f|0]=b>>>6|192;f=f+2|0;break a}if(b>>>0<=65535){F[f+2|0]=b&63|128;F[f|0]=b>>>12|224;F[f+1|0]=b>>>6&63|128;f=f+3|0;break a}if(b>>>0<=2097150){F[f+3|0]=b&63|128;F[f|0]=b>>>18|240;F[f+2|0]=b>>>6&63|128;F[f+1|0]=b>>>12&63|128;f=f+4|0;break a}if(b>>>0<=67108862){F[f+4|0]=b&63|128;F[f|0]=b>>>24|248;F[f+3|0]=b>>>6&63|128;F[f+2|0]=b>>>12&63|128;F[f+1|0]=b>>>18&63|128;f=f+5|0;break a}if(b>>>0>2147483646){break a}F[f+5|0]=b&63|128;F[f|0]=b>>>30|252;F[f+4|0]=b>>>6&63|128;F[f+3|0]=b>>>12&63|128;F[f+2|0]=b>>>18&63|128;F[f+1|0]=b>>>24&63|128;f=f+6|0}if(a>>>0>>0){continue}break}}H[d>>2]=f-H[c>>2];F[f|0]=0}function X5(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-16|0;xb=c;G[a+16>>1]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a>>2]=399324;e=Qb(16);H[197455]=0;H[e+12>>2]=0;H[e+4>>2]=0;H[e+8>>2]=0;H[e>>2]=436884;f=H[197455];H[197455]=0;a:{b:{c:{if((f|0)!=1){H[a+4>>2]=e;d=ad(b);if(d>>>0>=1073741808){H[197455]=0;ia(1640,c|0);a=H[197455];H[197455]=0;if((a|0)==1){break c}X()}d:{e:{if(d>>>0>=2){H[197455]=0;g=d+4&-4;f=aa(899,g<<2)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}H[c>>2]=f;H[c+4>>2]=d;H[c+8>>2]=g|-2147483648;break e}F[c+11|0]=d;f=c;if(!d){break d}}H[197455]=0;Mb(f,b,d);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(d<<2)+f>>2]=0;H[197455]=0;da(919,e|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break b}if(F[c+11|0]<0){Kb(H[c>>2])}xb=c+16|0;return a|0}a=$()|0;_()|0;Kb(e);ea(a|0);X()}a=$()|0;_()|0;ea(a|0);X()}a=$()|0;_()|0;if(F[c+11|0]<0){Kb(H[c>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Ud(a,b){var c=0,d=0,e=0,f=0,g=0;a:{f=H[b+4>>2];if(f>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break a}e=H[b+12>>2];g=e-2|0;H[b+12>>2]=g;c=1;if((g|0)<=0){break a}b:{c:{d:{e:{g=I[a|0]|I[a+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break d;case 0:break e;default:break b}}c=a+2|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break a}c=e-4|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=I[a+2|0]|I[a+3|0]<<8;if(!e){break c}a=a+4|0;if(a>>>0>>0|a>>>0>d>>>0){break a}d=d-a|0;a=((e<<8|e>>>8)&65535)<<1;if(d>>>0>>0){break a}a=c-a|0;H[b+12>>2]=a;c=0;if((a|0)>0){break c}break b}c=a+2|0;if(c>>>0>>0|c>>>0>d>>>0|d-c>>>0<2){break a}c=e-4|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=I[a+2|0]|I[a+3|0]<<8;if(!e){break c}a=a+4|0;if(a>>>0>>0|a>>>0>d>>>0){break a}d=d-a|0;a=N((e<<8|e>>>8)&65535,6);if(d>>>0>>0){break a}a=c-a|0;H[b+12>>2]=a;c=0;if((a|0)<=0){break b}}c=1}return c}return 0}function nC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=xb-16|0;xb=e;a:{b:{c:{d=H[a+200>>2];if(!(d&1)){if((c|0)!=13){break c}H[a+200>>2]=d|1;c=e+3|0;vd(a,c,13);xc(a,c,13);mc(a,0);c=I[e+3|0]|I[e+4|0]<<8|(I[e+5|0]<<16|I[e+6|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if((c|0)<0){break b}d=I[e+7|0]|I[e+8|0]<<8|(I[e+9|0]<<16|I[e+10|0]<<24);f=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);if((f|0)<0){break a}i=I[e+15|0];g=I[e+12|0];j=I[e+14|0];k=I[e+13|0];h=I[e+11|0];F[a+402|0]=h;H[a+324>>2]=f;H[a+320>>2]=c;F[a+696|0]=k;F[a+664|0]=j;F[a+401|0]=g;F[a+398|0]=i;l=g-2|0;m=(l&255)<<3;d=m&31;d=(l&255)>>>0<5?(m&63)>>>0>=32?4>>>d|0:((1<>>d:1;F[a+405|0]=d;d=N(d,h);F[a+404|0]=d;d=d&255;d:{if(d>>>0>=8){d=N(c,d>>>3|0);break d}d=N(c,d)+7>>>3|0}H[a+336>>2]=d;RB(a,b,c,f,h,g,i,k,j);xb=e+16|0;return}hc(a,261026);X()}hc(a,261125);X()}hc(a,258923);X()}hc(a,258923);X()}function Bca(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;j=H[a+372>>2];d=H[a+420>>2];e=H[a+24>>2];H[d+112>>2]=H[e>>2];H[d+116>>2]=H[e+4>>2];if(!(H[d+36>>2]|!H[a+236>>2])){gn(d,H[d+40>>2])}if(H[a+316>>2]>0){while(1){e=h<<2;c=H[(e+a|0)+320>>2]<<2;k=H[(c+a|0)+292>>2];g=d+c|0;c=H[g+20>>2];f=G[H[b+e>>2]>>1]>>j;H[g+20>>2]=f;i=f-c|0;g=i>>31;e=0;a:{if((c|0)==(f|0)){break a}f=(g^i)-g|0;while(1){c=e;e=c+1|0;l=f>>>0>1;f=f>>>1|0;if(l){continue}break}if(c>>>0<11){break a}c=H[a>>2];H[c+20>>2]=6;zb[H[c>>2]](a)}c=H[k+20>>2];b:{if(H[d+108>>2]){c=H[((c<<2)+d|0)+76>>2]+(e<<2)|0;H[c>>2]=H[c>>2]+1;break b}c=H[((c<<2)+d|0)+44>>2];Fi(d,H[c+(e<<2)>>2],F[(c+e|0)+1024|0])}if(e){Fi(d,g+i|0,e)}h=h+1|0;if((h|0)>2]){continue}break}}b=H[a+24>>2];H[b>>2]=H[d+112>>2];H[b+4>>2]=H[d+116>>2];a=H[a+236>>2];if(a){b=H[d+36>>2];if(b){a=b}else{H[d+40>>2]=H[d+40>>2]+1&7}H[d+36>>2]=a-1}return 1}function bh(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;a:{i=H[b+4>>2];if(i>>>0>a>>>0){break a}e=H[b+8>>2];if(e>>>0>>0|e-a>>>0<3){break a}c=H[b+12>>2]-3|0;H[b+12>>2]=c;d=1;b:{if(I[a|0]|I[a+1|0]<<8?0:(c|0)>0){break b}c=H[b+12>>2]-3|0;H[b+12>>2]=c;if((c|0)<=0){break a}f=I[a+2|0];if((f-1&255)>>>0>3){break a}g=a+3|0;if(g>>>0>>0|e>>>0>>0){break a}d=I[a|0]|I[a+1|0]<<8;l=(d<<8|d>>>8)&65535;j=N(l+1|0,f);if(j>>>0>e-g>>>0){break a}k=c-j|0;H[b+12>>2]=k;d=0;if((k|0)<=0){break b}m=(f|0)==1;n=(f|0)==2;c=0;while(1){g=c;h=N(f,c)+a|0;c=I[h+3|0];c:{if(m){break c}c=I[h+4|0]|c<<8;if(n){break c}c=I[h+5|0]|c<<8;if((f|0)==3){break c}c=I[h+6|0]|c<<8}d=c>>>0>d>>>0?c:d;c=g+1|0;if((g|0)!=(l|0)){continue}break}c=d-1|0;if(!c){return 1}d=0;if((c|0)<0){break b}a=(a+j|0)+3|0;if(a>>>0>>0|a>>>0>e>>>0|c>>>0>e-a>>>0){break b}a=k-c|0;H[b+12>>2]=a;d=(a|0)>0}return d|0}return 0}function $L(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=a+16|0;if(d>>>0>K[b+160>>2]){vc(b,8)}c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);h=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);c=c<<8&16711680|c<<24|(c>>>8&65280|c>>>24);if(!(!(c>>>0<16|c>>>0>H[b+160>>2]-a>>>0)&(c-16>>>0)/12>>>0>=h>>>0)){vc(b,8)}if(h){c=0;a=0;while(1){f=c;g=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);c=I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);e=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(c>>>0>>0){vc(b,8)}if(!(!a|e>>>0>f>>>0)){vc(b,8)}a:{if(H[b+164>>2]<=0){break a}f=H[b+172>>2];e=c-e|0;if(f>>>0>=e>>>0&f-e>>>0>(g<<8&16711680|g<<24|(g>>>8&65280|g>>>24))>>>0){break a}vc(b,16)}d=d+12|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}return 0}function t0(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;b=xb-80|0;xb=b;g=M[f>>3];h=M[f+8>>3];M[b+72>>3]=h;M[b+64>>3]=g;if(P(h)<2147483648){c=~~h}else{c=-2147483648}H[b+36>>2]=c;if(P(g)<2147483648){c=~~g}else{c=-2147483648}H[b+32>>2]=c;g=g+M[f+16>>3];a:{if(P(g)<2147483648){c=~~g;break a}c=-2147483648}H[b+40>>2]=c;g=h+M[f+24>>3];b:{if(P(g)<2147483648){c=~~g;break b}c=-2147483648}H[b+44>>2]=c;c=b+48|0;H[c>>2]=H[b+32>>2];H[c+4>>2]=H[b+36>>2];H[c+8>>2]=H[b+40>>2];H[c+12>>2]=H[b+44>>2];d=H[a+80>>2];g=M[zb[H[H[d>>2]+68>>2]](d,2)>>3];d=H[a+80>>2];i=b,j=M[(zb[H[H[d>>2]+68>>2]](d,2)|0)+24>>3],M[i+24>>3]=j;M[b+16>>3]=g;H[197455]=0;H[b+8>>2]=0;H[b>>2]=0;H[b+4>>2]=0;Fa(1773,a+8|0,e|0,b- -64|0,c|0,b+16|0,b|0);a=H[197455];H[197455]=0;if((a|0)!=1){a=H[b>>2];if(a){H[b+4>>2]=a;Kb(a)}xb=b+80|0;return}c=$()|0;_()|0;a=H[b>>2];if(a){H[b+4>>2]=a;Kb(a)}ea(c|0);X()}function xx(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=xb-32|0;xb=g;f=d&2147483647;e=f-1065418752|0;h=f-1082064896|0;a:{if((e|0)==(h|0)&0|e>>>0>>0){f=(d&33554431)<<7|c>>>25;e=0;i=e;h=c&33554431;if(!(!e&(h|0)==16777216?!(a|b):!e&h>>>0<16777216)){e=f+1073741825|0;break a}e=f+1073741824|0;if(h^16777216|a|(b|i)){break a}e=(f&1)+e|0;break a}if(!(!c&(f|0)==2147418112?!(a|b):f>>>0<2147418112)){e=((d&33554431)<<7|c>>>25)&4194303|2143289344;break a}e=2139095040;if(f>>>0>1082064895){break a}e=0;f=f>>>16|0;if(f>>>0<16145){break a}e=d&65535|65536;He(g+16|0,a,b,c,e,f-16129|0);li(g,a,b,c,e,16257-f|0);b=H[g+8>>2];e=(H[g+12>>2]&33554431)<<7|b>>>25;h=H[g>>2]|(H[g+16>>2]|H[g+24>>2]|(H[g+20>>2]|H[g+28>>2]))!=0;f=H[g+4>>2];a=0;b=b&33554431;if(!(!a&(b|0)==16777216?!(h|f):!a&b>>>0<16777216)){e=e+1|0;break a}if(b^16777216|h|(a|f)){break a}e=(e&1)+e|0}xb=g+32|0;return x(2,d&-2147483648|e),B()}function ZT(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;H[a+4>>2]=b;F[a|0]=0;if(!H[(H[H[b>>2]-12>>2]+b|0)+16>>2]){if(H[(H[H[b>>2]-12>>2]+b|0)+72>>2]){a:{d=xb-16|0;xb=d;b:{b=H[(H[H[b>>2]-12>>2]+b|0)+72>>2];c:{if(!H[(H[H[b>>2]-12>>2]+b|0)+24>>2]){break c}H[197455]=0;da(1705,d+8|0,b|0)|0;c=H[197455];H[197455]=0;d:{if((c|0)!=1){e:{if(!I[d+8|0]){break e}c=H[(b+H[H[b>>2]-12>>2]|0)+24>>2];H[197455]=0;c=aa(3338,c|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){if((c|0)!=-1){break e}c=H[H[b>>2]-12>>2];H[197455]=0;ba(3339,b+c|0,1);c=H[197455];H[197455]=0;if((c|0)!=1){break e}}c=ha(0)|0;_()|0;Hg(d+8|0);break d}Hg(d+8|0);break c}c=ha(0)|0;_()|0}sa(c|0)|0;c=H[H[b>>2]-12>>2];H[197455]=0;ia(1710,b+c|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}ra()}xb=d+16|0;break a}a=$()|0;_()|0;H[197455]=0;na(1711);b=H[197455];H[197455]=0;if((b|0)!=1){ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}}F[a|0]=1}return a|0}function tl(a){var b=0;a:{if(!a|!H[a>>2]){break a}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break a}H[a>>2]=-57005;b=H[a+8>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}b=H[a+84>>2];if(b){zb[b|0](H[a+12>>2])}b=H[a+88>>2];if(b){zb[b|0](H[a+16>>2])}b=H[a+92>>2];if(b){zb[b|0](H[a+20>>2])}b=H[a+96>>2];if(b){zb[b|0](H[a+24>>2])}b=H[a+100>>2];if(b){zb[b|0](H[a+28>>2])}b=H[a+104>>2];if(b){zb[b|0](H[a+32>>2])}b=H[a+108>>2];if(b){zb[b|0](H[a+36>>2])}b=H[a+112>>2];if(b){zb[b|0](H[a+40>>2])}b=H[a+116>>2];if(b){zb[b|0](H[a+44>>2])}b=H[a+120>>2];if(b){zb[b|0](H[a+48>>2])}b=H[a+124>>2];if(b){zb[b|0](H[a+52>>2])}b=H[a+128>>2];if(b){zb[b|0](H[a+56>>2])}b=H[a+132>>2];if(b){zb[b|0](H[a+60>>2])}b=H[a+136>>2];if(b){zb[b|0](H[a- -64>>2])}b=H[a+140>>2];if(b){zb[b|0](H[a+68>>2])}b=H[a+144>>2];if(b){zb[b|0](H[a+72>>2])}b=H[a+148>>2];if(b){zb[b|0](H[a+76>>2])}b=H[a+152>>2];if(b){zb[b|0](H[a+80>>2])}Kb(a)}}function qx(a){var b=0,c=0,d=0;c=xb-16|0;xb=c;b=H[H[a>>2]-12>>2];H[197455]=0;b=H[(a+b|0)+24>>2];d=H[197455];H[197455]=0;a:{b:{c:{d:{e:{if((d|0)!=1){if(!b){break b}H[197455]=0;da(3331,c+8|0,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break d}if(!I[c+8|0]){break e}b=H[H[a>>2]-12>>2];H[197455]=0;b=H[(a+b|0)+24>>2];d=H[197455];H[197455]=0;f:{if((d|0)==1){break f}H[197455]=0;b=aa(3332,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break f}if((b|0)!=-1){break e}b=H[H[a>>2]-12>>2];H[197455]=0;ba(3333,a+b|0,1);b=H[197455];H[197455]=0;if((b|0)!=1){break e}}b=ha(0)|0;_()|0;dm(c+8|0);break c}b=ha(0)|0;_()|0;break c}dm(c+8|0);break b}b=ha(0)|0;_()|0}sa(b|0)|0;b=H[H[a>>2]-12>>2];H[197455]=0;ia(1710,a+b|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}ra()}xb=c+16|0;return}a=$()|0;_()|0;H[197455]=0;na(1711);c=H[197455];H[197455]=0;if((c|0)!=1){ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function C6(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;d=xb-48|0;xb=d;c=H[a+4>>2];H[d+32>>2]=0;e=d+32|0;zb[H[H[c>>2]+412>>2]](c,e)|0;c=H[a+4>>2];H[d+32>>2]=32;zb[H[H[c>>2]+308>>2]](c,e)|0;c=H[a+4>>2];H[d+32>>2]=4;zb[H[H[c>>2]+308>>2]](c,e)|0;c=H[a+4>>2];zb[H[H[c>>2]+352>>2]](c)|0;f=M[b+8>>3];h=M[a+48>>3];i=M[a+16>>3];M[d+32>>3]=h*M[b>>3]+i;g=f;f=M[a+56>>3];j=M[a+24>>3];M[d+40>>3]=g*f+j;g=M[b+16>>3];M[d+24>>3]=j+f*M[b+24>>3];M[d+16>>3]=i+h*g;c=H[a+4>>2];b=d+40|0;zb[H[H[c>>2]+316>>2]](c,e,b)|0;c=H[a+4>>2];k=d+24|0;zb[H[H[c>>2]+320>>2]](c,e,k)|0;c=H[a+4>>2];l=d+16|0;zb[H[H[c>>2]+320>>2]](c,l,k)|0;c=H[a+4>>2];zb[H[H[c>>2]+320>>2]](c,l,b)|0;c=H[a+4>>2];zb[H[H[c>>2]+320>>2]](c,e,b)|0;b=H[a+4>>2];H[d+12>>2]=4;zb[H[H[b>>2]+312>>2]](b,d+12|0)|0;b=H[a+4>>2];H[d+12>>2]=32;zb[H[H[b>>2]+312>>2]](b,d+12|0)|0;a=H[a+4>>2];zb[H[H[a>>2]+344>>2]](a)|0;xb=d+48|0}function nN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=I[a+20|0];f=H[a+16>>2];g=H[a+12>>2];a:{b:{if(!fc(b,21476)){b=H[c>>2];if(!b){d=35;break a}d=H[b+116>>2];H[e+8>>2]=d;if(!d){d=fm(b,e+8|0,a);if(d){break a}d=H[e+8>>2];H[b+116>>2]=d;H[b+120>>2]=1}H[c+4>>2]=H[d+8>>2];break b}if(!fc(b,21380)){H[c>>2]=H[H[(g<<2)+16608>>2]+8>>2];break b}if(!fc(b,21396)){H[c>>2]=f;break b}if(!fc(b,21411)){b=H[c>>2];if(!b){d=35;break a}d=H[b+116>>2];H[e+12>>2]=d;if(!d){d=fm(b,e+12|0,a);if(d){break a}d=H[e+12>>2];H[b+116>>2]=d;H[b+120>>2]=1}H[c+4>>2]=H[d+12>>2];break b}if(!fc(b,21429)){F[c|0]=d;break b}if(!fc(b,21437)){H[c>>2]=H[a+24>>2];H[c+4>>2]=H[a+28>>2];H[c+8>>2]=H[a+32>>2];H[c+12>>2]=H[a+36>>2];H[c+16>>2]=H[a+40>>2];H[c+20>>2]=H[a+44>>2];H[c+24>>2]=H[a+48>>2];H[c+28>>2]=H[a+52>>2];break b}d=12;if(fc(b,21458)){break a}F[c|0]=I[a+21|0]}d=0}xb=e+16|0;return d|0}function xG(a,b){var c=0,d=0,e=0;a:{if((a|0)==163632){break a}b:{switch(I[a|0]){case 0:return I[(a+b|0)+1|0];case 3:c=1;e=a+1|0;a=I[a+1|0]|I[a+2|0]<<8;a=(a<<8|a>>>8)&65535;c:{if(a>>>0<2){break c}while(1){d=a>>>0>c>>>0?(e+N(c,3)|0)+2|0:163632;d=I[d|0]|I[d+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>b>>>0){break c}c=c+1|0;if((a|0)!=(c|0)){continue}break}c=a}b=c-1|0;return I[(a>>>0>b>>>0?(e+N(b,3)|0)+2|0:163632)+2|0];case 4:break b;default:break a}}c=1;e=I[a+1|0]|I[a+2|0]<<8|(I[a+3|0]<<16|I[a+4|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);d:{if(e>>>0<2){break d}while(1){d=c>>>0>>0?(N(c,6)+a|0)+5|0:163632;d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0>b>>>0){break d}c=c+1|0;if((e|0)!=(c|0)){continue}break}c=e}b=a;a=c-1|0;a=a>>>0>>0?(b+N(a,6)|0)+5|0:163632;a=I[a+4|0]|I[a+5|0]<<8;c=(a<<8|a>>>8)&65535}return c}function is(a,b){var c=0,d=0,e=0,f=0,g=0;a:{g=H[b+4>>2];if(g>>>0>a>>>0){break a}f=H[b+8>>2];if(f>>>0<=a>>>0){break a}e=H[b+12>>2];c=e-1|0;H[b+12>>2]=c;d=1;if((c|0)<=0){break a}b:{c:{d:{switch(I[a|0]){case 0:if(f-a>>>0<4|a>>>0>f>>>0){break a}e=e-5|0;H[b+12>>2]=e;if((e|0)<=0){break a}c=I[a+2|0]|I[a+3|0]<<8;c=N((I[a+1|0]>>>4&3)+1|0,(c<<8|c>>>8)&65535);if(!c){break b}a=a+4|0;if(a>>>0>>0|a>>>0>f>>>0){break a}d=0;if(c>>>0>f-a>>>0){break b}a=e-c|0;break c;case 1:break d;default:break b}}if(f-a>>>0<6|a>>>0>f>>>0){break a}e=e-7|0;H[b+12>>2]=e;if((e|0)<=0){break a}d=I[a+2|0]|I[a+3|0]<<8|(I[a+4|0]<<16|I[a+5|0]<<24);d=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);c=(I[a+1|0]>>>4&3)+1|0;if(d>>>0>=4294967295/(c>>>0)>>>0){break a}c=N(c,d);if(!c){return 1}a=a+6|0;if(a>>>0>>0|a>>>0>f>>>0){break a}d=0;if(c>>>0>f-a>>>0){break b}a=e-c|0}H[b+12>>2]=a;d=(a|0)>0}return d}return 0}function LT(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;if(K[b+24>>2]>K[b+44>>2]){H[b+44>>2]=H[b+24>>2]}k=-1;l=-1;h=f&24;a:{if(!h|(e|0)==1&(h|0)==24){break a}h=H[b+44>>2];if(h){g=b+32|0;if(I[g+11|0]>>>7|0){g=H[g>>2]}g=h-g|0;m=g;g=g>>31}b:{c:{switch(e|0){case 1:if(f&8){e=H[b+12>>2]-H[b+8>>2]|0;i=e;j=e>>31;break b}e=H[b+24>>2]-H[b+20>>2]|0;i=e;j=e>>31;break b;case 0:break b;case 2:break c;default:break a}}i=m;j=g}e=d+j|0;c=c+i|0;e=i>>>0>c>>>0?e+1|0:e;d=c;c=e;if(d>>>0>m>>>0&(e|0)>=(g|0)|(e|0)>(g|0)|(e|0)<0){break a}e=f&8;d:{if(!(c|d)){break d}if(H[b+12>>2]?0:e){break a}if(!(f&16)){break d}if(!H[b+24>>2]){break a}}if(e){e=H[b+8>>2];H[b+16>>2]=H[b+44>>2];H[b+12>>2]=d+e;H[b+8>>2]=e}if(f&16){e=H[b+20>>2];H[b+28>>2]=H[b+28>>2];H[b+20>>2]=e;H[b+24>>2]=e;H[b+24>>2]=d+H[b+24>>2]}k=d;l=c}H[a+8>>2]=k;H[a+12>>2]=l;H[a>>2]=0;H[a+4>>2]=0}function K8(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-112|0;xb=d;e=H[a+584>>2];c=H[a+48>>2];if(c&4){H[d+96>>2]=H[e+196>>2];Fc(b,287654,d+96|0);c=H[a+48>>2]}if(c&8){H[d+80>>2]=H[e+200>>2];Fc(b,287757,d+80|0);c=H[a+48>>2]}if(c&16){ye(287852,14,1,b);if(I[e+211|0]){c=0;while(1){H[d+64>>2]=H[((c<<2)+e|0)+216>>2];Fc(b,287867,d- -64|0);c=c+1|0;if(c>>>0>2]}if(c&32){ye(288123,15,1,b);if(I[e+212|0]){c=0;while(1){H[d+48>>2]=H[((c<<2)+e|0)+228>>2];Fc(b,287867,d+48|0);c=c+1|0;if(c>>>0>2]}if(c&64){ye(288155,15,1,b);if(I[e+213|0]){c=0;while(1){H[d+32>>2]=H[((c<<2)+e|0)+240>>2];Fc(b,287867,d+32|0);c=c+1|0;if(c>>>0>2]}if(c&128){H[d+16>>2]=I[e+204|0];Fc(b,288301,d+16|0);c=H[a+48>>2]}if(c&256){H[d>>2]=J[e+300>>1];Fc(b,288438,d)}xb=d+112|0}function $B(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;if(!a){return 35}if(!e){return 6}f=H[a+96>>2];H[e>>2]=0;H[e+4>>2]=0;f=H[H[f+12>>2]+76>>2];if(!f){return 0}b=zb[f|0](a,b,c,e)|0;a:{if(b|(d|0)==2){break a}c=H[e>>2];b=c>>31;f=H[a+88>>2];h=H[f+16>>2];a=h>>31;b=(b^c)-b|0;a=(a^h)-a|0;b:{if(b+(a>>>8|0)>>>0<=8190){b=N(a,b)+32768>>>16|0;break b}i=b&65535;b=N(i,a>>>16|0)+N(a,b>>>16|0)+(N(i,a&65535)+32768>>>16)|0}a=b;g=0-a|0;a=c>>31|1;c=(((h|0)<0?0-a|0:a)|0)<0?g:b;H[e>>2]=c;h=H[e+4>>2];b=h>>31;i=H[f+20>>2];a=i>>31;b=(b^h)-b|0;a=(a^i)-a|0;c:{if(b+(a>>>8|0)>>>0<=8190){g=N(a,b)+32768>>>16|0;break c}g=b&65535;g=N(g,a>>>16|0)+N(a,b>>>16|0)+(N(a&65535,g)+32768>>>16)|0}a=g;b=0;j=0-a|0;a=h>>31|1;a=(((i|0)<0?0-a|0:a)|0)<0?j:g;H[e+4>>2]=a;if((d|0)==1){break a}d=J[f+12>>1];if(d>>>0<=24){c=ic(c,d,25)}d=J[f+14>>1];if(d>>>0<=24){a=ic(a,d,25)}H[e+4>>2]=a+32&-64;H[e>>2]=c+32&-64}return b}function Lz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=H[a+8>>2];c=H[a+4>>2];if((e-c|0)/12>>>0>=b>>>0){if(b){b=N((N(b,12)-12>>>0)/12|0,12)+12|0;c=Nb(c,0,b)+b|0}H[a+4>>2]=c;return}a:{b:{c:{g=H[a>>2];f=(c-g|0)/12|0;d=f+b|0;if(d>>>0<357913942){e=(e-g|0)/12|0;h=e<<1;e=e>>>0<178956970?d>>>0>>0?h:d:357913941;if(e){if(e>>>0>=357913942){break c}i=Qb(N(e,12))}d=N(f,12)+i|0;f=N((N(b,12)-12>>>0)/12|0,12)+12|0;b=Nb(d,0,f);f=b+f|0;e=N(e,12)+i|0;if((c|0)==(g|0)){break b}while(1){d=d-12|0;c=c-12|0;H[d>>2]=H[c>>2];H[d+4>>2]=H[c+4>>2];H[d+8>>2]=H[c+8>>2];H[c+8>>2]=0;H[c>>2]=0;H[c+4>>2]=0;if((c|0)!=(g|0)){continue}break}H[a+8>>2]=e;b=H[a+4>>2];H[a+4>>2]=f;c=H[a>>2];H[a>>2]=d;if((b|0)==(c|0)){break a}while(1){a=b-12|0;d=H[a>>2];if(d){H[b-8>>2]=d;Kb(d)}b=a;if((a|0)!=(c|0)){continue}break}break a}bd(a);X()}Td(403680);X()}H[a+8>>2]=e;H[a+4>>2]=f;H[a>>2]=b}if(c){Kb(c)}}function tj(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;g=xb-16|0;xb=g;a:{b:{c:{d:{if(!a){break d}i=H[e+12>>2];j=c-b|0;if((j|0)>0){j=j>>>2|0;if((zb[H[H[a>>2]+48>>2]](a,b,j)|0)!=(j|0)){break d}}b=d-b>>2;b=(b|0)<(i|0)?i-b|0:0;if((b|0)>0){if(b>>>0>=1073741808){break b}e:{if(b>>>0>=2){i=b+4&-4;h=Qb(i<<2);H[g+8>>2]=i|-2147483648;H[g>>2]=h;H[g+4>>2]=b;break e}F[g+11|0]=b;h=g}H[197455]=0;rp(h,f,b);f=H[197455];H[197455]=0;if((f|0)==1){break a}H[(b<<2)+h>>2]=0;f=H[H[a>>2]+48>>2];H[197455]=0;f=ca(f|0,a|0,(F[g+11|0]<0?H[g>>2]:g)|0,b|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break c}if(F[g+11|0]<0){Kb(H[g>>2])}h=0;if((b|0)!=(f|0)){break d}}b=d-c|0;if((b|0)>0){b=b>>>2|0;if((zb[H[H[a>>2]+48>>2]](a,c,b)|0)!=(b|0)){break d}}H[e+12>>2]=0;h=a}xb=g+16|0;return h|0}a=$()|0;_()|0;if(F[g+11|0]<0){Kb(H[g>>2])}ea(a|0);X()}qd(g);X()}ha(0)|0;_()|0;Zb();X()}function Xk(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(a){d=G[a+56>>1];G[a+20>>1]=d+J[a+20>>1];b=J[a+22>>1];G[a+22>>1]=b+J[a+58>>1];h=H[a+48>>2]+H[a+84>>2]|0;H[a+48>>2]=h;a:{if((d|0)<=0){break a}f=H[a+68>>2];if(d-1>>>0>=3){k=d&-4;while(1){c=g<<1;e=c+f|0;G[e>>1]=b+J[e>>1];e=f+(c|2)|0;G[e>>1]=b+J[e>>1];e=f+(c|4)|0;G[e>>1]=b+J[e>>1];c=f+(c|6)|0;G[c>>1]=b+J[c>>1];g=g+4|0;i=i+4|0;if((k|0)!=(i|0)){continue}break}}d=d&3;if(!d){break a}while(1){c=f+(g<<1)|0;G[c>>1]=b+J[c>>1];g=g+1|0;j=j+1|0;if((d|0)!=(j|0)){continue}break}}H[a+84>>2]=0;H[a+56>>2]=0;b=H[a+24>>2];if(b){b=b+(G[a+22>>1]<<3)|0}else{b=0}H[a+60>>2]=b;c=a- -64|0;b=H[a+28>>2];if(b){b=b+G[a+22>>1]|0}else{b=0}H[c>>2]=b;b=H[a+32>>2];if(b){b=b+(G[a+20>>1]<<1)|0}else{b=0}H[a+68>>2]=b;if(I[a+16|0]){b=G[a+22>>1]<<3;H[a+76>>2]=b+H[a+40>>2];H[a+80>>2]=b+H[a+44>>2]}b=a;a=H[a+52>>2];H[b+88>>2]=a?a+(h<<5)|0:0}}function zla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=H[a+4>>2];e=H[a>>2];a:{if((e|0)<0){break a}c=g;d=c+H[b+4>>2]|0;d=(d|0)>0?d:0;if(d>>>0>e>>>0){c=e;while(1){c=((c>>>1|0)+c|0)+8|0;if(d>>>0>=c>>>0){continue}break}b:{if(!(c>>>0>>0|c>>>0>268435454)){e=tc(H[a+8>>2],c<<4);if(e){break b}}H[a>>2]=-1;break a}H[a>>2]=c;H[a+8>>2]=e;c=H[a+4>>2]}if(c>>>0>>0){Nb(H[a+8>>2]+(c<<4)|0,0,d-c<<4)}H[a+4>>2]=d}c=H[b+4>>2];if(c){e=0;while(1){c:{if(c>>>0<=e>>>0){c=H[40911];H[196250]=H[40910];H[196251]=c;c=H[40909];H[196248]=H[40908];H[196249]=c;c=784992;break c}c=H[b>>2]+(e<<4)|0}d=e+g|0;d:{if(d>>>0>=K[a+4>>2]){d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break d}d=H[a+8>>2]+(d<<4)|0}f=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=f;f=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=f;c=H[b+4>>2];e=e+1|0;if(c>>>0>e>>>0){continue}break}}}function oea(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;f=xb-32|0;xb=f;j=H[a+420>>2];d=H[a+464>>2];a:{b:{if(H[d+40>>2]|!H[a+280>>2]){break b}c=H[a+460>>2];H[c+24>>2]=H[c+24>>2]+(H[d+12>>2]/8|0);H[d+12>>2]=0;g=0;if(!(zb[H[c+8>>2]](a)|0)){break a}if(H[a+336>>2]>0){while(1){H[((e<<2)+d|0)+20>>2]=0;e=e+1|0;if((e|0)>2]){continue}break}}H[d+16>>2]=0;H[d+40>>2]=H[a+280>>2];if(H[a+436>>2]){break b}H[d+36>>2]=0}H[f+24>>2]=a;c=H[a+24>>2];g=H[c>>2];H[f+8>>2]=g;h=H[c+4>>2];H[f+12>>2]=h;e=H[d+12>>2];i=H[d+8>>2];if(H[a+364>>2]>0){j=1<>2];if((e|0)<=0){g=0;if(!Hd(f+8|0,i,e,1)){break a}i=H[f+16>>2];e=H[f+20>>2]}e=e-1|0;if(i>>>e&1){G[h>>1]=j|J[h>>1]}c=c+1|0;if((c|0)>2]){continue}break}h=H[f+12>>2];g=H[f+8>>2];c=H[a+24>>2]}H[c+4>>2]=h;H[c>>2]=g;H[d+12>>2]=e;H[d+8>>2]=i;H[d+40>>2]=H[d+40>>2]-1;g=1}xb=f+32|0;return g|0}function $y(a){var b=0,c=0,d=0,e=0,f=0;b=H[a+20>>2];e=a+24|0;if((b|0)!=(e|0)){while(1){d=b;b=H[b+20>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}c=H[d+4>>2];a:{if(!c){b=H[d+8>>2];if((d|0)==H[b>>2]){break a}c=d+8|0;while(1){d=H[c>>2];c=d+8|0;b=H[d+8>>2];if((d|0)!=H[b>>2]){continue}break}break a}while(1){b=c;c=H[b>>2];if(c){continue}break}}if((b|0)!=(e|0)){continue}break}}f=a+20|0;nj(f,H[a+24>>2]);H[a+20>>2]=e;H[a+24>>2]=0;H[a+28>>2]=0;b=H[a+4>>2];e=a+8|0;if((b|0)!=(e|0)){while(1){d=b;b=H[b+20>>2];if(b){si(b);Kb(b)}c=H[d+4>>2];b:{if(!c){b=H[d+8>>2];if((d|0)==H[b>>2]){break b}c=d+8|0;while(1){d=H[c>>2];c=d+8|0;b=H[d+8>>2];if((d|0)!=H[b>>2]){continue}break}break b}while(1){b=c;c=H[b>>2];if(c){continue}break}}if((b|0)!=(e|0)){continue}break}}c=a+4|0;mj(c,H[a+8>>2]);H[a+4>>2]=e;H[a+8>>2]=0;H[a+12>>2]=0;b=H[a>>2];if(b){si(b);Kb(b);H[a>>2]=0}nj(f,H[a+24>>2]);mj(c,H[a+8>>2])}function MH(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=xb-208|0;xb=e;H[e+204>>2]=0;c=H[a>>2];b=H[H[c+712>>2]+3080>>2];c=Vd(H[H[c+96>>2]+4>>2],11010);a:{if(!c|!b){break a}b=H[b>>2];if(!b){break a}h=zb[b|0](c)|0;if(!h){break a}b=H[a>>2];f=H[b+712>>2];c=H[b+100>>2];b=pc(c,1028,e+204|0);b:{c:{if(H[e+204>>2]){break c}d=e+8|0;Qs(f+1372|0,d);d=zb[H[h>>2]](H[H[a>>2]+100>>2],d,b)|0;H[e+204>>2]=d;if(d){break c}j=b+4|0;d=H[f+2024>>2];while(1){if(!d){break b}d=d-1|0;g=d<<2;i=e+8|0;Qs(H[(g+f|0)+2028>>2],i);g=zb[H[h>>2]](H[H[a>>2]+100>>2],i,g+j|0)|0;H[e+204>>2]=g;if(!g){continue}break}}if(b){a=H[f+2024>>2];if(a){while(1){a=a-1|0;f=b+(a<<2)|0;d=H[f+4>>2];if(d){zb[H[c+8>>2]](c,d)}H[f+4>>2]=0;if(a){continue}break}}a=H[b>>2];if(a){zb[H[c+8>>2]](c,a)}H[b>>2]=0}if(b){zb[H[c+8>>2]](c,b)}k=H[e+204>>2];break a}H[H[a+40>>2]>>2]=b;H[a+44>>2]=-1}xb=e+208|0;return k|0}function _5(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;if((b|0)==-1){return 0}h=H[a+8>>2];i=H[a+12>>2];a:{d=H[a+28>>2];e=H[a+24>>2];b:{if((d|0)!=(e|0)){c=H[a+44>>2]}else{c=-1;if(!(I[a+48|0]&16)){break b}j=H[a+44>>2];f=H[a+20>>2];H[197455]=0;c=a+32|0;ba(1650,c|0,0);d=H[197455];H[197455]=0;if((d|0)==1){break a}d=H[a+40>>2];g=F[a+43|0];H[197455]=0;ga(1712,c|0,((g|0)<0?(d&2147483647)-1|0:1)|0,0);d=H[197455];H[197455]=0;if((d|0)==1){break a}d=I[a+43|0];g=d<<24>>24<0;c=g?H[a+32>>2]:c;H[a+20>>2]=c;e=c+(e-f>>2<<2)|0;H[a+24>>2]=e;d=c+((g?H[a+36>>2]:d)<<2)|0;H[a+28>>2]=d;c=c+(j-f>>2<<2)|0}f=e+4|0;c=c>>>0>f>>>0?c:f;H[a+44>>2]=c;if(I[a+48|0]&8){H[a+16>>2]=c;c=F[a+43|0]<0?H[a+32>>2]:a+32|0;H[a+8>>2]=c;H[a+12>>2]=c+(i-h>>2<<2)}if((d|0)==(e|0)){return zb[H[H[a>>2]+52>>2]](a,b)|0}H[a+24>>2]=f;H[e>>2]=b;c=b}return c|0}a=ha(0)|0;_()|0;sa(a|0)|0;ra();return-1}function Zg(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=O(0);e=I[a+8|0]|I[a+9|0]<<8;a:{if(!e){break a}g=I[a+6|0]|I[a+7|0]<<8;j=(g<<8|g>>>8)&65535;k=a+12|0;g=((e<<8|e>>>8)&65535)-1|0;while(1){b:{h=g+i>>>1|0;e=N(j,h)+k|0;f=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);f=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);c:{if(f>>>0>b>>>0){g=h-1|0;break c}if((b|0)==(f|0)){break b}i=h+1|0}if((g|0)>=(i|0)){continue}break a}break}b=I[a+10|0]|I[a+11|0]<<8;if(b){a=((b<<8|b>>>8)&65535)+a|0}else{a=163632}b=I[a+6|0]|I[a+7|0]<<8;f=(b<<8|b>>>8)&65535;b=I[e+5|0]|I[e+4|0]<<8;if(f>>>0<=b>>>0){break a}b=a+(b<<2)|0;b=I[b+8|0]|I[b+9|0]<<8|(I[b+10|0]<<16|I[b+11|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);f=b?b+a|0:163632;b=a;a=I[a+2|0]|I[a+3|0]<<8|(I[a+4|0]<<16|I[a+5|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);l=ml(f,I[e+7|0]|I[e+6|0]<<8,c,d,a?b+a|0:163632)}return l}function KE(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;i=H[b+4>>2];if(i>>>0>a>>>0){return 0}e=H[b+8>>2];if(e>>>0>>0){return 0}if(e-a>>>0<2){return 0}h=H[b+12>>2];f=h-2|0;H[b+12>>2]=f;g=1;if((f|0)<=0){return 0}f=I[a|0]|I[a+1|0]<<8;a:{if(!f){break a}b:{c=((f<<8|f>>>8)&65535)+c|0;if(c>>>0>>0|c>>>0>e>>>0|e-c>>>0<2){break b}d=H[d>>2];h=h-4|0;H[b+12>>2]=h;if((h|0)<=0){break b}g=I[c|0]|I[c+1|0]<<8;g=(g<<8|g>>>8)&65535;if(g>>>0>=4294967295/(d>>>0)>>>0?d:0){break b}f=N(d,g);if(f>>>0>2147483646){break b}g=1;if(!f){break a}d=c+2|0;if(d>>>0>>0|d>>>0>e>>>0){break b}e=e-d|0;d=f<<1;if(e>>>0>>0){break b}e=h-d|0;H[b+12>>2]=e;d=0;if((e|0)<=0){break b}while(1){if(!In((d|0)<0?163632:(c+(d<<1)|0)+2|0,b,c)){break b}d=d+1|0;if((f|0)!=(d|0)){continue}break}break a}c=H[b+28>>2];if(c>>>0>31){return 0}H[b+28>>2]=c+1;g=0;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;g=1}return g}function Nc(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;a:{if(I[b|0]){g=M[b+8>>3];break a}F[b|0]=1;g=M[b+8>>3];f=M[a+128>>3];if(g>f){M[b+8>>3]=f;g=f;f=M[a+128>>3]}if(f>M[b+24>>3]){M[b+24>>3]=f}f=M[a+136>>3];if(f>3]){M[b+16>>3]=f;f=M[a+136>>3]}if(!(M[b+32>>3]>3]=f}f=M[c>>3];if(g>f){M[b+8>>3]=f;g=f;f=M[c>>3]}h=M[b+24>>3];if(f>h){M[b+24>>3]=f;h=f}i=M[b+16>>3];f=M[c+8>>3];if(i>f){M[b+16>>3]=f;i=f;f=M[c+8>>3]}j=M[b+32>>3];if(f>j){M[b+32>>3]=f;j=f}f=M[d>>3];if(f>3]=f;f=M[d>>3]}if(f>h){M[b+24>>3]=f}g=M[d+8>>3];if(i>g){M[b+16>>3]=g;g=M[d+8>>3]}if(g>j){M[b+32>>3]=g}c=H[e+4>>2];H[a+128>>2]=H[e>>2];H[a+132>>2]=c;c=H[e+12>>2];H[a+136>>2]=H[e+8>>2];H[a+140>>2]=c;g=M[a+128>>3];if(g>3]){M[b+8>>3]=g;g=M[a+128>>3]}if(M[b+24>>3]>3]=g}g=M[a+136>>3];if(g>3]){M[b+16>>3]=g;g=M[a+136>>3]}if(M[b+32>>3]>3]=g}}function lja(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{d:{a=b-44032|0;if(!(a>>>0>11171|c-4520>>>0>26)){if(((a&65535)>>>0)%28|0){break d}b=(b+c|0)-4519|0;break a}if(!(b-4352>>>0>18|c-4449>>>0>20)){b=(N(b,588)+N(c,28)|0)-2639516|0;break a}if((c&-128)!=768|b>>>0>2047){break d}a=c<<14&2080768|b<<21;b=637;c=0;while(1){e:{e=b+c>>>1|0;g=H[(e<<2)+221392>>2];f=g&-16384;f:{if(a>>>0>>0){b=e-1|0;break f}if(a>>>0<=f>>>0){break e}c=e+1|0}if((b|0)>=(c|0)){continue}break b}break}b=g&16383;break c}a=c>>>11|0;g=c<<21;e=b<<10|a;b=387;c=0;while(1){g:{f=b+c>>>1|0;h=(f<<3)+223952|0;a=H[h+4>>2];h=H[h>>2];a=a&2147483647;i=h&-2097152;h:{if((a|0)==(e|0)&i>>>0>g>>>0|a>>>0>e>>>0){b=f-1|0;break h}if((a|0)==(e|0)&g>>>0<=i>>>0|a>>>0>e>>>0){break g}c=f+1|0}if((b|0)>=(c|0)){continue}break b}break}b=h&2097151}if(b){break a}}return 0}H[d>>2]=b;return 1}function ag(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{d=H[a+68>>2];i=c>>>0>d>>>0?d:c;j=i-b|0;if(j>>>0<2){break a}g=H[a+144>>2]|32;H[a+144>>2]=g;if(b>>>0>=i>>>0){break a}h=H[a+80>>2];c=-1;d=b;l=(d^-1)+i|0;if(l>>>0>=3){k=j&-4;while(1){e=N(d,20)+h|0;f=H[e+8>>2];c=c>>>0>>0?c:f;f=H[e+28>>2];c=c>>>0>>0?c:f;f=H[e+48>>2];c=c>>>0>>0?c:f;e=H[e+68>>2];c=c>>>0>>0?c:e;d=d+4|0;m=m+4|0;if((k|0)!=(m|0)){continue}break}}k=j&3;if(k){e=0;while(1){f=H[(N(d,20)+h|0)+8>>2];c=c>>>0>>0?c:f;d=d+1|0;e=e+1|0;if((k|0)!=(e|0)){continue}break}}if(j&1){d=N(b,20)+h|0;if(H[d+8>>2]!=(c|0)){H[a+144>>2]=g;H[d+4>>2]=H[d+4>>2]|3}b=b+1|0}if(!l){break a}while(1){d=N(b,20)+h|0;if(H[d+8>>2]!=(c|0)){g=g|32;H[a+144>>2]=g;H[d+4>>2]=H[d+4>>2]|3}d=N(b+1|0,20)+h|0;if(H[d+8>>2]!=(c|0)){g=g|32;H[a+144>>2]=g;H[d+4>>2]=H[d+4>>2]|3}b=b+2|0;if((i|0)!=(b|0)){continue}break}}}function sr(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=xb-16|0;xb=c;H[c+12>>2]=b;H[c+8>>2]=a;xb=c+16|0;b=c+8|0;a=0;a:{if(!b){break a}a=H[b+4>>2];b=H[b>>2];if(!b){b=a;a=a>>31;a=(b^a)-a|0;break a}if(!a){a=b>>31;a=(a^b)-a|0;break a}c=a>>31;d=(c^a)-c|0;c=b>>31;g=d|(c^b)-c;f=Q(g);h=f-2|0;b:{if(g>>>0<=1073741823){a=a<>c;c=b>>c}b=0-c|0;c:{if((a|0)>(c|0)){d=(a|0)>(b|0);c=d?b:0-a|0;b=d?a:b;break c}d=(a|0)<(b|0);b=d?0-a|0:c;c=d?c:a}a=1;d=1;while(1){e=a+c>>d;d:{if((c|0)>0){c=c-(a+b>>d)|0;b=b+e|0;break d}c=(a+b>>d)+c|0;b=b-e|0}a=a<<1;d=d+1|0;if((d|0)!=23){continue}break}a=b>>31;c=(a^b)-a|0;d=c&65535;a=N(d,56281);e=c>>>16|0;c=a+N(e,23318)|0;i=c<<16;d=i+N(d,23318)|0;a=(((N(e,56281)+(c>>>16|0)|0)+((a>>>0>c>>>0)<<16)|0)+(d>>>0>>0)|0)+(d>>>0>3221225471)|0;b=(b|0)<0?0-a|0:a;a=b+(1<>h;if(g>>>0<=536870911){break a}a=b<<2-f}return a}function gM(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;e=H[b>>2];if((e|0)==-1){return 0}c=H[a+16>>2];d=I[c+8204|0]|I[c+8205|0]<<8|(I[c+8206|0]<<16|I[c+8207|0]<<24);f=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);a:{b:{if(!f){break b}j=H[a>>2];a=e+1|0;d=c+8208|0;while(1){c=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);g=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);a=a>>>0>g>>>0?a:g;c=I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24);h=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c:{if(a>>>0>h>>>0){break c}c=I[d+8|0]|I[d+9|0]<<8|(I[d+10|0]<<16|I[d+11|0]<<24);i=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=h+1|0;d:{while(1){e=a-g|0;if((e^-1)>>>0>>0){break c}e=e+i|0;if(e){break d}if((a|0)==-1){break b}e=(a|0)==(h|0);a=a+1|0;if(!e){continue}break}a=c;break c}if(K[j+16>>2]>e>>>0){break a}}d=d+12|0;f=f-1|0;if(f){continue}break}}e=0;a=0}H[b>>2]=a;return e|0}function Vca(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;k=N(H[b+36>>2],H[b+28>>2]);e=H[a+272>>2];a:{if((e|0)<=0){break a}g=H[a+28>>2];h=(k<<1)-g|0;if((h|0)<=0){break a}b=0;if(e-1>>>0>=3){m=e&-4;while(1){f=b<<2;i=g+H[f+c>>2]|0;Nb(i,I[i-1|0],h);i=g+H[(f|4)+c>>2]|0;Nb(i,I[i-1|0],h);i=g+H[(f|8)+c>>2]|0;Nb(i,I[i-1|0],h);f=g+H[(f|12)+c>>2]|0;Nb(f,I[f-1|0],h);b=b+4|0;l=l+4|0;if((m|0)!=(l|0)){continue}break}}e=e&3;if(e){while(1){f=g+H[(b<<2)+c>>2]|0;Nb(f,I[f-1|0],h);b=b+1|0;j=j+1|0;if((e|0)!=(j|0)){continue}break}}e=H[a+272>>2]}if(!(!k|(e|0)<=0)){h=k&-2;f=k&1;j=0;while(1){e=j<<2;b=H[e+c>>2];e=H[d+e>>2];g=0;if((k|0)!=1){while(1){F[e|0]=I[b|0]+I[b+1|0]>>>1;F[e+1|0]=(I[b+2|0]+I[b+3|0]|0)+1>>>1;b=b+4|0;e=e+2|0;g=g+2|0;if((h|0)!=(g|0)){continue}break}}if(f){F[e|0]=I[b|0]+I[b+1|0]>>>1}j=j+1|0;if((j|0)>2]){continue}break}}}function PG(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;k=xb-16|0;xb=k;m=H[b+28>>2];n=H[b+24>>2];l=H[a+20>>2];if((l|0)!=H[b+36>>2]){h=b+40|0;while(1){i=j<<2;H[i+h>>2]=-1;H[h+(i|4)>>2]=-1;H[h+(i|8)>>2]=-1;H[h+(i|12)>>2]=-1;H[h+(i|16)>>2]=-1;H[h+(i|20)>>2]=-1;H[h+(i|24)>>2]=-1;H[h+(i|28)>>2]=-1;j=j+8|0;if((j|0)!=256){continue}break}H[b+36>>2]=H[a+20>>2]}a:{if(c){i=b+40|0;j=0;while(1){H[k+12>>2]=0;h=H[d>>2];b=i+((h&255)<<2)|0;a=H[b>>2];b:{if(!((a|0)==-1|(a>>>24|0)!=(h>>>8|0))){a=a&16777215;break b}H[197455]=0;la(642,n|0,h|0,m|0,k+12|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[k+12>>2];if(h>>>0>65535|a>>>0>16777215){break b}H[b>>2]=h<<16&-16777216|a}H[f>>2]=((l|0)>=0?a:0-a|0)+512>>10;f=f+g|0;d=d+e|0;j=j+1|0;if((j|0)!=(c|0)){continue}break}}Vc();xb=k+16|0;return}a=$()|0;_()|0;Vc();ea(a|0);X()}function sq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=H[a>>2];f=Pg(g,c,11507);if(!f){return 64}a:{b=H[a>>2];a=zb[H[b+4>>2]](b,40)|0;if(!a){c=64;break a}F[a+24|0]=0;F[a+25|0]=0;F[a+26|0]=0;F[a+27|0]=0;F[a+28|0]=0;F[a+29|0]=0;F[a+30|0]=0;F[a+31|0]=0;F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;F[a+4|0]=0;F[a+5|0]=0;F[a+6|0]=0;F[a+7|0]=0;F[a+32|0]=0;F[a+33|0]=0;F[a+34|0]=0;F[a+35|0]=0;F[a+36|0]=0;F[a+37|0]=0;F[a+38|0]=0;F[a+39|0]=0;F[a+16|0]=0;F[a+17|0]=0;F[a+18|0]=0;F[a+19|0]=0;F[a+20|0]=0;F[a+21|0]=0;F[a+22|0]=0;F[a+23|0]=0;F[a+8|0]=0;F[a+9|0]=0;F[a+10|0]=0;F[a+11|0]=0;F[a+12|0]=0;F[a+13|0]=0;F[a+14|0]=0;F[a+15|0]=0;H[a+28>>2]=b;c=Dk(a,f);H[a+16>>2]=f;if(c){zb[H[b+8>>2]](b,a);break a}H[a+28>>2]=b;c=yi(a,333319,e);b=H[a+28>>2];e=H[a+24>>2];if(e){zb[e|0](a)}zb[H[b+8>>2]](b,a);if(c){break a}H[d>>2]=f;return 0}zb[H[g+8>>2]](g,f);return c|0}function qq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=H[a>>2];f=Pg(g,c,12024);if(!f){return 64}a:{b=H[a>>2];a=zb[H[b+4>>2]](b,40)|0;if(!a){c=64;break a}F[a+24|0]=0;F[a+25|0]=0;F[a+26|0]=0;F[a+27|0]=0;F[a+28|0]=0;F[a+29|0]=0;F[a+30|0]=0;F[a+31|0]=0;F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;F[a+4|0]=0;F[a+5|0]=0;F[a+6|0]=0;F[a+7|0]=0;F[a+32|0]=0;F[a+33|0]=0;F[a+34|0]=0;F[a+35|0]=0;F[a+36|0]=0;F[a+37|0]=0;F[a+38|0]=0;F[a+39|0]=0;F[a+16|0]=0;F[a+17|0]=0;F[a+18|0]=0;F[a+19|0]=0;F[a+20|0]=0;F[a+21|0]=0;F[a+22|0]=0;F[a+23|0]=0;F[a+8|0]=0;F[a+9|0]=0;F[a+10|0]=0;F[a+11|0]=0;F[a+12|0]=0;F[a+13|0]=0;F[a+14|0]=0;F[a+15|0]=0;H[a+28>>2]=b;c=Dk(a,f);H[a+16>>2]=f;if(c){zb[H[b+8>>2]](b,a);break a}H[a+28>>2]=b;c=yi(a,333319,e);b=H[a+28>>2];e=H[a+24>>2];if(e){zb[e|0](a)}zb[H[b+8>>2]](b,a);if(c){break a}H[d>>2]=f;return 0}zb[H[g+8>>2]](g,f);return c|0}function pq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=H[a>>2];f=Pg(g,c,12096);if(!f){return 64}a:{b=H[a>>2];a=zb[H[b+4>>2]](b,40)|0;if(!a){c=64;break a}F[a+24|0]=0;F[a+25|0]=0;F[a+26|0]=0;F[a+27|0]=0;F[a+28|0]=0;F[a+29|0]=0;F[a+30|0]=0;F[a+31|0]=0;F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;F[a+4|0]=0;F[a+5|0]=0;F[a+6|0]=0;F[a+7|0]=0;F[a+32|0]=0;F[a+33|0]=0;F[a+34|0]=0;F[a+35|0]=0;F[a+36|0]=0;F[a+37|0]=0;F[a+38|0]=0;F[a+39|0]=0;F[a+16|0]=0;F[a+17|0]=0;F[a+18|0]=0;F[a+19|0]=0;F[a+20|0]=0;F[a+21|0]=0;F[a+22|0]=0;F[a+23|0]=0;F[a+8|0]=0;F[a+9|0]=0;F[a+10|0]=0;F[a+11|0]=0;F[a+12|0]=0;F[a+13|0]=0;F[a+14|0]=0;F[a+15|0]=0;H[a+28>>2]=b;c=Dk(a,f);H[a+16>>2]=f;if(c){zb[H[b+8>>2]](b,a);break a}H[a+28>>2]=b;c=yi(a,333319,e);b=H[a+28>>2];e=H[a+24>>2];if(e){zb[e|0](a)}zb[H[b+8>>2]](b,a);if(c){break a}H[d>>2]=f;return 0}zb[H[g+8>>2]](g,f);return c|0}function iS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=xb-48|0;xb=f;H[f+40>>2]=b;a:{if(!(H[c+4>>2]&1)){c=zb[H[H[a>>2]+24>>2]](a,b,c,d,e)|0;break a}b=f+24|0;a=H[c+28>>2];H[b>>2]=a;H[a+4>>2]=H[a+4>>2]+1;H[197455]=0;a=aa(3445,b|0)|0;b=H[197455];H[197455]=0;b:{if((b|0)!=1){b=H[f+24>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}c:{if(e){zb[H[H[a>>2]+24>>2]](f+24|0,a);break c}zb[H[H[a>>2]+28>>2]](f+24|0,a)}g=f,h=Ue(f+24|0),H[g+16>>2]=h;while(1){g=f,h=kh(f+24|0),H[g+8>>2]=h;if(H[f+16>>2]==H[f+8>>2]){c=H[f+40>>2];Sc(f+24|0);break a}a=H[H[f+16>>2]>>2];H[197455]=0;da(3471,f+40|0,a|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){H[f+16>>2]=H[f+16>>2]+4;continue}break}c=$()|0;_()|0;Sc(f+24|0);break b}c=$()|0;_()|0;a=H[f+24>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}}ea(c|0);X()}xb=f+48|0;return c|0}function MF(a,b,c,d,e,f){var g=0,h=0;g=163632;h=163632;a=Xh(a,b);b=I[a+4|0]|I[a+5|0]<<8;if(b){h=a+((b<<8|b>>>8)&65535)|0}b=I[h|0]|I[h+1|0]<<8;b=((b<<8|b>>>8)&65535)>>>0>c>>>0?(N(c,6)+h|0)+2|0:163632;b=I[b+4|0]|I[b+5|0]<<8;if(b){g=((b<<8|b>>>8)&65535)+h|0}a:{if((d|0)==65535){c=I[g|0]|I[g+1|0]<<8;b=164018;if(!c){break a}b=((c<<8|c>>>8)&65535)+g|0;break a}c=I[g+2|0]|I[g+3|0]<<8;c=((c<<8|c>>>8)&65535)>>>0>d>>>0?(N(d,6)+g|0)+4|0:163632;c=I[c+4|0]|I[c+5|0]<<8;b=164018;if(!c){break a}b=((c<<8|c>>>8)&65535)+g|0}b=I[b+2|0]|I[b+3|0]<<8;g=b<<8|b>>>8;d=g&65535;if(e){H[e>>2]=d}if(f){if((b|0)==65535){a=0}else{c=163632;b=I[a+6|0]|I[a+7|0]<<8;if(b){c=a+((b<<8|b>>>8)&65535)|0}a=I[c|0]|I[c+1|0]<<8;a=((a<<8|a>>>8)&65535)>>>0>(g&65535)>>>0?(N(d,6)+c|0)+2|0:163632;a=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24)}H[f>>2]=a}}function CD(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=H[a+2744>>2];l=i&4;f=64;a:{if(l){break a}f=(e|0)==1?55:49;if(!(!(F[b+12|0]&1)|!(F[c+12|0]&1))){break a}f=(e|0)==1?61:59}m=H[c+4>>2];n=H[b+4>>2];j=zn(i,H[a+2748>>2],e,m-n|0);b:{c:{d:{e:{i=(((m+n|0)/2|0)+d|0)+((j|0)/-2|0)|0;a=i&63;f:{if(!a){break f}g=j+i&63;if(!g){break f}d=64-a|0;if((f|0)>=(j|0)){if((g|0)>=(j|0)){break f}if(d>>>0<=g>>>0){break c}h=0-g|0;break f}if(!l){if(a>>>0>=f>>>0|d>>>0>=f>>>0|(f>>>0<=g>>>0|f>>>0<=64-g>>>0)){break f}}k=j&63;if(k>>>0>31){break e}if(d>>>0<=k>>>0){break f}if(g>>>0>k>>>0){break d}}a=(h|0)>-14?h:-14;break b}k=64-f|0}e=d-k|0;a=f-d|0;h=(a|0)>(e|0)?e:0-a|0;e=h>>31;d=f-g|0;a=g-k|0;d=(a|0)>(d|0)?d:0-a|0;a=d>>31;d=(e^h)-e>>>0>(a^d)-a>>>0?d:h}h=d;a=(d|0)>-14?d:-14;a=(a|0)<14?a:14}d=l?h:a;f=d+i|0;e=f+j|0;a=(m|0)>(n|0);H[b+8>>2]=a?f:e;H[c+8>>2]=a?e:f;return d}function qe(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;j=+(b+d|0)*.5;i=+(f|0);h=+(a+c|0)*.5;g=+(e|0);a:{if(h<=g){a=3;if(i<=j){break a}a=0;break a}a=2;if(i<=j){break a}a=1}i=i-j;g=g-h;h=P(i)/W(g*g+i*i);A(+h);b=v(1)|0;c=v(0)|0;d=b&2147483647;b:{if(d>>>0>=1072693248){g=h*1.5707963267948966+7.52316384526264e-37;if(!(d-1072693248|c)){break b}g=0/(h-h);break b}c:{if(d>>>0<=1071644671){if(d+-1048576>>>0<1044381696){break c}g=h*ey(h*h)+h;break b}g=(1-P(h))*.5;j=W(g);h=ey(g);d:{if(d>>>0>=1072640819){g=j*h+j;g=1.5707963267948966-(g+g+-6.123233995736766e-17);break d}A(+j);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);i=+z();g=(g-i*i)/(j+i);g=.7853981633974483-(i+i)-((j+j)*h-(6.123233995736766e-17-(g+g)))+.7853981633974483}h=(b|0)>0|(b|0)>=0?g:-g}g=h}h=g*180/3.141592653589793;e:{switch(a-1|0){case 0:return 180-h;case 1:return h+180;case 2:h=360-h;break;default:break e}}return h}function KM(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;a:{h=H[a+4>>2];k=0-h|0;g=k&(c+h|0)-1;i=d&k;b:{if((g|0)<=(i|0)){c=H[a>>2];d=g;break b}if((h+i|0)!=(g|0)){break a}j=i;c:{d:{e:{l=J[e+12>>1];m=l&7;switch(m|0){case 0:break c;case 1:case 5:break d;case 4:break e;default:break a}}j=(c+d|0)+((N(h,63)|0)/64|0)>>1&k;break c}if(!(H[e+28>>2]!=(f|0)|H[e+16>>2]>0)&(!(l&16)|H[a+8>>2]>(d-c|0))|!(H[f+28>>2]!=(e|0)|H[e+20>>2]!=(b|0))&(!(l&32)|H[a+8>>2]>(d-c|0))){break a}if((m|0)==1){break c}j=(c+d|0)+((N(h,63)|0)/64|0)>>1&k}c=H[a>>2];d=g;d=(j|0)>=0?J[a+52>>1]>j>>>c>>>0?j:i:d;b=((g|0)==(d|0)?i:g)>>c;if((b|0)<0|b>>>0>=J[a+52>>1]){break b}if(I[H[a+56>>2]+(H[a+140>>2]+(b<<13>>16)|0)|0]<<(b&7)&128){break a}}b=d>>c;if((b|0)<0|b>>>0>=J[a+52>>1]){break a}a=H[a+56>>2]+(H[a+140>>2]+(b>>>3&65535)|0)|0;F[a|0]=I[a|0]|128>>>(b&7)}}function uS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=xb-48|0;xb=f;H[f+40>>2]=b;a:{if(!(H[c+4>>2]&1)){c=zb[H[H[a>>2]+24>>2]](a,b,c,d,e)|0;break a}b=f+24|0;a=H[c+28>>2];H[b>>2]=a;H[a+4>>2]=H[a+4>>2]+1;H[197455]=0;a=aa(3415,b|0)|0;b=H[197455];H[197455]=0;b:{if((b|0)!=1){b=H[f+24>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}c:{if(e){zb[H[H[a>>2]+24>>2]](f+24|0,a);break c}zb[H[H[a>>2]+28>>2]](f+24|0,a)}g=f,h=Ue(f+24|0),H[g+16>>2]=h;while(1){g=f,h=nh(f+24|0),H[g+8>>2]=h;if(H[f+16>>2]==H[f+8>>2]){c=H[f+40>>2];_b(f+24|0);break a}a=F[H[f+16>>2]];H[197455]=0;da(3460,f+40|0,a|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){H[f+16>>2]=H[f+16>>2]+1;continue}break}c=$()|0;_()|0;_b(f+24|0);break b}c=$()|0;_()|0;a=H[f+24>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}}ea(c|0);X()}xb=f+48|0;return c|0}function Zt(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,p=0;a:{if((a|0)>(b|0)){break a}g=H[(c<<3)+e>>2]>H[(d<<3)+e>>2];k=g?c:d;h=k<<3;i=H[h+f>>2];l=g?d:c;c=l<<3;j=H[c+f>>2];h=H[e+h>>2];g=H[c+e>>2];if(!((h|0)==(g|0)&(i|0)!=(j|0))){if((g|0)!=(h|0)){m=dc(i-j|0,h-g|0)}o=i-h|0;p=j-g|0;d=a;while(1){c=d;n=d<<3;d=H[n+e>>2];b:{if((d|0)<=(g|0)){i=d+p|0;break b}i=d+o|0;if((d|0)>=(h|0)){break b}i=Rb(d-g|0,m)+j|0}H[f+n>>2]=i;d=c+1|0;if((b|0)!=(c|0)){continue}break}}h=f+4|0;e=e+4|0;d=H[e+(l<<3)>>2]>H[e+(k<<3)>>2];g=(d?l:k)<<3;c=H[h+g>>2];d=(d?k:l)<<3;f=H[d+h>>2];g=H[e+g>>2];d=H[d+e>>2];if((g|0)==(d|0)&(c|0)!=(f|0)){break a}k=0;if((d|0)!=(g|0)){k=dc(c-f|0,g-d|0)}i=c-g|0;l=f-d|0;while(1){c=a;m=c<<3;a=H[m+e>>2];c:{if((a|0)<=(d|0)){j=a+l|0;break c}j=a+i|0;if((a|0)>=(g|0)){break c}j=Rb(a-d|0,k)+f|0}H[h+m>>2]=j;a=c+1|0;if((b|0)!=(c|0)){continue}break}}}function HM(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;a:{h=H[a+4>>2];k=0-h|0;g=k&(c+h|0)-1;i=d&k;b:{if((g|0)<=(i|0)){e=H[a>>2];d=g;break b}if((h+i|0)!=(g|0)){break a}j=i;c:{d:{e:{l=J[e+12>>1];m=l&7;switch(m|0){case 0:break c;case 1:case 5:break d;case 4:break e;default:break a}}j=(c+d|0)+((N(h,63)|0)/64|0)>>1&k;break c}if(!(H[e+28>>2]!=(f|0)|H[e+16>>2]>0)&(!(l&16)|H[a+8>>2]>(d-c|0))|!(H[f+28>>2]!=(e|0)|H[e+20>>2]!=(b|0))&(!(l&32)|H[a+8>>2]>(d-c|0))){break a}if((m|0)==1){break c}j=(c+d|0)+((N(h,63)|0)/64|0)>>1&k}e=H[a>>2];d=g;d=(j|0)>=0?K[a+96>>2]>j>>>e>>>0?j:i:d;c=((g|0)==(d|0)?i:g)>>e;if((c|0)<0|c>>>0>=K[a+96>>2]){break b}if(I[(H[a+56>>2]+(b>>3)|0)-N(c,H[a+104>>2])|0]&128>>>(b&7)){break a}}c=d>>e;if((c|0)<0|c>>>0>=K[a+96>>2]){break a}a=(H[a+56>>2]+(b>>3)|0)-N(c,H[a+104>>2])|0;F[a|0]=I[a|0]|128>>>(b&7)}}function rQ(a,b,c,d,e,f,g,h,i){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;var j=0;a=Nb(a,0,1516);j=nf(H[b+96>>2],23740,1);if(!j){return 7}F[a+68|0]=1;H[a+64>>2]=0;H[a+1348>>2]=j;H[a+8>>2]=d;H[a+4>>2]=b;H[a>>2]=H[b+100>>2];a:{if(!d){break a}j=H[H[d+156>>2]>>2];H[a+12>>2]=j;H[a+20>>2]=j+56;H[a+16>>2]=j+20;Oh(j);c=H[H[c+40>>2]>>2];H[a+72>>2]=0;H[a+76>>2]=c;if(!g){break a}H[a+72>>2]=H[H[d+156>>2]+36>>2]}H[a+24>>2]=0;H[a+28>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;c=H[7601];H[a+80>>2]=H[7600];H[a+84>>2]=c;c=H[7603];H[a+88>>2]=H[7602];H[a+92>>2]=c;c=H[7605];H[a+96>>2]=H[7604];H[a+100>>2]=c;c=H[7607];H[a+104>>2]=H[7606];H[a+108>>2]=c;H[a+1352>>2]=H[b+16>>2];H[a+1468>>2]=f;H[a+1476>>2]=i;H[a+1356>>2]=e;H[a+1472>>2]=h;c=H[7611];b=a+1488|0;H[b>>2]=H[7610];H[b+4>>2]=c;b=H[7609];H[a+1480>>2]=H[7608];H[a+1484>>2]=b;return 0}function Q5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(H[b+116>>2]+H[b+108>>2]|0)+84|0;H[e+12>>2]=d;H[e+8>>2]=77;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);Lb(H[a+4>>2],b+20|0,4);Lb(H[a+4>>2],b+24|0,4);Lb(H[a+4>>2],b+28|0,4);Lb(H[a+4>>2],b+32|0,4);Lb(H[a+4>>2],b+36|0,4);Lb(H[a+4>>2],b+40|0,4);Hk(a,b+48|0);Lb(H[a+4>>2],b+96|0,1);Lb(H[a+4>>2],b+97|0,1);Lb(H[a+4>>2],b+98|0,1);Lb(H[a+4>>2],b+99|0,1);Lb(H[a+4>>2],b+100|0,4);Lb(H[a+4>>2],b+104|0,4);Lb(H[a+4>>2],b+108|0,4);Lb(H[a+4>>2],b+112|0,4);Lb(H[a+4>>2],b+116|0,4);Lb(H[a+4>>2],b+120|0,4);Lb(H[a+4>>2],b+124|0,4);d=H[b+108>>2];if(d){Lb(H[a+4>>2],H[c+4>>2],d)}d=H[b+116>>2];if(d){Lb(H[a+4>>2],H[c+4>>2]+H[b+108>>2]|0,d)}xb=e+16|0}function Eja(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=oc(1,8);a:{if(d){c=H[a+56>>2];b=0;b:{if((c|0)<=0){break b}e=H[a+60>>2];b=c-1|0;c:{while(1){c=b+f>>>1|0;g=H[N(c,36)+e>>2];d:{if(g>>>0>=1919969383){b=c-1|0;break d}if((g|0)==1919969382){break c}f=c+1|0}if((b|0)>=(f|0)){continue}break}b=0;break b}b=H[(N(c,36)+e|0)+28>>2]}H[d>>2]=b;b=H[a+4>>2];e:{if((b|0)<=1333094257){if((b|0)<=1298230883){if((b|0)==1097100397|(b|0)==1098015074|(b|0)==1130918515){break e}break a}f:{switch(b-1298230884|0){case 1:case 2:case 3:case 4:break a;case 0:case 5:break e;default:break f}}if((b|0)==1299148391|(b|0)==1315663727){break e}break a}if((b|0)<=1383032934){if((b|0)==1333094258|(b|0)==1349017959|(b|0)==1349020784){break e}break a}if((b|0)==1383032935|(b|0)==1400468067){break e}if((b|0)!=1399809892){break a}}a=vE(a);H[d+4>>2]=a;if(a){break a}Kb(d)}d=0}return d|0}function FF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=H[a+68>>2];if(k){l=H[a+88>>2];h=H[a+80>>2];while(1){a:{b:{f=N(e,20);c=f+h|0;if(zb[b|0](c)|0){f=H[c+8>>2];c:{d:{e:{d=e+1|0;if(d>>>0>>0){if(H[(N(d,20)+h|0)+8>>2]!=(f|0)){break e}break a}if(g){break d}break b}if(!g){break c}}i=H[(N(g,20)+h|0)-12>>2];if(i>>>0<=f>>>0){break a}j=H[c+4>>2]&3;e=g;while(1){e=e-1|0;c=N(e,20)+h|0;if((i|0)!=H[c+8>>2]){break a}H[c+4>>2]=j|H[c+4>>2]&-4;H[c+8>>2]=f;if(e){continue}break}break a}Jd(a,e,e+2|0);break b}if((e|0)!=(g|0)){j=H[c+4>>2];i=N(g,20);d=i+h|0;H[d>>2]=H[c>>2];H[d+4>>2]=j;H[d+16>>2]=H[c+16>>2];j=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=j;d=i+l|0;c=f+l|0;H[d+16>>2]=H[c+16>>2];f=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=f;f=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=f}g=g+1|0;d=e+1|0;break a}g=0}e=d;if((k|0)!=(d|0)){continue}break}}H[a+68>>2]=g}function TE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=xb-16|0;xb=f;c=I[a+2|0]|I[a+3|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}else{d=163632}c=H[b+100>>2];if((Gc(d,H[H[c+80>>2]+N(H[c+64>>2],20)>>2])|0)!=-1){g=163632;e=163632;c=I[a+4|0]|I[a+5|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}c=H[b+100>>2];c=Kn(e,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);d=I[a+6|0]|I[a+7|0]<<8;c=c>>>0<((d<<8|d>>>8)&65535)>>>0?((c<<1)+a|0)+8|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){g=((c<<8|c>>>8)&65535)+a|0}H[f+12>>2]=e;H[f+8>>2]=716;a=I[g|0]|I[g+1|0]<<8;if(a){e=(a<<8|a>>>8)&65535;a=g+2|0;while(1){c=I[a|0]|I[a+1|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+g|0}else{c=163632}d=I[c|0]|I[c+1|0]<<8;h=(d<<8|d>>>8)&65535;i=c+4|0;c=I[c+2|0]|I[c+3|0]<<8;c=fl(b,h,i,(c<<8|c>>>8)&65535,(d?(h<<1)-2|0:0)+i|0,H[f+8>>2],H[f+12>>2]);if(!c){a=a+2|0;e=e-1|0;if(e){continue}}break}}else{c=0}e=c}xb=f+16|0;return e}function Gba(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;a:{if(!a){break a}d=H[a>>2];if(!d){break a}j=H[d+668>>2];k=H[d+676>>2];f=b?H[b>>2]:f;g=c?H[c>>2]:g;i=xb-160|0;xb=i;if(f){xC(d,f)}if(g){xC(d,g)}vC(d);cc(d,H[d+268>>2]);cc(d,H[d+680>>2]);cc(d,H[d+748>>2]);cc(d,H[d+740>>2]);cc(d,H[d+588>>2]);cc(d,H[d+592>>2]);e=H[d+632>>2];if(e&4096){yC(d,H[d+388>>2]);e=H[d+632>>2]}h=e&-4097;H[d+632>>2]=h;if(e&8192){cc(d,H[d+504>>2]);h=H[d+632>>2]}e=h&-8193;H[d+632>>2]=e;if(h&8){cc(d,H[d+596>>2]);e=H[d+632>>2]}H[d+632>>2]=e&-9;Bg(d+212|0);cc(d,H[d+544>>2]);l=Ob(i,d,156);m=H[d+164>>2];h=H[d+160>>2];i=H[d+168>>2];e=H[d+676>>2];Nb(d+156|0,0,612);H[d+676>>2]=e;H[d+168>>2]=i;H[d+160>>2]=h;H[d+164>>2]=m;Ob(d,l,156);xb=l+160|0;if(f){Mh(d,f,16384,-1);Ei(f,k,j);H[b>>2]=0}if(g){Mh(d,g,16384,-1);Ei(g,k,j);H[c>>2]=0}Ei(d,k,j);H[a>>2]=0}}function HN(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=H[b+712>>2];a=Nb(a,0,780);H[a+8>>2]=d;H[a+4>>2]=b;F[a+65|0]=1;H[a>>2]=H[b+100>>2];a:{if(!d){break a}b=H[H[d+156>>2]>>2];H[a+12>>2]=b;H[a+20>>2]=b+56;H[a+16>>2]=b+20;Oh(b);H[a+68>>2]=0;H[a+72>>2]=0;if(!c|!e){break a}b=H[H[c+40>>2]>>2];if(!b){break a}H[a+72>>2]=H[b>>2];H[a+68>>2]=H[H[d+156>>2]+36>>2]}H[a+24>>2]=0;H[a+28>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;b=H[7660];H[a+76>>2]=H[7659];H[a+80>>2]=b;b=H[7662];H[a+84>>2]=H[7661];H[a+88>>2]=b;b=H[7664];H[a+92>>2]=H[7663];H[a+96>>2]=b;b=H[7666];H[a+100>>2]=H[7665];H[a+104>>2]=b;H[a+108>>2]=i;b=H[i+120>>2];H[a+732>>2]=b;H[a+748>>2]=H[i+1352>>2];b:{if(H[i+1416>>2]==1){break b}j=107;if(b>>>0<1240){break b}j=b>>>0<33900?1131:32768}H[a+776>>2]=h;H[a+772>>2]=g;H[a+760>>2]=f;H[a+740>>2]=j}function Ida(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;b=H[b+84>>2];f=N(H[b+44>>2],G[c+22>>1]);g=H[d>>2]+e|0;a=H[a+332>>2]+128|0;h=N(H[b+32>>2],J[c+16>>1]);j=N(H[b>>2],J[c>>1]);i=(h+j|0)+4|0;k=N(H[b+40>>2],J[c+20>>1]);l=N(H[b+8>>2],J[c+4>>1]);m=k+l|0;n=i+m<<13;o=N(H[b+12>>2],G[c+6>>1]);p=o+f|0;q=N(H[b+36>>2],G[c+18>>1]);b=N(H[b+4>>2],G[c+2>>1]);c=q+b|0;r=N(p+c|0,4433);c=r+N(c,6270)|0;F[g|0]=I[a+(n+c>>>16&1023)|0];F[g+3|0]=I[a+(n-c>>>16&1023)|0];c=N(p,-15137)+r|0;i=i-m<<13;F[g+1|0]=I[a+(c+i>>>16&1023)|0];F[g+2|0]=I[a+(i-c>>>16&1023)|0];g=o-f|0;f=b-q|0;c=N(g+f|0,4433);b=H[d+4>>2]+e|0;d=c+N(f,6270)|0;e=(j-h|0)+4|0;f=l-k|0;h=e+f<<13;F[b|0]=I[a+(d+h>>>16&1023)|0];F[b+3|0]=I[a+(h-d>>>16&1023)|0];c=c+N(g,-15137)|0;d=e-f<<13;F[b+1|0]=I[a+(c+d>>>16&1023)|0];F[b+2|0]=I[a+(d-c>>>16&1023)|0]}function vM(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;d=H[b>>2]+1|0;a:{if(d>>>0>65535){break a}a=H[a+16>>2];i=a+518|0;j=a+6|0;while(1){b:{e=d>>>0>255;c:{d:{e:{if(!e){c=(d<<1&510)+j|0;a=i;if(!(I[c|0]<<8|I[c+1|0])){break e}break d}a=(d>>>7&33554430)+j|0;a=I[a|0]<<8|I[a+1|0]&248;if(!a){break d}a=a+i|0}c=a;a=I[c+1|0]|I[c|0]<<8;g=I[c+3|0]|I[c+2|0]<<8;f=d&255;h=I[c+6|0];k=I[c+7|0];l=I[c+4|0];m=I[c+5|0];if(!e){e=256;if(f>>>0>=a+g>>>0){break c}}h=h<<8|k;if(!h){if((d|0)!=256){break d}break b}e=(d&-256)+(a>>>0>>0?f:a)|0;a=f-a|0;a=a>>>0>f>>>0?0:a;if(g>>>0>a>>>0){f=l<<8|m;d=c+6+(h+(a<<1))|0;while(1){c=I[d+1|0]|I[d|0]<<8;if(c){c=c+f&65535;if(c){break a}}d=d+2|0;e=e+1|0;a=a+1|0;if(g>>>0>a>>>0){continue}break}}d=e-((g|0)!=0)|0}e=d>>>0<256?d+1|0:d+256&-256}d=e;if(d>>>0<65536){continue}}break}e=0;c=0}H[b>>2]=e;return c|0}function ZU(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{f=H[a+20>>2];if(!f){break a}b=H[a>>2];if(!((b|0)<=0|(b|0)!=H[a+12>>2])){e=H[a+4>>2];b=H[e+20>>2];if(b){Kb(b)}b=H[e+4>>2];b:{if(!b){d=H[e+8>>2];if((e|0)==H[d>>2]){break b}c=e+8|0;while(1){b=H[c>>2];c=b+8|0;d=H[b+8>>2];if((b|0)!=H[d>>2]){continue}break}break b}while(1){d=b;b=H[b>>2];if(b){continue}break}}if((e|0)==H[a+4>>2]){H[a+4>>2]=d}H[a+12>>2]=H[a+12>>2]-1;pj(H[a+8>>2],e);Kb(e);f=H[a+20>>2]}e=H[a+16>>2];d=a+8|0;b=H[d>>2];c:{if(b){d=a+8|0;while(1){c=H[b+16>>2];d:{if((c|0)>(e|0)){c=H[b>>2];if(c){break d}d=b;break c}if((c|0)>=(e|0)){break c}d=b+4|0;c=H[b+4>>2];if(!c){break c}b=d}d=b;b=c;continue}}b=d}if(H[d>>2]){break a}c=Qb(24);H[c+16>>2]=e;H[c+8>>2]=b;H[c>>2]=0;H[c+4>>2]=0;H[c+20>>2]=f;H[d>>2]=c;b=H[H[a+4>>2]>>2];if(b){H[a+4>>2]=b;c=H[d>>2]}Og(H[a+8>>2],c);H[a+12>>2]=H[a+12>>2]+1}}function jD(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;a:{if((c|0)<=0){break a}i=d-8|0;j=d+7|0;f=c-1|0;c=0;if((d|0)<=15){k=16-d|0;while(1){g=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);h=g<<24|g<<8&16711680|(g>>>8&65280|g>>>24);g=c+d|0;h=h>>>32-g<>>8)&65535)>>>k<<2)+e|0;F[a|0]=I[h|0];F[a+1|0]=I[h+1|0];F[a+2|0]=I[h+2|0];b:{if((g|0)<8){c=g;break b}g=(c+j|0)-((g|0)<15?g:15)|0;c=(c+i|0)-(g&-8)|0;b=b+1+(g>>>3)|0}a=a+3|0;g=(f|0)>0;f=f-1|0;if(g){continue}break}break a}while(1){g=f;f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);h=f<<24|f<<8&16711680|(f>>>8&65280|f>>>24);f=c+d|0;h=h>>>32-f|0;h=(((h<<8|(h&65280)>>>8)&65535)<<2)+e|0;F[a|0]=I[h|0];F[a+1|0]=I[h+1|0];F[a+2|0]=I[h+2|0];c:{if((f|0)>=8){f=(c+j|0)-((f|0)<15?f:15)|0;c=(c+i|0)-(f&-8)|0;b=b+1+(f>>>3)|0;break c}c=f}a=a+3|0;f=g-1|0;if((g|0)>0){continue}break}}}function Al(a,b,c){a:{switch(c-1|0){case 0:H[b>>2]=H[a+4>>2];return;case 1:H[b>>2]=H[a+4>>2]+H[a+12>>2];H[b+4>>2]=H[a+8>>2]+H[a+12>>2];return;case 2:H[b>>2]=H[a+4>>2]+(H[a+12>>2]+(H[a+20>>2]+H[a+28>>2]|0)|0);H[b+4>>2]=H[a+8>>2]+(H[a+12>>2]+(H[a+24>>2]+H[a+28>>2]|0)|0);H[b+8>>2]=H[a+16>>2]+(H[a+20>>2]+(H[a+24>>2]+H[a+28>>2]|0)|0);return;default:break a}}H[b>>2]=H[a+4>>2]+(H[a+12>>2]+(H[a+20>>2]+(H[a+28>>2]+(H[a+36>>2]+(H[a+44>>2]+(H[a+52>>2]+H[a+60>>2]|0)|0)|0)|0)|0)|0);H[b+4>>2]=H[a+8>>2]+(H[a+12>>2]+(H[a+24>>2]+(H[a+28>>2]+(H[a+40>>2]+(H[a+44>>2]+(H[a+56>>2]+H[a+60>>2]|0)|0)|0)|0)|0)|0);H[b+8>>2]=H[a+16>>2]+(H[a+20>>2]+(H[a+24>>2]+(H[a+28>>2]+(H[a+48>>2]+(H[a+52>>2]+(H[a+56>>2]+H[a+60>>2]|0)|0)|0)|0)|0)|0);H[b+12>>2]=H[a+32>>2]+(H[a+36>>2]+(H[a+40>>2]+(H[a+44>>2]+(H[a+48>>2]+(H[a+52>>2]+(H[a+56>>2]+H[a+60>>2]|0)|0)|0)|0)|0)|0)}function zk(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;e=xb-16|0;xb=e;a:{b:{c:{if(!c){H[a>>2]=0;F[a+11|0]=0;break c}d=c+1|0;g=Qb((d|0)!=(d&1073741823)?-1:d<<2);d:{if((c|0)>0){d=0;h=g;while(1){e:{f=d+1|0;i=J[(d<<1)+b>>1];f:{g:{if((i- -8192&65535)>>>0<63488){d=f;break g}if((c|0)<=(f|0)){break e}d=d+2|0;f=J[(f<<1)+b>>1];if((f&64512)!=56320){break f}i=(i<<10&1047552|f&1023)+65536|0}H[h>>2]=i;h=h+4|0}if((c|0)>(d|0)){continue}}break}if((g|0)!=(h|0)){break d}}H[a>>2]=0;F[a+11|0]=0;break c}b=h-g|0;if((b|0)<0){break b}c=b>>2;h:{if(b>>>0>=8){d=c+4&-4;b=Qb(d<<2);H[e+8>>2]=d|-2147483648;H[e>>2]=b;H[e+4>>2]=c;break h}F[e+11|0]=c;b=e}H[197455]=0;Mb(b,g,c);d=H[197455];H[197455]=0;if((d|0)==1){break a}H[(c<<2)+b>>2]=0;Kb(g);H[a+8>>2]=H[e+8>>2];b=H[e+4>>2];H[a>>2]=H[e>>2];H[a+4>>2]=b}xb=e+16|0;return}qd(e);X()}ha(0)|0;_()|0;Zb();X()}function mc(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;c=H[a+272>>2];a:{if(c>>>0>=b>>>0){break a}e=H[a+268>>2];vd(a,e,c);xc(a,e,c);b=b-c|0;if(c>>>0>=b>>>0){break a}while(1){e=H[a+268>>2];f=H[a+272>>2];vd(a,e,f);xc(a,e,f);b=b-c|0;if(c>>>0>>0){continue}break}}if(b){c=H[a+268>>2];vd(a,c,b);xc(a,c,b)}b=H[a+204>>2];b:{c:{d:{if(I[a+351|0]&32){H[a+744>>2]=129;vd(a,d+12|0,4);if((b&768)==768){break d}break c}H[a+744>>2]=129;vd(a,d+12|0,4);if(!(b&2048)){break c}}b=0;break b}b=0;c=I[d+12|0]|I[d+13|0]<<8|(I[d+14|0]<<16|I[d+15|0]<<24);if(H[a+384>>2]==(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))){break b}c=H[a+204>>2];e:{f:{if(I[a+351|0]&32){if(!(c&512)){break f}break e}if(!(c&1024)){break e}}AC(a,259660);b=1;break b}c=xb-96|0;xb=c;g:{if(I[a+206|0]&128){Mq(H[a+348>>2],c,259660);Xb(a,c);xb=c+96|0;break g}Qk(a,259660);X()}}xb=d+16|0;return b}function Uc(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=H[a+608>>2];if((b|0)>0){c=H[a+12>>2];if(!(c&(J[a+94>>1]|256))){wq(H[a+596>>2],b);c=H[a+12>>2];b=H[a+608>>2]}g=H[a+596>>2];f=xb-32|0;xb=f;c=H[(c&1024?504:480)+a>>2];d=c<<2;e=H[d+H[a+184>>2]>>2];a:{if(!(H[a+484>>2]?e:0)){d=H[d+H[a+188>>2]>>2];b:{if(!(!d|!e|b>>>0>d>>>0)){d=0;e=zb[H[a+640>>2]](H[a+628>>2],e,0)|0;if((e|0)==H[H[a+184>>2]+(c<<2)>>2]){break b}b=H[a+628>>2];H[f+16>>2]=H[a+472>>2];Pb(b,291584,278564,f+16|0);break a}e=zb[H[a+640>>2]](H[a+628>>2],0,2)|0;H[H[a+184>>2]+(c<<2)>>2]=e}H[a+484>>2]=e;H[H[a+188>>2]+(c<<2)>>2]=0}if((zb[H[a+636>>2]](H[a+628>>2],g,b)|0)!=(b|0)){b=H[a+628>>2];H[f>>2]=H[a+472>>2];Pb(b,291584,278871,f);d=0;break a}H[a+484>>2]=H[a+484>>2]+b;c=H[a+188>>2]+(c<<2)|0;H[c>>2]=H[c>>2]+b;d=1}xb=f+32|0;if(!d){return 0}H[a+608>>2]=0;H[a+604>>2]=H[a+596>>2]}return 1}function t8(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=H[a+584>>2];b=H[c+884>>2];a:{if((b|0)>0){b:{d=H[c+76>>2];if((d|0)<=0){break b}e=H[c+84>>2];while(1){f=H[e+12>>2];b=N(f,b);f=f<<3;if((b|0)<(f|0)){d=H[e+28>>2]<<3;i=(g<<2)+c|0;while(1){h=H[i+844>>2]+(b<<2)|0;Kc(H[h>>2],H[h-4>>2],d);b=b+1|0;if((f|0)!=(b|0)){continue}break}d=H[c+76>>2]}g=g+1|0;if((g|0)>=(d|0)){break b}e=e+88|0;b=H[c+884>>2];continue}}e=0;b=c;d=c+844|0;c=H[c+272>>2]<<3;if((XA(b,d,c)|0)!=(c|0)){break a}c=H[a+584>>2]}b=0;a=Tb(40);H[a>>2]=0;a=sd(c+624|0,1,a,4);f=_()|0;c:{d:{while(1){if(b){break c}H[197455]=0;ia(1003,c|0);b=H[197455];H[197455]=0;if((b|0)==1){e=$()|0;Kb(a);ea(e|0);X()}d=-1;e:{f:{if(!b){break f}g=H[197456];if(!g){break f}d=Sb(H[b>>2],a,f);if(!d){break e}ja(g|0)}b=_()|0;if((d|0)!=1){break d}continue}break}Kb(a);ed(b,g);X()}e=1}Kb(a)}return e|0}function nia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{d=H[a+4>>2];h=H[a>>2];f=(d-h|0)/20|0;c=f+1|0;if(c>>>0<214748365){g=(H[a+8>>2]-h|0)/20|0;e=g<<1;c=g>>>0<107374182?c>>>0>>0?e:c:214748364;if(c>>>0>=214748365){break a}e=N(f,20);f=N(c,20);g=Qb(f);c=e+g|0;e=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=e;H[c+8>>2]=H[b+8>>2];H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;e=H[b+16>>2];H[c+12>>2]=H[b+12>>2];H[c+16>>2]=e;e=c+20|0;if((d|0)!=(h|0)){while(1){d=d-20|0;b=H[d+4>>2];c=c-20|0;H[c>>2]=H[d>>2];H[c+4>>2]=b;H[c+8>>2]=H[d+8>>2];H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;b=H[d+16>>2];H[c+12>>2]=H[d+12>>2];H[c+16>>2]=b;if((d|0)!=(h|0)){continue}break}d=H[a>>2]}H[a>>2]=c;H[a+8>>2]=f+g;b=H[a+4>>2];H[a+4>>2]=e;if((b|0)!=(d|0)){while(1){a=b-20|0;if(F[b-9|0]<0){Kb(H[a>>2])}b=a;if((b|0)!=(d|0)){continue}break}}if(d){Kb(d)}return}bd(a);X()}Td(239085);X()}function n4(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;var h=0;h=xb-32|0;xb=h;H[h+24>>2]=d;H[h+28>>2]=c;H[h+20>>2]=e;c=H[g+4>>2]-H[g>>2]|0;H[h+16>>2]=c+40;c=c+68|0;H[h+12>>2]=c;H[h+8>>2]=72;H[a+8>>2]=c+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],h+8|0,4);Lb(H[a+4>>2],h+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],h+16|0,4);Lb(H[a+4>>2],h+28|0,4);Lb(H[a+4>>2],h+24|0,4);Lb(H[a+4>>2],h+20|0,4);Lb(H[a+4>>2],f,4);Lb(H[a+4>>2],f+4|0,4);Lb(H[a+4>>2],f+8|0,4);Lb(H[a+4>>2],f+12|0,4);Lb(H[a+4>>2],f+16|0,4);Lb(H[a+4>>2],f+20|0,4);Lb(H[a+4>>2],f+24|0,4);Lb(H[a+4>>2],f+28|0,4);f=H[g>>2];b=H[g+4>>2];if((f|0)!=(b|0)){while(1){Lb(H[a+4>>2],f,4);Lb(H[a+4>>2],f+4|0,4);Lb(H[a+4>>2],f+8|0,4);Lb(H[a+4>>2],f+12|0,4);f=f+16|0;if((b|0)!=(f|0)){continue}break}}xb=h+32|0}function wz(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;c=H[a+208>>2];if(c){zb[H[H[c>>2]+4>>2]](c);H[a+208>>2]=0}c=Qb(16);H[197455]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=400108;f=H[197455];H[197455]=0;if((f|0)!=1){a:{if(!b){break a}f=Qb(8);H[197455]=0;H[f+4>>2]=b;H[f>>2]=401052;b=H[197455];H[197455]=0;b:{c:{if((b|0)!=1){b=H[c+8>>2];d=H[c+12>>2];if(b>>>0>>0){H[b>>2]=f;H[c+8>>2]=b+4;break a}e=c+4|0;g=H[e>>2];h=b-g|0;i=h>>2;b=i+1|0;if(b>>>0>=1073741824){break c}d=d-g|0;e=d>>1;d=d>>>0<2147483644?b>>>0>>0?e:b:1073741823;if(d){if(d>>>0>=1073741824){break b}b=Qb(d<<2)}else{b=0}e=b+(i<<2)|0;H[e>>2]=f;if((h|0)>0){Ob(b,g,h)}H[c+12>>2]=b+(d<<2);H[c+8>>2]=e+4;H[c+4>>2]=b;if(!g){break a}Kb(g);break a}a=$()|0;_()|0;Kb(f);ea(a|0);X()}bd(e);X()}Td(400840);X()}H[a+208>>2]=c;return}a=$()|0;_()|0;Kb(c);ea(a|0);X()}function rs(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=H[b+4>>2];a:{if(i>>>0>a>>>0){break a}f=H[b+8>>2];if(f>>>0>>0){break a}c=f-a|0;if(c>>>0<4){break a}d=H[b+12>>2];e=d-4|0;H[b+12>>2]=e;if((I[a|0]|I[a+1|0]<<8)!=256|(e|0)<=0|c>>>0<16){break a}d=d-20|0;H[b+12>>2]=d;if((I[a+10|0]|I[a+11|0]<<8)!=5120|(d|0)<=0){break a}c=I[a+14|0]|I[a+15|0]<<8;j=(c<<8|c>>>8)&65535;h=I[a+8|0]|I[a+9|0]<<8;g=(h<<8|h>>>8)&65535;if(j>>>0<(g<<2)+4>>>0){break a}e=I[a+4|0]|I[a+5|0]<<8;if(e){c=((e<<8|e>>>8)&65535)+a|0}else{c=163632}g=N(g,20);if(h){if(c>>>0>>0|c>>>0>f>>>0|g>>>0>f-c>>>0){break a}d=d-g|0;H[b+12>>2]=d;if((d|0)<=0){break a}}c=I[a+12|0]|I[a+13|0]<<8;h=(c<<8|c>>>8)&65535;a=c?g+(e?((e<<8|e>>>8)&65535)+a|0:163632)|0:0;c=N(h,j);if(!c){return 1}if(a>>>0>>0|a>>>0>f>>>0|c>>>0>f-a>>>0){break a}a=d-c|0;H[b+12>>2]=a;k=(a|0)>0}return k}function _D(a,b){var c=0,d=0,e=0,f=0,g=0;e=-2;a:{if(!a|!H[a+32>>2]){break a}d=H[a+36>>2];if(!d){break a}c=H[a+28>>2];if(!c|H[c>>2]!=(a|0)|H[c+4>>2]-16180>>>0>31){break a}if((b|0)<0){b=0-b|0}else{f=(b>>>4|0)+5|0;b=b>>>0<48?b&15:b}if(b?b-8>>>0>=8:0){break a}g=H[c+56>>2];b:{if(!(H[c+40>>2]!=(b|0)?g:0)){H[c+40>>2]=b;H[c+12>>2]=f;break b}zb[d|0](H[a+40>>2],g);H[c+56>>2]=0;d=H[a+32>>2];H[c+40>>2]=b;H[c+12>>2]=f;if(!d){break a}}if(!H[a+36>>2]){break a}b=H[a+28>>2];if(!b|H[b>>2]!=(a|0)|H[b+4>>2]-16180>>>0>31){break a}e=0;H[b+52>>2]=0;H[b+44>>2]=0;H[b+48>>2]=0;H[b+32>>2]=0;H[a+8>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;c=H[b+12>>2];if(c){H[a+48>>2]=c&1}H[b+60>>2]=0;H[b+64>>2]=0;H[b+36>>2]=0;H[b+24>>2]=32768;H[b+16>>2]=0;H[b+4>>2]=16180;H[b+8>>2]=0;H[b+7108>>2]=1;H[b+7112>>2]=-1;a=b+1332|0;H[b+112>>2]=a;H[b+84>>2]=a;H[b+80>>2]=a}return e}function lg(a,b){a=a|0;b=b|0;var c=0,d=0,e=O(0),f=0;f=H[a+8>>2];c=H[a+4>>2];if(f>>>0<=c+3>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+8>>3]=d;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+16>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+24>>3]=d;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+32>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[a+4>>2]=c+4;d=+e}else{d=0}M[b+40>>3]=d;return a|0}function QK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=H[a+872>>2];if(!i){return 0}f=H[e+8>>2];a:{b:{if(f){g=H[e>>2];b=H[e+4>>2];break b}f=0;H[e+4>>2]=0;g=J[i+2>>1];if(!g){break a}g=g-1|0;l=H[i+8>>2]+2|0;c:{while(1){k=((g-f|0)/2|0)+f|0;h=N(k,6)+l|0;j=h-2|0;j=I[j|0]<<8|I[j+1|0];d:{if(j>>>0>>0){f=k+1|0;break d}if(b>>>0>=j>>>0){break c}g=k-1|0}if((f|0)<=(g|0)){continue}break}return 0}f=0;b=I[h+2|0]|I[h+3|0]<<8;g=(b<<8|b>>>8)&65535;if(!g){break a}b=I[h+1|0];h=I[h|0];H[e>>2]=g;b=b|h<<8;if(K[i+20>>2]>>0){break a}f=H[i+12>>2]+(b<<2)|0;H[e+8>>2]=f;b=0}if(b>>>0>=g>>>0){return 0}H[e+8>>2]=f+2;H[c>>2]=I[f+1|0]|I[f|0]<<8;H[e+8>>2]=f+4;b=I[f+3|0]|I[f+2|0]<<8;H[d>>2]=b;if(K[c>>2]>=K[a+16>>2]){return 0}if((b|0)!=65535){f=0;if(b>>>0>=J[a+660>>1]){break a}}f=1;H[e+4>>2]=H[e+4>>2]+1}return f|0}function $w(a,b){var c=0,d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;c=H[a>>2];H[d+12>>2]=c;a:{b:{if(b>>>0<=c>>>0){break b}while(1){e=0;c:{d:{e:{f:{g:{h:{g=I[c|0];switch(g-37|0){case 1:case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:break c;case 0:break e;case 23:break f;case 3:break g;default:break h}}i:{switch(g-123|0){case 0:f=f+1|0;break d;case 2:break i;default:break c}}f=f-1|0;if(f){break c}c=c+1|0;break b}e=cp(d+12|0,b);break c}e=Xw(d+12|0,b);break c}e=37;while(1){j:{k:{switch((e&255)-10|0){default:c=c+1|0;if((c|0)!=(b|0)){break j}c=b;break;case 0:case 3:break k}}H[d+12>>2]=c;break d}e=I[c|0];continue}}e=0}c=H[d+12>>2]+1|0;H[d+12>>2]=c;if(e?0:b>>>0>c>>>0){continue}break}b=3;if(f){break a}}b=e}H[a>>2]=c;xb=d+16|0;return b}function hG(a,b){var c=0,d=0,e=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=b;H[a+32>>2]=b;a:{b:{c:{d:{while(1){F[a+24|0]=c;e=H[d+12>>2];H[a+4>>2]=e;c=H[d+16>>2];H[a+8>>2]=c+e;H[a+28>>2]=0;if(c>>>0<=67108862){c=c<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}else{c=1073741823}H[a+12>>2]=c;H[a+20>>2]=0;H[a>>2]=0;if(!e){Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b}c=gG(e,a);d=H[a+28>>2];e:{if(c){if(!d){break e}H[a+28>>2]=0;d=gG(e,a);e=H[a+28>>2];Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(!d){break a}if(!e){break d}break a}if(I[a+24|0]|!d){break c}e=ve(b);H[a+4>>2]=e;H[a+8>>2]=e+H[b+16>>2];d=H[a+32>>2];c=1;if(e){continue}break b}break}Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}return b}d=H[a+32>>2]}Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function Yj(a){var b=0,c=0;b=oc(1,172);a:{if(!b){c=H[195767];b=783056;break a}H[b+8>>2]=0;H[b>>2]=1;H[b+4>>2]=1;H[b+148>>2]=1073741823;H[b+152>>2]=536870911;Pj(0);c=cE();if(!(!c|!H[c>>2])){H[c>>2]=H[c>>2]+1}H[b+28>>2]=0;H[b+32>>2]=0;H[b+24>>2]=65533;H[b+16>>2]=0;H[b+20>>2]=0;H[b+12>>2]=c;H[b+36>>2]=0;H[b+40>>2]=0;H[b+44>>2]=0;H[b+48>>2]=0;H[b+52>>2]=0;H[b+56>>2]=0;H[b+72>>2]=0;H[b+64>>2]=0;H[b+68>>2]=0;F[b+62|0]=0;G[b+60>>1]=1;H[b+144>>2]=0;H[b+92>>2]=0;H[b+96>>2]=0;H[b+100>>2]=0;H[b+104>>2]=0;H[b+108>>2]=0;H[b+112>>2]=0;H[b+116>>2]=0;H[b+120>>2]=0;H[b+124>>2]=0;H[b+128>>2]=0;H[b+132>>2]=0;H[b+136>>2]=0;F[b+140|0]=0;H[b+84>>2]=H[b+80>>2]}Pj(c);c=H[a+12>>2];if(!(!c|!H[c>>2])){H[c>>2]=H[c>>2]+1}H[b+12>>2]=c;H[b+16>>2]=H[a+16>>2];H[b+20>>2]=H[a+20>>2];c=H[a+28>>2];H[b+28>>2]=c;H[b+24>>2]=c;H[b+32>>2]=H[a+32>>2];return b}function XL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=a+16|0;if(c>>>0>K[b+160>>2]){vc(b,8)}d=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);g=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);d=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);d=d<<8&16711680|d<<24|(d>>>8&65280|d>>>24);if(!(!(d>>>0<16|d>>>0>H[b+160>>2]-a>>>0)&(d-16>>>0)/12>>>0>=g>>>0)){vc(b,8)}if(g){a=0;while(1){d=a;f=I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24);a=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(a>>>0>>0){vc(b,8)}if(!(!h|d>>>0>>0)){vc(b,8)}if(!(H[b+164>>2]<=0|K[b+172>>2]>(f<<8&16711680|f<<24|(f>>>8&65280|f>>>24))>>>0)){vc(b,16)}c=c+12|0;h=h+1|0;if((h|0)!=(g|0)){continue}break}}return 0}function Jt(a,b){var c=0,d=0,e=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=b;H[a+32>>2]=b;a:{b:{c:{d:{while(1){F[a+24|0]=c;e=H[d+12>>2];H[a+4>>2]=e;c=H[d+16>>2];H[a+8>>2]=c+e;H[a+28>>2]=0;if(c>>>0<=67108862){c=c<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}else{c=1073741823}H[a+12>>2]=c;H[a+20>>2]=0;H[a>>2]=0;if(!e){Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b}c=zt(e,a);d=H[a+28>>2];e:{if(c){if(!d){break e}H[a+28>>2]=0;d=zt(e,a);e=H[a+28>>2];Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(!d){break a}if(!e){break d}break a}if(I[a+24|0]|!d){break c}e=ve(b);H[a+4>>2]=e;H[a+8>>2]=e+H[b+16>>2];d=H[a+32>>2];c=1;if(e){continue}break b}break}Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}return b}d=H[a+32>>2]}Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function It(a,b){var c=0,d=0,e=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=b;H[a+32>>2]=b;a:{b:{c:{d:{while(1){F[a+24|0]=c;e=H[d+12>>2];H[a+4>>2]=e;c=H[d+16>>2];H[a+8>>2]=c+e;H[a+28>>2]=0;if(c>>>0<=67108862){c=c<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}else{c=1073741823}H[a+12>>2]=c;H[a+20>>2]=0;H[a>>2]=0;if(!e){Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b}c=ut(e,a);d=H[a+28>>2];e:{if(c){if(!d){break e}H[a+28>>2]=0;d=ut(e,a);e=H[a+28>>2];Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(!d){break a}if(!e){break d}break a}if(I[a+24|0]|!d){break c}e=ve(b);H[a+4>>2]=e;H[a+8>>2]=e+H[b+16>>2];d=H[a+32>>2];c=1;if(e){continue}break b}break}Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}return b}d=H[a+32>>2]}Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function Ht(a,b){var c=0,d=0,e=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=b;H[a+32>>2]=b;a:{b:{c:{d:{while(1){F[a+24|0]=c;e=H[d+12>>2];H[a+4>>2]=e;c=H[d+16>>2];H[a+8>>2]=c+e;H[a+28>>2]=0;if(c>>>0<=67108862){c=c<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}else{c=1073741823}H[a+12>>2]=c;H[a+20>>2]=0;H[a>>2]=0;if(!e){Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b}c=mt(e,a);d=H[a+28>>2];e:{if(c){if(!d){break e}H[a+28>>2]=0;d=mt(e,a);e=H[a+28>>2];Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(!d){break a}if(!e){break d}break a}if(I[a+24|0]|!d){break c}e=ve(b);H[a+4>>2]=e;H[a+8>>2]=e+H[b+16>>2];d=H[a+32>>2];c=1;if(e){continue}break b}break}Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}return b}d=H[a+32>>2]}Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function Dt(a,b){var c=0,d=0,e=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}d=b;H[a+32>>2]=b;a:{b:{c:{d:{while(1){F[a+24|0]=c;e=H[d+12>>2];H[a+4>>2]=e;c=H[d+16>>2];H[a+8>>2]=c+e;H[a+28>>2]=0;if(c>>>0<=67108862){c=c<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}else{c=1073741823}H[a+12>>2]=c;H[a+20>>2]=0;H[a>>2]=0;if(!e){Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b}c=Ct(e,a);d=H[a+28>>2];e:{if(c){if(!d){break e}H[a+28>>2]=0;d=Ct(e,a);e=H[a+28>>2];Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(!d){break a}if(!e){break d}break a}if(I[a+24|0]|!d){break c}e=ve(b);H[a+4>>2]=e;H[a+8>>2]=e+H[b+16>>2];d=H[a+32>>2];c=1;if(e){continue}break b}break}Wb(H[a+32>>2]);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}if(H[b+4>>2]){H[b+4>>2]=0}return b}d=H[a+32>>2]}Wb(d);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function hu(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;l=H[a+12>>2];e=H[l>>2];h=b>>>0>e>>>0?e:b;if(h){b=H[l+12>>2];while(1){j=H[b+12>>2];e=j;k=i<<2;f=H[k+c>>2];if((e|0)>=(f|0)){e=H[b+4>>2];e=(e|0)<(f|0)?f:e}f=H[b+8>>2];a:{if((f|0)>(e|0)){g=0-dc(e-f|0,H[b+4>>2]-f|0)|0;break a}g=0;if((e|0)<=(f|0)){break a}g=dc(e-f|0,j-f|0)}H[d+k>>2]=g;b=b+24|0;i=i+1|0;if((h|0)!=(i|0)){continue}break}e=H[l>>2]}if(e>>>0>h>>>0){Nb((h<<2)+d|0,0,e-h<<2)}a=H[a+28>>2];if(!(!a|!e)){c=0;while(1){g=J[a>>1];b:{if(g>>>0<2){break b}i=(c<<2)+d|0;f=H[i>>2];h=H[a+4>>2];b=1;while(1){j=b<<3;k=j+h|0;m=H[k>>2];if((f|0)<(m|0)){g=f;b=j-8|0;e=b+h|0;f=H[e>>2];n=i,o=ic(g-f|0,H[k+4>>2]-H[e+4>>2]|0,m-f|0)+H[(b+H[a+4>>2]|0)+4>>2]|0,H[n>>2]=o;e=H[l>>2];break b}b=b+1|0;if((g|0)!=(b|0)){continue}break}}a=a+8|0;c=c+1|0;if(e>>>0>c>>>0){continue}break}}}function MS(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;h=xb-32|0;xb=h;a:{b:{c:{if((b|0)!=(c|0)){j=H[197018];H[197018]=0;g=xb-16|0;xb=g;Od();e=xb-16|0;xb=e;f=xb-16|0;xb=f;up(f,b,h+28|0,2);k=H[f>>2];i=H[f+4>>2];b=H[f+12>>2];H[e+8>>2]=H[f+8>>2];H[e+12>>2]=b;H[e>>2]=k;H[e+4>>2]=i;xb=f+16|0;i=H[e>>2];f=H[e+4>>2];b=H[e+12>>2];H[g+8>>2]=H[e+8>>2];H[g+12>>2]=b;H[g>>2]=i;H[g+4>>2]=f;xb=e+16|0;f=H[g>>2];e=H[g+4>>2];b=H[g+12>>2];H[h+16>>2]=H[g+8>>2];H[h+20>>2]=b;H[h+8>>2]=f;H[h+12>>2]=e;xb=g+16|0;i=H[h+16>>2];f=H[h+20>>2];g=H[h+8>>2];e=H[h+12>>2];b=H[197018];if(!b){break c}if(H[h+28>>2]!=(c|0)){break b}l=g;m=e;n=i;o=f;if((b|0)!=68){break a}break b}H[d>>2]=4;break a}H[197018]=j;if(H[h+28>>2]==(c|0)){break a}}H[d>>2]=4;g=l;e=m;i=n;f=o}H[a>>2]=g;H[a+4>>2]=e;H[a+8>>2]=i;H[a+12>>2]=f;xb=h+32|0}function Fu(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=H[a+28>>2];a:{if((b|0)==-1){break a}e=H[a+36>>2];h=H[a+40>>2];if(e>>>0>=h>>>0){break a}j=H[a>>2];d=b+1|0;k=H[a+16>>2]+20|0;while(1){b:{c=N(e,12)+k|0;b=c-4|0;b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);d=d>>>0>f>>>0?d:f;b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);g=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(d>>>0>g>>>0){break b}b=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);i=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);b=g+1|0;c:{while(1){c=d-f|0;if((c^-1)>>>0>>0){break b}c=c+i|0;if(c){break c}if((d|0)==-1){break a}c=(d|0)==(g|0);d=d+1|0;if(!c){continue}break}d=b;break b}if(c>>>0>=K[j+16>>2]){break b}H[a+36>>2]=e;H[a+32>>2]=c;H[a+28>>2]=d;return}e=e+1|0;if((h|0)!=(e|0)){continue}break}}F[a+24|0]=0}function ph(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,m=0;k=xb-16|0;xb=k;F[k+15|0]=a;a:{b:{c:{if(H[d>>2]!=(c|0)){break c}l=43;m=a&255;if((m|0)!=I[j+24|0]){l=45;if(I[j+25|0]!=(m|0)){break c}}H[d>>2]=c+1;F[c|0]=l;break b}if(I[g+11|0]>>>7|0){g=H[g+4>>2]}else{g=I[g+11|0]}if(!(!g|(a|0)!=(f|0))){a=0;b=H[i>>2];if((b-h|0)>159){break a}a=H[e>>2];H[i>>2]=b+4;H[b>>2]=a;break b}a=-1;f=Zo(j,j+26|0,k+15|0)-j|0;if((f|0)>23){break a}d:{e:{switch(b-8|0){case 0:case 2:if((b|0)>(f|0)){break d}break a;case 1:break d;default:break e}}if((b|0)!=16|(f|0)<22){break d}b=H[d>>2];if((b|0)==(c|0)|(b-c|0)>2|I[b-1|0]!=48){break a}a=0;H[e>>2]=0;H[d>>2]=b+1;F[b|0]=I[f+773072|0];break a}a=H[d>>2];H[d>>2]=a+1;F[a|0]=I[f+773072|0];H[e>>2]=H[e>>2]+1;a=0;break a}a=0;H[e>>2]=0}xb=k+16|0;return a|0}function oh(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=xb-16|0;xb=k;H[k+12>>2]=a;a:{b:{c:{if(H[d>>2]!=(c|0)){break c}l=43;if(H[j+96>>2]!=(a|0)){l=45;if(H[j+100>>2]!=(a|0)){break c}}H[d>>2]=c+1;F[c|0]=l;break b}if(I[g+11|0]>>>7|0){g=H[g+4>>2]}else{g=I[g+11|0]}if(!(!g|(a|0)!=(f|0))){a=0;b=H[i>>2];if((b-h|0)>159){break a}a=H[e>>2];H[i>>2]=b+4;H[b>>2]=a;break b}a=-1;g=Wo(j,j+104|0,k+12|0)-j|0;if((g|0)>92){break a}f=g>>2;d:{e:{switch(b-8|0){case 0:case 2:if((b|0)>(f|0)){break d}break a;case 1:break d;default:break e}}if((b|0)!=16|(g|0)<88){break d}b=H[d>>2];if((b|0)==(c|0)|(b-c|0)>2|I[b-1|0]!=48){break a}a=0;H[e>>2]=0;H[d>>2]=b+1;F[b|0]=I[f+773072|0];break a}a=H[d>>2];H[d>>2]=a+1;F[a|0]=I[f+773072|0];H[e>>2]=H[e>>2]+1;a=0;break a}a=0;H[e>>2]=0}xb=k+16|0;return a|0}function ht(a,b){var c=0,d=0,e=0,f=0;a:{d=H[b+4>>2];if(d>>>0>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<12){break a}e=H[b+12>>2];f=e-12|0;H[b+12>>2]=f;if((I[a|0]|I[a+1|0]<<8)!=256|(f|0)<=0){break a}f=d;d=a+6|0;if(f>>>0>d>>>0|c>>>0>>0|c-d>>>0<2){break a}c=e-14|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[d|0]|I[d+1|0]<<8;b:{if(!c){break b}if(gt(((c<<8|c>>>8)&65535)+a|0,b,a)){break b}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}d=a+8|0;if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break a}e=H[b+12>>2]-2|0;H[b+12>>2]=e;c=1;if((e|0)<=0){break a}e=I[d|0]|I[d+1|0]<<8;c:{if(!e){break c}if(gt(((e<<8|e>>>8)&65535)+a|0,b,a)){break c}a=H[b+28>>2];if(a>>>0>31){break a}H[b+28>>2]=a+1;c=0;if(!I[b+24|0]){break c}F[d|0]=0;F[d+1|0]=0;c=1}return c}return 0}function X7(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=xb-48|0;xb=h;d=1;a:{if((c|0)<=0){break a}d=H[a+604>>2];f=H[a+608>>2];while(1){g=f;b:{c:{d:{e:{while(1){i=d;j=g;if((g|0)<=0){break d}g=j-1|0;d=i+1|0;e=I[i|0];k=e<<24>>24;if((k|0)>=0){break e}if((k|0)==-128){continue}break}e=1-k|0;if((e|0)<=(c|0)){f=j-2|0;g=i+2|0;break c}g=H[a>>2];f=H[a+628>>2];H[h>>2]=e-c;sc(f,g,270396,h);f=j-2|0;g=i+2|0;e=c;if((e|0)>0){break c}break b}if((c|0)<=(e|0)){f=H[a>>2];i=H[a+628>>2];H[h+16>>2]=(e-c|0)+1;sc(i,f,270396,h+16|0);e=c-1|0}e=e+1|0;Kc(b,d,e);f=g-e|0;b=b+e|0;g=d+e|0;break b}H[a+604>>2]=i;H[a+608>>2]=f>>31&f;b=H[a+628>>2];c=H[a>>2];H[h+32>>2]=H[a+472>>2];Pb(b,c,271460,h+32|0);d=0;break a}b=Nb(b,I[d|0],e)+e|0}d=g;c=c-e|0;if((c|0)>0){continue}break}H[a+608>>2]=f;H[a+604>>2]=d;d=1}xb=h+48|0;return d|0}function Yw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=xb-1040|0;xb=g;h=H[b>>2];H[g+12>>2]=h;f=a?d:256;j=a?a:g+16|0;d=0;a:{b:{c:{if(!(!h|!f)){while(1){i=c>>>2|0;if(!(c>>>0>131|i>>>0>=f>>>0)){i=f;break b}k=xp(j,g+12|0,f>>>0>i>>>0?i:f,e);if((k|0)==-1){d=-1;i=0;h=H[g+12>>2];break c}l=(g+16|0)==(j|0)?0:k;i=f-l|0;j=(l<<2)+j|0;c=c+h|0;h=H[g+12>>2];c=h?c-h|0:0;d=d+k|0;if(!h){break c}k=(f|0)!=(l|0);f=i;if(k){continue}break}break c}i=f}if(!h){break a}}if(!i|!c){break a}f=d;while(1){d:{d=sk(j,h,c,e);e:{if(d+2>>>0<=2){f:{switch(d+1|0){case 1:H[g+12>>2]=0;break e;case 0:break a;default:break f}}H[e>>2]=0;break e}h=H[g+12>>2]+d|0;H[g+12>>2]=h;f=f+1|0;i=i-1|0;if(i){break d}}d=f;break a}j=j+4|0;k=(c|0)!=(d|0);c=c-d|0;d=f;if(k){continue}break}}if(a){H[b>>2]=H[g+12>>2]}xb=g+1040|0;return d|0}function Tka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=I[a+2|0]|I[a+3|0]<<8;if(c){e=((c<<8|c>>>8)&65535)+a|0}else{e=163632}c=H[b+100>>2];c=Gc(e,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);a:{if((c|0)==-1){break a}e=I[a+4|0]|I[a+5|0]<<8;if(c>>>0>=((e<<8|e>>>8)&65535)>>>0){break a}d=1;a=(c<<1)+a|0;a=I[a+6|0]|I[a+7|0]<<8;e=(a<<8|a>>>8)&65535;a=H[b+100>>2];c=H[a+80>>2]+N(H[a+64>>2],20)|0;a=J[c+12>>1]|16;if(I[b+140|0]){a=Ye(H[b+108>>2],e)|a&112}G[c+12>>1]=a;a=H[b+100>>2];if(!ec(a,1,1)){break a}b=H[a+64>>2];b:{if(b>>>0>2]){d=H[a+80>>2]+N(b,20)|0;b=H[a+72>>2];c=H[a+84>>2];break b}c=H[a+84>>2];b=H[a+72>>2];d=c+N(b?b-1|0:0,20)|0}b=N(b,20)+c|0;c=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=c;H[b+16>>2]=H[d+16>>2];c=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=c;H[b>>2]=e;d=1;H[a+64>>2]=H[a+64>>2]+1;H[a+72>>2]=H[a+72>>2]+1}return d|0}function Q9(a){a=a|0;var b=0,c=0,d=0;d=xb-32|0;xb=d;b=H[a+584>>2];a:{b:{c:{d:{e:{c=J[a+90>>1];switch(c-32844|0){case 0:break d;case 1:break e;default:break c}}c=1;if(!mB(a)){break a}if(J[a+88>>1]==34677){H[a+544>>2]=1495;f:{switch(H[b>>2]){case 0:H[b+20>>2]=1496;break a;case 2:break a;case 1:break f;default:break b}}H[b+20>>2]=1497;break a}H[a+544>>2]=1498;g:{switch(H[b>>2]){case 0:H[b+20>>2]=1499;break a;case 2:break a;case 1:break g;default:break b}}H[b+20>>2]=1500;break a}c=1;if(!lB(a)){break a}H[a+544>>2]=1501;h:{c=H[b>>2];switch(c|0){case 1:break a;case 0:break h;default:break b}}H[b+20>>2]=1502;c=1;break a}b=H[a>>2];a=H[a+628>>2];H[d+4>>2]=273726;H[d>>2]=c;Pb(a,b,272925,d);c=1;break a}b=H[a>>2];c=H[a+628>>2];H[d+16>>2]=J[a+90>>1]==32844?278745:278862;Pb(c,b,278381,d+16|0);c=0}xb=d+32|0;return c|0}function gl(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=H[b+4>>2];a:{if(g>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break a}e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break a}f=I[a|0]|I[a+1|0]<<8;if(!f){return 1}h=a+2|0;if(g>>>0>h>>>0|d>>>0>>0){break a}f=(f<<8|f>>>8)&65535;i=f<<1;if(i>>>0>d-h>>>0){break a}d=e-i|0;H[b+12>>2]=d;if((d|0)<=0){break a}d=a+2|0;if(g>>>0>d>>>0){break a}f=f>>>0>1?f:1;g=0;while(1){b:{e=H[b+8>>2];if(e>>>0>>0|e-d>>>0<2){break b}h=H[c>>2];e=H[b+12>>2]-2|0;H[b+12>>2]=e;if((e|0)<=0){break b}e=I[d|0]|I[d+1|0]<<8;c:{if(!e){break c}if(Ud(h+((e<<8|e>>>8)&65535)|0,b)){break c}e=H[b+28>>2];if(e>>>0>31){break b}H[b+28>>2]=e+1;if(!I[b+24|0]){break b}F[d|0]=0;F[d+1|0]=0}j=1;g=g+1|0;if((f|0)==(g|0)){break a}d=((g<<1)+a|0)+2|0;if(d>>>0>=K[b+4>>2]){continue}}break}j=0}return j}function Qm(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;Be((H[H[a>>2]-12>>2]+a|0)+4|0,b);i=H[a>>2]-12|0;h=H[i>>2]+a|0;g=H[h+8>>2];m=H[h+12>>2];if(m>>>0>g+3>>>0){j=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g+4|0;H[h+8>>2]=g}H[c>>2]=j;if(g+3>>>0>>0){k=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[h+8>>2]=g+4}H[c+4>>2]=k;k=0;h=H[i>>2]+a|0;g=H[h+8>>2];i=H[h+12>>2];a:{if(g+3>>>0>=i>>>0){j=0;break a}j=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);g=g+4|0;H[h+8>>2]=g}H[d>>2]=j;if(i>>>0>g+3>>>0){k=I[g|0]|I[g+1|0]<<8|(I[g+2|0]<<16|I[g+3|0]<<24);H[h+8>>2]=g+4}H[d+4>>2]=k;n=e,o=qe(H[b>>2],H[b+4>>2],H[b+8>>2],H[b+12>>2],H[c>>2],H[c+4>>2]),M[n>>3]=o;l=qe(H[b>>2],H[b+4>>2],H[b+8>>2],H[b+12>>2],H[d>>2],H[d+4>>2])-M[e>>3];M[f>>3]=l<.001?l+360:l;if(H[H[a+120>>2]+680>>2]!=1){M[f>>3]=M[f>>3]+-360}}function QA(a){a=a|0;var b=0,c=0;H[a>>2]=395964;b=H[a+16>>2];a:{if(I[b+28|0]){break a}c=H[b+24>>2];if(!c){break a}Kb(c);H[b+24>>2]=0}H[b+4>>2]=0;H[b+8>>2]=0;F[b+29|0]=0;H[b+12>>2]=0;H[b+16>>2]=0;c=H[H[b>>2]+12>>2];H[197455]=0;ia(c|0,b|0);b=H[197455];H[197455]=0;b:{if((b|0)==1){break b}b=H[a+20>>2];b=H[H[b>>2]-12>>2]+b|0;c:{if(I[b+28|0]){break c}c=H[b+24>>2];if(!c){break c}Kb(c);H[b+24>>2]=0}H[b+4>>2]=0;H[b+8>>2]=0;F[b+29|0]=0;H[b+12>>2]=0;H[b+16>>2]=0;c=H[H[b>>2]+12>>2];H[197455]=0;ia(c|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}H[a+24>>2]=0;b=H[a+12>>2];if(b){c=H[H[b>>2]+12>>2];H[197455]=0;aa(c|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break b}H[a+12>>2]=0}b=H[a+20>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+20>>2]=0}b=H[a+16>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}return a|0}ha(0)|0;_()|0;Zb();X()}function Ou(a,b,c,d,e,f,g){var h=0,i=0,j=0;j=e-c|0;a:{if((e|0)<(f|0)|(j|0)<=0|(c|0)>(g|0)){break a}h=d-b|0;b:{if((c|0)<(f|0)){b=ic(h,f-c|0,j)+b|0;i=H[a>>2];f=f>>i;c=0;break b}i=H[a>>2];f=c>>i;c=H[a+4>>2]-1&c}d=0;if((e|0)<=(g|0)){g=e;d=H[a+4>>2]-1&e}e=g>>i;c:{if((c|0)>0){if((e|0)==(f|0)){break a}f=f+1|0;b=ic(h,H[a+4>>2]-c|0,j)+b|0;break c}if(!I[a+79|0]){break c}H[a+36>>2]=H[a+36>>2]-4}F[a+79|0]=!d;if(I[a+78|0]){H[H[a+80>>2]+20>>2]=f;F[a+78|0]=0}g=e-f|0;c=g+1|0;if(K[a+32>>2]<=H[a+36>>2]+(c<<2)>>>0){H[a+40>>2]=98;return 1}d=1;e=H[a+4>>2];d:{if((h|0)>0){f=rr(e,h,j);break d}d=-1;h=0-h|0;f=0-rr(e,h,j)|0}h=(N(H[a+4>>2],h)|0)%(j|0)|0;e=H[a+36>>2];if((g|0)>=0){g=0-j|0;while(1){H[e>>2]=b;g=g+h|0;i=(g|0)>=0;g=g-(i?j:0)|0;b=(b+f|0)+(i?d:0)|0;e=e+4|0;i=c>>>0>1;c=c-1|0;if(i){continue}break}}H[a+36>>2]=e}return 0}function Vs(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=H[a+68>>2];a:{b:{c:{h=H[a+36>>2];if((h|0)!=H[b+36>>2]){c=H[b+68>>2];if(!f){break c}d=1;if(c){break a}}if((f|0)==H[b+68>>2]){break b}d=2;break a}if(!c){return 0}return 2}if(!f){return 0}c=H[a+80>>2];e=H[b+80>>2];d=0;while(1){d=H[c>>2]==H[e>>2]?d:d|16;d=H[c+8>>2]==H[e+8>>2]?d:d|32;d=H[c+4>>2]&(H[e+4>>2]^-1)&3?d|64:d;e=e+20|0;c=c+20|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}if((h|0)!=2){break a}f=f>>>0>1?f:1;c=H[a+88>>2];e=H[b+88>>2];g=0;while(1){b=H[c>>2]-H[e>>2]|0;a=b>>31;d:{e:{if((a|0)!=(a^b)){break e}b=H[c+4>>2]-H[e+4>>2]|0;a=b>>31;if((a|0)!=(a^b)){break e}b=H[c+8>>2]-H[e+8>>2]|0;a=b>>31;if((a|0)!=(a^b)){break e}b=H[c+12>>2]-H[e+12>>2]|0;a=b>>31;if((a|0)==(a^b)){break d}}return d|128}e=e+20|0;c=c+20|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}}return d}function u9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>0){f=H[a+12>>2];while(1){g=c;e=+L[b>>2];d=32767;a:{if(e>=18371976e12){break a}d=65535;if(e<=-18371976e12){break a}c=H[a+4>>2];if(e>5.4136769e-20){e=tk(e)*1.4426950408889634+64;if(c){c=gma(H[197066],H[197067],1284865837,1481765933)+1|0;d=yb;d=c?d:d+1|0;H[197066]=c;H[197067]=d;e=e*256+ +(d>>>1|0)*4.656612875245797e-10+-.5}else{e=e*256}if(P(e)<2147483648){d=~~e;break a}d=-2147483648;break a}d=0;if(!(e<-5.4136769e-20)){break a}e=tk(-e)*1.4426950408889634+64;if(c){c=gma(H[197066],H[197067],1284865837,1481765933)+1|0;d=yb;d=c?d:d+1|0;H[197066]=c;H[197067]=d;e=e*256+ +(d>>>1|0)*4.656612875245797e-10+-.5}else{e=e*256}b:{if(P(e)<2147483648){c=~~e;break b}c=-2147483648}d=c|-32768}b=b+4|0;c=g-1|0;G[f>>1]=d;f=f+2|0;if(g>>>0>1){continue}break}}}function h9(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-32|0;xb=e;a:{if(J[a+84>>1]!=1){Pb(H[a+628>>2],H[a>>2],287444,0);break a}b=H[a+584>>2];b:{if(I[a+13|0]&4){h=qg(a);c=a+68|0;break b}h=Ve(a);c=a+56|0}g=H[c>>2];H[b+12>>2]=g;H[b+8>>2]=h;f=1;f=F[b+28|0]&1?f:J[a+88>>1]==4;H[b+80>>2]=0;c:{c=g>>>0<4294967264?g+31&-32:0;c=f?(c|0)==(c&2147483616)?c<<1:0:c;if(!(!c|(c|0)<0)){i=c<<1;if(i){break c}}b=H[a>>2];a=H[a+628>>2];H[e>>2]=g;Pb(a,b,287611,e);break a}d=Md(a,i,4,287720);H[b+80>>2]=d;if(!d){d=0;break a}H[b+88>>2]=d;H[b+84>>2]=f?d+(c<<2)|0:0;if(!(!(F[b+28|0]&1)|J[a+88>>1]!=3)){H[a+556>>2]=1518;H[a+548>>2]=1518;H[a+540>>2]=1518}b=H[a+584>>2];if(f){c=b;b=Tb(h);H[c+96>>2]=b;d=1;if(b){break a}b=H[a+628>>2];H[e+16>>2]=H[a>>2];Pb(b,287837,287892,e+16|0);d=0;break a}H[b+96>>2]=0;d=1}xb=e+32|0;return d|0}function An(a,b,c,d){var e=0,f=0;e=H[a+5820>>2];a:{if((e|0)>=14){e=J[a+5816>>1]|d<>1]=e;f=H[a+20>>2];H[a+20>>2]=f+1;F[f+H[a+8>>2]|0]=e;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=I[a+5817|0];e=d&65535;d=H[a+5820>>2];f=e>>>16-d|0;G[a+5816>>1]=f;d=d-13|0;break a}f=J[a+5816>>1]|d<>1]=f;d=e+3|0}b:{if((d|0)>=9){d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=f;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=I[a+5817|0];break b}if((d|0)<=0){break b}d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=f}H[a+5820>>2]=0;G[a+5816>>1]=0;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=c;d=H[a+20>>2];H[a+20>>2]=d+1;F[d+H[a+8>>2]|0]=c>>>8;d=H[a+20>>2];H[a+20>>2]=d+1;e=d+H[a+8>>2]|0;d=c^-1;F[e|0]=d;e=H[a+20>>2];H[a+20>>2]=e+1;F[e+H[a+8>>2]|0]=d>>>8;Ob(H[a+8>>2]+H[a+20>>2]|0,b,c);H[a+20>>2]=H[a+20>>2]+c}function vq(a,b,c){var d=0,e=0;a:{b:{d=H[b+4>>2];c:{if(d>>>0<=4){e=J[b+2>>1];if(J[a+456>>1]==19789){if((e|0)==6){a=1;d:{switch(d-1|0){case 3:F[c+3|0]=H[b+8>>2];case 2:F[c+2|0]=H[b+8>>2]>>>8;case 1:F[c+1|0]=J[b+10>>1];break;case 0:break d;default:break c}}break b}a=1;e:{switch(d-1|0){case 3:F[c+3|0]=H[b+8>>2];case 2:F[c+2|0]=H[b+8>>2]>>>8;case 1:F[c+1|0]=J[b+10>>1];break;case 0:break e;default:break c}}break b}if((e|0)==6){a=1;f:{switch(d-1|0){case 3:F[c+3|0]=I[b+11|0];case 2:F[c+2|0]=J[b+10>>1];case 1:F[c+1|0]=H[b+8>>2]>>>8;break;case 0:break f;default:break c}}break a}a=1;g:{switch(d-1|0){case 3:F[c+3|0]=I[b+11|0];case 2:F[c+2|0]=J[b+10>>1];case 1:F[c+1|0]=H[b+8>>2]>>>8;break;case 0:break g;default:break c}}break a}a=(re(a,b,c)|0)!=0}return a}F[c|0]=I[b+11|0];return 1}F[c|0]=H[b+8>>2];return 1}function gg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(c-37>>>0<4294967261){break a}d=H[a>>2];if(d>>>0>=b>>>0){break a}b:{c:{e=I[d|0];switch(e-43|0){case 0:case 2:break c;default:break b}}d=d+1|0;if((d|0)==(b|0)){break a}k=(e|0)==45;e=I[d|0];switch(e-43|0){case 0:case 2:break a;default:break b}}h=2147483647/(c>>>0)|0;d:{e:{if(b>>>0<=d>>>0){H[a>>2]=d;break e}l=2147483647-N(c,h)|0;while(1){f:{g:{h:{switch(e|0){case 0:case 9:case 10:case 12:case 13:case 32:break g;default:break h}}if(e<<24>>24<0){break g}e=F[e+31072|0];if((e|0)<0|(c|0)<=(e|0)){break g}i=1;g=f;i:{if((f|0)>(h|0)){break i}if((f|0)==(h|0)){g=h;if((e|0)>(l|0)){break i}}i=j;g=e+N(c,f)|0}f=g;d=d+1|0;if((d|0)!=(b|0)){break f}j=i;d=b}H[a>>2]=d;a=2147483647;if(j&255){break d}break e}e=I[d|0];j=i;continue}}a=f}f=k?0-a|0:a}return f}function S5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(H[b+116>>2]+H[b+108>>2]|0)+100|0;H[e+12>>2]=d;H[e+8>>2]=76;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);Lb(H[a+4>>2],b+20|0,4);Lb(H[a+4>>2],b+24|0,4);Lb(H[a+4>>2],b+28|0,4);Lb(H[a+4>>2],b+32|0,4);Lb(H[a+4>>2],b+36|0,4);Lb(H[a+4>>2],b+40|0,4);Hk(a,b+48|0);Lb(H[a+4>>2],b+96|0,1);Lb(H[a+4>>2],b+97|0,1);Lb(H[a+4>>2],b+98|0,1);Lb(H[a+4>>2],b+99|0,1);Lb(H[a+4>>2],b+100|0,4);Lb(H[a+4>>2],b+104|0,4);Lb(H[a+4>>2],b+108|0,4);Lb(H[a+4>>2],b+112|0,4);Lb(H[a+4>>2],b+116|0,4);d=H[b+108>>2];if(d){Lb(H[a+4>>2],H[c+4>>2],d)}d=H[b+116>>2];if(d){Lb(H[a+4>>2],H[c+4>>2]+H[b+108>>2]|0,d)}xb=e+16|0}function AB(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=xb-48|0;xb=e;f=H[a+72>>2];h=H[a+68>>2];if((h|0)==-1){h=H[a+56>>2]}g=H[a+76>>2];f=(f|0)==-1?H[a+60>>2]:f;g=(g|0)==-1?H[a- -64>>2]:g;a:{if(!g|(!h|!f)){break a}b=H[a+56>>2];if(b>>>0<0-h>>>0){c=((b+h|0)-1>>>0)/(h>>>0)|0}b=H[a+60>>2];b:{if(b>>>0>=0-f>>>0){break b}b=(b+f|0)-1|0;d=gma((b>>>0)/(f>>>0)|0,0,c,0);c=yb;if(!c|b>>>0>>0){break b}d=H[a>>2];c=H[a+628>>2];H[e+32>>2]=272895;Pb(c,d,275233,e+32|0);d=0}c=0;b=H[a- -64>>2];if(b>>>0>=0-g>>>0){break a}b=(b+g|0)-1|0;c=gma((b>>>0)/(g>>>0)|0,0,d,0);d=yb;if(!d|b>>>0>>0){break a}d=H[a>>2];c=H[a+628>>2];H[e+16>>2]=272895;Pb(c,d,275233,e+16|0);c=0}c:{if(J[a+138>>1]!=2){break c}b=J[a+98>>1];c=gma(b,0,c,0);d=yb;if(!b|!d){break c}c=H[a>>2];a=H[a+628>>2];H[e>>2]=272895;Pb(a,c,275233,e);c=0}xb=e+48|0;return c}function pG(a,b,c,d){var e=0,f=0,g=O(0);e=xb-128|0;xb=e;a:{b:{if(K[a+16>>2]<=c>>>0){break b}c:{f=H[H[a>>2]>>2];f=f?f:163632;f=K[f+16>>2]<20?163632:H[f+12>>2];f=I[f+4|0]|I[f+5|0]<<8;if(H[b+68>>2]==((f<<8|f>>>8)&65535)){H[e+48>>2]=2139095039;H[e+52>>2]=-8388609;H[e+56>>2]=-8388609;H[e+16>>2]=2139095039;H[e+20>>2]=-8388609;H[e+24>>2]=-8388609;H[e+44>>2]=2139095039;H[e+40>>2]=e- -64;f=H[e+44>>2];H[e+8>>2]=H[e+40>>2];H[e+12>>2]=f;H[e+36>>2]=0;H[e+32>>2]=b;f=H[e+36>>2];H[e>>2]=H[e+32>>2];H[e+4>>2]=f;if(gs(a,b,c,e)){break c}}if(d){a=oG(H[a+8>>2],c);break a}a=oG(H[a+4>>2],c);break a}if(d){g=O(L[e+104>>2]-L[e+120>>2])}else{g=O(L[e+84>>2]-L[e+68>>2])}g=O(T(O(g+O(.5))));g=g>=O(0)?g:O(0);g=g<=O(2147483648)?g:O(2147483648);if(!(g=O(0))){break b}a=~~g>>>0;break a}a=0}xb=e+128|0;return a}function Ci(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;f=xb-192|0;xb=f;a:{if(!b){while(1){b=I[c|0];if(!b){d=e;break a}F[e+f|0]=b;d=e|1;b=I[c+1|0];if(!b){break a}F[d+f|0]=b;d=e|2;b=I[c+2|0];if(!b){break a}F[d+f|0]=b;d=191;b=e|3;if((b|0)==191){break a}d=I[c+3|0];if(d){F[b+f|0]=d;e=e+4|0;c=c+4|0;continue}else{d=b;break a}}}while(1){h=I[c|0];b:{c:{if((h|0)!=64){e=c;if(h){break c}break a}h=I[c+1|0];if(h){e=c+1|0;g=0;while(1){i=g;if(I[g+262657|0]!=(h|0)){g=i+1|0;if((i|0)!=9){continue}}break}if(i>>>0>7){break c}if(d>>>0<=190){e=(i<<5)+b|0;i=e+32|0;g=d;while(1){d=I[e|0];if(!d){d=g;c=c+2|0;break b}if(e>>>0>=i>>>0){d=g;c=c+2|0;break b}F[f+g|0]=d;e=e+1|0;d=191;g=g+1|0;if((g|0)!=191){continue}break}}c=c+2|0;break b}h=64;e=c}F[d+f|0]=h;d=d+1|0;c=e+1|0}if(d>>>0<191){continue}break}}F[d+f|0]=0;Xb(a,f);xb=f+192|0}function lo(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;i=H[a+28>>2];H[h+12>>2]=0;a:{if(b>>>0>>0){break a}b=0;f=Ub(i,4,0,c,0,h+12|0);if(!H[h+12>>2]){while(1){if(b>>>0>=c>>>0){break a}e=H[a+32>>2];if(e>>>0>2]){H[a+32>>2]=e+1;d=F[e|0]}else{d=0}d=d<<24>>24;g=d&63;b:{if(d&128){e=(b^-1)+c|0;e=g?e>>>0>>0?e:g:0;Nb((b<<2)+f|0,0,(e<<2)+4|0);d=e+1|0;b=(b+e|0)+1|0;break b}e=0;if(d&64){while(1){k=(b<<2)+f|0,l=Tc(a)<<16,H[k>>2]=l;d=e+1|0;b=b+1|0;if(e>>>0>=g>>>0){break b}e=d;if(b>>>0>>0){continue}break b}}while(1){j=(b<<2)+f|0;d=H[a+32>>2];if(d>>>0>2]){H[a+32>>2]=d+1;d=F[d|0]}else{d=0}H[j>>2]=d<<24>>24<<16;d=e+1|0;b=b+1|0;if(e>>>0>=g>>>0){break b}e=d;if(b>>>0>>0){continue}break}}if(d>>>0>g>>>0){continue}break}if(f){zb[H[i+8>>2]](i,f)}}f=0}xb=h+16|0;return f}function kF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=a+2|0;a:{if(d>>>0>2]){break a}c=H[b+8>>2];if(c>>>0>>0|c-d>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=I[d|0]|I[d+1|0]<<8;b:{if(!c){break b}if(Ud(((c<<8|c>>>8)&65535)+a|0,b)){break b}c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[d|0]=0;F[d+1|0]=0}g=H[b+4>>2];c=a+4|0;if(g>>>0>c>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break a}c=H[b+12>>2]-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=I[a+4|0]|I[a+5|0]<<8;if(!e){return 1}f=a+6|0;if(g>>>0>f>>>0|d>>>0>>0){break a}f=d-f|0;d=(e<<8|e>>>8)&65535;e=d<<1;if(f>>>0>>0){break a}c=c-e|0;H[b+12>>2]=c;if((c|0)<=0){break a}c=d>>>0>1?d:1;d=0;while(1){h=fF(((d<<1)+a|0)+6|0,b,a);if(!h){break a}d=d+1|0;if((c|0)!=(d|0)){continue}break}}return h}function C5(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;a:{if(!c|H[d+4>>2]-H[d>>2]>>>0<8){break a}f=((H[c+20>>2]<<2)+((H[c+8>>2]!=7)<<2)|0)+52|0;H[e+12>>2]=f;H[e+8>>2]=95;H[a+8>>2]=H[a+8>>2]+f;H[a+12>>2]=H[a+12>>2]+1;G[a+16>>1]=J[a+16>>1]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);b=0;H[e+4>>2]=0;Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],e+4|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],e+4|0,4);Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],H[d>>2],4);Lb(H[a+4>>2],c+16|0,1);Lb(H[a+4>>2],c+17|0,1);Lb(H[a+4>>2],c+18|0,1);Lb(H[a+4>>2],c+19|0,1);Lb(H[a+4>>2],H[d>>2]+4|0,4);Lb(H[a+4>>2],c+20|0,4);if(H[c+20>>2]){while(1){Lb(H[a+4>>2],H[c+24>>2]+(b<<2)|0,4);b=b+1|0;if(b>>>0>2]){continue}break}}if(H[c+8>>2]==7){break a}Lb(H[a+4>>2],e+4|0,4)}xb=e+16|0}function an(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=xb-16|0;xb=c;H[c+12>>2]=166;g=H[c+12>>2];b=H[a+656>>2];if(b){d=H[a+660>>2];if(d){while(1){b=H[(e<<2)+b>>2];a:{if(J[b+12>>1]!=65){break a}f=H[b+16>>2];if(gc(270999,f,4)){break a}Kb(f);Kb(b);d=H[a+660>>2]}e=e+1|0;if(e>>>0>>0){b=H[a+656>>2];continue}break}b=H[a+656>>2]}Kb(b);H[a+660>>2]=0}if(!og(a,283856,g)){Pb(H[a+628>>2],271268,272065,0)}Id(a+40|0,0,208);H[a+100>>2]=-1;H[a+92>>2]=65537;H[a+96>>2]=65537;H[a+192>>2]=1;H[a+72>>2]=0;H[a+76>>2]=1;G[a+136>>1]=2;H[a+84>>2]=65537;H[a+676>>2]=0;H[a+672>>2]=1414;H[a+668>>2]=1415;H[a+664>>2]=0;H[a+652>>2]=1416;G[a+208>>1]=1;H[a+204>>2]=131074;b=a- -64|0;H[b>>2]=1;H[b+4>>2]=0;b=H[196371];if(b){zb[b|0](a)}H[c>>2]=1;rc(a,259,c);H[a+588>>2]=-1;H[a+508>>2]=-1;H[a+12>>2]=H[a+12>>2]&-1033;xb=c+16|0;return 1}function $k(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=qr(a);a:{if(!g){break a}d=H[b+16>>2];H[a+12>>2]=H[b+12>>2];H[a+16>>2]=d;d=H[b+48>>2];H[a+44>>2]=H[b+44>>2];H[a+48>>2]=d;d=H[b+40>>2];H[a+36>>2]=H[b+36>>2];H[a+40>>2]=d;d=H[b+32>>2];H[a+28>>2]=H[b+28>>2];H[a+32>>2]=d;d=H[b+24>>2];H[a+20>>2]=H[b+20>>2];H[a+24>>2]=d;Ob(a+52|0,b+52|0,872);H[a+4>>2]=H[b+4>>2];H[a+8>>2]=H[b+8>>2];H[a+924>>2]=H[b+924>>2];H[a+928>>2]=H[b+928>>2];H[a+932>>2]=H[b+932>>2];Nb(b+4|0,0,932);if(!c){break a}b:{if(H[a+60>>2]){break b}d=H[a+936>>2];if(!d){break b}c=0;e=H[a+356>>2];c:{if((e|0)>0){while(1){f=H[(c<<2)+d>>2];if(f){zb[H[H[f>>2]+4>>2]](f);e=H[a+356>>2];d=H[a+936>>2]}c=c+1|0;if((e|0)>(c|0)){continue}break}if(!d){break c}}Kb(d)}H[a+356>>2]=0;H[a+936>>2]=0}H[a+936>>2]=H[b+936>>2];H[b+936>>2]=0}return g|0}function IC(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(H[a+108>>2]|!c){break a}while(1){if(!g){d=H[a+16>>2];g=H[a+12>>2]|(F[b|0]&1)<<23-d;e=d+1|0;if((d|0)>=7){while(1){d=H[a+112>>2];H[a+112>>2]=d+1;F[d|0]=g>>>16;d=H[a+116>>2]-1|0;H[a+116>>2]=d;if(!d){f=H[a+120>>2];d=H[f+24>>2];if(!(zb[H[d+12>>2]](f)|0)){f=H[a+120>>2];h=H[f>>2];H[h+20>>2]=25;zb[H[h>>2]](f)}H[a+112>>2]=H[d>>2];H[a+116>>2]=H[d+4>>2]}d=e;b:{if((g&16711680)!=16711680){break b}e=H[a+112>>2];H[a+112>>2]=e+1;F[e|0]=0;e=H[a+116>>2]-1|0;H[a+116>>2]=e;if(e){break b}f=H[a+120>>2];e=H[f+24>>2];if(!(zb[H[e+12>>2]](f)|0)){f=H[a+120>>2];h=H[f>>2];H[h+20>>2]=25;zb[H[h>>2]](f)}H[a+112>>2]=H[e>>2];H[a+116>>2]=H[e+4>>2]}e=d-8|0;g=g<<8;if((d|0)>15){continue}break}}H[a+16>>2]=e;H[a+12>>2]=g}c=c-1|0;if(!c){break a}b=b+1|0;g=H[a+108>>2];continue}}}function kC(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-32|0;xb=f;H[f+8>>2]=0;g=d?d:e;i=g?g:72;H[f+20>>2]=i;d=g?d?e?e:d:e:72;H[f+24>>2]=d;e=b?b:c;g=(e|0)>64?e:64;H[f+12>>2]=g;b=b?c?c:b:c;c=(b|0)>64?b:64;H[f+16>>2]=c;b=35;a:{if(!a){break a}e=H[a+88>>2];H[H[e+40>>2]+12>>2]=0;j=H[H[a+96>>2]+12>>2];h=H[j+88>>2];if(h){b=zb[h|0](e,f+8|0)|0;break a}h=H[a+8>>2];b:{if((h&3)==2){if(!(h&2)){break a}b=23;g=((N(g,i)+36|0)/72|0)+32&-64;if(!g){break a}i=(d?(N(c,d)+36|0)/72|0:c)+32&-64;if(!i){break a}d=H[a+28>>2];if((d|0)<=0){break a}h=H[a+32>>2];c=0;while(1){k=h+(c<<4)|0;if(!((i|0)==(H[k+12>>2]+32&-64)&(g|0)==(H[k+8>>2]+32&-64))){c=c+1|0;if((d|0)!=(c|0)){continue}break a}break}b=6;if((c|0)>=(d|0)){break a}b=H[j+92>>2];if(b){b=zb[b|0](e,c)|0;break a}Vf(a,c);break b}Bi(a,f+8|0)}b=0}xb=f+32|0;return b}function $I(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;d=xb-272|0;xb=d;zb[H[b+60>>2]](b,d+80|0,16,d+76|0);f=H[d+76>>2];a:{if((f|0)<0){c=162;break a}c=3;if(f-17>>>0<4294967280){break a}i=H[a+532>>2];j=H[b+8>>2];k=H[b>>2];f=0;while(1){c=(d+80|0)+N(g,12)|0;H[b>>2]=H[c>>2];H[b+8>>2]=H[c+4>>2];zb[H[b+60>>2]](b,d+16|0,4,d+12|0);e=H[d+12>>2];b:{c:{if(!g){if(e-5>>>0<4294967292){break c}c=zl(a,H[d+76>>2],e);if(c){break a}i=H[a+532>>2];c=H[d+12>>2];f=e;break b}c=f;if((e|0)==(c|0)){break b}}c=3;break a}if((c|0)>0){e=(g<<2)+i|0;c=0;while(1){h=(d+16|0)+N(c,12)|0;H[b>>2]=H[h>>2];H[b+8>>2]=H[h+4>>2];h=zb[H[b+40>>2]](b,0)|0;H[H[e+24>>2]+(c<<2)>>2]=h;c=c+1|0;if((c|0)>2]){continue}break}}g=g+1|0;if((g|0)>2]){continue}break}H[b+8>>2]=j;H[b>>2]=k;c=0}H[b+12>>2]=c;xb=d+272|0}function ks(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=O(0),k=O(0),l=O(0),m=0,n=0;e=I[a+2|0]|I[a+3|0]<<8;if(((e<<8|e>>>8)&65535)>>>0<=b>>>0){return O(0)}e=I[a|0]|I[a+1|0]<<8;if(!e){return O(1)}f=a;a=(e<<8|e>>>8)&65535;m=(f+N(N(a,b),6)|0)+4|0;n=a>>>0>1?a:1;b=0;j=O(1);while(1){a=0;a=b>>>0>>0?H[(b<<2)+c>>2]:a;k=j;f=N(b,6)+m|0;g=I[f+2|0]|I[f+3|0]<<8;h=(g<<8|g>>>8)<<16>>16;e=I[f|0]|I[f+1|0]<<8;i=(e<<8|e>>>8)<<16>>16;a:{b:{if((h|0)<(i|0)){break b}e=I[f+4|0]|I[f+5|0]<<8;e=(e<<8|e>>>8)<<16>>16;if((e|0)<(h|0)){break b}if(!(!g|((e|0)<=0|(i|0)>=0))){break b}if(!g|(a|0)==(h|0)){break b}if((a|0)<=(i|0)){return O(0)}if((a|0)>=(e|0)){return O(0)}j=O(0);f=a-i|0;g=e-a|0;a=(a|0)<(h|0);l=O(O((a?f:g)|0)/O((a?h-i|0:e-h|0)|0));if(l==O(0)){break a}k=O(k*l)}j=k;b=b+1|0;if((n|0)!=(b|0)){continue}}break}return j}function dm(a){var b=0,c=0;b=H[a+4>>2];c=H[H[b>>2]-12>>2];H[197455]=0;b=H[(b+c|0)+24>>2];c=H[197455];H[197455]=0;a:{if((c|0)==1){break a}b:{if(!b){break b}b=H[a+4>>2];c=H[H[b>>2]-12>>2];H[197455]=0;b=H[(b+c|0)+16>>2];c=H[197455];H[197455]=0;if((c|0)==1){break a}if(b){break b}b=H[a+4>>2];if(!(H[(H[H[b>>2]-12>>2]+b|0)+4>>2]&8192)){break b}if(wx()){break b}b=H[a+4>>2];c=H[H[b>>2]-12>>2];H[197455]=0;b=H[(b+c|0)+24>>2];c=H[197455];H[197455]=0;c:{if((c|0)==1){break c}H[197455]=0;b=aa(3332,b|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break c}if((b|0)!=-1){break b}a=H[a+4>>2];b=H[H[a>>2]-12>>2];H[197455]=0;ba(3333,a+b|0,1);a=H[197455];H[197455]=0;if((a|0)!=1){break b}}a=ha(0)|0;_()|0;sa(a|0)|0;H[197455]=0;na(1711);a=H[197455];H[197455]=0;if((a|0)==1){break a}}return}ha(0)|0;_()|0;Zb();X()}function v7(a){a=a|0;var b=0,c=0,d=0;b=H[a+584>>2];a:{if(!(zb[H[b+56>>2]](a)|0)){break a}if(!SA(a)){break a}d=1;b:{c:{switch(H[b>>2]-2|0){case 0:c=1607;d:{e:{f:{switch(J[a+84>>1]-8|0){case 8:c=1608;break e;case 0:break e;case 24:break f;default:break d}}c=1609}H[b+40>>2]=c}c=H[a+540>>2];if((c|0)!=1610){H[b+28>>2]=c;H[a+540>>2]=1610;H[b+32>>2]=H[a+548>>2];H[a+548>>2]=1611;H[b+36>>2]=H[a+556>>2];H[a+556>>2]=1611}if(!(I[a+12|0]&128)){break a}c=H[b+40>>2];if((c|0)==1608){H[b+40>>2]=1612;break b}if((c|0)!=1609){break a}H[b+40>>2]=1613;break b;case 1:break c;default:break a}}H[b+40>>2]=1614;c=H[a+540>>2];if((c|0)!=1610){H[b+28>>2]=c;H[a+540>>2]=1610;H[b+32>>2]=H[a+548>>2];H[a+548>>2]=1611;H[b+36>>2]=H[a+556>>2];H[a+556>>2]=1611}if(!(I[a+12|0]&128)){break a}}H[a+652>>2]=1416}return d|0}function re(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=xb-16|0;xb=g;a:{b:{e=H[b+4>>2];f=!e;d=J[b+2>>1];if(d>>>0<=13){d=H[(d<<2)+290752>>2]}else{d=0}if(f|!d){break b}d=gma(d,0,e,0);if(yb){break b}c:{if(!(I[a+13|0]&8)){if((zb[H[a+640>>2]](H[a+628>>2],H[b+8>>2],0)|0)!=H[b+8>>2]){break b}if((zb[H[a+632>>2]](H[a+628>>2],c,d)|0)==(d|0)){break c}break b}f=H[b+8>>2];e=d+f|0;if(e>>>0>>0|d>>>0>e>>>0|K[a+616>>2]>>0){break b}Kc(c,H[a+612>>2]+f|0,d)}d:{if(!(I[a+12|0]&128)){break d}h=d;e:{switch(J[b+2>>1]-3|0){case 0:case 5:yj(c,H[b+4>>2]);break d;case 1:case 6:case 8:Gh(c,H[b+4>>2]);break d;case 2:case 7:Gh(c,H[b+4>>2]<<1);break d;case 9:break e;default:break a}}xq(c,H[b+4>>2])}h=d;break a}c=H[a>>2];d=H[a+628>>2];i=g,j=H[rd(a,J[b>>1])+16>>2],H[i>>2]=j;Pb(d,c,287934,g)}xb=g+16|0;return h}function Ly(a,b){var c=0,d=0,e=0,f=0;f=H[a+8>>2];c=H[a+4>>2];if(f>>>0>c+3>>>0){e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b>>2]=e;if(c+1>>>0>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+4>>1]=d;d=0;a:{if(c+1>>>0>=f>>>0){e=0;break a}e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+6>>1]=e;if(c+1>>>0>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+8>>1]=d;d=0;b:{if(c+1>>>0>=f>>>0){e=0;break b}e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+10>>1]=e;if(c+1>>>0>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+12>>1]=d;d=0;c:{if(c+1>>>0>=f>>>0){e=0;break c}e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+14>>1]=e;if(c+1>>>0>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+16>>1]=d;d=0;if(c+1>>>0>>0){d=I[c|0]|I[c+1|0]<<8;H[a+4>>2]=c+2}G[b+18>>1]=d}function vU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=xb-16|0;xb=f;H[f+12>>2]=0;a:{if(H[c+76>>2]){break a}e=8;d=a+1|0;if(d>>>0>b>>>0){break a}a=I[a|0];g=a&15;h=b;b=g+(a>>>4|0)|0;if(h>>>0<(b<<1)+d>>>0){break a}a=Ub(H[c>>2],4,0,b,0,f+12|0);e=H[f+12>>2];if(e){break a}H[c+76>>2]=a;H[c- -64>>2]=(g<<2)+a;e=0;if(!b){break a}c=b-1|0;g=b&3;if(g){while(1){h=I[d|0]|I[d+1|0]<<8;H[a>>2]=(h<<8|h>>>8)<<16>>16;a=a+4|0;b=b-1|0;d=d+2|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}}if(c>>>0>=3){while(1){c=I[d|0]|I[d+1|0]<<8;H[a>>2]=(c<<8|c>>>8)<<16>>16;c=I[d+2|0]|I[d+3|0]<<8;H[a+4>>2]=(c<<8|c>>>8)<<16>>16;c=I[d+4|0]|I[d+5|0]<<8;H[a+8>>2]=(c<<8|c>>>8)<<16>>16;c=I[d+6|0]|I[d+7|0]<<8;H[a+12>>2]=(c<<8|c>>>8)<<16>>16;a=a+16|0;d=d+8|0;b=b-4|0;if(b){continue}break}}e=H[f+12>>2]}xb=f+16|0;return e|0}function sB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=xb-80|0;xb=f;e=283105;d=H[b+4>>2];g=J[a+98>>1];i=d>>>0>>0;a:{b:{if(!i){e=283317;if(d>>>0<=g>>>0){break b}}d=H[a>>2];h=H[a+628>>2];j=H[rd(a,J[b>>1])+16>>2];H[f+20>>2]=H[b+4>>2];H[f+16>>2]=j;H[f+24>>2]=g;sc(h,d,e,f+16|0);d=0;if(i){break a}d=H[b+4>>2]}e=f+32|0;if(d>>>0>=11){e=Md(a,d,4,288229);if(!e){d=0;break a}d=H[b+4>>2]}c:{d:{if((d|0)==1){H[e>>2]=H[b+8>>2];break d}if(re(a,b,e)){break d}d=0;break c}d=1;i=H[e>>2];e:{h=H[b+4>>2];h=(g|0)>(h|0)?h:g;if((h|0)<=1){break e}g=1;while(1){if((i|0)==H[(d<<2)+e>>2]){g=g+1|0;d=g&65535;if((h|0)>(d|0)){continue}break e}break}c=H[a>>2];d=H[a+628>>2];k=f,l=H[rd(a,J[b>>1])+16>>2],H[k>>2]=l;Pb(d,c,288381,f);d=0;break c}H[c>>2]=i;d=1}if((f+32|0)==(e|0)){break a}Kb(e)}xb=f+80|0;return d}function Gla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-96|0;xb=e;F[e+40|0]=0;F[e+28|0]=0;F[e+16|0]=0;H[e+12>>2]=d;H[e+8>>2]=b;a:{if(K[a+16>>2]>c>>>0){H[e+88>>2]=0;H[e+80>>2]=0;H[e+84>>2]=0;H[197455]=0;ll(e+56|0,a,c,0);c=H[197455];H[197455]=0;if((c|0)==1){break a}H[197455]=0;f=ma(672,e+56|0,b|0,a|0,e+80|0,0,0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}c=H[e+84>>2];if(c>>>0>4&f){a=0;while(1){b:{if(a>>>0>=c>>>0){b=H[40911];H[196250]=H[40910];H[196251]=b;b=H[40909];H[196248]=H[40908];H[196249]=b;b=784992;break b}b=H[e+88>>2]+(a<<4)|0}H[197455]=0;ba(680,e+8|0,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=a+5|0;a=a+1|0;c=H[e+84>>2];if(b>>>0>>0){continue}break}}H[e+84>>2]=0;Kb(H[e+88>>2])}xb=e+96|0;return f|0}a=$()|0;_()|0;H[e+84>>2]=0;Kb(H[e+88>>2]);ea(a|0);X()}function yla(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=xb-16|0;xb=f;e=H[a>>2];g=H[a+4>>2];H[d+24>>2]=H[a+8>>2];H[d+20>>2]=g;H[d+16>>2]=e;H[d+8>>2]=b;b=0;H[d+4>>2]=0;H[d+12>>2]=0;h=163632;a=g>>>0<4?163632:e;H[d>>2]=a;H[d+28>>2]=a+4;g=0;e=I[a|0]|I[a+1|0]<<8;a:{if(e&128){e=I[a+2|0]|I[a+3|0]<<8;if(e){h=a+((e<<8|e>>>8)&65535)|0}H[f+12>>2]=h;if(!cG(f+12|0,c,d+16|0)){break a}H[d+12>>2]=H[f+12>>2]-h;g=H[d+4>>2];a=H[d>>2];e=I[a|0]|I[a+1|0]<<8}if(((e<<8|(e&65280)>>>8)&4095)>>>0<=g>>>0){break a}c=H[d+16>>2];a=H[d+28>>2];if(c>>>0>a>>>0){break a}c=c+H[d+20>>2]|0;if(c>>>0>>0){break a}c=c-a|0;if(c>>>0<4){break a}b=I[a+2|0]|I[a+3|0]<<8;b=(N(H[d+8>>2],b>>>5&2|b>>>7&1)<<1)+4|0;a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)&65535;b=c>>>0>=(a>>>0>>0?b:a)>>>0&(b|0)!=0}xb=f+16|0;return b|0}function zh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{if(H[a+188>>2]){break a}g=H[a+180>>2];if(!(H[a+184>>2]?1:g)){break a}h=H[a+156>>2];b:{i=H[a+192>>2]+(H[a+160>>2]-H[a+172>>2]<<2)|0;e=H[i>>2];c:{if(!e){e=0;break c}f=H[e>>2];if((h|0)<(f|0)){break c}d:{while(1){d=e;if((f|0)==(h|0)){break b}e=H[d+12>>2];if(e){f=H[e>>2];if((h|0)<(f|0)){break d}continue}break}e=0}i=d+12|0}d=H[a+204>>2];if((d|0)>=H[a+200>>2]){Fr(a,1);g=H[a+180>>2];e=H[i>>2];d=H[a+204>>2]}H[a+204>>2]=d+1;f=H[a+196>>2]+(d<<4)|0;H[f+8>>2]=g;H[f>>2]=h;d=H[a+184>>2];H[f+12>>2]=e;H[f+4>>2]=d;H[i>>2]=f;break a}H[d+8>>2]=H[d+8>>2]+g;H[d+4>>2]=H[d+4>>2]+H[a+184>>2]}H[a+180>>2]=0;H[a+184>>2]=0;H[a+160>>2]=c;d=H[a+164>>2];H[a+156>>2]=(b|0)<(d|0)?d-1|0:b;e=1;H[a+188>>2]=H[a+176>>2]<=(c|0)|H[a+172>>2]>(c|0)?e:H[a+168>>2]<=(b|0)}function dla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=xb-16|0;xb=g;f=H[a+712>>2];H[g+12>>2]=0;a:{if(!f){break a}e=H[f+3132>>2];if(!e){e=pc(H[a+100>>2],2,g+12|0);c=H[g+12>>2];if(c){break a}G[e>>1]=0;a=H[f+1500>>2];b:{if((a|0)==65535){break b}c:{if(a>>>0>=391){a=a-391|0;if(a>>>0>=K[f+1356>>2]){break b}a=H[H[f+1360>>2]+(a<<2)>>2];break c}c=H[f+3084>>2];if(!c){break b}a=zb[H[c+20>>2]](a)|0}if(!a){break b}a=_c(a,10721);if(!a){break b}c=a+7|0;a=_c(c,10826);if(!a|(a|0)==(c|0)){break b}while(1){d:{d=I[c|0];e:{if((d-48&255)>>>0<=9){d=J[e>>1];if(d>>>0>6551){break d}d=N(d,10);G[e>>1]=d;G[e>>1]=(d+F[c|0]|0)-48;break e}d=d-10|0;if(d>>>0>22|!(1<>1]=0}H[f+3132>>2]=e;c=H[g+12>>2]}G[b>>1]=J[e>>1]}xb=g+16|0;return c|0}function lq(a){var b=0;a:{if(!a|a&1){break a}b=1;if(a&2){break a}b=2;if(a&4){break a}b=3;if(a&8){break a}b=4;if(a&16){break a}b=5;if(a&32){break a}b=6;if(a&64){break a}b=7;if(a&128){break a}b=8;if(a&256){break a}b=9;if(a&512){break a}b=10;if(a&1024){break a}b=11;if(a&2048){break a}b=12;if(a&4096){break a}b=13;if(a&8192){break a}b=14;if(a&16384){break a}b=15;if(a&32768){break a}b=16;if(a&65536){break a}b=17;if(a&131072){break a}b=18;if(a&262144){break a}b=19;if(a&524288){break a}b=20;if(a&1048576){break a}b=21;if(a&2097152){break a}b=22;if(a&4194304){break a}b=23;if(a&8388608){break a}b=24;if(a&16777216){break a}b=25;if(a&33554432){break a}b=26;if(a&67108864){break a}b=27;if(a&134217728){break a}b=28;if(a&268435456){break a}b=29;if(a&536870912){break a}b=a<<1>>31&30}return b}function fU(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;i=xb-16|0;xb=i;e=6;a:{if((b|0)<0|H[a+16>>2]<=(b|0)){break a}f=H[a+8>>2];e=H[a+4>>2]+d|0;b:{if(f>>>0>=e>>>0){break b}g=H[a>>2];j=c-g|0;m=(j|0)>=0&f>>>0>j>>>0;while(1){f=((f>>>2|0)+f|0)+1024&-1024;if(e>>>0>f>>>0){continue}break}k=H[a+32>>2];h=pc(k,f,i+12|0);H[a>>2]=h;e=H[i+12>>2];if(e){H[a>>2]=g;break a}if(g){Ob(h,g,H[a+8>>2]);h=H[a+16>>2];if((h|0)>0){n=H[a>>2]-g|0;e=H[a+24>>2];h=e+(h<<2)|0;while(1){l=H[e>>2];if(l){H[e>>2]=n+l}e=e+4|0;if(h>>>0>e>>>0){continue}break}}if(g){zb[H[k+8>>2]](k,g)}}H[a+8>>2]=f;e=m?j:-1;if((e|0)<0){break b}c=e+H[a>>2]|0}e=0;b=b<<2;f=H[a>>2];g=H[a+4>>2];H[b+H[a+24>>2]>>2]=f?f+g|0:0;H[b+H[a+28>>2]>>2]=d;Ob(g+H[a>>2]|0,c,d);H[a+4>>2]=H[a+4>>2]+d}xb=i+16|0;return e|0}function Xo(a,b,c,d,e){var f=0,g=0;f=xb-16|0;xb=f;g=f+8|0;b=H[b+28>>2];H[g>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;b=aa(3342,g|0)|0;g=H[197455];H[197455]=0;a:{if((g|0)==1){break a}H[197455]=0;la(3458,b|0,773072,773104,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;b=aa(3445,f+8|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[197455]=0;c=aa(3459,b|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break a}H[d>>2]=c;H[197455]=0;c=aa(3455,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}H[e>>2]=c;H[197455]=0;ba(3456,a|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[f+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}xb=f+16|0;return}c=$()|0;_()|0;a=H[f+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function vC(a){var b=0,c=0;cc(a,H[a+468>>2]);H[a+468>>2]=0;b=H[a+472>>2];if(b){c=H[a+456>>2];if((c|0)!=-23){cc(a,H[b>>2]);b=1;c=1<<8-c;if((c|0)>=2){c=(c|0)>1?c:1;while(1){cc(a,H[H[a+472>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0)){continue}break}}b=H[a+472>>2]}cc(a,b);H[a+472>>2]=0}cc(a,H[a+476>>2]);H[a+476>>2]=0;cc(a,H[a+480>>2]);H[a+480>>2]=0;b=H[a+484>>2];if(b){c=H[a+456>>2];if((c|0)!=-23){cc(a,H[b>>2]);b=1;c=1<<8-c;if((c|0)>=2){c=(c|0)>1?c:1;while(1){cc(a,H[H[a+484>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0)){continue}break}}b=H[a+484>>2]}cc(a,b);H[a+484>>2]=0}b=H[a+488>>2];if(b){c=H[a+456>>2];if((c|0)!=-23){cc(a,H[b>>2]);b=1;c=1<<8-c;if((c|0)>=2){c=(c|0)>1?c:1;while(1){cc(a,H[H[a+488>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0)){continue}break}}b=H[a+488>>2]}cc(a,b);H[a+488>>2]=0}}function Ln(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{f=H[a+4>>2];if((f|0)>=0){d=H[a+8>>2];e=d+1|0;e=(e|0)>0?e:0;if(e>>>0<=f>>>0){break b}d=f;while(1){d=((d>>>1|0)+d|0)+8|0;if(e>>>0>=d>>>0){continue}break}if(!(d>>>0>>0|d>>>0>268435454)){f=tc(H[a+12>>2],d<<4);if(f){break c}}H[a+4>>2]=-1}d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;g=784992;break a}H[a+4>>2]=d;H[a+12>>2]=f;d=H[a+8>>2]}if(d>>>0>>0){while(1){H[a+8>>2]=d+1;d=H[a+12>>2]+(d<<4)|0;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;d=H[a+8>>2];if(e>>>0>d>>>0){continue}break}}H[a+8>>2]=e;g=(H[a+12>>2]+(e<<4)|0)-16|0}d=g;H[d>>2]=b;e=H[c+12>>2];f=H[c+4>>2];h=H[c>>2];b=H[a>>2];H[d+12>>2]=0;H[d+4>>2]=b+h;d=f-b|0;d=d>>>0>f>>>0?0:d;b=e-b|0;H[g+8>>2]=b>>>0>d>>>0?d:b;H[a>>2]=H[c+12>>2]}function pe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{d=ad(b);if(d>>>0<1073741808){b:{c:{if(d>>>0>=2){f=d+4&-4;e=Qb(f<<2);H[a+8>>2]=f|-2147483648;H[a>>2]=e;H[a+4>>2]=d;break c}F[a+11|0]=d;e=a;if(!d){break b}}H[197455]=0;Mb(e,b,d);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(d<<2)+e>>2]=0;e=a+12|0;d:{b=ad(c);if(b>>>0>=1073741808){H[197455]=0;ia(1640,e|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}X()}e:{f:{if(b>>>0>=2){H[197455]=0;d=b+4&-4;e=aa(899,d<<2)|0;f=H[197455];H[197455]=0;if((f|0)==1){break d}H[a+12>>2]=e;H[a+20>>2]=d|-2147483648;H[a+16>>2]=b;break f}F[a+23|0]=b;if(!b){break e}}H[197455]=0;Mb(e,c,b);c=H[197455];H[197455]=0;if((c|0)==1){break a}}H[(b<<2)+e>>2]=0;return a|0}b=$()|0;_()|0;if(F[a+11|0]<0){Kb(H[a>>2])}ea(b|0);X()}qd(a);X()}ha(0)|0;_()|0;Zb();X()}function ku(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;h=zb[H[a+596>>2]](a)|0;f=H[b>>2];a:{if(!f){break a}g=a+36|0;e=1;while(1){b=H[a+28>>2];if((b|0)<=1){if(I[a+565|0]){H[a+12>>2]=129}H[a+28>>2]=0;break a}d=b-2|0;H[a+28>>2]=d;c=b<<2;b=H[a+24>>2];c=J[(c+b|0)-4>>1];b:{if(c>>>0>1]){d=H[b+(d<<2)>>2];b=d>>>4&15;c:{d:{switch(I[a+372|0]-113|0){case 0:b=b|16;break c;case 1:break d;default:break c}}b=b|32}if((J[a+336>>1]+b|0)!=(h|0)){break b}b=d&15;b=(b>>>0>7?-7:-8)+b<<6-J[a+338>>1];if(!(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40)){if(!(I[c+H[a+60>>2]|0]&16?1:J[a+304>>1]?I[a+564|0]:0)|(I[a+617|0]?I[a+616|0]:0)){break b}zb[H[a+588>>2]](a,g,c,b);break b}zb[H[a+588>>2]](a,g,c,b);break b}if(!I[a+565|0]){break b}H[a+12>>2]=134}e=e+1|0;if(f>>>0>=e>>>0){continue}break}}H[a+32>>2]=H[a+28>>2]}function _o(a,b,c,d,e){var f=0,g=0;f=xb-16|0;xb=f;g=f+8|0;b=H[b+28>>2];H[g>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;b=aa(3329,g|0)|0;g=H[197455];H[197455]=0;a:{if((g|0)==1){break a}H[197455]=0;la(3438,b|0,773072,773104,c|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;b=aa(3415,f+8|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}H[197455]=0;c=aa(3439,b|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break a}F[d|0]=c;H[197455]=0;c=aa(3429,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}F[e|0]=c;H[197455]=0;ba(3430,a|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[f+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}xb=f+16|0;return}c=$()|0;_()|0;a=H[f+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function cq(a,b,c,d){var e=0,f=0,g=0,h=0;f=H[a+8264>>2];a:{if(f>>>0>b>>>0){f=0;if(bc(H[a>>2],H[a+68>>2])){break a}el(a+12|0);H[a+28>>2]=0;H[a+12>>2]=a+72;H[a+16>>2]=0;e=a+8264|0;H[a+8272>>2]=e;H[a+24>>2]=a+4168;H[a+8268>>2]=e;H[e>>2]=0}b:{if(b>>>0>f>>>0){b=b-f|0;h=H[a+8268>>2];e=H[a+8272>>2]-h|0;g=b>>>0>e>>>0;e=g?e:b;H[a+8268>>2]=h+e;H[a+8264>>2]=e+f;if(g){while(1){if(Tz(a)){return 0}b=b-e|0;g=H[a+8268>>2];e=H[a+8272>>2]-g|0;f=b>>>0>e>>>0;e=f?e:b;H[a+8268>>2]=g+e;H[a+8264>>2]=H[a+8264>>2]+e;if(f){continue}break}}if(d){break b}return 0}if(d){break b}return 0}f=0;while(1){g=H[a+8268>>2];e=H[a+8272>>2]-g|0;b=d>>>0>e>>>0?e:d;c=Ob(c,g,b);H[a+8268>>2]=b+H[a+8268>>2];H[a+8264>>2]=b+H[a+8264>>2];f=b+f|0;if(d>>>0<=e>>>0){break a}c=b+c|0;d=d-b|0;if(!Tz(a)){continue}break}}return f}function _ja(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=xb-16|0;xb=g;a:{b:{c:{d:{if((b|0)<=2963){if(b-2524>>>0<2){break a}if((b|0)!=2353){break d}break a}if((b|0)==2964){break a}if((b|0)==3546){break c}}if(b-3548>>>0<3){break c}a=H[a+12>>2];H[c>>2]=b;H[d>>2]=0;a=zb[H[a+40>>2]](a,b,c,d,H[a+72>>2])|0;break b}e:{f:{f=H[H[a>>2]+124>>2];if(I[f+5|0]){break f}e=H[a+8>>2];H[g+12>>2]=0;h=e;i=H[e+84>>2];e=H[e+80>>2];if(!(zb[H[e+164>>2]](h,i,b,g+12|0,H[e+20>>2])|0)|!H[f+52>>2]){break e}h=H[H[a+8>>2]+16>>2];e=0;while(1){if(Ff(h,J[H[f+48>>2]+(e<<3)>>1],g+12|0,1,I[f+56|0])){break f}e=e+1|0;if(e>>>0>2]){continue}break}break e}H[c>>2]=3545;H[d>>2]=b;f=1;break a}a=H[a+12>>2];H[c>>2]=b;H[d>>2]=0;a=zb[H[a+40>>2]](a,b,c,d,H[a+72>>2])|0}f=(a|0)!=0}xb=g+16|0;return f|0}function Pea(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;c=c<<2;g=H[c+H[b+8>>2]>>2];h=H[c+H[b+4>>2]>>2];i=H[c+H[b>>2]>>2];b=H[d>>2];f=H[a+332>>2];c=H[a+472>>2];l=H[c+28>>2];m=H[c+24>>2];n=H[c+20>>2];o=H[c+16>>2];c=H[a+112>>2];if(c>>>0>=2){d=c>>>1|0;while(1){e=I[h|0]<<2;c=H[e+n>>2];j=I[g|0]<<2;k=H[j+m>>2];p=H[e+l>>2];j=H[j+o>>2];e=I[i|0];F[b|0]=I[f+(j+e|0)|0];k=k+p>>16;F[b+1|0]=I[f+(k+e|0)|0];F[b+2|0]=I[f+(c+e|0)|0];e=I[i+1|0];F[b+3|0]=I[f+(e+j|0)|0];F[b+4|0]=I[f+(e+k|0)|0];F[b+5|0]=I[f+(c+e|0)|0];b=b+6|0;i=i+2|0;g=g+1|0;h=h+1|0;d=d-1|0;if(d){continue}break}c=H[a+112>>2]}if(c&1){a=I[h|0]<<2;c=H[a+n>>2];d=I[g|0]<<2;g=H[d+m>>2];h=H[a+l>>2];a=I[i|0];F[b|0]=I[f+(a+H[d+o>>2]|0)|0];F[b+1|0]=I[f+(a+(g+h>>16)|0)|0];F[b+2|0]=I[f+(a+c|0)|0]}}function Jq(a,b,c,d){var e=0,f=0,g=0,h=0;e=H[c>>2];h=H[d>>2];a:{if(h>>>0>=b>>>0){break a}while(1){f=4;b:{c:{switch(F[a+h|0]-43|0){case 2:f=132;break b;case 3:f=16;break b;case 5:f=8;break b;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:f=264;break b;case 0:break b;case 26:case 58:break c;default:break a}}f=32}d:{e:{switch((f&60|e&3)-4|0){case 0:if(e&60){break a}g=e|f;break d;case 12:if(e&16){break a}g=e|f;if(e&8){break d}g=e&448|f|1;break d;case 4:g=(e&16?e&384|17:e)|f|64;break d;case 28:if(!(e&8)){break a}g=e&448|2;break d;case 5:g=e|f|64;break d;case 29:if(!(e&8)){break a}g=e&448|2;break d;case 2:if(e&60){break a}g=e|4;break d;case 6:break e;default:break a}}g=e|72}e=g;h=h+1|0;if((h|0)!=(b|0)){continue}break}h=b}H[c>>2]=e;H[d>>2]=h;return e>>>3&1}function xg(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=H[b+44>>2];a:{if(j){g=J[b+26>>1];b:{if((g|0)==8){f=I[H[b+56>>2]+(N(H[b+52>>2],d)+c|0)|0];break b}h=I[H[b+56>>2]+(N(H[b+52>>2],d)+(N(c,g)>>3)|0)|0];c:{switch(g-1|0){case 3:f=4-((c|0)%2<<2)&252;f=(h&15<>>f|0;break b;case 0:break c;default:break b}}f=7-((c|0)%8|0)|0;f=(h&1<>>f|0}h=H[b+4>>2];d:{if(!h){g=0;i=0;break d}g=0;f=f&255;i=0;if(f>>>0>=j>>>0){break d}f=h+(f<<2)|0;g=I[f+41|0]<<8;k=I[f+43|0]<<24;l=I[f+40|0];i=I[f+42|0]<<16}h=i;f=h|k|g|l;F[a|0]=f;F[a+1|0]=f>>>8;F[a+2|0]=f>>>16;F[a+3|0]=f>>>24;break a}f=(H[b+56>>2]+N(H[b+52>>2],d)|0)+N(c,3)|0;F[a|0]=I[f|0];F[a+1|0]=I[f+1|0];f=I[f+2|0];F[a+3|0]=0;F[a+2|0]=f}if(!(!H[b+928>>2]|!e)){F[a+3|0]=I[H[b+928>>2]+(N(H[b+16>>2],d)+c|0)|0]}}function vfa(a){a=a|0;var b=0,c=0,d=0;b=H[a+440>>2];a:{b:{if(H[b+8>>2]){H[b+8>>2]=0;zb[H[H[a+480>>2]>>2]](a,0);zb[H[H[a+452>>2]>>2]](a,2);c=2;break b}c:{if(H[a+136>>2]|!H[a+84>>2]){break c}if(!(!H[a+92>>2]|!H[a+108>>2])){H[a+480>>2]=H[b+24>>2];H[b+8>>2]=1;break c}if(H[a+100>>2]){H[a+480>>2]=H[b+20>>2];break c}c=H[a>>2];H[c+20>>2]=47;zb[H[c>>2]](a)}zb[H[H[a+468>>2]>>2]](a);zb[H[H[a+448>>2]+8>>2]](a);if(H[a+68>>2]){break a}if(!H[b+16>>2]){zb[H[H[a+476>>2]>>2]](a)}zb[H[H[a+472>>2]>>2]](a);if(H[a+84>>2]){zb[H[H[a+480>>2]>>2]](a,H[b+8>>2])}zb[H[H[a+452>>2]>>2]](a,H[b+8>>2]?3:0);c=0}zb[H[H[a+444>>2]>>2]](a,c)}c=H[a+8>>2];d:{if(!c){break d}d=H[b+12>>2];H[c+12>>2]=d;b=(H[b+8>>2]?2:1)+d|0;H[c+16>>2]=b;if(H[H[a+456>>2]+20>>2]|!H[a+64>>2]){break d}H[c+16>>2]=b+(H[a+108>>2]?2:1)}}function Wc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=H[a+112>>2];d=H[a+116>>2];e=!!(b|d);c=b;a:{i=e;f=H[a+4>>2];e=H[a+44>>2];b=f-e|0;h=b;g=b+H[a+120>>2]|0;b=H[a+124>>2]+(b>>31)|0;b=g>>>0>>0?b+1|0:b;if(!(i&(c>>>0<=g>>>0&(b|0)>=(d|0)|(b|0)>(d|0)))){h=rm(a);if((h|0)>=0){break a}f=H[a+4>>2];e=H[a+44>>2]}H[a+112>>2]=-1;H[a+116>>2]=-1;H[a+104>>2]=f;c=e-f|0;d=c+g|0;b=(c>>31)+b|0;H[a+120>>2]=d;H[a+124>>2]=d>>>0>>0?b+1|0:b;return-1}d=g+1|0;b=d?b:b+1|0;f=H[a+4>>2];e=H[a+8>>2];c=H[a+112>>2];g=H[a+116>>2];b:{if(!(c|g)){break b}i=c-d|0;c=g-(b+(d>>>0>c>>>0)|0)|0;j=e-f|0;g=j>>31;if((c|0)>=(g|0)&i>>>0>=j>>>0|(c|0)>(g|0)){break b}e=f+i|0}H[a+104>>2]=e;c=H[a+44>>2];e=c-f|0;d=e+d|0;b=(e>>31)+b|0;H[a+120>>2]=d;H[a+124>>2]=d>>>0>>0?b+1|0:b;if(c>>>0>=f>>>0){F[f-1|0]=h}return h}function b6(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;h=H[b+44>>2];i=H[b+24>>2];if(h>>>0>>0){H[b+44>>2]=i;h=i}l=-1;m=-1;n=f&24;a:{if(!n|(e|0)==1&(n|0)==24){break a}if(h){g=h-(F[b+43|0]<0?H[b+32>>2]:b+32|0)>>2;o=g;g=g>>31}b:{c:{switch(e|0){case 1:if(f&8){e=H[b+12>>2]-H[b+8>>2]>>2;j=e;k=e>>31;break b}e=i-H[b+20>>2]>>2;j=e;k=e>>31;break b;case 0:break b;case 2:break c;default:break a}}j=o;k=g}e=d+k|0;c=c+j|0;e=j>>>0>c>>>0?e+1|0:e;d=c;c=e;if(d>>>0>o>>>0&(e|0)>=(g|0)|(e|0)>(g|0)|(e|0)<0){break a}e=f&8;d:{if(!(c|d)){break d}if(H[b+12>>2]?0:e){break a}if(!(f&16)){break d}if(!i){break a}}if(e){H[b+16>>2]=h;H[b+12>>2]=H[b+8>>2]+(d<<2)}if(f&16){H[b+24>>2]=H[b+20>>2]+(d<<2)}l=d;m=c}H[a+8>>2]=l;H[a+12>>2]=m;H[a>>2]=0;H[a+4>>2]=0}function PU(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;e=xb-32|0;xb=e;f=H[a+28>>2];H[e+16>>2]=f;d=H[a+20>>2];H[e+28>>2]=c;H[e+24>>2]=b;b=d-f|0;H[e+20>>2]=b;f=b+c|0;j=2;a:{b:{b=e+16|0;d=Ua(H[a+60>>2],b|0,2,e+12|0)|0;if(d){H[197018]=d;d=-1}else{d=0}c:{if(!d){while(1){d=H[e+12>>2];if((d|0)==(f|0)){break c}if((d|0)<0){break b}g=H[b+4>>2];h=g>>>0>>0;i=(h<<3)+b|0;g=d-(h?g:0)|0;H[i>>2]=g+H[i>>2];i=(h?12:4)+b|0;H[i>>2]=H[i>>2]-g;f=f-d|0;b=h?b+8|0:b;j=j-h|0;d=Ua(H[a+60>>2],b|0,j|0,e+12|0)|0;if(d){H[197018]=d;d=-1}else{d=0}if(!d){continue}break}}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[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a>>2]=H[a>>2]|32;a=0;if((j|0)==2){break a}a=c-H[b+4>>2]|0}xb=e+32|0;return a|0}function co(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=H[b+4>>2];a:{if(h>>>0>a>>>0){break a}f=H[b+8>>2];if(f>>>0>>0|f-a>>>0<4){break a}g=H[b+12>>2];e=g-4|0;H[b+12>>2]=e;if((e|0)<=0){break a}d=F[a|0];e=I[a+3|0]|(I[a+1|0]<<16|d<<24|I[a+2|0]<<8);i=(e|0)!=0&(d|0)<0;d=!i;if(!e|i){break a}c=c+e|0;b:{if(c>>>0>>0|c>>>0>f>>>0|f-c>>>0<4){break b}e=g-8|0;H[b+12>>2]=e;if((e|0)<=0){break b}d=I[c+2|0]|I[c+3|0]<<8;g=(d<<8|d>>>8)&65535;d=I[c|0]|I[c+1|0]<<8;g=N(g,(d<<8|d>>>8)&65535);if(g>>>0>715827881){break b}d=1;if(!g){break a}c=c+4|0;if(c>>>0>>0|c>>>0>f>>>0){break b}f=f-c|0;c=N(g,6);if(f>>>0>>0){break b}c=e-c|0;H[b+12>>2]=c;if((c|0)>0){break a}}d=0;c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;d=1}return d}function aU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=xb-16|0;xb=e;H[197455]=0;da(3331,e+8|0,a|0)|0;d=H[197455];H[197455]=0;a:{b:{c:{if((d|0)!=1){d:{if(!c|!I[e+8|0]){break d}d=H[H[a>>2]-12>>2];H[197455]=0;d=H[(a+d|0)+24>>2];f=H[197455];H[197455]=0;e:{if((f|0)==1){break e}H[197455]=0;b=ca(3341,d|0,b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break e}if((b|0)==(c|0)){break d}b=H[H[a>>2]-12>>2];H[197455]=0;ba(3333,a+b|0,1);b=H[197455];H[197455]=0;if((b|0)!=1){break d}}b=ha(0)|0;_()|0;dm(e+8|0);break c}dm(e+8|0);break b}b=ha(0)|0;_()|0}sa(b|0)|0;b=H[H[a>>2]-12>>2];H[197455]=0;ia(1710,a+b|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}ra()}xb=e+16|0;return a|0}a=$()|0;_()|0;H[197455]=0;na(1711);b=H[197455];H[197455]=0;if((b|0)!=1){ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function _E(a,b){var c=0,d=0,e=0;a:{b:{c:{d=H[a+4>>2];c=H[d>>2];if((c|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=c>>>0){break b}a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){c=tc(H[d+8>>2],N(a,20));if(c){break c}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break a}H[d>>2]=a;H[d+8>>2]=c;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=729;H[a>>2]=b;H[a+16>>2]=0;c=I[b+2|0]|I[b+3|0]<<8;c=(b+2|0)+(((c<<8|c>>>8)&65535)<<1)|0;c=I[c+2|0]|I[c+3|0]<<8?c+4|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){b=((c<<8|c>>>8)&65535)+b|0}else{b=163632}Ee(b,a+8|0)}function ke(a){var b=0,c=0,d=0;a:{if(!ec(a,0,1)){b=H[a+72>>2];break a}b=H[a+64>>2];b:{if(b>>>0>2]){c=H[a+72>>2];d=H[a+84>>2];b=H[a+80>>2]+N(b,20)|0;break b}d=H[a+84>>2];c=H[a+72>>2];b=d+N(c?c-1|0:0,20)|0}c=N(c,20)+d|0;d=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=d;H[c+16>>2]=H[b+16>>2];d=H[b+12>>2];H[c+8>>2]=H[b+8>>2];H[c+12>>2]=d;H[c>>2]=9676;b=H[a+72>>2]+1|0;H[a+72>>2]=b}b=H[a+84>>2]+N(b?b-1|0:0,20)|0;G[b+16>>1]=J[b+16>>1]&65407;c:{if(I[a+61|0]){d:{if(H[a+84>>2]==H[a+80>>2]){b=H[a+72>>2];if((b|0)==H[a+64>>2]){break d}}if(!ec(a,1,1)){break c}c=H[a+80>>2]+N(H[a+64>>2],20)|0;d=H[c+4>>2];b=H[a+84>>2]+N(H[a+72>>2],20)|0;H[b>>2]=H[c>>2];H[b+4>>2]=d;H[b+16>>2]=H[c+16>>2];d=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=d;b=H[a+72>>2]}H[a+72>>2]=b+1}H[a+64>>2]=H[a+64>>2]+1}}function ft(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{if(c>>>0>357913940){break b}if(!c){return 1}if(K[b+4>>2]>a>>>0){break b}e=H[b+8>>2];if(e>>>0>>0){break b}g=e-a|0;e=N(c,12);if(g>>>0>>0){break b}e=H[b+12>>2]-e|0;H[b+12>>2]=e;if((e|0)<=0){break b}i=H[b+4>>2];j=H[d>>2];e=0;while(1){d=N(e,12)+a|0;if(d>>>0>>0){break a}f=H[b+8>>2];if(f>>>0>>0|f-d>>>0<12){break a}g=H[b+12>>2]-12|0;H[b+12>>2]=g;if((g|0)<=0){break a}c:{h=I[d+2|0]|I[d+3|0]<<8;if(!h){break c}d=I[d+4|0]|I[d+5|0]<<8|(I[d+6|0]<<16|I[d+7|0]<<24);d=(d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))+j|0;if(d>>>0>>0|d>>>0>f>>>0){break a}f=f-d|0;d=((h<<8|h>>>8)&65535)<<2;if(f>>>0>>0){break a}d=g-d|0;H[b+12>>2]=d;if((d|0)>0){break c}break a}f=1;e=e+1|0;if((e|0)!=(c|0)){continue}break}}return f}return 0}function RU(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){d=H[H[a+96>>2]+8>>2];H[a+20>>2]=0;H[a+24>>2]=0;c=H[a+100>>2];b=H[a+368>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+368>>2]=0;b=H[a+372>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+372>>2]=0;b=H[a+376>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+376>>2]=0;b=H[a+364>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+360>>2]=0;H[a+364>>2]=0;H[a+348>>2]=0;H[a+352>>2]=0;b=H[a+388>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+380>>2]=0;H[a+384>>2]=0;H[a+388>>2]=0;b=H[a+416>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+408>>2]=0;H[a+412>>2]=0;H[a+416>>2]=0;b=H[a+396>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+392>>2]=0;H[a+396>>2]=0;b=H[a+424>>2];if(b){while(1){e=H[b>>2];if(b){zb[H[c+8>>2]](c,b)}b=e;if(b){continue}break}}H[a+428>>2]=0;H[a+420>>2]=0;H[a+424>>2]=0;c=H[a+32>>2];if(c){zb[H[d+8>>2]](d,c)}H[a+32>>2]=0}}function OV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-16|0;xb=e;a:{b:{c=H[b+4>>2];c:{if(!c){H[a>>2]=0;F[a+11|0]=0;break c}b=H[b>>2];h=(c|0)/2|0;f=h+1|0;f=Qb((f|0)!=(f&1073741823)?-1:f<<2);d:{if((c|0)<2){c=f;break d}c=f;while(1){d=J[b>>1];if((d+9216&65535)>>>0<=64511){g=1}else{d=(J[b+2>>1]&1023|(d&1023)<<10)+65536|0;g=2}H[c>>2]=d;c=c+4|0;b=(g<<1)+b|0;i=g+i|0;if((i|0)<(h|0)){continue}break}}d=c-f|0;if((d|0)<0){break b}b=d>>2;e:{f:{if(d>>>0>=8){c=b+4&-4;d=Qb(c<<2);H[e+8>>2]=c|-2147483648;H[e>>2]=d;H[e+4>>2]=b;break f}F[e+11|0]=b;d=e;if((c|0)==(f|0)){break e}}H[197455]=0;Mb(d,f,b);c=H[197455];H[197455]=0;if((c|0)==1){break a}}H[(b<<2)+d>>2]=0;Kb(f);H[a+8>>2]=H[e+8>>2];b=H[e+4>>2];H[a>>2]=H[e>>2];H[a+4>>2]=b}xb=e+16|0;return}qd(e);X()}ha(0)|0;_()|0;Zb();X()}function M9(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;if((c|0)>0){a=H[a+12>>2];while(1){f=b;a:{b:{b=H[a>>2];e=b>>>14&1023;if(e){h=vh((+(e|0)+.5)*.010830424696249145+-8.317766166719343);if(!(h<=0)){break b}}H[f+8>>2]=0;H[f>>2]=0;H[f+4>>2]=0;break a}j=b&16383;c:{if(j>>>0>16288){d=.210526316;g=.473684211;break c}k=163;e=0;d:{e:{while(1){b=e+k>>1;l=j-G[(b<<3)+291622>>1]|0;f:{if((l|0)>0){e=b;break f}if((l|0)>=0){break e}k=b}if((k-e|0)>1){continue}break}b=e;g=+(j-G[(b<<3)+291622>>1]|0)+.5;break d}g=.5}d=g*.0035000001080334187+ +L[(b<<3)+291616>>2];g=(+(b|0)+.5)*.0035000001080334187+.016939999535679817}L[f+4>>2]=h;i=d*9;d=1/(d*6+g*-16+12);i=i*d;d=g*4*d;L[f>>2]=h*(i/d);L[f+8>>2]=h*((1-i-d)/d)}a=a+4|0;b=f+12|0;e=c>>>0>1;c=c-1|0;if(e){continue}break}}}function Dw(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;i=dc(65536e3,b<<16);if((i|0)>=655){n=H[a+52>>2];h=H[a+48>>2];j=H[a+44>>2];f=H[a+40>>2];k=H[a+36>>2];g=H[a+32>>2];l=H[a+28>>2];m=H[a+24>>2];a=c<<16;e=(a|0)>262144?a:262144;b=Q(e);c=m<<16;if((d|0)<=0){a=4915200}else{a=Rb(d<<16,i)}if(Q(a)+b>>>0<=16){b=h<<16}else{b=Rb(a,e)}a:{if((c|0)>(b|0)){a=dc(l<<16,e);break a}b:{c:{d:{d=g<<16;e:{if((b|0)<(d|0)){b=dc(c,e);if((g|0)==(m|0)){break e}a=ic(a-b|0,k-l|0,g-m|0)+dc(l<<16,e)|0;break a}c=f<<16;if((b|0)>=(c|0)){break d}}b=dc(d,e);if((f|0)==(g|0)){c=f<<16;break c}a=ic(a-b|0,j-k|0,f-g|0)+dc(k<<16,e)|0;break a}if((b|0)>=h<<16){break b}}b=dc(c,e);if((f|0)==(h|0)){break b}a=ic(a-b|0,n-j|0,h-f|0)+dc(j<<16,e)|0;break a}a=dc(n<<16,e)}a=dc(a,i)+32768>>16}else{a=0}return a}function EH(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;g=H[a+20>>2];a:{if((g|0)<=0){break a}f=H[a>>2];h=g-1|0;e=g+1<<1;b:{while(1){d=h+k|0;l=d>>>1|0;i=d&-2;j=i+f|0;d=I[j|0]|I[j+1|0]<<8;c:{if(((d<<8|d>>>8)&65535)>>>0>=b>>>0){d=e+j|0;d=I[d|0]|I[d+1|0]<<8;if(((d<<8|d>>>8)&65535)>>>0<=b>>>0){break b}h=l-1|0;break c}k=l+1|0}if((h|0)>=(k|0)){continue}break}d=0;break a}f=i>>1;d=i+H[a+12>>2]|0;e=I[d|0]|I[d+1|0]<<8;d:{if(e){d=0;e=f+(b-g|0)+(((e<<8|e>>>8)&65534)>>>1)|0;b=H[a+4>>2]+(f<<1)|0;b=I[b|0]|I[b+1|0]<<8;b=e-((b<<8|b>>>8)&65535)|0;if(b>>>0>=K[a+24>>2]){break d}b=H[a+16>>2]+(b<<1)|0;b=I[b|0]|I[b+1|0]<<8;if(!b){break d}b=(b<<8|b>>>8)&65535}d=0;a=H[a+8>>2]+(f<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)+b&65535;if(!a){break a}H[c>>2]=a;d=1}}return d|0}function W9(a){a=a|0;var b=0,c=0,d=0;c=xb-16|0;xb=c;H[a+652>>2]=1416;b=H[a+584>>2];a:{b:{c:{d:{e:{d=J[a+90>>1];switch(d-32844|0){case 0:break d;case 1:break e;default:break c}}if(!mB(a)){break b}if(J[a+88>>1]==34677){H[a+540>>2]=1484;a=1;f:{switch(H[b>>2]){case 0:H[b+20>>2]=1485;break a;case 1:H[b+20>>2]=1486;break a;case 3:break f;default:break a}}H[b+20>>2]=1487;break a}H[a+540>>2]=1488;a=1;g:{switch(H[b>>2]){case 0:H[b+20>>2]=1489;break a;case 1:H[b+20>>2]=1490;break a;case 3:break g;default:break a}}H[b+20>>2]=1491;break a}if(!lB(a)){break b}H[a+540>>2]=1492;a=1;h:{switch(H[b>>2]){case 0:H[b+20>>2]=1493;break a;case 3:break h;default:break a}}H[b+20>>2]=1494;break a}b=H[a>>2];a=H[a+628>>2];H[c+4>>2]=273726;H[c>>2]=d;Pb(a,b,272925,c)}a=0}xb=c+16|0;return a|0}function Uk(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;h=H[a+4>>2];if(c>>>0>=999999985){d=H[a>>2];H[d+20>>2]=56;H[d+24>>2]=1;zb[H[H[a>>2]>>2]](a)}d=c&7;d=d?8-d|0:0;if(b>>>0>=2){e=H[a>>2];H[e+24>>2]=b;H[e+20>>2]=15;zb[H[H[a>>2]>>2]](a)}d=c+d|0;i=(b<<2)+h|0;c=H[i+52>>2];a:{if(c){while(1){f=c;if(d>>>0<=K[c+8>>2]){b=f;break a}c=H[f>>2];if(c){continue}break}}b=H[(b<<2)+(f?255656:255648)>>2];c=999999984-d|0;c=b>>>0>>0?b:c;e=d+c|0;g=e+16|0;b=Tb(g);if(!b){while(1){if(c>>>0<=99){b=H[a>>2];H[b+20>>2]=56;H[b+24>>2]=2;zb[H[H[a>>2]>>2]](a)}b=c>>>1|0;c=b;e=b+d|0;g=e+16|0;b=Tb(g);if(!b){continue}break}}H[h+76>>2]=H[h+76>>2]+g;H[b+8>>2]=e;H[b>>2]=0;H[b+4>>2]=0;if(!f){H[i+52>>2]=b;break a}H[f>>2]=b}a=H[b+4>>2];H[b+4>>2]=a+d;H[b+8>>2]=H[b+8>>2]-d;return(a+b|0)+16|0}function Fi(a,b,c){var d=0,e=0,f=0;e=H[a+16>>2];if(!c){d=H[a+120>>2];f=H[d>>2];H[f+20>>2]=41;zb[H[f>>2]](d)}if(!H[a+108>>2]){d=(-1<>2]|d<<24-b;if((b|0)>=8){while(1){e=H[a+112>>2];H[a+112>>2]=e+1;F[e|0]=c>>>16;e=H[a+116>>2]-1|0;H[a+116>>2]=e;if(!e){d=H[a+120>>2];e=H[d+24>>2];if(!(zb[H[e+12>>2]](d)|0)){d=H[a+120>>2];f=H[d>>2];H[f+20>>2]=25;zb[H[f>>2]](d)}H[a+112>>2]=H[e>>2];H[a+116>>2]=H[e+4>>2]}e=b;a:{if((c&16711680)!=16711680){break a}b=H[a+112>>2];H[a+112>>2]=b+1;F[b|0]=0;b=H[a+116>>2]-1|0;H[a+116>>2]=b;if(b){break a}d=H[a+120>>2];b=H[d+24>>2];if(!(zb[H[b+12>>2]](d)|0)){d=H[a+120>>2];f=H[d>>2];H[f+20>>2]=25;zb[H[f>>2]](d)}H[a+112>>2]=H[b>>2];H[a+116>>2]=H[b+4>>2]}b=e-8|0;c=c<<8;if((e|0)>15){continue}break}}H[a+16>>2]=b;H[a+12>>2]=c}}function $q(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=H[a+24>>2];c=H[b+4>>2];e=H[b>>2];while(1){if(!c){if(!(zb[H[b+12>>2]](a)|0)){return 0}e=H[b>>2];c=H[b+4>>2]}d=e+1|0;c=c-1|0;if(I[e|0]!=255){while(1){e=H[a+460>>2];H[e+24>>2]=H[e+24>>2]+1;H[b+4>>2]=c;H[b>>2]=d;if(!c){if(!(zb[H[b+12>>2]](a)|0)){return 0}d=H[b>>2];c=H[b+4>>2]}c=c-1|0;e=I[d|0];d=d+1|0;if((e|0)!=255){continue}break}}while(1){if(!c){if(!(zb[H[b+12>>2]](a)|0)){return 0}d=H[b>>2];c=H[b+4>>2]}c=c-1|0;f=I[d|0];e=d+1|0;d=e;if((f|0)==255){continue}break}if(!f){d=H[a+460>>2];H[d+24>>2]=H[d+24>>2]+2;H[b+4>>2]=c;H[b>>2]=e;continue}break}d=H[H[a+460>>2]+24>>2];if(d){g=H[a>>2];H[g+24>>2]=d;H[g+20>>2]=119;H[H[a>>2]+28>>2]=f;zb[H[H[a>>2]+4>>2]](a,-1);H[H[a+460>>2]+24>>2]=0}H[a+436>>2]=f;H[b+4>>2]=c;H[b>>2]=e;return 1}function Sp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=O(0),j=0,k=0;H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;if(c){a:{b:{if(c>>>0>=268435456){H[197455]=0;ia(1869,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break b}X()}H[197455]=0;d=c<<4;f=aa(899,d|0)|0;g=H[197455];H[197455]=0;if((g|0)!=1){break a}}c=$()|0;_()|0;b=H[a>>2];if(b){H[a+4>>2]=b;Kb(b)}ea(c|0);X()}H[a>>2]=f;d=d+f|0;H[a+8>>2]=d;H[a+4>>2]=d;g=b+4|0;k=H[b>>2]-12|0;while(1){d=g+H[k>>2]|0;a=H[d+4>>2];b=(h<<4)+f|0;j=H[d+8>>2];if(j>>>0<=a+3>>>0){e=0}else{i=(x(2,I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24)),B());a=a+4|0;H[d+4>>2]=a;e=+i}M[b>>3]=e;if(a+3>>>0>>0){i=(x(2,I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24)),B());H[d+4>>2]=a+4;e=+i}else{e=0}M[b+8>>3]=e;h=h+1|0;if((h|0)!=(c|0)){continue}break}}}function cda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(c>>>0>=65534){d=H[a>>2];H[d+20>>2]=12;zb[H[d>>2]](a)}d=H[a+24>>2];e=H[d>>2];H[d>>2]=e+1;F[e|0]=255;e=H[d+4>>2]-1|0;H[d+4>>2]=e;a:{if(e){break a}if(zb[H[d+12>>2]](a)|0){break a}d=H[a>>2];H[d+20>>2]=25;zb[H[d>>2]](a)}d=H[a+24>>2];e=H[d>>2];H[d>>2]=e+1;F[e|0]=b;b=H[d+4>>2]-1|0;H[d+4>>2]=b;b:{if(b){break b}if(zb[H[d+12>>2]](a)|0){break b}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];d=H[b>>2];H[b>>2]=d+1;e=d;d=c+2|0;F[e|0]=d>>>8;c=H[b+4>>2]-1|0;H[b+4>>2]=c;c:{if(c){break c}if(zb[H[b+12>>2]](a)|0){break c}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=d;c=H[b+4>>2]-1|0;H[b+4>>2]=c;d:{if(c){break d}if(zb[H[b+12>>2]](a)|0){break d}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}}function sba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=I[a+11|0];e=d+7>>>3|0;g=H[a+4>>2];a:{if(!d){break a}a=e>>>0>1?e:1;d=a&3;if(a-1>>>0>=3){f=a&60;a=0;while(1){F[b|0]=I[b|0]+(I[c|0]>>>1|0);F[b+1|0]=I[b+1|0]+(I[c+1|0]>>>1|0);F[b+2|0]=I[b+2|0]+(I[c+2|0]>>>1|0);F[b+3|0]=I[b+3|0]+(I[c+3|0]>>>1|0);b=b+4|0;c=c+4|0;a=a+4|0;if((f|0)!=(a|0)){continue}break}}if(!d){break a}a=0;while(1){F[b|0]=I[b|0]+(I[c|0]>>>1|0);b=b+1|0;c=c+1|0;a=a+1|0;if((d|0)!=(a|0)){continue}break}}b:{if((e|0)==(g|0)){break b}f=g-e|0;h=f&1;d=0;a=0-e|0;if((e+1|0)!=(g|0)){e=f&-2;while(1){F[b|0]=I[b|0]+(I[a+b|0]+I[c|0]>>>1|0);F[b+1|0]=I[b+1|0]+(I[a+(b+1|0)|0]+I[c+1|0]>>>1|0);b=b+2|0;c=c+2|0;d=d+2|0;if((e|0)!=(d|0)){continue}break}}if(!h){break b}F[b|0]=I[b|0]+(I[a+b|0]+I[c|0]>>>1|0)}}function lB(a){var b=0,c=0,d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;e=H[a+584>>2];b=H[e>>2];if((b|0)==-1){d=J[a+86>>1]|(J[a+98>>1]<<3|J[a+84>>1]<<6);b=d-1033|0;c=1;a:{if(!(b>>>0>3|(b|0)==2)){break a}b:{switch(d-521|0){case 0:case 3:c=3;break a;default:c=0;if((d|0)==2059){break a}break;case 1:case 2:break b}}c=-1}b=c;H[e>>2]=b}c=4;c:{d:{e:{switch(b|0){case 3:c=1;break d;default:Pb(H[a+628>>2],H[a>>2],277048,0);break c;case 0:break d;case 1:break e}}c=2}H[e+8>>2]=c;g=1;f:{if(I[a+13|0]&4){c=H[a+68>>2];d=gma(H[a+72>>2],0,c,0);b=(yb|0)!=0;break f}c=H[a+56>>2];d=gma(H[a+100>>2],0,c,0);b=(yb|0)!=0}d=c?b?0:d:d;H[e+16>>2]=d;b=d+d|0;if(d?d>>>0>b>>>0?0:b:b){b=e;e=Tb(d<<1);H[b+12>>2]=e;if(e){break c}}e=H[a+628>>2];H[f>>2]=H[a>>2];Pb(e,293008,275314,f);g=0}xb=f+16|0;return g}function Iz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;c=xb-16|0;xb=c;b=b+36|0;H[c+8>>2]=b;H[197455]=0;H[c+12>>2]=64;ba(3283,d|0,c+8|0);e=H[197455];H[197455]=0;if((e|0)==1){a=$()|0;_()|0;if(b){Kb(b)}ea(a|0);X()}xb=c+16|0;a:{b:{e=F[d+11|0]<0?H[d>>2]:d;c=ad(e);if(c>>>0>=1073741808){H[197455]=0;ia(1640,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break b}X()}c:{d:{if(c>>>0>=2){H[197455]=0;f=c+4&-4;b=aa(899,f<<2)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}H[a>>2]=b;H[a+4>>2]=c;H[a+8>>2]=f|-2147483648;a=b;break d}F[a+11|0]=c;if(!c){break c}}H[197455]=0;Mb(a,e,c);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(c<<2)+a>>2]=0;if(F[d+11|0]<0){Kb(H[d>>2])}xb=d+16|0;return}a=$()|0;_()|0;if(F[d+11|0]<0){Kb(H[d>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function ls(a,b){var c=0,d=0,e=O(0),f=O(0),g=0,h=0,i=0,j=O(0),k=O(0),l=0;g=M[b+8>>3];h=M[b>>3];b=H[a+8>>2];if(b){h=h+M[b>>3];g=g+M[b+8>>3]}b=H[a+4>>2];c=H[a>>2];l=H[c+20>>2];d=H[c+16>>2];i=H[d+28>>2];if(!i){i=kc(d);c=H[a>>2];d=H[c+16>>2]}a=H[c+24>>2];c=H[d+28>>2];if(!c){c=kc(d)}j=O(O(O(h)*O(l|0))/O(i>>>0));d=b+16|0;k=O(O(O(g)*O(a|0))/O(c>>>0));c=H[b+12>>2];a=H[b+8>>2];a:{b:{if(I[b+4|0]){if(!H[d>>2]){break a}e=L[b+20>>2];f=L[b+24>>2];if(e==L[b+28>>2]&f==L[b+32>>2]){break b}zb[H[a+16>>2]](a,c,d,e,f,H[a+36>>2]);break b}j=O(O(k*L[b>>2])+j);if(!H[b+16>>2]){break a}e=L[b+20>>2];f=L[b+24>>2];if(e==L[b+28>>2]&f==L[b+32>>2]){break b}zb[H[a+16>>2]](a,c,d,e,f,H[a+36>>2])}zb[H[a+28>>2]](a,c,d,H[a+48>>2]);H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0}L[b+32>>2]=k;L[b+28>>2]=j}function WB(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d=H[a+708>>2];switch(d|0){case 0:break a;case 1:break c;default:break b}}mc(a,c);return}d=d-1|0;H[a+708>>2]=d;if((d|0)!=1){break a}Xb(a,268693);mc(a,c);return}d=H[a+200>>2];if(d&1){if(d&4){H[a+200>>2]=d|8}cc(a,H[a+740>>2]);d=xd(a,c+1|0);H[a+740>>2]=d;if(!d){Xb(a,268751);return}vd(a,d,c);xc(a,d,c);e=mc(a,0);d=H[a+740>>2];if(e){cc(a,d);H[a+740>>2]=0;return}f=c+d|0;F[f|0]=0;c=d;while(1){e=c;c=c+1|0;if(I[e|0]){continue}break}c=xd(a,28);if(!c){Xb(a,268783);cc(a,H[a+740>>2]);H[a+740>>2]=0;return}H[c+24>>2]=0;H[c+4>>2]=d;H[c>>2]=-1;H[c+16>>2]=0;H[c+20>>2]=0;d=e+((e|0)!=(f|0))|0;H[c+8>>2]=d;g=c,h=ac(d),H[g+12>>2]=h;b=Bq(a,b,c);cc(a,H[a+740>>2]);H[a+740>>2]=0;cc(a,c);if(b){Xb(a,268823)}return}hc(a,268726);X()}function og(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=xb-32|0;xb=e;H[a+664>>2]=0;d=H[a+660>>2];a:{if(d){d=HB(a,H[a+656>>2],c+d|0,4,287216);break a}d=Md(a,c,4,287216)}H[a+656>>2]=d;b:{if(!d){c=0;Pb(H[a+628>>2],287184,273296,0);break b}if((c|0)>0){d=d+(H[a+660>>2]<<2)|0;while(1){i=N(h,20)+b|0;f=H[i+8>>2];j=H[i>>2];H[e+24>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e+4>>2]=e+8;g=H[a+664>>2];c:{if(!(!g|H[g>>2]!=(j|0))&(!f|(f|0)==H[g+8>>2])){break c}g=H[a+656>>2];d:{if(!g){break d}H[e+16>>2]=f;H[e+8>>2]=j;f=Ap(e+4|0,g,H[a+660>>2]);if(!f){H[a+664>>2]=0;break d}f=H[f>>2];H[a+664>>2]=f;if(f){break c}}H[d>>2]=i;H[a+660>>2]=H[a+660>>2]+1;d=d+4|0}h=h+1|0;if((h|0)!=(c|0)){continue}break}d=H[a+656>>2]}th(d,H[a+660>>2],4,1459)}xb=e+32|0;return c}function AF(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;a:{b:{c:{d:{d=I[c|0]|I[c+1|0]<<8;switch(((d<<8|d>>>8)&65535)-1|0){case 1:break c;case 0:break d;default:break a}}d=a;a=I[c+2|0]|I[c+3|0]<<8;a=d-((a<<8|a>>>8)&65535)|0;d=((a<<1)+c|0)+6|0;c=I[c+4|0]|I[c+5|0]<<8;a=a>>>0<((c<<8|c>>>8)&65535)>>>0?d:163632;break b}i=164024;e=I[c+2|0]|I[c+3|0]<<8;e:{if(!e){break e}e=((e<<8|e>>>8)&65535)-1|0;d=0;while(1){g=e+d>>>1|0;h=N(g,6)+c|0;f=h+4|0;f=I[f|0]|I[f+1|0]<<8;f:{if(((f<<8|f>>>8)&65535)>>>0<=a>>>0){d=I[h+6|0]|I[h+7|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>>0){d=g+1|0;break f}i=(N(g,6)+c|0)+4|0;break e}e=g-1|0}if((e|0)>=(d|0)){continue}break}}a=i+4|0}a=I[a|0]|I[a+1|0]<<8;e=(a<<8|a>>>8)&65535}a=I[b|0]|I[b+1|0]<<8;return((a<<8|a>>>8)&65535)==(e|0)|0}function ql(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{switch(I[a|0]){case 0:if(!b|c>>>0<2){break a}f=1;a=a+1|0;while(1){d=(a+(f<<1)|0)-2|0;d=I[d|0]|I[d+1|0]<<8;if(((d<<8|d>>>8)&65535)==(b|0)){return f}f=f+1|0;if((f|0)!=(c|0)){continue}break};break a;case 1:if(!b|c>>>0<2){break a}d=1;g=a+1|0;while(1){a=g+N(f,3)|0;e=I[a+2|0];a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)&65535;if(!(a>>>0>b>>>0|a+e>>>0>>0)){return(b+d|0)-a|0}f=f+1|0;d=(d+e|0)+1|0;if(d>>>0>>0){continue}break};break a;case 2:break b;default:break a}}if(!b|c>>>0<2){break a}d=1;while(1){e=(f<<2)+a|0;g=I[e+3|0]|I[e+4|0]<<8;g=(g<<8|g>>>8)&65535;e=I[e+1|0]|I[e+2|0]<<8;e=(e<<8|e>>>8)&65535;if(!(e>>>0>b>>>0|e+g>>>0>>0)){return(b+d|0)-e|0}f=f+1|0;d=(d+g|0)+1|0;if(d>>>0>>0){continue}break}}return 0}function $ea(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;a:{if((d|0)<=0){break a}f=H[a+480>>2];e=H[f+48>>2];m=H[a+112>>2];if(m){a=H[f+24>>2];n=H[a+8>>2];o=H[a+4>>2];p=H[a>>2];while(1){a=g<<2;h=H[a+c>>2];a=H[a+b>>2];q=H[f+60>>2];r=H[f+56>>2];s=H[f+52>>2];i=0;j=m;while(1){k=i<<2;l=e<<6;F[h|0]=(I[(H[k+(r+l|0)>>2]+I[a+1|0]|0)+o|0]+I[(H[(l+s|0)+k>>2]+I[a|0]|0)+p|0]|0)+I[(H[(l+q|0)+k>>2]+I[a+2|0]|0)+n|0];h=h+1|0;a=a+3|0;i=i+1&15;j=j-1|0;if(j){continue}break}e=e+1&15;H[f+48>>2]=e;g=g+1|0;if((g|0)!=(d|0)){continue}break}break a}if(d-1>>>0>=7){b=d&-8;a=0;while(1){e=e+8&15;a=a+8|0;if((b|0)!=(a|0)){continue}break}}b=d&7;if(b){a=0;while(1){e=e+1&15;a=a+1|0;if((b|0)!=(a|0)){continue}break}}H[f+48>>2]=e}}function lc(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;if(b){f=H[a- -64>>2];a:{b:{c:{h=H[a+60>>2];if((h|0)>=0){e=f+1|0;g=(e|0)>0?e:0;if(g>>>0<=h>>>0){break b}e=h;while(1){e=((e>>>1|0)+e|0)+8|0;if(g>>>0>=e>>>0){continue}break}if(!(e>>>0>>0|e>>>0>153391688)){f=tc(H[a+68>>2],N(e,28));if(f){break c}f=H[a+64>>2]}H[a+60>>2]=-1}H[196254]=H[40914];e=H[40913];H[196252]=H[40912];H[196253]=e;e=H[40911];H[196250]=H[40910];H[196251]=e;e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break a}H[a+60>>2]=e;H[a+68>>2]=f;f=H[a+64>>2]}if(f>>>0>>0){Nb(H[a+68>>2]+N(f,28)|0,0,N(g-f|0,28))}H[a+64>>2]=g;f=g;e=(H[a+68>>2]+N(f,28)|0)-28|0}H[e+12>>2]=c;H[e+8>>2]=d;H[e+4>>2]=f;H[e>>2]=b;H[e+16>>2]=0-(c&1)&d;H[e+20>>2]=H[a+52>>2];H[e+24>>2]=H[a+56>>2]}}function Oha(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=O(0),k=0,l=0,m=0;g=xb-944|0;xb=g;e=Bd(g,0);h=H[a+8>>2];k=H[a+16>>2];l=H[a+12>>2];f=H[a+4>>2];H[197455]=0;f=Na(920,e|0,k|0,f|0,h|0,32,f<<2,(l^-1)>>>31|0,1)|0;h=H[197455];H[197455]=0;a:{b:{if((h|0)==1){break b}if(f){c:{if((d|0)!=3){break c}i=M[a+32>>3];if(i==-1){break c}H[197455]=0;j=O(i);L[e+344>>2]=j>O(0)?j:O(0);a=H[197455];H[197455]=0;if((a|0)==1){break b}}H[197455]=0;m=la(925,e|0,b|0,c|0,d|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}}H[e>>2]=245276;H[197455]=0;aa(917,e|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;aa(918,e|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}xb=g+944|0;return m|0}a=$()|0;_()|0;Zf(e);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Daa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;c=xb-16|0;xb=c;d=(g|0)/2|0;if(f>>>0>=2){o=d<<2;g=((e<<2)+b|0)+(h<<2)|0;d=(h<<1)+e<<2;while(1){h=e;while(1){j=I[i+2|0];k=I[i+3|0];l=c+12|0;m=c+8|0;n=c+4|0;qc(H[a+68>>2],I[i|0],j,k,l,m,n);H[b>>2]=H[c+12>>2]|H[c+8>>2]<<8|H[c+4>>2]<<16|-16777216;qc(H[a+68>>2],I[i+1|0],j,k,l,m,n);H[g>>2]=H[c+12>>2]|H[c+8>>2]<<8|H[c+4>>2]<<16|-16777216;i=i+4|0;g=g+4|0;b=b+4|0;h=h-1|0;if(h){continue}break}i=i+o|0;g=d+g|0;b=b+d|0;f=f-2|0;if(f>>>0>1){continue}break}}if((f|0)==1){while(1){qc(H[a+68>>2],I[i|0],I[i+2|0],I[i+3|0],c+12|0,c+8|0,c+4|0);H[b>>2]=H[c+12>>2]|H[c+8>>2]<<8|H[c+4>>2]<<16|-16777216;i=i+4|0;b=b+4|0;e=e-1|0;if(e){continue}break}}xb=c+16|0}function oC(a,b,c,d,e){var f=0,g=0,h=0,i=0;if(I[a+206|0]&32){el(a+212|0);H[a+204>>2]=H[a+204>>2]&-2097153}H[a+212>>2]=b;b=0;H[a+216>>2]=0;h=a+212|0;a:{if(!d){while(1){if(!(!c|b)){H[a+216>>2]=c;c=0}b=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=b;b=Vh(h,0);d=H[a+272>>2]-H[a+228>>2]|0;f=(b>>>0<2?(d|0)>0?d:0:0)+f|0;if(b){break a}b=H[a+216>>2];continue}}while(1){if(!(!c|b)){H[a+216>>2]=c;c=0}b=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=b;b=Vh(h,0);b:{if(b>>>0>1){break b}g=H[a+272>>2]-H[a+228>>2]|0;if((g|0)<=0){break b}if(e>>>0>f>>>0){i=e-f|0;Ob(d+f|0,H[a+268>>2],g>>>0>>0?g:i)}f=f+g|0}if(b){break a}b=H[a+216>>2];continue}}H[a+216>>2]=0;el(h);if((b|0)!=1){c=a;a=H[a+236>>2];AC(c,a?a:(b|0)==-5?270012:(b|0)==-3?270050:270086);f=0}return f}function mz(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;if(!a){return 0}e=H[d>>2];a:{if((e|0)<0){break a}f=H[d+8>>2];if((f|0)<0){break a}h=H[d+4>>2];if((h|0)<0){break a}g=H[d+12>>2];if((g|0)<0){break a}if((g-h|0)>(c|0)){g=c+h|0;H[d+12>>2]=g}if((f-e|0)>(b|0)){f=b+e|0;H[d+8>>2]=f}if((g-h|0)==(c|0)&(f-e|0)==(b|0)){break a}c=(e|0)<(f|0)?f:e;d=(e|0)>(f|0)?f:e;f=(h|0)<(g|0)?g:h;e=(h|0)>(g|0)?g:h;i=Qb(N(c-d|0,f-e|0)<<2);e=e<<2;j=f<<2;if(e>>>0>=j>>>0){break a}k=c<<2;d=d<<2;if(k>>>0<=d>>>0){break a}f=0;while(1){l=N(b,e);c=d;while(1){h=f+i|0;g=c+l|0;F[h|0]=I[g+a|0];F[h+1|0]=I[(g|1)+a|0];F[h+2|0]=I[(g|2)+a|0];F[h+3|0]=I[(g|3)+a|0];f=f+4|0;c=c+4|0;if(k>>>0>c>>>0){continue}break}e=e+4|0;if(j>>>0>e>>>0){continue}break}}return i|0}function Zp(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=H[a+52>>2];c=I[a+32|0];a:{b:{c:{if(c){break c}d=H[a+24>>2];if(d>>>0>=K[a+28>>2]){break c}if(K[a+56>>2]>2]){break b}}if(K[a+56>>2]>=K[a+60>>2]){b=b+1|0;H[a+52>>2]=b;e=-1;if(b>>>0>16){break a}H[a+60>>2]=K[a+40>>2]>b>>>0?(1<>2]+1|0}if(c){H[a+60>>2]=256;H[a+52>>2]=9;F[a+32|0]=0;b=9}e=-1;if(H[a+4>>2]){break a}d=0;c=nq(H[a+164>>2],a+8|0,b);H[a+24>>2]=0;f=c<<3;H[a+28>>2]=f;H[a+36>>2]=c+H[a+36>>2];g=H[a+52>>2];H[a+4>>2]=g>>>0>c>>>0;if(f>>>0<=g>>>0){break a}H[a+28>>2]=(f|1)-g;if(!c){break a}}H[a+24>>2]=b+d;g=(d>>>3|0)+a|0;c=g+8|0;f=d&7;e=I[c|0]>>>f|0;d=8-f|0;a=b-d|0;if(a>>>0<8){b=g+9|0}else{a=a-8|0;e=I[c+1|0]<>2],273254,273631,0);a=0;break a}b=Tb(112);H[a+584>>2]=b;if(!b){b=H[a+628>>2];H[c>>2]=H[a>>2];Pb(b,270863,274066,c);a=0;break a}d=H[a+8>>2];H[b>>2]=d;H[b+48>>2]=H[a+672>>2];H[a+672>>2]=1506;H[b+52>>2]=H[a+668>>2];H[a+668>>2]=1507;H[b+56>>2]=H[a+676>>2];H[a+676>>2]=1508;H[b+44>>2]=0;H[b+36>>2]=0;H[b+28>>2]=0;H[b+32>>2]=0;if(!d){H[a+12>>2]=H[a+12>>2]|256}H[b+80>>2]=0;H[c+16>>2]=1509;rc(a,65540,c+16|0);H[H[a+584>>2]+96>>2]=0;H[a+556>>2]=1510;H[a+548>>2]=1510;H[a+540>>2]=1510;H[a+520>>2]=1511;H[a+516>>2]=1512;H[a+572>>2]=1513;H[a+564>>2]=1514;H[a+560>>2]=1515;H[a+552>>2]=1515;H[a+544>>2]=1515;H[a+536>>2]=1516;H[a+532>>2]=1517;H[a+524>>2]=1512;a=1}xb=c+32|0;return a}function ju(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;a:{if(b>>>0>c>>>0){break a}f=H[a+12>>2];if(f>>>0<=d>>>0|e>>>0>=f>>>0){break a}g=H[a+8>>2];f=H[g+(d<<3)>>2];g=H[g+(e<<3)>>2];b:{if((f|0)<=(g|0)){i=g;g=f;f=e;e=d;break b}i=f;f=d}j=H[a+4>>2];f=f<<3;h=H[j+f>>2];d=H[a>>2];l=H[f+d>>2];n=h-l|0;e=e<<3;k=H[e+j>>2];m=H[d+e>>2];o=k-m|0;if(!((h|0)==(k|0)|(g|0)==(i|0))){p=i-g|0;e=h-k|0;f=0;i=0;while(1){h=b<<3;d=H[h+d>>2];c:{if((d|0)<=(m|0)){d=d+o|0;break c}if((d|0)>=(l|0)){d=d+n|0;break c}if(!f){i=dc(e,p)}d=Rb(H[H[a+8>>2]+h>>2]-g|0,i)+k|0;j=H[a+4>>2];f=1}H[h+j>>2]=d;b=b+1|0;if(c>>>0>>0){break a}d=H[a>>2];continue}}while(1){a=b<<3;e=H[a+d>>2];H[a+j>>2]=(e|0)>(m|0)?(e|0)<(l|0)?k:e+n|0:e+o|0;b=b+1|0;if(c>>>0>=b>>>0){continue}break}}}function QD(a){var b=0,c=0;b=xb-65808|0;xb=b;H[b+44>>2]=0;H[b+48>>2]=0;a:{if(!a){RD(b+8|0);break a}H[b+48>>2]=H[a+40>>2];c=H[a+36>>2];H[b+40>>2]=H[a+32>>2];H[b+44>>2]=c;c=H[a+28>>2];H[b+32>>2]=H[a+24>>2];H[b+36>>2]=c;c=H[a+20>>2];H[b+24>>2]=H[a+16>>2];H[b+28>>2]=c;c=H[a+12>>2];H[b+16>>2]=H[a+8>>2];H[b+20>>2]=c;c=H[a+4>>2];H[b+8>>2]=H[a>>2];H[b+12>>2]=c}c=H[b+36>>2];a=H[b+8>>2];if(!a){a=H[b+40>>2]}a=zb[a|0](c,0,11)|0;H[b+52>>2]=a;b:{if(!a){a=0;break b}a=Uh(b+8|0,a);H[b+128>>2]=0;H[b+64>>2]=0;H[b+65776>>2]=a;H[b+65780>>2]=yb;H[b+56>>2]=0;H[b+60>>2]=0;a=Tb(65800);c=b+65792|0;H[c>>2]=0;H[c+4>>2]=0;H[b+65784>>2]=0;H[b+65788>>2]=0;if(!a){zb[H[b+28>>2]](H[b+36>>2],H[b+52>>2])|0;a=0;break b}H[b+65800>>2]=0;Ob(a,b+8|0,65800)}xb=b+65808|0;return a}function yq(a){var b=0,c=0,d=0;Id(a+40|0,0,4);b=H[a+152>>2];if(b){Kb(b);H[a+152>>2]=0}b=H[a+156>>2];if(b){Kb(b);H[a+156>>2]=0}b=H[a+160>>2];if(b){Kb(b);H[a+160>>2]=0}b=H[a+172>>2];if(b){Kb(b);H[a+172>>2]=0}b=H[a+200>>2];if(b){Kb(b);H[a+200>>2]=0}b=H[a+232>>2];if(b){Kb(b);H[a+232>>2]=0}b=H[a+212>>2];if(b){Kb(b);H[a+212>>2]=0}b=H[a+216>>2];if(b){Kb(b);H[a+216>>2]=0}b=H[a+220>>2];if(b){Kb(b);H[a+220>>2]=0}b=H[a+224>>2];if(b){Kb(b);H[a+224>>2]=0}b=H[a+184>>2];if(b){Kb(b);H[a+184>>2]=0}b=H[a+188>>2];if(b){Kb(b);H[a+188>>2]=0}H[a+44>>2]=H[a+44>>2]&-385;c=H[a+236>>2];if((c|0)>0){b=0;while(1){d=H[(H[a+240>>2]+N(b,12)|0)+8>>2];if(d){Kb(d);c=H[a+236>>2]}b=b+1|0;if((c|0)>(b|0)){continue}break}}H[a+236>>2]=0;b=H[a+240>>2];if(b){Kb(b);H[a+240>>2]=0}}function O6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{c=H[a+4>>2];g=H[a>>2];f=(c-g|0)/12|0;d=f+1|0;if(d>>>0<357913942){e=(H[a+8>>2]-g|0)/12|0;h=e<<1;e=e>>>0<178956970?d>>>0>>0?h:d:357913941;if(e){if(e>>>0>=357913942){break a}i=Qb(N(e,12))}d=N(f,12)+i|0;f=H[b+4>>2];H[d>>2]=H[b>>2];H[d+4>>2]=f;H[d+8>>2]=H[b+8>>2];H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;f=d+12|0;if((c|0)!=(g|0)){while(1){c=c-12|0;b=H[c+4>>2];d=d-12|0;H[d>>2]=H[c>>2];H[d+4>>2]=b;H[d+8>>2]=H[c+8>>2];H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;if((c|0)!=(g|0)){continue}break}c=H[a>>2]}H[a>>2]=d;H[a+8>>2]=N(e,12)+i;b=H[a+4>>2];H[a+4>>2]=f;if((b|0)!=(c|0)){while(1){a=b-12|0;if(F[b-1|0]<0){Kb(H[a>>2])}b=a;if((c|0)!=(a|0)){continue}break}}if(c){Kb(c)}return}bd(a);X()}Td(239085);X()}function jea(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=H[a+448>>2];if(H[b+16>>2]){g=b;a:{b:{if(!H[a+160>>2]|(!H[a+80>>2]|!H[a+224>>2])){break b}c=H[b+112>>2];if(!c){c=zb[H[H[a+4>>2]>>2]](a,1,N(H[a+36>>2],24))|0;H[b+112>>2]=c}if(H[a+36>>2]<=0){break b}d=H[a+216>>2];while(1){b=H[d+80>>2];if(!b|!J[b>>1]|(!J[b+2>>1]|!J[b+16>>1])){break b}if(!J[b+4>>1]|(!J[b+32>>1]|!J[b+18>>1])){break b}b=H[a+160>>2]+(e<<8)|0;if(H[b>>2]<0){break b}H[c+4>>2]=H[b+4>>2];h=H[b+4>>2];H[c+8>>2]=H[b+8>>2];i=H[b+8>>2];H[c+12>>2]=H[b+12>>2];j=H[b+12>>2];H[c+16>>2]=H[b+16>>2];k=H[b+16>>2];H[c+20>>2]=H[b+20>>2];f=H[b+20>>2]|k|(h|i|j)?1:f;d=d+88|0;c=c+24|0;e=e+1|0;if((e|0)>2]){continue}break}b=1303;if(f){break a}}b=1299}H[g+12>>2]=b}H[a+156>>2]=0}function Uka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H[b+100>>2];c=H[H[c+80>>2]+N(H[c+64>>2],20)>>2];e=I[a+2|0]|I[a+3|0]<<8;if(e){d=((e<<8|e>>>8)&65535)+a|0}else{d=163632}f=Gc(d,c);a:{if((f|0)==-1){break a}a=I[a+4|0]|I[a+5|0]<<8;e=c+(a<<8|a>>>8)&65535;a=H[b+100>>2];c=H[a+80>>2]+N(H[a+64>>2],20)|0;a=J[c+12>>1]|16;if(I[b+140|0]){a=Ye(H[b+108>>2],e)|a&112}G[c+12>>1]=a;b=H[b+100>>2];if(!ec(b,1,1)){break a}a=H[b+64>>2];b:{if(a>>>0>2]){c=H[b+72>>2];d=H[b+84>>2];a=H[b+80>>2]+N(a,20)|0;break b}d=H[b+84>>2];c=H[b+72>>2];a=d+N(c?c-1|0:0,20)|0}c=N(c,20)+d|0;d=H[a+4>>2];H[c>>2]=H[a>>2];H[c+4>>2]=d;H[c+16>>2]=H[a+16>>2];d=H[a+12>>2];H[c+8>>2]=H[a+8>>2];H[c+12>>2]=d;H[c>>2]=e;H[b+64>>2]=H[b+64>>2]+1;H[b+72>>2]=H[b+72>>2]+1}return(f|0)!=-1|0}function Od(){var a=0,b=0,c=0,d=0,e=0,f=0;if(I[790064]){return H[197515]}b=xb-32|0;xb=b;a:{b:{while(1){d=Zw(a,1<>2]=d;if((d|0)!=-1){a=a+1|0;if((a|0)==6){break b}continue}break}break a}c=769064;if(!md(b+8|0,769064,24)){break a}c=769088;if(!md(b+8|0,769088,24)){break a}a=0;if(!I[789892]){while(1){e=(a<<2)+789844|0,f=Zw(a,239897),H[e>>2]=f;a=a+1|0;if((a|0)!=6){continue}break}F[789892]=1;H[197467]=H[197461]}c=789844;if(!md(b+8|0,789844,24)){break a}c=789868;if(!md(b+8|0,789868,24)){break a}c=Tb(24);if(!c){break a}a=H[b+12>>2];H[c>>2]=H[b+8>>2];H[c+4>>2]=a;a=H[b+28>>2];H[c+16>>2]=H[b+24>>2];H[c+20>>2]=a;a=H[b+20>>2];H[c+8>>2]=H[b+16>>2];H[c+12>>2]=a}xb=b+32|0;F[790064]=1;H[197515]=c;return c|0}function $v(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;H[d>>2]=0;if(!(!(e|f)|(a|0)<655)){o=d;p=(e|0)/2|0;if(f){m=H[g+28>>2];j=H[g+24>>2];k=H[g+20>>2];h=H[g+16>>2];l=H[g+12>>2];i=H[g+8>>2];f=H[g+4>>2];g=H[g>>2];q=d;e=Rb(c+e|0,a);if(Q(b)+Q(e)>>>0<=16){c=j<<16}else{c=Rb(e,b)}d=g<<16;a:{if((c|0)<(d|0)){b=dc(f<<16,b);break a}b:{c:{d:{n=i<<16;e:{if((n|0)>(c|0)){c=dc(d,b);if((g|0)==(i|0)){break e}b=ic(e-c|0,l-f|0,i-g|0)+dc(f<<16,b)|0;break a}f=h<<16;if((c|0)>=(f|0)){break d}}c=dc(n,b);if((h|0)==(i|0)){f=h<<16;break c}b=ic(e-c|0,k-l|0,h-i|0)+dc(l<<16,b)|0;break a}if((c|0)>=j<<16){break b}}c=dc(f,b);if((h|0)==(j|0)){break b}b=ic(e-c|0,m-k|0,j-h|0)+dc(k<<16,b)|0;break a}b=dc(m<<16,b)}H[q>>2]=b;a=dc(b,a<<1)}else{a=0}H[o>>2]=p+a}}function t4(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-16|0;xb=d;c=H[b+12>>2];c=N(H[b+8>>2],c&512?1:2)+(c>>>4&16^52)|0;H[d+8>>2]=c;H[d+4>>2]=108;H[a+8>>2]=c+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);c=(C(O(M[b+24>>3])),v(2));F[d+12|0]=c;F[d+13|0]=c>>>8;F[d+14|0]=c>>>16;F[d+15|0]=c>>>24;Lb(H[a+4>>2],d+12|0,4);c=(C(O(M[b+32>>3])),v(2));F[d+12|0]=c;F[d+13|0]=c>>>8;F[d+14|0]=c>>>16;F[d+15|0]=c>>>24;Lb(H[a+4>>2],d+12|0,4);if(!(F[b+13|0]&1)){Lb(H[a+4>>2],b+40|0,4);Lb(H[a+4>>2],b+44|0,4);Lb(H[a+4>>2],b+48|0,4);Lb(H[a+4>>2],b+52|0,4)}c=H[b+8>>2];if(c){Lb(H[a+4>>2],b+56|0,c<<((H[b+12>>2]>>>9^-1)&1))}xb=d+16|0}function $c(a,b,c){var d=0,e=0;a:{if((a|0)==(b|0)){break a}e=a+c|0;if(b-e>>>0<=0-(c<<1)>>>0){return Ob(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}F[d|0]=I[b|0];b=b+1|0;c=c-1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(e&3){while(1){if(!c){break a}c=c-1|0;d=c+a|0;F[d|0]=I[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c-4|0;H[c+a>>2]=H[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c-1|0;F[c+a|0]=I[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){H[d>>2]=H[b>>2];b=b+4|0;d=d+4|0;c=c-4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){F[d|0]=I[b|0];d=d+1|0;b=b+1|0;c=c-1|0;if(c){continue}break}}return a}function p4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;H[f+12>>2]=c;c=H[e+4>>2]-H[e>>2]|0;H[f+8>>2]=c+32;c=c- -64|0;H[f+4>>2]=c;H[f>>2]=71;H[a+8>>2]=c+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],f,4);Lb(H[a+4>>2],f+4|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],f+8|0,4);Lb(H[a+4>>2],f+12|0,4);Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],d+12|0,4);Lb(H[a+4>>2],d+16|0,4);Lb(H[a+4>>2],d+20|0,4);Lb(H[a+4>>2],d+24|0,4);Lb(H[a+4>>2],d+28|0,4);d=H[e>>2];b=H[e+4>>2];if((d|0)!=(b|0)){while(1){Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],d+12|0,4);d=d+16|0;if((b|0)!=(d|0)){continue}break}}xb=f+16|0}function di(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{f=H[b+4>>2];c=a+4|0;if(f>>>0>c>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-c>>>0<2){break a}g=H[b+12>>2];h=g-2|0;H[b+12>>2]=h;e=1;if((h|0)<=0){break a}b:{c:{d:{c=I[c|0]|I[c+1|0]<<8;h=c<<8|c>>>8;c=h&65535;if(c-1>>>0>=3){if((c|0)!=32768){break b}if(a>>>0>=f>>>0){break d}break a}if(a>>>0>>0|a>>>0>d>>>0){break a}f=d-a|0;if(f>>>0<6){break a}c=g-8|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=I[a+2|0]|I[a+3|0]<<8;g=(e<<8|e>>>8)&65535;a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)&65535;d=c-6|0;if(g>>>0>>0){break c}e=1;a=(g-a>>>4-(h&65535)<<1)+8|0;if(!a){break b}e=0;if(a>>>0>f>>>0){break b}d=c-a|0;break c}if(a>>>0>d>>>0){break a}e=0;if(d-a>>>0<6){break b}d=g-8|0}H[b+12>>2]=d;e=(d|0)>0}return e}return 0}function T5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(H[b+52>>2]+H[b+44>>2]|0)+80|0;H[e+12>>2]=d;H[e+8>>2]=81;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);Lb(H[a+4>>2],b+20|0,4);Lb(H[a+4>>2],b+24|0,4);Lb(H[a+4>>2],b+28|0,4);Lb(H[a+4>>2],b+32|0,4);Lb(H[a+4>>2],b+36|0,4);Lb(H[a+4>>2],b+40|0,4);Lb(H[a+4>>2],b+44|0,4);Lb(H[a+4>>2],b+48|0,4);Lb(H[a+4>>2],b+52|0,4);Lb(H[a+4>>2],b+56|0,4);Lb(H[a+4>>2],b+60|0,4);Lb(H[a+4>>2],b- -64|0,4);Lb(H[a+4>>2],b+68|0,4);d=H[b+44>>2];if(d){Lb(H[a+4>>2],H[c+4>>2],d)}d=H[b+52>>2];if(d){Lb(H[a+4>>2],H[c+4>>2]+H[b+44>>2]|0,d)}xb=e+16|0}function wr(a,b,c){var d=0;a:{if(H[a>>2]|c>>>0<44|(I[b|0]!=83|I[b+1|0]!=70)){break a}if(I[b+2|0]!=87|I[b+3|0]!=57|(I[b+4|0]!=52|I[b+5|0]!=65)){break a}if(I[b+7|0]|I[b+6|0]!=4|(I[b+9|0]|I[b+8|0]!=16)){break a}if(I[b+11|0]|I[b+10|0]!=1|(I[b+13|0]|I[b+12|0]!=100)){break a}if(I[b+14|0]|I[b+15|0]|(I[b+17|0]|I[b+16|0]!=204)){break a}if(I[b+18|0]|I[b+19|0]|(I[b+21|0]|I[b+20|0]!=59)){break a}if(I[b+22|0]|I[b+23|0]|(I[b+24|0]!=218|I[b+25|0]!=7)){break a}if(I[b+26|0]|I[b+27|0]|(I[b+28|0]!=7|I[b+29|0]!=1)){break a}if(I[b+30|0]|I[b+31|0]|(I[b+33|0]|I[b+32|0]!=68)){break a}if(I[b+34|0]|I[b+35|0]|(I[b+36|0]!=208|I[b+37|0]!=7)){break a}if(I[b+38|0]|I[b+39|0]|(I[b+40|0]!=75|I[b+41|0]!=1)){break a}if(I[b+42|0]|I[b+43|0]){break a}d=1}return d}function N3(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;b=ac(c);f=b+18|0;a:{b:{if((b|0)<=-18){a=6;if(f){break a}a=0;break b}a=H[a>>2];a=zb[H[a+4>>2]](a,f)|0;if(!a){return 64}Nb(a,0,f)}f=Ob(a,c,b);b=f+b|0;a=I[11598]|I[11599]<<8;F[b+16|0]=a;F[b+17|0]=a>>>8;a=I[11594]|I[11595]<<8|(I[11596]<<16|I[11597]<<24);c=I[11590]|I[11591]<<8|(I[11592]<<16|I[11593]<<24);F[b+8|0]=c;F[b+9|0]=c>>>8;F[b+10|0]=c>>>16;F[b+11|0]=c>>>24;F[b+12|0]=a;F[b+13|0]=a>>>8;F[b+14|0]=a>>>16;F[b+15|0]=a>>>24;a=I[11586]|I[11587]<<8|(I[11588]<<16|I[11589]<<24);c=I[11582]|I[11583]<<8|(I[11584]<<16|I[11585]<<24);F[b|0]=c;F[b+1|0]=c>>>8;F[b+2|0]=c>>>16;F[b+3|0]=c>>>24;F[b+4|0]=a;F[b+5|0]=a>>>8;F[b+6|0]=a>>>16;F[b+7|0]=a>>>24;H[d>>2]=f;H[e>>2]=0;a=0}return a|0}function Ex(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:zb[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 Kh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(!a){return 35}a:{b:{c:{if((b|0)!=1970170211){if(H[a+36>>2]|b){break c}return 6}f=38;e=H[a+40>>2];if(!e){break a}c=e+(H[a+36>>2]<<2)|0;b=c-4|0;if(e>>>0<=b>>>0){while(1){d=H[b>>2];d:{if(H[d+4>>2]!=1970170211){break d}e:{switch(J[d+8>>1]){case 3:if(J[d+10>>1]!=10){break d}break b;case 0:break e;default:break d}}if(J[d+10>>1]==4){break b}}b=b-4|0;if(e>>>0<=b>>>0){continue}break}}while(1){c=c-4|0;if(e>>>0>c>>>0){break a}d=H[c>>2];if(H[d+4>>2]!=1970170211){continue}break}break b}c=H[a+40>>2];if(!c){return 38}f=6;d=H[a+36>>2];if((d|0)<=0){break a}e=(d<<2)+c|0;while(1){d=H[c>>2];if(H[d+4>>2]==(b|0)){break b}c=c+4|0;if(e>>>0>c>>>0){continue}break}break a}H[a+92>>2]=d;f=0}return f|0}function Cr(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=H[a+124>>2];a:{if(!H[a+65708>>2]){break a}if(!b){b=0;break a}c=a+65752|0;while(1){b=H[a+65756>>2];f=a+d|0;e=H[a+65744>>2];e=H[b+((I[f+164|0]^e&255)<<2)>>2]^e>>>8;H[a+65744>>2]=e;e=N(H[a+65748>>2]+(e&255)|0,134775813)+1|0;H[a+65748>>2]=e;g=b;b=H[c>>2];H[c>>2]=H[g+((b&255^e>>>24)<<2)>>2]^b>>>8;F[f+164|0]=I[f+164|0]^N(b|2,b&65533^3)>>>8;b=H[a+124>>2];d=d+1|0;if(b>>>0>d>>>0){continue}break}}f=zb[H[a+8>>2]](H[a+28>>2],H[a+44>>2],a+164|0,b)|0;d=H[a+72>>2];H[a+72>>2]=0;b=H[a+124>>2];H[a+124>>2]=0;c=a+65736|0;e=c;g=H[c>>2];d=g+d|0;c=H[c+4>>2];H[e>>2]=d;H[e+4>>2]=d>>>0>>0?c+1|0:c;a=a+65728|0;d=a;c=b+H[a>>2]|0;a=H[a+4>>2];H[d>>2]=c;H[d+4>>2]=b>>>0>c>>>0?a+1|0:a;return(b|0)!=(f|0)?-1:0}function VU(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=b;b=1;a=H[c+12>>2];a:{b:{if((a|0)<=2050){switch(a-1026|0){case 0:case 1:case 3:case 4:case 5:case 6:case 7:case 10:case 12:case 14:case 16:case 17:case 18:case 19:case 20:case 22:case 23:case 24:case 25:case 27:case 29:case 31:case 32:case 34:case 36:case 37:case 40:case 42:case 43:case 61:case 65:case 78:case 84:case 108:case 128:break a;default:break b}}if((a|0)<=3078){switch(a-2051|0){case 0:case 4:case 6:case 16:case 17:case 19:case 64:break a;default:break b}}if((a|0)<=4104){a=a-3079|0;if(a>>>0>3|(a|0)==1){break b}break a}if((a|0)<=9241){if((a|0)==4105){break a}if((a|0)!=7177){break b}break a}if((a|0)==9242|(a|0)==10266){break a}}b=0}xb=c+16|0;return b|0}function Hd(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=H[a+4>>2];g=H[a>>2];f=H[a+16>>2];a:{b:{if(H[f+436>>2]){e=g;break b}if((c|0)>24){i=c;e=g;break a}while(1){if(!h){if(!(zb[H[H[f+24>>2]+12>>2]](f)|0)){return 0}e=H[f+24>>2];h=H[e+4>>2];g=H[e>>2]}e=g+1|0;h=h-1|0;c:{i=I[g|0];if((i|0)==255){while(1){if(!h){if(!(zb[H[H[f+24>>2]+12>>2]](f)|0)){return 0}e=H[f+24>>2];h=H[e+4>>2];e=H[e>>2]}h=h-1|0;g=I[e|0];i=255;e=e+1|0;if((g|0)==255){continue}break}if(g){break c}}b=b<<8|i;j=(c|0)<17;g=e;i=c+8|0;c=i;if(j){continue}break a}break}H[f+436>>2]=g}if((c|0)>=(d|0)){i=c;break a}if(!H[H[f+464>>2]+36>>2]){d=H[f>>2];H[d+20>>2]=120;zb[H[d+4>>2]](f,-1);H[H[f+464>>2]+36>>2]=1}i=25;b=b<<25-c}H[a+12>>2]=i;H[a+8>>2]=b;H[a+4>>2]=h;H[a>>2]=e;return 1}function q6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=H[b+48>>2];if(c&16){c=H[b+44>>2];d=H[b+24>>2];if(c>>>0>>0){H[b+44>>2]=d;c=d}b=H[b+20>>2];d=c-b|0;if((d|0)<0){break a}e=d>>2;b:{if(d>>>0<=7){F[a+11|0]=e;break b}f=e+4&-4;d=Qb(f<<2);H[a+8>>2]=f|-2147483648;H[a>>2]=d;H[a+4>>2]=e;a=d}if((b|0)!=(c|0)){while(1){H[a>>2]=H[b>>2];a=a+4|0;b=b+4|0;if((c|0)!=(b|0)){continue}break}}H[a>>2]=0;return}if(c&8){e=H[b+16>>2];b=H[b+8>>2];c=e-b|0;if((c|0)<0){break a}d=c>>2;c:{if(c>>>0<=7){F[a+11|0]=d;break c}f=d+4&-4;c=Qb(f<<2);H[a+8>>2]=f|-2147483648;H[a>>2]=c;H[a+4>>2]=d;a=c}if((b|0)!=(e|0)){while(1){H[a>>2]=H[b>>2];a=a+4|0;b=b+4|0;if((e|0)!=(b|0)){continue}break}}H[a>>2]=0;return}H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return}qd(a);X()}function Cca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=xb-32|0;xb=b;g=H[a+420>>2];if(H[a+264>>2]){Gi(g)}H[b+24>>2]=0;H[b+28>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;if(H[a+288>>2]>0){while(1){d=H[((h<<2)+a|0)+292>>2];a:{if(H[a+360>>2]|H[a+368>>2]){break a}e=H[d+20>>2]<<2;f=e+(b+16|0)|0;if(H[f>>2]){break a}i=a+e|0;c=H[i+120>>2];if(!c){c=zb[H[H[a+4>>2]>>2]](a,0,280)|0;H[c+276>>2]=0;H[i+120>>2]=c}KC(a,c,H[(e+g|0)+76>>2]);H[f>>2]=1}b:{if(!H[a+364>>2]){break b}d=H[d+24>>2]<<2;e=d+b|0;if(H[e>>2]){break b}f=a+d|0;c=H[f+136>>2];if(!c){c=zb[H[H[a+4>>2]>>2]](a,0,280)|0;H[c+276>>2]=0;H[f+136>>2]=c}KC(a,c,H[(d+g|0)+92>>2]);H[e>>2]=1}h=h+1|0;if((h|0)>2]){continue}break}}xb=b+32|0}function Hz(a,b){var c=0,d=0,e=0,f=0;f=H[a+8>>2];c=H[a+4>>2];if(f>>>0>c+3>>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b>>2]=d;if(c+3>>>0>>0){e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+4>>2]=e;e=0;a:{if(c+3>>>0>=f>>>0){d=0;break a}d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+8>>2]=d;if(c+3>>>0>>0){e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+12>>2]=e;e=0;d=0;if(c+3>>>0>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[a+4>>2]=c+4}H[b+16>>2]=d;Be(a,b+20|0);c=H[a+4>>2];if(K[a+8>>2]>c+3>>>0){e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[a+4>>2]=c+4}H[b+40>>2]=0;H[b+44>>2]=0;H[b+36>>2]=e}function Zw(a,b){var c=0,d=0,e=0;a:{if(I[b|0]){break a}b=kg(239615);if(I[b|0]?b:0){break a}b=kg(N(a,12)+769120|0);if(I[b|0]?b:0){break a}b=kg(239632);if(I[b|0]?b:0){break a}b=239659}b:{while(1){d=I[b+c|0];if(!(!d|(d|0)==47)){d=23;c=c+1|0;if((c|0)!=23){continue}break b}break}d=c}e=239659;c:{d:{c=I[b|0];e:{f:{if(!(I[b+d|0]|(c|0)==46)){e=b;if((c|0)!=67){break f}}if(!I[e+1|0]){break e}}if(!fc(e,239659)){break e}if(fc(e,239520)){break d}}if(!a){c=769028;if(I[e+1|0]==46){break c}}return 0}b=0;c=H[197460];if(c){while(1){if(!fc(e,c+8|0)){break c}c=H[c+32>>2];if(c){continue}break}}c=Tb(36);if(c){b=H[192258];H[c>>2]=H[192257];H[c+4>>2]=b;b=c+8|0;Ob(b,e,d);F[b+d|0]=0;H[c+32>>2]=H[197460];H[197460]=c;b=c}c=a|b?b:769028}return c}function jha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=H[a+4>>2];if(!d){return 0}a=c;c=0;f=a-1|0;a:{b:{if((a|0)>=2){a=b;c:{while(1){d:{e:{f:{c=H[d+4>>2];e=H[d+8>>2];if((c|0)==(e|0)){break f}h=Kg(c,10,e-c|0);g:{if(h){e=H[d+4>>2];c=(h-e|0)+1|0;break g}e=H[d+4>>2];c=H[d+8>>2]-e|0}g=e;e=c>>>0>>0?c:f;Ob(a,g,e);g=e+H[d+4>>2]|0;H[d+4>>2]=g;a=a+e|0;if(c>>>0>=f>>>0|h){break d}f=f-e|0;if(H[d+8>>2]==(g|0)){break f}H[d+4>>2]=g+1;c=I[g|0];break e}c=rm(d);if((c|0)>=0){break e}c=0;if((a|0)==(b|0)){break c}if(I[d|0]&16){break d}break c}F[a|0]=c;a=a+1|0;if((c&255)==10){break d}f=f-1|0;if(f){continue}}break}if(!b){c=0;break c}F[a|0]=0;c=b}break b}a=H[d+72>>2];H[d+72>>2]=a-1|a;if(f){break b}F[b|0]=0;break a}b=c}return b|0}function rj(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;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;d=I[c+11|0];f=d<<24>>24;g=(f|0)<0?H[c+4>>2]:d;a:{b:{e=ad(b);d=g+e|0;c:{if(d>>>0>=1073741808){H[197455]=0;ia(1640,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}X()}d:{if(d>>>0<=1){F[a+11|0]=e;d=a;break d}H[197455]=0;h=d+4&-4;d=aa(899,h<<2)|0;i=H[197455];H[197455]=0;if((i|0)==1){break c}H[a>>2]=d;H[a+4>>2]=e;H[a+8>>2]=h|-2147483648}if(e){H[197455]=0;Mb(d,b,e);b=H[197455];H[197455]=0;if((b|0)==1){break a}f=F[c+11|0]}H[(e<<2)+d>>2]=0;b=H[c>>2];H[197455]=0;ca(1759,a|0,((f|0)<0?b:c)|0,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break b}}b=$()|0;_()|0;if(F[a+11|0]<0){Kb(H[a>>2])}ea(b|0);X()}return}ha(0)|0;_()|0;Zb();X()}function Tu(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!a|a>>>0>=b>>>0){break a}f=a+1|0;g=F[a|0];a=0;e=52;b:{while(1){h=a+e|0;c=(h&-2)+37440|0;c=(I[c+2|0]<<8|I[c+3|0])+37440|0;d=I[c|0];i=d&127;if((g|0)==(i|0)){break b}c=h>>1;d=(g|0)>(i|0);a=d?c+1|0:a;e=d?e:c;if((a|0)<(e|0)){continue}break}return 0}if(b>>>0>f>>>0){d=I[c|0];while(1){a=d<<24;d=I[c+1|0];g=F[f|0];c:{d:{if(a>>24<0){if((g|0)!=(d&127)){break d}c=c+1|0;break c}e=d&127;if(!e){break a}a=((d&128?3:1)+c|0)+1|0;while(1){c=(I[a+1|0]|I[a|0]<<8)+37440|0;d=I[c|0];if((g|0)==(d&127)){break c}a=a+2|0;c=(e|0)>1;e=e-1|0;if(c){continue}break}break a}return 0}f=f+1|0;if((f|0)!=(b|0)){continue}break}}if(d<<24>>24<0|F[c+1|0]>=0){break a}return I[c+3|0]|I[c+2|0]<<8}return 0}function Ty(a,b,c,d){var e=0;H[a+56>>2]=0;H[a+60>>2]=0;M[a+40>>3]=c;H[a+8>>2]=-1;H[a+12>>2]=2146435071;H[a+72>>2]=b;M[a+48>>3]=d;H[a+32>>2]=0;H[a+36>>2]=1048576;H[a+24>>2]=0;H[a+28>>2]=1048576;H[a+16>>2]=-1;H[a+20>>2]=2146435071;H[a>>2]=428236;b=a- -64|0;H[b>>2]=0;H[b+4>>2]=0;H[197455]=0;b=aa(899,12)|0;e=H[197455];H[197455]=0;a:{b:{c:{if((e|0)!=1){H[197455]=0;aa(2912,b|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break c}F[a+80|0]=0;H[a+76>>2]=b;H[197455]=0;b=a+84|0;H[b>>2]=0;H[b+4>>2]=0;F[b+5|0]=0;F[b+6|0]=0;F[b+7|0]=0;F[b+8|0]=0;F[b+9|0]=0;F[b+10|0]=0;F[b+11|0]=0;F[b+12|0]=0;b=H[197455];H[197455]=0;if((b|0)!=1){break a}}e=$()|0;_()|0;break b}e=$()|0;_()|0;Kb(b)}if(F[a+71|0]<0){Kb(H[a+60>>2])}ea(e|0);X()}return a}function xq(a,b){var c=0,d=0,e=0,f=0,g=0;e=b<<1;if(e){c=a;while(1){d=I[c+3|0];F[c+3|0]=I[c|0];F[c|0]=d;d=I[c+2|0];F[c+2|0]=I[c+1|0];F[c+1|0]=d;d=I[c+7|0];F[c+7|0]=I[c+4|0];F[c+4|0]=d;d=I[c+6|0];F[c+6|0]=I[c+5|0];F[c+5|0]=d;c=c+8|0;e=e-2|0;if(e){continue}break}}a:{if(!b){break a}e=b-1|0;d=b&3;if(d){c=0;while(1){f=a,g=lma(H[a>>2],H[a+4>>2]),H[f>>2]=g;H[a+4>>2]=yb;a=a+8|0;b=b-1|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}if(e>>>0<3){break a}while(1){f=a,g=lma(H[a>>2],H[a+4>>2]),H[f>>2]=g;H[a+4>>2]=yb;f=a,g=lma(H[a+8>>2],H[a+12>>2]),H[f+8>>2]=g;H[a+12>>2]=yb;f=a,g=lma(H[a+16>>2],H[a+20>>2]),H[f+16>>2]=g;H[a+20>>2]=yb;f=a,g=lma(H[a+24>>2],H[a+28>>2]),H[f+24>>2]=g;H[a+28>>2]=yb;a=a+32|0;b=b-4|0;if(b){continue}break}}}function qs(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{h=H[b+4>>2];b:{if(h>>>0>a>>>0){break b}g=H[b+8>>2];if(g>>>0>>0){break b}c=g-a|0;if(c>>>0<4){break b}d=H[b+12>>2];e=d-4|0;H[b+12>>2]=e;if((I[a|0]|I[a+1|0]<<8)!=256|(e|0)<=0|c>>>0<8){break b}c=d-12|0;H[b+12>>2]=c;if((c|0)<=0){break b}f=1;d=I[a+6|0]|I[a+7|0]<<8;if(!d){break b}f=(d<<8|d>>>8)&65535;i=f>>>0>1?f:1;a=a+8|0;d=0;while(1){if(a>>>0>>0|a>>>0>g>>>0|g-a>>>0<2){break a}c=c-2|0;H[b+12>>2]=c;if((c|0)<=0){break a}e=I[a|0]|I[a+1|0]<<8;f=((e<<8|e>>>8)&65535)<<2;c:{if(!e){break c}e=a+2|0;if(e>>>0>>0|e>>>0>g>>>0|f>>>0>g-e>>>0){break a}c=c-f|0;H[b+12>>2]=c;if((c|0)>0){break c}break a}a=(f|2)+a|0;f=1;d=d+1|0;if((i|0)!=(d|0)){continue}break}}return f}return 0}function Mx(a,b,c,d,e,f){var g=0;g=xb-80|0;xb=g;a:{if((f|0)>=16384){ld(g+32|0,b,c,d,e,0,0,0,2147352576);d=H[g+40>>2];e=H[g+44>>2];b=H[g+32>>2];c=H[g+36>>2];if(f>>>0<32767){f=f-16383|0;break a}ld(g+16|0,b,c,d,e,0,0,0,2147352576);f=((f|0)<49149?f:49149)-32766|0;d=H[g+24>>2];e=H[g+28>>2];b=H[g+16>>2];c=H[g+20>>2];break a}if((f|0)>-16383){break a}ld(g- -64|0,b,c,d,e,0,0,0,7471104);d=H[g+72>>2];e=H[g+76>>2];b=H[g+64>>2];c=H[g+68>>2];if(f>>>0>4294934644){f=f+16269|0;break a}ld(g+48|0,b,c,d,e,0,0,0,7471104);f=((f|0)>-48920?f:-48920)+32538|0;d=H[g+56>>2];e=H[g+60>>2];b=H[g+48>>2];c=H[g+52>>2]}ld(g,b,c,d,e,0,0,0,f+16383<<16);b=H[g+12>>2];H[a+8>>2]=H[g+8>>2];H[a+12>>2]=b;b=H[g+4>>2];H[a>>2]=H[g>>2];H[a+4>>2]=b;xb=g+80|0}function bz(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(b){e=H[a+4>>2];if((e|0)!=H[a+8>>2]){while(1){a:{b:{c:{d:{e:{f:{e=H[(f<<2)+e>>2];switch((zb[H[H[e>>2]+8>>2]](e)|0)-1|0){case 4:break b;case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break a}}zb[H[H[b>>2]+32>>2]](b,M[e+8>>3],M[e+16>>3]);break a}zb[H[H[b>>2]+36>>2]](b,M[e+8>>3],M[e+16>>3]);break a}zb[H[H[b>>2]+40>>2]](b,M[e+8>>3],M[e+16>>3],M[e+24>>3],M[e+32>>3],M[e+40>>3],M[e+48>>3]);break a}zb[H[H[b>>2]+44>>2]](b,M[e+8>>3],M[e+16>>3],M[e+24>>3],M[e+32>>3],M[e+40>>3],M[e+48>>3]);break a}zb[H[H[b>>2]+48>>2]](b)}f=f+1|0;e=H[a+4>>2];if(f>>>0>2]-e>>2>>>0){continue}break}}zb[H[H[b>>2]+52>>2]](b,(d?2:0)|c);zb[H[H[b>>2]+56>>2]](b)}}function gn(a,b){var c=0,d=0,e=0;Gi(a);a:{if(H[a+108>>2]){break a}JC(a);c=H[a+112>>2];H[a+112>>2]=c+1;F[c|0]=255;c=H[a+116>>2]-1|0;H[a+116>>2]=c;b:{if(c){c=H[a+112>>2];break b}c=H[a+120>>2];d=H[c+24>>2];if(!(zb[H[d+12>>2]](c)|0)){c=H[a+120>>2];e=H[c>>2];H[e+20>>2]=25;zb[H[e>>2]](c)}c=H[d>>2];H[a+116>>2]=H[d+4>>2]}H[a+112>>2]=c+1;F[c|0]=b-48;b=H[a+116>>2]-1|0;H[a+116>>2]=b;if(b){break a}c=H[a+120>>2];b=H[c+24>>2];if(!(zb[H[b+12>>2]](c)|0)){c=H[a+120>>2];d=H[c>>2];H[d+20>>2]=25;zb[H[d>>2]](c)}H[a+112>>2]=H[b>>2];H[a+116>>2]=H[b+4>>2]}c=H[a+120>>2];c:{if(!H[c+360>>2]){if(H[c+288>>2]<=0){break c}b=0;while(1){H[((b<<2)+a|0)+20>>2]=0;b=b+1|0;if((b|0)>2]){continue}break}break c}H[a+128>>2]=0;H[a+132>>2]=0}}function JC(a){var b=0,c=0,d=0,e=0,f=0;a:{if(H[a+108>>2]){break a}b=H[a+16>>2];if((b|0)<=0){break a}c=b+7|0;f=H[a+12>>2]|127<<17-b;while(1){b=H[a+112>>2];H[a+112>>2]=b+1;F[b|0]=f>>>16;b=H[a+116>>2]-1|0;H[a+116>>2]=b;if(!b){d=H[a+120>>2];b=H[d+24>>2];if(!(zb[H[b+12>>2]](d)|0)){d=H[a+120>>2];e=H[d>>2];H[e+20>>2]=25;zb[H[e>>2]](d)}H[a+112>>2]=H[b>>2];H[a+116>>2]=H[b+4>>2]}b=c;b:{if((f&16711680)!=16711680){break b}c=H[a+112>>2];H[a+112>>2]=c+1;F[c|0]=0;c=H[a+116>>2]-1|0;H[a+116>>2]=c;if(c){break b}d=H[a+120>>2];c=H[d+24>>2];if(!(zb[H[c+12>>2]](d)|0)){d=H[a+120>>2];e=H[d>>2];H[e+20>>2]=25;zb[H[e>>2]](d)}H[a+112>>2]=H[c>>2];H[a+116>>2]=H[c+4>>2]}c=b-8|0;f=f<<8;if((b|0)>15){continue}break}}H[a+12>>2]=0;H[a+16>>2]=0}function jN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-16|0;xb=e;a:{if(H[a+4>>2]){break a}d=6;b:{if(H[a+12>>2]!=1){break b}g=H[a>>2];c=H[a+28>>2];if(c){H[(H[a+36>>2]+(c<<4)|0)-4>>2]=b}h=c+1|0;d=H[a+32>>2];c:{if(h>>>0<=d>>>0){f=H[a+36>>2];break c}H[e+8>>2]=0;i=c+8&-8;f=Ub(g,16,d,i,H[a+36>>2],e+8|0);H[a+36>>2]=f;d=H[e+8>>2];if(d){break b}H[a+32>>2]=i}c=(c<<4)+f|0;H[c+12>>2]=0;H[c>>2]=0;H[a+28>>2]=h;c=H[a- -64>>2];if(c){H[(H[a+72>>2]+(c<<4)|0)-4>>2]=b}f=c+1|0;b=H[a+68>>2];d:{if(f>>>0<=b>>>0){b=H[a+72>>2];break d}H[e+12>>2]=0;d=g;g=c+8&-8;b=Ub(d,16,b,g,H[a+72>>2],e+12|0);H[a+72>>2]=b;d=H[e+12>>2];if(d){break b}H[a+68>>2]=g}b=(c<<4)+b|0;H[b+12>>2]=0;H[b>>2]=0;H[a+64>>2]=f;break a}H[a+4>>2]=d}xb=e+16|0}function Tq(a,b,c){var d=0,e=0,f=0;d=H[a+20>>2];if((d|0)!=100){e=H[a>>2];H[e+24>>2]=d;H[e+20>>2]=21;zb[H[H[a>>2]>>2]](a)}d=H[a+88>>2];if(!d){d=zb[H[H[a+4>>2]>>2]](a,0,132)|0;H[d+128>>2]=0;H[a+88>>2]=d}e=0;while(1){f=(N(H[(e<<2)+257520>>2],b)+50|0)/100|0;f=(f|0)>1?f:1;f=f>>>0<32767?f:32767;G[(e<<1)+d>>1]=c?f>>>0>255?255:f:f;e=e+1|0;if((e|0)!=64){continue}break}H[d+128>>2]=0;d=H[a+20>>2];if((d|0)!=100){e=H[a>>2];H[e+24>>2]=d;H[e+20>>2]=21;zb[H[H[a>>2]>>2]](a)}d=H[a+92>>2];if(!d){d=zb[H[H[a+4>>2]>>2]](a,0,132)|0;H[d+128>>2]=0;H[a+92>>2]=d}e=0;while(1){a=(N(H[(e<<2)+257776>>2],b)+50|0)/100|0;a=(a|0)>1?a:1;a=a>>>0<32767?a:32767;G[(e<<1)+d>>1]=c?a>>>0>255?255:a:a;e=e+1|0;if((e|0)!=64){continue}break}H[d+128>>2]=0}function Hk(a,b){var c=0,d=0;c=xb-16|0;xb=c;d=(C(O(M[b>>3])),v(2));F[c+12|0]=d;F[c+13|0]=d>>>8;F[c+14|0]=d>>>16;F[c+15|0]=d>>>24;Lb(H[a+4>>2],c+12|0,4);d=(C(O(M[b+8>>3])),v(2));F[c+12|0]=d;F[c+13|0]=d>>>8;F[c+14|0]=d>>>16;F[c+15|0]=d>>>24;Lb(H[a+4>>2],c+12|0,4);d=(C(O(M[b+16>>3])),v(2));F[c+12|0]=d;F[c+13|0]=d>>>8;F[c+14|0]=d>>>16;F[c+15|0]=d>>>24;Lb(H[a+4>>2],c+12|0,4);d=(C(O(M[b+24>>3])),v(2));F[c+12|0]=d;F[c+13|0]=d>>>8;F[c+14|0]=d>>>16;F[c+15|0]=d>>>24;Lb(H[a+4>>2],c+12|0,4);d=(C(O(M[b+32>>3])),v(2));F[c+12|0]=d;F[c+13|0]=d>>>8;F[c+14|0]=d>>>16;F[c+15|0]=d>>>24;Lb(H[a+4>>2],c+12|0,4);b=(C(O(M[b+40>>3])),v(2));F[c+12|0]=b;F[c+13|0]=b>>>8;F[c+14|0]=b>>>16;F[c+15|0]=b>>>24;Lb(H[a+4>>2],c+12|0,4);xb=c+16|0}function Hm(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,p=0;j=e>>8;if((d|0)==(f|0)){zh(a,j,b);return}p=e&255;g=c&255;k=c>>8;if((k|0)!=(j|0)){h=f-d|0;l=1;e=e-c|0;a:{if((e|0)>0){m=256;c=256-g|0;break a}e=0-e|0;l=-1;c=g}i=N(c,h);c=(i|0)/(e|0)|0;n=i-N(c,e)|0;o=n>>31;i=c+o|0;H[a+184>>2]=i+H[a+184>>2];H[a+180>>2]=H[a+180>>2]+N(i,g|m);c=k+l|0;zh(a,c,b);d=d+i|0;if((c|0)!=(j|0)){h=h<<8;g=(h|0)/(e|0)|0;h=h-N(e,g)|0;i=h>>31;k=(i&e)+h|0;i=g+i|0;g=(e&o)+n|0;while(1){g=g+k|0;h=i+((g|0)>=(e|0))|0;H[a+184>>2]=h+H[a+184>>2];H[a+180>>2]=H[a+180>>2]+(h<<8);c=c+l|0;zh(a,c,b);g=g-((e|0)>(g|0)?0:e)|0;d=d+h|0;if((c|0)!=(j|0)){continue}break}}g=256-m|0}b=f-d|0;H[a+184>>2]=b+H[a+184>>2];H[a+180>>2]=H[a+180>>2]+N(b,g+p|0)}function zt(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=H[b+4>>2];a:{if(d>>>0>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}f=H[b+12>>2];e=f-2|0;H[b+12>>2]=e;if((e|0)<=0){break a}e=I[a|0]|I[a+1|0]<<8;if(!e){break a}g=d;d=a+4|0;if(g>>>0>d>>>0|c>>>0>>0|c-d>>>0<4){break a}c=f-6|0;H[b+12>>2]=c;if((c|0)<=0){break a}h=1;c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);f=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(!f){break a}d=0;c=a+8|0;if(!yt(c,b,(e<<8|e>>>8)&65535)){return 0}while(1){d=d+1|0;h=(f|0)==(d|0);if(h){break a}g=c;c=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);c=g+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;e=I[a|0]|I[a+1|0]<<8;if(yt(c,b,(e<<8|e>>>8)&65535)){continue}break}}return h}function ut(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=H[b+4>>2];a:{if(d>>>0>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}f=H[b+12>>2];e=f-2|0;H[b+12>>2]=e;if((e|0)<=0){break a}e=I[a|0]|I[a+1|0]<<8;if(!e){break a}g=d;d=a+4|0;if(g>>>0>d>>>0|c>>>0>>0|c-d>>>0<4){break a}c=f-6|0;H[b+12>>2]=c;if((c|0)<=0){break a}h=1;c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);f=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(!f){break a}d=0;c=a+8|0;if(!tt(c,b,(e<<8|e>>>8)&65535)){return 0}while(1){d=d+1|0;h=(f|0)==(d|0);if(h){break a}g=c;c=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);c=g+(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))|0;e=I[a|0]|I[a+1|0]<<8;if(tt(c,b,(e<<8|e>>>8)&65535)){continue}break}}return h}function HZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;if(H[a+208>>2]){g=H[H[a+120>>2]+680>>2];e=H[a+208>>2];zb[H[H[e>>2]+32>>2]](e,M[b>>3],M[b+8>>3]);f=M[b>>3];e=H[a+208>>2];a:{if((g|0)!=1){zb[H[H[e>>2]+36>>2]](e,f,M[b+8>>3]+M[b+24>>3]);e=H[a+208>>2];zb[H[H[e>>2]+36>>2]](e,M[b>>3]+M[b+16>>3],M[b+8>>3]+M[b+24>>3]);e=H[a+208>>2];zb[H[H[e>>2]+36>>2]](e,M[b>>3]+M[b+16>>3],M[b+8>>3]);break a}zb[H[H[e>>2]+36>>2]](e,f+M[b+16>>3],M[b+8>>3]);e=H[a+208>>2];zb[H[H[e>>2]+36>>2]](e,M[b>>3]+M[b+16>>3],M[b+8>>3]+M[b+24>>3]);e=H[a+208>>2];zb[H[H[e>>2]+36>>2]](e,M[b>>3],M[b+8>>3]+M[b+24>>3])}b=H[a+208>>2];zb[H[H[b>>2]+48>>2]](b);b=H[a+208>>2];zb[H[H[b>>2]+52>>2]](b,(d?2:0)|c);a=H[a+208>>2];zb[H[H[a>>2]+56>>2]](a)}}function R5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb-16|0;xb=e;d=(H[b+52>>2]+H[b+44>>2]|0)+76|0;H[e+12>>2]=d;H[e+8>>2]=80;H[a+8>>2]=d+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);Lb(H[a+4>>2],b+20|0,4);Lb(H[a+4>>2],b+24|0,4);Lb(H[a+4>>2],b+28|0,4);Lb(H[a+4>>2],b+32|0,4);Lb(H[a+4>>2],b+36|0,4);Lb(H[a+4>>2],b+40|0,4);Lb(H[a+4>>2],b+44|0,4);Lb(H[a+4>>2],b+48|0,4);Lb(H[a+4>>2],b+52|0,4);Lb(H[a+4>>2],b+56|0,4);Lb(H[a+4>>2],b+60|0,4);Lb(H[a+4>>2],b- -64|0,4);d=H[b+44>>2];if(d){Lb(H[a+4>>2],H[c+4>>2],d)}d=H[b+52>>2];if(d){Lb(H[a+4>>2],H[c+4>>2]+H[b+44>>2]|0,d)}xb=e+16|0}function Nv(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;i=J[((a>>>0>149?0:a)<<1)+780624>>1]+778800|0;a=H[H[197059]+20>>2];if(a){e=H[a+4>>2];b=H[a>>2];d=H[b>>2]+1794895138|0;f=ji(H[b+8>>2],d);g=ji(H[b+12>>2],d);c=ji(H[b+16>>2],d);a:{if(e>>>2>>>0<=f>>>0){break a}a=e-(f<<2)|0;if((c|g)&3|(a>>>0<=g>>>0|a>>>0<=c>>>0)){break a}m=c>>>2|0;n=g>>>2|0;while(1){h=f>>>1|0;g=h+j|0;c=g<<1;a=b+(c+n<<2)|0;k=ji(H[a>>2],d);a=ji(H[a+4>>2],d);if(a>>>0>=e>>>0|e-a>>>0<=k>>>0|I[b+(a+k|0)|0]){break a}a=fc(i,a+b|0);if(!a){a=b+(c+m<<2)|0;c=ji(H[a>>2],d);a=ji(H[a+4>>2],d);if(a>>>0>=e>>>0|c>>>0>=e-a>>>0){break a}l=I[b+(a+c|0)|0]?0:a+b|0;break a}if((f|0)==1){break a}a=(a|0)<0;f=a?h:f-h|0;j=a?j:g;continue}}}return l?l:i}function ay(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=xb-16|0;xb=e;g=(C(a),v(2));c=g&2147483647;a:{if(c>>>0<=1305022426){h=+a;f=h*.6366197723675814+6755399441055744+-6755399441055744;d=h+f*-1.5707963109016418+f*-1.5893254773528196e-8;M[b>>3]=d;g=d<-.7853981852531433;if(P(f)<2147483648){c=~~f}else{c=-2147483648}if(g){d=f+-1;M[b>>3]=h+d*-1.5707963109016418+d*-1.5893254773528196e-8;c=c-1|0;break a}if(!(d>.7853981852531433)){break a}d=f+1;M[b>>3]=h+d*-1.5707963109016418+d*-1.5893254773528196e-8;c=c+1|0;break a}if(c>>>0>=2139095040){M[b>>3]=O(a-a);c=0;break a}i=c;c=(c>>>23|0)-150|0;M[e+8>>3]=(x(2,i-(c<<23)|0),B());c=dy(e+8|0,e,c,1,0);d=M[e>>3];if((g|0)<0){M[b>>3]=-d;c=0-c|0;break a}M[b>>3]=d}xb=e+16|0;return c}function Yq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=H[a+4>>2];a:{if(b>>>0>=2){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=15;zb[H[H[a>>2]>>2]](a);break a}if((b|0)!=1){break a}c=H[d+68>>2];if(c){while(1){if(H[c+40>>2]){H[c+40>>2]=0;zb[H[c+56>>2]](a,c+48|0)}c=H[c+44>>2];if(c){continue}break}}H[d+68>>2]=0;c=H[d+72>>2];if(c){while(1){if(H[c+40>>2]){H[c+40>>2]=0;zb[H[c+56>>2]](a,c+48|0)}c=H[c+44>>2];if(c){continue}break}}H[d+72>>2]=0}b=(b<<2)+d|0;a=b;c=H[a+60>>2];H[a+60>>2]=0;if(c){while(1){a=H[c>>2];e=H[c+4>>2]+H[c+8>>2]|0;Kb(c);H[d+76>>2]=H[d+76>>2]-(e+16|0);c=a;if(c){continue}break}}c=H[b+52>>2];H[b+52>>2]=0;if(c){while(1){a=H[c>>2];b=(H[c+4>>2]+H[c+8>>2]|0)+16|0;Kb(c);H[d+76>>2]=H[d+76>>2]-b;c=a;if(c){continue}break}}}function NB(a,b,c){var d=0,e=0,f=0;d=xb-32|0;xb=d;H[d+16>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;H[d>>2]=0;H[d+4>>2]=0;f=ac(b);a:{if(!c){cn(a,b,0);break a}if(!I[c|0]){cn(a,b,c);break a}c=dn(a,c,ac(c),0,d);if(!a){Mk(0,d,c);break a}H[a+744>>2]=34;F[d+28|0]=122;F[d+29|0]=84;F[d+30|0]=88;F[d+31|0]=116;e=(c+f|0)+2|0;F[d+27|0]=e;F[d+26|0]=e>>>8;F[d+25|0]=e>>>16;F[d+24|0]=e>>>24;Qc(a,d+24|0,8);H[a+348>>2]=2052348020;Uf(a);xc(a,d+28|0,4);H[a+744>>2]=66;b:{if(!b){break b}e=f+1|0;if(!e){break b}Qc(a,b,e);xc(a,b,e)}F[d+23|0]=0;b=d+23|0;Qc(a,b,1);xc(a,b,1);Mk(a,d,c);H[a+744>>2]=130;b=H[a+384>>2];b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);F[d+24|0]=b;F[d+25|0]=b>>>8;F[d+26|0]=b>>>16;F[d+27|0]=b>>>24;Qc(a,d+24|0,4)}xb=d+32|0}function js(a,b){var c=0,d=0,e=0,f=O(0),g=0,h=O(0),i=O(0),j=O(0),k=0;c=H[a>>2];e=H[a+4>>2];k=H[e+20>>2];f=O(M[b>>3]);g=H[e+16>>2];d=H[g+28>>2];if(!d){d=kc(g);e=H[a+4>>2];g=H[e+16>>2]}f=O(O(f*O(k|0))/O(d>>>0));d=c+16|0;j=O(O(M[b+8>>3])*O(H[e+24>>2]));a=H[g+28>>2];if(!a){a=kc(g)}j=O(j/O(a>>>0));b=H[c+12>>2];a=H[c+8>>2];a:{b:{if(I[c+4|0]){if(!H[d>>2]){break a}h=L[c+20>>2];i=L[c+24>>2];if(h==L[c+28>>2]&i==L[c+32>>2]){break b}zb[H[a+16>>2]](a,b,d,h,i,H[a+36>>2]);break b}f=O(O(j*L[c>>2])+f);if(!H[c+16>>2]){break a}h=L[c+20>>2];i=L[c+24>>2];if(h==L[c+28>>2]&i==L[c+32>>2]){break b}zb[H[a+16>>2]](a,b,d,h,i,H[a+36>>2])}zb[H[a+28>>2]](a,b,d,H[a+48>>2]);H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0}L[c+32>>2]=j;L[c+28>>2]=f}function Nb(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}F[a|0]=b;e=a+c|0;F[e-1|0]=b;if(c>>>0<3){break a}F[a+2|0]=b;F[a+1|0]=b;F[e-3|0]=b;F[e-2|0]=b;if(c>>>0<7){break a}F[a+3|0]=b;F[e-4|0]=b;if(c>>>0<9){break a}e=0-a&3;f=e+a|0;d=N(b&255,16843009);H[f>>2]=d;b=c-e&-4;c=b+f|0;H[c-4>>2]=d;if(b>>>0<9){break a}H[f+8>>2]=d;H[f+4>>2]=d;H[c-8>>2]=d;H[c-12>>2]=d;if(b>>>0<25){break a}H[f+24>>2]=d;H[f+20>>2]=d;H[f+16>>2]=d;H[f+12>>2]=d;H[c-16>>2]=d;H[c-20>>2]=d;H[c-24>>2]=d;H[c-28>>2]=d;c=b;b=f&4|24;c=c-b|0;if(c>>>0<32){break a}d=gma(d,0,1,1);e=yb;b=b+f|0;while(1){H[b+24>>2]=d;H[b+28>>2]=e;H[b+16>>2]=d;H[b+20>>2]=e;H[b+8>>2]=d;H[b+12>>2]=e;H[b>>2]=d;H[b+4>>2]=e;b=b+32|0;c=c-32|0;if(c>>>0>31){continue}break}}return a}function iC(a,b,c){var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;H[e+12>>2]=0;d=H[a+200>>2];if(d&1){a:{if(d&4){Xb(a,264353);mc(a,c);break a}if(d&2){Xb(a,264410)}if(!(!b|!(I[b+8|0]&2))){Xb(a,264590);mc(a,c);break a}if(!(((I[a+401|0]!=3?I[a+405|0]:3)|0)==(c|0)&c>>>0<=4)){Xb(a,264675);mc(a,c);break a}d=e+12|0;vd(a,d,c);xc(a,d,c);if(mc(a,0)){break a}d=I[e+12|0];b:{if(I[a+401|0]&2){c=I[e+13|0];f=I[e+14|0];g=e+12|3;break b}F[a+495|0]=d;c=d;f=c;g=e+12|1}F[a+496|0]=I[g|0];F[a+494|0]=f;F[a+493|0]=c;F[a+492|0]=d;if(!(!a|!b)){c=I[a+492|0]|I[a+493|0]<<8|(I[a+494|0]<<16|I[a+495|0]<<24);F[b+68|0]=c;F[b+69|0]=c>>>8;F[b+70|0]=c>>>16;F[b+71|0]=c>>>24;F[b+72|0]=I[a+496|0];H[b+8>>2]=H[b+8>>2]|2}}xb=e+16|0;return}hc(a,264177);X()}function xy(a){var b=0,c=0,d=0,e=0;b=H[a+4>>2];c=H[a+8>>2];a:{if((b|0)==(c|0)){b=c;break a}while(1){e=H[(d<<2)+b>>2];if(e){Fp(e);Kb(e);c=H[a+8>>2];b=H[a+4>>2]}d=d+1|0;if(d>>>0>2>>>0){continue}break}}H[a+8>>2]=b;b=H[a+20>>2];e=a+24|0;if((b|0)!=(e|0)){while(1){c=b;b=H[b+20>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}d=H[c+4>>2];b:{if(!d){b=H[c+8>>2];if((c|0)==H[b>>2]){break b}d=c+8|0;while(1){c=H[d>>2];d=c+8|0;b=H[c+8>>2];if((c|0)!=H[b>>2]){continue}break}break b}while(1){b=d;d=H[b>>2];if(d){continue}break}}if((b|0)!=(e|0)){continue}break}}b=a+20|0;jj(b,H[a+24>>2]);H[a+20>>2]=e;H[a+24>>2]=0;H[a+28>>2]=0;d=H[a+36>>2];if(d){H[a+40>>2]=d;Kb(d);c=H[a+24>>2]}else{c=0}jj(b,c);b=H[a+4>>2];if(b){H[a+8>>2]=b;Kb(b)}}function sJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=xb-1536|0;xb=f;a:{b:{if(d&16){if(!c){break b}d=0;Nb(e,0,c<<2);break a}d=zb[H[H[H[a+492>>2]+12>>2]>>2]](f+8|0,a,0,0,H[a+424>>2],H[a+532>>2],0,0,109)|0;if(d){break a}F[f+76|0]=0;F[f+78|0]=1;H[f+1372>>2]=H[a+404>>2];H[f+1376>>2]=H[a+408>>2];H[f+1380>>2]=H[a+412>>2];H[f+1384>>2]=H[a+416>>2];H[f+1504>>2]=H[a+548>>2];H[f+1508>>2]=H[a+544>>2];d=0;if(!c){break a}a=0;while(1){g=(a<<2)+e|0;c:{if(!$j(f+8|0,a+b|0,f+1528|0,f+1527|0)){d=H[H[H[f+12>>2]+128>>2]+52>>2];if(d){zb[H[H[d>>2]+4>>2]](H[d+4>>2],f+1528|0)}d=H[f+48>>2];d=(((d>>31)+d|0)+32768&-65536)>>16;break c}d=0}H[g>>2]=d;a=a+1|0;if((c|0)!=(a|0)){continue}break}}d=0}xb=f+1536|0;return d|0}function Sj(a,b,c){var d=0,e=0,f=0,g=0;if(!(H[a+20>>2]|!c)){a:{b:{c:{e=H[a+40>>2];g=H[e+8>>2];if((g|0)>=0){d=H[e+12>>2];f=d+1|0;f=(f|0)>0?f:0;if(f>>>0<=g>>>0){break b}d=g;while(1){d=((d>>>1|0)+d|0)+8|0;if(f>>>0>=d>>>0){continue}break}if(!(d>>>0>>0|d>>>0>268435454)){g=tc(H[e+16>>2],d<<4);if(g){break c}}H[e+8>>2]=-1}d=H[40911];H[196250]=H[40910];H[196251]=d;d=H[40909];H[196248]=H[40908];H[196249]=d;d=784992;break a}H[e+8>>2]=d;H[e+16>>2]=g;d=H[e+12>>2]}if(d>>>0>>0){Nb(H[e+16>>2]+(d<<4)|0,0,f-d<<4)}H[e+12>>2]=f;d=(H[e+16>>2]+(f<<4)|0)-16|0}if(H[H[a+40>>2]+8>>2]<0){H[a+20>>2]=H[a+20>>2]|1}H[d+12>>2]=c;F[d|0]=I[d|0]&192|2;a=H[H[a+40>>2]>>2];H[d+8>>2]=0;H[d+4>>2]=b-a&268435455|H[d+4>>2]&-268435456}}function ty(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;F[a+112|0]=0;G[a+110>>1]=c;G[a+108>>1]=b;if(I[a+122|0]){d=c>>15;G[a+120>>1]=(d^c)-d;d=b>>15;G[a+118>>1]=(d^b)-d}h=J[a+80>>1];a:{if((h|0)!=7){break a}d=G[a+120>>1];i=+(d|0);e=P(i/+(c|0));f=G[a+118>>1];j=+(f|0);g=P(j/+(b|0));if(e>31|1;e=T(e*j/g+.5);b:{if(P(e)<2147483648){d=~~e;break b}d=-2147483648}G[a+118>>1]=d?d:f;break a}f=d>>31|1;e=T(g*i/e+.5);c:{if(P(e)<2147483648){d=~~e;break c}d=-2147483648}G[a+120>>1]=d?d:f}d:{if((b|0)<2){break d}d=G[a+118>>1];if((d|0)<2){break d}e:{switch(h-7|0){case 0:e=+(d|0)/+(b|0);M[a+88>>3]=e;M[a+96>>3]=e;_e(a);return;case 1:break e;default:break d}}M[a+88>>3]=+(d|0)/+(b|0);M[a+96>>3]=+G[a+120>>1]/+(c|0)}_e(a)}function W$(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;f=b-f|0;j=d-b|0;b=j-c|0;k=!c|!e|(f|b)<0;a:{if(k){d=H[a>>2];if((f|0)>0){g=H[d-12>>2]+a|0;H[g+8>>2]=f+H[g+8>>2]}d=d-12|0;f=H[d>>2]+a|0;H[f+8>>2]=H[f+8>>2]+c;if((b|0)>0){c=H[d>>2]+a|0;H[c+8>>2]=b+H[c+8>>2]}a=H[d>>2]+a|0;H[a+8>>2]=H[a+8>>2]+e;break a}d=H[a>>2]-12|0;b=H[d>>2]+a|0;H[b+8>>2]=f+H[b+8>>2];f=H[d>>2]+a|0;b=H[f+8>>2];H[f+8>>2]=b+j;a=H[d>>2]+a|0;d=a;a=H[a+8>>2];l=(+(e>>>0)+-.5)*.25;b:{if(P(l)<2147483648){f=~~l;break b}f=-2147483648}H[d+8>>2]=(a+(f<<2)|0)+4;c:{if(!b|!c|(!a|(c|0)<4)){break c}if((I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24))>>>0<13){break c}OA(b+4|0,c-4|0,a,e,g,h,i)}}return!k|0}function Ky(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=H[a+8>>2];c=H[a+4>>2];if(f>>>0>c+1>>>0){d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b>>1]=d;if(c+1>>>0>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+2>>1]=e;e=0;if(c+1>>>0>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+4>>1]=e;a:{if(!(!(d&65535)|d&1)){e=d&65535;d=e>>>1|0;g=Qb(d<<2);H[b+8>>2]=g;if(e>>>0<2){break a}i=d>>>0>1?d:1;d=0;while(1){h=(d<<2)+g|0;b:{if(c+1>>>0>=f>>>0){e=0;break b}e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[h>>1]=e;e=0;if(c+1>>>0>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[h+2>>1]=e;d=d+1|0;if((i|0)!=(d|0)){continue}break}break a}H[b+8>>2]=0}d=0;if(c+1>>>0>>0){d=I[c|0]|I[c+1|0]<<8;H[a+4>>2]=c+2}G[b+12>>1]=d}function TG(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;f=xb-16|0;xb=f;c=H[a>>2];a:{if(I[c+8|0]&2){if(!(zb[H[H[c+540>>2]+104>>2]](c,b,f+12|0)|0)){os(a,H[f+12>>2]);break a}H[a+44>>2]=-1;c=H[a>>2]}Bi(c,b);c=H[a>>2];b=H[H[c+712>>2]+3080>>2];c=Vd(H[H[c+96>>2]+4>>2],11010);if(!c|!b){break a}b=H[b>>2];if(!b){break a}g=zb[b|0](c)|0;if(!g){break a}h=H[H[a>>2]+712>>2];c=H[h+1440>>2];i=H[H[a+40>>2]>>2];zb[H[g+4>>2]](H[i>>2],H[a+16>>2],H[a+20>>2],0,0);e=H[h+2024>>2];if(!e){break a}while(1){b=H[a+16>>2];e=e-1|0;j=e<<2;d=H[H[(j+h|0)+2028>>2]+68>>2];b:{if((d|0)!=(c|0)){b=ic(b,c,d);d=ic(H[a+20>>2],c,d);break b}d=H[a+20>>2]}zb[H[g+4>>2]](H[(i+j|0)+4>>2],b,d,0,0);if(e){continue}break}}xb=f+16|0;return 0}function o4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=H[d+4>>2]-H[d>>2]|0;H[e+12>>2]=f+32;f=f+60|0;H[e+8>>2]=f;H[e+4>>2]=74;H[a+8>>2]=f+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+4|0,4);Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],c+16|0,4);Lb(H[a+4>>2],c+20|0,4);Lb(H[a+4>>2],c+24|0,4);Lb(H[a+4>>2],c+28|0,4);c=H[d>>2];b=H[d+4>>2];if((c|0)!=(b|0)){while(1){Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);c=c+16|0;if((b|0)!=(c|0)){continue}break}}xb=e+16|0}function _B(a,b,c){var d=0,e=0,f=0;d=xb-16|0;xb=d;e=H[a+200>>2];if(e&1){a:{if(e&4){Xb(a,267968);mc(a,c);break a}if(!(!b|!(F[b+9|0]&1))){Xb(a,267992);mc(a,c);break a}if((c|0)!=9){Xb(a,268013);mc(a,c);break a}c=d+7|0;vd(a,c,9);xc(a,c,9);if(mc(a,0)){break a}c=I[d+7|0];b:{if(c&128){e=0-(((N(c,2130706432)-(I[d+8|0]<<16)|0)-(I[d+9|0]<<8)|0)-I[d+10|0]&2147483647)|0;break b}e=I[d+10|0]|(I[d+8|0]<<16|c<<24|I[d+9|0]<<8)}c=I[d+11|0];c:{if(c&128){c=0-(((N(c,2130706432)-(I[d+12|0]<<16)|0)-(I[d+13|0]<<8)|0)-I[d+14|0]&2147483647)|0;break c}c=I[d+14|0]|(I[d+12|0]<<16|c<<24|I[d+13|0]<<8)}f=I[d+15|0];if(!(!a|!b)){F[b+108|0]=f;H[b+104>>2]=c;H[b+100>>2]=e;H[b+8>>2]=H[b+8>>2]|256}}xb=d+16|0;return}hc(a,267943);X()}function gH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;b=H[a+12>>2];H[d+8>>2]=0;H[d+12>>2]=0;H[d>>2]=0;H[d+4>>2]=0;e=b;f=H[b+84>>2];b=H[b+80>>2];g=zb[H[b+208>>2]](e,f,c,d,H[b- -64>>2])|0;if(g){c=H[a+12>>2];a:{if(c){b=H[d>>2];e=H[c+20>>2];f=H[a+20>>2];if((e|0)!=(f|0)){b=hma(gma(f,f>>31,b,b>>31),yb,e,e>>31)}H[d>>2]=b;b=H[d+4>>2];e=H[c+24>>2];f=H[a+24>>2];if((e|0)!=(f|0)){b=hma(gma(f,f>>31,b,b>>31),yb,e,e>>31)}H[d+4>>2]=b;e=H[d+8>>2];b=H[c+20>>2];f=H[a+20>>2];if((b|0)!=(f|0)){e=hma(gma(f,f>>31,e,e>>31),yb,b,b>>31)}b=d+12|0;H[d+8>>2]=e;d=H[d+12>>2];c=H[c+24>>2];a=H[a+24>>2];if((c|0)==(a|0)){break a}d=hma(gma(a,a>>31,d,d>>31),yb,c,c>>31);break a}b=d+12|0;d=H[d+12>>2]}H[b>>2]=d}return g|0}function bha(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;a:{if(!b){break a}i=e-1|0;if(i>>>0>31|!(1<>>0<=23){Jj(a)}if((e|0)==32){rn(a);j=1;if(!d|!c){break a}i=0;l=h?2:0;m=h?0:2;while(1){e=N(f,i)+b|0;k=g?(i^-1)+d|0:i;j=H[a+56>>2]+N(k,H[a+52>>2])|0;h=0;while(1){F[j|0]=I[e+m|0];F[j+1|0]=I[e+1|0];F[j+2|0]=I[e+l|0];te(a,h,k,I[e+3|0]);e=e+4|0;j=j+3|0;h=h+1|0;if((h|0)!=(c|0)){continue}break}j=1;i=i+1|0;if((i|0)!=(d|0)){continue}break}break a}if(!d){return 1}e=0;while(1){c=H[a+52>>2];Ob(H[a+56>>2]+N(c,g?(e^-1)+d|0:e)|0,N(e,f)+b|0,c>>>0>>0?c:f);j=1;e=e+1|0;if((e|0)!=(d|0)){continue}break}}return j|0}function Lfa(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;d=xb-48|0;xb=d;c=H[a>>2];e=H[c+20>>2];a:{b:{c:{if(!((e|0)<=0|(e|0)>H[c+116>>2])){a=H[c+112>>2]+(e<<2)|0;break c}f=H[c+120>>2];if(!f){break b}a=H[c+124>>2];if((a|0)>(e|0)|(e|0)>H[c+128>>2]){break b}a=f+(e-a<<2)|0}f=H[a>>2];if(f){break a}}H[c+24>>2]=e;f=H[H[c+112>>2]>>2]}a=f;d:{e:{while(1){e=I[a|0];if(!e){break e}a=a+1|0;if((e|0)!=37){continue}break}if(I[a|0]!=115){break e}H[d+32>>2]=c+24;Ad(b,f,d+32|0);break d}g=H[c+32>>2];h=H[c+36>>2];i=H[c+40>>2];j=H[c+44>>2];k=H[c+24>>2];e=H[c+28>>2];a=H[c+52>>2];H[d+24>>2]=H[c+48>>2];H[d+28>>2]=a;H[d+16>>2]=i;H[d+20>>2]=j;H[d+8>>2]=g;H[d+12>>2]=h;H[d>>2]=k;H[d+4>>2]=e;Ad(b,f,d)}xb=d+48|0}function Ry(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;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;d=I[b+11|0];f=d<<24>>24<0;a:{b:{e=f?H[b+4>>2]:d;d=e+1|0;c:{if(d>>>0>=1073741808){H[197455]=0;ia(1640,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break c}X()}h=H[b>>2];d:{e:{if(d>>>0>=2){H[197455]=0;g=e+5&-4;d=aa(899,g<<2)|0;i=H[197455];H[197455]=0;if((i|0)==1){break c}H[a>>2]=d;H[a+4>>2]=e;H[a+8>>2]=g|-2147483648;break e}F[a+11|0]=e;d=a;if(!e){break d}}H[197455]=0;Mb(d,f?h:b,e);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(e<<2)+d>>2]=0;H[197455]=0;ba(1650,a|0,c|0);b=H[197455];H[197455]=0;if((b|0)!=1){break b}}b=$()|0;_()|0;if(F[a+11|0]<0){Kb(H[a>>2])}ea(b|0);X()}return}ha(0)|0;_()|0;Zb();X()}function $R(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a=xb-208|0;xb=a;G[a+204>>1]=I[773115]|I[773116]<<8;H[a+200>>2]=I[773111]|I[773112]<<8|(I[773113]<<16|I[773114]<<24);h=Od();H[a>>2]=e;f=a+176|0;i=Fe(f,20,h,a+200|0,a);e=i+f|0;h=ef(f,e,c);g=a+8|0;f=H[c+28>>2];H[g>>2]=f;H[f+4>>2]=H[f+4>>2]+1;H[197455]=0;g=aa(3342,g|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){f=H[a+8>>2];j=H[f+4>>2]-1|0;H[f+4>>2]=j;if((j|0)==-1){zb[H[H[f>>2]+8>>2]](f)}f=a+16|0;zb[H[H[g>>2]+48>>2]](g,a+176|0,e,f)|0;g=b;b=f+(i<<2)|0;b=tj(g,f,(e|0)==(h|0)?b:(a+(h-a<<2)|0)-688|0,b,c,d);xb=a+208|0;return b|0}c=$()|0;_()|0;a=H[a+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function L9(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;if((c|0)>0){g=H[a+12>>2];while(1){d=H[g>>2];G[b>>1]=(d>>>12&4093)+13314;h=163;a=0;i=d&16383;a:{if(i>>>0>16288){e=.210526316;f=.473684211;break a}b:{c:{while(1){d=a+h>>1;j=i-G[(d<<3)+291622>>1]|0;d:{if((j|0)>0){a=d;break d}if((j|0)>=0){break c}h=d}if((h-a|0)>1){continue}break}d=a;e=+(i-G[(d<<3)+291622>>1]|0)+.5;break b}e=.5}e=e*.0035000001080334187+ +L[(d<<3)+291616>>2];f=(+(d|0)+.5)*.0035000001080334187+.016939999535679817}f=f*32768;e:{if(P(f)<2147483648){a=~~f;break e}a=-2147483648}G[b+4>>1]=a;e=e*32768;f:{if(P(e)<2147483648){a=~~e;break f}a=-2147483648}G[b+2>>1]=a;g=g+4|0;b=b+6|0;a=(c|0)>1;c=c-1|0;if(a){continue}break}}}function vda(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{b=H[a+20>>2];switch(b-101|0){case 2:break a;case 0:case 1:break c;default:break b}}if(K[a+260>>2]>2]){b=H[a>>2];H[b+20>>2]=69;zb[H[b>>2]](a)}zb[H[H[a+388>>2]+8>>2]](a);break a}c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}b=H[a+388>>2];if(!H[b+16>>2]){while(1){zb[H[b>>2]](a);b=0;d=H[a+284>>2];if(d){while(1){c=H[a+8>>2];if(c){H[c+8>>2]=d;H[c+4>>2]=b;zb[H[c>>2]](a)}if(!(zb[H[H[a+400>>2]+4>>2]](a,0)|0)){c=H[a>>2];H[c+20>>2]=25;zb[H[c>>2]](a)}b=b+1|0;d=H[a+284>>2];if(b>>>0>>0){continue}break}}zb[H[H[a+388>>2]+8>>2]](a);b=H[a+388>>2];if(!H[b+16>>2]){continue}break}}zb[H[H[a+404>>2]+12>>2]](a);zb[H[H[a+24>>2]+16>>2]](a);Vk(a)}function ko(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;j=H[b+4>>2]+(c<<4)|0;c=H[j+4>>2];if(!c){return 0}n=H[j+12>>2]+(N(c,d)<<1)|0;while(1){a:{if(!J[b+8>>1]){d=65536;break a}c=H[H[b+16>>2]+(H[H[j+8>>2]+(k<<2)>>2]<<2)>>2];l=0;d=65536;while(1){g=d;e=H[c+4>>2];h=H[c>>2];b:{if((e|0)<(h|0)){break b}i=H[c+8>>2];if((i|0)<(e|0)|!(!e|((i|0)<=0|(h|0)>=0))){break b}if(!e){break b}f=H[H[H[a+736>>2]+8>>2]+(l<<2)>>2];if((f|0)==(e|0)){break b}d=0;if((f|0)<=(h|0)|(f|0)>=(i|0)){break a}if((e|0)>(f|0)){g=ic(g,f-h|0,e-h|0);break b}g=ic(g,i-f|0,i-e|0)}d=g;c=c+12|0;l=l+1|0;if(l>>>0>1]){continue}break}}m=Rb(d,J[(k<<1)+n>>1]<<16)+m|0;k=k+1|0;if(k>>>0>2]){continue}break}return m+32768>>16}function dq(a){var b=0,c=0;a:{if(!a){break a}c=H[a>>2];if(!c){break a}H[a+44>>2]=0;H[a+48>>2]=0;b=H[a+52>>2];if((b|0)!=(a+72|0)){if(b){zb[H[c+8>>2]](c,b)}H[a+52>>2]=0}H[a+56>>2]=0;H[a+60>>2]=0;b=H[a- -64>>2];if((b|0)!=(a+864|0)){if(b){zb[H[c+8>>2]](c,b)}H[a+64>>2]=0}b=a+1392|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+1400>>2];if((b|0)!=(a+1420|0)){if(b){zb[H[c+8>>2]](c,b)}H[a+1400>>2]=0}b=a+1404|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+1412>>2];if((b|0)!=(a+2212|0)){if(b){zb[H[c+8>>2]](c,b)}H[a+1412>>2]=0}b=H[a+40>>2];if((b|0)!=(a+2760|0)){if(b){zb[H[c+8>>2]](c,b)}H[a+40>>2]=0}H[a+32>>2]=0;H[a+36>>2]=0;b=H[a+28>>2];if((b|0)!=(a+2792|0)){if(b){zb[H[c+8>>2]](c,b)}H[a+28>>2]=0}H[a+20>>2]=0;H[a+24>>2]=0;H[a>>2]=0}}function Qj(a,b,c){var d=0,e=0,f=0;d=I[b|0];if((d|0)==30){return En(a,b,c,0)}f=b+1|0;a:{b:{switch(d-28|0){case 0:e=0;if(K[a+8>>2]<=b+2>>>0){break a}e=(I[b+2|0]|I[f|0]<<8)<<16>>16;break a;case 1:e=0;if(K[a+8>>2]<=b+4>>>0){break a}a=I[b+1|0]|I[b+2|0]<<8|(I[b+3|0]<<16|I[b+4|0]<<24);e=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);break a;default:break b}}e=d-139|0;if(d>>>0<=246){break a}a=H[a+8>>2];if(d>>>0<=250){e=0;if(a>>>0<=f>>>0){break a}e=(I[f|0]|d<<8)-63124|0;break a}e=0;if(a>>>0<=f>>>0){break a}e=64148-(I[f|0]|d<<8)|0}d=e;if(c){a=c<<2;b=d>>31;if(H[a+27584>>2]<((b^d)-b|0)){return(d|0)>0?2147483647:-2147483647}d=N(H[a+27536>>2],d)}return(d|0)<=32767?(d|0)<-32767?-2147483647:d<<16:2147483647}function Oba(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;a=Nb(a,0,256);d=H[b>>2]+c|0;g=I[d|0];e=I[d+1|0];d=g-e<<3;H[a+4>>2]=d;g=(e+g<<3)-2048|0;H[a>>2]=g;e=H[b+4>>2]+c|0;h=I[e|0];f=I[e+1|0];e=h-f<<3;H[a+36>>2]=e;h=(f+h<<3)-2048|0;H[a+32>>2]=h;f=H[b+8>>2]+c|0;i=I[f|0];j=I[f+1|0];f=i-j<<3;H[a+68>>2]=f;i=(i+j<<3)-2048|0;H[a+64>>2]=i;b=H[b+12>>2]+c|0;c=I[b|0];b=I[b+1|0];j=c-b<<3;k=j+d|0;l=e+f|0;H[a+68>>2]=k-l;H[a+4>>2]=k+l;c=(b+c<<3)-2048|0;b=c+g|0;k=h+i|0;H[a+64>>2]=b-k;H[a>>2]=b+k;e=e-f|0;d=d-j|0;b=N(e+d|0,4433)+4096|0;H[a+100>>2]=b+N(e,-15137)>>13;H[a+36>>2]=b+N(d,6270)>>13;d=h-i|0;c=g-c|0;b=N(d+c|0,4433)+4096|0;H[a+96>>2]=b+N(d,-15137)>>13;H[a+32>>2]=b+N(c,6270)>>13}function KB(a){var b=0,c=0,d=0,e=0;if(H[a+8>>2]){a:{if(!H[a+8>>2]){break a}b=H[a+12>>2];if(!(b&64)){break a}if(b&4096){H[a+12>>2]=b&-4097;if(!(zb[H[a+536>>2]](a)|0)){break a}}if(!Uc(a)|!(I[a+12|0]&8)){break a}if(!kB(a)){break a}}}zb[H[a+572>>2]](a);yq(a);b=H[a+24>>2];if(b){Kb(b)}while(1){b=H[a+680>>2];if(b){H[a+680>>2]=H[b>>2];Kb(H[b+8>>2]);Kb(b);continue}break}b=H[a+596>>2];if(!(!b|!(I[a+13|0]&2))){Kb(b)}if(I[a+13|0]&8){zb[H[a+624>>2]](H[a+628>>2],H[a+612>>2],H[a+616>>2])}c=H[a+660>>2];if(c){b=0;while(1){d=H[H[a+656>>2]+(b<<2)>>2];b:{if(J[d+12>>1]!=65){break b}e=H[d+16>>2];if(gc(270999,e,4)){break b}Kb(e);Kb(d);c=H[a+660>>2]}b=b+1|0;if(c>>>0>b>>>0){continue}break}Kb(H[a+656>>2])}Kb(a)}function Hja(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:{i=H[H[a+124>>2]>>2];if(!i){break a}e=H[c+68>>2];if(!e){break a}d=e-1|0;a=0;f=H[c+80>>2];b=I[f+15|0];while(1){b:{if((a|0)==(d|0)){a=e;break b}a=a+1|0;if((b|0)==I[(N(a,20)+f|0)+15|0]){continue}}break}if(!e){break a}d=0;g=f;h=e;while(1){b=a;c:{if(a>>>0<=d>>>0){break c}while(1){a=N(d,20)+f|0;if(!(H[a+4>>2]&i)){break c}if(I[a+12|0]&16){F[a+18|0]=18;g=H[c+80>>2];h=H[c+68>>2];break c}d=d+1|0;if((b|0)!=(d|0)){continue}break}}a=b+1|0;d=a>>>0>>0?h:a;j=d-1|0;k=I[(N(b,20)+g|0)+15|0];a=b;while(1){d:{if((a|0)==(j|0)){a=d;break d}a=a+1|0;if(I[(N(a,20)+g|0)+15|0]==(k|0)){continue}}break}d=b;if(e>>>0>d>>>0){continue}break}}}function wda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;H[a+4>>2]=0;if((b|0)!=80){d=H[a>>2];H[d+20>>2]=13;H[d+24>>2]=80;H[H[a>>2]+28>>2]=b;zb[H[H[a>>2]>>2]](a)}if((c|0)!=432){b=H[a>>2];H[b+20>>2]=22;H[b+24>>2]=432;H[H[a>>2]+28>>2]=c;zb[H[H[a>>2]>>2]](a)}b=H[a>>2];c=H[a+12>>2];Nb(a+4|0,0,428);H[a+12>>2]=c;H[a>>2]=b;YC(a);H[a+84>>2]=0;H[a+88>>2]=0;H[a+8>>2]=0;H[a+92>>2]=0;H[a+96>>2]=0;H[a+100>>2]=0;H[a+120>>2]=0;H[a+124>>2]=0;H[a+112>>2]=100;H[a+116>>2]=100;H[a+104>>2]=100;H[a+108>>2]=100;H[a+128>>2]=0;H[a+132>>2]=0;H[a+136>>2]=0;H[a+140>>2]=0;H[a+144>>2]=0;H[a+148>>2]=0;H[a+424>>2]=0;H[a+384>>2]=63;H[a+380>>2]=254352;H[a+376>>2]=8;H[a+48>>2]=0;H[a+52>>2]=1072693248;H[a+20>>2]=100;H[a+24>>2]=0}function rM(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;d=H[b>>2];if(K[d+16>>2]>c>>>0){b=H[d+140>>2];f=J[b+96>>1];e=H[b+56>>2];if(c){b=c-1|0}else{b=H[d+148>>2]}b=e+N(b,36)|0;g=J[b+10>>1];c=G[b+20>>1];e=G[b+16>>1];h=H[b+24>>2];i=J[b+14>>1];j=J[b+12>>1];H[a+84>>2]=H[b+28>>2];H[a+80>>2]=j;H[a+76>>2]=i;Wq(a,h);a:{b:{switch(f-1|0){case 0:F[a+94|0]=1;break a;case 1:F[a+94|0]=3;break a;case 3:F[a+94|0]=4;break a;case 7:break b;default:break a}}G[a+92>>1]=256;F[a+94|0]=2}H[a+104>>2]=c;H[a+100>>2]=e;H[a+72>>2]=1651078259;H[a+40>>2]=g<<6;H[a+36>>2]=c<<6;H[a+32>>2]=e<<6;H[a+24>>2]=H[a+80>>2]<<6;H[a+28>>2]=H[a+76>>2]<<6;Fj(a+24|0,J[H[d+140>>2]+6>>1]<<6);a=0}else{a=6}return a|0}function CF(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=I[a|0]|I[a+1|0]<<8;a:{if(d){j=(d<<8|d>>>8)&65535;i=a+2|0;while(1){k=H[c+8>>2];l=H[c>>2];d=I[i|0]|I[i+1|0]<<8;if(d){d=((d<<8|d>>>8)&65535)+a|0}else{d=163632}e=I[d|0]|I[d+1|0]<<8;g=(((e<<8|e>>>8)&65535)<<1)+d|0;d=g;f=I[d+2|0]|I[d+3|0]<<8;h=(f<<8|f>>>8)&65535;d=(d+2|0)+(f?h<<1:2)|0;b:{if(H[b+12>>2]!=(h|0)|(I[b+16|0]?e|(I[d|0]|I[d+1|0]<<8):0)){break b}if(h>>>0<2){return 1}f=1;d=1;g=g+4|0;if(!(zb[l|0](H[H[b+8>>2]+4>>2],g,k)|0)){break b}while(1){e=d+1|0;if((e|0)==(h|0)){break a}m=d<<1;d=e;if(zb[l|0](H[H[b+8>>2]+(d<<2)>>2],g+m|0,k)|0){continue}break}if(d>>>0>=h>>>0){break a}}i=i+2|0;j=j-1|0;if(j){continue}break}}f=0}return f}function jS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a=xb-96|0;xb=a;G[a+92>>1]=I[773115]|I[773116]<<8;H[a+88>>2]=I[773111]|I[773112]<<8|(I[773113]<<16|I[773114]<<24);h=Od();H[a>>2]=e;f=a- -64|0;i=Fe(f,20,h,a+88|0,a);e=i+f|0;h=ef(f,e,c);g=a+8|0;f=H[c+28>>2];H[g>>2]=f;H[f+4>>2]=H[f+4>>2]+1;H[197455]=0;g=aa(3329,g|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){f=H[a+8>>2];j=H[f+4>>2]-1|0;H[f+4>>2]=j;if((j|0)==-1){zb[H[H[f>>2]+8>>2]](f)}f=a+16|0;zb[H[H[g>>2]+32>>2]](g,a- -64|0,e,f)|0;g=b;b=f+i|0;b=Xi(g,f,(e|0)==(h|0)?b:(a+(h-a|0)|0)-48|0,b,c,d);xb=a+96|0;return b|0}c=$()|0;_()|0;a=H[a+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function JH(a){a=a|0;var b=0,c=0,d=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+4>>2]=H[a>>2];H[a+8>>2]=H[a+12>>2];Os(a);a:{b:{c:{c=H[a+44>>2];if((c|0)>=0){b=H[a+48>>2];d=b+1|0;d=(d|0)>0?d:0;if(d>>>0<=c>>>0){break b}b=c;while(1){b=((b>>>1|0)+b|0)+8|0;if(d>>>0>=b>>>0){continue}break}if(!(b>>>0>>0|b>>>0>1073741822)){c=tc(H[a+52>>2],b<<2);if(c){break c}}H[a+44>>2]=-1}H[196248]=H[40908];break a}H[a+44>>2]=b;H[a+52>>2]=c;b=H[a+48>>2]}if(b>>>0>>0){Nb(H[a+52>>2]+(b<<2)|0,0,d-b<<2)}H[a+48>>2]=d;c=H[a+52>>2];H[196248]=H[40908];c=(c+(d<<2)|0)-4|0;if((c|0)==784992){break a}H[c>>2]=0}H[a+56>>2]=1;H[a+60>>2]=1;H[a+72>>2]=0;H[a+76>>2]=0;F[a+68|0]=1;H[a- -64>>2]=0;H[a+80>>2]=0;H[a+84>>2]=0;H[a+88>>2]=0}function LE(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{h=H[b+4>>2];if(h>>>0>a>>>0){break a}d=H[b+8>>2];if(d>>>0>>0|d-a>>>0<2){break a}f=H[b+12>>2]-2|0;H[b+12>>2]=f;g=1;if((f|0)<=0){break a}e=I[a|0]|I[a+1|0]<<8;b:{if(!e){break b}g=a+2|0;if(g>>>0>>0|d>>>0>>0){break a}e=(e<<8|e>>>8)&65535;i=e<<2;if(i>>>0>d-g>>>0){break a}d=f-i|0;H[b+12>>2]=d;g=0;if((d|0)<=0){break b}f=a+2|0;if(h>>>0>f>>>0){break b}h=e>>>0>1?e:1;d=0;while(1){e=H[b+8>>2];if(e>>>0>>0|e-f>>>0<4){break b}f=H[c>>2];e=H[b+12>>2]-4|0;H[b+12>>2]=e;if((e|0)<=0){break b}if(!In(((d<<2)+a|0)+4|0,b,f)){break b}g=1;d=d+1|0;if((h|0)==(d|0)){break b}g=0;f=((d<<2)+a|0)+2|0;if(f>>>0>=K[b+4>>2]){continue}break}}return g}return 0}function dF(a,b){var c=0,d=0,e=0;a:{b:{c:{d=H[a+4>>2];c=H[d>>2];if((c|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=c>>>0){break b}a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){c=tc(H[d+8>>2],N(a,20));if(c){break c}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break a}H[d>>2]=a;H[d+8>>2]=c;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=724;H[a>>2]=b;H[a+16>>2]=0;a=a+8|0;c=I[b+2|0]|I[b+3|0]<<8;if(!c){Ee(163632,a);return}Ee(((c<<8|c>>>8)&65535)+b|0,a)}function cF(a,b){var c=0,d=0,e=0;a:{b:{c:{d=H[a+4>>2];c=H[d>>2];if((c|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=c>>>0){break b}a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){c=tc(H[d+8>>2],N(a,20));if(c){break c}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break a}H[d>>2]=a;H[d+8>>2]=c;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=725;H[a>>2]=b;H[a+16>>2]=0;a=a+8|0;c=I[b+2|0]|I[b+3|0]<<8;if(!c){Ee(163632,a);return}Ee(((c<<8|c>>>8)&65535)+b|0,a)}function bF(a,b){var c=0,d=0,e=0;a:{b:{c:{d=H[a+4>>2];c=H[d>>2];if((c|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=c>>>0){break b}a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){c=tc(H[d+8>>2],N(a,20));if(c){break c}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break a}H[d>>2]=a;H[d+8>>2]=c;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=726;H[a>>2]=b;H[a+16>>2]=0;a=a+8|0;c=I[b+6|0]|I[b+7|0]<<8;if(!c){Ee(163632,a);return}Ee(((c<<8|c>>>8)&65535)+b|0,a)}function aF(a,b){var c=0,d=0,e=0;a:{b:{c:{d=H[a+4>>2];c=H[d>>2];if((c|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=c>>>0){break b}a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){c=tc(H[d+8>>2],N(a,20));if(c){break c}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break a}H[d>>2]=a;H[d+8>>2]=c;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=727;H[a>>2]=b;H[a+16>>2]=0;a=a+8|0;c=I[b+2|0]|I[b+3|0]<<8;if(!c){Ee(163632,a);return}Ee(((c<<8|c>>>8)&65535)+b|0,a)}function Oka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=I[a+2|0]|I[a+3|0]<<8;if(d){c=((d<<8|d>>>8)&65535)+a|0}else{c=163632}d=H[b+100>>2];c=Gc(c,H[H[d+80>>2]+N(H[d+64>>2],20)>>2]);a:{if((c|0)==-1){break a}d=163632;e=I[a+4|0]|I[a+5|0]<<8;c=c>>>0<((e<<8|e>>>8)&65535)>>>0?((c<<1)+a|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}a=I[d|0]|I[d+1|0]<<8;if(!a){break a}e=(a<<8|a>>>8)&65535;c=d+2|0;while(1){a=I[c|0]|I[c+1|0]<<8;if(a){a=((a<<8|a>>>8)&65535)+d|0}else{a=163632}f=I[a|0]|I[a+1|0]<<8;g=(f<<8|f>>>8)&65535;h=a+4|0;a=I[a+2|0]|I[a+3|0]<<8;f=fl(b,g,h,(a<<8|a>>>8)&65535,(f?(g<<1)-2|0:0)+h|0,731,0);if(f){break a}c=c+2|0;e=e-1|0;if(e){continue}break}}return f|0}function Kn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{c=I[a|0]|I[a+1|0]<<8;switch(((c<<8|c>>>8)&65535)-1|0){case 1:break c;case 0:break d;default:break a}}c=b;b=I[a+2|0]|I[a+3|0]<<8;b=c-((b<<8|b>>>8)&65535)|0;c=((b<<1)+a|0)+6|0;a=I[a+4|0]|I[a+5|0]<<8;a=b>>>0<((a<<8|a>>>8)&65535)>>>0?c:163632;break b}h=164024;d=I[a+2|0]|I[a+3|0]<<8;e:{if(!d){break e}d=((d<<8|d>>>8)&65535)-1|0;c=0;while(1){f=d+c>>>1|0;g=N(f,6)+a|0;e=g+4|0;e=I[e|0]|I[e+1|0]<<8;f:{if(((e<<8|e>>>8)&65535)>>>0<=b>>>0){c=I[g+6|0]|I[g+7|0]<<8;if(((c<<8|c>>>8)&65535)>>>0>>0){c=f+1|0;break f}h=(N(f,6)+a|0)+4|0;break e}d=f-1|0}if((d|0)>=(c|0)){continue}break}}a=h+4|0}a=I[a|0]|I[a+1|0]<<8;d=(a<<8|a>>>8)&65535}return d}function $E(a,b){var c=0,d=0,e=0;a:{b:{c:{d=H[a+4>>2];c=H[d>>2];if((c|0)>=0){a=H[d+4>>2];e=a+1|0;e=(e|0)>0?e:0;if(e>>>0<=c>>>0){break b}a=c;while(1){a=((a>>>1|0)+a|0)+8|0;if(e>>>0>=a>>>0){continue}break}if(!(a>>>0>>0|a>>>0>214748363)){c=tc(H[d+8>>2],N(a,20));if(c){break c}}H[d>>2]=-1}H[196252]=H[40912];a=H[40911];H[196250]=H[40910];H[196251]=a;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992;break a}H[d>>2]=a;H[d+8>>2]=c;a=H[d+4>>2]}if(a>>>0>>0){Nb(H[d+8>>2]+N(a,20)|0,0,N(e-a|0,20))}H[d+4>>2]=e;a=(H[d+8>>2]+N(e,20)|0)-20|0}H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=728;H[a>>2]=b;H[a+16>>2]=0;a=a+8|0;c=I[b+2|0]|I[b+3|0]<<8;if(!c){Ee(163632,a);return}Ee(((c<<8|c>>>8)&65535)+b|0,a)}function O9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-80|0;xb=d;e=H[a+584>>2];a:{b:{switch(b-65560|0){case 0:b=e;e=H[c>>2];H[b>>2]=e;b=3;c=32;c:{d:{switch(e|0){case 2:b=1;H[d+48>>2]=1;rc(a,277,d+48|0);break c;case 3:b=1;c=8;break c;default:b=H[a>>2];a=H[a+628>>2];H[d>>2]=e;Pb(a,b,279302,d);b=0;break a;case 0:break c;case 1:break d}}b=2;c=16}H[d+32>>2]=c;rc(a,258,d+32|0);H[d+16>>2]=b;rc(a,339,d+16|0);if(I[a+13|0]&4){b=pg(a)}else{b=-1}H[a+508>>2]=b;f=a,g=Ve(a),H[f+588>>2]=g;b=1;break a;case 1:c=H[c>>2];H[e+4>>2]=c;b=1;if(c>>>0<2){break a}b=H[a>>2];a=H[a+628>>2];H[d+64>>2]=c;Pb(a,b,279513,d- -64|0);b=0;break a;default:break b}}b=zb[H[e+28>>2]](a,b,c)|0}xb=d+80|0;return b|0}function GI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;c=H[b+72>>2];d=H[a+100>>2];H[e+12>>2]=0;b=zb[H[b+36>>2]](b)|0;a:{if((b|0)<0|H[a+304>>2]){break a}c=K[c+4>>2]/100|0;c=b>>>0>>0?b:c;d=Ub(d,252,0,c,0,e+12|0);H[a+304>>2]=d;if(H[e+12>>2]){break a}H[a+300>>2]=c;if(!c){break a}b=0;if((c|0)!=1){g=c&67108862;while(1){a=d+N(b,252)|0;H[a+116>>2]=1;H[a+108>>2]=2596864;H[a+112>>2]=7;H[a+180>>2]=3932;H[a+4>>2]=4;a=d+N(b|1,252)|0;H[a+116>>2]=1;H[a+108>>2]=2596864;H[a+112>>2]=7;H[a+180>>2]=3932;H[a+4>>2]=4;b=b+2|0;f=f+2|0;if((g|0)!=(f|0)){continue}break}}if(!(c&1)){break a}a=d+N(b,252)|0;H[a+116>>2]=1;H[a+108>>2]=2596864;H[a+112>>2]=7;H[a+180>>2]=3932;H[a+4>>2]=4}xb=e+16|0}function jJ(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;g=xb-16|0;xb=g;h=H[a+532>>2];d=6;a:{if(!h){break a}i=H[h+4>>2];Al(H[h+136>>2],g,i);j=b>>>0>i>>>0?i:b;if(j){while(1){n=k<<2;l=H[n+g>>2];d=N(k,12)+h|0;e=H[d+96>>2];b:{if((l|0)>H[e>>2]){a=1;f=I[d+88|0];if(f>>>0>1){while(1){m=a<<2;o=H[m+e>>2];if((l|0)<=(o|0)){d=H[d+92>>2];f=m-4|0;a=H[d+f>>2];d=H[d+m>>2];e=H[e+f>>2];a=N(dc(l-e|0,o-e|0),d-a|0)+(a<<16)|0;break b}a=a+1|0;if((f|0)!=(a|0)){continue}break}}a=H[(H[d+92>>2]+(f<<2)|0)-4>>2]<<16;break b}a=H[H[d+92>>2]>>2]<<16}H[c+n>>2]=a;k=k+1|0;if((j|0)!=(k|0)){continue}break}}d=0;if(b>>>0<=i>>>0){break a}Nb((j<<2)+c|0,0,b-j<<2);d=0}xb=g+16|0;return d|0}function SE(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;i=N(c,1348)+a|0;g=H[i- -64>>2];e=H[i+56>>2];j=N(c,7676)+b|0;k=H[j+44>>2];h=Rb(K[b+40>>2]/40|0,k);a=1;a:{if((e|0)<=0){break a}d=H[j+260>>2];if(!d){break a}h=(h|0)<32?h:32;o=N(e,44)+g|0;p=N(c,7676)+b|0;while(1){if(a){a=0;b=h;c=0;while(1){e=N(a,28)+p|0;f=H[e+288>>2];if(!(!(f&1)|(f&2)>>>1^H[i+68>>2]!=F[g+13|0])){d=G[g>>1];l=d-H[e+264>>2]|0;f=l>>31;m=d-H[e+276>>2]|0;n=m>>31;e=(f^l)-f>>>0>(n^m)-n>>>0?e+276|0:e+264|0;f=d-H[e>>2]|0;d=f>>31;f=Rb((d^f)-d|0,k);d=(f|0)<(b|0);b=d?f:b;c=d?e:c;d=H[j+260>>2]}a=a+1|0;if(d>>>0>a>>>0){continue}break}if(c){H[g+20>>2]=c}a=d}else{a=0}g=g+44|0;if(o>>>0>g>>>0){continue}break}}}function aga(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;if(!H[a+4>>2]){return 0}i=Tb(H[a+52>>2]);a:{if(!i){break a}d=Xc(a,H[a+20>>2]-1|0);f=Xc(a,0);if(H[a+20>>2]>=2){e=H[a+52>>2];while(1){h=Ob(i,d,e);d=Ob(d,f,e);f=Ob(f,h,H[a+52>>2]);e=H[a+52>>2];f=f+e|0;d=d-e|0;g=g+1|0;if((g|0)<(H[a+20>>2]/2|0)){continue}break}}Kb(i);if(b){b:{h=0;e=H[a+924>>2];if(!e){break b}b=H[a+16>>2];g=Tb(b);if(g){d=H[a+20>>2];if((d|0)>=2){f=N(d-1|0,b)+e|0;while(1){d=Ob(g,f,b);f=Ob(f,e,b);e=Ob(e,d,H[a+16>>2]);b=H[a+16>>2];e=e+b|0;f=f-b|0;h=h+1|0;d=H[a+20>>2];if((h|0)<((d|0)/2|0)){continue}break}}Kb(g);b=H[a+384>>2];H[a+384>>2]=d-H[a+376>>2];H[a+376>>2]=d-b}}}if(!c){break a}pD(a)}return(i|0)!=0|0}function XB(a,b,c){var d=0,e=0;d=xb-16|0;xb=d;e=H[a+200>>2];if(e&1){a:{if(!(!b|!(I[b+9|0]&2))){Xb(a,268644);mc(a,c);break a}if(e&4){H[a+200>>2]=e|8}if((c|0)!=7){Xb(a,268665);mc(a,c);break a}c=d+9|0;vd(a,c,7);xc(a,c,7);if(mc(a,0)){break a}F[d+6|0]=I[d+15|0];c=I[d+11|0]|I[d+12|0]<<8|(I[d+13|0]<<16|I[d+14|0]<<24);G[d+2>>1]=c;G[d+4>>1]=c>>>16;c=I[d+9|0]|I[d+10|0]<<8;G[d>>1]=c<<8|c>>>8;b:{if(I[a+201|0]&2|(!a|!b)){break b}c:{if(!((I[d+2|0]-13&255)>>>0<244|(I[d+3|0]-32&255)>>>0<225|(I[d+4|0]>23|I[d+5|0]>59))){if(I[d+6|0]<61){break c}}Xb(a,266017);break b}a=J[d+4>>1]|J[d+6>>1]<<16;H[b+60>>2]=J[d>>1]|J[d+2>>1]<<16;H[b+64>>2]=a;H[b+8>>2]=H[b+8>>2]|512}}xb=d+16|0;return}hc(a,268620);X()}function FI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=xb-32|0;xb=c;e=H[b+96>>2];a:{if((e|0)<0|H[a+300>>2]<=(e|0)){break a}g=H[a+304>>2];if((zb[H[b+52>>2]](b,6,c,3)|0)<6){break a}d=H[c+12>>2];if(!d){break a}f=d>>31;d=(d^f)-f|0;if((d|0)!=65536){h=a,i=dc(1e3,d),G[h+68>>1]=i;h=c,i=dc(H[c>>2],d),H[h>>2]=i;h=c,i=dc(H[c+4>>2],d),H[h+4>>2]=i;h=c,i=dc(H[c+8>>2],d),H[h+8>>2]=i;h=c,i=dc(H[c+16>>2],d),H[h+16>>2]=i;h=c,i=dc(H[c+20>>2],d),H[h+20>>2]=i;H[c+12>>2]=H[c+12>>2]<0?-65536:65536}a=N(e,252)+g|0;d=a+216|0;H[d>>2]=H[c>>2];H[a+224>>2]=H[c+4>>2];H[a+220>>2]=H[c+8>>2];H[a+228>>2]=H[c+12>>2];if(!sn(d)){H[b+12>>2]=3;break a}H[a+232>>2]=G[c+18>>1];H[a+236>>2]=G[c+22>>1]}xb=c+32|0}function Eaa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=xb-16|0;xb=j;n=e&1;e=e>>>1|0;o=g<<1;p=h<<2;while(1){g=e;while(1){c=i;h=I[c+2|0];i=I[c+3|0];k=j+12|0;l=j+8|0;m=j+4|0;qc(H[a+68>>2],I[c|0],h,i,k,l,m);d=b;H[d>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;qc(H[a+68>>2],I[c+1|0],h,i,k,l,m);H[d+4>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;i=c+4|0;b=d+8|0;g=g-1|0;if(g){continue}break}g=2;a:{if(!n){i=c;break a}qc(H[a+68>>2],I[c+4|0],I[c+6|0],I[c+7|0],j+12|0,j+8|0,j+4|0);H[b>>2]=H[j+12>>2]|H[j+8>>2]<<8|H[j+4>>2]<<16|-16777216;g=3}b=(d+p|0)+(g<<2)|0;i=(i+o|0)+4|0;f=f-1|0;if(f){continue}break}xb=j+16|0}function Ns(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;k=H[a+32>>2];e=(c>>>0)%K[a+28>>2]|0;f=H[k+N(e,12)>>2];a:{b:{if(!f){break b}n=H[a+24>>2];a=0;g=-1;while(1){m=N(e,12)+k|0;c:{if(H[m+8>>2]!=(c|0)){break c}h=H[f+4>>2];l=H[f>>2];i=h-l|0;d=H[b>>2];if((i|0)!=(H[b+4>>2]-d|0)){break c}j=H[f+12>>2];if((j|0)!=H[b+12>>2]){break c}if((h|0)!=(l|0)){if(md(l,d,i)){break c}}h=j<<4;if(!h){break b}d=0;i=H[f+16>>2];j=H[b+16>>2];if(I[i|0]!=I[j|0]){break c}while(1){d=d+1|0;if((h|0)==(d|0)){break b}if(I[d+i|0]==I[d+j|0]){continue}break}if(d>>>0>=h>>>0){break b}}g=(g|0)==-1?H[m+4>>2]?-1:e:g;a=a+1|0;e=e+a&n;f=H[N(e,12)+k>>2];if(f){continue}break}if((g|0)!=-1){break a}}g=e}return g}function KV(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;e=xb-96|0;xb=e;H[e+92>>2]=0;d=I[b+11|0];g=d<<24>>24<0;h=g?H[b>>2]:b;a:{if(!h){break a}d=g?H[b+4>>2]:d;if(!d){break a}ij(h,d,e+92|0,e+88|0,0);f=H[e+92>>2]}d=jb(f|0,e|0)|0;if(d>>>0>=4294963201){H[197018]=0-d;d=-1}b:{if(!d){d=0;if((H[e+12>>2]&61440)==16384){break b}}c=pi(f,c?239680:239463);H[a+4>>2]=c;if(f){Kb(f);c=H[a+4>>2]}if(c){Lg(c,0,2);i=a,j=uk(H[a+4>>2]),H[i+12>>2]=j;Lg(H[a+4>>2],0,0);H[a+8>>2]=0;d=I[b+11|0];c=d<<24>>24<0;d=c?H[b+4>>2]:d;c:{if(!(!d|H[((d<<2)+(c?H[b>>2]:b)|0)-4>>2]!=47)){H[a+12>>2]=2147483647;break c}d=1;if(H[a+12>>2]!=2147483647){break b}}zb[H[H[a>>2]+8>>2]](a)}d=0}xb=e+96|0;return d|0}function DG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=O(0),h=0,i=O(0),j=O(0),k=O(0),l=O(0),m=O(0),n=O(0);f=d+16|0;h=H[d+12>>2];e=H[d+8>>2];i=O(H[c+4>>2]);g=O(H[c>>2]);j=O(H[b+4>>2]);m=O(H[b>>2]);k=O(H[a+4>>2]);n=O(H[a>>2]);a:{if(I[d+4|0]){if(!H[f>>2]){zb[H[e+12>>2]](e,h,f,L[d+28>>2],L[d+32>>2],H[e+32>>2]);H[d+16>>2]=1;a=H[d+32>>2];H[d+20>>2]=H[d+28>>2];H[d+24>>2]=a}zb[H[e+24>>2]](e,h,f,n,k,m,j,g,i,H[e+44>>2]);break a}l=L[d>>2];g=O(O(i*l)+g);if(!H[d+16>>2]){zb[H[e+12>>2]](e,h,f,L[d+28>>2],L[d+32>>2],H[e+32>>2]);H[d+16>>2]=1;a=H[d+32>>2];H[d+20>>2]=H[d+28>>2];H[d+24>>2]=a}zb[H[e+24>>2]](e,h,f,O(O(k*l)+n),k,O(O(j*l)+m),j,g,i,H[e+44>>2])}L[d+32>>2]=i;L[d+28>>2]=g;return 0}function hS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a=xb-160|0;xb=a;G[a+156>>1]=I[773109]|I[773110]<<8;H[a+152>>2]=I[773105]|I[773106]<<8|(I[773107]<<16|I[773108]<<24);f=a+152|0;mh(f|1,238864,1,H[c+4>>2]);g=Od();H[a>>2]=e;e=a+139|0;f=Fe(e,13,g,f,a)+e|0;i=ef(e,f,c);h=a+16|0;g=H[c+28>>2];H[h>>2]=g;H[g+4>>2]=H[g+4>>2]+1;H[197455]=0;ua(3472,e|0,i|0,f|0,a+32|0,a+28|0,a+24|0,h|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=H[a+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}b=tj(b,a+32|0,H[a+28>>2],H[a+24>>2],c,d);xb=a+160|0;return b|0}c=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function eS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a=xb-160|0;xb=a;G[a+156>>1]=I[773109]|I[773110]<<8;H[a+152>>2]=I[773105]|I[773106]<<8|(I[773107]<<16|I[773108]<<24);f=a+152|0;mh(f|1,238864,0,H[c+4>>2]);g=Od();H[a>>2]=e;e=a+139|0;f=Fe(e,13,g,f,a)+e|0;i=ef(e,f,c);h=a+16|0;g=H[c+28>>2];H[h>>2]=g;H[g+4>>2]=H[g+4>>2]+1;H[197455]=0;ua(3472,e|0,i|0,f|0,a+32|0,a+28|0,a+24|0,h|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=H[a+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}b=tj(b,a+32|0,H[a+28>>2],H[a+24>>2],c,d);xb=a+160|0;return b|0}c=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function aD(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;var h=0;h=xb-16|0;xb=h;a:{b:{switch(I[c+16|0]-8|0){case 24:if((e|0)<=0){break a}c=0;while(1){zb[H[H[d>>2]+12>>2]](d,h+8|0,4,1,0,0)|0;F[b|0]=I[h+8|0];F[b+1|0]=I[h+9|0];F[b+2|0]=I[h+10|0];te(a,c+g|0,f,I[h+11|0]);b=b+3|0;c=c+1|0;if((e|0)!=(c|0)){continue}break};break a;case 0:zb[H[H[d>>2]+12>>2]](d,b,e,1,0,0)|0;break a;case 7:case 8:if((e|0)<=0){break a}a=0;while(1){zb[H[H[d>>2]+12>>2]](d,h+14|0,2,1,0,0)|0;c=J[h+14>>1];F[b|0]=c<<3;F[b+2|0]=c>>>7&248;F[b+1|0]=c>>>2&248;b=b+3|0;a=a+1|0;if((e|0)!=(a|0)){continue}break};break a;case 16:break b;default:break a}}zb[H[H[d>>2]+12>>2]](d,b,N(e,3),1,0,0)|0}xb=h+16|0}function sk(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;h=xb-16|0;xb=h;f=d?d:789320;d=H[f>>2];a:{b:{c:{if(!b){if(d){break c}break a}e=-2;if(!c){break a}i=a?a:h+12|0;d:{if(d){a=c;break d}a=I[b|0];d=a<<24>>24;if((d|0)>=0){H[i>>2]=a;e=(d|0)!=0;break a}a=F[b|0];if(!H[H[197059]>>2]){H[i>>2]=a&57343;e=1;break a}a=(a&255)-194|0;if(a>>>0>50){break c}d=H[(a<<2)+761856>>2];a=c-1|0;if(!a){break b}b=b+1|0}g=I[b|0];j=g>>>3|0;if((j-16|(d>>26)+j)>>>0>7){break c}while(1){a=a-1|0;d=g-128|d<<6;if((d|0)>=0){H[f>>2]=0;H[i>>2]=d;e=c-a|0;break a}if(!a){break b}b=b+1|0;g=I[b|0];if((g&192)==128){continue}break}}H[f>>2]=0;H[197018]=25;e=-1;break a}H[f>>2]=d}xb=h+16|0;return e|0}function Qka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{d=I[a+2|0]|I[a+3|0]<<8;if(d){c=((d<<8|d>>>8)&65535)+a|0}else{c=163632}d=H[b+100>>2];c=Gc(c,H[H[d+80>>2]+N(H[d+64>>2],20)>>2]);if((c|0)==-1){break a}d=163632;e=I[a+4|0]|I[a+5|0]<<8;c=c>>>0<((e<<8|e>>>8)&65535)>>>0?((c<<1)+a|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}c=I[d|0]|I[d+1|0]<<8;if(!c){break a}e=(c<<8|c>>>8)&65535;g=e>>>0>1?e:1;a=0;f=1;while(1){c=((c<<8|(c&65280)>>>8)&65535)>>>0>a>>>0?((a<<1)+d|0)+2|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+d|0}else{c=163632}if(WE(c,b)){break a}a=a+1|0;f=e>>>0>a>>>0;if((a|0)==(g|0)){break a}c=I[d|0]|I[d+1|0]<<8;continue}}return f|0}function xu(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=H[(c?16:12)+b>>2];b=H[(c?8:4)+b>>2];e=N(c,7676)+a|0;f=e+7712|0;a:{if((b|0)==H[f>>2]&H[e+7716>>2]==(g|0)){break a}H[f>>2]=b;H[e+48>>2]=g;H[e+44>>2]=b;H[e+7716>>2]=g;if(!H[e+260>>2]){break a}f=0;h=N(c,7676)+a|0;while(1){a=N(f,28)+h|0;c=Rb(H[a+264>>2],b)+g|0;H[a+272>>2]=c;H[a+268>>2]=c;c=Rb(H[a+276>>2],b)+g|0;H[a+284>>2]=c;H[a+280>>2]=c;H[a+288>>2]=H[a+288>>2]&-2;if(Rb(H[a+264>>2]-H[a+276>>2]|0,b)+48>>>0<=96){c=H[a+268>>2]+32&-64;H[a+272>>2]=c;c=dc(c,b)-H[a+276>>2]|0;d=c>>31;d=Rb((c^d)-d|0,b);d=(d|0)<32?0:d+32&-64;H[a+284>>2]=((c|0)<0?d:0-d|0)+H[a+272>>2];H[a+288>>2]=H[a+288>>2]|1}f=f+1|0;if(f>>>0>2]){continue}break}}}function eda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if((e|0)<=0){break a}k=H[a+28>>2];if(!k){break a}j=H[H[a+408>>2]+8>>2];while(1){l=e-1|0;a=d<<2;m=H[a+H[c+12>>2]>>2];n=H[a+H[c+8>>2]>>2];o=H[a+H[c+4>>2]>>2];p=H[a+H[c>>2]>>2];a=H[b>>2];f=0;while(1){g=I[a+2|0];h=I[a+1|0];i=I[a|0];F[f+m|0]=I[a+3|0];g=((g^255)<<2)+j|0;h=((h^255)<<2)+j|0;i=((i^255)<<2)+j|0;F[f+p|0]=H[g+2048>>2]+(H[h+1024>>2]+H[i>>2]|0)>>>16;F[f+o|0]=H[g+5120>>2]+(H[h+4096>>2]+H[i+3072>>2]|0)>>>16;F[f+n|0]=H[g+7168>>2]+(H[h+6144>>2]+H[i+5120>>2]|0)>>>16;a=a+4|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=l;if(a){continue}break}}}function tS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a=xb-80|0;xb=a;G[a+76>>1]=I[773109]|I[773110]<<8;H[a+72>>2]=I[773105]|I[773106]<<8|(I[773107]<<16|I[773108]<<24);f=a+72|0;mh(f|1,238864,1,H[c+4>>2]);g=Od();H[a>>2]=e;e=a+59|0;f=Fe(e,13,g,f,a)+e|0;i=ef(e,f,c);h=a+16|0;g=H[c+28>>2];H[h>>2]=g;H[g+4>>2]=H[g+4>>2]+1;H[197455]=0;ua(3461,e|0,i|0,f|0,a+32|0,a+28|0,a+24|0,h|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=H[a+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}b=Xi(b,a+32|0,H[a+28>>2],H[a+24>>2],c,d);xb=a+80|0;return b|0}c=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function pS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a=xb-80|0;xb=a;G[a+76>>1]=I[773109]|I[773110]<<8;H[a+72>>2]=I[773105]|I[773106]<<8|(I[773107]<<16|I[773108]<<24);f=a+72|0;mh(f|1,238864,0,H[c+4>>2]);g=Od();H[a>>2]=e;e=a+59|0;f=Fe(e,13,g,f,a)+e|0;i=ef(e,f,c);h=a+16|0;g=H[c+28>>2];H[h>>2]=g;H[g+4>>2]=H[g+4>>2]+1;H[197455]=0;ua(3461,e|0,i|0,f|0,a+32|0,a+28|0,a+24|0,h|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=H[a+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}b=Xi(b,a+32|0,H[a+28>>2],H[a+24>>2],c,d);xb=a+80|0;return b|0}c=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function jC(a,b,c){var d=0,e=0;d=xb-272|0;xb=d;e=H[a+200>>2];if(e&1){a:{if(e&4){Xb(a,263363);mc(a,c);break a}if(e&2){Xb(a,263465)}if(!(!b|(H[b+8>>2]&2049)!=1)){Xb(a,263600);mc(a,c);break a}if((c|0)!=4){Xb(a,263714);mc(a,c);break a}c=d+268|0;vd(a,c,4);xc(a,c,4);if(mc(a,0)){break a}c=I[d+268|0]|I[d+269|0]<<8|(I[d+270|0]<<16|I[d+271|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=(c|0)>=0?c:-1;if((c|0)<=0){Xb(a,263905);break a}if(!(!b|!(I[b+9|0]&8)|c-46001>>>0>4294966294)){pf(d,1,5,c);Ci(a,d,263975);break a}H[a+460>>2]=c;b:{if(!a|!b){break b}if(c-625000001>>>0<=3669967310){Xb(a,261565);break b}H[b+40>>2]=c;H[b+8>>2]=H[b+8>>2]|1}}xb=d+272|0;return}hc(a,263269);X()}function ic(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=2147483647;a:{if(!c){break a}b:{d=b>>31;f=(d^b)-d|0;d=a>>31;e=(d^a)-d|0;d=c>>31;d=(d^c)-d|0;if(f+e>>>0<=129894-(d>>>17|0)>>>0){f=N(f,e)+(d>>>1|0)|0;break b}i=f>>>16|0;g=e&65535;f=f&65535;j=e>>>16|0;k=N(i,g)+N(f,j)|0;e=k<<16;g=e+N(f,g)|0;f=g+(d>>>1|0)|0;e=((N(i,j)+(k>>>16|0)|0)+(e>>>0>g>>>0)|0)+(f>>>0>>0)|0;if(!e){break b}if(d>>>0<=e>>>0){break a}g=Q(e);i=32-g|0;e=f>>>i|e<>>0)/(d>>>0)|0;e=e-N(d,h)|0;f=f<>>31;e=g-(d>>>0>g>>>0?0:d)|0;h=h<<1|d>>>0<=g>>>0;f=f<<1;i=i-1|0;if(i){continue}break}break a}h=(f>>>0)/(d>>>0)|0}a=a>>31|1;a=(b|0)<0?0-a|0:a;return(((c|0)<0?0-a|0:a)|0)<0?0-h|0:h}function od(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=xb-16|0;xb=e;a:{if(!(I[a+12|0]&128)){break a}b:{switch(J[b+2>>1]-3|0){case 0:case 5:yj(c,H[b+4>>2]);break a;case 1:case 6:case 8:Gh(c,H[b+4>>2]);break a;case 2:case 7:Gh(c,H[b+4>>2]<<1);break a;case 9:break b;default:break a}}xq(c,H[b+4>>2])}H[b+8>>2]=H[a+488>>2];f=H[b+4>>2];d=J[b+2>>1];if(d>>>0<=13){d=H[(d<<2)+290752>>2]}else{d=0}c:{d:{if((zb[H[a+640>>2]](H[a+628>>2],H[b+8>>2],0)|0)!=H[b+8>>2]){break d}g=c;c=N(d,f);if((zb[H[a+636>>2]](H[a+628>>2],g,c)|0)!=(c|0)){break d}h=1;H[a+488>>2]=H[a+488>>2]+(c+1&-2);break c}c=H[a>>2];d=H[a+628>>2];i=e,j=H[rd(a,J[b>>1])+16>>2],H[i>>2]=j;Pb(d,c,277262,e)}xb=e+16|0;return h}function kl(a,b){var c=0,d=0,e=0,f=0;f=H[b+12>>2];d=H[b+4>>2];a:{if(f>>>0>=d>>>0){F[b+16|0]=1;e=163632;break a}e=f+H[b>>2]|0}e=I[e|0]<<24;c=f+1|0;b:{if(c>>>0>=d>>>0){F[b+16|0]=1;c=163632;break b}c=c+H[b>>2]|0}e=e|I[c|0]<<16;c=f+2|0;c:{if(c>>>0>=d>>>0){F[b+16|0]=1;c=163632;break c}c=c+H[b>>2]|0}c=e|I[c|0]<<8;e=d;d=f+3|0;d:{if(e>>>0<=d>>>0){F[b+16|0]=1;e=163632;break d}e=d+H[b>>2]|0}c=c|I[e|0];d=H[a+4>>2];e:{if(d>>>0>2]){H[a+4>>2]=d+1;a=H[a+16>>2]+(d<<3)|0;break e}F[a|0]=1;a=H[40909];H[196248]=H[40908];H[196249]=a;a=784992}M[a>>3]=c|0;f:{a=H[b+4>>2];if(I[b+16|0]|a>>>0>>0){break f}f=f+4|0;if(f>>>0>a>>>0){break f}H[b+12>>2]=f;return}F[b+16|0]=1;H[b+12>>2]=a}function tD(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;a:{e=d>>31;f=(e^d)-e|0;e=a>>31;if((f+((e^a)-e|0)|0)>131071){break a}e=c>>31;f=(e^c)-e|0;e=b>>31;if((f+((e^b)-e|0)|0)>131071){break a}a=N(a,d);b=N(b,c);return(a|0)>(b|0)?1:(a|0)<(b|0)?-1:0}f=d&65535;g=a>>>16|0;h=d>>>16|0;a=a&65535;i=N(h,a);d=N(f,g)+i|0;e=d<<16;j=c>>>16|0;k=b&65535;l=N(j,k);m=c&65535;n=b>>>16|0;b=l+N(m,n)|0;c=b<<16;g=(N(g,h)+(d>>>16|0)|0)+((d>>>0>>0)<<16)|0;d=e+N(a,f)|0;e=g+(d>>>0>>0)|0;a=(N(n,j)+(b>>>16|0)|0)+((b>>>0>>0)<<16)|0;b=c+N(m,k)|0;c=a+(b>>>0>>0)|0;a=1;b:{if(e>>>0>c>>>0){break b}a=-1;if(c>>>0>e>>>0){break b}a=1;if(b>>>0>>0){break b}a=b>>>0>d>>>0?-1:0}return a}function Xb(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-32|0;xb=d;a:{if(a){c=0;b:{if(I[b|0]!=35){break b}c=1;if(I[b+1|0]==32){break b}c=2;if(I[b+2|0]==32){break b}c=3;if(I[b+3|0]==32){break b}c=4;if(I[b+4|0]==32){break b}c=5;if(I[b+5|0]==32){break b}c=6;if(I[b+6|0]==32){break b}c=7;if(I[b+7|0]==32){break b}c=8;if(I[b+8|0]==32){break b}c=9;if(I[b+9|0]==32){break b}c=10;if(I[b+10|0]==32){break b}c=11;if(I[b+11|0]==32){break b}c=12;if(I[b+12|0]==32){break b}c=13;if(I[b+13|0]==32){break b}c=I[b+14|0]==32?14:15}b=c+b|0;c=H[a+164>>2];if(!c){H[d+16>>2]=b;a=H[191568];Fc(a,259883,d+16|0);Mg(10,a);break a}zb[c|0](a,b);break a}H[d>>2]=b;a=H[191568];Fc(a,259883,d);Mg(10,a)}xb=d+32|0}function A9(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;if((c|0)>0){g=H[a+12>>2];while(1){i=c;j=H[a+4>>2];f=+L[b+4>>2];c=1023;a:{if(f>=15.742){break a}c=0;if(f<=24283e-8){break a}e=tk(f)*1.4426950408889634+12;if(j){c=gma(H[197066],H[197067],1284865837,1481765933)+1|0;d=yb;d=c?d:d+1|0;H[197066]=c;H[197067]=d;f=+L[b+4>>2];e=e*64+ +(d>>>1|0)*4.656612875245797e-10+-.5}else{e=e*64}if(P(e)<2147483648){c=~~e;break a}c=-2147483648}d=c;e=.473684211;k=.210526316;b:{if(!d){break b}l=+L[b>>2];h=+L[b+8>>2]*3+(f*15+l);if(h<=0){break b}e=f*9/h;k=l*4/h}c=i-1|0;m=d<<14;d=nB(k,e,j);H[g>>2]=m|((d|0)<0?12266:d);b=b+12|0;g=g+4|0;if(i>>>0>1){continue}break}}}function kba(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(a){c=H[a>>2];if(c){e=H[c+668>>2];f=H[c+676>>2];b:{if(!b){break b}d=H[b>>2];if(!d){break b}Mh(c,d,32767,-1);if(H[c+644>>2]){cc(c,H[c+648>>2]);H[c+644>>2]=0}Ei(d,f,e);H[b>>2]=0}b=xb-160|0;xb=b;if(H[c+276>>2]){Oj(c+212|0)}cc(c,H[c+268>>2]);cc(c,H[c+356>>2]);cc(c,H[c+352>>2]);cc(c,H[c+360>>2]);cc(c,H[c+364>>2]);cc(c,H[c+368>>2]);cc(c,H[c+372>>2]);b=Ob(b,c,156);d=H[c+164>>2];g=H[c+160>>2];h=H[c+168>>2];i=H[c+676>>2];Nb(c+156|0,0,612);H[c+676>>2]=i;H[c+168>>2]=h;H[c+160>>2]=g;H[c+164>>2]=d;Ob(c,b,156);xb=b+160|0;Ei(c,f,e);H[a>>2]=0;return}}if(!b){break a}a=H[b>>2];if(!a){break a}Ei(a,0,0);H[b>>2]=0}}function ci(a,b,c,d){var e=0,f=0,g=0;e=xb-48|0;xb=e;H[d>>2]=0;H[c>>2]=0;f=H[a+80>>2];a:{if(zb[H[f+192>>2]](a,H[a+84>>2],b,c,d,H[f+48>>2])|0){break a}H[d>>2]=0;H[c>>2]=0;f=H[a+80>>2];if(!(zb[H[f+196>>2]](a,H[a+84>>2],b,c,d,H[f+52>>2])|0)){break a}f=b;b=H[a+80>>2];b=zb[H[b+176>>2]](a,H[a+84>>2],f,H[b+32>>2])|0;H[e+40>>2]=0;H[e+44>>2]=0;H[e+32>>2]=0;H[e+36>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;f=(b|0)/-2|0;b=H[a+80>>2];b:{if(zb[H[b+156>>2]](a,H[a+84>>2],e,H[b+12>>2])|0){a=H[e>>2];break b}g=+H[a+24>>2]*.8;if(P(g)<2147483648){a=~~g;break b}a=-2147483648}H[c>>2]=f+H[c>>2];H[d>>2]=H[d>>2]-a}xb=e+48|0}function Xj(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=163632;d=I[a+2|0]|I[a+3|0]<<8;a:{if(!d){break a}g=((d<<8|d>>>8)&65535)-1|0;l=(b<<8|(b&65280)>>>8)&65535;m=(c<<8|(c&65280)>>>8)&65535;while(1){b:{c:{d:{f=g+j>>>1|0;h=(f<<3)+a|0;d=h+4|0;i=I[d|0]|I[d+1|0]<<8;k=(i<<8|i>>>8)&65535;d=b&65535;e:{if(!(k>>>0>d>>>0|(i|0)!=(l|0))){d=I[h+6|0]|I[h+7|0]<<8;if(((d<<8|d>>>8)&65535)>>>0>(c&65535)>>>0){break e}if((d|0)==(m|0)){break d}break c}if(d>>>0>=k>>>0){break c}}g=f-1|0;break b}e=((f<<3)+a|0)+4|0;break a}j=f+1|0}if((g|0)>=(j|0)){continue}break}}b=a;a=I[e+4|0]|I[e+5|0]<<8|(I[e+6|0]<<16|I[e+7|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);return a?b+a|0:0}function _n(a,b,c,d){var e=0,f=0,g=0;e=xb-48|0;xb=e;H[d>>2]=0;H[c>>2]=0;f=H[a+80>>2];a:{if(zb[H[f+196>>2]](a,H[a+84>>2],b,c,d,H[f+52>>2])|0){break a}H[d>>2]=0;H[c>>2]=0;f=H[a+80>>2];if(!(zb[H[f+192>>2]](a,H[a+84>>2],b,c,d,H[f+48>>2])|0)){break a}f=b;b=H[a+80>>2];b=zb[H[b+176>>2]](a,H[a+84>>2],f,H[b+32>>2])|0;H[e+40>>2]=0;H[e+44>>2]=0;H[e+32>>2]=0;H[e+36>>2]=0;H[e+24>>2]=0;H[e+28>>2]=0;H[e+16>>2]=0;H[e+20>>2]=0;H[e+8>>2]=0;H[e+12>>2]=0;H[e>>2]=0;H[e+4>>2]=0;f=(b|0)/2|0;b=H[a+80>>2];b:{if(zb[H[b+156>>2]](a,H[a+84>>2],e,H[b+12>>2])|0){a=H[e>>2];break b}g=+H[a+24>>2]*.8;if(P(g)<2147483648){a=~~g;break b}a=-2147483648}H[c>>2]=f+H[c>>2];H[d>>2]=a+H[d>>2]}xb=e+48|0}function V5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=88;H[c+8>>2]=1;H[a+8>>2]=H[a+8>>2]+88;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],b+16|0,4);Lb(H[a+4>>2],b+20|0,4);Lb(H[a+4>>2],b+24|0,4);Lb(H[a+4>>2],b+28|0,4);H[c+4>>2]=0;Lb(H[a+4>>2],b+32|0,4);Lb(H[a+4>>2],b+36|0,4);Lb(H[a+4>>2],b+40|0,4);Lb(H[a+4>>2],b+44|0,4);Lb(H[a+4>>2],b+48|0,2);Lb(H[a+4>>2],b+50|0,2);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],b- -64|0,4);Lb(H[a+4>>2],b+68|0,4);Lb(H[a+4>>2],b+72|0,4);Lb(H[a+4>>2],b+76|0,4);xb=c+16|0}function qy(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;F[a+122|0]=0;G[a+120>>1]=c;G[a+118>>1]=b;if(I[a+112|0]){G[a+110>>1]=c;G[a+108>>1]=b}h=J[a+80>>1];a:{if((h|0)!=7){e=G[a+108>>1];break a}i=+(c|0);d=P(i/+G[a+110>>1]);j=+(b|0);e=G[a+108>>1];f=P(j/+(e|0));if(d>31|1;d=T(d*j/f+.5);b:{if(P(d)<2147483648){b=~~d;break b}b=-2147483648}b=b?b:g;G[a+118>>1]=b;break a}g=c>>31|1;d=T(f*i/d+.5);c:{if(P(d)<2147483648){c=~~d;break c}c=-2147483648}c=c?c:g;G[a+120>>1]=c}d:{if((e|0)<2|(b|0)<2){break d}e:{switch(h-7|0){case 0:d=+(b|0)/+(e|0);M[a+88>>3]=d;M[a+96>>3]=d;_e(a);return;case 1:break e;default:break d}}M[a+96>>3]=+(c|0)/+G[a+110>>1];M[a+88>>3]=+(b|0)/+(e|0)}_e(a)}function Y5(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=H[c+8>>2];c=H[c+4>>2];f=f*3.14/180;k=ze(f);l=ne(f);a:{if((c|0)==(n|0)){f=0;break a}f=0;while(1){b:{c:{d:{e:{a=H[c>>2];switch((zb[H[H[a>>2]+8>>2]](a)|0)-1|0){case 4:break c;case 1:break d;case 0:break e;default:break b}}h=M[a+8>>3]*g;i=M[a+16>>3]*g;j=h*k-l*i;h=h*l+k*i;Qd(b,M[d>>3]+j,M[e>>3]+h);f=f+h;m=m+j;break b}h=M[a+8>>3]*g;i=M[a+16>>3]*g;j=h*k-l*i;h=h*l+k*i;jd(b,M[d>>3]+j,M[e>>3]+h);f=f+h;m=m+j;break b}hf(b)}c=c+4|0;if((n|0)!=(c|0)){continue}break}}a=H[b+8>>2]-H[b+4>>2]|0;b=a>>>0>4;if(b){g=+((a>>2)-1>>>0);M[d>>3]=m/g+M[d>>3];M[e>>3]=f/g+M[e>>3]}return b|0}function jo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=H[a+760>>2];a:{if(h>>>0>b>>>0){g=H[a+764>>2];b:{if(J[a+210>>1]){e=g+(b<<2)|0;d=I[e|0]|I[e+1|0]<<8|(I[e+2|0]<<16|I[e+3|0]<<24);f=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);d=e+8|0;e=f;if(d>>>0>g+(h<<2)>>>0){break b}d=d-4|0;d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);e=d<<24|d<<8&16711680|(d>>>8&65280|d>>>24);break b}f=g+(b<<1)|0;e=I[f|0]<<8|I[f+1|0];d=e;f=f+4|0;if(f>>>0<=g+(h<<1)>>>0){d=f-2|0;d=I[d|0]<<8|I[d+1|0]}f=e<<1;e=d<<1}d=e;g=0;e=H[a+724>>2];if(e>>>0>>0){H[c>>2]=0;return 0}if(d>>>0>e>>>0){d=e;a=0;if((h-2|0)!=(b|0)){break a}}a=d>>>0>>0?e:d}else{a=0}g=a-f|0;a=f}H[c>>2]=g;return a|0}function hs(a){var b=0,c=0;H[197455]=0;ia(658,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){b=H[a+120>>2];if(b){while(1){b=H[a+124>>2]+N(b,28)|0;H[b-20>>2]=0;c=b-16|0;Kb(H[c>>2]);H[c>>2]=0;b=b-24|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+120>>2]-1|0;H[a+120>>2]=b;if(b){continue}break}}Kb(H[a+124>>2]);H[a+124>>2]=0;H[a+116>>2]=0;H[a+120>>2]=0;b=H[a+108>>2];if(b){while(1){b=H[a+112>>2]+N(b,28)|0;H[b-20>>2]=0;c=b-16|0;Kb(H[c>>2]);H[c>>2]=0;b=b-24|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+108>>2]-1|0;H[a+108>>2]=b;if(b){continue}break}}Kb(H[a+112>>2]);H[a+112>>2]=0;H[a+104>>2]=0;H[a+108>>2]=0;H[a+56>>2]=0;Kb(H[a+60>>2]);H[a+60>>2]=0;H[a+52>>2]=0;H[a+56>>2]=0;return}ha(0)|0;_()|0;Zb();X()}function dt(a,b,c,d,e){var f=0;a:{if(!b){b=163632;if(!e){break a}zb[e|0](d);return 163632}b:{c:{d:{e:{f:{if((b|0)<0){break f}f=oc(1,32);if(!f){break f}H[f+8>>2]=0;H[f>>2]=1;H[f+4>>2]=1;H[f+28>>2]=e;H[f+24>>2]=d;H[f+20>>2]=c;H[f+16>>2]=b;H[f+12>>2]=a;if(c){break c}H[f+20>>2]=1;if(b){break e}H[f+20>>2]=2;b=f;break b}if(!e){break d}zb[e|0](d);break d}c=Tb(b);if(c){a=Ob(c,a,b);if(e){zb[e|0](d)}H[f+28>>2]=594;H[f+24>>2]=a;H[f+12>>2]=a;H[f+20>>2]=2;b=f;break b}if(!H[f>>2]){break d}a=H[f>>2];H[f>>2]=a-1;if((a|0)!=1){break d}H[f>>2]=-57005;a=H[f+8>>2];if(a){Gf(a+24|0,a);Vc();Kb(a)}a=H[f+28>>2];if(a){zb[a|0](H[f+24>>2])}Kb(f)}f=0}b=f}if(b){break a}b=163632}return b}function zi(a,b,c){var d=0,e=O(0),f=0,g=0,h=0,i=0,j=0,k=0;h=xb-16|0;xb=h;i=Tb(H[b+4>>2]<<3);a:{if(i){if(H[b+4>>2]){while(1){g=1;e=L[(j<<2)+c>>2];b:{if(e>1]==5){d=H[a>>2];f=H[a+628>>2];k=H[rd(a,J[b>>1])+16>>2];M[h+8>>3]=e;H[h>>2]=k;sc(f,d,278435,h);e=O(0);d=1;break b}g=-1;e=O(-e)}d=1;if(!(e>O(0))|!(e>>0<33554432;d=f;if(k){continue}}break}d=f}f=(j<<3)+i|0;H[f+4>>2]=d;g=g*(+e+.5);d:{if(g<4294967296&g>=0){d=~~g>>>0;break d}d=0}H[f>>2]=d;j=j+1|0;if(j>>>0>2]){continue}break}}d=od(a,b,i);Kb(i);break a}Pb(H[a+628>>2],H[a>>2],277324,0)}xb=h+16|0;return d}function MA(a,b){var c=0,d=0,e=0;H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;d=I[b+11|0];c=d<<24>>24<0;a:{d=c?H[b+4>>2]:d;if(d){b=c?H[b>>2]:b;e=b+(d<<2)|0;while(1){c=398440;b:{c:{d:{e:{f:{g:{h:{d=H[b>>2];switch(d-13|0){case 47:break h;case 0:break b;case 49:break d;case 21:break e;case 26:break f;case 25:break g;default:break c}}c=398420;break d}c=398460;break d}c=398484;break d}c=398512}H[197455]=0;da(1699,a|0,c|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break a}break b}if(d>>>0<32){break b}H[197455]=0;ba(1650,a|0,d|0);c=H[197455];H[197455]=0;if((c|0)==1){break a}}b=b+4|0;if((e|0)!=(b|0)){continue}break}}return}b=$()|0;_()|0;if(F[a+11|0]<0){Kb(H[a>>2])}ea(b|0);X()}function r$(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;if(!(!(H[H[a+120>>2]+600>>2]&1)|(d|e))){e=H[a+120>>2];d=H[e+672>>2];e=H[e+676>>2]}j=H[a+208>>2];a:{if(!j){break a}o=+(e|0);k=+(d|0);b:{if(!f){e=0;break b}e=Qb((c&536870911)!=(c|0)?-1:c<<3);if(!c){break b}p=c&1;a=0;c:{if((c|0)==1){i=k;break c}q=c&-2;i=k;while(1){d=H[(a<<2)+f>>2]+d|0;l=+(d|0);M[(a<<3)+e>>3]=l-i;m=a|1;d=d+H[(m<<2)+f>>2]|0;i=+(d|0);M[(m<<3)+e>>3]=i-l;a=a+2|0;n=n+2|0;if((n|0)!=(q|0)){continue}break}}if(!p){break b}M[(a<<3)+e>>3]=+(H[(a<<2)+f>>2]+d|0)-i}zb[H[H[j>>2]+20>>2]](j,b,c,k,o,e,g,M[h>>3],M[h+8>>3]);if(!e){break a}Kb(e)}}function KX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-32|0;xb=d;a=pe(d+8|0,428628,428676);a:{b:{c=H[b+4>>2];c:{if(c>>>0>2]){if(F[a+11|0]>=0){e=H[d+12>>2];H[c>>2]=H[d+8>>2];H[c+4>>2]=e;H[c+8>>2]=H[d+16>>2];break b}e=H[a+4>>2];f=H[a>>2];H[197455]=0;ga(1647,c|0,f|0,e|0);e=H[197455];H[197455]=0;if((e|0)!=1){break b}d=$()|0;_()|0;H[b+4>>2]=c;break c}H[197455]=0;ba(1777,b|0,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){if(F[a+23|0]>=0){break a}Kb(H[a+12>>2]);break a}d=$()|0;_()|0}Vb(a);ea(d|0);X()}e=H[a+16>>2];H[c+12>>2]=H[a+12>>2];H[c+16>>2]=e;H[c+20>>2]=H[a+20>>2];H[a+12>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[b+4>>2]=c+24}if(F[a+11|0]<0){Kb(H[a>>2])}xb=d+32|0}function Hfa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=H[a>>2];c=H[a+436>>2];H[d+24>>2]=c;H[d+20>>2]=124;H[H[a>>2]+28>>2]=b;zb[H[H[a>>2]+4>>2]](a,-1);d=b+6&7|208;f=b-1&7|208;g=b+2&7|208;b=b+1&7|208;while(1){a:{b:{if((c|0)<192){break b}if((b|0)==(c|0)|c-216>>>0<4294967288|(c|0)==(g|0)){break a}if((c|0)==(f|0)|(c|0)==(d|0)){break b}b=H[a>>2];H[b+24>>2]=c;H[b+20>>2]=99;H[H[a>>2]+28>>2]=1;zb[H[H[a>>2]+4>>2]](a,4);H[a+436>>2]=0;return 1}e=H[a>>2];H[e+24>>2]=c;H[e+20>>2]=99;H[H[a>>2]+28>>2]=2;zb[H[H[a>>2]+4>>2]](a,4);if($q(a)){c=H[a+436>>2];continue}else{return 0}}break}b=H[a>>2];H[b+24>>2]=c;H[b+20>>2]=99;H[H[a>>2]+28>>2]=3;zb[H[H[a>>2]+4>>2]](a,4);return 1}function ei(a){var b=0,c=0,d=0,e=0;c=H[a+420>>2];a:{if(!c){break a}b=H[a+412>>2];if((b|0)<=0){break a}b=N(b,24)+c|0;d=I[a+372|0];while(1){if(!(!I[c+16|0]|(d|0)!=I[c+12|0])){b=H[a+432>>2];if((b|0)>=H[a+436>>2]){H[a+12>>2]=130;return}H[a+432>>2]=b+1;b=H[a+440>>2]+(b<<4)|0;H[b>>2]=H[a+356>>2];d=H[a+364>>2];H[b+12>>2]=c;H[b+8>>2]=1;H[b+4>>2]=d+1;b=H[c>>2];b:{if(b-4>>>0<=4294967292){H[a+12>>2]=132;break b}d=(b-1<<3)+a|0;e=H[d+448>>2];if(!e){H[a+12>>2]=138;break b}d=H[d+452>>2];c=H[c+4>>2];if((d|0)<(c|0)){H[a+12>>2]=131;break b}H[a+368>>2]=d;H[a+360>>2]=e;H[a+364>>2]=c;H[a+356>>2]=b}F[a+380|0]=0;return}c=c+24|0;if(b>>>0>c>>>0){continue}break}}H[a+12>>2]=128}function Wba(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;a=Nb(a,0,256);d=H[b>>2]+c|0;e=I[d+3|0];h=I[d|0];f=e+h|0;g=I[d+2|0];d=I[d+1|0];i=g+d|0;j=f-i<<5;H[a+8>>2]=j;f=f+i<<5;H[a>>2]=f-16384;g=d-g|0;e=h-e|0;d=N(g+e|0,4433)+128|0;h=d+N(g,-15137)>>8;H[a+12>>2]=h;d=d+N(e,6270)>>8;H[a+4>>2]=d;e=j|2;b=H[b+4>>2]+c|0;c=I[b+3|0];g=I[b|0];i=c+g|0;j=I[b+2|0];b=I[b+1|0];k=j+b|0;l=i-k<<5;H[a+40>>2]=e-l>>2;H[a+8>>2]=e+l>>2;e=f-16382|0;f=(i+k<<5)-16384|0;H[a+32>>2]=e-f>>2;H[a>>2]=e+f>>2;e=b-j|0;c=g-c|0;b=N(e+c|0,4433)+128|0;d=d+2|0;c=b+N(c,6270)>>8;H[a+36>>2]=d-c>>2;H[a+4>>2]=c+d>>2;c=h+2|0;b=b+N(e,-15137)>>8;H[a+44>>2]=c-b>>2;H[a+12>>2]=b+c>>2}function kja(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=d;a=b-44032|0;a:{b:{if(a>>>0<=11171){d=a&65535;e=(d>>>0)%28|0;if(e){H[c>>2]=b-e;a=e+4519|0;break b}b=(d>>>0)/588|0;H[c>>2]=b|4352;a=(((a-N(b,588)&65535)>>>0)/28|0)+4449|0;break b}e=0;if(b>>>0>195101){break a}a=J[(I[(b>>>6|0)+194118|0]<<7|(b&63)<<1)+209968>>1];if(!a){break a}b=a-1|0;if(b>>>0<=934){if(b>>>0<=824){a=J[(b<<1)+227056>>1]}else{a=J[(a<<1)+227068>>1]|131072}H[c>>2]=a;a=0;break b}b=a-936|0;if(b>>>0<=637){a=H[(b<<2)+221392>>2];H[c>>2]=a>>>21;a=a>>>14&127|768;break b}b=(a<<3)+211360|0;a=H[b+4>>2];b=H[b>>2];H[c>>2]=a>>>10;a=((a&2097151)<<11|b>>>21)&2097151}H[f>>2]=a;e=1}return e|0}function Xe(a){a=a|0;var b=0,c=0;Wb(H[a+36>>2]);H[a+36>>2]=0;H[a+96>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;Kb(H[a+100>>2]);H[a+100>>2]=0;H[a+92>>2]=0;H[a+96>>2]=0;b=H[a+196>>2];if(b){while(1){b=H[a+200>>2]+(b<<5)|0;H[b-24>>2]=0;c=b-20|0;Kb(H[c>>2]);H[c>>2]=0;b=b-28|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+196>>2]-1|0;H[a+196>>2]=b;if(b){continue}break}}Kb(H[a+200>>2]);H[a+200>>2]=0;H[a+192>>2]=0;H[a+196>>2]=0;b=H[a+208>>2];if(b){while(1){b=H[a+212>>2]+N(b,24)|0;H[b-16>>2]=0;c=b-12|0;Kb(H[c>>2]);H[c>>2]=0;b=b-20|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+208>>2]-1|0;H[a+208>>2]=b;if(b){continue}break}}Kb(H[a+212>>2]);H[a+212>>2]=0;H[a+204>>2]=0;H[a+208>>2]=0;Wb(H[a>>2]);H[a>>2]=0}function Vla(a){a=a|0;var b=0,c=0;Wb(H[a+36>>2]);H[a+36>>2]=0;H[a+56>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;Kb(H[a+60>>2]);H[a+60>>2]=0;H[a+52>>2]=0;H[a+56>>2]=0;b=H[a+108>>2];if(b){while(1){b=H[a+112>>2]+N(b,28)|0;H[b-20>>2]=0;c=b-16|0;Kb(H[c>>2]);H[c>>2]=0;b=b-24|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+108>>2]-1|0;H[a+108>>2]=b;if(b){continue}break}}Kb(H[a+112>>2]);H[a+112>>2]=0;H[a+104>>2]=0;H[a+108>>2]=0;b=H[a+120>>2];if(b){while(1){b=H[a+124>>2]+N(b,28)|0;H[b-20>>2]=0;c=b-16|0;Kb(H[c>>2]);H[c>>2]=0;b=b-24|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+120>>2]-1|0;H[a+120>>2]=b;if(b){continue}break}}Kb(H[a+124>>2]);H[a+124>>2]=0;H[a+116>>2]=0;H[a+120>>2]=0;Wb(H[a>>2]);H[a>>2]=0}function Jea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((e|0)<=0){break a}i=H[a+112>>2];if(!i){break a}g=H[a+332>>2];a=H[a+476>>2];k=H[a+20>>2];l=H[a+16>>2];m=H[a+12>>2];n=H[a+8>>2];while(1){o=c+1|0;p=e-1|0;a=c<<2;q=H[a+H[b+12>>2]>>2];r=H[a+H[b+8>>2]>>2];s=H[a+H[b+4>>2]>>2];t=H[a+H[b>>2]>>2];c=H[d>>2];a=0;while(1){f=I[a+s|0];h=I[a+t|0]^255;j=I[a+r|0]<<2;F[c|0]=I[(h-H[j+n>>2]|0)+g|0];f=f<<2;F[c+1|0]=I[(h-(H[l+j>>2]+H[f+k>>2]>>16)|0)+g|0];F[c+2|0]=I[(h-H[f+m>>2]|0)+g|0];F[c+3|0]=I[a+q|0];c=c+4|0;a=a+1|0;if((i|0)!=(a|0)){continue}break}d=d+4|0;a=(e|0)>1;e=p;c=o;if(a){continue}break}}}function Eu(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=H[a+28>>2];a:{if((b|0)==-1){break a}d=H[a+36>>2];f=H[a+40>>2];if(d>>>0>=f>>>0){break a}g=H[a>>2];e=b+1|0;h=H[a+16>>2]+20|0;while(1){b:{b=N(d,12)+h|0;c=b-4|0;c=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);e=c>>>0>>0?e:c;c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);if(e>>>0>(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0){break b}b=I[b+4|0]|I[b+5|0]<<8|(I[b+6|0]<<16|I[b+7|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if(!b|b>>>0>=K[g+16>>2]){break b}H[a+36>>2]=d;H[a+32>>2]=b;H[a+28>>2]=e;return}d=d+1|0;if((f|0)!=(d|0)){continue}break}}F[a+24|0]=0}function Zn(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{b:{while(1){f=H[196242];e=f;if(e){while(1){b=a;d=H[e+4>>2];c=I[d|0];c:{if(c){d:{while(1){g=F[I[b|0]+106592|0];if((g|0)!=(c&255)){break d}b=b+1|0;c=I[d+1|0];d=d+1|0;if(c){continue}break}g=F[I[b|0]+106592|0];c=0}if((c&255)!=(g|0)){break c}break b}if(!I[I[a|0]+106592|0]){break b}}e=H[e>>2];if(e){continue}break}}e=0;d=oc(1,8);if(!d){break b}H[d>>2]=f;b=ac(a)+1|0;c=Tb(b);H[d+4>>2]=c;if(!c){break a}b=I[Ob(c,a,b)|0];if(b){while(1){F[c|0]=I[(b&255)+106592|0];b=I[c+1|0];c=c+1|0;if(b){continue}break}}e=H[196242];b=(e|0)==(f|0);H[196242]=b?d:e;if(!b){Kb(H[d+4>>2]);Kb(d);continue}break}e=d}return e}Kb(d);return 0}function V8(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;a:{if(!og(a,295376,7)){Pb(H[a+628>>2],295347,270746,0);a=0;break a}b=Tb(5264);if(!b){Pb(H[a+628>>2],295347,271382,0);a=0;break a}Id(b,0,5264);G[b+208>>1]=514;F[b+204|0]=1;H[b>>2]=a;H[c>>2]=2;H[c+4>>2]=2;rc(a,530,c);H[a+652>>2]=1523;H[a+520>>2]=1524;H[a+516>>2]=1525;H[a+556>>2]=1526;H[a+548>>2]=1526;H[a+540>>2]=1526;H[a+584>>2]=b;H[a+572>>2]=1527;H[a+560>>2]=1528;H[a+552>>2]=1528;H[a+544>>2]=1528;H[a+536>>2]=1529;H[a+532>>2]=1530;H[a+524>>2]=1531;H[b+160>>2]=H[a+672>>2];H[a+672>>2]=1532;H[b+164>>2]=H[a+668>>2];H[a+676>>2]=1533;H[a+668>>2]=1534;H[a+12>>2]=H[a+12>>2]|131072;a=1}xb=c+16|0;return a|0}function Lea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if((e|0)<=0){break a}a=H[a+112>>2];if(!a){break a}l=a&-4;k=a&3;m=a-1>>>0<3;while(1){i=H[H[b>>2]+(c<<2)>>2];a=H[d>>2];j=0;g=0;h=0;if(!m){while(1){f=I[g+i|0];F[a+1|0]=f;F[a+2|0]=f;F[a|0]=f;f=I[(g|1)+i|0];F[a+4|0]=f;F[a+5|0]=f;F[a+3|0]=f;f=I[(g|2)+i|0];F[a+7|0]=f;F[a+8|0]=f;F[a+6|0]=f;f=I[(g|3)+i|0];F[a+10|0]=f;F[a+11|0]=f;F[a+9|0]=f;g=g+4|0;a=a+12|0;h=h+4|0;if((l|0)!=(h|0)){continue}break}}if(k){while(1){h=I[g+i|0];F[a+1|0]=h;F[a+2|0]=h;F[a|0]=h;g=g+1|0;a=a+3|0;j=j+1|0;if((j|0)!=(k|0)){continue}break}}d=d+4|0;c=c+1|0;a=(e|0)>1;e=e-1|0;if(a){continue}break}}}function wq(a,b){var c=0,d=0,e=0;a:{b:{if(b>>>0>8){while(1){F[a|0]=I[I[a|0]+290864|0];F[a+1|0]=I[I[a+1|0]+290864|0];F[a+2|0]=I[I[a+2|0]+290864|0];F[a+3|0]=I[I[a+3|0]+290864|0];F[a+4|0]=I[I[a+4|0]+290864|0];F[a+5|0]=I[I[a+5|0]+290864|0];F[a+6|0]=I[I[a+6|0]+290864|0];F[a+7|0]=I[I[a+7|0]+290864|0];a=a+8|0;b=b-8|0;if(b>>>0>8){continue}break b}}if(!b){break a}}e=b-1|0;c=b&3;if(c){while(1){F[a|0]=I[I[a|0]+290864|0];a=a+1|0;b=b-1|0;d=d+1|0;if((c|0)!=(d|0)){continue}break}}if(e>>>0<3){break a}while(1){F[a|0]=I[I[a|0]+290864|0];F[a+1|0]=I[I[a+1|0]+290864|0];F[a+2|0]=I[I[a+2|0]+290864|0];F[a+3|0]=I[I[a+3|0]+290864|0];a=a+4|0;b=b-4|0;if(b){continue}break}}}function Xs(a,b,c,d){var e=0,f=0,g=0,h=0;e=a+1|0;f=F[a|0];g=f&255;if((f|0)>=0){H[c>>2]=g;return e}a:{if(g-194>>>0<=29){if(b>>>0<=e>>>0){break a}b=I[a+1|0]-128|0;if(b>>>0>=64){break a}H[c>>2]=b|g<<6&1984;return a+2|0}if((g&240)==224){if((b-e|0)<2){break a}b=I[e|0]-128|0;if(b>>>0>63){break a}f=I[a+2|0]-128|0;if(f>>>0>63){break a}b=f|(g<<12&61440|b<<6);if(b>>>0<2048|(b&-2048)==55296){break a}H[c>>2]=b;return a+3|0}if((b-e|0)<3|g-240>>>0>4){break a}b=I[e|0]-128|0;if(b>>>0>63){break a}f=I[a+2|0]-128|0;if(f>>>0>63){break a}h=I[a+3|0]-128|0;if(h>>>0>63){break a}b=g<<18&1835008|b<<12|f<<6|h;if(b-65536>>>0>=1048576){break a}e=a+4|0;d=b}H[c>>2]=d;return e}function Lr(a){var b=0,c=0;a:{if(!a|!H[a>>2]){break a}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break a}H[a>>2]=-57005;b=H[a+8>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}b=a+60|0;c=H[H[b+20>>2]+12>>2];if(c){zb[c|0](H[b+124>>2])}H[b+56>>2]=0;Kb(H[b+60>>2]);H[b+68>>2]=0;H[b+60>>2]=0;H[b+52>>2]=0;H[b+56>>2]=0;Kb(H[b+72>>2]);H[b+92>>2]=0;H[b+72>>2]=0;c=b- -64|0;H[c>>2]=0;H[c+4>>2]=0;Kb(H[b+96>>2]);H[b+96>>2]=0;H[b+88>>2]=0;H[b+92>>2]=0;H[b+80>>2]=0;Kb(H[b+84>>2]);H[b+104>>2]=0;H[b+84>>2]=0;H[b+76>>2]=0;H[b+80>>2]=0;Kb(H[b+108>>2]);H[b+116>>2]=0;H[b+108>>2]=0;H[b+100>>2]=0;H[b+104>>2]=0;Kb(H[b+120>>2]);H[b+120>>2]=0;H[b+112>>2]=0;H[b+116>>2]=0;Kb(H[a+36>>2]);Kb(a)}}function gda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if((e|0)<=0){break a}h=H[a+76>>2];if((h|0)<=0){break a}a=H[a+28>>2];if(!a){break a}l=a&-4;k=a&3;m=a-1>>>0<3;while(1){n=e-1|0;g=0;while(1){j=H[H[(g<<2)+c>>2]+(d<<2)>>2];f=H[b>>2];a=0;i=0;if(!m){while(1){F[a+j|0]=I[f+g|0];f=f+h|0;F[(a|1)+j|0]=I[f+g|0];f=f+h|0;F[(a|2)+j|0]=I[f+g|0];f=f+h|0;F[(a|3)+j|0]=I[f+g|0];a=a+4|0;f=f+h|0;i=i+4|0;if((l|0)!=(i|0)){continue}break}}i=0;if(k){while(1){F[a+j|0]=I[f+g|0];a=a+1|0;f=f+h|0;i=i+1|0;if((k|0)!=(i|0)){continue}break}}g=g+1|0;if((h|0)!=(g|0)){continue}break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=n;if(a){continue}break}}}function RJ(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;f=H[a+736>>2];a:{if(!f){d=Si(a,0);if(d){break a}f=H[a+736>>2]}if(!H[f+4>>2]){d=Cl(a,0,0,1);if(d){break a}}e=H[f>>2];e=b>>>0>e>>>0?e:b;b:{if(I[a+733|0]){if(!e){e=0;break b}f=H[f+8>>2];a=0;if(e-1>>>0>=3){h=e&-4;while(1){d=a<<2;H[d+c>>2]=H[d+f>>2];g=d|4;H[g+c>>2]=H[f+g>>2];g=d|8;H[g+c>>2]=H[f+g>>2];d=d|12;H[d+c>>2]=H[d+f>>2];a=a+4|0;i=i+4|0;if((h|0)!=(i|0)){continue}break}}d=e&3;if(!d){break b}while(1){h=a<<2;H[h+c>>2]=H[f+h>>2];a=a+1|0;j=j+1|0;if((d|0)!=(j|0)){continue}break}break b}if(!e){e=0;break b}Nb(c,0,e<<2)}d=0;if(b>>>0<=e>>>0){break a}Nb((e<<2)+c|0,0,b-e<<2)}return d|0}function PJ(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;f=H[a+736>>2];a:{if(!f){d=Si(a,0);if(d){break a}f=H[a+736>>2]}if(!H[f+4>>2]){d=Cl(a,0,0,1);if(d){break a}}e=H[f>>2];e=b>>>0>e>>>0?e:b;b:{if(I[a+733|0]){if(!e){e=0;break b}f=H[f+4>>2];a=0;if(e-1>>>0>=3){h=e&-4;while(1){d=a<<2;H[d+c>>2]=H[d+f>>2];g=d|4;H[g+c>>2]=H[f+g>>2];g=d|8;H[g+c>>2]=H[f+g>>2];d=d|12;H[d+c>>2]=H[d+f>>2];a=a+4|0;i=i+4|0;if((h|0)!=(i|0)){continue}break}}d=e&3;if(!d){break b}while(1){h=a<<2;H[h+c>>2]=H[f+h>>2];a=a+1|0;j=j+1|0;if((d|0)!=(j|0)){continue}break}break b}if(!e){e=0;break b}Nb(c,0,e<<2)}d=0;if(b>>>0<=e>>>0){break a}Nb((e<<2)+c|0,0,b-e<<2)}return d|0}function Mi(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=H[b+12>>2];c=H[a>>2];d=zb[H[f+24>>2]](f,c,H[f+56>>2])|0;if(c>>>0>=128){H[b+144>>2]=H[b+144>>2]|1;e=d;a:{if(!Sn(c)){break a}h=H[b+144>>2];H[b+144>>2]=h|2;g=c-6155|0;e=d|96;if(!(g>>>0>4|(g|0)==3)){break a}b:{switch(c-8204|0){case 0:e=d|544;break a;case 1:e=d|288;break a;default:break b}}e=d|96;if(c-917536>>>0<=95){break a}e=d|32;if((c|0)!=847){break a}H[b+144>>2]=h|18;e=d|96}g=e;if(d>>>0>31){G[a+16>>1]=g;return}if(!(1<>1]=g;return}b=65024;c:{if((c|0)==6752|(c|0)==4038){break c}b=32512;if((c|0)==3897){break c}b=I[(zb[H[f+16>>2]](f,c,H[f+48>>2])|0)+228944|0]<<8}d=b|g|128}G[a+16>>1]=d}function Mca(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;var h=0,i=0,j=O(0),k=0,l=0,m=0,n=0;i=xb-256|0;xb=i;if(g){l=(e<<2)+c|0;a=H[a+416>>2];e=H[(a+(H[b+16>>2]<<2)|0)+140>>2];m=H[(a+(H[b+4>>2]<<2)|0)+100>>2];c=0;while(1){zb[m|0](i,l,f);a=0;while(1){k=(c<<7)+d|0;n=k+(a<<1)|0;h=a<<2;j=O(O(L[h+i>>2]*L[e+h>>2])+O(16384.5));a:{if(O(P(j))>1]=h-16384;h=a|1;k=(h<<1)+k|0;h=h<<2;j=O(O(L[h+i>>2]*L[e+h>>2])+O(16384.5));b:{if(O(P(j))>1]=h-16384;a=a+2|0;if((a|0)!=64){continue}break}f=H[b+36>>2]+f|0;c=c+1|0;if((g|0)!=(c|0)){continue}break}}xb=i+256|0}function Pka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=H[a+712>>2];a:{b:{if(!e){break b}f=H[e+1504>>2];a=6;if((f|0)==65535){break a}if(b){a=H[e+3096>>2];if(!a){c:{if(f>>>0>=391){f=f-391|0;g=0;if(f>>>0>=K[e+1356>>2]){break c}g=H[H[e+1360>>2]+(f<<2)>>2];break c}a=H[e+3084>>2];g=0;if(!a){break c}g=zb[H[a+20>>2]](f)|0}a=g;H[e+3096>>2]=a}H[b>>2]=a}if(c){a=H[e+3100>>2];if(!a){a=0;b=H[e+1508>>2];d:{if((b|0)==65535){break d}if(b>>>0>=391){b=b-391|0;if(b>>>0>=K[e+1356>>2]){break d}a=H[H[e+1360>>2]+(b<<2)>>2];break d}f=H[e+3084>>2];if(!f){break d}a=zb[H[f+20>>2]](b)|0}H[e+3100>>2]=a}H[c>>2]=a}if(!d){break b}H[d>>2]=H[e+1512>>2]}a=0}return a|0}function fh(a,b){var c=0,d=0,e=0,f=0;a:{if(!I[a+60|0]){break a}if(K[a+148>>2]>>0){F[a+60|0]=0;return 0}d=H[a+80>>2];e=H[a+84>>2];b:{c:{d:{if(b>>>0>214748363){break d}c=H[a+76>>2];if(c>>>0<=b>>>0){while(1){c=((c>>>1|0)+c|0)+32|0;if(c>>>0<=b>>>0){continue}break}}if(c>>>0>214748363){break d}e:{b=N(c,20);f=tc(H[a+88>>2],b);b=tc(H[a+80>>2],b);if(!(b?f:0)){F[a+60|0]=0;if(!f){break e}}H[a+88>>2]=f;if(!b){break b}break c}if(b){break c}H[a+84>>2]=H[((d|0)==(e|0)?80:88)+a>>2];break a}F[a+60|0]=0;H[a+84>>2]=(d|0)==(e|0)?d:H[a+88>>2];return 0}H[a+80>>2]=b}H[a+84>>2]=H[((d|0)==(e|0)?80:88)+a>>2];if(!I[a+60|0]){break a}H[a+76>>2]=c;return 1}return 0}function ar(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;zb[H[H[b>>2]+16>>2]](b,247270,1,6)|0;c=H[a+16>>2];zb[H[H[b>>2]+44>>2]](b,c&255)|0;zb[H[H[b>>2]+44>>2]](b,c>>>8&255)|0;c=H[a+20>>2];zb[H[H[b>>2]+44>>2]](b,c&255)|0;zb[H[H[b>>2]+44>>2]](b,c>>>8&255)|0;if(H[a+44>>2]){c=J[a+26>>1]-1|0;c=c<<5|c|-128}else{c=17}zb[H[H[b>>2]+44>>2]](b,c&255)|0;c=0;zb[H[H[b>>2]+44>>2]](b,0)|0;zb[H[H[b>>2]+44>>2]](b,0)|0;a:{if(!H[a+44>>2]){break a}d=H[a+44>>2];if(!d){break a}e=H[a+4>>2];e=e?d?e+40|0:0:0;while(1){d=(c<<2)+e|0;zb[H[H[b>>2]+44>>2]](b,I[d+2|0])|0;zb[H[H[b>>2]+44>>2]](b,I[d+1|0])|0;zb[H[H[b>>2]+44>>2]](b,I[d|0])|0;c=c+1|0;if(c>>>0>2]){continue}break}}}function Bj(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;g=xb-16|0;xb=g;a:{if(H[a+8>>2]==1){Pb(H[a+628>>2],H[a>>2],280658,0);e=-1;break a}if(I[a+13|0]&4){Pb(H[a+628>>2],H[a>>2],281094,0);e=-1;break a}e=H[a+180>>2];if(e>>>0<=b>>>0){c=H[a>>2];a=H[a+628>>2];H[g+4>>2]=e;H[g>>2]=b;Pb(a,c,270529,g);e=-1;break a}e=1;h=H[a+60>>2];f=H[a+100>>2];if(h>>>0>f>>>0){e=((f+h|0)-1>>>0)/(f>>>0)|0}b:{if((e-1|0)==((b>>>0)%(e>>>0)|0)){e=(h>>>0)%(f>>>0)|0;if(e){break b}}e=f}f=CB(a,e);e=-1;if(!yB(a,b)){break a}d=(d|0)==-1?f:(d|0)>(f|0)?f:d;if((zb[H[a+548>>2]](a,c,d,(b>>>0)/K[a+176>>2]&65535)|0)<=0){break a}zb[H[a+652>>2]](a,c,d);e=d}xb=g+16|0;return e|0}function fu(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;f=H[a>>2];if(!f){return 65536}h=65536;a:{if(!(b&16384)){while(1){b=h;e=i<<2;d=H[e+c>>2];b:{if(!d){break b}e=H[e+H[a+8>>2]>>2];if(!e){return 0}if((d|0)==(e|0)){break b}h=0;if((e|0)<(d&d>>31)|(e|0)>(((d|0)>0?d:0)|0)){break a}h=ic(b,e,d);f=H[a>>2]}i=i+1|0;if(i>>>0>>0){continue}break a}}while(1){b=h;g=i<<2;j=H[g+c>>2];c:{if(!j){break c}h=0;f=H[g+H[a+8>>2]>>2];if(!f){break a}if((f|0)==(j|0)){break c}k=H[d+g>>2];if((f|0)<=(k|0)){break a}g=H[e+g>>2];if((g|0)<=(f|0)){break a}if((f|0)<(j|0)){b=ic(b,f-k|0,j-k|0);break c}b=ic(b,g-f|0,g-j|0)}h=b;i=i+1|0;if(i>>>0>2]){continue}break}}return h} +function YI(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;d=xb+-64|0;xb=d;zb[H[b+60>>2]](b,d+16|0,4,d+12|0);c=H[d+12>>2];a:{if((c|0)<0){c=162;break a}if(c-5>>>0<4294967292){c=3;break a}c=zl(a,0,c);H[d+8>>2]=c;if(c){break a}if(H[d+12>>2]<=0){c=0;break a}i=H[a+100>>2];j=H[a+532>>2];while(1){a=(d+16|0)+N(g,12)|0;c=H[a>>2];if(I[c|0]==47){c=c+1|0;H[a>>2]=c}e=H[a+4>>2];if((e|0)==(c|0)){c=3;break a}f=(g<<2)+j|0;h=H[f+8>>2];if(h){zb[H[i+8>>2]](i,h)}h=f;e=e-c|0;f=pc(i,e+1|0,d+8|0);H[h+8>>2]=f;c=H[d+8>>2];if(c){break a}k=Ob(f,H[a>>2],e)+e|0,l=0,F[k|0]=l;g=g+1|0;if((g|0)>2]){continue}break}c=H[d+8>>2]}H[b+12>>2]=c;xb=d- -64|0}function YC(a){var b=0,c=0,d=0;c=xb-16|0;xb=c;H[a+4>>2]=0;H[c+12>>2]=0;b=Tb(84);if(!b){d=H[a>>2];H[d+20>>2]=56;H[d+24>>2]=0;zb[H[H[a>>2]>>2]](a)}H[b+48>>2]=1e9;H[b+40>>2]=1204;H[b+36>>2]=1205;H[b+32>>2]=1206;H[b+28>>2]=1207;H[b+24>>2]=1208;H[b+20>>2]=1209;H[b+16>>2]=1210;H[b+12>>2]=1211;H[b+8>>2]=1212;H[b+4>>2]=1213;H[b>>2]=1214;H[b+52>>2]=0;H[b+56>>2]=0;H[b+44>>2]=0;H[b+76>>2]=84;H[b+60>>2]=0;H[b+64>>2]=0;H[b+68>>2]=0;H[b+72>>2]=0;H[a+4>>2]=b;a=kg(249110);a:{if(!a){break a}F[c+11|0]=120;H[c>>2]=c+12;H[c+4>>2]=c+11;if((vp(a,249150,c)|0)<=0){break a}a=H[c+12>>2];if((I[c+11|0]&223)==77){a=N(a,1e3);H[c+12>>2]=a}H[b+44>>2]=N(a,1e3)}xb=c+16|0}function iy(a,b,c){var d=0,e=0,f=0,g=0;g=xb-16|0;xb=g;a:{d=I[c|0];if(d){e=c;while(1){d=(f<<4)+(d<<24>>24)|0;f=d&-268435456;f=f?f>>>24^d&268435455:d;d=I[e+1|0];e=e+1|0;if(d){continue}break}e=(f>>>0)%31627|0}else{e=0}d=H[(e<<2)+b>>2];b:{c:{if(!d){break c}while(1){if(fc(c,H[d+4>>2])){d=H[d>>2];if(d){continue}break c}break}d=H[d+8>>2];if((d|0)>=0){break b}}hy(b,c,H[a+12>>2]);d=H[a+12>>2];d:{if(d&d-1){e=H[a+40>>2];break d}b=N(d,48);e=tc(H[a+40>>2],b);if(!e){break a}H[a+40>>2]=e;d=H[a+12>>2]}b=N(d,24)+e|0;H[b+20>>2]=0;H[b+12>>2]=-1;H[b+16>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[a+12>>2]=d+1}xb=g+16|0;return d}H[g>>2]=b;Fc(H[191568],239726,g);Ba(1);X()} +function Nr(a){var b=0,c=0;c=3840;a:{b:{c:{switch(a>>>12|0){case 0:if((a|0)==160){c=3851;break a}b=a-40|0;if(b>>>0<24){break b}if(a-176>>>0<=39){b=a-152|0;break b}if(a-2304>>>0>1271){break a}b=a-2240|0;break b;case 1:if(a-4096>>>0<=159){b=a-2760|0;break b}if(a-6016>>>0<=111){b=a-4520|0;break b}if(a-7376>>>0>47){break a}b=a-5768|0;break b;case 2:if((a|0)==9676){c=3851;break a}if(a-8200>>>0<=15){b=a-6544|0;break b}if(a-8304>>>0>23){break a}b=a-6632|0;break b;case 10:break c;default:break a}}b=a&-32;if((b|0)!=43616){if((b|0)!=43488){if((b|0)!=43232){break a}b=a-41536|0;break b}b=a-41760|0;break b}b=a-41856|0}c=J[(b<<1)+128560>>1]}return c}function Bt(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-16|0;xb=f;h=H[b+4>>2];a:{if(h>>>0>a>>>0){break a}g=H[b+8>>2];if(g>>>0>>0|g-a>>>0<4){break a}i=H[b+12>>2];e=i-4|0;H[b+12>>2]=e;if((e|0)<=0){break a}d=F[a|0];e=I[a+3|0]|(I[a+1|0]<<16|d<<24|I[a+2|0]<<8);j=(e|0)!=0&(d|0)<0;d=!j;if(!e|j){break a}c=c+e|0;b:{if(c>>>0>>0|c>>>0>g>>>0|g-c>>>0<=7){break b}d=i-12|0;H[b+12>>2]=d;if((I[c|0]|I[c+1|0]<<8)!=256|(d|0)<=0){break b}if(!co(c+2|0,b,c)){break b}H[f+12>>2]=c;d=1;if(bo(c+6|0,b,f+12|0)){break a}}d=0;c=H[b+28>>2];if(c>>>0>31){break a}H[b+28>>2]=c+1;if(!I[b+24|0]){break a}F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;d=1}xb=f+16|0;return d}function Xh(a,b){var c=0;a:{if((b|0)!=1196445523){c=163632;if((b|0)!=1196643650){break a}b=H[a+144>>2];b:{if(b){break b}while(1){c=H[a+48>>2];if(!c){b=163632;break b}b=oc(1,12);c:{if(!b){b=163632;break c}Yh(b,c)}c=H[a+144>>2];H[a+144>>2]=c?c:b;if(!c){break b}af(b);b=H[a+144>>2];if(!b){continue}break}}a=H[b>>2];a=a?a:163632;return K[a+16>>2]<10?163632:H[a+12>>2]}b=H[a+148>>2];d:{if(b){break d}while(1){c=H[a+48>>2];if(!c){b=163632;break d}b=oc(1,12);e:{if(!b){b=163632;break e}hl(b,c)}c=H[a+148>>2];H[a+148>>2]=c?c:b;if(!c){break d}af(b);b=H[a+148>>2];if(!b){continue}break}}a=H[b>>2];a=a?a:163632;c=K[a+16>>2]<10?163632:H[a+12>>2]}return c}function Q8(a){a=a|0;var b=0,c=0,d=0,e=0;c=H[a+584>>2];if(c){H[a+672>>2]=H[c+160>>2];H[a+668>>2]=H[c+164>>2];b=H[c+252>>2];if(b){Kb(b)}b=H[c+256>>2];if(b){Kb(b)}b=H[c+260>>2];if(b){Kb(b)}b=H[c+264>>2];if(b){Kb(b)}b=H[c+268>>2];if(b){Kb(b)}b=H[c+272>>2];if(b){Kb(b)}b=H[c+276>>2];if(b){Kb(b)}b=H[c+280>>2];if(b){Kb(b)}b=H[c+284>>2];if(b){Kb(b)}b=H[c+288>>2];if(b){Kb(b)}b=H[c+292>>2];if(b){Kb(b)}b=H[c+296>>2];if(b){Kb(b)}if(I[c+400|0]){d=H[a+584>>2];b=d+536|0;e=H[b+4>>2];if(e){zb[H[e+40>>2]](b)}H[b+20>>2]=0;H[b+4>>2]=0;F[d+400|0]=0}b=H[c+1084>>2];if(b){Kb(b)}b=H[c+1104>>2];if(b){Kb(b)}b=H[c+5256>>2];if(b){Kb(b)}Kb(c);H[a+584>>2]=0;Ai(a)}}function qH(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;b=H[a+12>>2];H[c+40>>2]=0;H[c+44>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=b;e=H[b+84>>2];b=H[b+80>>2];g=zb[H[b+156>>2]](d,e,c,H[b+12>>2])|0;if(g){a:{b:{b=H[a+12>>2];if(b){b=H[b+24>>2];d=H[a+24>>2];if((b|0)!=(d|0)){break b}a=c+8|0;b=H[c+8>>2];break a}a=c+8|0;b=H[c+8>>2];break a}e=d>>31;a=H[c>>2];f=b>>31;h=c,i=hma(gma(d,e,a,a>>31),yb,b,f),H[h>>2]=i;a=H[c+4>>2];h=c,i=hma(gma(d,e,a,a>>31),yb,b,f),H[h+4>>2]=i;a=c+8|0;c=H[c+8>>2];b=hma(gma(d,e,c,c>>31),yb,b,f)}H[a>>2]=b}return g|0}function pH(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;b=H[a+12>>2];H[c+40>>2]=0;H[c+44>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=b;e=H[b+84>>2];b=H[b+80>>2];g=zb[H[b+160>>2]](d,e,c,H[b+16>>2])|0;if(g){a:{b:{b=H[a+12>>2];if(b){b=H[b+20>>2];d=H[a+20>>2];if((b|0)!=(d|0)){break b}a=c+8|0;b=H[c+8>>2];break a}a=c+8|0;b=H[c+8>>2];break a}e=d>>31;a=H[c>>2];f=b>>31;h=c,i=hma(gma(d,e,a,a>>31),yb,b,f),H[h>>2]=i;a=H[c+4>>2];h=c,i=hma(gma(d,e,a,a>>31),yb,b,f),H[h+4>>2]=i;a=c+8|0;c=H[c+8>>2];b=hma(gma(d,e,c,c>>31),yb,b,f)}H[a>>2]=b}return g|0}function _e(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=G[a+118>>1]>=0?1:-1;h=M[a+88>>3];b=g*h;c=b*0+0;e=G[a+120>>1]>=0?1:-1;f=M[a+96>>3];i=e*f;d=i+0;M[a+264>>3]=c+d*0;k=b+0;b=i*0+0;M[a+256>>3]=k*0+b;M[a+272>>3]=c*0+d;M[a+248>>3]=k+b*0;i=e*(-f*+G[a+106>>1]);e=c+ +G[a+114>>1];f=b+ +G[a+116>>1];M[a+288>>3]=i+(e*0+f);m=g*(-h*+G[a+104>>1]);M[a+280>>3]=m+(e+f*0);g=M[a+152>>3];h=M[a+168>>3];j=c*g+d*h;n=c;c=M[a+160>>3];l=d;d=M[a+176>>3];l=n*c+l*d;M[a+224>>3]=j*0+l;M[a+216>>3]=j+l*0;j=k*g+b*h;b=k*c+b*d;M[a+208>>3]=j*0+b;M[a+200>>3]=j+b*0;b=e*g+f*h+M[a+184>>3];c=e*c+f*d+M[a+192>>3];M[a+240>>3]=i+(b*0+c);M[a+232>>3]=m+(b+c*0)}function UZ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;G[a+272>>1]=0;H[a+268>>2]=0;H[a+244>>2]=417328;H[a+248>>2]=0;H[a+252>>2]=0;H[a+256>>2]=0;H[a+260>>2]=0;H[197455]=0;e=da(1797,a|0,418564)|0;d=H[197455];H[197455]=0;a:{if((d|0)!=1){H[a+224>>2]=0;H[a+228>>2]=1072693248;H[a+216>>2]=96;H[a+220>>2]=96;F[a+213|0]=0;H[a+244>>2]=418452;H[a>>2]=418204;d=a+236|0;H[d>>2]=0;H[d+4>>2]=0;H[a+232>>2]=d;Ob(a+4|0,c,112);b:{if(!b){break b}H[a+208>>2]=b;c=H[H[b>>2]+100>>2];H[197455]=0;ba(c|0,b|0,a+244|0);b=H[197455];H[197455]=0;if((b|0)!=1){break b}b=$()|0;_()|0;Mm(a+232|0,H[a+236>>2]);Vp(e,418564);break a}return a|0}b=$()|0;_()|0}Rm(a+244|0);ea(b|0);X()}function tI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=H[a>>2];d=H[a+44>>2];if(d){c=H[d>>2];if(!(!c|!H[c+96>>2])){H[c+88>>2]=d}}e=xb-16|0;xb=e;c=H[f+504>>2];a:{if(!c){d=35;break a}d=6;if(!b|H[b+4>>2]<0|(H[b+8>>2]<0|K[b>>2]>4)){break a}d=H[c+88>>2];H[H[d+40>>2]+12>>2]=0;g=H[H[H[c+96>>2]+12>>2]+88>>2];if(g){d=zb[g|0](d,b)|0;break a}if((H[c+8>>2]&3)==2){d=EC(c,b,e+12|0);if(d){break a}d=rC(c,H[e+12>>2]);break a}Bi(c,b);d=0}xb=e+16|0;if(!d){b=H[H[f+504>>2]+88>>2];c=H[b+16>>2];H[a+12>>2]=H[b+12>>2];H[a+16>>2]=c;H[a+36>>2]=H[b+36>>2];c=H[b+32>>2];H[a+28>>2]=H[b+28>>2];H[a+32>>2]=c;c=H[b+24>>2];H[a+20>>2]=H[b+20>>2];H[a+24>>2]=c}return d|0}function LR(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;var h=0,i=0;i=xb-416|0;xb=i;d=i+416|0;H[i+12>>2]=d;h=xb-144|0;xb=h;H[h+28>>2]=h+132;c=h+32|0;Cw(a+8|0,c,h+28|0,e,f,g);H[h+16>>2]=0;H[h+20>>2]=0;H[h+12>>2]=c;c=i+16|0;g=H[i+12>>2]-c>>2;e=xb-16|0;xb=e;H[e+12>>2]=H[a+8>>2];f=Kf(e+8|0,e+12|0);H[197455]=0;a=xp(c,h+12|0,g,h+16|0);g=H[197455];H[197455]=0;a:{if((g|0)!=1){me(f);xb=e+16|0;break a}a=$()|0;_()|0;me(f);ea(a|0);X()}if((a|0)==-1){zw(239313);X()}H[i+12>>2]=(a<<2)+c;xb=h+144|0;e=H[i+12>>2];a=xb-16|0;xb=a;H[a+8>>2]=b;while(1){if((c|0)!=(e|0)){gx(a+8|0,H[c>>2]);c=c+4|0;continue}break}xb=a+16|0;xb=d;return H[a+8>>2]}function KR(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;H[a>>2]=0;H[a+4>>2]=0;H[a+56>>2]=0;H[a+48>>2]=0;H[a+52>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;H[a+24>>2]=0;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a>>2]=H[b>>2];H[a+4>>2]=H[b+4>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=H[b+12>>2];H[a+16>>2]=H[b+16>>2];d=H[b+20>>2];H[a+40>>2]=b+48;H[a+36>>2]=b+40;H[a+32>>2]=b+32;H[a+28>>2]=b+28;H[a+24>>2]=b+24;H[a+20>>2]=d;a:{if(c){e=68;f=70;d=69;break a}F[a+44|0]=I[b+64|0];e=65;f=67;d=66}e=I[b+e|0];d=I[b+d|0];b=I[b+f|0];f=H[7599];H[a+52>>2]=H[7598];H[a+56>>2]=f;F[a+48|0]=c;F[a+47|0]=b;F[a+46|0]=d;F[a+45|0]=e}function ml(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=O(0),k=O(0);f=I[a|0]|I[a+1|0]<<8;if(((f<<8|f>>>8)&65535)>>>0<=b>>>0){return O(0)}f=I[a+4|0]|I[a+5|0]<<8;i=(f<<8|f>>>8)&65535;f=I[a+2|0]|I[a+3|0]<<8;g=(f<<8|f>>>8)&65535;b=(((i<<1)+a|0)+N(g+i|0,b)|0)+6|0;a:{if(!f){f=0;break a}f=g>>>0>1?g:1;g=0;while(1){h=(g<<1)+a|0;h=I[h+6|0]|I[h+7|0]<<8;k=ks(e,(h<<8|h>>>8)&65535,c,d);h=I[b|0]|I[b+1|0]<<8;j=O(O(k*O((h<<8|h>>>8)<<16>>16))+j);b=b+2|0;g=g+1|0;if((g|0)!=(f|0)){continue}break}}if(f>>>0>>0){while(1){g=(f<<1)+a|0;g=I[g+6|0]|I[g+7|0]<<8;j=O(O(ks(e,(g<<8|g>>>8)&65535,c,d)*O(F[b|0]))+j);b=b+1|0;f=f+1|0;if((i|0)!=(f|0)){continue}break}}return j}function gV(a){a=a|0;var b=0,c=0,d=0;H[a>>2]=0;H[a+4>>2]=0;H[197455]=0;c=aa(899,32)|0;b=H[197455];H[197455]=0;a:{if((b|0)!=1){H[c+4>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c>>2]=752264;H[c+20>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[197455]=0;b=c+12|0;H[b+4>>2]=0;H[b+8>>2]=0;H[b>>2]=752128;H[b+12>>2]=0;H[b+16>>2]=0;d=H[197455];H[197455]=0;if((d|0)==1){b=$()|0;_()|0;Kb(c);break a}H[a>>2]=b;b=H[a+4>>2];H[a+4>>2]=c;b:{if(!b){break b}c=H[b+4>>2];H[b+4>>2]=c-1;if(c){break b}zb[H[H[b>>2]+8>>2]](b);Sv(b)}return a|0}b=$()|0;_()|0}a=H[a+4>>2];c:{if(!a){break c}c=H[a+4>>2];H[a+4>>2]=c-1;if(c){break c}zb[H[H[a>>2]+8>>2]](a);Sv(a)}ea(b|0);X()}function KW(a){a=a|0;var b=0,c=0,d=0;b=xb-16|0;xb=b;a:{if(H[a+40>>2]==-1698247209){H[b+8>>2]=1024;H[b+12>>2]=1024;H[b>>2]=0;H[b+4>>2]=0;H[b>>2]=G[a+46>>1];H[b+4>>2]=G[a+48>>1];H[b+8>>2]=G[a+50>>1];H[b+12>>2]=G[a+52>>1];d=H[b+8>>2]-H[b>>2]|0;c=d>>31;if((c^d)-c>>>0<=1){H[b+8>>2]=H[a+180>>2];H[b>>2]=H[a+172>>2]}d=H[b+12>>2]-H[b+4>>2]|0;c=d>>31;if((c^d)-c>>>0>1){break a}H[b+4>>2]=H[a+176>>2];H[b+12>>2]=H[a+184>>2];break a}c=H[a+184>>2];H[b+8>>2]=H[a+180>>2];H[b+12>>2]=c;c=H[a+176>>2];H[b>>2]=H[a+172>>2];H[b+4>>2]=c}c=H[b+4>>2];H[a+104>>2]=H[b>>2];H[a+108>>2]=c;c=H[b+12>>2];H[a+112>>2]=H[b+8>>2];H[a+116>>2]=c;xb=b+16|0;return a+104|0}function qu(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;if(F[a+741|0]&1){a:{g=H[a+736>>2];c=H[g+56>>2];e=J[c>>1];if(!e){break a}b=H[c+24>>2];i=b+N(e,12)|0;e=0;while(1){h=cu(a,H[b>>2]);d=ko(a,c+4|0,J[b+4>>1],J[b+6>>1]);b:{c:{if(!h){break c}G[h>>1]=J[b+8>>1]+d;c=H[b>>2];if((c|0)==1751216995){break b}if((c|0)!=1751934832){if((c|0)!=1751413603){break c}f=d;break c}j=d}d=e}b=b+12|0;if(i>>>0<=b>>>0){break a}c=H[g+56>>2];e=d;continue}}e=J[a+72>>1];f=e+f|0;G[a+72>>1]=f;b=d;d=J[a+70>>1];b=b+d|0;G[a+70>>1]=b;c=G[a+486>>1];G[a+82>>1]=c;G[a+80>>1]=J[a+484>>1]+((c|0)/-2|0);G[a+74>>1]=(b+(e+((J[a+74>>1]+j|0)-d|0)|0)|0)-f;GA(a+108|0,80)}}function _s(){var a=0,b=0;a=oc(1,172);if(!a){return 783056}H[a+8>>2]=0;H[a>>2]=1;H[a+4>>2]=1;H[a+148>>2]=1073741823;H[a+152>>2]=536870911;Pj(0);b=cE();if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}H[a+28>>2]=0;H[a+32>>2]=0;H[a+24>>2]=65533;H[a+16>>2]=0;H[a+20>>2]=0;H[a+12>>2]=b;H[a+36>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+48>>2]=0;H[a+52>>2]=0;H[a+56>>2]=0;H[a+72>>2]=0;H[a+64>>2]=0;H[a+68>>2]=0;F[a+62|0]=0;G[a+60>>1]=1;H[a+144>>2]=0;H[a+92>>2]=0;H[a+96>>2]=0;H[a+100>>2]=0;H[a+104>>2]=0;H[a+108>>2]=0;H[a+112>>2]=0;H[a+116>>2]=0;H[a+120>>2]=0;H[a+124>>2]=0;H[a+128>>2]=0;H[a+132>>2]=0;H[a+136>>2]=0;F[a+140|0]=0;H[a+84>>2]=H[a+80>>2];return a}function $e(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{f=a+24|0;d=H[f>>2];if(!d){break b}g=f;e=d;while(1){h=K[e+16>>2]>>0;g=h?g:e;e=H[(h<<2)+e>>2];if(e){continue}break}if(!((g|0)==(f|0)|K[g+16>>2]>b>>>0)){Wy(a,b);d=H[a+24>>2]}if(!d){break b}g=a+24|0;c:{while(1){d:{f=H[d+16>>2];e:{if(f>>>0>b>>>0){e=H[d>>2];if(e){break e}f=d;break a}if(b>>>0<=f>>>0){break c}g=d+4|0;e=H[d+4>>2];if(!e){break d}d=g}g=d;d=e;continue}break}f=d;d=g;break a}f=d;d=g;break a}d=f}if(!H[d>>2]){e=Qb(24);H[e+16>>2]=b;H[e+8>>2]=f;H[e>>2]=0;H[e+4>>2]=0;H[e+20>>2]=c;H[d>>2]=e;b=H[H[a+20>>2]>>2];if(b){H[a+20>>2]=b;e=H[d>>2]}Og(H[a+24>>2],e);H[a+28>>2]=H[a+28>>2]+1}}function Ws(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=xb-32|0;xb=g;e=b+1|0;if(e>>>0>>0){i=b;while(1){f=i;i=e;while(1){j=e;if(e>>>0>b>>>0){h=H[a+80>>2];e=j-1|0;if((zb[d|0](h+N(e,20)|0,N(i,20)+h|0)|0)>0){continue}}break}if((i|0)!=(j|0)){e=f+2|0;if(e-j>>>0>=2){Jd(a,j,e)}f=H[a+80>>2];h=f+N(i,20)|0;H[g+24>>2]=H[h+16>>2];e=H[h+12>>2];H[g+16>>2]=H[h+8>>2];H[g+20>>2]=e;e=H[h+4>>2];H[g+8>>2]=H[h>>2];H[g+12>>2]=e;e=f;f=N(j,20);e=e+f|0;$c(e+20|0,e,N(i-j|0,20));e=H[g+12>>2];f=f+H[a+80>>2]|0;H[f>>2]=H[g+8>>2];H[f+4>>2]=e;H[f+16>>2]=H[g+24>>2];e=H[g+20>>2];H[f+8>>2]=H[g+16>>2];H[f+12>>2]=e}e=i+1|0;if((e|0)!=(c|0)){continue}break}}xb=g+32|0}function Bk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=xb-16|0;xb=c;a:{if(H[b+40>>2]==-1698247209){H[c+8>>2]=1024;H[c+12>>2]=1024;H[c>>2]=0;H[c+4>>2]=0;H[c>>2]=G[b+46>>1];H[c+4>>2]=G[b+48>>1];H[c+8>>2]=G[b+50>>1];H[c+12>>2]=G[b+52>>1];g=H[c+8>>2];d=H[c>>2];f=g-d|0;e=f>>31;h=d;d=(e^f)-e>>>0<2;e=d?H[b+172>>2]:h;g=d?H[b+180>>2]:g;d=H[c+12>>2];f=H[c+4>>2];h=d-f|0;i=h>>31;if((i^h)-i>>>0>1){break a}d=H[b+184>>2];f=H[b+176>>2];break a}e=H[b+184>>2];g=H[b+180>>2];H[c+8>>2]=g;H[c+12>>2]=e;d=H[b+176>>2];e=H[b+172>>2];H[c>>2]=e;H[c+4>>2]=d;f=H[c+4>>2];d=H[c+12>>2]}M[a+24>>3]=d|0;M[a+16>>3]=g|0;M[a+8>>3]=f|0;M[a>>3]=e|0;xb=c+16|0}function Or(a,b){a:{b:{c:{d:{switch(a>>>12|0){case 0:a=a-1536|0;if(a>>>0<739){break c}break b;case 1:if(a-6150>>>0>164){break b}a=a-5411|0;break c;case 2:if(a-8204>>>0>93){break b}a=a-7300|0;break c;case 10:if(a-43072>>>0>51){break b}a=a-42074|0;break c;case 16:if(a-68288>>>0<=47){a=a-67238|0;break c}if(a-68480>>>0<=47){a=a-67382|0;break c}if(a-68864>>>0<=35){a=a-67718|0;break c}if(a-69424>>>0>155){break b}a=a-68242|0;break c;case 17:if(a-69821>>>0>16){break b}a=a-68483|0;break c;case 30:break d;default:break b}}if(a-125184>>>0>75){break b}a=a-123829|0}a=I[a+125264|0];if((a|0)!=8){break a}}a=b>>>0>31?0:1<>3];if(!(b==0|M[a+48>>3]!=0)){e=M[a+16>>3];c=0;a:{if(e==1.7976931348623157e308){break a}d=M[a+32>>3];c=0;if(d==2.2250738585072014e-308){break a}c=d-e}e=M[a+8>>3];b:{if(e==1.7976931348623157e308){break b}d=M[a+24>>3];if(d==2.2250738585072014e-308){break b}f=d-e}M[a+48>>3]=b*(c/f);return}c:{if(b!=0){break c}c=M[a+48>>3];if(c==0){break c}f=M[a+8>>3];d:{if(f==1.7976931348623157e308){break d}b=M[a+24>>3];if(b==2.2250738585072014e-308){break d}e=b-f}f=0;b=M[a+16>>3];e:{if(b==1.7976931348623157e308){break e}d=M[a+32>>3];if(d==2.2250738585072014e-308){break e}f=d-b}M[a+40>>3]=c*(e/f)}}function bia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-32|0;xb=c;a:{d=0;b:{if(!a){break b}d=ac(b);if(d>>>0>=4294967280){break a}c:{d:{if(d>>>0>=11){f=d+16&-16;e=Qb(f);H[c+16>>2]=f|-2147483648;H[c+8>>2]=e;H[c+12>>2]=d;break d}F[c+19|0]=d;e=c+8|0;if(!d){break c}}Ob(e,b,d)}F[d+e|0]=0;H[197455]=0;ka(902,a|0,c+8|0,c+28|0,c+24|0);a=H[197455];H[197455]=0;e:{if((a|0)!=1){if(F[c+19|0]<0){Kb(H[c+8>>2])}b=H[c+24>>2];if(b){break e}d=0;break b}a=$()|0;_()|0;if(F[c+19|0]<0){Kb(H[c+8>>2])}ea(a|0);X()}a=Qb(20);H[a+4>>2]=0;H[a+8>>2]=0;H[a>>2]=245168;H[a+12>>2]=0;H[a+16>>2]=0;yr(a,H[c+28>>2],b);d=H[a+4>>2]}xb=c+32|0;return d|0}qd(c+8|0);X()}function oG(a,b){var c=0,d=0,e=0;a:{e=H[a+4>>2];if(e>>>0>b>>>0){d=b;break a}b:{c:{d=H[a+8>>2];if(d){c=H[a+12>>2];if((d|0)==(e|0)){d=e-1|0;if(!e){a=0;if(b>>>0>=c>>>0){break b}while(1){if(d>>>0>>0){continue}break}break b}if(b>>>0>>0){break a}return 0}if(b>>>0>>0){break c}return 0}return H[a+16>>2]}c=H[a+20>>2];a=H[a>>2];c=((a|0)<0?163632:H[(c?c:163632)+12>>2]+(a<<2)|0)+(e-a<<1)|0;a=b-e|0;b=d+(e^-1)|0;a=c+((a>>>0>>0?a:b)<<1)|0;a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)&65535}return a}b=H[a+20>>2];a=H[a>>2]-1|0;a=a>>>0>d>>>0?d:a;a=(a|0)<0?163632:H[(b?b:163632)+12>>2]+(a<<2)|0;a=I[a|0]|I[a+1|0]<<8;return(a<<8|a>>>8)&65535}function Lj(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=H[a+4>>2];b=f>>31;c=(b^f)-b|0;h=H[a>>2];if(!h){if(!f){return}H[a+4>>2]=(f|0)<0?-65536:65536;return}b=h>>31;d=(b^h)-b|0;if(!f){H[a>>2]=(h|0)<0?-65536:65536;return}e=c>>>0>>0?d+(c>>>1|0)|0:c+(d>>>1|0)|0;b=Q(e);b=(-1431655766>>>b>>>0>e>>>0?-15:-16)+b|0;a:{if((b|0)>0){d=d<>>0>>0?d+(c>>>1|0)|0:(d>>>1|0)+c|0;break a}g=e;e=0-b|0;b=g>>>e|0;c=c>>>e|0;d=d>>>e|0}b=65536-b|0;while(1){e=(N(b,d)>>16)+d|0;g=(N(b,c)>>16)+c|0;i=N((N(e,e)+N(g,g)|0)/-512|0,b+65536>>8);b=((i|0)/65536|0)+b|0;if((i|0)>65535){continue}break}H[a+4>>2]=(f|0)<0?0-g|0:g;H[a>>2]=(h|0)<0?0-e|0:e}function Sla(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;a=H[b+12>>2];a:{if(a){break a}while(1){h=H[b>>2];if(!h){a=163632;break a}b:{c:{a=oc(1,48);if(a){Wn(a,h);h=H[b+12>>2];H[b+12>>2]=h?h:a;if(!h){break a}h=H[a+44>>2];H[197455]=0;ia(579,h|0);h=H[197455];H[197455]=0;if((h|0)==1){break c}Kb(a);break b}a=163632;h=H[b+12>>2];H[b+12>>2]=h?h:163632;if(h){break b}break a}ha(0)|0;_()|0;Zb();X()}a=H[b+12>>2];if(!a){continue}break}}h=H[a+8>>2];if(!h){return 0}b=0;d:{if(!c){break d}a=H[a+12>>2];while(1){if(!(zb[h|0](a,H[d>>2],f)|0)){break d}f=f+g|0;d=d+e|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}b=c}return b|0}function Gja(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;a:{e=H[c+68>>2];if(!e){break a}d=e-1|0;a=0;f=H[c+80>>2];b=I[f+15|0];while(1){b:{if((a|0)==(d|0)){a=e;break b}a=a+1|0;if((b|0)==I[(N(a,20)+f|0)+15|0]){continue}}break}if(!e){break a}d=0;g=f;h=e;while(1){b=a;c:{if(a>>>0<=d>>>0){break c}while(1){a=N(d,20)+f|0;if(I[a+12|0]&16){F[a+18|0]=22;g=H[c+80>>2];h=H[c+68>>2];break c}d=d+1|0;if((b|0)!=(d|0)){continue}break}}a=b+1|0;d=a>>>0>>0?h:a;i=d-1|0;j=I[(N(b,20)+g|0)+15|0];a=b;while(1){d:{if((a|0)==(i|0)){a=d;break d}a=a+1|0;if(I[(N(a,20)+g|0)+15|0]==(j|0)){continue}}break}d=b;if(e>>>0>d>>>0){continue}break}}}function yv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if(I[a+11|0]>>>7|0){d=H[a+4>>2]}else{d=I[a+11|0]}if(d>>>0>>0){e=xb-16|0;xb=e;f=b-d|0;if(f){b=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:1;if(I[a+11|0]>>>7|0){d=H[a+4>>2]}else{d=I[a+11|0]}g=d+f|0;if(b-d>>>0>>0){Pl(a,b,g-b|0,d,d,0)}if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}Fv(b+(d<<2)|0,f,c);a:{if(I[a+11|0]>>>7|0){H[a+4>>2]=g;break a}F[a+11|0]=g}H[e+12>>2]=0;H[b+(g<<2)>>2]=H[e+12>>2]}xb=e+16|0;return}c=xb-16|0;xb=c;b:{if(I[a+11|0]>>>7|0){d=H[a>>2];H[c+12>>2]=0;H[d+(b<<2)>>2]=H[c+12>>2];H[a+4>>2]=b;break b}H[c+8>>2]=0;H[(b<<2)+a>>2]=H[c+8>>2];F[a+11|0]=b}xb=c+16|0}function dh(a,b){var c=0,d=0,e=0,f=O(0),g=0,h=0,i=O(0),j=0;g=M[b+8>>3];h=M[b>>3];b=H[a+8>>2];if(b){h=h+M[b>>3];g=g+M[b+8>>3]}b=H[a+4>>2];c=H[a>>2];j=H[c+20>>2];d=H[c+16>>2];e=H[d+28>>2];if(!e){e=kc(d);c=H[a>>2];d=H[c+16>>2]}c=H[c+24>>2];a=H[d+28>>2];if(!a){a=kc(d)}f=O(O(O(h)*O(j|0))/O(e>>>0));d=b+16|0;i=O(O(O(g)*O(c|0))/O(a>>>0));c=H[b+12>>2];a=H[b+8>>2];a:{b:{if(I[b+4|0]){if(!H[d>>2]){break b}break a}f=O(O(i*L[b>>2])+f);if(H[b+16>>2]){break a}}zb[H[a+12>>2]](a,c,d,L[b+28>>2],L[b+32>>2],H[a+32>>2]);H[b+16>>2]=1;e=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=e}zb[H[a+16>>2]](a,c,d,f,i,H[a+36>>2]);L[b+32>>2]=i;L[b+28>>2]=f}function HD(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-944|0;xb=e;H[a>>2]=d;if(!d){H[e>>2]=0;vr(e,b,c);H[a>>2]=H[e>>2]}d=Bd(e,0);f=H[a>>2];H[197455]=0;b=la(916,d|0,b|0,c|0,f|0)|0;c=H[197455];H[197455]=0;a:{b:{if((c|0)==1){break b}if(b){H[197455]=0;ba(914,d|0,a|0);c=H[197455];H[197455]=0;if((c|0)==1){break b}H[197455]=0;c=Hi(d);f=H[197455];H[197455]=0;if((f|0)==1){break b}F[a+28|0]=c}H[d>>2]=245276;H[197455]=0;aa(917,d|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;aa(918,d|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}xb=e+944|0;return b|0}a=$()|0;_()|0;Zf(d);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Eq(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=xb-256|0;xb=g;a:{b:{if(c>>>0>>0){Xb(a,259921);d=0;break b}if(!b){c:{h=c-d|0;c=oC(a,H[a+740>>2]+d|0,h,0,0);if(!(d>>>0>4294967293|c>>>0>=-2-d>>>0)){b=H[a+712>>2];if(!b|c+d>>>0>>0){break c}}Xb(a,260111);break b}if(!c){break b}d:{b=c+d|0;f=xd(a,b+1|0);if(f){i=H[a+740>>2];f=Ob(f,i,d);h=oC(a,d+i|0,h,d+f|0,c);F[b+f|0]=0;if((c|0)==(h|0)){break d}Xb(a,260256);cc(a,f);break b}Xb(a,260445);break b}cc(a,H[a+740>>2]);H[a+740>>2]=f;d=b;break a}pf(g,1,1,b);Ci(a,g,260694)}b=xd(a,d+1|0);if(!b){break a}c=H[a+740>>2];if(d){Ob(b,c,d)}cc(a,c);H[a+740>>2]=b;F[b+d|0]=0}H[e>>2]=d;xb=g+256|0}function ct(a,b,c){var d=0,e=0,f=0;e=163632;a:{b:{if(!a|!c){break b}d=H[a+16>>2];if(d>>>0<=b>>>0){break b}if(H[a+4>>2]){H[a+4>>2]=0}d=d-b|0;d=c>>>0>>0?c:d;if(H[a>>2]){H[a>>2]=H[a>>2]+1}if(!d){if(!H[a>>2]){break b}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break b}break a}c:{if((d|0)>=0){f=H[a+12>>2];c=oc(1,32);if(c){break c}}if(!H[a>>2]){break b}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break b}break a}H[c+8>>2]=0;H[c>>2]=1;H[c+4>>2]=1;H[c+28>>2]=595;H[c+24>>2]=a;H[c+20>>2]=1;H[c+16>>2]=d;H[c+12>>2]=b+f;e=c}return e}H[a>>2]=-57005;b=H[a+8>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}b=H[a+28>>2];if(b){zb[b|0](H[a+24>>2])}Kb(a);return 163632}function fS(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;a=xb-256|0;xb=a;H[a+248>>2]=37;H[a+252>>2]=0;g=a+248|0;mh(g|1,238857,1,H[c+4>>2]);h=Od();H[a>>2]=e;H[a+4>>2]=f;e=a+224|0;f=Fe(e,24,h,g,a)+e|0;h=ef(e,f,c);i=a+16|0;g=H[c+28>>2];H[i>>2]=g;H[g+4>>2]=H[g+4>>2]+1;H[197455]=0;ua(3472,e|0,h|0,f|0,a+32|0,a+28|0,a+24|0,i|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=H[a+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}b=tj(b,a+32|0,H[a+28>>2],H[a+24>>2],c,d);xb=a+256|0;return b|0}c=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function dS(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;a=xb-256|0;xb=a;H[a+248>>2]=37;H[a+252>>2]=0;g=a+248|0;mh(g|1,238857,0,H[c+4>>2]);h=Od();H[a>>2]=e;H[a+4>>2]=f;e=a+224|0;f=Fe(e,24,h,g,a)+e|0;h=ef(e,f,c);i=a+16|0;g=H[c+28>>2];H[i>>2]=g;H[g+4>>2]=H[g+4>>2]+1;H[197455]=0;ua(3472,e|0,h|0,f|0,a+32|0,a+28|0,a+24|0,i|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=H[a+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}b=tj(b,a+32|0,H[a+28>>2],H[a+24>>2],c,d);xb=a+256|0;return b|0}c=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function cf(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!I[a+60|0]){break a}if(I[a+61|0]){b=H[a+64>>2];e=H[a+68>>2]-b|0;c=H[a+84>>2];d=H[a+80>>2];f=H[a+72>>2];if(!((c|0)==(d|0)&(f|0)==(b|0))){b=e+f|0;if(!(!b|b>>>0>2])){if(!fh(a,b)){break a}d=H[a+80>>2];c=H[a+84>>2]}b:{if((c|0)!=(d|0)){break b}c=H[a+72>>2];if(c+e>>>0<=H[a+64>>2]+e>>>0){c=d;break b}b=H[a+88>>2];H[a+84>>2]=b;Ob(b,d,N(c,20));d=H[a+80>>2];c=H[a+84>>2]}$c(N(H[a+72>>2],20)+c|0,N(H[a+64>>2],20)+d|0,N(e,20));b=H[a+72>>2]}H[a+72>>2]=b+e}c=H[a+84>>2];b=H[a+80>>2];if((c|0)!=(b|0)){H[a+80>>2]=c;H[a+88>>2]=b}H[a+68>>2]=H[a+72>>2]}H[a+72>>2]=0;F[a+61|0]=0;H[a+64>>2]=0}function qS(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;a=xb-112|0;xb=a;H[a+104>>2]=37;H[a+108>>2]=0;g=a+104|0;mh(g|1,238857,1,H[c+4>>2]);h=Od();H[a>>2]=e;H[a+4>>2]=f;e=a+80|0;f=Fe(e,24,h,g,a)+e|0;h=ef(e,f,c);i=a+16|0;g=H[c+28>>2];H[i>>2]=g;H[g+4>>2]=H[g+4>>2]+1;H[197455]=0;ua(3461,e|0,h|0,f|0,a+32|0,a+28|0,a+24|0,i|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=H[a+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}b=Xi(b,a+32|0,H[a+28>>2],H[a+24>>2],c,d);xb=a+112|0;return b|0}c=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function oS(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;a=xb-112|0;xb=a;H[a+104>>2]=37;H[a+108>>2]=0;g=a+104|0;mh(g|1,238857,0,H[c+4>>2]);h=Od();H[a>>2]=e;H[a+4>>2]=f;e=a+80|0;f=Fe(e,24,h,g,a)+e|0;h=ef(e,f,c);i=a+16|0;g=H[c+28>>2];H[i>>2]=g;H[g+4>>2]=H[g+4>>2]+1;H[197455]=0;ua(3461,e|0,h|0,f|0,a+32|0,a+28|0,a+24|0,i|0);e=H[197455];H[197455]=0;if((e|0)!=1){e=H[a+16>>2];f=H[e+4>>2]-1|0;H[e+4>>2]=f;if((f|0)==-1){zb[H[H[e>>2]+8>>2]](e)}b=Xi(b,a+32|0,H[a+28>>2],H[a+24>>2],c,d);xb=a+112|0;return b|0}c=$()|0;_()|0;a=H[a+16>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function en(a){var b=0,c=0,d=0,e=0;c=xb-16|0;xb=c;H[a+744>>2]=33;vd(a,c+8|0,8);a:{b=I[c+8|0]|I[c+9|0]<<8|(I[c+10|0]<<16|I[c+11|0]<<24);e=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);if((e|0)>=0){b=I[c+12|0]|I[c+13|0]<<8|(I[c+14|0]<<16|I[c+15|0]<<24);H[a+348>>2]=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);Uf(a);xc(a,c+12|0,4);b=H[a+348>>2];d=b&255;if(d-123>>>0<4294967238|d-91>>>0<=5){break a}d=b>>>8&255;if(d-123>>>0<4294967238|d-91>>>0<6){break a}d=b>>>16&255;if(d-123>>>0<4294967238|d-91>>>0<6){break a}b=b>>>24|0;if(b-123>>>0<4294967238|b-91>>>0<6){break a}H[a+744>>2]=65;xb=c+16|0;return e}hc(a,258923);X()}Qk(a,269456);X()}function XI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-208|0;xb=d;f=H[a+532>>2];zb[H[b+60>>2]](b,d+16|0,16,d+12|0);e=H[d+12>>2];a:{if((e|0)<0){c=162;break a}c=3;if(e-17>>>0<4294967280){break a}b:{c:{d:{if(f){g=H[f>>2];if(g){break d}}c=zl(a,e,0);if(c){break a}e=H[b+8>>2];g=H[b>>2];if(H[d+12>>2]<=0){break b}f=H[a+532>>2];break c}if((e|0)!=(g|0)){break a}e=H[b+8>>2];g=H[b>>2]}c=0;while(1){a=(d+16|0)+N(c,12)|0;H[b>>2]=H[a>>2];H[b+8>>2]=H[a+4>>2];a=zb[H[b+40>>2]](b,0)|0;h=c<<2;H[h+H[f+136>>2]>>2]=a;H[H[f+140>>2]+h>>2]=a;c=c+1|0;if((c|0)>2]){continue}break}}H[b+8>>2]=e;H[b>>2]=g;c=0}H[b+12>>2]=c;xb=d+208|0}function ok(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;xb=d+16|0;e=0;a:{if(!b){break a}b:{if(!c){break b}a=a?a:d+12|0;d=I[b|0];e=d<<24>>24;if((e|0)>=0){H[a>>2]=d;e=(e|0)!=0;break a}d=F[b|0];if(!H[H[197059]>>2]){H[a>>2]=d&57343;e=1;break a}d=(d&255)-194|0;if(d>>>0>50){break b}d=H[(d<<2)+761856>>2];if(d<>>0<=3){break b}c=I[b+1|0];e=c>>>3|0;if((e-16|e+(d>>26))>>>0>7){break b}c=c-128|d<<6;if((c|0)>=0){H[a>>2]=c;e=2;break a}d=I[b+2|0]-128|0;if(d>>>0>63){break b}c=d|c<<6;if((c|0)>=0){H[a>>2]=c;e=3;break a}b=I[b+3|0]-128|0;if(b>>>0>63){break b}H[a>>2]=b|c<<6;e=4;break a}H[197018]=25;e=-1}return e|0}function dg(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;H[g+8>>2]=b;b=0;h=6;a:{b:{if(qh(a,g+8|0)){break b}h=4;f=H[a>>2];i=H[f+12>>2];c:{if((i|0)==H[f+16>>2]){f=zb[H[H[f>>2]+36>>2]](f)|0;break c}f=H[i>>2]}if(!(zb[H[H[d>>2]+12>>2]](d,2048,f)|0)){break b}b=zb[H[H[d>>2]+52>>2]](d,f,0)|0;while(1){d:{$i(a);b=b-48|0;if(!gm(a,g+8|0)|(e|0)<2){break d}f=H[a>>2];h=H[f+12>>2];e:{if((h|0)==H[f+16>>2]){f=zb[H[H[f>>2]+36>>2]](f)|0;break e}f=H[h>>2]}if(!(zb[H[H[d>>2]+12>>2]](d,2048,f)|0)){break a}e=e-1|0;b=(zb[H[H[d>>2]+52>>2]](d,f,0)|0)+N(b,10)|0;continue}break}h=2;if(!qh(a,g+8|0)){break a}}H[c>>2]=H[c>>2]|h}xb=g+16|0;return b}function Hx(a,b,c,d,e){var f=0,g=0,h=0,i=0;f=xb-208|0;xb=f;H[f+204>>2]=c;c=f+160|0;Nb(c,0,40);H[f+200>>2]=H[f+204>>2];a:{if((Gx(0,b,f+200|0,f+80|0,c,d,e)|0)<0){b=-1;break a}i=H[a+76>>2]>=0;g=H[a>>2];if(H[a+72>>2]<=0){H[a>>2]=g&-33}b:{c:{d:{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;h=H[a+44>>2];H[a+44>>2]=f;break d}if(H[a+16>>2]){break c}}c=-1;if(yp(a)){break b}}c=Gx(a,b,f+200|0,f+80|0,f+160|0,d,e)}if(h){zb[H[a+36>>2]](a,0,0)|0;H[a+48>>2]=0;H[a+44>>2]=h;H[a+28>>2]=0;b=H[a+20>>2];H[a+16>>2]=0;H[a+20>>2]=0;c=b?c:-1}b=a;a=H[a>>2];H[b>>2]=a|g&32;b=a&32?-1:c;if(!i){break a}}xb=f+208|0;return b}function fE(a,b,c,d){var e=0,f=0,g=0;e=ss(a+120|0);a=I[e+12|0]|I[e+13|0]<<8;a:{if(((a<<8|a>>>8)&65535)>>>0>b>>>0){a=I[e+4|0]|I[e+5|0]<<8;if(a){g=e+((a<<8|a>>>8)&65535)|0}else{g=163632}a=I[e+8|0]|I[e+9|0]<<8;a=(a<<8|a>>>8)&65535;if(!c){break a}f=H[c>>2];if(!f){break a}e=I[e+14|0]|I[e+15|0]<<8;f=a>>>0>>0?a:f;H[c>>2]=f;if(!f){break a}e=((N(a,20)+g|0)+N((e<<8|e>>>8)&65535,b)|0)+4|0;c=0;while(1){g=c<<2;b=g+e|0;b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);L[d+g>>2]=O(b<<8&16711680|b<<24|(b>>>8&65280|b>>>24))*O(152587890625e-16);c=c+1|0;if((f|0)!=(c|0)){continue}break}break a}a=0;if(!c){break a}H[c>>2]=0}return a}function eJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-32|0;xb=c;a:{if((zb[H[b+52>>2]](b,6,c,3)|0)<=5){H[b+12>>2]=3;break a}e=H[c+12>>2];if(!e){H[b+12>>2]=3;break a}d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){f=a,g=dc(1e3,d),G[f+68>>1]=g;f=c,g=dc(H[c>>2],d),H[f>>2]=g;f=c,g=dc(H[c+4>>2],d),H[f+4>>2]=g;f=c,g=dc(H[c+8>>2],d),H[f+8>>2]=g;f=c,g=dc(H[c+16>>2],d),H[f+16>>2]=g;f=c,g=dc(H[c+20>>2],d),H[f+20>>2]=g;e=H[c+12>>2]<0?-65536:65536;H[c+12>>2]=e}H[a+440>>2]=H[c>>2];H[a+448>>2]=H[c+4>>2];d=H[c+8>>2];H[a+452>>2]=e;H[a+444>>2]=d;if(!sn(a+440|0)){H[b+12>>2]=3;break a}H[a+456>>2]=G[c+18>>1];H[a+460>>2]=G[c+22>>1]}xb=c+32|0}function Xd(a,b,c){var d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;a:{b:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+12|0,1)|0)==1){f=I[d+12|0];break b}e=-1;if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break a}}c:{d:{e:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+13|0,1)|0)==1){e=I[d+13|0];g=e<<8|f;break e}if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break d}e=f;g=N(f,257)}f:{if((zb[H[a+4>>2]](H[a+28>>2],b,d+14|0,1)|0)==1){e=I[d+14|0];break f}if(zb[H[a+24>>2]](H[a+28>>2],b)|0){break d}}if((zb[H[a+4>>2]](H[a+28>>2],b,d+15|0,1)|0)==1){f=I[d+15|0];break c}f=e;if(!(zb[H[a+24>>2]](H[a+28>>2],b)|0)){break c}}f=0;e=-1;break a}f=e<<16|g|f<<24;e=0}H[c>>2]=f;xb=d+16|0;return e}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;a:{b:{c:{f=N(b,12)+a|0;e=H[f+72>>2];if((e|0)>=0){d=H[f+76>>2];h=d+1|0;g=(h|0)>0?h:0;if(e>>>0>=g>>>0){break b}d=e;while(1){d=((d>>>1|0)+d|0)+8|0;if(g>>>0>=d>>>0){continue}break}if(!(d>>>0>>0|d>>>0>536870910)){h=N(b,12)+a|0;e=tc(H[h+80>>2],d<<3);if(e){break c}}H[f+72>>2]=-1}e=H[40909];H[196248]=H[40908];H[196249]=e;e=784992;break a}H[h+80>>2]=e;H[f+72>>2]=d;d=H[f+76>>2]}if(d>>>0>>0){Nb(H[(N(b,12)+a|0)+80>>2]+(d<<3)|0,0,g-d<<3)}H[f+76>>2]=g;e=(H[(N(b,12)+a|0)+80>>2]+(g<<3)|0)-8|0}b=(b<<2)+a|0;a=H[b+52>>2];H[e+4>>2]=c;H[e>>2]=a;H[b+52>>2]=H[b+52>>2]+1}function Fl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if(!a){return 35}e=16;a:{if(J[a+264>>1]<=b>>>0){break a}d=H[a+544>>2];if(!d){return 7}e=0;g=c,h=zb[H[d+16>>2]](0)|0,H[g>>2]=h;f=c;c=H[a+476>>2];b:{if((c|0)!=151552){if((c|0)!=131072){if((c|0)!=65536|b>>>0>257){break a}a=zb[H[d+16>>2]](b)|0;break b}if(!I[a+632|0]){if(Cu(a)){break a}}if(J[a+636>>1]<=b>>>0){break a}b=J[H[a+640>>2]+(b<<1)>>1];if(b>>>0<=257){a=zb[H[d+16>>2]](b)|0;break b}a=H[(H[a+644>>2]+(b<<2)|0)-1032>>2];break b}if(!I[a+632|0]){if(Cu(a)){break a}}if(J[a+636>>1]<=b>>>0){break a}a=zb[H[d+16>>2]](F[H[a+640>>2]+b|0]+b|0)|0}H[f>>2]=a}return e|0}function ly(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;a:{b:{c:{d:{e:{if(!H[a>>2]){break e}rj(d,752184,b);b=H[a>>2];H[197455]=0;ba(3306,b|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break d}if(F[d+11|0]<0){Kb(H[d>>2])}if(c){break e}F[d+11|0]=1;H[197455]=0;Mb(d,752192,1);b=H[197455];H[197455]=0;if((b|0)==1){break a}H[d+4>>2]=0;a=H[a>>2];H[197455]=0;ba(3306,a|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break c}if(F[d+11|0]>=0){break e}Kb(H[d>>2])}xb=d+16|0;return}a=$()|0;_()|0;if(F[d+11|0]>=0){break b}Kb(H[d>>2]);ea(a|0);X()}a=$()|0;_()|0;if(F[d+11|0]>=0){break b}Kb(H[d>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function Sr(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=xb-16|0;xb=f;d=163632;e=I[a+2|0]|I[a+3|0]<<8;c=(a+2|0)+(((e<<8|e>>>8)&65535)<<1)|0;e=c+2|0;c=I[e|0]|I[e+1|0]<<8?c+4|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}c=0;g=d;d=H[b+100>>2];if((Gc(g,H[H[d+80>>2]+N(H[d+64>>2],20)>>2])|0)!=-1){d=I[e|0]|I[e+1|0]<<8;h=(d<<8|d>>>8)&65535;i=e+(h<<1)|0;d=i+2|0;c=I[d|0]|I[d+1|0]<<8;H[f+12>>2]=a;H[f+8>>2]=a;H[f+4>>2]=a;H[f>>2]=732;j=(c<<8|c>>>8)&65535;d=(j<<1)+d|0;c=I[d+2|0]|I[d+3|0]<<8;g=b;b=I[a+2|0]|I[a+3|0]<<8;c=Jn(g,(b<<8|b>>>8)&65535,a+4|0,h,e+4|0,j,i+4|0,(c<<8|c>>>8)&65535,d+4|0,f)}xb=f+16|0;return c}function PB(a,b){var c=0,d=0,e=0;d=xb+-64|0;xb=d;c=H[a+276>>2];if(!(c&4)){a:{if((b|0)==(c|0)){break a}b:{c:{if(!c){break c}c=Oj(a+212|0);H[a+276>>2]=0;if(!c){break c}e=265015;break b}d:{e:{switch(b-1|0){case 0:e=266045;c=Cn(a+212|0,H[a+280>>2],H[a+284>>2],H[a+288>>2],H[a+292>>2],H[a+296>>2],265107);break d;default:hc(a,266171);X();case 1:break e}}e=265114;c=Cn(a+212|0,H[a+300>>2],H[a+304>>2],H[a+308>>2],H[a+312>>2],H[a+316>>2],265107)}if(!c){break a}}e=Di(d,64,Di(d,64,0,266282),e);b=c+6|0;if(b>>>0<=4){b=H[(b<<2)+270148>>2]}else{b=266542}Di(d,64,e,b);hc(a,d);X()}H[a+276>>2]=b|4;xb=d- -64|0;return}hc(a,266648);X()}function hM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=H[a+16>>2];c=I[a+8204|0]|I[a+8205|0]<<8|(I[a+8206|0]<<16|I[a+8207|0]<<24);d=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);a:{if(!d){break a}a=a+8208|0;while(1){c=I[a|0]|I[a+1|0]<<8|(I[a+2|0]<<16|I[a+3|0]<<24);e=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);if(e>>>0>b>>>0){break a}c=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);if((c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0>>0){a=a+12|0;d=d-1|0;if(!d){break a}continue}break}a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);b=b-e|0;f=a>>>0>(b^-1)>>>0?0:a+b|0}return f|0}function HQ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=3;a:{if(H[a+64>>2]!=3){H[a+64>>2]=3;e=H[a+20>>2];if(!e){break a}b:{if(I[a+68|0]){d=H[a+12>>2];if((G[d+20>>1]+G[d+56>>1]|0)+1>>>0>K[d+8>>2]){d=ee(d,0,1);if(d){break a}}f=J[e>>1];d=f<<16>>16;if((d|0)<=0){break b}G[(H[e+12>>2]+(f<<1)|0)-2>>1]=J[e+2>>1]-1}d=J[e>>1]}G[e>>1]=d+1;d=H[a+12>>2];if((G[d+22>>1]+G[d+58>>1]|0)+1>>>0>K[d+4>>2]){d=ee(d,1,0);if(d){break a}}d=H[a+20>>2];if(I[a+68|0]){a=H[d+8>>2];e=G[d+2>>1];f=H[d+4>>2]+(e<<3)|0;H[f>>2]=(((b>>31)+b|0)+32768&-65536)>>16;H[f+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;F[a+e|0]=1}G[d+2>>1]=J[d+2>>1]+1}d=0}return d|0}function lV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=I[787939];f=d<<24>>24<0;e=f?H[196982]:787928;d=f?H[196983]:d;if((d|0)==-1){d=ad(e)}zb[H[H[a>>2]+8>>2]](a,d);f=e;e=d<<2;Ob(H[a+12>>2],f,e);H[a+12>>2]=e+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+d;e=I[b+11|0];f=e<<24>>24<0;d=f?H[b>>2]:b;b=f?H[b+4>>2]:e;if((b|0)==-1){b=ad(d)}zb[H[H[a>>2]+8>>2]](a,b);e=d;d=b<<2;Ob(H[a+12>>2],e,d);H[a+12>>2]=d+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b;if(!c){b=I[787951];d=b<<24>>24<0;c=d?H[196985]:787940;b=d?H[196986]:b;if((b|0)==-1){b=ad(c)}zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b}}function jP(a){a=a|0;if(I[790180]){return H[197544]}if(!I[790976]){a=790688;while(1){a=Dc(a)+12|0;if((a|0)!=790976){continue}break}F[790976]=1}Zc(790688,238094);Zc(790700,238085);Zc(790712,239024);Zc(790724,238860);Zc(790736,238180);Zc(790748,239196);Zc(790760,238118);Zc(790772,238230);Zc(790784,238651);Zc(790796,238634);Zc(790808,238642);Zc(790820,238661);Zc(790832,238833);Zc(790844,239466);Zc(790856,238686);Zc(790868,238454);Zc(790880,238180);Zc(790892,238715);Zc(790904,238853);Zc(790916,239034);Zc(790928,238695);Zc(790940,238351);Zc(790952,238222);Zc(790964,239436);F[790180]=1;H[197544]=790688;return 790688}function hP(a){a=a|0;if(I[790188]){return H[197546]}if(!I[791280]){a=790992;while(1){a=Dc(a)+12|0;if((a|0)!=791280){continue}break}F[791280]=1}Yc(790992,778072);Yc(791004,778104);Yc(791016,778140);Yc(791028,778164);Yc(791040,778188);Yc(791052,778204);Yc(791064,778224);Yc(791076,778244);Yc(791088,778272);Yc(791100,778312);Yc(791112,778344);Yc(791124,778380);Yc(791136,778416);Yc(791148,778432);Yc(791160,778448);Yc(791172,778464);Yc(791184,778188);Yc(791196,778480);Yc(791208,778496);Yc(791220,778512);Yc(791232,778528);Yc(791244,778544);Yc(791256,778560);Yc(791268,778576);F[790188]=1;H[197546]=790992;return 790992}function pz(a,b){var c=0,d=0,e=0,f=0,g=0;if(b){d=-8;g=H[a>>2];e=g-12|0;f=H[e>>2]+a|0;c=H[f+8>>2];if(c+3>>>0>2]){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[f+8>>2]=c+4;d=d-8|0}c=H[b+12>>2];a:{if(!c){c=H[b+4>>2];if(c){Kb(c);g=H[a>>2]}f=Qb(d);H[b+12>>2]=d;H[b+4>>2]=f;break a}d=H[e>>2]+a|0;H[d+8>>2]=H[d+8>>2]+4;f=H[b+4>>2];d=c}e=(H[g-12>>2]+a|0)+8|0;g=H[e>>2];c=H[a+116>>2]-8|0;b:{c:{if(!(d|(!c|f))){f=Qb(c);H[b+12>>2]=c;H[b+4>>2]=f;d=c;break c}if(!d){break b}}e=H[b+8>>2];d=c+e>>>0>d>>>0?d-e|0:c;Ob(f+e|0,g,d);H[b+8>>2]=d+H[b+8>>2];c=H[a+116>>2]-8|0;e=(H[H[a>>2]-12>>2]+a|0)+8|0;g=H[e>>2]}H[e>>2]=c+g}}function LL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=xb-16|0;xb=f;c=H[a+28>>2];g=H[a+16>>2];e=H[a+24>>2];H[f+12>>2]=0;a:{b:{d=e+1|0;c:{if(d>>>0<=c>>>0){b=H[a+32>>2];break c}H[a+36>>2]=b;b=Ub(b,4,c,d,H[a+32>>2],f+12|0);H[a+32>>2]=b;if(H[f+12>>2]){break b}H[a+28>>2]=d}d:{if(!e){break d}a=g+10|0;c=0;if((e|0)!=1){g=e&-2;d=0;while(1){h=c<<2;H[h+b>>2]=I[a+2|0]|(I[a+1|0]<<8|I[a|0]<<16);H[(h|4)+b>>2]=I[a+13|0]|(I[a+12|0]<<8|I[a+11|0]<<16);c=c+2|0;a=a+22|0;d=d+2|0;if((g|0)!=(d|0)){continue}break}}if(!(e&1)){break d}H[(c<<2)+b>>2]=I[a+2|0]|(I[a+1|0]<<8|I[a|0]<<16)}H[(e<<2)+b>>2]=0;break a}b=0}xb=f+16|0;return b|0}function Kea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if((e|0)<=0){break a}g=H[a+36>>2];if((g|0)<=0){break a}j=H[a+112>>2];if(!j){break a}l=j&3;m=j-1>>>0<3;while(1){n=e-1|0;h=0;while(1){a=H[H[(h<<2)+b>>2]+(c<<2)>>2];f=H[d>>2]+h|0;i=j;k=0;if(l){while(1){F[f|0]=I[a|0];i=i-1|0;f=f+g|0;a=a+1|0;k=k+1|0;if((k|0)!=(l|0)){continue}break}}if(!m){while(1){F[f|0]=I[a|0];f=f+g|0;F[f|0]=I[a+1|0];f=f+g|0;F[f|0]=I[a+2|0];f=f+g|0;F[f|0]=I[a+3|0];a=a+4|0;f=f+g|0;i=i-4|0;if(i){continue}break}}h=h+1|0;if((h|0)!=(g|0)){continue}break}d=d+4|0;c=c+1|0;a=(e|0)>1;e=n;if(a){continue}break}}}function ED(a,b,c){var d=0;d=0;a:{if(H[a>>2]){break a}b:{if(I[b|0]|c>>>0<32|(I[b+1|0]|I[b+2|0])){break b}if(I[b+3|0]!=12|I[b+4|0]!=106|(I[b+5|0]!=80|I[b+6|0]!=32)){break b}if(I[b+7|0]!=32|I[b+8|0]!=13|(I[b+9|0]!=10|I[b+10|0]!=135)){break b}if(I[b+12|0]|I[b+11|0]!=10|(I[b+13|0]|I[b+14|0])){break b}if(I[b+15|0]!=24|I[b+16|0]!=102|(I[b+17|0]!=116|I[b+18|0]!=121)){break b}if(I[b+19|0]!=112|I[b+20|0]!=109|(I[b+21|0]!=106|I[b+22|0]!=112)){break b}if(I[b+24|0]|I[b+23|0]!=50|(I[b+25|0]|I[b+26|0])){break b}if(I[b+27|0]|I[b+28|0]!=109|(I[b+29|0]!=106|I[b+30|0]!=112)){break b}d=1;if(I[b+31|0]==50){break a}}d=0}return d}function cp(a,b){var c=0,d=0,e=0,f=0;d=H[a>>2];if(d>>>0>>0){while(1){c=d+1|0;a:{b:{c:{d:{e:{e=I[d|0];switch(e-40|0){case 1:break c;case 0:break d;default:break e}}if((e|0)!=92){break a}if((b|0)==(c|0)){H[a>>2]=b;return 3}f:{e=I[c|0];switch(e-40|0){case 0:case 1:case 52:case 58:case 62:case 70:case 74:case 76:break b;default:break f}}if((e&248)!=48|b>>>0<=c>>>0){break a}c=d+2|0;if(c>>>0>=b>>>0|(I[c|0]&248)!=48){break a}c=d+3|0;if(c>>>0>=b>>>0){break a}c=(I[d+3|0]&248)==48?d+4|0:c;break a}f=f+1|0;break a}f=f-1|0;if(f){break a}H[a>>2]=c;return 0}c=d+2|0}d=c;if(d>>>0>>0){continue}break}}H[a>>2]=d;return 3}function Jy(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-16|0;xb=c;hj(c,b+26|0,32,1);a:{b:{e=F[c+11|0]<0?H[c>>2]:c;d=ad(e);if(d>>>0>=1073741808){H[197455]=0;ia(1640,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break b}X()}c:{d:{if(d>>>0>=2){H[197455]=0;f=d+4&-4;b=aa(899,f<<2)|0;g=H[197455];H[197455]=0;if((g|0)==1){break b}H[a>>2]=b;H[a+4>>2]=d;H[a+8>>2]=f|-2147483648;a=b;break d}F[a+11|0]=d;if(!d){break c}}H[197455]=0;Mb(a,e,d);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(d<<2)+a>>2]=0;if(F[c+11|0]<0){Kb(H[c>>2])}xb=c+16|0;return}a=$()|0;_()|0;if(F[c+11|0]<0){Kb(H[c>>2])}ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function u_(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-80|0;xb=c;d=H[a+208>>2];if(d){zb[H[H[d>>2]+436>>2]](d,b)}H[c+60>>2]=0;H[c+64>>2]=0;H[c+52>>2]=0;H[c+56>>2]=0;d=H[b+8>>2];H[c+68>>2]=0;H[c+40>>2]=d;H[c+44>>2]=0;e=H[b+12>>2];H[c+48>>2]=e;H[c+72>>2]=H[b+56>>2];H[c+32>>2]=H[b>>2];f=H[b+4>>2];H[c+76>>2]=0;H[c+36>>2]=f;f=H[a+116>>2];d=(d<<((e>>>9^-1)&1))+(e&256?28:44)|0;if((f|0)!=(d|0)){e=H[H[a>>2]-12>>2]+a|0;H[e+8>>2]=H[e+8>>2]+(f-d|0)}b=H[b+16>>2];H[c+24>>2]=0;H[c+28>>2]=1072693248;H[c+8>>2]=0;H[c+12>>2]=1072693248;H[c+16>>2]=0;H[c+20>>2]=1072693248;H[c>>2]=0;H[c+4>>2]=1072693248;Cz(a,c+32|0,b,c);xb=c+80|0}function EG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=O(0),g=0,h=O(0),i=O(0),j=O(0),k=O(0);e=c+16|0;g=H[c+12>>2];d=H[c+8>>2];h=O(H[b+4>>2]);f=O(H[b>>2]);i=O(H[a+4>>2]);j=O(H[a>>2]);a:{if(I[c+4|0]){if(!H[e>>2]){zb[H[d+12>>2]](d,g,e,L[c+28>>2],L[c+32>>2],H[d+32>>2]);H[c+16>>2]=1;a=H[c+32>>2];H[c+20>>2]=H[c+28>>2];H[c+24>>2]=a}zb[H[d+20>>2]](d,g,e,j,i,f,h,H[d+40>>2]);break a}k=L[c>>2];f=O(O(h*k)+f);if(!H[c+16>>2]){zb[H[d+12>>2]](d,g,e,L[c+28>>2],L[c+32>>2],H[d+32>>2]);H[c+16>>2]=1;a=H[c+32>>2];H[c+20>>2]=H[c+28>>2];H[c+24>>2]=a}zb[H[d+20>>2]](d,g,e,O(O(i*k)+j),i,f,h,H[d+40>>2])}L[c+32>>2]=h;L[c+28>>2]=f;return 0}function rr(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=2147483647;a:{if(!c){break a}d=c>>31;h=(d^c)-d|0;b:{d=b>>31;d=(d^b)-d|0;e=a>>31;e=(e^a)-e|0;if(d+e>>>0<=131071){d=N(d,e);break b}f=d>>>16|0;i=e&65535;d=d&65535;j=e>>>16|0;k=N(f,i)+N(d,j)|0;e=k<<16;d=e+N(d,i)|0;e=(N(f,j)+(k>>>16|0)|0)+(e>>>0>d>>>0)|0;if(!e){break b}if(e>>>0>=h>>>0){break a}f=Q(e);i=32-f|0;e=d>>>i|e<>>0)/(h>>>0)|0;e=e-N(g,h)|0;d=d<>>31;e=f-(h>>>0>f>>>0?0:h)|0;g=g<<1|h>>>0<=f>>>0;d=d<<1;i=i-1|0;if(i){continue}break}break a}g=(d>>>0)/(h>>>0)|0}a=a>>31|1;a=(b|0)<0?0-a|0:a;return(((c|0)<0?0-a|0:a)|0)<0?0-g|0:g}function yr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=c+4|0;a:{b:{f=H[a+4>>2];c:{if(!f){d=e>>>0>1e3?e:1e3;H[a+8>>2]=d;d=Tb(d);H[a+16>>2]=0;H[a+4>>2]=d;break c}d=H[a+8>>2];e=e+H[a+16>>2]|0;if(d>>>0>=e>>>0){break b}while(1){d=d<<1;if(e>>>0>d>>>0){continue}break}H[a+8>>2]=d;d=tc(f,d);if(d){H[a+4>>2]=d;d=d+H[a+16>>2]|0;break c}d=Tb(H[a+8>>2]);e=H[a+4>>2];d=Ob(d,e,H[a+16>>2]);Kb(e);H[a+4>>2]=d;d=d+H[a+16>>2]|0}H[a+12>>2]=d;break a}d=H[a+12>>2]}F[d|0]=c;F[d+1|0]=c>>>8;F[d+2|0]=c>>>16;F[d+3|0]=c>>>24;d=H[a+12>>2]+4|0;H[a+12>>2]=d;H[a+16>>2]=H[a+16>>2]+4;Ob(d,b,c);H[a+12>>2]=H[a+12>>2]+c;H[a+16>>2]=H[a+16>>2]+c}function Ju(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{f=H[a+32>>2];if(f>>>0>b>>>0){i=f-1|0;g=f<<1;j=g+2|0;k=H[a+16>>2]+14|0;while(1){c=(b<<1)+k|0;e=I[c|0]<<8|I[c+1|0];H[a+44>>2]=e;c=c+j|0;h=I[c|0]<<8|I[c+1|0];H[a+40>>2]=h;c=c+g|0;d=I[c|0]|I[c+1|0]<<8;H[a+48>>2]=(d<<8|d>>>8)<<16>>16;d=c+g|0;c=I[d|0]<<8|I[d+1|0];c:{if((h|0)!=65535|b>>>0>>0|(e|0)!=65535){break c}if(!c){break b}e=H[a>>2];if((c+d|0)+2>>>0<=H[e+508>>2]+H[e+512>>2]>>>0){break c}H[a+48>>2]=1;break b}if((c|0)!=65535){if(!c){break b}c=c+d|0;break a}b=b+1|0;if((f|0)!=(b|0)){continue}break}}return-1}c=0}H[a+36>>2]=b;H[a+52>>2]=c;return 0}function IH(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=H[H[a+40>>2]>>2];if(e){b=H[a>>2];h=H[b+100>>2];f=H[b+712>>2];a=H[f+3080>>2];b=Vd(H[H[b+96>>2]+4>>2],11010);a:{if(!b|!a){break a}a=H[a>>2];if(!a){break a}c=zb[a|0](b)|0;if(!c){break a}zb[H[c+8>>2]](H[e>>2]);a=H[f+2024>>2];if(!a){break a}f=a-1|0;g=e+4|0;b=a&3;if(b){while(1){a=a-1|0;zb[H[c+8>>2]](H[g+(a<<2)>>2]);d=d+1|0;if((d|0)!=(b|0)){continue}break}}if(f>>>0<3){break a}while(1){d=g+(a<<2)|0;zb[H[c+8>>2]](H[d-4>>2]);zb[H[c+8>>2]](H[d-8>>2]);zb[H[c+8>>2]](H[d-12>>2]);a=a-4|0;zb[H[c+8>>2]](H[g+(a<<2)>>2]);if(a){continue}break}}if(e){zb[H[h+8>>2]](h,e)}}}function JK(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;h=3;g=b+2|0;a:{if(g>>>0>c>>>0){break a}i=c;c=I[b+1|0]|I[b|0]<<8;if(i>>>0<(c<<2)+g>>>0){break a}b=H[a+12>>2];i=I[b+14|0];j=J[b+12>>1];k=J[b+10>>1];l=I[b+8|0];m=J[b+6>>1];n=J[b+4>>1];b:{if(!c){h=0;break b}f=f+1|0;b=0;while(1){h=yu(a,I[g+1|0]|I[g|0]<<8,F[g+2|0]+d|0,F[g+3|0]+e|0,f,0);if(!h){g=g+4|0;b=b+1|0;if((c|0)!=(b|0)){continue}}break}b=H[a+12>>2]}G[b+14>>1]=i;G[b+8>>1]=l;G[b+12>>1]=j<<24>>24;G[b+10>>1]=k<<24>>24;G[b+6>>1]=m<<24>>24;G[b+4>>1]=n<<24>>24;a=H[a+8>>2];G[b+2>>1]=I[a+4|0];G[b>>1]=I[a|0]}return h|0}function Yd(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=H[a+16>>2];e=H[a>>2];g=H[a+4>>2];h=H[a+32>>2];i=H[a+28>>2];while(1){e=e-g|0;H[a>>2]=e;b=!!d;d=d-b|0;H[a+16>>2]=d;c=b+H[a+12>>2]|0;H[a+12>>2]=c;b=H[a+8>>2]+N(b,-20)|0;H[a+8>>2]=b;a:{if(!c){break a}b:{switch(I[b+18|0]-6|0){case 0:if(!(I[b+16|0]&32)){break a}if(!(J[b+12>>1]&16)){continue}break a;case 8:break b;default:break a}}j=H[H[i>>2]+68>>2];b=e;while(1){b=b+1|0;if(j>>>0<=b>>>0){break a}c=H[h>>2]+N(b,20)|0;c:{if(I[c+18|0]!=6){f=J[c+16>>1];break c}f=J[c+16>>1];if(!(f&32)){break c}if(!(J[c+12>>1]&16)){continue}}break}if(1<>2];g=H[f+64>>2];e=H[f+68>>2];a:{if(e>>>0>=c>>>0){break a}c=c-e|0;d=b>>>c|g;if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}e=H[a+604>>2];H[a+604>>2]=e+1;F[e|0]=d;d=H[a+608>>2]+1|0;H[a+608>>2]=d;g=0;e=8;if(c>>>0<9){break a}while(1){c=c-8|0;e=b>>>c|0;if(H[a+600>>2]<=(d|0)){Uc(a)}d=H[a+604>>2];H[a+604>>2]=d+1;F[d|0]=e;d=H[a+608>>2]+1|0;H[a+608>>2]=d;e=8;if(c>>>0>8){continue}break}}d=H[(c<<2)+294720>>2]&b;b=e-c|0;d=d<>2]>=H[a+600>>2]){Uc(a)}b=H[a+604>>2];H[a+604>>2]=b+1;F[b|0]=d;H[a+608>>2]=H[a+608>>2]+1;d=0;b=8}H[f+68>>2]=b;H[f+64>>2]=d}function jk(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;i=xb-16|0;xb=i;if((b^-1)+1073741807>>>0>=c>>>0){k=I[a+11|0]>>>7|0?H[a>>2]:a;a:{if(b>>>0<536870887){H[i+8>>2]=b<<1;H[i+12>>2]=b+c;c=xb-16|0;xb=c;xb=c+16|0;c=i+8|0;j=i+12|0;c=H[(K[j>>2]>2]?c:j)>>2];if(c>>>0>=2){j=c+4&-4;c=j-1|0;c=(c|0)==2?j:c}else{c=1}break a}c=1073741806}j=c+1|0;c=Vv(j);if(e){vf(c,k,e)}if(g){vf(c+(e<<2)|0,h,g)}l=e+f|0;h=d-l|0;if((d|0)!=(l|0)){d=e<<2;vf((d+c|0)+(g<<2)|0,(d+k|0)+(f<<2)|0,h)}if((b|0)!=1){Zv(k)}H[a>>2]=c;H[a+8>>2]=j|-2147483648;b=a;a=h+(e+g|0)|0;H[b+4>>2]=a;H[i+4>>2]=0;H[c+(a<<2)>>2]=H[i+4>>2];xb=i+16|0;return}qd(a);X()}function WL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=H[a+16>>2];a=I[c+12|0]|I[c+13|0]<<8|(I[c+14|0]<<16|I[c+15|0]<<24);a=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);if(a){g=c+20|0;while(1){e=a+f>>>1|0;c=N(e,12)+g|0;d=c-4|0;d=I[d|0]|I[d+1|0]<<8|(I[d+2|0]<<16|I[d+3|0]<<24);b:{if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0>b>>>0){a=e;break b}d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);if((d<<24|d<<8&16711680|(d>>>8&65280|d>>>24))>>>0>=b>>>0){break a}f=e+1|0}if(a>>>0>f>>>0){continue}break}}return 0}a=I[c+4|0]|I[c+5|0]<<8|(I[c+6|0]<<16|I[c+7|0]<<24);return a<<24|a<<8&16711680|(a>>>8&65280|a>>>24)}function Mea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((e|0)<=0){break a}i=H[a+112>>2];if(!i){break a}g=H[a+332>>2];a=H[a+476>>2];k=H[a+20>>2];l=H[a+16>>2];m=H[a+12>>2];n=H[a+8>>2];while(1){o=c+1|0;p=e-1|0;a=c<<2;q=H[a+H[b+8>>2]>>2];r=H[a+H[b+4>>2]>>2];s=H[a+H[b>>2]>>2];c=H[d>>2];a=0;while(1){f=I[a+r|0];h=I[a+s|0];j=I[a+q|0]<<2;F[c|0]=I[(h+H[j+n>>2]|0)+g|0];f=f<<2;F[c+1|0]=I[((H[l+j>>2]+H[f+k>>2]>>16)+h|0)+g|0];F[c+2|0]=I[(H[f+m>>2]+h|0)+g|0];c=c+3|0;a=a+1|0;if((i|0)!=(a|0)){continue}break}d=d+4|0;a=(e|0)>1;e=p;c=o;if(a){continue}break}}}function vl(a){var b=0,c=0,d=0,e=0;H[197455]=0;ia(604,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){a:{H[a+56>>2]=-57005;b=H[a- -64>>2];if(b){H[197455]=0;ba(605,b+24|0,b|0);c=H[197455];H[197455]=0;if((c|0)==1){break a}Vc();Kb(b)}b=H[a+88>>2];if(b){Kb(b);H[a+88>>2]=0}H[a+72>>2]=0;H[a+76>>2]=0;H[a+48>>2]=0;Kb(H[a+52>>2]);H[a+52>>2]=0;H[a+44>>2]=0;H[a+48>>2]=0;H[a+24>>2]=0;b=H[a+36>>2];c=H[a+32>>2];if(c){e=(c<<2)+b|0;while(1){Kb(H[(c?b:163632)>>2]);d=!!c;c=c-d|0;b=(d<<2)+b|0;if((e|0)!=(b|0)){continue}break}b=H[a+36>>2]}H[a+32>>2]=0;Kb(b);H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;return}}ha(0)|0;_()|0;Zb();X()}function eka(a){a=a|0;a=a+24|0;Pc(a,0,754);lc(a,1819239276,1,1);lc(a,1667460464,1,1);Pc(a,0,755);lc(a,1853188980,13,1);Pc(a,0,0);lc(a,1634429038,13,1);Pc(a,0,0);lc(a,1919969382,12,1);Pc(a,0,0);lc(a,1919644262,13,1);Pc(a,0,0);lc(a,1886545254,12,1);Pc(a,0,0);lc(a,1651275622,12,1);Pc(a,0,0);lc(a,1633842790,12,1);Pc(a,0,0);lc(a,1751215206,12,1);Pc(a,0,0);lc(a,1886614630,12,1);Pc(a,0,0);lc(a,1986098293,13,1);Pc(a,0,0);lc(a,1667916660,13,1);Pc(a,0,0);Pc(a,0,756);lc(a,1768843636,12,1);lc(a,1886545267,13,1);lc(a,1633842803,13,1);lc(a,1651275635,13,1);lc(a,1886614643,13,1);lc(a,1751215214,13,1);Pc(a,0,757)}function Ef(a,b){var c=0,d=0,e=0;a:{d=I[b|0];if((d|0)!=255){if((d|0)!=30){break a}return En(a,b,0,0)>>16}return((I[b+3|0]|(I[b+2|0]<<8|I[b+1|0]<<16))<<8)+32768>>16}e=b+1|0;b:{c:{switch(d-28|0){case 0:c=0;if(K[a+8>>2]<=b+2>>>0){break b}return(I[b+2|0]|I[e|0]<<8)<<16>>16;case 1:c=0;if(K[a+8>>2]<=b+4>>>0){break b}a=I[b+1|0]|I[b+2|0]<<8|(I[b+3|0]<<16|I[b+4|0]<<24);return a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);default:break c}}if(d>>>0<=246){return d-139|0}a=H[a+8>>2];if(d>>>0<=250){c=0;if(a>>>0<=e>>>0){break b}return(I[e|0]|d<<8)-63124|0}c=0;if(a>>>0<=e>>>0){break b}c=64148-(I[e|0]|d<<8)|0}return c}function fda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{if((e|0)<=0){break a}k=H[a+28>>2];if(!k){break a}g=H[H[a+408>>2]+8>>2];while(1){l=e-1|0;a=d<<2;m=H[a+H[c+8>>2]>>2];n=H[a+H[c+4>>2]>>2];o=H[a+H[c>>2]>>2];a=H[b>>2];f=0;while(1){h=(I[a+2|0]<<2)+g|0;i=(I[a+1|0]<<2)+g|0;j=(I[a|0]<<2)+g|0;F[f+o|0]=H[h+2048>>2]+(H[i+1024>>2]+H[j>>2]|0)>>>16;F[f+n|0]=H[h+5120>>2]+(H[i+4096>>2]+H[j+3072>>2]|0)>>>16;F[f+m|0]=H[h+7168>>2]+(H[i+6144>>2]+H[j+5120>>2]|0)>>>16;a=a+3|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=l;if(a){continue}break}}}function Pz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=H[a+8>>2];c=H[a+4>>2];if(f>>>0>c+3>>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b>>2]=d;if(c+3>>>0>>0){e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+4>>2]=e;e=0;a:{if(c+1>>>0>=f>>>0){d=0;break a}d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+8>>1]=d;if(c+1>>>0>>0){e=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+10>>1]=e;e=0;b:{if(c+1>>>0>=f>>>0){d=0;break b}d=I[c|0]|I[c+1|0]<<8;c=c+2|0;H[a+4>>2]=c}G[b+12>>1]=d;if(c+1>>>0>>0){e=I[c|0]|I[c+1|0]<<8;H[a+4>>2]=c+2}G[b+14>>1]=e;return a|0}function Iea(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;var h=0,i=0,j=0,k=0;d=H[a+472>>2];i=H[d+92>>2];h=H[a+316>>2];if((i|0)>=(h|0)){if(H[a+36>>2]>0){h=H[a+216>>2];i=0;while(1){k=i<<2;j=k+d|0;zb[H[j+52>>2]](a,h,H[b+k>>2]+(N(H[j+100>>2],H[c>>2])<<2)|0,j+12|0);h=h+88|0;i=i+1|0;if((i|0)>2]){continue}break}h=H[a+316>>2]}H[d+92>>2]=0;i=0}b=h-i|0;h=H[d+96>>2];b=b>>>0>>0?b:h;h=g;g=H[f>>2];h=h-g|0;b=b>>>0>>0?b:h;zb[H[H[a+476>>2]+4>>2]](a,d+12|0,i,(g<<2)+e|0,b);H[f>>2]=b+H[f>>2];H[d+96>>2]=H[d+96>>2]-b;b=b+H[d+92>>2]|0;H[d+92>>2]=b;if((b|0)>=H[a+316>>2]){H[c>>2]=H[c>>2]+1}}function fba(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;g=xb-16|0;xb=g;a:{if(!a){break a}d=H[a+92>>2];if(!d|H[d+4>>2]!=1970170211){break a}d=H[a+40>>2];if(!d){break a}f=H[a+36>>2];if((f|0)<=0){break a}i=(f<<2)+d|0;while(1){b:{f=H[d>>2];c:{if(J[f+8>>1]|J[f+10>>1]!=5){break c}e=H[f>>2];if(!e){break c}e=H[e+96>>2];h=H[H[e>>2]+32>>2];if(!h){break c}e=zb[h|0](e,9712)|0;if(!e){break c}if(zb[H[e>>2]](f,g+8|0)|0){break c}if(H[g+12>>2]==14){break b}}d=d+4|0;if(i>>>0>d>>>0){continue}break a}break}d=H[d>>2];if(!d){break a}j=zb[H[H[d+12>>2]+20>>2]](d,H[a+92>>2],b,c)|0}xb=g+16|0;return j|0}function xK(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{c:{a=H[H[a+156>>2]>>2];b=H[a+4>>2];if(!(!b|H[a+40>>2])){d=b<<1;if((d|0)<0){c=6;break b}if(d){c=10;if(d>>>0>268435455){break b}c=H[a>>2];b=b<<4;c=zb[H[c+4>>2]](c,b)|0;if(!c){break c}Nb(c,0,b)}F[a+16|0]=1;H[a+40>>2]=c;d=(H[a+4>>2]<<3)+c|0;H[a+44>>2]=d;b=H[a+24>>2];if(b){b=b+(G[a+22>>1]<<3)|0}else{b=0}H[a+60>>2]=b;e=a- -64|0;b=H[a+28>>2];if(b){b=b+G[a+22>>1]|0}else{b=0}H[e>>2]=b;b=H[a+32>>2];if(b){b=b+(G[a+20>>1]<<1)|0}else{b=0}H[a+68>>2]=b;b=G[a+22>>1]<<3;H[a+80>>2]=b+d;H[a+76>>2]=b+c}c=0;break a}H[a+40>>2]=c;c=64;break a}H[a+40>>2]=0}return c|0}function SA(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=xb-48|0;xb=c;a:{b:{c:{d:{e:{d=H[a+584>>2];b=H[d>>2];switch(b-1|0){case 0:break a;case 2:break d;case 1:break e;default:break c}}b=J[a+84>>1];e=b-8|0;if(1<>>0<=24:0){break b}a=H[a+628>>2];H[c+16>>2]=b;Pb(a,395908,275156,c+16|0);b=0;break a}b=J[a+86>>1];if((b|0)==3){break b}a=H[a+628>>2];H[c+32>>2]=b;Pb(a,395908,275662,c+32|0);b=0;break a}a=H[a+628>>2];H[c>>2]=b;Pb(a,395908,276464,c);b=0;break a}b=1;H[d+4>>2]=J[a+138>>1]==1?J[a+98>>1]:1;f:{if(I[a+13|0]&4){f=d,g=qg(a),H[f+8>>2]=g;break f}f=d,g=Ve(a),H[f+8>>2]=g}}xb=c+48|0;return b}function tP(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=H[a+28>>2];a=H[f+20>>2];a:{if(!a){break a}b:{c:{b=J[a>>1];d=b<<16>>16;if((d|0)>=2){e=G[(H[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break c}if(d){break c}b=J[a+2>>1];break b}b=G[a+2>>1];if((e|0)!=(b|0)){break b}G[a>>1]=d-1;break a}d:{if(b<<16>>16<2){break d}c=H[a+4>>2];g=c+(e<<3)|0;h=b&65535;c=(c+(h<<3)|0)-8|0;if(H[g>>2]!=H[c>>2]|H[g+4>>2]!=H[c+4>>2]|I[(H[a+8>>2]+h|0)-1|0]!=1){break d}b=b-1|0;G[a+2>>1]=b}if((d|0)<=0){break a}c=e;e=(b<<16>>16)-1|0;if((c|0)==(e|0)){G[a+2>>1]=b-1;G[a>>1]=d-1;break a}G[(H[a+12>>2]+(d<<1)|0)-2>>1]=e}F[f+44|0]=0}function qI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-32|0;xb=c;a:{if((zb[H[b+52>>2]](b,6,c,0)|0)<=5){H[b+12>>2]=3;break a}e=H[c+12>>2];if(!e){H[b+12>>2]=3;break a}d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){f=c,g=dc(H[c>>2],d),H[f>>2]=g;f=c,g=dc(H[c+4>>2],d),H[f+4>>2]=g;f=c,g=dc(H[c+8>>2],d),H[f+8>>2]=g;f=c,g=dc(H[c+16>>2],d),H[f+16>>2]=g;f=c,g=dc(H[c+20>>2],d),H[f+20>>2]=g;e=H[c+12>>2]<0?-65536:65536;H[c+12>>2]=e}H[a+440>>2]=H[c>>2];H[a+448>>2]=H[c+4>>2];d=H[c+8>>2];H[a+452>>2]=e;H[a+444>>2]=d;if(!sn(a+440|0)){H[b+12>>2]=3;break a}H[a+456>>2]=G[c+18>>1];H[a+460>>2]=G[c+22>>1]}xb=c+32|0}function PT(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}a:{if(c>>>0>>0){d=xb-16|0;xb=d;e=b-c|0;if(e){c=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:10;if(I[a+11|0]>>>7|0){b=H[a+4>>2]}else{b=I[a+11|0]}f=b+e|0;if(c-b>>>0>>0){Ko(a,c,f-c|0,b,b)}c=b;if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}Gv(c+b|0,e,0);b:{if(I[a+11|0]>>>7|0){H[a+4>>2]=f;break b}F[a+11|0]=f}F[d+15|0]=0;F[b+f|0]=I[d+15|0]}break a}d=xb-16|0;xb=d;c:{if(I[a+11|0]>>>7|0){c=H[a>>2];F[d+15|0]=0;F[b+c|0]=I[d+15|0];H[a+4>>2]=b;break c}F[d+14|0]=0;F[a+b|0]=I[d+14|0];F[a+11|0]=b}}xb=d+16|0}function ui(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{b:{d=ad(b);if(d>>>0<1073741808){c:{d:{if(d>>>0>=2){f=d+4&-4;e=Qb(f<<2);H[a+8>>2]=f|-2147483648;H[a>>2]=e;H[a+4>>2]=d;break d}F[a+11|0]=d;e=a;if(!d){break c}}H[197455]=0;Mb(e,b,d);b=H[197455];H[197455]=0;if((b|0)==1){break b}}H[(d<<2)+e>>2]=0;b=a+12|0;if(F[c+11|0]>=0){e=H[c+4>>2];H[b>>2]=H[c>>2];H[b+4>>2]=e;H[b+8>>2]=H[c+8>>2];break a}e=H[c+4>>2];c=H[c>>2];H[197455]=0;ga(1647,b|0,c|0,e|0);b=H[197455];H[197455]=0;if((b|0)!=1){break a}b=$()|0;_()|0;if(F[a+11|0]<0){Kb(H[a>>2])}ea(b|0);X()}qd(a);X()}ha(0)|0;_()|0;Zb();X()}return a|0}function mi(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;i=1;j=d&2147483647;l=j;k=(j|0)==2147418112;a:{if(k&!c?a|b:k&(c|0)!=0|j>>>0>2147418112){break a}j=h&2147483647;k=(j|0)==2147418112;if(k&!g?e|f:k&(g|0)!=0|j>>>0>2147418112){break a}if(!(a|e|(c|g)|(b|f|(j|l)))){return 0}i=d&h;if((i|0)>0|(i|0)>=0){i=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>>0|b>>>0>>0:c>>>0>>0&(d|0)<=(h|0)|(d|0)<(h|0)){break a}return(a^e|c^g|(b^f|d^h))!=0}i=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>e>>>0|b>>>0>f>>>0:c>>>0>g>>>0&(d|0)>=(h|0)|(d|0)>(h|0)){break a}i=(a^e|c^g|(b^f|d^h))!=0}return i}function IG(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;a=xb-128|0;xb=a;b=H[b+24>>2];a:{b:{c:{d:{if((d|0)<0){H[197455]=0;f=da(645,b|0,c|0)|0;g=H[197455];H[197455]=0;if((g|0)!=1){break d}break c}d=(d|0)<127?d:127;f=Ld(a,c,d);F[a+d|0]=0;H[197455]=0;f=da(645,b|0,f|0)|0;g=H[197455];H[197455]=0;if((g|0)==1){break c}}H[e>>2]=f;if(!f){H[197455]=0;f=la(644,b|0,0,a|0,128)|0;b=H[197455];H[197455]=0;if((b|0)==1){break c}e:{if(!(f|(d|0)>=0)){if(fc(a,c)){break e}break b}if(!gc(a,c,d)){break b}}f=H[e>>2]}c=(f|0)!=0;break a}a=$()|0;_()|0;Vc();ea(a|0);X()}c=1}Vc();xb=a+128|0;return c|0}function Hv(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;i=xb-16|0;xb=i;if((b^-1)-17>>>0>=c>>>0){if(I[a+11|0]>>>7|0){k=H[a>>2]}else{k=a}a:{if(b>>>0<2147483623){H[i+8>>2]=b<<1;H[i+12>>2]=b+c;c=xb-16|0;xb=c;xb=c+16|0;c=i+8|0;j=i+12|0;c=H[(K[j>>2]>2]?c:j)>>2];if(c>>>0>=11){j=c+16&-16;c=j-1|0;c=(c|0)==11?j:c}else{c=10}break a}c=-18}j=c+1|0;c=Qb(j);if(e){Jg(c,k,e)}if(g){Jg(c+e|0,h,g)}l=e+f|0;h=d-l|0;if((d|0)!=(l|0)){Jg((c+e|0)+g|0,(e+k|0)+f|0,h)}b=b+1|0;if((b|0)!=11){bm(k)}H[a>>2]=c;H[a+8>>2]=j|-2147483648;b=a;a=h+(e+g|0)|0;H[b+4>>2]=a;F[i+7|0]=0;F[a+c|0]=I[i+7|0];xb=i+16|0;return}qd(a);X()}function Hg(a){var b=0,c=0;a:{b=H[a+4>>2];b:{if(!H[(H[H[b>>2]-12>>2]+b|0)+24>>2]){break b}b=H[a+4>>2];if(H[(H[H[b>>2]-12>>2]+b|0)+16>>2]){break b}b=H[a+4>>2];if(!(H[(H[H[b>>2]-12>>2]+b|0)+4>>2]&8192)){break b}if(wx()){break b}b=H[a+4>>2];b=H[(H[H[b>>2]-12>>2]+b|0)+24>>2];H[197455]=0;b=aa(3338,b|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){if((b|0)!=-1){break b}a=H[a+4>>2];b=H[H[a>>2]-12>>2];H[197455]=0;ba(3339,a+b|0,1);a=H[197455];H[197455]=0;if((a|0)!=1){break b}}a=ha(0)|0;_()|0;sa(a|0)|0;H[197455]=0;na(1711);a=H[197455];H[197455]=0;if((a|0)==1){break a}}return}ha(0)|0;_()|0;Zb();X()}function Kja(a){a=a|0;a=a+24|0;Pc(a,0,765);lc(a,1819239276,1,1);lc(a,1667460464,1,1);lc(a,1853188980,1,1);lc(a,1634429038,9,1);Pc(a,0,766);lc(a,1919969382,8,1);Pc(a,0,767);Pc(a,0,766);lc(a,1886545254,9,1);Pc(a,0,768);lc(a,1919644262,9,1);lc(a,1633842790,9,1);lc(a,1651275622,9,1);lc(a,1751215206,9,1);lc(a,1886614630,9,1);lc(a,1986098293,9,1);lc(a,1667916660,9,1);Pc(a,0,769);Pc(a,0,770);lc(a,1769172844,0,1);lc(a,1768843636,0,1);lc(a,1835361385,0,1);lc(a,1718185569,0,1);Pc(a,0,0);lc(a,1633842803,9,1);lc(a,1651275635,9,1);lc(a,1751215214,9,1);lc(a,1886545267,9,1);lc(a,1886614643,9,1)}function fA(a){var b=0,c=0,d=0;b=xb-16|0;xb=b;d=bc(a,0);a:{if(d){break a}d=wd(a,b+8|0,4);if(d){break a}d=3;if(I[b+8|0]!=31|I[b+9|0]!=139|(I[b+10|0]!=8|I[b+11|0]>31)){break a}d=ud(a,6);H[b+12>>2]=d;c=I[b+11|0];if(c&4){c=IA(a,b+12|0);d=H[b+12>>2];if(d){break a}d=ud(a,c);H[b+12>>2]=d;if(d){break a}d=0;c=I[b+11|0]}if(c&8){while(1){c=Gd(a,b+12|0)?0:3;d=H[b+12>>2];c=d?2:c;if(!c){continue}break}if((c|0)!=3){break a}c=I[b+11|0]}if(c&16){while(1){c=Gd(a,b+12|0)?0:5;d=H[b+12>>2];c=d?2:c;if(!c){continue}break}if((c|0)!=5){break a}c=I[b+11|0]}if(!(c&2)){break a}d=ud(a,2)}xb=b+16|0;return d}function iB(a,b,c){var d=0,e=0,f=0;d=H[a+584>>2];while(1){a:{f=wj(b,e,c);vj(a,f,293072);e=e+f|0;if(e>>>0>=c>>>0){break a}f=uj(b,e,c);vj(a,f,293728);e=e+f|0;if(e>>>0>>0){continue}}break}b=H[d+4>>2];b:{if(!(b&12)){break b}if(H[d+68>>2]!=8){if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}b=H[d+64>>2];c=H[a+604>>2];H[a+604>>2]=c+1;F[c|0]=b;H[a+608>>2]=H[a+608>>2]+1;H[d+64>>2]=0;H[d+68>>2]=8;b=H[d+4>>2]}if(!(b&8)){break b}c=H[a+604>>2];if(!(c&1)){break b}if(H[a+608>>2]>=H[a+600>>2]){Uc(a);c=H[a+604>>2]}b=H[d+64>>2];H[a+604>>2]=c+1;F[c|0]=b;H[a+608>>2]=H[a+608>>2]+1;H[d+64>>2]=0;H[d+68>>2]=8}}function Yu(a,b){var c=0,d=0,e=0;c=H[a+32>>2];d=H[a+28>>2];if(d){while(1){e=H[c+8>>2];if(e){zb[H[b+8>>2]](b,e)}H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;c=c+16|0;d=d-1|0;if(d){continue}break}c=H[a+32>>2]}if(c){zb[H[b+8>>2]](b,c)}H[a+24>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;c=H[a+20>>2];d=H[a+16>>2];if(d){while(1){e=H[c+8>>2];if(e){zb[H[b+8>>2]](b,e)}H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;c=c+16|0;d=d-1|0;if(d){continue}break}c=H[a+20>>2]}if(c){zb[H[b+8>>2]](b,c)}H[a+12>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;c=H[a+8>>2];if(c){zb[H[b+8>>2]](b,c)}H[a>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}function XN(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;if($d(a,H[b+8>>2],f)){Co(b,c,d,e);return}h=I[b+53|0];g=H[a+12>>2];F[b+53|0]=0;i=I[b+52|0];F[b+52|0]=0;j=a+16|0;Bo(j,b,c,d,e,f);k=I[b+53|0];h=h|k;l=I[b+52|0];i=i|l;a:{if((g|0)<2){break a}j=j+(g<<3)|0;g=a+24|0;while(1){if(I[b+54|0]){break a}b:{if(l){if(H[b+24>>2]==1){break a}if(I[a+8|0]&2){break b}break a}if(!k){break b}if(!(F[a+8|0]&1)){break a}}G[b+52>>1]=0;Bo(g,b,c,d,e,f);k=I[b+53|0];h=k|h;l=I[b+52|0];i=l|i;g=g+8|0;if(j>>>0>g>>>0){continue}break}}F[b+53|0]=(h&255)!=0;F[b+52|0]=(i&255)!=0}function JM(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;b=H[a+4>>2];g=b+c|0;b=0-b|0;f=g-1&b;b=b&d;if((J[e+12>>1]&7)!=2){b=H[a+20>>2]<(d-g|0)?b:(c|0)==(f|0)?b:(b|0)==(d|0)?b:f}c=H[a>>2];b=b>>c;a:{if((b|0)<0){break a}c=f>>c;d=J[a+52>>1];if((c|0)>=(d|0)){break a}d=b>>>0>>0?b:d-1|0;b=-128>>(d&7);g=(c|0)>0?c:0;c=g<<13>>16;e=H[a+56>>2];f=H[a+140>>2];a=c+(e+f|0)|0;g=255>>>(g&7)|0;h=d<<13>>16;d=h-c|0;b:{if((d|0)>0){F[a|0]=g|I[a|0];if((d|0)!=1){a=(d|0)<2?d:2;Nb((e+(c+f|0)|0)+1|0,255,(h-(a+c|0)|0)+1|0);a=(e+((f+h|0)-a|0)|0)+1|0}a=a+1|0;break b}b=b&g}F[a|0]=I[a|0]|b}}function eK(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=G[a+302>>1];if(f){a:{b:{c:{switch(H[H[H[a>>2]+96>>2]+64>>2]-35|0){case 5:if(I[a+615|0]){break a}g=b+16|0;e=H[b+16>>2]+(c<<3)|0;break b;case 0:break c;default:break a}}g=b+16|0;e=H[b+16>>2]+(c<<3)|0}e=H[e>>2];f=ic(d,f,H[a+568>>2]);H[H[g>>2]+(c<<3)>>2]=f+e}e=H[b+24>>2]+c|0;F[e|0]=I[e|0]|8}e=G[a+304>>1];if(e){d:{if(!(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40))){if(I[a+617|0]){break d}}g=c<<3;f=H[(g+H[b+16>>2]|0)+4>>2];a=ic(d,e,H[a+568>>2]);H[(g+H[b+16>>2]|0)+4>>2]=a+f}a=H[b+24>>2]+c|0;F[a|0]=I[a|0]|16}}function wn(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=xb-16|0;xb=h;a:{if((e|0)<=0){break a}i=e&3;if(e-1>>>0>=3){m=e&-4;while(1){f=h+8|0;F[f+g|0]=c;F[(g|1)+f|0]=(d&255)<<24|c>>>8;F[(g|2)+f|0]=(d&65535)<<16|c>>>16;j=d>>>24|0;n=(g|3)+f|0;f=(d&16777215)<<8|c>>>24;F[n|0]=f;g=g+4|0;c=d;d=0;k=k+4|0;if((m|0)!=(k|0)){continue}break}}if(i){while(1){j=d;f=c;F[(h+8|0)+g|0]=f;g=g+1|0;c=(d&255)<<24|f>>>8;d=d>>>8|0;l=l+1|0;if((l|0)!=(i|0)){continue}break}}if(!j&f>>>0<256|(e|0)<=0){break a}Nb(h+8|0,255,e)}a=zb[H[a+8>>2]](H[a+28>>2],b,h+8|0,e)|0;xb=h+16|0;return(a|0)!=(e|0)?-1:0}function lF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;f=H[b+4>>2];a:{if(f>>>0>a>>>0){break a}c=H[b+8>>2];if(c>>>0>>0|c-a>>>0<2){break a}g=H[b+12>>2];h=g-2|0;H[b+12>>2]=h;if((h|0)<=0){break a}d=1;if((I[a|0]|I[a+1|0]<<8)!=256){break a}b:{d=a+2|0;if(d>>>0>>0|c>>>0>>0|c-d>>>0<2){break b}c=g-4|0;H[b+12>>2]=c;if((c|0)<=0){break b}c=I[d|0]|I[d+1|0]<<8;c:{if(!c){break c}if(Ud(((c<<8|c>>>8)&65535)+a|0,b)){break c}c=H[b+28>>2];if(c>>>0>31){break b}H[b+28>>2]=c+1;if(!I[b+24|0]){break b}F[d|0]=0;F[d+1|0]=0}H[e+12>>2]=a;d=At(a+4|0,b,e+12|0);break a}d=0}xb=e+16|0;return d}function $M(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=xb-128|0;xb=f;if((c|0)>0){k=(N((b|0)!=0,36)+a|0)+16|0;while(1){h=(c|0)<16?c:16;g=h<<1;b=0;while(1){e=b<<2;i=H[e+d>>2]+i|0;H[e+f>>2]=((i+(i>>31)|0)+32768&-65536)>>16;b=b+1|0;if((g|0)!=(b|0)){continue}break}b=0;while(1){e=b<<2;j=(e|4)+f|0;H[j>>2]=H[j>>2]-H[e+f>>2];b=b+2|0;if((g|0)>(b|0)){continue}break}a:{if(H[a+4>>2]){break a}b=f;g=h;while(1){e=dk(k,H[b>>2],H[b+4>>2],H[a>>2],0);if(e){H[a+4>>2]=e;break a}b=b+8|0;e=(g|0)>1;g=g-1|0;if(e){continue}break}}c=c-h|0;if((c|0)>0){continue}break}}xb=f+128|0}function eL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;e=H[b+28>>2];c=zb[H[a+516>>2]](a,1734439792,b,0)|0;a:{if(c){break a}c=Jc(b,4);H[d+12>>2]=c;if(c){break a}g=a,h=Tc(b),G[g+560>>1]=h;g=a,h=Tc(b),G[g+562>>1]=h;wc(b);if(J[a+560>>1]>=2){G[a+562>>1]=0;c=8;break a}c=e;e=J[a+562>>1];g=a,h=Ub(c,4,0,e,0,d+12|0),H[g+564>>2]=h;c=H[d+12>>2];if(c){break a}c=Jc(b,e<<2);H[d+12>>2]=c;if(c){break a}if(e){c=H[a+564>>2];a=0;while(1){f=c+(a<<2)|0;g=f,h=Tc(b),G[g>>1]=h;g=f,h=Tc(b),G[g+2>>1]=h;a=a+1|0;if((e|0)!=(a|0)){continue}break}}wc(b);c=H[d+12>>2]}xb=d+16|0;return c|0}function I4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=xb-16|0;xb=g;a:{if(!c|!e){break a}f=(H[d>>2]<<3)+28|0;H[g+12>>2]=f;H[g+8>>2]=56;H[a+8>>2]=f+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],g+8|0,4);Lb(H[a+4>>2],g+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d,4);if(!H[d>>2]){break a}b=0;while(1){f=(b<<3)+c|0;Lb(H[a+4>>2],f,4);Lb(H[a+4>>2],f+4|0,4);b=b+1|0;f=H[d>>2];if(b>>>0>>0){continue}break}if(!f){break a}b=0;while(1){Lb(H[a+4>>2],b+e|0,4);b=b+1|0;if(b>>>0>2]){continue}break}}xb=g+16|0}function H4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=xb-16|0;xb=g;a:{if(!c|!e){break a}f=(H[d>>2]<<2)+28|0;H[g+12>>2]=f;H[g+8>>2]=92;H[a+8>>2]=f+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],g+8|0,4);Lb(H[a+4>>2],g+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d,4);if(!H[d>>2]){break a}b=0;while(1){f=(b<<2)+c|0;Lb(H[a+4>>2],f,2);Lb(H[a+4>>2],f+2|0,2);b=b+1|0;f=H[d>>2];if(b>>>0>>0){continue}break}if(!f){break a}b=0;while(1){Lb(H[a+4>>2],b+e|0,4);b=b+1|0;if(b>>>0>2]){continue}break}}xb=g+16|0}function Ae(a,b){a=a|0;b=b|0;var c=0,d=0,e=O(0),f=0;f=H[a+8>>2];c=H[a+4>>2];if(f>>>0<=c+3>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}else{d=0}M[b+8>>3]=d;if(c+3>>>0>=f>>>0){d=0}else{e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+e}M[b+16>>3]=d;if(c+3>>>0>>0){e=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[a+4>>2]=c+4;d=+e}else{d=0}M[b+24>>3]=d;return a|0}function oO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;G[a+64>>1]=256;H[a+8>>2]=d;H[a+4>>2]=b;H[a>>2]=H[b+100>>2];a:{if(!d){break a}b=H[H[d+156>>2]>>2];H[a+12>>2]=b;H[a+20>>2]=b+56;H[a+16>>2]=b+20;Oh(b);H[a+68>>2]=0;H[a+72>>2]=0;if(!c|!e){break a}b=H[H[c+40>>2]>>2];if(!b){break a}H[a+72>>2]=H[b>>2];H[a+68>>2]=H[H[d+156>>2]+36>>2]}H[a+24>>2]=0;H[a+28>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;b=H[7660];H[a+76>>2]=H[7659];H[a+80>>2]=b;b=H[7662];H[a+84>>2]=H[7661];H[a+88>>2]=b;b=H[7664];H[a+92>>2]=H[7663];H[a+96>>2]=b;b=H[7666];H[a+100>>2]=H[7665];H[a+104>>2]=b}function L8(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[a+584>>2];a:{b:{switch(b-512|0){case 1:H[H[c>>2]>>2]=H[d+196>>2];break a;case 2:H[H[c>>2]>>2]=H[d+200>>2];break a;case 18:if(!I[d+206|0]){gB(a)}G[H[c>>2]>>1]=I[d+208|0];G[H[c+4>>2]>>1]=I[d+209|0];break a;case 7:H[H[c>>2]>>2]=I[d+211|0];H[H[c+4>>2]>>2]=d+216;break a;case 8:H[H[c>>2]>>2]=I[d+212|0];H[H[c+4>>2]>>2]=d+228;break a;case 9:H[H[c>>2]>>2]=I[d+213|0];H[H[c+4>>2]>>2]=d+240;break a;case 0:G[H[c>>2]>>1]=I[d+204|0];break a;case 3:G[H[c>>2]>>1]=J[d+300>>1];break a;default:break b}}return zb[H[d+160>>2]](a,b,c)|0}return 1}function Kq(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0;a:{if(!a){break a}j=1;if(!((c|0)>0&(b|d|e|f|g|h|i)>=0)){Xb(a,261144);j=0}if((1e5-c|0)<(b|0)){Xb(a,261283);j=0}if((1e5-e|0)<(d|0)){Xb(a,261464);j=0}if((1e5-g|0)<(f|0)){Xb(a,261671);j=0}if((1e5-i|0)<(h|0)){Xb(a,261912);j=0}c=f-d|0;b=c>>>16|0;f=i-e|0;i=f&65535;k=c&65535;c=N(i,k);g=g-e|0;e=g>>>16|0;h=h-d|0;l=h&65535;g=g&65535;d=N(l,g);f=f>>>16|0;i=N(b,i)+N(k,f)+(c>>>16)|0;k=(i>>>16|0)+N(b,f)|0;b=h>>>16|0;f=N(e,l)+N(g,b)+(d>>>16)|0;if((k|0)!=((f>>>16|0)+N(b,e)|0)|(c&65535|i<<16)!=(d&65535|f<<16)){break a}Xb(a,262318);j=0}return j}function CO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;e=xb-16|0;xb=e;H[e+12>>2]=d;d=I[b+11|0]>>>7|0?H[b+4>>2]:I[b+11|0];if(d>>>0>>0){lj(a);X()}b=I[b+11|0]>>>7|0?H[b>>2]:b;H[e+4>>2]=d-c;g=b+(c<<2)|0;b=xb-16|0;xb=b;xb=b+16|0;d=xb-16|0;xb=d;a:{b=e+4|0;c=e+12|0;c=H[(K[b>>2]>2]?b:c)>>2];if(c>>>0<=1073741807){b:{if(c>>>0<=1){F[a+11|0]=c;b=a;break b}if(c>>>0>=2){f=c+4&-4;b=f-1|0;b=(b|0)==2?f:b}else{b=1}f=b+1|0;b=Vv(f);H[a>>2]=b;H[a+8>>2]=f|-2147483648;H[a+4>>2]=c}vf(b,g,c);H[d+12>>2]=0;H[(c<<2)+b>>2]=H[d+12>>2];xb=d+16|0;break a}qd(a);X()}xb=e+16|0;return a|0}function VF(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;h=H[b+4>>2];a:{if(h>>>0>a>>>0){break a}e=H[b+8>>2];if(e>>>0>>0|e-a>>>0<10){break a}d=H[b+12>>2]-10|0;H[b+12>>2]=d;if((d|0)<=0){break a}c=a+2|0;f=I[a|0]|I[a+1|0]<<8;if(f){if(c>>>0>>0|c>>>0>e>>>0){break a}f=(f<<8|f>>>8)&65535;if(f>>>0>e-c>>>0){break a}d=d-f|0;H[b+12>>2]=d;if((d|0)<=0){break a}}if(c>>>0>>0|c>>>0>e>>>0){break a}if(e-c>>>0<=7){break a}H[b+12>>2]=d-8;if((I[c|0]|I[c+1|0]<<8)!=256|(d|0)<9){break a}if(!co(a+4|0,b,c)){break a}H[g+12>>2]=c;i=bo(a+8|0,b,g+12|0)}xb=g+16|0;return i|0}function yf(a){a=a|0;var b=0,c=0,d=0;H[a+220>>2]=416792;H[a>>2]=416544;b=H[a+216>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+216>>2]=0}H[197455]=0;ia(1798,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){a:{b=H[a+208>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+208>>2]=0}Vp(a,416904);b=417328;H[a+220>>2]=417328;d=a+220|0;b:{if(I[a+248|0]){break b}c=H[a+244>>2];if(!c){break b}Kb(c);H[a+244>>2]=0;b=H[a+220>>2]}H[a+224>>2]=0;H[a+228>>2]=0;F[a+249|0]=0;H[a+232>>2]=0;H[a+236>>2]=0;b=H[b+12>>2];H[197455]=0;ia(b|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}return a|0}}ha(0)|0;_()|0;Zb();X()}function ch(a,b){var c=0,d=0,e=0,f=O(0),g=0,h=O(0),i=0;c=H[a>>2];g=H[a+4>>2];i=H[g+20>>2];f=O(M[b>>3]);d=H[g+16>>2];e=H[d+28>>2];if(!e){e=kc(d);g=H[a+4>>2];d=H[g+16>>2]}f=O(O(f*O(i|0))/O(e>>>0));e=c+16|0;h=O(O(M[b+8>>3])*O(H[g+24>>2]));a=H[d+28>>2];if(!a){a=kc(d)}h=O(h/O(a>>>0));b=H[c+12>>2];a=H[c+8>>2];a:{b:{if(I[c+4|0]){if(!H[e>>2]){break b}break a}f=O(O(h*L[c>>2])+f);if(H[c+16>>2]){break a}}zb[H[a+12>>2]](a,b,e,L[c+28>>2],L[c+32>>2],H[a+32>>2]);H[c+16>>2]=1;d=H[c+32>>2];H[c+20>>2]=H[c+28>>2];H[c+24>>2]=d}zb[H[a+16>>2]](a,b,e,f,h,H[a+36>>2]);L[c+32>>2]=h;L[c+28>>2]=f}function rG(a){var b=0,c=0;b=H[a+208>>2];if(b){while(1){b=H[a+212>>2]+N(b,24)|0;H[b-16>>2]=0;c=b-12|0;Kb(H[c>>2]);H[c>>2]=0;b=b-20|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+208>>2]-1|0;H[a+208>>2]=b;if(b){continue}break}}Kb(H[a+212>>2]);H[a+212>>2]=0;H[a+204>>2]=0;H[a+208>>2]=0;b=H[a+196>>2];if(b){while(1){b=H[a+200>>2]+(b<<5)|0;H[b-24>>2]=0;c=b-20|0;Kb(H[c>>2]);H[c>>2]=0;b=b-28|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+196>>2]-1|0;H[a+196>>2]=b;if(b){continue}break}}Kb(H[a+200>>2]);H[a+200>>2]=0;H[a+192>>2]=0;H[a+196>>2]=0;H[a+96>>2]=0;Kb(H[a+100>>2]);H[a+100>>2]=0;H[a+92>>2]=0;H[a+96>>2]=0}function tka(a){a=a|0;var b=0;b=a+24|0;lc(b,1937007464,1,1);Pc(b,0,746);lc(b,1667460464,1,1);lc(b,1819239276,1,1);Pc(b,0,0);lc(b,1769172844,(H[a+8>>2]==1098015074)<<1,1);Pc(b,0,0);lc(b,1718185569,(H[a+8>>2]==1098015074)<<1,1);Pc(b,0,0);lc(b,1718185522,0,1);Pc(b,0,0);lc(b,1718185523,0,1);Pc(b,0,0);lc(b,1835361385,(H[a+8>>2]==1098015074)<<1,1);Pc(b,0,0);lc(b,1835361330,0,1);Pc(b,0,0);lc(b,1768843636,(H[a+8>>2]==1098015074)<<1,1);Pc(b,0,0);lc(b,1919707495,11,1);if(H[a+8>>2]==1098015074){Pc(b,0,747)}lc(b,1919118452,9,1);lc(b,1667329140,9,1);Pc(b,0,0);lc(b,1836279156,1,1)}function os(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;H[a+44>>2]=b;Vf(H[a>>2],b);c=H[a>>2];b=H[H[c+712>>2]+3080>>2];c=Vd(H[H[c+96>>2]+4>>2],11010);a:{if(!c|!b){break a}b=H[b>>2];if(!b){break a}e=zb[b|0](c)|0;if(!e){break a}f=H[H[a>>2]+712>>2];c=H[f+1440>>2];h=H[H[a+40>>2]>>2];zb[H[e+4>>2]](H[h>>2],H[a+16>>2],H[a+20>>2],0,0);b=H[f+2024>>2];if(!b){break a}while(1){g=H[a+16>>2];b=b-1|0;i=b<<2;d=H[H[(i+f|0)+2028>>2]+68>>2];b:{if((d|0)!=(c|0)){g=ic(g,c,d);d=ic(H[a+20>>2],c,d);break b}d=H[a+20>>2]}zb[H[e+4>>2]](H[(h+i|0)+4>>2],g,d,0,0);if(b){continue}break}}return 0}function Raa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;if(!(!f|!e)){c=J[a+26>>1];a=H[a+64>>2];d=e&3;k=e-1>>>0<3;l=h<<2;while(1){j=0;h=e;if(d){while(1){H[b>>2]=H[H[a+(I[i|0]<<2)>>2]>>2];i=c+i|0;b=b+4|0;h=h-1|0;j=j+1|0;if((j|0)!=(d|0)){continue}break}}f=f-1|0;if(!k){while(1){H[b>>2]=H[H[a+(I[i|0]<<2)>>2]>>2];i=c+i|0;H[b+4>>2]=H[H[a+(I[i|0]<<2)>>2]>>2];i=c+i|0;H[b+8>>2]=H[H[a+(I[i|0]<<2)>>2]>>2];i=c+i|0;H[b+12>>2]=H[H[a+(I[i|0]<<2)>>2]>>2];b=b+16|0;i=c+i|0;h=h-4|0;if(h){continue}break}}i=g+i|0;b=b+l|0;if(f){continue}break}}}function Qz(a,b){var c=0,d=0,e=0,f=0;e=H[a+8>>2];c=H[a+4>>2];if(e>>>0>c+3>>>0){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b>>2]=f;if(c+3>>>0>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+4>>2]=d;d=0;a:{if(c+3>>>0>=e>>>0){f=0;break a}f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+8>>2]=f;if(c+3>>>0>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+12>>2]=d;d=0;if(c+3>>>0>>0){d=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[a+4>>2]=c+4}H[b+16>>2]=d}function Maa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;if(!(!f|!e)){c=H[a+60>>2];a=J[a+26>>1];d=e&3;k=e-1>>>0<3;l=h<<2;while(1){j=0;h=e;if(d){while(1){H[b>>2]=H[H[(I[i|0]<<2)+c>>2]>>2];i=a+i|0;b=b+4|0;h=h-1|0;j=j+1|0;if((j|0)!=(d|0)){continue}break}}f=f-1|0;if(!k){while(1){H[b>>2]=H[H[(I[i|0]<<2)+c>>2]>>2];i=a+i|0;H[b+4>>2]=H[H[(I[i|0]<<2)+c>>2]>>2];i=a+i|0;H[b+8>>2]=H[H[(I[i|0]<<2)+c>>2]>>2];i=a+i|0;H[b+12>>2]=H[H[(I[i|0]<<2)+c>>2]>>2];b=b+16|0;i=a+i|0;h=h-4|0;if(h){continue}break}}i=g+i|0;b=b+l|0;if(f){continue}break}}}function _R(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=xb-32|0;xb=e;H[d>>2]=-1;jh(a,e+16|0);if(H[e+24>>2]==3){i=H[a>>2];g=H[e+16>>2]+1|0;H[a>>2]=g;j=H[a+8>>2];h=H[e+20>>2]-1|0;H[a+8>>2]=h;f=b;a:{if(g>>>0>=h>>>0){break a}if(!b){f=0;while(1){jh(a,e);if(!H[e+8>>2]){break a}f=f+12|0;if(K[a>>2]>2]){continue}break}break a}c=N(c,12)+b|0;while(1){jh(a,e);if(!H[e+8>>2]){break a}if(c>>>0>f>>>0){g=H[e+4>>2];H[f>>2]=H[e>>2];H[f+4>>2]=g;H[f+8>>2]=H[e+8>>2]}f=f+12|0;if(K[a>>2]>2]){continue}break}}H[d>>2]=(f-b|0)/12;H[a+8>>2]=j;H[a>>2]=i}xb=e+32|0}function z9(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;if((c|0)>0){g=H[a+12>>2];while(1){i=c;c=c-1|0;f=G[b>>1];d=0;a:{if((f|0)<=0){break a}d=1023;if(f>>>0>7409){break a}d=f-3314>>2;if(!H[a+4>>2]){break a}e=gma(H[197066],H[197067],1284865837,1481765933)+1|0;d=yb;d=e?d:d+1|0;H[197066]=e;H[197067]=d;h=(+(f|0)+-3314)*.25+ +(d>>>1|0)*4.656612875245797e-10+-.5;if(P(h)<2147483648){d=~~h;break a}d=-2147483648}e=nB((+G[b+2>>1]+.5)*30517578125e-15,(+G[b+4>>1]+.5)*30517578125e-15,H[a+4>>2]);H[g>>2]=d<<14|((e|0)<0?12266:e);b=b+6|0;g=g+4|0;if(i>>>0>1){continue}break}}}function ola(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}F[a+24|0]=0;H[a+32>>2]=b;d=H[b+12>>2];H[a+4>>2]=d;e=H[b+16>>2];H[a+8>>2]=d+e;H[a+28>>2]=0;if(e>>>0>67108862){c=1073741823}else{c=e<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}H[a+12>>2]=c;H[a+20>>2]=0;H[a>>2]=0;if(!d){Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b|0}a:{if((e|0)>=5){H[a+12>>2]=c-5;c=I[d|0];Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if((c|0)!=2){break a}if(H[b+4>>2]){H[b+4>>2]=0}return b|0}Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function fG(a,b){var c=0,d=0,e=0;if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}F[a+24|0]=0;H[a+32>>2]=b;d=H[b+12>>2];H[a+4>>2]=d;e=H[b+16>>2];H[a+8>>2]=d+e;H[a+28>>2]=0;if(e>>>0>67108862){c=1073741823}else{c=e<<6;c=c>>>0>16384?c:16384;c=c>>>0<1073741823?c:1073741823}H[a+12>>2]=c;H[a+20>>2]=0;H[a>>2]=0;if(!d){Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;return b}a:{if((e|0)>=36){H[a+12>>2]=c-36;c=I[d|0]|I[d+1|0]<<8;Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if((c|0)!=256){break a}if(H[b+4>>2]){H[b+4>>2]=0}return b}Wb(b);H[a+32>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0}Wb(b);return 163632}function Ev(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=xb-16|0;xb=g;if(I[a+11|0]>>>7|0){e=H[a+4>>2]}else{e=I[a+11|0]}if(b>>>0<=e>>>0){f=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:1;a:{if(f-e>>>0>=d>>>0){if(!d){break a}if(I[a+11|0]>>>7|0){f=H[a>>2]}else{f=a}i=f+(b<<2)|0;if((b|0)!=(e|0)){h=f+(b<<2)|0;kk(h+(d<<2)|0,h,e-b|0);c=((c>>>0>=h>>>0?f+(e<<2)>>>0>c>>>0?d:0:0)<<2)+c|0}kk(i,c,d);b=d+e|0;b:{if(I[a+11|0]>>>7|0){H[a+4>>2]=b;break b}F[a+11|0]=b}H[g+12>>2]=0;H[f+(b<<2)>>2]=H[g+12>>2];break a}jk(a,f,(d+e|0)-f|0,e,b,0,d,c)}xb=g+16|0;return a|0}lj(a);X()}function Bu(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;H[g+12>>2]=0;h=pc(a,(J[c+8>>1]>>>1|0)+1|0,g+12|0);e=0;a:{if(H[g+12>>2]){break a}e=bc(b,H[c+12>>2]);H[g+12>>2]=e;b:{if(e){break b}e=Jc(b,J[c+8>>1]);H[g+12>>2]=e;if(e){break b}e=h;c:{f=J[c+8>>1];if(f>>>0>=2){i=f>>>1|0;f=H[b+32>>2];while(1){if(I[f|0]){break c}if(!(zb[d|0](F[f+1|0])|0)){break c}F[e|0]=I[f+1|0];f=f+2|0;e=e+1|0;i=i-1|0;if(i){continue}break}}F[e|0]=0;wc(b);e=h;break a}wc(b)}if(h){zb[H[a+8>>2]](a,h)}H[c+12>>2]=0;G[c+8>>1]=0;b=H[c+16>>2];if(b){zb[H[a+8>>2]](a,b)}H[c+16>>2]=0;e=0}xb=g+16|0;return e}function ti(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0,m=0;j=Qb(56);M[j+48>>3]=g;M[j+40>>3]=f;M[j+32>>3]=e;M[j+24>>3]=d;M[j+16>>3]=c;M[j+8>>3]=b;H[j>>2]=425036;h=H[a+8>>2];if((h|0)!=H[a+12>>2]){H[h>>2]=j;H[a+8>>2]=h+4;return 1}a:{i=a+4|0;m=H[i>>2];k=h-m|0;l=k>>2;h=l+1|0;if(h>>>0<1073741824){i=k>>1;i=k>>>0<2147483644?h>>>0>>0?i:h:1073741823;if(i){if(i>>>0>=1073741824){break a}h=Qb(i<<2)}else{h=0}l=h+(l<<2)|0;H[l>>2]=j;if((k|0)>0){Ob(h,m,k)}H[a+12>>2]=h+(i<<2);H[a+8>>2]=l+4;H[a+4>>2]=h;if(m){Kb(m)}return 1}bd(i);X()}Td(400840);X()}function bfa(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;a:{if((d|0)<=0){break a}f=H[a+112>>2];if(!f){break a}a=H[H[a+480>>2]+24>>2];h=H[a+8>>2];i=H[a+4>>2];j=H[a>>2];l=f-1|0;m=f&1;while(1){a=k<<2;e=H[a+c>>2];a=H[a+b>>2];if(m){F[e|0]=I[I[a+2|0]+h|0]+(I[I[a+1|0]+i|0]+I[I[a|0]+j|0]|0);e=e+1|0;a=a+3|0;g=l}else{g=f}if((f|0)!=1){while(1){F[e|0]=I[I[a+2|0]+h|0]+(I[I[a+1|0]+i|0]+I[I[a|0]+j|0]|0);F[e+1|0]=I[I[a+5|0]+h|0]+(I[I[a+4|0]+i|0]+I[I[a+3|0]+j|0]|0);e=e+2|0;a=a+6|0;g=g-2|0;if(g){continue}break}}k=k+1|0;if((k|0)!=(d|0)){continue}break}}}function Wca(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;ug(c,0,d,0,H[a+272>>2],H[a+28>>2]);g=H[a+272>>2];a:{if((g|0)<=0){break a}c=N(H[b+36>>2],H[b+28>>2]);b=H[a+28>>2];c=c-b|0;if((c|0)<=0){break a}a=0;if(g-1>>>0>=3){j=g&-4;while(1){e=a<<2;f=b+H[e+d>>2]|0;Nb(f,I[f-1|0],c);f=b+H[(e|4)+d>>2]|0;Nb(f,I[f-1|0],c);f=b+H[(e|8)+d>>2]|0;Nb(f,I[f-1|0],c);e=b+H[(e|12)+d>>2]|0;Nb(e,I[e-1|0],c);a=a+4|0;h=h+4|0;if((j|0)!=(h|0)){continue}break}}g=g&3;if(!g){break a}while(1){e=b+H[(a<<2)+d>>2]|0;Nb(e,I[e-1|0],c);a=a+1|0;i=i+1|0;if((g|0)!=(i|0)){continue}break}}}function Je(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0,m=0;j=Qb(56);M[j+48>>3]=g;M[j+40>>3]=f;M[j+32>>3]=e;M[j+24>>3]=d;M[j+16>>3]=c;M[j+8>>3]=b;H[j>>2]=425100;h=H[a+8>>2];if((h|0)!=H[a+12>>2]){H[h>>2]=j;H[a+8>>2]=h+4;return 1}a:{i=a+4|0;m=H[i>>2];k=h-m|0;l=k>>2;h=l+1|0;if(h>>>0<1073741824){i=k>>1;i=k>>>0<2147483644?h>>>0>>0?i:h:1073741823;if(i){if(i>>>0>=1073741824){break a}h=Qb(i<<2)}else{h=0}l=h+(l<<2)|0;H[l>>2]=j;if((k|0)>0){Ob(h,m,k)}H[a+12>>2]=h+(i<<2);H[a+8>>2]=l+4;H[a+4>>2]=h;if(m){Kb(m)}return 1}bd(i);X()}Td(400840);X()}function Mk(a,b,c){var d=0,e=0,f=0;a:{b:{c:{d=H[b>>2];if(!d){if(H[b+8>>2]<=0){break b}c=0;if(a){break c}while(1){cc(0,H[H[b+16>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2]){continue}break}break b}if(!a|!c){break a}Qc(a,d,c);xc(a,d,c);return}while(1){f=c<<2;d=H[f+H[b+16>>2]>>2];d:{if(!d){break d}e=H[a+272>>2];if(!e){break d}Qc(a,d,e);xc(a,d,e);d=H[H[b+16>>2]+f>>2]}cc(a,d);c=c+1|0;if((c|0)>2]){continue}break}}if(H[b+12>>2]){cc(a,H[b+16>>2])}c=H[a+272>>2];d=H[a+228>>2];e:{if(c>>>0<=d>>>0){break e}b=H[a+268>>2];if(!b){break e}c=c-d|0;Qc(a,b,c);xc(a,b,c)}OB(a)}}function xO(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;H[d+4>>2]=c;H[d+8>>2]=b;g=d,h=Ue(a),H[g>>2]=h;e=H[d+8>>2]-H[d>>2]>>2;if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}a:{if((c|0)==((I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:1)|0)){Pl(a,c,1,c,e,1);b=H[a>>2];break a}if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}if((c|0)==(e|0)){break a}f=(e<<2)+b|0;kk(f+4|0,f,c-e|0)}H[(e<<2)+b>>2]=H[d+4>>2];H[d>>2]=0;f=b;b=c+1|0;H[f+(b<<2)>>2]=H[d>>2];b:{if(I[a+11|0]>>>7|0){H[a+4>>2]=b;break b}F[a+11|0]=b}g=d,h=Ue(a),H[g>>2]=h;a=To(d,e);xb=d+16|0;return a|0}function Nca(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=xb-256|0;xb=i;if(g){k=(e<<2)+c|0;a=H[a+416>>2];l=H[(a+(H[b+16>>2]<<2)|0)+84>>2];m=H[(a+(H[b+4>>2]<<2)|0)+44>>2];while(1){zb[m|0](i,k,f);a=0;while(1){e=a<<2;c=H[e+l>>2];h=c>>1;n=((j<<7)+d|0)+(a<<1)|0;e=H[e+i>>2];a:{if((e|0)<0){e=h-e|0;if((e|0)>=(c|0)){c=(e|0)/(c|0)|0}else{c=0}e=0-c|0;break a}h=e+h|0;e=0;if((h|0)<(c|0)){break a}e=(h|0)/(c|0)|0}G[n>>1]=e;a=a+1|0;if((a|0)!=64){continue}break}f=H[b+36>>2]+f|0;j=j+1|0;if((j|0)!=(g|0)){continue}break}}xb=i+256|0}function vu(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!a){break a}b:{c:{b=H[a+8>>2];switch(b|0){case 0:break a;case 1:break b;default:break c}}g=b-1|0;h=g&3;d=1;if(b-2>>>0>=3){k=g&-4;while(1){c=H[a>>2];b=e<<2;f=d<<2;H[c+b>>2]=H[c+f>>2];c=H[a>>2];H[c+(b|4)>>2]=H[(c+f|0)+4>>2];c=H[a>>2];H[c+(b|8)>>2]=H[(c+f|0)+8>>2];c=b|12;b=H[a>>2];H[c+b>>2]=H[(b+f|0)+12>>2];d=d+4|0;e=e+4|0;i=i+4|0;if((k|0)!=(i|0)){continue}break}}if(!h){break b}while(1){b=H[a>>2];H[b+(e<<2)>>2]=H[b+(d<<2)>>2];d=d+1|0;e=e+1|0;j=j+1|0;if((j|0)!=(h|0)){continue}break}}H[a+8>>2]=g}}function N9(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;e=xb-16|0;xb=e;f=H[a+584>>2];g=(c|0)/H[f+8>>2]|0;j=H[f>>2]==2?b:H[f+12>>2];d=H[a+608>>2];c=H[a+604>>2];a:{if((g|0)<=0){i=d;break a}if((d|0)<=0){i=d;break a}while(1){H[(h<<2)+j>>2]=I[c+2|0]|(I[c+1|0]<<8|I[c|0]<<16);i=d-3|0;c=c+3|0;h=h+1|0;if((h|0)>=(g|0)){break a}k=d>>>0>3;d=i;if(k){continue}break}}H[a+608>>2]=i;H[a+604>>2]=c;b:{if((g|0)!=(h|0)){b=H[a>>2];c=H[a+628>>2];a=H[a+472>>2];H[e+4>>2]=g-h;H[e>>2]=a;Pb(c,b,276039,e);a=0;break b}zb[H[f+20>>2]](f,b,g);a=1}xb=e+16|0;return a|0}function w8(a){a=a|0;var b=0,c=0;b=H[a+584>>2];Ym(a,0,1);a:{if(!(I[a+48|0]&4)){break a}H[b+800>>2]=0;H[b+804>>2]=0;H[b+824>>2]=1557;H[b+820>>2]=963;H[b+816>>2]=1558;H[b+812>>2]=1559;H[b+24>>2]=b+800;H[b+808>>2]=1560;if((bB(b,0)|0)==2){break a}Pb(H[a+628>>2],279450,279651,0);return 0}c=J[a+90>>1];G[b+832>>1]=c;b:{if((c|0)==6){G[b+834>>1]=J[a+204>>1];c=J[a+206>>1];break b}G[b+834>>1]=1;c=1}G[b+836>>1]=c;H[b+800>>2]=0;H[b+804>>2]=0;H[b+824>>2]=1557;H[b+820>>2]=963;H[b+816>>2]=1558;H[b+812>>2]=1559;H[b+808>>2]=1561;H[b+24>>2]=b+800;H[a+652>>2]=1416;return 1}function fJ(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;e=H[a+532>>2];if(!e){return 6}f=H[e>>2];i=H[b>>2];a=6;a:{if(f>>>0>i>>>0){break a}b:{if(!f){break b}e=H[e+136>>2];a=0;if(f-1>>>0>=3){h=f&-4;while(1){d=a<<2;H[d+c>>2]=H[e+d>>2];g=d|4;H[g+c>>2]=H[e+g>>2];g=d|8;H[g+c>>2]=H[e+g>>2];d=d|12;H[d+c>>2]=H[e+d>>2];a=a+4|0;j=j+4|0;if((h|0)!=(j|0)){continue}break}}d=f&3;if(!d){break b}while(1){h=a<<2;H[h+c>>2]=H[e+h>>2];a=a+1|0;k=k+1|0;if((d|0)!=(k|0)){continue}break}}a=0;if(f>>>0>=i>>>0){break a}Nb((f<<2)+c|0,0,i-f<<2);a=0}H[b>>2]=f;return a|0}function Lm(a){var b=0,c=0,d=0,e=0;b=H[104640];H[a>>2]=b;H[H[b-12>>2]+a>>2]=H[104643];b=H[H[a>>2]+32>>2];H[197455]=0;ia(b|0,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){b=H[a+232>>2];e=a+236|0;if((b|0)!=(e|0)){while(1){d=b;b=H[b+20>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}c=H[d+4>>2];a:{if(!c){b=H[d+8>>2];if((d|0)==H[b>>2]){break a}d=d+8|0;while(1){c=H[d>>2];d=c+8|0;b=H[c+8>>2];if((c|0)!=H[b>>2]){continue}break}break a}while(1){b=c;c=H[b>>2];if(c){continue}break}}if((b|0)!=(e|0)){continue}break}}Mm(a+232|0,H[a+236>>2]);Vp(a,418564);return a}ha(0)|0;_()|0;Zb();X()}function FC(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a){break a}b=H[a>>2];if(!b){return}f=H[b+96>>2];if(!f){return}c=H[b+108>>2];if(!c){break a}e=b+108|0;d=H[f+8>>2];while(1){if(H[c+8>>2]!=(a|0)){c=H[c+4>>2];if(c){continue}break a}break}g=H[c>>2];h=g?g+4|0:e;e=H[c+4>>2];H[h>>2]=e;H[(e?e:b+112|0)>>2]=g;zb[H[d+8>>2]](d,c);b:{if(H[b+88>>2]!=(a|0)){break b}H[b+88>>2]=0;c=H[b+108>>2];if(!c){break b}H[b+88>>2]=H[c+8>>2]}b=H[a+8>>2];if(b){zb[b|0](a)}b=H[H[f+12>>2]+60>>2];if(b){zb[b|0](a)}b=H[a+40>>2];if(b){zb[H[d+8>>2]](d,b)}H[a+40>>2]=0;zb[H[d+8>>2]](d,a)}}function kw(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{a=H[a+20>>2];b:{if(!a){break b}c:{d:{b=J[a>>1];e=b<<16>>16;if((e|0)>=2){d=G[(H[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break d}if(e){break d}b=J[a+2>>1];break c}b=G[a+2>>1];if((d|0)!=(b|0)){break c}break a}e:{if(b<<16>>16<2){break e}c=H[a+4>>2];f=c+(d<<3)|0;g=b&65535;c=(c+(g<<3)|0)-8|0;if(H[f>>2]!=H[c>>2]|H[f+4>>2]!=H[c+4>>2]|I[(H[a+8>>2]+g|0)-1|0]!=1){break e}b=b-1|0;G[a+2>>1]=b}if((e|0)<=0){break b}c=d;d=(b<<16>>16)-1|0;if((c|0)==(d|0)){G[a+2>>1]=b-1;break a}G[(H[a+12>>2]+(e<<1)|0)-2>>1]=d}return}G[a>>1]=e-1}function Xi(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;i=xb-16|0;xb=i;a:{b:{if(!a){break b}g=H[e+12>>2];h=c-b|0;if((h|0)>0){if((zb[H[H[a>>2]+48>>2]](a,b,h)|0)!=(h|0)){break b}}b=d-b|0;g=(b|0)<(g|0)?g-b|0:0;if((g|0)>0){b=Mw(i,g,f);c:{if(I[b+11|0]>>>7|0){f=H[b>>2];break c}f=b}H[197455]=0;f=ca(3341,a|0,f|0,g|0)|0;h=H[197455];H[197455]=0;if((h|0)==1){break a}_b(b);if((f|0)!=(g|0)){break b}}b=d-c|0;if((b|0)>0){if((zb[H[H[a>>2]+48>>2]](a,c,b)|0)!=(b|0)){break b}}H[e+12>>2]=0;j=a}xb=i+16|0;return j|0}a=$()|0;_()|0;_b(b);ea(a|0);X()}function Jc(a,b){var c=0,d=0,e=0;a:{e=H[a+20>>2];b:{if(e){c=85;if(K[a+4>>2]>>0){break b}d=H[a+28>>2];c:{d:{if((b|0)>0){c=zb[H[d+4>>2]](d,b)|0;if(c){break d}c=64;break a}c=6;if(b){break a}c=0;break c}e=H[a+20>>2]}H[a>>2]=c;e=zb[e|0](a,H[a+8>>2],c,b)|0;c=H[a>>2];if(b>>>0<=e>>>0){d=0}else{if(c){zb[H[d+8>>2]](d,c)}c=0;H[a>>2]=0;d=85}H[a+32>>2]=c;H[a+36>>2]=c?b+c|0:0;H[a+8>>2]=e+H[a+8>>2];return d}e=H[a+4>>2];d=H[a+8>>2];c=85;if(e>>>0<=d>>>0|e-d>>>0>>0){break b}H[a+8>>2]=b+d;c=d+H[a>>2]|0;H[a+32>>2]=c;H[a+36>>2]=b+c;c=0}return c}H[a>>2]=0;return c}function ZN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if($d(a,H[b+8>>2],e)){if(!(H[b+28>>2]==1|H[b+4>>2]!=(c|0))){H[b+28>>2]=d}return}a:{if($d(a,H[b>>2],e)){if(!(H[b+16>>2]!=(c|0)&H[b+20>>2]!=(c|0))){if((d|0)!=1){break a}H[b+32>>2]=1;return}H[b+32>>2]=d;b:{if(H[b+44>>2]==4){break b}G[b+52>>1]=0;a=H[a+8>>2];zb[H[H[a>>2]+20>>2]](a,b,c,c,1,e);if(I[b+53|0]){H[b+44>>2]=3;if(!I[b+52|0]){break b}break a}H[b+44>>2]=4}H[b+20>>2]=c;H[b+40>>2]=H[b+40>>2]+1;if(H[b+36>>2]!=1|H[b+24>>2]!=2){break a}F[b+54|0]=1;return}a=H[a+8>>2];zb[H[H[a>>2]+24>>2]](a,b,c,d,e)}}function zR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;F[a+68|0]=1;H[a+64>>2]=0;H[a+8>>2]=d;H[a+4>>2]=b;H[a>>2]=H[b+100>>2];a:{if(!d){break a}b=H[H[d+156>>2]>>2];H[a+12>>2]=b;H[a+20>>2]=b+56;H[a+16>>2]=b+20;Oh(b);b=H[H[c+40>>2]>>2];H[a+72>>2]=0;H[a+76>>2]=b;if(!e){break a}H[a+72>>2]=H[H[d+156>>2]+36>>2]}H[a+24>>2]=0;H[a+28>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;H[a+32>>2]=0;H[a+36>>2]=0;b=H[7601];H[a+80>>2]=H[7600];H[a+84>>2]=b;b=H[7603];H[a+88>>2]=H[7602];H[a+92>>2]=b;b=H[7605];H[a+96>>2]=H[7604];H[a+100>>2]=b;b=H[7607];H[a+104>>2]=H[7606];H[a+108>>2]=b}function jda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if((e|0)<=0){break a}f=H[a+28>>2];if(!f){break a}g=H[a+36>>2];l=f&-4;k=f&3;m=f-1>>>0<3;while(1){h=H[H[c>>2]+(d<<2)>>2];f=H[b>>2];i=0;a=0;j=0;if(!m){while(1){F[a+h|0]=I[f|0];f=f+g|0;F[(a|1)+h|0]=I[f|0];f=f+g|0;F[(a|2)+h|0]=I[f|0];f=f+g|0;F[(a|3)+h|0]=I[f|0];a=a+4|0;f=f+g|0;j=j+4|0;if((l|0)!=(j|0)){continue}break}}if(k){while(1){F[a+h|0]=I[f|0];a=a+1|0;f=f+g|0;i=i+1|0;if((i|0)!=(k|0)){continue}break}}d=d+1|0;b=b+4|0;a=(e|0)>1;e=e-1|0;if(a){continue}break}}}function hv(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;H[c+8>>2]=0;H[c+12>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=H[a+4>>2];a:{if(!H[H[d+128>>2]+52>>2]){d=18;if(b>>>0>255){break a}f=H[a+532>>2];if(!H[f+1188>>2]){break a}h=zb[H[H[f+3088>>2]>>2]](b)|0;g=H[f+20>>2];if(!g){break a}f=H[f+1188>>2];b=0;while(1){if(J[f+(b<<1)>>1]!=(h|0)){b=b+1|0;if((g|0)!=(b|0)){continue}break a}break}if((b|0)<0){break a}d=H[a+4>>2]}d=zb[H[a+596>>2]](d,b,e+12|0,e+8|0)|0;if(d){break a}a=H[e+12>>2];H[c+4>>2]=a;b=H[e+8>>2];H[c+12>>2]=a;d=0;H[c+8>>2]=a?a+b|0:0}xb=e+16|0;return d}function U6(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=xb-32|0;xb=g;a:{b:{switch(H[a+24>>2]-1|0){case 0:Bk(g,H[a+16>>2]);f=M[g>>3];M[b>>3]=f;h=M[g+8>>3];M[c>>3]=h;M[d>>3]=M[g+16>>3]-f;f=M[g+24>>3]-h;M[e>>3]=f;break a;case 1:i=b;a=H[a+20>>2]+100|0;b=H[a>>2];M[i>>3]=b|0;i=c;c=H[a+4>>2];M[i>>3]=c|0;M[d>>3]=H[a+8>>2]-b|0;f=+(H[a+12>>2]-c|0);M[e>>3]=f;break a;default:break b}}H[b>>2]=0;H[b+4>>2]=0;H[c>>2]=0;H[c+4>>2]=0;H[d>>2]=0;H[d+4>>2]=0;H[e>>2]=0;H[e+4>>2]=0}h=M[d>>3];if(h<0){M[d>>3]=-h;f=M[e>>3]}if(f<0){M[e>>3]=-f}xb=g+32|0}function NN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(I[a+64|0]){break a}F[a+64|0]=1;e=H[a+20>>2];b:{if(I[a+65|0]){d=H[a+12>>2];if((G[d+20>>1]+G[d+56>>1]|0)+1>>>0>K[d+8>>2]){d=ee(d,0,1);if(d){break a}}f=J[e>>1];d=f<<16>>16;if((d|0)<=0){break b}G[(H[e+12>>2]+(f<<1)|0)-2>>1]=J[e+2>>1]-1}d=J[e>>1]}G[e>>1]=d+1;d=H[a+12>>2];if((G[d+22>>1]+G[d+58>>1]|0)+1>>>0>K[d+4>>2]){d=ee(d,1,0);if(d){break a}}d=H[a+20>>2];if(I[a+65|0]){a=H[d+8>>2];e=G[d+2>>1];f=H[d+4>>2]+(e<<3)|0;H[f+4>>2]=c>>10;H[f>>2]=b>>10;F[a+e|0]=1}G[d+2>>1]=J[d+2>>1]+1;d=0}return d|0}function yn(a,b,c,d){var e=0;e=xb-96|0;xb=e;a=Er(a,e+8|0,0,c,d);if(!(a|!b)){H[b>>2]=H[e+8>>2];H[b+4>>2]=H[e+12>>2];H[b+8>>2]=H[e+16>>2];H[b+12>>2]=H[e+20>>2];H[b+16>>2]=H[e+24>>2];H[b+20>>2]=H[e+28>>2];H[b+32>>2]=H[e+48>>2];H[b+36>>2]=H[e+52>>2];H[b+40>>2]=H[e+56>>2];H[b+44>>2]=H[e+60>>2];H[b+48>>2]=H[e+64>>2];H[b+52>>2]=H[e+68>>2];c=H[e+76>>2];H[b+56>>2]=H[e+72>>2];H[b+60>>2]=c;d=H[e+84>>2];c=b- -64|0;H[c>>2]=H[e+80>>2];H[c+4>>2]=d;c=H[e+92>>2];H[b+72>>2]=H[e+88>>2];H[b+76>>2]=c;H[b+24>>2]=H[e+32>>2];H[b+28>>2]=H[e+40>>2]}xb=e+96|0;return a}function cM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=H[b>>2];if((c|0)==-1){return 0}d=c+1|0;a=H[a+16>>2];c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);f=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);c=d>>>0>f>>>0?d:f;d=c-f|0;e=I[a+16|0]|I[a+17|0]<<8|(I[a+18|0]<<16|I[a+19|0]<<24);e=e<<24|e<<8&16711680|(e>>>8&65280|e>>>24);if(d>>>0>=e>>>0){H[b>>2]=c;return 0}f=e+f|0;a=(a+(d<<1)|0)+20|0;while(1){g=I[a+1|0]|I[a|0]<<8;if(g){H[b>>2]=c;return g|0}if((c|0)==-1){return 0}a=a+2|0;c=c+1|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}H[b>>2]=f;return 0}function mJ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;a=H[a+532>>2];a:{if(!a){e=6;break a}d=H[a+4>>2];Al(H[a+136>>2],f,d);a=b>>>0>d>>>0?d:b;if(a){Ob(c,f,a<<2)}if(b>>>0<=d>>>0){break a}d=(a^-1)+b|0;g=b-a&7;if(g){while(1){H[(a<<2)+c>>2]=32768;a=a+1|0;e=e+1|0;if((g|0)!=(e|0)){continue}break}}e=0;if(d>>>0<7){break a}while(1){d=(a<<2)+c|0;H[d>>2]=32768;H[d+4>>2]=32768;H[d+24>>2]=32768;H[d+28>>2]=32768;H[d+16>>2]=32768;H[d+20>>2]=32768;H[d+8>>2]=32768;H[d+12>>2]=32768;a=a+8|0;if((b|0)!=(a|0)){continue}break}}xb=f+16|0;return e|0}function QG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=H[b+24>>2];b=H[H[d+88>>2]+20>>2];e=G[d+70>>1];H[197455]=0;b=Rb(e,b);e=H[197455];H[197455]=0;a:{if((e|0)==1){break a}H[c>>2]=b;b=H[H[d+88>>2]+20>>2];e=G[d+72>>1];H[197455]=0;b=Rb(e,b);e=H[197455];H[197455]=0;if((e|0)==1){break a}H[c+4>>2]=b;b=H[H[d+88>>2]+20>>2];d=G[d+74>>1];H[197455]=0;d=Rb(d,b);b=H[197455];H[197455]=0;if((b|0)==1){break a}b=H[c+4>>2];e=H[c>>2];d=d+(b-e|0)|0;H[c+8>>2]=d;if(H[a+24>>2]<0){H[c+8>>2]=0-d;H[c+4>>2]=0-b;H[c>>2]=0-e}Vc();return 1}a=$()|0;_()|0;Vc();ea(a|0);X()}function J7(a,b){a=a|0;b=b|0;if(!og(a,296448,1)){Pb(H[a+628>>2],296431,270703,0);return 0}b=Tb(136);H[a+584>>2]=b;if(b){H[b+96>>2]=0;H[b+100>>2]=0;H[b+104>>2]=0;H[b+108>>2]=0;H[b+128>>2]=H[a+672>>2];H[a+672>>2]=1592;H[b+132>>2]=H[a+668>>2];H[a+668>>2]=1593;H[b+120>>2]=-1;H[b+124>>2]=0;H[a+524>>2]=1594;H[a+532>>2]=1595;H[a+536>>2]=1596;H[a+544>>2]=1597;H[a+552>>2]=1597;H[a+560>>2]=1597;H[a+572>>2]=1598;H[a+520>>2]=1599;H[a+540>>2]=1600;H[a+548>>2]=1600;H[a+556>>2]=1600;H[a+516>>2]=1601;oq(a);return 1}Pb(H[a+628>>2],296431,271353,0);return 0} +function nm(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;i=xb-240|0;xb=i;h=H[d>>2];H[i+232>>2]=h;d=H[d+4>>2];H[i>>2]=a;H[i+236>>2]=d;k=1;a:{b:{c:{if(!(d|(h|0)!=1)){d=a;break c}l=0-b|0;h=a;while(1){j=(e<<2)+g|0;d=h-H[j>>2]|0;if((zb[c|0](d,a)|0)<=0){d=h;break c}d:{if(!((e|0)<2|f)){f=H[j-8>>2];j=h+l|0;if((zb[c|0](j,d)|0)>=0){break d}if((zb[c|0](j-f|0,d)|0)>=0){break d}}H[(k<<2)+i>>2]=d;h=i+232|0;f=Tx(h);om(h,f);k=k+1|0;e=e+f|0;f=0;h=d;if(H[i+236>>2]|H[i+232>>2]!=1){continue}break b}break}d=h;break b}if(f){break a}}Sx(b,i,k);wp(d,b,c,e,g)}xb=i+240|0}function lD(a,b){var c=0,d=0,e=0,f=0,g=0;b=H[a+84>>2]+(H[a+48>>2]+b|0)|0;d=H[a+12>>2];a:{if(b>>>0<=d>>>0){break a}b=b+1|0;if((b|d)<0){return 6}f=H[a>>2];g=H[a+52>>2];b:{c:{e=b&-2;d:{if(!e){b=0;if(!g){break d}zb[H[f+8>>2]](f,g);H[a+52>>2]=0;break b}c=10;if((e|0)>67108863){break a}e:{if(!d){b=zb[H[f+4>>2]](f,e<<5)|0;c=!b<<6;break e}c=zb[H[f+12>>2]](f,d<<5,e<<5,g)|0;b=c?c:g;c=!c<<6}if(c|(d|0)>=(e|0)|!b){break c}Nb((d<<5)+b|0,0,e-d<<5)}H[a+52>>2]=b;break b}H[a+52>>2]=b;if(c){break a}}H[a+12>>2]=e;c=0;H[a+88>>2]=b?(H[a+48>>2]<<5)+b|0:0}return c}function R7(a,b){a=a|0;b=b|0;var c=0;b=H[a+584>>2];if(!H[b+116>>2]){zb[H[a+516>>2]](a)|0}c=H[a+596>>2];a:{if(!(I[c|0]|!(F[c+1|0]&1))){if(!H[b+96>>2]){sc(H[a+628>>2],H[a>>2],273109,0);H[a+556>>2]=1591;H[a+548>>2]=1591;H[a+540>>2]=1591;zb[H[a+516>>2]](a)|0;H[b+96>>2]=1591}G[b+66>>1]=511;break a}H[b+96>>2]=1583;G[b+66>>1]=510}G[b+64>>1]=9;H[b+72>>2]=0;H[b+76>>2]=0;H[b+84>>2]=511;H[b+88>>2]=0;a=H[a+608>>2];c=H[b+116>>2]+2064|0;H[b+108>>2]=c;H[b+92>>2]=a<<3;Id(c,0,38888);a=H[b+116>>2];H[b+104>>2]=a-8;H[b+112>>2]=(a+(H[b+84>>2]<<3)|0)-8;return 1}function iv(a,b,c){var d=0,e=0,f=0;a:{if(I[a+44|0]){break a}F[a+44|0]=1;e=H[a+20>>2];if(!e){return 3}b:{if(I[a+45|0]){d=H[a+12>>2];if((G[d+20>>1]+G[d+56>>1]|0)+1>>>0>K[d+8>>2]){d=ee(d,0,1);if(d){break a}}f=J[e>>1];d=f<<16>>16;if((d|0)<=0){break b}G[(H[e+12>>2]+(f<<1)|0)-2>>1]=J[e+2>>1]-1}d=J[e>>1]}G[e>>1]=d+1;d=H[a+12>>2];if((G[d+22>>1]+G[d+58>>1]|0)+1>>>0>K[d+4>>2]){d=ee(d,1,0);if(d){break a}}d=H[a+20>>2];if(I[a+45|0]){a=H[d+8>>2];e=G[d+2>>1];f=H[d+4>>2]+(e<<3)|0;H[f+4>>2]=c>>10;H[f>>2]=b>>10;F[a+e|0]=1}G[d+2>>1]=J[d+2>>1]+1;d=0}return d}function Au(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;H[d+12>>2]=0;e=Gd(a,d+12|0);c=H[d+12>>2];a:{if(c){break a}if((e|0)==-128){c=8;break a}f=b;b=e&127;b:{if(!(e&128)){break b}e=Gd(a,d+12|0);c=H[d+12>>2];if(c){break a}b=e&127|b<<7;if(!(e&128)){break b}e=Gd(a,d+12|0);c=H[d+12>>2];if(c){break a}b=e&127|b<<7;if(!(e&128)){break b}e=Gd(a,d+12|0);c=H[d+12>>2];if(c){break a}b=e&127|b<<7;if(!(e&128)){break b}a=Gd(a,d+12|0);c=H[d+12>>2];if(c){break a}if(b>>>0>33554431){c=8;break a}c=8;if(a&128){break a}b=a&127|b<<7}H[f>>2]=b;c=0}xb=d+16|0;return c}function gL(a){a=a|0;var b=0,c=0,d=0,e=0;d=H[H[a+96>>2]+8>>2];b=H[a+356>>2];if(b){c=H[a+348>>2];if((c|0)>0){c=N(c,20)+b|0;while(1){e=H[b+16>>2];if(e){zb[H[d+8>>2]](d,e)}H[b+16>>2]=0;b=b+20|0;if(c>>>0>b>>>0){continue}break}b=H[a+356>>2]}if(b){zb[H[d+8>>2]](d,b)}H[a+356>>2]=0}b=H[a+364>>2];if(b){c=H[a+360>>2];if((c|0)>0){c=N(c,12)+b|0;while(1){e=H[b+8>>2];if(e){zb[H[d+8>>2]](d,e)}H[b+8>>2]=0;b=b+12|0;if(c>>>0>b>>>0){continue}break}b=H[a+364>>2]}if(b){zb[H[d+8>>2]](d,b)}H[a+364>>2]=0}G[a+344>>1]=0;H[a+360>>2]=0;H[a+348>>2]=0;H[a+352>>2]=0}function ev(a,b){var c=0,d=0,e=0,f=0;f=xb-16|0;xb=f;a:{b:{d=H[a+20>>2];if((d|0)!=H[a+12>>2]){e=H[a+28>>2];break b}c=H[a+16>>2];H[f+12>>2]=0;c:{c=c+d|0;e=H[a+8>>2];if(c>>>0>2147483647/(e>>>0)>>>0){break c}d=N(c,e);e=Ub(H[a>>2],1,H[a+24>>2],d,H[a+28>>2],f+12|0);H[a+28>>2]=e;if(H[f+12>>2]){break c}H[a+24>>2]=d;H[a+12>>2]=c;d=H[a+20>>2];if(c>>>0>=d>>>0){break b}b=H[a+4>>2];if(!(!b|H[b>>2])){H[b>>2]=130}H[a+20>>2]=c;break a}a=H[a+4>>2];if(!a|H[a>>2]){break a}H[a>>2]=64;break a}c=H[a+8>>2];Ob(N(c,d)+e|0,b,c);H[a+20>>2]=H[a+20>>2]+1}xb=f+16|0}function VE(a,b,c){var d=0,e=0,f=0;d=H[a+100>>2];e=H[d+64>>2];d=H[d+80>>2];f=N(e,20)+d|0;a:{if(I[a+140|0]){c=Ye(H[a+108>>2],b)|48;break a}c=(c?c:J[(d+N(e,20)|0)+12>>1]&65423)|48}G[f+12>>1]=c;a=H[a+100>>2];if(ec(a,1,1)){c=H[a+64>>2];b:{if(c>>>0>2]){d=H[a+80>>2]+N(c,20)|0;e=H[a+72>>2];c=H[a+84>>2];break b}c=H[a+84>>2];e=H[a+72>>2];d=c+N(e?e-1|0:0,20)|0}c=N(e,20)+c|0;e=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=e;H[c+16>>2]=H[d+16>>2];e=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=e;H[c>>2]=b;H[a+64>>2]=H[a+64>>2]+1;H[a+72>>2]=H[a+72>>2]+1}}function Ld(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a;a:{b:{c:{if((e^b)&3){break c}d=(c|0)!=0;d:{if(!(b&3)|!c){break d}while(1){d=I[b|0];F[e|0]=d;if(!d){break a}e=e+1|0;c=c-1|0;d=(c|0)!=0;b=b+1|0;if(!(b&3)){break d}if(c){continue}break}}if(!d){break b}if(!I[b|0]){break a}if(c>>>0<4){break c}while(1){d=H[b>>2];if((d^-1)&d-16843009&-2139062144){break c}H[e>>2]=d;e=e+4|0;b=b+4|0;c=c-4|0;if(c>>>0>3){continue}break}}if(!c){break b}while(1){d=I[b|0];F[e|0]=d;if(!d){break a}e=e+1|0;b=b+1|0;c=c-1|0;if(c){continue}break}}c=0}Nb(e,0,c);return a|0}function qt(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=H[b+68>>2];d=I[e+4|0]|I[e+5|0]<<8;c=H[b+12>>2];f=H[c+32>>2];if((f|0)==-1){f=De(c)}c=0;b=H[b+16>>2];g=H[b+68>>2];a:{if(!g){break a}i=H[b+80>>2];b=0;if(!d){while(1){d=N(b,20)+i|0;e=Re(a,H[d>>2],f);if(e){c=I[e|0]|I[e+1|0]<<8;H[d>>2]=(c<<8|c>>>8)&65535;c=1}b=b+1|0;if((g|0)!=(b|0)){continue}break}break a}while(1){d=N(b,20)+i|0;h=Re(a,H[d>>2],f);if(h){c=I[h|0]|I[h+1|0]<<8;c=(c<<8|c>>>8)&65535;H[d>>2]=c;j=d,k=Ye(e,c),G[j+12>>1]=k;c=1}b=b+1|0;if((g|0)!=(b|0)){continue}break}}return c}function n1(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{a=H[a+4>>2];if(!a){break a}b=H[a+68>>2];if(!b){break a}c=H[a+12>>2];d=H[a+8>>2];H[a+8>>2]=H[b>>2];H[a+12>>2]=H[b+4>>2];e=M[a+16>>3];M[a+16>>3]=M[b+8>>3];f=M[a+24>>3];M[a+24>>3]=M[b+16>>3];g=M[a+32>>3];M[a+32>>3]=M[b+24>>3];h=M[a+40>>3];M[a+40>>3]=M[b+32>>3];i=M[a+48>>3];M[a+48>>3]=M[b+40>>3];j=M[a+56>>3];M[a+56>>3]=M[b+48>>3];k=I[a+64|0];F[a+64|0]=I[b+56|0];F[b+56|0]=k;M[b+48>>3]=j;M[b+40>>3]=i;M[b+32>>3]=h;M[b+24>>3]=g;M[b+16>>3]=f;M[b+8>>3]=e;H[b>>2]=d;H[b+4>>2]=c}}function cn(a,b,c){var d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;e=ac(b);if(!(!c|!I[c|0])){f=ac(c)}if(a){H[a+744>>2]=34;F[d+8|0]=116;F[d+9|0]=69;F[d+10|0]=88;F[d+11|0]=116;e=e+1|0;g=e+f|0;F[d+7|0]=g;F[d+6|0]=g>>>8;F[d+5|0]=g>>>16;F[d+4|0]=g>>>24;Qc(a,d+4|0,8);H[a+348>>2]=1950701684;Uf(a);xc(a,d+8|0,4);H[a+744>>2]=66;if(!(!b|!e)){Qc(a,b,e);xc(a,b,e)}if(!(!f|(!c|!a))){Qc(a,c,f);xc(a,c,f)}H[a+744>>2]=130;b=H[a+384>>2];b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);F[d+12|0]=b;F[d+13|0]=b>>>8;F[d+14|0]=b>>>16;F[d+15|0]=b>>>24;Qc(a,d+12|0,4)}xb=d+16|0}function GN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[H[a+4>>2]+712>>2];a:{b:{if(!H[d+2024>>2]){d=d+1372|0;break b}e=zb[H[H[d+3088>>2]+8>>2]](d+3052|0,c)|0;c=3;if(e>>>0>=K[d+2024>>2]){break a}d=H[(d+(e<<2)|0)+2028>>2];if(!b|!H[a+68>>2]){break b}H[a+72>>2]=H[(H[H[b+40>>2]>>2]+(e<<2)|0)+4>>2]}e=H[d+620>>2];H[a+728>>2]=e;H[a+744>>2]=H[d+644>>2];c=0;b=0;c:{if(H[H[a+108>>2]+1416>>2]==1){break c}b=107;if(e>>>0<1240){break c}b=e>>>0<33900?1131:32768}H[a+736>>2]=b;H[a+584>>2]=H[d+540>>2];b=H[d+544>>2];H[a+768>>2]=d;H[a+588>>2]=b}return c|0}function sK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;c=H[a>>2];a:{b:{if(I[c+8|0]&2){d=zb[H[H[c+540>>2]+104>>2]](c,b,e+12|0)|0;if(!d){c=H[e+12>>2];H[a+116>>2]=c;b=H[a>>2];if(F[b+8|0]&1){Vf(b,c);d=0;po(a);break a}d=zb[H[H[b+540>>2]+108>>2]](b,c,a+12|0)|0;if(!d){break b}H[a+116>>2]=-1;break a}H[a+116>>2]=-1;c=H[a>>2]}Bi(c,b);if(!(F[H[a>>2]+8|0]&1)){break a}d=po(a);if(d){break a}c=a;d=J[a+84>>1];a=H[a+44>>2];a=H[(J[a>>1]>J[a+2>>1]?12:16)+b>>2];f=c,g=ic(d,4608,H[b>>2]!=4?a?a:72:72),H[f+120>>2]=g}d=0}xb=e+16|0;return d|0}function Lo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=H[a+84>>2];a:{d=H[a+28>>2];b:{if((d|0)!=(b|0)){e=-1;if((Lo(a,d,H[a+20>>2]-d|0)|0)==-1){break b}}g=H[f>>2];c:{if(!H[f+4>>2]|!c){break c}e=c;while(1){d=ok(g,b,e);if((d|0)<0){break a}h=H[f+4>>2]-1|0;H[f+4>>2]=h;g=H[f>>2]+4|0;H[f>>2]=g;if(!h){break c}b=b+d|0;h=(d|0)!=(e|0);e=e-d|0;if(h){continue}break}}H[g>>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];e=c}return e|0}H[H[f>>2]>>2]=0;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a>>2]=H[a>>2]|32;return d|0}function Yi(a,b,c){var d=0,e=0,f=0;e=xb-16|0;xb=e;d=e+8|0;b=H[b+28>>2];H[d>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;b=aa(3445,d|0)|0;d=H[197455];H[197455]=0;a:{if((d|0)==1){break a}H[197455]=0;d=aa(3455,b|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break a}H[c>>2]=d;H[197455]=0;ba(3456,a|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[e+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}xb=e+16|0;return}c=$()|0;_()|0;a=H[e+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function GG(a,b){a=a|0;b=b|0;var c=0,d=0,e=O(0),f=O(0),g=0,h=O(0),i=O(0);d=b+16|0;g=H[b+12>>2];c=H[b+8>>2];i=O(H[a+4>>2]);h=O(H[a>>2]);a:{b:{if(I[b+4|0]){if(!H[d>>2]){break a}e=L[b+20>>2];f=L[b+24>>2];if(e==L[b+28>>2]&f==L[b+32>>2]){break b}zb[H[c+16>>2]](c,g,d,e,f,H[c+36>>2]);break b}h=O(O(i*L[b>>2])+h);if(!H[b+16>>2]){break a}e=L[b+20>>2];f=L[b+24>>2];if(e==L[b+28>>2]&f==L[b+32>>2]){break b}zb[H[c+16>>2]](c,g,d,e,f,H[c+36>>2])}zb[H[c+28>>2]](c,g,d,H[c+48>>2]);H[d+8>>2]=0;H[d>>2]=0;H[d+4>>2]=0}L[b+32>>2]=i;L[b+28>>2]=h;return 0}function _i(a,b,c){var d=0,e=0,f=0;e=xb-16|0;xb=e;d=e+8|0;b=H[b+28>>2];H[d>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;b=aa(3415,d|0)|0;d=H[197455];H[197455]=0;a:{if((d|0)==1){break a}H[197455]=0;d=aa(3429,b|0)|0;f=H[197455];H[197455]=0;if((f|0)==1){break a}F[c|0]=d;H[197455]=0;ba(3430,a|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}a=H[e+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}xb=e+16|0;return}c=$()|0;_()|0;a=H[e+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function YX(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;if(b){g=H[d>>2]-N(H[d+4>>2],a)|0;while(1){b=b-1|0;a=J[c+2>>1];a:{if(!a){break a}h=a-1|0;d=N(G[c>>1],3)+g|0;e=0;f=a&7;if(f){while(1){F[d|0]=I[c+4|0];d=d+3|0;a=a-1|0;e=e+1|0;if((e&65535)!=(f|0)){continue}break}}if((h&65535)>>>0<7){break a}while(1){F[d|0]=I[c+4|0];F[d+3|0]=I[c+4|0];F[d+6|0]=I[c+4|0];F[d+9|0]=I[c+4|0];F[d+12|0]=I[c+4|0];F[d+15|0]=I[c+4|0];F[d+18|0]=I[c+4|0];F[d+21|0]=I[c+4|0];d=d+24|0;a=a-8|0;if(a&65535){continue}break}}c=c+6|0;if(b){continue}break}}}function nD(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;a:{if(!b){break a}g=H[a+4>>2];if(!g){break a}d=H[a+44>>2];if(!d){break a}d=c>>>0>d>>>0?d:c;b:{if(!d){break b}g=g+40|0;c=0;if((d|0)!=1){i=d&-2;while(1){f=g+(c<<2)|0;e=N(c,3)+b|0;F[f+2|0]=I[e|0];F[f+1|0]=I[e+1|0];F[f|0]=I[e+2|0];e=c|1;f=g+(e<<2)|0;e=N(e,3)+b|0;F[f+2|0]=I[e|0];F[f+1|0]=I[e+1|0];F[f|0]=I[e+2|0];c=c+2|0;h=h+2|0;if((i|0)!=(h|0)){continue}break}}if(!(d&1)){break b}d=g+(c<<2)|0;b=N(c,3)+b|0;F[d+2|0]=I[b|0];F[d+1|0]=I[b+1|0];F[d|0]=I[b+2|0]}F[a+445|0]=0}}function Oe(a,b,c,d){var e=0,f=0,g=0;e=xb+-64|0;xb=e;g=H[a>>2];f=H[g-4>>2];g=H[g-8>>2];H[e+20>>2]=d;H[e+16>>2]=b;H[e+12>>2]=a;H[e+8>>2]=c;b=0;Nb(e+24|0,0,39);a=a+g|0;a:{if($d(f,c,0)){H[e+56>>2]=1;zb[H[H[f>>2]+20>>2]](f,e+8|0,a,a,1,0);b=H[e+32>>2]==1?a:0;break a}zb[H[H[f>>2]+24>>2]](f,e+8|0,a,1,0);b:{switch(H[e+44>>2]){case 0:b=H[e+48>>2]==1?H[e+36>>2]==1?H[e+40>>2]==1?H[e+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(H[e+32>>2]!=1){if(H[e+48>>2]|H[e+36>>2]!=1|H[e+40>>2]!=1){break a}}b=H[e+24>>2]}xb=e- -64|0;return b}function Dl(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;b=H[a+260>>2];if(!b){n=a;d=G[a+300>>1];b=H[a+248>>2];a:{if(!d){break a}c=G[a+298>>1];b=H[a+252>>2];if(!c){break a}e=H[a+248>>2];b=e>>31;f=(b^e)-b|0;b=c>>31;g=(b^c)-b|0;h=N(f>>>16|0,g);i=h<<16|8192;a=H[a+252>>2];b=a>>31;j=(a^b)-b|0;b=d>>31;k=(b^d)-b|0;l=N(j>>>16|0,k);m=l<<16|8192;b=i+N(g,f&65535)|0;b=(h>>>16|0)+(b>>>0>>0)<<18|b>>>14;c=(c^e)>=0?b:0-b|0;b=m+N(k,j&65535)|0;b=(l>>>16|0)+(b>>>0>>0)<<18|b>>>14;b=sr(c,(a^d)>=0?b:0-b|0)}H[n+260>>2]=b}return b}function gr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!c){break a}h=H[a+4>>2];if(!h){break a}f=H[a+44>>2];if(!f){break a}f=b>>>0>f>>>0?f:b;b:{if(!f){break b}h=h+40|0;d=d?d:c;e=e?e:d;b=0;if((f|0)!=1){k=f&-2;while(1){g=h+(b<<2)|0;F[g+2|0]=I[b+c|0];F[g+1|0]=I[b+d|0];F[g|0]=I[b+e|0];g=b|1;i=h+(g<<2)|0;F[i+2|0]=I[c+g|0];F[i+1|0]=I[d+g|0];F[i|0]=I[e+g|0];b=b+2|0;j=j+2|0;if((k|0)!=(j|0)){continue}break}}if(!(f&1)){break b}f=h+(b<<2)|0;F[f+2|0]=I[b+c|0];F[f+1|0]=I[b+d|0];F[f|0]=I[b+e|0]}F[a+445|0]=0}}function yO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;H[f+8>>2]=e;H[f+12>>2]=c;e=(e|0)==-1;if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}if(!(e|c>>>0>>0)){H[f>>2]=c-b;c=xb-16|0;xb=c;xb=c+16|0;c=f+12|0;H[f+4>>2]=H[(K[f>>2]>2]?f:c)>>2];if(I[a+11|0]>>>7|0){a=H[a>>2]}c=xb-16|0;xb=c;xb=c+16|0;e=f+8|0;c=f+4|0;e=H[(K[e>>2]>2]?e:c)>>2];c=0;a:{if(!e){break a}c=oi((b<<2)+a|0,d,e)}b=c;b:{if(b){break b}b=-1;a=H[f+4>>2];c=H[f+8>>2];if(a>>>0>>0){break b}b=a>>>0>c>>>0}xb=f+16|0;return b|0}lj(a);X()}function su(a,b){var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;c=H[b+28>>2];d=zb[H[a+516>>2]](a,1668707360,b,e+8|0)|0;H[e+12>>2]=d;a:{if(d){H[a+700>>2]=0;H[a+704>>2]=0;c=0;break a}d=H[e+8>>2]>>>1|0;H[a+700>>2]=d;f=a,g=Ub(c,4,0,d,0,e+12|0),H[f+704>>2]=g;c=H[e+12>>2];if(c){break a}c=Jc(b,H[a+700>>2]<<1);H[e+12>>2]=c;if(c){break a}d=H[a+700>>2];if((d|0)>0){c=H[a+704>>2];d=c+(d<<2)|0;while(1){f=c,g=Tc(b)<<16>>16<<6,H[f>>2]=g;c=c+4|0;if(d>>>0>c>>>0){continue}break}}wc(b);if(!I[a+733|0]){c=H[e+12>>2];break a}c=gu(a,b)}xb=e+16|0;return c}function XT(a){a=a|0;var b=0,c=0,d=0,e=0;if(H[a+76>>2]!=-1){return H[a+76>>2]}d=a;c=xb-16|0;xb=c;b=c+8|0;a=H[a+28>>2];H[b>>2]=a;H[a+4>>2]=H[a+4>>2]+1;H[197455]=0;a=aa(3342,b|0)|0;b=H[197455];H[197455]=0;a:{b:{if((b|0)==1){break b}H[197455]=0;a=da(3343,a|0,32)|0;b=H[197455];H[197455]=0;if((b|0)==1){break b}b=H[c+8>>2];e=H[b+4>>2]-1|0;H[b+4>>2]=e;if((e|0)==-1){zb[H[H[b>>2]+8>>2]](b)}xb=c+16|0;break a}b=$()|0;_()|0;a=H[c+8>>2];d=H[a+4>>2]-1|0;H[a+4>>2]=d;if((d|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(b|0);X()}H[d+76>>2]=a;return a|0}function u7(a){a=a|0;var b=0,c=0,d=0;c=H[a+584>>2];a:{if(!(zb[H[c+60>>2]](a)|0)){break a}if(!SA(a)){break a}d=1;b:{c:{switch(H[c>>2]-2|0){case 0:b=1615;d:{e:{f:{switch(J[a+84>>1]-8|0){case 8:b=1616;break e;case 0:break e;case 24:break f;default:break d}}b=1617}H[c+24>>2]=b}b=H[a+544>>2];if((b|0)!=1618){break b}break a;case 1:break c;default:break a}}H[c+24>>2]=1619;b=H[a+544>>2];if((b|0)==1618){break a}}H[c+12>>2]=b;H[a+544>>2]=1618;H[c+16>>2]=H[a+552>>2];H[a+552>>2]=1620;H[c+20>>2]=H[a+560>>2];H[a+560>>2]=1620}return d|0}function Tz(a){var b=0,c=0,d=0,e=0,f=0;H[a+28>>2]=4096;b=a+4168|0;H[a+24>>2]=b;H[a+8268>>2]=b;d=a+72|0;f=a+12|0;a:{while(1){if(!H[a+16>>2]){b=H[a>>2];c=H[b+20>>2];b:{if(c){c=zb[c|0](b,H[b+8>>2],d,4096)|0;if(c){break b}break a}e=H[b+8>>2];c=H[b+4>>2]-e|0;c=c>>>0<4096?c:4096;if(!c){break a}Ob(d,H[b>>2]+e|0,c)}H[b+8>>2]=H[b+8>>2]+c;H[a+16>>2]=c;H[a+12>>2]=d}b=Vh(f,0);if(b){if((b|0)==1){b=H[a+24>>2];H[a+8272>>2]=b;return(b|0)==H[a+8268>>2]?85:0}break a}if(H[a+28>>2]){continue}break}return 0}H[a+8272>>2]=H[a+8268>>2];return 85}function oda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=H[a+20>>2];if((d|0)!=101){f=H[a>>2];H[f+24>>2]=d;H[f+20>>2]=21;zb[H[H[a>>2]>>2]](a)}if(K[a+260>>2]>=K[a+32>>2]){d=H[a>>2];H[d+20>>2]=126;zb[H[d+4>>2]](a,-1)}d=H[a+8>>2];if(d){H[d+4>>2]=H[a+260>>2];H[d+8>>2]=H[a+32>>2];zb[H[d>>2]](a)}d=H[a+388>>2];if(H[d+12>>2]){zb[H[d+4>>2]](a)}d=H[a+260>>2];f=H[a+32>>2];H[e+12>>2]=0;g=b;b=f-d|0;zb[H[H[a+392>>2]+4>>2]](a,g,e+12|0,b>>>0>>0?b:c);b=a;c=H[a+260>>2];a=H[e+12>>2];H[b+260>>2]=c+a;xb=e+16|0;return a|0}function Lf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=xb-16|0;xb=f;A(+b);g=v(1)|0;d=v(0)|0;c=g&2147483647;e=c+-1048576|0;a:{if((e|0)==2145386495|e>>>0<2145386495){h=d<<28;e=c>>>4|0;c=(c&15)<<28|d>>>4;d=e+1006632960|0;break a}if((c|0)==2146435072|c>>>0>2146435072){h=d<<28;c=(g&15)<<28|d>>>4;d=g>>>4|2147418112;break a}if(!(c|d)){c=0;d=0;break a}e=c;c=c?Q(c):Q(d)+32|0;He(f,d,e,0,0,c+49|0);i=H[f>>2];h=H[f+4>>2];e=15372-c<<16;c=H[f+8>>2];d=e|H[f+12>>2]^65536}H[a>>2]=i;H[a+4>>2]=h;H[a+8>>2]=c;H[a+12>>2]=g&-2147483648|d;xb=f+16|0}function KJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a=H[a+8>>2];b=H[a>>2];a:{if(I[b+732|0]){break a}F[a+112|0]=0;c=H[a+16>>2];d=H[a+12>>2];H[a+48>>2]=d;H[a+52>>2]=c;c=H[a+24>>2];H[a+56>>2]=H[a+20>>2];H[a+60>>2]=c;e=H[a+32>>2];c=a- -64|0;H[c>>2]=H[a+28>>2];H[c+4>>2]=e;H[a+72>>2]=H[a+36>>2];if(!(d&65535)|!J[a+50>>1]){break a}if(I[b+176|0]&8){f=a,g=Rb(G[b+70>>1],H[a+56>>2])+32&-64,H[f+60>>2]=g;f=a- -64|0,g=Rb(G[b+72>>1],H[a+56>>2])+32&-64,H[f>>2]=g;f=a,g=Rb(G[b+74>>1],H[a+56>>2])+32&-64,H[f+68>>2]=g}F[a+112|0]=1}return 0}function DO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;H[f+8>>2]=e;H[f+12>>2]=c;e=(e|0)==-1;if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}if(!(e|c>>>0>>0)){H[f>>2]=c-b;c=xb-16|0;xb=c;xb=c+16|0;c=f+12|0;H[f+4>>2]=H[(K[f>>2]>2]?f:c)>>2];if(I[a+11|0]>>>7|0){a=H[a>>2]}c=xb-16|0;xb=c;xb=c+16|0;e=f+8|0;c=f+4|0;e=H[(K[e>>2]>2]?e:c)>>2];c=0;a:{if(!e){break a}c=md(a+b|0,d,e)}b=c;b:{if(b){break b}b=-1;a=H[f+4>>2];c=H[f+8>>2];if(a>>>0>>0){break b}b=a>>>0>c>>>0}xb=f+16|0;return b|0}lj(a);X()}function gka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{a=H[a+124>>2];if(!a){break a}d=H[b+68>>2];if(!d){break a}b=H[b+80>>2];if(d-1>>>0>=3){f=d&-4;c=0;while(1){H[b+4>>2]=H[b+4>>2]|H[a+(I[b+19|0]<<2)>>2];H[b+24>>2]=H[b+24>>2]|H[a+(I[b+39|0]<<2)>>2];H[b+44>>2]=H[b+44>>2]|H[a+(I[b+59|0]<<2)>>2];e=b- -64|0;H[e>>2]=H[e>>2]|H[a+(I[b+79|0]<<2)>>2];b=b+80|0;c=c+4|0;if((f|0)!=(c|0)){continue}break}}d=d&3;if(!d){break a}c=0;while(1){H[b+4>>2]=H[b+4>>2]|H[a+(I[b+19|0]<<2)>>2];b=b+20|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}}function cia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b:{d=H[a+4>>2];c:{if(!d){H[a+8>>2]=1e3;c=Tb(1e3);H[a+16>>2]=0;H[a+4>>2]=c;break c}c=H[a+8>>2];e=H[a+16>>2]+4|0;if(c>>>0>=e>>>0){break b}while(1){c=c<<1;if(e>>>0>c>>>0){continue}break}H[a+8>>2]=c;c=tc(d,c);if(c){H[a+4>>2]=c;c=c+H[a+16>>2]|0;break c}c=Tb(H[a+8>>2]);d=H[a+4>>2];c=Ob(c,d,H[a+16>>2]);Kb(d);H[a+4>>2]=c;c=c+H[a+16>>2]|0}H[a+12>>2]=c;break a}c=H[a+12>>2]}F[c|0]=b;F[c+1|0]=b>>>8;F[c+2|0]=b>>>16;F[c+3|0]=b>>>24;H[a+12>>2]=H[a+12>>2]+4;H[a+16>>2]=H[a+16>>2]+4}function AD(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=H[a+508>>2];if((d|0)>0){while(1){c=N(b,12)+a|0;g=H[c+272>>2];a:{if(!(e|(g|0)!=225)){i=H[c+276>>2];j=H[c+268>>2];e=225;break a}h=H[c+268>>2];if(!(f|(g|0)!=254)){k=H[c+276>>2];f=254;l=h;break a}Kb(h);H[c+268>>2]=0;d=H[a+508>>2]}b=b+1|0;if((d|0)>(b|0)){continue}break}b=0;H[a+508>>2]=0;if(e){H[a+268>>2]=j;H[a+508>>2]=1;H[a+276>>2]=i;H[a+272>>2]=e;b=1}if(f){H[a+508>>2]=b+1;a=N(b,12)+a|0;H[a+276>>2]=k;H[a+272>>2]=f;H[a+268>>2]=l}return}H[a+508>>2]=0}function Z9(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-16|0;xb=d;a:{if(!og(a,292944,2)){Pb(H[a+628>>2],292920,270661,0);a=0;break a}c=Tb(32);H[a+584>>2]=c;if(c){Id(c,0,32);H[c+20>>2]=1473;H[c+4>>2]=(b|0)==34677;H[c>>2]=-1;H[a+556>>2]=1474;H[a+548>>2]=1475;H[a+516>>2]=1476;H[a+572>>2]=1477;H[a+564>>2]=1478;H[a+560>>2]=1479;H[a+552>>2]=1480;H[a+524>>2]=1481;H[c+24>>2]=H[a+672>>2];H[a+672>>2]=1482;H[c+28>>2]=H[a+668>>2];H[a+668>>2]=1483;a=1;break a}b=H[a+628>>2];H[d>>2]=H[a>>2];Pb(b,292920,271288,d);a=0}xb=d+16|0;return a|0}function EC(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=35;a:{if(!(I[a+8|0]&2)){break a}d=7;if(H[b>>2]){break a}e=H[b+4>>2];f=e;d=H[b+12>>2];if(d){f=(N(d,e)+36|0)/72|0}g=H[b+8>>2];h=g;d=23;b=H[b+16>>2];if(b){h=(N(b,g)+36|0)/72|0}b=g?h:f;f=(e?f:b)+32&-64;if(!f){break a}e=(e?b:h)+32&-64;if(!e){break a}h=H[a+28>>2];if((h|0)<=0){break a}a=H[a+32>>2];b=0;while(1){g=a+(b<<4)|0;if(!((e|0)==(H[g+12>>2]+32&-64)&(f|0)==(H[g+8>>2]+32&-64))){b=b+1|0;if((h|0)!=(b|0)){continue}break a}break}d=0;if(!c){break a}H[c>>2]=b;return 0}return d}function saa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){c=e&-2;d=e&1;h=h<<2;a=g<<1;while(1){g=0;if((e|0)!=1){while(1){H[b>>2]=I[i+1|0]|I[j+1|0]<<8|I[k+1|0]<<16|-16777216;H[b+4>>2]=I[i+3|0]|I[j+3|0]<<8|I[k+3|0]<<16|-16777216;b=b+8|0;k=k+4|0;j=j+4|0;i=i+4|0;g=g+2|0;if((g|0)!=(c|0)){continue}break}}f=f-1|0;if(d){H[b>>2]=I[i+1|0]|I[j+1|0]<<8|I[k+1|0]<<16|-16777216;k=k+2|0;j=j+2|0;i=i+2|0;b=b+4|0}b=b+h|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f){continue}break}}}function lU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;while(1){a:{if((c|0)<=(g|0)){break a}d=H[a+12>>2];e=H[a+16>>2];b:{if(d>>>0>>0){H[f+12>>2]=2147483647;H[f+8>>2]=e-d>>2;H[f+4>>2]=c-g;d=xb-16|0;xb=d;xb=d+16|0;d=xb-16|0;xb=d;xb=d+16|0;d=f+4|0;e=f+8|0;d=H[d>>2]>2]?d:e;e=f+12|0;d=H[(H[d>>2]>2]?d:e)>>2];vf(b,H[a+12>>2],d);e=d<<2;H[a+12>>2]=e+H[a+12>>2];b=b+e|0;break b}d=zb[H[H[a>>2]+40>>2]](a)|0;if((d|0)==-1){break a}H[b>>2]=d;d=1;b=b+4|0}g=d+g|0;continue}break}xb=f+16|0;return g|0}function $4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;a:{if(!c){break a}e=(J[c+4>>1]<<2)+16|0;H[d+12>>2]=e;H[d+8>>2]=49;G[d+6>>1]=768;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;G[a+16>>1]=J[a+16>>1]+1;Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],d+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],d+6|0,2);Lb(H[a+4>>2],c+4|0,4);if(!J[c+4>>1]){break a}b=0;while(1){e=H[c+8>>2]+(b<<2)|0;Lb(H[a+4>>2],e,1);Lb(H[a+4>>2],e+1|0,1);Lb(H[a+4>>2],e+2|0,1);Lb(H[a+4>>2],e+3|0,1);b=b+1|0;if(b>>>0>1]){continue}break}}xb=d+16|0}function Kga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if((b|0)>0){a:{d=H[a+24>>2];e=d?d-20|0:0;c=H[e+24>>2];if((c|0)>=(b|0)){break a}while(1){b=b-c|0;d=d?d-20|0:0;c=H[d+48>>2];c=zb[H[H[c>>2]+12>>2]](c,H[d+52>>2],1,4096,0,0)|0;if(!c){if(I[d+56|0]){c=H[a>>2];H[c+20>>2]=43;zb[H[c>>2]](a)}c=H[a>>2];H[c+20>>2]=123;zb[H[c+4>>2]](a,-1);F[H[d+52>>2]]=255;F[H[d+52>>2]+1|0]=217;c=2}F[d+56|0]=0;H[d+24>>2]=c;H[d+20>>2]=H[d+52>>2];c=H[e+24>>2];if((c|0)>=(b|0)){break a}d=H[a+24>>2];continue}}H[e+24>>2]=c-b;H[e+20>>2]=H[e+20>>2]+b}}function aL(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!I[a+632|0]){break a}c=H[a+100>>2];b=H[a+476>>2];if((b|0)!=151552){if((b|0)!=131072){break a}b=H[a+640>>2];if(b){zb[H[c+8>>2]](c,b)}G[a+636>>1]=0;H[a+640>>2]=0;if(J[a+638>>1]){b=0;while(1){d=b<<2;e=H[d+H[a+644>>2]>>2];if(e){zb[H[c+8>>2]](c,e)}H[H[a+644>>2]+d>>2]=0;b=b+1|0;if(b>>>0>1]){continue}break}}b=H[a+644>>2];if(b){zb[H[c+8>>2]](c,b)}G[a+638>>1]=0;H[a+644>>2]=0;break a}b=H[a+640>>2];if(b){zb[H[c+8>>2]](c,b)}G[a+636>>1]=0;H[a+640>>2]=0}F[a+632|0]=0}function H9(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;if((c|0)>0){a=H[a+12>>2];while(1){a:{b:{f=H[a>>2];h=f>>16;i=h&32767;if(i){d=vh((+(i|0)+.5)*.0027076061740622863+-44.3614195558365);d=h&32768?-d:d;if(!(d<=0)){break b}}H[b+8>>2]=0;H[b>>2]=0;H[b+4>>2]=0;break a}L[b+4>>2]=d;g=(+((f>>>8&255)>>>0)+.5)*.0024390243902439024;j=(+((f&255)>>>0)+.5)*.0024390243902439024;e=1/(g*6+j*-16+12);g=g*9*e;e=j*4*e;L[b>>2]=d*(g/e);L[b+8>>2]=d*((1-g-e)/e)}a=a+4|0;b=b+12|0;f=c>>>0>1;c=c-1|0;if(f){continue}break}}}function z6(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-16|0;xb=d;if(I[a+64|0]){zb[H[H[a>>2]+52>>2]](a,0);zb[H[H[a>>2]+56>>2]](a)}F[a+64|0]=1;e=b-2|0;if(e>>>0<=2){f=H[(e<<2)+397968>>2]}if((c|0)==-1){c=H[a+8>>2];c=zb[H[H[c>>2]+56>>2]](c)|0}if((b|0)==5){zb[H[H[a>>2]+60>>2]](a)}b=H[a+4>>2];H[d+12>>2]=(c|0)==1|f;zb[H[H[b>>2]+412>>2]](b,d+12|0)|0;b=H[a+4>>2];H[d+8>>2]=32;zb[H[H[b>>2]+308>>2]](b,d+8|0)|0;b=H[a+4>>2];H[d+4>>2]=4;zb[H[H[b>>2]+308>>2]](b,d+4|0)|0;a=H[a+4>>2];zb[H[H[a>>2]+352>>2]](a)|0;xb=d+16|0}function eg(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=xb-16|0;xb=g;H[g+8>>2]=b;b=0;f=6;a:{b:{if(Ig(a,g+8|0)){break b}f=4;h=rh(a);if((h|0)>=0){i=(J[H[d+8>>2]+((h&255)<<1)>>1]&2048)!=0}else{i=0}if(!i){break b}b=zb[H[H[d>>2]+36>>2]](d,h,0)|0;while(1){c:{ki(a);b=b-48|0;if(!pk(a,g+8|0)|(e|0)<2){break c}f=rh(a);if((f|0)>=0){h=(J[H[d+8>>2]+((f&255)<<1)>>1]&2048)!=0}else{h=0}if(!h){break a}e=e-1|0;b=(zb[H[H[d>>2]+36>>2]](d,f,0)|0)+N(b,10)|0;continue}break}f=2;if(!Ig(a,g+8|0)){break a}}H[c>>2]=H[c>>2]|f}xb=g+16|0;return b}function xr(a,b,c){var d=0;d=0;a:{if(H[a>>2]){break a}b:{if(c>>>0<8){break b}a=I[b|0];c:{if((a|0)!=87|I[b+1|0]!=87|(I[b+2|0]!=66|I[b+3|0]!=66)){break c}if(I[b+4|0]!=49|I[b+5|0]!=49|I[b+6|0]!=49){break c}d=1;if(I[b+7|0]==49){break a}}if(a|c>>>0<16|(I[b+1|0]|I[b+2|0]!=2)){break b}if(I[b+3|0]|I[b+4|0]!=2|(I[b+5|0]!=16|I[b+6|0]!=201)){break b}if(I[b+7|0]|I[b+8|0]!=2|(I[b+9|0]|I[b+10|0]!=200)){break b}if(I[b+11|0]!=6|I[b+12|0]!=76|(I[b+13|0]|I[b+14|0]!=2)){break b}if(I[b+15|0]){break b}return 1}d=0}return d}function rca(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;a:{e=H[a+392>>2];if(K[e+8>>2]>=K[a+284>>2]){break a}h=e+24|0;i=e+12|0;g=H[e+12>>2];while(1){f=H[a+280>>2];if(g>>>0>>0){zb[H[H[a+396>>2]+4>>2]](a,b,c,d,h,i,f);f=H[a+280>>2];g=H[i>>2]}if((g|0)!=(f|0)){break a}f=zb[H[H[a+400>>2]+4>>2]](a,h)|0;g=H[e+16>>2];if(!f){if(g){break a}H[c>>2]=H[c>>2]-1;H[e+16>>2]=1;return}if(g){H[c>>2]=H[c>>2]+1;H[e+16>>2]=0}g=0;H[e+12>>2]=0;f=H[e+8>>2]+1|0;H[e+8>>2]=f;if(f>>>0>2]){continue}break}}}function pba(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;d=I[a+11|0];e=d+7>>>3|0;a:{if(!d){d=b;break a}f=b+e|0;d=b;while(1){F[d|0]=I[c|0]+I[d|0];c=c+1|0;d=d+1|0;if(f>>>0>d>>>0){continue}break}}b=H[a+4>>2]+b|0;if(b>>>0>d>>>0){a=0-e|0;m=(b-d|0)+d|0;while(1){h=I[a+d|0];b=I[a+c|0];e=h-b|0;f=e>>31;i=I[c|0];g=i-b|0;j=g>>31;k=e+g|0;l=k>>31;n=b;b=(e^f)-f|0;e=(g^j)-j|0;f=b>>>0>>0;F[d|0]=I[d|0]+((l^k)-l>>>0<(f?b:e)>>>0?n:f?i:h);c=c+1|0;d=d+1|0;if((m|0)!=(d|0)){continue}break}}}function FD(a,b,c){var d=0;a:{if(H[a>>2]|c>>>0<32|(I[b|0]|I[b+1|0])){break a}if(I[b+2|0]|I[b+3|0]!=12|(I[b+4|0]!=106|I[b+5|0]!=80)){break a}if(I[b+6|0]!=32|I[b+7|0]!=32|(I[b+8|0]!=13|I[b+9|0]!=10)){break a}if(I[b+10|0]!=135|I[b+11|0]!=10|(I[b+12|0]|I[b+13|0])){break a}if(I[b+14|0]|I[b+16|0]!=102|(I[b+17|0]!=116|I[b+18|0]!=121)){break a}if(I[b+19|0]!=112|I[b+20|0]!=106|(I[b+21|0]!=112|I[b+22|0]!=50)){break a}if(I[b+24|0]|I[b+23|0]!=32|(I[b+25|0]|I[b+26|0])){break a}if(I[b+27|0]){break a}d=1}return d}function Bea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=H[a+452>>2];a:{b:{switch(b|0){case 0:if(H[a+84>>2]){H[c+4>>2]=1249;if(H[c+12>>2]){break a}d=c,e=zb[H[H[a+4>>2]+28>>2]](a,H[c+8>>2],0,H[c+16>>2],1)|0,H[d+12>>2]=e;break a}H[c+4>>2]=H[H[a+472>>2]+4>>2];break a;case 3:if(!H[c+8>>2]){b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}H[c+4>>2]=1250;break a;case 2:if(!H[c+8>>2]){b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}H[c+4>>2]=1251;break a;default:break b}}b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}H[c+20>>2]=0;H[c+24>>2]=0}function BH(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;b=0;h=H[a+80>>2];if(H[h+164>>2]!=H[195985]){a:{if(!c){break a}i=H[d>>2];H[f>>2]=0;if(!(zb[H[h+164>>2]](a,H[a+84>>2],i,f,H[h+20>>2])|0)){break a}while(1){b=b+1|0;if((c|0)==(b|0)){b=c;break a}d=d+e|0;i=H[d>>2];h=H[a+80>>2];f=f+g|0;H[f>>2]=0;if(zb[H[h+164>>2]](a,H[a+84>>2],i,f,H[h+20>>2])|0){continue}break}}return(b>>>0>>0?b:c)|0}a=H[a+12>>2];b=H[a+80>>2];return zb[H[b+168>>2]](a,H[a+84>>2],c,d,e,f,g,H[b+24>>2])|0}function li(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;a:{if(f&64){c=f+-64|0;b=c&31;if((c&63)>>>0>=32){c=0;b=e>>>b|0}else{c=e>>>b|0;b=((1<>>b}d=0;e=0;break a}if(!f){break a}i=d;h=64-f|0;g=h&31;if((h&63)>>>0>=32){h=i<>>32-g|e<>>0>=32){g=0;b=c>>>b|0}else{g=c>>>b|0;b=((1<>>b}b=j|b;c=g|h;g=d;d=f&31;if((f&63)>>>0>=32){h=0;d=e>>>d|0}else{h=e>>>d|0;d=((1<>>d}e=h}H[a>>2]=b;H[a+4>>2]=c;H[a+8>>2]=d;H[a+12>>2]=e}function aC(a,b,c){var d=0,e=0;d=xb-16|0;xb=d;e=H[a+200>>2];if(e&1){a:{if(e&4){Xb(a,267870);mc(a,c);break a}if(!(!b|!(I[b+8|0]&128))){Xb(a,267894);mc(a,c);break a}if((c|0)!=9){Xb(a,267915);mc(a,c);break a}c=d+7|0;vd(a,c,9);xc(a,c,9);if(mc(a,0)){break a}c=a;a=I[d+7|0]|I[d+8|0]<<8|(I[d+9|0]<<16|I[d+10|0]<<24);e=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);a=I[d+11|0]|I[d+12|0]<<8|(I[d+13|0]<<16|I[d+14|0]<<24);Cq(c,b,e,a<<24|a<<8&16711680|(a>>>8&65280|a>>>24),I[d+15|0])}xb=d+16|0;return}hc(a,267845);X()}function nda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=H[a+20>>2];if((d|0)!=102){e=H[a>>2];H[e+24>>2]=d;H[e+20>>2]=21;zb[H[H[a>>2]>>2]](a)}e=H[a+32>>2];f=H[a+260>>2];if(e>>>0<=f>>>0){b=H[a>>2];H[b+20>>2]=126;zb[H[b+4>>2]](a,-1);return 0}d=H[a+8>>2];if(d){H[d+8>>2]=e;H[d+4>>2]=f;zb[H[d>>2]](a)}d=H[a+388>>2];if(H[d+12>>2]){zb[H[d+4>>2]](a)}d=c;c=H[a+272>>2]<<3;if(d>>>0>>0){d=H[a>>2];H[d+20>>2]=24;zb[H[d>>2]](a)}if(!(zb[H[H[a+400>>2]+4>>2]](a,b)|0)){return 0}H[a+260>>2]=c+H[a+260>>2];return c|0}function ZE(a,b){var c=0,d=0,e=0;c=H[a+100>>2];d=H[c+80>>2]+N(H[c+64>>2],20)|0;c=J[d+12>>1]|16;if(I[a+140|0]){c=Ye(H[a+108>>2],b)|c&112}G[d+12>>1]=c;c=H[a+100>>2];if(ec(c,1,1)){a=H[c+64>>2];a:{if(a>>>0>2]){d=H[c+72>>2];e=H[c+84>>2];a=H[c+80>>2]+N(a,20)|0;break a}e=H[c+84>>2];d=H[c+72>>2];a=e+N(d?d-1|0:0,20)|0}d=N(d,20)+e|0;e=H[a+4>>2];H[d>>2]=H[a>>2];H[d+4>>2]=e;H[d+16>>2]=H[a+16>>2];e=H[a+12>>2];H[d+8>>2]=H[a+8>>2];H[d+12>>2]=e;H[d>>2]=b;H[c+64>>2]=H[c+64>>2]+1;H[c+72>>2]=H[c+72>>2]+1}}function PV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-32|0;xb=e;a:{b:{if(!(c?b:0)){F[a|0]=0;F[a+11|0]=0;break b}H[e+28>>2]=0;H[e+24>>2]=0;ij(b,c,e+28|0,e+24|0,d);b=H[e+24>>2];if(b>>>0>=4294967280){break a}d=H[e+28>>2];c:{d:{if(b>>>0>=11){f=b+16&-16;c=Qb(f);H[e+16>>2]=f|-2147483648;H[e+8>>2]=c;H[e+12>>2]=b;break d}F[e+19|0]=b;c=e+8|0;if(!b){break c}}Ob(c,d,b)}F[b+c|0]=0;b=H[e+28>>2];if(b){Kb(b)}b=H[e+12>>2];H[a>>2]=H[e+8>>2];H[a+4>>2]=b;H[a+8>>2]=H[e+16>>2]}xb=e+32|0;return}qd(e+8|0);X()}function Rja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=H[b+68>>2];if(d){g=H[b+80>>2];b=0;while(1){e=N(b,20)+g|0;f=H[e>>2];c=Nr(f);a=16;a:{b:{switch(f-6042|0){case 47:case 48:case 50:a=20;break a;case 44:case 49:case 51:case 52:case 53:case 54:case 55:a=21;break a;case 45:case 46:case 57:case 67:a=22;break a;case 0:break a;default:break b}}a=c;if((c&255)!=7){break a}a=7;c=(c>>>8|0)-3|0;if((c&255)>>>0>8){break a}a=I[(c<<24>>24)+137048|0]}F[e+18|0]=a;b=b+1|0;if((d|0)!=(b|0)){continue}break}}}function yea(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;var h=0,i=0;b=H[a+452>>2];c=H[b+24>>2];a:{if(c){d=H[b+12>>2];break a}d=zb[H[H[a+4>>2]+28>>2]](a,H[b+8>>2],H[b+20>>2],H[b+16>>2],0)|0;H[b+12>>2]=d;c=H[b+24>>2]}h=H[b+16>>2]-c|0;i=H[f>>2];g=g-i|0;g=g>>>0>h>>>0?h:g;h=H[a+116>>2]-H[b+20>>2]|0;g=g>>>0>>0?g:h;zb[H[H[a+480>>2]+4>>2]](a,(c<<2)+d|0,(i<<2)+e|0,g);H[f>>2]=g+H[f>>2];a=g+H[b+24>>2]|0;H[b+24>>2]=a;c=a;a=H[b+16>>2];if(c>>>0>=a>>>0){H[b+24>>2]=0;H[b+20>>2]=a+H[b+20>>2]}}function mo(a,b){var c=0,d=0,e=0;c=H[b+4>>2];if(c){if(H[b>>2]){while(1){e=d<<4;c=H[(e+c|0)+8>>2];if(c){zb[H[a+8>>2]](a,c)}c=e+H[b+4>>2]|0;H[c+8>>2]=0;c=H[c+12>>2];if(c){zb[H[a+8>>2]](a,c)}c=H[b+4>>2];H[(e+c|0)+12>>2]=0;d=d+1|0;if(d>>>0>2]){continue}break}}if(c){zb[H[a+8>>2]](a,c)}H[b+4>>2]=0}c=H[b+16>>2];if(c){if(H[b+12>>2]){d=0;while(1){e=d<<2;c=H[e+c>>2];if(c){zb[H[a+8>>2]](a,c)}c=H[b+16>>2];H[e+c>>2]=0;d=d+1|0;if(d>>>0>2]){continue}break}}if(c){zb[H[a+8>>2]](a,c)}H[b+16>>2]=0}}function M7(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;b=H[a+584>>2];c=H[b+144>>2];if(!c){zb[H[a+524>>2]](a)|0;c=H[b+144>>2]}G[b+68>>1]=258;H[b+64>>2]=33488905;H[b+132>>2]=0;H[b+136>>2]=0;H[b+124>>2]=1e4;H[b+128>>2]=0;H[b+72>>2]=0;H[b+76>>2]=0;H[b+140>>2]=(H[a+596>>2]+H[a+600>>2]|0)-5;a=c+72e3|0;d=8993;while(1){H[a>>2]=-1;H[a-8>>2]=-1;H[a-16>>2]=-1;H[a-24>>2]=-1;H[a-32>>2]=-1;H[a-40>>2]=-1;H[a-48>>2]=-1;H[a-56>>2]=-1;a=a+-64|0;e=d>>>0>7;d=d-8|0;if(e){continue}break}H[c>>2]=-1;H[b+120>>2]=65535;return 1}function Jf(a,b){var c=0,d=0,e=0;c=H[a+20>>2];if(!(I[a+13|0]?c:0)){return Rb(b,H[a+16>>2])}d=H[a+24>>2];c=c-1|0;e=c>>>0>>0?d:c;while(1){a:{c=d;if((e|0)==(c|0)){c=e;break a}d=c+1|0;if(H[(N(d,20)+a|0)+36>>2]<=(b|0)){continue}}break}b:{c:{if(c){while(1){d=H[(N(c,20)+a|0)+36>>2];if((d|0)<=(b|0)){break c}c=c-1|0;if(c){continue}break}}c=0;H[a+24>>2]=0;d=H[a+36>>2];if((d|0)<=(b|0)){break b}return Rb(b-d|0,H[a+16>>2])+H[a+40>>2]|0}H[a+24>>2]=c}a=N(c,20)+a|0;return Rb(b-d|0,H[a+44>>2])+H[a+40>>2]|0}function Ih(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;a:{if(!a){f=35;break a}f=38;if(!b){break a}d=H[a+40>>2];if(!d){break a}f=6;g=H[a+36>>2];if((g|0)<=0){break a}g=(g<<2)+d|0;while(1){b:{if(H[d>>2]!=(b|0)){break b}c=H[b>>2];c:{if(!c){break c}c=H[c+96>>2];h=H[H[c>>2]+32>>2];if(!h){break c}c=zb[h|0](c,9712)|0;if(!c){break c}if(zb[H[c>>2]](b,e+8|0)|0){break c}if(H[e+12>>2]==14){break b}}H[a+92>>2]=H[d>>2];f=0;break a}d=d+4|0;if(g>>>0>d>>>0){continue}break}}xb=e+16|0;return f|0}function rU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;while(1){a:{if((c|0)<=(g|0)){break a}d=H[a+12>>2];f=H[a+16>>2];b:{if(d>>>0>>0){H[e+12>>2]=2147483647;H[e+8>>2]=f-d;H[e+4>>2]=c-g;d=xb-16|0;xb=d;xb=d+16|0;d=xb-16|0;xb=d;xb=d+16|0;d=e+4|0;f=e+8|0;d=H[d>>2]>2]?d:f;f=e+12|0;d=H[(H[d>>2]>2]?d:f)>>2];Jg(b,H[a+12>>2],d);H[a+12>>2]=H[a+12>>2]+d;break b}d=zb[H[H[a>>2]+40>>2]](a)|0;if((d|0)==-1){break a}F[b|0]=d;d=1}b=b+d|0;g=d+g|0;continue}break}xb=e+16|0;return g|0}function Gi(a){var b=0,c=0,d=0,e=0;a:{b:{c:{d=H[a+128>>2];switch(d|0){case 0:break a;case 1:break b;default:break c}}while(1){b=e;e=b+1|0;c=d>>>0>3;d=d>>1;if(c){continue}break}if(b>>>0<14){break b}c=H[a+120>>2];b=H[c>>2];H[b+20>>2]=41;zb[H[b>>2]](c)}c=e<<4;b=H[a+124>>2];d:{if(H[a+108>>2]){b=H[((b<<2)+a|0)+92>>2]+(c<<2)|0;H[b>>2]=H[b>>2]+1;break d}b=H[((b<<2)+a|0)+60>>2];Fi(a,H[b+(c<<2)>>2],F[(b+c|0)+1024|0])}if(e){Fi(a,H[a+128>>2],e)}H[a+128>>2]=0;IC(a,H[a+136>>2],H[a+132>>2]);H[a+132>>2]=0}}function qB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=xb-16|0;xb=h;e=H[b+4>>2];d=J[b+2>>1];if(d>>>0<=13){d=H[(d<<2)+290752>>2]}else{d=0}d=Md(a,e,d,288080);if(d){a:{if(!re(a,b,d)){break a}i=H[b+4>>2];if(!i){break a}while(1){e=d+(f<<3)|0;g=H[e>>2];e=H[e+4>>2];if(!e){c=H[a>>2];f=H[a+628>>2];a=H[rd(a,J[b>>1])+16>>2];H[h+4>>2]=g;H[h>>2]=a;Pb(f,c,288171,h);g=0;break a}L[(f<<2)+c>>2]=J[b+2>>1]==5?O(O(g>>>0)/O(e>>>0)):O(O(g|0)/O(e|0));g=1;f=f+1|0;if((i|0)!=(f|0)){continue}break}}Kb(d)}xb=h+16|0;return g}function ej(a){var b=0,c=0,d=0;if(!a){if(H[196232]){b=ej(H[196232])}if(H[196194]){b=ej(H[196194])|b}a=H[197036];if(a){while(1){if(H[a+20>>2]!=H[a+28>>2]){b=ej(a)|b}a=H[a+56>>2];if(a){continue}break}}return b}d=H[a+76>>2]>=0;a:{b:{if(H[a+20>>2]==H[a+28>>2]){break b}zb[H[a+36>>2]](a,0,0)|0;if(H[a+20>>2]){break b}b=-1;break a}b=H[a+8>>2];c=H[a+4>>2];if((b|0)!=(c|0)){b=c-b|0;zb[H[a+40>>2]](a,b,b>>31,1)|0}b=0;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;if(!d){break a}}return b}function dc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=2147483647;a:{if(!b){break a}c=a>>31;c=(c^a)-c|0;d=b>>31;d=(d^b)-d|0;if(c>>>0<=(d>>>17^65535)>>>0){e=((c<<16)+(d>>>1|0)>>>0)/(d>>>0)|0;break a}g=d>>>1|0;f=g+(c<<16)|0;c=(c>>>16|0)+(f>>>0>>0)|0;if(c>>>0>=d>>>0){break a}g=Q(c);h=32-g|0;c=f>>>h|c<>>0)/(d>>>0)|0;i=c-N(d,e)|0;c=f<>>31;i=f-(d>>>0>f>>>0?0:d)|0;e=e<<1|d>>>0<=f>>>0;c=c<<1;h=h-1|0;if(h){continue}break}}a=a>>31|1;return(((b|0)<0?0-a|0:a)|0)<0?0-e|0:e}function Be(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=H[a+8>>2];c=H[a+4>>2];if(d>>>0>c+3>>>0){e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b>>2]=e;if(c+3>>>0>>0){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+4>>2]=f;f=0;a:{if(c+3>>>0>=d>>>0){e=0;break a}e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+8>>2]=e;if(c+3>>>0>>0){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[a+4>>2]=c+4}H[b+12>>2]=f;return a|0}function _F(a){var b=0,c=0,d=0,e=0,f=0,g=0;if((a|0)==163632){return 0}b=I[a|0]|I[a+1|0]<<8;if(!b){return 2}c=(b<<8|b>>>8)&65535;b=I[a+2|0];f=N(c+1|0,b);a:{if(!b){b=0;break a}d=b&3;a=(N(b,c)+a|0)+3|0;if(b-1>>>0<3){b=0}else{g=b&252;b=0;while(1){c=a;a=a+4|0;b=b+4|0;if((g|0)!=(b|0)){continue}break}b=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24)}if(!d){break a}while(1){b=I[a|0]|b<<8;a=a+1|0;e=e+1|0;if((e|0)!=(d|0)){continue}break}}return(b+f|0)+2|0}function SS(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=xb-16|0;xb=e;a:{b:{c:{if((a|0)!=(b|0)){d:{e:{f=I[a|0];if((f|0)!=45){break e}a=a+1|0;if((b|0)!=(a|0)){break e}break d}h=H[197018];H[197018]=0;a=ap(a,e+12|0,d,Od());d=yb;g=H[197018];f:{if(g){if(H[e+12>>2]!=(b|0)){break f}if((g|0)==68){break c}break b}H[197018]=h;if(H[e+12>>2]==(b|0)){break b}}}}H[c>>2]=4;b=0;a=0;break a}H[c>>2]=4;b=-1;a=-1;break a}c=(f|0)==45;b=c?0-a|0:a;a=c?0-(d+((a|0)!=0)|0)|0:d}xb=e+16|0;yb=a;return b|0}function Naa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;if(!(!f|!e)){d=H[a+60>>2];c=e-1|0;l=e&1;k=J[a+26>>1];m=N(k,e)<<1;n=h<<2;while(1){a:{if(!l){h=e;a=i;break a}H[b>>2]=H[H[(I[i+1|0]<<2)+d>>2]>>2];b=b+4|0;h=c;a=(k<<1)+i|0}f=f-1|0;if((e|0)!=1){while(1){H[b>>2]=H[H[(I[a+1|0]<<2)+d>>2]>>2];j=a;a=k<<1;j=j+a|0;H[b+4>>2]=H[H[(I[j+1|0]<<2)+d>>2]>>2];a=a+j|0;b=b+8|0;h=h-2|0;if(h){continue}break}}i=(i+m|0)+g|0;b=b+n|0;if(f){continue}break}}}function N7(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=H[a+584>>2];e=J[c+64>>1];d=H[c+72>>2];f=H[c+76>>2];b=H[a+604>>2];if(b>>>0>K[c+140>>2]){H[a+608>>2]=b-H[a+596>>2];Uc(a);b=H[a+596>>2]}g=H[c+120>>2];if((g|0)!=65535){d=g|d<>f;if((g|0)<16){b=b+1|0}else{f=g-16|0;F[b+1|0]=d>>f;b=b+2|0}H[c+120>>2]=65535}d=d<>c;if((e|0)<16){b=b+1|0}else{c=e-16|0;F[b+1|0]=d>>c;b=b+2|0}if((c|0)>0){F[b|0]=d<<8-c;b=b+1|0}H[a+608>>2]=b-H[a+596>>2];return 1}function $s(a,b){var c=0,d=0,e=0,f=0;f=H[a+16>>2];a:{if(!f){break a}if(!H[a+12>>2]){c=f;break a}c=f;while(1){f=e<<2;c=H[f+c>>2];if(c){zb[H[b+8>>2]](b,c)}c=H[a+16>>2];H[f+c>>2]=0;e=e+1|0;if(e>>>0>2]){continue}break}}if(c){zb[H[b+8>>2]](b,c)}H[a+16>>2]=0;c=H[a+4>>2];b:{if(!c){break b}if(!H[a>>2]){d=c;break b}e=0;d=c;while(1){c=e<<3;d=H[(c+d|0)+4>>2];if(d){zb[H[b+8>>2]](b,d)}d=H[a+4>>2];H[(c+d|0)+4>>2]=0;e=e+1|0;if(e>>>0>2]){continue}break}}if(d){zb[H[b+8>>2]](b,d)}H[a+4>>2]=0}function Wka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=H[a+712>>2];a:{if(I[c+24|0]==2){c=nf(Vd(H[H[a+96>>2]+4>>2],9005),9996,0);if(!c){break a}c=H[c+4>>2];if(!c){break a}return zb[c|0](a,b)|0}e=nf(H[a+96>>2],10901,1);if(!e|!H[c+20>>2]){break a}while(1){a=J[H[c+1188>>2]+(d<<1)>>1];b:{c:{if(a>>>0>=391){a=a-391|0;if(a>>>0>=K[c+1356>>2]){break b}a=H[H[c+1360>>2]+(a<<2)>>2];break c}a=zb[H[e+20>>2]](a)|0}if(!a){break b}if(!fc(b,a)){break a}}d=d+1|0;if(d>>>0>2]){continue}break}d=0}return d|0}function Ov(a,b){var c=0,d=0,e=0;d=xb-16|0;xb=d;e=H[197059];if(H[b+72>>2]<=0){Pv(b)}H[197059]=H[b+136>>2];a:{b:{c:{if(a>>>0<=127){d:{if(H[b+80>>2]==(a|0)){break d}c=H[b+20>>2];if((c|0)==H[b+16>>2]){break d}H[b+20>>2]=c+1;F[c|0]=a;break a}a=qm(b,a);break c}c=H[b+20>>2];if(K[b+16>>2]>c+4>>>0){c=km(c,a);if((c|0)<0){break b}H[b+20>>2]=c+H[b+20>>2];break c}c=km(d+12|0,a);if((c|0)<0){break b}if(pm(d+12|0,c,b)>>>0>>0){break b}}if((a|0)!=-1){break a}}H[b>>2]=H[b>>2]|32}H[197059]=e;xb=d+16|0}function Gn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{b=H[c+68>>2];if(!b){break a}a=H[c+80>>2];c=0;if(b-1>>>0>=7){f=b&-8;while(1){F[(N(c,20)+a|0)+15|0]=0;F[(N(c|1,20)+a|0)+15|0]=0;F[(N(c|2,20)+a|0)+15|0]=0;F[(N(c|3,20)+a|0)+15|0]=0;F[(N(c|4,20)+a|0)+15|0]=0;F[(N(c|5,20)+a|0)+15|0]=0;F[(N(c|6,20)+a|0)+15|0]=0;F[(N(c|7,20)+a|0)+15|0]=0;c=c+8|0;d=d+8|0;if((f|0)!=(d|0)){continue}break}}b=b&7;if(!b){break a}while(1){F[(N(c,20)+a|0)+15|0]=0;c=c+1|0;e=e+1|0;if((b|0)!=(e|0)){continue}break}}}function B6(a,b,c){a=a|0;b=b|0;c=c|0;zb[H[H[a>>2]+76>>2]](a,1,1);zb[H[H[a>>2]+32>>2]](a,M[b>>3],M[b+8>>3]);zb[H[H[a>>2]+36>>2]](a,M[b+16>>3],M[b+8>>3]);zb[H[H[a>>2]+36>>2]](a,M[b+16>>3],M[b+24>>3]);zb[H[H[a>>2]+36>>2]](a,M[b>>3],M[b+24>>3]);zb[H[H[a>>2]+48>>2]](a);zb[H[H[a>>2]+32>>2]](a,M[c>>3],M[c+8>>3]);zb[H[H[a>>2]+36>>2]](a,M[c+16>>3],M[c+8>>3]);zb[H[H[a>>2]+36>>2]](a,M[c+16>>3],M[c+24>>3]);zb[H[H[a>>2]+36>>2]](a,M[c>>3],M[c+24>>3]);zb[H[H[a>>2]+48>>2]](a);zb[H[H[a>>2]+80>>2]](a,1)}function xL(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;H[c>>2]=-1;H[d>>2]=-1;f=J[a+340>>1];if(f){h=H[a+356>>2];a=0;while(1){e=N(a,20)+h|0;a:{if(J[e+6>>1]!=(b|0)|!J[e+8>>1]){break a}b:{c:{switch(J[e>>1]-1|0){case 2:if(J[e+2>>1]>1){break a}g=c;if(J[e+4>>1]==1033|H[c>>2]==-1){break b}break a;case 0:break c;default:break a}}if(J[e+2>>1]){break a}g=d;if(!J[e+4>>1]){break b}if(H[d>>2]!=-1){break a}}H[g>>2]=a}a=a+1|0;if((f|0)!=(a|0)){continue}break}}return(H[c>>2]<0?H[d>>2]>=0:1)|0}function jd(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0;f=Qb(24);M[f+16>>3]=c;M[f+8>>3]=b;H[f>>2]=424976;d=H[a+8>>2];if((d|0)!=H[a+12>>2]){H[d>>2]=f;H[a+8>>2]=d+4;return 1}a:{e=a+4|0;i=H[e>>2];g=d-i|0;h=g>>2;d=h+1|0;if(d>>>0<1073741824){e=g>>1;e=g>>>0<2147483644?d>>>0>>0?e:d:1073741823;if(e){if(e>>>0>=1073741824){break a}d=Qb(e<<2)}else{d=0}h=d+(h<<2)|0;H[h>>2]=f;if((g|0)>0){Ob(d,i,g)}H[a+12>>2]=d+(e<<2);H[a+8>>2]=h+4;H[a+4>>2]=d;if(i){Kb(i)}return 1}bd(e);X()}Td(400840);X()}function Qea(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;var h=0,i=0,j=0;h=xb-16|0;xb=h;d=H[a+472>>2];a:{if(H[d+36>>2]){g=1;ug(d+32|0,0,(H[f>>2]<<2)+e|0,0,1,H[d+40>>2]);H[d+36>>2]=0;break a}j=H[d+44>>2];i=e;e=H[f>>2];i=i+(e<<2)|0;H[h+8>>2]=H[i>>2];e=g-e|0;e=e>>>0>j>>>0?j:e;g=e>>>0<2?e:2;if(g>>>0>=2){e=H[i+4>>2]}else{H[d+36>>2]=1;e=H[d+32>>2]}H[h+12>>2]=e;zb[H[d+12>>2]](a,b,H[c>>2],h+8|0)}H[f>>2]=H[f>>2]+g;H[d+44>>2]=H[d+44>>2]-g;if(!H[d+36>>2]){H[c>>2]=H[c>>2]+1}xb=h+16|0}function Qd(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0;f=Qb(24);M[f+16>>3]=c;M[f+8>>3]=b;H[f>>2]=424872;d=H[a+8>>2];if((d|0)!=H[a+12>>2]){H[d>>2]=f;H[a+8>>2]=d+4;return 1}a:{e=a+4|0;i=H[e>>2];g=d-i|0;h=g>>2;d=h+1|0;if(d>>>0<1073741824){e=g>>1;e=g>>>0<2147483644?d>>>0>>0?e:d:1073741823;if(e){if(e>>>0>=1073741824){break a}d=Qb(e<<2)}else{d=0}h=d+(h<<2)|0;H[h>>2]=f;if((g|0)>0){Ob(d,i,g)}H[a+12>>2]=d+(e<<2);H[a+8>>2]=h+4;H[a+4>>2]=d;if(i){Kb(i)}return 1}bd(e);X()}Td(400840);X()}function wca(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+400>>2];H[c+8>>2]=0;d=1;d=H[a+288>>2]<=1?H[H[a+292>>2]+(H[a+284>>2]==1?76:12)>>2]:d;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=d;a:{switch(b|0){case 0:if(H[c+64>>2]){b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}H[c+4>>2]=1386;return;case 3:if(!H[c+64>>2]){b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}H[c+4>>2]=1387;return;case 2:if(!H[c+64>>2]){b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}H[c+4>>2]=1388;return;default:break a}}b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}function Pj(a){var b=0;a:{if(!a|!H[a>>2]){break a}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break a}H[a>>2]=-57005;b=H[a+8>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}b=H[a+80>>2];if(b){zb[b|0](H[a+48>>2])}b=H[a+84>>2];if(b){zb[b|0](H[a+52>>2])}b=H[a+88>>2];if(b){zb[b|0](H[a+56>>2])}b=H[a+92>>2];if(b){zb[b|0](H[a+60>>2])}b=H[a+96>>2];if(b){zb[b|0](H[a- -64>>2])}b=H[a+100>>2];if(b){zb[b|0](H[a+68>>2])}b=H[a+104>>2];if(b){zb[b|0](H[a+72>>2])}b=H[a+108>>2];if(b){zb[b|0](H[a+76>>2])}Pj(H[a+12>>2]);Kb(a)}}function jq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=I[a+11|0];e=c<<24>>24;g=I[b+11|0];f=g<<24>>24;c=(e|0)<0?H[a+4>>2]:c;d=0;a:{if((c|0)!=(((f|0)<0?H[b+4>>2]:g)|0)){break a}if(!c){return 1}e=(e|0)<0?H[a>>2]:a;a=H[e>>2];g=a-65>>>0<26?a|32:a;b=(f|0)<0?H[b>>2]:b;a=H[b>>2];d=0;if((g|0)!=((a-65>>>0<26?a|32:a)|0)){break a}while(1){h=h+1|0;if((c|0)!=(h|0)){f=h<<2;a=H[f+e>>2];d=a-65>>>0<26?a|32:a;a=H[b+f>>2];if((d|0)==((a-65>>>0<26?a|32:a)|0)){continue}}break}d=c>>>0<=h>>>0}return d|0}function fia(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=xb-16|0;xb=e;a:{b:{c:{if(!a){break c}f=ac(b);if(f>>>0>=4294967280){break a}d:{e:{if(f>>>0>=11){h=f+16&-16;g=Qb(h);H[e+8>>2]=h|-2147483648;H[e>>2]=g;H[e+4>>2]=f;break e}F[e+11|0]=f;g=e;if(!f){break d}}Ob(g,b,f)}F[f+g|0]=0;H[197455]=0;ka(897,a|0,e|0,c|0,d|0);a=H[197455];H[197455]=0;if((a|0)==1){break b}if(F[e+11|0]>=0){break c}Kb(H[e>>2])}xb=e+16|0;return}a=$()|0;_()|0;if(F[e+11|0]<0){Kb(H[e>>2])}ea(a|0);X()}qd(e);X()}function ru(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=H[a+736>>2];a:{if(!d){c=Si(a,0);if(c){break a}d=H[a+736>>2]}c=6;if(J[a+14>>1]>>0){break a}b:{if(b){f=H[a+100>>2];g=H[d+12>>2];d=H[g+16>>2]+N(b,12)|0;c=zb[H[H[a+540>>2]+144>>2]](a,J[d-8>>1],e+12|0)|0;if(c){break a}c=H[a+24>>2];if(c){zb[H[f+8>>2]](f,c)}H[a+24>>2]=H[e+12>>2];c=no(a,H[g>>2],H[d-12>>2]);if(c){c=(c|0)==-1?0:c;break a}c=0;break b}c=no(a,0,0)}G[a+6>>1]=b;H[a+8>>2]=H[a+8>>2]&-32769}xb=e+16|0;return c|0}function WS(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=xb-16|0;xb=e;a:{b:{c:{d:{if((a|0)!=(b|0)){e:{f:{f=I[a|0];if((f|0)!=45){break f}a=a+1|0;if((b|0)!=(a|0)){break f}break e}h=H[197018];H[197018]=0;a=ap(a,e+12|0,d,Od());d=yb;g=H[197018];g:{if(g){if(H[e+12>>2]!=(b|0)){break g}if((g|0)==68){break c}break d}H[197018]=h;if(H[e+12>>2]==(b|0)){break d}}}}H[c>>2]=4;a=0;break a}if(!d&a>>>0<=65535){break b}}H[c>>2]=4;a=65535;break a}a=(f|0)==45?0-a|0:a}xb=e+16|0;return a&65535}function u8(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=xb-16|0;xb=e;f=c;g=H[a+584>>2];c=H[g+840>>2];d=(f|0)/(c|0)|0;if((f|0)!=(N(d,c)|0)){sc(H[a+628>>2],H[a>>2],287581,0)}if(!(I[a+13|0]&4)){c=H[a+60>>2];f=H[a+472>>2];d=c>>>0>>0?c-f|0:d}c=1;a:{if((d|0)<=0){break a}H[e+12>>2]=b;c=0;if((WA(g,e+12|0)|0)!=1){break a}while(1){if(d>>>0<2){c=1;break a}H[a+472>>2]=H[a+472>>2]+1;b=H[g+840>>2]+b|0;H[e+12>>2]=b;d=d-1|0;if((WA(g,e+12|0)|0)==1){continue}break}}xb=e+16|0;return c|0}function je(a,b,c){var d=0,e=0,f=0;a:{if(!a){break a}d=G[a+2>>1];if((d|0)<=0){break a}a=H[a+4>>2];if(d-1>>>0>=3){f=d&-4;while(1){H[a>>2]=H[a>>2]+b;H[a+4>>2]=H[a+4>>2]+c;H[a+8>>2]=H[a+8>>2]+b;H[a+16>>2]=H[a+16>>2]+b;H[a+24>>2]=H[a+24>>2]+b;H[a+12>>2]=H[a+12>>2]+c;H[a+20>>2]=H[a+20>>2]+c;H[a+28>>2]=H[a+28>>2]+c;a=a+32|0;e=e+4|0;if((f|0)!=(e|0)){continue}break}}d=d&3;if(!d){break a}e=0;while(1){H[a>>2]=H[a>>2]+b;H[a+4>>2]=H[a+4>>2]+c;a=a+8|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}}function aT(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=xb-16|0;xb=e;a:{b:{c:{if((a|0)!=(b|0)){g=H[197018];H[197018]=0;a=Vw(a,e+12|0,d,Od());d=yb;f=H[197018];d:{if(f){if(H[e+12>>2]!=(b|0)){break d}if((f|0)==68){break b}break c}H[197018]=g;if(H[e+12>>2]==(b|0)){break c}}}H[c>>2]=4;b=0;break a}if((d|0)<0&a>>>0<2147483648|(d|0)<-1|(a>>>0>2147483647&(d|0)>=0|(d|0)>0)){break b}b=a;break a}H[c>>2]=4;b=2147483647;if(!!a&(d|0)>=0|(d|0)>0){break a}b=-2147483648}xb=e+16|0;return b|0}function Tla(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=H[b+12>>2];a:{if(a){break a}while(1){e=H[b>>2];if(!e){a=163632;break a}b:{c:{a=oc(1,48);if(a){Wn(a,e);e=H[b+12>>2];H[b+12>>2]=e?e:a;if(!e){break a}e=H[a+44>>2];H[197455]=0;ia(579,e|0);e=H[197455];H[197455]=0;if((e|0)==1){break c}Kb(a);break b}a=163632;e=H[b+12>>2];H[b+12>>2]=e?e:163632;if(e){break b}break a}ha(0)|0;_()|0;Zb();X()}a=H[b+12>>2];if(!a){continue}break}}b=H[a+8>>2];if(!b){return 0}return zb[b|0](H[a+12>>2],c,d)|0}function Pn(a){var b=0,c=0;H[197455]=0;wG(a);b=H[197455];H[197455]=0;if((b|0)!=1){H[a+168>>2]=0;Kb(H[a+172>>2]);H[a+172>>2]=0;H[a+164>>2]=0;H[a+168>>2]=0;H[a+100>>2]=0;Kb(H[a+104>>2]);H[a+104>>2]=0;H[a+96>>2]=0;H[a+100>>2]=0;b=H[a+32>>2];if(b){while(1){b=H[a+36>>2]+(b<<5)|0;H[b-12>>2]=0;c=b-8|0;Kb(H[c>>2]);H[c>>2]=0;b=b-16|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+32>>2]-1|0;H[a+32>>2]=b;if(b){continue}break}}Kb(H[a+36>>2]);H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;return}ha(0)|0;_()|0;Zb();X()}function Pl(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=xb-16|0;xb=h;if(1073741807-b>>>0>=c>>>0){i=I[a+11|0]>>>7|0?H[a>>2]:a;a:{if(b>>>0<536870887){H[h+8>>2]=b<<1;H[h+12>>2]=b+c;c=xb-16|0;xb=c;xb=c+16|0;c=h+8|0;g=h+12|0;c=H[(K[g>>2]>2]?c:g)>>2];if(c>>>0>=2){g=c+4&-4;c=g-1|0;c=(c|0)==2?g:c}else{c=1}break a}c=1073741806}g=c+1|0;c=Vv(g);if(e){vf(c,i,e)}if((d|0)!=(e|0)){j=e<<2;vf((j+c|0)+(f<<2)|0,i+j|0,d-e|0)}if((b|0)!=1){Zv(i)}H[a>>2]=c;H[a+8>>2]=g|-2147483648;xb=h+16|0;return}qd(a);X()}function aq(a,b){var c=0,d=0,e=0,f=0;d=H[a+8>>2];c=H[a+4>>2];if(d>>>0>c+3>>>0){e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b>>2]=e;if(c+3>>>0>>0){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+4>>2]=f;f=0;a:{if(c+3>>>0>=d>>>0){e=0;break a}e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+8>>2]=e;if(c+3>>>0>>0){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[a+4>>2]=c+4}H[b+12>>2]=f;Be(a,b+16|0)}function h5(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=(H[c+8>>2]+H[c+16>>2]|0)+32|0;H[e+12>>2]=f;H[e+8>>2]=94;H[a+8>>2]=H[a+8>>2]+f;H[a+12>>2]=H[a+12>>2]+1;G[a+16>>1]=J[a+16>>1]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],c+16|0,4);b=H[c+8>>2];if(b){Lb(H[a+4>>2],H[d+4>>2],b)}b=H[c+16>>2];if(b){Lb(H[a+4>>2],H[d+4>>2]+H[c+8>>2]|0,b)}xb=e+16|0}function g5(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=(H[c+8>>2]+H[c+16>>2]|0)+32|0;H[e+12>>2]=f;H[e+8>>2]=93;H[a+8>>2]=H[a+8>>2]+f;H[a+12>>2]=H[a+12>>2]+1;G[a+16>>1]=J[a+16>>1]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],c+16|0,4);b=H[c+8>>2];if(b){Lb(H[a+4>>2],H[d+4>>2],b)}b=H[c+16>>2];if(b){Lb(H[a+4>>2],H[d+4>>2]+H[c+8>>2]|0,b)}xb=e+16|0}function Wf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!H[a+4>>2]|!H[a+44>>2]){break a}if(!(!((b|c)<0|H[a+16>>2]<=(b|0))&H[a+20>>2]>(c|0))){d=H[a+336>>2];if((d|0)>=0){break a}d=I[H[a+56>>2]];break a}e=J[a+26>>1];if((e|0)==8){d=I[H[a+56>>2]+(N(H[a+52>>2],c)+b|0)|0];break a}a=I[H[a+56>>2]+(N(H[a+52>>2],c)+(N(b,e)>>3)|0)|0];b:{switch(e-1|0){case 3:c=a;a=4-((b|0)%2<<2)&252;d=(c&15<>>a|0;break a;case 0:break b;default:break a}}c=a;a=7-((b|0)%8|0)|0;d=(c&1<>>a|0}return d&255}function OU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-32|0;xb=e;H[e+16>>2]=b;d=H[a+48>>2];H[e+20>>2]=c-((d|0)!=0);g=H[a+44>>2];H[e+28>>2]=d;H[e+24>>2]=g;a:{b:{d=ob(H[a+60>>2],e+16|0,2,e+12|0)|0;if(d){H[197018]=d;d=-1}else{d=0}if(d){b=32}else{d=H[e+12>>2];if((d|0)>0){break b}b=d?32:16}H[a>>2]=b|H[a>>2];break a}g=H[e+20>>2];if(g>>>0>=d>>>0){f=d;break a}f=H[a+44>>2];H[a+4>>2]=f;H[a+8>>2]=f+(d-g|0);if(H[a+48>>2]){H[a+4>>2]=f+1;F[(b+c|0)-1|0]=I[f|0]}f=c}xb=e+32|0;return f|0}function Ija(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b=H[c+68>>2];if(!b){break a}a=H[c+80>>2];c=0;if(b-1>>>0>=3){e=b&-4;while(1){d=N(c,20)+a|0;G[d+12>>1]=J[d+12>>1]&65519;d=N(c|1,20)+a|0;G[d+12>>1]=J[d+12>>1]&65519;d=N(c|2,20)+a|0;G[d+12>>1]=J[d+12>>1]&65519;d=N(c|3,20)+a|0;G[d+12>>1]=J[d+12>>1]&65519;c=c+4|0;f=f+4|0;if((e|0)!=(f|0)){continue}break}}b=b&3;if(!b){break a}while(1){e=N(c,20)+a|0;G[e+12>>1]=J[e+12>>1]&65519;c=c+1|0;g=g+1|0;if((b|0)!=(g|0)){continue}break}}}function He(a,b,c,d,e,f){var g=0,h=0,i=0;a:{if(f&64){d=b;e=f+-64|0;b=e&31;if((e&63)>>>0>=32){e=d<>>32-b|c<>>0>=32){h=g<>>32-d|e<>>0>=32){e=0;b=c>>>d|0}else{e=c>>>d|0;b=((1<>>d}d=i|b;e=e|h;b=f&31;if((f&63)>>>0>=32){h=g<>>32-b|c<>2]=b;H[a+4>>2]=c;H[a+8>>2]=d;H[a+12>>2]=e}function B9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=H[a+584>>2];e=(c|0)/H[d+8>>2]|0;if(H[d>>2]!=2){c=H[d+12>>2];zb[H[d+20>>2]](d,b,e);b=c}f=H[a+600>>2];c=f-H[a+608>>2]|0;d=H[a+604>>2];if(e){while(1){if((c|0)<=2){H[a+604>>2]=d;H[a+608>>2]=H[a+600>>2]-c;if(!Uc(a)){return-1}d=H[a+604>>2];c=H[a+600>>2]-H[a+608>>2]|0}F[d|0]=J[b+2>>1];F[d+1|0]=H[b>>2]>>>8;F[d+2|0]=H[b>>2];c=c-3|0;d=d+3|0;b=b+4|0;e=e-1|0;if(e){continue}break}f=H[a+600>>2]}H[a+604>>2]=d;H[a+608>>2]=f-c;return 1}function mV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=H[a+4>>2];if(!d){b=(b|0)>1e3?b:1e3;H[a+8>>2]=b;b=Tb(b<<2);H[a+16>>2]=0;H[a+4>>2]=b;H[a+12>>2]=b;return}c=H[a+8>>2];e=H[a+16>>2]+b|0;if(c>>>0>>0){b=N(b,10);b=(b|0)>1048576?b:1048576;while(1){c=c>>>0>10485760?b+c|0:c<<1;if(e>>>0>c>>>0){continue}break}H[a+8>>2]=c;b=tc(d,c<<2);if(b){H[a+4>>2]=b;H[a+12>>2]=b+(H[a+16>>2]<<2);return}b=Tb(H[a+8>>2]<<2);c=H[a+4>>2];b=Ob(b,c,H[a+16>>2]<<2);Kb(c);H[a+4>>2]=b;H[a+12>>2]=b+(H[a+16>>2]<<2)}}function CP(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{c=H[a+28>>2];if(I[c+44|0]){break b}d=iv(c,H[b>>2],H[b+4>>2]);if(!d){break b}a=H[a+24>>2];if(H[a>>2]){break a}H[a>>2]=d;return}d=H[b+12>>2];f=H[b+8>>2];c:{b=H[c+12>>2];if((G[b+22>>1]+G[b+58>>1]|0)+1>>>0>K[b+4>>2]){b=ee(b,1,0);if(b){break c}}a=H[c+20>>2];if(I[c+45|0]){b=H[a+8>>2];c=G[a+2>>1];e=H[a+4>>2]+(c<<3)|0;H[e+4>>2]=d>>10;H[e>>2]=f>>10;F[b+c|0]=1}G[a+2>>1]=J[a+2>>1]+1;return}a=H[a+24>>2];if(H[a>>2]){break a}H[a>>2]=b}}function bt(a,b){var c=0,d=0,e=0;if(b){c=H[b+608>>2];if(c){d=H[c+28>>2];e=b+640|0;if(H[e>>2]){nd(c,e)}c=H[b+636>>2];if(c){zb[H[d+8>>2]](d,c)}H[b+640>>2]=0;H[b+632>>2]=0;H[b+636>>2]=0;H[b+624>>2]=0;H[b+628>>2]=0;H[b+616>>2]=0;H[b+620>>2]=0;H[b+608>>2]=0;H[b+612>>2]=0}c=H[b+644>>2];if(c){zb[H[a+8>>2]](a,c)}H[b+644>>2]=0;c=H[b+572>>2];if(c){zb[H[a+8>>2]](a,c)}H[b+572>>2]=0;c=H[b+580>>2];if(c){zb[H[a+8>>2]](a,c)}H[b+580>>2]=0;c=H[b+592>>2];if(c){zb[H[a+8>>2]](a,c)}H[b+592>>2]=0}}function kL(a,b){a=a|0;b=b|0;var c=0,d=0;c=zb[H[a+516>>2]](a,1835104368,b,0)|0;a:{if(c){break a}d=a+260|0;c=Ic(b,95328,d);if(c){break a}G[a+290>>1]=0;G[a+282>>1]=0;G[a+284>>1]=0;G[a+286>>1]=0;G[a+288>>1]=0;G[a+274>>1]=0;G[a+276>>1]=0;G[a+278>>1]=0;G[a+280>>1]=0;G[a+266>>1]=0;G[a+268>>1]=0;G[a+270>>1]=0;G[a+272>>1]=0;b:{if(H[a+260>>2]<65536){break b}c=Ic(b,95344,d);if(c){break a}if(J[a+280>>1]<=63){G[a+280>>1]=64}if(J[a+276>>1]<65532){break b}G[a+276>>1]=65531}c=0}return c|0}function eM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=a+20|0;if(e>>>0>K[b+160>>2]){vc(b,8)}c=I[a+16|0]|I[a+17|0]<<8|(I[a+18|0]<<16|I[a+19|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);d=I[a+4|0]|I[a+5|0]<<8|(I[a+6|0]<<16|I[a+7|0]<<24);d=d<<8&16711680|d<<24|(d>>>8&65280|d>>>24);if(!(!(d>>>0<20|d>>>0>H[b+160>>2]-a>>>0)&d-20>>>1>>>0>=c>>>0)){vc(b,8)}if(!(!c|H[b+164>>2]<=0)){while(1){if(K[b+172>>2]<=(I[e+1|0]|I[e|0]<<8)>>>0){vc(b,16)}e=e+2|0;c=c-1|0;if(c){continue}break}}return 0}function Zia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;H[d+12>>2]=b;c=33;a:{if(!a){break a}c=6;e=d+12|0;b:{if(!e){break b}b=a+20|0;c=H[a+16>>2];a=b+(c<<2)|0;c:{if((c|0)<=0){break c}while(1){if(!fc(H[H[H[b>>2]>>2]+8>>2],239168)){break c}b=b+4|0;if(a>>>0>b>>>0){continue}break}}c=11;if((a|0)==(b|0)){break a}c=7;a=H[b>>2];f=H[H[a>>2]+32>>2];if(!f){break b}a=zb[f|0](a,11331)|0;if(!a){break b}a=H[a>>2];if(!a){break b}c=zb[a|0](H[b>>2],238784,e,0)|0}}xb=d+16|0;return c|0}function ns(a){var b=0,c=0,d=0,e=0,f=O(0),g=O(0);b=a+16|0;a:{if(H[a+16>>2]){e=H[a+12>>2];c=H[a+8>>2];f=L[a+20>>2];g=L[a+24>>2];if(!(f==L[a+28>>2]&g==L[a+32>>2])){a=H[c+36>>2];d=H[c+16>>2];H[197455]=0;Ma(d|0,c|0,e|0,b|0,O(f),O(g),a|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}}a=H[c+48>>2];d=H[c+28>>2];H[197455]=0;ka(d|0,c|0,e|0,b|0,a|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}}H[b>>2]=0;H[b+4>>2]=0;H[b+16>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;return}ha(0)|0;_()|0;Zb();X()}function wm(a,b){var c=0,d=0,e=0,f=0;a:{e=a+24|0;c=H[e>>2];if(!c){break a}d=e;while(1){f=K[c+16>>2]>>0;d=f?d:c;c=H[(f<<2)+c>>2];if(c){continue}break}if((d|0)==(e|0)|K[d+16>>2]>b>>>0){break a}b:{c:{d:{e:{f:{b=H[d+20>>2];switch((zb[H[H[b>>2]+8>>2]](b)|0)-1|0){case 4:break b;case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break a}}H[H[a>>2]+60>>2]=b;return}H[H[a>>2]+72>>2]=b;return}H[H[a>>2]+64>>2]=b;return}H[H[a>>2]+68>>2]=b;return}H[H[a>>2]+76>>2]=b}}function V4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;H[f+8>>2]=28;H[f+4>>2]=41;H[a+8>>2]=H[a+8>>2]+28;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],f+4|0,4);Lb(H[a+4>>2],f+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],c,4);b=(C(O(M[d>>3])),v(2));F[f+12|0]=b;F[f+13|0]=b>>>8;F[f+14|0]=b>>>16;F[f+15|0]=b>>>24;Lb(H[a+4>>2],f+12|0,4);b=(C(O(M[e>>3])),v(2));F[f+12|0]=b;F[f+13|0]=b>>>8;F[f+14|0]=b>>>16;F[f+15|0]=b>>>24;Lb(H[a+4>>2],f+12|0,4);xb=f+16|0}function mU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-16|0;xb=d;H[a+32>>2]=c;e=a,f=Ub(c,4,0,b,0,d+12|0),H[e+24>>2]=f;a:{b:{if(H[d+12>>2]){break b}e=a,f=Ub(c,4,0,b,0,d+12|0),H[e+28>>2]=f;if(H[d+12>>2]){break b}H[a+20>>2]=0;H[a+16>>2]=b;H[a+8>>2]=0;H[a+12>>2]=-559038737;H[a>>2]=0;H[a+4>>2]=0;b=H[7582];H[a+36>>2]=H[7581];H[a+40>>2]=b;b=H[7584];H[a+44>>2]=H[7583];H[a+48>>2]=b;a=0;break a}b=H[a+24>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+24>>2]=0;a=H[d+12>>2]}xb=d+16|0;return a|0}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,i=0,j=0,k=0;g=I[c|0]|I[c+1|0]<<8;e=H[a+16>>2];h=I[c+4|0]|I[c+5|0]<<8;k=H[b+336>>2];f=H[a+20>>2];d=I[c+2|0]|I[c+3|0]<<8;c=f-(d+(I[c+6|0]|I[c+7|0]<<8)|0)|0;i=(c|0)>0?c:0;j=f-d|0;a:{if((i|0)>=(j|0)){break a}c=g+h|0;e=c>>>0>>0?c:e;if(e>>>0<=g>>>0){break a}d=i;while(1){h=d-i|0;c=g;while(1){f=Wf(b,c-g|0,h);if((f|0)!=(k|0)){Tg(a,c,d,f)}c=c+1|0;if((e|0)!=(c|0)){continue}break}d=d+1|0;if((j|0)>(d|0)){continue}break}}}function Xw(a,b){var c=0,d=0,e=0;d=xb-16|0;xb=d;c=H[a>>2]+1|0;H[d+12>>2]=c;a:{if(b>>>0<=c>>>0){break a}while(1){be(d+12|0,b);c=H[d+12>>2];if(c>>>0>=b>>>0){break a}b:{e=I[c|0];if((e-48&255)>>>0<=9){break b}switch(e-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break b;default:break a}}c=c+1|0;H[d+12>>2]=c;if(b>>>0>c>>>0){continue}break}}c:{if(b>>>0>c>>>0){b=3;if(I[c|0]!=62){break c}}c=c+1|0;b=0}H[a>>2]=c;xb=d+16|0;return b}function Q7(a){a=a|0;var b=0,c=0,d=0;b=H[a+584>>2];if(!b){b=Tb(148);H[a+584>>2]=b;if(!b){Pb(H[a+628>>2],272007,271324,0);return 0}H[b+96>>2]=0;H[b+116>>2]=0;oq(a);b=H[a+584>>2]}a:{if(!H[b+116>>2]){d=b;b=Tb(40952);H[d+116>>2]=b;if(!b){break a}a=255;while(1){c=b+(a<<3)|0;F[c+7|0]=a;F[c+6|0]=a;G[c+4>>1]=1;H[c>>2]=0;c=a-1|0;d=b+(c<<3)|0;F[d+7|0]=c;F[d+6|0]=c;G[d+4>>1]=1;H[d>>2]=0;a=a-2|0;if(c){continue}break}Id(b+2048|0,0,16)}return 1}Pb(H[a+628>>2],296400,272546,0);return 0}function haa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;b=xb-32|0;xb=b;d=J[a+88>>1];a:{b:{e=H[196375];if(e){while(1){c=H[e+4>>2];if((d|0)==J[c+4>>1]){break b}e=H[e>>2];if(e){continue}break}}if(H[196104]){c=784416;while(1){if((d|0)==J[c+4>>1]){break b}e=H[c+12>>2];c=c+12|0;if(e){continue}break}}c=H[a>>2];a=H[a+628>>2];H[b+4>>2]=270462;H[b>>2]=d;Pb(a,c,275925,b);break a}d=H[a>>2];a=H[a+628>>2];c=H[c>>2];H[b+20>>2]=270462;H[b+16>>2]=c;Pb(a,d,275417,b+16|0)}xb=b+32|0;return-1}function gaa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;b=xb-32|0;xb=b;d=J[a+88>>1];a:{b:{e=H[196375];if(e){while(1){c=H[e+4>>2];if((d|0)==J[c+4>>1]){break b}e=H[e>>2];if(e){continue}break}}if(H[196104]){c=784416;while(1){if((d|0)==J[c+4>>1]){break b}e=H[c+12>>2];c=c+12|0;if(e){continue}break}}c=H[a>>2];a=H[a+628>>2];H[b+4>>2]=271262;H[b>>2]=d;Pb(a,c,275925,b);break a}d=H[a>>2];a=H[a+628>>2];c=H[c>>2];H[b+20>>2]=271262;H[b+16>>2]=c;Pb(a,d,275417,b+16|0)}xb=b+32|0;return-1}function faa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;b=xb-32|0;xb=b;d=J[a+88>>1];a:{b:{e=H[196375];if(e){while(1){c=H[e+4>>2];if((d|0)==J[c+4>>1]){break b}e=H[e>>2];if(e){continue}break}}if(H[196104]){c=784416;while(1){if((d|0)==J[c+4>>1]){break b}e=H[c+12>>2];c=c+12|0;if(e){continue}break}}c=H[a>>2];a=H[a+628>>2];H[b+4>>2]=272002;H[b>>2]=d;Pb(a,c,275925,b);break a}d=H[a>>2];a=H[a+628>>2];c=H[c>>2];H[b+20>>2]=272002;H[b+16>>2]=c;Pb(a,d,275417,b+16|0)}xb=b+32|0;return-1}function eaa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;b=xb-32|0;xb=b;d=J[a+88>>1];a:{b:{e=H[196375];if(e){while(1){c=H[e+4>>2];if((d|0)==J[c+4>>1]){break b}e=H[e>>2];if(e){continue}break}}if(H[196104]){c=784416;while(1){if((d|0)==J[c+4>>1]){break b}e=H[c+12>>2];c=c+12|0;if(e){continue}break}}c=H[a>>2];a=H[a+628>>2];H[b+4>>2]=270462;H[b>>2]=d;Pb(a,c,276954,b);break a}d=H[a>>2];a=H[a+628>>2];c=H[c>>2];H[b+20>>2]=270462;H[b+16>>2]=c;Pb(a,d,276499,b+16|0)}xb=b+32|0;return-1}function daa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;b=xb-32|0;xb=b;d=J[a+88>>1];a:{b:{e=H[196375];if(e){while(1){c=H[e+4>>2];if((d|0)==J[c+4>>1]){break b}e=H[e>>2];if(e){continue}break}}if(H[196104]){c=784416;while(1){if((d|0)==J[c+4>>1]){break b}e=H[c+12>>2];c=c+12|0;if(e){continue}break}}c=H[a>>2];a=H[a+628>>2];H[b+4>>2]=271262;H[b>>2]=d;Pb(a,c,276954,b);break a}d=H[a>>2];a=H[a+628>>2];c=H[c>>2];H[b+20>>2]=271262;H[b+16>>2]=c;Pb(a,d,276499,b+16|0)}xb=b+32|0;return-1}function caa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;b=xb-32|0;xb=b;d=J[a+88>>1];a:{b:{e=H[196375];if(e){while(1){c=H[e+4>>2];if((d|0)==J[c+4>>1]){break b}e=H[e>>2];if(e){continue}break}}if(H[196104]){c=784416;while(1){if((d|0)==J[c+4>>1]){break b}e=H[c+12>>2];c=c+12|0;if(e){continue}break}}c=H[a>>2];a=H[a+628>>2];H[b+4>>2]=272002;H[b>>2]=d;Pb(a,c,276954,b);break a}d=H[a>>2];a=H[a+628>>2];c=H[c>>2];H[b+20>>2]=272002;H[b+16>>2]=c;Pb(a,d,276499,b+16|0)}xb=b+32|0;return-1}function TD(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(!a){return-102}e=-100;a:{if(!(H[a+96>>2]|H[a+100>>2])){break a}b=H[a+56>>2];c=H[a+60>>2];f=(b|0)!=65535|(c|0)!=0;g=b;d=H[a+84>>2];b=H[a+80>>2]+1|0;d=b?d:d+1|0;h=c;c=d;if(f&((g|0)==(b|0)&(h|0)==(c|0))){break a}H[a+80>>2]=b;H[a+84>>2]=c;b=H[a+92>>2];c=(H[a+176>>2]+(H[a+168>>2]+H[a+172>>2]|0)|0)+46|0;d=c+H[a+88>>2]|0;H[a+88>>2]=d;H[a+92>>2]=d>>>0>>0?b+1|0:b;e=Er(a,a+128|0,a+216|0,0,0);H[a+96>>2]=!e;H[a+100>>2]=0}return e}function Zi(a,b){var c=0,d=0;d=xb-16|0;xb=d;c=d+8|0;a=H[a+28>>2];H[c>>2]=a;H[a+4>>2]=H[a+4>>2]+1;H[197455]=0;a=aa(3342,c|0)|0;c=H[197455];H[197455]=0;a:{b:{if((c|0)==1){break b}H[197455]=0;la(3458,a|0,773072,773098,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break b}a=H[d+8>>2];c=H[a+4>>2]-1|0;H[a+4>>2]=c;if((c|0)==-1){zb[H[H[a>>2]+8>>2]](a)}xb=d+16|0;break a}c=$()|0;_()|0;a=H[d+8>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}return b}function zea(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;var h=0,i=0;e=H[a+452>>2];i=e+24|0;g=H[e+24>>2];a:{if(g){h=H[e+12>>2];break a}h=zb[H[H[a+4>>2]+28>>2]](a,H[e+8>>2],H[e+20>>2],H[e+16>>2],1)|0;H[e+12>>2]=h;g=H[e+24>>2]}zb[H[H[a+472>>2]+4>>2]](a,b,c,d,h,i,H[e+16>>2]);b=H[e+24>>2];if(b>>>0>g>>>0){b=b-g|0;zb[H[H[a+480>>2]+4>>2]](a,H[e+12>>2]+(g<<2)|0,0,b);H[f>>2]=b+H[f>>2];b=H[e+24>>2]}a=H[e+16>>2];if(a>>>0<=b>>>0){H[e+24>>2]=0;H[e+20>>2]=a+H[e+20>>2]}}function Sg(a){a=a|0;var b=0;H[a>>2]=248976;b=H[a+992>>2];if(b){Kb(b)}b=H[a+1024>>2];if(b){Kb(b)}b=H[a+1028>>2];if(b){Kb(b)}b=H[a+1032>>2];if(b){Kb(b)}b=H[a+1036>>2];if(b){Kb(b)}b=H[a+1040>>2];if(b){Kb(b)}b=H[a+1016>>2];if(b){Kb(b)}b=H[a+1076>>2];if(b){Kb(b)}b=H[a+1080>>2];if(b){Kb(b)}H[a>>2]=245276;H[197455]=0;aa(917,a|0)|0;b=H[197455];H[197455]=0;a:{if((b|0)!=1){H[197455]=0;aa(918,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break a}}ha(0)|0;_()|0;Zb();X()}return a|0}function L4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>2;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=85;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,2);Lb(H[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function Ko(a,b,c,d,e){var f=0,g=0,h=0;g=xb-16|0;xb=g;if(-17-b>>>0>=c>>>0){if(I[a+11|0]>>>7|0){h=H[a>>2]}else{h=a}a:{if(b>>>0<2147483623){H[g+8>>2]=b<<1;H[g+12>>2]=b+c;c=xb-16|0;xb=c;xb=c+16|0;c=g+8|0;f=g+12|0;c=H[(K[f>>2]>2]?c:f)>>2];if(c>>>0>=11){f=c+16&-16;c=f-1|0;c=(c|0)==11?f:c}else{c=10}break a}c=-18}f=c+1|0;c=Qb(f);if(e){Jg(c,h,e)}if((d|0)!=(e|0)){Jg(c+e|0,e+h|0,d-e|0)}b=b+1|0;if((b|0)!=11){bm(h)}H[a>>2]=c;H[a+8>>2]=f|-2147483648;xb=g+16|0;return}qd(a);X()}function J4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>2;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=88;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,2);Lb(H[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function I6(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0;h=xb-48|0;xb=h;if(!I[a+64|0]){zb[H[H[a>>2]+28>>2]](a);k=H[a+8>>2];zb[H[H[k>>2]+60>>2]](h+32|0,k);zb[H[H[a>>2]+32>>2]](a,M[h+32>>3],M[h+40>>3])}j=M[a+48>>3];i=j*b;b=M[a+16>>3];M[h+32>>3]=i+b;i=M[a+56>>3];l=i*c;c=M[a+24>>3];M[h+40>>3]=l+c;M[h+24>>3]=c+i*e;M[h+16>>3]=b+j*d;M[h+8>>3]=c+i*g;M[h>>3]=b+j*f;a=H[a+4>>2];zb[H[H[a>>2]+328>>2]](a,h+32|0,h+40|0,h+16|0,h+24|0,h,h+8|0)|0;xb=h+48|0}function H6(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0;h=xb-48|0;xb=h;M[h+16>>3]=g;M[h+24>>3]=f;if(!I[a+64|0]){zb[H[H[a>>2]+28>>2]](a);j=H[a+8>>2];zb[H[H[j>>2]+60>>2]](h+32|0,j);zb[H[H[a>>2]+32>>2]](a,M[h+32>>3],M[h+40>>3])}f=M[a+48>>3];g=f*b;b=M[a+16>>3];g=g+b;M[h+32>>3]=g;k=M[a+56>>3];i=k*c;c=M[a+24>>3];i=i+c;M[h+40>>3]=i;a=H[a+4>>2];M[h+8>>3]=b+f*d-g;M[h>>3]=c+k*e-i;zb[H[H[a>>2]+336>>2]](a,h+32|0,h+40|0,h+8|0,h,h+24|0,h+16|0)|0;xb=h+48|0}function F4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>2;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=86;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,2);Lb(H[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function Dd(a,b,c){var d=0,e=0,f=0;e=xb-16|0;xb=e;H[b+4>>2]=H[b+4>>2]+1;d=xb-16|0;xb=d;H[d+12>>2]=b;b=e+8|0;H[b>>2]=H[d+12>>2];xb=d+16|0;a:{a=a+8|0;if(H[a+4>>2]-H[a>>2]>>2>>>0<=c>>>0){H[197455]=0;ba(3548,a|0,c+1|0);d=H[197455];H[197455]=0;if((d|0)==1){break a}}if(H[H[a>>2]+(c<<2)>>2]){d=H[H[a>>2]+(c<<2)>>2];f=H[d+4>>2]-1|0;H[d+4>>2]=f;if((f|0)==-1){zb[H[H[d>>2]+8>>2]](d)}}d=H[b>>2];H[b>>2]=0;H[H[a>>2]+(c<<2)>>2]=d;hw(b);xb=e+16|0;return}a=$()|0;_()|0;hw(b);ea(a|0);X()}function D4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>2;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=87;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,2);Lb(H[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function B4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>2;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=89;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,2);Lb(H[a+4>>2],b+2|0,2);b=b+4|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function yfa(a){a=a|0;var b=0,c=0;b=H[a+20>>2];a:{if(!(H[a+64>>2]|b-205>>>0>1)){if(K[a+140>>2]>2]){b=H[a>>2];H[b+20>>2]=69;zb[H[b>>2]](a)}zb[H[H[a+440>>2]+4>>2]](a);H[a+20>>2]=210;break a}b:{switch(b-207|0){case 0:H[a+20>>2]=210;break a;case 3:break a;default:break b}}c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}c:{while(1){b=H[a+456>>2];if(H[b+20>>2]){break c}if(zb[H[b>>2]](a)|0){continue}break}return 0}zb[H[H[a+24>>2]+24>>2]](a);Vk(a);return 1}function Tg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(!H[a+4>>2]|(b|c)<0|(!H[a+44>>2]|H[a+16>>2]<=(b|0))){break a}if(H[a+20>>2]<=(c|0)){break a}e=J[a+26>>1];if((e|0)==8){F[H[a+56>>2]+(N(H[a+52>>2],c)+b|0)|0]=d;return}a=(H[a+56>>2]+N(H[a+52>>2],c)|0)+(N(b,e)>>3)|0;b:{switch(e-1|0){case 3:c=a;e=I[a|0];a=4-((b|0)%2<<2)&252;F[c|0]=e&(15<>2]-H[c>>2]|0;H[d+12>>2]=e>>3;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=2;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function Kg(a,b,c){var d=0,e=0;d=(c|0)!=0;a:{b:{c:{if(!(a&3)|!c){break c}e=b&255;while(1){if((e|0)==I[a|0]){break b}c=c-1|0;d=(c|0)!=0;a=a+1|0;if(!(a&3)){break c}if(c){continue}break}}if(!d){break a}}d:{if(I[a|0]==(b&255)|c>>>0<4){break d}d=N(b&255,16843009);while(1){e=d^H[a>>2];if((e^-1)&e-16843009&-2139062144){break d}a=a+4|0;c=c-4|0;if(c>>>0>3){continue}break}}if(!c){break a}b=b&255;while(1){if((b|0)==I[a|0]){return a}a=a+1|0;c=c-1|0;if(c){continue}break}}return 0}function K4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>3;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=5;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function G4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>3;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=3;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function E4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>3;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=4;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function C4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2]-H[c>>2]|0;H[d+12>>2]=e>>3;e=e+28|0;H[d+8>>2]=e;H[d+4>>2]=6;H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+4|0,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],d+12|0,4);b=H[c>>2];c=H[c+4>>2];if((b|0)!=(c|0)){while(1){Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);b=b+8|0;if((c|0)!=(b|0)){continue}break}}xb=d+16|0}function eF(a,b){var c=0,d=0,e=0;c=I[a+2|0]|I[a+3|0]<<8;c=(c<<8|c>>>8)&65535;d=c>>>4|0;a=I[a|0]|I[a+1|0]<<8;a=(a<<8|a>>>8)&65535;e=a>>>4|0;a:{if(d-e>>>0>=31){H[b>>2]=-1;break a}d=1<>2]=H[b>>2]|((d<<1)-e|0)-(d>>>0>>0)}b:{if(c-a>>>0>=31){H[b+4>>2]=-1;break b}d=1<>2]=H[b+4>>2]|((d<<1)-e|0)-(d>>>0>>0)}c=c>>>9|0;a=a>>>9|0;if(c-a>>>0>=31){H[b+8>>2]=-1;return 1}d=b;e=H[b+8>>2];b=1<>2]=e|((b<<1)-a|0)-(a>>>0>b>>>0);return 1}function we(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0;h=gma(b,c,h,i);i=yb;j=h;h=gma(d,e,f,g);e=j+h|0;d=yb+i|0;i=e;h=i>>>0>>0?d+1|0:d;j=i;k=g;e=0;l=c;d=0;i=gma(g,e,c,d);g=j+i|0;c=yb+h|0;j=g;g=g>>>0>>0?c+1|0:c;h=f;i=b;f=gma(h,0,i,0);b=yb;c=0;d=gma(h,c,l,d);b=b+d|0;c=yb+c|0;c=b>>>0>>0?c+1|0:c;h=c;c=c+j|0;d=g;d=c>>>0>>0?d+1|0:d;h=c;c=d;d=gma(i,m,k,e)+b|0;e=yb;e=b>>>0>d>>>0?e+1|0:e;g=a;i=e;h=i+h|0;H[g+8>>2]=h;H[g+12>>2]=h>>>0>>0?c+1|0:c;H[g>>2]=f;H[g+4>>2]=d}function sfa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=H[a+20>>2];if((d|0)!=206){e=H[a>>2];H[e+24>>2]=d;H[e+20>>2]=21;zb[H[H[a>>2]>>2]](a)}e=H[a+116>>2];f=H[a+140>>2];if(e>>>0<=f>>>0){b=H[a>>2];H[b+20>>2]=126;zb[H[b+4>>2]](a,-1);return 0}d=H[a+8>>2];if(d){H[d+8>>2]=e;H[d+4>>2]=f;zb[H[d>>2]](a)}d=c;c=N(H[a+324>>2],H[a+316>>2]);if(d>>>0>>0){d=H[a>>2];H[d+20>>2]=24;zb[H[d>>2]](a)}if(!(zb[H[H[a+448>>2]+12>>2]](a,b)|0)){return 0}H[a+140>>2]=c+H[a+140>>2];return c|0}function Le(a,b,c,d,e){var f=0,g=0;if((c|0)<(e|0)){if(!Hd(a,b,c,e)){return-1}c=H[a+12>>2];b=H[a+8>>2]}g=e<<2;c=c-e|0;f=H[g+256992>>2]&b>>c;if((f|0)>H[d+g>>2]){while(1){if((c|0)<=0){if(!Hd(a,b,c,1)){return-1}c=H[a+12>>2];b=H[a+8>>2]}c=c-1|0;f=b>>>c&1|f<<1;e=e+1|0;if((f|0)>H[(e<<2)+d>>2]){continue}break}}H[a+12>>2]=c;H[a+8>>2]=b;if((e|0)>=17){a=H[a+16>>2];b=H[a>>2];H[b+20>>2]=121;zb[H[b+4>>2]](a,-1);return 0}return I[(H[d+140>>2]+(H[((e<<2)+d|0)+72>>2]+f|0)|0)+17|0]}function $u(a,b){var c=0,d=0,e=0,f=0,g=0;e=H[a>>2];if(e){f=H[(H[a+24>>2]+N(b,204)|0)+200>>2];a=H[a+8>>2];while(1){b=H[a+24>>2];if(b){d=H[a+16>>2];c=H[b+8>>2];a:{if(d&512){break a}c=H[b+12>>2]+H[b+8>>2]|0;if(d&1024){break a}d=H[a+28>>2]-H[b>>2]|0;if((d|0)<=0){c=H[b+8>>2]+Rb(d,f)|0;break a}c=H[b+12>>2];g=H[b+8>>2];b=H[b+4>>2];if((b|0)<=(d|0)){c=Rb(d-b|0,f)+(c+g|0)|0;break a}c=ic(d,c,b)+g|0}H[a+36>>2]=c;H[a+16>>2]=H[a+16>>2]|32}a=a+40|0;e=e-1|0;if(e){continue}break}}}function q4(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;e=H[b+8>>2];c=H[b+4>>2];if(e>>>0>c+3>>>0){f=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[b+4>>2]=c}H[d+12>>2]=f;a:{if(c+3>>>0>=e>>>0){break a}e=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);H[b+4>>2]=c+4;H[d+8>>2]=e;if(!e){break a}H[a+8>>2]=e+H[a+8>>2];H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+12|0,4);Lb(H[a+4>>2],d+8|0,4);c=H[d+8>>2];if(!c){break a}Lb(H[a+4>>2],H[b+4>>2],c-8|0)}xb=d+16|0}function hy(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=xb-32|0;xb=g;d=I[b|0];if(d){f=b;while(1){e=(e<<4)+(d<<24>>24)|0;d=e&-268435456;e=d?d>>>24^e&268435455:e;d=I[f+1|0];f=f+1|0;if(d){continue}break}e=(e>>>0)%31627|0}a:{f=Tb(12);if(f){e=(e<<2)+a|0;H[f>>2]=H[e>>2];a=ac(b);d=a+1|0;h=Tb(d);if(!h){break a}d=a;a=Ob(h,b,a);F[d+a|0]=0;H[f+8>>2]=c;H[f+4>>2]=a;H[e>>2]=f;xb=g+32|0;return}H[g>>2]=12;Fc(H[191568],239726,g);Ba(1);X()}H[g+16>>2]=d;Fc(H[191568],239726,g+16|0);Ba(1);X()}function Rw(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=xb-16|0;xb=e;a:{b:{c:{d:{if((a|0)!=(b|0)){e:{f:{f=I[a|0];if((f|0)!=45){break f}a=a+1|0;if((b|0)!=(a|0)){break f}break e}h=H[197018];H[197018]=0;a=ap(a,e+12|0,d,Od());d=yb;g=H[197018];g:{if(g){if(H[e+12>>2]!=(b|0)){break g}if((g|0)==68){break c}break d}H[197018]=h;if(H[e+12>>2]==(b|0)){break d}}}}H[c>>2]=4;a=0;break a}if(!d){break b}}H[c>>2]=4;a=-1;break a}a=(f|0)==45?0-a|0:a}xb=e+16|0;return a|0}function Qw(a,b,c,d){var e=0,f=0,g=0,h=0;h=H[a>>2];if(h>>>0>>0){f=1;d=d<<1;b=b-h|0;d=b>>>0>d>>>0?d:b;a:{if(!d){b=0;break a}b=0;b:{while(1){c:{d:{e=I[b+h|0];switch(e|0){case 0:case 9:case 10:case 12:case 13:case 32:break c;default:break d}}if(e<<24>>24<0){break b}e=I[e+31072|0];if(e>>>0>15){break b}e=e|f<<4;if(!(f&16)){f=e;break c}F[c+g|0]=e;f=1;g=g+1|0}b=b+1|0;if((d|0)!=(b|0)){continue}break}b=d}if((f|0)==1){break a}F[c+g|0]=f<<4;g=g+1|0}H[a>>2]=b+h}return g}function lm(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(a){if(b>>>0<=127){break a}b:{if(!H[H[197059]>>2]){if((b&-128)==57216){break a}break b}if(b>>>0<=2047){F[a+1|0]=b&63|128;F[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344&b>>>0>=55296)){F[a+2|0]=b&63|128;F[a|0]=b>>>12|224;F[a+1|0]=b>>>6&63|128;return 3}if(b-65536>>>0<=1048575){F[a+3|0]=b&63|128;F[a|0]=b>>>18|240;F[a+2|0]=b>>>6&63|128;F[a+1|0]=b>>>12&63|128;return 4}}H[197018]=25;a=-1}else{a=1}return a|0}F[a|0]=b;return 1}function Pi(a){var b=0,c=0,d=0,e=0;c=xb-48|0;xb=c;b=H[a>>2];a:{if(b){break a}e=a-16|0;while(1){b=H[e>>2];if(!b){b=163632;break a}H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=kd(b);F[c+40|0]=1;H[c+36>>2]=d;b=fG(c,dd(b,1751672161));if(!b){b=163632}d=H[a>>2];H[a>>2]=d?d:b;if(!d){break a}if(!(!b|(b|0)==163632)){Wb(b)}b=H[a>>2];if(!b){continue}break}}xb=c+48|0;return K[b+16>>2]<36?163632:H[b+12>>2]}function Oi(a){var b=0,c=0,d=0,e=0;c=xb-48|0;xb=c;b=H[a>>2];a:{if(b){break a}e=a-44|0;while(1){b=H[e>>2];if(!b){b=163632;break a}H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=kd(b);F[c+40|0]=1;H[c+36>>2]=d;b=fG(c,dd(b,1986553185));if(!b){b=163632}d=H[a>>2];H[a>>2]=d?d:b;if(!d){break a}if(!(!b|(b|0)==163632)){Wb(b)}b=H[a>>2];if(!b){continue}break}}xb=c+48|0;return K[b+16>>2]<36?163632:H[b+12>>2]}function Lt(a){var b=0,c=0,d=0,e=0;c=xb-48|0;xb=c;b=H[a>>2];a:{if(b){break a}e=a-108|0;while(1){b=H[e>>2];if(!b){b=163632;break a}H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=kd(b);F[c+40|0]=1;H[c+36>>2]=d;b=Jt(c,dd(b,1836020344));if(!b){b=163632}d=H[a>>2];H[a>>2]=d?d:b;if(!d){break a}if(!(!b|(b|0)==163632)){Wb(b)}b=H[a>>2];if(!b){continue}break}}xb=c+48|0;return K[b+16>>2]<8?163632:H[b+12>>2]}function Kt(a){var b=0,c=0,d=0,e=0;c=xb-48|0;xb=c;b=H[a>>2];a:{if(b){break a}e=a-112|0;while(1){b=H[e>>2];if(!b){b=163632;break a}H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=kd(b);F[c+40|0]=1;H[c+36>>2]=d;b=It(c,dd(b,1836020340));if(!b){b=163632}d=H[a>>2];H[a>>2]=d?d:b;if(!d){break a}if(!(!b|(b|0)==163632)){Wb(b)}b=H[a>>2];if(!b){continue}break}}xb=c+48|0;return K[b+16>>2]<8?163632:H[b+12>>2]}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;if(!a){return 35}if(!c){return 6}if(!d){return 6}F[c|0]=0;f=16;a:{if(H[a+16>>2]<=(b|0)){break a}if(!(I[a+9|0]&2)){return 6}f=6;b:{c:{g=H[a+128>>2];e=H[g+40>>2];switch(e+2|0){case 0:break a;case 2:break c;default:break b}}e=H[a+96>>2];f=H[H[e>>2]+32>>2];d:{if(!f){e=0;break d}e=zb[f|0](e,9305)|0;g=H[a+128>>2]}H[g+40>>2]=e?e:-2}if(!e){return 6}f=6;e=H[e>>2];if(!e){break a}f=zb[e|0](a,b,c,d)|0}return f|0}function zO(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=xb-16|0;xb=d;H[d+12>>2]=c;if(c){if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}if(I[a+11|0]>>>7|0){g=H[a>>2]}else{g=a}f=c-b|0;H[d+8>>2]=f;e=xb-16|0;xb=e;xb=e+16|0;e=d+8|0;h=d+12|0;e=H[(K[e>>2]>2]?e:h)>>2];H[d+12>>2]=e;if((e|0)!=(f|0)){b=(b<<2)+g|0;kk(b,b+(e<<2)|0,f-e|0);f=H[d+12>>2]}b=c-f|0;a:{if(I[a+11|0]>>>7|0){H[a+4>>2]=b;break a}F[a+11|0]=b}H[d+4>>2]=0;H[(b<<2)+g>>2]=H[d+4>>2]}xb=d+16|0}function dX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=H[a+8>>2];c=H[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Nb(c,0,b)+b|0}H[a+4>>2]=c;return}a:{f=H[a>>2];g=c-f|0;h=g>>2;d=h+b|0;if(d>>>0<1073741824){c=0;e=e-f|0;i=e>>1;d=e>>>0<2147483644?d>>>0>>0?i:d:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Qb(d<<2)}b=b<<2;b=Nb((h<<2)+c|0,0,b)+b|0;if((g|0)>0){Ob(c,f,g)}H[a+8>>2]=(d<<2)+c;H[a+4>>2]=b;H[a>>2]=c;if(f){Kb(f)}return}bd(a);X()}Td(239085);X()} +function Zr(a){var b=0,c=0,d=0,e=0;c=xb-48|0;xb=c;b=H[a>>2];a:{if(b){break a}e=a-88|0;while(1){b=H[e>>2];if(!b){b=163632;break a}H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=kd(b);F[c+40|0]=1;H[c+36>>2]=d;b=PF(c,dd(b,1801810542));if(!b){b=163632}d=H[a>>2];H[a>>2]=d?d:b;if(!d){break a}if(!(!b|(b|0)==163632)){Wb(b)}b=H[a>>2];if(!b){continue}break}}xb=c+48|0;return K[b+16>>2]<4?163632:H[b+12>>2]}function RM(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;j=H[a+16>>2];a:{if(j){c=H[b>>2]+1|0;k=H[a+20>>2];h=j;while(1){i=(h-d>>>1|0)+d|0;e=(i<<3)+k|0;f=H[e>>2];if((f|0)==(c|0)){a=H[((i<<3)+k|0)+4>>2];H[b>>2]=c;return a|0}f=f&2147483647;g=(f|0)==(c|0)?H[e+4>>2]:g;e=c>>>0>f>>>0;h=e?h:i;d=e?i+1|0:d;if(h>>>0>d>>>0){continue}break}if(g){break a}}c=0;g=0;if(d>>>0>=j>>>0){break a}a=H[a+20>>2]+(d<<3)|0;c=H[a>>2]&2147483647;g=H[a+4>>2]}H[b>>2]=c;return g|0}function wM(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(b>>>0>65535){break a}c=H[a+16>>2];a=c+518|0;c=c+6|0;b:{if(b>>>0<=255){c=c+(b<<1&510)|0;if(!(I[c|0]<<8|I[c+1|0])){break b}break a}c=c+(b>>>7&33554430)|0;c=I[c|0]<<8|I[c+1|0]&248;if(!c){break a}a=a+c|0}b=(b&255)-(I[a+1|0]|I[a|0]<<8)|0;if(b>>>0>=(I[a+3|0]|I[a+2|0]<<8)>>>0){break a}c=I[a+7|0]|I[a+6|0]<<8;if(!c){break a}b=a+6+(c+(b<<1))|0;b=I[b|0]<<8|I[b+1|0];if(!b){break a}d=b+(I[a+5|0]|I[a+4|0]<<8)&65535}return d|0}function P$(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=H[a+8>>2];c=H[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=Nb(c,0,b)+b|0}H[a+4>>2]=c;return}a:{f=H[a>>2];g=c-f|0;h=g>>2;d=h+b|0;if(d>>>0<1073741824){c=0;e=e-f|0;i=e>>1;d=e>>>0<2147483644?d>>>0>>0?i:d:1073741823;if(d){if(d>>>0>=1073741824){break a}c=Qb(d<<2)}b=b<<2;b=Nb((h<<2)+c|0,0,b)+b|0;if((g|0)>0){Ob(c,f,g)}H[a+8>>2]=(d<<2)+c;H[a+4>>2]=b;H[a>>2]=c;if(f){Kb(f)}return}bd(a);X()}Td(403680);X()}function el(a){var b=0,c=0,d=0;c=-2;a:{if(!H[a+36>>2]|(!a|!H[a+32>>2])){break a}b=H[a+28>>2];if(!b|H[b>>2]!=(a|0)|H[b+4>>2]-16180>>>0>31){break a}c=0;H[b+52>>2]=0;H[b+44>>2]=0;H[b+48>>2]=0;H[b+32>>2]=0;H[a+8>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;d=H[b+12>>2];if(d){H[a+48>>2]=d&1}H[b+60>>2]=0;H[b+64>>2]=0;H[b+36>>2]=0;H[b+24>>2]=32768;H[b+16>>2]=0;H[b+4>>2]=16180;H[b+8>>2]=0;H[b+7108>>2]=1;H[b+7112>>2]=-1;a=b+1332|0;H[b+112>>2]=a;H[b+84>>2]=a;H[b+80>>2]=a}return c}function Rla(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=H[b+12>>2];a:{if(a){break a}while(1){f=H[b>>2];if(!f){return nG(163632,c,d,e)|0}b:{c:{a=oc(1,48);if(a){Wn(a,f);f=H[b+12>>2];H[b+12>>2]=f?f:a;if(!f){break a}f=H[a+44>>2];H[197455]=0;ia(579,f|0);f=H[197455];H[197455]=0;if((f|0)==1){break c}Kb(a);break b}a=163632;f=H[b+12>>2];H[b+12>>2]=f?f:163632;if(f){break b}break a}ha(0)|0;_()|0;Zb();X()}a=H[b+12>>2];if(!a){continue}break}}return nG(a,c,d,e)|0}function CV(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;c=H[b>>2];d=H[a+16>>2];f=J[d+2>>1];g=f+(J[d+6>>1]<<8)|0;a:{if(c>>>0>=g>>>0){break a}a=J[d>>1];j=(f-a|0)+1|0;h=J[d+4>>1];i=a+(h<<8)|0;k=H[d+12>>2];while(1){c=c+1|0;e=c>>>0>i>>>0?c:i;c=e&255;d=c>>>0>f>>>0;e=(d&a>>>0<=c>>>0)+(e>>>8|0)&65535;d=a>>>0>c>>>0?a:d?a:c;c=(e<<8)+d|0;e=J[k+((d-a|0)+N(e-h|0,j)<<1)>>1];if((e|0)!=65535){break a}if(c>>>0>>0){continue}break}e=65535}H[b>>2]=c;return e|0}function e0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=O(0),g=0;Be(a,b);e=H[a+8>>2];c=H[a+4>>2];if(e>>>0>c+3>>>0){g=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+16>>2]=g;if(c+3>>>0>=e>>>0){d=0}else{f=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+f}M[b+24>>3]=d;if(c+3>>>0>>0){f=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[a+4>>2]=c+4;d=+f}else{d=0}M[b+32>>3]=d;$p(a,b+40|0,36);return a|0}function d0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=O(0),g=0;Be(a,b);e=H[a+8>>2];c=H[a+4>>2];if(e>>>0>c+3>>>0){g=I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24);c=c+4|0;H[a+4>>2]=c}H[b+16>>2]=g;if(c+3>>>0>=e>>>0){d=0}else{f=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());c=c+4|0;H[a+4>>2]=c;d=+f}M[b+24>>3]=d;if(c+3>>>0>>0){f=(x(2,I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24)),B());H[a+4>>2]=c+4;d=+f}else{d=0}M[b+32>>3]=d;_p(a,b+40|0,36);return a|0}function Q$(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=H[a+8>>2];c=H[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(b){b=b<<3;c=Nb(c,0,b)+b|0}H[a+4>>2]=c;return}a:{f=H[a>>2];g=c-f|0;h=g>>3;d=h+b|0;if(d>>>0<536870912){c=0;e=e-f|0;i=e>>2;d=e>>>0<2147483640?d>>>0>>0?i:d:536870911;if(d){if(d>>>0>=536870912){break a}c=Qb(d<<3)}b=b<<3;b=Nb((h<<3)+c|0,0,b)+b|0;if((g|0)>0){Ob(c,f,g)}H[a+8>>2]=(d<<3)+c;H[a+4>>2]=b;H[a>>2]=c;if(f){Kb(f)}return}bd(a);X()}Td(403680);X()}function zg(a,b){a=a|0;b=b|0;var c=0;if(b){c=H[b+16>>2];H[a+12>>2]=H[b+12>>2];H[a+16>>2]=c;c=H[b+48>>2];H[a+44>>2]=H[b+44>>2];H[a+48>>2]=c;c=H[b+40>>2];H[a+36>>2]=H[b+36>>2];H[a+40>>2]=c;c=H[b+32>>2];H[a+28>>2]=H[b+28>>2];H[a+32>>2]=c;c=H[b+24>>2];H[a+20>>2]=H[b+20>>2];H[a+24>>2]=c;Ob(a+52|0,b+52|0,872);H[a+4>>2]=H[b+4>>2];H[a+8>>2]=H[b+8>>2];H[a+924>>2]=H[b+924>>2];H[a+928>>2]=H[b+928>>2];H[a+932>>2]=H[b+932>>2];c=H[b+936>>2];H[a+60>>2]=b;H[a+936>>2]=c}}function tC(a,b){var c=0,d=0,e=0;a:{if(I[a+9|0]!=16){break a}c=N(H[a>>2],I[a+10|0]);if(!c){break a}if(c-1>>>0>=3){e=c&-4;a=0;while(1){d=I[b+1|0];F[b+1|0]=I[b|0];F[b|0]=d;d=I[b+2|0];F[b+2|0]=I[b+3|0];F[b+3|0]=d;d=I[b+4|0];F[b+4|0]=I[b+5|0];F[b+5|0]=d;d=I[b+6|0];F[b+6|0]=I[b+7|0];F[b+7|0]=d;b=b+8|0;a=a+4|0;if((e|0)!=(a|0)){continue}break}}c=c&3;if(!c){break a}a=0;while(1){e=I[b+1|0];F[b+1|0]=I[b|0];F[b|0]=e;b=b+2|0;a=a+1|0;if((c|0)!=(a|0)){continue}break}}}function eia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;a:{b:{c:{if(!a){break c}d=ac(b);if(d>>>0>=4294967280){break a}d:{e:{if(d>>>0>=11){f=d+16&-16;e=Qb(f);H[c+8>>2]=f|-2147483648;H[c>>2]=e;H[c+4>>2]=d;break e}F[c+11|0]=d;e=c;if(!d){break d}}Ob(e,b,d)}F[d+e|0]=0;H[197455]=0;LD(a,c);a=H[197455];H[197455]=0;if((a|0)==1){break b}if(F[c+11|0]>=0){break c}Kb(H[c>>2])}xb=c+16|0;return}a=$()|0;_()|0;if(F[c+11|0]<0){Kb(H[c>>2])}ea(a|0);X()}qd(c);X()}function N2(a,b){a=a|0;b=b|0;var c=0;if(H[b+72>>2]==1651078259){c=H[a>>2];H[a+20>>2]=H[b+100>>2];H[a+24>>2]=H[b+104>>2];a=a+28|0;if(F[H[b+156>>2]+4|0]&1){c=H[b+80>>2];H[a>>2]=H[b+76>>2];H[a+4>>2]=c;c=H[b+96>>2];H[a+16>>2]=H[b+92>>2];H[a+20>>2]=c;c=H[b+88>>2];H[a+8>>2]=H[b+84>>2];H[a+12>>2]=c;a=H[b+156>>2];H[a+4>>2]=H[a+4>>2]&-2;return 0}if(a){H[a>>2]=0;H[a+4>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0}a=DA(c,b+76|0,a)}else{a=18}return a|0}function qG(a,b,c){var d=0,e=0,f=0;f=H[a+16>>2];e=H[f+108>>2];a:{if(e){break a}while(1){d=H[f+48>>2];if(!d){return pG(163632,a,b,c)}b:{c:{e=oc(1,28);if(e){nl(e,d);d=H[f+108>>2];H[f+108>>2]=d?d:e;if(!d){break a}d=H[e+24>>2];H[197455]=0;ia(579,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break c}Kb(e);break b}e=163632;d=H[f+108>>2];H[f+108>>2]=d?d:163632;if(d){break b}break a}ha(0)|0;_()|0;Zb();X()}e=H[f+108>>2];if(!e){continue}break}}return pG(e,a,b,c)}function fH(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;var h=0;b=H[a+12>>2];H[f>>2]=0;H[e>>2]=0;g=b;h=H[b+84>>2];b=H[b+80>>2];h=zb[H[b+212>>2]](g,h,c,d,e,f,H[b+68>>2])|0;if(h){c=H[a+12>>2];a:{if(c){b=H[e>>2];g=H[c+20>>2];d=H[a+20>>2];if((g|0)!=(d|0)){b=hma(gma(d,d>>31,b,b>>31),yb,g,g>>31)}H[e>>2]=b;b=H[f>>2];c=H[c+24>>2];a=H[a+24>>2];if((c|0)==(a|0)){break a}b=hma(gma(a,a>>31,b,b>>31),yb,c,c>>31);break a}b=H[f>>2]}H[f>>2]=b}return h|0}function K0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=H[a+4>>2];if(c>>>0>2]){b:{if(F[b+11|0]>=0){d=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=d;H[c+8>>2]=H[b+8>>2];break b}d=H[b+4>>2];e=H[b>>2];H[197455]=0;ga(1647,c|0,e|0,d|0);d=H[197455];H[197455]=0;if((d|0)==1){break a}}d=H[b+16>>2];H[c+12>>2]=H[b+12>>2];H[c+16>>2]=d;H[c+20>>2]=H[b+20>>2];H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;H[a+4>>2]=c+24;return}aA(a,b);return}b=$()|0;_()|0;H[a+4>>2]=c;ea(b|0);X()}function tba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{c=I[a+11|0]+7>>>3|0;e=H[a+4>>2];if(c>>>0>=e>>>0){break a}d=0-c|0;a=b+c|0;b=(c^-1)+e|0;f=e-c&3;if(f){while(1){F[a|0]=I[a+d|0]+I[a|0];c=c+1|0;a=a+1|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}}if(b>>>0<3){break a}while(1){F[a|0]=I[a+d|0]+I[a|0];F[a+1|0]=I[(a+1|0)+d|0]+I[a+1|0];F[a+2|0]=I[(a+2|0)+d|0]+I[a+2|0];F[a+3|0]=I[(a+3|0)+d|0]+I[a+3|0];a=a+4|0;c=c+4|0;if((e|0)!=(c|0)){continue}break}}}function fe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if(I[a+11|0]>>>7|0){e=H[a+4>>2]}else{e=I[a+11|0]}if(!e|(c-b|0)<5){break a}nk(b,c);f=c-4|0;if(I[a+11|0]>>>7|0){e=H[a+4>>2]}else{e=I[a+11|0]}if(I[a+11|0]>>>7|0){a=H[a>>2]}c=a;a=e+a|0;b:{while(1){c:{e=F[c|0];if(b>>>0>=f>>>0){break c}if(!((e|0)<=0|(e|0)>=127)&H[b>>2]!=F[c|0]){break b}b=b+4|0;c=((a-c|0)>1)+c|0;continue}break}if((e|0)<=0|(e|0)>=127|F[c|0]>>>0>H[f>>2]-1>>>0){break a}}H[d>>2]=4}}function py(a){a=a|0;var b=0,c=0,d=0;a:{c=I[787927];b=c<<24>>24<0;b:{d=H[196980];if(b?d:c){if(b){break b}b=H[196980];H[a>>2]=H[196979];H[a+4>>2]=b;H[a+8>>2]=H[196981];return}b=kg(239546);c:{if(b){break c}b=kg(239542);if(b){break c}b=kg(239535)}b=b?b:238690;c=ac(b);H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;H[197455]=0;ga(3282,b|0,c|0,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){break a}b=$()|0;_()|0;if(F[a+11|0]<0){Kb(H[a>>2])}ea(b|0);X()}df(a,H[196979],d)}}function hf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=Qb(4);H[g>>2]=425160;b=H[a+8>>2];if((b|0)!=H[a+12>>2]){H[b>>2]=g;H[a+8>>2]=b+4;return 1}a:{c=a+4|0;f=H[c>>2];d=b-f|0;e=d>>2;b=e+1|0;if(b>>>0<1073741824){c=d>>1;c=d>>>0<2147483644?b>>>0>>0?c:b:1073741823;if(c){if(c>>>0>=1073741824){break a}b=Qb(c<<2)}else{b=0}e=b+(e<<2)|0;H[e>>2]=g;if((d|0)>0){Ob(b,f,d)}H[a+12>>2]=b+(c<<2);H[a+8>>2]=e+4;H[a+4>>2]=b;if(f){Kb(f)}return 1}bd(c);X()}Td(400840);X()}function _C(a){var b=0,c=0,d=0;a:{if(H[a+76>>2]|H[a+304>>2]|(H[a+40>>2]!=3|H[a+36>>2]!=3)){break a}if(H[a+44>>2]!=2|H[a+120>>2]!=3){break a}b=H[a+216>>2];if(H[b+8>>2]!=2|H[b+96>>2]!=1|(H[b+184>>2]!=1|H[b+12>>2]>2)){break a}if(H[b+100>>2]!=1|H[b+188>>2]!=1){break a}c=H[b+36>>2];if((c|0)!=H[a+320>>2]|(c|0)!=H[b+124>>2]|(c|0)!=H[b+212>>2]){break a}c=H[a+324>>2];a=H[b+40>>2];if((c|0)!=(a|0)|(a|0)!=H[b+128>>2]){break a}d=(a|0)==H[b+216>>2]}return d}function kH(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;b=H[a+12>>2];H[e>>2]=0;H[d>>2]=0;f=b;g=H[b+84>>2];b=H[b+80>>2];f=zb[H[b+192>>2]](f,g,c,d,e,H[b+48>>2])|0;if(f){c=H[a+12>>2];a:{if(c){b=H[d>>2];g=H[a+20>>2];h=H[c+20>>2];if((g|0)!=(h|0)){b=hma(gma(g,g>>31,b,b>>31),yb,h,h>>31)}H[d>>2]=b;b=H[e>>2];c=H[c+24>>2];a=H[a+24>>2];if((c|0)==(a|0)){break a}b=hma(gma(a,a>>31,b,b>>31),yb,c,c>>31);break a}b=H[e>>2]}H[e>>2]=b}return f|0}function jH(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;b=H[a+12>>2];H[e>>2]=0;H[d>>2]=0;f=b;g=H[b+84>>2];b=H[b+80>>2];f=zb[H[b+196>>2]](f,g,c,d,e,H[b+52>>2])|0;if(f){c=H[a+12>>2];a:{if(c){b=H[d>>2];g=H[a+20>>2];h=H[c+20>>2];if((g|0)!=(h|0)){b=hma(gma(g,g>>31,b,b>>31),yb,h,h>>31)}H[d>>2]=b;b=H[e>>2];c=H[c+24>>2];a=H[a+24>>2];if((c|0)==(a|0)){break a}b=hma(gma(a,a>>31,b,b>>31),yb,c,c>>31);break a}b=H[e>>2]}H[e>>2]=b}return f|0}function Cy(a,b){a=a|0;b=b|0;G[a+10>>1]=0;H[a+20>>2]=0;H[a+24>>2]=0;F[a+12|0]=0;H[a+4>>2]=436620;H[a>>2]=436556;G[a+8>>1]=J[b>>1];F[a+10|0]=I[b+2|0];F[a+11|0]=I[b+3|0];F[a+12|0]=I[b+4|0];F[a+13|0]=I[b+5|0];b=J[b+6>>1];F[a+27|0]=0;F[a+28|0]=0;F[a+29|0]=0;F[a+30|0]=0;F[a+31|0]=0;F[a+32|0]=0;F[a+33|0]=0;F[a+34|0]=0;H[a+16>>2]=0;G[a+14>>1]=b;F[a+32|0]=0;F[a+33|0]=0;F[a+34|0]=0;F[a+35|0]=0;F[a+36|0]=0;F[a+37|0]=0;F[a+38|0]=0;F[a+39|0]=0;return a|0}function Kj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(H[a+44>>2]|!b){break a}d=H[a+52>>2];c=(c|0)>(d|0)?d:c;a=N(H[a+16>>2],3);a=(a|0)>(c|0)?c:a;if((a|0)<=0){break a}a=a-1|0;d=((a>>>0)/3|0)+1|0;f=d&1;c=0;if(a>>>0>=3){g=d&2147483646;d=0;while(1){a=b+c|0;e=I[a+2|0];F[a+2|0]=I[a|0];F[a|0]=e;e=I[a+3|0];F[a+3|0]=I[a+5|0];F[a+5|0]=e;c=c+6|0;d=d+2|0;if((g|0)!=(d|0)){continue}break}}if(!f){break a}a=b+c|0;b=I[a+2|0];F[a+2|0]=I[a|0];F[a|0]=b}}function v6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=H[a+4>>2];d=H[a+8>>2];if(c>>>0>>0){M[c>>3]=M[b>>3];H[a+4>>2]=c+8;return}a:{f=H[a>>2];g=c-f|0;e=g>>3;c=e+1|0;if(c>>>0<536870912){h=e<<3;d=d-f|0;e=d>>2;d=d>>>0<2147483640?c>>>0>>0?e:c:536870911;if(d){if(d>>>0>=536870912){break a}c=Qb(d<<3)}else{c=0}e=h+c|0;M[e>>3]=M[b>>3];if((g|0)>0){Ob(c,f,g)}H[a+8>>2]=c+(d<<3);H[a+4>>2]=e+8;H[a>>2]=c;if(f){Kb(f)}return}bd(a);X()}Td(239085);X()}function Wea(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;a:{if((d|0)<=0){break a}j=H[a+112>>2];if(!j){break a}o=H[H[a+480>>2]+24>>2];while(1){e=g<<2;h=H[e+c>>2];f=H[b+e>>2];e=j;while(1){k=I[f|0]>>>3|0;l=I[f+1|0]>>>2|0;m=I[f+2|0]>>>3|0;n=(H[(k<<2)+o>>2]+(l<<6)|0)+(m<<1)|0;i=J[n>>1];if(!i){TC(a,k,l,m);i=I[n|0]}f=f+3|0;F[h|0]=i-1;h=h+1|0;e=e-1|0;if(e){continue}break}g=g+1|0;if((g|0)!=(d|0)){continue}break}}}function Xka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+712>>2];a:{if(I[e+24|0]==2){f=11;e=nf(Vd(H[H[a+96>>2]+4>>2],9005),9996,0);if(!e){break a}e=H[e>>2];if(!e){break a}return zb[e|0](a,b,c,d)|0}a=H[e+3084>>2];if(!a){return 11}b=J[H[e+1188>>2]+(b<<1)>>1];if((b|0)==65535){break a}b:{if(b>>>0>=391){a=b-391|0;if(a>>>0>=K[e+1356>>2]){break a}a=H[H[e+1360>>2]+(a<<2)>>2];break b}a=zb[H[a+20>>2]](b)|0}if(!a){break a}hq(c,a,d)}return f|0}function Uq(a,b){a=a|0;b=b|0;var c=0;c=H[a+88>>2];if(c){H[c+128>>2]=b}c=H[a+92>>2];if(c){H[c+128>>2]=b}c=H[a+96>>2];if(c){H[c+128>>2]=b}c=H[a+100>>2];if(c){H[c+128>>2]=b}c=H[a+120>>2];if(c){H[c+276>>2]=b}c=H[a+136>>2];if(c){H[c+276>>2]=b}c=H[a+124>>2];if(c){H[c+276>>2]=b}c=H[a+140>>2];if(c){H[c+276>>2]=b}c=H[a+128>>2];if(c){H[c+276>>2]=b}c=H[a+144>>2];if(c){H[c+276>>2]=b}c=H[a+132>>2];if(c){H[c+276>>2]=b}a=H[a+148>>2];if(a){H[a+276>>2]=b}}function uka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=H[a+8>>2];a:{if(!c){break a}b:{switch(I[a|0]){case 0:e=I[b+c|0];break a;case 3:break b;default:break a}}if(K[a+20>>2]>b-H[a+16>>2]>>>0){e=I[a+24|0];break a}d=c+2|0;g=c+H[a+12>>2]|0;c=I[c+1|0]|I[c|0]<<8;while(1){if(b>>>0>>0){break a}f=I[d+2|0]|I[d+1|0]<<8;if(f>>>0>b>>>0){e=I[d|0];F[a+24|0]=e;H[a+20>>2]=f-c;H[a+16>>2]=c;break a}c=f;d=d+3|0;if(g>>>0>d>>>0){continue}break}}return e|0}function LG(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=H[b+28>>2];e=H[b+24>>2];H[197455]=0;c=ca(643,e|0,c|0,f|0)|0;f=H[197455];H[197455]=0;if((f|0)!=1){a:{if(c){break a}c=H[e+84>>2];e=H[c+32>>2];H[d>>2]=e;f=H[c+36>>2];H[d+4>>2]=f;g=H[c+24>>2];H[d+8>>2]=g;c=H[c+28>>2];H[d+12>>2]=0-c;if(H[a+20>>2]<0){H[d+8>>2]=0-g;H[d>>2]=0-e}g=1;if(H[a+24>>2]>=0){break a}H[d+12>>2]=c;H[d+4>>2]=0-f}Vc();return g|0}a=$()|0;_()|0;Vc();ea(a|0);X()}function efa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=H[a+4>>2];if(c>>>0>=999999985){d=H[a>>2];H[d+20>>2]=56;H[d+24>>2]=3;zb[H[H[a>>2]>>2]](a)}d=c;c=c&7;d=d+(c?8-c|0:0)|0;if(b>>>0>=2){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=15;zb[H[H[a>>2]>>2]](a)}f=d+16|0;c=Tb(f);if(!c){g=H[a>>2];H[g+20>>2]=56;H[g+24>>2]=4;zb[H[H[a>>2]>>2]](a)}H[e+76>>2]=H[e+76>>2]+f;a=(b<<2)+e|0;b=H[a+60>>2];H[c+8>>2]=0;H[c+4>>2]=d;H[c>>2]=b;H[a+60>>2]=c;return c+16|0}function Ox(a,b){var c=0,d=0;a:{d=b&255;if(d){if(a&3){while(1){c=I[a|0];if(!c|(c|0)==(b&255)){break a}a=a+1|0;if(a&3){continue}break}}c=H[a>>2];b:{if((c^-1)&c-16843009&-2139062144){break b}d=N(d,16843009);while(1){c=c^d;if((c^-1)&c-16843009&-2139062144){break b}c=H[a+4>>2];a=a+4|0;if(!(c-16843009&(c^-1)&-2139062144)){continue}break}}while(1){c=a;d=I[c|0];if(d){a=c+1|0;if((d|0)!=(b&255)){continue}}break}return c}return ac(a)+a|0}return a}function IP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;while(1){a:{if((c|0)==(d|0)|e>>>0<=h>>>0){break a}g=1;f=xb-16|0;xb=f;H[f+12>>2]=H[a+8>>2];i=Kf(f+8|0,f+12|0);H[197455]=0;j=Ww(c,d-c|0,b);l=H[197455];H[197455]=0;b:{if((l|0)!=1){me(i);xb=f+16|0;break b}a=$()|0;_()|0;me(i);ea(a|0);X()}c:{switch(j+2|0){default:g=j;break;case 0:case 1:break a;case 2:break c}}h=h+1|0;k=g+k|0;c=c+g|0;continue}break}return k|0}function to(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=b&-4;if(c){while(1){e=(I[(d|3)+a|0]|(I[(d|1)+a|0]<<16|I[a+d|0]<<24|I[(d|2)+a|0]<<8))+e|0;d=d+4|0;if(c>>>0>d>>>0){continue}break}}if((b|0)!=(c|0)){d=0;a:{if(b>>>0<=c>>>0){break a}f=b&1;if((0-b|0)!=(c^-1)){h=(b&3)-f|0;b=0;while(1){g=c<<3&16;d=I[(c|1)+a|0]<<(g^16)|(I[a+c|0]<<(g^24)|d);c=c+2|0;b=b+2|0;if((h|0)!=(b|0)){continue}break}}if(!f){break a}d=I[a+c|0]<<((c<<3^-1)&24)|d}e=d+e|0}return e}function taa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){d=h<<2;a=g<<1;while(1){f=f-1|0;h=e;while(1){c=I[l+1|0];H[b>>2]=c<<24|((N(I[i+1|0],c)+127&65535)>>>0)/255|((N(I[j+1|0],c)+127&65535)>>>0)/255<<8|((N(I[k+1|0],c)+127&65535)>>>0)/255<<16;b=b+4|0;k=k+2|0;j=j+2|0;i=i+2|0;l=l+2|0;h=h-1|0;if(h){continue}break}b=b+d|0;l=a+l|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f){continue}break}}}function se(a,b,c,d){var e=0;e=xb-16|0;xb=e;if(a){H[a+744>>2]=34;F[e+11|0]=b;F[e+10|0]=b>>>8;F[e+9|0]=b>>>16;F[e+8|0]=b>>>24;F[e+7|0]=d;F[e+6|0]=d>>>8;F[e+5|0]=d>>>16;F[e+4|0]=d>>>24;Qc(a,e+4|0,8);H[a+348>>2]=b;Uf(a);xc(a,e+8|0,4);H[a+744>>2]=66;if(!(!c|!d)){Qc(a,c,d);xc(a,c,d)}H[a+744>>2]=130;b=H[a+384>>2];b=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);F[e+12|0]=b;F[e+13|0]=b>>>8;F[e+14|0]=b>>>16;F[e+15|0]=b>>>24;Qc(a,e+12|0,4)}xb=e+16|0}function XR(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;g=xb-16|0;xb=g;H[g+8>>2]=b;b=H[d+28>>2];H[g>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;h=aa(3329,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[g>>2];d=H[b+4>>2]-1|0;H[b+4>>2]=d;if((d|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Kw(a,f+24|0,g+8|0,c,e,h);xb=g+16|0;return H[g+8>>2]}c=$()|0;_()|0;a=H[g>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function WR(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;g=xb-16|0;xb=g;H[g+8>>2]=b;b=H[d+28>>2];H[g>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;h=aa(3329,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[g>>2];d=H[b+4>>2]-1|0;H[b+4>>2]=d;if((d|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Jw(a,f+16|0,g+8|0,c,e,h);xb=g+16|0;return H[g+8>>2]}c=$()|0;_()|0;a=H[g>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function RR(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;g=xb-16|0;xb=g;H[g+8>>2]=b;b=H[d+28>>2];H[g>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;h=aa(3342,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[g>>2];d=H[b+4>>2]-1|0;H[b+4>>2]=d;if((d|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Gw(a,f+24|0,g+8|0,c,e,h);xb=g+16|0;return H[g+8>>2]}c=$()|0;_()|0;a=H[g>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function QR(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;g=xb-16|0;xb=g;H[g+8>>2]=b;b=H[d+28>>2];H[g>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;h=aa(3342,g|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[g>>2];d=H[b+4>>2]-1|0;H[b+4>>2]=d;if((d|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Fw(a,f+16|0,g+8|0,c,e,h);xb=g+16|0;return H[g+8>>2]}c=$()|0;_()|0;a=H[g>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function sy(a,b,c){var d=0,e=0,f=0;b=+G[a+108>>1]*b;a:{if(P(b)<2147483648){d=~~b;break a}d=-2147483648}G[a+108>>1]=d;b=+G[a+110>>1]*c;b:{if(P(b)<2147483648){e=~~b;break b}e=-2147483648}G[a+110>>1]=e;c:{if((d|0)<2){break c}f=G[a+118>>1];if((f|0)<2){break c}d:{switch(J[a+80>>1]-7|0){case 0:b=+(f|0)/+(d|0);M[a+88>>3]=b;M[a+96>>3]=b;_e(a);return;case 1:break d;default:break c}}M[a+88>>3]=+(f|0)/+(d|0);M[a+96>>3]=+G[a+120>>1]/+(e|0)}_e(a)}function mP(a){a=a|0;if(I[790172]){return H[197542]}if(!I[790680]){a=790512;while(1){a=Dc(a)+12|0;if((a|0)!=790680){continue}break}F[790680]=1}Yc(790512,777732);Yc(790524,777760);Yc(790536,777788);Yc(790548,777820);Yc(790560,777860);Yc(790572,777896);Yc(790584,777924);Yc(790596,777960);Yc(790608,777976);Yc(790620,777992);Yc(790632,778008);Yc(790644,778024);Yc(790656,778040);Yc(790668,778056);F[790172]=1;H[197542]=790512;return 790512}function Mp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{d=ad(b);if(d>>>0<1073741808){b:{c:{if(d>>>0>=2){f=d+4&-4;e=Qb(f<<2);H[a+8>>2]=f|-2147483648;H[a>>2]=e;H[a+4>>2]=d;break c}F[a+11|0]=d;e=a;if(!d){break b}}H[197455]=0;Mb(e,b,d);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(d<<2)+e>>2]=0;H[a+20>>2]=H[c+8>>2];b=H[c+4>>2];H[a+12>>2]=H[c>>2];H[a+16>>2]=b;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;return a|0}qd(a);X()}ha(0)|0;_()|0;Zb();X()}function oP(a){a=a|0;if(I[790164]){return H[197540]}if(!I[790504]){a=790336;while(1){a=Dc(a)+12|0;if((a|0)!=790504){continue}break}F[790504]=1}Zc(790336,238159);Zc(790348,238166);Zc(790360,238132);Zc(790372,238140);Zc(790384,238123);Zc(790396,238173);Zc(790408,238150);Zc(790420,238711);Zc(790432,238825);Zc(790444,239158);Zc(790456,239392);Zc(790468,238226);Zc(790480,239e3);Zc(790492,238381);F[790164]=1;H[197540]=790336;return 790336}function P5(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=xb-16|0;xb=b;H[b+12>>2]=20;H[b+8>>2]=14;H[a+8>>2]=H[a+8>>2]+20;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);H[b+4>>2]=0;H[b>>2]=16;Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+12|0,4);c=H[a+4>>2];d=H[c+4>>2];if(d){e=c,f=Lg(d,48,0),H[e+8>>2]=f}Lb(H[a+4>>2],a+8|0,4);Lb(H[a+4>>2],a+12|0,4);Lb(H[a+4>>2],a+16|0,2);a=H[a+4>>2];zb[H[H[a>>2]+8>>2]](a);xb=b+16|0}function Iha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;F[d+15|0]=c;c=Qb(48);H[197455]=0;H[c>>2]=0;H[c+4>>2]=0;F[c+40|0]=0;H[c+32>>2]=0;H[c+36>>2]=-1074790400;F[c+21|0]=0;F[c+22|0]=0;F[c+23|0]=0;F[c+24|0]=0;F[c+25|0]=0;F[c+26|0]=0;F[c+27|0]=0;F[c+28|0]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;e=H[197455];H[197455]=0;if((e|0)!=1){F[c+40|0]=I[d+15|0];HD(c,a,b,0);xb=d+16|0;return c|0}a=$()|0;_()|0;Kb(c);ea(a|0);X()}function wo(a){a=a|0;var b=0,c=0;if(a){c=H[a+100>>2];Su(H[a+140>>2]);b=H[a+144>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+144>>2]=0;b=H[a+132>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+132>>2]=0;b=H[a+136>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+136>>2]=0;b=H[a+20>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+20>>2]=0;b=H[a+24>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+24>>2]=0;b=H[a+32>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+32>>2]=0;b=H[a+140>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+140>>2]=0}} +function Wia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!a){break a}d=H[a+36>>2];if(!d){return b|0}if((d|0)<=0){break a}d=0;while(1){c=H[H[a+40>>2]+(e<<2)>>2];b:{if(Ih(a,c)){break b}c:{c=H[c+4>>2];if((c|0)<=1937337697){if(!c){break c}if((c|0)!=1634889070){break b}break c}if((c|0)==1937337698){break c}if((c|0)!=1970170211){break b}d=0;c=Wd(a,b);if(c){break a}break b}d=Wd(a,b)}c=d;e=e+1|0;if((e|0)>2]){continue}break}}return c|0}function AK(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){b=H[a+540>>2];d=H[a+104>>2];e=H[a+100>>2];c=H[a+716>>2];if(c){zb[c|0](H[a+712>>2])}if(b){zb[H[b+12>>2]](a)}nd(H[a+104>>2],a+764|0);H[a+760>>2]=0;c=H[a+104>>2];b=H[c+28>>2];f=H[a+784>>2];if(f){zb[H[b+8>>2]](b,f)}H[a+784>>2]=0;nd(c,a+768|0);b=H[a+704>>2];if(b){zb[H[e+8>>2]](e,b)}H[a+700>>2]=0;H[a+704>>2]=0;nd(d,a+688|0);nd(d,a+696|0);H[a+692>>2]=0;H[a+684>>2]=0;pu(a);H[a+736>>2]=0}}function laa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{a=(c|0)/3|0;if(!a){break a}c=a-1|0;d=a&3;if(d){while(1){f=I[b+2|0];F[b+2|0]=I[b|0];F[b|0]=f;b=b+3|0;a=a-1|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(c>>>0<3){break a}while(1){c=I[b+2|0];F[b+2|0]=I[b|0];F[b|0]=c;c=I[b+5|0];F[b+5|0]=I[b+3|0];F[b+3|0]=c;c=I[b+8|0];F[b+8|0]=I[b+6|0];F[b+6|0]=c;c=I[b+11|0];F[b+11|0]=I[b+9|0];F[b+9|0]=c;b=b+12|0;a=a-4|0;if(a){continue}break}}}function VR(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;a=xb-16|0;xb=a;H[a+8>>2]=b;b=H[d+28>>2];H[a>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;g=aa(3329,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[a>>2];d=H[b+4>>2]-1|0;H[b+4>>2]=d;if((d|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Iw(f+20|0,a+8|0,c,e,g);xb=a+16|0;return H[a+8>>2]}c=$()|0;_()|0;a=H[a>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function PR(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;a=xb-16|0;xb=a;H[a+8>>2]=b;b=H[d+28>>2];H[a>>2]=b;H[b+4>>2]=H[b+4>>2]+1;H[197455]=0;g=aa(3342,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=H[a>>2];d=H[b+4>>2]-1|0;H[b+4>>2]=d;if((d|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Ew(f+20|0,a+8|0,c,e,g);xb=a+16|0;return H[a+8>>2]}c=$()|0;_()|0;a=H[a>>2];b=H[a+4>>2]-1|0;H[a+4>>2]=b;if((b|0)==-1){zb[H[H[a>>2]+8>>2]](a)}ea(c|0);X()}function tfa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=H[a+20>>2];if((d|0)!=205){f=H[a>>2];H[f+24>>2]=d;H[f+20>>2]=21;zb[H[H[a>>2]>>2]](a)}f=H[a+116>>2];g=H[a+140>>2];a:{if(f>>>0<=g>>>0){b=H[a>>2];H[b+20>>2]=126;zb[H[b+4>>2]](a,-1);b=0;break a}d=H[a+8>>2];if(d){H[d+8>>2]=f;H[d+4>>2]=g;zb[H[d>>2]](a)}H[e+12>>2]=0;zb[H[H[a+444>>2]+4>>2]](a,b,e+12|0,c);b=H[e+12>>2];H[a+140>>2]=b+H[a+140>>2]}xb=e+16|0;return b|0}function oJ(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=H[a+496>>2];if(!f){return 6}g=H[f+32>>2];if(g){a=0;while(1){e=H[f+28>>2]+N(a,20)|0;a:{if(H[e>>2]!=(c|0)){break a}h=H[e+4>>2];if((h|0)>(b|0)){H[d>>2]=H[e+8>>2];break a}i=H[e+12>>2];if((i|0)<(b|0)){H[d>>2]=H[e+16>>2];break a}j=d,k=ic(b-h|0,H[e+16>>2]-H[e+8>>2]|0,i-h|0)+H[e+8>>2]|0,H[j>>2]=k;g=H[f+32>>2]}a=a+1|0;if(g>>>0>a>>>0){continue}break}}return 0}function jU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;while(1){a:{if((c|0)<=(g|0)){break a}d=H[a+24>>2];e=H[a+28>>2];if(d>>>0>=e>>>0){if((zb[H[H[a>>2]+52>>2]](a,H[b>>2])|0)==-1){break a}g=g+1|0;b=b+4|0}else{H[f+12>>2]=e-d>>2;H[f+8>>2]=c-g;d=xb-16|0;xb=d;xb=d+16|0;d=f+8|0;e=f+12|0;d=H[(H[d>>2]>2]?d:e)>>2];vf(H[a+24>>2],b,d);e=d<<2;H[a+24>>2]=e+H[a+24>>2];g=d+g|0;b=b+e|0}continue}break}xb=f+16|0;return g|0}function qr(a){a=a|0;var b=0,c=0,d=0,e=0;e=H[a+60>>2];a:{if(e){break a}b=H[a+932>>2];if(b){c=H[a+448>>2];b:{if((c|0)>0){while(1){b=H[(d<<2)+b>>2];if(b){zb[H[H[b>>2]+4>>2]](b);c=H[a+448>>2]}b=H[a+932>>2];d=d+1|0;if((d|0)<(c|0)){continue}break}if(!b){break b}}Kb(b)}H[a+448>>2]=0;H[a+932>>2]=0}b=H[a+924>>2];if(b){Kb(b);H[a+924>>2]=0}b=H[a+928>>2];if(b){Kb(b);H[a+928>>2]=0}b=H[a+4>>2];if(!b){break a}Kb(b);H[a+4>>2]=0}return!e|0}function cV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=H[a+16>>2];if(!e){H[b>>2]=0;return 0}i=H[a+20>>2];f=H[b>>2];a:while(1){f=f+1|0;c=0;d=e;while(1){g=(d-c>>>1|0)+c|0;h=H[(g<<4)+i>>2];if((h|0)==(f|0)){if(!g){continue a}H[b>>2]=f;return g+1|0}h=f>>>0>h>>>0;d=h?d:g;c=h?g+1|0:c;if(d>>>0>c>>>0){continue}break}break}d=0;if(c>>>0>=e>>>0){H[b>>2]=0;return 0}e=0;if(c){e=H[H[a+20>>2]+(c<<4)>>2];d=c+1|0}H[b>>2]=e;return d|0}function Gfa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=H[a+24>>2];c=H[b+4>>2];if(!c){if(!(zb[H[b+12>>2]](a)|0)){return 0}c=H[b+4>>2]}d=H[b>>2];e=I[d|0];f=c-1|0;if(f){c=d+1|0}else{if(!(zb[H[b+12>>2]](a)|0)){return 0}f=H[b+4>>2];c=H[b>>2]}d=I[c|0];g=H[a>>2];H[g+20>>2]=93;H[g+24>>2]=H[a+436>>2];d=d|e<<8;e=d-2|0;H[H[a>>2]+28>>2]=e;zb[H[H[a>>2]+4>>2]](a,1);H[b+4>>2]=f-1;H[b>>2]=c+1;if(d>>>0>=3){zb[H[H[a+24>>2]+16>>2]](a,e)}return 1}function Eka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=H[b+100>>2];d=I[a+2|0]|I[a+3|0]<<8;if(d){c=((d<<8|d>>>8)&65535)+a|0}else{c=163632}d=Gc(c,H[H[e+80>>2]+N(H[e+64>>2],20)>>2]);a:{if((d|0)==-1){break a}c=I[a+6|0]|I[a+7|0]<<8;if(d>>>0>=((c<<8|c>>>8)&65535)>>>0){break a}f=1;g=a+4|0;c=a;a=N(jma(I[a+4|0]|I[a+5|0]<<8),d);Wh(g,b,c,(a|0)<0?163632:(c+(a<<1)|0)+8|0,H[e+88>>2]+N(H[e+64>>2],20)|0);H[e+64>>2]=H[e+64>>2]+1}return f|0}function YA(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=Tb(40);H[e>>2]=0;e=sd(a+624|0,1,e,4);i=_()|0;a:{b:{while(1){if(d){h=0;break a}d=H[H[a+4>>2]+8>>2];H[197455]=0;h=la(d|0,a|0,1,b|0,c|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break b}f=-1;c:{d:{if(!d){break d}g=H[197456];if(!g){break d}f=Sb(H[d>>2],e,i);if(!f){break c}ja(g|0)}d=_()|0;if((f|0)==1){continue}break a}break}Kb(e);ed(d,g);X()}a=$()|0;Kb(e);ea(a|0);X()}Kb(e);return h}function he(a,b){a=a|0;b=b|0;var c=0,d=0;d=a;a:{b:{if((d^b)&3){break b}if(b&3){while(1){c=I[b|0];F[d|0]=c;if(!c){break a}d=d+1|0;b=b+1|0;if(b&3){continue}break}}c=H[b>>2];if((c^-1)&c-16843009&-2139062144){break b}while(1){H[d>>2]=c;c=H[b+4>>2];d=d+4|0;b=b+4|0;if(!(c-16843009&(c^-1)&-2139062144)){continue}break}}c=I[b|0];F[d|0]=c;if(!c){break a}while(1){c=I[b+1|0];F[d+1|0]=c;d=d+1|0;b=b+1|0;if(c){continue}break}}return a|0}function Jj(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b=H[a+4>>2];if(!b){break a}a=H[a+44>>2];if(!a){break a}g=a&1;b=b+40|0;e=a-1|0;f=255/(e>>>0)|0;b:{if(!e){a=0;break b}h=a&-2;a=0;e=0;while(1){d=b+(a<<2)|0;c=N(a,f);F[d+1|0]=c;F[d+2|0]=c;F[d|0]=c;c=a|1;d=b+(c<<2)|0;c=N(c,f);F[d+1|0]=c;F[d+2|0]=c;F[d|0]=c;a=a+2|0;e=e+2|0;if((h|0)!=(e|0)){continue}break}}if(!g){break a}b=b+(a<<2)|0;a=N(a,f);F[b+1|0]=a;F[b+2|0]=a;F[b|0]=a}}function qp(a,b,c,d,e){var f=0,g=0,h=0,i=0;h=-1;f=d&2147483647;i=f;g=(f|0)==2147418112;a:{if(g&!c?a|b:g&(c|0)!=0|f>>>0>2147418112){break a}f=e&2147483647;g=(f|0)==2147418112;if(g?0:g&0|f>>>0>2147418112){break a}if(!(a|c|(f|i|b))){return 0}f=d&e;if((f|0)>0|(f|0)>=0){if(!c&(d|0)==(e|0)?0:(d|0)<(e|0)){break a}return(a|c|(d^e|b))!=0}if(!c&(d|0)==(e|0)?a|b:(c|0)!=0&(d|0)>=(e|0)|(d|0)>(e|0)){break a}h=(a|c|(d^e|b))!=0}return h}function xv(a,b,c){var d=0,e=0,f=0,g=0,h=0;h=xb-16|0;xb=h;e=xb-16|0;xb=e;a:{f=c-b|0;if(f>>>0<=1073741807){b:{if(f>>>0<=1){F[a+11|0]=f;d=a;break b}if(f>>>0>=2){g=f+4&-4;d=g-1|0;d=(d|0)==2?g:d}else{d=1}g=d+1|0;d=Vv(g);H[a>>2]=d;H[a+8>>2]=g|-2147483648;H[a+4>>2]=f}while(1){if((b|0)!=(c|0)){H[e+12>>2]=F[b|0];b=b+1|0;H[d>>2]=H[e+12>>2];d=d+4|0;continue}break}H[e+8>>2]=0;H[d>>2]=H[e+8>>2];xb=e+16|0;break a}qd(a);X()}xb=h+16|0}function waa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){d=h<<2;while(1){f=f-1|0;a=e;while(1){c=I[l|0];H[b>>2]=c<<24|((N(I[i|0],c)+127&65535)>>>0)/255|((N(I[j|0],c)+127&65535)>>>0)/255<<8|((N(I[k|0],c)+127&65535)>>>0)/255<<16;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;l=l+1|0;a=a-1|0;if(a){continue}break}l=g+l|0;k=g+k|0;j=g+j|0;i=g+i|0;b=b+d|0;if(f){continue}break}}}function Kia(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=H[d>>2];h=H[d+4>>2];f=H[d+8>>2];a:{if((h|0)>(f+7|0)){g=e;break a}if(!e){g=Tb(800);H[d+4>>2]=200;H[d>>2]=g;f=0;break a}g=Tb(h<<3);f=Ob(g,e,f<<2);Kb(e);H[d+4>>2]=h<<1;H[d>>2]=f;f=H[d+8>>2]}e=(f<<2)+g|0;H[e>>2]=3;H[e+4>>2]=H[a>>2];H[e+8>>2]=H[a+4>>2];H[e+12>>2]=H[b>>2];H[e+16>>2]=H[b+4>>2];H[e+20>>2]=H[c>>2];a=H[c+4>>2];H[d+8>>2]=f+7;H[e+24>>2]=a;return 0}function kM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=H[a>>2];d=H[f+140>>2];c=H[b+8>>2];g=H[f+32>>2];e=H[b+16>>2];if(e){c=(N(c,e)+36|0)/72|0}e=c+32>>6;c=7;a:{b:{c:{switch(H[b>>2]){case 0:c=23;if((e|0)==H[g+12>>2]+32>>6){break b}break a;case 1:break c;default:break a}}c=23;if((e|0)!=(H[d+44>>2]+H[d+40>>2]|0)){break a}}c=0;Vf(f,0);H[a+24>>2]=H[d+40>>2]<<6;H[a+28>>2]=0-(H[d+44>>2]<<6);H[a+36>>2]=J[d+4>>1]<<6}return c|0}function Mg(a,b){var c=0,d=0,e=0;c=H[b+76>>2];a:{if(!((c|0)>=0&(!c|H[197041]!=(c&-1073741825)))){b:{c=a&255;if((c|0)==H[b+80>>2]){break b}d=H[b+20>>2];if((d|0)==H[b+16>>2]){break b}H[b+20>>2]=d+1;F[d|0]=a;break a}c=qm(b,c);break a}d=b+76|0;c=H[d>>2];H[d>>2]=c?c:1073741823;c:{d:{c=a&255;if((c|0)==H[b+80>>2]){break d}e=H[b+20>>2];if((e|0)==H[b+16>>2]){break d}H[b+20>>2]=e+1;F[e|0]=a;break c}c=qm(b,c)}H[d>>2]=0}return c}function pU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;while(1){a:{if((c|0)<=(f|0)){break a}d=H[a+24>>2];g=H[a+28>>2];if(d>>>0>=g>>>0){if((zb[H[H[a>>2]+52>>2]](a,I[b|0])|0)==-1){break a}f=f+1|0;b=b+1|0}else{H[e+12>>2]=g-d;H[e+8>>2]=c-f;d=xb-16|0;xb=d;xb=d+16|0;d=e+8|0;g=e+12|0;d=H[(H[d>>2]>2]?d:g)>>2];Jg(H[a+24>>2],b,d);H[a+24>>2]=d+H[a+24>>2];f=d+f|0;b=b+d|0}continue}break}xb=e+16|0;return f|0}function by(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=xb-16|0;xb=f;H[f+12>>2]=0;e=H[d>>2];if(e){if(e){zb[H[c+8>>2]](c,e)}H[d>>2]=0}a:{if(!b){e=0;break a}b:{e=b-1|0;if(I[e+a|0]){break b}b=e;if(e){break b}e=0;break a}e=0;c:{while(1){if(F[a+e|0]>=32){e=e+1|0;if((e|0)!=(b|0)){continue}break c}break}e=0;break a}e=pc(c,b+1|0,f+12|0);g=H[f+12>>2];if(g){break a}h=Ob(e,a,b)+b|0,i=0,F[h|0]=i;g=H[f+12>>2]}H[d>>2]=e;xb=f+16|0;return g}function Km(a){a=a|0;var b=0,c=0,d=0;H[a+4>>2]=424548;H[a>>2]=424484;a:{b:{if(H[a+8>>2]!=5){break b}b=a+24|0;c=I[a+35|0];if(!(c<<24>>24<0?H[a+28>>2]:c)){H[197455]=0;c=pa(1924,b|0,0,-1,401008,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}if(!c){break b}}H[197455]=0;aa(1698,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}}b=H[a+36>>2];if(b){Kb(b)}if(F[a+35|0]<0){Kb(H[a+24>>2])}return a|0}ha(0)|0;_()|0;Zb();X()}function Cv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=xb-16|0;xb=f;d=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:1;if(I[a+11|0]>>>7|0){e=H[a+4>>2]}else{e=I[a+11|0]}a:{if(d-e>>>0>=c>>>0){if(!c){break a}if(I[a+11|0]>>>7|0){d=H[a>>2]}else{d=a}vf(d+(e<<2)|0,b,c);b=c+e|0;b:{if(I[a+11|0]>>>7|0){H[a+4>>2]=b;break b}F[a+11|0]=b}H[f+12>>2]=0;H[d+(b<<2)>>2]=H[f+12>>2];break a}jk(a,d,(c+e|0)-d|0,e,e,0,c,b)}xb=f+16|0;return a|0}function Ak(a){a=a|0;var b=0,c=0,d=0;H[a+4>>2]=436620;H[a>>2]=436556;a:{b:{if(J[a+8>>1]!=5){break b}b=a+16|0;c=I[a+27|0];if(!(c<<24>>24<0?H[a+20>>2]:c)){H[197455]=0;c=pa(1924,b|0,0,-1,436672,0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}if(!c){break b}}H[197455]=0;aa(1698,b|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}}b=H[a+28>>2];if(b){Kb(b)}if(F[a+27|0]<0){Kb(H[a+16>>2])}return a|0}ha(0)|0;_()|0;Zb();X()}function Saa(a,b,c,d,e,f,g,h,i){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;var j=0;if(!(!f|!e)){d=J[a+26>>1];j=N(g,d);a=H[a+56>>2];h=h<<2;while(1){f=f-1|0;g=e;while(1){c=I[i+3|0]^255;H[b>>2]=I[a+((N(c,I[i+1|0]^255)>>>0)/255|0)|0]<<8|I[a+((N(I[i|0]^255,c)>>>0)/255|0)|0]|I[a+((N(I[i+2|0]^255,c)>>>0)/255|0)|0]<<16|-16777216;i=d+i|0;b=b+4|0;g=g-1|0;if(g){continue}break}i=i+j|0;b=b+h|0;if(f){continue}break}}}function IS(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=xb-16|0;xb=f;be(a,H[a+8>>2]);g=H[a>>2];H[f+12>>2]=g;h=H[a+8>>2];a:{if(h>>>0<=g>>>0){break a}b:{if(e){i=3;if(I[g|0]!=60){break a}H[f+12>>2]=g+1;j=d,k=Qw(f+12|0,h,b,c),H[j>>2]=k;b=H[f+12>>2];H[a>>2]=b;if(I[b|0]!=62&b>>>0>2]){break a}b=b+1|0;break b}j=d,k=Qw(f+12|0,h,b,c),H[j>>2]=k;b=H[f+12>>2]}H[a>>2]=b;i=0}xb=f+16|0;return i|0}function Hy(a){a=a|0;var b=0,c=0;H[a>>2]=436304;b=H[a+244>>2];if(b){Kb(b);H[a+244>>2]=0}H[a+248>>2]=0;H[a+252>>2]=0;xy(a+120|0);H[a>>2]=417328;c=417328;a:{if(I[a+28|0]){break a}b=H[a+24>>2];c=417328;if(!b){break a}Kb(b);H[a+24>>2]=0;c=H[a>>2]}b=c;H[a+4>>2]=0;H[a+8>>2]=0;F[a+29|0]=0;H[a+12>>2]=0;H[a+16>>2]=0;b=H[b+12>>2];H[197455]=0;ia(b|0,a|0);b=H[197455];H[197455]=0;if((b|0)==1){ha(0)|0;_()|0;Zb();X()}return a|0}function F6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;a:{if((b|0)<=0){a=H[a+4>>2];H[d+12>>2]=1;zb[H[H[a>>2]+348>>2]](a,d+12|0)|0;break a}e=H[a+12>>2];if((e|0)==-1){break a}f=!(b&1)|!(e&1);c=f?-1:1;b:{c:{if(!(b&2)){break c}if(e&256){if(f){c=256;break b}c=c|256;break c}if(!(e&512)){break c}if(f){c=512;break b}c=c|512}if((c|0)==-1){break a}}a=H[a+4>>2];H[d+8>>2]=c;zb[H[H[a>>2]+348>>2]](a,d+8|0)|0}xb=d+16|0}function EM(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=H[a+24>>2];H[a+48>>2]=b;d=H[a+28>>2];H[a+52>>2]=d;e=H[a+8>>2];f=e+H[a>>2]|0;H[a+8>>2]=f>>1;c=b;b=H[a+16>>2];c=c+b|0;H[a+40>>2]=c>>1;b=b+e|0;e=b+f|0;H[a+16>>2]=e>>2;b=b+c|0;H[a+32>>2]=b>>2;c=d;d=H[a+20>>2];f=c+d|0;H[a+44>>2]=f>>1;c=H[a+12>>2];g=c+H[a+4>>2]|0;H[a+12>>2]=g>>1;H[a+24>>2]=b+e>>3;b=d+c|0;d=b+f|0;H[a+36>>2]=d>>2;b=b+g|0;H[a+20>>2]=b>>2;H[a+28>>2]=b+d>>3}function mH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;b=xb-16|0;xb=b;H[b+12>>2]=c;d=H[a+80>>2];e=H[d+184>>2];a:{if((e|0)!=H[195990]){zb[e|0](a,H[a+84>>2],1,b+12|0,0,b+8|0,0,H[d+40>>2]);c=H[b+8>>2];break a}d=H[a+12>>2];e=H[d+80>>2];c=zb[H[e+176>>2]](d,H[d+84>>2],c,H[e+32>>2])|0;d=H[a+12>>2];if(!d){break a}d=H[d+20>>2];a=H[a+20>>2];if((d|0)==(a|0)){break a}c=hma(gma(a,a>>31,c,c>>31),yb,d,d>>31)}xb=b+16|0;return c|0}function lH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;b=xb-16|0;xb=b;H[b+12>>2]=c;d=H[a+80>>2];e=H[d+188>>2];a:{if((e|0)!=H[195991]){zb[e|0](a,H[a+84>>2],1,b+12|0,0,b+8|0,0,H[d+44>>2]);c=H[b+8>>2];break a}d=H[a+12>>2];e=H[d+80>>2];c=zb[H[e+180>>2]](d,H[d+84>>2],c,H[e+36>>2])|0;d=H[a+12>>2];if(!d){break a}d=H[d+24>>2];a=H[a+24>>2];if((d|0)==(a|0)){break a}c=hma(gma(a,a>>31,c,c>>31),yb,d,d>>31)}xb=b+16|0;return c|0}function ida(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if((e|0)<=0){break a}h=H[a+28>>2];if(!h){break a}g=H[H[a+408>>2]+8>>2];while(1){i=e-1|0;j=H[H[c>>2]+(d<<2)>>2];a=H[b>>2];f=0;while(1){F[f+j|0]=H[((I[a+2|0]<<2)+g|0)+2048>>2]+(H[((I[a+1|0]<<2)+g|0)+1024>>2]+H[(I[a|0]<<2)+g>>2]|0)>>>16;a=a+3|0;f=f+1|0;if((h|0)!=(f|0)){continue}break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=i;if(a){continue}break}}}function _9(a){a=a|0;var b=0,c=0,d=0,e=0;d=xb+-64|0;xb=d;e=J[a+88>>1];b=H[196375];a:{if(b){while(1){c=H[b+4>>2];if(J[c+4>>1]==(e|0)){break a}b=H[b>>2];if(b){continue}break}}if(H[196104]){c=784416;while(1){if(J[c+4>>1]==(e|0)){break a}b=H[c+12>>2];c=c+12|0;if(b){continue}break}}c=0}H[d+16>>2]=J[a+88>>1];Ad(d+32|0,279719,d+16|0);b=H[a>>2];e=H[a+628>>2];H[d>>2]=c?H[c>>2]:d+32|0;Pb(e,b,279916,d);xb=d- -64|0;return 0}function MJ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{if(!I[a+733|0]){break a}d=H[a+736>>2];if(!d){break a}if(!I[d+32|0]){e=bu(a,0);d=H[a+736>>2];H[d+36>>2]=e}if(!I[d+33|0]){return H[d+36>>2]}d=H[d+40>>2];e=H[d+28>>2];b:{if(e){f=e;e=H[d+20>>2];e=(b>>>0>>0?b:e-1|0)<<2;b=H[f+e>>2];f=H[e+H[d+24>>2]>>2];break b}e=6;if(K[H[d+4>>2]>>2]<=b>>>0){break a}}g=c,h=ko(a,d,f,b)+H[c>>2]|0,H[g>>2]=h;e=0}return e|0}function LJ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{if(!I[a+733|0]){break a}d=H[a+736>>2];if(!d){break a}if(!I[d+44|0]){e=bu(a,1);d=H[a+736>>2];H[d+48>>2]=e}if(!I[d+45|0]){return H[d+48>>2]}d=H[d+52>>2];e=H[d+28>>2];b:{if(e){f=e;e=H[d+20>>2];e=(b>>>0>>0?b:e-1|0)<<2;b=H[f+e>>2];f=H[e+H[d+24>>2]>>2];break b}e=6;if(K[H[d+4>>2]>>2]<=b>>>0){break a}}g=c,h=ko(a,d,f,b)+H[c>>2]|0,H[g>>2]=h;e=0}return e|0}function BC(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=xb-32|0;F[g+23|0]=0;d=g+23|0;while(1){if(!(!c&(f|0)>0)){d=d-1|0;e=c;c=(c>>>0)/10|0;e=I[(e-N(c,10)|0)+262640|0];F[d|0]=e;f=f+1|0;if(d>>>0>g>>>0){continue}}break}a:{if(!a){break a}b=b-1|0;if(b>>>0>7){break a}f=0;b:{if(!d|!e){break b}g=(b<<5)+a|0;c=0;while(1){F[c+g|0]=e;f=c+1|0;e=I[d+1|0];if(!e){break b}d=d+1|0;h=c>>>0<30;c=f;if(h){continue}break}}F[((b<<5)+a|0)+f|0]=0}}function vv(a,b,c,d){var e=0,f=0,g=0;g=a;a:{b:{e=c-b|0;if((e|0)<=9){f=e;e=N(32-Q(d|1)|0,1233)>>>12|0;if((f|0)<((e-(K[(e<<2)+781648>>2]>d>>>0)|0)+1|0)){break b}}f=a;c:{if(d>>>0<=99999999){d:{if(d>>>0<=9999){a=Iv(b,d);break d}a=b;b=(d>>>0)/1e4|0;a=Ql(Iv(a,b),d-N(b,1e4)|0)}break c}a=d;d=(d>>>0)/1e8|0;c=a-N(d,1e8)|0;e=(c>>>0)/1e4|0;a=Ql(Ql(Jv(b,d),e),c-N(e,1e4)|0)}H[f>>2]=a;a=0;break a}H[a>>2]=c;a=61}H[g+4>>2]=a}function kR(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-16|0;xb=d;H[a>>2]=0;H[a+4>>2]=0;H[d+12>>2]=0;H[197455]=0;c=a+8|0;H[c>>2]=0;F[c+128|0]=0;c=H[197455];H[197455]=0;a:{if((c|0)!=1){xb=d+16|0;break a}ha(0)|0;_()|0;Zb();X()}d=a;b:{if(!b){break b}H[197455]=0;ba(3544,a|0,b|0);c=H[197455];H[197455]=0;if((c|0)!=1){H[197455]=0;So(a,b);b=H[197455];H[197455]=0;if((b|0)!=1){break b}}a=$()|0;_()|0;jw(d);ea(a|0);X()}return a|0}function gi(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;H[c+12>>2]=0;e=Gd(a,c+12|0);d=H[c+12>>2];a:{if(d){break a}b:{c:{d:{e:{e=e&255;switch(e-253|0){case 1:break c;case 2:break d;case 0:break e;default:break b}}e=nc(a,c+12|0);d=H[c+12>>2];if(!d){break b}break a}a=Gd(a,c+12|0);d=H[c+12>>2];if(d){break a}e=(a&255)+253|0;break b}a=Gd(a,c+12|0);d=H[c+12>>2];if(d){break a}e=(a&255)+506|0}G[b>>1]=e;d=0}xb=c+16|0;return d}function QS(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=O(0),g=0,h=O(0);e=xb-16|0;xb=e;a:{b:{c:{if((a|0)!=(b|0)){g=H[197018];H[197018]=0;Od();d=xb-16|0;xb=d;up(d,a,e+12|0,0);f=xx(H[d>>2],H[d+4>>2],H[d+8>>2],H[d+12>>2]);xb=d+16|0;a=H[197018];if(!a){break c}if(H[e+12>>2]!=(b|0)){break b}h=f;if((a|0)!=68){break a}break b}H[c>>2]=4;break a}H[197018]=g;if(H[e+12>>2]==(b|0)){break a}}H[c>>2]=4;f=h}xb=e+16|0;return O(f)}function V6(a){a=a|0;var b=0,c=0;b=H[a+16>>2];a:{if(I[b+28|0]){break a}c=H[b+24>>2];if(!c){break a}Kb(c);H[b+24>>2]=0}H[b+4>>2]=0;H[b+8>>2]=0;F[b+29|0]=0;H[b+12>>2]=0;H[b+16>>2]=0;zb[H[H[b>>2]+12>>2]](b);b=H[a+20>>2];b=H[H[b>>2]-12>>2]+b|0;b:{if(I[b+28|0]){break b}c=H[b+24>>2];if(!c){break b}Kb(c);H[b+24>>2]=0}H[b+4>>2]=0;H[b+8>>2]=0;F[b+29|0]=0;H[b+12>>2]=0;H[b+16>>2]=0;zb[H[H[b>>2]+12>>2]](b);H[a+24>>2]=0}function Pk(a,b){var c=0,d=0;c=xb-16|0;b=b<<8&16711680|b<<24|(b>>>8&65280|b>>>24);F[c+11|0]=b;F[c+12|0]=b>>>8;F[c+13|0]=b>>>16;F[c+14|0]=b>>>24;a:{if(!a){break a}b=H[a+644>>2];if((b|0)<=0){break a}d=H[a+648>>2];a=d+N(b,5)|0;while(1){b=a-5|0;if((I[c+11|0]|I[c+12|0]<<8|(I[c+13|0]<<16|I[c+14|0]<<24))==(I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24))){return I[a-1|0]}a=b;if(b>>>0>d>>>0){continue}break}}return 0}function B5(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;if(d){H[e+12>>2]=0;H[e+8>>2]=28;H[e+4>>2]=38;H[a+8>>2]=H[a+8>>2]+28;H[a+12>>2]=H[a+12>>2]+1;G[a+16>>1]=J[a+16>>1]+1;Lb(H[a+4>>2],e+4|0,4);Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],d+16|0,1);Lb(H[a+4>>2],d+17|0,1);Lb(H[a+4>>2],d+18|0,1);Lb(H[a+4>>2],d+19|0,1)}xb=e+16|0}function wJ(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;H[d>>2]=0;H[d+4>>2]=0;e=H[a+496>>2];if(e){a=H[e+36>>2];e=(a+(H[e+40>>2]<<4)|0)-16|0;a:{if(a>>>0>e>>>0){break a}c=b<<16|c;while(1){f=(e-a>>4)/2|0;b=(f<<4)+a|0;g=H[b>>2]<<16|H[b+4>>2];if((c|0)==(g|0)){a=(f<<4)+a|0;H[d>>2]=H[a+8>>2];h=H[a+12>>2];break a}f=c>>>0>g>>>0;a=f?b+16|0:a;e=f?e:b-16|0;if(a>>>0<=e>>>0){continue}break}}H[d+4>>2]=h}return 0}function hI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=H[b+8>>2];f=H[a>>2];g=H[f+32>>2];e=H[f+132>>2];d=H[b+16>>2];if(d){c=(N(c,d)+36|0)/72|0}d=c+32>>6;c=7;a:{b:{c:{switch(H[b>>2]){case 0:c=23;if((d|0)==H[g+12>>2]+32>>6){break b}break a;case 1:break c;default:break a}}c=23;if((d|0)!=J[e+96>>1]){break a}}c=0;Vf(f,0);b=J[e+80>>1];H[a+24>>2]=b<<6;H[a+28>>2]=b-J[e+96>>1]<<6;H[a+36>>2]=J[e+102>>1]<<6}return c|0}function DJ(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;i=H[a+20>>2];h=H[a+16>>2];a:{b:{if(h){e=H[b>>2]+1|0;a=h>>>1|0;g=h;while(1){d=c+g>>>1|0;d=a>>>0>=g>>>0?d:a>>>0>>0?d:a;f=H[(d<<3)+i>>2];if((f|0)==(e|0)){c=d;break b}a=(e+d|0)-f|0;f=e>>>0>>0;c=f?c:d+1|0;g=f?d:g;if(c>>>0>>0){continue}break}}e=0;if(c>>>0>=h>>>0){break a}e=H[(c<<3)+i>>2]}j=J[((c<<3)+i|0)+4>>1]+1&65535}H[b>>2]=e;return j|0}function $W(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H[b+8>>2];d=H[a>>2];f=H[d+32>>2];e=H[b+16>>2];if(e){c=(N(c,e)+36|0)/72|0}e=c+32>>6;c=7;a:{b:{c:{switch(H[b>>2]){case 0:c=23;if((e|0)==H[f+12>>2]+32>>6){break b}break a;case 1:break c;default:break a}}c=23;if((e|0)!=(H[d+208>>2]+H[d+204>>2]|0)){break a}}c=0;Vf(d,0);H[a+24>>2]=H[d+204>>2]<<6;H[a+28>>2]=0-(H[d+208>>2]<<6);H[a+36>>2]=G[d+236>>1]<<6}return c|0}function Io(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=xb-16|0;xb=f;d=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:10;if(I[a+11|0]>>>7|0){e=H[a+4>>2]}else{e=I[a+11|0]}a:{if(d-e>>>0>=c>>>0){if(!c){break a}if(I[a+11|0]>>>7|0){d=H[a>>2]}else{d=a}Jg(d+e|0,b,c);b=c+e|0;b:{if(I[a+11|0]>>>7|0){H[a+4>>2]=b;break b}F[a+11|0]=b}F[f+15|0]=0;F[b+d|0]=I[f+15|0];break a}Hv(a,d,(c+e|0)-d|0,e,e,0,c,b)}xb=f+16|0;return a|0}function XA(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=Tb(40);H[d>>2]=0;d=sd(a+624|0,1,d,4);i=_()|0;a:{b:{while(1){if(e){h=-1;break a}H[197455]=0;h=ca(1572,a|0,b|0,c|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;c:{d:{if(!e){break d}g=H[197456];if(!g){break d}f=Sb(H[e>>2],d,i);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}break a}break}Kb(d);ed(e,g);X()}a=$()|0;Kb(d);ea(a|0);X()}Kb(d);return h}function UA(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=Tb(40);H[d>>2]=0;d=sd(a+624|0,1,d,4);i=_()|0;a:{b:{while(1){if(e){h=-1;break a}H[197455]=0;h=ca(1542,a|0,b|0,c|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}f=-1;c:{d:{if(!e){break d}g=H[197456];if(!g){break d}f=Sb(H[e>>2],d,i);if(!f){break c}ja(g|0)}e=_()|0;if((f|0)==1){continue}break a}break}Kb(d);ed(e,g);X()}a=$()|0;Kb(d);ea(a|0);X()}Kb(d);return h}function NT(a,b){a=a|0;b=b|0;var c=0,d=0;if(K[a+24>>2]>K[a+44>>2]){H[a+44>>2]=H[a+24>>2]}a:{if(K[a+8>>2]>=K[a+12>>2]){break a}if((b|0)==-1){c=H[a+8>>2];d=H[a+12>>2]-1|0;H[a+16>>2]=H[a+44>>2];H[a+12>>2]=d;H[a+8>>2]=c;return((b|0)==-1?0:b)|0}if(!(I[a+48|0]&16)&I[H[a+12>>2]-1|0]!=(b&255)){break a}c=H[a+8>>2];d=H[a+12>>2]-1|0;H[a+16>>2]=H[a+44>>2];H[a+12>>2]=d;H[a+8>>2]=c;F[H[a+12>>2]]=b;return b|0}return-1}function wG(a){a=a|0;var b=0,c=0;H[a+168>>2]=0;Kb(H[a+172>>2]);H[a+172>>2]=0;H[a+164>>2]=0;H[a+168>>2]=0;b=H[a+32>>2];if(b){while(1){b=H[a+36>>2]+(b<<5)|0;H[b-12>>2]=0;c=b-8|0;Kb(H[c>>2]);H[c>>2]=0;b=b-16|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+32>>2]-1|0;H[a+32>>2]=b;if(b){continue}break}}Kb(H[a+36>>2]);H[a+100>>2]=0;H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;Kb(H[a+104>>2]);H[a+104>>2]=0;H[a+96>>2]=0;H[a+100>>2]=0}function ug(a,b,c,d,e,f){var g=0;a:{if((e|0)<=0){break a}g=e-1|0;a=(b<<2)+a|0;b=(d<<2)+c|0;d=e&3;if(d){c=0;while(1){Ob(H[b>>2],H[a>>2],f);e=e-1|0;b=b+4|0;a=a+4|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}if(g>>>0<3){break a}while(1){Ob(H[b>>2],H[a>>2],f);Ob(H[b+4>>2],H[a+4>>2],f);Ob(H[b+8>>2],H[a+8>>2],f);Ob(H[b+12>>2],H[a+12>>2],f);b=b+16|0;a=a+16|0;c=e-5|0;e=e-4|0;if(c>>>0<4294967294){continue}break}}}function _S(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=xb-16|0;xb=e;a:{b:{if((a|0)!=(b|0)){g=H[197018];H[197018]=0;d=Vw(a,e+12|0,d,Od());a=yb;f=H[197018];c:{if(f){if(H[e+12>>2]!=(b|0)){break c}if((f|0)==68){break b}break a}H[197018]=g;if(H[e+12>>2]==(b|0)){break a}}}H[c>>2]=4;d=0;a=0;break a}H[c>>2]=4;if(!!d&(a|0)>=0|(a|0)>0){d=-1;a=2147483647;break a}d=0;a=-2147483648}xb=e+16|0;yb=a;return d|0}function z8(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=xb-80|0;xb=c;e=H[a+584>>2];d=H[a+48>>2];if(d&4){H[c+64>>2]=H[e+916>>2];Fc(b,277296,c- -64|0);d=H[a+48>>2]}if(d&8){H[c+48>>2]=H[e+936>>2];Fc(b,277878,c+48|0);d=H[a+48>>2]}if(d&16){H[c+32>>2]=H[e+940>>2];Fc(b,278500,c+32|0);d=H[a+48>>2]}if(d&32){H[c+16>>2]=H[e+944>>2];Fc(b,278832,c+16|0);d=H[a+48>>2]}if(d&64){H[c>>2]=H[e+948>>2];Fc(b,279160,c)}xb=c+80|0}function raa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;c=xb-16|0;xb=c;if(f){d=h<<2;while(1){h=e;while(1){qc(H[a+68>>2],I[i|0],I[j|0],I[k|0],c+12|0,c+8|0,c+4|0);H[b>>2]=H[c+12>>2]|H[c+8>>2]<<8|H[c+4>>2]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;h=h-1|0;if(h){continue}break}k=g+k|0;j=g+j|0;i=g+i|0;b=b+d|0;f=f-1|0;if(f){continue}break}}xb=c+16|0}function ze(a){var b=0,c=0,d=0;b=xb-16|0;xb=b;A(+a);d=v(1)|0;v(0)|0;d=d&2147483647;a:{if(d>>>0<=1072243195){c=1;if(d>>>0<1044816030){break a}c=wk(a,0);break a}c=a-a;if(d>>>0>=2146435072){break a}b:{switch(cy(a,b)&3){case 0:c=wk(M[b>>3],M[b+8>>3]);break a;case 1:c=-vk(M[b>>3],M[b+8>>3],1);break a;case 2:c=-wk(M[b>>3],M[b+8>>3]);break a;default:break b}}c=vk(M[b>>3],M[b+8>>3],1)}a=c;xb=b+16|0;return a}function WA(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Tb(40);H[c>>2]=0;c=sd(a+624|0,1,c,4);h=_()|0;a:{b:{while(1){if(d){g=-1;break a}H[197455]=0;g=ca(1002,a|0,b|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break b}e=-1;c:{d:{if(!d){break d}f=H[197456];if(!f){break d}e=Sb(H[d>>2],c,h);if(!e){break c}ja(f|0)}d=_()|0;if((e|0)==1){continue}break a}break}Kb(c);ed(d,f);X()}a=$()|0;Kb(c);ea(a|0);X()}Kb(c);return g}function OS(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;a:{b:{c:{if((a|0)!=(b|0)){g=H[197018];H[197018]=0;Od();d=xb-16|0;xb=d;up(d,a,e+12|0,1);f=op(H[d>>2],H[d+4>>2],H[d+8>>2],H[d+12>>2]);xb=d+16|0;a=H[197018];if(!a){break c}if(H[e+12>>2]!=(b|0)){break b}h=f;if((a|0)!=68){break a}break b}H[c>>2]=4;break a}H[197018]=g;if(H[e+12>>2]==(b|0)){break a}}H[c>>2]=4;f=h}xb=e+16|0;return+f}function td(a,b){var c=0,d=0,e=0;H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;a:{c=H[b+4>>2];if(c){if(c>>>0>=134217728){H[197455]=0;ia(2945,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}X()}H[197455]=0;e=c<<5;c=aa(899,e|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a>>2]=c;H[a+4>>2]=c;d=c+e|0;H[a+8>>2]=d;Ob(c,H[b>>2],e);H[a+4>>2]=d}return a}c=$()|0;_()|0;b=H[a>>2];if(b){H[a+4>>2]=b;Kb(b)}ea(c|0);X()}function gA(a,b,c){var d=0;a:{if(!c){break a}H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;if(!a){break a}d=H[a+4>>2];if(!d){break a}d=H[d+24>>2];if(!d){break a}zb[d|0](a,c);if((b&-3)==1){H[c>>2]=H[c>>2]&-64;H[c+4>>2]=H[c+4>>2]&-64;H[c+8>>2]=H[c+8>>2]+63&-64;H[c+12>>2]=H[c+12>>2]+63&-64}if((b&-2)!=2){break a}H[c>>2]=H[c>>2]>>6;H[c+4>>2]=H[c+4>>2]>>6;H[c+8>>2]=H[c+8>>2]>>6;H[c+12>>2]=H[c+12>>2]>>6}}function fd(a,b){var c=0,d=0,e=0;H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;a:{c=H[b+4>>2];if(c){if(c>>>0>=268435456){H[197455]=0;ia(1652,a|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}X()}H[197455]=0;e=c<<4;c=aa(899,e|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a>>2]=c;H[a+4>>2]=c;d=c+e|0;H[a+8>>2]=d;Ob(c,H[b>>2],e);H[a+4>>2]=d}return a}c=$()|0;_()|0;b=H[a>>2];if(b){H[a+4>>2]=b;Kb(b)}ea(c|0);X()}function aB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Tb(40);H[c>>2]=0;c=sd(a+624|0,1,c,4);h=_()|0;a:{b:{while(1){if(d){g=-1;break a}H[197455]=0;g=ca(986,a|0,b|0,1)|0;d=H[197455];H[197455]=0;if((d|0)==1){break b}e=-1;c:{d:{if(!d){break d}f=H[197456];if(!f){break d}e=Sb(H[d>>2],c,h);if(!e){break c}ja(f|0)}d=_()|0;if((e|0)==1){continue}break a}break}Kb(c);ed(d,f);X()}a=$()|0;Kb(c);ea(a|0);X()}Kb(c);return g}function GM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;f=H[a+4>>2];e=0-f|0;a:{if((e&(c+f|0)-1)!=(c|0)){break a}c=c>>H[a>>2];if((c|0)<0|c>>>0>=K[a+96>>2]){break a}c=(H[a+56>>2]+(b>>3)|0)-N(c,H[a+104>>2])|0;F[c|0]=I[c|0]|128>>>(b&7);e=0-H[a+4>>2]|0}b:{if((d&e)!=(d|0)){break b}c=d>>H[a>>2];if((c|0)<0|c>>>0>=K[a+96>>2]){break b}a=(H[a+56>>2]+(b>>3)|0)-N(c,H[a+104>>2])|0;F[a|0]=I[a|0]|128>>>(b&7)}}function DL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(b){h=142;g=J[a+152>>1];if(!g){break b}f=H[a+156>>2];i=f+(g<<4)|0;while(1){d:{if(H[f>>2]==(b|0)){g=H[f+12>>2];if(g){break d}}f=f+16|0;if(i>>>0>f>>>0){continue}break b}break}c=H[f+8>>2]+c|0;break c}g=H[H[a+104>>2]+4>>2]}if(!e){f=g;break a}f=H[e>>2];if(f){break a}H[e>>2]=g;h=0}return h|0}return Xm(H[a+104>>2],c,d,f)|0}function C3(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=6;b=ac(c);f=b+6|0;a:{b:{if((b|0)<=-6){if(f){break a}a=0;break b}a=H[a>>2];a=zb[H[a+4>>2]](a,f)|0;if(!a){return 64}Nb(a,0,f)}g=0;c=Ob(a,c,b);a=c+b|0;b=I[11728]|I[11729]<<8;F[a+4|0]=b;F[a+5|0]=b>>>8;b=I[11724]|I[11725]<<8|(I[11726]<<16|I[11727]<<24);F[a|0]=b;F[a+1|0]=b>>>8;F[a+2|0]=b>>>16;F[a+3|0]=b>>>24;H[d>>2]=c;H[e>>2]=0}return g|0}function yj(a,b){var c=0,d=0,e=0,f=0;a:{if(!b){break a}c=b-1|0;d=b&3;if(d){while(1){f=I[a+1|0];F[a+1|0]=I[a|0];F[a|0]=f;a=a+2|0;b=b-1|0;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(c>>>0<3){break a}while(1){c=I[a+1|0];F[a+1|0]=I[a|0];F[a|0]=c;c=I[a+3|0];F[a+3|0]=I[a+2|0];F[a+2|0]=c;c=I[a+5|0];F[a+5|0]=I[a+4|0];F[a+4|0]=c;c=I[a+7|0];F[a+7|0]=I[a+6|0];F[a+6|0]=c;a=a+8|0;b=b-4|0;if(b){continue}break}}}function pga(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[a+24|0]=0;a:{if(!b){break a}e=H[a+4>>2];if(!e){break a}c=N(c,d);if(!c){break a}f=H[a+16>>2];g=c+f|0;h=H[a+20>>2];if(!((g|0)<=(h|0)|g>>>0<=h>>>0)){f=g+65536&-65536;e=tc(e,f);H[a+20>>2]=f;F[a+12|0]=1;H[a+4>>2]=e;if(!e){break a}f=H[a+16>>2]}Ob(e+f|0,b,c);b=c+H[a+16>>2]|0;H[a+16>>2]=b;if((b|0)>H[a+8>>2]){H[a+8>>2]=b}i=d}return i|0}function FG(a,b){a=a|0;b=b|0;var c=0,d=O(0),e=0,f=O(0),g=0;e=b+16|0;g=H[b+12>>2];c=H[b+8>>2];f=O(H[a+4>>2]);d=O(H[a>>2]);a:{b:{if(I[b+4|0]){if(!H[e>>2]){break b}break a}d=O(O(f*L[b>>2])+d);if(H[b+16>>2]){break a}}zb[H[c+12>>2]](c,g,e,L[b+28>>2],L[b+32>>2],H[c+32>>2]);H[b+16>>2]=1;a=H[b+32>>2];H[b+20>>2]=H[b+28>>2];H[b+24>>2]=a}zb[H[c+16>>2]](c,g,e,d,f,H[c+36>>2]);L[b+32>>2]=f;L[b+28>>2]=d;return 0}function bB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Tb(40);H[c>>2]=0;c=sd(a+624|0,1,c,4);h=_()|0;a:{b:{while(1){if(d){g=-1;break a}H[197455]=0;g=da(972,a|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break b}e=-1;c:{d:{if(!d){break d}f=H[197456];if(!f){break d}e=Sb(H[d>>2],c,h);if(!e){break c}ja(f|0)}d=_()|0;if((e|0)==1){continue}break a}break}Kb(c);ed(d,f);X()}a=$()|0;Kb(c);ea(a|0);X()}Kb(c);return g}function RC(a,b){var c=0;a:{if(!a){break a}a=H[a+128>>2];H[a+24>>2]=0;b:{if(!b){H[a+8>>2]=0;H[a+12>>2]=65536;H[a>>2]=65536;H[a+4>>2]=0;b=a;break b}c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;c=H[b+12>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=c}c:{if(!(H[b+8>>2]|H[b+4>>2]|H[b>>2]!=65536)){c=2;if(H[b+12>>2]==65536){break c}}H[a+24>>2]=1;c=3}H[a+16>>2]=0;H[a+20>>2]=0;if(!H[(a+16|0)+4>>2]){break a}H[a+24>>2]=c}}function sN(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;a:{d=a?a+b|0:0;if(d>>>0<=a>>>0){break a}d=d-a|0;d=b>>>0>d>>>0?d:b;if(!d){break a}b=0;if((d|0)!=1){i=d&-2;while(1){e=a+b|0;f=I[e|0];F[e|0]=f^c>>>8;g=(b|1)+a|0;e=I[g|0];c=N(c+f|0,52845)+22719|0;F[g|0]=e^c>>>8;c=N(c+e|0,52845)+22719&65535;b=b+2|0;h=h+2|0;if((i|0)!=(h|0)){continue}break}}if(!(d&1)){break a}a=a+b|0;F[a|0]=I[a|0]^c>>>8}}function hd(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;H[b>>2]=0;a:{b:{c:{d:{c=H[a+8>>2];if(K[a+4>>2]<=c+3>>>0){break d}e=H[a+20>>2];e:{if(e){if((zb[e|0](a,c,d+12|0,4)|0)!=4){break d}c=H[a+8>>2];b=d+12|0;break e}b=H[a>>2];if(!b){break c}b=b+c|0}b=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);f=b<<24|b<<8&16711680|(b>>>8&65280|b>>>24);break b}H[b>>2]=85;break a}f=0}H[a+8>>2]=c+4}xb=d+16|0;return f}function AO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=xb-16|0;xb=d;H[d+12>>2]=b;a:{b:{c:{d:{if(I[a+11|0]>>>7|0){c=(H[a+8>>2]&2147483647)-1|0;e=H[a+4>>2];if((c|0)==(e|0)){break d}break b}e=1;c=1;b=I[a+11|0];if((b|0)!=1){break c}}Pl(a,c,1,c,c,0);b=e;if(I[a+11|0]>>>7|0){break b}}c=a;F[a+11|0]=b+1;break a}c=H[a>>2];H[a+4>>2]=e+1;b=e}a=(b<<2)+c|0;H[a>>2]=H[d+12>>2];H[d+8>>2]=0;H[a+4>>2]=H[d+8>>2];xb=d+16|0}function rc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-32|0;xb=d;H[d+28>>2]=c;e=zj(a,b);a:{if(!e){c=H[a+628>>2];H[d>>2]=H[a>>2];H[d+8>>2]=b;H[d+4>>2]=b>>>0>65535?273761:274454;Pb(c,272587,272874,d);break a}if(!(I[e+14|0]|(!(I[a+12|0]&64)|(b|0)==257))){b=H[a+628>>2];a=H[a>>2];H[d+20>>2]=H[e+16>>2];H[d+16>>2]=a;Pb(b,272587,274573,d+16|0);break a}f=zb[H[a+668>>2]](a,b,c)|0}xb=d+32|0;return f|0}function qg(a){a=a|0;var b=0,c=0,d=0,e=0;c=xb-32|0;xb=c;a:{if(!H[a+72>>2]){break a}d=H[a+68>>2];if(!d){break a}b=gma(J[a+84>>1],0,d,0);if(yb){d=H[a>>2];b=H[a+628>>2];H[c+16>>2]=273466;Pb(b,d,275233,c+16|0);b=0}b:{if(J[a+138>>1]!=1){break b}e=J[a+98>>1];b=gma(e,0,b,0);d=yb;if(!e|!d){break b}b=H[a>>2];a=H[a+628>>2];H[c>>2]=273466;Pb(a,b,275233,c);b=0}b=(b>>>3|0)+((b&7)!=0)|0}xb=c+32|0;return b|0}function Zda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=H[d>>2]+e|0;a=H[a+332>>2]+128|0;b=H[b+84>>2];g=N(H[b+36>>2],J[c+18>>1]);h=N(H[b+4>>2],J[c+2>>1]);i=g+h|0;j=N(H[b+32>>2],J[c+16>>1]);b=N(H[b>>2],J[c>>1])+4|0;c=j+b|0;F[f|0]=I[a+(i+c>>>3&1023)|0];F[f+1|0]=I[a+(c-i>>>3&1023)|0];c=H[d+4>>2]+e|0;d=h-g|0;b=b-j|0;F[c|0]=I[a+(d+b>>>3&1023)|0];F[c+1|0]=I[a+(b-d>>>3&1023)|0]}function G9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((c|0)>0){a=H[a+12>>2];while(1){d=H[a>>2];G[b>>1]=d>>>16;e=(+((d&255)>>>0)+.5)*.0024390243902439024*32768;a:{if(P(e)<2147483648){f=~~e;break a}f=-2147483648}G[b+4>>1]=f;e=(+((d>>>8&255)>>>0)+.5)*.0024390243902439024*32768;b:{if(P(e)<2147483648){d=~~e;break b}d=-2147483648}G[b+2>>1]=d;a=a+4|0;b=b+6|0;d=c>>>0>1;c=c-1|0;if(d){continue}break}}}function tq(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=Tb(40);H[e>>2]=0;e=sd(a+4|0,1,e,4);h=_()|0;a=0;a:{b:{while(1){if(a){break a}H[197455]=0;ca(1542,b|0,c|0,d|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=$()|0;Kb(e);ea(a|0);X()}f=-1;c:{d:{if(!a){break d}g=H[197456];if(!g){break d}f=Sb(H[a>>2],e,h);if(!f){break c}ja(g|0)}a=_()|0;if((f|0)!=1){break b}continue}break}Kb(e);ed(a,g);X()}i=1}Kb(e);return i}function Fm(a){a=a|0;var b=0,c=0,d=0;H[a>>2]=428236;a:{if(I[a+80|0]){break a}b=H[a+76>>2];if(!b){break a}if(F[b+11|0]<0){Kb(H[b>>2])}Kb(b);H[a+76>>2]=0}d=H[a+84>>2];if(d){c=H[a+88>>2];if((d|0)==(c|0)){b=d}else{while(1){if(F[c-5|0]<0){Kb(H[c-16>>2])}b=c-28|0;if(F[c-17|0]<0){Kb(H[b>>2])}c=b;if((d|0)!=(b|0)){continue}break}b=H[a+84>>2]}H[a+88>>2]=d;Kb(b)}if(F[a+71|0]<0){Kb(H[a+60>>2])}return a|0}function Zy(a,b){var c=0,d=0,e=0,f=0;a:{e=a+24|0;c=H[e>>2];if(!c){break a}d=e;while(1){f=K[c+16>>2]>>0;d=f?d:c;c=H[(f<<2)+c>>2];if(c){continue}break}if((d|0)==(e|0)|K[d+16>>2]>b>>>0){break a}b:{c:{d:{b=H[d+20>>2];switch((zb[H[H[b>>2]+8>>2]](b)|0)-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}H[H[a>>2]+8>>2]=b+4;return}H[H[a>>2]+16>>2]=b+4;return}H[H[a>>2]+12>>2]=b+4}}function $A(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=Tb(40);H[b>>2]=0;b=sd(a+624|0,1,b,4);g=_()|0;a:{b:{while(1){if(c){f=-1;break a}H[197455]=0;f=aa(987,a|0)|0;c=H[197455];H[197455]=0;if((c|0)==1){break b}d=-1;c:{d:{if(!c){break d}e=H[197456];if(!e){break d}d=Sb(H[c>>2],b,g);if(!d){break c}ja(e|0)}c=_()|0;if((d|0)==1){continue}break a}break}Kb(b);ed(c,e);X()}a=$()|0;Kb(b);ea(a|0);X()}Kb(b);return f}function wu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=6;d=H[a+868>>2];a:{if(!d|J[a+648>>1]<=b>>>0){break a}e=8;b=H[d+8>>2]+(b<<1)|0;b=I[b|0]<<8|I[b+1|0];c=J[a+660>>1];if(J[d+2>>1]>>0){break a}e=0;if(!c){break a}a=H[a+672>>2];c=a+(c<<2)|0;b=H[d+4>>2]+(b<<2)|0;while(1){F[a|0]=I[b|0];F[a+1|0]=I[b+1|0];F[a+2|0]=I[b+2|0];F[a+3|0]=I[b+3|0];b=b+4|0;a=a+4|0;if(c>>>0>a>>>0){continue}break}}return e|0}function uv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-32|0;xb=d;c=Cf(d,c);H[197455]=0;ga(3818,d+16|0,b|0,c|0);e=H[197455];H[197455]=0;a:{b:{if((e|0)!=1){H[197455]=0;da(3819,a|0,d+16|0)|0;e=H[197455];H[197455]=0;if((e|0)==1){break b}_b(d+16|0);_b(c);H[a>>2]=781768;c=H[b+4>>2];H[a+8>>2]=H[b>>2];H[a+12>>2]=c;xb=d+32|0;return a|0}a=$()|0;_()|0;break a}a=$()|0;_()|0;_b(d+16|0)}_b(c);ea(a|0);X()}function ne(a){var b=0,c=0;b=xb-16|0;xb=b;A(+a);c=v(1)|0;v(0)|0;c=c&2147483647;a:{if(c>>>0<=1072243195){if(c>>>0<1045430272){break a}a=vk(a,0,0);break a}if(c>>>0>=2146435072){a=a-a;break a}b:{switch(cy(a,b)&3){case 0:a=vk(M[b>>3],M[b+8>>3],1);break a;case 1:a=wk(M[b>>3],M[b+8>>3]);break a;case 2:a=-vk(M[b>>3],M[b+8>>3],1);break a;default:break b}}a=-wk(M[b>>3],M[b+8>>3])}xb=b+16|0;return a}function Vaa(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=J[a+26>>1];c=a<<1;d=N(a,g)<<1;h=h<<2;while(1){f=f-1|0;g=e;while(1){a=I[i+7|0];H[b>>2]=a<<24|((N(a,I[i+1|0])+127&65535)>>>0)/255|((N(a,I[i+3|0])+127&65535)>>>0)/255<<8|((N(a,I[i+5|0])+127&65535)>>>0)/255<<16;b=b+4|0;i=c+i|0;g=g-1|0;if(g){continue}break}i=d+i|0;b=b+h|0;if(f){continue}break}}}function NG(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;g=H[b+28>>2];f=H[b+24>>2];H[197455]=0;c=ca(643,f|0,c|0,g|0)|0;g=H[197455];H[197455]=0;if((g|0)!=1){a:{if(c){break a}c=H[f+84>>2];H[d>>2]=H[c+32>>2]-H[c+44>>2];H[e>>2]=H[c+48>>2]+H[c+36>>2];if(H[a+20>>2]<0){H[d>>2]=0-H[d>>2]}h=1;if(H[a+24>>2]>=0){break a}H[e>>2]=0-H[e>>2]}Vc();return h|0}a=$()|0;_()|0;Vc();ea(a|0);X()}function Dv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:1;a:{if(d>>>0>=c>>>0){if(I[a+11|0]>>>7|0){d=H[a>>2]}else{d=a}kk(d,b,c);H[e+12>>2]=0;H[(c<<2)+d>>2]=H[e+12>>2];b:{if(I[a+11|0]>>>7|0){H[a+4>>2]=c;break b}F[a+11|0]=c}break a}f=d;g=c-d|0;if(I[a+11|0]>>>7|0){d=H[a+4>>2]}else{d=I[a+11|0]}jk(a,f,g,d,0,d,c,b)}xb=e+16|0;return a|0}function dB(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=Tb(40);H[d>>2]=0;d=sd(a+4|0,1,d,4);g=_()|0;a=0;a:{b:{while(1){if(a){break a}H[197455]=0;ca(986,b|0,c|0,1)|0;a=H[197455];H[197455]=0;if((a|0)==1){a=$()|0;Kb(d);ea(a|0);X()}e=-1;c:{d:{if(!a){break d}f=H[197456];if(!f){break d}e=Sb(H[a>>2],d,g);if(!e){break c}ja(f|0)}a=_()|0;if((e|0)!=1){break b}continue}break}Kb(d);ed(a,f);X()}h=1}Kb(d);return h}function E7(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;c=H[a+584>>2];H[c+68>>2]=0;g=c- -64|0;a:{while(1){e=_f(g,4);if(e>>>0<=1){b=H[c+80>>2];f=H[a+600>>2];if((b|0)!=(f|0)){H[a+608>>2]=f-b;Uc(a);H[c+76>>2]=H[a+596>>2];H[c+80>>2]=H[a+600>>2]}b=1;if((e|0)!=1){continue}break a}break}b=H[a+628>>2];a=H[a>>2];H[d+4>>2]=H[c+88>>2];H[d>>2]=a;Pb(b,296521,272400,d);b=0}xb=d+16|0;return b|0}function rd(a,b){var c=0,d=0;c=xb-32|0;xb=c;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+4>>2]=c+8;d=H[a+664>>2];a:{if(H[d>>2]==(b|0)?d:0){break a}d=H[a+656>>2];b:{if(!d){break b}H[c+16>>2]=0;H[c+8>>2]=b;d=Ap(c+4|0,d,H[a+660>>2]);if(!d){H[a+664>>2]=0;break b}d=H[d>>2];H[a+664>>2]=d;if(d){break a}}a=H[a+628>>2];H[c>>2]=b;Pb(a,276399,276702,c);d=0}xb=c+32|0;return d}function EO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=xb-16|0;xb=d;F[d+15|0]=b;a:{b:{c:{d:{if(I[a+11|0]>>>7|0){c=(H[a+8>>2]&2147483647)-1|0;e=H[a+4>>2];if((c|0)==(e|0)){break d}break b}e=10;c=10;b=I[a+11|0];if((b|0)!=10){break c}}Ko(a,c,1,c,c);b=e;if(I[a+11|0]>>>7|0){break b}}c=a;F[a+11|0]=b+1;break a}c=H[a>>2];H[a+4>>2]=e+1;b=e}a=b+c|0;F[a|0]=I[d+15|0];F[d+14|0]=0;F[a+1|0]=I[d+14|0];xb=d+16|0}function pm(a,b,c){var d=0,e=0,f=0;d=H[c+16>>2];a:{if(!d){if(yp(c)){break a}d=H[c+16>>2]}f=H[c+20>>2];if(d-f>>>0>>0){return zb[H[c+36>>2]](c,a,b)|0}b:{if(H[c+80>>2]<0){d=0;break b}e=b;while(1){d=e;if(!d){d=0;break b}e=d-1|0;if(I[e+a|0]!=10){continue}break}e=zb[H[c+36>>2]](c,a,d)|0;if(e>>>0>>0){break a}a=a+d|0;b=b-d|0;f=H[c+20>>2]}Ob(f,a,b);H[c+20>>2]=H[c+20>>2]+b;e=b+d|0}return e}function _A(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Tb(40);H[c>>2]=0;c=sd(a+624|0,1,c,4);g=_()|0;a:{b:{while(1){if(d){break a}H[197455]=0;ga(998,a|0,b|0,0);d=H[197455];H[197455]=0;if((d|0)==1){a=$()|0;Kb(c);ea(a|0);X()}e=-1;c:{d:{if(!d){break d}f=H[197456];if(!f){break d}e=Sb(H[d>>2],c,g);if(!e){break c}ja(f|0)}d=_()|0;if((e|0)!=1){break b}continue}break}Kb(c);ed(d,f);X()}h=1}Kb(c);return h}function ZD(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-6;a:{if(!b|(c|0)!=56|I[b|0]!=49){break a}if(!a){return-2}H[a+24>>2]=0;b=H[a+32>>2];if(!b){H[a+40>>2]=0;H[a+32>>2]=866;b=866}if(!H[a+36>>2]){H[a+36>>2]=867}c=zb[b|0](H[a+40>>2],1,7120)|0;if(!c){return-4}H[a+28>>2]=c;d=0;H[c+56>>2]=0;H[c>>2]=a;H[c+4>>2]=16180;b=_D(a,15);if(!b){break a}zb[H[a+36>>2]](H[a+40>>2],c);H[a+28>>2]=0;d=b}return d|0}function Vi(a,b,c){if(I[a+11664|0]){F[a+11665|0]=1;ii(a,H[a+11736>>2],H[a+11740>>2]);if(I[a+11744|0]){fk(a,a+8|0,a+11704|0,H[a+11712>>2],H[a+11716>>2],1)}F[a+11744|0]=0;G[a+11664>>1]=0}H[a+11720>>2]=b;H[a+11736>>2]=b;F[a+11667|0]=1;H[a+11740>>2]=c;H[a+11724>>2]=c;b=a+8|0;c=H[a+11676>>2];if(!(I[c+5|0]?0:I[a+20|0])){gk(b,H[a+11668>>2],H[a+11672>>2],c,H[a+11680>>2],0)}Ob(a+3876|0,b,3868)}function rq(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Tb(40);H[c>>2]=0;c=sd(a+624|0,1,c,4);g=_()|0;a:{b:{while(1){if(d){break a}H[197455]=0;ba(997,a|0,b|0);d=H[197455];H[197455]=0;if((d|0)==1){a=$()|0;Kb(c);ea(a|0);X()}e=-1;c:{d:{if(!d){break d}f=H[197456];if(!f){break d}e=Sb(H[d>>2],c,g);if(!e){break c}ja(f|0)}d=_()|0;if((e|0)!=1){break b}continue}break}Kb(c);ed(d,f);X()}h=1}Kb(c);return h}function rba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=H[a+4>>2];if(!d){break a}if(d-1>>>0>=3){e=d&-4;a=0;while(1){F[b|0]=I[c|0]+I[b|0];F[b+1|0]=I[c+1|0]+I[b+1|0];F[b+2|0]=I[c+2|0]+I[b+2|0];F[b+3|0]=I[c+3|0]+I[b+3|0];b=b+4|0;c=c+4|0;a=a+4|0;if((e|0)!=(a|0)){continue}break}}d=d&3;if(!d){break a}a=0;while(1){F[b|0]=I[c|0]+I[b|0];b=b+1|0;c=c+1|0;a=a+1|0;if((d|0)!=(a|0)){continue}break}}}function lM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=H[b>>2]+1|0;if(c>>>0<=65535){h=b;d=H[a+16>>2];a=I[d+6|0]<<8|I[d+7|0];c=a>>>0>>0?c:a;b=c-a|0;g=I[d+9|0]|I[d+8|0]<<8;e=0;a:{if(b>>>0>=g>>>0){break a}a=(d+(b<<1)|0)+10|0;while(1){f=I[a+1|0]|I[a|0]<<8;e=c;if(f){break a}if(c>>>0>65534){return 0}a=a+2|0;c=c+1|0;b=b+1|0;if((g|0)!=(b|0)){continue}break}f=0;e=0}H[h>>2]=e}return f|0}function jL(a,b){a=a|0;b=b|0;var c=0,d=0;c=zb[H[a+516>>2]](a,1330851634,b,0)|0;a:{if(c){break a}d=a+372|0;c=Ic(b,95408,d);if(c){break a}H[a+468>>2]=0;H[a+460>>2]=0;H[a+464>>2]=0;H[a+452>>2]=0;H[a+456>>2]=0;G[a+472>>1]=65535;if(!J[a+372>>1]){return 0}c=Ic(b,95584,d);if(c){break a}if(J[d>>1]<2){return 0}c=Ic(b,95600,d);if(c){break a}c=0;if(J[d>>1]<5){break a}c=Ic(b,95632,d)}return c|0}function ep(a,b){a=a|0;b=b|0;var c=0,d=0;b=!H[a+24>>2]|b;H[a+16>>2]=b;if(b&H[a+20>>2]){c=xb-16|0;xb=c;b=oa(16)|0;a=xb-16|0;xb=a;if(!I[789832]){F[789832]=1}d=a+8|0;H[d+4>>2]=784936;H[d>>2]=1;d=H[a+12>>2];c=c+8|0;H[c>>2]=H[a+8>>2];H[c+4>>2]=d;xb=a+16|0;H[197455]=0;ca(3402,b|0,238670,c|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){Ca(b|0,768948,3403);X()}a=$()|0;_()|0;Ka(b|0);ea(a|0);X()}}function Tea(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;a:{if((d|0)<=0){break a}g=H[a+112>>2];if(!g){break a}j=H[H[a+480>>2]+24>>2];while(1){a=H[(e<<2)+b>>2];c=g;while(1){h=(H[(I[a|0]>>>1&124)+j>>2]+(I[a+1|0]<<4&4032)|0)+(I[a+2|0]>>>2&62)|0;i=J[h>>1];f=i+1|0;G[h>>1]=(f|0)!=(f&65535)?i:f;a=a+3|0;c=c-1|0;if(c){continue}break}e=e+1|0;if((e|0)!=(d|0)){continue}break}}}function FK(a){a=a|0;var b=0,c=0,d=0;b=H[a+196>>2];d=b+10|0;if(d>>>0<=K[a+200>>2]){c=I[b|0]|I[b+1|0]<<8;G[a+32>>1]=c<<8|c>>>8;c=I[b+2|0]|I[b+3|0]<<8;H[a+36>>2]=(c<<8|c>>>8)<<16>>16;c=I[b+4|0]|I[b+5|0]<<8;H[a+40>>2]=(c<<8|c>>>8)<<16>>16;c=I[b+6|0]|I[b+7|0]<<8;H[a+44>>2]=(c<<8|c>>>8)<<16>>16;b=I[b+8|0]|I[b+9|0]<<8;H[a+196>>2]=d;H[a+48>>2]=(b<<8|b>>>8)<<16>>16;a=0}else{a=20}return a|0}function ZA(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=Tb(40);H[b>>2]=0;b=sd(a+624|0,1,b,4);f=_()|0;a:{b:{while(1){if(c){break a}H[197455]=0;ba(1001,a|0,0);c=H[197455];H[197455]=0;if((c|0)==1){a=$()|0;Kb(b);ea(a|0);X()}d=-1;c:{d:{if(!c){break d}e=H[197456];if(!e){break d}d=Sb(H[c>>2],b,f);if(!d){break c}ja(e|0)}c=_()|0;if((d|0)!=1){break b}continue}break}Kb(b);ed(c,e);X()}g=1}Kb(b);return g}function M_(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;a=H[H[a>>2]-76>>2]+a|0;c=zb[H[H[a>>2]+36>>2]](a)|0;j=H[c>>2];c=H[c+4>>2];b=H[a+120>>2]+((b|0)==1?544:496)|0;d=M[b+40>>3];e=M[b+32>>3];f=M[b+8>>3];g=M[b>>3];h=M[b+16>>3];i=M[b+24>>3];M[a+184>>3]=h*0+i;M[a+176>>3]=h+i*0;M[a+168>>3]=f+g*0;M[a+160>>3]=g+f*0;M[a+200>>3]=d+e*0-+(c|0);M[a+192>>3]=e+d*0-+(j|0);return a+160|0}function nT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=xb-16|0;xb=g;e=H[b>>2];a:{if(!e|!c){break a}d=a?d:0;while(1){f=lm(d>>>0<4?g+12|0:a,H[e>>2],0);if((f|0)==-1){h=-1;break a}if(a){if(d>>>0<=3){if(d>>>0>>0){break a}Ob(a,g+12|0,f)}d=d-f|0;a=a+f|0}else{a=0}if(!H[e>>2]){e=0;break a}h=f+h|0;e=e+4|0;c=c-1|0;if(c){continue}break}}if(a){H[b>>2]=e}xb=g+16|0;return h|0}function hU(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=xb-16|0;xb=e;d=H[a>>2];a:{if(!d){break a}f=H[a+32>>2];b=pc(f,H[a+4>>2],e+12|0);H[a>>2]=b;if(H[e+12>>2]){break a}Ob(b,d,H[a+4>>2]);b=H[a+16>>2];if((b|0)>0){g=H[a>>2]-d|0;c=H[a+24>>2];h=c+(b<<2)|0;while(1){b=H[c>>2];if(b){H[c>>2]=b+g}c=c+4|0;if(h>>>0>c>>>0){continue}break}}H[a+8>>2]=H[a+4>>2];if(d){zb[H[f+8>>2]](f,d)}}xb=e+16|0}function fZ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=H[b+4>>2];H[a+2748>>2]=b;c=H[b+28>>2];H[a+4>>2]=H[b+44>>2];H[a+8>>2]=H[b+48>>2];H[a+12>>2]=H[b+9848>>2];H[a+16>>2]=H[b+9852>>2];d=H[b+24>>2];f=d&-3;c=(F[e+12|0]&1?0:(f|0)!=1)?c:c|1;H[a+2740>>2]=I[H[H[b+36>>2]+388>>2]+20|0]?c:c|8;c=a;a=(d&-2)==2;b=a|2;e=(d|0)==4?b:a;a=(d|0)==2;b=a?b:e;b=(f|0)==1?b:b|4;H[c+2744>>2]=a?b|8:b;return 0}function a0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;H[a+8>>2]=b;H[a>>2]=396108;if(c){M[a+16>>3]=M[c+16>>3];M[a+24>>3]=M[c+24>>3];M[a+32>>3]=M[c+32>>3];d=M[c+40>>3];H[a+68>>2]=0;H[a+4>>2]=0;M[a+40>>3]=d;H[a+4>>2]=H[c+4>>2];if(b){b=zb[H[H[b>>2]+16>>2]](b)|0;c=H[b+12>>2];e=H[b+4>>2];M[a+48>>3]=M[a+32>>3]/P(+(H[b+8>>2]-H[b>>2]|0));M[a+56>>3]=M[a+40>>3]/P(+(c-e|0))}F[a+64|0]=0}return a|0}function sD(a){a=a|0;var b=0,c=0,d=0;a:{b=H[a+928>>2];if(!b){break a}c=N(H[a+16>>2],H[a+20>>2]);if((c|0)<=0){break a}if(c-1>>>0>=3){d=c&-4;a=0;while(1){F[b|0]=I[b|0]^-1;F[b+1|0]=I[b+1|0]^-1;F[b+2|0]=I[b+2|0]^-1;F[b+3|0]=I[b+3|0]^-1;b=b+4|0;a=a+4|0;if((d|0)!=(a|0)){continue}break}}c=c&3;if(!c){break a}a=0;while(1){F[b|0]=I[b|0]^-1;b=b+1|0;a=a+1|0;if((c|0)!=(a|0)){continue}break}}}function LB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=xb-16|0;xb=c;a:{b:{d=I[b+2|0];c:{if((d-13&255)>>>0<244){break c}e=I[b+3|0];if((e-32&255)>>>0<225){break c}f=I[b+4|0];if(f>>>0>23){break c}g=I[b+6|0];if(g>>>0<61){break b}}Xb(a,264434);break a}h=J[b>>1];F[c+13|0]=f;F[c+12|0]=e;F[c+11|0]=d;F[c+10|0]=h;F[c+9|0]=h>>>8;b=I[b+5|0];F[c+15|0]=g;F[c+14|0]=b;se(a,1950960965,c+9|0,7)}xb=c+16|0}function tu(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;H[b>>2]=0;a:{if(!a){break a}e=H[a+8>>2];if(!e){break a}d=H[H[a>>2]>>2];f=d;while(1){g=I[f|0];if(g){while(1){F[c+d|0]=g;c=c+1|0;g=I[f+1|0];f=f+1|0;if(g){continue}break}e=H[a+8>>2]}h=h+1|0;if(h>>>0>>0){F[c+d|0]=32;e=H[a+8>>2];c=c+1|0}if(e>>>0>h>>>0){f=H[H[a>>2]+(h<<2)>>2];continue}break}if((d|0)!=24081){F[c+d|0]=0}H[b>>2]=c}return d}function T7(a,b){a=a|0;b=b|0;b=Tb(148);H[a+584>>2]=b;if(b){H[b+144>>2]=0;H[b+96>>2]=0;H[b+116>>2]=0;H[b+80>>2]=H[a+8>>2];H[a+556>>2]=1583;H[a+548>>2]=1583;H[a+540>>2]=1583;H[a+520>>2]=1584;H[a+516>>2]=1585;H[a+572>>2]=1586;H[a+560>>2]=1587;H[a+552>>2]=1587;H[a+544>>2]=1587;H[a+536>>2]=1588;H[a+532>>2]=1589;H[a+524>>2]=1590;oq(a);return 1}Pb(H[a+628>>2],270838,271324,0);return 0}function Fo(a,b){var c=0,d=0,e=0,f=0,g=0;f=a;d=xb-1040|0;xb=d;g=H[197018];a:{b:{c:{a=d+16|0;c=Nv(b);e=ac(c);d:{if(e>>>0>=1024){Ob(a,c,1023);F[a+1023|0]=0;c=68;break d}Ob(a,c,e+1|0);c=0}switch(c+1|0){case 1:break a;case 0:break c;default:break b}}c=H[197018]}a=239897;if((c|0)==28){break a}Ja();X()}if(!I[a|0]){H[d>>2]=b;a=d+16|0;jg(a,1024,239396,d)}H[197018]=g;Cf(f,a);xb=d+1040|0}function Yaa(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){c=J[a+26>>1];d=N(g,c);h=h<<2;while(1){f=f-1|0;g=e;while(1){a=I[i+3|0];H[b>>2]=a<<24|((N(a,I[i|0])+127&65535)>>>0)/255|((N(a,I[i+1|0])+127&65535)>>>0)/255<<8|((N(a,I[i+2|0])+127&65535)>>>0)/255<<16;i=c+i|0;b=b+4|0;g=g-1|0;if(g){continue}break}i=d+i|0;b=b+h|0;if(f){continue}break}}}function qba(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;e=H[a+4>>2];a=I[c|0];d=a+I[b|0]|0;F[b|0]=d;if((e|0)>=2){l=b+e|0;b=b+1|0;while(1){h=d&255;d=h-a|0;f=d>>31;e=I[c+1|0];g=e-a|0;i=g>>31;j=d+g|0;k=j>>31;m=a;a=(d^f)-f|0;d=(g^i)-i|0;f=a>>>0>>0;d=I[b|0]+((k^j)-k>>>0<(f?a:d)>>>0?m:f?e:h)|0;F[b|0]=d;c=c+1|0;a=e;b=b+1|0;if(l>>>0>b>>>0){continue}break}}}function _6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;b=H[a+12>>2];if(b){zb[H[H[b>>2]+12>>2]](b)|0;H[a+12>>2]=0}b=0;c=H[a+8>>2];if(c){d=a,e=zb[H[H[c>>2]+52>>2]](c)|0,H[d+12>>2]=e;b=H[a+8>>2];e=0,f=zb[H[H[b>>2]+24>>2]](b)|0,d=H[H[0]+24>>2],zb[d](e|0,f|0);b=H[a+12>>2];zb[H[H[b>>2]+68>>2]](b,0);b=H[a+12>>2]}H[H[a+16>>2]+20>>2]=b;a=H[a+20>>2];H[(H[H[a>>2]-12>>2]+a|0)+20>>2]=b;return 0}function Ub(a,b,c,d,e,f){var g=0;if((b|c|d)<0){H[f>>2]=6;return e}a:{if(!(d?b:0)){if(!e){break a}zb[H[a+8>>2]](a,e);break a}g=10;b:{if((2147483647/(b|0)|0)<(d|0)){break b}c:{if(!c){e=zb[H[a+4>>2]](a,N(b,d))|0;g=!e<<6;break c}a=zb[H[a+12>>2]](a,N(b,c),N(b,d),e)|0;e=a?a:e;g=!a<<6}if(g|(c|0)>=(d|0)|!e){break b}g=0;Nb(N(b,c)+e|0,0,N(d-c|0,b))}H[f>>2]=g;return e}H[f>>2]=0;return 0}function Nh(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!(!a|!b)){c=G[a+2>>1];a:{if(!c){c=0;break a}a=H[a+4>>2];d=H[a+4>>2];e=H[a>>2];if((c|0)<2){c=d;f=e;break a}h=(c<<3)+a|0;g=a+8|0;f=e;c=d;while(1){a=H[a+12>>2];c=(a|0)>(c|0)?a:c;d=(a|0)<(d|0)?a:d;a=H[g>>2];f=(a|0)>(f|0)?a:f;e=(a|0)<(e|0)?a:e;a=g;g=a+8|0;if(h>>>0>g>>>0){continue}break}}H[b+8>>2]=f;H[b>>2]=e;H[b+12>>2]=c;H[b+4>>2]=d}}function D7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;d=H[a+584>>2];H[d+64>>2]=b;H[d+68>>2]=c;b=d- -64|0;a:{while(1){if(_f(b,0)){b=H[a+628>>2];a=H[a>>2];H[e+4>>2]=H[d+88>>2];H[e>>2]=a;Pb(b,296535,275292,e);a=0;break a}if(!H[d+80>>2]){H[a+608>>2]=H[a+600>>2];Uc(a);H[d+76>>2]=H[a+596>>2];H[d+80>>2]=H[a+600>>2]}if(H[d+68>>2]){continue}break}a=1}xb=e+16|0;return a|0}function wga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=H[b+924>>2];a:{if(!e){break a}c=H[a+16>>2];if((c|0)!=H[b+16>>2]){break a}d=H[a+20>>2];if((d|0)!=H[b+20>>2]){break a}d=N(c,d);c=H[a+924>>2];if(!c){c=Tb(d);H[a+924>>2]=c;if(!c){break a}e=H[b+924>>2]}Ob(c,e,d);c=H[b+384>>2];H[a+380>>2]=H[b+380>>2];H[a+384>>2]=c;c=H[b+376>>2];H[a+372>>2]=H[b+372>>2];H[a+376>>2]=c;f=1}return f|0}function mn(a,b){var c=0,d=0,e=0,f=0,g=0;if(a){d=H[a+4>>2];a:{if(!d){break a}c=H[a+20>>2];if((d|0)!=1){g=d&-2;while(1){e=H[c>>2];if(e){zb[H[b+8>>2]](b,e)}H[c>>2]=0;e=H[c+4>>2];if(e){zb[H[b+8>>2]](b,e)}H[c+4>>2]=0;c=c+8|0;f=f+2|0;if((g|0)!=(f|0)){continue}break}}if(!(d&1)){break a}d=H[c>>2];if(d){zb[H[b+8>>2]](b,d)}H[c>>2]=0}c=H[a+20>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+20>>2]=0}}function Gh(a,b){var c=0;a:{if(!b){break a}if(b&1){c=I[a+3|0];F[a+3|0]=I[a|0];F[a|0]=c;c=I[a+2|0];F[a+2|0]=I[a+1|0];F[a+1|0]=c;a=a+4|0;c=b-1|0}else{c=b}if((b|0)==1){break a}while(1){b=I[a+3|0];F[a+3|0]=I[a|0];F[a|0]=b;b=I[a+2|0];F[a+2|0]=I[a+1|0];F[a+1|0]=b;b=I[a+7|0];F[a+7|0]=I[a+4|0];F[a+4|0]=b;b=I[a+6|0];F[a+6|0]=I[a+5|0];F[a+5|0]=b;a=a+8|0;c=c-2|0;if(c){continue}break}}}function _T(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[a+8>>2]=c;H[a+4>>2]=b;H[a+12>>2]=0;H[a+16>>2]=d;H[a>>2]=b;b=H[7586];H[a+20>>2]=H[7585];H[a+24>>2]=b;b=H[7588];H[a+28>>2]=H[7587];H[a+32>>2]=b;b=H[7590];H[a+36>>2]=H[7589];H[a+40>>2]=b;b=H[7592];H[a+44>>2]=H[7591];H[a+48>>2]=b;b=H[7594];H[a+52>>2]=H[7593];H[a+56>>2]=b;b=H[7596];H[a+60>>2]=H[7595];H[a+64>>2]=b;H[a+68>>2]=H[7597]}function Sja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{switch(b-6078|0){case 0:H[c>>2]=6081;H[d>>2]=6078;return 1;case 1:H[c>>2]=6081;H[d>>2]=6079;return 1;case 2:H[c>>2]=6081;H[d>>2]=6080;return 1;case 6:H[c>>2]=6081;H[d>>2]=6084;return 1;case 7:H[c>>2]=6081;H[d>>2]=6085;return 1;default:break a}}a=H[a+12>>2];H[c>>2]=b;H[d>>2]=0;return(zb[H[a+40>>2]](a,b,c,d,H[a+72>>2])|0)!=0|0}function SZ(a){a=a|0;var b=0,c=0,d=0,e=0;a=H[H[a>>2]-12>>2]+a|0;d=Lm(a);b=417328;H[a+244>>2]=417328;e=a+244|0;a:{if(I[a+272|0]){break a}c=H[a+268>>2];if(!c){break a}Kb(c);H[a+268>>2]=0;b=H[a+244>>2]}H[a+248>>2]=0;H[a+252>>2]=0;F[a+273|0]=0;H[a+256>>2]=0;H[a+260>>2]=0;a=H[b+12>>2];H[197455]=0;ia(a|0,e|0);a=H[197455];H[197455]=0;if((a|0)==1){ha(0)|0;_()|0;Zb();X()}return d|0}function KG(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;var h=0;h=H[b+28>>2];a=H[b+24>>2];g=0;H[197455]=0;c=ca(643,a|0,c|0,h|0)|0;h=H[197455];H[197455]=0;if((h|0)!=1){a:{if(c){break a}a=H[a+84>>2];if(H[a+72>>2]!=1869968492|G[a+110>>1]>>>0<=d>>>0){break a}a=H[a+112>>2]+(d<<3)|0;H[e>>2]=H[a>>2];H[f>>2]=H[a+4>>2];g=1}Vc();return g|0}a=$()|0;_()|0;Vc();ea(a|0);X()}function Lia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=H[c>>2];g=H[c+4>>2];e=H[c+8>>2];a:{if((g|0)>(e+5|0)){f=d;break a}if(!d){f=Tb(800);H[c+4>>2]=200;H[c>>2]=f;e=0;break a}f=Tb(g<<3);e=Ob(f,d,e<<2);Kb(d);H[c+4>>2]=g<<1;H[c>>2]=e;e=H[c+8>>2]}d=(e<<2)+f|0;H[d>>2]=2;H[d+4>>2]=H[a>>2];H[d+8>>2]=H[a+4>>2];H[d+12>>2]=H[b>>2];a=H[b+4>>2];H[c+8>>2]=e+5;H[d+16>>2]=a;return 0}function pn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+26>>1];if((e|0)==8){F[H[a+56>>2]+(N(H[a+52>>2],c)+b|0)|0]=d;return}a=(H[a+56>>2]+N(H[a+52>>2],c)|0)+(N(b,e)>>3)|0;a:{switch(e-1|0){case 3:c=a;e=I[a|0];a=4-((b|0)%2<<2)&252;F[c|0]=e&(15<>>0<=4294967279){a:{if(e>>>0<=10){F[a+11|0]=e;d=a;break a}if(e>>>0>=11){f=e+16&-16;d=f-1|0;d=(d|0)==11?f:d}else{d=10}f=d+1|0;d=Qb(f);H[a>>2]=d;H[a+8>>2]=f|-2147483648;H[a+4>>2]=e}while(1){if((b|0)!=(c|0)){F[d|0]=I[b|0];d=d+1|0;b=b+1|0;continue}break}F[g+15|0]=0;F[d|0]=I[g+15|0];xb=g+16|0;return}qd(a);X()}function Uw(a,b,c){var d=0,e=0,f=0,g=0;g=xb-16|0;xb=g;e=c-b>>2;if(e>>>0<=1073741807){a:{if(e>>>0<=1){F[a+11|0]=e;d=a;break a}if(e>>>0>=2){f=e+4&-4;d=f-1|0;d=(d|0)==2?f:d}else{d=1}f=d+1|0;d=Vv(f);H[a>>2]=d;H[a+8>>2]=f|-2147483648;H[a+4>>2]=e}while(1){if((b|0)!=(c|0)){H[d>>2]=H[b>>2];d=d+4|0;b=b+4|0;continue}break}H[g+12>>2]=0;H[d>>2]=H[g+12>>2];xb=g+16|0;return}qd(a);X()}function rD(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=a+c|0;g=f>>31;h=b+d|0;i=h>>31;e=c;c=c>>31;c=(e^c)-c|0;e=d;d=d>>31;d=(e^d)-d|0;e=a;a=a>>31;a=(e^a)-a|0;e=b;b=b>>31;b=(e^b)-b|0;c=(N(c>>>0>>0?c:d,3)>>>3|0)+(c>>>0>d>>>0?c:d)+((N(a>>>0>>0?a:b,3)>>>3|0)+(a>>>0>b>>>0?a:b))|0;a=(g^f)-g|0;b=(i^h)-i|0;a=(N(a>>>0>>0?a:b,3)>>>3|0)+(a>>>0>b>>>0?a:b)|0;return(c-a|0)<(a>>>4|0)}function hK(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;d=G[a+298>>1];e=N(d,b>>16);b=N(d,b&65535);d=e<<16;f=b+d|0;a=G[a+300>>1];g=N(a,c&65535);c=N(a,c>>16);h=c<<16;a=g+h|0;i=f+a|0;c=((((((e>>16)+(b>>31)|0)+(g>>31)|0)+(c>>16)|0)+(d>>>0>f>>>0)|0)+(a>>>0>>0)|0)+(a>>>0>i>>>0)|0;b=c>>31;a=i+b|0;return((b+c|0)+(a>>>0>>0)|0)+(a>>>0>4294959103)<<18|a- -8192>>>14}function gK(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;d=G[a+294>>1];e=N(d,b>>16);b=N(d,b&65535);d=e<<16;f=b+d|0;a=G[a+296>>1];g=N(a,c&65535);c=N(a,c>>16);h=c<<16;a=g+h|0;i=f+a|0;c=((((((e>>16)+(b>>31)|0)+(g>>31)|0)+(c>>16)|0)+(d>>>0>f>>>0)|0)+(a>>>0>>0)|0)+(a>>>0>i>>>0)|0;b=c>>31;a=i+b|0;return((b+c|0)+(a>>>0>>0)|0)+(a>>>0>4294959103)<<18|a- -8192>>>14}function Zc(a,b){var c=0,d=0,e=0,f=0,g=0;c=ac(b);e=xb-16|0;xb=e;d=I[a+11|0]>>>7|0?(H[a+8>>2]&2147483647)-1|0:10;a:{if(d>>>0>=c>>>0){if(I[a+11|0]>>>7|0){d=H[a>>2]}else{d=a}if(c){$c(d,b,c)}F[e+15|0]=0;F[c+d|0]=I[e+15|0];b:{if(I[a+11|0]>>>7|0){H[a+4>>2]=c;break b}F[a+11|0]=c}break a}f=a;g=c-d|0;if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}Hv(f,d,g,a,0,a,c,b)}xb=e+16|0}function Zx(a,b,c,d){var e=0,f=0;a:{if((d|0)!=1){break a}e=H[a+8>>2];if(!e){break a}f=b;e=e-H[a+4>>2]|0;b=b-e|0;c=c-((e>>31)+(e>>>0>f>>>0)|0)|0}b:{if(H[a+20>>2]!=H[a+28>>2]){zb[H[a+36>>2]](a,0,0)|0;if(!H[a+20>>2]){break b}}H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;zb[H[a+40>>2]](a,b,c,d)|0;if((yb|0)<0){break b}H[a+4>>2]=0;H[a+8>>2]=0;H[a>>2]=H[a>>2]&-17;return 0}return-1}function uy(a,b,c){var d=0;G[a+104>>1]=b;F[a+113|0]=0;G[a+106>>1]=c;if(I[a+123|0]){G[a+114>>1]=b;G[a+116>>1]=c}b=G[a+108>>1];a:{if((b|0)<2){break a}c=G[a+118>>1];if((c|0)<2){break a}b:{switch(J[a+80>>1]-7|0){case 0:d=+(c|0)/+(b|0);M[a+88>>3]=d;M[a+96>>3]=d;_e(a);return;case 1:break b;default:break a}}M[a+88>>3]=+(c|0)/+(b|0);M[a+96>>3]=+G[a+120>>1]/+G[a+110>>1]}_e(a)}function ry(a,b,c){var d=0;G[a+114>>1]=b;F[a+123|0]=0;G[a+116>>1]=c;if(I[a+113|0]){G[a+104>>1]=b;G[a+106>>1]=c}b=G[a+108>>1];a:{if((b|0)<2){break a}c=G[a+118>>1];if((c|0)<2){break a}b:{switch(J[a+80>>1]-7|0){case 0:d=+(c|0)/+(b|0);M[a+88>>3]=d;M[a+96>>3]=d;_e(a);return;case 1:break b;default:break a}}M[a+88>>3]=+(c|0)/+(b|0);M[a+96>>3]=+G[a+120>>1]/+G[a+110>>1]}_e(a)}function p9(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;if((c|0)>0){while(1){g=H[a+600>>2];e=H[a+608>>2];f=(c+e|0)>(g|0)?g-e|0:c;d=b;h=H[a+604>>2];if((h|0)!=(b|0)){Kc(h,b,f);g=H[a+600>>2];e=H[a+608>>2];d=H[a+604>>2]}e=e+f|0;H[a+608>>2]=e;H[a+604>>2]=d+f;a:{if((e|0)<(g|0)){break a}if(Uc(a)){break a}return-1}b=b+f|0;c=c-f|0;if((c|0)>0){continue}break}}return 1}function dj(a,b,c,d){var e=0,f=0,g=0,h=0;g=N(b,c);e=H[d+72>>2];H[d+72>>2]=e-1|e;e=H[d+4>>2];f=H[d+8>>2];if((e|0)==(f|0)){e=g}else{h=e;e=f-e|0;e=e>>>0>>0?e:g;Ob(a,h,e);H[d+4>>2]=e+H[d+4>>2];a=a+e|0;e=g-e|0}if(e){while(1){a:{if(!zp(d)){f=zb[H[d+32>>2]](d,a,e)|0;if(f){break a}}return(g-e>>>0)/(b>>>0)|0}a=a+f|0;h=(e|0)!=(f|0);e=e-f|0;if(h){continue}break}}return b?c:0}function j1(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d;var e=0;H[a>>2]=415696;e=Ty(a+8|0,b?H[H[b>>2]-12>>2]+b|0:0,c,d);H[a+108>>2]=0;H[a+8>>2]=402488;H[a>>2]=401796;H[197455]=0;b=a+112|0;H[b>>2]=0;H[b+4>>2]=0;F[b+5|0]=0;F[b+6|0]=0;F[b+7|0]=0;F[b+8|0]=0;F[b+9|0]=0;F[b+10|0]=0;F[b+11|0]=0;F[b+12|0]=0;b=H[197455];H[197455]=0;if((b|0)!=1){return a|0}a=$()|0;_()|0;Fm(e);ea(a|0);X()}function K5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;H[d+12>>2]=24;H[d+8>>2]=39;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;G[a+16>>1]=J[a+16>>1]+1;Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],d+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,1);Lb(H[a+4>>2],c+13|0,1);Lb(H[a+4>>2],c+14|0,1);Lb(H[a+4>>2],c+15|0,1);Lb(H[a+4>>2],c+16|0,4);xb=d+16|0}function vw(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;e=xb-16|0;xb=e;f=H[a+4>>2];d=H[c>>2]-H[a>>2]|0;a:{if(d>>>0<2147483647){d=d<<1;break a}d=-1}d=d?d:4;h=H[b>>2];i=H[a>>2];g=tc((f|0)==3480?0:H[a>>2],d);if(g){if((f|0)!=3480){H[a>>2]=0}H[e+4>>2]=594;f=Ed(e+8|0,g,e+4|0);rw(a,f);Bc(f);H[b>>2]=H[a>>2]+(h-i|0);H[c>>2]=H[a>>2]+(d&-4);xb=e+16|0;return}No();X()}function C9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>0){a=H[a+12>>2];while(1){f=c;e=0;c=J[a>>1];g=c&32767;a:{if(!g){break a}d=vh((+(g|0)+.5)*.0027076061740622863+-44.3614195558365);d=c&32768?-d:d;if(d<=0){break a}e=d>=1;d=W(d)*256;b:{if(P(d)<2147483648){c=~~d;break b}c=-2147483648}e=e?255:c}a=a+2|0;c=f-1|0;F[b|0]=e;b=b+1|0;if(f>>>0>1){continue}break}}}function Yl(a,b,c){var d=0,e=0;if(c&2048){F[a|0]=43;a=a+1|0}if(c&1024){F[a|0]=35;a=a+1|0}d=c&260;if((d|0)!=260){F[a|0]=46;F[a+1|0]=42;a=a+2|0}c=c&16384;while(1){e=I[b|0];if(e){F[a|0]=e;a=a+1|0;b=b+1|0;continue}break}a:{b:{if((d|0)!=256){if((d|0)!=4){break b}b=c?70:102;break a}b=c?69:101;break a}b=c?65:97;if((d|0)==260){break a}b=c?71:103}F[a|0]=b;return(d|0)!=260}function V$(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[c>>2];if((d|0)!=H[c+4>>2]){Xp(a,d);e=H[c>>2];if(H[c+4>>2]-e>>>0>8){d=1;while(1){Pm(a,(d<<3)+e|0);d=d+1|0;e=H[c>>2];if(d>>>0>2]-e>>3>>>0){continue}break}}d=H[a+208>>2];a:{if(!d){break a}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break a}d=H[a+208>>2]}zb[H[H[d>>2]+384>>2]](d,b,c)}Ek(a);Rf(a,1,1,1)}}function T$(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[c>>2];if((d|0)!=H[c+4>>2]){Wp(a,d);e=H[c>>2];if(H[c+4>>2]-e>>>0>4){d=1;while(1){Om(a,(d<<2)+e|0);d=d+1|0;e=H[c>>2];if(d>>>0>2]-e>>2>>>0){continue}break}}d=H[a+208>>2];a:{if(!d){break a}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break a}d=H[a+208>>2]}zb[H[H[d>>2]+388>>2]](d,b,c)}Ek(a);Rf(a,1,1,1)}}function uaa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){c=h<<2;a=g<<1;while(1){f=f-1|0;g=0;while(1){H[b>>2]=I[i+1|0]|I[j+1|0]<<8|I[k+1|0]<<16|I[l+1|0]<<24;b=b+4|0;l=l+2|0;k=k+2|0;j=j+2|0;i=i+2|0;g=g+1|0;if((g|0)!=(e|0)){continue}break}b=b+c|0;l=a+l|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f){continue}break}}}function nf(a,b,c){var d=0,e=0,f=0;a:{b:{if(!a){break b}d=H[H[a>>2]+32>>2];if(d){d=zb[d|0](a,b)|0}else{d=0}if(d|!c){break a}d=H[a+4>>2];c=H[d+16>>2];if((c|0)<=0){break b}f=(d+(c<<2)|0)+20|0;c=d+20|0;while(1){e=H[c>>2];c:{if((e|0)==(a|0)){break c}d=H[H[e>>2]+32>>2];if(!d){break c}d=zb[d|0](e,b)|0;if(d){break a}}c=c+4|0;if(f>>>0>c>>>0){continue}break}}d=0}return d}function QZ(a){a=a|0;var b=0,c=0,d=0;a=H[H[a>>2]-12>>2]+a|0;Lm(a);b=417328;H[a+244>>2]=417328;d=a+244|0;a:{if(I[a+272|0]){break a}c=H[a+268>>2];if(!c){break a}Kb(c);H[a+268>>2]=0;b=H[a+244>>2]}H[a+248>>2]=0;H[a+252>>2]=0;F[a+273|0]=0;H[a+256>>2]=0;H[a+260>>2]=0;b=H[b+12>>2];H[197455]=0;ia(b|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){ha(0)|0;_()|0;Zb();X()}Kb(a)}function KL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=6;a=H[a+140>>2];a:{if(!a|!b|(!H[a+72>>2]|!I[b|0])){break a}b=Me(b,H[a+92>>2]);if(!b){break a}a=H[a+80>>2];if(!a){break a}b:{c:{d:{e:{a=a+(H[b>>2]<<4)|0;switch(H[a+4>>2]-1|0){case 2:break c;case 1:break d;case 0:break e;default:break a}}H[c>>2]=1;break b}H[c>>2]=2;break b}H[c>>2]=3}H[c+4>>2]=H[a+12>>2];d=0}return d|0}function Fz(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;e=G[d+2>>1];f=+(e|0);d=G[d>>1];g=+(d|0);h=+G[c+2>>1];i=+G[c>>1];j=+G[b+2>>1];k=+G[b>>1];b=H[a+156>>2];a:{if(b){if(ti(b,k,j,i,h,g,f)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}b=H[a+208>>2];if(!b){break a}zb[H[H[b>>2]+40>>2]](b,k,j,i,h,g,f)}a=H[a+120>>2];H[a+672>>2]=d;H[a+676>>2]=e}function Ez(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;e=H[d+4>>2];f=+(e|0);d=H[d>>2];g=+(d|0);h=+H[c+4>>2];i=+H[c>>2];j=+H[b+4>>2];k=+H[b>>2];b=H[a+156>>2];a:{if(b){if(ti(b,k,j,i,h,g,f)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}b=H[a+208>>2];if(!b){break a}zb[H[H[b>>2]+40>>2]](b,k,j,i,h,g,f)}a=H[a+120>>2];H[a+672>>2]=d;H[a+676>>2]=e}function Cg(a){var b=0,c=0,d=0;if(I[a+61|0]){a:{if(H[a+84>>2]==H[a+80>>2]){b=H[a+72>>2];if((b|0)==H[a+64>>2]){break a}}if(!ec(a,1,1)){return}c=H[a+80>>2]+N(H[a+64>>2],20)|0;d=H[c+4>>2];b=H[a+84>>2]+N(H[a+72>>2],20)|0;H[b>>2]=H[c>>2];H[b+4>>2]=d;H[b+16>>2]=H[c+16>>2];d=H[c+12>>2];H[b+8>>2]=H[c+8>>2];H[b+12>>2]=d;b=H[a+72>>2]}H[a+72>>2]=b+1}H[a+64>>2]=H[a+64>>2]+1}function VA(a){var b=0,c=0,d=0,e=0,f=0;b=Tb(40);H[b>>2]=0;b=sd(a+624|0,1,b,4);f=_()|0;a:{b:{while(1){if(!c){H[197455]=0;ia(1573,a|0);c=H[197455];H[197455]=0;if((c|0)==1){break b}d=-1;c:{if(!c){break c}e=H[197456];if(!e){break c}d=Sb(H[c>>2],b,f);if(!d){break a}ja(e|0)}c=_()|0;if((d|0)==1){continue}}break}Kb(b);return}a=$()|0;Kb(b);ea(a|0);X()}Kb(b);ed(c,e);X()}function Qr(a){var b=0;b=a- -64|0;H[b>>2]=0;Kb(H[a+68>>2]);H[a+76>>2]=0;H[a+68>>2]=0;H[a+60>>2]=0;H[a+64>>2]=0;Kb(H[a+80>>2]);H[a+88>>2]=0;H[a+80>>2]=0;H[a+72>>2]=0;H[a+76>>2]=0;Kb(H[a+92>>2]);H[a+84>>2]=0;H[a+88>>2]=0;H[a+76>>2]=0;H[a+92>>2]=0;Kb(H[a+80>>2]);H[a+80>>2]=0;H[a+72>>2]=0;H[a+76>>2]=0;H[b>>2]=0;Kb(H[a+68>>2]);H[a+68>>2]=0;H[a+60>>2]=0;H[a+64>>2]=0}function Pg(a,b,c){var d=0,e=0,f=0,g=0;d=ac(b)+ac(c)|0;e=d+1|0;a:{b:{if(d>>>0>=2147483647){a=0;if(!e){break b}break a}a=zb[H[a+4>>2]](a,e)|0;if(!a){return 0}Nb(a,0,e)}d=ac(b)+1|0;while(1){c:{e=0;if(!d){break c}d=d-1|0;e=d+b|0;if(I[e|0]!=47){continue}}break}d:{if(e){d=b;b=(e-b|0)+1|0;f=Ld(a,d,b)+b|0,g=0,F[f|0]=g;b=e+1|0;break d}F[a|0]=0}a=Px(Px(a,c),b)}return a}function MK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;f=H[a+16>>2];d=J[a+8>>1];c=d>>>1|0;b=Ub(b,1,0,c+1|0,0,e+12|0);xb=e+16|0;if(H[e+12>>2]){b=g}else{a=0;a:{if(d>>>0<2){break a}g=c>>>0>1?c:1;while(1){c=I[f+1|0];d=c|I[f|0]<<8;if(!d){break a}F[a+b|0]=d-128>>>0<4294967200?63:c;f=f+2|0;a=a+1|0;if((g|0)!=(a|0)){continue}break}a=g}F[a+b|0]=0}return b|0}function U4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;H[e+12>>2]=40;H[e+8>>2]=45;H[a+8>>2]=H[a+8>>2]+40;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);xb=e+16|0}function T4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;H[e+12>>2]=40;H[e+8>>2]=55;H[a+8>>2]=H[a+8>>2]+40;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);xb=e+16|0}function S4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;H[e+12>>2]=40;H[e+8>>2]=46;H[a+8>>2]=H[a+8>>2]+40;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);xb=e+16|0}function N4(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;H[e+12>>2]=40;H[e+8>>2]=47;H[a+8>>2]=H[a+8>>2]+40;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);Lb(H[a+4>>2],d,4);Lb(H[a+4>>2],d+4|0,4);xb=e+16|0}function FR(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;e=xb-16|0;xb=e;f=H[a+4>>2];d=H[c>>2]-H[a>>2]|0;a:{if(d>>>0<2147483647){d=d<<1;break a}d=-1}d=d?d:1;h=H[b>>2];i=H[a>>2];g=tc((f|0)==3480?0:H[a>>2],d);if(g){if((f|0)!=3480){H[a>>2]=0}H[e+4>>2]=594;f=Ed(e+8|0,g,e+4|0);rw(a,f);Bc(f);H[b>>2]=H[a>>2]+(h-i|0);H[c>>2]=d+H[a>>2];xb=e+16|0;return}No();X()}function vW(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;c=zb[H[H[a>>2]+16>>2]](a)|0;j=H[c>>2];c=H[c+4>>2];b=H[a+168>>2]+((b|0)==1?248:200)|0;d=M[b+40>>3];e=M[b+32>>3];f=M[b+8>>3];g=M[b>>3];h=M[b+16>>3];i=M[b+24>>3];M[a+216>>3]=h*0+i;M[a+208>>3]=h+i*0;M[a+200>>3]=f+g*0;M[a+192>>3]=g+f*0;M[a+232>>3]=d+e*0-+(c|0);M[a+224>>3]=e+d*0-+(j|0);return a+192|0}function N_(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;c=zb[H[H[a>>2]+36>>2]](a)|0;j=H[c>>2];c=H[c+4>>2];b=H[a+120>>2]+((b|0)==1?544:496)|0;d=M[b+40>>3];e=M[b+32>>3];f=M[b+8>>3];g=M[b>>3];h=M[b+16>>3];i=M[b+24>>3];M[a+184>>3]=h*0+i;M[a+176>>3]=h+i*0;M[a+168>>3]=f+g*0;M[a+160>>3]=g+f*0;M[a+200>>3]=d+e*0-+(c|0);M[a+192>>3]=e+d*0-+(j|0);return a+160|0}function CN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=H[b>>2];while(1){d=d+1|0;if(d>>>0>255){H[b>>2]=0;return 0}f=zb[H[a+20>>2]](J[H[a+16>>2]+(d<<1)>>1])|0;g=H[a+24>>2];a:{if(g){h=H[a+28>>2];c=0;while(1){e=H[(c<<2)+h>>2];if(!(!e|I[e|0]!=I[f|0])){if(!fc(e,f)){break a}}c=c+1|0;if((g|0)!=(c|0)){continue}break}}c=0}if(!c){continue}break}H[b>>2]=d;return c|0}function dM(a,b){a=a|0;b=b|0;var c=0,d=0;a=H[a+16>>2];c=I[a+12|0]|I[a+13|0]<<8|(I[a+14|0]<<16|I[a+15|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);a:{if(c>>>0>b>>>0){break a}b=b-c|0;c=I[a+16|0]|I[a+17|0]<<8|(I[a+18|0]<<16|I[a+19|0]<<24);if(b>>>0>=(c<<24|c<<8&16711680|(c>>>8&65280|c>>>24))>>>0){break a}a=(a+20|0)+(b<<1)|0;d=I[a|0]<<8|I[a+1|0]}return d|0}function YN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if($d(a,H[b+8>>2],e)){if(!(H[b+28>>2]==1|H[b+4>>2]!=(c|0))){H[b+28>>2]=d}return}a:{if(!$d(a,H[b>>2],e)){break a}if(!(H[b+16>>2]!=(c|0)&H[b+20>>2]!=(c|0))){if((d|0)!=1){break a}H[b+32>>2]=1;return}H[b+20>>2]=c;H[b+32>>2]=d;H[b+40>>2]=H[b+40>>2]+1;if(!(H[b+36>>2]!=1|H[b+24>>2]!=2)){F[b+54|0]=1}H[b+44>>2]=4}}function Ska(a,b){a=a|0;b=b|0;var c=0,d=0;c=I[a+2|0]|I[a+3|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}else{d=163632}c=H[b+100>>2];c=Gc(d,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);if((c|0)!=-1){d=I[a+4|0]|I[a+5|0]<<8;c=c>>>0<((d<<8|d>>>8)&65535)>>>0?((c<<1)+a|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}a=YE(a,b)}else{a=0}return a|0}function S$(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[c>>2];if((d|0)!=H[c+4>>2]){Xp(a,d);e=H[c>>2];if(H[c+4>>2]-e>>>0>8){d=1;while(1){Pm(a,(d<<3)+e|0);d=d+1|0;e=H[c>>2];if(d>>>0>2]-e>>3>>>0){continue}break}}d=H[a+208>>2];a:{if(!d){break a}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break a}d=H[a+208>>2]}zb[H[H[d>>2]+392>>2]](d,b,c)}Rf(a,1,0,1)}}function Rka(a,b){a=a|0;b=b|0;var c=0,d=0;c=I[a+2|0]|I[a+3|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}else{d=163632}c=H[b+100>>2];c=Gc(d,H[H[c+80>>2]+N(H[c+64>>2],20)>>2]);if((c|0)!=-1){d=I[a+4|0]|I[a+5|0]<<8;c=c>>>0<((d<<8|d>>>8)&65535)>>>0?((c<<1)+a|0)+6|0:163632;c=I[c|0]|I[c+1|0]<<8;if(c){a=((c<<8|c>>>8)&65535)+a|0}else{a=163632}a=XE(a,b)}else{a=0}return a|0}function R$(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[c>>2];if((d|0)!=H[c+4>>2]){Wp(a,d);e=H[c>>2];if(H[c+4>>2]-e>>>0>4){d=1;while(1){Om(a,(d<<2)+e|0);d=d+1|0;e=H[c>>2];if(d>>>0>2]-e>>2>>>0){continue}break}}d=H[a+208>>2];a:{if(!d){break a}if(H[a+156>>2]){if((zb[H[H[d>>2]+96>>2]](d)|0)==4){break a}d=H[a+208>>2]}zb[H[H[d>>2]+396>>2]](d,b,c)}Rf(a,1,0,1)}}function $aa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(!(H[a+8>>2]&512)|(!a|!b)){break a}b:{c:{d=H[a+128>>2];c=H[d+40>>2];switch(c+2|0){case 0:break a;case 2:break c;default:break b}}c=H[a+96>>2];e=H[H[c>>2]+32>>2];d:{if(!e){c=0;break d}c=zb[e|0](c,9305)|0;d=H[a+128>>2]}H[d+40>>2]=c?c:-2}if(!c){break a}c=H[c+4>>2];if(!c){break a}f=zb[c|0](a,b)|0}return f|0}function hda(a){a=a|0;var b=0,c=0;b=H[a+408>>2];c=zb[H[H[a+4>>2]>>2]](a,1,8192)|0;H[b+8>>2]=c;a=0;while(1){b=(a<<2)+c|0;H[b>>2]=N(a,19595);H[b+7168>>2]=N(a,-5329);H[b+6144>>2]=N(a,-27439);H[b+5120>>2]=(a<<15)+8421375;H[b+4096>>2]=N(a,-21709);H[b+3072>>2]=N(a,-11059);H[b+2048>>2]=N(a,7471)+32768;H[b+1024>>2]=N(a,38470);a=a+1|0;if((a|0)!=256){continue}break}}function ada(a){a=a|0;var b=0,c=0;b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=255;c=H[b+4>>2]-1|0;H[b+4>>2]=c;a:{if(c){break a}if(zb[H[b+12>>2]](a)|0){break a}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}b=H[a+24>>2];c=H[b>>2];H[b>>2]=c+1;F[c|0]=217;c=H[b+4>>2]-1|0;H[b+4>>2]=c;b:{if(c){break b}if(zb[H[b+12>>2]](a)|0){break b}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}}function be(a,b){var c=0,d=0;c=H[a>>2];a:{if(c>>>0>=b>>>0){break a}while(1){b:{c:{switch(I[c|0]){case 0:case 9:case 10:case 12:case 13:case 32:break b;case 37:break c;default:break a}}d=37;while(1){d:{switch(d-10|0){case 0:case 3:break b;default:break d}}c=c+1|0;if((b|0)!=(c|0)){d=I[c|0];continue}break}c=b}c=c+1|0;if(c>>>0>>0){continue}break}}H[a>>2]=c}function Jr(a,b,c){var d=0;d=-6;a:{if(!c|I[c|0]!=49){break a}if(!a){return-2}H[a+24>>2]=0;c=H[a+32>>2];if(!c){H[a+40>>2]=0;H[a+32>>2]=866;c=866}if(!H[a+36>>2]){H[a+36>>2]=867}c=zb[c|0](H[a+40>>2],1,7120)|0;if(!c){return-4}H[a+28>>2]=c;H[c+56>>2]=0;H[c>>2]=a;H[c+4>>2]=16180;b=_D(a,b);d=0;if(!b){break a}zb[H[a+36>>2]](H[a+40>>2],c);H[a+28>>2]=0;d=b}return d}function HF(a){a=a|0;var b=0,c=0;b=H[a+144>>2];a:{if(b){break a}while(1){c=H[a+48>>2];if(!c){b=163632;break a}b=oc(1,12);b:{if(!b){b=163632;break b}Yh(b,c)}c=H[a+144>>2];H[a+144>>2]=c?c:b;if(!c){break a}af(b);b=H[a+144>>2];if(!b){continue}break}}a=H[b>>2];a=a?a:163632;a=K[a+16>>2]<10?163632:H[a+12>>2];return(I[a|0]|I[a+1|0]<<8|(I[a+2|0]|I[a+3|0]<<8))!=0|0}function SG(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;if(!c){Vc();return 0}a=0;a:{b:{while(1){h=H[d>>2];i=H[b+24>>2];H[197455]=0;h=da(637,i|0,h|0)|0;i=H[197455];H[197455]=0;if((i|0)==1){break a}H[f>>2]=h;if(!h){break b}f=f+g|0;d=d+e|0;a=a+1|0;if((c|0)!=(a|0)){continue}break}a=c}Vc();return a|0}a=$()|0;_()|0;Vc();ea(a|0);X()}function sia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;if(!b){return 0}e=H[b+4>>2];a=H[b+12>>2];a:{if(e>>>0>=a+d>>>0){break a}if(H[b+20>>2]){a=e+(d>>>0>65535?d:65535)|0;g=Tb(a);f=H[b>>2];e=Ob(g,f,e);Kb(f);H[b+4>>2]=a;H[b>>2]=e;a=H[b+12>>2];break a}d=e-a|0}Ob(H[b>>2]+a|0,c,d);a=H[b+12>>2]+d|0;H[b+12>>2]=a;if(a>>>0>K[b+8>>2]){H[b+8>>2]=a}return d|0}function iE(a){a=a|0;H[a+32>>2]=0;Kb(H[a+36>>2]);H[a+44>>2]=0;H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;Kb(H[a+48>>2]);H[a+68>>2]=0;H[a+48>>2]=0;H[a+40>>2]=0;H[a+44>>2]=0;Kb(H[a+72>>2]);H[a+72>>2]=0;H[a+64>>2]=0;H[a+68>>2]=0;H[a+56>>2]=0;Kb(H[a+60>>2]);H[a+80>>2]=0;H[a+60>>2]=0;H[a+52>>2]=0;H[a+56>>2]=0;Kb(H[a+84>>2]);H[a+84>>2]=0;H[a+76>>2]=0;H[a+80>>2]=0}function $$(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+12>>2];if(b){e=H[a+28>>2];H[b+104>>2]=0;H[b+48>>2]=0;H[b+36>>2]=0;H[b+40>>2]=0;F[b+44|0]=0;H[b+64>>2]=9;H[b+12>>2]=0;H[b+16>>2]=0;d=H[b+180>>2];c=H[b+100>>2];if((c|0)!=(b+112|0)){if(c){zb[H[d+8>>2]](d,c)}H[b+100>>2]=0}c=H[b+88>>2];if(c){zb[H[d+8>>2]](d,c)}b=Nb(b,0,184);if(b){zb[H[e+8>>2]](e,b)}H[a+12>>2]=0}}function Pe(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;H[b>>2]=0;a:{b:{c:{d:{c=H[a+8>>2];if(K[a+4>>2]<=c+3>>>0){break d}e=H[a+20>>2];e:{if(e){if((zb[e|0](a,c,d+12|0,4)|0)!=4){break d}c=H[a+8>>2];b=d+12|0;break e}b=H[a>>2];if(!b){break c}b=b+c|0}f=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);break b}H[b>>2]=85;break a}f=0}H[a+8>>2]=c+4}xb=d+16|0;return f}function Dea(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;if(H[a+316>>2]>0){f=H[d>>2];while(1){i=e|1;b=H[a+112>>2];if((b|0)>0){d=H[(e<<2)+f>>2];j=b+d|0;b=H[(g<<2)+c>>2];while(1){h=I[b|0];F[d+1|0]=h;F[d|0]=h;b=b+1|0;d=d+2|0;if(j>>>0>d>>>0){continue}break}b=H[a+112>>2]}ug(f,e,f,i,1,b);g=g+1|0;e=e+2|0;if((e|0)>2]){continue}break}}}function J9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{b:{if(!fc(b,10266)){H[c>>2]=H[a+36>>2];H[c+4>>2]=H[a+40>>2];H[c+8>>2]=H[a+44>>2];H[c+12>>2]=H[a+48>>2];H[c+16>>2]=H[a+52>>2];H[c+20>>2]=H[a+56>>2];H[c+24>>2]=H[a+60>>2];H[c+28>>2]=H[a- -64>>2];break b}if(!fc(b,10438)){H[c>>2]=H[a+28>>2];break b}d=12;if(fc(b,10703)){break a}F[c|0]=I[a+32|0]}d=0}return d|0}function Caa(a,b,c,d,e,f,g,h,i){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;c=xb-16|0;xb=c;d=N(g,3);g=h<<2;while(1){h=e;while(1){qc(H[a+68>>2],I[i|0],I[i+1|0],I[i+2|0],c+12|0,c+8|0,c+4|0);H[b>>2]=H[c+12>>2]|H[c+8>>2]<<8|H[c+4>>2]<<16|-16777216;i=i+3|0;b=b+4|0;h=h-1|0;if(h){continue}break}i=d+i|0;b=b+g|0;f=f-1|0;if(f){continue}break}xb=c+16|0}function BB(a){var b=0,c=0,d=0,e=0;c=xb-32|0;xb=c;d=H[a+56>>2];b=gma(d,0,J[a+84>>1],0);e=yb;if(!(!d|!e)){b=H[a>>2];e=H[a+628>>2];H[c+16>>2]=273482;Pb(e,b,274538,c+16|0);b=0}a:{if(J[a+138>>1]!=1){break a}d=J[a+98>>1];b=gma(d,0,b,0);e=yb;if(!d|!e){break a}b=H[a>>2];a=H[a+628>>2];H[c>>2]=273482;Pb(a,b,274538,c);b=0}xb=c+32|0;return(b>>>3|0)+((b&7)!=0)|0}function A6(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=xb-48|0;xb=e;a:{if(d){f=e+40|0;g=e+32|0;h=e+24|0;i=e+16|0;j=e+8|0;zb[H[H[a>>2]+92>>2]](a,f,g,h,i,j,e);zb[H[H[a>>2]+88>>2]](a,d,d+8|0,d+16|0,d+24|0,d+32|0,d+40|0);zb[H[H[b>>2]+8>>2]](b,a,0,0,c);zb[H[H[a>>2]+88>>2]](a,f,g,h,i,j,e);break a}zb[H[H[b>>2]+8>>2]](b,a,0,0,c)}xb=e+48|0}function vO(a,b){a=a|0;b=+b;var c=0,d=0,e=0;c=xb-16|0;xb=c;d=Lw(c,20,0);if(I[d+11|0]>>>7|0){e=(H[d+8>>2]&2147483647)-1|0}else{e=1}H[197455]=0;ba(3815,d|0,e|0);e=H[197455];H[197455]=0;if((e|0)==1){a=$()|0;_()|0;Sc(d);ea(a|0);X()}H[197455]=0;db(3816,a|0,c|0,+b);a=H[197455];H[197455]=0;if((a|0)!=1){Sc(c);xb=c+16|0;return}a=$()|0;_()|0;Sc(c);ea(a|0);X()}function t$(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;var h=0,i=0,j=0,k=0,l=0,m=0;h=+(g|0);i=+(f|0);j=+(e|0);k=+(d|0);l=+(c|0);m=+(b|0);b=H[a+156>>2];a:{if(b){if(ti(b,m,l,k,j,i,h)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}b=H[a+208>>2];if(!b){break a}zb[H[H[b>>2]+40>>2]](b,m,l,k,j,i,h)}a=H[a+120>>2];H[a+672>>2]=f;H[a+676>>2]=g}function Nha(a){a=a|0;var b=0,c=0;c=xb-944|0;xb=c;b=Bd(c,0);H[197455]=0;xD(b,a);a=H[197455];H[197455]=0;a:{if((a|0)!=1){H[b>>2]=245276;H[197455]=0;aa(917,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}H[197455]=0;aa(918,b|0)|0;a=H[197455];H[197455]=0;if((a|0)==1){break a}xb=c+944|0;return}a=$()|0;_()|0;Zf(b);ea(a|0);X()}ha(0)|0;_()|0;Zb();X()}function n5(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-32|0;xb=f;H[f+24>>2]=c;H[f+28>>2]=b;H[f+20>>2]=d;H[f+16>>2]=e;H[f+12>>2]=24;H[f+8>>2]=32;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],f+8|0,4);Lb(H[a+4>>2],f+12|0,4);Lb(H[a+4>>2],f+28|0,4);Lb(H[a+4>>2],f+24|0,4);Lb(H[a+4>>2],f+20|0,4);Lb(H[a+4>>2],f+16|0,4);xb=f+32|0}function k5(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-32|0;xb=f;H[f+24>>2]=c;H[f+28>>2]=b;H[f+20>>2]=d;H[f+16>>2]=e;H[f+12>>2]=24;H[f+8>>2]=31;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],f+8|0,4);Lb(H[a+4>>2],f+12|0,4);Lb(H[a+4>>2],f+28|0,4);Lb(H[a+4>>2],f+24|0,4);Lb(H[a+4>>2],f+20|0,4);Lb(H[a+4>>2],f+16|0,4);xb=f+32|0}function TZ(a){a=a|0;var b=0,c=0,d=0;b=417328;a=Lm(a);H[a+244>>2]=417328;d=a+244|0;a:{if(I[a+272|0]){break a}c=H[a+268>>2];if(!c){break a}Kb(c);H[a+268>>2]=0;b=H[a+244>>2]}H[a+248>>2]=0;H[a+252>>2]=0;F[a+273|0]=0;H[a+256>>2]=0;H[a+260>>2]=0;b=H[b+12>>2];H[197455]=0;ia(b|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){ha(0)|0;_()|0;Zb();X()}return a|0}function Ll(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=H[a+96>>2];if(!c){return}d=H[a+128>>2];b=H[d+64>>2];H[d+64>>2]=b-1;if((b|0)<=1){b=H[c+16>>2];if(!b){return}e=c+16|0;d=H[c+8>>2];a:{while(1){if(H[b+8>>2]==(a|0)){break a}b=H[b+4>>2];if(b){continue}break}return}f=H[b>>2];g=f?f+4|0:e;e=H[b+4>>2];H[g>>2]=e;H[(e?e:c+20|0)>>2]=f;zb[H[d+8>>2]](d,b);Gj(d,a,c)}}function w7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=xb-16|0;xb=e;d=H[a+584>>2];if(I[a+48|0]&4){ye(272775,13,1,b);a:{b:{switch(H[d>>2]-1|0){case 0:ye(273275,5,1,b);break a;case 1:ye(273813,24,1,b);break a;case 2:break b;default:break a}}ye(274423,25,1,b)}f=H[d>>2];H[e+4>>2]=f;H[e>>2]=f;Fc(b,275058,e)}d=H[d+52>>2];if(d){zb[d|0](a,b,c)}xb=e+16|0}function g7(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=xb-16|0;xb=f;g=H[a+584>>2];e=Tb(c);a:{if(!e){a=H[a+628>>2];H[f>>2]=c;Pb(a,395936,277108,f);b=0;break a}e=Ob(e,b,c);if((c|0)>0){h=H[g+8>>2];b=e;i=c;while(1){zb[H[g+24>>2]](a,b,h);b=b+h|0;i=i-h|0;if((i|0)>0){continue}break}}b=zb[H[g+20>>2]](a,e,c,d)|0;Kb(e)}xb=f+16|0;return b|0}function sI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=H[a>>2];d=H[a+44>>2];if(d){e=H[d>>2];if(!(!e|!H[e+96>>2])){H[e+88>>2]=d}}d=rC(H[c+504>>2],b);if(!d){b=H[H[c+504>>2]+88>>2];c=H[b+16>>2];H[a+12>>2]=H[b+12>>2];H[a+16>>2]=c;H[a+36>>2]=H[b+36>>2];c=H[b+32>>2];H[a+28>>2]=H[b+28>>2];H[a+32>>2]=c;c=H[b+24>>2];H[a+20>>2]=H[b+20>>2];H[a+24>>2]=c}return d|0}function BU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=H[a+84>>2];f=H[e+4>>2];g=H[a+28>>2];d=H[a+20>>2]-g|0;d=d>>>0>f>>>0?f:d;if(d){Ob(H[e>>2],g,d);H[e>>2]=d+H[e>>2];f=H[e+4>>2]-d|0;H[e+4>>2]=f}d=H[e>>2];f=c>>>0>f>>>0?f:c;if(f){Ob(d,b,f);d=f+H[e>>2]|0;H[e>>2]=d;H[e+4>>2]=H[e+4>>2]-f}F[d|0]=0;b=H[a+44>>2];H[a+28>>2]=b;H[a+20>>2]=b;return c|0}function xja(a){a=a|0;var b=0,c=0,d=0;c=H[a+16>>2];if(K[a+20>>2]>=c+16>>>0){d=H[a+32>>2];b=Qj(a,H[c>>2],0);H[d+84>>2]=((b>>31)+b|0)+32768&-65536;b=Qj(a,H[c+4>>2],0);H[d+88>>2]=((b>>31)+b|0)+32768&-65536;b=Qj(a,H[c+8>>2],0);H[d+92>>2]=((b>>31)+b|0)+32768&-65536;a=Qj(a,H[c+12>>2],0);H[d+96>>2]=((a>>31)+a|0)+32768&-65536;a=0}else{a=161}return a|0}function nc(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;H[b>>2]=0;a:{b:{c:{d:{c=H[a+8>>2];if(K[a+4>>2]<=c+1>>>0){break d}e=H[a+20>>2];e:{if(e){if((zb[e|0](a,c,d+14|0,2)|0)!=2){break d}c=H[a+8>>2];b=d+14|0;break e}b=H[a>>2];if(!b){break c}b=b+c|0}b=I[b|0]|I[b+1|0]<<8;f=b<<8|b>>>8;break b}H[b>>2]=85;break a}f=0}H[a+8>>2]=c+2}xb=d+16|0;return f&65535}function jga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;F[a+24|0]=0;d=H[a+4>>2];a:{if(!d){break a}c=H[a+16>>2];e=c+1|0;f=H[a+20>>2];if(!((f|0)>(c|0)|e>>>0<=f>>>0)){c=c+65537&-65536;d=tc(d,c);H[a+20>>2]=c;F[a+12|0]=1;H[a+4>>2]=d;if(!d){break a}c=H[a+16>>2];e=c+1|0}H[a+16>>2]=e;F[c+d|0]=b;b=H[a+16>>2];if((b|0)>H[a+8>>2]){H[a+8>>2]=b}g=1}return g|0}function bR(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=H[a+12>>2];a:{if((G[d+22>>1]+G[d+58>>1]|0)+1>>>0>K[d+4>>2]){d=ee(d,1,0);if(d){break a}}d=H[a+20>>2];if(I[a+68|0]){a=H[d+8>>2];e=G[d+2>>1];f=H[d+4>>2]+(e<<3)|0;H[f>>2]=(((b>>31)+b|0)+32768&-65536)>>16;H[f+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;F[a+e|0]=1}G[d+2>>1]=J[d+2>>1]+1;d=0}return d|0}function M1(a){a=a|0;var b=0,c=0;a:{b=H[a>>2];if(!b){break a}a=a+20|0;if(!a){break a}b=H[b>>2];if(!b){break a}b:{if(!(F[a+16|0]&1)){break b}c=H[a+4>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+4>>2]=0;c=H[a+8>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+8>>2]=0;c=H[a+12>>2];if(!c){break b}zb[H[b+8>>2]](b,c)}H[a>>2]=0;H[a+4>>2]=0;H[a+16>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0}}function Lw(a,b,c){var d=0,e=0,f=0,g=0;g=xb-16|0;xb=g;f=xb-16|0;xb=f;a:{if(b>>>0<=1073741807){b:{if(b>>>0<=1){F[a+11|0]=b;d=a;break b}if(b>>>0>=2){e=b+4&-4;d=e-1|0;d=(d|0)==2?e:d}else{d=1}e=d+1|0;d=Vv(e);H[a>>2]=d;H[a+8>>2]=e|-2147483648;H[a+4>>2]=b}Fv(d,b,c);H[f+12>>2]=0;H[(b<<2)+d>>2]=H[f+12>>2];xb=f+16|0;break a}qd(a);X()}xb=g+16|0;return a}function Co(a,b,c,d){F[a+53|0]=1;a:{if(H[a+4>>2]!=(c|0)){break a}F[a+52|0]=1;c=H[a+16>>2];b:{if(!c){H[a+36>>2]=1;H[a+24>>2]=d;H[a+16>>2]=b;if((d|0)!=1){break a}if(H[a+48>>2]==1){break b}break a}if((b|0)==(c|0)){c=H[a+24>>2];if((c|0)==2){H[a+24>>2]=d;c=d}if(H[a+48>>2]!=1){break a}if((c|0)==1){break b}break a}H[a+36>>2]=H[a+36>>2]+1}F[a+54|0]=1}}function ve(a){var b=0,c=0;a:{if(!H[a+4>>2]){break a}b=H[a+16>>2];b:{if(!b){H[a+20>>2]=2;break b}c:{switch(H[a+20>>2]-2|0){case 1:H[a+20>>2]=1;break;case 0:break b;default:break c}}c=Tb(b);if(!c){break a}b=Ob(c,H[a+12>>2],b);c=H[a+28>>2];if(c){zb[c|0](H[a+24>>2])}H[a+28>>2]=594;H[a+24>>2]=b;H[a+12>>2]=b;H[a+20>>2]=2}return H[a+12>>2]}return 0}function Ai(a){H[a+556>>2]=1460;H[a+548>>2]=1461;H[a+540>>2]=1462;H[a+520>>2]=1463;H[a+516>>2]=1464;H[a+512>>2]=1;H[a+528>>2]=1;H[a+580>>2]=1465;H[a+576>>2]=1466;H[a+572>>2]=1467;H[a+568>>2]=1468;H[a+564>>2]=1467;H[a+560>>2]=1469;H[a+552>>2]=1470;H[a+544>>2]=1471;H[a+536>>2]=1464;H[a+532>>2]=1463;H[a+524>>2]=1464;H[a+12>>2]=H[a+12>>2]&-131329}function ny(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=H[b+16>>2];if(c>>>0<1073741808){e=H[b+4>>2];b:{c:{if(c>>>0>=2){d=c+4&-4;b=Qb(d<<2);H[a+8>>2]=d|-2147483648;H[a>>2]=b;H[a+4>>2]=c;a=b;break c}F[a+11|0]=c;if(!c){break b}}H[197455]=0;Mb(a,e,c);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(c<<2)+a>>2]=0;return}qd(a);X()}ha(0)|0;_()|0;Zb();X()}function kha(a){a=a|0;var b=0,c=0;a=H[a+4>>2];if(!a){return-1}b=H[a+76>>2];a:{if(!((b|0)>=0&(!b|H[197041]!=(b&-1073741825)))){b=H[a+4>>2];if((b|0)!=H[a+8>>2]){H[a+4>>2]=b+1;a=I[b|0];break a}a=rm(a);break a}b=a+76|0;c=H[b>>2];H[b>>2]=c?c:1073741823;c=H[a+4>>2];b:{if((c|0)!=H[a+8>>2]){H[a+4>>2]=c+1;a=I[c|0];break b}a=rm(a)}H[b>>2]=0}return a|0}function eO(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=xb+-64|0;xb=e;d=1;a:{if($d(a,b,0)){break a}d=0;if(!b){break a}b=Oe(b,782020,782068,0);d=0;if(!b){break a}d=e+8|0;Nb(d|4,0,52);H[e+56>>2]=1;H[e+20>>2]=-1;H[e+16>>2]=a;H[e+8>>2]=b;zb[H[H[b>>2]+28>>2]](b,d,H[c>>2],1);a=H[e+32>>2];if((a|0)==1){H[c>>2]=H[e+24>>2]}d=(a|0)==1}xb=e- -64|0;return d|0}function Yia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-48|0;xb=e;H[e+24>>2]=c;H[e+20>>2]=b;H[e+16>>2]=17;b=Tb(32);H[b+24>>2]=1768386675;H[b+28>>2]=0;H[b+16>>2]=1768386662;H[b+20>>2]=0;H[b+8>>2]=1768386675;H[b+12>>2]=0;H[b>>2]=1768386662;H[b+4>>2]=0;H[e+40>>2]=4;H[e+44>>2]=b;a=GC(a,e+16|0,d,e+12|0);Kb(b);xb=e+48|0;return(a?0:H[e+12>>2])|0}function RZ(a){a=a|0;var b=0,c=0,d=0;b=417328;a=Lm(a);H[a+244>>2]=417328;d=a+244|0;a:{if(I[a+272|0]){break a}c=H[a+268>>2];if(!c){break a}Kb(c);H[a+268>>2]=0;b=H[a+244>>2]}H[a+248>>2]=0;H[a+252>>2]=0;F[a+273|0]=0;H[a+256>>2]=0;H[a+260>>2]=0;b=H[b+12>>2];H[197455]=0;ia(b|0,d|0);b=H[197455];H[197455]=0;if((b|0)==1){ha(0)|0;_()|0;Zb();X()}Kb(a)}function Mw(a,b,c){var d=0,e=0,f=0,g=0;g=xb-16|0;xb=g;f=xb-16|0;xb=f;a:{if(b>>>0<=4294967279){b:{if(b>>>0<=10){F[a+11|0]=b;d=a;break b}if(b>>>0>=11){e=b+16&-16;d=e-1|0;d=(d|0)==11?e:d}else{d=10}e=d+1|0;d=Qb(e);H[a>>2]=d;H[a+8>>2]=e|-2147483648;H[a+4>>2]=b}Gv(d,b,c);F[f+15|0]=0;F[b+d|0]=I[f+15|0];xb=f+16|0;break a}qd(a);X()}xb=g+16|0;return a}function wp(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=xb-240|0;xb=h;H[h>>2]=a;i=1;a:{if((d|0)<2){break a}k=0-b|0;f=a;while(1){f=f+k|0;j=d-2|0;g=f-H[(j<<2)+e>>2]|0;if((zb[c|0](a,g)|0)>=0){if((zb[c|0](a,f)|0)>=0){break a}}l=g;g=(zb[c|0](g,f)|0)>=0;f=g?l:f;H[(i<<2)+h>>2]=f;i=i+1|0;d=g?d-1|0:j;if((d|0)>1){continue}break}}Sx(b,h,i);xb=h+240|0}function kO(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;a:{if(H[b>>2]){if(I[c+11|0]>>>7|0){e=H[c+4>>2]}else{e=I[c+11|0]}if(e){Io(c,239723,ac(239723))}e=H[b+4>>2];zb[H[H[e>>2]+24>>2]](d,e,H[b>>2]);H[197455]=0;da(3817,c|0,d|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}_b(d)}fw(a,c);xb=d+16|0;return}a=$()|0;_()|0;_b(d);ea(a|0);X()}function sh(a,b){a:{if((b|0)>=1024){a=a*8.98846567431158e307;if(b>>>0<2047){b=b-1023|0;break a}a=a*8.98846567431158e307;b=((b|0)<3069?b:3069)-2046|0;break a}if((b|0)>-1023){break a}a=a*2.004168360008973e-292;if(b>>>0>4294965304){b=b+969|0;break a}a=a*2.004168360008973e-292;b=((b|0)>-2960?b:-2960)+1938|0}x(0,0);x(1,b+1023<<20);return a*+z()}function GE(a,b,c,d){var e=0,f=0,g=0;a:{e=N(b,20)+a|0;f=J[e+16>>1];if(!f){break a}g=I[e+18|0];if(!(g&2)){break a}G[e+16>>1]=0;e=(f<<16>>16)+b|0;if((e|0)==(d|0)){break a}GE(a,e,c,d);b:{if((c&-2)==4){H[(N(e,20)+a|0)+12>>2]=0-H[(N(b,20)+a|0)+12>>2];break b}H[(N(e,20)+a|0)+8>>2]=0-H[(N(b,20)+a|0)+8>>2]}a=N(e,20)+a|0;G[a+16>>1]=0-f;F[a+18|0]=g}}function kN(a){a=a|0;var b=0;b=H[a+8>>2];Nb(a+16|0,0,84);H[a+136>>2]=39;H[a+132>>2]=40;H[a+128>>2]=41;H[a+124>>2]=42;H[a+120>>2]=43;H[a+116>>2]=44;H[a+108>>2]=45;H[a+104>>2]=46;H[a+100>>2]=47;H[a+12>>2]=b;H[a+164>>2]=39;H[a+160>>2]=48;H[a+156>>2]=49;H[a+152>>2]=50;H[a+148>>2]=43;H[a+144>>2]=51;b=a+12|0;H[a+112>>2]=b;H[a+140>>2]=b;return 0}function Sx(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=xb-256|0;xb=e;a:{if((c|0)<2){break a}h=(c<<2)+b|0;H[h>>2]=e;if(!a){break a}d=e;while(1){f=a>>>0<256?a:256;Ob(d,H[b>>2],f);d=0;while(1){g=(d<<2)+b|0;d=d+1|0;Ob(H[g>>2],H[(d<<2)+b>>2],f);H[g>>2]=H[g>>2]+f;if((c|0)!=(d|0)){continue}break}if(a>>>0<257){break a}a=a-f|0;d=H[h>>2];continue}}xb=e+256|0}function Aea(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;var h=0,i=0,j=0,k=0,l=0;h=xb-16|0;xb=h;i=H[a+452>>2];j=H[i+16>>2];k=H[f>>2];H[h+12>>2]=0;l=b;b=g-k|0;zb[H[H[a+472>>2]+4>>2]](a,l,c,d,H[i+12>>2],h+12|0,b>>>0>>0?b:j);zb[H[H[a+480>>2]+4>>2]](a,H[i+12>>2],(H[f>>2]<<2)+e|0,H[h+12>>2]);H[f>>2]=H[f>>2]+H[h+12>>2];xb=h+16|0}function v$(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=H[a+156>>2];a:{if(d){if(jd(d,b,c)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}d=H[a+208>>2];if(!d){break a}zb[H[H[d>>2]+36>>2]](d,b,c)}d=H[a+120>>2];if(P(c)<2147483648){a=~~c}else{a=-2147483648}if(P(b)<2147483648){H[d+672>>2]=~~b;H[d+676>>2]=a;return}H[d+672>>2]=-2147483648;H[d+676>>2]=a}function af(a){var b=0,c=0;a:{if(!(!a|(a|0)==163632)){if(H[a+4>>2]){while(1){b=H[a+8>>2]+N(c,24)|0;H[b+16>>2]=0;Kb(H[b+20>>2]);H[b+20>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;c=c+1|0;if(c>>>0>2]){continue}break}}Kb(H[a+8>>2]);b=H[a>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}Kb(a)}return}ha(0)|0;_()|0;Zb();X()}function Zja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+12>>2];a:{if(zb[H[e+24>>2]](e,b,H[e+56>>2])>>>0<=31){e=H[a+12>>2];f=0;if(1<>2]](e,b,H[e+56>>2])&7168){break a}}if(!((b|0)!=2479|(c|0)!=2492)){H[d>>2]=2527;return 1}a=H[a+12>>2];H[d>>2]=0;f=0;if(!b|!c){break a}f=(zb[H[a+36>>2]](a,b,c,d,H[a+68>>2])|0)!=0}return f|0}function Yp(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=H[a+156>>2];a:{if(d){if(Qd(d,b,c)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}d=H[a+208>>2];if(!d){break a}zb[H[H[d>>2]+32>>2]](d,b,c)}d=H[a+120>>2];if(P(c)<2147483648){a=~~c}else{a=-2147483648}if(P(b)<2147483648){H[d+672>>2]=~~b;H[d+676>>2]=a;return}H[d+672>>2]=-2147483648;H[d+676>>2]=a}function SM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=H[a+20>>2];a=(c+(H[a+16>>2]<<3)|0)-8|0;if(a>>>0>=c>>>0){while(1){e=(a-c>>4<<3)+c|0;d=H[e>>2];if((d|0)==(b|0)){f=e;break a}d=d&2147483647;f=(d|0)==(b|0)?e:f;if((a|0)!=(c|0)){d=b>>>0>d>>>0;c=d?e+8|0:c;a=d?a:e-8|0;if(c>>>0<=a>>>0){continue}}break}if(f){break a}}return 0}return H[f+4>>2]}function Eg(a){var b=0,c=0,d=0,e=0;a:{if(H[a+12>>2]>0){break a}c=3;b=H[a>>2];d=H[a+8>>2];b:{if(b>>>0>=d>>>0){break b}c:{while(1){d:{e=b+1|0;H[a>>2]=e;e:{switch(I[b|0]-9|0){case 17:break b;case 50:break c;case 1:case 4:break d;case 0:case 23:break e;default:break a}}b=e;if(d>>>0>b>>>0){continue}break b}break}c=2;break b}c=1}H[a+12>>2]=c}}function Gf(a,b){a=a|0;b=b|0;var c=0,d=0;if(!H[a+4>>2]){H[a+4>>2]=0;Kb(H[a+8>>2]);H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;return}b=H[a+4>>2];if(b){while(1){d=b-1|0;c=H[a+8>>2]+N(d,12)|0;b=H[c+8>>2];c=H[c+4>>2];H[a+4>>2]=d;Vc();if(b){zb[b|0](c)}b=H[a+4>>2];if(b){continue}break}}H[a+4>>2]=0;Kb(H[a+8>>2]);H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0;Vc()}function ue(a){var b=0;a:{b=H[a+5820>>2];b:{if((b|0)==16){b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5816|0];b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5817|0];G[a+5816>>1]=0;b=0;break b}if((b|0)<8){break a}b=H[a+20>>2];H[a+20>>2]=b+1;F[b+H[a+8>>2]|0]=I[a+5816|0];G[a+5816>>1]=I[a+5817|0];b=H[a+5820>>2]-8|0}H[a+5820>>2]=b}}function ol(a){var b=0;H[a+236>>2]=0;Kb(H[a+240>>2]);H[a+240>>2]=0;H[a+232>>2]=0;H[a+236>>2]=0;H[197455]=0;ia(657,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){H[a+236>>2]=0;Kb(H[a+240>>2]);H[a+240>>2]=0;H[a+232>>2]=0;H[a+236>>2]=0;H[a+224>>2]=0;Kb(H[a+228>>2]);H[a+228>>2]=0;H[a+220>>2]=0;H[a+224>>2]=0;rG(a);return}ha(0)|0;_()|0;Zb();X()}function RF(a){var b=0,c=0,d=0;b=H[a>>2];a:{if(b){break a}d=a-56|0;while(1){b=H[d>>2];if(!b){return 163632}b=dd(b,1819239265);if(!(!b|!H[b>>2])){H[b>>2]=H[b>>2]+1}c=H[b+12>>2];Wb(b);if(H[b+4>>2]?c:0){H[b+4>>2]=0}c=H[a>>2];b=b?b:163632;H[a>>2]=c?c:b;if(!c){break a}if(!(!b|(b|0)==163632)){Wb(b)}b=H[a>>2];if(!b){continue}break}}return b}function JV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;H[c+12>>2]=0;a:{b:{d=I[b+11|0];e=d<<24>>24<0;f=e?H[b>>2]:b;if(f){b=e?H[b+4>>2]:d;if(b){break b}}b=pi(0,239460);H[a+4>>2]=b;break a}ij(f,b,c+12|0,c+8|0,0);d=H[c+12>>2];b=pi(d,239460);H[a+4>>2]=b;if(!d){break a}Kb(d);b=H[a+4>>2]}if(b){H[a+8>>2]=0}xb=c+16|0;return(b|0)!=0|0}function oq(a){var b=0;b=H[a+584>>2];if(!og(a,395888,1)){Pb(H[a+628>>2],270295,271509,0);return}H[b+44>>2]=H[a+672>>2];H[a+672>>2]=1602;H[b+48>>2]=H[a+668>>2];H[a+668>>2]=1603;H[b+52>>2]=H[a+676>>2];H[a+676>>2]=1604;H[b+56>>2]=H[a+516>>2];H[a+516>>2]=1605;H[b+60>>2]=H[a+524>>2];H[a+524>>2]=1606;H[b+40>>2]=0;H[b+24>>2]=0;H[b>>2]=1}function d7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{switch(H[b+24>>2]-1|0){case 0:Fy(H[b+16>>2],4,c,d);c=H[b+16>>2];zb[H[H[c>>2]+116>>2]](c);Np(a,H[H[b+16>>2]+240>>2]+8|0);return;case 1:vz(H[b+20>>2],4,+(c>>>0),+(d>>>0));c=H[b+20>>2];zb[H[H[c>>2]+16>>2]](c);Np(a,H[H[b+20>>2]+208>>2]+8|0);return;default:break a}}H[a>>2]=0;F[a+11|0]=0}function ck(a){var b=0,c=0,d=0;a:{if(!a){break a}b=I[a|0];if(!b){break a}d=(b|0)==45;b=d+a|0;a=F[b|0];b:{if(!(I[((a&248)>>>3|0)+24096|0]>>>(a&7)&1)){break b}while(1){if(c<<16>>16>3274){c=32767;break b}c=I[a+24128|0]+N(c,10)|0;a=F[b+1|0];b=b+1|0;if(I[((a&248)>>>3|0)+24096|0]>>>(a&7)&1){continue}break}}c=d?0-c|0:c}return c<<16>>16}function Ot(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;H[a+2748>>2]=b;d=H[b+28>>2];H[a+4>>2]=H[b+44>>2];H[a+8>>2]=H[b+48>>2];H[a+12>>2]=H[b+7720>>2];H[a+16>>2]=H[b+7724>>2];c=H[b+24>>2];H[a+2740>>2]=(I[H[H[b+36>>2]+388>>2]+20|0]?4:12)|d;d=a;a=(c&-2)==2;b=a|2;e=(c|0)==4?b:a;a=(c|0)==2;b=a?b:e;b=(c&-3)==1?b:b|4;H[d+2744>>2]=a?b|8:b;return 0}function Nt(a,b){var c=0,d=0,e=0;c=xb-48|0;xb=c;H[a>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;F[c+24|0]=0;H[c+28>>2]=0;H[c+32>>2]=0;H[c>>2]=0;H[c+4>>2]=0;d=kd(b);F[c+40|0]=1;H[c+36>>2]=d;d=Dt(c,dd(b,1195656518));H[a>>2]=d;e=d?d:163632;if(OF(K[e+16>>2]<12?163632:H[e+12>>2],d,b)){Wb(H[a>>2]);H[a>>2]=163632}xb=c+48|0}function Ji(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=ad(b);if(c>>>0<1073741808){b:{c:{if(c>>>0>=2){e=c+4&-4;d=Qb(e<<2);H[a+8>>2]=e|-2147483648;H[a>>2]=d;H[a+4>>2]=c;break c}F[a+11|0]=c;d=a;if(!c){break b}}H[197455]=0;Mb(d,b,c);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[(c<<2)+d>>2]=0;return a|0}qd(a);X()}ha(0)|0;_()|0;Zb();X()}function ik(a){var b=0,c=0,d=0,e=0,f=0;Eg(a);a:{if(H[a+12>>2]>0){break a}b=H[a>>2];d=b-1|0;e=H[a+8>>2];b:{c:{while(1){c=3;if(b>>>0>=e>>>0){break b}f=b;b=b+1|0;H[a>>2]=b;d:{switch(I[f|0]-9|0){case 0:case 23:break a;case 17:break b;case 50:break c;case 1:case 4:break d;default:continue}}break}c=2;break b}c=1}H[a+12>>2]=c}return d}function mu(a){var b=0,c=0,d=0;a:{if(!a){break a}b=I[a|0];if(!b){break a}d=(b|0)==45;b=d+a|0;a=F[b|0];b:{if(!(I[((a&248)>>>3|0)+24096|0]>>>(a&7)&1)){break b}while(1){if((c|0)>214748362){c=2147483647;break b}c=I[a+24128|0]+N(c,10)|0;a=F[b+1|0];b=b+1|0;if(I[((a&248)>>>3|0)+24096|0]>>>(a&7)&1){continue}break}}c=d?0-c|0:c}return c}function kD(a){a=a|0;var b=0;H[a>>2]=248924;a:{b=H[a+940>>2];if(b){H[197455]=0;ia(1080,b|0);b=H[197455];H[197455]=0;if((b|0)==1){break a}}H[a>>2]=245276;H[197455]=0;aa(917,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}H[197455]=0;aa(918,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}return a|0}ha(0)|0;_()|0;Zb();X()}function GD(a,b,c){var d=0;a:{if(H[a>>2]|c>>>0<34|(I[b|0]!=66|I[b+1|0]!=77)){break a}if(I[b+6|0]|I[b+7|0]|(I[b+27|0]|I[b+26|0]!=1)){break a}b:{switch(I[b+28|0]){case 0:case 1:case 4:case 8:case 16:case 24:case 32:break b;default:break a}}if(I[b+29|0]|I[b+30|0]>5|(I[b+31|0]|I[b+32|0])){break a}if(I[b+33|0]){break a}d=1}return d}function x6(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;var h=0,i=0,j=0,k=0;h=xb-32|0;xb=h;i=M[a+48>>3];j=M[a+56>>3];k=H[a+4>>2];zb[H[H[k>>2]+404>>2]](k)|0;a=H[a+4>>2];M[h+24>>3]=j*M[c>>3]/i;M[h+16>>3]=i*M[d>>3]/j;M[h+8>>3]=i*M[f>>3];M[h>>3]=j*M[g>>3];zb[H[H[a>>2]+396>>2]](a,b,h+24|0,h+16|0,e,h+8|0,h)|0;xb=h+32|0}function o1(a,b){a=a|0;b=b|0;var c=0;a=H[a+4>>2];if(a){c=H[a+68>>2];if(c){Kb(c);H[a+68>>2]=0}c=Qb(64);H[c+56>>2]=0;H[c+60>>2]=0;H[a+68>>2]=c;H[c+4>>2]=H[a+12>>2];M[c+8>>3]=M[a+16>>3];M[c+16>>3]=M[a+24>>3];M[c+24>>3]=M[a+32>>3];M[c+32>>3]=M[a+40>>3];M[c+40>>3]=M[a+48>>3];M[c+48>>3]=M[a+56>>3];a=I[a+64|0];H[c>>2]=b;F[c+56|0]=a}}function Jga(a){a=a|0;var b=0,c=0;b=H[a+24>>2];b=b?b-20|0:0;c=H[b+48>>2];c=zb[H[H[c>>2]+12>>2]](c,H[b+52>>2],1,4096,0,0)|0;if(!c){if(I[b+56|0]){c=H[a>>2];H[c+20>>2]=43;zb[H[c>>2]](a)}c=H[a>>2];H[c+20>>2]=123;zb[H[c+4>>2]](a,-1);F[H[b+52>>2]]=255;F[H[b+52>>2]+1|0]=217;c=2}F[b+56|0]=0;H[b+24>>2]=c;H[b+20>>2]=H[b+52>>2];return 1}function eo(a){a=a|0;var b=0;b=xb-16|0;H[b+12>>2]=a;H[a+60>>2]=2333;H[a+64>>2]=0;H[a+52>>2]=1667;H[a+56>>2]=275;H[a+44>>2]=1e3;H[a+48>>2]=275;H[a+36>>2]=500;H[a+40>>2]=400;F[a+32|0]=1;H[a+28>>2]=1;b=H[a+8>>2]^(b+8^b+12);b=b>>>10^b^b>>>20;H[a+68>>2]=b;a:{if((b|0)<0){b=0-b|0}else{if(b){break a}b=123456789}H[a+68>>2]=b}return 0}function SI(a){a=a|0;var b=0,c=0,d=0,e=0;d=xb-16|0;xb=d;c=H[a>>2];b=H[c+320>>2];c=Vd(H[H[c+96>>2]+4>>2],10070);a:{if(!c|!b){break a}b=H[b>>2];if(!b){break a}c=zb[b|0](c)|0;if(!c){break a}b=H[a>>2];e=zb[H[c>>2]](H[b+100>>2],H[b+304>>2]+N(H[b+4>>2],252)|0,d+12|0)|0;if(e){break a}H[H[a+40>>2]>>2]=H[d+12>>2]}xb=d+16|0;return e|0}function Ph(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+26>>1];a:{if((d|0)==8){a=I[H[a+56>>2]+(N(H[a+52>>2],c)+b|0)|0];break a}c=I[H[a+56>>2]+(N(H[a+52>>2],c)+(N(b,d)>>3)|0)|0];a=0;b:{switch(d-1|0){case 3:a=4-((b|0)%2<<2)&252;a=(c&15<>>a|0;break a;case 0:break b;default:break a}}a=7-((b|0)%8|0)|0;a=(c&1<>>a|0}return a&255}function Nia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H[b>>2];f=H[b+4>>2];d=H[b+8>>2];a:{if((f|0)>(d+3|0)){e=c;break a}if(!c){e=Tb(800);H[b+4>>2]=200;H[b>>2]=e;d=0;break a}e=Tb(f<<3);d=Ob(e,c,d<<2);Kb(c);H[b+4>>2]=f<<1;H[b>>2]=d;d=H[b+8>>2]}c=(d<<2)+e|0;H[c>>2]=0;H[c+4>>2]=H[a>>2];a=H[a+4>>2];H[b+8>>2]=d+3;H[c+8>>2]=a;return 0}function Mka(a,b){a=a|0;b=b|0;var c=0,d=0;c=I[a+6|0]|I[a+7|0]<<8;if(c){d=((c<<8|c>>>8)&65535)+a|0}else{d=163632}c=H[b+100>>2];if((Gc(d,H[H[c+80>>2]+N(H[c+64>>2],20)>>2])|0)!=-1){d=b;b=I[a+2|0]|I[a+3|0]<<8;b=(b<<8|b>>>8)&65535;c=I[a+4|0]|I[a+5|0]<<8;a=fl(d,b,a+8|0,(c<<8|c>>>8)&65535,((b<<1)+a|0)+6|0,732,a)}else{a=0}return a|0}function Mia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H[b>>2];f=H[b+4>>2];d=H[b+8>>2];a:{if((f|0)>(d+3|0)){e=c;break a}if(!c){e=Tb(800);H[b+4>>2]=200;H[b>>2]=e;d=0;break a}e=Tb(f<<3);d=Ob(e,c,d<<2);Kb(c);H[b+4>>2]=f<<1;H[b>>2]=d;d=H[b+8>>2]}c=(d<<2)+e|0;H[c>>2]=1;H[c+4>>2]=H[a>>2];a=H[a+4>>2];H[b+8>>2]=d+3;H[c+8>>2]=a;return 0}function IA(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;H[b>>2]=0;a:{b:{c:{d:{c=H[a+8>>2];if(K[a+4>>2]<=c+1>>>0){break d}e=H[a+20>>2];e:{if(e){if((zb[e|0](a,c,d+14|0,2)|0)!=2){break d}c=H[a+8>>2];b=d+14|0;break e}b=H[a>>2];if(!b){break c}b=b+c|0}f=I[b|0]|I[b+1|0]<<8;break b}H[b>>2]=85;break a}f=0}H[a+8>>2]=c+2}xb=d+16|0;return f}function Bha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;H[197455]=0;H[d>>2]=247480;H[d+4>>2]=b;F[d+8|0]=!b;a=ca(951,a|0,d|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){H[d>>2]=247480;b=H[d+4>>2];if(!(!b|!I[d+8|0])){lf(b)}xb=d+16|0;return a|0}a=$()|0;_()|0;H[d>>2]=247480;b=H[d+4>>2];if(!(!b|!I[d+8|0])){lf(b)}ea(a|0);X()} +function xha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;H[197455]=0;H[d>>2]=247480;H[d+4>>2]=b;F[d+8|0]=!b;a=ca(955,a|0,d|0,c|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){H[d>>2]=247480;b=H[d+4>>2];if(!(!b|!I[d+8|0])){lf(b)}xb=d+16|0;return a|0}a=$()|0;_()|0;H[d>>2]=247480;b=H[d+4>>2];if(!(!b|!I[d+8|0])){lf(b)}ea(a|0);X()}function Yt(a,b,c){var d=0,e=0,f=0;e=xb-16|0;xb=e;d=bc(a,0);a:{if(d){break a}f=nc(a,e+12|0);d=H[e+12>>2];if(d){break a}b:{if((f+32767&65535)>>>0<2){Pe(a,e+12|0);d=H[e+12>>2];if(d){break a}if((f|0)==32769){break b}}d=bc(a,0);if(d){break a}}d=Jc(a,c);if(d){break a}b=md(H[a+32>>2],b,c);wc(a);d=((b|0)!=0)<<1}xb=e+16|0;return d}function Efa(a){a=a|0;var b=0,c=0;a:{b=H[a+436>>2];b:{if(!b){if(!$q(a)){break b}b=H[a+436>>2]}c=H[H[a+460>>2]+20>>2];if((c+208|0)==(b|0)){b=H[a>>2];H[b+24>>2]=c;H[b+20>>2]=100;zb[H[H[a>>2]+4>>2]](a,3);H[a+436>>2]=0;break a}if(zb[H[H[a+24>>2]+20>>2]](a,c)|0){break a}}return 0}a=H[a+460>>2];H[a+20>>2]=H[a+20>>2]+1&7;return 1}function DB(a){var b=0,c=0,d=0,e=0;e=xb-16|0;xb=e;c=H[a+100>>2];b=1;a:{if((c|0)==-1){break a}d=H[a+60>>2];b=0;if(d>>>0>=0-c>>>0){break a}b=((c+d|0)-1>>>0)/(c>>>0)|0}b:{if(J[a+138>>1]!=2){break b}d=J[a+98>>1];b=gma(d,0,b,0);c=yb;if(!d|!c){break b}b=H[a>>2];a=H[a+628>>2];H[e>>2]=271127;Pb(a,b,274538,e);b=0}xb=e+16|0;return b}function Hga(a){a=a|0;var b=0,c=0,d=0;b=H[a+24>>2];c=H[b+4>>2];a:{if((c|0)==4096){break a}d=H[b+48>>2];if(zb[H[H[d>>2]+16>>2]](d,H[b+52>>2],1,4096-c|0)|0){break a}c=H[a>>2];H[c+20>>2]=38;zb[H[c>>2]](a)}c=H[b+48>>2];zb[H[H[c>>2]+32>>2]](c)|0;b=H[b+48>>2];if(zb[H[H[b>>2]+40>>2]](b)|0){b=H[a>>2];H[b+20>>2]=38;zb[H[b>>2]](a)}}function yW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=6;e=H[a+280>>2];a:{if((e|0)<=0){break a}f=H[a+284>>2];a=0;while(1){b:{h=a;g=fc(H[N(a,12)+f>>2],b);a=a+1|0;if((e|0)<=(a|0)){break b}if(g){continue}}break}if(g){break a}a=N(h,12)+f|0;c:{if(I[a+4|0]){H[c>>2]=1;break c}H[c>>2]=2}H[c+4>>2]=H[a+8>>2];d=0}return d|0}function nM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+10|0;if(c>>>0>K[b+160>>2]){vc(b,8)}d=I[a+3|0]|I[a+2|0]<<8;e=K[b+160>>2]>=d+a>>>0;a=I[a+9|0]|I[a+8|0]<<8;if(!(e&(a<<1)+10>>>0<=d>>>0)){vc(b,8)}if(!(!a|H[b+164>>2]<=0)){while(1){if(K[b+172>>2]<=(I[c+1|0]|I[c|0]<<8)>>>0){vc(b,16)}c=c+2|0;a=a-1|0;if(a){continue}break}}return 0}function OD(a){a=a|0;var b=0,c=0,d=0;b=H[a+8>>2];c=H[a+12>>2];a:{if((b|0)==(c|0)){break a}while(1){d=H[b+12>>2];if(d){Kb(d);H[b+12>>2]=0}b=b+20|0;if((c|0)!=(b|0)){continue}break}b=H[a+8>>2];c=H[a+12>>2];if((b|0)==(c|0)){break a}while(1){d=c-20|0;if(F[c-9|0]<0){Kb(H[d>>2])}c=d;if((c|0)!=(b|0)){continue}break}}H[a+12>>2]=b}function BV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=I[a+11|0];c=d<<24>>24<0?H[a+4>>2]:d;a:{if(!c){break a}d=0;e=Qb((c|0)!=(c&1073741823)?-1:c<<2);H[b>>2]=0;c=I[a+11|0];c=c<<24>>24<0?H[a+4>>2]:c;H[b>>2]=c;if(!c){break a}while(1){f=(d<<2)+e|0,g=H[Ho(a,d)>>2],H[f>>2]=g;d=d+1|0;if(d>>>0>2]){continue}break}}return e|0}function $5(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=H[a+44>>2];c=H[a+24>>2];if(d>>>0>>0){H[a+44>>2]=c;d=c}c=H[a+12>>2];e=-1;a:{if(c>>>0<=K[a+8>>2]){break a}if((b|0)==-1){H[a+16>>2]=d;H[a+12>>2]=c-4;return 0}if(!(I[a+48|0]&16)){e=-1;if(H[c-4>>2]!=(b|0)){break a}}H[a+16>>2]=d;d=a;a=c-4|0;H[d+12>>2]=a;H[a>>2]=b;e=b}return e|0}function qc(a,b,c,d,e,f,g){var h=0;h=e;d=(d|0)<255?d:255;e=((d|0)>0?d:0)<<2;b=H[a+20>>2]+((b>>>0<255?b:255)<<2)|0;d=H[a>>2];H[h>>2]=I[(H[e+H[a+4>>2]>>2]+H[b>>2]|0)+d|0];c=(c|0)<255?c:255;c=((c|0)>0?c:0)<<2;H[f>>2]=I[d+(H[b>>2]+(H[e+H[a+12>>2]>>2]+H[c+H[a+16>>2]>>2]>>16)|0)|0];H[g>>2]=I[d+(H[c+H[a+8>>2]>>2]+H[b>>2]|0)|0]}function vI(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=H[a+160>>2];if(!b){break a}c=H[b+4>>2];a=H[c+84>>2];if(!a){break a}d=H[H[c+96>>2]+8>>2];if((a|0)!=(b|0)){while(1){e=H[a+8>>2];if(!e){break a}f=a;a=e;if((b|0)!=(a|0)){continue}break}}H[(f?f+8|0:c+84|0)>>2]=H[b+8>>2];a=H[b+20>>2];if(a){zb[a|0](b)}hn(b);zb[H[d+8>>2]](d,b)}}function nJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=H[a+532>>2];if(!c){return 6}e=H[c+4>>2];H[b>>2]=e;H[b+4>>2]=H[c>>2];if(e){a=0;while(1){d=N(a,12);f=d+b|0;H[f+8>>2]=H[((a<<2)+c|0)+8>>2];d=c+d|0;g=H[d+92>>2];H[f+12>>2]=H[g>>2];H[f+16>>2]=H[((I[d+88|0]<<2)+g|0)-4>>2];a=a+1|0;if((e|0)!=(a|0)){continue}break}}return 0}function fj(a){var b=0,c=0,d=0,e=0;while(1){b=a;a=b+1|0;c=F[b|0];if((c|0)==32|c-9>>>0<5){continue}break}a:{b:{c:{c=F[b|0];switch(c-43|0){case 0:break b;case 2:break c;default:break a}}e=1}c=F[a|0];b=a}if(c-48>>>0<10){while(1){d=(N(d,10)-F[b|0]|0)+48|0;a=F[b+1|0];b=b+1|0;if(a-48>>>0<10){continue}break}}return e?d:0-d|0}function fo(a,b){var c=0,d=0;c=bc(b,H[a>>2]);a:{if(c){break a}c=Ic(b,103616,a+4|0);if(c){break a}c=2;d=J[a+4>>1];if((d|256)!=768|K[a+8>>2]<((d|0)==768?148:118)>>>0){break a}if((d|0)==512){H[a+140>>2]=0;H[a+132>>2]=0;H[a+136>>2]=0}if(F[a+72|0]&1){break a}c=bc(b,H[a>>2]);if(c){break a}c=Ke(b,H[a+8>>2],a+160|0)}return c}function f9(a){a=a|0;var b=0,c=0,d=0;b=1;d=H[a+584>>2];if(!(F[d+4|0]&1)){c=12;if(F[d+28|0]&1){c=13;b=!H[d+92>>2]|2}Tf(a,b,c);Tf(a,b,c);Tf(a,b,c);Tf(a,b,c);Tf(a,b,c);Tf(a,b,c);if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}b=d- -64|0;c=H[b>>2];d=H[a+604>>2];H[a+604>>2]=d+1;F[d|0]=c;H[a+608>>2]=H[a+608>>2]+1;H[b>>2]=0;H[b+4>>2]=8}}function zj(a,b){var c=0,d=0,e=0;c=xb-32|0;xb=c;H[c+24>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;H[c+4>>2]=c+8;d=H[a+664>>2];a:{if(!(!d|H[d>>2]!=(b|0))){break a}d=0;e=H[a+656>>2];if(!e){break a}H[c+16>>2]=0;H[c+8>>2]=b;b=Ap(c+4|0,e,H[a+660>>2]);if(b){d=H[b>>2]}else{d=0}H[a+664>>2]=d}xb=c+32|0;return d}function uu(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;h=xb-16|0;xb=h;H[h+12>>2]=0;g=10;j=H[c>>2];k=j+e|0;a:{if(k>>>0>31457280){break a}i=H[a>>2];g=H[b>>2];if(g>>>0>>0){i=Ub(f,1,g,k,i,h+12|0);g=H[h+12>>2];if(g){break a}H[b>>2]=H[c>>2]+e;j=H[c>>2]}Ob(i+j|0,d,e);H[c>>2]=H[c>>2]+e;H[a>>2]=i;g=H[h+12>>2]}xb=h+16|0;return g}function tca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=rl(b,c);a:{if(d){break a}a=H[b+24>>2];if((a|0)<=0){break a}b=H[b+28>>2];f=b+N(a,40)|0;a=H[c+4>>2];c=H[c+8>>2];while(1){H[a>>2]=H[b+16>>2];H[a+4>>2]=H[b+20>>2];e=J[b>>1];F[c|0]=e&1?0:e&2?2:1;c=c+1|0;a=a+8|0;b=b+40|0;if(f>>>0>b>>>0){continue}break}}return d|0}function TR(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;g=xb-32|0;xb=g;h=H[193327];H[g+24>>2]=H[193326];H[g+28>>2]=h;h=H[193325];H[g+16>>2]=H[193324];H[g+20>>2]=h;h=H[193323];H[g+8>>2]=H[193322];H[g+12>>2]=h;h=H[193321];H[g>>2]=H[193320];H[g+4>>2]=h;h=a;a=g+32|0;b=Fg(h,b,c,d,e,f,g,a);xb=a;return b|0}function so(a,b,c){var d=0,e=0,f=0,g=0;f=6;d=H[b>>2];a:{if(d+5>>>0>c>>>0){break a}e=H[a+12>>2];G[e>>1]=I[d|0];G[e+2>>1]=I[d+1|0];G[e+4>>1]=F[d+2|0];G[e+6>>1]=F[d+3|0];G[e+8>>1]=I[d+4|0];g=c;c=d+8|0;if(g>>>0>>0){break a}G[e+10>>1]=F[d+5|0];G[e+12>>1]=F[d+6|0];G[e+14>>1]=I[d+7|0];F[a+16|0]=1;H[b>>2]=c;f=0}return f}function qga(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;f=0;a:{if(!b){break a}h=H[a+4>>2];if(!h){break a}e=H[a+16>>2];g=H[a+8>>2];if((e|0)>=(g|0)){F[a+24|0]=1;return 0}d=N(c,d);if(!d){break a}if((d+e|0)>(g|0)){F[a+24|0]=1;d=g-e|0}Ob(b,e+h|0,d);H[a+16>>2]=H[a+16>>2]+d;f=(d>>>0)/(c>>>0)|0}return f|0}function fT(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=xb-16|0;xb=b;be(a,H[a+8>>2]);e=H[a+8>>2];d=H[a>>2];H[b+12>>2]=d;f=gg(b+12|0,e,10);c=H[b+12>>2];a:{if((d|0)==(c|0)){break a}if(!(I[c|0]!=35|c>>>0>=e>>>0)){d=c+1|0;H[b+12>>2]=d;f=gg(b+12|0,e,f);c=H[b+12>>2];if((d|0)==(c|0)){break a}}H[a>>2]=c;g=f}xb=b+16|0;return g|0}function Qja(a){a=a|0;a=a+24|0;Pc(a,0,761);lc(a,1819239276,1,1);lc(a,1667460464,1,1);Pc(a,0,762);lc(a,1919969382,9,1);Pc(a,0,0);lc(a,1886545254,9,1);Pc(a,0,0);lc(a,1651275622,9,1);Pc(a,0,0);lc(a,1886614630,9,1);Pc(a,0,0);Pc(a,0,763);lc(a,1886545267,9,1);lc(a,1633842803,9,1);lc(a,1651275635,9,1);lc(a,1886614643,9,1)}function Me(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;H[c+8>>2]=a;e=H[b+20>>2];a=e+((zb[H[b+12>>2]](c+8|0)>>>0)%K[b+4>>2]<<2)|0;d=H[a>>2];a:{if(!d){break a}while(1){if(zb[H[b+16>>2]](d,c+8|0)|0){break a}a=a-4|0;if(e>>>0>a>>>0){a=((H[b+4>>2]<<2)+e|0)-4|0}d=H[a>>2];if(d){continue}break}}xb=c+16|0;a=H[a>>2];return a?a+4|0:0}function Yr(a){var b=0,c=0,d=0;b=xb-48|0;xb=b;d=oc(1,4);a:{if(!d){break a}H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;H[b+20>>2]=0;F[b+24|0]=0;H[b+28>>2]=0;H[b+32>>2]=0;H[b>>2]=0;H[b+4>>2]=0;c=kd(a);F[b+40|0]=1;H[b+36>>2]=c;c=Dt(b,dd(a,1195656518));H[d>>2]=c;if(!OF(b,c,a)){break a}Wb(c);H[d>>2]=163632}xb=b+48|0;return d}function Eea(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;b=H[a+316>>2];if((b|0)>0){g=H[d>>2];while(1){d=H[a+112>>2];if((d|0)>0){e=f<<2;b=H[e+g>>2];h=d+b|0;d=H[c+e>>2];while(1){e=I[d|0];F[b+1|0]=e;F[b|0]=e;d=d+1|0;b=b+2|0;if(h>>>0>b>>>0){continue}break}b=H[a+316>>2]}f=f+1|0;if((f|0)<(b|0)){continue}break}}}function gia(a){a=a|0;var b=0,c=0,d=0;a:{if(a){H[197455]=0;OD(a);b=H[197455];H[197455]=0;if((b|0)==1){break a}c=H[a+8>>2];if(c){d=H[a+12>>2];if((d|0)==(c|0)){b=c}else{while(1){b=d-20|0;if(F[d-9|0]<0){Kb(H[b>>2])}d=b;if((b|0)!=(c|0)){continue}break}b=H[a+8>>2]}H[a+12>>2]=c;Kb(b)}Kb(a)}return}ha(0)|0;_()|0;Zb();X()}function Rfa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=xb-16|0;xb=a;zb[H[H[b>>2]+20>>2]](b,c,0)|0;F[a+15|0]=0;c=0;a:{while(1){d=-1;if(!(zb[H[H[b>>2]+12>>2]](b,a+15|0,1,1,0,0)|0)){break a}d=c&255;c=I[a+15|0];if(d|(c|0)!=44){continue}break}zb[H[H[b>>2]+20>>2]](b,-1,1)|0;d=zb[H[H[b>>2]+24>>2]](b)|0}b=d;xb=a+16|0;return b|0}function v4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;H[d+12>>2]=32;H[d+8>>2]=44;H[a+8>>2]=H[a+8>>2]+32;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],d+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);Lb(H[a+4>>2],c,4);Lb(H[a+4>>2],c+4|0,4);xb=d+16|0}function oH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;b=xb-16|0;xb=b;H[b+12>>2]=c;e=H[a+80>>2];f=H[e+168>>2];a:{if((f|0)!=H[195986]){a=zb[f|0](a,H[a+84>>2],1,b+12|0,0,d,0,H[e+24>>2])|0;break a}a=H[a+12>>2];H[d>>2]=0;e=a;f=H[a+84>>2];a=H[a+80>>2];a=zb[H[a+164>>2]](e,f,c,d,H[a+20>>2])|0}xb=b+16|0;return a|0}function Lh(a,b,c){var d=0,e=0;e=b-1|0;a:{if(I[a+402|0]==8){b:{if(e>>>0>253){break b}d=T(Kd(+(b>>>0)/255,+(c|0)*1e-5)*255+.5);if(d<4294967296&d>=0){b=~~d>>>0;break b}b=0}b=b&255;break a}if(e>>>0>65533){break a}d=T(Kd(+(b>>>0)/65535,+(c|0)*1e-5)*65535+.5);if(d<4294967296&d>=0){b=~~d>>>0;break a}b=0}return b&65535}function u4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;H[d+12>>2]=20;H[d+8>>2]=15;H[a+8>>2]=H[a+8>>2]+20;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],d+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],c,1);Lb(H[a+4>>2],c+1|0,1);Lb(H[a+4>>2],c+2|0,1);Lb(H[a+4>>2],c+3|0,1);xb=d+16|0}function eha(a){a=a|0;var b=0,c=0,d=0,e=0;e=H[a+60>>2];a:{if(e){break a}b=H[a+936>>2];if(!b){break a}c=H[a+356>>2];b:{if((c|0)>0){while(1){b=H[(d<<2)+b>>2];if(b){zb[H[H[b>>2]+4>>2]](b);c=H[a+356>>2]}b=H[a+936>>2];d=d+1|0;if((d|0)<(c|0)){continue}break}if(!b){break b}}Kb(b)}H[a+356>>2]=0;H[a+936>>2]=0}return!e|0}function bba(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=xb-16|0;xb=d;c=H[a+460>>2];H[d+12>>2]=c;a:{b:{if(!b){e=b;break b}e=b;if(!c){break b}while(1){c=0;if(!IB(a,d+12|0)){break a}c=H[d+12>>2];e=e-1|0;if(!(e&65535)){break b}if(c){continue}break}}H[a+20>>2]=c;G[a+32>>1]=0;G[a+476>>1]=(e^-1)+b;c=tB(a)}xb=d+16|0;return c|0}function Ica(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=H[a+420>>2];if(H[a+236>>2]){d=H[c+68>>2];if(!d){Sk(a,H[c+72>>2]);d=H[a+236>>2];H[c+72>>2]=H[c+72>>2]+1&7}H[c+68>>2]=d-1}if(H[a+316>>2]>0){d=c+204|0;e=H[a+372>>2];c=0;while(1){Lc(a,d,G[H[(c<<2)+b>>2]>>1]>>>e&1);c=c+1|0;if((c|0)>2]){continue}break}}return 1}function uB(a,b){var c=0,d=0;a:{if(!a|!b){break a}d=J[a+2>>1];if((d|0)!=J[b+2>>1]){break a}c=J[a>>1];if((a|0)==(b|0)|(c|0)!=J[b>>1]){break a}if(d){Ob(H[b+4>>2],H[a+4>>2],d<<16>>16<<3);Ob(H[b+8>>2],H[a+8>>2],G[a+2>>1]);c=J[a>>1]}if(c){Ob(H[b+12>>2],H[a+12>>2],c<<16>>16<<1)}H[b+16>>2]=H[a+16>>2]&-2|H[b+16>>2]&1}}function qm(a,b){var c=0,d=0,e=0;d=xb-16|0;xb=d;F[d+15|0]=b;c=H[a+16>>2];a:{if(!c){c=-1;if(yp(a)){break a}c=H[a+16>>2]}b:{e=H[a+20>>2];if((c|0)==(e|0)){break b}c=b&255;if((c|0)==H[a+80>>2]){break b}H[a+20>>2]=e+1;F[e|0]=b;break a}c=-1;if((zb[H[a+36>>2]](a,d+15|0,1)|0)!=1){break a}c=I[d+15|0]}xb=d+16|0;return c}function b9(a,b){a=a|0;b=b|0;var c=0;b=xb-16|0;xb=b;c=0;a:{if(!Zm(a)){break a}if(!og(a,294432,1)){Pb(H[a+628>>2],272162,272649,0);c=0;break a}H[a+556>>2]=1519;H[a+548>>2]=1519;H[a+540>>2]=1519;H[a+560>>2]=1520;H[a+552>>2]=1520;H[a+544>>2]=1520;H[a+536>>2]=1521;H[b>>2]=1;c=rc(a,65536,b)}a=c;xb=b+16|0;return a|0}function UX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;ly(H[a+76>>2],b,1);e=H[c>>2];c=H[c+4>>2];if((e|0)!=(c|0)){while(1){ky(H[a+76>>2],e,e+12|0);e=e+24|0;if((c|0)!=(e|0)){continue}break}}c=H[a+76>>2];e=I[d+11|0];if(!(e<<24>>24<0?H[d+4>>2]:e)){sm(c,b,1,1);return}sm(c,b,1,0);my(H[a+76>>2],d);sm(H[a+76>>2],b,0,0)}function Nj(a){var b=0,c=0,d=0;c=H[a+28>>2];ue(c);b=H[c+20>>2];d=H[a+16>>2];b=b>>>0>>0?b:d;a:{if(!b){break a}Ob(H[a+12>>2],H[c+16>>2],b);H[a+12>>2]=b+H[a+12>>2];H[c+16>>2]=b+H[c+16>>2];H[a+20>>2]=b+H[a+20>>2];H[a+16>>2]=H[a+16>>2]-b;a=H[c+20>>2];H[c+20>>2]=a-b;if((a|0)!=(b|0)){break a}H[c+16>>2]=H[c+8>>2]}}function NK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;f=H[a+16>>2];c=b;b=J[a+8>>1];c=Ub(c,1,0,b+1|0,0,d+12|0);xb=d+16|0;if(H[d+12>>2]){a=e}else{a=0;a:{if(!b){break a}while(1){e=F[f|0];if(!e){break a}F[a+c|0]=(e|0)<32?63:e;f=f+1|0;a=a+1|0;if((b|0)!=(a|0)){continue}break}a=b}F[a+c|0]=0;a=c}return a|0}function mda(a){a=a|0;var b=0;b=H[a+388>>2];zb[H[H[a+420>>2]+8>>2]](a);a:{b:{switch(H[b+20>>2]){case 0:H[b+20>>2]=2;if(H[a+216>>2]){break a}H[b+32>>2]=H[b+32>>2]+1;break a;case 1:H[b+20>>2]=2;break a;case 2:break b;default:break a}}if(H[a+216>>2]){H[b+20>>2]=1}H[b+32>>2]=H[b+32>>2]+1}H[b+24>>2]=H[b+24>>2]+1}function cB(a,b){var c=0,d=0,e=0;c=J[a+1148>>1];if(!c){if(!Fd(a)){return 0}c=J[a+1148>>1]}d=H[a+1152>>2];e=I[d|0];G[a+1148>>1]=c-1;c=d+1|0;H[a+1152>>2]=c;G[b>>1]=e<<8;d=J[a+1148>>1];if(!d){if(!Fd(a)){return 0}d=J[a+1148>>1];c=H[a+1152>>2]}e=I[c|0];G[a+1148>>1]=d-1;H[a+1152>>2]=c+1;G[b>>1]=e|J[b>>1];return 1}function Rm(a){a=a|0;var b=0,c=0;b=417328;H[a>>2]=417328;a:{if(I[a+28|0]){break a}c=H[a+24>>2];if(!c){break a}Kb(c);H[a+24>>2]=0;b=H[a>>2]}H[a+4>>2]=0;H[a+8>>2]=0;F[a+29|0]=0;H[a+12>>2]=0;H[a+16>>2]=0;b=H[b+12>>2];H[197455]=0;ia(b|0,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){return a|0}ha(0)|0;_()|0;Zb();X()}function HJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=H[a+16>>2];if(d){g=H[a+20>>2];a=d>>>1|0;while(1){c=d+f>>>1|0;c=a>>>0>=d>>>0?c:a>>>0>>0?c:a;e=H[(c<<3)+g>>2];if((e|0)==(b|0)){return J[((c<<3)+g|0)+4>>1]+1&65535}a=(b+c|0)-e|0;e=b>>>0>>0;f=e?f:c+1|0;d=e?c:d;if(f>>>0>>0){continue}break}}return 0}function Xja(a){a=a|0;a=a+24|0;Pc(a,0,758);Pc(a,0,759);lc(a,1819239276,1,1);lc(a,1667460464,1,1);lc(a,1886545254,12,1);lc(a,1651275622,12,1);lc(a,1633842790,12,1);lc(a,1886614630,12,1);lc(a,1667654002,12,1);Pc(a,0,760);lc(a,1886545267,13,1);lc(a,1633842803,13,1);lc(a,1651275635,13,1);lc(a,1886614643,13,1)}function Waa(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=J[a+26>>1];c=a<<1;a=N(a,g)<<1;d=h<<2;while(1){f=f-1|0;h=e;while(1){H[b>>2]=I[i+1|0]|I[i+3|0]<<8|I[i+5|0]<<16|I[i+7|0]<<24;b=b+4|0;i=c+i|0;h=h-1|0;if(h){continue}break}i=a+i|0;b=b+d|0;if(f){continue}break}}}function pD(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=H[a+928>>2];if(!c){return 0}d=H[a+16>>2];e=Tb(d);if(e){b=H[a+20>>2];if((b|0)>=2){b=N(b-1|0,d)+c|0;while(1){g=Ob(e,b,d);b=Ob(b,c,d);c=Ob(c,g,H[a+16>>2]);d=H[a+16>>2];c=c+d|0;b=b-d|0;f=f+1|0;if((f|0)<(H[a+20>>2]/2|0)){continue}break}}Kb(e)}return(e|0)!=0|0}function MP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;H[e>>2]=c;a=Po(f+12|0,0,b,H[a+8>>2]);c=2;a:{if(a+1>>>0<2){break a}b=a-1|0;c=1;if(b>>>0>d-H[e>>2]>>>0){break a}c=f+12|0;while(1){if(b){a=I[c|0];d=H[e>>2];H[e>>2]=d+1;F[d|0]=a;b=b-1|0;c=c+1|0;continue}break}c=0}xb=f+16|0;return c|0}function v_(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=xb-32|0;xb=c;d=H[a+208>>2];if(d){zb[H[H[d>>2]+348>>2]](d,b)}if(H[b+48>>2]){d=H[b+16>>2];f=M[b+24>>3];M[c+24>>3]=M[b+32>>3];e=H[c+28>>2];H[c+8>>2]=H[c+24>>2];H[c+12>>2]=e;M[c+16>>3]=f;e=H[c+20>>2];H[c>>2]=H[c+16>>2];H[c+4>>2]=e;Cz(a,b+40|0,d,c)}xb=c+32|0}function r9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-16|0;xb=d;e=H[a+608>>2];a:{if((e|0)<(c|0)){b=H[a>>2];c=H[a+628>>2];H[d>>2]=H[a+472>>2];Pb(c,b,270790,d);a=0;break a}f=H[a+604>>2];if((f|0)!=(b|0)){Kc(b,f,c);e=H[a+608>>2];b=H[a+604>>2]}H[a+608>>2]=e-c;H[a+604>>2]=b+c;a=1}xb=d+16|0;return a|0}function mh(a,b,c,d){var e=0;a:{if(!(d&2048)){break a}e=d&74;if(!c|((e|0)==8|(e|0)==64)){break a}F[a|0]=43;a=a+1|0}if(d&512){F[a|0]=35;a=a+1|0}while(1){e=I[b|0];if(e){F[a|0]=e;a=a+1|0;b=b+1|0;continue}break}e=d&74;b=111;b:{if((e|0)==64){break b}b=d&16384?88:120;if((e|0)==8){break b}b=c?100:117}F[a|0]=b}function Uaa(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=J[a+26>>1];c=a<<1;a=N(a,g)<<1;d=h<<2;while(1){f=f-1|0;h=e;while(1){H[b>>2]=I[i+1|0]|I[i+3|0]<<8|I[i+5|0]<<16|-16777216;b=b+4|0;i=c+i|0;h=h-1|0;if(h){continue}break}i=a+i|0;b=b+d|0;if(f){continue}break}}}function J6(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=xb-16|0;xb=d;if(!I[a+64|0]){zb[H[H[a>>2]+28>>2]](a);e=H[a+8>>2];zb[H[H[e>>2]+60>>2]](d,e);zb[H[H[a>>2]+32>>2]](a,M[d>>3],M[d+8>>3])}M[d>>3]=M[a+48>>3]*b+M[a+16>>3];M[d+8>>3]=M[a+56>>3]*c+M[a+24>>3];a=H[a+4>>2];zb[H[H[a>>2]+320>>2]](a,d,d+8|0)|0;xb=d+16|0}function BJ(a){a=a|0;var b=0,c=0,d=0,e=0;d=xb-16|0;xb=d;b=H[a>>2];c=H[b+552>>2];b=Vd(H[H[b+96>>2]+4>>2],10580);a:{if(!b|!c){break a}c=H[c>>2];if(!c){break a}c=zb[c|0](b)|0;if(!c){break a}b=H[a>>2];e=zb[H[c>>2]](H[b+100>>2],b+168|0,d+12|0)|0;if(e){break a}H[H[a+40>>2]>>2]=H[d+12>>2]}xb=d+16|0;return e|0}function bY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a=(a|0)/-4|0;if(b){f=H[d>>2]+N(a,H[d+4>>2])|0;while(1){b=b-1|0;if(J[c+2>>1]){g=I[c+4|0]+8>>>4|0;d=0;while(1){e=f+((G[c>>1]+d|0)/4|0)|0;a=I[e|0]+g|0;F[e|0]=a-(a>>>8|0);d=d+1|0;if(d>>>0>1]){continue}break}}c=c+6|0;if(b){continue}break}}}function pC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(!(I[b+8|0]&16)|(!a|!b)){break a}b:{if(I[b+25|0]==3){if(c){H[c>>2]=H[b+76>>2];f=16}else{f=0}if(!e){break b}H[e>>2]=b+80;break b}if(e){H[e>>2]=b+80;f=16}else{f=0}if(!c){break b}H[c>>2]=0}if(!d){break a}H[d>>2]=J[b+22>>1];f=16}return f|0}function e1(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+108>>2];if(b){H[a+108>>2]=H[a+80>>2];H[a+80>>2]=b;b=H[a+92>>2];H[a+92>>2]=H[a+112>>2];c=I[a+104|0];F[a+104|0]=I[a+124|0];H[a+112>>2]=b;b=H[a+96>>2];d=H[a+100>>2];e=H[a+120>>2];H[a+96>>2]=H[a+116>>2];H[a+100>>2]=e;H[a+116>>2]=b;H[a+120>>2]=d;F[a+124|0]=c}}function Hi(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+4>>2];c=H[a+44>>2];a=!b|!c;if(a){a=0}else{d=1;b=a?0:b+40|0;a:{if(I[b|0]){break a}a=0;while(1){e=b+(a<<2)|0;if(I[e+1|0]!=(a|0)|I[e+2|0]!=(a|0)){break a}a=a+1|0;d=c>>>0>a>>>0;if((a|0)==(c|0)){break a}if(I[b+(a<<2)|0]==(a|0)){continue}break}}a=!d}return a|0}function x0(a){a=a|0;var b=0,c=0;c=H[a+28>>2];b=H[a+12>>2];if(b){Bg(b+12|0);H[b+52>>2]=0;H[b+44>>2]=0;H[b+48>>2]=0;H[b+24>>2]=0;H[b+28>>2]=0;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b+16>>2]=0;if(b){zb[H[c+8>>2]](c,b)}H[a+12>>2]=0}if(!H[a+20>>2]){b=H[a>>2];if(b){zb[H[c+8>>2]](c,b)}H[a>>2]=0}}function gv(a,b){var c=0,d=0,e=0;a:{if(b>>>0>255){break a}c=H[a+604>>2];c=zb[H[c+20>>2]](J[H[c+24>>2]+(b<<1)>>1])|0;d=H[a+584>>2];if(!d){break a}e=H[a+580>>2];b=0;while(1){b:{a=H[(b<<2)+e>>2];if(!a|I[a|0]!=I[c|0]){break b}if(fc(a,c)){break b}return b}b=b+1|0;if((d|0)!=(b|0)){continue}break}}return-1}function Dg(a,b){var c=0;c=H[a+8>>2];a:{if(H[a+12>>2]-c>>3>>>0<=b>>>0){a=H[a+4>>2];b=0;if(!a|H[a>>2]){break a}H[a>>2]=130;return 0}b:{c:{d:{a=(b<<3)+c|0;switch(H[a+4>>2]-1|0){case 0:break c;case 1:break d;default:break b}}return H[a>>2]<<16}a=H[a>>2];return((a>>31)+a|0)- -8192>>14}b=H[a>>2]}return b}function Ad(a,b,c){var d=0,e=0,f=0,g=0;f=xb-16|0;xb=f;H[f+12>>2]=c;d=xb-160|0;xb=d;g=d+8|0;Ob(g,767120,144);H[d+52>>2]=a;H[d+28>>2]=a;e=-2-a|0;e=e>>>0>2147483647?2147483647:e;H[d+56>>2]=e;a=a+e|0;H[d+36>>2]=a;H[d+24>>2]=a;Dx(g,b,c);if(e){a=H[d+28>>2];F[a-((a|0)==H[d+24>>2])|0]=0}xb=d+160|0;xb=f+16|0}function bq(a){a=a|0;var b=0;G[a+248>>1]=0;H[a+244>>2]=0;H[a+220>>2]=417328;H[a+224>>2]=0;H[a+228>>2]=0;H[a+232>>2]=0;H[a+236>>2]=0;H[197455]=0;da(1797,a|0,416904)|0;b=H[197455];H[197455]=0;if((b|0)!=1){H[a+216>>2]=0;H[a+220>>2]=416792;H[a>>2]=416544;return a|0}b=$()|0;_()|0;Rm(a+220|0);ea(b|0);X()}function kQ(a){a=a|0;var b=0,c=0,d=0,e=0;e=H[a>>2];b=H[a+8>>2];if(b){c=H[a+16>>2];d=H[c+4>>2];H[b+108>>2]=H[c>>2];H[b+112>>2]=d;H[b+124>>2]=H[c+16>>2];d=H[c+12>>2];H[b+116>>2]=H[c+8>>2];H[b+120>>2]=d}b=H[a+1512>>2];if(b){zb[b|0](H[a+1508>>2]);b=H[a+1508>>2];if(b){zb[H[e+8>>2]](e,b)}H[a+1508>>2]=0}}function gfa(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;g=H[a+4>>2];if((b|0)!=1){h=H[a>>2];H[h+24>>2]=b;H[h+20>>2]=15;zb[H[H[a>>2]>>2]](a)}else{b=1}a=Uk(a,b,128);H[a+40>>2]=0;H[a+32>>2]=c;H[a+12>>2]=f;H[a+8>>2]=d;H[a+4>>2]=e;H[a>>2]=0;H[a+44>>2]=H[g+72>>2];H[g+72>>2]=a;return a|0}function ffa(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;g=H[a+4>>2];if((b|0)!=1){h=H[a>>2];H[h+24>>2]=b;H[h+20>>2]=15;zb[H[H[a>>2]>>2]](a)}else{b=1}a=Uk(a,b,128);H[a+40>>2]=0;H[a+32>>2]=c;H[a+12>>2]=f;H[a+8>>2]=d;H[a+4>>2]=e;H[a>>2]=0;H[a+44>>2]=H[g+68>>2];H[g+68>>2]=a;return a|0}function G7(a){a=a|0;var b=0,c=0,d=0;c=xb-16|0;xb=c;b=H[a+584>>2];if(F[b+124|0]&1){Bg(b- -64|0);H[b+124>>2]=0}a:{if(Cn(b- -64|0,H[b+120>>2],8,15,8,0,273268)){d=H[a+628>>2];a=H[a>>2];H[c+4>>2]=H[b+88>>2];H[c>>2]=a;Pb(d,296506,273459,c);a=0;break a}H[b+124>>2]=H[b+124>>2]|2;a=1}xb=c+16|0;return a|0}function uJ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>65535){break a}e=H[c+288>>2];if((e|0)<=0){break a}f=H[c+292>>2];while(1){c=H[(d<<2)+f>>2];b:{if(!c|I[c|0]!=I[a|0]){break b}if((ac(c)|0)!=(b|0)){break b}if(!gc(c,a,b)){break a}}d=d+1|0;if((e|0)!=(d|0)){continue}break}d=0}return d|0}function ZS(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){d=H[H[a>>2]+100>>2];while(1){b=e<<2;f=b+a|0;c=H[f+16>>2];if(c){b=H[H[(H[H[b+16608>>2]+4>>2]<<2)+16320>>2]+16>>2];if(b){zb[b|0](c);c=H[f+16>>2]}if(c){zb[H[d+8>>2]](d,c)}H[f+16>>2]=0}e=e+1|0;if((e|0)!=87){continue}break}if(a){zb[H[d+8>>2]](d,a)}}}function Tm(a){a=a|0;var b=0,c=0,d=0;H[a+8>>2]=402488;H[a>>2]=401796;c=H[a+112>>2];if(c){b=H[a+116>>2];if((c|0)==(b|0)){d=c}else{while(1){if(F[b-5|0]<0){Kb(H[b-16>>2])}d=b-28|0;if(F[b-17|0]<0){Kb(H[d>>2])}b=d;if((c|0)!=(b|0)){continue}break}d=H[a+112>>2]}H[a+116>>2]=c;Kb(d)}Fm(a+8|0);return a|0}function Gd(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;F[c+15|0]=0;H[b>>2]=0;d=H[a+8>>2];a:{b:{e=H[a+20>>2];c:{if(e){if((zb[e|0](a,d,c+15|0,1)|0)!=1){break b}d=H[a+8>>2];b=c+15|0;break c}if(K[a+4>>2]<=d>>>0){break b}b=H[a>>2]+d|0}b=I[b|0];H[a+8>>2]=d+1;break a}H[b>>2]=85;b=0}xb=c+16|0;return b<<24>>24}function Dga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=H[b+928>>2];a:{if(!e){break a}c=H[a+16>>2];if((c|0)!=H[b+16>>2]){break a}d=H[a+20>>2];if((d|0)!=H[b+20>>2]){break a}d=N(c,d);c=H[a+928>>2];if(!c){c=Tb(d);H[a+928>>2]=c;if(!c){break a}e=H[b+928>>2]}Ob(c,e,d);F[a+388|0]=I[b+388|0];f=1}return f|0}function uE(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+32>>2];if(!(!b|!H[b>>2])){while(1){e=(d<<2)+b|0;a:{if(!H[e+28>>2]){break a}c=N(d,24)+b|0;H[c- -64>>2]=0;Kb(H[c+68>>2]);H[c+68>>2]=0;H[c+60>>2]=0;H[c+64>>2]=0;if(!I[b+4|0]){break a}Kb(H[e+28>>2])}d=d+1|0;if(d>>>0>2]){continue}break}Kb(b)}Kb(a)}function md(a,b,c){var d=0,e=0;a:{b:{if(c>>>0>=4){if((a|b)&3){break b}while(1){if(H[a>>2]!=H[b>>2]){break b}b=b+4|0;a=a+4|0;c=c-4|0;if(c>>>0>3){continue}break}}if(!c){break a}}while(1){d=I[a|0];e=I[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c-1|0;if(c){continue}break a}break}return d-e|0}return 0}function fv(a,b,c){var d=0,e=0;e=xb-16|0;xb=e;d=H[H[a+128>>2]+52>>2];a:{b:{if(!d){d=b<<2;b=d+H[a+432>>2]|0;a=H[d+H[a+428>>2]>>2];break b}b=zb[H[H[d>>2]>>2]](H[d+4>>2],b,e+8|0)|0;if(b){break a}b=e+8|4;a=H[e+8>>2]}d=H[b>>2];H[c+12>>2]=a;b=0;H[c>>2]=0;H[c+4>>2]=a;H[c+8>>2]=a+d}xb=e+16|0;return b}function ff(a,b){var c=0,d=0,e=0,f=0;d=xb-16|0;xb=d;a:{if(!b){b=0;break a}c=b>>31;e=(c^b)-c|0;c=Q(e);He(d,e,0,0,0,c+81|0);e=0+H[d+8>>2]|0;c=(H[d+12>>2]^65536)+(16414-c<<16)|0;c=e>>>0>>0?c+1|0:c;f=b&-2147483648|c;c=H[d+4>>2];b=H[d>>2]}H[a>>2]=b;H[a+4>>2]=c;H[a+8>>2]=e;H[a+12>>2]=f;xb=d+16|0}function Zb(){var a=0;a=H[196237];H[197455]=0;na(a|0);a=H[197455];H[197455]=0;a:{if((a|0)!=1){H[197455]=0;ba(3830,239334,0);a=H[197455];H[197455]=0;if((a|0)!=1){break a}}a=ha(0)|0;_()|0;sa(a|0)|0;H[197455]=0;ba(3830,238734,0);a=H[197455];H[197455]=0;if((a|0)!=1){break a}ha(0)|0;_()|0;Zb()}X()}function SR(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;g=a;h=b;a=zb[H[H[a+8>>2]+20>>2]](a+8|0)|0;a:{if(I[a+11|0]>>>7|0){b=H[a>>2];break a}b=a}i=b;if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}return Fg(g,h,c,d,e,f,i,b+(a<<2)|0)|0}function w_(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-32|0;xb=c;d=H[a+208>>2];if(d){zb[H[H[d>>2]+344>>2]](d,b)}if(H[b+48>>2]){d=H[b+16>>2];H[c+24>>2]=0;H[c+28>>2]=1072693248;H[c+8>>2]=0;H[c+12>>2]=1072693248;H[c+16>>2]=0;H[c+20>>2]=1072693248;H[c>>2]=0;H[c+4>>2]=1072693248;Dz(a,b+40|0,d,c)}xb=c+32|0}function ska(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(!(I[H[a+124>>2]+36|0]&2)){break a}d=H[c+68>>2];if(!d){break a}e=H[c+80>>2];a=0;while(1){b=N(a,20)+e|0;if(I[b+12|0]&64){f=b;b=I[b+14|0];F[f+19|0]=b&16?8:b&1|8;H[c+144>>2]=H[c+144>>2]|16777216}a=a+1|0;if((d|0)!=(a|0)){continue}break}}}function nt(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;d=H[a+36>>2];a:{if(!d){break a}d=H[d+28>>2];b=xn(a+36|0,b,c+12|0,c+8|0);H[c+4>>2]=b;if(b){break a}b=H[c+8>>2];e=pc(d,b+1|0,c+4|0);if(!H[c+4>>2]){if(b){Ob(e,H[c+12>>2],b)}F[b+e|0]=0}if(H[a+68>>2]){break a}nd(H[a+36>>2],c+12|0)}xb=c+16|0;return e}function Lq(a,b){var c=0,d=0;a:{if(!a|!b){break a}c=H[a+644>>2];if((c|0)<=0){break a}d=H[a+648>>2];a=d+N(c,5)|0;while(1){c=a-5|0;if((I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24))==(I[c|0]|I[c+1|0]<<8|(I[c+2|0]<<16|I[c+3|0]<<24))){return I[a-1|0]}a=c;if(c>>>0>d>>>0){continue}break}}return 0}function HV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a=H[a+16>>2];d=J[a+2>>1];a:{if(d+(J[a+6>>1]<<8)>>>0>>0){break a}c=J[a>>1];f=J[a+4>>1];if(c+(f<<8)>>>0>b>>>0){break a}e=b&255;if(e>>>0>>0|d>>>0>>0){break a}g=J[H[a+12>>2]+((e-c|0)+N((d-c|0)+1|0,(b>>>8&65535)-f|0)<<1)>>1]}return g|0}function El(a){var b=0,c=0,d=0,e=0;a:{if(!a){break a}b=F[a|0];e=b&255;if(!e|!(I[(e>>>3|0)+24096|0]>>>(b&7)&1)){break a}while(1){c=65535;if((d&65535)>>>0>6551){break a}c=b+24128|0;b=F[a+1|0];a=a+1|0;d=I[c|0]+N(d,10)|0;c=d;if(I[((b&248)>>>3|0)+24096|0]>>>(b&7)&1){continue}break}}return c&65535}function c5(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=H[b>>2]+16|0;H[e+12>>2]=f;H[e+8>>2]=75;H[a+8>>2]=H[a+8>>2]+f;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],e+8|0,4);Lb(H[a+4>>2],e+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],c,4);b=H[b>>2];if(b){Lb(H[a+4>>2],H[d+4>>2],b)}xb=e+16|0}function aO(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=H[a+12>>2];a:{if((G[d+22>>1]+G[d+58>>1]|0)+1>>>0>K[d+4>>2]){d=ee(d,1,0);if(d){break a}}d=H[a+20>>2];if(I[a+65|0]){a=H[d+8>>2];e=G[d+2>>1];f=H[d+4>>2]+(e<<3)|0;H[f+4>>2]=c>>10;H[f>>2]=b>>10;F[a+e|0]=1}G[d+2>>1]=J[d+2>>1]+1;d=0}return d|0}function Iia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=6;a=H[a+84>>2];a:{if(!a){break a}e=H[a+4>>2];if(!e){break a}d=BD(H[H[e+96>>2]+4>>2],a,b)}if(!d){c=Tb(24);H[c>>2]=H[a+100>>2];H[c+4>>2]=H[a+104>>2];H[c+8>>2]=H[a+80>>2];H[c+12>>2]=H[a+76>>2];H[c+16>>2]=H[a+84>>2];H[c+20>>2]=I[a+94|0]}return c|0}function up(a,b,c,d){var e=0,f=0,g=0,h=0;e=xb-160|0;xb=e;H[e+60>>2]=b;H[e+20>>2]=b;H[e+24>>2]=-1;f=e+16|0;Mf(f,0,0);Kx(e,f,d,1);d=H[e+8>>2];f=H[e+12>>2];g=H[e>>2];h=H[e+4>>2];if(c){H[c>>2]=((H[e+20>>2]+H[e+136>>2]|0)-H[e+60>>2]|0)+b}H[a+8>>2]=d;H[a+12>>2]=f;H[a>>2]=g;H[a+4>>2]=h;xb=e+160|0}function LP(a){a=a|0;var b=0,c=0;b=H[a+8>>2];H[197455]=0;b=la(3560,0,0,4,b|0)|0;c=H[197455];H[197455]=0;a:{if((c|0)==1){break a}if(b){a=-1}else{a=H[a+8>>2];if(!a){return 1}H[197455]=0;a=aa(3561,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}a=(a|0)==1}return a|0}ha(0)|0;_()|0;Zb();X()}function id(a){var b=0;b=H[a+16>>2];if(b){Kb(b)}b=H[a+20>>2];if(b){Kb(b)}H[a>>2]=0;H[a+4>>2]=0;F[a+40|0]=0;H[a+32>>2]=0;H[a+36>>2]=-1074790400;F[a+21|0]=0;F[a+22|0]=0;F[a+23|0]=0;F[a+24|0]=0;F[a+25|0]=0;F[a+26|0]=0;F[a+27|0]=0;F[a+28|0]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0}function c9(a,b){a=a|0;b=b|0;var c=0,d=O(0),e=0;b=H[a+584>>2];H[b+92>>2]=0;H[b+64>>2]=0;H[b+68>>2]=8;c=H[b+96>>2];if(c){Id(c,0,H[b+8>>2])}c=0;if(F[b+28|0]&1){d=L[a+132>>2];e=(J[a+136>>1]==3?O(d*O(2.5399999618530273)):d)>O(150)?4:2;c=e-1|0}H[b+108>>2]=0;H[b+100>>2]=c;H[b+104>>2]=e;return 1}function SQ(a){a=a|0;var b=0,c=0;b=H[a+20>>2];if(!b){return 3}a:{b:{if(I[a+68|0]){a=H[a+12>>2];if((G[a+20>>1]+G[a+56>>1]|0)+1>>>0>K[a+8>>2]){a=ee(a,0,1);if(a){break a}}c=J[b>>1];a=c<<16>>16;if((a|0)<=0){break b}G[(H[b+12>>2]+(c<<1)|0)-2>>1]=J[b+2>>1]-1}a=J[b>>1]}G[b>>1]=a+1;a=0}return a|0}function bn(a,b,c){var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=0;a:{if(!a){break a}f=H[a+92>>2];d=0;if(!f){break a}d=0;if(!H[a+16>>2]){break a}H[e+12>>2]=b;while(1){g=zb[H[H[f+12>>2]+16>>2]](f,e+12|0)|0;if(g>>>0>=K[a+16>>2]){continue}break}d=g?H[e+12>>2]:0}a=d;if(c){H[c>>2]=g}xb=e+16|0;return a}function YR(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;g=a;h=b;a=zb[H[H[a+8>>2]+20>>2]](a+8|0)|0;a:{if(I[a+11|0]>>>7|0){b=H[a>>2];break a}b=a}i=b;if(I[a+11|0]>>>7|0){b=H[a>>2]}else{b=a}if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}return Gg(g,h,c,d,e,f,i,b+a|0)|0}function OG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=xb-16|0;xb=d;e=H[b+24>>2];b=H[b+28>>2];H[197455]=0;c=la(642,e|0,c|0,b|16,d+12|0)|0;e=H[197455];H[197455]=0;if((e|0)!=1){if(!c){c=H[d+12>>2];f=(H[a+24>>2]<0?c:0-c|0)+512>>10}Vc();xb=d+16|0;return f|0}a=$()|0;_()|0;Vc();ea(a|0);X()}function MR(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;c=xb-128|0;xb=c;H[c+12>>2]=c+116;d=a+8|0;a=c+16|0;Cw(d,a,c+12|0,e,f,g);e=a;d=H[c+12>>2];a=xb-16|0;xb=a;H[a+8>>2]=b;while(1){if((d|0)!=(e|0)){hx(a+8|0,F[e|0]);e=e+1|0;continue}break}xb=a+16|0;xb=c+128|0;return H[a+8>>2]} +function CL(a,b){a=a|0;b=b|0;var c=0;a:{switch(b|0){case 0:return a+160|0;case 3:return a+216|0;case 4:return(I[a+292|0]?a+296|0:0)|0;case 2:return(J[a+372>>1]==65535?0:a+372|0)|0;case 5:return a+476|0;case 1:return a+260|0;case 6:c=H[a+568>>2]?a+568|0:0;break;default:break a}}return c|0}function kg(a){var b=0,c=0,d=0,e=0;b=Ox(a,61);if((b|0)==(a|0)){return 0}d=b-a|0;a:{if(I[d+a|0]){break a}b=H[197020];if(!b){break a}c=H[b>>2];if(!c){break a}while(1){b:{if(!gc(a,c,d)){c=H[b>>2]+d|0;if(I[c|0]==61){break b}}c=H[b+4>>2];b=b+4|0;if(c){continue}break a}break}e=c+1|0}return e}function Oh(a){var b=0,c=0;H[a+20>>2]=0;H[a+36>>2]=0;H[a+48>>2]=0;b=H[a+24>>2];H[a+56>>2]=H[a+20>>2];H[a+60>>2]=b;c=H[a+32>>2];b=a- -64|0;H[b>>2]=H[a+28>>2];H[b+4>>2]=c;H[a+88>>2]=H[a+52>>2];b=H[a+40>>2];H[a+72>>2]=H[a+36>>2];H[a+76>>2]=b;b=H[a+48>>2];H[a+80>>2]=H[a+44>>2];H[a+84>>2]=b}function GV(a){a=a|0;var b=0,c=0,d=0,e=0;b=xb-16|0;xb=b;H[b+12>>2]=0;a:{b:{c=I[a+11|0];d=c<<24>>24<0;e=d?H[a>>2]:a;if(e){a=d?H[a+4>>2]:c;if(a){break b}}a=pi(0,239463);break a}ij(e,a,b+12|0,b+8|0,0);c=H[b+12>>2];a=pi(c,239463);if(!c){break a}Kb(c)}if(a){lf(a)}xb=b+16|0;return(a|0)!=0|0}function nE(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+12>>2];a:{if(zb[H[e+24>>2]](e,b,H[e+56>>2])>>>0<=31){e=H[a+12>>2];f=0;if(1<>2]](e,b,H[e+56>>2])&7168){break a}}a=H[a+12>>2];H[d>>2]=0;f=0;if(!b|!c){break a}f=(zb[H[a+36>>2]](a,b,c,d,H[a+68>>2])|0)!=0}return f|0}function sC(a,b){var c=0,d=0;a:{d=I[a+9|0];if(d>>>0>7){break a}c=H[a+4>>2];a=265200;b:{c:{switch(d-1|0){case 1:a=265456;break b;case 0:break b;case 3:break c;default:break a}}a=265712}if((c|0)<=0){break a}c=b+c|0;while(1){F[b|0]=I[I[b|0]+a|0];b=b+1|0;if(c>>>0>b>>>0){continue}break}}}function g9(a){a=a|0;var b=0,c=0;b=H[a+584>>2];H[a+672>>2]=H[b+48>>2];H[a+668>>2]=H[b+52>>2];H[a+676>>2]=H[b+56>>2];c=H[b+80>>2];if(c){Kb(c)}b=H[b+96>>2];if(b){Kb(b)}b=H[a+584>>2];c=H[b+36>>2];if(c){Kb(c);b=H[a+584>>2]}c=H[b+44>>2];if(c){Kb(c);b=H[a+584>>2]}Kb(b);H[a+584>>2]=0;Ai(a)}function dp(a){a=a|0;var b=0,c=0;H[a>>2]=768884;H[197455]=0;ba(3401,a|0,0);b=H[197455];H[197455]=0;if((b|0)!=1){b=H[a+28>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}Kb(H[a+32>>2]);Kb(H[a+36>>2]);Kb(H[a+48>>2]);Kb(H[a+60>>2]);return a|0}ha(0)|0;_()|0;Zb();X()}function Qv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if((a|0)==(b|0)){break a}if(a-b>>>0>=c<<2>>>0){if(!c){break a}d=a;while(1){H[d>>2]=H[b>>2];d=d+4|0;b=b+4|0;c=c-1|0;if(c){continue}break}break a}if(!c){break a}while(1){c=c-1|0;d=c<<2;H[d+a>>2]=H[b+d>>2];if(c){continue}break}}return a|0}function OJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=H[a+736>>2];a:{b:{if(f){if(b){H[b>>2]=H[f>>2]}if(c){H[c>>2]=H[f+4>>2]}if(d){H[d>>2]=H[H[a+736>>2]+8>>2]}if(!e){break a}a=H[H[a+736>>2]+12>>2];break b}if(b){H[b>>2]=0}if(c){H[c>>2]=0}a=0;if(!e){break a}}H[e>>2]=a}return 0}function Ec(a){var b=0,c=0;c=H[a+12>>2];a:{if((c|0)==H[a+8>>2]){a=H[a+4>>2];b=0;if(!a|H[a>>2]){break a}H[a>>2]=161;return 0}b=a;a=c-8|0;H[b+12>>2]=a;b:{switch(H[a+4>>2]-1|0){case 1:return H[a>>2]<<16;case 0:a=H[a>>2];return((a>>31)+a|0)- -8192>>14;default:break b}}b=H[a>>2]}return b}function ac(a){var b=0,c=0,d=0;b=a;a:{if(b&3){while(1){if(!I[b|0]){break a}b=b+1|0;if(b&3){continue}break}}while(1){c=b;b=b+4|0;d=H[c>>2];if(!((d^-1)&d-16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=I[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function ZG(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=O(d);e=O(e);f=O(f);g=O(g);h=O(h);i=O(i);j=j|0;var k=O(0),l=O(0);k=L[b+12>>2];l=L[b+8>>2];L[c+12>>2]=l*L[c+12>>2];L[c+16>>2]=k*L[c+16>>2];a=H[b>>2];zb[H[a+24>>2]](a,H[b+4>>2],c,O(l*d),O(k*e),O(l*f),O(k*g),O(l*h),O(k*i),H[a+44>>2])}function Xx(a){var b=0,c=0,d=0,e=0;b=H[a+40>>2];b=zb[b|0](a,0,0,I[a|0]&128?H[a+20>>2]==H[a+28>>2]?1:2:1)|0;c=yb;a:{if((c|0)<0){break a}e=b;d=H[a+8>>2];if(d){a=a+4|0}else{d=H[a+28>>2];if(!d){break a}a=a+20|0}b=H[a>>2]-d|0;a=e+b|0;c=(b>>31)+c|0;c=a>>>0>>0?c+1|0:c;b=a}yb=c;return b}function DN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(b>>>0>255){break a}b=zb[H[a+20>>2]](J[H[a+16>>2]+(b<<1)>>1])|0;d=H[a+24>>2];if(!d){break a}e=H[a+28>>2];while(1){a=H[(c<<2)+e>>2];if(!(!a|I[a|0]!=I[b|0])){if(!fc(a,b)){break a}}c=c+1|0;if((d|0)!=(c|0)){continue}break}c=0}return c|0}function $U(a){a=a|0;var b=0,c=0,d=0;b=Qb(32);H[b+28>>2]=100;c=b+8|0;H[c>>2]=0;H[c+4>>2]=0;H[b+4>>2]=c;H[197455]=0;c=aa(929,100)|0;d=H[197455];H[197455]=0;if((d|0)==1){a=$()|0;_()|0;Kb(b);ea(a|0);X()}H[b+24>>2]=c;Nb(c,0,100);H[b+16>>2]=0;H[b+20>>2]=0;H[b>>2]=-1;H[a>>2]=b;return a|0}function jn(a,b){var c=0,d=0,e=0;d=H[H[a+4>>2]+100>>2];c=H[a+156>>2];e=H[c+4>>2];a:{if(e&1){c=H[a+88>>2];if(c){zb[H[d+8>>2]](d,c)}H[a+88>>2]=0;break a}H[c+4>>2]=e|1}e=0;c=b?6:0;b:{if((b|0)<=0){break b}d=zb[H[d+4>>2]](d,b)|0;c=64;if(!d){break b}e=Nb(d,0,b);c=0}H[a+88>>2]=e;return c}function Sf(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;g=+g;var h=0,i=0,j=0,k=0;h=+(e|0);i=+(d|0);j=+(c|0);k=+(b|0);b=H[a+156>>2];a:{if(b){if(Je(b,k,j,i,h,f,g)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}a=H[a+208>>2];if(!a){break a}zb[H[H[a>>2]+44>>2]](a,k,j,i,h,f,g)}}function uZ(a){a=a|0;var b=0;H[a>>2]=419196;b=a-4|0;H[b>>2]=419144;a=H[a+24>>2];if(a){zb[H[H[a>>2]+4>>2]](a);H[b+28>>2]=0}a=H[b+48>>2];if(a){Kb(a);H[b+48>>2]=0}a=H[b+56>>2];if(a){zb[H[H[a>>2]+4>>2]](a);H[b+56>>2]=0}a=H[b+60>>2];if(a){zb[H[H[a>>2]+4>>2]](a);H[b+60>>2]=0}return b|0}function OB(a){var b=0,c=0,d=0,e=0;b=xb-256|0;xb=b;a:{if(I[a+276|0]&4){c=Kr(a+212|0);H[a+276>>2]=H[a+276>>2]&-5;if(!c){break a}d=266814;e=c+6|0;if(e>>>0<=4){d=H[(e<<2)+270168>>2]}pf(b,1,1,c);CC(b,2,d);c=H[a+236>>2];CC(b,3,c?c:266847);Ci(a,b,266913);break a}Xb(a,266978)}xb=b+256|0}function z7(a){a=a|0;var b=0,c=0,d=0;c=xb-16|0;xb=c;b=H[a+584>>2];if(I[b+124|0]&2){Oj(b- -64|0);H[b+124>>2]=0}a:{if(ZD(b- -64|0,273268,56)){d=H[a+628>>2];a=H[a>>2];H[c+4>>2]=H[b+88>>2];H[c>>2]=a;Pb(d,296481,273459,c);a=0;break a}H[b+124>>2]=H[b+124>>2]|1;a=1}xb=c+16|0;return a|0}function p8(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;zb[H[H[a+584>>2]+908>>2]](a,b,c);e=b;d=H[b>>2];b=J[a+204>>1]<<3;if(d>>>0<0-b>>>0){d=((b+d|0)-1>>>0)/(b>>>0)|0}else{d=0}H[e>>2]=N(d,b);b=H[c>>2];a=J[a+206>>1]<<3;if(b>>>0<0-a>>>0){b=((a+b|0)-1>>>0)/(a>>>0)|0}else{b=0}H[c>>2]=N(b,a)}function Ep(a,b,c){var d=0;d=xb-16|0;xb=d;a:{if(b>>>0<=255){b=Ic(a,b&4?29840:29872,c);break a}b=Ic(a,29904,d+8|0);if(b){break a}G[c>>1]=I[d+8|0]-128;G[c+2>>1]=I[d+9|0]-128;G[c+4>>1]=I[d+10|0]-128;G[c+6>>1]=I[d+11|0]-128;a=I[d+12|0];G[c+10>>1]=0;G[c+8>>1]=a-128}xb=d+16|0;return b}function zm(a,b,c){var d=0;if(I[a+188|0]){H[a+172>>2]=b;F[a+188|0]=0;H[a+180>>2]=b;H[a+184>>2]=c;H[a+176>>2]=c;return}d=a+172|0;a:{if(H[d>>2]<=(b|0)){d=a+180|0;if(H[d>>2]>=(b|0)){break a}}H[d>>2]=b}if(H[a+176>>2]>(c|0)){H[a+176>>2]=c;return}if(H[a+184>>2]<(c|0)){H[a+184>>2]=c}}function tL(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=142;e=J[a+152>>1];a:{if(!e){break a}a=H[a+156>>2];e=a+(e<<4)|0;while(1){b:{if(H[a>>2]==(b|0)){g=H[a+12>>2];if(g){break b}}a=a+16|0;if(e>>>0>a>>>0){continue}break a}break}if(d){H[d>>2]=g}f=bc(c,H[a+8>>2])}return f|0}function Mn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b:{c:{c=H[a+4>>2];switch(c+1|0){case 0:break a;case 1:break b;default:break c}}a=H[a>>2];if(a>>>0>2]){break a}d=H[b+8>>2];if(a>>>0>d>>>0|d-a>>>0>>0){break a}a=H[b+12>>2]-c|0;H[b+12>>2]=a;return(a|0)>0|0}e=1}return e|0}function vz(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d;var e=0,f=0;e=H[a+208>>2];if(e){zb[H[H[e>>2]+4>>2]](e);H[a+208>>2]=0}a:{if((b|0)==4){b=Qb(128);H[197455]=0;e=tb(1860,b|0,a|0,+c,+d)|0;f=H[197455];H[197455]=0;if((f|0)==1){break a}H[a+208>>2]=e}return}a=$()|0;_()|0;Kb(b);ea(a|0);X()}function Yca(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if(H[a+76>>2]>0){i=H[a+412>>2];f=H[a+84>>2];j=c<<2;while(1){c=g<<2;h=c+i|0;zb[H[h+12>>2]](a,f,H[b+c>>2]+j|0,H[c+d>>2]+(N(H[h+52>>2],e)<<2)|0);f=f+88|0;g=g+1|0;if((g|0)>2]){continue}break}}}function Fy(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=H[a+240>>2];if(e){zb[H[H[e>>2]+4>>2]](e);H[a+240>>2]=0}a:{if((b|0)==4){b=Qb(112);H[197455]=0;c=la(3227,b|0,a|0,c|0,d|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a+240>>2]=c}return}a=$()|0;_()|0;Kb(b);ea(a|0);X()}function CZ(a){a=a|0;var b=0;H[a+4>>2]=419196;H[a>>2]=419144;b=H[a+28>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+28>>2]=0}b=H[a+48>>2];if(b){Kb(b);H[a+48>>2]=0}b=H[a+56>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+56>>2]=0}b=H[a+60>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+60>>2]=0}return a|0}function Bg(a){var b=0,c=0,d=0;c=-2;a:{if(!a|!H[a+32>>2]){break a}d=H[a+36>>2];if(!d){break a}b=H[a+28>>2];if(!b|H[b>>2]!=(a|0)|H[b+4>>2]-16180>>>0>31){break a}c=H[b+56>>2];if(c){zb[d|0](H[a+40>>2],c);d=H[a+36>>2];b=H[a+28>>2]}zb[d|0](H[a+40>>2],b);c=0;H[a+28>>2]=0}return c}function sd(a,b,c,d){var e=0,f=0,g=0;f=H[197457]+1|0;H[197457]=f;H[a>>2]=f;if(d){while(1){g=(e<<3)+c|0;if(!H[g>>2]){H[g>>2]=f;a=(e<<3)+c|0;H[a+4>>2]=b;H[a+8>>2]=0;ja(d|0);return c}e=e+1|0;if((e|0)!=(d|0)){continue}break}}e=a;a=d<<1;b=sd(e,b,tc(c,d<<4|8),a);ja(a|0);return b}function jI(a){a=a|0;var b=0,c=0,d=0;if(a){c=H[a+100>>2];b=H[a+132>>2];if(b){if(H[b+160>>2]){nd(H[a+104>>2],b+160|0)}d=H[b+168>>2];if(d){zb[H[c+8>>2]](c,d)}H[b+168>>2]=0;if(b){zb[H[c+8>>2]](c,b)}H[a+132>>2]=0}b=H[a+32>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+28>>2]=0;H[a+32>>2]=0}}function gw(a){a=a|0;var b=0,c=0,d=0,e=0;H[a>>2]=773320;b=a+8|0;while(1){if(H[b+4>>2]-H[b>>2]>>2>>>0>c>>>0){if(H[H[b>>2]+(c<<2)>>2]){d=H[H[b>>2]+(c<<2)>>2];e=H[d+4>>2]-1|0;H[d+4>>2]=e;if((e|0)==-1){zb[H[H[d>>2]+8>>2]](d)}}c=c+1|0;continue}break}_b(a+152|0);jw(b);return a|0}function UN(a){a=a|0;var b=0,c=0;b=H[a+20>>2];a:{b:{if(I[a+65|0]){a=H[a+12>>2];if((G[a+20>>1]+G[a+56>>1]|0)+1>>>0>K[a+8>>2]){a=ee(a,0,1);if(a){break a}}c=J[b>>1];a=c<<16>>16;if((a|0)<=0){break b}G[(H[b+12>>2]+(c<<1)|0)-2>>1]=J[b+2>>1]-1}a=J[b>>1]}G[b>>1]=a+1;a=0}return a|0}function OT(a){a=a|0;var b=0,c=0;if(K[a+24>>2]>K[a+44>>2]){H[a+44>>2]=H[a+24>>2]}a:{if(!(I[a+48|0]&8)){break a}if(K[a+16>>2]>2]){b=H[a+8>>2];c=H[a+12>>2];H[a+16>>2]=H[a+44>>2];H[a+12>>2]=c;H[a+8>>2]=b}if(K[a+12>>2]>=K[a+16>>2]){break a}return I[H[a+12>>2]]}return-1}function Jo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{b:{if(c>>>0<=10){d=a;F[a+11|0]=c;break b}if(c>>>0>4294967279){break a}if(c>>>0>=11){e=c+16&-16;d=e-1|0;d=(d|0)==11?e:d}else{d=10}e=d+1|0;d=Qb(e);H[a>>2]=d;H[a+8>>2]=e|-2147483648;H[a+4>>2]=c}Jg(d,b,c+1|0);return}qd(a);X()}function Fka(a,b){a=a|0;b=b|0;var c=0,d=0;d=H[b+100>>2];c=I[a+2|0]|I[a+3|0]<<8;if(c){c=((c<<8|c>>>8)&65535)+a|0}else{c=163632}c=Gc(c,H[H[d+80>>2]+N(H[d+64>>2],20)>>2]);if((c|0)!=-1){Wh(a+4|0,b,a,a+6|0,H[d+88>>2]+N(H[d+64>>2],20)|0);H[d+64>>2]=H[d+64>>2]+1}return(c|0)!=-1|0}function rk(a,b,c,d){var e=0,f=0;e=xb-160|0;xb=e;f=-1;H[e+148>>2]=b?b-1|0:0;a=b?a:e+158|0;H[e+144>>2]=a;e=Nb(e,0,144);H[e+76>>2]=-1;H[e+36>>2]=3327;H[e+80>>2]=-1;H[e+44>>2]=e+159;H[e+84>>2]=e+144;a:{if((b|0)<0){H[197018]=61;break a}F[a|0]=0;f=sp(e,c,d)}xb=e+160|0;return f}function mfa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=H[a+444>>2];if(!H[e+48>>2]){if(!(zb[H[H[a+448>>2]+12>>2]](a,e+8|0)|0)){break a}H[e+48>>2]=1}f=H[a+324>>2];zb[H[H[a+452>>2]+4>>2]](a,e+8|0,e+52|0,f,b,c,d);if(K[e+52>>2]>>0){break a}H[e+48>>2]=0;H[e+52>>2]=0}}function Pm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H[b+4>>2];d=+(c|0);e=H[b>>2];f=+(e|0);b=H[a+156>>2];a:{if(b){if(jd(b,f,d)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}b=H[a+208>>2];if(!b){break a}zb[H[H[b>>2]+36>>2]](b,f,d)}a=H[a+120>>2];H[a+672>>2]=e;H[a+676>>2]=c}function Om(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=G[b+2>>1];d=+(c|0);e=G[b>>1];f=+(e|0);b=H[a+156>>2];a:{if(b){if(jd(b,f,d)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}b=H[a+208>>2];if(!b){break a}zb[H[H[b>>2]+36>>2]](b,f,d)}a=H[a+120>>2];H[a+672>>2]=e;H[a+676>>2]=c}function kT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=(e-d|0)+b|0;a:{while(1){if((d|0)!=(e|0)){a=-1;if((b|0)==(c|0)){break a}f=F[b|0];g=F[d|0];if((f|0)<(g|0)){break a}if((f|0)>(g|0)){return 1}else{d=d+1|0;b=b+1|0;continue}}break}a=(c|0)!=(h|0)}return a|0}function us(a){var b=0;a:{if(!a|!H[a>>2]){break a}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break a}H[a>>2]=-57005;b=H[a+8>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}b=H[a+88>>2];if(b){zb[b|0](H[a+84>>2])}us(H[a+12>>2]);Ps(H[a+16>>2]);tl(H[a+80>>2]);Kb(H[a+72>>2]);Kb(H[a+76>>2]);Kb(a)}}function oe(a){a=a|0;var b=0,c=0,d=0,e=0;H[a>>2]=424816;b=H[a+4>>2];c=H[a+8>>2];a:{if((b|0)==(c|0)){b=c;break a}while(1){e=H[(d<<2)+b>>2];if(e){zb[H[H[e>>2]+4>>2]](e);b=H[a+4>>2];c=H[a+8>>2]}d=d+1|0;if(d>>>0>2>>>0){continue}break}}H[a+8>>2]=b;if(b){Kb(b)}return a|0}function bj(a,b){var c=0,d=0,e=0,f=0;c=xb-16|0;xb=c;a:{if(!b){b=0;break a}d=b;b=Q(b);He(c,d,0,0,0,b+81|0);e=16414-b<<16;b=0;d=b+H[c+8>>2]|0;e=e+(H[c+12>>2]^65536)|0;e=b>>>0>d>>>0?e+1|0:e;f=d;d=H[c>>2];b=H[c+4>>2]}H[a>>2]=d;H[a+4>>2]=b;H[a+8>>2]=f;H[a+12>>2]=e;xb=c+16|0}function CC(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(!a){break a}e=b-1|0;if(e>>>0>7){break a}b:{if(!c){break b}b=0;d=I[c|0];if(!d){break b}g=(e<<5)+a|0;while(1){F[b+g|0]=d;f=b+1|0;d=I[c+1|0];if(!d){break b}c=c+1|0;h=b>>>0<30;b=f;if(h){continue}break}}F[((e<<5)+a|0)+f|0]=0}}function ec(a,b,c){var d=0,e=0;a:{d=H[a+72>>2]+c|0;if(!d|d>>>0>2]){break a}if(fh(a,d)){break a}return 0}d=H[a+80>>2];b:{if((d|0)!=H[a+84>>2]){break b}e=c;c=H[a+72>>2];if(e+c>>>0<=H[a+64>>2]+b>>>0){break b}b=a;a=H[a+88>>2];H[b+84>>2]=a;Ob(a,d,N(c,20))}return 1}function df(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{b:{if(c>>>0<=1){d=a;F[a+11|0]=c;break b}if(c>>>0>1073741807){break a}if(c>>>0>=2){e=c+4&-4;d=e-1|0;d=(d|0)==2?e:d}else{d=1}e=d+1|0;d=Vv(e);H[a>>2]=d;H[a+8>>2]=e|-2147483648;H[a+4>>2]=c}vf(d,b,c+1|0);return}qd(a);X()}function cj(a,b,c){var d=0,e=0,f=0;a:{if(!b){d=a;break a}while(1){d=ima(a,b,10,0);f=yb;e=gma(d,f,10,0);c=c-1|0;F[c|0]=a-e|48;e=b>>>0>9;a=d;b=f;if(e){continue}break}}if(d){while(1){c=c-1|0;a=(d>>>0)/10|0;F[c|0]=d-N(a,10)|48;b=d>>>0>9;d=a;if(b){continue}break}}return c}function Bv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=xb-16|0;xb=e;d=H[a+8>>2]&2147483647;a:{if(d>>>0>c>>>0){d=H[a>>2];H[a+4>>2]=c;vf(d,b,c);H[e+12>>2]=0;H[d+(c<<2)>>2]=H[e+12>>2];break a}f=d-1|0;g=(c-d|0)+1|0;d=H[a+4>>2];jk(a,f,g,d,0,d,c,b)}xb=e+16|0;return a|0}function vk(a,b,c){var d=0,e=0,f=0;d=a*a;f=d*(d*d)*(d*1.58969099521155e-10+-2.5050760253406863e-8)+(d*(d*27557313707070068e-22+-.0001984126982985795)+.00833333333332249);e=d*a;if(!c){return e*(d*f+-.16666666666666632)+a}return a-(d*(b*.5-f*e)-b+e*.16666666666666632)}function rI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=H[a+420>>2];if((d|0)>0){f=H[a+424>>2];g=I[b|0];while(1){a:{e=H[(c<<2)+f>>2];if(I[e|0]!=(g|0)){break a}if(fc(b,e)){break a}return Pd(H[H[a+428>>2]+(c<<2)>>2],0)|0}c=c+1|0;if((d|0)!=(c|0)){continue}break}}return 0}function Dj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;b=(b>>>0)/K[a+100>>2]|0;a:{if(J[a+138>>1]!=2){break a}e=J[a+98>>1];if(e>>>0<=c>>>0){b=H[a>>2];a=H[a+628>>2];H[d+4>>2]=e;H[d>>2]=c;Pb(a,b,270219,d);b=0;break a}b=b+N(H[a+176>>2],c)|0}xb=d+16|0;return b|0}function BM(a,b){a=a|0;b=b|0;var c=0;if(K[b+160>>2]>>0){vc(b,8)}c=I[a+3|0]|I[a+2|0]<<8;if(!(c>>>0>=262&K[b+160>>2]>=a+c>>>0)){vc(b,8)}if(H[b+164>>2]>0){a=a+6|0;c=0;while(1){if(K[b+172>>2]<=I[a|0]){vc(b,16)}a=a+1|0;c=c+1|0;if((c|0)!=256){continue}break}}return 0}function w4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=24;H[c+8>>2]=43;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=c+16|0}function s4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=24;H[c+8>>2]=63;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=c+16|0}function r5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=24;H[c+8>>2]=62;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=c+16|0}function r4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=24;H[c+8>>2]=64;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=c+16|0}function pja(a){a=a|0;var b=0,c=0,d=0;c=H[a+16>>2];b=161;a:{if(K[a+20>>2]>>0){break a}d=H[a+32>>2];c=Ef(a,H[c>>2]);b=3;if(c-17>>>0<4294967281){break a}G[d+176>>1]=c;b=d;d=(H[a+20>>2]-H[a+16>>2]>>>2|0)-4|0;G[b+178>>1]=d;G[a+38>>1]=d;G[a+36>>1]=c;b=0}return b|0}function d5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=24;H[c+8>>2]=29;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=c+16|0}function Y4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=24;H[c+8>>2]=30;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=c+16|0}function R4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=24;H[c+8>>2]=42;H[a+8>>2]=H[a+8>>2]+24;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=c+16|0}function e5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=25;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,1);Lb(H[a+4>>2],b+1|0,1);Lb(H[a+4>>2],b+2|0,1);Lb(H[a+4>>2],b+3|0,1);xb=c+16|0}function J5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=24;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,1);Lb(H[a+4>>2],b+1|0,1);Lb(H[a+4>>2],b+2|0,1);Lb(H[a+4>>2],b+3|0,1);xb=c+16|0}function EU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=H[a+88>>2];if(b){H[b>>2]=H[a+300>>2]}if(c){H[c>>2]=H[a+304>>2]}a:{if(!f){b=65536;a=65536;break a}b=dc(J[f+12>>1]<<6,H[a+304>>2]);a=dc(J[f+14>>1]<<6,H[a+304>>2])}if(d){H[d>>2]=b}if(e){H[e>>2]=a}return 0}function xm(a){a=a|0;G[a+14>>1]=0;G[a+16>>1]=0;G[a+18>>1]=0;G[a+20>>1]=0;H[a+8>>2]=-65536;F[a+12|0]=255;H[a+4>>2]=436620;H[a>>2]=436556;G[a+22>>1]=0;G[a+24>>1]=0;G[a+26>>1]=0;G[a+28>>1]=0;G[a+30>>1]=0;G[a+32>>1]=0;G[a+34>>1]=0;G[a+36>>1]=0;G[a+38>>1]=0;return a|0}function lw(a){a=a|0;var b=0,c=0,d=0;H[a>>2]=773392;b=H[a+8>>2];H[197455]=0;c=va(3442)|0;d=H[197455];H[197455]=0;a:{if((d|0)==1){break a}if((b|0)!=(c|0)){b=H[a+8>>2];H[197455]=0;bp(b);b=H[197455];H[197455]=0;if((b|0)==1){break a}}return a|0}ha(0)|0;_()|0;Zb();X()}function Rb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a>>31;d=(c^a)-c|0;c=b>>31;c=(c^b)-c|0;a:{if(d+(c>>>8|0)>>>0<=8190){c=N(c,d)+32768>>>16|0;break a}e=d&65535;c=N(e,c>>>16|0)+N(c,d>>>16|0)+(N(c&65535,e)+32768>>>16)|0}a=a>>31|1;return((((b|0)<0?0-a|0:a)|0)<0?0-c|0:c)|0}function tZ(a){a=a|0;var b=0;H[a>>2]=419196;b=a-4|0;H[b>>2]=419144;a=H[a+24>>2];if(a){zb[H[H[a>>2]+4>>2]](a);H[b+28>>2]=0}a=H[b+48>>2];if(a){Kb(a);H[b+48>>2]=0}a=H[b+56>>2];if(a){zb[H[H[a>>2]+4>>2]](a);H[b+56>>2]=0}a=H[b+60>>2];if(a){zb[H[H[a>>2]+4>>2]](a)}Kb(b)}function cH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=xb-16|0;xb=b;H[b+4>>2]=e;H[b>>2]=d;d=H[a+12>>2];L[b+8>>2]=O(H[a+20>>2])/O(H[d+20>>2]);L[b+12>>2]=O(H[a+24>>2])/O(H[d+24>>2]);a=H[d+80>>2];zb[H[a+224>>2]](d,H[d+84>>2],c,784004,b,H[a+80>>2]);xb=b+16|0}function Ti(a){var b=0,c=0,d=0;a:{if(!a){break a}b=F[a|0];d=b&255;if(!d|!(I[(d>>>3|0)+24096|0]>>>(b&7)&1)){break a}while(1){if(c>>>0>429496727){return-1}c=I[b+24128|0]+N(c,10)|0;b=F[a+1|0];a=a+1|0;if(I[((b&248)>>>3|0)+24096|0]>>>(b&7)&1){continue}break}}return c}function FM(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+16>>2];H[a+32>>2]=b;d=H[a+20>>2];H[a+36>>2]=d;c=H[a+8>>2];e=c+H[a>>2]|0;H[a+8>>2]=e>>1;b=b+c|0;H[a+24>>2]=b>>1;H[a+16>>2]=b+e>>2;b=H[a+12>>2];c=b+H[a+4>>2]|0;H[a+12>>2]=c>>1;b=b+d|0;H[a+28>>2]=b>>1;H[a+20>>2]=b+c>>2}function rJ(a,b){a=a|0;b=b|0;var c=0,d=0;d=H[a>>2];c=H[d+552>>2];a:{d=Vd(H[H[d+96>>2]+4>>2],10580);if(!(!d|!c)){c=H[c>>2];if(c){break a}}Bi(H[a>>2],b);return 0}c=zb[c|0](d)|0;Bi(H[a>>2],b);if(c){zb[H[c+4>>2]](H[H[a+40>>2]>>2],H[a+16>>2],H[a+20>>2],0,0)}return 0}function Xp(a,b){var c=0,d=0,e=0,f=0;c=H[b+4>>2];d=+(c|0);e=H[b>>2];f=+(e|0);b=H[a+156>>2];a:{if(b){if(Qd(b,f,d)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}b=H[a+208>>2];if(!b){break a}zb[H[H[b>>2]+32>>2]](b,f,d)}a=H[a+120>>2];H[a+672>>2]=e;H[a+676>>2]=c}function Wp(a,b){var c=0,d=0,e=0,f=0;c=G[b+2>>1];d=+(c|0);e=G[b>>1];f=+(e|0);b=H[a+156>>2];a:{if(b){if(Qd(b,f,d)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}b=H[a+208>>2];if(!b){break a}zb[H[H[b>>2]+32>>2]](b,f,d)}a=H[a+120>>2];H[a+672>>2]=e;H[a+676>>2]=c}function D9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((c|0)>0){a=H[a+12>>2];while(1){e=J[a>>1];f=e&32767;if(f){d=vh((+(f|0)+.5)*.0027076061740622863+-44.3614195558365);d=e&32768?-d:d}else{d=0}a=a+2|0;L[b>>2]=d;b=b+4|0;e=c>>>0>1;c=c-1|0;if(e){continue}break}}}function xd(a,b){a=a|0;b=b|0;var c=0,d=0;if(!a){return 0}d=H[a+204>>2];H[a+204>>2]=d|1048576;a:{b:{if(!b){break b}c=H[a+672>>2];c:{if(c){c=zb[c|0](a,b)|0;break c}c=Tb(b)}if(c){break b}c=0;if(!(I[a+206|0]&16)){break a}}H[a+204>>2]=d;return c|0}hc(a,258720);X()}function iH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=H[a+12>>2];e=H[b+80>>2];b=zb[H[e+200>>2]](b,H[b+84>>2],c,d,H[e+56>>2])|0;c=H[a+12>>2];a:{if(!c){break a}c=H[c+20>>2];a=H[a+20>>2];if((c|0)==(a|0)){break a}b=hma(gma(a,a>>31,b,b>>31),yb,c,c>>31)}return b|0}function hH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=H[a+12>>2];e=H[b+80>>2];b=zb[H[e+204>>2]](b,H[b+84>>2],c,d,H[e+60>>2])|0;c=H[a+12>>2];a:{if(!c){break a}c=H[c+24>>2];a=H[a+24>>2];if((c|0)==(a|0)){break a}b=hma(gma(a,a>>31,b,b>>31),yb,c,c>>31)}return b|0}function fK(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=G[a+302>>1];if(e){f=c<<3;g=H[f+H[b+12>>2]>>2];e=ic(d,e,H[a+568>>2]);H[f+H[b+12>>2]>>2]=e+g}e=G[a+304>>1];if(e){c=c<<3;f=H[(c+H[b+12>>2]|0)+4>>2];a=ic(d,e,H[a+568>>2]);H[(c+H[b+12>>2]|0)+4>>2]=a+f}}function Oo(a){a=a|0;var b=0,c=0,d=0;b=H[a+8>>2];H[197455]=0;c=va(3442)|0;d=H[197455];H[197455]=0;a:{b:{if((d|0)==1){break b}if((b|0)!=(c|0)){b=H[a+8>>2];H[197455]=0;bp(b);b=H[197455];H[197455]=0;if((b|0)==1){break b}}break a}ha(0)|0;_()|0;Zb();X()}return a|0}function EI(a,b){a=a|0;b=b|0;var c=0;a=H[a+712>>2];b=J[H[a+1188>>2]+(b<<1)>>1];a:{if((b|0)==65535){break a}if(b>>>0>=391){b=b-391|0;if(b>>>0>=K[a+1356>>2]){break a}return H[H[a+1360>>2]+(b<<2)>>2]}a=H[a+3084>>2];if(!a){break a}c=zb[H[a+20>>2]](b)|0}return c|0}function rV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;b=H[a>>2];c=H[b+408>>2];H[a+16>>2]=c;d=H[b+416>>2];H[a+20>>2]=d;a:{if(c>>>0<2){break a}b=H[d>>2];a=1;while(1){e=b;b=H[(a<<4)+d>>2];if(e>>>0>>0){a=a+1|0;if((c|0)!=(a|0)){continue}break a}break}f=8}return f|0}function bO(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if($d(a,H[b+8>>2],0)){Do(b,c,d);return}e=H[a+12>>2];f=a+16|0;sv(f,b,c,d);a:{if((e|0)<2){break a}e=(e<<3)+f|0;a=a+24|0;while(1){sv(a,b,c,d);if(I[b+54|0]){break a}a=a+8|0;if(e>>>0>a>>>0){continue}break}}}function VJ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[((c<<2)+a|0)+268>>2];c=H[a+484>>2];e=H[a+488>>2];if((b|0)>=0){b=((b+d|0)+e|0)-c|0;a=c+(b-((b|0)%H[a+480>>2]|0)|0)|0;return((a|0)<0?c:a)|0}b=d+e-(b+c)|0;a=(b|0)%H[a+480>>2]-(b+c)|0;return((a|0)>0?0-c|0:a)|0}function um(a,b){a=a|0;b=b|0;var c=0,d=0;if((a|0)<=536870911){c=hma(a<<2,a>>31<<2|a>>>30,3,0);a=b&1?c:c+((a|0)%3|0)|0;c=(a|0)/76|0;d=a-N(c,76)|0;a:{if(!d){break a}d=(d<<24>>24)%4|0;if(!d){break a}a=(4-d&255)+a|0}a=(b&2?0:(c<<1)+2|0)+a|0}else{a=-1}return a|0}function qw(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-32|0;xb=d;H[d+16>>2]=b;H[d+24>>2]=a;H[d+8>>2]=c;while(1){a=H[d+24>>2]!=H[d+16>>2];if(!(!a|H[H[d+24>>2]>>2]!=H[H[d+8>>2]>>2])){H[d+24>>2]=H[d+24>>2]+4;H[d+8>>2]=H[d+8>>2]+4;continue}break}xb=d+32|0;return!a|0}function mL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[a+516>>2];a:{b:{if(c){c=zb[d|0](a,1986553185,b,0)|0;if(c){break a}a=a+296|0;break b}c=zb[d|0](a,1751672161,b,0)|0;if(c){break a}a=a+216|0}c=Ic(b,95248,a);if(c){break a}H[a+36>>2]=0;H[a+40>>2]=0;c=0}return c|0}function Dk(a,b){var c=0;if(!a){return 40}H[a+16>>2]=b;H[a+8>>2]=0;H[a+12>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[a>>2]=0;b=pi(b,8921);if(!b){return 1}Lg(b,0,2);c=uk(b);H[a+4>>2]=c;if(!c){lf(b);return 81}Lg(b,0,0);H[a+24>>2]=22;H[a+20>>2]=23;H[a+12>>2]=b;return 0}function BZ(a){a=a|0;var b=0;H[a+4>>2]=419196;H[a>>2]=419144;b=H[a+28>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+28>>2]=0}b=H[a+48>>2];if(b){Kb(b);H[a+48>>2]=0}b=H[a+56>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+56>>2]=0}b=H[a+60>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}Kb(a)}function hT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{while(1){if((d|0)!=(e|0)){a=-1;if((b|0)==(c|0)){break a}f=H[b>>2];g=H[d>>2];if((f|0)<(g|0)){break a}if((f|0)>(g|0)){return 1}else{d=d+4|0;b=b+4|0;continue}}break}a=(b|0)!=(c|0)}return a|0}function ey(a){return(a*(a*(a*(a*(a*3479331075960212e-20+.0007915349942898145)+-.04005553450067941)+.20121253213486293)+-.3255658186224009)+.16666666666666666)*a/(a*(a*(a*(a*.07703815055590194+-.6882839716054533)+2.0209457602335057)+-2.403394911734414)+1)}function w$(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=+(c|0);f=+(b|0);d=H[a+156>>2];a:{if(d){if(Qd(d,f,e)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}d=H[a+208>>2];if(!d){break a}zb[H[H[d>>2]+32>>2]](d,f,e)}a=H[a+120>>2];H[a+672>>2]=b;H[a+676>>2]=c}function u$(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=+(c|0);f=+(b|0);d=H[a+156>>2];a:{if(d){if(jd(d,f,e)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}d=H[a+208>>2];if(!d){break a}zb[H[H[d>>2]+36>>2]](d,f,e)}a=H[a+120>>2];H[a+672>>2]=b;H[a+676>>2]=c}function GU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;Jx(a,b,c,d);b=H[a+300>>2];c=H[a+304>>2];a:{if((b|0)==(c|0)){break a}e=H[d>>2];if(e){f=d,g=ic(e,b,c),H[f>>2]=g}b=H[d+4>>2];if(!b){break a}f=d,g=ic(b,H[a+300>>2],H[a+304>>2]),H[f+4>>2]=g}return 0}function zp(a){var b=0,c=0;b=H[a+72>>2];H[a+72>>2]=b-1|b;if(H[a+20>>2]!=H[a+28>>2]){zb[H[a+36>>2]](a,0,0)|0}H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;b=H[a>>2];if(b&4){H[a>>2]=b|32;return-1}c=H[a+44>>2]+H[a+48>>2]|0;H[a+8>>2]=c;H[a+4>>2]=c;return b<<27>>31}function lR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=H[a+20>>2];if(I[a+68|0]){a=H[e+8>>2];f=G[e+2>>1];g=H[e+4>>2]+(f<<3)|0;H[g>>2]=(((b>>31)+b|0)+32768&-65536)>>16;H[g+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;F[a+f|0]=d?1:2}G[e+2>>1]=J[e+2>>1]+1}function FV(a){a=a|0;var b=0,c=0,d=0,e=0;b=xb-16|0;xb=b;H[b+12>>2]=0;a:{b:{c=I[a+11|0];d=c<<24>>24<0;e=d?H[a>>2]:a;if(e){a=d?H[a+4>>2]:c;if(a){break b}}a=Rx(0);break a}ij(e,a,b+12|0,b+8|0,0);c=H[b+12>>2];a=Rx(c);if(!c){break a}Kb(c)}xb=b+16|0;return!a|0}function zD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;H[a>>2]=245276;f=H[b+68>>2];Nb(a+4|0,0,936);F[a+388|0]=255;H[a+344>>2]=1119092736;H[a+68>>2]=f;F[a+390|0]=1;H[a+336>>2]=-1;F[a+348|0]=1;Yf(a,96);Sh(a,96);F[a+458|0]=1;yD(a,b,c,d,e);return a|0}function De(a){var b=0,c=0;b=_r(a+52|0);b=I[b+50|0]|I[b+51|0]<<8;if(((b<<8|b>>>8)&65535)>>>0<=1){b=H[RF(a+104|0)+16>>2]>>>(b?2:1)|0;c=(b>>>0>1?b:1)-1|0}b=a;a=ds(a+56|0);a=I[a+4|0]|I[a+5|0]<<8;a=(a<<8|a>>>8)&65535;a=a>>>0>>0?c:a;H[b+32>>2]=a;return a}function ww(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-32|0;xb=d;H[d+16>>2]=b;H[d+24>>2]=a;H[d+8>>2]=c;while(1){a=H[d+24>>2]!=H[d+16>>2];if(!(!a|I[H[d+24>>2]]!=I[H[d+8>>2]])){H[d+24>>2]=H[d+24>>2]+1;H[d+8>>2]=H[d+8>>2]+1;continue}break}xb=d+32|0;return!a|0}function _G(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=O(d);e=O(e);f=O(f);g=O(g);h=h|0;var i=O(0),j=O(0);i=L[b+12>>2];j=L[b+8>>2];L[c+12>>2]=j*L[c+12>>2];L[c+16>>2]=i*L[c+16>>2];a=H[b>>2];zb[H[a+20>>2]](a,H[b+4>>2],c,O(j*d),O(i*e),O(j*f),O(i*g),H[a+40>>2])}function Ts(){var a=0,b=0,c=0,d=0,e=0;b=kg(105174);a=2;a:{if(!b){break a}a=2;if(!I[b|0]){break a}while(1){c=ie(b,58);if(!c){c=ac(b)+b|0}e=a|4;d=a;a=c-b|0;a=gc(b,105343,a)?d:(a|0)==24?e:d;b=(I[c|0]!=0)+c|0;if(I[b|0]){continue}break}a=a&255}H[196240]=a}function kca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=Nb(a,0,256);d=H[b>>2]+c|0;e=I[d+1|0];d=I[d|0];f=e+d|0;b=H[b+4>>2]+c|0;c=I[b+1|0];b=I[b|0];g=c+b|0;H[a+32>>2]=f-g<<4;d=d-e|0;b=b-c|0;H[a+36>>2]=d-b<<4;H[a+4>>2]=b+d<<4;H[a>>2]=(f+g<<4)+-8192}function Sha(a){a=a|0;H[a>>2]=0;H[a+4>>2]=0;F[a+40|0]=0;H[a+32>>2]=0;H[a+36>>2]=-1074790400;F[a+21|0]=0;F[a+22|0]=0;F[a+23|0]=0;F[a+24|0]=0;F[a+25|0]=0;F[a+26|0]=0;F[a+27|0]=0;F[a+28|0]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;return a|0}function Mf(a,b,c){var d=0,e=0,f=0,g=0;H[a+112>>2]=b;H[a+116>>2]=c;e=H[a+4>>2];d=H[a+44>>2]-e|0;H[a+120>>2]=d;H[a+124>>2]=d>>31;d=H[a+8>>2];a:{if(!(b|c)){break a}f=d-e|0;g=f>>31;if((c|0)>=(g|0)&b>>>0>=f>>>0|(c|0)>(g|0)){break a}d=b+e|0}H[a+104>>2]=d}function xN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=H[b>>2]+1|0;d=H[a+16>>2];c=c>>>0>d>>>0?c:d;d=d+H[a+20>>2]|0;a:{if(c>>>0>>0){e=H[a+24>>2];while(1){a=J[(c<<1)+e>>1];if(a){break a}c=c+1|0;if((d|0)!=(c|0)){continue}break}}a=0;c=0}H[b>>2]=c;return a|0}function Yv(){var a=0,b=0,c=0;b=xb-16|0;xb=b;H[b+12>>2]=1073741823;H[197455]=0;H[b+8>>2]=2147483647;a=xb-16|0;xb=a;xb=a+16|0;a=b+8|0;c=b+12|0;a=K[a>>2]>2]?a:c;c=H[197455];H[197455]=0;if((c|0)!=1){xb=b+16|0;return H[a>>2]}ha(0)|0;_()|0;Zb();X()}function SF(a){var b=0,c=0;b=H[a+4>>2];if(b){while(1){b=H[a+8>>2]+N(b,28)|0;H[b-20>>2]=0;c=b-16|0;Kb(H[c>>2]);H[c>>2]=0;b=b-24|0;H[b>>2]=0;H[b+4>>2]=0;b=H[a+4>>2]-1|0;H[a+4>>2]=b;if(b){continue}break}}Kb(H[a+8>>2]);H[a+8>>2]=0;H[a>>2]=0;H[a+4>>2]=0}function NI(a,b){a=a|0;b=b|0;var c=0;Bi(H[a>>2],b);c=H[a>>2];b=H[c+320>>2];c=Vd(H[H[c+96>>2]+4>>2],10070);a:{if(!c|!b){break a}b=H[b>>2];if(!b){break a}b=zb[b|0](c)|0;if(!b){break a}zb[H[b+4>>2]](H[H[a+40>>2]>>2],H[a+16>>2],H[a+20>>2],0,0)}return 0}function DC(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-768|0;xb=d;e=236;a:{b:{switch(a-1|0){case 0:e=768;break;case 1:break b;default:break a}}if(b){H[d+668>>2]=c;f=zb[b|0](d,e)|0;if(!f){break a}Nb(f,0,e);break a}f=oc(1,e)}xb=d+768|0;return f|0}function mS(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;H[e+12>>2]=b;H[e+8>>2]=d;b=Kf(e,e+12|0);H[197455]=0;a=ca(3468,a|0,c|0,H[e+8>>2])|0;c=H[197455];H[197455]=0;if((c|0)!=1){me(b);xb=e+16|0;return a|0}a=$()|0;_()|0;me(b);ea(a|0);X()}function _x(a,b){var c=0,d=0,e=0;A(+a);d=v(1)|0;e=v(0)|0;c=d>>>20&2047;if((c|0)!=2047){if(!c){if(a==0){c=0}else{a=_x(a*0x10000000000000000,b);c=H[b>>2]+-64|0}H[b>>2]=c;return a}H[b>>2]=c-1022;x(0,e|0);x(1,d&-2146435073|1071644672);a=+z()}return a}function xU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-16|0;xb=d;H[d+12>>2]=0;a:{if(H[c+80>>2]){break a}b=b-a|0;f=pc(H[c>>2],b+1|0,d+12|0);H[c+80>>2]=f;e=H[d+12>>2];if(e){break a}Ob(f,a,b);F[b+H[c+80>>2]|0]=0;e=H[d+12>>2]}xb=d+16|0;return e|0}function SD(a,b){var c=0,d=0;H[a>>2]=0;H[a+32>>2]=H[b>>2];d=H[b+24>>2];H[a+4>>2]=H[b+4>>2];c=H[b+8>>2];H[a+12>>2]=0;H[a+16>>2]=0;H[a+8>>2]=c;c=H[b+20>>2];H[a+24>>2]=d;H[a+20>>2]=c;H[a+28>>2]=H[b+28>>2];H[a+40>>2]=H[b+16>>2];H[a+36>>2]=H[b+12>>2]}function Nd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;F[a|0]=0;F[a+1|0]=0;F[a+2|0]=0;F[a+3|0]=0;d=H[b+4>>2];a:{if(!d){break a}b=H[b+44>>2];if(!b|b>>>0<=c>>>0){break a}b=(c<<2)+d|0;F[a|0]=I[b+40|0];F[a+1|0]=I[b+41|0];F[a+2|0]=I[b+42|0];F[a+3|0]=I[b+43|0]}}function Se(a){var b=0,c=0;c=H[a+12>>2];a:{if((c|0)==H[a+8>>2]){a=H[a+4>>2];b=0;if(!a|H[a>>2]){break a}H[a>>2]=161;return 0}if(H[c-4>>2]!=2){a=H[a+4>>2];b=0;if(!a|H[a>>2]){break a}H[a>>2]=160;return 0}b=a;a=c-8|0;H[b+12>>2]=a;b=H[a>>2]}return b}function Eia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[H[a+128>>2]+52>>2];a:{if(e){a=H[b>>2];H[d+12>>2]=c;H[d+8>>2]=a;zb[H[H[e>>2]+4>>2]](H[e+4>>2],d+8|0);break a}a=H[a+712>>2];if(H[a+1236>>2]){break a}nd(H[a+1204>>2],b)}xb=d+16|0}function Lv(a){var b=0,c=0,d=0,e=0;e=H[a>>2];b=H[e>>2]-48|0;if(b>>>0>9){return 0}while(1){d=-1;if(c>>>0<=214748364){c=N(c,10);d=2147483647-c>>>0>>0?-1:c+b|0}b=H[e+4>>2];c=d;d=e+4|0;e=d;b=b-48|0;if(b>>>0<10){continue}break}H[a>>2]=d;return c}function wk(a,b){var c=0,d=0,e=0,f=0;c=a*a;d=c*.5;e=1-d;f=1-e-d;d=c*c;return e+(f+(c*(c*(c*(c*2480158728947673e-20+-.001388888888887411)+.0416666666666666)+d*d*(c*(c*-1.1359647557788195e-11+2.087572321298175e-9)+-2.7557314351390663e-7))-a*b))}function ai(a){var b=0;a:{if(!a|!H[a>>2]){break a}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break a}H[a>>2]=-57005;b=H[a+8>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}Pj(H[a+12>>2]);Kb(H[a+80>>2]);Kb(H[a+88>>2]);b=H[a+164>>2];if(b){zb[b|0](H[a+160>>2])}Kb(a)}}function Pia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=xb-16|0;xb=e;f=H[H[a+128>>2]+52>>2];a:{if(f){a=zb[H[H[f>>2]>>2]](H[f+4>>2],b,e+8|0)|0;H[c>>2]=H[e+8>>2];H[d>>2]=H[e+12>>2];break a}a=xn(H[a+712>>2]+1204|0,b,c,d)}xb=e+16|0;return a|0}function bs(a,b,c,d,e){var f=O(0),g=O(0);if(H[c>>2]){f=L[c+4>>2];g=L[c+8>>2];if(!(f==L[c+12>>2]&g==L[c+16>>2])){zb[H[a+16>>2]](a,b,c,f,g,H[a+36>>2])}zb[H[a+28>>2]](a,b,c,H[a+48>>2]);H[c+8>>2]=0;H[c>>2]=0;H[c+4>>2]=0}L[c+16>>2]=e;L[c+12>>2]=d}function So(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c>>2]=a;a=H[a+4>>2];H[c+4>>2]=a;H[c+8>>2]=a+(b<<2);b=H[c+4>>2];a=H[c+8>>2];while(1){if((a|0)==(b|0)){H[H[c>>2]+4>>2]=H[c+4>>2];xb=c+16|0}else{H[b>>2]=0;b=b+4|0;H[c+4>>2]=b;continue}break}}function LU(a){a=a|0;var b=0,c=0;c=H[H[a+188>>2]>>2];b=H[a+168>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+172>>2]=0;H[a+164>>2]=0;H[a+168>>2]=0;b=H[a+184>>2];if(b){zb[H[c+8>>2]](c,b)}F[a+192|0]=0;H[a+184>>2]=0;H[a+188>>2]=0;H[a+176>>2]=0;H[a+180>>2]=0}function kJ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=xb-16|0;xb=d;e=b>>>0<4?b:4;if(e){b=0;while(1){f=b<<2;g=H[f+c>>2];H[d+f>>2]=((g+(g>>31)|0)+32768&-65536)>>16;b=b+1|0;if((e|0)!=(b|0)){continue}break}}a=Rt(a,e,d);xb=d+16|0;return a|0}function a6(a){a=a|0;var b=0,c=0,d=0;b=H[a+44>>2];c=H[a+24>>2];if(b>>>0>>0){H[a+44>>2]=c;b=c}d=-1;a:{if(!(I[a+48|0]&8)){break a}c=H[a+16>>2];if(c>>>0>>0){H[a+16>>2]=b}else{b=c}a=H[a+12>>2];if(a>>>0>=b>>>0){break a}d=H[a>>2]}return d|0}function Vt(a,b){a=a|0;b=b|0;var c=0;c=H[a+136>>2];H[b>>2]=H[a+132>>2];H[b+4>>2]=c;c=H[a+160>>2];H[b+24>>2]=H[a+156>>2];H[b+28>>2]=c;c=H[a+152>>2];H[b+16>>2]=H[a+148>>2];H[b+20>>2]=c;c=H[a+144>>2];H[b+8>>2]=H[a+140>>2];H[b+12>>2]=c;return 0}function LI(a,b){a=a|0;b=b|0;var c=0;c=H[a+192>>2];H[b+24>>2]=H[a+188>>2];H[b+28>>2]=c;c=H[a+184>>2];H[b+16>>2]=H[a+180>>2];H[b+20>>2]=c;c=H[a+176>>2];H[b+8>>2]=H[a+172>>2];H[b+12>>2]=c;c=H[a+168>>2];H[b>>2]=H[a+164>>2];H[b+4>>2]=c;return 0}function Di(a,b,c,d){var e=0;if(!(!a|b>>>0<=c>>>0)){a:{if(!d){break a}e=I[d|0];if(!e){break a}b=b-1|0;if(b>>>0<=c>>>0){break a}while(1){F[a+c|0]=e;c=c+1|0;e=I[d+1|0];if(!e){break a}d=d+1|0;if(b>>>0>c>>>0){continue}break}}F[a+c|0]=0}return c}function Cf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=ac(b);if(c>>>0<4294967280){a:{b:{if(c>>>0>=11){e=c+16&-16;d=Qb(e);H[a+8>>2]=e|-2147483648;H[a>>2]=d;H[a+4>>2]=c;break b}F[a+11|0]=c;d=a;if(!c){break a}}Ob(d,b,c)}F[c+d|0]=0;return a|0}qd(a);X()}function pM(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[b>>2];a:{if(c>>>0>65534){break a}if(F[a+20|0]&1){return Lu(H[a>>2],H[a+16>>2],b,1)|0}if((c|0)==H[a+24>>2]){Iu(a);c=H[a+28>>2];if(!c){break a}H[b>>2]=H[a+24>>2];return c|0}d=Ku(a,b,1)}return d|0}function naa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=H[b>>2];if((a|0)<=0){H[b>>2]=256;a=256}d=H[c>>2];if((d|0)<=0){d=256;H[c>>2]=256;a=H[b>>2]}if(a&15){H[b>>2]=a>>>0<4294967280?a+15&-16:0;d=H[c>>2]}if(d&15){H[c>>2]=d>>>0<4294967280?d+15&-16:0}}function _8(a){a=a|0;var b=0,c=0,d=0;b=H[a+584>>2];Tf(a,1,12);Tf(a,1,12);if(H[b+68>>2]!=8){if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}d=H[b+64>>2];c=H[a+604>>2];H[a+604>>2]=c+1;F[c|0]=d;H[a+608>>2]=H[a+608>>2]+1;H[b+64>>2]=0;H[b+68>>2]=8}return 1}function Vd(a,b){var c=0,d=0;if(!a){return 0}if(!b){return 0}c=H[a+16>>2];if((c|0)<=0){return 0}c=((c<<2)+a|0)+20|0;a=a+20|0;a:{while(1){d=H[a>>2];if(!fc(H[H[d>>2]+8>>2],b)){break a}a=a+4|0;if(c>>>0>a>>>0){continue}break}return 0}return d}function UJ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[((c<<2)+a|0)+268>>2];c=H[a+484>>2];e=H[a+488>>2];if((b|0)>=0){a=c+(((b+d|0)+e|0)-c&0-H[a+480>>2])|0;return((a|0)<0?c:a)|0}a=0-(c+(d+e-(b+c)&0-H[a+480>>2])|0)|0;return((a|0)>0?0-c|0:a)|0}function RI(a){a=a|0;var b=0,c=0;if(H[H[a+40>>2]>>2]){c=H[a>>2];b=H[c+320>>2];c=Vd(H[H[c+96>>2]+4>>2],10070);a:{if(!c|!b){break a}b=H[b>>2];if(!b){break a}b=zb[b|0](c)|0;if(!b){break a}zb[H[b+8>>2]](H[H[a+40>>2]>>2])}H[H[a+40>>2]>>2]=0}}function Cc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=xb-16|0;xb=e;H[e+12>>2]=c;d=zj(a,b);a:{if(!d){break a}if(b>>>0<=65535){d=J[d+12>>1];if(!(H[((d>>>3&8188)+a|0)+40>>2]>>>d&1)){break a}}f=zb[H[a+672>>2]](a,b,c)|0}xb=e+16|0;return f|0}function AJ(a){a=a|0;var b=0,c=0;if(H[H[a+40>>2]>>2]){c=H[a>>2];b=H[c+552>>2];c=Vd(H[H[c+96>>2]+4>>2],10580);a:{if(!c|!b){break a}b=H[b>>2];if(!b){break a}b=zb[b|0](c)|0;if(!b){break a}zb[H[b+8>>2]](H[H[a+40>>2]>>2])}H[H[a+40>>2]>>2]=0}}function bN(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(H[a+4>>2]){break a}e=c;g=a+52|0;f=H[g>>2];c=H[a+16>>2];if((e|0)!=(f+c|0)){break a}e=H[a>>2];c=Il(a+16|0,d,f,c,b,e);if(!c){c=Il(g,d,0,f,b,e);if(!c){break a}}H[a+4>>2]=c}}function BL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=6;a:{if(!d|!e){break a}g=J[a+152>>1];if(c){f=142;if(b>>>0>=g>>>0){break a}a=H[a+156>>2]+(b<<4)|0;H[c>>2]=H[a>>2];H[d>>2]=H[a+8>>2];g=H[a+12>>2]}H[e>>2]=g;f=0}return f|0}function oga(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;F[a+24|0]=0;a:{if(!H[a+4>>2]){break a}b:{c:{switch(c|0){case 1:b=H[a+16>>2]+b|0;break b;case 0:break b;case 2:break c;default:break a}}b=H[a+8>>2]+b|0}H[a+16>>2]=(b|0)>0?b:0;d=1}return d|0}function hga(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=c-1|0;c=(c|0)>0?c:0;while(1){a:{if((c|0)==(d|0)){d=c;break a}e=zb[H[H[a>>2]+48>>2]](a)|0;if((e|0)==-1){return 0}F[b+d|0]=e;d=d+1|0;if((e|0)!=10){continue}}break}F[b+d|0]=0;return b|0}function c4(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=+h;i=+i;var j=0,k=0;j=H[a+4>>2];a=H[a+8>>2];if((j|0)!=(a|0)){while(1){k=H[j>>2];zb[H[H[k>>2]+20>>2]](k,b,c,d,e,f,g,h,i);j=j+4|0;if((a|0)!=(j|0)){continue}break}}}function Yf(a,b){a=a|0;b=b|0;var c=0;b=(b|0)<=0?96:b;H[a+364>>2]=b;c=T(+(b|0)*1e4/254+.5);a:{if(P(c)<2147483648){b=~~c;break a}b=-2147483648}H[a+36>>2]=b;a=H[a+4>>2];if(a){F[a+24|0]=b;F[a+25|0]=b>>>8;F[a+26|0]=b>>>16;F[a+27|0]=b>>>24}}function Vx(a,b){var c=0,d=0,e=0,f=0;c=b>>>20&2047;a:{if(c>>>0<1023){break a}e=2;if(c>>>0>1075){break a}e=0;c=1075-c|0;d=c&31;if((c&63)>>>0>=32){c=1<>>32-d;d=f}if(a&d-1|b&c-!d){break a}e=a&d|b&c?1:2}return e}function Sh(a,b){a=a|0;b=b|0;var c=0;b=(b|0)<=0?96:b;H[a+368>>2]=b;c=T(+(b|0)*1e4/254+.5);a:{if(P(c)<2147483648){b=~~c;break a}b=-2147483648}H[a+40>>2]=b;a=H[a+4>>2];if(a){F[a+28|0]=b;F[a+29|0]=b>>>8;F[a+30|0]=b>>>16;F[a+31|0]=b>>>24}}function HA(a,b,c,d,e){if((b|1|c)<0){H[e>>2]=6;return d}a:{if(!c){if(!d){break a}zb[H[a+8>>2]](a,d);break a}if(!b){a=zb[H[a+4>>2]](a,c)|0;H[e>>2]=!a<<6;return a}a=zb[H[a+12>>2]](a,b,c,d)|0;H[e>>2]=!a<<6;return a?a:d}H[e>>2]=0;return 0}function w6(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;var h=0,i=0;h=M[a+56>>3];i=M[a+48>>3];a=H[a+4>>2];zb[H[H[a>>2]+400>>2]](a,b,c,d,e,f,g)|0;M[c>>3]=i/h*M[c>>3];M[d>>3]=h/i*M[d>>3];M[f>>3]=M[f>>3]/i;M[g>>3]=M[g>>3]/h}function jV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=H[a+16>>2];if(c){f=H[a+20>>2];a=0;while(1){e=(c-a>>>1|0)+a|0;d=H[(e<<4)+f>>2];if((d|0)==(b|0)){return e+1|0}d=b>>>0>d>>>0;c=d?c:e;a=d?e+1|0:a;if(c>>>0>a>>>0){continue}break}}return 0}function cU(a){a=a|0;var b=0,c=0;if(H[a+12>>2]==-559038737){c=H[a+32>>2];b=H[a>>2];if(b){zb[H[c+8>>2]](c,b)}H[a>>2]=0;b=H[a+24>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+24>>2]=0;b=H[a+28>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+12>>2]=0;H[a+28>>2]=0}}function gc(a,b,c){var d=0,e=0,f=0;if(!c){return 0}d=I[a|0];a:{if(!d){break a}while(1){b:{e=I[b|0];if(!e){break b}c=c-1|0;if(!c|(d|0)!=(e|0)){break b}b=b+1|0;d=I[a+1|0];a=a+1|0;if(d){continue}break a}break}f=d}return(f&255)-I[b|0]|0}function ef(a,b,c){c=H[c+4>>2]&176;if((c|0)==32){return b}a:{if((c|0)!=16){break a}b:{c:{c=I[a|0];switch(c-43|0){case 0:case 2:break c;default:break b}}return a+1|0}if((c|0)!=48|(b-a|0)<2|(I[a+1|0]|32)!=120){break a}a=a+2|0}return a}function dha(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[a>>2]=245276;Nb(a+4|0,0,936);F[a+388|0]=255;H[a+344>>2]=1119092736;H[a+68>>2]=e;F[a+390|0]=1;H[a+336>>2]=-1;F[a+348|0]=1;Yf(a,96);Sh(a,96);F[a+458|0]=1;cl(a,b,c,d,e);return a|0}function hN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[c>>2];d=((d>>31)+d|0)+32768&-65536;c=H[c+4>>2];c=((c>>31)+c|0)+32768&-65536;a:{if(H[a+4>>2]){break a}b=dk((N((b|0)!=0,36)+a|0)+16|0,d>>16,c>>16,H[a>>2],0);if(!b){break a}H[a+4>>2]=b}}function Fx(a){var b=0,c=0,d=0;if(F[H[a>>2]]-48>>>0>=10){return 0}while(1){d=H[a>>2];c=-1;if(b>>>0<=214748364){c=F[d|0]-48|0;b=N(b,10);c=(c|0)>(2147483647-b|0)?-1:c+b|0}H[a>>2]=d+1;b=c;if(F[d+1|0]-48>>>0<10){continue}break}return b}function uda(a){a=a|0;var b=0,c=0;b=H[a+20>>2];if((b|0)!=100){c=H[a>>2];H[c+24>>2]=b;H[c+20>>2]=21;zb[H[H[a>>2]>>2]](a)}zb[H[H[a>>2]+16>>2]](a);zb[H[H[a+24>>2]+8>>2]](a);QC(a);zb[H[H[a+404>>2]+16>>2]](a);zb[H[H[a+24>>2]+16>>2]](a)}function uL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=uo(a,9803,d);a:{if(e){break a}e=uo(a,9929,d+8|0);if(e){break a}e=6;if(H[d>>2]!=1|H[d+8>>2]!=1){break a}H[b>>2]=H[d+12>>2];H[c>>2]=H[d+4>>2];e=0}xb=d+16|0;return e|0}function rg(a,b){var c=0,d=0,e=0;a:{if(!a|!b){break a}c=H[a+16>>2];if((c|0)<=0){break a}c=((c<<2)+a|0)+20|0;a=a+20|0;while(1){d=H[H[a>>2]>>2];if(fc(H[d+8>>2],b)){a=a+4|0;if(c>>>0>a>>>0){continue}break a}break}e=H[d+20>>2]}return e}function cK(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:{switch(H[H[H[a>>2]+96>>2]+64>>2]-35|0){case 5:if(I[a+615|0]){break a}break;case 0:break b;default:break a}}a=H[b+16>>2]+(c<<3)|0;H[a>>2]=H[a>>2]+d}a=H[b+24>>2]+c|0;F[a|0]=I[a|0]|8}function y6(a,b){a=a|0;b=b|0;var c=0;b=xb-16|0;xb=b;c=H[a+4>>2];H[b+12>>2]=4;zb[H[H[c>>2]+312>>2]](c,b+12|0)|0;c=H[a+4>>2];H[b+8>>2]=32;zb[H[H[c>>2]+312>>2]](c,b+8|0)|0;c=H[a+4>>2];zb[H[H[c>>2]+344>>2]](c)|0;F[a+64|0]=0;xb=b+16|0}function xc(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}d=H[a+204>>2];if(!(I[a+351|0]&32?(d&768)!=768:!(d&2048))){break a}d=H[a+384>>2];while(1){e=c?c:-1;f=(e|0)!=(c|0);d=yd(d,b,e);c=c-e|0;b=b+e|0;if(f){continue}break}H[a+384>>2]=d}}function wh(a,b){var c=0,d=0,e=0,f=0;a:{c=H[a+280>>2];if((c|0)<=0){break a}d=H[a+284>>2];a=0;while(1){b:{f=a;e=fc(H[N(a,12)+d>>2],b);a=a+1|0;if((c|0)<=(a|0)){break b}if(e){continue}}break}if(e){break a}return N(f,12)+d|0}return 0}function E1(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=H[a+4>>2];a=H[a+8>>2];if((i|0)!=(a|0)){while(1){j=H[i>>2];zb[H[H[j>>2]+524>>2]](j,b,c,d,e,f,g,h);i=i+4|0;if((a|0)!=(i|0)){continue}break}}}function DV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(!a){return 0}g=1;if((b|0)<=0){return 0}f=um(b,e);H[d>>2]=f;f=Qb(f);H[c>>2]=f;a:{if(tm(a,b,f,d,e)){break a}g=0;a=H[c>>2];if(!a){break a}Kb(a);H[c>>2]=0}return g|0}function rja(a){a=a|0;var b=0,c=0,d=0,e=0;b=161;c=H[a+16>>2];a:{if(K[a+20>>2]>>0){break a}d=H[a+32>>2];b=3;e=Ef(a,H[c>>2]);if((e|0)<0){break a}H[d+120>>2]=e;a=Ef(a,H[c+4>>2]);if((a|0)<0){break a}H[d+116>>2]=a;b=0}return b|0}function MO(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=xb-16|0;xb=f;e=pc(b,16,f+12|0);g=H[f+12>>2];if(!g){H[e+12>>2]=2;H[e+8>>2]=d;H[e>>2]=c;H[e+4>>2]=c;H[a+8>>2]=0;H[a+12>>2]=0;H[a+4>>2]=e;H[a>>2]=b}xb=f+16|0;return g|0}function wd(a,b,c){var d=0,e=0,f=0;d=H[a+8>>2];f=H[a+4>>2];if(d>>>0>>0){e=H[a+20>>2];a:{if(e){b=zb[e|0](a,d,b,c)|0;break a}e=b;b=f-d|0;b=b>>>0>>0?b:c;Ob(e,H[a>>2]+d|0,b)}H[a+8>>2]=b+d;a=b>>>0>>0?85:0}else{a=85}return a}function cN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(H[a+4>>2]){break a}d=H[a+16>>2];e=a+52|0;f=H[e>>2];if((d+f|0)!=(b|0)){break a}g=H[a>>2];b=Il(a+16|0,c,0,d,0,g);if(!b){b=Il(e,c,d,f,0,g);if(!b){break a}}H[a+4>>2]=b}}function TY(a){a=a|0;var b=0,c=0,d=0;H[a>>2]=419784;b=H[a+4>>2];d=H[a+8>>2];if((b|0)!=(d|0)){while(1){c=H[b>>2];if(c){zb[H[H[c>>2]+4>>2]](c)}b=b+4|0;if((d|0)!=(b|0)){continue}break}b=H[a+4>>2]}H[a+8>>2]=b;if(b){Kb(b)}return a|0}function TM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=H[a>>2];d=a&2147483647;b=H[b>>2];e=b&2147483647;a:{if((d|0)==(e|0)){c=1;if(a>>>0>b>>>0){break a}return(a>>>0>>0?-1:0)|0}c=1;if(d>>>0>e>>>0){break a}c=d>>>0>>0?-1:0}return c|0}function EA(a){a=a|0;var b=0,c=0,d=0;H[a>>2]=400108;b=H[a+4>>2];d=H[a+8>>2];if((b|0)!=(d|0)){while(1){c=H[b>>2];if(c){zb[H[H[c>>2]+4>>2]](c)}b=b+4|0;if((d|0)!=(b|0)){continue}break}b=H[a+4>>2]}H[a+8>>2]=b;if(b){Kb(b)}return a|0}function HB(a,b,c,d,e){var f=0,g=0;f=xb-16|0;xb=f;a:{b:{if(!c|!d){break b}g=gma(d,0,c,0);if(yb){break b}b=Ij(b,g);if(b){break a}}b=H[a>>2];a=H[a+628>>2];H[f+8>>2]=d;H[f+4>>2]=c;H[f>>2]=e;Pb(a,b,270933,f);b=0}xb=f+16|0;return b}function yc(a){var b=0,c=0,d=0;c=H[a>>2];if(c){b=H[a+4>>2];if((c|0)==(b|0)){d=c}else{while(1){if(F[b-1|0]<0){Kb(H[b-12>>2])}d=b-24|0;if(F[b-13|0]<0){Kb(H[d>>2])}b=d;if((c|0)!=(b|0)){continue}break}d=H[a>>2]}H[a+4>>2]=c;Kb(d)}}function oy(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=I[b+11|0];d=e<<24>>24<0;c=d?H[b>>2]:b;b=d?H[b+4>>2]:e;if((b|0)==-1){b=ad(c)}zb[H[H[a>>2]+8>>2]](a,b);d=c;c=b<<2;Ob(H[a+12>>2],d,c);H[a+12>>2]=c+H[a+12>>2];H[a+16>>2]=H[a+16>>2]+b}function hma(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>>0)+e|0)|0;a=d>>31;b=c^a;f=f>>31;a=ima(h,e,b-a|0,(a^d)-((a>>>0>b>>>0)+a|0)|0)^f;b=a-f|0;yb=(g^yb)-((a>>>0>>0)+g|0)|0;return b}function Vj(a,b,c,d,e,f,g){var h=0;if(!H[c>>2]){zb[H[a+12>>2]](a,b,c,L[c+12>>2],L[c+16>>2],H[a+32>>2]);H[c>>2]=1;h=H[c+16>>2];H[c+4>>2]=H[c+12>>2];H[c+8>>2]=h}zb[H[a+20>>2]](a,b,c,d,e,f,g,H[a+40>>2]);L[c+16>>2]=g;L[c+12>>2]=f}function gja(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+16>>2];if(K[a+20>>2]>=b+12>>>0){c=H[a+32>>2];d=c,e=Ef(a,H[b>>2]),H[d+132>>2]=e;d=c,e=Ef(a,H[b+4>>2]),H[d+136>>2]=e;d=c,e=Ef(a,H[b+8>>2]),H[d+140>>2]=e;a=0}else{a=161}return a|0}function d4(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=H[a+4>>2];a=H[a+8>>2];if((i|0)!=(a|0)){while(1){j=H[i>>2];zb[H[H[j>>2]+16>>2]](j,b,c,d,e,f,g,h);i=i+4|0;if((a|0)!=(i|0)){continue}break}}}function Md(a,b,c,d){var e=0,f=0;f=xb-16|0;xb=f;a:{b:{if(!b|!c){break b}e=gma(c,0,b,0);if(yb){break b}e=Ij(0,e);if(e){break a}}e=H[a>>2];a=H[a+628>>2];H[f+8>>2]=c;H[f+4>>2]=b;H[f>>2]=d;Pb(a,e,270933,f);e=0}xb=f+16|0;return e}function Hj(a){a=a|0;H[a+104>>2]=0;H[a+108>>2]=0;H[a+16>>2]=1184;H[a+12>>2]=1185;H[a+8>>2]=1186;H[a+4>>2]=1187;H[a>>2]=1188;H[a+124>>2]=0;H[a+128>>2]=0;H[a+116>>2]=126;H[a+120>>2]=0;H[a+112>>2]=253808;H[a+20>>2]=0;return a|0}function sT(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=xb-16|0;xb=d;H[d+12>>2]=c;H[d+8>>2]=c;e=-1;c=rk(0,0,b,c);a:{if((c|0)<0){break a}f=a;c=c+1|0;a=Tb(c);H[f>>2]=a;if(!a){break a}e=rk(a,c,b,H[d+12>>2])}xb=d+16|0;return e|0}function kj(a){a=a|0;var b=0,c=0,d=0;Lp(a);F[a+96|0]=0;b=H[a+88>>2];c=H[a+84>>2];if((b|0)!=(c|0)){while(1){if(F[b-5|0]<0){Kb(H[b-16>>2])}d=b-28|0;if(F[b-17|0]<0){Kb(H[d>>2])}b=d;if((c|0)!=(b|0)){continue}break}}H[a+88>>2]=c}function hc(a,b){var c=0;a:{if(!a){break a}c=H[a+160>>2];if(!c){break a}zb[c|0](a,b)}c=xb-16|0;xb=c;H[c>>2]=b?b:259575;b=H[191568];Fc(b,259115,c);Mg(10,b);b:{if(!a){break b}b=H[a+156>>2];if(!b){break b}zb[b|0](a,1)}Ja();X()}function WG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a=xb-16|0;xb=a;H[a+12>>2]=0;a:{if(EB(c,b,0,a+12|0)){break a}d=Tb(H[a+12>>2]);if(!d){break a}if(EB(c,b,d,a+12|0)){Kb(d);break a}e=dt(d,H[a+12>>2],2,d,594)}xb=a+16|0;return e|0}function zda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a=H[a+332>>2]+128|0;b=H[b+84>>2];f=N(H[b+32>>2],J[c+16>>1]);b=N(H[b>>2],J[c>>1])+4|0;F[H[d>>2]+e|0]=I[a+(f+b>>>3&1023)|0];F[H[d+4>>2]+e|0]=I[a+(b-f>>>3&1023)|0]}function i8(a){a=a|0;var b=0,c=0;c=Ij(H[a+912>>2],H[a+916>>2]+1e3|0);if(!c){b=H[a>>2];H[b+20>>2]=56;H[b+24>>2]=100;zb[H[H[a>>2]>>2]](a)}H[a+912>>2]=c;H[a+784>>2]=1e3;b=H[a+916>>2];H[a+916>>2]=b+1e3;H[a+780>>2]=b+c;return 1}function Zf(a){a=a|0;var b=0;H[a>>2]=245276;H[197455]=0;aa(917,a|0)|0;b=H[197455];H[197455]=0;a:{if((b|0)==1){break a}H[197455]=0;aa(918,a|0)|0;b=H[197455];H[197455]=0;if((b|0)==1){break a}return a|0}ha(0)|0;_()|0;Zb();X()}function SY(a){a=a|0;var b=0,c=0,d=0;H[a>>2]=419784;b=H[a+4>>2];d=H[a+8>>2];if((b|0)!=(d|0)){while(1){c=H[b>>2];if(c){zb[H[H[c>>2]+4>>2]](c)}b=b+4|0;if((d|0)!=(b|0)){continue}break}b=H[a+4>>2]}H[a+8>>2]=b;if(b){Kb(b)}Kb(a)}function tha(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=H[a+4>>2];if(!a){return 0}a:{if(!e|!f){break a}if(b>>>0>f>>>0){return dj(f,0,d,a)|0}e=b>>>0>>0?e:b;if(e+c>>>0<=f>>>0){break a}c=f-e|0}return dj(b,c,d,a)|0}function fP(a){a=a|0;if(I[790196]){return H[197548]}if(!I[791320]){a=791296;while(1){a=Dc(a)+12|0;if((a|0)!=791320){continue}break}F[791320]=1}Zc(791296,239612);Zc(791308,239609);F[790196]=1;H[197548]=791296;return 791296}function dP(a){a=a|0;if(I[790204]){return H[197550]}if(!I[791352]){a=791328;while(1){a=Dc(a)+12|0;if((a|0)!=791352){continue}break}F[791352]=1}Yc(791328,778592);Yc(791340,778604);F[790204]=1;H[197550]=791328;return 791328}function Ys(a,b){if(b){H[b>>2]=H[a+68>>2]}a:{if(I[a+62|0]){break a}if(H[a+168>>2]){return 0}H[a+72>>2]=0;F[a+61|0]=0;F[a+62|0]=1;H[a+84>>2]=H[a+80>>2];b=N(H[a+68>>2],20);if(!b){break a}Nb(H[a+88>>2],0,b)}return H[a+88>>2]}function Vka(a,b){a=a|0;b=b|0;var c=0,d=0;d=150;c=H[a+12>>2];a:{if((c|0)==24428|(c|0)==24468){break a}d=0;c=nf(Vd(H[H[H[a>>2]+96>>2]+4>>2],9005),10157,0);if(!c){break a}c=H[c>>2];if(!c){break a}d=zb[c|0](a,b)|0}return d|0}function JG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=H[b+24>>2];H[197455]=0;a=la(644,a|0,c|0,d|0,e|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){c=!a;c=a|!e?c:I[d|0]!=0;Vc();return c|0}a=$()|0;_()|0;Vc();ea(a|0);X()}function Gia(a){a=a|0;var b=0,c=0,d=0;b=ac(a);c=xb+-64|0;xb=c;a:{if(!I[a|0]|(!a|!b)){break a}b:{if((b|0)>=0){b=(b|0)<63?b:63;a=Ob(c,a,b);F[a+b|0]=0;a=Zn(a);break b}a=Zn(a)}if(!a){break a}d=H[a+4>>2]}xb=c- -64|0;return d|0}function C7(a){a=a|0;var b=0,c=0;b=H[a+584>>2];RA(a);H[a+672>>2]=H[b+128>>2];H[a+668>>2]=H[b+132>>2];c=H[b+124>>2];a:{b:{if(c&2){Oj(b- -64|0);break b}if(!(c&1)){break a}Bg(b- -64|0)}H[b+124>>2]=0}Kb(b);H[a+584>>2]=0;Ai(a)}function uia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a=12;e=-1;a:{switch(d|0){case 2:a=8;case 1:d=H[a+b>>2];case 0:e=b;a=H[b+4>>2];b=c+d|0;a=a>>>0>>0;H[e+(a?16:12)>>2]=a?1:b;e=a?-1:0;break;default:break a}}return e|0}function t5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=16;H[c+8>>2]=27;H[a+8>>2]=H[a+8>>2]+16;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);xb=c+16|0}function p5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=16;H[c+8>>2]=10;H[a+8>>2]=H[a+8>>2]+16;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);xb=c+16|0}function m5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=16;H[c+8>>2]=12;H[a+8>>2]=H[a+8>>2]+16;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);xb=c+16|0}function l5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=16;H[c+8>>2]=11;H[a+8>>2]=H[a+8>>2]+16;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);xb=c+16|0}function _k(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=H[a+4>>2];if(!d){break a}e=H[a+44>>2];if(!e|b>>>0>=e>>>0){break a}b=(b<<2)+d|0;F[b+40|0]=I[c|0];F[b+41|0]=I[c+1|0];F[b+42|0]=I[c+2|0];F[b+43|0]=I[c+3|0];F[a+445|0]=0}}function W4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=16;H[c+8>>2]=13;H[a+8>>2]=H[a+8>>2]+16;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);xb=c+16|0}function O4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=16;H[c+8>>2]=54;H[a+8>>2]=H[a+8>>2]+16;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);xb=c+16|0}function yG(a){H[a+32>>2]=0;Kb(H[a+36>>2]);H[a+100>>2]=0;H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0;Kb(H[a+104>>2]);H[a+96>>2]=0;H[a+100>>2]=0;H[a+32>>2]=0;H[a+104>>2]=0;Kb(H[a+36>>2]);H[a+36>>2]=0;H[a+28>>2]=0;H[a+32>>2]=0}function xz(a,b,c){var d=0;d=H[a+208>>2];if(d){zb[H[H[d>>2]+4>>2]](d)}a:{if(!c){c=Qb(20);H[197455]=0;b=da(1858,c|0,b|0)|0;d=H[197455];H[197455]=0;if((d|0)==1){break a}H[a+208>>2]=b}return}a=$()|0;_()|0;Kb(c);ea(a|0);X()}function o5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=16;H[c+8>>2]=9;H[a+8>>2]=H[a+8>>2]+16;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);Lb(H[a+4>>2],b+4|0,4);xb=c+16|0}function U1(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;var h=0,i=0;h=H[a+4>>2];a=H[a+8>>2];if((h|0)!=(a|0)){while(1){i=H[h>>2];zb[H[H[i>>2]+464>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0)){continue}break}}}function KP(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;H[e+12>>2]=d;d=Kf(e+8|0,e+12|0);H[197455]=0;a=ok(a,b,c);b=H[197455];H[197455]=0;if((b|0)!=1){me(d);xb=e+16|0;return a|0}a=$()|0;_()|0;me(d);ea(a|0);X()}function K6(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=xb-16|0;xb=d;if(!I[a+64|0]){zb[H[H[a>>2]+28>>2]](a)}M[d>>3]=M[a+48>>3]*b+M[a+16>>3];M[d+8>>3]=M[a+56>>3]*c+M[a+24>>3];a=H[a+4>>2];zb[H[H[a>>2]+316>>2]](a,d,d+8|0)|0;xb=d+16|0}function lf(a){var b=0,c=0,d=0,e=0;d=ej(a);e=zb[H[a+12>>2]](a)|0;if(!(F[a|0]&1)){b=H[a+52>>2];if(b){H[b+56>>2]=H[a+56>>2]}c=H[a+56>>2];if(c){H[c+52>>2]=b}if(H[197036]==(a|0)){H[197036]=c}Kb(H[a+96>>2]);Kb(a)}return d|e}function aH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=O(d);e=O(e);f=f|0;var g=O(0),h=O(0);g=L[b+12>>2];h=L[b+8>>2];L[c+12>>2]=h*L[c+12>>2];L[c+16>>2]=g*L[c+16>>2];a=H[b>>2];zb[H[a+16>>2]](a,H[b+4>>2],c,O(h*d),O(g*e),H[a+36>>2])}function Qh(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;a:{g=H[a+4>>2];if(!g){break a}h=H[a+44>>2];if(!h|b>>>0>=h>>>0){break a}b=(b<<2)+g|0;F[b+41|0]=d;F[b+40|0]=e;F[b+42|0]=c;F[b+43|0]=f;F[a+445|0]=0}}function L3(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;var h=0,i=0;h=H[a+4>>2];a=H[a+8>>2];if((h|0)!=(a|0)){while(1){i=H[h>>2];zb[H[H[i>>2]+88>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0)){continue}break}}}function K3(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;var h=0,i=0;h=H[a+4>>2];a=H[a+8>>2];if((h|0)!=(a|0)){while(1){i=H[h>>2];zb[H[H[i>>2]+92>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0)){continue}break}}}function bG(a,b,c,d,e){var f=0;if(!H[c>>2]){zb[H[a+12>>2]](a,b,c,L[c+12>>2],L[c+16>>2],H[a+32>>2]);H[c>>2]=1;f=H[c+16>>2];H[c+4>>2]=H[c+12>>2];H[c+8>>2]=f}zb[H[a+16>>2]](a,b,c,d,e,H[a+36>>2]);L[c+16>>2]=e;L[c+12>>2]=d}function RG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;f=H[b+24>>2];a=0;H[197455]=0;c=ca(640,f|0,c|0,d|0)|0;d=H[197455];H[197455]=0;if((d|0)!=1){if(c){H[e>>2]=c;a=1}Vc();return a|0}a=$()|0;_()|0;Vc();ea(a|0);X()}function yz(a,b){a=a|0;b=b|0;var c=0;c=H[a+208>>2];if(c){zb[H[H[c>>2]+4>>2]](c)}c=Qb(8);H[197455]=0;H[c+4>>2]=b;H[c>>2]=401052;b=H[197455];H[197455]=0;if((b|0)!=1){H[a+208>>2]=c;return}a=$()|0;_()|0;Kb(c);ea(a|0);X()}function ts(a,b,c,d){var e=0;a:{if(!H[a+4>>2]){if(!d){break a}zb[d|0](c);return}e=H[a+88>>2];if(e){zb[e|0](H[a+84>>2])}b=b?b:783776;if(H[b>>2]){H[b>>2]=H[b>>2]+1}tl(H[a+80>>2]);H[a+88>>2]=d;H[a+84>>2]=c;H[a+80>>2]=b}}function p7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=H[a+584>>2];if(!(zb[H[e+36>>2]](a,b,c,d)|0)){return 0}if((c|0)>0){d=H[e+8>>2];while(1){zb[H[e+40>>2]](a,b,d);b=b+d|0;c=c-d|0;if((c|0)>0){continue}break}}return 1}function nW(a,b){a=a|0;b=b|0;var c=0;c=H[a+240>>2];if(c){zb[H[H[c>>2]+4>>2]](c)}c=Qb(8);H[197455]=0;H[c+4>>2]=b;H[c>>2]=435456;b=H[197455];H[197455]=0;if((b|0)!=1){H[a+240>>2]=c;return}a=$()|0;_()|0;Kb(c);ea(a|0);X()}function kr(a){a=a|0;var b=0,c=0,d=0;b=xb-16|0;xb=b;if(H[a+44>>2]){while(1){a:{Nd(b+8|0,a,c&255);d=I[b+11|0];if(d){break a}c=c+1|0;if(K[a+44>>2]>(c&65535)>>>0){continue}}break}a=(d|0)!=0}else{a=0}xb=b+16|0;return a|0}function gma(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=c>>>16|0;f=a>>>16|0;j=N(e,f);g=c&65535;h=a&65535;i=N(g,h);f=(i>>>16|0)+N(f,g)|0;e=(f&65535)+N(e,h)|0;yb=(N(b,c)+j|0)+N(a,d)+(f>>>16)+(e>>>16)|0;return i&65535|e<<16}function d9(a){a=a|0;var b=0,c=0,d=0;b=H[a+584>>2];if(H[b+68>>2]!=8){if(H[a+608>>2]>=H[a+600>>2]){Uc(a)}d=H[b+64>>2];c=H[a+604>>2];H[a+604>>2]=c+1;F[c|0]=d;H[a+608>>2]=H[a+608>>2]+1;H[b+64>>2]=0;H[b+68>>2]=8}return 1}function k1(a,b){a=a|0;b=b|0;var c=0,d=0;H[b+72>>2]=1869968492;d=H[a+36>>2];H[b+124>>2]=d;c=H[a+24>>2];H[b+108>>2]=H[a+20>>2];H[b+112>>2]=c;c=H[a+32>>2];H[b+116>>2]=H[a+28>>2];H[b+120>>2]=c;H[b+124>>2]=d&-2;return 0}function Mu(a,b){a=a|0;b=b|0;var c=0;c=H[b+4>>2];H[a+4>>2]=H[b>>2];H[a+8>>2]=c;H[a+28>>2]=H[b+24>>2];c=H[b+20>>2];H[a+20>>2]=H[b+16>>2];H[a+24>>2]=c;c=H[b+12>>2];H[a+12>>2]=H[b+8>>2];H[a+16>>2]=c;xu(a,b,0);xu(a,b,1)}function G6(a){a=a|0;var b=0,c=0;b=xb-16|0;xb=b;if(!I[a+64|0]){zb[H[H[a>>2]+28>>2]](a);c=H[a+8>>2];zb[H[H[c>>2]+60>>2]](b,c);zb[H[H[a>>2]+32>>2]](a,M[b>>3],M[b+8>>3])}a=H[a+4>>2];zb[H[H[a>>2]+340>>2]](a)|0;xb=b+16|0}function W7(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=H[H[a+584>>2]>>2];while(1){a:{g=1;if((c|0)<=0){break a}e=(c|0)<(f|0)?c:f;c=c-e|0;g=-1;h=TA(a,b,e,d);b=b+e|0;if((h|0)>=0){continue}}break}return g|0}function M5(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;H[d+12>>2]=36;H[d+8>>2]=36;H[a+8>>2]=H[a+8>>2]+36;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],d+8|0,4);Lb(H[a+4>>2],d+12|0,4);Hk(a,b);Lb(H[a+4>>2],c,4);xb=d+16|0}function HK(a,b){a=a|0;b=b|0;var c=0,d=0;d=Af(96640,b);a:{if(d){break a}d=0;if(!a){break a}c=H[a+4>>2];if(!c){break a}c=Vd(c,9005);if(!c){break a}c=H[H[c>>2]+20>>2];if(!c){break a}d=zb[H[c+16>>2]](a,b)|0}return d|0}function Dq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!(!a|!b)){a=J[c+4>>1]|J[c+6>>1]<<16;d=J[c>>1]|J[c+2>>1]<<16;G[b+90>>1]=d;G[b+92>>1]=d>>>16;G[b+94>>1]=a;G[b+96>>1]=a>>>16;G[b+98>>1]=J[c+8>>1];H[b+8>>2]=H[b+8>>2]|32}}function vL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=xb-16|0;xb=d;e=H[a+16>>2];a:{if((e|0)>0){while(1){if(!Fl(a,c,d+12|0)){if(!fc(b,H[d+12>>2])){break a}}c=c+1|0;if((e|0)!=(c|0)){continue}break}}c=0}xb=d+16|0;return c|0}function Xm(a,b,c,d){var e=0,f=0;f=H[a+4>>2];if(f>>>0>b>>>0){e=H[a+20>>2];a:{if(e){c=zb[e|0](a,b,c,d)|0;break a}e=c;c=f-b|0;c=c>>>0>>0?c:d;Ob(e,H[a>>2]+b|0,c)}H[a+8>>2]=b+c;a=c>>>0>>0?85:0}else{a=85}return a}function JP(a){a=a|0;var b=0,c=0,d=0;b=xb-16|0;xb=b;H[b+12>>2]=a;a=Kf(b+8|0,b+12|0);H[197455]=0;c=H[H[197059]>>2]?4:1;d=H[197455];H[197455]=0;if((d|0)!=1){me(a);xb=b+16|0;return c|0}b=$()|0;_()|0;me(a);ea(b|0);X()}function JA(a){a=a|0;var b=0,c=0;H[a>>2]=399324;b=H[a+4>>2];c=H[H[b>>2]+8>>2];H[197455]=0;ia(c|0,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){b=H[a+4>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}return a|0}ha(0)|0;_()|0;Zb();X()}function wha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-32|0;xb=e;b=Yk(e,b,c);H[197455]=0;a=ca(955,a|0,b|0,d|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){wg(b);xb=e+32|0;return a|0}a=$()|0;_()|0;wg(b);ea(a|0);X()}function gx(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a>>2];a:{if(!c){break a}d=H[c+24>>2];b:{if((d|0)==H[c+28>>2]){b=zb[H[H[c>>2]+52>>2]](c,b)|0;break b}H[c+24>>2]=d+4;H[d>>2]=b}if((b|0)!=-1){break a}H[a>>2]=0}return a|0}function Z3(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0;h=H[a+4>>2];a=H[a+8>>2];if((h|0)!=(a|0)){while(1){i=H[h>>2];zb[H[H[i>>2]+40>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0)){continue}break}}}function X3(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0;h=H[a+4>>2];a=H[a+8>>2];if((h|0)!=(a|0)){while(1){i=H[h>>2];zb[H[H[i>>2]+44>>2]](i,b,c,d,e,f,g);h=h+4|0;if((a|0)!=(h|0)){continue}break}}}function Ng(a){a=a|0;G[a+12>>1]=65535;H[a+24>>2]=0;H[a+28>>2]=0;H[a+8>>2]=0;H[a+44>>2]=0;H[a+36>>2]=0;H[a+40>>2]=0;H[a+16>>2]=0;H[a+20>>2]=255;F[a+14|0]=255;H[a+4>>2]=424548;H[a>>2]=424484;H[a+32>>2]=0;return a|0}function JJ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=12;a:{if(fc(b,10673)){break a}e=7;b:{c:{if(d){b=Pd(c,0);break c}b=H[c>>2]}switch(b-35|0){case 0:case 5:break b;default:break a}}H[a- -64>>2]=b;e=0}return e|0}function $J(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!(!I[a+616|0]|(!I[a+615|0]|H[H[H[a>>2]+96>>2]+64>>2]!=40))){if(I[a+617|0]){break a}}a=H[b+16>>2]+(c<<3)|0;H[a+4>>2]=H[a+4>>2]+d}a=H[b+24>>2]+c|0;F[a|0]=I[a|0]|16}function mD(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(b-257>>>0<4294967040){break b}c=b;c:{switch(J[a+26>>1]-1|0){case 0:c=c>>>0<2?c:2;break b;case 7:break b;case 3:break c;default:break a}}c=c>>>0<16?c:16}H[a+48>>2]=c}}function nq(a,b,c){var d=0,e=0,f=0,g=0;e=H[a+8>>2];f=H[a+4>>2];if(e>>>0>>0){d=H[a+20>>2];a:{if(d){d=zb[d|0](a,e,b,c)|0;break a}g=b;b=f-e|0;d=b>>>0>>0?b:c;Ob(g,H[a>>2]+e|0,d)}H[a+8>>2]=H[a+8>>2]+d}return d}function Zka(a){a=a|0;var b=0,c=0;c=H[a+712>>2];a:{if(!(I[a+8|0]&8)|!H[a+540>>2]){break a}b=nf(Vd(H[H[a+96>>2]+4>>2],9005),9908,0);if(!b){break a}b=H[b>>2];if(!b){break a}return zb[b|0](a)|0}return H[c+1348>>2]}function Ki(a){a=a|0;var b=0;H[a>>2]=245276;H[197455]=0;aa(917,a|0)|0;b=H[197455];H[197455]=0;a:{if((b|0)!=1){H[197455]=0;aa(918,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){break a}}ha(0)|0;_()|0;Zb();X()}Kb(a)}function Hda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;d=H[d>>2]+e|0;a=H[a+332>>2]+128|0;b=H[b+84>>2];e=N(H[b+4>>2],J[c+2>>1]);b=N(H[b>>2],J[c>>1])+4|0;F[d|0]=I[a+(e+b>>>3&1023)|0];F[d+1|0]=I[a+(b-e>>>3&1023)|0]}function x1(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;g=H[a+4>>2];a=H[a+8>>2];if((g|0)!=(a|0)){while(1){h=H[g>>2];zb[H[H[h>>2]+556>>2]](h,b,c,d,e,f);g=g+4|0;if((a|0)!=(g|0)){continue}break}}}function Xc(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a:{if(!c){break a}if(b){if(K[a+20>>2]<=b>>>0){break a}return((H[c>>2]+c|0)+(H[a+44>>2]<<2)|0)+N(H[a+52>>2],b)|0}d=(H[c>>2]+c|0)+(H[a+44>>2]<<2)|0}return d|0}function Wq(a,b){var c=0,d=0,e=0;c=H[a+156>>2];a:{if(!c){break a}d=H[c+4>>2];if(!(d&1)){break a}e=H[a+88>>2];if(e){c=H[H[a+4>>2]+100>>2];zb[H[c+8>>2]](c,e);c=H[a+156>>2];d=H[c+4>>2]}H[c+4>>2]=d&-2}H[a+88>>2]=b}function U8(a,b,c){a=a|0;b=b|0;c=c|0;b=H[a+584>>2];c=H[b+396>>2]+1|0;H[b+396>>2]=c;if(!((c>>>0)%K[a+176>>2]|0)){a=b+536|0;c=H[a+4>>2];if(c){zb[H[c+40>>2]](a)}H[a+20>>2]=0;H[a+4>>2]=0;F[b+393|0]=0;F[b+400|0]=0}}function $8(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if((c|0)>0){d=H[a+584>>2];while(1){jB(a,b,H[d+96>>2],H[d+12>>2]);Kc(H[d+96>>2],b,H[d+8>>2]);e=H[d+8>>2];b=e+b|0;c=c-e|0;if((c|0)>0){continue}break}}return 1}function ZK(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=zb[H[a+516>>2]](a,c?1986884728:1752003704,b,d+12|0)|0;if(!e){H[(c?756:752)+a>>2]=H[d+12>>2];H[(c?856:852)+a>>2]=H[b+8>>2]}xb=d+16|0;return e|0}function F1(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=H[a+4>>2];a=H[a+8>>2];if((g|0)!=(a|0)){while(1){h=H[g>>2];zb[H[H[h>>2]+520>>2]](h,b,c,d,e,f);g=g+4|0;if((a|0)!=(g|0)){continue}break}}}function Do(a,b,c){var d=0;d=H[a+16>>2];if(!d){H[a+36>>2]=1;H[a+24>>2]=c;H[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(H[a+24>>2]!=2){break a}H[a+24>>2]=c;return}F[a+54|0]=1;H[a+24>>2]=2;H[a+36>>2]=H[a+36>>2]+1}}function lE(a,b){var c=0,d=0;if(ec(a,0,1)){d=H[b+4>>2];c=H[a+84>>2]+N(H[a+72>>2],20)|0;H[c>>2]=H[b>>2];H[c+4>>2]=d;H[c+16>>2]=H[b+16>>2];d=H[b+12>>2];H[c+8>>2]=H[b+8>>2];H[c+12>>2]=d;H[a+72>>2]=H[a+72>>2]+1}}function hg(a,b){a=a|0;b=b|0;a=H[a>>2];b=zd(b);if(!(H[H[a+8>>2]+(b<<2)>>2]!=0&b>>>0>2]-H[a+8>>2]>>2>>>0)){a=oa(4)|0;H[a>>2]=782716;H[a>>2]=782992;Ca(a|0,783040,3350);X()}return H[H[a+8>>2]+(b<<2)>>2]}function Ux(a){var b=0;a:{b=a;a=ac(a);if((((ye(b,1,a,784784)|0)!=(a|0)?-1:0)|0)<0){break a}b:{if(H[196216]==10){break b}a=H[196201];if((a|0)==H[196200]){break b}H[196201]=a+1;F[a|0]=10;break a}qm(784784,10)}}function o8(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0){c=H[a+804>>2];a:{if((c|0)<(b|0)){b=H[a>>2];H[b+20>>2]=123;zb[H[b+4>>2]](a,-1);H[a+800>>2]=296304;b=2;break a}H[a+800>>2]=H[a+800>>2]+b;b=c-b|0}H[a+804>>2]=b}}function hia(a,b){a=a|0;b=b|0;var c=0;c=Qb(20);H[c+8>>2]=0;H[c+12>>2]=0;H[c+16>>2]=0;H[197455]=0;ga(895,c|0,a|0,b|0);a=H[197455];H[197455]=0;if((a|0)==1){a=$()|0;_()|0;KD(c+8|0);Kb(c);ea(a|0);X()}return c|0}function jf(a,b,c){var d=0,e=0,f=0;if(!b){H[c>>2]=0;return 0}e=c;c=ac(b);d=c+1|0;f=!d;a:{if(c>>>0<=2147483646){c=zb[H[a+4>>2]](a,d)|0;a=!c<<6;break a}c=0;a=d?6:0}if(!(f|a)){Ob(c,b,d);a=0}H[e>>2]=a;return c}function i9(a,b){a=a|0;b=b|0;var c=0;b=H[a+584>>2];H[b+72>>2]=0;H[b+64>>2]=0;H[b+68>>2]=0;H[b+60>>2]=J[a+94>>1]!=2?290864:291120;a=H[b+84>>2];if(a){c=H[b+12>>2];H[a+4>>2]=0;H[a>>2]=c}H[b+108>>2]=0;return 1}function S9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=qg(a);if(!c){return 1}while(1){f=zb[H[a+544>>2]](a,b,e,d)|0;if((f|0)==1){b=b+e|0;g=(c|0)!=(e|0);c=c-e|0;if(g){continue}}break}return(f|0)==1|0}function R9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=Ve(a);if(!c){return 1}while(1){f=zb[H[a+544>>2]](a,b,e,d)|0;if((f|0)==1){b=b+e|0;g=(c|0)!=(e|0);c=c-e|0;if(g){continue}}break}return(f|0)==1|0}function Kz(a){var b=0,c=0,d=0,e=0;b=H[a>>2];if(b){c=H[a+4>>2];if((c|0)==(b|0)){d=b}else{while(1){d=c-12|0;e=H[d>>2];if(e){H[c-8>>2]=e;Kb(e)}c=d;if((c|0)!=(b|0)){continue}break}d=H[a>>2]}H[a+4>>2]=b;Kb(d)}}function Av(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;a:{if(c>>>0<=1){F[a+11|0]=c;vf(a,b,c);H[d+12>>2]=0;H[(c<<2)+a>>2]=H[d+12>>2];break a}e=I[a+11|0];jk(a,1,c-1|0,e,0,e,c,b)}xb=d+16|0;return a|0}function Js(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[c>>2]=0;H[c+4>>2]=0;H[c+40>>2]=0;H[c+44>>2]=0;H[c+32>>2]=0;H[c+36>>2]=0;H[c+24>>2]=0;H[c+28>>2]=0;H[c+16>>2]=0;H[c+20>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;return 0}function xl(a,b){var c=0;a:{if((b|0)==65535){break a}if(b>>>0>=391){b=b-391|0;if(b>>>0>=K[a+1356>>2]){break a}return H[H[a+1360>>2]+(b<<2)>>2]}a=H[a+3084>>2];if(!a){break a}c=zb[H[a+20>>2]](b)|0}return c}function mR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=xb-16|0;xb=b;a:{if(!(I[f+11|0]>>>7|0)){H[a+8>>2]=H[f+8>>2];c=H[f+4>>2];H[a>>2]=H[f>>2];H[a+4>>2]=c;break a}df(a,H[f>>2],H[f+4>>2])}xb=b+16|0}function MU(a){a=a|0;var b=0;b=H[H[a+156>>2]>>2];H[a+184>>2]=0;H[a+188>>2]=0;H[a+160>>2]=0;H[a+164>>2]=0;H[a+168>>2]=0;H[a+172>>2]=0;H[a+176>>2]=0;H[a+180>>2]=0;H[a+192>>2]=0;H[a+188>>2]=b;Oh(b);return 0}function Ie(a,b,c,d,e){var f=0;f=xb-256|0;xb=f;if(!(e&73728|(c|0)<=(d|0))){c=c-d|0;d=c>>>0<256;Nb(f,b&255,d?c:256);if(!d){while(1){xe(a,f,256);c=c-256|0;if(c>>>0>255){continue}break}}xe(a,f,c)}xb=f+256|0}function dda(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+24>>2];d=H[c>>2];H[c>>2]=d+1;F[d|0]=b;b=H[c+4>>2]-1|0;H[c+4>>2]=b;a:{if(b){break a}if(zb[H[c+12>>2]](a)|0){break a}b=H[a>>2];H[b+20>>2]=25;zb[H[b>>2]](a)}}function i0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!(!b|!c)){a=H[H[a>>2]-12>>2]+a|0;zb[H[H[a>>2]+12>>2]](a);H[a+24>>2]=b;d=I[d|0];H[a+12>>2]=b+c;H[a+8>>2]=b;H[a+4>>2]=b;F[a+28|0]=d}return(b|0)!=0&(c|0)!=0}function Wb(a){a=a|0;var b=0;a:{if(!a|!H[a>>2]){break a}b=H[a>>2];H[a>>2]=b-1;if((b|0)!=1){break a}H[a>>2]=-57005;b=H[a+8>>2];if(b){Gf(b+24|0,b);Vc();Kb(b)}b=H[a+28>>2];if(b){zb[b|0](H[a+24>>2])}Kb(a)}}function Cw(a,b,c,d,e,f){var g=0,h=0,i=0;g=xb-16|0;xb=g;F[g+15|0]=0;F[g+14|0]=f;F[g+13|0]=e;F[g+12|0]=37;if(f){Bw(g+13|0,g+14|0)}h=c,i=(eb(b|0,H[c>>2]-b|0,g+12|0,d|0,H[a>>2])|0)+b|0,H[h>>2]=i;xb=g+16|0}function dR(){var a=0,b=0;a:{H[197853]=0;H[197852]=778696;H[197852]=773768;H[197852]=773392;H[197455]=0;a=va(3442)|0;b=H[197455];H[197455]=0;if((b|0)!=1){H[197854]=a;break a}a=$()|0;_()|0;ea(a|0);X()}}function $t(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=xb-16|0;xb=e;g=H[b>>2];a:{if(g>>>0>=d>>>0){break a}h=c,i=Ub(a,1,g,d,H[c>>2],e+12|0),H[h>>2]=i;f=H[e+12>>2];if(f){break a}H[b>>2]=d;f=0}xb=e+16|0;return f}function qM(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-16|0;xb=c;H[c+12>>2]=b;d=0;a:{if(b>>>0>65535){break a}if(F[a+20|0]&1){d=Lu(H[a>>2],H[a+16>>2],c+12|0,0);break a}d=Ku(a,c+12|0,0)}a=d;xb=c+16|0;return a|0}function q2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+376>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function p2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+380>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function hO(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=H[a+20>>2];if(I[a+65|0]){a=H[e+8>>2];f=G[e+2>>1];g=H[e+4>>2]+(f<<3)|0;H[g+4>>2]=c>>10;H[g>>2]=b>>10;F[a+f|0]=d?1:2}G[e+2>>1]=J[e+2>>1]+1}function _2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+244>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function X4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=115;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function X2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+256>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function W1(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+456>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function F2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+324>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function Ac(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;a:{if(!H[a+156>>2]){d=1;break a}H[a+168>>2]=H[a+168>>2]+1;H[e+12>>2]=d;d=Us(a,b,c,d);H[a+168>>2]=H[a+168>>2]-1}xb=e+16|0;return d|0}function v8(a){a=a|0;var b=0;b=H[a+584>>2];H[a+672>>2]=H[b+892>>2];H[a+668>>2]=H[b+896>>2];H[a+676>>2]=H[b+900>>2];if(H[b+488>>2]){VA(b)}b=H[b+912>>2];if(b){Kb(b)}Kb(H[a+584>>2]);H[a+584>>2]=0;Ai(a)}function s5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=57;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function q5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=17;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function j5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=21;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function i5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=98;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function fn(a,b,c){var d=0,e=0;a:{b:{if(!b|!c){break b}d=T(+(b|0)*+(c|0)/1e5+.5);if(!(d<=2147483647)|!(d>=-2147483648)){break a}if(P(d)<2147483648){e=~~d;break b}e=-2147483648}H[a>>2]=e;e=1}return e}function f5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=67;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function a5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=20;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function _4(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=48;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function Y9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=qg(a);if(!c){return 1}while(1){f=zb[H[a+540>>2]](a,b,e,d)|0;if(f){b=b+e|0;g=(c|0)!=(e|0);c=c-e|0;if(g){continue}}break}return(f|0)!=0|0}function X9(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=Ve(a);if(!c){return 1}while(1){f=zb[H[a+540>>2]](a,b,e,d)|0;if(f){b=b+e|0;g=(c|0)!=(e|0);c=c-e|0;if(g){continue}}break}return(f|0)!=0|0}function N5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=34;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function I5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=37;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function Gka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=H[a+712>>2];a:{b:{if(!a){break b}d=6;if(H[a+1504>>2]==65535|K[a+20>>2]<=b>>>0){break a}if(!c){break b}H[c>>2]=J[H[a+1188>>2]+(b<<1)>>1]}d=0}return d|0}function G5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=22;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function F5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=18;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function E5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=40;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function D5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=58;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function A5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=12;H[c+8>>2]=19;H[a+8>>2]=H[a+8>>2]+12;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Lb(H[a+4>>2],b,4);xb=c+16|0}function z1(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+548>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function t1(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+572>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function iia(){var a=0,b=0;a=Qb(20);H[a+8>>2]=0;H[a+12>>2]=0;H[a+16>>2]=0;H[197455]=0;H[a>>2]=0;H[a+4>>2]=0;b=H[197455];H[197455]=0;if((b|0)==1){b=$()|0;_()|0;KD(a+8|0);Kb(a);ea(b|0);X()}return a|0}function cw(a,b,c,d,e){var f=0;f=xb-16|0;xb=f;H[f+12>>2]=e;e=Kf(f+8|0,f+12|0);H[197455]=0;a=sk(a,b,c,d);b=H[197455];H[197455]=0;if((b|0)!=1){me(e);xb=f+16|0;return a}a=$()|0;_()|0;me(e);ea(a|0);X()}function I1(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0;var f=0,g=0;f=H[a+4>>2];a=H[a+8>>2];if((f|0)!=(a|0)){while(1){g=H[f>>2];zb[H[H[g>>2]+508>>2]](g,b,c,d,e);f=f+4|0;if((a|0)!=(f|0)){continue}break}}}function Gga(a){a=a|0;var b=0,c=0;b=H[a+24>>2];c=H[b+48>>2];if((zb[H[H[c>>2]+16>>2]](c,H[b+52>>2],1,4096)|0)!=4096){c=H[a>>2];H[c+20>>2]=38;zb[H[c>>2]](a)}H[b+4>>2]=4096;H[b>>2]=H[b+52>>2];return 1}function cja(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=3;c=H[a+32>>2];a:{if(!c){break a}d=H[c+364>>2];if(!d){break a}b=160;if(I[d+557|0]){break a}e=c,f=Ef(a,H[H[a+16>>2]>>2]),H[e+360>>2]=f;b=0}return b|0}function cba(a){a=a|0;var b=0,c=0,d=0;b=xb-16|0;xb=b;c=H[a+460>>2];H[b+12>>2]=c;a:{if(!c){break a}while(1){if(!IB(a,b+12|0)){break a}d=d+1|0;if(H[b+12>>2]){continue}break}}xb=b+16|0;return d&65535}function xga(a){a=a|0;var b=0,c=0,d=0;b=H[a+924>>2];if(b){Kb(b)}H[a+376>>2]=0;H[a+380>>2]=0;b=H[a+16>>2];H[a+372>>2]=b;c=H[a+20>>2];H[a+384>>2]=c;d=a;a=oc(N(b,c),1);H[d+924>>2]=a;return(a|0)!=0|0}function bi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;H[e+12>>2]=d;a:{if(H[a+156>>2]){Us(a,b,c,H[e+12>>2]);break a}a=H[191568];ye(106065,9,1,a);sp(a,c,H[e+12>>2]);Mg(10,a)}xb=e+16|0}function HO(a,b){a=a|0;b=b|0;H[a>>2]=782716;H[a>>2]=782808;if(I[b+11|0]>>>7|0){b=H[b>>2]}H[197455]=0;da(3812,a+4|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){return a|0}a=$()|0;_()|0;ea(a|0);X()}function EB(a,b,c,d){var e=0,f=0,g=0;f=35;a:{if(!a|!(I[a+8|0]&8)){break a}f=7;e=H[a+96>>2];g=H[H[e>>2]+32>>2];if(!g){break a}e=zb[g|0](e,9632)|0;if(!e){break a}f=zb[H[e>>2]](a,b,0,c,d)|0}return f}function zr(a){var b=0,c=0,d=0;b=H[a>>2];if(b){c=H[a+4>>2];if((c|0)==(b|0)){d=b}else{while(1){d=c-12|0;if(F[c-1|0]<0){Kb(H[d>>2])}c=d;if((c|0)!=(b|0)){continue}break}d=H[a>>2]}H[a+4>>2]=b;Kb(d)}}function KD(a){var b=0,c=0,d=0;b=H[a>>2];if(b){c=H[a+4>>2];if((c|0)==(b|0)){d=b}else{while(1){d=c-20|0;if(F[c-9|0]<0){Kb(H[d>>2])}c=d;if((c|0)!=(b|0)){continue}break}d=H[a>>2]}H[a+4>>2]=b;Kb(d)}}function EJ(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;b=$j(a,b,c+8|0,c+7|0);a:{if(b){break a}a=H[H[H[a+4>>2]+128>>2]+52>>2];if(!a){break a}zb[H[H[a>>2]+4>>2]](H[a+4>>2],c+8|0)}xb=c+16|0;return b|0}function ZI(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[b>>2];H[b>>2]=0;if(c>>>0>254){return 0}while(1){if((c|0)==255){return 0}c=c+1|0;d=J[H[a+16>>2]+(c<<1)>>1];if(!d){continue}break}H[b>>2]=c;return d|0}function Po(a,b,c,d){var e=0;e=xb-16|0;xb=e;H[e+12>>2]=d;d=Kf(e+8|0,e+12|0);H[197455]=0;a=lm(a,b,c);b=H[197455];H[197455]=0;if((b|0)!=1){me(d);xb=e+16|0;return a}a=$()|0;_()|0;me(d);ea(a|0);X()}function Jfa(a,b){a=a|0;b=b|0;var c=0;c=H[a>>2];if((b|0)<0){b=H[c+108>>2];if(!(H[c+104>>2]<3?b:0)){zb[H[c+8>>2]](a);b=H[c+108>>2]}H[c+108>>2]=b+1;return}if(H[c+104>>2]>=(b|0)){zb[H[c+8>>2]](a)}}function Iq(a,b){var c=0,d=0,e=0;c=xb-16|0;xb=c;H[c+12>>2]=0;H[c+8>>2]=0;a:{if(!Jq(a,b,c+12|0,c+8|0)){break a}d=b;b=H[c+8>>2];if(I[a+b|0]?(d|0)!=(b|0):0){break a}e=H[c+12>>2]}xb=c+16|0;return e}function Bd(a,b){a=a|0;b=b|0;H[a>>2]=245276;Nb(a+4|0,0,936);F[a+388|0]=255;H[a+344>>2]=1119092736;H[a+68>>2]=b;F[a+390|0]=1;H[a+336>>2]=-1;F[a+348|0]=1;Yf(a,96);Sh(a,96);F[a+458|0]=1;return a|0}function sQ(a){a=a|0;H[a+48>>2]=2333;H[a+52>>2]=0;H[a+24>>2]=500;H[a+28>>2]=400;H[a+12>>2]=86;H[a+16>>2]=30;H[a+40>>2]=1667;H[a+44>>2]=275;H[a+32>>2]=1e3;H[a+36>>2]=275;G[a+20>>1]=256;return 0}function rC(a,b){var c=0;c=35;a:{if(!a|!(I[a+8|0]&2)){break a}c=6;if((b|0)<0|H[a+28>>2]<=(b|0)){break a}c=H[H[H[a+96>>2]+12>>2]+92>>2];if(c){return zb[c|0](H[a+88>>2],b)|0}Vf(a,b);c=0}return c}function n9(a,b){a=a|0;b=b|0;var c=0;b=xb-16|0;xb=b;c=1;a:{if(!Zm(a)){break a}if(!og(a,294400,1)){Pb(H[a+628>>2],270863,271594,0);c=0;break a}H[b>>2]=1;c=rc(a,65536,b)}a=c;xb=b+16|0;return a|0}function Q_(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-16|0;xb=d;c=d+8|0;b=H[(H[H[b>>2]-68>>2]+b|0)+120>>2]+672|0;H[c>>2]=H[b>>2];H[c+4>>2]=H[b+4>>2];b=H[c>>2];M[a+8>>3]=H[c+4>>2];M[a>>3]=b|0;xb=d+16|0}function QU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;a=bb(H[a+60>>2],b|0,c|0,d&255,e+8|0)|0;if(a){H[197018]=a;a=-1}else{a=0}xb=e+16|0;yb=a?-1:H[e+12>>2];return(a?-1:H[e+8>>2])|0}function QC(a){var b=0;b=a;a=zb[H[H[a+4>>2]>>2]](a,1,32)|0;H[b+404>>2]=a;H[a+28>>2]=0;H[a+24>>2]=1314;H[a+20>>2]=1315;H[a+16>>2]=1316;H[a+12>>2]=1317;H[a+8>>2]=1318;H[a+4>>2]=1319;H[a>>2]=1320}function Hq(a,b){var c=0;a:{b:{if(!a|!b){break b}c=T(1e15/+(a|0)/+(b|0)+.5);b=c<=2147483647;if(P(c)<2147483648){a=~~c}else{a=-2147483648}if(!b){break b}if(c>=-2147483648){break a}}a=0}return a}function ir(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;F[e+11|0]=0;F[e+8|0]=d>>>16;d=d<<8|(d&65280)>>>8;F[e+9|0]=d;F[e+10|0]=d>>>8;H[e+4>>2]=H[e+8>>2];on(a,b,c,e+4|0,0);xb=e+16|0}function Rf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{e=H[a+208>>2];if(!(!H[a+156>>2]|!e)|!e){break a}zb[H[H[e>>2]+52>>2]](e,(c?2:0)|b);if(!d){break a}a=H[a+208>>2];zb[H[H[a>>2]+56>>2]](a)}}function Ap(a,b,c){var d=0,e=0,f=0;a:{if(c){while(1){e=c>>>1|0;d=(e<<2)+b|0;f=zb[1459](a,d)|0;b:{if((f|0)<0){c=e;break b}if(!f){break a}b=d+4|0;c=(e^-1)+c|0}if(c){continue}break}}d=0}return d}function ud(a,b){var c=0,d=0;c=85;a:{if((b|0)<0){break a}b=H[a+8>>2]+b|0;d=H[a+20>>2];b:{if(d){if(!(zb[d|0](a,b,0,0)|0)){break b}break a}if(b>>>0>K[a+4>>2]){break a}}H[a+8>>2]=b;c=0}return c}function nr(a,b){a=a|0;b=b|0;var c=0;a:{if(J[b+26>>1]>23){break a}c=H[b+336>>2];if((c|0)<0){break a}Nd(a,b,c&255);return}b=H[b+340>>2];F[a|0]=b;F[a+1|0]=b>>>8;F[a+2|0]=b>>>16;F[a+3|0]=b>>>24}function R6(a){a=a|0;var b=0,c=0,d=0;b=H[a+8>>2];if(b){b=zb[H[H[b>>2]+16>>2]](b)|0;c=H[b+12>>2];d=H[b+4>>2];M[a+48>>3]=M[a+32>>3]/P(+(H[b+8>>2]-H[b>>2]|0));M[a+56>>3]=M[a+40>>3]/P(+(c-d|0))}}function zQ(){var a=0;a:{H[197911]=0;H[197910]=778696;H[197910]=773768;H[197455]=0;aa(3549,791648)|0;a=H[197455];H[197455]=0;if((a|0)!=1){H[197910]=776252;break a}a=$()|0;_()|0;ea(a|0);X()}}function w2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+356>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function u1(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+568>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function o3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+184>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function n3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+188>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function cg(a,b){var c=0,d=0;c=xb-16|0;xb=c;if(I[a+11|0]>>>7|0){Zv(H[a>>2])}H[a+8>>2]=H[b+8>>2];d=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=d;F[b+11|0]=0;H[c+12>>2]=0;H[b>>2]=H[c+12>>2];xb=c+16|0}function Z1(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+448>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function V1(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+460>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function U2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+268>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function T2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+272>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function P2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+288>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function P1(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+484>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function K1(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+500>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function E2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+328>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function D2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+332>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function BQ(){var a=0;a:{H[197907]=0;H[197906]=778696;H[197906]=773768;H[197455]=0;aa(3549,791632)|0;a=H[197455];H[197455]=0;if((a|0)!=1){H[197906]=776096;break a}a=$()|0;_()|0;ea(a|0);X()}}function B2(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+336>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function A1(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+544>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function yp(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 w1(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+560>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function hD(a,b){var c=0,d=0;H[a+16>>2]=10;H[a+12>>2]=11;H[a+8>>2]=0;H[a>>2]=80;H[a+4>>2]=241;b=zb[H[b+4>>2]](b,964)|0;if(!b){H[a+20>>2]=b;return 64}c=a,d=Nb(b,0,964),H[c+20>>2]=d;return 0}function Qb(a){a=a|0;var b=0;a=a?a:1;a:{while(1){b=Tb(a);if(b){break a}b=H[197979];if(b){zb[b|0]();continue}break}a=oa(4)|0;H[a>>2]=782716;H[a>>2]=782696;Ca(a|0,782768,3811);X()}return b|0}function Q3(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+72>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function L5(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=32;H[c+8>>2]=35;H[a+8>>2]=H[a+8>>2]+32;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],c+8|0,4);Lb(H[a+4>>2],c+12|0,4);Hk(a,b);xb=c+16|0}function G1(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;var e=0,f=0;e=H[a+4>>2];a=H[a+8>>2];if((e|0)!=(a|0)){while(1){f=H[e>>2];zb[H[H[f>>2]+516>>2]](f,b,c,d);e=e+4|0;if((a|0)!=(e|0)){continue}break}}}function Bx(a,b,c,d){a:{if(!a){break a}b:{switch(b+2|0){case 0:F[a|0]=c;return;case 1:G[a>>1]=c;return;case 2:case 3:H[a>>2]=c;return;case 5:break b;default:break a}}H[a>>2]=c;H[a+4>>2]=d}}function sca(a,b){a=a|0;b=b|0;var c=0;if(!H[a+208>>2]){c=H[a+392>>2];H[c+20>>2]=b;H[c+16>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;if(!b){H[c+4>>2]=1390;return}b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}}function pp(a,b,c,d,e,f,g,h,i){var j=0;j=xb-16|0;xb=j;Ze(j,b,c,d,e,f,g,h,i^-2147483648);d=H[j>>2];c=H[j+4>>2];b=H[j+12>>2];H[a+8>>2]=H[j+8>>2];H[a+12>>2]=b;H[a>>2]=d;H[a+4>>2]=c;xb=j+16|0}function hQ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{while(1){if((c|0)==(d|0)){break a}b:{if(K[c>>2]>127){break b}if(!(J[mk()+(H[c>>2]<<1)>>1]&b)){break b}c=c+4|0;continue}break}d=c}return d|0}function Ol(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=xb-32|0;xb=c;g=c+8|0;f=c+21|0;d=f;e=c+32|0;if(!((d|0)==(e|0)|(b|0)>=0)){F[d|0]=45;d=d+1|0;b=0-b|0}vv(g,d,e,b);xv(a,f,H[c+8>>2]);xb=e}function KO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=b+4|0;e=H[a>>2];d=H[a+4>>2]-e|0;f=H[c>>2]-d|0;H[c>>2]=f;if((d|0)>0){Ob(f,e,d)}cm(a,c);cm(a+4|0,b+8|0);cm(a+8|0,b+12|0);H[b>>2]=H[b+4>>2]}function Iv(a,b){var c=0;if(b>>>0<=99){return Jv(a,b)}if(b>>>0<=999){c=(b>>>0)/100|0;F[a|0]=c+48;a=a+1|0;b=J[(b-N(c,100)<<1)+781424>>1];F[a|0]=b;F[a+1|0]=b>>>8;return a+2|0}return Ql(a,b)}function rv(a,b){var c=0;a:{if(!b){break a}b=Oe(b,782020,782276,0);if(!b|H[b+8>>2]&(H[a+8>>2]^-1)){break a}if(!$d(H[a+12>>2],H[b+12>>2],0)){break a}c=$d(H[a+16>>2],H[b+16>>2],0)}return c}function qJ(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+420>>2];a:{if((c|0)>0){d=H[a+424>>2];a=0;while(1){if(!fc(b,H[(a<<2)+d>>2])){break a}a=a+1|0;if((c|0)!=(a|0)){continue}break}}a=0}return a|0}function fr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(!b){break a}d=H[a+4>>2];if(!d){break a}e=H[a+44>>2];if(!e){break a}f=b;b=e<<2;c=c<<2;Ob(d+40|0,f,b>>>0>>0?b:c);F[a+445|0]=0}}function Ui(a,b){var c=0;a:{c=H[a+12>>2];if((c|0)==(H[a+8>>2]+(H[a+16>>2]<<3)|0)){a=H[a+4>>2];if(!a|H[a>>2]){break a}H[a>>2]=130;return}H[c>>2]=b;b=H[a+12>>2];H[b+4>>2]=2;H[a+12>>2]=b+8}}function Ge(a,b){var c=0,d=0;c=xb-16|0;xb=c;if(I[a+11|0]>>>7|0){bm(H[a>>2])}H[a+8>>2]=H[b+8>>2];d=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=d;F[b+11|0]=0;F[c+15|0]=0;F[b|0]=I[c+15|0];xb=c+16|0}function DH(a){a=a|0;var b=0,c=0;b=H[a+4>>2];c=H[H[b+712>>2]+3080>>2];a:{if(!c){break a}b=Vd(H[H[b+96>>2]+4>>2],11010);if(!b){break a}b=zb[H[c+8>>2]](b)|0;H[H[a+156>>2]+36>>2]=b}return 0}function Cd(a,b){var c=0;a:{c=H[a+12>>2];if((c|0)==(H[a+8>>2]+(H[a+16>>2]<<3)|0)){a=H[a+4>>2];if(!a|H[a>>2]){break a}H[a>>2]=130;return}H[c>>2]=b;b=H[a+12>>2];H[b+4>>2]=0;H[a+12>>2]=b+8}}function zU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=H[a+84>>2];d=c+256|0;f=Kg(e,0,d);d=f?f-e|0:d;c=c>>>0>d>>>0?d:c;Ob(b,e,c);b=e+d|0;H[a+84>>2]=b;H[a+8>>2]=b;H[a+4>>2]=c+e;return c|0}function yI(a){a=a|0;var b=0,c=0,d=0;c=xb-16|0;xb=c;d=LC(H[H[a>>2]+504>>2],c+12|0);b=a;a=H[c+12>>2];H[b+44>>2]=a;if(a){b=H[a>>2];if(!(!b|!H[b+96>>2])){H[b+88>>2]=a}}xb=c+16|0;return d|0}function fc(a,b){var c=0,d=0;c=I[a|0];d=I[b|0];a:{if(!c|(c|0)!=(d|0)){break a}while(1){d=I[b+1|0];c=I[a+1|0];if(!c){break a}b=b+1|0;a=a+1|0;if((c|0)==(d|0)){continue}break}}return c-d|0}function Wj(a,b){var c=0,d=0;b=b<<2;d=H[b+783932>>2];while(1){a:{c=H[(b+H[a+80>>2]|0)+156>>2]!=(d|0);if(c){break a}a=H[a+12>>2];if(!a){break a}if((a|0)!=783672){continue}}break}return c}function de(a){var b=0,c=0;b=H[a+32>>2];if(K[a+36>>2]>b+3>>>0){c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);c=c<<24|c<<8&16711680|(c>>>8&65280|c>>>24);b=b+4|0}H[a+32>>2]=b;return c}function ZR(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;g=xb-16|0;xb=g;H[g+8>>2]=624576549;H[g+12>>2]=1394948685;h=a;a=g+16|0;b=Gg(h,b,c,d,e,f,g+8|0,a);xb=a;return b|0}function Sb(a,b,c){var d=0,e=0;a:{if(!c){break a}while(1){e=H[(d<<3)+b>>2];if(!e){break a}if((a|0)==(e|0)){return H[((d<<3)+b|0)+4>>2]}d=d+1|0;if((d|0)!=(c|0)){continue}break}}return 0}function Ok(a){var b=0,c=0;a:{b:{if(!a){break b}b=T(1e10/+(a|0)+.5);c=b<=2147483647;if(P(b)<2147483648){a=~~b}else{a=-2147483648}if(!c){break b}if(b>=-2147483648){break a}}a=0}return a}function KZ(a){a=a|0;var b=0;b=H[a+4>>2];H[b+180>>2]=-21;H[b+184>>2]=0;H[b+196>>2]=21;H[b+200>>2]=0;H[b+188>>2]=0;H[b+192>>2]=0;zb[H[H[H[a+12>>2]+56>>2]+8>>2]](H[a+52>>2],0,0);return 0}function xk(a){a=a|0;var b=0;b=H[192139];H[a>>2]=b;H[H[b-12>>2]+a>>2]=H[192147];H[a+12>>2]=767680;H[a+8>>2]=H[192148];if(F[a+55|0]<0){Kb(H[a+44>>2])}qk(a+12|0);ge(a- -64|0);return a|0}function zs(a,b){var c=0;if(H[a+4>>2]){c=H[a+136>>2];if(c){zb[c|0](H[a- -64>>2])}if(b){H[a+136>>2]=0;H[a+208>>2]=b;H[a- -64>>2]=0;return}H[a+136>>2]=0;H[a+208>>2]=616;H[a- -64>>2]=0}}function rK(a,b){a=a|0;b=b|0;var c=0;H[a+116>>2]=b;c=H[a>>2];if(F[c+8|0]&1){Vf(c,b);po(a);return 0}b=zb[H[H[c+540>>2]+108>>2]](c,b,a+12|0)|0;if(!b){return 0}H[a+116>>2]=-1;return b|0}function dH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=H[a+12>>2];H[e>>2]=0;if((d|0)==-1){d=ac(c)}b=a;f=H[a+84>>2];a=H[a+80>>2];return zb[H[a+220>>2]](b,f,c,d,e,H[a+76>>2])|0}function Uo(a){a=a|0;var b=0,c=0;b=H[a+8>>2];if(b){a=H[a+16>>2];c=H[a+4>>2];H[b+108>>2]=H[a>>2];H[b+112>>2]=c;H[b+124>>2]=H[a+16>>2];c=H[a+12>>2];H[b+116>>2]=H[a+8>>2];H[b+120>>2]=c}}function UH(a,b){a=a|0;b=b|0;var c=0;c=Af(24608,b);a:{if(c){break a}c=0;if(!a){break a}a=H[a+4>>2];if(!a){break a}a=Vd(a,9005);if(!a){break a}c=zb[H[H[a>>2]+32>>2]](a,b)|0}return c|0}function Eha(a){a=a|0;var b=0;if(a){b=H[a>>2];a:{if(!b){break a}if(!I[a+8|0]){H[197455]=0;ia(948,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){break a}ha(0)|0;_()|0;Zb();X()}Kb(b)}Kb(a)}}function Ed(a,b,c){var d=0;d=xb-16|0;xb=d;H[d+12>>2]=b;H[197455]=0;H[a>>2]=H[d+12>>2];H[a+4>>2]=H[c>>2];b=H[197455];H[197455]=0;if((b|0)!=1){xb=d+16|0;return a}ha(0)|0;_()|0;Zb();X()}function wka(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[b>>2];d=H[a>>2];if((c|0)!=(d|0)){return(c>>>0>d>>>0?-1:1)|0}a=H[a+4>>2];b=H[b+4>>2];if(a>>>0>=b>>>0){a=a>>>0>b>>>0}else{a=-1}return a|0}function wI(a){a=a|0;var b=0,c=0,d=0;d=xb-16|0;xb=d;b=H[a+4>>2];c=H[b+504>>2];a:{if(!H[b+84>>2]){c=c+84|0;b=0;break a}b=c;c=d+12|0;b=Vq(b,c)}H[a+160>>2]=H[c>>2];xb=d+16|0;return b|0}function RP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=xb-16|0;xb=a;H[a+12>>2]=e;H[a+8>>2]=d-c;b=xb-16|0;xb=b;xb=b+16|0;xb=a+16|0;b=a+8|0;a=a+12|0;return H[(K[b>>2]>2]?b:a)>>2]}function OI(a,b){a=a|0;b=b|0;var c=0,d=0;b=H[a>>2];c=H[b+712>>2];if(!H[c+1188>>2]){return 163}d=H[H[c+3084>>2]+4>>2];if(!d){return 7}return zb[d|0](H[b+100>>2],a,H[c+20>>2],7,0,b)|0}function Fj(a,b){var c=0,d=0;d=H[a+4>>2];c=H[a+12>>2];c=(c|0)<0?(c|0)<(d|0)?d:c:d-c|0;b=b?b:(N(c,12)|0)/10|0;H[a+28>>2]=b;H[a+24>>2]=(b-c|0)/2;H[a+20>>2]=H[a+8>>2]+(H[a+16>>2]/-2|0)}function z3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+144>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function y1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+552>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function x3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+152>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function v2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+360>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function v1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+564>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function u3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+164>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function u2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+364>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function t2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+368>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function s2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+372>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function s1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+576>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function r1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+580>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function qia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(a){a:{if(c&8){c=0;if(!H[a+20>>2]){break a}H[a+4>>2]=65535;d=a,e=Tb(65535),H[d>>2]=e;break a}c=H[a+4>>2]}H[a+8>>2]=c}return a|0}function o2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+384>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function ni(a){var b=0,c=0;b=H[196233];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?c:0){break a}if(a>>>0>Ab()<<16>>>0){if(!(ib(a|0)|0)){break a}}H[196233]=a;return b}H[197018]=48;return-1}function n2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+388>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function m2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+392>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function l2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+396>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function k2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+400>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function j2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+404>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function i2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+408>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function h2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+412>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function f2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+416>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function e2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+420>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function c2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+428>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function b2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+432>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function RL(a,b){a=a|0;b=b|0;H[a+16>>2]=b;b=I[b+6|0]|I[b+7|0]<<8|(I[b+8|0]<<16|I[b+9|0]<<24);H[a+28>>2]=0;H[a+32>>2]=0;H[a+24>>2]=b<<8&16711680|b<<24|(b>>>8&65280|b>>>24);return 0}function R1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+476>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function Q1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+480>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function O1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+488>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function L2(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+300>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function I3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+112>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function H3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+116>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function H1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+512>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function G3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+120>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function F3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+124>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function E3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+128>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function D1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+528>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function C1(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+540>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function zT(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=H[c+4>>2];c=H[c>>2];H[d>>2]=c;H[d+4>>2]=e;H[d+8>>2]=c;H[d+12>>2]=e;uv(a,d,b);H[a>>2]=768864;xb=d+16|0;return a|0}function wia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a=239463;a:{if((c&3)==1){break a}a=239470;if(c&4){break a}d=(c&8)>>>3|0;a=c<<28>>31&239460}c=0;if(!(!b|!d)){c=pi(b,a)}return c|0}function bU(a,b){a=a|0;b=b|0;H[a+4>>2]=b;F[a|0]=0;if(!H[(H[H[b>>2]-12>>2]+b|0)+16>>2]){if(H[(H[H[b>>2]-12>>2]+b|0)+72>>2]){qx(H[(H[H[b>>2]-12>>2]+b|0)+72>>2])}F[a|0]=1}return a|0}function b4(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+24>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function Z6(a,b){a=a|0;b=b|0;var c=0;a:{if(H[a+24>>2]!=2){break a}c=H[a+20>>2];if((zb[H[H[c>>2]+24>>2]](c)|0)!=2){break a}xz(H[a+20>>2],b,0);a=H[a+20>>2];zb[H[H[a>>2]+16>>2]](a)}}function Ufa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-1;a:{if((b|0)==-1){break a}if(!(zb[H[H[a>>2]+20>>2]](a,b,c)|0)){break a}d=b;if(!c){break a}d=zb[H[H[a>>2]+24>>2]](a)|0}return d|0}function R3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+68>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function P3(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+76>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function x7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[a+584>>2];if((b|0)==317){H[d>>2]=J[c>>1];H[a+48>>2]=H[a+48>>2]|4;H[a+12>>2]=H[a+12>>2]|8;return 1}return zb[H[d+48>>2]](a,b,c)|0}function m6(a){a=a|0;a=H[H[a>>2]-12>>2]+a|0;H[a+64>>2]=398600;H[a>>2]=398560;H[a+12>>2]=398960;H[a+8>>2]=398580;if(F[a+55|0]<0){Kb(H[a+44>>2])}wf(a+12|0);ge(a- -64|0);return a|0}function iQ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){a:{if((c|0)!=(d|0)){if(K[c>>2]>127){break a}if(!(J[mk()+(H[c>>2]<<1)>>1]&b)){break a}}else{c=d}return c|0}c=c+4|0;continue}}function T1(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+468>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function I8(a){a=a|0;var b=0,c=0,d=0;b=xb-224|0;xb=b;c=b+16|0;zb[H[H[a>>2]+12>>2]](a,c);d=H[H[a+12>>2]+628>>2];H[b>>2]=c;Pb(d,288972,289105,b);ed(H[H[a+12>>2]+584>>2]+4|0,1);X()}function ys(a,b){var c=0;if(H[a+4>>2]){c=H[a+144>>2];if(c){zb[c|0](H[a+72>>2])}if(b){H[a+144>>2]=0;H[a+216>>2]=b;H[a+72>>2]=0;return}H[a+144>>2]=0;H[a+216>>2]=618;H[a+72>>2]=0}}function ws(a,b){var c=0;if(H[a+4>>2]){c=H[a+148>>2];if(c){zb[c|0](H[a+76>>2])}if(b){H[a+148>>2]=0;H[a+220>>2]=b;H[a+76>>2]=0;return}H[a+148>>2]=0;H[a+220>>2]=619;H[a+76>>2]=0}}function vs(a,b){var c=0;if(H[a+4>>2]){c=H[a+152>>2];if(c){zb[c|0](H[a+80>>2])}if(b){H[a+152>>2]=0;H[a+224>>2]=b;H[a+80>>2]=0;return}H[a+152>>2]=0;H[a+224>>2]=620;H[a+80>>2]=0}}function q8(a,b){a=a|0;b=b|0;b=zb[H[H[a+584>>2]+904>>2]](a,b)|0;if(b>>>0>2]){a=J[a+206>>1]<<3;if(b>>>0<0-a>>>0){b=((a+b|0)-1>>>0)/(a>>>0)|0}else{b=0}b=N(b,a)}return b|0}function _3(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+36>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function Wg(a,b){var c=0;a:{if(!a|!b){break a}c=H[a+4>>2];if(!c){break a}a=G[a+2>>1];if((a|0)<=0){break a}a=(a<<3)+c|0;while(1){un(c,b);c=c+8|0;if(a>>>0>c>>>0){continue}break}}}function Rk(a,b){var c=0,d=0;a:{if(!a|!b){break a}c=H[a+672>>2];b:{if(c){c=zb[c|0](a,b)|0;break b}c=Tb(b)}if(!c){if(I[a+206|0]&16){break a}hc(a,258720);X()}d=Nb(c,0,b)}return d}function Cs(a,b){var c=0;if(H[a+4>>2]){c=H[a+100>>2];if(c){zb[c|0](H[a+28>>2])}if(b){H[a+100>>2]=0;H[a+172>>2]=b;H[a+28>>2]=0;return}H[a+100>>2]=0;H[a+172>>2]=610;H[a+28>>2]=0}}function Bs(a,b){var c=0;if(H[a+4>>2]){c=H[a+112>>2];if(c){zb[c|0](H[a+40>>2])}if(b){H[a+112>>2]=0;H[a+184>>2]=b;H[a+40>>2]=0;return}H[a+112>>2]=0;H[a+184>>2]=612;H[a+40>>2]=0}}function As(a,b){var c=0;if(H[a+4>>2]){c=H[a+124>>2];if(c){zb[c|0](H[a+52>>2])}if(b){H[a+124>>2]=0;H[a+196>>2]=b;H[a+52>>2]=0;return}H[a+124>>2]=0;H[a+196>>2]=614;H[a+52>>2]=0}}function $3(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=H[a+4>>2];a=H[a+8>>2];if((d|0)!=(a|0)){while(1){e=H[d>>2];zb[H[H[e>>2]+32>>2]](e,b,c);d=d+4|0;if((a|0)!=(d|0)){continue}break}}}function zJ(a){a=a|0;var b=0,c=0;b=H[a+4>>2];c=H[b+552>>2];a:{if(!c){break a}b=Vd(H[H[b+96>>2]+4>>2],10580);if(!b){break a}b=zb[H[c+4>>2]](b)|0;H[H[a+156>>2]+36>>2]=b}return 0}function n6(a){a=a|0;var b=0,c=0,d=0;c=a+56|0;H[c>>2]=398600;b=a-8|0;H[b>>2]=398560;d=a+4|0;H[d>>2]=398960;H[a>>2]=398580;if(F[a+47|0]<0){Kb(H[b+44>>2])}wf(d);ge(c);return b|0}function kh(a){var b=0,c=0;b=xb-16|0;xb=b;if(I[a+11|0]>>>7|0){c=H[a>>2]}else{c=a}if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}H[b+8>>2]=c+(a<<2);xb=b+16|0;return H[b+8>>2]}function X1(a,b){a=a|0;b=b|0;var c=0;c=18;a:{if(H[b+72>>2]!=1869968492){break a}c=H[a>>2];a=a+20|0;c=vB(c,G[b+110>>1],G[b+108>>1],a);if(c){break a}uB(b+108|0,a);c=0}return c|0}function QI(a){a=a|0;var b=0,c=0;b=H[a+4>>2];c=H[b+320>>2];a:{if(!c){break a}b=Vd(H[H[b+96>>2]+4>>2],10070);if(!b){break a}b=zb[H[c+4>>2]](b)|0;H[H[a+156>>2]+36>>2]=b}return 0}function D6(a){a=a|0;var b=0,c=0;b=xb-16|0;xb=b;c=H[a+4>>2];H[b+12>>2]=64;zb[H[H[c>>2]+308>>2]](c,b+12|0)|0;a=H[a+4>>2];H[b+8>>2]=64;zb[H[H[a>>2]+312>>2]](a,b+8|0)|0;xb=b+16|0}function kz(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=6;a:{if(H[b+72>>2]!=H[a+16>>2]){break a}if(c){Wg(b+108|0,c)}e=0;if(!d){break a}je(b+108|0,H[d>>2],H[d+4>>2])}return e|0}function jQ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){if(K[b>>2]<=127){a=J[mk()+(H[b>>2]<<1)>>1]}else{a=0}G[d>>1]=a;d=d+2|0;b=b+4|0;continue}break}return c|0}function bx(a){var b=0,c=0;b=H[a>>2];if(b){c=H[b+12>>2];a:{if((c|0)==H[b+16>>2]){b=zb[H[H[b>>2]+36>>2]](b)|0;break a}b=H[c>>2]}if((b|0)!=-1){return!H[a>>2]}H[a>>2]=0}return 1}function ria(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!b){return 0}a=H[b+4>>2];e=H[b+12>>2];a=a>>>0>>0?a-e|0:d;Ob(c,e+H[b>>2]|0,a);H[b+12>>2]=a+H[b+12>>2];return a|0}function cx(a){var b=0,c=0;b=H[a>>2];if(b){c=H[b+12>>2];a:{if((c|0)==H[b+16>>2]){b=zb[H[H[b>>2]+36>>2]](b)|0;break a}b=I[c|0]}if((b|0)!=-1){return!H[a>>2]}H[a>>2]=0}return 1}function Y7(a,b){a=a|0;b=b|0;H[a+556>>2]=1578;H[a+548>>2]=1578;H[a+540>>2]=1578;H[a+560>>2]=1579;H[a+552>>2]=1579;H[a+544>>2]=1580;H[a+536>>2]=1581;H[a+532>>2]=1582;return 1}function Rca(a,b){a=a|0;b=b|0;var c=0;c=H[a+396>>2];if(b){b=H[a>>2];H[b+20>>2]=3;zb[H[b>>2]](a)}b=H[a+32>>2];H[c+52>>2]=0;H[c+56>>2]=0;H[c+48>>2]=b;H[c+60>>2]=H[a+272>>2]<<1}function Fs(a,b){var c=0;if(H[a+4>>2]){c=H[a+84>>2];if(c){zb[c|0](H[a+12>>2])}if(b){H[a+84>>2]=0;H[a+12>>2]=0;H[a+156>>2]=b;return}H[a+84>>2]=0;H[a+12>>2]=0;H[a+156>>2]=606}}function Es(a,b){var c=0;if(H[a+4>>2]){c=H[a+92>>2];if(c){zb[c|0](H[a+20>>2])}if(b){H[a+92>>2]=0;H[a+164>>2]=b;H[a+20>>2]=0;return}H[a+92>>2]=0;H[a+164>>2]=608;H[a+20>>2]=0}}function Ds(a,b){var c=0;if(H[a+4>>2]){c=H[a+96>>2];if(c){zb[c|0](H[a+24>>2])}if(b){H[a+96>>2]=0;H[a+168>>2]=b;H[a+24>>2]=0;return}H[a+96>>2]=0;H[a+168>>2]=609;H[a+24>>2]=0}}function Cba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(a){gma(c,0,b,0);if(yb){Xb(a,259316);return 0}d=H[a+204>>2];H[a+204>>2]=d|1048576;e=Rd(a,N(b,c));H[a+204>>2]=d}return e|0}function mv(a){var b=0,c=0;b=H[a+224>>2];if(b){c=H[b>>2];if(c){Kb(c)}H[b>>2]=0;if(H[b+72>>2]==8){Bg(b+4|0)}Kb(b);H[a+224>>2]=0}zb[H[a+20>>2]](H[a+28>>2],H[a+48>>2])|0;Kb(a)}function gba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!a){break a}H[a+180>>2]=b;H[a+444>>2]=d?d:1412;H[a+172>>2]=c?c:1413;if(!H[a+176>>2]){break a}H[a+176>>2]=0;Xb(a,259451)}}function e6(a){a=a|0;a=H[H[a>>2]-12>>2]+a|0;H[a+64>>2]=398600;H[a>>2]=398560;H[a+12>>2]=398960;H[a+8>>2]=398580;if(F[a+55|0]<0){Kb(H[a+44>>2])}wf(a+12|0);ge(a- -64|0);Kb(a)}function Ul(a,b,c){var d=0;d=xb-16|0;xb=d;H[d+8>>2]=a;a=H[d+8>>2];xb=d+16|0;d=xb-16|0;xb=d;H[d+8>>2]=b;xb=d+16|0;d=H[d+8>>2];b=d-a|0;if((a|0)!=(d|0)){$c(c,a,b)}return b+c|0}function AU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;H[c>>2]=0;d=6;a:{if(!b|!a){break a}b=b-1|0;if(b>>>0>=K[a+408>>2]){break a}H[c>>2]=H[(H[a+416>>2]+(b<<4)|0)+4>>2];d=0}return d|0}function zM(a,b){a=a|0;b=b|0;var c=0,d=0;d=H[a+16>>2]+6|0;a=H[b>>2];while(1){a=a+1|0;if(a>>>0>255){H[b>>2]=0;return 0}c=I[a+d|0];if(!c){continue}break}H[b>>2]=a;return c|0}function xW(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-16|0;xb=d;c=d+8|0;b=H[b+168>>2]+132|0;H[c>>2]=G[b>>1];H[c+4>>2]=G[b+2>>1];b=G[c>>1];M[a+8>>3]=G[c+4>>1];M[a>>3]=b|0;xb=d+16|0}function oD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=H[a+4>>2];a=!f|!H[a+44>>2];if(!a){b=(b<<2)+f|0;F[c|0]=I[b+42|0];F[d|0]=I[b+41|0];F[e|0]=I[b+40|0]}return!a|0}function nka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=1;a:{if(!I[a|0]|H[a+8>>2]!=(b|0)|H[a+12>>2]!=(c|0)){break a}if(c){if(md(d,H[a+16>>2],c<<2)){break a}}e=0}return e|0}function Vo(a,b){var c=0,d=0;c=xb-16|0;xb=c;a:{if(!(I[b+11|0]>>>7|0)){H[a+8>>2]=H[b+8>>2];d=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=d;break a}Jo(a,H[b>>2],H[b+4>>2])}xb=c+16|0}function Rd(a,b){var c=0;a:{if(!a|!b){break a}c=H[a+672>>2];b:{if(c){c=zb[c|0](a,b)|0;break b}c=Tb(b)}if(c){break a}c=0;if(I[a+206|0]&16){break a}hc(a,258720);X()}return c}function R_(a,b){a=a|0;b=b|0;var c=0,d=0;d=xb-16|0;xb=d;c=d+8|0;b=H[b+120>>2]+672|0;H[c>>2]=H[b>>2];H[c+4>>2]=H[b+4>>2];b=H[c>>2];M[a+8>>3]=H[c+4>>2];M[a>>3]=b|0;xb=d+16|0}function z5(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=59;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function y5(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=60;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function x5(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=61;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function w5(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=65;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function v5(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=66;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function u5(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=68;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function nh(a){var b=0,c=0;b=xb-16|0;xb=b;if(I[a+11|0]>>>7|0){c=H[a>>2]}else{c=a}if(I[a+11|0]>>>7|0){a=H[a+4>>2]}else{a=I[a+11|0]}H[b+8>>2]=c+a;xb=b+16|0;return H[b+8>>2]}function f6(a){a=a|0;var b=0,c=0,d=0;c=a+56|0;H[c>>2]=398600;b=a-8|0;H[b>>2]=398560;d=a+4|0;H[d>>2]=398960;H[a>>2]=398580;if(F[a+47|0]<0){Kb(H[b+44>>2])}wf(d);ge(c);Kb(b)}function b5(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=28;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function Z4(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=52;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function Oia(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;gA(a,b,c);a=Tb(16);H[a>>2]=H[c>>2];H[a+4>>2]=H[c+4>>2];H[a+8>>2]=H[c+8>>2];H[a+12>>2]=H[c+12>>2];xb=c+16|0;return a|0}function O5(a){a=a|0;var b=0;b=xb-16|0;xb=b;H[b+12>>2]=8;H[b+8>>2]=33;H[a+8>>2]=H[a+8>>2]+8;H[a+12>>2]=H[a+12>>2]+1;Lb(H[a+4>>2],b+8|0,4);Lb(H[a+4>>2],b+12|0,4);xb=b+16|0}function Hc(a,b,c){var d=0,e=0;while(1){a=_c(a,c);d=(a|0)!=0&a>>>0>>0;if(d){a=ac(c)+a|0;e=I[a|0];if((e-48&255)>>>0<10|((e&-33)-65&255)>>>0<26){continue}}break}return d}function z2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+344>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function y3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+148>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function y2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+348>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function x2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+352>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function w3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+156>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function vn(a){a=a|0;var b=0;H[a>>2]=245200;b=H[a+24>>2];if(!(I[a+28|0]|!b)){Kb(b)}H[a+12>>2]=0;H[a+16>>2]=0;H[a+8>>2]=8;H[a+20>>2]=0;H[a+24>>2]=0;F[a+28|0]=0;return a|0}function vY(a,b){a=a|0;b=b|0;var c=0;if(F[b+31|0]>=0){b=b+20|0;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];return}c=a;a=b-4|0;df(c,H[a+24>>2],H[a+28>>2])}function v3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+160>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function t3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+168>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function s3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+172>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function q3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+176>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function p3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+180>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function m3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+192>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function iha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;a=H[a+4>>2];if(a){H[d>>2]=c;c=xb-16|0;xb=c;H[c+12>>2]=d;a=Cx(a,b,d);xb=c+16|0}else{a=-1}xb=d+16|0;return a|0}function i4(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+100>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function e3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+220>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function d3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+224>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function d2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+424>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function c3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+228>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function b3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+232>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function a3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+236>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function a2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+436>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function _1(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+444>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function ZZ(a,b){a=a|0;b=b|0;var c=0;if(F[b+83|0]>=0){b=b+72|0;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];return}c=a;a=b-4|0;df(c,H[a+76>>2],H[a+80>>2])}function Z2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+248>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function Y2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+252>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function Y1(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+452>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function W2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+260>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function V2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+264>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function S2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+276>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function R2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+280>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function Q2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+284>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function M2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+296>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function K2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+304>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function J3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+108>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function J1(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+504>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function I2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+312>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function Hu(a,b){a=a|0;b=b|0;H[a+16>>2]=b;b=I[b+12|0]|I[b+13|0]<<8|(I[b+14|0]<<16|I[b+15|0]<<24);F[a+24|0]=0;H[a+40>>2]=b<<8&16711680|b<<24|(b>>>8&65280|b>>>24);return 0}function H2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+316>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function G2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+320>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function CK(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=H[a+24>>2];c=bc(b,c);a:{if(c){break a}c=Jc(b,d);if(c){break a}H[a+196>>2]=H[b+32>>2];H[a+200>>2]=H[b+36>>2];c=0}return c|0}function A3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+140>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function A2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+340>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function $V(a,b){a=a|0;b=b|0;var c=0;if(F[b+23|0]>=0){b=b+12|0;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];return}c=a;a=b-4|0;df(c,H[a+16>>2],H[a+20>>2])}function $2(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+240>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function $1(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+440>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function oi(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}while(1){d=H[a>>2];e=H[b>>2];if((d|0)==(e|0)){b=b+4|0;a=a+4|0;c=c-1|0;if(c){continue}break a}break}f=d-e|0}return f}function V3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+52>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function S3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+64>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function O3(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a=H[a+8>>2];if((c|0)!=(a|0)){while(1){d=H[c>>2];zb[H[H[d>>2]+80>>2]](d,b);c=c+4|0;if((a|0)!=(c|0)){continue}break}}}function c8(a){a=a|0;var b=0,c=0,d=0;b=xb-224|0;xb=b;c=b+16|0;zb[H[H[a>>2]+12>>2]](a,c);d=H[H[a+828>>2]+628>>2];H[b>>2]=c;Pb(d,276011,276358,b);Vk(a);ed(a+624|0,1);X()}function E6(a){a=a|0;var b=0,c=0;c=xb-16|0;xb=c;b=H[a+4>>2];H[c+12>>2]=4;zb[H[H[b>>2]+312>>2]](b,c+12|0)|0;b=H[a+4>>2];zb[H[H[b>>2]+344>>2]](b)|0;F[a+64|0]=0;xb=c+16|0}function ZL(a,b){a=a|0;b=b|0;var c=0;if(!(!I[a+24|0]|H[a+28>>2]!=H[b>>2])){Fu(a);if(!I[a+24|0]){return 0}c=H[a+32>>2];H[b>>2]=H[a+28>>2];return c|0}return Gu(a,b,1)|0}function Ql(a,b){var c=0,d=0;c=(b>>>0)/100|0;d=J[(c<<1)+781424>>1];F[a|0]=d;F[a+1|0]=d>>>8;a=a+2|0;b=J[(b-N(c,100)<<1)+781424>>1];F[a|0]=b;F[a+1|0]=b>>>8;return a+2|0}function rH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!a){return 37}d=b?d:d|3;if(!(d&1?0:b)){return sl(a,0,c,d)|0}if(H[b>>2]==H[a+4>>2]){a=sl(a,b,c,d)}else{a=35}return a|0}function mM(a,b){a=a|0;b=b|0;a=H[a+16>>2];b=b-(I[a+6|0]<<8|I[a+7|0])|0;if(b>>>0<(I[a+9|0]|I[a+8|0]<<8)>>>0){a=a+(b<<1)|0;a=I[a+10|0]<<8|I[a+11|0]}else{a=0}return a|0}function eH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=H[a+12>>2];if(e){F[d|0]=0}b=a;f=H[a+84>>2];a=H[a+80>>2];return zb[H[a+216>>2]](b,f,c,d,e,H[a+72>>2])|0}function bM(a,b){a=a|0;b=b|0;a=H[a+16>>2];H[b+4>>2]=10;a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);H[b>>2]=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);return 0}function ae(a,b){var c=0;c=H[a>>2];H[a>>2]=b;a:{if(c){a=H[a+4>>2];H[197455]=0;ia(a|0,c|0);a=H[197455];H[197455]=0;if((a|0)==1){break a}}return}ha(0)|0;_()|0;Zb();X()}function YL(a,b){a=a|0;b=b|0;a=H[a+16>>2];H[b+4>>2]=12;a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);H[b>>2]=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);return 0}function TL(a,b){a=a|0;b=b|0;a=H[a+16>>2];H[b+4>>2]=13;a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);H[b>>2]=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);return 0}function Mt(a){var b=0;b=H[a+52>>2];H[197455]=0;ia(579,b|0);b=H[197455];H[197455]=0;if((b|0)!=1){H[a+52>>2]=0;H[a+24>>2]=0;H[a+28>>2]=0;return}ha(0)|0;_()|0;Zb();X()}function GO(a,b){a=a|0;b=b|0;H[a>>2]=782716;H[a>>2]=782808;H[197455]=0;da(3812,a+4|0,b|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){return a|0}a=$()|0;_()|0;ea(a|0);X()}function zw(a){a=a|0;var b=0;b=oa(8)|0;H[197455]=0;da(3477,b|0,a|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){Ca(b|0,782972,3478);X()}a=$()|0;_()|0;Ka(b|0);ea(a|0);X()}function rn(a){a=a|0;var b=0,c=0;b=H[a+928>>2];a:{if(b){break a}c=a;a=N(H[a+20>>2],H[a+16>>2]);b=Tb(a);H[c+928>>2]=b;if(!b){b=0;break a}Nb(b,255,a)}return(b|0)!=0|0}function o$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if(!d){e=1;if(K[a+4>>2]>>0){break a}}e=H[a+12>>2];if(H[a+8>>2]!=(b|0)){Lg(e,b,0)}e=dj(c,1,d,e)}return e|0}function iea(a){a=a|0;var b=0,c=0;H[a+148>>2]=0;b=1;c=H[a+448>>2];b=H[a+336>>2]<=1?H[H[a+340>>2]+(H[a+328>>2]==1?76:12)>>2]:b;H[c+20>>2]=0;H[c+24>>2]=0;H[c+28>>2]=b}function fM(a,b){a=a|0;b=b|0;a=H[a+16>>2];H[b+4>>2]=8;a=I[a+8|0]|I[a+9|0]<<8|(I[a+10|0]<<16|I[a+11|0]<<24);H[b>>2]=a<<24|a<<8&16711680|(a>>>8&65280|a>>>24);return 0}function Ro(a){var b=0,c=0;H[197455]=0;c=va(3551)|0;b=H[197455];H[197455]=0;if((b|0)!=1){b=a;a=H[c>>2];H[b>>2]=a;H[a+4>>2]=H[a+4>>2]+1;return}ha(0)|0;_()|0;Zb();X()}function cI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=1;e=b;c=H[b>>2]+1|0;b=H[a+16>>2];if(c>>>0>b>>>0){b=c-b|0;a=b>>>0>2];d=a?b+1|0:0;b=a?c:0}H[e>>2]=b;return d|0}function Ek(a){a=a|0;var b=0;a:{b=H[a+156>>2];if(b){if(hf(b)){break a}F[(H[H[a>>2]-12>>2]+a|0)+29|0]=1;return}a=H[a+208>>2];if(!a){break a}zb[H[H[a>>2]+48>>2]](a)}}function Wda(a,b){a=a|0;b=b|0;H[a+2748>>2]=b;H[a+2740>>2]=H[b+28>>2];H[a+4>>2]=H[b+8>>2];H[a+12>>2]=H[b+12>>2];H[a+8>>2]=H[b+16>>2];H[a+16>>2]=H[b+20>>2];return 0}function Td(a){a=a|0;var b=0;b=oa(8)|0;H[197455]=0;da(892,b|0,a|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){Ca(b|0,782888,893);X()}a=$()|0;_()|0;Ka(b|0);ea(a|0);X()}function NY(a){a=a|0;var b=0;H[a>>2]=420036;b=H[a+8>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+8>>2]=0}b=H[a+12>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+12>>2]=0}return a|0}function p$(a){a=a|0;var b=0;a=H[H[a>>2]-20>>2]+a|0;b=H[a+156>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+156>>2]=0}b=a+124|0;_y(b);b=H[b>>2];F[a+212|0]=0;H[a+120>>2]=b}function gX(a,b,c){a=a|0;b=b|0;c=c|0;if(!(!b|!c)){zb[H[H[a>>2]+12>>2]](a);F[a+28|0]=1;H[a+24>>2]=b;H[a+12>>2]=b+c;H[a+8>>2]=b;H[a+4>>2]=b}return(b|0)!=0&(c|0)!=0}function X8(a,b){a=a|0;b=b|0;b=xb-16|0;xb=b;if(Zm(a)){H[a+556>>2]=1522;H[a+548>>2]=1522;H[a+540>>2]=1522;H[b>>2]=11;a=rc(a,65536,b)}else{a=0}xb=b+16|0;return a|0}function Tx(a){var b=0;b=H[a>>2]-1|0;b=F[(N(0-b&b,124511785)>>>27|0)+766240|0];if(!b){a=H[a+4>>2];a=F[(N(0-a&a,124511785)>>>27|0)+766240|0];b=a?a+32|0:0}return b}function SN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;H[d+12>>2]=H[c>>2];a=zb[H[H[a>>2]+16>>2]](a,b,d+12|0)|0;if(a){H[c>>2]=H[d+12>>2]}xb=d+16|0;return a|0}function DI(a,b){a=a|0;b=b|0;var c=0;c=H[b+96>>2];if(!((c|0)<0|H[a+300>>2]<=(c|0))){a=H[a+304>>2]+N(c,252)|0;b=zb[H[b+40>>2]](b,0)|0;H[a+180>>2]=b;H[a+208>>2]=b}}function sv(a,b,c,d){var e=0,f=0;e=H[a+4>>2];f=H[a>>2];a=0;a:{if(!c){break a}a=e>>8;if(!(e&1)){break a}a=H[a+H[c>>2]>>2]}zb[H[H[f>>2]+28>>2]](f,b,a+c|0,e&2?d:2)}function nH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=H[a+12>>2];H[e>>2]=0;b=a;f=H[a+84>>2];a=H[a+80>>2];return zb[H[a+172>>2]](b,f,c,d,e,H[a+28>>2])|0}function iaa(a,b){a=a|0;b=b|0;var c=0,d=0;a=H[a>>2];c=H[a>>2];b=H[b>>2];d=H[b>>2];if((c|0)!=(d|0)){return c-d|0}a=H[a+8>>2];if(!a){return 0}return H[b+8>>2]-a|0}function Z8(a,b){a=a|0;b=b|0;b=xb-16|0;xb=b;if(Zm(a)){H[a+556>>2]=1522;H[a+548>>2]=1522;H[a+540>>2]=1522;H[b>>2]=7;a=rc(a,65536,b)}else{a=0}xb=b+16|0;return a|0}function Oea(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;zb[H[H[a+472>>2]+12>>2]](a,b,H[c>>2],(H[f>>2]<<2)+e|0);H[f>>2]=H[f>>2]+1;H[c>>2]=H[c>>2]+1}function Af(a,b){var c=0;a:{if(!a|!b){break a}c=H[a>>2];if(!c){break a}while(1){if(!fc(c,b)){return H[a+4>>2]}c=H[a+8>>2];a=a+8|0;if(c){continue}break}}return 0}function l3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+196>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function k3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+200>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function j3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+204>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function i3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+208>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function h4(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+104>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function h3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+212>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function gI(a,b){a=a|0;b=b|0;var c=0;c=H[a>>2];b=H[c+132>>2];Vf(c,0);c=J[b+80>>1];H[a+24>>2]=c<<6;H[a+28>>2]=c-J[b+96>>1]<<6;H[a+36>>2]=J[b+102>>1]<<6;return 0}function f3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+216>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function bc(a,b){var c=0,d=0;d=H[a+20>>2];a:{b:{if(d){c=85;if(!(zb[d|0](a,b,0,0)|0)){break b}break a}c=85;if(K[a+4>>2]>>0){break a}}H[a+8>>2]=b;c=0}return c}function aM(a,b){a=a|0;b=b|0;var c=0,d=0;d=H[a>>2];c=H[d+140>>2];Vf(d,b);H[a+24>>2]=H[c+40>>2]<<6;H[a+28>>2]=0-(H[c+44>>2]<<6);H[a+36>>2]=J[c+4>>1]<<6;return 0}function S1(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+472>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function O2(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+292>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function N1(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+492>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function L1(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+496>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function Kk(a,b){a:{if(J[a+1148>>1]){break a}if(Fd(a)){break a}return 0}F[b|0]=I[H[a+1152>>2]];H[a+1152>>2]=H[a+1152>>2]+1;G[a+1148>>1]=J[a+1148>>1]-1;return 1}function J2(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+308>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function Ho(a,b){a=a|0;b=b|0;var c=0;if(I[a+11|0]>>>7|0){c=H[a+4>>2]}else{c=I[a+11|0]}if(c>>>0<=b>>>0){lj(a);X()}if(I[a+11|0]>>>7|0){a=H[a>>2]}return(b<<2)+a|0}function FN(a,b){a=a|0;b=b|0;var c=0;b=H[a>>2];c=H[b+488>>2];H[a+24>>2]=H[b+420>>2];H[a+28>>2]=H[b+424>>2];H[a+20>>2]=H[c+20>>2];H[a+16>>2]=H[c+24>>2];return 0}function D3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+132>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function BN(a,b){a=a|0;b=b|0;var c=0;b=H[a>>2];c=H[b+488>>2];H[a+24>>2]=H[b+420>>2];H[a+28>>2]=H[b+424>>2];H[a+20>>2]=H[c+20>>2];H[a+16>>2]=H[c+28>>2];return 0}function B3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+136>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function qfa(a){a=a|0;var b=0;b=H[a+456>>2];H[b+24>>2]=1;H[b+16>>2]=0;H[b+20>>2]=0;H[b>>2]=1199;zb[H[H[a>>2]+16>>2]](a);zb[H[H[a+460>>2]>>2]](a);H[a+160>>2]=0}function e4(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+12>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function a4(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+28>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function W3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+48>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function U3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+56>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function T3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+60>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function P7(a){a=a|0;var b=0,c=0;RA(a);b=H[a+584>>2];c=H[b+116>>2];if(c){Kb(c);b=H[a+584>>2]}c=H[b+144>>2];if(c){Kb(c);b=H[a+584>>2]}Kb(b);H[a+584>>2]=0;Ai(a)}function M3(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+84>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function LA(a){var b=0,c=0;b=H[a+32>>2];if(K[a+36>>2]<=b+3>>>0){H[a+32>>2]=b;return 0}c=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);H[a+32>>2]=b+4;return c}function JD(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;H[a+24>>2]=b;H[a+12>>2]=H[c>>2];H[a+16>>2]=H[d>>2];b=H[e>>2];F[a+28|0]=f;H[a+20>>2]=b;H[a+8>>2]=0}function iz(a,b){a=a|0;b=b|0;var c=0;if(F[b+35|0]>=0){b=b+24|0;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];return}df(a,H[b+24>>2],H[b+28>>2])}function fQ(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=H[b>>2];if(a>>>0<=127){a=H[Tl()+(H[b>>2]<<2)>>2]}H[b>>2]=a;b=b+4|0;continue}break}return c|0}function f4(a){a=a|0;var b=0,c=0;b=H[a+4>>2];a=H[a+8>>2];if((b|0)!=(a|0)){while(1){c=H[b>>2];zb[H[H[c>>2]+8>>2]](c);b=b+4|0;if((a|0)!=(b|0)){continue}break}}}function e_(a,b){a=a|0;b=b|0;var c=0;if(F[b+87|0]>=0){b=b+76|0;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];return}df(a,H[b+76>>2],H[b+80>>2])}function eT(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=0;while(1){if((b|0)!=(c|0)){a=H[b>>2]+(a<<4)|0;d=a&-268435456;a=(d|d>>>24)^a;b=b+4|0;continue}break}return a|0}function dQ(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=H[b>>2];if(a>>>0<=127){a=H[Sl()+(H[b>>2]<<2)>>2]}H[b>>2]=a;b=b+4|0;continue}break}return c|0}function aW(a,b){a=a|0;b=b|0;var c=0;if(F[b+27|0]>=0){b=b+16|0;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];return}df(a,H[b+16>>2],H[b+20>>2])}function Ip(a){var b=0;b=oa(8)|0;H[197455]=0;da(2946,b|0,a|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){Ca(b|0,782940,893);X()}a=$()|0;_()|0;Ka(b|0);ea(a|0);X()}function $Y(a,b){a=a|0;b=b|0;var c=0;if(F[b+31|0]>=0){b=b+20|0;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];return}df(a,H[b+20>>2],H[b+24>>2])}function t9(a,b){a=a|0;b=b|0;H[a+556>>2]=1503;H[a+548>>2]=1503;H[a+540>>2]=1503;H[a+568>>2]=1504;H[a+560>>2]=1505;H[a+552>>2]=1505;H[a+544>>2]=1505;return 1}function me(a){a:{a=H[a>>2];if(a){H[197455]=0;if(a){H[197059]=(a|0)==-1?788116:a}a=H[197455];H[197455]=0;if((a|0)==1){break a}}return}ha(0)|0;_()|0;Zb();X()}function lO(a,b,c){a=a|0;b=b|0;c=c|0;a:{if((c|0)>=257){if(!I[791913]){F[791913]=1}b=784944;break a}if(!I[791912]){F[791912]=1}b=784940}H[a+4>>2]=b;H[a>>2]=c}function lL(a,b){a=a|0;b=b|0;var c=0;c=zb[H[a+516>>2]](a,1668112752,b,a+512|0)|0;if(!c){c=Ke(b,H[a+512>>2],a+508|0);if(!c){return 0}H[a+512>>2]=0}return c|0}function iT(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=0;while(1){if((b|0)!=(c|0)){a=F[b|0]+(a<<4)|0;d=a&-268435456;a=(d|d>>>24)^a;b=b+1|0;continue}break}return a|0}function Qla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=0;a:{if(!Tj(a,1751216995,c)){break a}if(!Tj(a,1751413603,c+4|0)){break a}b=Tj(a,1751934832,c+8|0)}return b|0}function Ola(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=0;a:{if(!Tj(a,1986098019,c)){break a}if(!Tj(a,1986294627,c+4|0)){break a}b=Tj(a,1986815856,c+8|0)}return b|0}function HP(a){a=a|0;var b=0;a=H[a+8>>2];if(!a){return 1}H[197455]=0;a=aa(3561,a|0)|0;b=H[197455];H[197455]=0;if((b|0)!=1){return a|0}ha(0)|0;_()|0;Zb();X()}function AC(a,b){var c=0,d=0;c=xb-112|0;xb=c;a:{if(!a){H[c>>2]=b;a=H[191568];Fc(a,259883,c);Mg(10,a);break a}d=c+16|0;Mq(H[a+348>>2],d,b);Xb(a,d)}xb=c+112|0}function nja(a,b,c){a=a|0;b=b|0;c=c|0;return(b>>>0<=65379?G[(I[(b>>>2&63|I[(b>>>9|0)+180612|0]>>>(b>>>6&4)<<6&960)+180740|0]<<3|(b&3)<<1)+220336>>1]:0)+b|0}function eN(a){a=a|0;var b=0;if(a){H[a+412>>2]=0;H[a+4>>2]=0;H[a+1960>>2]=0;H[a+1444>>2]=0;H[a+928>>2]=0;H[a+208>>2]=0;b=H[a>>2];if(a){zb[H[b+8>>2]](b,a)}}}function Op(a,b){a=a|0;b=b|0;var c=0;if(b){a:{if(I[a+80|0]){break a}c=H[a+76>>2];if(!c){break a}if(F[c+11|0]<0){Kb(H[c>>2])}Kb(c)}F[a+80|0]=1;H[a+76>>2]=b}}function NP(a){a=a|0;var b=0,c=0;if(a){c=H[a>>2];b=H[a+108>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+108>>2]=0;b=H[a+116>>2];if(b){zb[H[c+8>>2]](c,b)}H[a+116>>2]=0}}function sO(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=xb-16|0;xb=d;e=d+8|0;zb[H[H[a>>2]+12>>2]](e,a,b);xb=d+16|0;return H[e>>2]==H[c>>2]&H[e+4>>2]==H[c+4>>2]}function oc(a,b){var c=0,d=0;a:{if(!a){break a}c=gma(a,0,b,0);d=yb;if((a|b)>>>0<65536){break a}c=d?-1:c}a=Tb(c);if(!(!a|!(I[a-4|0]&3))){Nb(a,0,c)}return a}function iq(a){a=a|0;H[a+64>>2]=398600;H[a>>2]=398560;H[a+12>>2]=398960;H[a+8>>2]=398580;if(F[a+55|0]<0){Kb(H[a+44>>2])}wf(a+12|0);ge(a- -64|0);return a|0}function Nf(a){var b=0,c=0;b=a*a;c=b*a;return O(c*(b*b)*(b*2718311493989822e-21+-.00019839334836096632)+(c*(b*.008333329385889463+-.16666666641626524)+a))}function JS(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;H[e+12>>2]=b;H[e+8>>2]=d;b=Kf(e,e+12|0);a=Ax(a,c,H[e+8>>2]);me(b);xb=e+16|0;return a|0}function zC(a,b,c){var d=0;d=8;a:{if(c>>>0>8){break a}d=c;if(d){break a}return-1}if(b>>>0<=7){a=md(a+b|0,b+262688|0,b+d>>>0>8?8-b|0:d)}else{a=-1}return a}function Wd(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(!a){break a}c=H[a+92>>2];if(!c){break a}b=zb[H[H[c+12>>2]+12>>2]](c,b)|0;d=b>>>0>2]?b:0}return d|0}function sc(a,b,c,d){var e=0;e=xb-16|0;xb=e;H[e+12>>2]=d;d=H[196061];if(d){zb[d|0](b,c,H[e+12>>2])}d=H[196376];if(d){zb[d|0](a,b,c,H[e+12>>2])}xb=e+16|0}function hq(a,b,c){var d=0;a:{if(c>>>0<2){break a}while(1){d=I[b|0];if(!d){break a}F[a|0]=d;a=a+1|0;b=b+1|0;c=c-1|0;if(c>>>0>1){continue}break}}F[a|0]=0}function ZJ(a,b,c){a=a|0;b=b|0;c=c|0;a=H[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b&-64|32;return((a|0)<0?32:a)|0}a=a-b&-64;return((a|0)<-32?-32:-32-a|0)|0}function YP(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=F[b|0];if((a|0)>=0){a=H[Tl()+(F[b|0]<<2)>>2]}F[b|0]=a;b=b+1|0;continue}break}return c|0}function WP(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=F[b|0];if((a|0)>=0){a=H[Sl()+(F[b|0]<<2)>>2]}F[b|0]=a;b=b+1|0;continue}break}return c|0}function Pb(a,b,c,d){var e=0;e=xb-16|0;xb=e;H[e+12>>2]=d;d=H[196062];if(d){zb[d|0](b,c,H[e+12>>2])}d=H[196374];if(d){zb[d|0](a,b,c,H[e+12>>2])}xb=e+16|0}function xs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=H[a+540>>2];H[d>>2]=0;H[d+4>>2]=0;if(e){f=d,g=zb[H[e+84>>2]](a,b,c)|0,H[f>>2]=g}return 0}function mja(a,b,c){a=a|0;b=b|0;c=c|0;return H[((b>>>0<=917999?I[(b&15|J[(b>>>3&62|I[(b>>>9|0)+181700|0]<<6)+203504>>1]<<4)+183494|0]:2)<<2)+220736>>2]}function _J(a,b,c){a=a|0;b=b|0;c=c|0;a=H[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+32&-64;return((a|0)>0?a:0)|0}a=0-((a-b|0)+32&-64)|0;return a>>31&a}function XJ(a,b,c){a=a|0;b=b|0;c=c|0;a=H[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+63&-64;return((a|0)>0?a:0)|0}a=0-((a-b|0)+63&-64)|0;return a>>31&a}function TJ(a,b,c){a=a|0;b=b|0;c=c|0;a=H[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+16&-32;return((a|0)>0?a:0)|0}a=0-((a-b|0)+16&-32)|0;return a>>31&a}function RA(a){var b=0;b=H[a+584>>2];H[a+672>>2]=H[b+44>>2];H[a+668>>2]=H[b+48>>2];H[a+676>>2]=H[b+52>>2];H[a+516>>2]=H[b+56>>2];H[a+524>>2]=H[b+60>>2]}function B7(a,b){a=a|0;b=b|0;b=H[a+584>>2];if(!(F[b+124|0]&1)){zb[H[a+516>>2]](a)|0}H[b+64>>2]=H[a+596>>2];H[b+68>>2]=H[a+608>>2];return!el(b- -64|0)|0}function $P(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;while(1){if((b|0)!=(c|0)){a=H[b>>2];F[e|0]=a>>>0<128?a:d;e=e+1|0;b=b+4|0;continue}break}return c|0}function or(a,b){a=a|0;b=b|0;return((N(I[a+1|0],601)+N(I[a|0],117)|0)+N(I[a+2|0],306)>>>10)-((N(I[b+1|0],601)+N(I[b|0],117)|0)+N(I[b+2|0],306)>>>10)|0}function b8(a){a=a|0;var b=0,c=0;b=xb-224|0;xb=b;c=b+16|0;zb[H[H[a>>2]+12>>2]](a,c);a=H[H[a+828>>2]+628>>2];H[b>>2]=c;sc(a,276011,276358,b);xb=b+224|0}function IX(a){a=a|0;var b=0;H[a+40>>2]=-1;H[a>>2]=-1;H[a+4>>2]=0;b=a+44|0;H[b+4>>2]=0;H[b+8>>2]=0;H[b>>2]=752128;H[b+12>>2]=0;H[b+16>>2]=0;return a|0}function F7(a,b){a=a|0;b=b|0;b=H[a+584>>2];if(H[b+124>>2]!=2){zb[H[a+524>>2]](a)|0}H[b+76>>2]=H[a+596>>2];H[b+80>>2]=H[a+600>>2];return!Kr(b- -64|0)|0}function hha(a,b){a=a|0;b=b|0;a:{if(b){H[a>>2]=b;b=0;break a}b=Qb(464);H[a>>2]=b;Nb(b,0,464);b=1}F[a+4|0]=0;F[a+512|0]=b;Nb(a+260|0,0,252);return a|0}function g6(a){a=a|0;H[a+64>>2]=398600;H[a>>2]=398560;H[a+12>>2]=398960;H[a+8>>2]=398580;if(F[a+55|0]<0){Kb(H[a+44>>2])}wf(a+12|0);ge(a- -64|0);Kb(a)}function SP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;while(1){if((b|0)!=(c|0)){a=F[b|0];F[e|0]=(a|0)>=0?a:d;e=e+1|0;b=b+1|0;continue}break}return c|0}function Rv(a,b){H[a>>2]=782716;H[a>>2]=782788;H[197455]=0;da(3812,a+4|0,b|0)|0;a=H[197455];H[197455]=0;if((a|0)!=1){return}a=$()|0;_()|0;ea(a|0);X()}function IO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=ac(b);d=Qb(c+13|0);H[d+8>>2]=0;H[d+4>>2]=c;H[d>>2]=c;e=a,f=Ob(d+12|0,b,c+1|0),H[e>>2]=f;return a|0}function H8(a){a=a|0;var b=0,c=0;b=xb-224|0;xb=b;c=b+16|0;zb[H[H[a>>2]+12>>2]](a,c);a=H[H[a+12>>2]+628>>2];H[b>>2]=c;sc(a,288972,289105,b);xb=b+224|0}function Ej(a,b){var c=0;a:{if(a-1>>>0>253){break a}c=T(Kd(+(a>>>0)/255,+(b|0)*1e-5)*255+.5);if(c<4294967296&c>=0){a=~~c>>>0;break a}a=0}return a&255}function uba(a,b){a=a|0;b=b|0;var c=0;c=H[b+92>>2];H[a+40>>2]=J[b+68>>1];a:{if(Kh(b,1970170211)){H[b+92>>2]=0;break a}gz(a,b);qv(a)}Ih(b,c);return 0}function iga(a){a=a|0;var b=0,c=0;a:{c=H[a+4>>2];if(c){b=H[a+16>>2];if((b|0)>2]){break a}}F[a+24|0]=1;return-1}H[a+16>>2]=b+1;return I[b+c|0]}function gga(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=a?H[a+180>>2]:0;if(d){if((zb[H[H[d>>2]+12>>2]](d,b,1,c,0,0)|0)==(c|0)){break a}}hc(a,246992);X()}}function dd(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(!b){break b}c=H[a+12>>2];if(!c){break b}a=zb[c|0](a,b,H[a+16>>2])|0;if(a){break a}}a=163632}return a|0}function We(a,b,c,d,e){var f=0;f=H[a+16>>2];if(f){return zb[f|0](H[a+28>>2],b,c,d,e)|0}if(d){a=-1}else{a=zb[H[a+40>>2]](H[a+28>>2],b,c,e)|0}return a}function uz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-16|0;xb=c;H[b>>2]=0;d=pc(a,4,c+12|0);e=H[c+12>>2];if(!e){H[d>>2]=a;H[b>>2]=d}xb=c+16|0;return e|0}function jO(a,b){a=a|0;b=b|0;var c=0;c=a;if(I[b+11|0]>>>7|0){a=H[b>>2]}else{a=b}if(I[b+11|0]>>>7|0){b=H[b+4>>2]}else{b=I[b+11|0]}return Io(c,a,b)|0}function Xf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!H[a+928>>2]){break a}if(!bl(a,b,c)){break a}d=I[H[a+928>>2]+(N(H[a+16>>2],c)+b|0)|0]}return d|0}function WN(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($d(a,H[b+8>>2],f)){Co(b,c,d,e);return}a=H[a+8>>2];zb[H[H[a>>2]+20>>2]](a,b,c,d,e,f)}function xT(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+40>>2];while(1){if(c){c=c-1|0;d=c<<2;zb[H[H[a+32>>2]+d>>2]](b,a,H[d+H[a+36>>2]>>2]);continue}break}}function YU(){var a=0,b=0,c=0;b=Qb(4);H[197455]=0;a=aa(3318,b|0)|0;c=H[197455];H[197455]=0;if((c|0)!=1){return a|0}a=$()|0;_()|0;Kb(b);ea(a|0);X()}function Uh(a,b){if(H[a+16>>2]){a=zb[H[a+12>>2]](H[a+28>>2],b)|0;return a}b=zb[H[a+36>>2]](H[a+28>>2],b)|0;a=(b|0)==-1;b=a?-1:b;yb=a?-1:0;return b}function FA(a,b){var c=0,d=0;if(!(!a|!b)){c=H[a>>2];if(c){while(1){d=H[c+4>>2];zb[H[b+8>>2]](b,c);c=d;if(c){continue}break}}H[a>>2]=0;H[a+4>>2]=0}}function nw(a,b){a=a|0;b=b|0;var c=0;a:{if(!b){break a}a=H[a+12>>2];if((G[a+22>>1]+b|0)+G[a+58>>1]>>>0<=K[a+4>>2]){break a}c=ee(a,b,0)}return c|0}function lv(a,b){var c=0;a=H[a>>2];c=H[b+12>>2];if(c){zb[H[a+8>>2]](a,c)}H[b+16>>2]=0;H[b+20>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;H[b>>2]=0;H[b+4>>2]=0}function ce(a){a=a|0;var b=0;H[a>>2]=435872;H[197455]=0;ia(3158,a|0);b=H[197455];H[197455]=0;if((b|0)!=1){Hy(a);return a|0}ha(0)|0;_()|0;Zb();X()}function Uja(a){a=a|0;var b=0;b=a+24|0;lc(b,1668049255,1,1);a=H[196240];if(!a){Ts();a=H[196240]}if(a&4){lc(b,1801810542,1,0)}lc(b,1818847073,1,0)}function TW(a,b){a=a|0;b=b|0;var c=0;c=H[a>>2];Vf(c,b);H[a+24>>2]=H[c+204>>2]<<6;H[a+28>>2]=0-(H[c+208>>2]<<6);H[a+36>>2]=G[c+236>>1]<<6;return 0}function zja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a=H[a+12>>2];H[d>>2]=0;if(!(!b|!c)){e=(zb[H[a+36>>2]](a,b,c,d,H[a+68>>2])|0)!=0}return e|0}function sga(a){a=a|0;var b=0;if(H[a+4>>2]){a=0}else{H[a+8>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;b=Tb(1);F[a+12|0]=1;H[a+4>>2]=b;a=(b|0)!=0}return a|0}function rm(a){var b=0,c=0;b=xb-16|0;xb=b;c=-1;a:{if(zp(a)){break a}if((zb[H[a+32>>2]](a,b+15|0,1)|0)!=1){break a}c=I[b+15|0]}xb=b+16|0;return c}function ega(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=a?H[a+180>>2]:0;if(d){if((zb[H[H[d>>2]+16>>2]](d,b,1,c)|0)==(c|0)){break a}}hc(a,247166);X()}}function bH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=O(d);e=O(e);f=f|0;a=H[b>>2];zb[H[a+12>>2]](a,H[b+4>>2],c,O(L[b+8>>2]*d),O(L[b+12>>2]*e),H[a+32>>2])}function al(a,b){a=a|0;b=b|0;var c=0,d=0;if(H[a+4>>2]){d=b?-1:0;c=b;b=J[a+26>>1];c=(b|0)==1?d:c;Nb(H[a+56>>2],(b|0)==4?N(c&15,17):c,H[a+32>>2])}}function MY(a){a=a|0;var b=0;H[a>>2]=420036;b=H[a+8>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+8>>2]=0}b=H[a+12>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}Kb(a)}function HX(a){a=a|0;H[a>>2]=0;H[a+4>>2]=0;F[a+5|0]=0;F[a+6|0]=0;F[a+7|0]=0;F[a+8|0]=0;F[a+9|0]=0;F[a+10|0]=0;F[a+11|0]=0;F[a+12|0]=0;return a|0}function Ax(a,b,c){var d=0;d=xb-144|0;xb=d;d=Nb(d,0,144);H[d+76>>2]=-1;H[d+44>>2]=a;H[d+32>>2]=3328;H[d+84>>2]=a;a=Cx(d,b,c);xb=d+144|0;return a}function ye(a,b,c,d){var e=0;e=N(b,c);a:{if(H[d+76>>2]<0){a=pm(a,e,d);break a}a=pm(a,e,d)}if((e|0)==(a|0)){return b?c:0}return(a>>>0)/(b>>>0)|0}function q7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=d;d=H[a+584>>2];if(!(zb[H[d+28>>2]](a,b,c,e)|0)){return 0}zb[H[d+40>>2]](a,b,c);return 1}function g2(a,b){a=a|0;b=b|0;var c=0;c=H[a+20>>2];H[b>>2]=c<<6;H[b+8>>2]=c+H[a+32>>2]<<6;c=H[a+24>>2];H[b+12>>2]=c<<6;H[b+4>>2]=c-H[a+28>>2]<<6}function V9(a){a=a|0;var b=0,c=0;b=H[a+584>>2];H[a+672>>2]=H[b+24>>2];H[a+668>>2]=H[b+28>>2];c=H[b+12>>2];if(c){Kb(c)}Kb(b);H[a+584>>2]=0;Ai(a)}function SL(a){a=a|0;var b=0,c=0;H[a+28>>2]=0;b=H[a+36>>2];a:{if(!b){break a}c=H[a+32>>2];if(!c){break a}if(c){zb[H[b+8>>2]](b,c)}H[a+32>>2]=0}}function Ofa(a){a=a|0;var b=0,c=0;a=H[a>>2];b=I[a|0];if(b){while(1){c=N(c,31)+(b<<24>>24)|0;b=I[a+1|0];a=a+1|0;if(b){continue}break}}return c|0}function Lk(a,b){var c=0,d=0;c=ac(b);d=H[a>>2];if(d){Kb(d);H[a>>2]=0}a:{if(!b){break a}d=a;c=c+1|0;a=Tb(c);H[d>>2]=a;if(!a){break a}Kc(a,b,c)}}function JF(a,b){a=Xh(a,b);b=I[a+8|0]|I[a+9|0]<<8;if(b){a=a+((b<<8|b>>>8)&65535)|0}else{a=163632}a=I[a|0]|I[a+1|0]<<8;return(a<<8|a>>>8)&65535}function I7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[a+584>>2];if((b|0)==65557){H[H[c>>2]>>2]=H[d+120>>2];return 1}return zb[H[d+128>>2]](a,b,c)|0}function tda(a,b,c){a=a|0;b=b|0;c=c|0;b=(b|0)>1?b:1;b=b>>>0<100?b:100;if(b>>>0<=49){Tq(a,5e3/((b&65535)>>>0)|0,c);return}Tq(a,200-(b<<1)|0,c)}function Tv(a){var b=0;b=H[a+4>>2];while(1){if((b|0)!=H[a+8>>2]){H[a+8>>2]=H[a+8>>2]-4;continue}break}if(H[a>>2]){b=H[a>>2];Wv(H[a+16>>2],b)}}function Sia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=xb-16|0;xb=f;H[f+8>>2]=c;H[f>>2]=b;H[f+12>>2]=e;H[f+4>>2]=d;RC(a,f);xb=f+16|0}function Oq(a,b){a:{if(!a){break a}a=H[a>>2];if(!a){break a}while(1){if(H[a+8>>2]==(b|0)){return a}a=H[a+4>>2];if(a){continue}break}}return 0}function Of(a){var b=0;a=a*a;b=a*a;return O(a*b*(a*2439044879627741e-20+-.001388676377460993)+(b*.04166662332373906+(a*-.499999997251031+1)))}function MG(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;e=xb-16|0;xb=e;a=$B(H[b+24>>2],c,d,!H[a+56>>2],e+8|0);xb=e+16|0;return(a?0:H[e+8>>2])|0}function zA(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=+h;i=+i;a=H[a+4>>2];if(a){zb[H[H[a>>2]+20>>2]](a,b,c,d,e,f,g,h,i)}}function rh(a){a=a|0;var b=0;a=H[a>>2];b=H[a+12>>2];a:{if((b|0)==H[a+16>>2]){a=zb[H[H[a>>2]+36>>2]](a)|0;break a}a=I[b|0]}return a<<24>>24}function pc(a,b,c){if((b|0)<=0){H[c>>2]=b?6:0;return 0}a=zb[H[a+4>>2]](a,b)|0;if(!a){H[c>>2]=!a<<6;return 0}a=Nb(a,0,b);H[c>>2]=0;return a}function kc(a){a=a|0;var b=0;b=a;a=_r(a+52|0);a=I[a+18|0]|I[a+19|0]<<8;a=(a<<8|a>>>8)&65535;a=a-16>>>0<16369?a:1e3;H[b+28>>2]=a;return a|0}function hi(a,b){var c=0;a:{if(!a|!b|(!H[a+72>>2]|!I[b|0])){break a}b=Me(b,H[a+92>>2]);if(!b){break a}c=H[a+80>>2]+(H[b>>2]<<4)|0}return c}function hR(){var a=0,b=0;H[197845]=0;H[197844]=778696;H[197844]=773768;F[791388]=0;H[197846]=0;H[197844]=773340;a=791384,b=mk(),H[a>>2]=b}function gN(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+4>>2];a:{if(c){break a}d=H[a>>2];c=Vu(a+16|0,b,d);if(c){break a}c=Vu(a+52|0,b,d)}return c|0}function Up(a){a=a|0;var b=0;b=H[a+156>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+156>>2]=0}b=a+124|0;_y(b);b=H[b>>2];F[a+212|0]=0;H[a+120>>2]=b}function U7(a,b){a=a|0;b=b|0;b=Tb(4);H[a+584>>2]=b;if(!b){return 0}a:{if(I[a+13|0]&4){b=qg(a);break a}b=Ve(a)}H[H[a+584>>2]>>2]=b;return 1}function Dc(a){var b=0,c=0;b=xb-16|0;xb=b;H[197455]=0;c=H[197455];H[197455]=0;if((c|0)!=1){fx(a);xb=b+16|0;return a}ha(0)|0;_()|0;Zb();X()}function yja(a,b){a=a|0;b=b|0;a=J[a+16>>1];a=1<>>8|0:0;b=J[b+16>>1];b=1<>>8|0:0;return(a>>>0>>0?-1:(a|0)!=(b|0))|0}function te(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!H[a+928>>2]){break a}if(!bl(a,b,c)){break a}F[H[a+928>>2]+(N(H[a+16>>2],c)+b|0)|0]=d}}function Zk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!H[a+924>>2]){break a}if(!bl(a,b,c)){break a}F[H[a+924>>2]+(N(H[a+16>>2],c)+b|0)|0]=d}}function Yk(a,b,c){a=a|0;b=b|0;c=c|0;H[a+20>>2]=c;H[a+16>>2]=0;H[a+4>>2]=b;F[a+24|0]=0;H[a+8>>2]=c;H[a>>2]=248800;F[a+12|0]=!b;return a|0}function YJ(a,b,c){a=a|0;b=b|0;c=c|0;a=H[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b&-64;return((a|0)>0?a:0)|0}a=0-(a-b&-64)|0;return a>>31&a}function P9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[a+584>>2];if((b|0)==65560){H[H[c>>2]>>2]=H[d>>2];return 1}return zb[H[d+24>>2]](a,b,c)|0}function yba(a,b,c){a=a|0;b=b|0;c=c|0;if(a){H[a+180>>2]=b;H[a+176>>2]=c?c:1406;if(H[a+172>>2]){H[a+172>>2]=0;Xb(a,259451)}H[a+444>>2]=0}}function Nba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=Nb(a,0,256);d=I[H[b>>2]+c|0];b=I[H[b+4>>2]+c|0];H[a+32>>2]=d-b<<5;H[a>>2]=(b+d<<5)+-8192}function Mb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(c){d=a;while(1){H[d>>2]=H[b>>2];d=d+4|0;b=b+4|0;c=c-1|0;if(c){continue}break}}return a|0}function Ei(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-768|0;xb=d;a:{if(!a){break a}if(b){H[d+668>>2]=c;zb[b|0](d,a);break a}Kb(a)}xb=d+768|0}function y7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=H[a+584>>2];if((b|0)==317){G[H[c>>2]>>1]=H[d>>2];return 1}return zb[H[d+44>>2]](a,b,c)|0}function wf(a){a=a|0;var b=0,c=0;H[a>>2]=767336;b=H[a+4>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}return a|0}function wN(a,b){a=a|0;b=b|0;var c=0;b=H[a>>2];c=H[H[b+488>>2]+4>>2];if(!c){return 7}return zb[c|0](H[b+100>>2],a,H[b+420>>2],38,0,b)|0}function uT(a,b){a=a|0;b=b|0;H[a+20>>2]=0;H[a+24>>2]=b;H[a+12>>2]=0;H[a+4>>2]=4098;H[a+8>>2]=6;H[a+16>>2]=!b;Nb(a+32|0,0,40);Ro(a+28|0)}function qk(a){a=a|0;var b=0,c=0;H[a>>2]=767272;b=H[a+4>>2];c=H[b+4>>2]-1|0;H[b+4>>2]=c;if((c|0)==-1){zb[H[H[b>>2]+8>>2]](b)}return a|0}function oja(a,b,c){a=a|0;b=b|0;c=c|0;return(b>>>0<=1114109?I[(b&15|J[(b>>>3&62|I[(b>>>9|0)+164048|0]<<6)+197168>>1]<<4)+166224|0]:2)|0}function nx(a,b){var c=0;c=H[a+24>>2];if((c|0)==H[a+28>>2]){return zb[H[H[a>>2]+52>>2]](a,b&255)|0}H[a+24>>2]=c+1;F[c|0]=b;return b&255}function lC(a,b){var c=0;c=H[a+200>>2];if((c&5)==5){H[a+200>>2]=c|24;if(!b){mc(a,0);return}Xb(a,262991);mc(a,b);return}hc(a,262946);X()}function CU(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b;b=H[b>>2]+7&-8;H[c>>2]=b+16;d=a,e=op(H[b>>2],H[b+4>>2],H[b+8>>2],H[b+12>>2]),M[d>>3]=e}function Bo(a,b,c,d,e,f){var g=0,h=0;g=H[a+4>>2];h=g>>8;a=H[a>>2];if(g&1){h=H[H[d>>2]+h>>2]}zb[H[H[a>>2]+20>>2]](a,b,c,d+h|0,g&2?e:2,f)}function om(a,b){var c=0,d=0;a:{if(b>>>0<=31){d=H[a+4>>2];c=a;break a}b=b-32|0;c=a+4|0}c=H[c>>2];H[a+4>>2]=d>>>b;H[a>>2]=d<<32-b|c>>>b}function Yda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;F[H[d>>2]+e|0]=I[(H[a+332>>2]+(N(H[H[b+84>>2]>>2],J[c>>1])+4>>>3&1023)|0)+128|0]}function L7(a){a=a|0;var b=0,c=0;c=H[a+584>>2];b=Tb(72008);H[c+144>>2]=b;if(b){a=1}else{Pb(H[a+628>>2],296416,278353,0);a=0}return a|0}function GL(a,b){a=a|0;b=b|0;var c=0;b=H[a>>2];c=H[H[b+544>>2]+4>>2];if(!c){return 7}return zb[c|0](H[b+100>>2],a,H[b+16>>2],63,0,b)|0}function $ha(a){a=a|0;var b=0;H[a>>2]=245168;b=H[a+4>>2];if(b){Kb(b)}b=a+4|0;H[b>>2]=0;H[b+4>>2]=0;H[b+8>>2]=0;H[b+12>>2]=0;return a|0}function tU(a){a=a|0;H[a>>2]=767272;Ro(a+4|0);H[a+24>>2]=0;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;return a|0}function nU(a){a=a|0;H[a>>2]=767336;Ro(a+4|0);H[a+24>>2]=0;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;return a|0}function eU(a){a=a|0;var b=0;a=H[a>>2];b=H[a+12>>2];a:{if((b|0)==H[a+16>>2]){a=zb[H[H[a>>2]+36>>2]](a)|0;break a}a=H[b>>2]}return a|0}function Vk(a){a=a|0;var b=0;b=H[a+4>>2];if(b){zb[H[b+36>>2]](a,1);if(H[a+16>>2]){H[a+20>>2]=200;H[a+308>>2]=0;return}H[a+20>>2]=100}}function qja(a,b,c){a=a|0;b=b|0;c=c|0;return(b>>>0<=125258?I[(b&7|I[(b>>>3&15|I[(b>>>7|0)+176960|0]<<4)+177940|0]<<3)+179380|0]:0)|0}function pha(a){a=a|0;var b=0,c=0;b=H[a+4>>2];if(!b){return-1}b=uk(b);Lg(H[a+4>>2],0,2);c=uk(H[a+4>>2]);Lg(H[a+4>>2],b,0);return c|0}function Tc(a){var b=0,c=0;b=H[a+32>>2];if(K[a+36>>2]>b+1>>>0){c=I[b|0]|I[b+1|0]<<8;c=c<<8|c>>>8;b=b+2|0}H[a+32>>2]=b;return c&65535}function Fe(a,b,c,d,e){var f=0;f=xb-16|0;xb=f;H[f+12>>2]=c;H[f+8>>2]=e;c=Kf(f,f+12|0);a=rk(a,b,d,H[f+8>>2]);me(c);xb=f+16|0;return a}function DX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[a>>2]=435092;Ty(a+8|0,b,+(c>>>0),+(d>>>0));H[a+8>>2]=433400;H[a>>2]=433036;return a|0}function Aq(a,b,c,d){var e=0;e=a;a=I[b|0]|I[b+1|0]<<8|(I[b+2|0]<<16|I[b+3|0]<<24);se(e,a<<24|a<<8&16711680|(a>>>8&65280|a>>>24),c,d)}function wL(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=xb-16|0;xb=e;a=Fl(a,b,e+12|0);if(!a){hq(c,H[e+12>>2],d)}xb=e+16|0;return a|0}function tM(a,b){a=a|0;b=b|0;var c=0;H[a+16>>2]=b;c=I[b+7|0];b=I[b+6|0];H[a+24>>2]=-1;H[a+28>>2]=0;H[a+32>>2]=(b<<8|c)>>>1;return 0}function mm(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<>2]=c<>>32-b}function Nl(a,b,c,d,e){var f=0,g=0;f=H[a+4>>2];g=f>>8;a=H[a>>2];if(f&1){g=H[H[c>>2]+g>>2]}zb[H[H[a>>2]+24>>2]](a,b,c+g|0,f&2?d:2,e)}function JI(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(b){H[b>>2]=H[a+152>>2]}if(c){H[c>>2]=H[a+156>>2]}if(d){H[d>>2]=H[a+160>>2]}return 0}function GA(a,b){var c=0,d=0;if(!(!a|!b)){a=H[a>>2];while(1){if(!a){return}c=H[a+4>>2];d=zb[b|0](a,0)|0;a=c;if(!d){continue}break}}}function Cq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(!a|!b)){F[b+120|0]=e;H[b+116>>2]=d;H[b+112>>2]=c;H[b+8>>2]=H[b+8>>2]|128}}function Tia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;H[d+8>>2]=0;H[d+12>>2]=0;$B(a,b,c,0,d+8|0);xb=d+16|0;return H[d+8>>2]}function HH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a:{if(Tn(a,b,c)){break a}d=0;if(b>>>0>255){break a}d=Tn(a,b+61440|0,c)}return d|0}function Cfa(a){a=a|0;H[a+216>>2]=0;H[a+436>>2]=0;H[a+144>>2]=0;a=H[a+460>>2];H[a+164>>2]=0;H[a+24>>2]=0;H[a+12>>2]=0;H[a+16>>2]=0}function AN(a,b){a=a|0;b=b|0;var c=0;b=H[a>>2];c=H[b+376>>2];H[a+16>>2]=c;H[a+20>>2]=H[b+380>>2]-c;H[a+24>>2]=H[b+384>>2];return 0}function f8(a){a=a|0;var b=0;b=H[a+828>>2];H[b+608>>2]=H[b+600>>2];Uc(b);H[a+780>>2]=H[b+596>>2];H[a+784>>2]=H[b+600>>2];return 1}function Yka(a,b,c){a=a|0;b=b|0;c=c|0;b=I[b|0]|I[b+1|0]<<8;if(b){b=((b<<8|b>>>8)&65535)+c|0}else{b=163632}return(Gc(b,a)|0)!=-1|0}function Br(a,b){H[a+28>>2]=b;H[a+24>>2]=882;H[a+20>>2]=883;H[a+16>>2]=884;H[a+12>>2]=885;H[a+8>>2]=886;H[a+4>>2]=887;H[a>>2]=888}function AA(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+16>>2]](a,b,c,d,e,f,g,h)}}function mQ(a){a=a|0;var b=0,c=0;b=H[H[a>>2]>>2];c=H[b+8>>2];a=H[b+4>>2];b=H[b>>2]+(c>>1)|0;if(c&1){a=H[a+H[b>>2]>>2]}zb[a|0](b)}function c_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;M[b>>3]=M[a+24>>3];M[c>>3]=M[a+32>>3];M[d>>3]=M[a+40>>3];M[e>>3]=M[a+48>>3]}function YZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;M[b>>3]=M[a+20>>3];M[c>>3]=M[a+28>>3];M[d>>3]=M[a+36>>3];M[e>>3]=M[a+44>>3]}function Kfa(a){a=a|0;var b=0,c=0;b=xb-224|0;xb=b;c=b+16|0;zb[H[H[a>>2]+12>>2]](a,c);H[b>>2]=c;Fc(H[191568],254320,b);xb=b+224|0}function Aja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=H[a+12>>2];H[c>>2]=b;H[d>>2]=0;return(zb[H[a+40>>2]](a,b,c,d,H[a+72>>2])|0)!=0|0}function bQ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){H[d>>2]=F[b|0];d=d+4|0;b=b+1|0;continue}break}return c|0}function WJ(a,b,c){a=a|0;b=b|0;c=c|0;a=H[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b|0;return((a|0)>0?a:0)|0}a=b-a|0;return a>>31&a}function RD(a){H[a+28>>2]=0;H[a+24>>2]=875;H[a+20>>2]=876;H[a+16>>2]=877;H[a+12>>2]=878;H[a+8>>2]=879;H[a+4>>2]=880;H[a>>2]=881}function Jw(a,b,c,d,e,f){a=zb[H[H[a+8>>2]+4>>2]](a+8|0)|0;a=am(c,d,a,a+288|0,f,e,0)-a|0;if((a|0)<=287){H[b>>2]=((a|0)/12|0)%12}}function Fw(a,b,c,d,e,f){a=zb[H[H[a+8>>2]+4>>2]](a+8|0)|0;a=_l(c,d,a,a+288|0,f,e,0)-a|0;if((a|0)<=287){H[b>>2]=((a|0)/12|0)%12}}function p_(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;a=H[a+208>>2];if(a){zb[H[H[a>>2]+464>>2]](a,b,c,d,e,f,g)}}function at(a){var b=0;H[a+72>>2]=0;F[a+61|0]=0;F[a+62|0]=1;H[a+84>>2]=H[a+80>>2];b=N(H[a+68>>2],20);if(b){Nb(H[a+88>>2],0,b)}}function VP(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){F[d|0]=I[b|0];d=d+1|0;b=b+1|0;continue}break}return c|0}function yN(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+16>>2];return(c>>>0>b>>>0|H[a+20>>2]+c>>>0<=b>>>0?d:J[H[a+24>>2]+(b<<1)>>1])|0}function x_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=H[a+208>>2];if(e){zb[H[H[e>>2]+184>>2]](e,b,c,d)}$e(a+124|0,H[b>>2],c)}function wc(a){var b=0,c=0;if(H[a+20>>2]){b=H[a>>2];if(b){c=H[a+28>>2];zb[H[c+8>>2]](c,b)}H[a>>2]=0}H[a+32>>2]=0;H[a+36>>2]=0}function vf(a,b,c){a:{if(c){H[197455]=0;Mb(a,b,c);a=H[197455];H[197455]=0;if((a|0)==1){break a}}return}ha(0)|0;_()|0;Zb();X()}function nk(a,b){a=a|0;b=b|0;a:{if((a|0)==(b|0)){break a}while(1){b=b-4|0;if(b>>>0<=a>>>0){break a}cm(a,b);a=a+4|0;continue}}}function lh(a,b){a=a|0;b=b|0;a:{if((a|0)==(b|0)){break a}while(1){b=b-1|0;if(b>>>0<=a>>>0){break a}Bw(a,b);a=a+1|0;continue}}}function kp(a){a=a|0;var b=0;b=H[a+12>>2];if((b|0)==H[a+16>>2]){return zb[H[H[a>>2]+40>>2]](a)|0}H[a+12>>2]=b+1;return I[b|0]}function kk(a,b,c){a:{if(c){H[197455]=0;Qv(a,b,c);a=H[197455];H[197455]=0;if((a|0)==1){break a}}return}ha(0)|0;_()|0;Zb();X()}function jz(a,b,c){a=a|0;b=b|0;c=c|0;H[c>>2]=0;H[c+4>>2]=0;H[c+8>>2]=0;H[c+12>>2]=0;if(H[b+72>>2]==H[a+16>>2]){Nh(b+108|0,c)}}function fN(a){a=a|0;H[a+12>>2]=1;H[a+16>>2]=0;H[a+4>>2]=0;H[a+76>>2]=0;H[a- -64>>2]=0;H[a+52>>2]=0;H[a+40>>2]=0;H[a+28>>2]=0}function cO(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if($d(a,H[b+8>>2],0)){Do(b,c,d);return}a=H[a+8>>2];zb[H[H[a>>2]+28>>2]](a,b,c,d)}function aI(a){a=a|0;var b=0;b=Lt(a+156|0);if(I[b|0]|I[b+1|0]<<8){a=1}else{a=Kt(a+160|0);a=(I[a|0]|I[a+1|0]<<8)!=0}return a|0}function _M(a){a=a|0;H[a+12>>2]=2;H[a+16>>2]=0;H[a+4>>2]=0;H[a+76>>2]=0;H[a- -64>>2]=0;H[a+52>>2]=0;H[a+40>>2]=0;H[a+28>>2]=0}function Vba(a,b,c){a=a|0;b=b|0;c=c|0;a=Nb(a,0,256);b=H[b>>2]+c|0;c=I[b|0];b=I[b+1|0];H[a+4>>2]=c-b<<5;H[a>>2]=(b+c<<5)+-8192}function Sv(a){var b=0,c=0;a:{b=a+8|0;if(H[b>>2]){c=b;b=H[b>>2]-1|0;H[c>>2]=b;if((b|0)!=-1){break a}}zb[H[H[a>>2]+16>>2]](a)}}function Fv(a,b,c){a:{if(b){H[197455]=0;rp(a,c,b);a=H[197455];H[197455]=0;if((a|0)==1){break a}}return}ha(0)|0;_()|0;Zb();X()}function sZ(a){a=a|0;var b=0;b=H[a+24>>2];if(b){return zb[H[H[b>>2]+16>>2]](b)|0}return I[a+22|0]|I[a+21|0]<<8|I[a+20|0]<<16}function Tp(a){a=a|0;var b=0;b=H[a+208>>2];if(b){zb[H[H[b>>2]+132>>2]](b);b=H[a+208>>2];zb[H[H[b>>2]+12>>2]](b)}F[a+212|0]=1}function Kw(a,b,c,d,e,f){a=zb[H[H[a+8>>2]>>2]](a+8|0)|0;a=am(c,d,a,a+168|0,f,e,0)-a|0;if((a|0)<=167){H[b>>2]=((a|0)/12|0)%7}}function JB(a,b,c){var d=0;d=H[a>>2];if(d){Kb(d);H[a>>2]=0}a:{if(!b){break a}d=a;a=Tb(c);H[d>>2]=a;if(!a){break a}Kc(a,b,c)}}function Gw(a,b,c,d,e,f){a=zb[H[H[a+8>>2]>>2]](a+8|0)|0;a=_l(c,d,a,a+168|0,f,e,0)-a|0;if((a|0)<=167){H[b>>2]=((a|0)/12|0)%7}}function AZ(a){a=a|0;var b=0;b=H[a+28>>2];if(b){return zb[H[H[b>>2]+16>>2]](b)|0}return I[a+26|0]|I[a+25|0]<<8|I[a+24|0]<<16}function iA(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;a=H[a+4>>2];if(a){zb[H[H[a>>2]+88>>2]](a,b,c,d,e,f,g)}}function hA(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;a=H[a+4>>2];if(a){zb[H[H[a>>2]+92>>2]](a,b,c,d,e,f,g)}}function ZM(a){a=a|0;var b=0;H[a+140>>2]=0;H[a+112>>2]=0;b=H[a+12>>2];Yu(a+28|0,b);Yu(a- -64|0,b);H[a+12>>2]=0;H[a+16>>2]=0}function Us(a,b,c,d){var e=0;e=xb-112|0;xb=e;rk(e,100,c,d);a=zb[H[a+156>>2]](a,b,e,H[a+160>>2])|0;xb=e+112|0;return(a|0)!=0}function SC(a,b){var c=0,d=0;a:{if(!a){break a}c=H[a+28>>2];d=H[a+24>>2];if(d){zb[d|0](a)}if(b){break a}zb[H[c+8>>2]](c,a)}}function Ifa(a){a=a|0;var b=0;zb[H[H[a>>2]+8>>2]](a);b=H[a+4>>2];if(b){zb[H[b+40>>2]](a)}H[a+20>>2]=0;H[a+4>>2]=0;Ba(1);X()}function Em(a,b){var c=0,d=0;c=H[b+72>>2];if(c){zb[H[H[c>>2]+60>>2]](a,c);return}d=M[b+8>>3];M[a+8>>3]=M[b+24>>3];M[a>>3]=d}function rp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(c){d=a;while(1){H[d>>2]=b;d=d+4|0;c=c-1|0;if(c){continue}break}}return a|0}function uQ(a,b){a=a|0;b=b|0;var c=0;if(Yv()>>>0>>0){bd(a);X()}c=Xv(a+16|0,b);H[a>>2]=c;H[a+4>>2]=c;H[a+8>>2]=(b<<2)+c}function nd(a,b){var c=0;a:{if(!a|!H[a+20>>2]){break a}c=H[b>>2];if(!c){break a}a=H[a+28>>2];zb[H[a+8>>2]](a,c)}H[b>>2]=0}function mr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a;a=H[a+68>>2];H[(d+((c-1>>>0<9?c:a-1>>>0<9?a:0)<<2)|0)+400>>2]=b;return 1}function i7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=H[a+584>>2];zb[H[e+24>>2]](a,b,c);return zb[H[e+12>>2]](a,b,c,d)|0}function eI(a,b){a=a|0;b=b|0;var c=0;b=H[H[a>>2]+132>>2];c=I[b+104|0];H[a+16>>2]=c;H[a+20>>2]=(I[b+105|0]-c|0)+1;return 0}function Wo(a,b,c){c=H[c>>2];while(1){a:{if((a|0)!=(b|0)){if((c|0)!=H[a>>2]){break a}}else{a=b}return a}a=a+4|0;continue}}function r3(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Pg(H[a>>2],c,11828);if(!a){return 64}H[d>>2]=a;H[e>>2]=0;return 0}function kx(a){var b=0;b=H[a+12>>2];if((b|0)==H[a+16>>2]){return zb[H[H[a>>2]+40>>2]](a)|0}H[a+12>>2]=b+4;return H[b>>2]}function kU(a){a=a|0;var b=0;if((zb[H[H[a>>2]+36>>2]](a)|0)==-1){return-1}b=a;a=H[a+12>>2];H[b+12>>2]=a+4;return H[a>>2]}function g3(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Pg(H[a>>2],c,11927);if(!a){return 64}H[d>>2]=a;H[e>>2]=0;return 0}function Mo(a,b,c){a:{if(!c){break a}while(1){if(I[a|0]&32){break a}Rl(H[b>>2],a);b=b+4|0;c=c-1|0;if(c){continue}break}}}function r2(a,b){a=a|0;b=b|0;var c=0;c=H[a>>2];H[b+20>>2]=H[a+20>>2];H[b+24>>2]=H[a+24>>2];return DA(c,a+28|0,b+28|0)|0}function qU(a){a=a|0;var b=0;if((zb[H[H[a>>2]+36>>2]](a)|0)==-1){return-1}b=a;a=H[a+12>>2];H[b+12>>2]=a+1;return I[a|0]}function cX(a){a=a|0;var b=0;b=H[a+240>>2];H[a+240>>2]=0;zb[H[H[a>>2]+116>>2]](a);H[a+240>>2]=b;zb[H[H[a>>2]+12>>2]](a)}function Zo(a,b,c){c=I[c|0];while(1){a:{if((a|0)!=(b|0)){if((c|0)!=I[a|0]){break a}}else{a=b}return a}a=a+1|0;continue}}function NZ(a){a=a|0;var b=0;b=H[a+208>>2];H[a+208>>2]=0;zb[H[H[a>>2]+16>>2]](a);H[a+208>>2]=b;zb[H[H[a>>2]+32>>2]](a)} +function IV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=H[a+4>>2];if(a){e=d,f=dj(b,1,c,a),H[e>>2]=f}return(a|0)!=0|0}function Gs(){var a=0;a=oc(1,228);if(!a){return 783776}H[a+8>>2]=0;H[a>>2]=1;H[a+4>>2]=1;Ob(a+156|0,783932,72);return a}function zba(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!a){break a}if((dj(b,1,c,H[a+180>>2])|0)==(c|0)){break a}hc(a,259162);X()}}function iba(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!a){break a}if((ye(b,1,c,H[a+180>>2])|0)==(c|0)){break a}hc(a,259150);X()}}function Rx(a){var b=0;b=lb(-100,a|0,0)|0;if((b|0)==-31){b=kb(a|0)|0}if(b>>>0>=4294963201){H[197018]=0-b;b=-1}return b}function Dha(a,b){a=a|0;b=b|0;var c=0,d=0;c=xb-16|0;xb=c;d=c+8|0;H[d>>2]=0;a=vr(d,a,b);xb=c+16|0;return(a?H[d>>2]:0)|0}function wv(a,b){a=a|0;b=b|0;a=H[a+4>>2]|H[a>>2]<<16;b=H[b+4>>2]|H[b>>2]<<16;return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)|0}function wg(a){a=a|0;var b=0;H[a>>2]=248800;b=H[a+4>>2];if(!(!b|!I[a+12|0])){Kb(b);H[a+4>>2]=0;H[a+8>>2]=0}return a|0}function uA(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;a=H[a+4>>2];if(a){zb[H[H[a>>2]+40>>2]](a,b,c,d,e,f,g)}}function tA(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;a=H[a+4>>2];if(a){zb[H[H[a>>2]+44>>2]](a,b,c,d,e,f,g)}}function s6(a,b){a=a|0;b=b|0;H[a>>2]=H[b>>2];H[a+4>>2]=H[b+4>>2];H[a+8>>2]=H[b+8>>2];H[a+12>>2]=H[b+12>>2];return a|0}function Xv(a,b){var c=0;c=xb-16|0;xb=c;a:{if(!(I[a+120|0]|b>>>0>30)){F[a+120|0]=1;break a}a=Vv(b)}xb=c+16|0;return a}function XY(a,b){a=a|0;b=b|0;var c=0;c=H[a>>2];a=H[a+4>>2];zh(b,c>>6,a>>6);H[b+212>>2]=a<<2;H[b+208>>2]=c<<2;return 0}function Qfa(a,b){a=a|0;b=b|0;a:{a=H[a>>2];b=H[b>>2];if(I[a|0]!=I[b|0]){break a}if(fc(a,b)){break a}return 1}return 0}function QB(a,b,c){se(a,1229209940,b,c);b=H[a+272>>2];H[a+224>>2]=H[a+268>>2];H[a+228>>2]=b;H[a+200>>2]=H[a+200>>2]|4}function Kf(a,b){var c=0;c=H[197059];b=H[b>>2];if(b){H[197059]=(b|0)==-1?788116:b}H[a>>2]=(c|0)==788116?-1:c;return a}function wO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=xb-32|0;xb=c;d=c+21|0;e=c+32|0;vv(c+8|0,d,e,b);xv(a,d,H[c+8>>2]);xb=e}function t6(a,b){a=a|0;b=b|0;H[a>>2]=G[b>>1];H[a+4>>2]=G[b+2>>1];H[a+8>>2]=G[b+4>>1];H[a+12>>2]=G[b+6>>1];return a|0}function go(a){a=a|0;var b=0,c=0;b=H[H[a>>2]+100>>2];c=H[a+20>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+16>>2]=0;H[a+20>>2]=0}function SK(a){a=a|0;var b=0,c=0;b=H[a+868>>2];if(b){c=H[a+100>>2];nd(H[a+104>>2],b+12|0);if(b){zb[H[c+8>>2]](c,b)}}}function RK(a){a=a|0;var b=0,c=0;b=H[a+872>>2];if(b){c=H[a+100>>2];nd(H[a+104>>2],b+16|0);if(b){zb[H[c+8>>2]](c,b)}}}function zu(a){a=a|0;var b=0,c=0;b=H[a+28>>2];c=H[a>>2];if(c){zb[H[b+8>>2]](b,c)}H[a>>2]=0;H[a+4>>2]=0;H[a+24>>2]=0}function n8(a){a=a|0;var b=0;b=H[a>>2];H[b+20>>2]=123;zb[H[b+4>>2]](a,-1);H[a+804>>2]=2;H[a+800>>2]=296304;return 1}function l4(a){a=a|0;var b=0,c=0;b=H[a>>2];if(b){c=H[a+28>>2];zb[H[c+8>>2]](c,b)}H[a>>2]=0;H[a+4>>2]=0;H[a+24>>2]=0}function hw(a){var b=0;b=H[a>>2];H[a>>2]=0;if(b){a=H[b+4>>2]-1|0;H[b+4>>2]=a;if((a|0)==-1){zb[H[H[b>>2]+8>>2]](b)}}}function gf(a){a=a|0;var b=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a>>2]=436884;b=H[a+4>>2];if(b){lf(b);H[a+4>>2]=0}return a|0}function Nx(a,b,c,d,e,f,g,h,i){H[a>>2]=b;H[a+4>>2]=c;H[a+8>>2]=d;H[a+12>>2]=e&65535|(i>>>16&32768|e>>>16&32767)<<16}function xC(a,b){Mh(a,b,32767,-1);if(H[a+644>>2]){cc(a,H[a+648>>2]);H[a+644>>2]=0;H[a+648>>2]=0}if(b){Nb(b,0,236)}}function nL(a,b){a=a|0;b=b|0;var c=0;c=zb[H[a+516>>2]](a,1751474532,b,0)|0;if(!c){c=Ic(b,95152,a+160|0)}return c|0}function iL(a,b){a=a|0;b=b|0;var c=0;c=zb[H[a+516>>2]](a,1886352244,b,0)|0;if(!c){c=Ic(b,95648,a+476|0)}return c|0}function dL(a,b){a=a|0;b=b|0;var c=0;c=zb[H[a+516>>2]](a,1346587732,b,0)|0;if(!c){c=Ic(b,95776,a+568|0)}return c|0}function cL(a,b){a=a|0;b=b|0;var c=0;c=zb[H[a+516>>2]](a,1651008868,b,0)|0;if(!c){c=Ic(b,95152,a+160|0)}return c|0}function Y$(a){a=a|0;var b=0;a=H[H[a>>2]-20>>2]+a|0;b=H[a+216>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+216>>2]=0}Up(a)}function B1(a,b){a=a|0;b=b|0;var c=0;b=b+20|0;c=vB(H[a>>2],G[a+22>>1],G[a+20>>1],b);if(!c){uB(a+20|0,b)}return c|0}function wi(a){var b=0,c=0;b=H[a+32>>2];if(K[a+36>>2]>b+1>>>0){c=I[b|0]|I[b+1|0]<<8;b=b+2|0}H[a+32>>2]=b;return c}function hx(a,b){a=a|0;b=b|0;var c=0;c=H[a>>2];a:{if(!c){break a}if((nx(c,b)|0)!=-1){break a}H[a>>2]=0}return a|0}function dga(a){a=a|0;var b=0;a:{b=a?H[a+180>>2]:0;if(b){if(zb[H[H[b>>2]+32>>2]](b)|0){break a}}hc(a,247324);X()}}function YQ(){H[197867]=0;H[197866]=778696;H[197866]=773768;H[197868]=46;H[197869]=44;H[197866]=773480;Dc(791480)}function Jv(a,b){if(b>>>0<=9){F[a|0]=b+48;return a+1|0}b=J[(b<<1)+781424>>1];F[a|0]=b;F[a+1|0]=b>>>8;return a+2|0}function XU(a){a=a|0;var b=0,c=0;if(a){b=H[a>>2];if(b){c=H[b+24>>2];if(c){Kb(c)}Cp(b+4|0,H[b+8>>2]);Kb(b)}Kb(a)}}function uf(a){a:{a=H[a+4>>2]&74;if(a){if((a|0)==64){return 8}if((a|0)!=8){break a}return 16}return 0}return 10}function qK(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=b<<2;d=H[b+H[a+388>>2]>>2];c=dc(c,Dl(a));H[b+H[a+388>>2]>>2]=c+d}function To(a,b){var c=0;c=xb-16|0;xb=c;H[c+8>>2]=H[a>>2];H[c+8>>2]=H[c+8>>2]+(b<<2);xb=c+16|0;return H[c+8>>2]}function $X(a){a=a|0;a=787904;while(1){if(F[a-1|0]<0){Kb(H[a-12>>2])}a=a-16|0;if((a|0)!=785936){continue}break}}function mk(){var a=0;H[197455]=0;a=H[197455];H[197455]=0;if((a|0)!=1){return H[192298]}ha(0)|0;_()|0;Zb();X()}function l1(a,b){a=a|0;b=b|0;H[a+24>>2]=H[b+20>>2];H[a+4>>2]=H[b>>2];H[a+28>>2]=H[b+24>>2];Oz(a,b,0);Oz(a,b,1)}function gU(a){a=a|0;var b=0;b=H[a+12>>2];if((b|0)==H[a+16>>2]){return zb[H[H[a>>2]+36>>2]](a)|0}return I[b|0]}function Tl(){var a=0;H[197455]=0;a=H[197455];H[197455]=0;if((a|0)!=1){return H[192492]}ha(0)|0;_()|0;Zb();X()}function Sl(){var a=0;H[197455]=0;a=H[197455];H[197455]=0;if((a|0)!=1){return H[192880]}ha(0)|0;_()|0;Zb();X()}function SJ(a,b,c){a=a|0;b=b|0;c=c|0;c=Cl(a,b,c,1);if(!c){H[a+8>>2]=H[a+8>>2]&-32769|((b|0)!=0)<<15}return c|0}function $d(a,b,c){if(!c){return H[a+4>>2]==H[b+4>>2]}if((a|0)==(b|0)){return 1}return!fc(H[a+4>>2],H[b+4>>2])}function wfa(a){a=a|0;var b=0;b=H[a+440>>2];if(H[a+84>>2]){zb[H[H[a+480>>2]+8>>2]](a)}H[b+12>>2]=H[b+12>>2]+1}function vx(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;H[a+8>>2]=-1;H[a+12>>2]=-1;H[a>>2]=0;H[a+4>>2]=0}function mZ(a){a=a|0;var b=0;H[a>>2]=419324;b=H[a+88>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+88>>2]=0}return a|0}function Ug(a,b){a=a|0;b=b|0;var c=0;c=a;a=H[a+68>>2];return H[(c+((b-1>>>0<9?b:a-1>>>0<9?a:0)<<2)|0)+400>>2]}function uH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[d>>2]=0;H[d+4>>2]=0;H[d+8>>2]=0;H[d+12>>2]=0;return 0}function q9(a,b){a=a|0;b=b|0;b=N(H[a+588>>2],b);H[a+604>>2]=b+H[a+604>>2];H[a+608>>2]=H[a+608>>2]-b;return 1}function ig(a,b,c){if(c){while(1){if(H[a>>2]==(b|0)){return a}a=a+4|0;c=c-1|0;if(c){continue}break}}return 0}function cZ(a){a=a|0;var b=0;H[a>>2]=419568;b=a-4|0;H[b>>2]=419508;if(F[a+31|0]<0){Kb(H[a+20>>2])}return b|0}function b_(a){a=a|0;var b=0;H[a>>2]=418012;b=a-4|0;H[b>>2]=417944;if(F[a+83|0]<0){Kb(H[b+76>>2])}return b|0}function Vga(a){a=a|0;var b=O(0);b=O(L[a+344>>2]+O(.5));if(b=O(0)){return~~b>>>0|0}return 0}function Iw(a,b,c,d,e){b=eg(b,c,d,e,4);if(!(I[d|0]&4)){H[a>>2]=((b|0)<69?b+2e3|0:(b|0)<100?b+1900|0:b)-1900}}function HL(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=0;Fl(a,b,c+12|0);xb=c+16|0;return H[c+12>>2]} +function Ew(a,b,c,d,e){b=dg(b,c,d,e,4);if(!(I[d|0]&4)){H[a>>2]=((b|0)<69?b+2e3|0:(b|0)<100?b+1900|0:b)-1900}}function uc(a,b){var c=0;c=b;b=ac(b);if(gc(a,c,b)){a=0}else{a=I[a+b|0];if(!a){return 1}a=(a|0)==45}return a}function RY(a){a=a|0;var b=0;H[a>>2]=419904;b=H[a+8>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+8>>2]=0}return a|0}function yia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(e>>>0<=2){a=Yx(b,c,d,e)?-1:0}else{a=-1}return a|0}function sw(a,b){var c=0;c=xb-16|0;xb=c;H[c+8>>2]=H[a>>2];H[c+8>>2]=H[c+8>>2]+b;xb=c+16|0;return H[c+8>>2]}function nha(a){a=a|0;a=H[a+4>>2];if(!a){return 1}if(H[a+76>>2]<0){a=H[a>>2]}else{a=H[a>>2]}return a>>>4&1}function mha(a){a=a|0;a=H[a+4>>2];if(!a){return-1}if(H[a+76>>2]<0){a=H[a>>2]}else{a=H[a>>2]}return a>>>5&1}function hY(a,b){a=a|0;b=b|0;F[a+592|0]=I[b|0];F[a+593|0]=I[b+1|0];F[a+594|0]=I[b+2|0];F[a+595|0]=I[b+3|0]}function eja(a){a=a|0;var b=0;b=H[a+32>>2];if(!b){return 3}Ef(a,H[H[a+16>>2]>>2]);H[b+184>>2]=513;return 0}function Ue(a){var b=0;b=xb-16|0;xb=b;if(I[a+11|0]>>>7|0){a=H[a>>2]}H[b+8>>2]=a;xb=b+16|0;return H[b+8>>2]}function Jha(a){a=a|0;var b=0;b=H[a+4>>2]-1|0;H[a+4>>2]=b;if(!H[a+4>>2]){zb[H[H[a>>2]+4>>2]](a)}return b|0}function uk(a){var b=0;a=Wx(a);b=yb;if((b|0)>=0&a>>>0>=2147483648|(b|0)>0){H[197018]=61;return-1}return a}function uha(a){a=a|0;var b=0,c=0;b=1;c=H[a+4>>2];if(!(!c|!I[a+8|0])){b=lf(c);H[a+4>>2]=0;b=!b}return b|0}function dw(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;H[e>>2]=c;H[h>>2]=f;return 3}function Nu(a,b){a=a|0;b=b|0;a=H[H[a>>2]+4>>2];b=H[H[b>>2]+4>>2];return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)|0}function Aha(a){a=a|0;var b=0;H[a>>2]=247480;b=H[a+4>>2];if(!(!b|!I[a+8|0])){lf(b);H[a+4>>2]=0}return a|0}function xfa(a){a=a|0;a=H[a>>2];return N(N(N(a&255,31)+(a>>>8&255)|0,31)+(a>>>16&255)|0,31)+(a>>>24|0)|0}function lT(a){a=a|0;var b=0;b=H[197059];if(a){H[197059]=(a|0)==-1?788116:a}return((b|0)==788116?-1:b)|0}function bm(a){a:{H[197455]=0;Kb(a);a=H[197455];H[197455]=0;if((a|0)!=1){break a}ha(0)|0;_()|0;Zb();X()}}function jca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=Nb(a,0,256),e=(I[H[b>>2]+c|0]<<6)+-8192|0,H[d>>2]=e}function g4(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[d>>2]=0;if(!b){return 81}return yi(b,333319,e)|0}function cm(a,b){var c=0;c=xb-16|0;xb=c;H[c+12>>2]=H[a>>2];H[a>>2]=H[b>>2];H[b>>2]=H[c+12>>2];xb=c+16|0}function bZ(a){a=a|0;var b=0;H[a>>2]=419568;b=a-4|0;H[b>>2]=419508;if(F[a+31|0]<0){Kb(H[a+20>>2])}Kb(b)}function a_(a){a=a|0;var b=0;H[a>>2]=418012;b=a-4|0;H[b>>2]=417944;if(F[a+83|0]<0){Kb(H[b+76>>2])}Kb(b)}function _Q(){H[197861]=0;H[197860]=778696;H[197860]=773768;G[395724]=11310;H[197860]=773440;Dc(791452)}function Y3(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[d>>2]=0;if(!b){return 81}return yi(b,333312,e)|0}function Pv(a){if(!H[a+136>>2]){H[a+136>>2]=H[H[197059]>>2]?769088:769064}if(!H[a+72>>2]){H[a+72>>2]=1}}function H$(a){a=a|0;var b=0;H[a>>2]=417500;b=a-4|0;H[b>>2]=417444;a=H[a+360>>2];if(a){Kb(a)}return b|0}function zY(a){a=a|0;var b=0;H[a>>2]=424656;b=a-4|0;H[b>>2]=424608;a=H[a+20>>2];if(a){Kb(a)}return b|0}function g8(a){a=a|0;var b=0;b=H[a+828>>2];H[b+604>>2]=H[a+780>>2];H[b+608>>2]=H[b+600>>2]-H[a+784>>2]}function _L(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;H[c+12>>2]=b;a=Gu(a,c+12|0,0);xb=c+16|0;return a|0}function QJ(a,b){a=a|0;b=b|0;b=H[a>>2];H[a+16>>2]=H[H[b+140>>2]+52>>2];H[a+20>>2]=H[b+144>>2];return 0}function M0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xb-16|0;xb=d;a=pc(a,N(b,c),d+12|0);xb=d+16|0;return a|0}function wY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[b>>2]=H[a+36>>2];H[c>>2]=H[a+40>>2];H[d>>2]=H[a+44>>2]}function uY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[b>>2]=H[a+32>>2];H[c>>2]=H[a+36>>2];H[d>>2]=H[a+40>>2]}function tga(a){a=a|0;var b=0;b=H[a+4>>2];if(!(!b|!I[a+12|0])){Kb(b);H[a+4>>2]=0;H[a+8>>2]=0}return 1}function XV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[b>>2]=H[a+28>>2];H[c>>2]=H[a+32>>2];H[d>>2]=H[a+36>>2]}function WV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[b>>2]=H[a+24>>2];H[c>>2]=H[a+28>>2];H[d>>2]=H[a+32>>2]}function zga(a,b,c){a=a|0;b=b|0;c=c|0;return(H[a+44>>2]?0:(H[a+56>>2]+N(H[a+52>>2],c)|0)+N(b,3)|0)|0}function g$(a){a=a|0;a=H[(H[H[a>>2]-36>>2]+a|0)+120>>2]+592|0;return I[a|0]|I[a+1|0]<<8|I[a+2|0]<<16}function Vm(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}function Vc(){var a=0;H[197455]=0;a=H[197455];H[197455]=0;if((a|0)!=1){return}ha(0)|0;_()|0;Zb();X()}function V_(a){a=a|0;a=H[(H[H[a>>2]-60>>2]+a|0)+120>>2]+596|0;return I[a|0]|I[a+1|0]<<8|I[a+2|0]<<16}function Kka(a,b){a=a|0;b=b|0;a=H[a+712>>2];F[b|0]=0;if(!(!a|H[a+1504>>2]==65535)){F[b|0]=1}return 0}function paa(a,b){a=a|0;b=b|0;if((b|0)<=0){a=Ve(a);a=a?a:1;b=a>>>0>8192?1:8192/(a>>>0)|0}return b|0}function mq(a,b,c){if((b|0)>0){a=zb[H[a+4>>2]](a,b)|0;H[c>>2]=!a<<6;return a}H[c>>2]=b?6:0;return 0}function Zv(a){H[197455]=0;Kb(a);a=H[197455];H[197455]=0;if((a|0)!=1){return}ha(0)|0;_()|0;Zb();X()}function Uia(a){a=a|0;var b=0;a:{if(!a){break a}a=H[a+88>>2];if(!a){break a}b=H[a+36>>2]}return b|0}function F8(a,b){a=a|0;b=b|0;a=H[a+12>>2];Pb(H[a+628>>2],288972,289199,0);ed(H[a+584>>2]+4|0,1);X()}function E8(a,b){a=a|0;b=b|0;a=H[a+12>>2];Pb(H[a+628>>2],288972,289199,0);ed(H[a+584>>2]+4|0,1);X()}function $9(a,b){a=a|0;b=b|0;H[a+528>>2]=0;H[a+516>>2]=1472;H[a+512>>2]=0;H[a+524>>2]=1472;return 1}function xla(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return zb[H[H[a+548>>2]+40>>2]](a,b,c,d,e)|0}function sL(a,b){a=a|0;b=b|0;var c=0;c=H[H[a+12>>2]+48>>2];if(!c){return 150}return zb[c|0](a,b)|0}function lda(a){a=a|0;H[H[a+388>>2]+12>>2]=0;zb[H[H[a+404>>2]+4>>2]](a);zb[H[H[a+404>>2]+8>>2]](a)}function lQ(a,b,c){a=a|0;b=b|0;c=c|0;if(c>>>0<=127){a=(J[mk()+(c<<1)>>1]&b)!=0}else{a=0}return a|0}function Xha(a){a=a|0;var b=0;b=H[a+4>>2]-1|0;H[a+4>>2]=b;if(!b){zb[H[H[a>>2]+4>>2]](a)}return b|0}function Nz(a,b,c){a=a|0;b=b|0;c=c|0;a=H[H[a>>2]-12>>2]+a|0;H[a+4>>2]=b;H[a+12>>2]=b+c;H[a+8>>2]=b}function IJ(a,b,c){a=a|0;b=b|0;c=c|0;if(fc(b,10673)){a=12}else{H[c>>2]=H[a- -64>>2];a=0}return a|0}function Hh(a){var b=0;b=I[a+3|0];F[a+3|0]=I[a|0];F[a|0]=b;b=I[a+2|0];F[a+2|0]=I[a+1|0];F[a+1|0]=b}function G$(a){a=a|0;var b=0;H[a>>2]=417500;b=a-4|0;H[b>>2]=417444;a=H[a+360>>2];if(a){Kb(a)}Kb(b)}function Aba(a){a=a|0;if(!a){return 0}a=DC(2,H[a+672>>2],H[a+668>>2]);if(a){Nb(a,0,236)}return a|0}function yY(a){a=a|0;var b=0;H[a>>2]=424656;b=a-4|0;H[b>>2]=424608;a=H[a+20>>2];if(a){Kb(a)}Kb(b)}function tH(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;H[f>>2]=0;H[e>>2]=0;return 0}function e$(a){a=a|0;var b=0;a=H[(H[H[a>>2]-40>>2]+a|0)+120>>2];b=H[a+16>>2];return(b?b:a+24|0)|0}function VD(a){var b=0;b=xb-48|0;xb=b;a:{if(a){SD(b,a);a=UD(b);break a}a=UD(0)}xb=b+48|0;return a}function Uv(a,b){var c=0;c=H[a+4>>2];while(1){if((b|0)!=(c|0)){c=c-4|0;continue}break}H[a+4>>2]=b}function O$(a){a=a|0;var b=0;H[a+4>>2]=417500;H[a>>2]=417444;b=H[a+364>>2];if(b){Kb(b)}return a|0}function Eba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!a|(c|0)!=156){a=d}else{H[a+156>>2]=b}return a|0}function Bw(a,b){var c=0;c=xb-16|0;xb=c;F[c+15|0]=I[a|0];F[a|0]=I[b|0];F[b|0]=I[c+15|0];xb=c+16|0}function BF(a,b,c){a=a|0;b=b|0;c=c|0;c=a;a=I[b|0]|I[b+1|0]<<8;return(c|0)==((a<<8|a>>>8)&65535)|0}function wba(a){a=a|0;var b=0;b=1;if(!(!a|!I[a+398|0])){H[a+208>>2]=H[a+208>>2]|2;b=7}return b|0}function qD(a){var b=0;a:{if(!H[a+928>>2]){break a}if(!bl(a,0,0)){break a}b=H[a+928>>2]}return b}function ov(a){var b=0;a:{a=H[a>>2]-12|0;b=H[a+8>>2]-1|0;H[a+8>>2]=b;if((b|0)>=0){break a}Kb(a)}}function oV(a){a=a|0;H[a+4>>2]=0;H[a+8>>2]=0;H[a>>2]=752128;H[a+12>>2]=0;H[a+16>>2]=0;return a|0}function o0(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;_z(a-8|0,b,c,d,e,f,g,h)}function kX(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0;Ny(a-8|0,b,c,d,e,f,g,h)}function cc(a,b){a=a|0;b=b|0;var c=0;if(!(!a|!b)){c=H[a+676>>2];if(c){zb[c|0](a,b);return}Kb(b)}}function bp(a){a=a|0;if((a|0)!=0&(a|0)!=769064&(a|0)!=769088&(a|0)!=789844&(a|0)!=789868){Kb(a)}}function Wv(a,b){var c=0;c=xb-16|0;xb=c;a:{if((a|0)==(b|0)){F[a+120|0]=0;break a}Zv(b)}xb=c+16|0}function CY(a){a=a|0;var b=0;H[a+4>>2]=424656;H[a>>2]=424608;b=H[a+24>>2];if(b){Kb(b)}return a|0}function YG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=H[b>>2];zb[H[a+28>>2]](a,H[b+4>>2],c,H[a+48>>2])}function TN(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($d(a,H[b+8>>2],f)){Co(b,c,d,e)}}function Np(a,b){a=a|0;b=b|0;a:{b=H[H[b+76>>2]>>2];if(b){ny(a,b);break a}H[a>>2]=0;F[a+11|0]=0}}function KA(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;zb[H[H[b>>2]+16>>2]](a,b,H[c+8>>2],H[c+12>>2],0,d)}function CI(a){a=a|0;var b=0;b=Vd(H[a+4>>2],10174);if(!b){return 11}H[a+28>>2]=H[b>>2];return 0}function sha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=H[a+4>>2];if(!a){return 0}return ye(b,c,d,a)|0}function s_(a){a=a|0;H[a+4>>2]=418012;H[a>>2]=417944;if(F[a+87|0]<0){Kb(H[a+76>>2])}return a|0}function kZ(a){a=a|0;H[a+4>>2]=419568;H[a>>2]=419508;if(F[a+35|0]<0){Kb(H[a+24>>2])}return a|0}function fz(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[H[a+12>>2]+56>>2]+12>>2]](H[a+52>>2],b,c)|0}function _$(a){a=a|0;var b=0;b=H[a+208>>2];H[a+208>>2]=0;zb[H[H[a>>2]+16>>2]](a);H[a+208>>2]=b}function X$(a,b){a=a|0;b=b|0;yz(a,b);b=H[a+216>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+216>>2]=0}}function Fba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(a){H[a+676>>2]=d;H[a+672>>2]=c;H[a+668>>2]=b}}function Dba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(a){H[a+164>>2]=d;H[a+160>>2]=c;H[a+168>>2]=b}}function Cj(a){a=a|0;var b=0,c=0;c=a;b=H[a+100>>2];a=H[a+60>>2];return CB(c,a>>>0>b>>>0?b:a)|0}function ux(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[a+8>>2]=-1;H[a+12>>2]=-1;H[a>>2]=0;H[a+4>>2]=0}function mA(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+72>>2]](a,b,c,d)}}function kka(a){a=a|0;a=a+24|0;lc(a,1818914159,0,1);lc(a,1986686319,0,1);lc(a,1953131887,0,1)}function fx(a){var b=0;b=a;a=0;while(1){if((a|0)!=3){H[(a<<2)+b>>2]=0;a=a+1|0;continue}break}}function ew(a){a=a|0;var b=0;H[a>>2]=773340;b=H[a+8>>2];if(!(!b|!I[a+12|0])){Kb(b)}return a|0}function JZ(a,b,c,d,e,f,g,h,i){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;return 0}function IN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=zb[a|0](b,c,d,e)|0;ja(yb|0);return a|0}function IM(a,b,c){a=a|0;b=b|0;c=c|0;c=H[a+104>>2];G[a+144>>1]=0-c;H[a+140>>2]=0-N(G[b>>1],c)}function xI(a){a=a|0;if(Oq(H[H[a>>2]+504>>2]+108|0,H[a+44>>2])){FC(H[a+44>>2]);H[a+44>>2]=0}}function ad(a){var b=0,c=0;c=a;while(1){b=c;c=b+4|0;if(H[b>>2]){continue}break}return b-a>>2}function WT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return zb[H[H[a>>2]+32>>2]](a,b,c,d,e)|0}function N$(a){a=a|0;var b=0;H[a+4>>2]=417500;H[a>>2]=417444;b=H[a+364>>2];if(b){Kb(b)}Kb(a)}function Bf(a,b){a=a|0;b=b|0;return(I[a+458|0]?b:b<<8&16711680|b<<24|(b>>>8&65280|b>>>24))|0}function $6(a){a=a|0;var b=0;H[a>>2]=396108;b=H[a+68>>2];if(b){Kb(b);H[a+68>>2]=0}return a|0}function yM(a,b){a=a|0;b=b|0;a=H[a+16>>2];H[b+4>>2]=0;H[b>>2]=I[a+5|0]|I[a+4|0]<<8;return 0}function uM(a,b){a=a|0;b=b|0;a=H[a+16>>2];H[b+4>>2]=2;H[b>>2]=I[a+5|0]|I[a+4|0]<<8;return 0}function sS(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;be(a,H[a+8>>2]);return Wi(a,H[a+8>>2],b,c,d)|0}function q1(a,b,c){a=a|0;b=b|0;c=c|0;if(b){Wg(a+20|0,b)}if(c){je(a+20|0,H[c>>2],H[c+4>>2])}}function oM(a,b){a=a|0;b=b|0;a=H[a+16>>2];H[b+4>>2]=4;H[b>>2]=I[a+5|0]|I[a+4|0]<<8;return 0}function lZ(a){a=a|0;var b=0;H[a>>2]=419324;b=H[a+88>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}Kb(a)}function jM(a,b){a=a|0;b=b|0;a=H[a+16>>2];H[b+4>>2]=6;H[b>>2]=I[a+5|0]|I[a+4|0]<<8;return 0}function c7(a,b){a=a|0;b=b|0;if(b){xz(H[a+20>>2],b,3);a=H[a+20>>2];zb[H[H[a>>2]+16>>2]](a)}}function Z$(a){a=a|0;var b=0;b=H[a+216>>2];if(b){zb[H[H[b>>2]+4>>2]](b);H[a+216>>2]=0}Up(a)}function SU(a){a=a|0;a=Oa(a|0)|0;a=(a|0)==27?0:a;if(a){H[197018]=a;a=-1}else{a=0}return a|0}function Mja(a,b){a=a|0;b=b|0;a=I[a+19|0];b=I[b+19|0];return(a>>>0>>0?-1:(a|0)!=(b|0))|0}function Lga(a){a=a|0;var b=0;b=a;a=H[a>>2];zb[H[a+12>>2]](b,H[a+288>>2]);ed(a+132|0,1);X()}function KT(a,b){a=a|0;b=b|0;var c=0;c=xb-16|0;xb=c;xb=c+16|0;return(K[b>>2]>2]?b:a)|0}function JO(a){a=a|0;var b=0,c=0;b=H[a>>2];c=H[a+4>>2];if(c){zb[H[b+8>>2]](b,c)}H[a+4>>2]=0}function BY(a){a=a|0;var b=0;H[a+4>>2]=424656;H[a>>2]=424608;b=H[a+24>>2];if(b){Kb(b)}Kb(a)}function A_(a,b,c){a=a|0;b=b|0;c=c|0;if(b){H[b>>2]=H[a+10056>>2]}if(c){H[c>>2]=H[a+252>>2]}}function yk(a){a=a|0;var b=0;H[a>>2]=752128;b=H[a+4>>2];if(b){Kb(b)}H[a+4>>2]=0;return a|0}function l8(a){a=a|0;var b=0;b=H[a+828>>2];H[a+800>>2]=H[b+596>>2];H[a+804>>2]=H[b+608>>2]}function fw(a,b){var c=0;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c;H[a+8>>2]=H[b+8>>2];fx(b)}function e8(a){a=a|0;var b=0;b=H[a+828>>2];H[a+780>>2]=H[b+596>>2];H[a+784>>2]=H[b+600>>2]}function au(a,b,c){a=a|0;b=b|0;c=c|0;if(b){H[b>>2]=H[a+7928>>2]}if(c){H[c>>2]=H[a+252>>2]}}function Zs(a){if(!H[a+4>>2]){return}H[a+68>>2]=0;H[a+132>>2]=0;H[a+36>>2]=0;H[a+136>>2]=0}function Qk(a,b){var c=0;c=xb-96|0;xb=c;if(!a){hc(0,b);X()}Mq(H[a+348>>2],c,b);hc(a,c);X()}function QY(a){a=a|0;var b=0;H[a>>2]=419904;b=H[a+8>>2];if(b){zb[H[H[b>>2]+4>>2]](b)}Kb(a)}function PY(a){a=a|0;var b=0;H[a>>2]=419968;b=H[a+8>>2];if(b){Kb(b);H[a+8>>2]=0}return a|0}function Nm(a,b){if(b){Nm(a,H[b>>2]);Nm(a,H[b+4>>2]);if(F[b+31|0]<0){Kb(H[b+20>>2])}Kb(b)}}function LV(a){a=a|0;var b=0;H[a+8>>2]=0;H[a+12>>2]=0;b=H[a+4>>2];if(b){lf(b);H[a+4>>2]=0}}function Gm(a,b){if(b){Gm(a,H[b>>2]);Gm(a,H[b+4>>2]);if(F[b+31|0]<0){Kb(H[b+20>>2])}Kb(b)}}function AT(a,b,c){a=a|0;b=b|0;c=c|0;if(!((c|0)==1|(c|0)>256)){Fo(a,c);return}Cf(a,238499)}function wH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;H[e>>2]=0;H[d>>2]=0;return 1}function vH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;H[e>>2]=0;H[d>>2]=0;return 0}function jg(a,b,c,d){var e=0;e=xb-16|0;xb=e;H[e+12>>2]=d;a=rk(a,b,c,d);xb=e+16|0;return a}function jZ(a){a=a|0;H[a+4>>2]=419568;H[a>>2]=419508;if(F[a+35|0]<0){Kb(H[a+24>>2])}Kb(a)}function i_(a){a=a|0;H[a+4>>2]=418012;H[a>>2]=417944;if(F[a+87|0]<0){Kb(H[a+76>>2])}Kb(a)}function bK(a,b){a=a|0;b=b|0;a=H[a+4>>2];b=H[b+4>>2];return(a>>>0>>0?-1:a>>>0>b>>>0)|0}function aja(){var a=0;a=xb-16|0;xb=a;H[a+12>>2]=0;Rz(a+12|0);xb=a+16|0;return H[a+12>>2]}function _q(a){a=a|0;var b=0;b=H[a+4>>2];if(b){zb[H[b+40>>2]](a)}H[a+20>>2]=0;H[a+4>>2]=0}function Ke(a,b,c){b=Jc(a,b);if(!b){H[c>>2]=H[a+32>>2];H[a+32>>2]=0;H[a+36>>2]=0}return b}function JN(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;zb[a|0](b,c,d,e,f,g)}function Hea(a){a=a|0;var b=0;b=H[a+472>>2];H[b+92>>2]=H[a+316>>2];H[b+96>>2]=H[a+116>>2]}function $x(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=(b|0)/(c|0)|0;H[a>>2]=d;H[a+4>>2]=b-N(c,d)}function vha(a){a=a|0;var b=0;H[a>>2]=247480;b=H[a+4>>2];if(!(!b|!I[a+8|0])){lf(b)}Kb(a)}function kma(a,b){var c=0,d=0;c=b&31;d=(-1>>>c&a)<>>a}function aK(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=H[b+12>>2]+(c<<3)|0;H[a+4>>2]=H[a+4>>2]+d}function a8(a,b){a=a|0;b=b|0;H[a+556>>2]=1576;H[a+548>>2]=1576;H[a+540>>2]=1576;return 1}function zK(a){a=a|0;H[a+304>>2]=-1;H[a+308>>2]=-1;H[a+116>>2]=-1;F[a+112|0]=0;return 0}function bl(a,b,c){var d=0;if(!((c|b)<0|H[a+20>>2]<=(c|0))){d=H[a+16>>2]>(b|0)}return d}function vka(a,b){a=a|0;b=b|0;a=J[a>>1];b=J[b>>1];return(a>>>0>>0?-1:a>>>0>b>>>0)|0}function lr(a){a=a|0;Bd(a,3);H[a+940>>2]=0;H[a>>2]=248756;Nb(a+460|0,0,464);return a|0}function XK(a){a=a|0;nd(H[a+104>>2],a+788|0);H[a+800>>2]=0;H[a+792>>2]=0;H[a+796>>2]=0}function Wt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;hq(c,H[H[a+424>>2]+(b<<2)>>2],d);return 0}function WI(a,b){a=a|0;b=b|0;var c=0,d=0;c=a,d=zb[H[b+52>>2]](b,0,0,0)|0,H[c+544>>2]=d}function Cia(a,b){a=a|0;b=b|0;if(H[b+76>>2]<0){a=H[b>>2]}else{a=H[b>>2]}return a>>>5&1}function wT(a,b){a=a|0;b=b|0;var c=0;c=a;a=H[b+28>>2];H[c>>2]=a;H[a+4>>2]=H[a+4>>2]+1}function vp(a,b,c){var d=0;d=xb-16|0;xb=d;H[d+12>>2]=c;a=Ax(a,b,c);xb=d+16|0;return a}function vd(a,b,c){var d=0;d=H[a+176>>2];if(d){zb[d|0](a,b,c);return}hc(a,258803);X()}function uh(a,b,c){var d=0;d=xb-16|0;xb=d;H[d+12>>2]=c;a=sp(a,b,c);xb=d+16|0;return a}function nP(a){a=a|0;a=790504;while(1){a=_b(a-12|0);if((a|0)!=790336){continue}break}}function lP(a){a=a|0;a=790680;while(1){a=Sc(a-12|0);if((a|0)!=790512){continue}break}}function iP(a){a=a|0;a=790976;while(1){a=_b(a-12|0);if((a|0)!=790688){continue}break}}function gP(a){a=a|0;a=791280;while(1){a=Sc(a-12|0);if((a|0)!=790992){continue}break}}function eP(a){a=a|0;a=791320;while(1){a=_b(a-12|0);if((a|0)!=791296){continue}break}}function cP(a){a=a|0;a=791352;while(1){a=Sc(a-12|0);if((a|0)!=791328){continue}break}}function Vp(a,b){var c=0;c=H[b>>2];H[a>>2]=c;H[H[c-12>>2]+a>>2]=H[b+4>>2];$y(a+124|0)}function UL(a,b,c){a=a|0;b=b|0;c=c|0;H[b>>2]=H[a+132>>2];H[c>>2]=H[a+136>>2];return 0}function Qc(a,b,c){var d=0;d=H[a+172>>2];if(d){zb[d|0](a,b,c);return}hc(a,258775);X()}function PA(a){a=a|0;if(I[a+64|0]){zb[H[H[a>>2]+52>>2]](a,0);zb[H[H[a>>2]+56>>2]](a)}}function P8(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Pb(H[a+628>>2],296112,289270,0);return 0}function No(){var a=0;a=oa(4)|0;H[a>>2]=782716;H[a>>2]=782696;Ca(a|0,782768,3811);X()}function Nea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ug(H[b>>2],c,d,0,e,H[a+112>>2])}function JW(a,b,c){a=a|0;b=b|0;c=c|0;H[b>>2]=H[a+176>>2];H[c>>2]=H[a+180>>2];return 0}function GR(a,b,c){a=a|0;b=b|0;c=c|0;c=kp(H[b>>2])<<24;H[a+4>>2]=H[b>>2];F[a|0]=c>>24}function G8(a,b){a=a|0;b=b|0;a=G[a>>1];b=G[b>>1];return((a|0)<(b|0)?-1:(a|0)>(b|0))|0}function u6(a){a=a|0;H[a+8>>2]=1024;H[a+12>>2]=1024;H[a>>2]=0;H[a+4>>2]=0;return a|0}function sH(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(e){F[d|0]=0}return 0}function rha(a,b,c){a=a|0;b=b|0;c=c|0;a=H[a+4>>2];if(!a){return 0}return!Lg(a,b,c)|0}function lha(a,b){a=a|0;b=b|0;a=H[a+4>>2];if(!a){return 0}return(Mg(b,a)|0)==(b|0)|0}function lfa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;zb[H[H[a+452>>2]+4>>2]](a,0,0,0,b,c,d)}function dK(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=H[b+12>>2]+(c<<3)|0;H[a>>2]=H[a>>2]+d}function bI(a,b){a=a|0;b=b|0;return zb[H[H[H[H[a>>2]+712>>2]+3084>>2]+12>>2]](a,b)|0}function ZP(a,b){a=a|0;b=b|0;if((b|0)>=0){b=H[Tl()+((b&255)<<2)>>2]}return b<<24>>24}function XP(a,b){a=a|0;b=b|0;if((b|0)>=0){b=H[Sl()+((b&255)<<2)>>2]}return b<<24>>24}function G_(a){a=a|0;return H[(H[(H[H[a>>2]-92>>2]+a|0)+120>>2]+640|0)+12>>2]>>>31|0}function Bm(a,b,c,d,e,f,g,h,i){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}function yA(a,b,c){a=a|0;b=b|0;c=c|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+24>>2]](a,b,c)}}function vga(a,b,c){a=a|0;b=b|0;c=c|0;return I[H[a+924>>2]+(N(H[a+16>>2],c)+b|0)|0]}function vS(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return zb[H[H[a>>2]+48>>2]](a,b,c,d)|0}function tY(a){a=a|0;H[a+4>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a>>2]=424816;return a|0}function nA(a,b,c){a=a|0;b=b|0;c=c|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+68>>2]](a,b,c)}}function lA(a,b,c){a=a|0;b=b|0;c=c|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+76>>2]](a,b,c)}}function kI(a,b){a=a|0;b=b|0;return zb[H[H[H[H[a>>2]+712>>2]+3084>>2]+8>>2]](a,b)|0}function k4(a){a=a|0;H[a+4>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a>>2]=400108;return a|0}function d6(a){a=a|0;H[a>>2]=398960;if(F[a+43|0]<0){Kb(H[a+32>>2])}wf(a);return a|0}function NV(a){a=a|0;H[a+12>>2]=0;H[a+4>>2]=0;H[a+8>>2]=0;H[a>>2]=436884;return a|0}function Lb(a,b,c){a=a|0;b=b|0;c=c|0;a=H[a+4>>2];if(a){ye(b,1,c,a)}return(a|0)!=0|0}function KS(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return zb[H[H[a>>2]+32>>2]](a,b,c,d)|0}function E_(a){a=a|0;return H[(H[(H[H[a>>2]-96>>2]+a|0)+120>>2]+640|0)+8>>2]>>>31|0}function Cga(a,b,c){a=a|0;b=b|0;c=c|0;return I[H[a+928>>2]+(N(H[a+16>>2],c)+b|0)|0]}function Vb(a){if(F[a+23|0]<0){Kb(H[a+12>>2])}if(F[a+11|0]<0){Kb(H[a>>2])}return a}function wA(a,b,c){a=a|0;b=+b;c=+c;a=H[a+4>>2];if(a){zb[H[H[a>>2]+32>>2]](a,b,c)}}function vA(a,b,c){a=a|0;b=+b;c=+c;a=H[a+4>>2];if(a){zb[H[H[a>>2]+36>>2]](a,b,c)}}function Xl(a,b,c){a=a|0;b=b|0;c=c|0;H[a>>2]=H[b>>2];H[a+4>>2]=H[c>>2];return a|0}function Xga(a,b){a=a|0;b=b|0;var c=0;c=a;a=b-1>>>0<9;H[c+68>>2]=a?b:0;return a|0}function m8(a){a=a|0;var b=0;b=H[a+916>>2];H[a+800>>2]=H[a+912>>2];H[a+804>>2]=b}function h8(a){a=a|0;var b=0;b=H[a+916>>2];H[a+780>>2]=H[a+912>>2];H[a+784>>2]=b}function dI(a,b){a=a|0;b=b|0;b=b-H[a+16>>2]|0;return(b>>>0>2]?b+1|0:0)|0}function Wfa(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a>>2]+12>>2]](a,b,1,c,0,0)|0}function Gk(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=+h;i=+i}function zq(a){a=a|0;var b=0,c=0;b=H[a+628>>2];c=H[a+644>>2];KB(a);zb[c|0](b)|0}function pO(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)>=257){Cf(a,238535);return}Fo(a,c)}function mO(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)>=257){Cf(a,238465);return}Fo(a,c)}function jT(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=xb-16|0;xb=b;ex(a,c,d);xb=b+16|0}function h$(a){a=a|0;a=H[a+120>>2]+592|0;return I[a|0]|I[a+1|0]<<8|I[a+2|0]<<16}function gT(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=xb-16|0;xb=b;Uw(a,c,d);xb=b+16|0}function bP(a){a=a|0;if(!I[790220]){Cf(790208,238184);F[790220]=1}return 790208}function ama(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a+548>>2]+12>>2]](a,b,c)|0} +function ZO(a){a=a|0;if(!I[790252]){Cf(790240,239526);F[790252]=1}return 790240}function XO(a){a=a|0;if(!I[790268]){Ji(790256,773592);F[790268]=1}return 790256}function XG(a){a=a|0;var b=0;if(I[a+33|0]){b=H[a+24>>2];if(b){Ll(b)}}Vc();Kb(a)}function W_(a){a=a|0;a=H[a+120>>2]+596|0;return I[a|0]|I[a+1|0]<<8|I[a+2|0]<<16}function VO(a){a=a|0;if(!I[790284]){Cf(790272,239492);F[790284]=1}return 790272}function TO(a){a=a|0;if(!I[790300]){Ji(790288,773628);F[790300]=1}return 790288}function Sea(a){a=a|0;var b=0;b=H[a+472>>2];H[b+36>>2]=0;H[b+44>>2]=H[a+116>>2]}function RO(a){a=a|0;if(!I[790316]){Cf(790304,238699);F[790316]=1}return 790304}function PO(a){a=a|0;if(!I[790332]){Ji(790320,773712);F[790332]=1}return 790320}function Is(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;H[e>>2]=0;return 0}function GW(a){a=a|0;a=H[a+168>>2]+124|0;return I[a|0]|I[a+1|0]<<8|I[a+2|0]<<16}function DZ(a){a=a|0;var b=0;H[a>>2]=419096;b=H[a+4>>2];if(b){Kb(b)}return a|0} +function AW(a){a=a|0;a=H[a+168>>2]+128|0;return I[a|0]|I[a+1|0]<<8|I[a+2|0]<<16}function $O(a){a=a|0;if(!I[790236]){Ji(790224,773556);F[790236]=1}return 790224}function z$(a){a=a|0;var b=0;H[a>>2]=417676;b=H[a+8>>2];if(b){Kb(b)}return a|0}function yR(a,b,c){a=a|0;b=b|0;c=c|0;c=kx(H[b>>2]);H[a+4>>2]=H[b>>2];H[a>>2]=c}function jma(a){var b=0;while(1){if(a){a=a-1&a;b=b+1|0;continue}break}return b}function c6(a){a=a|0;H[a>>2]=398960;if(F[a+43|0]<0){Kb(H[a+32>>2])}wf(a);Kb(a)}function Wla(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a+548>>2]+20>>2]](a,b,c)|0}function Ula(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a+548>>2]+24>>2]](a,b,c)|0}function NW(a){a=a|0;var b=0;H[a>>2]=436208;b=H[a+8>>2];if(b){Kb(b)}return a|0}function Fla(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a+548>>2]+32>>2]](a,b,c)|0}function Ela(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a+548>>2]+36>>2]](a,b,c)|0}function si(a){H[a+24>>2]=417500;H[a+20>>2]=417444;a=H[a+384>>2];if(a){Kb(a)}}function pK(a,b,c){a=a|0;b=b|0;c=c|0;c=dc(c,Dl(a));H[H[a+388>>2]+(b<<2)>>2]=c}function mK(a,b,c){a=a|0;b=b|0;c=c|0;a=H[a+388>>2]+(b<<2)|0;H[a>>2]=H[a>>2]+c}function ema(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a+548>>2]+8>>2]](a,b,c)|0}function dO(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if($d(a,H[b+8>>2],0)){Do(b,c,d)}}function Oga(a,b){a=a|0;b=b|0;return(I[a+458|0]?b:b<<8|(b&65280)>>>8)<<16>>16}function NM(a){a=a|0;zb[H[H[H[a+12>>2]+56>>2]+8>>2]](H[a+52>>2],0,0);return 0}function xQ(){H[197915]=0;H[197914]=778696;H[197914]=773768;H[197914]=777532}function jba(a,b){a=a|0;b=b|0;if(a){H[a+280>>2]=b;H[a+204>>2]=H[a+204>>2]|2}}function f$(a){a=a|0;var b=0;a=H[a+120>>2];b=H[a+16>>2];return(b?b:a+24|0)|0}function eq(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0}function d_(a,b,c){a=a|0;b=b|0;c=c|0;M[b>>3]=M[a+56>>3];M[c>>3]=M[a- -64>>3]}function Vfa(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a>>2]+16>>2]](a,b,1,c)|0}function Ria(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return kC(a,b,c,d,e)|0}function RQ(){H[197883]=0;H[197882]=778696;H[197882]=773768;H[197882]=776380}function MQ(){H[197891]=0;H[197890]=778696;H[197890]=773768;H[197890]=776876}function KQ(){H[197893]=0;H[197892]=778696;H[197892]=773768;H[197892]=777040}function IQ(){H[197895]=0;H[197894]=778696;H[197894]=773768;H[197894]=777204}function FQ(){H[197897]=0;H[197896]=778696;H[197896]=773768;H[197896]=777368}function rO(a,b,c){a=a|0;b=b|0;c=c|0;return H[b>>2]==(c|0)&H[b+4>>2]==(a|0)}function pla(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a+552>>2]>>2]](a,b,c)|0}function hJ(a,b){a=a|0;b=b|0;return(b>>>0<=255?J[H[a+16>>2]+(b<<1)>>1]:0)|0}function bX(a,b,c){a=a|0;b=b|0;c=c|0;H[a+4>>2]=b;H[a+12>>2]=b+c;H[a+8>>2]=b}function Yx(a,b,c,d){if(H[a+76>>2]<0){return Zx(a,b,c,d)}return Zx(a,b,c,d)}function Bga(a){a=a|0;var b=0;b=H[a+4>>2];return(b?H[a+44>>2]?b+40|0:0:0)|0}function AM(a,b){a=a|0;b=b|0;return(b>>>0<=255?I[(H[a+16>>2]+b|0)+6|0]:0)|0}function vZ(a,b,c){a=a|0;b=b|0;c=c|0;H[b>>2]=H[a+48>>2];H[c>>2]=H[a+52>>2]}function nZ(a,b,c){a=a|0;b=b|0;c=c|0;H[b>>2]=H[a+44>>2];H[c>>2]=H[a+48>>2]}function n0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return cq(H[a+12>>2],b,c,d)|0}function kd(a){a=a|0;var b=0;b=H[a+32>>2];if((b|0)==-1){b=De(a)}return b|0}function gQ(a,b){a=a|0;b=b|0;if(b>>>0<=127){b=H[Tl()+(b<<2)>>2]}return b|0}function eQ(a,b){a=a|0;b=b|0;if(b>>>0<=127){b=H[Sl()+(b<<2)>>2]}return b|0}function _ha(a){a=a|0;var b=0;H[a>>2]=245168;b=H[a+4>>2];if(b){Kb(b)}Kb(a)}function ZX(a,b,c){a=a|0;b=b|0;c=c|0;M[b>>3]=M[a+40>>3];M[c>>3]=M[a+48>>3]}function XZ(a,b,c){a=a|0;b=b|0;c=c|0;M[b>>3]=M[a+52>>3];M[c>>3]=M[a+60>>3]}function S6(a){a=a|0;var b=0;H[a>>2]=396108;b=H[a+68>>2];if(b){Kb(b)}Kb(a)}function MI(a){a=a|0;a=H[a+140>>2];if(!a){return 0}return a+(I[a|0]==47)|0}function Fc(a,b,c){var d=0;d=xb-16|0;xb=d;H[d+12>>2]=c;Dx(a,b,c);xb=d+16|0}function yL(a){a=a|0;return(a>>>0<=127?I[(a>>>3|0)+94544|0]&1<<(a&7):0)|0}function y$(a){a=a|0;var b=0;H[a>>2]=417676;b=H[a+8>>2];if(b){Kb(b)}Kb(a)}function tN(a,b){a=a|0;b=b|0;return zb[H[H[H[a>>2]+488>>2]+12>>2]](a,b)|0}function rA(a,b){a=a|0;b=b|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+52>>2]](a,b)}}function oA(a,b){a=a|0;b=b|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+64>>2]](a,b)}}function lz(a){a=a|0;var b=0;H[a>>2]=419096;b=H[a+4>>2];if(b){Kb(b)}Kb(a)}function kA(a,b){a=a|0;b=b|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+80>>2]](a,b)}}function dU(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a>>2]+12>>2]](a,b,c)|0}function RN(a){a=a|0;if(!a){return 0}return(Oe(a,782020,782164,0)|0)!=0|0}function OY(a){a=a|0;var b=0;H[a>>2]=419968;b=H[a+8>>2];if(b){Kb(b)}Kb(a)}function MW(a){a=a|0;var b=0;H[a>>2]=436208;b=H[a+8>>2];if(b){Kb(b)}Kb(a)}function EL(a,b){a=a|0;b=b|0;return zb[H[H[H[a>>2]+544>>2]+12>>2]](a,b)|0}function $T(a,b,c){a=a|0;b=b|0;c=c|0;return zb[H[H[a>>2]+48>>2]](a,b,c)|0}function uN(a,b){a=a|0;b=b|0;return zb[H[H[H[a>>2]+488>>2]+8>>2]](a,b)|0}function rw(a,b){var c=0;c=H[b>>2];H[b>>2]=0;ae(a,c);H[a+4>>2]=H[b+4>>2]}function oK(a,b){a=a|0;b=b|0;return Rb(H[H[a+388>>2]+(b<<2)>>2],Dl(a))|0}function m4(a,b,c,d,e,f,g,h){a=a|0;b=+b;c=+c;d=+d;e=+e;f=f|0;g=g|0;h=h|0}function ed(a,b){a=a|0;b=b|0;if(!H[197455]){H[197456]=b;H[197455]=a}hb()}function Yha(a){a=a|0;var b=0;b=a;a=H[a+4>>2]+1|0;H[b+4>>2]=a;return a|0}function FL(a,b){a=a|0;b=b|0;return zb[H[H[H[a>>2]+544>>2]+8>>2]](a,b)|0}function EN(a){a=a|0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;H[a+28>>2]=0}function z_(a){a=a|0;return H[H[(H[H[a>>2]-112>>2]+a|0)+120>>2]+680>>2]}function cha(a){a=a|0;return(H[a+32>>2]+H[a+12>>2]|0)+(H[a+44>>2]<<2)|0}function baa(a,b){a=a|0;b=b|0;Pb(H[a+628>>2],H[a>>2],272336,0);return 0}function _7(a,b){a=a|0;b=b|0;H[a+548>>2]=1577;H[a+540>>2]=1577;return 1}function YS(a,b){a=a|0;b=b|0;be(a,H[a+8>>2]);return fg(a,H[a+8>>2],b)|0}function U9(a){a=a|0;H[a+84>>2]=131088;G[a+98>>1]=J[a+90>>1]==32844?1:3}function S_(a){a=a|0;return H[H[(H[H[a>>2]+-64>>2]+a|0)+120>>2]+612>>2]}function Qo(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[e>>2]=c;return 3}function CH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[d>>2]=0;return 0}function tT(a){a=a|0;H[a+16>>2]=H[a+16>>2]|1;if(F[a+20|0]&1){Xa();X()}}function tJ(a,b){a=a|0;b=b|0;H[a+16>>2]=H[H[a>>2]+712>>2]+668;return 0}function s$(a){a=a|0;lf(H[a+12>>2]);H[a+12>>2]=0;H[a>>2]=0;H[a+4>>2]=0}function k$(a){a=a|0;return+M[H[(H[H[a>>2]-28>>2]+a|0)+120>>2]+632>>3]}function ih(a,b){a=a|0;b=b|0;F[a|0]=2;F[a+1|0]=3;F[a+2|0]=0;F[a+3|0]=4}function i$(a){a=a|0;return+M[H[(H[H[a>>2]-32>>2]+a|0)+120>>2]+624>>3]}function dma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ms(a,b,c,d,0,0)|0}function Z_(a){a=a|0;return H[H[(H[H[a>>2]-52>>2]+a|0)+120>>2]+600>>2]}function X_(a){a=a|0;return H[H[(H[H[a>>2]-56>>2]+a|0)+120>>2]+604>>2]}function PM(a){a=a|0;return(a>>>0<=390?G[(a<<1)+35632>>1]+31408|0:0)|0}function NO(a,b,c){a=a|0;b=b|0;c=c|0;H[a>>2]=0;F[a+128|0]=0;return a|0}function K_(a){a=a|0;return H[H[(H[H[a>>2]-80>>2]+a|0)+120>>2]+608>>2]}function I_(a){a=a|0;return H[H[(H[H[a>>2]-84>>2]+a|0)+120>>2]+620>>2]}function Xla(a,b){a=a|0;b=b|0;return zb[H[H[a+548>>2]+16>>2]](a,b)|0} +function N8(a,b){a=a|0;b=b|0;Pb(H[a+628>>2],296097,289270,0);return 0}function Fr(a,b){a=a|0;b=b|0;a=oa(4)|0;H[a>>2]=b;Ca(a|0,782428,0);X()}function C_(a){a=a|0;return H[H[(H[H[a>>2]-100>>2]+a|0)+120>>2]+4>>2]}function $_(a){a=a|0;return H[H[(H[H[a>>2]-48>>2]+a|0)+120>>2]+12>>2]}function yZ(a){a=a|0;a=H[a+28>>2];if(!a){return 255}return I[a+11|0]}function wU(a,b){a=a|0;b=b|0;if(!H[197455]){H[197456]=b;H[197455]=a}}function ula(a){a=a|0;var b=0;b=H[a+548>>2];if(b){zb[H[b+44>>2]](a)}}function qZ(a){a=a|0;a=H[a+24>>2];if(!a){return 255}return I[a+11|0]}function oQ(a){a=a|0;var b=0;b=H[197523]+1|0;H[197523]=b;H[a+4>>2]=b}function nR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Vo(a,f)}function mf(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}function ji(a,b){return b?a<<8&16711680|a<<24|(a>>>8&65280|a>>>24):a}function dfa(a){a=a|0;var b=0;b=H[a>>2];H[b+20>>2]=47;zb[H[b>>2]](a)}function b$(a){a=a|0;return H[H[(H[H[a>>2]-44>>2]+a|0)+120>>2]+8>>2]}function QM(a){a=a|0;return G[((a>>>0>257?0:a)<<1)+35104>>1]+31408|0}function OH(a){a=a|0;if(!(!a|!H[a>>2])){H[a>>2]=H[a>>2]+1}return a|0}function Ml(a,b,c,d,e){b=ab(a|0,b|0,c|0,d|0,e|0)|0;yb=_()|0;return b}function Lla(a,b){a=a|0;b=b|0;return zb[H[H[a+548>>2]+28>>2]](a,b)|0}function Fga(a){a=a|0;a=H[a+24>>2];H[a+4>>2]=4096;H[a>>2]=H[a+52>>2]}function FY(a,b){a=a|0;b=b|0;Pp(b,H[a>>2]<<2,H[a+4>>2]<<2);return 0}function zia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return dj(c,1,d,b)|0}function yg(a,b){a=a|0;b=b|0;if(!H[a+4>>2]){Ob(a+52|0,b+52|0,872)}}function yaa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Rs(a,b,c,d)|0}function p1(a,b){a=a|0;b=b|0;H[a+4>>2]=b;H[a>>2]=401052;return a|0}function jX(a,b){a=a|0;b=b|0;H[a+4>>2]=b;H[a>>2]=435456;return a|0}function aQ(a,b,c){a=a|0;b=b|0;c=c|0;return(b>>>0<128?b:c)<<24>>24}function Ww(a,b,c){a=a|0;b=b|0;c=c|0;return sk(0,a,b,c?c:789896)|0}function Vv(a){if(a>>>0>1073741823){Td(239085);X()}return Qb(a<<2)}function O_(a){a=a|0;return H[(H[H[a>>2]-72>>2]+a|0)+120>>2]+448|0}function C2(a){a=a|0;var b=0;b=H[a>>2];a=a+28|0;if(a?b:0){lv(b,a)}}function Aia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ye(c,1,d,b)|0}function x$(a){a=a|0;a=H[a+208>>2];if(a){zb[H[H[a>>2]+84>>2]](a)}}function pka(a,b,c){a=a|0;b=b|0;c=c|0;tE(H[a+124>>2],b,H[a+4>>2])}function kga(a){a=a|0;return(H[a+4>>2]?H[a+16>>2]>H[a+8>>2]:-1)|0}function i6(a){a=a|0;a=H[H[a>>2]-12>>2]+a|0;ge(a+12|0);return a|0}function Wx(a){if(H[a+76>>2]<0){a=Xx(a);return a}a=Xx(a);return a}function Wga(a,b,c){a=a|0;b=b|0;c=c|0;H[a+396>>2]=c;H[a+392>>2]=b}function rz(a){a=a|0;var b=0;b=H[a>>2];if(a){zb[H[b+8>>2]](b,a)}}function rga(a,b){a=a|0;b=b|0;if(b){F[a+12|0]=0}return H[a+4>>2]}function qha(a){a=a|0;a=H[a+4>>2];if(!a){return 0}return uk(a)|0}function oha(a){a=a|0;a=H[a+4>>2];if(!a){return 0}return!ej(a)|0}function lY(a,b){a=a|0;b=b|0;if(H[a+16>>2]==(b|0)){H[a+16>>2]=0}}function kY(a,b){a=a|0;b=b|0;if(H[a+12>>2]==(b|0)){H[a+12>>2]=0}}function h_(a){a=a|0;return I[a+14|0]|I[a+13|0]<<8|I[a+12|0]<<16}function h0(a,b){a=a|0;b=b|0;return Sz(H[H[a>>2]-12>>2]+a|0,b)|0}function UV(a,b,c){a=a|0;b=b|0;c=c|0;G[a+132>>1]=b;G[a+134>>1]=c}function LO(a){a=a|0;var b=0,c=0;b=a,c=Od(),H[b>>2]=c;return a|0}function xA(a){a=a|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+28>>2]](a)}}function via(a,b){a=a|0;b=b|0;if(!b){return-1}return H[b+16>>2]}function sA(a){a=a|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+48>>2]](a)}}function rT(a,b){a=a|0;b=b|0;return a-48>>>0<10|(a|32)-97>>>0<6}function qn(a){var b=0;b=H[a+928>>2];if(b){Kb(b);H[a+928>>2]=0}}function qA(a){a=a|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+56>>2]](a)}}function pA(a){a=a|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+60>>2]](a)}}function oW(a){a=a|0;a=H[H[a+168>>2]+76>>2];return(a?a+4|0:0)|0}function lK(a,b,c){a=a|0;b=b|0;c=c|0;H[H[a+388>>2]+(b<<2)>>2]=c}function kia(a,b){a=a|0;b=b|0;Rv(a,b);H[a>>2]=782856;return a|0}function kfa(a){a=a|0;Yq(a,1);Yq(a,0);Kb(H[a+4>>2]);H[a+4>>2]=0}function jA(a){a=a|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+84>>2]](a)}}function fga(a,b){a=a|0;b=b|0;Ld(H[a+168>>2],b,255);ed(a,1);X()}function fI(a,b){a=a|0;b=b|0;Ob(b,H[a+132>>2]+4|0,156);return 0}function dx(a){a=a|0;H[a>>2]=767680;_b(a+32|0);qk(a);return a|0}function cT(a,b){a=a|0;b=b|0;return zb[H[H[a>>2]+12>>2]](a,b)|0}function ax(a,b){a=a|0;b=b|0;return zb[H[H[a>>2]+28>>2]](a,b)|0}function H_(a){a=a|0;return H[(H[a+120>>2]+640|0)+12>>2]>>>31|0}function FW(a){a=a|0;a=H[H[a+168>>2]+72>>2];return(a?a+4|0:0)|0}function EW(a){a=a|0;a=H[H[a+168>>2]+60>>2];return(a?a+4|0:0)|0}function Dka(a){a=a|0;return(a>>>0<=255?J[(a<<1)+24864>>1]:0)|0}function DW(a){a=a|0;a=H[H[a+168>>2]+64>>2];return(a?a+4|0:0)|0}function DT(a,b){a=a|0;b=b|0;return zb[H[H[a>>2]+44>>2]](a,b)|0}function BA(a){a=a|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+12>>2]](a)}}function zH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return H[a+24>>2]}function tz(a){a=a|0;return I[a+10|0]|I[a+9|0]<<8|I[a+8|0]<<16}function sW(a){a=a|0;return J[(H[a+168>>2]+104|0)+6>>1]>>>15|0}function rW(a){a=a|0;return J[(H[a+168>>2]+104|0)+4>>1]>>>15|0}function ng(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g}function mY(a,b){a=a|0;b=b|0;if(H[a+8>>2]==(b|0)){H[a+8>>2]=0}}function aha(a,b){a=a|0;b=b|0;H[a+336>>2]=H[a+44>>2]>(b|0)?b:0}function Oy(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;kj(a+8|0)}function Nq(a,b){if(I[a+206|0]&128){Xb(a,b);return}hc(a,b);X()}function F_(a){a=a|0;return H[(H[a+120>>2]+640|0)+8>>2]>>>31|0}function EX(a,b){a=a|0;b=b|0;Rv(a,b);H[a>>2]=782908;return a|0}function CA(a){a=a|0;a=H[a+4>>2];if(a){zb[H[H[a>>2]+8>>2]](a)}}function AH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return H[a+20>>2]}function tja(a){a=a|0;return((a-65&255)>>>0<26?a+32|0:a)&255} +function d$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return tc(d,c)|0}function bk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return 0}function S8(a){a=a|0;sc(H[a+628>>2],295904,288482,0);return 1}function OL(a,b){a=a|0;b=b|0;H[b>>2]=-1;H[b+4>>2]=14;return 0}function O8(a){a=a|0;Pb(H[a+628>>2],296128,289270,0);return 0}function M8(a){a=a|0;Pb(H[a+628>>2],296080,289270,0);return 0}function LZ(a){a=a|0;return+K[(H[H[a>>2]-104>>2]+a|0)+216>>2]}function HI(a,b,c){a=a|0;b=b|0;c=c|0;if(c){H[c>>2]=b}return 0}function BO(a,b,c){a=a|0;b=b|0;c=c|0;return Ev(a,b,c,ad(c))|0}function $Z(a){a=a|0;return I[a+6|0]|I[a+5|0]<<8|I[a+4|0]<<16}function vja(a){a=a|0;return!(I[a+16|0]&32?I[a+12|0]&16:1)|0}function vN(a,b){a=a|0;b=b|0;return H[H[a+424>>2]+(b<<2)>>2]}function ul(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0}function sja(a){a=a|0;return((a-97&255)>>>0<26?a-32|0:a)&255}function m0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Uz(a-8|0,b,c,d)}function kK(a,b){a=a|0;b=b|0;return H[H[a+388>>2]+(b<<2)>>2]}function h6(a){a=a|0;a=H[H[a>>2]-12>>2]+a|0;ge(a+12|0);Kb(a)}function QV(a,b){a=a|0;b=b|0;H[a+16>>2]=H[a>>2]+296;return 0}function NJ(a,b){a=a|0;b=b|0;H[H[a+8>>2]+308>>2]=-1;return 0}function Kha(a){a=a|0;H[a+4>>2]=H[a+4>>2]+1;return H[a+4>>2]}function zN(a){a=a|0;H[a+16>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0}function wl(a){var b=0;b=H[a+28>>2];if(!b){b=kc(a)}return b}function nj(a,b){if(b){nj(a,H[b>>2]);nj(a,H[b+4>>2]);Kb(b)}}function mj(a,b){if(b){mj(a,H[b>>2]);mj(a,H[b+4>>2]);Kb(b)}}function jj(a,b){if(b){jj(a,H[b>>2]);jj(a,H[b+4>>2]);Kb(b)}}function fq(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;f=f|0}function TP(a,b,c){a=a|0;b=b|0;c=c|0;return((b|0)>=0?b:c)|0}function Mm(a,b){if(b){Mm(a,H[b>>2]);Mm(a,H[b+4>>2]);Kb(b)}}function Cp(a,b){if(b){Cp(a,H[b>>2]);Cp(a,H[b+4>>2]);Kb(b)}}function Cja(a){a=a|0;var b=0;b=H[a+4>>2];if(b){uE(b)}Kb(a)}function zZ(a){a=a|0;var b=0;b=M[a+16>>3];return+(b<0?1:b)}function tO(a,b,c){a=a|0;b=b|0;c=c|0;H[a+4>>2]=b;H[a>>2]=c}function rZ(a){a=a|0;var b=0;b=M[a+12>>3];return+(b<0?1:b)}function Mfa(a){a=a|0;a=H[a>>2];H[a+20>>2]=0;H[a+108>>2]=0}function HU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;yb=0;return 0}function zL(a){a=a|0;return a-48>>>0<10|(a&-33)-65>>>0<26}function iY(a,b){a=a|0;b=b|0;return((b|0)==1?544:496)+a|0}function bw(a){a=a|0;H[a>>2]=773440;_b(a+12|0);return a|0}function bja(a,b,c){a=a|0;b=b|0;c=c|0;return Tb(N(b,c))|0}function aw(a){a=a|0;H[a>>2]=773480;_b(a+16|0);return a|0}function Ut(a,b){a=a|0;b=b|0;G[b>>1]=J[a+164>>1];return 0}function KI(a,b){a=a|0;b=b|0;G[b>>1]=J[a+312>>1];return 0}function Iga(a){a=a|0;a=H[a+24>>2];F[(a?a-20|0:0)+56|0]=1}function zo(a){a=a|0;H[a>>2]=782808;ov(a+4|0);return a|0}function pv(a){a=a|0;H[a>>2]=782788;ov(a+4|0);return a|0}function pW(a){a=a|0;a=J[a+54>>1];return+(a?+(a>>>0):96)}function j8(a){a=a|0;H[a+916>>2]=H[a+916>>2]-H[a+784>>2]}function Uga(a,b){a=a|0;b=O(b);L[a+344>>2]=b>O(0)?b:O(0)}function Uf(a){var b=0,c=0;b=a,c=yd(0,0,0),H[b+384>>2]=c}function Rl(a,b){if(H[b+76>>2]<0){Ov(a,b);return}Ov(a,b)}function Qia(a,b,c){a=a|0;b=b|0;c=c|0;return Ag(a,b,c)|0}function LM(a){a=a|0;H[a+140>>2]=H[a+140>>2]+G[a+144>>1]}function Jm(a,b,c){a=a|0;b=b|0;c=c|0;H[b>>2]=0;H[c>>2]=0}function rN(a){a=a|0;a=a<<13^a;a=a>>>17^a;return a<<5^a}function nga(a){a=a|0;return(H[a+4>>2]?H[a+16>>2]:-1)|0}function j0(a){a=a|0;a=H[H[a>>2]-12>>2]+a|0;yf(a);Kb(a)}function hja(a,b,c){a=a|0;b=b|0;c=c|0;return 1517976186}function fO(a,b,c){a=a|0;b=b|0;c=c|0;return $d(a,b,0)|0}function _b(a){if(I[a+11|0]>>>7|0){bm(H[a>>2])}return a}function WK(a,b,c){a=a|0;b=b|0;c=c|0;return EC(a,b,c)|0}function Vw(a,b,c,d){a=tp(a,b,c,0,-2147483648);return a}function V7(a){a=a|0;a=H[a+584>>2];if(a){Kb(a)}return 1}function Tt(a,b){a=a|0;b=b|0;Ob(b,a+168|0,196);return 0}function Sc(a){if(I[a+11|0]>>>7|0){Zv(H[a>>2])}return a}function Gea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[d>>2]=0}function GH(a,b,c){a=a|0;b=b|0;c=c|0;return Tn(a,b,c)|0}function Ffa(a,b){a=a|0;b=b|0;return H[a>>2]==H[b>>2]|0}function Fea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[d>>2]=c}function FH(a,b,c){a=a|0;b=b|0;c=c|0;return Ms(a,b,c)|0}function xba(a){a=a|0;if(a){H[a+208>>2]=H[a+208>>2]|1}}function sx(a){a=a|0;return hm(H[H[a>>2]-12>>2]+a|0)|0}function mga(a){a=a|0;return(H[a+4>>2]?H[a+8>>2]:-1)|0}function m$(a){a=a|0;return(H[H[a>>2]-24>>2]+a|0)+84|0}function l0(a){a=a|0;return yf(H[H[a>>2]-12>>2]+a|0)|0}function kW(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 12}function jx(a){a=a|0;return em(H[H[a>>2]-12>>2]+a|0)|0}function aJ(a,b){a=a|0;b=b|0;H[b+376>>2]=H[b+376>>2]|1}function V0(a,b){a=a|0;b=b|0;if(b){zb[H[a+8>>2]](a,b)}}function Tw(a,b){a=a|0;b=b|0;zb[H[H[b>>2]+24>>2]](a,b)}function Tfa(a){a=a|0;return zb[H[H[a>>2]+28>>2]](a)|0}function TT(a){a=a|0;return Ik(H[H[a>>2]-12>>2]+a|0)|0}function Sw(a,b){a=a|0;b=b|0;zb[H[H[b>>2]+28>>2]](a,b)}function Nw(a,b){a=a|0;b=b|0;zb[H[H[b>>2]+20>>2]](a,b)}function Hs(a){a=a|0;a=H[a+156>>2];if(a){H[a+36>>2]=0}}function GT(a){a=a|0;return xk(H[H[a>>2]-12>>2]+a|0)|0}function px(a){a=a|0;return zb[H[H[a>>2]+24>>2]](a)|0}function my(a,b){a=a|0;b=b|0;a=H[a>>2];if(a){oy(a,b)}}function maa(a,b,c){a=a|0;b=b|0;c=c|0;yj(b,(c|0)/2|0)}function kaa(a,b,c){a=a|0;b=b|0;c=c|0;Gh(b,(c|0)/4|0)}function jaa(a,b,c){a=a|0;b=b|0;c=c|0;xq(b,(c|0)/8|0)}function ie(a,b){a=Ox(a,b);return I[a|0]==(b&255)?a:0}function bE(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0}function Pw(a){a=a|0;return zb[H[H[a>>2]+12>>2]](a)|0}function Ow(a){a=a|0;return zb[H[H[a>>2]+16>>2]](a)|0}function jw(a){if(H[a>>2]){iw(a);Wv(a+16|0,H[a>>2])}}function fma(a){if(a){return 31-Q(a-1^a)|0}return 32}function dz(a){a=a|0;return J[a+12>>1]|I[a+14|0]<<16}function cd(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0}function _V(a){a=a|0;return J[a+14>>1]|I[a+16|0]<<16}function II(a,b){a=a|0;b=b|0;if(b){F[b|0]=1}return 0}function DY(a){a=a|0;return J[a+16>>1]|I[a+18|0]<<16}function By(a){a=a|0;return J[a+10>>1]|I[a+12|0]<<16}function zv(a,b){a=a|0;b=b|0;return Cv(a,b,ad(b))|0}function zV(a){a=a|0;if(F[787951]<0){Kb(H[196985])}}function yV(a){a=a|0;if(F[787963]<0){Kb(H[196988])}}function xV(a){a=a|0;if(F[787975]<0){Kb(H[196991])}}function wV(a){a=a|0;if(F[787987]<0){Kb(H[196994])}}function vV(a){a=a|0;if(F[787999]<0){Kb(H[196997])}}function tV(a){a=a|0;if(F[788023]<0){Kb(H[197003])}}function sV(a){a=a|0;if(F[788035]<0){Kb(H[197006])}}function qV(a){a=a|0;if(F[788047]<0){Kb(H[197009])}}function pV(a){a=a|0;if(F[788059]<0){Kb(H[197012])}}function nK(a){a=a|0;return Rb(J[a+256>>1],Dl(a))|0}function lga(a){a=a|0;return!H[a+4>>2]|I[a+24|0]!=0}function aV(a){a=a|0;if(F[788071]<0){Kb(H[197015])}}function TV(a){a=a|0;if(F[787927]<0){Kb(H[196979])}}function Et(a,b){a=a|0;b=b|0;return I[b+16|0]>>>7|0}function EY(a){a=a|0;return J[a+8>>1]|I[a+10|0]<<16}function AV(a){a=a|0;if(F[787939]<0){Kb(H[196982])}}function uV(a){a=a|0;if(F[788011]<0){Kb(H[197e3])}}function mI(a,b){a=a|0;b=b|0;return Af(103296,b)|0}function eW(a){a=a|0;return J[a+6>>1]|I[a+8|0]<<16}function Wz(a,b,c){a=a|0;b=b|0;c=c|0;Jp(a+8|0,b,c)}function VI(a,b){a=a|0;b=b|0;return Af(100288,b)|0}function LX(a,b){a=a|0;b=b|0;return Af(29504,b)|0} +function Eh(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=e|0}function CM(a,b){a=a|0;b=b|0;H[a+16>>2]=b;return 0}function BI(a,b){a=a|0;b=b|0;return Af(102400,b)|0}function zW(a){a=a|0;return J[H[a+168>>2]+140>>1]}function uW(a){a=a|0;return J[H[a+168>>2]+142>>1]}function tW(a){a=a|0;return J[H[a+168>>2]+148>>1]}function lN(a,b){a=a|0;b=b|0;return Af(21600,b)|0}function l$(a){a=a|0;return+M[H[a+120>>2]+632>>3]}function km(a,b){if(!a){return 0}return lm(a,b,0)}function kla(a){a=a|0;zb[H[H[a+552>>2]+28>>2]](a)}function j$(a){a=a|0;return+M[H[a+120>>2]+624>>3]}function __(a){a=a|0;return H[H[a+120>>2]+600>>2]}function _U(a,b){a=a|0;b=b|0;return Af(30144,b)|0}function Y_(a){a=a|0;return H[H[a+120>>2]+604>>2]}function VN(a,b){a=a|0;b=b|0;return Af(21344,b)|0}function VM(a,b){a=a|0;b=b|0;return Af(93616,b)|0}function T_(a){a=a|0;return H[H[a+120>>2]+612>>2]}function L_(a){a=a|0;return H[H[a+120>>2]+608>>2]}function KU(a,b){a=a|0;b=b|0;return a-48>>>0<10|0}function J_(a){a=a|0;return H[H[a+120>>2]+620>>2]}function GJ(a,b){a=a|0;b=b|0;return Af(98320,b)|0}function DM(a,b){a=a|0;b=b|0;return Af(93728,b)|0}function CW(a){a=a|0;return J[H[a+168>>2]+146>>1]}function B_(a){a=a|0;return H[H[a+120>>2]+680>>2]}function BW(a){a=a|0;return J[H[a+168>>2]+136>>1]}function qW(a){a=a|0;return J[H[a+168>>2]+80>>1]}function gZ(a){a=a|0;return(I[a+20|0]?700:400)|0}function a$(a){a=a|0;return H[H[a+120>>2]+12>>2]}function _Y(a){a=a|0;return(I[a+16|0]?700:400)|0}function Tha(a,b){a=a|0;b=b|0;H[a+12>>2]=H[b>>2]}function Pd(a,b){return tp(a,b,10,-2147483648,0)}function IW(a){a=a|0;return+M[H[a+168>>2]+96>>3]}function Hia(a){a=a|0;return H[H[a+84>>2]+88>>2]}function HW(a){a=a|0;return+M[H[a+168>>2]+88>>3]}function yQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789972))}function wQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790044))}function vQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790052))}function tia(a,b){a=a|0;b=b|0;return H[b+12>>2]}function lu(a,b,c){a=a|0;b=b|0;c=c|0;return b|0}function jm(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function jka(a){a=a|0;lc(a+24|0,1667329140,1,0)}function jR(a,b){a=a|0;b=b|0;Dd(a,b,zd(789900))}function iR(a,b){a=a|0;b=b|0;Dd(a,b,zd(789908))}function iK(a,b,c){a=a|0;b=b|0;c=c|0;return c|0}function iJ(a,b){a=a|0;b=b|0;return Qt(a,0,0)|0}function gR(a,b){a=a|0;b=b|0;Dd(a,b,zd(790104))}function fR(a,b){a=a|0;b=b|0;Dd(a,b,zd(790096))}function eR(a,b){a=a|0;b=b|0;Dd(a,b,zd(790112))}function cR(a,b){a=a|0;b=b|0;Dd(a,b,zd(790120))}function c$(a){a=a|0;return H[H[a+120>>2]+8>>2]}function ap(a,b,c,d){a=tp(a,b,c,-1,-1);return a}function aka(a){a=a|0;lc(a+24|0,1818847073,1,0)}function aj(a,b){a=a|0;b=b|0;ep(a,H[a+16>>2]|b)}function aR(a,b){a=a|0;b=b|0;Dd(a,b,zd(790128))}function ZQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790144))}function XQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790152))}function WQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789916))}function Vha(a,b){a=a|0;b=b|0;H[a+4>>2]=H[b>>2]}function VQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789924))}function Uha(a,b){a=a|0;b=b|0;H[a+8>>2]=H[b>>2]}function UQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789932))}function TQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789940))}function QQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789980))}function PQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789988))}function PL(a,b){a=a|0;b=b|0;H[b>>2]=0;return 0}function OQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789996))}function NQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790004))}function LQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790012))}function JQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790020))}function GQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790028))}function EQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(790036))}function D_(a){a=a|0;return H[H[a+120>>2]+4>>2]}function DQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789948))}function CQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789956))}function AQ(a,b){a=a|0;b=b|0;Dd(a,b,zd(789964))}function $Q(a,b){a=a|0;b=b|0;Dd(a,b,zd(790136))}function zka(a,b){a=a|0;b=b|0;return FE(a,b)|0}function yka(a,b){a=a|0;b=b|0;return DE(a,b)|0}function xka(a,b){a=a|0;b=b|0;return CE(a,b)|0}function xe(a,b,c){if(!(I[a|0]&32)){pm(b,c,a)}}function pg(a){a=a|0;return zB(a,H[a+72>>2])|0}function oaa(a){a=a|0;return H[a+12>>2]>>>10&1}function jja(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function ija(a,b,c){a=a|0;b=b|0;c=c|0;return 7}function fV(a){a=a|0;H[a>>2]=752264;return a|0}function eu(a){a=a|0;H[a+16>>2]=0;H[a+20>>2]=0}function dW(a,b,c){a=a|0;b=b|0;c=c|0;return 12}function Vz(a,b,c){a=a|0;b=b|0;c=c|0;Jp(a,b,c)}function Rha(a,b){a=a|0;b=b|0;F[a+40|0]=I[b|0]}function Nka(a,b){a=a|0;b=b|0;return TE(a,b)|0}function Jka(a,b){a=a|0;b=b|0;return Tr(a,b)|0}function Ika(a,b){a=a|0;b=b|0;return Sr(a,b)|0}function Hka(a,b){a=a|0;b=b|0;return RE(a,b)|0}function Cka(a,b){a=a|0;b=b|0;return JE(a,b)|0}function Bka(a,b){a=a|0;b=b|0;return IE(a,b)|0}function Aka(a,b){a=a|0;b=b|0;return HE(a,b)|0}function yga(a){a=a|0;return H[a+924>>2]!=0|0}function wW(a){a=a|0;return H[a+168>>2]+152|0}function sp(a,b,c){return Hx(a,b,c,3325,3326)}function rx(a){a=a|0;np(H[H[a>>2]-12>>2]+a|0)}function qj(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function qh(a,b){a=a|0;b=b|0;return lx(a,b)|0}function pk(a,b){a=a|0;b=b|0;return ox(a,b)^1}function mw(a,b,c){a=a|0;b=b|0;c=c|0;return-1}function ix(a){a=a|0;ip(H[H[a>>2]-12>>2]+a|0)}function gm(a,b){a=a|0;b=b|0;return lx(a,b)^1}function fX(a,b){a=a|0;b=b|0;return Sz(a,b)|0}function QT(a){a=a|0;hp(H[H[a>>2]-12>>2]+a|0)}function P_(a){a=a|0;return H[a+120>>2]+448|0}function Ig(a,b){a=a|0;b=b|0;return ox(a,b)|0}function IK(a){a=a|0;H[a- -64>>2]=40;return 0}function FT(a){a=a|0;gp(H[H[a>>2]-12>>2]+a|0)}function Ega(a){a=a|0;return H[a+928>>2]!=0|0}function xia(a,b){a=a|0;b=b|0;return Wx(b)|0}function rfa(a){a=a|0;H[H[a+456>>2]>>2]=1199}function hba(a){a=a|0;if(a){ej(H[a+180>>2])}}function gd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0}function bla(a){a=a|0;return H[a+8>>2]>>>9&1}function ZH(a){a=a|0;return H[a>>2]==65535|0}function Yea(a){a=a|0;H[H[a+480>>2]+28>>2]=1}function NU(a){a=a|0;return Oa(H[a+60>>2])|0}function C0(a,b,c){a=a|0;b=+b;c=+c;kj(a+8|0)}function Bia(a,b){a=a|0;b=b|0;return lf(b)|0}function yJ(a){a=a|0;H[H[a+156>>2]+36>>2]=0}function sj(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0}function pia(a){a=a|0;H[a>>2]=0;H[a+4>>2]=0}function nQ(a){a=a|0;zb[H[H[a>>2]+4>>2]](a)}function mT(){return(H[H[197059]>>2]?4:1)|0}function ki(a){a=a|0;kp(H[a>>2]);return a|0}function k6(a){a=a|0;ge(a+4|0);return a-8|0}function U_(a,b){a=a|0;b=b|0;return Tb(b)|0}function Sga(a,b){a=a|0;b=b|0;H[a+332>>2]=b}function $i(a){a=a|0;kx(H[a>>2]);return a|0}function vD(a){a=a|0;return H[a+4>>2]!=0|0}function lp(a){a=a|0;return hg(a,790104)|0}function jp(a){a=a|0;return hg(a,790096)|0}function fY(a,b){a=a|0;b=b|0;H[a+600>>2]=b}function f1(a,b){a=a|0;b=b|0;H[a+108>>2]=b}function ZW(a){a=a|0;return I[a+18|0]==1|0}function Yo(a){a=a|0;return hg(a,790152)|0}function YW(a){a=a|0;return I[a+20|0]==1|0}function YT(a){a=a|0;return hg(a,789940)|0}function XW(a){a=a|0;return I[a+19|0]==1|0}function SW(a){a=a|0;return I[a+14|0]==1|0}function Rga(a,b){a=a|0;b=b|0;F[a+456|0]=b}function RW(a){a=a|0;return I[a+16|0]==1|0}function QW(a){a=a|0;return I[a+15|0]==1|0}function Pga(a,b){a=a|0;b=b|0;F[a+457|0]=b}function L$(a){a=a|0;return I[a+28|0]==1|0}function K$(a){a=a|0;return I[a+30|0]==1|0}function J$(a){a=a|0;return I[a+29|0]==1|0}function Ik(a){a=a|0;ge(a+12|0);return a|0}function ET(a,b,c){a=a|0;b=b|0;c=c|0;Kb(a)}function D$(a){a=a|0;return I[a+24|0]==1|0}function Ch(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d}function C$(a){a=a|0;return I[a+26|0]==1|0}function B$(a){a=a|0;return I[a+25|0]==1|0}function $o(a){a=a|0;return hg(a,790144)|0}function xD(a,b){a=a|0;b=b|0;if(b){Kb(b)}}function vP(a,b){a=a|0;b=b|0;Vo(a,b+12|0)}function uP(a,b){a=a|0;b=b|0;Vo(a,b+16|0)}function sP(a,b){a=a|0;b=b|0;Cf(a,239153)}function rP(a,b){a=a|0;b=b|0;Ji(a,773512)}function qP(a,b){a=a|0;b=b|0;Cf(a,239162)}function pP(a,b){a=a|0;b=b|0;Ji(a,773532)}function nY(a,b){a=a|0;b=b|0;H[a+12>>2]=b}function m1(a,b){a=a|0;b=b|0;Nh(a+20|0,b)}function hm(a){a=a|0;ge(a+8|0);return a|0}function em(a){a=a|0;ge(a+4|0);return a|0}function eV(a){a=a|0;H[a>>2]=752264;Kb(a)}function _X(a){a=a|0;Gm(787904,H[196977])}function WZ(a){a=a|0;Nm(785924,H[196482])}function Px(a,b){he(ac(a)+a|0,b);return a}function Lg(a,b,c){return Yx(a,b,b>>31,c)}function ID(a,b){a=a|0;b=b|0;H[a+16>>2]=b}function GZ(a){a=a|0;oe(a+4|0);return a|0}function GC(a,b,c,d){return Qq(a,b,c,d,1)}function Cm(a){a=a|0;Fm(a+8|0);return a|0}function oY(a,b){a=a|0;b=b|0;H[a+8>>2]=b}function j6(a){a=a|0;ge(a+4|0);Kb(a-8|0)}function iU(a){a=a|0;return!H[a+16>>2]|0}function g1(a){a=a|0;a=a-8|0;Tm(a);Kb(a)}function fW(a){a=a|0;a=a-4|0;Ak(a);Kb(a)}function Yz(a,b){a=a|0;b=b|0;Kp(a+8|0,b)}function UW(a,b){a=a|0;b=b|0;Jy(a,b-4|0)}function Hha(a){a=a|0;if(a){id(a);Kb(a)}}function GY(a){a=a|0;a=a-4|0;Km(a);Kb(a)}function E$(a,b){a=a|0;b=b|0;Iz(a,b-4|0)}function AX(a){a=a|0;a=a-8|0;Cm(a);Kb(a)}function $ga(a){a=a|0;return H[a+368>>2]}function yw(a,b){a=a|0;b=b|0;Mw(a,1,45)}function y_(a){a=a|0;return H[a+208>>2]}function yK(a){a=a|0;ou(a);F[a+112|0]=0}function xw(a,b){a=a|0;b=b|0;Lw(a,1,45)}function mW(a){a=a|0;return H[a+240>>2]}function jK(a){a=a|0;return J[a+256>>1]}function i1(a){a=a|0;return Tm(a-8|0)|0}function ho(a){a=a|0;return H[a+364>>2]}function hW(a){a=a|0;return Ak(a-4|0)|0}function eY(a){a=a|0;return H[a+600>>2]}function dY(a){a=a|0;return+M[a+624>>3]}function cY(a){a=a|0;return+M[a+632>>3]}function aY(a){a=a|0;return H[a+680>>2]}function _ga(a){a=a|0;return H[a+52>>2]}function Zga(a){a=a|0;return H[a+44>>2]}function Yga(a){a=a|0;return J[a+26>>1]}function VY(a){a=a|0;oe(a);return a-4|0}function UT(a){a=a|0;return Ik(a-8|0)|0}function Tga(a){a=a|0;return I[a+348|0]}function Qga(a){a=a|0;return I[a+456|0]}function MZ(a){a=a|0;return+K[a+216>>2]}function IY(a){a=a|0;return Km(a-4|0)|0}function IT(a){a=a|0;return xk(a-8|0)|0}function Gv(a,b,c){if(b){Nb(a,c&255,b)}}function CX(a){a=a|0;return Cm(a-8|0)|0}function Aw(a,b){a=a|0;b=b|0;return b|0}function Aga(a){a=a|0;return H[a+48>>2]}function xZ(a){a=a|0;return+M[a+32>>3]}function wZ(a){a=a|0;return+M[a+40>>3]}function wD(a){a=a|0;return H[a+68>>2]}function vc(a,b){H[a+168>>2]=b;Fr(a,1)}function pZ(a){a=a|0;return+M[a+28>>3]}function oZ(a){a=a|0;return+M[a+36>>3]}function g_(a){a=a|0;return H[a+72>>2]}function cW(a){a=a|0;return J[a+14>>1]}function bW(a){a=a|0;return J[a+10>>1]}function b1(a,b){a=a|0;b=b|0;kj(a+8|0)}function aaa(a,b){a=a|0;b=b|0;return 1}function _W(a){a=a|0;return G[a+16>>1]}function ZV(a){a=a|0;return+G[a+10>>1]}function Xn(a){a=a|0;return H[a+24>>2]}function XX(a){a=a|0;return H[a+76>>2]}function WW(a){a=a|0;return G[a+14>>1]}function Vl(a){a=a|0;return 2147483647}function PZ(a){a=a|0;return I[a+213|0]}function OW(a){a=a|0;return G[a+10>>1]}function Mj(a){a=a|0;return H[a+20>>2]}function Li(a){a=a|0;return H[a+12>>2]}function LH(a){a=a|0;Wb(H[a>>2]);Kb(a)}function Iy(a){a=a|0;return G[a+12>>1]}function Go(a,b){a=a|0;b=b|0;yv(a,b,0)}function AY(a){a=a|0;return+K[a+12>>2]}function $f(a){a=a|0;return H[a+16>>2]}function zy(a){a=a|0;return J[a+4>>1]}function xY(a){a=a|0;return+K[a+8>>2]}function tv(a,b){a=a|0;b=b|0;Ja();X()}function sz(a){a=a|0;return I[a+11|0]}function ox(a,b){return cx(a)^cx(b)^1}function lx(a,b){return bx(a)^bx(b)^1}function l6(a){a=a|0;ge(a+12|0);Kb(a)}function im(a,b){a=a|0;b=b|0;return-1}function hz(a){a=a|0;return I[a+21|0]}function hZ(a){a=a|0;return+M[a+8>>3]}function f_(a){a=a|0;return I[a+15|0]}function ez(a){a=a|0;return I[a+17|0]}function eZ(a){a=a|0;return I[a+23|0]}function dZ(a){a=a|0;return I[a+22|0]}function aZ(a){a=a|0;return+M[a+4>>3]}function aX(a){a=a|0;return+G[a+8>>1]}function _w(a){a=a|0;Eo(a);return a|0}function ZY(a){a=a|0;return I[a+19|0]}function YY(a){a=a|0;return I[a+18|0]}function YV(a){a=a|0;return+G[a+6>>1]}function VW(a){a=a|0;return+G[a+4>>1]}function PW(a){a=a|0;return G[a+8>>1]}function M$(a){a=a|0;return+H[a+8>>2]}function I$(a){a=a|0;return I[a+31|0]}function Gl(a,b){a=a|0;b=b|0;return 0}function Fh(a){a=a|0;return H[a+8>>2]}function F$(a){a=a|0;return+H[a+4>>2]}function Eo(a){a=a|0;zo(a);return a|0}function Df(a){a=a|0;return H[a+4>>2]}function Ay(a){a=a|0;return J[a+8>>1]}function A$(a){a=a|0;return I[a+27|0]}function yC(a,b){a=a|0;b=b|0;cc(a,b)}function xP(a){a=a|0;return F[a+8|0]}function wP(a){a=a|0;return F[a+9|0]}function _Z(a){a=a|0;return I[a+7|0]}function Xz(a,b){a=a|0;b=b|0;Kp(a,b)}function WY(a){a=a|0;oe(a+4|0);Kb(a)}function UY(a){a=a|0;oe(a);Kb(a-4|0)}function ST(a){a=a|0;be(a,H[a+8>>2])}function $b(a,b,c){a=a|0;b=b|0;c=c|0}function ur(a){a=a|0;return H[a>>2]}function qd(a){a=a|0;Td(239038);X()}function lj(a){a=a|0;Ip(239038);X()}function jY(a){a=a|0;return a+400|0}function gY(a){a=a|0;return a+592|0}function gD(a,b,c){return md(a,b,c)}function bd(a){a=a|0;Td(238458);X()}function YM(a){a=a|0;return a+112|0}function Xu(a){a=a|0;return a+100|0}function XM(a){a=a|0;return a+140|0}function VG(a){a=a|0;Wb(H[a+44>>2])}function Nga(a){a=a|0;return a+72|0}function Jg(a,b,c){if(c){Ob(a,b,c)}}function Gr(a){a=a|0;return Tb(a)|0}function Dh(a,b,c){a=a|0;b=b|0;c=+c}function CT(a){a=a|0;return Qb(a)|0}function BK(a){a=a|0;wc(H[a+24>>2])}function zf(a,b,c){a=a|0;b=+b;c=+c}function uw(a){return hg(a,789988)}function tw(a){return hg(a,789980)}function tf(a,b){a=a|0;b=b|0;Dc(a)}function qO(a){a=a|0;return 239428}function pw(a){return hg(a,790004)}function ow(a){return hg(a,789996)}function nO(a){a=a|0;return 238837}function n$(a){a=a|0;return a+84|0}function jia(a){a=a|0;if(a){Kb(a)}}function Xia(a){a=a|0;if(a){Ll(a)}}function QN(a){a=a|0;return 238719}function PN(a){a=a|0;return 239413}function MN(a){a=a|0;return 238237}function BT(a){a=a|0;return 238844}function Az(a,b){a=a|0;b=b|0;Kb(b)}function $ia(a){a=a|0;if(a){kv(a)}}function uga(a){a=a|0;wg(a);Kb(a)}function Zha(a){a=a|0;vn(a);Kb(a)}function Yfa(a){a=a|0;kD(a);Kb(a)}function St(a){a=a|0;H[a+16>>2]=0}function Sfa(a){a=a|0;Sg(a);Kb(a)}function Mga(a){a=a|0;uD(a);Kb(a)}function Hp(a){a=a|0;return a-4|0}function zP(a){a=a|0;bw(a);Kb(a)}function yT(a){a=a|0;_w(a);Kb(a)}function yP(a){a=a|0;aw(a);Kb(a)}function vT(a){a=a|0;dp(a);Kb(a)}function uU(a){a=a|0;qk(a);Kb(a)}function rY(a){a=a|0;oe(a);Kb(a)}function qQ(a){a=a|0;gw(a);Kb(a)}function oU(a){a=a|0;wf(a);Kb(a)}function nV(a){a=a|0;yk(a);Kb(a)}function lma(a,b){yb=a;return b} +function j4(a){a=a|0;EA(a);Kb(a)}function iX(a){a=a|0;ce(a);Kb(a)}function iO(a){a=a|0;Eo(a);Kb(a)}function h1(a){a=a|0;Tm(a);Kb(a)}function gW(a){a=a|0;Ak(a);Kb(a)}function e7(a){a=a|0;QA(a);Kb(a)}function _P(a){a=a|0;ew(a);Kb(a)}function W5(a){a=a|0;JA(a);Kb(a)}function QP(a){a=a|0;lw(a);Kb(a)}function ON(a){a=a|0;zo(a);Kb(a)}function MV(a){a=a|0;gf(a);Kb(a)}function HY(a){a=a|0;Km(a);Kb(a)}function Dx(a,b,c){Hx(a,b,c,0,0)}function BX(a){a=a|0;Cm(a);Kb(a)}function Ao(a){a=a|0;pv(a);Kb(a)}function le(a){a=a|0;return a|0}function dV(a){a=a|0;yk(a+12|0)}function aP(a){a=a|0;_b(790208)}function _O(a){a=a|0;Sc(790224)}function YO(a){a=a|0;_b(790240)}function Wl(a){a=a|0;return 127}function WO(a){a=a|0;Sc(790256)}function UO(a){a=a|0;_b(790272)}function SO(a){a=a|0;Sc(790288)}function QO(a){a=a|0;_b(790304)}function Pf(a){a=a|0;return 255}function OO(a){a=a|0;Sc(790320)}function Ij(a,b){return tc(a,b)}function zz(a){a=a|0;return 96}function wx(){return(gb()|0)>0}function np(a){a=a|0;Kb(hm(a))}function k0(a){a=a|0;Kb(yf(a))}function ip(a){a=a|0;Kb(em(a))}function hp(a){a=a|0;Kb(Ik(a))}function gp(a){a=a|0;Kb(xk(a))}function gO(){tv(239693,0);X()}function _v(a){a=a|0;Kb(Oo(a))}function Yc(a,b){Dv(a,b,ad(b))}function RT(a){a=a|0;hp(a-8|0)}function JT(a){a=a|0;Kb(dx(a))}function HT(a){a=a|0;gp(a-8|0)}function Gp(a){a=a|0;Kb(a-4|0)}function Fk(a){a=a|0;kj(a+8|0)}function yh(a){a=a|0;return 0}function tx(a){a=a|0;return-1}function mg(a){a=a|0;return 2}function kf(a){a=a|0;return 1}function iZ(a){a=a|0;return 6}function Um(a){a=a|0;return 5}function Oc(a){a=a|0;return 0}function LY(a){a=a|0;return 7}function KY(a){a=a|0;return 8}function Ck(a){a=a|0;return 3}function Bh(a){a=a|0;return 4}function iw(a){Uv(a,H[a>>2])}function Yb(a,b){a=a|0;b=b|0}function Kc(a,b,c){Ob(a,b,c)}function Id(a,b,c){Nb(a,b,c)}function qT(){return 769192}function pT(){return 769968}function oT(){return 771520}function Dia(a){a=a|0;us(a)}function zc(a){a=a|0;Kb(a)}function Zz(a){a=a|0;kj(a)}function Mc(a,b){Nb(a,0,b)}function LN(){return xb|0}function KN(a){a=a|0;xb=a}function Bz(a){a=a|0;X()}function Ah(a){a=a|0;X()}function DD(){return 0}function Bc(a){ae(a,0)}function jc(a){a=a|0}function ge(a){dp(a)}function Fp(a){Ak(a)}function AG(){} + +// EMSCRIPTEN_END_FUNCS +e=I;p(Ib);var zb=c([null,ZS,WM,pL,uK,bK,bk,EI,Pia,Eia,Qfa,Ofa,Ffa,xfa,G8,l4,V0,M0,x0,n0,$$,U$,s$,o$,d$,U_,Az,AG,wB,AG,Fr,bY,YX,NP,CP,tP,kP,wv,vN,mN,jN,iN,hN,gN,fN,eN,xo,dN,cN,bN,$M,_M,TM,LM,KM,JM,IM,jc,HM,GM,$b,FM,EM,HL,zL,yL,Nu,Nu,zu,zu,NK,MK,LK,KK,JK,FK,EK,DK,CK,BK,KJ,vK,qK,pK,oK,nK,mK,lK,kK,jK,lu,iK,hK,gK,fK,eK,dK,cK,aK,$J,_J,ZJ,YJ,XJ,WJ,VJ,UJ,TJ,NJ,EJ,uJ,wv,Pt,vba,Mu,au,Ot,Rs,Wda,tca,s9,l1,A_,fZ,RX,uba,Mu,au,Ot,yaa,FU,sQ,jc,VN,oN,nN,lN,aN,wo,rM,kM,aM,UL,KL,QJ,eu,HJ,DJ,tJ,St,hJ,ZI,OI,go,kI,bI,eo,jc,UH,TH,QH,MH,IH,DH,Hs,rH,xs,$G,TG,os,ema,ama,Xla,Wla,Ula,Lla,Fla,Ela,xla,ula,pla,kla,gla,dla,bla,Zka,Xka,Wka,Vka,Pka,Kka,Gka,T9,J9,Dka,EE,uka,nka,qE,Dja,xja,rja,pja,gja,eja,cja,_ia,g4,Y3,sq,N3,C3,r3,g3,qq,pq,N2,C2,r2,g2,X1,M1,B1,q1,m1,k1,uz,$b,qj,VZ,rz,KZ,FZ,kz,jz,fz,XY,FY,sY,pY,Oc,jc,LX,GX,Am,hX,$W,TW,JW,yW,kW,dW,QV,St,HV,CV,rV,eu,jV,cV,_U,TU,RU,MU,LU,IU,GU,EU,Jx,AU,yU,xU,vU,sU,mU,hU,fU,cU,_T,jc,ST,fp,fT,YS,IS,wS,sS,jh,_R,Hw,OR,KR,Uo,zR,Uo,nw,lR,bR,SQ,HQ,kw,rQ,kQ,cQ,UP,MO,JO,FO,FN,EN,DN,CN,BN,AN,zN,yN,xN,wN,go,uN,tN,oO,Uo,nw,hO,aO,UN,NN,kw,HN,GN,sN,rN,qN,pN,Xu,YM,XM,kN,ZM,Uu,UM,SM,RM,QM,PM,VM,uz,$b,qj,OM,rz,NM,MM,kz,jz,fz,tL,rL,qL,oL,DM,DL,nL,mL,lL,kL,jL,iL,hL,gL,fL,eL,dL,cL,bL,Fl,aL,$K,_K,ZK,YK,XK,WK,VK,UK,TK,SK,RK,wu,QK,PK,OK,If,xL,CM,AM,zM,BM,yM,wM,vM,xM,uM,tM,qM,pM,sM,oM,mM,lM,nM,jM,hM,gM,iM,fM,dM,cM,eM,bM,Hu,_L,ZL,$L,YL,Hu,WL,VL,XL,TL,RL,SL,Gl,PL,NL,ML,LL,JL,IL,QL,OL,GL,go,FL,EL,CL,BL,AL,wL,vL,uL,uo,sL,IK,jc,HK,GK,AK,zK,yK,xK,wK,xs,tK,sK,rK,SJ,RJ,Si,no,PJ,ru,OJ,pu,MJ,LJ,qu,jo,JJ,IJ,eo,jc,GJ,FJ,CJ,BJ,AJ,zJ,yJ,xJ,wJ,vJ,sJ,rJ,ho,Wt,qJ,Vt,Ut,kf,Tt,pJ,oJ,nJ,Rt,Qt,mJ,lJ,kJ,jJ,iJ,gJ,fJ,ak,eJ,dJ,cJ,bJ,aJ,$I,_I,YI,XI,WI,eo,jc,VI,UI,TI,SI,RI,QI,Hs,PI,NI,MI,LI,KI,JI,II,HI,GI,FI,DI,Yb,CI,jc,BI,AI,zI,yI,xI,wI,vI,uI,tI,sI,Wt,rI,ho,Vt,Ut,kf,Tt,qI,pI,oI,nI,mI,lI,jI,iI,hI,gI,fI,eI,dI,cI,Wb,Ac,$H,_H,Et,SH,RH,ZH,YH,XH,WH,VH,xt,st,lt,Kb,Wb,NH,bi,LH,KH,HH,GH,FH,EH,Os,Gf,qH,pH,oH,BH,nH,lH,yH,xH,jH,iH,gH,fH,eH,dH,cH,WG,XG,UG,SG,RG,QG,PG,OG,NG,MG,LG,KG,JG,IG,HG,VG,Wd,Ih,Kh,fba,Rb,dl,Ag,GB,$aa,Ri,CG,zG,cma,bma,pl,$la,_la,kc,wG,Yla,Xe,Vla,Tla,Sla,Rla,Qla,Pla,Ola,Nla,Mla,Kla,Jla,Ila,Hla,ll,Dla,Cla,nl,Gla,Nn,dma,kG,Zla,wla,vla,es,kd,dd,ola,OH,nla,VF,il,UF,TF,TF,mla,lla,Bla,Ala,zla,eG,yla,dG,cG,cs,tla,sla,rla,Mn,qla,bh,jla,ila,hla,$ka,_ka,cla,ala,AF,xF,wF,Uka,Tka,Ska,Rka,Qka,Oka,Nka,Mka,Lka,Jka,Ika,Hka,BF,Yka,Fka,Eka,Cka,Bka,Aka,zka,yka,xka,uja,fla,ela,wka,vka,ska,rka,JH,Ni,mka,Zh,Vn,lka,dka,cka,bka,Gn,Wja,Vja,Gn,Pja,Oja,Gn,Mja,Jja,Ija,Hja,Gja,Fja,Gn,Aja,zja,yja,aI,HF,lc,Pc,PH,wja,iE,Et,vja,tja,sja,hE,Ks,qja,oja,nja,mja,lja,kja,GG,FG,EG,DG,BF,tka,vE,uE,qka,pka,oka,kka,jka,ika,zc,hka,gka,fka,eka,aka,$ja,zc,pE,_ja,Zja,Yja,Xja,Uja,Tja,zc,Sja,nE,Rja,Qja,Nja,Lja,Kja,Eja,Cja,pE,nE,Bja,Js,Js,CH,Is,AH,zH,wH,vH,bk,bk,uH,tH,sH,Is,ul,mH,kH,hH,bH,aH,_G,ZG,YG,qj,jja,ija,lu,hja,bk,bk,bE,bja,Az,aE,fja,dja,Nia,Mia,Lia,Kia,Cia,Bia,yia,xia,Aia,zia,wia,via,Gl,uia,tia,sia,ria,qia,Jo,nia,mia,kia,pv,pia,oia,OD,lia,LD,Qb,cia,yr,MD,$ha,_ha,vn,Zha,Yha,Xha,Mha,KV,Bd,Df,xha,Wha,Hi,wha,eha,qr,JV,bha,fr,Bha,LV,Uga,zha,xD,Zf,Ki,CT,IV,Lha,Li,Cf,Mb,le,zc,Kha,Jha,Sha,ID,Vha,Uha,Tha,Rha,Oha,PV,HD,Nha,lr,dr,Cha,sga,rga,mga,yha,hha,zc,gha,Xc,Hj,Lga,jc,Hfa,Kga,Jga,Iga,Hga,Gga,Fga,_q,Afa,zfa,Ug,Vga,Tga,$C,ufa,cl,Yf,ho,Sh,Jj,gr,Mj,_ga,tfa,yfa,ed,Kj,zc,Vg,he,_q,wda,$f,sda,rda,tda,qda,$ga,pda,oda,vda,AD,fha,Kba,Aba,Gba,Ca,yba,gga,Dba,fga,Jba,nD,mD,Qh,Bga,pC,rn,xba,wba,mr,Ega,Xf,Iba,te,Hba,Ld,mba,kba,gba,ega,dga,Yga,jba,Zga,nr,Dq,Cq,RB,er,Aga,Nd,oD,Ii,oba,xg,lba,nba,Bf,Oga,cga,Df,Fh,sD,pr,aga,yg,vD,Nga,wga,Dga,Ph,pn,$k,kr,hr,zD,wD,yga,xga,zga,Tg,Cga,vga,Zk,al,$x,zq,cba,bba,Cc,Qe,rc,Gr,qaa,zc,Cj,oaa,pg,Ve,qg,Aj,Dj,Bj,on,Zfa,_fa,$fa,iD,Xfa,kB,Wfa,Vfa,Ufa,Oc,Tfa,qj,$b,Pga,yD,cha,eD,bga,dD,aha,dha,Rfa,Pfa,_k,Wga,Qga,cD,zg,ar,Rga,bd,Td,bD,Sga,Xga,Yk,Rh,aD,Nfa,pD,ir,nga,Wf,or,Aha,vha,uha,tha,sha,rha,qha,pha,oha,nha,mha,lha,kha,jha,iha,Ki,Ki,Ki,Ki,Ki,Ki,uD,Mga,wg,uga,tga,qga,pga,oga,vD,lga,kga,jga,iga,hga,qj,kD,Yfa,Sg,Sfa,$b,$b,Mfa,Lfa,Kfa,Jfa,Ifa,Gfa,Efa,Dfa,Cfa,Bfa,wfa,vfa,rfa,ZC,qfa,pfa,ofa,nfa,mfa,lfa,kfa,Yq,jfa,ifa,hfa,gfa,ffa,XC,WC,efa,Uk,dfa,jc,cfa,bfa,afa,$ea,_ea,Zea,Yea,Xea,Wea,Vea,jc,Uea,Tea,Sea,Rea,Qea,Pea,Oea,jc,Nea,Mea,Lea,Kea,Jea,Iea,Hea,Gea,Fea,Eea,Dea,Cea,Bea,Aea,zea,yea,xea,Yda,Zda,_da,$da,aea,bea,cea,Vda,Uda,Tda,Sda,Rda,Qda,Pda,Oda,Nda,Mda,Lda,Kda,Jda,Ida,Hda,Gda,Fda,Eda,Dda,Cda,Bda,Ada,zda,Xda,wea,vea,uea,tea,sea,rea,qea,pea,oea,nea,mea,lea,kea,jea,iea,hea,gea,fea,Oc,eea,mda,lda,kda,jc,jda,ida,hda,gda,fda,eda,dda,cda,bda,ada,$ca,_ca,Zca,Yca,jc,Xca,Wca,Vca,Uca,Tca,Sca,Rca,Qca,Pca,Oca,jca,kca,lca,mca,nca,oca,pca,hca,gca,fca,eca,dca,cca,bca,aca,$ba,_ba,Zba,Yba,Xba,Wba,Vba,Uba,Tba,Sba,Rba,Qba,Pba,Oba,Nba,qca,Mba,Lba,ica,Nca,Mca,NC,Lca,Kca,Jca,Ica,Hca,Gca,Fca,Eca,Dca,Cca,Bca,Aca,zca,yca,xca,wca,vca,uca,HC,sca,rca,dea,yda,xda,DC,Eba,Ja,Fba,Bba,xd,Cba,yC,ZD,Xb,cc,Ei,zba,tba,sba,rba,qba,pba,hba,iba,eba,dba,$b,jaa,maa,laa,kaa,aba,_aa,Zaa,Yaa,Xaa,Waa,Vaa,Uaa,Taa,Saa,Raa,Qaa,Paa,Oaa,Naa,Maa,Laa,Kaa,Jaa,Iaa,Haa,Gaa,Faa,Eaa,Daa,Caa,Baa,Aaa,zaa,xaa,waa,vaa,uaa,taa,saa,raa,$b,qj,iaa,caa,daa,eaa,aaa,kf,naa,paa,jc,baa,faa,gaa,haa,_9,$b,Y9,X9,W9,V9,U9,S9,R9,Q9,P9,O9,N9,M9,L9,K9,I9,H9,G9,F9,E9,D9,C9,B9,A9,z9,y9,x9,w9,v9,u9,r9,q9,p9,m9,l9,k9,o9,j9,i9,h9,g9,f9,e9,d9,c9,W8,a9,$8,_8,Y8,U8,T8,S8,R8,Q8,P8,O8,N8,M8,L8,K8,J8,I8,H8,jc,F8,E8,D8,jc,sfa,B8,A8,z8,y8,x8,w8,v8,u8,t8,s8,r8,q8,p8,k8,jc,o8,n8,m8,l8,d8,j8,i8,h8,g8,f8,e8,Vk,Uq,uda,nda,_q,c8,b8,$7,Z7,X7,W7,TA,V7,U7,S7,R7,Q7,P7,O7,N7,M7,L7,K7,I7,H7,G7,F7,E7,D7,C7,B7,A7,z7,y7,x7,w7,v7,u7,t7,s7,r7,q7,p7,o7,n7,m7,l7,k7,j7,i7,h7,g7,t9,T7,Y7,_7,a8,C8,V8,Z8,X8,n9,b9,$9,J7,Z9,f7,My,bq,DD,a7,qd,Pha,nW,wz,JD,CO,O6,df,N6,Ho,AO,BV,bd,Dv,bd,v6,QA,e7,Y6,X6,W6,V6,U6,Xn,T6,Li,d7,c7,b7,_6,Z6,$6,S6,R6,PA,Q6,P6,M6,L6,K6,J6,I6,H6,G6,F6,E6,D6,C6,B6,A6,z6,y6,PA,x6,w6,$x,EV,GV,FV,zv,uT,nU,VT,q6,o6,ZT,ep,wT,hg,tj,tT,ra,yv,rp,iq,g6,n6,f6,m6,e6,Ik,l6,k6,j6,i6,h6,hm,np,sx,rx,em,ip,jx,ix,d6,c6,Yb,jm,b6,KA,Oc,Oc,lU,a6,kU,$5,jU,_5,Y5,le,zc,NV,p1,HX,ly,ky,Ce,vO,BO,Cv,sm,my,ui,$0,SX,NX,VX,UX,Ev,bd,OX,KX,s6,TX,xO,ui,pe,aA,Ol,tY,Qd,jd,hf,vi,jq,rj,ui,pe,pe,pe,pe,pe,K0,um,tm,Lp,QX,q$,Up,f0,PZ,u_,e0,w_,d0,v_,bd,o_,bd,n_,Ez,Fz,V$,T$,S$,R$,Pm,Om,Lz,Q$,m_,Lz,P$,l_,k_,j_,c0,Dz,b0,bd,Be,q_,r_,p_,Pz,bd,t_,Ng,x_,DO,UZ,Nz,bX,cX,Tp,Df,a0,eX,ZX,Fy,XX,Bk,Xu,Ji,mW,Op,r$,ur,X5,k4,j1,Fh,oY,w$,u$,Ek,mY,bd,nY,bd,Yp,t$,Rf,kY,Sp,lg,ID,gY,hY,lY,EZ,v$,Z5,bz,bd,HZ,Ae,zk,eY,fY,aY,Sf,x$,bd,Qp,Rp,IZ,Bv,Av,bd,ti,py,wO,Lb,Df,Fh,$f,Nz,_$,DD,X$,g0,u6,mz,dY,cY,vz,jY,y_,Np,WX,iY,JY,WZ,yO,r6,Je,Im,az,$X,JA,W5,jc,jc,m4,Gk,$b,jc,zf,zf,ng,ng,jc,Yb,jc,jc,Yb,$b,gd,$b,Yb,jc,mf,mf,Oc,Yb,jc,V5,U5,T5,S5,R5,Q5,P5,O5,N5,M5,L5,K5,J5,I5,H5,G5,F5,E5,D5,C5,B5,A5,z5,y5,x5,w5,v5,u5,t5,s5,r5,q5,p5,o5,n5,m5,l5,k5,j5,i5,g5,h5,f5,e5,d5,c5,b5,a5,$4,_4,Z4,Y4,X4,W4,V4,U4,T4,S4,R4,Q4,P4,O4,N4,M4,L4,K4,J4,I4,H4,G4,F4,E4,D4,C4,B4,A4,z4,y4,x4,w4,v4,u4,t4,s4,r4,gd,q4,p4,o4,n4,zf,jc,$b,$b,gd,$b,jc,jc,gd,Yb,Eh,$b,sj,fq,eq,$b,cd,cd,$b,gd,Eh,$b,ul,sj,$b,gd,Eh,$b,$b,$b,$b,$b,Yb,Yb,Yb,Yb,Yb,$b,Yb,Yb,cd,Yb,Yb,Yb,Yb,$b,Vm,$b,jc,Dh,Ch,Dh,Yb,Ch,EA,j4,f4,e4,d4,c4,b4,a4,$3,_3,Z3,X3,W3,V3,U3,T3,S3,R3,Q3,P3,O3,M3,L3,K3,Um,i4,h4,J3,I3,H3,G3,F3,E3,D3,B3,A3,z3,y3,x3,w3,v3,u3,t3,s3,q3,p3,o3,n3,m3,l3,k3,j3,i3,h3,f3,e3,d3,c3,b3,a3,$2,_2,Z2,Y2,X2,W2,V2,U2,T2,S2,R2,Q2,P2,O2,M2,L2,K2,J2,I2,H2,G2,F2,E2,D2,B2,A2,z2,y2,x2,w2,v2,u2,t2,s2,q2,p2,o2,n2,m2,l2,k2,j2,i2,h2,f2,e2,d2,c2,b2,a2,$1,_1,Z1,Y1,W1,V1,U1,T1,S1,R1,Q1,P1,O1,N1,L1,K1,J1,I1,H1,G1,F1,E1,D1,cd,cd,C1,A1,z1,y1,x1,w1,v1,u1,t1,s1,r1,$b,$b,$b,Yb,Yb,Yb,Yb,Yb,$b,Yb,Yb,cd,Yb,Yb,Yb,Yb,$b,Vm,$b,jc,Dh,Ch,Dh,Yb,Ch,le,zc,CA,BA,AA,zA,yA,xA,wA,vA,uA,tA,sA,rA,qA,pA,oA,nA,mA,lA,kA,jA,iA,hA,mg,o1,n1,Yb,$b,$b,$b,$b,$b,jc,jc,Yb,$b,Yb,$b,Yb,Yb,$b,Yb,Yb,Yb,Yb,gd,gd,Yb,jc,jc,jc,jc,jc,jc,Yb,Yb,Yb,Yb,Yb,Yb,cd,Yb,Yb,cd,Yb,Yb,gd,gd,Yb,Yb,Yb,gd,jc,Yb,$b,Yb,jc,Yb,Yb,Yb,cd,gd,gd,gd,Yb,Yb,Yb,Yb,gd,$b,$b,$b,$b,cd,cd,$b,$b,$b,$b,$b,$b,$b,$b,$b,$b,Yb,$b,$b,Yb,Yb,Yb,gd,Yb,cd,gd,mf,zf,jc,$b,$b,gd,$b,jc,jc,gd,Yb,Eh,$b,sj,fq,eq,$b,cd,cd,$b,gd,Eh,$b,ul,sj,$b,gd,Eh,$b,$b,$b,$b,$b,Yb,Yb,Yb,Yb,Yb,$b,Yb,Yb,cd,Yb,Yb,Yb,Yb,$b,Vm,$b,jc,Dh,Ch,Dh,Yb,Ch,Tm,h1,jc,jc,_z,Gk,$b,jc,zf,zf,ng,ng,jc,Yb,jc,Fk,Yz,Wz,Uz,$b,Yb,jc,mf,mf,Bh,f1,e1,d1,$b,$b,$b,$b,$b,c1,jc,b1,$b,Yb,$b,Yb,Yb,$b,Yb,Yb,Yb,Yb,gd,gd,Yb,jc,jc,jc,jc,jc,jc,Yb,Yb,a1,Yb,Yb,Yb,cd,Yb,Yb,cd,Yb,Yb,gd,gd,Yb,Yb,Yb,gd,jc,Yb,$b,Yb,jc,Yb,Yb,Yb,_0,Z0,Y0,gd,X0,eA,eA,W0,U0,dA,cA,dA,cA,T0,S0,R0,Q0,P0,O0,N0,L0,bA,$z,bA,$z,J0,I0,$b,Yb,H0,G0,F0,Yb,E0,D0,mf,C0,Fk,$b,$b,gd,$b,Fk,jc,gd,Yb,B0,A0,sj,fq,z0,y0,cd,cd,w0,v0,Eh,u0,t0,sj,s0,r0,Eh,q0,p0,$b,$b,$b,Yb,Yb,Yb,Yb,Yb,$b,Yb,Yb,cd,Yb,Yb,Yb,Yb,$b,Vm,$b,jc,Dh,Ch,Dh,Yb,Ch,i1,g1,jc,jc,o0,Gk,$b,jc,zf,zf,ng,ng,jc,Yb,jc,Zz,Xz,Vz,m0,$b,Yb,jc,mf,mf,Ah,gO,yf,k0,i0,h0,Oc,jc,Z$,n$,l$,j$,h$,f$,c$,a$,__,Y_,W_,T_,R_,P_,N_,L_,J_,Oc,H_,F_,D_,zz,Oc,B_,W$,l0,j0,jc,Y$,m$,k$,i$,g$,e$,b$,$_,Z_,X_,V_,S_,Q_,O_,M_,K_,I_,Oc,G_,E_,C_,zz,Oc,z_,Bz,Ah,yz,Bz,Ah,p$,Rm,Ah,jc,O$,N$,mg,M$,Iz,Xn,L$,K$,J$,$f,I$,Mj,H$,G$,F$,E$,Mj,D$,C$,B$,Li,A$,$f,z$,y$,Bh,s_,i_,kf,kf,tz,h_,$f,g_,Mj,sz,f_,e_,gd,d_,c_,b_,a_,$Z,tz,Li,wD,$f,_Z,sz,ZZ,YZ,XZ,gd,TZ,RZ,bE,Gl,OZ,NZ,kf,MZ,JZ,SZ,QZ,LZ,DZ,lz,Oc,Um,lz,Pf,le,zc,Oc,CZ,BZ,Ck,mg,AZ,Fh,zZ,yZ,xZ,wZ,vZ,uZ,tZ,sZ,Df,rZ,qZ,pZ,oZ,nZ,mZ,lZ,Oc,le,zc,kf,kZ,jZ,mg,iZ,hZ,iz,gZ,hz,eZ,dZ,Oc,Oc,Oc,cZ,bZ,aZ,$Y,_Y,ez,ZY,YY,Oc,Oc,Oc,GZ,WY,Ck,VY,UY,qY,TY,SY,Bh,le,zc,RY,QY,PY,OY,NY,MY,zc,LY,zc,KY,Km,HY,kf,dz,Oc,Fh,Oc,$f,Mj,Pf,iz,cd,$b,wY,IY,GY,EY,Oc,Df,Oc,Li,$f,Pf,vY,cd,$b,uY,CY,BY,Ck,DY,Fh,AY,Pf,yh,yh,Jm,zY,yY,dz,Df,xY,Pf,yh,yh,Jm,oe,rY,le,zc,kf,zc,mg,zc,Ck,zc,Bh,zc,Um,gV,lj,zO,Ry,ui,ui,pe,pe,pe,pe,pe,pe,p6,PX,ui,pe,Mp,ui,Mp,Mp,IX,MX,ny,Qy,Qha,DV,SV,JX,Dm,lV,iV,hV,kV,bd,EX,FX,_X,Fm,Ah,kj,Kp,Jp,t6,pe,Cm,BX,jc,jc,Ny,Gk,$b,jc,zf,zf,ng,ng,jc,Yb,jc,Fk,Yz,Wz,gd,$b,Yb,jc,mf,mf,Bh,zX,$b,$b,$b,$b,$b,$b,yX,xX,Bm,wX,vX,uX,cd,Yb,tX,Yb,sX,rX,qX,pX,oX,nX,mX,gd,lX,Yb,Yb,Yb,$b,Yb,Yb,Yb,cd,Yb,Yb,Yb,Oy,Oy,$b,$b,$b,$b,Fk,jc,cd,cd,Yb,Yb,Yb,Yb,Yb,Yb,Yb,Yb,Yb,Yb,$b,$b,$b,$b,$b,$b,Yb,CX,AX,jc,jc,kX,Gk,$b,jc,zf,zf,ng,ng,jc,Yb,jc,Zz,Xz,Vz,gd,$b,Yb,jc,mf,mf,Ah,zc,CA,BA,AA,zA,yA,xA,wA,vA,uA,tA,sA,rA,qA,pA,oA,nA,mA,lA,kA,jA,iA,hA,mg,$b,$b,$b,$b,$b,$b,$b,jc,Bm,Bm,cd,eq,$b,cd,Yb,$b,Yb,ul,Bm,Yb,Yb,Yb,cd,mf,gd,cd,Yb,Yb,Yb,$b,Yb,Yb,Yb,cd,Yb,Yb,Yb,cd,cd,$b,$b,$b,$b,jc,jc,cd,cd,Yb,Yb,Yb,Yb,Yb,Yb,Yb,Yb,Yb,Yb,$b,$b,$b,$b,$b,$b,Yb,LW,dX,iW,lW,jW,xm,ce,iX,jc,KW,IW,HW,GW,FW,EW,DW,CW,BW,AW,zW,xW,wW,vW,Oc,uW,tW,sW,rW,qW,pW,oW,mg,gX,fX,Oc,le,zc,mg,aX,Jy,_W,ZW,YW,XW,Iy,hz,WW,Hp,Gp,VW,UW,Iy,SW,RW,QW,PW,ez,OW,NW,MW,Bh,le,zc,Um,Hp,Gp,VV,ur,jX,DX,Ho,UV,Cy,Df,Hy,Ah,Ak,gW,kf,By,Oc,Ay,Oc,cW,Pf,Pf,aW,cd,$b,XV,hW,fW,eW,Oc,zy,Oc,bW,Pf,Pf,$V,cd,$b,WV,le,zc,Ck,_V,Ay,ZV,Pf,yh,yh,Jm,Hp,Gp,By,zy,YV,Pf,yh,yh,Jm,vm,bd,RV,OV,ij,JU,SU,qd,TV,gf,MV,AV,zV,yV,xV,wV,vV,uV,tV,sV,qV,pV,yk,nV,mV,oV,oy,fV,eV,dV,Gl,zc,Xa,aU,bV,ZU,tU,aV,$U,QU,PU,OU,NU,Oc,HU,DU,CU,BU,zU,lp,Xn,bU,px,aj,kp,$f,Mj,gU,px,aj,iU,$T,jp,DT,YT,XT,WT,jm,EO,PT,le,ET,qk,uU,Yb,jm,vx,ux,Oc,Oc,rU,tx,qU,im,pU,im,wf,oU,vx,ux,tx,im,im,hm,np,sx,rx,em,ip,jx,ix,Ik,hp,UT,RT,TT,QT,dx,JT,LT,KA,OT,NT,MT,xk,gp,IT,HT,GT,FT,jc,xT,zT,_w,le,zc,BT,tO,sO,rO,AT,yT,Df,dp,vT,$o,Tw,Sw,am,No,pk,Ig,rh,cT,ki,Xl,ph,aT,fe,Ow,Nw,_S,WS,Rw,Rw,SS,$l,QS,KS,Pw,OS,MS,Od,JS,lT,Yo,Tw,Sw,_l,gm,qh,eU,ax,$i,oh,Ow,Nw,Zl,vS,Pw,hx,rS,ax,lh,mS,lS,Xi,Xl,sT,rT,KU,gx,gS,nk,bS,Xl,xp,GO,zo,jm,jc,IR,zw,HR,GR,ww,FR,vw,Xl,DR,Io,BR,AR,dU,yR,qw,vw,wR,uR,tR,qR,pR,bp,kR,jR,iR,hR,gR,fR,eR,dR,cR,aR,$Q,_Q,ZQ,YQ,XQ,WQ,VQ,UQ,TQ,RQ,QQ,PQ,OQ,NQ,MQ,LQ,KQ,JQ,IQ,GQ,FQ,EQ,DQ,CQ,BQ,AQ,zQ,yQ,xQ,wQ,vQ,uQ,So,NO,oQ,tQ,LO,KO,pQ,mQ,qT,pT,oT,nT,lm,Yw,sk,KP,JP,ok,mT,Ww,nP,lP,iP,gP,eP,cP,aP,_O,YO,WO,UO,SO,QO,OO,KT,gw,qQ,nQ,ew,_P,ZP,YP,XP,WP,Aw,VP,TP,SP,lw,QP,PP,OP,MP,LP,Oc,IP,HP,bw,zP,xP,wP,vP,sP,qP,aw,yP,Fh,Li,uP,rP,pP,le,zc,zc,lQ,jQ,iQ,hQ,gQ,fQ,eQ,dQ,Aw,bQ,aQ,$P,zc,dw,dw,Qo,kf,kf,RP,kf,zc,GP,FP,Qo,Oc,Oc,EP,Bh,zc,DP,BP,Qo,Oc,Oc,AP,Bh,le,zc,kT,jT,iT,le,zc,hT,gT,eT,zc,dT,bT,$S,XS,VS,US,TS,RS,PS,NS,LS,zc,HS,GS,FS,ES,DS,CS,BS,AS,zS,yS,xS,zc,uS,tS,qS,pS,oS,nS,kS,jS,zc,iS,hS,fS,eS,dS,cS,aS,$R,le,zc,mg,ZR,YR,XR,WR,VR,UR,oP,jP,fP,VO,RO,bP,ZO,le,zc,mg,TR,SR,RR,QR,PR,NR,mP,hP,dP,TO,PO,$O,XO,Oo,_v,MR,Oo,_v,LR,zc,Wl,Wl,tf,tf,tf,yw,Oc,ih,ih,zc,Wl,Wl,tf,tf,tf,yw,Oc,ih,ih,zc,Vl,Vl,tf,tf,tf,xw,Oc,ih,ih,zc,Vl,Vl,tf,tf,tf,xw,Oc,ih,ih,zc,JR,ER,zc,CR,xR,zc,vR,sR,zc,rR,oR,zc,mw,nR,Yb,zc,mw,mR,Yb,le,Ah,Oc,Oc,Oc,Oc,le,IO,Lo,Qv,Go,uO,jO,kO,HO,uv,Eo,zc,qO,pO,zc,nO,lO,mO,iO,tv,le,zc,jc,jc,fO,zc,eO,TN,YN,dO,zc,WN,ZN,cO,zc,XN,_N,bO,zc,$N,zc,PN,zc,QN,Ao,Df,ON,Ao,Ao,zc,MN]);function Ab(){return E.byteLength/65536|0}function Fb(Gb){Gb=Gb|0;var Bb=Ab()|0;var Cb=Bb+Gb|0;if(Bb=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder)return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr));else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""} +function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}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}}heap[outIdx]=0;return outIdx-startIdx}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len} +function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i);if(!dontAddNull)HEAP8[buffer>>0]=0}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64; +function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216; +if(Module["wasmMemory"])wasmMemory=Module["wasmMemory"];else wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":2147483648/65536});if(wasmMemory)buffer=wasmMemory.buffer;INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[function(){window["AscFonts"].onLoadModule();}];var runtimeInitialized=false;function keepRuntimeAlive(){return noExitRuntime} +function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length)addOnPreRun(Module["preRun"].shift())}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)} +function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length)addOnPostRun(Module["postRun"].shift())}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)} +if(!Math.imul||Math.imul(4294967295,5)!==-5)Math.imul=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};if(!Math.fround){var froundBuffer=new Float32Array(1);Math.fround=function(x){froundBuffer[0]=x;return froundBuffer[0]}}if(!Math.clz32)Math.clz32=function(x){var n=32;var y=x>>16;if(y){n-=16;x=y}y=x>>8;if(y){n-=8;x=y}y=x>>4;if(y){n-=4;x=y}y=x>>2;if(y){n-=2;x=y}y=x>>1;if(y)return n-2;return n-x}; +if(!Math.trunc)Math.trunc=function(x){return x<0?Math.ceil(x):Math.floor(x)};var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"])Module["monitorRunDependencies"](runDependencies)} +function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"])Module["monitorRunDependencies"](runDependencies);if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["preloadedImages"]={};Module["preloadedAudios"]={}; +function abort(what){{if(Module["onAbort"])Module["onAbort"](what)}what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);throw e;}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}var wasmBinaryFile;wasmBinaryFile="fonts.wasm";if(!isDataURI(wasmBinaryFile))wasmBinaryFile=locateFile(wasmBinaryFile); +function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);var binary=tryParseAsDataURI(file);if(binary)return binary;if(readBinary)return readBinary(file);else throw"both async and sync fetching of the wasm failed";}catch(err$2){abort(err$2)}} +function getBinaryPromise2(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER))if(typeof fetch=="function")return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"])throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return response["arrayBuffer"]()}).catch(function(){return getBinary(wasmBinaryFile)});return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})} +function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["Ba"];addOnInit(Module["asm"]["Aa"]);removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver, +function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(wasmBinaryFile)&&typeof fetch=="function")return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation"); +return instantiateArrayBuffer(receiveInstantiationResult)})});else return instantiateArrayBuffer(receiveInstantiationResult)}if(Module["instantiateWasm"])try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}instantiateAsync();return{}} +function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func=="number")if(callback.arg===undefined)getWasmTableEntry(func)();else getWasmTableEntry(func)(callback.arg);else func(callback.arg===undefined?null:callback.arg)}}var wasmTableMirror=[]; +function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func}function ___cxa_allocate_exception(size){return _malloc(size+16)+16} +function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-16;this.set_type=function(type){HEAP32[this.ptr+4>>2]=type};this.get_type=function(){return HEAP32[this.ptr+4>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+8>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+8>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+12>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ +12>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+13>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+13>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr>>2];HEAP32[this.ptr>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr>>2];HEAP32[this.ptr>>2]=prev-1;return prev=== +1}} +function CatchInfo(ptr){this.free=function(){_free(this.ptr);this.ptr=0};this.set_base_ptr=function(basePtr){HEAP32[this.ptr>>2]=basePtr};this.get_base_ptr=function(){return HEAP32[this.ptr>>2]};this.set_adjusted_ptr=function(adjustedPtr){HEAP32[this.ptr+4>>2]=adjustedPtr};this.get_adjusted_ptr_addr=function(){return this.ptr+4};this.get_adjusted_ptr=function(){return HEAP32[this.ptr+4>>2]};this.get_exception_ptr=function(){var isPointer=___cxa_is_pointer_type(this.get_exception_info().get_type());if(isPointer)return HEAP32[this.get_base_ptr()>> +2];var adjusted=this.get_adjusted_ptr();if(adjusted!==0)return adjusted;return this.get_base_ptr()};this.get_exception_info=function(){return new ExceptionInfo(this.get_base_ptr())};if(ptr===undefined){this.ptr=_malloc(8);this.set_adjusted_ptr(0)}else this.ptr=ptr}var exceptionCaught=[];function exception_addRef(info){info.add_ref()}var uncaughtExceptionCount=0; +function ___cxa_begin_catch(ptr){var catchInfo=new CatchInfo(ptr);var info=catchInfo.get_exception_info();if(!info.get_caught()){info.set_caught(true);uncaughtExceptionCount--}info.set_rethrown(false);exceptionCaught.push(catchInfo);exception_addRef(info);return catchInfo.get_exception_ptr()}var exceptionLast=0;function ___cxa_free_exception(ptr){return _free((new ExceptionInfo(ptr)).ptr)} +function exception_decRef(info){if(info.release_ref()&&!info.get_rethrown()){var destructor=info.get_destructor();if(destructor)getWasmTableEntry(destructor)(info.excPtr);___cxa_free_exception(info.excPtr)}}function ___cxa_end_catch(){_setThrew(0);var catchInfo=exceptionCaught.pop();exception_decRef(catchInfo.get_exception_info());catchInfo.free();exceptionLast=0} +function ___resumeException(catchInfoPtr){var catchInfo=new CatchInfo(catchInfoPtr);var ptr=catchInfo.get_base_ptr();if(!exceptionLast)exceptionLast=ptr;catchInfo.free();throw ptr;} +function ___cxa_find_matching_catch_2(){var thrown=exceptionLast;if(!thrown){setTempRet0(0);return 0|0}var info=new ExceptionInfo(thrown);var thrownType=info.get_type();var catchInfo=new CatchInfo;catchInfo.set_base_ptr(thrown);catchInfo.set_adjusted_ptr(thrown);if(!thrownType){setTempRet0(0);return catchInfo.ptr|0}var typeArray=Array.prototype.slice.call(arguments);for(var i=0;i>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},get64:function(low,high){return low}};function ___syscall_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;return 0} +function ___syscall_ioctl(fd,op,varargs){SYSCALLS.varargs=varargs;return 0}function ___syscall_openat(dirfd,path,flags,varargs){SYSCALLS.varargs=varargs}function ___syscall_rmdir(path){}function ___syscall_stat64(path,buf){}function ___syscall_unlinkat(dirfd,path,flags){}function __emscripten_date_now(){return Date.now()}var nowIsMonotonic=true;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function __emscripten_throw_longjmp(){throw Infinity;}function _abort(){abort("")}var _emscripten_get_now; +_emscripten_get_now=function(){return performance.now()};var _emscripten_memcpy_big=Uint8Array.prototype.copyWithin?function(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}:function(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest)};function _emscripten_get_heap_max(){return 2147483648}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}} +function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;var maxHeapSize=_emscripten_get_heap_max();if(requestedSize>maxHeapSize)return false;var alignUp=function(x,multiple){return x+(multiple-x%multiple)%multiple};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,alignUp(Math.max(requestedSize,overGrownHeapSize), +65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement)return true}return false}var ENV={};function getExecutableName(){return thisProgram||"./this.program"} +function getEnvStrings(){if(!getEnvStrings.strings){var lang=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"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} +function _environ_get(__environ,environ_buf){var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAP32[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAP32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});HEAP32[penviron_buf_size>>2]=bufSize;return 0} +function _exit(status){exit(status)}function _fd_close(fd){return 0}function _fd_read(fd,iov,iovcnt,pnum){var stream=SYSCALLS.getStreamFromFD(fd);var num=SYSCALLS.doReadv(stream,iov,iovcnt);HEAP32[pnum>>2]=num;return 0}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){} +function _fd_write(fd,iov,iovcnt,pnum){var num=0;for(var i=0;i>2];var len=HEAP32[iov+4>>2];iov+=8;for(var j=0;j>2]=num;return 0}function _llvm_eh_typeid_for(type){return type}function __isLeapYear(year){return year%4===0&&(year%100!==0||year%400===0)}function __arraySum(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]);return sum}var __MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31]; +var __MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31]; +function __addDays(date,days){var newDate=new Date(date.getTime());while(days>0){var leap=__isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11)newDate.setMonth(currentMonth+1);else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+ +days);return newDate}}return newDate} +function _strftime(s,maxsize,format,tm){var tm_zone=HEAP32[tm+40>>2];var date={tm_sec:HEAP32[tm>>2],tm_min:HEAP32[tm+4>>2],tm_hour:HEAP32[tm+8>>2],tm_mday:HEAP32[tm+12>>2],tm_mon:HEAP32[tm+16>>2],tm_year:HEAP32[tm+20>>2],tm_wday:HEAP32[tm+24>>2],tm_yday:HEAP32[tm+28>>2],tm_isdst:HEAP32[tm+32>>2],tm_gmtoff:HEAP32[tm+36>>2],tm_zone:tm_zone?UTF8ToString(tm_zone):""};var pattern=UTF8ToString(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p", +"%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var rule in EXPANSION_RULES_1)pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_1[rule]);var WEEKDAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var MONTHS=["January","February", +"March","April","May","June","July","August","September","October","November","December"];function leadingSomething(value,digits,character){var str=typeof value=="number"?value.toString():value||"";while(str.length0?1:0}var compare;if((compare=sgn(date1.getFullYear()-date2.getFullYear()))===0)if((compare= +sgn(date1.getMonth()-date2.getMonth()))===0)compare=sgn(date1.getDate()-date2.getDate());return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6:return new Date(janFourth.getFullYear()- +1,11,30)}}function getWeekBasedYear(date){var thisDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0)if(compareByDay(firstWeekStartNextYear,thisDate)<=0)return thisDate.getFullYear()+ +1;else return thisDate.getFullYear();else return thisDate.getFullYear()-1}var EXPANSION_RULES_2={"%a":function(date){return WEEKDAYS[date.tm_wday].substring(0,3)},"%A":function(date){return WEEKDAYS[date.tm_wday]},"%b":function(date){return MONTHS[date.tm_mon].substring(0,3)},"%B":function(date){return MONTHS[date.tm_mon]},"%C":function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)},"%d":function(date){return leadingNulls(date.tm_mday,2)},"%e":function(date){return leadingSomething(date.tm_mday, +2," ")},"%g":function(date){return getWeekBasedYear(date).toString().substring(2)},"%G":function(date){return getWeekBasedYear(date)},"%H":function(date){return leadingNulls(date.tm_hour,2)},"%I":function(date){var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)},"%j":function(date){return leadingNulls(date.tm_mday+__arraySum(__isLeapYear(date.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,date.tm_mon-1),3)},"%m":function(date){return leadingNulls(date.tm_mon+ +1,2)},"%M":function(date){return leadingNulls(date.tm_min,2)},"%n":function(){return"\n"},"%p":function(date){if(date.tm_hour>=0&&date.tm_hour<12)return"AM";else return"PM"},"%S":function(date){return leadingNulls(date.tm_sec,2)},"%t":function(){return"\t"},"%u":function(date){return date.tm_wday||7},"%U":function(date){var days=date.tm_yday+7-date.tm_wday;return leadingNulls(Math.floor(days/7),2)},"%V":function(date){var val=Math.floor((date.tm_yday+7-(date.tm_wday+6)%7)/7);if((date.tm_wday+371- +date.tm_yday-2)%7<=2)val++;if(!val){val=52;var dec31=(date.tm_wday+7-date.tm_yday-1)%7;if(dec31==4||dec31==5&&__isLeapYear(date.tm_year%400-1))val++}else if(val==53){var jan1=(date.tm_wday+371-date.tm_yday)%7;if(jan1!=4&&(jan1!=3||!__isLeapYear(date.tm_year)))val=1}return leadingNulls(val,2)},"%w":function(date){return date.tm_wday},"%W":function(date){var days=date.tm_yday+7-(date.tm_wday+6)%7;return leadingNulls(Math.floor(days/7),2)},"%y":function(date){return(date.tm_year+1900).toString().substring(2)}, +"%Y":function(date){return date.tm_year+1900},"%z":function(date){var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)},"%Z":function(date){return date.tm_zone},"%%":function(){return"%"}};pattern=pattern.replace(/%%/g,"\x00\x00");for(var rule in EXPANSION_RULES_2)if(pattern.includes(rule))pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date));pattern=pattern.replace(/\0\0/g,"%");var bytes=intArrayFromString(pattern, +false);if(bytes.length>maxsize)return 0;writeArrayToMemory(bytes,s);return bytes.length-1}function _strftime_l(s,maxsize,format,tm){return _strftime(s,maxsize,format,tm)}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array} +function intArrayToString(array){var ret=[];for(var i=0;i255){if(ASSERTIONS)assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.");chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")} +var decodeBase64=typeof atob=="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1); +if(enc3!==64)output=output+String.fromCharCode(chr2);if(enc4!==64)output=output+String.fromCharCode(chr3)}while(i0)return;preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else doRun()}Module["run"]=run; +function exit(status,implicit){EXITSTATUS=status;procExit(status)}function procExit(code){EXITSTATUS=code;if(!keepRuntimeAlive()){if(Module["onExit"])Module["onExit"](code);ABORT=true}quit_(code,new ExitStatus(code))}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0)Module["preInit"].pop()()}run(); + + +function CReturnObject() +{ + this.error = 0; + this.freeObj = 0; +} +CReturnObject.prototype.free = function() +{ + Module["_ASC_FT_Free"](this.freeObj); +}; + +let g_return_obj = new CReturnObject(); +let g_return_obj_count = new CReturnObject(); +g_return_obj_count.count = 0; + +AscFonts.CopyStreamToMemory = function(data, size) +{ + var fontStreamPointer = Module["_ASC_FT_Malloc"](size); + Module["HEAP8"].set(data, fontStreamPointer); + return fontStreamPointer; +}; + +function CShapeString(size) +{ + this.size = size; + this.pointer = Module["_malloc"](size); +} +CShapeString.prototype.getBuffer = function() +{ + return new Uint8Array(Module["HEAPU8"].buffer, this.pointer, this.size); +}; +CShapeString.prototype.free = function() +{ + Module["_free"](this.pointer); +}; +CShapeString.prototype.set = function(index, value) +{ + Module["HEAPU8"][this.pointer + index] = value; +}; + +AscFonts.AllocString = function(size) +{ + return new CShapeString(size); +}; + +AscFonts.FT_CreateLibrary = Module["_ASC_FT_Init"]; +AscFonts.FT_Done_Library = Module["_ASC_FT_Done_FreeType"]; +AscFonts.FT_Set_TrueType_HintProp = Module["_ASC_FT_Set_TrueType_HintProp"]; + +AscFonts.FT_Open_Face = Module["_ASC_FT_Open_Face"]; +AscFonts.FT_Done_Face = Module["_ASC_FT_Done_Face"]; +AscFonts.FT_SetCMapForCharCode = Module["_ASC_FT_SetCMapForCharCode"]; +AscFonts.FT_GetKerningX = Module["_ASC_FT_GetKerningX"]; +AscFonts.FT_GetFaceMaxAdvanceX = Module["_ASC_FT_GetFaceMaxAdvanceX"]; +AscFonts.FT_Set_Transform = Module["_ASC_FT_Set_Transform"]; +AscFonts.FT_Set_Char_Size = Module["_ASC_FT_Set_Char_Size"]; +AscFonts.FT_GetFaceInfo = function(face, reader) +{ + let pointer = Module["_ASC_FT_GetFaceInfo"](face); + if (!pointer) + { + g_return_obj.error = 1; + return g_return_obj; + } + + var len_buffer = Math.min((Module["HEAP8"].length - pointer), 1000); //max 230 symbols on name & style + reader.init(new Uint8Array(Module["HEAP8"].buffer, pointer, len_buffer)); + + g_return_obj.freeObj = pointer; + g_return_obj.error = 0; + return g_return_obj; +}; + +AscFonts.FT_Load_Glyph = Module["_ASC_FT_Load_Glyph"]; +AscFonts.FT_SetCMapForCharCode = Module["_ASC_FT_SetCMapForCharCode"]; +AscFonts.FT_Get_Glyph_Measure_Params = function(face, vector_worker, reader) +{ + let pointer = Module["_ASC_FT_Get_Glyph_Measure_Params"](face, vector_worker ? 1 : 0); + if (!pointer) + { + g_return_obj_count.error = 1; + return g_return_obj_count; + } + + let len = !vector_worker ? 15 : Module["HEAP32"][pointer >> 2]; + if (vector_worker) + len = Module["HEAP32"][pointer >> 2]; + + reader.init(new Uint8Array(Module["HEAP8"].buffer, pointer + 4, 4 * (len - 1))); + g_return_obj_count.freeObj = pointer; + g_return_obj_count.count = len; + g_return_obj_count.error = 0; + return g_return_obj_count; +}; +AscFonts.FT_Get_Glyph_Render_Params = function(face, render_mode, reader) +{ + let pointer = Module["_ASC_FT_Get_Glyph_Render_Params"](face, render_mode); + if (!pointer) + { + g_return_obj_count.error = 1; + return g_return_obj_count; + } + + reader.init(new Uint8Array(Module["HEAP8"].buffer, pointer, 4 * 6)); + + g_return_obj.freeObj = pointer; + g_return_obj.error = 0; + return g_return_obj; +}; +AscFonts.FT_Get_Glyph_Render_Buffer = function(face, size) +{ + var pointer = Module["_ASC_FT_Get_Glyph_Render_Buffer"](face); + return new Uint8Array(Module["HEAP8"].buffer, pointer, size); +}; + +let hb_cache_languages = {}; +AscFonts.HB_FontFree = Module["ASC_HB_FontFree"]; +AscFonts.HB_ShapeText = function(fontFile, text, features, script, direction, language, reader) +{ + if (!hb_cache_languages[language]) + { + let langBuffer = language.toUtf8(); + var langPointer = Module["_malloc"](langBuffer.length); + Module["HEAP8"].set(langBuffer, langBuffer); + hb_cache_languages[language] = Module["_ASC_HB_LanguageFromString"](langPointer); + Module["_free"](langPointer); + } + + let pointer = Module["_ASC_HB_ShapeText"](fontFile["GetFace"](), fontFile["GetHBFont"](), text.pointer, features, script, direction, hb_cache_languages[language]); + if (!pointer) + { + g_return_obj_count.error = 1; + return g_return_obj_count; + } + + let buffer = Module["HEAP8"]; + let len = (buffer[pointer + 3] & 0xFF) << 24 | (buffer[pointer + 2] & 0xFF) << 16 | (buffer[pointer + 1] & 0xFF) << 8 | (buffer[pointer] & 0xFF); + + reader.init(buffer, pointer + 4, len - 4); + fontFile["SetHBFont"](reader.readPointer64()); + + g_return_obj_count.freeObj = pointer; + g_return_obj_count.count = (len - 12) / 26; + g_return_obj_count.error = 0; + return g_return_obj_count; +}; + +/** + * Class representing a zip archive creator/reader. + * @constructor + */ +function ZLib() +{ + this.engine = 0; // указатель на нативный класс Zlib + this.files = {}; +} + +/** + * Check loaded wasm/asmjs module + */ +ZLib.prototype.isModuleInit = false; + +/** + * Open archive from bytes + * @param {Uint8Array | ArrayBuffer} buf + * @returns {boolean} success or not + */ +ZLib.prototype.open = function(buf) +{ + if (!this.isModuleInit) + return false; + + if (this.engine) + this.close(); + + if (!buf) + return false; + + var arrayBuffer = (undefined !== buf.byteLength) ? new Uint8Array(buf) : buf; + + // TODO: открыли архив, и заполнили this.files + // объектами { path : null } + + // копируем память в память webasm + var FileRawDataSize = arrayBuffer.length; + var FileRawData = Module["_Zlib_Malloc"](FileRawDataSize); + if (0 == FileRawData) + return false; + Module["HEAP8"].set(arrayBuffer, FileRawData); + + // грузим данные + this.engine = Module["_Zlib_Open"](FileRawData, FileRawDataSize); + if (0 == this.engine) + { + Module["_Zlib_Free"](FileRawData); + return false; + } + + // получаем пути в архиве + var pointer = Module["_Zlib_GetPaths"](this.engine); + if (0 == pointer) + { + Module["_Zlib_Close"](this.engine); + Module["_Zlib_Free"](FileRawData); + return false; + } + var lenArray = new Int32Array(Module["HEAP8"].buffer, pointer, 4); + var len = lenArray[0]; + len -= 4; + + var buffer = new Uint8Array(Module["HEAP8"].buffer, pointer + 4, len); + var index = 0; + while (index < len) + { + var lenRec = buffer[index] | buffer[index + 1] << 8 | buffer[index + 2] << 16 | buffer[index + 3] << 24; + index += 4; + var _path = "".fromUtf8(buffer, index, lenRec); + this.files[_path] = null; + index += lenRec; + } + Module["_Zlib_Free"](FileRawData); + Module["_Zlib_Free"](pointer); + return true; +}; + +/** + * Create new archive + * @returns {boolean} success or not + */ +ZLib.prototype.create = function() +{ + if (!this.isModuleInit) + return false; + + if (this.engine) + this.close(); + + this.engine = Module["_Zlib_Create"](); + return !!this.engine; +}; + +/** + * Save archive from current files + * @returns {Uint8Array | null} zip-archive bytes, or null if error + */ +ZLib.prototype.save = function() +{ + if (!this.isModuleInit || !this.engine) + return null; + + var pointerZip = Module["_Zlib_Save"](this.engine); + if (0 == pointerZip) + return null; + + var _lenFile = new Int32Array(Module["HEAP8"].buffer, pointerZip, 4); + var len = _lenFile[0]; + var zip = new Uint8Array(Module["HEAP8"].buffer, pointerZip + 4, len); + return zip; +}; + +/** + * Get all file paths in archive + * @returns {Array} + */ +ZLib.prototype.getPaths = function() +{ + var retFiles = []; + if (!this.files) + return retFiles; + + for (var path in this.files) + { + if (this.files.hasOwnProperty(path)) + retFiles.push(path); + } + return retFiles; +}; + +/** + * Get uncomressed file from archive + * @param {string} path + * @returns {Uint8Array | null} bytes of uncompressed data, or null if error + */ +ZLib.prototype.getFile = function(path) +{ + if (!this.isModuleInit || !this.engine) + return null; + + // проверяем - есть ли файл вообще? + if (undefined === this.files[path]) + return null; + + // проверяем - может мы уже его разжимали? + if (null !== this.files[path]) + { + if (this.files[path].l > 0) + { + return new Uint8Array(Module["HEAP8"].buffer, this.files[path].p, this.files[path].l); + } + else + { + var _lenFile = new Int32Array(Module["HEAP8"].buffer, this.files[path].p, 4); + var len = _lenFile[0]; + return new Uint8Array(Module["HEAP8"].buffer, this.files[path].p + 4, len); + } + } + + var tmp = path.toUtf8(); + var pointer = Module["_Zlib_Malloc"](tmp.length); + if (0 == pointer) + return null; + Module["HEAP8"].set(tmp, pointer); + + var pointerFile = Module["_Zlib_GetFile"](this.engine, pointer); + if (0 == pointerFile) + { + Module["_Zlib_Free"](pointer); + return null; + } + + var _lenFile = new Int32Array(Module["HEAP8"].buffer, pointerFile, 4); + var len = _lenFile[0]; + + Module["_Zlib_Free"](pointer); + this.files[path] = { p : pointerFile, l : 0}; + return new Uint8Array(Module["HEAP8"].buffer, pointerFile + 4, len); +}; + +/** + * Add uncomressed file to archive + * @param {string} path + * @param {Uint8Array} new file in archive + * @returns {boolean} success or not + */ +ZLib.prototype.addFile = function(path, data) +{ + if (!this.isModuleInit || !this.engine) + return false; + + if (!data) + return false; + + // проверяем - может такой файл уже есть? тогда его надо сначала удалить? + if (undefined !== this.files[path]) + this.removeFile(path); + + var tmp = path.toUtf8(); + var pointer = Module["_Zlib_Malloc"](tmp.length); + if (0 == pointer) + return false; + Module["HEAP8"].set(tmp, pointer); + + var arrayBuffer = (undefined !== data.byteLength) ? new Uint8Array(data) : data; + + var FileRawDataSize = arrayBuffer.length; + var FileRawData = Module["_Zlib_Malloc"](FileRawDataSize); + if (0 == FileRawData) + { + Module["_Zlib_Free"](pointer); + return false; + } + Module["HEAP8"].set(arrayBuffer, FileRawData); + + Module["_Zlib_AddFile"](this.engine, pointer, FileRawData, FileRawDataSize); + + this.files[path] = { p : FileRawData, l : FileRawDataSize}; + Module["_Zlib_Free"](pointer); + return true; +}; + +/** + * Remove file from archive + * @param {string} path + * @returns {boolean} success or not + */ +ZLib.prototype.removeFile = function(path) +{ + if (!this.isModuleInit || !this.engine) + return false; + + // проверяем - может такого файла и нет? + if (undefined === this.files[path]) + return false; + + var tmp = path.toUtf8(); + var pointer = Module["_Zlib_Malloc"](tmp.length); + if (0 == pointer) + return false; + Module["HEAP8"].set(tmp, pointer); + + Module["_Zlib_RemoveFile"](this.engine, pointer); + + if (this.files[path] && this.files[path].p) + { + Module["_Zlib_Free"](this.files[path].p); + delete this.files[path]; + } + Module["_Zlib_Free"](pointer); + return true; +}; + +/** + * Close & remove all used memory in archive + * @returns {undefined} + */ +ZLib.prototype.close = function() +{ + if (!this.isModuleInit || !this.engine) + return; + + for (var i in this.files) + { + if (this.files[i] && this.files[i].p) + Module["_Zlib_Free"](this.files[i].p); + } + + this.files = {}; + if (this.engine) + Module["_Zlib_Free"](this.engine); + this.engine = 0; +}; + +/** + * Get image type + * @returns {Number} + */ +ZLib.prototype.getImageType = function(path) +{ + let fileData = this.getFile(path); + return Module["_Image_GetFormat"](this.files[path].p + 4, fileData.length); +}; + +/** + * Get image in needed format + * @returns {Uint8Array} + */ +ZLib.prototype.getImageAsFormat = function(path, format) +{ + let fileData = this.getFile(path); + let encodedData = Module["_Raster_Encode"](this.files[path].p + 4, fileData.length, format); + let encodedSize = Module["_Raster_GetEncodedSize"](encodedData); + let encodedBuffer = Module["_Raster_GetEncodedBuffer"](encodedData); + + let copyData = new Uint8Array(encodedSize); + copyData.set(new Uint8Array(Module["HEAP8"].buffer, encodedBuffer, encodedSize)); + + Module["_Raster_DestroyEncodedData"](encodedData); + + return copyData; +}; +/** + * Get image as svg (for simple test) + * @returns {string} + */ +ZLib.prototype.getImageAsSvg = function(path) +{ + let fileData = this.getFile(path); + let encodedData = Module["_Raster_Encode"](this.files[path].p + 4, fileData.length, 24); + let encodedSize = Module["_Raster_GetEncodedSize"](encodedData); + let encodedBuffer = Module["_Raster_GetEncodedBuffer"](encodedData); + + let string = String.prototype.fromUtf8(new Uint8Array(Module["HEAP8"].buffer, encodedBuffer, encodedSize)); + + Module["_Raster_DestroyEncodedData"](encodedData); + + return string; +}; +/** + * Get image blob for browser + * @returns {Blob} + */ +ZLib.prototype.getImageBlob = function(path) +{ + let imageType = this.getImageType(path); + if (imageType != 10 && imageType != 21) + { + return new Blob([this.getFile(path)], {type:AscCommon.openXml.GetMimeType(AscCommon.GetFileExtension(path))}); + } + + let fileData = this.getFile(path); + let encodedData = Module["_Raster_Encode"](this.files[path].p + 4, fileData.length, 24); + let encodedSize = Module["_Raster_GetEncodedSize"](encodedData); + let encodedBuffer = Module["_Raster_GetEncodedBuffer"](encodedData); + + let blob = new Blob([new Uint8Array(Module["HEAP8"].buffer, encodedBuffer, encodedSize)], {type : AscCommon.openXml.GetMimeType("svg")}); + + Module["_Raster_DestroyEncodedData"](encodedData); + + return blob; +}; + +window.AscCommon = window.AscCommon || {}; +window.AscCommon.CZLibEngineJS = ZLib; + +var hyphenApplication = 0; +AscFonts.Hyphen_Init = function() +{ + hyphenApplication = Module["_hyphenCreateApplication"](); +}; +AscFonts.Hyphen_Destroy = function() +{ + Module["_hyphenDestroyApplication"](hyphenApplication); +}; +AscFonts.Hyphen_CheckDictionary = function(lang) +{ + return false; +}; +AscFonts.Hyphen_LoadDictionary = function(lang, data) +{ + let dictSize = data.byteLength; + let dictPointer = Module["_malloc"](dictSize); + Module["HEAP8"].set(new Uint8ClampedArray(data), dictPointer); + + let result = Module["_hyphenLoadDictionary"](hyphenApplication, lang, dictPointer, dictSize); + + Module["_free"](dictPointer); + + return (result === 0) ? true : false; +}; + +function GetUtf8SymbolLen(c) +{ + if (0x00 == (c & 0x80)) + return 1; + else if (0x00 == (c & 0x20)) + return 2; + else if (0x00 == (c & 0x10)) + return 3; + else if (0x00 == (c & 0x0F)) + return 4; + else if (0x00 == (c & 0x08)) + return 4; + else if (0x00 == (c & 0x04)) + return 5; + return 6; +} + +AscFonts.Hyphen_Word = function(lang, word) +{ + let wordPointer = word.toUtf8Pointer(); + let wordLen = wordPointer.length; + let hyphens = []; + + if (wordPointer) + { + const ptr = Module._hyphenWord(hyphenApplication, lang, wordPointer.ptr, wordLen); + + let curUnicode = new Uint8ClampedArray(Module["HEAP8"].buffer, wordPointer.ptr, wordLen); + let posUnicode = 0; + let posUtf8 = 0; + + let vector = new Uint8ClampedArray(Module["HEAP8"].buffer, ptr, wordLen + 5); + + let pos = 0; + while (vector[pos] != 0) + { + if (1 === (vector[pos] & 1)) + { + while (posUtf8 < (pos + 1)) + { + ++posUnicode; + posUtf8 += GetUtf8SymbolLen(curUnicode[posUtf8]); + } + hyphens.push(posUnicode); + } + + pos++; + } + + wordPointer.free(); + } + return hyphens; +}; + +AscFonts.onLoadModule(); + +})(window, undefined); diff --git a/common/libfont/engine/fonts_native.js b/common/libfont/engine/fonts_native.js index 6c28f43e00..933da591de 100644 --- a/common/libfont/engine/fonts_native.js +++ b/common/libfont/engine/fonts_native.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -35,7 +35,7 @@ window['AscFonts'] = window['AscFonts'] || {}; var AscFonts = window['AscFonts']; -var g_native_engine = CreateEmbedObject("CTextMeasurerEmbed"); +var g_native_engine = null; function CReturnObject() { @@ -236,4 +236,6 @@ AscFonts.Hyphen_Word = function(lang, word) AscFonts.onLoadModule(); AscFonts.onLoadModule(); +window["InitNativeTextMeasurer"] = function() { g_native_engine = CreateEmbedObject("CTextMeasurerEmbed"); }; + })(window, undefined); diff --git a/common/libfont/file.js b/common/libfont/file.js index 68c2e14f5c..8791d30a92 100644 --- a/common/libfont/file.js +++ b/common/libfont/file.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/glyphstring.js b/common/libfont/glyphstring.js index 45d5c265f2..181a7dc92c 100644 --- a/common/libfont/glyphstring.js +++ b/common/libfont/glyphstring.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/grapheme.js b/common/libfont/grapheme.js index 81ed765311..9a77d4643a 100644 --- a/common/libfont/grapheme.js +++ b/common/libfont/grapheme.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/loader.js b/common/libfont/loader.js index 2a66db466a..ab8c9673a7 100644 --- a/common/libfont/loader.js +++ b/common/libfont/loader.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -101,10 +101,6 @@ } } - // отключаем wasm для мобильных - if (useWasm && (AscCommon.AscBrowser.isAppleDevices || AscCommon.AscBrowser.isAndroid)) - useWasm = false; - var engine_name_ext = useWasm ? ".js" : "_ie.js"; var _onSuccess = function(){ }; diff --git a/common/libfont/manager.js b/common/libfont/manager.js index d3a645aabe..c86ff9c86e 100644 --- a/common/libfont/manager.js +++ b/common/libfont/manager.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/map.js b/common/libfont/map.js index 4ab3a7ca5d..65cda0dced 100644 --- a/common/libfont/map.js +++ b/common/libfont/map.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -3121,7 +3121,7 @@ if (true === s.asc_marker) { return { - "data" : AscFonts.GetUint8ArrayFromPointer(s.data), + "data" : AscFonts.GetUint8ArrayFromPointer(s.data, s.len), "size" : s.len }; } diff --git a/common/libfont/ranges.js b/common/libfont/ranges.js index e78b1d32b9..27288992e7 100644 --- a/common/libfont/ranges.js +++ b/common/libfont/ranges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/rasterheap.js b/common/libfont/rasterheap.js index 95fcf9e378..8fc509af54 100644 --- a/common/libfont/rasterheap.js +++ b/common/libfont/rasterheap.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/test/hyphen.js b/common/libfont/test/hyphen.js index 680875c66f..ad14d79f86 100644 --- a/common/libfont/test/hyphen.js +++ b/common/libfont/test/hyphen.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/test/shaper.js b/common/libfont/test/shaper.js index 3dcf0ac4d9..c5b08a1439 100644 --- a/common/libfont/test/shaper.js +++ b/common/libfont/test/shaper.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/textmeasurer.js b/common/libfont/textmeasurer.js index f864926eca..9b84b242f8 100644 --- a/common/libfont/textmeasurer.js +++ b/common/libfont/textmeasurer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/libfont/textshaper.js b/common/libfont/textshaper.js index 822ab28dd5..854c0b6d50 100644 --- a/common/libfont/textshaper.js +++ b/common/libfont/textshaper.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/macros.js b/common/macros.js index 28d8739fd4..a40f59e7f3 100644 --- a/common/macros.js +++ b/common/macros.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/nameMap.js b/common/nameMap.js index d0fee9d054..c22501688e 100644 --- a/common/nameMap.js +++ b/common/nameMap.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/openxml.js b/common/openxml.js index 214f6ebd4d..3abecdd6fd 100644 --- a/common/openxml.js +++ b/common/openxml.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -670,8 +670,10 @@ calculationChain: {dir: "", filename: "calcChain.xml", contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml", relationType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain"}, cellMetadata: {dir: "", filename: "cellMetadata.xml", contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml", relationType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata"}, chart: {dir: "../charts", filename: "chart[N].xml", contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml", relationType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"}, + chartEx: {dir: "../charts", filename: "chartEx[N].xml", contentType: "application/vnd.ms-office.chartex+xml", relationType: "http://schemas.microsoft.com/office/2014/relationships/chartEx"}, chartWord: {dir: "charts", filename: "chart[N].xml", contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml", relationType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"}, chartColorStyle: {dir: "", filename: "color[N].xml", contentType: "application/vnd.ms-office.chartcolorstyle+xml", relationType: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle"}, + chartExColorStyle: {dir: "", filename: "colors[N].xml", contentType: "application/vnd.ms-office.chartcolorstyle+xml", relationType: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle"}, chartDrawing: {dir: "../drawings", filename: "drawing[N].xml", contentType: "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml", relationType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes", enumerateType: "drawings/drawing"}, chartsheet: {dir: "chartsheets", filename: "sheet[N].xml", contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml", relationType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet"}, chartStyle: {dir: "", filename: "style[N].xml", contentType: "application/vnd.ms-office.chartstyle+xml", relationType: "http://schemas.microsoft.com/office/2011/relationships/chartStyle"}, @@ -762,6 +764,7 @@ worksheetSortMap: {dir: "", filename: "worksheetSortMap.xml", contentType: "application/vnd.ms-excel.wsSortMap+xml", relationType: "http://schemas.microsoft.com/office/2006/relationships/wsSortMap"}, xmlSignature: {dir: "", filename: "xmlSignature.xml", contentType: "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml", relationType: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature"}, hyperlink: {dir: "", filename: "", contentType: "", relationType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"}, + metadata: {dir: "xl", filename: "metadata.xml", contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml", relationType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata"}, threadedComment: {dir: "../threadedComments", filename: "threadedComment[N].xml", contentType: "application/vnd.ms-excel.threadedcomments+xml", relationType: "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment"}, person: {dir: "../persons", filename: "person.xml", contentType: "application/vnd.ms-excel.person+xml", relationType: "http://schemas.microsoft.com/office/2017/10/relationships/person"}, diff --git a/common/plugins.js b/common/plugins.js index 60a059bc62..832f316547 100644 --- a/common/plugins.js +++ b/common/plugins.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -662,6 +662,41 @@ return needsGuids; }, + getPluginOptions : function(guid) + { + let options = this.api.externalPluginsOptions; + if (!options) + options = {}; + if (!options["all"]) + options["all"] = {}; + + let sendedOptions = JSON.parse(JSON.stringify(options["all"])); + if (options[guid]) + { + for (let prop in options[guid]) + sendedOptions[prop] = options[guid][prop]; + } + + return sendedOptions; + }, + + onUpdateOptions : function() + { + for (let guid in this.runnedPluginsMap) + { + let runObject = this.runnedPluginsMap[guid]; + if (runObject.isConnector) + continue; + + var pluginData = new CPluginData(); + pluginData.setAttribute("guid", guid); + pluginData.setAttribute("type", "updateOptions"); + pluginData.setAttribute("options", this.getPluginOptions(guid)); + + this.sendMessageToFrame(runObject.frameId, pluginData); + } + }, + buttonClick : function(id, guid, windowId) { if (guid === undefined) @@ -819,9 +854,6 @@ !window["AscDesktopEditor"]["isSupportPlugins"]()) return; - if (this.api.DocInfo && !this.api.DocInfo.get_IsEnabledPlugins()) - return; - if (this.runAndCloseData) // run only on close!!! return; @@ -832,25 +864,55 @@ if (!plugin) return; + if (this.api.DocInfo && !this.api.DocInfo.get_IsEnabledPlugins()) + { + if (!plugin.isConnector) + return; + } + if (!this.checkEditorSupport(plugin, variation)) return; let isSystem = this.pluginsMap[guid].isSystem(); let isBackground = this.pluginsMap[guid].isBackground(); - let isRunned = (this.runnedPluginsMap[guid] !== undefined) ? true : false; + let runObject = this.runnedPluginsMap[guid]; + let isRunned = runObject ? true : false; if (isRunned) { // запуск запущенного => закрытие (только для видимых, так как в интерфейсе "отжим" кнопки плагина - приходит run) if (isSystem || isBackground) + { + if ((plugin.variations[runObject.currentVariation].initDataType === Asc.EPluginDataType.ole) && + data && data.getAttribute && data.getAttribute("objectId")) + { + let sendedData = (data == null || data === "") ? new CPluginData() : data; + this.correctData(sendedData); + let frame = document.getElementById(runObject.frameId); + if (frame) + { + sendedData.setAttribute("type", "init"); + sendedData.setAttribute("options", this.getPluginOptions(guid)); + frame.contentWindow.postMessage(sendedData.serialize(), "*"); + } + } return false; + } this.close(guid); return false; } if (isBackground) + { + if ((plugin.variations[0].initDataType === Asc.EPluginDataType.ole) && + data && data.getAttribute && data.getAttribute("objectId")) + { + // не запускаем сервис, если он отключен. + return false; + } this.addUsedBackgroundPlugins(guid); + } if (!isSystem && !this.isSupportManyPlugins && !isOnlyResize) { @@ -1143,6 +1205,7 @@ if (frame) { runObject.startData.setAttribute("type", "init"); + runObject.startData.setAttribute("options", this.getPluginOptions(guid)); frame.contentWindow.postMessage(runObject.startData.serialize(), "*"); } @@ -1169,6 +1232,12 @@ pluginData.setAttribute("userId", this.api.User.id); pluginData.setAttribute("userName", this.api.User.userName); } + + if (this.api.CoAuthoringApi) + pluginData.setAttribute("jwt", this.api.CoAuthoringApi.get_jwt()); + + if (this.api.pluginsExternalData) + pluginData.setAttribute("externalData", this.api.pluginsExternalData); }, // external @@ -1341,6 +1410,8 @@ getCurrentPluginGuid : function() { + if (this.queueCommands.length === 0) + return ""; return this.queueCommands[0].guid; }, @@ -1386,22 +1457,24 @@ AscFonts.IsCheckSymbols = false; - if (task.recalculate === true && !AscCommon.History.Is_LastPointEmpty()) + let _t = this; + function onEndScript() { - let _t = this; - this.api._afterEvalCommand(function() { - if (!_t.api.onEndBuilderScript()) + _t.api.onEndBuilderScript(function(result) + { + if (!result) commandReturnValue = undefined; _t.shiftCommand(commandReturnValue); }); - return; } + + if (task.recalculate === true && !AscCommon.History.Is_LastPointEmpty()) + this.api._afterEvalCommand(onEndScript); else - { - if (!this.api.onEndBuilderScript()) - commandReturnValue = undefined; - } + onEndScript(); + + return; } } catch (err) @@ -1414,6 +1487,8 @@ setPluginMethodReturnAsync : function() { let currentPlugin = this.getCurrentPluginGuid(); + if (currentPlugin === "") + return; if (this.runnedPluginsMap[currentPlugin]) this.runnedPluginsMap[currentPlugin].methodReturnAsync = true; }, @@ -1574,7 +1649,7 @@ let pluginDataTmp = new CPluginData(); pluginDataTmp.setAttribute("guid", guid); pluginDataTmp.setAttribute("type", "plugin_init"); - pluginDataTmp.setAttribute("data", /**/"(function(a,l){var g=[1,1.25,1.5,1.75,2,2.25,2.5,2.75,3,3.5,4,4.5,5];a.AscDesktopEditor&&a.AscDesktopEditor.GetSupportedScaleValues&&(g=a.AscDesktopEditor.GetSupportedScaleValues());var h=function(){if(0===g.length)return!1;var c=navigator.userAgent.toLowerCase(),e=-1e-1E-4);f++)k=Math.abs(g[f]-e),kMath.abs(c.zoom-b)||(b=c.zoom,document.firstElementChild.style.zoom=.001>Math.abs(b-1)?\"normal\":1/b)}})(window);(function(a,l){function g(b){this.plugin=b;this.ps;this.items=[];this.isCurrentVisible=this.isVisible=!1}function h(){this.id=a.Asc.generateGuid();this.id=this.id.replace(/-/g,\"\");this._events={};this._register()}g.prototype.createWindow=function(){var b=document.body,c=document.getElementsByTagName(\"head\")[0];b&&c&&(b=document.createElement(\"style\"),b.type=\"text/css\",b.innerHTML='.ih_main { margin: 0px; padding: 0px; width: 100%; height: 100%; display: inline-block; overflow: hidden; box-sizing: border-box; user-select: none; position: fixed; border: 1px solid #cfcfcf; } ul { margin: 0px; padding: 0px; width: 100%; height: 100%; list-style-type: none; outline:none; } li { padding: 5px; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 400; color: #373737; } li:hover { background-color: #D8DADC; } .li_selected { background-color: #D8DADC; color: #373737; }.li_selected:hover { background-color: #D8DADC; color: #373737; }',c.appendChild(b),document.body.style.background=\"#FFFFFF\",document.body.style.width=\"100%\",document.body.style.height=\"100%\",document.body.style.margin=\"0\",document.body.style.padding=\"0\",document.body.innerHTML='

    ',this.ps=new PerfectScrollbar(document.getElementById(\"ih_area\"),{minScrollbarLength:20}),this.updateScrolls(),this.createDefaultEvents())};g.prototype.setItems=function(b){this.items=b;for(var c=\"\",e=b.length,d=0;d',c+=b[d].text,c+=\"\";document.getElementById(\"ih_elements_id\").innerHTML=c;this.updateScrolls();this.scrollToSelected()};g.prototype.createDefaultEvents=function(){this.plugin.onExternalMouseUp=function(){var c=document.createEvent(\"MouseEvents\");c.initMouseEvent(\"mouseup\",!0,!0,a,1,0,0,0,0,!1,!1,!1,!1,0,null);document.dispatchEvent(c)};var b=this;a.onkeydown=function(c){switch(c.keyCode){case 27:b.isVisible&&(b.isVisible=!1,b.plugin.executeMethod(\"UnShowInputHelper\",[b.plugin.info.guid,!0]));break;case 38:case 40:case 9:case 36:case 35:case 33:case 34:for(var e=document.getElementsByTagName(\"li\"),d=-1,m=0;md&&(d=0);break;case 40:d++;d>=e.length&&(d=e.length-1);break;case 9:d++;d>=e.length&&(d=0);break;case 36:d=0;break;case 35:d=e.length-1;break;case 33:case 34:m=1;var k=document.getElementById(\"ih_area\").clientHeight/24>>0;1d&&(d=0)):(d+=m,d>=e.length&&(d=d=e.length-1))}d .ps__thumb-y\":{\"border-color\":\"canvas-scroll-thumb-hover\",\"background-color\":\"canvas-scroll-thumb-hover !important\"},\".ps .ps__rail-x:hover\":{\"background-color\":\"background-toolbar\"},\".ps .ps__rail-x.ps--clicking\":{\"background-color\":\"background-toolbar\"},\".ps__thumb-x\":{\"background-color\":\"background-normal\",\"border-color\":\"Border !important\"},\".ps__rail-x:hover > .ps__thumb-x\":{\"border-color\":\"canvas-scroll-thumb-hover\"},a:{color:\"text-link !important\"},\"a:hover\":{color:\"text-link-hover !important\"},\"a:active\":{color:\"text-link-active !important\"},\"a:visited\":{color:\"text-link-visited !important\"},\"*::-webkit-scrollbar-track\":{background:\"background-normal\"},\"*::-webkit-scrollbar-track:hover\":{background:\"background-toolbar-additional\"},\"*::-webkit-scrollbar-thumb\":{\"background-color\":\"background-toolbar\",\"border-color\":\"border-regular-control\"},\"*::-webkit-scrollbar-thumb:hover\":{\"background-color\":\"canvas-scroll-thumb-hover\"},\".asc-plugin-loader\":{color:\"text-normal\"}},e=!1,d=\"\";a.plugin_sendMessage=function(k){a.Asc.plugin.ie_channel?a.Asc.plugin.ie_channel.postMessage(k):a.parent.postMessage(k,\"*\")};a.plugin_onMessage=function(k){if(a.Asc.plugin&&\"string\"==typeof k.data){var f={};try{f=JSON.parse(k.data)}catch(n){f={}}k=f.type;if(f.guid!=a.Asc.plugin.guid){if(l!==f.guid)return;switch(k){case \"onExternalPluginMessage\":break;default:return}}\"init\"==k&&(a.Asc.plugin.info=f);if(l!==f.theme&&(!a.Asc.plugin.theme||\"onThemeChanged\"===k))if(a.Asc.plugin.theme=f.theme,a.Asc.plugin.onThemeChangedBase||(a.Asc.plugin.onThemeChangedBase=function(n){var q=\"\",t;for(t in c){q+=t+\" {\";var w=c[t],r;for(r in w){var u=w[r],y=u.indexOf(\" !important\");-1*/); + pluginDataTmp.setAttribute("data", /**/"(function(a,l){var g=[1,1.25,1.5,1.75,2,2.25,2.5,2.75,3,3.5,4,4.5,5];a.AscDesktopEditor&&a.AscDesktopEditor.GetSupportedScaleValues&&(g=a.AscDesktopEditor.GetSupportedScaleValues());var h=function(){if(0===g.length)return!1;var b=navigator.userAgent.toLowerCase(),e=-1e-1E-4);f++)k=Math.abs(g[f]-e),kMath.abs(b.zoom-c)||(c=b.zoom,document.firstElementChild.style.zoom=.001>Math.abs(c-1)?\"normal\":1/c)}})(window);(function(a,l){function g(c){this.plugin=c;this.ps;this.items=[];this.isCurrentVisible=this.isVisible=!1}function h(){this.id=a.Asc.generateGuid();this.id=this.id.replace(/-/g,\"\");this._events={};this._register()}g.prototype.createWindow=function(){var c=document.body,b=document.getElementsByTagName(\"head\")[0];c&&b&&(c=document.createElement(\"style\"),c.type=\"text/css\",c.innerHTML='.ih_main { margin: 0px; padding: 0px; width: 100%; height: 100%; display: inline-block; overflow: hidden; box-sizing: border-box; user-select: none; position: fixed; border: 1px solid #cfcfcf; } ul { margin: 0px; padding: 0px; width: 100%; height: 100%; list-style-type: none; outline:none; } li { padding: 5px; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 400; color: #373737; } li:hover { background-color: #D8DADC; } .li_selected { background-color: #D8DADC; color: #373737; }.li_selected:hover { background-color: #D8DADC; color: #373737; }',b.appendChild(c),document.body.style.background=\"#FFFFFF\",document.body.style.width=\"100%\",document.body.style.height=\"100%\",document.body.style.margin=\"0\",document.body.style.padding=\"0\",document.body.innerHTML='
      ',this.ps=new PerfectScrollbar(document.getElementById(\"ih_area\"),{minScrollbarLength:20}),this.updateScrolls(),this.createDefaultEvents())};g.prototype.setItems=function(c){this.items=c;for(var b=\"\",e=c.length,d=0;d',b+=c[d].text,b+=\"\";document.getElementById(\"ih_elements_id\").innerHTML=b;this.updateScrolls();this.scrollToSelected()};g.prototype.createDefaultEvents=function(){this.plugin.onExternalMouseUp=function(){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"mouseup\",!0,!0,a,1,0,0,0,0,!1,!1,!1,!1,0,null);document.dispatchEvent(b)};var c=this;a.onkeydown=function(b){switch(b.keyCode){case 27:c.isVisible&&(c.isVisible=!1,c.plugin.executeMethod(\"UnShowInputHelper\",[c.plugin.info.guid,!0]));break;case 38:case 40:case 9:case 36:case 35:case 33:case 34:for(var e=document.getElementsByTagName(\"li\"),d=-1,m=0;md&&(d=0);break;case 40:d++;d>=e.length&&(d=e.length-1);break;case 9:d++;d>=e.length&&(d=0);break;case 36:d=0;break;case 35:d=e.length-1;break;case 33:case 34:m=1;var k=document.getElementById(\"ih_area\").clientHeight/24>>0;1d&&(d=0)):(d+=m,d>=e.length&&(d=d=e.length-1))}d .ps__thumb-y\":{\"border-color\":\"canvas-scroll-thumb-hover\",\"background-color\":\"canvas-scroll-thumb-hover !important\"},\".ps .ps__rail-x:hover\":{\"background-color\":\"background-toolbar\"},\".ps .ps__rail-x.ps--clicking\":{\"background-color\":\"background-toolbar\"},\".ps__thumb-x\":{\"background-color\":\"background-normal\",\"border-color\":\"Border !important\"},\".ps__rail-x:hover > .ps__thumb-x\":{\"border-color\":\"canvas-scroll-thumb-hover\"},a:{color:\"text-link !important\"},\"a:hover\":{color:\"text-link-hover !important\"},\"a:active\":{color:\"text-link-active !important\"},\"a:visited\":{color:\"text-link-visited !important\"},\"*::-webkit-scrollbar-track\":{background:\"background-normal\"},\"*::-webkit-scrollbar-track:hover\":{background:\"background-toolbar-additional\"},\"*::-webkit-scrollbar-thumb\":{\"background-color\":\"background-toolbar\",\"border-color\":\"border-regular-control\"},\"*::-webkit-scrollbar-thumb:hover\":{\"background-color\":\"canvas-scroll-thumb-hover\"},\".asc-plugin-loader\":{color:\"text-normal\"}},e=!1,d=\"\";a.plugin_sendMessage=function(k){a.Asc.plugin.ie_channel?a.Asc.plugin.ie_channel.postMessage(k):a.parent.postMessage(k,\"*\")};a.plugin_onMessage=function(k){if(a.Asc.plugin&&\"string\"==typeof k.data){var f={};try{f=JSON.parse(k.data)}catch(n){f={}}k=f.type;if(f.guid!=a.Asc.plugin.guid){if(l!==f.guid)return;switch(k){case \"onExternalPluginMessage\":break;default:return}}\"init\"===k&&(a.Asc.plugin.info=f);\"updateOptions\"===k&&f.options&&(a.Asc.plugin.info.options=f.options);if(l!==f.theme&&(!a.Asc.plugin.theme||\"onThemeChanged\"===k))if(a.Asc.plugin.theme=f.theme,a.Asc.plugin.onThemeChangedBase||(a.Asc.plugin.onThemeChangedBase=function(n){var q=\"\",t;for(t in b){q+=t+\" {\";var w=b[t],r;for(r in w){var u=w[r],y=u.indexOf(\" !important\");-1*/); let frame = document.getElementById(iframeID); if (frame) { @@ -1656,6 +1731,25 @@ window.g_asc_plugins.sendMessageToFrame(runObject.isConnector ? "" : runObject.frameId, pluginData); break; } + case "attachEvent": + { + let plugin = window.g_asc_plugins.getPluginByGuid(guid); + if (plugin && plugin.variations && plugin.variations[runObject.currentVariation]) + { + plugin.variations[runObject.currentVariation].eventsMap[pluginData.getAttribute("name")] = true; + } + break; + } + case "detachEvent": + { + let plugin = window.g_asc_plugins.getPluginByGuid(guid); + if (plugin && plugin.variations && plugin.variations[runObject.currentVariation]) + { + if (plugin.variations[runObject.currentVariation].eventsMap[pluginData.getAttribute("name")]) + delete plugin.variations[runObject.currentVariation].eventsMap[pluginData.getAttribute("name")]; + } + break; + } default: break; } diff --git a/common/plugins/plugin_base.js b/common/plugins/plugin_base.js index a294930cb3..b9d6b2e820 100644 --- a/common/plugins/plugin_base.js +++ b/common/plugins/plugin_base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -431,6 +431,18 @@ CPluginWindow.prototype.show = function(settings) { var url = settings.url; + + if ((0 !== url.indexOf("http://")) && + (0 !== url.indexOf("https://")) && + (0 !== url.indexOf("file://")) && + (0 !== url.indexOf("www."))) + { + let location = window.location; + let start = location.pathname.lastIndexOf('/') + 1; + let file = location.pathname.substring(start); + url = location.href.replace(file, url); + } + if (-1 === url.indexOf(".html?")) url += "?windowID="; else @@ -622,9 +634,12 @@ } } - if (type == "init") + if (type === "init") window.Asc.plugin.info = pluginData; + if (type === "updateOptions" && pluginData.options) + window.Asc.plugin.info.options = pluginData.options; + if (undefined !== pluginData.theme) { if (!window.Asc.plugin.theme || type === "onThemeChanged") @@ -857,6 +872,11 @@ } break; } + case "updateOptions": + { + if (window.Asc.plugin.onUpdateOptions) + window.Asc.plugin.onUpdateOptions(); + } default: break; } diff --git a/common/plugins/plugin_base_api.js b/common/plugins/plugin_base_api.js index a86b927bb8..730c9a3784 100644 --- a/common/plugins/plugin_base_api.js +++ b/common/plugins/plugin_base_api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -42,28 +42,31 @@ window.startPluginApi = function() { * Translations for the text field. The object keys are the two letter language codes (ru, de, it, etc.) and the values are the button label translation for each language. * Example: { "en" : "name", "ru" : "имя" } * @typedef { Object. } localeTranslate + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/localeTranslate.js */ /** * The editors which the plugin is available for: - * * word - text document editor, - * * cell - spreadsheet editor, - * * slide - presentation editor, - * * pdf - pdf editor. + * word - text document editor, + * cell - spreadsheet editor, + * slide - presentation editor, + * pdf - pdf editor. * @typedef {("word" | "cell" | "slide" | "pdf")} editorType - * */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/editorType.js + */ /** * The data type selected in the editor and sent to the plugin: - * * text - the text data, - * * html - HTML formatted code, - * * ole - OLE object data, - * * desktop - the desktop editor data, - * * destop-external - the main page data of the desktop app (system messages), - * * none - no data will be send to the plugin from the editor, - * * sign - the sign for the keychain plugin. + * text - the text data, + * html - HTML formatted code, + * ole - OLE object data, + * desktop - the desktop editor data, + * destop-external - the main page data of the desktop app (system messages), + * none - no data will be send to the plugin from the editor, + * sign - the sign for the keychain plugin. * @typedef {("text" | "html" | "ole" | "desktop" | "destop-external" | "none" | "sign")} initDataType - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/initDataType.js + */ /** * The skinnable plugin button used in the plugin interface (used for visual plugins with their own window only, i.e. isVisual == true and isInsideMode == false). @@ -72,6 +75,7 @@ window.startPluginApi = function() { * @property {boolean} [primary] - Defines if the button is primary or not. The primary flag affects the button skin only. * @property {boolean} [isViewer] - Defines if the button is shown in the viewer mode only or not. * @property {localeTranslate} [textLocale] - Translations for the text field. The object keys are the two letter language codes (ru, de, it, etc.) and the values are the button label translation for each language. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/Button.js */ /** @@ -81,22 +85,25 @@ window.startPluginApi = function() { * @property {string} Id - A unique content control identifier. It can be used to search for a certain content control and make reference to it in your code. * @property {ContentControlLock} Lock - A value that defines if it is possible to delete and/or edit the content control or not. * @property {string} InternalId - A unique internal identifier of the content control. It is used for all operations with content controls. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControl.js */ /** * @typedef {(0 | 1 | 2 | 3)} ContentControlLock * A value that defines if it is possible to delete and/or edit the content control or not: - * * 0 - only deleting, - * * 1 - disable deleting or editing, - * * 2 - only editing, - * * 3 - full access. - */ + * 0 - only deleting, + * 1 - disable deleting or editing, + * 2 - only editing, + * 3 - full access. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlLock.js + */ /** * @typedef {Object} comment * Comment object. * @property {string} Id - The comment ID. * @property {CommentData} Data - An object which contains the comment data. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/comment.js */ /** @@ -107,6 +114,7 @@ window.startPluginApi = function() { * @property {string} Time - The time when the comment was posted (in milliseconds). * @property {boolean} Solved - Specifies if the comment is resolved (**true**) or not (**false**). * @property {CommentData[]} Replies - An array containing the comment replies represented as the *CommentData* object. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/CommentData.js */ @@ -114,9 +122,9 @@ window.startPluginApi = function() { * Plugin variations, or subplugins, that are created inside the origin plugin. * @typed { Object } variation * @descr Plugin variations can be created for the following purposes: - * * to perform the main plugin actions, - * * to contain plugin settings, - * * to display an About window, etc. + * to perform the main plugin actions, + * to contain plugin settings, + * to display an About window, etc. * For example, the Translation plugin: the plugin itself does not need a visual window for translation as it can be done just pressing a single button, but its settings (the translation direction) and an 'About' window must be visual. So we will need to have at least two plugin variations (translation itself and settings), or three, in case we want to add an 'About' window with the information about the plugin and its authors or the software used for the plugin creation. * * @pr {string} description - The description, i.e. what describes your plugin the best way. @@ -184,6 +192,7 @@ window.startPluginApi = function() { * @alias init * @description The function called when the plugin is launched. It defines the data sent to the plugin describing what actions are to be performed and how they must be performed. * @param {string} text - Defines the data parameter that depends on the {@link /plugin/config#initDataType initDataType} setting specified in the *config.json* file. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/init.js */ /** @@ -193,6 +202,7 @@ window.startPluginApi = function() { * @alias button * @description The function called when any of the plugin buttons is clicked. It defines the buttons used with the plugin and the plugin behavior when they are clicked. * @param {number} buttonIndex - Defines the button index in the {@link /plugin/config#buttons buttons} array of the *config.json* file. If *id == -1*, then the plugin considers that the Close window cross button has been clicked or its operation has been somehow interrupted. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/button.js */ /** @@ -201,6 +211,7 @@ window.startPluginApi = function() { * @memberof Plugin * @alias onTargetPositionChanged * @description The function called when the target position in the editor is changed. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onTargetPositionChanged.js */ /** @@ -209,6 +220,7 @@ window.startPluginApi = function() { * @memberof Plugin * @alias onDocumentContentReady * @description The function called when the document is completely loaded. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onDocumentContentReady.js */ /** @@ -218,6 +230,7 @@ window.startPluginApi = function() { * @alias onClick * @description The function called when the user clicks on the element. * @param {boolean} isSelectionUse - Defines if the selection is used or not. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onClick.js */ /** @@ -227,12 +240,13 @@ window.startPluginApi = function() { * @alias inputHelper_onSelectItem * @description The function called when the user is trying to select an item from the input helper. * @param {object} item - Defines the selected item: - * * text - the item text, + * text - the item text, * type: string, * example: "name"; - * * id - the item index, + * id - the item index, * type: string, * example: "1". + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/inputHelper_onSelectItem.js */ /** @@ -241,6 +255,7 @@ window.startPluginApi = function() { * @memberof Plugin * @alias onInputHelperClear * @description The function called when the user is trying to clear the text and the input helper disappears. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onInputHelperClear.js */ /** @@ -250,12 +265,13 @@ window.startPluginApi = function() { * @alias onInputHelperInput * @description The function called when the user is trying to input the text and the input helper appears. * @param {object} data - Defines the text which the user inputs: - * * add - defines if the text is added to the current text (**true**) or this is the beginning of the text (**false**), + * add - defines if the text is added to the current text (**true**) or this is the beginning of the text (**false**), * type: boolean, * example: true; - * * text - the text which the user inputs, + * text - the text which the user inputs, * type: string, * example: "text". + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onInputHelperInput.js */ /** @@ -264,6 +280,7 @@ window.startPluginApi = function() { * @memberof Plugin * @alias onTranslate * @description The function called right after the plugin startup or later in case the plugin language is changed. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onTranslate.js */ /** @@ -273,7 +290,8 @@ window.startPluginApi = function() { * @alias onEnableMouseEvent * @description The function called to turn the mouse or touchpad events on/off. * @param {boolean} isEnabled - Defines if the mouse or touchpad is enabled (**true**) or not (**false**). - */ + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onEnableMouseEvent.js + */ /** * Event: onExternalMouseUp @@ -281,7 +299,8 @@ window.startPluginApi = function() { * @memberof Plugin * @alias onExternalMouseUp * @description The function called when the mouse button is released outside the plugin iframe. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onExternalMouseUp.js + */ /** * Event: onExternalPluginMessage @@ -290,13 +309,14 @@ window.startPluginApi = function() { * @alias onExternalPluginMessage * @description The function called to show the editor integrator message. * @param {Object} data - Defines the editor integrator message: - * * type - the message type, + * type - the message type, * type: string, * example: "close"; - * * text - the message text, + * text - the message text, * type: string, * example: "text". - */ + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onExternalPluginMessage.js + */ /** * Event: onFocusContentControl @@ -306,6 +326,7 @@ window.startPluginApi = function() { * @alias onFocusContentControl * @description The function called to show which content control has been focused. * @param {ContentControl} control - Defines the content control that has been focused. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onFocusContentControl.js */ /** @@ -316,6 +337,7 @@ window.startPluginApi = function() { * @alias onBlurContentControl * @description The function called to show which content control has been blurred. * @param {ContentControl} control - Defines the content control that has been blurred. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onBlurContentControl.js */ /** @@ -326,18 +348,19 @@ window.startPluginApi = function() { * @alias onChangeContentControl * @description The function called to show which content control has been changed. * @param {ContentControl} control - Defines the content control that has been changed. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onChangeContentControl.js */ /** * The context menu type: - * * None - not used, - * * Target - nothing is selected, - * * Selection - text is selected, - * * Image - image is selected, - * * Shape - shape is selected, - * * OleObject - OLE object is selected. + * None - not used, + * Target - nothing is selected, + * Selection - text is selected, + * Image - image is selected, + * Shape - shape is selected, + * OleObject - OLE object is selected. * @typedef {("None" | "Target" | "Selection" | "Image" | "Shape" | "OleObject")} ContextMenuType - * */ + */ /** * @typedef {Object} ContextMenuOptions @@ -362,6 +385,7 @@ window.startPluginApi = function() { * because the editor waits for responses from all plugins before filling the context menu. * @param {ContextMenuOptions} options - Defines the context menu information. * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onContextMenuShow.js */ /** @@ -372,6 +396,7 @@ window.startPluginApi = function() { * @description The function called when the context menu item has been clicked. * @param {string} id - Item ID. * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onContextMenuClick.js */ /** @@ -382,6 +407,7 @@ window.startPluginApi = function() { * @description The function called when the toolbar menu item has been clicked. * @param {string} id - Item ID. * @since 8.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onToolbarMenuClick.js */ /** @@ -391,6 +417,7 @@ window.startPluginApi = function() { * @typeofeditors ["CDE"] * @alias onCommandCallback * @description The function called to return the result of the previously executed command. It can be used to return data after executing the {@link Plugin#callCommand callCommand} method. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onCommandCallback.js */ /** @@ -401,6 +428,7 @@ window.startPluginApi = function() { * @alias onMethodReturn * @description The function called to return the result of the previously executed method. It can be used to return data after executing the {@link Plugin#executeMethod executeMethod} method. * @param returnValue - Defines the value that will be returned. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onMethodReturn.js */ /** @@ -411,6 +439,7 @@ window.startPluginApi = function() { * @alias onAddComment * @description The function called when a comment is added to the document with the {@link /plugin/executeMethod/text/addcomment AddComment} method. * @param {comment} comment - Defines the comment object containing the comment data. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onAddComment.js */ /** @@ -421,6 +450,7 @@ window.startPluginApi = function() { * @alias onChangeCommentData * @description The function called when the specified comment is changed with the {@link /plugin/executeMethod/text/changecomment ChangeComment} method. * @param {comment} comment - Defines the comment object containing the comment data. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onChangeCommentData.js */ /** @@ -431,8 +461,18 @@ window.startPluginApi = function() { * @alias onRemoveComment * @description The function called when the specified comment is removed with the {@link /plugin/executeMethod/text/removecomments RemoveComments} method. * @param {comment} comment - Defines the comment object containing the comment data. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onRemoveComment.js */ + /** + * Event: onSubmitForm + * @event Plugin#onSubmitForm + * @memberof Plugin + * @typeofeditors ["CDE"] + * @alias onSubmitForm + * @description The function called when the user clicks the "Complete & Submit" button. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/onSubmitForm.js + */ var Plugin = window["Asc"]["plugin"]; @@ -495,8 +535,8 @@ window.startPluginApi = function() { * If it is necessary to create a plugin for the desktop editors to work with local files, no such limitation is applied. * * When creating/editing OLE objects, two extensions are used to work with them: - * * *Api.asc_addOleObject (window.Asc.plugin.info)* - used to create an OLE object in the document; - * * *Api.asc_editOleObject (window.Asc.plugin.info)* - used to edit the created OLE object. + * Api.asc_addOleObject (window.Asc.plugin.info)* - used to create an OLE object in the document; + * Api.asc_editOleObject (window.Asc.plugin.info)* - used to edit the created OLE object. * * When creating/editing the objects, their properties can be passed to the window.Asc.plugin.info object that defines how the object should look. * @param {string} type - Defines the type of the command. The *close* is used to close the plugin window after executing the function in the *data* parameter. @@ -538,6 +578,7 @@ window.startPluginApi = function() { * @param {Array} params - The arguments that the method in use has (if it has any). * @param {Function} callback - The result that the method returns. * @returns {boolean} + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/executeMethod.js */ Plugin.executeMethod = function(name, params, callback) { @@ -589,6 +630,7 @@ window.startPluginApi = function() { * @param {number} minH - The window minimum height. * @param {number} maxW - The window maximum width. * @param {number} maxH - The window maximum height. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/resizeWindow.js */ Plugin.resizeWindow = function(width, height, minW, minH, maxW, maxH) { @@ -639,6 +681,7 @@ window.startPluginApi = function() { * The *true* value is used to recalculate the document after executing the function in the *func* parameter. * The *false* value will not recalculate the document (use it only when your edits surely will not require document recalculation). * @param {Function} callback - The result that the method returns. Only the js standart types are available (any objects will be replaced with *undefined*). + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/callCommand.js */ Plugin.callCommand = function(func, isClose, isCalc, callback) { @@ -665,6 +708,7 @@ window.startPluginApi = function() { * @param {boolean} isClose - Defines whether the plugin window must be closed after the code is executed or left open waiting for another action. * The *true* value is used to close the plugin window after executing a remotely located script. * The *false* value is used to execute the code and leave the window open waiting for the next action. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/callModule.js */ Plugin.callModule = function(url, callback, isClose) { @@ -694,6 +738,7 @@ window.startPluginApi = function() { * @description Defines the method used to load a remotely located text resource. * @param {string} url - The resource code URL. * @param {Function} callback - The result that the method returns. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/loadModule.js */ Plugin.loadModule = function(url, callback) { @@ -720,6 +765,7 @@ window.startPluginApi = function() { * The list of all the available events can be found {@link /plugin/events here}. * @param {string} id - The event name. * @param {Function} action - The event listener. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/attachEvent.js */ /** @@ -729,6 +775,7 @@ window.startPluginApi = function() { * @description Defines the method to add an event listener, a function that will be called whenever the specified event is clicked in the context menu. * @param {string} id - The event name. * @param {Function} action - The event listener. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/attachContextMenuClickEvent.js */ /*********************************************************************** @@ -740,6 +787,7 @@ window.startPluginApi = function() { * @description Defines the input helper item. * @property {string} id - The item index. * @property {string} text - The item text. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/InputHelperItem.js */ /** @@ -755,6 +803,7 @@ window.startPluginApi = function() { * @memberof InputHelper * @alias createWindow * @description Creates an input helper window. + * @see office-js-api/Examples/Plugins/{Editor}/InputHelper/Methods/createWindow.js */ /** @@ -763,6 +812,7 @@ window.startPluginApi = function() { * @alias getItems * @description Returns an array of the {@link global#InputHelperItem InputHelperItem} objects that contain all the items from the input helper. * @return {InputHelperItem[]} + * @see office-js-api/Examples/Plugins/{Editor}/InputHelper/Methods/getItems.js */ /** @@ -771,6 +821,7 @@ window.startPluginApi = function() { * @alias setItems * @description Sets the items to the input helper. * @param {InputHelperItem[]} items - Defines an array of the {@link global#InputHelperItem InputHelperItem} objects which contain all the items for the input helper. + * @see office-js-api/Examples/Plugins/{Editor}/InputHelper/Methods/setItems.js */ /** @@ -781,6 +832,7 @@ window.startPluginApi = function() { * @param {number} width - The input helper window width measured in millimeters. * @param {number} height - The input helper window height measured in millimeters. * @param {boolean} isCaptureKeyboard - Defines if the keyboard is caught (**true**) or not (**false**). + * @see office-js-api/Examples/Plugins/{Editor}/InputHelper/Methods/show.js */ /** @@ -788,6 +840,7 @@ window.startPluginApi = function() { * @memberof InputHelper * @alias unShow * @description Hides an input helper. + * @see office-js-api/Examples/Plugins/{Editor}/InputHelper/Methods/unShow.js */ /** @@ -796,6 +849,7 @@ window.startPluginApi = function() { * @alias getScrollSizes * @description Returns the sizes of the input helper scrolled window. Returns an object with width and height parameters. * @return {number} + * @see office-js-api/Examples/Plugins/{Editor}/InputHelper/Methods/getScrollSizes.js */ /** @@ -803,6 +857,7 @@ window.startPluginApi = function() { * @memberof Plugin * @alias createInputHelper * @description Defines the method used to create an {@link inputhelper input helper} - a window that appears and disappears when you type text. Its location is tied to the cursor. + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/createInputHelper.js */ Plugin.createInputHelper = function() { @@ -816,6 +871,7 @@ window.startPluginApi = function() { * @alias getInputHelper * @description Defines the method used to get the {@link inputhelper InputHelper object}. * @return {InputHelper} Input helper object + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/getInputHelper.js */ Plugin.getInputHelper = function() { @@ -833,6 +889,7 @@ window.startPluginApi = function() { * @param {object} data - The event data. * @return {boolean} Returns true if the operation is successful. * @since 7.4.0 + * @see office-js-api/Examples/Plugins/{Editor}/Plugin/Methods/sendToPlugin.js */ Plugin.sendToPlugin = function(name, data) { @@ -857,3 +914,5 @@ window.startPluginApi = function() { }; }; + + diff --git a/common/random.js b/common/random.js index 5c3569b29b..8a66cada45 100644 --- a/common/random.js +++ b/common/random.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/scroll.js b/common/scroll.js index 39acf3d320..91415fca2d 100644 --- a/common/scroll.js +++ b/common/scroll.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -560,6 +560,13 @@ CArrowDrawer.prototype.InitSize = function ( sizeW, sizeH ) var mouseX = (((evt.clientX * AscBrowser.zoom) >> 0) - left + window.pageXOffset) * dPR; var mouseY = (((evt.clientY * AscBrowser.zoom) >> 0) - top + window.pageYOffset) * dPR; + let api = window.Asc.editor; + let wb = api && api.wb; + let ws = wb && wb.getWorksheet(); + if (ws && ws.getRightToLeft()) { + mouseX = this.that.canvasW - mouseX; + } + return { x:mouseX, y:mouseY @@ -1026,6 +1033,10 @@ CArrowDrawer.prototype.InitSize = function ( sizeW, sizeH ) var roundDPR = this._roundForScale(AscBrowser.retinaPixelRatio); that.context.lineWidth = roundDPR; + let api = window.Asc.editor; + let wb = api && api.wb; + let ws = wb && wb.getWorksheet(); + if (that.settings.isVerticalScroll) { var _y = that.settings.showArrows ? that.arrowPosition : 0, _h = that.canvasH - (_y << 1); @@ -1629,7 +1640,7 @@ CArrowDrawer.prototype.InitSize = function ( sizeW, sizeH ) if ( that.settings.isVerticalScroll ) that.scrollByY( that.settings.vscrollStep ); else if ( that.settings.isHorizontalScroll ) - that.scrollByX( that.settings.hscrollStep ); + that.scrollByX( that.settings.hscrollStep); if(that.mouseDown) scrollTimeout = setTimeout( doScroll, isFirst ? that.settings.initialDelay : that.settings.arrowRepeatFreq ); @@ -1647,7 +1658,7 @@ CArrowDrawer.prototype.InitSize = function ( sizeW, sizeH ) if ( that.settings.isVerticalScroll ) that.scrollByY( -that.settings.vscrollStep ); else if ( that.settings.isHorizontalScroll ) - that.scrollByX( -that.settings.hscrollStep ); + that.scrollByX( -that.settings.hscrollStep); if(that.mouseDown) scrollTimeout = setTimeout( doScroll, isFirst ? that.settings.initialDelay : that.settings.arrowRepeatFreq ); diff --git a/common/skin.js b/common/skin.js index 14f538c46e..09e34cdacf 100644 --- a/common/skin.js +++ b/common/skin.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -168,7 +168,7 @@ var EditorSkins = { Color : "#363636", ColorActive : "#363636", - ColorHighlighted : "#6a6a70", + ColorHighlighted : "#363636", ColorFiltering : "#008636", SheetViewCellBackground : "#73bf91", diff --git a/common/spell/spell.js b/common/spell/spell.js index 6e30b3003c..c5d10de998 100644 --- a/common/spell/spell.js +++ b/common/spell/spell.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/spell/spell/spell.js b/common/spell/spell/spell.js index 969f5a9cd1..a5e3b24335 100644 --- a/common/spell/spell/spell.js +++ b/common/spell/spell/spell.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/spell/spell/spell_ie.js b/common/spell/spell/spell_ie.js index f2b09cffac..416c335f1b 100644 --- a/common/spell/spell/spell_ie.js +++ b/common/spell/spell/spell_ie.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/spellcheckapi.js b/common/spellcheckapi.js index 2b6c4ea816..163b3f8fa1 100644 --- a/common/spellcheckapi.js +++ b/common/spellcheckapi.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/stringserialize.js b/common/stringserialize.js index e0636209c6..782b245be8 100644 --- a/common/stringserialize.js +++ b/common/stringserialize.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/text_input.js b/common/text_input.js index 12a3f25976..c6b59bb390 100644 --- a/common/text_input.js +++ b/common/text_input.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/text_input2.js b/common/text_input2.js index a22f7a7434..907597a735 100644 --- a/common/text_input2.js +++ b/common/text_input2.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -112,6 +112,7 @@ this.nativeFocusElementNoRemoveOnElementFocus = false; this.InterfaceEnableKeyEvents = true; this.isNoClearOnFocus = false; + this.isGlobalDisableFocus = false; this.ReadOnlyCounter = 0; @@ -121,8 +122,9 @@ // параметры для показа/скрытия виртуальной клавиатуры. this.isHardCheckKeyboard = AscCommon.AscBrowser.isSailfish; + this.virtualKeyboardClickTimeout = -1; - this.virtualKeyboardClickPrevent = false; + this.virtualKeyboardReadOnly_ShowKeyboard = AscCommon.AscBrowser.isAndroid && AscCommon.AscBrowser.isMozilla; // для сброса текста при фокусе this.checkClearTextOnFocusTimerId = -1; @@ -879,7 +881,8 @@ return; } - focusHtmlElement(this.HtmlArea); + if (!this.isGlobalDisableFocus) + focusHtmlElement(this.HtmlArea); } }; CTextInputPrototype.externalEndCompositeInput = function() @@ -942,7 +945,11 @@ { _style = ("left:-" + (this.HtmlAreaWidth >> 1) + "px;top:" + (-this.HtmlAreaOffset) + "px;"); _style += "color:transparent;caret-color:transparent;background:transparent;"; - _style += AscCommon.AscBrowser.isAppleDevices ? "font-size:0px;" : "font-size:8px;"; + + if (this.Api.isUseOldMobileVersion()) + _style += (AscCommon.AscBrowser.isAppleDevices && !AscCommon.AscBrowser.isTelegramWebView && (AscCommon.AscBrowser.maxTouchPoints > 0)) ? "font-size:0px;" : "font-size:8px;"; + else + _style += "font-size:8px;"; } else { @@ -1050,7 +1057,7 @@ if (AscCommon.AscBrowser.isChrome) { - var rectObject = _elemSrc.getBoundingClientRect(); + var rectObject = AscCommon.UI.getBoundingClientRect(_elemSrc); this.FixedPosCheckElementX = rectObject.left; this.FixedPosCheckElementY = rectObject.top; } @@ -1072,7 +1079,7 @@ _elem.style.height = _elemSrc.style.height; } - if (this.Api.isMobileVersion) + if (this.Api.isUseOldMobileVersion()) { var _elem1 = document.getElementById("area_id_parent"); var _elem2 = document.getElementById("area_id"); @@ -1081,7 +1088,17 @@ _elem1.style.left = "0px"; - _elem1.style.top = "-1000px"; + let topStyle = "-1000px"; + + if (AscCommon.AscBrowser.isTelegramWebView) + { + if (!AscCommon.AscBrowser.isAndroid && !AscCommon.AscBrowser.isAppleDevices) + topStyle = "0px"; + else if (AscCommon.AscBrowser.isAppleDevices && navigator.maxTouchPoints === 0) + topStyle = "0px"; + } + + _elem1.style.top = topStyle; _elem1.style.right = "0px"; _elem1.style.bottom = "-100px"; _elem1.style.width = "auto"; @@ -1133,7 +1150,7 @@ }; CTextInputPrototype.move = function(x, y) { - if (this.Api.isMobileVersion) + if (this.Api.isUseOldMobileVersion()) return; var oTarget = document.getElementById(this.TargetId); @@ -1146,6 +1163,13 @@ if (AscCommon.AscBrowser.isSafari && AscCommon.AscBrowser.isMobile) xPos = -100; + if (this.Api.editorId === AscCommon.c_oEditorId.Presentation) + { + let offset = this.Api.getTextInputOffset(); + xPos += offset.X; + yPos += offset.Y; + } + this.HtmlDiv.style.left = xPos + this.FixedPosCheckElementX + "px"; this.HtmlDiv.style.top = yPos + this.FixedPosCheckElementY + this.TargetOffsetY + this.HtmlAreaOffset + "px"; @@ -1166,7 +1190,9 @@ if (AscCommon.AscBrowser.isAndroid) { this.setReadOnlyWrapper(true); - this.virtualKeyboardClickPrevent = true; + + if (this.virtualKeyboardReadOnly_ShowKeyboard) + return; this.virtualKeyboardClickTimeout = setTimeout(function () { @@ -1182,6 +1208,9 @@ if (AscCommon.AscBrowser.isAndroid) { + if (this.virtualKeyboardReadOnly_ShowKeyboard) + return; + if (-1 != this.virtualKeyboardClickTimeout) { clearTimeout(this.virtualKeyboardClickTimeout); @@ -1189,7 +1218,6 @@ } this.setReadOnlyWrapper(false); - this.virtualKeyboardClickPrevent = false; } }; CTextInputPrototype.preventVirtualKeyboard_Hard = function() @@ -1201,6 +1229,22 @@ this.setReadOnlyWrapper(false); }; + CTextInputPrototype.showKeyboard = function() + { + if (this.virtualKeyboardReadOnly_ShowKeyboard) + { + if (this.HtmlArea.readOnly === true) + { + this.setReadOnlyWrapper(false); + } + } + + if (!this.Api.asc_IsFocus()) + this.Api.asc_enableKeyEvents(true); + else + focusHtmlElement(this.HtmlArea); + } + CTextInputPrototype.checkViewMode = function() { let oldDisableKeyboard = this.isDisableKeyboard; @@ -1208,9 +1252,22 @@ if (!this.isDisableKeyboard) { - if (this.Api.isRestrictionView() && !this.Api.isRestrictionForms() && !this.Api.isPdfEditor()) + switch (this.Api.editorId) { - this.isDisableKeyboard = true; + case AscCommon.c_oEditorId.Word: + { + // use canEnterText instead this + break; + } + case AscCommon.c_oEditorId.Presentation: + case AscCommon.c_oEditorId.Spreadsheet: + { + if (this.Api.isRestrictionView() && !this.Api.isRestrictionForms()) + this.isDisableKeyboard = true; + break; + } + default: + break; } } diff --git a/common/userinfo_parser.js b/common/userinfo_parser.js index 55005b4cc3..1cf06acb4d 100644 --- a/common/userinfo_parser.js +++ b/common/userinfo_parser.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/versionHistory.js b/common/versionHistory.js index 8e34100ee4..ee1cba9b1c 100644 --- a/common/versionHistory.js +++ b/common/versionHistory.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -48,6 +48,7 @@ this.token = null; this.isRequested = null; this.serverVersion = null; + this.documentSha256 = null; this.userId = null; this.userName = null; this.userColor = null; @@ -58,20 +59,33 @@ } } - asc_CVersionHistory.prototype.update = function(newObj) { - var bUpdate = (this.docId !== newObj.docId || this.url !== newObj.url || this.urlChanges !== newObj.urlChanges || this.currentChangeId > newObj.currentChangeId); - if (bUpdate) { - this.docId = newObj.docId; - this.url = newObj.url; - this.urlChanges = newObj.urlChanges; - this.currentChangeId = -1; - this.changes = null; - this.token = newObj.token; + asc_CVersionHistory.prototype.update = function(newObj) + { + let bUpdate = this.docId !== newObj.docId + || this.url !== newObj.url + || this.urlChanges !== newObj.urlChanges + || this.currentChangeId > newObj.currentChangeId; + + if (bUpdate) + { + this.docId = newObj.docId; + this.url = newObj.url; + this.urlChanges = newObj.urlChanges; + this.currentChangeId = -1; + this.changes = null; + this.token = newObj.token; } - this.colors = newObj.colors; - this.newChangeId = newObj.currentChangeId; - this.isRequested = newObj.isRequested; - this.serverVersion = newObj.serverVersion; + + this.colors = newObj.colors; + this.newChangeId = newObj.currentChangeId; + this.isRequested = newObj.isRequested; + this.serverVersion = newObj.serverVersion; + this.userId = newObj.userId; + this.userName = newObj.userName; + this.userColor = newObj.userColor; + this.dateOfRevision = newObj.dateOfRevision; + + this.documentSha256 = newObj.documentSha256; return bUpdate; }; asc_CVersionHistory.prototype.applyChanges = function(editor) { @@ -81,9 +95,11 @@ } var color; this.newChangeId = (null == this.newChangeId) ? (this.changes.length - 1) : this.newChangeId; - for (var i = this.currentChangeId + 1; i <= this.newChangeId && i < this.changes.length; ++i) { + for (let i = this.currentChangeId + 1; i <= this.newChangeId && i < this.changes.length; ++i) + { color = this.colors[i]; - editor._coAuthoringSetChanges(this.changes[i], i !== this.newChangeId ? null : (color ? new CDocumentColor((color >> 16) & 0xFF, (color >> 8) & 0xFF, color & 0xFF) : new CDocumentColor(191, 255, 199))); + let currentColor = (color ? new CDocumentColor((color >> 16) & 0xFF, (color >> 8) & 0xFF, color & 0xFF) : new CDocumentColor(191, 255, 199)) + editor._coAuthoringSetChanges(this.changes[i], i !== this.newChangeId ? null : currentColor); } this.currentChangeId = this.newChangeId; }; @@ -111,6 +127,9 @@ asc_CVersionHistory.prototype.asc_setServerVersion = function(val) { this.serverVersion = val; }; + asc_CVersionHistory.prototype.asc_setDocumentSha256 = function(val) { + this.documentSha256 = val; + }; asc_CVersionHistory.prototype.asc_SetUserId = function(val) { this.userId = val; @@ -138,6 +157,7 @@ prot["asc_setToken"] = prot.asc_setToken; prot["asc_setIsRequested"] = prot.asc_setIsRequested; prot["asc_setServerVersion"] = prot.asc_setServerVersion; + prot["asc_setDocumentSha256"] = prot.asc_setDocumentSha256; prot["asc_SetUserId"] = prot.asc_SetUserId; prot["asc_SetUserName"] = prot.asc_SetUserName; prot["asc_SetUserColor"] = prot.asc_SetUserColor; diff --git a/common/wordcopypaste.js b/common/wordcopypaste.js index ad539a30f4..138964c379 100644 --- a/common/wordcopypaste.js +++ b/common/wordcopypaste.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -163,7 +163,8 @@ var koef_mm_to_indent = 3.88; var PasteElementsId = { copyPasteUseBinary : true, - g_bIsDocumentCopyPaste : true + g_bIsDocumentCopyPaste : true, + g_bIsPDFCopyPaste : false }; function CopyElement(sName, bText){ this.sName = sName; @@ -1194,7 +1195,7 @@ CopyProcessor.prototype = } if("" != align) DomTable.oAttributes["align"] = align; - if(null != Pr.TableInd) + if(null != Pr.TableInd && Pr.Jc !== align_Center) tblStyle += "margin-left:"+(Pr.TableInd * g_dKoef_mm_to_pt)+"pt;"; if (null != Pr.Shd && c_oAscShdNil !== Pr.Shd.Value && (null != Pr.Shd.Color || null != Pr.Shd.Unifill)) tblStyle += "background:" + this.RGBToCSS(Pr.Shd.Color, Pr.Shd.Unifill) + ";"; @@ -2474,9 +2475,9 @@ function GetContentFromHtml(api, html, callback) { }); } -function Editor_Paste_Exec(api, _format, data1, data2, text_data, specialPasteProps, callback) +function Editor_Paste_Exec(api, _format, data1, data2, text_data, specialPasteProps, callback, rejectCallback) { - var oPasteProcessor = new PasteProcessor(api, true, true, false, undefined, callback); + var oPasteProcessor = new PasteProcessor(api, true, true, false, undefined, callback, rejectCallback); window['AscCommon'].g_specialPasteHelper.endRecalcDocument = false; if(undefined === specialPasteProps) @@ -2522,6 +2523,11 @@ function Editor_Paste_Exec(api, _format, data1, data2, text_data, specialPastePr oPasteProcessor.Start(null, null, null, null, data1); break; } + default: + { + rejectCallback && rejectCallback(); + break; + } } } function trimString( str ){ @@ -2621,7 +2627,7 @@ function sendImgUrls(api, images, callback, bNotShowError, token) { } AscCommon.sendCommand(api, null, rData); } -function PasteProcessor(api, bUploadImage, bUploadFonts, bNested, pasteInExcel, pasteCallback) +function PasteProcessor(api, bUploadImage, bUploadFonts, bNested, pasteInExcel, pasteCallback, rejectCallback) { this.oRootNode = null; this.api = api; @@ -2643,6 +2649,7 @@ function PasteProcessor(api, bUploadImage, bUploadFonts, bNested, pasteInExcel, this.pasteInExcel = pasteInExcel; this.pasteInPresentationShape = null; this.pasteCallback = pasteCallback; + this.rejectCallback = rejectCallback; this.maxTableCell = null; @@ -2797,6 +2804,18 @@ PasteProcessor.prototype = dCellWidth -= nMarginLeft + nMarginRight; return dCellWidth; }, + CheckCopyDrawingsBeforePaste: function () { + const allDrawings = []; + for (let i = 0; i < this.aContent.length; i += 1) { + this.aContent[i].GetAllDrawingObjects(allDrawings); + } + for (let i = 0; i < allDrawings.length; i += 1) { + const drawing = allDrawings[i]; + if (drawing.GraphicObj) { + drawing.GraphicObj.generateSmartArtDrawingPart(); + } + } + }, InsertInDocument : function(dNotShowOptions) { var oDocument = this.oDocument; @@ -2807,6 +2826,7 @@ PasteProcessor.prototype = var nInsertLength = this.aContent.length; if(nInsertLength > 0) { + this.CheckCopyDrawingsBeforePaste(); this.InsertInPlace(oDocument, this.aContent); if(false === PasteElementsId.g_bIsDocumentCopyPaste) @@ -3676,12 +3696,13 @@ PasteProcessor.prototype = }, _setSpecialPasteShowOptionsPresentation: function(props){ - var presentation = editor.WordControl.m_oLogicDocument; - var stateSelection = presentation.GetSelectionState(); - var curPage = stateSelection.CurPage; - var pos = presentation.GetTargetPosition(); + let presentation = editor.WordControl.m_oLogicDocument; + if(presentation.IsMasterMode()) return; + let stateSelection = presentation.GetSelectionState(); + let curPage = stateSelection.CurPage; + let pos = presentation.GetTargetPosition(); props = !props ? [Asc.c_oSpecialPasteProps.sourceformatting, Asc.c_oSpecialPasteProps.keepTextOnly] : props; - var x, y, w, h; + let x, y, w, h; if (null === pos) { pos = presentation.GetSelectedBounds(); w = pos.w; @@ -3711,17 +3732,17 @@ PasteProcessor.prototype = screenPos = presentation.DrawingDocument.ConvertCoordsToCursorWR(x, y, curPage); } - var specialPasteShowOptions = window['AscCommon'].g_specialPasteHelper.buttonInfo; + let specialPasteShowOptions = window['AscCommon'].g_specialPasteHelper.buttonInfo; specialPasteShowOptions.asc_setOptions(props); - var targetDocContent = presentation.Get_TargetDocContent(); + let targetDocContent = presentation.Get_TargetDocContent(); if(targetDocContent && targetDocContent.Id) { specialPasteShowOptions.setShapeId(targetDocContent.Id); } else { specialPasteShowOptions.setShapeId(null); } - var curCoord = new AscCommon.asc_CRect( screenPos.X, screenPos.Y, 0, 0 ); + let curCoord = new AscCommon.asc_CRect( screenPos.X, screenPos.Y, 0, 0 ); specialPasteShowOptions.asc_setCellCoord(curCoord); specialPasteShowOptions.setFixPosition({x: x, y: y, pageNum: curPage, w: w, h: h, slideId: sSlideId}); }, @@ -3989,25 +4010,11 @@ PasteProcessor.prototype = base64FromPDF = binaryObj.base64FromPDF; } - // to do сделать вставку Pdf в/из других редакторов - if (Asc.editor.isPdfEditor() != !!base64FromPDF) { - if (node) { - base64FromExcel = null; - base64FromWord = null; - base64FromPresentation = null; - } - else { - window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); - window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); - Asc.editor.needPasteText = true; - return; - } - } - if (text) { if (insertToPresentationWithoutSlides) { window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + this.rejectCallback && this.rejectCallback(); return; } @@ -4078,28 +4085,40 @@ PasteProcessor.prototype = //insert from binary if (base64FromExcel)//вставка из редактора таблиц { - if (PasteElementsId.g_bIsDocumentCopyPaste) { + if (PasteElementsId.g_bIsPDFCopyPaste) { + bInsertFromBinary = null !== this._pasteBinaryFromExcelToPDF(base64FromExcel, !!(fromBinary)); + } else if (PasteElementsId.g_bIsDocumentCopyPaste) { bInsertFromBinary = null !== this._pasteBinaryFromExcelToWord(base64FromExcel); } else { bInsertFromBinary = null !== this._pasteBinaryFromExcelToPresentation(base64FromExcel); } } else if (base64FromWord)//вставка из редактора документов { - if (PasteElementsId.g_bIsDocumentCopyPaste) { + if (PasteElementsId.g_bIsPDFCopyPaste) { + bInsertFromBinary = null !== this._pasteBinaryFromWordToPDF(base64FromWord, !!(fromBinary)); + } else if (PasteElementsId.g_bIsDocumentCopyPaste) { bInsertFromBinary = null !== this._pasteBinaryFromWordToWord(base64FromWord, !!(fromBinary)); } else { bInsertFromBinary = null !== this._pasteBinaryFromWordToPresentation(base64FromWord, !!(fromBinary)); } } else if (base64FromPresentation)//вставка из редактора презентаций { - if (PasteElementsId.g_bIsDocumentCopyPaste) { + if (PasteElementsId.g_bIsPDFCopyPaste) { + bInsertFromBinary = null !== this._pasteBinaryFromPresentationToPDF(base64FromPresentation, bDuplicate); + } else if (PasteElementsId.g_bIsDocumentCopyPaste) { bInsertFromBinary = null !== this._pasteBinaryFromPresentationToWord(base64FromPresentation, bDuplicate); } else { bInsertFromBinary = null !== this._pasteBinaryFromPresentationToPresentation(base64FromPresentation); } } else if (base64FromPDF)//вставка из pdf редактора { - bInsertFromBinary = null !== this._pasteBinaryFromPDFToPDF(base64FromPDF); + if (PasteElementsId.g_bIsPDFCopyPaste) { + bInsertFromBinary = null !== this._pasteBinaryFromPDFToPDF(base64FromPDF); + } else if (PasteElementsId.g_bIsDocumentCopyPaste) { + bInsertFromBinary = null !== this._pasteBinaryFromPDFToWord(base64FromPDF); + } else { + bInsertFromBinary = null !== this._pasteBinaryFromPDFToPresentation(base64FromPDF); + } } } @@ -4112,6 +4131,7 @@ PasteProcessor.prototype = } else { window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + this.rejectCallback && this.rejectCallback(); } }, @@ -4383,6 +4403,167 @@ PasteProcessor.prototype = oThis.api.pre_Paste(aContent.fonts, null, paste_callback_presentation); } }, + //from EXCEL to PDF + _pasteBinaryFromExcelToPDF: function (base64FromExcel) { + let oThis = this; + let oDoc = Asc.editor.getPDFDoc(); + let nPageW = oDoc.GetPageWidthMM(oDoc.GetCurPage()); + let nPageH = oDoc.GetPageHeight(oDoc.GetCurPage()); + + let excelContent = AscFormat.ExecuteNoHistory(this._readFromBinaryExcel, this, [base64FromExcel]); + if (null === excelContent) { + return null; + } + + let aContentExcel = excelContent.workbook; + let aPastedImages = excelContent.arrImages; + + //если есть шейпы, то вставляем их из excel + let aContent; + let _sheet = aContentExcel && aContentExcel.aWorksheets && aContentExcel.aWorksheets[0]; + let drawings = excelContent.pDrawings ? excelContent.pDrawings : _sheet && _sheet.Drawings; + if (drawings && drawings.length) { + let paste_callback = function () { + if (false === oThis.bNested) { + arr_shapes = arr_shapes.map(function(drawing) { + return new AscPDF.DrawingCopyObject(drawing.graphicObject, 0, 0, 0, 0); + }); + + let oPDFSelContent = new AscPDF.PDFSelectedContent(); + oPDFSelContent.Drawings = arr_shapes; + + for (let i = 0; i < oPDFSelContent.Drawings.length; i++) { + let drawing = oPDFSelContent.Drawings[i].Drawing; + + if (!drawing.IsPdfDrawing) { + oPDFSelContent.Drawings.splice(i, 1); + i--; + } + else { + drawing.bDeleted = false; + } + } + + let bInsert = oDoc.InsertContent2([oPDFSelContent], 0); + if (!bInsert) { + window['AscCommon'].g_specialPasteHelper.CleanButtonInfo() + } + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + } + }; + + + let arr_shapes = drawings; + + let aImagesToDownload = []; + for (let i = 0; i < aPastedImages.length; i++) { + aImagesToDownload.push(aPastedImages[i].Url); + } + + aContent = {aPastedImages: aPastedImages, images: aImagesToDownload}; + + //fonts + let font_map = {}; + for (let i = 0; i < arr_shapes.length; ++i) { + let shape = arr_shapes[i].graphicObject; + if (shape) { + shape.getAllFonts(font_map); + } + } + + let fonts = []; + //грузим картинки и фонты + for (let i in font_map) { + fonts.push(new CFont(i)); + } + + //images + let images = aContent.images; + let arrImages = aContent.aPastedImages; + let oObjectsForDownload = GetObjectsForImageDownload(arrImages); + if (oObjectsForDownload.aUrls.length > 0) { + AscCommon.sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) { + let oImageMap = {}; + AscCommon.ExecuteNoHistory(function() { + ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap); + addThemeImagesToMap(oImageMap, oObjectsForDownload.aUrls, arrImages); + }); + + oThis.api.pre_Paste(fonts, oImageMap, paste_callback); + }, true); + } else { + this.SetShortImageId(arrImages); + this.api.pre_Paste(fonts, images, paste_callback); + } + } else { + let oPDFSelContent = new AscPDF.PDFSelectedContent(); + oPDFSelContent.DocContent = new AscCommonWord.CSelectedContent(); + + aContent = AscFormat.ExecuteNoHistory(this._convertExcelBinary, this, [excelContent]); + + let selectedElement, element, pDrawings = [], drawingCopyObject; + AscCommon.ExecuteNoHistory(function() { + for (let i = 0; i < aContent.content.length; ++i) { + selectedElement = new AscCommonWord.CSelectedElement(); + element = aContent.content[i]; + + if (type_Table === element.GetType())//table + { + element = oThis._convertTableToPPTX(element, true); + + let W = nPageW * 2 / 3; + let Rows = element.GetRowsCount(); + let H = Rows * 7.478268771701388; + let graphic_frame = new AscPDF.CPdfGraphicFrame(); + graphic_frame.setSpPr(new AscFormat.CSpPr()); + graphic_frame.spPr.setParent(graphic_frame); + graphic_frame.spPr.setXfrm(new AscFormat.CXfrm()); + graphic_frame.spPr.xfrm.setParent(graphic_frame.spPr); + graphic_frame.spPr.xfrm.setOffX(nPageW / 2 - W / 2); + graphic_frame.spPr.xfrm.setOffY(nPageH / 2 - H / 2); + graphic_frame.spPr.xfrm.setExtX(W); + graphic_frame.spPr.xfrm.setExtY(H); + graphic_frame.setNvSpPr(new AscFormat.UniNvPr()); + + graphic_frame.setGraphicObject(element.Copy(graphic_frame)); + + drawingCopyObject = new AscPDF.DrawingCopyObject(); + drawingCopyObject.Drawing = graphic_frame; + pDrawings.push(drawingCopyObject); + } + } + }); + + oPDFSelContent.Drawings = pDrawings; + + //вставка + let paste_callback_pdf = function () { + if (false == oThis.bNested) { + for (let i = 0; i < oPDFSelContent.Drawings.length; i++) { + let drawing = oPDFSelContent.Drawings[i].Drawing; + + if (!drawing.IsPdfDrawing) { + oPDFSelContent.Drawings.splice(i, 1); + i--; + } + else { + drawing.bDeleted = false; + } + } + + let bInsert = oDoc.InsertContent2([oPDFSelContent], 0); + if (bInsert) { + let props = [Asc.c_oSpecialPasteProps.destinationFormatting, Asc.c_oSpecialPasteProps.keepTextOnly]; + } else { + window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); + } + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + } + }; + + oThis.api.pre_Paste(aContent.fonts, null, paste_callback_pdf); + } + }, //from WORD to WORD _pasteBinaryFromWordToWord: function (base64FromWord, bIsOnlyFromBinary) { @@ -4801,12 +4982,193 @@ PasteProcessor.prototype = } }, - // from pdf to pdf + //from WORD to PDF + _pasteBinaryFromWordToPDF: function (base64FromWord) { + let oThis = this; + let oDoc = Asc.editor.getPDFDoc(); + let nPageW = oDoc.GetPageWidthMM(oDoc.GetCurPage()); + let nPageH = oDoc.GetPageHeight(oDoc.GetCurPage()); + let trueDocument = this.oDocument; + + let tempCDocument = function () { + return new CDocument(oThis.oDocument.DrawingDocument, false); + }; + //создаём темповый CDocument + this.oDocument = AscFormat.ExecuteNoHistory(tempCDocument, this, []); + + AscCommon.g_oIdCounter.m_bRead = true; + let aContent = AscFormat.ExecuteNoHistory(this.ReadFromBinary, this, [base64FromWord, this.oDocument]); + AscCommon.g_oIdCounter.m_bRead = false; + + if (null === aContent) { + return null; + } + + //возврщаем обратно переменные и историю, документ которой заменяется при создании CDocument + this.oDocument = trueDocument; + History.Document = trueDocument; + + let oPDFSelContent = new AscPDF.PDFSelectedContent(); + oPDFSelContent.DocContent = new AscCommonWord.CSelectedContent(); + + let parseContent = function (content) { + AscFormat.ExecuteNoHistory(function() { + for (let i = 0; i < content.length; ++i) { + selectedElement = new AscCommonWord.CSelectedElement(); + element = content[i]; + //drawings + element.GetAllDrawingObjects(drawings); + if (type_Paragraph === element.GetType())//paragraph + { + selectedElement.Element = AscFormat.ConvertParagraphToPPTX(element, null, null, true, false); + elements.push(selectedElement); + } else if (type_Table === element.GetType())//table + { + element = oThis._convertTableToPPTX(element, true); + + let W = nPageW * 2 / 3; + let Rows = element.GetRowsCount(); + let H = Rows * 7.478268771701388; + let graphic_frame = new AscPDF.CPdfGraphicFrame(); + graphic_frame.setSpPr(new AscFormat.CSpPr()); + graphic_frame.spPr.setParent(graphic_frame); + graphic_frame.spPr.setXfrm(new AscFormat.CXfrm()); + graphic_frame.spPr.xfrm.setParent(graphic_frame.spPr); + graphic_frame.spPr.xfrm.setOffX(nPageW / 2 - W / 2); + graphic_frame.spPr.xfrm.setOffY(nPageH / 2 - H / 2); + graphic_frame.spPr.xfrm.setExtX(W); + graphic_frame.spPr.xfrm.setExtY(H); + graphic_frame.setNvSpPr(new AscFormat.UniNvPr()); + + graphic_frame.setGraphicObject(element.Copy(graphic_frame)); + graphic_frame.graphicObject.Set_TableStyle(defaultTableStyleId); + + drawingCopyObject = new AscPDF.DrawingCopyObject(); + drawingCopyObject.Drawing = graphic_frame; + pDrawings.push(drawingCopyObject); + + } else if (type_BlockLevelSdt === element.GetType())//TOC + { + parseContent(element.Content.Content); + } + } + }); + }; + + var elements = [], selectedElement, element, drawings = [], pDrawings = [], drawingCopyObject; + var defaultTableStyleId = oDoc.DefaultTableStyleId; + parseContent(aContent.content); + + var onlyImages = false; + if (drawings && drawings.length) { + //если массив содержит только изображения + if (elements && 1 === elements.length && elements[0].Element && type_Paragraph === elements[0].Element.Get_Type()) { + if (true === this._isParagraphContainsOnlyDrawing(elements[0].Element)) { + elements = []; + onlyImages = true; + } + } + + for (var j = 0; j < drawings.length; j++) { + drawingCopyObject = new AscPDF.DrawingCopyObject(); + drawingCopyObject.Drawing = drawings[j].GraphicObj; + pDrawings.push(drawingCopyObject); + } + } + oPDFSelContent.DocContent.Elements = elements; + oPDFSelContent.Drawings = pDrawings; + + //вставка + let paste_callback = function () { + if (false === oThis.bNested) { + //для таблиц необходимо рассчитать их размер, чтобы разместить в центре + for (let i = 0; i < oPDFSelContent.Drawings.length; i++) { + if (oPDFSelContent.Drawings[i].Drawing instanceof AscFormat.CGraphicFrame) { + let drawing = oPDFSelContent.Drawings[i].Drawing; + let oldParent = drawing.parent; + drawing.bDeleted = false; + drawing.recalculate(); + drawing.parent = oldParent; + } + } + + let bInsert = oDoc.InsertContent2([oPDFSelContent], 0); + if (bInsert) { + if (!onlyImages) { + let props = [Asc.c_oSpecialPasteProps.destinationFormatting, Asc.c_oSpecialPasteProps.keepTextOnly]; + } else { + window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); + } + } else { + window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); + } + + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + } + }; + + + var font_map = {}; + var images = []; + //shape.getAllFonts(font_map); + + //перебираем шрифты + var fonts = []; + for (var i in font_map) + fonts.push(new CFont(i)); + + function correctDrawingsForPdf(drawings, document) { + AscFormat.ExecuteNoHistory(function () { + for (var i = 0; i < drawings.length; i++) { + var drawing = drawings[i].Drawing; + + if (!(drawing instanceof AscFormat.CGraphicFrame)) { + + if (drawing.setBDeleted2) { + drawing.setBDeleted2(true); + } else { + drawing.setBDeleted(true); + } + + } + + if (drawing.convertToPdf) { + drawings[i].Drawing = drawing.convertToPdf(document, undefined, true); + AscFormat.checkBlipFillRasterImages(drawings[i].Drawing); + } + + if (!drawings[i].Drawing.IsPdfDrawing) { + drawings.splice(i, 1); + i--; + } + } + }, this, []); + } + + var oObjectsForDownload = GetObjectsForImageDownload(aContent.aPastedImages); + + if (oObjectsForDownload.aUrls.length > 0) { + AscCommon.sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) { + var oImageMap = {}; + AscCommon.ExecuteNoHistory(function() { + ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap); + }); + correctDrawingsForPdf(oPDFSelContent.Drawings, oThis.oDocument.DrawingDocument); + addThemeImagesToMap(oImageMap, oObjectsForDownload.aUrls, aContent.aPastedImages); + oThis.api.pre_Paste(fonts, oImageMap, paste_callback); + }, true); + } else { + correctDrawingsForPdf(oPDFSelContent.Drawings, oThis.oDocument.DrawingDocument); + oThis.api.pre_Paste(aContent.fonts, aContent.images, paste_callback); + } + }, + + // from PDF to PDF _pasteBinaryFromPDFToPDF: function (base64, bDuplicate) { let oThis = this; let oDoc = Asc.editor.getPDFDoc(); - let oSelectedContent2 = this._readPDFSelectedContent2(base64, bDuplicate); + let oSelectedContent2 = AscCommon.ExecuteNoHistory(this._readPDFSelectedContent2, null, this, [base64, bDuplicate]); let p_url = oSelectedContent2.p_url; let selectedContent2 = oSelectedContent2.content; @@ -4861,9 +5223,9 @@ PasteProcessor.prototype = let arr_Images = pasteObj.images; let fonts = pasteObj.fonts; - let oPDFSelectedContent = pasteObj.content; + let oPDFSelContent = pasteObj.content; - if (null === oPDFSelectedContent) { + if (null === oPDFSelContent) { return null; } @@ -4872,7 +5234,7 @@ PasteProcessor.prototype = let bPaste = oDoc.InsertContent2(aContents, nIndex); if (specialOptionsArr.length >= 1 && bPaste) { - if (oPDFSelectedContent && oPDFSelectedContent.DocContent) { + if (oPDFSelContent && oPDFSelContent.DocContent) { specialOptionsArr.push(Asc.c_oSpecialPasteProps.keepTextOnly); } } else { @@ -4887,7 +5249,9 @@ PasteProcessor.prototype = if (oObjectsForDownload.aUrls.length > 0) { AscCommon.sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) { let oImageMap = {}; - ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap); + AscCommon.ExecuteNoHistory(function() { + ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap); + }); addThemeImagesToMap(oImageMap, oObjectsForDownload.aUrls, arr_Images); oThis.api.pre_Paste(fonts, oImageMap, paste_callback); }, true); @@ -4903,102 +5267,469 @@ PasteProcessor.prototype = } }, - _readPDFSelectedContent2: function (base64, bDuplicate) { - pptx_content_loader.Clear(); - - let _stream = AscFormat.CreateBinaryReader(base64, 0, base64.length); - let stream = new AscCommon.FileStream(_stream.data, _stream.size); - let p_url = stream.GetString2(); + //from PDF to WORD + _pasteBinaryFromPDFToWord: function (base64) { + var oThis = this; - let bIsMultipleContent = stream.GetBool(); - let selectedContent2 = []; - if (true === bIsMultipleContent) { - let multipleParamsCount = stream.GetULong(); - for (let i = 0; i < multipleParamsCount; i++) { - selectedContent2.push(this._readPDFSelectedContent(stream, bDuplicate)); + var fPrepasteCallback = function () { + if (false === oThis.bNested) { + oThis.InsertInDocument(); + if (oThis.pasteCallback) { + oThis.pasteCallback(); + } } - } - return {content: selectedContent2, p_url: p_url}; - }, + }; - _readPDFSelectedContent: function (stream, bDuplicate) { - return AscFormat.ExecuteNoHistory(function () { - let oPDFContent = null; - let fonts = []; - let arr_Images = []; - let oThis = this; - let oFontMap = {}; - - let readContent = function () { - let docContent = oThis.ReadPresentationText(stream); - if (docContent.length === 0) { - return; - } - oPDFContent.DocContent = new AscCommonWord.CSelectedContent(); - oPDFContent.DocContent.Elements = docContent; + var oSelectedContent2 = this._readPDFSelectedContent2(base64); + var selectedContent2 = oSelectedContent2.content; + var pasteObj = selectedContent2[0] ? selectedContent2[0] : selectedContent2[1]; - //перебираем шрифты - for (let i in oThis.oFonts) { - oFontMap[i] = 1; - } + var arr_Images, fonts, content = null, font_map = {}; + if (pasteObj) { + arr_Images = pasteObj.images; + fonts = pasteObj.fonts; + content = pasteObj.content; + } - bIsEmptyContent = false; + if (null === content) { + return null; + } + + if (content && content.DocContent) { + let aElements = content.DocContent.Elements; + let aContent = []; + let bNeedDocElement = !this.oDocument.bPresentation; + let oNewParent = this.oDocument; + for (let nElement = 0; nElement < aElements.length; nElement++) { + let oContentElement = aElements[nElement].Element; + if(bNeedDocElement) { + aContent.push(AscFormat.ConvertParagraphToWord(oContentElement, oNewParent)); + } else { + aContent.push(oContentElement.Copy(oNewParent, oNewParent.DrawingDocument)); + } + } + this.aContent = aContent; + oThis.api.pre_Paste(fonts, arr_Images, fPrepasteCallback); + + } else if (content && content.Drawings) { + + var arr_shapes = content.Drawings; + var arrImages = pasteObj.images; + if (content.Drawings.length === selectedContent2[1].content.Drawings.length) { + AscFormat.checkDrawingsTransformBeforePaste(content, selectedContent2[1].content, null); + } + //****если записана одна табличка, то вставляем html и поддерживаем все цвета и стили**** + if (!arrImages.length && arr_shapes.length === 1 && arr_shapes[0] && arr_shapes[0].Drawing && + arr_shapes[0].Drawing.graphicObject) { + + var drawing = arr_shapes[0].Drawing; + + if (typeof CGraphicFrame !== "undefined" && drawing instanceof CGraphicFrame) { + var aContent = []; + var table = AscFormat.ConvertGraphicFrameToWordTable(drawing, this.oLogicDocument); + table.Document_Get_AllFontNames(font_map); + + //перебираем шрифты + for (var i in font_map) { + fonts.push(new CFont(i)); + } + + //TODO стиль не прокидывается. в будущем нужно реализовать + table.TableStyle = null; + aContent.push(table); + + this.aContent = aContent; + oThis.api.pre_Paste(fonts, aContent.images, fPrepasteCallback); + + return; + } + } + + + //если несколько графических объектов, то собираем base64 у таблиц(graphicFrame) + if (arr_shapes.length > 1) { + for (var i = 0; i < arr_shapes.length; i++) { + if (arr_shapes[i].Drawing && arr_shapes[i].Drawing.isTable()) { + arrImages.push(new AscCommon.CBuilderImages(null, arr_shapes[i].base64, arr_shapes[i], null, null)); + } + } + } + + var oObjectsForDownload = GetObjectsForImageDownload(arrImages); + var aImagesToDownload = oObjectsForDownload.aUrls; + + AscCommon.sendImgUrls(oThis.api, aImagesToDownload, function (data) { + var image_map = {}; + for (var i = 0, length = Math.min(data.length, arrImages.length); i < length; ++i) { + var elem = data[i]; + if (null != elem.url) { + var name = g_oDocumentUrls.imagePath2Local(elem.path); + var imageElem = oObjectsForDownload.aBuilderImagesByUrl[i]; + if (null != imageElem) { + if (Array.isArray(imageElem)) { + for (var j = 0; j < imageElem.length; ++j) { + var curImageElem = imageElem[j]; + if (null != curImageElem) { + if (curImageElem.ImageShape && curImageElem.ImageShape.base64) { + curImageElem.ImageShape.base64 = name; + } else { + curImageElem.SetUrl(name); + } + } + } + } else { + //для вставки graphicFrame в виде картинки(если было при копировании выделено несколько графических объектов) + if (imageElem.ImageShape && imageElem.ImageShape.base64) { + imageElem.ImageShape.base64 = name; + } else { + imageElem.SetUrl(name); + } + } + } + image_map[i] = name; + } else { + image_map[i] = aImagesToDownload[i]; + } + } + + aContent = oThis._convertExcelBinary(null, arr_shapes); + oThis.aContent = aContent.content; + oThis.api.pre_Paste(fonts, image_map, fPrepasteCallback); + }, true); + } + }, + + //from PDF to PRESENTATION + _pasteBinaryFromPDFToPresentation: function (base64, bDuplicate) { + var oThis = this; + var presentation = editor.WordControl.m_oLogicDocument; + + var oSelectedContent2 = this._readPDFSelectedContent2(base64, bDuplicate); + var p_url = oSelectedContent2.p_url; + var p_theme = oSelectedContent2.p_theme; + var selectedContent2 = oSelectedContent2.content; + var multipleParamsCount = selectedContent2 ? selectedContent2.length : 0; + + for (let i = 0; i < selectedContent2.length; i++) { + let oPdfContent = selectedContent2[i].content; + + selectedContent2[i].content = oPdfContent ? new PresentationSelectedContent(): null; + if (oPdfContent) { + selectedContent2[i].content.Drawings = oPdfContent.Drawings || []; + selectedContent2[i].content.DocContent = oPdfContent.DocContent; + } + } + + if (multipleParamsCount) { + var aContents = []; + for (var i = 0; i < multipleParamsCount; i++) { + var curContent = selectedContent2[i]; + aContents.push(curContent.content); + } + + var specialOptionsArr = []; + var specialProps = Asc.c_oSpecialPasteProps; + if (1 === multipleParamsCount) { + specialOptionsArr = [specialProps.destinationFormatting]; + } else if (2 === multipleParamsCount) { + specialOptionsArr = [specialProps.destinationFormatting, specialProps.sourceformatting]; + } else if (3 === multipleParamsCount) { + specialOptionsArr = [specialProps.destinationFormatting, specialProps.sourceformatting, specialProps.picture]; + } + + var pasteObj = selectedContent2[0]; + var nIndex = 0; + if (window['AscCommon'].g_specialPasteHelper.specialPasteStart) { + var props = window['AscCommon'].g_specialPasteHelper.specialPasteProps; + switch (props) { + case Asc.c_oSpecialPasteProps.destinationFormatting: { + break; + } + case Asc.c_oSpecialPasteProps.sourceformatting: { + if (selectedContent2[1]) { + pasteObj = selectedContent2[1]; + nIndex = 1; + } + break; + } + case Asc.c_oSpecialPasteProps.picture: { + if (selectedContent2[2]) { + pasteObj = selectedContent2[2]; + nIndex = 2; + } + break; + } + case Asc.c_oSpecialPasteProps.keepTextOnly: { + //в идеале у этом случае нужно использовать данные plain text из буфера обмена + //pasteObj = selectedContent2[2]; + break; + } + } + } + + var arr_Images = pasteObj.images; + var fonts = pasteObj.fonts; + var presentationSelectedContent = pasteObj.content; + + if (null === presentationSelectedContent) { + return null; + } + + if (presentationSelectedContent.Drawings && presentationSelectedContent.Drawings.length > 0) { + var controller = this.oDocument.GetCurrentController(); + var curTheme = controller ? controller.getTheme() : null; + if (curTheme && curTheme.name === p_theme) { + specialOptionsArr.splice(1, 1); + } + } + + var paste_callback = function () { + if (false === oThis.bNested) { + var bPaste = presentation.InsertContent2(aContents, nIndex); + + + presentation.FinalizeAction(); + presentation.UpdateInterface(); + + if (specialOptionsArr.length >= 1 && bPaste) { + if (presentationSelectedContent && presentationSelectedContent.DocContent) { + specialOptionsArr.push(Asc.c_oSpecialPasteProps.keepTextOnly); + } + + oThis._setSpecialPasteShowOptionsPresentation(specialOptionsArr); + } else { + window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); + } + + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + } + }; + + var oObjectsForDownload = GetObjectsForImageDownload(arr_Images, p_url === this.api.documentId); + if (oObjectsForDownload.aUrls.length > 0) { + AscCommon.sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) { + let oImageMap = {}; + ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap); + addThemeImagesToMap(oImageMap, oObjectsForDownload.aUrls, arr_Images); + oThis.api.pre_Paste(fonts, oImageMap, paste_callback); + }, true); + } else { + let oImageMap = {}; + for(let nImg = 0; nImg < arr_Images.length; ++nImg) { + oImageMap[nImg] = arr_Images[nImg].Url + } + oThis.api.pre_Paste(fonts, oImageMap, paste_callback); + } + } else { + return null; + } + }, + + //from PRESENTATION to PDF + _pasteBinaryFromPresentationToPDF: function (base64, bDuplicate) { + let oThis = this; + let oDoc = Asc.editor.getPDFDoc(); + let nPageW = oDoc.GetPageWidthMM(oDoc.GetCurPage()); + let nPageH = oDoc.GetPageHeight(oDoc.GetCurPage()); + + let oSelectedContent2 = this._readPresentationSelectedContent2(base64, bDuplicate); + let p_url = oSelectedContent2.p_url; + let selectedContent2 = oSelectedContent2.content; + let multipleParamsCount = selectedContent2 ? selectedContent2.length : 0; + + let aContents = []; + if (multipleParamsCount) { + + for (let i = 0; i < multipleParamsCount; i++) { + let curContent = selectedContent2[i]; + aContents.push(curContent.content); + } + + let specialOptionsArr = []; + let specialProps = Asc.c_oSpecialPasteProps; + if (1 === multipleParamsCount) { + specialOptionsArr = [specialProps.destinationFormatting]; + } else if (2 === multipleParamsCount) { + specialOptionsArr = [specialProps.destinationFormatting, specialProps.sourceformatting]; + } else if (3 === multipleParamsCount) { + specialOptionsArr = [specialProps.destinationFormatting, specialProps.sourceformatting, specialProps.picture]; + } + + let bSlideObjects = selectedContent2[0] && selectedContent2[0].content && selectedContent2[0].content.SlideObjects && selectedContent2[0].content.SlideObjects.length > 0; + let pasteObj = bSlideObjects ? selectedContent2[2] : selectedContent2[0]; + let nIndex = bSlideObjects ? 2 : 0; + + let arr_Images = pasteObj.images; + let fonts = pasteObj.fonts; + let presentationSelectedContent = pasteObj.content; + if (null === presentationSelectedContent) { + return null; + } + if (!presentationSelectedContent.Drawings) { + presentationSelectedContent.Drawings = []; + } + + let paste_callback = function () { + if (false === oThis.bNested) { + for (let i = 0; i < aContents.length; i++) { + let oPDFSelContent = new AscPDF.PDFSelectedContent(); + oPDFSelContent.Drawings = aContents[i].Drawings; + oPDFSelContent.DocContent = aContents[i].DocContent; + + aContents[i] = oPDFSelContent; + } + + let bPaste = oDoc.InsertContent2(aContents, nIndex); + + if (specialOptionsArr.length >= 1 && bPaste) { + if (presentationSelectedContent && presentationSelectedContent.DocContent) { + specialOptionsArr.push(Asc.c_oSpecialPasteProps.keepTextOnly); + } + } else { + window['AscCommon'].g_specialPasteHelper.CleanButtonInfo(); + } + + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + } }; - let readDrawings = function () { - - if (PasteElementsId.g_bIsDocumentCopyPaste) { - History.TurnOff(); + AscCommon.ExecuteNoHistory(function() { + for (var i = 0; i < presentationSelectedContent.Drawings.length; i++) { + AscFormat.checkBlipFillRasterImages(presentationSelectedContent.Drawings[i].Drawing); + if (presentationSelectedContent.Drawings[i].Drawing.IsPdfDrawing && presentationSelectedContent.Drawings[i].Drawing.IsGraphicFrame()) { + let oGrFrame = presentationSelectedContent.Drawings[i].Drawing; + oGrFrame.applyDrawingSize({Width: nPageW * 2 / 3}); + oGrFrame.graphicObject.Set_TableW(tblwidth_Mm, nPageW * 2 / 3); + } + if (!presentationSelectedContent.Drawings[i].Drawing.IsPdfDrawing) { + presentationSelectedContent.Drawings.splice(i, 1); + i--; + } } - // шейпы из презентаций, поэтому чтение то же самое - let objects = oThis.ReadPresentationShapes(stream); - if (PasteElementsId.g_bIsDocumentCopyPaste) { - History.TurnOn(); + }); + + let oObjectsForDownload = GetObjectsForImageDownload(arr_Images, p_url === this.api.documentId); + if (oObjectsForDownload.aUrls.length > 0) { + AscCommon.sendImgUrls(oThis.api, oObjectsForDownload.aUrls, function (data) { + let oImageMap = {}; + AscCommon.ExecuteNoHistory(function() { + ResetNewUrls(data, oObjectsForDownload.aUrls, oObjectsForDownload.aBuilderImagesByUrl, oImageMap); + addThemeImagesToMap(oImageMap, oObjectsForDownload.aUrls, arr_Images); + }); + + oThis.api.pre_Paste(fonts, oImageMap, paste_callback); + }, true); + } else { + let oImageMap = {}; + for(let nImg = 0; nImg < arr_Images.length; ++nImg) { + oImageMap[nImg] = arr_Images[nImg].Url } - oPDFContent.Drawings = objects.arrShapes; + oThis.api.pre_Paste(fonts, oImageMap, paste_callback); + } + } else { + return null; + } + }, - let arr_shapes = objects.arrShapes; - for (let i = 0; i < arr_shapes.length; ++i) { - if (arr_shapes[i].Drawing.getAllFonts) { - arr_shapes[i].Drawing.getAllFonts(oFontMap); - } + _readPDFSelectedContent2: function (base64, bDuplicate) { + pptx_content_loader.Clear(); + + let _stream = AscFormat.CreateBinaryReader(base64, 0, base64.length); + let stream = new AscCommon.FileStream(_stream.data, _stream.size); + let p_url = stream.GetString2(); + + let bIsMultipleContent = stream.GetBool(); + let selectedContent2 = []; + if (true === bIsMultipleContent) { + let multipleParamsCount = stream.GetULong(); + for (let i = 0; i < multipleParamsCount; i++) { + selectedContent2.push(this._readPDFSelectedContent(stream, bDuplicate)); + } + } + return {content: selectedContent2, p_url: p_url}; + }, + + _readPDFSelectedContent: function (stream, bDuplicate) { + let oPDFSelContent = null; + let fonts = []; + let arr_Images = []; + let oThis = this; + let oFontMap = {}; + + let readContent = function () { + let docContent = oThis.ReadPresentationText(stream); + if (docContent.length === 0) { + return; + } + oPDFSelContent.DocContent = new AscCommonWord.CSelectedContent(); + oPDFSelContent.DocContent.Elements = docContent; + + //перебираем шрифты + for (let i in oThis.oFonts) { + oFontMap[i] = 1; + } + + bIsEmptyContent = false; + }; + + let readDrawings = function () { + + if (PasteElementsId.g_bIsDocumentCopyPaste) { + History.TurnOff(); + } + // шейпы из презентаций, поэтому чтение то же самое + let objects = oThis.ReadPresentationShapes(stream); + if (PasteElementsId.g_bIsDocumentCopyPaste) { + History.TurnOn(); + } + + oPDFSelContent.Drawings = objects.arrShapes; + + let arr_shapes = objects.arrShapes; + for (let i = 0; i < arr_shapes.length; ++i) { + if (arr_shapes[i].Drawing.getAllFonts) { + arr_shapes[i].Drawing.getAllFonts(oFontMap); } - arr_Images = arr_Images.concat(objects.arrImages); - }; + } + arr_Images = arr_Images.concat(objects.arrImages); + }; - var bIsEmptyContent = true; - var first_content = stream.GetString2(); - if (first_content === "SelectedContent") { - var countContent = stream.GetULong(); - for (var i = 0; i < countContent; i++) { - if (null === oPDFContent) { - oPDFContent = new AscPDF.PDFSelectedContent(); - } - var first_string = stream.GetString2(); - if ("DocContent" !== first_string) { - bIsEmptyContent = false; - } + var bIsEmptyContent = true; + var first_content = stream.GetString2(); + if (first_content === "SelectedContent") { + var countContent = stream.GetULong(); + for (var i = 0; i < countContent; i++) { + if (null === oPDFSelContent) { + oPDFSelContent = window["AscPDF"] && window["AscPDF"].PDFSelectedContent ? new window["AscPDF"].PDFSelectedContent() : {}; + } + var first_string = stream.GetString2(); + if ("DocContent" !== first_string) { + bIsEmptyContent = false; + } - switch (first_string) { - case "DocContent": { - readContent(); - break; - } - case "Drawings": { - readDrawings(); - break; - } + switch (first_string) { + case "DocContent": { + readContent(); + break; + } + case "Drawings": { + readDrawings(); + break; } } } + } - if (bIsEmptyContent) { - oPDFContent = null; - } + if (bIsEmptyContent) { + oPDFSelContent = null; + } - return {content: oPDFContent, fonts: fonts, images: arr_Images}; - }, this, []); + for (var key in oFontMap) { + fonts.push(new CFont(key)); + } + + return {content: oPDFSelContent, fonts: fonts, images: arr_Images}; }, //from PRESENTATION to PRESENTATION @@ -5210,7 +5941,7 @@ PasteProcessor.prototype = //var arr_arrTransforms = []; for (var i = 0; i < slide_count; ++i) { - if (PasteElementsId.g_bIsDocumentCopyPaste) { + if (PasteElementsId.g_bIsDocumentCopyPaste || PasteElementsId.g_bIsPDFCopyPaste) { loader.stream.GetUChar(); loader.stream.SkipRecord(); arr_slides[i] = null; @@ -5250,7 +5981,7 @@ PasteProcessor.prototype = var layouts = []; for (var i = 0; i < selected_layouts; ++i) { - if (PasteElementsId.g_bIsDocumentCopyPaste) { + if (PasteElementsId.g_bIsDocumentCopyPaste || PasteElementsId.g_bIsPDFCopyPaste) { loader.stream.GetUChar(); loader.stream.SkipRecord(); } else { @@ -5277,7 +6008,7 @@ PasteProcessor.prototype = var array = []; for (var i = 0; i < count; ++i) { - if (PasteElementsId.g_bIsDocumentCopyPaste) { + if (PasteElementsId.g_bIsDocumentCopyPaste || PasteElementsId.g_bIsPDFCopyPaste) { loader.stream.GetUChar(); loader.stream.SkipRecord(); } else { @@ -5301,7 +6032,7 @@ PasteProcessor.prototype = var notes = []; for (var i = 0; i < selected_notes; ++i) { - if (PasteElementsId.g_bIsDocumentCopyPaste) { + if (PasteElementsId.g_bIsDocumentCopyPaste || PasteElementsId.g_bIsPDFCopyPaste) { loader.stream.GetUChar(); loader.stream.SkipRecord(); } else { @@ -5324,7 +6055,7 @@ PasteProcessor.prototype = var array = []; for (var i = 0; i < count; ++i) { - if (PasteElementsId.g_bIsDocumentCopyPaste) { + if (PasteElementsId.g_bIsDocumentCopyPaste || PasteElementsId.g_bIsPDFCopyPaste) { loader.stream.GetUChar(); loader.stream.SkipRecord(); } else { @@ -5510,6 +6241,22 @@ PasteProcessor.prototype = for (var key in oFontMap) { fonts.push(new CFont(key)); } + let dPresW = presentationSelectedContent.PresentationWidth; + let dPresH = presentationSelectedContent.PresentationHeight; + if(AscFormat.isRealNumber(dPresW) && AscFormat.isRealNumber(dPresH)) { + let aMasters = presentationSelectedContent.Masters; + if(Array.isArray(aMasters)) { + for(let nIdx = 0; nIdx < aMasters.length; ++nIdx) { + aMasters[nIdx].setSlideSize(dPresW, dPresH); + } + } + let aLayouts = presentationSelectedContent.Layouts; + if(Array.isArray(aLayouts)) { + for(let nIdx = 0; nIdx < aLayouts.length; ++nIdx) { + aLayouts[nIdx].setSlideSize(dPresW, dPresH); + } + } + } } if (bIsEmptyContent) { presentationSelectedContent = null; @@ -5690,100 +6437,103 @@ PasteProcessor.prototype = let aShapes = [], aImages = [], aTables = []; let fExecutePastePDF = function () { - //prepare content - //remove single shape with empty content - if (aShapes.length === 1) { - let oFirstShape = aShapes[0]; - let oTxBody = oFirstShape.txBody; - if(oTxBody) { - let oDocContent = oTxBody.content; - if(!oDocContent || oDocContent.IsEmpty()) { - aShapes.length = 0; + //prepare content + AscCommon.ExecuteNoHistory(function() { + //remove single shape with empty content + if (aShapes.length === 1) { + let oFirstShape = aShapes[0]; + let oTxBody = oFirstShape.txBody; + if(oTxBody) { + let oDocContent = oTxBody.content; + if(!oDocContent || oDocContent.IsEmpty()) { + aShapes.length = 0; + } } } - } - for (let nSp = 0; nSp < aShapes.length; ++nSp) { - let oSp = aShapes[nSp]; - oSp.bDeleted = false; - let oTxBody = oSp.txBody; - let oTxContent = oTxBody.content; - let aTxContent = oTxContent.Content; - if (aTxContent.length > 1) { - let oFirstElement = aTxContent[0]; - if(oFirstElement.IsEmpty()) { - oTxContent.Internal_Content_Remove(0, 1); + for (let nSp = 0; nSp < aShapes.length; ++nSp) { + let oSp = aShapes[nSp]; + oSp.bDeleted = false; + let oTxBody = oSp.txBody; + let oTxContent = oTxBody.content; + let aTxContent = oTxContent.Content; + if (aTxContent.length > 1) { + let oFirstElement = aTxContent[0]; + if(oFirstElement.IsEmpty()) { + oTxContent.Internal_Content_Remove(0, 1); + } } + let dWidth, dHeight; + dWidth = oTxBody.getRectWidth(nPageW * 2 / 3); + dHeight = oTxContent.GetSummaryHeight(); + AscFormat.CheckSpPrXfrm(oSp); + let oXfrm = oSp.spPr.xfrm; + oXfrm.setExtX(dWidth); + oXfrm.setExtY(dHeight); + oXfrm.setOffX(0); + oXfrm.setOffY(0); + + let oBodyPr = oSp.getBodyPr().createDuplicate(); + oBodyPr.rot = 0; + oBodyPr.spcFirstLastPara = false; + oBodyPr.vertOverflow = AscFormat.nVOTOverflow; + oBodyPr.horzOverflow = AscFormat.nHOTOverflow; + oBodyPr.vert = AscFormat.nVertTThorz; + oBodyPr.setDefaultInsets(); + oBodyPr.numCol = 1; + oBodyPr.spcCol = 0; + oBodyPr.rtlCol = 0; + oBodyPr.fromWordArt = false; + oBodyPr.anchor = 4; + oBodyPr.anchorCtr = false; + oBodyPr.forceAA = false; + oBodyPr.compatLnSpc = true; + oBodyPr.prstTxWarp = AscFormat.CreatePrstTxWarpGeometry("textNoShape"); + oBodyPr.textFit = new AscFormat.CTextFit(); + oBodyPr.textFit.type = AscFormat.text_fit_Auto; + oSp.txBody.setBodyPr(oBodyPr); + oSp.txBody.content.MoveCursorToEndPos(); + aCopyObjects.push(new AscPDF.DrawingCopyObject(oSp, 0, 0, dWidth, dHeight)); + } + + for (let nTable = 0; nTable < aTables.length; ++nTable) { + let oTableFrame = aTables[nTable]; + oTableFrame.bDeleted = false; + let dWidth = nPageW * 2 / 3; + let dHeight = 100; + //---------------- + AscFormat.CheckSpPrXfrm(oTableFrame); + let oXfrm = oTableFrame.spPr.xfrm; + + oTableFrame.applyDrawingSize({Width: nPageW * 2 / 3, Height: dHeight}); + oTableFrame.graphicObject.Set_TableW(tblwidth_Mm, nPageW * 2 / 3); + + oXfrm.setOffX(0); + oXfrm.setOffY(0); + aCopyObjects.push(new AscPDF.DrawingCopyObject(oTableFrame, 0, 0, dWidth, dHeight)); + } + + for (let nImage = 0; nImage < aImages.length; ++nImage) { + let oImage = aImages[nImage]; + oImage.bDeleted = false; + AscFormat.CheckSpPrXfrm(oImage); + let oXfrm = oImage.spPr.xfrm; + let dWidth = oXfrm.extX; + let dHeight = oXfrm.extY; + oXfrm.setOffX(0); + oXfrm.setOffY(0); + aCopyObjects.push(new AscPDF.DrawingCopyObject(oImage, 0, 0, dWidth, dHeight)); } - let dWidth, dHeight; - dWidth = oTxBody.getRectWidth(nPageW * 2 / 3); - dHeight = oTxContent.GetSummaryHeight(); - AscFormat.CheckSpPrXfrm(oSp); - let oXfrm = oSp.spPr.xfrm; - oXfrm.setExtX(dWidth); - oXfrm.setExtY(dHeight); - oXfrm.setOffX(0); - oXfrm.setOffY(0); - - let oBodyPr = oSp.getBodyPr().createDuplicate(); - oBodyPr.rot = 0; - oBodyPr.spcFirstLastPara = false; - oBodyPr.vertOverflow = AscFormat.nVOTOverflow; - oBodyPr.horzOverflow = AscFormat.nHOTOverflow; - oBodyPr.vert = AscFormat.nVertTThorz; - oBodyPr.setDefaultInsets(); - oBodyPr.numCol = 1; - oBodyPr.spcCol = 0; - oBodyPr.rtlCol = 0; - oBodyPr.fromWordArt = false; - oBodyPr.anchor = 4; - oBodyPr.anchorCtr = false; - oBodyPr.forceAA = false; - oBodyPr.compatLnSpc = true; - oBodyPr.prstTxWarp = AscFormat.CreatePrstTxWarpGeometry("textNoShape"); - oBodyPr.textFit = new AscFormat.CTextFit(); - oBodyPr.textFit.type = AscFormat.text_fit_Auto; - oSp.txBody.setBodyPr(oBodyPr); - oSp.txBody.content.MoveCursorToEndPos(); - aCopyObjects.push(new AscPDF.DrawingCopyObject(oSp, 0, 0, dWidth, dHeight)); - } - - for (let nTable = 0; nTable < aTables.length; ++nTable) { - let oTableFrame = aTables[nTable]; - oTableFrame.bDeleted = false; - let dWidth = nPageW * 2 / 3; - let dHeight = 100; - //---------------- - AscFormat.CheckSpPrXfrm(oTableFrame); - let oXfrm = oTableFrame.spPr.xfrm; - - oTableFrame.applyDrawingSize({Width: nPageW * 2 / 3, Height: dHeight}); - oTableFrame.graphicObject.Set_TableW(tblwidth_Mm, nPageW * 2 / 3); - - oXfrm.setOffX(0); - oXfrm.setOffY(0); - aCopyObjects.push(new AscPDF.DrawingCopyObject(oTableFrame, 0, 0, dWidth, dHeight)); - } - - for (let nImage = 0; nImage < aImages.length; ++nImage) { - let oImage = aImages[nImage]; - oImage.bDeleted = false; - AscFormat.CheckSpPrXfrm(oImage); - let oXfrm = oImage.spPr.xfrm; - let dWidth = oXfrm.extX; - let dHeight = oXfrm.extY; - oXfrm.setOffX(0); - oXfrm.setOffY(0); - aCopyObjects.push(new AscPDF.DrawingCopyObject(oImage, 0, 0, dWidth, dHeight)); - } - + }); //INSERT CONTENT let oController = oDoc.GetController(); let oTargetContent = oController && oController.getTargetDocContent(); let oSelectedContent = new AscPDF.PDFSelectedContent(); + let oPasteHelper = window['AscCommon'].g_specialPasteHelper; + if (oTargetContent && aCopyObjects.length === 1 && aImages.length === 0 && aTables.length === 0) { oSelectedContent.DocContent = new AscCommonWord.CSelectedContent(); @@ -5793,10 +6543,10 @@ PasteProcessor.prototype = oSelectedContent.DocContent.Elements.push(oSelElement); }); - oDoc.InsertContent(oSelectedContent); + oDoc.InsertContent2([oSelectedContent], 0); } else { oSelectedContent.Drawings = aCopyObjects; - let bPaste = oDoc.InsertContent(oSelectedContent); + let bPaste = oDoc.InsertContent2([oSelectedContent], 0); //check only images let bOnlyImg = false; @@ -5811,8 +6561,6 @@ PasteProcessor.prototype = } } } - let oPasteHelper = window['AscCommon'].g_specialPasteHelper; - oPasteHelper.Paste_Process_End(); } if (false === oThis.bNested) { @@ -5820,14 +6568,18 @@ PasteProcessor.prototype = oThis.pasteCallback(); } } + + oPasteHelper.Paste_Process_End(); }; - let oShape = new AscPDF.CPdfShape(); - oShape.setParent(oDoc); - oShape.setTxBody(AscFormat.CreateTextBodyFromString("", oDoc.DrawingDocument, oShape)); - aShapes.push(oShape); + AscCommon.ExecuteNoHistory(function() { + let oShape = new AscPDF.CPdfShape(); + oShape.setParent(oDoc); + oShape.setTxBody(AscFormat.CreateTextBodyFromString("", oDoc.DrawingDocument, oShape)); + aShapes.push(oShape); - oThis._Execute(node, {}, true, true, false, aShapes, aImages, aTables); + oThis._Execute(node, {}, true, true, false, aShapes, aImages, aTables); + }); if (!fonts) { fonts = []; @@ -5835,6 +6587,7 @@ PasteProcessor.prototype = if (!images) { images = []; } + oAPI.pre_Paste(fonts, images, fExecutePastePDF); }; @@ -6029,6 +6782,75 @@ PasteProcessor.prototype = oThis.api.pre_Paste([], [], executePasteWord); }; + + let textToPDFContent = function(text) { + text = text.replace(/^(\r|\t)+|(\r|\t)+$/g, ''); + if (!text || !text.length) + return; + + let addParagraph = false; + let paragraph = new AscWord.Paragraph(null, true); + oThis.aContent.push(paragraph); + + let run = new AscWord.Run(); + let inRunPos = 0; + paragraph.AddToContent(0, run); + + for (let oIterator = text.getUnicodeIterator(); oIterator.check(); oIterator.next()) { + if (addParagraph) { + paragraph = new AscWord.Paragraph(null, true); + oThis.aContent.push(paragraph); + run = new AscWord.Run(); + paragraph.AddToContent(0, run); + addParagraph = false; + inRunPos = 0; + } + + let codePoint = oIterator.value(); + if (null === codePoint || 0x0D === codePoint) + continue; + + if (0x0A === codePoint) + addParagraph = true; + else + run.AddToContent(inRunPos++, AscWord.codePointToRunElement(codePoint), true); + } + } + + let textToPresentationContent = function(text, docContent) { + text = text.replace(/^(\r|\t)+|(\r|\t)+$/g, ''); + if (!text || !text.length) + return; + + oThis.oDocument = docContent; + + let addParagraph = false; + let paragraph = docContent.GetElement(0); + + let run = new AscWord.Run(); + let inRunPos = 0; + paragraph.AddToContent(0, run); + + for (var oIterator = text.getUnicodeIterator(); oIterator.check(); oIterator.next()) { + if (addParagraph) { + paragraph = new AscWord.Paragraph(null, docContent.bPresentation === true); + docContent.PushToContent(paragraph); + run = new AscWord.Run(); + paragraph.AddToContent(0, run); + addParagraph = false; + inRunPos = 0; + } + + let codePoint = oIterator.value(); + if (null === codePoint || 0x0D === codePoint) + continue; + + if (0x0A === codePoint) + addParagraph = true; + else + run.AddToContent(inRunPos++, AscWord.codePointToRunElement(codePoint), true); + } + } var fPasteTextPresentationCallback = function () { var executePastePresentation = function () { @@ -6043,47 +6865,9 @@ PasteProcessor.prototype = shape.setParent(presentation.Slides[presentation.CurPage]); shape.setTxBody(AscFormat.CreateTextBodyFromString("", presentation.DrawingDocument, shape)); oThis.aContent = shape.txBody.content.Content; - - text = text.replace(/^(\r|\t)+|(\r|\t)+$/g, ''); - if (text.length > 0) { - //TODO: May be use CDocumentContent.AddText instead - var oContent = shape.txBody.content; - oThis.oDocument = oContent; - var bAddParagraph = false; - var oCurParagraph = oContent.Content[0]; - var oCurRun = new ParaRun(oCurParagraph, false); - var nCharPos = 0; - oCurParagraph.Internal_Content_Add(0, oCurRun); - for (var oIterator = text.getUnicodeIterator(); oIterator.check(); oIterator.next()) { - if (bAddParagraph) { - oCurParagraph = new AscWord.Paragraph(oContent, oContent.bPresentation === true); - oContent.Internal_Content_Add(oContent.Content.length, oCurParagraph); - oCurRun = new ParaRun(oCurParagraph, false); - oCurParagraph.Internal_Content_Add(0, oCurRun); - bAddParagraph = false; - nCharPos = 0; - } - var nUnicode = oIterator.value(); - if(null !== nUnicode) { - if (null !== nUnicode && 13 !== nUnicode) { - if (0x0A === nUnicode || 0x0D === nUnicode) { - bAddParagraph = true; - } - else if (9 === nUnicode) // \t - oCurRun.AddToContent(nCharPos++, new AscWord.CRunTab(), true); - else if (10 === nUnicode) // \n - oCurRun.AddToContent(nCharPos++, new AscWord.CRunBreak(AscWord.break_Line), true); - else if (13 === nUnicode) // \r - continue; - else if (AscCommon.IsSpace(nUnicode)) // space - oCurRun.AddToContent(nCharPos++, new AscWord.CRunSpace(nUnicode), true); - else - oCurRun.AddToContent(nCharPos++, new AscWord.CRunText(nUnicode), true); - } - } - } - } - + + textToPresentationContent(text, shape.txBody.content); + var oTextPr = presentation.GetCalculatedTextPr(); shape.txBody.content.SetApplyToAll(true); var paraTextPr = new AscCommonWord.ParaTextPr(oTextPr); @@ -6093,8 +6877,42 @@ PasteProcessor.prototype = oThis.api.pre_Paste([], [], executePastePresentation); }; + let fPasteTextPDFCallback = function () { + let oDoc = Asc.editor.getPDFDoc(); + + let executePastePDF = function () { + let oPDFSelContent = new AscPDF.PDFSelectedContent(); + oPDFSelContent.DocContent = new AscCommonWord.CSelectedContent(); + for (let i = 0, length = oThis.aContent.length; i < length; ++i) { + let oSelectedElement = new AscCommonWord.CSelectedElement(); + + oSelectedElement.Element = oThis.aContent[i]; + oPDFSelContent.DocContent.Elements[i] = oSelectedElement; + } + + oDoc.InsertContent2([oPDFSelContent], 0); + window['AscCommon'].g_specialPasteHelper.Paste_Process_End(); + + oThis.aContent = []; + }; + + oThis.aContent = []; + + AscCommon.ExecuteNoHistory(function() { + textToPDFContent(text); + let oParaTextPr = new AscCommonWord.ParaTextPr(oDoc.GetCalculatedTextPr()); + oThis.aContent.forEach(function(para) { + para.Add(oParaTextPr); + }); + }); + + oThis.api.pre_Paste([], [], executePastePDF); + }; + if (PasteElementsId.g_bIsDocumentCopyPaste) { fPasteTextWordCallback(); + } else if (PasteElementsId.g_bIsPDFCopyPaste) { + fPasteTextPDFCallback(); } else { fPasteTextPresentationCallback(); } @@ -6384,7 +7202,10 @@ PasteProcessor.prototype = } var table; - if (editor.WordControl.m_oLogicDocument && editor.WordControl.m_oLogicDocument.Slides) { + if (PasteElementsId.g_bIsPDFCopyPaste) { + table = this._createNewPDFTable(grid); + table.Set_TableStyle(editor.WordControl.m_oLogicDocument.DefaultTableStyleId) + } else if (editor.WordControl.m_oLogicDocument && editor.WordControl.m_oLogicDocument.Slides) { table = this._createNewPresentationTable(grid); table.Set_TableStyle(editor.WordControl.m_oLogicDocument.DefaultTableStyleId) } else { @@ -9753,20 +10574,20 @@ PasteProcessor.prototype = }*/ } - var computedStyle = this._getComputedStyle(tableBodyNode); + var computedStyle = this._getComputedStyle(tableNode); if (align_Left === table.Get_TableAlign()) { - var margin_left = this._getStyle(tableBodyNode, computedStyle, "margin-left"); + var margin_left = this._getStyle(tableNode, computedStyle, "margin-left"); //todo возможно надо еще учесть ширину таблицы if (margin_left && null != (margin_left = AscCommon.valueToMm(margin_left)) && margin_left < Page_Width - X_Left_Margin) table.Set_TableInd(margin_left); } - var background_color = this._getStyle(tableBodyNode, computedStyle, "background-color"); + var background_color = this._getStyle(tableNode, computedStyle, "background-color"); if (null != background_color && (background_color = this._ParseColor(background_color))) table.Set_TableShd(c_oAscShdClear, background_color.r, background_color.g, background_color.b); - var oLeftBorder = this._ExecuteBorder(computedStyle, tableBodyNode, "left", "Left", bPresentation); + var oLeftBorder = this._ExecuteBorder(computedStyle, tableNode, "left", "Left", bPresentation); if (null != oLeftBorder) table.Set_TableBorder_Left(oLeftBorder); - var oTopBorder = this._ExecuteBorder(computedStyle, tableBodyNode, "top", "Top", bPresentation); + var oTopBorder = this._ExecuteBorder(computedStyle, tableNode, "top", "Top", bPresentation); if (null != oTopBorder) table.Set_TableBorder_Top(oTopBorder); var oRightBorder = this._ExecuteBorder(computedStyle, tableBodyNode, "right", "Right", bPresentation); @@ -9977,16 +10798,16 @@ PasteProcessor.prototype = } var border = this._ExecuteBorder(computedStyle, node, "left", "Left", bAddIfNull, !PasteElementsId.g_bIsDocumentCopyPaste); - if (null != border) + if (null != border && border.Value !== border_None) cell.Set_Border(border, 3); border = this._ExecuteBorder(computedStyle, node, "top", "Top", bAddIfNull, !PasteElementsId.g_bIsDocumentCopyPaste); - if (null != border) + if (null != border && border.Value !== border_None) cell.Set_Border(border, 0); border = this._ExecuteBorder(computedStyle, node, "right", "Right", bAddIfNull, !PasteElementsId.g_bIsDocumentCopyPaste); - if (null != border) + if (null != border && border.Value !== border_None) cell.Set_Border(border, 1); border = this._ExecuteBorder(computedStyle, node, "bottom", "Bottom", bAddIfNull, !PasteElementsId.g_bIsDocumentCopyPaste); - if (null != border) + if (null != border && border.Value !== border_None) cell.Set_Border(border, 2); var top = this._getStyle(node, computedStyle, "padding-top"); diff --git a/common/workerspeech.js b/common/workerspeech.js index cf86b9752f..375d58e9fb 100644 --- a/common/workerspeech.js +++ b/common/workerspeech.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -150,7 +150,8 @@ this.speechElement.setAttribute("role", "region"); this.speechElement.setAttribute("aria-label", ""); this.speechElement.setAttribute("aria-live", "assertive"); - this.speechElement.setAttribute("aria-atomic", "true"); + if (!(AscCommon.AscBrowser.isMozilla && AscCommon.AscBrowser.isWindows)) + this.speechElement.setAttribute("aria-atomic", "true"); this.speechElement.setAttribute("aria-hidden", "false"); //AscCommon.g_inputContext.HtmlArea.setAttribute("aria-describedby", "area_id_screen_reader"); @@ -481,6 +482,7 @@ this.onApplyChanges = null; this.onBeforeUndoRedo = null; this.onUndoRedo = null; + this.onCloseFile = null; this.selectionState = null; this.isAction = false; @@ -519,6 +521,7 @@ this.editor.asc_registerCallback('asc_onUndoRedo', this.onUndoRedo); this.editor.asc_registerCallback('asc_onBeforeUndoRedoInCollaboration', this.onBeforeUndoRedo); this.editor.asc_registerCallback('asc_onUndoRedoInCollaboration', this.onUndoRedo); + this.editor.asc_registerCallback('asc_onCloseFile', this.onCloseFile); //se this.editor.asc_registerCallback('asc_onActiveSheetChanged', this.onActiveSheetChanged); @@ -546,6 +549,9 @@ this.editor.asc_unregisterCallback('asc_onApplyChanges', this.onApplyChanges); this.editor.asc_unregisterCallback('asc_onBeforeUndoRedo', this.onBeforeUndoRedo); this.editor.asc_unregisterCallback('asc_onUndoRedo', this.onUndoRedo); + this.editor.asc_unregisterCallback('asc_onBeforeUndoRedoInCollaboration', this.onBeforeUndoRedo); + this.editor.asc_unregisterCallback('asc_onUndoRedoInCollaboration', this.onUndoRedo); + this.editor.asc_unregisterCallback('asc_onCloseFile', this.onCloseFile); //se this.editor.asc_unregisterCallback('asc_onActiveSheetChanged', this.onActiveSheetChanged); @@ -628,6 +634,11 @@ _t.handleSpeechDescription({type: SpeakerActionType.sheetChange, index : index}); }; + this.onCloseFile = function() + { + _t.resetState(); + }; + }; EditorActionSpeaker.prototype.handleSpeechDescription = function(action) { @@ -649,6 +660,10 @@ { this.selectionState = this.editor.getSelectionState(); }; + EditorActionSpeaker.prototype.resetState = function() + { + this.selectionState = null; + }; window.AscCommon.EditorActionSpeaker = new EditorActionSpeaker(); window.AscCommon.SpeakerActionType = SpeakerActionType; diff --git a/common/zlib/engine/zlib.js b/common/zlib/engine/zlib.js index 25112f0444..53ec97e130 100644 --- a/common/zlib/engine/zlib.js +++ b/common/zlib/engine/zlib.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/zlib/engine/zlib_ie.js b/common/zlib/engine/zlib_ie.js index 51acdb65b0..84a98c49fc 100644 --- a/common/zlib/engine/zlib_ie.js +++ b/common/zlib/engine/zlib_ie.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/common/zlib/zlib.js b/common/zlib/zlib.js index ef6f115954..8c6900a7d2 100644 --- a/common/zlib/zlib.js +++ b/common/zlib/zlib.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/configs/cell.json b/configs/cell.json index a6ad9ae40c..5a639b4464 100644 --- a/configs/cell.json +++ b/configs/cell.json @@ -46,7 +46,9 @@ "common/api/autoCorrectSettings.js", "common/api/firstLetterExceptions.js", "common/api/restrictionSettings.js", - + + "common/collaboration/deleted-text-recovery.js", + "common/nameMap.js", "common/downloaderfiles.js", "common/NumFormat.js", @@ -100,8 +102,11 @@ "common/Drawings/Format/Image.js", "common/Drawings/Format/GroupShape.js", "common/Drawings/Format/Data.js", + "common/SmartArts/DefaultStructures.js", + "common/SmartArts/SmartArtTree.js", "common/Drawings/Format/ChartSpace.js", "common/Drawings/Format/ChartFormat.js", + "common/Drawings/Format/ChartEx.js", "common/Drawings/Format/TextBody.js", "common/Charts/charts.js", "common/Charts/DrawingArea.js", @@ -197,6 +202,7 @@ "common/Drawings/Format/SlicerView.js", "cell/model/PivotTables.js", + "word/Editor/Paragraph/RunContent/Types.js", "word/Math/mathTypes.js", "word/Editor/Styles.js", "word/Math/math-settings.js", @@ -209,13 +215,15 @@ "word/Editor/Paragraph/Run/RunAutoCorrect.js", "word/Editor/DocumentContentElementBase.js", "word/Editor/ParagraphContentBase.js", + "word/Editor/annotations/perm-ranges-manager.js", + "word/Editor/annotations/annotation-mark-base.js", + "word/Editor/annotations/paragraph-perm.js", "word/Editor/Bookmarks.js", "word/Editor/Comments.js", "word/Editor/CommentsChanges.js", "word/Editor/StylesChanges.js", "word/Editor/RevisionsChange.js", "word/Editor/FlowObjects.js", - "word/Editor/Paragraph/RunContent/Types.js", "word/Editor/Paragraph/RunContent/Base.js", "word/Editor/Paragraph/RunContent/FootnoteReference.js", "word/Editor/Paragraph/RunContent/FootnoteRef.js", @@ -246,6 +254,8 @@ "word/Editor/Paragraph/ComplexFieldInstruction.js", "word/Editor/Paragraph/ComplexFields/Addin.js", "word/Editor/Paragraph/ComplexFields/AddinData.js", + "word/Editor/Paragraph/ComplexFields/ffdata.js", + "word/Editor/Paragraph/ComplexFields/formcheckbox.js", "word/Editor/Paragraph/ComplexFields/FormText.js", "word/Editor/Paragraph/ComplexFields/MergeField.js", "word/Editor/Paragraph/ComplexFields/ref.js", diff --git a/configs/slide.json b/configs/slide.json index 5ca664cef0..395f767e04 100644 --- a/configs/slide.json +++ b/configs/slide.json @@ -44,7 +44,9 @@ "common/api/autoCorrectSettings.js", "common/api/firstLetterExceptions.js", "common/api/restrictionSettings.js", - + + "common/collaboration/deleted-text-recovery.js", + "common/nameMap.js", "common/downloaderfiles.js", "common/NumFormat.js", @@ -98,8 +100,11 @@ "common/Drawings/Format/Image.js", "common/Drawings/Format/GroupShape.js", "common/Drawings/Format/Data.js", + "common/SmartArts/DefaultStructures.js", + "common/SmartArts/SmartArtTree.js", "common/Drawings/Format/ChartSpace.js", "common/Drawings/Format/ChartFormat.js", + "common/Drawings/Format/ChartEx.js", "common/Drawings/Format/TextBody.js", "slide/Editor/Format/TextBodyPrototype.js", "common/Drawings/Format/GraphicFrame.js", @@ -145,8 +150,10 @@ "cell/model/Workbook.js", "cell/model/Serialize.js", "cell/model/CellInfo.js", + "cell/model/HeaderFooter.js", "cell/view/DrawingObjectsController.js", + "word/Editor/Paragraph/RunContent/Types.js", "word/Math/mathTypes.js", "word/Editor/Styles.js", "word/Math/math-settings.js", @@ -209,7 +216,6 @@ "slide/Editor/Format/Notes.js", "word/Editor/StylesChanges.js", "word/Editor/RevisionsChange.js", - "word/Editor/Paragraph/RunContent/Types.js", "word/Editor/Paragraph/RunContent/Base.js", "word/Editor/Paragraph/RunContent/FootnoteReference.js", "word/Editor/Paragraph/RunContent/FootnoteRef.js", @@ -241,6 +247,8 @@ "word/Editor/Paragraph/ComplexFieldInstruction.js", "word/Editor/Paragraph/ComplexFields/Addin.js", "word/Editor/Paragraph/ComplexFields/AddinData.js", + "word/Editor/Paragraph/ComplexFields/ffdata.js", + "word/Editor/Paragraph/ComplexFields/formcheckbox.js", "word/Editor/Paragraph/ComplexFields/FormText.js", "word/Editor/Paragraph/ComplexFields/MergeField.js", "word/Editor/Paragraph/ComplexFields/ref.js", diff --git a/configs/word.json b/configs/word.json index ba387d5591..3d8dc7f3d9 100644 --- a/configs/word.json +++ b/configs/word.json @@ -26,6 +26,7 @@ "common/collaborativeHistory.js", "common/CollaborativeEditingBase.js", "word/Editor/CollaborativeEditing.js", + "pdf/src/CollaborativeEditing.js", "common/macros.js", "common/apiBase.js", "common/apiBase_plugins.js", @@ -47,7 +48,9 @@ "common/api/autoCorrectSettings.js", "common/api/firstLetterExceptions.js", "common/api/restrictionSettings.js", - + + "common/collaboration/deleted-text-recovery.js", + "common/nameMap.js", "common/downloaderfiles.js", "common/NumFormat.js", @@ -101,8 +104,11 @@ "common/Drawings/Format/Image.js", "common/Drawings/Format/GroupShape.js", "common/Drawings/Format/Data.js", + "common/SmartArts/DefaultStructures.js", + "common/SmartArts/SmartArtTree.js", "common/Drawings/Format/ChartSpace.js", "common/Drawings/Format/ChartFormat.js", + "common/Drawings/Format/ChartEx.js", "common/Drawings/Format/TextBody.js", "common/Charts/charts.js", "common/Charts/DrawingObjects.js", @@ -147,7 +153,9 @@ "cell/model/Workbook.js", "cell/model/Serialize.js", "cell/model/CellInfo.js", + "cell/model/HeaderFooter.js", + "word/Editor/Paragraph/RunContent/Types.js", "word/Math/mathTypes.js", "word/Editor/Styles.js", "word/Math/math-settings.js", @@ -172,11 +180,13 @@ "word/Editor/ParagraphContentBase.js", "word/Editor/Comments.js", "word/Editor/CommentsChanges.js", + "word/Editor/annotations/perm-ranges-manager.js", + "word/Editor/annotations/annotation-mark-base.js", + "word/Editor/annotations/paragraph-perm.js", "word/Editor/Bookmarks.js", "word/Editor/StylesChanges.js", "word/Editor/RevisionsChange.js", "word/Editor/FlowObjects.js", - "word/Editor/Paragraph/RunContent/Types.js", "word/Editor/Paragraph/RunContent/Base.js", "word/Editor/Paragraph/RunContent/FootnoteReference.js", "word/Editor/Paragraph/RunContent/FootnoteRef.js", @@ -207,6 +217,8 @@ "word/Editor/Paragraph/ComplexFieldInstruction.js", "word/Editor/Paragraph/ComplexFields/Addin.js", "word/Editor/Paragraph/ComplexFields/AddinData.js", + "word/Editor/Paragraph/ComplexFields/ffdata.js", + "word/Editor/Paragraph/ComplexFields/formcheckbox.js", "word/Editor/Paragraph/ComplexFields/FormText.js", "word/Editor/Paragraph/ComplexFields/MergeField.js", "word/Editor/Paragraph/ComplexFields/ref.js", @@ -310,6 +322,7 @@ "word/Editor/GlossaryDocumentChanges.js", "word/Editor/DocumentProtection.js", "word/Editor/Comparison.js", + "word/Editor/InsertDocumentFile.js", "word/Editor/Revisions/TrackRevisionsManager.js", "word/Editor/Merge.js", @@ -319,6 +332,7 @@ "word/Drawing/cachemanager.js", "word/Drawing/stylespainter.js", + "word/Drawing/DrawingDocumentInterface.js", "word/Drawing/DrawingDocument.js", "word/Drawing/GraphicsEvents.js", "word/Drawing/Rulers.js", @@ -345,6 +359,7 @@ "pdf/src/forms/textBoxContent.js", "pdf/src/drawings/drawingPrototype.js", "pdf/src/drawings/shape.js", + "pdf/src/drawings/cnxShape.js", "pdf/src/drawings/image.js", "pdf/src/drawings/chart.js", "pdf/src/drawings/graphicFrame.js", diff --git a/pdf/api.js b/pdf/api.js index e0cfe5d254..23c6e55c49 100644 --- a/pdf/api.js +++ b/pdf/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -51,6 +51,9 @@ this.DocumentType = 1; this.compositeInput = null; + this.isPdfViewer = false; // Было решено, что флаг isViewMode присылается всегда false, т.к. пдф всегда + // можно редактировать (во вьювере заполнять поля, например) + // Данный флаг различает в каком режиме загружен документ (edit/view) } PDFEditorApi.prototype = Object.create(AscCommon.DocumentEditorApi.prototype); @@ -59,8 +62,7 @@ PDFEditorApi.prototype.openDocument = function(file) { let perfStart = performance.now(); - this.isOnlyReaderMode = false; - this.ServerIdWaitComplete = true; + this.isOnlyReaderMode = false; window["AscViewer"]["baseUrl"] = (typeof document !== 'undefined' && document.currentScript) ? "" : "./../../../../sdkjs/pdf/src/engine/"; window["AscViewer"]["baseEngineUrl"] = "./../../../../sdkjs/pdf/src/engine/"; @@ -73,8 +75,14 @@ if (AscCommon.g_inputContext) AscCommon.g_inputContext.onResize(this.HtmlElementName); - if (this.isMobileVersion) - this.WordControl.initEventsMobile(); + this.WordControl.initEventsMobile(); + this.DocumentRenderer.touchManager = this.WordControl.MobileTouchManager; + + if (undefined !== this.startMobileOffset) + { + this.WordControl.setOffsetTop(this.startMobileOffset.offset, this.startMobileOffset.offsetScrollTop); + delete this.startMobileOffset; + } // destroy unused memory let isEditForms = true; @@ -112,9 +120,9 @@ }; PDFEditorApi.prototype.AddTextArt = function(nStyle) { let oDoc = this.getPDFDoc(); - oDoc.CreateNewHistoryPoint(); - oDoc.AddTextArt(nStyle, this.getDocumentRenderer().currentPage); - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + oDoc.AddTextArt(nStyle, this.getDocumentRenderer().currentPage); + }, AscDFH.historydescription_Document_AddTextArt, this); }; PDFEditorApi.prototype["asc_setViewerThumbnailsZoom"] = function(value) { if (this.haveThumbnails()) @@ -153,6 +161,76 @@ "H": 25.4 * page.H / page.Dpi } }; + PDFEditorApi.prototype["asc_nativeOpenFile"] = function(data, version) { + this.SpellCheckUrl = ''; + + this.User = new AscCommon.asc_CUser(); + this.User.setId("TM"); + this.User.setUserName("native"); + + this.WordControl.m_bIsRuler = false; + this.WordControl.Init(); + + this.initDocumentRenderer(); + this.DocumentType = 2; + + AscCommon.g_oIdCounter.Set_Load(true); + + if (undefined !== version) + AscCommon.CurFileVersion = version; + + let viewer = this.DocumentRenderer; + viewer.file = window["AscViewer"].createFile(data); + + if (viewer.file) + { + viewer.SearchResults = viewer.file.SearchResults; + viewer.file.viewer = viewer; + } + + viewer.afterOpen(); + + AscCommon.g_oIdCounter.Set_Load(false); + this.LoadedObject = 1; + + if (window["NATIVE_EDITOR_ENJINE"] === true && undefined != window["native"]) + { + AscCommon.CDocsCoApi.prototype.askSaveChanges = function(callback) + { + callback({"saveLock" : false}); + }; + AscCommon.CDocsCoApi.prototype.saveChanges = function(arrayChanges, deleteIndex, excelAdditionalInfo) + { + if (window["native"]["SaveChanges"]) + window["native"]["SaveChanges"](arrayChanges.join("\",\""), deleteIndex, arrayChanges.length); + }; + } + }; + PDFEditorApi.prototype["asc_nativeCalculateFile"] = function() { + let pdfDoc = this.getPDFDoc(); + if (!pdfDoc) + return; + + pdfDoc.RecalculateAll(); + }; + PDFEditorApi.prototype["asc_nativePrintPagesCount"] = function() + { + // the result is unimportant + return 0; + }; + PDFEditorApi.prototype["asc_nativeGetPDF"] = function(options) + { + if (this.DocumentRenderer) + { + let result = this.DocumentRenderer.Save(); + if (!result) + return null; + window["native"]["Save_End"]("", result.length); + return result; + } + return null; + }; + PDFEditorApi.prototype.Undo = function() { var oDoc = this.getPDFDoc(); @@ -180,7 +258,7 @@ let oActiveDrawing = oDoc.activeDrawing; if (oActiveForm && oActiveForm.content.IsSelectionUse()) { - let sText = oActiveForm.content.GetSelectedText(false); + let sText = oActiveForm.content.GetSelectedText(false, {NewLine: true}); if (!sText) return; @@ -191,7 +269,7 @@ _clipboard.pushData(AscCommon.c_oAscClipboardDataFormat.Html, "

      " + sText + "

      "); } else if (oActiveAnnot && oActiveAnnot.IsFreeText() && oActiveAnnot.IsInTextBox()) { - let sText = oActiveAnnot.GetDocContent().GetSelectedText(false); + let sText = oActiveAnnot.GetDocContent().GetSelectedText(false, {NewLine: true}); if (!sText) return; @@ -247,7 +325,9 @@ let oDoc = this.DocumentRenderer.getPDFDoc(); if (oDoc.CanCopyCut().cut) { - oDoc.Remove(1); + oDoc.DoAction(function() { + oDoc.Remove(1); + }, AscDFH.historydescription_Cut); } }; PDFEditorApi.prototype.onUpdateRestrictions = function() { @@ -289,13 +369,18 @@ let oDoc = this.DocumentRenderer.getPDFDoc(); let data = typeof(text_data) == "string" ? text_data : data1; - let oActiveForm = oDoc.activeForm; - let oActiveAnnot = oDoc.mouseDownAnnot; let oActiveDrawing = oDoc.activeDrawing; + oDoc.StartAction(AscDFH.historydescription_Document_PasteHotKey); + this.needPasteText = false; // если не вставили бинарник, то вставляем текст // пока что копирование бинарником только внутри drawings или самих drawings - if ([AscCommon.c_oAscClipboardDataFormat.Internal, AscCommon.c_oAscClipboardDataFormat.HtmlElement].includes(_format) && ((oDoc.GetActiveObject() == null) || oActiveDrawing)) { + if ([AscCommon.c_oAscClipboardDataFormat.Internal, AscCommon.c_oAscClipboardDataFormat.HtmlElement, AscCommon.c_oAscClipboardDataFormat.Text].includes(_format) && ((oDoc.GetActiveObject() == null) || oActiveDrawing)) { + if (this.isRestrictionView()) { + oDoc.FinalizeAction(true) + return; + } + window['AscCommon'].g_specialPasteHelper.Paste_Process_Start(arguments[5]); AscCommon.Editor_Paste_Exec(this, _format, data1, data2, text_data, undefined, callback); } @@ -306,9 +391,6 @@ if (!this.needPasteText || typeof(data) != "string") return; - if (oActiveForm && (oActiveForm.GetType() != AscPDF.FIELD_TYPES.text || oActiveForm.IsMultiline() == false)) - data = data.trim().replace(/[\n\r]/g, ' '); - AscFonts.FontPickerByCharacter.checkText(data, this, processPaste); function processPaste() { @@ -316,18 +398,7 @@ for (let i = 0; i < data.length; i++) aChars.push(data[i].charCodeAt(0)); - if (oActiveForm && oActiveForm.IsCanEditText()) { - oActiveForm.EnterText(aChars); - oDoc.UpdateCopyCutState(); - } - else if (oActiveAnnot && oActiveAnnot.IsFreeText() && oActiveAnnot.IsInTextBox()) { - oActiveAnnot.EnterText(aChars); - oDoc.UpdateCopyCutState(); - } - else if (oActiveDrawing && oActiveDrawing.IsInTextBox()) { - oActiveDrawing.EnterText(aChars); - oDoc.UpdateCopyCutState(); - } + this.asc_enterText(aChars, true); } }; PDFEditorApi.prototype.asc_setAdvancedOptions = function(idOption, option) { @@ -452,7 +523,7 @@ PDFEditorApi.prototype.asc_getPdfProps = function() { return this.DocumentRenderer ? this.DocumentRenderer.getDocumentInfo() : null; }; - PDFEditorApi.prototype.asc_enterText = function(codePoints) { + PDFEditorApi.prototype.asc_enterText = function(codePoints, isFromPaste) { if (!this.DocumentRenderer) return false; @@ -468,19 +539,32 @@ return false; } + if (true != isFromPaste) { + doc.StartAction(AscDFH.historydescription_Document_AddLetter); + } + let docContent = textController.GetDocContent(); let result = textController.EnterText(codePoints); - if (null == drController.getTargetTextObject()) { - drController.selection.textSelection = textController; + if (null == drController.getTargetTextObject() && false == textController.IsForm()) { + if (textController.IsAnnot() && textController.IsFreeText()) { + drController.selection.groupSelection = textController; + textController.selection.textSelection = textController.GetTextBoxShape() + } + else { + drController.selection.textSelection = textController; + } } - drDoc.showTarget(true); - drDoc.TargetStart(); + drDoc.TargetStart(true); if (docContent.IsSelectionUse() && !docContent.IsSelectionEmpty()) drDoc.TargetEnd(); + if (true !== isFromPaste) { + doc.FinalizeAction(); + } + return result; }; PDFEditorApi.prototype.asc_createSmartArt = function (nSmartArtType, oPlaceholderObject) { @@ -492,24 +576,25 @@ return AscCommon.g_oBinarySmartArts.checkLoadData(nSmartArtType); }).then(function() { - oDoc.CreateNewHistoryPoint(); - let oSmartArt = oDoc.AddSmartArt(nSmartArtType, oPlaceholderObject, oViewer.currentPage); - oDoc.TurnOffHistory(); + let oSmartArt; + + oDoc.DoAction(function() { + oSmartArt = oDoc.AddSmartArt(nSmartArtType, oPlaceholderObject, oViewer.currentPage); + }, AscDFH.historydescription_Document_AddSmartArt); return oSmartArt; }); }; + PDFEditorApi.prototype.asc_undoAllChanges = function() {}; PDFEditorApi.prototype.asc_addChartDrawingObject = function(chartBinary, Placeholder) { let oDoc = this.getPDFDoc(); let oViewer = this.getDocumentRenderer(); - oDoc.CreateNewHistoryPoint(); - - AscFonts.IsCheckSymbols = true; - oDoc.AddChartByBinary(chartBinary, true, Placeholder, oViewer.currentPage); - AscFonts.IsCheckSymbols = false; - - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + AscFonts.IsCheckSymbols = true; + oDoc.AddChartByBinary(chartBinary, true, Placeholder, oViewer.currentPage); + AscFonts.IsCheckSymbols = false; + }, AscDFH.historydescription_Document_AddChart); }; PDFEditorApi.prototype.asc_correctEnterText = function(oldValue, newValue) { @@ -519,11 +604,13 @@ let viewer = this.DocumentRenderer; let doc = viewer.getPDFDoc(); - let textController = doc.getTextController(); - if (!textController) - return false; - - return textController.CorrectEnterText(oldValue, newValue); + return doc.DoAction(function() { + let textController = doc.getTextController(); + if (!textController) + return false; + + return textController.CorrectEnterText(oldValue, newValue); + }, AscDFH.historydescription_Document_AddLetter, this); }; PDFEditorApi.prototype.asc_EditPage = function() { let oViewer = this.getDocumentRenderer(); @@ -538,21 +625,22 @@ let nPos = bBefore ? oViewer.currentPage : oViewer.currentPage + 1; - oDoc.CreateNewHistoryPoint(); + oDoc.DoAction(function() { + let oPageToClone = bBefore ? oFile.pages[oViewer.currentPage] : (oFile.pages[oViewer.currentPage + 1] || oFile.pages[oViewer.currentPage]); + let oPage = { + fonts: [], + Rotate: 0, + Dpi: oPageToClone.Dpi, + W: oPageToClone.W, + H: oPageToClone.H + } - let oPageToClone = bBefore ? oFile.pages[oViewer.currentPage] : (oFile.pages[oViewer.currentPage + 1] || oFile.pages[oViewer.currentPage]); - let oPage = { - fonts: [], - Rotate: 0, - Dpi: oPageToClone.Dpi, - W: oPageToClone.W, - H: oPageToClone.H - } + oDoc.AddPage(nPos, oPage); + oDoc.FinalizeAction(); + + oViewer.navigateToPage(nPos); - oDoc.AddPage(nPos, oPage); - oDoc.TurnOffHistory(); - - oViewer.navigateToPage(nPos); + }, AscDFH.historydescription_Pdf_AddPage, this); }; PDFEditorApi.prototype.asc_RemovePage = function(nPage) { let oViewer = this.getDocumentRenderer(); @@ -560,28 +648,31 @@ nPage = nPage != undefined ? nPage : oViewer.currentPage; - oDoc.CreateNewHistoryPoint(); - oDoc.RemovePage(nPage); - oViewer.navigateToPage(nPage - 1 >= 0 ? nPage - 1 : 0); - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + oDoc.RemovePage(nPage); + oViewer.navigateToPage(nPage - 1 >= 0 ? nPage - 1 : 0); + oDoc.FinalizeAction(); + }, AscDFH.historydescription_Pdf_RemovePage, this); }; PDFEditorApi.prototype.asc_GetSelectedText = function(bClearText, select_Pr) { if (!this.DocumentRenderer) return ""; - + + bClearText = (bClearText === true); + let oDoc = this.getPDFDoc(); let oTxObject = oDoc.getTextController(); let textObj = {Text : ""}; if (oTxObject) { let oContent = oTxObject.GetDocContent(); - textObj.Text = oContent ? oContent.GetSelectedText(bClearText, select_Pr) : ""; + textObj.Text = oContent ? (oContent.GetSelectedText(bClearText, select_Pr) || "") : ""; } else { this.DocumentRenderer.Copy(textObj); } - if (textObj.Text.trim() === "") + if (!textObj.Text || textObj.Text.trim() === "") return ""; return textObj.Text; @@ -730,7 +821,7 @@ if (this.WordControl) // после показа диалога может не прийти mouseUp this.WordControl.m_bIsMouseLock = false; - AscCommon.ShowImageFileDialog(this.documentId, this.documentUserId, this.CoAuthoringApi.get_jwt(), this.documentShardKey, this.documentWopiSrc, function(error, files) + AscCommon.ShowImageFileDialog(this.documentId, this.documentUserId, this.CoAuthoringApi.get_jwt(), this.documentShardKey, this.documentWopiSrc, this.documentUserSessionId, function(error, files) { // ошибка может быть объектом в случае отмены добавления картинки в форму if (typeof(error) == "object") @@ -837,12 +928,18 @@ this.curMarkerType = value ? nType : undefined; let oDoc = this.getPDFDoc(); + let oActiveObj = oDoc.GetActiveObject(); let oViewer = oDoc.Viewer; let oDrDoc = oDoc.GetDrawingDocument(); if (value == true) { - oDoc.BlurActiveObject(); - oDoc.UpdateInterface(); + if (oActiveObj) { + oDoc.BlurActiveObject(); + oDoc.UpdateInterface(); + } + } + else { + oViewer.onUpdateOverlay(); } if (this.isMarkerFormat) { @@ -854,22 +951,21 @@ oDoc.bOffMarkerAfterUsing = true; } - oDoc.CreateNewHistoryPoint(); - oDrDoc.LockCursorType(AscCommon.Cursors.MarkerFormat); - - switch (this.curMarkerType) { - case AscPDF.ANNOTATIONS_TYPES.Highlight: - this.SetHighlight(r, g, b, opacity); - break; - case AscPDF.ANNOTATIONS_TYPES.Underline: - this.SetUnderline(r, g, b, opacity); - break; - case AscPDF.ANNOTATIONS_TYPES.Strikeout: - this.SetStrikeout(r, g, b, opacity); - break; - } - - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + oDrDoc.LockCursorType(AscCommon.Cursors.MarkerFormat); + + switch (this.curMarkerType) { + case AscPDF.ANNOTATIONS_TYPES.Highlight: + this.SetHighlight(r, g, b, opacity); + break; + case AscPDF.ANNOTATIONS_TYPES.Underline: + this.SetUnderline(r, g, b, opacity); + break; + case AscPDF.ANNOTATIONS_TYPES.Strikeout: + this.SetStrikeout(r, g, b, opacity); + break; + } + }, AscDFH.historydescription_Pdf_AddHighlightAnnot, this); } else { // SetMarkerFormat вызывается при включении ластика/рисовалки, курсор не сбрасываем @@ -881,6 +977,9 @@ oDoc.bOffMarkerAfterUsing = true; } }; + PDFEditorApi.prototype.IsCommentMarker = function() { + return this.curMarkerType !== undefined; + }; PDFEditorApi.prototype.get_PageWidth = function(nPage) { let oDoc = this.getPDFDoc(); @@ -890,19 +989,27 @@ let oDoc = this.getPDFDoc(); return oDoc.GetPageHeightEMU(); }; + PDFEditorApi.prototype.asc_SetFastCollaborative = function(isOn) + { + if (!AscCommon.CollaborativeEditing) + return; + + AscCommon.CollaborativeEditing.Set_Fast(isOn); + }; ///////////////////////////////////////////////////////////// ///////// For annots //////////////////////////////////////////////////////////// PDFEditorApi.prototype.AddFreeTextAnnot = function(nType) { let oDoc = this.getPDFDoc(); + oDoc.BlurActiveObject(); function addFreeText() { - oDoc.CreateNewHistoryPoint(); - oDoc.AddFreeTextAnnot(nType, oDoc.Viewer.currentPage); - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + oDoc.AddFreeTextAnnot(nType, oDoc.Viewer.currentPage); + }, AscDFH.historydescription_Pdf_AddAnnot, this); } - if (oDoc.checkDefaultFonts(addFreeText)) { + if (oDoc.checkFonts(["Arial"], addFreeText)) { addFreeText(); } }; @@ -1155,9 +1262,9 @@ //////////////////////////////////////////////////////////// PDFEditorApi.prototype.put_Table = function(col, row, placeholder, sStyleId) { let oDoc = this.getPDFDoc(); - oDoc.CreateNewHistoryPoint(); - oDoc.AddTable(col, row, sStyleId, editor.getDocumentRenderer().currentPage); - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + oDoc.AddTable(col, row, sStyleId, oDoc.GetCurPage()); + }, AscDFH.historydescription_Presentation_AddFlowTable, this); }; PDFEditorApi.prototype.tblApply = function(oPr) { let oDoc = this.getPDFDoc(); @@ -1202,10 +1309,12 @@ }; PDFEditorApi.prototype.remTable = function() { let oDoc = this.getPDFDoc(); - let oGrFrame = oDoc.SelectTable(c_oAscTableSelectionType.Table); + let oObject = oDoc.GetActiveObject(); - if (oGrFrame) { - oDoc.RemoveDrawing(oGrFrame.GetId()); + if (oObject && oObject.IsDrawing() && oObject.IsGraphicFrame()) { + oDoc.CreateNewHistoryPoint(); + oDoc.RemoveDrawing(oObject.GetId()); + oDoc.TurnOffHistory(); return true; } @@ -1243,6 +1352,15 @@ return oController.getPluginSelectionInfo(); }; + PDFEditorApi.prototype.SetShowTextSelectPanel = function(bShow) { + this.showTextSelectPanel = bShow; + + this.getPDFDoc().UpdateSelectionTrackPos(); + }; + PDFEditorApi.prototype.NeedShowTextSelectPanel = function() { + return this.showTextSelectPanel; + }; + ///////////////////////////////////////////////////////////// ///////// For text //////////////////////////////////////////////////////////// @@ -1356,37 +1474,21 @@ this.sync_PrPropCallback(oParaPr); }; PDFEditorApi.prototype.paraApply = function(Props) { - let oDoc = this.getPDFDoc(); - let oController = oDoc.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); + let oDoc = this.getPDFDoc(); + let oController = oDoc.GetController(); - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - oDoc.CreateNewHistoryPoint({objects: aObjects}); - let sLoadFont = null, sLoadText = null; let fCallback = function() { oController.paraApplyCallback(Props); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - oDoc.TurnOffHistory(); }; let oBullet = Props.asc_getBullet(); - if(oBullet) { + if (oBullet) { sLoadFont = oBullet.asc_getFont(); sLoadText = oBullet.asc_getSymbol(); } - if(typeof sLoadFont === "string" && sLoadFont.length > 0 + if (typeof sLoadFont === "string" && sLoadFont.length > 0 && typeof sLoadText === "string" && sLoadText.length > 0) { let loader = AscCommon.g_font_loader; let fontinfo = AscFonts.g_fontApplication.GetFontInfo(sLoadFont); @@ -1549,9 +1651,9 @@ } } if (arrImages.length) { - oDoc.CreateNewHistoryPoint(); - oDoc.AddImages(arrImages); - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + oDoc.AddImages(arrImages); + }, AscDFH.historydescription_Presentation_AddFlowImage) } } }, []); @@ -1618,10 +1720,12 @@ if (!oField) return; - oField.SelectOption(nIdx); - if (oField.IsCommitOnSelChange() && oField.IsNeedCommit()) { - oDoc.EnterDownActiveField(); - } + oDoc.DoAction(function() { + oField.SelectOption(nIdx); + if (oField.IsCommitOnSelChange() && oField.IsNeedCommit()) { + oDoc.EnterDownActiveField(); + } + }, AscDFH.historydescription_Pdf_FieldSelectOption, this); }; PDFEditorApi.prototype.SetDrawingFreeze = function(bIsFreeze) { @@ -1654,7 +1758,114 @@ window["AscDesktopEditor"]["onDocumentModifiedChanged"](bValue); } }; - PDFEditorApi.prototype._autoSaveInner = function() {}; + PDFEditorApi.prototype.CheckChangedDocument = function() { + if (true === AscCommon.History.Have_Changes()) { + this.SetDocumentModified(true); + } + else { + this.SetDocumentModified(false); + } + + this._onUpdateDocumentCanSave(); + }; + PDFEditorApi.prototype._autoSaveInner = function() { + let _curTime = new Date(); + let oDoc = this.getPDFDoc(); + let oHistory = oDoc.History; + + if (null === this.lastSaveTime) { + this.lastSaveTime = _curTime; + } + + if (AscCommon.CollaborativeEditing.Is_Fast() && !AscCommon.CollaborativeEditing.Is_SingleUser()) { + this.WordControl.m_oLogicDocument.Continue_FastCollaborativeEditing(); + } + else if (this.isLiveViewer()) { + if (AscCommon.CollaborativeEditing.Have_OtherChanges()) { + AscCommon.CollaborativeEditing.Apply_Changes(); + } + } + else { + let _bIsWaitScheme = false; + if (oHistory.Points && oHistory.Index >= 0 && oHistory.Index < oHistory.Points.length) { + if ((_curTime - oHistory.Points[oHistory.Index].Time) < this.intervalWaitAutoSave) { + _bIsWaitScheme = true; + } + } + + if (!_bIsWaitScheme) { + let _interval = (AscCommon.CollaborativeEditing.m_nUseType <= 0) ? this.autoSaveGapSlow : + this.autoSaveGapFast; + + if ((_curTime - this.lastSaveTime) > _interval) { + if (oHistory.Have_Changes(true) == true && oDoc.LocalHistory !== AscCommon.History) { + this.asc_Save(true); + } + this.lastSaveTime = _curTime; + } + } + } + }; + PDFEditorApi.prototype.asc_Save = function (isAutoSave, isIdle) { + let oDoc = this.getPDFDoc(); + if (!isAutoSave) + oDoc.BlurActiveObject(); + AscCommon.DocumentEditorApi.prototype.asc_Save.call(this, isAutoSave, isIdle); + }; + PDFEditorApi.prototype._coAuthoringInitEnd = function() { + AscCommon.DocumentEditorApi.prototype._coAuthoringInitEnd.call(this); + + let t = this; + this.CoAuthoringApi.onConnectionStateChanged = function(e) { + if (true === AscCommon.CollaborativeEditing.Is_Fast() && false === e['state']) { + t.WordControl.m_oLogicDocument.Remove_ForeignCursor(e['id']); + t.DocumentRenderer.onUpdateOverlay(); + } + t.sendEvent("asc_onConnectionStateChanged", e); + } + }; + PDFEditorApi.prototype._autoSave = function () { + + if (this.canSave + && (!this.isViewMode || this.isLiveViewer()) + && (this.canUnlockDocument || 0 !== this.autoSaveGap || AscCommon.CollaborativeEditing.Is_Fast())) + { + if (this.canUnlockDocument) { + this.lastSaveTime = new Date(); + // Check edit mode after unlock document http://bugzilla.onlyoffice.com/show_bug.cgi?id=35971 + // Close cell edit without errors (isIdle = true) + this.asc_Save(true, true); + } else { + this._autoSaveInner(); + } + } + }; + PDFEditorApi.prototype._haveChanges = function() { + let oDoc = this.getPDFDoc(); + return oDoc.History.Have_Changes(); + }; + PDFEditorApi.prototype.pre_Save = function(_images) { + this.isSaveFonts_Images = true; + this.saveImageMap = _images; + this.FontLoader.LoadDocumentFonts2([]); + }; + PDFEditorApi.prototype.asc_Print = function (options) { + let oDoc = this.getPDFDoc(); + oDoc.BlurActiveObject(); + oDoc.RecalculateAll(); + AscCommon.DocumentEditorApi.prototype.asc_Print.call(this, options); + }; + PDFEditorApi.prototype.asc_drawPrintPreview = function(index) { + let oDoc = this.getPDFDoc(); + oDoc.BlurActiveObject(); + AscCommon.DocumentEditorApi.prototype.asc_drawPrintPreview.call(this, index); + }; + PDFEditorApi.prototype.initCollaborativeEditing = function() { + if (AscCommon.CollaborativeEditing) + return; + + AscCommon.CollaborativeEditing = new AscPDF.CPDFCollaborativeEditing(); + }; PDFEditorApi.prototype.ChangeReaderMode = function() {}; PDFEditorApi.prototype.asc_getSelectedDrawingObjectsCount = function() { return this.WordControl.m_oLogicDocument.GetSelectedDrawingObjectsCount(); @@ -1737,13 +1948,13 @@ let oCommentData = new AscCommon.CCommentData(); oCommentData.Read_FromAscCommentData(AscCommentData); - oDoc.CreateNewHistoryPoint(); - let oComment = oDoc.AddComment(AscCommentData); - oDoc.TurnOffHistory(); + return oDoc.DoAction(function() { + let oComment = oDoc.AddComment(AscCommentData); - if (oComment) { - return oComment.GetId() - } + if (oComment) { + return oComment.GetId() + } + }, AscDFH.historydescription_Pdf_AddAnnot, this); }; PDFEditorApi.prototype.asc_showComments = function() { @@ -1872,9 +2083,9 @@ let oDoc = this.getPDFDoc(); let oThumbnails = oDoc.Viewer.Thumbnails; - oDoc.CreateNewHistoryPoint(); - oDoc.SetPageRotate(oThumbnails.selectPage, angle % 360); - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + oDoc.SetPageRotate(oThumbnails.selectPage, angle % 360); + }, AscDFH.historydescription_Pdf_RotatePage); }; PDFEditorApi.prototype.asc_GetPageRotate = function(nPage) { let oViewer = this.getDocumentRenderer(); @@ -1893,10 +2104,8 @@ let nNativeW = oViewer.file.pages[nPage].W; let nNativeH = oViewer.file.pages[nPage].H; let nPageRotate = oViewer.getPageRotate(nPage); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W; - let nCommentWidth = 40 * nScaleX; - let nCommentHeight = 40 * nScaleY; + let nCommentWidth = 40; + let nCommentHeight = 40; let oDoc = oViewer.getPDFDoc(); let oBasePos = { @@ -1986,7 +2195,9 @@ }; PDFEditorApi.prototype.asc_remove = function() { let oDoc = this.getPDFDoc(); - oDoc.Remove(1, false); + oDoc.DoAction(function() { + oDoc.Remove(1, false); + }, AscDFH.historydescription_Pdf_ContextMenuRemove); }; PDFEditorApi.prototype.asc_changeComment = function(Id, AscCommentData) { @@ -1994,11 +2205,12 @@ if (!oDoc) return; - oDoc.CreateNewHistoryPoint(); var CommentData = new AscCommon.CCommentData(); CommentData.Read_FromAscCommentData(AscCommentData); - oDoc.EditComment(Id, CommentData); - oDoc.TurnOffHistory(); + + oDoc.DoAction(function() { + oDoc.EditComment(Id, CommentData); + }, AscDFH.historydescription_Document_ChangeComment); }; PDFEditorApi.prototype.asc_selectComment = function(Id) { @@ -2090,9 +2302,10 @@ documentRenderer.registerEvent("onFileOpened", function() { _t.disableRemoveFonts = true; - _t.onDocumentContentReady(); - _t.bInit_word_control = true; - + + documentRenderer.isDocumentContentReady = true; + _t._openDocumentEndCallback(); + var thumbnailsDivId = "thumbnails-list"; if (document.getElementById(thumbnailsDivId)) { @@ -2103,7 +2316,6 @@ _t.sendEvent("asc_onViewerThumbnailsZoomUpdate", value); }); } - documentRenderer.isDocumentContentReady = true; }); documentRenderer.registerEvent("onHyperlinkClick", function(url){ _t.sendEvent("asc_onHyperlinkClick", url); @@ -2167,6 +2379,14 @@ oDoc.SearchEngine.Show = isShow; this.DocumentRenderer.onUpdateOverlay(); }; + PDFEditorApi.prototype.canEnterText = function() + { + return this.canEdit(); + }; + PDFEditorApi.prototype.asc_GetTableOfContentsPr = function() + { + return null; + }; PDFEditorApi.prototype._printDesktop = function(options) { if (!this.DocumentRenderer) return false; @@ -2181,50 +2401,72 @@ if (!window["AscDesktopEditor"]["IsCachedPdfCloudPrintFileInfo"]()) window["AscDesktopEditor"]["SetPdfCloudPrintFileInfo"](AscCommon.Base64.encode(viewer.getFileNativeBinary())); } - window["AscDesktopEditor"]["Print"](JSON.stringify(desktopOptions), viewer.savedPassword ? viewer.savedPassword : ""); + + if (window["AscDesktopEditor"]) + { + let isCloud = !this.isLocalMode() && window["AscDesktopEditor"]["emulateCloudPrinting"]; + if (isCloud) + window["AscDesktopEditor"]["emulateCloudPrinting"](true); + + let changes = viewer.Save(); + + if (isCloud) + window["AscDesktopEditor"]["emulateCloudPrinting"](false); + + window["AscDesktopEditor"]["Print"](JSON.stringify(desktopOptions), viewer.savedPassword ? viewer.savedPassword : "", + changes ? AscCommon.Base64.encode(changes) : "", this.DocumentUrl); + } + return true; }; PDFEditorApi.prototype.asyncImagesDocumentEndLoaded = function() { this.ImageLoader.bIsLoadDocumentFirst = false; - - if (!this.DocumentRenderer) - return; - - if (this.EndActionLoadImages === 1) { + var _bIsOldPaste = this.isPasteFonts_Images; + + // на методе _openDocumentEndCallback может поменяться this.EndActionLoadImages + if (this.EndActionLoadImages == 1) { this.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.LoadDocumentImages); } - else if (this.EndActionLoadImages === 2) { - if (this.isPasteFonts_Images) + else if (this.EndActionLoadImages == 2) { + if (_bIsOldPaste) this.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.LoadImage); else this.sync_EndAction(Asc.c_oAscAsyncActionType.Information, Asc.c_oAscAsyncAction.LoadImage); } - this.EndActionLoadImages = 0; - if (this.isPasteFonts_Images) { - this.isPasteFonts_Images = false; - this.pasteImageMap = null; - this.pasteCallback(); - this.pasteCallback = null; - this.decrementCounterLongAction(); - } - if (false === this.isPasteFonts_Images && false === this.isSaveFonts_Images && false === this.isLoadImagesCustom) - { + // размораживаем меню... и начинаем считать документ + if (false === this.isPasteFonts_Images && false === this.isSaveFonts_Images && false === this.isLoadImagesCustom) { this.ServerImagesWaitComplete = true; this._openDocumentEndCallback(); } - - this.WordControl.m_oDrawingDocument.OpenDocument(); - - this.LoadedObject = null; - - this.bInit_word_control = true; - - this.WordControl.InitControl(); - - if (this.isViewMode) - this.asc_setViewMode(true); + else { + if (this.isPasteFonts_Images) { + this.isPasteFonts_Images = false; + this.pasteImageMap = null; + this.pasteCallback(); + this.pasteCallback = null; + this.decrementCounterLongAction(); + } + else if (this.isSaveFonts_Images) { + this.isSaveFonts_Images = false; + this.saveImageMap = null; + this.pre_SaveCallback(); + + if (this.bInit_word_control === false) + { + this.bInit_word_control = true; + this.onDocumentContentReady(); + } + } + else if (this.isLoadImagesCustom) { + this.isLoadImagesCustom = false; + this.loadCustomImageMap = null; + + if (!this.ImageLoader.bIsAsyncLoadDocumentImages) + this.SyncLoadImages_callback(); + } + } }; PDFEditorApi.prototype.Input_UpdatePos = function() { if (this.DocumentRenderer) @@ -2261,7 +2503,7 @@ this.DocumentRenderer.resize(); }; PDFEditorApi.prototype._openDocumentEndCallback = function() { - if (this.isDocumentLoadComplete || !this.ServerImagesWaitComplete || !this.ServerIdWaitComplete || !this.WordControl || !this.WordControl.m_oLogicDocument) + if (this.isDocumentLoadComplete || !this.ServerImagesWaitComplete || !this.ServerIdWaitComplete || !this.WordControl || !this.WordControl.m_oLogicDocument || !this.WordControl.m_oDrawingDocument.m_oDocumentRenderer.isDocumentContentReady) return; this.sendMathToMenu(); @@ -2270,16 +2512,79 @@ this.isDocumentEditor = false; AscCommon.PasteElementsId.g_bIsDocumentCopyPaste = false; AscCommon.PasteElementsId.g_bIsPDFCopyPaste = true; + + if (this.isApplyChangesOnOpenEnabled) + { + if (AscCommon.EncryptionWorker) + { + AscCommon.EncryptionWorker.init(); + if (!AscCommon.EncryptionWorker.isChangesHandled) + return AscCommon.EncryptionWorker.handleChanges(AscCommon.CollaborativeEditing.m_aChanges, this, this._openDocumentEndCallback); + } + this.bInit_word_control = true; + this.isApplyChangesOnOpenEnabled = false; + this._applyPreOpenLocks(); + + // TODO: onDocumentContentReady вызываем в конце загрузки всех изменений (и объектов для этих изменений) + let oThis = this; + + // Принимаем изменения на открытии только если это редактор, либо LiveViewer (т.е. включена быстрая совместка) + if (this.isLiveViewer() || !this.isPdfViewer) + { + let perfStart = performance.now(); + let OtherChanges = AscCommon.CollaborativeEditing.Have_OtherChanges(); + AscCommon.CollaborativeEditing.Apply_Changes(function() + { + let perfEnd = performance.now(); + if (OtherChanges) + { + AscCommon.sendClientLog("debug", AscCommon.getClientInfoString("onApplyChanges", perfEnd - perfStart), oThis); + } + oThis.onDocumentContentReady(); + }); + AscCommon.CollaborativeEditing.Release_Locks(); + } + else + { + this.onDocumentContentReady(); + } + + this.isApplyChangesOnOpen = true; + } + }; + PDFEditorApi.prototype._canSyncCollaborativeChanges = function(isFirstLoad) + { + return (!this.isPdfViewer && (!isFirstLoad || this.isApplyChangesOnOpen)); + }; + PDFEditorApi.prototype.sync_CollaborativeChanges = function() + { + if (AscCommon.CollaborativeEditing.Is_Fast()) + return; + + this.sendEvent("asc_onCollaborativeChanges"); }; PDFEditorApi.prototype.sync_ContextMenuCallback = function(Data) { this.sendEvent("asc_onContextMenu", new CPdfContextMenuData(Data)); }; + PDFEditorApi.prototype._finalizeAction = function() { + let oDoc = this.getPDFDoc(); + if (!oDoc){ + return; + } + oDoc.FinalizeAction(true); + }; PDFEditorApi.prototype._waitPrint = function(actionType, options) { return false; }; - + PDFEditorApi.prototype.asc_setPdfViewer = function(isPdfViewer) { + this.isPdfViewer = isPdfViewer; + }; + PDFEditorApi.prototype.isLiveViewer = function() { + return this.isPdfViewer && AscCommon.CollaborativeEditing.Is_Fast() && !this.VersionHistory; + }; + function CPdfContextMenuData(obj) { if (obj) { this.Type = ( undefined != obj.Type ) ? obj.Type : Asc.c_oAscPdfContextMenuTypes.Common; @@ -2357,7 +2662,11 @@ PDFEditorApi.prototype['asc_SetTextFormDatePickerDate'] = PDFEditorApi.prototype.asc_SetTextFormDatePickerDate; PDFEditorApi.prototype['asc_getHeaderFooterProperties'] = PDFEditorApi.prototype.asc_getHeaderFooterProperties; PDFEditorApi.prototype['ChangeReaderMode'] = PDFEditorApi.prototype.ChangeReaderMode; + PDFEditorApi.prototype['asc_Save'] = PDFEditorApi.prototype.asc_Save; + PDFEditorApi.prototype['asc_Print'] = PDFEditorApi.prototype.asc_Print; + PDFEditorApi.prototype['asc_drawPrintPreview'] = PDFEditorApi.prototype.asc_drawPrintPreview; + PDFEditorApi.prototype['CheckChangedDocument'] = PDFEditorApi.prototype.CheckChangedDocument; PDFEditorApi.prototype['SetDrawingFreeze'] = PDFEditorApi.prototype.SetDrawingFreeze; PDFEditorApi.prototype['OnMouseUp'] = PDFEditorApi.prototype.OnMouseUp; @@ -2374,6 +2683,7 @@ PDFEditorApi.prototype['asc_AddPage'] = PDFEditorApi.prototype.asc_AddPage; PDFEditorApi.prototype['asc_RemovePage'] = PDFEditorApi.prototype.asc_RemovePage; PDFEditorApi.prototype['asc_createSmartArt'] = PDFEditorApi.prototype.asc_createSmartArt; + PDFEditorApi.prototype['asc_undoAllChanges'] = PDFEditorApi.prototype.asc_undoAllChanges; PDFEditorApi.prototype['asc_setSkin'] = PDFEditorApi.prototype.asc_setSkin; PDFEditorApi.prototype['asc_getAnchorPosition'] = PDFEditorApi.prototype.asc_getAnchorPosition; @@ -2391,8 +2701,8 @@ PDFEditorApi.prototype['Paste'] = PDFEditorApi.prototype.Paste; PDFEditorApi.prototype['asc_PasteData'] = PDFEditorApi.prototype.asc_PasteData; - PDFEditorApi.prototype['getSelectionState'] = PDFEditorApi.prototype.Paste; - PDFEditorApi.prototype['getSpeechDescription'] = PDFEditorApi.prototype.asc_PasteData; + PDFEditorApi.prototype['getSelectionState'] = PDFEditorApi.prototype.getSelectionState; + PDFEditorApi.prototype['getSpeechDescription'] = PDFEditorApi.prototype.getSpeechDescription; PDFEditorApi.prototype['asc_ShowDocumentOutline'] = PDFEditorApi.prototype.asc_ShowDocumentOutline; PDFEditorApi.prototype['asc_HideDocumentOutline'] = PDFEditorApi.prototype.asc_HideDocumentOutline; @@ -2453,7 +2763,8 @@ PDFEditorApi.prototype['remove_Hyperlink'] = PDFEditorApi.prototype.remove_Hyperlink; PDFEditorApi.prototype['change_Hyperlink'] = PDFEditorApi.prototype.change_Hyperlink; PDFEditorApi.prototype['sync_HyperlinkClickCallback'] = PDFEditorApi.prototype.sync_HyperlinkClickCallback; - + PDFEditorApi.prototype['SetShowTextSelectPanel'] = PDFEditorApi.prototype.SetShowTextSelectPanel; + PDFEditorApi.prototype['NeedShowTextSelectPanel'] = PDFEditorApi.prototype.NeedShowTextSelectPanel; // table PDFEditorApi.prototype['put_Table'] = PDFEditorApi.prototype.put_Table; @@ -2463,5 +2774,8 @@ PDFEditorApi.prototype['remTable'] = PDFEditorApi.prototype.remTable; PDFEditorApi.prototype['asc_getTableStylesPreviews'] = PDFEditorApi.prototype.asc_getTableStylesPreviews; PDFEditorApi.prototype['asc_GetSelectionBounds'] = PDFEditorApi.prototype.asc_GetSelectionBounds; + PDFEditorApi.prototype['asc_setPdfViewer'] = PDFEditorApi.prototype.asc_setPdfViewer; + + PDFEditorApi.prototype['asc_GetTableOfContentsPr'] = PDFEditorApi.prototype.asc_GetTableOfContentsPr; })(window, window.document); diff --git a/pdf/build/api.js b/pdf/build/api.js index 58168df586..e445b8bfb7 100644 --- a/pdf/build/api.js +++ b/pdf/build/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/pdf/src/CollaborativeEditing.js b/pdf/src/CollaborativeEditing.js new file mode 100644 index 0000000000..1e067138f3 --- /dev/null +++ b/pdf/src/CollaborativeEditing.js @@ -0,0 +1,296 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +/** + * + * @constructor + * @extends {AscCommon.CCollaborativeEditingBase} + */ +function CPDFCollaborativeEditing(oDoc) { + AscCommon.CWordCollaborativeEditing.call(this); + this.m_aSkipContentControlsOnCheckEditingLock = {}; + this.m_oLogicDocument = oDoc; + this.m_oSelectedObjects = {}; + this.m_aEndLoadCallbacks = []; +} + +CPDFCollaborativeEditing.prototype = Object.create(AscCommon.CWordCollaborativeEditing.prototype); +CPDFCollaborativeEditing.prototype.constructor = CPDFCollaborativeEditing; + +CPDFCollaborativeEditing.prototype.CheckWaitingImages = function (aImages) { + if (aImages.length !== 0) { + this.waitingImagesForLoad = true; + } +}; +CPDFCollaborativeEditing.prototype.SendImagesCallback = function (aImages) { + this.waitingImagesForLoad = false; + let oApi = Asc.editor || Asc['editor']; + oApi.pre_Save(aImages); +}; +CPDFCollaborativeEditing.prototype.Add_ForeignSelectedObject = function(UserId, oObject, UserShortId) { + if (!this.m_oSelectedObjects[UserId]) { + this.m_oSelectedObjects[UserId] = []; + } + + this.m_aForeignCursorsId[UserId] = UserShortId; + this.m_oSelectedObjects[UserId].push(oObject); +}; +CPDFCollaborativeEditing.prototype.Remove_FiregnSelectedObject = function(UserId, oObject) { + if (!oObject) { + this.m_oSelectedObjects[UserId] = []; + } + else { + this.m_oSelectedObjects[UserId].splice(this.m_oSelectedObjects[UserId].indexOf(oObject), 1); + } +}; +CPDFCollaborativeEditing.prototype.Check_ForeignSelectedObjectsLabels = function(X, Y, PageIndex) { + let oDoc = this.GetLogicDocument(); + + for (let UserId in this.m_oSelectedObjects) { + let aObjects = this.m_oSelectedObjects[UserId]; + for (let i = 0; i < aObjects.length; i++) { + if (aObjects[i].GetPage() !== PageIndex) { + continue; + } + + let aOrigRect = aObjects[i].GetOrigRect(); + if (X >= aOrigRect[0] && X < aOrigRect[2] && Y > aOrigRect[1] && Y < aOrigRect[3]) { + let color = AscCommon.getUserColorById(this.m_aForeignCursorsId[UserId], null, true); + oDoc.Show_ForeignSelectedObjectLabel(UserId, aObjects[i], color); + } + } + } +}; +CPDFCollaborativeEditing.prototype.Update_ForeignSelectedObjectsLabelsPositions = function(PageIndex) { + let oDoc = this.GetLogicDocument(); + + for (let UserId in this.m_oSelectedObjects) { + let aObjects = this.m_oSelectedObjects[UserId]; + for (let i = 0; i < aObjects.length; i++) { + if (aObjects[i].GetPage() !== PageIndex || aObjects[i].LabelTimer == null) { + continue; + } + + let color = AscCommon.getUserColorById(this.m_aForeignCursorsId[UserId], null, true); + oDoc.Show_ForeignSelectedObjectLabel(UserId, aObjects[i], color); + } + } +}; +CPDFCollaborativeEditing.prototype.GetDocumentPositionBinary = function(oWriter, PosInfo) { + if (!PosInfo) + return ''; + var BinaryPos = oWriter.GetCurPosition(); + oWriter.WriteString2(PosInfo.Class.Get_Id()); + oWriter.WriteLong(PosInfo.Position); + var BinaryLen = oWriter.GetCurPosition() - BinaryPos; + return (BinaryLen + ";" + oWriter.GetBase64Memory2(BinaryPos, BinaryLen)); +}; +CPDFCollaborativeEditing.prototype.GetDocument = function() { + return this.m_oLogicDocument; +}; +CPDFCollaborativeEditing.prototype.Send_Changes = function(IsUserSave, AdditionalInfo, IsUpdateInterface, isAfterAskSave) { + if (!this.canSendChanges()) + return; + + let oDoc = this.GetDocument(); + let oHistory = oDoc.History; + + let localHistory = AscCommon.History; + AscCommon.History = oHistory; + + // Пересчитываем позиции + this.Refresh_DCChanges(); + + + AscCommon.DocumentEditorApi.prototype.asc_Save.apply(this, arguments); + + + // Генерируем свои изменения + let StartPoint = ( null === oHistory.SavedIndex ? 0 : oHistory.SavedIndex + 1 ); + let LastPoint = -1; + + if (this.m_nUseType <= 0) { + // (ненужные точки предварительно удаляем) + oHistory.Clear_Redo(); + LastPoint = oHistory.Points.length - 1; + } + else { + LastPoint = oHistory.Index; + } + + // Просчитаем сколько изменений на сервер пересылать не надо + let SumIndex = 0; + let StartPoint2 = Math.min(StartPoint, LastPoint + 1); + + for (let PointIndex = 0; PointIndex < StartPoint2; PointIndex++) { + let Point = oHistory.Points[PointIndex]; + SumIndex += Point.Items.length; + } + let deleteIndex = ( null === oHistory.SavedIndex ? null : SumIndex ); + + let aChanges = [], aChanges2 = []; + for (let PointIndex = StartPoint; PointIndex <= LastPoint; PointIndex++) { + let Point = oHistory.Points[PointIndex]; + oHistory.Update_PointInfoItem(PointIndex, StartPoint, LastPoint, SumIndex, deleteIndex); + + for (let Index = 0; Index < Point.Items.length; Index++) + { + let Item = Point.Items[Index]; + let oChanges = new AscCommon.CCollaborativeChanges(); + oChanges.Set_FromUndoRedo(Item.Class, Item.Data, Item.Binary); + + aChanges2.push(Item.Data); + + aChanges.push(oChanges.m_pData); + } + } + + let UnlockCount = 0; + + // Пока пользователь сидит один, мы не чистим его локи до тех пор пока не зайдет второй + let bCollaborative = this.getCollaborativeEditing(); + if (bCollaborative) + { + UnlockCount = this.m_aNeedUnlock.length; + this.Release_Locks(); + + let UnlockCount2 = this.m_aNeedUnlock2.length; + for (let Index = 0; Index < UnlockCount2; Index++) + { + let Class = this.m_aNeedUnlock2[Index]; + Class.Lock.Set_Type(AscCommon.c_oAscLockTypes.kLockTypeNone, false); + editor.CoAuthoringApi.releaseLocks(Class.Get_Id()); + } + + this.m_aNeedUnlock.length = 0; + this.m_aNeedUnlock2.length = 0; + } + + deleteIndex = ( null === oHistory.SavedIndex ? null : SumIndex ); + if (0 < aChanges.length || null !== deleteIndex) { + this.CoHistory.AddOwnChanges(aChanges2, deleteIndex); + editor.CoAuthoringApi.saveChanges(aChanges, deleteIndex, AdditionalInfo, editor.canUnlockDocument2, bCollaborative); + oHistory.CanNotAddChanges = true; + } + else { + editor.CoAuthoringApi.unLockDocument(!!isAfterAskSave, editor.canUnlockDocument2, null, bCollaborative); + } + + editor.canUnlockDocument2 = false; + + if (-1 === this.m_nUseType) { + // Чистим Undo/Redo только во время совместного редактирования + oHistory.Clear(); + oHistory.SavedIndex = null; + } + else if (0 === this.m_nUseType) { + // Чистим Undo/Redo только во время совместного редактирования + oHistory.Clear(); + oHistory.SavedIndex = null; + + this.m_nUseType = 1; + } + else { + // Обновляем точку последнего сохранения в истории + oHistory.Reset_SavedIndex(IsUserSave); + } + + if (false !== IsUpdateInterface) + editor.WordControl.m_oLogicDocument.UpdateInterface(undefined, true); + + // TODO: Пока у нас обнуляется история на сохранении нужно обновлять Undo/Redo + editor.WordControl.m_oLogicDocument.Document_UpdateUndoRedoState(); + + // Свои локи не проверяем. Когда все пользователи выходят, происходит перерисовка и свои локи уже не рисуются. + if (0 !== UnlockCount || 1 !== this.m_nUseType) { + // Перерисовываем документ (для обновления локов) + editor.WordControl.m_oLogicDocument.DrawingDocument.ClearCachePages(); + editor.WordControl.m_oLogicDocument.DrawingDocument.FirePaint(); + } + + editor.WordControl.m_oLogicDocument.getCompositeInput().checkState(); + AscCommon.History = localHistory; +}; +CPDFCollaborativeEditing.prototype.OnEnd_Load_Objects = function() +{ + // Данная функция вызывается, когда загрузились внешние объекты (картинки и шрифты) + + // Снимаем лок + AscCommon.CollaborativeEditing.Set_GlobalLock(false); + AscCommon.CollaborativeEditing.Set_GlobalLockSelection(false); + + if (this.m_fEndLoadCallBack) + { + this.m_fEndLoadCallBack(); + this.m_fEndLoadCallBack = null; + } + + this.m_oLogicDocument.ResumeRecalculate(); + this.m_oLogicDocument.RecalculateByChanges(this.CoHistory.GetAllChanges(), this.m_nRecalcIndexStart, this.m_nRecalcIndexEnd, false, undefined); + this.m_oLogicDocument.UpdateTracks(); + + this.m_aEndLoadCallbacks.forEach(function(callback) { + callback(); + }); + this.m_aEndLoadCallbacks.length = 0; + + editor.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.ApplyChanges); +}; +CPDFCollaborativeEditing.prototype.canSendChanges = function(){ + let oApi = this.GetEditorApi(); + let oDoc = oApi.getPDFDoc(); + let oActionQueue = oDoc.GetActionsQueue(); + + return oApi && oApi.canSendChanges() && !oActionQueue.IsInProgress(); +}; +CPDFCollaborativeEditing.prototype.Apply_Changes = function(fEndCallBack) { + if (!this.m_aChanges.length) + return fEndCallBack ? fEndCallBack() : null; + + let docHistory = this.GetDocument().History; + docHistory.TurnOff(); + + this.GetDocument().currInkInDrawingProcess = null; // останавливаем ink рисование + AscCommon.CCollaborativeEditingBase.prototype.Apply_Changes.call(this, fEndCallBack); + + docHistory.TurnOn(); +}; +CPDFCollaborativeEditing.prototype.OnEnd_ReadForeignChanges = function() { + AscCommon.CCollaborativeEditingBase.prototype.OnEnd_ReadForeignChanges.apply(this, arguments); +}; +CPDFCollaborativeEditing.prototype.Check_MergeData = function() {}; + +//--------------------------------------------------------export---------------------------------------------------- +window['AscPDF'] = window['AscPDF'] || {}; +window['AscPDF'].CPDFCollaborativeEditing = CPDFCollaborativeEditing; diff --git a/pdf/src/DrawingDocument.js b/pdf/src/DrawingDocument.js index f5b47719fe..03b42f8395 100644 --- a/pdf/src/DrawingDocument.js +++ b/pdf/src/DrawingDocument.js @@ -359,11 +359,65 @@ return this.isHideTargetBeforeFirstClick; return false; }; + this.TargetStart = function (bShowHide) { + if (this.m_lTimerTargetId != -1) + clearInterval(this.m_lTimerTargetId); + this.m_lTimerTargetId = setInterval(oThis.DrawTarget, 500); + + this.showTarget(bShowHide); + }; + this.Collaborative_UpdateTarget = function (_id, _shortId, _x, _y, _size, _page, _transform, is_from_paint) { + this.AutoShapesTrack.SetCurrentPage(_page, true); + let TextMatrix = this.AutoShapesTrack.transformPageMatrix(_transform); + + if (is_from_paint !== true) { + this.CollaborativeTargetsUpdateTasks.push([_id, _shortId, _x, _y, _size, _page, _transform]); + return; + } + + for (let i = 0; i < this.CollaborativeTargets.length; i++) { + if (_id == this.CollaborativeTargets[i].Id) { + this.CollaborativeTargets[i].CheckPosition(_x, _y, _size, _page, TextMatrix); + return; + } + } + + let _target = new CDrawingCollaborativeTarget(this); + _target.Id = _id; + _target.ShortId = _shortId; + _target.CheckPosition(_x, _y, _size, _page, TextMatrix); + this.CollaborativeTargets[this.CollaborativeTargets.length] = _target; + }; this.OnRecalculatePage = function() {}; this.OnEndRecalculate = function() {}; this.ConvertCoordsToAnotherPage = function (x, y, pageCoord, pageNeed) { return AscPDF.ConvertCoordsToAnotherPage(x, y, pageCoord, pageNeed); } + + this.CheckRasterImageOnScreen = function(src) + { + let redrawPages = []; + let viewer = this.m_oDocumentRenderer; + + for (let i = viewer.startVisiblePage; i <= viewer.endVisiblePage; i++) + { + let imgs = viewer.DrawingObjects.getAllRasterImagesOnPage(i); + for (let j = 0, len = imgs.length; j < len; j++) + { + if (AscCommon.getFullImageSrc2(imgs[j]) === src) + { + redrawPages.push(i); + break; + } + } + } + + if (redrawPages.length > 0) + { + viewer.onUpdatePages(redrawPages); + viewer.onRepaintForms(redrawPages); + } + }; } CDrawingDocument.prototype.constructor = CDrawingDocument; diff --git a/pdf/src/GraphicObjects.js b/pdf/src/GraphicObjects.js index 4faa819faf..ead1ff54b2 100644 --- a/pdf/src/GraphicObjects.js +++ b/pdf/src/GraphicObjects.js @@ -95,6 +95,9 @@ oAnnotTextPrTrackHandler.SetTrackObject(IsShowAnnotTrack && bShowTrack ? oAnnot : null, 0, false === bSelection || true === bEmptySelection); }; + CGraphicObjects.prototype.paragraphIncDecIndent = function(bIncrease) { + this.applyDocContentFunction(AscWord.CDocumentContent.prototype.Increase_ParagraphLevel, [bIncrease], AscWord.CTable.prototype.Increase_ParagraphLevel); + }; CGraphicObjects.prototype.canIncreaseParagraphLevel = function(bIncrease) { let oDocContent = this.getTargetDocContent(); @@ -150,6 +153,7 @@ oTable.graphicObject.Set_Props(props); oTable.graphicObject.RemoveSelection(); } + oTable.SetNeedRecalc(true); props.TableCaption = sCaption; props.TableDescription = sDescription; props.RowHeight = dRowHeight; @@ -193,8 +197,8 @@ sImageId = AscCommon.getFullImageSrc2(sImageId); let _image = oApi.ImageLoader.map_image_index[sImageId]; if (_image && _image.Image) { - let __w = Math.max((_image.Image.width * AscCommon.g_dKoef_pix_to_mm), 1); - let __h = Math.max((_image.Image.height * AscCommon.g_dKoef_pix_to_mm), 1); + let __w = Math.max((_image.Image.width * g_dKoef_pix_to_mm), 1); + let __h = Math.max((_image.Image.height * g_dKoef_pix_to_mm), 1); let fKoeff = 1.0/Math.max(__w/dWidth, __h/dHeight); let _w = Math.max(5, __w*fKoeff); let _h = Math.max(5, __h*fKoeff); @@ -952,7 +956,7 @@ if (this.selection.groupSelection) { let oGroup = this.selection.groupSelection; if (oGroup.IsAnnot && oGroup.IsAnnot() && oGroup.IsFreeText() && oGroup.selection.textSelection) { - return oGroup; + return [oGroup]; } return this.selection.groupSelection.selectedObjects; @@ -971,9 +975,10 @@ if(ret.cursorType !== "text") { let oApi = Asc.editor || editor; + let oDoc = this.document; let isDrawHandles = oApi ? oApi.isShowShapeAdjustments() : true; - let oObject = AscCommon.g_oTableId.Get_ById(ret.objectId); + let oObject = AscCommon.g_oTableId.Get_ById(ret.objectId) || oDoc.GetShapeBasedAnnotById(ret.objectId); let isViewerObj = this.document.IsViewerObject(oObject); if (!isDrawHandles && isViewerObj) { @@ -1277,9 +1282,78 @@ } this.applyDocContentFunction(AscWord.CDocumentContent.prototype.SetParagraphIndent, [Indent], AscWord.CTable.prototype.SetParagraphIndent); }; + CGraphicObjects.prototype.endTrackNewShape = function() { + this.curState.bStart = this.curState.bStart !== false; + let aTracks = this.arrTrackObjects; + let bNewShape = false; + let bRet = false; + if (aTracks.length > 0) { + let nT; + for (nT = 0; nT < aTracks.length; ++nT) { + let oTrack = aTracks[nT]; + if (!oTrack.getShape) { + break; + } + } + if (nT === aTracks.length) { + bNewShape = true; + } + if (bNewShape) { + bRet = AscFormat.StartAddNewShape.prototype.onMouseUp.call(this.curState, { + ClickCount: 1, + X: 0, + Y: 0 + }, 0, 0, 0); + } + else { + this.curState.onMouseUp({ + ClickCount: 1, + X: 0, + Y: 0 + }, 0, 0, 0); + bRet = true; + } + } + else { + bRet = AscFormat.StartAddNewShape.prototype.onMouseUp.call(this.curState, { + ClickCount: 1, + X: 0, + Y: 0 + }, 0, 0, 0); + } + + const oApi = this.getEditorApi(); + if (oApi.isInkDrawerOn()) { + oApi.stopInkDrawer(); + } + + return bRet; + }; CGraphicObjects.prototype.loadDocumentStateAfterLoadChanges = function() {}; CGraphicObjects.prototype.saveDocumentState = function(){}; + + CGraphicObjects.prototype.getAllRasterImagesOnPage = function(pageIndex) { + if (!this.api) + return []; + + let viewer = this.api.getDocumentRenderer(); + if (!viewer || !viewer.pagesInfo.pages[pageIndex]) + return []; + + let page = viewer.pagesInfo.pages[pageIndex]; + + let result = [] + + page.fields.forEach(function(field){ + field.getAllRasterImages(result); + }); + page.drawings.forEach(function(drawing){ + drawing.getAllRasterImages(result); + }); + + return result; + }; // import CGraphicObjects.prototype.setEquationTrack = AscFormat.DrawingObjectsController.prototype.setEquationTrack; @@ -1296,8 +1370,8 @@ CGraphicObjects.prototype.changeTextCase = AscFormat.DrawingObjectsController.prototype.changeTextCase; CGraphicObjects.prototype.handleDblClickEmptyShape = AscFormat.DrawingObjectsController.prototype.handleDblClickEmptyShape; CGraphicObjects.prototype.getDrawingsPasteShift = AscFormat.DrawingObjectsController.prototype.getDrawingsPasteShift; - CGraphicObjects.prototype.endTrackNewShape = AscFormat.DrawingObjectsController.prototype.endTrackNewShape; CGraphicObjects.prototype.removeCallback = AscFormat.DrawingObjectsController.prototype.removeCallback; + CGraphicObjects.prototype.getAllSingularDrawings = AscFormat.DrawingObjectsController.prototype.getAllSingularDrawings; CGraphicObjects.prototype.startRecalculate = function() {}; diff --git a/pdf/src/annotations/base.js b/pdf/src/annotations/base.js index 702776dfcd..3e0c743a4b 100644 --- a/pdf/src/annotations/base.js +++ b/pdf/src/annotations/base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -38,6 +38,15 @@ */ function CAnnotationBase(sName, nType, nPage, aOrigRect, oDoc) { + // если аннотация не shape based + if (this.Id == undefined) { + this.Id = AscCommon.g_oIdCounter.Get_NewId(); + if ((AscCommon.g_oIdCounter.m_bLoad || AscCommon.History.CanAddChanges())) { + AscCommon.g_oTableId.Add(this, this.Id); + } + } + + this._apIdx = -1; this.type = nType; this._author = undefined; @@ -46,16 +55,16 @@ this._contents = undefined; this._creationDate = undefined; this._delay = false; // пока не используется - this._doc = oDoc; + this._doc = undefined; this._inReplyTo = undefined; this._intent = undefined; this._lock = undefined; this._lockContent = undefined; this._modDate = undefined; - this._name = sName; + this._name = undefined; this._opacity = 1; - this._page = nPage; - this._rect = undefined; + this._page = undefined; + this._origRect = []; this._refType = undefined; this._seqNum = undefined; this._strokeColor = undefined; @@ -73,9 +82,6 @@ this._replies = []; // тут будут храниться ответы (text аннотации) - if (this.Id == undefined) - this.Id = AscCommon.g_oIdCounter.Get_NewId(); - // internal this._bDrawFromStream = false; // нужно ли рисовать из стрима this._originView = { @@ -83,18 +89,16 @@ mouseDown: null, rollover: null } - this._wasChanged = false; - this.Internal_InitRect(aOrigRect); - } - CAnnotationBase.prototype.Internal_InitRect = function(aOrigRect) { - let nPage = this.GetPage(); - let oViewer = editor.getDocumentRenderer(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; + this._wasChanged = false; - this._rect = [aOrigRect[0] * nScaleX, aOrigRect[1] * nScaleY, aOrigRect[2] * nScaleX, aOrigRect[3] * nScaleY]; - this._origRect = aOrigRect; + this.SetDocument(oDoc); + this.SetName(sName); + this.SetPage(nPage); + this.SetRect(aOrigRect); }; + CAnnotationBase.prototype = Object.create(AscFormat.CBaseNoIdObject.prototype); + CAnnotationBase.prototype.constructor = CAnnotationBase; + CAnnotationBase.prototype.GetDocContent = function() { return null; }; @@ -129,6 +133,8 @@ return this._dash; }; CAnnotationBase.prototype.SetFillColor = function(aColor) { + AscCommon.History.Add(new CChangesPDFAnnotFill(this, this.GetFillColor(), aColor)); + this._fillColor = aColor; if (this.IsShapeBased()) { @@ -141,12 +147,23 @@ return this._fillColor; }; CAnnotationBase.prototype.SetWidth = function(nWidthPt) { + AscCommon.History.Add(new CChangesPDFAnnotStrokeWidth(this, this.GetWidth(), nWidthPt)); + this._width = nWidthPt; if (this.IsShapeBased()) { - nWidthPt = nWidthPt > 0 ? nWidthPt : 0.5; let oLine = this.spPr.ln; oLine.setW(nWidthPt * g_dKoef_pt_to_mm * 36000.0); + + if (nWidthPt == 0) { + oLine.setFill(AscFormat.CreateNoFillUniFill()); + } + else { + AscCommon.History.StartNoHistoryMode(); + this.SetStrokeColor(this.GetStrokeColor()); + AscCommon.History.EndNoHistoryMode(); + } + this.handleUpdateLn(); } }; @@ -160,6 +177,8 @@ return this._richContents; }; CAnnotationBase.prototype.SetIntent = function(nType) { + AscCommon.History.Add(new CChangesPDFAnnotIntent(this, this._intent, nType)); + this._intent = nType; }; CAnnotationBase.prototype.GetIntent = function() { @@ -191,10 +210,21 @@ }; CAnnotationBase.prototype.DrawSelected = function() {}; + CAnnotationBase.prototype.SetName = function(sName) { + if (sName == this._name) { + return; + } + + AscCommon.History.Add(new CChangesPDFAnnotName(this, this._name, sName)); + this._name = sName; + this.SetWasChanged(true); + }; CAnnotationBase.prototype.GetName = function() { return this._name; }; CAnnotationBase.prototype.SetOpacity = function(value) { + AscCommon.History.Add(new CChangesPDFAnnotOpacity(this, this.GetOpacity(), value)); + this._opacity = value; this.SetWasChanged(true); @@ -215,6 +245,7 @@ CAnnotationBase.prototype.IsPdfObject = function() { return true; }; + CAnnotationBase.prototype.GetAllFonts = function(fontMap) {return fontMap}; /** * Invokes only on open forms. * @memberof CAnnotationBase @@ -229,7 +260,8 @@ CAnnotationBase.prototype.SetWasChanged = function(isChanged) { let oViewer = editor.getDocumentRenderer(); - if (oViewer.IsOpenAnnotsInProgress == false) { + if (this._wasChanged !== isChanged && oViewer.IsOpenAnnotsInProgress == false) { + // AscCommon.History.Add(new CChangesPDFAnnotWasChanged(this, this.IsChanged(), isChanged)); this._wasChanged = isChanged; this.SetDrawFromStream(!isChanged); } @@ -255,6 +287,24 @@ oGraphicsPDF.DrawImageXY(originView, X, Y); AscPDF.endMultiplyMode(oGraphicsPDF.GetContext()); } + + // oGraphicsPDF.SetLineWidth(1); + // let aOringRect = this.GetOrigRect(); + // let X = aOringRect[0]; + // let Y = aOringRect[1]; + // let nWidth = aOringRect[2] - aOringRect[0]; + // let nHeight = aOringRect[3] - aOringRect[1]; + + // Y += 1 / 2; + // X += 1 / 2; + // nWidth -= 1; + // nHeight -= 1; + + // oGraphicsPDF.SetStrokeStyle(0, 255, 255); + // oGraphicsPDF.SetLineDash([]); + // oGraphicsPDF.BeginPath(); + // oGraphicsPDF.Rect(X, Y, nWidth, nHeight); + // oGraphicsPDF.Stroke(); }; CAnnotationBase.prototype.SetSubject = function(sSubject) { this._subject = sSubject; @@ -305,7 +355,7 @@ let supportImageDataConstructor = (AscCommon.AscBrowser.isIE && !AscCommon.AscBrowser.isIeEdge) ? false : true; let ctx = canvas.getContext("2d"); - let mappedBuffer = new Uint8ClampedArray(oFile.memory().buffer, oApInfoTmp["retValue"], 4 * nWidth * nHeight); + let mappedBuffer = oFile.getUint8ClampedArray(oApInfoTmp["retValue"], 4 * nWidth * nHeight); let imageData = null; if (supportImageDataConstructor) @@ -362,72 +412,70 @@ this._originView.normal = null; }; CAnnotationBase.prototype.SetPosition = function(x, y) { - let oViewer = editor.getDocumentRenderer(); - let oDoc = this.GetDocument(); - let nPage = this.GetPage(); + let oDoc = this.GetDocument(); + let aCurRect = this.GetOrigRect(); - let nOldX = this._rect[0]; - let nOldY = this._rect[1]; + let nOldX = aCurRect[0]; + let nOldY = aCurRect[1]; let nDeltaX = x - nOldX; let nDeltaY = y - nOldY; - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; + if (0 == nDeltaX && 0 == nDeltaY) { + return; + } if (this.IsInk()) { let aPath; for (let i = 0; i < this._gestures.length; i++) { aPath = this._gestures[i]; - for (let j = 0; j < aPath.length; j++) { - aPath[j].x += nDeltaX * g_dKoef_pix_to_mm; - aPath[j].y += nDeltaY * g_dKoef_pix_to_mm; + for (let j = 0; j < aPath.length; j+=2) { + aPath[j] += nDeltaX; + aPath[j+1] += nDeltaY; } } } else if (this.IsLine()) { for (let i = 0; i < this._points.length; i+=2) { - this._points[i] += nDeltaX / nScaleX; - this._points[i+1] += nDeltaY / nScaleY; + this._points[i] += nDeltaX; + this._points[i+1] += nDeltaY; } } else if (this.IsPolygon() || this.IsPolyLine()) { for (let i = 0; i < this._vertices.length; i+=2) { - this._vertices[i] += nDeltaX / nScaleX; - this._vertices[i+1] += nDeltaY / nScaleY; + this._vertices[i] += nDeltaX; + this._vertices[i+1] += nDeltaY; } } else if (this.IsFreeText()) { let aCallout = this.GetCallout(); if (aCallout) { for (let i = 0; i < aCallout.length; i+=2) { - aCallout[i] += nDeltaX / nScaleX; - aCallout[i+1] += nDeltaY / nScaleY; + aCallout[i] += nDeltaX; + aCallout[i+1] += nDeltaY; } } } - oDoc.History.Add(new CChangesPDFAnnotPos(this, [this._rect[0], this._rect[1]], [x, y])); + oDoc.History.Add(new CChangesPDFAnnotPos(this, [aCurRect[0], aCurRect[1]], [x, y])); - let nWidth = this._pagePos.w; - let nHeight = this._pagePos.h; + let nWidth = aCurRect[2] - aCurRect[0]; + let nHeight = aCurRect[3] - aCurRect[1]; - this._rect[0] = x; - this._rect[1] = y; - this._rect[2] = x + nWidth; - this._rect[3] = y + nHeight; - - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; - - this._pagePos = { - x: this._rect[0], - y: this._rect[1], - w: (this._rect[2] - this._rect[0]), - h: (this._rect[3] - this._rect[1]) - }; + let aRD = this.GetRectangleDiff() || [0, 0, 0, 0]; + + this._origRect[0] = x; + this._origRect[1] = y; + this._origRect[2] = x + nWidth; + this._origRect[3] = y + nHeight; + + if (this.IsShapeBased()) { + let oXfrm = this.getXfrm(); + AscCommon.History.StartNoHistoryMode(); + oXfrm.setOffX((this._origRect[0] + aRD[0]) * g_dKoef_pt_to_mm); + oXfrm.setOffY((this._origRect[1] + aRD[1]) * g_dKoef_pt_to_mm); + AscCommon.History.EndNoHistoryMode(); + } this.SetNeedRecalc(true); this.SetWasChanged(true); @@ -480,7 +528,7 @@ return this._needRecalc; }; CAnnotationBase.prototype.GetOrigRect = function() { - return this._origRect || this.GetReplyTo().GetOrigRect(); + return this._origRect || (this.GetReplyTo() ? this.GetReplyTo().GetOrigRect() : this._origRect); }; CAnnotationBase.prototype.IsNeedDrawFromStream = function() { return this._bDrawFromStream; @@ -488,43 +536,22 @@ CAnnotationBase.prototype.SetDrawFromStream = function(bFromStream) { this._bDrawFromStream = bFromStream; }; - CAnnotationBase.prototype.SetRect = function(aRect) { - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - let oDoc = this.GetDocument(); - - oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetRect(), aRect)); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this._rect = aRect; - this._rectDiff = [0, 0, 0, 0]; - - this._pagePos = { - x: aRect[0], - y: aRect[1], - w: (aRect[2] - aRect[0]), - h: (aRect[3] - aRect[1]) - }; - - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; + CAnnotationBase.prototype.SetRect = function(aOrigRect) { + AscCommon.History.Add(new CChangesPDFAnnotRect(this, this.GetOrigRect(), aOrigRect)); + this._origRect = aOrigRect; this.SetWasChanged(true); }; CAnnotationBase.prototype.IsUseInDocument = function() { - if (this.GetDocument().annots.indexOf(this) == -1) + let oDoc = Asc.editor.getPDFDoc(); + if (oDoc.annots.indexOf(this) == -1) return false; return true; }; - CAnnotationBase.prototype.GetRect = function() { - return this._rect; + return this._origRect; }; CAnnotationBase.prototype.GetId = function() { return this.Id; @@ -546,15 +573,15 @@ if (nPage == nCurPage) return; - let oViewer = editor.getDocumentRenderer(); - let oDoc = this.GetDocument(); - - let nCurIdxOnPage = oViewer.pagesInfo.pages[nCurPage] && oViewer.pagesInfo.pages[nCurPage].annots ? oViewer.pagesInfo.pages[nCurPage].annots.indexOf(this) : -1; + let oViewer = editor.getDocumentRenderer(); + let oDoc = this.GetDocument(); + let oPageInfo = oViewer.pagesInfo.pages[nCurPage]; + + let nCurIdxOnPage = oPageInfo && oPageInfo.annots ? oPageInfo.annots.indexOf(this) : -1; if (oViewer.pagesInfo.pages[nPage]) { if (oDoc.annots.indexOf(this) != -1) { if (nCurIdxOnPage != -1) { - oViewer.pagesInfo.pages[nCurPage].annots.splice(nCurIdxOnPage, 1); - oDoc.History.Add(new CChangesPDFAnnotPage(this, nCurPage, nPage)); + oPageInfo.annots.splice(nCurIdxOnPage, 1); } if (this.IsUseInDocument() && oViewer.pagesInfo.pages[nPage].annots.indexOf(this) == -1) @@ -564,6 +591,7 @@ this.AddToRedraw(); } + oDoc.History.Add(new CChangesPDFAnnotPage(this, nCurPage, nPage)); this._page = nPage; this.selectStartPage = nPage; this.AddToRedraw(); @@ -572,6 +600,14 @@ CAnnotationBase.prototype.GetPage = function() { return this._page; }; + CAnnotationBase.prototype.SetDocument = function(oDoc) { + if (this._doc == oDoc) { + return; + } + + AscCommon.History.Add(new CChangesPDFDocumentSetDocument(this, this._doc, oDoc)); + this._doc = oDoc; + }; CAnnotationBase.prototype.GetDocument = function() { return this._doc; }; @@ -583,7 +619,14 @@ return false; }; CAnnotationBase.prototype.SetDisplay = function(nType) { + if (nType == this._display) { + return; + } + + AscCommon.History.Add(new CChangesPDFAnnotDisplay(this, this._display, nType)); + this._display = nType; + this.SetWasChanged(true); }; CAnnotationBase.prototype.GetDisplay = function() { return this._display; @@ -615,7 +658,7 @@ let oViewer = editor.getDocumentRenderer(); let oDoc = this.GetDocument(); - let oCurContents = this.GetContents(); + let sCurContents = this.GetContents(); let bSendAddCommentEvent = false; if (this._contents == null && contents != null) @@ -624,7 +667,7 @@ this._contents = contents; if (oDoc.History.UndoRedoInProgress == false && oViewer.IsOpenAnnotsInProgress == false) { - oDoc.History.Add(new CChangesPDFAnnotContents(this, oCurContents, contents)); + oDoc.History.Add(new CChangesPDFAnnotContents(this, sCurContents, contents)); } this.SetWasChanged(true); @@ -638,16 +681,7 @@ return !(this.IsFreeText() || this.IsLine() && this.IsDoCaption()); }; CAnnotationBase.prototype.Recalculate = function() { - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - let aOrigRect = this.GetOrigRect(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this.handleUpdatePosition(); - this.recalculate(); - this.updatePosition(aOrigRect[0] * g_dKoef_pix_to_mm * nScaleX, aOrigRect[1] * g_dKoef_pix_to_mm * nScaleY) + return; }; CAnnotationBase.prototype.Draw = function(oGraphicsPDF, oGraphicsWord) { if (this.IsHidden() == true) @@ -655,15 +689,25 @@ this.Recalculate(); this.draw(oGraphicsWord); - }; - CAnnotationBase.prototype.SetReplies = function(aReplies) { - let oDoc = this.GetDocument(); - let oViewer = editor.getDocumentRenderer(); - if (oDoc.History.UndoRedoInProgress == false && oViewer.IsOpenAnnotsInProgress == false) { - oDoc.History.Add(new CChangesPDFAnnotReplies(this, this._replies, aReplies)); - } - this._replies = aReplies; + // draw annot rect + // oGraphicsPDF.SetLineWidth(1); + // let aOringRect = this.GetOrigRect(); + // let X = aOringRect[0]; + // let Y = aOringRect[1]; + // let nWidth = aOringRect[2] - aOringRect[0]; + // let nHeight = aOringRect[3] - aOringRect[1]; + + // Y += 1 / 2; + // X += 1 / 2; + // nWidth -= 1; + // nHeight -= 1; + + // oGraphicsPDF.SetStrokeStyle(0, 255, 255); + // oGraphicsPDF.SetLineDash([]); + // oGraphicsPDF.BeginPath(); + // oGraphicsPDF.Rect(X, Y, nWidth, nHeight); + // oGraphicsPDF.Stroke(); }; CAnnotationBase.prototype.GetReplies = function() { return this._replies; @@ -673,21 +717,43 @@ }; CAnnotationBase.prototype.RemoveComment = function() { this.SetContents(null); - this.SetReplies([]); + this.EditCommentData(undefined); }; CAnnotationBase.prototype.EditCommentData = function(oCommentData) { + let oDoc = this.GetDocument(); + + let oCurAscCommData = this.GetAscCommentData(); + let oCurData = oCurAscCommData ? new AscCommon.CCommentData() : undefined; + oCurData && oCurData.Read_FromAscCommentData(oCurAscCommData); + + AscCommon.History.Add(new CChangesPDFCommentData(this, oCurData, oCommentData)); + + if (oCommentData == null) { + this._replies.length = 0; + Asc.editor.sync_RemoveComment(this.GetId()); + return; + } + let oFirstCommToEdit; - if (this.GetApIdx() == oCommentData.m_sUserData) + if (this.GetId() == oCommentData.m_sUserData) oFirstCommToEdit = this; else { oFirstCommToEdit = this._replies.find(function(oReply) { - return oCommentData.m_sUserData == oReply.GetApIdx(); + return oCommentData.m_sUserData == oReply.GetId(); }); } + AscCommon.History.StartNoHistoryMode(); + if (null == oFirstCommToEdit) { + AscPDF.CAnnotationText.prototype.AddReply.call(this, oCommentData); + oFirstCommToEdit = this.GetReply(0); + oDoc.CheckComment(this); + } + if (oFirstCommToEdit.GetContents() != oCommentData.m_sText) { oFirstCommToEdit.SetContents(oCommentData.m_sText); oFirstCommToEdit.SetModDate(oCommentData.m_sOOTime); + oFirstCommToEdit.SetAuthor(oCommentData.m_sUserName); } let aReplyToDel = []; @@ -698,7 +764,7 @@ continue; oReplyCommentData = oCommentData.m_aReplies.find(function(item) { - return item.m_sUserData == oReply.GetApIdx(); + return item.m_sUserData == oReply.GetId(); }); if (oReplyCommentData) { @@ -716,11 +782,12 @@ for (let i = 0; i < oCommentData.m_aReplies.length; i++) { oReplyCommentData = oCommentData.m_aReplies[i]; if (!this._replies.find(function(reply) { - return oReplyCommentData.m_sUserData == reply.GetApIdx(); + return oReplyCommentData.m_sUserData == reply.GetId(); })) { - AscPDF.CAnnotationText.prototype.AddReply.call(this, oReplyCommentData); + AscPDF.CAnnotationText.prototype.AddReply.call(this, oReplyCommentData, i); } } + AscCommon.History.EndNoHistoryMode(); if (this.IsComment()) { if (oCommentData.m_bSolved) { @@ -739,9 +806,15 @@ this._replies[i].SetState(AscPDF.TEXT_ANNOT_STATE.Unknown); } } + + Asc.editor.sync_ChangeCommentData(this.GetId(), oCommentData); }; CAnnotationBase.prototype.GetAscCommentData = function() { let oAscCommData = new Asc.asc_CCommentDataWord(null); + if (null == this.GetContents()) { + return undefined; + } + oAscCommData.asc_putText(this.GetContents()); let sModDate = this.GetModDate(); if (sModDate) @@ -750,7 +823,7 @@ oAscCommData.asc_putUserName(this.GetAuthor()); oAscCommData.asc_putSolved(false); oAscCommData.asc_putQuoteText(""); - oAscCommData.m_sUserData = this.GetApIdx(); + oAscCommData.m_sUserData = this.GetId(); this._replies.forEach(function(reply) { oAscCommData.m_aReplies.push(reply.GetAscCommentData()); @@ -762,6 +835,11 @@ return this._contents; }; CAnnotationBase.prototype.SetModDate = function(sDate) { + if (sDate == this._modDate) { + return; + } + + AscCommon.History.Add(new CChangesPDFAnnotModDate(this, this._modDate, sDate)); this._modDate = sDate; this.SetWasChanged(true); }; @@ -776,6 +854,11 @@ return this._modDate; }; CAnnotationBase.prototype.SetCreationDate = function(sDate) { + if (sDate == this._creationDate) { + return; + } + + AscCommon.History.Add(new CChangesPDFAnnotCreationDate(this, this._creationDate, sDate)); this._creationDate = sDate; this.SetWasChanged(true); }; @@ -791,6 +874,11 @@ }; CAnnotationBase.prototype.SetAuthor = function(sAuthor) { + if (sAuthor == this._author) { + return; + } + + AscCommon.History.Add(new CChangesPDFAnnotAuthor(this, this._author, sAuthor)); this._author = sAuthor; this.SetWasChanged(true); }; @@ -807,16 +895,34 @@ return false; }; CAnnotationBase.prototype.SetApIdx = function(nIdx) { - this.GetDocument().UpdateApIdx(nIdx); + let oDoc = Asc.editor.getPDFDoc(); + this._apIdx = nIdx; + oDoc.History.Add(new CChangesPDFAnnotApIdx(this, undefined, nIdx)); }; CAnnotationBase.prototype.GetApIdx = function() { + if (-1 == this._apIdx) { + if (undefined == this.GetId()) { + return -1; + } + else { + let nApIdx = Number(this.GetId().replace("_", "")); + if (!isNaN(nApIdx)) { + return nApIdx; + } + } + } + return this._apIdx; }; CAnnotationBase.prototype.AddToRedraw = function() { let oViewer = editor.getDocumentRenderer(); let nPage = this.GetPage(); + if (false == this.IsUseInDocument()) { + return; + } + function setRedrawPageOnRepaint() { if (oViewer.pagesInfo.pages[nPage]) { oViewer.pagesInfo.pages[nPage].needRedrawAnnots = true; @@ -835,11 +941,12 @@ CAnnotationBase.prototype.GetRGBColor = function(aInternalColor) { let oColor = {}; - if (!aInternalColor) + if (!aInternalColor || aInternalColor.length == 0) { return { r: 255, g: 255, b: 255 + } } if (aInternalColor.length == 1) { @@ -872,21 +979,12 @@ }; CAnnotationBase.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oNewAnnot = new CAnnotationBase(AscCommon.CreateGUID(), this.type, this.GetPage(), this.GetOrigRect().slice(), oDoc); oNewAnnot.lazyCopy = true; - if (this._pagePos) { - oNewAnnot._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - } - if (this._origRect) oNewAnnot._origRect = this._origRect.slice(); @@ -898,6 +996,7 @@ oNewAnnot.SetCreationDate(this.GetCreationDate()); oNewAnnot.SetContents(this.GetContents()); + oDoc.EndNoHistoryMode(); return oNewAnnot; }; @@ -921,6 +1020,8 @@ }; CAnnotationBase.prototype.SetStrokeColor = function(aColor) { + AscCommon.History.Add(new CChangesPDFAnnotStroke(this, this.GetStrokeColor(), aColor)); + this._strokeColor = aColor; this.SetWasChanged(true); @@ -983,7 +1084,7 @@ if (nPage == undefined) nPage = this.GetPage(); - memory.WriteLong(this.GetOriginPage()); + memory.WriteLong(nPage); // rect let aOrigRect = this.GetOrigRect(); @@ -998,34 +1099,23 @@ let sContents = this.GetContents(); let BES = this.GetBorderEffectStyle(); let BEI = this.GetBorderEffectIntensity(); - let aStrokeColor = this.GetStrokeColor(); + let aStrokeColor = this.GetType() == AscPDF.ANNOTATIONS_TYPES.Text ? this.GetFillColor() : this.GetStrokeColor(); let nBorder = this.GetBorder(); let nBorderW = this.GetWidth(); let sModDate = this.GetModDate(true); - if (sName != null) - Flags |= (1 << 0); - - if (sContents != null) - Flags |= (1 << 1); - - if (BES != null || BEI != null) - Flags |= (1 << 2); - if (aStrokeColor != null) - Flags |= (1 << 3); - if (nBorder != null || nBorderW != null) - Flags |= (1 << 4); - if (sModDate != null) - Flags |= (1 << 5); - - memory.WriteLong(Flags); + let nPosForFlags = memory.GetCurPosition(); + memory.Skip(4); // name - if (sName) + if (sName != null) { + Flags |= (1 << 0); memory.WriteString(sName); + } // contents if (sContents != null) { + Flags |= (1 << 1); if (typeof(sContents) != "string") sContents = sContents.GetContents(); @@ -1034,17 +1124,20 @@ // border effect if (BES != null || BEI != null) { + Flags |= (1 << 2); memory.WriteByte(BES); memory.WriteDouble(BEI); } if (aStrokeColor != null) { + Flags |= (1 << 3); memory.WriteLong(aStrokeColor.length); for (let i = 0; i < aStrokeColor.length; i++) memory.WriteDouble(aStrokeColor[i]); } if (nBorder != null || nBorderW != null) { + Flags |= (1 << 4); memory.WriteByte(nBorder); memory.WriteDouble(nBorderW); @@ -1058,8 +1151,20 @@ } if (sModDate != null) { + Flags |= (1 << 5); memory.WriteString(sModDate); } + + // render + let nEndPos = memory.GetCurPosition(); + this.WriteRenderToBinary(memory); + if (nEndPos != memory.GetCurPosition()) + Flags |= (1 << 6); + + nEndPos = memory.GetCurPosition(); + memory.Seek(nPosForFlags); + memory.WriteLong(Flags); + memory.Seek(nEndPos); }; CAnnotationBase.prototype.WriteToBinaryBase2 = function(memory) { let nType = this.GetType(); @@ -1171,7 +1276,7 @@ let nStartPos = memory.GetCurPosition(); memory.Skip(4); - this.draw(memory.AnnotsRenderer); // для каждой страницы инициализируется свой renderer + this.draw(memory.docRenderer); // для каждой страницы инициализируется свой renderer // запись длины комманд let nEndPos = memory.GetCurPosition(); @@ -1233,6 +1338,9 @@ CAnnotationBase.prototype.canEditText = function () { return false; }; + CAnnotationBase.prototype.canResize = function () { + return true; + }; function formatTimestampToPDF(timestamp) { const date = new Date(parseInt(timestamp)); diff --git a/pdf/src/annotations/circle.js b/pdf/src/annotations/circle.js index 74f7bcf91c..b76e237a0f 100644 --- a/pdf/src/annotations/circle.js +++ b/pdf/src/annotations/circle.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -53,12 +53,10 @@ this._state = undefined; this._stateModel = undefined; this._width = undefined; - - // internal - TurnOffHistory(); + this._rectDiff = [0, 0, 0, 0]; } CAnnotationCircle.prototype.constructor = CAnnotationCircle; - AscFormat.InitClass(CAnnotationCircle, AscPDF.CPdfShape, AscDFH.historyitem_type_Shape); + AscFormat.InitClass(CAnnotationCircle, AscPDF.CPdfShape, AscDFH.historyitem_type_Pdf_Annot_Circle); Object.assign(CAnnotationCircle.prototype, AscPDF.CAnnotationBase.prototype); CAnnotationCircle.prototype.IsCircle = function() { @@ -66,24 +64,16 @@ }; CAnnotationCircle.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oCircle = new CAnnotationCircle(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), oDoc); - oCircle.lazyCopy = true; - oCircle._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - oCircle._origRect = this._origRect.slice(); - this.fillObject(oCircle); - let aStrokeColor = this.GetStrokeColor(); - let aFillColor = this.GetFillColor(); + let aStrokeColor = this.GetStrokeColor(); + let aFillColor = this.GetFillColor(); + let aRD = this.GetRectangleDiff(); oCircle._apIdx = this._apIdx; oCircle._originView = this._originView; @@ -91,110 +81,132 @@ oCircle.SetAuthor(this.GetAuthor()); oCircle.SetModDate(this.GetModDate()); oCircle.SetCreationDate(this.GetCreationDate()); + aStrokeColor && oCircle.SetStrokeColor(aStrokeColor.slice()); + aFillColor && oCircle.SetFillColor(aFillColor.slice()); oCircle.SetWidth(this.GetWidth()); - oCircle.SetStrokeColor(aStrokeColor ? aStrokeColor.slice() : undefined); - oCircle.SetFillColor(aFillColor ? aFillColor.slice() : undefined); oCircle.SetOpacity(this.GetOpacity()); - oCircle.recalcInfo.recalculateGeometry = true; - this._rectDiff && oCircle.SetRectangleDiff(this._rectDiff.slice()); + oCircle.recalcGeometry() + aRD && oCircle.SetRectangleDiff(aRD.slice(), true); oCircle.SetDash(this.GetDash()); - oCircle.recalculate(); + oCircle.Recalculate(true); + oDoc.EndNoHistoryMode(); return oCircle; }; CAnnotationCircle.prototype.RefillGeometry = function(oGeometry, aShapeRectInMM) { let oViewer = editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); - let nScaleY = oViewer.drawingPages[this.GetPage()].H / oViewer.file.pages[this.GetPage()].H / oViewer.zoom * g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[this.GetPage()].W / oViewer.file.pages[this.GetPage()].W / oViewer.zoom * g_dKoef_pix_to_mm; - let aRD = this.GetRectangleDiff() || [0, 0, 0, 0]; let aOrigRect = this.GetOrigRect(); - if (!oGeometry) + if (!oGeometry) { oGeometry = this.spPr.geometry; + } if (!aShapeRectInMM) { aShapeRectInMM = [ - (aOrigRect[0] + aRD[0]) * nScaleX, (aOrigRect[1] + aRD[1]) * nScaleY, - (aOrigRect[2] - aRD[2]) * nScaleX, (aOrigRect[3] - aRD[3]) * nScaleY + (aOrigRect[0] + aRD[0]) * g_dKoef_pt_to_mm, (aOrigRect[1] + aRD[1]) * g_dKoef_pt_to_mm, + (aOrigRect[2] - aRD[2]) * g_dKoef_pt_to_mm, (aOrigRect[3] - aRD[3]) * g_dKoef_pt_to_mm ]; } - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); if (this.GetBorderEffectStyle() === AscPDF.BORDER_EFFECT_STYLES.Cloud) { generateCloudyGeometry(undefined, aShapeRectInMM, oGeometry, this.GetBorderEffectIntensity()); } else { oGeometry.Recalculate(aShapeRectInMM[2] - aShapeRectInMM[0], aShapeRectInMM[3] - aShapeRectInMM[1]); } + oDoc.EndNoHistoryMode(); }; - CAnnotationCircle.prototype.SetRect = function(aRect) { + CAnnotationCircle.prototype.SetRect = function(aOrigRect) { let oViewer = editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); - let nPage = this.GetPage(); - let aCurRect = this.GetRect(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this._rect = aRect; - this._pagePos = { - x: aRect[0], - y: aRect[1], - w: (aRect[2] - aRect[0]), - h: (aRect[3] - aRect[1]) - }; - - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; - - this.SetRectangleDiff([0, 0, 0, 0]); - oDoc.History.Add(new CChangesPDFAnnotRect(this, aCurRect, aRect)); - - oDoc.TurnOffHistory(); + let aCurRect = this.GetOrigRect(); + + let bCalcRDandRect = this._origRect.length != 0 && false == AscCommon.History.UndoRedoInProgress; + + this._origRect = aOrigRect; + + if (bCalcRDandRect) { + AscCommon.History.StartNoHistoryMode(); + + let aCurRD = this._rectDiff; + let nLineW = this.GetWidth() * g_dKoef_pt_to_mm; + this.SetRectangleDiff([0, 0, 0, 0]); + this.recalcBounds(); + this.recalcGeometry(); + this.Recalculate(true); + + AscCommon.History.EndNoHistoryMode(); + + let oGrBounds = this.bounds; + let oShapeBounds = this.getRectBounds(); + + this._origRect[0] = Math.round(oGrBounds.l - nLineW) * g_dKoef_mm_to_pt; + this._origRect[1] = Math.round(oGrBounds.t - nLineW) * g_dKoef_mm_to_pt; + this._origRect[2] = Math.round(oGrBounds.r + nLineW) * g_dKoef_mm_to_pt; + this._origRect[3] = Math.round(oGrBounds.b + nLineW) * g_dKoef_mm_to_pt; + + oDoc.History.Add(new CChangesPDFAnnotRect(this, aCurRect, aOrigRect)); + + this._rectDiff = aCurRD; + this.SetRectangleDiff([ + Math.round(oShapeBounds.l - oGrBounds.l + nLineW) * g_dKoef_mm_to_pt, + Math.round(oShapeBounds.t - oGrBounds.t + nLineW) * g_dKoef_mm_to_pt, + Math.round(oGrBounds.r - oShapeBounds.r + nLineW) * g_dKoef_mm_to_pt, + Math.round(oGrBounds.b - oShapeBounds.b + nLineW) * g_dKoef_mm_to_pt + ]); + } - this.recalcGeometry(); - this.AddToRedraw(); this.SetWasChanged(true); + this.SetNeedRecalcSizes(true); }; - CAnnotationCircle.prototype.SetRectangleDiff = function(aDiff) { + CAnnotationCircle.prototype.SetRectangleDiff = function(aDiff, bOnResize) { let oDoc = this.GetDocument(); oDoc.History.Add(new CChangesPDFAnnotRD(this, this.GetRectangleDiff(), aDiff)); this._rectDiff = aDiff; - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); + this.SetWasChanged(true); + this.SetNeedRecalcSizes(true); + this.SetNeedRecalc(true); + }; + CAnnotationCircle.prototype.SetNeedRecalcSizes = function(bRecalc) { + this._needRecalcSizes = bRecalc; + this.recalcGeometry(); + }; + CAnnotationCircle.prototype.IsNeedRecalcSizes = function() { + return this._needRecalcSizes; + }; + CAnnotationCircle.prototype.Recalculate = function(bForce) { + if (true !== bForce && false == this.IsNeedRecalc()) { + return; + } - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom * g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom * g_dKoef_pix_to_mm; + if (this.IsNeedRecalcSizes()) { + let aOrigRect = this.GetOrigRect(); + let aRD = this.GetRectangleDiff(); - let aOrigRect = this.GetOrigRect(); + let extX = ((aOrigRect[2] - aOrigRect[0]) - aRD[0] - aRD[2]) * g_dKoef_pt_to_mm; + let extY = ((aOrigRect[3] - aOrigRect[1]) - aRD[1] - aRD[3]) * g_dKoef_pt_to_mm; - this.spPr.xfrm.setOffX(aDiff[0] * nScaleX); - this.spPr.xfrm.setOffY(aDiff[1] * nScaleY); - let extX = ((aOrigRect[2] - aOrigRect[0]) - aDiff[0] - aDiff[2]) * nScaleX; - let extY = ((aOrigRect[3] - aOrigRect[1]) - aDiff[1] - aDiff[3]) * nScaleY; + this.spPr.xfrm.offX = (aOrigRect[0] + aRD[0]) * g_dKoef_pt_to_mm; + this.spPr.xfrm.offY = (aOrigRect[1] + aRD[1]) * g_dKoef_pt_to_mm; - this.spPr.xfrm.setExtX(extX); - this.spPr.xfrm.setExtY(extY); - }; - CAnnotationCircle.prototype.Recalculate = function() { - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - let aOrigRect = this.GetOrigRect(); + this.spPr.xfrm.extX = extX; + this.spPr.xfrm.extY = extY; - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom * g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom * g_dKoef_pix_to_mm; - - if (this.recalcInfo.recalculateGeometry) + this.SetNeedRecalcSizes(false); + } + if (this.recalcInfo.recalculateGeometry) { this.RefillGeometry(); - this.handleUpdatePosition(); + } + + this.recalculateTransform(); + this.updateTransformMatrix(); this.recalculate(); - this.updatePosition(aOrigRect[0] * nScaleX, aOrigRect[1] * nScaleY); + this.SetNeedRecalc(false); }; CAnnotationCircle.prototype.WriteToBinary = function(memory) { memory.WriteByte(AscCommon.CommandType.ctAnnotField); @@ -232,11 +244,6 @@ memory.Seek(nEndPos); }; - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - function generateCloudyGeometry(arrPoints, aBounds, oGeometry, nIntensity) { let xMin = aBounds[0]; let yMin = aBounds[1]; diff --git a/pdf/src/annotations/freeText.js b/pdf/src/annotations/freeText.js index a5a64442b3..36b9a59eed 100644 --- a/pdf/src/annotations/freeText.js +++ b/pdf/src/annotations/freeText.js @@ -1,6 +1,6 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -13,7 +13,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -62,7 +62,7 @@ this._popupOpen = false; this._popupRect = undefined; - this._richContents = undefined; + this._richContents = []; this._rotate = 0; this._state = undefined; this._stateModel = undefined; @@ -70,24 +70,22 @@ this._points = undefined; this._intent = undefined; this._lineEnd = undefined; - this._callout = undefined; + this._callout = []; + this._rectDiff = [0, 0, 0, 0]; this._alignment = undefined; this._defaultStyle = undefined; this.recalcInfo.recalculateGeometry = true; this.isInTextBox = false; // флаг, что внутри текстбокса this.defaultPerpLength = 12; // длина выступающего перпендикуляра callout по умолчанию - - // internal - TurnOffHistory(); - } + }; CAnnotationFreeText.prototype.constructor = CAnnotationFreeText; - AscFormat.InitClass(CAnnotationFreeText, AscFormat.CGroupShape, AscDFH.historyitem_type_GroupShape); + AscFormat.InitClass(CAnnotationFreeText, AscFormat.CGroupShape, AscDFH.historyitem_type_Pdf_Annot_FreeText); Object.assign(CAnnotationFreeText.prototype, AscPDF.CAnnotationBase.prototype); CAnnotationFreeText.prototype.GetCalloutExitPos = function(aTxBoxRect) { let aCallout = this.GetCallout(); - if (!aCallout) + if (aCallout.length == 0) return CALLOUT_EXIT_POS.none; let aTextBoxRect = aTxBoxRect || this.GetTextBoxRect(); @@ -119,24 +117,29 @@ return; } - let oBodyPr = oTxShape.txBody.bodyPr; - - switch (nAngle) { - case 0: - oBodyPr.setVert(); - break; - case 90: - oBodyPr.setVert(AscFormat.nVertTTvert270); - break; - case 180: - oBodyPr.setRot(-nAngle * 60000); - oBodyPr.setVert(AscFormat.nVertTTwordArtVert); - oBodyPr.anchor = AscFormat.VERTICAL_ANCHOR_TYPE_BOTTOM; - break; - case 270: - oBodyPr.setVert(AscFormat.nVertTTeaVert); - break; - } + AscCommon.History.Add(new CChangesPDFFreeTextRotate(this, this._rotate, nAngle)); + + AscCommon.ExecuteNoHistory(function() { + let oBodyPr = oTxShape.txBody.bodyPr; + + switch (nAngle) { + case 0: + oBodyPr.setVert(); + break; + case 90: + oBodyPr.setVert(AscFormat.nVertTTvert270); + break; + case 180: + oBodyPr.setRot(-nAngle * 60000); + oBodyPr.setVert(AscFormat.nVertTTwordArtVert); + oBodyPr.anchor = AscFormat.VERTICAL_ANCHOR_TYPE_BOTTOM; + break; + case 270: + oBodyPr.setVert(AscFormat.nVertTTeaVert); + break; + } + }, undefined, this); + this._rotate = nAngle; this.SetNeedRecalc(true); }; @@ -162,7 +165,7 @@ if (!aCallout && !aArrowPts) return undefined; - let nLineWidth = this.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; + let nLineWidth = this.GetWidth(); let oLine = { x1: aArrowPts ? aArrowPts[0] : aCallout[1 * 2], @@ -240,6 +243,7 @@ return this._defaultStyle; }; CAnnotationFreeText.prototype.SetAlign = function(nType) { + AscCommon.History.Add(new CChangesPDFFreeTextAlign(this, this._alignment, nType)); this._alignment = nType; }; CAnnotationFreeText.prototype.GetAlign = function() { @@ -249,17 +253,20 @@ this._lineEnd = nType; this.SetWasChanged(true); - - if (this.spTree.length == 3) { - let oTargetSp = this.spTree[1]; - let oLine = oTargetSp.pen; - oLine.setTailEnd(new AscFormat.EndArrow()); - let nLineEndType = getInnerLineEndType(nType); - - - oLine.tailEnd.setType(nLineEndType); - oLine.tailEnd.setLen(AscFormat.LineEndSize.Mid); - } + + AscCommon.ExecuteNoHistory(function() { + if (3 === this.spTree.length) + { + let oTargetSp = this.spTree[1]; + let oLine = oTargetSp.pen; + oLine.setTailEnd(new AscFormat.EndArrow()); + let nLineEndType = getInnerLineEndType(nType); + + + oLine.tailEnd.setType(nLineEndType); + oLine.tailEnd.setLen(AscFormat.LineEndSize.Mid); + } + }, undefined, this); }; CAnnotationFreeText.prototype.GetLineEnd = function() { return this._lineEnd; @@ -271,64 +278,83 @@ this._rectDiff = aDiff; this.recalcGeometry(); this.SetWasChanged(true); - this.AddToRedraw(); + this.SetNeedRecalc(true); }; /** - * Выставлят настройки ширины линии, цвета и тд для внутренних фигур. + * Проверяет и выставляет настройки ширины линии, цвета и тд для внутренних фигур. * @constructor */ CAnnotationFreeText.prototype.CheckInnerShapesProps = function() { let nOpacity = this.GetOpacity(); - let oStrokeColor = this.GetStrokeColor() || [0, 0, 0]; - if (oStrokeColor) { - let oRGB = this.GetRGBColor(oStrokeColor); - let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); - oFill.transparent = nOpacity * 100 * 2.55; - - let oTxBoxShape = this.GetTextBoxShape(); - let oLine = oTxBoxShape.spPr.ln; - if (this.GetWidth() == 0) { - oLine.setFill(AscFormat.CreateNoFillUniFill()); - } - else { - oLine.setFill(oFill); - } - - for (let i = 0; i < this.spTree.length; i++) { - let oLine = this.spTree[i].spPr.ln; - oLine.setFill(oFill); - } - } - - let oFillColor = this.GetFillColor() || [1, 1, 1]; - if (oFillColor) { - let oRGB = this.GetRGBColor(oFillColor); - let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); - oFill.transparent = nOpacity * 100 * 2.55; - for (let i = 0; i < this.spTree.length; i++) { - this.spTree[i].setFill(oFill); - } - } - - let nWidthPt = this.GetWidth(); - nWidthPt = nWidthPt > 0 ? nWidthPt : 0.5; - for (let i = 0; i < this.spTree.length; i++) { - let oLine = this.spTree[i].spPr.ln; - oLine.setW(nWidthPt * g_dKoef_pt_to_mm * 36000.0); - oLine.Fill.transparent = nOpacity * 100 * 2.55; - } - - let nLineEndType = this.GetLineEnd(); - if (this.spTree[1] && this.spTree[1].getPresetGeom() == "line") { - let oTargetSp = this.spTree[1]; - let oLine = oTargetSp.spPr.ln; - oLine.setTailEnd(new AscFormat.EndArrow()); - let nInnerType = getInnerLineEndType(nLineEndType); - - oLine.tailEnd.setType(nInnerType); - oLine.tailEnd.setLen(AscFormat.LineEndSize.Mid); - } + AscCommon.ExecuteNoHistory(function() { + let aStrokeColor = this.GetStrokeColor(); + if (!aStrokeColor || aStrokeColor.length == 0) { + aStrokeColor = [0, 0, 0]; + } + + if (aStrokeColor) { + let oRGB = this.GetRGBColor(aStrokeColor); + let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); + oFill.transparent = nOpacity * 100 * 2.55; + + let oTxBoxShape = this.GetTextBoxShape(); + let oLine = oTxBoxShape.spPr.ln; + if (this.GetWidth() == 0) { + oLine.setFill(AscFormat.CreateNoFillUniFill()); + } + else { + oLine.setFill(oFill); + } + + for (let i = 0; i < this.spTree.length; i++) { + let oLine = this.spTree[i].spPr.ln; + oLine.setFill(oFill); + } + } + + let aFillColor = this.GetFillColor(); + if (!aFillColor || aFillColor.length == 0) { + aFillColor = [1, 1, 1]; + } + + if (aFillColor) { + let oRGB = this.GetRGBColor(aFillColor); + let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); + oFill.transparent = nOpacity * 100 * 2.55; + for (let i = 0; i < this.spTree.length; i++) { + this.spTree[i].setFill(oFill); + } + } + + let nWidthPt = this.GetWidth(); + for (let i = 0; i < this.spTree.length; i++) { + let oLine = this.spTree[i].spPr.ln; + if (nWidthPt == 0 && this.GetTextBoxShape() !== this.spTree[i]) { + oLine.setW(0.5 * g_dKoef_pt_to_mm * 36000.0); + } + else { + if (nWidthPt == 0) { + oLine.setFill(AscFormat.CreateNoFillUniFill()); + } + + oLine.setW(nWidthPt * g_dKoef_pt_to_mm * 36000.0); + } + + oLine.Fill.transparent = nOpacity * 100 * 2.55; + } + + let nLineEndType = this.GetLineEnd(); + if (this.spTree[1] && this.spTree[1].getPresetGeom() == "line") { + let oTargetSp = this.spTree[1]; + let oLine = oTargetSp.spPr.ln; + oLine.setTailEnd(new AscFormat.EndArrow()); + let nInnerType = getInnerLineEndType(nLineEndType); + + oLine.tailEnd.setType(nInnerType); + oLine.tailEnd.setLen(AscFormat.LineEndSize.Mid); + } + }, undefined, this); }; CAnnotationFreeText.prototype.SetCallout = function(aCallout) { let oDoc = this.GetDocument(); @@ -337,147 +363,132 @@ this._callout = aCallout; this.recalcGeometry(); this.SetWasChanged(true); - this.AddToRedraw(); + this.SetNeedRecalc(true); }; CAnnotationFreeText.prototype.GetCallout = function(bScaled) { - if (bScaled != true || !this._callout) - return this._callout; - - let oViewer = Asc.editor.getDocumentRenderer(); - let nPage = this.GetPage(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - return this._callout.slice().map(function(measure, idx) { - return idx % 2 == 0 ? measure * nScaleX : measure * nScaleY; - }); - }; - CAnnotationFreeText.prototype.SetWidth = function(nWidthPt) { - this._width = nWidthPt; - - for (let i = 1; i < this.spTree.length; i++) { - let oLine = this.spTree[i].spPr.ln; - oLine.setW((nWidthPt || 0.5) * g_dKoef_pt_to_mm * 36000.0); - } - }; - CAnnotationFreeText.prototype.SetStrokeColor = function(aColor) { - this._strokeColor = aColor; - - let oRGB = this.GetRGBColor(aColor); - let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); - - let oTxBoxShape = this.GetTextBoxShape(); - let oLine = oTxBoxShape.spPr.ln; - if (this.GetWidth() == 0) { - oLine.setFill(AscFormat.CreateNoFillUniFill()); - } - else { - oLine.setFill(oFill); - } - - - for (let i = 1; i < this.spTree.length; i++) { - let oLine = this.spTree[i].spPr.ln; - oLine.setFill(oFill); - } - }; - CAnnotationFreeText.prototype.SetOpacity = function(value) { - this._opacity = value; - this.SetWasChanged(true); - - for (let i = 1; i < this.spTree.length; i++) { - let oLine = this.spTree[i].spPr.ln; - oLine.Fill.transparent = value * 100 * 2.55; - - let oFill = this.spPr.Fill; - oFill.transparent = value * 100 * 2.55; - - this.spTree[i].handleUpdateLn(); - this.spTree[i].handleUpdateFill(); - } + return this._callout; }; - CAnnotationFreeText.prototype.SetFillColor = function(aColor) { - this._fillColor = aColor; - - let oRGB = this.GetRGBColor(aColor); - let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); - for (let i = 0; i < this.spTree.length; i++) { - this.spTree[i].setFill(oFill); - } - }; - CAnnotationFreeText.prototype.SetRect = function(aRect) { - let oViewer = editor.getDocumentRenderer(); - let oDoc = oViewer.getPDFDoc(); - let nPage = this.GetPage(); - - oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetRect(), aRect)); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this._rect = aRect; - - this._pagePos = { - x: aRect[0], - y: aRect[1], - w: (aRect[2] - aRect[0]), - h: (aRect[3] - aRect[1]) - }; - - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; - - oDoc.TurnOffHistory(); - - this.spPr.xfrm.extX = this._pagePos.w * g_dKoef_pix_to_mm; - this.spPr.xfrm.extY = this._pagePos.h * g_dKoef_pix_to_mm; - this.spPr.xfrm.setOffX(aRect[0] * g_dKoef_pix_to_mm); - this.spPr.xfrm.setOffY(aRect[1] * g_dKoef_pix_to_mm); - this.updateTransformMatrix(); - - this.recalcGeometry(); - this.SetNeedRecalc(true); - this.SetWasChanged(true); - }; - CAnnotationFreeText.prototype.GetTextBoxRect = function(bScale) { - let oViewer = Asc.editor.getDocumentRenderer(); + CAnnotationFreeText.prototype.SetWidth = function(nWidthPt) { + AscCommon.History.Add(new CChangesPDFAnnotStrokeWidth(this, this.GetWidth(), nWidthPt)); + + this._width = nWidthPt; + + AscCommon.ExecuteNoHistory(function() { + for (let i = 1; i < this.spTree.length; i++) { + let oLine = this.spTree[i].spPr.ln; + if (nWidthPt == 0 && this.spTree[i] != this.GetTextBoxShape()) { + oLine.setW(0.5 * g_dKoef_pt_to_mm * 36000.0); + } + else { + if (nWidthPt == 0) { + oLine.setFill(AscFormat.CreateNoFillUniFill()); + } + else { + this.SetStrokeColor(this.GetStrokeColor()); + } + + oLine.setW(nWidthPt * g_dKoef_pt_to_mm * 36000.0); + } + } + }, undefined, this); + }; + CAnnotationFreeText.prototype.SetStrokeColor = function(aColor) { + AscCommon.History.Add(new CChangesPDFAnnotStroke(this, this.GetStrokeColor(), aColor)); + + this._strokeColor = aColor; + + AscCommon.ExecuteNoHistory(function() { + let oRGB = this.GetRGBColor(aColor); + let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); + + let oTxBoxShape = this.GetTextBoxShape(); + let oLine = oTxBoxShape.spPr.ln; + if (this.GetWidth() == 0) { + oLine.setFill(AscFormat.CreateNoFillUniFill()); + } + else { + oLine.setFill(oFill); + } + for (let i = 1; i < this.spTree.length; i++) { + let oLine = this.spTree[i].spPr.ln; + oLine.setFill(oFill); + } + }, undefined, this); + }; + CAnnotationFreeText.prototype.SetOpacity = function(value) { + this._opacity = value; + this.SetWasChanged(true); + + AscCommon.ExecuteNoHistory(function() { + for (let i = 1; i < this.spTree.length; i++) { + let oLine = this.spTree[i].spPr.ln; + oLine.Fill.transparent = value * 100 * 2.55; + + let oFill = this.spPr.Fill; + oFill.transparent = value * 100 * 2.55; + + this.spTree[i].handleUpdateLn(); + this.spTree[i].handleUpdateFill(); + } + }, undefined, this); + }; + CAnnotationFreeText.prototype.SetFillColor = function(aColor) { + AscCommon.History.Add(new CChangesPDFAnnotFill(this, this.GetFillColor(), aColor)); + + this._fillColor = aColor; + + AscCommon.ExecuteNoHistory(function() { + let oRGB = this.GetRGBColor(aColor); + let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); + for (let i = 0; i < this.spTree.length; i++) + { + this.spTree[i].setFill(oFill); + } + }, undefined, this); + }; + CAnnotationFreeText.prototype.SetRect = function(aOrigRect) { + AscCommon.History.Add(new CChangesPDFAnnotRect(this, this.GetOrigRect(), aOrigRect)); + + this._origRect = aOrigRect; + + let oXfrm = this.getXfrm(); + if (oXfrm) { + AscCommon.ExecuteNoHistory(function() { + this.spPr.xfrm.extX = (aOrigRect[2] - aOrigRect[0]) * g_dKoef_pt_to_mm; + this.spPr.xfrm.extY = (aOrigRect[3] - aOrigRect[1]) * g_dKoef_pt_to_mm; + this.spPr.xfrm.offX = aOrigRect[0] * g_dKoef_pt_to_mm; + this.spPr.xfrm.offY = aOrigRect[1] * g_dKoef_pt_to_mm; + this.updateTransformMatrix(); + this.recalcGeometry(); + }, undefined, this); + } + + this.SetNeedRecalc(true); + this.SetWasChanged(true); + }; + CAnnotationFreeText.prototype.GetTextBoxRect = function() { let aOrigRect = this.GetOrigRect(); let aRD = this.GetRectangleDiff() || [0, 0, 0, 0]; // отступ координат фигуры с текстом от ректа аннотации - let nPage = this.GetPage(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - let xMin = bScale ? nScaleX * (aOrigRect[0] + aRD[0]) : (aOrigRect[0] + aRD[0]); - let yMin = bScale ? nScaleY * (aOrigRect[1] + aRD[1]) : (aOrigRect[1] + aRD[1]); - let xMax = bScale ? nScaleX * (aOrigRect[2] - aRD[2]) : (aOrigRect[2] - aRD[2]); - let yMax = bScale ? nScaleY * (aOrigRect[3] - aRD[3]) : (aOrigRect[3] - aRD[3]); + let xMin = (aOrigRect[0] + aRD[0]); + let yMin = (aOrigRect[1] + aRD[1]); + let xMax = (aOrigRect[2] - aRD[2]); + let yMax = (aOrigRect[3] - aRD[3]); - return [xMin, yMin, xMax, yMax] + return [xMin, yMin, xMax, yMax]; }; CAnnotationFreeText.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oFreeText = new CAnnotationFreeText(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), oDoc); oFreeText.lazyCopy = true; - oFreeText._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - oFreeText._origRect = this._origRect.slice(); - - // this.copy2(oFreeText); - // oFreeText.recalculate(); - - let aStrokeColor = this.GetStrokeColor(); - let aFillColor = this.GetFillColor(); + let aStrokeColor = this.GetStrokeColor(); + let aFillColor = this.GetFillColor(); + let aCallout = this.GetCallout(); + let aRD = this.GetRectangleDiff(); oFreeText._apIdx = this._apIdx; oFreeText._originView = this._originView; @@ -485,34 +496,30 @@ oFreeText.SetAuthor(this.GetAuthor()); oFreeText.SetModDate(this.GetModDate()); oFreeText.SetCreationDate(this.GetCreationDate()); - oFreeText.SetWidth(this.GetWidth()); oFreeText.SetContents(this.GetContents()); - oFreeText.SetStrokeColor(aStrokeColor ? aStrokeColor.slice() : undefined); - oFreeText.SetFillColor(aFillColor ? aFillColor.slice() : undefined); + aStrokeColor && oFreeText.SetStrokeColor(aStrokeColor.slice()); + aFillColor && oFreeText.SetFillColor(aFillColor.slice()); + oFreeText.SetWidth(this.GetWidth()); oFreeText.SetLineEnd(this.GetLineEnd()); oFreeText.SetOpacity(this.GetOpacity()); - oFreeText.recalcInfo.recalculateGeometry = false; - oFreeText._callout = this._callout ? this._callout.slice() : undefined; - oFreeText._rectDiff = this._rectDiff ? this._rectDiff.slice() : undefined; + aCallout && oFreeText.SetCallout(aCallout.slice()); + aRD && oFreeText.SetRectangleDiff(aRD.slice()); oFreeText.SetWasChanged(oFreeText.IsChanged()); oFreeText.recalcGeometry(); + oDoc.EndNoHistoryMode(); return oFreeText; }; CAnnotationFreeText.prototype.Recalculate = function() { if (this.IsNeedRecalc() == false) return; - let aRect = this.GetRect(); - this.spPr.xfrm.setOffX(aRect[0] * g_dKoef_pix_to_mm); - this.spPr.xfrm.setOffY(aRect[1] * g_dKoef_pix_to_mm); - if (this.recalcInfo.recalculateGeometry) this.RefillGeometry(); - this.recalculate(); this.recalculateTransform(); this.updateTransformMatrix(); + this.recalculate(); this.spTree.forEach(function(sp, idx) { idx == 0 && sp.recalculateContent(); sp.recalculateTransform(); @@ -528,10 +535,6 @@ let aOrigRect = this.GetOrigRect(); let aCallout = this.GetCallout(); // координаты выходящей стрелки let aRD = this.GetRectangleDiff() || [0, 0, 0, 0]; // отступ координат фигуры с текстом от ректа аннотации - let nPage = this.GetPage(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom * g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom * g_dKoef_pix_to_mm; let aFreeTextPoints = []; let aFreeTextRect = []; // прямоугольник @@ -539,48 +542,48 @@ // левый верхний aFreeTextRect.push({ - x: (aOrigRect[0] + aRD[0]) * nScaleX, - y: (aOrigRect[1] + aRD[1]) * nScaleY + x: (aOrigRect[0] + aRD[0]) * g_dKoef_pt_to_mm, + y: (aOrigRect[1] + aRD[1]) * g_dKoef_pt_to_mm }); // правый верхний aFreeTextRect.push({ - x: (aOrigRect[2] - aRD[2]) * nScaleX, - y: (aOrigRect[1] + aRD[1]) * nScaleY + x: (aOrigRect[2] - aRD[2]) * g_dKoef_pt_to_mm, + y: (aOrigRect[1] + aRD[1]) * g_dKoef_pt_to_mm }); // правый нижний aFreeTextRect.push({ - x: (aOrigRect[2] - aRD[2]) * nScaleX, - y: (aOrigRect[3] - aRD[3]) * nScaleY + x: (aOrigRect[2] - aRD[2]) * g_dKoef_pt_to_mm, + y: (aOrigRect[3] - aRD[3]) * g_dKoef_pt_to_mm }); // левый нижний aFreeTextRect.push({ - x: (aOrigRect[0] + aRD[0]) * nScaleX, - y: (aOrigRect[3] - aRD[3]) * nScaleY + x: (aOrigRect[0] + aRD[0]) * g_dKoef_pt_to_mm, + y: (aOrigRect[3] - aRD[3]) * g_dKoef_pt_to_mm }); if (aCallout && aCallout.length == 6) { // точка выхода callout aFreeTextLine90.push({ - x: (aCallout[2 * 2]) * nScaleX, - y: (aCallout[2 * 2 + 1]) * nScaleY + x: (aCallout[2 * 2]) * g_dKoef_pt_to_mm, + y: (aCallout[2 * 2 + 1]) * g_dKoef_pt_to_mm }); aFreeTextLine90.push({ - x: (aCallout[2 * 1]) * nScaleX, - y: (aCallout[2 * 1 + 1]) * nScaleY + x: (aCallout[2 * 1]) * g_dKoef_pt_to_mm, + y: (aCallout[2 * 1 + 1]) * g_dKoef_pt_to_mm }); } let aCalloutLine = []; - if (aCallout) { + if (aCallout.length != 0) { // x2, y2 линии aCalloutLine.push({ - x: aCallout[1 * 2] * nScaleX, - y: (aCallout[1 * 2 + 1]) * nScaleY + x: aCallout[1 * 2] * g_dKoef_pt_to_mm, + y: (aCallout[1 * 2 + 1]) * g_dKoef_pt_to_mm }); // x1, y1 линии aCalloutLine.push({ - x: aCallout[0 * 2] * nScaleX, - y: (aCallout[0 * 2 + 1]) * nScaleY + x: aCallout[0 * 2] * g_dKoef_pt_to_mm, + y: (aCallout[0 * 2 + 1]) * g_dKoef_pt_to_mm }); } @@ -590,21 +593,23 @@ if (aFreeTextLine90.length != 0) aFreeTextPoints.push(aFreeTextLine90); - let aShapeRectInMM = this.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + let aShapeRectInMM = this.GetOrigRect().map(function(measure) { + return measure * g_dKoef_pt_to_mm; }); - oDoc.TurnOffHistory(); - fillShapeByPoints(aFreeTextPoints, aShapeRectInMM, this); + oDoc.StartNoHistoryMode(); + fillShapeByPoints(aFreeTextPoints, aShapeRectInMM, this); this.recalcInfo.recalculateGeometry = false; this.CheckInnerShapesProps(); + + oDoc.EndNoHistoryMode(); }; CAnnotationFreeText.prototype.recalcGeometry = function () { this.recalcInfo.recalculateGeometry = true; }; CAnnotationFreeText.prototype.RemoveComment = function() { - this.SetReplies([]); + this.EditCommentData(undefined); }; CAnnotationFreeText.prototype.SetContents = function(contents) { if (this.GetContents() == contents) @@ -624,11 +629,35 @@ this.SetWasChanged(true); }; - CAnnotationFreeText.prototype.SetNeedUpdateRC = function(bUpdate) { - this._needUpdateRC = bUpdate; - }; CAnnotationFreeText.prototype.IsNeedUpdateRC = function() { - return this._needUpdateRC; + let aCurRC = this.GetRichContents(); + let aCalcedRC = this.GetRichContents(true); + + // compare rich contents + if (aCurRC.length !== aCalcedRC.length) { + return true; + } + + for (let i = 0; i < aCurRC.length; i++) { + let curRC = aCurRC[i]; + let calcedRC = aCalcedRC[i]; + + let curKeys = Object.keys(curRC); + let calcedKeys = Object.keys(calcedRC); + + if (curKeys.length !== calcedKeys.length) { + return true; + } + + for (let i = 0; i < curKeys.length; i++) { + let key = curKeys[i]; + if (curRC[key] !== calcedRC[key]) { + return true; + } + } + } + + return false; }; CAnnotationFreeText.prototype.SetRichContents = function(aRCInfo) { let oDoc = this.GetDocument(); @@ -638,22 +667,26 @@ let oLastUsedPara = oContent.GetElement(0); oLastUsedPara.RemoveFromContent(0, oLastUsedPara.GetElementsCount()); - this._richContents = aRCInfo; oDoc.History.Add(new CChangesPDFFreeTextRC(this, this.GetRichContents(), aRCInfo)); + this._richContents = aRCInfo; if (!aRCInfo) { this.SetNeedRecalc(true); - this.SetNeedUpdateRC(false); return; } - for (let i = 0; i < aRCInfo.length; i++) { - let oRCInfo = aRCInfo[i]; - - let oRun = new ParaRun(oLastUsedPara, false); - - let oRGB = AscPDF.CBaseField.prototype.GetRGBColor(oRCInfo["color"]); + function setRunPr(oRun, oRCInfo) { let oRFonts = new CRFonts(); + let oRGB = AscPDF.CBaseField.prototype.GetRGBColor(oRCInfo["color"]); + let nVertAlign = AscCommon.vertalign_Baseline; + if (typeof(oRCInfo["vertical"]) == "number") { + if (oRCInfo["vertical"] >= 0) { + nVertAlign = AscCommon.vertalign_SuperScript; + } + else if (oRCInfo["vertical"] < 0) { + nVertAlign = AscCommon.vertalign_SubScript; + } + } if (oRCInfo["actual"]) { oRFonts.SetAll(oRCInfo["actual"], -1); @@ -672,22 +705,35 @@ oRun.SetUnderline(Boolean(oRCInfo["underlined"])); oRun.SetFontSize(oRCInfo["size"]); oRun.Set_RFonts2(oRFonts); + oRun.SetVertAlign(nVertAlign); + } + + for (let i = 0; i < aRCInfo.length; i++) { + let oRCInfo = aRCInfo[i]; - let oIterator = oRCInfo["text"].replace('\r', '').getUnicodeIterator(); + let oRun = new ParaRun(oLastUsedPara, false); + setRunPr(oRun, oRCInfo); oLastUsedPara.AddToContentToEnd(oRun); - oLastUsedPara.Set_Align(AscPDF.getInternalAlignByPdfType(oRCInfo["alignment"])); + for (let nChar = 0; nChar < oRCInfo["text"].length; nChar++) { + let nCharCode = oRCInfo["text"][nChar].charCodeAt(0); + + if (nCharCode == 13) { + oLastUsedPara.Correct_Content(); + oLastUsedPara.AddToParagraph(new AscWord.ParaTextPr(oRun.GetTextPr())); - if (oRCInfo["text"].indexOf('\r') != -1) { - oLastUsedPara = new AscWord.Paragraph(oContent, true); - oContent.Internal_Content_Add(oContent.GetElementsCount(), oLastUsedPara); - } + oLastUsedPara = new AscWord.Paragraph(oContent, true); + oContent.Internal_Content_Add(oContent.GetElementsCount(), oLastUsedPara); - while (oIterator.check()) { - let runElement = AscPDF.codePointToRunElement(oIterator.value()); - oRun.Add(runElement); - oIterator.next(); - } + oRun = new ParaRun(oLastUsedPara, false); + setRunPr(oRun, oRCInfo); + oLastUsedPara.AddToContentToEnd(oRun); + oLastUsedPara.Set_Align(AscPDF.getInternalAlignByPdfType(oRCInfo["alignment"])); + } + else { + oRun.AddToContentToEnd(AscPDF.codePointToRunElement(nCharCode)); + } + } } let _t = this; @@ -698,12 +744,10 @@ }, ""), _t, resolve); }).then(function() { _t.SetNeedRecalc(true); - _t.SetNeedUpdateRC(false); }) } else { _t.SetNeedRecalc(true); - _t.SetNeedUpdateRC(false); } }; CAnnotationFreeText.prototype.GetRichContents = function(bCalced) { @@ -713,46 +757,77 @@ let oContent = this.GetDocContent(); let aRCInfo = []; + function compareRCInfo(obj1, obj2) { + if (typeof obj1 !== 'object' || typeof obj2 !== 'object') { + return false; + } + + const keys1 = Object.keys(obj1); + const keys2 = Object.keys(obj2); + + if (keys1.length !== keys2.length) { + return false; + } + + for (let i = 0; i < keys1.length; i++) { + let key = keys1[i]; + if (obj1[key] !== obj2[key]) { + return false; + } + } + + return true; + } + for (let i = 0, nCount = oContent.GetElementsCount(); i < nCount; i++) { let oPara = oContent.GetElement(i); for (let j = 0, nRunsCount = oPara.GetElementsCount(); j < nRunsCount; j++) { let oRun = oPara.GetElement(j); let sText = oRun.GetText(); - if (sText) { - let oUniColor = oRun.Pr.Unifill; - let oRGBA = oUniColor ? oUniColor.fill.color.color.RGBA : null; - let aPdfColor = oRGBA ? [oRGBA.R / 255, oRGBA.G / 255, oRGBA.B / 255] : [0, 0, 0]; - - let sFont = oRun.Get_RFonts().Ascii.Name; - let isEmbed = false; - let prefix = AscFonts.getEmbeddedFontPrefix(); - - if (sFont.startsWith(prefix)) { - sFont = sFont.substr(prefix.length); - isEmbed = true; - } - - let oRCInfo = { - "alignment": AscPDF.getPdfTypeAlignByInternal(oRun.Paragraph.GetParagraphAlign()), - "bold": oRun.Get_Bold(), - "italic": oRun.Get_Italic(), - "strikethrough": oRun.Get_Strikeout(), - "underlined": oRun.Get_Underline(), - "size": oRun.Get_FontSize(), - "color": aPdfColor, - "text": sText - }; - - if (isEmbed) { - oRCInfo["name"] = sFont; - } - else { - oRCInfo["actual"] = sFont; - } + let oUniColor = oRun.Pr.Unifill; + let oRGBA = oUniColor ? oUniColor.fill.color.color.RGBA : null; + let aPdfColor = oRGBA ? [oRGBA.R / 255, oRGBA.G / 255, oRGBA.B / 255] : [0, 0, 0]; + + let sFont = oRun.Get_RFonts().Ascii.Name; + let isEmbed = false; + let prefix = AscFonts.getEmbeddedFontPrefix(); + + let nVertAlign; + switch (oRun.GetVertAlign()) { + case AscCommon.vertalign_SuperScript: + nVertAlign = 0; + break; + case AscCommon.vertalign_SubScript: + nVertAlign = -0.01; + break; + } - aRCInfo.push(oRCInfo); + if (sFont.startsWith(prefix)) { + sFont = sFont.substr(prefix.length); + isEmbed = true; + } + + let oRCInfo = { + "alignment": AscPDF.getPdfTypeAlignByInternal(oRun.Paragraph.GetParagraphAlign()), + "bold": oRun.Get_Bold(), + "italic": oRun.Get_Italic(), + "strikethrough": oRun.Get_Strikeout(), + "underlined": oRun.Get_Underline(), + "size": oRun.Get_FontSize(), + "color": aPdfColor, + "text": sText, + "vertical": nVertAlign + }; + + if (isEmbed) { + oRCInfo["name"] = sFont; + } + else { + oRCInfo["actual"] = sFont; } + + aRCInfo.push(oRCInfo); } if (aRCInfo[aRCInfo.length - 1]) @@ -761,25 +836,6 @@ return aRCInfo; }; - CAnnotationFreeText.prototype.SetReplies = function(aReplies) { - let oDoc = this.GetDocument(); - let oViewer = editor.getDocumentRenderer(); - - if (oDoc.History.UndoRedoInProgress == false && oViewer.IsOpenAnnotsInProgress == false) { - oDoc.History.Add(new CChangesPDFAnnotReplies(this, this._replies, aReplies)); - } - this._replies = aReplies; - - let oThis = this; - aReplies.forEach(function(reply) { - reply.SetReplyTo(oThis); - }); - - if (aReplies.length != 0) - oDoc.CheckComment(this); - else - editor.sync_RemoveComment(this.GetId()); - }; CAnnotationFreeText.prototype.GetAllFonts = function(fontMap) { let aRCInfo = this.GetRichContents(); fontMap = fontMap || {}; @@ -829,7 +885,7 @@ CAnnotationFreeText.prototype.GetAscCommentData = function() { let oAscCommData = new Asc.asc_CCommentDataWord(null); if (this._replies.length == 0) - return oAscCommData; + return undefined; let oMainComm = this._replies[0]; oAscCommData.asc_putText(oMainComm.GetContents()); @@ -838,7 +894,7 @@ oAscCommData.asc_putUserName(oMainComm.GetAuthor()); oAscCommData.asc_putSolved(false); oAscCommData.asc_putQuoteText(""); - oAscCommData.m_sUserData = oMainComm.GetApIdx(); + oAscCommData.m_sUserData = oMainComm.GetId(); this._replies.forEach(function(reply, index) { if (index == 0) @@ -899,7 +955,7 @@ this.selectedObjects.length = 0; this.spTree.forEach(function(sp) { - if (!(sp instanceof AscFormat.CConnectionShape)) { + if (!(sp instanceof AscPDF.CPdfConnectionShape)) { sp.selectStartPage = _t.selectStartPage; _t.selectedObjects.push(sp); } @@ -907,7 +963,7 @@ } } else { - if (e.shiftKey) { + if (e.ShiftKey) { this.GetDocContent().StartSelectionFromCurPos(); oDoc.SelectionSetEnd(x, y, e); } @@ -961,12 +1017,22 @@ }; CAnnotationFreeText.prototype.SetInTextBox = function(isIn) { let oDoc = this.GetDocument(); + if (this.isInTextBox == isIn) { + return; + } + if (isIn) { this.selection.textSelection = this.GetTextBoxShape(); + this._prevRect = this.GetRect().slice(); + this._prevRectDiff = (this.GetRectangleDiff() || [0, 0, 0, 0]).slice(); + this._prevCallout = this.GetCallout().slice(); oDoc.SetLocalHistory(); } else { oDoc.SetGlobalHistory(); + this._prevRect = undefined; + this._prevRectDiff = undefined; + this._prevCallout = undefined; } if (false == this.IsChanged()) { @@ -988,18 +1054,32 @@ CAnnotationFreeText.prototype.OnChangeTextContent = function() { this.FitTextBox(); this.SetNeedRecalc(true); - this.SetNeedUpdateRC(true); let docContent = this.GetDocContent(); docContent.RecalculateCurPos(); }; CAnnotationFreeText.prototype.EnterText = function(value) { - let doc = this.GetDocument(); let docContent = this.GetDocContent(); - - doc.CreateNewHistoryPoint({objects : [this]}); - - let result = docContent.EnterText(value); + let codePoints = typeof(value) === "string" ? value.codePointsArray() : value; + + function correctCodePoints(codePoints) { + function correctCodePoint(codePoint) { + if ([9, 10, 13].includes(codePoint)) { + return 32; + } + else { + return codePoint; + } + } + + if (Array.isArray(codePoints)) { + return codePoints.map(correctCodePoint); + } + + return correctCodePoint(codePoints); + }; + + let result = docContent.EnterText(correctCodePoints(codePoints)); this.OnChangeTextContent(); return result; }; @@ -1007,8 +1087,6 @@ let doc = this.GetDocument(); let docContent = this.GetDocContent(); - doc.CreateNewHistoryPoint({objects: [this]}); - // TODO: Нужно реализовать метод checkAsYouType, чтобы он проверял что иммено сейчас происходил ввод в данном месте let result = docContent.CorrectEnterText(oldValue, newValue, function(run, inRunPos, codePoint){ return true; @@ -1032,9 +1110,6 @@ * @typeofeditors ["PDF"] */ CAnnotationFreeText.prototype.Remove = function(nDirection, isCtrlKey) { - let oDoc = this.GetDocument(); - oDoc.CreateNewHistoryPoint({objects: [this]}); - let oContent = this.GetDocContent(); oContent.Remove(nDirection, true, false, false, isCtrlKey); oContent.RecalculateCurPos(); @@ -1045,7 +1120,6 @@ } else { this.SetNeedRecalc(true); - this.SetNeedUpdateRC(true); } }; CAnnotationFreeText.prototype.SelectAllText = function() { @@ -1064,24 +1138,27 @@ let sText = oContent.GetSelectedText(false, {NewLineParagraph: true, ParaSeparator: '\r'}).replace('\r', ''); oContent.SetApplyToAll(false); - this.SetInTextBox(false); - - if (this.GetContents() != sText || this.IsNeedUpdateRC()) { - oDoc.CreateNewHistoryPoint(); - this.GetContents() != sText && this.SetContents(sText); + let isNeedUpdateRC = this.IsNeedUpdateRC(); + if ((this.GetContents() != sText || isNeedUpdateRC) && this.IsInTextBox()) { + oDoc.DoAction(function() { + this.GetContents() != sText && this.SetContents(sText); - if (this.IsNeedUpdateRC()) { - let aCurRc = this.GetRichContents(); - let aNewRc = this.GetRichContents(true); - - this._richContents = aNewRc; - oDoc.History.Add(new CChangesPDFFreeTextRC(this, aCurRc, aNewRc)); - this.SetNeedUpdateRC(false); - } - - oDoc.TurnOffHistory(); + if (isNeedUpdateRC) { + let aCurRc = this.GetRichContents(); + let aNewRc = this.GetRichContents(true); + + this._richContents = aNewRc; + + oDoc.History.Add(new CChangesFreeTextCallout(this, this._prevCallout, this.GetCallout())); + oDoc.History.Add(new CChangesPDFAnnotRD(this, this._prevRectDiff, this.GetRectangleDiff())); + oDoc.History.Add(new CChangesPDFAnnotRect(this, this._prevRect, this.GetRect())); + oDoc.History.Add(new CChangesPDFFreeTextRC(this, aCurRc, aNewRc)); + oDoc.private_UpdateTargetForCollaboration(true); + } + }, AscDFH.historydescription_Pdf_UpdateAnnotRC, this); } + this.SetInTextBox(false); this.resetSelection(); oDoc.GetDrawingDocument().TargetEnd(); }; @@ -1100,10 +1177,6 @@ let nLengthToCheck = oDoc.Viewer.isLandscapePage(nPage) ? oTextBoxShape.extX : oTextBoxShape.extY; if (nContentH > nLengthToCheck) { - let oViewer = Asc.editor.getDocumentRenderer(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - let aCurTextBoxRect = this.GetTextBoxRect(); let xMin = aCurTextBoxRect[0]; @@ -1114,33 +1187,33 @@ // Adjusting the text box rect based on rotation angle switch (nRotAngle) { case 0: - yMax += (nContentH - nLengthToCheck + 0.5) * g_dKoef_mm_to_pix / nScaleY; + yMax += (nContentH - nLengthToCheck + 0.5) * g_dKoef_mm_to_pt; break; case 90: - xMax += (nContentH - nLengthToCheck + 0.5) * g_dKoef_mm_to_pix / nScaleX; + xMax += (nContentH - nLengthToCheck + 0.5) * g_dKoef_mm_to_pt; break; case 180: - yMin -= (nContentH - nLengthToCheck + 0.5) * g_dKoef_mm_to_pix / nScaleY; + yMin -= (nContentH - nLengthToCheck + 0.5) * g_dKoef_mm_to_pt; break; case 270: - xMin -= (nContentH - nLengthToCheck + 0.5) * g_dKoef_mm_to_pix / nScaleX; + xMin -= (nContentH - nLengthToCheck + 0.5) * g_dKoef_mm_to_pt; break; } let aNewTextBoxRect = [xMin, yMin, xMax, yMax]; // расширяем рект на ширину линии (или на радиус cloud бордера) - let nLineWidth = this.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; + let nLineWidth = this.GetWidth(); if (this.GetBorderEffectStyle() === AscPDF.BORDER_EFFECT_STYLES.Cloud) { - aNewTextBoxRect[0] -= this.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pix * nScaleX; - aNewTextBoxRect[1] -= this.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pix * nScaleY; - aNewTextBoxRect[2] += this.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pix * nScaleX; - aNewTextBoxRect[3] += this.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pix * nScaleY; + aNewTextBoxRect[0] -= this.GetBorderEffectIntensity() * 1.5; + aNewTextBoxRect[1] -= this.GetBorderEffectIntensity() * 1.5; + aNewTextBoxRect[2] += this.GetBorderEffectIntensity() * 1.5; + aNewTextBoxRect[3] += this.GetBorderEffectIntensity() * 1.5; } else { - aNewTextBoxRect[0] -= nLineWidth * nScaleX; - aNewTextBoxRect[1] -= nLineWidth * nScaleY; - aNewTextBoxRect[2] += nLineWidth * nScaleX; - aNewTextBoxRect[3] += nLineWidth * nScaleY; + aNewTextBoxRect[0] -= nLineWidth; + aNewTextBoxRect[1] -= nLineWidth; + aNewTextBoxRect[2] += nLineWidth; + aNewTextBoxRect[3] += nLineWidth; } // находит точку выхода callout для нового ректа textbox @@ -1184,7 +1257,7 @@ } function findBoundingRectangle(points) { - if (!points) { + if (!points || points.length == 0) { return null; } @@ -1204,19 +1277,17 @@ } // находим рект стрелки, учитывая окончание линии - let aArrowRect = aNewCallout ? this.GetArrowRect([aNewCallout[2], aNewCallout[3], aNewCallout[0], aNewCallout[1]]) : null; + let aArrowRect = aNewCallout.length != 0 ? this.GetArrowRect([aNewCallout[2], aNewCallout[3], aNewCallout[0], aNewCallout[1]]) : null; // находим результирующий rect аннотации - let aNewRect = AscPDF.unionRectangles([aArrowRect, aNewTextBoxRect, findBoundingRectangle(aNewCallout)]).map(function(measure, idx) { - return idx % 2 ? measure * nScaleY : measure * nScaleX; - }); + let aNewRect = AscPDF.unionRectangles([aArrowRect, aNewTextBoxRect, findBoundingRectangle(aNewCallout)]); // пересчитываем RD. let aNewRD = [ - xMin - aNewRect[0] / nScaleX, - yMin - aNewRect[1] / nScaleY, - aNewRect[2] / nScaleX - xMax, - aNewRect[3] / nScaleY - yMax + xMin - aNewRect[0], + yMin - aNewRect[1], + aNewRect[2] - xMax, + aNewRect[3] - yMax ]; aNewCallout && this.SetCallout(aNewCallout); @@ -1265,10 +1336,14 @@ oContent.RecalculateCurPos(); oDrDoc.UpdateTargetFromPaint = true; - oDrDoc.TargetStart(); - oDrDoc.showTarget(true); + oDrDoc.TargetStart(true); this.SetInTextBox(true); - this.FitTextBox(); + + oDoc.SetGlobalHistory(); + oDoc.DoAction(function() { + this.FitTextBox(); + }, AscDFH.historydescription_Pdf_FreeTextFitTextBox, this); + oDoc.SetLocalHistory(); } else { oContent.SelectAll(); @@ -1415,10 +1490,6 @@ memory.WriteDouble(aFillColor[i]); } - // render - memory.annotFlags |= (1 << 22); - this.WriteRenderToBinary(memory); - let nEndPos = memory.GetCurPosition(); memory.Seek(memory.posForFlags); memory.WriteLong(memory.annotFlags); @@ -1427,6 +1498,47 @@ memory.WriteLong(nEndPos - nStartPos); memory.Seek(nEndPos); }; + CAnnotationFreeText.prototype.SetPosition = function(x, y) { + let oDoc = this.GetDocument(); + let aCurRect = this.GetOrigRect(); + + let nOldX = aCurRect[0]; + let nOldY = aCurRect[1]; + + let nDeltaX = x - nOldX; + let nDeltaY = y - nOldY; + + if (0 == nDeltaX && 0 == nDeltaY) { + return; + } + + let aCallout = this.GetCallout(); + if (aCallout) { + for (let i = 0; i < aCallout.length; i+=2) { + aCallout[i] += nDeltaX; + aCallout[i+1] += nDeltaY; + } + } + + oDoc.History.Add(new CChangesPDFAnnotPos(this, [aCurRect[0], aCurRect[1]], [x, y])); + + let nWidth = aCurRect[2] - aCurRect[0]; + let nHeight = aCurRect[3] - aCurRect[1]; + + this._origRect[0] = x; + this._origRect[1] = y; + this._origRect[2] = x + nWidth; + this._origRect[3] = y + nHeight; + + AscCommon.ExecuteNoHistory(function() { + let oXfrm = this.getXfrm(); + oXfrm.setOffX((this._origRect[0]) * g_dKoef_pt_to_mm); + oXfrm.setOffY((this._origRect[1]) * g_dKoef_pt_to_mm); + }, undefined, this); + + this.SetNeedRecalc(true); + this.SetWasChanged(true); + }; // shape methods CAnnotationFreeText.canRotate = function() { @@ -1613,8 +1725,11 @@ } function initGroupShape(oParentFreeText) { - let aShapeRectInMM = oParentFreeText.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + AscCommon.History.StartNoHistoryMode(); + + let aRect = oParentFreeText.GetOrigRect() || []; + let aShapeRectInMM = aRect.map(function(measure) { + return measure * g_dKoef_pt_to_mm; }); let xMax = aShapeRectInMM[2]; let xMin = aShapeRectInMM[0]; @@ -1626,10 +1741,10 @@ oParentFreeText.spPr.setXfrm(new AscFormat.CXfrm()); oParentFreeText.spPr.xfrm.setParent(oParentFreeText.spPr); - oParentFreeText.spPr.xfrm.setOffX(xMin); - oParentFreeText.spPr.xfrm.setOffY(yMin); - oParentFreeText.spPr.xfrm.setExtX(Math.abs(xMax - xMin)); - oParentFreeText.spPr.xfrm.setExtY(Math.abs(yMax - yMin)); + oParentFreeText.spPr.xfrm.offX = xMin; + oParentFreeText.spPr.xfrm.offY = yMin; + oParentFreeText.spPr.xfrm.extX = Math.abs(xMax - xMin); + oParentFreeText.spPr.xfrm.extY = Math.abs(yMax - yMin); oParentFreeText.setBDeleted(false); oParentFreeText.recalculate(); oParentFreeText.updateTransformMatrix(); @@ -1646,6 +1761,7 @@ oTxBoxShape.txBody.bodyPr.vertOverflow = AscFormat.nVOTClip; oParentFreeText.addToSpTree(0, oTxBoxShape); + AscCommon.History.EndNoHistoryMode(); } function createInnerShape(aPoints, oExistShape, oParentAnnot) { @@ -1679,16 +1795,17 @@ oShape.spPr.xfrm.setParent(oShape.spPr); } - let aAnnotRect = oParentAnnot.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + let aRect = oParentAnnot.GetOrigRect() || []; + let aAnnotRect = aRect.map(function(measure) { + return measure * g_dKoef_pt_to_mm; }); - oShape.spPr.xfrm.setOffX(Math.abs(xMin - aAnnotRect[0])); - oShape.spPr.xfrm.setOffY(Math.abs(yMin - aAnnotRect[1])); - oShape.spPr.xfrm.setExtX(Math.abs(xMax - xMin)); - oShape.spPr.xfrm.setExtY(Math.abs(yMax - yMin)); + oShape.setGroup(oParentAnnot); + oShape.spPr.xfrm.offX = Math.abs(xMin - aAnnotRect[0]); + oShape.spPr.xfrm.offY = Math.abs(yMin - aAnnotRect[1]); + oShape.spPr.xfrm.extX = Math.abs(xMax - xMin); + oShape.spPr.xfrm.extY = Math.abs(yMax - yMin); oShape.setBDeleted(false); oShape.recalcInfo.recalculateGeometry = false; - oShape.setGroup(oParentAnnot); oShape.spPr.setLn(new AscFormat.CLn()); oShape.recalculateTransform(); oShape.updateTransformMatrix(); @@ -1717,7 +1834,7 @@ return [x_min, y_min, x_max, y_max]; } - let oShape = oExistShape || new AscFormat.CConnectionShape(); + let oShape = oExistShape || new AscPDF.CPdfConnectionShape(); let aShapeBounds = findMinRect(aPoints); let xMax = aShapeBounds[2]; @@ -1733,16 +1850,16 @@ } let aAnnotRect = oParentAnnot.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + return measure * g_dKoef_pt_to_mm; }); - oShape.spPr.xfrm.setOffX(Math.abs(xMin - aAnnotRect[0])); - oShape.spPr.xfrm.setOffY(Math.abs(yMin - aAnnotRect[1])); - oShape.spPr.xfrm.setExtX(Math.abs(xMax - xMin)); - oShape.spPr.xfrm.setExtY(Math.abs(yMax - yMin)); + oShape.setGroup(oParentAnnot); + oShape.spPr.xfrm.offX = Math.abs(xMin - aAnnotRect[0]); + oShape.spPr.xfrm.offY = Math.abs(yMin - aAnnotRect[1]); + oShape.spPr.xfrm.extX = Math.abs(xMax - xMin); + oShape.spPr.xfrm.extY = Math.abs(yMax - yMin); oShape.setBDeleted(false); oShape.recalcInfo.recalculateGeometry = false; - oShape.setGroup(oParentAnnot); oShape.spPr.setLn(new AscFormat.CLn()); oShape.recalculateTransform(); oShape.updateTransformMatrix(); @@ -1815,11 +1932,6 @@ return nInnerType; } - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - window["AscPDF"].CAnnotationFreeText = CAnnotationFreeText; window["AscPDF"].FREE_TEXT_INTENT_TYPE = window["AscPDF"]["FREE_TEXT_INTENT_TYPE"] = FREE_TEXT_INTENT_TYPE; FREE_TEXT_INTENT_TYPE['FreeText'] = FREE_TEXT_INTENT_TYPE.FreeText; diff --git a/pdf/src/annotations/highlights.js b/pdf/src/annotations/highlights.js index f906e38fe7..b8fe07f750 100644 --- a/pdf/src/annotations/highlights.js +++ b/pdf/src/annotations/highlights.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -40,7 +40,7 @@ { AscPDF.CAnnotationBase.call(this, sName, nType, nPage, aRect, oDoc); - this._quads = undefined; + this._quads = []; this._richContents = undefined; this._rotate = undefined; this._width = undefined; @@ -48,25 +48,25 @@ CAnnotationTextMarkup.prototype = Object.create(AscPDF.CAnnotationBase.prototype); CAnnotationTextMarkup.prototype.constructor = CAnnotationTextMarkup; - CAnnotationTextMarkup.prototype.getObjectType = function() { - return -1; + CAnnotationTextMarkup.prototype.IsTextMarkup = function() { + return true; }; - CAnnotationTextMarkup.prototype.SetQuads = function(aQuads) { - this._quads = aQuads; + CAnnotationTextMarkup.prototype.SetQuads = function(aFullQuads) { + let oThis = this; + aFullQuads.forEach(function(aQuads) { + oThis.AddQuads(aQuads); + }); }; CAnnotationTextMarkup.prototype.GetQuads = function() { return this._quads; }; - CAnnotationTextMarkup.prototype.SetWidth = function(nWidth) { - this._width = nWidth; - }; - CAnnotationTextMarkup.prototype.GetWidth = function() { - return this._width; - }; - CAnnotationTextMarkup.prototype.IsTextMarkup = function() { - return true; + CAnnotationTextMarkup.prototype.AddQuads = function(aQuads) { + AscCommon.History.Add(new CChangesPDFAnnotQuads(this, this._quads.length, aQuads, true)); + this._quads.push(aQuads); + this.SetNeedRecalc(true); }; + CAnnotationTextMarkup.prototype.AddToRedraw = function() { let oViewer = editor.getDocumentRenderer(); let nPage = this.GetPage(); @@ -81,56 +81,7 @@ oViewer.paint(setRedrawPageOnRepaint); }; CAnnotationTextMarkup.prototype.IsInQuads = function(x, y) { - let oCtx = Asc.editor.getDocumentRenderer().overlay.m_oContext; - oCtx.save(); - oCtx.setTransform(1, 0, 0, 1, 0, 0); - - let aQuads = this.GetQuads(); - - let isInQuads = false; - for (let i = 0; i < aQuads.length; i++) { - let aPoints = aQuads[i]; - - let oPoint1 = { - x: aPoints[0], - y: aPoints[1] - } - let oPoint2 = { - x: aPoints[2], - y: aPoints[3] - } - - let oPoint3 = { - x: aPoints[4], - y: aPoints[5] - } - let oPoint4 = { - x: aPoints[6], - y: aPoints[7] - } - - let X1 = oPoint1.x; - let Y1 = oPoint1.y; - let X2 = oPoint2.x; - let Y2 = oPoint2.y; - let X3 = oPoint3.x; - let Y3 = oPoint3.y; - let X4 = oPoint4.x; - let Y4 = oPoint4.y; - - oCtx.beginPath(); - oCtx.moveTo(X1, Y1); - oCtx.lineTo(X2, Y2); - oCtx.lineTo(X4, Y4); - oCtx.lineTo(X3, Y3); - oCtx.closePath(); - - if (oCtx.isPointInPath(x, y)) - isInQuads = true; - } - - oCtx.restore(); - return isInQuads; + return IsInQuads(this.GetQuads(), x, y); }; CAnnotationTextMarkup.prototype.DrawSelected = function(overlay) { overlay.m_oContext.lineWidth = 3; @@ -220,8 +171,8 @@ { CAnnotationTextMarkup.call(this, sName, AscPDF.ANNOTATIONS_TYPES.Highlight, nPage, aRect, oDoc); } - CAnnotationHighlight.prototype = Object.create(CAnnotationTextMarkup.prototype); - CAnnotationHighlight.prototype.constructor = CAnnotationHighlight; + CAnnotationHighlight.prototype.constructor = CAnnotationHighlight; + AscFormat.InitClass(CAnnotationHighlight, CAnnotationTextMarkup, AscDFH.historyitem_type_Pdf_Annot_Highlight); CAnnotationHighlight.prototype.IsHighlight = function() { return true; @@ -296,8 +247,8 @@ { CAnnotationTextMarkup.call(this, sName, AscPDF.ANNOTATIONS_TYPES.Underline, nPage, aRect, oDoc); } - CAnnotationUnderline.prototype = Object.create(CAnnotationTextMarkup.prototype); - CAnnotationUnderline.prototype.constructor = CAnnotationUnderline; + CAnnotationUnderline.prototype.constructor = CAnnotationUnderline; + AscFormat.InitClass(CAnnotationUnderline, CAnnotationTextMarkup, AscDFH.historyitem_type_Pdf_Annot_Underline); CAnnotationUnderline.prototype.Draw = function(oGraphicsPDF) { if (this.IsHidden() == true) @@ -376,8 +327,8 @@ { CAnnotationTextMarkup.call(this, sName, AscPDF.ANNOTATIONS_TYPES.Strikeout, nPage, aRect, oDoc); } - CAnnotationStrikeout.prototype = Object.create(CAnnotationTextMarkup.prototype); - CAnnotationStrikeout.prototype.constructor = CAnnotationStrikeout; + CAnnotationStrikeout.prototype.constructor = CAnnotationStrikeout; + AscFormat.InitClass(CAnnotationStrikeout, CAnnotationTextMarkup, AscDFH.historyitem_type_Pdf_Annot_Strikeout); CAnnotationStrikeout.prototype.Draw = function(oGraphicsPDF) { if (this.IsHidden() == true) @@ -450,8 +401,8 @@ { CAnnotationTextMarkup.call(this, sName, AscPDF.ANNOTATIONS_TYPES.Squiggly, nPage, aRect, oDoc); } - CAnnotationSquiggly.prototype = Object.create(CAnnotationTextMarkup.prototype); - CAnnotationSquiggly.prototype.constructor = CAnnotationSquiggly; + CAnnotationSquiggly.prototype.constructor = CAnnotationSquiggly; + AscFormat.InitClass(CAnnotationSquiggly, CAnnotationTextMarkup, AscDFH.historyitem_type_Pdf_Annot_Squiggly); CAnnotationSquiggly.prototype.Draw = function(oGraphicsPDF) { if (this.IsHidden() == true) @@ -537,8 +488,8 @@ CAnnotationTextMarkup.call(this, sName, AscPDF.ANNOTATIONS_TYPES.Caret, nPage, aRect, oDoc); this._caretSymbol = CARET_SYMBOL.None; } - CAnnotationCaret.prototype = Object.create(CAnnotationTextMarkup.prototype); - CAnnotationCaret.prototype.constructor = CAnnotationCaret; + CAnnotationCaret.prototype.constructor = CAnnotationCaret; + AscFormat.InitClass(CAnnotationCaret, CAnnotationTextMarkup, AscDFH.historyitem_type_Pdf_Annot_Caret); CAnnotationCaret.prototype.Draw = function(oGraphicsPDF) { if (this.IsHidden() == true) @@ -688,7 +639,7 @@ { let oCtx = overlay.m_oContext; let oViewer = Asc.editor.getDocumentRenderer(); - let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom * (96 / oViewer.file.pages[pageIndex].Dpi); + let nScale = oViewer.zoom * oViewer.getDrawingPageScale(pageIndex) * AscCommon.AscBrowser.retinaPixelRatio; let xCenter = oViewer.width >> 1; if (oViewer.documentWidth > oViewer.width) @@ -766,11 +717,63 @@ return [xMin, yMin, xMax, yMax]; } + function IsInQuads(aQuads, x, y) { + let oCtx = Asc.editor.getDocumentRenderer().overlay.m_oContext; + oCtx.save(); + oCtx.setTransform(1, 0, 0, 1, 0, 0); + + let isInQuads = false; + for (let i = 0; i < aQuads.length; i++) { + let aPoints = aQuads[i]; + + let oPoint1 = { + x: aPoints[0], + y: aPoints[1] + } + let oPoint2 = { + x: aPoints[2], + y: aPoints[3] + } + + let oPoint3 = { + x: aPoints[4], + y: aPoints[5] + } + let oPoint4 = { + x: aPoints[6], + y: aPoints[7] + } + + let X1 = oPoint1.x; + let Y1 = oPoint1.y; + let X2 = oPoint2.x; + let Y2 = oPoint2.y; + let X3 = oPoint3.x; + let Y3 = oPoint3.y; + let X4 = oPoint4.x; + let Y4 = oPoint4.y; + + oCtx.beginPath(); + oCtx.moveTo(X1, Y1); + oCtx.lineTo(X2, Y2); + oCtx.lineTo(X4, Y4); + oCtx.lineTo(X3, Y3); + oCtx.closePath(); + + if (oCtx.isPointInPath(x, y)) + isInQuads = true; + } + + oCtx.restore(); + return isInQuads; + } + window["AscPDF"].CAnnotationTextMarkup = CAnnotationTextMarkup; window["AscPDF"].CAnnotationHighlight = CAnnotationHighlight; window["AscPDF"].CAnnotationUnderline = CAnnotationUnderline; window["AscPDF"].CAnnotationStrikeout = CAnnotationStrikeout; window["AscPDF"].CAnnotationSquiggly = CAnnotationSquiggly; window["AscPDF"].CAnnotationCaret = CAnnotationCaret; + window["AscPDF"].IsInQuads = IsInQuads; })(); diff --git a/pdf/src/annotations/ink.js b/pdf/src/annotations/ink.js index 69d0da815d..1b698563c9 100644 --- a/pdf/src/annotations/ink.js +++ b/pdf/src/annotations/ink.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -41,20 +41,19 @@ AscPDF.CPdfShape.call(this); AscPDF.CAnnotationBase.call(this, sName, AscPDF.ANNOTATIONS_TYPES.Ink, nPage, aRect, oDoc); + AscCommon.History.StartNoHistoryMode(); initShape(this); + AscCommon.History.EndNoHistoryMode(); - this._point = undefined; - this._popupOpen = false; - this._popupRect = undefined; - this._richContents = undefined; - this._rotate = undefined; this._state = undefined; this._stateModel = undefined; + this._gestures = []; + this._relativePaths = []; this._width = 1; } CAnnotationInk.prototype.constructor = CAnnotationInk; - AscFormat.InitClass(CAnnotationInk, AscPDF.CPdfShape, AscDFH.historyitem_type_Shape); + AscFormat.InitClass(CAnnotationInk, AscPDF.CPdfShape, AscDFH.historyitem_type_Pdf_Annot_Ink); Object.assign(CAnnotationInk.prototype, AscPDF.CAnnotationBase.prototype); CAnnotationInk.prototype.IsInk = function() { @@ -63,17 +62,6 @@ CAnnotationInk.prototype.GetDrawing = function() { return this.content.GetAllDrawingObjects()[0]; }; - CAnnotationInk.prototype.GetShapeInkMargins = function(bInMM) { - let aRect = this.GetRect(); - let nScale = bInMM ? g_dKoef_pix_to_mm : 1; - - return { - left: (this._shapeBounds[0] - aRect[0]) * nScale, - top: (this._shapeBounds[1] - aRect[1]) * nScale, - right: (aRect[2] - this._shapeBounds[2]) * nScale, - bottom: (aRect[3] - this._shapeBounds[3]) * nScale - } - }; CAnnotationInk.prototype.onMouseDown = function(x, y, e) { let oViewer = Asc.editor.getDocumentRenderer(); @@ -100,13 +88,128 @@ oDrawingObjects.OnMouseDown(e, X, Y, pageObject.index); }; CAnnotationInk.prototype.SetInkPoints = function(aSourcePaths) { - let oViewer = editor.getDocumentRenderer(); - let oDoc = oViewer.getPDFDoc(); - let oDrDoc = oDoc.GetDrawingDocument(); - let nPage = this.GetPage(); + let oThis = this; + aSourcePaths.forEach(function(aPath) { + oThis.AddInkPath(aPath); + }); + }; + CAnnotationInk.prototype.AddInkPath = function(aInkPath) { + AscCommon.History.Add(new CChangesPDFInkPoints(this, this._gestures.length, aInkPath, true)); + this._gestures.push(aInkPath); + + let oViewer = Asc.editor.getDocumentRenderer(); + if (false == oViewer.IsOpenAnnotsInProgress) { + this.SetRect(this.private_CalculateBoundingBox()); + } + + this.SetWasChanged(true); + this.recalcGeometry(); + this.SetNeedRecalc(true); + }; + CAnnotationInk.prototype.private_CalculateBoundingBox = function() { + if (this._gestures.length === 0) { + return null; + } + + let nLineW = this.GetWidth(); + + let minX = Infinity; + let minY = Infinity; + let maxX = -Infinity; + let maxY = -Infinity; + + for (let i = 0; i < this._gestures.length; i++) { + let path = this._gestures[i]; + for (let j = 0; j < path.length; j += 2) { + let x = path[j]; + let y = path[j + 1]; + if (x < minX) { + minX = x; + } + if (y < minY) { + minY = y; + } + if (x > maxX) { + maxX = x; + } + if (y > maxY) { + maxY = y; + } + } + } + + return [minX - nLineW, minY - nLineW, maxX + nLineW, maxY + nLineW] + }; + CAnnotationInk.prototype.GetInkPoints = function() { + return this._gestures; + }; + CAnnotationInk.prototype.SetRect = function(aOrigRect) { + let oViewer = editor.getDocumentRenderer(); + let oDoc = oViewer.getPDFDoc(); + + oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetOrigRect(), aOrigRect)); + + this._origRect = aOrigRect; + + let oXfrm = this.getXfrm(); + if (oXfrm) { + AscCommon.History.StartNoHistoryMode(); + + let nX1 = aOrigRect[0] * g_dKoef_pt_to_mm; + let nX2 = aOrigRect[2] * g_dKoef_pt_to_mm; + let nY1 = aOrigRect[1] * g_dKoef_pt_to_mm; + let nY2 = aOrigRect[3] * g_dKoef_pt_to_mm; + + this.spPr.xfrm.setExtX(nX2 - nX1); + this.spPr.xfrm.setExtY(nY2 - nY1); + this.spPr.xfrm.setOffX(nX1); + this.spPr.xfrm.setOffY(nY1); + + this.SetNeedRecalc(true); + this.RefillGeometry(this.spPr.geometry, [nX1, nY1, nX2, nY2]); + + AscCommon.History.EndNoHistoryMode(); + } + + this.SetWasChanged(true); + }; + CAnnotationInk.prototype.SetFlipV = function(bFlip) { + let oDoc = this.GetDocument(); + return; + + if (this.flipV != bFlip) { + oDoc.History.Add(new CChangesPDFInkFlipV(this, this.flipV, bFlip)); + this.changeFlipV(!this.flipV); + this.recalculate(); + } + }; + CAnnotationInk.prototype.SetFlipH = function(bFlip) { + let oDoc = this.GetDocument(); + return; + + if (this.flipH != bFlip) { + oDoc.History.Add(new CChangesPDFInkFlipH(this, this.flipV, bFlip)); + this.changeFlipH(!this.flipH); + this.recalculate(); + } + }; + CAnnotationInk.prototype.Recalculate = function(bForce) { + if (true !== bForce && false == this.IsNeedRecalc()) { + return; + } - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; + if (this._relativePaths.length != this._gestures.length) { + this.InitGeometry(); + return; + } + + this.recalculateTransform(); + this.updateTransformMatrix(); + this.recalculate(); + this.SetNeedRecalc(false); + }; + CAnnotationInk.prototype.InitGeometry = function() { + let aSourcePaths = this._gestures; let aShapePaths = []; for (let nPath = 0; nPath < aSourcePaths.length; nPath++) { @@ -115,20 +218,20 @@ for (let i = 0; i < aSourcePath.length - 1; i += 2) { aShapePath.push({ - x: aSourcePath[i] * g_dKoef_pix_to_mm * nScaleX, - y: (aSourcePath[i + 1])* g_dKoef_pix_to_mm * nScaleY + x: aSourcePath[i] * g_dKoef_pt_to_mm, + y: (aSourcePath[i + 1]) * g_dKoef_pt_to_mm }); } aShapePaths.push(aShapePath); } - let aShapeRectInMM = this.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + let aShapeRectInMM = this.GetOrigRect().map(function(measure) { + return measure * g_dKoef_pt_to_mm; }); fillShapeByPoints(aShapePaths, aShapeRectInMM, this); - + let aRelPointsPos = []; let aAllPoints = []; @@ -162,246 +265,14 @@ } this._relativePaths = aRelPointsPos; - this._gestures = aShapePaths; - }; - CAnnotationInk.prototype.FillShapeByPoints = function(aPoints) { - let aShapeRectInMM = this.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; - }); - let shape = fillShapeByPoints([aPoints], aShapeRectInMM, this); - - let aRelPointsPos = []; - let aMinRect = getMinRect(aPoints); - let xMin = aMinRect[0]; - let yMin = aMinRect[1]; - let xMax = aMinRect[2]; - let yMax = aMinRect[3]; - - // считаем относительное положение точек внутри фигуры - for (let nPoint = 0; nPoint < aPoints.length; nPoint++) { - let oPoint = aPoints[nPoint]; - - let nIndX = oPoint.x - xMin; - let nIndY = oPoint.y - yMin; - - let oRelPos = { - relX: nIndX / (xMax - xMin), - relY: nIndY / (yMax - yMin) - }; - - if (isNaN(oRelPos.relX)) - oRelPos.relX = 0; - if (isNaN(oRelPos.relY)) { - oRelPos.relY = 0; - } - - aRelPointsPos.push(oRelPos); - } - - this._relativePaths = [aRelPointsPos]; - this._gestures = [aPoints]; - - return shape; - }; - - CAnnotationInk.prototype.SetRect = function(aRect) { - let oViewer = editor.getDocumentRenderer(); - let oDoc = oViewer.getPDFDoc(); - let nPage = this.GetPage(); - oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetRect(), aRect)); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this._rect = aRect; - - this._pagePos = { - x: aRect[0], - y: aRect[1], - w: (aRect[2] - aRect[0]), - h: (aRect[3] - aRect[1]) - }; - - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; - - oDoc.TurnOffHistory(); - this.spPr.xfrm.extX = this._pagePos.w * g_dKoef_pix_to_mm; - this.spPr.xfrm.extY = this._pagePos.h * g_dKoef_pix_to_mm; - - this.Recalculate(); - this.AddToRedraw(); - this.RefillGeometry(this.spPr.geometry, [aRect[0] * g_dKoef_pix_to_mm, aRect[1] * g_dKoef_pix_to_mm, aRect[2] * g_dKoef_pix_to_mm, aRect[3] * g_dKoef_pix_to_mm]); - - this.SetWasChanged(true); - }; - CAnnotationInk.prototype.SetFlipV = function(bFlip) { - let oDoc = this.GetDocument(); - - if (this.flipV != bFlip) { - oDoc.History.Add(new CChangesPDFInkFlipV(this, this.flipV, bFlip)); - this.changeFlipV(!this.flipV); - this.recalculate(); - } - }; - CAnnotationInk.prototype.SetFlipH = function(bFlip) { - let oDoc = this.GetDocument(); - - if (this.flipH != bFlip) { - oDoc.History.Add(new CChangesPDFInkFlipH(this, this.flipV, bFlip)); - this.changeFlipH(!this.flipH); - this.recalculate(); - } - }; - CAnnotationInk.prototype.AddPath = function(aNewPath) { - let oDoc = this.GetDocument(); - let nLineW = this.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; - - oDoc.History.Add(new CChangesPDFInkPoints(this, this._gestures.length, aNewPath)); - - let aCurAllPoints = []; - for (let i = 0; i < this._gestures.length; i++) - aCurAllPoints = aCurAllPoints.concat(this._gestures[i]); - - let aNewAllPoints = aCurAllPoints.slice(); - aNewAllPoints = aNewAllPoints.concat(aNewPath); - - let aCurMinRect = getMinRect(aCurAllPoints); - let curMinX = aCurMinRect[0]; - let curMinY = aCurMinRect[1]; - let curMaxX = aCurMinRect[2]; - let curMaxY = aCurMinRect[3]; - - let aNewMinRect = getMinRect(aNewAllPoints); - let newMinX = aNewMinRect[0]; - let newMinY = aNewMinRect[1]; - let newMaxX = aNewMinRect[2]; - let newMaxY = aNewMinRect[3]; - - let aNewAnnotRect = [(newMinX * g_dKoef_mm_to_pix - nLineW), (newMinY * g_dKoef_mm_to_pix - nLineW), (newMaxX * g_dKoef_mm_to_pix + nLineW), (newMaxY * g_dKoef_mm_to_pix + nLineW)]; - - // пересчет текущих точек в новом ректе - let aCurRelPaths = this.GetRelativePaths(); - - for (let nPath = 0; nPath < aCurRelPaths.length; nPath++) { - let aPath = aCurRelPaths[nPath]; - for (let nPoint = 0; nPoint < aPath.length; nPoint++) { - let oPoint = aPath[nPoint]; - - // если новый рект начинается левее старого - if (newMinX < curMinX) - oPoint.relX = ((curMaxX - curMinX) * oPoint.relX + (curMinX - newMinX)) / (newMaxX - newMinX); - // если ширина нового ректа больше старого - else if (curMaxX - curMinX < newMaxX - newMinX) - oPoint.relX = ((curMaxX - curMinX) * oPoint.relX) / (newMaxX - newMinX); - - - // если новый рект начинается выше старого - if (newMinY < curMinY) - oPoint.relY = ((curMaxY - curMinY) * oPoint.relY + (curMinY - newMinY)) / (newMaxY - newMinY); - // если высота нового ректа больше старого - else if (curMaxY - curMinY < newMaxY - newMinY) - oPoint.relY = ((curMaxY - curMinY) * oPoint.relY) / (newMaxY - newMinY); - - if (isNaN(oPoint.relX)) - oPoint.relX = 0; - if (isNaN(oPoint.relY)) - oPoint.relY = 0; - - continue; - } - } - - // считаем новые точки - let aRelPointsPos = []; - for (let nPoint = 0; nPoint < aNewPath.length; nPoint++) { - let oPoint = aNewPath[nPoint]; - - let nIndX = oPoint.x - newMinX; - let nIndY = oPoint.y - newMinY; - - aRelPointsPos.push({ - relX: nIndX / (newMaxX - newMinX), - relY: nIndY / (newMaxY - newMinY) - }); - - continue; - } - - aCurRelPaths.push(aRelPointsPos); - this._gestures.push(aNewPath); - - this.SetRect(aNewAnnotRect, true); + this.Recalculate(true); }; - - CAnnotationInk.prototype.RemoveLastAddedPath = function() { - let nLineW = this.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; - - let aCurAllPoints = []; - for (let i = 0; i < this._gestures.length; i++) - aCurAllPoints = aCurAllPoints.concat(this._gestures[i]); - - let aNewAllPoints = []; - for (let i = 0; i < this._gestures.length - 1; i++) - aNewAllPoints = aNewAllPoints.concat(this._gestures[i]); - - let aCurMinRect = getMinRect(aCurAllPoints); - let curMinX = aCurMinRect[0]; - let curMinY = aCurMinRect[1]; - let curMaxX = aCurMinRect[2]; - let curMaxY = aCurMinRect[3]; - - let aNewMinRect = getMinRect(aNewAllPoints); - let newMinX = aNewMinRect[0]; - let newMinY = aNewMinRect[1]; - let newMaxX = aNewMinRect[2]; - let newMaxY = aNewMinRect[3]; - - let aNewAnnotRect = [(newMinX * g_dKoef_mm_to_pix - nLineW), (newMinY * g_dKoef_mm_to_pix - nLineW), (newMaxX * g_dKoef_mm_to_pix + nLineW), (newMaxY * g_dKoef_mm_to_pix + nLineW)]; - - // пересчет текущих точек в новом ректе - let aCurRelPaths = this.GetRelativePaths(); - aCurRelPaths.splice(aCurRelPaths.length - 1, 1); - this._gestures.splice(this._gestures.length - 1, 1); - - for (let nPath = 0; nPath < aCurRelPaths.length; nPath++) { - let aPath = aCurRelPaths[nPath]; - for (let nPoint = 0; nPoint < aPath.length; nPoint++) { - let oPoint = aPath[nPoint]; - - // если предыдущий рект начинается левее старого - if (newMinX > curMinX) - oPoint.relX = ((curMaxX - curMinX) * oPoint.relX + (curMinX - newMinX)) / (newMaxX - newMinX); - // если ширина нового ректа больше старого - else if (curMaxX - curMinX > newMaxX - newMinX) - oPoint.relX = ((curMaxX - curMinX) * oPoint.relX) / (newMaxX - newMinX); - - - // если новый рект начинается выше старого - if (newMinY > curMinY) - oPoint.relY = ((curMaxY - curMinY) * oPoint.relY + (curMinY - newMinY)) / (newMaxY - newMinY); - // если высота нового ректа больше старого - else if (curMaxY - curMinY > newMaxY - newMinY) - oPoint.relY = ((curMaxY - curMinY) * oPoint.relY) / (newMaxY - newMinY); - - if (isNaN(oPoint.relX)) - oPoint.relX = 0; - if (isNaN(oPoint.relY)) - oPoint.relY = 0; - - continue; - } + CAnnotationInk.prototype.RefillGeometry = function(oGeometry, aBounds) { + if (!this._relativePaths) { + return; } - this.spPr.xfrm.extX = (newMaxX + nLineW * g_dKoef_pix_to_mm) - (newMinX - nLineW * g_dKoef_pix_to_mm); - this.spPr.xfrm.extY = (newMaxY + nLineW * g_dKoef_pix_to_mm) - (newMinY - nLineW * g_dKoef_pix_to_mm); - - this.SetRect(aNewAnnotRect, true); - }; - CAnnotationInk.prototype.RefillGeometry = function(oGeometry, aBounds) { let aRelPointsPos = this._relativePaths; let aShapePaths = []; @@ -439,20 +310,12 @@ }; CAnnotationInk.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oNewInk = new CAnnotationInk(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), oDoc); oNewInk.lazyCopy = true; - oNewInk._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - oNewInk._origRect = this._origRect.slice(); - this.fillObject(oNewInk); let aStrokeColor = this.GetStrokeColor(); @@ -463,14 +326,15 @@ oNewInk.SetAuthor(this.GetAuthor()); oNewInk.SetModDate(this.GetModDate()); oNewInk.SetCreationDate(this.GetCreationDate()); + aStrokeColor && oNewInk.SetStrokeColor(aStrokeColor.slice()); oNewInk.SetWidth(this.GetWidth()); - oNewInk.SetStrokeColor(aStrokeColor ? aStrokeColor.slice() : undefined); oNewInk.SetOpacity(this.GetOpacity()); oNewInk._relativePaths = this.GetRelativePaths().slice(); oNewInk._gestures = this._gestures.slice(); oNewInk.SetContents(this.GetContents()); - oNewInk.recalcInfo.recalculateGeometry = true; + oNewInk.recalcGeometry(); + oDoc.EndNoHistoryMode(); return oNewInk; }; CAnnotationInk.prototype.GetRelativePaths = function() { @@ -492,66 +356,15 @@ this.WriteToBinaryBase(memory); this.WriteToBinaryBase2(memory); - // считаем точки - let aRelPointsPos = this._relativePaths; - let aShapePaths = []; - let nLineW = this.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; - let aBounds = this.GetOrigRect(); - - let xMin; - let yMin; - let xMax; - let yMax; - if (this.IsNeedDrawFromStream() == false) { - xMin = aBounds[0] + nLineW * 0.75; - yMin = aBounds[1] + nLineW * 0.75; - xMax = aBounds[2] - nLineW * 0.75; - yMax = aBounds[3] - nLineW * 0.75; - - let nWidthMM = (xMax - xMin); - let nHeightMM = (yMax - yMin); - - for (let nPath = 0; nPath < aRelPointsPos.length; nPath++) { - let aPath = aRelPointsPos[nPath]; - let aShapePath = []; - - for (let nPoint = 0; nPoint < aPath.length; nPoint++) { - aShapePath.push({ - x: (nWidthMM) * aPath[nPoint].relX + xMin, - y: (nHeightMM) * aPath[nPoint].relY + yMin - }); - } - - aShapePaths.push(aShapePath); - } - } - else { - let oViewer = editor.getDocumentRenderer(); - let nScaleY = oViewer.drawingPages[this.GetPage()].H / oViewer.file.pages[this.GetPage()].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[this.GetPage()].W / oViewer.file.pages[this.GetPage()].W / oViewer.zoom; - - for (let nPath = 0; nPath < this._gestures.length; nPath++) { - let aPath = this._gestures[nPath]; - let aShapePath = []; - - for (let nPoint = 0; nPoint < aPath.length; nPoint++) { - aShapePath.push({ - x: aPath[nPoint].x * g_dKoef_mm_to_pix / nScaleX, - y: aPath[nPoint].y * g_dKoef_mm_to_pix / nScaleY - }); - } - - aShapePaths.push(aShapePath); - } - } + let aSourcePoints = this.GetInkPoints(); - memory.WriteLong(aShapePaths.length); - for (let i = 0; i < aShapePaths.length; i++) { - memory.WriteLong(aShapePaths[i].length * 2); + memory.WriteLong(aSourcePoints.length); + for (let i = 0; i < aSourcePoints.length; i++) { + memory.WriteLong(aSourcePoints[i].length); - for (let j = 0; j < aShapePaths[i].length; j++) { - memory.WriteDouble(aShapePaths[i][j].x); - memory.WriteDouble(aShapePaths[i][j].y); + for (let j = 0; j < aSourcePoints[i].length - 1; j+=2) { + memory.WriteDouble(aSourcePoints[i][j]); + memory.WriteDouble(aSourcePoints[i][j + 1]); } } @@ -563,29 +376,32 @@ memory.WriteLong(nEndPos - nStartPos); memory.Seek(nEndPos); }; - + function fillShapeByPoints(arrOfArrPoints, aShapeRect, oParentAnnot) { let xMax = aShapeRect[2]; let xMin = aShapeRect[0]; let yMin = aShapeRect[1]; let yMax = aShapeRect[3]; - let geometry = generateGeometry(arrOfArrPoints, [xMin, yMin, xMax, yMax]); - - oParentAnnot.spPr.setGeometry(geometry); - oParentAnnot.updatePosition(xMin, yMin); + let geometry = generateGeometry(arrOfArrPoints, [xMin, yMin, xMax, yMax], oParentAnnot.spPr.geometry); + if (!oParentAnnot.spPr.geometry) { + oParentAnnot.spPr.setGeometry(geometry); + } + + let oXfrm = oParentAnnot.getXfrm(); + oXfrm.offX = xMin; + oXfrm.offY = yMin; - oParentAnnot.x = xMin; - oParentAnnot.y = yMin; return oParentAnnot; } function initShape(oParentAnnot) { - let aShapeRectInMM = oParentAnnot.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; - }); - let xMax = aShapeRectInMM[2]; + let aOrigRect = oParentAnnot.GetOrigRect(); + let aShapeRectInMM = aOrigRect ? aOrigRect.map(function(measure) { + return measure * g_dKoef_pt_to_mm; + }) : []; let xMin = aShapeRectInMM[0]; + let xMax = aShapeRectInMM[2]; let yMin = aShapeRectInMM[1]; let yMax = aShapeRectInMM[3]; @@ -596,10 +412,9 @@ oParentAnnot.spPr.setParent(oParentAnnot); oParentAnnot.spPr.setXfrm(new AscFormat.CXfrm()); oParentAnnot.spPr.xfrm.setParent(oParentAnnot.spPr); - oParentAnnot.setWordShape(true); - oParentAnnot.spPr.xfrm.setOffX(0); - oParentAnnot.spPr.xfrm.setOffY(0); + oParentAnnot.spPr.xfrm.setOffX(xMin); + oParentAnnot.spPr.xfrm.setOffY(yMin); oParentAnnot.spPr.xfrm.setExtX(Math.abs(xMax - xMin)); oParentAnnot.spPr.xfrm.setExtY(Math.abs(yMax - yMin)); oParentAnnot.setStyle(AscFormat.CreateDefaultShapeStyle()); @@ -749,11 +564,6 @@ return [xMin, yMin, xMax, yMax]; } - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - window["AscPDF"].fillShapeByPoints = fillShapeByPoints; window["AscPDF"].initShape = initShape; window["AscPDF"].CAnnotationInk = CAnnotationInk; diff --git a/pdf/src/annotations/line.js b/pdf/src/annotations/line.js index 19b69851e7..48e510c8ab 100644 --- a/pdf/src/annotations/line.js +++ b/pdf/src/annotations/line.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -89,12 +89,9 @@ this._captionPos = CAPTION_POSITIONING.Inline; // CP this._captionOffset = undefined; // CO this._needRecalc = false; - - // internal - TurnOffHistory(); } CAnnotationLine.prototype.constructor = CAnnotationLine; - AscFormat.InitClass(CAnnotationLine, AscPDF.CPdfShape, AscDFH.historyitem_type_Shape); + AscFormat.InitClass(CAnnotationLine, AscPDF.CPdfShape, AscDFH.historyitem_type_Pdf_Annot_Line); Object.assign(CAnnotationLine.prototype, AscPDF.CAnnotationBase.prototype); CAnnotationLine.prototype.SetCaptionOffset = function(array) { @@ -115,26 +112,22 @@ let oDoc = oViewer.getPDFDoc(); let aPoints = this.GetLinePoints(); - let nScaleY = oViewer.drawingPages[this.GetPage()].H / oViewer.file.pages[this.GetPage()].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[this.GetPage()].W / oViewer.file.pages[this.GetPage()].W / oViewer.zoom; - let aLinePoints = []; for (let i = 0; i < aPoints.length - 1; i += 2) { aLinePoints.push({ - x: aPoints[i] * g_dKoef_pix_to_mm * nScaleX, - y: (aPoints[i + 1])* g_dKoef_pix_to_mm * nScaleY + x: aPoints[i] * g_dKoef_pt_to_mm, + y: (aPoints[i + 1])* g_dKoef_pt_to_mm }); } - let aShapeRectInMM = this.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + let aShapeRectInMM = this.GetOrigRect().map(function(measure) { + return measure * g_dKoef_pt_to_mm; }); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); AscPDF.fillShapeByPoints([aLinePoints], aShapeRectInMM, this); - - this._points = aPoints; - } + oDoc.EndNoHistoryMode(); + }; CAnnotationLine.prototype.SetLeaderLineOffset = function(nValue) { this._leaderLineOffset = nValue; }; @@ -153,23 +146,18 @@ CAnnotationLine.prototype.GetLeaderExtend = function() { return this._leaderExtend; }; - CAnnotationLine.prototype.Recalculate = function() { - if (this.IsNeedRecalc() == false) + CAnnotationLine.prototype.Recalculate = function(bForce) { + if (true !== bForce && false == this.IsNeedRecalc()) { return; + } - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - let aOrigRect = this.GetOrigRect(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this.handleUpdatePosition(); if (this.recalcInfo.recalculateGeometry) this.RefillGeometry(); + this.recalculateTransform(); + this.updateTransformMatrix(); this.recalculate(); - this.updatePosition(aOrigRect[0] * g_dKoef_pix_to_mm * nScaleX, aOrigRect[1] * g_dKoef_pix_to_mm * nScaleY); + this.SetNeedRecalc(false); }; CAnnotationLine.prototype.IsNeedRecalc = function() { return this._needRecalc; @@ -204,23 +192,17 @@ }; CAnnotationLine.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oLine = new CAnnotationLine(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), oDoc); oLine.lazyCopy = true; - oLine._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - oLine._origRect = this._origRect.slice(); - this.fillObject(oLine); - let aFillColor = this.GetFillColor(); + let aStrokeColor = this.GetStrokeColor(); + let aFillColor = this.GetFillColor(); + let aLinePoints = this.GetLinePoints(); oLine._apIdx = this._apIdx; oLine._originView = this._originView; @@ -228,33 +210,29 @@ oLine.SetAuthor(this.GetAuthor()); oLine.SetModDate(this.GetModDate()); oLine.SetCreationDate(this.GetCreationDate()); + aStrokeColor && oLine.SetStrokeColor(aStrokeColor.slice()); oLine.SetWidth(this.GetWidth()); - oLine.SetStrokeColor(this.GetStrokeColor().slice()); oLine.SetLineStart(this.GetLineStart()); oLine.SetLineEnd(this.GetLineEnd()); oLine.SetContents(this.GetContents()); - oLine.SetFillColor(aFillColor ? aFillColor.slice() : undefined); + aFillColor && oLine.SetFillColor(aFillColor.slice()); oLine.SetOpacity(this.GetOpacity()); + aLinePoints && oLine.SetLinePoints(aLinePoints.slice()); oLine.recalcInfo.recalculateGeometry = true; - oLine._points = this._points.slice(); oLine.recalculate(); + oDoc.EndNoHistoryMode(); return oLine; }; CAnnotationLine.prototype.IsLine = function() { return true; }; CAnnotationLine.prototype.GetMinShapeRect = function() { - let oViewer = editor.getDocumentRenderer(); - let nLineWidth = this.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; + let nLineWidth = this.GetWidth(); let aPoints = this.GetLinePoints(); - let nPage = this.GetPage(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - let shapeAtStart = getFigureSize(this.GetLineStart(), nLineWidth); - let shapeAtEnd = getFigureSize(this.GetLineEnd(), nLineWidth); + let shapeSizeAtStart = getFigureSize(this.GetLineStart(), nLineWidth); + let shapeSizeAtEnd = getFigureSize(this.GetLineEnd(), nLineWidth); function calculateBoundingRectangle(line, figure1, figure2) { let x1 = line.x1, y1 = line.y1, x2 = line.x2, y2 = line.y2; @@ -306,56 +284,48 @@ } // Возвращаем координаты прямоугольника - return [minX * nScaleX, minY * nScaleY, maxX * nScaleX, maxY * nScaleY]; + return [minX, minY, maxX, maxY]; } - return calculateBoundingRectangle({x1: aPoints[0], y1: aPoints[1], x2: aPoints[2], y2: aPoints[3]}, shapeAtStart, shapeAtEnd); + return calculateBoundingRectangle({x1: aPoints[0], y1: aPoints[1], x2: aPoints[2], y2: aPoints[3]}, shapeSizeAtStart, shapeSizeAtEnd); }; - CAnnotationLine.prototype.SetRect = function(aRect) { + CAnnotationLine.prototype.SetRect = function(aOrigRect) { let oViewer = editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); - let nPage = this.GetPage(); - - oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetRect(), aRect)); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this._rect = aRect; - this._pagePos = { - x: aRect[0], - y: aRect[1], - w: (aRect[2] - aRect[0]), - h: (aRect[3] - aRect[1]) - }; + oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetOrigRect(), aOrigRect)); - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; + this._origRect = aOrigRect; - oDoc.TurnOffHistory(); + let oXfrm = this.getXfrm(); + if (oXfrm) { + oDoc.StartNoHistoryMode(); + this.spPr.xfrm.setExtX([aOrigRect[2] - aOrigRect[0]] * g_dKoef_pt_to_mm); + this.spPr.xfrm.setExtY((aOrigRect[3] - aOrigRect[1]) * g_dKoef_pt_to_mm); + oDoc.EndNoHistoryMode(); + } - this.spPr.xfrm.extX = this._pagePos.w * g_dKoef_pix_to_mm; - this.spPr.xfrm.extY = this._pagePos.h * g_dKoef_pix_to_mm; - - this.AddToRedraw(); + this.SetNeedRecalc(true); this.SetWasChanged(true); }; CAnnotationLine.prototype.SetStrokeColor = function(aColor) { + AscCommon.History.Add(new CChangesPDFAnnotStroke(this, this.GetStrokeColor(), aColor)); + this._strokeColor = aColor; let oRGB = this.GetRGBColor(aColor); let oFill = AscFormat.CreateSolidFillRGBA(oRGB.r, oRGB.g, oRGB.b, 255); - let oLine = this.pen; + let oLine = this.spPr.ln; oLine.setFill(oFill); + this.handleUpdateLn(); }; CAnnotationLine.prototype.SetOpacity = function(value) { this._opacity = value; this.SetWasChanged(true); - this.pen.Fill.transparent = value * 100 * 2.55; + let oLine = this.spPr.ln; + oLine.Fill.transparent = value * 100 * 2.55; + this.handleUpdateLn(); }; CAnnotationLine.prototype.GetDrawing = function() { return this.content.GetAllDrawingObjects()[0]; @@ -364,8 +334,9 @@ this._width = nWidthPt; nWidthPt = nWidthPt > 0 ? nWidthPt : 0.5; - let oLine = this.pen; + let oLine = this.spPr.ln; oLine.setW(nWidthPt * g_dKoef_pt_to_mm * 36000.0); + this.handleUpdateLn(); }; CAnnotationLine.prototype.GetLinePoints = function() { return this._points; @@ -380,7 +351,7 @@ this._lineStart = nType; this.SetWasChanged(true); - let oLine = this.pen; + let oLine = this.spPr.ln; oLine.setHeadEnd(new AscFormat.EndArrow()); let nLineEndType; switch (nType) { @@ -418,12 +389,13 @@ oLine.headEnd.setType(nLineEndType); oLine.headEnd.setLen(AscFormat.LineEndSize.Mid); + this.handleUpdateLn(); }; CAnnotationLine.prototype.SetLineEnd = function(nType) { this._lineEnd = nType; this.SetWasChanged(true); - let oLine = this.pen; + let oLine = this.spPr.ln; oLine.setTailEnd(new AscFormat.EndArrow()); let nLineEndType; switch (nType) { @@ -461,6 +433,7 @@ oLine.tailEnd.setType(nLineEndType); oLine.tailEnd.setLen(AscFormat.LineEndSize.Mid); + this.handleUpdateLn(); }; CAnnotationLine.prototype.GetLineStart = function() { return this._lineStart; @@ -486,14 +459,6 @@ AscPDF.CAnnotationBase.prototype.SetContents.call(this, contents); } }; - CAnnotationLine.prototype.SetReplies = function(aReplies) { - if (!this.IsUseContentAsComment()) { - AscPDF.CAnnotationFreeText.prototype.SetReplies.call(this, aReplies); - } - else { - AscPDF.CAnnotationBase.prototype.SetReplies.call(this, aReplies); - } - }; CAnnotationLine.prototype.GetAscCommentData = function() { if (!this.IsUseContentAsComment()) { return AscPDF.CAnnotationFreeText.prototype.GetAscCommentData.call(this); @@ -665,11 +630,6 @@ return oSize; } - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - window["AscPDF"].CAnnotationLine = CAnnotationLine; window["AscPDF"].LINE_END_TYPE = LINE_END_TYPE; })(); diff --git a/pdf/src/annotations/polyLine.js b/pdf/src/annotations/polyLine.js index ca4a12bb17..ca1d6bdd38 100644 --- a/pdf/src/annotations/polyLine.js +++ b/pdf/src/annotations/polyLine.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -61,12 +61,9 @@ this._lineEnd = undefined; this._vertices = undefined; this._width = undefined; - - // internal - TurnOffHistory(); } CAnnotationPolyLine.prototype.constructor = CAnnotationPolyLine; - AscFormat.InitClass(CAnnotationPolyLine, AscPDF.CPdfShape, AscDFH.historyitem_type_Shape); + AscFormat.InitClass(CAnnotationPolyLine, AscPDF.CPdfShape, AscDFH.historyitem_type_Pdf_Annot_Polyline); Object.assign(CAnnotationPolyLine.prototype, AscPDF.CAnnotationBase.prototype); CAnnotationPolyLine.prototype.SetVertices = function(aVertices) { @@ -82,99 +79,74 @@ return this._vertices; }; - CAnnotationPolyLine.prototype.Recalculate = function() { - if (this.IsNeedRecalc() == false) + CAnnotationPolyLine.prototype.Recalculate = function(bForce) { + if (true !== bForce && false == this.IsNeedRecalc()) { return; + } - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - let aOrigRect = this.GetOrigRect(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this.handleUpdatePosition(); if (this.recalcInfo.recalculateGeometry) this.RefillGeometry(); + this.recalculateTransform(); + this.updateTransformMatrix(); this.recalculate(); - this.updatePosition(aOrigRect[0] * g_dKoef_pix_to_mm * nScaleX, aOrigRect[1] * g_dKoef_pix_to_mm * nScaleY); + this.SetNeedRecalc(false); }; CAnnotationPolyLine.prototype.RefillGeometry = function() { let oViewer = editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); let aPoints = this.GetVertices(); - let nScaleY = oViewer.drawingPages[this.GetPage()].H / oViewer.file.pages[this.GetPage()].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[this.GetPage()].W / oViewer.file.pages[this.GetPage()].W / oViewer.zoom; - let aPolygonPoints = []; + for (let i = 0; i < aPoints.length - 1; i += 2) { aPolygonPoints.push({ - x: aPoints[i] * g_dKoef_pix_to_mm * nScaleX, - y: (aPoints[i + 1])* g_dKoef_pix_to_mm * nScaleY + x: aPoints[i] * g_dKoef_pt_to_mm, + y: (aPoints[i + 1])* g_dKoef_pt_to_mm }); } - let aShapeRectInMM = this.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + let aShapeRectInMM = this.GetOrigRect().map(function(measure) { + return measure * g_dKoef_pt_to_mm; }); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); fillShapeByPoints([aPolygonPoints], aShapeRectInMM, this); + oDoc.EndNoHistoryMode(); }; - CAnnotationPolyLine.prototype.SetRect = function(aRect) { + CAnnotationPolyLine.prototype.SetRect = function(aOrigRect) { let oViewer = editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); - let nPage = this.GetPage(); - oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetRect(), aRect)); + oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetOrigRect(), aOrigRect)); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; + this._origRect = aOrigRect; - this._rect = aRect; - - this._pagePos = { - x: aRect[0], - y: aRect[1], - w: (aRect[2] - aRect[0]), - h: (aRect[3] - aRect[1]) - }; - - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; - - oDoc.TurnOffHistory(); - - this.spPr.xfrm.extX = this._pagePos.w * g_dKoef_pix_to_mm; - this.spPr.xfrm.extY = this._pagePos.h * g_dKoef_pix_to_mm; + let oXfrm = this.getXfrm(); + if (oXfrm) { + AscCommon.History.StartNoHistoryMode(); + oXfrm.setOffX(aOrigRect[0] * g_dKoef_pt_to_mm); + oXfrm.setOffY(aOrigRect[1] * g_dKoef_pt_to_mm); + oXfrm.setExtX((aOrigRect[2] - aOrigRect[0]) * g_dKoef_pt_to_mm); + oXfrm.setExtY((aOrigRect[3] - aOrigRect[1]) * g_dKoef_pt_to_mm); + AscCommon.History.EndNoHistoryMode(); + } this.AddToRedraw(); this.SetWasChanged(true); }; CAnnotationPolyLine.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oPolyline = new CAnnotationPolyLine(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), oDoc); - oPolyline.lazyCopy = true; - oPolyline._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - oPolyline._origRect = this._origRect.slice(); - this.fillObject(oPolyline); - let aStrokeColor = this.GetStrokeColor(); - let aFillColor = this.GetFillColor(); + let aStrokeColor = this.GetStrokeColor(); + let aFillColor = this.GetFillColor(); + let aVertices = this.GetVertices(); oPolyline._apIdx = this._apIdx; oPolyline._originView = this._originView; @@ -182,16 +154,19 @@ oPolyline.SetAuthor(this.GetAuthor()); oPolyline.SetModDate(this.GetModDate()); oPolyline.SetCreationDate(this.GetCreationDate()); - oPolyline.SetWidth(this.GetWidth()); oPolyline.SetContents(this.GetContents()); - oPolyline.SetStrokeColor(aStrokeColor ? aStrokeColor.slice() : undefined); - oPolyline.SetFillColor(aFillColor ? aFillColor.slice() : undefined); + aStrokeColor && oPolyline.SetStrokeColor(aStrokeColor.slice()); + aFillColor && oPolyline.SetFillColor(aFillColor.slice()); + oPolyline.SetWidth(this.GetWidth()); oPolyline.SetLineStart(this.GetLineStart()); oPolyline.SetLineEnd(this.GetLineEnd()); oPolyline.SetOpacity(this.GetOpacity()); - oPolyline.recalcInfo.recalculateGeometry = true; - oPolyline._vertices = this._vertices.slice(); + aVertices && oPolyline.SetVertices(aVertices.slice()); oPolyline.SetWasChanged(oPolyline.IsChanged()); + oPolyline.recalcInfo.recalculateGeometry = true; + + oDoc.EndNoHistoryMode(); + return oPolyline; }; CAnnotationPolyLine.prototype.onMouseDown = function(x, y, e) { @@ -217,7 +192,7 @@ this._lineStart = nType; this.SetWasChanged(true); - let oLine = this.pen; + let oLine = this.spPr.ln; oLine.setHeadEnd(new AscFormat.EndArrow()); let nLineEndType; switch (nType) { @@ -258,12 +233,13 @@ oLine.headEnd.setType(nLineEndType); oLine.headEnd.setLen(AscFormat.LineEndSize.Mid); + this.handleUpdateLn(); }; CAnnotationPolyLine.prototype.SetLineEnd = function(nType) { this._lineEnd = nType; this.SetWasChanged(true); - let oLine = this.pen; + let oLine = this.spPr.ln; oLine.setTailEnd(new AscFormat.EndArrow()); let nLineEndType; switch (nType) { @@ -304,6 +280,7 @@ oLine.tailEnd.setType(nLineEndType); oLine.tailEnd.setLen(AscFormat.LineEndSize.Mid); + this.handleUpdateLn(); }; CAnnotationPolyLine.prototype.GetLineStart = function() { return this._lineStart; @@ -312,16 +289,11 @@ return this._lineEnd; }; CAnnotationPolyLine.prototype.GetMinShapeRect = function() { - let oViewer = editor.getDocumentRenderer(); - let nLineWidth = this.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; + let nLineWidth = this.GetWidth(); let aVertices = this.GetVertices(); - let nPage = this.GetPage(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - let shapeAtStart = getFigureSize(this.GetLineStart(), nLineWidth); - let shapeAtEnd = getFigureSize(this.GetLineEnd(), nLineWidth); + let shapeSizeAtStart = getFigureSize(this.GetLineStart(), nLineWidth); + let shapeSizeAtEnd = getFigureSize(this.GetLineEnd(), nLineWidth); function calculateBoundingRectangle(line, figure1, figure2) { const x1 = line.x1, y1 = line.y1, x2 = line.x2, y2 = line.y2; @@ -383,7 +355,7 @@ } // Return the coordinates of the rectangle - return [minX * nScaleX, minY * nScaleY, maxX * nScaleX, maxY * nScaleY]; + return [minX, minY, maxX, maxY]; } let oStartLine = { @@ -410,14 +382,14 @@ y_max = Math.max(y_max, points[i + 1]); } - return [x_min * nScaleX, y_min * nScaleY, x_max * nScaleX, y_max * nScaleY]; + return [x_min, y_min, x_max, y_max]; } // находим ректы исходных точек. Стартовой линии учитывая lineStart фигуру, и такую же для конца // далее нахоим объединения всех прямоугольников для получения результирующего let aSourceRect = findBoundingRectangle(aVertices); - let aStartLineRect = calculateBoundingRectangle(oStartLine, shapeAtStart, {width: 0, height: 0}); - let aEndLineRect = calculateBoundingRectangle(oEndLine, {width: 0, height: 0} , shapeAtEnd); + let aStartLineRect = calculateBoundingRectangle(oStartLine, shapeSizeAtStart, {width: 0, height: 0}); + let aEndLineRect = calculateBoundingRectangle(oEndLine, {width: 0, height: 0} , shapeSizeAtEnd); return unionRectangles([aSourceRect, aStartLineRect, aEndLineRect]); }; @@ -472,11 +444,7 @@ memory.WriteLong(nEndPos - nStartPos); memory.Seek(nEndPos); }; - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - + function fillShapeByPoints(arrOfArrPoints, aShapeRect, oParentAnnot) { let xMax = aShapeRect[2]; let xMin = aShapeRect[0]; @@ -485,10 +453,11 @@ let geometry = generateGeometry(arrOfArrPoints, [xMin, yMin, xMax, yMax]); oParentAnnot.spPr.setGeometry(geometry); - oParentAnnot.updatePosition(xMin, yMin); - oParentAnnot.x = xMin; - oParentAnnot.y = yMin; + let oXfrm = oParentAnnot.getXfrm(); + oXfrm.offX = xMin; + oXfrm.offY = yMin; + return oParentAnnot; } diff --git a/pdf/src/annotations/polygon.js b/pdf/src/annotations/polygon.js index b3cc600ec3..c258a61d04 100644 --- a/pdf/src/annotations/polygon.js +++ b/pdf/src/annotations/polygon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -59,12 +59,9 @@ this._width = undefined; this._vertices = undefined; this._intent = undefined; - - // internal - TurnOffHistory(); } CAnnotationPolygon.prototype.constructor = CAnnotationPolygon; - AscFormat.InitClass(CAnnotationPolygon, AscPDF.CPdfShape, AscDFH.historyitem_type_Shape); + AscFormat.InitClass(CAnnotationPolygon, AscPDF.CPdfShape, AscDFH.historyitem_type_Pdf_Annot_Polygon); Object.assign(CAnnotationPolygon.prototype, AscPDF.CAnnotationBase.prototype); CAnnotationPolygon.prototype.SetVertices = function(aVertices) { @@ -80,45 +77,38 @@ return this._vertices; }; - CAnnotationPolygon.prototype.Recalculate = function() { - if (this.IsNeedRecalc() == false) + CAnnotationPolygon.prototype.Recalculate = function(bForce) { + if (true !== bForce && false == this.IsNeedRecalc()) { return; + } - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - let aOrigRect = this.GetOrigRect(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - if (this.recalcInfo.recalculateGeometry) this.RefillGeometry(); - this.handleUpdatePosition(); + this.recalculateTransform(); + this.updateTransformMatrix(); this.recalculate(); - this.updatePosition(aOrigRect[0] * g_dKoef_pix_to_mm * nScaleX, aOrigRect[1] * g_dKoef_pix_to_mm * nScaleY); + this.SetNeedRecalc(false); }; CAnnotationPolygon.prototype.RefillGeometry = function() { let oViewer = editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); let aPoints = this.GetVertices(); - let nScaleY = oViewer.drawingPages[this.GetPage()].H / oViewer.file.pages[this.GetPage()].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[this.GetPage()].W / oViewer.file.pages[this.GetPage()].W / oViewer.zoom; let aPolygonPoints = []; for (let i = 0; i < aPoints.length - 1; i += 2) { aPolygonPoints.push({ - x: aPoints[i] * g_dKoef_pix_to_mm * nScaleX, - y: (aPoints[i + 1])* g_dKoef_pix_to_mm * nScaleY + x: aPoints[i] * g_dKoef_pt_to_mm, + y: (aPoints[i + 1])* g_dKoef_pt_to_mm }); } let aShapeRectInMM = this.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + return measure * g_dKoef_pt_to_mm; }); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let geometry; if (this.GetBorderEffectStyle() === AscPDF.BORDER_EFFECT_STYLES.Cloud) { @@ -130,59 +120,42 @@ if (this.spPr.geometry == null) this.spPr.setGeometry(geometry); + + oDoc.EndNoHistoryMode(); }; - CAnnotationPolygon.prototype.SetRect = function(aRect) { - let oViewer = editor.getDocumentRenderer(); + CAnnotationPolygon.prototype.SetRect = function(aOrigRect) { + let oViewer = Asc.editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); - let nPage = this.GetPage(); - - oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetRect(), aRect)); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - this._rect = aRect; + oDoc.History.Add(new CChangesPDFAnnotRect(this, this.GetOrigRect(), aOrigRect)); - this._pagePos = { - x: aRect[0], - y: aRect[1], - w: (aRect[2] - aRect[0]), - h: (aRect[3] - aRect[1]) - }; + this._origRect = aOrigRect; - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; - - oDoc.TurnOffHistory(); + let oXfrm = this.getXfrm(); + if (oXfrm) { + AscCommon.History.StartNoHistoryMode(); + oXfrm.setOffX(aOrigRect[0] * g_dKoef_pt_to_mm); + oXfrm.setOffY(aOrigRect[1] * g_dKoef_pt_to_mm); + oXfrm.setExtX((aOrigRect[2] - aOrigRect[0]) * g_dKoef_pt_to_mm); + oXfrm.setExtY((aOrigRect[3] - aOrigRect[1]) * g_dKoef_pt_to_mm); + AscCommon.History.EndNoHistoryMode(); + } - this.spPr.xfrm.extX = this._pagePos.w * g_dKoef_pix_to_mm; - this.spPr.xfrm.extY = this._pagePos.h * g_dKoef_pix_to_mm; - this.AddToRedraw(); this.SetWasChanged(true); }; CAnnotationPolygon.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oPolygon = new CAnnotationPolygon(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), oDoc); - oPolygon.lazyCopy = true; - oPolygon._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - oPolygon._origRect = this._origRect.slice(); - this.fillObject(oPolygon); - let aStrokeColor = this.GetStrokeColor(); - let aFillColor = this.GetFillColor(); + let aStrokeColor = this.GetStrokeColor(); + let aFillColor = this.GetFillColor(); + let aVertices = this.GetVertices(); oPolygon._apIdx = this._apIdx; oPolygon._originView = this._originView; @@ -190,16 +163,18 @@ oPolygon.SetAuthor(this.GetAuthor()); oPolygon.SetModDate(this.GetModDate()); oPolygon.SetCreationDate(this.GetCreationDate()); - oPolygon.SetWidth(this.GetWidth()); oPolygon.SetContents(this.GetContents()); - oPolygon.SetStrokeColor(aStrokeColor ? aStrokeColor.slice() : undefined); - oPolygon.SetFillColor(aFillColor ? aFillColor.slice() : undefined); + aStrokeColor && oPolygon.SetStrokeColor(aStrokeColor.slice()); + aFillColor && oPolygon.SetFillColor(aFillColor.slice()); + oPolygon.SetWidth(this.GetWidth()); oPolygon.SetOpacity(this.GetOpacity()); - oPolygon.recalcInfo.recalculateGeometry = true; - oPolygon._vertices = this._vertices.slice(); + aVertices && oPolygon.SetVertices(aVertices.slice()); oPolygon.SetWasChanged(oPolygon.IsChanged()); + oPolygon.recalcInfo.recalculateGeometry = true; oPolygon.recalculate(); + oDoc.EndNoHistoryMode(); + return oPolygon; }; CAnnotationPolygon.prototype.onMouseDown = function(x, y, e) { @@ -226,26 +201,23 @@ let oDoc = oViewer.getPDFDoc(); let aPoints = this.GetVertices(); - let nScaleY = oViewer.drawingPages[this.GetPage()].H / oViewer.file.pages[this.GetPage()].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[this.GetPage()].W / oViewer.file.pages[this.GetPage()].W / oViewer.zoom; - let aPolygonPoints = []; for (let i = 0; i < aPoints.length - 1; i += 2) { aPolygonPoints.push({ - x: aPoints[i] * g_dKoef_pix_to_mm * nScaleX, - y: (aPoints[i + 1])* g_dKoef_pix_to_mm * nScaleY + x: aPoints[i] * g_dKoef_pt_to_mm, + y: (aPoints[i + 1])* g_dKoef_pt_to_mm }); } let aShapeRectInMM = this.GetRect().map(function(measure) { - return measure * g_dKoef_pix_to_mm; + return measure * g_dKoef_pt_to_mm; }); - oDoc.TurnOffHistory(); - + oDoc.StartNoHistoryMode(); this._internalGeomForEdit = generateGeometry(aPolygonPoints, aShapeRectInMM, this._internalGeomForEdit); this._internalGeomForEdit.Recalculate(aShapeRectInMM[2] - aShapeRectInMM[0], aShapeRectInMM[3] - aShapeRectInMM[1]); - + oDoc.EndNoHistoryMode(); + return this._internalGeomForEdit; }; CAnnotationPolygon.prototype.IsPolygon = function() { @@ -368,12 +340,7 @@ geometry.rectS = null; return geometry; } - - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - + window["AscPDF"].CAnnotationPolygon = CAnnotationPolygon; })(); diff --git a/pdf/src/annotations/square.js b/pdf/src/annotations/square.js index c1b6c693d5..0a5ac18e7d 100644 --- a/pdf/src/annotations/square.js +++ b/pdf/src/annotations/square.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -52,35 +52,25 @@ this._state = undefined; this._stateModel = undefined; this._width = undefined; - this._rectDiff = undefined; - - // internal - TurnOffHistory(); + this._rectDiff = [0, 0, 0, 0]; } CAnnotationSquare.prototype.constructor = CAnnotationSquare; - AscFormat.InitClass(CAnnotationSquare, AscPDF.CPdfShape, AscDFH.historyitem_type_Shape); + AscFormat.InitClass(CAnnotationSquare, AscPDF.CPdfShape, AscDFH.historyitem_type_Pdf_Annot_Square); Object.assign(CAnnotationSquare.prototype, AscPDF.CAnnotationBase.prototype); CAnnotationSquare.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oSquare = new CAnnotationSquare(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), oDoc); oSquare.lazyCopy = true; - oSquare._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - oSquare._origRect = this._origRect.slice(); - this.fillObject(oSquare); - let aStrokeColor = this.GetStrokeColor(); - let aFillColor = this.GetFillColor(); + let aStrokeColor = this.GetStrokeColor(); + let aFillColor = this.GetFillColor(); + let aRD = this.GetRectangleDiff(); oSquare._apIdx = this._apIdx; oSquare._originView = this._originView; @@ -88,13 +78,15 @@ oSquare.SetAuthor(this.GetAuthor()); oSquare.SetModDate(this.GetModDate()); oSquare.SetCreationDate(this.GetCreationDate()); + aStrokeColor && oSquare.SetStrokeColor(aStrokeColor.slice()); + aFillColor && oSquare.SetFillColor(aFillColor.slice()); oSquare.SetWidth(this.GetWidth()); - oSquare.SetStrokeColor(aStrokeColor ? aStrokeColor.slice() : undefined); - oSquare.SetFillColor(aFillColor ? aFillColor.slice() : undefined); oSquare.SetOpacity(this.GetOpacity()); - oSquare.recalcInfo.recalculateGeometry = true; - this._rectDiff && oSquare.SetRectangleDiff(this._rectDiff.slice()); - oSquare.recalculate(); + oSquare.recalcGeometry() + aRD && oSquare.SetRectangleDiff(aRD.slice(), true); + oSquare.Recalculate(true); + + oDoc.EndNoHistoryMode(); return oSquare; }; @@ -102,13 +94,7 @@ if (this.GetBorderEffectStyle() !== AscPDF.BORDER_EFFECT_STYLES.Cloud) return; - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); let oDoc = this.GetDocument(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom * g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom * g_dKoef_pix_to_mm; - let aOrigRect = this.GetOrigRect(); let aRD = this.GetRectangleDiff() || [0, 0, 0, 0]; @@ -117,15 +103,15 @@ oGeometry = this.spPr.geometry; if (!aShapeRectInMM) { aShapeRectInMM = [ - (aOrigRect[0] + aRD[0]) * nScaleX, (aOrigRect[1] + aRD[1]) * nScaleY, - (aOrigRect[2] - aRD[2]) * nScaleX, (aOrigRect[3] - aRD[3]) * nScaleY + (aOrigRect[0] + aRD[0]) * g_dKoef_pt_to_mm, (aOrigRect[1] + aRD[1]) * g_dKoef_pt_to_mm, + (aOrigRect[2] - aRD[2]) * g_dKoef_pt_to_mm, (aOrigRect[3] - aRD[3]) * g_dKoef_pt_to_mm ]; aPoints = [ - {x: (aOrigRect[0] + aRD[0]) * nScaleX, y: (aOrigRect[1] + aRD[1]) * nScaleY}, - {x: (aOrigRect[2] - aRD[2]) * nScaleX, y: (aOrigRect[1] + aRD[1]) * nScaleY}, - {x: (aOrigRect[2] - aRD[2]) * nScaleX, y: (aOrigRect[3] - aRD[3]) * nScaleY}, - {x: (aOrigRect[0] + aRD[0]) * nScaleX, y: (aOrigRect[3] - aRD[3]) * nScaleY} + {x: (aOrigRect[0] + aRD[0]) * g_dKoef_pt_to_mm, y: (aOrigRect[1] + aRD[1]) * g_dKoef_pt_to_mm}, + {x: (aOrigRect[2] - aRD[2]) * g_dKoef_pt_to_mm, y: (aOrigRect[1] + aRD[1]) * g_dKoef_pt_to_mm}, + {x: (aOrigRect[2] - aRD[2]) * g_dKoef_pt_to_mm, y: (aOrigRect[3] - aRD[3]) * g_dKoef_pt_to_mm}, + {x: (aOrigRect[0] + aRD[0]) * g_dKoef_pt_to_mm, y: (aOrigRect[3] - aRD[3]) * g_dKoef_pt_to_mm} ] } else { @@ -137,97 +123,103 @@ ] } - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); AscPDF.generateCloudyGeometry(aPoints, aShapeRectInMM, oGeometry, this.GetBorderEffectIntensity()); - oGeometry.preset = undefined; - }; - CAnnotationSquare.prototype.SetRectangleDiff = function(aDiff) { - this._rectDiff = aDiff; + oDoc.EndNoHistoryMode(); - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom * g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom * g_dKoef_pix_to_mm; - - let aOrigRect = this.GetOrigRect(); - - this.spPr.xfrm.setOffX(aDiff[0] * nScaleX); - this.spPr.xfrm.setOffY(aDiff[1] * nScaleY); - let extX = ((aOrigRect[2] - aOrigRect[0]) - aDiff[0] - aDiff[2]) * nScaleX; - let extY = ((aOrigRect[3] - aOrigRect[1]) - aDiff[1] - aDiff[3]) * nScaleY; - - this.spPr.xfrm.setExtX(extX); - this.spPr.xfrm.setExtY(extY); + oGeometry.preset = undefined; }; - CAnnotationSquare.prototype.SetRect = function(aRect) { + CAnnotationSquare.prototype.SetRect = function(aOrigRect) { let oViewer = editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); - let nPage = this.GetPage(); - let aCurRect = this.GetRect(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - this._rect = aRect; - this._pagePos = { - x: aRect[0], - y: aRect[1], - w: (aRect[2] - aRect[0]), - h: (aRect[3] - aRect[1]) - }; - - this._origRect[0] = this._rect[0] / nScaleX; - this._origRect[1] = this._rect[1] / nScaleY; - this._origRect[2] = this._rect[2] / nScaleX; - this._origRect[3] = this._rect[3] / nScaleY; - - this.SetRectangleDiff([0, 0, 0, 0]); - oDoc.History.Add(new CChangesPDFAnnotRect(this, aCurRect, aRect)); - - oDoc.TurnOffHistory(); + let aCurRect = this.GetOrigRect(); + + let bCalcRDandRect = this._origRect.length != 0 && false == AscCommon.History.UndoRedoInProgress; + + this._origRect = aOrigRect; + + if (bCalcRDandRect) { + AscCommon.History.StartNoHistoryMode(); + + let aCurRD = this._rectDiff; + let nLineW = this.GetWidth() * g_dKoef_pt_to_mm; + this.SetRectangleDiff([0, 0, 0, 0]); + this.recalcBounds(); + this.recalcGeometry(); + this.Recalculate(true); + + AscCommon.History.EndNoHistoryMode(); + + let oGrBounds = this.bounds; + let oShapeBounds = this.getRectBounds(); + + this._origRect[0] = Math.round(oGrBounds.l - nLineW) * g_dKoef_mm_to_pt; + this._origRect[1] = Math.round(oGrBounds.t - nLineW) * g_dKoef_mm_to_pt; + this._origRect[2] = Math.round(oGrBounds.r + nLineW) * g_dKoef_mm_to_pt; + this._origRect[3] = Math.round(oGrBounds.b + nLineW) * g_dKoef_mm_to_pt; + + oDoc.History.Add(new CChangesPDFAnnotRect(this, aCurRect, aOrigRect)); + + this._rectDiff = aCurRD; + this.SetRectangleDiff([ + Math.round(oShapeBounds.l - oGrBounds.l + nLineW) * g_dKoef_mm_to_pt, + Math.round(oShapeBounds.t - oGrBounds.t + nLineW) * g_dKoef_mm_to_pt, + Math.round(oGrBounds.r - oShapeBounds.r + nLineW) * g_dKoef_mm_to_pt, + Math.round(oGrBounds.b - oShapeBounds.b + nLineW) * g_dKoef_mm_to_pt + ]); + } - this.recalcGeometry(); - this.AddToRedraw(); this.SetWasChanged(true); + this.SetNeedRecalcSizes(true); }; CAnnotationSquare.prototype.SetRectangleDiff = function(aDiff) { let oDoc = this.GetDocument(); oDoc.History.Add(new CChangesPDFAnnotRD(this, this.GetRectangleDiff(), aDiff)); - this._rectDiff = aDiff; - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom * g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom * g_dKoef_pix_to_mm; - - let aOrigRect = this.GetOrigRect(); - - this.spPr.xfrm.setOffX(aDiff[0] * nScaleX); - this.spPr.xfrm.setOffY(aDiff[1] * nScaleY); - let extX = ((aOrigRect[2] - aOrigRect[0]) - aDiff[0] - aDiff[2]) * nScaleX; - let extY = ((aOrigRect[3] - aOrigRect[1]) - aDiff[1] - aDiff[3]) * nScaleY; + this._rectDiff = aDiff; - this.spPr.xfrm.setExtX(extX); - this.spPr.xfrm.setExtY(extY); + this.SetWasChanged(true); + this.SetNeedRecalcSizes(true); + this.SetNeedRecalc(true); + }; + CAnnotationSquare.prototype.SetNeedRecalcSizes = function(bRecalc) { + this._needRecalcSizes = bRecalc; + this.recalcGeometry(); + }; + CAnnotationSquare.prototype.IsNeedRecalcSizes = function() { + return this._needRecalcSizes; }; CAnnotationSquare.prototype.IsSquare = function() { return true; }; - CAnnotationSquare.prototype.Recalculate = function() { - let oViewer = editor.getDocumentRenderer(); - let nPage = this.GetPage(); - let aOrigRect = this.GetOrigRect(); + CAnnotationSquare.prototype.Recalculate = function(bForce) { + if (true !== bForce && false == this.IsNeedRecalc()) { + return; + } - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom * g_dKoef_pix_to_mm; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom * g_dKoef_pix_to_mm; - - if (this.recalcInfo.recalculateGeometry) + if (this.IsNeedRecalcSizes()) { + let aOrigRect = this.GetOrigRect(); + let aRD = this.GetRectangleDiff(); + + let extX = ((aOrigRect[2] - aOrigRect[0]) - aRD[0] - aRD[2]) * g_dKoef_pt_to_mm; + let extY = ((aOrigRect[3] - aOrigRect[1]) - aRD[1] - aRD[3]) * g_dKoef_pt_to_mm; + + this.spPr.xfrm.offX = (aOrigRect[0] + aRD[0]) * g_dKoef_pt_to_mm; + this.spPr.xfrm.offY = (aOrigRect[1] + aRD[1]) * g_dKoef_pt_to_mm; + + this.spPr.xfrm.extX = extX; + this.spPr.xfrm.extY = extY; + + this.SetNeedRecalcSizes(false); + } + if (this.recalcInfo.recalculateGeometry) { this.RefillGeometry(); - this.handleUpdatePosition(); + } + + this.recalculateTransform(); + this.updateTransformMatrix(); this.recalculate(); - this.updatePosition(aOrigRect[0] * nScaleX, aOrigRect[1] * nScaleY); + this.SetNeedRecalc(false); }; CAnnotationSquare.prototype.WriteToBinary = function(memory) { @@ -266,11 +258,6 @@ memory.Seek(nEndPos); }; - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - window["AscPDF"].CAnnotationSquare = CAnnotationSquare; })(); diff --git a/pdf/src/annotations/text.js b/pdf/src/annotations/text.js index 5880896ebe..3cf133c294 100644 --- a/pdf/src/annotations/text.js +++ b/pdf/src/annotations/text.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -73,9 +73,9 @@ * Class representing a text annotation. * @constructor */ - function CAnnotationText(sName, nPage, aRect, oDoc) + function CAnnotationText(sName, nPage, aOrigRect, oDoc) { - AscPDF.CAnnotationBase.call(this, sName, AscPDF.ANNOTATIONS_TYPES.Text, nPage, aRect, oDoc); + AscPDF.CAnnotationBase.call(this, sName, AscPDF.ANNOTATIONS_TYPES.Text, nPage, aOrigRect, oDoc); this._noteIcon = NOTE_ICONS_TYPES.Comment; this._point = undefined; @@ -88,11 +88,9 @@ this._width = undefined; this._fillColor = [1, 0.82, 0]; - // internal - TurnOffHistory(); this._replies = []; } - CAnnotationText.prototype = Object.create(AscPDF.CAnnotationBase.prototype); + AscFormat.InitClass(CAnnotationText, AscPDF.CAnnotationBase, AscDFH.historyitem_type_Pdf_Annot_Text); CAnnotationText.prototype.constructor = CAnnotationText; CAnnotationText.prototype.SetState = function(nType) { @@ -110,8 +108,8 @@ CAnnotationText.prototype.ClearReplies = function() { this._replies = []; }; - CAnnotationText.prototype.AddReply = function(CommentData) { - let oReply = new CAnnotationText(AscCommon.CreateGUID(), this.GetPage(), this.GetRect().slice(), this.GetDocument()); + CAnnotationText.prototype.AddReply = function(CommentData, nPos) { + let oReply = new CAnnotationText(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), this.GetDocument()); oReply.SetContents(CommentData.m_sText); oReply.SetCreationDate(CommentData.m_sOOTime); @@ -119,14 +117,20 @@ oReply.SetAuthor(CommentData.m_sUserName); oReply.SetDisplay(window["AscPDF"].Api.Objects.display["visible"]); oReply.SetReplyTo(this.GetReplyTo() || this); + CommentData.SetUserData(oReply.GetId()); - oReply.SetApIdx(this.GetDocument().GetMaxApIdx() + 2); - CommentData.m_sUserData = oReply.GetApIdx(); + if (!nPos) { + nPos = this._replies.length; + } - this._replies.push(oReply); + this._replies.splice(nPos, 0, oReply); }; CAnnotationText.prototype.GetAscCommentData = function() { let oAscCommData = new Asc.asc_CCommentDataWord(null); + if (null == this.GetContents()) { + return undefined; + } + oAscCommData.asc_putText(this.GetContents()); let sModDate = this.GetModDate(); if (sModDate) @@ -140,7 +144,7 @@ bSolved = true; oAscCommData.asc_putSolved(bSolved); oAscCommData.asc_putQuoteText(""); - oAscCommData.m_sUserData = this.GetApIdx(); + oAscCommData.m_sUserData = this.GetId(); this._replies.forEach(function(reply) { oAscCommData.m_aReplies.push(reply.GetAscCommentData()); @@ -195,36 +199,25 @@ }; CAnnotationText.prototype.LazyCopy = function() { let oDoc = this.GetDocument(); - oDoc.TurnOffHistory(); + oDoc.StartNoHistoryMode(); let oNewAnnot = new CAnnotationText(AscCommon.CreateGUID(), this.GetPage(), this.GetOrigRect().slice(), oDoc); oNewAnnot.lazyCopy = true; - if (this._pagePos) { - oNewAnnot._pagePos = { - x: this._pagePos.x, - y: this._pagePos.y, - w: this._pagePos.w, - h: this._pagePos.h - } - } - - - if (this._origRect) - oNewAnnot._origRect = this._origRect.slice(); - let aFillColor = this.GetFillColor(); oNewAnnot._originView = this._originView; oNewAnnot._apIdx = this._apIdx; - oNewAnnot.SetFillColor(aFillColor ? aFillColor.slice() : undefined); + aFillColor && oNewAnnot.SetFillColor(aFillColor.slice()); oNewAnnot.SetOriginPage(this.GetOriginPage()); oNewAnnot.SetAuthor(this.GetAuthor()); oNewAnnot.SetModDate(this.GetModDate()); oNewAnnot.SetCreationDate(this.GetCreationDate()); oNewAnnot.SetContents(this.GetContents()); + oDoc.EndNoHistoryMode(); + return oNewAnnot; }; CAnnotationText.prototype.Draw = function(oGraphics) { @@ -238,13 +231,13 @@ let oRGB = this.GetRGBColor(this.GetFillColor()); let ICON_TO_DRAW = this.GetIconImg(); - let aRect = this.GetRect(); + let oDoc = this.GetDocument(); let nPage = this.GetPage(); let aOrigRect = this.GetOrigRect(); - let nRotAngle = this.GetDocument().Viewer.getPageRotate(nPage); + let nRotAngle = oDoc.Viewer.getPageRotate(nPage); - let nWidth = (aRect[2] - aRect[0]) * AscCommon.AscBrowser.retinaPixelRatio; - let nHeight = (aRect[3] - aRect[1]) * AscCommon.AscBrowser.retinaPixelRatio; + let nWidth = (aOrigRect[2] - aOrigRect[0]) * oDoc.Viewer.getDrawingPageScale(nPage) * AscCommon.AscBrowser.retinaPixelRatio; + let nHeight = (aOrigRect[3] - aOrigRect[1]) * oDoc.Viewer.getDrawingPageScale(nPage) * AscCommon.AscBrowser.retinaPixelRatio; let imgW = ICON_TO_DRAW.width; let imgH = ICON_TO_DRAW.height; @@ -329,9 +322,6 @@ CAnnotationText.prototype.IsComment = function() { return true; }; - CAnnotationText.prototype.getObjectType = function() { - return -1; - }; CAnnotationText.prototype.WriteToBinary = function(memory) { memory.WriteByte(AscCommon.CommandType.ctAnnotField); @@ -371,12 +361,7 @@ memory.WriteLong(nEndPos - nStartPos); memory.Seek(nEndPos); }; - // CAnnotationText.prototype.ClearCache = function() {}; - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - + window["AscPDF"].CAnnotationText = CAnnotationText; window["AscPDF"].TEXT_ANNOT_STATE = TEXT_ANNOT_STATE; window["AscPDF"].TEXT_ANNOT_STATE_MODEL = TEXT_ANNOT_STATE_MODEL; diff --git a/pdf/src/annotations/textPrTrackHandler.js b/pdf/src/annotations/textPrTrackHandler.js index 86c7315c97..ea45749815 100644 --- a/pdf/src/annotations/textPrTrackHandler.js +++ b/pdf/src/annotations/textPrTrackHandler.js @@ -89,11 +89,15 @@ if (!oAnnot) return null; - + + let oDoc = oAnnot.GetDocument(); + if (!oDoc) { + return null; + } + let aOrigRect = oAnnot.GetOrigRect(); let aRD = oAnnot.GetRectangleDiff() || [0, 0, 0, 0]; // отступ координат фигуры с текстом от ректа аннотации let nPage = oAnnot.GetPage(); - let oDoc = oAnnot.GetDocument(); let oTr = oDoc.pagesTransform[nPage].invert; let aFreeTextRect = []; // прямоугольник diff --git a/pdf/src/annotations/textSelectTrackHandler.js b/pdf/src/annotations/textSelectTrackHandler.js index 2ac6f4c40c..6e0aae2581 100644 --- a/pdf/src/annotations/textSelectTrackHandler.js +++ b/pdf/src/annotations/textSelectTrackHandler.js @@ -50,7 +50,7 @@ }; CTextSelectTrackHandler.prototype.OnChangePosition = function() { let oFile = Asc.editor.getDocumentRenderer().file; - if (oFile.Selection.IsSelection) { + if (oFile.Selection.IsSelection || false === Asc.editor.NeedShowTextSelectPanel()) { this.OnHide(); return; } diff --git a/pdf/src/apiPDF.js b/pdf/src/apiPDF.js index bec6bf71cf..a699e32df4 100644 --- a/pdf/src/apiPDF.js +++ b/pdf/src/apiPDF.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/pdf/src/defines.js b/pdf/src/defines.js index ada7753c20..e533e5f3eb 100644 --- a/pdf/src/defines.js +++ b/pdf/src/defines.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/pdf/src/document.js b/pdf/src/document.js index 0882ac7d27..6c2737aef1 100644 --- a/pdf/src/document.js +++ b/pdf/src/document.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -106,7 +106,10 @@ var CPresentation = CPresentation || function(){}; this.maxApIdx = -1; this.CollaborativeEditing = AscCommon.CollaborativeEditing; - this.CollaborativeEditing.m_oLogicDocument = this; + this.CollaborativeEditing.SetLogicDocument(this); + this.NeedUpdateTargetForCollaboration = true; + this.LastUpdateTargetTime = 0; + this.MathTrackHandler = new AscWord.CMathTrackHandler(this.GetDrawingDocument(), Asc.editor); this.AnnotTextPrTrackHandler= new AscPDF.CAnnotTextPrTrackHandler(this.GetDrawingDocument(), Asc.editor); this.TextSelectTrackHandler = new AscPDF.CTextSelectTrackHandler(this.GetDrawingDocument(), Asc.editor); @@ -114,7 +117,7 @@ var CPresentation = CPresentation || function(){}; this.theme = AscFormat.GenerateDefaultTheme(this); this.clrSchemeMap = AscFormat.GenerateDefaultColorMap(); - this.styles = AscCommonWord.DEFAULT_STYLES.Copy(); + this.styles = AscWord.DEFAULT_STYLES.Copy(); this.TableStylesIdMap = {}; this.InitDefaultTextListStyles(); this.InitDefaultTableStyles(); @@ -152,13 +155,25 @@ var CPresentation = CPresentation || function(){}; this.mouseDownAnnot = null; this._id = AscCommon.g_oIdCounter.Get_NewId(); - - this.History = new AscPDF.History(this); - this.LocalHistory = new AscPDF.History(this); + AscCommon.g_oTableId.Add(this, this._id); + this.History = new AscPDF.History(this); + this.History.Set_LogicDocument(this); + this.annotsContentChanges = new AscCommon.CContentChanges(); // список изменений(добавление/удаление элементов) + this.fieldsContentChanges = new AscCommon.CContentChanges(); // список изменений(добавление/удаление элементов) + this.drawingsContentChanges = new AscCommon.CContentChanges(); // список изменений(добавление/удаление элементов) + this.pagesContentChanges = new AscCommon.CContentChanges(); + + if (AscCommon.History) + { + this.History.UserSaveMode = AscCommon.History.UserSaveMode; + this.History.UserSavedIndex = AscCommon.History.UserSavedIndex; + } + + this.LocalHistory = new AscPDF.History(this); AscCommon.History = this.History; - - this.Spelling = new AscCommonWord.CDocumentSpellChecker(); + + this.Spelling = new AscWord.CDocumentSpellChecker(); this.Viewer = viewer; this.Api = Asc.editor; @@ -166,17 +181,60 @@ var CPresentation = CPresentation || function(){}; this.fontLoader = AscCommon.g_font_loader; this.defaultFontsLoaded = -1; // -1 не загружены и не грузим, 0 - грузим, 1 - загружены - this.fontLoaderCallbacks = []; this.loadedFonts = []; this.Action = {}; } + CPDFDoc.prototype.RecalculateAll = function() { + let fontMap = {}; + + this.widgets.forEach(function(field) { + if (field.IsNeedDrawFromStream()) + return; + + let fontName = field.GetTextFontActual(); + if (fontName) + fontMap[fontName] = true; + }); + + this.drawings.forEach(function(drawing) { + drawing.GetAllFonts(fontMap); + }); + + this.annots.forEach(function(annot) { + annot.GetAllFonts(fontMap); + }); + + if (this.checkFonts(Object.keys(fontMap), this._RecalculateAll.bind(this))) { + this._RecalculateAll(); + } + }; + CPDFDoc.prototype._RecalculateAll = function() { + this.widgets.forEach(function(field) { + if (field.IsNeedDrawFromStream()) + return; + + field.Recalculate(); + }); + + this.drawings.forEach(function(drawing) { + drawing.Recalculate(); + }); + + this.annots.forEach(function(annot) { + annot.Recalculate(); + }); + }; CPDFDoc.prototype.UpdatePagesTransform = function() { this.pagesTransform = []; let oFile = this.Viewer.file; for (let i = 0; i < oFile.pages.length; i++) { - let oPage = this.Viewer.drawingPages[i]; + let oPage = this.Viewer.drawingPages[i]; + if (!oPage) { + continue; + } + let nAngle = this.Viewer.getPageRotate(i); let oPageTr = new AscCommon.CMatrix(); @@ -250,6 +308,84 @@ var CPresentation = CPresentation || function(){}; }); } }; + CPDFDoc.prototype.GetPageTransform = function(nPage, bForcedCalc) { + if (!bForcedCalc) { + return this.pagesTransform[nPage]; + } + + let oPage = this.Viewer.drawingPages[nPage]; + let nAngle = this.Viewer.getPageRotate(nPage); + + let oPageTr = new AscCommon.CMatrix(); + + let xCenter = this.Viewer.width >> 1; + if (this.Viewer.documentWidth > this.Viewer.width) + xCenter = (this.Viewer.documentWidth >> 1) - (this.Viewer.scrollX) >> 0; + + let nPageW = oPage.W; + let nPageH = oPage.H; + let xInd = xCenter - (oPage.W >> 1); + let yInd = -(this.Viewer.scrollY - this.Viewer.drawingPages[nPage].Y); + + let nScale = this.Viewer.file.pages[nPage].W / this.Viewer.drawingPages[nPage].W; + + let shx = 0, shy = 0, sx = 1, sy = 1, tx = 0, ty = 0; + + switch (nAngle) { + case 0: { + tx = -xInd * nScale; + ty = -yInd * nScale; + sx = nScale; + sy = nScale; + shx = 0; + shy = 0; + break; + } + case 90: { + // Новый отступ слева после поворота + let newXInd = xInd + (nPageW - nPageH >> 1); + tx = -yInd * nScale - (0.5 / this.Viewer.zoom); // магическое число + ty = (nPageH + newXInd) * nScale - (0.5 / this.Viewer.zoom); // магическое число + sx = 0; + sy = 0; + shx = 1 * nScale; + shy = -1 * nScale; + break; + } + case 180: { + tx = (xInd + nPageW) * nScale - (1.5 / this.Viewer.zoom); // магическое число + ty = (yInd + nPageH) * nScale; + sx = -nScale; + sy = -nScale; + shx = 0; + shy = 0; + break; + } + case 270: { + // Новый отступ слева после поворота + let newXInd = xInd + (nPageW - nPageH >> 1); + tx = (nPageW + yInd) * nScale; + ty = -newXInd * nScale + (1.5 / this.Viewer.zoom); // магическое число; + sx = 0; + sy = 0; + shx = -1 * nScale; + shy = 1 * nScale; + break; + } + } + + oPageTr.shx = shx; + oPageTr.shy = shy; + oPageTr.sx = sx; + oPageTr.sy = sy; + oPageTr.tx = tx; + oPageTr.ty = ty; + + return { + normal: oPageTr, + invert: AscCommon.global_MatrixTransformer.Invert(oPageTr) + } + }; /////////// методы для открытия ////////////// CPDFDoc.prototype.AddFieldToChildsMap = function(oField, nParentIdx) { @@ -347,7 +483,12 @@ var CPresentation = CPresentation || function(){}; }); }; CPDFDoc.prototype.FillButtonsIconsOnOpen = function() { - let oViewer = editor.getDocumentRenderer(); + let oViewer = editor.getDocumentRenderer(); + if (window["NATIVE_EDITOR_ENJINE"]) { + oViewer.IsOpenFormsInProgress = false; + return; + } + let oDoc = this; let aIconsToLoad = []; @@ -410,13 +551,13 @@ var CPresentation = CPresentation || function(){}; let oBtnField = oDoc.GetFieldBySourceIdx(oIconsInfo["MK"][nBtn]["i"]); if (oIconsInfo["MK"][nBtn]["I"]) { - oBtnField.SetImageData(oIconsInfo["MK"][nBtn]["I"]); + oBtnField.SetImageRasterId(oIconsInfo["MK"][nBtn]["I"].src, AscPDF.APPEARANCE_TYPE.normal); } if (oIconsInfo["MK"][nBtn]["RI"]) { - oBtnField.SetImageData(oIconsInfo["MK"][nBtn]["RI"], AscPDF.APPEARANCE_TYPE.rollover); + oBtnField.SetImageRasterId(oIconsInfo["MK"][nBtn]["RI"].src, AscPDF.APPEARANCE_TYPE.rollover); } if (oIconsInfo["MK"][nBtn]["IX"]) { - oBtnField.SetImageData(oIconsInfo["MK"][nBtn]["IX"], AscPDF.APPEARANCE_TYPE.mouseDown); + oBtnField.SetImageRasterId(oIconsInfo["MK"][nBtn]["IX"].src, AscPDF.APPEARANCE_TYPE.mouseDown); } } oViewer.isRepaint = true; @@ -496,13 +637,13 @@ var CPresentation = CPresentation || function(){}; return editor.getDocumentRenderer(); }; CPDFDoc.prototype.CommitFields = function() { - this.skipHistoryOnCommit = true; + // this.skipHistoryOnCommit = true; this.fieldsToCommit.forEach(function(field) { field.Commit(); }); this.ClearFieldsToCommit(); - this.skipHistoryOnCommit = false; + // this.skipHistoryOnCommit = false; }; CPDFDoc.prototype.ClearCacheForms = function(nPageIndex) { let oViewer = editor.getDocumentRenderer(); @@ -540,13 +681,6 @@ var CPresentation = CPresentation || function(){}; CPDFDoc.prototype.ClearFieldsToCommit = function() { this.fieldsToCommit = []; }; - CPDFDoc.prototype.UpdateApIdx = function(newApIdx) { - if (this.maxApIdx < newApIdx) - this.maxApIdx = newApIdx; - }; - CPDFDoc.prototype.GetMaxApIdx = function() { - return this.maxApIdx; - }; CPDFDoc.prototype.SelectNextForm = function() { let oViewer = editor.getDocumentRenderer(); let oDrDoc = this.GetDrawingDocument(); @@ -607,8 +741,7 @@ var CPresentation = CPresentation || function(){}; oDrDoc.UpdateTargetFromPaint = true; oDrDoc.m_lCurrentPage = 0; oDrDoc.m_lPagesCount = oViewer.file.pages.length; - oDrDoc.showTarget(true); - oDrDoc.TargetStart(); + oDrDoc.TargetStart(true); if (oNextForm.content.IsSelectionUse()) oNextForm.content.RemoveSelection(); @@ -626,8 +759,11 @@ var CPresentation = CPresentation || function(){}; let oOnFocus = oNextForm.GetTrigger(AscPDF.FORMS_TRIGGERS_TYPES.OnFocus); // вызываем выставление курсора после onFocus. Если уже в фокусе, тогда сразу. - if (oOnFocus && oOnFocus.Actions.length > 0) + if (oOnFocus && oOnFocus.Actions.length > 0) { oActionsQueue.callbackAfterFocus = callbackAfterFocus.bind(this); + oActionsQueue.AddActions(oOnFocus.Actions); + oActionsQueue.Start(); + } else callbackAfterFocus.bind(this)(); }; @@ -691,8 +827,7 @@ var CPresentation = CPresentation || function(){}; oDrDoc.UpdateTargetFromPaint = true; oDrDoc.m_lCurrentPage = 0; oDrDoc.m_lPagesCount = oViewer.file.pages.length; - oDrDoc.showTarget(true); - oDrDoc.TargetStart(); + oDrDoc.TargetStart(true); if (oNextForm.content.IsSelectionUse()) oNextForm.content.RemoveSelection(); @@ -710,8 +845,11 @@ var CPresentation = CPresentation || function(){}; let oOnFocus = oNextForm.GetTrigger(AscPDF.FORMS_TRIGGERS_TYPES.OnFocus); // вызываем выставление курсора после onFocus. Если уже в фокусе, тогда сразу. - if (oOnFocus && oOnFocus.Actions.length > 0) + if (oOnFocus && oOnFocus.Actions.length > 0) { oActionsQueue.callbackAfterFocus = callbackAfterFocus.bind(this); + oActionsQueue.AddActions(oOnFocus.Actions); + oActionsQueue.Start(); + } else callbackAfterFocus.bind(this)(); }; @@ -761,39 +899,38 @@ var CPresentation = CPresentation || function(){}; let oTr = this.pagesTransform[nPage].invert; let oPos = oTr.TransformPoint(xOffset, yOffset); - this.Viewer.navigateToPage(nPage, this.Viewer.scrollY + oPos.y, this.Viewer.scrollX + oPos.x); + this.Viewer.scrollToXY(this.Viewer.scrollY + oPos.y, this.Viewer.scrollX + oPos.x); }; CPDFDoc.prototype.CommitField = function(oField) { - let isValid = true; - - if (oField.IsNeedRevertShiftView()) { - oField.RevertContentViewToOriginal(); - } - - if ([AscPDF.FIELD_TYPES.text, AscPDF.FIELD_TYPES.combobox].includes(oField.GetType())) { - isValid = oField.DoValidateAction(oField.GetValue(true)); - } + return this.DoAction(function() { + let isValid = true; - if (isValid) { - oField.needValidate = false; - oField.Commit(); - if (this.event["rc"] == true && this.IsNeedDoCalculate()) { - this.DoCalculateFields(oField); - this.AddFieldToCommit(oField); - this.CommitFields(); + if ([AscPDF.FIELD_TYPES.text, AscPDF.FIELD_TYPES.combobox].includes(oField.GetType())) { + isValid = oField.DoValidateAction(oField.GetValue(true)); } - - isValid = this.event["rc"]; - } - else { - oField.UndoNotAppliedChanges(); - if (oField.IsChanged() == false) { - oField.SetDrawFromStream(true); + + if (isValid) { + oField.needValidate = false; + oField.Commit(); + if (this.event["rc"] == true && this.IsNeedDoCalculate()) { + this.DoCalculateFields(oField); + this.AddFieldToCommit(oField); + this.CommitFields(); + } + + isValid = this.event["rc"]; } - } + else { + oField.UndoNotAppliedChanges(); + if (oField.IsChanged() == false) { + oField.SetDrawFromStream(true); + } + } + + oField.SetNeedCommit(false); - oField.SetNeedCommit(false); - return isValid; + return isValid; + }, AscDFH.historydescription_Pdf_FieldCommit, this); }; CPDFDoc.prototype.EnterDownActiveField = function() { this.SetGlobalHistory(); @@ -818,7 +955,7 @@ var CPresentation = CPresentation || function(){}; oForm.UpdateScroll && oForm.UpdateScroll(false); // убираем скролл if (oForm.IsNeedRevertShiftView()) { - oForm.RevertContentViewToOriginal(); + oForm.RevertContentView(); } if (oForm.IsNeedCommit()) { @@ -840,6 +977,7 @@ var CPresentation = CPresentation || function(){}; }; CPDFDoc.prototype.OnMouseDown = function(x, y, e) { Asc.editor.sendEvent('asc_onHidePdfFormsActions'); + Asc.editor.SetShowTextSelectPanel(true); let oViewer = this.Viewer; if (!oViewer.canInteract()) { @@ -853,6 +991,7 @@ var CPresentation = CPresentation || function(){}; let IsOnDrawer = this.Api.isDrawInkMode(); let IsOnEraser = this.Api.isEraseInkMode(); let IsOnAddAddShape = this.Api.isStartAddShape; + let IsPageHighlight = this.Api.IsCommentMarker(); let oMouseDownLink = oViewer.getPageLinkByMouse(); let oMouseDownField = oViewer.getPageFieldByMouse(); @@ -889,15 +1028,21 @@ var CPresentation = CPresentation || function(){}; oController.OnMouseDown(e, X, Y, pageObject.index); return; } - // если выделение текста на странице - else if (oViewer.Api.curMarkerType != undefined) { + // если хайлайт (аннотация) текста на странице (селектим текст на странице, если не попали в фигуру в режиме view). + // если попали в фигуру, то селектим в ней (т.к. это типо текст на странице) + else if (IsPageHighlight) { oViewer.isMouseMoveBetweenDownUp = true; - oViewer.onMouseDownEpsilon(e); - return; + this.BlurActiveObject(); + + if (null == oMouseDownDrawing) { + oViewer.onMouseDownEpsilon(e); + return; + } } - // докидываем в селект let oCurObject = this.GetMouseDownObject(); + + // докидываем в селект if (e.CtrlKey && (oCurObject && oCurObject.IsDrawing() && oMouseDownDrawing && oCurObject != oMouseDownDrawing) && oMouseDownDrawing.GetPage() == oMouseDownDrawing.GetPage()) { oController.selectObject(oMouseDownDrawing, oMouseDownDrawing.GetPage()); return; @@ -933,7 +1078,7 @@ var CPresentation = CPresentation || function(){}; oMouseDownObject.onMouseDown(x, y, e, pageObject.index); } - if (((oMouseDownObject.IsDrawing() && oMouseDownObject.IsTextShape()) || (oMouseDownObject.IsAnnot() && oMouseDownObject.IsFreeText())) && false == oMouseDownObject.IsInTextBox()) { + if ((oMouseDownObject.IsDrawing() || (oMouseDownObject.IsAnnot() && oMouseDownObject.IsFreeText())) && false == oMouseDownObject.IsInTextBox()) { oDrDoc.TargetEnd(); } } @@ -953,6 +1098,7 @@ var CPresentation = CPresentation || function(){}; } this.UpdateInterface(); + this.private_UpdateTargetForCollaboration(); }; CPDFDoc.prototype.BlurActiveObject = function() { let oActiveObj = this.GetActiveObject(); @@ -970,6 +1116,8 @@ var CPresentation = CPresentation || function(){}; if (oActiveObj.IsDrawing()) { oContent = oActiveObj.GetDocContent(); this.activeDrawing = null; + + oActiveObj.OnBlur(); } else if (oActiveObj.IsForm()) { oContent = oActiveObj.GetDocContent(); @@ -981,6 +1129,8 @@ var CPresentation = CPresentation || function(){}; if ([AscPDF.FIELD_TYPES.checkbox, AscPDF.FIELD_TYPES.radiobutton, AscPDF.FIELD_TYPES.button].includes(oActiveObj.GetType())) { oActiveObj.SetPressed(false); oActiveObj.SetHovered(false); + oActiveObj.AddToRedraw(); + oActiveObj.Blur(); return; } else { @@ -993,7 +1143,7 @@ var CPresentation = CPresentation || function(){}; } if (oActiveObj.IsNeedRevertShiftView()) { - oActiveObj.RevertContentViewToOriginal(); + oActiveObj.RevertContentView(); } } } @@ -1020,12 +1170,6 @@ var CPresentation = CPresentation || function(){}; this.Viewer.onUpdateOverlay(); }; CPDFDoc.prototype.SetMouseDownObject = function(oObject) { - if (this.GetActiveObject() == oObject) { - return; - } - - this.Viewer.file.removeSelection(); - if (!oObject) { this.BlurActiveObject(); @@ -1036,6 +1180,12 @@ var CPresentation = CPresentation || function(){}; return; } + if (this.GetActiveObject() == oObject) { + return; + } + + this.Viewer.file.removeSelection(); + if (oObject.IsForm && oObject.IsForm()) { // если попали в другую форму, то выход из текущей if (this.mouseDownAnnot != this.activeForm) { @@ -1101,6 +1251,46 @@ var CPresentation = CPresentation || function(){}; CONTENT: 2 }; + PDFSelectedContent.prototype.copy = function() { + let oCopy = new PDFSelectedContent(); + + let oIdMap = {}; + let oCopyPr = new AscFormat.CCopyObjectProperties(); + oCopyPr.idMap = oIdMap; + + for (let i = 0; i < this.Drawings.length; i++) { + let oCopyDrawingObj = this.Drawings[i].Drawing.copy(oCopyPr); + oIdMap[this.Drawings[i].Drawing.GetId()] = oCopyDrawingObj.GetId(); + oCopy.Drawings.push({ + Drawing: oCopyDrawingObj, + ExtX: this.Drawings[i].ExtX, + X: this.Drawings[i].X, + Y: this.Drawings[i].Y, + base64: this.Drawings[i].base64 + }); + } + + AscFormat.fResetConnectorsIds(oCopy.Drawings.map(function(drawing) { + return drawing.Drawing; + }), oIdMap); + + if (this.DocContent) { + //TODO: перенести копирование в CSelectedContent; + oCopy.DocContent = new AscCommonWord.CSelectedContent(); + let aElements = this.DocContent.Elements; + for (let i = 0; i < aElements.length; ++i) { + let oSelectedElement = new AscCommonWord.CSelectedElement(); + let oElement = aElements[i]; + let oParagraph = aElements[i].Element; + oSelectedElement.SelectedAll = oElement.SelectedAll; + + oSelectedElement.Element = oParagraph.Copy(oParagraph.Parent, oParagraph.DrawingDocument, {}); + oCopy.DocContent.Elements[i] = oSelectedElement; + } + } + + return oCopy; + }; PDFSelectedContent.prototype.getContentType = function () { if (this.Drawings.length > 0) { return PDF_SEL_CONTENT_TYPES.DRAWINGS; @@ -1164,7 +1354,7 @@ var CPresentation = CPresentation || function(){}; var oPr = new AscFormat.CCopyObjectProperties(); oPr.idMap = oIdMap; oPr.bSaveSourceFormatting = bSourceFormatting; - for (var i = 0; i < aSpTree.length; ++i) { + for (let i = 0; i < aSpTree.length; ++i) { oSp = aSpTree[i]; // if(oSp.isEmptyPlaceholder()) // { @@ -1243,7 +1433,7 @@ var CPresentation = CPresentation || function(){}; oSelectedContent = oDocContent.GetSelectedContent(); oEndFormattingContent.DocContent = oSelectedContent; - for (i = 0; i < oSelectedContent.Elements.length; ++i) { + for (let i = 0; i < oSelectedContent.Elements.length; ++i) { var oElem = oSelectedContent.Elements[i].Element; if (oElem.GetType() === AscCommonWord.type_Paragraph) { if (oElem.Pr && oElem.Pr.DefaultRunPr && AscFormat.isRealNumber(oElem.Pr.DefaultRunPr.FontSize)) { @@ -1257,7 +1447,7 @@ var CPresentation = CPresentation || function(){}; oSelectedContent = oDocContent.GetSelectedContent(); var aContent = []; - for (i = 0; i < oSelectedContent.Elements.length; ++i) { + for (let i = 0; i < oSelectedContent.Elements.length; ++i) { oParagraph = oSelectedContent.Elements[i].Element; oParagraph.Parent = oDocContent; oParagraph.private_CompileParaPr(); @@ -1269,7 +1459,7 @@ var CPresentation = CPresentation || function(){}; var oSelectedContent2 = oDocContent.GetSelectedContent(); aContent = []; - for (i = 0; i < oSelectedContent2.Elements.length; ++i) { + for (let i = 0; i < oSelectedContent2.Elements.length; ++i) { oParagraph = oSelectedContent2.Elements[i].Element; oParagraph.Parent = oDocContent; oParagraph.private_CompileParaPr(); @@ -1318,7 +1508,7 @@ var CPresentation = CPresentation || function(){}; break; } } - for (i = 0; i < oDocContentForDraw.Content.length; ++i) { + for (let i = 0; i < oDocContentForDraw.Content.length; ++i) { oCheckParagraph = oDocContentForDraw.Content[i]; if (!oCheckParagraph.IsEmpty()) { aRuns = oCheckParagraph.Content; @@ -1358,7 +1548,7 @@ var CPresentation = CPresentation || function(){}; oDocContentForDraw.Recalculate_Page(0, true); aParagraphs = oDocContentForDraw.Content; dMaxWidth = 0; - for (i = 0; i < aParagraphs.length; ++i) { + for (let i = 0; i < aParagraphs.length; ++i) { oParagraph = aParagraphs[i]; for (j = 0; j < oParagraph.Lines.length; ++j) { if (oParagraph.Lines[j].Ranges[0].W > dMaxWidth) { @@ -1447,9 +1637,9 @@ var CPresentation = CPresentation || function(){}; }; CPDFDoc.prototype.EraseInk = function(oInk) { - this.CreateNewHistoryPoint(); - this.RemoveAnnot(oInk.GetId()); - this.TurnOffHistory(); + this.DoAction(function() { + this.RemoveAnnot(oInk.GetId()); + }, AscDFH.historydescription_Pdf_EraseInk, this); }; CPDFDoc.prototype.OnMouseMove = function(x, y, e) { @@ -1466,7 +1656,7 @@ var CPresentation = CPresentation || function(){}; let IsOnDrawer = this.Api.isDrawInkMode(); let IsOnEraser = this.Api.isEraseInkMode(); let IsOnAddAddShape = this.Api.isStartAddShape; - let IsPageHighlight = this.Api.curMarkerType != undefined; + let IsPageHighlight = this.Api.IsCommentMarker(); let oMouseMoveLink = oViewer.getPageLinkByMouse(); let oMouseMoveField = oViewer.getPageFieldByMouse(); @@ -1474,13 +1664,19 @@ var CPresentation = CPresentation || function(){}; let oMouseMoveDrawing = oViewer.getPageDrawingByMouse(); // координаты клика на странице в MM - var pageObject = oViewer.getPageByCoords2(x, y); + let pageObject = oViewer.getPageByCoords2(x, y); if (!pageObject) return false; + let pageObjectOrig = oViewer.getPageByCoords(x, y); + if (!pageObjectOrig) + return false; let X = pageObject.x; let Y = pageObject.y; + this.CollaborativeEditing.Check_ForeignCursorsLabels(X, Y, pageObject.index); + this.CollaborativeEditing.Check_ForeignSelectedObjectsLabels(pageObjectOrig.x, pageObjectOrig.y, pageObject.index); + // при зажатой мышке if (oViewer.isMouseDown) { @@ -1703,7 +1899,6 @@ var CPresentation = CPresentation || function(){}; // если рисование или добавление шейпа то просто заканчиваем его else if (IsOnDrawer || IsOnAddAddShape) { oController.OnMouseUp(e, X, Y, pageObject.index); - e.IsLocked = false; return; } @@ -1716,27 +1911,18 @@ var CPresentation = CPresentation || function(){}; oMouseUpAnnot.onMouseUp(x, y, e); } else if (this.activeDrawing) { - // передвинули бордер - if (this.activeDrawing.IsGraphicFrame() && this.activeDrawing.graphicObject.Selection.Type2 === table_Selection_Border) { - this.CreateNewHistoryPoint({objects: [this.activeDrawing]}); - this.activeDrawing.SetNeedRecalc(true); - } - oController.OnMouseUp(e, X, Y, pageObject.index); - if (this.Api.isMarkerFormat && this.HighlightColor && this.activeDrawing.IsInTextBox()) { + if (this.Api.isMarkerFormat && !this.Api.IsCommentMarker() && this.HighlightColor && this.activeDrawing.IsInTextBox()) { this.SetHighlight(this.HighlightColor.r, this.HighlightColor.g, this.HighlightColor.b); } oController.updateCursorType(pageObject.index, X, Y, e, false); oDrDoc.UnlockCursorType(); - this.TurnOffHistory(); } else if (this.mouseDownLinkObject && this.mouseDownLinkObject == oMouseUpLink) { oViewer.navigateToLink(oMouseUpLink); } - e.IsLocked = false; - this.UpdateInterface(); oViewer.onUpdateOverlay(); oViewer.file.onUpdateSelection(); @@ -1770,32 +1956,17 @@ var CPresentation = CPresentation || function(){}; } this.ClearSearch(); - this.TurnOffHistory(); - this.isUndoRedoInProgress = true; this.currInkInDrawingProcess = null; let nCurPoindIdx = AscCommon.History.Index; let oCurPoint = AscCommon.History.Points[nCurPoindIdx]; - AscCommon.History.Undo(); + let arrChanges = AscCommon.History.Undo(); + let recalcData = AscCommon.History.Get_RecalcData(null, arrChanges); - let aSourceObjects = oCurPoint.Additional.Pdf; - let oTextConvert = oCurPoint.Additional.PdfConvertText; - - if (oTextConvert) { - let oThis = this; - this.Viewer.paint(function() { - oThis.Viewer.thumbnails._repaintPage(oTextConvert.page); - }); - this.isUndoRedoInProgress = false; - return; - } + AscCommon.History.UndoRedoInProgress = true; - if (!aSourceObjects) { - this.isUndoRedoInProgress = false; - this.UpdateInterface(); - return; - } + let aSourceObjects = oCurPoint.Additional.Pdf || []; for (let i = 0; i < aSourceObjects.length; i++) { let oSourceObj = aSourceObjects[i]; @@ -1804,13 +1975,8 @@ var CPresentation = CPresentation || function(){}; // в глобальной истории должен срабатывать commit if (AscCommon.History == this.History) { oDrDoc.TargetEnd(); // убираем курсор - - // изменение кнопки не вызывает commit со всеми вытекающими (calculation) - if (oSourceObj.GetType() != AscPDF.FIELD_TYPES.button) - this.CommitField(oSourceObj); - if (this.activeForm) - { + if (this.activeForm) { this.activeForm.UpdateScroll && this.activeForm.UpdateScroll(false); this.activeForm.SetDrawHighlight(true); this.activeForm = null; @@ -1819,12 +1985,9 @@ var CPresentation = CPresentation || function(){}; oSourceObj.SetNeedRecalc(true); } - else if (oSourceObj.IsAnnot() || oSourceObj.IsDrawing()) { - oSourceObj.SetNeedRecalc(true); - } } - this.isUndoRedoInProgress = false; + AscCommon.History.UndoRedoInProgress = false; this.UpdateInterface(); } }; @@ -1846,32 +2009,17 @@ var CPresentation = CPresentation || function(){}; } this.ClearSearch(); - this.TurnOffHistory(); - this.isUndoRedoInProgress = true; this.currInkInDrawingProcess = null; - AscCommon.History.Redo(); - let nCurPoindIdx = AscCommon.History.Index; - let oCurPoint = AscCommon.History.Points[nCurPoindIdx]; + let arrChanges = AscCommon.History.Redo(); + let recalcData = AscCommon.History.Get_RecalcData(null, arrChanges); - let aSourceObjects = oCurPoint.Additional.Pdf; - let oTextConvert = oCurPoint.Additional.PdfConvertText; - - if (oTextConvert) { - let oThis = this; - this.Viewer.paint(function() { - oThis.Viewer.thumbnails._repaintPage(oTextConvert.page); - }); + AscCommon.History.UndoRedoInProgress = true; - this.isUndoRedoInProgress = false; - return; - } + let nCurPoindIdx = AscCommon.History.Index; + let oCurPoint = AscCommon.History.Points[nCurPoindIdx]; - if (!aSourceObjects) { - this.isUndoRedoInProgress = false; - this.UpdateInterface(); - return; - } + let aSourceObjects = oCurPoint.Additional.Pdf || []; for (let i = 0; i < aSourceObjects.length; i++) { let oSourceObj = aSourceObjects[i]; @@ -1880,12 +2028,7 @@ var CPresentation = CPresentation || function(){}; if (AscCommon.History == this.History) { oDrDoc.TargetEnd(); // убираем курсор - // изменение кнопки не вызывает commit со всеми вытекающими (calculation) - if (oSourceObj.GetType() != AscPDF.FIELD_TYPES.button) - this.CommitField(oSourceObj); - - if (this.activeForm) - { + if (this.activeForm) { this.activeForm.UpdateScroll && this.activeForm.UpdateScroll(false); this.activeForm.SetDrawHighlight(true); this.activeForm = null; @@ -1899,7 +2042,7 @@ var CPresentation = CPresentation || function(){}; } } - this.isUndoRedoInProgress = false; + AscCommon.History.UndoRedoInProgress = false; this.UpdateInterface(); } }; @@ -1956,8 +2099,6 @@ var CPresentation = CPresentation || function(){}; }; CPDFDoc.prototype.DoCalculateFields = function(oSourceField) { - this.TurnOffHistory(); - // при изменении любого поля (с коммитом) вызывается calculate у всех let oThis = this; this.calculateInfo.SetIsInProgress(true); @@ -1977,7 +2118,9 @@ var CPresentation = CPresentation || function(){}; let oActionRunScript = oCalcTrigget ? oCalcTrigget.GetActions()[0] : null; if (oActionRunScript) { + oThis.StartNoHistoryMode(); oActionRunScript.RunScript(); + oThis.EndNoHistoryMode(); if (oField.IsNeedCommit()) { oField.SetNeedRecalc(true); oThis.fieldsToCommit.push(oField); @@ -1988,7 +2131,7 @@ var CPresentation = CPresentation || function(){}; this.calculateInfo.SetSourceField(null); }; CPDFDoc.prototype.IsNeedDoCalculate = function() { - if (this.calculateInfo.ids.length > 0) + if (this.calculateInfo.ids.length > 0 && false == AscCommon.History.UndoRedoInProgress) return true; return false; @@ -2043,7 +2186,7 @@ var CPresentation = CPresentation || function(){}; if (oPage.H === undefined) oPage.H = oFile.pages[Math.max(nPos - 1, 0)].H; - oFile.pages.splice(nPos, 0, oPage); + oFile.addPage(nPos, oPage); oViewer.drawingPages.splice(nPos, 0, { X : 0, @@ -2053,11 +2196,39 @@ var CPresentation = CPresentation || function(){}; Image : undefined }); + let oPageInfo; + // from history + if (oPage.Id) { + oPageInfo = AscCommon.g_oTableId.GetById(oPage.Id); + } + // to history + else { + oPageInfo = new AscPDF.CPageInfo(); + oPage.Id = oPageInfo.Id; + } + if (oViewer.pagesInfo.pages.length == 0) oViewer.pagesInfo.setCount(1); else - oViewer.pagesInfo.pages.splice(nPos, 0, new AscPDF.CPageInfo()); + oViewer.pagesInfo.pages.splice(nPos, 0, oPageInfo); + + // can be uninitialized on Apply_Changes + if (oViewer.thumbnails) { + oViewer.thumbnails._addPage(nPos); + } + + oViewer.resize(true); + + for (let i = 0; i < oViewer.file.pages.length; i++) { + oController.mergeDrawings(i); + } + this.GetDrawingDocument().m_lPagesCount = oViewer.file.pages.length; + + oViewer.sendEvent("onPagesCount", oFile.pages.length); + this.History.Add(new CChangesPDFDocumentAddPage(this, nPos, [oPage])); + + this.History.StartNoHistoryMode(); for (let nPage = nPos + 1; nPage < oViewer.pagesInfo.pages.length; nPage++) { if (oViewer.pagesInfo.pages[nPage].fields) { oViewer.pagesInfo.pages[nPage].fields.forEach(function(field) { @@ -2075,18 +2246,7 @@ var CPresentation = CPresentation || function(){}; }); } } - - oViewer.thumbnails._addPage(nPos); - oViewer.resize(true); - - for (let i = 0; i < oViewer.file.pages.length; i++) { - oController.mergeDrawings(i); - } - this.GetDrawingDocument().m_lPagesCount = oViewer.file.pages.length; - - oViewer.sendEvent("onPagesCount", oFile.pages.length); - - this.History.Add(new CChangesPDFDocumentAddPage(this, nPos, [oPage])); + this.History.EndNoHistoryMode(); oViewer.paint(); }; @@ -2129,10 +2289,29 @@ var CPresentation = CPresentation || function(){}; } // убираем информацию о странице - let aPages = oFile.pages.splice(nPos, 1); + let aPages = oFile.removePage(nPos); oViewer.drawingPages.splice(nPos, 1); - oViewer.pagesInfo.pages.splice(nPos, 1); + let aPagesInfo = oViewer.pagesInfo.pages.splice(nPos, 1); + // to history + aPages[0].Id = aPagesInfo[0].Id; + + // can be uninitialized on Apply_Changes + if (oViewer.thumbnails) { + oViewer.thumbnails._deletePage(nPos); + } + + oViewer.checkVisiblePages(); + oViewer.resize(true); + for (let i = 0; i < oViewer.file.pages.length; i++) { + oController.mergeDrawings(i); + } + this.GetDrawingDocument().m_lPagesCount = oViewer.file.pages.length; + oViewer.sendEvent("onPagesCount", oFile.pages.length); + + this.History.Add(new CChangesPDFDocumentRemovePage(this, nPos, aPages)); + + this.History.StartNoHistoryMode(); // проставляем новые номера страниц объектам на остальных страницах for (let nPage = nPos; nPage < oViewer.pagesInfo.pages.length; nPage++) { if (oViewer.pagesInfo.pages[nPage].fields) { @@ -2151,26 +2330,16 @@ var CPresentation = CPresentation || function(){}; }); } } - - oViewer.thumbnails._deletePage(nPos); - - oViewer.checkVisiblePages(); - oViewer.resize(true); - for (let i = 0; i < oViewer.file.pages.length; i++) { - oController.mergeDrawings(i); - } - this.GetDrawingDocument().m_lPagesCount = oViewer.file.pages.length; - oViewer.sendEvent("onPagesCount", oFile.pages.length); - - this.History.Add(new CChangesPDFDocumentRemovePage(this, nPos, aPages)); + this.History.EndNoHistoryMode(); oViewer.paint(); }; CPDFDoc.prototype.SetPageRotate = function(nPage, nAngle) { let oViewer = this.Viewer; let oFile = oViewer.file; + let oPageInfo = oViewer.pagesInfo.pages[nPage] - this.History.Add(new CChangesPDFDocumentRotatePage(this, [nPage, oFile.pages[nPage].Rotate], [nPage, nAngle])); + this.History.Add(new CChangesPDFDocumentRotatePage(this, oPageInfo.Id, oFile.pages[nPage].Rotate, nAngle)); oFile.pages[nPage].Rotate = nAngle; // sticky note всегда неповернуты @@ -2180,7 +2349,8 @@ var CPresentation = CPresentation || function(){}; } }); - oViewer.resize(); + oViewer.resize(true); + oViewer.paint(); }; /** * Adds an interactive field to document. @@ -2219,16 +2389,12 @@ var CPresentation = CPresentation || function(){}; return null; let oViewer = editor.getDocumentRenderer(); - let nScaleY = oViewer.drawingPages[nPageNum].H / oViewer.file.pages[nPageNum].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPageNum].W / oViewer.file.pages[nPageNum].W / oViewer.zoom; - - let aScaledCoords = [aCoords[0] * nScaleX, aCoords[1] * nScaleY, aCoords[2] * nScaleX, aCoords[3] * nScaleY]; let oPagesInfo = oViewer.pagesInfo; if (!oPagesInfo.pages[nPageNum]) return null; - let oField = private_createField(cName, cFieldType, nPageNum, aScaledCoords, this); + let oField = private_createField(cName, cFieldType, nPageNum, aCoords, this); if (!oField) return null; @@ -2268,94 +2434,94 @@ var CPresentation = CPresentation || function(){}; if (!oPagesInfo.pages[nPageNum]) return null; - let oAnnot; - AscFormat.ExecuteNoHistory(function () { - AscCommon.g_oTableId.TurnOn(); - oAnnot = AscPDF.CreateAnnotByProps(oProps, this); - }, this); - - this.annots.push(oAnnot); - oAnnot.SetNeedRecalc && oAnnot.SetNeedRecalc(true); - + AscCommon.g_oTableId.TurnOn(); + let oAnnot = AscPDF.CreateAnnotByProps(oProps, this); + + oAnnot.SetNeedRecalc(true); oAnnot.SetDisplay(this.IsAnnotsHidden() ? window["AscPDF"].Api.Objects.display["hidden"] : window["AscPDF"].Api.Objects.display["visible"]); - if (oPagesInfo.pages[nPageNum].annots == null) { - oPagesInfo.pages[nPageNum].annots = []; - } + this.annots.push(oAnnot); oPagesInfo.pages[nPageNum].annots.push(oAnnot); - this.History.Add(new CChangesPDFDocumentAddItem(this, this.annots.length - 1, [oAnnot])); - - if (oProps.apIdx == null) - oAnnot.SetApIdx(this.GetMaxApIdx() + 2); - else + if (oProps.apIdx != undefined) { oAnnot.SetApIdx(oProps.apIdx); + } + this.History.Add(new CChangesPDFDocumentAnnotsContent(this, oPagesInfo.pages[nPageNum].annots.length - 1, [oAnnot], true)); + oAnnot.AddToRedraw(); - return oAnnot; }; CPDFDoc.prototype.AddComment = function(AscCommentData) { - let oViewer = editor.getDocumentRenderer(); - let pageObject = oViewer.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); - let nPage = pageObject ? pageObject.index : this.GetCurPage(); - let nGrScale = 1.25 * (96 / oViewer.file.pages[nPage].Dpi); - let posToAdd = this.anchorPositionToAdd ? this.anchorPositionToAdd : {x: 10, y: 10}; - - let X2 = posToAdd.x + 40 / nGrScale; - let Y2 = posToAdd.y + 40 / nGrScale; + let oCurHistory = AscCommon.History; + AscCommon.History = this.History; - let oProps = { - rect: [posToAdd.x, posToAdd.y, X2, Y2], - page: nPage, - name: AscCommon.CreateGUID(), - type: AscPDF.ANNOTATIONS_TYPES.Text, - author: AscCommentData.m_sUserName, - modDate: AscCommentData.m_sOOTime, - creationDate: AscCommentData.m_sOOTime, - contents: AscCommentData.m_sText, - hidden: false - } + let res = this.DoAction(function() { + let oViewer = editor.getDocumentRenderer(); + let pageObject = oViewer.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); + let nPage = pageObject ? pageObject.index : this.GetCurPage(); + let nGrScale = 1.25 * (96 / oViewer.file.pages[nPage].Dpi); + let posToAdd = this.anchorPositionToAdd ? this.anchorPositionToAdd : {x: 10, y: 10}; + + let X2 = posToAdd.x + 40 / nGrScale; + let Y2 = posToAdd.y + 40 / nGrScale; - this.anchorPositionToAdd = null; + let oProps = { + rect: [posToAdd.x, posToAdd.y, X2, Y2], + page: nPage, + name: AscCommon.CreateGUID(), + type: AscPDF.ANNOTATIONS_TYPES.Text, + author: AscCommentData.m_sUserName, + modDate: AscCommentData.m_sOOTime, + creationDate: AscCommentData.m_sOOTime, + contents: AscCommentData.m_sText, + hidden: false + } - let oStickyComm; - if (this.mouseDownAnnot) { - // если есть ответ, или это аннотация, где контент идёт как текста коммента то редактируем коммент - if ((this.mouseDownAnnot.GetContents() && this.mouseDownAnnot.IsUseContentAsComment()) || this.mouseDownAnnot.GetReply(0) != null) { - let newCommentData = new AscCommon.CCommentData(); - newCommentData.Read_FromAscCommentData(AscCommentData); + this.anchorPositionToAdd = null; - let curCommentData = new AscCommon.CCommentData(); - curCommentData.Read_FromAscCommentData(this.mouseDownAnnot.GetAscCommentData()); - curCommentData.Add_Reply(newCommentData); + let oStickyComm; + if (this.mouseDownAnnot) { + if (this.mouseDownAnnot.IsUseContentAsComment() && !this.mouseDownAnnot.GetContents()) { + // If the annotation uses content as comment and there's no content, set the content + this.mouseDownAnnot.SetContents(AscCommentData.m_sText); + } + else { + let oDataForEdit; - this.EditComment(this.mouseDownAnnot.GetId(), curCommentData); - } - // если аннотация где контент идет как текст коммента и контента нет, то выставляем контент - else if (this.mouseDownAnnot.GetContents() == null && this.mouseDownAnnot.IsUseContentAsComment()) { - this.mouseDownAnnot.SetContents(AscCommentData.m_sText); + // For all other cases, add a reply to the comment + let newCommentData = new AscCommon.CCommentData(); + newCommentData.Read_FromAscCommentData(AscCommentData); + + // if freetext or line with cap + if (!this.mouseDownAnnot.IsUseContentAsComment() && this.mouseDownAnnot.GetReply(0) == null) { + oDataForEdit = newCommentData; + } + else { + let curCommentData = new AscCommon.CCommentData(); + curCommentData.Read_FromAscCommentData(this.mouseDownAnnot.GetAscCommentData()); + curCommentData.Add_Reply(newCommentData); + oDataForEdit = curCommentData; + } + + this.EditComment(this.mouseDownAnnot.GetId(), oDataForEdit); + } } - // остался вариант FreeText или line с выставленным cap (контекст идёт как текст внутри стрелки) - // такому случаю выставляем ответ else { - let oReply = CreateAnnotByProps(oProps, this); - oReply.SetApIdx(this.GetMaxApIdx() + 2); - - this.mouseDownAnnot.SetReplies([oReply]); + oStickyComm = this.AddAnnot(oProps); + AscCommentData.m_sUserData = oStickyComm.GetId(); + AscCommentData.m_sQuoteText = ""; + this.CheckComment(oStickyComm); } - } - else { - oStickyComm = this.AddAnnot(oProps); - AscCommentData.m_sUserData = oStickyComm.GetApIdx(); - AscCommentData.m_sQuoteText = ""; - this.CheckComment(oStickyComm); - } - - if (!oStickyComm) - this.UpdateUndoRedo(); - - return oStickyComm; + + if (!oStickyComm) + this.UpdateUndoRedo(); + + return oStickyComm; + }, AscDFH.historydescription_Pdf_AddComment, this); + + AscCommon.History = oCurHistory; + return res; }; CPDFDoc.prototype.convertPixToMM = function(pix) { return this.GetDrawingDocument().GetMMPerDot(pix); @@ -2423,31 +2589,15 @@ var CPresentation = CPresentation || function(){}; }; CPDFDoc.prototype.ConvertMathView = function (isToLinear, isAll) { let oController = this.GetController(); - let oShape = AscFormat.getTargetTextObject(oController); - - if (!oShape) - return; - - oShape.SetNeedRecalc(true); - this.CreateNewHistoryPoint({objects: [oShape]}); oController.convertMathView(isToLinear, isAll); - this.TurnOffHistory(); }; CPDFDoc.prototype.Set_MathProps = function (oMathProps) { let oController = this.GetController(); - let oShape = AscFormat.getTargetTextObject(oController); - - if (!oShape) - return; - - oShape.SetNeedRecalc(true); - this.CreateNewHistoryPoint({objects: [oShape]}); oController.setMathProps(oMathProps); - this.TurnOffHistory(); }; CPDFDoc.prototype.CreateNewHistoryPoint = function(oAdditional) { - if (this.IsNeedSkipHistory() || this.Viewer.IsOpenFormsInProgress || this.Viewer.IsOpenAnnotsInProgress || this.isUndoRedoInProgress) + if (this.IsNeedSkipHistory() || this.Viewer.IsOpenFormsInProgress || this.Viewer.IsOpenAnnotsInProgress || AscCommon.History.UndoRedoInProgress) return; if (!AscCommon.History.IsOn()) { @@ -2460,47 +2610,118 @@ var CPresentation = CPresentation || function(){}; AscCommon.History.Create_NewPoint(oAdditional ? oAdditional.description : undefined); if (oAdditional) { - if (oAdditional.textConvert) { - AscCommon.History.SetPdfConvertTextPoint(oAdditional.textConvert); - } - else if (oAdditional.objects) { + if (oAdditional.objects) { AscCommon.History.SetSourceObjectsToPointPdf(oAdditional.objects); } } }; - CPDFDoc.prototype.EditComment = function(Id, CommentData) { - let oAnnotToEdit = this.annots.find(function(annot) { - return annot.GetId() === Id; - }); - let oCurData = oAnnotToEdit.GetAscCommentData(); - - this.History.Add(new CChangesPDFCommentData(oAnnotToEdit, oCurData, CommentData)); + /** + * Начинаем новое действие, связанное с изменением документа + * @param {number} nDescription - тип изменения, ex.: AscDFH.historydescription_Pdf_FieldCommit + * @param {object} [oSelectionState=null] - начальное состояние селекта, до начала действия + */ + CPDFDoc.prototype.StartAction = function(nDescription, oSelectionState) { + if (this.IsNeedSkipHistory() || this.Viewer.IsOpenFormsInProgress || this.Viewer.IsOpenAnnotsInProgress || AscCommon.History.UndoRedoInProgress) + return; - oAnnotToEdit.EditCommentData(CommentData); - editor.sync_ChangeCommentData(Id, CommentData); - }; - CPDFDoc.prototype.CheckComment = function(oAnnot) { + let oAdditional = {}; + + switch (nDescription) { + case AscDFH.historydescription_Pdf_FieldCommit: + case AscDFH.historydescription_Pdf_UpdateAnnotRC: + this.SetGlobalHistory(); + break; + } + + if (AscCommon.History.Is_LastPointEmpty()) { + AscCommon.History.Remove_LastPoint(); + } + + var isNewPoint = AscCommon.History.Create_NewPoint(nDescription, oSelectionState); + + if (oAdditional.objects) { + AscCommon.History.SetSourceObjectsToPointPdf(oAdditional.objects); + } + + if (true === this.Action.Start) { + this.Action.Depth++; + + if (isNewPoint) { + this.Action.PointsCount++; + } + } + else { + this.Action.Start = true; + this.Action.Depth = 0; + this.Action.PointsCount = isNewPoint ? 1 : 0; + this.Action.Recalculate = false; + this.Action.Description = nDescription; + this.Action.UpdateSelection = false; + this.Action.UpdateInterface = false; + this.Action.UpdateRulers = false; + this.Action.UpdateUndoRedo = false; + this.Action.UpdateTracks = false; + // this.Action.Redraw.Start = undefined; + // this.Action.Redraw.End = undefined; + this.Action.Additional = {}; + } + }; + + CPDFDoc.prototype.FinalizeAction = function(checkEmptyAction) { + + if (checkEmptyAction && AscCommon.History.Is_LastPointEmpty()) { + AscCommon.History.Remove_LastPoint(); + this.UpdateInterface(); + return; + } + + AscCommon.History.Get_RecalcData(); + AscCommon.History.Reset_RecalcIndex(); + Asc.editor.checkLastWork(); + + if (false /* тут проверяем локи */) { + AscCommon.History.Undo(); + AscCommon.History.Clear_Redo(); + } + + this.UpdateInterface(); + }; + + CPDFDoc.prototype.Refresh_RecalcData = function(){}; + + CPDFDoc.prototype.EditComment = function(Id, CommentData) { + let oAnnotToEdit = this.annots.find(function(annot) { + return annot.GetId() === Id; + }); + + oAnnotToEdit.EditCommentData(CommentData); + editor.sync_ChangeCommentData(Id, CommentData); + }; + CPDFDoc.prototype.CheckComment = function(oAnnot) { let bUseContentsAsComment = oAnnot.IsUseContentAsComment(); if (oAnnot.IsUseInDocument()) { - if ((bUseContentsAsComment && oAnnot.GetContents() != null) || (bUseContentsAsComment == false && oAnnot.GetReply(0) instanceof AscPDF.CAnnotationText)) { + if ((bUseContentsAsComment && oAnnot.GetContents()) || (bUseContentsAsComment == false && oAnnot.GetReply(0) instanceof AscPDF.CAnnotationText)) { editor.sendEvent("asc_onAddComment", oAnnot.GetId(), oAnnot.GetAscCommentData()); } } }; CPDFDoc.prototype.TurnOffHistory = function() { - if (AscCommon.History.Is_LastPointEmpty()) { - AscCommon.History.Remove_LastPoint(); - } - if (AscCommon.History.IsOn() == true) AscCommon.History.TurnOff(); - } + }; CPDFDoc.prototype.TurnOnHistory = function() { if (AscCommon.History.IsOn() == false) AscCommon.History.TurnOn(); - } + }; + CPDFDoc.prototype.StartNoHistoryMode = function() { + this.TurnOffHistory(); + }; + CPDFDoc.prototype.EndNoHistoryMode = function() { + this.TurnOnHistory(); + }; + CPDFDoc.prototype.ShowComment = function(arrId) { let oAnnot; for (let nIndex = 0, nCount = arrId.length; nIndex < nCount; ++nIndex) { @@ -2557,8 +2778,6 @@ var CPresentation = CPresentation || function(){}; }; CPDFDoc.prototype.Remove = function(nDirection, isCtrlKey) { - this.CreateNewHistoryPoint(); - let oDrDoc = this.GetDrawingDocument(); oDrDoc.UpdateTargetFromPaint = true; @@ -2581,7 +2800,7 @@ var CPresentation = CPresentation || function(){}; this.RemoveAnnot(oFreeText.GetId()); } } - else if (oDrawing) { + else if (oDrawing && !Asc.editor.isRestrictionView()) { if (oDrawing.IsInTextBox()) { oDrawing.Remove(nDirection, isCtrlKey); oContent = oDrawing.GetDocContent(); @@ -2600,14 +2819,11 @@ var CPresentation = CPresentation || function(){}; } if (oContent) { - oDrDoc.TargetStart(); - oDrDoc.showTarget(true); + oDrDoc.TargetStart(true); } else { oDrDoc.TargetEnd(); } - - this.TurnOffHistory(); }; CPDFDoc.prototype.EnterDown = function(isShiftKey) { let oDrDoc = this.GetDrawingDocument(); @@ -2619,7 +2835,7 @@ var CPresentation = CPresentation || function(){}; let oContent; if (oForm) { if (oForm.GetType() == AscPDF.FIELD_TYPES.text && oForm.IsCanEditText() && oForm.IsMultiline()) { - oForm.EnterText([13]); + Asc.editor.asc_enterText([13]); oContent = oForm.GetDocContent(); } else { @@ -2636,8 +2852,7 @@ var CPresentation = CPresentation || function(){}; } if (oContent) { - oDrDoc.showTarget(true); - oDrDoc.TargetStart(); + oDrDoc.TargetStart(true); } }; @@ -2649,16 +2864,15 @@ var CPresentation = CPresentation || function(){}; if (!oAnnot) return; - this.CreateNewHistoryPoint(); - editor.sync_HideComment(); - if (oAnnot.IsComment()) { - this.RemoveAnnot(oAnnot.GetId()); - } - else { - oAnnot.RemoveComment(); - } - - this.TurnOffHistory(); + this.DoAction(function() { + Asc.editor.sync_HideComment(); + if (oAnnot.IsComment()) { + this.RemoveAnnot(oAnnot.GetId()); + } + else { + oAnnot.RemoveComment(); + } + }, AscDFH.historydescription_Pdf_RemoveComment, this); }; CPDFDoc.prototype.RemoveAnnot = function(Id) { let oViewer = editor.getDocumentRenderer(); @@ -2683,20 +2897,21 @@ var CPresentation = CPresentation || function(){}; if (this.mouseDownAnnot == oAnnot) this.mouseDownAnnot = null; - this.History.Add(new CChangesPDFDocumentRemoveItem(this, [nPos, nPosInPage], [oAnnot])); + this.History.Add(new CChangesPDFDocumentAnnotsContent(this, nPosInPage, [oAnnot], false)); editor.sync_HideComment(); editor.sync_RemoveComment(Id); oController.resetSelection(); oController.resetTrackState(); + this.private_UpdateTargetForCollaboration(true); }; CPDFDoc.prototype.RemoveDrawing = function(Id) { let oViewer = editor.getDocumentRenderer(); let oController = this.GetController(); - let oDrawing = this.drawings.find(function(annot) { - return annot.GetId() === Id; + let oDrawing = this.drawings.find(function(drawing) { + return drawing.GetId() === Id; }); if (!oDrawing) @@ -2711,12 +2926,9 @@ var CPresentation = CPresentation || function(){}; this.drawings.splice(nPos, 1); oViewer.pagesInfo.pages[nPage].drawings.splice(nPosInPage, 1); - if (this.mouseDownAnnot == oDrawing) - this.mouseDownAnnot = null; - - this.History.Add(new CChangesPDFDocumentRemoveItem(this, [nPos, nPosInPage], [oDrawing])); + this.History.Add(new CChangesPDFDocumentDrawingsContent(this, nPosInPage, [oDrawing], false)); - oController.resetSelection(); + oController.resetSelection(true); oController.resetTrackState(); if (this.activeDrawing == oDrawing) { @@ -2724,6 +2936,7 @@ var CPresentation = CPresentation || function(){}; } this.ClearSearch(); + this.private_UpdateTargetForCollaboration(true); }; CPDFDoc.prototype.RemoveForm = function(oForm) { @@ -2746,7 +2959,7 @@ var CPresentation = CPresentation || function(){}; this.widgets.splice(nPos, 1); oViewer.pagesInfo.pages[nPage].fields.splice(nPosInPage, 1); - this.History.Add(new CChangesPDFDocumentRemoveItem(this, [nPos, nPosInPage], [oForm])); + this.History.Add(new CChangesPDFDocumentFieldsContent(this, nPosInPage, [oForm], false)); // удаляем из родителя let oParent = oForm.GetParent(); @@ -2761,6 +2974,14 @@ var CPresentation = CPresentation || function(){}; this.ClearSearch(); }; + CPDFDoc.prototype.DoAction = function(fAction, nDescription, oThis) { + if (true /* тут проверяем локи */) { + this.StartAction(nDescription); + let result = fAction.call(oThis); + this.FinalizeAction(true); + return result; + } + }; /** * Checks the parent form and deletes if necessary * @memberof CPDFDoc @@ -2776,7 +2997,7 @@ var CPresentation = CPresentation || function(){}; let nIdx = this.widgetsParents.indexOf(oForm); if (nIdx != -1) { this.widgetsParents.splice(nIdx, oForm); - this.History.Add(new CChangesPDFDocumentRemoveItem(this, [nIdx, -1], [oForm])) + this.History.Add(new CChangesPDFDocumentFieldsContent(this, -1, [oForm], false)) } // проверяем родителя этого родителя @@ -2850,7 +3071,7 @@ var CPresentation = CPresentation || function(){}; if (yOffset != undefined && xOffset != undefined || this.Viewer.currentPage != nPage) { this.Viewer.disabledPaintOnScroll = true; // вырубаем отрисовку на скроле - this.Viewer.navigateToPage(nPage, this.Viewer.scrollY + oPos.y, this.Viewer.scrollX + oPos.x); + this.Viewer.scrollToXY(this.Viewer.scrollY + oPos.y, this.Viewer.scrollX + oPos.x); this.Viewer.disabledPaintOnScroll = false; this.Viewer.paint(); } @@ -2889,7 +3110,7 @@ var CPresentation = CPresentation || function(){}; return isFound; } - if (annot.isGroup()) { + if (annot.IsAnnot() && annot.IsFreeText()) { isFound = annot.spTree.find(findInAnnot) } @@ -3040,7 +3261,7 @@ var CPresentation = CPresentation || function(){}; } /** - * Changes the interactive field name. + * Resets the forms values. * Note: This method used by forms actions. * @memberof CPDFDoc * @param {CBaseField[]} aNames - array with forms names to reset. If param is undefined or array is empty then resets all forms. @@ -3051,34 +3272,51 @@ var CPresentation = CPresentation || function(){}; let oActionsQueue = this.GetActionsQueue(); let oThis = this; + let aReseted = []; + if (aNames.length > 0) { if (bAllExcept) { for (let nField = 0; nField < this.widgets.length; nField++) { let oField = this.widgets[nField]; - if (aNames.includes(oField.GetFullName()) == false) + let sFieldName = oField.GetFullName(); + + if (aNames.includes(sFieldName) == false && false == aReseted.includes(sFieldName)) { oField.Reset(); + aReseted.push(sFieldName); + this.AddFieldToCommit(oField); + } } } else { aNames.forEach(function(name) { - let aFields = oThis.GetAllWidgets(name); - if (aFields.length > 0) - AscCommon.History.Clear() - - aFields.forEach(function(field) { - field.Reset(); - }); + let oField = oThis.GetField(name); + let sFieldName = oField.GetFullName(); + + if (aNames.includes(sFieldName) == true && false == aReseted.includes(sFieldName)) { + oField.Reset(); + aReseted.push(sFieldName); + this.AddFieldToCommit(oField); + } }); } } else { this.widgets.forEach(function(field) { - field.Reset(); + let sFieldName = field.GetFullName(); + + if (false == aReseted.includes(sFieldName)) { + field.Reset(); + aReseted.push(sFieldName); + this.AddFieldToCommit(field); + } }); if (this.widgets.length > 0) AscCommon.History.Clear() } + this.CommitFields(); + this.DoCalculateFields(); + oActionsQueue.Continue(); }; /** @@ -3290,61 +3528,16 @@ var CPresentation = CPresentation || function(){}; // Функции для работы с гиперссылками //----------------------------------------------------------------------------------- CPDFDoc.prototype.AddHyperlink = function (HyperProps) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.hyperlinkAdd, [HyperProps], false, AscDFH.historydescription_Presentation_HyperlinkAdd); - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.ModifyHyperlink = function (HyperProps) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.hyperlinkModify, [HyperProps], false, AscDFH.historydescription_Presentation_HyperlinkModify); - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.RemoveHyperlink = function () { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.hyperlinkRemove, [], false, AscDFH.historydescription_Presentation_HyperlinkRemove); - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.UpdateCanAddHyperlinkState = function() { this.Api.sync_CanAddHyperlinkCallback(this.CanAddHyperlink(false)); @@ -3453,12 +3646,8 @@ var CPresentation = CPresentation || function(){}; } if (oContent) { - oDrDoc.TargetStart(); - // сбрасываем счетчик до появления курсора - if (!isShiftKey) { - oDrDoc.showTarget(true); - } - + oDrDoc.TargetStart(true); + if (oContent.IsSelectionUse() && false == oContent.IsSelectionEmpty()) oDrDoc.TargetEnd(); @@ -3501,11 +3690,7 @@ var CPresentation = CPresentation || function(){}; } if (oContent) { - oDrDoc.TargetStart(); - // сбрасываем счетчик до появления курсора - if (!isShiftKey) { - oDrDoc.showTarget(true); - } + oDrDoc.TargetStart(true); if (oContent.IsSelectionUse() && false == oContent.IsSelectionEmpty()) oDrDoc.TargetEnd(); @@ -3537,11 +3722,7 @@ var CPresentation = CPresentation || function(){}; } if (oContent) { - oDrDoc.TargetStart(); - // сбрасываем счетчик до появления курсора - if (!isShiftKey) { - oDrDoc.showTarget(true); - } + oDrDoc.TargetStart(true); if (oContent.IsSelectionUse() && false == oContent.IsSelectionEmpty()) oDrDoc.TargetEnd(); @@ -3587,11 +3768,7 @@ var CPresentation = CPresentation || function(){}; } if (oContent) { - oDrDoc.TargetStart(); - // сбрасываем счетчик до появления курсора - if (!isShiftKey) { - oDrDoc.showTarget(true); - } + oDrDoc.TargetStart(true); if (oContent.IsSelectionUse() && false == oContent.IsSelectionEmpty()) oDrDoc.TargetEnd(); @@ -3637,16 +3814,14 @@ var CPresentation = CPresentation || function(){}; } else { if (!this.Viewer.isFullTextMessage) { - if (!this.Viewer.isFullText) - { + if (!this.Viewer.isFullText) { this.Viewer.fullTextMessageCallbackArgs = []; this.Viewer.fullTextMessageCallback = function() { this.selectAll(); }; this.Viewer.showTextMessage(); } - else - { + else { this.Viewer.file.selectAll(); } } @@ -3680,8 +3855,7 @@ var CPresentation = CPresentation || function(){}; } oDrDoc.UpdateTargetFromPaint = true; - oDrDoc.TargetStart(); - oDrDoc.showTarget(true); + oDrDoc.TargetStart(true); }; CPDFDoc.prototype.SelectionSetEnd = function(x, y, e) { let oDrDoc = this.GetDrawingDocument(); @@ -3716,8 +3890,7 @@ var CPresentation = CPresentation || function(){}; oDrDoc.TargetEnd(); } else { - oDrDoc.TargetStart(); - oDrDoc.showTarget(true); + oDrDoc.TargetStart(true); } } }; @@ -3757,93 +3930,59 @@ var CPresentation = CPresentation || function(){}; return oController.getParagraphTextPr(); }; CPDFDoc.prototype.AddToParagraph = function(oParaItem) { - this.CreateNewHistoryPoint(); + this.DoAction(function() { + let oController = this.GetController(); + let oMathShape = null; - let oController = this.GetController(); - let oMathShape = null; + let nCurPage = this.Viewer.currentPage; - let nCurPage = this.Viewer.currentPage; + let oActiveObj = this.GetActiveObject(); + if (oParaItem.Type === para_Math) { + if (!oActiveObj || oActiveObj.IsAnnot() || !(oController.selection.textSelection || (oController.selection.groupSelection && oController.selection.groupSelection.selection.textSelection))) { + oController.resetSelection(); + oController.resetTrackState(); - let oActiveObj = this.GetActiveObject(); - if (oParaItem.Type === para_Math) { - if (!oActiveObj || oActiveObj.IsAnnot() || !(oController.selection.textSelection || (oController.selection.groupSelection && oController.selection.groupSelection.selection.textSelection))) { - oController.resetSelection(); - oController.resetTrackState(); - - oMathShape = oController.createTextArt(0, false, null, ""); - oMathShape.SetDocument(this); - oMathShape.SetPage(nCurPage); - oMathShape.Recalculate(); - - let oXfrm = oMathShape.getXfrm(); - let nRotAngle = this.Viewer.getPageRotate(nCurPage); - - let nExtX = oXfrm.extX; - let nExtY = oXfrm.extY; - let oPos = private_computeDrawingAddingPos(nCurPage, nExtX, nExtY); - - if (nRotAngle != 0) { - oXfrm.setRot(-nRotAngle * Math.PI / 180); - } + oMathShape = oController.createTextArt(0, false, null, ""); + oMathShape.SetDocument(this); + oMathShape.SetPage(nCurPage); + oMathShape.Recalculate(); - oXfrm.setOffX(oPos.x); - oXfrm.setOffY(oPos.y); + let oXfrm = oMathShape.getXfrm(); + let nRotAngle = this.Viewer.getPageRotate(nCurPage); - this.AddDrawing(oMathShape, nCurPage); - oMathShape.SetNeedRecalc(true); - oMathShape.select(oController, nCurPage); - this.SetMouseDownObject(oMathShape); - oController.selection.textSelection = oMathShape; - } - } + let nExtX = oXfrm.extX; + let nExtY = oXfrm.extY; + let oPos = private_computeDrawingAddingPos(nCurPage, nExtX, nExtY); + + if (nRotAngle != 0) { + oXfrm.setRot(-nRotAngle * Math.PI / 180); + } - oController.paragraphAdd(oParaItem, false); - let oCurObject = this.GetActiveObject(); - if (!oCurObject) { - this.TurnOffHistory(); - return; - } + oXfrm.setOffX(oPos.x); + oXfrm.setOffY(oPos.y); - oCurObject.SetNeedRecalc(true); - if (oCurObject.IsAnnot() && oCurObject.IsFreeText()) { - oCurObject.SetNeedUpdateRC(true); - } - - AscCommon.History.SetSourceObjectsToPointPdf([oCurObject]); + this.AddDrawing(oMathShape, nCurPage); + oMathShape.SetNeedRecalc(true); + oMathShape.select(oController, nCurPage); + this.SetMouseDownObject(oMathShape); + oController.selection.textSelection = oMathShape; + } + } - this.TurnOffHistory(); + oController.paragraphAdd(oParaItem, false); + }, AscDFH.historydescription_Presentation_ParagraphAdd, this); }; CPDFDoc.prototype.AddNewParagraph = function() { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let oActiveObj = this.GetActiveObject(); - - let aObjects = []; - - if (oActiveObj.IsAnnot() && oActiveObj.IsFreeText()) { - aObjects.push(oActiveObj); - } + let oController = this.GetController(); + let oActiveObj = this.GetActiveObject(); - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); oController.checkSelectedObjectsAndCallback(oController.addNewParagraph, [], false, AscDFH.historydescription_Presentation_AddNewParagraph); - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - if (oActiveObj.IsAnnot() && oActiveObj.IsFreeText()) { - oActiveObj.SetNeedUpdateRC(true); oActiveObj.FitTextBox(); } - this.TurnOffHistory(); + this.FinalizeAction(); }; CPDFDoc.prototype.GetSelectedText = function(bClearText, oPr) { let oForm = this.activeForm; @@ -3883,13 +4022,12 @@ var CPresentation = CPresentation || function(){}; a: opacity }; + let oDrawing = this.activeDrawing; let oViewer = editor.getDocumentRenderer(); let oFile = oViewer.file; - let aSelQuads = oFile.getSelectionQuads(); + let aSelQuads = null == oDrawing ? oFile.getSelectionQuads() : oDrawing.GetSelectionQuads(); - let oDrawing = this.activeDrawing; - - if (oDrawing) { + if (oDrawing && false == this.Api.IsCommentMarker()) { this.SetParagraphHighlight(AscCommon.isNumber(r) && AscCommon.isNumber(g) && AscCommon.isNumber(b), r, g, b); return; } @@ -3959,11 +4097,11 @@ var CPresentation = CPresentation || function(){}; a: opacity }; + let oDrawing = this.activeDrawing; let oViewer = editor.getDocumentRenderer(); let oFile = oViewer.file; - let aSelQuads; - - aSelQuads = oFile.getSelectionQuads(); + let aSelQuads = null == oDrawing ? oFile.getSelectionQuads() : oDrawing.GetSelectionQuads(); + if (aSelQuads.length == 0) return; @@ -4012,11 +4150,11 @@ var CPresentation = CPresentation || function(){}; a: opacity }; + let oDrawing = this.activeDrawing; let oViewer = editor.getDocumentRenderer(); let oFile = oViewer.file; - let aSelQuads; + let aSelQuads = null == oDrawing ? oFile.getSelectionQuads() : oDrawing.GetSelectionQuads(); - aSelQuads = oFile.getSelectionQuads(); if (aSelQuads.length == 0) return; for (let nInfo = 0; nInfo < aSelQuads.length; nInfo++) { @@ -4057,182 +4195,41 @@ var CPresentation = CPresentation || function(){}; } }; CPDFDoc.prototype.SetParagraphSpacing = function(oSpacing) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.setParagraphSpacing, [oSpacing], false, AscDFH.historydescription_Presentation_SetParagraphSpacing); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.SetParagraphNumbering = function(oBullet) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.setParagraphNumbering, [oBullet], false, AscDFH.historydescription_Presentation_SetParagraphNumbering); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.IncreaseDecreaseFontSize = function(bIncrease) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - let oActiveObj = this.GetActiveObject(); - - let aObjects = []; + let oController = this.GetController(); - if (oActiveObj.IsAnnot() && oActiveObj.IsFreeText()) { - oActiveObj.SetNeedUpdateRC(true); - aObjects.push(oActiveObj); - } - - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); - oController.checkSelectedObjectsAndCallback( - function () { - oController.paragraphIncDecFontSize(bIncrease); - } - , [], false, AscDFH.historydescription_Presentation_ParagraphIncDecFontSize); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); + oController.checkSelectedObjectsAndCallback(function () { + oController.paragraphIncDecFontSize(bIncrease); + }, [], false, AscDFH.historydescription_Presentation_ParagraphIncDecFontSize); }; CPDFDoc.prototype.ChangeTextCase = function(nType) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - let oActiveObj = this.GetActiveObject(); - - let aObjects = []; + let oController = this.GetController(); + let oActiveObj = this.GetActiveObject(); - if (oActiveObj.IsAnnot() && oActiveObj.IsFreeText()) { - oActiveObj.SetNeedUpdateRC(true); - aObjects.push(oActiveObj); - } - - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); oController.changeTextCase(nType); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.SetParagraphAlign = function(Align) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.setParagraphAlign, [Align], false, AscDFH.historydescription_Presentation_SetParagraphAlign); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.SetVerticalAlign = function(Align) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.applyDrawingProps, [{verticalTextAlign: Align}], false, AscDFH.historydescription_Presentation_SetVerticalAlign); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.IncreaseDecreaseIndent = function(bIncrease) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.paragraphIncDecIndent, [bIncrease], false, AscDFH.historydescription_Presentation_ParagraphIncDecIndent); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.ClearParagraphFormatting = function(isClearParaPr, isClearTextPr) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - let aObjects = []; - Object.values(oObjectsByType).forEach(function(arr) { - arr.forEach(function(drawing) { - aObjects.push(drawing); - }) - }); - - this.CreateNewHistoryPoint({objects: aObjects}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.paragraphClearFormatting, [isClearParaPr, isClearTextPr], false, AscDFH.historydescription_Presentation_ParagraphClearFormatting); - - aObjects.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -4249,12 +4246,14 @@ var CPresentation = CPresentation || function(){}; return; } - oFile.pages[nPage].isConvertedToShapes = true; + Asc.editor.canSave = false; + this.StartAction(AscDFH.historydescription_Pdf_EditPage); + let oDrDoc = this.GetDrawingDocument(); - this.CreateNewHistoryPoint({textConvert: {page: nPage}}); - this.History.Add(new CChangesPDFDocumentRecognizePage(this, [nPage, false], [nPage, true])); + oFile.pages[nPage].isConvertedToShapes = true; + delete this.Viewer.drawingPages[nPage].Image; - let oDrDoc = this.GetDrawingDocument(); + this.History.Add(new CChangesPDFDocumentRecognizePage(this, this.Viewer.pagesInfo.pages[nPage].Id, false, true)); let aSpsXmls = oFile.nativeFile["scanPage"](nOriginIndex, 1); let oParserContext = new AscCommon.XmlParserContext(); @@ -4267,56 +4266,53 @@ var CPresentation = CPresentation || function(){}; oParserContext.DrawingDocument = oDrDoc; - AscFormat.ExecuteNoHistory(function () { - for (let i = 0; i < aSpsXmls.length; i++) { - oXmlReader = new AscCommon.StaxParser(aSpsXmls[i], undefined, oParserContext); - oXmlReader.parseNode(0); - - let _t = this; - let oDrawing; - oXmlReader.rels = { - getRelationship : function(rId) { - let url = _t.Viewer.file.nativeFile["getImageBase64"](parseInt(rId.substring(3))); - if ("data:" === url.substring(0, 5)) { - return { - targetMode : "InternalBase64", - base64 : url, - drawing: oDrawing - } - } else { - return { - targetMode: "InternalLoaded", - targetFullName: url, - drawing: oDrawing - } + for (let i = 0; i < aSpsXmls.length; i++) { + oXmlReader = new AscCommon.StaxParser(aSpsXmls[i], undefined, oParserContext); + oXmlReader.parseNode(0); + + let _t = this; + let oDrawing; + oXmlReader.rels = { + getRelationship : function(rId) { + let url = _t.Viewer.file.nativeFile["getImageBase64"](parseInt(rId.substring(3))); + if ("data:" === url.substring(0, 5)) { + return { + targetMode : "InternalBase64", + base64 : url, + drawing: oDrawing + } + } else { + return { + targetMode: "InternalLoaded", + targetFullName: url, + drawing: oDrawing } } - }; + } + }; - switch (oXmlReader.GetName()) { - case 'p:sp': { - oDrawing = new AscPDF.CPdfShape(); - break; - } - case 'p:graphicFrame': { - oDrawing = new AscPDF.CPdfGraphicFrame(); - break; - } - case 'p:pic': { - oDrawing = new AscPDF.CPdfImage(); - break; - } + switch (oXmlReader.GetName()) { + case 'p:sp': { + oDrawing = new AscPDF.CPdfShape(); + break; } - - if (oDrawing) { - oDrawing.fromXml(oXmlReader); - oDrawing.setBDeleted(false); - aPageDrawings.push(oDrawing); - oDrawing.CheckTextOnOpen(); + case 'p:graphicFrame': { + oDrawing = new AscPDF.CPdfGraphicFrame(); + break; } - + case 'p:pic': { + oDrawing = new AscPDF.CPdfImage(); + break; + } + } + + if (oDrawing) { + oDrawing.fromXml(oXmlReader); + oDrawing.setBDeleted(false); + aPageDrawings.push(oDrawing); + oDrawing.CheckTextOnOpen(); } - }, this, this); + } let _t = this; let oImageMap = oParserContext.imageMap; @@ -4339,11 +4335,12 @@ var CPresentation = CPresentation || function(){}; _t.AddDrawing(drawing, nPage); drawing.SetNeedRecalc(true); }); - _t.TurnOffHistory(); + _t.FinalizeAction(); _t.Viewer.file.removeSelection(); _t.Viewer.paint(function() { _t.Viewer.thumbnails._repaintPage(nPage); }); + Asc.editor.canSave = true; }; if(aUrls.length > 0) { AscCommon.sendImgUrls(Asc.editor, aUrls, function (data) { @@ -4368,86 +4365,88 @@ var CPresentation = CPresentation || function(){}; } }; CPDFDoc.prototype.InsertContent2 = function(aSelContent, nIndex) { + if (true == this.Api.isRestrictionView()) { + return false; + } + let oThis = this; - return oThis.InsertContent(aSelContent[nIndex]); + return oThis.InsertContent(aSelContent[nIndex].copy()); }; CPDFDoc.prototype.InsertContent = function(oSelContent) { let oThis = this; let oController = this.GetController(); let nCurPage = this.GetCurPage(); - this.CreateNewHistoryPoint(); - let bResult = false; // во view шейпы не вставляем - if (false == this.Api.isRestrictionView()) { - if (oSelContent.Drawings.length != 0) { - this.BlurActiveObject(); + if (true == this.Api.isRestrictionView()) { + return bResult; + } - let aDrToPaste = oSelContent.Drawings.map(function(pasteObj) { - return pasteObj.Drawing; - }); + if (oSelContent.Drawings.length != 0) { + this.BlurActiveObject(); - aDrToPaste.forEach(function(drawing, index) { - let oXfrm = drawing.getXfrm(); - let oPos = private_computeDrawingAddingPos(nCurPage, oXfrm.extX, oXfrm.extY); - oXfrm.setOffX(oPos.x); - oXfrm.setOffY(oPos.y); + let aDrToPaste = oSelContent.Drawings.map(function(pasteObj) { + return pasteObj.Drawing; + }); - // чуть-чуть смещаем при вставке, чтобы было видно вставленную фигуру - let nShift = oController.getDrawingsPasteShift([drawing]); + aDrToPaste.forEach(function(drawing, index) { + let oXfrm = drawing.getXfrm(); + let oPos = private_computeDrawingAddingPos(nCurPage, oXfrm.extX, oXfrm.extY); + oXfrm.setOffX(oPos.x); + oXfrm.setOffY(oPos.y); - if (nShift > 0) { - oXfrm.shift(nShift, nShift); - } + // чуть-чуть смещаем при вставке, чтобы было видно вставленную фигуру + let nShift = oController.getDrawingsPasteShift([drawing]); - oThis.AddDrawing(drawing, oThis.GetCurPage()); + if (nShift > 0) { + oXfrm.shift(nShift, nShift); + } - if (drawing.IsGraphicFrame()) { - oController.Check_GraphicFrameRowHeight(drawing); - } - - if (index == 0) { - oThis.SetMouseDownObject(drawing); - } - drawing.select(oController, nCurPage); - }); + oThis.AddDrawing(drawing, oThis.GetCurPage()); - bResult = true; - } - else if (oSelContent.DocContent) { - oSelContent.DocContent.EndCollect(this); - if (oSelContent.DocContent.Elements.length > 0) { - let oTargetTextObject = AscFormat.getTargetTextObject(oController); - let oTargetDocContent = oController.getTargetDocContent(true), paragraph, NearPos; - - if (oTargetDocContent) { - if (oTargetDocContent.Selection.Use) { - oController.removeCallback(1, undefined, undefined, undefined, undefined, undefined); - } - - paragraph = oTargetDocContent.Content[oTargetDocContent.CurPos.ContentPos]; - if (null != paragraph && paragraph.IsParagraph()) { - NearPos = {Paragraph: paragraph, ContentPos: paragraph.Get_ParaContentPos(false, false)}; - paragraph.Check_NearestPos(NearPos); - oSelContent.DocContent.Insert(NearPos); - } - - oTargetTextObject && oTargetTextObject.checkExtentsByDocContent && oTargetTextObject.checkExtentsByDocContent(); - oTargetTextObject.SetNeedRecalc(true); - AscCommon.History.SetSourceObjectsToPointPdf([oTargetTextObject]); - } - else { - this.CreateAndAddShapeFromSelectedContent(oSelContent.DocContent); - } - } + if (drawing.IsGraphicFrame()) { + oController.Check_GraphicFrameRowHeight(drawing); + } + + if (index == 0) { + oThis.SetMouseDownObject(drawing); + } + drawing.select(oController, nCurPage); + }); - bResult = true; - } + bResult = true; } + if (oSelContent.DocContent) { + oSelContent.DocContent.EndCollect(this); + if (oSelContent.DocContent.Elements.length > 0) { + let oTargetTextObject = AscFormat.getTargetTextObject(oController); + let oTargetDocContent = oController.getTargetDocContent(true), paragraph, NearPos; - this.TurnOffHistory(); + if (oTargetDocContent) { + if (oTargetDocContent.Selection.Use) { + oController.removeCallback(1, undefined, undefined, undefined, undefined, undefined); + } + + paragraph = oTargetDocContent.Content[oTargetDocContent.CurPos.ContentPos]; + if (null != paragraph && paragraph.IsParagraph()) { + NearPos = {Paragraph: paragraph, ContentPos: paragraph.Get_ParaContentPos(false, false)}; + paragraph.Check_NearestPos(NearPos); + oSelContent.DocContent.Insert(NearPos); + } + + oTargetTextObject && oTargetTextObject.checkExtentsByDocContent && oTargetTextObject.checkExtentsByDocContent(); + oTargetTextObject.SetNeedRecalc(true); + AscCommon.History.SetSourceObjectsToPointPdf([oTargetTextObject]); + } + else { + this.CreateAndAddShapeFromSelectedContent(oSelContent.DocContent); + } + } + + bResult = true; + } return bResult; }; @@ -4479,22 +4478,23 @@ var CPresentation = CPresentation || function(){}; return oShape; }; - CPDFDoc.prototype.AddDrawing = function(oDrawing, nPage) { + CPDFDoc.prototype.AddDrawing = function(oDrawing, nPage, nPosInTree) { let oPagesInfo = this.Viewer.pagesInfo; if (!oPagesInfo.pages[nPage]) return; this.drawings.push(oDrawing); - if (oPagesInfo.pages[nPage].drawings == null) { - oPagesInfo.pages[nPage].drawings = []; + if (nPosInTree == undefined) { + nPosInTree = oPagesInfo.pages[nPage].drawings.length; } - oPagesInfo.pages[nPage].drawings.push(oDrawing); + + oPagesInfo.pages[nPage].drawings.splice(nPosInTree, 0, oDrawing); oDrawing.SetDocument(this); oDrawing.SetPage(nPage); oDrawing.setParent(this); - this.History.Add(new CChangesPDFDocumentAddItem(this, this.drawings.length - 1, [oDrawing])); + this.History.Add(new CChangesPDFDocumentDrawingsContent(this, nPosInTree, [oDrawing], true)); oDrawing.AddToRedraw(); this.ClearSearch(); @@ -4506,11 +4506,12 @@ var CPresentation = CPresentation || function(){}; let oController = this.GetController(); - let oTextArt = this.GetController().createTextArt(nStyle, false); + let oTextArt = this.GetController().createTextArt(nStyle, false); oTextArt.SetDocument(this); oTextArt.SetPage(nPage); oTextArt.Recalculate(); - + oTextArt.checkExtentsByDocContent(); + let oXfrm = oTextArt.getXfrm(); let nRotAngle = this.Viewer.getPageRotate(nPage); @@ -4531,7 +4532,7 @@ var CPresentation = CPresentation || function(){}; } oPagesInfo.pages[nPage].drawings.push(oTextArt); - this.History.Add(new CChangesPDFDocumentAddItem(this, this.drawings.length - 1, [oTextArt])); + this.History.Add(new CChangesPDFDocumentDrawingsContent(this, oPagesInfo.pages[nPage].drawings.length - 1, [oTextArt], true)); oTextArt.SetNeedRecalc(true); @@ -4798,87 +4799,86 @@ var CPresentation = CPresentation || function(){}; let oFreeText = this.AddAnnot(oProps); oFreeText.SetRotate(nRotAngle); - AscFormat.ExecuteNoHistory(function () { - oFreeText.SetFillColor([1, 1, 1]); - oFreeText.SetStrokeColor([0, 0, 0]); - oFreeText.SetWidth(1); - oFreeText.SetAlign(AscPDF.ALIGN_TYPE.left); - oFreeText.SetIntent(nType); - - this.SetMouseDownObject(oFreeText); - oController.selection.groupSelection = oFreeText; - oFreeText.SetInTextBox(true); - oFreeText.selectStartPage = nPage; - oFreeText.spTree.forEach(function(sp) { - sp.selectStartPage = nPage; - }); + oFreeText.SetFillColor([1, 1, 1]); + oFreeText.SetStrokeColor([0, 0, 0]); + oFreeText.SetWidth(1); + oFreeText.SetAlign(AscPDF.ALIGN_TYPE.left); + oFreeText.SetIntent(nType); + + this.SetMouseDownObject(oFreeText); + oController.selection.groupSelection = oFreeText; + oFreeText.selectStartPage = nPage; + oFreeText.spTree.forEach(function(sp) { + sp.selectStartPage = nPage; + }); - switch (nType) { - case AscPDF.FREE_TEXT_INTENT_TYPE.FreeText: { - oFreeText.SetIntent(AscPDF.FREE_TEXT_INTENT_TYPE.FreeText); - oFreeText.SetSubject('Text box'); - return; + switch (nType) { + case AscPDF.FREE_TEXT_INTENT_TYPE.FreeText: { + oFreeText.SetIntent(AscPDF.FREE_TEXT_INTENT_TYPE.FreeText); + oFreeText.SetSubject('Text box'); + break; + } + // прописываем RD и Callout + case AscPDF.FREE_TEXT_INTENT_TYPE.FreeTextCallout: { + oFreeText.SetIntent(AscPDF.FREE_TEXT_INTENT_TYPE.FreeTextCallout); + oFreeText.SetLineEnd(AscPDF.LINE_END_TYPE.OpenArrow); + oFreeText.SetSubject('Text callout'); + + let oTxBoxRect; + let x1, y1, x2, y2, x3, y3; + switch (nRotAngle) { + case 0: + oFreeText.SetRectangleDiff([nExtX / 2, 3 / 4 * nExtY, 0.5, 0.5]); + oTxBoxRect = oFreeText.GetTextBoxRect(); + + x1 = X1; + y1 = Y1; + x2 = oTxBoxRect[0] - oFreeText.defaultPerpLength; + y2 = oTxBoxRect[1] + (oTxBoxRect[3] - oTxBoxRect[1]) / 2; + x3 = oTxBoxRect[0]; + y3 = oTxBoxRect[1] + (oTxBoxRect[3] - oTxBoxRect[1]) / 2; + break; + case 90: + oFreeText.SetRectangleDiff([3 / 4 * nExtY, 0.5, 0.5, nExtX / 2]); + oTxBoxRect = oFreeText.GetTextBoxRect(); + + x1 = X1; + y1 = Y2; + x2 = oTxBoxRect[0] + (oTxBoxRect[2] - oTxBoxRect[0]) / 2; + y2 = oTxBoxRect[3] + oFreeText.defaultPerpLength; + x3 = oTxBoxRect[0] + (oTxBoxRect[2] - oTxBoxRect[0]) / 2; + y3 = oTxBoxRect[3] + break; + case 180: + oFreeText.SetRectangleDiff([0.5, 0.5, nExtX / 2, 3 / 4 * nExtY]); + oTxBoxRect = oFreeText.GetTextBoxRect(); + + x1 = X2; + y1 = Y2; + x2 = oTxBoxRect[2] + oFreeText.defaultPerpLength; + y2 = oTxBoxRect[1] + (oTxBoxRect[3] - oTxBoxRect[1]) / 2; + x3 = oTxBoxRect[2]; + y3 = oTxBoxRect[1] + (oTxBoxRect[3] - oTxBoxRect[1]) / 2; + break; + case 270: + oFreeText.SetRectangleDiff([0.5, nExtX / 2, 3 / 4 * nExtY, 0.5]); + oTxBoxRect = oFreeText.GetTextBoxRect(); + + x1 = X2; + y1 = Y1; + x2 = oTxBoxRect[0] + (oTxBoxRect[2] - oTxBoxRect[0]) / 2; + y2 = oTxBoxRect[1] - oFreeText.defaultPerpLength; + x3 = oTxBoxRect[0] + (oTxBoxRect[2] - oTxBoxRect[0]) / 2; + y3 = oTxBoxRect[1]; + break; } - // прописываем RD и Callout - case AscPDF.FREE_TEXT_INTENT_TYPE.FreeTextCallout: { - oFreeText.SetIntent(AscPDF.FREE_TEXT_INTENT_TYPE.FreeTextCallout); - oFreeText.SetLineEnd(AscPDF.LINE_END_TYPE.OpenArrow); - oFreeText.SetSubject('Text callout'); - - let oTxBoxRect; - let x1, y1, x2, y2, x3, y3; - switch (nRotAngle) { - case 0: - oFreeText.SetRectangleDiff([nExtX / 2, 3 / 4 * nExtY, 0.5, 0.5]); - oTxBoxRect = oFreeText.GetTextBoxRect(); - - x1 = X1; - y1 = Y1; - x2 = oTxBoxRect[0] - oFreeText.defaultPerpLength; - y2 = oTxBoxRect[1] + (oTxBoxRect[3] - oTxBoxRect[1]) / 2; - x3 = oTxBoxRect[0]; - y3 = oTxBoxRect[1] + (oTxBoxRect[3] - oTxBoxRect[1]) / 2; - break; - case 90: - oFreeText.SetRectangleDiff([3 / 4 * nExtY, 0.5, 0.5, nExtX / 2]); - oTxBoxRect = oFreeText.GetTextBoxRect(); - - x1 = X1; - y1 = Y2; - x2 = oTxBoxRect[0] + (oTxBoxRect[2] - oTxBoxRect[0]) / 2; - y2 = oTxBoxRect[3] + oFreeText.defaultPerpLength; - x3 = oTxBoxRect[0] + (oTxBoxRect[2] - oTxBoxRect[0]) / 2; - y3 = oTxBoxRect[3] - break; - case 180: - oFreeText.SetRectangleDiff([0.5, 0.5, nExtX / 2, 3 / 4 * nExtY]); - oTxBoxRect = oFreeText.GetTextBoxRect(); - - x1 = X2; - y1 = Y2; - x2 = oTxBoxRect[2] + oFreeText.defaultPerpLength; - y2 = oTxBoxRect[1] + (oTxBoxRect[3] - oTxBoxRect[1]) / 2; - x3 = oTxBoxRect[2]; - y3 = oTxBoxRect[1] + (oTxBoxRect[3] - oTxBoxRect[1]) / 2; - break; - case 270: - oFreeText.SetRectangleDiff([0.5, nExtX / 2, 3 / 4 * nExtY, 0.5]); - oTxBoxRect = oFreeText.GetTextBoxRect(); - - x1 = X2; - y1 = Y1; - x2 = oTxBoxRect[0] + (oTxBoxRect[2] - oTxBoxRect[0]) / 2; - y2 = oTxBoxRect[1] - oFreeText.defaultPerpLength; - x3 = oTxBoxRect[0] + (oTxBoxRect[2] - oTxBoxRect[0]) / 2; - y3 = oTxBoxRect[1]; - break; - } - oFreeText.SetCallout([x1, y1, x2, y2, x3, y3]); - return; - } + oFreeText.SetCallout([x1, y1, x2, y2, x3, y3]); + break; } - }, this); + } + + oFreeText.SetInTextBox(true); }; CPDFDoc.prototype.AddImages = function(arrImages) { @@ -4918,67 +4918,30 @@ var CPresentation = CPresentation || function(){}; } }; CPDFDoc.prototype.ShapeApply = function(shapeProps) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - this.CreateNewHistoryPoint({objects: oObjectsByType.shapes}); - oController.applyDrawingProps(shapeProps); - - oObjectsByType.shapes.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - oObjectsByType.images.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); + let oController = this.GetController(); + let aAdditionalObjects = null; + if (AscFormat.isRealNumber(shapeProps.Width) && AscFormat.isRealNumber(shapeProps.Height)) { + aAdditionalObjects = oController.getConnectorsForCheck2(); + } - this.TurnOffHistory(); + oController.checkSelectedObjectsAndCallback(oController.applyDrawingProps, [shapeProps], false, AscDFH.historydescription_Presentation_SetShapeProps, aAdditionalObjects); }; CPDFDoc.prototype.ChangeShapeType = function (sShapeType) { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - this.CreateNewHistoryPoint({objects: oObjectsByType.shapes}); + let oController = this.GetController(); oController.checkSelectedObjectsAndCallback(oController.applyDrawingProps, [{type: sShapeType}], false, AscDFH.historydescription_Presentation_ChangeShapeType); - - oObjectsByType.shapes.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - oObjectsByType.images.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); }; CPDFDoc.prototype.SetImageProps = function(oPr) { let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); let aAdditionalObjects = null; - - this.CreateNewHistoryPoint({objects: oObjectsByType.images}); - if (AscFormat.isRealNumber(oPr.Width) && AscFormat.isRealNumber(oPr.Height)) { aAdditionalObjects = oController.getConnectorsForCheck2(); } - oController.checkSelectedObjectsAndCallback(oController.applyDrawingProps, [oPr], false, AscDFH.historydescription_Presentation_SetImageProps, aAdditionalObjects); - oObjectsByType.images.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - this.TurnOffHistory(); + oController.checkSelectedObjectsAndCallback(oController.applyDrawingProps, [oPr], false, AscDFH.historydescription_Presentation_SetImageProps, aAdditionalObjects); }; CPDFDoc.prototype.FitImagesToPage = function () { - let oController = this.GetController(); - let oObjectsByType = oController.getSelectedObjectsByTypes(true); - - this.CreateNewHistoryPoint({objects: oObjectsByType.images}); - + let oController = this.GetController(); oController.fitImagesToPage(); - oObjectsByType.images.forEach(function(drawing) { - drawing.SetNeedRecalc(true); - }); - - this.TurnOffHistory(); - }; CPDFDoc.prototype.AddTextWithPr = function(sText, oSettings) { let oController = this.GetController(); @@ -4992,95 +4955,88 @@ var CPresentation = CPresentation || function(){}; return this.DrawingObjects; }; CPDFDoc.prototype.BringToFront = function() { - let oController = this.GetController(); - - this.CreateNewHistoryPoint(); - - if (!(oController.selection.groupSelection)) { - for (let i = oController.selectedObjects.length - 1; i > -1; --i) { - let oShape = oController.selectedObjects[i]; - let oDrawings = oController.getDrawingObjects(oShape.GetPage()); - this.ChangeObjectPosInPageTree(oShape, oDrawings.length - 1); + this.DoAction(function() { + let oController = this.GetController(); + + if (!(oController.selection.groupSelection)) { + for (let i = oController.selectedObjects.length - 1; i > -1; --i) { + let oShape = oController.selectedObjects[i]; + let oDrawings = oController.getDrawingObjects(oShape.GetPage()); + this.ChangeDrawingPosInPageTree(oShape, oDrawings.length - 1); + } } - } - else { - oController.selection.groupSelection.bringToFront(); - } - - this.TurnOffHistory(); + else { + oController.selection.groupSelection.bringToFront(); + } + }, AscDFH.historydescription_Document_GrObjectsBringToFront, this); }; CPDFDoc.prototype.BringForward = function() { - let oController = this.GetController(); - - this.CreateNewHistoryPoint(); - - if (!(oController.selection.groupSelection)) { - for (let i = oController.selectedObjects.length - 1; i > -1; --i) { - let oShape = oController.selectedObjects[i]; - let oDrawings = oController.getDrawingObjects(oShape.GetPage()); - let nCurPos = oDrawings.indexOf(oShape); + this.DoAction(function() { + let oController = this.GetController(); + + if (!(oController.selection.groupSelection)) { + for (let i = oController.selectedObjects.length - 1; i > -1; --i) { + let oShape = oController.selectedObjects[i]; + let oDrawings = oController.getDrawingObjects(oShape.GetPage()); + let nCurPos = oDrawings.indexOf(oShape); - this.ChangeObjectPosInPageTree(oShape, nCurPos + 1); + this.ChangeDrawingPosInPageTree(oShape, nCurPos + 1); + } } - } - else { - oController.selection.groupSelection.bringToFront(); - } - - this.TurnOffHistory(); + else { + oController.selection.groupSelection.bringForward(); + } + }, AscDFH.historydescription_Document_GrObjectsBringForwardGroup, this); }; CPDFDoc.prototype.SendToBack = function() { - let oController = this.GetController(); - - this.CreateNewHistoryPoint(); - - if (!(oController.selection.groupSelection)) { - for (let i = oController.selectedObjects.length - 1; i > -1; --i) { - let oShape = oController.selectedObjects[i]; - this.ChangeObjectPosInPageTree(oShape, 0); + this.DoAction(function() { + let oController = this.GetController(); + + if (!(oController.selection.groupSelection)) { + for (let i = oController.selectedObjects.length - 1; i > -1; --i) { + let oShape = oController.selectedObjects[i]; + this.ChangeDrawingPosInPageTree(oShape, 0); + } } - } - else { - oController.selection.groupSelection.bringToFront(); - } - - this.TurnOffHistory(); + else { + oController.selection.groupSelection.sendToBack(); + } + }, AscDFH.historydescription_Document_GrObjectsSendToBackGroup, this); }; CPDFDoc.prototype.BringBackward = function() { - let oController = this.GetController(); - - this.CreateNewHistoryPoint(); - - if (!(oController.selection.groupSelection)) { - for (let i = oController.selectedObjects.length - 1; i > -1; --i) { - let oShape = oController.selectedObjects[i]; - let oDrawings = oController.getDrawingObjects(oShape.GetPage()); - let nCurPos = oDrawings.indexOf(oShape); + this.DoAction(function() { + let oController = this.GetController(); + + if (!(oController.selection.groupSelection)) { + for (let i = oController.selectedObjects.length - 1; i > -1; --i) { + let oShape = oController.selectedObjects[i]; + let oDrawings = oController.getDrawingObjects(oShape.GetPage()); + let nCurPos = oDrawings.indexOf(oShape); - this.ChangeObjectPosInPageTree(oShape, nCurPos - 1); + this.ChangeDrawingPosInPageTree(oShape, nCurPos - 1); + } } - } - else { - oController.selection.groupSelection.bringToFront(); - } - - this.TurnOffHistory(); + else { + oController.selection.groupSelection.bringForward(); + } + }, AscDFH.historydescription_Document_GrObjectsBringForwardGroup, this); }; - CPDFDoc.prototype.ChangeObjectPosInPageTree = function(oObject, nNewPos) { + CPDFDoc.prototype.ChangeDrawingPosInPageTree = function(oDrawing, nNewPos) { let oController = this.GetController(); - let oDrawings = oController.getDrawingObjects(oObject.GetPage()); - let nOldPos = oDrawings.indexOf(oObject); + let aDrawings = oController.getDrawingObjects(oDrawing.GetPage()); + let nPage = oDrawing.GetPage(); + let nOldPos = aDrawings.indexOf(oDrawing); - if (nNewPos >= oDrawings.length || nNewPos < 0 || nOldPos == nNewPos) { + if (nNewPos >= aDrawings.length || nNewPos < 0 || nOldPos == nNewPos) { return; } - oDrawings.splice(nOldPos, 1); - oDrawings.splice(nNewPos, 0, oObject); - - AscCommon.History.Add(new CChangesPDFDocumentChangePosInTree(this, [nOldPos, nNewPos], [oObject])); - oObject.AddToRedraw(); + this.RemoveDrawing(oDrawing.GetId()); + this.AddDrawing(oDrawing, nPage, nNewPos); + oDrawing.select(oController, nPage); + this.SetMouseDownObject(oDrawing); + oDrawing.AddToRedraw(); }; CPDFDoc.prototype.PutShapesAlign = function(nType, nAlignToType) { let oController = this.GetController(); @@ -5155,13 +5111,10 @@ var CPresentation = CPresentation || function(){}; CPDFDoc.prototype.CheckTableForPreview = function (oTable) {}; CPDFDoc.prototype.SetTableProps = function(oTablePr) { - let oController = this.GetController(); - let oCurObject = this.GetActiveObject(); - - this.CreateNewHistoryPoint({objects: [oCurObject]}); - oCurObject.SetNeedRecalc(true); - oController.setTableProps(oTablePr); - this.TurnOffHistory(); + this.DoAction(function() { + let oController = this.GetController(); + oController.setTableProps(oTablePr); + }, AscDFH.historydescription_Presentation_TblApply, this); }; CPDFDoc.prototype.ApplyTableFunction = function (Function, bBefore, bAll, Cols, Rows) { @@ -5201,15 +5154,13 @@ var CPresentation = CPresentation || function(){}; } } } - if(oTable) { - this.CreateNewHistoryPoint({objects: [oTable.Parent]}); + if (oTable) { oTable.Parent.SetNeedRecalc(true); result = Function.apply(oTable, args); if (oTable.Content.length === 0) { - this.RemoveDrawing(oTable.Parent); + this.RemoveDrawing(oTable.Parent.GetId()); return result; } - this.TurnOffHistory(); } return result; }; @@ -5313,13 +5264,325 @@ var CPresentation = CPresentation || function(){}; this.DefaultTableStyleId = AscFormat.CreatePresentationTableStyles(this.globalTableStyles, this.TableStylesIdMap); }; + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // Collaborative editing + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + CPDFDoc.prototype.PauseRecalculate = function() {}; + CPDFDoc.prototype.EndPreview_MailMergeResult = function() {}; + CPDFDoc.prototype.Get_SelectionState2 = function() {}; + CPDFDoc.prototype.Save_DocumentStateBeforeLoadChanges = function() {}; + CPDFDoc.prototype.Load_DocumentStateAfterLoadChanges = function() {}; + CPDFDoc.prototype.Check_MergeData = function() {}; + CPDFDoc.prototype.Set_SelectionState2 = function() {}; + CPDFDoc.prototype.ResumeRecalculate = function() {}; + CPDFDoc.prototype.RecalculateByChanges = function(arrChanges, nStartIndex, nEndIndex) { + this.ClearSearch(); + + // Обновляем позицию курсора + this.NeedUpdateTarget = true; + + // Увеличиваем номер пересчета + this.RecalcId++; + + this.History.Get_RecalcData(null, arrChanges, nStartIndex, nEndIndex); + }; + CPDFDoc.prototype.UpdateTracks = function() {}; + CPDFDoc.prototype.GetOFormDocument = function() {}; + CPDFDoc.prototype.Continue_FastCollaborativeEditing = function() { + let oController = this.GetController(); + + if (true === this.CollaborativeEditing.Get_GlobalLock()) { + if (this.Api.forceSaveUndoRequest) { + this.Api.asc_Save(true); + } + + return; + } + + if (this.Api.isLongAction()) { + return; + } + + if (Asc.editor.FontLoader.isWorking()) { + return; + } + + if (true !== this.CollaborativeEditing.Is_Fast() || true === this.CollaborativeEditing.Is_SingleUser()) { + return; + } + + if (true === this.Api.isStartAddShape || oController.isTrackingDrawings() || this.Api.isOpenedChartFrame) { + return; + } + + let HaveChanges = this.History.Have_Changes(true); + if (true !== HaveChanges && (true === this.CollaborativeEditing.Have_OtherChanges() || 0 !== this.CollaborativeEditing.getOwnLocksLength())) { + // Принимаем чужие изменения. Своих нет, но функцию отсылки надо вызвать, чтобы снять локи. + this.CollaborativeEditing.Apply_Changes(); + this.CollaborativeEditing.Send_Changes(); + } + else if (true === HaveChanges || true === this.CollaborativeEditing.Have_OtherChanges()) { + this.Api.asc_Save(true); + } + + let CurTime = new Date().getTime(); + if (true === this.NeedUpdateTargetForCollaboration && (CurTime - this.LastUpdateTargetTime > 1000) || this.NeedUpdateTargetForCollaborationForce) { + + if (true !== HaveChanges || this.NeedUpdateTargetForCollaborationForce) { + + let CursorInfo = this.History.Get_DocumentPositionBinary(); + this.Api.CoAuthoringApi.sendCursor(CursorInfo); + this.LastUpdateTargetTime = CurTime; + } + else { + this.LastUpdateTargetTime = CurTime; + } + + this.NeedUpdateTargetForCollaboration = false; + this.NeedUpdateTargetForCollaborationForce = false; + } + }; + CPDFDoc.prototype.private_UpdateTargetForCollaboration = function(bForce) { + this.NeedUpdateTargetForCollaboration = true; + if (bForce) { + this.NeedUpdateTargetForCollaborationForce = bForce; + } + }; + CPDFDoc.prototype.Get_DocumentPositionInfoForCollaborative = function() { + let oActiveObj = this.GetActiveObject(); + + if (!oActiveObj || (Asc.editor.isRestrictionView()) && !this.IsViewerObject(oActiveObj)) { + return; + } + + if (oActiveObj.IsDrawing() && oActiveObj.IsInTextBox()) { + let oContent = oActiveObj.GetDocContent(); + if (oContent) { + let aDocPos = oContent.getDocumentContentPosition(); + return aDocPos[aDocPos.length - 1]; + } + } + else { + return {Class: oActiveObj, Position: undefined}; + } + }; + CPDFDoc.prototype.Update_ForeignCursor = function(CursorInfo, UserId, Show, UserShortId) { + if (!this.Api.User) + return; + + if (UserId === this.Api.CoAuthoringApi.getUserConnectionId()) + return; + + let sUserName = this.Api.CoAuthoringApi.getParticipantName(UserId); + + // "" - это означает, что курсор нужно удалить + if (!CursorInfo || "" === CursorInfo || !AscCommon.UserInfoParser.isUserVisible(sUserName)) + { + this.Remove_ForeignCursor(UserId); + this.Viewer.onUpdateOverlay(); + return; + } + + let Changes = new AscCommon.CCollaborativeChanges(); + let Reader = Changes.GetStream(CursorInfo); + + let oObjId = Reader.GetString2(); + let InRunPos = Reader.GetLong(); + + let oTargetObj = AscCommon.g_oTableId.Get_ById(oObjId); + let bUpdateOverlayOnRemoveCursor = false; + if (Array.isArray(this.CollaborativeEditing.m_oSelectedObjects[UserId]) && this.CollaborativeEditing.m_oSelectedObjects[UserId].length != 0) { + bUpdateOverlayOnRemoveCursor = true; + } + + this.Remove_ForeignCursor(UserId); + if (bUpdateOverlayOnRemoveCursor) { + this.Viewer.onUpdateOverlay(); + } + + if (!oTargetObj) { + return; + } + + if (oTargetObj instanceof AscWord.Run) { + let CursorPos = [{Class : oTargetObj, Position : InRunPos}]; + oTargetObj.GetDocumentPositionFromObject(CursorPos); + this.CollaborativeEditing.Add_ForeignCursor(UserId, CursorPos, UserShortId); + + if (true === Show) { + this.CollaborativeEditing.Update_ForeignCursorPosition(UserId, oTargetObj, InRunPos, true); + this.GetDrawingDocument().Collaborative_TargetsUpdate(); + } + + this.CollaborativeEditing.Show_ForeignCursorLabel(UserId); + } + else { + this.CollaborativeEditing.Add_ForeignSelectedObject(UserId, oTargetObj, UserShortId); + let color = AscCommon.getUserColorById(UserShortId, null, true); + this.Show_ForeignSelectedObjectLabel(UserId, oTargetObj, color); + this.Viewer.onUpdateOverlay(); + } + }; + CPDFDoc.prototype.Draw_ForeingSelection = function(nDrawPage) { + let oViewer = this.Viewer; + let oOverlay = this.Viewer.overlay; + let oCtx = this.Viewer.overlay.m_oContext; + let oSelectedObjects = this.CollaborativeEditing.m_oSelectedObjects; + + for (let userId in oSelectedObjects) { + let aObjects = oSelectedObjects[userId]; + + let oColor = AscCommon.getUserColorById(this.CollaborativeEditing.m_aForeignCursorsId[userId], null, true); + + for (let i = 0; i < aObjects.length; i++) { + let aRect = aObjects[i].GetOrigRect(); + let nPage = aObjects[i].GetPage(); + let nRotRad = aObjects[i].GetRot ? aObjects[i].GetRot() : 0; + + if (nDrawPage != nPage) { + continue; + } + + let nScale = oViewer.getDrawingPageScale(nPage) * AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom; + + let xCenter = oViewer.width >> 1; + if (oViewer.documentWidth > oViewer.width) + { + xCenter = (oViewer.documentWidth >> 1) - (oViewer.scrollX) >> 0; + } + let yPos = oViewer.scrollY >> 0; + let page = oViewer.drawingPages[nPage]; + let w = (page.W * AscCommon.AscBrowser.retinaPixelRatio) >> 0; + let h = (page.H * AscCommon.AscBrowser.retinaPixelRatio) >> 0; + let indLeft = ((xCenter * AscCommon.AscBrowser.retinaPixelRatio) >> 0) - (w >> 1); + let indTop = ((page.Y - yPos) * AscCommon.AscBrowser.retinaPixelRatio) >> 0; + + if (true == oViewer.isLandscapePage(nPage)) + indLeft = indLeft + (w - h) / 2; + + let X = aRect[0] * nScale - 0.5 >> 0; + let Y = aRect[1] * nScale - 0.5 >> 0; + let W = (aRect[2] - aRect[0]) * nScale + 0.5 >> 0; + let H = (aRect[3] - aRect[1]) * nScale + 0.5 >> 0; + + oCtx.strokeStyle = "rgb(" + oColor.r + "," + oColor.g + "," + oColor.b + ")"; + oCtx.lineWidth = 2; + + if (nRotRad != 0) { + let cosTheta = Math.cos(nRotRad); + let sinTheta = Math.sin(nRotRad); + + let centerX = indLeft + X + W / 2; + let centerY = indTop + Y + H / 2; + + let corners = [ + { x: -W / 2, y: -H / 2 }, // верхний левый + { x: W / 2, y: -H / 2 }, // верхний правый + { x: W / 2, y: H / 2 }, // нижний правый + { x: -W / 2, y: H / 2 }, // нижний левый + ]; + + let rotatedCorners = corners.map(function (pt) { + return { + x: centerX + pt.x * cosTheta - pt.y * sinTheta, + y: centerY + pt.x * sinTheta + pt.y * cosTheta + }; + }); + + oCtx.beginPath(); + oOverlay.CheckPoint(rotatedCorners[0].x, rotatedCorners[0].y); + oCtx.moveTo(rotatedCorners[0].x, rotatedCorners[0].y); + for (let i = 1; i < rotatedCorners.length; i++) { + oOverlay.CheckPoint(rotatedCorners[i].x, rotatedCorners[i].y); + oCtx.lineTo(rotatedCorners[i].x, rotatedCorners[i].y); + } + oCtx.closePath(); + oCtx.stroke(); + } else { + oOverlay.CheckPoint(indLeft + X, indTop + Y); + oOverlay.CheckPoint(indLeft + X + W, indTop + Y + H); + + oCtx.beginPath(); + oCtx.rect(indLeft + X, indTop + Y, W, H); + oCtx.stroke(); + } + } + } + }; + CPDFDoc.prototype.Show_ForeignSelectedObjectLabel = function(userId, foreignSelectObj, color) { + let oApi = Asc.editor; + + if (foreignSelectObj.LabelTimer) + clearTimeout(foreignSelectObj.LabelTimer); + + foreignSelectObj.LabelTimer = setTimeout(function() + { + foreignSelectObj.LabelTimer = null; + oApi.sync_HideForeignCursorLabel(userId); + }, AscCommon.FOREIGN_CURSOR_LABEL_HIDETIME); + + let oOrigRect = foreignSelectObj.GetOrigRect(); + let nPage = foreignSelectObj.GetPage(); + let oTr = this.pagesTransform[nPage].invert; + + let oPoint = oTr.TransformPoint(oOrigRect[0], oOrigRect[1]); + + oApi.sync_ShowForeignCursorLabel(userId, oPoint.x, oPoint.y, color); + }; + CPDFDoc.prototype.Remove_ForeignCursor = function(UserId, oObject) { + this.CollaborativeEditing.Remove_ForeignCursor(UserId); + this.CollaborativeEditing.Remove_FiregnSelectedObject(UserId, oObject); + }; + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Required extensions //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CPDFDoc.prototype.Is_Inline = function() {}; + CPDFDoc.prototype.OnChangeForm = function() {}; + CPDFDoc.prototype.Get_Api = function() { + return Asc.editor; + }; + CPDFDoc.prototype.Get_CollaborativeEditing = function() { + return this.CollaborativeEditing; + }; + CPDFDoc.prototype.Clear_ContentChanges = function() { + this.annotsContentChanges.Clear(); + this.fieldsContentChanges.Clear(); + this.drawingsContentChanges.Clear(); + this.pagesContentChanges.Clear(); + }; + CPDFDoc.prototype.UpdateMaxApIdx = function(nApIdx) { + AscCommon.g_oIdCounter.m_nIdCounterEdit = Math.max(nApIdx, AscCommon.g_oIdCounter.m_nIdCounterEdit); + }; + CPDFDoc.prototype.Add_ContentChanges = function(Changes) { + let oChange = Changes.m_pData.Data; + + switch (oChange.Type) { + case AscDFH.historyitem_PDF_Document_AnnotsContent: + this.annotsContentChanges.Add(Changes); + break; + case AscDFH.historyitem_PDF_Document_FieldsContent: + this.fieldsContentChanges.Add(Changes); + break; + case AscDFH.historyitem_PDF_Document_DrawingsContent: + this.drawingsContentChanges.Add(Changes); + break; + case AscDFH.historyitem_PDF_Document_AddPage: + case AscDFH.historyitem_PDF_Document_RemovePage: + this.pagesContentChanges.Add(Changes); + break; + } + }; + CPDFDoc.prototype.Refresh_ContentChanges = function() { + this.annotsContentChanges.Refresh(); + this.fieldsContentChanges.Refresh(); + this.drawingsContentChanges.Refresh(); + this.pagesContentChanges.Refresh(); + }; CPDFDoc.prototype.GetRecalcId = function () { return Infinity; }; + CPDFDoc.prototype.RemoveBeforePaste = function() {}; CPDFDoc.prototype.Document_UpdateInterfaceState = function() {}; CPDFDoc.prototype.IsViewModeInReview = function() { return false; @@ -5385,7 +5648,6 @@ var CPresentation = CPresentation || function(){}; CPDFDoc.prototype.Document_UpdateUndoRedoState = function() { this.UpdateUndoRedo(); }; - CPDFDoc.prototype.private_UpdateTargetForCollaboration = function() {}; CPDFDoc.prototype.RecalculateCurPos = function() {}; CPDFDoc.prototype.HaveRevisionChanges = function() {}; CPDFDoc.prototype.ContinueSpellCheck = function() {}; @@ -5428,10 +5690,7 @@ var CPresentation = CPresentation || function(){}; CPDFDoc.prototype.Document_Is_SelectionLocked = function() { return false; }; - CPDFDoc.prototype.StartAction = function(){}; CPDFDoc.prototype.Recalculate = function(){}; - CPDFDoc.prototype.FinalizeAction = function(){}; - CPDFDoc.prototype.GetDocPosType = function() {}; CPDFDoc.prototype.GetSelectedContent = function() {}; CPDFDoc.prototype.Is_ShowParagraphMarks = function() {}; @@ -5541,37 +5800,37 @@ var CPresentation = CPresentation || function(){}; nPage = nPage != undefined ? nPage : this.Viewer.currentPage; let oNativePage = this.Viewer.file.pages[nPage]; - return oNativePage.W * (96 / oNativePage.Dpi) * g_dKoef_pix_to_mm * g_dKoef_mm_to_emu; + return oNativePage.W * g_dKoef_pt_to_mm * g_dKoef_mm_to_emu; }; CPDFDoc.prototype.GetPageHeightEMU = function(nPage) { nPage = nPage != undefined ? nPage : this.Viewer.currentPage; let oNativePage = this.Viewer.file.pages[nPage]; - return oNativePage.H * (96 / oNativePage.Dpi) * g_dKoef_pix_to_mm * g_dKoef_mm_to_emu; + return oNativePage.H * g_dKoef_pt_to_mm * g_dKoef_mm_to_emu; }; CPDFDoc.prototype.GetPageWidth = function(nPage) { nPage = nPage != undefined ? nPage : this.Viewer.currentPage; let oNativePage = this.Viewer.file.pages[nPage]; - return oNativePage.W * (96 / oNativePage.Dpi); + return oNativePage.W; }; CPDFDoc.prototype.GetPageHeight = function(nPage) { nPage = nPage != undefined ? nPage : this.Viewer.currentPage; let oNativePage = this.Viewer.file.pages[nPage]; - return oNativePage.H * (96 / oNativePage.Dpi); + return oNativePage.H; }; CPDFDoc.prototype.GetPageWidthMM = function(nPage) { nPage = nPage != undefined ? nPage : this.Viewer.currentPage; let oNativePage = this.Viewer.file.pages[nPage]; - return oNativePage.W * (96 / oNativePage.Dpi) * g_dKoef_pix_to_mm; + return oNativePage.W * g_dKoef_pt_to_mm; }; CPDFDoc.prototype.GetPageHeightMM = function(nPage) { nPage = nPage != undefined ? nPage : this.Viewer.currentPage; let oNativePage = this.Viewer.file.pages[nPage]; - return oNativePage.H * (96 / oNativePage.Dpi) * g_dKoef_pix_to_mm; + return oNativePage.H * g_dKoef_pt_to_mm; }; CPDFDoc.prototype.GetApi = function() { return editor; @@ -5580,10 +5839,10 @@ var CPresentation = CPresentation || function(){}; return this.Api.canEdit(); }; CPDFDoc.prototype.IsShowShapeAdjustments = function() { - return this.Api.canEdit(); + return this.Api.canEdit() && false == this.Api.IsCommentMarker(); }; CPDFDoc.prototype.IsShowTableAdjustments = function() { - return this.Api.canEdit();; + return this.Api.canEdit() && false == this.Api.IsCommentMarker(); }; CPDFDoc.prototype.IsViewerObject = function(oObject) { return !!(oObject && oObject.IsAnnot && (oObject.IsAnnot() || oObject.IsForm() || oObject.group && oObject.group.IsAnnot())); @@ -5592,34 +5851,24 @@ var CPresentation = CPresentation || function(){}; return false; }; CPDFDoc.prototype.getDrawingObjects = function() { - if (!this.Viewer) - return null; - - return this.Viewer.DrawingObjects; + return null; }; CPDFDoc.prototype.checkDefaultFieldFonts = function(callback) { if (1 === this.defaultFontsLoaded) return true; - if (callback) - this.fontLoaderCallbacks.push(callback); - if (0 === this.defaultFontsLoaded) return false; this.defaultFontsLoaded = 0; let _t = this; - this.fontLoader.LoadDocumentFonts2([{name : AscPDF.DEFAULT_FIELD_FONT}], - Asc.c_oAscAsyncActionType.Empty, + this.fontLoader.LoadFonts([AscPDF.DEFAULT_FIELD_FONT], function() { _t.defaultFontsLoaded = 1; - _t.fontLoaderCallbacks.forEach(function(callback) { + if (callback) callback(); - }); - - _t.fontLoaderCallbacks = []; } ); @@ -5644,76 +5893,51 @@ var CPresentation = CPresentation || function(){}; if (this.loadedFonts.includes(sFontName)) return true; - if (callback) - this.fontLoaderCallbacks.push(callback); - let _t = this; - this.fontLoader.LoadDocumentFonts2([{name : sFontName}], - Asc.c_oAscAsyncActionType.Empty, + this.fontLoader.LoadFonts([sFontName], function() { _t.loadedFonts.push(sFontName); - _t.fontLoaderCallbacks.forEach(function(callback) { + if (callback) callback(); - }); - - _t.fontLoaderCallbacks = []; } ); - + return false; }; - CPDFDoc.prototype.checkFonts = function(aFontsNames, callback) { - let aFontsToLoad = []; - let aMap = []; + CPDFDoc.prototype.checkFonts = function(aFontsNames, callback) { + let fontsToLoad = []; + let fontMap = {}; + + let aExtended = []; + AscFonts.FontPickerByCharacter.extendFonts(aExtended); + aExtended.forEach(function(font) { + aFontsNames.push(font.name); + }); + + for (let i = 0; i < aFontsNames.length; i++) { + if (this.loadedFonts.includes(aFontsNames[i]) || fontsToLoad.includes(aFontsNames[i])) + continue; + + fontsToLoad.push(aFontsNames[i]); + fontMap[aFontsNames[i]] = true; + } - for (let i = 0; i < aFontsNames.length; i++) { - if (this.loadedFonts.includes(aFontsNames[i]) == false && aFontsToLoad.includes(aFontsNames[i]) == false) { - aFontsToLoad.push(aFontsNames[i]); - aMap.push({name: aFontsNames[i]}); - } - } - - AscFonts.FontPickerByCharacter.extendFonts(aMap); - - if (aMap.length == 0) { - return true; - } - - if (callback) - this.fontLoaderCallbacks.push(callback); - - let _t = this; - this.fontLoader.LoadDocumentFonts2(aMap, - Asc.c_oAscAsyncActionType.Empty, + if (!fontsToLoad.length) + return true; + + let _t = this; + this.fontLoader.LoadFonts(fontMap, function() { - _t.loadedFonts = _t.loadedFonts.concat(aFontsToLoad); - _t.fontLoaderCallbacks.forEach(function(callback) { + _t.loadedFonts = _t.loadedFonts.concat(fontsToLoad); + if (callback) callback(); - }); - - _t.fontLoaderCallbacks = []; } ); - - return false; - }; - CPDFDoc.prototype.Get_PageLimits = function(nPage) { - let oDrDoc = this.GetDrawingDocument(); - let oPageInfo = oDrDoc.m_arrPages[nPage]; - - return { - X: 0, - XLimit: Math.ceil(oPageInfo.width_mm), - Y: 0, - YLimit: Math.ceil(oPageInfo.height_mm), - } - }; - CPDFDoc.prototype.Get_PageFields = function(nPage) { - return this.Get_PageLimits(nPage); - }; - + + return false; + }; CPDFDoc.prototype.GetAllSignatures = function() { return []; }; @@ -5751,6 +5975,29 @@ var CPresentation = CPresentation || function(){}; return null; }; + // for touch + CPDFDoc.prototype.GetSelectionBounds = function() + { + return null; + }; + CPDFDoc.prototype.IsInForm = function(x, y, pageIndex) + { + // TODO: + return (null != this.Viewer.getPageFieldByMouse(false)) ? true : false; + }; + CPDFDoc.prototype.IsFormFieldEditing = function() + { + return false; + }; + CPDFDoc.prototype.IsNumberingSelection = function() + { + return false; + }; + CPDFDoc.prototype.Get_TargetPos = function() + { + return null; + }; + function CActionQueue(oDoc) { this.doc = oDoc; this.actions = []; @@ -5776,6 +6023,8 @@ var CPresentation = CPresentation || function(){}; this.callbackAfterFocus = null; }; CActionQueue.prototype.Stop = function() { + Asc.editor.canSave = true; + this.SetInProgress(false); }; CActionQueue.prototype.IsInProgress = function() { @@ -5789,14 +6038,15 @@ var CPresentation = CPresentation || function(){}; }; CActionQueue.prototype.Start = function() { if (this.IsInProgress() == false) { - let oFirstAction = this.actions[0]; - if (oFirstAction) { - this.SetInProgress(true); - this.SetCurActionIdx(0); - setTimeout(function() { + this.doc.DoAction(function() { + let oFirstAction = this.actions[0]; + if (oFirstAction) { + Asc.editor.canSave = false; + this.SetInProgress(true); + this.SetCurActionIdx(0); oFirstAction.Do(); - }, 100); - } + } + }, AscDFH.historydescription_Pdf_ExecActions, this); } }; CActionQueue.prototype.Continue = function() { @@ -5860,11 +6110,6 @@ var CPresentation = CPresentation || function(){}; let oAnnot; - let oViewer = editor.getDocumentRenderer(); - let nScaleY = oViewer.drawingPages[nPageNum].H / oViewer.file.pages[nPageNum].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPageNum].W / oViewer.file.pages[nPageNum].W / oViewer.zoom; - - let aScaledCoords = [aRect[0] * nScaleX, aRect[1] * nScaleY, aRect[2] * nScaleX, aRect[3] * nScaleY]; switch (nAnnotType) { case AscPDF.ANNOTATIONS_TYPES.Text: oAnnot = new AscPDF.CAnnotationText(sName, nPageNum, aRect, oPdfDoc); @@ -5916,13 +6161,6 @@ var CPresentation = CPresentation || function(){}; oAnnot.SetDisplay(isHidden ? window["AscPDF"].Api.Objects.display["hidden"] : window["AscPDF"].Api.Objects.display["visible"]); oAnnot.SetContents(sText); - oAnnot._pagePos = { - x: aScaledCoords[0], - y: aScaledCoords[1], - w: (aScaledCoords[2] - aScaledCoords[0]), - h: (aScaledCoords[3] - aScaledCoords[1]) - }; - return oAnnot; } @@ -6027,19 +6265,21 @@ var CPresentation = CPresentation || function(){}; /** * Speical class for handling the composite input in the pdf-editor * @param textController + * @param pdfDocument * @constructor */ - function CPDFCompositeInput(textController) { + function CPDFCompositeInput(textController, pdfDocument) { this.textController = textController; this.runInput = new AscWord.RunCompositeInput(false); - this.pointCount = 0; this.contentState = textController.GetDocContent().GetSelectionState(); + this.pdfDocument = pdfDocument; + this.startPoint = -1; } CPDFCompositeInput.begin = function(pdfDocument) { if (!pdfDocument) return null; - if (pdfDocument.IsNeedSkipHistory() || pdfDocument.Viewer.IsOpenFormsInProgress || pdfDocument.Viewer.IsOpenAnnotsInProgress || pdfDocument.isUndoRedoInProgress) + if (pdfDocument.IsNeedSkipHistory() || pdfDocument.Viewer.IsOpenFormsInProgress || pdfDocument.Viewer.IsOpenAnnotsInProgress || AscCommon.History.UndoRedoInProgress) return null let textController = pdfDocument.getTextController(); @@ -6048,7 +6288,7 @@ var CPresentation = CPresentation || function(){}; if (textController.IsDrawing() && Asc.editor.isRestrictionView()) return null; - let compositeInput = new CPDFCompositeInput(textController); + let compositeInput = new CPDFCompositeInput(textController, pdfDocument); compositeInput.createNewHistoryPoint(AscDFH.historydescription_Document_CompositeInput); textController.beforeCompositeInput(); let docContent = textController.GetDocContent(); @@ -6058,6 +6298,10 @@ var CPresentation = CPresentation || function(){}; return null; } compositeInput.runInput.begin(run); + + compositeInput.startPoint = pdfDocument.GetHistory().Index; + + this.inUse = true; return compositeInput; }; CPDFCompositeInput.prototype.end = function() { @@ -6065,25 +6309,35 @@ var CPresentation = CPresentation || function(){}; this.runInput.end(); this.runInput = null; - this.undoAll(); + if (this.canSquashChanges()) { + this.undoAll(); + + this.textController.GetDocContent().SetSelectionState(this.contentState); + + this.pdfDocument.DoAction(function() { + this.textController.EnterText(codePoints); + }, AscDFH.historydescription_Document_AddLetter, this); + } - this.textController.GetDocContent().SetSelectionState(this.contentState); - this.textController.EnterText(codePoints); + this.inUse = false; }; CPDFCompositeInput.prototype.add = function(codePoint) { - this.createNewHistoryPoint(); - this.runInput.add(codePoint); - this.textController.SetNeedRecalc(true); + this.doAction(function() { + this.runInput.add(codePoint); + this.textController.SetNeedRecalc(true); + }, AscDFH.historydescription_Document_CompositeInputReplace); }; CPDFCompositeInput.prototype.remove = function(count) { - this.createNewHistoryPoint(); - this.runInput.remove(count); - this.textController.SetNeedRecalc(true); + this.doAction(function() { + this.runInput.remove(count); + this.textController.SetNeedRecalc(true); + }, AscDFH.historydescription_Document_CompositeInputReplace); }; CPDFCompositeInput.prototype.replace = function(codePoints) { - this.createNewHistoryPoint(); - this.runInput.replace(codePoints); - this.textController.SetNeedRecalc(true); + this.doAction(function() { + this.runInput.replace(codePoints); + this.textController.SetNeedRecalc(true); + }, AscDFH.historydescription_Document_CompositeInputReplace); }; CPDFCompositeInput.prototype.setPos = function(pos) { return this.runInput.setPos(pos); @@ -6095,19 +6349,40 @@ var CPresentation = CPresentation || function(){}; return this.runInput.getLength(); }; CPDFCompositeInput.prototype.createNewHistoryPoint = function(description) { - if (!AscCommon.History.IsOn()) - AscCommon.History.TurnOn(); + let localHistory = this.pdfDocument.GetHistory(); + if (!localHistory.IsOn()) + localHistory.TurnOn(); - AscCommon.History.Create_NewPoint(description); - AscCommon.History.SetSourceObjectsToPointPdf(this.textController); - this.pointCount++; + localHistory.Create_NewPoint(description); + localHistory.SetSourceObjectsToPointPdf(this.textController); }; CPDFCompositeInput.prototype.undoAll = function() { - while (this.pointCount > 0) { - AscCommon.History.Undo(); - --this.pointCount; - } + if (-1 === this.startPoint) + return; + + let localHistory = this.pdfDocument.GetHistory(); + while (localHistory.Index >= this.startPoint) + localHistory.Undo(); + + this.startPoint = -1; }; + CPDFCompositeInput.prototype.doAction = function(action, description) { + this.pdfDocument.DoAction(function() { + action.bind(this)(); + }, description, this); + }; + CPDFCompositeInput.prototype.checkState = function() {}; + CPDFCompositeInput.prototype.canSquashChanges = function() { + let localHistory = this.pdfDocument.GetHistory(); + return (!AscCommon.CollaborativeEditing.Is_Fast() || AscCommon.CollaborativeEditing.Is_SingleUser()) && localHistory.Index >= this.startPoint; + }; + CPDFDoc.prototype.getCompositeInput = function() { + if (!this.compositeInput) { + this.compositeInput = new AscWord.DocumentCompositeInput(this); + } + + return this.compositeInput; + }; /** * Converts global coords to page coords. diff --git a/pdf/src/drawings/chart.js b/pdf/src/drawings/chart.js index 67b061c234..a699c89f7f 100644 --- a/pdf/src/drawings/chart.js +++ b/pdf/src/drawings/chart.js @@ -89,28 +89,6 @@ CPdfChart.prototype.SelectAllText = function() { this.GetDocContent().SelectAll(); }; - /** - * Exit from this annot. - * @memberof CTextField - * @typeofeditors ["PDF"] - */ - CPdfChart.prototype.Blur = function() { - let oDoc = this.GetDocument(); - let oContent = this.GetDocContent(); - let oPara = oContent.GetElement(0); - - oPara.SetApplyToAll(true); - let sText = oPara.GetSelectedText(true, {NewLine: true}); - oPara.SetApplyToAll(false); - - if (this.GetContents() != sText) { - oDoc.CreateNewHistoryPoint(); - this.SetContents(sText); - oDoc.TurnOffHistory(); - } - - oDoc.GetDrawingDocument().TargetEnd(); - }; CPdfChart.prototype.onMouseUp = function(x, y, e) { let oViewer = Asc.editor.getDocumentRenderer(); @@ -150,7 +128,6 @@ false == this.IsInTextBox() && oContent.SetApplyToAll(false); this.SetNeedRecalc(true); - this.SetNeedUpdateRC(true); }; CPdfChart.prototype.SetAlign = function(nType) { let oContent = this.GetDocContent(); @@ -205,7 +182,6 @@ CPdfChart.prototype.IncreaseDecreaseFontSize = function(bIncrease) { this.GetDocContent().IncreaseDecreaseFontSize(bIncrease); this.SetNeedRecalc(true); - this.SetNeedUpdateRC(true); }; CPdfChart.prototype.SetSpacing = function(nSpacing) { this.SetParaTextPr(new AscCommonWord.ParaTextPr({Spacing : nSpacing})); @@ -325,9 +301,6 @@ ///// Overrides ///////////////////////////////////////////////////////////////////////////// - CPdfChart.prototype.Get_AbsolutePage = function() { - return this.GetPage(); - }; CPdfChart.prototype.getLogicDocument = function() { return this.GetDocument(); }; diff --git a/word/Math/.math-test/UnicodeManualTest.js b/pdf/src/drawings/cnxShape.js similarity index 70% rename from word/Math/.math-test/UnicodeManualTest.js rename to pdf/src/drawings/cnxShape.js index ae185d4795..ecb24f47ea 100644 --- a/word/Math/.math-test/UnicodeManualTest.js +++ b/pdf/src/drawings/cnxShape.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -29,23 +29,24 @@ * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode * */ -import "./node.js"; -import "../NamesOfLiterals.js"; -import "../UnicodeParser.js"; -import { createRequire } from "module"; -const parser = window.AscMath.CUnicodeConverter; -const require = createRequire(import.meta.url); -const fs = require("fs"); +"use strict"; -const storeData = (data, path) => { - try { - fs.writeFileSync(path, JSON.stringify(data, ",", 1)); - } catch (err) { - console.error(err); - } -}; -//todo _n C_k -const ast = parser(`\\sqrt(6&1+s)^2`, undefined, true); -console.log(JSON.stringify(ast, ",", 1)); -storeData(ast, "./output.json"); +(function(undefined){ + + + function CPdfConnectionShape() { + AscPDF.CPdfShape.call(this); + } + CPdfConnectionShape.prototype = Object.create(AscPDF.CPdfShape.prototype); + CPdfConnectionShape.prototype.constructor = CPdfConnectionShape; + Object.assign(CPdfConnectionShape.prototype, AscFormat.CConnectionShape.prototype); + + CPdfConnectionShape.prototype.copy = function (oPr) { + let copy = new CPdfConnectionShape(); + this.fillObject(copy, oPr); + return copy; + }; + + window['AscPDF'].CPdfConnectionShape = CPdfConnectionShape; +})(); diff --git a/pdf/src/drawings/drawingPrototype.js b/pdf/src/drawings/drawingPrototype.js index f65b8b4bca..d27aed75ba 100644 --- a/pdf/src/drawings/drawingPrototype.js +++ b/pdf/src/drawings/drawingPrototype.js @@ -36,8 +36,7 @@ * Class representing a pdf text shape. * @constructor */ - function CPdfDrawingPrototype() - { + function CPdfDrawingPrototype() { this._page = undefined; this._apIdx = undefined; // индекс объекта в файле @@ -67,18 +66,161 @@ CPdfDrawingPrototype.prototype.IsDrawing = function() { return true; }; + CPdfDrawingPrototype.prototype.IsPdfObject = function() { + return true; + }; + CPdfDrawingPrototype.prototype.OnContentChange = function() { + return this.SetNeedRecalc(true); + }; + CPdfDrawingPrototype.prototype.IsPdfDrawing = function() { + return true; + }; CPdfDrawingPrototype.prototype.IsSmartArt = function() { return false; }; CPdfDrawingPrototype.prototype.IsGraphicFrame = function() { return false; }; - - CPdfDrawingPrototype.prototype.IsUseInDocument = function() { - if (this.GetDocument().drawings.indexOf(this) == -1) + CPdfDrawingPrototype.prototype.IsUseInDocument = function() { + if (this.group && this.group.IsUseInDocument) + return this.group.IsUseInDocument(); + + let oDoc = this.GetDocument(); + if (!oDoc) { return false; + } - return true; + return (-1 !== oDoc.drawings.indexOf(this)); + }; + CPdfDrawingPrototype.prototype.OnBlur = function() { + AscCommon.History.ForbidUnionPoint(); + }; + CPdfDrawingPrototype.prototype.recalculateContent = function() { + let parentPrototype = Object.getPrototypeOf(Object.getPrototypeOf(this)); + let oRecalcData = null; + // Вызов родительского метода + if (parentPrototype && parentPrototype.recalculateContent && parentPrototype.recalculateContent != CPdfDrawingPrototype.prototype.recalculateContent) { + oRecalcData = parentPrototype.recalculateContent.call(this); + } + + return oRecalcData; + }; + CPdfDrawingPrototype.prototype.GetSelectionQuads = function() { + let oDoc = this.GetDocument(); + let oViewer = oDoc.Viewer; + let oFile = oViewer.file; + let oDrDoc = oDoc.GetDrawingDocument(); + let oContent = this.GetDocContent(); + let aInfo = []; + let nPage = this.GetPage(); + + if (!oContent || !oContent.IsSelectionUse()) { + return aInfo; + } + + let nStart = oContent.Selection.StartPos; + let nEnd = oContent.Selection.EndPos; + if (nStart > nEnd) [nStart, nEnd] = [nEnd, nStart]; + + let oInfo = { + page: nPage, + quads: [] + } + + for (let i = nStart; i <= nEnd; i++) { + let oPara = oContent.GetElement(i); + + let nStartInPara = oPara.Selection.StartPos; + let nEndInPara = oPara.Selection.EndPos; + if (nStartInPara > nEndInPara) [nStartInPara, nEndInPara] = [nEndInPara, nStartInPara]; + + let nStartLine = oPara.Pages[0].StartLine; + let nEndLine = oPara.Pages[0].EndLine; + + if (nStartInPara > oPara.Lines[nEndLine].Get_EndPos() || nEndInPara < oPara.Lines[nStartLine].Get_StartPos()) { + return aInfo; + } + else { + nStartInPara = Math.max(nStartInPara, oPara.Lines[nStartLine].Get_StartPos()); + nEndInPara = Math.min(nEndInPara, ( nEndLine !== oPara.Lines.length - 1 ? oPara.Lines[nEndLine].Get_EndPos() : oPara.Content.length - 1 )); + } + + let oDrawSelectionState = new AscWord.ParagraphDrawSelectionState(oPara); + oDrawSelectionState.resetPage(0); + + for (let iLine = nStartLine; iLine <= nEndLine; ++iLine) { + let oLine = oPara.Lines[iLine]; + oDrawSelectionState.resetLine(iLine); + + for (let iRange = 0, rangeCount = oLine.Ranges.length; iRange < rangeCount; ++iRange) { + let oRange = oLine.Ranges[iRange]; + + let nRangeStart = oRange.StartPos; + let nRangeEnd = oRange.EndPos; + + // Если пересечение пустое с селектом, тогда пропускаем данный отрезок + if (nStartInPara > nRangeEnd || nEndInPara < nRangeStart) + continue; + + oDrawSelectionState.beginRange(iRange); + + for (let pos = nRangeStart; pos <= nRangeEnd; ++pos) { + oPara.Content[pos].drawSelectionInRange(iLine, iRange, oDrawSelectionState); + } + + oDrawSelectionState.endRange(); + + let aAnchored = oDrawSelectionState.getAnchoredObjects(); + for (let index = 0; index < aAnchored.length; ++index) { + aAnchored[index].Draw_Selection(); + } + + let aSelectionRanges = oDrawSelectionState.getSelectionRanges(); + for (let iSel = 0; iSel < aSelectionRanges.length; ++iSel) { + let x = aSelectionRanges[iSel].x; + let w = aSelectionRanges[iSel].w; + let y = aSelectionRanges[iSel].y; + let h = aSelectionRanges[iSel].h; + + if (oPara.CalculatedFrame) { + let Frame_X_min = oPara.CalculatedFrame.L2; + let Frame_Y_min = oPara.CalculatedFrame.T2; + let Frame_X_max = oPara.CalculatedFrame.L2 + oPara.CalculatedFrame.W2; + let Frame_Y_max = oPara.CalculatedFrame.T2 + oPara.CalculatedFrame.H2; + + x = Math.min(Math.max(Frame_X_min, x), Frame_X_max); + y = Math.min(Math.max(Frame_Y_min, y), Frame_Y_max); + w = Math.min(w, Frame_X_max - x); + h = Math.min(h, Frame_Y_max - y); + } + + let isTextMatrixUse = ((null != oDrDoc.TextMatrix) && !global_MatrixTransformer.IsIdentity(oDrDoc.TextMatrix)); + if (isTextMatrixUse) { + let oPt1 = oDrDoc.TextMatrix.TransformPoint(x, y); // левый верхний + let oPt2 = oDrDoc.TextMatrix.TransformPoint(x + w, y); // правый верхний + let oPt3 = oDrDoc.TextMatrix.TransformPoint(x + w, y + h); // правый нижний + let oPt4 = oDrDoc.TextMatrix.TransformPoint(x, y + h); // левый нижний + + let nKoeff = oViewer.getDrawingPageScale(nPage) * g_dKoef_pix_to_mm; + + oInfo.quads.push([oPt1.x / nKoeff, oPt1.y / nKoeff, oPt2.x / nKoeff, oPt2.y / nKoeff, oPt4.x / nKoeff, oPt4.y / nKoeff, oPt3.x / nKoeff, oPt3.y / nKoeff]); + } + + } + } + } + } + + if (oInfo.quads.length != 0) { + aInfo.push(oInfo); + } + + return aInfo; + }; + CPdfDrawingPrototype.prototype.GetOrigRect = function() { + let oXfrm = this.getXfrm(); + + return [oXfrm.offX * g_dKoef_mm_to_pt, oXfrm.offY * g_dKoef_mm_to_pt, (oXfrm.offX + this.extX) * g_dKoef_mm_to_pt, (oXfrm.offY + this.extY) * g_dKoef_mm_to_pt]; }; CPdfDrawingPrototype.prototype.SetFromScan = function(bFromScan) { this._isFromScan = bFromScan; @@ -87,8 +229,29 @@ return this._isFromScan; }; CPdfDrawingPrototype.prototype.SetDocument = function(oDoc) { + if (this._doc == oDoc) { + return; + } + + AscCommon.History.Add(new CChangesPDFDocumentSetDocument(this, this._doc, oDoc)); this._doc = oDoc; }; + CPdfDrawingPrototype.prototype.OnContentChange = function() { + if (this.group) { + this.group.SetNeedRecalc(true); + } + else { + this.SetNeedRecalc(true); + } + }; + CPdfDrawingPrototype.prototype.OnTextPrChange = function() { + if (this.group) { + this.group.SetNeedRecalc(true); + } + else { + this.SetNeedRecalc(true); + } + }; CPdfDrawingPrototype.prototype.GetDocument = function() { if (this.group) return this.group.getLogicDocument(); @@ -100,21 +263,22 @@ if (nPage == nCurPage) return; + let oViewer = editor.getDocumentRenderer(); + let oDoc = this.GetDocument(); + + AscCommon.History.Add(new CChangesPDFDrawingPage(this, nCurPage, nPage)); + // initial set if (nCurPage == undefined) { this._page = nPage; return; } - - let oViewer = editor.getDocumentRenderer(); - let oDoc = this.GetDocument(); let nCurIdxOnPage = oViewer.pagesInfo.pages[nCurPage] && oViewer.pagesInfo.pages[nCurPage].drawings ? oViewer.pagesInfo.pages[nCurPage].drawings.indexOf(this) : -1; if (oViewer.pagesInfo.pages[nPage]) { if (oDoc.drawings.indexOf(this) != -1) { if (nCurIdxOnPage != -1) { oViewer.pagesInfo.pages[nCurPage].drawings.splice(nCurIdxOnPage, 1); - oDoc.History.Add(new CChangesPDFDrawingPage(this, nCurPage, nPage)); } if (this.IsUseInDocument() && oViewer.pagesInfo.pages[nPage].drawings.indexOf(this) == -1) @@ -131,14 +295,20 @@ }; CPdfDrawingPrototype.prototype.GetPage = function() { if (this.group) - return this.group.Get_AbsolutePage(); + return this.group.GetPage(); return this._page; }; + CPdfDrawingPrototype.prototype.AddToRedraw = function() { let oViewer = Asc.editor.getDocumentRenderer(); let nPage = this.GetPage(); + if (this.group && this.group.IsAnnot()) { + this.group.AddToRedraw(); + return; + } + function setRedrawPageOnRepaint() { if (oViewer.pagesInfo.pages[nPage]) { oViewer.pagesInfo.pages[nPage].needRedrawDrawings = true; @@ -149,14 +319,6 @@ oViewer.paint(setRedrawPageOnRepaint); }; - CPdfDrawingPrototype.prototype.SetRot = function(dAngle) { - let oDoc = this.GetDocument(); - - oDoc.History.Add(new CChangesPDFDrawingRot(this, this.GetRot(), dAngle)); - - this.changeRot(dAngle); - this.SetNeedRecalc(true); - }; CPdfDrawingPrototype.prototype.GetRot = function() { return this.rot; }; @@ -170,6 +332,15 @@ this._needRecalc = false; } else { + if (this.group) { + if (!this.group.IsPdfObject || !this.group.IsPdfObject()) { + return; + } + + this.group.SetNeedRecalc(bRecalc, bSkipAddToRedraw); + return; + } + let oDoc = Asc.editor.getPDFDoc(); oDoc.ClearSearch(); @@ -183,6 +354,9 @@ } } }; + CPdfDrawingPrototype.prototype.addToRecalculate = function() { + this.SetNeedRecalc(true); + }; CPdfDrawingPrototype.prototype.GetAllFonts = function(fontMap) { fontMap = fontMap || {}; return fontMap; @@ -217,13 +391,9 @@ if (!doc || !content) return; - doc.CreateNewHistoryPoint({objects: [this]}); content.Remove(direction, true, false, false, isWord); this.SetNeedRecalc(true); content.RecalculateCurPos(); - - if (AscCommon.History.Is_LastPointEmpty()) - AscCommon.History.Remove_LastPoint(); }; CPdfDrawingPrototype.prototype.EnterText = function(value) { let doc = this.GetDocument(); @@ -231,10 +401,10 @@ if (!doc || !content) return false; - doc.CreateNewHistoryPoint({objects: [this]}); let result = content.EnterText(value); - this.SetNeedRecalc(true); content.RecalculateCurPos(); + + this.checkExtentsByDocContent && this.checkExtentsByDocContent(); return result; }; CPdfDrawingPrototype.prototype.CorrectEnterText = function(oldValue, newValue) { @@ -243,9 +413,7 @@ if (!doc || !content) return false; - doc.CreateNewHistoryPoint({objects: [this]}); let result = content.CorrectEnterText(oldValue, newValue, function(run, inRunPos, codePoint){return true;}); - this.SetNeedRecalc(true); content.RecalculateCurPos(); return result; }; @@ -255,25 +423,17 @@ CPdfDrawingPrototype.prototype.beforeCompositeInput = function() { let docContent = this.GetDocContent(); if (docContent.IsSelectionUse()) { - docContent.Remove(1, true, false, false); + docContent.Remove(1, true, false, true); docContent.RemoveSelection(); } }; - ///////////////////////////// - /// saving - //////////////////////////// - - CPdfDrawingPrototype.prototype.WriteToBinary = function(memory) { - this.toXml(memory, ''); - }; - ////////////////////////////////////////////////////////////////////////////// ///// Overrides ///////////////////////////////////////////////////////////////////////////// - CPdfDrawingPrototype.prototype.Get_AbsolutePage = function() { - return this.GetPage(); + CPdfDrawingPrototype.prototype.Get_AbsolutePage = function(nCurPage) { + return this.GetPage() != undefined ? this.GetPage() : nCurPage; }; CPdfDrawingPrototype.prototype.getLogicDocument = function() { return this.GetDocument(); diff --git a/pdf/src/drawings/graphicFrame.js b/pdf/src/drawings/graphicFrame.js index ccfe51a8cc..833ae911e1 100644 --- a/pdf/src/drawings/graphicFrame.js +++ b/pdf/src/drawings/graphicFrame.js @@ -82,6 +82,15 @@ ret._page = this._page; return ret; }; + CPdfGraphicFrame.prototype.handleUpdateRot = function() { + this.SetNeedRecalc(true); + }; + CPdfGraphicFrame.prototype.Get_PageContentStartPos = function(nPage) { + return this.GetDocument().Get_PageLimits(nPage); + }; + CPdfGraphicFrame.prototype.Get_PageContentStartPos2 = function(nPage) { + return this.Get_PageContentStartPos(nPage); + }; CPdfGraphicFrame.prototype.GetDocContent = function() { return this.getDocContent(); }; @@ -96,10 +105,8 @@ * @typeofeditors ["PDF"] */ CPdfGraphicFrame.prototype.Remove = function(nDirection, isCtrlKey) { - let oDoc = this.GetDocument(); - oDoc.CreateNewHistoryPoint({objects: [this]}); - let oContent = this.GetDocContent(); + if (oContent) { oContent.Remove(nDirection, true, false, false, isCtrlKey); } @@ -153,12 +160,41 @@ this.updateTransformMatrix(); this.SetNeedRecalc(false); }; + CPdfGraphicFrame.prototype.MoveCursorToCell = function(bNext) { + this.graphicObject.MoveCursorToCell(bNext); + }; + CPdfGraphicFrame.prototype.checkExtentsByDocContent = function() { + this.Recalculate(); + let oXfrm = this.getXfrm(); + if (Math.abs(oXfrm.extY - this.extY) > 0.001) { + let nRot = this.GetRot(); + let oldExtX = oXfrm.extX; + let oldExtY = oXfrm.extY; + let oldOffX = oXfrm.offX; + let oldOffY = oXfrm.offY; + + let deltaX = -(oldExtX - this.extX) / 2; + let deltaY = -(oldExtY - this.extY) / 2; + + let _sin = Math.sin(nRot); + let _cos = Math.cos(nRot); + + let newOffX = oldOffX + (deltaX*_cos - deltaY*_sin) - deltaX; + let newOffY = oldOffY + (deltaX*_sin + deltaY*_cos) - deltaY; + + oXfrm.setOffX(newOffX); + oXfrm.setOffY(newOffY); + + oXfrm.setExtX(this.extX); + oXfrm.setExtY(this.extY); + } + }; CPdfGraphicFrame.prototype.SetNeedRecalc = function(bRecalc, bSkipAddToRedraw) { if (bRecalc == false) { this._needRecalc = false; } else { - this.GetDocument().SetNeedUpdateTarget(true); + // this.GetDocument().SetNeedUpdateTarget(true); this._needRecalc = true; this.recalcInfo.recalculateTable = true; @@ -372,7 +408,7 @@ } else { graphicObject.RecalculateCurPos(); oDrDoc.UpdateTargetTransform(this.transform); - oDrDoc.TargetShow(); + oDrDoc.TargetStart(true); } } else { oDrDoc.UpdateTargetTransform(null); diff --git a/pdf/src/drawings/image.js b/pdf/src/drawings/image.js index 741b04481b..99654f6beb 100644 --- a/pdf/src/drawings/image.js +++ b/pdf/src/drawings/image.js @@ -48,7 +48,9 @@ CPdfImage.prototype.IsImage = function() { return true; }; - + CPdfImage.prototype.copy = function () { + return this.convertToPdf(); + }; CPdfImage.prototype.IsInTextBox = function() { return false; }; diff --git a/pdf/src/drawings/shape.js b/pdf/src/drawings/shape.js index a4cf1dac8c..52b2b1d24b 100644 --- a/pdf/src/drawings/shape.js +++ b/pdf/src/drawings/shape.js @@ -36,15 +36,14 @@ * Class representing a pdf text shape. * @constructor */ - function CPdfShape() - { + function CPdfShape() { AscFormat.CShape.call(this); } CPdfShape.prototype.constructor = CPdfShape; CPdfShape.prototype = Object.create(AscFormat.CShape.prototype); Object.assign(CPdfShape.prototype, AscPDF.PdfDrawingPrototype.prototype); - + CPdfShape.prototype.IsTextShape = function() { return true; }; @@ -64,19 +63,52 @@ oContent.SetApplyToAll(false); } }; + CPdfShape.prototype.canRotate = function () { + if (this.cropObject) { + return false; + } + + if (this.signatureLine) { + return false; + } + + if (!this.canEdit()) { + return false; + } + + if (this.group && this.group.IsAnnot()) { + return false; + } + + return this.getNoRot() === false; + }; CPdfShape.prototype.Recalculate = function() { if (this.IsNeedRecalc() == false) return; - this.recalcGeometry(); - this.recalculateContent(); this.recalculateTransform(); this.updateTransformMatrix(); - this.checkExtentsByDocContent(); this.recalculate(); this.recalculateShdw(); this.SetNeedRecalc(false); }; + CPdfShape.prototype.recalculateBounds = function() { + let boundsChecker = new AscFormat.CSlideBoundsChecker(); + + // boundsChecker.CheckLineWidth(this); + boundsChecker.DO_NOT_DRAW_ANIM_LABEL = true; + this.draw(boundsChecker); + boundsChecker.CorrectBounds(); + + this.bounds.x = boundsChecker.Bounds.min_x; + this.bounds.y = boundsChecker.Bounds.min_y; + this.bounds.l = boundsChecker.Bounds.min_x; + this.bounds.t = boundsChecker.Bounds.min_y; + this.bounds.r = boundsChecker.Bounds.max_x; + this.bounds.b = boundsChecker.Bounds.max_y; + this.bounds.w = boundsChecker.Bounds.max_x - boundsChecker.Bounds.min_x; + this.bounds.h = boundsChecker.Bounds.max_y - boundsChecker.Bounds.min_y; + }; CPdfShape.prototype.onMouseDown = function(x, y, e) { let oDoc = this.GetDocument(); let oViewer = oDoc.Viewer; @@ -150,35 +182,40 @@ oContent.RecalculateCurPos(); } }; - CPdfShape.prototype.GetAllFonts = function(fontMap) { - let oContent = this.GetDocContent(); - - fontMap = fontMap || {}; - - if (!oContent) - return fontMap; - - let oPara; - for (let nPara = 0, nCount = oContent.GetElementsCount(); nPara < nCount; nPara++) { - oPara = oContent.GetElement(nPara); - oPara.Get_CompiledPr().TextPr.Document_Get_AllFontNames(fontMap); - - let oRun; - for (let nRun = 0, nRunCount = oPara.GetElementsCount(); nRun < nRunCount; nRun++) { - oRun = oPara.GetElement(nRun); - oRun.Get_CompiledTextPr().Document_Get_AllFontNames(fontMap); - } - } - - delete fontMap["+mj-lt"]; - delete fontMap["+mn-lt"]; - delete fontMap["+mj-ea"]; - delete fontMap["+mn-ea"]; - delete fontMap["+mj-cs"]; - delete fontMap["+mn-cs"]; - - return fontMap; - }; + CPdfShape.prototype.GetAllFonts = function(fontMap) { + fontMap = fontMap || {}; + + let docContent = this.GetDocContent(); + if (!docContent) + return fontMap; + + for (let i = 0, count = docContent.GetElementsCount(); i < count; ++i) { + let para = docContent.GetElement(i); + if (!para || !para.IsParagraph()) + continue; + + para.Get_CompiledPr2(false).TextPr.Document_Get_AllFontNames(fontMap); + + if (para.Pr.Bullet) + para.Pr.Bullet.Get_AllFontNames(fontMap); + + if (para.Pr.DefaultRunPr) + para.Pr.DefaultRunPr.Document_Get_AllFontNames(fontMap); + + para.CheckRunContent(function(run) { + run.Get_CompiledPr(false).Document_Get_AllFontNames(fontMap); + }); + } + + delete fontMap["+mj-lt"]; + delete fontMap["+mn-lt"]; + delete fontMap["+mj-ea"]; + delete fontMap["+mn-ea"]; + delete fontMap["+mj-cs"]; + delete fontMap["+mn-cs"]; + + return fontMap; + }; CPdfShape.prototype.hitToAdjustment = function (x, y) { if (!AscFormat.canSelectDrawing(this)) { @@ -277,15 +314,13 @@ } content.RecalculateCurPos(); - drawing_document.TargetStart(); - drawing_document.TargetShow(); + drawing_document.TargetStart(true); } } } else { content.RecalculateCurPos(); - drawing_document.TargetStart(); - drawing_document.TargetShow(); + drawing_document.TargetStart(true); } } else { drawing_document.UpdateTargetTransform(new AscCommon.CMatrix()); @@ -323,6 +358,11 @@ this.compiledStyles = []; this.lockType = AscCommon.c_oAscLockTypes.kLockTypeNone; }; + CPdfShape.prototype.copy = function (oPr) { + let copy = new CPdfShape(); + this.fillObject(copy, oPr); + return copy; + }; window["AscPDF"].CPdfShape = CPdfShape; })(); diff --git a/pdf/src/drawings/smartArt.js b/pdf/src/drawings/smartArt.js index ec54c405bf..24b4d3b9eb 100644 --- a/pdf/src/drawings/smartArt.js +++ b/pdf/src/drawings/smartArt.js @@ -98,28 +98,6 @@ CPdfSmartArt.prototype.SelectAllText = function() { this.GetDocContent().SelectAll(); }; - /** - * Exit from this annot. - * @memberof CTextField - * @typeofeditors ["PDF"] - */ - CPdfSmartArt.prototype.Blur = function() { - let oDoc = this.GetDocument(); - let oContent = this.GetDocContent(); - let oPara = oContent.GetElement(0); - - oPara.SetApplyToAll(true); - let sText = oPara.GetSelectedText(true, {NewLine: true}); - oPara.SetApplyToAll(false); - - if (this.GetContents() != sText) { - oDoc.CreateNewHistoryPoint(); - this.SetContents(sText); - oDoc.TurnOffHistory(); - } - - oDoc.GetDrawingDocument().TargetEnd(); - }; CPdfSmartArt.prototype.onMouseUp = function(x, y, e) { let oViewer = Asc.editor.getDocumentRenderer(); @@ -359,15 +337,13 @@ } content.RecalculateCurPos(); - drawing_document.TargetStart(); - drawing_document.TargetShow(); + drawing_document.TargetStart(true); } } } else { content.RecalculateCurPos(); - drawing_document.TargetStart(); - drawing_document.TargetShow(); + drawing_document.TargetStart(true); } } else { drawing_document.UpdateTargetTransform(new AscCommon.CMatrix()); diff --git a/pdf/src/engine/drawingfile.js b/pdf/src/engine/drawingfile.js index 8fce4e4420..1d506100a2 100644 --- a/pdf/src/engine/drawingfile.js +++ b/pdf/src/engine/drawingfile.js @@ -48,7 +48,7 @@ null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFu if(!isDataURI(wasmBinaryFile))wasmBinaryFile=locateFile(wasmBinaryFile);function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(file);throw"both async and sync fetching of the wasm failed";}function getBinaryPromise2(binaryFile){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER))if(typeof fetch=="function")return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"])throw"failed to load wasm binary file at '"+ binaryFile+"'";return response["arrayBuffer"]()}).catch(function(){return getBinarySync(binaryFile)});return Promise.resolve().then(function(){return getBinarySync(binaryFile)})}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(function(binary){return WebAssembly.instantiate(binary,imports)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(binary, binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(binaryFile)&&typeof fetch=="function")return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(binaryFile,imports,callback)})});return instantiateArrayBuffer(binaryFile, -imports,callback)}function createWasm(){var info={"a":wasmImports};function receiveInstance(instance,module){wasmExports=instance.exports;wasmMemory=wasmExports["eb"];updateMemoryViews();wasmTable=wasmExports["gb"];addOnInit(wasmExports["fb"]);removeRunDependency("wasm-instantiate");return wasmExports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}if(Module["instantiateWasm"])try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+ +imports,callback)}function createWasm(){var info={"a":wasmImports};function receiveInstance(instance,module){wasmExports=instance.exports;wasmMemory=wasmExports["ib"];updateMemoryViews();wasmTable=wasmExports["kb"];addOnInit(wasmExports["jb"]);removeRunDependency("wasm-instantiate");return wasmExports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}if(Module["instantiateWasm"])try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+ e);return false}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult);return{}}var tempDouble;function js_get_stream_id(data,status){return self.AscViewer.CheckStreamId(data,status)}function js_free_id(data){self.AscViewer.Free(data);return 1}function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}var callRuntimeCallbacks=function(callbacks){while(callbacks.length>0)callbacks.shift()(Module)};var noExitRuntime= Module["noExitRuntime"]||true;var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;var UTF8ArrayToString=function(heapOrArray,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder)return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr));var str="";while(idx>10,56320|ch&1023)}}return str};var UTF8ToString=function(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""};var ___assert_fail=function(condition,filename,line,func){abort("Assertion failed: "+ @@ -87,39 +87,41 @@ date2.getDate());return compare}function getFirstWeekStartDate(janFourth){switch 2)},"%n":function(){return"\n"},"%p":function(date){if(date.tm_hour>=0&&date.tm_hour<12)return"AM";return"PM"},"%S":function(date){return leadingNulls(date.tm_sec,2)},"%t":function(){return"\t"},"%u":function(date){return date.tm_wday||7},"%U":function(date){var days=date.tm_yday+7-date.tm_wday;return leadingNulls(Math.floor(days/7),2)},"%V":function(date){var val=Math.floor((date.tm_yday+7-(date.tm_wday+6)%7)/7);if((date.tm_wday+371-date.tm_yday-2)%7<=2)val++;if(!val){val=52;var dec31=(date.tm_wday+ 7-date.tm_yday-1)%7;if(dec31==4||dec31==5&&isLeapYear(date.tm_year%400-1))val++}else if(val==53){var jan1=(date.tm_wday+371-date.tm_yday)%7;if(jan1!=4&&(jan1!=3||!isLeapYear(date.tm_year)))val=1}return leadingNulls(val,2)},"%w":function(date){return date.tm_wday},"%W":function(date){var days=date.tm_yday+7-(date.tm_wday+6)%7;return leadingNulls(Math.floor(days/7),2)},"%y":function(date){return(date.tm_year+1900).toString().substring(2)},"%Y":function(date){return date.tm_year+1900},"%z":function(date){var off= date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)},"%Z":function(date){return date.tm_zone},"%%":function(){return"%"}};pattern=pattern.replace(/%%/g,"\x00\x00");for(var rule in EXPANSION_RULES_2)if(pattern.includes(rule))pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date));pattern=pattern.replace(/\0\0/g,"%");var bytes=intArrayFromString(pattern,false);if(bytes.length>maxsize)return 0;writeArrayToMemory(bytes, -s);return bytes.length-1};var _strftime_l=function(s,maxsize,format,tm,loc){return _strftime(s,maxsize,format,tm)};var wasmTableMirror=[];var wasmTable;var getWasmTableEntry=function(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func};var wasmImports={i:___assert_fail,q:___cxa_begin_catch,w:___cxa_end_catch,a:___cxa_find_matching_catch_2,h:___cxa_find_matching_catch_3, -L:___cxa_rethrow,A:___cxa_throw,cb:___cxa_uncaught_exceptions,e:___resumeException,ba:___syscall_fcntl64,xa:___syscall_fstat64,ta:___syscall_getcwd,pa:___syscall_getdents64,Aa:___syscall_ioctl,ua:___syscall_lstat64,qa:___syscall_mkdirat,va:___syscall_newfstatat,Z:___syscall_openat,Y:___syscall_readlinkat,W:___syscall_rmdir,wa:___syscall_stat64,X:___syscall_unlinkat,na:___syscall_utimensat,ya:__emscripten_get_now_is_monotonic,db:__emscripten_throw_longjmp,_a:__mktime_js,Ya:__mmap_js,Za:__munmap_js, -oa:__tzset_js,u:_abort,$:_emscripten_date_now,_:_emscripten_get_now,za:_emscripten_memcpy_js,ma:_emscripten_resize_heap,ra:_environ_get,sa:_environ_sizes_get,B:_exit,J:_fd_close,aa:_fd_read,$a:_fd_seek,Q:_fd_write,t:invoke_di,M:invoke_dii,D:invoke_diii,Da:invoke_fif,la:invoke_fiii,s:invoke_i,c:invoke_ii,O:invoke_iidd,Ta:invoke_iidddddd,La:invoke_iiddiii,d:invoke_iii,ga:invoke_iiiddddd,Na:invoke_iiiddiii,N:invoke_iiiff,Oa:invoke_iiiffff,j:invoke_iiii,k:invoke_iiiii,Fa:invoke_iiiiid,Va:invoke_iiiiifi, -p:invoke_iiiiii,S:invoke_iiiiiiddiiiii,m:invoke_iiiiiii,y:invoke_iiiiiiii,C:invoke_iiiiiiiii,G:invoke_iiiiiiiiii,T:invoke_iiiiiiiiiii,E:invoke_iiiiiiiiiiii,ia:invoke_iiiiiiiiiiiiiiiiiiiiiiiiiii,ab:invoke_ji,Xa:invoke_jiiii,n:invoke_v,Ga:invoke_vdii,b:invoke_vi,I:invoke_vid,U:invoke_vidd,ja:invoke_viddd,Sa:invoke_vidddddddd,Ua:invoke_viddi,ka:invoke_vidi,Pa:invoke_viffffi,g:invoke_vii,z:invoke_viid,Ka:invoke_viidddd,Ja:invoke_viiddddddi,Ba:invoke_viiddiiiii,Ea:invoke_viif,f:invoke_viii,Ha:invoke_viiid, -da:invoke_viiiddiiiii,fa:invoke_viiiddiiiiii,Ia:invoke_viiidi,Ma:invoke_viiidiiiddddd,l:invoke_viiii,K:invoke_viiiid,ca:invoke_viiiidii,o:invoke_viiiii,ea:invoke_viiiiid,ha:invoke_viiiiiff,r:invoke_viiiiii,x:invoke_viiiiiii,F:invoke_viiiiiiii,V:invoke_viiiiiiiii,H:invoke_viiiiiiiiii,R:invoke_viiiiiiiiiii,Ca:invoke_viiiiiiiiiiii,Wa:invoke_viiiiiiiiiiiiii,P:invoke_viiiiiiiiiiiiiii,Qa:js_free_id,Ra:js_get_stream_id,v:_llvm_eh_typeid_for,bb:_strftime_l};var wasmExports=createWasm();var ___wasm_call_ctors= -function(){return(___wasm_call_ctors=wasmExports["fb"])()};var ___cxa_free_exception=function(a0){return(___cxa_free_exception=wasmExports["__cxa_free_exception"])(a0)};var _malloc=Module["_malloc"]=function(a0){return(_malloc=Module["_malloc"]=wasmExports["hb"])(a0)};var _free=Module["_free"]=function(a0){return(_free=Module["_free"]=wasmExports["ib"])(a0)};var setTempRet0=function(a0){return(setTempRet0=wasmExports["jb"])(a0)};var ___errno_location=function(){return(___errno_location=wasmExports["kb"])()}; -var _InitializeFontsBin=Module["_InitializeFontsBin"]=function(a0,a1){return(_InitializeFontsBin=Module["_InitializeFontsBin"]=wasmExports["lb"])(a0,a1)};var _InitializeFontsBase64=Module["_InitializeFontsBase64"]=function(a0,a1){return(_InitializeFontsBase64=Module["_InitializeFontsBase64"]=wasmExports["mb"])(a0,a1)};var _InitializeFontsRanges=Module["_InitializeFontsRanges"]=function(a0){return(_InitializeFontsRanges=Module["_InitializeFontsRanges"]=wasmExports["nb"])(a0)};var _SetFontBinary=Module["_SetFontBinary"]= -function(a0,a1,a2){return(_SetFontBinary=Module["_SetFontBinary"]=wasmExports["ob"])(a0,a1,a2)};var _IsFontBinaryExist=Module["_IsFontBinaryExist"]=function(a0){return(_IsFontBinaryExist=Module["_IsFontBinaryExist"]=wasmExports["pb"])(a0)};var _GetType=Module["_GetType"]=function(a0,a1){return(_GetType=Module["_GetType"]=wasmExports["qb"])(a0,a1)};var _Open=Module["_Open"]=function(a0,a1,a2){return(_Open=Module["_Open"]=wasmExports["rb"])(a0,a1,a2)};var _GetErrorCode=Module["_GetErrorCode"]=function(a0){return(_GetErrorCode= -Module["_GetErrorCode"]=wasmExports["sb"])(a0)};var _Close=Module["_Close"]=function(a0){return(_Close=Module["_Close"]=wasmExports["tb"])(a0)};var _GetInfo=Module["_GetInfo"]=function(a0){return(_GetInfo=Module["_GetInfo"]=wasmExports["ub"])(a0)};var _GetPixmap=Module["_GetPixmap"]=function(a0,a1,a2,a3,a4){return(_GetPixmap=Module["_GetPixmap"]=wasmExports["vb"])(a0,a1,a2,a3,a4)};var _GetGlyphs=Module["_GetGlyphs"]=function(a0,a1){return(_GetGlyphs=Module["_GetGlyphs"]=wasmExports["wb"])(a0,a1)}; -var _GetLinks=Module["_GetLinks"]=function(a0,a1){return(_GetLinks=Module["_GetLinks"]=wasmExports["xb"])(a0,a1)};var _GetStructure=Module["_GetStructure"]=function(a0){return(_GetStructure=Module["_GetStructure"]=wasmExports["yb"])(a0)};var _GetInteractiveFormsInfo=Module["_GetInteractiveFormsInfo"]=function(a0){return(_GetInteractiveFormsInfo=Module["_GetInteractiveFormsInfo"]=wasmExports["zb"])(a0)};var _GetInteractiveFormsFonts=Module["_GetInteractiveFormsFonts"]=function(a0,a1){return(_GetInteractiveFormsFonts= -Module["_GetInteractiveFormsFonts"]=wasmExports["Ab"])(a0,a1)};var _GetInteractiveFormsAP=Module["_GetInteractiveFormsAP"]=function(a0,a1,a2,a3,a4,a5,a6,a7){return(_GetInteractiveFormsAP=Module["_GetInteractiveFormsAP"]=wasmExports["Bb"])(a0,a1,a2,a3,a4,a5,a6,a7)};var _GetButtonIcons=Module["_GetButtonIcons"]=function(a0,a1,a2,a3,a4,a5){return(_GetButtonIcons=Module["_GetButtonIcons"]=wasmExports["Cb"])(a0,a1,a2,a3,a4,a5)};var _GetAnnotationsInfo=Module["_GetAnnotationsInfo"]=function(a0,a1){return(_GetAnnotationsInfo= -Module["_GetAnnotationsInfo"]=wasmExports["Db"])(a0,a1)};var _GetAnnotationsAP=Module["_GetAnnotationsAP"]=function(a0,a1,a2,a3,a4,a5,a6){return(_GetAnnotationsAP=Module["_GetAnnotationsAP"]=wasmExports["Eb"])(a0,a1,a2,a3,a4,a5,a6)};var _GetFontBinary=Module["_GetFontBinary"]=function(a0,a1){return(_GetFontBinary=Module["_GetFontBinary"]=wasmExports["Fb"])(a0,a1)};var _DestroyTextInfo=Module["_DestroyTextInfo"]=function(a0){return(_DestroyTextInfo=Module["_DestroyTextInfo"]=wasmExports["Gb"])(a0)}; -var _IsNeedCMap=Module["_IsNeedCMap"]=function(a0){return(_IsNeedCMap=Module["_IsNeedCMap"]=wasmExports["Hb"])(a0)};var _SetCMapData=Module["_SetCMapData"]=function(a0,a1,a2){return(_SetCMapData=Module["_SetCMapData"]=wasmExports["Ib"])(a0,a1,a2)};var _ScanPage=Module["_ScanPage"]=function(a0,a1,a2){return(_ScanPage=Module["_ScanPage"]=wasmExports["Jb"])(a0,a1,a2)};var _GetImageBase64=Module["_GetImageBase64"]=function(a0,a1){return(_GetImageBase64=Module["_GetImageBase64"]=wasmExports["Kb"])(a0, -a1)};var _GetImageBase64Len=Module["_GetImageBase64Len"]=function(a0){return(_GetImageBase64Len=Module["_GetImageBase64Len"]=wasmExports["Lb"])(a0)};var _GetImageBase64Ptr=Module["_GetImageBase64Ptr"]=function(a0){return(_GetImageBase64Ptr=Module["_GetImageBase64Ptr"]=wasmExports["Mb"])(a0)};var _GetImageBase64Free=Module["_GetImageBase64Free"]=function(a0){return(_GetImageBase64Free=Module["_GetImageBase64Free"]=wasmExports["Nb"])(a0)};var _setThrew=function(a0,a1){return(_setThrew=wasmExports["Ob"])(a0, -a1)};var stackSave=function(){return(stackSave=wasmExports["Pb"])()};var stackRestore=function(a0){return(stackRestore=wasmExports["Qb"])(a0)};var ___cxa_decrement_exception_refcount=function(a0){return(___cxa_decrement_exception_refcount=wasmExports["Rb"])(a0)};var ___cxa_increment_exception_refcount=function(a0){return(___cxa_increment_exception_refcount=wasmExports["Sb"])(a0)};var ___cxa_can_catch=function(a0,a1,a2){return(___cxa_can_catch=wasmExports["Tb"])(a0,a1,a2)};var ___cxa_is_pointer_type= -function(a0){return(___cxa_is_pointer_type=wasmExports["Ub"])(a0)};var dynCall_ji=Module["dynCall_ji"]=function(a0,a1){return(dynCall_ji=Module["dynCall_ji"]=wasmExports["Vb"])(a0,a1)};var dynCall_jiiii=Module["dynCall_jiiii"]=function(a0,a1,a2,a3,a4){return(dynCall_jiiii=Module["dynCall_jiiii"]=wasmExports["Wb"])(a0,a1,a2,a3,a4)};var ___start_em_js=Module["___start_em_js"]=2729048;var ___stop_em_js=Module["___stop_em_js"]=2729217;function invoke_iii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1, -a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(index,a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3, -a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(index,a1){var sp=stackSave();try{getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(index){var sp=stackSave();try{getWasmTableEntry(index)()}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(index){var sp= -stackSave();try{return getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiifi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddi(index, -a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidi(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidddddd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vid(index, -a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidd(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidd(index,a1,a2, -a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddd(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiiiiiiiiiiiiiiii(index, -a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){stackRestore(sp);if(e!==e+0)throw e; -_setThrew(1,0)}}function invoke_iiiiiiddiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viffffi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiffff(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1, -a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiff(index,a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiff(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1, -a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiddiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiidiiiddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_dii(index, -a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiddiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!== -e+0)throw e;_setThrew(1,0)}}function invoke_iiiddddd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiddiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10, -a11){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_di(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viidddd(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiddddddi(index, +s);return bytes.length-1};var _strftime_l=function(s,maxsize,format,tm,loc){return _strftime(s,maxsize,format,tm)};var wasmTableMirror=[];var wasmTable;var getWasmTableEntry=function(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func};var wasmImports={i:___assert_fail,r:___cxa_begin_catch,w:___cxa_end_catch,a:___cxa_find_matching_catch_2,h:___cxa_find_matching_catch_3, +Q:___cxa_rethrow,A:___cxa_throw,db:___cxa_uncaught_exceptions,e:___resumeException,ca:___syscall_fcntl64,ya:___syscall_fstat64,ua:___syscall_getcwd,qa:___syscall_getdents64,Ba:___syscall_ioctl,va:___syscall_lstat64,ra:___syscall_mkdirat,wa:___syscall_newfstatat,_:___syscall_openat,Z:___syscall_readlinkat,pa:___syscall_rmdir,xa:___syscall_stat64,Y:___syscall_unlinkat,gb:___syscall_utimensat,za:__emscripten_get_now_is_monotonic,eb:__emscripten_throw_longjmp,$a:__mktime_js,Za:__mmap_js,_a:__munmap_js, +hb:__tzset_js,u:_abort,aa:_emscripten_date_now,$:_emscripten_get_now,Aa:_emscripten_memcpy_js,fb:_emscripten_resize_heap,sa:_environ_get,ta:_environ_sizes_get,B:_exit,P:_fd_close,ba:_fd_read,ab:_fd_seek,U:_fd_write,t:invoke_di,ma:invoke_didd,R:invoke_dii,G:invoke_diii,Sa:invoke_diiiiiiiii,Fa:invoke_fif,oa:invoke_fiii,s:invoke_i,Ta:invoke_idddiii,b:invoke_ii,z:invoke_iidd,D:invoke_iidddddd,La:invoke_iiddiii,d:invoke_iii,ia:invoke_iiiddddd,Na:invoke_iiiddiii,S:invoke_iiiff,Oa:invoke_iiiffff,j:invoke_iiii, +k:invoke_iiiii,ea:invoke_iiiiid,Wa:invoke_iiiiifi,q:invoke_iiiiii,V:invoke_iiiiiiddiiiii,m:invoke_iiiiiii,y:invoke_iiiiiiii,C:invoke_iiiiiiiii,J:invoke_iiiiiiiiidddd,L:invoke_iiiiiiiiii,W:invoke_iiiiiiiiiii,I:invoke_iiiiiiiiiiii,ka:invoke_iiiiiiiiiiiiiiiiiiiiiiiiiii,bb:invoke_ji,Ya:invoke_jiiii,n:invoke_v,Ha:invoke_vdii,c:invoke_vi,O:invoke_vid,X:invoke_vidd,la:invoke_viddd,Ua:invoke_vidddddddd,Va:invoke_viddi,na:invoke_vidi,Pa:invoke_viffffi,g:invoke_vii,E:invoke_viid,Ka:invoke_viidddd,Ja:invoke_viiddddddi, +Ca:invoke_viiddiiiii,Ga:invoke_viif,f:invoke_viii,Ia:invoke_viiid,F:invoke_viiiddiii,Da:invoke_viiiddiiiii,ha:invoke_viiiddiiiiii,ga:invoke_viiidi,Ma:invoke_viiidiiiddddd,l:invoke_viiii,H:invoke_viiiid,da:invoke_viiiidii,p:invoke_viiiii,fa:invoke_viiiiid,ja:invoke_viiiiiff,o:invoke_viiiiii,x:invoke_viiiiiii,K:invoke_viiiiiiii,M:invoke_viiiiiiiii,N:invoke_viiiiiiiiii,Ea:invoke_viiiiiiiiiiii,Xa:invoke_viiiiiiiiiiiiii,T:invoke_viiiiiiiiiiiiiii,Qa:js_free_id,Ra:js_get_stream_id,v:_llvm_eh_typeid_for, +cb:_strftime_l};var wasmExports=createWasm();var ___wasm_call_ctors=function(){return(___wasm_call_ctors=wasmExports["jb"])()};var ___cxa_free_exception=function(a0){return(___cxa_free_exception=wasmExports["__cxa_free_exception"])(a0)};var _malloc=Module["_malloc"]=function(a0){return(_malloc=Module["_malloc"]=wasmExports["lb"])(a0)};var _free=Module["_free"]=function(a0){return(_free=Module["_free"]=wasmExports["mb"])(a0)};var setTempRet0=function(a0){return(setTempRet0=wasmExports["nb"])(a0)}; +var ___errno_location=function(){return(___errno_location=wasmExports["ob"])()};var _InitializeFontsBin=Module["_InitializeFontsBin"]=function(a0,a1){return(_InitializeFontsBin=Module["_InitializeFontsBin"]=wasmExports["pb"])(a0,a1)};var _InitializeFontsBase64=Module["_InitializeFontsBase64"]=function(a0,a1){return(_InitializeFontsBase64=Module["_InitializeFontsBase64"]=wasmExports["qb"])(a0,a1)};var _InitializeFontsRanges=Module["_InitializeFontsRanges"]=function(a0){return(_InitializeFontsRanges= +Module["_InitializeFontsRanges"]=wasmExports["rb"])(a0)};var _SetFontBinary=Module["_SetFontBinary"]=function(a0,a1,a2){return(_SetFontBinary=Module["_SetFontBinary"]=wasmExports["sb"])(a0,a1,a2)};var _IsFontBinaryExist=Module["_IsFontBinaryExist"]=function(a0){return(_IsFontBinaryExist=Module["_IsFontBinaryExist"]=wasmExports["tb"])(a0)};var _GetType=Module["_GetType"]=function(a0,a1){return(_GetType=Module["_GetType"]=wasmExports["ub"])(a0,a1)};var _Open=Module["_Open"]=function(a0,a1,a2){return(_Open= +Module["_Open"]=wasmExports["vb"])(a0,a1,a2)};var _GetErrorCode=Module["_GetErrorCode"]=function(a0){return(_GetErrorCode=Module["_GetErrorCode"]=wasmExports["wb"])(a0)};var _Close=Module["_Close"]=function(a0){return(_Close=Module["_Close"]=wasmExports["xb"])(a0)};var _GetInfo=Module["_GetInfo"]=function(a0){return(_GetInfo=Module["_GetInfo"]=wasmExports["yb"])(a0)};var _GetPixmap=Module["_GetPixmap"]=function(a0,a1,a2,a3,a4){return(_GetPixmap=Module["_GetPixmap"]=wasmExports["zb"])(a0,a1,a2,a3, +a4)};var _GetGlyphs=Module["_GetGlyphs"]=function(a0,a1){return(_GetGlyphs=Module["_GetGlyphs"]=wasmExports["Ab"])(a0,a1)};var _GetLinks=Module["_GetLinks"]=function(a0,a1){return(_GetLinks=Module["_GetLinks"]=wasmExports["Bb"])(a0,a1)};var _GetStructure=Module["_GetStructure"]=function(a0){return(_GetStructure=Module["_GetStructure"]=wasmExports["Cb"])(a0)};var _GetInteractiveFormsInfo=Module["_GetInteractiveFormsInfo"]=function(a0){return(_GetInteractiveFormsInfo=Module["_GetInteractiveFormsInfo"]= +wasmExports["Db"])(a0)};var _GetInteractiveFormsFonts=Module["_GetInteractiveFormsFonts"]=function(a0,a1){return(_GetInteractiveFormsFonts=Module["_GetInteractiveFormsFonts"]=wasmExports["Eb"])(a0,a1)};var _GetInteractiveFormsAP=Module["_GetInteractiveFormsAP"]=function(a0,a1,a2,a3,a4,a5,a6,a7){return(_GetInteractiveFormsAP=Module["_GetInteractiveFormsAP"]=wasmExports["Fb"])(a0,a1,a2,a3,a4,a5,a6,a7)};var _GetButtonIcons=Module["_GetButtonIcons"]=function(a0,a1,a2,a3,a4,a5){return(_GetButtonIcons= +Module["_GetButtonIcons"]=wasmExports["Gb"])(a0,a1,a2,a3,a4,a5)};var _GetAnnotationsInfo=Module["_GetAnnotationsInfo"]=function(a0,a1){return(_GetAnnotationsInfo=Module["_GetAnnotationsInfo"]=wasmExports["Hb"])(a0,a1)};var _GetAnnotationsAP=Module["_GetAnnotationsAP"]=function(a0,a1,a2,a3,a4,a5,a6){return(_GetAnnotationsAP=Module["_GetAnnotationsAP"]=wasmExports["Ib"])(a0,a1,a2,a3,a4,a5,a6)};var _GetFontBinary=Module["_GetFontBinary"]=function(a0,a1){return(_GetFontBinary=Module["_GetFontBinary"]= +wasmExports["Jb"])(a0,a1)};var _DestroyTextInfo=Module["_DestroyTextInfo"]=function(a0){return(_DestroyTextInfo=Module["_DestroyTextInfo"]=wasmExports["Kb"])(a0)};var _IsNeedCMap=Module["_IsNeedCMap"]=function(a0){return(_IsNeedCMap=Module["_IsNeedCMap"]=wasmExports["Lb"])(a0)};var _SetCMapData=Module["_SetCMapData"]=function(a0,a1,a2){return(_SetCMapData=Module["_SetCMapData"]=wasmExports["Mb"])(a0,a1,a2)};var _ScanPage=Module["_ScanPage"]=function(a0,a1,a2){return(_ScanPage=Module["_ScanPage"]= +wasmExports["Nb"])(a0,a1,a2)};var _GetImageBase64=Module["_GetImageBase64"]=function(a0,a1){return(_GetImageBase64=Module["_GetImageBase64"]=wasmExports["Ob"])(a0,a1)};var _GetImageBase64Len=Module["_GetImageBase64Len"]=function(a0){return(_GetImageBase64Len=Module["_GetImageBase64Len"]=wasmExports["Pb"])(a0)};var _GetImageBase64Ptr=Module["_GetImageBase64Ptr"]=function(a0){return(_GetImageBase64Ptr=Module["_GetImageBase64Ptr"]=wasmExports["Qb"])(a0)};var _GetImageBase64Free=Module["_GetImageBase64Free"]= +function(a0){return(_GetImageBase64Free=Module["_GetImageBase64Free"]=wasmExports["Rb"])(a0)};var _setThrew=function(a0,a1){return(_setThrew=wasmExports["Sb"])(a0,a1)};var stackSave=function(){return(stackSave=wasmExports["Tb"])()};var stackRestore=function(a0){return(stackRestore=wasmExports["Ub"])(a0)};var ___cxa_decrement_exception_refcount=function(a0){return(___cxa_decrement_exception_refcount=wasmExports["Vb"])(a0)};var ___cxa_increment_exception_refcount=function(a0){return(___cxa_increment_exception_refcount= +wasmExports["Wb"])(a0)};var ___cxa_can_catch=function(a0,a1,a2){return(___cxa_can_catch=wasmExports["Xb"])(a0,a1,a2)};var ___cxa_is_pointer_type=function(a0){return(___cxa_is_pointer_type=wasmExports["Yb"])(a0)};var dynCall_ji=Module["dynCall_ji"]=function(a0,a1){return(dynCall_ji=Module["dynCall_ji"]=wasmExports["Zb"])(a0,a1)};var dynCall_jiiii=Module["dynCall_jiiii"]=function(a0,a1,a2,a3,a4){return(dynCall_jiiii=Module["dynCall_jiiii"]=wasmExports["_b"])(a0,a1,a2,a3,a4)};var ___start_em_js=Module["___start_em_js"]= +2744040;var ___stop_em_js=Module["___stop_em_js"]=2744209;function invoke_iii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp); +if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(index,a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e; +_setThrew(1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!== +e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(index,a1){var sp=stackSave();try{getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp); +if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6, +a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(index){var sp=stackSave();try{getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6, +a7,a8,a9){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(index){var sp=stackSave();try{return getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiifi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(index, +a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddi(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidi(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidddddd(index, +a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vid(index,a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidd(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiii(index,a1,a2, +a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidd(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1, +0)}}function invoke_idddiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_didd(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_diiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp); +if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiddiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiidddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddd(index,a1,a2,a3,a4){var sp= +stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiiiiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiii(index, +a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiddiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viffffi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1, +a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiff(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiffff(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiff(index,a1,a2,a3,a4){var sp=stackSave(); +try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiddiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiidiiiddddd(index,a1,a2,a3, +a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_dii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiddiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e; +_setThrew(1,0)}}function invoke_iiiddddd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiddiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp= +stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_di(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viidddd(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiddddddi(index, a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiid(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiidi(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1, 0)}}function invoke_viiid(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vdii(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiid(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiid(index, a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_diii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viif(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_fif(index,a1,a2){var sp= @@ -128,67 +130,70 @@ if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiidii(index,a1,a2,a3,a4,a5 a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15)}catch(e){stackRestore(sp);if(e!==e+ 0)throw e;_setThrew(1,0)}}function invoke_ji(index,a1){var sp=stackSave();try{return dynCall_ji(index,a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return dynCall_jiiii(index,a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0)return;preRun(); if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else doRun()}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0)Module["preInit"].pop()()}run(); -self.drawingFile=null;function CBinaryReader(data,start,size){this.data=data;this.pos=start;this.limit=start+size}CBinaryReader.prototype.readByte=function(){var val=this.data[this.pos];this.pos+=1;return val};CBinaryReader.prototype.readInt=function(){var val=this.data[this.pos]|this.data[this.pos+1]<<8|this.data[this.pos+2]<<16|this.data[this.pos+3]<<24;this.pos+=4;return val};CBinaryReader.prototype.readDouble=function(){return this.readInt()/100};CBinaryReader.prototype.readDouble2=function(){return this.readInt()/ +function CBinaryReader(data,start,size){this.data=data;this.pos=start;this.limit=start+size}CBinaryReader.prototype.readByte=function(){var val=this.data[this.pos];this.pos+=1;return val};CBinaryReader.prototype.readInt=function(){var val=this.data[this.pos]|this.data[this.pos+1]<<8|this.data[this.pos+2]<<16|this.data[this.pos+3]<<24;this.pos+=4;return val};CBinaryReader.prototype.readDouble=function(){return this.readInt()/100};CBinaryReader.prototype.readDouble2=function(){return this.readInt()/ 1E4};CBinaryReader.prototype.readString=function(){var len=this.readInt();var val=String.prototype.fromUtf8(this.data,this.pos,len);this.pos+=len;return val};CBinaryReader.prototype.readData=function(){var len=this.readInt();var val=this.data.slice(this.pos,this.pos+len);this.pos+=len;return val};CBinaryReader.prototype.isValid=function(){return this.pos2147483647?value-4294967296:value;this.buffer[this.dataSize++]=val&255;this.buffer[this.dataSize++]=val>>>8&255;this.buffer[this.dataSize++]= val>>>16&255;this.buffer[this.dataSize++]=val>>>24&255};CBinaryWriter.prototype.writeString=function(value){var valueUtf8=value.toUtf8();this.checkAlloc(valueUtf8.length);this.buffer.set(valueUtf8,this.dataSize);this.dataSize+=valueUtf8.length};var UpdateFontsSource={Undefined:0,Page:1,Annotation:2,Forms:4};function CFile(){this.nativeFile=0;this.stream=-1;this.stream_size=0;this.type=-1;this.pages=[];this.info=null;this._isNeedPassword=false;this.fontPageIndex=-1;this.fontPageUpdateType=UpdateFontsSource.Undefined; -this.fontStreams={};this.scannedImages={}}CFile.prototype["loadFromData"]=function(arrayBuffer){var data=new Uint8Array(arrayBuffer);var _stream=Module["_malloc"](data.length);Module["HEAP8"].set(data,_stream);this.nativeFile=Module["_Open"](_stream,data.length,0);var error=Module["_GetErrorCode"](this.nativeFile);this.stream=_stream;this.stream_size=data.length;this.type=Module["_GetType"](_stream,data.length);self.drawingFile=this;if(!error)this.getInfo();this._isNeedPassword=4===error?true:false; -return error};CFile.prototype["loadFromDataWithPassword"]=function(password){if(0!=this.nativeFile)Module["_Close"](this.nativeFile);var passBuffer=password.toUtf8();var passPointer=Module["_malloc"](passBuffer.length);Module["HEAP8"].set(passBuffer,passPointer);this.nativeFile=Module["_Open"](this.stream,this.stream_size,passPointer);Module["_free"](passPointer);var error=Module["_GetErrorCode"](this.nativeFile);this.type=Module["_GetType"](this.stream,this.stream_size);self.drawingFile=this;if(!error)this.getInfo(); -this._isNeedPassword=4===error?true:false;return error};CFile.prototype["getFileAsBase64"]=function(){if(0>=this.stream)return"";return new Uint8Array(Module["HEAP8"].buffer,this.stream,this.stream_size)};CFile.prototype["isNeedPassword"]=function(){return this._isNeedPassword};CFile.prototype["isNeedCMap"]=function(){if(!this.nativeFile)return false;var isNeed=Module["_IsNeedCMap"](this.nativeFile);return isNeed===1?true:false};CFile.prototype["setCMap"]=function(memoryBuffer){if(!this.nativeFile)return; -var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["_SetCMapData"](this.nativeFile,pointer,memoryBuffer.length)};CFile.prototype["getInfo"]=function(){if(!this.nativeFile)return false;var _info=Module["_GetInfo"](this.nativeFile);if(_info==0)return false;var lenArray=new Int32Array(Module["HEAP8"].buffer,_info,4);if(lenArray==null)return false;var len=lenArray[0];len-=4;if(len<=0)return false;var buffer=new Uint8Array(Module["HEAP8"].buffer,_info+4,len); -var reader=new CBinaryReader(buffer,0,len);this.StartID=reader.readInt();var _pages=reader.readInt();for(var i=0;i<_pages;i++){var rec={};rec["W"]=reader.readInt();rec["H"]=reader.readInt();rec["Dpi"]=reader.readInt();rec["Rotate"]=reader.readInt();rec["originIndex"]=i;rec.fonts=[];rec.fontsUpdateType=UpdateFontsSource.Undefined;rec.text=null;this.pages.push(rec)}var json_info=reader.readString();try{this.info=JSON.parse(json_info)}catch(err$0){}Module["_free"](_info);return this.pages.length>0}; -CFile.prototype["close"]=function(){Module["_Close"](this.nativeFile);this.nativeFile=0;this.pages=[];this.info=null;this.StartID=null;if(this.stream>0)Module["_free"](this.stream);this.stream=-1;self.drawingFile=null};CFile.prototype["getPages"]=function(){return this.pages};CFile.prototype["openForms"]=function(){};CFile.prototype["getDocumentInfo"]=function(){return this.info};CFile.prototype["getStartID"]=function(){return this.StartID};function getOriginPage(pages,originIndex){for(var i=0;i< -pages.length;++i)if(pages[i]["originIndex"]==originIndex)return pages[i];return null}CFile.prototype["getPagePixmap"]=function(pageIndex,width,height,backgroundColor){var page=getOriginPage(this.pages,pageIndex);if(!page||page.fonts.length>0)return null;this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Page);var retValue=Module["_GetPixmap"](this.nativeFile,pageIndex,width,height,backgroundColor===undefined?16777215:backgroundColor);this.unlockPageNumForFontsLoader();if(page.fonts.length> -0){Module["_free"](retValue);retValue=null}return retValue};CFile.prototype["getGlyphs"]=function(pageIndex){var page=getOriginPage(this.pages,pageIndex);if(!page||page.fonts.length>0)return null;this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Page);var retValue=Module["_GetGlyphs"](this.nativeFile,pageIndex);this.unlockPageNumForFontsLoader();if(page.fonts.length>0)retValue=null;if(null==retValue)return null;var lenArray=new Int32Array(Module["HEAP8"].buffer,retValue,5);var len=lenArray[0]; -len-=20;if(this.onUpdateStatistics)this.onUpdateStatistics(lenArray[1],lenArray[2],lenArray[3],lenArray[4]);if(len<=0)return[];var textCommandsSrc=new Uint8Array(Module["HEAP8"].buffer,retValue+20,len);var textCommands=new Uint8Array(len);textCommands.set(textCommandsSrc);textCommandsSrc=null;return textCommands};CFile.prototype["destroyTextInfo"]=function(){Module["_DestroyTextInfo"]()};CFile.prototype["getLinks"]=function(pageIndex){var res=[];var ext=Module["_GetLinks"](this.nativeFile,pageIndex); -if(ext==0)return res;var lenArray=new Int32Array(Module["HEAP8"].buffer,ext,4);if(lenArray==null)return res;var len=lenArray[0];len-=4;if(len<=0)return res;var buffer=new Uint8Array(Module["HEAP8"].buffer,ext+4,len);var reader=new CBinaryReader(buffer,0,len);while(reader.isValid()){var rec={};rec["link"]=reader.readString();rec["dest"]=reader.readDouble();rec["x"]=reader.readDouble();rec["y"]=reader.readDouble();rec["w"]=reader.readDouble();rec["h"]=reader.readDouble();res.push(rec)}Module["_free"](ext); -return res};function readAction(reader,rec){var SType=reader.readByte();rec["S"]=SType;if(SType==14)rec["JS"]=reader.readString();else if(SType==1){rec["page"]=reader.readInt();rec["kind"]=reader.readByte();switch(rec["kind"]){case 0:case 2:case 3:case 6:case 7:{var nFlag=reader.readByte();if(nFlag&1<<0)rec["left"]=reader.readDouble();if(nFlag&1<<1)rec["top"]=reader.readDouble();if(nFlag&1<<2)rec["zoom"]=reader.readDouble();break}case 4:{rec["left"]=reader.readDouble();rec["bottom"]=reader.readDouble(); -rec["right"]=reader.readDouble();rec["top"]=reader.readDouble();break}case 1:case 5:default:break}}else if(SType==10)rec["N"]=reader.readString();else if(SType==6)rec["URI"]=reader.readString();else if(SType==9){rec["H"]=reader.readByte();var m=reader.readInt();rec["T"]=[];for(var j=0;j>1&1;var bPrint=rec["annotflag"]>>2&1;rec["noZoom"]=rec["annotflag"]>>3&1;rec["noRotate"]=rec["annotflag"]>>4&1;var bNoView=rec["annotflag"]>>5&1;rec["locked"]=rec["annotflag"]>>7&1;rec["ToggleNoView"]=rec["annotflag"]>>8&1;rec["lockedC"]=rec["annotflag"]>>9&1;rec["display"]=0;if(bHidden)rec["display"]= -1;else if(bPrint)if(bNoView)rec["display"]=3;else rec["display"]=0;else if(bNoView)rec["display"]=0;else rec["display"]=2;rec["page"]=reader.readInt();rec["rect"]={};rec["rect"]["x1"]=reader.readDouble2();rec["rect"]["y1"]=reader.readDouble2();rec["rect"]["x2"]=reader.readDouble2();rec["rect"]["y2"]=reader.readDouble2();var flags=reader.readInt();if(flags&1<<0)rec["UniqueName"]=reader.readString();if(flags&1<<1)rec["Contents"]=reader.readString();if(flags&1<<2){rec["BE"]={};rec["BE"]["S"]=reader.readByte(); -rec["BE"]["I"]=reader.readDouble()}if(flags&1<<3){var n=reader.readInt();rec["C"]=[];for(var i=0;i>6&1}function readAnnotAP(reader,AP){AP["i"]=reader.readInt();AP["x"]= -reader.readInt();AP["y"]=reader.readInt();AP["w"]=reader.readInt();AP["h"]=reader.readInt();var n=reader.readInt();for(var i=0;i0)res["CO"]=[];for(var i=0;i0)res["Parents"]=[];for(var i$5=0;i$5>0&1;rec$11["required"]=rec$11["flag"]>>1&1;rec$11["noexport"]=rec$11["flag"]>>2&1;var flags$13=reader.readInt();if(flags$13&1<<0)rec$11["userName"]=reader.readString();if(flags$13&1<<1)rec$11["defaultStyle"]=reader.readString();if(flags$13&1<<2)rec$11["font"]["actual"]= -reader.readString();if(flags$13&1<<3)rec$11["highlight"]=reader.readByte();if(flags$13&1<<4)rec$11["font"]["key"]=reader.readString();if(flags$13&1<<5){var n$14=reader.readInt();rec$11["BC"]=[];for(var i$15=0;i$150)rec$11["AA"]={};for(var i$18=0;i$18>4&1}}else if(rec$11["type"]== -29||rec$11["type"]==28){if(flags$13&1<<9)rec$11["value"]=reader.readString();rec$11["style"]=reader.readByte();if(flags$13&1<<14)rec$11["ExportValue"]=reader.readString();rec$11["NoToggleToOff"]=rec$11["flag"]>>14&1;rec$11["radiosInUnison"]=rec$11["flag"]>>25&1}else if(rec$11["type"]==30){if(flags$13&1<<9)rec$11["value"]=reader.readString();if(flags$13&1<<10)rec$11["maxLen"]=reader.readInt();if(rec$11["flag"]&1<<25)rec$11["richValue"]=reader.readString();rec$11["multiline"]=rec$11["flag"]>>12&1;rec$11["password"]= -rec$11["flag"]>>13&1;rec$11["fileSelect"]=rec$11["flag"]>>20&1;rec$11["doNotSpellCheck"]=rec$11["flag"]>>22&1;rec$11["doNotScroll"]=rec$11["flag"]>>23&1;rec$11["comb"]=rec$11["flag"]>>24&1;rec$11["richText"]=rec$11["flag"]>>25&1}else if(rec$11["type"]==31||rec$11["type"]==32){if(flags$13&1<<9)rec$11["value"]=reader.readString();if(flags$13&1<<10){var n$19=reader.readInt();rec$11["opt"]=[];for(var i$20=0;i$20>18&1;rec$11["multipleSelection"]=rec$11["flag"]>>21&1;rec$11["doNotSpellCheck"]=rec$11["flag"]>>22&1;rec$11["commitOnSelChange"]= -rec$11["flag"]>>26&1}else if(rec$11["type"]==33)rec$11["Sig"]=flags$13>>9&1;res["Fields"].push(rec$11)}Module["_free"](ext);return res};CFile.prototype["getInteractiveFormsEmbeddedFonts"]=function(){return getWidgetFonts(this.nativeFile,1)};CFile.prototype["getInteractiveFormsStandardFonts"]=function(){return getWidgetFonts(this.nativeFile,2)};CFile.prototype["getInteractiveFormsAP"]=function(pageIndex,width,height,backgroundColor,nWidget,sView,sButtonView){var nView=-1;if(sView)if(sView=="N")nView= -0;else if(sView=="D")nView=1;else if(sView=="R")nView=2;var nButtonView=-1;if(sButtonView)nButtonView=sButtonView=="Off"?0:1;var res=[];this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Forms);var ext=Module["_GetInteractiveFormsAP"](this.nativeFile,width,height,backgroundColor===undefined?16777215:backgroundColor,pageIndex,nWidget===undefined?-1:nWidget,nView,nButtonView);this.unlockPageNumForFontsLoader();if(ext==0)return res;var lenArray=new Int32Array(Module["HEAP8"].buffer,ext,4);if(lenArray== -null)return res;var len=lenArray[0];len-=4;if(len<=0)return res;var buffer=new Uint8Array(Module["HEAP8"].buffer,ext+4,len);var reader=new CBinaryReader(buffer,0,len);while(reader.isValid()){var AP={};readAnnotAP(reader,AP);res.push(AP)}Module["_free"](ext);return res};CFile.prototype["getButtonIcons"]=function(pageIndex,width,height,backgroundColor,bBase64,nWidget,sIconView){var nView=-1;if(sIconView)if(sIconView=="I")nView=0;else if(sIconView=="RI")nView=1;else if(sIconView=="IX")nView=2;var res= -{};var ext=Module["_GetButtonIcons"](this.nativeFile,backgroundColor===undefined?16777215:backgroundColor,pageIndex,bBase64?1:0,nWidget===undefined?-1:nWidget,nView);if(ext==0)return res;var lenArray=new Int32Array(Module["HEAP8"].buffer,ext,4);if(lenArray==null)return res;var len=lenArray[0];len-=4;if(len<=0)return res;var buffer=new Uint8Array(Module["HEAP8"].buffer,ext+4,len);var reader=new CBinaryReader(buffer,0,len);res["MK"]=[];res["View"]=[];while(reader.isValid()){var MK={};MK["i"]=reader.readInt(); -var n=reader.readInt();for(var i=0;i>0&1;oFont["italic"]=nFontFlag>>1&1;oFont["strikethrough"]=nFontFlag>> -3&1;oFont["underlined"]=nFontFlag>>4&1;if(nFontFlag&1<<5)oFont["vertical"]=reader.readDouble();if(nFontFlag&1<<6)oFont["actual"]=reader.readString();oFont["size"]=reader.readDouble();oFont["color"]=[];oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["name"]=reader.readString();oFont["text"]=reader.readString();rec["RC"].push(oFont)}}if(flags&1<<4)rec["CreationDate"]=reader.readString();if(flags&1<<5)rec["RefTo"]=reader.readInt(); -if(flags&1<<6)rec["RefToReason"]=reader.readByte();if(flags&1<<7)rec["Subj"]=reader.readString()}if(rec["Type"]==0){if(rec["C"]){rec["IC"]=rec["C"];delete rec["C"]}rec["Open"]=flags>>15&1;if(flags&1<<16)rec["Icon"]=reader.readByte();if(flags&1<<17)rec["StateModel"]=reader.readByte();if(flags&1<<18)rec["State"]=reader.readByte()}else if(rec["Type"]==3){rec["L"]=[];for(var i$25=0;i$25<4;++i$25)rec["L"].push(reader.readDouble());if(flags&1<<15){rec["LE"]=[];rec["LE"].push(reader.readByte());rec["LE"].push(reader.readByte())}if(flags& -1<<16){var n$26=reader.readInt();rec["IC"]=[];for(var i$27=0;i$27>19&1;if(flags&1<<20)rec["IT"]=reader.readByte();if(flags&1<<21)rec["LLO"]=reader.readDouble();if(flags&1<<22)rec["CP"]=reader.readByte();if(flags&1<<23){rec["CO"]=[];rec["CO"].push(reader.readDouble());rec["CO"].push(reader.readDouble())}}else if(rec["Type"]==14){var n$28=reader.readInt(); -rec["InkList"]=[];for(var i$29=0;i$297&&rec["Type"]<12){var n$30=reader.readInt();rec["QuadPoints"]=[];for(var i$31=0;i$310&&drawingFile.onRepaintPages)drawingFile.onRepaintPages(pagesRepaint_Page);if(pagesRepaint_Annotation.length>0&&drawingFile.onRepaintAnnotations)drawingFile.onRepaintAnnotations(pagesRepaint_Annotation); -if(pagesRepaint_Forms.length>0&&drawingFile.onRepaintForms)drawingFile.onRepaintForms(pagesRepaint_Forms);delete _t.externalCallback};if(2!==file.LoadFontAsync)file.LoadFontAsync(baseFontsPath,null)}}var memoryBuffer=fileId.toUtf8();var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["HEAP8"][status]=fileStatus==0?1:0;return pointer};function fontToMemory(file,isCheck){var idBuffer=file.GetID().toUtf8();var idPointer=Module["_malloc"](idBuffer.length); -Module["HEAP8"].set(idBuffer,idPointer);if(isCheck){var nExist=Module["_IsFontBinaryExist"](idPointer);if(nExist!=0){Module["_free"](idPointer);return}}var stream_index=file.GetStreamIndex();var stream=AscFonts.getFontStream(stream_index);var streamPointer=Module["_malloc"](stream.size);Module["HEAP8"].set(stream.data,streamPointer);Module["_SetFontBinary"](idPointer,streamPointer,stream.size);Module["_free"](streamPointer);Module["_free"](idPointer)}})(window,undefined); +this.fontStreams={};this.scannedImages={}}function CWasmPointer(){this.ptr=0}CWasmPointer.prototype.free=function(){Module["_free"](this.ptr);this.ptr=0};CWasmPointer.prototype.getReader=function(){if(!this.ptr)return null;var lenArr=new Int32Array(Module["HEAP8"].buffer,this.ptr,1);if(!lenArr){this.free();return null}var len=lenArr[0];if(len<=4){this.free();return null}len-=4;var buffer=new Uint8Array(Module["HEAP8"].buffer,this.ptr+4,len);return new CBinaryReader(buffer,0,len)};var g_module_pointer= +new CWasmPointer;CFile.prototype._free=function(ptr){Module["_free"](ptr)};CFile.prototype._getUint8Array=function(ptr,len){return new Uint8Array(Module["HEAP8"].buffer,ptr,len)};CFile.prototype._getUint8ClampedArray=function(ptr,len){return new Uint8ClampedArray(Module["HEAP8"].buffer,ptr,len)};CFile.prototype._openFile=function(buffer,password){if(buffer){var data=new Uint8Array(buffer);this.stream_size=data.length;this.stream=Module["_malloc"](this.stream_size);Module["HEAP8"].set(data,this.stream)}var passwordPtr= +0;if(password){var passwordBuf=password.toUtf8();passwordPtr=Module["_malloc"](passwordBuf.length);Module["HEAP8"].set(passwordBuf,passwordPtr)}this.nativeFile=Module["_Open"](this.stream,this.stream_size,passwordPtr);if(passwordPtr)Module["_free"](passwordPtr);return this.nativeFile>0?true:false};CFile.prototype._closeFile=function(){Module["_Close"](this.nativeFile)};CFile.prototype._getType=function(){return Module["_GetType"](this.stream,this.stream_size)};CFile.prototype._getError=function(){return Module["_GetErrorCode"](this.nativeFile)}; +CFile.prototype._isNeedCMap=function(){var isNeed=Module["_IsNeedCMap"](this.nativeFile);return isNeed===1?true:false};CFile.prototype._setCMap=function(memoryBuffer){var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["_SetCMapData"](this.nativeFile,pointer,memoryBuffer.length)};CFile.prototype._getFontByID=function(ID){if(ID===undefined)return null;var idBuffer=ID.toUtf8();var idPointer=Module["_malloc"](idBuffer.length);Module["HEAP8"].set(idBuffer, +idPointer);g_module_pointer.ptr=Module["_GetFontBinary"](this.nativeFile,idPointer);Module["_free"](idPointer);var reader=g_module_pointer.getReader();if(!reader)return null;var nFontLength=reader.readInt();var np1=reader.readInt();var np2=reader.readInt();var pFontPointer=np2<<32|np1;var res=new Uint8Array(Module["HEAP8"].buffer,pFontPointer,nFontLength);g_module_pointer.free();return res};CFile.prototype._getInteractiveFormsFonts=function(type){g_module_pointer.ptr=Module["_GetInteractiveFormsFonts"](this.nativeFile, +type);return g_module_pointer};CFile.prototype._getInfo=function(){g_module_pointer.ptr=Module["_GetInfo"](this.nativeFile);return g_module_pointer};CFile.prototype._getStructure=function(){g_module_pointer.ptr=Module["_GetStructure"](this.nativeFile);return g_module_pointer};CFile.prototype._getLinks=function(pageIndex){g_module_pointer.ptr=Module["_GetLinks"](this.nativeFile,pageIndex);return g_module_pointer};CFile.prototype._getInteractiveFormsInfo=function(){g_module_pointer.ptr=Module["_GetInteractiveFormsInfo"](this.nativeFile); +return g_module_pointer};CFile.prototype._getAnnotationsInfo=function(pageIndex){g_module_pointer.ptr=Module["_GetAnnotationsInfo"](this.nativeFile,pageIndex===undefined?-1:pageIndex);return g_module_pointer};CFile.prototype._getButtonIcons=function(backgroundColor,pageIndex,isBase64,nWidget,nView){g_module_pointer.ptr=Module["_GetButtonIcons"](this.nativeFile,backgroundColor===undefined?16777215:backgroundColor,pageIndex,isBase64?1:0,nWidget===undefined?-1:nWidget,nView);return g_module_pointer}; +CFile.prototype._getAnnotationsAP=function(width,height,backgroundColor,pageIndex,nAnnot,nView){g_module_pointer.ptr=Module["_GetAnnotationsAP"](this.nativeFile,width,height,backgroundColor===undefined?16777215:backgroundColor,pageIndex,nAnnot===undefined?-1:nAnnot,nView);return g_module_pointer};CFile.prototype._getInteractiveFormsAP=function(width,height,backgroundColor,pageIndex,nWidget,nView,nButtonView){g_module_pointer.ptr=Module["_GetInteractiveFormsAP"](this.nativeFile,width,height,backgroundColor=== +undefined?16777215:backgroundColor,pageIndex,nWidget===undefined?-1:nWidget,nView,nButtonView);return g_module_pointer};CFile.prototype._scanPage=function(page,mode){g_module_pointer.ptr=Module["_ScanPage"](this.nativeFile,page,mode===undefined?0:mode);return g_module_pointer};CFile.prototype._getImageBase64=function(rId){var strPtr=Module["_GetImageBase64"](this.nativeFile,rId);if(0==strPtr)return"error";var len=Module["_GetImageBase64Len"](strPtr);var ptr=Module["_GetImageBase64Ptr"](strPtr);var buffer= +new Uint8Array(Module["HEAP8"].buffer,ptr,len);var result=String.prototype.fromUtf8(buffer,0,len);Module["_GetImageBase64Free"](strPtr);return result};CFile.prototype._getGlyphs=function(pageIndex){var ptr=Module["_GetGlyphs"](this.nativeFile,pageIndex);if(!ptr)return null;var ptrArray=new Int32Array(Module["HEAP8"].buffer,ptr,5);var len=ptrArray[0];len-=20;var res={};res.info=[ptrArray[1],ptrArray[2],ptrArray[3],ptrArray[4]];if(len>0){var textCommandsSrc=new Uint8Array(Module["HEAP8"].buffer,ptr+ +20,len);res.result=new Uint8Array(len);res.result.set(textCommandsSrc)}else res.result=[];return res};CFile.prototype._destroyTextInfo=function(){Module["_DestroyTextInfo"]()};CFile.prototype._getPixmap=function(pageIndex,width,height,backgroundColor){return Module["_GetPixmap"](this.nativeFile,pageIndex,width,height,backgroundColor===undefined?16777215:backgroundColor)};CFile.prototype._InitializeFonts=function(basePath){if(undefined!==basePath&&""!==basePath)baseFontsPath=basePath;if(!window["g_fonts_selection_bin"])return; +var memoryBuffer=window["g_fonts_selection_bin"].toUtf8();var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["_InitializeFontsBase64"](pointer,memoryBuffer.length);Module["_free"](pointer);delete window["g_fonts_selection_bin"];var rangesBuffer=new CBinaryWriter;var ranges=AscFonts.getSymbolRanges();var rangesCount=ranges.length;rangesBuffer.writeUint(rangesCount);for(var i=0;i0&&drawingFile.onRepaintPages)drawingFile.onRepaintPages(pagesRepaint_Page);if(pagesRepaint_Annotation.length>0&&drawingFile.onRepaintAnnotations)drawingFile.onRepaintAnnotations(pagesRepaint_Annotation);if(pagesRepaint_Forms.length>0&&drawingFile.onRepaintForms)drawingFile.onRepaintForms(pagesRepaint_Forms);delete _t.externalCallback};if(2!==file.LoadFontAsync)file.LoadFontAsync(baseFontsPath,null)}}var memoryBuffer= +fileId.toUtf8();var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["HEAP8"][status]=fileStatus==0?1:0;return pointer};CFile.prototype.lockPageNumForFontsLoader=function(pageIndex,type){this.fontPageIndex=pageIndex;this.fontPageUpdateType=type};CFile.prototype.unlockPageNumForFontsLoader=function(){this.fontPageIndex=-1;drawingFile.fontPageUpdateType=UpdateFontsSource.Undefined};CFile.prototype.getOriginPage=function(originIndex){for(var i=0;i0)this._free(this.stream); +this.stream=-1;self.drawingFile=null};CFile.prototype["getFileBinary"]=function(){if(0>=this.stream)return"";return new Uint8Array(Module["HEAP8"].buffer,this.stream,this.stream_size)};CFile.prototype["isNeedPassword"]=function(){return this._isNeedPassword};CFile.prototype.getInfo=function(){if(!this.nativeFile)return false;var ptr=this._getInfo();var reader=ptr.getReader();if(!reader)return false;this.StartID=reader.readInt();var _pages=reader.readInt();for(var i=0;i<_pages;i++){var rec={};rec["W"]= +reader.readInt();rec["H"]=reader.readInt();rec["Dpi"]=reader.readInt();rec["Rotate"]=reader.readInt();rec["originIndex"]=i;rec.fonts=[];rec.fontsUpdateType=UpdateFontsSource.Undefined;rec.text=null;this.pages.push(rec)}var json_info=reader.readString();try{this.info=JSON.parse(json_info)}catch(err$1){}ptr.free();return this.pages.length>0};CFile.prototype["getStructure"]=function(){var ptr=this._getStructure();var reader=ptr.getReader();if(!reader)return[];var res=[];while(reader.isValid()){var rec= +{};rec["page"]=reader.readInt();rec["level"]=reader.readInt();rec["y"]=reader.readDouble();rec["description"]=reader.readString();res.push(rec)}ptr.free();return res};CFile.prototype["getLinks"]=function(pageIndex){var ptr=this._getLinks(pageIndex);var reader=ptr.getReader();if(!reader)return[];var res=[];while(reader.isValid()){var rec={};rec["link"]=reader.readString();rec["dest"]=reader.readDouble();rec["x"]=reader.readDouble();rec["y"]=reader.readDouble();rec["w"]=reader.readDouble();rec["h"]= +reader.readDouble();res.push(rec)}ptr.free();return res};CFile.prototype["getGlyphs"]=function(pageIndex){var i=this.getOriginPage(pageIndex);if(i<0)return null;var page=this.pages[i];if(!page||page.fonts.length>0)return null;this.lockPageNumForFontsLoader(i,UpdateFontsSource.Page);var res=this._getGlyphs(pageIndex);this.unlockPageNumForFontsLoader();if(page.fonts.length>0){res=null;return null}if(res&&this.onUpdateStatistics)this.onUpdateStatistics(res.info[0],res.info[1],res.info[2],res.info[3]); +return res.result||null};CFile.prototype["destroyTextInfo"]=function(){this._destroyTextInfo()};CFile.prototype.getWidgetFonts=function(type){var ptr=this._getInteractiveFormsFonts(type);var reader=ptr.getReader();if(!reader)return[];var res=[];while(reader.isValid()){var n=reader.readInt();for(var i=0;i>1&1;var bPrint=rec["annotflag"]>>2&1;rec["noZoom"]= +rec["annotflag"]>>3&1;rec["noRotate"]=rec["annotflag"]>>4&1;var bNoView=rec["annotflag"]>>5&1;rec["locked"]=rec["annotflag"]>>7&1;rec["ToggleNoView"]=rec["annotflag"]>>8&1;rec["lockedC"]=rec["annotflag"]>>9&1;rec["display"]=0;if(bHidden)rec["display"]=1;else if(bPrint)if(bNoView)rec["display"]=3;else rec["display"]=0;else if(bNoView)rec["display"]=0;else rec["display"]=2;rec["page"]=reader.readInt();rec["rect"]={};rec["rect"]["x1"]=reader.readDouble2();rec["rect"]["y1"]=reader.readDouble2();rec["rect"]["x2"]= +reader.readDouble2();rec["rect"]["y2"]=reader.readDouble2();var flags=reader.readInt();if(flags&1<<0)rec["UniqueName"]=reader.readString();if(flags&1<<1)rec["Contents"]=reader.readString();if(flags&1<<2){rec["BE"]={};rec["BE"]["S"]=reader.readByte();rec["BE"]["I"]=reader.readDouble()}if(flags&1<<3){var n=reader.readInt();rec["C"]=[];for(var i=0;i>6&1;if(flags&1<<7)rec["OUserID"]=reader.readString()}function readAnnotAP(reader,AP){AP["i"]=reader.readInt();AP["x"]=reader.readInt();AP["y"]=reader.readInt();AP["w"]=reader.readInt();AP["h"]=reader.readInt();var n=reader.readInt();for(var i=0;i0)res["CO"]=[];for(var i=0;i0)res["Parents"]= +[];for(var i$6=0;i$6>0&1;rec$12["required"]=rec$12["flag"]>>1&1;rec$12["noexport"]=rec$12["flag"]>>2&1;var flags$14=reader.readInt();if(flags$14&1<<0)rec$12["userName"]=reader.readString();if(flags$14&1<<1)rec$12["defaultStyle"]=reader.readString();if(flags$14&1<<2)rec$12["font"]["actual"]=reader.readString();if(flags$14&1<<3)rec$12["highlight"]=reader.readByte(); +if(flags$14&1<<4)rec$12["font"]["key"]=reader.readString();if(flags$14&1<<5){var n$15=reader.readInt();rec$12["BC"]=[];for(var i$16=0;i$160)rec$12["AA"]={};for(var i$19=0;i$19>4&1}}else if(rec$12["type"]==29||rec$12["type"]==28){if(flags$14&1<<9)rec$12["value"]=reader.readString(); +rec$12["style"]=reader.readByte();if(flags$14&1<<14)rec$12["ExportValue"]=reader.readString();rec$12["NoToggleToOff"]=rec$12["flag"]>>14&1;rec$12["radiosInUnison"]=rec$12["flag"]>>25&1}else if(rec$12["type"]==30){if(flags$14&1<<9)rec$12["value"]=reader.readString();if(flags$14&1<<10)rec$12["maxLen"]=reader.readInt();if(rec$12["flag"]&1<<25)rec$12["richValue"]=reader.readString();rec$12["multiline"]=rec$12["flag"]>>12&1;rec$12["password"]=rec$12["flag"]>>13&1;rec$12["fileSelect"]=rec$12["flag"]>>20& +1;rec$12["doNotSpellCheck"]=rec$12["flag"]>>22&1;rec$12["doNotScroll"]=rec$12["flag"]>>23&1;rec$12["comb"]=rec$12["flag"]>>24&1;rec$12["richText"]=rec$12["flag"]>>25&1}else if(rec$12["type"]==31||rec$12["type"]==32){if(flags$14&1<<9)rec$12["value"]=reader.readString();if(flags$14&1<<10){var n$20=reader.readInt();rec$12["opt"]=[];for(var i$21=0;i$21>18&1;rec$12["multipleSelection"]=rec$12["flag"]>>21&1;rec$12["doNotSpellCheck"]=rec$12["flag"]>>22&1;rec$12["commitOnSelChange"]=rec$12["flag"]>>26&1}else if(rec$12["type"]== +33)rec$12["Sig"]=flags$14>>9&1;res["Fields"].push(rec$12)}ptr.free();return res};CFile.prototype["getInteractiveFormsAP"]=function(pageIndex,width,height,backgroundColor,nWidget,sView,sButtonView){var nView=-1;if(sView)if(sView=="N")nView=0;else if(sView=="D")nView=1;else if(sView=="R")nView=2;var nButtonView=-1;if(sButtonView)nButtonView=sButtonView=="Off"?0:1;this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Forms);var ptr=this._getInteractiveFormsAP(width,height,backgroundColor,pageIndex, +nWidget,nView,nButtonView);var reader=ptr.getReader();this.unlockPageNumForFontsLoader();if(!reader)return[];var res=[];while(reader.isValid()){var AP={};readAnnotAP(reader,AP);res.push(AP)}ptr.free();return res};CFile.prototype["getButtonIcons"]=function(pageIndex,width,height,backgroundColor,bBase64,nWidget,sIconView){var nView=-1;if(sIconView)if(sIconView=="I")nView=0;else if(sIconView=="RI")nView=1;else if(sIconView=="IX")nView=2;var ptr=this._getButtonIcons(backgroundColor,pageIndex,bBase64, +nWidget,nView);var reader=ptr.getReader();if(!reader)return{};var res={};res["MK"]=[];res["View"]=[];while(reader.isValid()){var MK={};MK["i"]=reader.readInt();var n=reader.readInt();for(var i=0;i>0&1;oFont["italic"]=nFontFlag>>1&1;oFont["strikethrough"]=nFontFlag>>3&1;oFont["underlined"]=nFontFlag>>4&1;if(nFontFlag&1<<5)oFont["vertical"]=reader.readDouble();if(nFontFlag&1<<6)oFont["actual"]=reader.readString(); +oFont["size"]=reader.readDouble();oFont["color"]=[];oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["name"]=reader.readString();oFont["text"]=reader.readString();rec["RC"].push(oFont)}}if(flags&1<<4)rec["CreationDate"]=reader.readString();if(flags&1<<5)rec["RefTo"]=reader.readInt();if(flags&1<<6)rec["RefToReason"]=reader.readByte();if(flags&1<<7)rec["Subj"]=reader.readString()}if(rec["Type"]==0){if(rec["C"]){rec["IC"]= +rec["C"];delete rec["C"]}rec["Open"]=flags>>15&1;if(flags&1<<16)rec["Icon"]=reader.readByte();if(flags&1<<17)rec["StateModel"]=reader.readByte();if(flags&1<<18)rec["State"]=reader.readByte()}else if(rec["Type"]==3){rec["L"]=[];for(var i$26=0;i$26<4;++i$26)rec["L"].push(reader.readDouble());if(flags&1<<15){rec["LE"]=[];rec["LE"].push(reader.readByte());rec["LE"].push(reader.readByte())}if(flags&1<<16){var n$27=reader.readInt();rec["IC"]=[];for(var i$28=0;i$28>19&1;if(flags&1<<20)rec["IT"]=reader.readByte();if(flags&1<<21)rec["LLO"]=reader.readDouble();if(flags&1<<22)rec["CP"]=reader.readByte();if(flags&1<<23){rec["CO"]=[];rec["CO"].push(reader.readDouble());rec["CO"].push(reader.readDouble())}}else if(rec["Type"]==14){var n$29=reader.readInt();rec["InkList"]=[];for(var i$30=0;i$307&&rec["Type"]<12){var n$31=reader.readInt();rec["QuadPoints"]=[];for(var i$32=0;i$320)return null;this.lockPageNumForFontsLoader(i,UpdateFontsSource.Page);var ptr=this._getPixmap(pageIndex,width,height,backgroundColor);this.unlockPageNumForFontsLoader();if(page.fonts.length>0){this._free(ptr);ptr=null}return ptr};function addToArrayAsDictionary(arr,value){var isFound=false;for(var i=0,len=arr.length;i=pageIndex)pages[j]+=1}};CFile.prototype["removePage"]=function(pageIndex){var result=this.pages.splice(pageIndex,1);if(this.fontStreams)for(var i in this.fontStreams){var pages=this.fontStreams[i].pages;for(var j=0;jpageIndex)pages[j]-= +1;else if(pages[j]==pageIndex)pages.splice(j,1)}return result};self["AscViewer"]["Free"]=function(pointer){CFile.prototype._free(pointer)};self["AscViewer"]["InitializeFonts"]=function(basePath){return CFile.prototype._InitializeFonts(basePath)};self["AscViewer"]["CheckStreamId"]=function(data,status){return CFile.prototype._CheckStreamId(data,status)};self["AscViewer"]["CDrawingFile"]=CFile;self.drawingFile=null})(window,undefined); diff --git a/pdf/src/engine/drawingfile.wasm b/pdf/src/engine/drawingfile.wasm index 4b6a34f209..7a460ba16a 100644 Binary files a/pdf/src/engine/drawingfile.wasm and b/pdf/src/engine/drawingfile.wasm differ diff --git a/pdf/src/engine/drawingfile_ie.js b/pdf/src/engine/drawingfile_ie.js index 12951bdccd..ddffd7451b 100644 --- a/pdf/src/engine/drawingfile_ie.js +++ b/pdf/src/engine/drawingfile_ie.js @@ -72,1266 +72,1292 @@ return new Promise(function(resolve){resolve(value)})};Promise.reject=function(v "./this.program";var quit_=function(status,toThrow){throw toThrow;};var ENVIRONMENT_IS_WEB=true;var ENVIRONMENT_IS_WORKER=false;var scriptDirectory="";function locateFile(path){if(Module["locateFile"])return Module["locateFile"](path,scriptDirectory);return scriptDirectory+path}var read_,readAsync,readBinary;if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER)scriptDirectory=self.location.href;else if(typeof document!="undefined"&&document.currentScript)scriptDirectory=document.currentScript.src; if(scriptDirectory.indexOf("blob:")!==0)scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1);else scriptDirectory="";{read_=function(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER)readBinary=function(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)};readAsync=function(url,onload,onerror){var xhr= new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}}else;var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.error.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"]; -if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var WebAssembly={Memory:function(opts){this.buffer=new ArrayBuffer(opts["initial"]*65536)},Module:function(binary){},Instance:function(module,info){this.exports=function instantiate(pc){function c(d){d.set=function(a,b){this[a]=b};d.get=function(a){return this[a]};return d}var e;var f=new Uint8Array(123);for(var a=25;a>=0;--a){f[48+a]=52+a;f[65+a]=a;f[97+a]=26+a}f[43]=62;f[47]=63;function l(m, -n,o){var g,h,a=0,i=n,j=o.length,k=n+(j*3>>2)-(o[j-2]=="=")-(o[j-1]=="=");for(;a>4;if(i>2;if(i=0;--a){f[48+a]=52+a;f[65+a]=a;f[97+a]=26+a}f[43]=62;f[47]=63;function l(m, +n,o){var g,h,a=0,i=n,j=o.length,k=n+(j*3>>2)-(o[j-2]=="=")-(o[j-1]=="=");for(;a>4;if(i>2;if(i>2]<<2)+4|0);J[694737]=b;if(!b)break a;b=zc(J[a+8>>2]);if(b){J[J[694737]+(J[a+12>>2]<<2)>>2]=0;if(!(ob(J[694737],b|0)|0))break a}J[694737]=0}bc=a+16|0;a=rc(32);J[688840]=a;J[688841]=5;J[688842]=-2147483640;J[a+16>>2]=J[83626];b=J[83625];J[a+8>>2]=J[83624]; -J[a+12>>2]=b;b=J[83623];J[a>>2]=J[83622];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b:{b=2755372;c:{if((c|0)==1)break c;J[688843]=a;J[688844]=10;J[688845]=-2147483636;b=J[83669];J[a+32>>2]=J[83668];J[a+36>>2]=b;b=J[83667];J[a+24>>2]=J[83666];J[a+28>>2]=b;b=J[83665];J[a+16>>2]=J[83664];J[a+20>>2]=b;b=J[83663];J[a+8>>2]=J[83662];J[a+12>>2]=b;b=J[83661];J[a>>2]=J[83660];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755384;if((c|0)==1)break c; -J[688846]=a;J[688847]=8;J[688848]=-2147483636;b=J[83704];J[a+24>>2]=J[83703];J[a+28>>2]=b;b=J[83702];J[a+16>>2]=J[83701];J[a+20>>2]=b;b=J[83700];J[a+8>>2]=J[83699];J[a+12>>2]=b;b=J[83698];J[a>>2]=J[83697];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755396;if((c|0)==1)break c;J[688849]=a;J[688850]=10;J[688851]=-2147483636;b=J[83733];J[a+32>>2]=J[83732];J[a+36>>2]=b;b=J[83731];J[a+24>>2]=J[83730];J[a+28>>2]=b;b=J[83729];J[a+16>>2]=J[83728];J[a+20>>2]=b;b=J[83727];J[a+ -8>>2]=J[83726];J[a+12>>2]=b;b=J[83725];J[a>>2]=J[83724];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755408;if((c|0)==1)break c;J[688852]=a;J[688853]=8;J[688854]=-2147483636;b=J[83782];J[a+24>>2]=J[83781];J[a+28>>2]=b;b=J[83780];J[a+16>>2]=J[83779];J[a+20>>2]=b;b=J[83778];J[a+8>>2]=J[83777];J[a+12>>2]=b;b=J[83776];J[a>>2]=J[83775];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755420;if((c|0)==1)break c;J[688855]=a;J[688856]=9;J[688857]= --2147483636;J[a+32>>2]=J[83810];b=J[83809];J[a+24>>2]=J[83808];J[a+28>>2]=b;b=J[83807];J[a+16>>2]=J[83806];J[a+20>>2]=b;b=J[83805];J[a+8>>2]=J[83804];J[a+12>>2]=b;b=J[83803];J[a>>2]=J[83802];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755432;if((c|0)==1)break c;J[688858]=a;J[688859]=9;J[688860]=-2147483636;J[a+32>>2]=J[83840];b=J[83839];J[a+24>>2]=J[83838];J[a+28>>2]=b;b=J[83837];J[a+16>>2]=J[83836];J[a+20>>2]=b;b=J[83835];J[a+8>>2]=J[83834];J[a+12>>2]=b;b=J[83833]; -J[a>>2]=J[83832];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755444;if((c|0)==1)break c;J[688861]=a;J[688862]=5;J[688863]=-2147483640;J[a+16>>2]=J[83866];b=J[83865];J[a+8>>2]=J[83864];J[a+12>>2]=b;b=J[83863];J[a>>2]=J[83862];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755456;if((c|0)==1)break c;J[688864]=a;J[688865]=8;J[688866]=-2147483636;b=J[83887];J[a+24>>2]=J[83886];J[a+28>>2]=b;b=J[83885];J[a+16>>2]=J[83884];J[a+20>>2]=b;b=J[83883]; -J[a+8>>2]=J[83882];J[a+12>>2]=b;b=J[83881];J[a>>2]=J[83880];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755468;if((c|0)==1)break c;J[688867]=a;J[688868]=6;J[688869]=-2147483640;b=J[83912];J[a+16>>2]=J[83911];J[a+20>>2]=b;b=J[83910];J[a+8>>2]=J[83909];J[a+12>>2]=b;b=J[83908];J[a>>2]=J[83907];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755480;if((c|0)==1)break c;J[688870]=a;J[688871]=8;J[688872]=-2147483636;b=J[83935];J[a+24>>2]=J[83934]; -J[a+28>>2]=b;b=J[83933];J[a+16>>2]=J[83932];J[a+20>>2]=b;b=J[83931];J[a+8>>2]=J[83930];J[a+12>>2]=b;b=J[83929];J[a>>2]=J[83928];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755492;if((c|0)==1)break c;J[688873]=a;J[688874]=6;J[688875]=-2147483640;b=J[83960];J[a+16>>2]=J[83959];J[a+20>>2]=b;b=J[83958];J[a+8>>2]=J[83957];J[a+12>>2]=b;b=J[83956];J[a>>2]=J[83955];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755504;if((c|0)==1)break c;J[688876]= -a;J[688877]=6;J[688878]=-2147483640;b=J[83981];J[a+16>>2]=J[83980];J[a+20>>2]=b;b=J[83979];J[a+8>>2]=J[83978];J[a+12>>2]=b;b=J[83977];J[a>>2]=J[83976];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755516;if((c|0)==1)break c;J[688879]=a;J[688880]=7;J[688881]=-2147483640;J[a+24>>2]=J[84003];b=J[84002];J[a+16>>2]=J[84001];J[a+20>>2]=b;b=J[84E3];J[a+8>>2]=J[83999];J[a+12>>2]=b;b=J[83998];J[a>>2]=J[83997];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]= -0;b=2755528;if((c|0)==1)break c;J[688882]=a;J[688883]=7;J[688884]=-2147483640;J[a+24>>2]=J[84027];b=J[84026];J[a+16>>2]=J[84025];J[a+20>>2]=b;b=J[84024];J[a+8>>2]=J[84023];J[a+12>>2]=b;b=J[84022];J[a>>2]=J[84021];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755540;if((c|0)==1)break c;J[688885]=a;J[688886]=4;J[688887]=-2147483640;b=J[84048];J[a+8>>2]=J[84047];J[a+12>>2]=b;b=J[84046];J[a>>2]=J[84045];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]= -0;b=2755552;if((c|0)==1)break c;J[688888]=a;J[688889]=9;J[688890]=-2147483636;J[a+32>>2]=J[84068];b=J[84067];J[a+24>>2]=J[84066];J[a+28>>2]=b;b=J[84065];J[a+16>>2]=J[84064];J[a+20>>2]=b;b=J[84063];J[a+8>>2]=J[84062];J[a+12>>2]=b;b=J[84061];J[a>>2]=J[84060];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755564;if((c|0)==1)break c;J[688891]=a;J[688892]=7;J[688893]=-2147483640;J[a+24>>2]=J[84096];b=J[84095];J[a+16>>2]=J[84094];J[a+20>>2]=b;b=J[84093];J[a+8>>2]=J[84092];J[a+ -12>>2]=b;b=J[84091];J[a>>2]=J[84090];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755576;if((c|0)==1)break c;J[688894]=a;J[688895]=10;J[688896]=-2147483636;b=J[84123];J[a+32>>2]=J[84122];J[a+36>>2]=b;b=J[84121];J[a+24>>2]=J[84120];J[a+28>>2]=b;b=J[84119];J[a+16>>2]=J[84118];J[a+20>>2]=b;b=J[84117];J[a+8>>2]=J[84116];J[a+12>>2]=b;b=J[84115];J[a>>2]=J[84114];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755588;if((c|0)==1)break c;J[688897]= -a;J[688898]=6;J[688899]=-2147483640;b=J[84152];J[a+16>>2]=J[84151];J[a+20>>2]=b;b=J[84150];J[a+8>>2]=J[84149];J[a+12>>2]=b;b=J[84148];J[a>>2]=J[84147];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755600;if((c|0)==1)break c;J[688900]=a;J[688901]=8;J[688902]=-2147483636;b=J[84175];J[a+24>>2]=J[84174];J[a+28>>2]=b;b=J[84173];J[a+16>>2]=J[84172];J[a+20>>2]=b;b=J[84171];J[a+8>>2]=J[84170];J[a+12>>2]=b;b=J[84169];J[a>>2]=J[84168];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4, -32)|0;c=J[695492];J[695492]=0;b=2755612;if((c|0)==1)break c;J[688903]=a;J[688904]=6;J[688905]=-2147483640;b=J[84200];J[a+16>>2]=J[84199];J[a+20>>2]=b;b=J[84198];J[a+8>>2]=J[84197];J[a+12>>2]=b;b=J[84196];J[a>>2]=J[84195];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755624;if((c|0)==1)break c;J[688906]=a;J[688907]=8;J[688908]=-2147483636;b=J[84223];J[a+24>>2]=J[84222];J[a+28>>2]=b;b=J[84221];J[a+16>>2]=J[84220];J[a+20>>2]=b;b=J[84219];J[a+8>>2]=J[84218];J[a+12>>2]=b; -b=J[84217];J[a>>2]=J[84216];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755636;if((c|0)==1)break c;J[688909]=a;J[688910]=6;J[688911]=-2147483640;b=J[84248];J[a+16>>2]=J[84247];J[a+20>>2]=b;b=J[84246];J[a+8>>2]=J[84245];J[a+12>>2]=b;b=J[84244];J[a>>2]=J[84243];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755648;if((c|0)==1)break c;J[688912]=a;J[688913]=7;J[688914]=-2147483640;J[a+24>>2]=J[84270];b=J[84269];J[a+16>>2]=J[84268];J[a+20>>2]= -b;b=J[84267];J[a+8>>2]=J[84266];J[a+12>>2]=b;b=J[84265];J[a>>2]=J[84264];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755660;if((c|0)==1)break c;J[688915]=a;J[688916]=7;J[688917]=-2147483640;J[a+24>>2]=J[84294];b=J[84293];J[a+16>>2]=J[84292];J[a+20>>2]=b;b=J[84291];J[a+8>>2]=J[84290];J[a+12>>2]=b;b=J[84289];J[a>>2]=J[84288];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755672;if((c|0)==1)break c;J[688918]=a;J[688919]=8;J[688920]=-2147483636; -b=J[84319];J[a+24>>2]=J[84318];J[a+28>>2]=b;b=J[84317];J[a+16>>2]=J[84316];J[a+20>>2]=b;b=J[84315];J[a+8>>2]=J[84314];J[a+12>>2]=b;b=J[84313];J[a>>2]=J[84312];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755684;if((c|0)==1)break c;J[688921]=a;J[688922]=5;J[688923]=-2147483640;J[a+16>>2]=J[84343];b=J[84342];J[a+8>>2]=J[84341];J[a+12>>2]=b;b=J[84340];J[a>>2]=J[84339];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755696;if((c|0)==1)break c; -J[688924]=a;J[688925]=5;J[688926]=-2147483640;J[a+16>>2]=J[84361];b=J[84360];J[a+8>>2]=J[84359];J[a+12>>2]=b;b=J[84358];J[a>>2]=J[84357];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755708;if((c|0)==1)break c;J[688927]=a;J[688928]=5;J[688929]=-2147483640;J[a+16>>2]=J[84379];b=J[84378];J[a+8>>2]=J[84377];J[a+12>>2]=b;b=J[84376];J[a>>2]=J[84375];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755720;if((c|0)==1)break c;J[688930]=a;J[688931]= -5;J[688932]=-2147483640;J[a+16>>2]=J[84397];b=J[84396];J[a+8>>2]=J[84395];J[a+12>>2]=b;b=J[84394];J[a>>2]=J[84393];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755732;if((c|0)==1)break c;J[688933]=a;J[688934]=5;J[688935]=-2147483640;J[a+16>>2]=J[84415];b=J[84414];J[a+8>>2]=J[84413];J[a+12>>2]=b;b=J[84412];J[a>>2]=J[84411];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755744;if((c|0)==1)break c;J[688936]=a;J[688937]=4;J[688938]=-2147483640; -b=J[84432];J[a+8>>2]=J[84431];J[a+12>>2]=b;b=J[84430];J[a>>2]=J[84429];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755756;if((c|0)==1)break c;J[688939]=a;J[688940]=5;J[688941]=-2147483640;J[a+16>>2]=J[84448];b=J[84447];J[a+8>>2]=J[84446];J[a+12>>2]=b;b=J[84445];J[a>>2]=J[84444];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755768;if((c|0)==1)break c;J[688942]=a;J[688943]=5;J[688944]=-2147483640;J[a+16>>2]=J[84466];b=J[84465];J[a+8>>2]= -J[84464];J[a+12>>2]=b;b=J[84463];J[a>>2]=J[84462];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755780;if((c|0)==1)break c;J[688945]=a;J[688946]=5;J[688947]=-2147483640;J[a+16>>2]=J[84484];b=J[84483];J[a+8>>2]=J[84482];J[a+12>>2]=b;b=J[84481];J[a>>2]=J[84480];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755792;if((c|0)==1)break c;J[688948]=a;J[688949]=5;J[688950]=-2147483640;J[a+16>>2]=J[84502];b=J[84501];J[a+8>>2]=J[84500];J[a+12>>2]=b; -b=J[84499];J[a>>2]=J[84498];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755804;if((c|0)==1)break c;J[688951]=a;J[688952]=5;J[688953]=-2147483640;J[a+16>>2]=J[84520];b=J[84519];J[a+8>>2]=J[84518];J[a+12>>2]=b;b=J[84517];J[a>>2]=J[84516];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755816;if((c|0)==1)break c;J[688954]=a;J[688955]=5;J[688956]=-2147483640;J[a+16>>2]=J[84538];b=J[84537];J[a+8>>2]=J[84536];J[a+12>>2]=b;b=J[84535];J[a>>2]=J[84534]; -J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755828;if((c|0)==1)break c;J[688957]=a;J[688958]=5;J[688959]=-2147483640;J[a+16>>2]=J[84556];b=J[84555];J[a+8>>2]=J[84554];J[a+12>>2]=b;b=J[84553];J[a>>2]=J[84552];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755840;if((c|0)==1)break c;J[688960]=a;J[688961]=7;J[688962]=-2147483640;J[a+24>>2]=J[84576];b=J[84575];J[a+16>>2]=J[84574];J[a+20>>2]=b;b=J[84573];J[a+8>>2]=J[84572];J[a+12>>2]=b;b=J[84571]; -J[a>>2]=J[84570];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755852;if((c|0)==1)break c;J[688963]=a;J[688964]=7;J[688965]=-2147483640;J[a+24>>2]=J[84600];b=J[84599];J[a+16>>2]=J[84598];J[a+20>>2]=b;b=J[84597];J[a+8>>2]=J[84596];J[a+12>>2]=b;b=J[84595];J[a>>2]=J[84594];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755864;if((c|0)==1)break c;J[688966]=a;J[688967]=10;J[688968]=-2147483636;b=J[84627];J[a+32>>2]=J[84626];J[a+36>>2]=b;b=J[84625]; -J[a+24>>2]=J[84624];J[a+28>>2]=b;b=J[84623];J[a+16>>2]=J[84622];J[a+20>>2]=b;b=J[84621];J[a+8>>2]=J[84620];J[a+12>>2]=b;b=J[84619];J[a>>2]=J[84618];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755876;if((c|0)==1)break c;J[688969]=a;J[688970]=6;J[688971]=-2147483640;b=J[84656];J[a+16>>2]=J[84655];J[a+20>>2]=b;b=J[84654];J[a+8>>2]=J[84653];J[a+12>>2]=b;b=J[84652];J[a>>2]=J[84651];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755888;if((c| -0)==1)break c;J[688972]=a;J[688973]=9;J[688974]=-2147483636;J[a+32>>2]=J[84680];b=J[84679];J[a+24>>2]=J[84678];J[a+28>>2]=b;b=J[84677];J[a+16>>2]=J[84676];J[a+20>>2]=b;b=J[84675];J[a+8>>2]=J[84674];J[a+12>>2]=b;b=J[84673];J[a>>2]=J[84672];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755900;if((c|0)==1)break c;J[688975]=a;J[688976]=6;J[688977]=-2147483640;b=J[84707];J[a+16>>2]=J[84706];J[a+20>>2]=b;b=J[84705];J[a+8>>2]=J[84704];J[a+12>>2]=b;b=J[84703];J[a>>2]=J[84702]; -J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755912;if((c|0)==1)break c;J[688978]=a;J[688979]=7;J[688980]=-2147483640;J[a+24>>2]=J[84729];b=J[84728];J[a+16>>2]=J[84727];J[a+20>>2]=b;b=J[84726];J[a+8>>2]=J[84725];J[a+12>>2]=b;b=J[84724];J[a>>2]=J[84723];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755924;if((c|0)==1)break c;J[688981]=a;J[688982]=6;J[688983]=-2147483640;b=J[84752];J[a+16>>2]=J[84751];J[a+20>>2]=b;b=J[84750];J[a+8>>2]=J[84749]; -J[a+12>>2]=b;b=J[84748];J[a>>2]=J[84747];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755936;if((c|0)==1)break c;J[688984]=a;J[688985]=4;J[688986]=-2147483640;b=J[84771];J[a+8>>2]=J[84770];J[a+12>>2]=b;b=J[84769];J[a>>2]=J[84768];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755948;if((c|0)==1)break c;J[688987]=a;J[688988]=4;J[688989]=-2147483640;b=J[84786];J[a+8>>2]=J[84785];J[a+12>>2]=b;b=J[84784];J[a>>2]=J[84783];J[a+4>>2]=b;J[a+16>> -2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755960;if((c|0)==1)break c;J[688990]=a;J[688991]=8;J[688992]=-2147483636;b=J[84805];J[a+24>>2]=J[84804];J[a+28>>2]=b;b=J[84803];J[a+16>>2]=J[84802];J[a+20>>2]=b;b=J[84801];J[a+8>>2]=J[84800];J[a+12>>2]=b;b=J[84799];J[a>>2]=J[84798];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2755972;if((c|0)==1)break c;J[688993]=a;J[688994]=8;J[688995]=-2147483636;b=J[84832];J[a+24>>2]=J[84831];J[a+28>>2]=b;b=J[84830];J[a+16>>2]= -J[84829];J[a+20>>2]=b;b=J[84828];J[a+8>>2]=J[84827];J[a+12>>2]=b;b=J[84826];J[a>>2]=J[84825];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2755984;if((c|0)==1)break c;J[688996]=a;J[688997]=5;J[688998]=-2147483640;J[a+16>>2]=J[84856];b=J[84855];J[a+8>>2]=J[84854];J[a+12>>2]=b;b=J[84853];J[a>>2]=J[84852];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=2755996}c=Z()|0;while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((a|0)!= -2755360)continue;break}ba(c|0);B()}J[688999]=a;J[689E3]=6;J[689001]=-2147483640;b=J[84875];J[a+16>>2]=J[84874];J[a+20>>2]=b;b=J[84873];J[a+8>>2]=J[84872];J[a+12>>2]=b;b=J[84871];J[a>>2]=J[84870];J[a+4>>2]=b;J[a+24>>2]=0;a=rc(32);J[689004]=a;J[689005]=5;J[689006]=-2147483640;J[a+16>>2]=J[83632];b=J[83631];J[a+8>>2]=J[83630];J[a+12>>2]=b;b=J[83629];J[a>>2]=J[83628];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;d:{b=2756028;e:{if((c|0)==1)break e;J[689007]=a;J[689008]=10;J[689009]= --2147483636;b=J[83680];J[a+32>>2]=J[83679];J[a+36>>2]=b;b=J[83678];J[a+24>>2]=J[83677];J[a+28>>2]=b;b=J[83676];J[a+16>>2]=J[83675];J[a+20>>2]=b;b=J[83674];J[a+8>>2]=J[83673];J[a+12>>2]=b;b=J[83672];J[a>>2]=J[83671];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756040;if((c|0)==1)break e;J[689010]=a;J[689011]=8;J[689012]=-2147483636;b=J[83713];J[a+24>>2]=J[83712];J[a+28>>2]=b;b=J[83711];J[a+16>>2]=J[83710];J[a+20>>2]=b;b=J[83709];J[a+8>>2]=J[83708];J[a+12>>2]=b;b=J[83707]; -J[a>>2]=J[83706];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756052;if((c|0)==1)break e;J[689013]=a;J[689014]=10;J[689015]=-2147483636;b=J[83744];J[a+32>>2]=J[83743];J[a+36>>2]=b;b=J[83742];J[a+24>>2]=J[83741];J[a+28>>2]=b;b=J[83740];J[a+16>>2]=J[83739];J[a+20>>2]=b;b=J[83738];J[a+8>>2]=J[83737];J[a+12>>2]=b;b=J[83736];J[a>>2]=J[83735];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756064;if((c|0)==1)break e;J[689016]=a;J[689017]=8;J[689018]= --2147483636;b=J[83791];J[a+24>>2]=J[83790];J[a+28>>2]=b;b=J[83789];J[a+16>>2]=J[83788];J[a+20>>2]=b;b=J[83787];J[a+8>>2]=J[83786];J[a+12>>2]=b;b=J[83785];J[a>>2]=J[83784];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756076;if((c|0)==1)break e;J[689019]=a;J[689020]=9;J[689021]=-2147483636;J[a+32>>2]=J[83820];b=J[83819];J[a+24>>2]=J[83818];J[a+28>>2]=b;b=J[83817];J[a+16>>2]=J[83816];J[a+20>>2]=b;b=J[83815];J[a+8>>2]=J[83814];J[a+12>>2]=b;b=J[83813];J[a>>2]=J[83812];J[a+ -4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756088;if((c|0)==1)break e;J[689022]=a;J[689023]=9;J[689024]=-2147483636;J[a+32>>2]=J[83850];b=J[83849];J[a+24>>2]=J[83848];J[a+28>>2]=b;b=J[83847];J[a+16>>2]=J[83846];J[a+20>>2]=b;b=J[83845];J[a+8>>2]=J[83844];J[a+12>>2]=b;b=J[83843];J[a>>2]=J[83842];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756100;if((c|0)==1)break e;J[689025]=a;J[689026]=5;J[689027]=-2147483640;J[a+16>>2]=J[83872];b=J[83871]; -J[a+8>>2]=J[83870];J[a+12>>2]=b;b=J[83869];J[a>>2]=J[83868];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756112;if((c|0)==1)break e;J[689028]=a;J[689029]=8;J[689030]=-2147483636;b=J[83896];J[a+24>>2]=J[83895];J[a+28>>2]=b;b=J[83894];J[a+16>>2]=J[83893];J[a+20>>2]=b;b=J[83892];J[a+8>>2]=J[83891];J[a+12>>2]=b;b=J[83890];J[a>>2]=J[83889];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756124;if((c|0)==1)break e;J[689031]=a;J[689032]=6;J[689033]= --2147483640;b=J[83919];J[a+16>>2]=J[83918];J[a+20>>2]=b;b=J[83917];J[a+8>>2]=J[83916];J[a+12>>2]=b;b=J[83915];J[a>>2]=J[83914];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756136;if((c|0)==1)break e;J[689034]=a;J[689035]=8;J[689036]=-2147483636;b=J[83944];J[a+24>>2]=J[83943];J[a+28>>2]=b;b=J[83942];J[a+16>>2]=J[83941];J[a+20>>2]=b;b=J[83940];J[a+8>>2]=J[83939];J[a+12>>2]=b;b=J[83938];J[a>>2]=J[83937];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]= -0;b=2756148;if((c|0)==1)break e;J[689037]=a;J[689038]=6;J[689039]=-2147483640;b=J[83967];J[a+16>>2]=J[83966];J[a+20>>2]=b;b=J[83965];J[a+8>>2]=J[83964];J[a+12>>2]=b;b=J[83963];J[a>>2]=J[83962];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756160;if((c|0)==1)break e;J[689040]=a;J[689041]=6;J[689042]=-2147483640;b=J[83988];J[a+16>>2]=J[83987];J[a+20>>2]=b;b=J[83986];J[a+8>>2]=J[83985];J[a+12>>2]=b;b=J[83984];J[a>>2]=J[83983];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)| -0;c=J[695492];J[695492]=0;b=2756172;if((c|0)==1)break e;J[689043]=a;J[689044]=7;J[689045]=-2147483640;J[a+24>>2]=J[84011];b=J[84010];J[a+16>>2]=J[84009];J[a+20>>2]=b;b=J[84008];J[a+8>>2]=J[84007];J[a+12>>2]=b;b=J[84006];J[a>>2]=J[84005];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756184;if((c|0)==1)break e;J[689046]=a;J[689047]=7;J[689048]=-2147483640;J[a+24>>2]=J[84035];b=J[84034];J[a+16>>2]=J[84033];J[a+20>>2]=b;b=J[84032];J[a+8>>2]=J[84031];J[a+12>>2]=b;b=J[84030]; -J[a>>2]=J[84029];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756196;if((c|0)==1)break e;J[689049]=a;J[689050]=4;J[689051]=-2147483640;b=J[84053];J[a+8>>2]=J[84052];J[a+12>>2]=b;b=J[84051];J[a>>2]=J[84050];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756208;if((c|0)==1)break e;J[689052]=a;J[689053]=9;J[689054]=-2147483636;J[a+32>>2]=J[84078];b=J[84077];J[a+24>>2]=J[84076];J[a+28>>2]=b;b=J[84075];J[a+16>>2]=J[84074];J[a+20>>2]=b;b=J[84073]; -J[a+8>>2]=J[84072];J[a+12>>2]=b;b=J[84071];J[a>>2]=J[84070];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756220;if((c|0)==1)break e;J[689055]=a;J[689056]=7;J[689057]=-2147483640;J[a+24>>2]=J[84104];b=J[84103];J[a+16>>2]=J[84102];J[a+20>>2]=b;b=J[84101];J[a+8>>2]=J[84100];J[a+12>>2]=b;b=J[84099];J[a>>2]=J[84098];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756232;if((c|0)==1)break e;J[689058]=a;J[689059]=10;J[689060]=-2147483636;b=J[84134]; -J[a+32>>2]=J[84133];J[a+36>>2]=b;b=J[84132];J[a+24>>2]=J[84131];J[a+28>>2]=b;b=J[84130];J[a+16>>2]=J[84129];J[a+20>>2]=b;b=J[84128];J[a+8>>2]=J[84127];J[a+12>>2]=b;b=J[84126];J[a>>2]=J[84125];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756244;if((c|0)==1)break e;J[689061]=a;J[689062]=6;J[689063]=-2147483640;b=J[84159];J[a+16>>2]=J[84158];J[a+20>>2]=b;b=J[84157];J[a+8>>2]=J[84156];J[a+12>>2]=b;b=J[84155];J[a>>2]=J[84154];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)| -0;c=J[695492];J[695492]=0;b=2756256;if((c|0)==1)break e;J[689064]=a;J[689065]=8;J[689066]=-2147483636;b=J[84184];J[a+24>>2]=J[84183];J[a+28>>2]=b;b=J[84182];J[a+16>>2]=J[84181];J[a+20>>2]=b;b=J[84180];J[a+8>>2]=J[84179];J[a+12>>2]=b;b=J[84178];J[a>>2]=J[84177];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756268;if((c|0)==1)break e;J[689067]=a;J[689068]=6;J[689069]=-2147483640;b=J[84207];J[a+16>>2]=J[84206];J[a+20>>2]=b;b=J[84205];J[a+8>>2]=J[84204];J[a+12>>2]=b;b=J[84203]; -J[a>>2]=J[84202];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756280;if((c|0)==1)break e;J[689070]=a;J[689071]=8;J[689072]=-2147483636;b=J[84232];J[a+24>>2]=J[84231];J[a+28>>2]=b;b=J[84230];J[a+16>>2]=J[84229];J[a+20>>2]=b;b=J[84228];J[a+8>>2]=J[84227];J[a+12>>2]=b;b=J[84226];J[a>>2]=J[84225];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756292;if((c|0)==1)break e;J[689073]=a;J[689074]=6;J[689075]=-2147483640;b=J[84255];J[a+16>>2]=J[84254]; -J[a+20>>2]=b;b=J[84253];J[a+8>>2]=J[84252];J[a+12>>2]=b;b=J[84251];J[a>>2]=J[84250];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756304;if((c|0)==1)break e;J[689076]=a;J[689077]=7;J[689078]=-2147483640;J[a+24>>2]=J[84278];b=J[84277];J[a+16>>2]=J[84276];J[a+20>>2]=b;b=J[84275];J[a+8>>2]=J[84274];J[a+12>>2]=b;b=J[84273];J[a>>2]=J[84272];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756316;if((c|0)==1)break e;J[689079]=a;J[689080]=7;J[689081]= --2147483640;J[a+24>>2]=J[84302];b=J[84301];J[a+16>>2]=J[84300];J[a+20>>2]=b;b=J[84299];J[a+8>>2]=J[84298];J[a+12>>2]=b;b=J[84297];J[a>>2]=J[84296];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756328;if((c|0)==1)break e;J[689082]=a;J[689083]=8;J[689084]=-2147483636;b=J[84328];J[a+24>>2]=J[84327];J[a+28>>2]=b;b=J[84326];J[a+16>>2]=J[84325];J[a+20>>2]=b;b=J[84324];J[a+8>>2]=J[84323];J[a+12>>2]=b;b=J[84322];J[a>>2]=J[84321];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)| -0;c=J[695492];J[695492]=0;b=2756340;if((c|0)==1)break e;J[689085]=a;J[689086]=5;J[689087]=-2147483640;J[a+16>>2]=J[84349];b=J[84348];J[a+8>>2]=J[84347];J[a+12>>2]=b;b=J[84346];J[a>>2]=J[84345];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756352;if((c|0)==1)break e;J[689088]=a;J[689089]=5;J[689090]=-2147483640;J[a+16>>2]=J[84367];b=J[84366];J[a+8>>2]=J[84365];J[a+12>>2]=b;b=J[84364];J[a>>2]=J[84363];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]= -0;b=2756364;if((c|0)==1)break e;J[689091]=a;J[689092]=5;J[689093]=-2147483640;J[a+16>>2]=J[84385];b=J[84384];J[a+8>>2]=J[84383];J[a+12>>2]=b;b=J[84382];J[a>>2]=J[84381];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756376;if((c|0)==1)break e;J[689094]=a;J[689095]=5;J[689096]=-2147483640;J[a+16>>2]=J[84403];b=J[84402];J[a+8>>2]=J[84401];J[a+12>>2]=b;b=J[84400];J[a>>2]=J[84399];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756388;if((c|0)== -1)break e;J[689097]=a;J[689098]=5;J[689099]=-2147483640;J[a+16>>2]=J[84421];b=J[84420];J[a+8>>2]=J[84419];J[a+12>>2]=b;b=J[84418];J[a>>2]=J[84417];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756400;if((c|0)==1)break e;J[689100]=a;J[689101]=4;J[689102]=-2147483640;b=J[84437];J[a+8>>2]=J[84436];J[a+12>>2]=b;b=J[84435];J[a>>2]=J[84434];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756412;if((c|0)==1)break e;J[689103]=a;J[689104]=5;J[689105]= --2147483640;J[a+16>>2]=J[84454];b=J[84453];J[a+8>>2]=J[84452];J[a+12>>2]=b;b=J[84451];J[a>>2]=J[84450];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756424;if((c|0)==1)break e;J[689106]=a;J[689107]=5;J[689108]=-2147483640;J[a+16>>2]=J[84472];b=J[84471];J[a+8>>2]=J[84470];J[a+12>>2]=b;b=J[84469];J[a>>2]=J[84468];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756436;if((c|0)==1)break e;J[689109]=a;J[689110]=5;J[689111]=-2147483640;J[a+16>>2]= -J[84490];b=J[84489];J[a+8>>2]=J[84488];J[a+12>>2]=b;b=J[84487];J[a>>2]=J[84486];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756448;if((c|0)==1)break e;J[689112]=a;J[689113]=5;J[689114]=-2147483640;J[a+16>>2]=J[84508];b=J[84507];J[a+8>>2]=J[84506];J[a+12>>2]=b;b=J[84505];J[a>>2]=J[84504];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756460;if((c|0)==1)break e;J[689115]=a;J[689116]=5;J[689117]=-2147483640;J[a+16>>2]=J[84526];b=J[84525];J[a+ -8>>2]=J[84524];J[a+12>>2]=b;b=J[84523];J[a>>2]=J[84522];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756472;if((c|0)==1)break e;J[689118]=a;J[689119]=5;J[689120]=-2147483640;J[a+16>>2]=J[84544];b=J[84543];J[a+8>>2]=J[84542];J[a+12>>2]=b;b=J[84541];J[a>>2]=J[84540];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756484;if((c|0)==1)break e;J[689121]=a;J[689122]=5;J[689123]=-2147483640;J[a+16>>2]=J[84562];b=J[84561];J[a+8>>2]=J[84560];J[a+12>> -2]=b;b=J[84559];J[a>>2]=J[84558];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756496;if((c|0)==1)break e;J[689124]=a;J[689125]=7;J[689126]=-2147483640;J[a+24>>2]=J[84584];b=J[84583];J[a+16>>2]=J[84582];J[a+20>>2]=b;b=J[84581];J[a+8>>2]=J[84580];J[a+12>>2]=b;b=J[84579];J[a>>2]=J[84578];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756508;if((c|0)==1)break e;J[689127]=a;J[689128]=7;J[689129]=-2147483640;J[a+24>>2]=J[84608];b=J[84607];J[a+ -16>>2]=J[84606];J[a+20>>2]=b;b=J[84605];J[a+8>>2]=J[84604];J[a+12>>2]=b;b=J[84603];J[a>>2]=J[84602];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756520;if((c|0)==1)break e;J[689130]=a;J[689131]=10;J[689132]=-2147483636;b=J[84638];J[a+32>>2]=J[84637];J[a+36>>2]=b;b=J[84636];J[a+24>>2]=J[84635];J[a+28>>2]=b;b=J[84634];J[a+16>>2]=J[84633];J[a+20>>2]=b;b=J[84632];J[a+8>>2]=J[84631];J[a+12>>2]=b;b=J[84630];J[a>>2]=J[84629];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,32)|0; -c=J[695492];J[695492]=0;b=2756532;if((c|0)==1)break e;J[689133]=a;J[689134]=6;J[689135]=-2147483640;b=J[84663];J[a+16>>2]=J[84662];J[a+20>>2]=b;b=J[84661];J[a+8>>2]=J[84660];J[a+12>>2]=b;b=J[84659];J[a>>2]=J[84658];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756544;if((c|0)==1)break e;J[689136]=a;J[689137]=9;J[689138]=-2147483636;J[a+32>>2]=J[84690];b=J[84689];J[a+24>>2]=J[84688];J[a+28>>2]=b;b=J[84687];J[a+16>>2]=J[84686];J[a+20>>2]=b;b=J[84685];J[a+8>>2]=J[84684]; -J[a+12>>2]=b;b=J[84683];J[a>>2]=J[84682];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756556;if((c|0)==1)break e;J[689139]=a;J[689140]=6;J[689141]=-2147483640;b=J[84714];J[a+16>>2]=J[84713];J[a+20>>2]=b;b=J[84712];J[a+8>>2]=J[84711];J[a+12>>2]=b;b=J[84710];J[a>>2]=J[84709];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756568;if((c|0)==1)break e;J[689142]=a;J[689143]=7;J[689144]=-2147483640;J[a+24>>2]=J[84737];b=J[84736];J[a+16>>2]=J[84735]; -J[a+20>>2]=b;b=J[84734];J[a+8>>2]=J[84733];J[a+12>>2]=b;b=J[84732];J[a>>2]=J[84731];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756580;if((c|0)==1)break e;J[689145]=a;J[689146]=6;J[689147]=-2147483640;b=J[84759];J[a+16>>2]=J[84758];J[a+20>>2]=b;b=J[84757];J[a+8>>2]=J[84756];J[a+12>>2]=b;b=J[84755];J[a>>2]=J[84754];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756592;if((c|0)==1)break e;J[689148]=a;J[689149]=4;J[689150]=-2147483640;b=J[84776]; -J[a+8>>2]=J[84775];J[a+12>>2]=b;b=J[84774];J[a>>2]=J[84773];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756604;if((c|0)==1)break e;J[689151]=a;J[689152]=4;J[689153]=-2147483640;b=J[84791];J[a+8>>2]=J[84790];J[a+12>>2]=b;b=J[84789];J[a>>2]=J[84788];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756616;if((c|0)==1)break e;J[689154]=a;J[689155]=8;J[689156]=-2147483636;b=J[84814];J[a+24>>2]=J[84813];J[a+28>>2]=b;b=J[84812];J[a+16>>2]=J[84811]; -J[a+20>>2]=b;b=J[84810];J[a+8>>2]=J[84809];J[a+12>>2]=b;b=J[84808];J[a>>2]=J[84807];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756628;if((c|0)==1)break e;J[689157]=a;J[689158]=8;J[689159]=-2147483636;b=J[84841];J[a+24>>2]=J[84840];J[a+28>>2]=b;b=J[84839];J[a+16>>2]=J[84838];J[a+20>>2]=b;b=J[84837];J[a+8>>2]=J[84836];J[a+12>>2]=b;b=J[84835];J[a>>2]=J[84834];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756640;if((c|0)==1)break e;J[689160]= -a;J[689161]=5;J[689162]=-2147483640;J[a+16>>2]=J[84862];b=J[84861];J[a+8>>2]=J[84860];J[a+12>>2]=b;b=J[84859];J[a>>2]=J[84858];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=2756652}c=Z()|0;while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((a|0)!=2756016)continue;break}ba(c|0);B()}J[689163]=a;J[689164]=6;J[689165]=-2147483640;b=J[84882];J[a+16>>2]=J[84881];J[a+20>>2]=b;b=J[84880];J[a+8>>2]=J[84879];J[a+12>>2]=b;b=J[84878];J[a>>2]=J[84877];J[a+4>>2]= -b;J[a+24>>2]=0;a=rc(32);J[689168]=a;J[689169]=5;J[689170]=-2147483640;J[a+16>>2]=J[83653];b=J[83652];J[a+8>>2]=J[83651];J[a+12>>2]=b;b=J[83650];J[a>>2]=J[83649];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;f:{b=2756684;g:{if((c|0)==1)break g;J[689171]=a;J[689172]=10;J[689173]=-2147483636;b=J[83693];J[a+32>>2]=J[83692];J[a+36>>2]=b;b=J[83691];J[a+24>>2]=J[83690];J[a+28>>2]=b;b=J[83689];J[a+16>>2]=J[83688];J[a+20>>2]=b;b=J[83687];J[a+8>>2]=J[83686];J[a+12>>2]=b;b=J[83685]; -J[a>>2]=J[83684];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756696;if((c|0)==1)break g;J[689174]=a;J[689175]=8;J[689176]=-2147483636;b=J[83722];J[a+24>>2]=J[83721];J[a+28>>2]=b;b=J[83720];J[a+16>>2]=J[83719];J[a+20>>2]=b;b=J[83718];J[a+8>>2]=J[83717];J[a+12>>2]=b;b=J[83716];J[a>>2]=J[83715];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756708;if((c|0)==1)break g;J[689177]=a;J[689178]=10;J[689179]=-2147483636;b=J[83773];J[a+32>>2]=J[83772]; -J[a+36>>2]=b;b=J[83771];J[a+24>>2]=J[83770];J[a+28>>2]=b;b=J[83769];J[a+16>>2]=J[83768];J[a+20>>2]=b;b=J[83767];J[a+8>>2]=J[83766];J[a+12>>2]=b;b=J[83765];J[a>>2]=J[83764];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756720;if((c|0)==1)break g;J[689180]=a;J[689181]=8;J[689182]=-2147483636;b=J[83800];J[a+24>>2]=J[83799];J[a+28>>2]=b;b=J[83798];J[a+16>>2]=J[83797];J[a+20>>2]=b;b=J[83796];J[a+8>>2]=J[83795];J[a+12>>2]=b;b=J[83794];J[a>>2]=J[83793];J[a+4>>2]=b;J[a+32>>2]= -0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756732;if((c|0)==1)break g;J[689183]=a;J[689184]=9;J[689185]=-2147483636;J[a+32>>2]=J[83830];b=J[83829];J[a+24>>2]=J[83828];J[a+28>>2]=b;b=J[83827];J[a+16>>2]=J[83826];J[a+20>>2]=b;b=J[83825];J[a+8>>2]=J[83824];J[a+12>>2]=b;b=J[83823];J[a>>2]=J[83822];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756744;if((c|0)==1)break g;J[689186]=a;J[689187]=9;J[689188]=-2147483636;J[a+32>>2]=J[83860];b=J[83859];J[a+24>>2]=J[83858]; -J[a+28>>2]=b;b=J[83857];J[a+16>>2]=J[83856];J[a+20>>2]=b;b=J[83855];J[a+8>>2]=J[83854];J[a+12>>2]=b;b=J[83853];J[a>>2]=J[83852];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756756;if((c|0)==1)break g;J[689189]=a;J[689190]=5;J[689191]=-2147483640;J[a+16>>2]=J[83878];b=J[83877];J[a+8>>2]=J[83876];J[a+12>>2]=b;b=J[83875];J[a>>2]=J[83874];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756768;if((c|0)==1)break g;J[689192]=a;J[689193]=8;J[689194]= --2147483636;b=J[83905];J[a+24>>2]=J[83904];J[a+28>>2]=b;b=J[83903];J[a+16>>2]=J[83902];J[a+20>>2]=b;b=J[83901];J[a+8>>2]=J[83900];J[a+12>>2]=b;b=J[83899];J[a>>2]=J[83898];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756780;if((c|0)==1)break g;J[689195]=a;J[689196]=6;J[689197]=-2147483640;b=J[83926];J[a+16>>2]=J[83925];J[a+20>>2]=b;b=J[83924];J[a+8>>2]=J[83923];J[a+12>>2]=b;b=J[83922];J[a>>2]=J[83921];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]= -0;b=2756792;if((c|0)==1)break g;J[689198]=a;J[689199]=8;J[689200]=-2147483636;b=J[83953];J[a+24>>2]=J[83952];J[a+28>>2]=b;b=J[83951];J[a+16>>2]=J[83950];J[a+20>>2]=b;b=J[83949];J[a+8>>2]=J[83948];J[a+12>>2]=b;b=J[83947];J[a>>2]=J[83946];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756804;if((c|0)==1)break g;J[689201]=a;J[689202]=6;J[689203]=-2147483640;b=J[83974];J[a+16>>2]=J[83973];J[a+20>>2]=b;b=J[83972];J[a+8>>2]=J[83971];J[a+12>>2]=b;b=J[83970];J[a>>2]=J[83969]; -J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756816;if((c|0)==1)break g;J[689204]=a;J[689205]=6;J[689206]=-2147483640;b=J[83995];J[a+16>>2]=J[83994];J[a+20>>2]=b;b=J[83993];J[a+8>>2]=J[83992];J[a+12>>2]=b;b=J[83991];J[a>>2]=J[83990];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756828;if((c|0)==1)break g;J[689207]=a;J[689208]=7;J[689209]=-2147483640;J[a+24>>2]=J[84019];b=J[84018];J[a+16>>2]=J[84017];J[a+20>>2]=b;b=J[84016];J[a+8>>2]=J[84015]; -J[a+12>>2]=b;b=J[84014];J[a>>2]=J[84013];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756840;if((c|0)==1)break g;J[689210]=a;J[689211]=7;J[689212]=-2147483640;J[a+24>>2]=J[84043];b=J[84042];J[a+16>>2]=J[84041];J[a+20>>2]=b;b=J[84040];J[a+8>>2]=J[84039];J[a+12>>2]=b;b=J[84038];J[a>>2]=J[84037];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756852;if((c|0)==1)break g;J[689213]=a;J[689214]=4;J[689215]=-2147483640;b=J[84058];J[a+8>>2]=J[84057]; -J[a+12>>2]=b;b=J[84056];J[a>>2]=J[84055];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756864;if((c|0)==1)break g;J[689216]=a;J[689217]=9;J[689218]=-2147483636;J[a+32>>2]=J[84088];b=J[84087];J[a+24>>2]=J[84086];J[a+28>>2]=b;b=J[84085];J[a+16>>2]=J[84084];J[a+20>>2]=b;b=J[84083];J[a+8>>2]=J[84082];J[a+12>>2]=b;b=J[84081];J[a>>2]=J[84080];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756876;if((c|0)==1)break g;J[689219]=a;J[689220]=7;J[689221]= --2147483640;J[a+24>>2]=J[84112];b=J[84111];J[a+16>>2]=J[84110];J[a+20>>2]=b;b=J[84109];J[a+8>>2]=J[84108];J[a+12>>2]=b;b=J[84107];J[a>>2]=J[84106];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756888;if((c|0)==1)break g;J[689222]=a;J[689223]=10;J[689224]=-2147483636;b=J[84145];J[a+32>>2]=J[84144];J[a+36>>2]=b;b=J[84143];J[a+24>>2]=J[84142];J[a+28>>2]=b;b=J[84141];J[a+16>>2]=J[84140];J[a+20>>2]=b;b=J[84139];J[a+8>>2]=J[84138];J[a+12>>2]=b;b=J[84137];J[a>>2]=J[84136];J[a+ -4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756900;if((c|0)==1)break g;J[689225]=a;J[689226]=6;J[689227]=-2147483640;b=J[84166];J[a+16>>2]=J[84165];J[a+20>>2]=b;b=J[84164];J[a+8>>2]=J[84163];J[a+12>>2]=b;b=J[84162];J[a>>2]=J[84161];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756912;if((c|0)==1)break g;J[689228]=a;J[689229]=8;J[689230]=-2147483636;b=J[84193];J[a+24>>2]=J[84192];J[a+28>>2]=b;b=J[84191];J[a+16>>2]=J[84190];J[a+20>>2]=b;b=J[84189]; -J[a+8>>2]=J[84188];J[a+12>>2]=b;b=J[84187];J[a>>2]=J[84186];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756924;if((c|0)==1)break g;J[689231]=a;J[689232]=6;J[689233]=-2147483640;b=J[84214];J[a+16>>2]=J[84213];J[a+20>>2]=b;b=J[84212];J[a+8>>2]=J[84211];J[a+12>>2]=b;b=J[84210];J[a>>2]=J[84209];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2756936;if((c|0)==1)break g;J[689234]=a;J[689235]=8;J[689236]=-2147483636;b=J[84241];J[a+24>>2]=J[84240]; -J[a+28>>2]=b;b=J[84239];J[a+16>>2]=J[84238];J[a+20>>2]=b;b=J[84237];J[a+8>>2]=J[84236];J[a+12>>2]=b;b=J[84235];J[a>>2]=J[84234];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756948;if((c|0)==1)break g;J[689237]=a;J[689238]=6;J[689239]=-2147483640;b=J[84262];J[a+16>>2]=J[84261];J[a+20>>2]=b;b=J[84260];J[a+8>>2]=J[84259];J[a+12>>2]=b;b=J[84258];J[a>>2]=J[84257];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756960;if((c|0)==1)break g;J[689240]= -a;J[689241]=7;J[689242]=-2147483640;J[a+24>>2]=J[84286];b=J[84285];J[a+16>>2]=J[84284];J[a+20>>2]=b;b=J[84283];J[a+8>>2]=J[84282];J[a+12>>2]=b;b=J[84281];J[a>>2]=J[84280];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756972;if((c|0)==1)break g;J[689243]=a;J[689244]=7;J[689245]=-2147483640;J[a+24>>2]=J[84310];b=J[84309];J[a+16>>2]=J[84308];J[a+20>>2]=b;b=J[84307];J[a+8>>2]=J[84306];J[a+12>>2]=b;b=J[84305];J[a>>2]=J[84304];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)| -0;c=J[695492];J[695492]=0;b=2756984;if((c|0)==1)break g;J[689246]=a;J[689247]=8;J[689248]=-2147483636;b=J[84337];J[a+24>>2]=J[84336];J[a+28>>2]=b;b=J[84335];J[a+16>>2]=J[84334];J[a+20>>2]=b;b=J[84333];J[a+8>>2]=J[84332];J[a+12>>2]=b;b=J[84331];J[a>>2]=J[84330];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2756996;if((c|0)==1)break g;J[689249]=a;J[689250]=5;J[689251]=-2147483640;J[a+16>>2]=J[84355];b=J[84354];J[a+8>>2]=J[84353];J[a+12>>2]=b;b=J[84352];J[a>>2]=J[84351]; -J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757008;if((c|0)==1)break g;J[689252]=a;J[689253]=5;J[689254]=-2147483640;J[a+16>>2]=J[84373];b=J[84372];J[a+8>>2]=J[84371];J[a+12>>2]=b;b=J[84370];J[a>>2]=J[84369];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757020;if((c|0)==1)break g;J[689255]=a;J[689256]=5;J[689257]=-2147483640;J[a+16>>2]=J[84391];b=J[84390];J[a+8>>2]=J[84389];J[a+12>>2]=b;b=J[84388];J[a>>2]=J[84387];J[a+4>>2]=b;J[a+20>>2]= -0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757032;if((c|0)==1)break g;J[689258]=a;J[689259]=5;J[689260]=-2147483640;J[a+16>>2]=J[84409];b=J[84408];J[a+8>>2]=J[84407];J[a+12>>2]=b;b=J[84406];J[a>>2]=J[84405];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757044;if((c|0)==1)break g;J[689261]=a;J[689262]=5;J[689263]=-2147483640;J[a+16>>2]=J[84427];b=J[84426];J[a+8>>2]=J[84425];J[a+12>>2]=b;b=J[84424];J[a>>2]=J[84423];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)| -0;c=J[695492];J[695492]=0;b=2757056;if((c|0)==1)break g;J[689264]=a;J[689265]=4;J[689266]=-2147483640;b=J[84442];J[a+8>>2]=J[84441];J[a+12>>2]=b;b=J[84440];J[a>>2]=J[84439];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757068;if((c|0)==1)break g;J[689267]=a;J[689268]=5;J[689269]=-2147483640;J[a+16>>2]=J[84460];b=J[84459];J[a+8>>2]=J[84458];J[a+12>>2]=b;b=J[84457];J[a>>2]=J[84456];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757080;if((c| -0)==1)break g;J[689270]=a;J[689271]=5;J[689272]=-2147483640;J[a+16>>2]=J[84478];b=J[84477];J[a+8>>2]=J[84476];J[a+12>>2]=b;b=J[84475];J[a>>2]=J[84474];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757092;if((c|0)==1)break g;J[689273]=a;J[689274]=5;J[689275]=-2147483640;J[a+16>>2]=J[84496];b=J[84495];J[a+8>>2]=J[84494];J[a+12>>2]=b;b=J[84493];J[a>>2]=J[84492];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757104;if((c|0)==1)break g;J[689276]= -a;J[689277]=5;J[689278]=-2147483640;J[a+16>>2]=J[84514];b=J[84513];J[a+8>>2]=J[84512];J[a+12>>2]=b;b=J[84511];J[a>>2]=J[84510];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757116;if((c|0)==1)break g;J[689279]=a;J[689280]=5;J[689281]=-2147483640;J[a+16>>2]=J[84532];b=J[84531];J[a+8>>2]=J[84530];J[a+12>>2]=b;b=J[84529];J[a>>2]=J[84528];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757128;if((c|0)==1)break g;J[689282]=a;J[689283]=5;J[689284]= --2147483640;J[a+16>>2]=J[84550];b=J[84549];J[a+8>>2]=J[84548];J[a+12>>2]=b;b=J[84547];J[a>>2]=J[84546];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757140;if((c|0)==1)break g;J[689285]=a;J[689286]=5;J[689287]=-2147483640;J[a+16>>2]=J[84568];b=J[84567];J[a+8>>2]=J[84566];J[a+12>>2]=b;b=J[84565];J[a>>2]=J[84564];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757152;if((c|0)==1)break g;J[689288]=a;J[689289]=7;J[689290]=-2147483640;J[a+24>>2]= -J[84592];b=J[84591];J[a+16>>2]=J[84590];J[a+20>>2]=b;b=J[84589];J[a+8>>2]=J[84588];J[a+12>>2]=b;b=J[84587];J[a>>2]=J[84586];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757164;if((c|0)==1)break g;J[689291]=a;J[689292]=7;J[689293]=-2147483640;J[a+24>>2]=J[84616];b=J[84615];J[a+16>>2]=J[84614];J[a+20>>2]=b;b=J[84613];J[a+8>>2]=J[84612];J[a+12>>2]=b;b=J[84611];J[a>>2]=J[84610];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2757176;if((c|0)== -1)break g;J[689294]=a;J[689295]=10;J[689296]=-2147483636;b=J[84649];J[a+32>>2]=J[84648];J[a+36>>2]=b;b=J[84647];J[a+24>>2]=J[84646];J[a+28>>2]=b;b=J[84645];J[a+16>>2]=J[84644];J[a+20>>2]=b;b=J[84643];J[a+8>>2]=J[84642];J[a+12>>2]=b;b=J[84641];J[a>>2]=J[84640];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757188;if((c|0)==1)break g;J[689297]=a;J[689298]=6;J[689299]=-2147483640;b=J[84670];J[a+16>>2]=J[84669];J[a+20>>2]=b;b=J[84668];J[a+8>>2]=J[84667];J[a+12>>2]=b;b=J[84666]; -J[a>>2]=J[84665];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2757200;if((c|0)==1)break g;J[689300]=a;J[689301]=9;J[689302]=-2147483636;J[a+32>>2]=J[84700];b=J[84699];J[a+24>>2]=J[84698];J[a+28>>2]=b;b=J[84697];J[a+16>>2]=J[84696];J[a+20>>2]=b;b=J[84695];J[a+8>>2]=J[84694];J[a+12>>2]=b;b=J[84693];J[a>>2]=J[84692];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757212;if((c|0)==1)break g;J[689303]=a;J[689304]=6;J[689305]=-2147483640;b=J[84721]; -J[a+16>>2]=J[84720];J[a+20>>2]=b;b=J[84719];J[a+8>>2]=J[84718];J[a+12>>2]=b;b=J[84717];J[a>>2]=J[84716];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757224;if((c|0)==1)break g;J[689306]=a;J[689307]=7;J[689308]=-2147483640;J[a+24>>2]=J[84745];b=J[84744];J[a+16>>2]=J[84743];J[a+20>>2]=b;b=J[84742];J[a+8>>2]=J[84741];J[a+12>>2]=b;b=J[84740];J[a>>2]=J[84739];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757236;if((c|0)==1)break g;J[689309]= -a;J[689310]=6;J[689311]=-2147483640;b=J[84766];J[a+16>>2]=J[84765];J[a+20>>2]=b;b=J[84764];J[a+8>>2]=J[84763];J[a+12>>2]=b;b=J[84762];J[a>>2]=J[84761];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757248;if((c|0)==1)break g;J[689312]=a;J[689313]=4;J[689314]=-2147483640;b=J[84781];J[a+8>>2]=J[84780];J[a+12>>2]=b;b=J[84779];J[a>>2]=J[84778];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757260;if((c|0)==1)break g;J[689315]=a;J[689316]=4;J[689317]= --2147483640;b=J[84796];J[a+8>>2]=J[84795];J[a+12>>2]=b;b=J[84794];J[a>>2]=J[84793];J[a+4>>2]=b;J[a+16>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2757272;if((c|0)==1)break g;J[689318]=a;J[689319]=8;J[689320]=-2147483636;b=J[84823];J[a+24>>2]=J[84822];J[a+28>>2]=b;b=J[84821];J[a+16>>2]=J[84820];J[a+20>>2]=b;b=J[84819];J[a+8>>2]=J[84818];J[a+12>>2]=b;b=J[84817];J[a>>2]=J[84816];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;b=2757284;if((c|0)==1)break g;J[689321]= -a;J[689322]=8;J[689323]=-2147483636;b=J[84850];J[a+24>>2]=J[84849];J[a+28>>2]=b;b=J[84848];J[a+16>>2]=J[84847];J[a+20>>2]=b;b=J[84846];J[a+8>>2]=J[84845];J[a+12>>2]=b;b=J[84844];J[a>>2]=J[84843];J[a+4>>2]=b;J[a+32>>2]=0;J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;b=2757296;if((c|0)==1)break g;J[689324]=a;J[689325]=5;J[689326]=-2147483640;J[a+16>>2]=J[84868];b=J[84867];J[a+8>>2]=J[84866];J[a+12>>2]=b;b=J[84865];J[a>>2]=J[84864];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]= -0;if((b|0)!=1)break f;b=2757308}c=Z()|0;while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((a|0)!=2756672)continue;break}ba(c|0);B()}J[689327]=a;J[689328]=6;J[689329]=-2147483640;b=J[84889];J[a+16>>2]=J[84888];J[a+20>>2]=b;b=J[84887];J[a+8>>2]=J[84886];J[a+12>>2]=b;b=J[84885];J[a>>2]=J[84884];J[a+4>>2]=b;J[a+24>>2]=0;J[689331]=2757328;J[689332]=0;J[689333]=0;J[695492]=0;c=$(4,32)|0;a=J[695492];J[695492]=0;h:{i:{j:{if((a|0)!=1)k:{J[c+8>>2]=2757328;J[c>>2]=0;J[c+4>>2]=0;a=28596;J[c+16>>2]=28596;J[689331]= -c;J[689332]=c;H[c+12|0]=1;J[689333]=1;H[c+30|0]=0;H[c+31|0]=10;b=K[22636]|K[22637]<<8|(K[22638]<<16|K[22639]<<24);d=K[22632]|K[22633]<<8|(K[22634]<<16|K[22635]<<24);H[c+20|0]=d;H[c+21|0]=d>>>8;H[c+22|0]=d>>>16;H[c+23|0]=d>>>24;H[c+24|0]=b;H[c+25|0]=b>>>8;H[c+26|0]=b>>>16;H[c+27|0]=b>>>24;b=K[22640]|K[22641]<<8;H[c+28|0]=b;H[c+29|0]=b>>>8;l:{m:{while(1){n:{o:{if((a|0)>=721){b=J[c>>2];if(b)break o;a=c;break m}if((a|0)==720){b=c;break l}b=J[c+4>>2];if(!b)break n}a=J[b+16>>2];c=b;continue}break}a=c+4| -0}J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[b+16>>2]=720;J[b+8>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[a>>2]=b;c=b;d=J[J[689331]>>2];if(d){J[689331]=d;c=J[a>>2]}Ic(J[689332],c);J[689333]=J[689333]+1}p:{if(H[b+31|0]<0){J[b+24>>2]=7;a=J[b+20>>2];break p}H[b+31|0]=7;a=b+20|0}H[a+7|0]=0;b=K[28536]|K[28537]<<8|(K[28538]<<16|K[28539]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28533]|K[28534]<<8|(K[28535]<<16|K[28536]<<24); -H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];q:{r:{if(!a){c=2757328;b=2757328;break r}while(1){b=a;c=J[a+16>>2];if((c|0)>=1257){c=a;a=J[a>>2];if(a)continue;break r}if((c|0)==1256)break q;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1256;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+ -1}J[695492]=0;ga(2830,a+20|0,22606,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];s:{t:{if(!a){c=2757328;b=2757328;break t}while(1){b=a;c=J[a+16>>2];if((c|0)>=28595){c=a;a=J[a>>2];if(a)continue;break t}if((c|0)==28594)break s;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28594;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332], -b);J[689333]=J[689333]+1}u:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break u}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22869]|K[22870]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22865]|K[22866]<<8|(K[22867]<<16|K[22868]<<24);c=K[22861]|K[22862]<<8|(K[22863]<<16|K[22864]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];v:{w:{if(!a){c=2757328;b=2757328;break w}while(1){b=a;c=J[a+16>>2];if((c|0)>=28604){c=a;a=J[a>>2];if(a)continue; -break w}if((c|0)==28603)break v;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28603;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,24384,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];x:{y:{if(!a){c=2757328;b=2757328;break y}while(1){b=a;c=J[a+16>>2];if((c|0)>=776){c= -a;a=J[a>>2];if(a)continue;break y}if((c|0)==775)break x;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=775;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}z:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break z}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22684]|K[22685]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22680]|K[22681]<< -8|(K[22682]<<16|K[22683]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];A:{B:{if(!a){c=2757328;b=2757328;break B}while(1){b=a;c=J[a+16>>2];if((c|0)>=1258){c=a;a=J[a>>2];if(a)continue;break B}if((c|0)==1257)break A;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1257;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332], -b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,22495,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];C:{D:{if(!a){c=2757328;b=2757328;break D}while(1){b=a;c=J[a+16>>2];if((c|0)>=28605){c=a;a=J[a>>2];if(a)continue;break D}if((c|0)==28604)break C;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28604;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]= -d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,22821,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];E:{F:{if(!a){c=2757328;b=2757328;break F}while(1){b=a;c=J[a+16>>2];if((c|0)>=28596){c=a;a=J[a>>2];if(a)continue;break F}if((c|0)==28595)break E;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28595;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a; -d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}G:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break G}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22734]|K[22735]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22730]|K[22731]<<8|(K[22732]<<16|K[22733]<<24);c=K[22726]|K[22727]<<8|(K[22728]<<16|K[22729]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];H:{I:{if(!a){c=2757328;b=2757328;break I}while(1){b= -a;c=J[a+16>>2];if((c|0)>=20867){c=a;a=J[a>>2];if(a)continue;break I}if((c|0)==20866)break H;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=20866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break J}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20844]|K[20845]<<8;H[a+4| -0]=b;H[a+5|0]=b>>>8;b=K[20840]|K[20841]<<8|(K[20842]<<16|K[20843]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];K:{L:{if(!a){c=2757328;b=2757328;break L}while(1){b=a;c=J[a+16>>2];if((c|0)>=21867){c=a;a=J[a>>2];if(a)continue;break L}if((c|0)==21866)break K;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=21866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>> -2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}M:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break M}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20442]|K[20443]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20438]|K[20439]<<8|(K[20440]<<16|K[20441]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];N:{O:{if(!a){c=2757328;b=2757328;break O}while(1){b=a;c=J[a+16>>2];if((c|0)>=10008){c=a;a=J[a>>2];if(a)continue;break O}if((c|0)==10007)break N;a=J[b+4>>2];if(a)continue;break}c=b+ -4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=10007;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,17825,14)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];P:{Q:{if(!a){c=2757328;b=2757328;break Q}while(1){b=a;c=J[a+16>>2];if((c|0)>=856){c=a;a=J[a>>2];if(a)continue;break Q}if((c|0)==855)break P;a=J[b+ -4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=855;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}R:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break R}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22698]|K[22699]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22694]|K[22695]<<8|(K[22696]<<16|K[22697]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+ -2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];S:{T:{if(!a){c=2757328;b=2757328;break T}while(1){b=a;c=J[a+16>>2];if((c|0)>=867){c=a;a=J[a>>2];if(a)continue;break T}if((c|0)==866)break S;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}U:{if(H[a+31|0]<0){J[a+24>> -2]=5;a=J[a+20>>2];break U}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22604];b=K[22600]|K[22601]<<8|(K[22602]<<16|K[22603]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];V:{W:{if(!a){c=2757328;b=2757328;break W}while(1){b=a;c=J[a+16>>2];if((c|0)>=1252){c=a;a=J[a>>2];if(a)continue;break W}if((c|0)==1251)break V;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1251;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>> -2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,28281,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];X:{Y:{if(!a){c=2757328;b=2757328;break Y}while(1){b=a;c=J[a+16>>2];if((c|0)>=853){c=a;a=J[a>>2];if(a)continue;break Y}if((c|0)==852)break X;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=852;J[a+8>>2]=b;J[a>> -2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Z:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Z}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24709]|K[24710]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24705]|K[24706]<<8|(K[24707]<<16|K[24708]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];_:{$:{if(!a){c=2757328;b=2757328;break $}while(1){b=a;c=J[a+16>>2];if((c|0)>=1251){c=a;a=J[a>> -2];if(a)continue;break $}if((c|0)==1250)break _;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1250;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,28512,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];aa:{ba:{if(!a){c=2757328;b=2757328;break ba}while(1){b=a;c=J[a+ -16>>2];if((c|0)>=937){c=a;a=J[a>>2];if(a)continue;break ba}if((c|0)==936)break aa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}ca:{if(H[a+31|0]<0){J[a+24>>2]=3;a=J[a+20>>2];break ca}H[a+31|0]=3;a=a+20|0}H[a+3|0]=0;H[a+2|0]=K[21169];b=K[21167]|K[21168]<< -8;H[a|0]=b;H[a+1|0]=b>>>8;a=J[689332];da:{ea:{if(!a){c=2757328;b=2757328;break ea}while(1){b=a;c=J[a+16>>2];if((c|0)>=28593){c=a;a=J[a>>2];if(a)continue;break ea}if((c|0)==28592)break da;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28592;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}fa:{if(H[a+31|0]<0){J[a+ -24>>2]=10;a=J[a+20>>2];break fa}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24778]|K[24779]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24774]|K[24775]<<8|(K[24776]<<16|K[24777]<<24);c=K[24770]|K[24771]<<8|(K[24772]<<16|K[24773]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];ga:{ha:{if(!a){c=2757328;b=2757328;break ha}while(1){b=a;c=J[a+16>>2];if((c|0)>=28598){c=a;a=J[a>>2];if(a)continue;break ha}if((c|0)==28597)break ga;a=J[b+4>> -2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28597;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}ia:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ia}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22544]|K[22545]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22540]|K[22541]<<8|(K[22542]<<16|K[22543]<<24);c=K[22536]|K[22537]<<8|(K[22538]<< -16|K[22539]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];ja:{ka:{if(!a){c=2757328;b=2757328;break ka}while(1){b=a;c=J[a+16>>2];if((c|0)>=738){c=a;a=J[a>>2];if(a)continue;break ka}if((c|0)==737)break ja;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=737;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>> -2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}la:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break la}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22512]|K[22513]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22508]|K[22509]<<8|(K[22510]<<16|K[22511]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];ma:{na:{if(!a){c=2757328;b=2757328;break na}while(1){b=a;c=J[a+16>>2];if((c|0)>=870){c=a;a=J[a>>2];if(a)continue;break na}if((c|0)==869)break ma;a=J[b+4>>2];if(a)continue;break}c= -b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=869;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}oa:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break oa}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22304]|K[22305]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22300]|K[22301]<<8|(K[22302]<<16|K[22303]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24; -a=J[689332];pa:{qa:{if(!a){c=2757328;b=2757328;break qa}while(1){b=a;c=J[a+16>>2];if((c|0)>=1254){c=a;a=J[a>>2];if(a)continue;break qa}if((c|0)==1253)break pa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1253;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,24361,12)|0;a=J[695492]; -J[695492]=0;if((a|0)==1)break k;a=J[689332];ra:{sa:{if(!a){c=2757328;b=2757328;break sa}while(1){b=a;c=J[a+16>>2];if((c|0)>=28599){c=a;a=J[a>>2];if(a)continue;break sa}if((c|0)==28598)break ra;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28598;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}ta:{if(H[a+31| -0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ta}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22404]|K[22405]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22400]|K[22401]<<8|(K[22402]<<16|K[22403]<<24);c=K[22396]|K[22397]<<8|(K[22398]<<16|K[22399]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];ua:{va:{if(!a){c=2757328;b=2757328;break va}while(1){b=a;c=J[a+16>>2];if((c|0)>=863){c=a;a=J[a>>2];if(a)continue;break va}if((c|0)==862)break ua;a=J[b+ -4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=862;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}wa:{if(H[a+31|0]<0){J[a+24>>2]=7;a=J[a+20>>2];break wa}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[24700]|K[24701]<<8|(K[24702]<<16|K[24703]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[24697]|K[24698]<< -8|(K[24699]<<16|K[24700]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];xa:{ya:{if(!a){c=2757328;b=2757328;break ya}while(1){b=a;c=J[a+16>>2];if((c|0)>=1256){c=a;a=J[a>>2];if(a)continue;break ya}if((c|0)==1255)break xa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1255;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332], -b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,22701,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];za:{Aa:{if(!a){c=2757328;b=2757328;break Aa}while(1){b=a;c=J[a+16>>2];if((c|0)>=933){c=a;a=J[a>>2];if(a)continue;break Aa}if((c|0)==932)break za;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]= -d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Ba:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break Ba}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[20771];b=K[20767]|K[20768]<<8|(K[20769]<<16|K[20770]<<24);c=K[20763]|K[20764]<<8|(K[20765]<<16|K[20766]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];Ca:{Da:{if(!a){c=2757328;b=2757328;break Da}while(1){b=a;c=J[a+16>>2];if((c|0)>=951){c=a;a=J[a>>2];if(a)continue;break Da}if((c| -0)==950)break Ca;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=950;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Ea:{if(H[a+31|0]<0){J[a+24>>2]=4;a=J[a+20>>2];break Ea}H[a+31|0]=4;a=a+20|0}H[a+4|0]=0;H[a|0]=66;H[a+1|0]=105;H[a+2|0]=103;H[a+3|0]=53;a=J[689332];Fa:{Ga:{if(!a){c=2757328;b=2757328;break Ga}while(1){b= -a;c=J[a+16>>2];if((c|0)>=950){c=a;a=J[a>>2];if(a)continue;break Ga}if((c|0)==949)break Fa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,22473,14)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];Ha:{Ia:{if(!a){c=2757328; -b=2757328;break Ia}while(1){b=a;c=J[a+16>>2];if((c|0)>=51950){c=a;a=J[a>>2];if(a)continue;break Ia}if((c|0)==51949)break Ha;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=51949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Ja:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ja}H[a+31|0]=6;a=a+20|0}H[a+6| -0]=0;b=K[20830]|K[20831]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20826]|K[20827]<<8|(K[20828]<<16|K[20829]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];Ka:{La:{if(!a){c=2757328;b=2757328;break La}while(1){b=a;c=J[a+16>>2];if((c|0)>=862){c=a;a=J[a>>2];if(a)continue;break La}if((c|0)==861)break Ka;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=861;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0; -J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Ma:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ma}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28278]|K[28279]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28274]|K[28275]<<8|(K[28276]<<16|K[28277]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];Na:{Oa:{if(!a){c=2757328;b=2757328;break Oa}while(1){b=a;c=J[a+16>>2];if((c|0)>=866){c=a;a=J[a>>2];if(a)continue;break Oa}if((c|0)==865)break Na; -a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=865;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Pa:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Pa}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22691]|K[22692]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22687]|K[22688]<<8|(K[22689]<<16|K[22690]<<24);H[a|0]=b;H[a+1|0]=b>>> -8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];Qa:{Ra:{if(!a){c=2757328;b=2757328;break Ra}while(1){b=a;c=J[a+16>>2];if((c|0)>=875){c=a;a=J[a>>2];if(a)continue;break Ra}if((c|0)==874)break Qa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=874;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830, -a+20|0,22782,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];Sa:{Ta:{if(!a){c=2757328;b=2757328;break Ta}while(1){b=a;c=J[a+16>>2];if((c|0)>=28594){c=a;a=J[a>>2];if(a)continue;break Ta}if((c|0)==28593)break Sa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28593;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]= -J[689333]+1}Ua:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Ua}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24404]|K[24405]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24400]|K[24401]<<8|(K[24402]<<16|K[24403]<<24);c=K[24396]|K[24397]<<8|(K[24398]<<16|K[24399]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];Va:{Wa:{if(!a){c=2757328;b=2757328;break Wa}while(1){b=a;c=J[a+16>>2];if((c|0)>=28600){c=a;a=J[a>>2];if(a)continue;break Wa}if((c| -0)==28599)break Va;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28599;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Xa:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Xa}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22315]|K[22316]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22311]|K[22312]<<8|(K[22313]<<16|K[22314]<< -24);c=K[22307]|K[22308]<<8|(K[22309]<<16|K[22310]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];Ya:{Za:{if(!a){c=2757328;b=2757328;break Za}while(1){b=a;c=J[a+16>>2];if((c|0)>=858){c=a;a=J[a>>2];if(a)continue;break Za}if((c|0)==857)break Ya;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=857;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>> -2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}_a:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break _a}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22492]|K[22493]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22488]|K[22489]<<8|(K[22490]<<16|K[22491]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];$a:{ab:{if(!a){c=2757328;b=2757328;break ab}while(1){b=a;c=J[a+16>>2];if((c|0)>=1255){c=a;a=J[a>>2];if(a)continue;break ab}if((c|0)== -1254)break $a;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1254;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,22794,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];bb:{cb:{if(!a){c=2757328;b=2757328;break cb}while(1){b=a;c=J[a+16>>2];if((c|0)>=28592){c=a;a=J[a>> -2];if(a)continue;break cb}if((c|0)==28591)break bb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28591;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}db:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break db}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[28321]|K[28322]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[28317]|K[28318]<< -8|(K[28319]<<16|K[28320]<<24);c=K[28313]|K[28314]<<8|(K[28315]<<16|K[28316]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];eb:{fb:{if(!a){c=2757328;b=2757328;break fb}while(1){b=a;c=J[a+16>>2];if((c|0)>=28606){c=a;a=J[a>>2];if(a)continue;break fb}if((c|0)==28605)break eb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=28605;J[a+8>>2]=b;J[a>>2]= -0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,22714,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];gb:{hb:{if(!a){c=2757328;b=2757328;break hb}while(1){b=a;c=J[a+16>>2];if((c|0)>=851){c=a;a=J[a>>2];if(a)continue;break hb}if((c|0)==850)break gb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+ -16>>2]=850;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}ib:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ib}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28509]|K[28510]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28505]|K[28506]<<8|(K[28507]<<16|K[28508]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];jb:{kb:{if(!a){c=2757328;b=2757328;break kb}while(1){b=a;c=J[a+16>> -2];if((c|0)>=859){c=a;a=J[a>>2];if(a)continue;break kb}if((c|0)==858)break jb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=858;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}lb:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break lb}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22337]|K[22338]<<8;H[a+4|0]=b;H[a+5|0]= -b>>>8;b=K[22333]|K[22334]<<8|(K[22335]<<16|K[22336]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];mb:{nb:{if(!a){c=2757328;b=2757328;break nb}while(1){b=a;c=J[a+16>>2];if((c|0)>=861){c=a;a=J[a>>2];if(a)continue;break nb}if((c|0)==860)break mb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=860;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]= -d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}ob:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ob}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28502]|K[28503]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28498]|K[28499]<<8|(K[28500]<<16|K[28501]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];pb:{qb:{if(!a){c=2757328;b=2757328;break qb}while(1){b=a;c=J[a+16>>2];if((c|0)>=864){c=a;a=J[a>>2];if(a)continue;break qb}if((c|0)==863)break pb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0; -a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=863;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}rb:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break rb}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24358]|K[24359]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24354]|K[24355]<<8|(K[24356]<<16|K[24357]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];sb:{tb:{if(!a){c= -2757328;b=2757328;break tb}while(1){b=a;c=J[a+16>>2];if((c|0)>=438){c=a;a=J[a>>2];if(a)continue;break tb}if((c|0)==437)break sb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=437;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}ub:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ub}H[a+31|0]=6;a=a+20|0}H[a+ -6|0]=0;b=K[22519]|K[22520]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22515]|K[22516]<<8|(K[22517]<<16|K[22518]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];vb:{wb:{if(!a){c=2757328;b=2757328;break wb}while(1){b=a;c=J[a+16>>2];if((c|0)>=1253){c=a;a=J[a>>2];if(a)continue;break wb}if((c|0)==1252)break vb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1252;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>> -2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,24712,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];xb:{yb:{if(!a){c=2757328;b=2757328;break yb}while(1){b=a;c=J[a+16>>2];if((c|0)>=1259){c=a;a=J[a>>2];if(a)continue;break yb}if((c|0)==1258)break xb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1258;J[a+8>>2]=b;J[a>>2]= -0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}J[695492]=0;ga(2830,a+20|0,22340,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[689332];zb:{Ab:{if(!a){c=2757328;b=2757328;break Ab}while(1){b=a;c=J[a+16>>2];if((c|0)>=65002){c=a;a=J[a>>2];if(a)continue;break Ab}if((c|0)==65001)break zb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k; -J[a+16>>2]=65001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Bb:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Bb}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22394];b=K[22390]|K[22391]<<8|(K[22392]<<16|K[22393]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];Cb:{Db:{if(!a){c=2757328;b=2757328;break Db}while(1){b=a;c=J[a+16>>2];if((c|0)>=65001){c= -a;a=J[a>>2];if(a)continue;break Db}if((c|0)==65E3)break Cb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=65E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Eb:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Eb}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22534];b=K[22530]|K[22531]<<8|(K[22532]<<16|K[22533]<< -24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];Fb:{Gb:{if(!a){c=2757328;b=2757328;break Gb}while(1){b=a;c=J[a+16>>2];if((c|0)>=1201){c=a;a=J[a>>2];if(a)continue;break Gb}if((c|0)==1200)break Fb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1200;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]= -J[689333]+1}Hb:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Hb}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=76;H[a+7|0]=69;a=J[689332];Ib:{Jb:{if(!a){c=2757328;b=2757328;break Jb}while(1){b=a;c=J[a+16>>2];if((c|0)>=1202){c=a;a=J[a>>2];if(a)continue;break Jb}if((c|0)==1201)break Ib;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1201;J[a+8>>2]=b;J[a>>2]=0;J[a+ -4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Kb:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Kb}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=66;H[a+7|0]=69;a=J[689332];Lb:{Mb:{if(!a){c=2757328;b=2757328;break Mb}while(1){b=a;c=J[a+16>>2];if((c|0)>=12001){c=a;a=J[a>>2];if(a)continue;break Mb}if((c|0)==12E3)break Lb;a=J[b+4>>2];if(a)continue; -break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=12E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Nb:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Nb}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=76;H[a+7|0]=69;a=J[689332];Ob:{Pb:{if(!a){c=2757328;b=2757328;break Pb}while(1){b= -a;c=J[a+16>>2];if((c|0)>=12002){c=a;a=J[a>>2];if(a)continue;break Pb}if((c|0)==12001)break Ob;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=12001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Qb:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Qb}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+ -2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=66;H[a+7|0]=69;a=J[689332];Rb:{Sb:{if(!a){c=2757328;b=2757328;break Sb}while(1){b=a;c=J[a+16>>2];if((c|0)>=10001){c=a;a=J[a>>2];if(a)continue;break Sb}if((c|0)==1E4)break Rb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=1E4;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]= -J[689333]+1}Tb:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break Tb}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[11158];b=K[11154]|K[11155]<<8|(K[11156]<<16|K[11157]<<24);c=K[11150]|K[11151]<<8|(K[11152]<<16|K[11153]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689332];Ub:{Vb:{if(!a){c=2757328;b=2757328;break Vb}while(1){b=a;c=J[a+16>>2];if((c|0)>=20933){c=a;a=J[a>>2];if(a)continue;break Vb}if((c|0)==20932)break Ub;a=J[b+4>> -2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=20932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}Wb:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Wb}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20913]|K[20914]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20909]|K[20910]<<8|(K[20911]<<16|K[20912]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+ -2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689332];Xb:{Yb:{if(!a){c=2757328;b=2757328;break Yb}while(1){b=a;c=J[a+16>>2];if((c|0)>=54937){c=a;a=J[a>>2];if(a)continue;break Yb}if((c|0)==54936)break Xb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+16>>2]=54936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689331]>>2];if(d){J[689331]=d;b=J[c>>2]}Ic(J[689332],b);J[689333]=J[689333]+1}if(H[a+31|0]>=0)break j; -J[a+24>>2]=7;a=J[a+20>>2];break i}b=Z()|0;ml(2757324,J[689332]);break h}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[28528]|K[28529]<<8|(K[28530]<<16|K[28531]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28525]|K[28526]<<8|(K[28527]<<16|K[28528]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;d=bc-112|0;bc=d;J[689337]=0;J[689338]=0;J[689335]=0;J[689336]=0;J[689339]=0;J[689334]=2757340;J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;Zb:{_b:{$b:{ac:{bc:{cc:{dc:{ec:{fc:{gc:{hc:{ic:{jc:{kc:{lc:{mc:{nc:{oc:{pc:{qc:{rc:{sc:{tc:{uc:{vc:{wc:{xc:{yc:{zc:{Ac:{Bc:{Cc:{Dc:{Ec:{Fc:{Gc:{Hc:{Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{Yc:{Zc:{_c:{$c:{ad:{bd:{cd:{dd:{ed:{fd:{gd:{hd:{id:{jd:{kd:{ld:{md:{nd:{od:{pd:{qd:{rd:{sd:{td:{ud:{vd:{wd:{xd:{yd:{zd:{Ad:{Bd:{if((b| -0)!=1){J[d+96>>2]=a;J[d+100>>2]=12;J[d+104>>2]=-2147483632;b=J[87931];J[a+40>>2]=J[87930];J[a+44>>2]=b;b=J[87929];J[a+32>>2]=J[87928];J[a+36>>2]=b;b=J[87927];J[a+24>>2]=J[87926];J[a+28>>2]=b;b=J[87925];J[a+16>>2]=J[87924];J[a+20>>2]=b;b=J[87923];J[a+8>>2]=J[87922];J[a+12>>2]=b;b=J[87921];J[a>>2]=J[87920];J[a+4>>2]=b;J[a+48>>2]=0;J[d+108>>2]=0;J[695492]=0;b=Xe(2757336,d+84|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Bd;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)== -1)break Bd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+84>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ad;J[d+96>>2]=a;J[d+100>>2]=10;J[d+104>>2]=-2147483636;b=J[87942];J[a+32>>2]=J[87941];J[a+36>>2]=b;b=J[87940];J[a+24>>2]= -J[87939];J[a+28>>2]=b;b=J[87938];J[a+16>>2]=J[87937];J[a+20>>2]=b;b=J[87936];J[a+8>>2]=J[87935];J[a+12>>2]=b;b=J[87934];J[a>>2]=J[87933];J[a+4>>2]=b;J[a+40>>2]=0;J[d+108>>2]=0;J[695492]=0;b=Xe(2757336,d+84|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break zd;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break zd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+84>>2];J[a>> -2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break yd;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[87952];b=J[87951];J[a+24>>2]=J[87950];J[a+28>>2]=b;b=J[87949];J[a+16>>2]=J[87948];J[a+20>>2]=b;b=J[87947];J[a+8>>2]=J[87946];J[a+12>>2]=b;b=J[87945];J[a>>2]=J[87944];J[a+4>>2]=b;J[a+36>>2]=0;J[d+108>>2]=0;J[695492]=0;b=Xe(2757336, -d+84|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break xd;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break xd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+84>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)== -1)break wd;J[d+96>>2]=a;J[d+100>>2]=12;J[d+104>>2]=-2147483632;b=J[87965];J[a+40>>2]=J[87964];J[a+44>>2]=b;b=J[87963];J[a+32>>2]=J[87962];J[a+36>>2]=b;b=J[87961];J[a+24>>2]=J[87960];J[a+28>>2]=b;b=J[87959];J[a+16>>2]=J[87958];J[a+20>>2]=b;b=J[87957];J[a+8>>2]=J[87956];J[a+12>>2]=b;b=J[87955];J[a>>2]=J[87954];J[a+4>>2]=b;J[a+48>>2]=0;J[d+108>>2]=0;J[695492]=0;b=Xe(2757336,d+84|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break vd;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break vd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+84>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[d+92>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0;J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ud;J[d+96>>2]=a;J[d+100>>2]=12;J[d+104>>2]=-2147483632;b=J[87931];J[a+40>>2]= -J[87930];J[a+44>>2]=b;b=J[87929];J[a+32>>2]=J[87928];J[a+36>>2]=b;b=J[87927];J[a+24>>2]=J[87926];J[a+28>>2]=b;b=J[87925];J[a+16>>2]=J[87924];J[a+20>>2]=b;b=J[87923];J[a+8>>2]=J[87922];J[a+12>>2]=b;b=J[87921];J[a>>2]=J[87920];J[a+4>>2]=b;J[a+48>>2]=0;J[695492]=0;da(2791,d+84|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break td;if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break sd;J[d+96>>2]=a;J[d+100>>2]=10;J[d+104>>2]=-2147483636;b=J[87942];J[a+32>> -2]=J[87941];J[a+36>>2]=b;b=J[87940];J[a+24>>2]=J[87939];J[a+28>>2]=b;b=J[87938];J[a+16>>2]=J[87937];J[a+20>>2]=b;b=J[87936];J[a+8>>2]=J[87935];J[a+12>>2]=b;b=J[87934];J[a>>2]=J[87933];J[a+4>>2]=b;J[a+40>>2]=0;a=J[d+88>>2];Cd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+88>>2]=a+12;break Cd}J[695492]=0;da(2791,d+84|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break rd;if(H[d+107|0]>=0)break Cd;qc(J[d+96>>2])}J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break qd;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[87952];b=J[87951];J[a+24>>2]=J[87950];J[a+28>>2]=b;b=J[87949];J[a+16>>2]=J[87948];J[a+20>>2]=b;b=J[87947];J[a+8>>2]=J[87946];J[a+12>>2]=b;b=J[87945];J[a>>2]=J[87944];J[a+4>>2]=b;J[a+36>>2]=0;a=J[d+88>>2];Dd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+88>>2]=a+12;break Dd}J[695492]=0;da(2791,d+84|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break pd;if(H[d+107|0]>= -0)break Dd;qc(J[d+96>>2])}J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break od;J[d+96>>2]=a;J[d+100>>2]=12;J[d+104>>2]=-2147483632;b=J[87965];J[a+40>>2]=J[87964];J[a+44>>2]=b;b=J[87963];J[a+32>>2]=J[87962];J[a+36>>2]=b;b=J[87961];J[a+24>>2]=J[87960];J[a+28>>2]=b;b=J[87959];J[a+16>>2]=J[87958];J[a+20>>2]=b;b=J[87957];J[a+8>>2]=J[87956];J[a+12>>2]=b;b=J[87955];J[a>>2]=J[87954];J[a+4>>2]=b;J[a+48>>2]=0;a=J[d+88>>2];Ed:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b; -J[a+8>>2]=J[d+104>>2];J[d+88>>2]=a+12;break Ed}J[695492]=0;da(2791,d+84|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break nd;if(H[d+107|0]>=0)break Ed;qc(J[d+96>>2])}b=J[689338];Fd:{if((b|0)!=J[689339]){J[695492]=0;a=aa(2801,b|0,d+84|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;J[689338]=b;break $b}J[689338]=a+12;break Fd}J[695492]=0;da(2802,2757348,d+84|0);a=J[695492];J[695492]=0;if((a|0)==1)break md}J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ld;J[d+96>>2]=a;J[d+100>> -2]=6;J[d+104>>2]=-2147483640;b=J[87972];J[a+16>>2]=J[87971];J[a+20>>2]=b;b=J[87970];J[a+8>>2]=J[87969];J[a+12>>2]=b;b=J[87968];J[a>>2]=J[87967];J[a+4>>2]=b;J[a+24>>2]=0;J[695492]=0;J[d+108>>2]=1;b=Xe(2757336,d+72|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break kd;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break kd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+72>> -2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break jd;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[87982];b=J[87981];J[a+24>>2]=J[87980];J[a+28>>2]=b;b=J[87979];J[a+16>>2]=J[87978];J[a+20>>2]=b;b=J[87977];J[a+8>>2]=J[87976];J[a+12>>2]=b;b=J[87975];J[a>>2]=J[87974];J[a+4>>2]=b;J[a+36>>2]=0;J[695492]=0;J[d+108>>2]=1;b= -Xe(2757336,d+72|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break id;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break id;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+72>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[d+80>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[695492]= -0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break hd;J[d+96>>2]=a;J[d+100>>2]=10;J[d+104>>2]=-2147483636;b=J[87993];J[a+32>>2]=J[87992];J[a+36>>2]=b;b=J[87991];J[a+24>>2]=J[87990];J[a+28>>2]=b;b=J[87989];J[a+16>>2]=J[87988];J[a+20>>2]=b;b=J[87987];J[a+8>>2]=J[87986];J[a+12>>2]=b;b=J[87985];J[a>>2]=J[87984];J[a+4>>2]=b;J[a+40>>2]=0;J[695492]=0;da(2791,d+72|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break gd;if(H[d+107|0]<0)qc(J[d+96>>2]);b=J[689338];Gd:{if((b|0)!=J[689339]){J[695492]=0;a= -aa(2801,b|0,d+72|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;J[689338]=b;break ac}J[689338]=a+12;break Gd}J[695492]=0;da(2802,2757348,d+72|0);a=J[695492];J[695492]=0;if((a|0)==1)break fd}J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ed;J[d+96>>2]=a;J[d+100>>2]=5;J[d+104>>2]=-2147483640;J[a+16>>2]=J[87999];b=J[87998];J[a+8>>2]=J[87997];J[a+12>>2]=b;b=J[87996];J[a>>2]=J[87995];J[a+4>>2]=b;J[a+20>>2]=0;J[d+108>>2]=2;J[695492]=0;b=Xe(2757336,d+60|0,d+96|0);a=J[695492];J[695492]= -0;if((a|0)==1)break dd;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break dd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+60>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd;J[d+96>>2]=a;J[d+100>>2]= -15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88015];b=J[88014];J[a+48>>2]=J[88013];J[a+52>>2]=b;b=J[88012];J[a+40>>2]=J[88011];J[a+44>>2]=b;b=J[88010];J[a+32>>2]=J[88009];J[a+36>>2]=b;b=J[88008];J[a+24>>2]=J[88007];J[a+28>>2]=b;b=J[88006];J[a+16>>2]=J[88005];J[a+20>>2]=b;b=J[88004];J[a+8>>2]=J[88003];J[a+12>>2]=b;b=J[88002];J[a>>2]=J[88001];J[a+4>>2]=b;J[a+60>>2]=0;J[d+108>>2]=2;J[695492]=0;b=Xe(2757336,d+60|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break bd;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c= -J[695492];J[695492]=0;if((c|0)==1)break bd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+60>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ad;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[88025];b=J[88024];J[a+ -24>>2]=J[88023];J[a+28>>2]=b;b=J[88022];J[a+16>>2]=J[88021];J[a+20>>2]=b;b=J[88020];J[a+8>>2]=J[88019];J[a+12>>2]=b;b=J[88018];J[a>>2]=J[88017];J[a+4>>2]=b;J[a+36>>2]=0;J[d+108>>2]=2;J[695492]=0;b=Xe(2757336,d+60|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break $c;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break $c;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+60>> -2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break _c;J[d+96>>2]=a;J[d+100>>2]=13;J[d+104>>2]=-2147483632;J[a+48>>2]=J[88039];b=J[88038];J[a+40>>2]=J[88037];J[a+44>>2]=b;b=J[88036];J[a+32>>2]=J[88035];J[a+36>>2]=b;b=J[88034];J[a+24>>2]=J[88033];J[a+28>>2]=b;b=J[88032];J[a+16>>2]=J[88031];J[a+20>>2]=b;b=J[88030];J[a+8>>2]=J[88029];J[a+ -12>>2]=b;b=J[88028];J[a>>2]=J[88027];J[a+4>>2]=b;J[a+52>>2]=0;J[d+108>>2]=2;J[695492]=0;b=Xe(2757336,d+60|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Zc;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Zc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+60>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]= -J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[d+68>>2]=0;J[d+60>>2]=0;J[d+64>>2]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Yc;J[d+96>>2]=a;J[d+100>>2]=5;J[d+104>>2]=-2147483640;J[a+16>>2]=J[87999];b=J[87998];J[a+8>>2]=J[87997];J[a+12>>2]=b;b=J[87996];J[a>>2]=J[87995];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;da(2791,d+60|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Xc;if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Wc;J[d+ -96>>2]=a;J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88015];b=J[88014];J[a+48>>2]=J[88013];J[a+52>>2]=b;b=J[88012];J[a+40>>2]=J[88011];J[a+44>>2]=b;b=J[88010];J[a+32>>2]=J[88009];J[a+36>>2]=b;b=J[88008];J[a+24>>2]=J[88007];J[a+28>>2]=b;b=J[88006];J[a+16>>2]=J[88005];J[a+20>>2]=b;b=J[88004];J[a+8>>2]=J[88003];J[a+12>>2]=b;b=J[88002];J[a>>2]=J[88001];J[a+4>>2]=b;J[a+60>>2]=0;a=J[d+64>>2];Hd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+64>>2]=a+ -12;break Hd}J[695492]=0;da(2791,d+60|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Vc;if(H[d+107|0]>=0)break Hd;qc(J[d+96>>2])}J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Uc;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[88025];b=J[88024];J[a+24>>2]=J[88023];J[a+28>>2]=b;b=J[88022];J[a+16>>2]=J[88021];J[a+20>>2]=b;b=J[88020];J[a+8>>2]=J[88019];J[a+12>>2]=b;b=J[88018];J[a>>2]=J[88017];J[a+4>>2]=b;J[a+36>>2]=0;a=J[d+64>>2];Id:{if(a>>>0>2]){b=J[d+ -100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+64>>2]=a+12;break Id}J[695492]=0;da(2791,d+60|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Tc;if(H[d+107|0]>=0)break Id;qc(J[d+96>>2])}J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Sc;J[d+96>>2]=a;J[d+100>>2]=13;J[d+104>>2]=-2147483632;J[a+48>>2]=J[88039];b=J[88038];J[a+40>>2]=J[88037];J[a+44>>2]=b;b=J[88036];J[a+32>>2]=J[88035];J[a+36>>2]=b;b=J[88034];J[a+24>>2]=J[88033];J[a+28>>2]=b;b=J[88032];J[a+16>>2]= -J[88031];J[a+20>>2]=b;b=J[88030];J[a+8>>2]=J[88029];J[a+12>>2]=b;b=J[88028];J[a>>2]=J[88027];J[a+4>>2]=b;J[a+52>>2]=0;a=J[d+64>>2];Jd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+64>>2]=a+12;break Jd}J[695492]=0;da(2791,d+60|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Rc;if(H[d+107|0]>=0)break Jd;qc(J[d+96>>2])}b=J[689338];Kd:{if((b|0)!=J[689339]){J[695492]=0;a=aa(2801,b|0,d+60|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;J[689338]=b;break bc}J[689338]= -a+12;break Kd}J[695492]=0;da(2802,2757348,d+60|0);a=J[695492];J[695492]=0;if((a|0)==1)break Qc}J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Pc;J[d+96>>2]=a;J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88055];b=J[88054];J[a+48>>2]=J[88053];J[a+52>>2]=b;b=J[88052];J[a+40>>2]=J[88051];J[a+44>>2]=b;b=J[88050];J[a+32>>2]=J[88049];J[a+36>>2]=b;b=J[88048];J[a+24>>2]=J[88047];J[a+28>>2]=b;b=J[88046];J[a+16>>2]=J[88045];J[a+20>>2]=b;b=J[88044];J[a+8>>2]=J[88043];J[a+12>>2]=b;b= -J[88042];J[a>>2]=J[88041];J[a+4>>2]=b;J[a+60>>2]=0;J[d+108>>2]=3;J[695492]=0;b=Xe(2757336,d+48|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Oc;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Oc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+48>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+ -1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,80)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Nc;J[d+96>>2]=a;J[d+100>>2]=16;J[d+104>>2]=-2147483628;b=J[88072];J[a+56>>2]=J[88071];J[a+60>>2]=b;b=J[88070];J[a+48>>2]=J[88069];J[a+52>>2]=b;b=J[88068];J[a+40>>2]=J[88067];J[a+44>>2]=b;b=J[88066];J[a+32>>2]=J[88065];J[a+36>>2]=b;b=J[88064];J[a+24>>2]=J[88063];J[a+28>>2]=b;b=J[88062];J[a+16>>2]=J[88061];J[a+20>>2]=b;b=J[88060];J[a+8>>2]=J[88059];J[a+12>>2]=b;b=J[88058];J[a>>2]=J[88057];J[a+4>>2]=b; -J[a+64>>2]=0;J[d+108>>2]=3;J[695492]=0;b=Xe(2757336,d+48|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Mc;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Mc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+48>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[d+ -56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Lc;J[d+96>>2]=a;J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88055];b=J[88054];J[a+48>>2]=J[88053];J[a+52>>2]=b;b=J[88052];J[a+40>>2]=J[88051];J[a+44>>2]=b;b=J[88050];J[a+32>>2]=J[88049];J[a+36>>2]=b;b=J[88048];J[a+24>>2]=J[88047];J[a+28>>2]=b;b=J[88046];J[a+16>>2]=J[88045];J[a+20>>2]=b;b=J[88044];J[a+8>>2]=J[88043];J[a+12>>2]=b;b=J[88042];J[a>>2]=J[88041];J[a+4>>2]=b;J[a+60>>2]=0;J[695492]= -0;da(2791,d+48|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Kc;if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,80)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Jc;J[d+96>>2]=a;J[d+100>>2]=16;J[d+104>>2]=-2147483628;b=J[88072];J[a+56>>2]=J[88071];J[a+60>>2]=b;b=J[88070];J[a+48>>2]=J[88069];J[a+52>>2]=b;b=J[88068];J[a+40>>2]=J[88067];J[a+44>>2]=b;b=J[88066];J[a+32>>2]=J[88065];J[a+36>>2]=b;b=J[88064];J[a+24>>2]=J[88063];J[a+28>>2]=b;b=J[88062];J[a+16>>2]=J[88061];J[a+20>>2]=b;b=J[88060];J[a+ -8>>2]=J[88059];J[a+12>>2]=b;b=J[88058];J[a>>2]=J[88057];J[a+4>>2]=b;J[a+64>>2]=0;a=J[d+52>>2];Ld:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+52>>2]=a+12;break Ld}J[695492]=0;da(2791,d+48|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Ic;if(H[d+107|0]>=0)break Ld;qc(J[d+96>>2])}b=J[689338];Md:{if((b|0)!=J[689339]){J[695492]=0;a=aa(2801,b|0,d+48|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;J[689338]=b;break cc}J[689338]=a+12;break Md}J[695492]= -0;da(2802,2757348,d+48|0);a=J[695492];J[695492]=0;if((a|0)==1)break Hc}J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Gc;J[d+96>>2]=a;J[d+100>>2]=11;J[d+104>>2]=-2147483636;J[a+40>>2]=J[88084];b=J[88083];J[a+32>>2]=J[88082];J[a+36>>2]=b;b=J[88081];J[a+24>>2]=J[88080];J[a+28>>2]=b;b=J[88079];J[a+16>>2]=J[88078];J[a+20>>2]=b;b=J[88077];J[a+8>>2]=J[88076];J[a+12>>2]=b;b=J[88075];J[a>>2]=J[88074];J[a+4>>2]=b;J[a+44>>2]=0;J[d+108>>2]=4;J[695492]=0;b=Xe(2757336,d+36|0,d+96|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break Fc;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Fc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+36>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ec;J[d+96>>2]=a; -J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88100];b=J[88099];J[a+48>>2]=J[88098];J[a+52>>2]=b;b=J[88097];J[a+40>>2]=J[88096];J[a+44>>2]=b;b=J[88095];J[a+32>>2]=J[88094];J[a+36>>2]=b;b=J[88093];J[a+24>>2]=J[88092];J[a+28>>2]=b;b=J[88091];J[a+16>>2]=J[88090];J[a+20>>2]=b;b=J[88089];J[a+8>>2]=J[88088];J[a+12>>2]=b;b=J[88087];J[a>>2]=J[88086];J[a+4>>2]=b;J[a+60>>2]=0;J[d+108>>2]=4;J[695492]=0;b=Xe(2757336,d+36|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Dc;if(!J[b>>2]){J[695492]=0;a= -$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Dc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+36>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[d+44>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Cc;J[d+96>>2]=a;J[d+100>>2]=11;J[d+104>> -2]=-2147483636;J[a+40>>2]=J[88084];b=J[88083];J[a+32>>2]=J[88082];J[a+36>>2]=b;b=J[88081];J[a+24>>2]=J[88080];J[a+28>>2]=b;b=J[88079];J[a+16>>2]=J[88078];J[a+20>>2]=b;b=J[88077];J[a+8>>2]=J[88076];J[a+12>>2]=b;b=J[88075];J[a>>2]=J[88074];J[a+4>>2]=b;J[a+44>>2]=0;J[695492]=0;da(2791,d+36|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break Bc;if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,64)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ac;J[d+96>>2]=a;J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>> -2]=J[88100];b=J[88099];J[a+48>>2]=J[88098];J[a+52>>2]=b;b=J[88097];J[a+40>>2]=J[88096];J[a+44>>2]=b;b=J[88095];J[a+32>>2]=J[88094];J[a+36>>2]=b;b=J[88093];J[a+24>>2]=J[88092];J[a+28>>2]=b;b=J[88091];J[a+16>>2]=J[88090];J[a+20>>2]=b;b=J[88089];J[a+8>>2]=J[88088];J[a+12>>2]=b;b=J[88087];J[a>>2]=J[88086];J[a+4>>2]=b;J[a+60>>2]=0;a=J[d+40>>2];Nd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+40>>2]=a+12;break Nd}J[695492]=0;da(2791,d+36|0,d+96|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break zc;if(H[d+107|0]>=0)break Nd;qc(J[d+96>>2])}b=J[689338];Od:{if((b|0)!=J[689339]){J[695492]=0;a=aa(2801,b|0,d+36|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;J[689338]=b;break dc}J[689338]=a+12;break Od}J[695492]=0;da(2802,2757348,d+36|0);a=J[695492];J[695492]=0;if((a|0)==1)break yc}J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break xc;J[d+96>>2]=a;J[d+100>>2]=5;J[d+104>>2]=-2147483640;J[a+16>>2]=J[88106];b=J[88105];J[a+8>>2]=J[88104];J[a+12>>2]=b; -b=J[88103];J[a>>2]=J[88102];J[a+4>>2]=b;J[a+20>>2]=0;J[d+108>>2]=5;J[695492]=0;b=Xe(2757336,d+24|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break wc;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break wc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+24>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+ -1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break vc;J[d+96>>2]=a;J[d+100>>2]=8;J[d+104>>2]=-2147483636;b=J[88115];J[a+24>>2]=J[88114];J[a+28>>2]=b;b=J[88113];J[a+16>>2]=J[88112];J[a+20>>2]=b;b=J[88111];J[a+8>>2]=J[88110];J[a+12>>2]=b;b=J[88109];J[a>>2]=J[88108];J[a+4>>2]=b;J[a+32>>2]=0;J[d+108>>2]=5;J[695492]=0;b=Xe(2757336,d+24|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break uc;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break uc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+24>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break tc;J[d+96>>2]=a;J[d+100>>2]=5;J[d+104>>2]=-2147483640;J[a+16>>2]=J[88106];b=J[88105]; -J[a+8>>2]=J[88104];J[a+12>>2]=b;b=J[88103];J[a>>2]=J[88102];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;da(2791,d+24|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break sc;if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break rc;J[d+96>>2]=a;J[d+100>>2]=8;J[d+104>>2]=-2147483636;b=J[88115];J[a+24>>2]=J[88114];J[a+28>>2]=b;b=J[88113];J[a+16>>2]=J[88112];J[a+20>>2]=b;b=J[88111];J[a+8>>2]=J[88110];J[a+12>>2]=b;b=J[88109];J[a>>2]=J[88108];J[a+4>>2]=b;J[a+32>>2]=0;a= -J[d+28>>2];Pd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+28>>2]=a+12;break Pd}J[695492]=0;da(2791,d+24|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break qc;if(H[d+107|0]>=0)break Pd;qc(J[d+96>>2])}b=J[689338];Qd:{if((b|0)!=J[689339]){J[695492]=0;a=aa(2801,b|0,d+24|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;J[689338]=b;break ec}J[689338]=a+12;break Qd}J[695492]=0;da(2802,2757348,d+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break pc}J[695492]= -0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break oc;J[d+96>>2]=a;J[d+100>>2]=7;J[d+104>>2]=-2147483640;J[a+24>>2]=J[88123];b=J[88122];J[a+16>>2]=J[88121];J[a+20>>2]=b;b=J[88120];J[a+8>>2]=J[88119];J[a+12>>2]=b;b=J[88118];J[a>>2]=J[88117];J[a+4>>2]=b;J[a+28>>2]=0;J[d+108>>2]=6;J[695492]=0;b=Xe(2757336,d+12|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break nc;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break nc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+ -24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+12>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+96>>2]);J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break mc;J[d+96>>2]=a;J[d+100>>2]=7;J[d+104>>2]=-2147483640;J[a+24>>2]=J[88131];b=J[88130];J[a+16>>2]=J[88129];J[a+20>>2]=b;b=J[88128];J[a+8>>2]=J[88127];J[a+12>>2]=b;b=J[88126];J[a>>2]=J[88125]; -J[a+4>>2]=b;J[a+28>>2]=0;J[d+108>>2]=6;J[695492]=0;b=Xe(2757336,d+12|0,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break lc;if(!J[b>>2]){J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break lc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+12>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[689334]>>2];if(c){J[689334]=c;a=J[b>>2]}Ic(J[689335],a);J[689336]=J[689336]+1}if(H[d+107|0]<0)qc(J[d+ -96>>2]);J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break kc;J[d+12>>2]=a;J[d+16>>2]=7;J[d+20>>2]=-2147483640;J[a+24>>2]=J[88123];b=J[88122];J[a+16>>2]=J[88121];J[a+20>>2]=b;b=J[88120];J[a+8>>2]=J[88119];J[a+12>>2]=b;b=J[88118];J[a>>2]=J[88117];J[a+4>>2]=b;J[a+28>>2]=0;J[695492]=0;da(2791,d+96|0,d+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break jc;if(H[d+23|0]<0)qc(J[d+12>>2]);J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ic; -J[d+12>>2]=a;J[d+16>>2]=7;J[d+20>>2]=-2147483640;J[a+24>>2]=J[88131];b=J[88130];J[a+16>>2]=J[88129];J[a+20>>2]=b;b=J[88128];J[a+8>>2]=J[88127];J[a+12>>2]=b;b=J[88126];J[a>>2]=J[88125];J[a+4>>2]=b;J[a+28>>2]=0;a=J[d+100>>2];Rd:{if(a>>>0>2]){b=J[d+16>>2];J[a>>2]=J[d+12>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+20>>2];J[d+100>>2]=a+12;break Rd}J[695492]=0;da(2791,d+96|0,d+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break hc;if(H[d+23|0]>=0)break Rd;qc(J[d+12>>2])}b=J[689338];Sd:{if((b|0)!=J[689339]){J[695492]= -0;a=aa(2801,b|0,d+96|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;J[689338]=b;break fc}J[689338]=a+12;break Sd}J[695492]=0;da(2802,2757348,d+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break gc}c=J[d+96>>2];if(c){a=c;b=J[d+100>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+96>>2]}J[d+100>>2]=c;qc(a)}c=J[d+24>>2];if(c){a=c;b=J[d+28>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+ -24>>2]}J[d+28>>2]=c;qc(a)}c=J[d+36>>2];if(c){a=c;b=J[d+40>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+36>>2]}J[d+40>>2]=c;qc(a)}c=J[d+48>>2];if(c){a=c;b=J[d+52>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+48>>2]}J[d+52>>2]=c;qc(a)}c=J[d+60>>2];if(c){a=c;b=J[d+64>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+60>>2]}J[d+ -64>>2]=c;qc(a)}c=J[d+72>>2];if(c){a=c;b=J[d+76>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+72>>2]}J[d+76>>2]=c;qc(a)}c=J[d+84>>2];if(c){a=c;b=J[d+88>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+84>>2]}J[d+88>>2]=c;qc(a)}bc=d+112|0;break Zb}a=Z()|0;break _b}a=Z()|0;if(H[d+107|0]>=0)break _b;qc(J[d+96>>2]);break _b}a=Z()|0;break _b}a=Z()|0;if(H[d+107|0]>=0)break _b;qc(J[d+96>>2]); -break _b}a=Z()|0;break _b}a=Z()|0;if(H[d+107|0]>=0)break _b;qc(J[d+96>>2]);break _b}a=Z()|0;break _b}a=Z()|0;if(H[d+107|0]>=0)break _b;qc(J[d+96>>2]);break _b}a=Z()|0;break $b}a=Z()|0;if(H[d+107|0]>=0)break $b;qc(J[d+96>>2]);break $b}a=Z()|0;break $b}a=Z()|0;if(H[d+107|0]>=0)break $b;qc(J[d+96>>2]);break $b}a=Z()|0;break $b}a=Z()|0;if(H[d+107|0]>=0)break $b;qc(J[d+96>>2]);break $b}a=Z()|0;break $b}a=Z()|0;if(H[d+107|0]>=0)break $b;qc(J[d+96>>2]);break $b}a=Z()|0;break $b}a=Z()|0;break $b}a=Z()|0; -if(H[d+107|0]>=0)break $b;qc(J[d+96>>2]);break $b}a=Z()|0;break $b}a=Z()|0;if(H[d+107|0]>=0)break $b;qc(J[d+96>>2]);break $b}a=Z()|0;break ac}a=Z()|0;if(H[d+107|0]>=0)break ac;qc(J[d+96>>2]);break ac}a=Z()|0;break ac}a=Z()|0;break ac}a=Z()|0;if(H[d+107|0]>=0)break ac;qc(J[d+96>>2]);break ac}a=Z()|0;break ac}a=Z()|0;if(H[d+107|0]>=0)break ac;qc(J[d+96>>2]);break ac}a=Z()|0;break ac}a=Z()|0;if(H[d+107|0]>=0)break ac;qc(J[d+96>>2]);break ac}a=Z()|0;break ac}a=Z()|0;if(H[d+107|0]>=0)break ac;qc(J[d+96>> -2]);break ac}a=Z()|0;break bc}a=Z()|0;if(H[d+107|0]>=0)break bc;qc(J[d+96>>2]);break bc}a=Z()|0;break bc}a=Z()|0;if(H[d+107|0]>=0)break bc;qc(J[d+96>>2]);break bc}a=Z()|0;break bc}a=Z()|0;if(H[d+107|0]>=0)break bc;qc(J[d+96>>2]);break bc}a=Z()|0;break bc}a=Z()|0;if(H[d+107|0]>=0)break bc;qc(J[d+96>>2]);break bc}a=Z()|0;break bc}a=Z()|0;break bc}a=Z()|0;if(H[d+107|0]>=0)break bc;qc(J[d+96>>2]);break bc}a=Z()|0;break bc}a=Z()|0;if(H[d+107|0]>=0)break bc;qc(J[d+96>>2]);break bc}a=Z()|0;break cc}a=Z()| -0;if(H[d+107|0]>=0)break cc;qc(J[d+96>>2]);break cc}a=Z()|0;break cc}a=Z()|0;if(H[d+107|0]>=0)break cc;qc(J[d+96>>2]);break cc}a=Z()|0;break cc}a=Z()|0;break cc}a=Z()|0;if(H[d+107|0]>=0)break cc;qc(J[d+96>>2]);break cc}a=Z()|0;break cc}a=Z()|0;if(H[d+107|0]>=0)break cc;qc(J[d+96>>2]);break cc}a=Z()|0;break dc}a=Z()|0;if(H[d+107|0]>=0)break dc;qc(J[d+96>>2]);break dc}a=Z()|0;break dc}a=Z()|0;if(H[d+107|0]>=0)break dc;qc(J[d+96>>2]);break dc}a=Z()|0;break dc}a=Z()|0;break dc}a=Z()|0;if(H[d+107|0]>= -0)break dc;qc(J[d+96>>2]);break dc}a=Z()|0;break dc}a=Z()|0;if(H[d+107|0]>=0)break dc;qc(J[d+96>>2]);break dc}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;qc(J[d+96>>2]);break ec}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;qc(J[d+96>>2]);break ec}a=Z()|0;break ec}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;qc(J[d+96>>2]);break ec}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;qc(J[d+96>>2]);break ec}a=Z()|0;break fc}a=Z()|0;if(H[d+23|0]>=0)break fc;qc(J[d+12>>2]);break fc}a= -Z()|0;break fc}a=Z()|0;if(H[d+23|0]>=0)break fc;qc(J[d+12>>2]);break fc}a=Z()|0}sg(d+96|0)}sg(d+24|0)}sg(d+36|0)}sg(d+48|0)}sg(d+60|0)}sg(d+72|0)}sg(d+84|0)}d=J[689337];if(d){b=J[689338];c=d;if((b|0)!=(c|0)){while(1){f=b-12|0;e=J[f>>2];if(e){g=b-8|0;c=J[g>>2];b=e;if((c|0)!=(b|0)){while(1){b=c-12|0;if(H[c-1|0]<0)qc(J[b>>2]);c=b;if((b|0)!=(e|0))continue;break}b=J[f>>2]}J[g>>2]=e;qc(b)}b=f;if((d|0)!=(b|0))continue;break}c=J[689337]}J[689338]=d;qc(c)}Rt(2757336,J[689335]);ba(a|0);B()}J[689340]=0;H[2757371]= -0;J[689500]=2758004;J[689501]=0;J[689502]=0;J[695492]=0;c=$(4,32)|0;a=J[695492];J[695492]=0;Td:{Ud:{if((a|0)!=1)Vd:{J[c+8>>2]=2758004;J[c>>2]=0;J[c+4>>2]=0;a=28596;J[c+16>>2]=28596;J[689500]=c;J[689501]=c;H[c+12|0]=1;J[689502]=1;H[c+30|0]=0;H[c+31|0]=10;b=K[22636]|K[22637]<<8|(K[22638]<<16|K[22639]<<24);d=K[22632]|K[22633]<<8|(K[22634]<<16|K[22635]<<24);H[c+20|0]=d;H[c+21|0]=d>>>8;H[c+22|0]=d>>>16;H[c+23|0]=d>>>24;H[c+24|0]=b;H[c+25|0]=b>>>8;H[c+26|0]=b>>>16;H[c+27|0]=b>>>24;b=K[22640]|K[22641]<< -8;H[c+28|0]=b;H[c+29|0]=b>>>8;Wd:{Xd:{while(1){Yd:{Zd:{if((a|0)>=721){b=J[c>>2];if(b)break Zd;a=c;break Xd}if((a|0)==720){b=c;break Wd}b=J[c+4>>2];if(!b)break Yd}a=J[b+16>>2];c=b;continue}break}a=c+4|0}J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[b+16>>2]=720;J[b+8>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[a>>2]=b;c=b;d=J[J[689500]>>2];if(d){J[689500]=d;c=J[a>>2]}Ic(J[689501],c);J[689502]=J[689502]+1}_d:{if(H[b+31|0]<0){J[b+24>>2]=7;a=J[b+20>>2]; -break _d}H[b+31|0]=7;a=b+20|0}H[a+7|0]=0;b=K[28536]|K[28537]<<8|(K[28538]<<16|K[28539]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28533]|K[28534]<<8|(K[28535]<<16|K[28536]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];$d:{ae:{if(!a){c=2758004;b=2758004;break ae}while(1){b=a;c=J[a+16>>2];if((c|0)>=1257){c=a;a=J[a>>2];if(a)continue;break ae}if((c|0)==1256)break $d;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break Vd;J[a+16>>2]=1256;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,22606,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];be:{ce:{if(!a){c=2758004;b=2758004;break ce}while(1){b=a;c=J[a+16>>2];if((c|0)>=28595){c=a;a=J[a>>2];if(a)continue;break ce}if((c|0)==28594)break be;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]= -0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28594;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}de:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break de}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22869]|K[22870]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22865]|K[22866]<<8|(K[22867]<<16|K[22868]<<24);c=K[22861]|K[22862]<<8|(K[22863]<<16|K[22864]<<24);H[a|0]=c;H[a+ -1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];ee:{fe:{if(!a){c=2758004;b=2758004;break fe}while(1){b=a;c=J[a+16>>2];if((c|0)>=28604){c=a;a=J[a>>2];if(a)continue;break fe}if((c|0)==28603)break ee;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28603;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]= -d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,24384,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];ge:{he:{if(!a){c=2758004;b=2758004;break he}while(1){b=a;c=J[a+16>>2];if((c|0)>=776){c=a;a=J[a>>2];if(a)continue;break he}if((c|0)==775)break ge;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=775;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a; -d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}ie:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ie}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22684]|K[22685]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22680]|K[22681]<<8|(K[22682]<<16|K[22683]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];je:{ke:{if(!a){c=2758004;b=2758004;break ke}while(1){b=a;c=J[a+16>>2];if((c|0)>=1258){c=a;a=J[a>>2];if(a)continue;break ke}if((c|0)==1257)break je;a=J[b+4>>2];if(a)continue; -break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1257;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,22495,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];le:{me:{if(!a){c=2758004;b=2758004;break me}while(1){b=a;c=J[a+16>>2];if((c|0)>=28605){c=a;a=J[a>>2];if(a)continue;break me}if((c|0)==28604)break le; -a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28604;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,22821,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];ne:{oe:{if(!a){c=2758004;b=2758004;break oe}while(1){b=a;c=J[a+16>>2];if((c|0)>=28596){c=a;a=J[a>>2];if(a)continue; -break oe}if((c|0)==28595)break ne;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28595;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}pe:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break pe}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22734]|K[22735]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22730]|K[22731]<<8|(K[22732]<< -16|K[22733]<<24);c=K[22726]|K[22727]<<8|(K[22728]<<16|K[22729]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];qe:{re:{if(!a){c=2758004;b=2758004;break re}while(1){b=a;c=J[a+16>>2];if((c|0)>=20867){c=a;a=J[a>>2];if(a)continue;break re}if((c|0)==20866)break qe;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=20866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]= -0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}se:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break se}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20844]|K[20845]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20840]|K[20841]<<8|(K[20842]<<16|K[20843]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];te:{ue:{if(!a){c=2758004;b=2758004;break ue}while(1){b=a;c=J[a+16>>2];if((c|0)>=21867){c=a;a=J[a>>2];if(a)continue; -break ue}if((c|0)==21866)break te;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=21866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}ve:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ve}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20442]|K[20443]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20438]|K[20439]<<8|(K[20440]<< -16|K[20441]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];we:{xe:{if(!a){c=2758004;b=2758004;break xe}while(1){b=a;c=J[a+16>>2];if((c|0)>=10008){c=a;a=J[a>>2];if(a)continue;break xe}if((c|0)==10007)break we;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=10007;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501], -b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,17825,14)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];ye:{ze:{if(!a){c=2758004;b=2758004;break ze}while(1){b=a;c=J[a+16>>2];if((c|0)>=856){c=a;a=J[a>>2];if(a)continue;break ze}if((c|0)==855)break ye;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=855;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]= -d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Ae:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ae}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22698]|K[22699]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22694]|K[22695]<<8|(K[22696]<<16|K[22697]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Be:{Ce:{if(!a){c=2758004;b=2758004;break Ce}while(1){b=a;c=J[a+16>>2];if((c|0)>=867){c=a;a=J[a>>2];if(a)continue;break Ce}if((c|0)==866)break Be;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0; -a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}De:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break De}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22604];b=K[22600]|K[22601]<<8|(K[22602]<<16|K[22603]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Ee:{Fe:{if(!a){c=2758004;b=2758004; -break Fe}while(1){b=a;c=J[a+16>>2];if((c|0)>=1252){c=a;a=J[a>>2];if(a)continue;break Fe}if((c|0)==1251)break Ee;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1251;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,28281,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501]; -Ge:{He:{if(!a){c=2758004;b=2758004;break He}while(1){b=a;c=J[a+16>>2];if((c|0)>=853){c=a;a=J[a>>2];if(a)continue;break He}if((c|0)==852)break Ge;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=852;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Ie:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ie}H[a+31| -0]=6;a=a+20|0}H[a+6|0]=0;b=K[24709]|K[24710]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24705]|K[24706]<<8|(K[24707]<<16|K[24708]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Je:{Ke:{if(!a){c=2758004;b=2758004;break Ke}while(1){b=a;c=J[a+16>>2];if((c|0)>=1251){c=a;a=J[a>>2];if(a)continue;break Ke}if((c|0)==1250)break Je;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1250;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ -20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,28512,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];Le:{Me:{if(!a){c=2758004;b=2758004;break Me}while(1){b=a;c=J[a+16>>2];if((c|0)>=937){c=a;a=J[a>>2];if(a)continue;break Me}if((c|0)==936)break Le;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=936;J[a+ -8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Ne:{if(H[a+31|0]<0){J[a+24>>2]=3;a=J[a+20>>2];break Ne}H[a+31|0]=3;a=a+20|0}H[a+3|0]=0;H[a+2|0]=K[21169];b=K[21167]|K[21168]<<8;H[a|0]=b;H[a+1|0]=b>>>8;a=J[689501];Oe:{Pe:{if(!a){c=2758004;b=2758004;break Pe}while(1){b=a;c=J[a+16>>2];if((c|0)>=28593){c=a;a=J[a>>2];if(a)continue;break Pe}if((c|0)==28592)break Oe;a=J[b+4>>2];if(a)continue; -break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28592;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Qe:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Qe}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24778]|K[24779]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24774]|K[24775]<<8|(K[24776]<<16|K[24777]<<24);c=K[24770]|K[24771]<<8|(K[24772]<<16|K[24773]<< -24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];Re:{Se:{if(!a){c=2758004;b=2758004;break Se}while(1){b=a;c=J[a+16>>2];if((c|0)>=28598){c=a;a=J[a>>2];if(a)continue;break Se}if((c|0)==28597)break Re;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28597;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>> -2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Te:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Te}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22544]|K[22545]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22540]|K[22541]<<8|(K[22542]<<16|K[22543]<<24);c=K[22536]|K[22537]<<8|(K[22538]<<16|K[22539]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];Ue:{Ve:{if(!a){c=2758004;b=2758004;break Ve}while(1){b=a;c=J[a+16>> -2];if((c|0)>=738){c=a;a=J[a>>2];if(a)continue;break Ve}if((c|0)==737)break Ue;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=737;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}We:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break We}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22512]|K[22513]<<8;H[a+4|0]=b;H[a+5|0]= -b>>>8;b=K[22508]|K[22509]<<8|(K[22510]<<16|K[22511]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Xe:{Ye:{if(!a){c=2758004;b=2758004;break Ye}while(1){b=a;c=J[a+16>>2];if((c|0)>=870){c=a;a=J[a>>2];if(a)continue;break Ye}if((c|0)==869)break Xe;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=869;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]= -d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Ze:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ze}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22304]|K[22305]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22300]|K[22301]<<8|(K[22302]<<16|K[22303]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];_e:{$e:{if(!a){c=2758004;b=2758004;break $e}while(1){b=a;c=J[a+16>>2];if((c|0)>=1254){c=a;a=J[a>>2];if(a)continue;break $e}if((c|0)==1253)break _e;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]= -0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1253;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,24361,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];af:{bf:{if(!a){c=2758004;b=2758004;break bf}while(1){b=a;c=J[a+16>>2];if((c|0)>=28599){c=a;a=J[a>>2];if(a)continue;break bf}if((c|0)==28598)break af;a=J[b+4>>2]; -if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28598;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}cf:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break cf}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22404]|K[22405]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22400]|K[22401]<<8|(K[22402]<<16|K[22403]<<24);c=K[22396]|K[22397]<<8|(K[22398]<< -16|K[22399]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];df:{ef:{if(!a){c=2758004;b=2758004;break ef}while(1){b=a;c=J[a+16>>2];if((c|0)>=863){c=a;a=J[a>>2];if(a)continue;break ef}if((c|0)==862)break df;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=862;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d= -J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}ff:{if(H[a+31|0]<0){J[a+24>>2]=7;a=J[a+20>>2];break ff}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[24700]|K[24701]<<8|(K[24702]<<16|K[24703]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[24697]|K[24698]<<8|(K[24699]<<16|K[24700]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];gf:{hf:{if(!a){c=2758004;b=2758004;break hf}while(1){b=a;c=J[a+16>>2];if((c|0)>=1256){c=a;a=J[a>>2];if(a)continue; -break hf}if((c|0)==1255)break gf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1255;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,22701,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];jf:{kf:{if(!a){c=2758004;b=2758004;break kf}while(1){b=a;c=J[a+16>>2];if((c| -0)>=933){c=a;a=J[a>>2];if(a)continue;break kf}if((c|0)==932)break jf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}lf:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break lf}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[20771];b=K[20767]|K[20768]<<8|(K[20769]<< -16|K[20770]<<24);c=K[20763]|K[20764]<<8|(K[20765]<<16|K[20766]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];mf:{nf:{if(!a){c=2758004;b=2758004;break nf}while(1){b=a;c=J[a+16>>2];if((c|0)>=951){c=a;a=J[a>>2];if(a)continue;break nf}if((c|0)==950)break mf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=950;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ -20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}of:{if(H[a+31|0]<0){J[a+24>>2]=4;a=J[a+20>>2];break of}H[a+31|0]=4;a=a+20|0}H[a+4|0]=0;H[a|0]=66;H[a+1|0]=105;H[a+2|0]=103;H[a+3|0]=53;a=J[689501];pf:{qf:{if(!a){c=2758004;b=2758004;break qf}while(1){b=a;c=J[a+16>>2];if((c|0)>=950){c=a;a=J[a>>2];if(a)continue;break qf}if((c|0)==949)break pf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,22473,14)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];rf:{sf:{if(!a){c=2758004;b=2758004;break sf}while(1){b=a;c=J[a+16>>2];if((c|0)>=51950){c=a;a=J[a>>2];if(a)continue;break sf}if((c|0)==51949)break rf;a=J[b+4>>2];if(a)continue;break}c=b+4| -0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=51949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}tf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break tf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20830]|K[20831]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20826]|K[20827]<<8|(K[20828]<<16|K[20829]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24; -a=J[689501];uf:{vf:{if(!a){c=2758004;b=2758004;break vf}while(1){b=a;c=J[a+16>>2];if((c|0)>=862){c=a;a=J[a>>2];if(a)continue;break vf}if((c|0)==861)break uf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=861;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}wf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break wf}H[a+ -31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28278]|K[28279]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28274]|K[28275]<<8|(K[28276]<<16|K[28277]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];xf:{yf:{if(!a){c=2758004;b=2758004;break yf}while(1){b=a;c=J[a+16>>2];if((c|0)>=866){c=a;a=J[a>>2];if(a)continue;break yf}if((c|0)==865)break xf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=865;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ -20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}zf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break zf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22691]|K[22692]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22687]|K[22688]<<8|(K[22689]<<16|K[22690]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Af:{Bf:{if(!a){c=2758004;b=2758004;break Bf}while(1){b=a;c=J[a+16>>2];if((c|0)>=875){c=a;a=J[a>>2];if(a)continue; -break Bf}if((c|0)==874)break Af;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=874;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,22782,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];Cf:{Df:{if(!a){c=2758004;b=2758004;break Df}while(1){b=a;c=J[a+16>>2];if((c|0)>= -28594){c=a;a=J[a>>2];if(a)continue;break Df}if((c|0)==28593)break Cf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28593;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Ef:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Ef}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24404]|K[24405]<<8;H[a+8|0]=b;H[a+9|0]=b>>> -8;b=K[24400]|K[24401]<<8|(K[24402]<<16|K[24403]<<24);c=K[24396]|K[24397]<<8|(K[24398]<<16|K[24399]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];Ff:{Gf:{if(!a){c=2758004;b=2758004;break Gf}while(1){b=a;c=J[a+16>>2];if((c|0)>=28600){c=a;a=J[a>>2];if(a)continue;break Gf}if((c|0)==28599)break Ff;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28599; -J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Hf:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Hf}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22315]|K[22316]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22311]|K[22312]<<8|(K[22313]<<16|K[22314]<<24);c=K[22307]|K[22308]<<8|(K[22309]<<16|K[22310]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]= -b>>>16;H[a+7|0]=b>>>24;a=J[689501];If:{Jf:{if(!a){c=2758004;b=2758004;break Jf}while(1){b=a;c=J[a+16>>2];if((c|0)>=858){c=a;a=J[a>>2];if(a)continue;break Jf}if((c|0)==857)break If;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=857;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Kf:{if(H[a+31|0]<0){J[a+24>> -2]=6;a=J[a+20>>2];break Kf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22492]|K[22493]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22488]|K[22489]<<8|(K[22490]<<16|K[22491]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Lf:{Mf:{if(!a){c=2758004;b=2758004;break Mf}while(1){b=a;c=J[a+16>>2];if((c|0)>=1255){c=a;a=J[a>>2];if(a)continue;break Mf}if((c|0)==1254)break Lf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1254;J[a+ -8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,22794,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];Nf:{Of:{if(!a){c=2758004;b=2758004;break Of}while(1){b=a;c=J[a+16>>2];if((c|0)>=28592){c=a;a=J[a>>2];if(a)continue;break Of}if((c|0)==28591)break Nf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d| -0)==1)break Vd;J[a+16>>2]=28591;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Pf:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Pf}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[28321]|K[28322]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[28317]|K[28318]<<8|(K[28319]<<16|K[28320]<<24);c=K[28313]|K[28314]<<8|(K[28315]<<16|K[28316]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+ -4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];Qf:{Rf:{if(!a){c=2758004;b=2758004;break Rf}while(1){b=a;c=J[a+16>>2];if((c|0)>=28606){c=a;a=J[a>>2];if(a)continue;break Rf}if((c|0)==28605)break Qf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=28605;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+ -1}J[695492]=0;ga(2830,a+20|0,22714,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];Sf:{Tf:{if(!a){c=2758004;b=2758004;break Tf}while(1){b=a;c=J[a+16>>2];if((c|0)>=851){c=a;a=J[a>>2];if(a)continue;break Tf}if((c|0)==850)break Sf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=850;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501], -b);J[689502]=J[689502]+1}Uf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Uf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28509]|K[28510]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28505]|K[28506]<<8|(K[28507]<<16|K[28508]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Vf:{Wf:{if(!a){c=2758004;b=2758004;break Wf}while(1){b=a;c=J[a+16>>2];if((c|0)>=859){c=a;a=J[a>>2];if(a)continue;break Wf}if((c|0)==858)break Vf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=858;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Xf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Xf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22337]|K[22338]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22333]|K[22334]<<8|(K[22335]<<16|K[22336]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Yf:{Zf:{if(!a){c=2758004;b= -2758004;break Zf}while(1){b=a;c=J[a+16>>2];if((c|0)>=861){c=a;a=J[a>>2];if(a)continue;break Zf}if((c|0)==860)break Yf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=860;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}_f:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break _f}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b= -K[28502]|K[28503]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28498]|K[28499]<<8|(K[28500]<<16|K[28501]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];$f:{ag:{if(!a){c=2758004;b=2758004;break ag}while(1){b=a;c=J[a+16>>2];if((c|0)>=864){c=a;a=J[a>>2];if(a)continue;break ag}if((c|0)==863)break $f;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=863;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>> -2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}bg:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break bg}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24358]|K[24359]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24354]|K[24355]<<8|(K[24356]<<16|K[24357]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];cg:{dg:{if(!a){c=2758004;b=2758004;break dg}while(1){b=a;c=J[a+16>>2];if((c|0)>=438){c=a;a=J[a>>2];if(a)continue;break dg}if((c|0)==437)break cg; -a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=437;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}eg:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break eg}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22519]|K[22520]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22515]|K[22516]<<8|(K[22517]<<16|K[22518]<<24);H[a|0]=b;H[a+1|0]=b>>> -8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];fg:{gg:{if(!a){c=2758004;b=2758004;break gg}while(1){b=a;c=J[a+16>>2];if((c|0)>=1253){c=a;a=J[a>>2];if(a)continue;break gg}if((c|0)==1252)break fg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1252;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}J[695492]=0; -ga(2830,a+20|0,24712,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];hg:{ig:{if(!a){c=2758004;b=2758004;break ig}while(1){b=a;c=J[a+16>>2];if((c|0)>=1259){c=a;a=J[a>>2];if(a)continue;break ig}if((c|0)==1258)break hg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1258;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501], -b);J[689502]=J[689502]+1}J[695492]=0;ga(2830,a+20|0,22340,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Vd;a=J[689501];jg:{kg:{if(!a){c=2758004;b=2758004;break kg}while(1){b=a;c=J[a+16>>2];if((c|0)>=65002){c=a;a=J[a>>2];if(a)continue;break kg}if((c|0)==65001)break jg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=65001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2]; -if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}lg:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break lg}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22394];b=K[22390]|K[22391]<<8|(K[22392]<<16|K[22393]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];mg:{ng:{if(!a){c=2758004;b=2758004;break ng}while(1){b=a;c=J[a+16>>2];if((c|0)>=65001){c=a;a=J[a>>2];if(a)continue;break ng}if((c|0)==65E3)break mg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0; -d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=65E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}og:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break og}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22534];b=K[22530]|K[22531]<<8|(K[22532]<<16|K[22533]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];pg:{qg:{if(!a){c=2758004;b=2758004;break qg}while(1){b= -a;c=J[a+16>>2];if((c|0)>=1201){c=a;a=J[a>>2];if(a)continue;break qg}if((c|0)==1200)break pg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1200;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}rg:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break rg}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+ -2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=76;H[a+7|0]=69;a=J[689501];sg:{tg:{if(!a){c=2758004;b=2758004;break tg}while(1){b=a;c=J[a+16>>2];if((c|0)>=1202){c=a;a=J[a>>2];if(a)continue;break tg}if((c|0)==1201)break sg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1201;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b); -J[689502]=J[689502]+1}ug:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break ug}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=66;H[a+7|0]=69;a=J[689501];vg:{wg:{if(!a){c=2758004;b=2758004;break wg}while(1){b=a;c=J[a+16>>2];if((c|0)>=12001){c=a;a=J[a>>2];if(a)continue;break wg}if((c|0)==12E3)break vg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=12E3;J[a+8>>2]=b;J[a>> -2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}xg:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break xg}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=76;H[a+7|0]=69;a=J[689501];yg:{zg:{if(!a){c=2758004;b=2758004;break zg}while(1){b=a;c=J[a+16>>2];if((c|0)>=12002){c=a;a=J[a>>2];if(a)continue;break zg}if((c|0)==12001)break yg;a=J[b+ -4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=12001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Ag:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Ag}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=66;H[a+7|0]=69;a=J[689501];Bg:{Cg:{if(!a){c= -2758004;b=2758004;break Cg}while(1){b=a;c=J[a+16>>2];if((c|0)>=10001){c=a;a=J[a>>2];if(a)continue;break Cg}if((c|0)==1E4)break Bg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=1E4;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Dg:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break Dg}H[a+31|0]=9;a=a+20|0}H[a+ -9|0]=0;H[a+8|0]=K[11158];b=K[11154]|K[11155]<<8|(K[11156]<<16|K[11157]<<24);c=K[11150]|K[11151]<<8|(K[11152]<<16|K[11153]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689501];Eg:{Fg:{if(!a){c=2758004;b=2758004;break Fg}while(1){b=a;c=J[a+16>>2];if((c|0)>=20933){c=a;a=J[a>>2];if(a)continue;break Fg}if((c|0)==20932)break Eg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd; -J[a+16>>2]=20932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}Gg:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Gg}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20913]|K[20914]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20909]|K[20910]<<8|(K[20911]<<16|K[20912]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689501];Hg:{Ig:{if(!a){c=2758004;b=2758004;break Ig}while(1){b=a;c= -J[a+16>>2];if((c|0)>=54937){c=a;a=J[a>>2];if(a)continue;break Ig}if((c|0)==54936)break Hg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Vd;J[a+16>>2]=54936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689500]>>2];if(d){J[689500]=d;b=J[c>>2]}Ic(J[689501],b);J[689502]=J[689502]+1}if(H[a+31|0]>=0)break Ud;J[a+24>>2]=7;a=J[a+20>>2];break Td}b=Z()|0;ml(2758E3,J[689501]);break h}H[a+31|0]=7;a=a+20| -0}H[a+7|0]=0;b=K[28528]|K[28529]<<8|(K[28530]<<16|K[28531]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28525]|K[28526]<<8|(K[28527]<<16|K[28528]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;J[689503]=2758016;J[689504]=0;J[689505]=0;J[695492]=0;c=$(4,32)|0;a=J[695492];J[695492]=0;Jg:{Kg:{if((a|0)!=1)Lg:{J[c+8>>2]=2758016;J[c>>2]=0;J[c+4>>2]=0;a=28596;J[c+16>>2]=28596;J[689503]=c;J[689504]=c;H[c+12|0]=1;J[689505]=1;H[c+30|0]=0;H[c+31|0]=10;b=K[22636]|K[22637]<< -8|(K[22638]<<16|K[22639]<<24);d=K[22632]|K[22633]<<8|(K[22634]<<16|K[22635]<<24);H[c+20|0]=d;H[c+21|0]=d>>>8;H[c+22|0]=d>>>16;H[c+23|0]=d>>>24;H[c+24|0]=b;H[c+25|0]=b>>>8;H[c+26|0]=b>>>16;H[c+27|0]=b>>>24;b=K[22640]|K[22641]<<8;H[c+28|0]=b;H[c+29|0]=b>>>8;Mg:{Ng:{while(1){Og:{Pg:{if((a|0)>=721){b=J[c>>2];if(b)break Pg;a=c;break Ng}if((a|0)==720){b=c;break Mg}b=J[c+4>>2];if(!b)break Og}a=J[b+16>>2];c=b;continue}break}a=c+4|0}J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[b+ -16>>2]=720;J[b+8>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[a>>2]=b;c=b;d=J[J[689503]>>2];if(d){J[689503]=d;c=J[a>>2]}Ic(J[689504],c);J[689505]=J[689505]+1}Qg:{if(H[b+31|0]<0){J[b+24>>2]=7;a=J[b+20>>2];break Qg}H[b+31|0]=7;a=b+20|0}H[a+7|0]=0;b=K[28536]|K[28537]<<8|(K[28538]<<16|K[28539]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28533]|K[28534]<<8|(K[28535]<<16|K[28536]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Rg:{Sg:{if(!a){c= -2758016;b=2758016;break Sg}while(1){b=a;c=J[a+16>>2];if((c|0)>=1257){c=a;a=J[a>>2];if(a)continue;break Sg}if((c|0)==1256)break Rg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1256;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,22606,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg; -a=J[689504];Tg:{Ug:{if(!a){c=2758016;b=2758016;break Ug}while(1){b=a;c=J[a+16>>2];if((c|0)>=28595){c=a;a=J[a>>2];if(a)continue;break Ug}if((c|0)==28594)break Tg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28594;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Vg:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>> -2];break Vg}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22869]|K[22870]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22865]|K[22866]<<8|(K[22867]<<16|K[22868]<<24);c=K[22861]|K[22862]<<8|(K[22863]<<16|K[22864]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];Wg:{Xg:{if(!a){c=2758016;b=2758016;break Xg}while(1){b=a;c=J[a+16>>2];if((c|0)>=28604){c=a;a=J[a>>2];if(a)continue;break Xg}if((c|0)==28603)break Wg;a=J[b+4>>2];if(a)continue;break}c= -b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28603;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,24384,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];Yg:{Zg:{if(!a){c=2758016;b=2758016;break Zg}while(1){b=a;c=J[a+16>>2];if((c|0)>=776){c=a;a=J[a>>2];if(a)continue;break Zg}if((c|0)==775)break Yg; -a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=775;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}_g:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break _g}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22684]|K[22685]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22680]|K[22681]<<8|(K[22682]<<16|K[22683]<<24);H[a|0]=b;H[a+1|0]=b>>> -8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];$g:{ah:{if(!a){c=2758016;b=2758016;break ah}while(1){b=a;c=J[a+16>>2];if((c|0)>=1258){c=a;a=J[a>>2];if(a)continue;break ah}if((c|0)==1257)break $g;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1257;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0; -ga(2830,a+20|0,22495,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];bh:{ch:{if(!a){c=2758016;b=2758016;break ch}while(1){b=a;c=J[a+16>>2];if((c|0)>=28605){c=a;a=J[a>>2];if(a)continue;break ch}if((c|0)==28604)break bh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28604;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504], -b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,22821,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];dh:{eh:{if(!a){c=2758016;b=2758016;break eh}while(1){b=a;c=J[a+16>>2];if((c|0)>=28596){c=a;a=J[a>>2];if(a)continue;break eh}if((c|0)==28595)break dh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28595;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2]; -if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}fh:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break fh}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22734]|K[22735]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22730]|K[22731]<<8|(K[22732]<<16|K[22733]<<24);c=K[22726]|K[22727]<<8|(K[22728]<<16|K[22729]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];gh:{hh:{if(!a){c=2758016;b=2758016;break hh}while(1){b=a;c=J[a+16>>2]; -if((c|0)>=20867){c=a;a=J[a>>2];if(a)continue;break hh}if((c|0)==20866)break gh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=20866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}ih:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ih}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20844]|K[20845]<<8;H[a+4|0]=b;H[a+ -5|0]=b>>>8;b=K[20840]|K[20841]<<8|(K[20842]<<16|K[20843]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];jh:{kh:{if(!a){c=2758016;b=2758016;break kh}while(1){b=a;c=J[a+16>>2];if((c|0)>=21867){c=a;a=J[a>>2];if(a)continue;break kh}if((c|0)==21866)break jh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=21866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>> -2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}lh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break lh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20442]|K[20443]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20438]|K[20439]<<8|(K[20440]<<16|K[20441]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];mh:{nh:{if(!a){c=2758016;b=2758016;break nh}while(1){b=a;c=J[a+16>>2];if((c|0)>=10008){c=a;a=J[a>>2];if(a)continue;break nh}if((c|0)==10007)break mh;a=J[b+4>>2];if(a)continue;break}c= -b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=10007;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,17825,14)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];oh:{ph:{if(!a){c=2758016;b=2758016;break ph}while(1){b=a;c=J[a+16>>2];if((c|0)>=856){c=a;a=J[a>>2];if(a)continue;break ph}if((c|0)==855)break oh; -a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=855;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}qh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break qh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22698]|K[22699]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22694]|K[22695]<<8|(K[22696]<<16|K[22697]<<24);H[a|0]=b;H[a+1|0]=b>>> -8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];rh:{sh:{if(!a){c=2758016;b=2758016;break sh}while(1){b=a;c=J[a+16>>2];if((c|0)>=867){c=a;a=J[a>>2];if(a)continue;break sh}if((c|0)==866)break rh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}th:{if(H[a+31|0]< -0){J[a+24>>2]=5;a=J[a+20>>2];break th}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22604];b=K[22600]|K[22601]<<8|(K[22602]<<16|K[22603]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];uh:{vh:{if(!a){c=2758016;b=2758016;break vh}while(1){b=a;c=J[a+16>>2];if((c|0)>=1252){c=a;a=J[a>>2];if(a)continue;break vh}if((c|0)==1251)break uh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1251;J[a+8>>2]=b;J[a>>2]=0; -J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,28281,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];wh:{xh:{if(!a){c=2758016;b=2758016;break xh}while(1){b=a;c=J[a+16>>2];if((c|0)>=853){c=a;a=J[a>>2];if(a)continue;break xh}if((c|0)==852)break wh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+ -16>>2]=852;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}yh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break yh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24709]|K[24710]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24705]|K[24706]<<8|(K[24707]<<16|K[24708]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];zh:{Ah:{if(!a){c=2758016;b=2758016;break Ah}while(1){b=a;c=J[a+16>> -2];if((c|0)>=1251){c=a;a=J[a>>2];if(a)continue;break Ah}if((c|0)==1250)break zh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1250;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,28512,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];Bh:{Ch:{if(!a){c=2758016;b=2758016; -break Ch}while(1){b=a;c=J[a+16>>2];if((c|0)>=937){c=a;a=J[a>>2];if(a)continue;break Ch}if((c|0)==936)break Bh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Dh:{if(H[a+31|0]<0){J[a+24>>2]=3;a=J[a+20>>2];break Dh}H[a+31|0]=3;a=a+20|0}H[a+3|0]=0;H[a+2|0]= -K[21169];b=K[21167]|K[21168]<<8;H[a|0]=b;H[a+1|0]=b>>>8;a=J[689504];Eh:{Fh:{if(!a){c=2758016;b=2758016;break Fh}while(1){b=a;c=J[a+16>>2];if((c|0)>=28593){c=a;a=J[a>>2];if(a)continue;break Fh}if((c|0)==28592)break Eh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28592;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]= -J[689505]+1}Gh:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Gh}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24778]|K[24779]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24774]|K[24775]<<8|(K[24776]<<16|K[24777]<<24);c=K[24770]|K[24771]<<8|(K[24772]<<16|K[24773]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];Hh:{Ih:{if(!a){c=2758016;b=2758016;break Ih}while(1){b=a;c=J[a+16>>2];if((c|0)>=28598){c=a;a=J[a>>2];if(a)continue;break Ih}if((c| -0)==28597)break Hh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28597;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Jh:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Jh}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22544]|K[22545]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22540]|K[22541]<<8|(K[22542]<<16|K[22543]<< -24);c=K[22536]|K[22537]<<8|(K[22538]<<16|K[22539]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];Kh:{Lh:{if(!a){c=2758016;b=2758016;break Lh}while(1){b=a;c=J[a+16>>2];if((c|0)>=738){c=a;a=J[a>>2];if(a)continue;break Lh}if((c|0)==737)break Kh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=737;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+ -24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Mh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Mh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22512]|K[22513]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22508]|K[22509]<<8|(K[22510]<<16|K[22511]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Nh:{Oh:{if(!a){c=2758016;b=2758016;break Oh}while(1){b=a;c=J[a+16>>2];if((c|0)>=870){c=a;a=J[a>>2];if(a)continue;break Oh}if((c| -0)==869)break Nh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=869;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Ph:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ph}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22304]|K[22305]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22300]|K[22301]<<8|(K[22302]<<16|K[22303]<<24);H[a| -0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Qh:{Rh:{if(!a){c=2758016;b=2758016;break Rh}while(1){b=a;c=J[a+16>>2];if((c|0)>=1254){c=a;a=J[a>>2];if(a)continue;break Rh}if((c|0)==1253)break Qh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1253;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+ -1}J[695492]=0;ga(2830,a+20|0,24361,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];Sh:{Th:{if(!a){c=2758016;b=2758016;break Th}while(1){b=a;c=J[a+16>>2];if((c|0)>=28599){c=a;a=J[a>>2];if(a)continue;break Th}if((c|0)==28598)break Sh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28598;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>> -2]}Ic(J[689504],b);J[689505]=J[689505]+1}Uh:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Uh}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22404]|K[22405]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22400]|K[22401]<<8|(K[22402]<<16|K[22403]<<24);c=K[22396]|K[22397]<<8|(K[22398]<<16|K[22399]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];Vh:{Wh:{if(!a){c=2758016;b=2758016;break Wh}while(1){b=a;c=J[a+16>>2];if((c|0)>=863){c=a;a=J[a>> -2];if(a)continue;break Wh}if((c|0)==862)break Vh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=862;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Xh:{if(H[a+31|0]<0){J[a+24>>2]=7;a=J[a+20>>2];break Xh}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[24700]|K[24701]<<8|(K[24702]<<16|K[24703]<<24);H[a+3|0]=b;H[a+4|0]= -b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[24697]|K[24698]<<8|(K[24699]<<16|K[24700]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Yh:{Zh:{if(!a){c=2758016;b=2758016;break Zh}while(1){b=a;c=J[a+16>>2];if((c|0)>=1256){c=a;a=J[a>>2];if(a)continue;break Zh}if((c|0)==1255)break Yh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1255;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0; -J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,22701,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];_h:{$h:{if(!a){c=2758016;b=2758016;break $h}while(1){b=a;c=J[a+16>>2];if((c|0)>=933){c=a;a=J[a>>2];if(a)continue;break $h}if((c|0)==932)break _h;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ -20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}ai:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break ai}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[20771];b=K[20767]|K[20768]<<8|(K[20769]<<16|K[20770]<<24);c=K[20763]|K[20764]<<8|(K[20765]<<16|K[20766]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];bi:{ci:{if(!a){c=2758016;b=2758016; -break ci}while(1){b=a;c=J[a+16>>2];if((c|0)>=951){c=a;a=J[a>>2];if(a)continue;break ci}if((c|0)==950)break bi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=950;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}di:{if(H[a+31|0]<0){J[a+24>>2]=4;a=J[a+20>>2];break di}H[a+31|0]=4;a=a+20|0}H[a+4|0]=0;H[a|0]=66; -H[a+1|0]=105;H[a+2|0]=103;H[a+3|0]=53;a=J[689504];ei:{fi:{if(!a){c=2758016;b=2758016;break fi}while(1){b=a;c=J[a+16>>2];if((c|0)>=950){c=a;a=J[a>>2];if(a)continue;break fi}if((c|0)==949)break ei;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0; -ga(2830,a+20|0,22473,14)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];gi:{hi:{if(!a){c=2758016;b=2758016;break hi}while(1){b=a;c=J[a+16>>2];if((c|0)>=51950){c=a;a=J[a>>2];if(a)continue;break hi}if((c|0)==51949)break gi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=51949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504], -b);J[689505]=J[689505]+1}ii:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ii}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20830]|K[20831]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20826]|K[20827]<<8|(K[20828]<<16|K[20829]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];ji:{ki:{if(!a){c=2758016;b=2758016;break ki}while(1){b=a;c=J[a+16>>2];if((c|0)>=862){c=a;a=J[a>>2];if(a)continue;break ki}if((c|0)==861)break ji;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=861;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}li:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break li}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28278]|K[28279]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28274]|K[28275]<<8|(K[28276]<<16|K[28277]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];mi:{ni:{if(!a){c=2758016;b= -2758016;break ni}while(1){b=a;c=J[a+16>>2];if((c|0)>=866){c=a;a=J[a>>2];if(a)continue;break ni}if((c|0)==865)break mi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=865;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}oi:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break oi}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b= -K[22691]|K[22692]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22687]|K[22688]<<8|(K[22689]<<16|K[22690]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];pi:{qi:{if(!a){c=2758016;b=2758016;break qi}while(1){b=a;c=J[a+16>>2];if((c|0)>=875){c=a;a=J[a>>2];if(a)continue;break qi}if((c|0)==874)break pi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=874;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>> -2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,22782,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];ri:{si:{if(!a){c=2758016;b=2758016;break si}while(1){b=a;c=J[a+16>>2];if((c|0)>=28594){c=a;a=J[a>>2];if(a)continue;break si}if((c|0)==28593)break ri;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28593;J[a+8>>2]=b;J[a>>2]=0;J[a+4>> -2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}ti:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ti}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24404]|K[24405]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24400]|K[24401]<<8|(K[24402]<<16|K[24403]<<24);c=K[24396]|K[24397]<<8|(K[24398]<<16|K[24399]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504]; -ui:{vi:{if(!a){c=2758016;b=2758016;break vi}while(1){b=a;c=J[a+16>>2];if((c|0)>=28600){c=a;a=J[a>>2];if(a)continue;break vi}if((c|0)==28599)break ui;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28599;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}wi:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break wi}H[a+ -31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22315]|K[22316]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22311]|K[22312]<<8|(K[22313]<<16|K[22314]<<24);c=K[22307]|K[22308]<<8|(K[22309]<<16|K[22310]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];xi:{yi:{if(!a){c=2758016;b=2758016;break yi}while(1){b=a;c=J[a+16>>2];if((c|0)>=858){c=a;a=J[a>>2];if(a)continue;break yi}if((c|0)==857)break xi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]= -0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=857;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}zi:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break zi}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22492]|K[22493]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22488]|K[22489]<<8|(K[22490]<<16|K[22491]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Ai:{Bi:{if(!a){c= -2758016;b=2758016;break Bi}while(1){b=a;c=J[a+16>>2];if((c|0)>=1255){c=a;a=J[a>>2];if(a)continue;break Bi}if((c|0)==1254)break Ai;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1254;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,22794,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg; -a=J[689504];Ci:{Di:{if(!a){c=2758016;b=2758016;break Di}while(1){b=a;c=J[a+16>>2];if((c|0)>=28592){c=a;a=J[a>>2];if(a)continue;break Di}if((c|0)==28591)break Ci;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28591;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Ei:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>> -2];break Ei}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[28321]|K[28322]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[28317]|K[28318]<<8|(K[28319]<<16|K[28320]<<24);c=K[28313]|K[28314]<<8|(K[28315]<<16|K[28316]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];Fi:{Gi:{if(!a){c=2758016;b=2758016;break Gi}while(1){b=a;c=J[a+16>>2];if((c|0)>=28606){c=a;a=J[a>>2];if(a)continue;break Gi}if((c|0)==28605)break Fi;a=J[b+4>>2];if(a)continue;break}c= -b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=28605;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,22714,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];Hi:{Ii:{if(!a){c=2758016;b=2758016;break Ii}while(1){b=a;c=J[a+16>>2];if((c|0)>=851){c=a;a=J[a>>2];if(a)continue;break Ii}if((c|0)==850)break Hi; -a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=850;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Ji:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ji}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28509]|K[28510]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28505]|K[28506]<<8|(K[28507]<<16|K[28508]<<24);H[a|0]=b;H[a+1|0]=b>>> -8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Ki:{Li:{if(!a){c=2758016;b=2758016;break Li}while(1){b=a;c=J[a+16>>2];if((c|0)>=859){c=a;a=J[a>>2];if(a)continue;break Li}if((c|0)==858)break Ki;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=858;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Mi:{if(H[a+31|0]< -0){J[a+24>>2]=6;a=J[a+20>>2];break Mi}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22337]|K[22338]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22333]|K[22334]<<8|(K[22335]<<16|K[22336]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Ni:{Oi:{if(!a){c=2758016;b=2758016;break Oi}while(1){b=a;c=J[a+16>>2];if((c|0)>=861){c=a;a=J[a>>2];if(a)continue;break Oi}if((c|0)==860)break Ni;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]= -860;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Pi:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Pi}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28502]|K[28503]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28498]|K[28499]<<8|(K[28500]<<16|K[28501]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Qi:{Ri:{if(!a){c=2758016;b=2758016;break Ri}while(1){b=a;c=J[a+16>>2];if((c| -0)>=864){c=a;a=J[a>>2];if(a)continue;break Ri}if((c|0)==863)break Qi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=863;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Si:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Si}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24358]|K[24359]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b= -K[24354]|K[24355]<<8|(K[24356]<<16|K[24357]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Ti:{Ui:{if(!a){c=2758016;b=2758016;break Ui}while(1){b=a;c=J[a+16>>2];if((c|0)>=438){c=a;a=J[a>>2];if(a)continue;break Ui}if((c|0)==437)break Ti;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=437;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]= -d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}Vi:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Vi}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22519]|K[22520]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22515]|K[22516]<<8|(K[22517]<<16|K[22518]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];Wi:{Xi:{if(!a){c=2758016;b=2758016;break Xi}while(1){b=a;c=J[a+16>>2];if((c|0)>=1253){c=a;a=J[a>>2];if(a)continue;break Xi}if((c|0)==1252)break Wi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]= -0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1252;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,24712,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];Yi:{Zi:{if(!a){c=2758016;b=2758016;break Zi}while(1){b=a;c=J[a+16>>2];if((c|0)>=1259){c=a;a=J[a>>2];if(a)continue;break Zi}if((c|0)==1258)break Yi;a=J[b+4>>2]; -if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1258;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}J[695492]=0;ga(2830,a+20|0,22340,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Lg;a=J[689504];_i:{$i:{if(!a){c=2758016;b=2758016;break $i}while(1){b=a;c=J[a+16>>2];if((c|0)>=65002){c=a;a=J[a>>2];if(a)continue;break $i}if((c| -0)==65001)break _i;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=65001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}aj:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break aj}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22394];b=K[22390]|K[22391]<<8|(K[22392]<<16|K[22393]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2| -0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];bj:{cj:{if(!a){c=2758016;b=2758016;break cj}while(1){b=a;c=J[a+16>>2];if((c|0)>=65001){c=a;a=J[a>>2];if(a)continue;break cj}if((c|0)==65E3)break bj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=65E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}dj:{if(H[a+31|0]<0){J[a+ -24>>2]=5;a=J[a+20>>2];break dj}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22534];b=K[22530]|K[22531]<<8|(K[22532]<<16|K[22533]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];ej:{fj:{if(!a){c=2758016;b=2758016;break fj}while(1){b=a;c=J[a+16>>2];if((c|0)>=1201){c=a;a=J[a>>2];if(a)continue;break fj}if((c|0)==1200)break ej;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1200;J[a+8>>2]=b;J[a>>2]=0;J[a+4>> -2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}gj:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break gj}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=76;H[a+7|0]=69;a=J[689504];hj:{ij:{if(!a){c=2758016;b=2758016;break ij}while(1){b=a;c=J[a+16>>2];if((c|0)>=1202){c=a;a=J[a>>2];if(a)continue;break ij}if((c|0)==1201)break hj;a=J[b+4>>2];if(a)continue; -break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1201;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}jj:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break jj}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=66;H[a+7|0]=69;a=J[689504];kj:{lj:{if(!a){c=2758016;b=2758016;break lj}while(1){b= -a;c=J[a+16>>2];if((c|0)>=12001){c=a;a=J[a>>2];if(a)continue;break lj}if((c|0)==12E3)break kj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=12E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}mj:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break mj}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+ -2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=76;H[a+7|0]=69;a=J[689504];nj:{oj:{if(!a){c=2758016;b=2758016;break oj}while(1){b=a;c=J[a+16>>2];if((c|0)>=12002){c=a;a=J[a>>2];if(a)continue;break oj}if((c|0)==12001)break nj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=12001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504], -b);J[689505]=J[689505]+1}pj:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break pj}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=66;H[a+7|0]=69;a=J[689504];qj:{rj:{if(!a){c=2758016;b=2758016;break rj}while(1){b=a;c=J[a+16>>2];if((c|0)>=10001){c=a;a=J[a>>2];if(a)continue;break rj}if((c|0)==1E4)break qj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=1E4;J[a+8>>2]=b; -J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}sj:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break sj}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[11158];b=K[11154]|K[11155]<<8|(K[11156]<<16|K[11157]<<24);c=K[11150]|K[11151]<<8|(K[11152]<<16|K[11153]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[689504];tj:{uj:{if(!a){c= -2758016;b=2758016;break uj}while(1){b=a;c=J[a+16>>2];if((c|0)>=20933){c=a;a=J[a>>2];if(a)continue;break uj}if((c|0)==20932)break tj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=20932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}vj:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break vj}H[a+31|0]=6;a=a+20| -0}H[a+6|0]=0;b=K[20913]|K[20914]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20909]|K[20910]<<8|(K[20911]<<16|K[20912]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[689504];wj:{xj:{if(!a){c=2758016;b=2758016;break xj}while(1){b=a;c=J[a+16>>2];if((c|0)>=54937){c=a;a=J[a>>2];if(a)continue;break xj}if((c|0)==54936)break wj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Lg;J[a+16>>2]=54936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]= -0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[689503]>>2];if(d){J[689503]=d;b=J[c>>2]}Ic(J[689504],b);J[689505]=J[689505]+1}if(H[a+31|0]>=0)break Kg;J[a+24>>2]=7;a=J[a+20>>2];break Jg}b=Z()|0;ml(2758012,J[689504]);break h}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[28528]|K[28529]<<8|(K[28530]<<16|K[28531]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28525]|K[28526]<<8|(K[28527]<<16|K[28528]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;J[689604]=2758420;J[689605]=0; -J[689606]=0;J[689607]=2758432;J[689608]=0;J[689609]=0;a=J[696022];J[696022]=5448;J[690032]=a;J[694679]=2778720;J[694680]=0;J[694681]=0;J[695492]=0;c=$(4,32)|0;a=J[695492];J[695492]=0;yj:{zj:{if((a|0)!=1)Aj:{J[c+8>>2]=2778720;J[c>>2]=0;J[c+4>>2]=0;a=28596;J[c+16>>2]=28596;J[694679]=c;J[694680]=c;H[c+12|0]=1;J[694681]=1;H[c+30|0]=0;H[c+31|0]=10;b=K[22636]|K[22637]<<8|(K[22638]<<16|K[22639]<<24);d=K[22632]|K[22633]<<8|(K[22634]<<16|K[22635]<<24);H[c+20|0]=d;H[c+21|0]=d>>>8;H[c+22|0]=d>>>16;H[c+23|0]= -d>>>24;H[c+24|0]=b;H[c+25|0]=b>>>8;H[c+26|0]=b>>>16;H[c+27|0]=b>>>24;b=K[22640]|K[22641]<<8;H[c+28|0]=b;H[c+29|0]=b>>>8;Bj:{Cj:{while(1){Dj:{Ej:{if((a|0)>=721){b=J[c>>2];if(b)break Ej;a=c;break Cj}if((a|0)==720){b=c;break Bj}b=J[c+4>>2];if(!b)break Dj}a=J[b+16>>2];c=b;continue}break}a=c+4|0}J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[b+16>>2]=720;J[b+8>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[a>>2]=b;c=b;d=J[J[694679]>>2];if(d){J[694679]=d;c= -J[a>>2]}Ic(J[694680],c);J[694681]=J[694681]+1}Fj:{if(H[b+31|0]<0){J[b+24>>2]=7;a=J[b+20>>2];break Fj}H[b+31|0]=7;a=b+20|0}H[a+7|0]=0;b=K[28536]|K[28537]<<8|(K[28538]<<16|K[28539]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28533]|K[28534]<<8|(K[28535]<<16|K[28536]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Gj:{Hj:{if(!a){c=2778720;b=2778720;break Hj}while(1){b=a;c=J[a+16>>2];if((c|0)>=1257){c=a;a=J[a>>2];if(a)continue;break Hj}if((c|0)==1256)break Gj; -a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1256;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22606,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Ij:{Jj:{if(!a){c=2778720;b=2778720;break Jj}while(1){b=a;c=J[a+16>>2];if((c|0)>=28595){c=a;a=J[a>>2];if(a)continue; -break Jj}if((c|0)==28594)break Ij;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28594;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Kj:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Kj}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22869]|K[22870]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22865]|K[22866]<<8|(K[22867]<< -16|K[22868]<<24);c=K[22861]|K[22862]<<8|(K[22863]<<16|K[22864]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];Lj:{Mj:{if(!a){c=2778720;b=2778720;break Mj}while(1){b=a;c=J[a+16>>2];if((c|0)>=28604){c=a;a=J[a>>2];if(a)continue;break Mj}if((c|0)==28603)break Lj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28603;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]= -0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,24384,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Nj:{Oj:{if(!a){c=2778720;b=2778720;break Oj}while(1){b=a;c=J[a+16>>2];if((c|0)>=776){c=a;a=J[a>>2];if(a)continue;break Oj}if((c|0)==775)break Nj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=775; -J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Pj:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Pj}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22684]|K[22685]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22680]|K[22681]<<8|(K[22682]<<16|K[22683]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Qj:{Rj:{if(!a){c=2778720;b=2778720;break Rj}while(1){b=a;c=J[a+16>>2];if((c| -0)>=1258){c=a;a=J[a>>2];if(a)continue;break Rj}if((c|0)==1257)break Qj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1257;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22495,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Sj:{Tj:{if(!a){c=2778720;b=2778720;break Tj}while(1){b= -a;c=J[a+16>>2];if((c|0)>=28605){c=a;a=J[a>>2];if(a)continue;break Tj}if((c|0)==28604)break Sj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28604;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22821,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Uj:{Vj:{if(!a){c= -2778720;b=2778720;break Vj}while(1){b=a;c=J[a+16>>2];if((c|0)>=28596){c=a;a=J[a>>2];if(a)continue;break Vj}if((c|0)==28595)break Uj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28595;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Wj:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Wj}H[a+31|0]=10;a=a+ -20|0}H[a+10|0]=0;b=K[22734]|K[22735]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22730]|K[22731]<<8|(K[22732]<<16|K[22733]<<24);c=K[22726]|K[22727]<<8|(K[22728]<<16|K[22729]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];Xj:{Yj:{if(!a){c=2778720;b=2778720;break Yj}while(1){b=a;c=J[a+16>>2];if((c|0)>=20867){c=a;a=J[a>>2];if(a)continue;break Yj}if((c|0)==20866)break Xj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4, -32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=20866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Zj:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Zj}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20844]|K[20845]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20840]|K[20841]<<8|(K[20842]<<16|K[20843]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];_j:{$j:{if(!a){c= -2778720;b=2778720;break $j}while(1){b=a;c=J[a+16>>2];if((c|0)>=21867){c=a;a=J[a>>2];if(a)continue;break $j}if((c|0)==21866)break _j;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=21866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}ak:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ak}H[a+31|0]=6;a=a+20| -0}H[a+6|0]=0;b=K[20442]|K[20443]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20438]|K[20439]<<8|(K[20440]<<16|K[20441]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];bk:{ck:{if(!a){c=2778720;b=2778720;break ck}while(1){b=a;c=J[a+16>>2];if((c|0)>=10008){c=a;a=J[a>>2];if(a)continue;break ck}if((c|0)==10007)break bk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=10007;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]= -0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,17825,14)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];dk:{ek:{if(!a){c=2778720;b=2778720;break ek}while(1){b=a;c=J[a+16>>2];if((c|0)>=856){c=a;a=J[a>>2];if(a)continue;break ek}if((c|0)==855)break dk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=855;J[a+8>>2]= -b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}fk:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break fk}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22698]|K[22699]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22694]|K[22695]<<8|(K[22696]<<16|K[22697]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];gk:{hk:{if(!a){c=2778720;b=2778720;break hk}while(1){b=a;c=J[a+16>>2];if((c|0)>=867){c= -a;a=J[a>>2];if(a)continue;break hk}if((c|0)==866)break gk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}ik:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break ik}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22604];b=K[22600]|K[22601]<<8|(K[22602]<<16|K[22603]<< -24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];jk:{kk:{if(!a){c=2778720;b=2778720;break kk}while(1){b=a;c=J[a+16>>2];if((c|0)>=1252){c=a;a=J[a>>2];if(a)continue;break kk}if((c|0)==1251)break jk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1251;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]= -J[694681]+1}J[695492]=0;ga(2830,a+20|0,28281,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];lk:{mk:{if(!a){c=2778720;b=2778720;break mk}while(1){b=a;c=J[a+16>>2];if((c|0)>=853){c=a;a=J[a>>2];if(a)continue;break mk}if((c|0)==852)break lk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=852;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b= -J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}nk:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break nk}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24709]|K[24710]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24705]|K[24706]<<8|(K[24707]<<16|K[24708]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];ok:{pk:{if(!a){c=2778720;b=2778720;break pk}while(1){b=a;c=J[a+16>>2];if((c|0)>=1251){c=a;a=J[a>>2];if(a)continue;break pk}if((c|0)==1250)break ok;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a= -$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1250;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,28512,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];qk:{rk:{if(!a){c=2778720;b=2778720;break rk}while(1){b=a;c=J[a+16>>2];if((c|0)>=937){c=a;a=J[a>>2];if(a)continue;break rk}if((c|0)==936)break qk;a=J[b+4>>2];if(a)continue; -break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}sk:{if(H[a+31|0]<0){J[a+24>>2]=3;a=J[a+20>>2];break sk}H[a+31|0]=3;a=a+20|0}H[a+3|0]=0;H[a+2|0]=K[21169];b=K[21167]|K[21168]<<8;H[a|0]=b;H[a+1|0]=b>>>8;a=J[694680];tk:{uk:{if(!a){c=2778720;b=2778720;break uk}while(1){b=a;c=J[a+16>>2]; -if((c|0)>=28593){c=a;a=J[a>>2];if(a)continue;break uk}if((c|0)==28592)break tk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28592;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}vk:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break vk}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24778]|K[24779]<<8;H[a+8|0]=b;H[a+ -9|0]=b>>>8;b=K[24774]|K[24775]<<8|(K[24776]<<16|K[24777]<<24);c=K[24770]|K[24771]<<8|(K[24772]<<16|K[24773]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];wk:{xk:{if(!a){c=2778720;b=2778720;break xk}while(1){b=a;c=J[a+16>>2];if((c|0)>=28598){c=a;a=J[a>>2];if(a)continue;break xk}if((c|0)==28597)break wk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+ -16>>2]=28597;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}yk:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break yk}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22544]|K[22545]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22540]|K[22541]<<8|(K[22542]<<16|K[22543]<<24);c=K[22536]|K[22537]<<8|(K[22538]<<16|K[22539]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]= -b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];zk:{Ak:{if(!a){c=2778720;b=2778720;break Ak}while(1){b=a;c=J[a+16>>2];if((c|0)>=738){c=a;a=J[a>>2];if(a)continue;break Ak}if((c|0)==737)break zk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=737;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Bk:{if(H[a+ -31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Bk}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22512]|K[22513]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22508]|K[22509]<<8|(K[22510]<<16|K[22511]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Ck:{Dk:{if(!a){c=2778720;b=2778720;break Dk}while(1){b=a;c=J[a+16>>2];if((c|0)>=870){c=a;a=J[a>>2];if(a)continue;break Dk}if((c|0)==869)break Ck;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+ -16>>2]=869;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Ek:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ek}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22304]|K[22305]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22300]|K[22301]<<8|(K[22302]<<16|K[22303]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Fk:{Gk:{if(!a){c=2778720;b=2778720;break Gk}while(1){b=a;c=J[a+16>> -2];if((c|0)>=1254){c=a;a=J[a>>2];if(a)continue;break Gk}if((c|0)==1253)break Fk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1253;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,24361,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Hk:{Ik:{if(!a){c=2778720;b=2778720; -break Ik}while(1){b=a;c=J[a+16>>2];if((c|0)>=28599){c=a;a=J[a>>2];if(a)continue;break Ik}if((c|0)==28598)break Hk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28598;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Jk:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Jk}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0; -b=K[22404]|K[22405]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22400]|K[22401]<<8|(K[22402]<<16|K[22403]<<24);c=K[22396]|K[22397]<<8|(K[22398]<<16|K[22399]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];Kk:{Lk:{if(!a){c=2778720;b=2778720;break Lk}while(1){b=a;c=J[a+16>>2];if((c|0)>=863){c=a;a=J[a>>2];if(a)continue;break Lk}if((c|0)==862)break Kk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break Aj;J[a+16>>2]=862;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Mk:{if(H[a+31|0]<0){J[a+24>>2]=7;a=J[a+20>>2];break Mk}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[24700]|K[24701]<<8|(K[24702]<<16|K[24703]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[24697]|K[24698]<<8|(K[24699]<<16|K[24700]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3| -0]=b>>>24;a=J[694680];Nk:{Ok:{if(!a){c=2778720;b=2778720;break Ok}while(1){b=a;c=J[a+16>>2];if((c|0)>=1256){c=a;a=J[a>>2];if(a)continue;break Ok}if((c|0)==1255)break Nk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1255;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22701,12)| -0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Pk:{Qk:{if(!a){c=2778720;b=2778720;break Qk}while(1){b=a;c=J[a+16>>2];if((c|0)>=933){c=a;a=J[a>>2];if(a)continue;break Qk}if((c|0)==932)break Pk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Rk:{if(H[a+ -31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break Rk}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[20771];b=K[20767]|K[20768]<<8|(K[20769]<<16|K[20770]<<24);c=K[20763]|K[20764]<<8|(K[20765]<<16|K[20766]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];Sk:{Tk:{if(!a){c=2778720;b=2778720;break Tk}while(1){b=a;c=J[a+16>>2];if((c|0)>=951){c=a;a=J[a>>2];if(a)continue;break Tk}if((c|0)==950)break Sk;a=J[b+4>>2];if(a)continue;break}c= -b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=950;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Uk:{if(H[a+31|0]<0){J[a+24>>2]=4;a=J[a+20>>2];break Uk}H[a+31|0]=4;a=a+20|0}H[a+4|0]=0;H[a|0]=66;H[a+1|0]=105;H[a+2|0]=103;H[a+3|0]=53;a=J[694680];Vk:{Wk:{if(!a){c=2778720;b=2778720;break Wk}while(1){b=a;c=J[a+16>>2];if((c|0)>=950){c=a;a=J[a>> -2];if(a)continue;break Wk}if((c|0)==949)break Vk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22473,14)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Xk:{Yk:{if(!a){c=2778720;b=2778720;break Yk}while(1){b=a;c=J[a+ -16>>2];if((c|0)>=51950){c=a;a=J[a>>2];if(a)continue;break Yk}if((c|0)==51949)break Xk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=51949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Zk:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Zk}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20830]|K[20831]<<8;H[a+4|0]= -b;H[a+5|0]=b>>>8;b=K[20826]|K[20827]<<8|(K[20828]<<16|K[20829]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];_k:{$k:{if(!a){c=2778720;b=2778720;break $k}while(1){b=a;c=J[a+16>>2];if((c|0)>=862){c=a;a=J[a>>2];if(a)continue;break $k}if((c|0)==861)break _k;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=861;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>> -2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}al:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break al}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28278]|K[28279]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28274]|K[28275]<<8|(K[28276]<<16|K[28277]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];bl:{cl:{if(!a){c=2778720;b=2778720;break cl}while(1){b=a;c=J[a+16>>2];if((c|0)>=866){c=a;a=J[a>>2];if(a)continue;break cl}if((c|0)==865)break bl;a=J[b+4>>2];if(a)continue;break}c= -b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=865;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}dl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break dl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22691]|K[22692]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22687]|K[22688]<<8|(K[22689]<<16|K[22690]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>> -24;a=J[694680];el:{fl:{if(!a){c=2778720;b=2778720;break fl}while(1){b=a;c=J[a+16>>2];if((c|0)>=875){c=a;a=J[a>>2];if(a)continue;break fl}if((c|0)==874)break el;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=874;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22782,11)|0;a=J[695492]; -J[695492]=0;if((a|0)==1)break Aj;a=J[694680];gl:{hl:{if(!a){c=2778720;b=2778720;break hl}while(1){b=a;c=J[a+16>>2];if((c|0)>=28594){c=a;a=J[a>>2];if(a)continue;break hl}if((c|0)==28593)break gl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28593;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}il:{if(H[a+ -31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break il}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24404]|K[24405]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24400]|K[24401]<<8|(K[24402]<<16|K[24403]<<24);c=K[24396]|K[24397]<<8|(K[24398]<<16|K[24399]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];jl:{kl:{if(!a){c=2778720;b=2778720;break kl}while(1){b=a;c=J[a+16>>2];if((c|0)>=28600){c=a;a=J[a>>2];if(a)continue;break kl}if((c|0)==28599)break jl; -a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28599;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}ll:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ll}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22315]|K[22316]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22311]|K[22312]<<8|(K[22313]<<16|K[22314]<<24);c=K[22307]|K[22308]<< -8|(K[22309]<<16|K[22310]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];ml:{nl:{if(!a){c=2778720;b=2778720;break nl}while(1){b=a;c=J[a+16>>2];if((c|0)>=858){c=a;a=J[a>>2];if(a)continue;break nl}if((c|0)==857)break ml;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=857;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>> -2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}ol:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ol}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22492]|K[22493]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22488]|K[22489]<<8|(K[22490]<<16|K[22491]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];pl:{ql:{if(!a){c=2778720;b=2778720;break ql}while(1){b=a;c=J[a+16>>2];if((c|0)>=1255){c=a;a=J[a>>2];if(a)continue;break ql}if((c|0)==1254)break pl;a=J[b+ -4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1254;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22794,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];rl:{sl:{if(!a){c=2778720;b=2778720;break sl}while(1){b=a;c=J[a+16>>2];if((c|0)>=28592){c=a;a=J[a>>2];if(a)continue; -break sl}if((c|0)==28591)break rl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28591;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}tl:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break tl}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[28321]|K[28322]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[28317]|K[28318]<<8|(K[28319]<< -16|K[28320]<<24);c=K[28313]|K[28314]<<8|(K[28315]<<16|K[28316]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];ul:{vl:{if(!a){c=2778720;b=2778720;break vl}while(1){b=a;c=J[a+16>>2];if((c|0)>=28606){c=a;a=J[a>>2];if(a)continue;break vl}if((c|0)==28605)break ul;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=28605;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]= -0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22714,11)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];wl:{xl:{if(!a){c=2778720;b=2778720;break xl}while(1){b=a;c=J[a+16>>2];if((c|0)>=851){c=a;a=J[a>>2];if(a)continue;break xl}if((c|0)==850)break wl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=850; -J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}yl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break yl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28509]|K[28510]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28505]|K[28506]<<8|(K[28507]<<16|K[28508]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];zl:{Al:{if(!a){c=2778720;b=2778720;break Al}while(1){b=a;c=J[a+16>>2];if((c| -0)>=859){c=a;a=J[a>>2];if(a)continue;break Al}if((c|0)==858)break zl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=858;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Bl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Bl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22337]|K[22338]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b= -K[22333]|K[22334]<<8|(K[22335]<<16|K[22336]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Cl:{Dl:{if(!a){c=2778720;b=2778720;break Dl}while(1){b=a;c=J[a+16>>2];if((c|0)>=861){c=a;a=J[a>>2];if(a)continue;break Dl}if((c|0)==860)break Cl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=860;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]= -d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}El:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break El}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28502]|K[28503]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28498]|K[28499]<<8|(K[28500]<<16|K[28501]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Fl:{Gl:{if(!a){c=2778720;b=2778720;break Gl}while(1){b=a;c=J[a+16>>2];if((c|0)>=864){c=a;a=J[a>>2];if(a)continue;break Gl}if((c|0)==863)break Fl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0; -a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=863;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Hl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Hl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24358]|K[24359]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24354]|K[24355]<<8|(K[24356]<<16|K[24357]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Il:{Jl:{if(!a){c= -2778720;b=2778720;break Jl}while(1){b=a;c=J[a+16>>2];if((c|0)>=438){c=a;a=J[a>>2];if(a)continue;break Jl}if((c|0)==437)break Il;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=437;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Kl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Kl}H[a+31|0]=6;a=a+20|0}H[a+ -6|0]=0;b=K[22519]|K[22520]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22515]|K[22516]<<8|(K[22517]<<16|K[22518]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Ll:{Ml:{if(!a){c=2778720;b=2778720;break Ml}while(1){b=a;c=J[a+16>>2];if((c|0)>=1253){c=a;a=J[a>>2];if(a)continue;break Ml}if((c|0)==1252)break Ll;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1252;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>> -2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,24712,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Nl:{Ol:{if(!a){c=2778720;b=2778720;break Ol}while(1){b=a;c=J[a+16>>2];if((c|0)>=1259){c=a;a=J[a>>2];if(a)continue;break Ol}if((c|0)==1258)break Nl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1258;J[a+8>>2]=b;J[a>> -2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}J[695492]=0;ga(2830,a+20|0,22340,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Aj;a=J[694680];Pl:{Ql:{if(!a){c=2778720;b=2778720;break Ql}while(1){b=a;c=J[a+16>>2];if((c|0)>=65002){c=a;a=J[a>>2];if(a)continue;break Ql}if((c|0)==65001)break Pl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj; -J[a+16>>2]=65001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Rl:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Rl}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22394];b=K[22390]|K[22391]<<8|(K[22392]<<16|K[22393]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Sl:{Tl:{if(!a){c=2778720;b=2778720;break Tl}while(1){b=a;c=J[a+16>>2];if((c|0)>=65001){c= -a;a=J[a>>2];if(a)continue;break Tl}if((c|0)==65E3)break Sl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=65E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}Ul:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Ul}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22534];b=K[22530]|K[22531]<<8|(K[22532]<<16|K[22533]<< -24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];Vl:{Wl:{if(!a){c=2778720;b=2778720;break Wl}while(1){b=a;c=J[a+16>>2];if((c|0)>=1201){c=a;a=J[a>>2];if(a)continue;break Wl}if((c|0)==1200)break Vl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1200;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]= -J[694681]+1}Xl:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Xl}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=76;H[a+7|0]=69;a=J[694680];Yl:{Zl:{if(!a){c=2778720;b=2778720;break Zl}while(1){b=a;c=J[a+16>>2];if((c|0)>=1202){c=a;a=J[a>>2];if(a)continue;break Zl}if((c|0)==1201)break Yl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1201;J[a+8>>2]=b;J[a>>2]=0;J[a+ -4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}_l:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break _l}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=66;H[a+7|0]=69;a=J[694680];$l:{am:{if(!a){c=2778720;b=2778720;break am}while(1){b=a;c=J[a+16>>2];if((c|0)>=12001){c=a;a=J[a>>2];if(a)continue;break am}if((c|0)==12E3)break $l;a=J[b+4>>2];if(a)continue; -break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=12E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}bm:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break bm}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=76;H[a+7|0]=69;a=J[694680];cm:{dm:{if(!a){c=2778720;b=2778720;break dm}while(1){b= -a;c=J[a+16>>2];if((c|0)>=12002){c=a;a=J[a>>2];if(a)continue;break dm}if((c|0)==12001)break cm;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=12001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}em:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break em}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+ -2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=66;H[a+7|0]=69;a=J[694680];fm:{gm:{if(!a){c=2778720;b=2778720;break gm}while(1){b=a;c=J[a+16>>2];if((c|0)>=10001){c=a;a=J[a>>2];if(a)continue;break gm}if((c|0)==1E4)break fm;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=1E4;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]= -J[694681]+1}hm:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break hm}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[11158];b=K[11154]|K[11155]<<8|(K[11156]<<16|K[11157]<<24);c=K[11150]|K[11151]<<8|(K[11152]<<16|K[11153]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[694680];im:{jm:{if(!a){c=2778720;b=2778720;break jm}while(1){b=a;c=J[a+16>>2];if((c|0)>=20933){c=a;a=J[a>>2];if(a)continue;break jm}if((c|0)==20932)break im;a=J[b+4>> -2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=20932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}km:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break km}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20913]|K[20914]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20909]|K[20910]<<8|(K[20911]<<16|K[20912]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+ -2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[694680];lm:{mm:{if(!a){c=2778720;b=2778720;break mm}while(1){b=a;c=J[a+16>>2];if((c|0)>=54937){c=a;a=J[a>>2];if(a)continue;break mm}if((c|0)==54936)break lm;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Aj;J[a+16>>2]=54936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[694679]>>2];if(d){J[694679]=d;b=J[c>>2]}Ic(J[694680],b);J[694681]=J[694681]+1}if(H[a+31|0]>=0)break zj; -J[a+24>>2]=7;a=J[a+20>>2];break yj}b=Z()|0;ml(2778716,J[694680]);break h}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[28528]|K[28529]<<8|(K[28530]<<16|K[28531]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28525]|K[28526]<<8|(K[28527]<<16|K[28528]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;H[2778728]=0;H[2778739]=0;J[694698]=60;J[694699]=0;H[2778803]=1;J[694701]=62;J[694702]=0;H[2778815]=1;a=rc(16);J[694704]=a;J[694705]=2;J[694706]=-2147483644;J[a+8>>2]=0;J[a>>2]=60; -J[a+4>>2]=47;a=rc(16);J[694707]=a;J[694708]=2;J[694709]=-2147483644;J[a+8>>2]=0;J[a>>2]=47;J[a+4>>2]=62;J[694710]=32;J[694711]=0;H[2778851]=1;J[694713]=61;J[694714]=0;H[2778863]=1;J[694716]=34;J[694717]=0;H[2778875]=1;a=rc(32);J[694719]=a;J[694720]=4;J[694721]=-2147483640;b=J[612815];J[a+8>>2]=J[612814];J[a+12>>2]=b;b=J[612813];J[a>>2]=J[612812];J[a+4>>2]=b;J[a+16>>2]=0;a=rc(32);J[694722]=a;J[694723]=5;J[694724]=-2147483640;J[a+16>>2]=J[612821];b=J[612820];J[a+8>>2]=J[612819];J[a+12>>2]=b;b=J[612818]; -J[a>>2]=J[612817];J[a+4>>2]=b;J[a+20>>2]=0;J[694725]=49;J[694726]=0;H[2778911]=1;J[694728]=48;J[694729]=0;H[2778923]=1;J[694782]=2778984;J[694764]=42;return}ba(b|0);B()}function Jua(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=Q(0),D=0,E=0,F=0,G=0,S=0,T=0,U=0,W=0,X=Q(0),Y=0,ea=0,ia=0,ja=0,ka=0,na=0,oa=0,pa=0,qa=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=Q(0);if(!b){b= -K[43199]|K[43200]<<8;H[a+88|0]=b;H[a+89|0]=b>>>8;b=K[43195]|K[43196]<<8|(K[43197]<<16|K[43198]<<24);c=K[43191]|K[43192]<<8|(K[43193]<<16|K[43194]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[43187]|K[43188]<<8|(K[43189]<<16|K[43190]<<24);c=K[43183]|K[43184]<<8|(K[43185]<<16|K[43186]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24; -return 0}ia=gc[J[J[b>>2]+24>>2]](b)|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if(c>>>0<=1){d=rc(976);J[695492]=0;i=qf(d,1);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[i>>2]=45788;Gj(i,a);h=bc-112|0;bc=h;e=0;t:{if(!b)break t;l=gc[J[J[b>>2]+24>>2]](b)|0;u:{v:{w:{x:{y:{if(!(gc[J[J[b>>2]+12>>2]](b,h+98|0,14,1,0,0)|0)){qd(i+72|0,43489,255);break y}e=Ej(i,L[h+100>>1]|L[h+102>>1]<<16);I[h+100>>1]=e;I[h+102>>1]=e>>>16;e=Ej(i,L[h+108>>1]|L[h+110>>1]<<16);I[h+108>>1]=e;I[h+110>>1]=e>>>16; -e=I[h+98>>1];if(((K[i+494|0]?e:e<<8|(e&65280)>>>8)&65535)!=19778){I[h+108>>1]=0;I[h+110>>1]=0;gc[J[J[b>>2]+20>>2]](b,l,0)|0}e=0;d=h+56|0;z:{if(!b|!d)break z;if(!(gc[J[J[b>>2]+12>>2]](b,d,40,1,0,0)|0))break z;bq(i,d);A:{B:{C:{D:{f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if((f|0)<=63){if((f|0)==12)break D;if((f|0)==40)break A;break C}g=24;if((f|0)==64)break B;if((f|0)!=124)break C;g=84;break B}H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=0;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;e=K[d+ -8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[d+6|0]|K[d+7|0]<<8;H[d+8|0]=e;H[d+9|0]=e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;e=K[d+4|0]|K[d+5|0]<<8;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;H[d+24|0]=0;H[d+25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+28|0]=0;H[d+29|0]=0;H[d+30|0]=0;H[d+31|0]=0;H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35|0]=0;H[d+36|0]=0;H[d+37|0]=0;H[d+38|0]=0;H[d+39|0]=0;g=-28;break B}if(f>>>0<41|(K[d+20|0]| -K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24))>>>0>>0|(K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24)|(K[d+12|0]|K[d+13|0]<<8)!=1))break z;if(K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24))break A;g=f-40|0}gc[J[J[b>>2]+20>>2]](b,g,1)|0}if(!(K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24))){e=P(P(K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<< -24),K[d+14|0]|K[d+15|0]<<8)+31>>>3&536870908,K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24));H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24}e=1;if(K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24))break z;f=K[d+14|0]|K[d+15|0]<<8;f=f>>>0<9?1<>>8;H[d+34|0]=f>>>16;H[d+35|0]=f>>>24}if(!e){qd(i+72|0,43632,255);break y}k=J[h+64>>2];e=k;if((e|0)<0){e=0-e|0;J[h+64>>2]=e}d=J[h+60>>2];if(J[i+332>>2]==-1){J[i+68>>2]=1;J[i+20>>2]=e;J[i+16>>2]=d;qd(i+72|0,44183, -255);break y}v=J[h+56>>2];g=J[h+72>>2];m=L[h+70>>1];if(!mi(i,d,e,m,1))break y;z=V(+J[h+80>>2]*254/1E4+.5);E:{if(R(z)<2147483648){e=~~z;break E}e=-2147483648}wm(i,e);z=V(+J[h+84>>2]*254/1E4+.5);F:{if(R(z)<2147483648){e=~~z;break F}e=-2147483648}fq(i,e);if(J[i+332>>2]){qd(i+72|0,44484,255);break y}e=J[i+4>>2];f=e?J[i+44>>2]?e+40|0:0:0;G:{if(!f)break G;d=J[h+88>>2];j=L[h+70>>1];d=d?d:j>>>0<9?1<>2];s=J[J[b>>2]+12>>2];if((v|0)==12){gc[s|0](b,f,P(d,3),1,e,j)|0;d=J[i+44>>2];H:{if(!d){e=L[i+ -26>>1];if(e>>>0>8)break G;d=1<>>0>1;d=e;if(j)continue;break}break G}gc[s|0](b,f,d<<2,1,e,j)|0;j=J[i+44>>2];if(!j)break G;d=0;if(j>>>0>=8){s=j&-8;while(1){e=d<<2;H[(e+f|0)+3|0]=0;H[(f+(e|4)|0)+3|0]=0;H[(f+(e|8)|0)+3|0]=0;H[(f+(e|12)|0)+3|0]=0;H[(f+(e|16)|0)+3|0]=0;H[(f+(e|20)|0)+3|0]=0;H[(f+(e|24)|0)+3|0]=0;H[(f+(e|28)|0)+3|0]=0;d=d+8|0;q=q+8|0;if((s|0)!=(q| -0))continue;break}}e=j&7;if(!e)break G;while(1){H[(f+(d<<2)|0)+3|0]=0;d=d+1|0;n=n+1|0;if((e|0)!=(n|0))continue;break}}if(J[i+332>>2]){qd(i+72|0,44484,255);break y}I:{J:{K:{L:switch(m-1|0){case 31:M:{if((g|0)==3){gc[J[J[b>>2]+12>>2]](b,h+44|0,12,1,0,0)|0;if((J[h+44>>2]&J[h+48>>2]&J[h+52>>2])!=-1)break M}J[h+44>>2]=16711680;J[h+48>>2]=65280;J[h+52>>2]=255}e=L[h+108>>1]|L[h+110>>1]<<16;if(e)gc[J[J[b>>2]+20>>2]](b,e+l|0,0)|0;N:switch(g|0){case 0:case 3:e=P(J[i+20>>2],J[i+16>>2])<<2;l=zc(e);if(!l)break K; -gc[J[J[b>>2]+12>>2]](b,l,e,1,0,0)|0;O:{if(g)break O;Jk(i);if(!J[i+964>>2])break O;n=J[i+20>>2];P:{if((n|0)<=0)break P;d=0;j=J[i+16>>2];if((j|0)<=0)break P;f=l+3|0;g=0;while(1){if((j|0)>0){n=f+(P(d,j)<<2)|0;e=0;while(1){j=K[n|0];hh(i,e,d,j);n=n+4|0;g=(j|0)!=0|g;e=e+1|0;j=J[i+16>>2];if((e|0)<(j|0))continue;break}n=J[i+20>>2]}d=d+1|0;if((n|0)>(d|0))continue;break}if(g&1)break O}g=J[i+964>>2];Q:{if(!g)break Q;e=P(J[i+16>>2],J[i+20>>2]);if((e|0)<=0)break Q;if(e>>>0>=4){d=e&-4;f=0;while(1){H[g|0]=K[g|0]^ --1;H[g+1|0]=K[g+1|0]^-1;H[g+2|0]=K[g+2|0]^-1;H[g+3|0]=K[g+3|0]^-1;g=g+4|0;f=f+4|0;if((d|0)!=(f|0))continue;break}}e=e&3;if(!e)break Q;f=0;while(1){H[g|0]=K[g|0]^-1;g=g+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}}P9(i,l,J[h+44>>2],J[h+48>>2],J[h+52>>2],32);qc(l);if((k|0)<0)break v;break u;default:break N}qd(i+72|0,44811,255);break y;case 23:e=L[h+108>>1]|L[h+110>>1]<<16;if(e)gc[J[J[b>>2]+20>>2]](b,e+l|0,0)|0;if(!g){gc[J[J[b>>2]+12>>2]](b,J[i+56>>2],J[i+32>>2],1,J[i+4>>2],J[i+8>>2])|0;break w}qd(i+ -72|0,44811,255);break y;case 15:R:{if((g|0)==3){gc[J[J[b>>2]+12>>2]](b,h+16|0,12,1,0,0)|0;break R}J[h+24>>2]=31;J[h+16>>2]=31744;J[h+20>>2]=992}e=L[h+108>>1]|L[h+110>>1]<<16;if(e)gc[J[J[b>>2]+20>>2]](b,e+l|0,0)|0;gc[J[J[b>>2]+12>>2]](b,J[i+56>>2],P(J[i+20>>2],(J[i+16>>2]+1|0)/2|0)<<2,1,J[i+4>>2],J[i+8>>2])|0;P9(i,J[i+56>>2],J[h+16>>2],J[h+20>>2],J[h+24>>2],16);break w;case 0:case 3:case 7:break L;default:break w}e=L[h+108>>1]|L[h+110>>1]<<16;S:{if(!e)break S;e=e+l|0;if(e>>>0>2])break S;gc[J[J[b>> -2]+20>>2]](b,e,0)|0}T:switch(g|0){case 1:break x;case 0:break J;case 2:break T;default:break I}l=0;H[h+43|0]=0;H[h+42|0]=0;J[h+36>>2]=i;e=df(i,0);J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+32>>2]=e;if(!(gc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0))break w;j=0;e=0;while(1){U:{V:{if(!K[h+43|0]){gc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0;W:switch(K[h+43|0]){case 0:l=l+1|0;j=0;e=0;break U;case 2:gc[J[J[b>>2]+12>>2]](b,h+15|0,1,1,0,0)|0;gc[J[J[b>>2]+12>>2]](b,h+14|0,1,1,0,0)|0;l=K[h+14|0]+l|0; -j=(K[h+15|0]>>>1|0)+j|0;break U;case 1:break w;default:break W}g=0;gc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0;q=rD(h+16|0,l);if(!K[h+43|0])break U;while(1){X:{Y:{Z:{_:{d=j+q|0;if(d>>>0>=J[i+56>>2]+J[i+32>>2]>>>0){n=g&1;break _}n=g&1;f=K[h+42|0];if(e){H[d|0]=K[d|0]|(n?f&15:(f&240)>>>4|0);j=j+1|0;break _}if(n){H[d|0]=f<<4;d=K[h+43|0];break Z}H[d|0]=f&240;break Y}d=K[h+43|0];if(!n)break X}if(((d&255)-1|0)==(g|0))break X;gc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0}d=K[h+43|0]}e=!e;g=g+1|0;d=d&255;if(g>>>0< -d>>>0)continue;break}break V}q=rD(h+16|0,l);g=0;gc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0;if(!K[h+43|0])break U;while(1){d=j+q|0;$:{if(d>>>0>=J[i+56>>2]+J[i+32>>2]>>>0)break $;n=g&1;f=K[h+42|0];if(e){H[d|0]=K[d|0]|(n?f&15:(f&240)>>>4|0);j=j+1|0;break $}if(n){H[d|0]=f<<4;break $}H[d|0]=f&240}e=!e;g=g+1|0;if(g>>>0>2]+12>>2]](b,h+42|0,1,1,0,0)|0}if(gc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0)continue;break}break w}qd(i+72|0,44557,255);break y}gc[J[J[b>> -2]+12>>2]](b,J[i+56>>2],J[i+32>>2],1,J[i+4>>2],J[i+8>>2])|0;break w}qd(i+72|0,45280,255)}e=J[i+332>>2]==-1&J[i+68>>2]==1;break t}n=0;H[h+43|0]=0;H[h+42|0]=0;J[h+36>>2]=i;e=df(i,0);J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+32>>2]=e;if(!(gc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0))break w;e=0;while(1){aa:{if(!K[h+43|0]){gc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0;ba:switch(K[h+43|0]){case 0:n=n+1|0;e=0;break aa;case 2:gc[J[J[b>>2]+12>>2]](b,h+15|0,1,1,0,0)|0;gc[J[J[b>>2]+12>>2]](b,h+14|0,1, -1,0,0)|0;n=K[h+14|0]+n|0;e=K[h+15|0]+e|0;break aa;case 1:break w;default:break ba}Fa=b,Ga=rD(h+16|0,n)+e|0,Ha=K[h+43|0],Ia=1,Ja=J[i+4>>2],Ka=J[i+8>>2],Ea=J[J[b>>2]+12>>2],gc[Ea](Fa|0,Ga|0,Ha|0,Ia|0,Ja|0,Ka|0)|0;d=e;e=K[h+43|0];if(e&1){gc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0;e=K[h+43|0]}e=(e&255)+d|0;break aa}d=rD(h+16|0,n);g=0;gc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0;if(!K[h+43|0])break aa;while(1){f=d+e|0;if(f>>>0>=J[i+56>>2]+J[i+32>>2]>>>0)break aa;H[f|0]=K[h+42|0];e=e+1|0;g=g+1|0;if(g>>>0>2]+12>>2]](b,h+43|0,1,1,0,0)|0)continue;break}}if((k|0)>=0)break u}pD(i);e=1;break t}e=1}bc=h+112|0;if(!e)break s;break b}switch(c-2|0){case 9:case 10:case 11:case 12:case 13:break i;case 7:break j;case 6:break k;case 5:break l;case 15:break m;case 4:break n;case 2:break o;case 0:break p;case 3:break q;case 1:break r;case 18:break g;case 16:break h;default:break d}}ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(1E3);J[695492]= -0;i=uN(d);e=J[695492];J[695492]=0;if((e|0)==1)break f;Gj(i,a);s=bc-848|0;bc=s;j=zc(40);J[j>>2]=0;J[695492]=0;q=$(4,516)|0;f=J[695492];J[695492]=0;ca:{da:{ea:{fa:{ga:{if((f|0)==1)break ga;l=4;g=-1;ha:{if(!f)break ha;d=J[695493];if(!d)break ha;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}d=cc;if((g|0)==1)break fa;J[695492]=0;r=aa(56,q|0,i+496|0)|0;f=J[695492];J[695492]=0;g=-1;ia:{if(!f)break ia;d=J[695493];if(!d)break ia;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}d=cc;if((g|0)==1)break fa;if((f|0)==1){e=Z()|0; -J[695492]=0;qc(q);f=J[695492];J[695492]=0;g=-1;ja:{if(!f)break ja;d=J[695493];if(!d)break ja;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}d=cc;if((g|0)!=1)break ea;break fa}J[i+976>>2]=r;e=J[J[b>>2]+24>>2];J[695492]=0;q=$(e|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break ga;g=-1;ka:{if(!f)break ka;d=J[695493];if(!d)break ka;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}d=cc;if((g|0)==1)break fa;e=J[i+976>>2];J[695492]=0;ga(58,e|0,b|0,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break ga;g=-1;la:{if(!f)break la;d= -J[695493];if(!d)break la;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}d=cc;if((g|0)==1)break fa;e=J[J[b>>2]+20>>2];J[695492]=0;ga(e|0,b|0,q|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break ga;g=-1;ma:{if(!f)break ma;d=J[695493];if(!d)break ma;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}d=cc;if((g|0)==1)break fa;q=K[J[J[i+976>>2]>>2]+460|0];J[695492]=0;df(i,0);f=J[695492];J[695492]=0;if((f|0)==1)break ga;g=-1;na:{if(!f)break na;d=J[695493];if(!d)break na;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}A=!q;d=cc;if((g|0)== -1)break fa;J[695492]=0;J[s+356>>2]=i+72;q=Jp(s+68|0);f=J[695492];J[695492]=0;if((f|0)==1)break ga;g=-1;oa:{if(!f)break oa;d=J[695493];if(!d)break oa;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}p=i+52|0;d=cc;if((g|0)==1)break fa;J[s+68>>2]=61;J[s+360>>2]=q;J[695492]=0;J[s+52>>2]=62;J[s+48>>2]=63;J[s+44>>2]=64;J[s+40>>2]=65;J[s+36>>2]=66;J[s+24>>2]=67;J[s+20>>2]=68;J[s+16>>2]=69;J[s+56>>2]=b;J[s+28>>2]=0;J[s+32>>2]=0;e=$(27,4096)|0;f=J[695492];J[695492]=0;if((f|0)==1)break ga;g=-1;pa:{if(!f)break pa;d=J[695493]; -if(!d)break pa;g=Jc(J[f>>2],j,4);if(!g)break da;cc=d}r=s+28|0;d=cc;if((g|0)==1)break fa;J[s+60>>2]=e;q=s+60|0;d=0;o=s+200|0;j=zf(o,1,j,4);l=cc;break fa}a=Z()|0;qc(j);break a}qa:while(1){n=d;ra:{sa:{if(d){J[695492]=0;_(70,s+360|0);f=J[695492];J[695492]=0;g=-1;ta:{if(!f)break ta;d=J[695493];if(!d)break ta;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)!=1)break sa;break ra}J[695492]=0;ca(71,s+360|0,80,488);f=J[695492];J[695492]=0;g=-1;ua:{if(!f)break ua;d=J[695493];if(!d)break ua; -g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[695492]=0;J[s+384>>2]=r;aa(72,s+360|0,1)|0;f=J[695492];J[695492]=0;g=-1;va:{if(!f)break va;d=J[695493];if(!d)break va;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[695492]=0;h=eq(i,3);f=J[695492];J[695492]=0;g=-1;wa:{if(!f)break wa;d=J[695493];if(!d)break wa;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;if(h&128)J[s+404>>2]=1;if(h&256){J[695492]= -0;J[s+444>>2]=1;C=Q(N[i+344>>2]+Q(.5));xa:{if(C=Q(0)){e=~~C>>>0;break xa}e=0}f=J[695492];J[695492]=0;g=-1;ya:{if(!f)break ya;d=J[695493];if(!d)break ya;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[s+456>>2]=e}if(h&512)J[s+448>>2]=J[i+996>>2];if(h&1024)J[s+452>>2]=0;if(h&2048)J[s+436>>2]=0;J[695492]=0;J[s+408>>2]=1;e=K[i+348|0];f=J[695492];J[695492]=0;g=-1;za:{if(!f)break za;d=J[695493];if(!d)break za;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d= -cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[s+412>>2]=e;g=-1;Aa:{if(J[i+332>>2]==-1){J[695492]=0;_(76,s+360|0);f=J[695492];J[695492]=0;Ba:{if(!f)break Ba;d=J[695493];if(!d)break Ba;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[i+16>>2]=J[s+472>>2];e=J[s+476>>2];J[i+68>>2]=3;J[i+20>>2]=e;break Aa}J[695492]=0;$(77,s+360|0)|0;f=J[695492];J[695492]=0;Ca:{if(!f)break Ca;d=J[695493];if(!d)break Ca;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue; -if((f|0)==1)break ra;J[695492]=0;ma(78,i|0,J[s+472>>2],J[s+476>>2],J[s+484>>2]<<3,3)|0;f=J[695492];J[695492]=0;g=-1;Da:{if(!f)break Da;d=J[695493];if(!d)break Da;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;Ea:{if(!J[i+4>>2])break Ea;Fa:{Ga:{Ha:{if(!A){C=N[i+676>>2];Ia:{if(C==Q(0))break Ia;X=N[i+684>>2];if(X==Q(0))break Ia;J[695492]=0;C=Q(C/X);Ja:{if(Q(R(C))>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra}C=N[i+680>>2];if(C==Q(0))break Fa;X=N[i+684>>2];if(X==Q(0))break Fa;C=Q(C/X);if(!(Q(R(C))>1]|!L[s+652>>1])break Fa;J[695492]=0;e=J[i+364>>2];f=J[695492];J[695492]=0;g=-1;Ma:{if(!f)break Ma;d=J[695493];if(!d)break Ma;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;C=Q(Q(Q(L[s+ -654>>1])/Q(L[s+652>>1]))*Q(e|0));if(!(Q(R(C))>1]*2.54+.5);Na:{if(R(z)<2147483648){e=~~z;break Na}e=-2147483648}wm(i,e);f=J[695492];J[695492]=0;g=-1;Oa:{if(!f)break Oa;d=J[695493];if(!d)break Oa;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;z=V(+L[s+654>>1]*2.54+.5);if(!(R(z)<2147483648))break Ha;e=~~z;break Ga;default:break La}J[695492]=0;wm(i,L[s+652>>1]);f=J[695492];J[695492]=0;g=-1;Pa:{if(!f)break Pa; -d=J[695493];if(!d)break Pa;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;e=L[s+654>>1];break Ga}e=-2147483648}J[695492]=0;fq(i,e);f=J[695492];J[695492]=0;g=-1;Qa:{if(!f)break Qa;d=J[695493];if(!d)break Qa;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra}Ra:{if(J[s+404>>2]==1){J[695492]=0;Yp(i);f=J[695492];J[695492]=0;g=-1;Sa:{if(!f)break Sa;d=J[695493];if(!d)break Sa;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue; -d=256;if((f|0)==1)break ra;break Ra}if(!J[s+444>>2]){d=0;break Ra}e=J[s+496>>2];d=J[e+8>>2];f=J[e+4>>2];e=J[e>>2];J[695492]=0;gN(i,J[s+492>>2],e,f,d);f=J[695492];J[695492]=0;g=-1;Ta:{if(!f)break Ta;d=J[695493];if(!d)break Ta;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;d=J[s+492>>2]}J[i+44>>2]=d;e=J[J[s+364>>2]+8>>2];J[695492]=0;d=e;e=P(J[s+484>>2],J[s+472>>2]);v=ha(d|0,s+360|0,1,e|0,1)|0;f=J[695492];J[695492]=0;g=-1;Ua:{if(!f)break Ua;d=J[695493];if(!d)break Ua; -g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[695492]=0;h=J[i+20>>2];f=J[695492];J[695492]=0;g=-1;Va:{if(!f)break Va;d=J[695493];if(!d)break Va;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[695492]=0;m=df(i,0);f=J[695492];J[695492]=0;g=-1;Wa:{if(!f)break Wa;d=J[695493];if(!d)break Wa;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[695492]=0;t=J[i+52>>2];f=J[695492];J[695492]=0; -g=-1;Xa:{if(!f)break Xa;d=J[695493];if(!d)break Xa;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;J[695492]=0;u=J[i+20>>2];f=J[695492];J[695492]=0;g=-1;Ya:{if(!f)break Ya;d=J[695493];if(!d)break Ya;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra;w=-1;Za:{if(M[s+500>>2]>=M[s+476>>2])break Za;k=h-1|0;h=m+P(t,u-1|0)|0;if((e|0)<=0){if((e|0)<0){while(1){if(J[i+332>>2])break Ea;J[695492]=0;ga(86,s+360|0,v|0,1)|0;f=J[695492];J[695492]= -0;g=-1;_a:{if(!f)break _a;d=J[695493];if(!d)break _a;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;$a:{if((f|0)==1)break $a;ab:{if(!J[s+444>>2]&J[s+396>>2]==4)break ab;e=J[v>>2];J[695492]=0;m=J[i+52>>2];f=J[695492];J[695492]=0;g=-1;bb:{if(!f)break bb;d=J[695493];if(!d)break bb;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;if((f|0)==1)break $a;if(!h|!e|(m|0)<=0)break ab;tc(h,e,m)}if((k|0)>0){J[695492]=0;e=J[i+52>>2];f=J[695492];J[695492]=0;g=-1;cb:{if(!f)break cb; -d=J[695493];if(!d)break cb;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;if((f|0)==1)break $a;h=h-e|0}k=k-1|0;if(M[s+500>>2]>2])continue;break Za}break}break ra}while(1){if(J[i+332>>2])break Ea;J[695492]=0;ga(86,s+360|0,v|0,1)|0;f=J[695492];J[695492]=0;g=-1;db:{if(!f)break db;d=J[695493];if(!d)break db;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;eb:{if((f|0)==1)break eb;fb:{if(!J[s+444>>2]&J[s+396>>2]==4)break fb;m=J[v>>2];J[695492]=0;t=J[i+52>> -2];f=J[695492];J[695492]=0;g=-1;gb:{if(!f)break gb;d=J[695493];if(!d)break gb;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;if((f|0)==1)break eb;if(!h|!m)break fb;d=(e|0)>(t|0)?t:e;if((d|0)<=0)break fb;tc(h,m,d)}if((k|0)>0){J[695492]=0;m=J[i+52>>2];f=J[695492];J[695492]=0;g=-1;hb:{if(!f)break hb;d=J[695493];if(!d)break hb;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;if((f|0)==1)break eb;h=h-m|0}k=k-1|0;if(M[s+500>>2]>2])continue;break Za}break}break ra}while(1){if(J[i+ -332>>2])break Ea;J[695492]=0;ga(86,s+360|0,v|0,1)|0;f=J[695492];J[695492]=0;g=-1;ib:{if(!f)break ib;d=J[695493];if(!d)break ib;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;if((f|0)==1)break ra;m=J[v>>2];jb:{if(!(J[s+444>>2]|J[s+396>>2]!=4)){f=0;d=0;if(J[p>>2]<=0)break jb;while(1){g=d+h|0;t=K[m+(f|3)|0];H[g|0]=(P(t,K[m+(f|2)|0])>>>0)/255;H[g+1|0]=(P(t,K[m+(f|1)|0])>>>0)/255;H[g+2|0]=(P(t,K[f+m|0])>>>0)/255;d=d+3|0;if((d|0)>=J[p>>2])break jb;f=f+4|0;if((e|0)>(f|0))continue;break}break jb}J[695492]= -0;t=J[i+52>>2];f=J[695492];J[695492]=0;g=-1;kb:{if(!f)break kb;d=J[695493];if(!d)break kb;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;if((f|0)==1)break ra;if(!h|!m)break jb;d=(e|0)<0?t:(e|0)>(t|0)?t:e;if((d|0)<=0)break jb;tc(h,m,d)}if((k|0)>0){J[695492]=0;m=J[i+52>>2];f=J[695492];J[695492]=0;g=-1;lb:{if(!f)break lb;d=J[695493];if(!d)break lb;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue qa;if((f|0)==1)break ra;h=h-m|0}k=k-1|0;if(M[s+500>>2]>2])continue; -break}}J[695492]=0;$(87,s+360|0)|0;f=J[695492];J[695492]=0;mb:{if(!f)break mb;d=J[695493];if(!d)break mb;w=Jc(J[f>>2],j,l);if(!w)break da;cc=d}d=cc;if((w|0)==1)continue;if((f|0)==1)break ra;if(J[s+444>>2]|J[s+396>>2]!=3)break Aa;J[695492]=0;g=df(i,0);f=J[695492];J[695492]=0;h=-1;nb:{if(!f)break nb;d=J[695493];if(!d)break nb;h=Jc(J[f>>2],j,l);if(!h)break da;cc=d}d=cc;if((h|0)==1)continue;if((f|0)==1)break ra;if(J[i+20>>2]<=0)break Aa;k=0;ob:{while(1){if(J[i+332>>2]){J[695492]=0;da(88,o|0,1);f=J[695492]; -J[695492]=0;pb:{if(!f)break pb;d=J[695493];if(!d)break pb;if(!Jc(J[f>>2],j,l))break da;cc=d}d=cc;continue qa}e=J[i+16>>2];J[695492]=0;Ir(i,g,P(e,3));f=J[695492];J[695492]=0;h=-1;qb:{if(!f)break qb;d=J[695493];if(!d)break qb;h=Jc(J[f>>2],j,l);if(!h)break da;cc=d}d=cc;if((h|0)==1)continue qa;if((f|0)==1)break ob;g=J[p>>2]+g|0;k=k+1|0;if((k|0)>2])continue;break}break Aa}break ra}J[695492]=0;da(88,o|0,1);f=J[695492];J[695492]=0;rb:{if(!f)break rb;d=J[695493];if(!d)break rb;if(!Jc(J[f>>2],j,l))break da; -cc=d}d=cc;continue}J[695492]=0;_(70,s+360|0);f=J[695492];J[695492]=0;g=-1;sb:{if(!f)break sb;d=J[695493];if(!d)break sb;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;if((f|0)==1)break ra}e=J[q>>2];if(e){J[695492]=0;qc(e);f=J[695492];J[695492]=0;g=-1;tb:{if(!f)break tb;d=J[695493];if(!d)break tb;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue}qc(j);bc=s+848|0;e=!n;break ca}e=Z()|0;d=J[q>>2];if(!d)break ea;J[695492]=0;qc(d);f=J[695492];J[695492]=0;g=-1;ub:{if(!f)break ub; -d=J[695493];if(!d)break ub;g=Jc(J[f>>2],j,l);if(!g)break da;cc=d}d=cc;if((g|0)==1)continue;break}}qc(j);ba(e|0);B()}qc(j);ef(f,d);B()}if(e)break b;ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(980);J[695492]=0;i=qf(d,5);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[i+976>>2]=0;J[i>>2]=45832;Gj(i,a);e=0;g=0;l=0;r=0;n=bc-1360|0;bc=n;vb:{wb:{xb:{yb:{zb:{Ab:{if(b){d=gc[J[J[b>>2]+24>>2]](b)|0;f=J[i+352>>2];gc[J[J[b>>2]+12>>2]](b,n+1354|0,6,1,0,0)|0;j=I[n+1356>> -1];I[n+1356>>1]=K[i+494|0]?j:j<<8|(j&65280)>>>8;j=I[n+1358>>1];j=(K[i+494|0]?j:j<<8|(j&65280)>>>8)<<16>>16;I[n+1358>>1]=j;if(L[n+1354>>1]|(L[n+1356>>1]-1&65535)>>>0>1)break xb;e=j&65535;J[i+356>>2]=e;p=zc(e<<4);Bb:{if(!j){e=0;break Bb}while(1){e=p+(g<<4)|0;gc[J[J[b>>2]+12>>2]](b,e,16,1,0,0)|0;j=I[e+4>>1];I[e+4>>1]=K[i+494|0]?j:j<<8|(j&65280)>>>8;j=I[e+6>>1];I[e+6>>1]=K[i+494|0]?j:j<<8|(j&65280)>>>8;Ea=e,Ka=Ej(i,J[e+8>>2]),J[Ea+8>>2]=Ka;Ea=e,Ka=Ej(i,J[e+12>>2]),J[Ea+12>>2]=Ka;g=g+1|0;e=L[n+1358>>1]; -if(g>>>0>>0)continue;break}}if(e>>>0>f>>>0){if(J[i+332>>2]==-1){e=p+(f<<4)|0;f=K[e|0];J[i+16>>2]=f;g=K[e+1|0];J[i+20>>2]=g;if(!(f|g)){gc[J[J[b>>2]+20>>2]](b,J[e+12>>2]+d|0,0)|0;d=qf(n+288|0,0);J[695492]=0;J[d+332>>2]=-1;e=J[695492];J[695492]=0;if((e|0)==1)break wb;J[695492]=0;e=ga(55,d|0,b|0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break wb;if(e){J[695492]=0;ga(108,i|0,d|0,1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break wb;J[i+356>>2]=L[n+1358>>1]}mj(d)}qc(p);J[i+68>>2]=5;e=1;break xb}e=p+(f<<4)| -0;gc[J[J[b>>2]+20>>2]](b,J[e+12>>2]+d|0,0)|0;Cb:{if(!(K[e|0]|K[e+1|0])){d=qf(n+288|0,0);J[695492]=0;e=ga(55,d|0,b|0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Cb;if(e){J[695492]=0;ga(108,i|0,d|0,1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Cb;J[i+356>>2]=L[n+1358>>1]}J[695492]=0;m9(i,5);e=J[695492];J[695492]=0;if((e|0)==1)break Cb;mj(d);break yb}f=n+1314|0;gc[J[J[b>>2]+12>>2]](b,f,40,1,0,0)|0;bq(i,f);k=K[n+1328|0]|K[n+1329|0]<<8;mi(i,K[e|0],K[e+1|0],k,5);e=n+288|0;f=K[n+1346|0]|K[n+1347|0]<< -8|(K[n+1348|0]<<16|K[n+1349|0]<<24);f=f?f:J[i+44>>2];gc[J[J[b>>2]+12>>2]](b,e,(f>>>0>=256?256:f)<<2,1,0,0)|0;KD(i,e,J[i+44>>2]);Db:{if(k>>>0<=24){gc[J[J[b>>2]+12>>2]](b,J[i+56>>2],J[i+32>>2],1,0,0)|0;g=J[i+20>>2];break Db}j=0;e=P(J[i+20>>2],J[i+16>>2])<<2;d=zc(e);gc[J[J[b>>2]+12>>2]](b,d,e,1,0,0)|0;if(!J[i+964>>2])Jk(i);g=J[i+20>>2];if((g|0)>0){e=d;while(1){g=df(i,j);h=0;if(J[i+16>>2]>0)while(1){H[g|0]=K[e|0];H[g+1|0]=K[e+1|0];H[g+2|0]=K[e+2|0];hh(i,h,j,K[e+3|0]);e=e+4|0;g=g+3|0;h=h+1|0;if((h|0)< -J[i+16>>2])continue;break}g=J[i+20>>2];j=j+1|0;if((g|0)>(j|0))continue;break}}qc(d)}e=0;q=(J[i+16>>2]+31|0)/32<<2;f=P(q,g);o=zc(f);if(!(gc[J[J[b>>2]+12>>2]](b,o,f,1,0,0)|0))break zb;Eb:{Fb:{if((f|0)<=0)break Fb;while(1){if(!(K[e+o|0]!=255|K[o+(e|1)|0]!=255|(K[o+(e|2)|0]!=255|K[o+(e|3)|0]!=255))){e=e+4|0;if((f|0)!=(e|0))continue;break Fb}break}j=J[i+964>>2]!=0;if(!j)Jk(i);f=J[i+20>>2];Gb:{if((f|0)<=0)break Gb;g=J[i+16>>2];if((g|0)<=0)break Gb;h=0;while(1){if((g|0)>0){f=o+P(h,q)|0;e=0;while(1){if(K[f+ -(e>>>3|0)|0]>>>((e^-1)&7)&1){hh(i,e,h,0);j=1;g=J[i+16>>2]}e=e+1|0;if((e|0)<(g|0))continue;break}f=J[i+20>>2]}h=h+1|0;if((h|0)<(f|0))continue;break}}if(!(j&1)){SD(i);f=J[i+20>>2]}if((f|0)<=0)break Eb;h=J[i+16>>2];if((h|0)<=0)break Eb;g=0;j=0;while(1){if((h|0)>0){s=o+P(j,q)|0;e=0;while(1){Hb:{if(!(K[s+(e>>>3|0)|0]>>>((e^-1)&7)&1))break Hb;Ik(n+16|0,i,e,j,0);f=J[n+16>>2];if(!g){g=1;r=lj(i,e,j);d=f;l=d;break Hb}g=((d|0)!=(f|0))+g|0}e=e+1|0;h=J[i+16>>2];if((e|0)<(h|0))continue;break}f=J[i+20>>2]}j=j+1| -0;if((j|0)<(f|0))continue;break}e=k>>>0>8;if(!(e|(g|0)!=1)){J[n+12>>2]=l;J[n+284>>2]=l;H[n+15|0]=0;J[i+340>>2]=K[n+12|0]|K[n+13|0]<<8|(K[n+14|0]<<16|K[n+15|0]<<24);J[i+336>>2]=J[i+44>>2]>(r|0)?r:0;SD(i);f=J[i+20>>2];break Ab}if(e)break zb;break Ab}J[i+336>>2]=0;h=0;e=0;f=bc-16|0;bc=f;Ib:{if(!J[i+4>>2])break Ib;if(L[i+26>>1]<=8){if(Do(i)){if(J[i+960>>2]){d=J[i+376>>2];e=J[i+384>>2];if((d|0)<=(e|0))break Ib;l=J[i+380>>2];if((l|0)<=J[i+372>>2])break Ib;while(1){h=J[i+372>>2];if((h|0)<(l|0)){while(1){d= -J[i+960>>2];if(d)d=K[(d+P(J[i+16>>2],e)|0)+h|0];else d=1;if(d)QD(i,h,e,Fo(i,h,e)^255);l=J[i+380>>2];h=h+1|0;if((l|0)>(h|0))continue;break}d=J[i+376>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}break Ib}if(!J[i+32>>2])break Ib;h=J[i+56>>2];while(1){H[h|0]=K[h|0]^-1;h=h+1|0;e=e+1|0;if(e>>>0>2])continue;break}break Ib}d=J[i+44>>2];if(!d)break Ib;e=J[i+4>>2];g=e?d?e+40|0:0:0;if((d|0)!=1){j=d&-2;while(1){k=h<<2;e=k+g|0;H[e|0]=K[e|0]^-1;H[e+1|0]=K[e+1|0]^-1;H[e+2|0]=K[e+2|0]^-1;e=g+(k|4)|0;H[e|0]= +E.Za;var Wb=E._a;var Xb=E.$a;var Yb=E.ab;var Zb=E.bb;var _b=E.cb;var $b=E.db;var ac=E.eb;var bc=E.fb;var cc=E.gb;var dc=E.hb;var ec=E.ib;var fc=2865552;var gc=0;var hc=0;var ic=0;var jc=0;function Yba(){var a=0,b=0,c=0,d=0,e=0,f=0,g=0;a=fc-16|0;fc=a;a:{if(qb(a+12|0,a+8|0)|0)break a;b=Dc((J[a+12>>2]<<2)+4|0);J[698589]=b;if(!b)break a;b=Dc(J[a+8>>2]);if(b){J[J[698589]+(J[a+12>>2]<<2)>>2]=0;if(!(pb(J[698589],b|0)|0))break a}J[698589]=0}fc=a+16|0;a=vc(32);J[692588]=a;J[692589]=5;J[692590]=-2147483640; +J[a+16>>2]=J[83630];b=J[83629];J[a+8>>2]=J[83628];J[a+12>>2]=b;b=J[83627];J[a>>2]=J[83626];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b:{c:{d:{b=2770364;e:{if((c|0)==1)break e;J[692591]=a;J[692592]=10;J[692593]=-2147483636;b=J[83673];J[a+32>>2]=J[83672];J[a+36>>2]=b;b=J[83671];J[a+24>>2]=J[83670];J[a+28>>2]=b;b=J[83669];J[a+16>>2]=J[83668];J[a+20>>2]=b;b=J[83667];J[a+8>>2]=J[83666];J[a+12>>2]=b;b=J[83665];J[a>>2]=J[83664];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,48)| +0;c=J[699344];J[699344]=0;b=2770376;if((c|0)==1)break e;J[692594]=a;J[692595]=8;J[692596]=-2147483636;b=J[83708];J[a+24>>2]=J[83707];J[a+28>>2]=b;b=J[83706];J[a+16>>2]=J[83705];J[a+20>>2]=b;b=J[83704];J[a+8>>2]=J[83703];J[a+12>>2]=b;b=J[83702];J[a>>2]=J[83701];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770388;if((c|0)==1)break e;J[692597]=a;J[692598]=10;J[692599]=-2147483636;b=J[83737];J[a+32>>2]=J[83736];J[a+36>>2]=b;b=J[83735];J[a+24>>2]=J[83734];J[a+28>>2]=b;b= +J[83733];J[a+16>>2]=J[83732];J[a+20>>2]=b;b=J[83731];J[a+8>>2]=J[83730];J[a+12>>2]=b;b=J[83729];J[a>>2]=J[83728];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770400;if((c|0)==1)break e;J[692600]=a;J[692601]=8;J[692602]=-2147483636;b=J[83786];J[a+24>>2]=J[83785];J[a+28>>2]=b;b=J[83784];J[a+16>>2]=J[83783];J[a+20>>2]=b;b=J[83782];J[a+8>>2]=J[83781];J[a+12>>2]=b;b=J[83780];J[a>>2]=J[83779];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770412; +if((c|0)==1)break e;J[692603]=a;J[692604]=9;J[692605]=-2147483636;J[a+32>>2]=J[83814];b=J[83813];J[a+24>>2]=J[83812];J[a+28>>2]=b;b=J[83811];J[a+16>>2]=J[83810];J[a+20>>2]=b;b=J[83809];J[a+8>>2]=J[83808];J[a+12>>2]=b;b=J[83807];J[a>>2]=J[83806];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770424;if((c|0)==1)break e;J[692606]=a;J[692607]=9;J[692608]=-2147483636;J[a+32>>2]=J[83844];b=J[83843];J[a+24>>2]=J[83842];J[a+28>>2]=b;b=J[83841];J[a+16>>2]=J[83840];J[a+20>>2]=b; +b=J[83839];J[a+8>>2]=J[83838];J[a+12>>2]=b;b=J[83837];J[a>>2]=J[83836];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770436;if((c|0)==1)break e;J[692609]=a;J[692610]=5;J[692611]=-2147483640;J[a+16>>2]=J[83870];b=J[83869];J[a+8>>2]=J[83868];J[a+12>>2]=b;b=J[83867];J[a>>2]=J[83866];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770448;if((c|0)==1)break e;J[692612]=a;J[692613]=8;J[692614]=-2147483636;b=J[83891];J[a+24>>2]=J[83890];J[a+28>>2]= +b;b=J[83889];J[a+16>>2]=J[83888];J[a+20>>2]=b;b=J[83887];J[a+8>>2]=J[83886];J[a+12>>2]=b;b=J[83885];J[a>>2]=J[83884];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770460;if((c|0)==1)break e;J[692615]=a;J[692616]=6;J[692617]=-2147483640;b=J[83916];J[a+16>>2]=J[83915];J[a+20>>2]=b;b=J[83914];J[a+8>>2]=J[83913];J[a+12>>2]=b;b=J[83912];J[a>>2]=J[83911];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770472;if((c|0)==1)break e;J[692618]=a;J[692619]= +8;J[692620]=-2147483636;b=J[83939];J[a+24>>2]=J[83938];J[a+28>>2]=b;b=J[83937];J[a+16>>2]=J[83936];J[a+20>>2]=b;b=J[83935];J[a+8>>2]=J[83934];J[a+12>>2]=b;b=J[83933];J[a>>2]=J[83932];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770484;if((c|0)==1)break e;J[692621]=a;J[692622]=6;J[692623]=-2147483640;b=J[83964];J[a+16>>2]=J[83963];J[a+20>>2]=b;b=J[83962];J[a+8>>2]=J[83961];J[a+12>>2]=b;b=J[83960];J[a>>2]=J[83959];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344]; +J[699344]=0;b=2770496;if((c|0)==1)break e;J[692624]=a;J[692625]=6;J[692626]=-2147483640;b=J[83985];J[a+16>>2]=J[83984];J[a+20>>2]=b;b=J[83983];J[a+8>>2]=J[83982];J[a+12>>2]=b;b=J[83981];J[a>>2]=J[83980];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770508;if((c|0)==1)break e;J[692627]=a;J[692628]=7;J[692629]=-2147483640;J[a+24>>2]=J[84007];b=J[84006];J[a+16>>2]=J[84005];J[a+20>>2]=b;b=J[84004];J[a+8>>2]=J[84003];J[a+12>>2]=b;b=J[84002];J[a>>2]=J[84001];J[a+4>>2]=b;J[a+ +28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770520;if((c|0)==1)break e;J[692630]=a;J[692631]=7;J[692632]=-2147483640;J[a+24>>2]=J[84031];b=J[84030];J[a+16>>2]=J[84029];J[a+20>>2]=b;b=J[84028];J[a+8>>2]=J[84027];J[a+12>>2]=b;b=J[84026];J[a>>2]=J[84025];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770532;if((c|0)==1)break e;J[692633]=a;J[692634]=4;J[692635]=-2147483640;b=J[84052];J[a+8>>2]=J[84051];J[a+12>>2]=b;b=J[84050];J[a>>2]=J[84049];J[a+4>>2]=b;J[a+ +16>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770544;if((c|0)==1)break e;J[692636]=a;J[692637]=9;J[692638]=-2147483636;J[a+32>>2]=J[84072];b=J[84071];J[a+24>>2]=J[84070];J[a+28>>2]=b;b=J[84069];J[a+16>>2]=J[84068];J[a+20>>2]=b;b=J[84067];J[a+8>>2]=J[84066];J[a+12>>2]=b;b=J[84065];J[a>>2]=J[84064];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770556;if((c|0)==1)break e;J[692639]=a;J[692640]=7;J[692641]=-2147483640;J[a+24>>2]=J[84100];b=J[84099];J[a+16>>2]= +J[84098];J[a+20>>2]=b;b=J[84097];J[a+8>>2]=J[84096];J[a+12>>2]=b;b=J[84095];J[a>>2]=J[84094];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770568;if((c|0)==1)break e;J[692642]=a;J[692643]=10;J[692644]=-2147483636;b=J[84127];J[a+32>>2]=J[84126];J[a+36>>2]=b;b=J[84125];J[a+24>>2]=J[84124];J[a+28>>2]=b;b=J[84123];J[a+16>>2]=J[84122];J[a+20>>2]=b;b=J[84121];J[a+8>>2]=J[84120];J[a+12>>2]=b;b=J[84119];J[a>>2]=J[84118];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344]; +J[699344]=0;b=2770580;if((c|0)==1)break e;J[692645]=a;J[692646]=6;J[692647]=-2147483640;b=J[84156];J[a+16>>2]=J[84155];J[a+20>>2]=b;b=J[84154];J[a+8>>2]=J[84153];J[a+12>>2]=b;b=J[84152];J[a>>2]=J[84151];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770592;if((c|0)==1)break e;J[692648]=a;J[692649]=8;J[692650]=-2147483636;b=J[84179];J[a+24>>2]=J[84178];J[a+28>>2]=b;b=J[84177];J[a+16>>2]=J[84176];J[a+20>>2]=b;b=J[84175];J[a+8>>2]=J[84174];J[a+12>>2]=b;b=J[84173];J[a>>2]= +J[84172];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770604;if((c|0)==1)break e;J[692651]=a;J[692652]=6;J[692653]=-2147483640;b=J[84204];J[a+16>>2]=J[84203];J[a+20>>2]=b;b=J[84202];J[a+8>>2]=J[84201];J[a+12>>2]=b;b=J[84200];J[a>>2]=J[84199];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770616;if((c|0)==1)break e;J[692654]=a;J[692655]=8;J[692656]=-2147483636;b=J[84227];J[a+24>>2]=J[84226];J[a+28>>2]=b;b=J[84225];J[a+16>>2]=J[84224];J[a+ +20>>2]=b;b=J[84223];J[a+8>>2]=J[84222];J[a+12>>2]=b;b=J[84221];J[a>>2]=J[84220];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770628;if((c|0)==1)break e;J[692657]=a;J[692658]=6;J[692659]=-2147483640;b=J[84252];J[a+16>>2]=J[84251];J[a+20>>2]=b;b=J[84250];J[a+8>>2]=J[84249];J[a+12>>2]=b;b=J[84248];J[a>>2]=J[84247];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770640;if((c|0)==1)break e;J[692660]=a;J[692661]=7;J[692662]=-2147483640;J[a+24>> +2]=J[84274];b=J[84273];J[a+16>>2]=J[84272];J[a+20>>2]=b;b=J[84271];J[a+8>>2]=J[84270];J[a+12>>2]=b;b=J[84269];J[a>>2]=J[84268];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770652;if((c|0)==1)break e;J[692663]=a;J[692664]=7;J[692665]=-2147483640;J[a+24>>2]=J[84298];b=J[84297];J[a+16>>2]=J[84296];J[a+20>>2]=b;b=J[84295];J[a+8>>2]=J[84294];J[a+12>>2]=b;b=J[84293];J[a>>2]=J[84292];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770664;if((c|0)== +1)break e;J[692666]=a;J[692667]=8;J[692668]=-2147483636;b=J[84323];J[a+24>>2]=J[84322];J[a+28>>2]=b;b=J[84321];J[a+16>>2]=J[84320];J[a+20>>2]=b;b=J[84319];J[a+8>>2]=J[84318];J[a+12>>2]=b;b=J[84317];J[a>>2]=J[84316];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770676;if((c|0)==1)break e;J[692669]=a;J[692670]=5;J[692671]=-2147483640;J[a+16>>2]=J[84347];b=J[84346];J[a+8>>2]=J[84345];J[a+12>>2]=b;b=J[84344];J[a>>2]=J[84343];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)| +0;c=J[699344];J[699344]=0;b=2770688;if((c|0)==1)break e;J[692672]=a;J[692673]=5;J[692674]=-2147483640;J[a+16>>2]=J[84365];b=J[84364];J[a+8>>2]=J[84363];J[a+12>>2]=b;b=J[84362];J[a>>2]=J[84361];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770700;if((c|0)==1)break e;J[692675]=a;J[692676]=5;J[692677]=-2147483640;J[a+16>>2]=J[84383];b=J[84382];J[a+8>>2]=J[84381];J[a+12>>2]=b;b=J[84380];J[a>>2]=J[84379];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]= +0;b=2770712;if((c|0)==1)break e;J[692678]=a;J[692679]=5;J[692680]=-2147483640;J[a+16>>2]=J[84401];b=J[84400];J[a+8>>2]=J[84399];J[a+12>>2]=b;b=J[84398];J[a>>2]=J[84397];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770724;if((c|0)==1)break e;J[692681]=a;J[692682]=5;J[692683]=-2147483640;J[a+16>>2]=J[84419];b=J[84418];J[a+8>>2]=J[84417];J[a+12>>2]=b;b=J[84416];J[a>>2]=J[84415];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770736;if((c|0)== +1)break e;J[692684]=a;J[692685]=4;J[692686]=-2147483640;b=J[84436];J[a+8>>2]=J[84435];J[a+12>>2]=b;b=J[84434];J[a>>2]=J[84433];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770748;if((c|0)==1)break e;J[692687]=a;J[692688]=5;J[692689]=-2147483640;J[a+16>>2]=J[84452];b=J[84451];J[a+8>>2]=J[84450];J[a+12>>2]=b;b=J[84449];J[a>>2]=J[84448];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770760;if((c|0)==1)break e;J[692690]=a;J[692691]=5;J[692692]= +-2147483640;J[a+16>>2]=J[84470];b=J[84469];J[a+8>>2]=J[84468];J[a+12>>2]=b;b=J[84467];J[a>>2]=J[84466];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770772;if((c|0)==1)break e;J[692693]=a;J[692694]=5;J[692695]=-2147483640;J[a+16>>2]=J[84488];b=J[84487];J[a+8>>2]=J[84486];J[a+12>>2]=b;b=J[84485];J[a>>2]=J[84484];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770784;if((c|0)==1)break e;J[692696]=a;J[692697]=5;J[692698]=-2147483640;J[a+16>>2]= +J[84506];b=J[84505];J[a+8>>2]=J[84504];J[a+12>>2]=b;b=J[84503];J[a>>2]=J[84502];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770796;if((c|0)==1)break e;J[692699]=a;J[692700]=5;J[692701]=-2147483640;J[a+16>>2]=J[84524];b=J[84523];J[a+8>>2]=J[84522];J[a+12>>2]=b;b=J[84521];J[a>>2]=J[84520];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770808;if((c|0)==1)break e;J[692702]=a;J[692703]=5;J[692704]=-2147483640;J[a+16>>2]=J[84542];b=J[84541];J[a+ +8>>2]=J[84540];J[a+12>>2]=b;b=J[84539];J[a>>2]=J[84538];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770820;if((c|0)==1)break e;J[692705]=a;J[692706]=5;J[692707]=-2147483640;J[a+16>>2]=J[84560];b=J[84559];J[a+8>>2]=J[84558];J[a+12>>2]=b;b=J[84557];J[a>>2]=J[84556];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770832;if((c|0)==1)break e;J[692708]=a;J[692709]=7;J[692710]=-2147483640;J[a+24>>2]=J[84580];b=J[84579];J[a+16>>2]=J[84578];J[a+20>> +2]=b;b=J[84577];J[a+8>>2]=J[84576];J[a+12>>2]=b;b=J[84575];J[a>>2]=J[84574];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770844;if((c|0)==1)break e;J[692711]=a;J[692712]=7;J[692713]=-2147483640;J[a+24>>2]=J[84604];b=J[84603];J[a+16>>2]=J[84602];J[a+20>>2]=b;b=J[84601];J[a+8>>2]=J[84600];J[a+12>>2]=b;b=J[84599];J[a>>2]=J[84598];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770856;if((c|0)==1)break e;J[692714]=a;J[692715]=10;J[692716]=-2147483636; +b=J[84631];J[a+32>>2]=J[84630];J[a+36>>2]=b;b=J[84629];J[a+24>>2]=J[84628];J[a+28>>2]=b;b=J[84627];J[a+16>>2]=J[84626];J[a+20>>2]=b;b=J[84625];J[a+8>>2]=J[84624];J[a+12>>2]=b;b=J[84623];J[a>>2]=J[84622];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770868;if((c|0)==1)break e;J[692717]=a;J[692718]=6;J[692719]=-2147483640;b=J[84660];J[a+16>>2]=J[84659];J[a+20>>2]=b;b=J[84658];J[a+8>>2]=J[84657];J[a+12>>2]=b;b=J[84656];J[a>>2]=J[84655];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]= +0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770880;if((c|0)==1)break e;J[692720]=a;J[692721]=9;J[692722]=-2147483636;J[a+32>>2]=J[84684];b=J[84683];J[a+24>>2]=J[84682];J[a+28>>2]=b;b=J[84681];J[a+16>>2]=J[84680];J[a+20>>2]=b;b=J[84679];J[a+8>>2]=J[84678];J[a+12>>2]=b;b=J[84677];J[a>>2]=J[84676];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770892;if((c|0)==1)break e;J[692723]=a;J[692724]=6;J[692725]=-2147483640;b=J[84711];J[a+16>>2]=J[84710];J[a+20>>2]=b;b=J[84709];J[a+ +8>>2]=J[84708];J[a+12>>2]=b;b=J[84707];J[a>>2]=J[84706];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770904;if((c|0)==1)break e;J[692726]=a;J[692727]=7;J[692728]=-2147483640;J[a+24>>2]=J[84733];b=J[84732];J[a+16>>2]=J[84731];J[a+20>>2]=b;b=J[84730];J[a+8>>2]=J[84729];J[a+12>>2]=b;b=J[84728];J[a>>2]=J[84727];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770916;if((c|0)==1)break e;J[692729]=a;J[692730]=6;J[692731]=-2147483640;b=J[84756];J[a+ +16>>2]=J[84755];J[a+20>>2]=b;b=J[84754];J[a+8>>2]=J[84753];J[a+12>>2]=b;b=J[84752];J[a>>2]=J[84751];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770928;if((c|0)==1)break e;J[692732]=a;J[692733]=4;J[692734]=-2147483640;b=J[84775];J[a+8>>2]=J[84774];J[a+12>>2]=b;b=J[84773];J[a>>2]=J[84772];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770940;if((c|0)==1)break e;J[692735]=a;J[692736]=4;J[692737]=-2147483640;b=J[84790];J[a+8>>2]=J[84789];J[a+ +12>>2]=b;b=J[84788];J[a>>2]=J[84787];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770952;if((c|0)==1)break e;J[692738]=a;J[692739]=8;J[692740]=-2147483636;b=J[84809];J[a+24>>2]=J[84808];J[a+28>>2]=b;b=J[84807];J[a+16>>2]=J[84806];J[a+20>>2]=b;b=J[84805];J[a+8>>2]=J[84804];J[a+12>>2]=b;b=J[84803];J[a>>2]=J[84802];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2770964;if((c|0)==1)break e;J[692741]=a;J[692742]=8;J[692743]=-2147483636;b=J[84836]; +J[a+24>>2]=J[84835];J[a+28>>2]=b;b=J[84834];J[a+16>>2]=J[84833];J[a+20>>2]=b;b=J[84832];J[a+8>>2]=J[84831];J[a+12>>2]=b;b=J[84830];J[a>>2]=J[84829];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2770976;if((c|0)==1)break e;J[692744]=a;J[692745]=5;J[692746]=-2147483640;J[a+16>>2]=J[84860];b=J[84859];J[a+8>>2]=J[84858];J[a+12>>2]=b;b=J[84857];J[a>>2]=J[84856];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=2770988}c=Z()|0;while(1){a= +b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((a|0)!=2770352)continue;break}break c}J[692747]=a;J[692748]=6;J[692749]=-2147483640;b=J[84879];J[a+16>>2]=J[84878];J[a+20>>2]=b;b=J[84877];J[a+8>>2]=J[84876];J[a+12>>2]=b;b=J[84875];J[a>>2]=J[84874];J[a+4>>2]=b;J[a+24>>2]=0;a=vc(32);J[692752]=a;J[692753]=5;J[692754]=-2147483640;J[a+16>>2]=J[83636];b=J[83635];J[a+8>>2]=J[83634];J[a+12>>2]=b;b=J[83633];J[a>>2]=J[83632];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;f:{b=2771020;g:{if((c| +0)==1)break g;J[692755]=a;J[692756]=10;J[692757]=-2147483636;b=J[83684];J[a+32>>2]=J[83683];J[a+36>>2]=b;b=J[83682];J[a+24>>2]=J[83681];J[a+28>>2]=b;b=J[83680];J[a+16>>2]=J[83679];J[a+20>>2]=b;b=J[83678];J[a+8>>2]=J[83677];J[a+12>>2]=b;b=J[83676];J[a>>2]=J[83675];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771032;if((c|0)==1)break g;J[692758]=a;J[692759]=8;J[692760]=-2147483636;b=J[83717];J[a+24>>2]=J[83716];J[a+28>>2]=b;b=J[83715];J[a+16>>2]=J[83714];J[a+20>>2]=b; +b=J[83713];J[a+8>>2]=J[83712];J[a+12>>2]=b;b=J[83711];J[a>>2]=J[83710];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771044;if((c|0)==1)break g;J[692761]=a;J[692762]=10;J[692763]=-2147483636;b=J[83748];J[a+32>>2]=J[83747];J[a+36>>2]=b;b=J[83746];J[a+24>>2]=J[83745];J[a+28>>2]=b;b=J[83744];J[a+16>>2]=J[83743];J[a+20>>2]=b;b=J[83742];J[a+8>>2]=J[83741];J[a+12>>2]=b;b=J[83740];J[a>>2]=J[83739];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771056; +if((c|0)==1)break g;J[692764]=a;J[692765]=8;J[692766]=-2147483636;b=J[83795];J[a+24>>2]=J[83794];J[a+28>>2]=b;b=J[83793];J[a+16>>2]=J[83792];J[a+20>>2]=b;b=J[83791];J[a+8>>2]=J[83790];J[a+12>>2]=b;b=J[83789];J[a>>2]=J[83788];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771068;if((c|0)==1)break g;J[692767]=a;J[692768]=9;J[692769]=-2147483636;J[a+32>>2]=J[83824];b=J[83823];J[a+24>>2]=J[83822];J[a+28>>2]=b;b=J[83821];J[a+16>>2]=J[83820];J[a+20>>2]=b;b=J[83819];J[a+8>>2]= +J[83818];J[a+12>>2]=b;b=J[83817];J[a>>2]=J[83816];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771080;if((c|0)==1)break g;J[692770]=a;J[692771]=9;J[692772]=-2147483636;J[a+32>>2]=J[83854];b=J[83853];J[a+24>>2]=J[83852];J[a+28>>2]=b;b=J[83851];J[a+16>>2]=J[83850];J[a+20>>2]=b;b=J[83849];J[a+8>>2]=J[83848];J[a+12>>2]=b;b=J[83847];J[a>>2]=J[83846];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771092;if((c|0)==1)break g;J[692773]=a;J[692774]= +5;J[692775]=-2147483640;J[a+16>>2]=J[83876];b=J[83875];J[a+8>>2]=J[83874];J[a+12>>2]=b;b=J[83873];J[a>>2]=J[83872];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771104;if((c|0)==1)break g;J[692776]=a;J[692777]=8;J[692778]=-2147483636;b=J[83900];J[a+24>>2]=J[83899];J[a+28>>2]=b;b=J[83898];J[a+16>>2]=J[83897];J[a+20>>2]=b;b=J[83896];J[a+8>>2]=J[83895];J[a+12>>2]=b;b=J[83894];J[a>>2]=J[83893];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771116; +if((c|0)==1)break g;J[692779]=a;J[692780]=6;J[692781]=-2147483640;b=J[83923];J[a+16>>2]=J[83922];J[a+20>>2]=b;b=J[83921];J[a+8>>2]=J[83920];J[a+12>>2]=b;b=J[83919];J[a>>2]=J[83918];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771128;if((c|0)==1)break g;J[692782]=a;J[692783]=8;J[692784]=-2147483636;b=J[83948];J[a+24>>2]=J[83947];J[a+28>>2]=b;b=J[83946];J[a+16>>2]=J[83945];J[a+20>>2]=b;b=J[83944];J[a+8>>2]=J[83943];J[a+12>>2]=b;b=J[83942];J[a>>2]=J[83941];J[a+4>>2]=b; +J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771140;if((c|0)==1)break g;J[692785]=a;J[692786]=6;J[692787]=-2147483640;b=J[83971];J[a+16>>2]=J[83970];J[a+20>>2]=b;b=J[83969];J[a+8>>2]=J[83968];J[a+12>>2]=b;b=J[83967];J[a>>2]=J[83966];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771152;if((c|0)==1)break g;J[692788]=a;J[692789]=6;J[692790]=-2147483640;b=J[83992];J[a+16>>2]=J[83991];J[a+20>>2]=b;b=J[83990];J[a+8>>2]=J[83989];J[a+12>>2]=b;b=J[83988];J[a>> +2]=J[83987];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771164;if((c|0)==1)break g;J[692791]=a;J[692792]=7;J[692793]=-2147483640;J[a+24>>2]=J[84015];b=J[84014];J[a+16>>2]=J[84013];J[a+20>>2]=b;b=J[84012];J[a+8>>2]=J[84011];J[a+12>>2]=b;b=J[84010];J[a>>2]=J[84009];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771176;if((c|0)==1)break g;J[692794]=a;J[692795]=7;J[692796]=-2147483640;J[a+24>>2]=J[84039];b=J[84038];J[a+16>>2]=J[84037];J[a+20>> +2]=b;b=J[84036];J[a+8>>2]=J[84035];J[a+12>>2]=b;b=J[84034];J[a>>2]=J[84033];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771188;if((c|0)==1)break g;J[692797]=a;J[692798]=4;J[692799]=-2147483640;b=J[84057];J[a+8>>2]=J[84056];J[a+12>>2]=b;b=J[84055];J[a>>2]=J[84054];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771200;if((c|0)==1)break g;J[692800]=a;J[692801]=9;J[692802]=-2147483636;J[a+32>>2]=J[84082];b=J[84081];J[a+24>>2]=J[84080];J[a+28>> +2]=b;b=J[84079];J[a+16>>2]=J[84078];J[a+20>>2]=b;b=J[84077];J[a+8>>2]=J[84076];J[a+12>>2]=b;b=J[84075];J[a>>2]=J[84074];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771212;if((c|0)==1)break g;J[692803]=a;J[692804]=7;J[692805]=-2147483640;J[a+24>>2]=J[84108];b=J[84107];J[a+16>>2]=J[84106];J[a+20>>2]=b;b=J[84105];J[a+8>>2]=J[84104];J[a+12>>2]=b;b=J[84103];J[a>>2]=J[84102];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771224;if((c|0)==1)break g; +J[692806]=a;J[692807]=10;J[692808]=-2147483636;b=J[84138];J[a+32>>2]=J[84137];J[a+36>>2]=b;b=J[84136];J[a+24>>2]=J[84135];J[a+28>>2]=b;b=J[84134];J[a+16>>2]=J[84133];J[a+20>>2]=b;b=J[84132];J[a+8>>2]=J[84131];J[a+12>>2]=b;b=J[84130];J[a>>2]=J[84129];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771236;if((c|0)==1)break g;J[692809]=a;J[692810]=6;J[692811]=-2147483640;b=J[84163];J[a+16>>2]=J[84162];J[a+20>>2]=b;b=J[84161];J[a+8>>2]=J[84160];J[a+12>>2]=b;b=J[84159];J[a>> +2]=J[84158];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771248;if((c|0)==1)break g;J[692812]=a;J[692813]=8;J[692814]=-2147483636;b=J[84188];J[a+24>>2]=J[84187];J[a+28>>2]=b;b=J[84186];J[a+16>>2]=J[84185];J[a+20>>2]=b;b=J[84184];J[a+8>>2]=J[84183];J[a+12>>2]=b;b=J[84182];J[a>>2]=J[84181];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771260;if((c|0)==1)break g;J[692815]=a;J[692816]=6;J[692817]=-2147483640;b=J[84211];J[a+16>>2]=J[84210];J[a+ +20>>2]=b;b=J[84209];J[a+8>>2]=J[84208];J[a+12>>2]=b;b=J[84207];J[a>>2]=J[84206];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771272;if((c|0)==1)break g;J[692818]=a;J[692819]=8;J[692820]=-2147483636;b=J[84236];J[a+24>>2]=J[84235];J[a+28>>2]=b;b=J[84234];J[a+16>>2]=J[84233];J[a+20>>2]=b;b=J[84232];J[a+8>>2]=J[84231];J[a+12>>2]=b;b=J[84230];J[a>>2]=J[84229];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771284;if((c|0)==1)break g;J[692821]= +a;J[692822]=6;J[692823]=-2147483640;b=J[84259];J[a+16>>2]=J[84258];J[a+20>>2]=b;b=J[84257];J[a+8>>2]=J[84256];J[a+12>>2]=b;b=J[84255];J[a>>2]=J[84254];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771296;if((c|0)==1)break g;J[692824]=a;J[692825]=7;J[692826]=-2147483640;J[a+24>>2]=J[84282];b=J[84281];J[a+16>>2]=J[84280];J[a+20>>2]=b;b=J[84279];J[a+8>>2]=J[84278];J[a+12>>2]=b;b=J[84277];J[a>>2]=J[84276];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]= +0;b=2771308;if((c|0)==1)break g;J[692827]=a;J[692828]=7;J[692829]=-2147483640;J[a+24>>2]=J[84306];b=J[84305];J[a+16>>2]=J[84304];J[a+20>>2]=b;b=J[84303];J[a+8>>2]=J[84302];J[a+12>>2]=b;b=J[84301];J[a>>2]=J[84300];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771320;if((c|0)==1)break g;J[692830]=a;J[692831]=8;J[692832]=-2147483636;b=J[84332];J[a+24>>2]=J[84331];J[a+28>>2]=b;b=J[84330];J[a+16>>2]=J[84329];J[a+20>>2]=b;b=J[84328];J[a+8>>2]=J[84327];J[a+12>>2]=b;b=J[84326]; +J[a>>2]=J[84325];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771332;if((c|0)==1)break g;J[692833]=a;J[692834]=5;J[692835]=-2147483640;J[a+16>>2]=J[84353];b=J[84352];J[a+8>>2]=J[84351];J[a+12>>2]=b;b=J[84350];J[a>>2]=J[84349];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771344;if((c|0)==1)break g;J[692836]=a;J[692837]=5;J[692838]=-2147483640;J[a+16>>2]=J[84371];b=J[84370];J[a+8>>2]=J[84369];J[a+12>>2]=b;b=J[84368];J[a>>2]=J[84367];J[a+ +4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771356;if((c|0)==1)break g;J[692839]=a;J[692840]=5;J[692841]=-2147483640;J[a+16>>2]=J[84389];b=J[84388];J[a+8>>2]=J[84387];J[a+12>>2]=b;b=J[84386];J[a>>2]=J[84385];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771368;if((c|0)==1)break g;J[692842]=a;J[692843]=5;J[692844]=-2147483640;J[a+16>>2]=J[84407];b=J[84406];J[a+8>>2]=J[84405];J[a+12>>2]=b;b=J[84404];J[a>>2]=J[84403];J[a+4>>2]=b;J[a+20>>2]=0; +J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771380;if((c|0)==1)break g;J[692845]=a;J[692846]=5;J[692847]=-2147483640;J[a+16>>2]=J[84425];b=J[84424];J[a+8>>2]=J[84423];J[a+12>>2]=b;b=J[84422];J[a>>2]=J[84421];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771392;if((c|0)==1)break g;J[692848]=a;J[692849]=4;J[692850]=-2147483640;b=J[84441];J[a+8>>2]=J[84440];J[a+12>>2]=b;b=J[84439];J[a>>2]=J[84438];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]= +0;b=2771404;if((c|0)==1)break g;J[692851]=a;J[692852]=5;J[692853]=-2147483640;J[a+16>>2]=J[84458];b=J[84457];J[a+8>>2]=J[84456];J[a+12>>2]=b;b=J[84455];J[a>>2]=J[84454];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771416;if((c|0)==1)break g;J[692854]=a;J[692855]=5;J[692856]=-2147483640;J[a+16>>2]=J[84476];b=J[84475];J[a+8>>2]=J[84474];J[a+12>>2]=b;b=J[84473];J[a>>2]=J[84472];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771428;if((c|0)== +1)break g;J[692857]=a;J[692858]=5;J[692859]=-2147483640;J[a+16>>2]=J[84494];b=J[84493];J[a+8>>2]=J[84492];J[a+12>>2]=b;b=J[84491];J[a>>2]=J[84490];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771440;if((c|0)==1)break g;J[692860]=a;J[692861]=5;J[692862]=-2147483640;J[a+16>>2]=J[84512];b=J[84511];J[a+8>>2]=J[84510];J[a+12>>2]=b;b=J[84509];J[a>>2]=J[84508];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771452;if((c|0)==1)break g;J[692863]=a; +J[692864]=5;J[692865]=-2147483640;J[a+16>>2]=J[84530];b=J[84529];J[a+8>>2]=J[84528];J[a+12>>2]=b;b=J[84527];J[a>>2]=J[84526];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771464;if((c|0)==1)break g;J[692866]=a;J[692867]=5;J[692868]=-2147483640;J[a+16>>2]=J[84548];b=J[84547];J[a+8>>2]=J[84546];J[a+12>>2]=b;b=J[84545];J[a>>2]=J[84544];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771476;if((c|0)==1)break g;J[692869]=a;J[692870]=5;J[692871]= +-2147483640;J[a+16>>2]=J[84566];b=J[84565];J[a+8>>2]=J[84564];J[a+12>>2]=b;b=J[84563];J[a>>2]=J[84562];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771488;if((c|0)==1)break g;J[692872]=a;J[692873]=7;J[692874]=-2147483640;J[a+24>>2]=J[84588];b=J[84587];J[a+16>>2]=J[84586];J[a+20>>2]=b;b=J[84585];J[a+8>>2]=J[84584];J[a+12>>2]=b;b=J[84583];J[a>>2]=J[84582];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771500;if((c|0)==1)break g;J[692875]=a; +J[692876]=7;J[692877]=-2147483640;J[a+24>>2]=J[84612];b=J[84611];J[a+16>>2]=J[84610];J[a+20>>2]=b;b=J[84609];J[a+8>>2]=J[84608];J[a+12>>2]=b;b=J[84607];J[a>>2]=J[84606];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771512;if((c|0)==1)break g;J[692878]=a;J[692879]=10;J[692880]=-2147483636;b=J[84642];J[a+32>>2]=J[84641];J[a+36>>2]=b;b=J[84640];J[a+24>>2]=J[84639];J[a+28>>2]=b;b=J[84638];J[a+16>>2]=J[84637];J[a+20>>2]=b;b=J[84636];J[a+8>>2]=J[84635];J[a+12>>2]=b;b=J[84634]; +J[a>>2]=J[84633];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771524;if((c|0)==1)break g;J[692881]=a;J[692882]=6;J[692883]=-2147483640;b=J[84667];J[a+16>>2]=J[84666];J[a+20>>2]=b;b=J[84665];J[a+8>>2]=J[84664];J[a+12>>2]=b;b=J[84663];J[a>>2]=J[84662];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771536;if((c|0)==1)break g;J[692884]=a;J[692885]=9;J[692886]=-2147483636;J[a+32>>2]=J[84694];b=J[84693];J[a+24>>2]=J[84692];J[a+28>>2]=b;b=J[84691]; +J[a+16>>2]=J[84690];J[a+20>>2]=b;b=J[84689];J[a+8>>2]=J[84688];J[a+12>>2]=b;b=J[84687];J[a>>2]=J[84686];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771548;if((c|0)==1)break g;J[692887]=a;J[692888]=6;J[692889]=-2147483640;b=J[84718];J[a+16>>2]=J[84717];J[a+20>>2]=b;b=J[84716];J[a+8>>2]=J[84715];J[a+12>>2]=b;b=J[84714];J[a>>2]=J[84713];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771560;if((c|0)==1)break g;J[692890]=a;J[692891]=7;J[692892]= +-2147483640;J[a+24>>2]=J[84741];b=J[84740];J[a+16>>2]=J[84739];J[a+20>>2]=b;b=J[84738];J[a+8>>2]=J[84737];J[a+12>>2]=b;b=J[84736];J[a>>2]=J[84735];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771572;if((c|0)==1)break g;J[692893]=a;J[692894]=6;J[692895]=-2147483640;b=J[84763];J[a+16>>2]=J[84762];J[a+20>>2]=b;b=J[84761];J[a+8>>2]=J[84760];J[a+12>>2]=b;b=J[84759];J[a>>2]=J[84758];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771584;if((c|0)== +1)break g;J[692896]=a;J[692897]=4;J[692898]=-2147483640;b=J[84780];J[a+8>>2]=J[84779];J[a+12>>2]=b;b=J[84778];J[a>>2]=J[84777];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771596;if((c|0)==1)break g;J[692899]=a;J[692900]=4;J[692901]=-2147483640;b=J[84795];J[a+8>>2]=J[84794];J[a+12>>2]=b;b=J[84793];J[a>>2]=J[84792];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771608;if((c|0)==1)break g;J[692902]=a;J[692903]=8;J[692904]=-2147483636;b=J[84818]; +J[a+24>>2]=J[84817];J[a+28>>2]=b;b=J[84816];J[a+16>>2]=J[84815];J[a+20>>2]=b;b=J[84814];J[a+8>>2]=J[84813];J[a+12>>2]=b;b=J[84812];J[a>>2]=J[84811];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771620;if((c|0)==1)break g;J[692905]=a;J[692906]=8;J[692907]=-2147483636;b=J[84845];J[a+24>>2]=J[84844];J[a+28>>2]=b;b=J[84843];J[a+16>>2]=J[84842];J[a+20>>2]=b;b=J[84841];J[a+8>>2]=J[84840];J[a+12>>2]=b;b=J[84839];J[a>>2]=J[84838];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)| +0;c=J[699344];J[699344]=0;b=2771632;if((c|0)==1)break g;J[692908]=a;J[692909]=5;J[692910]=-2147483640;J[a+16>>2]=J[84866];b=J[84865];J[a+8>>2]=J[84864];J[a+12>>2]=b;b=J[84863];J[a>>2]=J[84862];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=2771644}c=Z()|0;while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((a|0)!=2771008)continue;break}break c}J[692911]=a;J[692912]=6;J[692913]=-2147483640;b=J[84886];J[a+16>>2]=J[84885];J[a+20>>2]=b;b=J[84884];J[a+8>> +2]=J[84883];J[a+12>>2]=b;b=J[84882];J[a>>2]=J[84881];J[a+4>>2]=b;J[a+24>>2]=0;a=vc(32);J[692916]=a;J[692917]=5;J[692918]=-2147483640;J[a+16>>2]=J[83657];b=J[83656];J[a+8>>2]=J[83655];J[a+12>>2]=b;b=J[83654];J[a>>2]=J[83653];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;h:{b=2771676;i:{if((c|0)==1)break i;J[692919]=a;J[692920]=10;J[692921]=-2147483636;b=J[83697];J[a+32>>2]=J[83696];J[a+36>>2]=b;b=J[83695];J[a+24>>2]=J[83694];J[a+28>>2]=b;b=J[83693];J[a+16>>2]=J[83692];J[a+ +20>>2]=b;b=J[83691];J[a+8>>2]=J[83690];J[a+12>>2]=b;b=J[83689];J[a>>2]=J[83688];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771688;if((c|0)==1)break i;J[692922]=a;J[692923]=8;J[692924]=-2147483636;b=J[83726];J[a+24>>2]=J[83725];J[a+28>>2]=b;b=J[83724];J[a+16>>2]=J[83723];J[a+20>>2]=b;b=J[83722];J[a+8>>2]=J[83721];J[a+12>>2]=b;b=J[83720];J[a>>2]=J[83719];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771700;if((c|0)==1)break i;J[692925]= +a;J[692926]=10;J[692927]=-2147483636;b=J[83777];J[a+32>>2]=J[83776];J[a+36>>2]=b;b=J[83775];J[a+24>>2]=J[83774];J[a+28>>2]=b;b=J[83773];J[a+16>>2]=J[83772];J[a+20>>2]=b;b=J[83771];J[a+8>>2]=J[83770];J[a+12>>2]=b;b=J[83769];J[a>>2]=J[83768];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771712;if((c|0)==1)break i;J[692928]=a;J[692929]=8;J[692930]=-2147483636;b=J[83804];J[a+24>>2]=J[83803];J[a+28>>2]=b;b=J[83802];J[a+16>>2]=J[83801];J[a+20>>2]=b;b=J[83800];J[a+8>>2]=J[83799]; +J[a+12>>2]=b;b=J[83798];J[a>>2]=J[83797];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771724;if((c|0)==1)break i;J[692931]=a;J[692932]=9;J[692933]=-2147483636;J[a+32>>2]=J[83834];b=J[83833];J[a+24>>2]=J[83832];J[a+28>>2]=b;b=J[83831];J[a+16>>2]=J[83830];J[a+20>>2]=b;b=J[83829];J[a+8>>2]=J[83828];J[a+12>>2]=b;b=J[83827];J[a>>2]=J[83826];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771736;if((c|0)==1)break i;J[692934]=a;J[692935]=9;J[692936]= +-2147483636;J[a+32>>2]=J[83864];b=J[83863];J[a+24>>2]=J[83862];J[a+28>>2]=b;b=J[83861];J[a+16>>2]=J[83860];J[a+20>>2]=b;b=J[83859];J[a+8>>2]=J[83858];J[a+12>>2]=b;b=J[83857];J[a>>2]=J[83856];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771748;if((c|0)==1)break i;J[692937]=a;J[692938]=5;J[692939]=-2147483640;J[a+16>>2]=J[83882];b=J[83881];J[a+8>>2]=J[83880];J[a+12>>2]=b;b=J[83879];J[a>>2]=J[83878];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]= +0;b=2771760;if((c|0)==1)break i;J[692940]=a;J[692941]=8;J[692942]=-2147483636;b=J[83909];J[a+24>>2]=J[83908];J[a+28>>2]=b;b=J[83907];J[a+16>>2]=J[83906];J[a+20>>2]=b;b=J[83905];J[a+8>>2]=J[83904];J[a+12>>2]=b;b=J[83903];J[a>>2]=J[83902];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771772;if((c|0)==1)break i;J[692943]=a;J[692944]=6;J[692945]=-2147483640;b=J[83930];J[a+16>>2]=J[83929];J[a+20>>2]=b;b=J[83928];J[a+8>>2]=J[83927];J[a+12>>2]=b;b=J[83926];J[a>>2]=J[83925]; +J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771784;if((c|0)==1)break i;J[692946]=a;J[692947]=8;J[692948]=-2147483636;b=J[83957];J[a+24>>2]=J[83956];J[a+28>>2]=b;b=J[83955];J[a+16>>2]=J[83954];J[a+20>>2]=b;b=J[83953];J[a+8>>2]=J[83952];J[a+12>>2]=b;b=J[83951];J[a>>2]=J[83950];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771796;if((c|0)==1)break i;J[692949]=a;J[692950]=6;J[692951]=-2147483640;b=J[83978];J[a+16>>2]=J[83977];J[a+20>>2]=b; +b=J[83976];J[a+8>>2]=J[83975];J[a+12>>2]=b;b=J[83974];J[a>>2]=J[83973];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771808;if((c|0)==1)break i;J[692952]=a;J[692953]=6;J[692954]=-2147483640;b=J[83999];J[a+16>>2]=J[83998];J[a+20>>2]=b;b=J[83997];J[a+8>>2]=J[83996];J[a+12>>2]=b;b=J[83995];J[a>>2]=J[83994];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771820;if((c|0)==1)break i;J[692955]=a;J[692956]=7;J[692957]=-2147483640;J[a+24>>2]=J[84023]; +b=J[84022];J[a+16>>2]=J[84021];J[a+20>>2]=b;b=J[84020];J[a+8>>2]=J[84019];J[a+12>>2]=b;b=J[84018];J[a>>2]=J[84017];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771832;if((c|0)==1)break i;J[692958]=a;J[692959]=7;J[692960]=-2147483640;J[a+24>>2]=J[84047];b=J[84046];J[a+16>>2]=J[84045];J[a+20>>2]=b;b=J[84044];J[a+8>>2]=J[84043];J[a+12>>2]=b;b=J[84042];J[a>>2]=J[84041];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771844;if((c|0)==1)break i; +J[692961]=a;J[692962]=4;J[692963]=-2147483640;b=J[84062];J[a+8>>2]=J[84061];J[a+12>>2]=b;b=J[84060];J[a>>2]=J[84059];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771856;if((c|0)==1)break i;J[692964]=a;J[692965]=9;J[692966]=-2147483636;J[a+32>>2]=J[84092];b=J[84091];J[a+24>>2]=J[84090];J[a+28>>2]=b;b=J[84089];J[a+16>>2]=J[84088];J[a+20>>2]=b;b=J[84087];J[a+8>>2]=J[84086];J[a+12>>2]=b;b=J[84085];J[a>>2]=J[84084];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344]; +J[699344]=0;b=2771868;if((c|0)==1)break i;J[692967]=a;J[692968]=7;J[692969]=-2147483640;J[a+24>>2]=J[84116];b=J[84115];J[a+16>>2]=J[84114];J[a+20>>2]=b;b=J[84113];J[a+8>>2]=J[84112];J[a+12>>2]=b;b=J[84111];J[a>>2]=J[84110];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771880;if((c|0)==1)break i;J[692970]=a;J[692971]=10;J[692972]=-2147483636;b=J[84149];J[a+32>>2]=J[84148];J[a+36>>2]=b;b=J[84147];J[a+24>>2]=J[84146];J[a+28>>2]=b;b=J[84145];J[a+16>>2]=J[84144];J[a+20>>2]= +b;b=J[84143];J[a+8>>2]=J[84142];J[a+12>>2]=b;b=J[84141];J[a>>2]=J[84140];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771892;if((c|0)==1)break i;J[692973]=a;J[692974]=6;J[692975]=-2147483640;b=J[84170];J[a+16>>2]=J[84169];J[a+20>>2]=b;b=J[84168];J[a+8>>2]=J[84167];J[a+12>>2]=b;b=J[84166];J[a>>2]=J[84165];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771904;if((c|0)==1)break i;J[692976]=a;J[692977]=8;J[692978]=-2147483636;b=J[84197];J[a+ +24>>2]=J[84196];J[a+28>>2]=b;b=J[84195];J[a+16>>2]=J[84194];J[a+20>>2]=b;b=J[84193];J[a+8>>2]=J[84192];J[a+12>>2]=b;b=J[84191];J[a>>2]=J[84190];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771916;if((c|0)==1)break i;J[692979]=a;J[692980]=6;J[692981]=-2147483640;b=J[84218];J[a+16>>2]=J[84217];J[a+20>>2]=b;b=J[84216];J[a+8>>2]=J[84215];J[a+12>>2]=b;b=J[84214];J[a>>2]=J[84213];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771928;if((c|0)== +1)break i;J[692982]=a;J[692983]=8;J[692984]=-2147483636;b=J[84245];J[a+24>>2]=J[84244];J[a+28>>2]=b;b=J[84243];J[a+16>>2]=J[84242];J[a+20>>2]=b;b=J[84241];J[a+8>>2]=J[84240];J[a+12>>2]=b;b=J[84239];J[a>>2]=J[84238];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771940;if((c|0)==1)break i;J[692985]=a;J[692986]=6;J[692987]=-2147483640;b=J[84266];J[a+16>>2]=J[84265];J[a+20>>2]=b;b=J[84264];J[a+8>>2]=J[84263];J[a+12>>2]=b;b=J[84262];J[a>>2]=J[84261];J[a+4>>2]=b;J[a+24>>2]= +0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771952;if((c|0)==1)break i;J[692988]=a;J[692989]=7;J[692990]=-2147483640;J[a+24>>2]=J[84290];b=J[84289];J[a+16>>2]=J[84288];J[a+20>>2]=b;b=J[84287];J[a+8>>2]=J[84286];J[a+12>>2]=b;b=J[84285];J[a>>2]=J[84284];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771964;if((c|0)==1)break i;J[692991]=a;J[692992]=7;J[692993]=-2147483640;J[a+24>>2]=J[84314];b=J[84313];J[a+16>>2]=J[84312];J[a+20>>2]=b;b=J[84311];J[a+8>>2]=J[84310]; +J[a+12>>2]=b;b=J[84309];J[a>>2]=J[84308];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2771976;if((c|0)==1)break i;J[692994]=a;J[692995]=8;J[692996]=-2147483636;b=J[84341];J[a+24>>2]=J[84340];J[a+28>>2]=b;b=J[84339];J[a+16>>2]=J[84338];J[a+20>>2]=b;b=J[84337];J[a+8>>2]=J[84336];J[a+12>>2]=b;b=J[84335];J[a>>2]=J[84334];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2771988;if((c|0)==1)break i;J[692997]=a;J[692998]=5;J[692999]=-2147483640;J[a+ +16>>2]=J[84359];b=J[84358];J[a+8>>2]=J[84357];J[a+12>>2]=b;b=J[84356];J[a>>2]=J[84355];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772E3;if((c|0)==1)break i;J[693E3]=a;J[693001]=5;J[693002]=-2147483640;J[a+16>>2]=J[84377];b=J[84376];J[a+8>>2]=J[84375];J[a+12>>2]=b;b=J[84374];J[a>>2]=J[84373];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772012;if((c|0)==1)break i;J[693003]=a;J[693004]=5;J[693005]=-2147483640;J[a+16>>2]=J[84395];b=J[84394]; +J[a+8>>2]=J[84393];J[a+12>>2]=b;b=J[84392];J[a>>2]=J[84391];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772024;if((c|0)==1)break i;J[693006]=a;J[693007]=5;J[693008]=-2147483640;J[a+16>>2]=J[84413];b=J[84412];J[a+8>>2]=J[84411];J[a+12>>2]=b;b=J[84410];J[a>>2]=J[84409];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772036;if((c|0)==1)break i;J[693009]=a;J[693010]=5;J[693011]=-2147483640;J[a+16>>2]=J[84431];b=J[84430];J[a+8>>2]=J[84429];J[a+ +12>>2]=b;b=J[84428];J[a>>2]=J[84427];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772048;if((c|0)==1)break i;J[693012]=a;J[693013]=4;J[693014]=-2147483640;b=J[84446];J[a+8>>2]=J[84445];J[a+12>>2]=b;b=J[84444];J[a>>2]=J[84443];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772060;if((c|0)==1)break i;J[693015]=a;J[693016]=5;J[693017]=-2147483640;J[a+16>>2]=J[84464];b=J[84463];J[a+8>>2]=J[84462];J[a+12>>2]=b;b=J[84461];J[a>>2]=J[84460];J[a+ +4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772072;if((c|0)==1)break i;J[693018]=a;J[693019]=5;J[693020]=-2147483640;J[a+16>>2]=J[84482];b=J[84481];J[a+8>>2]=J[84480];J[a+12>>2]=b;b=J[84479];J[a>>2]=J[84478];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772084;if((c|0)==1)break i;J[693021]=a;J[693022]=5;J[693023]=-2147483640;J[a+16>>2]=J[84500];b=J[84499];J[a+8>>2]=J[84498];J[a+12>>2]=b;b=J[84497];J[a>>2]=J[84496];J[a+4>>2]=b;J[a+20>>2]=0; +J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772096;if((c|0)==1)break i;J[693024]=a;J[693025]=5;J[693026]=-2147483640;J[a+16>>2]=J[84518];b=J[84517];J[a+8>>2]=J[84516];J[a+12>>2]=b;b=J[84515];J[a>>2]=J[84514];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772108;if((c|0)==1)break i;J[693027]=a;J[693028]=5;J[693029]=-2147483640;J[a+16>>2]=J[84536];b=J[84535];J[a+8>>2]=J[84534];J[a+12>>2]=b;b=J[84533];J[a>>2]=J[84532];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)| +0;c=J[699344];J[699344]=0;b=2772120;if((c|0)==1)break i;J[693030]=a;J[693031]=5;J[693032]=-2147483640;J[a+16>>2]=J[84554];b=J[84553];J[a+8>>2]=J[84552];J[a+12>>2]=b;b=J[84551];J[a>>2]=J[84550];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772132;if((c|0)==1)break i;J[693033]=a;J[693034]=5;J[693035]=-2147483640;J[a+16>>2]=J[84572];b=J[84571];J[a+8>>2]=J[84570];J[a+12>>2]=b;b=J[84569];J[a>>2]=J[84568];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]= +0;b=2772144;if((c|0)==1)break i;J[693036]=a;J[693037]=7;J[693038]=-2147483640;J[a+24>>2]=J[84596];b=J[84595];J[a+16>>2]=J[84594];J[a+20>>2]=b;b=J[84593];J[a+8>>2]=J[84592];J[a+12>>2]=b;b=J[84591];J[a>>2]=J[84590];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772156;if((c|0)==1)break i;J[693039]=a;J[693040]=7;J[693041]=-2147483640;J[a+24>>2]=J[84620];b=J[84619];J[a+16>>2]=J[84618];J[a+20>>2]=b;b=J[84617];J[a+8>>2]=J[84616];J[a+12>>2]=b;b=J[84615];J[a>>2]=J[84614];J[a+ +4>>2]=b;J[a+28>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2772168;if((c|0)==1)break i;J[693042]=a;J[693043]=10;J[693044]=-2147483636;b=J[84653];J[a+32>>2]=J[84652];J[a+36>>2]=b;b=J[84651];J[a+24>>2]=J[84650];J[a+28>>2]=b;b=J[84649];J[a+16>>2]=J[84648];J[a+20>>2]=b;b=J[84647];J[a+8>>2]=J[84646];J[a+12>>2]=b;b=J[84645];J[a>>2]=J[84644];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772180;if((c|0)==1)break i;J[693045]=a;J[693046]=6;J[693047]=-2147483640;b=J[84674]; +J[a+16>>2]=J[84673];J[a+20>>2]=b;b=J[84672];J[a+8>>2]=J[84671];J[a+12>>2]=b;b=J[84670];J[a>>2]=J[84669];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2772192;if((c|0)==1)break i;J[693048]=a;J[693049]=9;J[693050]=-2147483636;J[a+32>>2]=J[84704];b=J[84703];J[a+24>>2]=J[84702];J[a+28>>2]=b;b=J[84701];J[a+16>>2]=J[84700];J[a+20>>2]=b;b=J[84699];J[a+8>>2]=J[84698];J[a+12>>2]=b;b=J[84697];J[a>>2]=J[84696];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]= +0;b=2772204;if((c|0)==1)break i;J[693051]=a;J[693052]=6;J[693053]=-2147483640;b=J[84725];J[a+16>>2]=J[84724];J[a+20>>2]=b;b=J[84723];J[a+8>>2]=J[84722];J[a+12>>2]=b;b=J[84721];J[a>>2]=J[84720];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772216;if((c|0)==1)break i;J[693054]=a;J[693055]=7;J[693056]=-2147483640;J[a+24>>2]=J[84749];b=J[84748];J[a+16>>2]=J[84747];J[a+20>>2]=b;b=J[84746];J[a+8>>2]=J[84745];J[a+12>>2]=b;b=J[84744];J[a>>2]=J[84743];J[a+4>>2]=b;J[a+28>>2]=0; +J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772228;if((c|0)==1)break i;J[693057]=a;J[693058]=6;J[693059]=-2147483640;b=J[84770];J[a+16>>2]=J[84769];J[a+20>>2]=b;b=J[84768];J[a+8>>2]=J[84767];J[a+12>>2]=b;b=J[84766];J[a>>2]=J[84765];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772240;if((c|0)==1)break i;J[693060]=a;J[693061]=4;J[693062]=-2147483640;b=J[84785];J[a+8>>2]=J[84784];J[a+12>>2]=b;b=J[84783];J[a>>2]=J[84782];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4, +32)|0;c=J[699344];J[699344]=0;b=2772252;if((c|0)==1)break i;J[693063]=a;J[693064]=4;J[693065]=-2147483640;b=J[84800];J[a+8>>2]=J[84799];J[a+12>>2]=b;b=J[84798];J[a>>2]=J[84797];J[a+4>>2]=b;J[a+16>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2772264;if((c|0)==1)break i;J[693066]=a;J[693067]=8;J[693068]=-2147483636;b=J[84827];J[a+24>>2]=J[84826];J[a+28>>2]=b;b=J[84825];J[a+16>>2]=J[84824];J[a+20>>2]=b;b=J[84823];J[a+8>>2]=J[84822];J[a+12>>2]=b;b=J[84821];J[a>>2]=J[84820];J[a+4>>2]=b;J[a+ +32>>2]=0;J[699344]=0;a=_(4,48)|0;c=J[699344];J[699344]=0;b=2772276;if((c|0)==1)break i;J[693069]=a;J[693070]=8;J[693071]=-2147483636;b=J[84854];J[a+24>>2]=J[84853];J[a+28>>2]=b;b=J[84852];J[a+16>>2]=J[84851];J[a+20>>2]=b;b=J[84850];J[a+8>>2]=J[84849];J[a+12>>2]=b;b=J[84848];J[a>>2]=J[84847];J[a+4>>2]=b;J[a+32>>2]=0;J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;b=2772288;if((c|0)==1)break i;J[693072]=a;J[693073]=5;J[693074]=-2147483640;J[a+16>>2]=J[84872];b=J[84871];J[a+8>>2]=J[84870];J[a+12>>2]= +b;b=J[84869];J[a>>2]=J[84868];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break h;b=2772300}c=Z()|0;while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((a|0)!=2771664)continue;break}break c}J[693075]=a;J[693076]=6;J[693077]=-2147483640;b=J[84893];J[a+16>>2]=J[84892];J[a+20>>2]=b;b=J[84891];J[a+8>>2]=J[84890];J[a+12>>2]=b;b=J[84889];J[a>>2]=J[84888];J[a+4>>2]=b;J[a+24>>2]=0;J[693082]=0;J[693083]=-1057461760;J[693080]=0;J[693081]=-1057461760;J[693084]=0;J[693085]= +0;J[693086]=0;a=vc(8);J[693084]=a;b=a+8|0;J[693086]=b;J[a>>2]=1167078172;J[a+4>>2]=1071806887;J[693087]=0;J[693088]=0;J[693085]=b;J[693089]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;j:{k:{if((b|0)==1){c=Z()|0;b=2772348;break k}J[693087]=a;b=a+16|0;J[693089]=b;J[a+8>>2]=-197168568;J[a+12>>2]=1072220542;J[a>>2]=0;J[a+4>>2]=0;J[693090]=0;J[693091]=0;J[693088]=b;J[693092]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772360;break k}J[693090]=a;b=a+16|0;J[693092]=b; +J[a+8>>2]=-1124714107;J[a+12>>2]=1072402029;J[a>>2]=-639812100;J[a+4>>2]=1070973503;J[693093]=0;J[693094]=0;J[693091]=b;J[693095]=0;J[699344]=0;a=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772372;break k}J[693093]=a;b=a+24|0;J[693095]=b;c=J[87455];J[a+16>>2]=J[87454];J[a+20>>2]=c;c=J[87453];J[a+8>>2]=J[87452];J[a+12>>2]=c;c=J[87451];J[a>>2]=J[87450];J[a+4>>2]=c;J[693096]=0;J[693097]=0;J[693094]=b;J[693098]=0;J[699344]=0;a=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772384; +break k}J[693096]=a;b=a+24|0;J[693098]=b;c=J[87461];J[a+16>>2]=J[87460];J[a+20>>2]=c;c=J[87459];J[a+8>>2]=J[87458];J[a+12>>2]=c;c=J[87457];J[a>>2]=J[87456];J[a+4>>2]=c;J[693099]=0;J[693100]=0;J[693097]=b;J[693101]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772396;break k}J[693099]=a;b=a+32|0;J[693101]=b;c=J[87469];J[a+24>>2]=J[87468];J[a+28>>2]=c;c=J[87467];J[a+16>>2]=J[87466];J[a+20>>2]=c;c=J[87465];J[a+8>>2]=J[87464];J[a+12>>2]=c;c=J[87463];J[a>>2]=J[87462];J[a+4>> +2]=c;J[693102]=0;J[693103]=0;J[693100]=b;J[693104]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772408;break k}J[693102]=a;b=a+32|0;J[693104]=b;c=J[87477];J[a+24>>2]=J[87476];J[a+28>>2]=c;c=J[87475];J[a+16>>2]=J[87474];J[a+20>>2]=c;c=J[87473];J[a+8>>2]=J[87472];J[a+12>>2]=c;c=J[87471];J[a>>2]=J[87470];J[a+4>>2]=c;J[693105]=0;J[693106]=0;J[693103]=b;J[693107]=0;J[699344]=0;a=_(4,40)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772420;break k}J[693105]=a;b=a+40|0;J[693107]= +b;c=J[87487];J[a+32>>2]=J[87486];J[a+36>>2]=c;c=J[87485];J[a+24>>2]=J[87484];J[a+28>>2]=c;c=J[87483];J[a+16>>2]=J[87482];J[a+20>>2]=c;c=J[87481];J[a+8>>2]=J[87480];J[a+12>>2]=c;c=J[87479];J[a>>2]=J[87478];J[a+4>>2]=c;J[693108]=0;J[693109]=0;J[693106]=b;J[693110]=0;J[699344]=0;a=_(4,40)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772432;break k}J[693108]=a;b=a+40|0;J[693110]=b;c=J[87497];J[a+32>>2]=J[87496];J[a+36>>2]=c;c=J[87495];J[a+24>>2]=J[87494];J[a+28>>2]=c;c=J[87493];J[a+16>>2]=J[87492]; +J[a+20>>2]=c;c=J[87491];J[a+8>>2]=J[87490];J[a+12>>2]=c;c=J[87489];J[a>>2]=J[87488];J[a+4>>2]=c;J[693111]=0;J[693112]=0;J[693109]=b;J[693113]=0;J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772444;break k}J[693111]=a;b=a+48|0;J[693113]=b;c=J[87509];J[a+40>>2]=J[87508];J[a+44>>2]=c;c=J[87507];J[a+32>>2]=J[87506];J[a+36>>2]=c;c=J[87505];J[a+24>>2]=J[87504];J[a+28>>2]=c;c=J[87503];J[a+16>>2]=J[87502];J[a+20>>2]=c;c=J[87501];J[a+8>>2]=J[87500];J[a+12>>2]=c;c=J[87499];J[a>>2]= +J[87498];J[a+4>>2]=c;J[693114]=0;J[693115]=0;J[693112]=b;J[693116]=0;J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772456;break k}J[693114]=a;b=a+48|0;J[693116]=b;c=J[87521];J[a+40>>2]=J[87520];J[a+44>>2]=c;c=J[87519];J[a+32>>2]=J[87518];J[a+36>>2]=c;c=J[87517];J[a+24>>2]=J[87516];J[a+28>>2]=c;c=J[87515];J[a+16>>2]=J[87514];J[a+20>>2]=c;c=J[87513];J[a+8>>2]=J[87512];J[a+12>>2]=c;c=J[87511];J[a>>2]=J[87510];J[a+4>>2]=c;J[693117]=0;J[693118]=0;J[693115]=b;J[693119]=0;J[699344]= +0;a=_(4,56)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772468;break k}J[693117]=a;b=a+56|0;J[693119]=b;c=J[87535];J[a+48>>2]=J[87534];J[a+52>>2]=c;c=J[87533];J[a+40>>2]=J[87532];J[a+44>>2]=c;c=J[87531];J[a+32>>2]=J[87530];J[a+36>>2]=c;c=J[87529];J[a+24>>2]=J[87528];J[a+28>>2]=c;c=J[87527];J[a+16>>2]=J[87526];J[a+20>>2]=c;c=J[87525];J[a+8>>2]=J[87524];J[a+12>>2]=c;c=J[87523];J[a>>2]=J[87522];J[a+4>>2]=c;J[693120]=0;J[693121]=0;J[693118]=b;J[693122]=0;J[699344]=0;a=_(4,56)|0;b=J[699344];J[699344]= +0;if((b|0)==1){c=Z()|0;b=2772480;break k}J[693120]=a;b=a+56|0;J[693122]=b;c=J[87549];J[a+48>>2]=J[87548];J[a+52>>2]=c;c=J[87547];J[a+40>>2]=J[87546];J[a+44>>2]=c;c=J[87545];J[a+32>>2]=J[87544];J[a+36>>2]=c;c=J[87543];J[a+24>>2]=J[87542];J[a+28>>2]=c;c=J[87541];J[a+16>>2]=J[87540];J[a+20>>2]=c;c=J[87539];J[a+8>>2]=J[87538];J[a+12>>2]=c;c=J[87537];J[a>>2]=J[87536];J[a+4>>2]=c;J[693123]=0;J[693124]=0;J[693121]=b;J[693125]=0;J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772492; +break k}J[693123]=a;b=a- -64|0;J[693125]=b;c=J[87565];J[a+56>>2]=J[87564];J[a+60>>2]=c;c=J[87563];J[a+48>>2]=J[87562];J[a+52>>2]=c;c=J[87561];J[a+40>>2]=J[87560];J[a+44>>2]=c;c=J[87559];J[a+32>>2]=J[87558];J[a+36>>2]=c;c=J[87557];J[a+24>>2]=J[87556];J[a+28>>2]=c;c=J[87555];J[a+16>>2]=J[87554];J[a+20>>2]=c;c=J[87553];J[a+8>>2]=J[87552];J[a+12>>2]=c;c=J[87551];J[a>>2]=J[87550];J[a+4>>2]=c;J[693126]=0;J[693127]=0;J[693124]=b;J[693128]=0;J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break j; +c=Z()|0;b=2772504}while(1){a=b-12|0;d=J[a>>2];if(d){J[b-8>>2]=d;uc(d)}b=a;if((a|0)!=2772336)continue;break}break c}J[693126]=a;b=a- -64|0;J[693128]=b;c=J[87581];J[a+56>>2]=J[87580];J[a+60>>2]=c;c=J[87579];J[a+48>>2]=J[87578];J[a+52>>2]=c;c=J[87577];J[a+40>>2]=J[87576];J[a+44>>2]=c;c=J[87575];J[a+32>>2]=J[87574];J[a+36>>2]=c;c=J[87573];J[a+24>>2]=J[87572];J[a+28>>2]=c;c=J[87571];J[a+16>>2]=J[87570];J[a+20>>2]=c;c=J[87569];J[a+8>>2]=J[87568];J[a+12>>2]=c;c=J[87567];J[a>>2]=J[87566];J[a+4>>2]=c;J[693129]= +0;J[693130]=0;J[693127]=b;J[693131]=0;J[693132]=0;J[693133]=0;J[693134]=0;a=vc(8);J[693132]=a;b=a+8|0;J[693134]=b;J[a>>2]=0;J[a+4>>2]=1072693248;J[693135]=0;J[693136]=0;J[693133]=b;J[693137]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;l:{m:{if((b|0)==1){c=Z()|0;b=2772540;break m}J[693135]=a;b=a+16|0;J[693137]=b;J[a+8>>2]=1908874354;J[a+12>>2]=1071761180;J[a>>2]=477218588;J[a+4>>2]=1072460231;J[693138]=0;J[693139]=0;J[693136]=b;J[693140]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b| +0)==1){c=Z()|0;b=2772552;break m}J[693138]=a;b=a+16|0;J[693140]=b;J[a+8>>2]=-135809429;J[a+12>>2]=1071006528;J[a>>2]=-2079578934;J[a+4>>2]=1071963743;J[693141]=0;J[693142]=0;J[693139]=b;J[693143]=0;J[699344]=0;a=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772564;break m}J[693141]=a;b=a+24|0;J[693143]=b;c=J[87587];J[a+16>>2]=J[87586];J[a+20>>2]=c;c=J[87585];J[a+8>>2]=J[87584];J[a+12>>2]=c;c=J[87583];J[a>>2]=J[87582];J[a+4>>2]=c;J[693144]=0;J[693145]=0;J[693142]=b;J[693146]=0;J[699344]= +0;a=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772576;break m}J[693144]=a;b=a+24|0;J[693146]=b;c=J[87593];J[a+16>>2]=J[87592];J[a+20>>2]=c;c=J[87591];J[a+8>>2]=J[87590];J[a+12>>2]=c;c=J[87589];J[a>>2]=J[87588];J[a+4>>2]=c;J[693147]=0;J[693148]=0;J[693145]=b;J[693149]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772588;break m}J[693147]=a;b=a+32|0;J[693149]=b;c=J[87601];J[a+24>>2]=J[87600];J[a+28>>2]=c;c=J[87599];J[a+16>>2]=J[87598];J[a+20>>2]=c;c=J[87597]; +J[a+8>>2]=J[87596];J[a+12>>2]=c;c=J[87595];J[a>>2]=J[87594];J[a+4>>2]=c;J[693150]=0;J[693151]=0;J[693148]=b;J[693152]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772600;break m}J[693150]=a;b=a+32|0;J[693152]=b;c=J[87609];J[a+24>>2]=J[87608];J[a+28>>2]=c;c=J[87607];J[a+16>>2]=J[87606];J[a+20>>2]=c;c=J[87605];J[a+8>>2]=J[87604];J[a+12>>2]=c;c=J[87603];J[a>>2]=J[87602];J[a+4>>2]=c;J[693153]=0;J[693154]=0;J[693151]=b;J[693155]=0;J[699344]=0;a=_(4,40)|0;b=J[699344];J[699344]= +0;if((b|0)==1){c=Z()|0;b=2772612;break m}J[693153]=a;b=a+40|0;J[693155]=b;c=J[87619];J[a+32>>2]=J[87618];J[a+36>>2]=c;c=J[87617];J[a+24>>2]=J[87616];J[a+28>>2]=c;c=J[87615];J[a+16>>2]=J[87614];J[a+20>>2]=c;c=J[87613];J[a+8>>2]=J[87612];J[a+12>>2]=c;c=J[87611];J[a>>2]=J[87610];J[a+4>>2]=c;J[693156]=0;J[693157]=0;J[693154]=b;J[693158]=0;J[699344]=0;a=_(4,40)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772624;break m}J[693156]=a;b=a+40|0;J[693158]=b;c=J[87629];J[a+32>>2]=J[87628];J[a+36>>2]=c; +c=J[87627];J[a+24>>2]=J[87626];J[a+28>>2]=c;c=J[87625];J[a+16>>2]=J[87624];J[a+20>>2]=c;c=J[87623];J[a+8>>2]=J[87622];J[a+12>>2]=c;c=J[87621];J[a>>2]=J[87620];J[a+4>>2]=c;J[693159]=0;J[693160]=0;J[693157]=b;J[693161]=0;J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772636;break m}J[693159]=a;b=a+48|0;J[693161]=b;c=J[87641];J[a+40>>2]=J[87640];J[a+44>>2]=c;c=J[87639];J[a+32>>2]=J[87638];J[a+36>>2]=c;c=J[87637];J[a+24>>2]=J[87636];J[a+28>>2]=c;c=J[87635];J[a+16>>2]=J[87634]; +J[a+20>>2]=c;c=J[87633];J[a+8>>2]=J[87632];J[a+12>>2]=c;c=J[87631];J[a>>2]=J[87630];J[a+4>>2]=c;J[693162]=0;J[693163]=0;J[693160]=b;J[693164]=0;J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772648;break m}J[693162]=a;b=a+48|0;J[693164]=b;c=J[87653];J[a+40>>2]=J[87652];J[a+44>>2]=c;c=J[87651];J[a+32>>2]=J[87650];J[a+36>>2]=c;c=J[87649];J[a+24>>2]=J[87648];J[a+28>>2]=c;c=J[87647];J[a+16>>2]=J[87646];J[a+20>>2]=c;c=J[87645];J[a+8>>2]=J[87644];J[a+12>>2]=c;c=J[87643];J[a>>2]= +J[87642];J[a+4>>2]=c;J[693165]=0;J[693166]=0;J[693163]=b;J[693167]=0;J[699344]=0;a=_(4,56)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772660;break m}J[693165]=a;b=a+56|0;J[693167]=b;c=J[87667];J[a+48>>2]=J[87666];J[a+52>>2]=c;c=J[87665];J[a+40>>2]=J[87664];J[a+44>>2]=c;c=J[87663];J[a+32>>2]=J[87662];J[a+36>>2]=c;c=J[87661];J[a+24>>2]=J[87660];J[a+28>>2]=c;c=J[87659];J[a+16>>2]=J[87658];J[a+20>>2]=c;c=J[87657];J[a+8>>2]=J[87656];J[a+12>>2]=c;c=J[87655];J[a>>2]=J[87654];J[a+4>>2]=c;J[693168]= +0;J[693169]=0;J[693166]=b;J[693170]=0;J[699344]=0;a=_(4,56)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772672;break m}J[693168]=a;b=a+56|0;J[693170]=b;c=J[87681];J[a+48>>2]=J[87680];J[a+52>>2]=c;c=J[87679];J[a+40>>2]=J[87678];J[a+44>>2]=c;c=J[87677];J[a+32>>2]=J[87676];J[a+36>>2]=c;c=J[87675];J[a+24>>2]=J[87674];J[a+28>>2]=c;c=J[87673];J[a+16>>2]=J[87672];J[a+20>>2]=c;c=J[87671];J[a+8>>2]=J[87670];J[a+12>>2]=c;c=J[87669];J[a>>2]=J[87668];J[a+4>>2]=c;J[693171]=0;J[693172]=0;J[693169]=b;J[693173]= +0;J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;b=2772684;break m}J[693171]=a;b=a- -64|0;J[693173]=b;c=J[87697];J[a+56>>2]=J[87696];J[a+60>>2]=c;c=J[87695];J[a+48>>2]=J[87694];J[a+52>>2]=c;c=J[87693];J[a+40>>2]=J[87692];J[a+44>>2]=c;c=J[87691];J[a+32>>2]=J[87690];J[a+36>>2]=c;c=J[87689];J[a+24>>2]=J[87688];J[a+28>>2]=c;c=J[87687];J[a+16>>2]=J[87686];J[a+20>>2]=c;c=J[87685];J[a+8>>2]=J[87684];J[a+12>>2]=c;c=J[87683];J[a>>2]=J[87682];J[a+4>>2]=c;J[693174]=0;J[693175]=0;J[693172]= +b;J[693176]=0;J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break l;c=Z()|0;b=2772696}while(1){a=b-12|0;d=J[a>>2];if(d){J[b-8>>2]=d;uc(d)}b=a;if((a|0)!=2772528)continue;break}break c}J[693174]=a;b=a- -64|0;J[693176]=b;c=J[87713];J[a+56>>2]=J[87712];J[a+60>>2]=c;c=J[87711];J[a+48>>2]=J[87710];J[a+52>>2]=c;c=J[87709];J[a+40>>2]=J[87708];J[a+44>>2]=c;c=J[87707];J[a+32>>2]=J[87706];J[a+36>>2]=c;c=J[87705];J[a+24>>2]=J[87704];J[a+28>>2]=c;c=J[87703];J[a+16>>2]=J[87702];J[a+20>>2]=c;c=J[87701]; +J[a+8>>2]=J[87700];J[a+12>>2]=c;c=J[87699];J[a>>2]=J[87698];J[a+4>>2]=c;J[693177]=0;J[693178]=0;J[693175]=b;J[693179]=0;J[693180]=2772724;J[693181]=0;J[693182]=0;J[699344]=0;c=_(4,32)|0;a=J[699344];J[699344]=0;n:{o:{if((a|0)!=1)p:{J[c+8>>2]=2772724;J[c>>2]=0;J[c+4>>2]=0;a=28596;J[c+16>>2]=28596;J[693180]=c;J[693181]=c;H[c+12|0]=1;J[693182]=1;H[c+30|0]=0;H[c+31|0]=10;b=K[22652]|K[22653]<<8|(K[22654]<<16|K[22655]<<24);d=K[22648]|K[22649]<<8|(K[22650]<<16|K[22651]<<24);H[c+20|0]=d;H[c+21|0]=d>>>8;H[c+ +22|0]=d>>>16;H[c+23|0]=d>>>24;H[c+24|0]=b;H[c+25|0]=b>>>8;H[c+26|0]=b>>>16;H[c+27|0]=b>>>24;b=K[22656]|K[22657]<<8;H[c+28|0]=b;H[c+29|0]=b>>>8;q:{r:{while(1){s:{t:{if((a|0)>=721){b=J[c>>2];if(b)break t;a=c;break r}if((a|0)==720){b=c;break q}b=J[c+4>>2];if(!b)break s}a=J[b+16>>2];c=b;continue}break}a=c+4|0}J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[b+16>>2]=720;J[b+8>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[a>>2]=b;c=b;d=J[J[693180]>>2];if(d){J[693180]= +d;c=J[a>>2]}Oc(J[693181],c);J[693182]=J[693182]+1}u:{if(H[b+31|0]<0){J[b+24>>2]=7;a=J[b+20>>2];break u}H[b+31|0]=7;a=b+20|0}H[a+7|0]=0;b=K[28552]|K[28553]<<8|(K[28554]<<16|K[28555]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28549]|K[28550]<<8|(K[28551]<<16|K[28552]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];v:{w:{if(!a){c=2772724;b=2772724;break w}while(1){b=a;c=J[a+16>>2];if((c|0)>=1257){c=a;a=J[a>>2];if(a)continue;break w}if((c|0)==1256)break v; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1256;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,22622,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];x:{y:{if(!a){c=2772724;b=2772724;break y}while(1){b=a;c=J[a+16>>2];if((c|0)>=28595){c=a;a=J[a>>2];if(a)continue; +break y}if((c|0)==28594)break x;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28594;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}z:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break z}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22885]|K[22886]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22881]|K[22882]<<8|(K[22883]<<16| +K[22884]<<24);c=K[22877]|K[22878]<<8|(K[22879]<<16|K[22880]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181];A:{B:{if(!a){c=2772724;b=2772724;break B}while(1){b=a;c=J[a+16>>2];if((c|0)>=28604){c=a;a=J[a>>2];if(a)continue;break B}if((c|0)==28603)break A;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28603;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>> +2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,24400,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];C:{D:{if(!a){c=2772724;b=2772724;break D}while(1){b=a;c=J[a+16>>2];if((c|0)>=776){c=a;a=J[a>>2];if(a)continue;break D}if((c|0)==775)break C;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=775;J[a+8>>2]=b;J[a>> +2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}E:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break E}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22700]|K[22701]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22696]|K[22697]<<8|(K[22698]<<16|K[22699]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];F:{G:{if(!a){c=2772724;b=2772724;break G}while(1){b=a;c=J[a+16>>2];if((c|0)>=1258){c=a;a=J[a>> +2];if(a)continue;break G}if((c|0)==1257)break F;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1257;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,22511,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];H:{I:{if(!a){c=2772724;b=2772724;break I}while(1){b=a;c=J[a+16>> +2];if((c|0)>=28605){c=a;a=J[a>>2];if(a)continue;break I}if((c|0)==28604)break H;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28604;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,22837,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];J:{K:{if(!a){c=2772724;b=2772724; +break K}while(1){b=a;c=J[a+16>>2];if((c|0)>=28596){c=a;a=J[a>>2];if(a)continue;break K}if((c|0)==28595)break J;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28595;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}L:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break L}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22750]| +K[22751]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22746]|K[22747]<<8|(K[22748]<<16|K[22749]<<24);c=K[22742]|K[22743]<<8|(K[22744]<<16|K[22745]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181];M:{N:{if(!a){c=2772724;b=2772724;break N}while(1){b=a;c=J[a+16>>2];if((c|0)>=20867){c=a;a=J[a>>2];if(a)continue;break N}if((c|0)==20866)break M;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break p;J[a+16>>2]=20866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}O:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break O}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20860]|K[20861]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20856]|K[20857]<<8|(K[20858]<<16|K[20859]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];P:{Q:{if(!a){c=2772724;b=2772724;break Q}while(1){b= +a;c=J[a+16>>2];if((c|0)>=21867){c=a;a=J[a>>2];if(a)continue;break Q}if((c|0)==21866)break P;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=21866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}R:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break R}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20458]|K[20459]<<8;H[a+4| +0]=b;H[a+5|0]=b>>>8;b=K[20454]|K[20455]<<8|(K[20456]<<16|K[20457]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];S:{T:{if(!a){c=2772724;b=2772724;break T}while(1){b=a;c=J[a+16>>2];if((c|0)>=10008){c=a;a=J[a>>2];if(a)continue;break T}if((c|0)==10007)break S;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=10007;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>> +2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,17841,14)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];U:{V:{if(!a){c=2772724;b=2772724;break V}while(1){b=a;c=J[a+16>>2];if((c|0)>=856){c=a;a=J[a>>2];if(a)continue;break V}if((c|0)==855)break U;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=855;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>> +2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}W:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break W}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22714]|K[22715]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22710]|K[22711]<<8|(K[22712]<<16|K[22713]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];X:{Y:{if(!a){c=2772724;b=2772724;break Y}while(1){b=a;c=J[a+16>>2];if((c|0)>=867){c=a;a=J[a>>2];if(a)continue;break Y}if((c|0)==866)break X;a=J[b+4>>2];if(a)continue; +break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Z:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Z}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22620];b=K[22616]|K[22617]<<8|(K[22618]<<16|K[22619]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];_:{$:{if(!a){c= +2772724;b=2772724;break $}while(1){b=a;c=J[a+16>>2];if((c|0)>=1252){c=a;a=J[a>>2];if(a)continue;break $}if((c|0)==1251)break _;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1251;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,28297,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p; +a=J[693181];aa:{ba:{if(!a){c=2772724;b=2772724;break ba}while(1){b=a;c=J[a+16>>2];if((c|0)>=853){c=a;a=J[a>>2];if(a)continue;break ba}if((c|0)==852)break aa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=852;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}ca:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ca}H[a+ +31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24725]|K[24726]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24721]|K[24722]<<8|(K[24723]<<16|K[24724]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];da:{ea:{if(!a){c=2772724;b=2772724;break ea}while(1){b=a;c=J[a+16>>2];if((c|0)>=1251){c=a;a=J[a>>2];if(a)continue;break ea}if((c|0)==1250)break da;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1250;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0; +J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,28528,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];fa:{ga:{if(!a){c=2772724;b=2772724;break ga}while(1){b=a;c=J[a+16>>2];if((c|0)>=937){c=a;a=J[a>>2];if(a)continue;break ga}if((c|0)==936)break fa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=936;J[a+ +8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}ha:{if(H[a+31|0]<0){J[a+24>>2]=3;a=J[a+20>>2];break ha}H[a+31|0]=3;a=a+20|0}H[a+3|0]=0;H[a+2|0]=K[21185];b=K[21183]|K[21184]<<8;H[a|0]=b;H[a+1|0]=b>>>8;a=J[693181];ia:{ja:{if(!a){c=2772724;b=2772724;break ja}while(1){b=a;c=J[a+16>>2];if((c|0)>=28593){c=a;a=J[a>>2];if(a)continue;break ja}if((c|0)==28592)break ia;a=J[b+4>>2];if(a)continue; +break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28592;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}ka:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ka}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24794]|K[24795]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24790]|K[24791]<<8|(K[24792]<<16|K[24793]<<24);c=K[24786]|K[24787]<<8|(K[24788]<<16|K[24789]<< +24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181];la:{ma:{if(!a){c=2772724;b=2772724;break ma}while(1){b=a;c=J[a+16>>2];if((c|0)>=28598){c=a;a=J[a>>2];if(a)continue;break ma}if((c|0)==28597)break la;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28597;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>> +2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}na:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break na}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22560]|K[22561]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22556]|K[22557]<<8|(K[22558]<<16|K[22559]<<24);c=K[22552]|K[22553]<<8|(K[22554]<<16|K[22555]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181];oa:{pa:{if(!a){c=2772724;b=2772724;break pa}while(1){b=a;c=J[a+16>> +2];if((c|0)>=738){c=a;a=J[a>>2];if(a)continue;break pa}if((c|0)==737)break oa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=737;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}qa:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break qa}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22528]|K[22529]<<8;H[a+4|0]=b;H[a+5|0]= +b>>>8;b=K[22524]|K[22525]<<8|(K[22526]<<16|K[22527]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];ra:{sa:{if(!a){c=2772724;b=2772724;break sa}while(1){b=a;c=J[a+16>>2];if((c|0)>=870){c=a;a=J[a>>2];if(a)continue;break sa}if((c|0)==869)break ra;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=869;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]= +d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}ta:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ta}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22320]|K[22321]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22316]|K[22317]<<8|(K[22318]<<16|K[22319]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];ua:{va:{if(!a){c=2772724;b=2772724;break va}while(1){b=a;c=J[a+16>>2];if((c|0)>=1254){c=a;a=J[a>>2];if(a)continue;break va}if((c|0)==1253)break ua;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]= +0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1253;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,24377,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];wa:{xa:{if(!a){c=2772724;b=2772724;break xa}while(1){b=a;c=J[a+16>>2];if((c|0)>=28599){c=a;a=J[a>>2];if(a)continue;break xa}if((c|0)==28598)break wa;a=J[b+4>>2]; +if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28598;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}ya:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ya}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22420]|K[22421]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22416]|K[22417]<<8|(K[22418]<<16|K[22419]<<24);c=K[22412]|K[22413]<<8|(K[22414]<< +16|K[22415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181];za:{Aa:{if(!a){c=2772724;b=2772724;break Aa}while(1){b=a;c=J[a+16>>2];if((c|0)>=863){c=a;a=J[a>>2];if(a)continue;break Aa}if((c|0)==862)break za;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=862;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>> +2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Ba:{if(H[a+31|0]<0){J[a+24>>2]=7;a=J[a+20>>2];break Ba}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[24716]|K[24717]<<8|(K[24718]<<16|K[24719]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[24713]|K[24714]<<8|(K[24715]<<16|K[24716]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];Ca:{Da:{if(!a){c=2772724;b=2772724;break Da}while(1){b=a;c=J[a+16>>2];if((c|0)>=1256){c=a;a=J[a>>2];if(a)continue;break Da}if((c| +0)==1255)break Ca;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1255;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,22717,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];Ea:{Fa:{if(!a){c=2772724;b=2772724;break Fa}while(1){b=a;c=J[a+16>>2];if((c|0)>=933){c=a;a=J[a>> +2];if(a)continue;break Fa}if((c|0)==932)break Ea;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Ga:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break Ga}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[20787];b=K[20783]|K[20784]<<8|(K[20785]<<16|K[20786]<<24);c= +K[20779]|K[20780]<<8|(K[20781]<<16|K[20782]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181];Ha:{Ia:{if(!a){c=2772724;b=2772724;break Ia}while(1){b=a;c=J[a+16>>2];if((c|0)>=951){c=a;a=J[a>>2];if(a)continue;break Ia}if((c|0)==950)break Ha;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=950;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]= +0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Ja:{if(H[a+31|0]<0){J[a+24>>2]=4;a=J[a+20>>2];break Ja}H[a+31|0]=4;a=a+20|0}H[a+4|0]=0;H[a|0]=66;H[a+1|0]=105;H[a+2|0]=103;H[a+3|0]=53;a=J[693181];Ka:{La:{if(!a){c=2772724;b=2772724;break La}while(1){b=a;c=J[a+16>>2];if((c|0)>=950){c=a;a=J[a>>2];if(a)continue;break La}if((c|0)==949)break Ka;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)== +1)break p;J[a+16>>2]=949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,22489,14)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];Ma:{Na:{if(!a){c=2772724;b=2772724;break Na}while(1){b=a;c=J[a+16>>2];if((c|0)>=51950){c=a;a=J[a>>2];if(a)continue;break Na}if((c|0)==51949)break Ma;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)| +0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=51949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Oa:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Oa}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20846]|K[20847]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20842]|K[20843]<<8|(K[20844]<<16|K[20845]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];Pa:{Qa:{if(!a){c= +2772724;b=2772724;break Qa}while(1){b=a;c=J[a+16>>2];if((c|0)>=862){c=a;a=J[a>>2];if(a)continue;break Qa}if((c|0)==861)break Pa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=861;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Ra:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ra}H[a+31|0]=6;a=a+20|0}H[a+ +6|0]=0;b=K[28294]|K[28295]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28290]|K[28291]<<8|(K[28292]<<16|K[28293]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];Sa:{Ta:{if(!a){c=2772724;b=2772724;break Ta}while(1){b=a;c=J[a+16>>2];if((c|0)>=866){c=a;a=J[a>>2];if(a)continue;break Ta}if((c|0)==865)break Sa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=865;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]= +0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Ua:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ua}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22707]|K[22708]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22703]|K[22704]<<8|(K[22705]<<16|K[22706]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];Va:{Wa:{if(!a){c=2772724;b=2772724;break Wa}while(1){b=a;c=J[a+16>>2];if((c|0)>=875){c=a;a=J[a>>2];if(a)continue;break Wa}if((c|0)==874)break Va; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=874;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,22798,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];Xa:{Ya:{if(!a){c=2772724;b=2772724;break Ya}while(1){b=a;c=J[a+16>>2];if((c|0)>=28594){c=a;a=J[a>>2];if(a)continue; +break Ya}if((c|0)==28593)break Xa;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28593;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Za:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Za}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24420]|K[24421]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24416]|K[24417]<<8|(K[24418]<< +16|K[24419]<<24);c=K[24412]|K[24413]<<8|(K[24414]<<16|K[24415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181];_a:{$a:{if(!a){c=2772724;b=2772724;break $a}while(1){b=a;c=J[a+16>>2];if((c|0)>=28600){c=a;a=J[a>>2];if(a)continue;break $a}if((c|0)==28599)break _a;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28599;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0; +J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}ab:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ab}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22331]|K[22332]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22327]|K[22328]<<8|(K[22329]<<16|K[22330]<<24);c=K[22323]|K[22324]<<8|(K[22325]<<16|K[22326]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181]; +bb:{cb:{if(!a){c=2772724;b=2772724;break cb}while(1){b=a;c=J[a+16>>2];if((c|0)>=858){c=a;a=J[a>>2];if(a)continue;break cb}if((c|0)==857)break bb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=857;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}db:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break db}H[a+31| +0]=6;a=a+20|0}H[a+6|0]=0;b=K[22508]|K[22509]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22504]|K[22505]<<8|(K[22506]<<16|K[22507]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];eb:{fb:{if(!a){c=2772724;b=2772724;break fb}while(1){b=a;c=J[a+16>>2];if((c|0)>=1255){c=a;a=J[a>>2];if(a)continue;break fb}if((c|0)==1254)break eb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1254;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ +20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,22810,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];gb:{hb:{if(!a){c=2772724;b=2772724;break hb}while(1){b=a;c=J[a+16>>2];if((c|0)>=28592){c=a;a=J[a>>2];if(a)continue;break hb}if((c|0)==28591)break gb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28591; +J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}ib:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ib}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[28337]|K[28338]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[28333]|K[28334]<<8|(K[28335]<<16|K[28336]<<24);c=K[28329]|K[28330]<<8|(K[28331]<<16|K[28332]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]= +b>>>16;H[a+7|0]=b>>>24;a=J[693181];jb:{kb:{if(!a){c=2772724;b=2772724;break kb}while(1){b=a;c=J[a+16>>2];if((c|0)>=28606){c=a;a=J[a>>2];if(a)continue;break kb}if((c|0)==28605)break jb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=28605;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+ +20|0,22730,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];lb:{mb:{if(!a){c=2772724;b=2772724;break mb}while(1){b=a;c=J[a+16>>2];if((c|0)>=851){c=a;a=J[a>>2];if(a)continue;break mb}if((c|0)==850)break lb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=850;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+ +1}nb:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break nb}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28525]|K[28526]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28521]|K[28522]<<8|(K[28523]<<16|K[28524]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];ob:{pb:{if(!a){c=2772724;b=2772724;break pb}while(1){b=a;c=J[a+16>>2];if((c|0)>=859){c=a;a=J[a>>2];if(a)continue;break pb}if((c|0)==858)break ob;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p; +J[a+16>>2]=858;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}qb:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break qb}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22353]|K[22354]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22349]|K[22350]<<8|(K[22351]<<16|K[22352]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];rb:{sb:{if(!a){c=2772724;b=2772724;break sb}while(1){b=a;c=J[a+ +16>>2];if((c|0)>=861){c=a;a=J[a>>2];if(a)continue;break sb}if((c|0)==860)break rb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=860;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}tb:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break tb}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28518]|K[28519]<<8;H[a+4|0]=b;H[a+ +5|0]=b>>>8;b=K[28514]|K[28515]<<8|(K[28516]<<16|K[28517]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];ub:{vb:{if(!a){c=2772724;b=2772724;break vb}while(1){b=a;c=J[a+16>>2];if((c|0)>=864){c=a;a=J[a>>2];if(a)continue;break vb}if((c|0)==863)break ub;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=863;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2]; +if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}wb:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break wb}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24374]|K[24375]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24370]|K[24371]<<8|(K[24372]<<16|K[24373]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];xb:{yb:{if(!a){c=2772724;b=2772724;break yb}while(1){b=a;c=J[a+16>>2];if((c|0)>=438){c=a;a=J[a>>2];if(a)continue;break yb}if((c|0)==437)break xb;a=J[b+4>>2];if(a)continue;break}c=b+ +4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=437;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}zb:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break zb}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22535]|K[22536]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22531]|K[22532]<<8|(K[22533]<<16|K[22534]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24; +a=J[693181];Ab:{Bb:{if(!a){c=2772724;b=2772724;break Bb}while(1){b=a;c=J[a+16>>2];if((c|0)>=1253){c=a;a=J[a>>2];if(a)continue;break Bb}if((c|0)==1252)break Ab;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1252;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996,a+20|0,24728,12)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break p;a=J[693181];Cb:{Db:{if(!a){c=2772724;b=2772724;break Db}while(1){b=a;c=J[a+16>>2];if((c|0)>=1259){c=a;a=J[a>>2];if(a)continue;break Db}if((c|0)==1258)break Cb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1258;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}J[699344]=0;ga(2996, +a+20|0,22356,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[693181];Eb:{Fb:{if(!a){c=2772724;b=2772724;break Fb}while(1){b=a;c=J[a+16>>2];if((c|0)>=65002){c=a;a=J[a>>2];if(a)continue;break Fb}if((c|0)==65001)break Eb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=65001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]= +J[693182]+1}Gb:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Gb}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22410];b=K[22406]|K[22407]<<8|(K[22408]<<16|K[22409]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];Hb:{Ib:{if(!a){c=2772724;b=2772724;break Ib}while(1){b=a;c=J[a+16>>2];if((c|0)>=65001){c=a;a=J[a>>2];if(a)continue;break Ib}if((c|0)==65E3)break Hb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]= +65E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Jb:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Jb}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22550];b=K[22546]|K[22547]<<8|(K[22548]<<16|K[22549]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];Kb:{Lb:{if(!a){c=2772724;b=2772724;break Lb}while(1){b=a;c=J[a+16>>2];if((c|0)>=1201){c=a;a=J[a>>2];if(a)continue; +break Lb}if((c|0)==1200)break Kb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1200;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Mb:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Mb}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=76;H[a+ +7|0]=69;a=J[693181];Nb:{Ob:{if(!a){c=2772724;b=2772724;break Ob}while(1){b=a;c=J[a+16>>2];if((c|0)>=1202){c=a;a=J[a>>2];if(a)continue;break Ob}if((c|0)==1201)break Nb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1201;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Pb:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+ +20>>2];break Pb}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=66;H[a+7|0]=69;a=J[693181];Qb:{Rb:{if(!a){c=2772724;b=2772724;break Rb}while(1){b=a;c=J[a+16>>2];if((c|0)>=12001){c=a;a=J[a>>2];if(a)continue;break Rb}if((c|0)==12E3)break Qb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=12E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>> +2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Sb:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Sb}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=76;H[a+7|0]=69;a=J[693181];Tb:{Ub:{if(!a){c=2772724;b=2772724;break Ub}while(1){b=a;c=J[a+16>>2];if((c|0)>=12002){c=a;a=J[a>>2];if(a)continue;break Ub}if((c|0)==12001)break Tb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d= +J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=12001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Vb:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Vb}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=66;H[a+7|0]=69;a=J[693181];Wb:{Xb:{if(!a){c=2772724;b=2772724;break Xb}while(1){b=a;c=J[a+16>>2];if((c|0)>= +10001){c=a;a=J[a>>2];if(a)continue;break Xb}if((c|0)==1E4)break Wb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=1E4;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}Yb:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break Yb}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[11174];b=K[11170]|K[11171]<<8|(K[11172]<<16| +K[11173]<<24);c=K[11166]|K[11167]<<8|(K[11168]<<16|K[11169]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693181];Zb:{_b:{if(!a){c=2772724;b=2772724;break _b}while(1){b=a;c=J[a+16>>2];if((c|0)>=20933){c=a;a=J[a>>2];if(a)continue;break _b}if((c|0)==20932)break Zb;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=20932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ +20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}$b:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break $b}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20929]|K[20930]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20925]|K[20926]<<8|(K[20927]<<16|K[20928]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693181];ac:{bc:{if(!a){c=2772724;b=2772724;break bc}while(1){b=a;c=J[a+16>>2];if((c|0)>=54937){c=a;a=J[a>>2];if(a)continue; +break bc}if((c|0)==54936)break ac;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+16>>2]=54936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693180]>>2];if(d){J[693180]=d;b=J[c>>2]}Oc(J[693181],b);J[693182]=J[693182]+1}if(H[a+31|0]>=0)break o;J[a+24>>2]=7;a=J[a+20>>2];break n}b=Z()|0;Ml(2772720,J[693181]);break b}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[28544]|K[28545]<<8|(K[28546]<<16|K[28547]<< +24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28541]|K[28542]<<8|(K[28543]<<16|K[28544]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;d=fc-112|0;fc=d;J[693186]=0;J[693187]=0;J[693184]=0;J[693185]=0;J[693188]=0;J[693183]=2772736;J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;cc:{dc:{ec:{fc:{gc:{hc:{ic:{jc:{kc:{lc:{mc:{nc:{oc:{pc:{qc:{rc:{sc:{tc:{uc:{vc:{wc:{xc:{yc:{zc:{Ac:{Bc:{Cc:{Dc:{Ec:{Fc:{Gc:{Hc:{Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{Yc:{Zc:{_c:{$c:{ad:{bd:{cd:{dd:{ed:{fd:{gd:{hd:{id:{jd:{kd:{ld:{md:{nd:{od:{pd:{qd:{rd:{sd:{td:{ud:{vd:{wd:{xd:{yd:{zd:{Ad:{Bd:{Cd:{Dd:{Ed:{Fd:{Gd:{if((b| +0)!=1){J[d+96>>2]=a;J[d+100>>2]=12;J[d+104>>2]=-2147483632;b=J[88370];J[a+40>>2]=J[88369];J[a+44>>2]=b;b=J[88368];J[a+32>>2]=J[88367];J[a+36>>2]=b;b=J[88366];J[a+24>>2]=J[88365];J[a+28>>2]=b;b=J[88364];J[a+16>>2]=J[88363];J[a+20>>2]=b;b=J[88362];J[a+8>>2]=J[88361];J[a+12>>2]=b;b=J[88360];J[a>>2]=J[88359];J[a+4>>2]=b;J[a+48>>2]=0;J[d+108>>2]=0;J[699344]=0;b=Ye(2772732,d+84|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Gd;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)== +1)break Gd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+84>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Fd;J[d+96>>2]=a;J[d+100>>2]=10;J[d+104>>2]=-2147483636;b=J[88381];J[a+32>>2]=J[88380];J[a+36>>2]=b;b=J[88379];J[a+24>>2]= +J[88378];J[a+28>>2]=b;b=J[88377];J[a+16>>2]=J[88376];J[a+20>>2]=b;b=J[88375];J[a+8>>2]=J[88374];J[a+12>>2]=b;b=J[88373];J[a>>2]=J[88372];J[a+4>>2]=b;J[a+40>>2]=0;J[d+108>>2]=0;J[699344]=0;b=Ye(2772732,d+84|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Ed;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ed;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+84>>2];J[a>> +2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Dd;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[88391];b=J[88390];J[a+24>>2]=J[88389];J[a+28>>2]=b;b=J[88388];J[a+16>>2]=J[88387];J[a+20>>2]=b;b=J[88386];J[a+8>>2]=J[88385];J[a+12>>2]=b;b=J[88384];J[a>>2]=J[88383];J[a+4>>2]=b;J[a+36>>2]=0;J[d+108>>2]=0;J[699344]=0;b=Ye(2772732, +d+84|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Cd;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Cd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+84>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)== +1)break Bd;J[d+96>>2]=a;J[d+100>>2]=12;J[d+104>>2]=-2147483632;b=J[88404];J[a+40>>2]=J[88403];J[a+44>>2]=b;b=J[88402];J[a+32>>2]=J[88401];J[a+36>>2]=b;b=J[88400];J[a+24>>2]=J[88399];J[a+28>>2]=b;b=J[88398];J[a+16>>2]=J[88397];J[a+20>>2]=b;b=J[88396];J[a+8>>2]=J[88395];J[a+12>>2]=b;b=J[88394];J[a>>2]=J[88393];J[a+4>>2]=b;J[a+48>>2]=0;J[d+108>>2]=0;J[699344]=0;b=Ye(2772732,d+84|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Ad;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c| +0)==1)break Ad;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+84>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[d+92>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0;J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break zd;J[d+96>>2]=a;J[d+100>>2]=12;J[d+104>>2]=-2147483632;b=J[88370];J[a+40>>2]= +J[88369];J[a+44>>2]=b;b=J[88368];J[a+32>>2]=J[88367];J[a+36>>2]=b;b=J[88366];J[a+24>>2]=J[88365];J[a+28>>2]=b;b=J[88364];J[a+16>>2]=J[88363];J[a+20>>2]=b;b=J[88362];J[a+8>>2]=J[88361];J[a+12>>2]=b;b=J[88360];J[a>>2]=J[88359];J[a+4>>2]=b;J[a+48>>2]=0;J[699344]=0;da(2957,d+84|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break yd;if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break xd;J[d+96>>2]=a;J[d+100>>2]=10;J[d+104>>2]=-2147483636;b=J[88381];J[a+32>> +2]=J[88380];J[a+36>>2]=b;b=J[88379];J[a+24>>2]=J[88378];J[a+28>>2]=b;b=J[88377];J[a+16>>2]=J[88376];J[a+20>>2]=b;b=J[88375];J[a+8>>2]=J[88374];J[a+12>>2]=b;b=J[88373];J[a>>2]=J[88372];J[a+4>>2]=b;J[a+40>>2]=0;a=J[d+88>>2];Hd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+88>>2]=a+12;break Hd}J[699344]=0;da(2957,d+84|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break wd;if(H[d+107|0]>=0)break Hd;uc(J[d+96>>2])}J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break vd;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[88391];b=J[88390];J[a+24>>2]=J[88389];J[a+28>>2]=b;b=J[88388];J[a+16>>2]=J[88387];J[a+20>>2]=b;b=J[88386];J[a+8>>2]=J[88385];J[a+12>>2]=b;b=J[88384];J[a>>2]=J[88383];J[a+4>>2]=b;J[a+36>>2]=0;a=J[d+88>>2];Id:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+88>>2]=a+12;break Id}J[699344]=0;da(2957,d+84|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break ud;if(H[d+107|0]>= +0)break Id;uc(J[d+96>>2])}J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break td;J[d+96>>2]=a;J[d+100>>2]=12;J[d+104>>2]=-2147483632;b=J[88404];J[a+40>>2]=J[88403];J[a+44>>2]=b;b=J[88402];J[a+32>>2]=J[88401];J[a+36>>2]=b;b=J[88400];J[a+24>>2]=J[88399];J[a+28>>2]=b;b=J[88398];J[a+16>>2]=J[88397];J[a+20>>2]=b;b=J[88396];J[a+8>>2]=J[88395];J[a+12>>2]=b;b=J[88394];J[a>>2]=J[88393];J[a+4>>2]=b;J[a+48>>2]=0;a=J[d+88>>2];Jd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b; +J[a+8>>2]=J[d+104>>2];J[d+88>>2]=a+12;break Jd}J[699344]=0;da(2957,d+84|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break sd;if(H[d+107|0]>=0)break Jd;uc(J[d+96>>2])}b=J[693187];Kd:{if((b|0)!=J[693188]){J[699344]=0;a=aa(2967,b|0,d+84|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;J[693187]=b;break ec}J[693187]=a+12;break Kd}J[699344]=0;da(2968,2772744,d+84|0);a=J[699344];J[699344]=0;if((a|0)==1)break rd}J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break qd;J[d+96>>2]=a;J[d+100>> +2]=6;J[d+104>>2]=-2147483640;b=J[88411];J[a+16>>2]=J[88410];J[a+20>>2]=b;b=J[88409];J[a+8>>2]=J[88408];J[a+12>>2]=b;b=J[88407];J[a>>2]=J[88406];J[a+4>>2]=b;J[a+24>>2]=0;J[699344]=0;J[d+108>>2]=1;b=Ye(2772732,d+72|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break pd;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break pd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+72>> +2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break od;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[88421];b=J[88420];J[a+24>>2]=J[88419];J[a+28>>2]=b;b=J[88418];J[a+16>>2]=J[88417];J[a+20>>2]=b;b=J[88416];J[a+8>>2]=J[88415];J[a+12>>2]=b;b=J[88414];J[a>>2]=J[88413];J[a+4>>2]=b;J[a+36>>2]=0;J[699344]=0;J[d+108>>2]=1;b= +Ye(2772732,d+72|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break nd;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break nd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+72>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[d+80>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[699344]= +0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break md;J[d+96>>2]=a;J[d+100>>2]=10;J[d+104>>2]=-2147483636;b=J[88432];J[a+32>>2]=J[88431];J[a+36>>2]=b;b=J[88430];J[a+24>>2]=J[88429];J[a+28>>2]=b;b=J[88428];J[a+16>>2]=J[88427];J[a+20>>2]=b;b=J[88426];J[a+8>>2]=J[88425];J[a+12>>2]=b;b=J[88424];J[a>>2]=J[88423];J[a+4>>2]=b;J[a+40>>2]=0;J[699344]=0;da(2957,d+72|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break ld;if(H[d+107|0]<0)uc(J[d+96>>2]);b=J[693187];Ld:{if((b|0)!=J[693188]){J[699344]=0;a= +aa(2967,b|0,d+72|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;J[693187]=b;break fc}J[693187]=a+12;break Ld}J[699344]=0;da(2968,2772744,d+72|0);a=J[699344];J[699344]=0;if((a|0)==1)break kd}J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break jd;J[d+96>>2]=a;J[d+100>>2]=5;J[d+104>>2]=-2147483640;J[a+16>>2]=J[88438];b=J[88437];J[a+8>>2]=J[88436];J[a+12>>2]=b;b=J[88435];J[a>>2]=J[88434];J[a+4>>2]=b;J[a+20>>2]=0;J[d+108>>2]=2;J[699344]=0;b=Ye(2772732,d+60|0,d+96|0);a=J[699344];J[699344]= +0;if((a|0)==1)break id;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break id;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+60>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break hd;J[d+96>>2]=a;J[d+100>>2]= +15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88454];b=J[88453];J[a+48>>2]=J[88452];J[a+52>>2]=b;b=J[88451];J[a+40>>2]=J[88450];J[a+44>>2]=b;b=J[88449];J[a+32>>2]=J[88448];J[a+36>>2]=b;b=J[88447];J[a+24>>2]=J[88446];J[a+28>>2]=b;b=J[88445];J[a+16>>2]=J[88444];J[a+20>>2]=b;b=J[88443];J[a+8>>2]=J[88442];J[a+12>>2]=b;b=J[88441];J[a>>2]=J[88440];J[a+4>>2]=b;J[a+60>>2]=0;J[d+108>>2]=2;J[699344]=0;b=Ye(2772732,d+60|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break gd;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c= +J[699344];J[699344]=0;if((c|0)==1)break gd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+60>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break fd;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[88464];b=J[88463];J[a+ +24>>2]=J[88462];J[a+28>>2]=b;b=J[88461];J[a+16>>2]=J[88460];J[a+20>>2]=b;b=J[88459];J[a+8>>2]=J[88458];J[a+12>>2]=b;b=J[88457];J[a>>2]=J[88456];J[a+4>>2]=b;J[a+36>>2]=0;J[d+108>>2]=2;J[699344]=0;b=Ye(2772732,d+60|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break ed;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ed;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+60>> +2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break dd;J[d+96>>2]=a;J[d+100>>2]=13;J[d+104>>2]=-2147483632;J[a+48>>2]=J[88478];b=J[88477];J[a+40>>2]=J[88476];J[a+44>>2]=b;b=J[88475];J[a+32>>2]=J[88474];J[a+36>>2]=b;b=J[88473];J[a+24>>2]=J[88472];J[a+28>>2]=b;b=J[88471];J[a+16>>2]=J[88470];J[a+20>>2]=b;b=J[88469];J[a+8>>2]=J[88468];J[a+ +12>>2]=b;b=J[88467];J[a>>2]=J[88466];J[a+4>>2]=b;J[a+52>>2]=0;J[d+108>>2]=2;J[699344]=0;b=Ye(2772732,d+60|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break cd;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break cd;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+60>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]= +J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[d+68>>2]=0;J[d+60>>2]=0;J[d+64>>2]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break bd;J[d+96>>2]=a;J[d+100>>2]=5;J[d+104>>2]=-2147483640;J[a+16>>2]=J[88438];b=J[88437];J[a+8>>2]=J[88436];J[a+12>>2]=b;b=J[88435];J[a>>2]=J[88434];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;da(2957,d+60|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break ad;if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $c;J[d+ +96>>2]=a;J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88454];b=J[88453];J[a+48>>2]=J[88452];J[a+52>>2]=b;b=J[88451];J[a+40>>2]=J[88450];J[a+44>>2]=b;b=J[88449];J[a+32>>2]=J[88448];J[a+36>>2]=b;b=J[88447];J[a+24>>2]=J[88446];J[a+28>>2]=b;b=J[88445];J[a+16>>2]=J[88444];J[a+20>>2]=b;b=J[88443];J[a+8>>2]=J[88442];J[a+12>>2]=b;b=J[88441];J[a>>2]=J[88440];J[a+4>>2]=b;J[a+60>>2]=0;a=J[d+64>>2];Md:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+64>>2]=a+ +12;break Md}J[699344]=0;da(2957,d+60|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break _c;if(H[d+107|0]>=0)break Md;uc(J[d+96>>2])}J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Zc;J[d+96>>2]=a;J[d+100>>2]=9;J[d+104>>2]=-2147483636;J[a+32>>2]=J[88464];b=J[88463];J[a+24>>2]=J[88462];J[a+28>>2]=b;b=J[88461];J[a+16>>2]=J[88460];J[a+20>>2]=b;b=J[88459];J[a+8>>2]=J[88458];J[a+12>>2]=b;b=J[88457];J[a>>2]=J[88456];J[a+4>>2]=b;J[a+36>>2]=0;a=J[d+64>>2];Nd:{if(a>>>0>2]){b=J[d+ +100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+64>>2]=a+12;break Nd}J[699344]=0;da(2957,d+60|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Yc;if(H[d+107|0]>=0)break Nd;uc(J[d+96>>2])}J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Xc;J[d+96>>2]=a;J[d+100>>2]=13;J[d+104>>2]=-2147483632;J[a+48>>2]=J[88478];b=J[88477];J[a+40>>2]=J[88476];J[a+44>>2]=b;b=J[88475];J[a+32>>2]=J[88474];J[a+36>>2]=b;b=J[88473];J[a+24>>2]=J[88472];J[a+28>>2]=b;b=J[88471];J[a+16>>2]= +J[88470];J[a+20>>2]=b;b=J[88469];J[a+8>>2]=J[88468];J[a+12>>2]=b;b=J[88467];J[a>>2]=J[88466];J[a+4>>2]=b;J[a+52>>2]=0;a=J[d+64>>2];Od:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+64>>2]=a+12;break Od}J[699344]=0;da(2957,d+60|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Wc;if(H[d+107|0]>=0)break Od;uc(J[d+96>>2])}b=J[693187];Pd:{if((b|0)!=J[693188]){J[699344]=0;a=aa(2967,b|0,d+60|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;J[693187]=b;break gc}J[693187]= +a+12;break Pd}J[699344]=0;da(2968,2772744,d+60|0);a=J[699344];J[699344]=0;if((a|0)==1)break Vc}J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Uc;J[d+96>>2]=a;J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88494];b=J[88493];J[a+48>>2]=J[88492];J[a+52>>2]=b;b=J[88491];J[a+40>>2]=J[88490];J[a+44>>2]=b;b=J[88489];J[a+32>>2]=J[88488];J[a+36>>2]=b;b=J[88487];J[a+24>>2]=J[88486];J[a+28>>2]=b;b=J[88485];J[a+16>>2]=J[88484];J[a+20>>2]=b;b=J[88483];J[a+8>>2]=J[88482];J[a+12>>2]=b;b= +J[88481];J[a>>2]=J[88480];J[a+4>>2]=b;J[a+60>>2]=0;J[d+108>>2]=3;J[699344]=0;b=Ye(2772732,d+48|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Tc;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Tc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+48>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+ +1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,80)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Sc;J[d+96>>2]=a;J[d+100>>2]=16;J[d+104>>2]=-2147483628;b=J[88511];J[a+56>>2]=J[88510];J[a+60>>2]=b;b=J[88509];J[a+48>>2]=J[88508];J[a+52>>2]=b;b=J[88507];J[a+40>>2]=J[88506];J[a+44>>2]=b;b=J[88505];J[a+32>>2]=J[88504];J[a+36>>2]=b;b=J[88503];J[a+24>>2]=J[88502];J[a+28>>2]=b;b=J[88501];J[a+16>>2]=J[88500];J[a+20>>2]=b;b=J[88499];J[a+8>>2]=J[88498];J[a+12>>2]=b;b=J[88497];J[a>>2]=J[88496];J[a+4>>2]=b; +J[a+64>>2]=0;J[d+108>>2]=3;J[699344]=0;b=Ye(2772732,d+48|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Rc;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Rc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+48>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[d+ +56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Qc;J[d+96>>2]=a;J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88494];b=J[88493];J[a+48>>2]=J[88492];J[a+52>>2]=b;b=J[88491];J[a+40>>2]=J[88490];J[a+44>>2]=b;b=J[88489];J[a+32>>2]=J[88488];J[a+36>>2]=b;b=J[88487];J[a+24>>2]=J[88486];J[a+28>>2]=b;b=J[88485];J[a+16>>2]=J[88484];J[a+20>>2]=b;b=J[88483];J[a+8>>2]=J[88482];J[a+12>>2]=b;b=J[88481];J[a>>2]=J[88480];J[a+4>>2]=b;J[a+60>>2]=0;J[699344]= +0;da(2957,d+48|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Pc;if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,80)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Oc;J[d+96>>2]=a;J[d+100>>2]=16;J[d+104>>2]=-2147483628;b=J[88511];J[a+56>>2]=J[88510];J[a+60>>2]=b;b=J[88509];J[a+48>>2]=J[88508];J[a+52>>2]=b;b=J[88507];J[a+40>>2]=J[88506];J[a+44>>2]=b;b=J[88505];J[a+32>>2]=J[88504];J[a+36>>2]=b;b=J[88503];J[a+24>>2]=J[88502];J[a+28>>2]=b;b=J[88501];J[a+16>>2]=J[88500];J[a+20>>2]=b;b=J[88499];J[a+ +8>>2]=J[88498];J[a+12>>2]=b;b=J[88497];J[a>>2]=J[88496];J[a+4>>2]=b;J[a+64>>2]=0;a=J[d+52>>2];Qd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+52>>2]=a+12;break Qd}J[699344]=0;da(2957,d+48|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Nc;if(H[d+107|0]>=0)break Qd;uc(J[d+96>>2])}b=J[693187];Rd:{if((b|0)!=J[693188]){J[699344]=0;a=aa(2967,b|0,d+48|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;J[693187]=b;break hc}J[693187]=a+12;break Rd}J[699344]= +0;da(2968,2772744,d+48|0);a=J[699344];J[699344]=0;if((a|0)==1)break Mc}J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Lc;J[d+96>>2]=a;J[d+100>>2]=11;J[d+104>>2]=-2147483636;J[a+40>>2]=J[88523];b=J[88522];J[a+32>>2]=J[88521];J[a+36>>2]=b;b=J[88520];J[a+24>>2]=J[88519];J[a+28>>2]=b;b=J[88518];J[a+16>>2]=J[88517];J[a+20>>2]=b;b=J[88516];J[a+8>>2]=J[88515];J[a+12>>2]=b;b=J[88514];J[a>>2]=J[88513];J[a+4>>2]=b;J[a+44>>2]=0;J[d+108>>2]=4;J[699344]=0;b=Ye(2772732,d+36|0,d+96|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break Kc;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Kc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+36>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Jc;J[d+96>>2]=a; +J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>>2]=J[88539];b=J[88538];J[a+48>>2]=J[88537];J[a+52>>2]=b;b=J[88536];J[a+40>>2]=J[88535];J[a+44>>2]=b;b=J[88534];J[a+32>>2]=J[88533];J[a+36>>2]=b;b=J[88532];J[a+24>>2]=J[88531];J[a+28>>2]=b;b=J[88530];J[a+16>>2]=J[88529];J[a+20>>2]=b;b=J[88528];J[a+8>>2]=J[88527];J[a+12>>2]=b;b=J[88526];J[a>>2]=J[88525];J[a+4>>2]=b;J[a+60>>2]=0;J[d+108>>2]=4;J[699344]=0;b=Ye(2772732,d+36|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Ic;if(!J[b>>2]){J[699344]=0;a= +_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ic;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+36>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[d+44>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Hc;J[d+96>>2]=a;J[d+100>>2]=11;J[d+104>> +2]=-2147483636;J[a+40>>2]=J[88523];b=J[88522];J[a+32>>2]=J[88521];J[a+36>>2]=b;b=J[88520];J[a+24>>2]=J[88519];J[a+28>>2]=b;b=J[88518];J[a+16>>2]=J[88517];J[a+20>>2]=b;b=J[88516];J[a+8>>2]=J[88515];J[a+12>>2]=b;b=J[88514];J[a>>2]=J[88513];J[a+4>>2]=b;J[a+44>>2]=0;J[699344]=0;da(2957,d+36|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Gc;if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,64)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Fc;J[d+96>>2]=a;J[d+100>>2]=15;J[d+104>>2]=-2147483632;J[a+56>> +2]=J[88539];b=J[88538];J[a+48>>2]=J[88537];J[a+52>>2]=b;b=J[88536];J[a+40>>2]=J[88535];J[a+44>>2]=b;b=J[88534];J[a+32>>2]=J[88533];J[a+36>>2]=b;b=J[88532];J[a+24>>2]=J[88531];J[a+28>>2]=b;b=J[88530];J[a+16>>2]=J[88529];J[a+20>>2]=b;b=J[88528];J[a+8>>2]=J[88527];J[a+12>>2]=b;b=J[88526];J[a>>2]=J[88525];J[a+4>>2]=b;J[a+60>>2]=0;a=J[d+40>>2];Sd:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+40>>2]=a+12;break Sd}J[699344]=0;da(2957,d+36|0,d+96|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break Ec;if(H[d+107|0]>=0)break Sd;uc(J[d+96>>2])}b=J[693187];Td:{if((b|0)!=J[693188]){J[699344]=0;a=aa(2967,b|0,d+36|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;J[693187]=b;break ic}J[693187]=a+12;break Td}J[699344]=0;da(2968,2772744,d+36|0);a=J[699344];J[699344]=0;if((a|0)==1)break Dc}J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Cc;J[d+96>>2]=a;J[d+100>>2]=5;J[d+104>>2]=-2147483640;J[a+16>>2]=J[88545];b=J[88544];J[a+8>>2]=J[88543];J[a+12>>2]=b; +b=J[88542];J[a>>2]=J[88541];J[a+4>>2]=b;J[a+20>>2]=0;J[d+108>>2]=5;J[699344]=0;b=Ye(2772732,d+24|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break Bc;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Bc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+24>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+ +1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ac;J[d+96>>2]=a;J[d+100>>2]=8;J[d+104>>2]=-2147483636;b=J[88554];J[a+24>>2]=J[88553];J[a+28>>2]=b;b=J[88552];J[a+16>>2]=J[88551];J[a+20>>2]=b;b=J[88550];J[a+8>>2]=J[88549];J[a+12>>2]=b;b=J[88548];J[a>>2]=J[88547];J[a+4>>2]=b;J[a+32>>2]=0;J[d+108>>2]=5;J[699344]=0;b=Ye(2772732,d+24|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break zc;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c| +0)==1)break zc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+24>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break yc;J[d+96>>2]=a;J[d+100>>2]=5;J[d+104>>2]=-2147483640;J[a+16>>2]=J[88545];b=J[88544]; +J[a+8>>2]=J[88543];J[a+12>>2]=b;b=J[88542];J[a>>2]=J[88541];J[a+4>>2]=b;J[a+20>>2]=0;J[699344]=0;da(2957,d+24|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break xc;if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,48)|0;b=J[699344];J[699344]=0;if((b|0)==1)break wc;J[d+96>>2]=a;J[d+100>>2]=8;J[d+104>>2]=-2147483636;b=J[88554];J[a+24>>2]=J[88553];J[a+28>>2]=b;b=J[88552];J[a+16>>2]=J[88551];J[a+20>>2]=b;b=J[88550];J[a+8>>2]=J[88549];J[a+12>>2]=b;b=J[88548];J[a>>2]=J[88547];J[a+4>>2]=b;J[a+32>>2]=0;a= +J[d+28>>2];Ud:{if(a>>>0>2]){b=J[d+100>>2];J[a>>2]=J[d+96>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+104>>2];J[d+28>>2]=a+12;break Ud}J[699344]=0;da(2957,d+24|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break vc;if(H[d+107|0]>=0)break Ud;uc(J[d+96>>2])}b=J[693187];Vd:{if((b|0)!=J[693188]){J[699344]=0;a=aa(2967,b|0,d+24|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;J[693187]=b;break jc}J[693187]=a+12;break Vd}J[699344]=0;da(2968,2772744,d+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break uc}J[699344]= +0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break tc;J[d+96>>2]=a;J[d+100>>2]=7;J[d+104>>2]=-2147483640;J[a+24>>2]=J[88562];b=J[88561];J[a+16>>2]=J[88560];J[a+20>>2]=b;b=J[88559];J[a+8>>2]=J[88558];J[a+12>>2]=b;b=J[88557];J[a>>2]=J[88556];J[a+4>>2]=b;J[a+28>>2]=0;J[d+108>>2]=6;J[699344]=0;b=Ye(2772732,d+12|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break sc;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break sc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+ +24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+12>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+96>>2]);J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break rc;J[d+96>>2]=a;J[d+100>>2]=7;J[d+104>>2]=-2147483640;J[a+24>>2]=J[88570];b=J[88569];J[a+16>>2]=J[88568];J[a+20>>2]=b;b=J[88567];J[a+8>>2]=J[88566];J[a+12>>2]=b;b=J[88565];J[a>>2]=J[88564]; +J[a+4>>2]=b;J[a+28>>2]=0;J[d+108>>2]=6;J[699344]=0;b=Ye(2772732,d+12|0,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break qc;if(!J[b>>2]){J[699344]=0;a=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break qc;c=J[d+100>>2];J[a+16>>2]=J[d+96>>2];J[a+20>>2]=c;J[a+24>>2]=J[d+104>>2];J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[a+28>>2]=J[d+108>>2];J[a+8>>2]=J[d+12>>2];J[a>>2]=0;J[a+4>>2]=0;J[b>>2]=a;c=J[J[693183]>>2];if(c){J[693183]=c;a=J[b>>2]}Oc(J[693184],a);J[693185]=J[693185]+1}if(H[d+107|0]<0)uc(J[d+ +96>>2]);J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break pc;J[d+12>>2]=a;J[d+16>>2]=7;J[d+20>>2]=-2147483640;J[a+24>>2]=J[88562];b=J[88561];J[a+16>>2]=J[88560];J[a+20>>2]=b;b=J[88559];J[a+8>>2]=J[88558];J[a+12>>2]=b;b=J[88557];J[a>>2]=J[88556];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;da(2957,d+96|0,d+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break oc;if(H[d+23|0]<0)uc(J[d+12>>2]);J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break nc; +J[d+12>>2]=a;J[d+16>>2]=7;J[d+20>>2]=-2147483640;J[a+24>>2]=J[88570];b=J[88569];J[a+16>>2]=J[88568];J[a+20>>2]=b;b=J[88567];J[a+8>>2]=J[88566];J[a+12>>2]=b;b=J[88565];J[a>>2]=J[88564];J[a+4>>2]=b;J[a+28>>2]=0;a=J[d+100>>2];Wd:{if(a>>>0>2]){b=J[d+16>>2];J[a>>2]=J[d+12>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+20>>2];J[d+100>>2]=a+12;break Wd}J[699344]=0;da(2957,d+96|0,d+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break mc;if(H[d+23|0]>=0)break Wd;uc(J[d+12>>2])}b=J[693187];Xd:{if((b|0)!=J[693188]){J[699344]= +0;a=aa(2967,b|0,d+96|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;J[693187]=b;break kc}J[693187]=a+12;break Xd}J[699344]=0;da(2968,2772744,d+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break lc}c=J[d+96>>2];if(c){a=c;b=J[d+100>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+96>>2]}J[d+100>>2]=c;uc(a)}c=J[d+24>>2];if(c){a=c;b=J[d+28>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+ +24>>2]}J[d+28>>2]=c;uc(a)}c=J[d+36>>2];if(c){a=c;b=J[d+40>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+36>>2]}J[d+40>>2]=c;uc(a)}c=J[d+48>>2];if(c){a=c;b=J[d+52>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+48>>2]}J[d+52>>2]=c;uc(a)}c=J[d+60>>2];if(c){a=c;b=J[d+64>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+60>>2]}J[d+ +64>>2]=c;uc(a)}c=J[d+72>>2];if(c){a=c;b=J[d+76>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+72>>2]}J[d+76>>2]=c;uc(a)}c=J[d+84>>2];if(c){a=c;b=J[d+88>>2];if((a|0)!=(b|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}a=J[d+84>>2]}J[d+88>>2]=c;uc(a)}fc=d+112|0;break cc}a=Z()|0;break dc}a=Z()|0;if(H[d+107|0]>=0)break dc;uc(J[d+96>>2]);break dc}a=Z()|0;break dc}a=Z()|0;if(H[d+107|0]>=0)break dc;uc(J[d+96>>2]); +break dc}a=Z()|0;break dc}a=Z()|0;if(H[d+107|0]>=0)break dc;uc(J[d+96>>2]);break dc}a=Z()|0;break dc}a=Z()|0;if(H[d+107|0]>=0)break dc;uc(J[d+96>>2]);break dc}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;uc(J[d+96>>2]);break ec}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;uc(J[d+96>>2]);break ec}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;uc(J[d+96>>2]);break ec}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;uc(J[d+96>>2]);break ec}a=Z()|0;break ec}a=Z()|0;break ec}a=Z()|0; +if(H[d+107|0]>=0)break ec;uc(J[d+96>>2]);break ec}a=Z()|0;break ec}a=Z()|0;if(H[d+107|0]>=0)break ec;uc(J[d+96>>2]);break ec}a=Z()|0;break fc}a=Z()|0;if(H[d+107|0]>=0)break fc;uc(J[d+96>>2]);break fc}a=Z()|0;break fc}a=Z()|0;break fc}a=Z()|0;if(H[d+107|0]>=0)break fc;uc(J[d+96>>2]);break fc}a=Z()|0;break fc}a=Z()|0;if(H[d+107|0]>=0)break fc;uc(J[d+96>>2]);break fc}a=Z()|0;break fc}a=Z()|0;if(H[d+107|0]>=0)break fc;uc(J[d+96>>2]);break fc}a=Z()|0;break fc}a=Z()|0;if(H[d+107|0]>=0)break fc;uc(J[d+96>> +2]);break fc}a=Z()|0;break gc}a=Z()|0;if(H[d+107|0]>=0)break gc;uc(J[d+96>>2]);break gc}a=Z()|0;break gc}a=Z()|0;if(H[d+107|0]>=0)break gc;uc(J[d+96>>2]);break gc}a=Z()|0;break gc}a=Z()|0;if(H[d+107|0]>=0)break gc;uc(J[d+96>>2]);break gc}a=Z()|0;break gc}a=Z()|0;if(H[d+107|0]>=0)break gc;uc(J[d+96>>2]);break gc}a=Z()|0;break gc}a=Z()|0;break gc}a=Z()|0;if(H[d+107|0]>=0)break gc;uc(J[d+96>>2]);break gc}a=Z()|0;break gc}a=Z()|0;if(H[d+107|0]>=0)break gc;uc(J[d+96>>2]);break gc}a=Z()|0;break hc}a=Z()| +0;if(H[d+107|0]>=0)break hc;uc(J[d+96>>2]);break hc}a=Z()|0;break hc}a=Z()|0;if(H[d+107|0]>=0)break hc;uc(J[d+96>>2]);break hc}a=Z()|0;break hc}a=Z()|0;break hc}a=Z()|0;if(H[d+107|0]>=0)break hc;uc(J[d+96>>2]);break hc}a=Z()|0;break hc}a=Z()|0;if(H[d+107|0]>=0)break hc;uc(J[d+96>>2]);break hc}a=Z()|0;break ic}a=Z()|0;if(H[d+107|0]>=0)break ic;uc(J[d+96>>2]);break ic}a=Z()|0;break ic}a=Z()|0;if(H[d+107|0]>=0)break ic;uc(J[d+96>>2]);break ic}a=Z()|0;break ic}a=Z()|0;break ic}a=Z()|0;if(H[d+107|0]>= +0)break ic;uc(J[d+96>>2]);break ic}a=Z()|0;break ic}a=Z()|0;if(H[d+107|0]>=0)break ic;uc(J[d+96>>2]);break ic}a=Z()|0;break jc}a=Z()|0;if(H[d+107|0]>=0)break jc;uc(J[d+96>>2]);break jc}a=Z()|0;break jc}a=Z()|0;if(H[d+107|0]>=0)break jc;uc(J[d+96>>2]);break jc}a=Z()|0;break jc}a=Z()|0;break jc}a=Z()|0;if(H[d+107|0]>=0)break jc;uc(J[d+96>>2]);break jc}a=Z()|0;break jc}a=Z()|0;if(H[d+107|0]>=0)break jc;uc(J[d+96>>2]);break jc}a=Z()|0;break kc}a=Z()|0;if(H[d+23|0]>=0)break kc;uc(J[d+12>>2]);break kc}a= +Z()|0;break kc}a=Z()|0;if(H[d+23|0]>=0)break kc;uc(J[d+12>>2]);break kc}a=Z()|0}Ag(d+96|0)}Ag(d+24|0)}Ag(d+36|0)}Ag(d+48|0)}Ag(d+60|0)}Ag(d+72|0)}Ag(d+84|0)}d=J[693186];if(d){b=J[693187];c=d;if((b|0)!=(c|0)){while(1){f=b-12|0;e=J[f>>2];if(e){g=b-8|0;c=J[g>>2];b=e;if((c|0)!=(b|0)){while(1){b=c-12|0;if(H[c-1|0]<0)uc(J[b>>2]);c=b;if((b|0)!=(e|0))continue;break}b=J[f>>2]}J[g>>2]=e;uc(b)}b=f;if((d|0)!=(b|0))continue;break}c=J[693186]}J[693187]=d;uc(c)}Du(2772732,J[693184]);ba(a|0);B()}J[693189]=0;H[2772767]= +0;J[693352]=2773412;J[693353]=0;J[693354]=0;J[699344]=0;c=_(4,32)|0;a=J[699344];J[699344]=0;Yd:{Zd:{if((a|0)!=1)_d:{J[c+8>>2]=2773412;J[c>>2]=0;J[c+4>>2]=0;a=28596;J[c+16>>2]=28596;J[693352]=c;J[693353]=c;H[c+12|0]=1;J[693354]=1;H[c+30|0]=0;H[c+31|0]=10;b=K[22652]|K[22653]<<8|(K[22654]<<16|K[22655]<<24);d=K[22648]|K[22649]<<8|(K[22650]<<16|K[22651]<<24);H[c+20|0]=d;H[c+21|0]=d>>>8;H[c+22|0]=d>>>16;H[c+23|0]=d>>>24;H[c+24|0]=b;H[c+25|0]=b>>>8;H[c+26|0]=b>>>16;H[c+27|0]=b>>>24;b=K[22656]|K[22657]<< +8;H[c+28|0]=b;H[c+29|0]=b>>>8;$d:{ae:{while(1){be:{ce:{if((a|0)>=721){b=J[c>>2];if(b)break ce;a=c;break ae}if((a|0)==720){b=c;break $d}b=J[c+4>>2];if(!b)break be}a=J[b+16>>2];c=b;continue}break}a=c+4|0}J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[b+16>>2]=720;J[b+8>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[a>>2]=b;c=b;d=J[J[693352]>>2];if(d){J[693352]=d;c=J[a>>2]}Oc(J[693353],c);J[693354]=J[693354]+1}de:{if(H[b+31|0]<0){J[b+24>>2]=7;a=J[b+20>>2]; +break de}H[b+31|0]=7;a=b+20|0}H[a+7|0]=0;b=K[28552]|K[28553]<<8|(K[28554]<<16|K[28555]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28549]|K[28550]<<8|(K[28551]<<16|K[28552]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];ee:{fe:{if(!a){c=2773412;b=2773412;break fe}while(1){b=a;c=J[a+16>>2];if((c|0)>=1257){c=a;a=J[a>>2];if(a)continue;break fe}if((c|0)==1256)break ee;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break _d;J[a+16>>2]=1256;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,22622,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];ge:{he:{if(!a){c=2773412;b=2773412;break he}while(1){b=a;c=J[a+16>>2];if((c|0)>=28595){c=a;a=J[a>>2];if(a)continue;break he}if((c|0)==28594)break ge;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]= +0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28594;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}ie:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ie}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22885]|K[22886]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22881]|K[22882]<<8|(K[22883]<<16|K[22884]<<24);c=K[22877]|K[22878]<<8|(K[22879]<<16|K[22880]<<24);H[a|0]=c;H[a+ +1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];je:{ke:{if(!a){c=2773412;b=2773412;break ke}while(1){b=a;c=J[a+16>>2];if((c|0)>=28604){c=a;a=J[a>>2];if(a)continue;break ke}if((c|0)==28603)break je;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28603;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]= +d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,24400,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];le:{me:{if(!a){c=2773412;b=2773412;break me}while(1){b=a;c=J[a+16>>2];if((c|0)>=776){c=a;a=J[a>>2];if(a)continue;break me}if((c|0)==775)break le;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=775;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a; +d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}ne:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ne}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22700]|K[22701]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22696]|K[22697]<<8|(K[22698]<<16|K[22699]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];oe:{pe:{if(!a){c=2773412;b=2773412;break pe}while(1){b=a;c=J[a+16>>2];if((c|0)>=1258){c=a;a=J[a>>2];if(a)continue;break pe}if((c|0)==1257)break oe;a=J[b+4>>2];if(a)continue; +break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1257;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,22511,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];qe:{re:{if(!a){c=2773412;b=2773412;break re}while(1){b=a;c=J[a+16>>2];if((c|0)>=28605){c=a;a=J[a>>2];if(a)continue;break re}if((c|0)==28604)break qe; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28604;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,22837,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];se:{te:{if(!a){c=2773412;b=2773412;break te}while(1){b=a;c=J[a+16>>2];if((c|0)>=28596){c=a;a=J[a>>2];if(a)continue; +break te}if((c|0)==28595)break se;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28595;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}ue:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ue}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22750]|K[22751]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22746]|K[22747]<<8|(K[22748]<< +16|K[22749]<<24);c=K[22742]|K[22743]<<8|(K[22744]<<16|K[22745]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];ve:{we:{if(!a){c=2773412;b=2773412;break we}while(1){b=a;c=J[a+16>>2];if((c|0)>=20867){c=a;a=J[a>>2];if(a)continue;break we}if((c|0)==20866)break ve;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=20866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]= +0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}xe:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break xe}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20860]|K[20861]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20856]|K[20857]<<8|(K[20858]<<16|K[20859]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];ye:{ze:{if(!a){c=2773412;b=2773412;break ze}while(1){b=a;c=J[a+16>>2];if((c|0)>=21867){c=a;a=J[a>>2];if(a)continue; +break ze}if((c|0)==21866)break ye;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=21866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Ae:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ae}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20458]|K[20459]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20454]|K[20455]<<8|(K[20456]<< +16|K[20457]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];Be:{Ce:{if(!a){c=2773412;b=2773412;break Ce}while(1){b=a;c=J[a+16>>2];if((c|0)>=10008){c=a;a=J[a>>2];if(a)continue;break Ce}if((c|0)==10007)break Be;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=10007;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353], +b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,17841,14)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];De:{Ee:{if(!a){c=2773412;b=2773412;break Ee}while(1){b=a;c=J[a+16>>2];if((c|0)>=856){c=a;a=J[a>>2];if(a)continue;break Ee}if((c|0)==855)break De;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=855;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]= +d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Fe:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Fe}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22714]|K[22715]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22710]|K[22711]<<8|(K[22712]<<16|K[22713]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];Ge:{He:{if(!a){c=2773412;b=2773412;break He}while(1){b=a;c=J[a+16>>2];if((c|0)>=867){c=a;a=J[a>>2];if(a)continue;break He}if((c|0)==866)break Ge;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0; +a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Ie:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Ie}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22620];b=K[22616]|K[22617]<<8|(K[22618]<<16|K[22619]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];Je:{Ke:{if(!a){c=2773412;b=2773412; +break Ke}while(1){b=a;c=J[a+16>>2];if((c|0)>=1252){c=a;a=J[a>>2];if(a)continue;break Ke}if((c|0)==1251)break Je;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1251;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,28297,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353]; +Le:{Me:{if(!a){c=2773412;b=2773412;break Me}while(1){b=a;c=J[a+16>>2];if((c|0)>=853){c=a;a=J[a>>2];if(a)continue;break Me}if((c|0)==852)break Le;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=852;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Ne:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ne}H[a+31| +0]=6;a=a+20|0}H[a+6|0]=0;b=K[24725]|K[24726]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24721]|K[24722]<<8|(K[24723]<<16|K[24724]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];Oe:{Pe:{if(!a){c=2773412;b=2773412;break Pe}while(1){b=a;c=J[a+16>>2];if((c|0)>=1251){c=a;a=J[a>>2];if(a)continue;break Pe}if((c|0)==1250)break Oe;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1250;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ +20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,28528,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];Qe:{Re:{if(!a){c=2773412;b=2773412;break Re}while(1){b=a;c=J[a+16>>2];if((c|0)>=937){c=a;a=J[a>>2];if(a)continue;break Re}if((c|0)==936)break Qe;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=936;J[a+ +8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Se:{if(H[a+31|0]<0){J[a+24>>2]=3;a=J[a+20>>2];break Se}H[a+31|0]=3;a=a+20|0}H[a+3|0]=0;H[a+2|0]=K[21185];b=K[21183]|K[21184]<<8;H[a|0]=b;H[a+1|0]=b>>>8;a=J[693353];Te:{Ue:{if(!a){c=2773412;b=2773412;break Ue}while(1){b=a;c=J[a+16>>2];if((c|0)>=28593){c=a;a=J[a>>2];if(a)continue;break Ue}if((c|0)==28592)break Te;a=J[b+4>>2];if(a)continue; +break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28592;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Ve:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Ve}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24794]|K[24795]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24790]|K[24791]<<8|(K[24792]<<16|K[24793]<<24);c=K[24786]|K[24787]<<8|(K[24788]<<16|K[24789]<< +24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];We:{Xe:{if(!a){c=2773412;b=2773412;break Xe}while(1){b=a;c=J[a+16>>2];if((c|0)>=28598){c=a;a=J[a>>2];if(a)continue;break Xe}if((c|0)==28597)break We;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28597;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>> +2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Ye:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Ye}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22560]|K[22561]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22556]|K[22557]<<8|(K[22558]<<16|K[22559]<<24);c=K[22552]|K[22553]<<8|(K[22554]<<16|K[22555]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];Ze:{_e:{if(!a){c=2773412;b=2773412;break _e}while(1){b=a;c=J[a+16>> +2];if((c|0)>=738){c=a;a=J[a>>2];if(a)continue;break _e}if((c|0)==737)break Ze;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=737;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}$e:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break $e}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22528]|K[22529]<<8;H[a+4|0]=b;H[a+5|0]= +b>>>8;b=K[22524]|K[22525]<<8|(K[22526]<<16|K[22527]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];af:{bf:{if(!a){c=2773412;b=2773412;break bf}while(1){b=a;c=J[a+16>>2];if((c|0)>=870){c=a;a=J[a>>2];if(a)continue;break bf}if((c|0)==869)break af;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=869;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]= +d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}cf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break cf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22320]|K[22321]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22316]|K[22317]<<8|(K[22318]<<16|K[22319]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];df:{ef:{if(!a){c=2773412;b=2773412;break ef}while(1){b=a;c=J[a+16>>2];if((c|0)>=1254){c=a;a=J[a>>2];if(a)continue;break ef}if((c|0)==1253)break df;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]= +0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1253;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,24377,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];ff:{gf:{if(!a){c=2773412;b=2773412;break gf}while(1){b=a;c=J[a+16>>2];if((c|0)>=28599){c=a;a=J[a>>2];if(a)continue;break gf}if((c|0)==28598)break ff;a=J[b+4>>2]; +if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28598;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}hf:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break hf}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22420]|K[22421]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22416]|K[22417]<<8|(K[22418]<<16|K[22419]<<24);c=K[22412]|K[22413]<<8|(K[22414]<< +16|K[22415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];jf:{kf:{if(!a){c=2773412;b=2773412;break kf}while(1){b=a;c=J[a+16>>2];if((c|0)>=863){c=a;a=J[a>>2];if(a)continue;break kf}if((c|0)==862)break jf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=862;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d= +J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}lf:{if(H[a+31|0]<0){J[a+24>>2]=7;a=J[a+20>>2];break lf}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[24716]|K[24717]<<8|(K[24718]<<16|K[24719]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[24713]|K[24714]<<8|(K[24715]<<16|K[24716]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];mf:{nf:{if(!a){c=2773412;b=2773412;break nf}while(1){b=a;c=J[a+16>>2];if((c|0)>=1256){c=a;a=J[a>>2];if(a)continue; +break nf}if((c|0)==1255)break mf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1255;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,22717,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];of:{pf:{if(!a){c=2773412;b=2773412;break pf}while(1){b=a;c=J[a+16>>2];if((c| +0)>=933){c=a;a=J[a>>2];if(a)continue;break pf}if((c|0)==932)break of;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}qf:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break qf}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[20787];b=K[20783]|K[20784]<<8|(K[20785]<< +16|K[20786]<<24);c=K[20779]|K[20780]<<8|(K[20781]<<16|K[20782]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];rf:{sf:{if(!a){c=2773412;b=2773412;break sf}while(1){b=a;c=J[a+16>>2];if((c|0)>=951){c=a;a=J[a>>2];if(a)continue;break sf}if((c|0)==950)break rf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=950;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ +20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}tf:{if(H[a+31|0]<0){J[a+24>>2]=4;a=J[a+20>>2];break tf}H[a+31|0]=4;a=a+20|0}H[a+4|0]=0;H[a|0]=66;H[a+1|0]=105;H[a+2|0]=103;H[a+3|0]=53;a=J[693353];uf:{vf:{if(!a){c=2773412;b=2773412;break vf}while(1){b=a;c=J[a+16>>2];if((c|0)>=950){c=a;a=J[a>>2];if(a)continue;break vf}if((c|0)==949)break uf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,22489,14)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];wf:{xf:{if(!a){c=2773412;b=2773412;break xf}while(1){b=a;c=J[a+16>>2];if((c|0)>=51950){c=a;a=J[a>>2];if(a)continue;break xf}if((c|0)==51949)break wf;a=J[b+4>>2];if(a)continue;break}c=b+4| +0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=51949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}yf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break yf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20846]|K[20847]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20842]|K[20843]<<8|(K[20844]<<16|K[20845]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24; +a=J[693353];zf:{Af:{if(!a){c=2773412;b=2773412;break Af}while(1){b=a;c=J[a+16>>2];if((c|0)>=862){c=a;a=J[a>>2];if(a)continue;break Af}if((c|0)==861)break zf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=861;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Bf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Bf}H[a+ +31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28294]|K[28295]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28290]|K[28291]<<8|(K[28292]<<16|K[28293]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];Cf:{Df:{if(!a){c=2773412;b=2773412;break Df}while(1){b=a;c=J[a+16>>2];if((c|0)>=866){c=a;a=J[a>>2];if(a)continue;break Df}if((c|0)==865)break Cf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=865;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ +20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Ef:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ef}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22707]|K[22708]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22703]|K[22704]<<8|(K[22705]<<16|K[22706]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];Ff:{Gf:{if(!a){c=2773412;b=2773412;break Gf}while(1){b=a;c=J[a+16>>2];if((c|0)>=875){c=a;a=J[a>>2];if(a)continue; +break Gf}if((c|0)==874)break Ff;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=874;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,22798,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];Hf:{If:{if(!a){c=2773412;b=2773412;break If}while(1){b=a;c=J[a+16>>2];if((c|0)>= +28594){c=a;a=J[a>>2];if(a)continue;break If}if((c|0)==28593)break Hf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28593;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Jf:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Jf}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24420]|K[24421]<<8;H[a+8|0]=b;H[a+9|0]=b>>> +8;b=K[24416]|K[24417]<<8|(K[24418]<<16|K[24419]<<24);c=K[24412]|K[24413]<<8|(K[24414]<<16|K[24415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];Kf:{Lf:{if(!a){c=2773412;b=2773412;break Lf}while(1){b=a;c=J[a+16>>2];if((c|0)>=28600){c=a;a=J[a>>2];if(a)continue;break Lf}if((c|0)==28599)break Kf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28599; +J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Mf:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Mf}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22331]|K[22332]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22327]|K[22328]<<8|(K[22329]<<16|K[22330]<<24);c=K[22323]|K[22324]<<8|(K[22325]<<16|K[22326]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]= +b>>>16;H[a+7|0]=b>>>24;a=J[693353];Nf:{Of:{if(!a){c=2773412;b=2773412;break Of}while(1){b=a;c=J[a+16>>2];if((c|0)>=858){c=a;a=J[a>>2];if(a)continue;break Of}if((c|0)==857)break Nf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=857;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Pf:{if(H[a+31|0]<0){J[a+24>> +2]=6;a=J[a+20>>2];break Pf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22508]|K[22509]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22504]|K[22505]<<8|(K[22506]<<16|K[22507]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];Qf:{Rf:{if(!a){c=2773412;b=2773412;break Rf}while(1){b=a;c=J[a+16>>2];if((c|0)>=1255){c=a;a=J[a>>2];if(a)continue;break Rf}if((c|0)==1254)break Qf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1254;J[a+ +8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,22810,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];Sf:{Tf:{if(!a){c=2773412;b=2773412;break Tf}while(1){b=a;c=J[a+16>>2];if((c|0)>=28592){c=a;a=J[a>>2];if(a)continue;break Tf}if((c|0)==28591)break Sf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break _d;J[a+16>>2]=28591;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Uf:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Uf}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[28337]|K[28338]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[28333]|K[28334]<<8|(K[28335]<<16|K[28336]<<24);c=K[28329]|K[28330]<<8|(K[28331]<<16|K[28332]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+ +4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];Vf:{Wf:{if(!a){c=2773412;b=2773412;break Wf}while(1){b=a;c=J[a+16>>2];if((c|0)>=28606){c=a;a=J[a>>2];if(a)continue;break Wf}if((c|0)==28605)break Vf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=28605;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+ +1}J[699344]=0;ga(2996,a+20|0,22730,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];Xf:{Yf:{if(!a){c=2773412;b=2773412;break Yf}while(1){b=a;c=J[a+16>>2];if((c|0)>=851){c=a;a=J[a>>2];if(a)continue;break Yf}if((c|0)==850)break Xf;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=850;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353], +b);J[693354]=J[693354]+1}Zf:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Zf}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28525]|K[28526]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28521]|K[28522]<<8|(K[28523]<<16|K[28524]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];_f:{$f:{if(!a){c=2773412;b=2773412;break $f}while(1){b=a;c=J[a+16>>2];if((c|0)>=859){c=a;a=J[a>>2];if(a)continue;break $f}if((c|0)==858)break _f;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=858;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}ag:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ag}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22353]|K[22354]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22349]|K[22350]<<8|(K[22351]<<16|K[22352]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];bg:{cg:{if(!a){c=2773412;b= +2773412;break cg}while(1){b=a;c=J[a+16>>2];if((c|0)>=861){c=a;a=J[a>>2];if(a)continue;break cg}if((c|0)==860)break bg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=860;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}dg:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break dg}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b= +K[28518]|K[28519]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28514]|K[28515]<<8|(K[28516]<<16|K[28517]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];eg:{fg:{if(!a){c=2773412;b=2773412;break fg}while(1){b=a;c=J[a+16>>2];if((c|0)>=864){c=a;a=J[a>>2];if(a)continue;break fg}if((c|0)==863)break eg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=863;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>> +2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}gg:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break gg}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24374]|K[24375]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24370]|K[24371]<<8|(K[24372]<<16|K[24373]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];hg:{ig:{if(!a){c=2773412;b=2773412;break ig}while(1){b=a;c=J[a+16>>2];if((c|0)>=438){c=a;a=J[a>>2];if(a)continue;break ig}if((c|0)==437)break hg; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=437;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}jg:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break jg}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22535]|K[22536]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22531]|K[22532]<<8|(K[22533]<<16|K[22534]<<24);H[a|0]=b;H[a+1|0]=b>>> +8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];kg:{lg:{if(!a){c=2773412;b=2773412;break lg}while(1){b=a;c=J[a+16>>2];if((c|0)>=1253){c=a;a=J[a>>2];if(a)continue;break lg}if((c|0)==1252)break kg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1252;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}J[699344]=0; +ga(2996,a+20|0,24728,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];mg:{ng:{if(!a){c=2773412;b=2773412;break ng}while(1){b=a;c=J[a+16>>2];if((c|0)>=1259){c=a;a=J[a>>2];if(a)continue;break ng}if((c|0)==1258)break mg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1258;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353], +b);J[693354]=J[693354]+1}J[699344]=0;ga(2996,a+20|0,22356,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _d;a=J[693353];og:{pg:{if(!a){c=2773412;b=2773412;break pg}while(1){b=a;c=J[a+16>>2];if((c|0)>=65002){c=a;a=J[a>>2];if(a)continue;break pg}if((c|0)==65001)break og;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=65001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2]; +if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}qg:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break qg}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22410];b=K[22406]|K[22407]<<8|(K[22408]<<16|K[22409]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];rg:{sg:{if(!a){c=2773412;b=2773412;break sg}while(1){b=a;c=J[a+16>>2];if((c|0)>=65001){c=a;a=J[a>>2];if(a)continue;break sg}if((c|0)==65E3)break rg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0; +d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=65E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}tg:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break tg}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22550];b=K[22546]|K[22547]<<8|(K[22548]<<16|K[22549]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];ug:{vg:{if(!a){c=2773412;b=2773412;break vg}while(1){b= +a;c=J[a+16>>2];if((c|0)>=1201){c=a;a=J[a>>2];if(a)continue;break vg}if((c|0)==1200)break ug;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1200;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}wg:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break wg}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+ +2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=76;H[a+7|0]=69;a=J[693353];xg:{yg:{if(!a){c=2773412;b=2773412;break yg}while(1){b=a;c=J[a+16>>2];if((c|0)>=1202){c=a;a=J[a>>2];if(a)continue;break yg}if((c|0)==1201)break xg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1201;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b); +J[693354]=J[693354]+1}zg:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break zg}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=66;H[a+7|0]=69;a=J[693353];Ag:{Bg:{if(!a){c=2773412;b=2773412;break Bg}while(1){b=a;c=J[a+16>>2];if((c|0)>=12001){c=a;a=J[a>>2];if(a)continue;break Bg}if((c|0)==12E3)break Ag;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=12E3;J[a+8>>2]=b;J[a>> +2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Cg:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Cg}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=76;H[a+7|0]=69;a=J[693353];Dg:{Eg:{if(!a){c=2773412;b=2773412;break Eg}while(1){b=a;c=J[a+16>>2];if((c|0)>=12002){c=a;a=J[a>>2];if(a)continue;break Eg}if((c|0)==12001)break Dg;a=J[b+ +4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=12001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Fg:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break Fg}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=66;H[a+7|0]=69;a=J[693353];Gg:{Hg:{if(!a){c= +2773412;b=2773412;break Hg}while(1){b=a;c=J[a+16>>2];if((c|0)>=10001){c=a;a=J[a>>2];if(a)continue;break Hg}if((c|0)==1E4)break Gg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=1E4;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Ig:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break Ig}H[a+31|0]=9;a=a+20|0}H[a+ +9|0]=0;H[a+8|0]=K[11174];b=K[11170]|K[11171]<<8|(K[11172]<<16|K[11173]<<24);c=K[11166]|K[11167]<<8|(K[11168]<<16|K[11169]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693353];Jg:{Kg:{if(!a){c=2773412;b=2773412;break Kg}while(1){b=a;c=J[a+16>>2];if((c|0)>=20933){c=a;a=J[a>>2];if(a)continue;break Kg}if((c|0)==20932)break Jg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d; +J[a+16>>2]=20932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}Lg:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Lg}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20929]|K[20930]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20925]|K[20926]<<8|(K[20927]<<16|K[20928]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693353];Mg:{Ng:{if(!a){c=2773412;b=2773412;break Ng}while(1){b=a;c= +J[a+16>>2];if((c|0)>=54937){c=a;a=J[a>>2];if(a)continue;break Ng}if((c|0)==54936)break Mg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break _d;J[a+16>>2]=54936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693352]>>2];if(d){J[693352]=d;b=J[c>>2]}Oc(J[693353],b);J[693354]=J[693354]+1}if(H[a+31|0]>=0)break Zd;J[a+24>>2]=7;a=J[a+20>>2];break Yd}b=Z()|0;Ml(2773408,J[693353]);break b}H[a+31|0]=7;a=a+ +20|0}H[a+7|0]=0;b=K[28544]|K[28545]<<8|(K[28546]<<16|K[28547]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28541]|K[28542]<<8|(K[28543]<<16|K[28544]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;J[693355]=2773424;J[693356]=0;J[693357]=0;J[699344]=0;c=_(4,32)|0;a=J[699344];J[699344]=0;Og:{Pg:{if((a|0)!=1)Qg:{J[c+8>>2]=2773424;J[c>>2]=0;J[c+4>>2]=0;a=28596;J[c+16>>2]=28596;J[693355]=c;J[693356]=c;H[c+12|0]=1;J[693357]=1;H[c+30|0]=0;H[c+31|0]=10;b=K[22652]|K[22653]<< +8|(K[22654]<<16|K[22655]<<24);d=K[22648]|K[22649]<<8|(K[22650]<<16|K[22651]<<24);H[c+20|0]=d;H[c+21|0]=d>>>8;H[c+22|0]=d>>>16;H[c+23|0]=d>>>24;H[c+24|0]=b;H[c+25|0]=b>>>8;H[c+26|0]=b>>>16;H[c+27|0]=b>>>24;b=K[22656]|K[22657]<<8;H[c+28|0]=b;H[c+29|0]=b>>>8;Rg:{Sg:{while(1){Tg:{Ug:{if((a|0)>=721){b=J[c>>2];if(b)break Ug;a=c;break Sg}if((a|0)==720){b=c;break Rg}b=J[c+4>>2];if(!b)break Tg}a=J[b+16>>2];c=b;continue}break}a=c+4|0}J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[b+ +16>>2]=720;J[b+8>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[a>>2]=b;c=b;d=J[J[693355]>>2];if(d){J[693355]=d;c=J[a>>2]}Oc(J[693356],c);J[693357]=J[693357]+1}Vg:{if(H[b+31|0]<0){J[b+24>>2]=7;a=J[b+20>>2];break Vg}H[b+31|0]=7;a=b+20|0}H[a+7|0]=0;b=K[28552]|K[28553]<<8|(K[28554]<<16|K[28555]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28549]|K[28550]<<8|(K[28551]<<16|K[28552]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Wg:{Xg:{if(!a){c= +2773424;b=2773424;break Xg}while(1){b=a;c=J[a+16>>2];if((c|0)>=1257){c=a;a=J[a>>2];if(a)continue;break Xg}if((c|0)==1256)break Wg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1256;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,22622,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg; +a=J[693356];Yg:{Zg:{if(!a){c=2773424;b=2773424;break Zg}while(1){b=a;c=J[a+16>>2];if((c|0)>=28595){c=a;a=J[a>>2];if(a)continue;break Zg}if((c|0)==28594)break Yg;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28594;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}_g:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>> +2];break _g}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22885]|K[22886]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22881]|K[22882]<<8|(K[22883]<<16|K[22884]<<24);c=K[22877]|K[22878]<<8|(K[22879]<<16|K[22880]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];$g:{ah:{if(!a){c=2773424;b=2773424;break ah}while(1){b=a;c=J[a+16>>2];if((c|0)>=28604){c=a;a=J[a>>2];if(a)continue;break ah}if((c|0)==28603)break $g;a=J[b+4>>2];if(a)continue;break}c= +b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28603;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,24400,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];bh:{ch:{if(!a){c=2773424;b=2773424;break ch}while(1){b=a;c=J[a+16>>2];if((c|0)>=776){c=a;a=J[a>>2];if(a)continue;break ch}if((c|0)==775)break bh; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=775;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}dh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break dh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22700]|K[22701]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22696]|K[22697]<<8|(K[22698]<<16|K[22699]<<24);H[a|0]=b;H[a+1|0]=b>>> +8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];eh:{fh:{if(!a){c=2773424;b=2773424;break fh}while(1){b=a;c=J[a+16>>2];if((c|0)>=1258){c=a;a=J[a>>2];if(a)continue;break fh}if((c|0)==1257)break eh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1257;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0; +ga(2996,a+20|0,22511,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];gh:{hh:{if(!a){c=2773424;b=2773424;break hh}while(1){b=a;c=J[a+16>>2];if((c|0)>=28605){c=a;a=J[a>>2];if(a)continue;break hh}if((c|0)==28604)break gh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28604;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356], +b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,22837,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];ih:{jh:{if(!a){c=2773424;b=2773424;break jh}while(1){b=a;c=J[a+16>>2];if((c|0)>=28596){c=a;a=J[a>>2];if(a)continue;break jh}if((c|0)==28595)break ih;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28595;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2]; +if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}kh:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break kh}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22750]|K[22751]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22746]|K[22747]<<8|(K[22748]<<16|K[22749]<<24);c=K[22742]|K[22743]<<8|(K[22744]<<16|K[22745]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];lh:{mh:{if(!a){c=2773424;b=2773424;break mh}while(1){b=a;c=J[a+16>>2]; +if((c|0)>=20867){c=a;a=J[a>>2];if(a)continue;break mh}if((c|0)==20866)break lh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=20866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}nh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break nh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20860]|K[20861]<<8;H[a+4|0]=b;H[a+ +5|0]=b>>>8;b=K[20856]|K[20857]<<8|(K[20858]<<16|K[20859]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];oh:{ph:{if(!a){c=2773424;b=2773424;break ph}while(1){b=a;c=J[a+16>>2];if((c|0)>=21867){c=a;a=J[a>>2];if(a)continue;break ph}if((c|0)==21866)break oh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=21866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>> +2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}qh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break qh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20458]|K[20459]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20454]|K[20455]<<8|(K[20456]<<16|K[20457]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];rh:{sh:{if(!a){c=2773424;b=2773424;break sh}while(1){b=a;c=J[a+16>>2];if((c|0)>=10008){c=a;a=J[a>>2];if(a)continue;break sh}if((c|0)==10007)break rh;a=J[b+4>>2];if(a)continue;break}c= +b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=10007;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,17841,14)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];th:{uh:{if(!a){c=2773424;b=2773424;break uh}while(1){b=a;c=J[a+16>>2];if((c|0)>=856){c=a;a=J[a>>2];if(a)continue;break uh}if((c|0)==855)break th; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=855;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}vh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break vh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22714]|K[22715]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22710]|K[22711]<<8|(K[22712]<<16|K[22713]<<24);H[a|0]=b;H[a+1|0]=b>>> +8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];wh:{xh:{if(!a){c=2773424;b=2773424;break xh}while(1){b=a;c=J[a+16>>2];if((c|0)>=867){c=a;a=J[a>>2];if(a)continue;break xh}if((c|0)==866)break wh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}yh:{if(H[a+31|0]< +0){J[a+24>>2]=5;a=J[a+20>>2];break yh}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22620];b=K[22616]|K[22617]<<8|(K[22618]<<16|K[22619]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];zh:{Ah:{if(!a){c=2773424;b=2773424;break Ah}while(1){b=a;c=J[a+16>>2];if((c|0)>=1252){c=a;a=J[a>>2];if(a)continue;break Ah}if((c|0)==1251)break zh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1251;J[a+8>>2]=b;J[a>>2]=0; +J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,28297,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];Bh:{Ch:{if(!a){c=2773424;b=2773424;break Ch}while(1){b=a;c=J[a+16>>2];if((c|0)>=853){c=a;a=J[a>>2];if(a)continue;break Ch}if((c|0)==852)break Bh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+ +16>>2]=852;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Dh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Dh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24725]|K[24726]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24721]|K[24722]<<8|(K[24723]<<16|K[24724]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Eh:{Fh:{if(!a){c=2773424;b=2773424;break Fh}while(1){b=a;c=J[a+16>> +2];if((c|0)>=1251){c=a;a=J[a>>2];if(a)continue;break Fh}if((c|0)==1250)break Eh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1250;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,28528,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];Gh:{Hh:{if(!a){c=2773424;b=2773424; +break Hh}while(1){b=a;c=J[a+16>>2];if((c|0)>=937){c=a;a=J[a>>2];if(a)continue;break Hh}if((c|0)==936)break Gh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Ih:{if(H[a+31|0]<0){J[a+24>>2]=3;a=J[a+20>>2];break Ih}H[a+31|0]=3;a=a+20|0}H[a+3|0]=0;H[a+2|0]= +K[21185];b=K[21183]|K[21184]<<8;H[a|0]=b;H[a+1|0]=b>>>8;a=J[693356];Jh:{Kh:{if(!a){c=2773424;b=2773424;break Kh}while(1){b=a;c=J[a+16>>2];if((c|0)>=28593){c=a;a=J[a>>2];if(a)continue;break Kh}if((c|0)==28592)break Jh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28592;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]= +J[693357]+1}Lh:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Lh}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24794]|K[24795]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24790]|K[24791]<<8|(K[24792]<<16|K[24793]<<24);c=K[24786]|K[24787]<<8|(K[24788]<<16|K[24789]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];Mh:{Nh:{if(!a){c=2773424;b=2773424;break Nh}while(1){b=a;c=J[a+16>>2];if((c|0)>=28598){c=a;a=J[a>>2];if(a)continue;break Nh}if((c| +0)==28597)break Mh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28597;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Oh:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Oh}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22560]|K[22561]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22556]|K[22557]<<8|(K[22558]<<16|K[22559]<< +24);c=K[22552]|K[22553]<<8|(K[22554]<<16|K[22555]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];Ph:{Qh:{if(!a){c=2773424;b=2773424;break Qh}while(1){b=a;c=J[a+16>>2];if((c|0)>=738){c=a;a=J[a>>2];if(a)continue;break Qh}if((c|0)==737)break Ph;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=737;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+ +24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Rh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Rh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22528]|K[22529]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22524]|K[22525]<<8|(K[22526]<<16|K[22527]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Sh:{Th:{if(!a){c=2773424;b=2773424;break Th}while(1){b=a;c=J[a+16>>2];if((c|0)>=870){c=a;a=J[a>>2];if(a)continue;break Th}if((c| +0)==869)break Sh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=869;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Uh:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Uh}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22320]|K[22321]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22316]|K[22317]<<8|(K[22318]<<16|K[22319]<<24);H[a| +0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Vh:{Wh:{if(!a){c=2773424;b=2773424;break Wh}while(1){b=a;c=J[a+16>>2];if((c|0)>=1254){c=a;a=J[a>>2];if(a)continue;break Wh}if((c|0)==1253)break Vh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1253;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+ +1}J[699344]=0;ga(2996,a+20|0,24377,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];Xh:{Yh:{if(!a){c=2773424;b=2773424;break Yh}while(1){b=a;c=J[a+16>>2];if((c|0)>=28599){c=a;a=J[a>>2];if(a)continue;break Yh}if((c|0)==28598)break Xh;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28598;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>> +2]}Oc(J[693356],b);J[693357]=J[693357]+1}Zh:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Zh}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22420]|K[22421]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22416]|K[22417]<<8|(K[22418]<<16|K[22419]<<24);c=K[22412]|K[22413]<<8|(K[22414]<<16|K[22415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];_h:{$h:{if(!a){c=2773424;b=2773424;break $h}while(1){b=a;c=J[a+16>>2];if((c|0)>=863){c=a;a=J[a>> +2];if(a)continue;break $h}if((c|0)==862)break _h;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=862;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}ai:{if(H[a+31|0]<0){J[a+24>>2]=7;a=J[a+20>>2];break ai}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[24716]|K[24717]<<8|(K[24718]<<16|K[24719]<<24);H[a+3|0]=b;H[a+4|0]= +b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[24713]|K[24714]<<8|(K[24715]<<16|K[24716]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];bi:{ci:{if(!a){c=2773424;b=2773424;break ci}while(1){b=a;c=J[a+16>>2];if((c|0)>=1256){c=a;a=J[a>>2];if(a)continue;break ci}if((c|0)==1255)break bi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1255;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0; +J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,22717,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];di:{ei:{if(!a){c=2773424;b=2773424;break ei}while(1){b=a;c=J[a+16>>2];if((c|0)>=933){c=a;a=J[a>>2];if(a)continue;break ei}if((c|0)==932)break di;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+ +20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}fi:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break fi}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[20787];b=K[20783]|K[20784]<<8|(K[20785]<<16|K[20786]<<24);c=K[20779]|K[20780]<<8|(K[20781]<<16|K[20782]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];gi:{hi:{if(!a){c=2773424;b=2773424; +break hi}while(1){b=a;c=J[a+16>>2];if((c|0)>=951){c=a;a=J[a>>2];if(a)continue;break hi}if((c|0)==950)break gi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=950;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}ii:{if(H[a+31|0]<0){J[a+24>>2]=4;a=J[a+20>>2];break ii}H[a+31|0]=4;a=a+20|0}H[a+4|0]=0;H[a|0]=66; +H[a+1|0]=105;H[a+2|0]=103;H[a+3|0]=53;a=J[693356];ji:{ki:{if(!a){c=2773424;b=2773424;break ki}while(1){b=a;c=J[a+16>>2];if((c|0)>=950){c=a;a=J[a>>2];if(a)continue;break ki}if((c|0)==949)break ji;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0; +ga(2996,a+20|0,22489,14)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];li:{mi:{if(!a){c=2773424;b=2773424;break mi}while(1){b=a;c=J[a+16>>2];if((c|0)>=51950){c=a;a=J[a>>2];if(a)continue;break mi}if((c|0)==51949)break li;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=51949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356], +b);J[693357]=J[693357]+1}ni:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ni}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20846]|K[20847]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20842]|K[20843]<<8|(K[20844]<<16|K[20845]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];oi:{pi:{if(!a){c=2773424;b=2773424;break pi}while(1){b=a;c=J[a+16>>2];if((c|0)>=862){c=a;a=J[a>>2];if(a)continue;break pi}if((c|0)==861)break oi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=861;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}qi:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break qi}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28294]|K[28295]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28290]|K[28291]<<8|(K[28292]<<16|K[28293]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];ri:{si:{if(!a){c=2773424;b= +2773424;break si}while(1){b=a;c=J[a+16>>2];if((c|0)>=866){c=a;a=J[a>>2];if(a)continue;break si}if((c|0)==865)break ri;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=865;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}ti:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ti}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b= +K[22707]|K[22708]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22703]|K[22704]<<8|(K[22705]<<16|K[22706]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];ui:{vi:{if(!a){c=2773424;b=2773424;break vi}while(1){b=a;c=J[a+16>>2];if((c|0)>=875){c=a;a=J[a>>2];if(a)continue;break vi}if((c|0)==874)break ui;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=874;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>> +2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,22798,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];wi:{xi:{if(!a){c=2773424;b=2773424;break xi}while(1){b=a;c=J[a+16>>2];if((c|0)>=28594){c=a;a=J[a>>2];if(a)continue;break xi}if((c|0)==28593)break wi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28593;J[a+8>>2]=b;J[a>>2]=0;J[a+4>> +2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}yi:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break yi}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24420]|K[24421]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24416]|K[24417]<<8|(K[24418]<<16|K[24419]<<24);c=K[24412]|K[24413]<<8|(K[24414]<<16|K[24415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356]; +zi:{Ai:{if(!a){c=2773424;b=2773424;break Ai}while(1){b=a;c=J[a+16>>2];if((c|0)>=28600){c=a;a=J[a>>2];if(a)continue;break Ai}if((c|0)==28599)break zi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28599;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Bi:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Bi}H[a+ +31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22331]|K[22332]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22327]|K[22328]<<8|(K[22329]<<16|K[22330]<<24);c=K[22323]|K[22324]<<8|(K[22325]<<16|K[22326]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];Ci:{Di:{if(!a){c=2773424;b=2773424;break Di}while(1){b=a;c=J[a+16>>2];if((c|0)>=858){c=a;a=J[a>>2];if(a)continue;break Di}if((c|0)==857)break Ci;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]= +0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=857;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Ei:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ei}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22508]|K[22509]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22504]|K[22505]<<8|(K[22506]<<16|K[22507]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Fi:{Gi:{if(!a){c= +2773424;b=2773424;break Gi}while(1){b=a;c=J[a+16>>2];if((c|0)>=1255){c=a;a=J[a>>2];if(a)continue;break Gi}if((c|0)==1254)break Fi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1254;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,22810,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg; +a=J[693356];Hi:{Ii:{if(!a){c=2773424;b=2773424;break Ii}while(1){b=a;c=J[a+16>>2];if((c|0)>=28592){c=a;a=J[a>>2];if(a)continue;break Ii}if((c|0)==28591)break Hi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28591;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Ji:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>> +2];break Ji}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[28337]|K[28338]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[28333]|K[28334]<<8|(K[28335]<<16|K[28336]<<24);c=K[28329]|K[28330]<<8|(K[28331]<<16|K[28332]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];Ki:{Li:{if(!a){c=2773424;b=2773424;break Li}while(1){b=a;c=J[a+16>>2];if((c|0)>=28606){c=a;a=J[a>>2];if(a)continue;break Li}if((c|0)==28605)break Ki;a=J[b+4>>2];if(a)continue;break}c= +b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=28605;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,22730,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];Mi:{Ni:{if(!a){c=2773424;b=2773424;break Ni}while(1){b=a;c=J[a+16>>2];if((c|0)>=851){c=a;a=J[a>>2];if(a)continue;break Ni}if((c|0)==850)break Mi; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=850;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Oi:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Oi}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28525]|K[28526]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28521]|K[28522]<<8|(K[28523]<<16|K[28524]<<24);H[a|0]=b;H[a+1|0]=b>>> +8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Pi:{Qi:{if(!a){c=2773424;b=2773424;break Qi}while(1){b=a;c=J[a+16>>2];if((c|0)>=859){c=a;a=J[a>>2];if(a)continue;break Qi}if((c|0)==858)break Pi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=858;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Ri:{if(H[a+31|0]< +0){J[a+24>>2]=6;a=J[a+20>>2];break Ri}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22353]|K[22354]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22349]|K[22350]<<8|(K[22351]<<16|K[22352]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Si:{Ti:{if(!a){c=2773424;b=2773424;break Ti}while(1){b=a;c=J[a+16>>2];if((c|0)>=861){c=a;a=J[a>>2];if(a)continue;break Ti}if((c|0)==860)break Si;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]= +860;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Ui:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ui}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28518]|K[28519]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28514]|K[28515]<<8|(K[28516]<<16|K[28517]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Vi:{Wi:{if(!a){c=2773424;b=2773424;break Wi}while(1){b=a;c=J[a+16>>2];if((c| +0)>=864){c=a;a=J[a>>2];if(a)continue;break Wi}if((c|0)==863)break Vi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=863;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Xi:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Xi}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24374]|K[24375]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b= +K[24370]|K[24371]<<8|(K[24372]<<16|K[24373]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Yi:{Zi:{if(!a){c=2773424;b=2773424;break Zi}while(1){b=a;c=J[a+16>>2];if((c|0)>=438){c=a;a=J[a>>2];if(a)continue;break Zi}if((c|0)==437)break Yi;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=437;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]= +d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}_i:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break _i}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22535]|K[22536]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22531]|K[22532]<<8|(K[22533]<<16|K[22534]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];$i:{aj:{if(!a){c=2773424;b=2773424;break aj}while(1){b=a;c=J[a+16>>2];if((c|0)>=1253){c=a;a=J[a>>2];if(a)continue;break aj}if((c|0)==1252)break $i;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]= +0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1252;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,24728,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];bj:{cj:{if(!a){c=2773424;b=2773424;break cj}while(1){b=a;c=J[a+16>>2];if((c|0)>=1259){c=a;a=J[a>>2];if(a)continue;break cj}if((c|0)==1258)break bj;a=J[b+4>>2]; +if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1258;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}J[699344]=0;ga(2996,a+20|0,22356,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Qg;a=J[693356];dj:{ej:{if(!a){c=2773424;b=2773424;break ej}while(1){b=a;c=J[a+16>>2];if((c|0)>=65002){c=a;a=J[a>>2];if(a)continue;break ej}if((c| +0)==65001)break dj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=65001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}fj:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break fj}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22410];b=K[22406]|K[22407]<<8|(K[22408]<<16|K[22409]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2| +0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];gj:{hj:{if(!a){c=2773424;b=2773424;break hj}while(1){b=a;c=J[a+16>>2];if((c|0)>=65001){c=a;a=J[a>>2];if(a)continue;break hj}if((c|0)==65E3)break gj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=65E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}ij:{if(H[a+31|0]<0){J[a+ +24>>2]=5;a=J[a+20>>2];break ij}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22550];b=K[22546]|K[22547]<<8|(K[22548]<<16|K[22549]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];jj:{kj:{if(!a){c=2773424;b=2773424;break kj}while(1){b=a;c=J[a+16>>2];if((c|0)>=1201){c=a;a=J[a>>2];if(a)continue;break kj}if((c|0)==1200)break jj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1200;J[a+8>>2]=b;J[a>>2]=0;J[a+4>> +2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}lj:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break lj}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=76;H[a+7|0]=69;a=J[693356];mj:{nj:{if(!a){c=2773424;b=2773424;break nj}while(1){b=a;c=J[a+16>>2];if((c|0)>=1202){c=a;a=J[a>>2];if(a)continue;break nj}if((c|0)==1201)break mj;a=J[b+4>>2];if(a)continue; +break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1201;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}oj:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break oj}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=66;H[a+7|0]=69;a=J[693356];pj:{qj:{if(!a){c=2773424;b=2773424;break qj}while(1){b= +a;c=J[a+16>>2];if((c|0)>=12001){c=a;a=J[a>>2];if(a)continue;break qj}if((c|0)==12E3)break pj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=12E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}rj:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break rj}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+ +2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=76;H[a+7|0]=69;a=J[693356];sj:{tj:{if(!a){c=2773424;b=2773424;break tj}while(1){b=a;c=J[a+16>>2];if((c|0)>=12002){c=a;a=J[a>>2];if(a)continue;break tj}if((c|0)==12001)break sj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=12001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356], +b);J[693357]=J[693357]+1}uj:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break uj}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=66;H[a+7|0]=69;a=J[693356];vj:{wj:{if(!a){c=2773424;b=2773424;break wj}while(1){b=a;c=J[a+16>>2];if((c|0)>=10001){c=a;a=J[a>>2];if(a)continue;break wj}if((c|0)==1E4)break vj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=1E4;J[a+8>>2]=b; +J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}xj:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break xj}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[11174];b=K[11170]|K[11171]<<8|(K[11172]<<16|K[11173]<<24);c=K[11166]|K[11167]<<8|(K[11168]<<16|K[11169]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[693356];yj:{zj:{if(!a){c= +2773424;b=2773424;break zj}while(1){b=a;c=J[a+16>>2];if((c|0)>=20933){c=a;a=J[a>>2];if(a)continue;break zj}if((c|0)==20932)break yj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=20932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}Aj:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Aj}H[a+31|0]=6;a=a+20| +0}H[a+6|0]=0;b=K[20929]|K[20930]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20925]|K[20926]<<8|(K[20927]<<16|K[20928]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[693356];Bj:{Cj:{if(!a){c=2773424;b=2773424;break Cj}while(1){b=a;c=J[a+16>>2];if((c|0)>=54937){c=a;a=J[a>>2];if(a)continue;break Cj}if((c|0)==54936)break Bj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Qg;J[a+16>>2]=54936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]= +0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[693355]>>2];if(d){J[693355]=d;b=J[c>>2]}Oc(J[693356],b);J[693357]=J[693357]+1}if(H[a+31|0]>=0)break Pg;J[a+24>>2]=7;a=J[a+20>>2];break Og}b=Z()|0;Ml(2773420,J[693356]);break b}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[28544]|K[28545]<<8|(K[28546]<<16|K[28547]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28541]|K[28542]<<8|(K[28543]<<16|K[28544]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;J[693456]=2773828;J[693457]=0; +J[693458]=0;J[693459]=2773840;J[693460]=0;J[693461]=0;a=J[699874];J[699874]=5619;J[693884]=a;J[698531]=2794128;J[698532]=0;J[698533]=0;J[699344]=0;c=_(4,32)|0;a=J[699344];J[699344]=0;Dj:{Ej:{if((a|0)!=1)Fj:{J[c+8>>2]=2794128;J[c>>2]=0;J[c+4>>2]=0;a=28596;J[c+16>>2]=28596;J[698531]=c;J[698532]=c;H[c+12|0]=1;J[698533]=1;H[c+30|0]=0;H[c+31|0]=10;b=K[22652]|K[22653]<<8|(K[22654]<<16|K[22655]<<24);d=K[22648]|K[22649]<<8|(K[22650]<<16|K[22651]<<24);H[c+20|0]=d;H[c+21|0]=d>>>8;H[c+22|0]=d>>>16;H[c+23|0]= +d>>>24;H[c+24|0]=b;H[c+25|0]=b>>>8;H[c+26|0]=b>>>16;H[c+27|0]=b>>>24;b=K[22656]|K[22657]<<8;H[c+28|0]=b;H[c+29|0]=b>>>8;Gj:{Hj:{while(1){Ij:{Jj:{if((a|0)>=721){b=J[c>>2];if(b)break Jj;a=c;break Hj}if((a|0)==720){b=c;break Gj}b=J[c+4>>2];if(!b)break Ij}a=J[b+16>>2];c=b;continue}break}a=c+4|0}J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[b+16>>2]=720;J[b+8>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[a>>2]=b;c=b;d=J[J[698531]>>2];if(d){J[698531]=d;c= +J[a>>2]}Oc(J[698532],c);J[698533]=J[698533]+1}Kj:{if(H[b+31|0]<0){J[b+24>>2]=7;a=J[b+20>>2];break Kj}H[b+31|0]=7;a=b+20|0}H[a+7|0]=0;b=K[28552]|K[28553]<<8|(K[28554]<<16|K[28555]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28549]|K[28550]<<8|(K[28551]<<16|K[28552]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Lj:{Mj:{if(!a){c=2794128;b=2794128;break Mj}while(1){b=a;c=J[a+16>>2];if((c|0)>=1257){c=a;a=J[a>>2];if(a)continue;break Mj}if((c|0)==1256)break Lj; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1256;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22622,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Nj:{Oj:{if(!a){c=2794128;b=2794128;break Oj}while(1){b=a;c=J[a+16>>2];if((c|0)>=28595){c=a;a=J[a>>2];if(a)continue; +break Oj}if((c|0)==28594)break Nj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28594;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Pj:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Pj}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22885]|K[22886]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22881]|K[22882]<<8|(K[22883]<< +16|K[22884]<<24);c=K[22877]|K[22878]<<8|(K[22879]<<16|K[22880]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];Qj:{Rj:{if(!a){c=2794128;b=2794128;break Rj}while(1){b=a;c=J[a+16>>2];if((c|0)>=28604){c=a;a=J[a>>2];if(a)continue;break Rj}if((c|0)==28603)break Qj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28603;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]= +0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,24400,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Sj:{Tj:{if(!a){c=2794128;b=2794128;break Tj}while(1){b=a;c=J[a+16>>2];if((c|0)>=776){c=a;a=J[a>>2];if(a)continue;break Tj}if((c|0)==775)break Sj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=775; +J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Uj:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Uj}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22700]|K[22701]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22696]|K[22697]<<8|(K[22698]<<16|K[22699]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Vj:{Wj:{if(!a){c=2794128;b=2794128;break Wj}while(1){b=a;c=J[a+16>>2];if((c| +0)>=1258){c=a;a=J[a>>2];if(a)continue;break Wj}if((c|0)==1257)break Vj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1257;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22511,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Xj:{Yj:{if(!a){c=2794128;b=2794128;break Yj}while(1){b= +a;c=J[a+16>>2];if((c|0)>=28605){c=a;a=J[a>>2];if(a)continue;break Yj}if((c|0)==28604)break Xj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28604;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22837,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Zj:{_j:{if(!a){c= +2794128;b=2794128;break _j}while(1){b=a;c=J[a+16>>2];if((c|0)>=28596){c=a;a=J[a>>2];if(a)continue;break _j}if((c|0)==28595)break Zj;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28595;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}$j:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break $j}H[a+31|0]=10;a=a+ +20|0}H[a+10|0]=0;b=K[22750]|K[22751]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22746]|K[22747]<<8|(K[22748]<<16|K[22749]<<24);c=K[22742]|K[22743]<<8|(K[22744]<<16|K[22745]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];ak:{bk:{if(!a){c=2794128;b=2794128;break bk}while(1){b=a;c=J[a+16>>2];if((c|0)>=20867){c=a;a=J[a>>2];if(a)continue;break bk}if((c|0)==20866)break ak;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4, +32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=20866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}ck:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break ck}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20860]|K[20861]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20856]|K[20857]<<8|(K[20858]<<16|K[20859]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];dk:{ek:{if(!a){c= +2794128;b=2794128;break ek}while(1){b=a;c=J[a+16>>2];if((c|0)>=21867){c=a;a=J[a>>2];if(a)continue;break ek}if((c|0)==21866)break dk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=21866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}fk:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break fk}H[a+31|0]=6;a=a+20| +0}H[a+6|0]=0;b=K[20458]|K[20459]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20454]|K[20455]<<8|(K[20456]<<16|K[20457]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];gk:{hk:{if(!a){c=2794128;b=2794128;break hk}while(1){b=a;c=J[a+16>>2];if((c|0)>=10008){c=a;a=J[a>>2];if(a)continue;break hk}if((c|0)==10007)break gk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=10007;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]= +0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,17841,14)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];ik:{jk:{if(!a){c=2794128;b=2794128;break jk}while(1){b=a;c=J[a+16>>2];if((c|0)>=856){c=a;a=J[a>>2];if(a)continue;break jk}if((c|0)==855)break ik;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=855;J[a+8>>2]= +b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}kk:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break kk}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22714]|K[22715]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22710]|K[22711]<<8|(K[22712]<<16|K[22713]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];lk:{mk:{if(!a){c=2794128;b=2794128;break mk}while(1){b=a;c=J[a+16>>2];if((c|0)>=867){c= +a;a=J[a>>2];if(a)continue;break mk}if((c|0)==866)break lk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=866;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}nk:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break nk}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22620];b=K[22616]|K[22617]<<8|(K[22618]<<16|K[22619]<< +24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];ok:{pk:{if(!a){c=2794128;b=2794128;break pk}while(1){b=a;c=J[a+16>>2];if((c|0)>=1252){c=a;a=J[a>>2];if(a)continue;break pk}if((c|0)==1251)break ok;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1251;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]= +J[698533]+1}J[699344]=0;ga(2996,a+20|0,28297,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];qk:{rk:{if(!a){c=2794128;b=2794128;break rk}while(1){b=a;c=J[a+16>>2];if((c|0)>=853){c=a;a=J[a>>2];if(a)continue;break rk}if((c|0)==852)break qk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=852;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b= +J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}sk:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break sk}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24725]|K[24726]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24721]|K[24722]<<8|(K[24723]<<16|K[24724]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];tk:{uk:{if(!a){c=2794128;b=2794128;break uk}while(1){b=a;c=J[a+16>>2];if((c|0)>=1251){c=a;a=J[a>>2];if(a)continue;break uk}if((c|0)==1250)break tk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a= +_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1250;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,28528,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];vk:{wk:{if(!a){c=2794128;b=2794128;break wk}while(1){b=a;c=J[a+16>>2];if((c|0)>=937){c=a;a=J[a>>2];if(a)continue;break wk}if((c|0)==936)break vk;a=J[b+4>>2];if(a)continue; +break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}xk:{if(H[a+31|0]<0){J[a+24>>2]=3;a=J[a+20>>2];break xk}H[a+31|0]=3;a=a+20|0}H[a+3|0]=0;H[a+2|0]=K[21185];b=K[21183]|K[21184]<<8;H[a|0]=b;H[a+1|0]=b>>>8;a=J[698532];yk:{zk:{if(!a){c=2794128;b=2794128;break zk}while(1){b=a;c=J[a+16>>2]; +if((c|0)>=28593){c=a;a=J[a>>2];if(a)continue;break zk}if((c|0)==28592)break yk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28592;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Ak:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Ak}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24794]|K[24795]<<8;H[a+8|0]=b;H[a+ +9|0]=b>>>8;b=K[24790]|K[24791]<<8|(K[24792]<<16|K[24793]<<24);c=K[24786]|K[24787]<<8|(K[24788]<<16|K[24789]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];Bk:{Ck:{if(!a){c=2794128;b=2794128;break Ck}while(1){b=a;c=J[a+16>>2];if((c|0)>=28598){c=a;a=J[a>>2];if(a)continue;break Ck}if((c|0)==28597)break Bk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+ +16>>2]=28597;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Dk:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Dk}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22560]|K[22561]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22556]|K[22557]<<8|(K[22558]<<16|K[22559]<<24);c=K[22552]|K[22553]<<8|(K[22554]<<16|K[22555]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]= +b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];Ek:{Fk:{if(!a){c=2794128;b=2794128;break Fk}while(1){b=a;c=J[a+16>>2];if((c|0)>=738){c=a;a=J[a>>2];if(a)continue;break Fk}if((c|0)==737)break Ek;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=737;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Gk:{if(H[a+ +31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Gk}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22528]|K[22529]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22524]|K[22525]<<8|(K[22526]<<16|K[22527]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Hk:{Ik:{if(!a){c=2794128;b=2794128;break Ik}while(1){b=a;c=J[a+16>>2];if((c|0)>=870){c=a;a=J[a>>2];if(a)continue;break Ik}if((c|0)==869)break Hk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+ +16>>2]=869;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Jk:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Jk}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22320]|K[22321]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22316]|K[22317]<<8|(K[22318]<<16|K[22319]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Kk:{Lk:{if(!a){c=2794128;b=2794128;break Lk}while(1){b=a;c=J[a+16>> +2];if((c|0)>=1254){c=a;a=J[a>>2];if(a)continue;break Lk}if((c|0)==1253)break Kk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1253;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,24377,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Mk:{Nk:{if(!a){c=2794128;b=2794128; +break Nk}while(1){b=a;c=J[a+16>>2];if((c|0)>=28599){c=a;a=J[a>>2];if(a)continue;break Nk}if((c|0)==28598)break Mk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28598;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Ok:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break Ok}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0; +b=K[22420]|K[22421]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22416]|K[22417]<<8|(K[22418]<<16|K[22419]<<24);c=K[22412]|K[22413]<<8|(K[22414]<<16|K[22415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];Pk:{Qk:{if(!a){c=2794128;b=2794128;break Qk}while(1){b=a;c=J[a+16>>2];if((c|0)>=863){c=a;a=J[a>>2];if(a)continue;break Qk}if((c|0)==862)break Pk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break Fj;J[a+16>>2]=862;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Rk:{if(H[a+31|0]<0){J[a+24>>2]=7;a=J[a+20>>2];break Rk}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[24716]|K[24717]<<8|(K[24718]<<16|K[24719]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[24713]|K[24714]<<8|(K[24715]<<16|K[24716]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3| +0]=b>>>24;a=J[698532];Sk:{Tk:{if(!a){c=2794128;b=2794128;break Tk}while(1){b=a;c=J[a+16>>2];if((c|0)>=1256){c=a;a=J[a>>2];if(a)continue;break Tk}if((c|0)==1255)break Sk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1255;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22717,12)| +0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Uk:{Vk:{if(!a){c=2794128;b=2794128;break Vk}while(1){b=a;c=J[a+16>>2];if((c|0)>=933){c=a;a=J[a>>2];if(a)continue;break Vk}if((c|0)==932)break Uk;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Wk:{if(H[a+ +31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break Wk}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[20787];b=K[20783]|K[20784]<<8|(K[20785]<<16|K[20786]<<24);c=K[20779]|K[20780]<<8|(K[20781]<<16|K[20782]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];Xk:{Yk:{if(!a){c=2794128;b=2794128;break Yk}while(1){b=a;c=J[a+16>>2];if((c|0)>=951){c=a;a=J[a>>2];if(a)continue;break Yk}if((c|0)==950)break Xk;a=J[b+4>>2];if(a)continue;break}c= +b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=950;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Zk:{if(H[a+31|0]<0){J[a+24>>2]=4;a=J[a+20>>2];break Zk}H[a+31|0]=4;a=a+20|0}H[a+4|0]=0;H[a|0]=66;H[a+1|0]=105;H[a+2|0]=103;H[a+3|0]=53;a=J[698532];_k:{$k:{if(!a){c=2794128;b=2794128;break $k}while(1){b=a;c=J[a+16>>2];if((c|0)>=950){c=a;a=J[a>> +2];if(a)continue;break $k}if((c|0)==949)break _k;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22489,14)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];al:{bl:{if(!a){c=2794128;b=2794128;break bl}while(1){b=a;c=J[a+ +16>>2];if((c|0)>=51950){c=a;a=J[a>>2];if(a)continue;break bl}if((c|0)==51949)break al;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=51949;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}cl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break cl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20846]|K[20847]<<8;H[a+4|0]= +b;H[a+5|0]=b>>>8;b=K[20842]|K[20843]<<8|(K[20844]<<16|K[20845]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];dl:{el:{if(!a){c=2794128;b=2794128;break el}while(1){b=a;c=J[a+16>>2];if((c|0)>=862){c=a;a=J[a>>2];if(a)continue;break el}if((c|0)==861)break dl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=861;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>> +2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}fl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break fl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28294]|K[28295]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28290]|K[28291]<<8|(K[28292]<<16|K[28293]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];gl:{hl:{if(!a){c=2794128;b=2794128;break hl}while(1){b=a;c=J[a+16>>2];if((c|0)>=866){c=a;a=J[a>>2];if(a)continue;break hl}if((c|0)==865)break gl;a=J[b+4>>2];if(a)continue;break}c= +b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=865;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}il:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break il}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22707]|K[22708]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22703]|K[22704]<<8|(K[22705]<<16|K[22706]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>> +24;a=J[698532];jl:{kl:{if(!a){c=2794128;b=2794128;break kl}while(1){b=a;c=J[a+16>>2];if((c|0)>=875){c=a;a=J[a>>2];if(a)continue;break kl}if((c|0)==874)break jl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=874;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22798,11)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break Fj;a=J[698532];ll:{ml:{if(!a){c=2794128;b=2794128;break ml}while(1){b=a;c=J[a+16>>2];if((c|0)>=28594){c=a;a=J[a>>2];if(a)continue;break ml}if((c|0)==28593)break ll;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28593;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}nl:{if(H[a+ +31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break nl}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[24420]|K[24421]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[24416]|K[24417]<<8|(K[24418]<<16|K[24419]<<24);c=K[24412]|K[24413]<<8|(K[24414]<<16|K[24415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];ol:{pl:{if(!a){c=2794128;b=2794128;break pl}while(1){b=a;c=J[a+16>>2];if((c|0)>=28600){c=a;a=J[a>>2];if(a)continue;break pl}if((c|0)==28599)break ol; +a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28599;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}ql:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break ql}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[22331]|K[22332]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[22327]|K[22328]<<8|(K[22329]<<16|K[22330]<<24);c=K[22323]|K[22324]<< +8|(K[22325]<<16|K[22326]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];rl:{sl:{if(!a){c=2794128;b=2794128;break sl}while(1){b=a;c=J[a+16>>2];if((c|0)>=858){c=a;a=J[a>>2];if(a)continue;break sl}if((c|0)==857)break rl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=857;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>> +2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}tl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break tl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22508]|K[22509]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22504]|K[22505]<<8|(K[22506]<<16|K[22507]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];ul:{vl:{if(!a){c=2794128;b=2794128;break vl}while(1){b=a;c=J[a+16>>2];if((c|0)>=1255){c=a;a=J[a>>2];if(a)continue;break vl}if((c|0)==1254)break ul;a=J[b+ +4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1254;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22810,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];wl:{xl:{if(!a){c=2794128;b=2794128;break xl}while(1){b=a;c=J[a+16>>2];if((c|0)>=28592){c=a;a=J[a>>2];if(a)continue; +break xl}if((c|0)==28591)break wl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28591;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}yl:{if(H[a+31|0]<0){J[a+24>>2]=10;a=J[a+20>>2];break yl}H[a+31|0]=10;a=a+20|0}H[a+10|0]=0;b=K[28337]|K[28338]<<8;H[a+8|0]=b;H[a+9|0]=b>>>8;b=K[28333]|K[28334]<<8|(K[28335]<< +16|K[28336]<<24);c=K[28329]|K[28330]<<8|(K[28331]<<16|K[28332]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];zl:{Al:{if(!a){c=2794128;b=2794128;break Al}while(1){b=a;c=J[a+16>>2];if((c|0)>=28606){c=a;a=J[a>>2];if(a)continue;break Al}if((c|0)==28605)break zl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=28605;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]= +0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22730,11)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Bl:{Cl:{if(!a){c=2794128;b=2794128;break Cl}while(1){b=a;c=J[a+16>>2];if((c|0)>=851){c=a;a=J[a>>2];if(a)continue;break Cl}if((c|0)==850)break Bl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=850; +J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Dl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Dl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28525]|K[28526]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28521]|K[28522]<<8|(K[28523]<<16|K[28524]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];El:{Fl:{if(!a){c=2794128;b=2794128;break Fl}while(1){b=a;c=J[a+16>>2];if((c| +0)>=859){c=a;a=J[a>>2];if(a)continue;break Fl}if((c|0)==858)break El;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=858;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Gl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Gl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[22353]|K[22354]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b= +K[22349]|K[22350]<<8|(K[22351]<<16|K[22352]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Hl:{Il:{if(!a){c=2794128;b=2794128;break Il}while(1){b=a;c=J[a+16>>2];if((c|0)>=861){c=a;a=J[a>>2];if(a)continue;break Il}if((c|0)==860)break Hl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=860;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]= +d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Jl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Jl}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[28518]|K[28519]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[28514]|K[28515]<<8|(K[28516]<<16|K[28517]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Kl:{Ll:{if(!a){c=2794128;b=2794128;break Ll}while(1){b=a;c=J[a+16>>2];if((c|0)>=864){c=a;a=J[a>>2];if(a)continue;break Ll}if((c|0)==863)break Kl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0; +a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=863;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Ml:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Ml}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[24374]|K[24375]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[24370]|K[24371]<<8|(K[24372]<<16|K[24373]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Nl:{Ol:{if(!a){c= +2794128;b=2794128;break Ol}while(1){b=a;c=J[a+16>>2];if((c|0)>=438){c=a;a=J[a>>2];if(a)continue;break Ol}if((c|0)==437)break Nl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=437;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Pl:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break Pl}H[a+31|0]=6;a=a+20|0}H[a+ +6|0]=0;b=K[22535]|K[22536]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[22531]|K[22532]<<8|(K[22533]<<16|K[22534]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Ql:{Rl:{if(!a){c=2794128;b=2794128;break Rl}while(1){b=a;c=J[a+16>>2];if((c|0)>=1253){c=a;a=J[a>>2];if(a)continue;break Rl}if((c|0)==1252)break Ql;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1252;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>> +2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,24728,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Sl:{Tl:{if(!a){c=2794128;b=2794128;break Tl}while(1){b=a;c=J[a+16>>2];if((c|0)>=1259){c=a;a=J[a>>2];if(a)continue;break Tl}if((c|0)==1258)break Sl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1258;J[a+8>>2]=b;J[a>> +2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}J[699344]=0;ga(2996,a+20|0,22356,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fj;a=J[698532];Ul:{Vl:{if(!a){c=2794128;b=2794128;break Vl}while(1){b=a;c=J[a+16>>2];if((c|0)>=65002){c=a;a=J[a>>2];if(a)continue;break Vl}if((c|0)==65001)break Ul;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj; +J[a+16>>2]=65001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Wl:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Wl}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22410];b=K[22406]|K[22407]<<8|(K[22408]<<16|K[22409]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];Xl:{Yl:{if(!a){c=2794128;b=2794128;break Yl}while(1){b=a;c=J[a+16>>2];if((c|0)>=65001){c= +a;a=J[a>>2];if(a)continue;break Yl}if((c|0)==65E3)break Xl;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=65E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}Zl:{if(H[a+31|0]<0){J[a+24>>2]=5;a=J[a+20>>2];break Zl}H[a+31|0]=5;a=a+20|0}H[a+5|0]=0;H[a+4|0]=K[22550];b=K[22546]|K[22547]<<8|(K[22548]<<16|K[22549]<< +24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];_l:{$l:{if(!a){c=2794128;b=2794128;break $l}while(1){b=a;c=J[a+16>>2];if((c|0)>=1201){c=a;a=J[a>>2];if(a)continue;break $l}if((c|0)==1200)break _l;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1200;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]= +J[698533]+1}am:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break am}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=76;H[a+7|0]=69;a=J[698532];bm:{cm:{if(!a){c=2794128;b=2794128;break cm}while(1){b=a;c=J[a+16>>2];if((c|0)>=1202){c=a;a=J[a>>2];if(a)continue;break cm}if((c|0)==1201)break bm;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1201;J[a+8>>2]=b;J[a>>2]=0;J[a+ +4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}dm:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break dm}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=49;H[a+5|0]=54;H[a+6|0]=66;H[a+7|0]=69;a=J[698532];em:{fm:{if(!a){c=2794128;b=2794128;break fm}while(1){b=a;c=J[a+16>>2];if((c|0)>=12001){c=a;a=J[a>>2];if(a)continue;break fm}if((c|0)==12E3)break em;a=J[b+4>>2];if(a)continue; +break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=12E3;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}gm:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break gm}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=76;H[a+7|0]=69;a=J[698532];hm:{im:{if(!a){c=2794128;b=2794128;break im}while(1){b= +a;c=J[a+16>>2];if((c|0)>=12002){c=a;a=J[a>>2];if(a)continue;break im}if((c|0)==12001)break hm;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=12001;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}jm:{if(H[a+31|0]<0){J[a+24>>2]=8;a=J[a+20>>2];break jm}H[a+31|0]=8;a=a+20|0}H[a+8|0]=0;H[a|0]=85;H[a+1|0]=84;H[a+ +2|0]=70;H[a+3|0]=45;H[a+4|0]=51;H[a+5|0]=50;H[a+6|0]=66;H[a+7|0]=69;a=J[698532];km:{lm:{if(!a){c=2794128;b=2794128;break lm}while(1){b=a;c=J[a+16>>2];if((c|0)>=10001){c=a;a=J[a>>2];if(a)continue;break lm}if((c|0)==1E4)break km;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=1E4;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]= +J[698533]+1}mm:{if(H[a+31|0]<0){J[a+24>>2]=9;a=J[a+20>>2];break mm}H[a+31|0]=9;a=a+20|0}H[a+9|0]=0;H[a+8|0]=K[11174];b=K[11170]|K[11171]<<8|(K[11172]<<16|K[11173]<<24);c=K[11166]|K[11167]<<8|(K[11168]<<16|K[11169]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;a=J[698532];nm:{om:{if(!a){c=2794128;b=2794128;break om}while(1){b=a;c=J[a+16>>2];if((c|0)>=20933){c=a;a=J[a>>2];if(a)continue;break om}if((c|0)==20932)break nm;a=J[b+4>> +2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=20932;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}pm:{if(H[a+31|0]<0){J[a+24>>2]=6;a=J[a+20>>2];break pm}H[a+31|0]=6;a=a+20|0}H[a+6|0]=0;b=K[20929]|K[20930]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[20925]|K[20926]<<8|(K[20927]<<16|K[20928]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+ +2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[698532];qm:{rm:{if(!a){c=2794128;b=2794128;break rm}while(1){b=a;c=J[a+16>>2];if((c|0)>=54937){c=a;a=J[a>>2];if(a)continue;break rm}if((c|0)==54936)break qm;a=J[b+4>>2];if(a)continue;break}c=b+4|0}J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fj;J[a+16>>2]=54936;J[a+8>>2]=b;J[a>>2]=0;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[c>>2]=a;b=a;d=J[J[698531]>>2];if(d){J[698531]=d;b=J[c>>2]}Oc(J[698532],b);J[698533]=J[698533]+1}if(H[a+31|0]>=0)break Ej; +J[a+24>>2]=7;a=J[a+20>>2];break Dj}b=Z()|0;Ml(2794124,J[698532]);break b}H[a+31|0]=7;a=a+20|0}H[a+7|0]=0;b=K[28544]|K[28545]<<8|(K[28546]<<16|K[28547]<<24);H[a+3|0]=b;H[a+4|0]=b>>>8;H[a+5|0]=b>>>16;H[a+6|0]=b>>>24;b=K[28541]|K[28542]<<8|(K[28543]<<16|K[28544]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;H[2794136]=0;H[2794147]=0;J[698550]=60;J[698551]=0;H[2794211]=1;J[698553]=62;J[698554]=0;H[2794223]=1;a=vc(16);J[698556]=a;J[698557]=2;J[698558]=-2147483644;J[a+8>>2]=0;J[a>>2]=60; +J[a+4>>2]=47;a=vc(16);J[698559]=a;J[698560]=2;J[698561]=-2147483644;J[a+8>>2]=0;J[a>>2]=47;J[a+4>>2]=62;J[698562]=32;J[698563]=0;H[2794259]=1;J[698565]=61;J[698566]=0;H[2794271]=1;J[698568]=34;J[698569]=0;H[2794283]=1;a=vc(32);J[698571]=a;J[698572]=4;J[698573]=-2147483640;b=J[615970];J[a+8>>2]=J[615969];J[a+12>>2]=b;b=J[615968];J[a>>2]=J[615967];J[a+4>>2]=b;J[a+16>>2]=0;a=vc(32);J[698574]=a;J[698575]=5;J[698576]=-2147483640;J[a+16>>2]=J[615976];b=J[615975];J[a+8>>2]=J[615974];J[a+12>>2]=b;b=J[615973]; +J[a>>2]=J[615972];J[a+4>>2]=b;J[a+20>>2]=0;J[698577]=49;J[698578]=0;H[2794319]=1;J[698580]=48;J[698581]=0;H[2794331]=1;J[698634]=2794392;J[698616]=42;return}ba(c|0);B()}ba(b|0);B()}function Dza(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=Q(0),D=0,E=0,F=0,G=0,S=0,T=0,U=0,W=0,X=Q(0),Y=0,ea=0,ia=0,ja=0,ka=0,la=0,oa=0,pa=0,qa=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka= +0,La=Q(0);if(!b){b=K[43215]|K[43216]<<8;H[a+88|0]=b;H[a+89|0]=b>>>8;b=K[43211]|K[43212]<<8|(K[43213]<<16|K[43214]<<24);c=K[43207]|K[43208]<<8|(K[43209]<<16|K[43210]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[43203]|K[43204]<<8|(K[43205]<<16|K[43206]<<24);c=K[43199]|K[43200]<<8|(K[43201]<<16|K[43202]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16; +H[a+79|0]=b>>>24;return 0}ia=kc[J[J[b>>2]+24>>2]](b)|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if(c>>>0<=1){d=vc(976);J[699344]=0;i=xf(d,1);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[i>>2]=45804;bk(i,a);h=fc-112|0;fc=h;e=0;t:{if(!b)break t;l=kc[J[J[b>>2]+24>>2]](b)|0;u:{v:{w:{x:{y:{if(!(kc[J[J[b>>2]+12>>2]](b,h+98|0,14,1,0,0)|0)){Ad(i+72|0,43505,255);break y}e=$j(i,L[h+100>>1]|L[h+102>>1]<<16);I[h+100>>1]=e;I[h+102>>1]=e>>>16;e=$j(i,L[h+108>>1]|L[h+110>>1]<<16);I[h+108>>1]=e;I[h+ +110>>1]=e>>>16;e=I[h+98>>1];if(((K[i+494|0]?e:e<<8|(e&65280)>>>8)&65535)!=19778){I[h+108>>1]=0;I[h+110>>1]=0;kc[J[J[b>>2]+20>>2]](b,l,0)|0}e=0;d=h+56|0;z:{if(!b|!d)break z;if(!(kc[J[J[b>>2]+12>>2]](b,d,40,1,0,0)|0))break z;Uq(i,d);A:{B:{C:{D:{f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if((f|0)<=63){if((f|0)==12)break D;if((f|0)==40)break A;break C}g=24;if((f|0)==64)break B;if((f|0)!=124)break C;g=84;break B}H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=0;H[d+21|0]=0;H[d+22|0]=0; +H[d+23|0]=0;e=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[d+6|0]|K[d+7|0]<<8;H[d+8|0]=e;H[d+9|0]=e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;e=K[d+4|0]|K[d+5|0]<<8;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;H[d+24|0]=0;H[d+25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+28|0]=0;H[d+29|0]=0;H[d+30|0]=0;H[d+31|0]=0;H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35|0]=0;H[d+36|0]=0;H[d+37|0]=0;H[d+38|0]=0;H[d+39|0]=0;g=-28;break B}if(f>>> +0<41|(K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24))>>>0>>0|(K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24)|(K[d+12|0]|K[d+13|0]<<8)!=1))break z;if(K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24))break A;g=f-40|0}kc[J[J[b>>2]+20>>2]](b,g,1)|0}if(!(K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24))){e=P(P(K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<< +16|K[d+7|0]<<24),K[d+14|0]|K[d+15|0]<<8)+31>>>3&536870908,K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24));H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24}e=1;if(K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24))break z;f=K[d+14|0]|K[d+15|0]<<8;f=f>>>0<9?1<>>8;H[d+34|0]=f>>>16;H[d+35|0]=f>>>24}if(!e){Ad(i+72|0,43648,255);break y}k=J[h+64>>2];e=k;if((e|0)<0){e=0-e|0;J[h+64>>2]=e}d=J[h+60>>2];if(J[i+332>>2]==-1){J[i+68>>2]=1;J[i+20>>2]=e;J[i+16>>2]=d; +Ad(i+72|0,44199,255);break y}v=J[h+56>>2];g=J[h+72>>2];m=L[h+70>>1];if(!Bi(i,d,e,m,1))break y;z=V(+J[h+80>>2]*254/1E4+.5);E:{if(R(z)<2147483648){e=~~z;break E}e=-2147483648}nn(i,e);z=V(+J[h+84>>2]*254/1E4+.5);F:{if(R(z)<2147483648){e=~~z;break F}e=-2147483648}Yq(i,e);if(J[i+332>>2]){Ad(i+72|0,44500,255);break y}e=J[i+4>>2];f=e?J[i+44>>2]?e+40|0:0:0;G:{if(!f)break G;d=J[h+88>>2];j=L[h+70>>1];d=d?d:j>>>0<9?1<>2];s=J[J[b>>2]+12>>2];if((v|0)==12){kc[s|0](b,f,P(d,3),1,e,j)|0;d=J[i+44>>2]; +H:{if(!d){e=L[i+26>>1];if(e>>>0>8)break G;d=1<>>0>1;d=e;if(j)continue;break}break G}kc[s|0](b,f,d<<2,1,e,j)|0;j=J[i+44>>2];if(!j)break G;d=0;if(j>>>0>=8){s=j&-8;while(1){e=d<<2;H[(e+f|0)+3|0]=0;H[(f+(e|4)|0)+3|0]=0;H[(f+(e|8)|0)+3|0]=0;H[(f+(e|12)|0)+3|0]=0;H[(f+(e|16)|0)+3|0]=0;H[(f+(e|20)|0)+3|0]=0;H[(f+(e|24)|0)+3|0]=0;H[(f+(e|28)|0)+3|0]=0;d=d+8|0;q=q+ +8|0;if((s|0)!=(q|0))continue;break}}e=j&7;if(!e)break G;while(1){H[(f+(d<<2)|0)+3|0]=0;d=d+1|0;n=n+1|0;if((e|0)!=(n|0))continue;break}}if(J[i+332>>2]){Ad(i+72|0,44500,255);break y}I:{J:{K:{L:switch(m-1|0){case 31:M:{if((g|0)==3){kc[J[J[b>>2]+12>>2]](b,h+44|0,12,1,0,0)|0;if((J[h+44>>2]&J[h+48>>2]&J[h+52>>2])!=-1)break M}J[h+44>>2]=16711680;J[h+48>>2]=65280;J[h+52>>2]=255}e=L[h+108>>1]|L[h+110>>1]<<16;if(e)kc[J[J[b>>2]+20>>2]](b,e+l|0,0)|0;N:switch(g|0){case 0:case 3:e=P(J[i+20>>2],J[i+16>>2])<<2;l= +Dc(e);if(!l)break K;kc[J[J[b>>2]+12>>2]](b,l,e,1,0,0)|0;O:{if(g)break O;gl(i);if(!J[i+964>>2])break O;n=J[i+20>>2];P:{if((n|0)<=0)break P;d=0;j=J[i+16>>2];if((j|0)<=0)break P;f=l+3|0;g=0;while(1){if((j|0)>0){n=f+(P(d,j)<<2)|0;e=0;while(1){j=K[n|0];yh(i,e,d,j);n=n+4|0;g=(j|0)!=0|g;e=e+1|0;j=J[i+16>>2];if((e|0)<(j|0))continue;break}n=J[i+20>>2]}d=d+1|0;if((n|0)>(d|0))continue;break}if(g&1)break O}g=J[i+964>>2];Q:{if(!g)break Q;e=P(J[i+16>>2],J[i+20>>2]);if((e|0)<=0)break Q;if(e>>>0>=4){d=e&-4;f=0;while(1){H[g| +0]=K[g|0]^-1;H[g+1|0]=K[g+1|0]^-1;H[g+2|0]=K[g+2|0]^-1;H[g+3|0]=K[g+3|0]^-1;g=g+4|0;f=f+4|0;if((d|0)!=(f|0))continue;break}}e=e&3;if(!e)break Q;f=0;while(1){H[g|0]=K[g|0]^-1;g=g+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}}Rba(i,l,J[h+44>>2],J[h+48>>2],J[h+52>>2],32);uc(l);if((k|0)<0)break v;break u;default:break N}Ad(i+72|0,44827,255);break y;case 23:e=L[h+108>>1]|L[h+110>>1]<<16;if(e)kc[J[J[b>>2]+20>>2]](b,e+l|0,0)|0;if(!g){kc[J[J[b>>2]+12>>2]](b,J[i+56>>2],J[i+32>>2],1,J[i+4>>2],J[i+8>>2])|0;break w}Ad(i+ +72|0,44827,255);break y;case 15:R:{if((g|0)==3){kc[J[J[b>>2]+12>>2]](b,h+16|0,12,1,0,0)|0;break R}J[h+24>>2]=31;J[h+16>>2]=31744;J[h+20>>2]=992}e=L[h+108>>1]|L[h+110>>1]<<16;if(e)kc[J[J[b>>2]+20>>2]](b,e+l|0,0)|0;kc[J[J[b>>2]+12>>2]](b,J[i+56>>2],P(J[i+20>>2],(J[i+16>>2]+1|0)/2|0)<<2,1,J[i+4>>2],J[i+8>>2])|0;Rba(i,J[i+56>>2],J[h+16>>2],J[h+20>>2],J[h+24>>2],16);break w;case 0:case 3:case 7:break L;default:break w}e=L[h+108>>1]|L[h+110>>1]<<16;S:{if(!e)break S;e=e+l|0;if(e>>>0>2])break S;kc[J[J[b>> +2]+20>>2]](b,e,0)|0}T:switch(g|0){case 1:break x;case 0:break J;case 2:break T;default:break I}l=0;H[h+43|0]=0;H[h+42|0]=0;J[h+36>>2]=i;e=mf(i,0);J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+32>>2]=e;if(!(kc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0))break w;j=0;e=0;while(1){U:{V:{if(!K[h+43|0]){kc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0;W:switch(K[h+43|0]){case 0:l=l+1|0;j=0;e=0;break U;case 2:kc[J[J[b>>2]+12>>2]](b,h+15|0,1,1,0,0)|0;kc[J[J[b>>2]+12>>2]](b,h+14|0,1,1,0,0)|0;l=K[h+14|0]+l|0; +j=(K[h+15|0]>>>1|0)+j|0;break U;case 1:break w;default:break W}g=0;kc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0;q=vE(h+16|0,l);if(!K[h+43|0])break U;while(1){X:{Y:{Z:{_:{d=j+q|0;if(d>>>0>=J[i+56>>2]+J[i+32>>2]>>>0){n=g&1;break _}n=g&1;f=K[h+42|0];if(e){H[d|0]=K[d|0]|(n?f&15:(f&240)>>>4|0);j=j+1|0;break _}if(n){H[d|0]=f<<4;d=K[h+43|0];break Z}H[d|0]=f&240;break Y}d=K[h+43|0];if(!n)break X}if(((d&255)-1|0)==(g|0))break X;kc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0}d=K[h+43|0]}e=!e;g=g+1|0;d=d&255;if(g>>>0< +d>>>0)continue;break}break V}q=vE(h+16|0,l);g=0;kc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0;if(!K[h+43|0])break U;while(1){d=j+q|0;$:{if(d>>>0>=J[i+56>>2]+J[i+32>>2]>>>0)break $;n=g&1;f=K[h+42|0];if(e){H[d|0]=K[d|0]|(n?f&15:(f&240)>>>4|0);j=j+1|0;break $}if(n){H[d|0]=f<<4;break $}H[d|0]=f&240}e=!e;g=g+1|0;if(g>>>0>2]+12>>2]](b,h+42|0,1,1,0,0)|0}if(kc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0)continue;break}break w}Ad(i+72|0,44573,255);break y}kc[J[J[b>> +2]+12>>2]](b,J[i+56>>2],J[i+32>>2],1,J[i+4>>2],J[i+8>>2])|0;break w}Ad(i+72|0,45296,255)}e=J[i+332>>2]==-1&J[i+68>>2]==1;break t}n=0;H[h+43|0]=0;H[h+42|0]=0;J[h+36>>2]=i;e=mf(i,0);J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+32>>2]=e;if(!(kc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0))break w;e=0;while(1){aa:{if(!K[h+43|0]){kc[J[J[b>>2]+12>>2]](b,h+43|0,1,1,0,0)|0;ba:switch(K[h+43|0]){case 0:n=n+1|0;e=0;break aa;case 2:kc[J[J[b>>2]+12>>2]](b,h+15|0,1,1,0,0)|0;kc[J[J[b>>2]+12>>2]](b,h+14|0,1, +1,0,0)|0;n=K[h+14|0]+n|0;e=K[h+15|0]+e|0;break aa;case 1:break w;default:break ba}Fa=b,Ga=vE(h+16|0,n)+e|0,Ha=K[h+43|0],Ia=1,Ja=J[i+4>>2],Ka=J[i+8>>2],Ea=J[J[b>>2]+12>>2],kc[Ea](Fa|0,Ga|0,Ha|0,Ia|0,Ja|0,Ka|0)|0;d=e;e=K[h+43|0];if(e&1){kc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0;e=K[h+43|0]}e=(e&255)+d|0;break aa}d=vE(h+16|0,n);g=0;kc[J[J[b>>2]+12>>2]](b,h+42|0,1,1,0,0)|0;if(!K[h+43|0])break aa;while(1){f=d+e|0;if(f>>>0>=J[i+56>>2]+J[i+32>>2]>>>0)break aa;H[f|0]=K[h+42|0];e=e+1|0;g=g+1|0;if(g>>>0>2]+12>>2]](b,h+43|0,1,1,0,0)|0)continue;break}}if((k|0)>=0)break u}tE(i);e=1;break t}e=1}fc=h+112|0;if(!e)break s;break b}switch(c-2|0){case 9:case 10:case 11:case 12:case 13:break i;case 7:break j;case 6:break k;case 5:break l;case 15:break m;case 4:break n;case 2:break o;case 0:break p;case 3:break q;case 1:break r;case 18:break g;case 16:break h;default:break d}}of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(1E3);J[699344]= +0;i=OO(d);e=J[699344];J[699344]=0;if((e|0)==1)break f;bk(i,a);s=fc-848|0;fc=s;j=Dc(40);J[j>>2]=0;J[699344]=0;q=_(4,516)|0;f=J[699344];J[699344]=0;ca:{da:{ea:{fa:{ga:{if((f|0)==1)break ga;l=4;g=-1;ha:{if(!f)break ha;d=J[699345];if(!d)break ha;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}d=gc;if((g|0)==1)break fa;J[699344]=0;r=aa(56,q|0,i+496|0)|0;f=J[699344];J[699344]=0;g=-1;ia:{if(!f)break ia;d=J[699345];if(!d)break ia;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}d=gc;if((g|0)==1)break fa;if((f|0)==1){e=Z()|0; +J[699344]=0;uc(q);f=J[699344];J[699344]=0;g=-1;ja:{if(!f)break ja;d=J[699345];if(!d)break ja;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}d=gc;if((g|0)!=1)break ea;break fa}J[i+976>>2]=r;e=J[J[b>>2]+24>>2];J[699344]=0;q=_(e|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break ga;g=-1;ka:{if(!f)break ka;d=J[699345];if(!d)break ka;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}d=gc;if((g|0)==1)break fa;e=J[i+976>>2];J[699344]=0;ga(58,e|0,b|0,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break ga;g=-1;la:{if(!f)break la;d= +J[699345];if(!d)break la;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}d=gc;if((g|0)==1)break fa;e=J[J[b>>2]+20>>2];J[699344]=0;ga(e|0,b|0,q|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break ga;g=-1;ma:{if(!f)break ma;d=J[699345];if(!d)break ma;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}d=gc;if((g|0)==1)break fa;q=K[J[J[i+976>>2]>>2]+460|0];J[699344]=0;mf(i,0);f=J[699344];J[699344]=0;if((f|0)==1)break ga;g=-1;na:{if(!f)break na;d=J[699345];if(!d)break na;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}A=!q;d=gc;if((g|0)== +1)break fa;J[699344]=0;J[s+356>>2]=i+72;q=Bq(s+68|0);f=J[699344];J[699344]=0;if((f|0)==1)break ga;g=-1;oa:{if(!f)break oa;d=J[699345];if(!d)break oa;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}p=i+52|0;d=gc;if((g|0)==1)break fa;J[s+68>>2]=61;J[s+360>>2]=q;J[699344]=0;J[s+52>>2]=62;J[s+48>>2]=63;J[s+44>>2]=64;J[s+40>>2]=65;J[s+36>>2]=66;J[s+24>>2]=67;J[s+20>>2]=68;J[s+16>>2]=69;J[s+56>>2]=b;J[s+28>>2]=0;J[s+32>>2]=0;e=_(27,4096)|0;f=J[699344];J[699344]=0;if((f|0)==1)break ga;g=-1;pa:{if(!f)break pa;d=J[699345]; +if(!d)break pa;g=Pc(J[f>>2],j,4);if(!g)break da;gc=d}r=s+28|0;d=gc;if((g|0)==1)break fa;J[s+60>>2]=e;q=s+60|0;d=0;o=s+200|0;j=Hf(o,1,j,4);l=gc;break fa}a=Z()|0;uc(j);break a}qa:while(1){n=d;ra:{sa:{if(d){J[699344]=0;$(70,s+360|0);f=J[699344];J[699344]=0;g=-1;ta:{if(!f)break ta;d=J[699345];if(!d)break ta;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)!=1)break sa;break ra}J[699344]=0;ca(71,s+360|0,80,488);f=J[699344];J[699344]=0;g=-1;ua:{if(!f)break ua;d=J[699345];if(!d)break ua; +g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[699344]=0;J[s+384>>2]=r;aa(72,s+360|0,1)|0;f=J[699344];J[699344]=0;g=-1;va:{if(!f)break va;d=J[699345];if(!d)break va;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[699344]=0;h=Xq(i,3);f=J[699344];J[699344]=0;g=-1;wa:{if(!f)break wa;d=J[699345];if(!d)break wa;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;if(h&128)J[s+404>>2]=1;if(h&256){J[699344]= +0;J[s+444>>2]=1;C=Q(N[i+344>>2]+Q(.5));xa:{if(C=Q(0)){e=~~C>>>0;break xa}e=0}f=J[699344];J[699344]=0;g=-1;ya:{if(!f)break ya;d=J[699345];if(!d)break ya;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[s+456>>2]=e}if(h&512)J[s+448>>2]=J[i+996>>2];if(h&1024)J[s+452>>2]=0;if(h&2048)J[s+436>>2]=0;J[699344]=0;J[s+408>>2]=1;e=K[i+348|0];f=J[699344];J[699344]=0;g=-1;za:{if(!f)break za;d=J[699345];if(!d)break za;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d= +gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[s+412>>2]=e;g=-1;Aa:{if(J[i+332>>2]==-1){J[699344]=0;$(76,s+360|0);f=J[699344];J[699344]=0;Ba:{if(!f)break Ba;d=J[699345];if(!d)break Ba;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[i+16>>2]=J[s+472>>2];e=J[s+476>>2];J[i+68>>2]=3;J[i+20>>2]=e;break Aa}J[699344]=0;_(77,s+360|0)|0;f=J[699344];J[699344]=0;Ca:{if(!f)break Ca;d=J[699345];if(!d)break Ca;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue; +if((f|0)==1)break ra;J[699344]=0;na(78,i|0,J[s+472>>2],J[s+476>>2],J[s+484>>2]<<3,3)|0;f=J[699344];J[699344]=0;g=-1;Da:{if(!f)break Da;d=J[699345];if(!d)break Da;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;Ea:{if(!J[i+4>>2])break Ea;Fa:{Ga:{Ha:{if(!A){C=N[i+676>>2];Ia:{if(C==Q(0))break Ia;X=N[i+684>>2];if(X==Q(0))break Ia;J[699344]=0;C=Q(C/X);Ja:{if(Q(R(C))>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra}C=N[i+680>>2];if(C==Q(0))break Fa;X=N[i+684>>2];if(X==Q(0))break Fa;C=Q(C/X);if(!(Q(R(C))>1]|!L[s+652>>1])break Fa;J[699344]=0;e=J[i+364>>2];f=J[699344];J[699344]=0;g=-1;Ma:{if(!f)break Ma;d=J[699345];if(!d)break Ma;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;C=Q(Q(Q(L[s+ +654>>1])/Q(L[s+652>>1]))*Q(e|0));if(!(Q(R(C))>1]*2.54+.5);Na:{if(R(z)<2147483648){e=~~z;break Na}e=-2147483648}nn(i,e);f=J[699344];J[699344]=0;g=-1;Oa:{if(!f)break Oa;d=J[699345];if(!d)break Oa;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;z=V(+L[s+654>>1]*2.54+.5);if(!(R(z)<2147483648))break Ha;e=~~z;break Ga;default:break La}J[699344]=0;nn(i,L[s+652>>1]);f=J[699344];J[699344]=0;g=-1;Pa:{if(!f)break Pa; +d=J[699345];if(!d)break Pa;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;e=L[s+654>>1];break Ga}e=-2147483648}J[699344]=0;Yq(i,e);f=J[699344];J[699344]=0;g=-1;Qa:{if(!f)break Qa;d=J[699345];if(!d)break Qa;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra}Ra:{if(J[s+404>>2]==1){J[699344]=0;Pq(i);f=J[699344];J[699344]=0;g=-1;Sa:{if(!f)break Sa;d=J[699345];if(!d)break Sa;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue; +d=256;if((f|0)==1)break ra;break Ra}if(!J[s+444>>2]){d=0;break Ra}e=J[s+496>>2];d=J[e+8>>2];f=J[e+4>>2];e=J[e>>2];J[699344]=0;AO(i,J[s+492>>2],e,f,d);f=J[699344];J[699344]=0;g=-1;Ta:{if(!f)break Ta;d=J[699345];if(!d)break Ta;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;d=J[s+492>>2]}J[i+44>>2]=d;e=J[J[s+364>>2]+8>>2];J[699344]=0;d=e;e=P(J[s+484>>2],J[s+472>>2]);v=ha(d|0,s+360|0,1,e|0,1)|0;f=J[699344];J[699344]=0;g=-1;Ua:{if(!f)break Ua;d=J[699345];if(!d)break Ua; +g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[699344]=0;h=J[i+20>>2];f=J[699344];J[699344]=0;g=-1;Va:{if(!f)break Va;d=J[699345];if(!d)break Va;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[699344]=0;m=mf(i,0);f=J[699344];J[699344]=0;g=-1;Wa:{if(!f)break Wa;d=J[699345];if(!d)break Wa;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[699344]=0;t=J[i+52>>2];f=J[699344];J[699344]=0; +g=-1;Xa:{if(!f)break Xa;d=J[699345];if(!d)break Xa;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;J[699344]=0;u=J[i+20>>2];f=J[699344];J[699344]=0;g=-1;Ya:{if(!f)break Ya;d=J[699345];if(!d)break Ya;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra;w=-1;Za:{if(M[s+500>>2]>=M[s+476>>2])break Za;k=h-1|0;h=m+P(t,u-1|0)|0;if((e|0)<=0){if((e|0)<0){while(1){if(J[i+332>>2])break Ea;J[699344]=0;ga(86,s+360|0,v|0,1)|0;f=J[699344];J[699344]= +0;g=-1;_a:{if(!f)break _a;d=J[699345];if(!d)break _a;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;$a:{if((f|0)==1)break $a;ab:{if(!J[s+444>>2]&J[s+396>>2]==4)break ab;e=J[v>>2];J[699344]=0;m=J[i+52>>2];f=J[699344];J[699344]=0;g=-1;bb:{if(!f)break bb;d=J[699345];if(!d)break bb;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;if((f|0)==1)break $a;if(!h|!e|(m|0)<=0)break ab;xc(h,e,m)}if((k|0)>0){J[699344]=0;e=J[i+52>>2];f=J[699344];J[699344]=0;g=-1;cb:{if(!f)break cb; +d=J[699345];if(!d)break cb;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;if((f|0)==1)break $a;h=h-e|0}k=k-1|0;if(M[s+500>>2]>2])continue;break Za}break}break ra}while(1){if(J[i+332>>2])break Ea;J[699344]=0;ga(86,s+360|0,v|0,1)|0;f=J[699344];J[699344]=0;g=-1;db:{if(!f)break db;d=J[699345];if(!d)break db;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;eb:{if((f|0)==1)break eb;fb:{if(!J[s+444>>2]&J[s+396>>2]==4)break fb;m=J[v>>2];J[699344]=0;t=J[i+52>> +2];f=J[699344];J[699344]=0;g=-1;gb:{if(!f)break gb;d=J[699345];if(!d)break gb;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;if((f|0)==1)break eb;if(!h|!m)break fb;d=(e|0)>(t|0)?t:e;if((d|0)<=0)break fb;xc(h,m,d)}if((k|0)>0){J[699344]=0;m=J[i+52>>2];f=J[699344];J[699344]=0;g=-1;hb:{if(!f)break hb;d=J[699345];if(!d)break hb;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;if((f|0)==1)break eb;h=h-m|0}k=k-1|0;if(M[s+500>>2]>2])continue;break Za}break}break ra}while(1){if(J[i+ +332>>2])break Ea;J[699344]=0;ga(86,s+360|0,v|0,1)|0;f=J[699344];J[699344]=0;g=-1;ib:{if(!f)break ib;d=J[699345];if(!d)break ib;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;if((f|0)==1)break ra;m=J[v>>2];jb:{if(!(J[s+444>>2]|J[s+396>>2]!=4)){f=0;d=0;if(J[p>>2]<=0)break jb;while(1){g=d+h|0;t=K[m+(f|3)|0];H[g|0]=(P(t,K[m+(f|2)|0])>>>0)/255;H[g+1|0]=(P(t,K[m+(f|1)|0])>>>0)/255;H[g+2|0]=(P(t,K[f+m|0])>>>0)/255;d=d+3|0;if((d|0)>=J[p>>2])break jb;f=f+4|0;if((e|0)>(f|0))continue;break}break jb}J[699344]= +0;t=J[i+52>>2];f=J[699344];J[699344]=0;g=-1;kb:{if(!f)break kb;d=J[699345];if(!d)break kb;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;if((f|0)==1)break ra;if(!h|!m)break jb;d=(e|0)<0?t:(e|0)>(t|0)?t:e;if((d|0)<=0)break jb;xc(h,m,d)}if((k|0)>0){J[699344]=0;m=J[i+52>>2];f=J[699344];J[699344]=0;g=-1;lb:{if(!f)break lb;d=J[699345];if(!d)break lb;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue qa;if((f|0)==1)break ra;h=h-m|0}k=k-1|0;if(M[s+500>>2]>2])continue; +break}}J[699344]=0;_(87,s+360|0)|0;f=J[699344];J[699344]=0;mb:{if(!f)break mb;d=J[699345];if(!d)break mb;w=Pc(J[f>>2],j,l);if(!w)break da;gc=d}d=gc;if((w|0)==1)continue;if((f|0)==1)break ra;if(J[s+444>>2]|J[s+396>>2]!=3)break Aa;J[699344]=0;g=mf(i,0);f=J[699344];J[699344]=0;h=-1;nb:{if(!f)break nb;d=J[699345];if(!d)break nb;h=Pc(J[f>>2],j,l);if(!h)break da;gc=d}d=gc;if((h|0)==1)continue;if((f|0)==1)break ra;if(J[i+20>>2]<=0)break Aa;k=0;ob:{while(1){if(J[i+332>>2]){J[699344]=0;da(88,o|0,1);f=J[699344]; +J[699344]=0;pb:{if(!f)break pb;d=J[699345];if(!d)break pb;if(!Pc(J[f>>2],j,l))break da;gc=d}d=gc;continue qa}e=J[i+16>>2];J[699344]=0;ys(i,g,P(e,3));f=J[699344];J[699344]=0;h=-1;qb:{if(!f)break qb;d=J[699345];if(!d)break qb;h=Pc(J[f>>2],j,l);if(!h)break da;gc=d}d=gc;if((h|0)==1)continue qa;if((f|0)==1)break ob;g=J[p>>2]+g|0;k=k+1|0;if((k|0)>2])continue;break}break Aa}break ra}J[699344]=0;da(88,o|0,1);f=J[699344];J[699344]=0;rb:{if(!f)break rb;d=J[699345];if(!d)break rb;if(!Pc(J[f>>2],j,l))break da; +gc=d}d=gc;continue}J[699344]=0;$(70,s+360|0);f=J[699344];J[699344]=0;g=-1;sb:{if(!f)break sb;d=J[699345];if(!d)break sb;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;if((f|0)==1)break ra}e=J[q>>2];if(e){J[699344]=0;uc(e);f=J[699344];J[699344]=0;g=-1;tb:{if(!f)break tb;d=J[699345];if(!d)break tb;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue}uc(j);fc=s+848|0;e=!n;break ca}e=Z()|0;d=J[q>>2];if(!d)break ea;J[699344]=0;uc(d);f=J[699344];J[699344]=0;g=-1;ub:{if(!f)break ub; +d=J[699345];if(!d)break ub;g=Pc(J[f>>2],j,l);if(!g)break da;gc=d}d=gc;if((g|0)==1)continue;break}}uc(j);ba(e|0);B()}uc(j);nf(f,d);B()}if(e)break b;of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(980);J[699344]=0;i=xf(d,5);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[i+976>>2]=0;J[i>>2]=45848;bk(i,a);e=0;g=0;l=0;r=0;n=fc-1360|0;fc=n;vb:{wb:{xb:{yb:{zb:{Ab:{if(b){d=kc[J[J[b>>2]+24>>2]](b)|0;f=J[i+352>>2];kc[J[J[b>>2]+12>>2]](b,n+1354|0,6,1,0,0)|0;j=I[n+1356>> +1];I[n+1356>>1]=K[i+494|0]?j:j<<8|(j&65280)>>>8;j=I[n+1358>>1];j=(K[i+494|0]?j:j<<8|(j&65280)>>>8)<<16>>16;I[n+1358>>1]=j;if(L[n+1354>>1]|(L[n+1356>>1]-1&65535)>>>0>1)break xb;e=j&65535;J[i+356>>2]=e;p=Dc(e<<4);Bb:{if(!j){e=0;break Bb}while(1){e=p+(g<<4)|0;kc[J[J[b>>2]+12>>2]](b,e,16,1,0,0)|0;j=I[e+4>>1];I[e+4>>1]=K[i+494|0]?j:j<<8|(j&65280)>>>8;j=I[e+6>>1];I[e+6>>1]=K[i+494|0]?j:j<<8|(j&65280)>>>8;Ea=e,Ka=$j(i,J[e+8>>2]),J[Ea+8>>2]=Ka;Ea=e,Ka=$j(i,J[e+12>>2]),J[Ea+12>>2]=Ka;g=g+1|0;e=L[n+1358>>1]; +if(g>>>0>>0)continue;break}}if(e>>>0>f>>>0){if(J[i+332>>2]==-1){e=p+(f<<4)|0;f=K[e|0];J[i+16>>2]=f;g=K[e+1|0];J[i+20>>2]=g;if(!(f|g)){kc[J[J[b>>2]+20>>2]](b,J[e+12>>2]+d|0,0)|0;d=xf(n+288|0,0);J[699344]=0;J[d+332>>2]=-1;e=J[699344];J[699344]=0;if((e|0)==1)break wb;J[699344]=0;e=ga(55,d|0,b|0,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break wb;if(e){J[699344]=0;ga(108,i|0,d|0,1)|0;e=J[699344];J[699344]=0;if((e|0)==1)break wb;J[i+356>>2]=L[n+1358>>1]}Jj(d)}uc(p);J[i+68>>2]=5;e=1;break xb}e=p+(f<<4)| +0;kc[J[J[b>>2]+20>>2]](b,J[e+12>>2]+d|0,0)|0;Cb:{if(!(K[e|0]|K[e+1|0])){d=xf(n+288|0,0);J[699344]=0;e=ga(55,d|0,b|0,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Cb;if(e){J[699344]=0;ga(108,i|0,d|0,1)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Cb;J[i+356>>2]=L[n+1358>>1]}J[699344]=0;oba(i,5);e=J[699344];J[699344]=0;if((e|0)==1)break Cb;Jj(d);break yb}f=n+1314|0;kc[J[J[b>>2]+12>>2]](b,f,40,1,0,0)|0;Uq(i,f);k=K[n+1328|0]|K[n+1329|0]<<8;Bi(i,K[e|0],K[e+1|0],k,5);e=n+288|0;f=K[n+1346|0]|K[n+1347|0]<< +8|(K[n+1348|0]<<16|K[n+1349|0]<<24);f=f?f:J[i+44>>2];kc[J[J[b>>2]+12>>2]](b,e,(f>>>0>=256?256:f)<<2,1,0,0)|0;OE(i,e,J[i+44>>2]);Db:{if(k>>>0<=24){kc[J[J[b>>2]+12>>2]](b,J[i+56>>2],J[i+32>>2],1,0,0)|0;g=J[i+20>>2];break Db}j=0;e=P(J[i+20>>2],J[i+16>>2])<<2;d=Dc(e);kc[J[J[b>>2]+12>>2]](b,d,e,1,0,0)|0;if(!J[i+964>>2])gl(i);g=J[i+20>>2];if((g|0)>0){e=d;while(1){g=mf(i,j);h=0;if(J[i+16>>2]>0)while(1){H[g|0]=K[e|0];H[g+1|0]=K[e+1|0];H[g+2|0]=K[e+2|0];yh(i,h,j,K[e+3|0]);e=e+4|0;g=g+3|0;h=h+1|0;if((h|0)< +J[i+16>>2])continue;break}g=J[i+20>>2];j=j+1|0;if((g|0)>(j|0))continue;break}}uc(d)}e=0;q=(J[i+16>>2]+31|0)/32<<2;f=P(q,g);o=Dc(f);if(!(kc[J[J[b>>2]+12>>2]](b,o,f,1,0,0)|0))break zb;Eb:{Fb:{if((f|0)<=0)break Fb;while(1){if(!(K[e+o|0]!=255|K[o+(e|1)|0]!=255|(K[o+(e|2)|0]!=255|K[o+(e|3)|0]!=255))){e=e+4|0;if((f|0)!=(e|0))continue;break Fb}break}j=J[i+964>>2]!=0;if(!j)gl(i);f=J[i+20>>2];Gb:{if((f|0)<=0)break Gb;g=J[i+16>>2];if((g|0)<=0)break Gb;h=0;while(1){if((g|0)>0){f=o+P(h,q)|0;e=0;while(1){if(K[f+ +(e>>>3|0)|0]>>>((e^-1)&7)&1){yh(i,e,h,0);j=1;g=J[i+16>>2]}e=e+1|0;if((e|0)<(g|0))continue;break}f=J[i+20>>2]}h=h+1|0;if((h|0)<(f|0))continue;break}}if(!(j&1)){WE(i);f=J[i+20>>2]}if((f|0)<=0)break Eb;h=J[i+16>>2];if((h|0)<=0)break Eb;g=0;j=0;while(1){if((h|0)>0){s=o+P(j,q)|0;e=0;while(1){Hb:{if(!(K[s+(e>>>3|0)|0]>>>((e^-1)&7)&1))break Hb;fl(n+16|0,i,e,j,0);f=J[n+16>>2];if(!g){g=1;r=Ij(i,e,j);d=f;l=d;break Hb}g=((d|0)!=(f|0))+g|0}e=e+1|0;h=J[i+16>>2];if((e|0)<(h|0))continue;break}f=J[i+20>>2]}j=j+1| +0;if((j|0)<(f|0))continue;break}e=k>>>0>8;if(!(e|(g|0)!=1)){J[n+12>>2]=l;J[n+284>>2]=l;H[n+15|0]=0;J[i+340>>2]=K[n+12|0]|K[n+13|0]<<8|(K[n+14|0]<<16|K[n+15|0]<<24);J[i+336>>2]=J[i+44>>2]>(r|0)?r:0;WE(i);f=J[i+20>>2];break Ab}if(e)break zb;break Ab}J[i+336>>2]=0;h=0;e=0;f=fc-16|0;fc=f;Ib:{if(!J[i+4>>2])break Ib;if(L[i+26>>1]<=8){if(tp(i)){if(J[i+960>>2]){d=J[i+376>>2];e=J[i+384>>2];if((d|0)<=(e|0))break Ib;l=J[i+380>>2];if((l|0)<=J[i+372>>2])break Ib;while(1){h=J[i+372>>2];if((h|0)<(l|0)){while(1){d= +J[i+960>>2];if(d)d=K[(d+P(J[i+16>>2],e)|0)+h|0];else d=1;if(d)UE(i,h,e,vp(i,h,e)^255);l=J[i+380>>2];h=h+1|0;if((l|0)>(h|0))continue;break}d=J[i+376>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}break Ib}if(!J[i+32>>2])break Ib;h=J[i+56>>2];while(1){H[h|0]=K[h|0]^-1;h=h+1|0;e=e+1|0;if(e>>>0>2])continue;break}break Ib}d=J[i+44>>2];if(!d)break Ib;e=J[i+4>>2];g=e?d?e+40|0:0:0;if((d|0)!=1){j=d&-2;while(1){k=h<<2;e=k+g|0;H[e|0]=K[e|0]^-1;H[e+1|0]=K[e+1|0]^-1;H[e+2|0]=K[e+2|0]^-1;e=g+(k|4)|0;H[e|0]= K[e|0]^-1;H[e+1|0]=K[e+1|0]^-1;H[e+2|0]=K[e+2|0]^-1;h=h+2|0;l=l+2|0;if((j|0)!=(l|0))continue;break}}if(!(d&1))break Ib;e=g+(h<<2)|0;H[e|0]=K[e|0]^-1;H[e+1|0]=K[e+1|0]^-1;H[e+2|0]=K[e+2|0]^-1;break Ib}Jb:{if(!J[i+960>>2]){if(!J[i+32>>2])break Jb;h=J[i+56>>2];while(1){H[h|0]=K[h|0]^-1;h=h+1|0;e=e+1|0;if(e>>>0>2])continue;break}break Jb}d=J[i+376>>2];e=J[i+384>>2];if((d|0)<=(e|0))break Jb;l=J[i+380>>2];if((l|0)<=J[i+372>>2])break Jb;while(1){h=J[i+372>>2];if((h|0)<(l|0)){while(1){d=J[i+960>> -2];if(d)d=K[(d+P(J[i+16>>2],e)|0)+h|0];else d=1;if(d){tm(f+12|0,i,h,e,1);H[f+11|0]=K[f+15|0];H[f+10|0]=K[f+14|0]^-1;H[f+9|0]=K[f+13|0]^-1;H[f+8|0]=K[f+12|0]^-1;J[f+4>>2]=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);lN(i,h,e,f+4|0,0)}l=J[i+380>>2];h=h+1|0;if((l|0)>(h|0))continue;break}d=J[i+376>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}}H[i+340|0]=K[i+340|0]^-1;H[i+341|0]=K[i+341|0]^-1;H[i+342|0]=K[i+342|0]^-1}bc=f+16|0;break zb}if(k>>>0<9)break Ab;break zb}break wb}qc(p)}e=0;break xb}g=0;wc(n+ -16|0,0,256);Kb:{if((f|0)<=0)break Kb;h=J[i+16>>2];if((h|0)<=0)break Kb;while(1){e=0;if((h|0)>0){while(1){Ea=Fo(i,e,g)+(n+16|0)|0,Ka=1,H[Ea|0]=Ka;e=e+1|0;h=J[i+16>>2];if((e|0)<(h|0))continue;break}f=J[i+20>>2]}g=g+1|0;if((f|0)>(g|0))continue;break}}l=J[i+44>>2];while(1){l=l-1|0;if((l|0)<0)break zb;if(K[(n+16|0)+l|0])continue;break}Lb:{if((f|0)<=0)break Lb;g=J[i+16>>2];if((g|0)<=0)break Lb;j=0;d=l&255;h=0;while(1){if((g|0)>0){f=o+P(h,q)|0;e=0;while(1){if(K[f+(e>>>3|0)|0]>>>((e^-1)&7)&1){sm(i,e,h,d); -j=1;g=J[i+16>>2]}e=e+1|0;if((e|0)<(g|0))continue;break}f=J[i+20>>2]}h=h+1|0;if((h|0)<(f|0))continue;break}if(!(j&1))break Lb;J[i+336>>2]=J[i+44>>2]>(l|0)?l:0}SD(i)}qc(o)}qc(p);e=1}bc=n+1360|0;break vb}a=Z()|0;mj(d);break a}if(e)break b;J[a+356>>2]=J[i+356>>2];ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(1124);J[695492]=0;i=$(49,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;Gj(i,a);n=0;l=0;h=0;q=0;o=0;p=bc-3488|0;bc=p;Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{if(!b)break Sb; -gc[J[J[b>>2]+12>>2]](b,p+3475|0,13,1,0,0)|0;if((K[p+3475|0]|K[p+3476|0]<<8|(K[p+3477|0]<<16|K[p+3478|0]<<24))!=944130375)break Sb;e=(K[p+3483|0]|K[p+3484|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[p+3483|0]=e;H[p+3484|0]=e>>>8;e=(K[p+3481|0]|K[p+3482|0]<<8)<<16>>16;e=(K[i+494|0]?e:e<<8|(e&65280)>>>8)<<16>>16;H[p+3481|0]=e;H[p+3482|0]=e>>>8;if(J[i+332>>2]==-1){J[i+16>>2]=e&65535;e=K[p+3483|0]|K[p+3484|0]<<8;J[i+68>>2]=2;J[i+20>>2]=e;n=1;break Sb}d=1;e=H[p+3485|0];f=(e&7)+1|0;I[p+2696>>1]=1<< -f;I[p+2694>>1]=(e>>>4&7)+1;if((e|0)<0){gc[J[J[b>>2]+12>>2]](b,p+2698|0,3<>2]+24>>2]](b)|0;tc(j+18|0,p+2694|0,772);e=1;Tb:{if((gc[J[J[b>>2]+12>>2]](b,j+17|0,1,1,0,0)|0)!=1)break Tb;m=j+22|0;while(1){f=e;g=K[j+17|0];Ub:{if(!(!g|e&1)){e=0;break Ub}e=!g;Vb:{Wb:switch((g<<24>>24)-33|0){case 0:R5(i,b);break Vb;case 26:break Tb;case 11:break Wb;default:break Ub}gc[J[J[b>>2]+12>>2]](b,j+790|0,9,1,0,0)|0;e=I[j+790>>1];I[j+790>>1]=K[i+494|0]?e:e<<8| +2];if(d)d=K[(d+P(J[i+16>>2],e)|0)+h|0];else d=1;if(d){kn(f+12|0,i,h,e,1);H[f+11|0]=K[f+15|0];H[f+10|0]=K[f+14|0]^-1;H[f+9|0]=K[f+13|0]^-1;H[f+8|0]=K[f+12|0]^-1;J[f+4>>2]=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);FO(i,h,e,f+4|0,0)}l=J[i+380>>2];h=h+1|0;if((l|0)>(h|0))continue;break}d=J[i+376>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}}H[i+340|0]=K[i+340|0]^-1;H[i+341|0]=K[i+341|0]^-1;H[i+342|0]=K[i+342|0]^-1}fc=f+16|0;break zb}if(k>>>0<9)break Ab;break zb}break wb}uc(p)}e=0;break xb}g=0;Ac(n+ +16|0,0,256);Kb:{if((f|0)<=0)break Kb;h=J[i+16>>2];if((h|0)<=0)break Kb;while(1){e=0;if((h|0)>0){while(1){Ea=vp(i,e,g)+(n+16|0)|0,Ka=1,H[Ea|0]=Ka;e=e+1|0;h=J[i+16>>2];if((e|0)<(h|0))continue;break}f=J[i+20>>2]}g=g+1|0;if((f|0)>(g|0))continue;break}}l=J[i+44>>2];while(1){l=l-1|0;if((l|0)<0)break zb;if(K[(n+16|0)+l|0])continue;break}Lb:{if((f|0)<=0)break Lb;g=J[i+16>>2];if((g|0)<=0)break Lb;j=0;d=l&255;h=0;while(1){if((g|0)>0){f=o+P(h,q)|0;e=0;while(1){if(K[f+(e>>>3|0)|0]>>>((e^-1)&7)&1){jn(i,e,h,d); +j=1;g=J[i+16>>2]}e=e+1|0;if((e|0)<(g|0))continue;break}f=J[i+20>>2]}h=h+1|0;if((h|0)<(f|0))continue;break}if(!(j&1))break Lb;J[i+336>>2]=J[i+44>>2]>(l|0)?l:0}WE(i)}uc(o)}uc(p);e=1}fc=n+1360|0;break vb}a=Z()|0;Jj(d);break a}if(e)break b;J[a+356>>2]=J[i+356>>2];of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(1124);J[699344]=0;i=_(49,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;bk(i,a);n=0;l=0;h=0;q=0;o=0;p=fc-3488|0;fc=p;Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{if(!b)break Sb; +kc[J[J[b>>2]+12>>2]](b,p+3475|0,13,1,0,0)|0;if((K[p+3475|0]|K[p+3476|0]<<8|(K[p+3477|0]<<16|K[p+3478|0]<<24))!=944130375)break Sb;e=(K[p+3483|0]|K[p+3484|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[p+3483|0]=e;H[p+3484|0]=e>>>8;e=(K[p+3481|0]|K[p+3482|0]<<8)<<16>>16;e=(K[i+494|0]?e:e<<8|(e&65280)>>>8)<<16>>16;H[p+3481|0]=e;H[p+3482|0]=e>>>8;if(J[i+332>>2]==-1){J[i+16>>2]=e&65535;e=K[p+3483|0]|K[p+3484|0]<<8;J[i+68>>2]=2;J[i+20>>2]=e;n=1;break Sb}d=1;e=H[p+3485|0];f=(e&7)+1|0;I[p+2696>>1]=1<< +f;I[p+2694>>1]=(e>>>4&7)+1;if((e|0)<0){kc[J[J[b>>2]+12>>2]](b,p+2698|0,3<>2]+24>>2]](b)|0;xc(j+18|0,p+2694|0,772);e=1;Tb:{if((kc[J[J[b>>2]+12>>2]](b,j+17|0,1,1,0,0)|0)!=1)break Tb;m=j+22|0;while(1){f=e;g=K[j+17|0];Ub:{if(!(!g|e&1)){e=0;break Ub}e=!g;Vb:{Wb:switch((g<<24>>24)-33|0){case 0:S7(i,b);break Vb;case 26:break Tb;case 11:break Wb;default:break Ub}kc[J[J[b>>2]+12>>2]](b,j+790|0,9,1,0,0)|0;e=I[j+790>>1];I[j+790>>1]=K[i+494|0]?e:e<<8| (e&65280)>>>8;e=I[j+792>>1];I[j+792>>1]=K[i+494|0]?e:e<<8|(e&65280)>>>8;e=I[j+794>>1];I[j+794>>1]=K[i+494|0]?e:e<<8|(e&65280)>>>8;e=I[j+796>>1];s=(K[i+494|0]?e:e<<8|(e&65280)>>>8)<<16>>16;I[j+796>>1]=s;g=K[k+6|0]|K[k+7|0]<<8;Xb:{if(g){e=L[j+794>>1];break Xb}g=0;e=L[j+794>>1];if(K[k+8|0]|K[k+9|0]<<8)break Xb;H[k+8|0]=s;H[k+9|0]=s>>>8;H[k+6|0]=e;H[k+7|0]=e>>>8;g=e}if(L[j+790>>1]+(e&65535)>>>0>(g&65535)>>>0)break Vb;g=s&65535;if(g+L[j+792>>1]>>>0>(K[k+8|0]|K[k+9|0]<<8)>>>0)break Vb;e=H[j+798|0];if((e| -0)<0){e=(e&7)+1|0;g=1<>>8;gc[J[J[b>>2]+12>>2]](b,m,3<>1];e=K[j+798|0]}J[j+12>>2]=0;J[i+1012>>2]=g;J[i+1E3>>2]=e&64;J[i+1016>>2]=0;J[i+1020>>2]=16384;J[i+1004>>2]=0;J[i+1008>>2]=8;e=gc[J[J[b>>2]+24>>2]](b)|0;Q5(i,b,0,I[j+794>>1],j+12|0);Yb:{if(J[j+12>>2]){g=0;gc[J[J[b>>2]+20>>2]](b,e,0)|0;H[j+799|0]=0;while(1){if(!(gc[J[J[b>>2]+12>>2]](b,j+799|0,1,1,0,0)|0))break Yb;e=g&255;g=K[j+799|0];if(e|(g|0)!=44)continue;break}gc[J[J[b>>2]+20>>2]](b,-1,1)|0;gc[J[J[b>> -2]+24>>2]](b)|0;break Yb}gc[J[J[b>>2]+20>>2]](b,(J[i+1020>>2]-J[i+1024>>2]|0)+1|0,1)|0}r=r+1|0}e=f}if((gc[J[J[b>>2]+12>>2]](b,j+17|0,1,1,0,0)|0)==1)continue;break}}gc[J[J[b>>2]+20>>2]](b,v,0)|0;bc=j+800|0;J[i+356>>2]=r;e=J[i+352>>2];if((e|0)<0|(e|0)>=(r|0))break Sb;s=(r|0)!=1?d:0;j=p+2698|0;f=0;e=1;Zb:{_b:{$b:{ac:{while(1){d=e;bc:{cc:while(1){e=d;while(1){if((gc[J[J[b>>2]+12>>2]](b,p+2693|0,1,1,0,0)|0)!=1)break bc;n=0;if(J[i+332>>2]>0)break Sb;g=H[p+2693|0];d=!g;if(!((e|d)&1)){d=0;continue cc}dc:{if((g| -0)!=33){g=g-44|0;if(!g)break dc;if((g|0)==15)break bc;continue cc}if(R5(i,b))continue;break bc}gc[J[J[b>>2]+12>>2]](b,p+3466|0,9,1,0,0)|0;d=I[p+3466>>1];I[p+3466>>1]=K[i+494|0]?d:d<<8|(d&65280)>>>8;d=I[p+3468>>1];I[p+3468>>1]=K[i+494|0]?d:d<<8|(d&65280)>>>8;d=I[p+3470>>1];I[p+3470>>1]=K[i+494|0]?d:d<<8|(d&65280)>>>8;d=I[p+3472>>1];d=(K[i+494|0]?d:d<<8|(d&65280)>>>8)<<16>>16;I[p+3472>>1]=d;u=K[p+3481|0]|K[p+3482|0]<<8;t=L[p+3470>>1];if(u>>>0>1]>>>0)continue;A=K[p+3483|0]|K[p+3484|0]<<8; -w=d&65535;if(A>>>0>1]>>>0)continue;break}break}g=H[p+3474|0];ec:{if((g|0)>=0){d=j;k=I[p+2696>>1];break ec}d=p+1920|0;g=(g&7)+1|0;gc[J[J[b>>2]+12>>2]](b,d,3<>16;r=(d|0)<3?1:(d|0)<17?4:8;fc:{if(!q){J[695492]=0;ma(78,v|0,K[p+3481|0]|K[p+3482|0]<<8,K[p+3483|0]|K[p+3484|0]<<8,r|0,2)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Ob;o=J[i+336>>2];f=K[i+979|0];J[695492]=0;Xx(v,f); -f=J[695492];J[695492]=0;if((f|0)==1)break Ob;J[695492]=0;f=$(4,976)|0;l=J[695492];J[695492]=0;if((l|0)==1)break Ob;J[695492]=0;l=ma(160,f|0,v|0,1,1,1)|0;m=J[695492];J[695492]=0;if((m|0)!=1){J[695492]=0;H[l+493|0]=0;f=J[695492];J[695492]=0;if((f|0)!=1)break fc;break Ob}a=Z()|0;qc(f);break Nb}gc:switch((f&255)-2|0){case 0:J[695492]=0;la(190,v|0,i|0,0,0,0);f=J[695492];J[695492]=0;if((f|0)==1)break Ob;J[695492]=0;Xx(v,o&255);f=J[695492];J[695492]=0;if((f|0)==1)break Ob;break fc;case 1:J[695492]=0;la(190, -v|0,i|0,0,0,0);f=J[695492];J[695492]=0;if((f|0)==1)break Ob;J[695492]=0;f=J[l+16>>2];m=J[695492];J[695492]=0;if((m|0)==1)break Ob;J[695492]=0;m=J[l+20>>2];y=J[695492];J[695492]=0;if((y|0)==1)break Ob;J[695492]=0;y=L[l+26>>1];E=J[695492];J[695492]=0;if((E|0)==1)break Ob;J[695492]=0;ma(78,v|0,f|0,m|0,y|0,2)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Ob;J[695492]=0;f=J[v+4>>2];m=J[695492];J[695492]=0;if((m|0)==1)break Ob;J[695492]=0;m=J[l+4>>2];y=J[695492];J[695492]=0;if((y|0)==1)break Ob;J[695492]= -0;y=(J[v+32>>2]+J[v+12>>2]|0)+(J[v+44>>2]<<2)|0;E=J[695492];J[695492]=0;if((E|0)==1)break Ob;tc(f,m,y);break fc;default:break gc}J[695492]=0;la(190,v|0,i|0,1,1,1);f=J[695492];J[695492]=0;if((f|0)==1)break Ob}J[695492]=0;ma(78,i|0,L[p+3470>>1],L[p+3472>>1],r|0,2)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Ob;hc:{if((H[p+3474|0]|H[p+3485|0])>=0)break hc;ic:{if(k<<16>>16<=0){f=0;break ic}if((k&65535)!=1){y=d&-2;k=0;while(1){E=p+528|0;f=g+P(n,3)|0;H[E+n|0]=K[f|0];D=p+272|0;H[D+n|0]=K[f+1|0];F=p+16|0; -H[F+n|0]=K[f+2|0];f=n|1;m=g+P(f,3)|0;H[f+E|0]=K[m|0];H[f+D|0]=K[m+1|0];H[f+F|0]=K[m+2|0];n=n+2|0;k=k+2|0;if((y|0)!=(k|0))continue;break}}f=d;if(!(d&1))break ic;g=g+P(n,3)|0;H[(p+528|0)+n|0]=K[g|0];H[(p+272|0)+n|0]=K[g+1|0];H[(p+16|0)+n|0]=K[g+2|0]}g=J[i+336>>2];if(!((g|0)<0|f>>>0>255)){n=256-f|0;wc((p+16|0)+f|0,255,n);wc((p+272|0)+f|0,255,n);wc((p+528|0)+f|0,255,n)}J[695492]=0;gN(i,(g|0)>=0?256:d,p+528|0,p+272|0,p+16|0);d=J[695492];J[695492]=0;if((d|0)!=1)break hc;a=Z()|0;break Nb}J[695492]=0;d=$(4, -24)|0;f=J[695492];J[695492]=0;jc:{kc:{lc:{if((f|0)==1)break lc;J[d+20>>2]=i;J[695492]=0;f=df(i,0);g=J[695492];J[695492]=0;if((g|0)==1)break kc;J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=f;J[d+8>>2]=0;J[d+12>>2]=0;f=J[d+20>>2];J[695492]=0;f=J[f+20>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lc;J[d+4>>2]=f-1;f=J[d+20>>2];J[695492]=0;f=df(f,0);g=J[695492];J[695492]=0;if((g|0)==1)break lc;g=J[d+20>>2];J[695492]=0;g=J[g+52>>2];n=J[695492];J[695492]=0;if((n|0)==1)break lc;n=J[d+20>>2];J[695492]=0;n=J[n+20>>2]; -k=J[695492];J[695492]=0;if((k|0)==1)break lc;J[d+16>>2]=f+P(g,n-1|0);J[p+528>>2]=0;J[i+1020>>2]=16384;J[i+1E3>>2]=K[p+3474|0]&64;J[i+1012>>2]=L[p+3472>>1];J[i+1016>>2]=0;J[i+1004>>2]=0;J[i+1008>>2]=8;f=J[J[b>>2]+24>>2];J[695492]=0;g=$(f|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Pb;J[695492]=0;ma(193,i|0,b|0,d|0,I[p+3470>>1],p+528|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Pb;qc(d);if(!J[i+332>>2])break jc;so(v);n=0;break Sb}a=Z()|0;break Nb}a=Z()|0;qc(d);break Nb}s=(!q&((t|0)!=(u|0)& -(w|0)!=(A|0)))+s|0;mc:{if(s>>>0<=1){J[695492]=0;aa(194,v|0,r|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Pb;J[695492]=0;N5(v,i,p+3466|0);d=J[695492];J[695492]=0;if((d|0)==1)break Pb;J[695492]=0;J[v+336>>2]=J[v+44>>2]>(o|0)?o:0;d=J[695492];J[695492]=0;if((d|0)==1)break Pb;J[695492]=0;d=J[i+4>>2];f=J[i+44>>2];n=J[695492];J[695492]=0;if((n|0)==1)break Pb;J[695492]=0;ca(19,v|0,(d?f?d+40|0:0:0)|0,256);d=J[695492];J[695492]=0;if((d|0)==1)break Pb;J[695492]=0;ga(108,i|0,v|0,0)|0;d=J[695492];J[695492]= -0;if((d|0)!=1)break mc;break Pb}J[i+352>>2]=J[i+356>>2]-1;nc:{if(h)break nc;J[695492]=0;d=$(4,976)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Pb;J[695492]=0;h=ma(197,d|0,K[p+3481|0]|K[p+3482|0]<<8,K[p+3483|0]|K[p+3484|0]<<8,24,2)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break nc;a=Z()|0;qc(d);break Nb}f=L[p+3472>>1];if(!f)break mc;k=0;d=L[p+3470>>1];while(1){n=d&65535;d=0;if(n){f=k^-1;n=0;while(1){J[695492]=0;d=L[p+3468>>1];r=K[p+3483|0]|K[p+3484|0]<<8;m=L[p+3466>>1];Ik(p+12|0,i,n,f+L[p+3472>>1]|0, -1);t=J[695492];J[695492]=0;if((t|0)==1)break ac;J[695492]=0;J[p+4>>2]=K[p+12|0]|K[p+13|0]<<8|(K[p+14|0]<<16|K[p+15|0]<<24);Zp(h,m+n|0,(r-k|0)+(d^-1)|0,p+4|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break ac;d=L[p+3470>>1];n=n+1|0;if(d>>>0>n>>>0)continue;break}f=L[p+3472>>1]}k=k+1|0;if(k>>>0<(f&65535)>>>0)continue;break}}r=K[i+976|0];oc:{if(J[p+528>>2]){J[695492]=0;ga(198,p|0,b|0,g|0)|0;break oc}d=J[J[b>>2]+20>>2];f=J[i+1020>>2];g=J[i+1024>>2];J[695492]=0;ga(d|0,b|0,(f-g|0)+1|0,1)|0}d=J[695492];J[695492]= -0;if((d|0)==1)break Pb;if(!(h|!K[i+493|0])){pc:{if(q)break pc;J[695492]=0;$(13,i|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Pb;d=J[i+356>>2];J[695492]=0;f=$(27,(d>>>0>1073741823?-1:d<<2)|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Pb;J[i+972>>2]=f;if((d|0)<=0)break pc;f=0;n=0;if(d>>>0>=4){m=d&-4;k=0;while(1){g=n<<2;J[g+J[i+972>>2]>>2]=0;J[J[i+972>>2]+(g|4)>>2]=0;J[J[i+972>>2]+(g|8)>>2]=0;J[J[i+972>>2]+(g|12)>>2]=0;n=n+4|0;k=k+4|0;if((m|0)!=(k|0))continue;break}}d=d&3;if(!d)break pc;while(1){J[J[i+ -972>>2]+(n<<2)>>2]=0;n=n+1|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}J[695492]=0;d=$(4,976)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Pb;J[695492]=0;f=ma(160,d|0,i|0,1,1,1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Rb;d=q<<2;J[d+J[i+972>>2]>>2]=f;d=J[d+J[i+972>>2]>>2];J[695492]=0;H[d+493|0]=0;d=J[695492];J[695492]=0;if((d|0)==1)break Pb}f=r>>>2&7;if(f>>>0<=1){if(l)gc[J[J[l>>2]+4>>2]](l);J[695492]=0;d=$(4,976)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Pb;J[695492]=0;l=ma(160,d|0,i|0,1,1,1)|0; -g=J[695492];J[695492]=0;if((g|0)==1)break Qb;J[695492]=0;H[l+493|0]=0;d=J[695492];J[695492]=0;if((d|0)==1)break Pb}d=J[i+352>>2];g=K[i+493|0];so(v);d=(d|0)!=(q|0)|(g|0)!=0;q=d+q|0;if(d)continue}break}if(!h|(s|0)<2)break $b;if(H[i+976|0]&1){ug(p+8|0,i,K[i+336|0]);J[p>>2]=K[p+8|0]|K[p+9|0]<<8|(K[p+10|0]<<16|K[p+11|0]<<24);H[p+3|0]=0;J[h+340>>2]=K[p|0]|K[p+1|0]<<8|(K[p+2|0]<<16|K[p+3|0]<<24);J[h+336>>2]=0}iE(i,h,1);break _b}a=Z()|0;break Nb}if(!h)break Zb}gc[J[J[h>>2]+4>>2]](h)}n=1;if(!l)break Sb;gc[J[J[l>> -2]+4>>2]](l)}bc=p+3488|0;break Mb}a=Z()|0;qc(d);break Nb}a=Z()|0;qc(d);break Nb}a=Z()|0;break Nb}a=Z()|0}so(v);break a}if(n)break b;J[a+356>>2]=J[i+356>>2];ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(976);J[695492]=0;i=qf(d,4);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[i>>2]=45876;Gj(i,a);s=bc-32|0;bc=s;k=zc(40);J[k>>2]=0;J[695492]=0;df(i,0);d=J[695492];J[695492]=0;qc:{rc:{if((d|0)==1)break rc;q=4;g=-1;sc:{tc:{uc:{vc:{if(!d)break vc;h=J[695493];if(!h)break vc; -g=Jc(J[d>>2],k,4);if(!g)break uc;cc=h}d=cc;wc:{if((g|0)==1)break wc;J[695492]=0;e=ha(109,43525,0,0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;xc:{if(!d)break xc;h=J[695493];if(!h)break xc;g=Jc(J[d>>2],k,4);if(!g)break uc;cc=h}d=cc;if((g|0)==1)break wc;J[s+28>>2]=e;if(!e){J[695492]=0;qd(i+72|0,43687,255);d=J[695492];J[695492]=0;g=-1;yc:{if(!d)break yc;h=J[695493];if(!h)break yc;g=Jc(J[d>>2],k,4);if(!g)break uc;cc=h}d=cc;if((g|0)==1)break wc;break tc}J[695492]=0;e=$(111,e|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break rc;g=-1;zc:{if(!d)break zc;h=J[695493];if(!h)break zc;g=Jc(J[d>>2],k,4);if(!g)break uc;cc=h}d=cc;if((g|0)==1)break wc;J[s+24>>2]=e;if(!e){J[695492]=0;ca(112,s+28|0,0,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;Ac:{if(!d)break Ac;h=J[695493];if(!h)break Ac;g=Jc(J[d>>2],k,4);if(!g)break uc;cc=h}d=cc;if((g|0)==1)break wc;J[695492]=0;qd(i+72|0,44065,255);d=J[695492];J[695492]=0;g=-1;Bc:{if(!d)break Bc;h=J[695493];if(!h)break Bc;g=Jc(J[d>>2],k,4);if(!g)break uc;cc= -h}d=cc;if((g|0)!=1)break tc;break wc}d=0;k=zf(J[s+28>>2],1,k,4);q=cc}Cc:while(1){if(d){J[695492]=0;ca(112,s+28|0,s+24|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;Dc:{if(!d)break Dc;h=J[695493];if(!h)break Dc;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)!=1)break tc;continue}J[695492]=0;ca(113,J[s+28>>2],b|0,114);d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;Ec:{if(!d)break Ec;h=J[695493];if(!h)break Ec;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)==1)continue;J[695492]= -0;e=J[s+28>>2];if(e){J[e+164>>2]=0;J[e+160>>2]=116;J[e+168>>2]=i+72}d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;Fc:{if(!d)break Fc;h=J[695493];if(!h)break Fc;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)==1)continue;J[695492]=0;da(117,J[s+28>>2],J[s+24>>2]);d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;Gc:{if(!d)break Gc;h=J[695493];if(!h)break Gc;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)==1)continue;d=J[s+24>>2];if(J[i+332>>2]==-1){J[i+16>>2]=J[d>>2];e=J[d+4>>2];J[i+68>> -2]=4;J[i+20>>2]=e;J[695492]=0;da(88,J[s+28>>2],1);d=J[695492];J[695492]=0;Hc:{if(!d)break Hc;h=J[695493];if(!h)break Hc;if(!Jc(J[d>>2],k,q))break uc;cc=h}d=cc;continue}h=24;n=3;g=1;e=0;f=1;l=0;Ic:{Jc:switch(K[d+25|0]){case 6:g=0;n=4;break Ic;default:e=K[44400]|K[44401]<<8|(K[44402]<<16|K[44403]<<24);d=K[44396]|K[44397]<<8|(K[44398]<<16|K[44399]<<24);H[i+87|0]=d;H[i+88|0]=d>>>8;H[i+89|0]=d>>>16;H[i+90|0]=d>>>24;H[i+91|0]=e;H[i+92|0]=e>>>8;H[i+93|0]=e>>>16;H[i+94|0]=e>>>24;e=K[44393]|K[44394]<<8|(K[44395]<< -16|K[44396]<<24);d=K[44389]|K[44390]<<8|(K[44391]<<16|K[44392]<<24);H[i+80|0]=d;H[i+81|0]=d>>>8;H[i+82|0]=d>>>16;H[i+83|0]=d>>>24;H[i+84|0]=e;H[i+85|0]=e>>>8;H[i+86|0]=e>>>16;H[i+87|0]=e>>>24;e=K[44385]|K[44386]<<8|(K[44387]<<16|K[44388]<<24);d=K[44381]|K[44382]<<8|(K[44383]<<16|K[44384]<<24);H[i+72|0]=d;H[i+73|0]=d>>>8;H[i+74|0]=d>>>16;H[i+75|0]=d>>>24;H[i+76|0]=e;H[i+77|0]=e>>>8;H[i+78|0]=e>>>16;H[i+79|0]=e>>>24;J[695492]=0;da(88,J[s+28>>2],1);d=J[695492];J[695492]=0;Kc:{if(!d)break Kc;h=J[695493]; -if(!h)break Kc;if(!Jc(J[d>>2],k,q))break uc;cc=h}d=cc;continue;case 4:f=2;e=1;g=0;break;case 2:break Ic;case 0:case 3:break Jc}l=K[d+30|0];h=e?8:g?l>>>0>8?8:l:l;n=f;g=0;l=e}e=J[d+4>>2];d=J[d>>2];J[695492]=0;f=ma(78,i|0,d|0,e|0,h|0,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;Lc:{if(!d)break Lc;h=J[695493];if(!h)break Lc;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;if(!f){J[695492]=0;da(88,J[s+28>>2],1);d=J[695492];J[695492]=0;Mc:{if(!d)break Mc;h=J[695493];if(!h)break Mc; -if(!Jc(J[d>>2],k,q))break uc;cc=h}d=cc;continue}Nc:{Oc:{Pc:{Qc:{e=J[s+24>>2];switch(K[e+120|0]){case 1:break Pc;case 0:break Qc;default:break Nc}}e=J[e+112>>2];J[695492]=0;wm(i,e);d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;Rc:{if(!d)break Rc;h=J[695493];if(!h)break Rc;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;e=J[J[s+24>>2]+116>>2];break Oc}e=J[e+112>>2];J[695492]=0;z=V(+(e>>>0)*254/1E4+.5);Sc:{if(R(z)<2147483648){e=~~z;break Sc}e=-2147483648}wm(i,e);d=J[695492];J[695492]= -0;if((d|0)==1)break rc;e=-1;Tc:{if(!d)break Tc;h=J[695493];if(!h)break Tc;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;z=V(+M[J[s+24>>2]+116>>2]*254/1E4+.5);if(R(z)<2147483648){e=~~z;break Oc}e=-2147483648}J[695492]=0;fq(i,e);d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;Uc:{if(!d)break Uc;h=J[695493];if(!h)break Uc;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue}e=J[s+24>>2];d=L[e+20>>1];Vc:{if(d){e=J[e+16>>2];J[695492]=0;fN(i,e,d);d=J[695492];J[695492]=0;if((d| -0)==1)break rc;e=-1;Wc:{if(!d)break Wc;h=J[695493];if(!h)break Wc;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;e=L[J[s+24>>2]+20>>1];J[695492]=0;Q7(i,e);break Vc}if(K[e+24|0]==2){J[695492]=0;_p(i,0,0,0,0,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;Xc:{if(!d)break Xc;h=J[695493];if(!h)break Xc;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;J[695492]=0;_p(i,1,85,85,85,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;Yc:{if(!d)break Yc;h=J[695493];if(!h)break Yc; -e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;J[695492]=0;_p(i,2,170,170,170,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;Zc:{if(!d)break Zc;h=J[695493];if(!h)break Zc;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;J[695492]=0;_p(i,3,255,255,255,0);break Vc}J[695492]=0;Yp(i)}d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;_c:{if(!d)break _c;h=J[695493];if(!h)break _c;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;e=J[s+24>>2];d=K[e+24| -0]>>>3|0;v=((d>>>0<=1?1:d)<<3)-8|0;$c:{ad:switch(L[e+22>>1]){case 1:if(K[e+25|0]==3){J[i+336>>2]=K[e+80|0];break $c}J[i+336>>2]=L[e+88>>1]>>>v;break $c;case 0:break $c;default:break ad}J[695492]=0;e=J[i+4>>2];f=J[i+44>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;j=e?f?e+40|0:0:0;e=-1;bd:{if(!d)break bd;h=J[695493];if(!h)break bd;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;if(!j)break $c;p=J[i+44>>2];e=J[s+24>>2];h=L[e+22>>1];r=(h|0)>(p|0)?p:h;cd:{if(!r)break cd;e=J[e+76>>2]; +0)<0){e=(e&7)+1|0;g=1<>>8;kc[J[J[b>>2]+12>>2]](b,m,3<>1];e=K[j+798|0]}J[j+12>>2]=0;J[i+1012>>2]=g;J[i+1E3>>2]=e&64;J[i+1016>>2]=0;J[i+1020>>2]=16384;J[i+1004>>2]=0;J[i+1008>>2]=8;e=kc[J[J[b>>2]+24>>2]](b)|0;R7(i,b,0,I[j+794>>1],j+12|0);Yb:{if(J[j+12>>2]){g=0;kc[J[J[b>>2]+20>>2]](b,e,0)|0;H[j+799|0]=0;while(1){if(!(kc[J[J[b>>2]+12>>2]](b,j+799|0,1,1,0,0)|0))break Yb;e=g&255;g=K[j+799|0];if(e|(g|0)!=44)continue;break}kc[J[J[b>>2]+20>>2]](b,-1,1)|0;kc[J[J[b>> +2]+24>>2]](b)|0;break Yb}kc[J[J[b>>2]+20>>2]](b,(J[i+1020>>2]-J[i+1024>>2]|0)+1|0,1)|0}r=r+1|0}e=f}if((kc[J[J[b>>2]+12>>2]](b,j+17|0,1,1,0,0)|0)==1)continue;break}}kc[J[J[b>>2]+20>>2]](b,v,0)|0;fc=j+800|0;J[i+356>>2]=r;e=J[i+352>>2];if((e|0)<0|(e|0)>=(r|0))break Sb;s=(r|0)!=1?d:0;j=p+2698|0;f=0;e=1;Zb:{_b:{$b:{ac:{while(1){d=e;bc:{cc:while(1){e=d;while(1){if((kc[J[J[b>>2]+12>>2]](b,p+2693|0,1,1,0,0)|0)!=1)break bc;n=0;if(J[i+332>>2]>0)break Sb;g=H[p+2693|0];d=!g;if(!((e|d)&1)){d=0;continue cc}dc:{if((g| +0)!=33){g=g-44|0;if(!g)break dc;if((g|0)==15)break bc;continue cc}if(S7(i,b))continue;break bc}kc[J[J[b>>2]+12>>2]](b,p+3466|0,9,1,0,0)|0;d=I[p+3466>>1];I[p+3466>>1]=K[i+494|0]?d:d<<8|(d&65280)>>>8;d=I[p+3468>>1];I[p+3468>>1]=K[i+494|0]?d:d<<8|(d&65280)>>>8;d=I[p+3470>>1];I[p+3470>>1]=K[i+494|0]?d:d<<8|(d&65280)>>>8;d=I[p+3472>>1];d=(K[i+494|0]?d:d<<8|(d&65280)>>>8)<<16>>16;I[p+3472>>1]=d;u=K[p+3481|0]|K[p+3482|0]<<8;t=L[p+3470>>1];if(u>>>0>1]>>>0)continue;A=K[p+3483|0]|K[p+3484|0]<<8; +w=d&65535;if(A>>>0>1]>>>0)continue;break}break}g=H[p+3474|0];ec:{if((g|0)>=0){d=j;k=I[p+2696>>1];break ec}d=p+1920|0;g=(g&7)+1|0;kc[J[J[b>>2]+12>>2]](b,d,3<>16;r=(d|0)<3?1:(d|0)<17?4:8;fc:{if(!q){J[699344]=0;na(78,v|0,K[p+3481|0]|K[p+3482|0]<<8,K[p+3483|0]|K[p+3484|0]<<8,r|0,2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Ob;o=J[i+336>>2];f=K[i+979|0];J[699344]=0;Oy(v,f); +f=J[699344];J[699344]=0;if((f|0)==1)break Ob;J[699344]=0;f=_(4,976)|0;l=J[699344];J[699344]=0;if((l|0)==1)break Ob;J[699344]=0;l=na(160,f|0,v|0,1,1,1)|0;m=J[699344];J[699344]=0;if((m|0)!=1){J[699344]=0;H[l+493|0]=0;f=J[699344];J[699344]=0;if((f|0)!=1)break fc;break Ob}a=Z()|0;uc(f);break Nb}gc:switch((f&255)-2|0){case 0:J[699344]=0;ma(190,v|0,i|0,0,0,0);f=J[699344];J[699344]=0;if((f|0)==1)break Ob;J[699344]=0;Oy(v,o&255);f=J[699344];J[699344]=0;if((f|0)==1)break Ob;break fc;case 1:J[699344]=0;ma(190, +v|0,i|0,0,0,0);f=J[699344];J[699344]=0;if((f|0)==1)break Ob;J[699344]=0;f=J[l+16>>2];m=J[699344];J[699344]=0;if((m|0)==1)break Ob;J[699344]=0;m=J[l+20>>2];y=J[699344];J[699344]=0;if((y|0)==1)break Ob;J[699344]=0;y=L[l+26>>1];E=J[699344];J[699344]=0;if((E|0)==1)break Ob;J[699344]=0;na(78,v|0,f|0,m|0,y|0,2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Ob;J[699344]=0;f=J[v+4>>2];m=J[699344];J[699344]=0;if((m|0)==1)break Ob;J[699344]=0;m=J[l+4>>2];y=J[699344];J[699344]=0;if((y|0)==1)break Ob;J[699344]= +0;y=(J[v+32>>2]+J[v+12>>2]|0)+(J[v+44>>2]<<2)|0;E=J[699344];J[699344]=0;if((E|0)==1)break Ob;xc(f,m,y);break fc;default:break gc}J[699344]=0;ma(190,v|0,i|0,1,1,1);f=J[699344];J[699344]=0;if((f|0)==1)break Ob}J[699344]=0;na(78,i|0,L[p+3470>>1],L[p+3472>>1],r|0,2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Ob;hc:{if((H[p+3474|0]|H[p+3485|0])>=0)break hc;ic:{if(k<<16>>16<=0){f=0;break ic}if((k&65535)!=1){y=d&-2;k=0;while(1){E=p+528|0;f=g+P(n,3)|0;H[E+n|0]=K[f|0];D=p+272|0;H[D+n|0]=K[f+1|0];F=p+16|0; +H[F+n|0]=K[f+2|0];f=n|1;m=g+P(f,3)|0;H[f+E|0]=K[m|0];H[f+D|0]=K[m+1|0];H[f+F|0]=K[m+2|0];n=n+2|0;k=k+2|0;if((y|0)!=(k|0))continue;break}}f=d;if(!(d&1))break ic;g=g+P(n,3)|0;H[(p+528|0)+n|0]=K[g|0];H[(p+272|0)+n|0]=K[g+1|0];H[(p+16|0)+n|0]=K[g+2|0]}g=J[i+336>>2];if(!((g|0)<0|f>>>0>255)){n=256-f|0;Ac((p+16|0)+f|0,255,n);Ac((p+272|0)+f|0,255,n);Ac((p+528|0)+f|0,255,n)}J[699344]=0;AO(i,(g|0)>=0?256:d,p+528|0,p+272|0,p+16|0);d=J[699344];J[699344]=0;if((d|0)!=1)break hc;a=Z()|0;break Nb}J[699344]=0;d=_(4, +24)|0;f=J[699344];J[699344]=0;jc:{kc:{lc:{if((f|0)==1)break lc;J[d+20>>2]=i;J[699344]=0;f=mf(i,0);g=J[699344];J[699344]=0;if((g|0)==1)break kc;J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=f;J[d+8>>2]=0;J[d+12>>2]=0;f=J[d+20>>2];J[699344]=0;f=J[f+20>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lc;J[d+4>>2]=f-1;f=J[d+20>>2];J[699344]=0;f=mf(f,0);g=J[699344];J[699344]=0;if((g|0)==1)break lc;g=J[d+20>>2];J[699344]=0;g=J[g+52>>2];n=J[699344];J[699344]=0;if((n|0)==1)break lc;n=J[d+20>>2];J[699344]=0;n=J[n+20>>2]; +k=J[699344];J[699344]=0;if((k|0)==1)break lc;J[d+16>>2]=f+P(g,n-1|0);J[p+528>>2]=0;J[i+1020>>2]=16384;J[i+1E3>>2]=K[p+3474|0]&64;J[i+1012>>2]=L[p+3472>>1];J[i+1016>>2]=0;J[i+1004>>2]=0;J[i+1008>>2]=8;f=J[J[b>>2]+24>>2];J[699344]=0;g=_(f|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Pb;J[699344]=0;na(193,i|0,b|0,d|0,I[p+3470>>1],p+528|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Pb;uc(d);if(!J[i+332>>2])break jc;ip(v);n=0;break Sb}a=Z()|0;break Nb}a=Z()|0;uc(d);break Nb}s=(!q&((t|0)!=(u|0)& +(w|0)!=(A|0)))+s|0;mc:{if(s>>>0<=1){J[699344]=0;aa(194,v|0,r|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Pb;J[699344]=0;O7(v,i,p+3466|0);d=J[699344];J[699344]=0;if((d|0)==1)break Pb;J[699344]=0;J[v+336>>2]=J[v+44>>2]>(o|0)?o:0;d=J[699344];J[699344]=0;if((d|0)==1)break Pb;J[699344]=0;d=J[i+4>>2];f=J[i+44>>2];n=J[699344];J[699344]=0;if((n|0)==1)break Pb;J[699344]=0;ca(19,v|0,(d?f?d+40|0:0:0)|0,256);d=J[699344];J[699344]=0;if((d|0)==1)break Pb;J[699344]=0;ga(108,i|0,v|0,0)|0;d=J[699344];J[699344]= +0;if((d|0)!=1)break mc;break Pb}J[i+352>>2]=J[i+356>>2]-1;nc:{if(h)break nc;J[699344]=0;d=_(4,976)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Pb;J[699344]=0;h=na(197,d|0,K[p+3481|0]|K[p+3482|0]<<8,K[p+3483|0]|K[p+3484|0]<<8,24,2)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break nc;a=Z()|0;uc(d);break Nb}f=L[p+3472>>1];if(!f)break mc;k=0;d=L[p+3470>>1];while(1){n=d&65535;d=0;if(n){f=k^-1;n=0;while(1){J[699344]=0;d=L[p+3468>>1];r=K[p+3483|0]|K[p+3484|0]<<8;m=L[p+3466>>1];fl(p+12|0,i,n,f+L[p+3472>>1]|0, +1);t=J[699344];J[699344]=0;if((t|0)==1)break ac;J[699344]=0;J[p+4>>2]=K[p+12|0]|K[p+13|0]<<8|(K[p+14|0]<<16|K[p+15|0]<<24);Qq(h,m+n|0,(r-k|0)+(d^-1)|0,p+4|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break ac;d=L[p+3470>>1];n=n+1|0;if(d>>>0>n>>>0)continue;break}f=L[p+3472>>1]}k=k+1|0;if(k>>>0<(f&65535)>>>0)continue;break}}r=K[i+976|0];oc:{if(J[p+528>>2]){J[699344]=0;ga(198,p|0,b|0,g|0)|0;break oc}d=J[J[b>>2]+20>>2];f=J[i+1020>>2];g=J[i+1024>>2];J[699344]=0;ga(d|0,b|0,(f-g|0)+1|0,1)|0}d=J[699344];J[699344]= +0;if((d|0)==1)break Pb;if(!(h|!K[i+493|0])){pc:{if(q)break pc;J[699344]=0;_(13,i|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Pb;d=J[i+356>>2];J[699344]=0;f=_(27,(d>>>0>1073741823?-1:d<<2)|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Pb;J[i+972>>2]=f;if((d|0)<=0)break pc;f=0;n=0;if(d>>>0>=4){m=d&-4;k=0;while(1){g=n<<2;J[g+J[i+972>>2]>>2]=0;J[J[i+972>>2]+(g|4)>>2]=0;J[J[i+972>>2]+(g|8)>>2]=0;J[J[i+972>>2]+(g|12)>>2]=0;n=n+4|0;k=k+4|0;if((m|0)!=(k|0))continue;break}}d=d&3;if(!d)break pc;while(1){J[J[i+ +972>>2]+(n<<2)>>2]=0;n=n+1|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}J[699344]=0;d=_(4,976)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Pb;J[699344]=0;f=na(160,d|0,i|0,1,1,1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Rb;d=q<<2;J[d+J[i+972>>2]>>2]=f;d=J[d+J[i+972>>2]>>2];J[699344]=0;H[d+493|0]=0;d=J[699344];J[699344]=0;if((d|0)==1)break Pb}f=r>>>2&7;if(f>>>0<=1){if(l)kc[J[J[l>>2]+4>>2]](l);J[699344]=0;d=_(4,976)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Pb;J[699344]=0;l=na(160,d|0,i|0,1,1,1)|0; +g=J[699344];J[699344]=0;if((g|0)==1)break Qb;J[699344]=0;H[l+493|0]=0;d=J[699344];J[699344]=0;if((d|0)==1)break Pb}d=J[i+352>>2];g=K[i+493|0];ip(v);d=(d|0)!=(q|0)|(g|0)!=0;q=d+q|0;if(d)continue}break}if(!h|(s|0)<2)break $b;if(H[i+976|0]&1){Hg(p+8|0,i,K[i+336|0]);J[p>>2]=K[p+8|0]|K[p+9|0]<<8|(K[p+10|0]<<16|K[p+11|0]<<24);H[p+3|0]=0;J[h+340>>2]=K[p|0]|K[p+1|0]<<8|(K[p+2|0]<<16|K[p+3|0]<<24);J[h+336>>2]=0}mF(i,h,1);break _b}a=Z()|0;break Nb}if(!h)break Zb}kc[J[J[h>>2]+4>>2]](h)}n=1;if(!l)break Sb;kc[J[J[l>> +2]+4>>2]](l)}fc=p+3488|0;break Mb}a=Z()|0;uc(d);break Nb}a=Z()|0;uc(d);break Nb}a=Z()|0;break Nb}a=Z()|0}ip(v);break a}if(n)break b;J[a+356>>2]=J[i+356>>2];of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(976);J[699344]=0;i=xf(d,4);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[i>>2]=45892;bk(i,a);s=fc-32|0;fc=s;k=Dc(40);J[k>>2]=0;J[699344]=0;mf(i,0);d=J[699344];J[699344]=0;qc:{rc:{if((d|0)==1)break rc;q=4;g=-1;sc:{tc:{uc:{vc:{if(!d)break vc;h=J[699345];if(!h)break vc; +g=Pc(J[d>>2],k,4);if(!g)break uc;gc=h}d=gc;wc:{if((g|0)==1)break wc;J[699344]=0;e=ha(109,43541,0,0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;xc:{if(!d)break xc;h=J[699345];if(!h)break xc;g=Pc(J[d>>2],k,4);if(!g)break uc;gc=h}d=gc;if((g|0)==1)break wc;J[s+28>>2]=e;if(!e){J[699344]=0;Ad(i+72|0,43703,255);d=J[699344];J[699344]=0;g=-1;yc:{if(!d)break yc;h=J[699345];if(!h)break yc;g=Pc(J[d>>2],k,4);if(!g)break uc;gc=h}d=gc;if((g|0)==1)break wc;break tc}J[699344]=0;e=_(111,e|0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break rc;g=-1;zc:{if(!d)break zc;h=J[699345];if(!h)break zc;g=Pc(J[d>>2],k,4);if(!g)break uc;gc=h}d=gc;if((g|0)==1)break wc;J[s+24>>2]=e;if(!e){J[699344]=0;ca(112,s+28|0,0,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;Ac:{if(!d)break Ac;h=J[699345];if(!h)break Ac;g=Pc(J[d>>2],k,4);if(!g)break uc;gc=h}d=gc;if((g|0)==1)break wc;J[699344]=0;Ad(i+72|0,44081,255);d=J[699344];J[699344]=0;g=-1;Bc:{if(!d)break Bc;h=J[699345];if(!h)break Bc;g=Pc(J[d>>2],k,4);if(!g)break uc;gc= +h}d=gc;if((g|0)!=1)break tc;break wc}d=0;k=Hf(J[s+28>>2],1,k,4);q=gc}Cc:while(1){if(d){J[699344]=0;ca(112,s+28|0,s+24|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;Dc:{if(!d)break Dc;h=J[699345];if(!h)break Dc;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)!=1)break tc;continue}J[699344]=0;ca(113,J[s+28>>2],b|0,114);d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;Ec:{if(!d)break Ec;h=J[699345];if(!h)break Ec;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)==1)continue;J[699344]= +0;e=J[s+28>>2];if(e){J[e+164>>2]=0;J[e+160>>2]=116;J[e+168>>2]=i+72}d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;Fc:{if(!d)break Fc;h=J[699345];if(!h)break Fc;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)==1)continue;J[699344]=0;da(117,J[s+28>>2],J[s+24>>2]);d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;Gc:{if(!d)break Gc;h=J[699345];if(!h)break Gc;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)==1)continue;d=J[s+24>>2];if(J[i+332>>2]==-1){J[i+16>>2]=J[d>>2];e=J[d+4>>2];J[i+68>> +2]=4;J[i+20>>2]=e;J[699344]=0;da(88,J[s+28>>2],1);d=J[699344];J[699344]=0;Hc:{if(!d)break Hc;h=J[699345];if(!h)break Hc;if(!Pc(J[d>>2],k,q))break uc;gc=h}d=gc;continue}h=24;n=3;g=1;e=0;f=1;l=0;Ic:{Jc:switch(K[d+25|0]){case 6:g=0;n=4;break Ic;default:e=K[44416]|K[44417]<<8|(K[44418]<<16|K[44419]<<24);d=K[44412]|K[44413]<<8|(K[44414]<<16|K[44415]<<24);H[i+87|0]=d;H[i+88|0]=d>>>8;H[i+89|0]=d>>>16;H[i+90|0]=d>>>24;H[i+91|0]=e;H[i+92|0]=e>>>8;H[i+93|0]=e>>>16;H[i+94|0]=e>>>24;e=K[44409]|K[44410]<<8|(K[44411]<< +16|K[44412]<<24);d=K[44405]|K[44406]<<8|(K[44407]<<16|K[44408]<<24);H[i+80|0]=d;H[i+81|0]=d>>>8;H[i+82|0]=d>>>16;H[i+83|0]=d>>>24;H[i+84|0]=e;H[i+85|0]=e>>>8;H[i+86|0]=e>>>16;H[i+87|0]=e>>>24;e=K[44401]|K[44402]<<8|(K[44403]<<16|K[44404]<<24);d=K[44397]|K[44398]<<8|(K[44399]<<16|K[44400]<<24);H[i+72|0]=d;H[i+73|0]=d>>>8;H[i+74|0]=d>>>16;H[i+75|0]=d>>>24;H[i+76|0]=e;H[i+77|0]=e>>>8;H[i+78|0]=e>>>16;H[i+79|0]=e>>>24;J[699344]=0;da(88,J[s+28>>2],1);d=J[699344];J[699344]=0;Kc:{if(!d)break Kc;h=J[699345]; +if(!h)break Kc;if(!Pc(J[d>>2],k,q))break uc;gc=h}d=gc;continue;case 4:f=2;e=1;g=0;break;case 2:break Ic;case 0:case 3:break Jc}l=K[d+30|0];h=e?8:g?l>>>0>8?8:l:l;n=f;g=0;l=e}e=J[d+4>>2];d=J[d>>2];J[699344]=0;f=na(78,i|0,d|0,e|0,h|0,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;Lc:{if(!d)break Lc;h=J[699345];if(!h)break Lc;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;if(!f){J[699344]=0;da(88,J[s+28>>2],1);d=J[699344];J[699344]=0;Mc:{if(!d)break Mc;h=J[699345];if(!h)break Mc; +if(!Pc(J[d>>2],k,q))break uc;gc=h}d=gc;continue}Nc:{Oc:{Pc:{Qc:{e=J[s+24>>2];switch(K[e+120|0]){case 1:break Pc;case 0:break Qc;default:break Nc}}e=J[e+112>>2];J[699344]=0;nn(i,e);d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;Rc:{if(!d)break Rc;h=J[699345];if(!h)break Rc;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;e=J[J[s+24>>2]+116>>2];break Oc}e=J[e+112>>2];J[699344]=0;z=V(+(e>>>0)*254/1E4+.5);Sc:{if(R(z)<2147483648){e=~~z;break Sc}e=-2147483648}nn(i,e);d=J[699344];J[699344]= +0;if((d|0)==1)break rc;e=-1;Tc:{if(!d)break Tc;h=J[699345];if(!h)break Tc;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;z=V(+M[J[s+24>>2]+116>>2]*254/1E4+.5);if(R(z)<2147483648){e=~~z;break Oc}e=-2147483648}J[699344]=0;Yq(i,e);d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;Uc:{if(!d)break Uc;h=J[699345];if(!h)break Uc;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue}e=J[s+24>>2];d=L[e+20>>1];Vc:{if(d){e=J[e+16>>2];J[699344]=0;zO(i,e,d);d=J[699344];J[699344]=0;if((d| +0)==1)break rc;e=-1;Wc:{if(!d)break Wc;h=J[699345];if(!h)break Wc;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;e=L[J[s+24>>2]+20>>1];J[699344]=0;S9(i,e);break Vc}if(K[e+24|0]==2){J[699344]=0;Rq(i,0,0,0,0,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;Xc:{if(!d)break Xc;h=J[699345];if(!h)break Xc;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;J[699344]=0;Rq(i,1,85,85,85,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;Yc:{if(!d)break Yc;h=J[699345];if(!h)break Yc; +e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;J[699344]=0;Rq(i,2,170,170,170,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;Zc:{if(!d)break Zc;h=J[699345];if(!h)break Zc;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;J[699344]=0;Rq(i,3,255,255,255,0);break Vc}J[699344]=0;Pq(i)}d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;_c:{if(!d)break _c;h=J[699345];if(!h)break _c;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;e=J[s+24>>2];d=K[e+24| +0]>>>3|0;v=((d>>>0<=1?1:d)<<3)-8|0;$c:{ad:switch(L[e+22>>1]){case 1:if(K[e+25|0]==3){J[i+336>>2]=K[e+80|0];break $c}J[i+336>>2]=L[e+88>>1]>>>v;break $c;case 0:break $c;default:break ad}J[699344]=0;e=J[i+4>>2];f=J[i+44>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;j=e?f?e+40|0:0:0;e=-1;bd:{if(!d)break bd;h=J[699345];if(!h)break bd;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;if(!j)break $c;p=J[i+44>>2];e=J[s+24>>2];h=L[e+22>>1];r=(h|0)>(p|0)?p:h;cd:{if(!r)break cd;e=J[e+76>>2]; f=0;d=0;if(r>>>0>=4){m=r&-4;o=0;while(1){H[(j+(d<<2)|0)+3|0]=K[d+e|0];t=d|1;H[(j+(t<<2)|0)+3|0]=K[e+t|0];t=d|2;H[(j+(t<<2)|0)+3|0]=K[e+t|0];t=d|3;H[(j+(t<<2)|0)+3|0]=K[e+t|0];d=d+4|0;o=o+4|0;if((m|0)!=(o|0))continue;break}}o=r&3;if(!o)break cd;while(1){H[(j+(d<<2)|0)+3|0]=K[d+e|0];d=d+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}}dd:{if(h>>>0>=p>>>0)break dd;e=p+(h^-1)|0;d=0;f=p-h&7;if(f)while(1){H[(j+(h<<2)|0)+3|0]=255;h=h+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}if(e>>>0<7)break dd;while(1){e=j+ -(h<<2)|0;H[e+3|0]=255;H[e+7|0]=255;H[e+11|0]=255;H[e+15|0]=255;H[e+19|0]=255;H[e+23|0]=255;H[e+27|0]=255;H[e+31|0]=255;h=h+8|0;if((p|0)!=(h|0))continue;break}}H[i+389|0]=1}ed:{if(!g)break ed;J[695492]=0;e=kW(J[s+28>>2],J[s+24>>2],s+20|0,s+16|0,s+12|0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;fd:{if(!d)break fd;h=J[695493];if(!h)break fd;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)==1)continue;if(!e)break ed;e=J[s+24>>2];H[i+342|0]=L[e+82>>1]>>>v;H[i+341|0]=L[e+84>>1]>>>v;e=L[e+86>> -1];H[i+343|0]=0;J[i+336>>2]=0;H[i+340|0]=e>>>v}if(!(n&1)){J[695492]=0;$(123,i|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;gd:{if(!d)break gd;h=J[695493];if(!h)break gd;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)==1)continue}if(K[J[s+24>>2]+25|0]&2){J[695492]=0;e=J[s+28>>2];if(e)J[e+208>>2]=J[e+208>>2]|1;d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;hd:{if(!d)break hd;h=J[695493];if(!h)break hd;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)==1)continue}if(J[i+332>>2]){J[695492]= -0;da(88,J[s+28>>2],1);d=J[695492];J[695492]=0;id:{if(!d)break id;h=J[695493];if(!h)break id;if(!Jc(J[d>>2],k,q))break uc;cc=h}d=cc;continue}e=J[J[s+24>>2]+12>>2];J[695492]=0;v=$(27,e+8|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;jd:{if(!d)break jd;h=J[695493];if(!h)break jd;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;J[695492]=0;d=1;e=J[s+28>>2];if(!(!e|!K[e+398|0])){J[e+208>>2]=J[e+208>>2]|2;d=7}p=d;d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;kd:{if(!d)break kd; -h=J[695493];if(!h)break kd;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;J[695492]=0;f=eq(i,4);d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;ld:{if(!d)break ld;h=J[695493];if(!h)break ld;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;J[695492]=0;RN(i,f&-2|(p|0)>1,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;md:{if(!d)break md;h=J[695493];if(!h)break md;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue;if((p|0)>0){e=J[s+24>>2];t=K[e+30|0]>>> -3|0;m=K[e+24|0]>>>3|0;u=P(m,3);y=m<<1;E=p-1|0;o=0;while(1){J[695492]=0;f=J[i+20>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;nd:{if(!d)break nd;h=J[695493];if(!h)break nd;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue Cc;J[695492]=0;g=df(i,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;od:{if(!d)break od;h=J[695493];if(!h)break od;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue Cc;J[695492]=0;r=J[i+52>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc; -e=-1;pd:{if(!d)break pd;h=J[695493];if(!h)break pd;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue Cc;J[695492]=0;w=J[i+20>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;qd:{if(!d)break qd;h=J[695493];if(!h)break qd;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue Cc;j=f-1|0;e=g+P(r,w-1|0)|0;w=0;while(1){if(J[i+332>>2]){J[695492]=0;da(88,J[s+28>>2],1);d=J[695492];J[695492]=0;rd:{if(!d)break rd;h=J[695493];if(!h)break rd;if(!Jc(J[d>>2],k,q))break uc;cc=h}d=cc; -continue Cc}J[695492]=0;f=J[i+964>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=(f|0)!=0;f=-1;sd:{if(!d)break sd;h=J[695493];if(!h)break sd;f=Jc(J[d>>2],k,q);if(!f)break uc;cc=h}d=cc;if((f|0)==1)continue Cc;td:{if(g){g=J[i+20>>2]+(w^-1)|0;ud:{if((g|0)<0)break ud;J[695492]=0;r=J[i+20>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;f=-1;vd:{if(!d)break vd;h=J[695493];if(!h)break vd;f=Jc(J[d>>2],k,q);if(!f)break uc;cc=h}d=cc;if((f|0)==1)continue Cc;if((g|0)>(r|0))break ud;J[695492]=0;f=df(i,0); -d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;wd:{if(!d)break wd;h=J[695493];if(!h)break wd;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue Cc;J[695492]=0;j=J[i+52>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;e=-1;xd:{if(!d)break xd;h=J[695493];if(!h)break xd;e=Jc(J[d>>2],k,q);if(!e)break uc;cc=h}d=cc;if((e|0)==1)continue Cc;e=P(g,j)+f|0;j=g}yd:{if(!K[J[s+24>>2]+28|0])break yd;zd:switch(o|0){case 0:case 7:break yd;default:break zd}if(J[i+16>>2]<=0)break yd;f=0;r=0;if(l)while(1){A= -v+P(f,t)|0;H[A|0]=K[e+f|0];J[695492]=0;D=Cl(i,f,g);d=J[695492];J[695492]=0;if((d|0)==1)break rc;r=-1;Ad:{if(!d)break Ad;h=J[695493];if(!h)break Ad;r=Jc(J[d>>2],k,q);if(!r)break uc;cc=h}d=cc;if((r|0)==1)continue Cc;H[m+A|0]=D;f=f+1|0;if((f|0)>2])continue;break yd}while(1){f=v+P(r,t)|0;d=P(r,3)+e|0;H[f|0]=K[d|0];H[f+m|0]=K[d+1|0];H[f+y|0]=K[d+2|0];J[695492]=0;D=Cl(i,r,g);d=J[695492];J[695492]=0;if((d|0)==1)break rc;A=-1;Bd:{if(!d)break Bd;h=J[695493];if(!h)break Bd;A=Jc(J[d>>2],k,q);if(!A)break uc; -cc=h}d=cc;if((A|0)==1)continue Cc;H[f+u|0]=D;r=r+1|0;if((r|0)>2])continue;break}}J[695492]=0;ca(129,J[s+28>>2],v|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;f=-1;Cd:{if(!d)break Cd;h=J[695493];if(!h)break Cd;f=Jc(J[d>>2],k,q);if(!f)break uc;cc=h}d=cc;if((f|0)==1)continue Cc;if(J[i+16>>2]<=0)break td;f=0;r=0;if(l)while(1){d=v+P(f,t)|0;H[e+f|0]=K[d|0];d=K[d+m|0];J[695492]=0;hh(i,f,g,d);d=J[695492];J[695492]=0;if((d|0)==1)break rc;r=-1;Dd:{if(!d)break Dd;h=J[695493];if(!h)break Dd;r=Jc(J[d>> -2],k,q);if(!r)break uc;cc=h}d=cc;if((r|0)==1)continue Cc;f=f+1|0;if((f|0)>2])continue;break td}while(1){f=P(r,3)+e|0;d=v+P(r,t)|0;H[f|0]=K[d|0];H[f+1|0]=K[d+m|0];H[f+2|0]=K[d+y|0];d=K[d+u|0];J[695492]=0;hh(i,r,g,d);d=J[695492];J[695492]=0;if((d|0)==1)break rc;f=-1;Ed:{if(!d)break Ed;h=J[695493];if(!h)break Ed;f=Jc(J[d>>2],k,q);if(!f)break uc;cc=h}d=cc;if((f|0)==1)continue Cc;r=r+1|0;if((r|0)>2])continue;break}break td}Fd:{if(!o)break Fd;d=J[s+24>>2];if(!K[d+28|0])break Fd;Gd:{if(!e)break Gd; -g=J[d+12>>2];if((g|0)<=0)break Gd;J[695492]=0;r=J[i+52>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;f=-1;Hd:{if(!d)break Hd;h=J[695493];if(!h)break Hd;f=Jc(J[d>>2],k,q);if(!f)break uc;cc=h}d=cc;if((f|0)==1)continue Cc;tc(v,e,(g|0)>(r|0)?r:g);d=J[s+24>>2]}if(K[d+24|0]<9)break Fd;f=P(J[i+16>>2],n);if((f|0)<=0)break Fd;h=0;d=f;g=d&3;if(g)while(1){d=d-1|0;H[v+P(m,d)|0]=K[d+v|0];h=h+1|0;if((g|0)!=(h|0))continue;break}if(f>>>0<4)break Fd;while(1){f=d-1|0;H[v+P(f,m)|0]=K[f+v|0];f=d-2|0;H[v+P(f,m)|0]= -K[f+v|0];f=d-3|0;H[v+P(f,m)|0]=K[f+v|0];d=d-4|0;H[v+P(m,d)|0]=K[d+v|0];if(f>>>0>1)continue;break}}J[695492]=0;ca(129,J[s+28>>2],v|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;f=-1;Id:{if(!d)break Id;h=J[695493];if(!h)break Id;f=Jc(J[d>>2],k,q);if(!f)break uc;cc=h}d=cc;if((f|0)==1)continue Cc;r=J[s+24>>2];Jd:{if(K[r+24|0]<9)break Jd;g=P(J[i+16>>2],n);if((g|0)<=0)break Jd;h=0;d=0;if(g>>>0>=4){A=g&-4;f=0;while(1){H[d+v|0]=K[v+P(d,m)|0];D=d|1;H[D+v|0]=K[v+P(m,D)|0];D=d|2;H[D+v|0]=K[v+P(m,D)|0];D= -d|3;H[D+v|0]=K[v+P(m,D)|0];d=d+4|0;f=f+4|0;if((A|0)!=(f|0))continue;break}}f=g&3;if(!f)break Jd;while(1){H[d+v|0]=K[v+P(d,m)|0];d=d+1|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}g=J[r+12>>2];J[695492]=0;r=J[i+52>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;f=-1;Kd:{if(!d)break Kd;h=J[695493];if(!h)break Kd;f=Jc(J[d>>2],k,q);if(!f)break uc;cc=h}d=cc;if((f|0)==1)continue Cc;Ld:{if(!e)break Ld;d=(g|0)<0?r:(g|0)>(r|0)?r:g;if((d|0)<=0)break Ld;tc(e,v,d)}Md:{if(K[J[s+24>>2]+24|0]!=2|(o|0)!=(E|0))break Md; -d=J[i+16>>2];if((d|0)<=0)break Md;while(1){f=d-1|0;g=(f>>>1|0)+e|0;r=g;qa=K[g|0];g=d<<2&4;h=0-d<<1&6;H[r|0]=qa&(15<>>2|0)+e|0]&3<>>h&15)<>>0>1;d=f;if(g)continue;break}}if((j|0)>0){J[695492]=0;f=J[i+52>>2];d=J[695492];J[695492]=0;if((d|0)==1)break rc;r=-1;Nd:{if(!d)break Nd;h=J[695493];if(!h)break Nd;r=Jc(J[d>>2],k,q);if(!r)break uc;cc=h}d=cc;if((r|0)==1)continue Cc;e=e-f|0}j=j-1|0}w=w+1|0;if((w|0)>2])continue;break}o=o+1|0;if((p|0)!=(o|0))continue;break}}J[695492]= -0;qc(v);d=J[695492];J[695492]=0;g=-1;Od:{if(!d)break Od;h=J[695493];if(!h)break Od;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)==1)continue;J[695492]=0;da(131,J[s+28>>2],J[s+24>>2]);d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;Pd:{if(!d)break Pd;h=J[695493];if(!h)break Pd;g=Jc(J[d>>2],k,q);if(!g)break uc;cc=h}d=cc;if((g|0)==1)continue;J[695492]=0;ca(112,s+28|0,s+24|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break rc;g=-1;Qd:{if(!d)break Qd;h=J[695493];if(!h)break Qd;g=Jc(J[d>>2],k,q);if(!g)break uc; -cc=h}h=1;d=cc;if((g|0)==1)continue;break}break sc}qc(k);ef(d,h);B()}h=J[i+332>>2]==-1&J[i+68>>2]==4}qc(k);bc=s+32|0;break qc}a=Z()|0;qc(k);break a}if(h)break b;ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(988);J[695492]=0;i=qf(d,6);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[i+984>>2]=0;H[i+980|0]=0;J[i+976>>2]=0;J[i>>2]=47780;Gj(i,a);f=0;g=0;o=0;p=0;A=0;n=bc-336|0;bc=n;u=r6(b,43427);J[n+332>>2]=0;J[n+328>>2]=0;I[n+326>>1]=1;I[n+324>>1]=1;J[n+320>>2]= --1;I[n+318>>1]=0;I[n+316>>1]=1;I[n+314>>1]=1;Rd:{Sd:{if(!u){qd(i+72|0,43785,255);break Sd}j=0;e=bc-16|0;bc=e;d=J[u+460>>2];J[e+12>>2]=d;Td:{if(!d)break Td;while(1){if(!VT(u,e+12|0))break Td;j=j+1|0;if(J[e+12>>2])continue;break}}bc=e+16|0;J[i+356>>2]=j&65535;e=L[i+352>>1];l=bc-16|0;bc=l;j=J[u+460>>2];J[l+12>>2]=j;Ud:{Vd:{if(!e){d=e;break Vd}d=e;if(!j)break Vd;while(1){j=0;if(!VT(u,l+12|0))break Ud;j=J[l+12>>2];d=d-1|0;if(!(d&65535))break Vd;if(j)continue;break}}J[u+20>>2]=j;I[u+32>>1]=0;I[u+476>>1]= -e+(d^-1);j=TR(u)}bc=l+16|0;Wd:{if(!j){qd(i+72|0,44146,255);break Wd}J[n+272>>2]=n+328;ce(u,256,n+272|0);J[n+256>>2]=n+332;ce(u,257,n+256|0);J[n+240>>2]=n+324;ce(u,277,n+240|0);J[n+224>>2]=n+326;ce(u,258,n+224|0);J[n+208>>2]=n+320;ce(u,278,n+208|0);J[n+192>>2]=n+318;ce(u,262,n+192|0);J[n+176>>2]=n+314;ce(u,274,n+176|0);if(J[i+332>>2]==-1){J[i+16>>2]=J[n+328>>2];e=J[n+332>>2];J[i+68>>2]=6;J[i+20>>2]=e;qd(i+72|0,44457,255);break Wd}J[n+160>>2]=n+312;Ki(u,296,n+160|0);J[n+144>>2]=n+308;if(ce(u,282,n+ -144|0)){C=N[n+308>>2];if(L[n+312>>1]==3){C=Q(Q(C*Q(2.5399999618530273))+Q(.5));N[n+308>>2]=C}if(Q(R(C))>2]=n+308;if(ce(u,283,n+128|0)){C=N[n+308>>2];if(L[n+312>>1]==3){C=Q(Q(C*Q(2.5399999618530273))+Q(.5));N[n+308>>2]=C}if(Q(R(C))>2]=n+304;if(ce(u,286,n+112|0)){C=N[n+304>>2];Xd:{if(Q(R(C))>2]=e}J[n+96>>2]=n+304;if(ce(u,287,n+96|0)){C= -N[n+304>>2];Yd:{if(Q(R(C))>2]=e}J[i+336>>2]=-1;J[i+44>>2]=0;e=J[n+332>>2];if(e>>>0>2]){J[n+80>>2]=e;J[n+320>>2]=e;$d(u,278,n+80|0)}Zd:{_d:{$d:{ae:{be:{e=L[n+318>>1];if(e>>>0>6)break be;d=1<>1];switch(q-1|0){case 3:break ce;case 0:break de;default:break _d}}J[i+44>>2]=2;d=1;break $d}J[i+44>>2]=16;d=4;break $d}if(e-32844>>>0<2)break ae;d=4;q=L[n+326>>1];if((q|0)!=4)break _d;J[i+ -44>>2]=16;break $d}d=24;I[i+26>>1]=24;g=1;break Zd}I[i+26>>1]=d;break Zd}J[i+44>>2]=256;d=8;I[i+26>>1]=8;if((e|0)!=3|q>>>0<9)break Zd;J[i+44>>2]=0;d=24;I[i+26>>1]=24}if(J[i+332>>2]){qd(i+72|0,44685,255);break Wd}mi(i,J[n+328>>2],J[n+332>>2],d,6);if(!J[i+4>>2]){qd(i+72|0,44991,255);break Wd}e=L[n+324>>1];if((e|0)==4){Jk(i);e=L[n+324>>1]}if(!((e&65535)!=2|L[n+326>>1]!=8))Jk(i);J[n+64>>2]=n+316;ce(u,259,n- -64|0);RN(i,L[n+316>>1],0);ee:{fe:{ge:{he:{ie:{je:{ke:{le:{if(g){l=zc(P(J[n+328>>2],J[n+332>>2])<< -2);if(!l){qd(i+72|0,45176,255);break Wd}v=J[n+328>>2];m=J[n+332>>2];g=0;j=bc-1120|0;bc=j;d=j+96|0;wc(d,0,1024);e=bc-192|0;bc=e;me:{if(!J[u+512>>2]){f=K[69514]|K[69515]<<8|(K[69516]<<16|K[69517]<<24);h=K[69510]|K[69511]<<8|(K[69512]<<16|K[69513]<<24);H[d+46|0]=h;H[d+47|0]=h>>>8;H[d+48|0]=h>>>16;H[d+49|0]=h>>>24;H[d+50|0]=f;H[d+51|0]=f>>>8;H[d+52|0]=f>>>16;H[d+53|0]=f>>>24;f=K[69508]|K[69509]<<8|(K[69510]<<16|K[69511]<<24);h=K[69504]|K[69505]<<8|(K[69506]<<16|K[69507]<<24);H[d+40|0]=h;H[d+41|0]=h>>> -8;H[d+42|0]=h>>>16;H[d+43|0]=h>>>24;H[d+44|0]=f;H[d+45|0]=f>>>8;H[d+46|0]=f>>>16;H[d+47|0]=f>>>24;f=K[69500]|K[69501]<<8|(K[69502]<<16|K[69503]<<24);h=K[69496]|K[69497]<<8|(K[69498]<<16|K[69499]<<24);H[d+32|0]=h;H[d+33|0]=h>>>8;H[d+34|0]=h>>>16;H[d+35|0]=h>>>24;H[d+36|0]=f;H[d+37|0]=f>>>8;H[d+38|0]=f>>>16;H[d+39|0]=f>>>24;f=K[69492]|K[69493]<<8|(K[69494]<<16|K[69495]<<24);h=K[69488]|K[69489]<<8|(K[69490]<<16|K[69491]<<24);H[d+24|0]=h;H[d+25|0]=h>>>8;H[d+26|0]=h>>>16;H[d+27|0]=h>>>24;H[d+28|0]=f;H[d+ -29|0]=f>>>8;H[d+30|0]=f>>>16;H[d+31|0]=f>>>24;f=K[69484]|K[69485]<<8|(K[69486]<<16|K[69487]<<24);h=K[69480]|K[69481]<<8|(K[69482]<<16|K[69483]<<24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>>24;H[d+20|0]=f;H[d+21|0]=f>>>8;H[d+22|0]=f>>>16;H[d+23|0]=f>>>24;f=K[69476]|K[69477]<<8|(K[69478]<<16|K[69479]<<24);h=K[69472]|K[69473]<<8|(K[69474]<<16|K[69475]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;f=K[69468]| -K[69469]<<8|(K[69470]<<16|K[69471]<<24);h=K[69464]|K[69465]<<8|(K[69466]<<16|K[69467]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;break me}f=L[u+84>>1];ne:{if(!(1<>>0<=16:0)){J[e>>2]=f;Vf(d,70054,e);break ne}h=L[u+98>>1]-L[u+168>>1]|0;J[e+176>>2]=e+190;oe:{pe:{qe:{re:{se:{te:{ue:{ve:{if(!ce(u,262,e+176|0)){g=1;we:switch(h-1|0){case 2:break me;case 0:break ve;default:break we}J[e+16>>2]=80464;Vf(d,70822,e+16|0);break ne}g= -1;xe:{f=L[e+190>>1];switch(f|0){case 6:case 8:break me;case 4:case 7:break pe;case 5:break se;case 2:break te;case 0:case 1:case 3:break ue;default:break xe}}switch(f-32844|0){case 1:break qe;case 0:break re;default:break pe}}f=1;I[e+190>>1]=1}if(L[u+138>>1]!=1)break me;h=L[u+98>>1];if((h|0)==1)break me;k=L[u+84>>1];if(k>>>0>7)break me;J[e+48>>2]=k;J[e+44>>2]=h;J[e+40>>2]=72102;J[e+36>>2]=f;J[e+32>>2]=80464;Vf(d,71826,e+32|0);break ne}if((h|0)>2)break me;J[e+84>>2]=h;J[e+80>>2]=73008;Vf(d,72723,e+ -80|0);break ne}J[e+112>>2]=e+188;Ki(u,332,e+112|0);g=74066;f=L[e+188>>1];if((f|0)!=1)break oe;g=72102;f=L[u+98>>1];if(f>>>0<4)break oe;g=1;break me}if(L[u+88>>1]==34676)break me;J[e+132>>2]=34676;J[e+128>>2]=74970;Vf(d,74656,e+128|0);break ne}if((L[u+88>>1]&65534)!=34676){J[e+164>>2]=34676;J[e+168>>2]=34677;J[e+160>>2]=74970;Vf(d,75474,e+160|0);break ne}f=L[u+138>>1];if((f|0)==1)break me;J[e+148>>2]=f;J[e+144>>2]=76571;Vf(d,76094,e+144|0);break ne}J[e+68>>2]=f;J[e+64>>2]=80464;Vf(d,77260,e- -64|0); -break ne}J[e+100>>2]=f;J[e+96>>2]=g;Vf(d,73767,e+96|0)}g=0}bc=e+192|0;ye:{ze:{if(!g)break ze;f=0;g=bc-496|0;bc=g;e=j+12|0;J[e+44>>2]=0;J[e+36>>2]=0;J[e+40>>2]=0;J[e+76>>2]=0;J[e+80>>2]=0;I[e+30>>1]=4;J[e+4>>2]=1;J[e>>2]=u;J[g+448>>2]=e+24;Ki(u,258,g+448|0);h=L[e+24>>1];Ae:{if(!(1<>>0<=16:0)){J[g>>2]=h;Vf(d,70054,g);break Ae}J[e+12>>2]=0;J[g+432>>2]=e+26;Ki(u,277,g+432|0);J[g+420>>2]=g+476;J[g+416>>2]=g+474;Ki(u,338,g+416|0);Be:{if(!L[g+474>>1])break Be;Ce:{De:{f=L[J[g+476>>2]>>1];switch(f| -0){case 1:case 2:break Ce;case 0:break De;default:break Be}}f=1;if(L[e+26>>1]<=3)break Be}J[e+12>>2]=f}k=e+32|0;J[g+400>>2]=k;if(!ce(u,262,g+400|0))I[e+32>>1]=0;f=L[e+26>>1];h=L[g+474>>1];Ee:{if(h)break Ee;h=0;if((f|0)!=4|L[e+32>>1]!=2)break Ee;h=1;J[e+12>>2]=1;I[g+474>>1]=1}J[g+384>>2]=g+470;Ki(u,259,g+384|0);J[g+368>>2]=g+472;Ki(u,284,g+368|0);J[g+352>>2]=k;k=f-h|0;Fe:{Ge:{He:{Ie:{Je:{Ke:{Le:{Me:{Ne:{if(!ce(u,262,g+352|0)){Oe:switch(k-1|0){case 0:J[g+160>>2]=g+480;ce(u,259,g+160|0);f=L[g+480>>1]; -if(!(f-2>>>0>=3&(f|0)!=32771)){I[e+32>>1]=0;break Ne}I[e+32>>1]=1;break Ne;case 2:break Ge;default:break Oe}J[g+16>>2]=80464;Vf(d,70822,g+16|0);f=0;break Ae}Pe:{Qe:{f=L[e+32>>1];switch(f|0){case 8:break Fe;case 4:case 7:break He;case 5:break Ke;case 2:break Le;case 6:break Me;case 0:case 1:break Ne;case 3:break Pe;default:break Qe}}switch(f-32844|0){case 1:break Ie;case 0:break Je;default:break He}}J[g+200>>2]=g+456;J[g+196>>2]=g+460;J[g+192>>2]=g+464;if(!ce(u,320,g+192|0)){f=0;e=K[77861]|K[77862]<< -8|(K[77863]<<16|K[77864]<<24);h=K[77857]|K[77858]<<8|(K[77859]<<16|K[77860]<<24);H[d+24|0]=h;H[d+25|0]=h>>>8;H[d+26|0]=h>>>16;H[d+27|0]=h>>>24;H[d+28|0]=e;H[d+29|0]=e>>>8;H[d+30|0]=e>>>16;H[d+31|0]=e>>>24;e=K[77853]|K[77854]<<8|(K[77855]<<16|K[77856]<<24);h=K[77849]|K[77850]<<8|(K[77851]<<16|K[77852]<<24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>>24;H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24;e=K[77845]|K[77846]<<8|(K[77847]<<16|K[77848]<<24);h=K[77841]|K[77842]<< -8|(K[77843]<<16|K[77844]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[77837]|K[77838]<<8|(K[77839]<<16|K[77840]<<24);h=K[77833]|K[77834]<<8|(K[77835]<<16|K[77836]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;break Ae}f=2<>1];Ea=e,Ka=zc(f),J[Ea+36>>2]=Ka;Ea=e,Ka=zc(f),J[Ea+40>>2]=Ka;h=zc(f);J[e+44>>2]=h;q=J[e+36>>2];if(h?!q|!J[e+40>> -2]:1){f=0;e=K[78163]|K[78164]<<8|(K[78165]<<16|K[78166]<<24);h=K[78159]|K[78160]<<8|(K[78161]<<16|K[78162]<<24);H[d+24|0]=h;H[d+25|0]=h>>>8;H[d+26|0]=h>>>16;H[d+27|0]=h>>>24;H[d+28|0]=e;H[d+29|0]=e>>>8;H[d+30|0]=e>>>16;H[d+31|0]=e>>>24;e=K[78155]|K[78156]<<8|(K[78157]<<16|K[78158]<<24);h=K[78151]|K[78152]<<8|(K[78153]<<16|K[78154]<<24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>>24;H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24;e=K[78147]|K[78148]<<8|(K[78149]<<16|K[78150]<< -24);h=K[78143]|K[78144]<<8|(K[78145]<<16|K[78146]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[78139]|K[78140]<<8|(K[78141]<<16|K[78142]<<24);h=K[78135]|K[78136]<<8|(K[78137]<<16|K[78138]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;break Ae}Ne(q,J[g+464>>2],f);Ne(J[e+40>>2],J[g+460>>2],f);Ne(J[e+44>>2],J[g+456>>2],f)}if(L[g+472>>1]!=1)break Fe; -f=L[e+26>>1];if((f|0)==1)break Fe;h=L[e+24>>1];if(h>>>0>7)break Fe;e=L[e+32>>1];J[g+144>>2]=h;J[g+140>>2]=f;J[g+136>>2]=72102;J[g+132>>2]=e;J[g+128>>2]=80464;Vf(d,71826,g+128|0);f=0;break Ae}if(L[g+472>>1]!=1|L[g+470>>1]!=7)break Fe;J[g+208>>2]=1;$d(u,65538,g+208|0);I[e+32>>1]=2;break Fe}if((k|0)>2)break Fe;J[g+228>>2]=k;J[g+224>>2]=73008;Vf(d,72723,g+224|0);f=0;break Ae}J[g+256>>2]=g+480;Ki(u,332,g+256|0);f=74066;h=L[g+480>>1];if((h|0)==1){f=72102;h=L[e+26>>1];if(h>>>0>=4)break Fe}J[g+244>>2]=h; -J[g+240>>2]=f;Vf(d,73767,g+240|0);f=0;break Ae}if(L[g+470>>1]!=34676){J[g+292>>2]=34676;J[g+288>>2]=74970;Vf(d,74656,g+288|0);f=0;break Ae}J[g+272>>2]=3;$d(u,65560,g+272|0);I[e+32>>1]=1;I[e+24>>1]=8;break Fe}if((L[g+470>>1]+30858&65535)>>>0<=65533){J[g+308>>2]=34676;J[g+312>>2]=34677;J[g+304>>2]=74970;Vf(d,75474,g+304|0);f=0;break Ae}f=L[g+472>>1];if((f|0)!=1){J[g+340>>2]=f;J[g+336>>2]=76571;Vf(d,76094,g+336|0);f=0;break Ae}J[g+320>>2]=3;$d(u,65560,g+320|0);I[e+32>>1]=2;I[e+24>>1]=8;break Fe}J[g+ -180>>2]=f;J[g+176>>2]=80464;Vf(d,77260,g+176|0);f=0;break Ae}I[e+32>>1]=2}J[e+56>>2]=0;J[e+60>>2]=0;J[e+72>>2]=0;f=e- -64|0;J[f>>2]=0;J[f+4>>2]=0;J[g+112>>2]=e+16;ce(u,256,g+112|0);J[g+96>>2]=e+20;ce(u,257,g+96|0);J[g+80>>2]=e+28;Ki(u,274,g+80|0);h=L[g+472>>1]!=2|(k|0)<2;J[e+8>>2]=h;f=J[J[e>>2]+12>>2]>>>10&1;if(h){J[e+52>>2]=0;J[e+48>>2]=f?520:521;Re:{Se:{Te:switch(L[e+32>>1]){case 2:Ue:switch(L[e+24>>1]-8|0){case 0:Ve:switch(J[e+12>>2]-1|0){case 0:J[e+52>>2]=522;break Se;case 1:J[e+52>>2]=523;break Se; -default:break Ve}J[e+52>>2]=524;break Se;case 8:break Ue;default:break Se}We:switch(J[e+12>>2]-1|0){case 0:J[e+52>>2]=525;break Se;case 1:J[e+52>>2]=526;break Se;default:break We}J[e+52>>2]=527;break Se;case 5:if(!Cz(e)|L[e+24>>1]!=8)break Se;if(!J[e+56>>2]){J[e+52>>2]=528;break Se}J[e+52>>2]=529;break Se;case 3:if(!Cz(e))break Se;Xe:switch(L[e+24>>1]-1|0){case 7:J[e+52>>2]=530;break Se;case 3:J[e+52>>2]=531;break Se;case 1:J[e+52>>2]=532;break Se;case 0:break Xe;default:break Se}J[e+52>>2]=533;break Se; -case 0:case 1:if(!Cz(e))break Se;Ye:switch(L[e+24>>1]-1|0){case 15:J[e+52>>2]=534;break Se;case 7:J[e+52>>2]=535;break Se;case 3:J[e+52>>2]=536;break Se;case 1:J[e+52>>2]=537;break Se;case 0:break Ye;default:break Se}J[e+52>>2]=538;break Se;case 6:if(L[e+24>>1]!=8)break Se;if(!zT(e))break Se;f=J[e>>2];J[g+36>>2]=g+492;J[g+32>>2]=g+480;Ki(f,530,g+32|0);f=539;Ze:switch((L[g+492>>1]|L[g+480>>1]<<4)-17|0){case 49:J[e+52>>2]=540;break Se;case 48:J[e+52>>2]=541;break Se;case 17:J[e+52>>2]=542;break Se; -case 16:J[e+52>>2]=543;break Se;case 1:J[e+52>>2]=544;break Se;case 0:f=545;break;case 51:break Ze;default:break Se}J[e+52>>2]=f;break Se;case 8:break Te;default:break Re}if(!Cz(e)|L[e+24>>1]!=8)break Se;_e:{$e:{if(J[e+72>>2])break $e;f=zc(18124);J[e+72>>2]=f;if(f)break $e;Nc(J[J[e>>2]+628>>2],2626992,82850,0);f=0;break _e}f=J[e>>2];J[g+48>>2]=g+492;Ki(f,318,g+48|0);J[g+484>>2]=1120403456;f=J[g+492>>2];X=N[f>>2];C=N[f+4>>2];N[g+480>>2]=Q(X/C)*Q(100);N[g+488>>2]=Q(Q(Q(Q(1)-X)-C)/C)*Q(100);f=0;k=0; -h=J[e+72>>2];J[h>>2]=1500;Ne(h+28|0,2626872,84);q=J[h>>2];C=Q(Q(N[h- -64>>2]-N[h+88>>2])/Q(q|0));N[h+4>>2]=C;af:{bf:{if((q|0)<0){N[h+8>>2]=C;break bf}T=1/+N[h+100>>2];s=q+1|0;X=Q(M[h+76>>2]);z=+(q|0);if(q){t=s&-2;r=h+112|0;while(1){Ea=r+(f<<2)|0,La=Q(Q(We(+(f|0)/z,T))*X),N[Ea>>2]=La;w=f|1;Ea=r+(w<<2)|0,La=Q(Q(We(+(w|0)/z,T))*X),N[Ea>>2]=La;f=f+2|0;k=k+2|0;if((t|0)!=(k|0))continue;break}}if(!(q&1))Ea=h+(f<<2)|0,La=Q(Q(We(+(f|0)/z,T))*X),N[Ea+112>>2]=La;N[h+8>>2]=C;f=0;if((q|0)<0)break bf;T=1/+N[h+ -104>>2];X=Q(M[h+80>>2]);if(q){t=s&-2;r=h+6116|0;k=0;while(1){Ea=r+(f<<2)|0,La=Q(Q(We(+(f|0)/z,T))*X),N[Ea>>2]=La;w=f|1;Ea=r+(w<<2)|0,La=Q(Q(We(+(w|0)/z,T))*X),N[Ea>>2]=La;f=f+2|0;k=k+2|0;if((t|0)!=(k|0))continue;break}}if(!(q&1))Ea=(h+(f<<2)|0)+6116|0,La=Q(Q(We(+(f|0)/z,T))*X),N[Ea>>2]=La;N[h+12>>2]=C;f=0;if((q|0)<0)break af;T=1/+N[h+108>>2];C=Q(M[h+84>>2]);if(q){r=s&-2;s=h+12120|0;k=0;while(1){Ea=s+(f<<2)|0,La=Q(Q(We(+(f|0)/z,T))*C),N[Ea>>2]=La;t=f|1;Ea=s+(t<<2)|0,La=Q(Q(We(+(t|0)/z,T))*C),N[Ea>> -2]=La;f=f+2|0;k=k+2|0;if((r|0)!=(k|0))continue;break}}if(q&1)break af;Ea=(h+(f<<2)|0)+12120|0,La=Q(Q(We(+(f|0)/z,T))*C),N[Ea>>2]=La;break af}N[h+12>>2]=C}N[h+16>>2]=N[g+480>>2];N[h+20>>2]=N[g+484>>2];N[h+24>>2]=N[g+488>>2];f=546}J[e+52>>2]=f}if(!J[e+48>>2])break Re;f=1;if(J[e+52>>2])break Ae}f=0;e=K[78789]|K[78790]<<8|(K[78791]<<16|K[78792]<<24);H[d+24|0]=e;H[d+25|0]=e>>>8;H[d+26|0]=e>>>16;H[d+27|0]=e>>>24;e=K[78785]|K[78786]<<8|(K[78787]<<16|K[78788]<<24);h=K[78781]|K[78782]<<8|(K[78783]<<16|K[78784]<< -24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>>24;H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24;e=K[78777]|K[78778]<<8|(K[78779]<<16|K[78780]<<24);h=K[78773]|K[78774]<<8|(K[78775]<<16|K[78776]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[78769]|K[78770]<<8|(K[78771]<<16|K[78772]<<24);h=K[78765]|K[78766]<<8|(K[78767]<<16|K[78768]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]= +(h<<2)|0;H[e+3|0]=255;H[e+7|0]=255;H[e+11|0]=255;H[e+15|0]=255;H[e+19|0]=255;H[e+23|0]=255;H[e+27|0]=255;H[e+31|0]=255;h=h+8|0;if((p|0)!=(h|0))continue;break}}H[i+389|0]=1}ed:{if(!g)break ed;J[699344]=0;e=cZ(J[s+28>>2],J[s+24>>2],s+20|0,s+16|0,s+12|0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;fd:{if(!d)break fd;h=J[699345];if(!h)break fd;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)==1)continue;if(!e)break ed;e=J[s+24>>2];H[i+342|0]=L[e+82>>1]>>>v;H[i+341|0]=L[e+84>>1]>>>v;e=L[e+86>> +1];H[i+343|0]=0;J[i+336>>2]=0;H[i+340|0]=e>>>v}if(!(n&1)){J[699344]=0;_(123,i|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;gd:{if(!d)break gd;h=J[699345];if(!h)break gd;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)==1)continue}if(K[J[s+24>>2]+25|0]&2){J[699344]=0;e=J[s+28>>2];if(e)J[e+208>>2]=J[e+208>>2]|1;d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;hd:{if(!d)break hd;h=J[699345];if(!h)break hd;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)==1)continue}if(J[i+332>>2]){J[699344]= +0;da(88,J[s+28>>2],1);d=J[699344];J[699344]=0;id:{if(!d)break id;h=J[699345];if(!h)break id;if(!Pc(J[d>>2],k,q))break uc;gc=h}d=gc;continue}e=J[J[s+24>>2]+12>>2];J[699344]=0;v=_(27,e+8|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;jd:{if(!d)break jd;h=J[699345];if(!h)break jd;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;J[699344]=0;d=1;e=J[s+28>>2];if(!(!e|!K[e+398|0])){J[e+208>>2]=J[e+208>>2]|2;d=7}p=d;d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;kd:{if(!d)break kd; +h=J[699345];if(!h)break kd;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;J[699344]=0;f=Xq(i,4);d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;ld:{if(!d)break ld;h=J[699345];if(!h)break ld;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;J[699344]=0;jP(i,f&-2|(p|0)>1,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;md:{if(!d)break md;h=J[699345];if(!h)break md;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue;if((p|0)>0){e=J[s+24>>2];t=K[e+30|0]>>> +3|0;m=K[e+24|0]>>>3|0;u=P(m,3);y=m<<1;E=p-1|0;o=0;while(1){J[699344]=0;f=J[i+20>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;nd:{if(!d)break nd;h=J[699345];if(!h)break nd;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue Cc;J[699344]=0;g=mf(i,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;od:{if(!d)break od;h=J[699345];if(!h)break od;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue Cc;J[699344]=0;r=J[i+52>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc; +e=-1;pd:{if(!d)break pd;h=J[699345];if(!h)break pd;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue Cc;J[699344]=0;w=J[i+20>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;qd:{if(!d)break qd;h=J[699345];if(!h)break qd;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue Cc;j=f-1|0;e=g+P(r,w-1|0)|0;w=0;while(1){if(J[i+332>>2]){J[699344]=0;da(88,J[s+28>>2],1);d=J[699344];J[699344]=0;rd:{if(!d)break rd;h=J[699345];if(!h)break rd;if(!Pc(J[d>>2],k,q))break uc;gc=h}d=gc; +continue Cc}J[699344]=0;f=J[i+964>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=(f|0)!=0;f=-1;sd:{if(!d)break sd;h=J[699345];if(!h)break sd;f=Pc(J[d>>2],k,q);if(!f)break uc;gc=h}d=gc;if((f|0)==1)continue Cc;td:{if(g){g=J[i+20>>2]+(w^-1)|0;ud:{if((g|0)<0)break ud;J[699344]=0;r=J[i+20>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;f=-1;vd:{if(!d)break vd;h=J[699345];if(!h)break vd;f=Pc(J[d>>2],k,q);if(!f)break uc;gc=h}d=gc;if((f|0)==1)continue Cc;if((g|0)>(r|0))break ud;J[699344]=0;f=mf(i,0); +d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;wd:{if(!d)break wd;h=J[699345];if(!h)break wd;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue Cc;J[699344]=0;j=J[i+52>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;e=-1;xd:{if(!d)break xd;h=J[699345];if(!h)break xd;e=Pc(J[d>>2],k,q);if(!e)break uc;gc=h}d=gc;if((e|0)==1)continue Cc;e=P(g,j)+f|0;j=g}yd:{if(!K[J[s+24>>2]+28|0])break yd;zd:switch(o|0){case 0:case 7:break yd;default:break zd}if(J[i+16>>2]<=0)break yd;f=0;r=0;if(l)while(1){A= +v+P(f,t)|0;H[A|0]=K[e+f|0];J[699344]=0;D=mm(i,f,g);d=J[699344];J[699344]=0;if((d|0)==1)break rc;r=-1;Ad:{if(!d)break Ad;h=J[699345];if(!h)break Ad;r=Pc(J[d>>2],k,q);if(!r)break uc;gc=h}d=gc;if((r|0)==1)continue Cc;H[m+A|0]=D;f=f+1|0;if((f|0)>2])continue;break yd}while(1){f=v+P(r,t)|0;d=P(r,3)+e|0;H[f|0]=K[d|0];H[f+m|0]=K[d+1|0];H[f+y|0]=K[d+2|0];J[699344]=0;D=mm(i,r,g);d=J[699344];J[699344]=0;if((d|0)==1)break rc;A=-1;Bd:{if(!d)break Bd;h=J[699345];if(!h)break Bd;A=Pc(J[d>>2],k,q);if(!A)break uc; +gc=h}d=gc;if((A|0)==1)continue Cc;H[f+u|0]=D;r=r+1|0;if((r|0)>2])continue;break}}J[699344]=0;ca(129,J[s+28>>2],v|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;f=-1;Cd:{if(!d)break Cd;h=J[699345];if(!h)break Cd;f=Pc(J[d>>2],k,q);if(!f)break uc;gc=h}d=gc;if((f|0)==1)continue Cc;if(J[i+16>>2]<=0)break td;f=0;r=0;if(l)while(1){d=v+P(f,t)|0;H[e+f|0]=K[d|0];d=K[d+m|0];J[699344]=0;yh(i,f,g,d);d=J[699344];J[699344]=0;if((d|0)==1)break rc;r=-1;Dd:{if(!d)break Dd;h=J[699345];if(!h)break Dd;r=Pc(J[d>> +2],k,q);if(!r)break uc;gc=h}d=gc;if((r|0)==1)continue Cc;f=f+1|0;if((f|0)>2])continue;break td}while(1){f=P(r,3)+e|0;d=v+P(r,t)|0;H[f|0]=K[d|0];H[f+1|0]=K[d+m|0];H[f+2|0]=K[d+y|0];d=K[d+u|0];J[699344]=0;yh(i,r,g,d);d=J[699344];J[699344]=0;if((d|0)==1)break rc;f=-1;Ed:{if(!d)break Ed;h=J[699345];if(!h)break Ed;f=Pc(J[d>>2],k,q);if(!f)break uc;gc=h}d=gc;if((f|0)==1)continue Cc;r=r+1|0;if((r|0)>2])continue;break}break td}Fd:{if(!o)break Fd;d=J[s+24>>2];if(!K[d+28|0])break Fd;Gd:{if(!e)break Gd; +g=J[d+12>>2];if((g|0)<=0)break Gd;J[699344]=0;r=J[i+52>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;f=-1;Hd:{if(!d)break Hd;h=J[699345];if(!h)break Hd;f=Pc(J[d>>2],k,q);if(!f)break uc;gc=h}d=gc;if((f|0)==1)continue Cc;xc(v,e,(g|0)>(r|0)?r:g);d=J[s+24>>2]}if(K[d+24|0]<9)break Fd;f=P(J[i+16>>2],n);if((f|0)<=0)break Fd;h=0;d=f;g=d&3;if(g)while(1){d=d-1|0;H[v+P(m,d)|0]=K[d+v|0];h=h+1|0;if((g|0)!=(h|0))continue;break}if(f>>>0<4)break Fd;while(1){f=d-1|0;H[v+P(f,m)|0]=K[f+v|0];f=d-2|0;H[v+P(f,m)|0]= +K[f+v|0];f=d-3|0;H[v+P(f,m)|0]=K[f+v|0];d=d-4|0;H[v+P(m,d)|0]=K[d+v|0];if(f>>>0>1)continue;break}}J[699344]=0;ca(129,J[s+28>>2],v|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;f=-1;Id:{if(!d)break Id;h=J[699345];if(!h)break Id;f=Pc(J[d>>2],k,q);if(!f)break uc;gc=h}d=gc;if((f|0)==1)continue Cc;r=J[s+24>>2];Jd:{if(K[r+24|0]<9)break Jd;g=P(J[i+16>>2],n);if((g|0)<=0)break Jd;h=0;d=0;if(g>>>0>=4){A=g&-4;f=0;while(1){H[d+v|0]=K[v+P(d,m)|0];D=d|1;H[D+v|0]=K[v+P(m,D)|0];D=d|2;H[D+v|0]=K[v+P(m,D)|0];D= +d|3;H[D+v|0]=K[v+P(m,D)|0];d=d+4|0;f=f+4|0;if((A|0)!=(f|0))continue;break}}f=g&3;if(!f)break Jd;while(1){H[d+v|0]=K[v+P(d,m)|0];d=d+1|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}g=J[r+12>>2];J[699344]=0;r=J[i+52>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;f=-1;Kd:{if(!d)break Kd;h=J[699345];if(!h)break Kd;f=Pc(J[d>>2],k,q);if(!f)break uc;gc=h}d=gc;if((f|0)==1)continue Cc;Ld:{if(!e)break Ld;d=(g|0)<0?r:(g|0)>(r|0)?r:g;if((d|0)<=0)break Ld;xc(e,v,d)}Md:{if(K[J[s+24>>2]+24|0]!=2|(o|0)!=(E|0))break Md; +d=J[i+16>>2];if((d|0)<=0)break Md;while(1){f=d-1|0;g=(f>>>1|0)+e|0;r=g;qa=K[g|0];g=d<<2&4;h=0-d<<1&6;H[r|0]=qa&(15<>>2|0)+e|0]&3<>>h&15)<>>0>1;d=f;if(g)continue;break}}if((j|0)>0){J[699344]=0;f=J[i+52>>2];d=J[699344];J[699344]=0;if((d|0)==1)break rc;r=-1;Nd:{if(!d)break Nd;h=J[699345];if(!h)break Nd;r=Pc(J[d>>2],k,q);if(!r)break uc;gc=h}d=gc;if((r|0)==1)continue Cc;e=e-f|0}j=j-1|0}w=w+1|0;if((w|0)>2])continue;break}o=o+1|0;if((p|0)!=(o|0))continue;break}}J[699344]= +0;uc(v);d=J[699344];J[699344]=0;g=-1;Od:{if(!d)break Od;h=J[699345];if(!h)break Od;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)==1)continue;J[699344]=0;da(131,J[s+28>>2],J[s+24>>2]);d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;Pd:{if(!d)break Pd;h=J[699345];if(!h)break Pd;g=Pc(J[d>>2],k,q);if(!g)break uc;gc=h}d=gc;if((g|0)==1)continue;J[699344]=0;ca(112,s+28|0,s+24|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break rc;g=-1;Qd:{if(!d)break Qd;h=J[699345];if(!h)break Qd;g=Pc(J[d>>2],k,q);if(!g)break uc; +gc=h}h=1;d=gc;if((g|0)==1)continue;break}break sc}uc(k);nf(d,h);B()}h=J[i+332>>2]==-1&J[i+68>>2]==4}uc(k);fc=s+32|0;break qc}a=Z()|0;uc(k);break a}if(h)break b;of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(988);J[699344]=0;i=xf(d,6);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[i+984>>2]=0;H[i+980|0]=0;J[i+976>>2]=0;J[i>>2]=47796;bk(i,a);f=0;g=0;o=0;p=0;A=0;n=fc-336|0;fc=n;u=s8(b,43443);J[n+332>>2]=0;J[n+328>>2]=0;I[n+326>>1]=1;I[n+324>>1]=1;J[n+320>>2]= +-1;I[n+318>>1]=0;I[n+316>>1]=1;I[n+314>>1]=1;Rd:{Sd:{if(!u){Ad(i+72|0,43801,255);break Sd}j=0;e=fc-16|0;fc=e;d=J[u+460>>2];J[e+12>>2]=d;Td:{if(!d)break Td;while(1){if(!rW(u,e+12|0))break Td;j=j+1|0;if(J[e+12>>2])continue;break}}fc=e+16|0;J[i+356>>2]=j&65535;e=L[i+352>>1];l=fc-16|0;fc=l;j=J[u+460>>2];J[l+12>>2]=j;Ud:{Vd:{if(!e){d=e;break Vd}d=e;if(!j)break Vd;while(1){j=0;if(!rW(u,l+12|0))break Ud;j=J[l+12>>2];d=d-1|0;if(!(d&65535))break Vd;if(j)continue;break}}J[u+20>>2]=j;I[u+32>>1]=0;I[u+476>>1]= +e+(d^-1);j=CU(u)}fc=l+16|0;Wd:{if(!j){Ad(i+72|0,44162,255);break Wd}J[n+272>>2]=n+328;ne(u,256,n+272|0);J[n+256>>2]=n+332;ne(u,257,n+256|0);J[n+240>>2]=n+324;ne(u,277,n+240|0);J[n+224>>2]=n+326;ne(u,258,n+224|0);J[n+208>>2]=n+320;ne(u,278,n+208|0);J[n+192>>2]=n+318;ne(u,262,n+192|0);J[n+176>>2]=n+314;ne(u,274,n+176|0);if(J[i+332>>2]==-1){J[i+16>>2]=J[n+328>>2];e=J[n+332>>2];J[i+68>>2]=6;J[i+20>>2]=e;Ad(i+72|0,44473,255);break Wd}J[n+160>>2]=n+312;$i(u,296,n+160|0);J[n+144>>2]=n+308;if(ne(u,282,n+ +144|0)){C=N[n+308>>2];if(L[n+312>>1]==3){C=Q(Q(C*Q(2.5399999618530273))+Q(.5));N[n+308>>2]=C}if(Q(R(C))>2]=n+308;if(ne(u,283,n+128|0)){C=N[n+308>>2];if(L[n+312>>1]==3){C=Q(Q(C*Q(2.5399999618530273))+Q(.5));N[n+308>>2]=C}if(Q(R(C))>2]=n+304;if(ne(u,286,n+112|0)){C=N[n+304>>2];Xd:{if(Q(R(C))>2]=e}J[n+96>>2]=n+304;if(ne(u,287,n+96|0)){C= +N[n+304>>2];Yd:{if(Q(R(C))>2]=e}J[i+336>>2]=-1;J[i+44>>2]=0;e=J[n+332>>2];if(e>>>0>2]){J[n+80>>2]=e;J[n+320>>2]=e;ke(u,278,n+80|0)}Zd:{_d:{$d:{ae:{be:{e=L[n+318>>1];if(e>>>0>6)break be;d=1<>1];switch(q-1|0){case 3:break ce;case 0:break de;default:break _d}}J[i+44>>2]=2;d=1;break $d}J[i+44>>2]=16;d=4;break $d}if(e-32844>>>0<2)break ae;d=4;q=L[n+326>>1];if((q|0)!=4)break _d;J[i+ +44>>2]=16;break $d}d=24;I[i+26>>1]=24;g=1;break Zd}I[i+26>>1]=d;break Zd}J[i+44>>2]=256;d=8;I[i+26>>1]=8;if((e|0)!=3|q>>>0<9)break Zd;J[i+44>>2]=0;d=24;I[i+26>>1]=24}if(J[i+332>>2]){Ad(i+72|0,44701,255);break Wd}Bi(i,J[n+328>>2],J[n+332>>2],d,6);if(!J[i+4>>2]){Ad(i+72|0,45007,255);break Wd}e=L[n+324>>1];if((e|0)==4){gl(i);e=L[n+324>>1]}if(!((e&65535)!=2|L[n+326>>1]!=8))gl(i);J[n+64>>2]=n+316;ne(u,259,n- -64|0);jP(i,L[n+316>>1],0);ee:{fe:{ge:{he:{ie:{je:{ke:{le:{if(g){l=Dc(P(J[n+328>>2],J[n+332>>2])<< +2);if(!l){Ad(i+72|0,45192,255);break Wd}v=J[n+328>>2];m=J[n+332>>2];g=0;j=fc-1120|0;fc=j;d=j+96|0;Ac(d,0,1024);e=fc-192|0;fc=e;me:{if(!J[u+512>>2]){f=K[69530]|K[69531]<<8|(K[69532]<<16|K[69533]<<24);h=K[69526]|K[69527]<<8|(K[69528]<<16|K[69529]<<24);H[d+46|0]=h;H[d+47|0]=h>>>8;H[d+48|0]=h>>>16;H[d+49|0]=h>>>24;H[d+50|0]=f;H[d+51|0]=f>>>8;H[d+52|0]=f>>>16;H[d+53|0]=f>>>24;f=K[69524]|K[69525]<<8|(K[69526]<<16|K[69527]<<24);h=K[69520]|K[69521]<<8|(K[69522]<<16|K[69523]<<24);H[d+40|0]=h;H[d+41|0]=h>>> +8;H[d+42|0]=h>>>16;H[d+43|0]=h>>>24;H[d+44|0]=f;H[d+45|0]=f>>>8;H[d+46|0]=f>>>16;H[d+47|0]=f>>>24;f=K[69516]|K[69517]<<8|(K[69518]<<16|K[69519]<<24);h=K[69512]|K[69513]<<8|(K[69514]<<16|K[69515]<<24);H[d+32|0]=h;H[d+33|0]=h>>>8;H[d+34|0]=h>>>16;H[d+35|0]=h>>>24;H[d+36|0]=f;H[d+37|0]=f>>>8;H[d+38|0]=f>>>16;H[d+39|0]=f>>>24;f=K[69508]|K[69509]<<8|(K[69510]<<16|K[69511]<<24);h=K[69504]|K[69505]<<8|(K[69506]<<16|K[69507]<<24);H[d+24|0]=h;H[d+25|0]=h>>>8;H[d+26|0]=h>>>16;H[d+27|0]=h>>>24;H[d+28|0]=f;H[d+ +29|0]=f>>>8;H[d+30|0]=f>>>16;H[d+31|0]=f>>>24;f=K[69500]|K[69501]<<8|(K[69502]<<16|K[69503]<<24);h=K[69496]|K[69497]<<8|(K[69498]<<16|K[69499]<<24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>>24;H[d+20|0]=f;H[d+21|0]=f>>>8;H[d+22|0]=f>>>16;H[d+23|0]=f>>>24;f=K[69492]|K[69493]<<8|(K[69494]<<16|K[69495]<<24);h=K[69488]|K[69489]<<8|(K[69490]<<16|K[69491]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;f=K[69484]| +K[69485]<<8|(K[69486]<<16|K[69487]<<24);h=K[69480]|K[69481]<<8|(K[69482]<<16|K[69483]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;break me}f=L[u+84>>1];ne:{if(!(1<>>0<=16:0)){J[e>>2]=f;cg(d,70070,e);break ne}h=L[u+98>>1]-L[u+168>>1]|0;J[e+176>>2]=e+190;oe:{pe:{qe:{re:{se:{te:{ue:{ve:{if(!ne(u,262,e+176|0)){g=1;we:switch(h-1|0){case 2:break me;case 0:break ve;default:break we}J[e+16>>2]=80480;cg(d,70838,e+16|0);break ne}g= +1;xe:{f=L[e+190>>1];switch(f|0){case 6:case 8:break me;case 4:case 7:break pe;case 5:break se;case 2:break te;case 0:case 1:case 3:break ue;default:break xe}}switch(f-32844|0){case 1:break qe;case 0:break re;default:break pe}}f=1;I[e+190>>1]=1}if(L[u+138>>1]!=1)break me;h=L[u+98>>1];if((h|0)==1)break me;k=L[u+84>>1];if(k>>>0>7)break me;J[e+48>>2]=k;J[e+44>>2]=h;J[e+40>>2]=72118;J[e+36>>2]=f;J[e+32>>2]=80480;cg(d,71842,e+32|0);break ne}if((h|0)>2)break me;J[e+84>>2]=h;J[e+80>>2]=73024;cg(d,72739,e+ +80|0);break ne}J[e+112>>2]=e+188;$i(u,332,e+112|0);g=74082;f=L[e+188>>1];if((f|0)!=1)break oe;g=72118;f=L[u+98>>1];if(f>>>0<4)break oe;g=1;break me}if(L[u+88>>1]==34676)break me;J[e+132>>2]=34676;J[e+128>>2]=74986;cg(d,74672,e+128|0);break ne}if((L[u+88>>1]&65534)!=34676){J[e+164>>2]=34676;J[e+168>>2]=34677;J[e+160>>2]=74986;cg(d,75490,e+160|0);break ne}f=L[u+138>>1];if((f|0)==1)break me;J[e+148>>2]=f;J[e+144>>2]=76587;cg(d,76110,e+144|0);break ne}J[e+68>>2]=f;J[e+64>>2]=80480;cg(d,77276,e- -64|0); +break ne}J[e+100>>2]=f;J[e+96>>2]=g;cg(d,73783,e+96|0)}g=0}fc=e+192|0;ye:{ze:{if(!g)break ze;f=0;g=fc-496|0;fc=g;e=j+12|0;J[e+44>>2]=0;J[e+36>>2]=0;J[e+40>>2]=0;J[e+76>>2]=0;J[e+80>>2]=0;I[e+30>>1]=4;J[e+4>>2]=1;J[e>>2]=u;J[g+448>>2]=e+24;$i(u,258,g+448|0);h=L[e+24>>1];Ae:{if(!(1<>>0<=16:0)){J[g>>2]=h;cg(d,70070,g);break Ae}J[e+12>>2]=0;J[g+432>>2]=e+26;$i(u,277,g+432|0);J[g+420>>2]=g+476;J[g+416>>2]=g+474;$i(u,338,g+416|0);Be:{if(!L[g+474>>1])break Be;Ce:{De:{f=L[J[g+476>>2]>>1];switch(f| +0){case 1:case 2:break Ce;case 0:break De;default:break Be}}f=1;if(L[e+26>>1]<=3)break Be}J[e+12>>2]=f}k=e+32|0;J[g+400>>2]=k;if(!ne(u,262,g+400|0))I[e+32>>1]=0;f=L[e+26>>1];h=L[g+474>>1];Ee:{if(h)break Ee;h=0;if((f|0)!=4|L[e+32>>1]!=2)break Ee;h=1;J[e+12>>2]=1;I[g+474>>1]=1}J[g+384>>2]=g+470;$i(u,259,g+384|0);J[g+368>>2]=g+472;$i(u,284,g+368|0);J[g+352>>2]=k;k=f-h|0;Fe:{Ge:{He:{Ie:{Je:{Ke:{Le:{Me:{Ne:{if(!ne(u,262,g+352|0)){Oe:switch(k-1|0){case 0:J[g+160>>2]=g+480;ne(u,259,g+160|0);f=L[g+480>>1]; +if(!(f-2>>>0>=3&(f|0)!=32771)){I[e+32>>1]=0;break Ne}I[e+32>>1]=1;break Ne;case 2:break Ge;default:break Oe}J[g+16>>2]=80480;cg(d,70838,g+16|0);f=0;break Ae}Pe:{Qe:{f=L[e+32>>1];switch(f|0){case 8:break Fe;case 4:case 7:break He;case 5:break Ke;case 2:break Le;case 6:break Me;case 0:case 1:break Ne;case 3:break Pe;default:break Qe}}switch(f-32844|0){case 1:break Ie;case 0:break Je;default:break He}}J[g+200>>2]=g+456;J[g+196>>2]=g+460;J[g+192>>2]=g+464;if(!ne(u,320,g+192|0)){f=0;e=K[77877]|K[77878]<< +8|(K[77879]<<16|K[77880]<<24);h=K[77873]|K[77874]<<8|(K[77875]<<16|K[77876]<<24);H[d+24|0]=h;H[d+25|0]=h>>>8;H[d+26|0]=h>>>16;H[d+27|0]=h>>>24;H[d+28|0]=e;H[d+29|0]=e>>>8;H[d+30|0]=e>>>16;H[d+31|0]=e>>>24;e=K[77869]|K[77870]<<8|(K[77871]<<16|K[77872]<<24);h=K[77865]|K[77866]<<8|(K[77867]<<16|K[77868]<<24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>>24;H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24;e=K[77861]|K[77862]<<8|(K[77863]<<16|K[77864]<<24);h=K[77857]|K[77858]<< +8|(K[77859]<<16|K[77860]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[77853]|K[77854]<<8|(K[77855]<<16|K[77856]<<24);h=K[77849]|K[77850]<<8|(K[77851]<<16|K[77852]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;break Ae}f=2<>1];Ea=e,Ka=Dc(f),J[Ea+36>>2]=Ka;Ea=e,Ka=Dc(f),J[Ea+40>>2]=Ka;h=Dc(f);J[e+44>>2]=h;q=J[e+36>>2];if(h?!q|!J[e+40>> +2]:1){f=0;e=K[78179]|K[78180]<<8|(K[78181]<<16|K[78182]<<24);h=K[78175]|K[78176]<<8|(K[78177]<<16|K[78178]<<24);H[d+24|0]=h;H[d+25|0]=h>>>8;H[d+26|0]=h>>>16;H[d+27|0]=h>>>24;H[d+28|0]=e;H[d+29|0]=e>>>8;H[d+30|0]=e>>>16;H[d+31|0]=e>>>24;e=K[78171]|K[78172]<<8|(K[78173]<<16|K[78174]<<24);h=K[78167]|K[78168]<<8|(K[78169]<<16|K[78170]<<24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>>24;H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24;e=K[78163]|K[78164]<<8|(K[78165]<<16|K[78166]<< +24);h=K[78159]|K[78160]<<8|(K[78161]<<16|K[78162]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[78155]|K[78156]<<8|(K[78157]<<16|K[78158]<<24);h=K[78151]|K[78152]<<8|(K[78153]<<16|K[78154]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;break Ae}Ue(q,J[g+464>>2],f);Ue(J[e+40>>2],J[g+460>>2],f);Ue(J[e+44>>2],J[g+456>>2],f)}if(L[g+472>>1]!=1)break Fe; +f=L[e+26>>1];if((f|0)==1)break Fe;h=L[e+24>>1];if(h>>>0>7)break Fe;e=L[e+32>>1];J[g+144>>2]=h;J[g+140>>2]=f;J[g+136>>2]=72118;J[g+132>>2]=e;J[g+128>>2]=80480;cg(d,71842,g+128|0);f=0;break Ae}if(L[g+472>>1]!=1|L[g+470>>1]!=7)break Fe;J[g+208>>2]=1;ke(u,65538,g+208|0);I[e+32>>1]=2;break Fe}if((k|0)>2)break Fe;J[g+228>>2]=k;J[g+224>>2]=73024;cg(d,72739,g+224|0);f=0;break Ae}J[g+256>>2]=g+480;$i(u,332,g+256|0);f=74082;h=L[g+480>>1];if((h|0)==1){f=72118;h=L[e+26>>1];if(h>>>0>=4)break Fe}J[g+244>>2]=h; +J[g+240>>2]=f;cg(d,73783,g+240|0);f=0;break Ae}if(L[g+470>>1]!=34676){J[g+292>>2]=34676;J[g+288>>2]=74986;cg(d,74672,g+288|0);f=0;break Ae}J[g+272>>2]=3;ke(u,65560,g+272|0);I[e+32>>1]=1;I[e+24>>1]=8;break Fe}if((L[g+470>>1]+30858&65535)>>>0<=65533){J[g+308>>2]=34676;J[g+312>>2]=34677;J[g+304>>2]=74986;cg(d,75490,g+304|0);f=0;break Ae}f=L[g+472>>1];if((f|0)!=1){J[g+340>>2]=f;J[g+336>>2]=76587;cg(d,76110,g+336|0);f=0;break Ae}J[g+320>>2]=3;ke(u,65560,g+320|0);I[e+32>>1]=2;I[e+24>>1]=8;break Fe}J[g+ +180>>2]=f;J[g+176>>2]=80480;cg(d,77276,g+176|0);f=0;break Ae}I[e+32>>1]=2}J[e+56>>2]=0;J[e+60>>2]=0;J[e+72>>2]=0;f=e- -64|0;J[f>>2]=0;J[f+4>>2]=0;J[g+112>>2]=e+16;ne(u,256,g+112|0);J[g+96>>2]=e+20;ne(u,257,g+96|0);J[g+80>>2]=e+28;$i(u,274,g+80|0);h=L[g+472>>1]!=2|(k|0)<2;J[e+8>>2]=h;f=J[J[e>>2]+12>>2]>>>10&1;if(h){J[e+52>>2]=0;J[e+48>>2]=f?520:521;Re:{Se:{Te:switch(L[e+32>>1]){case 2:Ue:switch(L[e+24>>1]-8|0){case 0:Ve:switch(J[e+12>>2]-1|0){case 0:J[e+52>>2]=522;break Se;case 1:J[e+52>>2]=523;break Se; +default:break Ve}J[e+52>>2]=524;break Se;case 8:break Ue;default:break Se}We:switch(J[e+12>>2]-1|0){case 0:J[e+52>>2]=525;break Se;case 1:J[e+52>>2]=526;break Se;default:break We}J[e+52>>2]=527;break Se;case 5:if(!HA(e)|L[e+24>>1]!=8)break Se;if(!J[e+56>>2]){J[e+52>>2]=528;break Se}J[e+52>>2]=529;break Se;case 3:if(!HA(e))break Se;Xe:switch(L[e+24>>1]-1|0){case 7:J[e+52>>2]=530;break Se;case 3:J[e+52>>2]=531;break Se;case 1:J[e+52>>2]=532;break Se;case 0:break Xe;default:break Se}J[e+52>>2]=533;break Se; +case 0:case 1:if(!HA(e))break Se;Ye:switch(L[e+24>>1]-1|0){case 15:J[e+52>>2]=534;break Se;case 7:J[e+52>>2]=535;break Se;case 3:J[e+52>>2]=536;break Se;case 1:J[e+52>>2]=537;break Se;case 0:break Ye;default:break Se}J[e+52>>2]=538;break Se;case 6:if(L[e+24>>1]!=8)break Se;if(!MV(e))break Se;f=J[e>>2];J[g+36>>2]=g+492;J[g+32>>2]=g+480;$i(f,530,g+32|0);f=539;Ze:switch((L[g+492>>1]|L[g+480>>1]<<4)-17|0){case 49:J[e+52>>2]=540;break Se;case 48:J[e+52>>2]=541;break Se;case 17:J[e+52>>2]=542;break Se; +case 16:J[e+52>>2]=543;break Se;case 1:J[e+52>>2]=544;break Se;case 0:f=545;break;case 51:break Ze;default:break Se}J[e+52>>2]=f;break Se;case 8:break Te;default:break Re}if(!HA(e)|L[e+24>>1]!=8)break Se;_e:{$e:{if(J[e+72>>2])break $e;f=Dc(18124);J[e+72>>2]=f;if(f)break $e;Uc(J[J[e>>2]+628>>2],2641984,82866,0);f=0;break _e}f=J[e>>2];J[g+48>>2]=g+492;$i(f,318,g+48|0);J[g+484>>2]=1120403456;f=J[g+492>>2];X=N[f>>2];C=N[f+4>>2];N[g+480>>2]=Q(X/C)*Q(100);N[g+488>>2]=Q(Q(Q(Q(1)-X)-C)/C)*Q(100);f=0;k=0; +h=J[e+72>>2];J[h>>2]=1500;Ue(h+28|0,2641864,84);q=J[h>>2];C=Q(Q(N[h- -64>>2]-N[h+88>>2])/Q(q|0));N[h+4>>2]=C;af:{bf:{if((q|0)<0){N[h+8>>2]=C;break bf}T=1/+N[h+100>>2];s=q+1|0;X=Q(M[h+76>>2]);z=+(q|0);if(q){t=s&-2;r=h+112|0;while(1){Ea=r+(f<<2)|0,La=Q(Q(_e(+(f|0)/z,T))*X),N[Ea>>2]=La;w=f|1;Ea=r+(w<<2)|0,La=Q(Q(_e(+(w|0)/z,T))*X),N[Ea>>2]=La;f=f+2|0;k=k+2|0;if((t|0)!=(k|0))continue;break}}if(!(q&1))Ea=h+(f<<2)|0,La=Q(Q(_e(+(f|0)/z,T))*X),N[Ea+112>>2]=La;N[h+8>>2]=C;f=0;if((q|0)<0)break bf;T=1/+N[h+ +104>>2];X=Q(M[h+80>>2]);if(q){t=s&-2;r=h+6116|0;k=0;while(1){Ea=r+(f<<2)|0,La=Q(Q(_e(+(f|0)/z,T))*X),N[Ea>>2]=La;w=f|1;Ea=r+(w<<2)|0,La=Q(Q(_e(+(w|0)/z,T))*X),N[Ea>>2]=La;f=f+2|0;k=k+2|0;if((t|0)!=(k|0))continue;break}}if(!(q&1))Ea=(h+(f<<2)|0)+6116|0,La=Q(Q(_e(+(f|0)/z,T))*X),N[Ea>>2]=La;N[h+12>>2]=C;f=0;if((q|0)<0)break af;T=1/+N[h+108>>2];C=Q(M[h+84>>2]);if(q){r=s&-2;s=h+12120|0;k=0;while(1){Ea=s+(f<<2)|0,La=Q(Q(_e(+(f|0)/z,T))*C),N[Ea>>2]=La;t=f|1;Ea=s+(t<<2)|0,La=Q(Q(_e(+(t|0)/z,T))*C),N[Ea>> +2]=La;f=f+2|0;k=k+2|0;if((r|0)!=(k|0))continue;break}}if(q&1)break af;Ea=(h+(f<<2)|0)+12120|0,La=Q(Q(_e(+(f|0)/z,T))*C),N[Ea>>2]=La;break af}N[h+12>>2]=C}N[h+16>>2]=N[g+480>>2];N[h+20>>2]=N[g+484>>2];N[h+24>>2]=N[g+488>>2];f=546}J[e+52>>2]=f}if(!J[e+48>>2])break Re;f=1;if(J[e+52>>2])break Ae}f=0;e=K[78805]|K[78806]<<8|(K[78807]<<16|K[78808]<<24);H[d+24|0]=e;H[d+25|0]=e>>>8;H[d+26|0]=e>>>16;H[d+27|0]=e>>>24;e=K[78801]|K[78802]<<8|(K[78803]<<16|K[78804]<<24);h=K[78797]|K[78798]<<8|(K[78799]<<16|K[78800]<< +24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>>24;H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24;e=K[78793]|K[78794]<<8|(K[78795]<<16|K[78796]<<24);h=K[78789]|K[78790]<<8|(K[78791]<<16|K[78792]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[78785]|K[78786]<<8|(K[78787]<<16|K[78788]<<24);h=K[78781]|K[78782]<<8|(K[78783]<<16|K[78784]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]= h>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;break Ae}J[e+52>>2]=0;J[e+48>>2]=f?547:548;cf:{df:{ef:switch(L[e+32>>1]-2|0){case 0:ff:switch(L[e+24>>1]-8|0){case 0:gf:switch(J[e+12>>2]-1|0){case 0:J[e+52>>2]=549;break df;case 1:J[e+52>>2]=550;break df;default:break gf}J[e+52>>2]=551;break df;case 8:break ff;default:break df}hf:switch(J[e+12>>2]-1|0){case 0:J[e+52>>2]=552;break df;case 1:J[e+52>>2]=553;break df;default:break hf}J[e+52>>2]=554;break df;case 4:break ef;default:break cf}if(L[e+ -24>>1]!=8|L[e+26>>1]!=3)break df;if(!zT(e))break df;f=J[e>>2];J[g+68>>2]=g+492;J[g+64>>2]=g+480;Ki(f,530,g- -64|0);if((L[g+492>>1]|L[g+480>>1]<<4)!=17)break df;J[e+52>>2]=555}if(!J[e+48>>2])break cf;f=1;if(J[e+52>>2])break Ae}f=0;e=K[78789]|K[78790]<<8|(K[78791]<<16|K[78792]<<24);H[d+24|0]=e;H[d+25|0]=e>>>8;H[d+26|0]=e>>>16;H[d+27|0]=e>>>24;e=K[78785]|K[78786]<<8|(K[78787]<<16|K[78788]<<24);h=K[78781]|K[78782]<<8|(K[78783]<<16|K[78784]<<24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>> -24;H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24;e=K[78777]|K[78778]<<8|(K[78779]<<16|K[78780]<<24);h=K[78773]|K[78774]<<8|(K[78775]<<16|K[78776]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[78769]|K[78770]<<8|(K[78771]<<16|K[78772]<<24);h=K[78765]|K[78766]<<8|(K[78767]<<16|K[78768]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>> -24}bc=g+496|0;if(!f)break ze;I[j+42>>1]=4;e=J[j+60>>2];jf:{if(!e){e=J[j+12>>2];Nc(J[e+628>>2],J[e>>2],79128,0);p=0;break jf}if(!J[j+64>>2]){e=J[j+12>>2];Nc(J[e+628>>2],J[e>>2],79481,0);p=0;break jf}d=J[j+32>>2];p=gc[e|0](j+12|0,l+(P(v,m-d|0)<<2)|0,v,d)|0}e=J[j+68>>2];if(e){qc(e);J[j+68>>2]=0}e=J[j+72>>2];if(e){qc(e);J[j+72>>2]=0}e=J[j+76>>2];if(e){qc(e);J[j+76>>2]=0}e=J[j+80>>2];if(e){qc(e);J[j+80>>2]=0}e=J[j+84>>2];if(e){qc(e);J[j+84>>2]=0}e=J[j+48>>2];if(e){qc(e);qc(J[j+52>>2]);qc(J[j+56>>2])}break ye}e= -J[u+628>>2];d=J[u>>2];J[j>>2]=j+96;Nc(e,d,79874,j)}bc=j+1120|0;if(!p){qc(l);qd(i+72|0,45498,255);break Wd}f=J[n+332>>2];if(f){r=J[i+56>>2];q=l;while(1){if(J[i+332>>2])break le;d=0;k=r;if(J[n+328>>2]){while(1){e=(d<<2)+q|0;H[k|0]=L[e+2>>1];H[k+1|0]=J[e>>2]>>>8;H[k+2|0]=J[e>>2];if(L[n+324>>1]==4)hh(i,d,o,K[e+3|0]);k=k+3|0;d=d+1|0;e=J[n+328>>2];if(d>>>0>>0)continue;break}f=J[n+332>>2];d=e}r=J[i+52>>2]+r|0;q=(d<<2)+q|0;o=o+1|0;if(o>>>0>>0)continue;break}}qc(l);break ge}g=L[n+318>>1];e=L[n+326>> -1];if(!((g|0)!=3|e>>>0<25)){qd(i+72|0,45631,255);break Wd}t=(g|0)==3&e>>>0>8;w=bd(t?1<>>0>=8?8:e;kf:{lf:switch(g|0){case 0:case 1:if((e|0)==1){if((g|0)==1){H[w+4|0]=255;H[w+5|0]=255;H[w+6|0]=255;break kf}H[w+2|0]=255;H[w|0]=255;H[w+1|0]=255;break kf}j=1<>>0)|0;if((g|0)!=1){k=0;if(e)while(1){g=(k<<2)+w|0;h=P(d,k)^-1;H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;h=k|1;g=(h<<2)+w|0;h=P(d,h)^-1;H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;k=k+2|0;f=f+2|0;if((j| -0)!=(f|0))continue;break}if(e)break kf;e=(k<<2)+w|0;d=P(d,k)^-1;H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;break kf}k=0;if(e)while(1){g=(k<<2)+w|0;h=P(d,k);H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;h=k|1;g=(h<<2)+w|0;h=P(d,h);H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;k=k+2|0;f=f+2|0;if((j|0)!=(f|0))continue;break}if(e)break kf;e=(k<<2)+w|0;d=P(d,k);H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;break kf;case 3:break lf;default:break kf}J[n+48>>2]=n+300;J[n+52>>2]=n+296;J[n+56>>2]=n+292;ce(u,320,n+48|0);d=1;mf:{if(t)break mf;k=1<>2]; +24>>1]!=8|L[e+26>>1]!=3)break df;if(!MV(e))break df;f=J[e>>2];J[g+68>>2]=g+492;J[g+64>>2]=g+480;$i(f,530,g- -64|0);if((L[g+492>>1]|L[g+480>>1]<<4)!=17)break df;J[e+52>>2]=555}if(!J[e+48>>2])break cf;f=1;if(J[e+52>>2])break Ae}f=0;e=K[78805]|K[78806]<<8|(K[78807]<<16|K[78808]<<24);H[d+24|0]=e;H[d+25|0]=e>>>8;H[d+26|0]=e>>>16;H[d+27|0]=e>>>24;e=K[78801]|K[78802]<<8|(K[78803]<<16|K[78804]<<24);h=K[78797]|K[78798]<<8|(K[78799]<<16|K[78800]<<24);H[d+16|0]=h;H[d+17|0]=h>>>8;H[d+18|0]=h>>>16;H[d+19|0]=h>>> +24;H[d+20|0]=e;H[d+21|0]=e>>>8;H[d+22|0]=e>>>16;H[d+23|0]=e>>>24;e=K[78793]|K[78794]<<8|(K[78795]<<16|K[78796]<<24);h=K[78789]|K[78790]<<8|(K[78791]<<16|K[78792]<<24);H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;H[d+12|0]=e;H[d+13|0]=e>>>8;H[d+14|0]=e>>>16;H[d+15|0]=e>>>24;e=K[78785]|K[78786]<<8|(K[78787]<<16|K[78788]<<24);h=K[78781]|K[78782]<<8|(K[78783]<<16|K[78784]<<24);H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>> +24}fc=g+496|0;if(!f)break ze;I[j+42>>1]=4;e=J[j+60>>2];jf:{if(!e){e=J[j+12>>2];Uc(J[e+628>>2],J[e>>2],79144,0);p=0;break jf}if(!J[j+64>>2]){e=J[j+12>>2];Uc(J[e+628>>2],J[e>>2],79497,0);p=0;break jf}d=J[j+32>>2];p=kc[e|0](j+12|0,l+(P(v,m-d|0)<<2)|0,v,d)|0}e=J[j+68>>2];if(e){uc(e);J[j+68>>2]=0}e=J[j+72>>2];if(e){uc(e);J[j+72>>2]=0}e=J[j+76>>2];if(e){uc(e);J[j+76>>2]=0}e=J[j+80>>2];if(e){uc(e);J[j+80>>2]=0}e=J[j+84>>2];if(e){uc(e);J[j+84>>2]=0}e=J[j+48>>2];if(e){uc(e);uc(J[j+52>>2]);uc(J[j+56>>2])}break ye}e= +J[u+628>>2];d=J[u>>2];J[j>>2]=j+96;Uc(e,d,79890,j)}fc=j+1120|0;if(!p){uc(l);Ad(i+72|0,45514,255);break Wd}f=J[n+332>>2];if(f){r=J[i+56>>2];q=l;while(1){if(J[i+332>>2])break le;d=0;k=r;if(J[n+328>>2]){while(1){e=(d<<2)+q|0;H[k|0]=L[e+2>>1];H[k+1|0]=J[e>>2]>>>8;H[k+2|0]=J[e>>2];if(L[n+324>>1]==4)yh(i,d,o,K[e+3|0]);k=k+3|0;d=d+1|0;e=J[n+328>>2];if(d>>>0>>0)continue;break}f=J[n+332>>2];d=e}r=J[i+52>>2]+r|0;q=(d<<2)+q|0;o=o+1|0;if(o>>>0>>0)continue;break}}uc(l);break ge}g=L[n+318>>1];e=L[n+326>> +1];if(!((g|0)!=3|e>>>0<25)){Ad(i+72|0,45647,255);break Wd}t=(g|0)==3&e>>>0>8;w=kd(t?1<>>0>=8?8:e;kf:{lf:switch(g|0){case 0:case 1:if((e|0)==1){if((g|0)==1){H[w+4|0]=255;H[w+5|0]=255;H[w+6|0]=255;break kf}H[w+2|0]=255;H[w|0]=255;H[w+1|0]=255;break kf}j=1<>>0)|0;if((g|0)!=1){k=0;if(e)while(1){g=(k<<2)+w|0;h=P(d,k)^-1;H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;h=k|1;g=(h<<2)+w|0;h=P(d,h)^-1;H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;k=k+2|0;f=f+2|0;if((j| +0)!=(f|0))continue;break}if(e)break kf;e=(k<<2)+w|0;d=P(d,k)^-1;H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;break kf}k=0;if(e)while(1){g=(k<<2)+w|0;h=P(d,k);H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;h=k|1;g=(h<<2)+w|0;h=P(d,h);H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;k=k+2|0;f=f+2|0;if((j|0)!=(f|0))continue;break}if(e)break kf;e=(k<<2)+w|0;d=P(d,k);H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d;break kf;case 3:break lf;default:break kf}J[n+48>>2]=n+300;J[n+52>>2]=n+296;J[n+56>>2]=n+292;ne(u,320,n+48|0);d=1;mf:{if(t)break mf;k=1<>2]; f=J[n+296>>2];g=J[n+300>>2];while(1){if((k|0)<=0){d=t;break mf}k=k-1|0;if(L[g+(k<<1)>>1]>255)break mf;j=k<<1;if(L[j+f>>1]>255)break mf;if(L[e+j>>1]<256)continue;break}}o=t?L[n+326>>1]:l;j=-1<>2];f=J[n+296>>2];g=J[n+300>>2];if(d)while(1){d=(k<<2)+w|0;j=k<<1;H[d+2|0]=L[j+g>>1]/257;H[d+1|0]=L[f+j>>1]/257;H[d|0]=L[e+j>>1]/257;d=(k|0)>0;k=k-1|0;if(d)continue;break kf}if(j&1){d=(k<<2)+w|0;h=k<<1;H[d+2|0]=K[h+g|0];H[d+1|0]=K[f+h|0];H[d|0]=K[e+h|0];k=-2-j|0}if(!o)break kf;while(1){d=(k<< -2)+w|0;j=k<<1;H[d+2|0]=K[j+g|0];H[d+1|0]=K[f+j|0];H[d|0]=K[e+j|0];j=k-1|0;d=(j<<2)+w|0;j=j<<1;H[d+2|0]=K[j+g|0];H[d+1|0]=K[f+j|0];H[d|0]=K[e+j|0];d=(k|0)>1;k=k-2|0;if(d)continue;break}}if(!t){KD(i,w,1<>1];g=L[n+326>>1];l=J[n+328>>2];d=ys(u);h=J[i+32>>2];o=J[i+52>>2];e=L[n+326>>1];k=J[n+320>>2];q=L[n+324>>1];F=J[u+12>>2]>>>10&1;j=0;J[n+300>>2]=0;J[n+296>>2]=0;f=P(P(g,l),f)+7|0;nf:{if(!F){g=e>>>0<=8?1:(e|0)==16?1:e+7>>>3|0;e=P(h,q);e=(d|0)<(e|0)?d:e;d=P(k,o);d=P(g,(d|0)<(e|0)? -e:d);break nf}J[n+32>>2]=n+300;ce(u,322,n+32|0);J[n+16>>2]=n+296;ce(u,323,n+16|0);J[n+320>>2]=J[n+296>>2];d=P(Ol(u),(M[n+328>>2]/M[n+300>>2]|0)+1|0);j=zc(Ol(u))}e=f>>>3|0;g=L[n+326>>1];h=d<<((g|0)==16);f=zc(h);of:{pf:{if(!((g|0)!=16|F)){l=L[n+324>>1];h=J[n+328>>2];g=zc(d);if(g)break pf;if(!f)break fe;qc(f);break fe}if(!f)break fe;l=0;A=1;k=J[n+332>>2];m=0;break of}o=P(h,l)&536870911;k=J[n+332>>2];if(!f){A=1;l=e;h=d;e=o;f=g;m=0;break of}l=e;p=f;h=d;e=o;f=g;m=zc(k)}qf:{if(!k)break qf;ta=A?e:l;na=A? -f:p;Y=e&536870910;ja=e&1;ua=e&536870908;oa=e&3;while(1){if(J[i+332>>2]){qc(f);qd(i+72|0,44685,255);break ee}d=J[n+320>>2];v=d+G>>>0>k>>>0?k-G|0:d;rf:{if(F){D=_i(u);r=Km(u);if(!J[n+328>>2])break rf;ea=D-r|0;S=r&7;va=!v|!r;E=0;ka=r-1>>>0<7;W=0;y=0;while(1){if((ws(u,j,W,G,0)|0)<0){qc(j);qc(f);qd(i+72|0,46471,255);break ee}sf:{if(D>>>0>2]+y>>>0){if(!v)break sf;o=D-y|0;if(!o)break sf;U=r-o|0;d=P(r,E);wa=D-d&7;k=f+y|0;sa=D+(d^-1)>>>0<7;s=v;d=j;while(1){q=0;g=o;if(wa)while(1){H[k|0]=K[d|0];k=k+ +2)+w|0;j=k<<1;H[d+2|0]=K[j+g|0];H[d+1|0]=K[f+j|0];H[d|0]=K[e+j|0];j=k-1|0;d=(j<<2)+w|0;j=j<<1;H[d+2|0]=K[j+g|0];H[d+1|0]=K[f+j|0];H[d|0]=K[e+j|0];d=(k|0)>1;k=k-2|0;if(d)continue;break}}if(!t){OE(i,w,1<>1];g=L[n+326>>1];l=J[n+328>>2];d=ot(u);h=J[i+32>>2];o=J[i+52>>2];e=L[n+326>>1];k=J[n+320>>2];q=L[n+324>>1];F=J[u+12>>2]>>>10&1;j=0;J[n+300>>2]=0;J[n+296>>2]=0;f=P(P(g,l),f)+7|0;nf:{if(!F){g=e>>>0<=8?1:(e|0)==16?1:e+7>>>3|0;e=P(h,q);e=(d|0)<(e|0)?d:e;d=P(k,o);d=P(g,(d|0)<(e|0)? +e:d);break nf}J[n+32>>2]=n+300;ne(u,322,n+32|0);J[n+16>>2]=n+296;ne(u,323,n+16|0);J[n+320>>2]=J[n+296>>2];d=P(Dm(u),(M[n+328>>2]/M[n+300>>2]|0)+1|0);j=Dc(Dm(u))}e=f>>>3|0;g=L[n+326>>1];h=d<<((g|0)==16);f=Dc(h);of:{pf:{if(!((g|0)!=16|F)){l=L[n+324>>1];h=J[n+328>>2];g=Dc(d);if(g)break pf;if(!f)break fe;uc(f);break fe}if(!f)break fe;l=0;A=1;k=J[n+332>>2];m=0;break of}o=P(h,l)&536870911;k=J[n+332>>2];if(!f){A=1;l=e;h=d;e=o;f=g;m=0;break of}l=e;p=f;h=d;e=o;f=g;m=Dc(k)}qf:{if(!k)break qf;ta=A?e:l;la=A? +f:p;Y=e&536870910;ja=e&1;ua=e&536870908;oa=e&3;while(1){if(J[i+332>>2]){uc(f);Ad(i+72|0,44701,255);break ee}d=J[n+320>>2];v=d+G>>>0>k>>>0?k-G|0:d;rf:{if(F){D=wj(u);r=Cn(u);if(!J[n+328>>2])break rf;ea=D-r|0;S=r&7;va=!v|!r;E=0;ka=r-1>>>0<7;W=0;y=0;while(1){if((mt(u,j,W,G,0)|0)<0){uc(j);uc(f);Ad(i+72|0,46487,255);break ee}sf:{if(D>>>0>2]+y>>>0){if(!v)break sf;o=D-y|0;if(!o)break sf;U=r-o|0;d=P(r,E);wa=D-d&7;k=f+y|0;sa=D+(d^-1)>>>0<7;s=v;d=j;while(1){q=0;g=o;if(wa)while(1){H[k|0]=K[d|0];k=k+ 1|0;d=d+1|0;g=g-1|0;q=q+1|0;if((wa|0)!=(q|0))continue;break}if(!sa)while(1){H[k|0]=K[d|0];H[k+1|0]=K[d+1|0];H[k+2|0]=K[d+2|0];H[k+3|0]=K[d+3|0];H[k+4|0]=K[d+4|0];H[k+5|0]=K[d+5|0];H[k+6|0]=K[d+6|0];H[k+7|0]=K[d+7|0];k=k+8|0;d=d+8|0;g=g-8|0;if(g)continue;break}d=d+U|0;k=ea+(k+U|0)|0;s=s-1|0;if(s)continue;break}break sf}if(va)break sf;k=f+y|0;o=v;d=j;while(1){q=0;g=r;if(S)while(1){H[k|0]=K[d|0];k=k+1|0;d=d+1|0;g=g-1|0;q=q+1|0;if((S|0)!=(q|0))continue;break}if(!ka)while(1){H[k|0]=K[d|0];H[k+1|0]=K[d+ -1|0];H[k+2|0]=K[d+2|0];H[k+3|0]=K[d+3|0];H[k+4|0]=K[d+4|0];H[k+5|0]=K[d+5|0];H[k+6|0]=K[d+6|0];H[k+7|0]=K[d+7|0];k=k+8|0;d=d+8|0;g=g-8|0;if(g)continue;break}k=k+ea|0;o=o-1|0;if(o)continue;break}}E=E+1|0;y=r+y|0;W=J[n+300>>2]+W|0;if(W>>>0>2])continue;break}break rf}if((xs(u,zs(u,G,0),na,P(v,ta))|0)==-1)break qf}if(v){y=x-v|0;s=0;while(1){W=v+(s^-1)|0;q=P(W,e);o=L[n+326>>1];tf:{if(t|(o|0)!=16)break tf;uf:{if(!A){if(e)break uf;H[m+(J[n+332>>2]+(s+y|0)|0)|0]=8;break tf}d=J[n+328>>2];if(!d)break tf; +1|0];H[k+2|0]=K[d+2|0];H[k+3|0]=K[d+3|0];H[k+4|0]=K[d+4|0];H[k+5|0]=K[d+5|0];H[k+6|0]=K[d+6|0];H[k+7|0]=K[d+7|0];k=k+8|0;d=d+8|0;g=g-8|0;if(g)continue;break}k=k+ea|0;o=o-1|0;if(o)continue;break}}E=E+1|0;y=r+y|0;W=J[n+300>>2]+W|0;if(W>>>0>2])continue;break}break rf}if((nt(u,pt(u,G,0),la,P(v,ta))|0)==-1)break qf}if(v){y=x-v|0;s=0;while(1){W=v+(s^-1)|0;q=P(W,e);o=L[n+326>>1];tf:{if(t|(o|0)!=16)break tf;uf:{if(!A){if(e)break uf;H[m+(J[n+332>>2]+(s+y|0)|0)|0]=8;break tf}d=J[n+328>>2];if(!d)break tf; r=q+1|0;k=0;if((d|0)!=1){x=d&-2;g=0;while(1){H[(k+q|0)+f|0]=K[(r+(k<<1)|0)+f|0];E=k|1;H[(E+q|0)+f|0]=K[(r+(E<<1)|0)+f|0];k=k+2|0;g=g+2|0;if((x|0)!=(g|0))continue;break}}if(!(d&1))break tf;H[(k+q|0)+f|0]=K[(r+(k<<1)|0)+f|0];break tf}E=P(l,W);g=E+1|0;r=0;k=0;d=0;x=0;if(e>>>0>=4)while(1){D=k<<1;ea=K[(g+(D|6)|0)+p|0];S=K[(g+(D|4)|0)+p|0];U=K[(g+(D|2)|0)+p|0];D=K[(g+D|0)+p|0];d=d&255;d=d>>>0>>0?D:d;d=d>>>0>>0?U:d;d=d>>>0>>0?S:d;d=d>>>0>>0?ea:d;k=k+4|0;x=x+4|0;if((ua|0)!=(x|0))continue;break}if(oa)while(1){x= K[(g+(k<<1)|0)+p|0];d=d&255;d=d>>>0>>0?x:d;k=k+1|0;r=r+1|0;if((oa|0)!=(r|0))continue;break}vf:{if(!(d&255)){k=8;break vf}k=0;if(d<<24>>24<0)break vf;while(1){k=k+1|0;d=d<<25>>24;if((d|0)>=0)continue;break}}H[m+(J[n+332>>2]+(s+y|0)|0)|0]=k;if(!e)break tf;d=8-k|0;k=0;g=0;if((e|0)!=1)while(1){r=(E+(k<<1)|0)+p|0;H[(k+q|0)+f|0]=(K[r|0]|K[r+1|0]<<8)>>>d;r=k|1;qa=(r+q|0)+f|0;r=(E+(r<<1)|0)+p|0;H[qa|0]=(K[r|0]|K[r+1|0]<<8)>>>d;k=k+2|0;g=g+2|0;if((Y|0)!=(g|0))continue;break}if(!ja)break tf;g=(E+(k<<1)| -0)+p|0;H[(k+q|0)+f|0]=(K[g|0]|K[g+1|0]<<8)>>>d}wf:{xf:switch(L[n+324>>1]-1|0){case 0:if(t){if(!A){H6(J[i+56>>2]+P(J[i+52>>2],J[n+332>>2]+(s+y|0)|0)|0,P(l,W)+p|0,J[n+328>>2],o,w);break wf}H6(J[i+56>>2]+P(J[i+52>>2],J[n+332>>2]+(s+y|0)|0)|0,f+q|0,J[n+328>>2],o,w);break wf}if(!((o|0)!=16&(o|0)!=L[i+26>>1])){d=J[i+52>>2];tc(J[i+56>>2]+P(d,J[n+332>>2]+(s+y|0)|0)|0,f+q|0,d>>>0>e>>>0?e:d);break wf}x=J[i+56>>2]+P(J[i+52>>2],J[n+332>>2]+(s+y|0)|0)|0;q=f+q|0;d=J[n+328>>2];g=0;k=o;yf:{if(k>>>0<=8){if((d|0)<= +0)+p|0;H[(k+q|0)+f|0]=(K[g|0]|K[g+1|0]<<8)>>>d}wf:{xf:switch(L[n+324>>1]-1|0){case 0:if(t){if(!A){J8(J[i+56>>2]+P(J[i+52>>2],J[n+332>>2]+(s+y|0)|0)|0,P(l,W)+p|0,J[n+328>>2],o,w);break wf}J8(J[i+56>>2]+P(J[i+52>>2],J[n+332>>2]+(s+y|0)|0)|0,f+q|0,J[n+328>>2],o,w);break wf}if(!((o|0)!=16&(o|0)!=L[i+26>>1])){d=J[i+52>>2];xc(J[i+56>>2]+P(d,J[n+332>>2]+(s+y|0)|0)|0,f+q|0,d>>>0>e>>>0?e:d);break wf}x=J[i+56>>2]+P(J[i+52>>2],J[n+332>>2]+(s+y|0)|0)|0;q=f+q|0;d=J[n+328>>2];g=0;k=o;yf:{if(k>>>0<=8){if((d|0)<= 0)break yf;E=-1<>>8-r|0;break zf}g=r-8|0;o=K[q|0]<>>16-r;q=q+1|0}H[x|0]=o&E;g=(r|0)>7?g:r;x=x+1|0;q=((r|0)==8)+q|0;o=d>>>0>1;d=d-1|0;if(o)continue;break}break yf}if(k>>>0<=15){if((d|0)<=0)break yf;r=k-8|0;E=k+7|0;while(1){o=d;d=K[q|0]|K[q+1|0]<<8|(K[q+2|0]<<16|K[q+3|0]<<24);H[x|0]=(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>24-g;d=g+k|0;Af:{if((d|0)>=8){d=(g+E|0)-((d|0)>=15?15:d)|0;g=(g+r|0)-(d&-8)|0;q=q+1+(d>>>3)|0;break Af}g=d}x= x+1|0;d=o-1|0;if(o>>>0>=2)continue;break}break yf}if(k>>>0>=32){if((d|0)<=0)break yf;o=d&3;Bf:{if(!o){g=d;break Bf}r=0;g=d;while(1){H[x|0]=K[q+3|0];q=q+4|0;x=x+1|0;g=g-1|0;r=r+1|0;if((o|0)!=(r|0))continue;break}}if(d>>>0<4)break yf;while(1){H[x|0]=K[q+3|0];H[x+1|0]=K[q+7|0];H[x+2|0]=K[q+11|0];H[x+3|0]=K[q+15|0];q=q+16|0;x=x+4|0;d=g-5|0;g=g-4|0;if(d>>>0<4294967294)continue;break}break yf}if((d|0)<=0)break yf;r=k-8|0;E=k+7|0;while(1){o=d;d=K[q|0]|K[q+1|0]<<8|(K[q+2|0]<<16|K[q+3|0]<<24);qa=d<<24|(d& -65280)<<8|(d>>>8&65280|d>>>24);d=g+k|0;H[x|0]=qa>>>d-8;Cf:{if((d|0)>=8){d=(g+E|0)-((d|0)>=15?15:d)|0;g=(g+r|0)-(d&-8)|0;q=q+1+(d>>>3)|0;break Cf}g=d}x=x+1|0;d=o-1|0;if(o>>>0>=2)continue;break}}break wf;case 1:d=J[n+332>>2];if(!J[i+964>>2])Jk(i);if(!e)break wf;k=d+(s+y|0)|0;g=0;d=0;while(1){o=(g+q|0)+f|0;sm(i,d,k,K[o|0]);hh(i,d,k,K[o+1|0]);d=d+1|0;o=(d|0)>=J[n+328>>2];d=o?0:d;k=k-o|0;g=g+2|0;if(e>>>0>g>>>0)continue;break}break wf;default:break xf}Df:{if(L[i+26>>1]==24)break Df;mi(i,J[n+328>>2],J[n+ -332>>2],24,6);if(L[n+324>>1]!=4)break Df;Jk(i)}if(!J[n+328>>2])break wf;k=J[n+332>>2]+(s+y|0)|0;g=0;d=0;while(1){o=0;x=0;r=q+P(L[n+324>>1],g)|0;E=r+2|0;if((E|0)<(h|0)){o=K[f+E|0];x=o<<24>>24<0?o|-256:o;E=f+r|0;o=K[E+1|0];o=o<<24>>24<0?o|-256:o;qa=K[E|0]}else qa=0;z=(+(qa|0)/2.55+16)/116;T=We(z+ +(x|0)*-.005,3)*1.0883;Ca=T*1.057311;xa=We(+(o|0)*.002+z,3)*.95047;z=We(z,3);Da=xa*.055648+z*-.204043;pa=T*.041556+(xa*-.969256+z*1.875992);z=T*-.498535+(xa*3.240479+z*-1.53715);Ef:{if(z>.00304){z=We(z,.41667)* -1.055+-.055;break Ef}z=z*12.92}T=z;xa=Ca+Da;Ff:{if(pa>.00304){z=We(pa,.41667)*1.055+-.055;break Ff}z=pa*12.92}pa=z;Gf:{if(xa>.00304){z=We(xa,.41667)*1.055+-.055;break Gf}z=xa*12.92}T=T*255;Hf:{if(R(T)<2147483648){o=~~T;break Hf}o=-2147483648}o=(o|0)>=255?255:o;H[n+290|0]=(o|0)>0?o:0;T=pa*255;If:{if(R(T)<2147483648){o=~~T;break If}o=-2147483648}o=(o|0)>=255?255:o;H[n+289|0]=(o|0)>0?o:0;z=z*255;Jf:{if(R(z)<2147483648){o=~~z;break Jf}o=-2147483648}o=(o|0)>=255?255:o;H[n+288|0]=(o|0)>0?o:0;J[n+12>>2]= -K[n+288|0]|K[n+289|0]<<8|(K[n+290|0]<<16|K[n+291|0]<<24);Zp(i,d,k,n+12|0,0);if(L[n+324>>1]==4)hh(i,d,k,K[(f+r|0)+3|0]);d=d+1|0;r=J[n+328>>2];o=(d|0)>=(r|0);d=o?0:d;k=k-o|0;g=g+1|0;if(r>>>0>g>>>0)continue;break}}s=s+1|0;if(v>>>0>s>>>0)continue;break}}G=J[n+320>>2]+G|0;x=0-G|0;k=J[n+332>>2];if(G>>>0>>0)continue;break}}qc(f);if(!A)qc(p);if(t|(!m|(L[n+324>>1]!=1|L[n+326>>1]!=16)))break je;r=J[n+332>>2];if(!r)break ie;e=r&3;d=0;if(r>>>0<4){q=8;k=0;break ke}f=r&-4;k=0;q=8;g=0;while(1){l=K[k+m|0];l=(l| -0)>(q|0)?q:l;h=K[m+(k|1)|0];l=(h|0)>(l|0)?l:h;h=K[m+(k|2)|0];l=(h|0)>(l|0)?l:h;h=K[m+(k|3)|0];q=(h|0)>(l|0)?l:h;k=k+4|0;g=g+4|0;if((f|0)!=(g|0))continue;break}break ke}qc(l);qd(i+72|0,44685,255);break ee}if(e)while(1){f=K[k+m|0];q=(f|0)>(q|0)?q:f;k=k+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}if(!r)break ie;o=0;while(1){e=K[m+o|0];if(!(!J[n+328>>2]|(e|0)<=(q|0))){e=e-q|0;k=J[i+56>>2]+P(J[i+52>>2],o)|0;d=0;while(1){H[k|0]=K[k|0]>>>e;k=k+1|0;d=d+1|0;if(d>>>0>2])continue;break}r=J[n+332>>2]}o= -o+1|0;if(r>>>0>o>>>0)continue;break}}if(!m)break he}qc(m)}if(F)qc(j);if(w)qc(w);Kf:switch(L[n+314>>1]-2|0){case 1:pD(i);wx(i);break ge;case 2:pD(i);break ge;case 3:sM(i);wx(i);break ge;case 4:oD(i);break ge;case 5:oD(i);wx(i);break ge;case 6:sM(i);break ge;case 0:break Kf;default:break ge}wx(i)}ov(u);e=1;break Rd}if(w)qc(w);if(j)qc(j);qd(i+72|0,46320,255)}if(!u)break Sd}ov(u)}e=J[i+332>>2]==-1&J[i+68>>2]==6}bc=n+336|0;if(e)break b;J[a+356>>2]=J[i+356>>2];ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia, -0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(1028);J[695492]=0;i=HL(d);e=J[695492];J[695492]=0;if((e|0)==1)break f;Gj(i,a);e=0;Lf:{if(!b)break Lf;e=L8(i+980|0);J[i+976>>2]=e;if(!e){qd(i+72|0,43659,255);e=0;break Lf}J[i+980>>2]=b;if(!(!e|J[e>>2]!=1381173770))H[e+87|0]=1;e=J[i+976>>2];if(!(!e|J[e>>2]!=1381173770)){H[e+86|0]=0;I[e+84>>1]=65535;I[e+82>>1]=65535;I[e+80>>1]=65535}e=J[i+976>>2];if(!(!e|J[e>>2]!=1381173770))H[e+86|0]=1;e=J[i+976>>2];if(!(!e|J[e>>2]!=1381173770))H[e+112|0]=0;e=J[i+976>>2]; -Mf:{if(!e|J[e>>2]!=1381173770)break Mf;if(K[e+344|0]){Dc(e,11,0,0);break Mf}H[e+370|0]=0}e=J[i+976>>2];if(!(!e|J[e>>2]!=1381173770))J[e+180>>2]=219;if(!(!e|J[e>>2]!=1381173770))J[e+164>>2]=220;if(!(!e|J[e>>2]!=1381173770))J[e+168>>2]=221;if(!(!e|J[e>>2]!=1381173770))J[e+172>>2]=222;if(!(!e|J[e>>2]!=1381173770))J[e+188>>2]=223;if(!(!e|J[e>>2]!=1381173770))J[e+220>>2]=224;if(!(!e|J[e>>2]!=1381173770))J[e+232>>2]=225;if(!(!e|J[e>>2]!=1381173770))J[e+236>>2]=226;if(!(!e|J[e>>2]!=1381173770))J[e+240>> +65280)<<8|(d>>>8&65280|d>>>24);d=g+k|0;H[x|0]=qa>>>d-8;Cf:{if((d|0)>=8){d=(g+E|0)-((d|0)>=15?15:d)|0;g=(g+r|0)-(d&-8)|0;q=q+1+(d>>>3)|0;break Cf}g=d}x=x+1|0;d=o-1|0;if(o>>>0>=2)continue;break}}break wf;case 1:d=J[n+332>>2];if(!J[i+964>>2])gl(i);if(!e)break wf;k=d+(s+y|0)|0;g=0;d=0;while(1){o=(g+q|0)+f|0;jn(i,d,k,K[o|0]);yh(i,d,k,K[o+1|0]);d=d+1|0;o=(d|0)>=J[n+328>>2];d=o?0:d;k=k-o|0;g=g+2|0;if(e>>>0>g>>>0)continue;break}break wf;default:break xf}Df:{if(L[i+26>>1]==24)break Df;Bi(i,J[n+328>>2],J[n+ +332>>2],24,6);if(L[n+324>>1]!=4)break Df;gl(i)}if(!J[n+328>>2])break wf;k=J[n+332>>2]+(s+y|0)|0;g=0;d=0;while(1){o=0;x=0;r=q+P(L[n+324>>1],g)|0;E=r+2|0;if((E|0)<(h|0)){o=K[f+E|0];x=o<<24>>24<0?o|-256:o;E=f+r|0;o=K[E+1|0];o=o<<24>>24<0?o|-256:o;qa=K[E|0]}else qa=0;z=(+(qa|0)/2.55+16)/116;T=_e(z+ +(x|0)*-.005,3)*1.0883;Ca=T*1.057311;xa=_e(+(o|0)*.002+z,3)*.95047;z=_e(z,3);Da=xa*.055648+z*-.204043;pa=T*.041556+(xa*-.969256+z*1.875992);z=T*-.498535+(xa*3.240479+z*-1.53715);Ef:{if(z>.00304){z=_e(z,.41667)* +1.055+-.055;break Ef}z=z*12.92}T=z;xa=Ca+Da;Ff:{if(pa>.00304){z=_e(pa,.41667)*1.055+-.055;break Ff}z=pa*12.92}pa=z;Gf:{if(xa>.00304){z=_e(xa,.41667)*1.055+-.055;break Gf}z=xa*12.92}T=T*255;Hf:{if(R(T)<2147483648){o=~~T;break Hf}o=-2147483648}o=(o|0)>=255?255:o;H[n+290|0]=(o|0)>0?o:0;T=pa*255;If:{if(R(T)<2147483648){o=~~T;break If}o=-2147483648}o=(o|0)>=255?255:o;H[n+289|0]=(o|0)>0?o:0;z=z*255;Jf:{if(R(z)<2147483648){o=~~z;break Jf}o=-2147483648}o=(o|0)>=255?255:o;H[n+288|0]=(o|0)>0?o:0;J[n+12>>2]= +K[n+288|0]|K[n+289|0]<<8|(K[n+290|0]<<16|K[n+291|0]<<24);Qq(i,d,k,n+12|0,0);if(L[n+324>>1]==4)yh(i,d,k,K[(f+r|0)+3|0]);d=d+1|0;r=J[n+328>>2];o=(d|0)>=(r|0);d=o?0:d;k=k-o|0;g=g+1|0;if(r>>>0>g>>>0)continue;break}}s=s+1|0;if(v>>>0>s>>>0)continue;break}}G=J[n+320>>2]+G|0;x=0-G|0;k=J[n+332>>2];if(G>>>0>>0)continue;break}}uc(f);if(!A)uc(p);if(t|(!m|(L[n+324>>1]!=1|L[n+326>>1]!=16)))break je;r=J[n+332>>2];if(!r)break ie;e=r&3;d=0;if(r>>>0<4){q=8;k=0;break ke}f=r&-4;k=0;q=8;g=0;while(1){l=K[k+m|0];l=(l| +0)>(q|0)?q:l;h=K[m+(k|1)|0];l=(h|0)>(l|0)?l:h;h=K[m+(k|2)|0];l=(h|0)>(l|0)?l:h;h=K[m+(k|3)|0];q=(h|0)>(l|0)?l:h;k=k+4|0;g=g+4|0;if((f|0)!=(g|0))continue;break}break ke}uc(l);Ad(i+72|0,44701,255);break ee}if(e)while(1){f=K[k+m|0];q=(f|0)>(q|0)?q:f;k=k+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}if(!r)break ie;o=0;while(1){e=K[m+o|0];if(!(!J[n+328>>2]|(e|0)<=(q|0))){e=e-q|0;k=J[i+56>>2]+P(J[i+52>>2],o)|0;d=0;while(1){H[k|0]=K[k|0]>>>e;k=k+1|0;d=d+1|0;if(d>>>0>2])continue;break}r=J[n+332>>2]}o= +o+1|0;if(r>>>0>o>>>0)continue;break}}if(!m)break he}uc(m)}if(F)uc(j);if(w)uc(w);Kf:switch(L[n+314>>1]-2|0){case 1:tE(i);ny(i);break ge;case 2:tE(i);break ge;case 3:ON(i);ny(i);break ge;case 4:sE(i);break ge;case 5:sE(i);ny(i);break ge;case 6:ON(i);break ge;case 0:break Kf;default:break ge}ny(i)}dw(u);e=1;break Rd}if(w)uc(w);if(j)uc(j);Ad(i+72|0,46336,255)}if(!u)break Sd}dw(u)}e=J[i+332>>2]==-1&J[i+68>>2]==6}fc=n+336|0;if(e)break b;J[a+356>>2]=J[i+356>>2];of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia, +0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(1028);J[699344]=0;i=bN(d);e=J[699344];J[699344]=0;if((e|0)==1)break f;bk(i,a);e=0;Lf:{if(!b)break Lf;e=Naa(i+980|0);J[i+976>>2]=e;if(!e){Ad(i+72|0,43675,255);e=0;break Lf}J[i+980>>2]=b;if(!(!e|J[e>>2]!=1381173770))H[e+87|0]=1;e=J[i+976>>2];if(!(!e|J[e>>2]!=1381173770)){H[e+86|0]=0;I[e+84>>1]=65535;I[e+82>>1]=65535;I[e+80>>1]=65535}e=J[i+976>>2];if(!(!e|J[e>>2]!=1381173770))H[e+86|0]=1;e=J[i+976>>2];if(!(!e|J[e>>2]!=1381173770))H[e+112|0]=0;e=J[i+976>> +2];Mf:{if(!e|J[e>>2]!=1381173770)break Mf;if(K[e+344|0]){Jc(e,11,0,0);break Mf}H[e+370|0]=0}e=J[i+976>>2];if(!(!e|J[e>>2]!=1381173770))J[e+180>>2]=219;if(!(!e|J[e>>2]!=1381173770))J[e+164>>2]=220;if(!(!e|J[e>>2]!=1381173770))J[e+168>>2]=221;if(!(!e|J[e>>2]!=1381173770))J[e+172>>2]=222;if(!(!e|J[e>>2]!=1381173770))J[e+188>>2]=223;if(!(!e|J[e>>2]!=1381173770))J[e+220>>2]=224;if(!(!e|J[e>>2]!=1381173770))J[e+232>>2]=225;if(!(!e|J[e>>2]!=1381173770))J[e+236>>2]=226;if(!(!e|J[e>>2]!=1381173770))J[e+240>> 2]=227;if(!(!e|J[e>>2]!=1381173770))J[e+232>>2]=225;if(!(!e|J[e>>2]!=1381173770))J[e+228>>2]=228;J[i+356>>2]=0;e=2;f=J[i+976>>2];Nf:{if(!f|J[f>>2]!=1381173770)break Nf;Of:{Pf:{if(!J[f+152>>2]|!J[f+156>>2]|(!J[f+172>>2]|!J[f+220>>2]))break Pf;if(!J[f+232>>2])break Pf;e=J[f+236>>2];if(!e|!J[f+240>>2])break Pf;if(K[f+344|0]|K[f+432|0]|(K[f+417|0]|K[f+416|0]))break Of;H[f+496|0]=1;H[f+432|0]=1;H[f+344|0]=1;J[f+148>>2]=0;J[f+140>>2]=0;J[f+144>>2]=0;H[f+136|0]=0;J[f+132>>2]=0;J[f+480>>2]=0;J[f+444>>2]= -0;J[f+436>>2]=0;J[f+440>>2]=0;J[f+464>>2]=0;J[f+468>>2]=0;H[f+469|0]=0;H[f+470|0]=0;H[f+471|0]=0;H[f+472|0]=0;H[f+473|0]=0;H[f+474|0]=0;H[f+475|0]=0;H[f+476|0]=0;e=gc[e|0](f)|0;J[f+492>>2]=0;J[f+488>>2]=e;J[f+364>>2]=0;J[f+484>>2]=e;Qf:{Rf:{e=J[f+164>>2];if(!e)break Rf;if(gc[e|0](f)|0)break Rf;d=901;break Qf}d=o8(f)}e=4;Sf:switch(K[f+346|0]){case 1:H[f+344|0]=0;xN(f);break;case 0:break Sf;default:break Nf}e=d;if(d)break Nf;if(K[f+368|0]){Ea=f,Ka=gc[J[f+236>>2]](f)|0,J[Ea+364>>2]=Ka;e=14;break Nf}e= -15;if(K[f+497|0])break Nf;e=16;if(K[f+499|0])break Nf;e=0;H[f+496|0]=0;if(!K[f+500|0])break Nf;H[f+500|0]=0;break Nf}Dc(f,3,0,0);e=3;break Nf}Dc(f,11,0,0);e=11}d=e;if(!(!d|(d|0)==15)){e=0;j=0;f=J[i+976>>2];if(f)Tf:{J[f+144>>2]=0;J[f+140>>2]=0;J[f+132>>2]=d;l=44;g=88;Uf:{Vf:{while(1){h=J[(l<<3)+215008>>2];Wf:{if((h|0)<(d|0)){j=l+1|0;break Wf}if((d|0)>=(h|0))break Vf;g=l-1|0}l=g+j>>1;if((g|0)>=(j|0))continue;break}g=212788;break Uf}g=J[(l<<3)+215012>>2]}J[f+148>>2]=g;if(!d){H[f+136|0]=0;break Tf}Xf:{d= -d&15360;if((d|0)!=8192){if((d|0)!=4096){if((d|0)!=2048)break Xf;H[f+136|0]=5;break Tf}H[f+136|0]=2;break Tf}H[f+136|0]=1;break Tf}H[f+136|0]=9}d=J[J[i+976>>2]+148>>2];if(d){if(!K[d|0])break Lf;qd(i+72|0,d,255);break Lf}qd(i+72|0,44404,255);break Lf}Yf:{if(J[i+332>>2]!=-1){if(K[f+344|0])while(1){d=J8(J[i+976>>2]);J[i+356>>2]=J[i+356>>2]+1;if(K[f+344|0])continue;break}Zf:{if((d|0)!=15){d=J[i+356>>2]-1|0;J[i+356>>2]=d;break Zf}H[i+1014|0]=1;d=J[i+356>>2]}if((d|0)<=0){J[i+356>>2]=1;d=1}_f:{if(K[i+1015| -0])break _f;e=J[i+352>>2];if(e>>>0>=d>>>0)break Yf;if((e|0)<=0)break _f;d=0;while(1){J8(J[i+976>>2]);d=d+1|0;if((d|0)>2])continue;break}}e=J[i+1020>>2];if((e|0)>=0){J[i+336>>2]=e;H[i+342|0]=K[i+1026|0];I[i+340>>1]=L[i+1024>>1]}if(mi(i,J[i+1E3>>2],J[i+1004>>2],I[i+1012>>1],17)){tc(df(i,0),J[i+984>>2],P(J[i+20>>2],J[i+52>>2]));g=0;e=J[i+4>>2];$f:{if(!e)break $f;d=J[i+44>>2];if(!d){if(J[i+20>>2]<=0)break $f;h=0;while(1){d=df(i,h);ag:{if(!d|J[i+44>>2])break ag;e=J[i+52>>2];f=P(J[i+16>>2],3); +0;J[f+436>>2]=0;J[f+440>>2]=0;J[f+464>>2]=0;J[f+468>>2]=0;H[f+469|0]=0;H[f+470|0]=0;H[f+471|0]=0;H[f+472|0]=0;H[f+473|0]=0;H[f+474|0]=0;H[f+475|0]=0;H[f+476|0]=0;e=kc[e|0](f)|0;J[f+492>>2]=0;J[f+488>>2]=e;J[f+364>>2]=0;J[f+484>>2]=e;Qf:{Rf:{e=J[f+164>>2];if(!e)break Rf;if(kc[e|0](f)|0)break Rf;d=901;break Qf}d=qaa(f)}e=4;Sf:switch(K[f+346|0]){case 1:H[f+344|0]=0;RO(f);break;case 0:break Sf;default:break Nf}e=d;if(d)break Nf;if(K[f+368|0]){Ea=f,Ka=kc[J[f+236>>2]](f)|0,J[Ea+364>>2]=Ka;e=14;break Nf}e= +15;if(K[f+497|0])break Nf;e=16;if(K[f+499|0])break Nf;e=0;H[f+496|0]=0;if(!K[f+500|0])break Nf;H[f+500|0]=0;break Nf}Jc(f,3,0,0);e=3;break Nf}Jc(f,11,0,0);e=11}d=e;if(!(!d|(d|0)==15)){e=0;j=0;f=J[i+976>>2];if(f)Tf:{J[f+144>>2]=0;J[f+140>>2]=0;J[f+132>>2]=d;l=44;g=88;Uf:{Vf:{while(1){h=J[(l<<3)+215024>>2];Wf:{if((h|0)<(d|0)){j=l+1|0;break Wf}if((d|0)>=(h|0))break Vf;g=l-1|0}l=g+j>>1;if((g|0)>=(j|0))continue;break}g=212804;break Uf}g=J[(l<<3)+215028>>2]}J[f+148>>2]=g;if(!d){H[f+136|0]=0;break Tf}Xf:{d= +d&15360;if((d|0)!=8192){if((d|0)!=4096){if((d|0)!=2048)break Xf;H[f+136|0]=5;break Tf}H[f+136|0]=2;break Tf}H[f+136|0]=1;break Tf}H[f+136|0]=9}d=J[J[i+976>>2]+148>>2];if(d){if(!K[d|0])break Lf;Ad(i+72|0,d,255);break Lf}Ad(i+72|0,44420,255);break Lf}Yf:{if(J[i+332>>2]!=-1){if(K[f+344|0])while(1){d=Laa(J[i+976>>2]);J[i+356>>2]=J[i+356>>2]+1;if(K[f+344|0])continue;break}Zf:{if((d|0)!=15){d=J[i+356>>2]-1|0;J[i+356>>2]=d;break Zf}H[i+1014|0]=1;d=J[i+356>>2]}if((d|0)<=0){J[i+356>>2]=1;d=1}_f:{if(K[i+1015| +0])break _f;e=J[i+352>>2];if(e>>>0>=d>>>0)break Yf;if((e|0)<=0)break _f;d=0;while(1){Laa(J[i+976>>2]);d=d+1|0;if((d|0)>2])continue;break}}e=J[i+1020>>2];if((e|0)>=0){J[i+336>>2]=e;H[i+342|0]=K[i+1026|0];I[i+340>>1]=L[i+1024>>1]}if(Bi(i,J[i+1E3>>2],J[i+1004>>2],I[i+1012>>1],17)){xc(mf(i,0),J[i+984>>2],P(J[i+20>>2],J[i+52>>2]));g=0;e=J[i+4>>2];$f:{if(!e)break $f;d=J[i+44>>2];if(!d){if(J[i+20>>2]<=0)break $f;h=0;while(1){d=mf(i,h);ag:{if(!d|J[i+44>>2])break ag;e=J[i+52>>2];f=P(J[i+16>>2],3); e=(e|0)<(f|0)?e:f;if((e|0)<=0)break ag;f=((e-1>>>0)/3|0)+1|0;j=f&3;g=0;o=0;if(e>>>0>=10){n=f&2147483644;f=0;while(1){e=d+o|0;l=K[e+2|0];H[e+2|0]=K[e|0];H[e|0]=l;l=d+(o|3)|0;p=K[l+2|0];H[l+2|0]=K[l|0];H[l|0]=p;l=K[e+8|0];H[e+8|0]=K[e+6|0];H[e+6|0]=l;l=K[e+9|0];H[e+9|0]=K[e+11|0];H[e+11|0]=l;o=o+12|0;f=f+4|0;if((n|0)!=(f|0))continue;break}}if(!j)break ag;while(1){e=d+o|0;f=K[e+2|0];H[e+2|0]=K[e|0];H[e|0]=f;o=o+3|0;g=g+1|0;if((j|0)!=(g|0))continue;break}}h=h+1|0;if((h|0)>2])continue;break}break $f}f= -e+40|0;o=0;while(1){e=f+(o<<2)|0;l=K[e+2|0];H[e+2|0]=K[e|0];H[e|0]=l;g=g+1|0;o=g&65535;if(d>>>0>o>>>0)continue;break}}Jk(i);e=1;if(!J[i+964>>2]|!J[i+988>>2])break Lf;tc(rN(i),J[i+988>>2],P(J[i+1004>>2],J[i+1E3>>2]));break Lf}qd(i+72|0,44952,255);e=0;break Lf}e=J[i+976>>2];J[i+16>>2]=J[e+16>>2];J[i+20>>2]=J[e+20>>2];J[i+68>>2]=17;e=1;break Lf}qd(i+72|0,44636,255);e=0}if(e)break b;J[a+356>>2]=J[i+356>>2];ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(976); -J[695492]=0;i=qf(d,7);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[i>>2]=45920;Gj(i,a);e=0;d=bc-800|0;bc=d;bg:{if(!b)break bg;if(!(gc[J[J[b>>2]+12>>2]](b,d+782|0,18,1,0,0)|0)){qd(i+72|0,43510,255);break bg}f=(K[d+785|0]|K[d+786|0]<<8)<<16>>16;f=K[i+494|0]?f:f<<8|(f&65280)>>>8;H[d+785|0]=f;H[d+786|0]=f>>>8;f=(K[d+787|0]|K[d+788|0]<<8)<<16>>16;f=K[i+494|0]?f:f<<8|(f&65280)>>>8;H[d+787|0]=f;H[d+788|0]=f>>>8;f=(K[d+790|0]|K[d+791|0]<<8)<<16>>16;f=K[i+494|0]?f:f<<8|(f&65280)>>>8;H[d+790|0]=f;H[d+791| +e+40|0;o=0;while(1){e=f+(o<<2)|0;l=K[e+2|0];H[e+2|0]=K[e|0];H[e|0]=l;g=g+1|0;o=g&65535;if(d>>>0>o>>>0)continue;break}}gl(i);e=1;if(!J[i+964>>2]|!J[i+988>>2])break Lf;xc(LO(i),J[i+988>>2],P(J[i+1004>>2],J[i+1E3>>2]));break Lf}Ad(i+72|0,44968,255);e=0;break Lf}e=J[i+976>>2];J[i+16>>2]=J[e+16>>2];J[i+20>>2]=J[e+20>>2];J[i+68>>2]=17;e=1;break Lf}Ad(i+72|0,44652,255);e=0}if(e)break b;J[a+356>>2]=J[i+356>>2];of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(976); +J[699344]=0;i=xf(d,7);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[i>>2]=45936;bk(i,a);e=0;d=fc-800|0;fc=d;bg:{if(!b)break bg;if(!(kc[J[J[b>>2]+12>>2]](b,d+782|0,18,1,0,0)|0)){Ad(i+72|0,43526,255);break bg}f=(K[d+785|0]|K[d+786|0]<<8)<<16>>16;f=K[i+494|0]?f:f<<8|(f&65280)>>>8;H[d+785|0]=f;H[d+786|0]=f>>>8;f=(K[d+787|0]|K[d+788|0]<<8)<<16>>16;f=K[i+494|0]?f:f<<8|(f&65280)>>>8;H[d+787|0]=f;H[d+788|0]=f>>>8;f=(K[d+790|0]|K[d+791|0]<<8)<<16>>16;f=K[i+494|0]?f:f<<8|(f&65280)>>>8;H[d+790|0]=f;H[d+791| 0]=f>>>8;f=(K[d+792|0]|K[d+793|0]<<8)<<16>>16;f=K[i+494|0]?f:f<<8|(f&65280)>>>8;H[d+792|0]=f;H[d+793|0]=f>>>8;f=(K[d+794|0]|K[d+795|0]<<8)<<16>>16;f=K[i+494|0]?f:f<<8|(f&65280)>>>8;H[d+794|0]=f;H[d+795|0]=f>>>8;f=(K[d+796|0]|K[d+797|0]<<8)<<16>>16;f=(K[i+494|0]?f:f<<8|(f&65280)>>>8)<<16>>16;H[d+796|0]=f;H[d+797|0]=f>>>8;l=K[d+784|0]-1|0;g=l&255;if(!(g>>>0>=11|!(1799>>>g&1))){cg:{dg:{if(!f)break dg;g=K[d+794|0]|K[d+795|0]<<8;if(!g)break dg;e=K[d+798|0];if(!e)break dg;if((K[d+787|0]|K[d+788|0]<<8)>>> -0<257)break cg}qd(i+72|0,44050,255);e=0;break bg}j=e-8|0;if(!(1<>>0<=24:0)){qd(i+72|0,44050,255);e=0;break bg}if(J[i+332>>2]==-1){J[i+68>>2]=7;J[i+20>>2]=f&65535;J[i+16>>2]=g;e=1;break bg}j=K[d+782|0];if(j){gc[J[J[b>>2]+20>>2]](b,j,1)|0;g=K[d+794|0]|K[d+795|0]<<8;f=K[d+796|0]|K[d+797|0]<<8;e=K[d+798|0]}mi(i,g,f&65535,e&255,7);if(K[d+798|0]==32)Jk(i);if(!J[i+4>>2]){qd(i+72|0,44513,255);e=0;break bg}if(J[i+332>>2]){qd(i+72|0,44685,255);e=0;break bg}eg:{if(!K[d+783|0])break eg;e=0;gc[J[J[b>> -2]+12>>2]](b,d,P(K[d+787|0]|K[d+788|0]<<8,3),1,0,0)|0;if(!(K[d+787|0]|K[d+788|0]<<8))break eg;while(1){f=d+P(e,3)|0;_p(i,e&255,K[f+2|0],K[f+1|0],K[f|0],0);e=e+1|0;if(e>>>0<(K[d+787|0]|K[d+788|0]<<8)>>>0)continue;break}}if((K[d+784|0]&247)==3)Yp(i);o=K[d+799|0];g=o&32;e=0;f=df(i,0);fg:{gg:{if(!(K[d+796|0]|K[d+797|0]<<8))break gg;l=1792>>>l&1;hg:{if(g){j=255;while(1){if(J[i+332>>2])break fg;if(gc[J[J[b>>2]+36>>2]](b)|0)break hg;h=(K[d+796|0]|K[d+797|0]<<8)+(e^-1)|0;if(!((h|0)<0|(h|0)>J[i+20>>2]))f= -df(i,0)+P(h,J[i+52>>2])|0;h=K[d+794|0]|K[d+795|0]<<8;ig:{if(!l){JL(i,f,d+782|0,b,h,e,0);break ig}j=i5(i,f,d+782|0,b,h,e,j&255)}e=e+1|0;if(e>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break}break gg}if(!l)while(1){if(J[i+332>>2])break fg;if(gc[J[J[b>>2]+36>>2]](b)|0)break hg;if(J[i+20>>2]>=(e|0))f=df(i,0)+P(J[i+52>>2],e)|0;JL(i,f,d+782|0,b,K[d+794|0]|K[d+795|0]<<8,e,0);e=e+1|0;if(e>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break gg}n=255;while(1){if(J[i+332>>2])break fg;if(gc[J[J[b>>2]+36>>2]](b)| -0)break hg;if(J[i+20>>2]>=(e|0))f=df(i,0)+P(J[i+52>>2],e)|0;n=i5(i,f,d+782|0,b,K[d+794|0]|K[d+795|0]<<8,e,n&255);e=e+1|0;if(e>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break}break gg}qd(i+72|0,45065,255);e=0;break bg}if(o&16)wx(i);e=1;if(!g|K[d+798|0]!=32)break bg;w8(i);break bg}qd(i+72|0,44685,255);e=0;break bg}qd(i+72|0,43718,255)}bc=d+800|0;if(e)break b;ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(976);J[695492]=0;i=qf(d,8);e=J[695492];J[695492]=0; -if((e|0)==1)break f;J[i>>2]=45964;Gj(i,a);d=0;k=bc-912|0;bc=k;jg:{kg:{if(!b)break kg;if(!(gc[J[J[b>>2]+12>>2]](b,k+784|0,128,1,0,0)|0)){qd(i+72|0,43369,255);break jg}e=(K[k+788|0]|K[k+789|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+788|0]=e;H[k+789|0]=e>>>8;e=(K[k+790|0]|K[k+791|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+790|0]=e;H[k+791|0]=e>>>8;e=(K[k+792|0]|K[k+793|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+792|0]=e;H[k+793|0]=e>>>8;e=(K[k+794|0]|K[k+795|0]<<8)<<16>> -16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+794|0]=e;H[k+795|0]=e>>>8;e=(K[k+796|0]|K[k+797|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+796|0]=e;H[k+797|0]=e>>>8;e=(K[k+798|0]|K[k+799|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+798|0]=e;H[k+799|0]=e>>>8;e=(K[k+850|0]|K[k+851|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+850|0]=e;H[k+851|0]=e>>>8;e=(K[k+852|0]|K[k+853|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+852|0]=e;H[k+853|0]=e>>>8;if(K[k+784|0]!=10){qd(i+72|0,43763, -255);break kg}if(K[k+786|0]!=1){qd(i+72|0,44109,255);break kg}e=K[k+788|0]|K[k+789|0]<<8;f=K[k+792|0]|K[k+793|0]<<8;g=K[k+790|0]|K[k+791|0]<<8;l=K[k+794|0]|K[k+795|0]<<8;J[i+364>>2]=K[k+796|0]|K[k+797|0]<<8;J[i+368>>2]=K[k+798|0]|K[k+799|0]<<8;lg:{p=f-e|0;if((p|0)>=0){m=l-g|0;if((m|0)>=0)break lg}qd(i+72|0,43763,255);break jg}e=m+1|0;n=p+1|0;if(J[i+332>>2]==-1){J[i+68>>2]=8;J[i+20>>2]=e;J[i+16>>2]=n;d=1;break jg}f=H[k+849|0];if((f|0)>=5){qd(i+72|0,44301,255);break kg}d=H[k+787|0];mg:{if(!((d|0)!= -8|(f|0)<3)){mi(i,n,e,24,8);if(K[k+849|0]!=4)break mg;Jk(i);break mg}if(!((f|0)!=4|(d|0)!=1)){mi(i,n,e,4,8);break mg}mi(i,n,e,d,8)}if(J[i+332>>2]){qd(i+72|0,44685,255);break kg}j=P(H[k+849|0],P(e,K[k+850|0]|K[k+851|0]<<8));l=zc(j);if(l){if((j|0)>0){d=l;e=j;while(1){if(gc[J[J[b>>2]+36>>2]](b)|0){qd(i+72|0,45021,255);qc(l);break kg}gc[J[J[b>>2]+12>>2]](b,k+783|0,1,1,0,0)|0;o=K[k+783|0];ng:{if((o&192)!=192){H[d|0]=o;e=e-1|0;d=d+1|0;break ng}gc[J[J[b>>2]+12>>2]](b,k+783|0,1,1,0,0)|0;f=o&63;if(f>>>0>e>>> -0){qd(i+72|0,45207,255);qc(l);break kg}e=e-f|0;if(!f)break ng;r=0;h=K[k+783|0];g=f;o=o&7;if(o)while(1){H[d|0]=h;d=d+1|0;g=g-1|0;r=r+1|0;if((o|0)!=(r|0))continue;break}if(f>>>0<8)break ng;while(1){H[d+7|0]=h;H[d+6|0]=h;H[d+5|0]=h;H[d+4|0]=h;H[d+3|0]=h;H[d+2|0]=h;H[d+1|0]=h;H[d|0]=h;d=d+8|0;f=g-9|0;g=g-8|0;if(f>>>0<4294967294)continue;break}}if((e|0)>0)continue;break}}e=K[k+833|0]|K[k+834|0]<<8|(K[k+835|0]<<16|K[k+836|0]<<24);d=K[k+829|0]|K[k+830|0]<<8|(K[k+831|0]<<16|K[k+832|0]<<24);H[k+29|0]=d;H[k+ -30|0]=d>>>8;H[k+31|0]=d>>>16;H[k+32|0]=d>>>24;H[k+33|0]=e;H[k+34|0]=e>>>8;H[k+35|0]=e>>>16;H[k+36|0]=e>>>24;e=K[k+837|0]|K[k+838|0]<<8|(K[k+839|0]<<16|K[k+840|0]<<24);H[k+37|0]=e;H[k+38|0]=e>>>8;H[k+39|0]=e>>>16;H[k+40|0]=e>>>24;e=K[k+841|0]|K[k+842|0]<<8;H[k+41|0]=e;H[k+42|0]=e>>>8;H[k+43|0]=K[k+843|0];H[k|0]=K[k+800|0];e=K[k+801|0]|K[k+802|0]<<8|(K[k+803|0]<<16|K[k+804|0]<<24);H[k+1|0]=e;H[k+2|0]=e>>>8;H[k+3|0]=e>>>16;H[k+4|0]=e>>>24;e=K[k+809|0]|K[k+810|0]<<8|(K[k+811|0]<<16|K[k+812|0]<<24);d= -K[k+805|0]|K[k+806|0]<<8|(K[k+807|0]<<16|K[k+808|0]<<24);H[k+5|0]=d;H[k+6|0]=d>>>8;H[k+7|0]=d>>>16;H[k+8|0]=d>>>24;H[k+9|0]=e;H[k+10|0]=e>>>8;H[k+11|0]=e>>>16;H[k+12|0]=e>>>24;e=K[k+817|0]|K[k+818|0]<<8|(K[k+819|0]<<16|K[k+820|0]<<24);d=K[k+813|0]|K[k+814|0]<<8|(K[k+815|0]<<16|K[k+816|0]<<24);H[k+13|0]=d;H[k+14|0]=d>>>8;H[k+15|0]=d>>>16;H[k+16|0]=d>>>24;H[k+17|0]=e;H[k+18|0]=e>>>8;H[k+19|0]=e>>>16;H[k+20|0]=e>>>24;e=K[k+825|0]|K[k+826|0]<<8|(K[k+827|0]<<16|K[k+828|0]<<24);d=K[k+821|0]|K[k+822|0]<< -8|(K[k+823|0]<<16|K[k+824|0]<<24);H[k+21|0]=d;H[k+22|0]=d>>>8;H[k+23|0]=d>>>16;H[k+24|0]=d>>>24;H[k+25|0]=e;H[k+26|0]=e>>>8;H[k+27|0]=e>>>16;H[k+28|0]=e>>>24;J[k+44>>2]=K[k+844|0]|K[k+845|0]<<8|(K[k+846|0]<<16|K[k+847|0]<<24);og:{pg:{qg:{rg:{e=K[k+787|0];d=K[k+849|0];if(!((e|0)!=8|(d|0)!=1)){d=0;gc[J[J[b>>2]+12>>2]](b,k+783|0,1,1,0,0)|0;if(K[k+783|0]!=12)break rg;while(1){e=k+P(d,3)|0;gc[J[J[b>>2]+12>>2]](b,e,1,1,0,0)|0;gc[J[J[b>>2]+12>>2]](b,e+1|0,1,1,0,0)|0;gc[J[J[b>>2]+12>>2]](b,e+2|0,1,1,0,0)| -0;d=d+1|0;if((d|0)!=256)continue;break}d=K[k+849|0];e=K[k+787|0]}if(!((e|0)!=1|(d&255)!=1)){I[k+2>>1]=65280;I[k+4>>1]=65535;I[k>>1]=0}if(J[i+44>>2]){d=0;while(1){e=k+P(d,3)|0;_p(i,d&255,K[e|0],K[e+1|0],K[e+2|0],0);d=d+1|0;if(d>>>0>2])continue;break}}g=zc(n+((K[k+850|0]|K[k+851|0]<<8)<<3)|0);if(!g)break og;r=p+1|0;d=0;while(1){if(J[i+332>>2]){qd(i+72|0,44685,255);break pg}p=d;v=m-d|0;f=K[k+849|0];s=f<<24>>24;q=K[k+850|0]|K[k+851|0]<<8;h=l+P(s,P(q,d))|0;e=K[k+787|0];sg:{tg:{if((f|0)!=3)break tg; -d=0;if((e|0)!=8)break tg;while(1){e=d+h|0;f=K[k+850|0]|K[k+851|0]<<8;Px(i,d,v,K[e+f|0]<<8|K[e|0]|K[e+(f<<1)|0]<<16);d=d+1|0;if((r|0)!=(d|0))continue;break}break sg}ug:{if((f|0)!=4)break ug;d=0;if((e|0)!=8)break ug;while(1){e=d+h|0;f=K[k+850|0]|K[k+851|0]<<8;Px(i,d,v,K[e+f|0]<<8|K[e|0]|K[e+(f<<1)|0]<<16);e=P(K[k+850|0]|K[k+851|0]<<8,3)+d|0;if(e>>>0>>0)hh(i,d,v,K[e+h|0]);d=d+1|0;if((r|0)!=(d|0))continue;break}break sg}vg:{if((f|0)==1){o=g;d=q<<16>>16;f=0;wg:{xg:switch((e<<24>>24)-1|0){case 0:if((d| +0<257)break cg}Ad(i+72|0,44066,255);e=0;break bg}j=e-8|0;if(!(1<>>0<=24:0)){Ad(i+72|0,44066,255);e=0;break bg}if(J[i+332>>2]==-1){J[i+68>>2]=7;J[i+20>>2]=f&65535;J[i+16>>2]=g;e=1;break bg}j=K[d+782|0];if(j){kc[J[J[b>>2]+20>>2]](b,j,1)|0;g=K[d+794|0]|K[d+795|0]<<8;f=K[d+796|0]|K[d+797|0]<<8;e=K[d+798|0]}Bi(i,g,f&65535,e&255,7);if(K[d+798|0]==32)gl(i);if(!J[i+4>>2]){Ad(i+72|0,44529,255);e=0;break bg}if(J[i+332>>2]){Ad(i+72|0,44701,255);e=0;break bg}eg:{if(!K[d+783|0])break eg;e=0;kc[J[J[b>> +2]+12>>2]](b,d,P(K[d+787|0]|K[d+788|0]<<8,3),1,0,0)|0;if(!(K[d+787|0]|K[d+788|0]<<8))break eg;while(1){f=d+P(e,3)|0;Rq(i,e&255,K[f+2|0],K[f+1|0],K[f|0],0);e=e+1|0;if(e>>>0<(K[d+787|0]|K[d+788|0]<<8)>>>0)continue;break}}if((K[d+784|0]&247)==3)Pq(i);o=K[d+799|0];g=o&32;e=0;f=mf(i,0);fg:{gg:{if(!(K[d+796|0]|K[d+797|0]<<8))break gg;l=1792>>>l&1;hg:{if(g){j=255;while(1){if(J[i+332>>2])break fg;if(kc[J[J[b>>2]+36>>2]](b)|0)break hg;h=(K[d+796|0]|K[d+797|0]<<8)+(e^-1)|0;if(!((h|0)<0|(h|0)>J[i+20>>2]))f= +mf(i,0)+P(h,J[i+52>>2])|0;h=K[d+794|0]|K[d+795|0]<<8;ig:{if(!l){dN(i,f,d+782|0,b,h,e,0);break ig}j=j7(i,f,d+782|0,b,h,e,j&255)}e=e+1|0;if(e>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break}break gg}if(!l)while(1){if(J[i+332>>2])break fg;if(kc[J[J[b>>2]+36>>2]](b)|0)break hg;if(J[i+20>>2]>=(e|0))f=mf(i,0)+P(J[i+52>>2],e)|0;dN(i,f,d+782|0,b,K[d+794|0]|K[d+795|0]<<8,e,0);e=e+1|0;if(e>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break gg}n=255;while(1){if(J[i+332>>2])break fg;if(kc[J[J[b>>2]+36>>2]](b)| +0)break hg;if(J[i+20>>2]>=(e|0))f=mf(i,0)+P(J[i+52>>2],e)|0;n=j7(i,f,d+782|0,b,K[d+794|0]|K[d+795|0]<<8,e,n&255);e=e+1|0;if(e>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break}break gg}Ad(i+72|0,45081,255);e=0;break bg}if(o&16)ny(i);e=1;if(!g|K[d+798|0]!=32)break bg;yaa(i);break bg}Ad(i+72|0,44701,255);e=0;break bg}Ad(i+72|0,43734,255)}fc=d+800|0;if(e)break b;of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(976);J[699344]=0;i=xf(d,8);e=J[699344];J[699344]= +0;if((e|0)==1)break f;J[i>>2]=45980;bk(i,a);d=0;k=fc-912|0;fc=k;jg:{kg:{if(!b)break kg;if(!(kc[J[J[b>>2]+12>>2]](b,k+784|0,128,1,0,0)|0)){Ad(i+72|0,43385,255);break jg}e=(K[k+788|0]|K[k+789|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+788|0]=e;H[k+789|0]=e>>>8;e=(K[k+790|0]|K[k+791|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+790|0]=e;H[k+791|0]=e>>>8;e=(K[k+792|0]|K[k+793|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+792|0]=e;H[k+793|0]=e>>>8;e=(K[k+794|0]|K[k+795|0]<<8)<< +16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+794|0]=e;H[k+795|0]=e>>>8;e=(K[k+796|0]|K[k+797|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+796|0]=e;H[k+797|0]=e>>>8;e=(K[k+798|0]|K[k+799|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+798|0]=e;H[k+799|0]=e>>>8;e=(K[k+850|0]|K[k+851|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+850|0]=e;H[k+851|0]=e>>>8;e=(K[k+852|0]|K[k+853|0]<<8)<<16>>16;e=K[i+494|0]?e:e<<8|(e&65280)>>>8;H[k+852|0]=e;H[k+853|0]=e>>>8;if(K[k+784|0]!=10){Ad(i+72| +0,43779,255);break kg}if(K[k+786|0]!=1){Ad(i+72|0,44125,255);break kg}e=K[k+788|0]|K[k+789|0]<<8;f=K[k+792|0]|K[k+793|0]<<8;g=K[k+790|0]|K[k+791|0]<<8;l=K[k+794|0]|K[k+795|0]<<8;J[i+364>>2]=K[k+796|0]|K[k+797|0]<<8;J[i+368>>2]=K[k+798|0]|K[k+799|0]<<8;lg:{p=f-e|0;if((p|0)>=0){m=l-g|0;if((m|0)>=0)break lg}Ad(i+72|0,43779,255);break jg}e=m+1|0;n=p+1|0;if(J[i+332>>2]==-1){J[i+68>>2]=8;J[i+20>>2]=e;J[i+16>>2]=n;d=1;break jg}f=H[k+849|0];if((f|0)>=5){Ad(i+72|0,44317,255);break kg}d=H[k+787|0];mg:{if(!((d| +0)!=8|(f|0)<3)){Bi(i,n,e,24,8);if(K[k+849|0]!=4)break mg;gl(i);break mg}if(!((f|0)!=4|(d|0)!=1)){Bi(i,n,e,4,8);break mg}Bi(i,n,e,d,8)}if(J[i+332>>2]){Ad(i+72|0,44701,255);break kg}j=P(H[k+849|0],P(e,K[k+850|0]|K[k+851|0]<<8));l=Dc(j);if(l){if((j|0)>0){d=l;e=j;while(1){if(kc[J[J[b>>2]+36>>2]](b)|0){Ad(i+72|0,45037,255);uc(l);break kg}kc[J[J[b>>2]+12>>2]](b,k+783|0,1,1,0,0)|0;o=K[k+783|0];ng:{if((o&192)!=192){H[d|0]=o;e=e-1|0;d=d+1|0;break ng}kc[J[J[b>>2]+12>>2]](b,k+783|0,1,1,0,0)|0;f=o&63;if(f>>> +0>e>>>0){Ad(i+72|0,45223,255);uc(l);break kg}e=e-f|0;if(!f)break ng;r=0;h=K[k+783|0];g=f;o=o&7;if(o)while(1){H[d|0]=h;d=d+1|0;g=g-1|0;r=r+1|0;if((o|0)!=(r|0))continue;break}if(f>>>0<8)break ng;while(1){H[d+7|0]=h;H[d+6|0]=h;H[d+5|0]=h;H[d+4|0]=h;H[d+3|0]=h;H[d+2|0]=h;H[d+1|0]=h;H[d|0]=h;d=d+8|0;f=g-9|0;g=g-8|0;if(f>>>0<4294967294)continue;break}}if((e|0)>0)continue;break}}e=K[k+833|0]|K[k+834|0]<<8|(K[k+835|0]<<16|K[k+836|0]<<24);d=K[k+829|0]|K[k+830|0]<<8|(K[k+831|0]<<16|K[k+832|0]<<24);H[k+29|0]= +d;H[k+30|0]=d>>>8;H[k+31|0]=d>>>16;H[k+32|0]=d>>>24;H[k+33|0]=e;H[k+34|0]=e>>>8;H[k+35|0]=e>>>16;H[k+36|0]=e>>>24;e=K[k+837|0]|K[k+838|0]<<8|(K[k+839|0]<<16|K[k+840|0]<<24);H[k+37|0]=e;H[k+38|0]=e>>>8;H[k+39|0]=e>>>16;H[k+40|0]=e>>>24;e=K[k+841|0]|K[k+842|0]<<8;H[k+41|0]=e;H[k+42|0]=e>>>8;H[k+43|0]=K[k+843|0];H[k|0]=K[k+800|0];e=K[k+801|0]|K[k+802|0]<<8|(K[k+803|0]<<16|K[k+804|0]<<24);H[k+1|0]=e;H[k+2|0]=e>>>8;H[k+3|0]=e>>>16;H[k+4|0]=e>>>24;e=K[k+809|0]|K[k+810|0]<<8|(K[k+811|0]<<16|K[k+812|0]<< +24);d=K[k+805|0]|K[k+806|0]<<8|(K[k+807|0]<<16|K[k+808|0]<<24);H[k+5|0]=d;H[k+6|0]=d>>>8;H[k+7|0]=d>>>16;H[k+8|0]=d>>>24;H[k+9|0]=e;H[k+10|0]=e>>>8;H[k+11|0]=e>>>16;H[k+12|0]=e>>>24;e=K[k+817|0]|K[k+818|0]<<8|(K[k+819|0]<<16|K[k+820|0]<<24);d=K[k+813|0]|K[k+814|0]<<8|(K[k+815|0]<<16|K[k+816|0]<<24);H[k+13|0]=d;H[k+14|0]=d>>>8;H[k+15|0]=d>>>16;H[k+16|0]=d>>>24;H[k+17|0]=e;H[k+18|0]=e>>>8;H[k+19|0]=e>>>16;H[k+20|0]=e>>>24;e=K[k+825|0]|K[k+826|0]<<8|(K[k+827|0]<<16|K[k+828|0]<<24);d=K[k+821|0]|K[k+822| +0]<<8|(K[k+823|0]<<16|K[k+824|0]<<24);H[k+21|0]=d;H[k+22|0]=d>>>8;H[k+23|0]=d>>>16;H[k+24|0]=d>>>24;H[k+25|0]=e;H[k+26|0]=e>>>8;H[k+27|0]=e>>>16;H[k+28|0]=e>>>24;J[k+44>>2]=K[k+844|0]|K[k+845|0]<<8|(K[k+846|0]<<16|K[k+847|0]<<24);og:{pg:{qg:{rg:{e=K[k+787|0];d=K[k+849|0];if(!((e|0)!=8|(d|0)!=1)){d=0;kc[J[J[b>>2]+12>>2]](b,k+783|0,1,1,0,0)|0;if(K[k+783|0]!=12)break rg;while(1){e=k+P(d,3)|0;kc[J[J[b>>2]+12>>2]](b,e,1,1,0,0)|0;kc[J[J[b>>2]+12>>2]](b,e+1|0,1,1,0,0)|0;kc[J[J[b>>2]+12>>2]](b,e+2|0,1,1, +0,0)|0;d=d+1|0;if((d|0)!=256)continue;break}d=K[k+849|0];e=K[k+787|0]}if(!((e|0)!=1|(d&255)!=1)){I[k+2>>1]=65280;I[k+4>>1]=65535;I[k>>1]=0}if(J[i+44>>2]){d=0;while(1){e=k+P(d,3)|0;Rq(i,d&255,K[e|0],K[e+1|0],K[e+2|0],0);d=d+1|0;if(d>>>0>2])continue;break}}g=Dc(n+((K[k+850|0]|K[k+851|0]<<8)<<3)|0);if(!g)break og;r=p+1|0;d=0;while(1){if(J[i+332>>2]){Ad(i+72|0,44701,255);break pg}p=d;v=m-d|0;f=K[k+849|0];s=f<<24>>24;q=K[k+850|0]|K[k+851|0]<<8;h=l+P(s,P(q,d))|0;e=K[k+787|0];sg:{tg:{if((f|0)!=3)break tg; +d=0;if((e|0)!=8)break tg;while(1){e=d+h|0;f=K[k+850|0]|K[k+851|0]<<8;Gy(i,d,v,K[e+f|0]<<8|K[e|0]|K[e+(f<<1)|0]<<16);d=d+1|0;if((r|0)!=(d|0))continue;break}break sg}ug:{if((f|0)!=4)break ug;d=0;if((e|0)!=8)break ug;while(1){e=d+h|0;f=K[k+850|0]|K[k+851|0]<<8;Gy(i,d,v,K[e+f|0]<<8|K[e|0]|K[e+(f<<1)|0]<<16);e=P(K[k+850|0]|K[k+851|0]<<8,3)+d|0;if(e>>>0>>0)yh(i,d,v,K[e+h|0]);d=d+1|0;if((r|0)!=(d|0))continue;break}break sg}vg:{if((f|0)==1){o=g;d=q<<16>>16;f=0;wg:{xg:switch((e<<24>>24)-1|0){case 0:if((d| 0)<=0)break wg;while(1){e=K[h|0];H[o+7|0]=e&1;H[o|0]=e>>>7;H[o+6|0]=e>>>1&1;H[o+5|0]=e>>>2&1;H[o+4|0]=e>>>3&1;H[o+3|0]=e>>>4&1;H[o+2|0]=e>>>5&1;H[o+1|0]=e>>>6&1;o=o+8|0;h=h+1|0;e=d&65535;d=d-1|0;if(e>>>0>1)continue;break}break wg;case 1:if((d|0)<=0)break wg;if(d&1){e=K[h|0];H[o+3|0]=e&3;H[o|0]=e>>>6;H[o+2|0]=e>>>2&3;H[o+1|0]=e>>>4&3;o=o+4|0;h=h+1|0;f=d-1|0}else f=d;if((d|0)==1)break wg;while(1){e=K[h|0];H[o+3|0]=e&3;H[o|0]=e>>>6;H[o+2|0]=e>>>2&3;H[o+1|0]=e>>>4&3;e=K[h+1|0];H[o+7|0]=e&3;H[o+4|0]=e>>> 6;H[o+6|0]=e>>>2&3;H[o+5|0]=e>>>4&3;o=o+8|0;h=h+2|0;e=f-3|0;f=f-2|0;if((e&65535)>>>0<65534)continue;break}break wg;case 3:if((d|0)<=0)break wg;n=d&3;yg:{if(!n){e=d;break yg}e=d;while(1){q=K[h|0];H[o+1|0]=q&15;H[o|0]=q>>>4;o=o+2|0;h=h+1|0;e=e-1|0;f=f+1|0;if((n|0)!=(f&65535))continue;break}}if(d>>>0<4)break wg;while(1){d=K[h|0];H[o+1|0]=d&15;H[o|0]=d>>>4;d=K[h+1|0];H[o+3|0]=d&15;H[o+2|0]=d>>>4;d=K[h+2|0];H[o+5|0]=d&15;H[o+4|0]=d>>>4;d=K[h+3|0];H[o+7|0]=d&15;H[o+6|0]=d>>>4;o=o+8|0;h=h+4|0;d=e-5|0;e= e-4|0;if((d&65535)>>>0<65534)continue;break}break wg;case 7:break xg;default:break wg}if((d|0)<=0)break wg;n=d&7;zg:{if(!n){e=d;break zg}e=d;while(1){H[o|0]=K[h|0];o=o+1|0;h=h+1|0;e=e-1|0;f=f+1|0;if((n|0)!=(f&65535))continue;break}}if(d>>>0<8)break wg;while(1){H[o|0]=K[h|0];H[o+1|0]=K[h+1|0];H[o+2|0]=K[h+2|0];H[o+3|0]=K[h+3|0];H[o+4|0]=K[h+4|0];H[o+5|0]=K[h+5|0];H[o+6|0]=K[h+6|0];H[o+7|0]=K[h+7|0];o=o+8|0;h=h+8|0;d=e-9|0;e=e-8|0;if((d&65535)>>>0<65534)continue;break}}break vg}n=g;x=0;t=(e|0)==1&(s| -0)<5;f=q<<16>>16;Ag:{if(!t|(f|0)<=0)break Ag;e=f<<3;d=wc(g,0,(e|1)-((e|0)>0?1:e)|0);if((s|0)<=0)break Ag;o=h;e=d;while(1){u=H[o|0];q=u&255;if((u|0)<0)H[e|0]=K[e|0]|1;if(q&64)H[e+1|0]=K[e+1|0]|1;if(q&32)H[e+2|0]=K[e+2|0]|1;if(q&16)H[e+3|0]=K[e+3|0]|1;if(q&8)H[e+4|0]=K[e+4|0]|1;if(q&4)H[e+5|0]=K[e+5|0]|1;if(q&2)H[e+6|0]=K[e+6|0]|1;if(q&1)H[e+7|0]=K[e+7|0]|1;o=o+1|0;e=e+8|0;x=x+1|0;if((f|0)!=(x|0))continue;break}if((s|0)==1)break Ag;x=0;q=f+h|0;o=q;e=d;while(1){u=H[o|0];h=u&255;if((u|0)<0)H[e|0]=K[e| +0)<5;f=q<<16>>16;Ag:{if(!t|(f|0)<=0)break Ag;e=f<<3;d=Ac(g,0,(e|1)-((e|0)>0?1:e)|0);if((s|0)<=0)break Ag;o=h;e=d;while(1){u=H[o|0];q=u&255;if((u|0)<0)H[e|0]=K[e|0]|1;if(q&64)H[e+1|0]=K[e+1|0]|1;if(q&32)H[e+2|0]=K[e+2|0]|1;if(q&16)H[e+3|0]=K[e+3|0]|1;if(q&8)H[e+4|0]=K[e+4|0]|1;if(q&4)H[e+5|0]=K[e+5|0]|1;if(q&2)H[e+6|0]=K[e+6|0]|1;if(q&1)H[e+7|0]=K[e+7|0]|1;o=o+1|0;e=e+8|0;x=x+1|0;if((f|0)!=(x|0))continue;break}if((s|0)==1)break Ag;x=0;q=f+h|0;o=q;e=d;while(1){u=H[o|0];h=u&255;if((u|0)<0)H[e|0]=K[e| 0]|2;if(h&64)H[e+1|0]=K[e+1|0]|2;if(h&32)H[e+2|0]=K[e+2|0]|2;if(h&16)H[e+3|0]=K[e+3|0]|2;if(h&8)H[e+4|0]=K[e+4|0]|2;if(h&4)H[e+5|0]=K[e+5|0]|2;if(h&2)H[e+6|0]=K[e+6|0]|2;if(h&1)H[e+7|0]=K[e+7|0]|2;o=o+1|0;e=e+8|0;x=x+1|0;if((f|0)!=(x|0))continue;break}if((s|0)==2)break Ag;x=0;h=f+q|0;o=h;e=d;while(1){q=H[o|0];d=q&255;if((q|0)<0)H[e|0]=K[e|0]|4;if(d&64)H[e+1|0]=K[e+1|0]|4;if(d&32)H[e+2|0]=K[e+2|0]|4;if(d&16)H[e+3|0]=K[e+3|0]|4;if(d&8)H[e+4|0]=K[e+4|0]|4;if(d&4)H[e+5|0]=K[e+5|0]|4;if(d&2)H[e+6|0]=K[e+ -6|0]|4;if(d&1)H[e+7|0]=K[e+7|0]|4;o=o+1|0;e=e+8|0;x=x+1|0;if((f|0)!=(x|0))continue;break}if((s|0)==3)break Ag;e=f+h|0;o=0;while(1){h=H[e|0];d=h&255;if((h|0)<0)H[n|0]=K[n|0]|8;if(d&64)H[n+1|0]=K[n+1|0]|8;if(d&32)H[n+2|0]=K[n+2|0]|8;if(d&16)H[n+3|0]=K[n+3|0]|8;if(d&8)H[n+4|0]=K[n+4|0]|8;if(d&4)H[n+5|0]=K[n+5|0]|8;if(d&2)H[n+6|0]=K[n+6|0]|8;if(d&1)H[n+7|0]=K[n+7|0]|8;e=e+1|0;n=n+8|0;o=o+1|0;if((f|0)!=(o|0))continue;break}}if(!t)break qg}d=0;while(1){sm(i,d,v,K[d+g|0]);d=d+1|0;if((r|0)!=(d|0))continue; -break}}d=p+1|0;if((m|0)!=(p|0))continue;break}qc(l);qc(g);d=1;break jg}qd(i+72|0,45370,255);qc(l);break kg}qd(i+72|0,46180,255)}qc(l);qc(g);break kg}qd(i+72|0,44685,255);qc(l);break kg}qd(i+72|0,44685,255)}d=0}bc=k+912|0;if(d)break b;ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(976);J[695492]=0;i=qf(d,9);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[i>>2]=46008;Gj(i,a);d=bc-32|0;bc=d;e=0;Bg:{if(!b)break Bg;while(1){if(!(gc[J[J[b>>2]+36>>2]](b)|0)){f=gc[J[J[b>> -2]+48>>2]](b)|0;e=f&127|e<<7;if(f&128)continue}break}while(1){if(!(gc[J[J[b>>2]+36>>2]](b)|0))if(gc[J[J[b>>2]+48>>2]](b)&128)continue;break}f=0;while(1){if(!(gc[J[J[b>>2]+36>>2]](b)|0)){g=gc[J[J[b>>2]+48>>2]](b)|0;f=g&127|f<<7;if(g&128)continue}break}g=0;while(1){if(!(gc[J[J[b>>2]+36>>2]](b)|0)){l=gc[J[J[b>>2]+48>>2]](b)|0;g=l&127|g<<7;if(l&128)continue}break}if(gc[J[J[b>>2]+36>>2]](b)|0){qd(i+72|0,43478,255);e=0;break Bg}if(e){qd(i+72|0,43741,255);e=0;break Bg}J[i+20>>2]=g;J[i+16>>2]=f;if(!((f|0)> -0&(g|0)>0)){qd(i+72|0,44213,255);e=0;break Bg}Cg:{if(J[i+332>>2]!=-1){mi(i,f,g,1,9);if(!J[i+4>>2]){qd(i+72|0,44494,255);e=0;break Bg}Yp(i);e=J[i+16>>2];J[d+28>>2]=i;f=df(i,0);J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+24>>2]=f;J[d+8>>2]=0;J[d+12>>2]=J[J[d+28>>2]+20>>2]-1;Ea=d,Ka=df(J[d+28>>2],0)+P(J[J[d+28>>2]+52>>2],J[J[d+28>>2]+20>>2]-1|0)|0,J[Ea+24>>2]=Ka;if(J[i+20>>2]<=0)break Cg;f=(e+7|0)/8|0;e=0;while(1){gc[J[J[b>>2]+12>>2]](b,J[d+24>>2],f,1,0,0)|0;g=J[d+12>>2];J[d+12>>2]=g-1;if((g| -0)>0)J[d+24>>2]=J[d+24>>2]-J[J[d+28>>2]+52>>2];e=e+1|0;if((e|0)>2])continue;break}break Cg}J[i+68>>2]=9}e=1}bc=d+32|0;if(e)break b;ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(976);J[695492]=0;i=qf(d,0);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[i>>2]=46052;Gj(i,a);e=0;n=0;x=bc-32|0;bc=x;Dg:{if(!b){k=0;break Dg}Eg:{Fg:{Gg:{Hg:{Ig:{if(pO()){qd(i+72|0,43158,255);break Ig}j=oO(43917);if(j)break Hg;qd(i+72|0,43998,255)}j=0;break Gg}d=J[j+56>>2]; -if(d)qc(d);J[j+56>>2]=b;J[x+24>>2]=185;J[x+16>>2]=186;J[x+28>>2]=187;J[x+20>>2]=188;J[j+52>>2]=x+16;l=0;g=-1;f=J[682417];Jg:{if((f|0)<=0)break Jg;h=2729680;while(1){Kg:{d=J[h+24>>2];if(d){if(!(gc[d|0](j)|0))break Kg;f=J[682417]}h=h+28|0;l=l+1|0;if((l|0)<(f|0))continue;break Jg}break}g=J[h>>2]}d=g;if((d|0)<0){qd(i+72|0,44279,255);break Gg}e=kO(j,d);if(!e){qd(i+72|0,44695,255);e=0;break Gg}H[x+12|0]=0;f=x+12|0;g=0;h=J[682417];Lg:if((h|0)>0){l=2729680;Mg:{while(1){if((d|0)==J[l>>2])break Mg;l=l+28|0; -g=g+1|0;if((h|0)!=(g|0))continue;break}d=0;break Lg}d=J[l+4>>2]}else d=0;d=qd(f,d,3);H[d+3|0]=0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);wa=(d|0)==7890800?13:(d|0)==7171696?14:(d|0)==7561586?15:(d|0)==6516842?12:(d|0)==3305578?11:-1;d=J[J[e+24>>2]>>2];oa=J[d+20>>2];W=J[d+16>>2];Ng:{if(J[i+332>>2]==-1){J[i+20>>2]=oa;J[i+16>>2]=W;J[i+68>>2]=(wa|0)>0?wa:0;qd(i+72|0,46386,255);break Ng}f=J[e+16>>2];if(f>>>0>=65){qd(i+72|0,46413,255);break Ng}ea=J[d+24>>2];if(!(f>>>0<3|(ea|0)>8)){E=hO(1025);if(!E){qd(i+ -72|0,46498,255);break Ng}f=0;u=bc-48|0;bc=u;g=zc(40);Og:{if(g){J[g>>2]=0;J[g+4>>2]=0;H[g+36|0]=1;J[g+24>>2]=0;J[g+28>>2]=16384;J[g+16>>2]=0;J[g+20>>2]=0;J[g+32>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;o=g+24|0;k=e+16|0;l=J[e+16>>2];d=zc(l<<2);break Og}o=g+24|0;k=e+16|0;l=J[e+16>>2];d=l<<2;h=J[6];if(!h){d=zc(d);break Og}d=Kh(h,d)}Pg:{Qg:{if(!d)break Qg;J[g+20>>2]=l;J[g+24>>2]=d;d=J[g+16>>2];Rg:{if((l|0)<=(d|0))break Rg;p=(d^-1)+l|0;q=l-d&3;if(q){h=0;while(1){J[J[o>>2]+(d<<2)>>2]=0;d=d+1|0;h=h+1|0;if((q|0)!= -(h|0))continue;break}}if(p>>>0<3)break Rg;while(1){h=d<<2;J[h+J[o>>2]>>2]=0;J[(h+J[o>>2]|0)+4>>2]=0;J[(h+J[o>>2]|0)+8>>2]=0;J[(h+J[o>>2]|0)+12>>2]=0;d=d+4|0;if((l|0)!=(d|0))continue;break}}if(J[k>>2]>0){h=0;while(1){p=h<<2;l=J[p+J[e+24>>2]>>2];q=0;d=zc(44);if(d){J[d>>2]=0;J[d+4>>2]=0;J[d+40>>2]=65536;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=J[l>>2];J[d+4>>2]=J[l+4>>2];J[d+8>>2]=J[l+8>>2];J[d+12>>2]=J[l+12>>2];J[d+16>>2]=J[l+16>> -2];J[d+20>>2]=J[l+20>>2];J[d+24>>2]=J[l+24>>2];J[d+28>>2]=J[l+28>>2];J[d+36>>2]=J[l+36>>2];J[d+40>>2]=J[l+40>>2];s=Fi(0,0);J[d+32>>2]=s;Sg:{if(!s)break Sg;if(Mg(J[l+32>>2],0,0))break Sg;if(xn(J[d+32>>2],J[l+32>>2],-1))break Sg;q=Mg(J[d+32>>2],0,0)?0:d}}J[p+J[o>>2]>>2]=q;if(!q)break Qg;J[g+16>>2]=J[g+16>>2]+1;h=h+1|0;if((h|0)>2])continue;break}}Au(g);d=J[e+32>>2];if(!d)break Pg;d=bO(d);J[g+32>>2]=d;if(d)break Pg}yh(g);g=0}Tg:{Ug:{Vg:{Wg:{Xg:{Yg:{Zg:{_g:{if(!g)break _g;d=0;l=J[g+24>>2];f=J[l>> +6|0]|4;if(d&1)H[e+7|0]=K[e+7|0]|4;o=o+1|0;e=e+8|0;x=x+1|0;if((f|0)!=(x|0))continue;break}if((s|0)==3)break Ag;e=f+h|0;o=0;while(1){h=H[e|0];d=h&255;if((h|0)<0)H[n|0]=K[n|0]|8;if(d&64)H[n+1|0]=K[n+1|0]|8;if(d&32)H[n+2|0]=K[n+2|0]|8;if(d&16)H[n+3|0]=K[n+3|0]|8;if(d&8)H[n+4|0]=K[n+4|0]|8;if(d&4)H[n+5|0]=K[n+5|0]|8;if(d&2)H[n+6|0]=K[n+6|0]|8;if(d&1)H[n+7|0]=K[n+7|0]|8;e=e+1|0;n=n+8|0;o=o+1|0;if((f|0)!=(o|0))continue;break}}if(!t)break qg}d=0;while(1){jn(i,d,v,K[d+g|0]);d=d+1|0;if((r|0)!=(d|0))continue; +break}}d=p+1|0;if((m|0)!=(p|0))continue;break}uc(l);uc(g);d=1;break jg}Ad(i+72|0,45386,255);uc(l);break kg}Ad(i+72|0,46196,255)}uc(l);uc(g);break kg}Ad(i+72|0,44701,255);uc(l);break kg}Ad(i+72|0,44701,255)}d=0}fc=k+912|0;if(d)break b;of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(976);J[699344]=0;i=xf(d,9);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[i>>2]=46024;bk(i,a);d=fc-32|0;fc=d;e=0;Bg:{if(!b)break Bg;while(1){if(!(kc[J[J[b>>2]+36>>2]](b)|0)){f=kc[J[J[b>> +2]+48>>2]](b)|0;e=f&127|e<<7;if(f&128)continue}break}while(1){if(!(kc[J[J[b>>2]+36>>2]](b)|0))if(kc[J[J[b>>2]+48>>2]](b)&128)continue;break}f=0;while(1){if(!(kc[J[J[b>>2]+36>>2]](b)|0)){g=kc[J[J[b>>2]+48>>2]](b)|0;f=g&127|f<<7;if(g&128)continue}break}g=0;while(1){if(!(kc[J[J[b>>2]+36>>2]](b)|0)){l=kc[J[J[b>>2]+48>>2]](b)|0;g=l&127|g<<7;if(l&128)continue}break}if(kc[J[J[b>>2]+36>>2]](b)|0){Ad(i+72|0,43494,255);e=0;break Bg}if(e){Ad(i+72|0,43757,255);e=0;break Bg}J[i+20>>2]=g;J[i+16>>2]=f;if(!((f|0)> +0&(g|0)>0)){Ad(i+72|0,44229,255);e=0;break Bg}Cg:{if(J[i+332>>2]!=-1){Bi(i,f,g,1,9);if(!J[i+4>>2]){Ad(i+72|0,44510,255);e=0;break Bg}Pq(i);e=J[i+16>>2];J[d+28>>2]=i;f=mf(i,0);J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+24>>2]=f;J[d+8>>2]=0;J[d+12>>2]=J[J[d+28>>2]+20>>2]-1;Ea=d,Ka=mf(J[d+28>>2],0)+P(J[J[d+28>>2]+52>>2],J[J[d+28>>2]+20>>2]-1|0)|0,J[Ea+24>>2]=Ka;if(J[i+20>>2]<=0)break Cg;f=(e+7|0)/8|0;e=0;while(1){kc[J[J[b>>2]+12>>2]](b,J[d+24>>2],f,1,0,0)|0;g=J[d+12>>2];J[d+12>>2]=g-1;if((g| +0)>0)J[d+24>>2]=J[d+24>>2]-J[J[d+28>>2]+52>>2];e=e+1|0;if((e|0)>2])continue;break}break Cg}J[i+68>>2]=9}e=1}fc=d+32|0;if(e)break b;of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(976);J[699344]=0;i=xf(d,0);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[i>>2]=46068;bk(i,a);e=0;n=0;x=fc-32|0;fc=x;Dg:{if(!b){k=0;break Dg}Eg:{Fg:{Gg:{Hg:{Ig:{if(JP()){Ad(i+72|0,43174,255);break Ig}j=IP(43933);if(j)break Hg;Ad(i+72|0,44014,255)}j=0;break Gg}d=J[j+56>>2]; +if(d)uc(d);J[j+56>>2]=b;J[x+24>>2]=185;J[x+16>>2]=186;J[x+28>>2]=187;J[x+20>>2]=188;J[j+52>>2]=x+16;l=0;g=-1;f=J[686165];Jg:{if((f|0)<=0)break Jg;h=2744672;while(1){Kg:{d=J[h+24>>2];if(d){if(!(kc[d|0](j)|0))break Kg;f=J[686165]}h=h+28|0;l=l+1|0;if((l|0)<(f|0))continue;break Jg}break}g=J[h>>2]}d=g;if((d|0)<0){Ad(i+72|0,44295,255);break Gg}e=EP(j,d);if(!e){Ad(i+72|0,44711,255);e=0;break Gg}H[x+12|0]=0;f=x+12|0;g=0;h=J[686165];Lg:if((h|0)>0){l=2744672;Mg:{while(1){if((d|0)==J[l>>2])break Mg;l=l+28|0; +g=g+1|0;if((h|0)!=(g|0))continue;break}d=0;break Lg}d=J[l+4>>2]}else d=0;d=Ad(f,d,3);H[d+3|0]=0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);wa=(d|0)==7890800?13:(d|0)==7171696?14:(d|0)==7561586?15:(d|0)==6516842?12:(d|0)==3305578?11:-1;d=J[J[e+24>>2]>>2];oa=J[d+20>>2];W=J[d+16>>2];Ng:{if(J[i+332>>2]==-1){J[i+20>>2]=oa;J[i+16>>2]=W;J[i+68>>2]=(wa|0)>0?wa:0;Ad(i+72|0,46402,255);break Ng}f=J[e+16>>2];if(f>>>0>=65){Ad(i+72|0,46429,255);break Ng}ea=J[d+24>>2];if(!(f>>>0<3|(ea|0)>8)){E=BP(1025);if(!E){Ad(i+ +72|0,46514,255);break Ng}f=0;u=fc-48|0;fc=u;g=Dc(40);Og:{if(g){J[g>>2]=0;J[g+4>>2]=0;H[g+36|0]=1;J[g+24>>2]=0;J[g+28>>2]=16384;J[g+16>>2]=0;J[g+20>>2]=0;J[g+32>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;o=g+24|0;k=e+16|0;l=J[e+16>>2];d=Dc(l<<2);break Og}o=g+24|0;k=e+16|0;l=J[e+16>>2];d=l<<2;h=J[6];if(!h){d=Dc(d);break Og}d=Yh(h,d)}Pg:{Qg:{if(!d)break Qg;J[g+20>>2]=l;J[g+24>>2]=d;d=J[g+16>>2];Rg:{if((l|0)<=(d|0))break Rg;p=(d^-1)+l|0;q=l-d&3;if(q){h=0;while(1){J[J[o>>2]+(d<<2)>>2]=0;d=d+1|0;h=h+1|0;if((q|0)!= +(h|0))continue;break}}if(p>>>0<3)break Rg;while(1){h=d<<2;J[h+J[o>>2]>>2]=0;J[(h+J[o>>2]|0)+4>>2]=0;J[(h+J[o>>2]|0)+8>>2]=0;J[(h+J[o>>2]|0)+12>>2]=0;d=d+4|0;if((l|0)!=(d|0))continue;break}}if(J[k>>2]>0){h=0;while(1){p=h<<2;l=J[p+J[e+24>>2]>>2];q=0;d=Dc(44);if(d){J[d>>2]=0;J[d+4>>2]=0;J[d+40>>2]=65536;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=J[l>>2];J[d+4>>2]=J[l+4>>2];J[d+8>>2]=J[l+8>>2];J[d+12>>2]=J[l+12>>2];J[d+16>>2]=J[l+16>> +2];J[d+20>>2]=J[l+20>>2];J[d+24>>2]=J[l+24>>2];J[d+28>>2]=J[l+28>>2];J[d+36>>2]=J[l+36>>2];J[d+40>>2]=J[l+40>>2];s=Vi(0,0);J[d+32>>2]=s;Sg:{if(!s)break Sg;if(Xg(J[l+32>>2],0,0))break Sg;if(oo(J[d+32>>2],J[l+32>>2],-1))break Sg;q=Xg(J[d+32>>2],0,0)?0:d}}J[p+J[o>>2]>>2]=q;if(!q)break Qg;J[g+16>>2]=J[g+16>>2]+1;h=h+1|0;if((h|0)>2])continue;break}}pv(g);d=J[e+32>>2];if(!d)break Pg;d=vP(d);J[g+32>>2]=d;if(d)break Pg}Mh(g);g=0}Tg:{Ug:{Vg:{Wg:{Xg:{Yg:{Zg:{_g:{if(!g)break _g;d=0;l=J[g+24>>2];f=J[l>> 2];k=J[f+12>>2];s=J[f+8>>2];v=g;D=J[g+16>>2];$g:{if((D|0)<=0)break $g;while(1){g=J[l+(d<<2)>>2];if(!(J[g+8>>2]!=(s|0)|J[g+12>>2]!=(k|0))){d=d+1|0;if((D|0)!=(d|0))continue;break $g}break}ah:{if((D|0)<2)break ah;d=1;f=D-1|0;g=f&1;if((D|0)!=2){h=l+4|0;o=f&-2;f=0;while(1){p=d<<2;q=J[p+h>>2];r=J[q+12>>2];p=J[l+p>>2];m=J[p+12>>2];k=(k|0)>(m|0)?m:k;k=(k|0)>(r|0)?r:k;q=J[q+8>>2];p=J[p+8>>2];p=(p|0)<(s|0)?p:s;s=(p|0)>(q|0)?q:p;d=d+2|0;f=f+2|0;if((o|0)!=(f|0))continue;break}}if(!g)break ah;d=J[l+(d<<2)>>2]; -f=J[d+12>>2];k=(f|0)<(k|0)?f:k;d=J[d+8>>2];s=(d|0)<(s|0)?d:s}f=0;d=0;while(1){o=d<<2;q=J[v+24>>2];l=J[o+q>>2];qa=J[l+40>>2];g=d+1|0;t=J[l+28>>2];w=J[l+24>>2];y=bc-32|0;bc=y;bh:{ch:{dh:{eh:{if((d|0)<0)break eh;A=J[v+16>>2];if((A|0)<=(d|0))break eh;m=J[o+q>>2];if(J[m>>2]|J[m+4>>2])break dh;l=J[q>>2];r=P(J[l+20>>2]-1|0,J[l+12>>2])+J[l+4>>2]|0;p=J[l>>2]+P(J[l+8>>2],J[l+16>>2]-1|0)|0;l=0;while(1){h=J[q+(l<<2)>>2];G=P(J[h+20>>2]-1|0,J[h+12>>2])+J[h+4>>2]|0;r=(r|0)<(G|0)?G:r;h=J[h>>2]+P(J[h+8>>2],J[h+16>> -2]-1|0)|0;p=(h|0)>(p|0)?h:p;l=l+1|0;if((A|0)!=(l|0))continue;break}J[y+28>>2]=t;J[y+24>>2]=w;J[y+4>>2]=0;J[y+12>>2]=k;ta=(k+r|0)/(k|0)|0;J[y+20>>2]=ta;J[y>>2]=0;J[y+8>>2]=s;na=(p+s|0)/(s|0)|0;J[y+16>>2]=na;p=-1;fh:{if(Qr(v,g,y))break fh;l=J[m>>2];h=J[m+8>>2];p=J[m+16>>2];q=J[m+4>>2];r=J[m+12>>2];t=J[m+20>>2];G=J[J[v+24>>2]+(g<<2)>>2];yn(J[G+32>>2]);if((ta|0)<=0){p=0;break fh}w=0;if((na|0)<=0){p=0;break fh}Y=q+P(r,t-1|0)|0;ja=l+P(h,p-1|0)|0;gh:{hh:{ih:{jh:{kh:while(1){ua=J[G+4>>2]+P(J[G+12>>2],w)| +f=J[d+12>>2];k=(f|0)<(k|0)?f:k;d=J[d+8>>2];s=(d|0)<(s|0)?d:s}f=0;d=0;while(1){o=d<<2;q=J[v+24>>2];l=J[o+q>>2];qa=J[l+40>>2];g=d+1|0;t=J[l+28>>2];w=J[l+24>>2];y=fc-32|0;fc=y;bh:{ch:{dh:{eh:{if((d|0)<0)break eh;A=J[v+16>>2];if((A|0)<=(d|0))break eh;m=J[o+q>>2];if(J[m>>2]|J[m+4>>2])break dh;l=J[q>>2];r=P(J[l+20>>2]-1|0,J[l+12>>2])+J[l+4>>2]|0;p=J[l>>2]+P(J[l+8>>2],J[l+16>>2]-1|0)|0;l=0;while(1){h=J[q+(l<<2)>>2];G=P(J[h+20>>2]-1|0,J[h+12>>2])+J[h+4>>2]|0;r=(r|0)<(G|0)?G:r;h=J[h>>2]+P(J[h+8>>2],J[h+16>> +2]-1|0)|0;p=(h|0)>(p|0)?h:p;l=l+1|0;if((A|0)!=(l|0))continue;break}J[y+28>>2]=t;J[y+24>>2]=w;J[y+4>>2]=0;J[y+12>>2]=k;ta=(k+r|0)/(k|0)|0;J[y+20>>2]=ta;J[y>>2]=0;J[y+8>>2]=s;la=(p+s|0)/(s|0)|0;J[y+16>>2]=la;p=-1;fh:{if(Gs(v,g,y))break fh;l=J[m>>2];h=J[m+8>>2];p=J[m+16>>2];q=J[m+4>>2];r=J[m+12>>2];t=J[m+20>>2];G=J[J[v+24>>2]+(g<<2)>>2];po(J[G+32>>2]);if((ta|0)<=0){p=0;break fh}w=0;if((la|0)<=0){p=0;break fh}Y=q+P(r,t-1|0)|0;ja=l+P(h,p-1|0)|0;gh:{hh:{ih:{jh:{kh:while(1){ua=J[G+4>>2]+P(J[G+12>>2],w)| 0;A=0;lh:while(1){p=J[G>>2]+P(J[G+8>>2],A)|0;va=J[m>>2];l=p-va|0;if((l|0)>=0){q=J[m+4>>2];r=ua-q|0;if((r|0)<0)break ch;t=J[m+12>>2];h=(t+r|0)-1|0;h=h+q-(h|0)%(t|0)|0;ka=(h|0)<(Y|0)?h:Y;h=ka-ua|0;h=P(h,h);F=J[m+8>>2];S=F-1|0;S=S+p-(l+S|0)%(F|0)|0;sa=(S|0)<(ja|0)?S:ja;p=sa-p|0;S=P(p,p);ya=h+S|0;p=(r|0)%(t|0)|0;p=P(p,p);U=(l|0)%(F|0)|0;U=P(U,U);za=p+U|0;mh:{if(!(S>>>0>>0|ya>>>0>>0)&h>>>0>=p>>>0)break mh;Aa=p+S|0;Ba=h+U|0;if(!(h>>>0

      >>0|S>>>0>U>>>0|Aa>>>0>Ba>>>0)){l=sa-va|0;break mh}if(!(h>>> -0>p>>>0|ya>>>0>za>>>0|Aa>>>0>Ba>>>0)){r=ka-q|0;l=sa-va|0;break mh}r=ka-q|0}l=(l|0)/(F|0)|0;if((l|0)<0)break jh;p=J[m+16>>2];if((p|0)<=(l|0))break jh;h=(r|0)/(t|0)|0;if((h|0)<0|(h|0)>=J[m+20>>2])break jh;if((Mg(J[m+32>>2],P(J[m+36>>2],l+P(h,p)|0),0)|0)<0)break gh;S=J[m+28>>2];F=J[m+24>>2];nh:{if((F|0)<=0){l=0;break nh}t=J[m+32>>2];q=t+8|0;r=F+7>>>3|0;l=0;while(1){p=J[t+8>>2];if(p&7)break gh;h=J[t+64>>2];if((h|0)>=0&(h|0)<=J[t+60>>2])break hh;h=J[t+28>>2];J[t+28>>2]=h-1;oh:{if((h|0)>0){J[t+60>>2]=J[t+ -60>>2]+1;h=J[t+24>>2];J[t+24>>2]=h+1;h=K[h|0];break oh}p=-1;h=jd(t,1);if((h|0)==-1)break fh}l=l<<8|h;h=r>>>0>1;r=r-1|0;if(h)continue;break}}if(S)break ih;l=(-1<>2];p=J[m+24>>2];ph:{if((h|0)==(p|0))break ph;if((h|0)<=(p|0)){if((h|0)>=(p|0))break ph;l=l>>>p-h|0;break ph}l=l<>2])break ih;t=J[G+32>>2];q=t+8|0;r=(h+7|0)/8|0;F=(-1<>2];if(p&7)break gh; -l=J[t+64>>2];if((l|0)>=0&(l|0)<=J[t+60>>2])break hh;r=r-1|0;h=F>>>(r<<3)|0;l=h&255;J[t+4>>2]=J[t+4>>2]|32;p=J[t+28>>2];J[t+28>>2]=p-1;qh:{if((p|0)>0){J[t+60>>2]=J[t+60>>2]+1;p=J[t+24>>2];J[t+24>>2]=p+1;H[p|0]=h;h=l;break qh}h=Uc(t,l)}if((h|0)==(l|0))continue;break}break gh}break}break}break ch}fa(203840,198798,1118,206499);B()}ra();B()}J[q>>2]=p|4}p=-1}bc=y+32|0;break bh}fa(202654,198798,1068,206499);B()}fa(203365,198798,1070,206499);B()}fa(205750,198798,1260,206537);B()}if(p)break _g;l=J[v+24>>2]; -J[J[l+(g<<2)>>2]+40>>2]=qa;if(J[v+16>>2]>(d|0)){l=J[l+o>>2];h=J[l+32>>2];if(h)If(h);qc(l);l=J[v+16>>2];if((l|0)>(d|0)){h=o+J[v+24>>2]|0;Zc(h,h+4|0,l+(d^-1)<<2);l=J[v+16>>2]}J[v+16>>2]=l-1;Au(v)}d=g;if((D|0)!=(d|0))continue;break}f=J[J[v+24>>2]>>2];k=J[f+12>>2];s=J[f+8>>2]}h=J[v+32>>2];if(!h)break Wg;ta=J[f+20>>2];y=J[f+16>>2];D=dO(J[h>>2]);G=dO(J[E>>2]);l=zc(40);if(!l){f=0;break _g}J[l>>2]=0;J[l+4>>2]=0;H[l+36|0]=1;J[l+24>>2]=0;J[l+28>>2]=16384;J[l+16>>2]=0;J[l+20>>2]=0;f=0;J[l+32>>2]=0;J[l+8>>2]= -0;J[l+12>>2]=0;if((G|0)>0){d=0;while(1){J[u+40>>2]=8;J[u+44>>2]=0;J[u+36>>2]=ta;J[u+32>>2]=y;J[u+28>>2]=k;J[u+24>>2]=s;J[u+16>>2]=0;J[u+20>>2]=0;if(Qr(l,-1,u+16|0))break _g;J[J[J[l+24>>2]+(d<<2)>>2]+40>>2]=d&32767;d=d+1|0;if((G|0)!=(d|0))continue;break}}d=bO(E);if(!d)break _g;if(J[l+32>>2])break Xg;J[l+32>>2]=d;J[l+28>>2]=J[E>>2];rh:{sh:{g=zc(12);if(!g)break sh;d=Yi();J[g+8>>2]=d;if(!d)break sh;th:{o=J[h+20>>2];if(!o)break sh;p=J[E+36>>2];if(!p)break sh;if(oj(d,o))break sh;if(J[h+8>>2]!=J[E+8>>2])break th; -d=0;uh:{if(oj(J[g+8>>2],p))break uh;d=(J[h>>2]>>8)-1|0;if(d>>>0>=5)break th;J[g>>2]=J[(d<<2)+206704>>2];d=(J[E>>2]>>8)-1|0;if(d>>>0>=5)break th;J[g+4>>2]=J[(d<<2)+206704>>2];d=g}break rh}ra();B()}d=0}m=d;if(!m)break _g;J[u+8>>2]=D;S=zc(P(D,20));if(!S)break Yg;J[u+12>>2]=S;if((D|0)>0){g=J[v+16>>2];if((g|0)<=0)break Ug;h=y<<2;o=J[v+24>>2];while(1){p=f&32767;d=0;while(1){k=o+(d<<2)|0;if((p|0)!=J[J[k>>2]+40>>2]){d=d+1|0;if((g|0)!=(d|0))continue;break Ug}break}d=S+P(f,20)|0;p=zc(h);J[d>>2]=p;if(!p){f= -0;break _g}p=J[k>>2];J[d+4>>2]=J[p+24>>2];p=J[p+28>>2];J[d+16>>2]=1;J[d+12>>2]=y;J[d+8>>2]=p;f=f+1|0;if((D|0)!=(f|0))continue;break}}J[u>>2]=G;U=zc(P(G,20));if(!U)break Zg;J[u+4>>2]=U;if((G|0)>0){g=J[l+16>>2];if((g|0)<=0)break Vg;h=y<<2;o=J[l+24>>2];f=0;while(1){p=f&32767;d=0;while(1){k=o+(d<<2)|0;if((p|0)!=J[J[k>>2]+40>>2]){d=d+1|0;if((g|0)!=(d|0))continue;break Vg}break}d=U+P(f,20)|0;p=zc(h);J[d>>2]=p;if(!p){f=0;break _g}p=J[k>>2];J[d+4>>2]=J[p+24>>2];p=J[p+28>>2];J[d+16>>2]=1;J[d+12>>2]=y;J[d+ +0>p>>>0|ya>>>0>za>>>0|Aa>>>0>Ba>>>0)){r=ka-q|0;l=sa-va|0;break mh}r=ka-q|0}l=(l|0)/(F|0)|0;if((l|0)<0)break jh;p=J[m+16>>2];if((p|0)<=(l|0))break jh;h=(r|0)/(t|0)|0;if((h|0)<0|(h|0)>=J[m+20>>2])break jh;if((Xg(J[m+32>>2],P(J[m+36>>2],l+P(h,p)|0),0)|0)<0)break gh;S=J[m+28>>2];F=J[m+24>>2];nh:{if((F|0)<=0){l=0;break nh}t=J[m+32>>2];q=t+8|0;r=F+7>>>3|0;l=0;while(1){p=J[t+8>>2];if(p&7)break gh;h=J[t+64>>2];if((h|0)>=0&(h|0)<=J[t+60>>2])break hh;h=J[t+28>>2];J[t+28>>2]=h-1;oh:{if((h|0)>0){J[t+60>>2]=J[t+ +60>>2]+1;h=J[t+24>>2];J[t+24>>2]=h+1;h=K[h|0];break oh}p=-1;h=td(t,1);if((h|0)==-1)break fh}l=l<<8|h;h=r>>>0>1;r=r-1|0;if(h)continue;break}}if(S)break ih;l=(-1<>2];p=J[m+24>>2];ph:{if((h|0)==(p|0))break ph;if((h|0)<=(p|0)){if((h|0)>=(p|0))break ph;l=l>>>p-h|0;break ph}l=l<>2])break ih;t=J[G+32>>2];q=t+8|0;r=(h+7|0)/8|0;F=(-1<>2];if(p&7)break gh; +l=J[t+64>>2];if((l|0)>=0&(l|0)<=J[t+60>>2])break hh;r=r-1|0;h=F>>>(r<<3)|0;l=h&255;J[t+4>>2]=J[t+4>>2]|32;p=J[t+28>>2];J[t+28>>2]=p-1;qh:{if((p|0)>0){J[t+60>>2]=J[t+60>>2]+1;p=J[t+24>>2];J[t+24>>2]=p+1;H[p|0]=h;h=l;break qh}h=bd(t,l)}if((h|0)==(l|0))continue;break}break gh}break}break}break ch}fa(203856,198814,1118,206515);B()}ra();B()}J[q>>2]=p|4}p=-1}fc=y+32|0;break bh}fa(202670,198814,1068,206515);B()}fa(203381,198814,1070,206515);B()}fa(205766,198814,1260,206553);B()}if(p)break _g;l=J[v+24>>2]; +J[J[l+(g<<2)>>2]+40>>2]=qa;if(J[v+16>>2]>(d|0)){l=J[l+o>>2];h=J[l+32>>2];if(h)Pf(h);uc(l);l=J[v+16>>2];if((l|0)>(d|0)){h=o+J[v+24>>2]|0;cd(h,h+4|0,l+(d^-1)<<2);l=J[v+16>>2]}J[v+16>>2]=l-1;pv(v)}d=g;if((D|0)!=(d|0))continue;break}f=J[J[v+24>>2]>>2];k=J[f+12>>2];s=J[f+8>>2]}h=J[v+32>>2];if(!h)break Wg;ta=J[f+20>>2];y=J[f+16>>2];D=xP(J[h>>2]);G=xP(J[E>>2]);l=Dc(40);if(!l){f=0;break _g}J[l>>2]=0;J[l+4>>2]=0;H[l+36|0]=1;J[l+24>>2]=0;J[l+28>>2]=16384;J[l+16>>2]=0;J[l+20>>2]=0;f=0;J[l+32>>2]=0;J[l+8>>2]= +0;J[l+12>>2]=0;if((G|0)>0){d=0;while(1){J[u+40>>2]=8;J[u+44>>2]=0;J[u+36>>2]=ta;J[u+32>>2]=y;J[u+28>>2]=k;J[u+24>>2]=s;J[u+16>>2]=0;J[u+20>>2]=0;if(Gs(l,-1,u+16|0))break _g;J[J[J[l+24>>2]+(d<<2)>>2]+40>>2]=d&32767;d=d+1|0;if((G|0)!=(d|0))continue;break}}d=vP(E);if(!d)break _g;if(J[l+32>>2])break Xg;J[l+32>>2]=d;J[l+28>>2]=J[E>>2];rh:{sh:{g=Dc(12);if(!g)break sh;d=sj();J[g+8>>2]=d;if(!d)break sh;th:{o=J[h+20>>2];if(!o)break sh;p=J[E+36>>2];if(!p)break sh;if(Lj(d,o))break sh;if(J[h+8>>2]!=J[E+8>>2])break th; +d=0;uh:{if(Lj(J[g+8>>2],p))break uh;d=(J[h>>2]>>8)-1|0;if(d>>>0>=5)break th;J[g>>2]=J[(d<<2)+206720>>2];d=(J[E>>2]>>8)-1|0;if(d>>>0>=5)break th;J[g+4>>2]=J[(d<<2)+206720>>2];d=g}break rh}ra();B()}d=0}m=d;if(!m)break _g;J[u+8>>2]=D;S=Dc(P(D,20));if(!S)break Yg;J[u+12>>2]=S;if((D|0)>0){g=J[v+16>>2];if((g|0)<=0)break Ug;h=y<<2;o=J[v+24>>2];while(1){p=f&32767;d=0;while(1){k=o+(d<<2)|0;if((p|0)!=J[J[k>>2]+40>>2]){d=d+1|0;if((g|0)!=(d|0))continue;break Ug}break}d=S+P(f,20)|0;p=Dc(h);J[d>>2]=p;if(!p){f= +0;break _g}p=J[k>>2];J[d+4>>2]=J[p+24>>2];p=J[p+28>>2];J[d+16>>2]=1;J[d+12>>2]=y;J[d+8>>2]=p;f=f+1|0;if((D|0)!=(f|0))continue;break}}J[u>>2]=G;U=Dc(P(G,20));if(!U)break Zg;J[u+4>>2]=U;if((G|0)>0){g=J[l+16>>2];if((g|0)<=0)break Vg;h=y<<2;o=J[l+24>>2];f=0;while(1){p=f&32767;d=0;while(1){k=o+(d<<2)|0;if((p|0)!=J[J[k>>2]+40>>2]){d=d+1|0;if((g|0)!=(d|0))continue;break Vg}break}d=U+P(f,20)|0;p=Dc(h);J[d>>2]=p;if(!p){f=0;break _g}p=J[k>>2];J[d+4>>2]=J[p+24>>2];p=J[p+28>>2];J[d+16>>2]=1;J[d+12>>2]=y;J[d+ 8>>2]=p;f=f+1|0;if((G|0)!=(f|0))continue;break}}s=0;if((ta|0)>0)while(1){k=0;if((D|0)>0)while(1){g=-1;f=J[v+16>>2];vh:{if((f|0)<=0)break vh;h=k&32767;o=J[v+24>>2];d=0;while(1){if((h|0)==J[J[o+(d<<2)>>2]+40>>2]){g=d;break vh}d=d+1|0;if((f|0)!=(d|0))continue;break}}f=0;r=J[S+P(k,20)>>2];h=0;A=0;wh:{xh:{if((g|0)<0|J[v+16>>2]<=(g|0)|(s|0)<0)break xh;t=J[J[v+24>>2]+(g<<2)>>2];d=J[t+16>>2];if((y|1)<0|(d|0)<=0)break xh;g=J[t+20>>2];if((d|0)<(y|0)|(g|0)<=(s|0)|(g|0)<(s+1|0))break xh;yh:{if((y|0)<=0){g=0; -while(1){if((Mg(J[t+32>>2],P(J[t+36>>2],P(J[t+16>>2],g+s|0)),0)|0)<0)break xh;g=g+1|0;if((g|0)!=1)continue;break}break yh}F=y<<2;zh:{while(1){if((Mg(J[t+32>>2],P(J[t+36>>2],P(J[t+16>>2],s+A|0)),0)|0)<0)break xh;o=0;Ah:{Bh:{p=J[t+24>>2];if((p|0)<=0){if(J[t+28>>2])break zh;r=wc(r,0,F)+F|0;break Bh}while(1){na=J[t+28>>2];w=0;if((p|0)>0){g=J[t+32>>2];q=p+7>>>3|0;while(1){d=J[g+8>>2];if(d&7)break xh;h=J[g+64>>2];if((h|0)>=0&(h|0)<=J[g+60>>2])break Ah;d=J[g+28>>2];J[g+28>>2]=d-1;Ch:{if((d|0)>0){J[g+60>> -2]=J[g+60>>2]+1;d=J[g+24>>2];J[g+24>>2]=d+1;d=K[d|0];break Ch}h=-1;d=jd(g,1);if((d|0)==-1)break yh}w=w<<8|d;d=q>>>0>1;q=q-1|0;if(d)continue;break}}if(na)break zh;J[r>>2]=(-1<>2];continue}}h=0;A=A+1|0;if((A|0)!=1)continue;break yh}break}J[g+8>>2]=d|4;break xh}ra();B()}break wh}h=-1}if(h)break _g;k=k+1|0;if((D|0)!=(k|0))continue;break}k=0;r=0;A=0;t=0;g=bc-32768|0;bc=g;Dh:{Eh:{p=J[m>>2];Fh:{if((p|0)>J[u+8>>2])break Fh;h=J[m+4>>2];if((h|0)>J[u>> -2])break Fh;d=1;q=J[u+12>>2];f=J[q+16>>2];o=J[q+12>>2];if((p|0)>1)while(1){w=q+P(d,20)|0;if((o|0)!=J[w+12>>2]|(f|0)!=J[w+16>>2])break Fh;d=d+1|0;if((p|0)!=(d|0))continue;break}if((h|0)>0){p=J[u+4>>2];d=0;while(1){q=p+P(d,20)|0;if((o|0)!=J[q+12>>2]|(f|0)!=J[q+16>>2])break Fh;d=d+1|0;if((h|0)!=(d|0))continue;break}}na=J[m+8>>2];w=J[na>>2];if((w|0)>0){q=w&1;p=J[na+8>>2];Gh:{if((w|0)==1){d=0;break Gh}t=w&-2;d=0;while(1){F=k<<2;Y=J[p+(F|4)>>2];ja=J[Y+12>>2];Y=J[Y+8>>2];F=J[p+F>>2];ua=J[F+12>>2];F=J[F+ +while(1){if((Xg(J[t+32>>2],P(J[t+36>>2],P(J[t+16>>2],g+s|0)),0)|0)<0)break xh;g=g+1|0;if((g|0)!=1)continue;break}break yh}F=y<<2;zh:{while(1){if((Xg(J[t+32>>2],P(J[t+36>>2],P(J[t+16>>2],s+A|0)),0)|0)<0)break xh;o=0;Ah:{Bh:{p=J[t+24>>2];if((p|0)<=0){if(J[t+28>>2])break zh;r=Ac(r,0,F)+F|0;break Bh}while(1){la=J[t+28>>2];w=0;if((p|0)>0){g=J[t+32>>2];q=p+7>>>3|0;while(1){d=J[g+8>>2];if(d&7)break xh;h=J[g+64>>2];if((h|0)>=0&(h|0)<=J[g+60>>2])break Ah;d=J[g+28>>2];J[g+28>>2]=d-1;Ch:{if((d|0)>0){J[g+60>> +2]=J[g+60>>2]+1;d=J[g+24>>2];J[g+24>>2]=d+1;d=K[d|0];break Ch}h=-1;d=td(g,1);if((d|0)==-1)break yh}w=w<<8|d;d=q>>>0>1;q=q-1|0;if(d)continue;break}}if(la)break zh;J[r>>2]=(-1<>2];continue}}h=0;A=A+1|0;if((A|0)!=1)continue;break yh}break}J[g+8>>2]=d|4;break xh}ra();B()}break wh}h=-1}if(h)break _g;k=k+1|0;if((D|0)!=(k|0))continue;break}k=0;r=0;A=0;t=0;g=fc-32768|0;fc=g;Dh:{Eh:{p=J[m>>2];Fh:{if((p|0)>J[u+8>>2])break Fh;h=J[m+4>>2];if((h|0)>J[u>> +2])break Fh;d=1;q=J[u+12>>2];f=J[q+16>>2];o=J[q+12>>2];if((p|0)>1)while(1){w=q+P(d,20)|0;if((o|0)!=J[w+12>>2]|(f|0)!=J[w+16>>2])break Fh;d=d+1|0;if((p|0)!=(d|0))continue;break}if((h|0)>0){p=J[u+4>>2];d=0;while(1){q=p+P(d,20)|0;if((o|0)!=J[q+12>>2]|(f|0)!=J[q+16>>2])break Fh;d=d+1|0;if((h|0)!=(d|0))continue;break}}la=J[m+8>>2];w=J[la>>2];if((w|0)>0){q=w&1;p=J[la+8>>2];Gh:{if((w|0)==1){d=0;break Gh}t=w&-2;d=0;while(1){F=k<<2;Y=J[p+(F|4)>>2];ja=J[Y+12>>2];Y=J[Y+8>>2];F=J[p+F>>2];ua=J[F+12>>2];F=J[F+ 8>>2];d=(d|0)<(F|0)?F:d;d=(d|0)<(ua|0)?ua:d;d=(d|0)<(Y|0)?Y:d;d=(d|0)<(ja|0)?ja:d;k=k+2|0;r=r+2|0;if((t|0)!=(r|0))continue;break}}if(q){p=J[p+(k<<2)>>2];k=J[p+12>>2];p=J[p+8>>2];d=(d|0)<(p|0)?p:d;d=(d|0)<(k|0)?k:d}t=2048/(d>>>0)|0;if(d>>>0>=2049)break Eh}Y=P(f,o);if((Y|0)<=0)break Fh;ua=g+16384|0;while(1){d=Y-A|0;F=(d|0)<(t|0)?d:t;o=J[m>>2];if((o|0)>0){ja=J[u+12>>2];f=0;va=A<<2;while(1){Hh:{if((F|0)<=0)break Hh;d=ja+P(f,20)|0;p=J[d+4>>2];ka=p-1|0;sa=J[d+8>>2];q=sa?-1<> -2]|0;r=0;k=g+(f<<3)|0;if(!sa){ka=1<>2];if((p|0)<0|(p|0)>=(ka|0))break Fh;O[k>>3]=+(p+q|0)/z;d=d+4|0;k=(o<<3)+k|0;r=r+1|0;if((F|0)>(r|0))continue;break}break Hh}ka=1<>2];if((p|0)<(sa|0)|(p|0)>=(ka|0))break Fh;O[k>>3]=+(p+q|0)/z;d=d+4|0;k=(o<<3)+k|0;r=r+1|0;if((F|0)>(r|0))continue;break}}f=f+1|0;if((o|0)!=(f|0))continue;break}}k=0;f=g;if((w|0)>0){d=f;while(1){h=J[J[na+8>>2]+(k<<2)>>2];f=J[h+12>>2]>J[h+8>>2]?(d|0)==(g|0)?ua:g:d;if(gc[J[J[h+4>>2]+4>>2]](h, -d,f,F)|0)break Fh;d=f;k=k+1|0;w=J[na>>2];if((k|0)<(w|0))continue;break}h=J[m+4>>2]}if((h|0)>0){va=J[u+4>>2];q=0;while(1){Ih:{if((F|0)<=0)break Ih;o=va+P(q,20)|0;p=J[o+4>>2];z=+(-1<>2]+(A<<2)|0;r=0;d=(q<<3)+f|0;ja=1<>2];T=+((o?ja:0)|0);if(!o){p=1<>3]*z+T;Jh:{if(R(pa)<2147483648){o=~~pa;break Jh}o=-2147483648}if((o|0)<0|(o|0)>=(p|0))break Fh;J[k>>2]=o;k=k+4|0;d=(h<<3)+d|0;r=r+1|0;if((F|0)>(r|0))continue;break}break Ih}p=0-ja|0;while(1){pa=O[d>>3]*z+T;Kh:{if(R(pa)< -2147483648){o=~~pa;break Kh}o=-2147483648}if((o|0)<(p|0)|(o|0)>=(ja|0))break Fh;J[k>>2]=o;k=k+4|0;d=(h<<3)+d|0;r=r+1|0;if((F|0)>(r|0))continue;break}}q=q+1|0;if((q|0)!=(h|0))continue;break}}A=A+F|0;if((Y|0)>(A|0))continue;break}}bc=g+32768|0;break Dh}fa(200285,198640,519,206567);B()}k=0;if((G|0)>0)while(1){g=-1;f=J[l+16>>2];Lh:{if((f|0)<=0)break Lh;h=k&32767;o=J[l+24>>2];d=0;while(1){if((h|0)==J[J[o+(d<<2)>>2]+40>>2]){g=d;break Lh}d=d+1|0;if((f|0)!=(d|0))continue;break}}f=0;h=J[U+P(k,20)>>2];p=0; -Mh:{Nh:{if((g|0)<0|J[l+16>>2]<=(g|0)|(s|0)<0)break Nh;q=J[J[l+24>>2]+(g<<2)>>2];d=J[q+16>>2];if((y|1)<0|(d|0)<=0)break Nh;g=J[q+20>>2];if((d|0)<(y|0)|(g|0)<=(s|0)|(g|0)<(s+1|0))break Nh;Oh:{Ph:{if((y|0)>0)Qh:while(1){w=0;if((Mg(J[q+32>>2],P(J[q+36>>2],P(J[q+16>>2],p+s|0)),0)|0)<0)break Nh;Rh:while(1){if(J[q+28>>2])break Ph;o=J[q+32>>2];d=J[q+24>>2];r=(d+7|0)/8|0;t=J[h>>2]&(-1<>2];if(d&7)break Nh;g=J[o+64>>2];if((g|0)>=0&(g|0)<=J[o+60>>2])break Oh;r=r-1|0;g=t>>>(r<<3)|0;d=g&255;J[o+4>>2]=J[o+4>>2]|32;A=J[o+28>>2];J[o+28>>2]=A-1;Sh:{if((A|0)>0){J[o+60>>2]=J[o+60>>2]+1;A=J[o+24>>2];J[o+24>>2]=A+1;H[A|0]=g;g=d;break Sh}g=Uc(o,d)}if((g|0)==(d|0))continue;break}break}break Nh}while(1){if((Mg(J[q+32>>2],P(J[q+36>>2],P(J[q+16>>2],p+s|0)),0)|0)<0)break Nh;r=0;p=p+1|0;if((p|0)!=1)continue;break}break Mh}ra();B()}J[o+8>>2]=d|4}r=-1}if(r)break _g;k=k+1|0;if((G|0)!=(k|0))continue; -break}s=s+1|0;if((ta|0)!=(s|0))continue;break}d=0;if((G|0)>0)while(1){qc(J[U+P(d,20)>>2]);d=d+1|0;if((G|0)!=(d|0))continue;break}qc(U);if((D|0)>0){d=0;while(1){qc(J[S+P(d,20)>>2]);d=d+1|0;if((D|0)!=(d|0))continue;break}}qc(S);d=J[m+8>>2];if(d){g=J[d>>2];if((g|0)>0)while(1){h=J[d+8>>2];g=g-1|0;p=g<<2;f=J[h+p>>2];o=J[f>>2];J[f>>2]=o-1;if((o|0)<=1){gc[J[J[f+4>>2]>>2]](f);qc(f);h=J[d+8>>2];g=J[d>>2]-1|0}J[h+p>>2]=0;J[d>>2]=g;if((g|0)>0)continue;break}f=J[d+8>>2];if(f)qc(f);qc(d)}qc(m);yh(v);f=l}bc=u+ -48|0;d=f;break Tg}fa(205457,198798,1399,206518);B()}fa(204908,198798,1384,206518);B()}fa(204721,198798,1374,206518);B()}fa(204270,198798,1337,206518);B()}fa(205345,198798,1404,206518);B()}fa(205345,198798,1388,206518);B()}if(!d){$x(E);qd(i+72|0,46554,255);break Ng}yh(e);$x(E);f=J[d+16>>2];e=d}d=0;n=bd(f,4);Th:{Uh:{Vh:{if((f|0)>0){while(1){f=ek(1,W);J[(d<<2)+n>>2]=f;if(!f){qd(i+72|0,46608,255);break Ng}d=d+1|0;f=J[e+16>>2];if((d|0)<(f|0))continue;break}k=(ea|0)>8?ea-8|0:0;if((f|0)!=3)break Vh;d=J[e+ -24>>2];f=J[d>>2];g=J[f+16>>2];l=J[d+4>>2];if((g|0)!=J[l+16>>2]){f=3;break Vh}d=J[d+8>>2];if((g|0)!=J[d+16>>2]){f=3;break Vh}g=J[f+20>>2];if((g|0)!=J[l+20>>2]){f=3;break Vh}if((g|0)!=J[d+20>>2]){f=3;break Vh}f=J[f+24>>2];if((f|0)!=J[l+24>>2]){f=3;break Vh}if((f|0)!=J[d+24>>2]){f=3;break Vh}if(!mi(i,W,oa,24,wa))break Ng;if((oa|0)<=0)break Uh;if((W|0)>0){f=0;while(1){d=0;if(J[e+16>>2]>0)while(1){hk(e,d,0,f,W,1,J[(d<<2)+n>>2]);d=d+1|0;if((d|0)>2])continue;break}o=oa+(f^-1)|0;g=J[n>>2];d=0;while(1){p= -J[n+4>>2];l=J[p+28>>2];if(J[g+20>>2]!=1)h=J[J[g+28>>2]+(d<<2)>>2];else h=J[J[g+28>>2]>>2]+(d<<2)|0;h=J[h>>2]>>k;if(J[p+20>>2]!=1)l=J[l+(d<<2)>>2];else l=J[l>>2]+(d<<2)|0;p=J[l>>2]>>k;q=J[n+8>>2];l=J[q+28>>2];if(J[q+20>>2]!=1)l=J[l+(d<<2)>>2];else l=J[l>>2]+(d<<2)|0;l=J[l>>2];H[x+10|0]=h;H[x+9|0]=p;H[x+8|0]=l>>k;J[x+4>>2]=K[x+8|0]|K[x+9|0]<<8|(K[x+10|0]<<16|K[x+11|0]<<24);Zp(i,d,o,x+4|0,0);d=d+1|0;if((W|0)!=(d|0))continue;break}f=f+1|0;if((oa|0)!=(f|0))continue;break}break Uh}k=J[e+16>>2];if((k|0)<= -0)break Uh;f=0;while(1){d=0;if((k|0)>0)while(1){hk(e,d,0,f,W,1,J[(d<<2)+n>>2]);d=d+1|0;k=J[e+16>>2];if((d|0)<(k|0))continue;break}f=f+1|0;if((oa|0)!=(f|0))continue;break}break Uh}k=(ea|0)>8?ea-8|0:0}J[i+356>>2]=f;d=J[i+352>>2];if((d|0)<0|(d|0)>=(f|0))break Th;d=0;while(1){f=J[J[e+24>>2]+(d<<2)>>2];h=J[f+16>>2];o=J[f+20>>2];f=J[f+24>>2];if(!mi(i,h,o,(f|0)>=8?8:f,0))break Ng;f=d;Yp(i);Wh:{if((o|0)<=0)break Wh;l=J[n>>2];if((h|0)<=0){d=0;while(1){hk(e,f,0,d,h,1,l);d=d+1|0;if((o|0)!=(d|0))continue;break}break Wh}s= -0;while(1){hk(e,f,0,s,h,1,l);g=o+(s^-1)|0;d=0;while(1){if(J[l+20>>2]!=1)v=J[J[l+28>>2]+(d<<2)>>2];else v=J[J[l+28>>2]>>2]+(d<<2)|0;sm(i,d,g,J[v>>2]>>k&255);d=d+1|0;if((h|0)!=(d|0))continue;break}s=s+1|0;if((o|0)!=(s|0))continue;break}}d=f+1|0;if((f|0)>2])continue;break}}k=1;break Eg}qd(i+72|0,46742,255)}d=(wa|0)>0;break Fg}d=0}k=d&J[i+332>>2]==-1}Xh:{Yh:{if(n){f=J[e+16>>2];if((f|0)>0){d=0;while(1){g=J[(d<<2)+n>>2];if(g){dg(g);f=J[e+16>>2]}d=d+1|0;if((f|0)>(d|0))continue;break}}qc(n);Cu(); -break Yh}Cu();if(!e)break Xh}yh(e)}if(!j)break Dg;If(j)}bc=x+32|0;if(k)break b;ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(976);J[695492]=0;i=qf(d,18);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[i>>2]=46096;Gj(i,a);e=0;d=bc-16|0;bc=d;Zh:{if(!b)break Zh;gc[J[J[b>>2]+12>>2]](b,d+6|0,9,1,0,0)|0;f=I[d+6>>1];I[d+6>>1]=K[i+494|0]?f:f<<8|(f&65280)>>>8;f=I[d+8>>1];I[d+8>>1]=K[i+494|0]?f:f<<8|(f&65280)>>>8;f=Ej(i,K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14| -0]<<24));H[d+11|0]=f;H[d+12|0]=f>>>8;H[d+13|0]=f>>>16;H[d+14|0]=f>>>24;if((f|0)!=16777216)break Zh;f=L[d+6>>1];if(f<<16>>16<0)break Zh;g=L[d+8>>1];if(K[d+10|0]!=3|g<<16>>16<0)break Zh;if(J[i+332>>2]==-1){J[i+68>>2]=18;J[i+20>>2]=g;J[i+16>>2]=f;e=1;break Zh}mi(i,f,g,8,18);if(!J[i+4>>2])break Zh;f=zc(768);if(!f)break Zh;e=1;gc[J[J[b>>2]+12>>2]](b,f,768,1,0,0)|0;fN(i,f,256);qc(f);Ka=b,Ja=df(i,0),Ia=P(L[d+8>>1],L[d+6>>1]),Ha=1,Ga=0,Fa=0,Ea=J[J[b>>2]+12>>2],gc[Ea](Ka|0,Ja|0,Ia|0,Ha|0,Ga|0,Fa|0)|0;_h:{if(J[i+ -52>>2]==L[d+6>>1])break _h;f=df(i,0);l=L[d+6>>1];j=L[d+8>>1]-1|0;g=df(i,j);if(!L[d+8>>1])break _h;f=P(j,l)+f|0;n=0;while(1){g=tc(g,f,L[d+6>>1]);f=f-L[d+6>>1]|0;g=g-J[i+52>>2]|0;n=n+1|0;if(n>>>0>1])continue;break}}pD(i)}bc=d+16|0;if(e)break b;ff(a+72|0,i+72|0);gc[J[J[b>>2]+20>>2]](b,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}d=rc(976);J[695492]=0;i=qf(d,20);e=J[695492];J[695492]=0;if((e|0)!=1)break e}a=Z()|0;qc(d);break a}J[i>>2]=46140;Gj(i,a);d=0;u=bc-32|0;bc=u;v=b;e=0;$h:{if(!b)break $h; -m=bd(1,712);ai:{if(!m){qd(i+72|0,43390,255);aN(0);break ai}J[m+4>>2]=v;J[u+28>>2]=233;J[u+24>>2]=234;J[u+20>>2]=235;J[m+8>>2]=u+20;Ea=m,Fa=gc[J[J[v>>2]+28>>2]](v)|0,J[Ea+24>>2]=Fa;s=0;bi:{if(J[m+24>>2]>0)while(1){ci:{di:switch(J[m+32>>2]){case 0:b=bc-32|0;bc=b;e=-5;ei:{fi:{gi:{hi:{ii:{ji:{ki:{if((af(m,b+6|0,26)|0)!=26)break ki;e=-200;if((K[b+6|0]|K[b+7|0]<<8|(K[b+8|0]<<16|K[b+9|0]<<24))!=1397768760)break ki;e=-201;f=K[b+10|0]|K[b+11|0]<<8;if(((f<<8|f>>>8)&65535)!=1)break ki;e=K[b+20|0]|K[b+21|0]<< +2]|0;r=0;k=g+(f<<3)|0;if(!sa){ka=1<>2];if((p|0)<0|(p|0)>=(ka|0))break Fh;O[k>>3]=+(p+q|0)/z;d=d+4|0;k=(o<<3)+k|0;r=r+1|0;if((F|0)>(r|0))continue;break}break Hh}ka=1<>2];if((p|0)<(sa|0)|(p|0)>=(ka|0))break Fh;O[k>>3]=+(p+q|0)/z;d=d+4|0;k=(o<<3)+k|0;r=r+1|0;if((F|0)>(r|0))continue;break}}f=f+1|0;if((o|0)!=(f|0))continue;break}}k=0;f=g;if((w|0)>0){d=f;while(1){h=J[J[la+8>>2]+(k<<2)>>2];f=J[h+12>>2]>J[h+8>>2]?(d|0)==(g|0)?ua:g:d;if(kc[J[J[h+4>>2]+4>>2]](h, +d,f,F)|0)break Fh;d=f;k=k+1|0;w=J[la>>2];if((k|0)<(w|0))continue;break}h=J[m+4>>2]}if((h|0)>0){va=J[u+4>>2];q=0;while(1){Ih:{if((F|0)<=0)break Ih;o=va+P(q,20)|0;p=J[o+4>>2];z=+(-1<>2]+(A<<2)|0;r=0;d=(q<<3)+f|0;ja=1<>2];T=+((o?ja:0)|0);if(!o){p=1<>3]*z+T;Jh:{if(R(pa)<2147483648){o=~~pa;break Jh}o=-2147483648}if((o|0)<0|(o|0)>=(p|0))break Fh;J[k>>2]=o;k=k+4|0;d=(h<<3)+d|0;r=r+1|0;if((F|0)>(r|0))continue;break}break Ih}p=0-ja|0;while(1){pa=O[d>>3]*z+T;Kh:{if(R(pa)< +2147483648){o=~~pa;break Kh}o=-2147483648}if((o|0)<(p|0)|(o|0)>=(ja|0))break Fh;J[k>>2]=o;k=k+4|0;d=(h<<3)+d|0;r=r+1|0;if((F|0)>(r|0))continue;break}}q=q+1|0;if((q|0)!=(h|0))continue;break}}A=A+F|0;if((Y|0)>(A|0))continue;break}}fc=g+32768|0;break Dh}fa(200301,198656,519,206583);B()}k=0;if((G|0)>0)while(1){g=-1;f=J[l+16>>2];Lh:{if((f|0)<=0)break Lh;h=k&32767;o=J[l+24>>2];d=0;while(1){if((h|0)==J[J[o+(d<<2)>>2]+40>>2]){g=d;break Lh}d=d+1|0;if((f|0)!=(d|0))continue;break}}f=0;h=J[U+P(k,20)>>2];p=0; +Mh:{Nh:{if((g|0)<0|J[l+16>>2]<=(g|0)|(s|0)<0)break Nh;q=J[J[l+24>>2]+(g<<2)>>2];d=J[q+16>>2];if((y|1)<0|(d|0)<=0)break Nh;g=J[q+20>>2];if((d|0)<(y|0)|(g|0)<=(s|0)|(g|0)<(s+1|0))break Nh;Oh:{Ph:{if((y|0)>0)Qh:while(1){w=0;if((Xg(J[q+32>>2],P(J[q+36>>2],P(J[q+16>>2],p+s|0)),0)|0)<0)break Nh;Rh:while(1){if(J[q+28>>2])break Ph;o=J[q+32>>2];d=J[q+24>>2];r=(d+7|0)/8|0;t=J[h>>2]&(-1<>2];if(d&7)break Nh;g=J[o+64>>2];if((g|0)>=0&(g|0)<=J[o+60>>2])break Oh;r=r-1|0;g=t>>>(r<<3)|0;d=g&255;J[o+4>>2]=J[o+4>>2]|32;A=J[o+28>>2];J[o+28>>2]=A-1;Sh:{if((A|0)>0){J[o+60>>2]=J[o+60>>2]+1;A=J[o+24>>2];J[o+24>>2]=A+1;H[A|0]=g;g=d;break Sh}g=bd(o,d)}if((g|0)==(d|0))continue;break}break}break Nh}while(1){if((Xg(J[q+32>>2],P(J[q+36>>2],P(J[q+16>>2],p+s|0)),0)|0)<0)break Nh;r=0;p=p+1|0;if((p|0)!=1)continue;break}break Mh}ra();B()}J[o+8>>2]=d|4}r=-1}if(r)break _g;k=k+1|0;if((G|0)!=(k|0))continue; +break}s=s+1|0;if((ta|0)!=(s|0))continue;break}d=0;if((G|0)>0)while(1){uc(J[U+P(d,20)>>2]);d=d+1|0;if((G|0)!=(d|0))continue;break}uc(U);if((D|0)>0){d=0;while(1){uc(J[S+P(d,20)>>2]);d=d+1|0;if((D|0)!=(d|0))continue;break}}uc(S);d=J[m+8>>2];if(d){g=J[d>>2];if((g|0)>0)while(1){h=J[d+8>>2];g=g-1|0;p=g<<2;f=J[h+p>>2];o=J[f>>2];J[f>>2]=o-1;if((o|0)<=1){kc[J[J[f+4>>2]>>2]](f);uc(f);h=J[d+8>>2];g=J[d>>2]-1|0}J[h+p>>2]=0;J[d>>2]=g;if((g|0)>0)continue;break}f=J[d+8>>2];if(f)uc(f);uc(d)}uc(m);Mh(v);f=l}fc=u+ +48|0;d=f;break Tg}fa(205473,198814,1399,206534);B()}fa(204924,198814,1384,206534);B()}fa(204737,198814,1374,206534);B()}fa(204286,198814,1337,206534);B()}fa(205361,198814,1404,206534);B()}fa(205361,198814,1388,206534);B()}if(!d){Sy(E);Ad(i+72|0,46570,255);break Ng}Mh(e);Sy(E);f=J[d+16>>2];e=d}d=0;n=kd(f,4);Th:{Uh:{Vh:{if((f|0)>0){while(1){f=Dk(1,W);J[(d<<2)+n>>2]=f;if(!f){Ad(i+72|0,46624,255);break Ng}d=d+1|0;f=J[e+16>>2];if((d|0)<(f|0))continue;break}k=(ea|0)>8?ea-8|0:0;if((f|0)!=3)break Vh;d=J[e+ +24>>2];f=J[d>>2];g=J[f+16>>2];l=J[d+4>>2];if((g|0)!=J[l+16>>2]){f=3;break Vh}d=J[d+8>>2];if((g|0)!=J[d+16>>2]){f=3;break Vh}g=J[f+20>>2];if((g|0)!=J[l+20>>2]){f=3;break Vh}if((g|0)!=J[d+20>>2]){f=3;break Vh}f=J[f+24>>2];if((f|0)!=J[l+24>>2]){f=3;break Vh}if((f|0)!=J[d+24>>2]){f=3;break Vh}if(!Bi(i,W,oa,24,wa))break Ng;if((oa|0)<=0)break Uh;if((W|0)>0){f=0;while(1){d=0;if(J[e+16>>2]>0)while(1){Gk(e,d,0,f,W,1,J[(d<<2)+n>>2]);d=d+1|0;if((d|0)>2])continue;break}o=oa+(f^-1)|0;g=J[n>>2];d=0;while(1){p= +J[n+4>>2];l=J[p+28>>2];if(J[g+20>>2]!=1)h=J[J[g+28>>2]+(d<<2)>>2];else h=J[J[g+28>>2]>>2]+(d<<2)|0;h=J[h>>2]>>k;if(J[p+20>>2]!=1)l=J[l+(d<<2)>>2];else l=J[l>>2]+(d<<2)|0;p=J[l>>2]>>k;q=J[n+8>>2];l=J[q+28>>2];if(J[q+20>>2]!=1)l=J[l+(d<<2)>>2];else l=J[l>>2]+(d<<2)|0;l=J[l>>2];H[x+10|0]=h;H[x+9|0]=p;H[x+8|0]=l>>k;J[x+4>>2]=K[x+8|0]|K[x+9|0]<<8|(K[x+10|0]<<16|K[x+11|0]<<24);Qq(i,d,o,x+4|0,0);d=d+1|0;if((W|0)!=(d|0))continue;break}f=f+1|0;if((oa|0)!=(f|0))continue;break}break Uh}k=J[e+16>>2];if((k|0)<= +0)break Uh;f=0;while(1){d=0;if((k|0)>0)while(1){Gk(e,d,0,f,W,1,J[(d<<2)+n>>2]);d=d+1|0;k=J[e+16>>2];if((d|0)<(k|0))continue;break}f=f+1|0;if((oa|0)!=(f|0))continue;break}break Uh}k=(ea|0)>8?ea-8|0:0}J[i+356>>2]=f;d=J[i+352>>2];if((d|0)<0|(d|0)>=(f|0))break Th;d=0;while(1){f=J[J[e+24>>2]+(d<<2)>>2];h=J[f+16>>2];o=J[f+20>>2];f=J[f+24>>2];if(!Bi(i,h,o,(f|0)>=8?8:f,0))break Ng;f=d;Pq(i);Wh:{if((o|0)<=0)break Wh;l=J[n>>2];if((h|0)<=0){d=0;while(1){Gk(e,f,0,d,h,1,l);d=d+1|0;if((o|0)!=(d|0))continue;break}break Wh}s= +0;while(1){Gk(e,f,0,s,h,1,l);g=o+(s^-1)|0;d=0;while(1){if(J[l+20>>2]!=1)v=J[J[l+28>>2]+(d<<2)>>2];else v=J[J[l+28>>2]>>2]+(d<<2)|0;jn(i,d,g,J[v>>2]>>k&255);d=d+1|0;if((h|0)!=(d|0))continue;break}s=s+1|0;if((o|0)!=(s|0))continue;break}}d=f+1|0;if((f|0)>2])continue;break}}k=1;break Eg}Ad(i+72|0,46758,255)}d=(wa|0)>0;break Fg}d=0}k=d&J[i+332>>2]==-1}Xh:{Yh:{if(n){f=J[e+16>>2];if((f|0)>0){d=0;while(1){g=J[(d<<2)+n>>2];if(g){mg(g);f=J[e+16>>2]}d=d+1|0;if((f|0)>(d|0))continue;break}}uc(n);rv(); +break Yh}rv();if(!e)break Xh}Mh(e)}if(!j)break Dg;Pf(j)}fc=x+32|0;if(k)break b;of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(976);J[699344]=0;i=xf(d,18);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[i>>2]=46112;bk(i,a);e=0;d=fc-16|0;fc=d;Zh:{if(!b)break Zh;kc[J[J[b>>2]+12>>2]](b,d+6|0,9,1,0,0)|0;f=I[d+6>>1];I[d+6>>1]=K[i+494|0]?f:f<<8|(f&65280)>>>8;f=I[d+8>>1];I[d+8>>1]=K[i+494|0]?f:f<<8|(f&65280)>>>8;f=$j(i,K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14| +0]<<24));H[d+11|0]=f;H[d+12|0]=f>>>8;H[d+13|0]=f>>>16;H[d+14|0]=f>>>24;if((f|0)!=16777216)break Zh;f=L[d+6>>1];if(f<<16>>16<0)break Zh;g=L[d+8>>1];if(K[d+10|0]!=3|g<<16>>16<0)break Zh;if(J[i+332>>2]==-1){J[i+68>>2]=18;J[i+20>>2]=g;J[i+16>>2]=f;e=1;break Zh}Bi(i,f,g,8,18);if(!J[i+4>>2])break Zh;f=Dc(768);if(!f)break Zh;e=1;kc[J[J[b>>2]+12>>2]](b,f,768,1,0,0)|0;zO(i,f,256);uc(f);Ka=b,Ja=mf(i,0),Ia=P(L[d+8>>1],L[d+6>>1]),Ha=1,Ga=0,Fa=0,Ea=J[J[b>>2]+12>>2],kc[Ea](Ka|0,Ja|0,Ia|0,Ha|0,Ga|0,Fa|0)|0;_h:{if(J[i+ +52>>2]==L[d+6>>1])break _h;f=mf(i,0);l=L[d+6>>1];j=L[d+8>>1]-1|0;g=mf(i,j);if(!L[d+8>>1])break _h;f=P(j,l)+f|0;n=0;while(1){g=xc(g,f,L[d+6>>1]);f=f-L[d+6>>1]|0;g=g-J[i+52>>2]|0;n=n+1|0;if(n>>>0>1])continue;break}}tE(i)}fc=d+16|0;if(e)break b;of(a+72|0,i+72|0);kc[J[J[b>>2]+20>>2]](b,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}d=vc(976);J[699344]=0;i=xf(d,20);e=J[699344];J[699344]=0;if((e|0)!=1)break e}a=Z()|0;uc(d);break a}J[i>>2]=46156;bk(i,a);d=0;u=fc-32|0;fc=u;v=b;e=0;$h:{if(!b)break $h; +m=kd(1,712);ai:{if(!m){Ad(i+72|0,43406,255);uO(0);break ai}J[m+4>>2]=v;J[u+28>>2]=233;J[u+24>>2]=234;J[u+20>>2]=235;J[m+8>>2]=u+20;Ea=m,Fa=kc[J[J[v>>2]+28>>2]](v)|0,J[Ea+24>>2]=Fa;s=0;bi:{if(J[m+24>>2]>0)while(1){ci:{di:switch(J[m+32>>2]){case 0:b=fc-32|0;fc=b;e=-5;ei:{fi:{gi:{hi:{ii:{ji:{ki:{if((gf(m,b+6|0,26)|0)!=26)break ki;e=-200;if((K[b+6|0]|K[b+7|0]<<8|(K[b+8|0]<<16|K[b+9|0]<<24))!=1397768760)break ki;e=-201;f=K[b+10|0]|K[b+11|0]<<8;if(((f<<8|f>>>8)&65535)!=1)break ki;e=K[b+20|0]|K[b+21|0]<< 8|(K[b+22|0]<<16|K[b+23|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);J[m+44>>2]=e;if(e-1>>>0>=3E4)break ji;e=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);J[m+40>>2]=e;if(e-1>>>0>=3E4)break ii;e=K[b+18|0]|K[b+19|0]<<8;e=e<<8|e>>>8;I[m+356>>1]=e;I[m+48>>1]=e;if((e-1&65535)>>>0>=56)break hi;e=K[b+28|0]|K[b+29|0]<<8;e=e<<8|e>>>8;I[m+50>>1]=e;e=e&65535;if(e>>>0>16|!(1<>>8;J[m+52>>2]=e<<16>>16;f= -e&65535;if(f>>>0>=10)break fi;e=0;if(!(927>>>f&1))break fi}bc=b+32|0;break ei}fa(220471,220703,66,221356);B()}fa(221765,220703,71,221356);B()}fa(222E3,220703,76,221356);B()}fa(222573,220703,81,221356);B()}fa(223081,220703,115,221356);B()}if(!e){x=J[m+36>>2]==1?5:1;break ci}s=(e|0)==-3?-10:e;break bi;case 1:x=2;e=Ac(m);J[m+56>>2]=e;b=0;li:{if((e|0)<=0)break li;b=(e>>>0)/3|0;J[m+56>>2]=b;Ea=m,Fa=zc(b<<2),J[Ea+60>>2]=Fa;b=zc(P(J[m+56>>2],3));f=J[m+60>>2];if(!(b?f:0)){qc(f);J[m+60>>2]=0;qc(b);b=-4;break li}e= -J[m+56>>2];mi:{if((e|0)<=0)break mi;J[f>>2]=-65794;if((e|0)==1)break mi;l=(e<<2)-4|0;e=4;while(1){tc(e+f|0,f,(e|0)>(l|0)?l:e);l=l-e|0;e=e<<1;if((l|0)>0)continue;break}}af(m,b,P(J[m+56>>2],3));f=J[m+56>>2];ni:{if(!f)break ni;h=b+f|0;l=f+h|0;q=J[m+60>>2];oi:{if(!(f&1)){o=b;e=f;break oi}J[q>>2]=K[l|0]|(K[b|0]<<16|K[h|0]<<8)|-16777216;q=q+4|0;l=l+1|0;h=h+1|0;o=b+1|0;e=f-1|0}if((f|0)==1)break ni;while(1){J[q>>2]=K[l|0]|(K[o|0]<<16|K[h|0]<<8)|-16777216;J[q+4>>2]=K[l+1|0]|(K[o+1|0]<<16|K[h+1|0]<<8)|-16777216; -q=q+8|0;l=l+2|0;h=h+2|0;o=o+2|0;e=e-2|0;if(e)continue;break}}qc(b);b=0}if(!b)break ci;s=(b|0)==-3?-11:b;break bi;case 2:x=3;j=0;q=Ac(m);pi:{if((q|0)<=0)break pi;J[m+452>>2]=30;J[m+456>>2]=30;o=m- -64|0;while(1){j=-400;if((Ac(m)|0)!=943868237)break pi;f=Tc(m);p=pf(m)|1;te(m,p);b=Ac(m);e=(b&1)+b|0;qi:{ri:{si:{ti:{ui:{vi:{wi:{xi:{g=J[m+36>>2];switch(g-3|0){case 2:break vi;case 0:break wi;case 1:break xi;default:break ti}}b=e;switch((f&65535)-1033|0){case 0:case 3:break ti;default:break si}}b=e;l=f&65535; -switch(l-1045|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:break si;case 0:case 8:break ti;default:break ui}}b=e;if((f-1060&65535)>>>0<65534)break si;break ti}if((l|0)!=1006)break si}if((e|0)<=0)break ri;k=J[m+28>>2];yi:{zi:{Ai:{Bi:{Ci:{Di:{Ei:{Fi:{Gi:switch((f&65535)-1005|0){case 0:Ea=m,La=Q(Q(Ac(m)|0)*Q(1.52587890625E-5)),N[Ea+324>>2]=La;Ea=m,Fa=Tc(m),I[Ea+328>>1]=Fa;Ea=m,Fa=Tc(m),I[Ea+330>>1]=Fa;Ea=m,La=Q(Q(Ac(m)|0)*Q(1.52587890625E-5)),N[Ea+332>>2]=La;Ea=m,Fa=Tc(m),I[Ea+336>>1]=Fa;b=Tc(m); -H[m+320|0]=1;I[m+338>>1]=b;break yi;case 1:l=zc(e);if(!l)break Ei;af(m,l,e);h=L[m+354>>1];if(!h){b=0;j=0;if(e>>>0>=2)while(1){f=K[j+l|0];b=b+1|0;I[m+354>>1]=b;f=f+j|0;j=f+1|0;if((e|0)>(f+2|0))continue;break}I[m+356>>1]=L[m+48>>1]-b;b=zc(P(b<<16>>16,272));J[m+360>>2]=b;if(!b)break Fi;wc(b,0,P(I[m+354>>1],272));h=L[m+354>>1]}j=0;b=0;if(h<<16>>16<=0)break zi;while(1){f=b+l|0;tc(J[m+360>>2]+P(j,272)|0,f+1|0,K[f|0]);b=(K[f|0]+b|0)+1|0;j=j+1|0;if((j|0)>1])continue;break}break zi;case 2:Ea=m,Fa= -Bi(m),J[Ea+344>>2]=Fa;b=Tc(m);I[m+348>>1]=b;if(b>>>0>=101)break Di;Ea=m,Fa=pf(m),H[Ea+350|0]=Fa;pf(m);H[m+340|0]=1;break yi;case 3:af(m,o,pf(m));break yi;case 19:Ea=m,Fa=Tc(m),I[Ea+364>>1]=Fa;break yi;case 21:J[m+368>>2]=e>>>1;b=zc(e&-2);J[m+372>>2]=b;if(!b)break Ei;j=0;if(J[m+368>>2]>0)while(1){b=Tc(m);I[J[m+372>>2]+(j<<1)>>1]=b;j=j+1|0;if((j|0)>2])continue;break}H[m+366|0]=1;break yi;case 28:case 31:b=e;if((g|0)==2)break si;f=Ac(m);J[m+380>>2]=f;if(f>>>0>=2)break Ci;Ea=m,Fa=Ac(m),J[Ea+ -384>>2]=Fa;Ea=m,Fa=Ac(m),J[Ea+388>>2]=Fa;Ea=m,Fa=Ac(m),J[Ea+392>>2]=Fa;Ea=m,Fa=Ac(m),J[Ea+396>>2]=Fa;Ea=m,Fa=Ac(m),J[Ea+400>>2]=Fa;f=Tc(m);I[m+404>>1]=f;if((f|0)!=24)break Bi;f=Tc(m);I[m+406>>1]=f;if((f|0)!=1)break Ai;f=e-28|0;b=zc(f);J[m+408>>2]=b;if(!b)break Ei;af(m,b,f);H[m+376|0]=1;break yi;case 29:b=Tc(m);H[m+448|0]=b;if(!(b&254))break yi;fa(222640,220287,273,223175);B();case 32:Ea=m,Fa=Ac(m),J[Ea+452>>2]=Fa;break yi;case 37:b=Tc(m);H[m+460|0]=b;if(!(b&254))break yi;fa(223008,220287,288,223175); -B();case 40:l=zc(e);if(!l)break Ei;af(m,l,e);b=L[m+354>>1];if(!b){h=0;b=0;while(1){f=b+l|0;f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);h=h+1|0;I[m+354>>1]=h;b=(((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))<<1)+b|0)+4|0;if((e|0)>(b|0))continue;break}I[m+356>>1]=L[m+48>>1]-h;b=zc(P(h<<16>>16,272));J[m+360>>2]=b;if(!b)break Fi;wc(b,0,P(I[m+354>>1],272));b=L[m+354>>1]}if(b<<16>>16<=0)break zi;j=J[m+360>>2];b=0;h=0;while(1){n=P(b,272);f=h+l|0;g=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);g=g<<24| -(g&65280)<<8|(g>>>8&65280|g>>>24);J[(n+j|0)+256>>2]=g;g=zc(g<<1);j=n+J[m+360>>2]|0;J[j+260>>2]=g;if(!g)break Fi;tc(g,f+4|0,J[j+256>>2]<<1);j=J[m+360>>2];h=((J[(n+j|0)+256>>2]<<1)+h|0)+4|0;b=b+1|0;if((b|0)>1])continue;break}break zi;case 41:Ea=m,Fa=Tc(m),I[Ea+462>>1]=Fa;break yi;case 42:Ea=m,Fa=Tc(m),I[Ea+464>>1]=Fa;break yi;case 44:Ea=m,Fa=Ac(m),J[Ea+456>>2]=Fa;break yi;case 48:b=L[m+354>>1];if(!b){b=e>>>2|0;I[m+354>>1]=b;I[m+356>>1]=L[m+48>>1]-b;b=zc(P(b<<16>>16,272));J[m+360>>2]=b;if(!b)break Ei; -wc(b,0,P(I[m+354>>1],272));b=L[m+354>>1]}j=0;if(b<<16>>16>0)while(1){b=Ac(m);J[(J[m+360>>2]+P(j,272)|0)+264>>2]=b;j=j+1|0;if((j|0)>1])continue;break}H[m+352|0]=1;break yi;case 52:Ea=m,Fa=Ac(m),J[Ea+420>>2]=Fa;Ea=m,Fa=me(m),H[Ea+424|0]=Fa;b=Ac(m);J[m+428>>2]=b;b=zc(b<<1);J[m+432>>2]=b;j=-4;if(!b)break qi;af(m,b,J[m+428>>2]<<1);b=Ac(m);J[m+436>>2]=b;b=zc(b<<1);J[m+440>>2]=b;if(!b)break qi;af(m,b,J[m+436>>2]<<1);b=Ac(m);H[m+416|0]=1;J[m+444>>2]=b;break yi;default:break Gi}te(m,e);break yi}qc(l)}j= --4;break qi}fa(219286,220287,182,223175);B()}fa(221001,220287,229,223175);B()}fa(221589,220287,242,223175);B()}fa(222146,220287,245,223175);B()}qc(l);H[m+352|0]=1}b=(e+k|0)-J[m+28>>2]|0}te(m,b)}j=0;q=(((p^-1)+q|0)-e|0)-10|0;if((q|0)>0)continue}break}}if(!j)break ci;s=(j|0)==-3?-12:j;break bi;case 3:x=4;e=0;b=Ac(m);if((b|0)>0)Hi:{Ii:{if(J[m+36>>2]-3>>>0<3)break Ii;f=J[m+28>>2];e=K7(m);Gc(J[m+684>>2]);J[m+684>>2]=0;J[m+688>>2]=0;Gc(J[m+692>>2]);J[m+692>>2]=0;J[m+696>>2]=0;if(e)break Hi;e=Ac(m);if(e){g= -J[m+28>>2];Ea=m,Fa=Bi(m),J[Ea+640>>2]=Fa;Ea=m,Fa=Tc(m),I[Ea+644>>1]=Fa;Ea=m,Fa=pf(m),H[Ea+646|0]=Fa;te(m,(e+g|0)-J[m+28>>2]|0)}e=0;G=b+f|0;b=G-J[m+28>>2]|0;if((b|0)<13)break Ii;while(1){if((Ac(m)|0)!=943868237){b=G-J[m+28>>2]|0;break Ii}f=Ac(m);Ji:{if((f|0)==1282552118){e=K7(m);break Ji}b=Ac(m);if(!((f|0)!=1348564084&(f|0)!=1348564018)){if((b|0)>=4){h=J[m+28>>2];while(1){e=0;q=0;t=0;y=0;l=Ac(m);D=J[m+28>>2];j=-531;Ki:{Li:{if((Ac(m)|0)!=1)break Li;Mi:{f=J[m+652>>2];g=J[m+648>>2];if((f|0)<(g|0)){o= -J[m+656>>2];break Mi}g=(g|0)<=2?4:g<<1;J[m+648>>2]=g;o=Kh(J[m+656>>2],P(g,296));J[m+656>>2]=o;if(o)break Mi;e=-4;break Ki}k=wc(P(f,296)+o|0,0,296);g=Ac(m);J[k>>2]=g;if(!(1<>>0<=9:0)){fa(219530,219960,563,224842);B()}n=P(f,296)+o|0;Ea=n,Fa=Tc(m),I[Ea+4>>1]=Fa;Ea=n,Fa=Tc(m),I[Ea+6>>1]=Fa;g=Ac(m);J[n+8>>2]=g;g=zc(g<<1);J[n+12>>2]=g;j=-4;if(!g)break Li;af(m,g,J[n+8>>2]<<1);af(m,n+16|0,pf(m));if(J[k>>2]==2){q=zc(1024);if(!q)break Li;j=0;while(1){g=pf(m);Ea=(j<<2)+q|0,Fa=pf(m)<<8|g<<16|pf(m)|-16777216, -J[Ea>>2]=Fa;j=j+1|0;if((j|0)!=256)continue;break}}F=l+3&-4;r=P(f,296)+o|0;Ea=r,Fa=Ac(m),J[Ea+272>>2]=Fa;Ac(m);Ea=r,Fa=Ac(m),I[Ea+276>>1]=Fa;Ea=r,Fa=Ac(m),I[Ea+278>>1]=Fa;Ea=r,Fa=Ac(m),I[Ea+280>>1]=Fa;Ea=r,Fa=Ac(m),I[Ea+282>>1]=Fa;Ni:{oa=Ac(m);Oi:{Pi:{if((oa|0)<=0)break Pi;W=D+F|0;while(1){f=Ac(m);g=Ac(m);Qi:{if((g|0)<=22){if((W-J[m+28>>2]|0)>=13)break Qi;break Pi}l=(f&255)!=1;Ri:{if(!l){j=J[r+288>>2];f=Ac(m);if(!j){e=f;break Ri}if((e|0)==(f|0))break Ri;fa(221274,219960,640,224842);B()}Ac(m)}f=g-23| -0;te(m,18);o=pf(m);Si:{if(!l){Ti:{if(J[r+288>>2])break Ti;g=I[n+4>>1];l=I[n+6>>1];t=P(g,l);j=t;Ui:{Vi:switch(L[m+50>>1]-1|0){case 15:t=t<<1;j=t;break Ui;default:fa(219530,219960,669,224842);B();case 7:break Ui;case 0:break Vi}j=P(g,(l+7|0)/8|0)}J[m+700>>2]=j;Wi:{Xi:switch(J[k>>2]-1|0){case 0:case 7:j=j<<1;break Wi;case 3:j=P(j,5);break Wi;case 2:case 6:case 8:break Xi;default:break Wi}j=j<<2}if(J[m+688>>2]>=(j|0))break Ti;Gc(J[m+684>>2]);g=J[m+688>>2]<<1;g=(g|0)>(j|0)?g:j;J[m+688>>2]=g;g=zc(g);J[m+ -684>>2]=g;if(g)break Ti;J[m+688>>2]=0;break Oi}j=J[m+692>>2];Yi:{if((f|0)<=J[m+696>>2])break Yi;Gc(j);g=J[m+696>>2]<<1;g=(f|0)<(g|0)?g:f;J[m+696>>2]=g;j=zc(g);J[m+692>>2]=j;if(j)break Yi;J[m+696>>2]=0;break Oi}if((af(m,j,f)|0)!=(f|0)){Gc(q);e=-5;break Ki}g=J[m+700>>2];p=J[m+684>>2]+P(g,J[r+288>>2])|0;Zi:{_i:switch(o|0){case 1:$i:switch(L[m+50>>1]-8|0){default:fa(221397,219960,751,224842);B();case 0:case 8:break $i}f=L[n+4>>1];o=f<<16>>16;aj:{if((o|0)<=0){w=0;break aj}A=J[m+692>>2];j=A+(f<<1)|0;w= -0;E=0;while(1){f=0;g=K[A|0]|K[A+1|0]<<8;ea=(g<<8|g>>>8)<<16>>16;if((ea|0)>0){while(1){l=f+1|0;g=j+1|0;o=K[j|0];S=o<<24>>24;bj:{if((S|0)>=0){f=l;l=o+1|0;f=f+l|0;p=tc(p,g,l)+l|0;w=l+w|0;g=g+l|0;break bj}if((S|0)==-128){f=l;break bj}f=f+2|0;g=257-o|0;p=wc(p,K[j+1|0],g)+g|0;w=g+w|0;g=j+2|0}j=g;if((f|0)<(ea|0))continue;break}o=L[n+4>>1]}A=A+2|0;E=E+1|0;if((E|0)>16)continue;break}}if((t|0)==(w|0))break Zi;fa(221967,219960,793,224842);B();case 2:j=$M(J[m+692>>2],f,p,t);if(!j)break Zi;break Li;case 3:j= -_M(J[m+692>>2],f,p,t,I[n+6>>1],L[m+50>>1]);if(!j)break Zi;break Li;default:fa(219530,219960,820,224842);B();case 0:break _i}tc(p,J[m+692>>2],g)}J[r+288>>2]=J[r+288>>2]+1;break Si}if(g>>>0<24)break Si;te(m,f)}if((W-J[m+28>>2]|0)<13)break Pi}y=y+1|0;if((oa|0)!=(y|0))continue;break}}j=zc(P(I[n+6>>1],I[n+4>>1])<<2);J[r+292>>2]=j;if(j)break Ni}Gc(q);e=-4;break Ki}cj:{dj:{ej:switch(J[k>>2]){case 0:if((e|0)==1){n=J[m+684>>2];j=0;o=(J[m+40>>2]+7|0)/8|0;p=I[k+4>>1];fj:{if((p|0)<=0)break fj;g=I[k+6>>1];if((g| -0)<=0)break fj;r=g&-2;t=g&1;l=J[k+292>>2];while(1){f=n+P(j,o)|0;e=128;k=0;if((g|0)!=1)while(1){J[l>>2]=K[f|0]&e?-16777216:-1;w=e>>>0<2;e=w?128:e>>1;f=f+w|0;J[l+4>>2]=e&K[f|0]?-16777216:-1;w=e>>>0<2;e=w?128:e>>1;f=f+w|0;l=l+8|0;k=k+2|0;if((r|0)!=(k|0))continue;break}if(t){J[l>>2]=K[f|0]&e?-16777216:-1;l=l+4|0}j=j+1|0;if((p|0)!=(j|0))continue;break}}break cj}fa(219530,219960,851,224842);B();case 1:case 8:gj:switch(L[m+50>>1]-8|0){case 8:f=0;g=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];hj:{if(J[k+288>>2]== +e&65535;if(f>>>0>=10)break fi;e=0;if(!(927>>>f&1))break fi}fc=b+32|0;break ei}fa(220487,220719,66,221372);B()}fa(221781,220719,71,221372);B()}fa(222016,220719,76,221372);B()}fa(222589,220719,81,221372);B()}fa(223097,220719,115,221372);B()}if(!e){x=J[m+36>>2]==1?5:1;break ci}s=(e|0)==-3?-10:e;break bi;case 1:x=2;e=Fc(m);J[m+56>>2]=e;b=0;li:{if((e|0)<=0)break li;b=(e>>>0)/3|0;J[m+56>>2]=b;Ea=m,Fa=Dc(b<<2),J[Ea+60>>2]=Fa;b=Dc(P(J[m+56>>2],3));f=J[m+60>>2];if(!(b?f:0)){uc(f);J[m+60>>2]=0;uc(b);b=-4;break li}e= +J[m+56>>2];mi:{if((e|0)<=0)break mi;J[f>>2]=-65794;if((e|0)==1)break mi;l=(e<<2)-4|0;e=4;while(1){xc(e+f|0,f,(e|0)>(l|0)?l:e);l=l-e|0;e=e<<1;if((l|0)>0)continue;break}}gf(m,b,P(J[m+56>>2],3));f=J[m+56>>2];ni:{if(!f)break ni;h=b+f|0;l=f+h|0;q=J[m+60>>2];oi:{if(!(f&1)){o=b;e=f;break oi}J[q>>2]=K[l|0]|(K[b|0]<<16|K[h|0]<<8)|-16777216;q=q+4|0;l=l+1|0;h=h+1|0;o=b+1|0;e=f-1|0}if((f|0)==1)break ni;while(1){J[q>>2]=K[l|0]|(K[o|0]<<16|K[h|0]<<8)|-16777216;J[q+4>>2]=K[l+1|0]|(K[o+1|0]<<16|K[h+1|0]<<8)|-16777216; +q=q+8|0;l=l+2|0;h=h+2|0;o=o+2|0;e=e-2|0;if(e)continue;break}}uc(b);b=0}if(!b)break ci;s=(b|0)==-3?-11:b;break bi;case 2:x=3;j=0;q=Fc(m);pi:{if((q|0)<=0)break pi;J[m+452>>2]=30;J[m+456>>2]=30;o=m- -64|0;while(1){j=-400;if((Fc(m)|0)!=943868237)break pi;f=ad(m);p=wf(m)|1;Be(m,p);b=Fc(m);e=(b&1)+b|0;qi:{ri:{si:{ti:{ui:{vi:{wi:{xi:{g=J[m+36>>2];switch(g-3|0){case 2:break vi;case 0:break wi;case 1:break xi;default:break ti}}b=e;switch((f&65535)-1033|0){case 0:case 3:break ti;default:break si}}b=e;l=f&65535; +switch(l-1045|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:break si;case 0:case 8:break ti;default:break ui}}b=e;if((f-1060&65535)>>>0<65534)break si;break ti}if((l|0)!=1006)break si}if((e|0)<=0)break ri;k=J[m+28>>2];yi:{zi:{Ai:{Bi:{Ci:{Di:{Ei:{Fi:{Gi:switch((f&65535)-1005|0){case 0:Ea=m,La=Q(Q(Fc(m)|0)*Q(1.52587890625E-5)),N[Ea+324>>2]=La;Ea=m,Fa=ad(m),I[Ea+328>>1]=Fa;Ea=m,Fa=ad(m),I[Ea+330>>1]=Fa;Ea=m,La=Q(Q(Fc(m)|0)*Q(1.52587890625E-5)),N[Ea+332>>2]=La;Ea=m,Fa=ad(m),I[Ea+336>>1]=Fa;b=ad(m); +H[m+320|0]=1;I[m+338>>1]=b;break yi;case 1:l=Dc(e);if(!l)break Ei;gf(m,l,e);h=L[m+354>>1];if(!h){b=0;j=0;if(e>>>0>=2)while(1){f=K[j+l|0];b=b+1|0;I[m+354>>1]=b;f=f+j|0;j=f+1|0;if((e|0)>(f+2|0))continue;break}I[m+356>>1]=L[m+48>>1]-b;b=Dc(P(b<<16>>16,272));J[m+360>>2]=b;if(!b)break Fi;Ac(b,0,P(I[m+354>>1],272));h=L[m+354>>1]}j=0;b=0;if(h<<16>>16<=0)break zi;while(1){f=b+l|0;xc(J[m+360>>2]+P(j,272)|0,f+1|0,K[f|0]);b=(K[f|0]+b|0)+1|0;j=j+1|0;if((j|0)>1])continue;break}break zi;case 2:Ea=m,Fa= +Ri(m),J[Ea+344>>2]=Fa;b=ad(m);I[m+348>>1]=b;if(b>>>0>=101)break Di;Ea=m,Fa=wf(m),H[Ea+350|0]=Fa;wf(m);H[m+340|0]=1;break yi;case 3:gf(m,o,wf(m));break yi;case 19:Ea=m,Fa=ad(m),I[Ea+364>>1]=Fa;break yi;case 21:J[m+368>>2]=e>>>1;b=Dc(e&-2);J[m+372>>2]=b;if(!b)break Ei;j=0;if(J[m+368>>2]>0)while(1){b=ad(m);I[J[m+372>>2]+(j<<1)>>1]=b;j=j+1|0;if((j|0)>2])continue;break}H[m+366|0]=1;break yi;case 28:case 31:b=e;if((g|0)==2)break si;f=Fc(m);J[m+380>>2]=f;if(f>>>0>=2)break Ci;Ea=m,Fa=Fc(m),J[Ea+ +384>>2]=Fa;Ea=m,Fa=Fc(m),J[Ea+388>>2]=Fa;Ea=m,Fa=Fc(m),J[Ea+392>>2]=Fa;Ea=m,Fa=Fc(m),J[Ea+396>>2]=Fa;Ea=m,Fa=Fc(m),J[Ea+400>>2]=Fa;f=ad(m);I[m+404>>1]=f;if((f|0)!=24)break Bi;f=ad(m);I[m+406>>1]=f;if((f|0)!=1)break Ai;f=e-28|0;b=Dc(f);J[m+408>>2]=b;if(!b)break Ei;gf(m,b,f);H[m+376|0]=1;break yi;case 29:b=ad(m);H[m+448|0]=b;if(!(b&254))break yi;fa(222656,220303,273,223191);B();case 32:Ea=m,Fa=Fc(m),J[Ea+452>>2]=Fa;break yi;case 37:b=ad(m);H[m+460|0]=b;if(!(b&254))break yi;fa(223024,220303,288,223191); +B();case 40:l=Dc(e);if(!l)break Ei;gf(m,l,e);b=L[m+354>>1];if(!b){h=0;b=0;while(1){f=b+l|0;f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);h=h+1|0;I[m+354>>1]=h;b=(((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))<<1)+b|0)+4|0;if((e|0)>(b|0))continue;break}I[m+356>>1]=L[m+48>>1]-h;b=Dc(P(h<<16>>16,272));J[m+360>>2]=b;if(!b)break Fi;Ac(b,0,P(I[m+354>>1],272));b=L[m+354>>1]}if(b<<16>>16<=0)break zi;j=J[m+360>>2];b=0;h=0;while(1){n=P(b,272);f=h+l|0;g=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);g=g<<24| +(g&65280)<<8|(g>>>8&65280|g>>>24);J[(n+j|0)+256>>2]=g;g=Dc(g<<1);j=n+J[m+360>>2]|0;J[j+260>>2]=g;if(!g)break Fi;xc(g,f+4|0,J[j+256>>2]<<1);j=J[m+360>>2];h=((J[(n+j|0)+256>>2]<<1)+h|0)+4|0;b=b+1|0;if((b|0)>1])continue;break}break zi;case 41:Ea=m,Fa=ad(m),I[Ea+462>>1]=Fa;break yi;case 42:Ea=m,Fa=ad(m),I[Ea+464>>1]=Fa;break yi;case 44:Ea=m,Fa=Fc(m),J[Ea+456>>2]=Fa;break yi;case 48:b=L[m+354>>1];if(!b){b=e>>>2|0;I[m+354>>1]=b;I[m+356>>1]=L[m+48>>1]-b;b=Dc(P(b<<16>>16,272));J[m+360>>2]=b;if(!b)break Ei; +Ac(b,0,P(I[m+354>>1],272));b=L[m+354>>1]}j=0;if(b<<16>>16>0)while(1){b=Fc(m);J[(J[m+360>>2]+P(j,272)|0)+264>>2]=b;j=j+1|0;if((j|0)>1])continue;break}H[m+352|0]=1;break yi;case 52:Ea=m,Fa=Fc(m),J[Ea+420>>2]=Fa;Ea=m,Fa=ue(m),H[Ea+424|0]=Fa;b=Fc(m);J[m+428>>2]=b;b=Dc(b<<1);J[m+432>>2]=b;j=-4;if(!b)break qi;gf(m,b,J[m+428>>2]<<1);b=Fc(m);J[m+436>>2]=b;b=Dc(b<<1);J[m+440>>2]=b;if(!b)break qi;gf(m,b,J[m+436>>2]<<1);b=Fc(m);H[m+416|0]=1;J[m+444>>2]=b;break yi;default:break Gi}Be(m,e);break yi}uc(l)}j= +-4;break qi}fa(219302,220303,182,223191);B()}fa(221017,220303,229,223191);B()}fa(221605,220303,242,223191);B()}fa(222162,220303,245,223191);B()}uc(l);H[m+352|0]=1}b=(e+k|0)-J[m+28>>2]|0}Be(m,b)}j=0;q=(((p^-1)+q|0)-e|0)-10|0;if((q|0)>0)continue}break}}if(!j)break ci;s=(j|0)==-3?-12:j;break bi;case 3:x=4;e=0;b=Fc(m);if((b|0)>0)Hi:{Ii:{if(J[m+36>>2]-3>>>0<3)break Ii;f=J[m+28>>2];e=M9(m);Mc(J[m+684>>2]);J[m+684>>2]=0;J[m+688>>2]=0;Mc(J[m+692>>2]);J[m+692>>2]=0;J[m+696>>2]=0;if(e)break Hi;e=Fc(m);if(e){g= +J[m+28>>2];Ea=m,Fa=Ri(m),J[Ea+640>>2]=Fa;Ea=m,Fa=ad(m),I[Ea+644>>1]=Fa;Ea=m,Fa=wf(m),H[Ea+646|0]=Fa;Be(m,(e+g|0)-J[m+28>>2]|0)}e=0;G=b+f|0;b=G-J[m+28>>2]|0;if((b|0)<13)break Ii;while(1){if((Fc(m)|0)!=943868237){b=G-J[m+28>>2]|0;break Ii}f=Fc(m);Ji:{if((f|0)==1282552118){e=M9(m);break Ji}b=Fc(m);if(!((f|0)!=1348564084&(f|0)!=1348564018)){if((b|0)>=4){h=J[m+28>>2];while(1){e=0;q=0;t=0;y=0;l=Fc(m);D=J[m+28>>2];j=-531;Ki:{Li:{if((Fc(m)|0)!=1)break Li;Mi:{f=J[m+652>>2];g=J[m+648>>2];if((f|0)<(g|0)){o= +J[m+656>>2];break Mi}g=(g|0)<=2?4:g<<1;J[m+648>>2]=g;o=Yh(J[m+656>>2],P(g,296));J[m+656>>2]=o;if(o)break Mi;e=-4;break Ki}k=Ac(P(f,296)+o|0,0,296);g=Fc(m);J[k>>2]=g;if(!(1<>>0<=9:0)){fa(219546,219976,563,224858);B()}n=P(f,296)+o|0;Ea=n,Fa=ad(m),I[Ea+4>>1]=Fa;Ea=n,Fa=ad(m),I[Ea+6>>1]=Fa;g=Fc(m);J[n+8>>2]=g;g=Dc(g<<1);J[n+12>>2]=g;j=-4;if(!g)break Li;gf(m,g,J[n+8>>2]<<1);gf(m,n+16|0,wf(m));if(J[k>>2]==2){q=Dc(1024);if(!q)break Li;j=0;while(1){g=wf(m);Ea=(j<<2)+q|0,Fa=wf(m)<<8|g<<16|wf(m)|-16777216, +J[Ea>>2]=Fa;j=j+1|0;if((j|0)!=256)continue;break}}F=l+3&-4;r=P(f,296)+o|0;Ea=r,Fa=Fc(m),J[Ea+272>>2]=Fa;Fc(m);Ea=r,Fa=Fc(m),I[Ea+276>>1]=Fa;Ea=r,Fa=Fc(m),I[Ea+278>>1]=Fa;Ea=r,Fa=Fc(m),I[Ea+280>>1]=Fa;Ea=r,Fa=Fc(m),I[Ea+282>>1]=Fa;Ni:{oa=Fc(m);Oi:{Pi:{if((oa|0)<=0)break Pi;W=D+F|0;while(1){f=Fc(m);g=Fc(m);Qi:{if((g|0)<=22){if((W-J[m+28>>2]|0)>=13)break Qi;break Pi}l=(f&255)!=1;Ri:{if(!l){j=J[r+288>>2];f=Fc(m);if(!j){e=f;break Ri}if((e|0)==(f|0))break Ri;fa(221290,219976,640,224858);B()}Fc(m)}f=g-23| +0;Be(m,18);o=wf(m);Si:{if(!l){Ti:{if(J[r+288>>2])break Ti;g=I[n+4>>1];l=I[n+6>>1];t=P(g,l);j=t;Ui:{Vi:switch(L[m+50>>1]-1|0){case 15:t=t<<1;j=t;break Ui;default:fa(219546,219976,669,224858);B();case 7:break Ui;case 0:break Vi}j=P(g,(l+7|0)/8|0)}J[m+700>>2]=j;Wi:{Xi:switch(J[k>>2]-1|0){case 0:case 7:j=j<<1;break Wi;case 3:j=P(j,5);break Wi;case 2:case 6:case 8:break Xi;default:break Wi}j=j<<2}if(J[m+688>>2]>=(j|0))break Ti;Mc(J[m+684>>2]);g=J[m+688>>2]<<1;g=(g|0)>(j|0)?g:j;J[m+688>>2]=g;g=Dc(g);J[m+ +684>>2]=g;if(g)break Ti;J[m+688>>2]=0;break Oi}j=J[m+692>>2];Yi:{if((f|0)<=J[m+696>>2])break Yi;Mc(j);g=J[m+696>>2]<<1;g=(f|0)<(g|0)?g:f;J[m+696>>2]=g;j=Dc(g);J[m+692>>2]=j;if(j)break Yi;J[m+696>>2]=0;break Oi}if((gf(m,j,f)|0)!=(f|0)){Mc(q);e=-5;break Ki}g=J[m+700>>2];p=J[m+684>>2]+P(g,J[r+288>>2])|0;Zi:{_i:switch(o|0){case 1:$i:switch(L[m+50>>1]-8|0){default:fa(221413,219976,751,224858);B();case 0:case 8:break $i}f=L[n+4>>1];o=f<<16>>16;aj:{if((o|0)<=0){w=0;break aj}A=J[m+692>>2];j=A+(f<<1)|0;w= +0;E=0;while(1){f=0;g=K[A|0]|K[A+1|0]<<8;ea=(g<<8|g>>>8)<<16>>16;if((ea|0)>0){while(1){l=f+1|0;g=j+1|0;o=K[j|0];S=o<<24>>24;bj:{if((S|0)>=0){f=l;l=o+1|0;f=f+l|0;p=xc(p,g,l)+l|0;w=l+w|0;g=g+l|0;break bj}if((S|0)==-128){f=l;break bj}f=f+2|0;g=257-o|0;p=Ac(p,K[j+1|0],g)+g|0;w=g+w|0;g=j+2|0}j=g;if((f|0)<(ea|0))continue;break}o=L[n+4>>1]}A=A+2|0;E=E+1|0;if((E|0)>16)continue;break}}if((t|0)==(w|0))break Zi;fa(221983,219976,793,224858);B();case 2:j=tO(J[m+692>>2],f,p,t);if(!j)break Zi;break Li;case 3:j= +sO(J[m+692>>2],f,p,t,I[n+6>>1],L[m+50>>1]);if(!j)break Zi;break Li;default:fa(219546,219976,820,224858);B();case 0:break _i}xc(p,J[m+692>>2],g)}J[r+288>>2]=J[r+288>>2]+1;break Si}if(g>>>0<24)break Si;Be(m,f)}if((W-J[m+28>>2]|0)<13)break Pi}y=y+1|0;if((oa|0)!=(y|0))continue;break}}j=Dc(P(I[n+6>>1],I[n+4>>1])<<2);J[r+292>>2]=j;if(j)break Ni}Mc(q);e=-4;break Ki}cj:{dj:{ej:switch(J[k>>2]){case 0:if((e|0)==1){n=J[m+684>>2];j=0;o=(J[m+40>>2]+7|0)/8|0;p=I[k+4>>1];fj:{if((p|0)<=0)break fj;g=I[k+6>>1];if((g| +0)<=0)break fj;r=g&-2;t=g&1;l=J[k+292>>2];while(1){f=n+P(j,o)|0;e=128;k=0;if((g|0)!=1)while(1){J[l>>2]=K[f|0]&e?-16777216:-1;w=e>>>0<2;e=w?128:e>>1;f=f+w|0;J[l+4>>2]=e&K[f|0]?-16777216:-1;w=e>>>0<2;e=w?128:e>>1;f=f+w|0;l=l+8|0;k=k+2|0;if((r|0)!=(k|0))continue;break}if(t){J[l>>2]=K[f|0]&e?-16777216:-1;l=l+4|0}j=j+1|0;if((p|0)!=(j|0))continue;break}}break cj}fa(219546,219976,851,224858);B();case 1:case 8:gj:switch(L[m+50>>1]-8|0){case 8:f=0;g=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];hj:{if(J[k+288>>2]== 2){if(!g)break hj;j=J[m+684>>2];e=j+J[m+700>>2]|0;if(g&1){f=K[e|0];J[n>>2]=K[j|0]<<24|f<<16|f<<8|f;e=e+2|0;j=j+2|0;n=n+4|0;f=g-1|0}else f=g;if((g|0)==1)break hj;while(1){g=K[e|0];J[n>>2]=K[j|0]<<24|g<<16|g<<8|g;g=K[e+2|0];J[n+4>>2]=K[j+2|0]<<24|g<<16|g<<8|g;e=e+4|0;j=j+4|0;n=n+8|0;f=f-2|0;if(f)continue;break}break hj}if(!g)break hj;j=J[m+684>>2];l=g&3;ij:{if(!l){e=g;break ij}e=g;while(1){J[n>>2]=P(K[j|0],65793)|-16777216;j=j+2|0;n=n+4|0;e=e-1|0;f=f+1|0;if((l|0)!=(f|0))continue;break}}if(g>>>0<4)break hj; -while(1){J[n>>2]=P(K[j|0],65793)|-16777216;J[n+4>>2]=P(K[j+2|0],65793)|-16777216;J[n+8>>2]=P(K[j+4|0],65793)|-16777216;J[n+12>>2]=P(K[j+6|0],65793)|-16777216;j=j+8|0;n=n+16|0;e=e-4|0;if(e)continue;break}}break cj;case 0:break dj;default:break gj}fa(219530,219960,864,224842);B();case 2:if(L[m+50>>1]==8){e=P(I[n+4>>1],I[n+6>>1]);if(!e)break cj;f=J[m+684>>2];g=e&3;jj:{if(!g){l=e;break jj}o=0;l=e;while(1){J[j>>2]=J[(K[f|0]<<2)+q>>2];f=f+1|0;j=j+4|0;l=l-1|0;o=o+1|0;if((g|0)!=(o|0))continue;break}}if(e>>> -0<4)break cj;while(1){J[j>>2]=J[(K[f|0]<<2)+q>>2];J[j+4>>2]=J[(K[f+1|0]<<2)+q>>2];J[j+8>>2]=J[(K[f+2|0]<<2)+q>>2];J[j+12>>2]=J[(K[f+3|0]<<2)+q>>2];f=f+4|0;j=j+16|0;l=l-4|0;if(l)continue;break}break cj}fa(219530,219960,872,224842);B();case 3:kj:switch(L[m+50>>1]-8|0){case 0:g=P(I[k+4>>1],I[k+6>>1]);o=J[k+292>>2];lj:{if(J[k+288>>2]==4){if(!g)break lj;j=J[m+684>>2];e=J[m+700>>2];k=j+e|0;n=(e<<1)+j|0;e=P(e,3)+j|0;if(g&1){J[o>>2]=K[e|0]|(K[k|0]<<16|K[j|0]<<24|K[n|0]<<8);e=e+1|0;n=n+1|0;k=k+1|0;j=j+1|0; +while(1){J[n>>2]=P(K[j|0],65793)|-16777216;J[n+4>>2]=P(K[j+2|0],65793)|-16777216;J[n+8>>2]=P(K[j+4|0],65793)|-16777216;J[n+12>>2]=P(K[j+6|0],65793)|-16777216;j=j+8|0;n=n+16|0;e=e-4|0;if(e)continue;break}}break cj;case 0:break dj;default:break gj}fa(219546,219976,864,224858);B();case 2:if(L[m+50>>1]==8){e=P(I[n+4>>1],I[n+6>>1]);if(!e)break cj;f=J[m+684>>2];g=e&3;jj:{if(!g){l=e;break jj}o=0;l=e;while(1){J[j>>2]=J[(K[f|0]<<2)+q>>2];f=f+1|0;j=j+4|0;l=l-1|0;o=o+1|0;if((g|0)!=(o|0))continue;break}}if(e>>> +0<4)break cj;while(1){J[j>>2]=J[(K[f|0]<<2)+q>>2];J[j+4>>2]=J[(K[f+1|0]<<2)+q>>2];J[j+8>>2]=J[(K[f+2|0]<<2)+q>>2];J[j+12>>2]=J[(K[f+3|0]<<2)+q>>2];f=f+4|0;j=j+16|0;l=l-4|0;if(l)continue;break}break cj}fa(219546,219976,872,224858);B();case 3:kj:switch(L[m+50>>1]-8|0){case 0:g=P(I[k+4>>1],I[k+6>>1]);o=J[k+292>>2];lj:{if(J[k+288>>2]==4){if(!g)break lj;j=J[m+684>>2];e=J[m+700>>2];k=j+e|0;n=(e<<1)+j|0;e=P(e,3)+j|0;if(g&1){J[o>>2]=K[e|0]|(K[k|0]<<16|K[j|0]<<24|K[n|0]<<8);e=e+1|0;n=n+1|0;k=k+1|0;j=j+1|0; o=o+4|0;f=g-1|0}else f=g;if((g|0)==1)break lj;while(1){J[o>>2]=K[e|0]|(K[k|0]<<16|K[j|0]<<24|K[n|0]<<8);J[o+4>>2]=K[e+1|0]|(K[k+1|0]<<16|K[j+1|0]<<24|K[n+1|0]<<8);e=e+2|0;n=n+2|0;k=k+2|0;j=j+2|0;o=o+8|0;f=f-2|0;if(f)continue;break}break lj}if(!g)break lj;j=J[m+684>>2];e=J[m+700>>2];k=j+e|0;n=(e<<1)+j|0;if(g&1){J[o>>2]=K[n|0]|(K[j|0]<<16|K[k|0]<<8)|-16777216;n=n+1|0;k=k+1|0;j=j+1|0;o=o+4|0;e=g-1|0}else e=g;if((g|0)==1)break lj;while(1){J[o>>2]=K[n|0]|(K[j|0]<<16|K[k|0]<<8)|-16777216;J[o+4>>2]=K[n+ 1|0]|(K[j+1|0]<<16|K[k+1|0]<<8)|-16777216;n=n+2|0;k=k+2|0;j=j+2|0;o=o+8|0;e=e-2|0;if(e)continue;break}}break cj;case 8:g=P(I[k+4>>1],I[k+6>>1]);o=J[k+292>>2];mj:{if(J[k+288>>2]==4){if(!g)break mj;j=J[m+684>>2];e=J[m+700>>2];k=j+e|0;n=(e<<1)+j|0;e=P(e,3)+j|0;if(g&1){J[o>>2]=H[e|0]|(H[k|0]<<16|K[j|0]<<24|H[n|0]<<8);e=e+2|0;n=n+2|0;k=k+2|0;j=j+2|0;o=o+4|0;f=g-1|0}else f=g;if((g|0)==1)break mj;while(1){J[o>>2]=H[e|0]|(H[k|0]<<16|K[j|0]<<24|H[n|0]<<8);J[o+4>>2]=H[e+2|0]|(H[k+2|0]<<16|K[j+2|0]<<24|H[n+ -2|0]<<8);e=e+4|0;n=n+4|0;k=k+4|0;j=j+4|0;o=o+8|0;f=f-2|0;if(f)continue;break}break mj}if(!g)break mj;j=J[m+684>>2];e=J[m+700>>2];k=j+e|0;n=(e<<1)+j|0;if(g&1){J[o>>2]=H[n|0]|(K[j|0]<<16|H[k|0]<<8)|-16777216;n=n+2|0;k=k+2|0;j=j+2|0;o=o+4|0;e=g-1|0}else e=g;if((g|0)==1)break mj;while(1){J[o>>2]=H[n|0]|(K[j|0]<<16|H[k|0]<<8)|-16777216;J[o+4>>2]=H[n+2|0]|(K[j+2|0]<<16|H[k+2|0]<<8)|-16777216;n=n+4|0;k=k+4|0;j=j+4|0;o=o+8|0;e=e-2|0;if(e)continue;break}}break cj;default:break kj}fa(219530,219960,882,224842); -B();case 4:nj:switch(L[m+50>>1]-8|0){case 0:n=P(I[k+4>>1],I[k+6>>1]);o=J[k+292>>2];oj:{if(J[k+288>>2]==5){if(!n)break oj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;j=P(g,3)+l|0;k=(g<<2)+l|0;while(1){Ea=o,Fa=pu(K[l|0],K[e|0]^255,K[f|0]^255,K[j|0]^255,K[k|0]^255),J[Ea>>2]=Fa;k=k+1|0;j=j+1|0;f=f+1|0;e=e+1|0;l=l+1|0;o=o+4|0;n=n-1|0;if(n)continue;break}break oj}if(!n)break oj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;j=P(g,3)+l|0;while(1){Ea=o,Fa=Bl(K[l|0]^255,K[e|0]^255,K[f|0]^255,K[j|0]^ -255),J[Ea>>2]=Fa;j=j+1|0;f=f+1|0;e=e+1|0;l=l+1|0;o=o+4|0;n=n-1|0;if(n)continue;break}}break cj;case 8:n=P(I[k+4>>1],I[k+6>>1]);o=J[k+292>>2];pj:{if(J[k+288>>2]==5){if(!n)break pj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;j=P(g,3)+l|0;k=(g<<2)+l|0;while(1){Ea=o,Fa=pu(K[l|0],255-H[e|0]|0,255-H[f|0]|0,255-H[j|0]|0,255-H[k|0]|0),J[Ea>>2]=Fa;k=k+2|0;j=j+2|0;f=f+2|0;e=e+2|0;l=l+2|0;o=o+4|0;n=n-1|0;if(n)continue;break}break pj}if(!n)break pj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;j=P(g, -3)+l|0;while(1){Ea=o,Fa=Bl(255-H[l|0]|0,255-H[e|0]|0,255-H[f|0]|0,255-H[j|0]|0),J[Ea>>2]=Fa;j=j+2|0;f=f+2|0;e=e+2|0;l=l+2|0;o=o+4|0;n=n-1|0;if(n)continue;break}}break cj;default:break nj}fa(219530,219960,893,224842);B();case 9:qj:switch(L[m+50>>1]-8|0){case 0:j=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];rj:{if(J[k+288>>2]==4){if(!j)break rj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;k=P(g,3)+l|0;while(1){Ea=n,Fa=Wp(K[l|0],P(K[e|0],100)>>>8|0,K[f|0]-128|0,K[k|0]-128|0),J[Ea>>2]=Fa;k=k+1|0;f=f+1|0; -e=e+1|0;l=l+1|0;n=n+4|0;j=j-1|0;if(j)continue;break}break rj}if(!j)break rj;l=J[m+684>>2];f=J[m+700>>2];e=l+f|0;f=(f<<1)+l|0;while(1){Ea=n,Fa=ou(P(K[l|0],100)>>>8|0,K[e|0]-128|0,K[f|0]-128|0),J[Ea>>2]=Fa;f=f+1|0;e=e+1|0;l=l+1|0;n=n+4|0;j=j-1|0;if(j)continue;break}}break cj;case 8:j=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];sj:{if(J[k+288>>2]==4){if(!j)break sj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;k=P(g,3)+l|0;while(1){Ea=n,Fa=Wp(K[l|0],P(H[e|0],100)>>8,H[f|0]-128|0,H[k|0]-128|0),J[Ea>>2]=Fa; -k=k+2|0;f=f+2|0;e=e+2|0;l=l+2|0;n=n+4|0;j=j-1|0;if(j)continue;break}break sj}if(!j)break sj;l=J[m+684>>2];f=J[m+700>>2];e=l+f|0;f=(f<<1)+l|0;while(1){Ea=n,Fa=ou(P(H[l|0],100)>>8,H[e|0]-128|0,H[f|0]-128|0),J[Ea>>2]=Fa;f=f+2|0;e=e+2|0;l=l+2|0;n=n+4|0;j=j-1|0;if(j)continue;break}}break cj;default:break qj}fa(219530,219960,905,224842);B();case 7:if(L[m+50>>1]==8){j=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];tj:{if(J[k+288>>2]==4){if(!j)break tj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;k=P(g,3)+l|0; -while(1){Ea=n,Fa=Bl(K[l|0]^255,K[e|0]^255,K[f|0]^255,K[k|0]^255),J[Ea>>2]=Fa;k=k+1|0;f=f+1|0;e=e+1|0;l=l+1|0;n=n+4|0;j=j-1|0;if(j)continue;break}break tj}if(!j)break tj;l=J[m+684>>2];f=J[m+700>>2];e=l+f|0;f=(f<<1)+l|0;while(1){Ea=n,Fa=Bl(K[l|0]^255,K[e|0]^255,K[f|0]^255,0),J[Ea>>2]=Fa;f=f+1|0;e=e+1|0;l=l+1|0;n=n+4|0;j=j-1|0;if(j)continue;break}}break cj}fa(219530,219960,914,224842);B();default:break ej}fa(219530,219960,919,224842);B()}f=0;g=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];uj:{if(J[k+288>>2]== +2|0]<<8);e=e+4|0;n=n+4|0;k=k+4|0;j=j+4|0;o=o+8|0;f=f-2|0;if(f)continue;break}break mj}if(!g)break mj;j=J[m+684>>2];e=J[m+700>>2];k=j+e|0;n=(e<<1)+j|0;if(g&1){J[o>>2]=H[n|0]|(K[j|0]<<16|H[k|0]<<8)|-16777216;n=n+2|0;k=k+2|0;j=j+2|0;o=o+4|0;e=g-1|0}else e=g;if((g|0)==1)break mj;while(1){J[o>>2]=H[n|0]|(K[j|0]<<16|H[k|0]<<8)|-16777216;J[o+4>>2]=H[n+2|0]|(K[j+2|0]<<16|H[k+2|0]<<8)|-16777216;n=n+4|0;k=k+4|0;j=j+4|0;o=o+8|0;e=e-2|0;if(e)continue;break}}break cj;default:break kj}fa(219546,219976,882,224858); +B();case 4:nj:switch(L[m+50>>1]-8|0){case 0:n=P(I[k+4>>1],I[k+6>>1]);o=J[k+292>>2];oj:{if(J[k+288>>2]==5){if(!n)break oj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;j=P(g,3)+l|0;k=(g<<2)+l|0;while(1){Ea=o,Fa=ev(K[l|0],K[e|0]^255,K[f|0]^255,K[j|0]^255,K[k|0]^255),J[Ea>>2]=Fa;k=k+1|0;j=j+1|0;f=f+1|0;e=e+1|0;l=l+1|0;o=o+4|0;n=n-1|0;if(n)continue;break}break oj}if(!n)break oj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;j=P(g,3)+l|0;while(1){Ea=o,Fa=lm(K[l|0]^255,K[e|0]^255,K[f|0]^255,K[j|0]^ +255),J[Ea>>2]=Fa;j=j+1|0;f=f+1|0;e=e+1|0;l=l+1|0;o=o+4|0;n=n-1|0;if(n)continue;break}}break cj;case 8:n=P(I[k+4>>1],I[k+6>>1]);o=J[k+292>>2];pj:{if(J[k+288>>2]==5){if(!n)break pj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;j=P(g,3)+l|0;k=(g<<2)+l|0;while(1){Ea=o,Fa=ev(K[l|0],255-H[e|0]|0,255-H[f|0]|0,255-H[j|0]|0,255-H[k|0]|0),J[Ea>>2]=Fa;k=k+2|0;j=j+2|0;f=f+2|0;e=e+2|0;l=l+2|0;o=o+4|0;n=n-1|0;if(n)continue;break}break pj}if(!n)break pj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;j=P(g, +3)+l|0;while(1){Ea=o,Fa=lm(255-H[l|0]|0,255-H[e|0]|0,255-H[f|0]|0,255-H[j|0]|0),J[Ea>>2]=Fa;j=j+2|0;f=f+2|0;e=e+2|0;l=l+2|0;o=o+4|0;n=n-1|0;if(n)continue;break}}break cj;default:break nj}fa(219546,219976,893,224858);B();case 9:qj:switch(L[m+50>>1]-8|0){case 0:j=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];rj:{if(J[k+288>>2]==4){if(!j)break rj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;k=P(g,3)+l|0;while(1){Ea=n,Fa=Nq(K[l|0],P(K[e|0],100)>>>8|0,K[f|0]-128|0,K[k|0]-128|0),J[Ea>>2]=Fa;k=k+1|0;f=f+1|0; +e=e+1|0;l=l+1|0;n=n+4|0;j=j-1|0;if(j)continue;break}break rj}if(!j)break rj;l=J[m+684>>2];f=J[m+700>>2];e=l+f|0;f=(f<<1)+l|0;while(1){Ea=n,Fa=dv(P(K[l|0],100)>>>8|0,K[e|0]-128|0,K[f|0]-128|0),J[Ea>>2]=Fa;f=f+1|0;e=e+1|0;l=l+1|0;n=n+4|0;j=j-1|0;if(j)continue;break}}break cj;case 8:j=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];sj:{if(J[k+288>>2]==4){if(!j)break sj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;k=P(g,3)+l|0;while(1){Ea=n,Fa=Nq(K[l|0],P(H[e|0],100)>>8,H[f|0]-128|0,H[k|0]-128|0),J[Ea>>2]=Fa; +k=k+2|0;f=f+2|0;e=e+2|0;l=l+2|0;n=n+4|0;j=j-1|0;if(j)continue;break}break sj}if(!j)break sj;l=J[m+684>>2];f=J[m+700>>2];e=l+f|0;f=(f<<1)+l|0;while(1){Ea=n,Fa=dv(P(H[l|0],100)>>8,H[e|0]-128|0,H[f|0]-128|0),J[Ea>>2]=Fa;f=f+2|0;e=e+2|0;l=l+2|0;n=n+4|0;j=j-1|0;if(j)continue;break}}break cj;default:break qj}fa(219546,219976,905,224858);B();case 7:if(L[m+50>>1]==8){j=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];tj:{if(J[k+288>>2]==4){if(!j)break tj;l=J[m+684>>2];g=J[m+700>>2];e=l+g|0;f=(g<<1)+l|0;k=P(g,3)+l|0; +while(1){Ea=n,Fa=lm(K[l|0]^255,K[e|0]^255,K[f|0]^255,K[k|0]^255),J[Ea>>2]=Fa;k=k+1|0;f=f+1|0;e=e+1|0;l=l+1|0;n=n+4|0;j=j-1|0;if(j)continue;break}break tj}if(!j)break tj;l=J[m+684>>2];f=J[m+700>>2];e=l+f|0;f=(f<<1)+l|0;while(1){Ea=n,Fa=lm(K[l|0]^255,K[e|0]^255,K[f|0]^255,0),J[Ea>>2]=Fa;f=f+1|0;e=e+1|0;l=l+1|0;n=n+4|0;j=j-1|0;if(j)continue;break}}break cj}fa(219546,219976,914,224858);B();default:break ej}fa(219546,219976,919,224858);B()}f=0;g=P(I[k+4>>1],I[k+6>>1]);n=J[k+292>>2];uj:{if(J[k+288>>2]== 2){if(!g)break uj;j=J[m+684>>2];e=j+J[m+700>>2]|0;if(g&1){f=K[e|0];J[n>>2]=f<<16|f<<8|K[j|0]<<24|f;e=e+1|0;j=j+1|0;n=n+4|0;f=g-1|0}else f=g;if((g|0)==1)break uj;while(1){g=K[e|0];J[n>>2]=g<<16|g<<8|K[j|0]<<24|g;g=K[e+1|0];J[n+4>>2]=g<<16|g<<8|K[j+1|0]<<24|g;e=e+2|0;j=j+2|0;n=n+8|0;f=f-2|0;if(f)continue;break}break uj}if(!g)break uj;j=J[m+684>>2];l=g&3;vj:{if(!l){e=g;break vj}e=g;while(1){J[n>>2]=P(K[j|0],65793)|-16777216;j=j+1|0;n=n+4|0;e=e-1|0;f=f+1|0;if((l|0)!=(f|0))continue;break}}if(g>>>0<4)break uj; -while(1){J[n>>2]=P(K[j|0],65793)|-16777216;J[n+4>>2]=P(K[j+1|0],65793)|-16777216;J[n+8>>2]=P(K[j+2|0],65793)|-16777216;J[n+12>>2]=P(K[j+3|0],65793)|-16777216;j=j+4|0;n=n+16|0;e=e-4|0;if(e)continue;break}}}Gc(q);J[m+652>>2]=J[m+652>>2]+1;te(m,(D+F|0)-J[m+28>>2]|0);j=0}e=j}b=b+h|0;h=J[m+28>>2];b=b-h|0;if((b|0)>3)continue;break}}if((b|0)<=0)break Ji;te(m,b);break Ji}if((b|0)<=0)break Ji;te(m,b)}b=G-J[m+28>>2]|0;if((b|0)>12)continue;break}}te(m,b)}if(!e)break ci;s=(e|0)==-3?-13:e;break bi;case 4:x=5; -o=0;b=0;p=0;wj:{xj:switch(J[m+36>>2]-2|0){case 0:if(I[m+632>>1]>0)break wj;break;case 2:case 3:break wj;default:break xj}e=J[m+44>>2];f=J[m+40>>2];k=P(e,f);o=k;yj:{zj:switch(L[m+50>>1]-1|0){case 15:o=k<<1;k=o;break yj;default:fa(219530,220434,538,223592);B();case 7:break yj;case 0:break zj}o=P(e,(f+7|0)/8|0)}J[m+700>>2]=o;e=L[m+48>>1];l=Tc(m);g=P(e,o);f=zc(g);Aj:{if(!f)break Aj;J[m+684>>2]=f;e=J[m+24>>2]-J[m+28>>2]|0;Bj:{Cj:{Dj:{Ej:{if(!l)break Ej;b=zc(e);if(!b){qc(f);J[m+684>>2]=0;break Aj}af(m, -b,e);Fj:{Gj:{Hj:switch(l|0){case 1:Ij:switch(L[m+50>>1]-8|0){default:fa(221397,220434,579,223592);B();case 0:case 8:break Ij}e=L[m+48>>1];if(!e)break Dj;q=J[m+44>>2];if((q|0)<=0)break Gj;o=(P(e,q)<<1)+b|0;l=f;h=b;while(1){t=0;r=0;if((q|0)>0)while(1){e=0;g=K[h|0]|K[h+1|0]<<8;w=(g<<8|g>>>8)<<16>>16;if((w|0)>0){while(1){j=e+1|0;g=o+1|0;n=K[o|0];q=n<<24>>24;Jj:{if((q|0)>=0){e=j;j=n+1|0;e=e+j|0;l=tc(l,g,j)+j|0;t=j+t|0;g=g+j|0;break Jj}if((q|0)==-128){e=j;break Jj}e=e+2|0;g=257-n|0;l=wc(l,K[o+1|0],g)+g| -0;t=g+t|0;g=o+2|0}o=g;if((e|0)<(w|0))continue;break}q=J[m+44>>2]}h=h+2|0;r=r+1|0;if((r|0)<(q|0))continue;break}if((k|0)!=(t|0))break Fj;p=p+1|0;if(p>>>0>1])continue;break}break Dj;case 2:o=$M(b,e,f,g);if(!o)break Dj;break wj;case 3:o=_M(b,e,f,g,J[m+40>>2],L[m+50>>1]);if(!o)break Dj;break wj;case 0:break Ej;default:break Hj}fa(219530,220434,651,223592);B()}if(!k)break Dj}fa(221967,220434,623,223592);B()}if((e|0)<(g|0))break Cj;af(m,f,g)}Gc(b);b=zc(P(J[m+40>>2],J[m+44>>2])<<2);J[m+672>>2]=b; -if(!b)break Bj;Kj:{Lj:{Mj:switch(J[m+52>>2]){case 0:if(L[m+50>>1]==1){e=0;l=J[m+40>>2];g=(l+7|0)/8|0;b=J[m+44>>2];if(!((b|0)<=0|(l|0)<=0)){o=J[m+684>>2];j=J[m+672>>2];while(1){if((l|0)>0){h=o+P(e,g)|0;n=0;b=128;while(1){J[j>>2]=K[h|0]&b?-16777216:-1;l=b>>>0<2;b=l?128:b>>1;j=j+4|0;h=h+l|0;l=J[m+40>>2];n=n+1|0;if((l|0)>(n|0))continue;break}b=J[m+44>>2]}e=e+1|0;if((e|0)<(b|0))continue;break}}break Kj}fa(219530,220434,673,223592);B();case 1:case 8:Nj:switch(L[m+50>>1]-8|0){case 8:l=0;b=P(J[m+44>>2],J[m+ +while(1){J[n>>2]=P(K[j|0],65793)|-16777216;J[n+4>>2]=P(K[j+1|0],65793)|-16777216;J[n+8>>2]=P(K[j+2|0],65793)|-16777216;J[n+12>>2]=P(K[j+3|0],65793)|-16777216;j=j+4|0;n=n+16|0;e=e-4|0;if(e)continue;break}}}Mc(q);J[m+652>>2]=J[m+652>>2]+1;Be(m,(D+F|0)-J[m+28>>2]|0);j=0}e=j}b=b+h|0;h=J[m+28>>2];b=b-h|0;if((b|0)>3)continue;break}}if((b|0)<=0)break Ji;Be(m,b);break Ji}if((b|0)<=0)break Ji;Be(m,b)}b=G-J[m+28>>2]|0;if((b|0)>12)continue;break}}Be(m,b)}if(!e)break ci;s=(e|0)==-3?-13:e;break bi;case 4:x=5; +o=0;b=0;p=0;wj:{xj:switch(J[m+36>>2]-2|0){case 0:if(I[m+632>>1]>0)break wj;break;case 2:case 3:break wj;default:break xj}e=J[m+44>>2];f=J[m+40>>2];k=P(e,f);o=k;yj:{zj:switch(L[m+50>>1]-1|0){case 15:o=k<<1;k=o;break yj;default:fa(219546,220450,538,223608);B();case 7:break yj;case 0:break zj}o=P(e,(f+7|0)/8|0)}J[m+700>>2]=o;e=L[m+48>>1];l=ad(m);g=P(e,o);f=Dc(g);Aj:{if(!f)break Aj;J[m+684>>2]=f;e=J[m+24>>2]-J[m+28>>2]|0;Bj:{Cj:{Dj:{Ej:{if(!l)break Ej;b=Dc(e);if(!b){uc(f);J[m+684>>2]=0;break Aj}gf(m, +b,e);Fj:{Gj:{Hj:switch(l|0){case 1:Ij:switch(L[m+50>>1]-8|0){default:fa(221413,220450,579,223608);B();case 0:case 8:break Ij}e=L[m+48>>1];if(!e)break Dj;q=J[m+44>>2];if((q|0)<=0)break Gj;o=(P(e,q)<<1)+b|0;l=f;h=b;while(1){t=0;r=0;if((q|0)>0)while(1){e=0;g=K[h|0]|K[h+1|0]<<8;w=(g<<8|g>>>8)<<16>>16;if((w|0)>0){while(1){j=e+1|0;g=o+1|0;n=K[o|0];q=n<<24>>24;Jj:{if((q|0)>=0){e=j;j=n+1|0;e=e+j|0;l=xc(l,g,j)+j|0;t=j+t|0;g=g+j|0;break Jj}if((q|0)==-128){e=j;break Jj}e=e+2|0;g=257-n|0;l=Ac(l,K[o+1|0],g)+g| +0;t=g+t|0;g=o+2|0}o=g;if((e|0)<(w|0))continue;break}q=J[m+44>>2]}h=h+2|0;r=r+1|0;if((r|0)<(q|0))continue;break}if((k|0)!=(t|0))break Fj;p=p+1|0;if(p>>>0>1])continue;break}break Dj;case 2:o=tO(b,e,f,g);if(!o)break Dj;break wj;case 3:o=sO(b,e,f,g,J[m+40>>2],L[m+50>>1]);if(!o)break Dj;break wj;case 0:break Ej;default:break Hj}fa(219546,220450,651,223608);B()}if(!k)break Dj}fa(221983,220450,623,223608);B()}if((e|0)<(g|0))break Cj;gf(m,f,g)}Mc(b);b=Dc(P(J[m+40>>2],J[m+44>>2])<<2);J[m+672>>2]=b; +if(!b)break Bj;Kj:{Lj:{Mj:switch(J[m+52>>2]){case 0:if(L[m+50>>1]==1){e=0;l=J[m+40>>2];g=(l+7|0)/8|0;b=J[m+44>>2];if(!((b|0)<=0|(l|0)<=0)){o=J[m+684>>2];j=J[m+672>>2];while(1){if((l|0)>0){h=o+P(e,g)|0;n=0;b=128;while(1){J[j>>2]=K[h|0]&b?-16777216:-1;l=b>>>0<2;b=l?128:b>>1;j=j+4|0;h=h+l|0;l=J[m+40>>2];n=n+1|0;if((l|0)>(n|0))continue;break}b=J[m+44>>2]}e=e+1|0;if((e|0)<(b|0))continue;break}}break Kj}fa(219546,220450,673,223608);B();case 1:case 8:Nj:switch(L[m+50>>1]-8|0){case 8:l=0;b=P(J[m+44>>2],J[m+ 40>>2]);h=J[m+672>>2];Oj:{if(L[m+356>>1]==2){if(!b)break Oj;j=J[m+684>>2];e=j+J[m+700>>2]|0;if(b&1){g=K[e|0];J[h>>2]=K[j|0]<<24|g<<16|g<<8|g;e=e+2|0;j=j+2|0;h=h+4|0;l=b-1|0}else l=b;if((b|0)==1)break Oj;while(1){b=K[e|0];J[h>>2]=K[j|0]<<24|b<<16|b<<8|b;b=K[e+2|0];J[h+4>>2]=K[j+2|0]<<24|b<<16|b<<8|b;e=e+4|0;j=j+4|0;h=h+8|0;l=l-2|0;if(l)continue;break}break Oj}if(!b)break Oj;j=J[m+684>>2];g=b&3;Pj:{if(!g){e=b;break Pj}e=b;while(1){J[h>>2]=P(K[j|0],65793)|-16777216;j=j+2|0;h=h+4|0;e=e-1|0;l=l+1|0;if((g| -0)!=(l|0))continue;break}}if(b>>>0<4)break Oj;while(1){J[h>>2]=P(K[j|0],65793)|-16777216;J[h+4>>2]=P(K[j+2|0],65793)|-16777216;J[h+8>>2]=P(K[j+4|0],65793)|-16777216;J[h+12>>2]=P(K[j+6|0],65793)|-16777216;j=j+8|0;h=h+16|0;e=e-4|0;if(e)continue;break}}break Kj;case 0:break Lj;default:break Nj}fa(219530,220434,686,223592);B();case 2:if(L[m+50>>1]==8){b=P(J[m+44>>2],J[m+40>>2]);if(!b)break Kj;g=I[m+462>>1];l=J[m+672>>2];j=J[m+684>>2];if(b&1){h=16777215;e=K[j|0];if(!((e|0)>=(g|0)|(e|0)==I[m+464>>1]))h= -J[J[m+60>>2]+(e<<2)>>2];J[l>>2]=h;j=j+1|0;l=l+4|0;e=b-1|0}else e=b;if((b|0)==1)break Kj;while(1){h=16777215;n=K[j|0];b=16777215;Qj:{if((n|0)>=(g|0))break Qj;b=16777215;if((n|0)==I[m+464>>1])break Qj;b=J[J[m+60>>2]+(n<<2)>>2]}J[l>>2]=b;b=K[j+1|0];if(!((b|0)>=(g|0)|(b|0)==I[m+464>>1]))h=J[J[m+60>>2]+(b<<2)>>2];J[l+4>>2]=h;j=j+2|0;l=l+8|0;e=e-2|0;if(e)continue;break}break Kj}fa(219530,220434,694,223592);B();case 3:Rj:switch(L[m+50>>1]-8|0){case 0:b=P(J[m+44>>2],J[m+40>>2]);o=J[m+672>>2];Sj:{if(L[m+356>> +0)!=(l|0))continue;break}}if(b>>>0<4)break Oj;while(1){J[h>>2]=P(K[j|0],65793)|-16777216;J[h+4>>2]=P(K[j+2|0],65793)|-16777216;J[h+8>>2]=P(K[j+4|0],65793)|-16777216;J[h+12>>2]=P(K[j+6|0],65793)|-16777216;j=j+8|0;h=h+16|0;e=e-4|0;if(e)continue;break}}break Kj;case 0:break Lj;default:break Nj}fa(219546,220450,686,223608);B();case 2:if(L[m+50>>1]==8){b=P(J[m+44>>2],J[m+40>>2]);if(!b)break Kj;g=I[m+462>>1];l=J[m+672>>2];j=J[m+684>>2];if(b&1){h=16777215;e=K[j|0];if(!((e|0)>=(g|0)|(e|0)==I[m+464>>1]))h= +J[J[m+60>>2]+(e<<2)>>2];J[l>>2]=h;j=j+1|0;l=l+4|0;e=b-1|0}else e=b;if((b|0)==1)break Kj;while(1){h=16777215;n=K[j|0];b=16777215;Qj:{if((n|0)>=(g|0))break Qj;b=16777215;if((n|0)==I[m+464>>1])break Qj;b=J[J[m+60>>2]+(n<<2)>>2]}J[l>>2]=b;b=K[j+1|0];if(!((b|0)>=(g|0)|(b|0)==I[m+464>>1]))h=J[J[m+60>>2]+(b<<2)>>2];J[l+4>>2]=h;j=j+2|0;l=l+8|0;e=e-2|0;if(e)continue;break}break Kj}fa(219546,220450,694,223608);B();case 3:Rj:switch(L[m+50>>1]-8|0){case 0:b=P(J[m+44>>2],J[m+40>>2]);o=J[m+672>>2];Sj:{if(L[m+356>> 1]==4){if(!b)break Sj;j=J[m+684>>2];e=J[m+700>>2];h=j+e|0;n=(e<<1)+j|0;e=P(e,3)+j|0;if(b&1){J[o>>2]=K[e|0]|(K[h|0]<<16|K[j|0]<<24|K[n|0]<<8);e=e+1|0;n=n+1|0;h=h+1|0;j=j+1|0;o=o+4|0;l=b-1|0}else l=b;if((b|0)==1)break Sj;while(1){J[o>>2]=K[e|0]|(K[h|0]<<16|K[j|0]<<24|K[n|0]<<8);J[o+4>>2]=K[e+1|0]|(K[h+1|0]<<16|K[j+1|0]<<24|K[n+1|0]<<8);e=e+2|0;n=n+2|0;h=h+2|0;j=j+2|0;o=o+8|0;l=l-2|0;if(l)continue;break}break Sj}if(!b)break Sj;j=J[m+684>>2];e=J[m+700>>2];h=j+e|0;n=(e<<1)+j|0;if(b&1){J[o>>2]=K[n|0]|(K[j| 0]<<16|K[h|0]<<8)|-16777216;n=n+1|0;h=h+1|0;j=j+1|0;o=o+4|0;e=b-1|0}else e=b;if((b|0)==1)break Sj;while(1){J[o>>2]=K[n|0]|(K[j|0]<<16|K[h|0]<<8)|-16777216;J[o+4>>2]=K[n+1|0]|(K[j+1|0]<<16|K[h+1|0]<<8)|-16777216;n=n+2|0;h=h+2|0;j=j+2|0;o=o+8|0;e=e-2|0;if(e)continue;break}}break Kj;case 8:b=P(J[m+44>>2],J[m+40>>2]);o=J[m+672>>2];Tj:{if(L[m+356>>1]==4){if(!b)break Tj;j=J[m+684>>2];e=J[m+700>>2];h=j+e|0;n=(e<<1)+j|0;e=P(e,3)+j|0;if(b&1){J[o>>2]=H[e|0]|(H[h|0]<<16|K[j|0]<<24|H[n|0]<<8);e=e+2|0;n=n+2|0; h=h+2|0;j=j+2|0;o=o+4|0;l=b-1|0}else l=b;if((b|0)==1)break Tj;while(1){J[o>>2]=H[e|0]|(H[h|0]<<16|K[j|0]<<24|H[n|0]<<8);J[o+4>>2]=H[e+2|0]|(H[h+2|0]<<16|K[j+2|0]<<24|H[n+2|0]<<8);e=e+4|0;n=n+4|0;h=h+4|0;j=j+4|0;o=o+8|0;l=l-2|0;if(l)continue;break}break Tj}if(!b)break Tj;j=J[m+684>>2];e=J[m+700>>2];h=j+e|0;n=(e<<1)+j|0;if(b&1){J[o>>2]=H[n|0]|(K[j|0]<<16|H[h|0]<<8)|-16777216;n=n+2|0;h=h+2|0;j=j+2|0;o=o+4|0;e=b-1|0}else e=b;if((b|0)==1)break Tj;while(1){J[o>>2]=H[n|0]|(K[j|0]<<16|H[h|0]<<8)|-16777216; -J[o+4>>2]=H[n+2|0]|(K[j+2|0]<<16|H[h+2|0]<<8)|-16777216;n=n+4|0;h=h+4|0;j=j+4|0;o=o+8|0;e=e-2|0;if(e)continue;break}}break Kj;default:break Rj}fa(219530,220434,704,223592);B();case 4:Uj:switch(L[m+50>>1]-8|0){case 0:h=P(J[m+44>>2],J[m+40>>2]);n=J[m+672>>2];Vj:{if(L[m+356>>1]==5){if(!h)break Vj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;j=P(g,3)+b|0;o=(g<<2)+b|0;while(1){Ea=n,Fa=pu(K[b|0],K[e|0]^255,K[l|0]^255,K[j|0]^255,K[o|0]^255),J[Ea>>2]=Fa;o=o+1|0;j=j+1|0;l=l+1|0;e=e+1|0;b=b+1|0;n=n+4|0; -h=h-1|0;if(h)continue;break}break Vj}if(!h)break Vj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;j=P(g,3)+b|0;while(1){Ea=n,Fa=Bl(K[b|0]^255,K[e|0]^255,K[l|0]^255,K[j|0]^255),J[Ea>>2]=Fa;j=j+1|0;l=l+1|0;e=e+1|0;b=b+1|0;n=n+4|0;h=h-1|0;if(h)continue;break}}break Kj;case 8:h=P(J[m+44>>2],J[m+40>>2]);n=J[m+672>>2];Wj:{if(L[m+356>>1]==5){if(!h)break Wj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;j=P(g,3)+b|0;o=(g<<2)+b|0;while(1){Ea=n,Fa=pu(K[b|0],255-H[e|0]|0,255-H[l|0]|0,255-H[j|0]|0,255-H[o| -0]|0),J[Ea>>2]=Fa;o=o+2|0;j=j+2|0;l=l+2|0;e=e+2|0;b=b+2|0;n=n+4|0;h=h-1|0;if(h)continue;break}break Wj}if(!h)break Wj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;j=P(g,3)+b|0;while(1){Ea=n,Fa=Bl(255-H[b|0]|0,255-H[e|0]|0,255-H[l|0]|0,255-H[j|0]|0),J[Ea>>2]=Fa;j=j+2|0;l=l+2|0;e=e+2|0;b=b+2|0;n=n+4|0;h=h-1|0;if(h)continue;break}}break Kj;default:break Uj}fa(219530,220434,715,223592);B();case 9:Xj:switch(L[m+50>>1]-8|0){case 0:j=P(J[m+44>>2],J[m+40>>2]);h=J[m+672>>2];Yj:{if(L[m+356>>1]==4){if(!j)break Yj; -b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;n=P(g,3)+b|0;while(1){Ea=h,Fa=Wp(K[b|0],P(K[e|0],100)>>>8|0,K[l|0]-128|0,K[n|0]-128|0),J[Ea>>2]=Fa;n=n+1|0;l=l+1|0;e=e+1|0;b=b+1|0;h=h+4|0;j=j-1|0;if(j)continue;break}break Yj}if(!j)break Yj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;while(1){Ea=h,Fa=ou(P(K[b|0],100)>>>8|0,K[e|0]-128|0,K[l|0]-128|0),J[Ea>>2]=Fa;l=l+1|0;e=e+1|0;b=b+1|0;h=h+4|0;j=j-1|0;if(j)continue;break}}break Kj;case 8:j=P(J[m+44>>2],J[m+40>>2]);h=J[m+672>>2];Zj:{if(L[m+356>> -1]==4){if(!j)break Zj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;n=P(g,3)+b|0;while(1){Ea=h,Fa=Wp(K[b|0],P(H[e|0],100)>>8,H[l|0]-128|0,H[n|0]-128|0),J[Ea>>2]=Fa;n=n+2|0;l=l+2|0;e=e+2|0;b=b+2|0;h=h+4|0;j=j-1|0;if(j)continue;break}break Zj}if(!j)break Zj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;while(1){Ea=h,Fa=ou(P(H[b|0],100)>>8,H[e|0]-128|0,H[l|0]-128|0),J[Ea>>2]=Fa;l=l+2|0;e=e+2|0;b=b+2|0;h=h+4|0;j=j-1|0;if(j)continue;break}}break Kj;default:break Xj}fa(219530,220434,727,223592);B(); -case 7:if(L[m+50>>1]==8){j=P(J[m+44>>2],J[m+40>>2]);h=J[m+672>>2];_j:{if(L[m+356>>1]==4){if(!j)break _j;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;n=P(g,3)+b|0;while(1){Ea=h,Fa=Bl(K[b|0]^255,K[e|0]^255,K[l|0]^255,K[n|0]^255),J[Ea>>2]=Fa;n=n+1|0;l=l+1|0;e=e+1|0;b=b+1|0;h=h+4|0;j=j-1|0;if(j)continue;break}break _j}if(!j)break _j;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;while(1){Ea=h,Fa=Bl(K[b|0]^255,K[e|0]^255,K[l|0]^255,0),J[Ea>>2]=Fa;l=l+1|0;e=e+1|0;b=b+1|0;h=h+4|0;j=j-1|0;if(j)continue; -break}}break Kj}fa(219530,220434,736,223592);B();default:break Mj}fa(219530,220434,741,223592);B()}l=0;b=P(J[m+44>>2],J[m+40>>2]);h=J[m+672>>2];$j:{if(L[m+356>>1]==2){if(!b)break $j;j=J[m+684>>2];e=j+J[m+700>>2]|0;if(b&1){g=K[e|0];J[h>>2]=g<<16|g<<8|K[j|0]<<24|g;e=e+1|0;j=j+1|0;h=h+4|0;l=b-1|0}else l=b;if((b|0)==1)break $j;while(1){b=K[e|0];J[h>>2]=b<<16|b<<8|K[j|0]<<24|b;b=K[e+1|0];J[h+4>>2]=b<<16|b<<8|K[j+1|0]<<24|b;e=e+2|0;j=j+2|0;h=h+8|0;l=l-2|0;if(l)continue;break}break $j}if(!b)break $j;j=J[m+ -684>>2];g=b&3;ak:{if(!g){e=b;break ak}e=b;while(1){J[h>>2]=P(K[j|0],65793)|-16777216;j=j+1|0;h=h+4|0;e=e-1|0;l=l+1|0;if((g|0)!=(l|0))continue;break}}if(b>>>0<4)break $j;while(1){J[h>>2]=P(K[j|0],65793)|-16777216;J[h+4>>2]=P(K[j+1|0],65793)|-16777216;J[h+8>>2]=P(K[j+2|0],65793)|-16777216;J[h+12>>2]=P(K[j+3|0],65793)|-16777216;j=j+4|0;h=h+16|0;e=e-4|0;if(e)continue;break}}}t=I[m+356>>1];if((t|0)>1])while(1){o=zc(P(J[m+44>>2],J[m+40>>2]));J[(J[m+360>>2]+P(t-I[m+356>>1]|0,272)|0)+268>>2]=o;if(!o)break Bj; -bk:{if(L[m+50>>1]==8){b=J[m+700>>2];tc(o,J[m+684>>2]+P(b,t)|0,b);break bk}g=P(J[m+44>>2],J[m+40>>2]);if(!g)break bk;e=J[m+684>>2]+P(J[m+700>>2],t)|0;q=0;b=g;l=g&7;if(l)while(1){H[o|0]=K[e|0];e=e+2|0;o=o+1|0;b=b-1|0;q=q+1|0;if((l|0)!=(q|0))continue;break}if(g>>>0<8)break bk;while(1){H[o|0]=K[e|0];H[o+1|0]=K[e+2|0];H[o+2|0]=K[e+4|0];H[o+3|0]=K[e+6|0];H[o+4|0]=K[e+8|0];H[o+5|0]=K[e+10|0];H[o+6|0]=K[e+12|0];H[o+7|0]=K[e+14|0];e=e+16|0;o=o+8|0;b=b-8|0;if(b)continue;break}}t=t+1|0;if((t|0)>1])continue; -break}Gc(f);o=0;J[m+684>>2]=0;if(L[m+632>>1])break wj;ck:switch(J[m+36>>2]){case 0:case 2:break ck;default:break wj}b=zc(600);J[m+636>>2]=b;if(!b)break Aj;wc(b,0,600);I[m+632>>1]=1;b=J[m+636>>2];J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;f=J[m+44>>2];J[b+12>>2]=f;e=J[m+40>>2];J[b+24>>2]=f;J[b+20>>2]=e;J[b+16>>2]=e;e=I[m+356>>1];H[b+541|0]=255;H[b+40|0]=255;J[b+36>>2]=0;J[b+592>>2]=23;H[b+586|0]=0;I[b+584>>1]=1;H[b+566|0]=0;I[b+564>>1]=1;H[b+45|0]=0;H[b+41|0]=0;H[b+42|0]=0;H[b+43|0]=1;H[b+44|0]=0;H[b+74|0]= -1;H[b+72|0]=255;I[b+28>>1]=e;e=zc(P(e,12));J[b+32>>2]=e;if(!e)break Aj;wc(e,0,P(I[b+28>>1],12));e=4;dk:switch(J[m+52>>2]-3|0){case 1:e=5;case 0:o=L[m+356>>1]==(e|0)?-1:0;break;default:break dk}e=I[b+28>>1];ek:{if((e|0)<=0)break ek;g=e&3;f=J[b+32>>2];h=0;fk:{if(e>>>0<4){e=0;break fk}l=e&-4;e=0;t=0;while(1){j=f+P(e,12)|0;H[j+8|0]=0;I[j>>1]=o;j=f+P(e|1,12)|0;H[j+8|0]=0;I[j>>1]=o+1;j=f+P(e|2,12)|0;H[j+8|0]=0;I[j>>1]=o+2;j=f+P(e|3,12)|0;H[j+8|0]=0;I[j>>1]=o+3;e=e+4|0;o=o+4|0;t=t+4|0;if((l|0)!=(t|0))continue; -break}}if(!g)break ek;while(1){l=f+P(e,12)|0;H[l+8|0]=0;I[l>>1]=o;e=e+1|0;o=o+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}J[b+80>>2]=-65536;J[b+84>>2]=-65536;e=I[m+356>>1];J[b+88>>2]=e;Ea=b,Fa=zc(e<<1),J[Ea+92>>2]=Fa;Ea=b,Fa=zc(J[b+88>>2]<<1),J[Ea+96>>2]=Fa;Ea=b,Fa=zc(J[b+88>>2]<<1),J[Ea+100>>2]=Fa;f=zc(J[b+88>>2]<<1);J[b+104>>2]=f;l=J[b+92>>2];if(!l)break Aj;j=J[b+96>>2];if(!j)break Aj;h=J[b+100>>2];if(!h|!f)break Aj;n=J[b+88>>2];gk:{if((n|0)<=0)break gk;e=0;if((n|0)!=1){o=n&-2;t=0;while(1){g=e<< -1;I[g+l>>1]=0;I[g+j>>1]=65535;I[g+h>>1]=0;I[f+g>>1]=65535;g=g|2;I[g+l>>1]=0;I[g+j>>1]=65535;I[g+h>>1]=0;I[f+g>>1]=65535;e=e+2|0;t=t+2|0;if((o|0)!=(t|0))continue;break}}if(!(n&1))break gk;e=e<<1;I[e+l>>1]=0;I[e+j>>1]=65535;I[e+h>>1]=0;I[e+f>>1]=65535}o=0;hk:switch(J[m+36>>2]){case 0:e=b;b=zc(P(J[m+40>>2],J[m+44>>2])<<2);J[e+372>>2]=b;o=-4;if(!b)break wj;tc(b,J[m+672>>2],P(J[m+40>>2],J[m+44>>2])<<2);o=0;break wj;case 2:break hk;default:break wj}J[b+372>>2]=J[m+672>>2];J[m+672>>2]=0;break wj}fa(220564, -220434,569,223592);B()}Gc(f);J[m+684>>2]=0}o=-4}if(!o)break ci;s=(o|0)==-3?-14:o;break bi;case 5:break bi;default:break di}fa(219530,220368,224,220550);B()}J[m+32>>2]=x;if(J[m+24>>2]>0)continue;break}s=-5}if(!s){mi(i,J[m+40>>2],J[m+44>>2],24,20);j=J[m+672>>2];b=J[m+360>>2];ik:{if(!b)break ik;b=J[b+268>>2];if(!b)break ik;Jk(i);d=b}jk:{if(!j)break jk;b=J[m+44>>2];if((b|0)==1)break jk;l=J[m+40>>2];if((l|0)<=0)break jk;b=b-2|0;while(1){e=b;b=0;if((l|0)>0)while(1){f=K[j|0]|K[j+1|0]<<8;g=K[j+2|0];H[u+19| -0]=0;H[u+18|0]=g;H[u+16|0]=f;H[u+17|0]=f>>>8;J[u+12>>2]=K[u+16|0]|K[u+17|0]<<8|(K[u+18|0]<<16|K[u+19|0]<<24);Zp(i,b,e,u+12|0,0);j=j+4|0;if(d){hh(i,b,e,K[d|0]);d=d+1|0}else d=0;b=b+1|0;l=J[m+40>>2];if((b|0)<(l|0))continue;break}b=e-1|0;if(e)continue;break}}aN(m);qc(m);e=1;break $h}qd(i+72|0,43856,255);aN(m);qc(m)}e=J[i+332>>2]==-1&J[i+68>>2]==20}bc=u+32|0;if(e)break b;ff(a+72|0,i+72|0);gc[J[J[v>>2]+20>>2]](v,ia,0)|0;gc[J[J[i>>2]+4>>2]](i);if(c)break c}b=K[45346]|K[45347]<<8|(K[45348]<<16|K[45349]<< -24);c=K[45342]|K[45343]<<8|(K[45344]<<16|K[45345]<<24);H[a+96|0]=c;H[a+97|0]=c>>>8;H[a+98|0]=c>>>16;H[a+99|0]=c>>>24;H[a+100|0]=b;H[a+101|0]=b>>>8;H[a+102|0]=b>>>16;H[a+103|0]=b>>>24;b=K[45338]|K[45339]<<8|(K[45340]<<16|K[45341]<<24);c=K[45334]|K[45335]<<8|(K[45336]<<16|K[45337]<<24);H[a+88|0]=c;H[a+89|0]=c>>>8;H[a+90|0]=c>>>16;H[a+91|0]=c>>>24;H[a+92|0]=b;H[a+93|0]=b>>>8;H[a+94|0]=b>>>16;H[a+95|0]=b>>>24;b=K[45330]|K[45331]<<8|(K[45332]<<16|K[45333]<<24);c=K[45326]|K[45327]<<8|(K[45328]<<16|K[45329]<< -24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[45322]|K[45323]<<8|(K[45324]<<16|K[45325]<<24);c=K[45318]|K[45319]<<8|(K[45320]<<16|K[45321]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;return 0}return 0}iE(a,i,1);gc[J[J[i>>2]+4>>2]](i);return 1}ba(a|0);B()}function IGa(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,O=Q(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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;F=bc-96|0;bc=F;C=J[a+8>>2];a:{b:{c:{if(!J[a>>2]){e=P(J[C+16>>2]-J[C+8>>2]|0,J[C+20>>2]-J[C+12>>2]|0)<<2;g=Xk(e);J[C+56>>2]=g;if(!g){Hc(J[a+32>>2],1,2338408,0);w=a+28|0;break b}wc(g,0,e);break c}e=J[C+56>>2];if(!e)break c;qc(e);J[C+56>>2]=0}if(!J[J[a+28>>2]>>2])break a;V=J[a+16>>2];e=(J[V+28>>2]+P(J[V+24>>2],152)| -0)-152|0;ea=J[e>>2];ga=J[e+8>>2];S=J[a+20>>2];T=J[a+12>>2];ba=J[a+4>>2];w=a+28|0;d:{i=J[b+4>>2];e:{if((i|0)>0){g=J[b>>2];while(1){e=g+P(d,12)|0;if(!J[e>>2]){d=J[e+4>>2];break e}d=d+1|0;if((i|0)!=(d|0))continue;break}}d=0}if(d)break d;d=ye(1,156);if(!d){Hc(J[a+32>>2],1,2339452,0);break b}J[d+140>>2]=0;g=0;c=J[b+4>>2];f:if((c|0)!=2147483647){i=J[b>>2];if((c|0)>0)while(1){s=P(g,12);if(!J[s+i>>2]){g=i+s|0;e=J[g+8>>2];if(e){gc[e|0](J[g+4>>2]);i=J[b>>2]}b=i+s|0;J[b+8>>2]=4693;J[b+4>>2]=d;e=1;break f}g= -g+1|0;if((c|0)!=(g|0))continue;break}g=Tg(i,P(c,12)+12|0);e=0;if(!g)break f;J[b>>2]=g;e=J[b+4>>2];g=g+P(e,12)|0;J[g+8>>2]=4693;J[g+4>>2]=d;J[g>>2]=0;J[b+4>>2]=e+1;e=1}else e=0;if(e)break d;Hc(J[a+32>>2],1,2340106,0);b=J[d+116>>2];if(b){qc(b);J[d+116>>2]=0}b=J[d+120>>2];if(b){qc(b);J[d+120>>2]=0}qc(J[d+148>>2]);qc(d);break b}J[d+144>>2]=J[a+24>>2];ha=J[a+40>>2];Z=J[a+36>>2];U=J[a+32>>2];R=J[S+16>>2];e=J[S+808>>2];J[d+108>>2]=(J[T+16>>2]<<9)+2361360;k=J[C+20>>2]-J[C+12>>2]|0;g:{h:{i:{j:{p=J[C+16>>2]- -J[C+8>>2]|0;if(p>>>0<1025){if(k>>>0>=1025)break j;b=P(k,p);if(b>>>0>=4097)break i;c=J[d+116>>2];k:{l:{m:{if(b>>>0>M[d+132>>2]){qc(c);c=Xk(b<<2);J[d+116>>2]=c;if(!c)break k;J[d+132>>2]=b;break m}if(!c)break l}wc(c,0,b<<2)}c=J[d+120>>2];h=p+2|0;s=k+3>>>2|0;b=P(h,s+2|0);if(b>>>0<=M[d+136>>2]){g=b<<2;break h}qc(c);g=b<<2;c=Xk(g);J[d+120>>2]=c;if(c)break h}b=0;break g}fa(2342593,2340826,1438,2363408);B()}fa(2342965,2340826,1439,2363408);B()}fa(2343353,2340826,1440,2363408);B()}J[d+136>>2]=b;wc(c,0,g); +J[o+4>>2]=H[n+2|0]|(K[j+2|0]<<16|H[h+2|0]<<8)|-16777216;n=n+4|0;h=h+4|0;j=j+4|0;o=o+8|0;e=e-2|0;if(e)continue;break}}break Kj;default:break Rj}fa(219546,220450,704,223608);B();case 4:Uj:switch(L[m+50>>1]-8|0){case 0:h=P(J[m+44>>2],J[m+40>>2]);n=J[m+672>>2];Vj:{if(L[m+356>>1]==5){if(!h)break Vj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;j=P(g,3)+b|0;o=(g<<2)+b|0;while(1){Ea=n,Fa=ev(K[b|0],K[e|0]^255,K[l|0]^255,K[j|0]^255,K[o|0]^255),J[Ea>>2]=Fa;o=o+1|0;j=j+1|0;l=l+1|0;e=e+1|0;b=b+1|0;n=n+4|0; +h=h-1|0;if(h)continue;break}break Vj}if(!h)break Vj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;j=P(g,3)+b|0;while(1){Ea=n,Fa=lm(K[b|0]^255,K[e|0]^255,K[l|0]^255,K[j|0]^255),J[Ea>>2]=Fa;j=j+1|0;l=l+1|0;e=e+1|0;b=b+1|0;n=n+4|0;h=h-1|0;if(h)continue;break}}break Kj;case 8:h=P(J[m+44>>2],J[m+40>>2]);n=J[m+672>>2];Wj:{if(L[m+356>>1]==5){if(!h)break Wj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;j=P(g,3)+b|0;o=(g<<2)+b|0;while(1){Ea=n,Fa=ev(K[b|0],255-H[e|0]|0,255-H[l|0]|0,255-H[j|0]|0,255-H[o| +0]|0),J[Ea>>2]=Fa;o=o+2|0;j=j+2|0;l=l+2|0;e=e+2|0;b=b+2|0;n=n+4|0;h=h-1|0;if(h)continue;break}break Wj}if(!h)break Wj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;j=P(g,3)+b|0;while(1){Ea=n,Fa=lm(255-H[b|0]|0,255-H[e|0]|0,255-H[l|0]|0,255-H[j|0]|0),J[Ea>>2]=Fa;j=j+2|0;l=l+2|0;e=e+2|0;b=b+2|0;n=n+4|0;h=h-1|0;if(h)continue;break}}break Kj;default:break Uj}fa(219546,220450,715,223608);B();case 9:Xj:switch(L[m+50>>1]-8|0){case 0:j=P(J[m+44>>2],J[m+40>>2]);h=J[m+672>>2];Yj:{if(L[m+356>>1]==4){if(!j)break Yj; +b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;n=P(g,3)+b|0;while(1){Ea=h,Fa=Nq(K[b|0],P(K[e|0],100)>>>8|0,K[l|0]-128|0,K[n|0]-128|0),J[Ea>>2]=Fa;n=n+1|0;l=l+1|0;e=e+1|0;b=b+1|0;h=h+4|0;j=j-1|0;if(j)continue;break}break Yj}if(!j)break Yj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;while(1){Ea=h,Fa=dv(P(K[b|0],100)>>>8|0,K[e|0]-128|0,K[l|0]-128|0),J[Ea>>2]=Fa;l=l+1|0;e=e+1|0;b=b+1|0;h=h+4|0;j=j-1|0;if(j)continue;break}}break Kj;case 8:j=P(J[m+44>>2],J[m+40>>2]);h=J[m+672>>2];Zj:{if(L[m+356>> +1]==4){if(!j)break Zj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;n=P(g,3)+b|0;while(1){Ea=h,Fa=Nq(K[b|0],P(H[e|0],100)>>8,H[l|0]-128|0,H[n|0]-128|0),J[Ea>>2]=Fa;n=n+2|0;l=l+2|0;e=e+2|0;b=b+2|0;h=h+4|0;j=j-1|0;if(j)continue;break}break Zj}if(!j)break Zj;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;while(1){Ea=h,Fa=dv(P(H[b|0],100)>>8,H[e|0]-128|0,H[l|0]-128|0),J[Ea>>2]=Fa;l=l+2|0;e=e+2|0;b=b+2|0;h=h+4|0;j=j-1|0;if(j)continue;break}}break Kj;default:break Xj}fa(219546,220450,727,223608);B(); +case 7:if(L[m+50>>1]==8){j=P(J[m+44>>2],J[m+40>>2]);h=J[m+672>>2];_j:{if(L[m+356>>1]==4){if(!j)break _j;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;n=P(g,3)+b|0;while(1){Ea=h,Fa=lm(K[b|0]^255,K[e|0]^255,K[l|0]^255,K[n|0]^255),J[Ea>>2]=Fa;n=n+1|0;l=l+1|0;e=e+1|0;b=b+1|0;h=h+4|0;j=j-1|0;if(j)continue;break}break _j}if(!j)break _j;b=J[m+684>>2];g=J[m+700>>2];e=b+g|0;l=(g<<1)+b|0;while(1){Ea=h,Fa=lm(K[b|0]^255,K[e|0]^255,K[l|0]^255,0),J[Ea>>2]=Fa;l=l+1|0;e=e+1|0;b=b+1|0;h=h+4|0;j=j-1|0;if(j)continue; +break}}break Kj}fa(219546,220450,736,223608);B();default:break Mj}fa(219546,220450,741,223608);B()}l=0;b=P(J[m+44>>2],J[m+40>>2]);h=J[m+672>>2];$j:{if(L[m+356>>1]==2){if(!b)break $j;j=J[m+684>>2];e=j+J[m+700>>2]|0;if(b&1){g=K[e|0];J[h>>2]=g<<16|g<<8|K[j|0]<<24|g;e=e+1|0;j=j+1|0;h=h+4|0;l=b-1|0}else l=b;if((b|0)==1)break $j;while(1){b=K[e|0];J[h>>2]=b<<16|b<<8|K[j|0]<<24|b;b=K[e+1|0];J[h+4>>2]=b<<16|b<<8|K[j+1|0]<<24|b;e=e+2|0;j=j+2|0;h=h+8|0;l=l-2|0;if(l)continue;break}break $j}if(!b)break $j;j=J[m+ +684>>2];g=b&3;ak:{if(!g){e=b;break ak}e=b;while(1){J[h>>2]=P(K[j|0],65793)|-16777216;j=j+1|0;h=h+4|0;e=e-1|0;l=l+1|0;if((g|0)!=(l|0))continue;break}}if(b>>>0<4)break $j;while(1){J[h>>2]=P(K[j|0],65793)|-16777216;J[h+4>>2]=P(K[j+1|0],65793)|-16777216;J[h+8>>2]=P(K[j+2|0],65793)|-16777216;J[h+12>>2]=P(K[j+3|0],65793)|-16777216;j=j+4|0;h=h+16|0;e=e-4|0;if(e)continue;break}}}t=I[m+356>>1];if((t|0)>1])while(1){o=Dc(P(J[m+44>>2],J[m+40>>2]));J[(J[m+360>>2]+P(t-I[m+356>>1]|0,272)|0)+268>>2]=o;if(!o)break Bj; +bk:{if(L[m+50>>1]==8){b=J[m+700>>2];xc(o,J[m+684>>2]+P(b,t)|0,b);break bk}g=P(J[m+44>>2],J[m+40>>2]);if(!g)break bk;e=J[m+684>>2]+P(J[m+700>>2],t)|0;q=0;b=g;l=g&7;if(l)while(1){H[o|0]=K[e|0];e=e+2|0;o=o+1|0;b=b-1|0;q=q+1|0;if((l|0)!=(q|0))continue;break}if(g>>>0<8)break bk;while(1){H[o|0]=K[e|0];H[o+1|0]=K[e+2|0];H[o+2|0]=K[e+4|0];H[o+3|0]=K[e+6|0];H[o+4|0]=K[e+8|0];H[o+5|0]=K[e+10|0];H[o+6|0]=K[e+12|0];H[o+7|0]=K[e+14|0];e=e+16|0;o=o+8|0;b=b-8|0;if(b)continue;break}}t=t+1|0;if((t|0)>1])continue; +break}Mc(f);o=0;J[m+684>>2]=0;if(L[m+632>>1])break wj;ck:switch(J[m+36>>2]){case 0:case 2:break ck;default:break wj}b=Dc(600);J[m+636>>2]=b;if(!b)break Aj;Ac(b,0,600);I[m+632>>1]=1;b=J[m+636>>2];J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;f=J[m+44>>2];J[b+12>>2]=f;e=J[m+40>>2];J[b+24>>2]=f;J[b+20>>2]=e;J[b+16>>2]=e;e=I[m+356>>1];H[b+541|0]=255;H[b+40|0]=255;J[b+36>>2]=0;J[b+592>>2]=23;H[b+586|0]=0;I[b+584>>1]=1;H[b+566|0]=0;I[b+564>>1]=1;H[b+45|0]=0;H[b+41|0]=0;H[b+42|0]=0;H[b+43|0]=1;H[b+44|0]=0;H[b+74|0]= +1;H[b+72|0]=255;I[b+28>>1]=e;e=Dc(P(e,12));J[b+32>>2]=e;if(!e)break Aj;Ac(e,0,P(I[b+28>>1],12));e=4;dk:switch(J[m+52>>2]-3|0){case 1:e=5;case 0:o=L[m+356>>1]==(e|0)?-1:0;break;default:break dk}e=I[b+28>>1];ek:{if((e|0)<=0)break ek;g=e&3;f=J[b+32>>2];h=0;fk:{if(e>>>0<4){e=0;break fk}l=e&-4;e=0;t=0;while(1){j=f+P(e,12)|0;H[j+8|0]=0;I[j>>1]=o;j=f+P(e|1,12)|0;H[j+8|0]=0;I[j>>1]=o+1;j=f+P(e|2,12)|0;H[j+8|0]=0;I[j>>1]=o+2;j=f+P(e|3,12)|0;H[j+8|0]=0;I[j>>1]=o+3;e=e+4|0;o=o+4|0;t=t+4|0;if((l|0)!=(t|0))continue; +break}}if(!g)break ek;while(1){l=f+P(e,12)|0;H[l+8|0]=0;I[l>>1]=o;e=e+1|0;o=o+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}J[b+80>>2]=-65536;J[b+84>>2]=-65536;e=I[m+356>>1];J[b+88>>2]=e;Ea=b,Fa=Dc(e<<1),J[Ea+92>>2]=Fa;Ea=b,Fa=Dc(J[b+88>>2]<<1),J[Ea+96>>2]=Fa;Ea=b,Fa=Dc(J[b+88>>2]<<1),J[Ea+100>>2]=Fa;f=Dc(J[b+88>>2]<<1);J[b+104>>2]=f;l=J[b+92>>2];if(!l)break Aj;j=J[b+96>>2];if(!j)break Aj;h=J[b+100>>2];if(!h|!f)break Aj;n=J[b+88>>2];gk:{if((n|0)<=0)break gk;e=0;if((n|0)!=1){o=n&-2;t=0;while(1){g=e<< +1;I[g+l>>1]=0;I[g+j>>1]=65535;I[g+h>>1]=0;I[f+g>>1]=65535;g=g|2;I[g+l>>1]=0;I[g+j>>1]=65535;I[g+h>>1]=0;I[f+g>>1]=65535;e=e+2|0;t=t+2|0;if((o|0)!=(t|0))continue;break}}if(!(n&1))break gk;e=e<<1;I[e+l>>1]=0;I[e+j>>1]=65535;I[e+h>>1]=0;I[e+f>>1]=65535}o=0;hk:switch(J[m+36>>2]){case 0:e=b;b=Dc(P(J[m+40>>2],J[m+44>>2])<<2);J[e+372>>2]=b;o=-4;if(!b)break wj;xc(b,J[m+672>>2],P(J[m+40>>2],J[m+44>>2])<<2);o=0;break wj;case 2:break hk;default:break wj}J[b+372>>2]=J[m+672>>2];J[m+672>>2]=0;break wj}fa(220580, +220450,569,223608);B()}Mc(f);J[m+684>>2]=0}o=-4}if(!o)break ci;s=(o|0)==-3?-14:o;break bi;case 5:break bi;default:break di}fa(219546,220384,224,220566);B()}J[m+32>>2]=x;if(J[m+24>>2]>0)continue;break}s=-5}if(!s){Bi(i,J[m+40>>2],J[m+44>>2],24,20);j=J[m+672>>2];b=J[m+360>>2];ik:{if(!b)break ik;b=J[b+268>>2];if(!b)break ik;gl(i);d=b}jk:{if(!j)break jk;b=J[m+44>>2];if((b|0)==1)break jk;l=J[m+40>>2];if((l|0)<=0)break jk;b=b-2|0;while(1){e=b;b=0;if((l|0)>0)while(1){f=K[j|0]|K[j+1|0]<<8;g=K[j+2|0];H[u+19| +0]=0;H[u+18|0]=g;H[u+16|0]=f;H[u+17|0]=f>>>8;J[u+12>>2]=K[u+16|0]|K[u+17|0]<<8|(K[u+18|0]<<16|K[u+19|0]<<24);Qq(i,b,e,u+12|0,0);j=j+4|0;if(d){yh(i,b,e,K[d|0]);d=d+1|0}else d=0;b=b+1|0;l=J[m+40>>2];if((b|0)<(l|0))continue;break}b=e-1|0;if(e)continue;break}}uO(m);uc(m);e=1;break $h}Ad(i+72|0,43872,255);uO(m);uc(m)}e=J[i+332>>2]==-1&J[i+68>>2]==20}fc=u+32|0;if(e)break b;of(a+72|0,i+72|0);kc[J[J[v>>2]+20>>2]](v,ia,0)|0;kc[J[J[i>>2]+4>>2]](i);if(c)break c}b=K[45362]|K[45363]<<8|(K[45364]<<16|K[45365]<< +24);c=K[45358]|K[45359]<<8|(K[45360]<<16|K[45361]<<24);H[a+96|0]=c;H[a+97|0]=c>>>8;H[a+98|0]=c>>>16;H[a+99|0]=c>>>24;H[a+100|0]=b;H[a+101|0]=b>>>8;H[a+102|0]=b>>>16;H[a+103|0]=b>>>24;b=K[45354]|K[45355]<<8|(K[45356]<<16|K[45357]<<24);c=K[45350]|K[45351]<<8|(K[45352]<<16|K[45353]<<24);H[a+88|0]=c;H[a+89|0]=c>>>8;H[a+90|0]=c>>>16;H[a+91|0]=c>>>24;H[a+92|0]=b;H[a+93|0]=b>>>8;H[a+94|0]=b>>>16;H[a+95|0]=b>>>24;b=K[45346]|K[45347]<<8|(K[45348]<<16|K[45349]<<24);c=K[45342]|K[45343]<<8|(K[45344]<<16|K[45345]<< +24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[45338]|K[45339]<<8|(K[45340]<<16|K[45341]<<24);c=K[45334]|K[45335]<<8|(K[45336]<<16|K[45337]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;return 0}return 0}mF(a,i,1);kc[J[J[i>>2]+4>>2]](i);return 1}ba(a|0);B()}function _Ia(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,O=Q(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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;F=fc-96|0;fc=F;C=J[a+8>>2];a:{b:{c:{if(!J[a>>2]){e=P(J[C+16>>2]-J[C+8>>2]|0,J[C+20>>2]-J[C+12>>2]|0)<<2;g=ul(e);J[C+56>>2]=g;if(!g){Nc(J[a+32>>2],1,2350304,0);w=a+28|0;break b}Ac(g,0,e);break c}e=J[C+56>>2];if(!e)break c;uc(e);J[C+56>>2]=0}if(!J[J[a+28>>2]>>2])break a;V=J[a+16>>2];e=(J[V+28>>2]+P(J[V+24>>2],152)| +0)-152|0;ea=J[e>>2];ga=J[e+8>>2];S=J[a+20>>2];T=J[a+12>>2];ba=J[a+4>>2];w=a+28|0;d:{i=J[b+4>>2];e:{if((i|0)>0){g=J[b>>2];while(1){e=g+P(d,12)|0;if(!J[e>>2]){d=J[e+4>>2];break e}d=d+1|0;if((i|0)!=(d|0))continue;break}}d=0}if(d)break d;d=Ge(1,156);if(!d){Nc(J[a+32>>2],1,2351348,0);break b}J[d+140>>2]=0;g=0;c=J[b+4>>2];f:if((c|0)!=2147483647){i=J[b>>2];if((c|0)>0)while(1){s=P(g,12);if(!J[s+i>>2]){g=i+s|0;e=J[g+8>>2];if(e){kc[e|0](J[g+4>>2]);i=J[b>>2]}b=i+s|0;J[b+8>>2]=4853;J[b+4>>2]=d;e=1;break f}g= +g+1|0;if((c|0)!=(g|0))continue;break}g=ch(i,P(c,12)+12|0);e=0;if(!g)break f;J[b>>2]=g;e=J[b+4>>2];g=g+P(e,12)|0;J[g+8>>2]=4853;J[g+4>>2]=d;J[g>>2]=0;J[b+4>>2]=e+1;e=1}else e=0;if(e)break d;Nc(J[a+32>>2],1,2352002,0);b=J[d+116>>2];if(b){uc(b);J[d+116>>2]=0}b=J[d+120>>2];if(b){uc(b);J[d+120>>2]=0}uc(J[d+148>>2]);uc(d);break b}J[d+144>>2]=J[a+24>>2];ha=J[a+40>>2];Z=J[a+36>>2];U=J[a+32>>2];R=J[S+16>>2];e=J[S+808>>2];J[d+108>>2]=(J[T+16>>2]<<9)+2373264;k=J[C+20>>2]-J[C+12>>2]|0;g:{h:{i:{j:{p=J[C+16>>2]- +J[C+8>>2]|0;if(p>>>0<1025){if(k>>>0>=1025)break j;b=P(k,p);if(b>>>0>=4097)break i;c=J[d+116>>2];k:{l:{m:{if(b>>>0>M[d+132>>2]){uc(c);c=ul(b<<2);J[d+116>>2]=c;if(!c)break k;J[d+132>>2]=b;break m}if(!c)break l}Ac(c,0,b<<2)}c=J[d+120>>2];h=p+2|0;s=k+3>>>2|0;b=P(h,s+2|0);if(b>>>0<=M[d+136>>2]){g=b<<2;break h}uc(c);g=b<<2;c=ul(g);J[d+120>>2]=c;if(c)break h}b=0;break g}fa(2354489,2352722,1438,2375312);B()}fa(2354861,2352722,1439,2375312);B()}fa(2355249,2352722,1440,2375312);B()}J[d+136>>2]=b;Ac(c,0,g); i=J[d+120>>2];c=i;g=p+1|0;if(g>>>0>=7){b=h&-8;while(1){J[c+24>>2]=1226833920;J[c+28>>2]=1226833920;J[c+16>>2]=1226833920;J[c+20>>2]=1226833920;J[c+8>>2]=1226833920;J[c+12>>2]=1226833920;J[c>>2]=1226833920;J[c+4>>2]=1226833920;c=c+32|0;r=r+8|0;if((b|0)!=(r|0))continue;break}}b=h&7;if(b){r=0;while(1){J[c>>2]=1226833920;c=c+4|0;r=r+1|0;if((b|0)!=(r|0))continue;break}}c=i+(P(h,s+1|0)<<2)|0;if(g>>>0>=7){b=h&-8;r=0;while(1){J[c+24>>2]=1226833920;J[c+28>>2]=1226833920;J[c+16>>2]=1226833920;J[c+20>>2]=1226833920; J[c+8>>2]=1226833920;J[c+12>>2]=1226833920;J[c>>2]=1226833920;J[c+4>>2]=1226833920;c=c+32|0;r=r+8|0;if((b|0)!=(r|0))continue;break}}b=h&7;if(b){r=0;while(1){J[c>>2]=1226833920;c=c+4|0;r=r+1|0;if((b|0)!=(r|0))continue;break}}b=k&3;n:{if(!b)break n;r=(b|0)==1?1224736768:(b|0)==2?1207959552:1073741824;c=i+(P(h,s)<<2)|0;if(g>>>0>=7){b=h&-8;g=0;while(1){J[c+28>>2]=r;J[c+24>>2]=r;J[c+20>>2]=r;J[c+16>>2]=r;J[c+12>>2]=r;J[c+8>>2]=r;J[c+4>>2]=r;J[c>>2]=r;c=c+32|0;g=g+8|0;if((b|0)!=(g|0))continue;break}}b= -h&7;if(!b)break n;g=0;while(1){J[c>>2]=r;c=c+4|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}J[d+128>>2]=k;J[d+124>>2]=p;b=1}if(!b)break b;o:{G=e+J[C+24>>2]|0;if((G|0)>=31){if(!Z)break o;J[F+16>>2]=G;Hc(U,2,2341448,F+16|0);break b}NW(d);g=0;J[d+100>>2]=2361200;J[d+96>>2]=2359824;J[d+28>>2]=2359856;p:{q:{r:{s:{t:{c=J[C+48>>2];if(c>>>0>1)break t;if(!J[d+144>>2])break r;if(c)break t;break s}i=J[C+4>>2];if(c-1>>>0>=3){b=c&-4;while(1){e=f<<3;g=J[(i+(e|24)|0)+4>>2]+(J[(i+(e|16)|0)+4>>2]+(J[(i+(e|8)|0)+4>>2]+ -(J[(e+i|0)+4>>2]+g|0)|0)|0)|0;f=f+4|0;l=l+4|0;if((b|0)!=(l|0))continue;break}}b=c&3;if(!b)break s;e=0;while(1){g=J[(i+(f<<3)|0)+4>>2]+g|0;f=f+1|0;e=e+1|0;if((b|0)!=(e|0))continue;break}}e=g+2|0;if(e>>>0>M[d+152>>2]){b=Tg(J[d+148>>2],e);if(!b)break b;J[d+148>>2]=b;b=b+g|0;H[b|0]=0;H[b+1|0]=0;J[d+152>>2]=e;c=J[C+48>>2]}_=J[d+148>>2];if(!c)break q;g=J[C+4>>2];f=0;b=0;while(1){l=b<<3;e=l+g|0;tc(f+_|0,J[e>>2],J[e+4>>2]);g=J[C+4>>2];f=J[(l+g|0)+4>>2]+f|0;b=b+1|0;if(b>>>0>2])continue;break}break q}if((c| +h&7;if(!b)break n;g=0;while(1){J[c>>2]=r;c=c+4|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}J[d+128>>2]=k;J[d+124>>2]=p;b=1}if(!b)break b;o:{G=e+J[C+24>>2]|0;if((G|0)>=31){if(!Z)break o;J[F+16>>2]=G;Nc(U,2,2353344,F+16|0);break b}FY(d);g=0;J[d+100>>2]=2373104;J[d+96>>2]=2371728;J[d+28>>2]=2371760;p:{q:{r:{s:{t:{c=J[C+48>>2];if(c>>>0>1)break t;if(!J[d+144>>2])break r;if(c)break t;break s}i=J[C+4>>2];if(c-1>>>0>=3){b=c&-4;while(1){e=f<<3;g=J[(i+(e|24)|0)+4>>2]+(J[(i+(e|16)|0)+4>>2]+(J[(i+(e|8)|0)+4>>2]+ +(J[(e+i|0)+4>>2]+g|0)|0)|0)|0;f=f+4|0;l=l+4|0;if((b|0)!=(l|0))continue;break}}b=c&3;if(!b)break s;e=0;while(1){g=J[(i+(f<<3)|0)+4>>2]+g|0;f=f+1|0;e=e+1|0;if((b|0)!=(e|0))continue;break}}e=g+2|0;if(e>>>0>M[d+152>>2]){b=ch(J[d+148>>2],e);if(!b)break b;J[d+148>>2]=b;b=b+g|0;H[b|0]=0;H[b+1|0]=0;J[d+152>>2]=e;c=J[C+48>>2]}_=J[d+148>>2];if(!c)break q;g=J[C+4>>2];f=0;b=0;while(1){l=b<<3;e=l+g|0;xc(f+_|0,J[e>>2],J[e+4>>2]);g=J[C+4>>2];f=J[(l+g|0)+4>>2]+f|0;b=b+1|0;if(b>>>0>2])continue;break}break q}if((c| 0)!=1)break p;_=J[J[C+4>>2]>>2]}b=J[C+56>>2];if(b){ia=J[d+116>>2];J[d+116>>2]=b}if(J[C+40>>2]){ca=R&8;ja=R&1;ka=!(R&2);W=2;while(1){i=_+da|0;X=J[C>>2]+P($,24)|0;e=J[X>>2];Y=W>>>0<2&(J[C+24>>2]-4|0)>=(G|0)&ja;u:{if(Y){J[d+20>>2]=i;b=e+i|0;J[d+24>>2]=b;I[d+112>>1]=K[b|0]|K[b+1|0]<<8;H[b|0]=255;H[J[d+24>>2]+1|0]=255;J[d+8>>2]=0;J[d>>2]=0;J[d+16>>2]=i;break u}J[d+20>>2]=i;b=e+i|0;J[d+24>>2]=b;I[d+112>>1]=K[b|0]|K[b+1|0]<<8;H[b|0]=255;H[J[d+24>>2]+1|0]=255;J[d+104>>2]=d+28;J[d+16>>2]=i;J[d+12>>2]=0;b= e?K[i|0]<<16:16711680;J[d>>2]=b;g=1;e=i+1|0;l=K[i+1|0];v:{if(K[i|0]==255){if(l>>>0>=144){J[d+12>>2]=1;b=b|65280;break v}J[d+16>>2]=e;g=0;b=b+(l<<9)|0;break v}J[d+16>>2]=e;b=b|l<<8}J[d+8>>2]=g;J[d+4>>2]=32768;J[d>>2]=b<<7}la=J[X>>2];w:{if(!J[X+8>>2]|(G|0)<=0)break w;ma=Y|ka;aa=0;while(1){x:{y:{z:switch(W|0){case 0:if(Y){b=1<>>1|b;n=J[d+124>>2];k=n<<2;b=(k+J[d+120>>2]|0)+12|0;g=J[d+116>>2];r=0;e=J[d+128>>2];if(e>>>0>=4){if(!n)break x;j=P(n,3);p=n<<1;m=0-o|0;while(1){c=p<<2;e=0;while(1){l=b;b= J[b>>2];A:{if(!b)break A;if(!(!(b&495)|b&2097168)){b=J[d>>2];i=J[d+8>>2];B:{if(i)break B;i=(b|0)==255;s=J[d+16>>2];b=K[s|0];C:{if(!i){J[d>>2]=b;J[d+16>>2]=s+1;break C}if(b>>>0<=143){J[d>>2]=b;J[d+16>>2]=s+1;i=7;break B}b=255;J[d>>2]=255}i=8}i=i-1|0;J[d+8>>2]=i;D:{if(!(b>>>i&1))break D;E:{if(i)break E;i=(b|0)==255;s=J[d+16>>2];b=K[s|0];F:{if(!i){J[d>>2]=b;J[d+16>>2]=s+1;break F}if(b>>>0<=143){J[d>>2]=b;J[d+16>>2]=s+1;i=7;break E}b=255;J[d>>2]=255}i=8}i=i-1|0;J[d+8>>2]=i;s=b>>>i&1;J[g>>2]=s?m:o;i=J[d+ @@ -1343,66 +1369,66 @@ s=J[d+16>>2];b=K[s|0];J:{if(!i){J[d>>2]=b;J[d+16>>2]=s+1;break J}if(b>>>0<=143){ 1;s=7;break T}J[d>>2]=e;J[d+16>>2]=i+1}s=8}s=s-1|0;J[d+8>>2]=s;V:{if(!(e>>>s&1))break V;i=(P(f,n)<<2)+g|0;W:{if(s)break W;l=(e|0)!=255;s=J[d+16>>2];e=K[s|0];X:{if(!l){if(e>>>0>=144){e=255;J[d>>2]=255;break X}J[d>>2]=e;J[d+16>>2]=s+1;s=7;break W}J[d>>2]=e;J[d+16>>2]=s+1}s=8}l=s-1|0;J[d+8>>2]=l;s=i;i=e>>>l&1;J[s>>2]=i?p:o;l=J[d+124>>2];J[k>>2]=J[k>>2]|32<>2]=J[b>>2]|(i<<19|16)<>2]=J[b+4>>2]|8<>2]=J[e+4>>2]|32768;J[e>>2]=J[e>>2]|i<<31|65536;e=e-4| 0;J[e>>2]=J[e>>2]|131072}if((f|0)!=3)break V;e=(l<<2)+b|0;J[e+4>>2]=J[e+4>>2]|4;J[e+12>>2]=J[e+12>>2]|1;J[e+8>>2]=J[e+8>>2]|i<<18|2}c=J[b>>2]|2097152<>2]=c;e=J[d+128>>2]}i=e;f=f+1|0;if(f>>>0>>0)continue;break}}g=g+4|0;b=b+4|0;y=y+1|0;if((n|0)!=(y|0))continue;break}break y}v=0;Y:{Z:{_:{y=J[d+124>>2];if(!((y|0)!=64|J[d+128>>2]!=64)){b=1<>>1|b;l=0-i|0;g=J[d+120>>2]+268|0;f=J[d+8>>2];e=J[d+4>>2];c=J[d>>2];q=J[d+104>>2];b=J[d+116>>2];if(R&8)break _;while(1){x=0;while(1){s=b;r=g;g=J[g>> 2];if(g){$:{if(g&2097168)break $;b=g&495;if(!b)break $;p=(K[b+J[d+108>>2]|0]<<2)+d|0;q=p+28|0;k=J[q>>2];b=J[k>>2];e=e-b|0;aa:{if(c>>>16>>>0>>0){h=J[k+4>>2];o=p;p=b>>>0>e>>>0;J[o+28>>2]=J[k+(p?8:12)>>2];while(1){ba:{if(f)break ba;k=J[d+16>>2];e=k+1|0;j=K[k+1|0];if(K[k|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ba}J[d+16>>2]=e;c=(j<<9)+c|0;f=7;break ba}J[d+16>>2]=e;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?h:!h;break aa}c=c-(b<<16)|0; -if(!(e&32768)){h=J[k+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[k+(b?12:8)>>2];while(1){ca:{if(f)break ca;k=J[d+16>>2];p=k+1|0;j=K[k+1|0];if(K[k|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ca}J[d+16>>2]=p;c=(j<<9)+c|0;f=7;break ca}J[d+16>>2]=p;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!h:h;break aa}b=J[k+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>17&4|(J[m>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));h=(K[p+2363440|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0; -k=K[p+2363696|0];da:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){ea:{if(f)break ea;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ea}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break ea}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break da}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){fa:{if(f)break fa;h=J[d+16>>2]; +if(!(e&32768)){h=J[k+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[k+(b?12:8)>>2];while(1){ca:{if(f)break ca;k=J[d+16>>2];p=k+1|0;j=K[k+1|0];if(K[k|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ca}J[d+16>>2]=p;c=(j<<9)+c|0;f=7;break ca}J[d+16>>2]=p;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!h:h;break aa}b=J[k+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>17&4|(J[m>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));h=(K[p+2375344|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0; +k=K[p+2375600|0];da:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){ea:{if(f)break ea;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ea}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break ea}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break da}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){fa:{if(f)break fa;h=J[d+16>>2]; p=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break fa}J[d+16>>2]=p;c=(n<<9)+c|0;f=7;break fa}J[d+16>>2]=p;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break da}b=J[n+4>>2]}p=b^k;J[s>>2]=p?l:i;J[m>>2]=J[m>>2]|32;J[r+4>>2]=J[r+4>>2]|8;b=r-268|0;J[b>>2]=J[b>>2]|131072;b=r-260|0;J[b>>2]=J[b>>2]|32768;b=r-264|0;J[b>>2]=J[b>>2]|p<<31|65536;g=p<<19|g|16}g=g|2097152}if(!(!(g&3960)|g&16777344)){k=g>>>3|0;p=(K[J[d+108>>2]+(k&495)| 0]<<2)+d|0;q=p+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;ga:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=p;p=b>>>0>e>>>0;J[o+28>>2]=J[h+(p?8:12)>>2];while(1){ha:{if(f)break ha;h=J[d+16>>2];e=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ha}J[d+16>>2]=e;c=(m<<9)+c|0;f=7;break ha}J[d+16>>2]=e;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break ga}c=c-(b<<16)|0;if(!(e&32768)){j=J[h+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[h+(b?12:8)>>2];while(1){ia:{if(f)break ia; -h=J[d+16>>2];p=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ia}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break ia}J[d+16>>2]=p;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break ga}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>20&4|(J[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|k&170)));h=(K[p+2363440|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2363696|0];ja:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2]; +h=J[d+16>>2];p=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ia}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break ia}J[d+16>>2]=p;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break ga}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>20&4|(J[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|k&170)));h=(K[p+2375344|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2375600|0];ja:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2]; while(1){ka:{if(f)break ka;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ka}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break ka}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break ja}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){la:{if(f)break la;h=J[d+16>>2];p=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break la}J[d+ 16>>2]=p;c=(n<<9)+c|0;f=7;break la}J[d+16>>2]=p;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break ja}b=J[n+4>>2]}b=b^k;J[s+256>>2]=b?l:i;J[m>>2]=J[m>>2]|256;J[r+4>>2]=J[r+4>>2]|64;g=b<<22|g|128}g=g|16777216}if(!(!(g&31680)|g&134218752)){k=g>>>6|0;p=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;q=p+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;ma:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=p;p=b>>>0>e>>>0;J[o+28>>2]=J[h+(p?8:12)>>2];while(1){na:{if(f)break na;h=J[d+16>>2];e=h+1|0;m=K[h+1|0];if(K[h| 0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break na}J[d+16>>2]=e;c=(m<<9)+c|0;f=7;break na}J[d+16>>2]=e;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break ma}c=c-(b<<16)|0;if(!(e&32768)){j=J[h+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[h+(b?12:8)>>2];while(1){oa:{if(f)break oa;h=J[d+16>>2];p=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break oa}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break oa}J[d+16>>2]=p;f=8;c=(m<<8)+ -c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break ma}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>23&4|(J[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|k&170)));h=(K[p+2363440|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2363696|0];pa:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){qa:{if(f)break qa;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break qa}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break qa}J[d+ +c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break ma}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>23&4|(J[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|k&170)));h=(K[p+2375344|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2375600|0];pa:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){qa:{if(f)break qa;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break qa}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break qa}J[d+ 16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break pa}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){ra:{if(f)break ra;h=J[d+16>>2];p=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ra}J[d+16>>2]=p;c=(n<<9)+c|0;f=7;break ra}J[d+16>>2]=p;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break pa}b=J[n+4>>2]}b=b^k;J[s+512>>2]=b?l:i;J[m>> 2]=J[m>>2]|2048;J[r+4>>2]=J[r+4>>2]|512;g=b<<25|g|1024}g=g|134217728}if(!(!(g&253440)|g&1073750016)){k=g>>>9|0;p=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;q=p+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;sa:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=p;p=b>>>0>e>>>0;J[o+28>>2]=J[h+(p?8:12)>>2];while(1){ta:{if(f)break ta;h=J[d+16>>2];e=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ta}J[d+16>>2]=e;c=(m<<9)+c|0;f=7;break ta}J[d+16>>2]=e;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>> 0<32768)continue;break}e=b;b=p?j:!j;break sa}c=c-(b<<16)|0;if(!(e&32768)){j=J[h+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[h+(b?12:8)>>2];while(1){ua:{if(f)break ua;h=J[d+16>>2];p=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ua}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break ua}J[d+16>>2]=p;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break sa}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>26&4|(J[m>>2]>>>28&1|(g>>>21&16|(g>>>25&64|k&170)));h=(K[p+ -2363440|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2363696|0];va:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){wa:{if(f)break wa;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break wa}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break wa}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break va}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+ +2375344|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2375600|0];va:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){wa:{if(f)break wa;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break wa}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break wa}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break va}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+ (b?12:8)>>2];while(1){xa:{if(f)break xa;h=J[d+16>>2];p=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break xa}J[d+16>>2]=p;c=(n<<9)+c|0;f=7;break xa}J[d+16>>2]=p;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break va}b=J[n+4>>2]}b=b^k;J[s+768>>2]=b?l:i;J[m>>2]=J[m>>2]|16384;J[r+4>>2]=J[r+4>>2]|4096;J[r+260>>2]=J[r+260>>2]|4;J[r+268>>2]=J[r+268>>2]|1;J[r+264>>2]=J[r+264>>2]|b<<18|2;g=b<<28|g|8192}g=g|1073741824}J[r>>2]=g}g=r+ 4|0;b=s+4|0;x=x+1|0;if((x|0)!=64)continue;break}g=r+12|0;b=s+772|0;s=v>>>0<60;v=v+4|0;if(s)continue;break}break Z}b=1<>>1|b;s=J[d+120>>2];g=(s+(y<<2)|0)+12|0;b=J[d+128>>2];f=J[d+8>>2];e=J[d+4>>2];c=J[d>>2];q=J[d+104>>2];r=J[d+116>>2];ya:{if(R&8){za:{if(b>>>0<4){l=0;break za}if(y){l=0;s=0-i|0;z=P(y,12);m=y<<3;while(1){w=0;while(1){p=g;g=J[g>>2];if(g){Aa:{if(g&2097168)break Aa;b=g&495;if(!b)break Aa;k=(K[b+J[d+108>>2]|0]<<2)+d|0;q=k+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;Ba:{if(c>>>16>>>0>=b>>>0){c= c-(b<<16)|0;o=J[h+4>>2];if(e&32768)break Ba;j=J[h+4>>2];b=b>>>0>e>>>0;J[k+28>>2]=J[h+(b?12:8)>>2];while(1){Ca:{if(f)break Ca;h=J[d+16>>2];k=h+1|0;n=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=k;f=8;c=(n<<8)+c|0;break Ca}if(n>>>0<=143){J[d+16>>2]=k;c=(n<<9)+c|0;f=7;break Ca}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}o=b?!j:j;break Ba}j=J[h+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[h+(k?8:12)>>2];while(1){Da:{if(f)break Da;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]!= -255){J[d+16>>2]=e;f=8;c=(n<<8)+c|0;break Da}if(n>>>0<=143){J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Da}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?j:!j}if(o){o=p-4|0;k=J[p+4>>2]>>>17&4|(J[o>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));j=(K[k+2363440|0]<<2)+d|0;q=j+28|0;t=J[q>>2];b=J[t>>2];e=e-b|0;h=K[k+2363696|0];Ea:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[t+4>>2];if(e&32768)break Ea;n=J[t+4>>2];b=b>>>0>e>>>0;J[j+28>>2]=J[t+(b?12:8)>>2];while(1){Fa:{if(f)break Fa; +255){J[d+16>>2]=e;f=8;c=(n<<8)+c|0;break Da}if(n>>>0<=143){J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Da}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?j:!j}if(o){o=p-4|0;k=J[p+4>>2]>>>17&4|(J[o>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));j=(K[k+2375344|0]<<2)+d|0;q=j+28|0;t=J[q>>2];b=J[t>>2];e=e-b|0;h=K[k+2375600|0];Ea:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[t+4>>2];if(e&32768)break Ea;n=J[t+4>>2];b=b>>>0>e>>>0;J[j+28>>2]=J[t+(b?12:8)>>2];while(1){Fa:{if(f)break Fa; j=J[d+16>>2];k=j+1|0;t=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=k;f=8;c=(t<<8)+c|0;break Fa}if(t>>>0<=143){J[d+16>>2]=k;c=(t<<9)+c|0;f=7;break Fa}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!n:n;break Ea}n=J[t+4>>2];k=b>>>0>e>>>0;J[j+28>>2]=J[t+(k?8:12)>>2];while(1){Ga:{if(f)break Ga;j=J[d+16>>2];e=j+1|0;t=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(t<<8)+c|0;break Ga}if(t>>>0<=143){J[d+16>>2]=e;c=(t<<9)+c|0;f=7;break Ga}J[d+12>>2]=J[d+12>>2]+1;c=c+ 65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;k=k?n:!n}b=k^h;J[r>>2]=b?s:i;J[o>>2]=J[o>>2]|32;J[p+4>>2]=J[p+4>>2]|8;g=b<<19|g|16}g=g|2097152}if(!(!(g&3960)|g&16777344)){h=g>>>3|0;k=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;q=k+28|0;j=J[q>>2];b=J[j>>2];e=e-b|0;Ha:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;o=J[j+4>>2];if(e&32768)break Ha;n=J[j+4>>2];b=b>>>0>e>>>0;J[k+28>>2]=J[j+(b?12:8)>>2];while(1){Ia:{if(f)break Ia;j=J[d+16>>2];k=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=k;f=8;c=(o<<8)+ c|0;break Ia}if(o>>>0<=143){J[d+16>>2]=k;c=(o<<9)+c|0;f=7;break Ia}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}o=b?!n:n;break Ha}n=J[j+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[j+(k?8:12)>>2];while(1){Ja:{if(f)break Ja;j=J[d+16>>2];e=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(o<<8)+c|0;break Ja}if(o>>>0<=143){J[d+16>>2]=e;c=(o<<9)+c|0;f=7;break Ja}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o= -k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>20&4|(J[t>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));n=(K[k+2363440|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2363696|0];h=(y<<2)+r|0;Ka:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break Ka;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){La:{if(f)break La;n=J[d+16>>2];k=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=k;f=8;c=(u<<8)+c|0;break La}if(u>>>0<=143){J[d+16>>2]=k;c=(u<<9)+c|0;f=7;break La}J[d+12>>2]=J[d+12>>2]+1;c=c+ +k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>20&4|(J[t>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));n=(K[k+2375344|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2375600|0];h=(y<<2)+r|0;Ka:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break Ka;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){La:{if(f)break La;n=J[d+16>>2];k=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=k;f=8;c=(u<<8)+c|0;break La}if(u>>>0<=143){J[d+16>>2]=k;c=(u<<9)+c|0;f=7;break La}J[d+12>>2]=J[d+12>>2]+1;c=c+ 65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!o:o;break Ka}o=J[u+4>>2];k=b>>>0>e>>>0;J[n+28>>2]=J[u+(k?8:12)>>2];while(1){Ma:{if(f)break Ma;n=J[d+16>>2];e=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=e;f=8;c=(u<<8)+c|0;break Ma}if(u>>>0<=143){J[d+16>>2]=e;c=(u<<9)+c|0;f=7;break Ma}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;k=k?o:!o}b=k^j;J[h>>2]=b?s:i;J[t>>2]=J[t>>2]|256;J[p+4>>2]=J[p+4>>2]|64;g=b<<22|g|128}g=g|16777216}if(!(!(g& 31680)|g&134218752)){h=g>>>6|0;k=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;q=k+28|0;j=J[q>>2];b=J[j>>2];e=e-b|0;Na:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;o=J[j+4>>2];if(e&32768)break Na;n=J[j+4>>2];b=b>>>0>e>>>0;J[k+28>>2]=J[j+(b?12:8)>>2];while(1){Oa:{if(f)break Oa;j=J[d+16>>2];k=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=k;f=8;c=(o<<8)+c|0;break Oa}if(o>>>0<=143){J[d+16>>2]=k;c=(o<<9)+c|0;f=7;break Oa}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}o=b?!n:n;break Na}n= -J[j+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[j+(k?8:12)>>2];while(1){Pa:{if(f)break Pa;j=J[d+16>>2];e=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(o<<8)+c|0;break Pa}if(o>>>0<=143){J[d+16>>2]=e;c=(o<<9)+c|0;f=7;break Pa}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>23&4|(J[t>>2]>>>25&1|(g>>>18&16|(g>>>22&64|h&170)));n=(K[k+2363440|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2363696|0];h=m+r|0;Qa:{if(c>>> +J[j+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[j+(k?8:12)>>2];while(1){Pa:{if(f)break Pa;j=J[d+16>>2];e=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(o<<8)+c|0;break Pa}if(o>>>0<=143){J[d+16>>2]=e;c=(o<<9)+c|0;f=7;break Pa}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>23&4|(J[t>>2]>>>25&1|(g>>>18&16|(g>>>22&64|h&170)));n=(K[k+2375344|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2375600|0];h=m+r|0;Qa:{if(c>>> 16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break Qa;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){Ra:{if(f)break Ra;n=J[d+16>>2];k=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=k;f=8;c=(u<<8)+c|0;break Ra}if(u>>>0<=143){J[d+16>>2]=k;c=(u<<9)+c|0;f=7;break Ra}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!o:o;break Qa}o=J[u+4>>2];k=b>>>0>e>>>0;J[n+28>>2]=J[u+(k?8:12)>>2];while(1){Sa:{if(f)break Sa;n=J[d+16>>2];e=n+1|0;u=K[n+ 1|0];if(K[n|0]!=255){J[d+16>>2]=e;f=8;c=(u<<8)+c|0;break Sa}if(u>>>0<=143){J[d+16>>2]=e;c=(u<<9)+c|0;f=7;break Sa}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;k=k?o:!o}b=k^j;J[h>>2]=b?s:i;J[t>>2]=J[t>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;g=b<<25|g|1024}g=g|134217728}if(!(!(g&253440)|g&1073750016)){h=g>>>9|0;k=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;q=k+28|0;j=J[q>>2];b=J[j>>2];e=e-b|0;Ta:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;o=J[j+4>>2];if(e&32768)break Ta;n= J[j+4>>2];b=b>>>0>e>>>0;J[k+28>>2]=J[j+(b?12:8)>>2];while(1){Ua:{if(f)break Ua;j=J[d+16>>2];k=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=k;f=8;c=(o<<8)+c|0;break Ua}if(o>>>0<=143){J[d+16>>2]=k;c=(o<<9)+c|0;f=7;break Ua}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}o=b?!n:n;break Ta}n=J[j+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[j+(k?8:12)>>2];while(1){Va:{if(f)break Va;j=J[d+16>>2];e=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(o<<8)+c|0;break Va}if(o>>> -0<=143){J[d+16>>2]=e;c=(o<<9)+c|0;f=7;break Va}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>26&4|(J[t>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));n=(K[k+2363440|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2363696|0];h=r+z|0;Wa:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break Wa;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){Xa:{if(f)break Xa;n=J[d+16>>2];k=n+1|0;u=K[n+1| +0<=143){J[d+16>>2]=e;c=(o<<9)+c|0;f=7;break Va}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>26&4|(J[t>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));n=(K[k+2375344|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2375600|0];h=r+z|0;Wa:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break Wa;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){Xa:{if(f)break Xa;n=J[d+16>>2];k=n+1|0;u=K[n+1| 0];if(K[n|0]!=255){J[d+16>>2]=k;f=8;c=(u<<8)+c|0;break Xa}if(u>>>0<=143){J[d+16>>2]=k;c=(u<<9)+c|0;f=7;break Xa}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!o:o;break Wa}o=J[u+4>>2];k=b>>>0>e>>>0;J[n+28>>2]=J[u+(k?8:12)>>2];while(1){Ya:{if(f)break Ya;n=J[d+16>>2];e=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=e;f=8;c=(u<<8)+c|0;break Ya}if(u>>>0<=143){J[d+16>>2]=e;c=(u<<9)+c|0;f=7;break Ya}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b= b<<1;if(b>>>0<32768)continue;break}e=b;k=k?o:!o}b=k^j;J[h>>2]=b?s:i;J[t>>2]=J[t>>2]|16384;J[p+4>>2]=J[p+4>>2]|4096;k=p+(J[d+124>>2]<<2)|0;J[k+4>>2]=J[k+4>>2]|4;J[k+12>>2]=J[k+12>>2]|1;J[k+8>>2]=J[k+8>>2]|b<<18|2;g=b<<28|g|8192}g=g|1073741824}J[p>>2]=g}g=p+4|0;r=r+4|0;w=w+1|0;if((y|0)!=(w|0))continue;break}g=p+12|0;r=r+z|0;l=l+4|0;b=J[d+128>>2];if(l>>>0<(b&-4)>>>0)continue;break}break za}g=b&-4;g=(g>>>0<=4?4:g)-1|0;l=(g&-4)+4|0;g=(s+(g<<1&-8)|0)+20|0}J[d+8>>2]=f;J[d+4>>2]=e;J[d>>2]=c;J[d+104>>2]=q; -if(!y|b>>>0<=l>>>0)break ya;while(1){e=(b|0)==(l|0);f=0;b=l;if(!e)while(1){DW(d,g,(P(f,y)<<2)+r|0,i,f,J[d+124>>2]+2|0,1);f=f+1|0;b=J[d+128>>2];if(f>>>0>>0)continue;break}g=g+4|0;r=r+4|0;v=v+1|0;if((y|0)!=(v|0))continue;break}break ya}Za:{if(b>>>0<4){l=0;break Za}if(y){l=0;s=0-i|0;z=P(y,12);m=y<<3;while(1){w=0;while(1){p=g;g=J[g>>2];if(g){_a:{if(g&2097168)break _a;b=g&495;if(!b)break _a;k=(K[b+J[d+108>>2]|0]<<2)+d|0;q=k+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;$a:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0; +if(!y|b>>>0<=l>>>0)break ya;while(1){e=(b|0)==(l|0);f=0;b=l;if(!e)while(1){tY(d,g,(P(f,y)<<2)+r|0,i,f,J[d+124>>2]+2|0,1);f=f+1|0;b=J[d+128>>2];if(f>>>0>>0)continue;break}g=g+4|0;r=r+4|0;v=v+1|0;if((y|0)!=(v|0))continue;break}break ya}Za:{if(b>>>0<4){l=0;break Za}if(y){l=0;s=0-i|0;z=P(y,12);m=y<<3;while(1){w=0;while(1){p=g;g=J[g>>2];if(g){_a:{if(g&2097168)break _a;b=g&495;if(!b)break _a;k=(K[b+J[d+108>>2]|0]<<2)+d|0;q=k+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;$a:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0; o=J[h+4>>2];if(e&32768)break $a;j=J[h+4>>2];b=b>>>0>e>>>0;J[k+28>>2]=J[h+(b?12:8)>>2];while(1){ab:{if(f)break ab;h=J[d+16>>2];k=h+1|0;n=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=k;f=8;c=(n<<8)+c|0;break ab}if(n>>>0<=143){J[d+16>>2]=k;c=(n<<9)+c|0;f=7;break ab}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}o=b?!j:j;break $a}j=J[h+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[h+(k?8:12)>>2];while(1){bb:{if(f)break bb;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]!=255){J[d+ -16>>2]=e;f=8;c=(n<<8)+c|0;break bb}if(n>>>0<=143){J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break bb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?j:!j}if(o){o=p-4|0;k=J[p+4>>2]>>>17&4|(J[o>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));j=(K[k+2363440|0]<<2)+d|0;q=j+28|0;t=J[q>>2];b=J[t>>2];e=e-b|0;h=K[k+2363696|0];cb:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[t+4>>2];if(e&32768)break cb;n=J[t+4>>2];b=b>>>0>e>>>0;J[j+28>>2]=J[t+(b?12:8)>>2];while(1){db:{if(f)break db; +16>>2]=e;f=8;c=(n<<8)+c|0;break bb}if(n>>>0<=143){J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break bb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?j:!j}if(o){o=p-4|0;k=J[p+4>>2]>>>17&4|(J[o>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));j=(K[k+2375344|0]<<2)+d|0;q=j+28|0;t=J[q>>2];b=J[t>>2];e=e-b|0;h=K[k+2375600|0];cb:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[t+4>>2];if(e&32768)break cb;n=J[t+4>>2];b=b>>>0>e>>>0;J[j+28>>2]=J[t+(b?12:8)>>2];while(1){db:{if(f)break db; j=J[d+16>>2];k=j+1|0;t=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=k;f=8;c=(t<<8)+c|0;break db}if(t>>>0<=143){J[d+16>>2]=k;c=(t<<9)+c|0;f=7;break db}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!n:n;break cb}n=J[t+4>>2];k=b>>>0>e>>>0;J[j+28>>2]=J[t+(k?8:12)>>2];while(1){eb:{if(f)break eb;j=J[d+16>>2];e=j+1|0;t=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(t<<8)+c|0;break eb}if(t>>>0<=143){J[d+16>>2]=e;c=(t<<9)+c|0;f=7;break eb}J[d+12>>2]=J[d+12>>2]+1;c=c+ 65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;k=k?n:!n}k=k^h;J[r>>2]=k?s:i;J[o>>2]=J[o>>2]|32;J[p+4>>2]=J[p+4>>2]|8;b=p+(-2-J[d+124>>2]<<2)|0;J[b+4>>2]=J[b+4>>2]|32768;J[b>>2]=J[b>>2]|k<<31|65536;b=b-4|0;J[b>>2]=J[b>>2]|131072;g=k<<19|g|16}g=g|2097152}if(!(!(g&3960)|g&16777344)){h=g>>>3|0;k=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;q=k+28|0;j=J[q>>2];b=J[j>>2];e=e-b|0;fb:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;o=J[j+4>>2];if(e&32768)break fb;n=J[j+4>>2];b=b>>>0>e>>>0;J[k+28>>2]=J[j+(b? 12:8)>>2];while(1){gb:{if(f)break gb;j=J[d+16>>2];k=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=k;f=8;c=(o<<8)+c|0;break gb}if(o>>>0<=143){J[d+16>>2]=k;c=(o<<9)+c|0;f=7;break gb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}o=b?!n:n;break fb}n=J[j+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[j+(k?8:12)>>2];while(1){hb:{if(f)break hb;j=J[d+16>>2];e=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(o<<8)+c|0;break hb}if(o>>>0<=143){J[d+16>>2]=e;c=(o<<9)+c|0; -f=7;break hb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>20&4|(J[t>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));n=(K[k+2363440|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2363696|0];h=(y<<2)+r|0;ib:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break ib;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){jb:{if(f)break jb;n=J[d+16>>2];k=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]= +f=7;break hb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>20&4|(J[t>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));n=(K[k+2375344|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2375600|0];h=(y<<2)+r|0;ib:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break ib;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){jb:{if(f)break jb;n=J[d+16>>2];k=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]= k;f=8;c=(u<<8)+c|0;break jb}if(u>>>0<=143){J[d+16>>2]=k;c=(u<<9)+c|0;f=7;break jb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!o:o;break ib}o=J[u+4>>2];k=b>>>0>e>>>0;J[n+28>>2]=J[u+(k?8:12)>>2];while(1){kb:{if(f)break kb;n=J[d+16>>2];e=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=e;f=8;c=(u<<8)+c|0;break kb}if(u>>>0<=143){J[d+16>>2]=e;c=(u<<9)+c|0;f=7;break kb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e= b;k=k?o:!o}b=k^j;J[h>>2]=b?s:i;J[t>>2]=J[t>>2]|256;J[p+4>>2]=J[p+4>>2]|64;g=b<<22|g|128}g=g|16777216}if(!(!(g&31680)|g&134218752)){h=g>>>6|0;k=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;q=k+28|0;j=J[q>>2];b=J[j>>2];e=e-b|0;lb:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;o=J[j+4>>2];if(e&32768)break lb;n=J[j+4>>2];b=b>>>0>e>>>0;J[k+28>>2]=J[j+(b?12:8)>>2];while(1){mb:{if(f)break mb;j=J[d+16>>2];k=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=k;f=8;c=(o<<8)+c|0;break mb}if(o>>>0<=143){J[d+16>>2]=k;c=(o<<9)+c|0;f=7;break mb}J[d+ 12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}o=b?!n:n;break lb}n=J[j+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[j+(k?8:12)>>2];while(1){nb:{if(f)break nb;j=J[d+16>>2];e=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(o<<8)+c|0;break nb}if(o>>>0<=143){J[d+16>>2]=e;c=(o<<9)+c|0;f=7;break nb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>23&4|(J[t>>2]>>>25&1|(g>>>18&16|(g>>> -22&64|h&170)));n=(K[k+2363440|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2363696|0];h=m+r|0;ob:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break ob;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){pb:{if(f)break pb;n=J[d+16>>2];k=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=k;f=8;c=(u<<8)+c|0;break pb}if(u>>>0<=143){J[d+16>>2]=k;c=(u<<9)+c|0;f=7;break pb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!o:o;break ob}o= +22&64|h&170)));n=(K[k+2375344|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2375600|0];h=m+r|0;ob:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break ob;o=J[u+4>>2];b=b>>>0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){pb:{if(f)break pb;n=J[d+16>>2];k=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=k;f=8;c=(u<<8)+c|0;break pb}if(u>>>0<=143){J[d+16>>2]=k;c=(u<<9)+c|0;f=7;break pb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!o:o;break ob}o= J[u+4>>2];k=b>>>0>e>>>0;J[n+28>>2]=J[u+(k?8:12)>>2];while(1){qb:{if(f)break qb;n=J[d+16>>2];e=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=e;f=8;c=(u<<8)+c|0;break qb}if(u>>>0<=143){J[d+16>>2]=e;c=(u<<9)+c|0;f=7;break qb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;k=k?o:!o}b=k^j;J[h>>2]=b?s:i;J[t>>2]=J[t>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;g=b<<25|g|1024}g=g|134217728}if(!(!(g&253440)|g&1073750016)){h=g>>>9|0;k=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;q=k+ 28|0;j=J[q>>2];b=J[j>>2];e=e-b|0;rb:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;o=J[j+4>>2];if(e&32768)break rb;n=J[j+4>>2];b=b>>>0>e>>>0;J[k+28>>2]=J[j+(b?12:8)>>2];while(1){sb:{if(f)break sb;j=J[d+16>>2];k=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=k;f=8;c=(o<<8)+c|0;break sb}if(o>>>0<=143){J[d+16>>2]=k;c=(o<<9)+c|0;f=7;break sb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}o=b?!n:n;break rb}n=J[j+4>>2];o=k;k=b>>>0>e>>>0;J[o+28>>2]=J[j+(k?8:12)>>2];while(1){tb:{if(f)break tb; -j=J[d+16>>2];e=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(o<<8)+c|0;break tb}if(o>>>0<=143){J[d+16>>2]=e;c=(o<<9)+c|0;f=7;break tb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>26&4|(J[t>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));n=(K[k+2363440|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2363696|0];h=r+z|0;ub:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break ub;o=J[u+4>>2];b=b>>> +j=J[d+16>>2];e=j+1|0;o=K[j+1|0];if(K[j|0]!=255){J[d+16>>2]=e;f=8;c=(o<<8)+c|0;break tb}if(o>>>0<=143){J[d+16>>2]=e;c=(o<<9)+c|0;f=7;break tb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;o=k?n:!n}if(o){t=p-4|0;k=J[p+4>>2]>>>26&4|(J[t>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));n=(K[k+2375344|0]<<2)+d|0;q=n+28|0;u=J[q>>2];b=J[u>>2];e=e-b|0;j=K[k+2375600|0];h=r+z|0;ub:{if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;k=J[u+4>>2];if(e&32768)break ub;o=J[u+4>>2];b=b>>> 0>e>>>0;J[n+28>>2]=J[u+(b?12:8)>>2];while(1){vb:{if(f)break vb;n=J[d+16>>2];k=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=k;f=8;c=(u<<8)+c|0;break vb}if(u>>>0<=143){J[d+16>>2]=k;c=(u<<9)+c|0;f=7;break vb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}k=b?!o:o;break ub}o=J[u+4>>2];k=b>>>0>e>>>0;J[n+28>>2]=J[u+(k?8:12)>>2];while(1){wb:{if(f)break wb;n=J[d+16>>2];e=n+1|0;u=K[n+1|0];if(K[n|0]!=255){J[d+16>>2]=e;f=8;c=(u<<8)+c|0;break wb}if(u>>>0<=143){J[d+ 16>>2]=e;c=(u<<9)+c|0;f=7;break wb}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;k=k?o:!o}b=k^j;J[h>>2]=b?s:i;J[t>>2]=J[t>>2]|16384;J[p+4>>2]=J[p+4>>2]|4096;k=p+(J[d+124>>2]<<2)|0;J[k+4>>2]=J[k+4>>2]|4;J[k+12>>2]=J[k+12>>2]|1;J[k+8>>2]=J[k+8>>2]|b<<18|2;g=b<<28|g|8192}g=g|1073741824}J[p>>2]=g}g=p+4|0;r=r+4|0;w=w+1|0;if((y|0)!=(w|0))continue;break}g=p+12|0;r=r+z|0;l=l+4|0;b=J[d+128>>2];if(l>>>0<(b&-4)>>>0)continue;break}break Za}g=b&-4;g=(g>>>0<=4? -4:g)-1|0;l=(g&-4)+4|0;g=(s+(g<<1&-8)|0)+20|0}J[d+8>>2]=f;J[d+4>>2]=e;J[d>>2]=c;J[d+104>>2]=q;if(!y|b>>>0<=l>>>0)break ya;while(1){e=(b|0)==(l|0);f=0;b=l;if(!e)while(1){DW(d,g,(P(f,y)<<2)+r|0,i,f,J[d+124>>2]+2|0,0);f=f+1|0;b=J[d+128>>2];if(f>>>0>>0)continue;break}g=g+4|0;r=r+4|0;v=v+1|0;if((y|0)!=(v|0))continue;break}}break Y}while(1){x=0;while(1){s=b;r=g;g=J[g>>2];if(g){xb:{if(g&2097168)break xb;b=g&495;if(!b)break xb;p=(K[b+J[d+108>>2]|0]<<2)+d|0;q=p+28|0;k=J[q>>2];b=J[k>>2];e=e-b|0;yb:{if(c>>> +4:g)-1|0;l=(g&-4)+4|0;g=(s+(g<<1&-8)|0)+20|0}J[d+8>>2]=f;J[d+4>>2]=e;J[d>>2]=c;J[d+104>>2]=q;if(!y|b>>>0<=l>>>0)break ya;while(1){e=(b|0)==(l|0);f=0;b=l;if(!e)while(1){tY(d,g,(P(f,y)<<2)+r|0,i,f,J[d+124>>2]+2|0,0);f=f+1|0;b=J[d+128>>2];if(f>>>0>>0)continue;break}g=g+4|0;r=r+4|0;v=v+1|0;if((y|0)!=(v|0))continue;break}}break Y}while(1){x=0;while(1){s=b;r=g;g=J[g>>2];if(g){xb:{if(g&2097168)break xb;b=g&495;if(!b)break xb;p=(K[b+J[d+108>>2]|0]<<2)+d|0;q=p+28|0;k=J[q>>2];b=J[k>>2];e=e-b|0;yb:{if(c>>> 16>>>0>>0){h=J[k+4>>2];o=p;p=b>>>0>e>>>0;J[o+28>>2]=J[k+(p?8:12)>>2];while(1){zb:{if(f)break zb;k=J[d+16>>2];e=k+1|0;j=K[k+1|0];if(K[k|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break zb}J[d+16>>2]=e;c=(j<<9)+c|0;f=7;break zb}J[d+16>>2]=e;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?h:!h;break yb}c=c-(b<<16)|0;if(!(e&32768)){h=J[k+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[k+(b?12:8)>>2];while(1){Ab:{if(f)break Ab;k=J[d+16>>2];p=k+1|0;j=K[k+1|0];if(K[k| -0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ab}J[d+16>>2]=p;c=(j<<9)+c|0;f=7;break Ab}J[d+16>>2]=p;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!h:h;break yb}b=J[k+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>17&4|(J[m>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));h=(K[p+2363440|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2363696|0];Bb:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){Cb:{if(f)break Cb;h=J[d+16>>2]; +0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ab}J[d+16>>2]=p;c=(j<<9)+c|0;f=7;break Ab}J[d+16>>2]=p;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!h:h;break yb}b=J[k+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>17&4|(J[m>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));h=(K[p+2375344|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2375600|0];Bb:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){Cb:{if(f)break Cb;h=J[d+16>>2]; e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Cb}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Cb}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break Bb}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){Db:{if(f)break Db;h=J[d+16>>2];p=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Db}J[d+16>>2]=p;c=(n<<9)+c|0;f=7;break Db}J[d+ 16>>2]=p;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break Bb}b=J[n+4>>2]}b=b^k;J[s>>2]=b?l:i;J[m>>2]=J[m>>2]|32;J[r+4>>2]=J[r+4>>2]|8;g=b<<19|g|16}g=g|2097152}if(!(!(g&3960)|g&16777344)){k=g>>>3|0;p=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;q=p+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;Eb:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=p;p=b>>>0>e>>>0;J[o+28>>2]=J[h+(p?8:12)>>2];while(1){Fb:{if(f)break Fb;h=J[d+16>>2];e=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1; c=c+65280|0;f=8;break Fb}J[d+16>>2]=e;c=(m<<9)+c|0;f=7;break Fb}J[d+16>>2]=e;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break Eb}c=c-(b<<16)|0;if(!(e&32768)){j=J[h+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[h+(b?12:8)>>2];while(1){Gb:{if(f)break Gb;h=J[d+16>>2];p=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Gb}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break Gb}J[d+16>>2]=p;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue; -break}b=b?!j:j;break Eb}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>20&4|(J[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|k&170)));h=(K[p+2363440|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2363696|0];Hb:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){Ib:{if(f)break Ib;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ib}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Ib}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<< +break}b=b?!j:j;break Eb}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>20&4|(J[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|k&170)));h=(K[p+2375344|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2375600|0];Hb:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){Ib:{if(f)break Ib;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ib}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Ib}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<< 1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break Hb}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){Jb:{if(f)break Jb;h=J[d+16>>2];p=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Jb}J[d+16>>2]=p;c=(n<<9)+c|0;f=7;break Jb}J[d+16>>2]=p;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break Hb}b=J[n+4>>2]}b=b^k;J[s+256>>2]=b?l:i;J[m>>2]=J[m>>2]|256;J[r+4>>2]=J[r+4>>2]|64;g=b<<22| g|128}g=g|16777216}if(!(!(g&31680)|g&134218752)){k=g>>>6|0;p=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;q=p+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;Kb:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=p;p=b>>>0>e>>>0;J[o+28>>2]=J[h+(p?8:12)>>2];while(1){Lb:{if(f)break Lb;h=J[d+16>>2];e=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Lb}J[d+16>>2]=e;c=(m<<9)+c|0;f=7;break Lb}J[d+16>>2]=e;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break Kb}c=c- -(b<<16)|0;if(!(e&32768)){j=J[h+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[h+(b?12:8)>>2];while(1){Mb:{if(f)break Mb;h=J[d+16>>2];p=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Mb}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break Mb}J[d+16>>2]=p;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break Kb}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>23&4|(J[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|k&170)));h=(K[p+2363440|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>> -2];e=e-b|0;k=K[p+2363696|0];Nb:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){Ob:{if(f)break Ob;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ob}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Ob}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break Nb}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){Pb:{if(f)break Pb;h= +(b<<16)|0;if(!(e&32768)){j=J[h+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[h+(b?12:8)>>2];while(1){Mb:{if(f)break Mb;h=J[d+16>>2];p=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Mb}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break Mb}J[d+16>>2]=p;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break Kb}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>23&4|(J[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|k&170)));h=(K[p+2375344|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>> +2];e=e-b|0;k=K[p+2375600|0];Nb:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){Ob:{if(f)break Ob;h=J[d+16>>2];e=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ob}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Ob}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break Nb}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){Pb:{if(f)break Pb;h= J[d+16>>2];p=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Pb}J[d+16>>2]=p;c=(n<<9)+c|0;f=7;break Pb}J[d+16>>2]=p;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break Nb}b=J[n+4>>2]}b=b^k;J[s+512>>2]=b?l:i;J[m>>2]=J[m>>2]|2048;J[r+4>>2]=J[r+4>>2]|512;g=b<<25|g|1024}g=g|134217728}if(!(!(g&253440)|g&1073750016)){k=g>>>9|0;p=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;q=p+28|0;h=J[q>>2];b=J[h>>2];e=e-b|0;Qb:{if(c>>>16>>>0>>0){j= J[h+4>>2];o=p;p=b>>>0>e>>>0;J[o+28>>2]=J[h+(p?8:12)>>2];while(1){Rb:{if(f)break Rb;h=J[d+16>>2];e=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Rb}J[d+16>>2]=e;c=(m<<9)+c|0;f=7;break Rb}J[d+16>>2]=e;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break Qb}c=c-(b<<16)|0;if(!(e&32768)){j=J[h+4>>2];b=b>>>0>e>>>0;J[p+28>>2]=J[h+(b?12:8)>>2];while(1){Sb:{if(f)break Sb;h=J[d+16>>2];p=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>> -0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Sb}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break Sb}J[d+16>>2]=p;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break Qb}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>26&4|(J[m>>2]>>>28&1|(g>>>21&16|(g>>>25&64|k&170)));h=(K[p+2363440|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2363696|0];Tb:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){Ub:{if(f)break Ub;h=J[d+16>>2];e=h+1|0;n=K[h+ +0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Sb}J[d+16>>2]=p;c=(m<<9)+c|0;f=7;break Sb}J[d+16>>2]=p;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break Qb}b=J[h+4>>2]}if(b){m=r-4|0;p=J[r+4>>2]>>>26&4|(J[m>>2]>>>28&1|(g>>>21&16|(g>>>25&64|k&170)));h=(K[p+2375344|0]<<2)+d|0;q=h+28|0;n=J[q>>2];b=J[n>>2];e=e-b|0;k=K[p+2375600|0];Tb:{if(c>>>16>>>0>>0){j=J[n+4>>2];p=b>>>0>e>>>0;J[h+28>>2]=J[n+(p?8:12)>>2];while(1){Ub:{if(f)break Ub;h=J[d+16>>2];e=h+1|0;n=K[h+ 1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ub}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Ub}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=b;b=p?j:!j;break Tb}c=c-(b<<16)|0;if(!(e&32768)){j=J[n+4>>2];b=b>>>0>e>>>0;J[h+28>>2]=J[n+(b?12:8)>>2];while(1){Vb:{if(f)break Vb;h=J[d+16>>2];p=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Vb}J[d+16>>2]=p;c=(n<<9)+c|0;f=7;break Vb}J[d+16>>2]=p; f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=b?!j:j;break Tb}b=J[n+4>>2]}b=b^k;J[s+768>>2]=b?l:i;J[m>>2]=J[m>>2]|16384;J[r+4>>2]=J[r+4>>2]|4096;J[r+260>>2]=J[r+260>>2]|4;J[r+268>>2]=J[r+268>>2]|1;J[r+264>>2]=J[r+264>>2]|b<<18|2;g=b<<28|g|8192}g=g|1073741824}J[r>>2]=g}g=r+4|0;b=s+4|0;x=x+1|0;if((x|0)!=64)continue;break}g=r+12|0;b=s+772|0;s=v>>>0<60;v=v+4|0;if(s)continue;break}}J[d+8>>2]=f;J[d+4>>2]=e;J[d>>2]=c;J[d+104>>2]=q}break y;case 1:if(Y){t=1<>>1|0;o=J[d+124>>2]; h=o<<2;b=(h+J[d+120>>2]|0)+12|0;g=J[d+116>>2];c=0;e=J[d+128>>2];if(e>>>0>=4){if(!o)break x;m=P(o,3);k=o<<1;n=0-t|0;while(1){p=k<<2;e=0;while(1){l=b;b=J[b>>2];Wb:{if(!b)break Wb;if((b&2097168)==16){b=J[d>>2];w=J[d+8>>2];Xb:{if(w)break Xb;i=(b|0)==255;s=J[d+16>>2];b=K[s|0];Yb:{if(!i){J[d>>2]=b;J[d+16>>2]=s+1;break Yb}if(b>>>0<=143){J[d>>2]=b;J[d+16>>2]=s+1;w=7;break Xb}b=255;J[d>>2]=255}w=8}i=w-1|0;J[d+8>>2]=i;i=b>>>i&1;b=J[g>>2];J[g>>2]=((i|0)==(b>>>31|0)?n:t)+b;b=J[l>>2]|1048576;J[l>>2]=b}if((b&16777344)== @@ -1433,133 +1459,133 @@ J[d+12>>2]+1;c=c+65280|0;f=8;break Sc}J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break Sc}J[d break}e=e?!i:i;break Rc}e=J[l+4>>2]}if(!e){l=s;break Mc}e=J[r>>2];g=J[e>>2];b=b-g|0;Uc:{if(c>>>16>>>0>>0){h=J[e+4>>2];l=b>>>0>>0;e=J[(l?8:12)+e>>2];J[r>>2]=e;while(1){Vc:{if(f)break Vc;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Vc}J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Vc}J[d+16>>2]=b;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;i=l?h:!h;break Uc}c=c-(g<<16)|0;if(!(b&32768)){h=J[e+4>>2];g=b>>>0>>0; e=J[(g?12:8)+e>>2];J[r>>2]=e;while(1){Wc:{if(f)break Wc;i=J[d+16>>2];l=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Wc}J[d+16>>2]=l;c=(j<<9)+c|0;f=7;break Wc}J[d+16>>2]=l;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}i=g?!h:h;break Uc}i=J[e+4>>2]}g=J[e>>2];b=b-g|0;Xc:{if(c>>>16>>>0>>0){h=J[e+4>>2];l=e;e=b>>>0>>0;J[r>>2]=J[l+(e?8:12)>>2];while(1){Yc:{if(f)break Yc;l=J[d+16>>2];b=l+1|0;j=K[l+1|0];if(K[l|0]==255){if(j>>>0>= 144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Yc}J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Yc}J[d+16>>2]=b;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;e=e?h:!h;break Xc}c=c-(g<<16)|0;if(!(b&32768)){h=J[e+4>>2];l=e;e=b>>>0>>0;J[r>>2]=J[l+(e?12:8)>>2];while(1){Zc:{if(f)break Zc;l=J[d+16>>2];g=l+1|0;j=K[l+1|0];if(K[l|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Zc}J[d+16>>2]=g;c=(j<<9)+c|0;f=7;break Zc}J[d+16>>2]=g;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<< -1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break Xc}e=J[e+4>>2]}g=0;l=r;_c:{$c:{ad:{bd:{cd:switch(e|i<<1){case 0:j=k-4|0;l=J[k+4>>2]>>>17&4|J[j>>2]>>>19&1;e=(K[l+2363440|0]<<2)+d|0;i=J[e+28>>2];g=J[i>>2];b=b-g|0;dd:{if(c>>>16>>>0>>0){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?8:12)>>2];while(1){ed:{if(f)break ed;i=J[d+16>>2];b=i+1|0;m=K[i+1|0];if(K[i|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ed}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break ed}J[d+16>>2]=b;f=8;c=(m<< -8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;e=e?h:!h;break dd}c=c-(g<<16)|0;if(!(b&32768)){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?12:8)>>2];while(1){fd:{if(f)break fd;i=J[d+16>>2];g=i+1|0;m=K[i+1|0];if(K[i|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break fd}J[d+16>>2]=g;c=(m<<9)+c|0;f=7;break fd}J[d+16>>2]=g;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break dd}e=J[i+4>>2]}g=e^K[l+2363696|0];J[p>>2]=g?t:z;J[j>>2]=J[j>> +1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break Xc}e=J[e+4>>2]}g=0;l=r;_c:{$c:{ad:{bd:{cd:switch(e|i<<1){case 0:j=k-4|0;l=J[k+4>>2]>>>17&4|J[j>>2]>>>19&1;e=(K[l+2375344|0]<<2)+d|0;i=J[e+28>>2];g=J[i>>2];b=b-g|0;dd:{if(c>>>16>>>0>>0){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?8:12)>>2];while(1){ed:{if(f)break ed;i=J[d+16>>2];b=i+1|0;m=K[i+1|0];if(K[i|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ed}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break ed}J[d+16>>2]=b;f=8;c=(m<< +8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;e=e?h:!h;break dd}c=c-(g<<16)|0;if(!(b&32768)){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?12:8)>>2];while(1){fd:{if(f)break fd;i=J[d+16>>2];g=i+1|0;m=K[i+1|0];if(K[i|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break fd}J[d+16>>2]=g;c=(m<<9)+c|0;f=7;break fd}J[d+16>>2]=g;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break dd}e=J[i+4>>2]}g=e^K[l+2375600|0];J[p>>2]=g?t:z;J[j>>2]=J[j>> 2]|32;J[k+4>>2]=J[k+4>>2]|8;e=k-268|0;J[e>>2]=J[e>>2]|131072;e=k-260|0;J[e>>2]=J[e>>2]|32768;e=k-264|0;J[e>>2]=J[e>>2]|g<<31|65536;l=g<<19;e=(K[J[d+108>>2]+2|0]<<2)+d|0;i=J[e+28>>2];g=J[i>>2];b=b-g|0;gd:{if(c>>>16>>>0>>0){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?8:12)>>2];while(1){hd:{if(f)break hd;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break hd}J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break hd}J[d+16>>2]=b;f=8;c=(j<<8)+c|0}f=f-1|0;c= c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;e=e?h:!h;break gd}c=c-(g<<16)|0;if(!(b&32768)){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?12:8)>>2];while(1){id:{if(f)break id;i=J[d+16>>2];g=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break id}J[d+16>>2]=g;c=(j<<9)+c|0;f=7;break id}J[d+16>>2]=g;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break gd}e=J[i+4>>2]}g=l|16;if(!e)break bd;break;case 3:break _c;case 2:break ad; -case 1:break cd;default:break Nc}m=k-4|0;i=J[k+4>>2]>>>20&4|(J[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|g>>>3&170)));l=(K[i+2363440|0]<<2)+d|0;h=J[l+28>>2];e=J[h>>2];b=b-e|0;jd:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]=J[h+(l?8:12)>>2];while(1){kd:{if(f)break kd;h=J[d+16>>2];b=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break kd}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break kd}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue; -break}b=e;e=l?j:!j;break jd}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[l+28>>2]=J[h+(e?12:8)>>2];while(1){ld:{if(f)break ld;h=J[d+16>>2];l=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ld}J[d+16>>2]=l;c=(n<<9)+c|0;f=7;break ld}J[d+16>>2]=l;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break jd}e=J[h+4>>2]}e=e^K[i+2363696|0];J[p+256>>2]=e?t:z;J[m>>2]=J[m>>2]|256;J[k+4>>2]=J[k+4>>2]|64;g=e<<22|g|128}l=(K[J[d+ +case 1:break cd;default:break Nc}m=k-4|0;i=J[k+4>>2]>>>20&4|(J[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|g>>>3&170)));l=(K[i+2375344|0]<<2)+d|0;h=J[l+28>>2];e=J[h>>2];b=b-e|0;jd:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]=J[h+(l?8:12)>>2];while(1){kd:{if(f)break kd;h=J[d+16>>2];b=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break kd}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break kd}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue; +break}b=e;e=l?j:!j;break jd}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[l+28>>2]=J[h+(e?12:8)>>2];while(1){ld:{if(f)break ld;h=J[d+16>>2];l=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ld}J[d+16>>2]=l;c=(n<<9)+c|0;f=7;break ld}J[d+16>>2]=l;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break jd}e=J[h+4>>2]}e=e^K[i+2375600|0];J[p+256>>2]=e?t:z;J[m>>2]=J[m>>2]|256;J[k+4>>2]=J[k+4>>2]|64;g=e<<22|g|128}l=(K[J[d+ 108>>2]+(g>>>6&495)|0]<<2)+d|0;i=J[l+28>>2];e=J[i>>2];b=b-e|0;md:{if(c>>>16>>>0>>0){h=J[i+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]=J[i+(l?8:12)>>2];while(1){nd:{if(f)break nd;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break nd}J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break nd}J[d+16>>2]=b;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=l?h:!h;break md}c=c-(e<<16)|0;if(!(b&32768)){h=J[i+4>>2];e=b>>>0>>0;J[l+28>>2]=J[i+(e?12: -8)>>2];while(1){od:{if(f)break od;i=J[d+16>>2];l=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break od}J[d+16>>2]=l;c=(j<<9)+c|0;f=7;break od}J[d+16>>2]=l;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break md}e=J[i+4>>2]}if(!e)break $c}m=k-4|0;i=J[k+4>>2]>>>23&4|(J[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|g>>>6&170)));l=(K[i+2363440|0]<<2)+d|0;h=J[l+28>>2];e=J[h>>2];b=b-e|0;pd:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=l;l=b>>>0>>0; +8)>>2];while(1){od:{if(f)break od;i=J[d+16>>2];l=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break od}J[d+16>>2]=l;c=(j<<9)+c|0;f=7;break od}J[d+16>>2]=l;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break md}e=J[i+4>>2]}if(!e)break $c}m=k-4|0;i=J[k+4>>2]>>>23&4|(J[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|g>>>6&170)));l=(K[i+2375344|0]<<2)+d|0;h=J[l+28>>2];e=J[h>>2];b=b-e|0;pd:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=l;l=b>>>0>>0; J[o+28>>2]=J[h+(l?8:12)>>2];while(1){qd:{if(f)break qd;h=J[d+16>>2];b=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break qd}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break qd}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=l?j:!j;break pd}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[l+28>>2]=J[h+(e?12:8)>>2];while(1){rd:{if(f)break rd;h=J[d+16>>2];l=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>> -2]+1;c=c+65280|0;f=8;break rd}J[d+16>>2]=l;c=(n<<9)+c|0;f=7;break rd}J[d+16>>2]=l;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break pd}e=J[h+4>>2]}e=e^K[i+2363696|0];J[p+512>>2]=e?t:z;J[m>>2]=J[m>>2]|2048;J[k+4>>2]=J[k+4>>2]|512;g=e<<25|g|1024}i=(K[J[d+108>>2]+(g>>>9&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];e=J[h>>2];b=b-e|0;sd:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[h+(i?8:12)>>2];while(1){td:{if(f)break td;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h| +2]+1;c=c+65280|0;f=8;break rd}J[d+16>>2]=l;c=(n<<9)+c|0;f=7;break rd}J[d+16>>2]=l;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break pd}e=J[h+4>>2]}e=e^K[i+2375600|0];J[p+512>>2]=e?t:z;J[m>>2]=J[m>>2]|2048;J[k+4>>2]=J[k+4>>2]|512;g=e<<25|g|1024}i=(K[J[d+108>>2]+(g>>>9&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];e=J[h>>2];b=b-e|0;sd:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[h+(i?8:12)>>2];while(1){td:{if(f)break td;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h| 0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break td}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break td}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?j:!j;break sd}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[i+28>>2]=J[h+(e?12:8)>>2];while(1){ud:{if(f)break ud;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ud}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break ud}J[d+16>>2]=i;f=8;c=(m<<8)+ -c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break sd}e=J[h+4>>2]}if(!e)break Nc}E=k-4|0;x=J[k+4>>2]>>>26&4|(J[E>>2]>>>28&1|(g>>>21&16|(g>>>25&64|g>>>9&170)));h=(K[x+2363440|0]<<2)+d|0;l=h+28|0;i=J[l>>2];e=J[i>>2];b=b-e|0;if(c>>>16>>>0>>0){j=J[i+4>>2];o=i;i=b>>>0>>0;J[h+28>>2]=J[o+(i?8:12)>>2];while(1){vd:{if(f)break vd;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break vd}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break vd}J[d+ +c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break sd}e=J[h+4>>2]}if(!e)break Nc}E=k-4|0;x=J[k+4>>2]>>>26&4|(J[E>>2]>>>28&1|(g>>>21&16|(g>>>25&64|g>>>9&170)));h=(K[x+2375344|0]<<2)+d|0;l=h+28|0;i=J[l>>2];e=J[i>>2];b=b-e|0;if(c>>>16>>>0>>0){j=J[i+4>>2];o=i;i=b>>>0>>0;J[h+28>>2]=J[o+(i?8:12)>>2];while(1){vd:{if(f)break vd;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break vd}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break vd}J[d+ 16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?j:!j;break Oc}c=c-(e<<16)|0;if(b&32768)break Qc;j=J[i+4>>2];e=b>>>0>>0;J[h+28>>2]=J[(e?12:8)+i>>2];while(1){wd:{if(f)break wd;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break wd}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break wd}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break Oc}xd:{if(g&2097168)break xd;i=(K[J[d+ 108>>2]+(g&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];e=J[h>>2];b=b-e|0;yd:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[h+(i?8:12)>>2];while(1){zd:{if(f)break zd;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break zd}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break zd}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?j:!j;break yd}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[i+28>>2]=J[h+(e? -12:8)>>2];while(1){Ad:{if(f)break Ad;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ad}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break Ad}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break yd}e=J[h+4>>2]}if(!e)break xd;n=k-4|0;h=J[k+4>>2]>>>17&4|(J[n>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));i=(K[h+2363440|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Bd:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0< +12:8)>>2];while(1){Ad:{if(f)break Ad;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ad}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break Ad}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break yd}e=J[h+4>>2]}if(!e)break xd;n=k-4|0;h=J[k+4>>2]>>>17&4|(J[n>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));i=(K[h+2375344|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Bd:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0< e>>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){Cd:{if(f)break Cd;j=J[d+16>>2];b=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Cd}J[d+16>>2]=b;c=(o<<9)+c|0;f=7;break Cd}J[d+16>>2]=b;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break Bd}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){Dd:{if(f)break Dd;j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+ -12>>2]+1;c=c+65280|0;f=8;break Dd}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break Dd}J[d+16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break Bd}e=J[j+4>>2]}i=e^K[h+2363696|0];J[p>>2]=i?t:z;J[n>>2]=J[n>>2]|32;J[k+4>>2]=J[k+4>>2]|8;e=k-268|0;J[e>>2]=J[e>>2]|131072;e=k-260|0;J[e>>2]=J[e>>2]|32768;e=k-264|0;J[e>>2]=J[e>>2]|i<<31|65536;g=i<<19|g|16}Ed:{if(g&16777344)break Ed;h=g>>>3|0;i=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Fd:{if(c>>>16>>> +12>>2]+1;c=c+65280|0;f=8;break Dd}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break Dd}J[d+16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break Bd}e=J[j+4>>2]}i=e^K[h+2375600|0];J[p>>2]=i?t:z;J[n>>2]=J[n>>2]|32;J[k+4>>2]=J[k+4>>2]|8;e=k-268|0;J[e>>2]=J[e>>2]|131072;e=k-260|0;J[e>>2]=J[e>>2]|32768;e=k-264|0;J[e>>2]=J[e>>2]|i<<31|65536;g=i<<19|g|16}Ed:{if(g&16777344)break Ed;h=g>>>3|0;i=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Fd:{if(c>>>16>>> 0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){Gd:{if(f)break Gd;j=J[d+16>>2];b=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Gd}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break Gd}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break Fd}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){Hd:{if(f)break Hd;j=J[d+16>>2];i=j+1|0;n=K[j+1|0];if(K[j|0]== -255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Hd}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break Hd}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break Fd}e=J[j+4>>2]}if(!e)break Ed;n=k-4|0;h=J[k+4>>2]>>>20&4|(J[n>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));i=(K[h+2363440|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Id:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){Jd:{if(f)break Jd;j=J[d+16>>2];b=j+1| +255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Hd}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break Hd}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break Fd}e=J[j+4>>2]}if(!e)break Ed;n=k-4|0;h=J[k+4>>2]>>>20&4|(J[n>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));i=(K[h+2375344|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Id:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){Jd:{if(f)break Jd;j=J[d+16>>2];b=j+1| 0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Jd}J[d+16>>2]=b;c=(o<<9)+c|0;f=7;break Jd}J[d+16>>2]=b;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break Id}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){Kd:{if(f)break Kd;j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Kd}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break Kd}J[d+ -16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break Id}e=J[j+4>>2]}e=e^K[h+2363696|0];J[p+256>>2]=e?t:z;J[n>>2]=J[n>>2]|256;J[k+4>>2]=J[k+4>>2]|64;g=e<<22|g|128}Ld:{if(g&134218752)break Ld;h=g>>>6|0;i=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Md:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){Nd:{if(f)break Nd;j=J[d+16>>2];b=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+ +16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break Id}e=J[j+4>>2]}e=e^K[h+2375600|0];J[p+256>>2]=e?t:z;J[n>>2]=J[n>>2]|256;J[k+4>>2]=J[k+4>>2]|64;g=e<<22|g|128}Ld:{if(g&134218752)break Ld;h=g>>>6|0;i=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Md:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){Nd:{if(f)break Nd;j=J[d+16>>2];b=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+ 12>>2]+1;c=c+65280|0;f=8;break Nd}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break Nd}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break Md}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){Od:{if(f)break Od;j=J[d+16>>2];i=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Od}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break Od}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue; -break}e=e?!m:m;break Md}e=J[j+4>>2]}if(!e)break Ld;n=k-4|0;h=J[k+4>>2]>>>23&4|(J[n>>2]>>>25&1|(g>>>18&16|(g>>>22&64|h&170)));i=(K[h+2363440|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Pd:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){Qd:{if(f)break Qd;j=J[d+16>>2];b=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Qd}J[d+16>>2]=b;c=(o<<9)+c|0;f=7;break Qd}J[d+16>>2]=b;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1; -if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break Pd}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){Rd:{if(f)break Rd;j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Rd}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break Rd}J[d+16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break Pd}e=J[j+4>>2]}e=e^K[h+2363696|0];J[p+512>>2]=e?t:z;J[n>>2]=J[n>>2]|2048;J[k+4>>2]=J[k+4>>2]| +break}e=e?!m:m;break Md}e=J[j+4>>2]}if(!e)break Ld;n=k-4|0;h=J[k+4>>2]>>>23&4|(J[n>>2]>>>25&1|(g>>>18&16|(g>>>22&64|h&170)));i=(K[h+2375344|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;Pd:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){Qd:{if(f)break Qd;j=J[d+16>>2];b=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Qd}J[d+16>>2]=b;c=(o<<9)+c|0;f=7;break Qd}J[d+16>>2]=b;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1; +if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break Pd}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){Rd:{if(f)break Rd;j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Rd}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break Rd}J[d+16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break Pd}e=J[j+4>>2]}e=e^K[h+2375600|0];J[p+512>>2]=e?t:z;J[n>>2]=J[n>>2]|2048;J[k+4>>2]=J[k+4>>2]| 512;g=e<<25|g|1024}if(g&1073750016)break Nc;i=b;h=g>>>9|0;b=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=b+28|0;j=J[l>>2];e=J[j>>2];i=i-e|0;Sd:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=b;b=e>>>0>i>>>0;J[o+28>>2]=J[j+(b?8:12)>>2];while(1){Td:{if(f)break Td;j=J[d+16>>2];i=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Td}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break Td}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}i=e;b=b?m:!m;break Sd}c=c-(e<< -16)|0;if(!(i&32768)){m=J[j+4>>2];o=b;b=e>>>0>i>>>0;J[o+28>>2]=J[j+(b?12:8)>>2];while(1){Ud:{if(f)break Ud;j=J[d+16>>2];e=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ud}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Ud}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;i=i<<1;if(i>>>0<32768)continue;break}b=b?!m:m;break Sd}b=J[j+4>>2]}if(!b){b=i;break Nc}e=i;E=k-4|0;x=J[k+4>>2]>>>26&4|(J[E>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));h=(K[x+2363440|0]<<2)+d|0;l=h+28|0; +16)|0;if(!(i&32768)){m=J[j+4>>2];o=b;b=e>>>0>i>>>0;J[o+28>>2]=J[j+(b?12:8)>>2];while(1){Ud:{if(f)break Ud;j=J[d+16>>2];e=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ud}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Ud}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;i=i<<1;if(i>>>0<32768)continue;break}b=b?!m:m;break Sd}b=J[j+4>>2]}if(!b){b=i;break Nc}e=i;E=k-4|0;x=J[k+4>>2]>>>26&4|(J[E>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));h=(K[x+2375344|0]<<2)+d|0;l=h+28|0; i=J[l>>2];b=J[i>>2];e=e-b|0;if(c>>>16>>>0>>0){j=J[i+4>>2];e=b>>>0>e>>>0;J[h+28>>2]=J[(e?8:12)+i>>2];while(1){Vd:{if(f)break Vd;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Vd}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break Vd}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?j:!j;break Oc}c=c-(b<<16)|0;if(!(e&32768))break Pc;b=e}e=J[i+4>>2];break Oc}j=J[i+4>>2];o=i;i=b>>>0>e>>>0;J[h+28>>2]=J[o+(i?12:8)>>2]; -while(1){Wd:{if(f)break Wd;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Wd}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Wd}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?!j:j}e=e^K[x+2363696|0];J[p+768>>2]=e?t:z;J[E>>2]=J[E>>2]|16384;J[k+4>>2]=J[k+4>>2]|4096;J[k+260>>2]=J[k+260>>2]|4;J[k+268>>2]=J[k+268>>2]|1;J[k+264>>2]=J[k+264>>2]|e<<18|2;g=e<<28|g|8192}J[k>>2]=g&-1226833921}g=k+4|0;e=p+4|0;q=q+1|0; +while(1){Wd:{if(f)break Wd;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Wd}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Wd}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?!j:j}e=e^K[x+2375600|0];J[p+768>>2]=e?t:z;J[E>>2]=J[E>>2]|16384;J[k+4>>2]=J[k+4>>2]|4096;J[k+260>>2]=J[k+260>>2]|4;J[k+268>>2]=J[k+268>>2]|1;J[k+264>>2]=J[k+264>>2]|e<<18|2;g=e<<28|g|8192}J[k>>2]=g&-1226833921}g=k+4|0;e=p+4|0;q=q+1|0; if((q|0)!=64)continue;break}g=k+12|0;e=p+772|0;i=v>>>0<60;v=v+4|0;if(i)continue;break}break Kc}b=1<>>1|b;i=J[d+120>>2];e=(i+(A<<2)|0)+12|0;g=J[d+128>>2];f=J[d+8>>2];b=J[d+4>>2];c=J[d>>2];l=J[d+104>>2];v=J[d+116>>2];Xd:{Yd:{if(R&8){if(g>>>0<4)break Xd;if(!A)break Yd;r=d+100|0;s=d+96|0;o=P(A,3);n=A<<1;u=0-D|0;while(1){z=0;while(1){p=e;Zd:{_d:{$d:{ae:{e=J[e>>2];if(e){be:{if(e&2097168)break be;i=(K[J[d+108>>2]+(e&495)|0]<<2)+d|0;l=i+28|0;k=J[l>>2];g=J[k>>2];b=b-g|0;ce:{if(c>>>16>>>0>=g>>>0){c= c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break ce;h=J[k+4>>2];g=b>>>0>>0;J[i+28>>2]=J[k+(g?12:8)>>2];while(1){de:{if(f)break de;k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+c|0;break de}if(j>>>0<=143){J[d+16>>2]=i;c=(j<<9)+c|0;f=7;break de}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break ce}h=J[k+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[k+(i?8:12)>>2];while(1){ee:{if(f)break ee;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!= -255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break ee}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break ee}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=i?h:!h}if(!h)break be;m=p-4|0;k=J[p+4>>2]>>>17&4|(J[m>>2]>>>19&1|(e>>>14&16|(e>>>16&64|e&170)));i=(K[k+2363440|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;fe:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break fe;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){ge:{if(f)break ge; +255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break ee}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break ee}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=i?h:!h}if(!h)break be;m=p-4|0;k=J[p+4>>2]>>>17&4|(J[m>>2]>>>19&1|(e>>>14&16|(e>>>16&64|e&170)));i=(K[k+2375344|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;fe:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break fe;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){ge:{if(f)break ge; h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(t<<8)+c|0;break ge}if(t>>>0<=143){J[d+16>>2]=i;c=(t<<9)+c|0;f=7;break ge}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break fe}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){he:{if(f)break he;h=J[d+16>>2];b=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break he}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break he}J[d+12>>2]=J[d+12>>2]+1; -c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;g=g^K[k+2363696|0];J[v>>2]=g?u:D;J[m>>2]=J[m>>2]|32;J[p+4>>2]=J[p+4>>2]|8;e=g<<19|e|16}ie:{if(e&16777344)break ie;k=e>>>3|0;i=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;je:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break je;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){ke:{if(f)break ke;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c= +c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;g=g^K[k+2375600|0];J[v>>2]=g?u:D;J[m>>2]=J[m>>2]|32;J[p+4>>2]=J[p+4>>2]|8;e=g<<19|e|16}ie:{if(e&16777344)break ie;k=e>>>3|0;i=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;je:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break je;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){ke:{if(f)break ke;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c= (m<<8)+c|0;break ke}if(m>>>0<=143){J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break ke}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break je}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){le:{if(f)break le;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break le}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break le}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b= -g;q=i?j:!j}if(!q)break ie;m=p-4|0;k=J[p+4>>2]>>>20&4|(J[m>>2]>>>22&1|(e>>>15&16|(e>>>19&64|k&170)));i=(K[k+2363440|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;me:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break me;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){ne:{if(f)break ne;h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(t<<8)+c|0;break ne}if(t>>>0<=143){J[d+16>>2]=i;c=(t<<9)+c|0;f=7;break ne}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f- -1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break me}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){oe:{if(f)break oe;h=J[d+16>>2];b=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break oe}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break oe}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;g=g^K[k+2363696|0];J[(A<<2)+v>>2]=g?u:D;J[m>>2]=J[m>>2]|256;J[p+4>>2]=J[p+4>>2]|64;e=g<<22|e|128}pe:{if(e& +g;q=i?j:!j}if(!q)break ie;m=p-4|0;k=J[p+4>>2]>>>20&4|(J[m>>2]>>>22&1|(e>>>15&16|(e>>>19&64|k&170)));i=(K[k+2375344|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;me:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break me;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){ne:{if(f)break ne;h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(t<<8)+c|0;break ne}if(t>>>0<=143){J[d+16>>2]=i;c=(t<<9)+c|0;f=7;break ne}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f- +1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break me}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){oe:{if(f)break oe;h=J[d+16>>2];b=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break oe}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break oe}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;g=g^K[k+2375600|0];J[(A<<2)+v>>2]=g?u:D;J[m>>2]=J[m>>2]|256;J[p+4>>2]=J[p+4>>2]|64;e=g<<22|e|128}pe:{if(e& 134218752)break pe;k=e>>>6|0;i=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;qe:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break qe;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){re:{if(f)break re;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(m<<8)+c|0;break re}if(m>>>0<=143){J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break re}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break qe}j= -J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){se:{if(f)break se;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break se}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break se}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}if(!q)break pe;m=p-4|0;k=J[p+4>>2]>>>23&4|(J[m>>2]>>>25&1|(e>>>18&16|(e>>>22&64|k&170)));i=(K[k+2363440|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;te:{if(c>>>16>>>0>=g>>> +J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){se:{if(f)break se;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break se}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break se}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}if(!q)break pe;m=p-4|0;k=J[p+4>>2]>>>23&4|(J[m>>2]>>>25&1|(e>>>18&16|(e>>>22&64|k&170)));i=(K[k+2375344|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;te:{if(c>>>16>>>0>=g>>> 0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break te;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){ue:{if(f)break ue;h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(t<<8)+c|0;break ue}if(t>>>0<=143){J[d+16>>2]=i;c=(t<<9)+c|0;f=7;break ue}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break te}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){ve:{if(f)break ve;h=J[d+16>>2];b=h+1|0;t=K[h+1|0];if(K[h| -0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break ve}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break ve}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;g=g^K[k+2363696|0];J[(n<<2)+v>>2]=g?u:D;J[m>>2]=J[m>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;e=g<<25|e|1024}if(e&1073750016)break _d;i=b;k=e>>>9|0;b=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=b+28|0;h=J[l>>2];g=J[h>>2];i=i-g|0;we:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(i&32768)break we;j=J[h+ +0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break ve}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break ve}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;g=g^K[k+2375600|0];J[(n<<2)+v>>2]=g?u:D;J[m>>2]=J[m>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;e=g<<25|e|1024}if(e&1073750016)break _d;i=b;k=e>>>9|0;b=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=b+28|0;h=J[l>>2];g=J[h>>2];i=i-g|0;we:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(i&32768)break we;j=J[h+ 4>>2];q=b;b=g>>>0>i>>>0;J[q+28>>2]=J[h+(b?12:8)>>2];while(1){xe:{if(f)break xe;h=J[d+16>>2];g=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=g;f=8;c=(m<<8)+c|0;break xe}if(m>>>0<=143){J[d+16>>2]=g;c=(m<<9)+c|0;f=7;break xe}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;i=i<<1;if(i>>>0<32768)continue;break}q=b?!j:j;break we}j=J[h+4>>2];q=b;b=g>>>0>i>>>0;J[q+28>>2]=J[h+(b?8:12)>>2];while(1){ye:{if(f)break ye;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(m<<8)+c|0;break ye}if(m>>> -0<=143){J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break ye}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}i=g;q=b?j:!j}if(!q){b=i;break _d}g=i;q=p-4|0;y=J[p+4>>2]>>>26&4|(J[q>>2]>>>28&1|(e>>>21&16|(e>>>25&64|k&170)));i=(K[y+2363440|0]<<2)+d|0;l=i+28|0;x=J[l>>2];b=J[x>>2];g=g-b|0;if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;if(g&32768){b=g;break ae}h=J[x+4>>2];k=i;i=b>>>0>g>>>0;J[k+28>>2]=J[(i?12:8)+x>>2];while(1){ze:{if(f)break ze;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!= +0<=143){J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break ye}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}i=g;q=b?j:!j}if(!q){b=i;break _d}g=i;q=p-4|0;y=J[p+4>>2]>>>26&4|(J[q>>2]>>>28&1|(e>>>21&16|(e>>>25&64|k&170)));i=(K[y+2375344|0]<<2)+d|0;l=i+28|0;x=J[l>>2];b=J[x>>2];g=g-b|0;if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;if(g&32768){b=g;break ae}h=J[x+4>>2];k=i;i=b>>>0>g>>>0;J[k+28>>2]=J[(i?12:8)+x>>2];while(1){ze:{if(f)break ze;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!= 255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break ze}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break ze}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;g=i?!h:h;break $d}h=J[x+4>>2];g=b>>>0>g>>>0;J[i+28>>2]=J[(g?8:12)+x>>2];while(1){Ae:{if(f)break Ae;k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+c|0;break Ae}if(j>>>0<=143){J[d+16>>2]=i;c=(j<<9)+c|0;f=7;break Ae}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>> 0<32768)continue;break}g=g?h:!h;break $d}l=J[s>>2];e=J[l>>2];b=b-e|0;Be:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;g=J[l+4>>2];if(b&32768)break Be;i=J[l+4>>2];e=b>>>0>>0;J[s>>2]=J[l+(e?12:8)>>2];while(1){Ce:{if(f)break Ce;l=J[d+16>>2];g=l+1|0;k=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=g;f=8;c=(k<<8)+c|0;break Ce}if(k>>>0<=143){J[d+16>>2]=g;c=(k<<9)+c|0;f=7;break Ce}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}g=e?!i:i;break Be}i=J[l+4>>2];g=b>>>0>>0;J[s>> 2]=J[l+(g?8:12)>>2];while(1){De:{if(f)break De;l=J[d+16>>2];b=l+1|0;k=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=b;f=8;c=(k<<8)+c|0;break De}if(k>>>0<=143){J[d+16>>2]=b;c=(k<<9)+c|0;f=7;break De}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;g=g?i:!i}if(!g){l=s;break Zd}g=J[r>>2];e=J[g>>2];b=b-e|0;Ee:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;i=J[g+4>>2];if(b&32768)break Ee;k=J[g+4>>2];e=b>>>0>>0;g=J[(e?12:8)+g>>2];J[r>>2]=g;while(1){Fe:{if(f)break Fe;i=J[d+ 16>>2];l=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=l;f=8;c=(h<<8)+c|0;break Fe}if(h>>>0<=143){J[d+16>>2]=l;c=(h<<9)+c|0;f=7;break Fe}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}i=e?!k:k;break Ee}k=J[g+4>>2];l=b>>>0>>0;g=J[(l?8:12)+g>>2];J[r>>2]=g;while(1){Ge:{if(f)break Ge;i=J[d+16>>2];b=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break Ge}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break Ge}J[d+12>>2]=J[d+12>>2]+1;c=c+65280| 0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;i=l?k:!k}e=J[g>>2];b=b-e|0;He:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;l=J[g+4>>2];if(b&32768)break He;k=J[g+4>>2];e=b>>>0>>0;J[r>>2]=J[(e?12:8)+g>>2];while(1){Ie:{if(f)break Ie;l=J[d+16>>2];g=l+1|0;h=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=g;f=8;c=(h<<8)+c|0;break Ie}if(h>>>0<=143){J[d+16>>2]=g;c=(h<<9)+c|0;f=7;break Ie}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}l=e?!k:k;break He}k=J[g+4>>2]; -l=g;g=b>>>0>>0;J[r>>2]=J[l+(g?8:12)>>2];while(1){Je:{if(f)break Je;l=J[d+16>>2];b=l+1|0;h=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break Je}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break Je}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;l=g?k:!k}g=l;e=0;l=r;Ke:{Le:{Me:{Ne:{Oe:switch(g|i<<1){case 0:h=p-4|0;l=J[p+4>>2]>>>17&4|J[h>>2]>>>19&1;g=(K[l+2363440|0]<<2)+d|0;i=J[g+28>>2];e=J[i>>2];b=b-e|0;Pe:{if(c>>>16>>>0>=e>>>0){c=c-(e<< +l=g;g=b>>>0>>0;J[r>>2]=J[l+(g?8:12)>>2];while(1){Je:{if(f)break Je;l=J[d+16>>2];b=l+1|0;h=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break Je}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break Je}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;l=g?k:!k}g=l;e=0;l=r;Ke:{Le:{Me:{Ne:{Oe:switch(g|i<<1){case 0:h=p-4|0;l=J[p+4>>2]>>>17&4|J[h>>2]>>>19&1;g=(K[l+2375344|0]<<2)+d|0;i=J[g+28>>2];e=J[i>>2];b=b-e|0;Pe:{if(c>>>16>>>0>=e>>>0){c=c-(e<< 16)|0;k=J[i+4>>2];if(b&32768)break Pe;k=J[i+4>>2];e=b>>>0>>0;J[g+28>>2]=J[i+(e?12:8)>>2];while(1){Qe:{if(f)break Qe;i=J[d+16>>2];g=i+1|0;j=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=g;f=8;c=(j<<8)+c|0;break Qe}if(j>>>0<=143){J[d+16>>2]=g;c=(j<<9)+c|0;f=7;break Qe}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}k=e?!k:k;break Pe}k=J[i+4>>2];q=g;g=b>>>0>>0;J[q+28>>2]=J[i+(g?8:12)>>2];while(1){Re:{if(f)break Re;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]!=255){J[d+ -16>>2]=b;f=8;c=(j<<8)+c|0;break Re}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Re}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;k=g?k:!k}e=k;e=e^K[l+2363696|0];J[v>>2]=e?u:D;J[h>>2]=J[h>>2]|32;J[p+4>>2]=J[p+4>>2]|8;l=e<<19;g=(K[J[d+108>>2]+2|0]<<2)+d|0;i=J[g+28>>2];e=J[i>>2];b=b-e|0;Se:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;k=J[i+4>>2];if(b&32768)break Se;k=J[i+4>>2];e=b>>>0>>0;J[g+28>>2]=J[i+(e?12:8)>>2];while(1){Te:{if(f)break Te;i=J[d+16>> +16>>2]=b;f=8;c=(j<<8)+c|0;break Re}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Re}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;k=g?k:!k}e=k;e=e^K[l+2375600|0];J[v>>2]=e?u:D;J[h>>2]=J[h>>2]|32;J[p+4>>2]=J[p+4>>2]|8;l=e<<19;g=(K[J[d+108>>2]+2|0]<<2)+d|0;i=J[g+28>>2];e=J[i>>2];b=b-e|0;Se:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;k=J[i+4>>2];if(b&32768)break Se;k=J[i+4>>2];e=b>>>0>>0;J[g+28>>2]=J[i+(e?12:8)>>2];while(1){Te:{if(f)break Te;i=J[d+16>> 2];g=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=g;f=8;c=(h<<8)+c|0;break Te}if(h>>>0<=143){J[d+16>>2]=g;c=(h<<9)+c|0;f=7;break Te}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}k=e?!k:k;break Se}k=J[i+4>>2];h=g;g=b>>>0>>0;J[h+28>>2]=J[i+(g?8:12)>>2];while(1){Ue:{if(f)break Ue;i=J[d+16>>2];b=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break Ue}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break Ue}J[d+12>>2]=J[d+12>>2]+1;c=c+65280| -0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;k=g?k:!k}g=k;e=l|16;if(!g)break Ne;break;case 3:break Ke;case 2:break Me;case 1:break Oe;default:break _d}j=p-4|0;i=J[p+4>>2]>>>20&4|(J[j>>2]>>>22&1|(e>>>15&16|(e>>>19&64|e>>>3&170)));l=(K[i+2363440|0]<<2)+d|0;k=J[l+28>>2];g=J[k>>2];b=b-g|0;Ve:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break Ve;h=J[k+4>>2];g=b>>>0>>0;J[l+28>>2]=J[k+(g?12:8)>>2];while(1){We:{if(f)break We;k=J[d+16>>2];l=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+ +0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;k=g?k:!k}g=k;e=l|16;if(!g)break Ne;break;case 3:break Ke;case 2:break Me;case 1:break Oe;default:break _d}j=p-4|0;i=J[p+4>>2]>>>20&4|(J[j>>2]>>>22&1|(e>>>15&16|(e>>>19&64|e>>>3&170)));l=(K[i+2375344|0]<<2)+d|0;k=J[l+28>>2];g=J[k>>2];b=b-g|0;Ve:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break Ve;h=J[k+4>>2];g=b>>>0>>0;J[l+28>>2]=J[k+(g?12:8)>>2];while(1){We:{if(f)break We;k=J[d+16>>2];l=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+ 16>>2]=l;f=8;c=(m<<8)+c|0;break We}if(m>>>0<=143){J[d+16>>2]=l;c=(m<<9)+c|0;f=7;break We}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break Ve}h=J[k+4>>2];q=l;l=b>>>0>>0;J[q+28>>2]=J[k+(l?8:12)>>2];while(1){Xe:{if(f)break Xe;k=J[d+16>>2];b=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break Xe}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Xe}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue; -break}b=g;h=l?h:!h}g=h;g=g^K[i+2363696|0];J[(A<<2)+v>>2]=g?u:D;J[j>>2]=J[j>>2]|256;J[p+4>>2]=J[p+4>>2]|64;e=g<<22|e|128}l=(K[J[d+108>>2]+(e>>>6&495)|0]<<2)+d|0;i=J[l+28>>2];g=J[i>>2];b=b-g|0;Ye:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;k=J[i+4>>2];if(b&32768)break Ye;k=J[i+4>>2];g=b>>>0>>0;J[l+28>>2]=J[i+(g?12:8)>>2];while(1){Ze:{if(f)break Ze;i=J[d+16>>2];l=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=l;f=8;c=(h<<8)+c|0;break Ze}if(h>>>0<=143){J[d+16>>2]=l;c=(h<<9)+c|0;f=7;break Ze}J[d+12>>2]=J[d+12>> +break}b=g;h=l?h:!h}g=h;g=g^K[i+2375600|0];J[(A<<2)+v>>2]=g?u:D;J[j>>2]=J[j>>2]|256;J[p+4>>2]=J[p+4>>2]|64;e=g<<22|e|128}l=(K[J[d+108>>2]+(e>>>6&495)|0]<<2)+d|0;i=J[l+28>>2];g=J[i>>2];b=b-g|0;Ye:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;k=J[i+4>>2];if(b&32768)break Ye;k=J[i+4>>2];g=b>>>0>>0;J[l+28>>2]=J[i+(g?12:8)>>2];while(1){Ze:{if(f)break Ze;i=J[d+16>>2];l=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=l;f=8;c=(h<<8)+c|0;break Ze}if(h>>>0<=143){J[d+16>>2]=l;c=(h<<9)+c|0;f=7;break Ze}J[d+12>>2]=J[d+12>> 2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}k=g?!k:k;break Ye}k=J[i+4>>2];h=l;l=b>>>0>>0;J[h+28>>2]=J[i+(l?8:12)>>2];while(1){_e:{if(f)break _e;i=J[d+16>>2];b=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break _e}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break _e}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;k=l?k:!k}if(!k)break Le}j=p-4|0;i=J[p+4>>2]>>>23&4|(J[j>>2]>>>25&1|(e>>>18&16|(e>>>22&64| -e>>>6&170)));l=(K[i+2363440|0]<<2)+d|0;k=J[l+28>>2];g=J[k>>2];b=b-g|0;$e:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break $e;h=J[k+4>>2];g=b>>>0>>0;J[l+28>>2]=J[k+(g?12:8)>>2];while(1){af:{if(f)break af;k=J[d+16>>2];l=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=l;f=8;c=(m<<8)+c|0;break af}if(m>>>0<=143){J[d+16>>2]=l;c=(m<<9)+c|0;f=7;break af}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break $e}h=J[k+4>>2];q=l;l=b>>>0>> -0;J[q+28>>2]=J[k+(l?8:12)>>2];while(1){bf:{if(f)break bf;k=J[d+16>>2];b=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break bf}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break bf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=l?h:!h}g=h;g=g^K[i+2363696|0];J[(n<<2)+v>>2]=g?u:D;J[j>>2]=J[j>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;e=g<<25|e|1024}i=(K[J[d+108>>2]+(e>>>9&495)|0]<<2)+d|0;l=i+28|0;k=J[l>>2];g=J[k>>2];b=b-g|0;cf:{if(c>>>16>>>0>= +e>>>6&170)));l=(K[i+2375344|0]<<2)+d|0;k=J[l+28>>2];g=J[k>>2];b=b-g|0;$e:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break $e;h=J[k+4>>2];g=b>>>0>>0;J[l+28>>2]=J[k+(g?12:8)>>2];while(1){af:{if(f)break af;k=J[d+16>>2];l=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=l;f=8;c=(m<<8)+c|0;break af}if(m>>>0<=143){J[d+16>>2]=l;c=(m<<9)+c|0;f=7;break af}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break $e}h=J[k+4>>2];q=l;l=b>>>0>> +0;J[q+28>>2]=J[k+(l?8:12)>>2];while(1){bf:{if(f)break bf;k=J[d+16>>2];b=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break bf}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break bf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=l?h:!h}g=h;g=g^K[i+2375600|0];J[(n<<2)+v>>2]=g?u:D;J[j>>2]=J[j>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;e=g<<25|e|1024}i=(K[J[d+108>>2]+(e>>>9&495)|0]<<2)+d|0;l=i+28|0;k=J[l>>2];g=J[k>>2];b=b-g|0;cf:{if(c>>>16>>>0>= g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break cf;h=J[k+4>>2];g=b>>>0>>0;J[i+28>>2]=J[k+(g?12:8)>>2];while(1){df:{if(f)break df;k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+c|0;break df}if(j>>>0<=143){J[d+16>>2]=i;c=(j<<9)+c|0;f=7;break df}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break cf}h=J[k+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[k+(i?8:12)>>2];while(1){ef:{if(f)break ef;k=J[d+16>>2];b=k+1|0;j=K[k+1|0]; -if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break ef}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break ef}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=i?h:!h}if(!h)break _d}q=p-4|0;y=J[p+4>>2]>>>26&4|(J[q>>2]>>>28&1|(e>>>21&16|(e>>>25&64|e>>>9&170)));i=(K[y+2363440|0]<<2)+d|0;l=i+28|0;x=J[l>>2];g=J[x>>2];b=b-g|0;if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;if(b&32768)break ae;h=J[x+4>>2];g=b>>>0>>0;J[i+28>>2]=J[(g?12:8)+x>>2];while(1){ff:{if(f)break ff; +if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break ef}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break ef}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=i?h:!h}if(!h)break _d}q=p-4|0;y=J[p+4>>2]>>>26&4|(J[q>>2]>>>28&1|(e>>>21&16|(e>>>25&64|e>>>9&170)));i=(K[y+2375344|0]<<2)+d|0;l=i+28|0;x=J[l>>2];g=J[x>>2];b=b-g|0;if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;if(b&32768)break ae;h=J[x+4>>2];g=b>>>0>>0;J[i+28>>2]=J[(g?12:8)+x>>2];while(1){ff:{if(f)break ff; k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+c|0;break ff}if(j>>>0<=143){J[d+16>>2]=i;c=(j<<9)+c|0;f=7;break ff}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}g=g?!h:h;break $d}h=J[x+4>>2];k=i;i=b>>>0>>0;J[k+28>>2]=J[(i?8:12)+x>>2];while(1){gf:{if(f)break gf;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break gf}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break gf}J[d+12>>2]=J[d+12>>2]+1; -c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;g=i?h:!h;break $d}g=J[x+4>>2]}g=g^K[y+2363696|0];J[(o<<2)+v>>2]=g?u:D;J[q>>2]=J[q>>2]|16384;J[p+4>>2]=J[p+4>>2]|4096;i=p+(J[d+124>>2]<<2)|0;J[i+4>>2]=J[i+4>>2]|4;J[i+12>>2]=J[i+12>>2]|1;J[i+8>>2]=J[i+8>>2]|g<<18|2;e=g<<28|e|8192}J[p>>2]=e&-1226833921}e=p+4|0;v=v+4|0;z=z+1|0;if((A|0)!=(z|0))continue;break}e=p+12|0;v=(o<<2)+v|0;E=E+4|0;g=J[d+128>>2];if(E>>>0<(g&-4)>>>0)continue;break}break Xd}hf:{if(g>>>0<4)break hf;if(A){r=d+100| +c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;g=i?h:!h;break $d}g=J[x+4>>2]}g=g^K[y+2375600|0];J[(o<<2)+v>>2]=g?u:D;J[q>>2]=J[q>>2]|16384;J[p+4>>2]=J[p+4>>2]|4096;i=p+(J[d+124>>2]<<2)|0;J[i+4>>2]=J[i+4>>2]|4;J[i+12>>2]=J[i+12>>2]|1;J[i+8>>2]=J[i+8>>2]|g<<18|2;e=g<<28|e|8192}J[p>>2]=e&-1226833921}e=p+4|0;v=v+4|0;z=z+1|0;if((A|0)!=(z|0))continue;break}e=p+12|0;v=(o<<2)+v|0;E=E+4|0;g=J[d+128>>2];if(E>>>0<(g&-4)>>>0)continue;break}break Xd}hf:{if(g>>>0<4)break hf;if(A){r=d+100| 0;s=d+96|0;o=P(A,3);n=A<<1;u=0-D|0;while(1){z=0;while(1){p=e;jf:{kf:{lf:{mf:{e=J[e>>2];if(e){nf:{if(e&2097168)break nf;i=(K[J[d+108>>2]+(e&495)|0]<<2)+d|0;l=i+28|0;k=J[l>>2];g=J[k>>2];b=b-g|0;of:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break of;h=J[k+4>>2];g=b>>>0>>0;J[i+28>>2]=J[k+(g?12:8)>>2];while(1){pf:{if(f)break pf;k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+c|0;break pf}if(j>>>0<=143){J[d+16>>2]=i;c=(j<<9)+c|0;f=7;break pf}J[d+12>>2]=J[d+ 12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break of}h=J[k+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[k+(i?8:12)>>2];while(1){qf:{if(f)break qf;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break qf}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break qf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=i?h:!h}if(!h)break nf;m=p-4|0;k=J[p+4>>2]>>>17&4|(J[m>>2]>>>19&1|(e>>>14&16|(e>>>16& -64|e&170)));i=(K[k+2363440|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;rf:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break rf;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){sf:{if(f)break sf;h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(t<<8)+c|0;break sf}if(t>>>0<=143){J[d+16>>2]=i;c=(t<<9)+c|0;f=7;break sf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break rf}j=J[h+4>>2];q=i;i=b>>> -0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){tf:{if(f)break tf;h=J[d+16>>2];b=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break tf}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break tf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;i=g^K[k+2363696|0];J[v>>2]=i?u:D;J[m>>2]=J[m>>2]|32;J[p+4>>2]=J[p+4>>2]|8;g=p+(-2-J[d+124>>2]<<2)|0;J[g+4>>2]=J[g+4>>2]|32768;J[g>>2]=J[g>>2]|i<<31|65536;g=g-4|0;J[g>>2]=J[g>>2]|131072;e=i<< +64|e&170)));i=(K[k+2375344|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;rf:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break rf;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){sf:{if(f)break sf;h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(t<<8)+c|0;break sf}if(t>>>0<=143){J[d+16>>2]=i;c=(t<<9)+c|0;f=7;break sf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break rf}j=J[h+4>>2];q=i;i=b>>> +0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){tf:{if(f)break tf;h=J[d+16>>2];b=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break tf}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break tf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;i=g^K[k+2375600|0];J[v>>2]=i?u:D;J[m>>2]=J[m>>2]|32;J[p+4>>2]=J[p+4>>2]|8;g=p+(-2-J[d+124>>2]<<2)|0;J[g+4>>2]=J[g+4>>2]|32768;J[g>>2]=J[g>>2]|i<<31|65536;g=g-4|0;J[g>>2]=J[g>>2]|131072;e=i<< 19|e|16}uf:{if(e&16777344)break uf;k=e>>>3|0;i=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;vf:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break vf;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){wf:{if(f)break wf;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(m<<8)+c|0;break wf}if(m>>>0<=143){J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break wf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q= -g?!j:j;break vf}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){xf:{if(f)break xf;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break xf}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break xf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}if(!q)break uf;m=p-4|0;k=J[p+4>>2]>>>20&4|(J[m>>2]>>>22&1|(e>>>15&16|(e>>>19&64|k&170)));i=(K[k+2363440|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;yf:{if(c>>> +g?!j:j;break vf}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){xf:{if(f)break xf;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break xf}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break xf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}if(!q)break uf;m=p-4|0;k=J[p+4>>2]>>>20&4|(J[m>>2]>>>22&1|(e>>>15&16|(e>>>19&64|k&170)));i=(K[k+2375344|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;yf:{if(c>>> 16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break yf;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){zf:{if(f)break zf;h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(t<<8)+c|0;break zf}if(t>>>0<=143){J[d+16>>2]=i;c=(t<<9)+c|0;f=7;break zf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break yf}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){Af:{if(f)break Af;h=J[d+16>>2];b=h+1|0;t= -K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break Af}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break Af}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;g=g^K[k+2363696|0];J[(A<<2)+v>>2]=g?u:D;J[m>>2]=J[m>>2]|256;J[p+4>>2]=J[p+4>>2]|64;e=g<<22|e|128}Bf:{if(e&134218752)break Bf;k=e>>>6|0;i=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;Cf:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break Cf; +K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break Af}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break Af}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}g=q;g=g^K[k+2375600|0];J[(A<<2)+v>>2]=g?u:D;J[m>>2]=J[m>>2]|256;J[p+4>>2]=J[p+4>>2]|64;e=g<<22|e|128}Bf:{if(e&134218752)break Bf;k=e>>>6|0;i=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;Cf:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break Cf; j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){Df:{if(f)break Df;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(m<<8)+c|0;break Df}if(m>>>0<=143){J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break Df}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break Cf}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){Ef:{if(f)break Ef;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break Ef}if(m>>> -0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Ef}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}if(!q)break Bf;m=p-4|0;k=J[p+4>>2]>>>23&4|(J[m>>2]>>>25&1|(e>>>18&16|(e>>>22&64|k&170)));i=(K[k+2363440|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;Ff:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break Ff;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){Gf:{if(f)break Gf;h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+ +0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Ef}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;q=i?j:!j}if(!q)break Bf;m=p-4|0;k=J[p+4>>2]>>>23&4|(J[m>>2]>>>25&1|(e>>>18&16|(e>>>22&64|k&170)));i=(K[k+2375344|0]<<2)+d|0;l=i+28|0;h=J[l>>2];g=J[h>>2];b=b-g|0;Ff:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(b&32768)break Ff;j=J[h+4>>2];g=b>>>0>>0;J[i+28>>2]=J[h+(g?12:8)>>2];while(1){Gf:{if(f)break Gf;h=J[d+16>>2];i=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+ 16>>2]=i;f=8;c=(t<<8)+c|0;break Gf}if(t>>>0<=143){J[d+16>>2]=i;c=(t<<9)+c|0;f=7;break Gf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}q=g?!j:j;break Ff}j=J[h+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[h+(i?8:12)>>2];while(1){Hf:{if(f)break Hf;h=J[d+16>>2];b=h+1|0;t=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=b;f=8;c=(t<<8)+c|0;break Hf}if(t>>>0<=143){J[d+16>>2]=b;c=(t<<9)+c|0;f=7;break Hf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue; -break}b=g;q=i?j:!j}g=q;g=g^K[k+2363696|0];J[(n<<2)+v>>2]=g?u:D;J[m>>2]=J[m>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;e=g<<25|e|1024}if(e&1073750016)break kf;i=b;k=e>>>9|0;b=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=b+28|0;h=J[l>>2];g=J[h>>2];i=i-g|0;If:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(i&32768)break If;j=J[h+4>>2];q=b;b=g>>>0>i>>>0;J[q+28>>2]=J[h+(b?12:8)>>2];while(1){Jf:{if(f)break Jf;h=J[d+16>>2];g=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=g;f=8;c=(m<<8)+c|0;break Jf}if(m>>>0<=143){J[d+16>> +break}b=g;q=i?j:!j}g=q;g=g^K[k+2375600|0];J[(n<<2)+v>>2]=g?u:D;J[m>>2]=J[m>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;e=g<<25|e|1024}if(e&1073750016)break kf;i=b;k=e>>>9|0;b=(K[J[d+108>>2]+(k&495)|0]<<2)+d|0;l=b+28|0;h=J[l>>2];g=J[h>>2];i=i-g|0;If:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;q=J[h+4>>2];if(i&32768)break If;j=J[h+4>>2];q=b;b=g>>>0>i>>>0;J[q+28>>2]=J[h+(b?12:8)>>2];while(1){Jf:{if(f)break Jf;h=J[d+16>>2];g=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=g;f=8;c=(m<<8)+c|0;break Jf}if(m>>>0<=143){J[d+16>> 2]=g;c=(m<<9)+c|0;f=7;break Jf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;i=i<<1;if(i>>>0<32768)continue;break}q=b?!j:j;break If}j=J[h+4>>2];q=b;b=g>>>0>i>>>0;J[q+28>>2]=J[h+(b?8:12)>>2];while(1){Kf:{if(f)break Kf;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]!=255){J[d+16>>2]=i;f=8;c=(m<<8)+c|0;break Kf}if(m>>>0<=143){J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break Kf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}i=g;q=b?j:!j}if(!q){b=i;break kf}g=i;q=p-4| -0;y=J[p+4>>2]>>>26&4|(J[q>>2]>>>28&1|(e>>>21&16|(e>>>25&64|k&170)));i=(K[y+2363440|0]<<2)+d|0;l=i+28|0;x=J[l>>2];b=J[x>>2];g=g-b|0;if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;if(g&32768){b=g;break mf}h=J[x+4>>2];k=i;i=b>>>0>g>>>0;J[k+28>>2]=J[(i?12:8)+x>>2];while(1){Lf:{if(f)break Lf;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break Lf}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Lf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue; +0;y=J[p+4>>2]>>>26&4|(J[q>>2]>>>28&1|(e>>>21&16|(e>>>25&64|k&170)));i=(K[y+2375344|0]<<2)+d|0;l=i+28|0;x=J[l>>2];b=J[x>>2];g=g-b|0;if(c>>>16>>>0>=b>>>0){c=c-(b<<16)|0;if(g&32768){b=g;break mf}h=J[x+4>>2];k=i;i=b>>>0>g>>>0;J[k+28>>2]=J[(i?12:8)+x>>2];while(1){Lf:{if(f)break Lf;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break Lf}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Lf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue; break}b=g;g=i?!h:h;break lf}h=J[x+4>>2];g=b>>>0>g>>>0;J[i+28>>2]=J[(g?8:12)+x>>2];while(1){Mf:{if(f)break Mf;k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+c|0;break Mf}if(j>>>0<=143){J[d+16>>2]=i;c=(j<<9)+c|0;f=7;break Mf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}g=g?h:!h;break lf}l=J[s>>2];e=J[l>>2];b=b-e|0;Nf:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;g=J[l+4>>2];if(b&32768)break Nf;i=J[l+4>>2];e=b>>>0>>0;J[s>>2]=J[l+(e? 12:8)>>2];while(1){Of:{if(f)break Of;l=J[d+16>>2];g=l+1|0;k=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=g;f=8;c=(k<<8)+c|0;break Of}if(k>>>0<=143){J[d+16>>2]=g;c=(k<<9)+c|0;f=7;break Of}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}g=e?!i:i;break Nf}i=J[l+4>>2];g=b>>>0>>0;J[s>>2]=J[l+(g?8:12)>>2];while(1){Pf:{if(f)break Pf;l=J[d+16>>2];b=l+1|0;k=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=b;f=8;c=(k<<8)+c|0;break Pf}if(k>>>0<=143){J[d+16>>2]=b;c=(k<<9)+c|0;f=7;break Pf}J[d+ 12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;g=g?i:!i}if(!g){l=s;break jf}g=J[r>>2];e=J[g>>2];b=b-e|0;Qf:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;i=J[g+4>>2];if(b&32768)break Qf;k=J[g+4>>2];e=b>>>0>>0;g=J[(e?12:8)+g>>2];J[r>>2]=g;while(1){Rf:{if(f)break Rf;i=J[d+16>>2];l=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=l;f=8;c=(h<<8)+c|0;break Rf}if(h>>>0<=143){J[d+16>>2]=l;c=(h<<9)+c|0;f=7;break Rf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b= b<<1;if(b>>>0<32768)continue;break}i=e?!k:k;break Qf}k=J[g+4>>2];l=b>>>0>>0;g=J[(l?8:12)+g>>2];J[r>>2]=g;while(1){Sf:{if(f)break Sf;i=J[d+16>>2];b=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break Sf}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break Sf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;i=l?k:!k}e=J[g>>2];b=b-e|0;Tf:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;l=J[g+4>>2];if(b&32768)break Tf;k=J[g+4>>2];e=b>>>0>>0;J[r>> 2]=J[(e?12:8)+g>>2];while(1){Uf:{if(f)break Uf;l=J[d+16>>2];g=l+1|0;h=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=g;f=8;c=(h<<8)+c|0;break Uf}if(h>>>0<=143){J[d+16>>2]=g;c=(h<<9)+c|0;f=7;break Uf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}l=e?!k:k;break Tf}k=J[g+4>>2];l=g;g=b>>>0>>0;J[r>>2]=J[l+(g?8:12)>>2];while(1){Vf:{if(f)break Vf;l=J[d+16>>2];b=l+1|0;h=K[l+1|0];if(K[l|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break Vf}if(h>>>0<=143){J[d+16>>2]=b;c=(h<< -9)+c|0;f=7;break Vf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;l=g?k:!k}g=l;e=0;l=r;Wf:{Xf:{Yf:{Zf:{_f:switch(g|i<<1){case 0:h=p-4|0;l=J[p+4>>2]>>>17&4|J[h>>2]>>>19&1;g=(K[l+2363440|0]<<2)+d|0;i=J[g+28>>2];e=J[i>>2];b=b-e|0;$f:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;k=J[i+4>>2];if(b&32768)break $f;k=J[i+4>>2];e=b>>>0>>0;J[g+28>>2]=J[i+(e?12:8)>>2];while(1){ag:{if(f)break ag;i=J[d+16>>2];g=i+1|0;j=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=g;f=8;c=(j<< +9)+c|0;f=7;break Vf}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;l=g?k:!k}g=l;e=0;l=r;Wf:{Xf:{Yf:{Zf:{_f:switch(g|i<<1){case 0:h=p-4|0;l=J[p+4>>2]>>>17&4|J[h>>2]>>>19&1;g=(K[l+2375344|0]<<2)+d|0;i=J[g+28>>2];e=J[i>>2];b=b-e|0;$f:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;k=J[i+4>>2];if(b&32768)break $f;k=J[i+4>>2];e=b>>>0>>0;J[g+28>>2]=J[i+(e?12:8)>>2];while(1){ag:{if(f)break ag;i=J[d+16>>2];g=i+1|0;j=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=g;f=8;c=(j<< 8)+c|0;break ag}if(j>>>0<=143){J[d+16>>2]=g;c=(j<<9)+c|0;f=7;break ag}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}k=e?!k:k;break $f}k=J[i+4>>2];q=g;g=b>>>0>>0;J[q+28>>2]=J[i+(g?8:12)>>2];while(1){bg:{if(f)break bg;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break bg}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break bg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e; -k=g?k:!k}e=k;g=e^K[l+2363696|0];J[v>>2]=g?u:D;J[h>>2]=J[h>>2]|32;J[p+4>>2]=J[p+4>>2]|8;e=p+(-2-J[d+124>>2]<<2)|0;J[e+4>>2]=J[e+4>>2]|32768;J[e>>2]=J[e>>2]|g<<31|65536;e=e-4|0;J[e>>2]=J[e>>2]|131072;l=g<<19;g=(K[J[d+108>>2]+2|0]<<2)+d|0;i=J[g+28>>2];e=J[i>>2];b=b-e|0;cg:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;k=J[i+4>>2];if(b&32768)break cg;k=J[i+4>>2];e=b>>>0>>0;J[g+28>>2]=J[i+(e?12:8)>>2];while(1){dg:{if(f)break dg;i=J[d+16>>2];g=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=g;f=8;c=(h<<8)+c|0;break dg}if(h>>> +k=g?k:!k}e=k;g=e^K[l+2375600|0];J[v>>2]=g?u:D;J[h>>2]=J[h>>2]|32;J[p+4>>2]=J[p+4>>2]|8;e=p+(-2-J[d+124>>2]<<2)|0;J[e+4>>2]=J[e+4>>2]|32768;J[e>>2]=J[e>>2]|g<<31|65536;e=e-4|0;J[e>>2]=J[e>>2]|131072;l=g<<19;g=(K[J[d+108>>2]+2|0]<<2)+d|0;i=J[g+28>>2];e=J[i>>2];b=b-e|0;cg:{if(c>>>16>>>0>=e>>>0){c=c-(e<<16)|0;k=J[i+4>>2];if(b&32768)break cg;k=J[i+4>>2];e=b>>>0>>0;J[g+28>>2]=J[i+(e?12:8)>>2];while(1){dg:{if(f)break dg;i=J[d+16>>2];g=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=g;f=8;c=(h<<8)+c|0;break dg}if(h>>> 0<=143){J[d+16>>2]=g;c=(h<<9)+c|0;f=7;break dg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}k=e?!k:k;break cg}k=J[i+4>>2];h=g;g=b>>>0>>0;J[h+28>>2]=J[i+(g?8:12)>>2];while(1){eg:{if(f)break eg;i=J[d+16>>2];b=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break eg}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break eg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;k=g?k:!k}g=k;e=l|16;if(!g)break Zf; -break;case 3:break Wf;case 2:break Yf;case 1:break _f;default:break kf}j=p-4|0;i=J[p+4>>2]>>>20&4|(J[j>>2]>>>22&1|(e>>>15&16|(e>>>19&64|e>>>3&170)));l=(K[i+2363440|0]<<2)+d|0;k=J[l+28>>2];g=J[k>>2];b=b-g|0;fg:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break fg;h=J[k+4>>2];g=b>>>0>>0;J[l+28>>2]=J[k+(g?12:8)>>2];while(1){gg:{if(f)break gg;k=J[d+16>>2];l=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=l;f=8;c=(m<<8)+c|0;break gg}if(m>>>0<=143){J[d+16>>2]=l;c=(m<<9)+c|0;f=7;break gg}J[d+ -12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break fg}h=J[k+4>>2];q=l;l=b>>>0>>0;J[q+28>>2]=J[k+(l?8:12)>>2];while(1){hg:{if(f)break hg;k=J[d+16>>2];b=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break hg}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break hg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=l?h:!h}g=h;g=g^K[i+2363696|0];J[(A<<2)+v>>2]=g?u:D;J[j>>2]=J[j>>2]|256; +break;case 3:break Wf;case 2:break Yf;case 1:break _f;default:break kf}j=p-4|0;i=J[p+4>>2]>>>20&4|(J[j>>2]>>>22&1|(e>>>15&16|(e>>>19&64|e>>>3&170)));l=(K[i+2375344|0]<<2)+d|0;k=J[l+28>>2];g=J[k>>2];b=b-g|0;fg:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break fg;h=J[k+4>>2];g=b>>>0>>0;J[l+28>>2]=J[k+(g?12:8)>>2];while(1){gg:{if(f)break gg;k=J[d+16>>2];l=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=l;f=8;c=(m<<8)+c|0;break gg}if(m>>>0<=143){J[d+16>>2]=l;c=(m<<9)+c|0;f=7;break gg}J[d+ +12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break fg}h=J[k+4>>2];q=l;l=b>>>0>>0;J[q+28>>2]=J[k+(l?8:12)>>2];while(1){hg:{if(f)break hg;k=J[d+16>>2];b=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break hg}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break hg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=l?h:!h}g=h;g=g^K[i+2375600|0];J[(A<<2)+v>>2]=g?u:D;J[j>>2]=J[j>>2]|256; J[p+4>>2]=J[p+4>>2]|64;e=g<<22|e|128}l=(K[J[d+108>>2]+(e>>>6&495)|0]<<2)+d|0;i=J[l+28>>2];g=J[i>>2];b=b-g|0;ig:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;k=J[i+4>>2];if(b&32768)break ig;k=J[i+4>>2];g=b>>>0>>0;J[l+28>>2]=J[i+(g?12:8)>>2];while(1){jg:{if(f)break jg;i=J[d+16>>2];l=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=l;f=8;c=(h<<8)+c|0;break jg}if(h>>>0<=143){J[d+16>>2]=l;c=(h<<9)+c|0;f=7;break jg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}k=g?!k: -k;break ig}k=J[i+4>>2];h=l;l=b>>>0>>0;J[h+28>>2]=J[i+(l?8:12)>>2];while(1){kg:{if(f)break kg;i=J[d+16>>2];b=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break kg}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break kg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;k=l?k:!k}if(!k)break Xf}j=p-4|0;i=J[p+4>>2]>>>23&4|(J[j>>2]>>>25&1|(e>>>18&16|(e>>>22&64|e>>>6&170)));l=(K[i+2363440|0]<<2)+d|0;k=J[l+28>>2];g=J[k>>2];b=b-g|0;lg:{if(c>>> +k;break ig}k=J[i+4>>2];h=l;l=b>>>0>>0;J[h+28>>2]=J[i+(l?8:12)>>2];while(1){kg:{if(f)break kg;i=J[d+16>>2];b=i+1|0;h=K[i+1|0];if(K[i|0]!=255){J[d+16>>2]=b;f=8;c=(h<<8)+c|0;break kg}if(h>>>0<=143){J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break kg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;k=l?k:!k}if(!k)break Xf}j=p-4|0;i=J[p+4>>2]>>>23&4|(J[j>>2]>>>25&1|(e>>>18&16|(e>>>22&64|e>>>6&170)));l=(K[i+2375344|0]<<2)+d|0;k=J[l+28>>2];g=J[k>>2];b=b-g|0;lg:{if(c>>> 16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break lg;h=J[k+4>>2];g=b>>>0>>0;J[l+28>>2]=J[k+(g?12:8)>>2];while(1){mg:{if(f)break mg;k=J[d+16>>2];l=k+1|0;m=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=l;f=8;c=(m<<8)+c|0;break mg}if(m>>>0<=143){J[d+16>>2]=l;c=(m<<9)+c|0;f=7;break mg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break lg}h=J[k+4>>2];q=l;l=b>>>0>>0;J[q+28>>2]=J[k+(l?8:12)>>2];while(1){ng:{if(f)break ng;k=J[d+16>>2];b=k+1|0;m= -K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break ng}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break ng}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=l?h:!h}g=h;g=g^K[i+2363696|0];J[(n<<2)+v>>2]=g?u:D;J[j>>2]=J[j>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;e=g<<25|e|1024}i=(K[J[d+108>>2]+(e>>>9&495)|0]<<2)+d|0;l=i+28|0;k=J[l>>2];g=J[k>>2];b=b-g|0;og:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break og;h=J[k+4>>2];g=b>>>0>>0; +K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(m<<8)+c|0;break ng}if(m>>>0<=143){J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break ng}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=l?h:!h}g=h;g=g^K[i+2375600|0];J[(n<<2)+v>>2]=g?u:D;J[j>>2]=J[j>>2]|2048;J[p+4>>2]=J[p+4>>2]|512;e=g<<25|e|1024}i=(K[J[d+108>>2]+(e>>>9&495)|0]<<2)+d|0;l=i+28|0;k=J[l>>2];g=J[k>>2];b=b-g|0;og:{if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;h=J[k+4>>2];if(b&32768)break og;h=J[k+4>>2];g=b>>>0>>0; J[i+28>>2]=J[k+(g?12:8)>>2];while(1){pg:{if(f)break pg;k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+c|0;break pg}if(j>>>0<=143){J[d+16>>2]=i;c=(j<<9)+c|0;f=7;break pg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}h=g?!h:h;break og}h=J[k+4>>2];q=i;i=b>>>0>>0;J[q+28>>2]=J[k+(i?8:12)>>2];while(1){qg:{if(f)break qg;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break qg}if(j>>>0<=143){J[d+16>> -2]=b;c=(j<<9)+c|0;f=7;break qg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=i?h:!h}if(!h)break kf}q=p-4|0;y=J[p+4>>2]>>>26&4|(J[q>>2]>>>28&1|(e>>>21&16|(e>>>25&64|e>>>9&170)));i=(K[y+2363440|0]<<2)+d|0;l=i+28|0;x=J[l>>2];g=J[x>>2];b=b-g|0;if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;if(b&32768)break mf;h=J[x+4>>2];g=b>>>0>>0;J[i+28>>2]=J[(g?12:8)+x>>2];while(1){rg:{if(f)break rg;k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+ +2]=b;c=(j<<9)+c|0;f=7;break qg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;h=i?h:!h}if(!h)break kf}q=p-4|0;y=J[p+4>>2]>>>26&4|(J[q>>2]>>>28&1|(e>>>21&16|(e>>>25&64|e>>>9&170)));i=(K[y+2375344|0]<<2)+d|0;l=i+28|0;x=J[l>>2];g=J[x>>2];b=b-g|0;if(c>>>16>>>0>=g>>>0){c=c-(g<<16)|0;if(b&32768)break mf;h=J[x+4>>2];g=b>>>0>>0;J[i+28>>2]=J[(g?12:8)+x>>2];while(1){rg:{if(f)break rg;k=J[d+16>>2];i=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=i;f=8;c=(j<<8)+ c|0;break rg}if(j>>>0<=143){J[d+16>>2]=i;c=(j<<9)+c|0;f=7;break rg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}g=g?!h:h;break lf}h=J[x+4>>2];k=i;i=b>>>0>>0;J[k+28>>2]=J[(i?8:12)+x>>2];while(1){sg:{if(f)break sg;k=J[d+16>>2];b=k+1|0;j=K[k+1|0];if(K[k|0]!=255){J[d+16>>2]=b;f=8;c=(j<<8)+c|0;break sg}if(j>>>0<=143){J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break sg}J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;g= -i?h:!h;break lf}g=J[x+4>>2]}g=g^K[y+2363696|0];J[(o<<2)+v>>2]=g?u:D;J[q>>2]=J[q>>2]|16384;J[p+4>>2]=J[p+4>>2]|4096;i=p+(J[d+124>>2]<<2)|0;J[i+4>>2]=J[i+4>>2]|4;J[i+12>>2]=J[i+12>>2]|1;J[i+8>>2]=J[i+8>>2]|g<<18|2;e=g<<28|e|8192}J[p>>2]=e&-1226833921}e=p+4|0;v=v+4|0;z=z+1|0;if((A|0)!=(z|0))continue;break}e=p+12|0;v=(o<<2)+v|0;E=E+4|0;g=J[d+128>>2];if(E>>>0<(g&-4)>>>0)continue;break}break hf}e=g&-4;e=(e>>>0<=4?4:e)-1|0;E=(e&-4)+4|0;e=(i+(e<<1&-8)|0)+20|0}J[d+8>>2]=f;J[d+4>>2]=b;J[d>>2]=c;J[d+104>>2]= -l;if(!A|g>>>0<=E>>>0)break Jc;while(1){f=0;if(J[d+128>>2]!=(E|0))while(1){CW(d,e,(P(f,A)<<2)+v|0,D,f,0);f=f+1|0;if(f>>>0>2]-E>>>0)continue;break}J[e>>2]=J[e>>2]&-1226833921;v=v+4|0;e=e+4|0;w=w+1|0;if((A|0)!=(w|0))continue;break}break Jc}e=g&-4;e=(e>>>0<=4?4:e)-1|0;E=(e&-4)+4|0;e=(i+(e<<1&-8)|0)+20|0}J[d+8>>2]=f;J[d+4>>2]=b;J[d>>2]=c;J[d+104>>2]=l;if(!A|g>>>0<=E>>>0)break Jc;while(1){f=0;if(J[d+128>>2]!=(E|0))while(1){CW(d,e,(P(f,A)<<2)+v|0,D,f,1);f=f+1|0;if(f>>>0>2]-E>>>0)continue; +i?h:!h;break lf}g=J[x+4>>2]}g=g^K[y+2375600|0];J[(o<<2)+v>>2]=g?u:D;J[q>>2]=J[q>>2]|16384;J[p+4>>2]=J[p+4>>2]|4096;i=p+(J[d+124>>2]<<2)|0;J[i+4>>2]=J[i+4>>2]|4;J[i+12>>2]=J[i+12>>2]|1;J[i+8>>2]=J[i+8>>2]|g<<18|2;e=g<<28|e|8192}J[p>>2]=e&-1226833921}e=p+4|0;v=v+4|0;z=z+1|0;if((A|0)!=(z|0))continue;break}e=p+12|0;v=(o<<2)+v|0;E=E+4|0;g=J[d+128>>2];if(E>>>0<(g&-4)>>>0)continue;break}break hf}e=g&-4;e=(e>>>0<=4?4:e)-1|0;E=(e&-4)+4|0;e=(i+(e<<1&-8)|0)+20|0}J[d+8>>2]=f;J[d+4>>2]=b;J[d>>2]=c;J[d+104>>2]= +l;if(!A|g>>>0<=E>>>0)break Jc;while(1){f=0;if(J[d+128>>2]!=(E|0))while(1){sY(d,e,(P(f,A)<<2)+v|0,D,f,0);f=f+1|0;if(f>>>0>2]-E>>>0)continue;break}J[e>>2]=J[e>>2]&-1226833921;v=v+4|0;e=e+4|0;w=w+1|0;if((A|0)!=(w|0))continue;break}break Jc}e=g&-4;e=(e>>>0<=4?4:e)-1|0;E=(e&-4)+4|0;e=(i+(e<<1&-8)|0)+20|0}J[d+8>>2]=f;J[d+4>>2]=b;J[d>>2]=c;J[d+104>>2]=l;if(!A|g>>>0<=E>>>0)break Jc;while(1){f=0;if(J[d+128>>2]!=(E|0))while(1){sY(d,e,(P(f,A)<<2)+v|0,D,f,1);f=f+1|0;if(f>>>0>2]-E>>>0)continue; break}J[e>>2]=J[e>>2]&-1226833921;v=v+4|0;e=e+4|0;w=w+1|0;if((A|0)!=(w|0))continue;break}break Jc}while(1){q=0;while(1){p=e;k=g;tg:{ug:{vg:{wg:{g=J[g>>2];xg:{if(!g){l=J[s>>2];g=J[l>>2];b=b-g|0;yg:{if(c>>>16>>>0>>0){i=J[l+4>>2];e=b>>>0>>0;J[s>>2]=J[l+(e?8:12)>>2];while(1){zg:{if(f)break zg;l=J[d+16>>2];b=l+1|0;h=K[l+1|0];if(K[l|0]==255){if(h>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break zg}J[d+16>>2]=b;c=(h<<9)+c|0;f=7;break zg}J[d+16>>2]=b;f=8;c=(h<<8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>> 0<32768)continue;break}b=g;e=e?i:!i;break yg}c=c-(g<<16)|0;if(!(b&32768)){i=J[l+4>>2];e=b>>>0>>0;J[s>>2]=J[l+(e?12:8)>>2];while(1){Ag:{if(f)break Ag;l=J[d+16>>2];g=l+1|0;h=K[l+1|0];if(K[l|0]==255){if(h>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ag}J[d+16>>2]=g;c=(h<<9)+c|0;f=7;break Ag}J[d+16>>2]=g;f=8;c=(h<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!i:i;break yg}e=J[l+4>>2]}if(!e){l=s;break tg}e=J[r>>2];g=J[e>>2];b=b-g|0;Bg:{if(c>>>16>>>0>>0){h=J[e+4>>2];l= b>>>0>>0;e=J[(l?8:12)+e>>2];J[r>>2]=e;while(1){Cg:{if(f)break Cg;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Cg}J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Cg}J[d+16>>2]=b;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;i=l?h:!h;break Bg}c=c-(g<<16)|0;if(!(b&32768)){h=J[e+4>>2];g=b>>>0>>0;e=J[(g?12:8)+e>>2];J[r>>2]=e;while(1){Dg:{if(f)break Dg;i=J[d+16>>2];l=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+ 12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Dg}J[d+16>>2]=l;c=(j<<9)+c|0;f=7;break Dg}J[d+16>>2]=l;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}i=g?!h:h;break Bg}i=J[e+4>>2]}g=J[e>>2];b=b-g|0;Eg:{if(c>>>16>>>0>>0){h=J[e+4>>2];l=e;e=b>>>0>>0;J[r>>2]=J[l+(e?8:12)>>2];while(1){Fg:{if(f)break Fg;l=J[d+16>>2];b=l+1|0;j=K[l+1|0];if(K[l|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Fg}J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Fg}J[d+16>>2]=b;f=8;c=(j<<8)+c|0}f= f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;e=e?h:!h;break Eg}c=c-(g<<16)|0;if(!(b&32768)){h=J[e+4>>2];l=e;e=b>>>0>>0;J[r>>2]=J[l+(e?12:8)>>2];while(1){Gg:{if(f)break Gg;l=J[d+16>>2];g=l+1|0;j=K[l+1|0];if(K[l|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Gg}J[d+16>>2]=g;c=(j<<9)+c|0;f=7;break Gg}J[d+16>>2]=g;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break Eg}e=J[e+4>>2]}g=0;l=r;Hg:{Ig:{Jg:{Kg:{Lg:switch(e|i<<1){case 0:j=k-4| -0;l=J[k+4>>2]>>>17&4|J[j>>2]>>>19&1;e=(K[l+2363440|0]<<2)+d|0;i=J[e+28>>2];g=J[i>>2];b=b-g|0;Mg:{if(c>>>16>>>0>>0){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?8:12)>>2];while(1){Ng:{if(f)break Ng;i=J[d+16>>2];b=i+1|0;m=K[i+1|0];if(K[i|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ng}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Ng}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;e=e?h:!h;break Mg}c=c-(g<<16)|0;if(!(b&32768)){h=J[i+4>>2];o= -e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?12:8)>>2];while(1){Og:{if(f)break Og;i=J[d+16>>2];g=i+1|0;m=K[i+1|0];if(K[i|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Og}J[d+16>>2]=g;c=(m<<9)+c|0;f=7;break Og}J[d+16>>2]=g;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break Mg}e=J[i+4>>2]}e=e^K[l+2363696|0];J[p>>2]=e?t:z;J[j>>2]=J[j>>2]|32;J[k+4>>2]=J[k+4>>2]|8;l=e<<19;e=(K[J[d+108>>2]+2|0]<<2)+d|0;i=J[e+28>>2];g=J[i>>2];b=b-g|0;Pg:{if(c>>>16>>>0>>0){h= +0;l=J[k+4>>2]>>>17&4|J[j>>2]>>>19&1;e=(K[l+2375344|0]<<2)+d|0;i=J[e+28>>2];g=J[i>>2];b=b-g|0;Mg:{if(c>>>16>>>0>>0){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?8:12)>>2];while(1){Ng:{if(f)break Ng;i=J[d+16>>2];b=i+1|0;m=K[i+1|0];if(K[i|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ng}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Ng}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;e=e?h:!h;break Mg}c=c-(g<<16)|0;if(!(b&32768)){h=J[i+4>>2];o= +e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?12:8)>>2];while(1){Og:{if(f)break Og;i=J[d+16>>2];g=i+1|0;m=K[i+1|0];if(K[i|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Og}J[d+16>>2]=g;c=(m<<9)+c|0;f=7;break Og}J[d+16>>2]=g;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break Mg}e=J[i+4>>2]}e=e^K[l+2375600|0];J[p>>2]=e?t:z;J[j>>2]=J[j>>2]|32;J[k+4>>2]=J[k+4>>2]|8;l=e<<19;e=(K[J[d+108>>2]+2|0]<<2)+d|0;i=J[e+28>>2];g=J[i>>2];b=b-g|0;Pg:{if(c>>>16>>>0>>0){h= J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?8:12)>>2];while(1){Qg:{if(f)break Qg;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Qg}J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Qg}J[d+16>>2]=b;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;g=g<<1;if(g>>>0<32768)continue;break}b=g;e=e?h:!h;break Pg}c=c-(g<<16)|0;if(!(b&32768)){h=J[i+4>>2];o=e;e=b>>>0>>0;J[o+28>>2]=J[i+(e?12:8)>>2];while(1){Rg:{if(f)break Rg;i=J[d+16>>2];g=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>> -0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Rg}J[d+16>>2]=g;c=(j<<9)+c|0;f=7;break Rg}J[d+16>>2]=g;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break Pg}e=J[i+4>>2]}g=l|16;if(!e)break Kg;break;case 3:break Hg;case 2:break Jg;case 1:break Lg;default:break ug}m=k-4|0;i=J[k+4>>2]>>>20&4|(J[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|g>>>3&170)));l=(K[i+2363440|0]<<2)+d|0;h=J[l+28>>2];e=J[h>>2];b=b-e|0;Sg:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]= +0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Rg}J[d+16>>2]=g;c=(j<<9)+c|0;f=7;break Rg}J[d+16>>2]=g;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!h:h;break Pg}e=J[i+4>>2]}g=l|16;if(!e)break Kg;break;case 3:break Hg;case 2:break Jg;case 1:break Lg;default:break ug}m=k-4|0;i=J[k+4>>2]>>>20&4|(J[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|g>>>3&170)));l=(K[i+2375344|0]<<2)+d|0;h=J[l+28>>2];e=J[h>>2];b=b-e|0;Sg:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]= J[h+(l?8:12)>>2];while(1){Tg:{if(f)break Tg;h=J[d+16>>2];b=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Tg}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break Tg}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=l?j:!j;break Sg}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[l+28>>2]=J[h+(e?12:8)>>2];while(1){Ug:{if(f)break Ug;h=J[d+16>>2];l=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280| -0;f=8;break Ug}J[d+16>>2]=l;c=(n<<9)+c|0;f=7;break Ug}J[d+16>>2]=l;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break Sg}e=J[h+4>>2]}e=e^K[i+2363696|0];J[p+256>>2]=e?t:z;J[m>>2]=J[m>>2]|256;J[k+4>>2]=J[k+4>>2]|64;g=e<<22|g|128}l=(K[J[d+108>>2]+(g>>>6&495)|0]<<2)+d|0;i=J[l+28>>2];e=J[i>>2];b=b-e|0;Vg:{if(c>>>16>>>0>>0){h=J[i+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]=J[i+(l?8:12)>>2];while(1){Wg:{if(f)break Wg;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+ +0;f=8;break Ug}J[d+16>>2]=l;c=(n<<9)+c|0;f=7;break Ug}J[d+16>>2]=l;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break Sg}e=J[h+4>>2]}e=e^K[i+2375600|0];J[p+256>>2]=e?t:z;J[m>>2]=J[m>>2]|256;J[k+4>>2]=J[k+4>>2]|64;g=e<<22|g|128}l=(K[J[d+108>>2]+(g>>>6&495)|0]<<2)+d|0;i=J[l+28>>2];e=J[i>>2];b=b-e|0;Vg:{if(c>>>16>>>0>>0){h=J[i+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]=J[i+(l?8:12)>>2];while(1){Wg:{if(f)break Wg;i=J[d+16>>2];b=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+ 12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Wg}J[d+16>>2]=b;c=(j<<9)+c|0;f=7;break Wg}J[d+16>>2]=b;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=l?h:!h;break Vg}c=c-(e<<16)|0;if(!(b&32768)){h=J[i+4>>2];e=b>>>0>>0;J[l+28>>2]=J[i+(e?12:8)>>2];while(1){Xg:{if(f)break Xg;i=J[d+16>>2];l=i+1|0;j=K[i+1|0];if(K[i|0]==255){if(j>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Xg}J[d+16>>2]=l;c=(j<<9)+c|0;f=7;break Xg}J[d+16>>2]=l;f=8;c=(j<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1; -if(b>>>0<32768)continue;break}e=e?!h:h;break Vg}e=J[i+4>>2]}if(!e)break Ig}m=k-4|0;i=J[k+4>>2]>>>23&4|(J[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|g>>>6&170)));l=(K[i+2363440|0]<<2)+d|0;h=J[l+28>>2];e=J[h>>2];b=b-e|0;Yg:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]=J[h+(l?8:12)>>2];while(1){Zg:{if(f)break Zg;h=J[d+16>>2];b=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Zg}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break Zg}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f= -f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=l?j:!j;break Yg}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[l+28>>2]=J[h+(e?12:8)>>2];while(1){_g:{if(f)break _g;h=J[d+16>>2];l=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break _g}J[d+16>>2]=l;c=(n<<9)+c|0;f=7;break _g}J[d+16>>2]=l;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break Yg}e=J[h+4>>2]}e=e^K[i+2363696|0];J[p+512>>2]=e?t:z;J[m>>2]=J[m>>2]|2048; +if(b>>>0<32768)continue;break}e=e?!h:h;break Vg}e=J[i+4>>2]}if(!e)break Ig}m=k-4|0;i=J[k+4>>2]>>>23&4|(J[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|g>>>6&170)));l=(K[i+2375344|0]<<2)+d|0;h=J[l+28>>2];e=J[h>>2];b=b-e|0;Yg:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=l;l=b>>>0>>0;J[o+28>>2]=J[h+(l?8:12)>>2];while(1){Zg:{if(f)break Zg;h=J[d+16>>2];b=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Zg}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break Zg}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f= +f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=l?j:!j;break Yg}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[l+28>>2]=J[h+(e?12:8)>>2];while(1){_g:{if(f)break _g;h=J[d+16>>2];l=h+1|0;n=K[h+1|0];if(K[h|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break _g}J[d+16>>2]=l;c=(n<<9)+c|0;f=7;break _g}J[d+16>>2]=l;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break Yg}e=J[h+4>>2]}e=e^K[i+2375600|0];J[p+512>>2]=e?t:z;J[m>>2]=J[m>>2]|2048; J[k+4>>2]=J[k+4>>2]|512;g=e<<25|g|1024}i=(K[J[d+108>>2]+(g>>>9&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];e=J[h>>2];b=b-e|0;$g:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[h+(i?8:12)>>2];while(1){ah:{if(f)break ah;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ah}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break ah}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?j:!j;break $g}c=c-(e<<16)|0;if(!(b& -32768)){j=J[h+4>>2];e=b>>>0>>0;J[i+28>>2]=J[h+(e?12:8)>>2];while(1){bh:{if(f)break bh;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break bh}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break bh}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break $g}e=J[h+4>>2]}if(!e)break ug}E=k-4|0;x=J[k+4>>2]>>>26&4|(J[E>>2]>>>28&1|(g>>>21&16|(g>>>25&64|g>>>9&170)));h=(K[x+2363440|0]<<2)+d|0;l=h+28|0;i=J[l>>2];e=J[i>>2];b= +32768)){j=J[h+4>>2];e=b>>>0>>0;J[i+28>>2]=J[h+(e?12:8)>>2];while(1){bh:{if(f)break bh;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break bh}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break bh}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break $g}e=J[h+4>>2]}if(!e)break ug}E=k-4|0;x=J[k+4>>2]>>>26&4|(J[E>>2]>>>28&1|(g>>>21&16|(g>>>25&64|g>>>9&170)));h=(K[x+2375344|0]<<2)+d|0;l=h+28|0;i=J[l>>2];e=J[i>>2];b= b-e|0;if(c>>>16>>>0>>0){j=J[i+4>>2];o=i;i=b>>>0>>0;J[h+28>>2]=J[o+(i?8:12)>>2];while(1){ch:{if(f)break ch;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break ch}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break ch}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?j:!j;break vg}c=c-(e<<16)|0;if(b&32768)break xg;j=J[i+4>>2];e=b>>>0>>0;J[h+28>>2]=J[(e?12:8)+i>>2];while(1){dh:{if(f)break dh;h=J[d+16>>2];i=h+1| 0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break dh}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break dh}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!j:j;break vg}eh:{if(g&2097168)break eh;i=(K[J[d+108>>2]+(g&495)|0]<<2)+d|0;l=i+28|0;h=J[l>>2];e=J[h>>2];b=b-e|0;fh:{if(c>>>16>>>0>>0){j=J[h+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[h+(i?8:12)>>2];while(1){gh:{if(f)break gh;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+ 12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break gh}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break gh}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?j:!j;break fh}c=c-(e<<16)|0;if(!(b&32768)){j=J[h+4>>2];e=b>>>0>>0;J[i+28>>2]=J[h+(e?12:8)>>2];while(1){hh:{if(f)break hh;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break hh}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break hh}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1; -if(b>>>0<32768)continue;break}e=e?!j:j;break fh}e=J[h+4>>2]}if(!e)break eh;n=k-4|0;h=J[k+4>>2]>>>17&4|(J[n>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));i=(K[h+2363440|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;ih:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){jh:{if(f)break jh;j=J[d+16>>2];b=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break jh}J[d+16>>2]=b;c=(o<<9)+c|0;f=7;break jh}J[d+16>>2]=b;f=8;c=(o<<8)+c| -0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break ih}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){kh:{if(f)break kh;j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break kh}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break kh}J[d+16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break ih}e=J[j+4>>2]}e=e^K[h+2363696|0];J[p>>2]=e?t:z;J[n>>2]=J[n>>2]|32; +if(b>>>0<32768)continue;break}e=e?!j:j;break fh}e=J[h+4>>2]}if(!e)break eh;n=k-4|0;h=J[k+4>>2]>>>17&4|(J[n>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));i=(K[h+2375344|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;ih:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){jh:{if(f)break jh;j=J[d+16>>2];b=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break jh}J[d+16>>2]=b;c=(o<<9)+c|0;f=7;break jh}J[d+16>>2]=b;f=8;c=(o<<8)+c| +0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break ih}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){kh:{if(f)break kh;j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break kh}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break kh}J[d+16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break ih}e=J[j+4>>2]}e=e^K[h+2375600|0];J[p>>2]=e?t:z;J[n>>2]=J[n>>2]|32; J[k+4>>2]=J[k+4>>2]|8;g=e<<19|g|16}lh:{if(g&16777344)break lh;h=g>>>3|0;i=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;mh:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){nh:{if(f)break nh;j=J[d+16>>2];b=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break nh}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break nh}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m; -break mh}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){oh:{if(f)break oh;j=J[d+16>>2];i=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break oh}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break oh}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break mh}e=J[j+4>>2]}if(!e)break lh;n=k-4|0;h=J[k+4>>2]>>>20&4|(J[n>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));i=(K[h+2363440|0]<<2)+d|0;l=i+ +break mh}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){oh:{if(f)break oh;j=J[d+16>>2];i=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break oh}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break oh}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break mh}e=J[j+4>>2]}if(!e)break lh;n=k-4|0;h=J[k+4>>2]>>>20&4|(J[n>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));i=(K[h+2375344|0]<<2)+d|0;l=i+ 28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;ph:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){qh:{if(f)break qh;j=J[d+16>>2];b=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break qh}J[d+16>>2]=b;c=(o<<9)+c|0;f=7;break qh}J[d+16>>2]=b;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break ph}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){rh:{if(f)break rh; -j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break rh}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break rh}J[d+16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break ph}e=J[j+4>>2]}e=e^K[h+2363696|0];J[p+256>>2]=e?t:z;J[n>>2]=J[n>>2]|256;J[k+4>>2]=J[k+4>>2]|64;g=e<<22|g|128}sh:{if(g&134218752)break sh;h=g>>>6|0;i=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;th:{if(c>>>16>>>0>>0){m=J[j+4>> +j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break rh}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break rh}J[d+16>>2]=i;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break ph}e=J[j+4>>2]}e=e^K[h+2375600|0];J[p+256>>2]=e?t:z;J[n>>2]=J[n>>2]|256;J[k+4>>2]=J[k+4>>2]|64;g=e<<22|g|128}sh:{if(g&134218752)break sh;h=g>>>6|0;i=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;th:{if(c>>>16>>>0>>0){m=J[j+4>> 2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){uh:{if(f)break uh;j=J[d+16>>2];b=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break uh}J[d+16>>2]=b;c=(n<<9)+c|0;f=7;break uh}J[d+16>>2]=b;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break th}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){vh:{if(f)break vh;j=J[d+16>>2];i=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+ -12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break vh}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break vh}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break th}e=J[j+4>>2]}if(!e)break sh;n=k-4|0;h=J[k+4>>2]>>>23&4|(J[n>>2]>>>25&1|(g>>>18&16|(g>>>22&64|h&170)));i=(K[h+2363440|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;wh:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){xh:{if(f)break xh;j=J[d+16>>2];b=j+1|0;o=K[j+1|0];if(K[j|0]== +12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break vh}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break vh}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break th}e=J[j+4>>2]}if(!e)break sh;n=k-4|0;h=J[k+4>>2]>>>23&4|(J[n>>2]>>>25&1|(g>>>18&16|(g>>>22&64|h&170)));i=(K[h+2375344|0]<<2)+d|0;l=i+28|0;j=J[l>>2];e=J[j>>2];b=b-e|0;wh:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=i;i=b>>>0>>0;J[o+28>>2]=J[j+(i?8:12)>>2];while(1){xh:{if(f)break xh;j=J[d+16>>2];b=j+1|0;o=K[j+1|0];if(K[j|0]== 255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break xh}J[d+16>>2]=b;c=(o<<9)+c|0;f=7;break xh}J[d+16>>2]=b;f=8;c=(o<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?m:!m;break wh}c=c-(e<<16)|0;if(!(b&32768)){m=J[j+4>>2];e=b>>>0>>0;J[i+28>>2]=J[j+(e?12:8)>>2];while(1){yh:{if(f)break yh;j=J[d+16>>2];i=j+1|0;o=K[j+1|0];if(K[j|0]==255){if(o>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break yh}J[d+16>>2]=i;c=(o<<9)+c|0;f=7;break yh}J[d+16>>2]=i;f=8;c=(o<<8)+c| -0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break wh}e=J[j+4>>2]}e=e^K[h+2363696|0];J[p+512>>2]=e?t:z;J[n>>2]=J[n>>2]|2048;J[k+4>>2]=J[k+4>>2]|512;g=e<<25|g|1024}if(g&1073750016)break ug;i=b;h=g>>>9|0;b=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=b+28|0;j=J[l>>2];e=J[j>>2];i=i-e|0;zh:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=b;b=e>>>0>i>>>0;J[o+28>>2]=J[j+(b?8:12)>>2];while(1){Ah:{if(f)break Ah;j=J[d+16>>2];i=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0; +0}f=f-1|0;c=c<<1;b=b<<1;if(b>>>0<32768)continue;break}e=e?!m:m;break wh}e=J[j+4>>2]}e=e^K[h+2375600|0];J[p+512>>2]=e?t:z;J[n>>2]=J[n>>2]|2048;J[k+4>>2]=J[k+4>>2]|512;g=e<<25|g|1024}if(g&1073750016)break ug;i=b;h=g>>>9|0;b=(K[J[d+108>>2]+(h&495)|0]<<2)+d|0;l=b+28|0;j=J[l>>2];e=J[j>>2];i=i-e|0;zh:{if(c>>>16>>>0>>0){m=J[j+4>>2];o=b;b=e>>>0>i>>>0;J[o+28>>2]=J[j+(b?8:12)>>2];while(1){Ah:{if(f)break Ah;j=J[d+16>>2];i=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0; f=8;break Ah}J[d+16>>2]=i;c=(n<<9)+c|0;f=7;break Ah}J[d+16>>2]=i;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}i=e;b=b?m:!m;break zh}c=c-(e<<16)|0;if(!(i&32768)){m=J[j+4>>2];o=b;b=e>>>0>i>>>0;J[o+28>>2]=J[j+(b?12:8)>>2];while(1){Bh:{if(f)break Bh;j=J[d+16>>2];e=j+1|0;n=K[j+1|0];if(K[j|0]==255){if(n>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Bh}J[d+16>>2]=e;c=(n<<9)+c|0;f=7;break Bh}J[d+16>>2]=e;f=8;c=(n<<8)+c|0}f=f-1|0;c=c<<1;i=i<<1;if(i>>>0<32768)continue;break}b= -b?!m:m;break zh}b=J[j+4>>2]}if(!b){b=i;break ug}e=i;E=k-4|0;x=J[k+4>>2]>>>26&4|(J[E>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));h=(K[x+2363440|0]<<2)+d|0;l=h+28|0;i=J[l>>2];b=J[i>>2];e=e-b|0;if(c>>>16>>>0>>0){j=J[i+4>>2];e=b>>>0>e>>>0;J[h+28>>2]=J[(e?8:12)+i>>2];while(1){Ch:{if(f)break Ch;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ch}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break Ch}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>> -0<32768)continue;break}e=e?j:!j;break vg}c=c-(b<<16)|0;if(!(e&32768))break wg;b=e}e=J[i+4>>2];break vg}j=J[i+4>>2];o=i;i=b>>>0>e>>>0;J[h+28>>2]=J[o+(i?12:8)>>2];while(1){Dh:{if(f)break Dh;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Dh}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Dh}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?!j:j}e=e^K[x+2363696|0];J[p+768>>2]=e?t:z;J[E>>2]=J[E>>2]|16384;J[k+4>>2]= +b?!m:m;break zh}b=J[j+4>>2]}if(!b){b=i;break ug}e=i;E=k-4|0;x=J[k+4>>2]>>>26&4|(J[E>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));h=(K[x+2375344|0]<<2)+d|0;l=h+28|0;i=J[l>>2];b=J[i>>2];e=e-b|0;if(c>>>16>>>0>>0){j=J[i+4>>2];e=b>>>0>e>>>0;J[h+28>>2]=J[(e?8:12)+i>>2];while(1){Ch:{if(f)break Ch;h=J[d+16>>2];i=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Ch}J[d+16>>2]=i;c=(m<<9)+c|0;f=7;break Ch}J[d+16>>2]=i;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;b=b<<1;if(b>>> +0<32768)continue;break}e=e?j:!j;break vg}c=c-(b<<16)|0;if(!(e&32768))break wg;b=e}e=J[i+4>>2];break vg}j=J[i+4>>2];o=i;i=b>>>0>e>>>0;J[h+28>>2]=J[o+(i?12:8)>>2];while(1){Dh:{if(f)break Dh;h=J[d+16>>2];b=h+1|0;m=K[h+1|0];if(K[h|0]==255){if(m>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;c=c+65280|0;f=8;break Dh}J[d+16>>2]=b;c=(m<<9)+c|0;f=7;break Dh}J[d+16>>2]=b;f=8;c=(m<<8)+c|0}f=f-1|0;c=c<<1;e=e<<1;if(e>>>0<32768)continue;break}b=e;e=i?!j:j}e=e^K[x+2375600|0];J[p+768>>2]=e?t:z;J[E>>2]=J[E>>2]|16384;J[k+4>>2]= J[k+4>>2]|4096;J[k+260>>2]=J[k+260>>2]|4;J[k+268>>2]=J[k+268>>2]|1;J[k+264>>2]=J[k+264>>2]|e<<18|2;g=e<<28|g|8192}J[k>>2]=g&-1226833921}g=k+4|0;e=p+4|0;q=q+1|0;if((q|0)!=64)continue;break}g=k+12|0;e=p+772|0;i=v>>>0<60;v=v+4|0;if(i)continue;break}}J[d+8>>2]=f;J[d+4>>2]=b;J[d>>2]=c;J[d+104>>2]=l}Eh:{if(!(R&32))break Eh;J[d+104>>2]=d+100;g=J[d+100>>2];b=J[g>>2];c=J[d+4>>2]-b|0;J[d+4>>2]=c;f=J[d>>2];Fh:{if(f>>>16>>>0>>0){J[d+4>>2]=b;g=J[(b>>>0>c>>>0?8:12)+g>>2];J[d+100>>2]=g;c=J[d+8>>2];while(1){Gh:{if(c)break Gh; l=J[d+16>>2];e=l+1|0;i=K[l+1|0];if(K[l|0]==255){if(i>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;f=f+65280|0;c=8;break Gh}J[d+16>>2]=e;f=(i<<9)+f|0;c=7;break Gh}J[d+16>>2]=e;c=8;f=(i<<8)+f|0}c=c-1|0;J[d+8>>2]=c;f=f<<1;J[d>>2]=f;b=b<<1;J[d+4>>2]=b;if(b>>>0<32768)continue;break}c=b;break Fh}f=f-(b<<16)|0;J[d>>2]=f;if(c&32768)break Fh;g=J[(b>>>0>c>>>0?12:8)+g>>2];J[d+100>>2]=g;b=J[d+8>>2];while(1){Hh:{if(b)break Hh;e=J[d+16>>2];b=e+1|0;l=K[e+1|0];if(K[e|0]==255){if(l>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;f=f+65280| 0;b=8;break Hh}J[d+16>>2]=b;f=(l<<9)+f|0;b=7;break Hh}J[d+16>>2]=b;b=8;f=(l<<8)+f|0}b=b-1|0;J[d+8>>2]=b;f=f<<1;J[d>>2]=f;c=c<<1;J[d+4>>2]=c;if(c>>>0<32768)continue;break}}b=J[g>>2];c=c-b|0;J[d+4>>2]=c;Ih:{if(f>>>16>>>0>>0){J[d+4>>2]=b;g=J[(b>>>0>c>>>0?8:12)+g>>2];J[d+100>>2]=g;c=J[d+8>>2];while(1){Jh:{if(c)break Jh;l=J[d+16>>2];e=l+1|0;i=K[l+1|0];if(K[l|0]==255){if(i>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;f=f+65280|0;c=8;break Jh}J[d+16>>2]=e;f=(i<<9)+f|0;c=7;break Jh}J[d+16>>2]=e;c=8;f=(i<<8)+f|0}c= @@ -1567,564 +1593,564 @@ c-1|0;J[d+8>>2]=c;f=f<<1;J[d>>2]=f;b=b<<1;J[d+4>>2]=b;if(b>>>0<32768)continue;br c=c-b|0;J[d+4>>2]=c;Lh:{if(f>>>16>>>0>>0){J[d+4>>2]=b;g=J[(b>>>0>c>>>0?8:12)+g>>2];J[d+100>>2]=g;c=J[d+8>>2];while(1){Mh:{if(c)break Mh;l=J[d+16>>2];e=l+1|0;i=K[l+1|0];if(K[l|0]==255){if(i>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;f=f+65280|0;c=8;break Mh}J[d+16>>2]=e;f=(i<<9)+f|0;c=7;break Mh}J[d+16>>2]=e;c=8;f=(i<<8)+f|0}c=c-1|0;J[d+8>>2]=c;f=f<<1;J[d>>2]=f;b=b<<1;J[d+4>>2]=b;if(b>>>0<32768)continue;break}c=b;break Lh}f=f-(b<<16)|0;J[d>>2]=f;if(c&32768)break Lh;g=J[(b>>>0>c>>>0?12:8)+g>>2];J[d+100>> 2]=g;b=J[d+8>>2];while(1){Nh:{if(b)break Nh;e=J[d+16>>2];b=e+1|0;l=K[e+1|0];if(K[e|0]==255){if(l>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;f=f+65280|0;b=8;break Nh}J[d+16>>2]=b;f=(l<<9)+f|0;b=7;break Nh}J[d+16>>2]=b;b=8;f=(l<<8)+f|0}b=b-1|0;J[d+8>>2]=b;f=f<<1;J[d>>2]=f;c=c<<1;J[d+4>>2]=c;if(c>>>0<32768)continue;break}}b=J[g>>2];c=c-b|0;J[d+4>>2]=c;if(f>>>16>>>0>>0){J[d+4>>2]=b;J[d+100>>2]=J[(b>>>0>c>>>0?8:12)+g>>2];c=J[d+8>>2];while(1){Oh:{if(c)break Oh;g=J[d+16>>2];e=g+1|0;l=K[g+1|0];if(K[g|0]==255){if(l>>> 0>=144){J[d+12>>2]=J[d+12>>2]+1;f=f+65280|0;c=8;break Oh}J[d+16>>2]=e;f=(l<<9)+f|0;c=7;break Oh}J[d+16>>2]=e;c=8;f=(l<<8)+f|0}c=c-1|0;J[d+8>>2]=c;f=f<<1;J[d>>2]=f;b=b<<1;J[d+4>>2]=b;if(b>>>0<32768)continue;break}break Eh}l=f-(b<<16)|0;J[d>>2]=l;if(c&32768)break Eh;J[d+100>>2]=J[(b>>>0>c>>>0?12:8)+g>>2];f=J[d+8>>2];while(1){Ph:{if(f)break Ph;e=J[d+16>>2];b=e+1|0;g=K[e+1|0];if(K[e|0]==255){if(g>>>0>=144){J[d+12>>2]=J[d+12>>2]+1;l=l+65280|0;f=8;break Ph}J[d+16>>2]=b;l=(g<<9)+l|0;f=7;break Ph}J[d+16>> -2]=b;f=8;l=(g<<8)+l|0}f=f-1|0;J[d+8>>2]=f;l=l<<1;J[d>>2]=l;c=c<<1;J[d+4>>2]=c;if(c>>>0<32768)continue;break}}}if(ma)break x;NW(d);J[d+100>>2]=2361200;J[d+96>>2]=2359824;J[d+28>>2]=2359856}b=W+1|0;e=(b|0)==3;W=e?0:b;G=G-e|0;aa=aa+1|0;if(aa>>>0>=M[X+8>>2])break w;if((G|0)>0)continue;break}}da=da+la|0;e=J[d+24>>2];b=L[d+112>>1];H[e|0]=b;H[e+1|0]=b>>>8;$=$+1|0;if($>>>0>2])continue;break}}Qh:{if(!ha)break Qh;Rh:{e=J[d+24>>2];g=J[d+16>>2];if(e>>>0>g+2>>>0){if(!Z)break Rh;b=J[d+20>>2];J[F+56>>2]= -e-b;J[F+52>>2]=g-b;J[F+48>>2]=(e-g|0)-2;Hc(U,2,2341970,F+48|0);break Qh}b=J[d+12>>2];if(b>>>0<3)break Qh;if(Z){J[F+80>>2]=b;Hc(U,2,2342311,F+80|0);break Qh}J[F+64>>2]=b;Hc(U,2,2342311,F- -64|0);break Qh}b=J[d+20>>2];J[F+40>>2]=e-b;J[F+36>>2]=g-b;J[F+32>>2]=(e-g|0)-2;Hc(U,2,2341970,F+32|0)}if(!J[C+56>>2])break p;J[d+116>>2]=ia}l=J[T+4>>2];g=J[C+12>>2];r=J[C+8>>2]-J[T>>2]|0;e=J[T+16>>2];if(e&1){b=(J[V+28>>2]+P(ba,152)|0)-152|0;r=(J[b+8>>2]+r|0)-J[b>>2]|0}i=g-l|0;if(e&2){b=(J[V+28>>2]+P(ba,152)|0)-152| -0;i=(J[b+12>>2]+i|0)-J[b+4>>2]|0}p=J[C+56>>2];f=p;f=f?f:J[d+116>>2];j=J[d+128>>2];m=J[d+124>>2];c=J[S+808>>2];Sh:{if(!c)break Sh;b=!j|!m;if((c|0)<=30){if(b)break Sh;w=0;while(1){l=P(m,w);b=0;while(1){g=(b+l<<2)+f|0;s=J[g>>2];e=s>>31;e=(e^s)-e|0;if(e>>>c|0){e=e>>>J[S+808>>2]|0;J[g>>2]=(s|0)<0?0-e|0:e}b=b+1|0;if((m|0)!=(b|0))continue;break}w=w+1|0;if((j|0)!=(w|0))continue;break}break Sh}if(b)break Sh;wc(f,0,P(j,m)<<2)}Th:{if(!p){b=J[V+36>>2];if(b)break Th;fa(2340358,2340826,1722,2361323);B()}i=P(j, +2]=b;f=8;l=(g<<8)+l|0}f=f-1|0;J[d+8>>2]=f;l=l<<1;J[d>>2]=l;c=c<<1;J[d+4>>2]=c;if(c>>>0<32768)continue;break}}}if(ma)break x;FY(d);J[d+100>>2]=2373104;J[d+96>>2]=2371728;J[d+28>>2]=2371760}b=W+1|0;e=(b|0)==3;W=e?0:b;G=G-e|0;aa=aa+1|0;if(aa>>>0>=M[X+8>>2])break w;if((G|0)>0)continue;break}}da=da+la|0;e=J[d+24>>2];b=L[d+112>>1];H[e|0]=b;H[e+1|0]=b>>>8;$=$+1|0;if($>>>0>2])continue;break}}Qh:{if(!ha)break Qh;Rh:{e=J[d+24>>2];g=J[d+16>>2];if(e>>>0>g+2>>>0){if(!Z)break Rh;b=J[d+20>>2];J[F+56>>2]= +e-b;J[F+52>>2]=g-b;J[F+48>>2]=(e-g|0)-2;Nc(U,2,2353866,F+48|0);break Qh}b=J[d+12>>2];if(b>>>0<3)break Qh;if(Z){J[F+80>>2]=b;Nc(U,2,2354207,F+80|0);break Qh}J[F+64>>2]=b;Nc(U,2,2354207,F- -64|0);break Qh}b=J[d+20>>2];J[F+40>>2]=e-b;J[F+36>>2]=g-b;J[F+32>>2]=(e-g|0)-2;Nc(U,2,2353866,F+32|0)}if(!J[C+56>>2])break p;J[d+116>>2]=ia}l=J[T+4>>2];g=J[C+12>>2];r=J[C+8>>2]-J[T>>2]|0;e=J[T+16>>2];if(e&1){b=(J[V+28>>2]+P(ba,152)|0)-152|0;r=(J[b+8>>2]+r|0)-J[b>>2]|0}i=g-l|0;if(e&2){b=(J[V+28>>2]+P(ba,152)|0)-152| +0;i=(J[b+12>>2]+i|0)-J[b+4>>2]|0}p=J[C+56>>2];f=p;f=f?f:J[d+116>>2];j=J[d+128>>2];m=J[d+124>>2];c=J[S+808>>2];Sh:{if(!c)break Sh;b=!j|!m;if((c|0)<=30){if(b)break Sh;w=0;while(1){l=P(m,w);b=0;while(1){g=(b+l<<2)+f|0;s=J[g>>2];e=s>>31;e=(e^s)-e|0;if(e>>>c|0){e=e>>>J[S+808>>2]|0;J[g>>2]=(s|0)<0?0-e|0:e}b=b+1|0;if((m|0)!=(b|0))continue;break}w=w+1|0;if((j|0)!=(w|0))continue;break}break Sh}if(b)break Sh;Ac(f,0,P(j,m)<<2)}Th:{if(!p){b=J[V+36>>2];if(b)break Th;fa(2352254,2352722,1722,2373227);B()}i=P(j, m);if(J[S+20>>2]==1){if(!i)break a;b=0;if((i|0)!=1){l=i&-2;d=0;while(1){g=b<<2;e=g+f|0;J[e>>2]=J[e>>2]/2;e=(g|4)+f|0;J[e>>2]=J[e>>2]/2;b=b+2|0;d=d+2|0;if((l|0)!=(d|0))continue;break}}if(!(i&1))break a;b=(b<<2)+f|0;J[b>>2]=J[b>>2]/2;break a}if(!i)break a;O=Q(N[T+32>>2]*Q(.5));if(i>>>0>=4){e=i&-4;b=0;while(1){N[f>>2]=O*Q(J[f>>2]);N[f+4>>2]=O*Q(J[f+4>>2]);N[f+8>>2]=O*Q(J[f+8>>2]);N[f+12>>2]=O*Q(J[f+12>>2]);f=f+16|0;b=b+4|0;if((e|0)!=(b|0))continue;break}}e=i&3;if(!e)break a;b=0;while(1){N[f>>2]=O*Q(J[f>> 2]);f=f+4|0;b=b+1|0;if((e|0)!=(b|0))continue;break}break a}h=ga-ea|0;if(J[S+20>>2]==1){if(!j)break a;d=(b+(P(h,i)<<2)|0)+(r<<2)|0;r=m&-4;i=0;while(1){b=0;if(r){c=P(i,m);s=d+(P(h,i)<<2)|0;while(1){k=(b+c<<2)+f|0;l=J[k+4>>2];g=J[k+8>>2];e=J[k+12>>2];p=s+(b<<2)|0;J[p>>2]=J[k>>2]/2;J[p+12>>2]=(e|0)/2;J[p+8>>2]=(g|0)/2;J[p+4>>2]=(l|0)/2;b=b+4|0;if(r>>>0>b>>>0)continue;break}}Uh:{if(b>>>0>=m>>>0)break Uh;e=b+1|0;l=P(i,m);g=d+(P(h,i)<<2)|0;if(m-b&1){J[g+(b<<2)>>2]=J[(b+l<<2)+f>>2]/2;b=e}if((e|0)==(m|0))break Uh; while(1){J[g+(b<<2)>>2]=J[(b+l<<2)+f>>2]/2;e=b+1|0;J[g+(e<<2)>>2]=J[(e+l<<2)+f>>2]/2;b=b+2|0;if((m|0)!=(b|0))continue;break}}i=i+1|0;if((j|0)!=(i|0))continue;break}break a}if(!j|!m)break a;O=Q(N[T+32>>2]*Q(.5));i=(b+(P(h,i)<<2)|0)+(r<<2)|0;g=m&-4;l=m&3;s=0;e=m-1>>>0<3;while(1){b=i;d=0;if(!e)while(1){N[b>>2]=O*Q(J[f>>2]);N[b+4>>2]=O*Q(J[f+4>>2]);N[b+8>>2]=O*Q(J[f+8>>2]);N[b+12>>2]=O*Q(J[f+12>>2]);b=b+16|0;f=f+16|0;d=d+4|0;if((g|0)!=(d|0))continue;break}d=0;if(l)while(1){N[b>>2]=O*Q(J[f>>2]);b=b+4| -0;f=f+4|0;d=d+1|0;if((l|0)!=(d|0))continue;break}i=(h<<2)+i|0;s=s+1|0;if((j|0)!=(s|0))continue;break}break a}J[F>>2]=G;Hc(U,2,2341448,F)}J[J[w>>2]>>2]=0}qc(a);bc=F+96|0}function K7(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,C=0,D=0,E=0,F=0,G=0,M=0,S=0,T=0,U=0,V=Q(0),W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;z=bc-16|0;bc=z;b=Ac(a);T=(b&1)+b|0;a:{if((T|0)<=0)break a;ja=J[a+28>>2]; -c=Tc(a);b=c<<16>>31;b=(b^c)-b|0;I[a+632>>1]=b;b:{b=b<<16>>16;if((b|0)>0){b=zc(P(b&65535,600));J[a+636>>2]=b;n=-4;if(!b)break a;wc(b,0,P(I[a+632>>1],600));if(I[a+632>>1]<=0)break b;f=J[a+636>>2];c:{d:{e:{f:{g:{h:{i:{j:while(1){J[f+592>>2]=23;H[f+586|0]=0;I[f+584>>1]=1;H[f+566|0]=0;I[f+564>>1]=1;H[f+541|0]=255;H[f+40|0]=255;J[f+36>>2]=0;J[f>>2]=0;H[f+74|0]=1;H[f+72|0]=255;ma=f,na=Ac(a),J[ma+4>>2]=na;ma=f,na=Ac(a),J[ma+8>>2]=na;ma=f,na=Ac(a),J[ma+12>>2]=na;b=Ac(a);J[f+16>>2]=b;J[f+20>>2]=b-J[f+8>>2]; -J[f+24>>2]=J[f+12>>2]-J[f+4>>2];b=Tc(a);I[f+28>>1]=b;if((b|0)<=0)break c;b=zc(P(b&65535,12));J[f+32>>2]=b;if(!b)break d;b=0;if(I[f+28>>1]>0)while(1){c=Tc(a);d=P(b,12);I[d+J[f+32>>2]>>1]=c;c=Ac(a);d=d+J[f+32>>2]|0;H[d+8|0]=0;J[d+4>>2]=c;b=b+1|0;if((b|0)>1])continue;break}if((Ac(a)|0)!=943868237){Fr(f);n=-500;break a}ma=f,na=Bo(a),J[ma+36>>2]=na;ma=f,na=pf(a),H[ma+40|0]=na;ma=f,na=me(a),H[ma+41|0]=na;b=pf(a);H[f+42|0]=b&1;H[f+44|0]=b>>>2&1;H[f+43|0]=(b^-1)>>>1&1;if(b&8)H[f+45|0]=b>>>4&1;if(pf(a))break e; -A=Ac(a);if((A|0)<=0)break f;F=J[a+28>>2];k:{l:{m:{n:{b=Ac(a);switch(b-20|0){case 0:case 16:break l;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break m;default:break n}}if(!b)break k}fa(222713,220174,440,223198);B()}ma=f,na=Ac(a),J[ma+48>>2]=na;ma=f,na=Ac(a),J[ma+52>>2]=na;ma=f,na=Ac(a),J[ma+56>>2]=na;c=Ac(a);J[f+60>>2]=c;J[f- -64>>2]=c-J[f+52>>2];J[f+68>>2]=J[f+56>>2]-J[f+48>>2];c=pf(a);H[f+72|0]=c;if((c|0)!=255?c:0)break g;c=pf(a); -H[f+73|0]=c&1;H[f+75|0]=c>>>2&1;H[f+74|0]=c>>>1&1;if((b|0)==20){Tc(a);break k}b=pf(a);H[f+73|0]=b&1;H[f+75|0]=b>>>2&1;H[f+74|0]=b>>>1&1;b=pf(a);H[f+72|0]=b;if((b|0)!=255?b:0)break h;ma=f,na=Ac(a),J[ma+48>>2]=na;ma=f,na=Ac(a),J[ma+52>>2]=na;ma=f,na=Ac(a),J[ma+56>>2]=na;b=Ac(a);J[f+60>>2]=b;J[f+64>>2]=b-J[f+52>>2];J[f+68>>2]=J[f+56>>2]-J[f+48>>2]}b=Ac(a);ma=f,na=Tc(a),I[ma+80>>1]=na;ma=f,na=Tc(a),I[ma+82>>1]=na;ma=f,na=Tc(a),I[ma+84>>1]=na;c=Tc(a);d=(b-8|0)/8|0;J[f+88>>2]=d;I[f+86>>1]=c;if((b|0)<=15){Fr(f); -n=-56;break a}ma=f,na=zc(d<<1),J[ma+92>>2]=na;ma=f,na=zc(J[f+88>>2]<<1),J[ma+96>>2]=na;ma=f,na=zc(J[f+88>>2]<<1),J[ma+100>>2]=na;b=zc(J[f+88>>2]<<1);J[f+104>>2]=b;if(!J[f+92>>2]|!J[f+96>>2]|(!J[f+100>>2]|!b))break i;b=0;if(J[f+88>>2]>0)while(1){d=Tc(a);c=b<<1;I[c+J[f+92>>2]>>1]=d;d=Tc(a);I[c+J[f+96>>2]>>1]=d;d=Tc(a);I[c+J[f+100>>2]>>1]=d;d=Tc(a);I[c+J[f+104>>2]>>1]=d;b=b+1|0;if((b|0)>2])continue;break}af(a,f+108|0,(pf(a)+4&508)-1|0);G=f+572|0;while(1){o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{b=J[a+28>> -2]-F|0;if((b|0)<(A|0)){if((Ac(a)|0)!=943868237){n=-528;break a}b=Ac(a);w=Ac(a)+1&-2;ka=J[a+28>>2];if((b|0)>1819109228)break u;if((b|0)>1719169647)break t;if((b|0)<=1651665267){if((b|0)<=1399800686){if((b|0)==1197753964)break x;if((b|0)!=1349797484)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=19;J[f>>2]=19;b=-4;y:{c=zc(272);if(!c)break y;b=wc(c,0,272);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;c=-530;z:{A:{B:{C:{D:{if((Ac(a)|0)!=16)break D;te(a,Ac(a)<<1);c=Ac(a);E:{if(!c){ma=b,na=Ac(a), -J[ma>>2]=na;break E}te(a,c)}c=0;e=Ac(a);if(!e)break D;h=b+4|0;while(1){if(Ac(a))break C;d=Ac(a);i=Ac(a);F:{G:{H:{if((d|0)!=1349808750){if((d|0)!=1399024672)break H;if((i|0)!=1433302086)break B;if((Ac(a)|0)!=592474723)break A;k=be(a);if(!(R(k)<2147483648))break G;J[b+268>>2]=~~k;break F}if((i|0)!=1331849827)break z;FD(h,a);break F}fa(222749,220135,105,223672);B()}J[b+268>>2]=-2147483648}e=e-1|0;if(e)continue;break}}b=c;break y}fa(219520,220135,74,223672);B()}fa(221341,220135,89,223672);B()}fa(221850, -220135,93,223672);B()}fa(222405,220135,100,223672);B()}break q}if((b|0)==1399800687)break w;if((b|0)!=1651273315)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=4;J[f>>2]=9;b=-4;I:{c=zc(788);if(!c)break I;b=wc(c,0,788);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;ma=b,na=Tc(a),I[ma>>1]=na;ma=b,na=Tc(a),I[ma+6>>1]=na;c=Tc(a);I[b+12>>1]=c;J:{K:{if((L[b>>1]+100&65535)>>>0>=201)break K;if(I[b+6>>1]<=-101)break J;L:{M:{if((c|0)<=-101)break M;ma=b,na=Tc(a),I[ma+2>>1]=na;ma=b,na=Tc(a),I[ma+8>>1]= -na;c=Tc(a);I[b+14>>1]=c;if((L[b+2>>1]+100&65535)>>>0>200)break K;if(I[b+8>>1]<-100)break J;if((c|0)<-100)break M;ma=b,na=Tc(a),I[ma+4>>1]=na;ma=b,na=Tc(a),I[ma+10>>1]=na;c=Tc(a);I[b+16>>1]=c;if((L[b+4>>1]+100&65535)>>>0>200)break K;if(I[b+10>>1]<-100)break J;if((c|0)<-100)break M;c=b;b=Tc(a);H[c+18|0]=b;if(!(b&254))break L;fa(222282,220328,83,223699);B()}fa(221708,220328,78,223699);B()}H[f+540|0]=1;b=0;break I}fa(219429,220328,76,223699);B()}fa(221173,220328,77,223699);B()}break q}if((b|0)>1668047467)break s; -if((b|0)==1651665268)break v;if((b|0)!=1651667828)break r;c=0;if((w|0)<4)break o;d=(w|0)/4|0;while(1){e=Ac(a);i=I[f+28>>1];N:{if((i|0)<=0)break N;h=J[f+32>>2];b=0;while(1){j=h+P(b,12)|0;if((e|0)==I[j>>1]){H[j+8|0]=1;break N}b=b+1|0;if((i|0)!=(b|0))continue;break}}c=c+1|0;if((d|0)!=(c|0))continue;break}break o}if((b|0)==(A|0)){f=f+600|0;U=U+1|0;b=I[a+632>>1];if((U|0)<(b|0))continue j;if((b|0)<=0)break b;f=J[a+636>>2];b=0;while(1){e=0;j=0;q=0;i=f;n=J[f+24>>2];f=J[f+20>>2];c=P(n,f);O:{P:{Q:{R:{S:{T:{o= -L[a+50>>1];switch(o-1|0){case 15:break Q;case 7:break R;case 0:break T;default:break S}}n=P(n,(f+7|0)/8|0);f=J[i+68>>2];h=J[i- -64>>2];break O}fa(219530,220247,769,223727);B()}f=J[i+68>>2];h=J[i- -64>>2];j=P(f,h);break P}c=c<<1;f=J[i+68>>2];h=J[i- -64>>2];j=P(f,h)<<1}n=c}U:{V:{W:{p=(j|0)>(n|0)?j:n;X:{if((p|0)<=0){if(I[i+28>>1]<=0)break X;d=0;while(1){te(a,J[(J[i+32>>2]+P(d,12)|0)+4>>2]);d=d+1|0;if((d|0)>1])continue;break}break X}J[a+704>>2]=p;J[a+700>>2]=n;d=I[i+28>>1];e=P(p,d);if((e|0)>J[a+ -688>>2]){Gc(J[a+684>>2]);d=J[a+688>>2]<<1;d=(d|0)>(e|0)?d:e;d=(d|0)<=12288?12288:d;J[a+688>>2]=d;d=zc(d);J[a+684>>2]=d;if(!d)break W;d=L[i+28>>1]}w=i+24|0;x=i+20|0;r=i+68|0;s=i- -64|0;if(d<<16>>16>0){t=P(f,h)<<((o|0)==16);while(1){v=P(q,12);f=v+J[i+32>>2]|0;if(I[f>>1]<=-3)break V;Y:{d=J[f+4>>2];f=d-2|0;if((f|0)<=J[a+696>>2])break Y;Gc(J[a+692>>2]);e=J[a+696>>2]<<1;f=(e|0)>(f|0)?e:f;f=(f|0)<=4096?4096:f;J[a+696>>2]=f;f=zc(f);J[a+692>>2]=f;if(f)break Y;J[a+696>>2]=0;f=-4;break U}o=Tc(a);Z:{if((d|0)< -3)break Z;e=af(a,J[a+692>>2],J[(v+J[i+32>>2]|0)+4>>2]-2|0);f=-5;d=v+J[i+32>>2]|0;if((e|0)!=(J[d+4>>2]-2|0))break U;h=J[a+684>>2]+P(p,q)|0;_:switch(o|0){case 1:$:switch(L[a+50>>1]-8|0){default:fa(221397,220247,864,223727);B();case 0:case 8:break $}d=L[d>>1];A=J[((d|0)==65534?r:w)>>2];aa:{if((A|0)<=0){l=0;break aa}g=J[a+692>>2];d=g+(A<<1)|0;l=0;m=0;while(1){e=0;f=K[g|0]|K[g+1|0]<<8;F=(f<<8|f>>>8)<<16>>16;if((F|0)>0)while(1){o=e+1|0;f=d+1|0;u=K[d|0];G=u<<24>>24;ba:{if((G|0)>=0){d=u+1|0;e=d+o|0;h=tc(h, -f,d)+d|0;l=d+l|0;f=d+f|0;break ba}if((G|0)==-128){e=o;break ba}e=e+2|0;f=257-u|0;h=wc(h,K[d+1|0],f)+f|0;l=f+l|0;f=d+2|0}d=f;if((e|0)<(F|0))continue;break}g=g+2|0;m=m+1|0;if((A|0)!=(m|0))continue;break}d=L[v+J[i+32>>2]>>1]}if((d&65535)==65534){if((l|0)==(t|0))break Z;fa(221940,220247,911,223727);B()}if((c|0)==(l|0))break Z;fa(222476,220247,913,223727);B();case 2:e=$M(J[a+692>>2],e,h,L[d>>1]==65534?t:c);if(!e)break Z;break X;case 3:f=L[d>>1]==65534;e=_M(J[a+692>>2],e,h,f?t:c,J[(f?s:x)>>2],L[a+50>>1]); -if(!e)break Z;break X;default:fa(219530,220247,941,223727);B();case 0:break _}tc(h,J[a+692>>2],L[d>>1]==65534?j:n)}q=q+1|0;if((q|0)>1])continue;break}}c=P(J[w>>2],J[x>>2]);ca:{if((c|0)<=0)break ca;c=zc(c<<2);J[i+372>>2]=c;f=-4;if(!c)break U;da:{ea:switch(J[a+52>>2]){case 0:if(L[a+50>>1]==1){h=0;m=0;fa:{c=I[i+28>>1];if((c|0)<=0)break fa;e=J[i+372>>2];f=J[i+32>>2];ga:{while(1){n=I[f+P(h,12)>>1];if(n+2>>>0>=2){if(n)break ga;m=J[a+684>>2]+P(J[a+704>>2],h)|0}h=h+1|0;if((c|0)!=(h|0))continue;break}if(!m)break fa; -f=J[i+20>>2];c=(f+7|0)/8|0;h=J[i+24>>2];if(!((h|0)<=0|(f|0)<=0)){d=0;while(1){if((f|0)>0){j=P(d,c)+m|0;n=0;h=128;while(1){J[e>>2]=K[j|0]&h?-16777216:-1;f=h>>>0<2;h=f?128:h>>1;e=e+4|0;j=f+j|0;f=J[i+20>>2];n=n+1|0;if((f|0)>(n|0))continue;break}h=J[i+24>>2]}d=d+1|0;if((h|0)>(d|0))continue;break}}break ca}fa(219530,220247,65,223760);B()}fa(223083,220247,70,223760);B()}fa(219530,220247,960,223727);B();case 1:case 8:ha:switch(L[a+50>>1]-8|0){case 8:e=0;j=0;c=0;ia:{ja:{f=I[i+28>>1];if((f|0)<=0)break ja; -d=J[i+372>>2];n=J[i+32>>2];while(1){ka:{la:switch(I[n+P(c,12)>>1]+2|0){case 1:j=J[a+684>>2]+P(J[a+704>>2],c)|0;break ka;default:fa(219530,220247,169,223819);B();case 0:break ka;case 2:break la}e=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}if(!e)break ja;f=P(J[i+24>>2],J[i+20>>2]);ma:{if(!j){if(!f)break ma;h=f&3;na:{if(!h){c=f;break na}n=0;c=f;while(1){J[d>>2]=P(K[e|0],65793)|-16777216;e=e+2|0;d=d+4|0;c=c-1|0;n=n+1|0;if((h|0)!=(n|0))continue;break}}if(f>>>0<4)break ma;while(1){J[d>> -2]=P(K[e|0],65793)|-16777216;J[d+4>>2]=P(K[e+2|0],65793)|-16777216;J[d+8>>2]=P(K[e+4|0],65793)|-16777216;J[d+12>>2]=P(K[e+6|0],65793)|-16777216;e=e+8|0;d=d+16|0;c=c-4|0;if(c)continue;break}break ma}if(!f)break ma;if(f&1){c=K[e|0];J[d>>2]=K[j|0]<<24|c<<16|c<<8|c;e=e+2|0;j=j+2|0;d=d+4|0;n=f-1|0}else n=f;if((f|0)==1)break ma;while(1){c=K[e|0];J[d>>2]=K[j|0]<<24|c<<16|c<<8|c;c=K[e+2|0];J[d+4>>2]=K[j+2|0]<<24|c<<16|c<<8|c;e=e+4|0;j=j+4|0;d=d+8|0;n=n-2|0;if(n)continue;break}}break ia}fa(223282,220247,174, -223819);B()}break ca;case 0:break da;default:break ha}fa(219530,220247,973,223727);B();case 2:if(L[a+50>>1]==8){e=0;j=0;oa:{c=I[i+28>>1];if((c|0)<=0)break oa;d=J[i+372>>2];f=J[i+32>>2];pa:{while(1){n=I[f+P(j,12)>>1];if(n+2>>>0>=2){if(n)break pa;e=J[a+684>>2]+P(J[a+704>>2],j)|0}j=j+1|0;if((c|0)!=(j|0))continue;break}if(!e)break oa;c=P(J[i+24>>2],J[i+20>>2]);qa:{if(!c)break qa;n=I[a+462>>1];if(c&1){j=16777215;f=K[e|0];if(!((f|0)>=(n|0)|(f|0)==I[a+464>>1]))j=J[J[a+60>>2]+(f<<2)>>2];J[d>>2]=j;e=e+1|0; -d=d+4|0;f=c-1|0}else f=c;if((c|0)==1)break qa;while(1){j=16777215;h=K[e|0];c=16777215;ra:{if((h|0)>=(n|0))break ra;c=16777215;if((h|0)==I[a+464>>1])break ra;c=J[J[a+60>>2]+(h<<2)>>2]}J[d>>2]=c;c=K[e+1|0];if(!((c|0)>=(n|0)|(c|0)==I[a+464>>1]))j=J[J[a+60>>2]+(c<<2)>>2];J[d+4>>2]=j;e=e+2|0;d=d+8|0;f=f-2|0;if(f)continue;break}}break ca}fa(219530,220247,219,223851);B()}fa(223472,220247,224,223851);B()}fa(219530,220247,981,223727);B();case 3:sa:switch(L[a+50>>1]-8|0){case 0:h=0;m=0;e=0;c=0;j=0;ta:{ua:{f= -I[i+28>>1];if((f|0)<=0)break ua;d=J[i+372>>2];n=J[i+32>>2];while(1){va:{wa:switch(I[n+P(c,12)>>1]+2|0){case 3:m=J[a+684>>2]+P(J[a+704>>2],c)|0;break va;case 4:h=J[a+684>>2]+P(J[a+704>>2],c)|0;break va;case 1:j=J[a+684>>2]+P(J[a+704>>2],c)|0;break va;default:fa(219530,220247,268,223880);B();case 0:break va;case 2:break wa}e=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}if(!h|(!e|!m))break ua;f=P(J[i+24>>2],J[i+20>>2]);xa:{if(!j){if(!f)break xa;if(f&1){J[d>>2]=K[h|0]|(K[e|0]<< +0;f=f+4|0;d=d+1|0;if((l|0)!=(d|0))continue;break}i=(h<<2)+i|0;s=s+1|0;if((j|0)!=(s|0))continue;break}break a}J[F>>2]=G;Nc(U,2,2353344,F)}J[J[w>>2]>>2]=0}uc(a);fc=F+96|0}function M9(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,C=0,D=0,E=0,F=0,G=0,M=0,S=0,T=0,U=0,V=Q(0),W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;z=fc-16|0;fc=z;b=Fc(a);T=(b&1)+b|0;a:{if((T|0)<=0)break a;ja=J[a+28>>2]; +c=ad(a);b=c<<16>>31;b=(b^c)-b|0;I[a+632>>1]=b;b:{b=b<<16>>16;if((b|0)>0){b=Dc(P(b&65535,600));J[a+636>>2]=b;n=-4;if(!b)break a;Ac(b,0,P(I[a+632>>1],600));if(I[a+632>>1]<=0)break b;f=J[a+636>>2];c:{d:{e:{f:{g:{h:{i:{j:while(1){J[f+592>>2]=23;H[f+586|0]=0;I[f+584>>1]=1;H[f+566|0]=0;I[f+564>>1]=1;H[f+541|0]=255;H[f+40|0]=255;J[f+36>>2]=0;J[f>>2]=0;H[f+74|0]=1;H[f+72|0]=255;ma=f,na=Fc(a),J[ma+4>>2]=na;ma=f,na=Fc(a),J[ma+8>>2]=na;ma=f,na=Fc(a),J[ma+12>>2]=na;b=Fc(a);J[f+16>>2]=b;J[f+20>>2]=b-J[f+8>>2]; +J[f+24>>2]=J[f+12>>2]-J[f+4>>2];b=ad(a);I[f+28>>1]=b;if((b|0)<=0)break c;b=Dc(P(b&65535,12));J[f+32>>2]=b;if(!b)break d;b=0;if(I[f+28>>1]>0)while(1){c=ad(a);d=P(b,12);I[d+J[f+32>>2]>>1]=c;c=Fc(a);d=d+J[f+32>>2]|0;H[d+8|0]=0;J[d+4>>2]=c;b=b+1|0;if((b|0)>1])continue;break}if((Fc(a)|0)!=943868237){vs(f);n=-500;break a}ma=f,na=rp(a),J[ma+36>>2]=na;ma=f,na=wf(a),H[ma+40|0]=na;ma=f,na=ue(a),H[ma+41|0]=na;b=wf(a);H[f+42|0]=b&1;H[f+44|0]=b>>>2&1;H[f+43|0]=(b^-1)>>>1&1;if(b&8)H[f+45|0]=b>>>4&1;if(wf(a))break e; +A=Fc(a);if((A|0)<=0)break f;F=J[a+28>>2];k:{l:{m:{n:{b=Fc(a);switch(b-20|0){case 0:case 16:break l;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break m;default:break n}}if(!b)break k}fa(222729,220190,440,223214);B()}ma=f,na=Fc(a),J[ma+48>>2]=na;ma=f,na=Fc(a),J[ma+52>>2]=na;ma=f,na=Fc(a),J[ma+56>>2]=na;c=Fc(a);J[f+60>>2]=c;J[f- -64>>2]=c-J[f+52>>2];J[f+68>>2]=J[f+56>>2]-J[f+48>>2];c=wf(a);H[f+72|0]=c;if((c|0)!=255?c:0)break g;c=wf(a); +H[f+73|0]=c&1;H[f+75|0]=c>>>2&1;H[f+74|0]=c>>>1&1;if((b|0)==20){ad(a);break k}b=wf(a);H[f+73|0]=b&1;H[f+75|0]=b>>>2&1;H[f+74|0]=b>>>1&1;b=wf(a);H[f+72|0]=b;if((b|0)!=255?b:0)break h;ma=f,na=Fc(a),J[ma+48>>2]=na;ma=f,na=Fc(a),J[ma+52>>2]=na;ma=f,na=Fc(a),J[ma+56>>2]=na;b=Fc(a);J[f+60>>2]=b;J[f+64>>2]=b-J[f+52>>2];J[f+68>>2]=J[f+56>>2]-J[f+48>>2]}b=Fc(a);ma=f,na=ad(a),I[ma+80>>1]=na;ma=f,na=ad(a),I[ma+82>>1]=na;ma=f,na=ad(a),I[ma+84>>1]=na;c=ad(a);d=(b-8|0)/8|0;J[f+88>>2]=d;I[f+86>>1]=c;if((b|0)<=15){vs(f); +n=-56;break a}ma=f,na=Dc(d<<1),J[ma+92>>2]=na;ma=f,na=Dc(J[f+88>>2]<<1),J[ma+96>>2]=na;ma=f,na=Dc(J[f+88>>2]<<1),J[ma+100>>2]=na;b=Dc(J[f+88>>2]<<1);J[f+104>>2]=b;if(!J[f+92>>2]|!J[f+96>>2]|(!J[f+100>>2]|!b))break i;b=0;if(J[f+88>>2]>0)while(1){d=ad(a);c=b<<1;I[c+J[f+92>>2]>>1]=d;d=ad(a);I[c+J[f+96>>2]>>1]=d;d=ad(a);I[c+J[f+100>>2]>>1]=d;d=ad(a);I[c+J[f+104>>2]>>1]=d;b=b+1|0;if((b|0)>2])continue;break}gf(a,f+108|0,(wf(a)+4&508)-1|0);G=f+572|0;while(1){o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{b=J[a+28>> +2]-F|0;if((b|0)<(A|0)){if((Fc(a)|0)!=943868237){n=-528;break a}b=Fc(a);w=Fc(a)+1&-2;ka=J[a+28>>2];if((b|0)>1819109228)break u;if((b|0)>1719169647)break t;if((b|0)<=1651665267){if((b|0)<=1399800686){if((b|0)==1197753964)break x;if((b|0)!=1349797484)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=19;J[f>>2]=19;b=-4;y:{c=Dc(272);if(!c)break y;b=Ac(c,0,272);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;c=-530;z:{A:{B:{C:{D:{if((Fc(a)|0)!=16)break D;Be(a,Fc(a)<<1);c=Fc(a);E:{if(!c){ma=b,na=Fc(a), +J[ma>>2]=na;break E}Be(a,c)}c=0;e=Fc(a);if(!e)break D;h=b+4|0;while(1){if(Fc(a))break C;d=Fc(a);i=Fc(a);F:{G:{H:{if((d|0)!=1349808750){if((d|0)!=1399024672)break H;if((i|0)!=1433302086)break B;if((Fc(a)|0)!=592474723)break A;k=me(a);if(!(R(k)<2147483648))break G;J[b+268>>2]=~~k;break F}if((i|0)!=1331849827)break z;JE(h,a);break F}fa(222765,220151,105,223688);B()}J[b+268>>2]=-2147483648}e=e-1|0;if(e)continue;break}}b=c;break y}fa(219536,220151,74,223688);B()}fa(221357,220151,89,223688);B()}fa(221866, +220151,93,223688);B()}fa(222421,220151,100,223688);B()}break q}if((b|0)==1399800687)break w;if((b|0)!=1651273315)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=4;J[f>>2]=9;b=-4;I:{c=Dc(788);if(!c)break I;b=Ac(c,0,788);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;ma=b,na=ad(a),I[ma>>1]=na;ma=b,na=ad(a),I[ma+6>>1]=na;c=ad(a);I[b+12>>1]=c;J:{K:{if((L[b>>1]+100&65535)>>>0>=201)break K;if(I[b+6>>1]<=-101)break J;L:{M:{if((c|0)<=-101)break M;ma=b,na=ad(a),I[ma+2>>1]=na;ma=b,na=ad(a),I[ma+8>>1]= +na;c=ad(a);I[b+14>>1]=c;if((L[b+2>>1]+100&65535)>>>0>200)break K;if(I[b+8>>1]<-100)break J;if((c|0)<-100)break M;ma=b,na=ad(a),I[ma+4>>1]=na;ma=b,na=ad(a),I[ma+10>>1]=na;c=ad(a);I[b+16>>1]=c;if((L[b+4>>1]+100&65535)>>>0>200)break K;if(I[b+10>>1]<-100)break J;if((c|0)<-100)break M;c=b;b=ad(a);H[c+18|0]=b;if(!(b&254))break L;fa(222298,220344,83,223715);B()}fa(221724,220344,78,223715);B()}H[f+540|0]=1;b=0;break I}fa(219445,220344,76,223715);B()}fa(221189,220344,77,223715);B()}break q}if((b|0)>1668047467)break s; +if((b|0)==1651665268)break v;if((b|0)!=1651667828)break r;c=0;if((w|0)<4)break o;d=(w|0)/4|0;while(1){e=Fc(a);i=I[f+28>>1];N:{if((i|0)<=0)break N;h=J[f+32>>2];b=0;while(1){j=h+P(b,12)|0;if((e|0)==I[j>>1]){H[j+8|0]=1;break N}b=b+1|0;if((i|0)!=(b|0))continue;break}}c=c+1|0;if((d|0)!=(c|0))continue;break}break o}if((b|0)==(A|0)){f=f+600|0;U=U+1|0;b=I[a+632>>1];if((U|0)<(b|0))continue j;if((b|0)<=0)break b;f=J[a+636>>2];b=0;while(1){e=0;j=0;q=0;i=f;n=J[f+24>>2];f=J[f+20>>2];c=P(n,f);O:{P:{Q:{R:{S:{T:{o= +L[a+50>>1];switch(o-1|0){case 15:break Q;case 7:break R;case 0:break T;default:break S}}n=P(n,(f+7|0)/8|0);f=J[i+68>>2];h=J[i- -64>>2];break O}fa(219546,220263,769,223743);B()}f=J[i+68>>2];h=J[i- -64>>2];j=P(f,h);break P}c=c<<1;f=J[i+68>>2];h=J[i- -64>>2];j=P(f,h)<<1}n=c}U:{V:{W:{p=(j|0)>(n|0)?j:n;X:{if((p|0)<=0){if(I[i+28>>1]<=0)break X;d=0;while(1){Be(a,J[(J[i+32>>2]+P(d,12)|0)+4>>2]);d=d+1|0;if((d|0)>1])continue;break}break X}J[a+704>>2]=p;J[a+700>>2]=n;d=I[i+28>>1];e=P(p,d);if((e|0)>J[a+ +688>>2]){Mc(J[a+684>>2]);d=J[a+688>>2]<<1;d=(d|0)>(e|0)?d:e;d=(d|0)<=12288?12288:d;J[a+688>>2]=d;d=Dc(d);J[a+684>>2]=d;if(!d)break W;d=L[i+28>>1]}w=i+24|0;x=i+20|0;r=i+68|0;s=i- -64|0;if(d<<16>>16>0){t=P(f,h)<<((o|0)==16);while(1){v=P(q,12);f=v+J[i+32>>2]|0;if(I[f>>1]<=-3)break V;Y:{d=J[f+4>>2];f=d-2|0;if((f|0)<=J[a+696>>2])break Y;Mc(J[a+692>>2]);e=J[a+696>>2]<<1;f=(e|0)>(f|0)?e:f;f=(f|0)<=4096?4096:f;J[a+696>>2]=f;f=Dc(f);J[a+692>>2]=f;if(f)break Y;J[a+696>>2]=0;f=-4;break U}o=ad(a);Z:{if((d|0)< +3)break Z;e=gf(a,J[a+692>>2],J[(v+J[i+32>>2]|0)+4>>2]-2|0);f=-5;d=v+J[i+32>>2]|0;if((e|0)!=(J[d+4>>2]-2|0))break U;h=J[a+684>>2]+P(p,q)|0;_:switch(o|0){case 1:$:switch(L[a+50>>1]-8|0){default:fa(221413,220263,864,223743);B();case 0:case 8:break $}d=L[d>>1];A=J[((d|0)==65534?r:w)>>2];aa:{if((A|0)<=0){l=0;break aa}g=J[a+692>>2];d=g+(A<<1)|0;l=0;m=0;while(1){e=0;f=K[g|0]|K[g+1|0]<<8;F=(f<<8|f>>>8)<<16>>16;if((F|0)>0)while(1){o=e+1|0;f=d+1|0;u=K[d|0];G=u<<24>>24;ba:{if((G|0)>=0){d=u+1|0;e=d+o|0;h=xc(h, +f,d)+d|0;l=d+l|0;f=d+f|0;break ba}if((G|0)==-128){e=o;break ba}e=e+2|0;f=257-u|0;h=Ac(h,K[d+1|0],f)+f|0;l=f+l|0;f=d+2|0}d=f;if((e|0)<(F|0))continue;break}g=g+2|0;m=m+1|0;if((A|0)!=(m|0))continue;break}d=L[v+J[i+32>>2]>>1]}if((d&65535)==65534){if((l|0)==(t|0))break Z;fa(221956,220263,911,223743);B()}if((c|0)==(l|0))break Z;fa(222492,220263,913,223743);B();case 2:e=tO(J[a+692>>2],e,h,L[d>>1]==65534?t:c);if(!e)break Z;break X;case 3:f=L[d>>1]==65534;e=sO(J[a+692>>2],e,h,f?t:c,J[(f?s:x)>>2],L[a+50>>1]); +if(!e)break Z;break X;default:fa(219546,220263,941,223743);B();case 0:break _}xc(h,J[a+692>>2],L[d>>1]==65534?j:n)}q=q+1|0;if((q|0)>1])continue;break}}c=P(J[w>>2],J[x>>2]);ca:{if((c|0)<=0)break ca;c=Dc(c<<2);J[i+372>>2]=c;f=-4;if(!c)break U;da:{ea:switch(J[a+52>>2]){case 0:if(L[a+50>>1]==1){h=0;m=0;fa:{c=I[i+28>>1];if((c|0)<=0)break fa;e=J[i+372>>2];f=J[i+32>>2];ga:{while(1){n=I[f+P(h,12)>>1];if(n+2>>>0>=2){if(n)break ga;m=J[a+684>>2]+P(J[a+704>>2],h)|0}h=h+1|0;if((c|0)!=(h|0))continue;break}if(!m)break fa; +f=J[i+20>>2];c=(f+7|0)/8|0;h=J[i+24>>2];if(!((h|0)<=0|(f|0)<=0)){d=0;while(1){if((f|0)>0){j=P(d,c)+m|0;n=0;h=128;while(1){J[e>>2]=K[j|0]&h?-16777216:-1;f=h>>>0<2;h=f?128:h>>1;e=e+4|0;j=f+j|0;f=J[i+20>>2];n=n+1|0;if((f|0)>(n|0))continue;break}h=J[i+24>>2]}d=d+1|0;if((h|0)>(d|0))continue;break}}break ca}fa(219546,220263,65,223776);B()}fa(223099,220263,70,223776);B()}fa(219546,220263,960,223743);B();case 1:case 8:ha:switch(L[a+50>>1]-8|0){case 8:e=0;j=0;c=0;ia:{ja:{f=I[i+28>>1];if((f|0)<=0)break ja; +d=J[i+372>>2];n=J[i+32>>2];while(1){ka:{la:switch(I[n+P(c,12)>>1]+2|0){case 1:j=J[a+684>>2]+P(J[a+704>>2],c)|0;break ka;default:fa(219546,220263,169,223835);B();case 0:break ka;case 2:break la}e=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}if(!e)break ja;f=P(J[i+24>>2],J[i+20>>2]);ma:{if(!j){if(!f)break ma;h=f&3;na:{if(!h){c=f;break na}n=0;c=f;while(1){J[d>>2]=P(K[e|0],65793)|-16777216;e=e+2|0;d=d+4|0;c=c-1|0;n=n+1|0;if((h|0)!=(n|0))continue;break}}if(f>>>0<4)break ma;while(1){J[d>> +2]=P(K[e|0],65793)|-16777216;J[d+4>>2]=P(K[e+2|0],65793)|-16777216;J[d+8>>2]=P(K[e+4|0],65793)|-16777216;J[d+12>>2]=P(K[e+6|0],65793)|-16777216;e=e+8|0;d=d+16|0;c=c-4|0;if(c)continue;break}break ma}if(!f)break ma;if(f&1){c=K[e|0];J[d>>2]=K[j|0]<<24|c<<16|c<<8|c;e=e+2|0;j=j+2|0;d=d+4|0;n=f-1|0}else n=f;if((f|0)==1)break ma;while(1){c=K[e|0];J[d>>2]=K[j|0]<<24|c<<16|c<<8|c;c=K[e+2|0];J[d+4>>2]=K[j+2|0]<<24|c<<16|c<<8|c;e=e+4|0;j=j+4|0;d=d+8|0;n=n-2|0;if(n)continue;break}}break ia}fa(223298,220263,174, +223835);B()}break ca;case 0:break da;default:break ha}fa(219546,220263,973,223743);B();case 2:if(L[a+50>>1]==8){e=0;j=0;oa:{c=I[i+28>>1];if((c|0)<=0)break oa;d=J[i+372>>2];f=J[i+32>>2];pa:{while(1){n=I[f+P(j,12)>>1];if(n+2>>>0>=2){if(n)break pa;e=J[a+684>>2]+P(J[a+704>>2],j)|0}j=j+1|0;if((c|0)!=(j|0))continue;break}if(!e)break oa;c=P(J[i+24>>2],J[i+20>>2]);qa:{if(!c)break qa;n=I[a+462>>1];if(c&1){j=16777215;f=K[e|0];if(!((f|0)>=(n|0)|(f|0)==I[a+464>>1]))j=J[J[a+60>>2]+(f<<2)>>2];J[d>>2]=j;e=e+1|0; +d=d+4|0;f=c-1|0}else f=c;if((c|0)==1)break qa;while(1){j=16777215;h=K[e|0];c=16777215;ra:{if((h|0)>=(n|0))break ra;c=16777215;if((h|0)==I[a+464>>1])break ra;c=J[J[a+60>>2]+(h<<2)>>2]}J[d>>2]=c;c=K[e+1|0];if(!((c|0)>=(n|0)|(c|0)==I[a+464>>1]))j=J[J[a+60>>2]+(c<<2)>>2];J[d+4>>2]=j;e=e+2|0;d=d+8|0;f=f-2|0;if(f)continue;break}}break ca}fa(219546,220263,219,223867);B()}fa(223488,220263,224,223867);B()}fa(219546,220263,981,223743);B();case 3:sa:switch(L[a+50>>1]-8|0){case 0:h=0;m=0;e=0;c=0;j=0;ta:{ua:{f= +I[i+28>>1];if((f|0)<=0)break ua;d=J[i+372>>2];n=J[i+32>>2];while(1){va:{wa:switch(I[n+P(c,12)>>1]+2|0){case 3:m=J[a+684>>2]+P(J[a+704>>2],c)|0;break va;case 4:h=J[a+684>>2]+P(J[a+704>>2],c)|0;break va;case 1:j=J[a+684>>2]+P(J[a+704>>2],c)|0;break va;default:fa(219546,220263,268,223896);B();case 0:break va;case 2:break wa}e=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}if(!h|(!e|!m))break ua;f=P(J[i+24>>2],J[i+20>>2]);xa:{if(!j){if(!f)break xa;if(f&1){J[d>>2]=K[h|0]|(K[e|0]<< 16|K[m|0]<<8)|-16777216;h=h+1|0;m=m+1|0;e=e+1|0;d=d+4|0;c=f-1|0}else c=f;if((f|0)==1)break xa;while(1){J[d>>2]=K[h|0]|(K[e|0]<<16|K[m|0]<<8)|-16777216;J[d+4>>2]=K[h+1|0]|(K[e+1|0]<<16|K[m+1|0]<<8)|-16777216;h=h+2|0;m=m+2|0;e=e+2|0;d=d+8|0;c=c-2|0;if(c)continue;break}break xa}if(!f)break xa;if(f&1){J[d>>2]=K[h|0]|(K[e|0]<<16|K[j|0]<<24|K[m|0]<<8);h=h+1|0;m=m+1|0;e=e+1|0;j=j+1|0;d=d+4|0;c=f-1|0}else c=f;if((f|0)==1)break xa;while(1){J[d>>2]=K[h|0]|(K[e|0]<<16|K[j|0]<<24|K[m|0]<<8);J[d+4>>2]=K[h+1|0]| -(K[e+1|0]<<16|K[j+1|0]<<24|K[m+1|0]<<8);h=h+2|0;m=m+2|0;e=e+2|0;j=j+2|0;d=d+8|0;c=c-2|0;if(c)continue;break}}break ta}fa(223907,220247,273,223880);B()}break ca;case 8:h=0;m=0;e=0;c=0;j=0;ya:{za:{f=I[i+28>>1];if((f|0)<=0)break za;d=J[i+372>>2];n=J[i+32>>2];while(1){Aa:{Ba:switch(I[n+P(c,12)>>1]+2|0){case 3:m=J[a+684>>2]+P(J[a+704>>2],c)|0;break Aa;case 4:h=J[a+684>>2]+P(J[a+704>>2],c)|0;break Aa;case 1:j=J[a+684>>2]+P(J[a+704>>2],c)|0;break Aa;default:fa(219530,220247,328,224055);B();case 0:break Aa; +(K[e+1|0]<<16|K[j+1|0]<<24|K[m+1|0]<<8);h=h+2|0;m=m+2|0;e=e+2|0;j=j+2|0;d=d+8|0;c=c-2|0;if(c)continue;break}}break ta}fa(223923,220263,273,223896);B()}break ca;case 8:h=0;m=0;e=0;c=0;j=0;ya:{za:{f=I[i+28>>1];if((f|0)<=0)break za;d=J[i+372>>2];n=J[i+32>>2];while(1){Aa:{Ba:switch(I[n+P(c,12)>>1]+2|0){case 3:m=J[a+684>>2]+P(J[a+704>>2],c)|0;break Aa;case 4:h=J[a+684>>2]+P(J[a+704>>2],c)|0;break Aa;case 1:j=J[a+684>>2]+P(J[a+704>>2],c)|0;break Aa;default:fa(219546,220263,328,224071);B();case 0:break Aa; case 2:break Ba}e=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}if(!h|(!e|!m))break za;f=P(J[i+24>>2],J[i+20>>2]);Ca:{if(!j){if(!f)break Ca;if(f&1){J[d>>2]=H[h|0]|(K[e|0]<<16|H[m|0]<<8)|-16777216;h=h+2|0;m=m+2|0;e=e+2|0;d=d+4|0;c=f-1|0}else c=f;if((f|0)==1)break Ca;while(1){J[d>>2]=H[h|0]|(K[e|0]<<16|H[m|0]<<8)|-16777216;J[d+4>>2]=H[h+2|0]|(K[e+2|0]<<16|H[m+2|0]<<8)|-16777216;h=h+4|0;m=m+4|0;e=e+4|0;d=d+8|0;c=c-2|0;if(c)continue;break}break Ca}if(!f)break Ca;if(f&1){J[d>>2]= -H[h|0]|(H[e|0]<<16|K[j|0]<<24|H[m|0]<<8);h=h+2|0;m=m+2|0;e=e+2|0;j=j+2|0;d=d+4|0;c=f-1|0}else c=f;if((f|0)==1)break Ca;while(1){J[d>>2]=H[h|0]|(H[e|0]<<16|K[j|0]<<24|H[m|0]<<8);J[d+4>>2]=H[h+2|0]|(H[e+2|0]<<16|K[j+2|0]<<24|H[m+2|0]<<8);h=h+4|0;m=m+4|0;e=e+4|0;j=j+4|0;d=d+8|0;c=c-2|0;if(c)continue;break}}break ya}fa(223907,220247,333,224055);B()}break ca;default:break sa}fa(219530,220247,991,223727);B();case 4:Da:switch(L[a+50>>1]-8|0){case 0:c=0;h=0;m=0;e=0;d=0;n=0;j=J[i+372>>2];f=I[i+28>>1];if((f| -0)>0){o=J[i+32>>2];while(1){Ea:{Fa:switch(I[o+P(c,12)>>1]+2|0){case 3:m=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ea;case 4:e=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ea;case 5:d=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ea;case 1:n=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ea;default:fa(219530,220247,396,224081);B();case 0:break Ea;case 2:break Fa}h=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}}Ga:{if(!(!h|!m|(!e|!d))){c=P(J[i+24>>2],J[i+20>>2]);Ha:{if(!n){if(!c)break Ha;while(1){ma=j,na=Bl(K[h| -0]^255,K[m|0]^255,K[e|0]^255,K[d|0]^255),J[ma>>2]=na;d=d+1|0;e=e+1|0;m=m+1|0;h=h+1|0;j=j+4|0;c=c-1|0;if(c)continue;break}break Ha}if(!c)break Ha;while(1){ma=j,na=pu(K[n|0],K[h|0]^255,K[m|0]^255,K[e|0]^255,K[d|0]^255),J[ma>>2]=na;d=d+1|0;e=e+1|0;m=m+1|0;h=h+1|0;n=n+1|0;j=j+4|0;c=c-1|0;if(c)continue;break}}break Ga}fa(224109,220247,401,224081);B()}break ca;case 8:c=0;h=0;m=0;e=0;d=0;n=0;j=J[i+372>>2];f=I[i+28>>1];if((f|0)>0){o=J[i+32>>2];while(1){Ia:{Ja:switch(I[o+P(c,12)>>1]+2|0){case 3:m=J[a+684>> -2]+P(J[a+704>>2],c)|0;break Ia;case 4:e=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ia;case 5:d=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ia;case 1:n=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ia;default:fa(219530,220247,461,224257);B();case 0:break Ia;case 2:break Ja}h=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}}Ka:{if(!(!h|!m|(!e|!d))){c=P(J[i+24>>2],J[i+20>>2]);La:{if(!n){if(!c)break La;while(1){ma=j,na=Bl(255-H[h|0]|0,255-H[m|0]|0,255-H[e|0]|0,255-H[d|0]|0),J[ma>>2]=na;d=d+2|0;e=e+2| -0;m=m+2|0;h=h+2|0;j=j+4|0;c=c-1|0;if(c)continue;break}break La}if(!c)break La;while(1){ma=j,na=pu(K[n|0],255-H[h|0]|0,255-H[m|0]|0,255-H[e|0]|0,255-H[d|0]|0),J[ma>>2]=na;d=d+2|0;e=e+2|0;m=m+2|0;h=h+2|0;n=n+2|0;j=j+4|0;c=c-1|0;if(c)continue;break}}break Ka}fa(224109,220247,466,224257);B()}break ca;default:break Da}fa(219530,220247,1002,223727);B();case 9:Ma:switch(L[a+50>>1]-8|0){case 0:h=0;m=0;e=0;d=0;n=0;Na:{Oa:{c=I[i+28>>1];if((c|0)<=0)break Oa;j=J[i+372>>2];f=J[i+32>>2];while(1){Pa:{Qa:switch(I[f+ -P(h,12)>>1]+2|0){case 3:e=J[a+684>>2]+P(J[a+704>>2],h)|0;break Pa;case 4:m=J[a+684>>2]+P(J[a+704>>2],h)|0;break Pa;case 1:n=J[a+684>>2]+P(J[a+704>>2],h)|0;break Pa;default:fa(219530,220247,531,224284);B();case 0:break Pa;case 2:break Qa}d=J[a+684>>2]+P(J[a+704>>2],h)|0}h=h+1|0;if((c|0)!=(h|0))continue;break}if(!m|(!d|!e))break Oa;h=P(J[i+24>>2],J[i+20>>2]);Ra:{if(!n){if(!h)break Ra;while(1){ma=j,na=ou(P(K[d|0],100)>>>8|0,K[e|0]-128|0,K[m|0]-128|0),J[ma>>2]=na;m=m+1|0;e=e+1|0;d=d+1|0;j=j+4|0;h=h-1| -0;if(h)continue;break}break Ra}if(!h)break Ra;while(1){ma=j,na=Wp(K[n|0],P(K[d|0],100)>>>8|0,K[e|0]-128|0,K[m|0]-128|0),J[ma>>2]=na;m=m+1|0;e=e+1|0;d=d+1|0;n=n+1|0;j=j+4|0;h=h-1|0;if(h)continue;break}}break Na}fa(224311,220247,536,224284);B()}break ca;case 8:h=0;m=0;e=0;d=0;n=0;Sa:{Ta:{c=I[i+28>>1];if((c|0)<=0)break Ta;j=J[i+372>>2];f=J[i+32>>2];while(1){Ua:{Va:switch(I[f+P(h,12)>>1]+2|0){case 3:e=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ua;case 4:m=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ua;case 1:n=J[a+ -684>>2]+P(J[a+704>>2],h)|0;break Ua;default:fa(219530,220247,591,224431);B();case 0:break Ua;case 2:break Va}d=J[a+684>>2]+P(J[a+704>>2],h)|0}h=h+1|0;if((c|0)!=(h|0))continue;break}if(!m|(!d|!e))break Ta;h=P(J[i+24>>2],J[i+20>>2]);Wa:{if(!n){if(!h)break Wa;while(1){ma=j,na=ou(P(H[d|0],100)>>8,H[e|0]-128|0,H[m|0]-128|0),J[ma>>2]=na;m=m+2|0;e=e+2|0;d=d+2|0;j=j+4|0;h=h-1|0;if(h)continue;break}break Wa}if(!h)break Wa;while(1){ma=j,na=Wp(K[n|0],P(H[d|0],100)>>8,H[e|0]-128|0,H[m|0]-128|0),J[ma>>2]=na;m= -m+2|0;e=e+2|0;d=d+2|0;n=n+2|0;j=j+4|0;h=h-1|0;if(h)continue;break}}break Sa}fa(224311,220247,596,224431);B()}break ca;default:break Ma}fa(219530,220247,1014,223727);B();case 7:if(L[a+50>>1]==8){h=0;m=0;e=0;d=0;n=0;Xa:{c=I[i+28>>1];if((c|0)<=0)break Xa;j=J[i+372>>2];f=J[i+32>>2];while(1){Ya:{Za:switch(I[f+P(h,12)>>1]+2|0){case 3:e=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ya;case 4:m=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ya;case 1:n=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ya;default:fa(219530,220247,656,224457); -B();case 0:break Ya;case 2:break Za}d=J[a+684>>2]+P(J[a+704>>2],h)|0}h=h+1|0;if((c|0)!=(h|0))continue;break}if(!m|(!d|!e))break Xa;h=P(J[i+24>>2],J[i+20>>2]);_a:{if(!n){if(!h)break _a;while(1){ma=j,na=Bl(K[d|0]^255,K[e|0]^255,K[m|0]^255,0),J[ma>>2]=na;m=m+1|0;e=e+1|0;d=d+1|0;j=j+4|0;h=h-1|0;if(h)continue;break}break _a}if(!h)break _a;while(1){ma=j,na=Bl(K[d|0]^255,K[e|0]^255,K[m|0]^255,K[n|0]^255),J[ma>>2]=na;n=n+1|0;m=m+1|0;e=e+1|0;d=d+1|0;j=j+4|0;h=h-1|0;if(h)continue;break}}break ca}fa(224503, -220247,661,224457);B()}fa(219530,220247,1023,223727);B();default:break ea}fa(219530,220247,1028,223727);B()}e=0;j=0;c=0;$a:{ab:{f=I[i+28>>1];if((f|0)<=0)break ab;d=J[i+372>>2];n=J[i+32>>2];while(1){bb:{cb:switch(I[n+P(c,12)>>1]+2|0){case 1:j=J[a+684>>2]+P(J[a+704>>2],c)|0;break bb;default:fa(219530,220247,117,223788);B();case 0:break bb;case 2:break cb}e=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}if(!e)break ab;f=P(J[i+24>>2],J[i+20>>2]);db:{if(!j){if(!f)break db;h=f&3; +H[h|0]|(H[e|0]<<16|K[j|0]<<24|H[m|0]<<8);h=h+2|0;m=m+2|0;e=e+2|0;j=j+2|0;d=d+4|0;c=f-1|0}else c=f;if((f|0)==1)break Ca;while(1){J[d>>2]=H[h|0]|(H[e|0]<<16|K[j|0]<<24|H[m|0]<<8);J[d+4>>2]=H[h+2|0]|(H[e+2|0]<<16|K[j+2|0]<<24|H[m+2|0]<<8);h=h+4|0;m=m+4|0;e=e+4|0;j=j+4|0;d=d+8|0;c=c-2|0;if(c)continue;break}}break ya}fa(223923,220263,333,224071);B()}break ca;default:break sa}fa(219546,220263,991,223743);B();case 4:Da:switch(L[a+50>>1]-8|0){case 0:c=0;h=0;m=0;e=0;d=0;n=0;j=J[i+372>>2];f=I[i+28>>1];if((f| +0)>0){o=J[i+32>>2];while(1){Ea:{Fa:switch(I[o+P(c,12)>>1]+2|0){case 3:m=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ea;case 4:e=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ea;case 5:d=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ea;case 1:n=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ea;default:fa(219546,220263,396,224097);B();case 0:break Ea;case 2:break Fa}h=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}}Ga:{if(!(!h|!m|(!e|!d))){c=P(J[i+24>>2],J[i+20>>2]);Ha:{if(!n){if(!c)break Ha;while(1){ma=j,na=lm(K[h| +0]^255,K[m|0]^255,K[e|0]^255,K[d|0]^255),J[ma>>2]=na;d=d+1|0;e=e+1|0;m=m+1|0;h=h+1|0;j=j+4|0;c=c-1|0;if(c)continue;break}break Ha}if(!c)break Ha;while(1){ma=j,na=ev(K[n|0],K[h|0]^255,K[m|0]^255,K[e|0]^255,K[d|0]^255),J[ma>>2]=na;d=d+1|0;e=e+1|0;m=m+1|0;h=h+1|0;n=n+1|0;j=j+4|0;c=c-1|0;if(c)continue;break}}break Ga}fa(224125,220263,401,224097);B()}break ca;case 8:c=0;h=0;m=0;e=0;d=0;n=0;j=J[i+372>>2];f=I[i+28>>1];if((f|0)>0){o=J[i+32>>2];while(1){Ia:{Ja:switch(I[o+P(c,12)>>1]+2|0){case 3:m=J[a+684>> +2]+P(J[a+704>>2],c)|0;break Ia;case 4:e=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ia;case 5:d=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ia;case 1:n=J[a+684>>2]+P(J[a+704>>2],c)|0;break Ia;default:fa(219546,220263,461,224273);B();case 0:break Ia;case 2:break Ja}h=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}}Ka:{if(!(!h|!m|(!e|!d))){c=P(J[i+24>>2],J[i+20>>2]);La:{if(!n){if(!c)break La;while(1){ma=j,na=lm(255-H[h|0]|0,255-H[m|0]|0,255-H[e|0]|0,255-H[d|0]|0),J[ma>>2]=na;d=d+2|0;e=e+2| +0;m=m+2|0;h=h+2|0;j=j+4|0;c=c-1|0;if(c)continue;break}break La}if(!c)break La;while(1){ma=j,na=ev(K[n|0],255-H[h|0]|0,255-H[m|0]|0,255-H[e|0]|0,255-H[d|0]|0),J[ma>>2]=na;d=d+2|0;e=e+2|0;m=m+2|0;h=h+2|0;n=n+2|0;j=j+4|0;c=c-1|0;if(c)continue;break}}break Ka}fa(224125,220263,466,224273);B()}break ca;default:break Da}fa(219546,220263,1002,223743);B();case 9:Ma:switch(L[a+50>>1]-8|0){case 0:h=0;m=0;e=0;d=0;n=0;Na:{Oa:{c=I[i+28>>1];if((c|0)<=0)break Oa;j=J[i+372>>2];f=J[i+32>>2];while(1){Pa:{Qa:switch(I[f+ +P(h,12)>>1]+2|0){case 3:e=J[a+684>>2]+P(J[a+704>>2],h)|0;break Pa;case 4:m=J[a+684>>2]+P(J[a+704>>2],h)|0;break Pa;case 1:n=J[a+684>>2]+P(J[a+704>>2],h)|0;break Pa;default:fa(219546,220263,531,224300);B();case 0:break Pa;case 2:break Qa}d=J[a+684>>2]+P(J[a+704>>2],h)|0}h=h+1|0;if((c|0)!=(h|0))continue;break}if(!m|(!d|!e))break Oa;h=P(J[i+24>>2],J[i+20>>2]);Ra:{if(!n){if(!h)break Ra;while(1){ma=j,na=dv(P(K[d|0],100)>>>8|0,K[e|0]-128|0,K[m|0]-128|0),J[ma>>2]=na;m=m+1|0;e=e+1|0;d=d+1|0;j=j+4|0;h=h-1| +0;if(h)continue;break}break Ra}if(!h)break Ra;while(1){ma=j,na=Nq(K[n|0],P(K[d|0],100)>>>8|0,K[e|0]-128|0,K[m|0]-128|0),J[ma>>2]=na;m=m+1|0;e=e+1|0;d=d+1|0;n=n+1|0;j=j+4|0;h=h-1|0;if(h)continue;break}}break Na}fa(224327,220263,536,224300);B()}break ca;case 8:h=0;m=0;e=0;d=0;n=0;Sa:{Ta:{c=I[i+28>>1];if((c|0)<=0)break Ta;j=J[i+372>>2];f=J[i+32>>2];while(1){Ua:{Va:switch(I[f+P(h,12)>>1]+2|0){case 3:e=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ua;case 4:m=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ua;case 1:n=J[a+ +684>>2]+P(J[a+704>>2],h)|0;break Ua;default:fa(219546,220263,591,224447);B();case 0:break Ua;case 2:break Va}d=J[a+684>>2]+P(J[a+704>>2],h)|0}h=h+1|0;if((c|0)!=(h|0))continue;break}if(!m|(!d|!e))break Ta;h=P(J[i+24>>2],J[i+20>>2]);Wa:{if(!n){if(!h)break Wa;while(1){ma=j,na=dv(P(H[d|0],100)>>8,H[e|0]-128|0,H[m|0]-128|0),J[ma>>2]=na;m=m+2|0;e=e+2|0;d=d+2|0;j=j+4|0;h=h-1|0;if(h)continue;break}break Wa}if(!h)break Wa;while(1){ma=j,na=Nq(K[n|0],P(H[d|0],100)>>8,H[e|0]-128|0,H[m|0]-128|0),J[ma>>2]=na;m= +m+2|0;e=e+2|0;d=d+2|0;n=n+2|0;j=j+4|0;h=h-1|0;if(h)continue;break}}break Sa}fa(224327,220263,596,224447);B()}break ca;default:break Ma}fa(219546,220263,1014,223743);B();case 7:if(L[a+50>>1]==8){h=0;m=0;e=0;d=0;n=0;Xa:{c=I[i+28>>1];if((c|0)<=0)break Xa;j=J[i+372>>2];f=J[i+32>>2];while(1){Ya:{Za:switch(I[f+P(h,12)>>1]+2|0){case 3:e=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ya;case 4:m=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ya;case 1:n=J[a+684>>2]+P(J[a+704>>2],h)|0;break Ya;default:fa(219546,220263,656,224473); +B();case 0:break Ya;case 2:break Za}d=J[a+684>>2]+P(J[a+704>>2],h)|0}h=h+1|0;if((c|0)!=(h|0))continue;break}if(!m|(!d|!e))break Xa;h=P(J[i+24>>2],J[i+20>>2]);_a:{if(!n){if(!h)break _a;while(1){ma=j,na=lm(K[d|0]^255,K[e|0]^255,K[m|0]^255,0),J[ma>>2]=na;m=m+1|0;e=e+1|0;d=d+1|0;j=j+4|0;h=h-1|0;if(h)continue;break}break _a}if(!h)break _a;while(1){ma=j,na=lm(K[d|0]^255,K[e|0]^255,K[m|0]^255,K[n|0]^255),J[ma>>2]=na;n=n+1|0;m=m+1|0;e=e+1|0;d=d+1|0;j=j+4|0;h=h-1|0;if(h)continue;break}}break ca}fa(224519, +220263,661,224473);B()}fa(219546,220263,1023,223743);B();default:break ea}fa(219546,220263,1028,223743);B()}e=0;j=0;c=0;$a:{ab:{f=I[i+28>>1];if((f|0)<=0)break ab;d=J[i+372>>2];n=J[i+32>>2];while(1){bb:{cb:switch(I[n+P(c,12)>>1]+2|0){case 1:j=J[a+684>>2]+P(J[a+704>>2],c)|0;break bb;default:fa(219546,220263,117,223804);B();case 0:break bb;case 2:break cb}e=J[a+684>>2]+P(J[a+704>>2],c)|0}c=c+1|0;if((f|0)!=(c|0))continue;break}if(!e)break ab;f=P(J[i+24>>2],J[i+20>>2]);db:{if(!j){if(!f)break db;h=f&3; eb:{if(!h){c=f;break eb}n=0;c=f;while(1){J[d>>2]=P(K[e|0],65793)|-16777216;e=e+1|0;d=d+4|0;c=c-1|0;n=n+1|0;if((h|0)!=(n|0))continue;break}}if(f>>>0<4)break db;while(1){J[d>>2]=P(K[e|0],65793)|-16777216;J[d+4>>2]=P(K[e+1|0],65793)|-16777216;J[d+8>>2]=P(K[e+2|0],65793)|-16777216;J[d+12>>2]=P(K[e+3|0],65793)|-16777216;e=e+4|0;d=d+16|0;c=c-4|0;if(c)continue;break}break db}if(!f)break db;if(f&1){c=K[e|0];J[d>>2]=c<<16|c<<8|K[j|0]<<24|c;e=e+1|0;j=j+1|0;d=d+4|0;n=f-1|0}else n=f;if((f|0)==1)break db;while(1){c= -K[e|0];J[d>>2]=c<<16|c<<8|K[j|0]<<24|c;c=K[e+1|0];J[d+4>>2]=c<<16|c<<8|K[j+1|0]<<24|c;e=e+2|0;j=j+2|0;d=d+8|0;n=n-2|0;if(n)continue;break}}break $a}fa(223282,220247,122,223788);B()}}e=0;c=P(J[r>>2],J[s>>2]);if((c|0)<=0)break X;fb:switch(L[a+50>>1]-8|0){case 0:f=I[i+28>>1];if((f|0)<=0)break X;n=J[i+32>>2];d=0;while(1){if(L[n+P(d,12)>>1]==65534){c=zc(c);J[i+76>>2]=c;f=-4;if(!c)break U;tc(c,J[a+684>>2]+P(J[a+704>>2],d)|0,P(J[r>>2],J[s>>2]));f=0;break U}d=d+1|0;if((f|0)!=(d|0))continue;break}break X; -case 8:break fb;default:break X}f=I[i+28>>1];if((f|0)<=0)break X;n=P(J[i+24>>2],J[i+20>>2]);h=(c|0)<(n|0)?n:c;d=J[i+32>>2];n=0;while(1){if(L[d+P(n,12)>>1]==65534){d=zc(c);J[i+76>>2]=d;f=-4;if(!d)break U;n=J[a+684>>2]+(P(h,n)<<1)|0;h=c&7;gb:{if(!h){f=c;break gb}f=c;while(1){H[d|0]=K[n|0];n=n+2|0;d=d+1|0;f=f-1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}e=0;if(c>>>0<8)break X;while(1){H[d|0]=K[n|0];H[d+1|0]=K[n+2|0];H[d+2|0]=K[n+4|0];H[d+3|0]=K[n+6|0];H[d+4|0]=K[n+8|0];H[d+5|0]=K[n+10|0];H[d+6|0]=K[n+ -12|0];H[d+7|0]=K[n+14|0];n=n+16|0;d=d+8|0;f=f-8|0;if(f)continue;break}break X}n=n+1|0;if((f|0)!=(n|0))continue;break}}f=e;break U}J[a+688>>2]=0;f=-4;break U}fa(220961,220247,814,223727);B()}n=f;if(f){Fr(i);break a}f=i+600|0;b=b+1|0;if((b|0)>1])continue;break}break b}fa(223401,220174,695,223198);B()}J[((J[f+376>>2]<<2)+f|0)+380>>2]=18;J[f>>2]=4;b=-4;hb:{c=zc(56);if(!c)break hb;J[c>>2]=0;J[c+4>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0; -J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>>2]+1;H[c+25|0]=0;H[c+26|0]=1;J[c+20>>2]=100;d=-526;ib:{jb:{kb:{lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:{tb:{ub:{if((Ac(a)|0)!=16)break ub;te(a,Ac(a)<<1);b=Ac(a);vb:{if(!b){ma=c,na=Ac(a),J[ma>>2]=na;break vb}te(a,b)}d=0;h=Ac(a);if(!h)break ub;i=c+28|0;while(1){if(Ac(a))break tb;b=Ac(a);e=Ac(a);wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{if((b|0)<=1198678371){if((b|0)==1097623406)break Cb;if((b|0)==1097754476)break Bb; -if((b|0)!=1148479602)break Db;if((e|0)!=1651470188)break sb;ma=c,na=me(a),H[ma+25|0]=na;break wb}if((b|0)<=1399024671){if((b|0)==1198678372)break yb;if((b|0)!=1383494259)break Db;if((e|0)!=1651470188)break rb;ma=c,na=me(a),H[ma+24|0]=na;break wb}if((b|0)==1399024672)break Ab;if((b|0)==1417244773)break zb}fa(223905,220095,157,224599);B()}if((e|0)!=1651470188)break qb;ma=c,na=me(a),H[ma+26|0]=na;break wb}if((e|0)!=1433302086)break pb;if((Ac(a)|0)!=591490663)break ob;ma=c,oa=be(a),O[ma+8>>3]=oa;break wb}if((e| -0)!=1433302086)break nb;if((Ac(a)|0)!=592474723)break mb;k=be(a);if(!(R(k)<2147483648))break xb;J[c+20>>2]=~~k;break wb}if((e|0)!=1701737837)break lb;if(Ac(a))break kb;if((Ac(a)|0)!=1198679124)break jb;ma=c,na=YM(a),J[ma+16>>2]=na;break wb}if((e|0)!=1331849827)break ib;Fx(i,a);break wb}J[c+20>>2]=-2147483648}h=h-1|0;if(h)continue;break}}b=d;break hb}fa(219520,220095,80,224599);B()}fa(221326,220095,96,224599);B()}fa(221326,220095,102,224599);B()}fa(221326,220095,108,224599);B()}fa(221864,220095,114, -224599);B()}fa(222377,220095,118,224599);B()}fa(221864,220095,126,224599);B()}fa(222766,220095,130,224599);B()}fa(223103,220095,138,224599);B()}fa(219520,220095,143,224599);B()}fa(223359,220095,146,224599);B()}fa(223520,220095,152,224599);B()}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=17;J[f>>2]=3;b=-4;Eb:{c=zc(8);if(!c)break Eb;J[c>>2]=0;J[c+4>>2]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>>2]+1;Fb:{Gb:{Hb:{Ib:{Jb:{if((Ac(a)|0)==16){te(a,Ac(a)<<1);if(Ac(a))break Jb;ma=c,na=Ac(a),J[ma>> -2]=na;if((Ac(a)|0)!=1)break Ib;if(Ac(a))break Hb;if((Ac(a)|0)!=1131180576)break Gb;if((Ac(a)|0)!=1331849827)break Fb;ma=c,na=rm(a),J[ma+4>>2]=na;b=0}else b=-525;break Eb}fa(219520,219922,61,224651);B()}fa(221084,219922,67,224651);B()}fa(219520,219922,72,224651);B()}fa(221893,219922,74,224651);B()}fa(222391,219922,78,224651);B()}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=3;J[f>>2]=8;c=zc(264);b=-4;Kb:{if(!c)break Kb;b=wc(c,0,264);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;ma=b,na=Tc(a), -I[ma>>1]=na;ma=b,na=Tc(a),I[ma+2>>1]=na;ma=b,na=Tc(a),I[ma+4>>1]=na;ma=b,na=pf(a),H[ma+6|0]=na;H[f+540|0]=1;b=0}break q}Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{if((b|0)<=1835628657){if((b|0)<=1819504741){if((b|0)<=1819428439){if((b|0)==1819109229)break Nb;if((b|0)!=1819177842)break r;ma=f,na=Ac(a),J[ma+552>>2]=na;break o}if((b|0)==1819428440)break Sb;if((b|0)!=1819501428)break r;b=Ac(a);J[f+588>>2]=b;b=b-1|0;if(b>>>0<=2)J[f>>2]=J[(b<<2)+223580>>2];if((w|0)!=12)break o;if((Ac(a)|0)==943868237)break Mb;b=-529; -break p}if((b|0)<=1819896163){if((b|0)==1819504742)break Pb;if((b|0)!=1819635305)break r;b=Ac(a);J[f+544>>2]=b;b=zc(b<<1);J[f+548>>2]=b;if(b)break Lb;b=-4;break p}if((b|0)==1819896164)break Qb;if((b|0)!=1819899506)break r;ma=f,na=Ac(a),J[ma+560>>2]=na;break o}Tb:{Ub:{if((b|0)<=1936026722){if((b|0)<=1885890155){if((b|0)==1835628658)break Ub;if((b|0)!=1853256308)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=8;J[f>>2]=13;H[f+540|0]=1;J[f+376>>2]=J[f+376>>2]+1;b=0;break q}if((b|0)==1885890156)break Tb;if((b| -0)!=1886352244)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=9;J[f>>2]=14;b=-4;Vb:{c=zc(258);if(!c)break Vb;b=wc(c,0,258);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;c=b;b=Tc(a);I[c>>1]=b;if((b-2&65535)>>>0<254){Tc(a);H[f+540|0]=1;b=0;break Vb}fa(219093,220211,53,224627);B()}break q}Wb:{if((b|0)<=1953721464){if((b|0)==1936026723)break Wb;if((b|0)!=1953002099)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=7;J[f>>2]=12;b=-4;Xb:{c=zc(2);if(!c)break Xb;I[c>>1]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]= -c;J[f+376>>2]=J[f+376>>2]+1;b=Tc(a);I[c>>1]=b;if((b-1&65535)>>>0<255){Tc(a);H[f+540|0]=1;b=0;break Xb}fa(219205,220398,53,224677);B()}break q}if((b|0)==1953721465)break Ob;if((b|0)==1954108264)break Rb;if((b|0)!=1986881389)break r;ma=f,na=me(a),H[ma+586|0]=na;te(a,3);break o}J[((J[f+376>>2]<<2)+f|0)+380>>2]=6;J[f>>2]=11;b=-4;Yb:{c=zc(82);if(!c)break Yb;b=wc(c,0,82);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;Zb:{_b:{$b:{ac:{if((Tc(a)|0)==1){ma=b,na=Tc(a),I[ma>>1]=na;ma=b,na=Tc(a), -I[ma+2>>1]=na;ma=b,na=Tc(a),I[ma+22>>1]=na;ma=b,na=Tc(a),I[ma+42>>1]=na;c=Tc(a);I[b+62>>1]=c;if((L[b+2>>1]+100&65535)>>>0>=201)break Zb;if(I[b+22>>1]<=-101)break $b;if(I[b+42>>1]<=-101)break _b;if((c|0)<=-101)break ac;ma=b,na=Tc(a),I[ma+4>>1]=na;ma=b,na=Tc(a),I[ma+24>>1]=na;ma=b,na=Tc(a),I[ma+44>>1]=na;c=Tc(a);I[b- -64>>1]=c;if((L[b+4>>1]+100&65535)>>>0>200)break Zb;if(I[b+24>>1]<-100)break $b;if(I[b+44>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=Tc(a),I[ma+6>>1]=na;ma=b,na=Tc(a),I[ma+26>>1]= -na;ma=b,na=Tc(a),I[ma+46>>1]=na;c=Tc(a);I[b+66>>1]=c;if((L[b+6>>1]+100&65535)>>>0>200)break Zb;if(I[b+26>>1]<-100)break $b;if(I[b+46>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=Tc(a),I[ma+8>>1]=na;ma=b,na=Tc(a),I[ma+28>>1]=na;ma=b,na=Tc(a),I[ma+48>>1]=na;c=Tc(a);I[b+68>>1]=c;if((L[b+8>>1]+100&65535)>>>0>200)break Zb;if(I[b+28>>1]<-100)break $b;if(I[b+48>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=Tc(a),I[ma+10>>1]=na;ma=b,na=Tc(a),I[ma+30>>1]=na;ma=b,na=Tc(a),I[ma+50>>1]=na;c=Tc(a);I[b+ -70>>1]=c;if((L[b+10>>1]+100&65535)>>>0>200)break Zb;if(I[b+30>>1]<-100)break $b;if(I[b+50>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=Tc(a),I[ma+12>>1]=na;ma=b,na=Tc(a),I[ma+32>>1]=na;ma=b,na=Tc(a),I[ma+52>>1]=na;c=Tc(a);I[b+72>>1]=c;if((L[b+12>>1]+100&65535)>>>0>200)break Zb;if(I[b+32>>1]<-100)break $b;if(I[b+52>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=Tc(a),I[ma+14>>1]=na;ma=b,na=Tc(a),I[ma+34>>1]=na;ma=b,na=Tc(a),I[ma+54>>1]=na;c=Tc(a);I[b+74>>1]=c;if((L[b+14>>1]+100&65535)>>>0>200)break Zb; -if(I[b+34>>1]<-100)break $b;if(I[b+54>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=Tc(a),I[ma+16>>1]=na;ma=b,na=Tc(a),I[ma+36>>1]=na;ma=b,na=Tc(a),I[ma+56>>1]=na;c=Tc(a);I[b+76>>1]=c;if((L[b+16>>1]+100&65535)>>>0>200)break Zb;if(I[b+36>>1]<-100)break $b;if(I[b+56>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=Tc(a),I[ma+18>>1]=na;ma=b,na=Tc(a),I[ma+38>>1]=na;ma=b,na=Tc(a),I[ma+58>>1]=na;c=Tc(a);I[b+78>>1]=c;if((L[b+18>>1]+100&65535)>>>0>200)break Zb;if(I[b+38>>1]<-100)break $b;if(I[b+58>>1]< --100)break _b;if((c|0)<-100)break ac;ma=b,na=Tc(a),I[ma+20>>1]=na;ma=b,na=Tc(a),I[ma+40>>1]=na;ma=b,na=Tc(a),I[ma+60>>1]=na;c=Tc(a);I[b+80>>1]=c;if((L[b+20>>1]+100&65535)>>>0>200)break Zb;if(I[b+40>>1]<-100)break $b;if(I[b+60>>1]<-100)break _b;if((c|0)<-100)break ac;H[f+540|0]=1;b=0}else b=-512;break Yb}fa(222196,219880,81,224746);B()}fa(221102,219880,79,224746);B()}fa(221638,219880,80,224746);B()}fa(219361,219880,78,224746);B()}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=10;J[f>>2]=15;c=zc(42);b=-4; -bc:{if(!c)break bc;I[c>>1]=0;I[c+2>>1]=0;I[c+4>>1]=0;I[c+6>>1]=0;I[c+40>>1]=0;I[c+32>>1]=0;I[c+34>>1]=0;I[c+36>>1]=0;I[c+38>>1]=0;I[c+24>>1]=0;I[c+26>>1]=0;I[c+28>>1]=0;I[c+30>>1]=0;I[c+16>>1]=0;I[c+18>>1]=0;I[c+20>>1]=0;I[c+22>>1]=0;I[c+8>>1]=0;I[c+10>>1]=0;I[c+12>>1]=0;I[c+14>>1]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>>2]+1;if((Tc(a)|0)==1){ma=c,na=Tc(a),H[ma|0]=na;ma=c,na=Tc(a),I[ma+2>>1]=na;ma=c,na=Tc(a),I[ma+10>>1]=na;ma=c,na=Tc(a),I[ma+18>>1]=na;ma=c,na=Tc(a),I[ma+26>>1]=na; -ma=c,na=Tc(a),I[ma+34>>1]=na;ma=c,na=Tc(a),I[ma+4>>1]=na;ma=c,na=Tc(a),I[ma+12>>1]=na;ma=c,na=Tc(a),I[ma+20>>1]=na;ma=c,na=Tc(a),I[ma+28>>1]=na;ma=c,na=Tc(a),I[ma+36>>1]=na;ma=c,na=Tc(a),I[ma+6>>1]=na;ma=c,na=Tc(a),I[ma+14>>1]=na;ma=c,na=Tc(a),I[ma+22>>1]=na;ma=c,na=Tc(a),I[ma+30>>1]=na;ma=c,na=Tc(a),I[ma+38>>1]=na;ma=c,na=Tc(a),I[ma+8>>1]=na;ma=c,na=Tc(a),I[ma+16>>1]=na;ma=c,na=Tc(a),I[ma+24>>1]=na;ma=c,na=Tc(a),I[ma+32>>1]=na;ma=c,na=Tc(a),I[ma+40>>1]=na;H[f+540|0]=1;b=0}else b=-513}break q}J[((J[f+ -376>>2]<<2)+f|0)+380>>2]=12;J[f>>2]=17;c=zc(20);b=-4;cc:{if(!c)break cc;J[c>>2]=0;J[c+4>>2]=0;J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>>2]+1;if((Tc(a)|0)==3){ma=c,na=Ac(a)>>8,J[ma>>2]=na;ma=c,na=Ac(a)>>8,J[ma+4>>2]=na;ma=c,na=Ac(a)>>8,J[ma+8>>2]=na;ma=c,na=Ac(a),J[ma+12>>2]=na;ma=c,na=me(a),H[ma+16|0]=na;pf(a);H[f+540|0]=1;b=0}else b=-514}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=15;b=-4;dc:{c=zc(3692);if(!c)break dc;h=wc(c,0,3692);J[((J[f+376>>2]<< -2)+f|0)+460>>2]=h;J[f+376>>2]=J[f+376>>2]+1;ec:{b=-516;fc:{if(Tc(a))break fc;c=Tc(a);I[h>>1]=c;b=0;if((c|0)<=0)break fc;i=h+4|0;j=h+312|0;m=h+616|0;o=h+952|0;d=h+1292|0;l=h+2460|0;e=0;while(1){b=-517;if((Ac(a)|0)!=943868237)break dc;gc:{hc:{ic:{jc:{kc:{lc:{mc:{b=Ac(a);if((b|0)<=1768385654){if((b|0)==1650816620)break jc;if((b|0)==1668116051)break mc;if((b|0)!=1685283959)break ic;c=0;J[i+12>>2]=-16777216;J[i+4>>2]=3;J[i+8>>2]=-16777216;J[i+36>>2]=5;J[i+28>>2]=5;J[i+32>>2]=0;H[i+24|0]=1;J[i+20>>2]=120; -H[i+16|0]=191;b=i+40|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g=c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}H[i+304|0]=0;J[i+300>>2]=0;H[i+296|0]=0;Ac(a);b=Ac(a);nc:{if(b&-3)break nc;ma=i,na=Tc(a),J[ma+36>>2]=na;ma=i,na=Ac(a),J[ma+32>>2]=na;ma=i,na=Ac(a),J[ma+20>>2]=na;ma=i,na=Ac(a),J[ma+28>>2]=na;Tc(a);ma=i,na=Bi(a),J[ma+8>>2]=na;if((Ac(a)|0)!=943868237)break nc;ma=i,na=Bo(a),J[ma+4>>2]=na;ma=i,na=me(a),H[ma| -0]=na;ma=i,na=me(a),H[ma+24|0]=na;ma=i,na=pf(a),H[ma+16|0]=na;if((b|0)!=2)break nc;ma=i,na=Bi(a),J[ma+12>>2]=na}H[h+3218|0]=1;H[h+3208|0]=1;break gc}if((b|0)<=1869048950){if((b|0)==1768385655)break kc;if((b|0)!=1769170039)break ic;c=0;J[j+12>>2]=-16777216;J[j+4>>2]=3;J[j+8>>2]=-16777216;J[j+36>>2]=5;J[j+28>>2]=5;J[j+32>>2]=0;H[j+24|0]=1;J[j+20>>2]=120;H[j+16|0]=191;b=j+40|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g= -c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}J[j+300>>2]=0;H[j+296|0]=0;Ac(a);b=Ac(a);oc:{if(b&-3)break oc;ma=j,na=Tc(a),J[ma+36>>2]=na;ma=j,na=Ac(a),J[ma+32>>2]=na;ma=j,na=Ac(a),J[ma+20>>2]=na;ma=j,na=Ac(a),J[ma+28>>2]=na;Tc(a);ma=j,na=Bi(a),J[ma+8>>2]=na;if((Ac(a)|0)!=943868237)break oc;ma=j,na=Bo(a),J[ma+4>>2]=na;ma=j,na=me(a),H[ma|0]=na;ma=j,na=me(a),H[ma+24|0]=na;ma=j,na=pf(a),H[ma+16|0]=na;if((b|0)!=2)break oc;ma=j,na=Bi(a),J[ma+12>>2]=na}H[h+3219|0]=1;H[h+3209|0]=1;break gc}if((b|0)== -1869048951)break lc;if((b|0)!=1936680553)break ic;H[l+12|0]=255;J[l+4>>2]=0;J[l+8>>2]=-65536;Ac(a);pc:{if((Ac(a)|0)!=2)break pc;if((Ac(a)|0)!=943868237)break pc;ma=l,na=Bo(a),J[ma+4>>2]=na;ma=l,na=Bi(a),J[ma+8>>2]=na;ma=l,na=pf(a),H[ma+12|0]=na;ma=l,na=me(a),H[ma|0]=na;ma=l,na=Bi(a),J[ma+16>>2]=na}H[h+3223|0]=1;H[h+3213|0]=1;break gc}if((Ac(a)|0)!=7)break ec;if(!Ac(a))break hc;b=-519;break dc}c=0;J[m+12>>2]=0;J[m+16>>2]=0;H[m+8|0]=191;J[m+4>>2]=7;J[m+64>>2]=5;J[m+56>>2]=0;J[m+60>>2]=0;J[m+20>>2]= --66;J[m+24>>2]=-66;b=m+68|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g=c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}J[m+328>>2]=50;J[m+332>>2]=0;H[m+324|0]=0;Ac(a);b=Ac(a);qc:{if(b&-3)break qc;ma=m,na=Ac(a),J[ma+64>>2]=na;ma=m,na=Ac(a),J[ma+60>>2]=na;ma=m,na=Bi(a),J[ma+20>>2]=na;if((Ac(a)|0)!=943868237)break qc;ma=m,na=Bo(a),J[ma+4>>2]=na;ma=m,na=me(a),H[ma|0]=na;ma=m,na=pf(a),H[ma+8|0]=na;if((b|0)!=2)break qc; -ma=m,na=Bi(a),J[ma+24>>2]=na}H[h+3220|0]=1;H[h+3210|0]=1;break gc}c=0;J[o+12>>2]=0;J[o+16>>2]=0;H[o+8|0]=191;J[o+4>>2]=7;J[o+64>>2]=0;J[o+68>>2]=5;J[o+56>>2]=0;J[o+60>>2]=1;J[o+20>>2]=-66;J[o+24>>2]=-66;b=o+72|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g=c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}J[o+332>>2]=50;J[o+336>>2]=0;H[o+328|0]=0;Ac(a);b=Ac(a);rc:{if(b&-3)break rc;ma=o,na=Ac(a),J[ma+68>>2]=na;ma=o,na= -Ac(a),J[ma+64>>2]=na;ma=o,na=Bi(a),J[ma+20>>2]=na;if((Ac(a)|0)!=943868237)break rc;ma=o,na=Bo(a),J[ma+4>>2]=na;ma=o,na=me(a),H[ma|0]=na;ma=o,na=pf(a),H[ma+8|0]=na;if((b|0)!=2)break rc;if((me(a)|0)==1)J[o+60>>2]=0;ma=o,na=Bi(a),J[ma+24>>2]=na}H[h+3221|0]=1;H[h+3211|0]=1;break gc}c=0;J[d+4>>2]=1;J[d+8>>2]=2;J[d+36>>2]=30;H[d+32|0]=1;J[d+28>>2]=120;J[d+20>>2]=5;J[d+24>>2]=0;J[d+12>>2]=100;J[d+16>>2]=0;b=d+40|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g= +K[e|0];J[d>>2]=c<<16|c<<8|K[j|0]<<24|c;c=K[e+1|0];J[d+4>>2]=c<<16|c<<8|K[j+1|0]<<24|c;e=e+2|0;j=j+2|0;d=d+8|0;n=n-2|0;if(n)continue;break}}break $a}fa(223298,220263,122,223804);B()}}e=0;c=P(J[r>>2],J[s>>2]);if((c|0)<=0)break X;fb:switch(L[a+50>>1]-8|0){case 0:f=I[i+28>>1];if((f|0)<=0)break X;n=J[i+32>>2];d=0;while(1){if(L[n+P(d,12)>>1]==65534){c=Dc(c);J[i+76>>2]=c;f=-4;if(!c)break U;xc(c,J[a+684>>2]+P(J[a+704>>2],d)|0,P(J[r>>2],J[s>>2]));f=0;break U}d=d+1|0;if((f|0)!=(d|0))continue;break}break X; +case 8:break fb;default:break X}f=I[i+28>>1];if((f|0)<=0)break X;n=P(J[i+24>>2],J[i+20>>2]);h=(c|0)<(n|0)?n:c;d=J[i+32>>2];n=0;while(1){if(L[d+P(n,12)>>1]==65534){d=Dc(c);J[i+76>>2]=d;f=-4;if(!d)break U;n=J[a+684>>2]+(P(h,n)<<1)|0;h=c&7;gb:{if(!h){f=c;break gb}f=c;while(1){H[d|0]=K[n|0];n=n+2|0;d=d+1|0;f=f-1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}e=0;if(c>>>0<8)break X;while(1){H[d|0]=K[n|0];H[d+1|0]=K[n+2|0];H[d+2|0]=K[n+4|0];H[d+3|0]=K[n+6|0];H[d+4|0]=K[n+8|0];H[d+5|0]=K[n+10|0];H[d+6|0]=K[n+ +12|0];H[d+7|0]=K[n+14|0];n=n+16|0;d=d+8|0;f=f-8|0;if(f)continue;break}break X}n=n+1|0;if((f|0)!=(n|0))continue;break}}f=e;break U}J[a+688>>2]=0;f=-4;break U}fa(220977,220263,814,223743);B()}n=f;if(f){vs(i);break a}f=i+600|0;b=b+1|0;if((b|0)>1])continue;break}break b}fa(223417,220190,695,223214);B()}J[((J[f+376>>2]<<2)+f|0)+380>>2]=18;J[f>>2]=4;b=-4;hb:{c=Dc(56);if(!c)break hb;J[c>>2]=0;J[c+4>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0; +J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>>2]+1;H[c+25|0]=0;H[c+26|0]=1;J[c+20>>2]=100;d=-526;ib:{jb:{kb:{lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:{tb:{ub:{if((Fc(a)|0)!=16)break ub;Be(a,Fc(a)<<1);b=Fc(a);vb:{if(!b){ma=c,na=Fc(a),J[ma>>2]=na;break vb}Be(a,b)}d=0;h=Fc(a);if(!h)break ub;i=c+28|0;while(1){if(Fc(a))break tb;b=Fc(a);e=Fc(a);wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{if((b|0)<=1198678371){if((b|0)==1097623406)break Cb;if((b|0)==1097754476)break Bb; +if((b|0)!=1148479602)break Db;if((e|0)!=1651470188)break sb;ma=c,na=ue(a),H[ma+25|0]=na;break wb}if((b|0)<=1399024671){if((b|0)==1198678372)break yb;if((b|0)!=1383494259)break Db;if((e|0)!=1651470188)break rb;ma=c,na=ue(a),H[ma+24|0]=na;break wb}if((b|0)==1399024672)break Ab;if((b|0)==1417244773)break zb}fa(223921,220111,157,224615);B()}if((e|0)!=1651470188)break qb;ma=c,na=ue(a),H[ma+26|0]=na;break wb}if((e|0)!=1433302086)break pb;if((Fc(a)|0)!=591490663)break ob;ma=c,oa=me(a),O[ma+8>>3]=oa;break wb}if((e| +0)!=1433302086)break nb;if((Fc(a)|0)!=592474723)break mb;k=me(a);if(!(R(k)<2147483648))break xb;J[c+20>>2]=~~k;break wb}if((e|0)!=1701737837)break lb;if(Fc(a))break kb;if((Fc(a)|0)!=1198679124)break jb;ma=c,na=qO(a),J[ma+16>>2]=na;break wb}if((e|0)!=1331849827)break ib;wy(i,a);break wb}J[c+20>>2]=-2147483648}h=h-1|0;if(h)continue;break}}b=d;break hb}fa(219536,220111,80,224615);B()}fa(221342,220111,96,224615);B()}fa(221342,220111,102,224615);B()}fa(221342,220111,108,224615);B()}fa(221880,220111,114, +224615);B()}fa(222393,220111,118,224615);B()}fa(221880,220111,126,224615);B()}fa(222782,220111,130,224615);B()}fa(223119,220111,138,224615);B()}fa(219536,220111,143,224615);B()}fa(223375,220111,146,224615);B()}fa(223536,220111,152,224615);B()}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=17;J[f>>2]=3;b=-4;Eb:{c=Dc(8);if(!c)break Eb;J[c>>2]=0;J[c+4>>2]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>>2]+1;Fb:{Gb:{Hb:{Ib:{Jb:{if((Fc(a)|0)==16){Be(a,Fc(a)<<1);if(Fc(a))break Jb;ma=c,na=Fc(a),J[ma>> +2]=na;if((Fc(a)|0)!=1)break Ib;if(Fc(a))break Hb;if((Fc(a)|0)!=1131180576)break Gb;if((Fc(a)|0)!=1331849827)break Fb;ma=c,na=hn(a),J[ma+4>>2]=na;b=0}else b=-525;break Eb}fa(219536,219938,61,224667);B()}fa(221100,219938,67,224667);B()}fa(219536,219938,72,224667);B()}fa(221909,219938,74,224667);B()}fa(222407,219938,78,224667);B()}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=3;J[f>>2]=8;c=Dc(264);b=-4;Kb:{if(!c)break Kb;b=Ac(c,0,264);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;ma=b,na=ad(a), +I[ma>>1]=na;ma=b,na=ad(a),I[ma+2>>1]=na;ma=b,na=ad(a),I[ma+4>>1]=na;ma=b,na=wf(a),H[ma+6|0]=na;H[f+540|0]=1;b=0}break q}Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{if((b|0)<=1835628657){if((b|0)<=1819504741){if((b|0)<=1819428439){if((b|0)==1819109229)break Nb;if((b|0)!=1819177842)break r;ma=f,na=Fc(a),J[ma+552>>2]=na;break o}if((b|0)==1819428440)break Sb;if((b|0)!=1819501428)break r;b=Fc(a);J[f+588>>2]=b;b=b-1|0;if(b>>>0<=2)J[f>>2]=J[(b<<2)+223596>>2];if((w|0)!=12)break o;if((Fc(a)|0)==943868237)break Mb;b=-529; +break p}if((b|0)<=1819896163){if((b|0)==1819504742)break Pb;if((b|0)!=1819635305)break r;b=Fc(a);J[f+544>>2]=b;b=Dc(b<<1);J[f+548>>2]=b;if(b)break Lb;b=-4;break p}if((b|0)==1819896164)break Qb;if((b|0)!=1819899506)break r;ma=f,na=Fc(a),J[ma+560>>2]=na;break o}Tb:{Ub:{if((b|0)<=1936026722){if((b|0)<=1885890155){if((b|0)==1835628658)break Ub;if((b|0)!=1853256308)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=8;J[f>>2]=13;H[f+540|0]=1;J[f+376>>2]=J[f+376>>2]+1;b=0;break q}if((b|0)==1885890156)break Tb;if((b| +0)!=1886352244)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=9;J[f>>2]=14;b=-4;Vb:{c=Dc(258);if(!c)break Vb;b=Ac(c,0,258);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;c=b;b=ad(a);I[c>>1]=b;if((b-2&65535)>>>0<254){ad(a);H[f+540|0]=1;b=0;break Vb}fa(219109,220227,53,224643);B()}break q}Wb:{if((b|0)<=1953721464){if((b|0)==1936026723)break Wb;if((b|0)!=1953002099)break r;J[((J[f+376>>2]<<2)+f|0)+380>>2]=7;J[f>>2]=12;b=-4;Xb:{c=Dc(2);if(!c)break Xb;I[c>>1]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]= +c;J[f+376>>2]=J[f+376>>2]+1;b=ad(a);I[c>>1]=b;if((b-1&65535)>>>0<255){ad(a);H[f+540|0]=1;b=0;break Xb}fa(219221,220414,53,224693);B()}break q}if((b|0)==1953721465)break Ob;if((b|0)==1954108264)break Rb;if((b|0)!=1986881389)break r;ma=f,na=ue(a),H[ma+586|0]=na;Be(a,3);break o}J[((J[f+376>>2]<<2)+f|0)+380>>2]=6;J[f>>2]=11;b=-4;Yb:{c=Dc(82);if(!c)break Yb;b=Ac(c,0,82);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;Zb:{_b:{$b:{ac:{if((ad(a)|0)==1){ma=b,na=ad(a),I[ma>>1]=na;ma=b,na=ad(a), +I[ma+2>>1]=na;ma=b,na=ad(a),I[ma+22>>1]=na;ma=b,na=ad(a),I[ma+42>>1]=na;c=ad(a);I[b+62>>1]=c;if((L[b+2>>1]+100&65535)>>>0>=201)break Zb;if(I[b+22>>1]<=-101)break $b;if(I[b+42>>1]<=-101)break _b;if((c|0)<=-101)break ac;ma=b,na=ad(a),I[ma+4>>1]=na;ma=b,na=ad(a),I[ma+24>>1]=na;ma=b,na=ad(a),I[ma+44>>1]=na;c=ad(a);I[b- -64>>1]=c;if((L[b+4>>1]+100&65535)>>>0>200)break Zb;if(I[b+24>>1]<-100)break $b;if(I[b+44>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=ad(a),I[ma+6>>1]=na;ma=b,na=ad(a),I[ma+26>>1]= +na;ma=b,na=ad(a),I[ma+46>>1]=na;c=ad(a);I[b+66>>1]=c;if((L[b+6>>1]+100&65535)>>>0>200)break Zb;if(I[b+26>>1]<-100)break $b;if(I[b+46>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=ad(a),I[ma+8>>1]=na;ma=b,na=ad(a),I[ma+28>>1]=na;ma=b,na=ad(a),I[ma+48>>1]=na;c=ad(a);I[b+68>>1]=c;if((L[b+8>>1]+100&65535)>>>0>200)break Zb;if(I[b+28>>1]<-100)break $b;if(I[b+48>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=ad(a),I[ma+10>>1]=na;ma=b,na=ad(a),I[ma+30>>1]=na;ma=b,na=ad(a),I[ma+50>>1]=na;c=ad(a);I[b+ +70>>1]=c;if((L[b+10>>1]+100&65535)>>>0>200)break Zb;if(I[b+30>>1]<-100)break $b;if(I[b+50>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=ad(a),I[ma+12>>1]=na;ma=b,na=ad(a),I[ma+32>>1]=na;ma=b,na=ad(a),I[ma+52>>1]=na;c=ad(a);I[b+72>>1]=c;if((L[b+12>>1]+100&65535)>>>0>200)break Zb;if(I[b+32>>1]<-100)break $b;if(I[b+52>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=ad(a),I[ma+14>>1]=na;ma=b,na=ad(a),I[ma+34>>1]=na;ma=b,na=ad(a),I[ma+54>>1]=na;c=ad(a);I[b+74>>1]=c;if((L[b+14>>1]+100&65535)>>>0>200)break Zb; +if(I[b+34>>1]<-100)break $b;if(I[b+54>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=ad(a),I[ma+16>>1]=na;ma=b,na=ad(a),I[ma+36>>1]=na;ma=b,na=ad(a),I[ma+56>>1]=na;c=ad(a);I[b+76>>1]=c;if((L[b+16>>1]+100&65535)>>>0>200)break Zb;if(I[b+36>>1]<-100)break $b;if(I[b+56>>1]<-100)break _b;if((c|0)<-100)break ac;ma=b,na=ad(a),I[ma+18>>1]=na;ma=b,na=ad(a),I[ma+38>>1]=na;ma=b,na=ad(a),I[ma+58>>1]=na;c=ad(a);I[b+78>>1]=c;if((L[b+18>>1]+100&65535)>>>0>200)break Zb;if(I[b+38>>1]<-100)break $b;if(I[b+58>>1]< +-100)break _b;if((c|0)<-100)break ac;ma=b,na=ad(a),I[ma+20>>1]=na;ma=b,na=ad(a),I[ma+40>>1]=na;ma=b,na=ad(a),I[ma+60>>1]=na;c=ad(a);I[b+80>>1]=c;if((L[b+20>>1]+100&65535)>>>0>200)break Zb;if(I[b+40>>1]<-100)break $b;if(I[b+60>>1]<-100)break _b;if((c|0)<-100)break ac;H[f+540|0]=1;b=0}else b=-512;break Yb}fa(222212,219896,81,224762);B()}fa(221118,219896,79,224762);B()}fa(221654,219896,80,224762);B()}fa(219377,219896,78,224762);B()}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=10;J[f>>2]=15;c=Dc(42);b=-4; +bc:{if(!c)break bc;I[c>>1]=0;I[c+2>>1]=0;I[c+4>>1]=0;I[c+6>>1]=0;I[c+40>>1]=0;I[c+32>>1]=0;I[c+34>>1]=0;I[c+36>>1]=0;I[c+38>>1]=0;I[c+24>>1]=0;I[c+26>>1]=0;I[c+28>>1]=0;I[c+30>>1]=0;I[c+16>>1]=0;I[c+18>>1]=0;I[c+20>>1]=0;I[c+22>>1]=0;I[c+8>>1]=0;I[c+10>>1]=0;I[c+12>>1]=0;I[c+14>>1]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>>2]+1;if((ad(a)|0)==1){ma=c,na=ad(a),H[ma|0]=na;ma=c,na=ad(a),I[ma+2>>1]=na;ma=c,na=ad(a),I[ma+10>>1]=na;ma=c,na=ad(a),I[ma+18>>1]=na;ma=c,na=ad(a),I[ma+26>>1]=na; +ma=c,na=ad(a),I[ma+34>>1]=na;ma=c,na=ad(a),I[ma+4>>1]=na;ma=c,na=ad(a),I[ma+12>>1]=na;ma=c,na=ad(a),I[ma+20>>1]=na;ma=c,na=ad(a),I[ma+28>>1]=na;ma=c,na=ad(a),I[ma+36>>1]=na;ma=c,na=ad(a),I[ma+6>>1]=na;ma=c,na=ad(a),I[ma+14>>1]=na;ma=c,na=ad(a),I[ma+22>>1]=na;ma=c,na=ad(a),I[ma+30>>1]=na;ma=c,na=ad(a),I[ma+38>>1]=na;ma=c,na=ad(a),I[ma+8>>1]=na;ma=c,na=ad(a),I[ma+16>>1]=na;ma=c,na=ad(a),I[ma+24>>1]=na;ma=c,na=ad(a),I[ma+32>>1]=na;ma=c,na=ad(a),I[ma+40>>1]=na;H[f+540|0]=1;b=0}else b=-513}break q}J[((J[f+ +376>>2]<<2)+f|0)+380>>2]=12;J[f>>2]=17;c=Dc(20);b=-4;cc:{if(!c)break cc;J[c>>2]=0;J[c+4>>2]=0;J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>>2]+1;if((ad(a)|0)==3){ma=c,na=Fc(a)>>8,J[ma>>2]=na;ma=c,na=Fc(a)>>8,J[ma+4>>2]=na;ma=c,na=Fc(a)>>8,J[ma+8>>2]=na;ma=c,na=Fc(a),J[ma+12>>2]=na;ma=c,na=ue(a),H[ma+16|0]=na;wf(a);H[f+540|0]=1;b=0}else b=-514}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=15;b=-4;dc:{c=Dc(3692);if(!c)break dc;h=Ac(c,0,3692);J[((J[f+376>>2]<< +2)+f|0)+460>>2]=h;J[f+376>>2]=J[f+376>>2]+1;ec:{b=-516;fc:{if(ad(a))break fc;c=ad(a);I[h>>1]=c;b=0;if((c|0)<=0)break fc;i=h+4|0;j=h+312|0;m=h+616|0;o=h+952|0;d=h+1292|0;l=h+2460|0;e=0;while(1){b=-517;if((Fc(a)|0)!=943868237)break dc;gc:{hc:{ic:{jc:{kc:{lc:{mc:{b=Fc(a);if((b|0)<=1768385654){if((b|0)==1650816620)break jc;if((b|0)==1668116051)break mc;if((b|0)!=1685283959)break ic;c=0;J[i+12>>2]=-16777216;J[i+4>>2]=3;J[i+8>>2]=-16777216;J[i+36>>2]=5;J[i+28>>2]=5;J[i+32>>2]=0;H[i+24|0]=1;J[i+20>>2]=120; +H[i+16|0]=191;b=i+40|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g=c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}H[i+304|0]=0;J[i+300>>2]=0;H[i+296|0]=0;Fc(a);b=Fc(a);nc:{if(b&-3)break nc;ma=i,na=ad(a),J[ma+36>>2]=na;ma=i,na=Fc(a),J[ma+32>>2]=na;ma=i,na=Fc(a),J[ma+20>>2]=na;ma=i,na=Fc(a),J[ma+28>>2]=na;ad(a);ma=i,na=Ri(a),J[ma+8>>2]=na;if((Fc(a)|0)!=943868237)break nc;ma=i,na=rp(a),J[ma+4>>2]=na;ma=i,na=ue(a),H[ma| +0]=na;ma=i,na=ue(a),H[ma+24|0]=na;ma=i,na=wf(a),H[ma+16|0]=na;if((b|0)!=2)break nc;ma=i,na=Ri(a),J[ma+12>>2]=na}H[h+3218|0]=1;H[h+3208|0]=1;break gc}if((b|0)<=1869048950){if((b|0)==1768385655)break kc;if((b|0)!=1769170039)break ic;c=0;J[j+12>>2]=-16777216;J[j+4>>2]=3;J[j+8>>2]=-16777216;J[j+36>>2]=5;J[j+28>>2]=5;J[j+32>>2]=0;H[j+24|0]=1;J[j+20>>2]=120;H[j+16|0]=191;b=j+40|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g= +c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}J[j+300>>2]=0;H[j+296|0]=0;Fc(a);b=Fc(a);oc:{if(b&-3)break oc;ma=j,na=ad(a),J[ma+36>>2]=na;ma=j,na=Fc(a),J[ma+32>>2]=na;ma=j,na=Fc(a),J[ma+20>>2]=na;ma=j,na=Fc(a),J[ma+28>>2]=na;ad(a);ma=j,na=Ri(a),J[ma+8>>2]=na;if((Fc(a)|0)!=943868237)break oc;ma=j,na=rp(a),J[ma+4>>2]=na;ma=j,na=ue(a),H[ma|0]=na;ma=j,na=ue(a),H[ma+24|0]=na;ma=j,na=wf(a),H[ma+16|0]=na;if((b|0)!=2)break oc;ma=j,na=Ri(a),J[ma+12>>2]=na}H[h+3219|0]=1;H[h+3209|0]=1;break gc}if((b|0)== +1869048951)break lc;if((b|0)!=1936680553)break ic;H[l+12|0]=255;J[l+4>>2]=0;J[l+8>>2]=-65536;Fc(a);pc:{if((Fc(a)|0)!=2)break pc;if((Fc(a)|0)!=943868237)break pc;ma=l,na=rp(a),J[ma+4>>2]=na;ma=l,na=Ri(a),J[ma+8>>2]=na;ma=l,na=wf(a),H[ma+12|0]=na;ma=l,na=ue(a),H[ma|0]=na;ma=l,na=Ri(a),J[ma+16>>2]=na}H[h+3223|0]=1;H[h+3213|0]=1;break gc}if((Fc(a)|0)!=7)break ec;if(!Fc(a))break hc;b=-519;break dc}c=0;J[m+12>>2]=0;J[m+16>>2]=0;H[m+8|0]=191;J[m+4>>2]=7;J[m+64>>2]=5;J[m+56>>2]=0;J[m+60>>2]=0;J[m+20>>2]= +-66;J[m+24>>2]=-66;b=m+68|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g=c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}J[m+328>>2]=50;J[m+332>>2]=0;H[m+324|0]=0;Fc(a);b=Fc(a);qc:{if(b&-3)break qc;ma=m,na=Fc(a),J[ma+64>>2]=na;ma=m,na=Fc(a),J[ma+60>>2]=na;ma=m,na=Ri(a),J[ma+20>>2]=na;if((Fc(a)|0)!=943868237)break qc;ma=m,na=rp(a),J[ma+4>>2]=na;ma=m,na=ue(a),H[ma|0]=na;ma=m,na=wf(a),H[ma+8|0]=na;if((b|0)!=2)break qc; +ma=m,na=Ri(a),J[ma+24>>2]=na}H[h+3220|0]=1;H[h+3210|0]=1;break gc}c=0;J[o+12>>2]=0;J[o+16>>2]=0;H[o+8|0]=191;J[o+4>>2]=7;J[o+64>>2]=0;J[o+68>>2]=5;J[o+56>>2]=0;J[o+60>>2]=1;J[o+20>>2]=-66;J[o+24>>2]=-66;b=o+72|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g=c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}J[o+332>>2]=50;J[o+336>>2]=0;H[o+328|0]=0;Fc(a);b=Fc(a);rc:{if(b&-3)break rc;ma=o,na=Fc(a),J[ma+68>>2]=na;ma=o,na= +Fc(a),J[ma+64>>2]=na;ma=o,na=Ri(a),J[ma+20>>2]=na;if((Fc(a)|0)!=943868237)break rc;ma=o,na=rp(a),J[ma+4>>2]=na;ma=o,na=ue(a),H[ma|0]=na;ma=o,na=wf(a),H[ma+8|0]=na;if((b|0)!=2)break rc;if((ue(a)|0)==1)J[o+60>>2]=0;ma=o,na=Ri(a),J[ma+24>>2]=na}H[h+3221|0]=1;H[h+3211|0]=1;break gc}c=0;J[d+4>>2]=1;J[d+8>>2]=2;J[d+36>>2]=30;H[d+32|0]=1;J[d+28>>2]=120;J[d+20>>2]=5;J[d+24>>2]=0;J[d+12>>2]=100;J[d+16>>2]=0;b=d+40|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g= c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g=c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}J[d+308>>2]=-1;c=0;H[d+296|0]=0;J[d+324>>2]=-16777216;H[d+312|0]=191;J[d+300>>2]=7;J[d+304>>2]=-1;I[d+328>>1]=191;J[d+316>>2]=7;J[d+320>>2]=-16777216;b=d+330|0;while(1){H[b+c|0]=c;g=c|1;H[g+b|0]=g;g=c|2;H[g+b|0]=g;g=c|3;H[g+b|0]=g;g=c|4;H[g+b|0]=g;g=c|5;H[g+b|0]=g;g=c|6;H[g+b|0]=g;g=c|7;H[g+b|0]=g;c=c+8|0;if((c|0)!=256)continue;break}I[d+868>>1]=256;J[d+860>>2]=100;J[d+864>>2]=100;H[d+592|0]=0;J[d+588>>2]=50;H[d+ -586|0]=0;Ac(a);b=Ac(a);sc:{if(b&-3)break sc;ma=d,na=Ac(a),J[ma+28>>2]=na;ma=d,na=Ac(a),J[ma+20>>2]=na;ma=d,na=Ac(a),J[ma+24>>2]=na;if((Ac(a)|0)!=943868237)break sc;ma=d,na=Bo(a),J[ma+300>>2]=na;if((Ac(a)|0)!=943868237)break sc;ma=d,na=Bo(a),J[ma+316>>2]=na;ma=d,na=Bi(a),J[ma+304>>2]=na;ma=d,na=Bi(a),J[ma+320>>2]=na;ma=d,na=pf(a),J[ma+4>>2]=na;ma=d,na=pf(a),H[ma+312|0]=na;ma=d,na=pf(a),H[ma+328|0]=na;ma=d,na=me(a),H[ma|0]=na;ma=d,na=me(a),H[ma+32|0]=na;ma=d,na=pf(a),J[ma+16>>2]=na;if((b|0)!=2)break sc; -ma=d,na=Bi(a),J[ma+308>>2]=na;ma=d,na=Bi(a),J[ma+324>>2]=na}H[h+3227|0]=1;H[h+3217|0]=1;break gc}fa(221272,219743,151,224701);B()}ma=h,na=me(a),H[ma+2|0]=na;Tc(a)}e=e+1|0;if((e|0)>1])continue;break}b=0}break dc}fa(219083,219743,109,224701);B()}break q}e=0;J[((J[f+376>>2]<<2)+f|0)+380>>2]=13;h=-4;tc:{uc:{vc:{b=zc(112);wc:{if(!b)break wc;b=wc(b,0,112);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;if((Tc(a)|0)!=1)break vc;ma=b,oa=be(a),O[ma>>3]=oa;ma=b,oa=be(a),O[ma+8>>3]=oa;ma=b, -oa=be(a),O[ma+16>>3]=oa;ma=b,oa=be(a),O[ma+24>>3]=oa;ma=b,oa=be(a),O[ma+32>>3]=oa;ma=b,oa=be(a),O[ma+40>>3]=oa;if((Tc(a)|0)!=6)break uc;c=Tc(a);I[b+48>>1]=c;c=zc(P(c,788));J[b+52>>2]=c;if(!c)break wc;wc(c,0,P(I[b+48>>1],788));if(I[b+48>>1]>0)while(1){d=Tc(a);c=P(e,788);I[c+J[b+52>>2]>>1]=d;d=Ac(a);J[(c+J[b+52>>2]|0)+4>>2]=d;d=pf(a);af(a,(c+J[b+52>>2]|0)+8|0,d);d=pf(a);af(a,(c+J[b+52>>2]|0)+264|0,d);d=pf(a);af(a,(c+J[b+52>>2]|0)+520|0,d);d=Tc(a);I[(c+J[b+52>>2]|0)+776>>1]=d;d=Ac(a);J[(c+J[b+52>>2]| -0)+780>>2]=d;d=zc(d<<2);i=c+J[b+52>>2]|0;J[i+784>>2]=d;if(!d)break wc;d=0;if(J[i+780>>2]>0)while(1){i=Ac(a);j=c+J[b+52>>2]|0;J[J[j+784>>2]+(d<<2)>>2]=i;d=d+1|0;if((d|0)>2])continue;break}e=e+1|0;if((e|0)>1])continue;break}c=Tc(a);I[b+56>>1]=c;c=zc(P(c,28));J[b+60>>2]=c;if(!c)break wc;e=0;wc(c,0,P(I[b+56>>1],28));if(I[b+56>>1]>0)while(1){d=Tc(a);c=P(e,28);I[c+J[b+60>>2]>>1]=d;d=Tc(a);I[(c+J[b+60>>2]|0)+2>>1]=d;d=Ac(a);J[(c+J[b+60>>2]|0)+4>>2]=d;d=Ac(a);J[(c+J[b+60>>2]|0)+8>>2]=d;d= -Ac(a);J[(c+J[b+60>>2]|0)+12>>2]=d;d=Ac(a);J[(c+J[b+60>>2]|0)+16>>2]=d;d=Ac(a);J[(c+J[b+60>>2]|0)+20>>2]=d;d=me(a);H[(c+J[b+60>>2]|0)+24|0]=d;pf(a);d=me(a);H[(c+J[b+60>>2]|0)+25|0]=d;e=e+1|0;if((e|0)>1])continue;break}ma=b,na=Tc(a),I[ma+64>>1]=na;ma=b,na=Ac(a),J[ma+68>>2]=na;ma=b,na=Ac(a),J[ma+72>>2]=na;ma=b,na=Ac(a),J[ma+76>>2]=na;ma=b,na=Ac(a),J[ma+80>>2]=na;ma=b,na=Ac(a),J[ma+84>>2]=na;ma=b,na=Ac(a),J[ma+88>>2]=na;c=Tc(a);I[b+92>>1]=c;c=zc(P(c,12));J[b+96>>2]=c;if(!c)break wc;e=0;wc(c,0, -P(I[b+92>>1],12));if(I[b+92>>1]>0)while(1){d=Ac(a);c=P(e,12);J[c+J[b+96>>2]>>2]=d;d=Tc(a);I[(c+J[b+96>>2]|0)+4>>1]=d;d=Tc(a);I[(c+J[b+96>>2]|0)+6>>1]=d;d=Tc(a);I[(c+J[b+96>>2]|0)+8>>1]=d;d=Tc(a);I[(c+J[b+96>>2]|0)+10>>1]=d;e=e+1|0;if((e|0)>1])continue;break}ma=b,na=Bi(a),J[ma+100>>2]=na;ma=b,na=me(a),H[ma+104|0]=na;h=0}b=h;break tc}fa(219251,220059,48,224776);B()}fa(220774,220059,58,224776);B()}break q}ma=f,na=Ac(a),J[ma+556>>2]=na;break o}b=Ac(a);H[f+567|0]=b&1;H[f+569|0]=b>>>2&1;H[f+568| -0]=b>>>1&1;break o}ma=f,na=me(a),H[ma+584|0]=na;te(a,3);break o}ma=f,na=me(a),H[ma+585|0]=na;te(a,3);break o}ma=f,na=Bo(a),J[ma+592>>2]=na;break o}wc(b,0,J[f+544>>2]<<1);af(a,J[f+548>>2],J[f+544>>2]<<1);break o}xc:{yc:{zc:{Ac:{Bc:{if((b|0)<=1768842871){if((b|0)<=1752524081){if((b|0)==1719169648)break yc;if((b|0)!=1735550061)break r;d=bc-16|0;bc=d;J[((J[f+376>>2]<<2)+f|0)+380>>2]=11;J[f>>2]=16;c=zc(1080);b=-4;Cc:{if(!c)break Cc;c=wc(c,0,1080);J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>> -2]+1;b=-515;if((Tc(a)|0)!=1)break Cc;ma=c,na=me(a),H[ma|0]=na;ma=c,na=me(a),H[ma+1|0]=na;b=Ac(a);J[c+4>>2]=b;e=zc(b<<1);J[c+8>>2]=e;b=-4;if(!e)break Cc;af(a,e,J[c+4>>2]<<1);b=Tc(a);I[c+12>>1]=b;i=zc(b<<4);J[c+16>>2]=i;b=-4;if(!i)break Cc;e=0;wc(i,0,I[c+12>>1]<<4);if(I[c+12>>1]>0)while(1){i=Ac(a);b=e<<4;J[b+J[c+16>>2]>>2]=i;i=Ac(a);J[(b+J[c+16>>2]|0)+4>>2]=i;i=Bi(a);J[(b+J[c+16>>2]|0)+8>>2]=i;Tc(a);J[(b+J[c+16>>2]|0)+12>>2]=2;e=e+1|0;if((e|0)>1])continue;break}b=Tc(a);I[c+20>>1]=b;i=zc(P(b, -12));J[c+24>>2]=i;b=-4;if(!i)break Cc;e=0;wc(i,0,P(I[c+20>>1],12));if(I[c+20>>1]>0)while(1){i=Ac(a);b=P(e,12);J[b+J[c+24>>2]>>2]=i;i=Ac(a);J[(b+J[c+24>>2]|0)+4>>2]=i;i=Tc(a);I[(b+J[c+24>>2]|0)+8>>1]=i;e=e+1|0;if((e|0)>1])continue;break}b=Tc(a);I[c+28>>1]=b;Dc:{if((b|0)<=0)break Dc;ma=c,na=Tc(a),I[ma+30>>1]=na;b=Tc(a);I[c+32>>1]=b;if((b|0)<32)break Dc;ma=c,na=Tc(a),I[ma+34>>1]=na;ma=c,na=Ac(a),J[ma+36>>2]=na;ma=c,na=Tc(a),I[ma+40>>1]=na;ma=c,na=Tc(a),I[ma+42>>1]=na;ma=c,na=Ac(a),J[ma+44>>2]= -na;b=Tc(a);ma=d,na=Tc(a)>>>8|0,I[ma+8>>1]=na;ma=d,na=Tc(a)>>>8|0,I[ma+10>>1]=na;ma=d,na=Tc(a)>>>8|0,I[ma+12>>1]=na;ma=d,na=Tc(a)>>>8|0,I[ma+14>>1]=na;e=d+8|0;GD(c+48|0,b,e);ma=d,na=Tc(a)>>>8|0,I[ma+8>>1]=na;ma=d,na=Tc(a)>>>8|0,I[ma+10>>1]=na;ma=d,na=Tc(a)>>>8|0,I[ma+12>>1]=na;ma=d,na=Tc(a)>>>8|0,I[ma+14>>1]=na;GD(c+52|0,b,e)}Tc(a);H[f+540|0]=1;b=0}bc=d+16|0;break q}if((b|0)==1752524082)break Bc;if((b|0)!=1766813793)break r;ma=f,na=pf(a),H[ma+541|0]=na;te(a,3);break o}if((b|0)<=1818455153){if((b|0)== -1768842872)break Ac;if((b|0)!=1802398575)break r;ma=f,na=me(a),H[ma+566|0]=na;te(a,3);break o}if((b|0)==1818455154)break zc;if((b|0)==1818588780)break xc;if((b|0)!=1818654770)break r;x=bc-256|0;bc=x;J[((J[f+376>>2]<<2)+f|0)+380>>2]=16;Ec:{Fc:{b=zc(3692);Gc:{if(!b){d=-4;break Gc}o=wc(b,0,3692);J[((J[f+376>>2]<<2)+f|0)+460>>2]=o;J[f+376>>2]=J[f+376>>2]+1;d=-516;if(Ac(a))break Gc;if((Ac(a)|0)!=16)break Gc;te(a,Ac(a)<<1);b=Ac(a);Hc:{if(!b){Ac(a);break Hc}te(a,b)}d=Ac(a);if(d){t=o+2548|0;m=o+4|0;p=o+312| -0;j=o+616|0;h=o+952|0;c=o+1292|0;r=o+2172|0;v=o+2460|0;s=o+2480|0;i=o+2844|0;while(1){b=d-1|0;Ic:{Jc:{Kc:{e=Ac(a);if(e){af(a,x,e);H[e+x|0]=0;e=Ac(a);break Kc}l=Ac(a);e=Ac(a);Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{Yc:{Zc:{_c:{$c:{ad:{bd:{cd:{if((l|0)<=1232226155){if((l|0)<=1148343143){if(!l)break Kc;if((l|0)!=1130907224)break cd;if((e|0)!=1331849827)break Oc;g=0;l=bc-256|0;bc=l;J[r+24>>2]=14;J[r+16>>2]=19;J[r+20>>2]=11;H[r+12|0]=128;J[r+4>>2]=3;J[r+8>>2]=-16777216;d=r+28|0;while(1){H[d+ -g|0]=g;e=g|1;H[e+d|0]=e;e=g|2;H[e+d|0]=e;e=g|3;H[e+d|0]=e;e=g|4;H[e+d|0]=e;e=g|5;H[e+d|0]=e;e=g|6;H[e+d|0]=e;e=g|7;H[e+d|0]=e;g=g+8|0;if((g|0)!=256)continue;break}I[r+284>>1]=256;te(a,Ac(a)<<1);d=Ac(a);dd:{if(!d){Ac(a);break dd}te(a,d)}ed:{fd:{gd:{hd:{id:{jd:{kd:{ld:{md:{nd:{od:{pd:{qd:{rd:{sd:{td:{ud:{vd:{g=Ac(a);if(g){q=r+28|0;while(1){d=Ac(a);if(d){af(a,l,d);H[d+l|0]=0;Ac(a);break fd}d=Ac(a);e=Ac(a);wd:{xd:{yd:{zd:{Ad:{Bd:{Cd:{Dd:{if((d|0)<=1299212114){if((d|0)<=1148417133){if((d|0)==1097757761)break Dd; -if((d|0)!=1131180576)break fd;if((e|0)!=1331849827)break rd;ma=r,na=rm(a),J[ma+8>>2]=na;break wd}if((d|0)==1148417134)break Ad;if((d|0)==1231976050)break Cd;if((d|0)!=1298407456)break fd;if((e|0)!=1701737837)break ud;if(Ac(a))break td;if((Ac(a)|0)!=1114402381)break sd;ma=r,na=qm(a),J[ma+4>>2]=na;break wd}if((d|0)<=1651275121){if((d|0)==1299212115)break yd;if((d|0)!=1332765556)break fd;if((e|0)!=1433302086)break od;if((Ac(a)|0)!=592474723)break nd;k=be(a)*2.55+.5;if(!(R(k)<2147483648))break xd;H[r+ -12|0]=~~k;break wd}if((d|0)==1651275122)break zd;if((d|0)==1818322796)break Bd;if((d|0)!=1701732706)break fd;if((e|0)!=1651470188)break vd;ma=r,na=me(a),H[ma|0]=na;break wd}if((e|0)!=1651470188)break qd;ma=r,na=me(a),H[ma+284|0]=na;break wd}if((e|0)!=1651470188)break pd;ma=r,na=me(a),H[ma+285|0]=na;break wd}if((e|0)!=1433302086)break md;if((Ac(a)|0)!=591490663)break ld;k=be(a);if(R(k)<2147483648){J[r+16>>2]=~~k;break wd}J[r+16>>2]=-2147483648;break wd}if((e|0)!=1433302086)break kd;if((Ac(a)|0)!=592476268)break jd; -k=be(a);if(R(k)<2147483648){J[r+20>>2]=~~k;break wd}J[r+20>>2]=-2147483648;break wd}if((e|0)!=1433302086)break id;if((Ac(a)|0)!=592476268)break hd;k=be(a);if(R(k)<2147483648){J[r+24>>2]=~~k;break wd}J[r+24>>2]=-2147483648;break wd}if((e|0)!=1331849827)break gd;Er(q,a);break wd}H[r+12|0]=0}g=g-1|0;if(g)continue;break}}bc=l+256|0;break ed}fa(219532,219994,99,225797);B()}fa(221311,219994,105,225797);B()}fa(221823,219994,110,225797);B()}fa(222420,219994,113,225797);B()}fa(222780,219994,120,225797);B()}fa(219532, -219994,126,225797);B()}fa(219532,219994,132,225797);B()}fa(223160,219994,138,225797);B()}fa(223330,219994,141,225797);B()}fa(223160,219994,148,225797);B()}fa(223506,219994,151,225797);B()}fa(223160,219994,157,225797);B()}fa(223970,219994,160,225797);B()}fa(223160,219994,166,225797);B()}fa(223970,219994,169,225797);B()}fa(222780,219994,175,225797);B()}fa(224107,219994,180,225797);B()}H[o+3222|0]=1;H[o+3212|0]=1;break Jc}if((l|0)==1148343144)break ad;if((l|0)==1181894232)break Xc;if((l|0)!=1198671468)break cd; -if((e|0)!=1331849827)break Mc;J[s+52>>2]=90;J[s+56>>2]=100;H[s+48|0]=1;J[s+44>>2]=0;H[s+40|0]=0;H[s+8|0]=255;J[s+4>>2]=0;te(a,Ac(a)<<1);d=Ac(a);Ed:{if(!d){Ac(a);break Ed}te(a,d)}Fd:{Gd:{Hd:{Id:{Jd:{Kd:{Ld:{Md:{Nd:{Od:{Pd:{Qd:{Rd:{Sd:{Td:{Ud:{Vd:{Wd:{Xd:{Yd:{l=Ac(a);if(l){g=s+12|0;q=s- -64|0;u=s+60|0;while(1){if(Ac(a))break Yd;d=Ac(a);e=Ac(a);Zd:{_d:{$d:{ae:{be:{ce:{de:{ee:{fe:{ge:{if((d|0)<=1332765555){if((d|0)<=1198678371){if((d|0)==1097623406)break ae;if((d|0)!=1097754476)break Gd;if((e|0)!=1433302086)break Qd; -if((Ac(a)|0)!=591490663)break Pd;k=be(a);if(!(R(k)<2147483648))break de;J[s+52>>2]=~~k;break Zd}if((d|0)==1198678372)break ee;if((d|0)==1298407456)break ge;if((d|0)!=1332114292)break Gd;if((e|0)!=1331849827)break Hd;Ex(u,q,a);break Zd}if((d|0)<=1399024671){if((d|0)==1332765556)break fe;if((d|0)==1383494259)break be;break Gd}if((d|0)==1399024672)break $d;if((d|0)==1417244773)break ce;if((d|0)!=1701732706)break Gd;if((e|0)!=1651470188)break Xd;ma=s,na=me(a),H[ma|0]=na;break Zd}if((e|0)!=1701737837)break Wd; -if(Ac(a))break Vd;if((Ac(a)|0)!=1114402381)break Ud;ma=s,na=qm(a),J[ma+4>>2]=na;break Zd}if((e|0)!=1433302086)break Td;if((Ac(a)|0)!=592474723)break Sd;k=be(a)*2.55+.5;if(!(R(k)<2147483648))break _d;H[s+8|0]=~~k;break Zd}if((e|0)!=1331849827)break Rd;Fx(g,a);break Zd}J[s+52>>2]=-2147483648;break Zd}if((e|0)!=1701737837)break Od;if(Ac(a))break Nd;if((Ac(a)|0)!=1198679124)break Md;ma=s,na=YM(a),J[ma+44>>2]=na;break Zd}if((e|0)!=1651470188)break Ld;ma=s,na=me(a),H[ma+40|0]=na;break Zd}if((e|0)!=1651470188)break Kd; -ma=s,na=me(a),H[ma+48|0]=na;break Zd}if((e|0)!=1433302086)break Jd;if((Ac(a)|0)!=592474723)break Id;k=be(a);if(R(k)<2147483648){J[s+56>>2]=~~k;break Zd}J[s+56>>2]=-2147483648;break Zd}H[s+8|0]=0}l=l-1|0;if(l)continue;break}}break Fd}fa(219520,219547,76,225818);B()}fa(221326,219547,92,225818);B()}fa(221835,219547,98,225818);B()}fa(219520,219547,103,225818);B()}fa(222420,219547,106,225818);B()}fa(222795,219547,112,225818);B()}fa(223118,219547,115,225818);B()}fa(223344,219547,123,225818);B()}fa(222795, -219547,129,225818);B()}fa(223506,219547,133,225818);B()}fa(221835,219547,141,225818);B()}fa(219520,219547,146,225818);B()}fa(224013,219547,149,225818);B()}fa(221326,219547,155,225818);B()}fa(221326,219547,161,225818);B()}fa(222795,219547,167,225818);B()}fa(223118,219547,171,225818);B()}fa(223344,219547,179,225818);B()}fa(224107,219547,185,225818);B()}H[o+3224|0]=1;H[o+3214|0]=1;break Jc}if((l|0)<=1399024671){if((l|0)==1232226156)break _c;if((l|0)==1232229224)break $c;if((l|0)!=1332889452)break cd; -if((e|0)!=1331849827)break Rc;g=0;J[j+12>>2]=0;J[j+16>>2]=0;H[j+8|0]=191;J[j+4>>2]=7;J[j+64>>2]=5;J[j+56>>2]=0;J[j+60>>2]=0;J[j+20>>2]=-66;J[j+24>>2]=-66;d=j+68|0;while(1){H[d+g|0]=g;e=g|1;H[e+d|0]=e;e=g|2;H[e+d|0]=e;e=g|3;H[e+d|0]=e;e=g|4;H[e+d|0]=e;e=g|5;H[e+d|0]=e;e=g|6;H[e+d|0]=e;e=g|7;H[e+d|0]=e;g=g+8|0;if((g|0)!=256)continue;break}J[j+328>>2]=50;J[j+332>>2]=0;H[j+324|0]=0;te(a,Ac(a)<<1);d=Ac(a);he:{if(!d){Ac(a);break he}te(a,d)}ie:{je:{ke:{le:{me:{ne:{oe:{pe:{qe:{re:{se:{te:{ue:{ve:{we:{xe:{ye:{ze:{Ae:{Be:{Ce:{De:{Ee:{Fe:{Ge:{He:{l= -Ac(a);if(l){g=j+28|0;q=j+68|0;while(1){if(Ac(a))break He;d=Ac(a);e=Ac(a);Ie:{Je:{Ke:{Le:{Me:{Ne:{Oe:{Pe:{Qe:{Re:{Se:{if((d|0)<=1298407455){if((d|0)<=1198290771){if((d|0)==1097757761)break Me;if((d|0)==1131113844)break Qe;if((d|0)!=1131180576)break je;if((e|0)!=1331849827)break Ce;d=rm(a);J[j+20>>2]=d;J[j+24>>2]=d;J[j+16>>2]=0;break Ie}if((d|0)==1198290772)break Re;if((d|0)==1198678372)break Se;if((d|0)!=1231974514)break je;if((e|0)!=1433302086)break le;if((Ac(a)|0)!=592474723)break ke;k=be(a);if(!(R(k)< -2147483648))break Ke;J[j+328>>2]=~~k;break Ie}Te:{if((d|0)<=1399350349){if((d|0)==1298407456)break Te;if((d|0)==1315926885)break Oe;if((d|0)!=1332765556)break je;if((e|0)!=1433302086)break Ae;if((Ac(a)|0)!=592474723)break ze;k=be(a)*2.55+.5;if(!(R(k)<2147483648))break Je;H[j+8|0]=~~k;break Ie}if((d|0)<=1651275121){if((d|0)==1399350350)break Ne;if((d|0)==1416785491)break Le;break je}if((d|0)==1651275122)break Pe;if((d|0)!=1701732706)break je;if((e|0)!=1651470188)break Ge;ma=j,na=me(a),H[ma|0]=na;break Ie}if((e| -0)!=1701737837)break Fe;if(Ac(a))break Ee;if((Ac(a)|0)!=1114402381)break De;ma=j,na=qm(a),J[ma+4>>2]=na;break Ie}if((e|0)!=1331849827)break Be;Fx(g,a);J[j+16>>2]=1;break Ie}if((e|0)!=1701737837)break ye;if(Ac(a))break xe;if((Ac(a)|0)!=1111839813)break we;ma=j,na=ZM(a),J[ma+56>>2]=na;break Ie}if((e|0)!=1433302086)break ve;if((Ac(a)|0)!=592476268)break ue;k=be(a);if(R(k)<2147483648){J[j+60>>2]=~~k;break Ie}J[j+60>>2]=-2147483648;break Ie}if((e|0)!=1433302086)break te;if((Ac(a)|0)!=592476268)break se; -k=be(a);if(R(k)<2147483648){J[j+64>>2]=~~k;break Ie}J[j+64>>2]=-2147483648;break Ie}if((e|0)!=1433302086)break re;if((Ac(a)|0)!=592474723)break qe;k=be(a);if(R(k)<2147483648){J[j+12>>2]=~~k;break Ie}J[j+12>>2]=-2147483648;break Ie}if((e|0)!=1433302086)break pe;if((Ac(a)|0)!=592474723)break oe;k=be(a);if(R(k)<2147483648){J[j+332>>2]=~~k;break Ie}J[j+332>>2]=-2147483648;break Ie}if((e|0)!=1651470188)break ne;ma=j,na=me(a),H[ma+324|0]=na;break Ie}if((e|0)!=1331849827)break me;Er(q,a);break Ie}J[j+328>> -2]=-2147483648;break Ie}H[j+8|0]=0}l=l-1|0;if(l)continue;break}}break ie}fa(219520,219630,140,225717);B()}fa(221326,219630,156,225717);B()}fa(221835,219630,162,225717);B()}fa(219520,219630,166,225717);B()}fa(222420,219630,169,225717);B()}fa(222780,219630,176,225717);B()}fa(222780,219630,184,225717);B()}fa(223160,219630,191,225717);B()}fa(223330,219630,194,225717);B()}fa(221835,219630,201,225717);B()}fa(219520,219630,205,225717);B()}fa(223550,219630,208,225717);B()}fa(223160,219630,214,225717);B()}fa(223970, -219630,217,225717);B()}fa(223160,219630,223,225717);B()}fa(223970,219630,226,225717);B()}fa(223160,219630,232,225717);B()}fa(223330,219630,235,225717);B()}fa(223160,219630,242,225717);B()}fa(223330,219630,245,225717);B()}fa(221326,219630,252,225717);B()}fa(222780,219630,258,225717);B()}fa(223160,219630,264,225717);B()}fa(223330,219630,267,225717);B()}fa(224107,219630,273,225717);B()}H[o+3220|0]=1;H[o+3210|0]=1;break Jc}if((l|0)==1399024672)break bd;if((l|0)==1399801449)break Yc;if((l|0)==1700946540)break Zc}fa(221272, -219743,348,224723);B()}if((e|0)!=1433302086)break Wc;if((Ac(a)|0)!=592474723)break Vc;be(a);b=Ac(a);Ue:{if(!b){Ac(a);break Ue}te(a,b)}if((Ac(a)|0)!=1651470188)break Uc;ma=o,na=me(a),H[ma+2|0]=na;b=d-2|0;break Ic}if((e|0)!=1331849827)break Tc;d=0;l=bc-256|0;bc=l;J[m+12>>2]=-16777216;J[m+4>>2]=3;J[m+8>>2]=-16777216;J[m+36>>2]=5;J[m+28>>2]=5;J[m+32>>2]=0;H[m+24|0]=1;J[m+20>>2]=120;H[m+16|0]=191;e=m+40|0;while(1){H[d+e|0]=d;g=d|1;H[g+e|0]=g;g=d|2;H[g+e|0]=g;g=d|3;H[g+e|0]=g;g=d|4;H[g+e|0]=g;g=d|5;H[g+ -e|0]=g;g=d|6;H[g+e|0]=g;g=d|7;H[g+e|0]=g;d=d+8|0;if((d|0)!=256)continue;break}H[m+304|0]=0;J[m+300>>2]=0;H[m+296|0]=0;te(a,Ac(a)<<1);d=Ac(a);Ve:{if(!d){Ac(a);break Ve}te(a,d)}We:{Xe:{g=Ac(a);if(g){q=m+40|0;while(1){Ye:{Ze:{d=Ac(a);if(d){af(a,l,d);H[d+l|0]=0;d=Ac(a);break Ze}e=Ac(a);d=Ac(a);_e:{$e:{af:{bf:{cf:{df:{ef:{ff:{gf:{hf:{jf:{kf:{lf:{mf:{nf:{of:{pf:{qf:{rf:{sf:{tf:{uf:{vf:{wf:{xf:{yf:{zf:{Af:{Bf:{Cf:{Df:{if((e|0)<=1315926884){if((e|0)<=1131180575){if(!e)break Ze;if((e|0)==1097757761)break uf; -if((e|0)!=1131113844)break Df;if((d|0)!=1433302086)break ff;if((Ac(a)|0)!=592476268)break ef;k=be(a);if(!(R(k)<2147483648))break xf;J[m+32>>2]=~~k;break Ye}if((e|0)==1131180576)break Cf;if((e|0)==1148417134)break yf;if((e|0)!=1298407456)break Df;if((d|0)!=1701737837)break rf;if(Ac(a))break qf;if((Ac(a)|0)!=1114402381)break pf;ma=m,na=qm(a),J[ma+4>>2]=na;break Ye}if((e|0)<=1651275121){if((e|0)==1315926885)break vf;if((e|0)==1332765556)break Bf;if((e|0)!=1416785491)break Df;if((d|0)!=1331849827)break _e; -Er(q,a);break Ye}if((e|0)<=1818322795){if((e|0)==1651275122)break wf;if((e|0)!=1701732706)break Df;if((d|0)!=1651470188)break sf;ma=m,na=me(a),H[ma|0]=na;break Ye}if((e|0)==1818322796)break zf;if((e|0)==1969712231)break Af}fa(221833,220626,279,225633);B()}if((d|0)!=1331849827)break of;d=rm(a);J[m+8>>2]=d;J[m+12>>2]=d;break Ye}if((d|0)!=1433302086)break nf;if((Ac(a)|0)!=592474723)break mf;k=be(a)*2.55+.5;if(!(R(k)<2147483648))break tf;H[m+16|0]=~~k;break Ye}if((d|0)!=1651470188)break lf;ma=m,na=me(a), -H[ma+24|0]=na;break Ye}if((d|0)!=1433302086)break kf;if((Ac(a)|0)!=591490663)break jf;k=be(a);if(R(k)<2147483648){J[m+20>>2]=~~k;break Ye}J[m+20>>2]=-2147483648;break Ye}if((d|0)!=1433302086)break hf;if((Ac(a)|0)!=592476268)break gf;k=be(a);if(R(k)<2147483648){J[m+28>>2]=~~k;break Ye}J[m+28>>2]=-2147483648;break Ye}J[m+32>>2]=-2147483648;break Ye}if((d|0)!=1433302086)break df;if((Ac(a)|0)!=592476268)break cf;k=be(a);if(R(k)<2147483648){J[m+36>>2]=~~k;break Ye}J[m+36>>2]=-2147483648;break Ye}if((d| -0)!=1433302086)break bf;if((Ac(a)|0)!=592474723)break af;k=be(a);if(R(k)<2147483648){J[m+300>>2]=~~k;break Ye}J[m+300>>2]=-2147483648;break Ye}if((d|0)!=1651470188)break $e;ma=m,na=me(a),H[ma+296|0]=na;break Ye}H[m+16|0]=0;break Ye}fa(220520,220626,179,225633);B()}fa(222347,220626,185,225633);B()}fa(222701,220626,190,225633);B()}fa(223146,220626,193,225633);B()}fa(223344,220626,200,225633);B()}fa(223535,220626,206,225633);B()}fa(223984,220626,209,225633);B()}fa(220520,220626,216,225633);B()}fa(223535, -220626,222,225633);B()}fa(224214,220626,225,225633);B()}fa(223535,220626,231,225633);B()}fa(224388,220626,234,225633);B()}fa(223535,220626,240,225633);B()}fa(224388,220626,243,225633);B()}fa(223535,220626,249,225633);B()}fa(224388,220626,252,225633);B()}fa(223535,220626,258,225633);B()}fa(223984,220626,261,225633);B()}fa(220520,220626,268,225633);B()}fa(223344,220626,274,225633);B()}if(!Wc(l,218987,14)){if((d|0)!=1651470188)break Xe;ma=m,na=me(a),H[ma+304|0]=na;break Ye}fa(221833,220626,173,225633); -B()}g=g-1|0;if(g)continue;break}}bc=l+256|0;break We}fa(220520,220626,168,225633);B()}H[o+3218|0]=1;H[o+3208|0]=1;break Jc}if((e|0)!=1331849827)break Sc;g=0;J[p+12>>2]=-16777216;J[p+4>>2]=3;J[p+8>>2]=-16777216;J[p+36>>2]=5;J[p+28>>2]=5;J[p+32>>2]=0;H[p+24|0]=1;J[p+20>>2]=120;H[p+16|0]=191;d=p+40|0;while(1){H[d+g|0]=g;e=g|1;H[e+d|0]=e;e=g|2;H[e+d|0]=e;e=g|3;H[e+d|0]=e;e=g|4;H[e+d|0]=e;e=g|5;H[e+d|0]=e;e=g|6;H[e+d|0]=e;e=g|7;H[e+d|0]=e;g=g+8|0;if((g|0)!=256)continue;break}J[p+300>>2]=0;H[p+296|0]=0; -te(a,Ac(a)<<1);d=Ac(a);Ef:{if(!d){Ac(a);break Ef}te(a,d)}Ff:{Gf:{Hf:{If:{Jf:{Kf:{Lf:{Mf:{Nf:{Of:{Pf:{Qf:{Rf:{Sf:{Tf:{Uf:{Vf:{Wf:{Xf:{Yf:{Zf:{_f:{$f:{g=Ac(a);if(g){l=p+40|0;while(1){if(Ac(a))break $f;d=Ac(a);e=Ac(a);ag:{bg:{cg:{dg:{eg:{fg:{gg:{hg:{ig:{jg:{kg:{lg:{if((d|0)<=1332765555){if((d|0)<=1148417133){if((d|0)==1097757761)break dg;if((d|0)==1131113844)break gg;if((d|0)!=1131180576)break Gf;if((e|0)!=1331849827)break Wf;d=rm(a);J[p+8>>2]=d;J[p+12>>2]=d;break ag}if((d|0)==1148417134)break hg;if((d| -0)==1298407456)break lg;if((d|0)!=1315926885)break Gf;if((e|0)!=1433302086)break Kf;if((Ac(a)|0)!=592474723)break Jf;k=be(a);if(!(R(k)<2147483648))break eg;J[p+300>>2]=~~k;break ag}if((d|0)<=1701732705){if((d|0)==1332765556)break kg;if((d|0)==1416785491)break cg;if((d|0)==1651275122)break fg;break Gf}if((d|0)==1969712231)break jg;if((d|0)==1818322796)break ig;if((d|0)!=1701732706)break Gf;if((e|0)!=1651470188)break _f;ma=p,na=me(a),H[ma|0]=na;break ag}if((e|0)!=1701737837)break Zf;if(Ac(a))break Yf; -if((Ac(a)|0)!=1114402381)break Xf;ma=p,na=qm(a),J[ma+4>>2]=na;break ag}if((e|0)!=1433302086)break Vf;if((Ac(a)|0)!=592474723)break Uf;k=be(a)*2.55+.5;if(!(R(k)<2147483648))break bg;H[p+16|0]=~~k;break ag}if((e|0)!=1651470188)break Tf;ma=p,na=me(a),H[ma+24|0]=na;break ag}if((e|0)!=1433302086)break Sf;if((Ac(a)|0)!=591490663)break Rf;k=be(a);if(R(k)<2147483648){J[p+20>>2]=~~k;break ag}J[p+20>>2]=-2147483648;break ag}if((e|0)!=1433302086)break Qf;if((Ac(a)|0)!=592476268)break Pf;k=be(a);if(R(k)<2147483648){J[p+ -28>>2]=~~k;break ag}J[p+28>>2]=-2147483648;break ag}if((e|0)!=1433302086)break Of;if((Ac(a)|0)!=592476268)break Nf;k=be(a);if(R(k)<2147483648){J[p+32>>2]=~~k;break ag}J[p+32>>2]=-2147483648;break ag}if((e|0)!=1433302086)break Mf;if((Ac(a)|0)!=592476268)break Lf;k=be(a);if(R(k)<2147483648){J[p+36>>2]=~~k;break ag}J[p+36>>2]=-2147483648;break ag}J[p+300>>2]=-2147483648;break ag}if((e|0)!=1651470188)break If;ma=p,na=me(a),H[ma+296|0]=na;break ag}if((e|0)!=1331849827)break Hf;Er(l,a);break ag}H[p+16| -0]=0}g=g-1|0;if(g)continue;break}}break Ff}fa(219520,219704,149,225660);B()}fa(221326,219704,165,225660);B()}fa(221835,219704,171,225660);B()}fa(219520,219704,176,225660);B()}fa(222420,219704,179,225660);B()}fa(222780,219704,186,225660);B()}fa(223160,219704,192,225660);B()}fa(223330,219704,195,225660);B()}fa(221326,219704,202,225660);B()}fa(223160,219704,208,225660);B()}fa(223506,219704,211,225660);B()}fa(223160,219704,217,225660);B()}fa(223970,219704,220,225660);B()}fa(223160,219704,226,225660); -B()}fa(223970,219704,229,225660);B()}fa(223160,219704,235,225660);B()}fa(223970,219704,238,225660);B()}fa(223160,219704,244,225660);B()}fa(223330,219704,247,225660);B()}fa(221326,219704,254,225660);B()}fa(222780,219704,260,225660);B()}fa(224107,219704,265,225660);B()}H[o+3219|0]=1;H[o+3209|0]=1;break Jc}if((e|0)!=1331849827)break Qc;g=0;q=bc-256|0;bc=q;J[h+12>>2]=0;J[h+16>>2]=0;H[h+8|0]=191;J[h+4>>2]=7;J[h+64>>2]=0;J[h+68>>2]=5;J[h+56>>2]=0;J[h+60>>2]=1;J[h+20>>2]=-66;J[h+24>>2]=-66;d=h+72|0;while(1){H[d+ -g|0]=g;e=g|1;H[e+d|0]=e;e=g|2;H[e+d|0]=e;e=g|3;H[e+d|0]=e;e=g|4;H[e+d|0]=e;e=g|5;H[e+d|0]=e;e=g|6;H[e+d|0]=e;e=g|7;H[e+d|0]=e;g=g+8|0;if((g|0)!=256)continue;break}J[h+332>>2]=50;J[h+336>>2]=0;H[h+328|0]=0;te(a,Ac(a)<<1);d=Ac(a);mg:{if(!d){Ac(a);break mg}te(a,d)}ng:{og:{pg:{qg:{rg:{sg:{tg:{ug:{vg:{wg:{xg:{yg:{zg:{Ag:{Bg:{Cg:{Dg:{Eg:{Fg:{Gg:{Hg:{Ig:{Jg:{Kg:{Lg:{Mg:{Ng:{Og:{Pg:{Qg:{l=Ac(a);if(l){g=h+28|0;u=h+72|0;while(1){if(Ac(a))break Qg;d=Ac(a);e=Ac(a);Rg:{Sg:{Tg:{Ug:{Vg:{Wg:{Xg:{Yg:{Zg:{_g:{$g:{if((d| -0)<=1315926884){if((d|0)<=1198290771){if((d|0)==1097757761)break Wg;if((d|0)==1131113844)break _g;if((d|0)!=1131180576)break og;if((e|0)!=1331849827)break Lg;d=rm(a);J[h+20>>2]=d;J[h+24>>2]=d;J[h+16>>2]=0;break Rg}if((d|0)<=1231974513){if((d|0)==1198290772)break $g;if((d|0)!=1198678372)break og;if((e|0)!=1331849827)break Kg;Fx(g,a);J[h+16>>2]=1;break Rg}if((d|0)==1231974514)break Tg;if((d|0)!=1298407456)break og;if((e|0)!=1701737837)break Og;if(Ac(a))break Ng;if((Ac(a)|0)!=1114402381)break Mg;ma= -h,na=qm(a),J[ma+4>>2]=na;break Rg}ah:{if((d|0)<=1416785490){if((d|0)==1315926885)break Xg;if((d|0)==1332765556)break ah;if((d|0)!=1399350350)break og;if((e|0)!=1433302086)break Ag;if((Ac(a)|0)!=592474723)break zg;k=be(a);if(!(R(k)<2147483648))break Yg;J[h+336>>2]=~~k;break Rg}if((d|0)<=1701732705){if((d|0)==1416785491)break Ug;if((d|0)==1651275122)break Zg;break og}if((d|0)==1735161683)break Vg;if((d|0)!=1701732706)break og;if((e|0)!=1651470188)break Pg;ma=h,na=me(a),H[ma|0]=na;break Rg}if((e|0)!= -1433302086)break Jg;if((Ac(a)|0)!=592474723)break Ig;k=be(a)*2.55+.5;if(!(R(k)<2147483648))break Sg;H[h+8|0]=~~k;break Rg}if((e|0)!=1701737837)break Hg;if(Ac(a))break Gg;if((Ac(a)|0)!=1111839813)break Fg;ma=h,na=ZM(a),J[ma+56>>2]=na;break Rg}if((e|0)!=1433302086)break Eg;if((Ac(a)|0)!=592476268)break Dg;k=be(a);if(R(k)<2147483648){J[h+64>>2]=~~k;break Rg}J[h+64>>2]=-2147483648;break Rg}if((e|0)!=1433302086)break Cg;if((Ac(a)|0)!=592476268)break Bg;k=be(a);if(R(k)<2147483648){J[h+68>>2]=~~k;break Rg}J[h+ -68>>2]=-2147483648;break Rg}J[h+336>>2]=-2147483648;break Rg}if((e|0)!=1433302086)break yg;if((Ac(a)|0)!=592474723)break xg;k=be(a);if(R(k)<2147483648){J[h+12>>2]=~~k;break Rg}J[h+12>>2]=-2147483648;break Rg}if((e|0)!=1651470188)break wg;ma=h,na=me(a),H[ma+328|0]=na;break Rg}if((e|0)!=1701737837)break vg;if(Ac(a))break ug;if((Ac(a)|0)!=1229411186)break tg;d=Ac(a);if(d){af(a,q,d);H[d+q|0]=0;break pg}bh:switch(Ac(a)-1400005443|0){case 0:J[h+60>>2]=0;break Rg;case 2:break bh;default:break pg}J[h+60>> -2]=1;break Rg}if((e|0)!=1331849827)break sg;Er(u,a);break Rg}if((e|0)!=1433302086)break rg;if((Ac(a)|0)!=592474723)break qg;k=be(a);if(R(k)<2147483648){J[h+332>>2]=~~k;break Rg}J[h+332>>2]=-2147483648;break Rg}H[h+8|0]=0}l=l-1|0;if(l)continue;break}}bc=q+256|0;break ng}fa(219520,219667,147,225743);B()}fa(221326,219667,163,225743);B()}fa(221835,219667,169,225743);B()}fa(219520,219667,173,225743);B()}fa(222420,219667,176,225743);B()}fa(222780,219667,183,225743);B()}fa(222780,219667,191,225743);B()}fa(223160, -219667,198,225743);B()}fa(223330,219667,201,225743);B()}fa(221835,219667,208,225743);B()}fa(219520,219667,212,225743);B()}fa(223550,219667,215,225743);B()}fa(223160,219667,221,225743);B()}fa(223970,219667,224,225743);B()}fa(223160,219667,230,225743);B()}fa(223970,219667,233,225743);B()}fa(223160,219667,239,225743);B()}fa(223330,219667,242,225743);B()}fa(223160,219667,249,225743);B()}fa(223330,219667,252,225743);B()}fa(221326,219667,259,225743);B()}fa(221835,219667,265,225743);B()}fa(219520,219667, -269,225743);B()}fa(224200,219667,272,225743);B()}fa(222780,219667,299,225743);B()}fa(223160,219667,305,225743);B()}fa(223330,219667,308,225743);B()}fa(224309,219667,292,225743);B()}fa(224309,219667,314,225743);B()}H[o+3221|0]=1;H[o+3211|0]=1;break Jc}if((e|0)!=1331849827)break Pc;l=0;e=bc-256|0;bc=e;J[c+4>>2]=1;J[c+8>>2]=2;J[c+36>>2]=30;H[c+32|0]=1;J[c+28>>2]=120;J[c+20>>2]=5;J[c+24>>2]=0;J[c+12>>2]=100;J[c+16>>2]=0;d=c+40|0;while(1){H[d+l|0]=l;g=l|1;H[g+d|0]=g;g=l|2;H[g+d|0]=g;g=l|3;H[g+d|0]=g;g= +586|0]=0;Fc(a);b=Fc(a);sc:{if(b&-3)break sc;ma=d,na=Fc(a),J[ma+28>>2]=na;ma=d,na=Fc(a),J[ma+20>>2]=na;ma=d,na=Fc(a),J[ma+24>>2]=na;if((Fc(a)|0)!=943868237)break sc;ma=d,na=rp(a),J[ma+300>>2]=na;if((Fc(a)|0)!=943868237)break sc;ma=d,na=rp(a),J[ma+316>>2]=na;ma=d,na=Ri(a),J[ma+304>>2]=na;ma=d,na=Ri(a),J[ma+320>>2]=na;ma=d,na=wf(a),J[ma+4>>2]=na;ma=d,na=wf(a),H[ma+312|0]=na;ma=d,na=wf(a),H[ma+328|0]=na;ma=d,na=ue(a),H[ma|0]=na;ma=d,na=ue(a),H[ma+32|0]=na;ma=d,na=wf(a),J[ma+16>>2]=na;if((b|0)!=2)break sc; +ma=d,na=Ri(a),J[ma+308>>2]=na;ma=d,na=Ri(a),J[ma+324>>2]=na}H[h+3227|0]=1;H[h+3217|0]=1;break gc}fa(221288,219759,151,224717);B()}ma=h,na=ue(a),H[ma+2|0]=na;ad(a)}e=e+1|0;if((e|0)>1])continue;break}b=0}break dc}fa(219099,219759,109,224717);B()}break q}e=0;J[((J[f+376>>2]<<2)+f|0)+380>>2]=13;h=-4;tc:{uc:{vc:{b=Dc(112);wc:{if(!b)break wc;b=Ac(b,0,112);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;if((ad(a)|0)!=1)break vc;ma=b,oa=me(a),O[ma>>3]=oa;ma=b,oa=me(a),O[ma+8>>3]=oa;ma=b, +oa=me(a),O[ma+16>>3]=oa;ma=b,oa=me(a),O[ma+24>>3]=oa;ma=b,oa=me(a),O[ma+32>>3]=oa;ma=b,oa=me(a),O[ma+40>>3]=oa;if((ad(a)|0)!=6)break uc;c=ad(a);I[b+48>>1]=c;c=Dc(P(c,788));J[b+52>>2]=c;if(!c)break wc;Ac(c,0,P(I[b+48>>1],788));if(I[b+48>>1]>0)while(1){d=ad(a);c=P(e,788);I[c+J[b+52>>2]>>1]=d;d=Fc(a);J[(c+J[b+52>>2]|0)+4>>2]=d;d=wf(a);gf(a,(c+J[b+52>>2]|0)+8|0,d);d=wf(a);gf(a,(c+J[b+52>>2]|0)+264|0,d);d=wf(a);gf(a,(c+J[b+52>>2]|0)+520|0,d);d=ad(a);I[(c+J[b+52>>2]|0)+776>>1]=d;d=Fc(a);J[(c+J[b+52>>2]| +0)+780>>2]=d;d=Dc(d<<2);i=c+J[b+52>>2]|0;J[i+784>>2]=d;if(!d)break wc;d=0;if(J[i+780>>2]>0)while(1){i=Fc(a);j=c+J[b+52>>2]|0;J[J[j+784>>2]+(d<<2)>>2]=i;d=d+1|0;if((d|0)>2])continue;break}e=e+1|0;if((e|0)>1])continue;break}c=ad(a);I[b+56>>1]=c;c=Dc(P(c,28));J[b+60>>2]=c;if(!c)break wc;e=0;Ac(c,0,P(I[b+56>>1],28));if(I[b+56>>1]>0)while(1){d=ad(a);c=P(e,28);I[c+J[b+60>>2]>>1]=d;d=ad(a);I[(c+J[b+60>>2]|0)+2>>1]=d;d=Fc(a);J[(c+J[b+60>>2]|0)+4>>2]=d;d=Fc(a);J[(c+J[b+60>>2]|0)+8>>2]=d;d= +Fc(a);J[(c+J[b+60>>2]|0)+12>>2]=d;d=Fc(a);J[(c+J[b+60>>2]|0)+16>>2]=d;d=Fc(a);J[(c+J[b+60>>2]|0)+20>>2]=d;d=ue(a);H[(c+J[b+60>>2]|0)+24|0]=d;wf(a);d=ue(a);H[(c+J[b+60>>2]|0)+25|0]=d;e=e+1|0;if((e|0)>1])continue;break}ma=b,na=ad(a),I[ma+64>>1]=na;ma=b,na=Fc(a),J[ma+68>>2]=na;ma=b,na=Fc(a),J[ma+72>>2]=na;ma=b,na=Fc(a),J[ma+76>>2]=na;ma=b,na=Fc(a),J[ma+80>>2]=na;ma=b,na=Fc(a),J[ma+84>>2]=na;ma=b,na=Fc(a),J[ma+88>>2]=na;c=ad(a);I[b+92>>1]=c;c=Dc(P(c,12));J[b+96>>2]=c;if(!c)break wc;e=0;Ac(c,0, +P(I[b+92>>1],12));if(I[b+92>>1]>0)while(1){d=Fc(a);c=P(e,12);J[c+J[b+96>>2]>>2]=d;d=ad(a);I[(c+J[b+96>>2]|0)+4>>1]=d;d=ad(a);I[(c+J[b+96>>2]|0)+6>>1]=d;d=ad(a);I[(c+J[b+96>>2]|0)+8>>1]=d;d=ad(a);I[(c+J[b+96>>2]|0)+10>>1]=d;e=e+1|0;if((e|0)>1])continue;break}ma=b,na=Ri(a),J[ma+100>>2]=na;ma=b,na=ue(a),H[ma+104|0]=na;h=0}b=h;break tc}fa(219267,220075,48,224792);B()}fa(220790,220075,58,224792);B()}break q}ma=f,na=Fc(a),J[ma+556>>2]=na;break o}b=Fc(a);H[f+567|0]=b&1;H[f+569|0]=b>>>2&1;H[f+568| +0]=b>>>1&1;break o}ma=f,na=ue(a),H[ma+584|0]=na;Be(a,3);break o}ma=f,na=ue(a),H[ma+585|0]=na;Be(a,3);break o}ma=f,na=rp(a),J[ma+592>>2]=na;break o}Ac(b,0,J[f+544>>2]<<1);gf(a,J[f+548>>2],J[f+544>>2]<<1);break o}xc:{yc:{zc:{Ac:{Bc:{if((b|0)<=1768842871){if((b|0)<=1752524081){if((b|0)==1719169648)break yc;if((b|0)!=1735550061)break r;d=fc-16|0;fc=d;J[((J[f+376>>2]<<2)+f|0)+380>>2]=11;J[f>>2]=16;c=Dc(1080);b=-4;Cc:{if(!c)break Cc;c=Ac(c,0,1080);J[((J[f+376>>2]<<2)+f|0)+460>>2]=c;J[f+376>>2]=J[f+376>> +2]+1;b=-515;if((ad(a)|0)!=1)break Cc;ma=c,na=ue(a),H[ma|0]=na;ma=c,na=ue(a),H[ma+1|0]=na;b=Fc(a);J[c+4>>2]=b;e=Dc(b<<1);J[c+8>>2]=e;b=-4;if(!e)break Cc;gf(a,e,J[c+4>>2]<<1);b=ad(a);I[c+12>>1]=b;i=Dc(b<<4);J[c+16>>2]=i;b=-4;if(!i)break Cc;e=0;Ac(i,0,I[c+12>>1]<<4);if(I[c+12>>1]>0)while(1){i=Fc(a);b=e<<4;J[b+J[c+16>>2]>>2]=i;i=Fc(a);J[(b+J[c+16>>2]|0)+4>>2]=i;i=Ri(a);J[(b+J[c+16>>2]|0)+8>>2]=i;ad(a);J[(b+J[c+16>>2]|0)+12>>2]=2;e=e+1|0;if((e|0)>1])continue;break}b=ad(a);I[c+20>>1]=b;i=Dc(P(b, +12));J[c+24>>2]=i;b=-4;if(!i)break Cc;e=0;Ac(i,0,P(I[c+20>>1],12));if(I[c+20>>1]>0)while(1){i=Fc(a);b=P(e,12);J[b+J[c+24>>2]>>2]=i;i=Fc(a);J[(b+J[c+24>>2]|0)+4>>2]=i;i=ad(a);I[(b+J[c+24>>2]|0)+8>>1]=i;e=e+1|0;if((e|0)>1])continue;break}b=ad(a);I[c+28>>1]=b;Dc:{if((b|0)<=0)break Dc;ma=c,na=ad(a),I[ma+30>>1]=na;b=ad(a);I[c+32>>1]=b;if((b|0)<32)break Dc;ma=c,na=ad(a),I[ma+34>>1]=na;ma=c,na=Fc(a),J[ma+36>>2]=na;ma=c,na=ad(a),I[ma+40>>1]=na;ma=c,na=ad(a),I[ma+42>>1]=na;ma=c,na=Fc(a),J[ma+44>>2]= +na;b=ad(a);ma=d,na=ad(a)>>>8|0,I[ma+8>>1]=na;ma=d,na=ad(a)>>>8|0,I[ma+10>>1]=na;ma=d,na=ad(a)>>>8|0,I[ma+12>>1]=na;ma=d,na=ad(a)>>>8|0,I[ma+14>>1]=na;e=d+8|0;KE(c+48|0,b,e);ma=d,na=ad(a)>>>8|0,I[ma+8>>1]=na;ma=d,na=ad(a)>>>8|0,I[ma+10>>1]=na;ma=d,na=ad(a)>>>8|0,I[ma+12>>1]=na;ma=d,na=ad(a)>>>8|0,I[ma+14>>1]=na;KE(c+52|0,b,e)}ad(a);H[f+540|0]=1;b=0}fc=d+16|0;break q}if((b|0)==1752524082)break Bc;if((b|0)!=1766813793)break r;ma=f,na=wf(a),H[ma+541|0]=na;Be(a,3);break o}if((b|0)<=1818455153){if((b|0)== +1768842872)break Ac;if((b|0)!=1802398575)break r;ma=f,na=ue(a),H[ma+566|0]=na;Be(a,3);break o}if((b|0)==1818455154)break zc;if((b|0)==1818588780)break xc;if((b|0)!=1818654770)break r;x=fc-256|0;fc=x;J[((J[f+376>>2]<<2)+f|0)+380>>2]=16;Ec:{Fc:{b=Dc(3692);Gc:{if(!b){d=-4;break Gc}o=Ac(b,0,3692);J[((J[f+376>>2]<<2)+f|0)+460>>2]=o;J[f+376>>2]=J[f+376>>2]+1;d=-516;if(Fc(a))break Gc;if((Fc(a)|0)!=16)break Gc;Be(a,Fc(a)<<1);b=Fc(a);Hc:{if(!b){Fc(a);break Hc}Be(a,b)}d=Fc(a);if(d){t=o+2548|0;m=o+4|0;p=o+312| +0;j=o+616|0;h=o+952|0;c=o+1292|0;r=o+2172|0;v=o+2460|0;s=o+2480|0;i=o+2844|0;while(1){b=d-1|0;Ic:{Jc:{Kc:{e=Fc(a);if(e){gf(a,x,e);H[e+x|0]=0;e=Fc(a);break Kc}l=Fc(a);e=Fc(a);Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{Yc:{Zc:{_c:{$c:{ad:{bd:{cd:{if((l|0)<=1232226155){if((l|0)<=1148343143){if(!l)break Kc;if((l|0)!=1130907224)break cd;if((e|0)!=1331849827)break Oc;g=0;l=fc-256|0;fc=l;J[r+24>>2]=14;J[r+16>>2]=19;J[r+20>>2]=11;H[r+12|0]=128;J[r+4>>2]=3;J[r+8>>2]=-16777216;d=r+28|0;while(1){H[d+ +g|0]=g;e=g|1;H[e+d|0]=e;e=g|2;H[e+d|0]=e;e=g|3;H[e+d|0]=e;e=g|4;H[e+d|0]=e;e=g|5;H[e+d|0]=e;e=g|6;H[e+d|0]=e;e=g|7;H[e+d|0]=e;g=g+8|0;if((g|0)!=256)continue;break}I[r+284>>1]=256;Be(a,Fc(a)<<1);d=Fc(a);dd:{if(!d){Fc(a);break dd}Be(a,d)}ed:{fd:{gd:{hd:{id:{jd:{kd:{ld:{md:{nd:{od:{pd:{qd:{rd:{sd:{td:{ud:{vd:{g=Fc(a);if(g){q=r+28|0;while(1){d=Fc(a);if(d){gf(a,l,d);H[d+l|0]=0;Fc(a);break fd}d=Fc(a);e=Fc(a);wd:{xd:{yd:{zd:{Ad:{Bd:{Cd:{Dd:{if((d|0)<=1299212114){if((d|0)<=1148417133){if((d|0)==1097757761)break Dd; +if((d|0)!=1131180576)break fd;if((e|0)!=1331849827)break rd;ma=r,na=hn(a),J[ma+8>>2]=na;break wd}if((d|0)==1148417134)break Ad;if((d|0)==1231976050)break Cd;if((d|0)!=1298407456)break fd;if((e|0)!=1701737837)break ud;if(Fc(a))break td;if((Fc(a)|0)!=1114402381)break sd;ma=r,na=gn(a),J[ma+4>>2]=na;break wd}if((d|0)<=1651275121){if((d|0)==1299212115)break yd;if((d|0)!=1332765556)break fd;if((e|0)!=1433302086)break od;if((Fc(a)|0)!=592474723)break nd;k=me(a)*2.55+.5;if(!(R(k)<2147483648))break xd;H[r+ +12|0]=~~k;break wd}if((d|0)==1651275122)break zd;if((d|0)==1818322796)break Bd;if((d|0)!=1701732706)break fd;if((e|0)!=1651470188)break vd;ma=r,na=ue(a),H[ma|0]=na;break wd}if((e|0)!=1651470188)break qd;ma=r,na=ue(a),H[ma+284|0]=na;break wd}if((e|0)!=1651470188)break pd;ma=r,na=ue(a),H[ma+285|0]=na;break wd}if((e|0)!=1433302086)break md;if((Fc(a)|0)!=591490663)break ld;k=me(a);if(R(k)<2147483648){J[r+16>>2]=~~k;break wd}J[r+16>>2]=-2147483648;break wd}if((e|0)!=1433302086)break kd;if((Fc(a)|0)!=592476268)break jd; +k=me(a);if(R(k)<2147483648){J[r+20>>2]=~~k;break wd}J[r+20>>2]=-2147483648;break wd}if((e|0)!=1433302086)break id;if((Fc(a)|0)!=592476268)break hd;k=me(a);if(R(k)<2147483648){J[r+24>>2]=~~k;break wd}J[r+24>>2]=-2147483648;break wd}if((e|0)!=1331849827)break gd;us(q,a);break wd}H[r+12|0]=0}g=g-1|0;if(g)continue;break}}fc=l+256|0;break ed}fa(219548,220010,99,225813);B()}fa(221327,220010,105,225813);B()}fa(221839,220010,110,225813);B()}fa(222436,220010,113,225813);B()}fa(222796,220010,120,225813);B()}fa(219548, +220010,126,225813);B()}fa(219548,220010,132,225813);B()}fa(223176,220010,138,225813);B()}fa(223346,220010,141,225813);B()}fa(223176,220010,148,225813);B()}fa(223522,220010,151,225813);B()}fa(223176,220010,157,225813);B()}fa(223986,220010,160,225813);B()}fa(223176,220010,166,225813);B()}fa(223986,220010,169,225813);B()}fa(222796,220010,175,225813);B()}fa(224123,220010,180,225813);B()}H[o+3222|0]=1;H[o+3212|0]=1;break Jc}if((l|0)==1148343144)break ad;if((l|0)==1181894232)break Xc;if((l|0)!=1198671468)break cd; +if((e|0)!=1331849827)break Mc;J[s+52>>2]=90;J[s+56>>2]=100;H[s+48|0]=1;J[s+44>>2]=0;H[s+40|0]=0;H[s+8|0]=255;J[s+4>>2]=0;Be(a,Fc(a)<<1);d=Fc(a);Ed:{if(!d){Fc(a);break Ed}Be(a,d)}Fd:{Gd:{Hd:{Id:{Jd:{Kd:{Ld:{Md:{Nd:{Od:{Pd:{Qd:{Rd:{Sd:{Td:{Ud:{Vd:{Wd:{Xd:{Yd:{l=Fc(a);if(l){g=s+12|0;q=s- -64|0;u=s+60|0;while(1){if(Fc(a))break Yd;d=Fc(a);e=Fc(a);Zd:{_d:{$d:{ae:{be:{ce:{de:{ee:{fe:{ge:{if((d|0)<=1332765555){if((d|0)<=1198678371){if((d|0)==1097623406)break ae;if((d|0)!=1097754476)break Gd;if((e|0)!=1433302086)break Qd; +if((Fc(a)|0)!=591490663)break Pd;k=me(a);if(!(R(k)<2147483648))break de;J[s+52>>2]=~~k;break Zd}if((d|0)==1198678372)break ee;if((d|0)==1298407456)break ge;if((d|0)!=1332114292)break Gd;if((e|0)!=1331849827)break Hd;vy(u,q,a);break Zd}if((d|0)<=1399024671){if((d|0)==1332765556)break fe;if((d|0)==1383494259)break be;break Gd}if((d|0)==1399024672)break $d;if((d|0)==1417244773)break ce;if((d|0)!=1701732706)break Gd;if((e|0)!=1651470188)break Xd;ma=s,na=ue(a),H[ma|0]=na;break Zd}if((e|0)!=1701737837)break Wd; +if(Fc(a))break Vd;if((Fc(a)|0)!=1114402381)break Ud;ma=s,na=gn(a),J[ma+4>>2]=na;break Zd}if((e|0)!=1433302086)break Td;if((Fc(a)|0)!=592474723)break Sd;k=me(a)*2.55+.5;if(!(R(k)<2147483648))break _d;H[s+8|0]=~~k;break Zd}if((e|0)!=1331849827)break Rd;wy(g,a);break Zd}J[s+52>>2]=-2147483648;break Zd}if((e|0)!=1701737837)break Od;if(Fc(a))break Nd;if((Fc(a)|0)!=1198679124)break Md;ma=s,na=qO(a),J[ma+44>>2]=na;break Zd}if((e|0)!=1651470188)break Ld;ma=s,na=ue(a),H[ma+40|0]=na;break Zd}if((e|0)!=1651470188)break Kd; +ma=s,na=ue(a),H[ma+48|0]=na;break Zd}if((e|0)!=1433302086)break Jd;if((Fc(a)|0)!=592474723)break Id;k=me(a);if(R(k)<2147483648){J[s+56>>2]=~~k;break Zd}J[s+56>>2]=-2147483648;break Zd}H[s+8|0]=0}l=l-1|0;if(l)continue;break}}break Fd}fa(219536,219563,76,225834);B()}fa(221342,219563,92,225834);B()}fa(221851,219563,98,225834);B()}fa(219536,219563,103,225834);B()}fa(222436,219563,106,225834);B()}fa(222811,219563,112,225834);B()}fa(223134,219563,115,225834);B()}fa(223360,219563,123,225834);B()}fa(222811, +219563,129,225834);B()}fa(223522,219563,133,225834);B()}fa(221851,219563,141,225834);B()}fa(219536,219563,146,225834);B()}fa(224029,219563,149,225834);B()}fa(221342,219563,155,225834);B()}fa(221342,219563,161,225834);B()}fa(222811,219563,167,225834);B()}fa(223134,219563,171,225834);B()}fa(223360,219563,179,225834);B()}fa(224123,219563,185,225834);B()}H[o+3224|0]=1;H[o+3214|0]=1;break Jc}if((l|0)<=1399024671){if((l|0)==1232226156)break _c;if((l|0)==1232229224)break $c;if((l|0)!=1332889452)break cd; +if((e|0)!=1331849827)break Rc;g=0;J[j+12>>2]=0;J[j+16>>2]=0;H[j+8|0]=191;J[j+4>>2]=7;J[j+64>>2]=5;J[j+56>>2]=0;J[j+60>>2]=0;J[j+20>>2]=-66;J[j+24>>2]=-66;d=j+68|0;while(1){H[d+g|0]=g;e=g|1;H[e+d|0]=e;e=g|2;H[e+d|0]=e;e=g|3;H[e+d|0]=e;e=g|4;H[e+d|0]=e;e=g|5;H[e+d|0]=e;e=g|6;H[e+d|0]=e;e=g|7;H[e+d|0]=e;g=g+8|0;if((g|0)!=256)continue;break}J[j+328>>2]=50;J[j+332>>2]=0;H[j+324|0]=0;Be(a,Fc(a)<<1);d=Fc(a);he:{if(!d){Fc(a);break he}Be(a,d)}ie:{je:{ke:{le:{me:{ne:{oe:{pe:{qe:{re:{se:{te:{ue:{ve:{we:{xe:{ye:{ze:{Ae:{Be:{Ce:{De:{Ee:{Fe:{Ge:{He:{l= +Fc(a);if(l){g=j+28|0;q=j+68|0;while(1){if(Fc(a))break He;d=Fc(a);e=Fc(a);Ie:{Je:{Ke:{Le:{Me:{Ne:{Oe:{Pe:{Qe:{Re:{Se:{if((d|0)<=1298407455){if((d|0)<=1198290771){if((d|0)==1097757761)break Me;if((d|0)==1131113844)break Qe;if((d|0)!=1131180576)break je;if((e|0)!=1331849827)break Ce;d=hn(a);J[j+20>>2]=d;J[j+24>>2]=d;J[j+16>>2]=0;break Ie}if((d|0)==1198290772)break Re;if((d|0)==1198678372)break Se;if((d|0)!=1231974514)break je;if((e|0)!=1433302086)break le;if((Fc(a)|0)!=592474723)break ke;k=me(a);if(!(R(k)< +2147483648))break Ke;J[j+328>>2]=~~k;break Ie}Te:{if((d|0)<=1399350349){if((d|0)==1298407456)break Te;if((d|0)==1315926885)break Oe;if((d|0)!=1332765556)break je;if((e|0)!=1433302086)break Ae;if((Fc(a)|0)!=592474723)break ze;k=me(a)*2.55+.5;if(!(R(k)<2147483648))break Je;H[j+8|0]=~~k;break Ie}if((d|0)<=1651275121){if((d|0)==1399350350)break Ne;if((d|0)==1416785491)break Le;break je}if((d|0)==1651275122)break Pe;if((d|0)!=1701732706)break je;if((e|0)!=1651470188)break Ge;ma=j,na=ue(a),H[ma|0]=na;break Ie}if((e| +0)!=1701737837)break Fe;if(Fc(a))break Ee;if((Fc(a)|0)!=1114402381)break De;ma=j,na=gn(a),J[ma+4>>2]=na;break Ie}if((e|0)!=1331849827)break Be;wy(g,a);J[j+16>>2]=1;break Ie}if((e|0)!=1701737837)break ye;if(Fc(a))break xe;if((Fc(a)|0)!=1111839813)break we;ma=j,na=rO(a),J[ma+56>>2]=na;break Ie}if((e|0)!=1433302086)break ve;if((Fc(a)|0)!=592476268)break ue;k=me(a);if(R(k)<2147483648){J[j+60>>2]=~~k;break Ie}J[j+60>>2]=-2147483648;break Ie}if((e|0)!=1433302086)break te;if((Fc(a)|0)!=592476268)break se; +k=me(a);if(R(k)<2147483648){J[j+64>>2]=~~k;break Ie}J[j+64>>2]=-2147483648;break Ie}if((e|0)!=1433302086)break re;if((Fc(a)|0)!=592474723)break qe;k=me(a);if(R(k)<2147483648){J[j+12>>2]=~~k;break Ie}J[j+12>>2]=-2147483648;break Ie}if((e|0)!=1433302086)break pe;if((Fc(a)|0)!=592474723)break oe;k=me(a);if(R(k)<2147483648){J[j+332>>2]=~~k;break Ie}J[j+332>>2]=-2147483648;break Ie}if((e|0)!=1651470188)break ne;ma=j,na=ue(a),H[ma+324|0]=na;break Ie}if((e|0)!=1331849827)break me;us(q,a);break Ie}J[j+328>> +2]=-2147483648;break Ie}H[j+8|0]=0}l=l-1|0;if(l)continue;break}}break ie}fa(219536,219646,140,225733);B()}fa(221342,219646,156,225733);B()}fa(221851,219646,162,225733);B()}fa(219536,219646,166,225733);B()}fa(222436,219646,169,225733);B()}fa(222796,219646,176,225733);B()}fa(222796,219646,184,225733);B()}fa(223176,219646,191,225733);B()}fa(223346,219646,194,225733);B()}fa(221851,219646,201,225733);B()}fa(219536,219646,205,225733);B()}fa(223566,219646,208,225733);B()}fa(223176,219646,214,225733);B()}fa(223986, +219646,217,225733);B()}fa(223176,219646,223,225733);B()}fa(223986,219646,226,225733);B()}fa(223176,219646,232,225733);B()}fa(223346,219646,235,225733);B()}fa(223176,219646,242,225733);B()}fa(223346,219646,245,225733);B()}fa(221342,219646,252,225733);B()}fa(222796,219646,258,225733);B()}fa(223176,219646,264,225733);B()}fa(223346,219646,267,225733);B()}fa(224123,219646,273,225733);B()}H[o+3220|0]=1;H[o+3210|0]=1;break Jc}if((l|0)==1399024672)break bd;if((l|0)==1399801449)break Yc;if((l|0)==1700946540)break Zc}fa(221288, +219759,348,224739);B()}if((e|0)!=1433302086)break Wc;if((Fc(a)|0)!=592474723)break Vc;me(a);b=Fc(a);Ue:{if(!b){Fc(a);break Ue}Be(a,b)}if((Fc(a)|0)!=1651470188)break Uc;ma=o,na=ue(a),H[ma+2|0]=na;b=d-2|0;break Ic}if((e|0)!=1331849827)break Tc;d=0;l=fc-256|0;fc=l;J[m+12>>2]=-16777216;J[m+4>>2]=3;J[m+8>>2]=-16777216;J[m+36>>2]=5;J[m+28>>2]=5;J[m+32>>2]=0;H[m+24|0]=1;J[m+20>>2]=120;H[m+16|0]=191;e=m+40|0;while(1){H[d+e|0]=d;g=d|1;H[g+e|0]=g;g=d|2;H[g+e|0]=g;g=d|3;H[g+e|0]=g;g=d|4;H[g+e|0]=g;g=d|5;H[g+ +e|0]=g;g=d|6;H[g+e|0]=g;g=d|7;H[g+e|0]=g;d=d+8|0;if((d|0)!=256)continue;break}H[m+304|0]=0;J[m+300>>2]=0;H[m+296|0]=0;Be(a,Fc(a)<<1);d=Fc(a);Ve:{if(!d){Fc(a);break Ve}Be(a,d)}We:{Xe:{g=Fc(a);if(g){q=m+40|0;while(1){Ye:{Ze:{d=Fc(a);if(d){gf(a,l,d);H[d+l|0]=0;d=Fc(a);break Ze}e=Fc(a);d=Fc(a);_e:{$e:{af:{bf:{cf:{df:{ef:{ff:{gf:{hf:{jf:{kf:{lf:{mf:{nf:{of:{pf:{qf:{rf:{sf:{tf:{uf:{vf:{wf:{xf:{yf:{zf:{Af:{Bf:{Cf:{Df:{if((e|0)<=1315926884){if((e|0)<=1131180575){if(!e)break Ze;if((e|0)==1097757761)break uf; +if((e|0)!=1131113844)break Df;if((d|0)!=1433302086)break ff;if((Fc(a)|0)!=592476268)break ef;k=me(a);if(!(R(k)<2147483648))break xf;J[m+32>>2]=~~k;break Ye}if((e|0)==1131180576)break Cf;if((e|0)==1148417134)break yf;if((e|0)!=1298407456)break Df;if((d|0)!=1701737837)break rf;if(Fc(a))break qf;if((Fc(a)|0)!=1114402381)break pf;ma=m,na=gn(a),J[ma+4>>2]=na;break Ye}if((e|0)<=1651275121){if((e|0)==1315926885)break vf;if((e|0)==1332765556)break Bf;if((e|0)!=1416785491)break Df;if((d|0)!=1331849827)break _e; +us(q,a);break Ye}if((e|0)<=1818322795){if((e|0)==1651275122)break wf;if((e|0)!=1701732706)break Df;if((d|0)!=1651470188)break sf;ma=m,na=ue(a),H[ma|0]=na;break Ye}if((e|0)==1818322796)break zf;if((e|0)==1969712231)break Af}fa(221849,220642,279,225649);B()}if((d|0)!=1331849827)break of;d=hn(a);J[m+8>>2]=d;J[m+12>>2]=d;break Ye}if((d|0)!=1433302086)break nf;if((Fc(a)|0)!=592474723)break mf;k=me(a)*2.55+.5;if(!(R(k)<2147483648))break tf;H[m+16|0]=~~k;break Ye}if((d|0)!=1651470188)break lf;ma=m,na=ue(a), +H[ma+24|0]=na;break Ye}if((d|0)!=1433302086)break kf;if((Fc(a)|0)!=591490663)break jf;k=me(a);if(R(k)<2147483648){J[m+20>>2]=~~k;break Ye}J[m+20>>2]=-2147483648;break Ye}if((d|0)!=1433302086)break hf;if((Fc(a)|0)!=592476268)break gf;k=me(a);if(R(k)<2147483648){J[m+28>>2]=~~k;break Ye}J[m+28>>2]=-2147483648;break Ye}J[m+32>>2]=-2147483648;break Ye}if((d|0)!=1433302086)break df;if((Fc(a)|0)!=592476268)break cf;k=me(a);if(R(k)<2147483648){J[m+36>>2]=~~k;break Ye}J[m+36>>2]=-2147483648;break Ye}if((d| +0)!=1433302086)break bf;if((Fc(a)|0)!=592474723)break af;k=me(a);if(R(k)<2147483648){J[m+300>>2]=~~k;break Ye}J[m+300>>2]=-2147483648;break Ye}if((d|0)!=1651470188)break $e;ma=m,na=ue(a),H[ma+296|0]=na;break Ye}H[m+16|0]=0;break Ye}fa(220536,220642,179,225649);B()}fa(222363,220642,185,225649);B()}fa(222717,220642,190,225649);B()}fa(223162,220642,193,225649);B()}fa(223360,220642,200,225649);B()}fa(223551,220642,206,225649);B()}fa(224E3,220642,209,225649);B()}fa(220536,220642,216,225649);B()}fa(223551, +220642,222,225649);B()}fa(224230,220642,225,225649);B()}fa(223551,220642,231,225649);B()}fa(224404,220642,234,225649);B()}fa(223551,220642,240,225649);B()}fa(224404,220642,243,225649);B()}fa(223551,220642,249,225649);B()}fa(224404,220642,252,225649);B()}fa(223551,220642,258,225649);B()}fa(224E3,220642,261,225649);B()}fa(220536,220642,268,225649);B()}fa(223360,220642,274,225649);B()}if(!dd(l,219003,14)){if((d|0)!=1651470188)break Xe;ma=m,na=ue(a),H[ma+304|0]=na;break Ye}fa(221849,220642,173,225649); +B()}g=g-1|0;if(g)continue;break}}fc=l+256|0;break We}fa(220536,220642,168,225649);B()}H[o+3218|0]=1;H[o+3208|0]=1;break Jc}if((e|0)!=1331849827)break Sc;g=0;J[p+12>>2]=-16777216;J[p+4>>2]=3;J[p+8>>2]=-16777216;J[p+36>>2]=5;J[p+28>>2]=5;J[p+32>>2]=0;H[p+24|0]=1;J[p+20>>2]=120;H[p+16|0]=191;d=p+40|0;while(1){H[d+g|0]=g;e=g|1;H[e+d|0]=e;e=g|2;H[e+d|0]=e;e=g|3;H[e+d|0]=e;e=g|4;H[e+d|0]=e;e=g|5;H[e+d|0]=e;e=g|6;H[e+d|0]=e;e=g|7;H[e+d|0]=e;g=g+8|0;if((g|0)!=256)continue;break}J[p+300>>2]=0;H[p+296|0]=0; +Be(a,Fc(a)<<1);d=Fc(a);Ef:{if(!d){Fc(a);break Ef}Be(a,d)}Ff:{Gf:{Hf:{If:{Jf:{Kf:{Lf:{Mf:{Nf:{Of:{Pf:{Qf:{Rf:{Sf:{Tf:{Uf:{Vf:{Wf:{Xf:{Yf:{Zf:{_f:{$f:{g=Fc(a);if(g){l=p+40|0;while(1){if(Fc(a))break $f;d=Fc(a);e=Fc(a);ag:{bg:{cg:{dg:{eg:{fg:{gg:{hg:{ig:{jg:{kg:{lg:{if((d|0)<=1332765555){if((d|0)<=1148417133){if((d|0)==1097757761)break dg;if((d|0)==1131113844)break gg;if((d|0)!=1131180576)break Gf;if((e|0)!=1331849827)break Wf;d=hn(a);J[p+8>>2]=d;J[p+12>>2]=d;break ag}if((d|0)==1148417134)break hg;if((d| +0)==1298407456)break lg;if((d|0)!=1315926885)break Gf;if((e|0)!=1433302086)break Kf;if((Fc(a)|0)!=592474723)break Jf;k=me(a);if(!(R(k)<2147483648))break eg;J[p+300>>2]=~~k;break ag}if((d|0)<=1701732705){if((d|0)==1332765556)break kg;if((d|0)==1416785491)break cg;if((d|0)==1651275122)break fg;break Gf}if((d|0)==1969712231)break jg;if((d|0)==1818322796)break ig;if((d|0)!=1701732706)break Gf;if((e|0)!=1651470188)break _f;ma=p,na=ue(a),H[ma|0]=na;break ag}if((e|0)!=1701737837)break Zf;if(Fc(a))break Yf; +if((Fc(a)|0)!=1114402381)break Xf;ma=p,na=gn(a),J[ma+4>>2]=na;break ag}if((e|0)!=1433302086)break Vf;if((Fc(a)|0)!=592474723)break Uf;k=me(a)*2.55+.5;if(!(R(k)<2147483648))break bg;H[p+16|0]=~~k;break ag}if((e|0)!=1651470188)break Tf;ma=p,na=ue(a),H[ma+24|0]=na;break ag}if((e|0)!=1433302086)break Sf;if((Fc(a)|0)!=591490663)break Rf;k=me(a);if(R(k)<2147483648){J[p+20>>2]=~~k;break ag}J[p+20>>2]=-2147483648;break ag}if((e|0)!=1433302086)break Qf;if((Fc(a)|0)!=592476268)break Pf;k=me(a);if(R(k)<2147483648){J[p+ +28>>2]=~~k;break ag}J[p+28>>2]=-2147483648;break ag}if((e|0)!=1433302086)break Of;if((Fc(a)|0)!=592476268)break Nf;k=me(a);if(R(k)<2147483648){J[p+32>>2]=~~k;break ag}J[p+32>>2]=-2147483648;break ag}if((e|0)!=1433302086)break Mf;if((Fc(a)|0)!=592476268)break Lf;k=me(a);if(R(k)<2147483648){J[p+36>>2]=~~k;break ag}J[p+36>>2]=-2147483648;break ag}J[p+300>>2]=-2147483648;break ag}if((e|0)!=1651470188)break If;ma=p,na=ue(a),H[ma+296|0]=na;break ag}if((e|0)!=1331849827)break Hf;us(l,a);break ag}H[p+16| +0]=0}g=g-1|0;if(g)continue;break}}break Ff}fa(219536,219720,149,225676);B()}fa(221342,219720,165,225676);B()}fa(221851,219720,171,225676);B()}fa(219536,219720,176,225676);B()}fa(222436,219720,179,225676);B()}fa(222796,219720,186,225676);B()}fa(223176,219720,192,225676);B()}fa(223346,219720,195,225676);B()}fa(221342,219720,202,225676);B()}fa(223176,219720,208,225676);B()}fa(223522,219720,211,225676);B()}fa(223176,219720,217,225676);B()}fa(223986,219720,220,225676);B()}fa(223176,219720,226,225676); +B()}fa(223986,219720,229,225676);B()}fa(223176,219720,235,225676);B()}fa(223986,219720,238,225676);B()}fa(223176,219720,244,225676);B()}fa(223346,219720,247,225676);B()}fa(221342,219720,254,225676);B()}fa(222796,219720,260,225676);B()}fa(224123,219720,265,225676);B()}H[o+3219|0]=1;H[o+3209|0]=1;break Jc}if((e|0)!=1331849827)break Qc;g=0;q=fc-256|0;fc=q;J[h+12>>2]=0;J[h+16>>2]=0;H[h+8|0]=191;J[h+4>>2]=7;J[h+64>>2]=0;J[h+68>>2]=5;J[h+56>>2]=0;J[h+60>>2]=1;J[h+20>>2]=-66;J[h+24>>2]=-66;d=h+72|0;while(1){H[d+ +g|0]=g;e=g|1;H[e+d|0]=e;e=g|2;H[e+d|0]=e;e=g|3;H[e+d|0]=e;e=g|4;H[e+d|0]=e;e=g|5;H[e+d|0]=e;e=g|6;H[e+d|0]=e;e=g|7;H[e+d|0]=e;g=g+8|0;if((g|0)!=256)continue;break}J[h+332>>2]=50;J[h+336>>2]=0;H[h+328|0]=0;Be(a,Fc(a)<<1);d=Fc(a);mg:{if(!d){Fc(a);break mg}Be(a,d)}ng:{og:{pg:{qg:{rg:{sg:{tg:{ug:{vg:{wg:{xg:{yg:{zg:{Ag:{Bg:{Cg:{Dg:{Eg:{Fg:{Gg:{Hg:{Ig:{Jg:{Kg:{Lg:{Mg:{Ng:{Og:{Pg:{Qg:{l=Fc(a);if(l){g=h+28|0;u=h+72|0;while(1){if(Fc(a))break Qg;d=Fc(a);e=Fc(a);Rg:{Sg:{Tg:{Ug:{Vg:{Wg:{Xg:{Yg:{Zg:{_g:{$g:{if((d| +0)<=1315926884){if((d|0)<=1198290771){if((d|0)==1097757761)break Wg;if((d|0)==1131113844)break _g;if((d|0)!=1131180576)break og;if((e|0)!=1331849827)break Lg;d=hn(a);J[h+20>>2]=d;J[h+24>>2]=d;J[h+16>>2]=0;break Rg}if((d|0)<=1231974513){if((d|0)==1198290772)break $g;if((d|0)!=1198678372)break og;if((e|0)!=1331849827)break Kg;wy(g,a);J[h+16>>2]=1;break Rg}if((d|0)==1231974514)break Tg;if((d|0)!=1298407456)break og;if((e|0)!=1701737837)break Og;if(Fc(a))break Ng;if((Fc(a)|0)!=1114402381)break Mg;ma= +h,na=gn(a),J[ma+4>>2]=na;break Rg}ah:{if((d|0)<=1416785490){if((d|0)==1315926885)break Xg;if((d|0)==1332765556)break ah;if((d|0)!=1399350350)break og;if((e|0)!=1433302086)break Ag;if((Fc(a)|0)!=592474723)break zg;k=me(a);if(!(R(k)<2147483648))break Yg;J[h+336>>2]=~~k;break Rg}if((d|0)<=1701732705){if((d|0)==1416785491)break Ug;if((d|0)==1651275122)break Zg;break og}if((d|0)==1735161683)break Vg;if((d|0)!=1701732706)break og;if((e|0)!=1651470188)break Pg;ma=h,na=ue(a),H[ma|0]=na;break Rg}if((e|0)!= +1433302086)break Jg;if((Fc(a)|0)!=592474723)break Ig;k=me(a)*2.55+.5;if(!(R(k)<2147483648))break Sg;H[h+8|0]=~~k;break Rg}if((e|0)!=1701737837)break Hg;if(Fc(a))break Gg;if((Fc(a)|0)!=1111839813)break Fg;ma=h,na=rO(a),J[ma+56>>2]=na;break Rg}if((e|0)!=1433302086)break Eg;if((Fc(a)|0)!=592476268)break Dg;k=me(a);if(R(k)<2147483648){J[h+64>>2]=~~k;break Rg}J[h+64>>2]=-2147483648;break Rg}if((e|0)!=1433302086)break Cg;if((Fc(a)|0)!=592476268)break Bg;k=me(a);if(R(k)<2147483648){J[h+68>>2]=~~k;break Rg}J[h+ +68>>2]=-2147483648;break Rg}J[h+336>>2]=-2147483648;break Rg}if((e|0)!=1433302086)break yg;if((Fc(a)|0)!=592474723)break xg;k=me(a);if(R(k)<2147483648){J[h+12>>2]=~~k;break Rg}J[h+12>>2]=-2147483648;break Rg}if((e|0)!=1651470188)break wg;ma=h,na=ue(a),H[ma+328|0]=na;break Rg}if((e|0)!=1701737837)break vg;if(Fc(a))break ug;if((Fc(a)|0)!=1229411186)break tg;d=Fc(a);if(d){gf(a,q,d);H[d+q|0]=0;break pg}bh:switch(Fc(a)-1400005443|0){case 0:J[h+60>>2]=0;break Rg;case 2:break bh;default:break pg}J[h+60>> +2]=1;break Rg}if((e|0)!=1331849827)break sg;us(u,a);break Rg}if((e|0)!=1433302086)break rg;if((Fc(a)|0)!=592474723)break qg;k=me(a);if(R(k)<2147483648){J[h+332>>2]=~~k;break Rg}J[h+332>>2]=-2147483648;break Rg}H[h+8|0]=0}l=l-1|0;if(l)continue;break}}fc=q+256|0;break ng}fa(219536,219683,147,225759);B()}fa(221342,219683,163,225759);B()}fa(221851,219683,169,225759);B()}fa(219536,219683,173,225759);B()}fa(222436,219683,176,225759);B()}fa(222796,219683,183,225759);B()}fa(222796,219683,191,225759);B()}fa(223176, +219683,198,225759);B()}fa(223346,219683,201,225759);B()}fa(221851,219683,208,225759);B()}fa(219536,219683,212,225759);B()}fa(223566,219683,215,225759);B()}fa(223176,219683,221,225759);B()}fa(223986,219683,224,225759);B()}fa(223176,219683,230,225759);B()}fa(223986,219683,233,225759);B()}fa(223176,219683,239,225759);B()}fa(223346,219683,242,225759);B()}fa(223176,219683,249,225759);B()}fa(223346,219683,252,225759);B()}fa(221342,219683,259,225759);B()}fa(221851,219683,265,225759);B()}fa(219536,219683, +269,225759);B()}fa(224216,219683,272,225759);B()}fa(222796,219683,299,225759);B()}fa(223176,219683,305,225759);B()}fa(223346,219683,308,225759);B()}fa(224325,219683,292,225759);B()}fa(224325,219683,314,225759);B()}H[o+3221|0]=1;H[o+3211|0]=1;break Jc}if((e|0)!=1331849827)break Pc;l=0;e=fc-256|0;fc=e;J[c+4>>2]=1;J[c+8>>2]=2;J[c+36>>2]=30;H[c+32|0]=1;J[c+28>>2]=120;J[c+20>>2]=5;J[c+24>>2]=0;J[c+12>>2]=100;J[c+16>>2]=0;d=c+40|0;while(1){H[d+l|0]=l;g=l|1;H[g+d|0]=g;g=l|2;H[g+d|0]=g;g=l|3;H[g+d|0]=g;g= l|4;H[g+d|0]=g;g=l|5;H[g+d|0]=g;g=l|6;H[g+d|0]=g;g=l|7;H[g+d|0]=g;l=l+8|0;if((l|0)!=256)continue;break}J[c+308>>2]=-1;l=0;H[c+296|0]=0;J[c+324>>2]=-16777216;H[c+312|0]=191;J[c+300>>2]=7;J[c+304>>2]=-1;I[c+328>>1]=191;J[c+316>>2]=7;J[c+320>>2]=-16777216;d=c+330|0;while(1){H[d+l|0]=l;g=l|1;H[g+d|0]=g;g=l|2;H[g+d|0]=g;g=l|3;H[g+d|0]=g;g=l|4;H[g+d|0]=g;g=l|5;H[g+d|0]=g;g=l|6;H[g+d|0]=g;g=l|7;H[g+d|0]=g;l=l+8|0;if((l|0)!=256)continue;break}I[c+868>>1]=256;J[c+860>>2]=100;J[c+864>>2]=100;H[c+592|0]=0;J[c+ -588>>2]=50;H[c+586|0]=0;te(a,Ac(a)<<1);d=Ac(a);ch:{if(!d){Ac(a);break ch}te(a,d)}dh:{eh:{fh:{gh:{hh:{ih:{jh:{g=Ac(a);if(g){q=c+876|0;u=c+872|0;y=c+40|0;C=c+330|0;D=c+596|0;while(1){kh:{lh:{d=Ac(a);if(d){af(a,e,d);H[d+e|0]=0;l=Ac(a);break lh}d=Ac(a);l=Ac(a);mh:{nh:{oh:{ph:{qh:{rh:{sh:{th:{uh:{vh:{wh:{xh:{yh:{zh:{Ah:{Bh:{Ch:{Dh:{Eh:{Fh:{Gh:{Hh:{Ih:{Jh:{Kh:{Lh:{Mh:{Nh:{Oh:{Ph:{Qh:{Rh:{Sh:{Th:{Uh:{Vh:{Wh:{Xh:{Yh:{Zh:{_h:{$h:{ai:{bi:{ci:{di:{ei:{fi:{gi:{hi:{ii:{ji:{ki:{li:{mi:{ni:{oi:{pi:{qi:{if((d|0)<= -1651928131){if((d|0)<=1299212114){if((d|0)<=1231974513){if(!d)break lh;if((d|0)==1097623406)break hi;if((d|0)!=1097757761)break di;if((l|0)!=1651470188)break wh;ma=c,na=me(a),H[ma+586|0]=na;break kh}if((d|0)==1231974514)break ji;if((d|0)==1231976020)break ii;if((d|0)!=1281453156)break di;if((l|0)!=1433302086)break Jh;if((Ac(a)|0)!=591490663)break Ih;k=be(a);if(!(R(k)<2147483648))break qi;J[c+36>>2]=~~k;break kh}if((d|0)<=1399223405){if((d|0)==1299212115)break ki;if((d|0)==1349808750)break fi;if((d| -0)!=1399024672)break di;if((l|0)!=1433302086)break rh;if((Ac(a)|0)!=592474723)break qh;k=be(a);if(!(R(k)<2147483648))break gi;J[c+860>>2]=~~k;break kh}if((d|0)==1399223406)break li;if((d|0)==1416785491)break mi;if((d|0)!=1651275122)break di;if((l|0)!=1433302086)break Fh;if((Ac(a)|0)!=592476268)break Eh;k=be(a);if(!(R(k)<2147483648))break oi;J[c+20>>2]=~~k;break kh}ri:{si:{ti:{ui:{vi:{wi:{xi:{yi:{zi:{if((d|0)<=1818322795){Ai:switch(d-1651928132|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break di; +588>>2]=50;H[c+586|0]=0;Be(a,Fc(a)<<1);d=Fc(a);ch:{if(!d){Fc(a);break ch}Be(a,d)}dh:{eh:{fh:{gh:{hh:{ih:{jh:{g=Fc(a);if(g){q=c+876|0;u=c+872|0;y=c+40|0;C=c+330|0;D=c+596|0;while(1){kh:{lh:{d=Fc(a);if(d){gf(a,e,d);H[d+e|0]=0;l=Fc(a);break lh}d=Fc(a);l=Fc(a);mh:{nh:{oh:{ph:{qh:{rh:{sh:{th:{uh:{vh:{wh:{xh:{yh:{zh:{Ah:{Bh:{Ch:{Dh:{Eh:{Fh:{Gh:{Hh:{Ih:{Jh:{Kh:{Lh:{Mh:{Nh:{Oh:{Ph:{Qh:{Rh:{Sh:{Th:{Uh:{Vh:{Wh:{Xh:{Yh:{Zh:{_h:{$h:{ai:{bi:{ci:{di:{ei:{fi:{gi:{hi:{ii:{ji:{ki:{li:{mi:{ni:{oi:{pi:{qi:{if((d|0)<= +1651928131){if((d|0)<=1299212114){if((d|0)<=1231974513){if(!d)break lh;if((d|0)==1097623406)break hi;if((d|0)!=1097757761)break di;if((l|0)!=1651470188)break wh;ma=c,na=ue(a),H[ma+586|0]=na;break kh}if((d|0)==1231974514)break ji;if((d|0)==1231976020)break ii;if((d|0)!=1281453156)break di;if((l|0)!=1433302086)break Jh;if((Fc(a)|0)!=591490663)break Ih;k=me(a);if(!(R(k)<2147483648))break qi;J[c+36>>2]=~~k;break kh}if((d|0)<=1399223405){if((d|0)==1299212115)break ki;if((d|0)==1349808750)break fi;if((d| +0)!=1399024672)break di;if((l|0)!=1433302086)break rh;if((Fc(a)|0)!=592474723)break qh;k=me(a);if(!(R(k)<2147483648))break gi;J[c+860>>2]=~~k;break kh}if((d|0)==1399223406)break li;if((d|0)==1416785491)break mi;if((d|0)!=1651275122)break di;if((l|0)!=1433302086)break Fh;if((Fc(a)|0)!=592476268)break Eh;k=me(a);if(!(R(k)<2147483648))break oi;J[c+20>>2]=~~k;break kh}ri:{si:{ti:{ui:{vi:{wi:{xi:{yi:{zi:{if((d|0)<=1818322795){Ai:switch(d-1651928132|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break di; case 0:break ni;case 15:break si;case 16:break ti;default:break Ai}switch(d-1751608387|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 11:break di;case 12:break xi;case 0:break yi;case 10:break zi;default:break ei}}if((d|0)<=1936877393)switch(d-1935963971|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 11:break di;case 12:break ui;case 0:break vi;case 10:break wi;default:break ri}if((d|0)==1936877394)break pi;if((d|0)!=1969712231)break di;if((l|0)!=1651470188)break Mh; -ma=c,na=me(a),H[ma+32|0]=na;break kh}if((l|0)!=1701737837)break ci;if(Ac(a))break bi;if((Ac(a)|0)!=1114402381)break ai;ma=c,na=qm(a),J[ma+300>>2]=na;break kh}if((l|0)!=1331849827)break $h;d=rm(a);J[c+304>>2]=d;J[c+308>>2]=d;break kh}if((l|0)!=1433302086)break _h;if((Ac(a)|0)!=592474723)break Zh;k=be(a)*2.55+.5;if(R(k)<2147483648){H[c+312|0]=~~k;break kh}H[c+312|0]=0;break kh}if((l|0)!=1701737837)break Yh;if(Ac(a))break Xh;if((Ac(a)|0)!=1114402381)break Wh;ma=c,na=qm(a),J[ma+316>>2]=na;break kh}if((l| -0)!=1331849827)break Vh;d=rm(a);J[c+320>>2]=d;J[c+324>>2]=d;break kh}if((l|0)!=1433302086)break Uh;if((Ac(a)|0)!=592474723)break Th;k=be(a)*2.55+.5;if(R(k)<2147483648){H[c+328|0]=~~k;break kh}H[c+328|0]=0;break kh}if((l|0)!=1701737837)break Sh;if(Ac(a))break Rh;if((Ac(a)|0)!=1651928148)break Qh;ma=c,na=ZM(a),J[ma+8>>2]=na;break kh}if((l|0)!=1701737837)break Ph;if(Ac(a))break Oh;if((Ac(a)|0)!=1111839596)break Nh;d=Ac(a);if(d){af(a,e,d);H[d+e|0]=0;break nh}Bi:{d=Ac(a);if((d|0)<=1231974977){if(!d)break nh; -if((d|0)!=1164796531)break Bi;J[c+4>>2]=2;break kh}Ci:{if((d|0)!=1231974978){if((d|0)==1349272930)break Ci;if((d|0)!=1333031490)break Bi;J[c+4>>2]=0;break kh}J[c+4>>2]=1;break kh}J[c+4>>2]=3;break kh}fa(224107,220664,359,225769);B()}if((d|0)!=1818322796)break di;if((l|0)!=1433302086)break Lh;if((Ac(a)|0)!=591490663)break Kh;k=be(a);if(R(k)<2147483648){J[c+28>>2]=~~k;break kh}J[c+28>>2]=-2147483648;break kh}J[c+36>>2]=-2147483648;break kh}if((l|0)!=1433302086)break Hh;if((Ac(a)|0)!=592474723)break Gh; -k=be(a);if(R(k)<2147483648){J[c+12>>2]=~~k;break kh}J[c+12>>2]=-2147483648;break kh}J[c+20>>2]=-2147483648;break kh}if((l|0)!=1701737837)break Dh;if(Ac(a))break Ch;if((Ac(a)|0)!=1111839603)break Bh;d=Ac(a);if(d){af(a,e,d);H[d+e|0]=0;break oh}d=Ac(a);if((d|0)!=1333097504){if((d|0)!=1231953952)break oh;J[c+16>>2]=0;break kh}J[c+16>>2]=1;break kh}if((l|0)!=1331849827)break Ah;Er(y,a);break kh}if((l|0)!=1433302086)break zh;if((Ac(a)|0)!=592476268)break yh;k=be(a);if(R(k)<2147483648){J[c+24>>2]=~~k;break kh}J[c+ -24>>2]=-2147483648;break kh}if((l|0)!=1331849827)break xh;Er(C,a);break kh}if((l|0)!=1433302086)break vh;if((Ac(a)|0)!=592474723)break uh;k=be(a);if(R(k)<2147483648){J[c+588>>2]=~~k;break kh}J[c+588>>2]=-2147483648;break kh}if((l|0)!=1651470188)break th;ma=c,na=me(a),H[ma+868|0]=na;break kh}if((l|0)!=1651470188)break sh;ma=c,na=me(a),H[ma+869|0]=na;break kh}J[c+860>>2]=-2147483648;break kh}if((l|0)!=1331849827)break ph;FD(D,a);break kh}if((d|0)==1701732706)break mh}fa(224107,220664,505,225769);B()}fa(224373, -220664,245,225769);B()}fa(224491,220664,249,225769);B()}fa(224945,220664,252,225769);B()}fa(223998,220664,259,225769);B()}fa(223160,220664,266,225769);B()}fa(223330,220664,269,225769);B()}fa(224373,220664,276,225769);B()}fa(224491,220664,280,225769);B()}fa(224945,220664,283,225769);B()}fa(223998,220664,290,225769);B()}fa(223160,220664,297,225769);B()}fa(223330,220664,300,225769);B()}fa(224373,220664,307,225769);B()}fa(224491,220664,311,225769);B()}fa(224974,220664,314,225769);B()}fa(224373,220664, -320,225769);B()}fa(224491,220664,324,225769);B()}fa(225016,220664,327,225769);B()}fa(220520,220664,366,225769);B()}fa(223160,220664,372,225769);B()}fa(225073,220664,375,225769);B()}fa(223160,220664,381,225769);B()}fa(225073,220664,384,225769);B()}fa(223160,220664,390,225769);B()}fa(223330,220664,392,225769);B()}fa(223160,220664,398,225769);B()}fa(225131,220664,401,225769);B()}fa(224373,220664,407,225769);B()}fa(224491,220664,411,225769);B()}fa(225157,220664,414,225769);B()}fa(223998,220664,441,225769); -B()}fa(223160,220664,447,225769);B()}fa(225131,220664,450,225769);B()}fa(223998,220664,456,225769);B()}fa(220520,220664,462,225769);B()}fa(223160,220664,468,225769);B()}fa(223330,220664,471,225769);B()}fa(220520,220664,478,225769);B()}fa(220520,220664,484,225769);B()}fa(223160,220664,490,225769);B()}fa(223330,220664,493,225769);B()}fa(223998,220664,500,225769);B()}fa(224107,220664,434,225769);B()}if(!Wc(e,225030,13)){J[c+4>>2]=4;break kh}fa(224107,220664,356,225769);B()}if((l|0)==1651470188){ma=c, -na=me(a),H[ma|0]=na;break kh}fa(220520,220664,239,225769);B()}if(!Wc(e,218972,15)){if((l|0)!=1651470188)break jh;ma=c,na=me(a),H[ma+296|0]=na;break kh}if(!Wc(e,221388,9)){if((l|0)!=1651470188)break ih;ma=c,na=me(a),H[ma+329|0]=na;break kh}if(!Wc(e,221989,11)){if((l|0)!=1651470188)break hh;ma=c,na=me(a),H[ma+592|0]=na;break kh}Di:{if(!Wc(e,222498,13)){if((l|0)!=1433302086)break gh;if((Ac(a)|0)!=592474723)break fh;k=be(a);if(!(R(k)<2147483648))break Di;J[c+864>>2]=~~k;break kh}if(!Wc(e,223464,6)){if((l| -0)!=1331849827)break eh;Ex(u,q,a);break kh}fa(224107,220664,232,225769);B()}J[c+864>>2]=-2147483648}g=g-1|0;if(g)continue;break}}bc=e+256|0;break dh}fa(220520,220664,199,225769);B()}fa(220520,220664,205,225769);B()}fa(220520,220664,211,225769);B()}fa(223160,220664,217,225769);B()}fa(223330,220664,220,225769);B()}fa(223998,220664,226,225769);B()}H[o+3227|0]=1;H[o+3217|0]=1;break Jc}if((e|0)!=1331849827)break Nc;H[v+12|0]=255;J[v+4>>2]=0;J[v+8>>2]=-65536;te(a,Ac(a)<<1);d=Ac(a);Ei:{if(!d){Ac(a);break Ei}te(a, -d)}Fi:{Gi:{Hi:{Ii:{Ji:{Ki:{Li:{Mi:{Ni:{Oi:{e=Ac(a);if(e)while(1){if(Ac(a))break Oi;d=Ac(a);l=Ac(a);Pi:{Qi:{Ri:{Si:{Ti:{if((d|0)<=1332765555){if((d|0)==1131180576)break Ri;if((d|0)==1298407456)break Ti;break Gi}if((d|0)==1332765556)break Si;if((d|0)!=1701732706)break Gi;if((l|0)!=1651470188)break Ni;ma=v,na=me(a),H[ma|0]=na;break Pi}if((l|0)!=1701737837)break Mi;if(Ac(a))break Li;if((Ac(a)|0)!=1114402381)break Ki;ma=v,na=qm(a),J[ma+4>>2]=na;break Pi}if((l|0)!=1433302086)break Ji;if((Ac(a)|0)!=592474723)break Ii; -k=be(a)*2.55+.5;if(!(R(k)<2147483648))break Qi;H[v+12|0]=~~k;break Pi}if((l|0)!=1331849827)break Hi;d=rm(a);J[v+8>>2]=d;J[v+16>>2]=d;break Pi}H[v+12|0]=0}e=e-1|0;if(e)continue;break}break Fi}fa(219520,219590,106,225688);B()}fa(221326,219590,122,225688);B()}fa(221835,219590,128,225688);B()}fa(219520,219590,133,225688);B()}fa(222420,219590,136,225688);B()}fa(222795,219590,142,225688);B()}fa(223118,219590,145,225688);B()}fa(223344,219590,153,225688);B()}fa(223470,219590,158,225688);B()}H[o+3223|0]=1; -H[o+3213|0]=1;break Jc}if((e|0)!=1331849827)break Lc;l=bc-256|0;bc=l;H[i+352|0]=1;J[i+348>>2]=100;J[i+68>>2]=90;J[i+72>>2]=100;H[i+64|0]=1;J[i+60>>2]=0;H[i+56|0]=0;J[i+20>>2]=0;J[i+24>>2]=-65536;H[i+16|0]=255;J[i+12>>2]=0;J[i+4>>2]=3;J[i+8>>2]=0;te(a,Ac(a)<<1);d=Ac(a);Ui:{if(!d){Ac(a);break Ui}te(a,d)}Vi:{Wi:{q=Ac(a);if(q){g=i+360|0;u=i+356|0;y=i+28|0;C=i+80|0;D=i+76|0;M=i+84|0;while(1){Xi:{Yi:{d=Ac(a);if(d){af(a,l,d);H[d+l|0]=0;d=Ac(a);break Yi}e=Ac(a);d=Ac(a);Zi:{_i:{$i:{aj:{bj:{cj:{dj:{ej:{fj:{gj:{hj:{ij:{jj:{kj:{lj:{mj:{nj:{oj:{pj:{qj:{rj:{sj:{tj:{uj:{vj:{wj:{xj:{yj:{zj:{Aj:{Bj:{Cj:{Dj:{Ej:{Fj:{Gj:{Hj:{Ij:{Jj:{Kj:{Lj:{Mj:{Nj:{if((e| -0)<=1332765555){if((e|0)<=1198678371){if((e|0)<=1097754475){if(!e)break Yi;if((e|0)!=1097623406)break Nj;if((d|0)!=1651470188)break cj;ma=i,na=me(a),H[ma+64|0]=na;break Xi}if((e|0)==1097754476)break Fj;if((e|0)!=1131180576)break Nj;if((d|0)!=1331849827)break mj;ma=i,na=rm(a),J[ma+24>>2]=na;break Xi}if((e|0)<=1298407455){if((e|0)==1198678372)break Gj;if((e|0)!=1282304868)break Nj;if((d|0)!=1651470188)break $i;ma=i,na=me(a),H[ma+352|0]=na;break Xi}if((e|0)==1298407456)break Jj;if((e|0)!=1332114292)break Nj; -if((d|0)!=1331849827)break bj;Ex(D,C,a);break Xi}if((e|0)<=1399024671){if((e|0)<=1349808749){if((e|0)==1332765556)break Ij;if((e|0)!=1349416020)break Nj;if((d|0)!=1701737837)break wj;if(Ac(a))break vj;if((Ac(a)|0)!=1181894252)break uj;d=Ac(a);if(!d)break Kj;af(a,l,d);H[d+l|0]=0;break Zi}if((e|0)==1349808750)break Cj;if((e|0)!=1383494259)break Nj;if((d|0)!=1651470188)break fj;ma=i,na=me(a),H[ma+56|0]=na;break Xi}if((e|0)<=1400512543){if((e|0)==1399024672)break Dj;if((e|0)!=1400142188)break Nj;if((d| -0)!=1701737837)break zj;if(Ac(a))break yj;if((Ac(a)|0)!=1179874412)break xj;d=Ac(a);if(!d)break Lj;af(a,l,d);H[d+l|0]=0;break _i}if((e|0)==1400512544)break Hj;if((e|0)==1417244773)break Ej;if((e|0)==1701732706)break Mj}fa(221833,220741,321,225850);B()}if((d|0)!=1651470188)break Aj;ma=i,na=me(a),H[ma|0]=na;break Xi}d=Ac(a);if((d|0)!=1131704902){if((d|0)==1231975238)break Bj;if((d|0)!=1333097542)break _i;J[i+8>>2]=0;break Xi}J[i+8>>2]=2;break Xi}Oj:{d=Ac(a);if((d|0)!=1198671468){if((d|0)==1349808750)break Oj; -if((d|0)!=1396927602)break Zi;J[i+20>>2]=0;break Xi}J[i+20>>2]=1;break Xi}J[i+20>>2]=2;break Xi}if((d|0)!=1701737837)break tj;if(Ac(a))break sj;if((Ac(a)|0)!=1114402381)break rj;ma=i,na=qm(a),J[ma+12>>2]=na;break Xi}if((d|0)!=1433302086)break qj;if((Ac(a)|0)!=592474723)break pj;k=be(a)*2.55+.5;if(R(k)<2147483648){H[i+16|0]=~~k;break Xi}H[i+16|0]=0;break Xi}if((d|0)!=1433302086)break oj;if((Ac(a)|0)!=592476268)break nj;k=be(a);if(R(k)<2147483648){J[i+4>>2]=~~k;break Xi}J[i+4>>2]=-2147483648;break Xi}if((d| -0)!=1331849827)break lj;Fx(y,a);break Xi}if((d|0)!=1433302086)break kj;if((Ac(a)|0)!=591490663)break jj;k=be(a);if(R(k)<2147483648){J[i+68>>2]=~~k;break Xi}J[i+68>>2]=-2147483648;break Xi}if((d|0)!=1701737837)break ij;if(Ac(a))break hj;if((Ac(a)|0)!=1198679124)break gj;ma=i,na=YM(a),J[ma+60>>2]=na;break Xi}if((d|0)!=1433302086)break ej;if((Ac(a)|0)!=592474723)break dj;Pj:switch(J[i+20>>2]-1|0){case 0:k=be(a);if(R(k)<2147483648){J[i+72>>2]=~~k;break Xi}J[i+72>>2]=-2147483648;break Xi;case 1:break Pj; -default:break Xi}k=be(a);if(R(k)<2147483648){J[i+348>>2]=~~k;break Xi}J[i+348>>2]=-2147483648;break Xi}if((d|0)!=1331849827)break aj;FD(M,a);break Xi}J[i+8>>2]=1;break Xi}fa(222362,220741,121,225850);B()}fa(222751,220741,127,225850);B()}fa(223071,220741,132,225850);B()}fa(223301,220741,135,225850);B()}fa(222751,220741,165,225850);B()}fa(223071,220741,170,225850);B()}fa(223492,220741,173,225850);B()}fa(222751,220741,203,225850);B()}fa(223071,220741,208,225850);B()}fa(224027,220741,211,225850);B()}fa(224228, -220741,217,225850);B()}fa(224402,220741,220,225850);B()}fa(224228,220741,227,225850);B()}fa(224571,220741,230,225850);B()}fa(220535,220741,237,225850);B()}fa(220535,220741,244,225850);B()}fa(224228,220741,250,225850);B()}fa(224931,220741,254,225850);B()}fa(222751,220741,262,225850);B()}fa(223071,220741,267,225850);B()}fa(224988,220741,270,225850);B()}fa(222362,220741,276,225850);B()}fa(224228,220741,282,225850);B()}fa(224402,220741,286,225850);B()}fa(222362,220741,297,225850);B()}fa(220535,220741, -303,225850);B()}fa(220535,220741,310,225850);B()}fa(222362,220741,316,225850);B()}fa(221833,220741,158,225850);B()}fa(221833,220741,196,225850);B()}if(!Wc(l,219001,6)){if((d|0)!=1331849827)break Wi;Ex(u,g,a);J[u>>2]=0;J[g>>2]=0;break Xi}fa(221833,220741,114,225850);B()}q=q-1|0;if(q)continue;break}}bc=l+256|0;break Vi}fa(220535,220741,106,225850);B()}H[o+3226|0]=1;H[o+3216|0]=1;break Jc}fa(222795,219743,236,224723);B()}fa(223118,219743,240,224723);B()}fa(223315,219743,252,224723);B()}fa(222405,219743, -260,224723);B()}fa(222405,219743,270,224723);B()}fa(222405,219743,280,224723);B()}fa(222405,219743,290,224723);B()}fa(222405,219743,300,224723);B()}fa(222405,219743,310,224723);B()}fa(222405,219743,320,224723);B()}fa(222405,219743,330,224723);B()}fa(222405,219743,340,224723);B()}if(!Wc(x,221376,12)){if((e|0)!=1331849827)break Fc;g=bc-256|0;bc=g;H[t+20|0]=1;J[t+16>>2]=100;H[t+12|0]=255;J[t+4>>2]=0;te(a,Ac(a)<<1);d=Ac(a);Qj:{if(!d){Ac(a);break Qj}te(a,d)}Rj:{Sj:{d=Ac(a);if(d){q=t+292|0;u=t+288|0;y= -t+24|0;while(1){Tj:{Uj:{e=Ac(a);if(e){af(a,g,e);H[e+g|0]=0;e=Ac(a);break Uj}l=Ac(a);e=Ac(a);Vj:{Wj:{Xj:{Yj:{Zj:{_j:{$j:{ak:{bk:{ck:{dk:{ek:{fk:{gk:{hk:{ik:{if((l|0)<=1332765555){if(!l)break Uj;if((l|0)==1097623406)break ek;if((l|0)!=1298407456)break ik;if((e|0)!=1701737837)break bk;if(Ac(a))break ak;if((Ac(a)|0)!=1114402381)break $j;ma=t,na=qm(a),J[ma+4>>2]=na;break Tj}if((l|0)<=1399024671){if((l|0)==1332765556)break gk;if((l|0)!=1349808750)break ik;if((e|0)!=1331849827)break Yj;FD(y,a);break Tj}if((l| -0)==1399024672)break fk;if((l|0)==1701732706)break hk}fa(221833,220584,157,225872);B()}if((e|0)!=1651470188)break ck;ma=t,na=me(a),H[ma|0]=na;break Tj}if((e|0)!=1433302086)break _j;if((Ac(a)|0)!=592474723)break Zj;k=be(a)*2.55+.5;if(!(R(k)<2147483648))break dk;H[t+12|0]=~~k;break Tj}if((e|0)!=1433302086)break Xj;if((Ac(a)|0)!=592474723)break Wj;k=be(a);if(R(k)<2147483648){J[t+16>>2]=~~k;break Tj}J[t+16>>2]=-2147483648;break Tj}if((e|0)!=1651470188)break Vj;ma=t,na=me(a),H[ma+20|0]=na;break Tj}H[t+ -12|0]=0;break Tj}fa(222362,220584,106,225872);B()}fa(222751,220584,112,225872);B()}fa(223071,220584,117,225872);B()}fa(223373,220584,120,225872);B()}fa(223535,220584,126,225872);B()}fa(223984,220584,129,225872);B()}fa(220535,220584,136,225872);B()}fa(223535,220584,142,225872);B()}fa(223984,220584,145,225872);B()}fa(222362,220584,152,225872);B()}if(!Wc(g,219001,6)){if((e|0)!=1331849827)break Sj;Ex(u,q,a);J[u>>2]=0;J[q>>2]=0;break Tj}fa(221833,220584,99,225872);B()}d=d-1|0;if(d)continue;break}}bc=g+ -256|0;break Rj}fa(220535,220584,90,225872);B()}H[o+3225|0]=1;H[o+3215|0]=1;break Jc}fa(221272,219743,228,224723);B()}I[o>>1]=L[o>>1]+1}d=b;if(d)continue;break}}d=0}bc=x+256|0;b=d;break Ec}fa(222405,219743,220,224723);B()}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=5;J[f>>2]=10;c=zc(2258);b=-4;jk:{if(!c)break jk;b=wc(c,0,2258);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;if((Tc(a)|0)==2){ma=b,na=pf(a),H[ma|0]=na;pf(a);ma=b,na=Tc(a),I[ma+2>>1]=na;ma=b,na=Tc(a),I[ma+4>>1]=na;ma=b,na=Tc(a), -I[ma+6>>1]=na;ma=b,na=Tc(a),I[ma+8>>1]=na;ma=b,na=Tc(a),I[ma+10>>1]=na;ma=b,na=Tc(a),I[ma+12>>1]=na;ma=b,na=Tc(a),I[ma+14>>1]=na;ma=b,na=Tc(a),I[ma+16>>1]=na;ma=b,na=Tc(a),I[ma+18>>1]=na;ma=b,na=Tc(a),I[ma+20>>1]=na;ma=b,na=Tc(a),I[ma+62>>1]=na;ma=b- -64|0,na=Tc(a),I[ma>>1]=na;ma=b,na=Tc(a),I[ma+66>>1]=na;ma=b,na=Tc(a),I[ma+22>>1]=na;ma=b,na=Tc(a),I[ma+24>>1]=na;ma=b,na=Tc(a),I[ma+26>>1]=na;ma=b,na=Tc(a),I[ma+28>>1]=na;ma=b,na=Tc(a),I[ma+68>>1]=na;ma=b,na=Tc(a),I[ma+70>>1]=na;ma=b,na=Tc(a),I[ma+72>> -1]=na;ma=b,na=Tc(a),I[ma+30>>1]=na;ma=b,na=Tc(a),I[ma+32>>1]=na;ma=b,na=Tc(a),I[ma+34>>1]=na;ma=b,na=Tc(a),I[ma+36>>1]=na;ma=b,na=Tc(a),I[ma+74>>1]=na;ma=b,na=Tc(a),I[ma+76>>1]=na;ma=b,na=Tc(a),I[ma+78>>1]=na;ma=b,na=Tc(a),I[ma+38>>1]=na;ma=b,na=Tc(a),I[ma+40>>1]=na;ma=b,na=Tc(a),I[ma+42>>1]=na;ma=b,na=Tc(a),I[ma+44>>1]=na;ma=b,na=Tc(a),I[ma+80>>1]=na;ma=b,na=Tc(a),I[ma+82>>1]=na;ma=b,na=Tc(a),I[ma+84>>1]=na;ma=b,na=Tc(a),I[ma+46>>1]=na;ma=b,na=Tc(a),I[ma+48>>1]=na;ma=b,na=Tc(a),I[ma+50>>1]=na;ma= -b,na=Tc(a),I[ma+52>>1]=na;ma=b,na=Tc(a),I[ma+86>>1]=na;ma=b,na=Tc(a),I[ma+88>>1]=na;ma=b,na=Tc(a),I[ma+90>>1]=na;ma=b,na=Tc(a),I[ma+54>>1]=na;ma=b,na=Tc(a),I[ma+56>>1]=na;ma=b,na=Tc(a),I[ma+58>>1]=na;ma=b,na=Tc(a),I[ma+60>>1]=na;ma=b,na=Tc(a),I[ma+92>>1]=na;ma=b,na=Tc(a),I[ma+94>>1]=na;ma=b,na=Tc(a),I[ma+96>>1]=na;H[f+540|0]=1;b=0}else b=-511}break q}ma=f,na=me(a),H[ma+565|0]=na;te(a,3);break o}ma=z,na=pf(a),I[ma+8>>1]=na;ma=z,na=pf(a),I[ma+10>>1]=na;ma=z,na=pf(a),I[ma+12>>1]=na;ma=z,na=pf(a),I[ma+ -14>>1]=na;GD(G,0,z+8|0);te(a,4);break o}k=be(a);kk:{if(R(k)<2147483648){b=~~k;break kk}b=-2147483648}J[f+576>>2]=b;k=be(a);if(R(k)<2147483648){J[f+580>>2]=~~k;break o}J[f+580>>2]=-2147483648;break o}c=0;e=J[a+28>>2];J[((J[f+376>>2]<<2)+f|0)+380>>2]=1;J[f>>2]=6;b=-4;lk:{d=zc(1124);if(!d)break lk;d=wc(d,0,1124);J[((J[f+376>>2]<<2)+f|0)+460>>2]=d;J[f+376>>2]=J[f+376>>2]+1;mk:{nk:{ok:{pk:{qk:{b=-503;rk:{if((Tc(a)|0)!=2)break rk;while(1){b=d+P(c,12)|0;ma=b,na=Tc(a),I[ma>>1]=na;ma=b,na=Tc(a),I[ma+2>>1]= -na;ma=b,na=Tc(a),I[ma+4>>1]=na;ma=b,na=Tc(a),I[ma+6>>1]=na;V=Q(Q(Tc(a)|0)/Q(100));N[b+8>>2]=V;if(c>>>0<=26){if(L[b>>1]>=256)break qk;if((L[b+2>>1]-2&65535)>>>0>=254)break pk;if(L[b+4>>1]>=256)break ok;if(L[b+6>>1]>=256)break nk;k=+V;if(!(k>=.1)|!(k<=9.99))break mk}c=c+1|0;if((c|0)!=29)continue;break}sk:{if((w-4|0)<=(J[a+28>>2]-e|0))break sk;b=-505;if((Ac(a)|0)!=1282829427)break rk;b=-507;if((Tc(a)|0)!=3)break rk;b=Tc(a)-29|0;I[d+348>>1]=b;i=zc(P(b&65535,12));J[d+352>>2]=i;b=-4;if(!i)break lk;c=0; -wc(i,0,P(L[d+348>>1],12));if(!L[d+348>>1])break sk;while(1){i=Tc(a);b=P(c,12);I[b+J[d+352>>2]>>1]=i;i=Tc(a);I[(b+J[d+352>>2]|0)+2>>1]=i;i=Tc(a);I[(b+J[d+352>>2]|0)+4>>1]=i;i=Tc(a);I[(b+J[d+352>>2]|0)+6>>1]=i;i=Tc(a);N[(b+J[d+352>>2]|0)+8>>2]=Q(i|0)/Q(100);c=c+1|0;if(c>>>0>1])continue;break}}b=-506;if((J[a+28>>2]-e|0)!=(w|0))break rk;H[f+540|0]=1;b=0}break lk}fa(219134,219777,79,224800);B()}fa(220809,219777,80,224800);B()}fa(221441,219777,81,224800);B()}fa(222050,219777,82,224800);B()}fa(222511, -219777,83,224800);B()}break q}if((b|0)!=1668047468){if((b|0)!=1668641398)break r;e=0;h=J[a+28>>2];J[((J[f+376>>2]<<2)+f|0)+380>>2]=2;J[f>>2]=7;c=-4;tk:{uk:{vk:{b=zc(776);wk:{if(!b)break wk;d=wc(b,0,776);J[((J[f+376>>2]<<2)+f|0)+460>>2]=d;J[f+376>>2]=J[f+376>>2]+1;pf(a);c=-508;xk:switch((Tc(a)&65535)-1|0){case 0:case 3:break xk;default:break wk}b=Ac(a);j=b&1;o=b&2;m=b&4;l=b&8;g=b&16;p=b&32;r=b&64;s=b&128;t=b&256;v=b&512;q=b&1024;x=b&2048;u=b&4096;y=b&8192;C=b&16384;D=b&32768;M=b&65536;W=b&131072;X= -b&262144;Y=b&524288;Z=b&1048576;_=b&2097152;$=b&4194304;aa=b&8388608;ba=b&16777216;ca=b&33554432;da=b&67108864;ea=b&134217728;ga=b&268435456;ha=b&536870912;ia=b&1073741824;c=j+(o>>>1|0)+(m>>>2)+(l>>>3)+(g>>>4)+(p>>>5)+(r>>>6)+(s>>>7)+(t>>>8)+(v>>>9)+(q>>>10)+(x>>>11)+(u>>>12)+(y>>>13)+(C>>>14)+(D>>>15)+(M>>>16)+(W>>>17)+(X>>>18)+(Y>>>19)+(Z>>>20)+(_>>>21)+($>>>22)+(aa>>>23)+(ba>>>24)+(ca>>>25)+(da>>>26)+(ea>>>27)+(ga>>>28)+(ha>>>29)+(ia>>>30)+(b>>>31)|0;I[d>>1]=c;i=zc(P(c&65535,80));J[d+4>>2]=i;c= --4;if(!i)break wk;wc(i,0,P(L[d>>1],80));if(L[d>>1]){la=(b|0)>=0;while(1){b=0;yk:{zk:{Ak:{if(!j)break Ak;b=1;if(e)break Ak;c=0;break zk}if(o){c=1;if((b|0)==(e|0))break zk;b=b+1|0}if(m){c=2;if((b|0)==(e|0))break zk;b=b+1|0}if(l){c=3;if((b|0)==(e|0))break zk;b=b+1|0}if(g){c=4;if((b|0)==(e|0))break zk;b=b+1|0}if(p){c=5;if((b|0)==(e|0))break zk;b=b+1|0}if(r){c=6;if((b|0)==(e|0))break zk;b=b+1|0}if(s){c=7;if((b|0)==(e|0))break zk;b=b+1|0}if(t){c=8;if((b|0)==(e|0))break zk;b=b+1|0}if(v){c=9;if((b|0)==(e| +ma=c,na=ue(a),H[ma+32|0]=na;break kh}if((l|0)!=1701737837)break ci;if(Fc(a))break bi;if((Fc(a)|0)!=1114402381)break ai;ma=c,na=gn(a),J[ma+300>>2]=na;break kh}if((l|0)!=1331849827)break $h;d=hn(a);J[c+304>>2]=d;J[c+308>>2]=d;break kh}if((l|0)!=1433302086)break _h;if((Fc(a)|0)!=592474723)break Zh;k=me(a)*2.55+.5;if(R(k)<2147483648){H[c+312|0]=~~k;break kh}H[c+312|0]=0;break kh}if((l|0)!=1701737837)break Yh;if(Fc(a))break Xh;if((Fc(a)|0)!=1114402381)break Wh;ma=c,na=gn(a),J[ma+316>>2]=na;break kh}if((l| +0)!=1331849827)break Vh;d=hn(a);J[c+320>>2]=d;J[c+324>>2]=d;break kh}if((l|0)!=1433302086)break Uh;if((Fc(a)|0)!=592474723)break Th;k=me(a)*2.55+.5;if(R(k)<2147483648){H[c+328|0]=~~k;break kh}H[c+328|0]=0;break kh}if((l|0)!=1701737837)break Sh;if(Fc(a))break Rh;if((Fc(a)|0)!=1651928148)break Qh;ma=c,na=rO(a),J[ma+8>>2]=na;break kh}if((l|0)!=1701737837)break Ph;if(Fc(a))break Oh;if((Fc(a)|0)!=1111839596)break Nh;d=Fc(a);if(d){gf(a,e,d);H[d+e|0]=0;break nh}Bi:{d=Fc(a);if((d|0)<=1231974977){if(!d)break nh; +if((d|0)!=1164796531)break Bi;J[c+4>>2]=2;break kh}Ci:{if((d|0)!=1231974978){if((d|0)==1349272930)break Ci;if((d|0)!=1333031490)break Bi;J[c+4>>2]=0;break kh}J[c+4>>2]=1;break kh}J[c+4>>2]=3;break kh}fa(224123,220680,359,225785);B()}if((d|0)!=1818322796)break di;if((l|0)!=1433302086)break Lh;if((Fc(a)|0)!=591490663)break Kh;k=me(a);if(R(k)<2147483648){J[c+28>>2]=~~k;break kh}J[c+28>>2]=-2147483648;break kh}J[c+36>>2]=-2147483648;break kh}if((l|0)!=1433302086)break Hh;if((Fc(a)|0)!=592474723)break Gh; +k=me(a);if(R(k)<2147483648){J[c+12>>2]=~~k;break kh}J[c+12>>2]=-2147483648;break kh}J[c+20>>2]=-2147483648;break kh}if((l|0)!=1701737837)break Dh;if(Fc(a))break Ch;if((Fc(a)|0)!=1111839603)break Bh;d=Fc(a);if(d){gf(a,e,d);H[d+e|0]=0;break oh}d=Fc(a);if((d|0)!=1333097504){if((d|0)!=1231953952)break oh;J[c+16>>2]=0;break kh}J[c+16>>2]=1;break kh}if((l|0)!=1331849827)break Ah;us(y,a);break kh}if((l|0)!=1433302086)break zh;if((Fc(a)|0)!=592476268)break yh;k=me(a);if(R(k)<2147483648){J[c+24>>2]=~~k;break kh}J[c+ +24>>2]=-2147483648;break kh}if((l|0)!=1331849827)break xh;us(C,a);break kh}if((l|0)!=1433302086)break vh;if((Fc(a)|0)!=592474723)break uh;k=me(a);if(R(k)<2147483648){J[c+588>>2]=~~k;break kh}J[c+588>>2]=-2147483648;break kh}if((l|0)!=1651470188)break th;ma=c,na=ue(a),H[ma+868|0]=na;break kh}if((l|0)!=1651470188)break sh;ma=c,na=ue(a),H[ma+869|0]=na;break kh}J[c+860>>2]=-2147483648;break kh}if((l|0)!=1331849827)break ph;JE(D,a);break kh}if((d|0)==1701732706)break mh}fa(224123,220680,505,225785);B()}fa(224389, +220680,245,225785);B()}fa(224507,220680,249,225785);B()}fa(224961,220680,252,225785);B()}fa(224014,220680,259,225785);B()}fa(223176,220680,266,225785);B()}fa(223346,220680,269,225785);B()}fa(224389,220680,276,225785);B()}fa(224507,220680,280,225785);B()}fa(224961,220680,283,225785);B()}fa(224014,220680,290,225785);B()}fa(223176,220680,297,225785);B()}fa(223346,220680,300,225785);B()}fa(224389,220680,307,225785);B()}fa(224507,220680,311,225785);B()}fa(224990,220680,314,225785);B()}fa(224389,220680, +320,225785);B()}fa(224507,220680,324,225785);B()}fa(225032,220680,327,225785);B()}fa(220536,220680,366,225785);B()}fa(223176,220680,372,225785);B()}fa(225089,220680,375,225785);B()}fa(223176,220680,381,225785);B()}fa(225089,220680,384,225785);B()}fa(223176,220680,390,225785);B()}fa(223346,220680,392,225785);B()}fa(223176,220680,398,225785);B()}fa(225147,220680,401,225785);B()}fa(224389,220680,407,225785);B()}fa(224507,220680,411,225785);B()}fa(225173,220680,414,225785);B()}fa(224014,220680,441,225785); +B()}fa(223176,220680,447,225785);B()}fa(225147,220680,450,225785);B()}fa(224014,220680,456,225785);B()}fa(220536,220680,462,225785);B()}fa(223176,220680,468,225785);B()}fa(223346,220680,471,225785);B()}fa(220536,220680,478,225785);B()}fa(220536,220680,484,225785);B()}fa(223176,220680,490,225785);B()}fa(223346,220680,493,225785);B()}fa(224014,220680,500,225785);B()}fa(224123,220680,434,225785);B()}if(!dd(e,225046,13)){J[c+4>>2]=4;break kh}fa(224123,220680,356,225785);B()}if((l|0)==1651470188){ma=c, +na=ue(a),H[ma|0]=na;break kh}fa(220536,220680,239,225785);B()}if(!dd(e,218988,15)){if((l|0)!=1651470188)break jh;ma=c,na=ue(a),H[ma+296|0]=na;break kh}if(!dd(e,221404,9)){if((l|0)!=1651470188)break ih;ma=c,na=ue(a),H[ma+329|0]=na;break kh}if(!dd(e,222005,11)){if((l|0)!=1651470188)break hh;ma=c,na=ue(a),H[ma+592|0]=na;break kh}Di:{if(!dd(e,222514,13)){if((l|0)!=1433302086)break gh;if((Fc(a)|0)!=592474723)break fh;k=me(a);if(!(R(k)<2147483648))break Di;J[c+864>>2]=~~k;break kh}if(!dd(e,223480,6)){if((l| +0)!=1331849827)break eh;vy(u,q,a);break kh}fa(224123,220680,232,225785);B()}J[c+864>>2]=-2147483648}g=g-1|0;if(g)continue;break}}fc=e+256|0;break dh}fa(220536,220680,199,225785);B()}fa(220536,220680,205,225785);B()}fa(220536,220680,211,225785);B()}fa(223176,220680,217,225785);B()}fa(223346,220680,220,225785);B()}fa(224014,220680,226,225785);B()}H[o+3227|0]=1;H[o+3217|0]=1;break Jc}if((e|0)!=1331849827)break Nc;H[v+12|0]=255;J[v+4>>2]=0;J[v+8>>2]=-65536;Be(a,Fc(a)<<1);d=Fc(a);Ei:{if(!d){Fc(a);break Ei}Be(a, +d)}Fi:{Gi:{Hi:{Ii:{Ji:{Ki:{Li:{Mi:{Ni:{Oi:{e=Fc(a);if(e)while(1){if(Fc(a))break Oi;d=Fc(a);l=Fc(a);Pi:{Qi:{Ri:{Si:{Ti:{if((d|0)<=1332765555){if((d|0)==1131180576)break Ri;if((d|0)==1298407456)break Ti;break Gi}if((d|0)==1332765556)break Si;if((d|0)!=1701732706)break Gi;if((l|0)!=1651470188)break Ni;ma=v,na=ue(a),H[ma|0]=na;break Pi}if((l|0)!=1701737837)break Mi;if(Fc(a))break Li;if((Fc(a)|0)!=1114402381)break Ki;ma=v,na=gn(a),J[ma+4>>2]=na;break Pi}if((l|0)!=1433302086)break Ji;if((Fc(a)|0)!=592474723)break Ii; +k=me(a)*2.55+.5;if(!(R(k)<2147483648))break Qi;H[v+12|0]=~~k;break Pi}if((l|0)!=1331849827)break Hi;d=hn(a);J[v+8>>2]=d;J[v+16>>2]=d;break Pi}H[v+12|0]=0}e=e-1|0;if(e)continue;break}break Fi}fa(219536,219606,106,225704);B()}fa(221342,219606,122,225704);B()}fa(221851,219606,128,225704);B()}fa(219536,219606,133,225704);B()}fa(222436,219606,136,225704);B()}fa(222811,219606,142,225704);B()}fa(223134,219606,145,225704);B()}fa(223360,219606,153,225704);B()}fa(223486,219606,158,225704);B()}H[o+3223|0]=1; +H[o+3213|0]=1;break Jc}if((e|0)!=1331849827)break Lc;l=fc-256|0;fc=l;H[i+352|0]=1;J[i+348>>2]=100;J[i+68>>2]=90;J[i+72>>2]=100;H[i+64|0]=1;J[i+60>>2]=0;H[i+56|0]=0;J[i+20>>2]=0;J[i+24>>2]=-65536;H[i+16|0]=255;J[i+12>>2]=0;J[i+4>>2]=3;J[i+8>>2]=0;Be(a,Fc(a)<<1);d=Fc(a);Ui:{if(!d){Fc(a);break Ui}Be(a,d)}Vi:{Wi:{q=Fc(a);if(q){g=i+360|0;u=i+356|0;y=i+28|0;C=i+80|0;D=i+76|0;M=i+84|0;while(1){Xi:{Yi:{d=Fc(a);if(d){gf(a,l,d);H[d+l|0]=0;d=Fc(a);break Yi}e=Fc(a);d=Fc(a);Zi:{_i:{$i:{aj:{bj:{cj:{dj:{ej:{fj:{gj:{hj:{ij:{jj:{kj:{lj:{mj:{nj:{oj:{pj:{qj:{rj:{sj:{tj:{uj:{vj:{wj:{xj:{yj:{zj:{Aj:{Bj:{Cj:{Dj:{Ej:{Fj:{Gj:{Hj:{Ij:{Jj:{Kj:{Lj:{Mj:{Nj:{if((e| +0)<=1332765555){if((e|0)<=1198678371){if((e|0)<=1097754475){if(!e)break Yi;if((e|0)!=1097623406)break Nj;if((d|0)!=1651470188)break cj;ma=i,na=ue(a),H[ma+64|0]=na;break Xi}if((e|0)==1097754476)break Fj;if((e|0)!=1131180576)break Nj;if((d|0)!=1331849827)break mj;ma=i,na=hn(a),J[ma+24>>2]=na;break Xi}if((e|0)<=1298407455){if((e|0)==1198678372)break Gj;if((e|0)!=1282304868)break Nj;if((d|0)!=1651470188)break $i;ma=i,na=ue(a),H[ma+352|0]=na;break Xi}if((e|0)==1298407456)break Jj;if((e|0)!=1332114292)break Nj; +if((d|0)!=1331849827)break bj;vy(D,C,a);break Xi}if((e|0)<=1399024671){if((e|0)<=1349808749){if((e|0)==1332765556)break Ij;if((e|0)!=1349416020)break Nj;if((d|0)!=1701737837)break wj;if(Fc(a))break vj;if((Fc(a)|0)!=1181894252)break uj;d=Fc(a);if(!d)break Kj;gf(a,l,d);H[d+l|0]=0;break Zi}if((e|0)==1349808750)break Cj;if((e|0)!=1383494259)break Nj;if((d|0)!=1651470188)break fj;ma=i,na=ue(a),H[ma+56|0]=na;break Xi}if((e|0)<=1400512543){if((e|0)==1399024672)break Dj;if((e|0)!=1400142188)break Nj;if((d| +0)!=1701737837)break zj;if(Fc(a))break yj;if((Fc(a)|0)!=1179874412)break xj;d=Fc(a);if(!d)break Lj;gf(a,l,d);H[d+l|0]=0;break _i}if((e|0)==1400512544)break Hj;if((e|0)==1417244773)break Ej;if((e|0)==1701732706)break Mj}fa(221849,220757,321,225866);B()}if((d|0)!=1651470188)break Aj;ma=i,na=ue(a),H[ma|0]=na;break Xi}d=Fc(a);if((d|0)!=1131704902){if((d|0)==1231975238)break Bj;if((d|0)!=1333097542)break _i;J[i+8>>2]=0;break Xi}J[i+8>>2]=2;break Xi}Oj:{d=Fc(a);if((d|0)!=1198671468){if((d|0)==1349808750)break Oj; +if((d|0)!=1396927602)break Zi;J[i+20>>2]=0;break Xi}J[i+20>>2]=1;break Xi}J[i+20>>2]=2;break Xi}if((d|0)!=1701737837)break tj;if(Fc(a))break sj;if((Fc(a)|0)!=1114402381)break rj;ma=i,na=gn(a),J[ma+12>>2]=na;break Xi}if((d|0)!=1433302086)break qj;if((Fc(a)|0)!=592474723)break pj;k=me(a)*2.55+.5;if(R(k)<2147483648){H[i+16|0]=~~k;break Xi}H[i+16|0]=0;break Xi}if((d|0)!=1433302086)break oj;if((Fc(a)|0)!=592476268)break nj;k=me(a);if(R(k)<2147483648){J[i+4>>2]=~~k;break Xi}J[i+4>>2]=-2147483648;break Xi}if((d| +0)!=1331849827)break lj;wy(y,a);break Xi}if((d|0)!=1433302086)break kj;if((Fc(a)|0)!=591490663)break jj;k=me(a);if(R(k)<2147483648){J[i+68>>2]=~~k;break Xi}J[i+68>>2]=-2147483648;break Xi}if((d|0)!=1701737837)break ij;if(Fc(a))break hj;if((Fc(a)|0)!=1198679124)break gj;ma=i,na=qO(a),J[ma+60>>2]=na;break Xi}if((d|0)!=1433302086)break ej;if((Fc(a)|0)!=592474723)break dj;Pj:switch(J[i+20>>2]-1|0){case 0:k=me(a);if(R(k)<2147483648){J[i+72>>2]=~~k;break Xi}J[i+72>>2]=-2147483648;break Xi;case 1:break Pj; +default:break Xi}k=me(a);if(R(k)<2147483648){J[i+348>>2]=~~k;break Xi}J[i+348>>2]=-2147483648;break Xi}if((d|0)!=1331849827)break aj;JE(M,a);break Xi}J[i+8>>2]=1;break Xi}fa(222378,220757,121,225866);B()}fa(222767,220757,127,225866);B()}fa(223087,220757,132,225866);B()}fa(223317,220757,135,225866);B()}fa(222767,220757,165,225866);B()}fa(223087,220757,170,225866);B()}fa(223508,220757,173,225866);B()}fa(222767,220757,203,225866);B()}fa(223087,220757,208,225866);B()}fa(224043,220757,211,225866);B()}fa(224244, +220757,217,225866);B()}fa(224418,220757,220,225866);B()}fa(224244,220757,227,225866);B()}fa(224587,220757,230,225866);B()}fa(220551,220757,237,225866);B()}fa(220551,220757,244,225866);B()}fa(224244,220757,250,225866);B()}fa(224947,220757,254,225866);B()}fa(222767,220757,262,225866);B()}fa(223087,220757,267,225866);B()}fa(225004,220757,270,225866);B()}fa(222378,220757,276,225866);B()}fa(224244,220757,282,225866);B()}fa(224418,220757,286,225866);B()}fa(222378,220757,297,225866);B()}fa(220551,220757, +303,225866);B()}fa(220551,220757,310,225866);B()}fa(222378,220757,316,225866);B()}fa(221849,220757,158,225866);B()}fa(221849,220757,196,225866);B()}if(!dd(l,219017,6)){if((d|0)!=1331849827)break Wi;vy(u,g,a);J[u>>2]=0;J[g>>2]=0;break Xi}fa(221849,220757,114,225866);B()}q=q-1|0;if(q)continue;break}}fc=l+256|0;break Vi}fa(220551,220757,106,225866);B()}H[o+3226|0]=1;H[o+3216|0]=1;break Jc}fa(222811,219759,236,224739);B()}fa(223134,219759,240,224739);B()}fa(223331,219759,252,224739);B()}fa(222421,219759, +260,224739);B()}fa(222421,219759,270,224739);B()}fa(222421,219759,280,224739);B()}fa(222421,219759,290,224739);B()}fa(222421,219759,300,224739);B()}fa(222421,219759,310,224739);B()}fa(222421,219759,320,224739);B()}fa(222421,219759,330,224739);B()}fa(222421,219759,340,224739);B()}if(!dd(x,221392,12)){if((e|0)!=1331849827)break Fc;g=fc-256|0;fc=g;H[t+20|0]=1;J[t+16>>2]=100;H[t+12|0]=255;J[t+4>>2]=0;Be(a,Fc(a)<<1);d=Fc(a);Qj:{if(!d){Fc(a);break Qj}Be(a,d)}Rj:{Sj:{d=Fc(a);if(d){q=t+292|0;u=t+288|0;y= +t+24|0;while(1){Tj:{Uj:{e=Fc(a);if(e){gf(a,g,e);H[e+g|0]=0;e=Fc(a);break Uj}l=Fc(a);e=Fc(a);Vj:{Wj:{Xj:{Yj:{Zj:{_j:{$j:{ak:{bk:{ck:{dk:{ek:{fk:{gk:{hk:{ik:{if((l|0)<=1332765555){if(!l)break Uj;if((l|0)==1097623406)break ek;if((l|0)!=1298407456)break ik;if((e|0)!=1701737837)break bk;if(Fc(a))break ak;if((Fc(a)|0)!=1114402381)break $j;ma=t,na=gn(a),J[ma+4>>2]=na;break Tj}if((l|0)<=1399024671){if((l|0)==1332765556)break gk;if((l|0)!=1349808750)break ik;if((e|0)!=1331849827)break Yj;JE(y,a);break Tj}if((l| +0)==1399024672)break fk;if((l|0)==1701732706)break hk}fa(221849,220600,157,225888);B()}if((e|0)!=1651470188)break ck;ma=t,na=ue(a),H[ma|0]=na;break Tj}if((e|0)!=1433302086)break _j;if((Fc(a)|0)!=592474723)break Zj;k=me(a)*2.55+.5;if(!(R(k)<2147483648))break dk;H[t+12|0]=~~k;break Tj}if((e|0)!=1433302086)break Xj;if((Fc(a)|0)!=592474723)break Wj;k=me(a);if(R(k)<2147483648){J[t+16>>2]=~~k;break Tj}J[t+16>>2]=-2147483648;break Tj}if((e|0)!=1651470188)break Vj;ma=t,na=ue(a),H[ma+20|0]=na;break Tj}H[t+ +12|0]=0;break Tj}fa(222378,220600,106,225888);B()}fa(222767,220600,112,225888);B()}fa(223087,220600,117,225888);B()}fa(223389,220600,120,225888);B()}fa(223551,220600,126,225888);B()}fa(224E3,220600,129,225888);B()}fa(220551,220600,136,225888);B()}fa(223551,220600,142,225888);B()}fa(224E3,220600,145,225888);B()}fa(222378,220600,152,225888);B()}if(!dd(g,219017,6)){if((e|0)!=1331849827)break Sj;vy(u,q,a);J[u>>2]=0;J[q>>2]=0;break Tj}fa(221849,220600,99,225888);B()}d=d-1|0;if(d)continue;break}}fc=g+256| +0;break Rj}fa(220551,220600,90,225888);B()}H[o+3225|0]=1;H[o+3215|0]=1;break Jc}fa(221288,219759,228,224739);B()}I[o>>1]=L[o>>1]+1}d=b;if(d)continue;break}}d=0}fc=x+256|0;b=d;break Ec}fa(222421,219759,220,224739);B()}break q}J[((J[f+376>>2]<<2)+f|0)+380>>2]=5;J[f>>2]=10;c=Dc(2258);b=-4;jk:{if(!c)break jk;b=Ac(c,0,2258);J[((J[f+376>>2]<<2)+f|0)+460>>2]=b;J[f+376>>2]=J[f+376>>2]+1;if((ad(a)|0)==2){ma=b,na=wf(a),H[ma|0]=na;wf(a);ma=b,na=ad(a),I[ma+2>>1]=na;ma=b,na=ad(a),I[ma+4>>1]=na;ma=b,na=ad(a),I[ma+ +6>>1]=na;ma=b,na=ad(a),I[ma+8>>1]=na;ma=b,na=ad(a),I[ma+10>>1]=na;ma=b,na=ad(a),I[ma+12>>1]=na;ma=b,na=ad(a),I[ma+14>>1]=na;ma=b,na=ad(a),I[ma+16>>1]=na;ma=b,na=ad(a),I[ma+18>>1]=na;ma=b,na=ad(a),I[ma+20>>1]=na;ma=b,na=ad(a),I[ma+62>>1]=na;ma=b- -64|0,na=ad(a),I[ma>>1]=na;ma=b,na=ad(a),I[ma+66>>1]=na;ma=b,na=ad(a),I[ma+22>>1]=na;ma=b,na=ad(a),I[ma+24>>1]=na;ma=b,na=ad(a),I[ma+26>>1]=na;ma=b,na=ad(a),I[ma+28>>1]=na;ma=b,na=ad(a),I[ma+68>>1]=na;ma=b,na=ad(a),I[ma+70>>1]=na;ma=b,na=ad(a),I[ma+72>>1]= +na;ma=b,na=ad(a),I[ma+30>>1]=na;ma=b,na=ad(a),I[ma+32>>1]=na;ma=b,na=ad(a),I[ma+34>>1]=na;ma=b,na=ad(a),I[ma+36>>1]=na;ma=b,na=ad(a),I[ma+74>>1]=na;ma=b,na=ad(a),I[ma+76>>1]=na;ma=b,na=ad(a),I[ma+78>>1]=na;ma=b,na=ad(a),I[ma+38>>1]=na;ma=b,na=ad(a),I[ma+40>>1]=na;ma=b,na=ad(a),I[ma+42>>1]=na;ma=b,na=ad(a),I[ma+44>>1]=na;ma=b,na=ad(a),I[ma+80>>1]=na;ma=b,na=ad(a),I[ma+82>>1]=na;ma=b,na=ad(a),I[ma+84>>1]=na;ma=b,na=ad(a),I[ma+46>>1]=na;ma=b,na=ad(a),I[ma+48>>1]=na;ma=b,na=ad(a),I[ma+50>>1]=na;ma=b, +na=ad(a),I[ma+52>>1]=na;ma=b,na=ad(a),I[ma+86>>1]=na;ma=b,na=ad(a),I[ma+88>>1]=na;ma=b,na=ad(a),I[ma+90>>1]=na;ma=b,na=ad(a),I[ma+54>>1]=na;ma=b,na=ad(a),I[ma+56>>1]=na;ma=b,na=ad(a),I[ma+58>>1]=na;ma=b,na=ad(a),I[ma+60>>1]=na;ma=b,na=ad(a),I[ma+92>>1]=na;ma=b,na=ad(a),I[ma+94>>1]=na;ma=b,na=ad(a),I[ma+96>>1]=na;H[f+540|0]=1;b=0}else b=-511}break q}ma=f,na=ue(a),H[ma+565|0]=na;Be(a,3);break o}ma=z,na=wf(a),I[ma+8>>1]=na;ma=z,na=wf(a),I[ma+10>>1]=na;ma=z,na=wf(a),I[ma+12>>1]=na;ma=z,na=wf(a),I[ma+ +14>>1]=na;KE(G,0,z+8|0);Be(a,4);break o}k=me(a);kk:{if(R(k)<2147483648){b=~~k;break kk}b=-2147483648}J[f+576>>2]=b;k=me(a);if(R(k)<2147483648){J[f+580>>2]=~~k;break o}J[f+580>>2]=-2147483648;break o}c=0;e=J[a+28>>2];J[((J[f+376>>2]<<2)+f|0)+380>>2]=1;J[f>>2]=6;b=-4;lk:{d=Dc(1124);if(!d)break lk;d=Ac(d,0,1124);J[((J[f+376>>2]<<2)+f|0)+460>>2]=d;J[f+376>>2]=J[f+376>>2]+1;mk:{nk:{ok:{pk:{qk:{b=-503;rk:{if((ad(a)|0)!=2)break rk;while(1){b=d+P(c,12)|0;ma=b,na=ad(a),I[ma>>1]=na;ma=b,na=ad(a),I[ma+2>>1]= +na;ma=b,na=ad(a),I[ma+4>>1]=na;ma=b,na=ad(a),I[ma+6>>1]=na;V=Q(Q(ad(a)|0)/Q(100));N[b+8>>2]=V;if(c>>>0<=26){if(L[b>>1]>=256)break qk;if((L[b+2>>1]-2&65535)>>>0>=254)break pk;if(L[b+4>>1]>=256)break ok;if(L[b+6>>1]>=256)break nk;k=+V;if(!(k>=.1)|!(k<=9.99))break mk}c=c+1|0;if((c|0)!=29)continue;break}sk:{if((w-4|0)<=(J[a+28>>2]-e|0))break sk;b=-505;if((Fc(a)|0)!=1282829427)break rk;b=-507;if((ad(a)|0)!=3)break rk;b=ad(a)-29|0;I[d+348>>1]=b;i=Dc(P(b&65535,12));J[d+352>>2]=i;b=-4;if(!i)break lk;c=0; +Ac(i,0,P(L[d+348>>1],12));if(!L[d+348>>1])break sk;while(1){i=ad(a);b=P(c,12);I[b+J[d+352>>2]>>1]=i;i=ad(a);I[(b+J[d+352>>2]|0)+2>>1]=i;i=ad(a);I[(b+J[d+352>>2]|0)+4>>1]=i;i=ad(a);I[(b+J[d+352>>2]|0)+6>>1]=i;i=ad(a);N[(b+J[d+352>>2]|0)+8>>2]=Q(i|0)/Q(100);c=c+1|0;if(c>>>0>1])continue;break}}b=-506;if((J[a+28>>2]-e|0)!=(w|0))break rk;H[f+540|0]=1;b=0}break lk}fa(219150,219793,79,224816);B()}fa(220825,219793,80,224816);B()}fa(221457,219793,81,224816);B()}fa(222066,219793,82,224816);B()}fa(222527, +219793,83,224816);B()}break q}if((b|0)!=1668047468){if((b|0)!=1668641398)break r;e=0;h=J[a+28>>2];J[((J[f+376>>2]<<2)+f|0)+380>>2]=2;J[f>>2]=7;c=-4;tk:{uk:{vk:{b=Dc(776);wk:{if(!b)break wk;d=Ac(b,0,776);J[((J[f+376>>2]<<2)+f|0)+460>>2]=d;J[f+376>>2]=J[f+376>>2]+1;wf(a);c=-508;xk:switch((ad(a)&65535)-1|0){case 0:case 3:break xk;default:break wk}b=Fc(a);j=b&1;o=b&2;m=b&4;l=b&8;g=b&16;p=b&32;r=b&64;s=b&128;t=b&256;v=b&512;q=b&1024;x=b&2048;u=b&4096;y=b&8192;C=b&16384;D=b&32768;M=b&65536;W=b&131072;X= +b&262144;Y=b&524288;Z=b&1048576;_=b&2097152;$=b&4194304;aa=b&8388608;ba=b&16777216;ca=b&33554432;da=b&67108864;ea=b&134217728;ga=b&268435456;ha=b&536870912;ia=b&1073741824;c=j+(o>>>1|0)+(m>>>2)+(l>>>3)+(g>>>4)+(p>>>5)+(r>>>6)+(s>>>7)+(t>>>8)+(v>>>9)+(q>>>10)+(x>>>11)+(u>>>12)+(y>>>13)+(C>>>14)+(D>>>15)+(M>>>16)+(W>>>17)+(X>>>18)+(Y>>>19)+(Z>>>20)+(_>>>21)+($>>>22)+(aa>>>23)+(ba>>>24)+(ca>>>25)+(da>>>26)+(ea>>>27)+(ga>>>28)+(ha>>>29)+(ia>>>30)+(b>>>31)|0;I[d>>1]=c;i=Dc(P(c&65535,80));J[d+4>>2]=i;c= +-4;if(!i)break wk;Ac(i,0,P(L[d>>1],80));if(L[d>>1]){la=(b|0)>=0;while(1){b=0;yk:{zk:{Ak:{if(!j)break Ak;b=1;if(e)break Ak;c=0;break zk}if(o){c=1;if((b|0)==(e|0))break zk;b=b+1|0}if(m){c=2;if((b|0)==(e|0))break zk;b=b+1|0}if(l){c=3;if((b|0)==(e|0))break zk;b=b+1|0}if(g){c=4;if((b|0)==(e|0))break zk;b=b+1|0}if(p){c=5;if((b|0)==(e|0))break zk;b=b+1|0}if(r){c=6;if((b|0)==(e|0))break zk;b=b+1|0}if(s){c=7;if((b|0)==(e|0))break zk;b=b+1|0}if(t){c=8;if((b|0)==(e|0))break zk;b=b+1|0}if(v){c=9;if((b|0)==(e| 0))break zk;b=b+1|0}if(q){c=10;if((b|0)==(e|0))break zk;b=b+1|0}if(x){c=11;if((b|0)==(e|0))break zk;b=b+1|0}if(u){c=12;if((b|0)==(e|0))break zk;b=b+1|0}if(y){c=13;if((b|0)==(e|0))break zk;b=b+1|0}if(C){c=14;if((b|0)==(e|0))break zk;b=b+1|0}if(D){c=15;if((b|0)==(e|0))break zk;b=b+1|0}if(M){c=16;if((b|0)==(e|0))break zk;b=b+1|0}if(W){c=17;if((b|0)==(e|0))break zk;b=b+1|0}if(X){c=18;if((b|0)==(e|0))break zk;b=b+1|0}if(Y){c=19;if((b|0)==(e|0))break zk;b=b+1|0}if(Z){c=20;if((b|0)==(e|0))break zk;b=b+1| 0}if(_){c=21;if((b|0)==(e|0))break zk;b=b+1|0}if($){c=22;if((b|0)==(e|0))break zk;b=b+1|0}if(aa){c=23;if((b|0)==(e|0))break zk;b=b+1|0}if(ba){c=24;if((b|0)==(e|0))break zk;b=b+1|0}if(ca){c=25;if((b|0)==(e|0))break zk;b=b+1|0}if(da){c=26;if((b|0)==(e|0))break zk;b=b+1|0}if(ea){c=27;if((b|0)==(e|0))break zk;b=b+1|0}if(ga){c=28;if((b|0)==(e|0))break zk;b=b+1|0}if(ha){c=29;if((b|0)==(e|0))break zk;b=b+1|0}if(ia){c=30;if((b|0)==(e|0))break zk;b=b+1|0}if(la)break yk;c=31;if((b|0)!=(e|0))break yk}I[J[d+ -4>>2]+P(e,80)>>1]=c}c=Tc(a);i=P(e,80);I[(i+J[d+4>>2]|0)+2>>1]=c;b=0;if((c-2&65535)>>>0>=18){fa(219015,219810,113,224821);B()}Bk:{while(1){c=Tc(a);E=b<<1;I[(E+(J[d+4>>2]+i|0)|0)+4>>1]=c;c=Tc(a);S=E;E=J[d+4>>2]+i|0;S=S+E|0;I[S+42>>1]=c;if(L[S+4>>1]>=256)break uk;if(c>>>0<256){b=b+1|0;if(b>>>0>=L[E+2>>1])break Bk;continue}break}fa(221514,219810,123,224821);B()}e=e+1|0;if(e>>>0>1])continue;break}}Ck:{if((w-4|0)<=(J[a+28>>2]-h|0))break Ck;c=-509;if((Ac(a)|0)!=1131574816)break wk;c=-510;if((Tc(a)| -0)!=4)break wk;c=Ac(a);b=L[d>>1];if((c|0)!=(b|0))break vk;if(!b)break Ck;c=0;while(1){b=Tc(a);i=P(c,80);I[i+J[d+4>>2]>>1]=b;e=Tc(a);Dk:{Ek:{if((e|0)==L[(i+J[d+4>>2]|0)+2>>1]){b=0;if((e|0)>0)break Ek;break Dk}fa(222434,219810,153,224821);B()}while(1){Fk:{h=Tc(a);j=Tc(a);o=h;h=(i+J[d+4>>2]|0)+(b<<1)|0;if((o|0)!=L[h+4>>1]|(j|0)!=L[h+42>>1])break Fk;b=b+1|0;if((e|0)!=(b|0))continue;break Dk}break}fa(222824,219810,165,224821);B()}c=c+1|0;if(c>>>0>1])continue;break}}H[f+540|0]=1;c=0}b=c;break tk}fa(221907, -219810,142,224821);B()}fa(220884,219810,122,224821);B()}break q}ma=f,na=me(a),H[ma+564|0]=na;te(a,3);break o}te(a,w);break o}if(!b)break o}Fr(f);n=b;break a}te(a,(w+ka|0)-J[a+28>>2]|0);if(J[f+376>>2]<20)continue;break}break}fa(223217,220174,692,223198);B()}Fr(f);break a}fa(222919,220174,484,223198);B()}fa(222919,220174,454,223198);B()}fa(222265,220174,435,223198);B()}fa(221812,220174,430,223198);B()}Fr(f);break a}fa(221232,220174,374,223198);B()}fa(219483,220174,335,223198);B()}te(a,(T+ja|0)-J[a+ +4>>2]+P(e,80)>>1]=c}c=ad(a);i=P(e,80);I[(i+J[d+4>>2]|0)+2>>1]=c;b=0;if((c-2&65535)>>>0>=18){fa(219031,219826,113,224837);B()}Bk:{while(1){c=ad(a);E=b<<1;I[(E+(J[d+4>>2]+i|0)|0)+4>>1]=c;c=ad(a);S=E;E=J[d+4>>2]+i|0;S=S+E|0;I[S+42>>1]=c;if(L[S+4>>1]>=256)break uk;if(c>>>0<256){b=b+1|0;if(b>>>0>=L[E+2>>1])break Bk;continue}break}fa(221530,219826,123,224837);B()}e=e+1|0;if(e>>>0>1])continue;break}}Ck:{if((w-4|0)<=(J[a+28>>2]-h|0))break Ck;c=-509;if((Fc(a)|0)!=1131574816)break wk;c=-510;if((ad(a)| +0)!=4)break wk;c=Fc(a);b=L[d>>1];if((c|0)!=(b|0))break vk;if(!b)break Ck;c=0;while(1){b=ad(a);i=P(c,80);I[i+J[d+4>>2]>>1]=b;e=ad(a);Dk:{Ek:{if((e|0)==L[(i+J[d+4>>2]|0)+2>>1]){b=0;if((e|0)>0)break Ek;break Dk}fa(222450,219826,153,224837);B()}while(1){Fk:{h=ad(a);j=ad(a);o=h;h=(i+J[d+4>>2]|0)+(b<<1)|0;if((o|0)!=L[h+4>>1]|(j|0)!=L[h+42>>1])break Fk;b=b+1|0;if((e|0)!=(b|0))continue;break Dk}break}fa(222840,219826,165,224837);B()}c=c+1|0;if(c>>>0>1])continue;break}}H[f+540|0]=1;c=0}b=c;break tk}fa(221923, +219826,142,224837);B()}fa(220900,219826,122,224837);B()}break q}ma=f,na=ue(a),H[ma+564|0]=na;Be(a,3);break o}Be(a,w);break o}if(!b)break o}vs(f);n=b;break a}Be(a,(w+ka|0)-J[a+28>>2]|0);if(J[f+376>>2]<20)continue;break}break}fa(223233,220190,692,223214);B()}vs(f);break a}fa(222935,220190,484,223214);B()}fa(222935,220190,454,223214);B()}fa(222281,220190,435,223214);B()}fa(221828,220190,430,223214);B()}vs(f);break a}fa(221248,220190,374,223214);B()}fa(219499,220190,335,223214);B()}Be(a,(T+ja|0)-J[a+ 28>>2]|0);n=0;f=L[a+632>>1];d=f<<16>>16;if((d|0)<=0)break a;c=J[a+636>>2];Gk:{if(!(f&1)){b=0;break Gk}b=0;Hk:{Ik:{f=f-1|0;e=P(f,600);a=e+c|0;switch(J[a>>2]){case 0:break Hk;case 2:break Ik;default:break Gk}}b=a;break Gk}J[(c+e|0)+596>>2]=0}if((d|0)==1)break a;while(1){Jk:{Kk:{Lk:{Mk:{d=f-1|0;e=P(d,600);a=e+c|0;switch(J[a>>2]){case 1:break Kk;case 2:break Lk;case 0:break Mk;default:break Jk}}J[(c+e|0)+596>>2]=b;break Jk}b=a;break Jk}b=0}Nk:{Ok:{Pk:{Qk:{f=f-2|0;e=P(f,600);a=e+c|0;switch(J[a>>2]){case 0:break Ok; -case 2:break Pk;case 1:break Qk;default:break Nk}}b=0;break Nk}b=a;break Nk}J[(c+e|0)+596>>2]=b}if(d>>>0>1)continue;break}}bc=z+16|0;return n}function EAa(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,u=0,v=Q(0),w=0,x=0,y=0;a:{b:{c:{d:{e:switch(c-1|0){case 0:e=rc(976);J[695492]=0;c=qf(e,1);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c>>2]=45788;Hj(c,a);i=bc+-64|0;bc=i;k=Vk(c,b);f:{if(k)break f;d=(J[c+32>>2]+J[c+12>>2]|0)+(J[c+44>>2]<<2)|0;I[i+56>> -1]=0;I[i+58>>1]=0;f=J[c+12>>2];e=J[c+44>>2]<<2;I[i+50>>1]=K[c+494|0]?19778:5063245;d=Ej(c,d+14|0);I[i+52>>1]=d;I[i+54>>1]=d>>>16;d=Ej(c,(f+e|0)+14|0);I[i+60>>1]=d;I[i+62>>1]=d>>>16;if(!(J[c+44>>2]|!J[c+964>>2])){d=J[c+32>>2];J[i+24>>2]=J[c+28>>2];J[i+28>>2]=d;d=J[c+24>>2];f=J[c+20>>2];J[i+16>>2]=f;J[i+20>>2]=d;d=J[c+48>>2];J[i+40>>2]=J[c+44>>2];J[i+44>>2]=d;d=J[c+40>>2];J[i+32>>2]=J[c+36>>2];J[i+36>>2]=d;e=J[c+16>>2];d=J[c+12>>2];J[i+24>>2]=0;J[i+8>>2]=d;J[i+12>>2]=e;I[i+22>>1]=32;f=P(f,(J[i+12>> -2]<<5|31)/32|0)<<2;J[i+28>>2]=f;d=Ej(c,(d+f|0)+14|0);I[i+52>>1]=d;I[i+54>>1]=d>>>16;d=i+8|0;bq(c,d);gc[J[J[b>>2]+16>>2]](b,i+50|0,14,1)|0;gc[J[J[b>>2]+16>>2]](b,d,40,1)|0;e=rN(c);if(J[i+16>>2]<=0)break f;while(1){f=0;d=df(c,j);if(J[i+12>>2]>0)while(1){gc[J[J[b>>2]+16>>2]](b,d,3,1)|0;gc[J[J[b>>2]+16>>2]](b,e,1,1)|0;e=e+1|0;d=d+3|0;f=f+1|0;if((f|0)>2])continue;break}j=j+1|0;if((j|0)>2])continue;break}break f}gc[J[J[b>>2]+16>>2]](b,i+50|0,14,1)|0;f=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<< +case 2:break Pk;case 1:break Qk;default:break Nk}}b=0;break Nk}b=a;break Nk}J[(c+e|0)+596>>2]=b}if(d>>>0>1)continue;break}}fc=z+16|0;return n}function lFa(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,u=0,v=Q(0),w=0,x=0,y=0;a:{b:{c:{d:{e:switch(c-1|0){case 0:e=vc(976);J[699344]=0;c=xf(e,1);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c>>2]=45804;ck(c,a);i=fc+-64|0;fc=i;k=sl(c,b);f:{if(k)break f;d=(J[c+32>>2]+J[c+12>>2]|0)+(J[c+44>>2]<<2)|0;I[i+56>> +1]=0;I[i+58>>1]=0;f=J[c+12>>2];e=J[c+44>>2]<<2;I[i+50>>1]=K[c+494|0]?19778:5063245;d=$j(c,d+14|0);I[i+52>>1]=d;I[i+54>>1]=d>>>16;d=$j(c,(f+e|0)+14|0);I[i+60>>1]=d;I[i+62>>1]=d>>>16;if(!(J[c+44>>2]|!J[c+964>>2])){d=J[c+32>>2];J[i+24>>2]=J[c+28>>2];J[i+28>>2]=d;d=J[c+24>>2];f=J[c+20>>2];J[i+16>>2]=f;J[i+20>>2]=d;d=J[c+48>>2];J[i+40>>2]=J[c+44>>2];J[i+44>>2]=d;d=J[c+40>>2];J[i+32>>2]=J[c+36>>2];J[i+36>>2]=d;e=J[c+16>>2];d=J[c+12>>2];J[i+24>>2]=0;J[i+8>>2]=d;J[i+12>>2]=e;I[i+22>>1]=32;f=P(f,(J[i+12>> +2]<<5|31)/32|0)<<2;J[i+28>>2]=f;d=$j(c,(d+f|0)+14|0);I[i+52>>1]=d;I[i+54>>1]=d>>>16;d=i+8|0;Uq(c,d);kc[J[J[b>>2]+16>>2]](b,i+50|0,14,1)|0;kc[J[J[b>>2]+16>>2]](b,d,40,1)|0;e=LO(c);if(J[i+16>>2]<=0)break f;while(1){f=0;d=mf(c,j);if(J[i+12>>2]>0)while(1){kc[J[J[b>>2]+16>>2]](b,d,3,1)|0;kc[J[J[b>>2]+16>>2]](b,e,1,1)|0;e=e+1|0;d=d+3|0;f=f+1|0;if((f|0)>2])continue;break}j=j+1|0;if((j|0)>2])continue;break}break f}kc[J[J[b>>2]+16>>2]](b,i+50|0,14,1)|0;f=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<< 16|K[c+19|0]<<24);d=J[c+4>>2];e=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=e>>>16;H[d+3|0]=e>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;f=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24);e=K[c+44|0]|K[c+45|0]<<8|(K[c+46|0]<<16|K[c+47|0]<<24);H[d+32|0]=e;H[d+33|0]=e>>>8;H[d+34|0]=e>>>16;H[d+35|0]=e>>>24;H[d+36|0]=f;H[d+37|0]=f>>>8;H[d+38|0]=f>>>16;H[d+39|0]=f>>>24;f=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);e=K[c+36|0]|K[c+ 37|0]<<8|(K[c+38|0]<<16|K[c+39|0]<<24);H[d+24|0]=e;H[d+25|0]=e>>>8;H[d+26|0]=e>>>16;H[d+27|0]=e>>>24;H[d+28|0]=f;H[d+29|0]=f>>>8;H[d+30|0]=f>>>16;H[d+31|0]=f>>>24;f=K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24);e=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);H[d+16|0]=e;H[d+17|0]=e>>>8;H[d+18|0]=e>>>16;H[d+19|0]=e>>>24;H[d+20|0]=f;H[d+21|0]=f>>>8;H[d+22|0]=f>>>16;H[d+23|0]=f>>>24;f=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);e=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<< -24);H[d+8|0]=e;H[d+9|0]=e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;H[d+12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;bq(c,J[c+4>>2]);gc[J[J[b>>2]+16>>2]](b,J[c+4>>2],(J[c+32>>2]+J[c+12>>2]|0)+(J[c+44>>2]<<2)|0,1)|0;bq(c,J[c+4>>2])}bc=i- -64|0;if(k^1)break c;break b;case 4:e=rc(980);J[695492]=0;c=qf(e,5);f=J[695492];J[695492]=0;if((f|0)==1)break d;J[c+976>>2]=0;J[c>>2]=45832;Hj(c,a);e=bc-1088|0;bc=e;g:{h:{i:{j:{k:{if(Vk(c,b))break k;i=J[c+4>>2];f=J[c+44>>2];k=i?f?i+40|0:0:0;o=L[c+26>>1];if(!k& +24);H[d+8|0]=e;H[d+9|0]=e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;H[d+12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;Uq(c,J[c+4>>2]);kc[J[J[b>>2]+16>>2]](b,J[c+4>>2],(J[c+32>>2]+J[c+12>>2]|0)+(J[c+44>>2]<<2)|0,1)|0;Uq(c,J[c+4>>2])}fc=i- -64|0;if(k^1)break c;break b;case 4:e=vc(980);J[699344]=0;c=xf(e,5);f=J[699344];J[699344]=0;if((f|0)==1)break d;J[c+976>>2]=0;J[c>>2]=45848;ck(c,a);e=fc-1088|0;fc=e;g:{h:{i:{j:{k:{if(sl(c,b))break k;i=J[c+4>>2];f=J[c+44>>2];k=i?f?i+40|0:0:0;o=L[c+26>>1];if(!k& o>>>0<9)break k;d=J[c+20>>2];g=J[c+16>>2];m=J[c+32>>2];h=J[c+964>>2]!=0;I[e+1086>>1]=1;I[e+1082>>1]=0;I[e+1084>>1]=1;h=h&!f;m=h?P(d,g)<<2:m;J[c+976>>2]=22;J[e+1076>>2]=22;o=h?32:o;I[e+1070>>1]=o;I[e+1068>>1]=0;H[e+1067|0]=0;H[e+1064|0]=g;H[e+1066|0]=f;p=(g+31|0)/32<<2;h=P(p,d);i=(m+(h+(f<<2)|0)|0)+40|0;J[e+1072>>2]=i;H[e+1065|0]=d;f=e+1056|0;J[f>>2]=0;J[f+4>>2]=0;J[e+1048>>2]=0;J[e+1052>>2]=0;J[e+1044>>2]=m;J[e+1040>>2]=0;I[e+1038>>1]=o;I[e+1036>>1]=1;J[e+1032>>2]=d<<1;J[e+1028>>2]=g;J[e+1024>>2]= -40;g=nO(e+48|0,c,1,1,1);J[695492]=0;o=Gx(e+20|0,0,0);d=J[695492];J[695492]=0;l:{m:{n:{if((d|0)!=1){if(!(J[c+20>>2]<256&J[c+16>>2]<=255)){I[e+1064>>1]=0;J[695492]=0;$(52,o|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;ga(51,g|0,o|0,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;i=J[o+4>>2]?J[o+8>>2]:-1;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[e+1072>>2]=i}J[695492]=0;d=I[e+1084>>1];f=K[c+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break i;I[e+1084>>1]=(f?d:d<<8|(d& -65280)>>>8)<<16>>16;J[695492]=0;d=I[e+1086>>1];f=K[c+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break i;I[e+1086>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;d=J[J[b>>2]+16>>2];J[695492]=0;ha(d|0,b|0,e+1082|0,6,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;d=I[e+1084>>1];f=K[c+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break i;I[e+1084>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[695492]=0;d=I[e+1086>>1];f=K[c+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break i;I[e+1086>>1]=(f?d:d<<8|(d&65280)>>> -8)<<16>>16;J[695492]=0;d=I[e+1068>>1];f=K[c+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break i;I[e+1068>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[695492]=0;d=I[e+1070>>1];f=K[c+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break i;I[e+1070>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[695492]=0;d=Ej(c,J[e+1072>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break i;J[e+1072>>2]=d;J[695492]=0;d=Ej(c,J[e+1076>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break i;J[e+1076>>2]=d;d=J[J[b>>2]+16>>2];J[695492]=0;ha(d|0,b|0,e+1064| -0,16,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;d=I[e+1068>>1];f=K[c+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break i;I[e+1068>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[695492]=0;d=I[e+1070>>1];f=K[c+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break i;I[e+1070>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[695492]=0;d=Ej(c,J[e+1072>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break i;J[e+1072>>2]=d;J[695492]=0;d=Ej(c,J[e+1076>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break i;J[e+1076>>2]=d;J[c+ -976>>2]=J[c+976>>2]+i;d=1;if(!(K[e+1064|0]|K[e+1065|0])){J[695492]=0;f=J[o+4>>2];k=J[695492];J[695492]=0;if((k|0)==1)break i;k=J[J[b>>2]+16>>2];J[695492]=0;ha(k|0,b|0,f|0,i|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;break l}J[695492]=0;d=e+1024|0;bq(c,d);f=J[695492];J[695492]=0;if((f|0)==1)break i;f=J[J[b>>2]+16>>2];J[695492]=0;ha(f|0,b|0,d|0,40,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;bq(c,d);d=J[695492];J[695492]=0;if((d|0)==1)break i;i=J[c+336>>2];J[695492]=0;UN(e+16| -0,c);d=J[695492];J[695492]=0;if((d|0)==1)break i;o:{if(!k)break o;if((i|0)>=0){d=K[c+336|0];J[695492]=0;_p(c,d,0,0,0,0);d=J[695492];J[695492]=0;if((d|0)==1)break i}d=J[J[b>>2]+16>>2];f=J[c+44>>2];J[695492]=0;ha(d|0,b|0,k|0,f<<2,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;if((i|0)<0)break o;d=K[c+336|0];f=J[e+16>>2];J[e+12>>2]=f;J[695492]=0;J[e+4>>2]=f;Qx(c,d,e+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break i}J[695492]=0;d=J[c+964>>2];f=J[695492];J[695492]=0;if((f|0)==1)break i;if(!(!J[c+44>> -2]&(d|0)!=0))break n;f=zc(m);if(J[c+20>>2]>0){d=f;while(1){J[695492]=0;k=df(c,j);l=J[695492];J[695492]=0;p:{if((l|0)!=1){l=0;if(J[c+16>>2]<=0)break p;while(1){q:{H[d|0]=K[k|0];H[d+1|0]=K[k+1|0];H[d+2|0]=K[k+2|0];J[695492]=0;n=Cl(c,l,j);q=J[695492];J[695492]=0;if((q|0)==1)break q;H[d+3|0]=n;d=d+4|0;k=k+3|0;l=l+1|0;if((l|0)>2])continue;break p}break}break i}break i}j=j+1|0;if((j|0)>2])continue;break}}d=J[J[b>>2]+16>>2];J[695492]=0;ha(d|0,b|0,f|0,m|0,1)|0;d=J[695492];J[695492]=0;if((d| -0)!=1){qc(f);break m}break i}d=Z()|0;break h}d=J[c+56>>2];f=J[J[b>>2]+16>>2];J[695492]=0;ha(f|0,b|0,d|0,m|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i}f=bd(h,1);if(f){J[695492]=0;j=qN(c);d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;m=J[c+964>>2]!=0;d=J[695492];J[695492]=0;r:{if((d|0)!=1){s:{if(J[c+20>>2]<=0)break s;l=J[c+16>>2];if((l|0)<=0)break s;k=0;while(1){t:{if((l|0)<=0)break t;n=f+P(k,p)|0;d=0;if(j){while(1){u:{l=0;if(m){J[695492]=0;l=Cl(c,d,k);q=J[695492];J[695492]=0;if((q| -0)==1)break u;l=!l}J[695492]=0;q=e+8|0;tm(q,c,d,k,1);r=J[695492];J[695492]=0;if((r|0)==1)break i;J[695492]=0;r=K[e+11|0];Ik(q,c,d,k,0);q=J[695492];J[695492]=0;if((q|0)==1)break i;q=n+(d>>>3|0)|0;s=(d^-1)&7;t=K[q|0]&Hzb(-2,s);l=r?l:1;H[q|0]=((i|0)>=0?J[e+8>>2]==J[e+16>>2]?1:l:l)<>2];if((d|0)<(l|0))continue;break t}break}break i}v:{while(1){l=0;if(m){J[695492]=0;l=Cl(c,d,k);q=J[695492];J[695492]=0;if((q|0)==1)break v;l=!l}J[695492]=0;Ik(e+8|0,c,d,k,0);q=J[695492];J[695492]=0;if((q| -0)!=1){q=n+(d>>>3|0)|0;r=(d^-1)&7;s=K[q|0]&Hzb(-2,r);H[q|0]=((i|0)>=0?J[e+8>>2]==J[e+16>>2]?1:l:l)<>2];if((d|0)>=(l|0))break t;continue}break}break i}break i}k=k+1|0;if((k|0)>2])continue;break}}i=J[J[b>>2]+16>>2];J[695492]=0;d=1;ha(i|0,b|0,f|0,h|0,1)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break r}break i}qc(f);break l}d=0}un(o);J[g>>2]=1032;J[695492]=0;$(13,g|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[695492]=0;$(14,g|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j}bc= -e+1088|0;break g}ea(0)|0;yc();B()}d=Z()|0;un(o)}mj(g);ba(d|0);B()}if(d)break c;break b;case 5:e=rc(988);J[695492]=0;c=qf(e,6);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c+984>>2]=0;H[c+980|0]=0;J[c+976>>2]=0;J[c>>2]=47780;Hj(c,a);w:{x:{y:{z:{if(!b){qd(c+72|0,46532,255);break z}if(!J[c+4>>2]){qd(c+72|0,46665,255);break z}A:{d=J[c+976>>2];if(d)break A;d=r6(b,46683);J[c+976>>2]=d;if(d)break A;qd(c+72|0,46785,255);break z}b=J[c+984>>2];if(b){H[c+980|0]=1;f=1}else f=K[c+980|0]!=0;p=f;e=b+1|0;J[c+984>> -2]=e;f=d;b=0;m=bc-1456|0;bc=m;l=J[c+16>>2];h=J[c+20>>2];g=L[c+26>>1];B:{if((g|0)==24){b=J[c+964>>2]!=0;g=b?32:24;n=b?4:3;j=(g>>>0)/(n>>>0)|0;o=2;break B}n=(g|0)==24?3:(g|0)==32?3:1;j=(g>>>0)/(n>>>0)|0;d=J[c+4>>2];d=d?J[c+44>>2]?d+40|0:0:0;C:switch(g-1|0){case 0:if((XN(d,d+4|0)|0)>=0){g=1;break B}ug(m+416|0,c,0);g=1;ug(m+1452|0,c,1);J[m+380>>2]=K[m+1452|0]|K[m+1453|0]<<8|(K[m+1454|0]<<16|K[m+1455|0]<<24);Qx(c,0,m+380|0);d=J[m+416>>2];J[m+1448>>2]=d;J[m+376>>2]=d;Qx(c,1,m+376|0);if(J[c+32>>2]){d=J[c+ -56>>2];while(1){H[d|0]=K[d|0]^-1;d=d+1|0;b=b+1|0;if(b>>>0>2])continue;break}}break B;case 3:case 7:i=J[c+44>>2];if(!i){o=1;break B}while(1){o=3;b=K[d+2|0];if((b|0)!=(k|0)){k=1;break B}if((b|0)!=K[d+1|0]){k=1;break B}if((b|0)!=K[d|0]){k=1;break B}d=d+4|0;o=1;k=k+1|0;if((i|0)!=(k|0))continue;break}k=0;break B;case 31:break C;default:break B}o=2;g=32}i=(g|0)==8?J[c+964>>2]?2:n:n;b=J[c+4>>2];d=J[c+44>>2];D:{if(!(b?d?b+40|0:0:0))break D;tc(m+416|0,b?d?b+40|0:0:0,d<<2);n=J[c+44>>2];if(!n)break D; -d=0;b=0;while(1){d=(m+416|0)+(d<<2)|0;q=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=q;b=b+1|0;d=b&65535;if(n>>>0>d>>>0)continue;break}}J[m+368>>2]=l;$d(f,256,m+368|0);J[m+352>>2]=h;$d(f,257,m+352|0);J[m+336>>2]=i;$d(f,277,m+336|0);J[m+320>>2]=j;$d(f,258,m+320|0);J[m+304>>2]=o;$d(f,262,m+304|0);J[m+288>>2]=1;$d(f,284,m+288|0);J[m+272>>2]=1;$d(f,274,m+272|0);q=gc[J[f+576>>2]](f,-1)|0;J[m+256>>2]=q;$d(f,278,m+256|0);J[m+240>>2]=2;$d(f,296,m+240|0);O[m+224>>3]=Q(J[c+364>>2]);$d(f,282,m+224|0);O[m+208>>3]=Q(J[c+368>> -2]);$d(f,283,m+208|0);E:{if(p){J[m+176>>2]=e;b=m+384|0;Vf(b,47417,m+176|0);J[m+160>>2]=2;$d(f,254,m+160|0);J[m+148>>2]=e;J[m+144>>2]=e;$d(f,297,m+144|0);J[m+128>>2]=b;$d(f,285,m+128|0);break E}J[m+192>>2]=0;$d(f,254,m+192|0)}if(k){e=zc(1536);k=e+1024|0;o=e+512|0;b=255;while(1){d=b;n=d<<1;j=(m+416|0)+(d<<2)|0;I[n+k>>1]=P(K[j+2|0],257);I[n+o>>1]=P(K[j+1|0],257);I[e+n>>1]=P(K[j|0],257);b=d-1|0;if(d)continue;break}J[m+120>>2]=k;J[m+116>>2]=o;J[m+112>>2]=e;$d(f,320,m+112|0);qc(e)}F:{G:{H:{I:{J:{if(!eq(c, -6)){d=4;K:switch(g-1|0){default:d=1;break;case 3:case 7:break H;case 23:case 31:break J;case 0:break K}J[m>>2]=d;$d(f,259,m);break F}b=eq(c,6)&65535;J[m+96>>2]=b;$d(f,259,m+96|0);switch(b-5|0){case 0:break G;case 2:break I;default:break F}}J[m+80>>2]=7;$d(f,259,m+80|0)}v=Q(N[c+344>>2]+Q(.5));L:{if(v=Q(0)){b=~~v>>>0;break L}b=0}J[m+64>>2]=b;$d(f,65537,m- -64|0);J[m+48>>2]=q+7&-8;$d(f,278,m+48|0);break F}J[m+32>>2]=5;$d(f,259,m+32|0)}if(g>>>0<8)break F;J[m+16>>2]=2;$d(f,317,m+16|0)}d= -1;M:{N:{O:switch(g-1|0){case 0:case 3:case 7:if((i|0)==1){k=zc(J[c+52>>2]);if(!k){d=0;break M}if(!h)break N;b=0;while(1){d=J[c+52>>2];e=Nu(f,tc(k,J[c+56>>2]+P(d,h+(b^-1)|0)|0,d),b);d=(e|0)!=-1;if((e|0)==-1)break N;b=b+1|0;if((h|0)!=(b|0))continue;break}break N}k=zc(l<<1);if(!k){d=0;break M}if(!h)break N;b=0;if(!l)while(1){e=Nu(f,k,b);d=(e|0)!=-1;if((e|0)==-1)break N;b=b+1|0;if((h|0)!=(b|0))continue;break N}while(1){e=h+(b^-1)|0;d=0;while(1){i=(d<<1)+k|0;w=i,x=Fo(c,d,e),H[w|0]=x;w=i,x=Cl(c,d,e),H[w+ -1|0]=x;d=d+1|0;if((l|0)!=(d|0))continue;break}e=Nu(f,k,b);d=(e|0)!=-1;if((e|0)==-1)break N;b=b+1|0;if((h|0)!=(b|0))continue;break}break N;case 23:k=zc(J[c+52>>2]);if(!k){d=0;break M}if(!h)break N;o=l&-4;i=l&3;n=l>>>0<4;g=0;while(1){b=J[c+52>>2];e=tc(k,J[c+56>>2]+P(b,h+(g^-1)|0)|0,b);P:{if(!l)break P;b=0;d=e;if(!n)while(1){j=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=j;j=K[d+3|0];H[d+3|0]=K[d+5|0];H[d+5|0]=j;j=K[d+6|0];H[d+6|0]=K[d+8|0];H[d+8|0]=j;j=K[d+9|0];H[d+9|0]=K[d+11|0];H[d+11|0]=j;d=d+12|0;b=b+4|0;if((o| -0)!=(b|0))continue;break}b=0;if(!i)break P;while(1){j=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=j;d=d+3|0;b=b+1|0;if((i|0)!=(b|0))continue;break}}b=Nu(f,e,g);d=(b|0)!=-1;if((b|0)==-1)break N;g=g+1|0;if((h|0)!=(g|0))continue;break}break N;case 31:break O;default:break M}k=zc((J[c+52>>2]<<2>>>0)/3|0);if(!k){d=0;break M}if(!h)break N;e=(l<<2)+k|0;i=P(l,3)+k|0;g=0;while(1){b=J[c+52>>2];j=h+(g^-1)|0;p=tc(k,J[c+56>>2]+P(b,j)|0,b);d=e;b=i;n=0;if(l)while(1){w=d-1|0,x=Cl(c,l+(n^-1)|0,j),H[w|0]=x;o=b-3|0;H[d-2|0]=K[o| -0];H[d-3|0]=K[b-2|0];d=d-4|0;H[d|0]=K[b-1|0];b=o;n=n+1|0;if((l|0)!=(n|0))continue;break}b=Nu(f,p,g);d=(b|0)!=-1;if((b|0)==-1)break N;g=g+1|0;if((h|0)!=(g|0))continue;break}}qc(k)}bc=m+1456|0;if(!d){qd(c+72|0,46886,255);break z}b=J[c+976>>2];break y}b=0;d=J[c+976>>2];if(!d)break w;ov(d);H[c+980|0]=0;J[c+976>>2]=0;f=c+984|0;b=0;break x}f=c+984|0;ov(b);H[c+980|0]=0;J[c+976>>2]=0;b=1}J[f>>2]=0}if(b)break c;break b;case 2:e=rc(1E3);J[695492]=0;c=uN(e);d=J[695492];J[695492]=0;if((d|0)==1)break d;Hj(c,a); -g=bc-784|0;bc=g;l=zc(40);J[l>>2]=0;J[695492]=0;f=Vk(c,b);h=J[695492];J[695492]=0;Q:{R:{if((h|0)==1)break R;n=4;e=-1;S:{T:{U:{V:{if(!h)break V;d=J[695493];if(!d)break V;e=Jc(J[h>>2],l,4);if(!e)break U;cc=d}d=cc;W:{if((e|0)==1)break W;d=0;if(f)break S;X:{Y:{r=c+44|0;if(!J[r>>2])break Y;J[695492]=0;f=Do(c);h=J[695492];J[695492]=0;if((h|0)==1)break R;e=-1;Z:{if(!h)break Z;d=J[695493];if(!d)break Z;e=Jc(J[h>>2],l,4);if(!e)break U;cc=d}d=cc;if((e|0)==1)break X;if(f)break Y;b=K[43571]|K[43572]<<8|(K[43573]<< -16|K[43574]<<24);H[c+111|0]=b;H[c+112|0]=b>>>8;H[c+113|0]=b>>>16;H[c+114|0]=b>>>24;b=K[43568]|K[43569]<<8|(K[43570]<<16|K[43571]<<24);d=K[43564]|K[43565]<<8|(K[43566]<<16|K[43567]<<24);H[c+104|0]=d;H[c+105|0]=d>>>8;H[c+106|0]=d>>>16;H[c+107|0]=d>>>24;H[c+108|0]=b;H[c+109|0]=b>>>8;H[c+110|0]=b>>>16;H[c+111|0]=b>>>24;b=K[43560]|K[43561]<<8|(K[43562]<<16|K[43563]<<24);d=K[43556]|K[43557]<<8|(K[43558]<<16|K[43559]<<24);H[c+96|0]=d;H[c+97|0]=d>>>8;H[c+98|0]=d>>>16;H[c+99|0]=d>>>24;H[c+100|0]=b;H[c+101| -0]=b>>>8;H[c+102|0]=b>>>16;H[c+103|0]=b>>>24;b=K[43552]|K[43553]<<8|(K[43554]<<16|K[43555]<<24);d=K[43548]|K[43549]<<8|(K[43550]<<16|K[43551]<<24);H[c+88|0]=d;H[c+89|0]=d>>>8;H[c+90|0]=d>>>16;H[c+91|0]=d>>>24;H[c+92|0]=b;H[c+93|0]=b>>>8;H[c+94|0]=b>>>16;H[c+95|0]=b>>>24;b=K[43544]|K[43545]<<8|(K[43546]<<16|K[43547]<<24);d=K[43540]|K[43541]<<8|(K[43542]<<16|K[43543]<<24);H[c+80|0]=d;H[c+81|0]=d>>>8;H[c+82|0]=d>>>16;H[c+83|0]=d>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>>16;H[c+87|0]=b>>>24;b=K[43536]| -K[43537]<<8|(K[43538]<<16|K[43539]<<24);d=K[43532]|K[43533]<<8|(K[43534]<<16|K[43535]<<24);H[c+72|0]=d;H[c+73|0]=d>>>8;H[c+74|0]=d>>>16;H[c+75|0]=d>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24;d=0;break S}d=J[J[b>>2]+24>>2];J[695492]=0;k=$(d|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break R;e=-1;_:{if(!h)break _;d=J[695493];if(!d)break _;e=Jc(J[h>>2],l,4);if(!e)break U;cc=d}d=cc;if((e|0)==1)break X;J[695492]=0;m=c+72|0;J[g+348>>2]=m;f=Jp(g+60|0);h=J[695492];J[695492]=0;if((h| -0)==1)break R;e=-1;$:{if(!h)break $;d=J[695493];if(!d)break $;e=Jc(J[h>>2],l,4);if(!e)break U;cc=d}q=c+52|0;j=g+348|0;d=cc;if((e|0)==1)break W;J[g+60>>2]=61;J[g+352>>2]=f;l=zf(g+192|0,1,l,4);n=cc;d=0}}aa:while(1){f=d;if(d){d=J[j>>2];J[695492]=0;ff(m,d);h=J[695492];J[695492]=0;e=-1;ba:{if(!h)break ba;d=J[695493];if(!d)break ba;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;J[695492]=0;_(93,g+352|0);h=J[695492];J[695492]=0;if((h|0)==1)break R;e=-1;ca:{if(!h)break ca;d=J[695493];if(!d)break ca; -e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;break T}J[695492]=0;ca(94,g+352|0,80,432);h=J[695492];J[695492]=0;if((h|0)==1)break R;e=-1;da:{if(!h)break da;d=J[695493];if(!d)break da;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;J[g+44>>2]=62;J[g+40>>2]=63;J[g+36>>2]=64;J[g+32>>2]=65;J[g+28>>2]=66;J[g+16>>2]=67;J[g+12>>2]=68;J[g+8>>2]=69;J[g+48>>2]=b;J[g+20>>2]=0;J[g+24>>2]=0;J[695492]=0;i=$(27,4096)|0;h=J[695492];J[695492]=0;if((h|0)==1)break R;e=-1;ea:{if(!h)break ea; -d=J[695493];if(!d)break ea;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;J[g+52>>2]=i;J[695492]=0;J[g+376>>2]=g;i=J[c+16>>2];h=J[695492];J[695492]=0;e=-1;fa:{if(!h)break fa;d=J[695493];if(!d)break fa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;ga:{if((h|0)==1)break ga;J[695492]=0;J[g+380>>2]=i;i=J[c+20>>2];h=J[695492];J[695492]=0;e=-1;ha:{if(!h)break ha;d=J[695493];if(!d)break ha;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga; -J[695492]=0;J[g+384>>2]=i;i=Do(c);h=J[695492];J[695492]=0;e=-1;ia:{if(!h)break ia;d=J[695493];if(!d)break ia;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;J[695492]=0;J[g+392>>2]=i?1:2;J[g+388>>2]=i?1:3;_(96,g+352|0);h=J[695492];J[695492]=0;e=-1;ja:{if(!h)break ja;d=J[695493];if(!d)break ja;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;J[695492]=0;i=eq(c,3);h=J[695492];J[695492]=0;e=-1;ka:{if(!h)break ka;d=J[695493];if(!d)break ka; -e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;if(i&2)J[g+564>>2]=1;if(i&8)J[g+568>>2]=1;if(i&4){J[695492]=0;da(97,g+352|0,1);h=J[695492];J[695492]=0;e=-1;la:{if(!h)break la;d=J[695493];if(!d)break la;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga}if(i&64)J[g+580>>2]=J[c+988>>2];J[695492]=0;v=Q(N[c+344>>2]+Q(.5));ma:{if(v=Q(0)){o=~~v>>>0;break ma}o=0}h=J[695492];J[695492]=0;e=-1;na:{if(!h)break na;d=J[695493]; -if(!d)break na;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;J[695492]=0;ca(98,g+352|0,o|0,i&1);h=J[695492];J[695492]=0;e=-1;oa:{if(!h)break oa;d=J[695493];if(!d)break oa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;if(i&16){J[695492]=0;_(99,g+352|0);h=J[695492];J[695492]=0;e=-1;pa:{if(!h)break pa;d=J[695493];if(!d)break pa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga}d=J[g+436>>2]; -J[d+8>>2]=2;J[d+12>>2]=2;J[d+184>>2]=1;J[d+188>>2]=1;J[d+96>>2]=1;J[d+100>>2]=1;if(i&4096){J[d+184>>2]=1;J[d+188>>2]=1;J[d+96>>2]=1;J[d+100>>2]=1;J[d+8>>2]=2;J[d+12>>2]=1}if(i&8192){J[d+184>>2]=1;J[d+188>>2]=1;J[d+96>>2]=1;J[d+100>>2]=1;J[d+8>>2]=1;J[d+12>>2]=1}J[695492]=0;H[g+602|0]=1;i=J[c+364>>2];h=J[695492];J[695492]=0;e=-1;qa:{if(!h)break qa;d=J[695493];if(!d)break qa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;J[695492]=0;I[g+604>>1]=i;i=J[c+368>>2];h= -J[695492];J[695492]=0;e=-1;ra:{if(!h)break ra;d=J[695493];if(!d)break ra;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;J[695492]=0;I[g+606>>1]=i;da(101,g+352|0,1);h=J[695492];J[695492]=0;e=-1;sa:{if(!h)break sa;d=J[695493];if(!d)break sa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;d=J[J[g+356>>2]+8>>2];p=J[q>>2];J[695492]=0;s=ha(d|0,g+352|0,1,p+8|0,1)|0;h=J[695492];J[695492]=0;e=-1;ta:{if(!h)break ta;d=J[695493];if(!d)break ta; -e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break ga;J[695492]=0;df(c,0);h=J[695492];J[695492]=0;e=-1;ua:{if(!h)break ua;d=J[695493];if(!d)break ua;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;va:{if((h|0)==1)break va;J[695492]=0;o=J[c+20>>2];h=J[695492];J[695492]=0;e=-1;wa:{if(!h)break wa;d=J[695493];if(!d)break wa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;J[695492]=0;i=df(c,0);h=J[695492];J[695492]=0;e=-1; -xa:{if(!h)break xa;d=J[695493];if(!d)break xa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;J[695492]=0;t=J[c+52>>2];h=J[695492];J[695492]=0;e=-1;ya:{if(!h)break ya;d=J[695493];if(!d)break ya;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;J[695492]=0;u=J[c+20>>2];h=J[695492];J[695492]=0;e=-1;za:{if(!h)break za;d=J[695493];if(!d)break za;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;Aa:{if((p| -0)>0){e=i+P(t,u-1|0)|0;while(1){if(M[g+612>>2]>=M[g+384>>2])break Aa;Ba:{if(!e)break Ba;u=J[s>>2];if(!u)break Ba;J[695492]=0;t=J[c+52>>2];h=J[695492];J[695492]=0;i=-1;Ca:{if(!h)break Ca;d=J[695493];if(!d)break Ca;i=Jc(J[h>>2],l,n);if(!i)break U;cc=d}d=cc;if((i|0)==1)continue aa;if((h|0)==1)break va;tc(u,e,(p|0)>(t|0)?t:p)}if(!J[r>>2]){d=J[s>>2];J[695492]=0;Ir(c,d,p);h=J[695492];J[695492]=0;i=-1;Da:{if(!h)break Da;d=J[695493];if(!d)break Da;i=Jc(J[h>>2],l,n);if(!i)break U;cc=d}d=cc;if((i|0)==1)continue aa; -if((h|0)==1)break va}o=o-1|0;if((o|0)>0){J[695492]=0;t=J[c+52>>2];h=J[695492];J[695492]=0;i=-1;Ea:{if(!h)break Ea;d=J[695493];if(!d)break Ea;i=Jc(J[h>>2],l,n);if(!i)break U;cc=d}d=cc;if((i|0)==1)continue aa;if((h|0)==1)break va;e=e-t|0}J[695492]=0;ga(102,g+352|0,s|0,1)|0;h=J[695492];J[695492]=0;i=-1;Fa:{if(!h)break Fa;d=J[695493];if(!d)break Fa;i=Jc(J[h>>2],l,n);if(!i)break U;cc=d}d=cc;if((i|0)==1)continue aa;if((h|0)!=1)continue;break}break va}while(1){if(M[g+612>>2]>=M[g+384>>2])break Aa;Ga:{if(!J[r>> -2]){d=J[s>>2];J[695492]=0;Ir(c,d,p);h=J[695492];J[695492]=0;e=-1;Ha:{if(!h)break Ha;d=J[695493];if(!d)break Ha;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue aa;if((h|0)==1)break Ga}o=o-1|0;if((o|0)>0){J[695492]=0;h=J[695492];J[695492]=0;e=-1;Ia:{if(!h)break Ia;d=J[695493];if(!d)break Ia;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue aa;if((h|0)==1)break Ga}J[695492]=0;ga(102,g+352|0,s|0,1)|0;h=J[695492];J[695492]=0;e=-1;Ja:{if(!h)break Ja;d=J[695493];if(!d)break Ja; -e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue aa;if((h|0)!=1)continue}break}break ga}J[695492]=0;_(103,g+352|0);h=J[695492];J[695492]=0;e=-1;Ka:{if(!h)break Ka;d=J[695493];if(!d)break Ka;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;J[695492]=0;_(93,g+352|0);h=J[695492];J[695492]=0;e=-1;La:{if(!h)break La;d=J[695493];if(!d)break La;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[c+976>>2];if(!(!d|!K[J[d>> -2]+460|0])){J[695492]=0;uO(d);h=J[695492];J[695492]=0;e=-1;Ma:{if(!h)break Ma;d=J[695493];if(!d)break Ma;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[J[b>>2]+20>>2];J[695492]=0;ga(d|0,b|0,k|0,0)|0;h=J[695492];J[695492]=0;e=-1;Na:{if(!h)break Na;d=J[695493];if(!d)break Na;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[c+976>>2];J[695492]=0;ga(58,d|0,b|0,2)|0;h=J[695492];J[695492]=0;e=-1;Oa:{if(!h)break Oa;d=J[695493]; -if(!d)break Oa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[J[b>>2]+20>>2];J[695492]=0;ga(d|0,b|0,k|0,0)|0;h=J[695492];J[695492]=0;e=-1;Pa:{if(!h)break Pa;d=J[695493];if(!d)break Pa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[c+976>>2];J[695492]=0;aa(105,d|0,b|0)|0;h=J[695492];J[695492]=0;e=-1;Qa:{if(!h)break Qa;d=J[695493];if(!d)break Qa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;if((h|0)== -1)break va}d=J[g+52>>2];if(!d)break T;J[695492]=0;qc(d);h=J[695492];J[695492]=0;e=-1;Ra:{if(!h)break Ra;d=J[695493];if(!d)break Ra;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue;break T}}f=Z()|0;d=J[g+52>>2];if(d){J[695492]=0;qc(d);h=J[695492];J[695492]=0;e=-1;Sa:{if(!h)break Sa;d=J[695493];if(!d)break Sa;e=Jc(J[h>>2],l,n);if(!e)break U;cc=d}d=cc;if((e|0)==1)continue}break}qc(l);ba(f|0);B()}qc(l);ef(h,d);B()}d=!f}b=d;qc(l);bc=g+784|0;break Q}a=Z()|0;qc(l);break a}if(b)break c;break b; -case 1:e=rc(1124);J[695492]=0;c=$(49,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;Hj(c,a);if(!Vk(c,b))Ta:{if(L[c+26>>1]>=9){m=bc-1168|0;bc=m;OL(c,b);d=Qc(J[c+1116>>2]);if(d){gc[J[J[b>>2]+44>>2]](b,33)|0;gc[J[J[b>>2]+44>>2]](b,254)|0;d=d>>>0>=255?255:d;gc[J[J[b>>2]+44>>2]](b,d)|0;gc[J[J[b>>2]+16>>2]](b,J[c+1116>>2],d,1)|0;gc[J[J[b>>2]+44>>2]](b,0)|0}e=b;g=WC(m+44|0);b=J[c+20>>2];d=J[c+16>>2];J[695492]=0;ma(78,g|0,d|0,b|0,8,0)|0;b=J[695492];J[695492]=0;Ua:{Va:{Wa:{Xa:{Ya:{Za:{if((b|0)==1)break Za; -J[695492]=0;J[g+336>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break Za;k=J[c+20>>2];n=J[c+16>>2];J[695492]=0;o=$(27,P(k,n)<<2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ya;if(!(!k|!n)){b=1;i=k;f=o;while(1){d=0;l=0;if(b){while(1){J[695492]=0;Ik(m+28|0,c,l,h,1);b=J[695492];J[695492]=0;if((b|0)==1)break Xa;H[f|0]=K[m+28|0];H[f+1|0]=K[m+29|0];H[f+2|0]=K[m+30|0];H[f+3|0]=K[m+31|0];f=f+4|0;d=J[c+16>>2];l=l+1|0;if(d>>>0>l>>>0)continue;break}i=J[c+20>>2]}b=d;h=h+1|0;if(i>>>0>h>>>0)continue;break}}J[695492]= -0;b=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Wa;f=Z()|0;break Va}f=Z()|0;break Va}f=Z()|0;break Va}f=Z()|0;break Va}J[b+8>>2]=k;J[b+4>>2]=n;J[b>>2]=o;d=b+12|0;J[m+36>>2]=d;J[m+32>>2]=d;J[m+28>>2]=b;J[m+24>>2]=0;J[695492]=0;ia(199,m+12|0,m+43|0,m+28|0,m+24|0);b=J[695492];J[695492]=0;_a:{$a:{if((b|0)!=1){k=J[J[m+12>>2]>>2];f=0;while(1){b=J[J[m+24>>2]+(f<<2)>>2];H[m+8|0]=b;H[m+9|0]=b>>>8;H[m+10|0]=b>>>16;H[m+11|0]=b>>>24;J[695492]=0;J[m+4>>2]=b;Qx(g,f&255,m+4|0);b=J[695492];J[695492]=0;if((b| -0)==1)break $a;f=f+1|0;if((f|0)!=256)continue;break}i=J[c+20>>2];if(!(!i|!J[c+16>>2])){l=J[k>>2];b=1;h=0;while(1){d=0;f=0;if(b){while(1){b=K[l|0];J[695492]=0;sm(g,f,h,b);b=J[695492];J[695492]=0;if((b|0)==1)break $a;l=l+1|0;d=J[c+16>>2];f=f+1|0;if(d>>>0>f>>>0)continue;break}i=J[c+20>>2]}b=d;h=h+1|0;if(i>>>0>h>>>0)continue;break}}qc(o);b=J[m+24>>2];if(b)qc(b);b=J[k>>2];if(b)qc(b);qc(k);J[695492]=0;J[g+396>>2]=0;J[g+392>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break $a;b=J[J[e>>2]+44>>2];J[695492]= -0;aa(b|0,e|0,33)|0;b=J[695492];J[695492]=0;if((b|0)==1)break $a;b=J[J[e>>2]+44>>2];J[695492]=0;aa(b|0,e|0,249)|0;b=J[695492];J[695492]=0;if((b|0)==1)break $a;H[g+976|0]=J[g+336>>2]!=-1;J[695492]=0;d=K[g+492|0];b=J[695492];J[695492]=0;if((b|0)==1)break $a;H[g+979|0]=J[g+336>>2];b=I[g+360>>1];H[g+977|0]=b;H[g+978|0]=b>>>8;H[g+976|0]=K[g+976|0]|d<<2&28;J[695492]=0;d=K[g+494|0];f=J[695492];J[695492]=0;if((f|0)==1)break $a;b=(d?b:b<<8|(b&65280)>>>8)<<16>>16;H[g+977|0]=b;H[g+978|0]=b>>>8;b=J[J[e>>2]+44>> -2];J[695492]=0;aa(b|0,e|0,4)|0;b=J[695492];J[695492]=0;if((b|0)==1)break $a;b=J[J[e>>2]+16>>2];J[695492]=0;ha(b|0,e|0,g+976|0,4,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break $a;b=(K[g+977|0]|K[g+978|0]<<8)<<16>>16;J[695492]=0;d=K[g+494|0];f=J[695492];J[695492]=0;if((f|0)==1)break $a;b=(d?b:b<<8|(b&65280)>>>8)<<16>>16;H[g+977|0]=b;H[g+978|0]=b>>>8;b=J[J[e>>2]+44>>2];J[695492]=0;aa(b|0,e|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break $a;J[695492]=0;ca(204,g|0,e|0,1);b=J[695492];J[695492]=0;if((b| -0)==1)break $a;b=J[J[e>>2]+44>>2];J[695492]=0;aa(b|0,e|0,59)|0;b=J[695492];J[695492]=0;if((b|0)==1)break $a;b=J[m+12>>2];if(b){J[m+16>>2]=b;qc(b)}b=J[m+28>>2];if(b){J[m+32>>2]=b;qc(b)}so(g);bc=m+1168|0;break Ua}f=Z()|0;break _a}f=Z()|0;a=J[m+12>>2];if(!a)break _a;J[m+16>>2]=a;qc(a)}a=J[m+28>>2];if(!a)break Va;J[m+32>>2]=a;qc(a)}so(g);ba(f|0);B()}d=1;break Ta}ab:{k=J[c+356>>2];if((k|0)<2)break ab;e=J[c+972>>2];if(!e)break ab;f=0;o=bc-1136|0;bc=o;bb:{cb:{db:{eb:{fb:{if(!b){qd(c+72|0,43611,255);break fb}if(!(!J[e>> -2]|(!e|(k|0)<=0))){gb:{while(1){d=e+(f<<2)|0;i=J[d>>2];if(!i){qd(c+72|0,44344,255);break fb}if(!J[i+4>>2]){qd(c+72|0,44673,255);break fb}if(J[J[d>>2]+44>>2]){f=f+1|0;if((k|0)==(f|0))break gb;continue}break}qd(c+72|0,44835,255);break fb}d=WC(o+12|0);f=J[e>>2];J[695492]=0;da(205,d|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break cb;J[695492]=0;da(206,d|0,b|0);f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[c+1120>>2];if((f|0)!=1){J[d+1120>>2]=((f|0)<=1?1:f)-1;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0, -b|0,33)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,255)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,11)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+16>>2];J[695492]=0;ha(f|0,b|0,45657,11,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,3)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,1)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break cb;i=J[J[b>>2]+44>>2];f=J[d+1120>>2];J[695492]=0;aa(i|0,b|0,f&255)|0;i=J[695492];J[695492]=0;if((i|0)==1)break cb;i=J[J[b>>2]+44>>2];J[695492]=0;aa(i|0,b|0,f>>>8&255)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb}J[695492]=0;i=K[d+492|0];f=J[695492];J[695492]=0;hb:{if((f|0)==1)break hb;J[695492]=0;f=K[c+492|0];m=J[695492];J[695492]=0;if((m|0)==1)break hb;J[695492]=0;H[d+492|0]=f;f=J[695492]; -J[695492]=0;if((f|0)==1)break hb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,33)|0;f=J[695492];J[695492]=0;if((f|0)==1)break hb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,249)|0;f=J[695492];J[695492]=0;if((f|0)==1)break hb;H[d+976|0]=J[d+336>>2]!=-1;J[695492]=0;m=K[d+492|0];f=J[695492];J[695492]=0;if((f|0)==1)break hb;H[d+979|0]=J[d+336>>2];f=I[d+360>>1];H[d+977|0]=f;H[d+978|0]=f>>>8;H[d+976|0]=K[d+976|0]|m<<2&28;J[695492]=0;m=K[d+494|0];g=J[695492];J[695492]=0;if((g|0)==1)break hb;f=(m?f:f<<8|(f&65280)>>> -8)<<16>>16;H[d+977|0]=f;H[d+978|0]=f>>>8;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break hb;f=J[J[b>>2]+16>>2];J[695492]=0;ha(f|0,b|0,d+976|0,4,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break hb;f=(K[d+977|0]|K[d+978|0]<<8)<<16>>16;J[695492]=0;m=K[d+494|0];g=J[695492];J[695492]=0;if((g|0)==1)break hb;f=(m?f:f<<8|(f&65280)>>>8)<<16>>16;H[d+977|0]=f;H[d+978|0]=f>>>8;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break hb;J[695492]= -0;H[d+492|0]=i;f=J[695492];J[695492]=0;if((f|0)!=1)break eb}break cb}qd(c+72|0,44228,255)}b=0;break db}f=Qc(J[c+1116>>2]);if(f){i=J[J[b>>2]+44>>2];J[695492]=0;aa(i|0,b|0,33)|0;i=J[695492];J[695492]=0;if((i|0)==1)break cb;i=J[J[b>>2]+44>>2];J[695492]=0;aa(i|0,b|0,254)|0;i=J[695492];J[695492]=0;if((i|0)==1)break cb;i=J[J[b>>2]+44>>2];J[695492]=0;f=f>>>0>=255?255:f;aa(i|0,b|0,f&255)|0;i=J[695492];J[695492]=0;if((i|0)==1)break cb;i=J[c+1116>>2];m=J[J[b>>2]+16>>2];J[695492]=0;ha(m|0,b|0,i|0,f|0,1)|0;f= -J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb}J[695492]=0;ca(204,d|0,b|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break cb;ib:{if((k|0)>=2){m=d+976|0;i=1;while(1){f=J[e+(i<<2)>>2];J[695492]=0;da(205,d|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break ib;J[695492]=0;g=K[d+492|0];f=J[695492];J[695492]=0;if((f|0)==1)break cb;J[695492]=0;f=K[c+492|0];h=J[695492];J[695492]=0;if((h|0)==1)break cb;J[695492]=0;H[d+492|0]= -f;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,33)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,249)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;H[d+976|0]=J[d+336>>2]!=-1;J[695492]=0;h=K[d+492|0];f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=I[d+360>>1];H[d+977|0]=f;H[d+978|0]=f>>>8;H[d+979|0]=J[d+336>>2];H[d+976|0]=K[d+976|0]|h<<2&28;J[695492]=0;h=K[d+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break cb;f=(h? -f:f<<8|(f&65280)>>>8)<<16>>16;H[d+977|0]=f;H[d+978|0]=f>>>8;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=J[J[b>>2]+16>>2];J[695492]=0;ha(f|0,b|0,m|0,4,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break cb;f=(K[d+977|0]|K[d+978|0]<<8)<<16>>16;J[695492]=0;h=K[d+494|0];l=J[695492];J[695492]=0;if((l|0)==1)break cb;f=(h?f:f<<8|(f&65280)>>>8)<<16>>16;H[d+977|0]=f;H[d+978|0]=f>>>8;f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,0)|0;f=J[695492];J[695492]=0;if((f|0)== -1)break cb;J[695492]=0;H[d+492|0]=g;f=J[695492];J[695492]=0;if((f|0)==1)break cb;J[695492]=0;ca(204,d|0,b|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break ib;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=J[J[b>>2]+44>>2];J[695492]=0;aa(f|0,b|0,59)|0;f=J[695492];J[695492]=0;b=1;if((f|0)==1)break cb;so(d);break db}break cb}bc=o+1136|0;break bb}a=Z()|0;so(d);ba(a|0);B()}d=b;break Ta}OL(c,b);gc[J[J[b>>2]+44>>2]](b,33)|0;gc[J[J[b>>2]+44>>2]](b,249)|0;H[c+976|0]=J[c+336>>2]!=-1;f=K[c+492|0];d=I[c+360>>1];H[c+ -977|0]=d;H[c+978|0]=d>>>8;H[c+979|0]=J[c+336>>2];H[c+976|0]=K[c+976|0]|f<<2&28;d=K[c+494|0]?d:d<<8|(d&65280)>>>8;H[c+977|0]=d;H[c+978|0]=d>>>8;gc[J[J[b>>2]+44>>2]](b,4)|0;d=1;gc[J[J[b>>2]+16>>2]](b,c+976|0,4,1)|0;f=(K[c+977|0]|K[c+978|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[c+977|0]=f;H[c+978|0]=f>>>8;gc[J[J[b>>2]+44>>2]](b,0)|0;f=Qc(J[c+1116>>2]);if(f){gc[J[J[b>>2]+44>>2]](b,33)|0;gc[J[J[b>>2]+44>>2]](b,254)|0;f=f>>>0>=255?255:f;gc[J[J[b>>2]+44>>2]](b,f)|0;gc[J[J[b>>2]+16>>2]](b,J[c+1116>> -2],f,1)|0;gc[J[J[b>>2]+44>>2]](b,0)|0}y5(c,b,0);gc[J[J[b>>2]+44>>2]](b,59)|0}if(d)break c;break b;case 3:e=rc(976);J[695492]=0;c=qf(e,4);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c>>2]=45876;Hj(c,a);n=bc-304|0;bc=n;k=zc(40);J[k>>2]=0;J[695492]=0;d=Vk(c,b);g=J[695492];J[695492]=0;jb:{kb:{lb:{if((g|0)==1)break lb;l=4;e=-1;mb:{if(!g)break mb;h=J[695493];if(!h)break mb;e=Jc(J[g>>2],k,4);if(!e)break kb;cc=h}g=cc;nb:{ob:{if((e|0)==1)break ob;e=0;if(d)break nb;J[695492]=0;df(c,0);g=J[695492];J[695492]= -0;if((g|0)==1)break lb;e=-1;pb:{if(!g)break pb;h=J[695493];if(!h)break pb;e=Jc(J[g>>2],k,4);if(!e)break kb;cc=h}g=cc;if((e|0)==1)break ob;J[695492]=0;d=ha(132,43525,0,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;qb:{if(!g)break qb;h=J[695493];if(!h)break qb;e=Jc(J[g>>2],k,4);if(!e)break kb;cc=h}g=cc;if((e|0)==1)break ob;J[n+44>>2]=d;if(!d){e=0;J[695492]=0;qd(c+72|0,43687,255);g=J[695492];J[695492]=0;d=-1;rb:{if(!g)break rb;h=J[695493];if(!h)break rb;d=Jc(J[g>>2],k,4);if(!d)break kb;cc= -h}g=cc;if((d|0)==1)break ob;break nb}J[695492]=0;d=$(111,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;sb:{if(!g)break sb;h=J[695493];if(!h)break sb;e=Jc(J[g>>2],k,4);if(!e)break kb;cc=h}g=cc;if((e|0)==1)break ob;J[n+40>>2]=d;if(!d){J[695492]=0;da(133,n+44|0,0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;tb:{if(!g)break tb;h=J[695493];if(!h)break tb;e=Jc(J[g>>2],k,4);if(!e)break kb;cc=h}g=cc;if((e|0)==1)break ob;J[695492]=0;qd(c+72|0,44065,255);g=J[695492];J[695492]=0;e=-1;ub:{if(!g)break ub; -h=J[695493];if(!h)break ub;e=Jc(J[g>>2],k,4);if(!e)break kb;cc=h}g=cc;if((e|0)==1)break ob;e=0;break nb}k=zf(J[n+44>>2],1,k,4);l=cc;g=0}vb:while(1){if(g){d=J[J[n+40>>2]+16>>2];if(d)qc(d);J[695492]=0;da(133,n+44|0,n+40|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;wb:{if(!g)break wb;h=J[695493];if(!h)break wb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;J[695492]=0;qd(c+72|0,44930,255);g=J[695492];J[695492]=0;e=-1;xb:{if(!g)break xb;h=J[695493];if(!h)break xb;e=Jc(J[g>>2], -k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;e=0;break nb}J[695492]=0;ia(134,J[n+44>>2],b|0,135,136);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;yb:{if(!g)break yb;h=J[695493];if(!h)break yb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;J[695492]=0;d=J[c+16>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;zb:{if(!g)break zb;h=J[695493];if(!h)break zb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;J[J[n+40>>2]>>2]=d;J[695492]=0;d=J[c+20>>2];g=J[695492]; -J[695492]=0;if((g|0)==1)break lb;e=-1;Ab:{if(!g)break Ab;h=J[695493];if(!h)break Ab;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;J[J[n+40>>2]+4>>2]=d;J[695492]=0;d=L[c+26>>1];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Bb:{if(!g)break Bb;h=J[695493];if(!h)break Bb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;H[J[n+40>>2]+30|0]=d;J[695492]=0;d=L[c+26>>1];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Cb:{if(!g)break Cb;h=J[695493];if(!h)break Cb;e=Jc(J[g>> -2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;H[J[n+40>>2]+29|0]=d>>>0>8?3:1;J[695492]=0;f=L[c+26>>1];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Db:{if(!g)break Db;h=J[695493];if(!h)break Db;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;d=J[n+40>>2];I[d+26>>1]=0;J[d+8>>2]=0;H[d+24|0]=(f>>>0)/K[d+29|0];J[695492]=0;d=eq(c,4);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Eb:{if(!g)break Eb;h=J[695493];if(!h)break Eb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e| -0)==1)continue;H[J[n+40>>2]+28|0]=d&1;g=-1;d=(d&14)-2|0;if(d>>>0<=4)g=J[(d<<2)+47752>>2];J[695492]=0;d=J[n+44>>2];if(d){J[d+280>>2]=g;J[d+204>>2]=J[d+204>>2]|2}g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Fb:{if(!g)break Fb;h=J[695493];if(!h)break Fb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;J[695492]=0;t=Do(c);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Gb:{if(!g)break Gb;h=J[695493];if(!h)break Gb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;J[695492]= -0;d=J[c+44>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Hb:{if(!g)break Hb;h=J[695493];if(!h)break Hb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;H[J[n+40>>2]+25|0]=d?t?0:3:2;J[695492]=0;d=J[c+964>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=(d|0)!=0;e=-1;Ib:{if(!g)break Ib;h=J[695493];if(!h)break Ib;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;if(d){d=J[n+40>>2];H[d+24|0]=8;H[d+25|0]=K[d+25|0]|4;H[d+29|0]=K[d+29|0]+1;H[d+30|0]=K[d+30|0]+8}I[n+ -32>>1]=L[23874];d=L[23872]|L[23873]<<16;J[n+24>>2]=L[23870]|L[23871]<<16;J[n+28>>2]=d;J[695492]=0;UN(n+20|0,c);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Jb:{if(!g)break Jb;h=J[695493];if(!h)break Jb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;if(J[c+336>>2]>=0){I[n+30>>1]=K[n+20|0];I[n+28>>1]=K[n+21|0];I[n+26>>1]=K[n+22|0]}J[695492]=0;HG(J[n+44>>2],J[n+40>>2],n+24|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Kb:{if(!g)break Kb;h=J[695493];if(!h)break Kb;e=Jc(J[g>> -2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;d=J[c+40>>2];f=J[c+36>>2];J[695492]=0;DG(J[n+44>>2],J[n+40>>2],f,d,1);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Lb:{if(!g)break Lb;h=J[695493];if(!h)break Lb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;d=J[n+40>>2];f=K[d+28|0];e=K[d+25|0];i=K[d+24|0];o=J[d+4>>2];m=J[d>>2];J[695492]=0;Sa(143,J[n+44>>2],d|0,m|0,o|0,i|0,e|0,f|0,0,0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Mb:{if(!g)break Mb;h=J[695493];if(!h)break Mb; -e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;f=J[c+336>>2];Nb:{if((f|0)<0)break Nb;d=J[n+40>>2];I[d+22>>1]=1;H[d+80|0]=f;J[d+8>>2]=J[d+8>>2]|16;J[d+76>>2]=n+48;I[d+82>>1]=K[n+22|0];I[d+84>>1]=K[n+21|0];e=K[n+20|0];i=f&255;I[d+88>>1]=i;I[d+86>>1]=e;if(!f|(t|!J[c+44>>2]))break Nb;J[695492]=0;dN(c,0,i);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Ob:{if(!g)break Ob;h=J[695493];if(!h)break Ob;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue}J[695492]=0;d=J[c+4>> -2];f=J[c+44>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=d?f?d+40|0:0:0;e=-1;Pb:{if(!g)break Pb;h=J[695493];if(!h)break Pb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;Qb:{if(!d)break Qb;if(!t){d=J[n+40>>2];J[d+8>>2]=J[d+8>>2]|8}J[695492]=0;d=J[c+48>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Rb:{if(!g)break Rb;h=J[695493];if(!h)break Rb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;if(!d){J[695492]=0;d=J[c+44>>2];g=J[695492];J[695492]=0;if((g| -0)==1)break lb;e=-1;Sb:{if(!g)break Sb;h=J[695493];if(!h)break Sb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue}Tb:{if(!K[c+389|0]){e=J[n+40>>2];break Tb}if((d|0)>0){f=0;e=0;while(1){J[695492]=0;ug(n+16|0,c,e&255);g=J[695492];J[695492]=0;if((g|0)==1)break lb;i=-1;Ub:{if(!g)break Ub;h=J[695493];if(!h)break Ub;i=Jc(J[g>>2],k,l);if(!i)break kb;cc=h}g=cc;if((i|0)==1)continue vb;H[(n+48|0)+f|0]=K[n+19|0];e=e+1|0;f=e&65535;if((f|0)<(d|0))continue;break}}e=J[n+40>>2];I[e+22>>1]=d;J[e+8>> -2]=J[e+8>>2]|16;J[e+76>>2]=n+48}J[695492]=0;i=-1;f=$(27,(w=-1,x=Dzb(d,0,3,0),y=fc,y?w:x)|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break lb;Vb:{if(!g)break Vb;h=J[695493];if(!h)break Vb;i=Jc(J[g>>2],k,l);if(!i)break kb;cc=h}g=cc;if((i|0)==1)continue;I[e+20>>1]=d;J[e+16>>2]=f;e=0;if((d|0)<=0)break Qb;while(1){f=J[J[n+40>>2]+16>>2];J[695492]=0;f=f+P(e,3)|0;hN(c,e&255,f,f+1|0,f+2|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;i=-1;Wb:{if(!g)break Wb;h=J[695493];if(!h)break Wb;i=Jc(J[g>>2],k,l);if(!i)break kb; -cc=h}g=cc;if((i|0)==1)continue vb;e=e+1|0;if((e|0)!=(d|0))continue;break}}J[695492]=0;d=J[c+964>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=(d|0)!=0;e=-1;Xb:{if(!g)break Xb;h=J[695493];if(!h)break Xb;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;Yb:{if(!(d&L[c+26>>1]==24)|J[c+336>>2]<0)break Yb;h=J[c+20>>2];if((h|0)<=0)break Yb;i=0;g=J[c+16>>2];if((g|0)<=0)break Yb;while(1){e=0;if((g|0)>0){while(1){J[695492]=0;Ik(n+12|0,c,e,i,0);g=J[695492];J[695492]=0;if((g|0)==1)break lb; -d=-1;Zb:{if(!g)break Zb;h=J[695493];if(!h)break Zb;d=Jc(J[g>>2],k,l);if(!d)break kb;cc=h}g=cc;if((d|0)==1)continue vb;if(J[n+12>>2]==J[n+20>>2]){J[695492]=0;hh(c,e,i,0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=-1;_b:{if(!g)break _b;h=J[695493];if(!h)break _b;d=Jc(J[g>>2],k,l);if(!d)break kb;cc=h}g=cc;if((d|0)==1)continue vb}e=e+1|0;g=J[c+16>>2];if((e|0)<(g|0))continue;break}h=J[c+20>>2]}i=i+1|0;if((i|0)<(h|0))continue;break}}d=J[c+52>>2];f=J[n+40>>2];e=P(P(J[f>>2],K[f+29|0]),K[f+24|0]>>>3|0); -q=d>>>0>e>>>0?d:e;J[f+12>>2]=q;J[695492]=0;p=$(27,q|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=-1;$b:{if(!g)break $b;h=J[695493];if(!h)break $b;d=Jc(J[g>>2],k,l);if(!d)break kb;cc=h}g=cc;if((d|0)==1)continue;J[695492]=0;da(149,J[n+44>>2],f|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;ac:{if(!g)break ac;h=J[695493];if(!h)break ac;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;J[695492]=0;f=1;d=J[n+44>>2];if(!(!d|!K[d+398|0])){J[d+208>>2]=J[d+208>>2]|2;f=7}g=J[695492]; -J[695492]=0;if((g|0)==1)break lb;e=-1;bc:{if(!g)break bc;h=J[695493];if(!h)break bc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;cc:{if((f|0)<=0)break cc;o=0;j=0;if(t)while(1){J[695492]=0;m=J[c+20>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;dc:{if(!g)break dc;h=J[695493];if(!h)break dc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;J[695492]=0;d=df(c,0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;ec:{if(!g)break ec;h=J[695493];if(!h)break ec; -e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;J[695492]=0;i=J[c+52>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;fc:{if(!g)break fc;h=J[695493];if(!h)break fc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;J[695492]=0;j=J[c+20>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;gc:{if(!g)break gc;h=J[695493];if(!h)break gc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;r=J[c+20>>2]-1|0;s=P(i,j-1|0)+d|0;while(1){J[695492]=0;d=J[c+ -964>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=(d|0)!=0;e=-1;hc:{if(!g)break hc;h=J[695493];if(!h)break hc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;ic:{if(!d){if(!(!s|(q|0)<=0)){J[695492]=0;e=J[c+52>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=-1;jc:{if(!g)break jc;h=J[695493];if(!h)break jc;d=Jc(J[g>>2],k,l);if(!d)break kb;cc=h}g=cc;if((d|0)==1)continue vb;tc(p,s,(e|0)<(q|0)?e:q)}if(K[J[n+40>>2]+25|0]==2){J[695492]=0;Ir(c,p,q);g=J[695492];J[695492]=0;if((g| -0)==1)break lb;e=-1;kc:{if(!g)break kc;h=J[695493];if(!h)break kc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb}J[695492]=0;da(150,J[n+44>>2],p|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;lc:{if(!g)break lc;h=J[695493];if(!h)break lc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;break ic}d=J[c+16>>2];if((d|0)>0)while(1){J[695492]=0;e=-1;i=d-1|0;tm(n+8|0,c,i,r,1);g=J[695492];J[695492]=0;if((g|0)==1)break lb;mc:{if(!g)break mc;h=J[695493];if(!h)break mc; -e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;j=p+P(i,K[J[n+40>>2]+29|0])|0;H[j|0]=K[n+8|0];J[695492]=0;u=Cl(c,i,r);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;nc:{if(!g)break nc;h=J[695493];if(!h)break nc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;H[j+1|0]=u;e=d>>>0>1;d=i;if(e)continue;break}J[695492]=0;da(150,J[n+44>>2],p|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;oc:{if(!g)break oc;h=J[695493];if(!h)break oc;e=Jc(J[g>>2],k,l);if(!e)break kb; -cc=h}g=cc;if((e|0)==1)continue vb;r=r-1|0}m=m-1|0;if((m|0)>0){J[695492]=0;d=J[c+52>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;pc:{if(!g)break pc;h=J[695493];if(!h)break pc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;s=s-d|0;continue}break}o=o+1|0;if((f|0)!=(o|0))continue;break cc}while(1){J[695492]=0;m=J[c+20>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;qc:{if(!g)break qc;h=J[695493];if(!h)break qc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb; -J[695492]=0;d=df(c,0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;rc:{if(!g)break rc;h=J[695493];if(!h)break rc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;J[695492]=0;i=J[c+52>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;sc:{if(!g)break sc;h=J[695493];if(!h)break sc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;J[695492]=0;r=J[c+20>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;tc:{if(!g)break tc;h=J[695493];if(!h)break tc;e=Jc(J[g>> -2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;o=J[c+20>>2]-1|0;s=P(i,r-1|0)+d|0;while(1){J[695492]=0;d=J[c+964>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=(d|0)!=0;e=-1;uc:{if(!g)break uc;h=J[695493];if(!h)break uc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;vc:{wc:{if(d){e=J[c+16>>2];if((e|0)<=0)break wc;while(1){J[695492]=0;d=-1;i=e-1|0;tm(n+8|0,c,i,o,1);g=J[695492];J[695492]=0;if((g|0)==1)break lb;xc:{if(!g)break xc;h=J[695493];if(!h)break xc;d=Jc(J[g>> -2],k,l);if(!d)break kb;cc=h}g=cc;if((d|0)==1)continue vb;g=K[n+9|0];h=K[n+8|0];d=p+P(i,K[J[n+40>>2]+29|0])|0;H[d|0]=K[n+10|0];H[d+2|0]=h;H[d+1|0]=g;J[695492]=0;u=Cl(c,i,o);g=J[695492];J[695492]=0;if((g|0)==1)break lb;r=-1;yc:{if(!g)break yc;h=J[695493];if(!h)break yc;r=Jc(J[g>>2],k,l);if(!r)break kb;cc=h}g=cc;if((r|0)==1)continue vb;H[d+3|0]=u;d=e>>>0>1;e=i;if(d)continue;break}break wc}if(!(!s|(q|0)<=0)){J[695492]=0;e=J[c+52>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=-1;zc:{if(!g)break zc; -h=J[695493];if(!h)break zc;d=Jc(J[g>>2],k,l);if(!d)break kb;cc=h}g=cc;if((d|0)==1)continue vb;tc(p,s,(e|0)<(q|0)?e:q)}if(K[J[n+40>>2]+25|0]==2){J[695492]=0;Ir(c,p,q);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Ac:{if(!g)break Ac;h=J[695493];if(!h)break Ac;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb}J[695492]=0;da(150,J[n+44>>2],p|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Bc:{if(!g)break Bc;h=J[695493];if(!h)break Bc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc; -if((e|0)==1)continue vb;break vc}J[695492]=0;da(150,J[n+44>>2],p|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Cc:{if(!g)break Cc;h=J[695493];if(!h)break Cc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;o=o-1|0}m=m-1|0;if((m|0)>0){J[695492]=0;d=J[c+52>>2];g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Dc:{if(!g)break Dc;h=J[695493];if(!h)break Dc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue vb;s=s-d|0;continue}break}j=j+1|0;if((f|0)!=(j|0))continue; -break}}J[695492]=0;qc(p);g=J[695492];J[695492]=0;e=-1;Ec:{if(!g)break Ec;h=J[695493];if(!h)break Ec;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;Fc:{if(t|!J[c+44>>2])break Fc;d=J[c+336>>2];if((d|0)<=0)break Fc;J[695492]=0;dN(c,d&255,0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;e=-1;Gc:{if(!g)break Gc;h=J[695493];if(!h)break Gc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue}J[695492]=0;da(152,J[n+44>>2],J[n+40>>2]);g=J[695492];J[695492]=0;if((g|0)==1)break lb; -e=-1;Hc:{if(!g)break Hc;h=J[695493];if(!h)break Hc;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;d=J[J[n+40>>2]+16>>2];if(d){J[695492]=0;qc(d);g=J[695492];J[695492]=0;e=-1;Ic:{if(!g)break Ic;h=J[695493];if(!h)break Ic;e=Jc(J[g>>2],k,l);if(!e)break kb;cc=h}g=cc;if((e|0)==1)continue;J[J[n+40>>2]+16>>2]=0}J[695492]=0;da(133,n+44|0,n+40|0);g=J[695492];J[695492]=0;if((g|0)==1)break lb;d=-1;Jc:{if(!g)break Jc;h=J[695493];if(!h)break Jc;d=Jc(J[g>>2],k,l);if(!d)break kb;cc=h}e=1;g=cc;if((d| -0)==1)continue;break}}qc(k);bc=n+304|0;break jb}a=Z()|0;qc(k);break a}qc(k);ef(g,h);B()}if(e)break c;break b;case 16:e=rc(1028);J[695492]=0;c=HL(e);d=J[695492];J[695492]=0;if((d|0)==1)break d;Hj(c,a);if(Vk(c,b))b=0;else Kc:{if(J[c+44>>2]){qd(c+72|0,45128,255);b=0;break Kc}J[c+980>>2]=b;J[c+1008>>2]=J[c+52>>2];I[c+1012>>1]=L[c+26>>1];b=J[c+20>>2];J[c+1E3>>2]=J[c+16>>2];J[c+1004>>2]=b;d=J[c+32>>2];b=zc(d);J[c+984>>2]=b;if(!b){qd(c+72|0,45438,255);b=0;break Kc}tc(b,J[c+56>>2],d);b=L8(c+980|0);J[c+976>> -2]=b;if(!b){qd(c+72|0,43659,255);b=0;break Kc}if(!(!b|J[b>>2]!=1381173770))J[b+164>>2]=231;b=J[c+976>>2];if(!(!b|J[b>>2]!=1381173770))J[b+168>>2]=221;b=J[c+976>>2];if(!(!b|J[b>>2]!=1381173770))J[b+176>>2]=232;b=J[c+976>>2];Lc:{if(!b|J[b>>2]!=1381173770)break Lc;Mc:{if(!(!J[b+152>>2]|!J[b+156>>2])){if(K[b+344|0]|(K[b+417|0]|K[b+416|0]))break Mc;J[b+148>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;H[b+136|0]=0;J[b+132>>2]=0;if(yN(b))break Lc;H[b+416|0]=1;break Lc}Dc(b,3,0,0);break Lc}Dc(b,11,0,0)}b=0;i=bc-16| -0;bc=i;d=J[c+976>>2];if(!(!d|J[d>>2]!=1381173770))b=J[d+4>>2];h=J[b+20>>2];k=J[b+24>>2];g=rc(P(k,J[b+28>>2]+1|0));f=bc-48|0;bc=f;e=J[54742];J[f+32>>2]=J[54741];J[f+36>>2]=e;e=J[54740];J[f+24>>2]=J[54739];J[f+28>>2]=e;e=J[54738];J[f+16>>2]=J[54737];J[f+20>>2]=e;e=J[54736];J[f+8>>2]=J[54735];J[f+12>>2]=e;Nc:{if(!d|J[d>>2]!=1381173770)break Nc;if(!K[d+416|0]){Dc(d,11,0,0);break Nc}if(J[d+420>>2]!=1296581714){Dc(d,2052,0,0);break Nc}Oc:{e=J[d+280>>2];if(!e|J[e>>2]!=1413829197)break Oc;e=J[e+28>>2];if(J[e>> -2]==1296581714?e:0)break Oc;Dc(d,1072,0,0);break Nc}if(JD(d,f+8|0,f+44|0))break Nc;e=J[f+44>>2];J[e+64>>2]=0;J[e+60>>2]=0;J[e+56>>2]=0;J[e+52>>2]=0;H[e+48|0]=0;J[e+44>>2]=0;J[e+40>>2]=0;H[e+38|0]=1;H[e+37|0]=0;H[e+35|0]=0;I[e+32>>1]=0;Jx(d,e)}bc=f+48|0;f=bc-48|0;bc=f;e=J[54718];J[f+32>>2]=J[54717];J[f+36>>2]=e;e=J[54716];J[f+24>>2]=J[54715];J[f+28>>2]=e;e=J[54714];J[f+16>>2]=J[54713];J[f+20>>2]=e;e=J[54712];J[f+8>>2]=J[54711];J[f+12>>2]=e;Pc:{if(!d|J[d>>2]!=1381173770)break Pc;if(!K[d+416|0]){Dc(d, -11,0,0);break Pc}Qc:{e=J[d+280>>2];if(!e|J[e>>2]!=1413829197)break Qc;e=J[e+28>>2];if(J[e>>2]==1296581714?e:0)break Qc;Dc(d,1072,0,0);break Pc}if(Xp(d,f+8|0,f+44|0))break Pc;e=J[f+44>>2];H[e+44|0]=0;H[e+43|0]=0;H[e+42|0]=0;H[e+41|0]=2;H[e+40|0]=8;J[e+36>>2]=k;J[e+32>>2]=h;Jx(d,e)}bc=f+48|0;if((k|0)>0){e=g+1|0;while(1){f=J[b+28>>2];h=P(f+1|0,m);H[h+g|0]=0;Ir(c,tc(e+h|0,J[b+4>>2]+P(f,k+(m^-1)|0)|0,f),f);m=m+1|0;if((k|0)!=(m|0))continue;break}}e=P(k,J[b+28>>2]+1|0);h=rc(e);J[i+12>>2]=e;b=bc+-64|0;bc= -b;m=J[i+12>>2];J[i+12>>2]=0;J[b+48>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;k=H0(b+8|0,9,28294);if(!k){J[b+24>>2]=0;J[b+20>>2]=h;J[b+12>>2]=0;J[b+8>>2]=g;while(1){if(!o){J[b+24>>2]=m;m=0}f=b+8|0;Rc:{if(!J[b+12>>2]){J[b+12>>2]=e;e=0;o=4;break Rc}o=!e<<2}f=Ak(f,o);if(!f){o=J[b+24>>2];continue}break}J[i+12>>2]=J[b+28>>2];go(b+8|0);k=(f|0)!=1?f:0}bc=b- -64|0;if(!k){e=J[i+12>>2];f=bc-48|0;bc=f;b=J[54726];J[f+32>>2]=J[54725];J[f+36>>2]=b;b=J[54724];J[f+24>>2]=J[54723];J[f+28>>2]=b;b=J[54722];J[f+16>>2]=J[54721]; -J[f+20>>2]=b;b=J[54720];J[f+8>>2]=J[54719];J[f+12>>2]=b;Sc:{if(!d|J[d>>2]!=1381173770)break Sc;if(!K[d+416|0]){Dc(d,11,0,0);break Sc}if(!J[d+420>>2]){Dc(d,2052,0,0);break Sc}Tc:{b=J[d+280>>2];if(!b|J[b>>2]!=1413829197)break Tc;b=J[b+28>>2];if(J[b>>2]==1296581714?b:0)break Tc;Dc(d,1072,0,0);break Sc}if(Co(d,f+8|0,f+44|0))break Sc;b=J[f+44>>2];J[b+36>>2]=e;H[b+32|0]=!e;if(e){b=gc[J[d+152>>2]](e)|0;J[J[f+44>>2]+40>>2]=b;if(!b){Dc(d,1,0,0);break Sc}tc(b,h,e);b=J[f+44>>2]}Jx(d,b)}bc=f+48|0;b=bc-48|0;bc= -b;f=J[54734];J[b+32>>2]=J[54733];J[b+36>>2]=f;f=J[54732];J[b+24>>2]=J[54731];J[b+28>>2]=f;f=J[54730];J[b+16>>2]=J[54729];J[b+20>>2]=f;f=J[54728];J[b+8>>2]=J[54727];J[b+12>>2]=f;Uc:{if(!d|J[d>>2]!=1381173770)break Uc;if(!K[d+416|0]){Dc(d,11,0,0);break Uc}if(!J[d+420>>2]){Dc(d,2052,0,0);break Uc}Vc:{f=J[d+280>>2];if(!f|J[f>>2]!=1413829197)break Vc;f=J[f+28>>2];if(J[f>>2]==1296581714?f:0)break Vc;Dc(d,1072,0,0);break Uc}if(qu(d,b+8|0,b+44|0))break Uc;Jx(d,J[b+44>>2]);f=J[d+420>>2];if((f|0)!=1246250066& -(f|0)!=1229472850)break Uc;H[d+416|0]=0}bc=b+48|0;qc(g);qc(h)}bc=i+16|0;f=J[c+976>>2];Wc:{if(!f|J[f>>2]!=1381173770)break Wc;if(!(!J[f+176>>2]|(!J[f+152>>2]|!J[f+156>>2]|(!J[f+164>>2]|!J[f+168>>2])))){if(K[f+344|0]){Dc(f,11,0,0);break Wc}J[f+148>>2]=0;J[f+140>>2]=0;J[f+144>>2]=0;H[f+136|0]=0;J[f+132>>2]=0;e=bc-16|0;bc=e;b=J[f+276>>2];Xc:{if(!b)break Xc;Yc:{if(K[f+417|0])break Yc;Zc:{d=J[f+164>>2];if(!d)break Zc;if(gc[d|0](f)|0)break Zc;Dc(f,901,0,0);break Xc}J[f+424>>2]=32768;H[f+417|0]=1;d=gc[J[f+ -152>>2]](32780)|0;J[f+428>>2]=d;if(!d){Dc(f,1,0,0);break Xc}i=d;d=J[b>>2];Gr(i,(d|0)==1229472850?-1991225785:(d|0)==1246250066?-1958064569:-1974645177);Gr(J[f+428>>2]+4|0,218765834);if(!(gc[J[f+176>>2]](f,J[f+428>>2],8,e+12|0)|0)){b=J[f+428>>2];if(b){gc[J[f+156>>2]](b,J[f+424>>2]+12|0);J[f+428>>2]=0}Dc(f,901,0,0);break Xc}if(J[e+12>>2]==8)break Yc;b=J[f+428>>2];if(b){gc[J[f+156>>2]](b,J[f+424>>2]+12|0);J[f+428>>2]=0}Dc(f,12,0,0);break Xc}while(1){if(gc[J[b+16>>2]](f,b)|0)break Xc;b=J[b+24>>2];if(b)continue; -break}if(!K[f+416|0]){b=J[f+428>>2];if(b){gc[J[f+156>>2]](b,J[f+424>>2]+12|0);J[f+428>>2]=0}H[f+417|0]=0;b=J[f+168>>2];if(!b)break Xc;if(gc[b|0](f)|0)break Xc;Dc(f,901,0,0);break Xc}b=J[f+276>>2];if(b)while(1){d=J[b+24>>2];gc[J[b+8>>2]](f,b)|0;b=d;if(d)continue;break}J[f+276>>2]=0;J[f+280>>2]=0}bc=e+16|0;break Wc}Dc(f,3,0,0)}b=1}if(b)break c;break b;case 6:e=rc(976);J[695492]=0;c=qf(e,7);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c>>2]=45920;Hj(c,a);d=bc-800|0;bc=d;f=0;_c:{if(Vk(c,b))break _c; -if(L[c+26>>1]<=7){b=K[45496]|K[45497]<<8;H[c+96|0]=b;H[c+97|0]=b>>>8;b=K[45492]|K[45493]<<8|(K[45494]<<16|K[45495]<<24);f=K[45488]|K[45489]<<8|(K[45490]<<16|K[45491]<<24);H[c+88|0]=f;H[c+89|0]=f>>>8;H[c+90|0]=f>>>16;H[c+91|0]=f>>>24;H[c+92|0]=b;H[c+93|0]=b>>>8;H[c+94|0]=b>>>16;H[c+95|0]=b>>>24;b=K[45484]|K[45485]<<8|(K[45486]<<16|K[45487]<<24);f=K[45480]|K[45481]<<8|(K[45482]<<16|K[45483]<<24);H[c+80|0]=f;H[c+81|0]=f>>>8;H[c+82|0]=f>>>16;H[c+83|0]=f>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>> -16;H[c+87|0]=b>>>24;b=K[45476]|K[45477]<<8|(K[45478]<<16|K[45479]<<24);f=K[45472]|K[45473]<<8|(K[45474]<<16|K[45475]<<24);H[c+72|0]=f;H[c+73|0]=f>>>8;H[c+74|0]=f>>>16;H[c+75|0]=f>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24;f=0;break _c}H[d+782|0]=0;f=J[c+4>>2];H[d+783|0]=((f?J[c+44>>2]?f+40|0:0:0)|0)!=0;f=L[c+26>>1];e=(f|0)==8;H[d+789|0]=e?24:0;H[d+784|0]=e?1:2;i=J[c+20>>2];k=J[c+16>>2];H[d+799|0]=0;H[d+798|0]=f;if(!(!J[c+964>>2]|(f|0)!=24))H[d+798|0]=32;H[d+785|0]=0;H[d+786| -0]=0;f=e<<8;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+787|0]=f;H[d+788|0]=f>>>8;H[d+790|0]=0;H[d+791|0]=0;H[d+792|0]=0;H[d+793|0]=0;f=k<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+794|0]=f;H[d+795|0]=f>>>8;f=i<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+796|0]=f;H[d+797|0]=f>>>8;gc[J[J[b>>2]+16>>2]](b,d+782|0,18,1)|0;f=(K[d+785|0]|K[d+786|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+785|0]=f;H[d+786|0]=f>>>8;f=(K[d+787|0]|K[d+788|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+787|0]= +40;g=HP(e+48|0,c,1,1,1);J[699344]=0;o=xy(e+20|0,0,0);d=J[699344];J[699344]=0;l:{m:{n:{if((d|0)!=1){if(!(J[c+20>>2]<256&J[c+16>>2]<=255)){I[e+1064>>1]=0;J[699344]=0;_(52,o|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;ga(51,g|0,o|0,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;i=J[o+4>>2]?J[o+8>>2]:-1;d=J[699344];J[699344]=0;if((d|0)==1)break i;J[e+1072>>2]=i}J[699344]=0;d=I[e+1084>>1];f=K[c+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break i;I[e+1084>>1]=(f?d:d<<8|(d& +65280)>>>8)<<16>>16;J[699344]=0;d=I[e+1086>>1];f=K[c+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break i;I[e+1086>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;d=J[J[b>>2]+16>>2];J[699344]=0;ha(d|0,b|0,e+1082|0,6,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;d=I[e+1084>>1];f=K[c+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break i;I[e+1084>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[699344]=0;d=I[e+1086>>1];f=K[c+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break i;I[e+1086>>1]=(f?d:d<<8|(d&65280)>>> +8)<<16>>16;J[699344]=0;d=I[e+1068>>1];f=K[c+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break i;I[e+1068>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[699344]=0;d=I[e+1070>>1];f=K[c+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break i;I[e+1070>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[699344]=0;d=$j(c,J[e+1072>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break i;J[e+1072>>2]=d;J[699344]=0;d=$j(c,J[e+1076>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break i;J[e+1076>>2]=d;d=J[J[b>>2]+16>>2];J[699344]=0;ha(d|0,b|0,e+1064| +0,16,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;d=I[e+1068>>1];f=K[c+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break i;I[e+1068>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[699344]=0;d=I[e+1070>>1];f=K[c+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break i;I[e+1070>>1]=(f?d:d<<8|(d&65280)>>>8)<<16>>16;J[699344]=0;d=$j(c,J[e+1072>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break i;J[e+1072>>2]=d;J[699344]=0;d=$j(c,J[e+1076>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break i;J[e+1076>>2]=d;J[c+ +976>>2]=J[c+976>>2]+i;d=1;if(!(K[e+1064|0]|K[e+1065|0])){J[699344]=0;f=J[o+4>>2];k=J[699344];J[699344]=0;if((k|0)==1)break i;k=J[J[b>>2]+16>>2];J[699344]=0;ha(k|0,b|0,f|0,i|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;break l}J[699344]=0;d=e+1024|0;Uq(c,d);f=J[699344];J[699344]=0;if((f|0)==1)break i;f=J[J[b>>2]+16>>2];J[699344]=0;ha(f|0,b|0,d|0,40,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;Uq(c,d);d=J[699344];J[699344]=0;if((d|0)==1)break i;i=J[c+336>>2];J[699344]=0;mP(e+16| +0,c);d=J[699344];J[699344]=0;if((d|0)==1)break i;o:{if(!k)break o;if((i|0)>=0){d=K[c+336|0];J[699344]=0;Rq(c,d,0,0,0,0);d=J[699344];J[699344]=0;if((d|0)==1)break i}d=J[J[b>>2]+16>>2];f=J[c+44>>2];J[699344]=0;ha(d|0,b|0,k|0,f<<2,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;if((i|0)<0)break o;d=K[c+336|0];f=J[e+16>>2];J[e+12>>2]=f;J[699344]=0;J[e+4>>2]=f;Hy(c,d,e+4|0);d=J[699344];J[699344]=0;if((d|0)==1)break i}J[699344]=0;d=J[c+964>>2];f=J[699344];J[699344]=0;if((f|0)==1)break i;if(!(!J[c+44>> +2]&(d|0)!=0))break n;f=Dc(m);if(J[c+20>>2]>0){d=f;while(1){J[699344]=0;k=mf(c,j);l=J[699344];J[699344]=0;p:{if((l|0)!=1){l=0;if(J[c+16>>2]<=0)break p;while(1){q:{H[d|0]=K[k|0];H[d+1|0]=K[k+1|0];H[d+2|0]=K[k+2|0];J[699344]=0;n=mm(c,l,j);q=J[699344];J[699344]=0;if((q|0)==1)break q;H[d+3|0]=n;d=d+4|0;k=k+3|0;l=l+1|0;if((l|0)>2])continue;break p}break}break i}break i}j=j+1|0;if((j|0)>2])continue;break}}d=J[J[b>>2]+16>>2];J[699344]=0;ha(d|0,b|0,f|0,m|0,1)|0;d=J[699344];J[699344]=0;if((d| +0)!=1){uc(f);break m}break i}d=Z()|0;break h}d=J[c+56>>2];f=J[J[b>>2]+16>>2];J[699344]=0;ha(f|0,b|0,d|0,m|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i}f=kd(h,1);if(f){J[699344]=0;j=KO(c);d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;m=J[c+964>>2]!=0;d=J[699344];J[699344]=0;r:{if((d|0)!=1){s:{if(J[c+20>>2]<=0)break s;l=J[c+16>>2];if((l|0)<=0)break s;k=0;while(1){t:{if((l|0)<=0)break t;n=f+P(k,p)|0;d=0;if(j){while(1){u:{l=0;if(m){J[699344]=0;l=mm(c,d,k);q=J[699344];J[699344]=0;if((q| +0)==1)break u;l=!l}J[699344]=0;q=e+8|0;kn(q,c,d,k,1);r=J[699344];J[699344]=0;if((r|0)==1)break i;J[699344]=0;r=K[e+11|0];fl(q,c,d,k,0);q=J[699344];J[699344]=0;if((q|0)==1)break i;q=n+(d>>>3|0)|0;s=(d^-1)&7;t=K[q|0]&zEb(-2,s);l=r?l:1;H[q|0]=((i|0)>=0?J[e+8>>2]==J[e+16>>2]?1:l:l)<>2];if((d|0)<(l|0))continue;break t}break}break i}v:{while(1){l=0;if(m){J[699344]=0;l=mm(c,d,k);q=J[699344];J[699344]=0;if((q|0)==1)break v;l=!l}J[699344]=0;fl(e+8|0,c,d,k,0);q=J[699344];J[699344]=0;if((q| +0)!=1){q=n+(d>>>3|0)|0;r=(d^-1)&7;s=K[q|0]&zEb(-2,r);H[q|0]=((i|0)>=0?J[e+8>>2]==J[e+16>>2]?1:l:l)<>2];if((d|0)>=(l|0))break t;continue}break}break i}break i}k=k+1|0;if((k|0)>2])continue;break}}i=J[J[b>>2]+16>>2];J[699344]=0;d=1;ha(i|0,b|0,f|0,h|0,1)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break r}break i}uc(f);break l}d=0}lo(o);J[g>>2]=1032;J[699344]=0;_(13,g|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;J[699344]=0;_(14,g|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j}fc= +e+1088|0;break g}ea(0)|0;Bc();B()}d=Z()|0;lo(o)}Jj(g);ba(d|0);B()}if(d)break c;break b;case 5:e=vc(988);J[699344]=0;c=xf(e,6);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c+984>>2]=0;H[c+980|0]=0;J[c+976>>2]=0;J[c>>2]=47796;ck(c,a);w:{x:{y:{z:{if(!b){Ad(c+72|0,46548,255);break z}if(!J[c+4>>2]){Ad(c+72|0,46681,255);break z}A:{d=J[c+976>>2];if(d)break A;d=s8(b,46699);J[c+976>>2]=d;if(d)break A;Ad(c+72|0,46801,255);break z}b=J[c+984>>2];if(b){H[c+980|0]=1;f=1}else f=K[c+980|0]!=0;p=f;e=b+1|0;J[c+984>> +2]=e;f=d;b=0;m=fc-1456|0;fc=m;l=J[c+16>>2];h=J[c+20>>2];g=L[c+26>>1];B:{if((g|0)==24){b=J[c+964>>2]!=0;g=b?32:24;n=b?4:3;j=(g>>>0)/(n>>>0)|0;o=2;break B}n=(g|0)==24?3:(g|0)==32?3:1;j=(g>>>0)/(n>>>0)|0;d=J[c+4>>2];d=d?J[c+44>>2]?d+40|0:0:0;C:switch(g-1|0){case 0:if((pP(d,d+4|0)|0)>=0){g=1;break B}Hg(m+416|0,c,0);g=1;Hg(m+1452|0,c,1);J[m+380>>2]=K[m+1452|0]|K[m+1453|0]<<8|(K[m+1454|0]<<16|K[m+1455|0]<<24);Hy(c,0,m+380|0);d=J[m+416>>2];J[m+1448>>2]=d;J[m+376>>2]=d;Hy(c,1,m+376|0);if(J[c+32>>2]){d=J[c+ +56>>2];while(1){H[d|0]=K[d|0]^-1;d=d+1|0;b=b+1|0;if(b>>>0>2])continue;break}}break B;case 3:case 7:i=J[c+44>>2];if(!i){o=1;break B}while(1){o=3;b=K[d+2|0];if((b|0)!=(k|0)){k=1;break B}if((b|0)!=K[d+1|0]){k=1;break B}if((b|0)!=K[d|0]){k=1;break B}d=d+4|0;o=1;k=k+1|0;if((i|0)!=(k|0))continue;break}k=0;break B;case 31:break C;default:break B}o=2;g=32}i=(g|0)==8?J[c+964>>2]?2:n:n;b=J[c+4>>2];d=J[c+44>>2];D:{if(!(b?d?b+40|0:0:0))break D;xc(m+416|0,b?d?b+40|0:0:0,d<<2);n=J[c+44>>2];if(!n)break D; +d=0;b=0;while(1){d=(m+416|0)+(d<<2)|0;q=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=q;b=b+1|0;d=b&65535;if(n>>>0>d>>>0)continue;break}}J[m+368>>2]=l;ke(f,256,m+368|0);J[m+352>>2]=h;ke(f,257,m+352|0);J[m+336>>2]=i;ke(f,277,m+336|0);J[m+320>>2]=j;ke(f,258,m+320|0);J[m+304>>2]=o;ke(f,262,m+304|0);J[m+288>>2]=1;ke(f,284,m+288|0);J[m+272>>2]=1;ke(f,274,m+272|0);q=kc[J[f+576>>2]](f,-1)|0;J[m+256>>2]=q;ke(f,278,m+256|0);J[m+240>>2]=2;ke(f,296,m+240|0);O[m+224>>3]=Q(J[c+364>>2]);ke(f,282,m+224|0);O[m+208>>3]=Q(J[c+368>> +2]);ke(f,283,m+208|0);E:{if(p){J[m+176>>2]=e;b=m+384|0;cg(b,47433,m+176|0);J[m+160>>2]=2;ke(f,254,m+160|0);J[m+148>>2]=e;J[m+144>>2]=e;ke(f,297,m+144|0);J[m+128>>2]=b;ke(f,285,m+128|0);break E}J[m+192>>2]=0;ke(f,254,m+192|0)}if(k){e=Dc(1536);k=e+1024|0;o=e+512|0;b=255;while(1){d=b;n=d<<1;j=(m+416|0)+(d<<2)|0;I[n+k>>1]=P(K[j+2|0],257);I[n+o>>1]=P(K[j+1|0],257);I[e+n>>1]=P(K[j|0],257);b=d-1|0;if(d)continue;break}J[m+120>>2]=k;J[m+116>>2]=o;J[m+112>>2]=e;ke(f,320,m+112|0);uc(e)}F:{G:{H:{I:{J:{if(!Xq(c, +6)){d=4;K:switch(g-1|0){default:d=1;break;case 3:case 7:break H;case 23:case 31:break J;case 0:break K}J[m>>2]=d;ke(f,259,m);break F}b=Xq(c,6)&65535;J[m+96>>2]=b;ke(f,259,m+96|0);switch(b-5|0){case 0:break G;case 2:break I;default:break F}}J[m+80>>2]=7;ke(f,259,m+80|0)}v=Q(N[c+344>>2]+Q(.5));L:{if(v=Q(0)){b=~~v>>>0;break L}b=0}J[m+64>>2]=b;ke(f,65537,m- -64|0);J[m+48>>2]=q+7&-8;ke(f,278,m+48|0);break F}J[m+32>>2]=5;ke(f,259,m+32|0)}if(g>>>0<8)break F;J[m+16>>2]=2;ke(f,317,m+16|0)}d= +1;M:{N:{O:switch(g-1|0){case 0:case 3:case 7:if((i|0)==1){k=Dc(J[c+52>>2]);if(!k){d=0;break M}if(!h)break N;b=0;while(1){d=J[c+52>>2];e=Nv(f,xc(k,J[c+56>>2]+P(d,h+(b^-1)|0)|0,d),b);d=(e|0)!=-1;if((e|0)==-1)break N;b=b+1|0;if((h|0)!=(b|0))continue;break}break N}k=Dc(l<<1);if(!k){d=0;break M}if(!h)break N;b=0;if(!l)while(1){e=Nv(f,k,b);d=(e|0)!=-1;if((e|0)==-1)break N;b=b+1|0;if((h|0)!=(b|0))continue;break N}while(1){e=h+(b^-1)|0;d=0;while(1){i=(d<<1)+k|0;w=i,x=vp(c,d,e),H[w|0]=x;w=i,x=mm(c,d,e),H[w+ +1|0]=x;d=d+1|0;if((l|0)!=(d|0))continue;break}e=Nv(f,k,b);d=(e|0)!=-1;if((e|0)==-1)break N;b=b+1|0;if((h|0)!=(b|0))continue;break}break N;case 23:k=Dc(J[c+52>>2]);if(!k){d=0;break M}if(!h)break N;o=l&-4;i=l&3;n=l>>>0<4;g=0;while(1){b=J[c+52>>2];e=xc(k,J[c+56>>2]+P(b,h+(g^-1)|0)|0,b);P:{if(!l)break P;b=0;d=e;if(!n)while(1){j=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=j;j=K[d+3|0];H[d+3|0]=K[d+5|0];H[d+5|0]=j;j=K[d+6|0];H[d+6|0]=K[d+8|0];H[d+8|0]=j;j=K[d+9|0];H[d+9|0]=K[d+11|0];H[d+11|0]=j;d=d+12|0;b=b+4|0;if((o| +0)!=(b|0))continue;break}b=0;if(!i)break P;while(1){j=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=j;d=d+3|0;b=b+1|0;if((i|0)!=(b|0))continue;break}}b=Nv(f,e,g);d=(b|0)!=-1;if((b|0)==-1)break N;g=g+1|0;if((h|0)!=(g|0))continue;break}break N;case 31:break O;default:break M}k=Dc((J[c+52>>2]<<2>>>0)/3|0);if(!k){d=0;break M}if(!h)break N;e=(l<<2)+k|0;i=P(l,3)+k|0;g=0;while(1){b=J[c+52>>2];j=h+(g^-1)|0;p=xc(k,J[c+56>>2]+P(b,j)|0,b);d=e;b=i;n=0;if(l)while(1){w=d-1|0,x=mm(c,l+(n^-1)|0,j),H[w|0]=x;o=b-3|0;H[d-2|0]=K[o| +0];H[d-3|0]=K[b-2|0];d=d-4|0;H[d|0]=K[b-1|0];b=o;n=n+1|0;if((l|0)!=(n|0))continue;break}b=Nv(f,p,g);d=(b|0)!=-1;if((b|0)==-1)break N;g=g+1|0;if((h|0)!=(g|0))continue;break}}uc(k)}fc=m+1456|0;if(!d){Ad(c+72|0,46902,255);break z}b=J[c+976>>2];break y}b=0;d=J[c+976>>2];if(!d)break w;dw(d);H[c+980|0]=0;J[c+976>>2]=0;f=c+984|0;b=0;break x}f=c+984|0;dw(b);H[c+980|0]=0;J[c+976>>2]=0;b=1}J[f>>2]=0}if(b)break c;break b;case 2:e=vc(1E3);J[699344]=0;c=OO(e);d=J[699344];J[699344]=0;if((d|0)==1)break d;ck(c,a); +g=fc-784|0;fc=g;l=Dc(40);J[l>>2]=0;J[699344]=0;f=sl(c,b);h=J[699344];J[699344]=0;Q:{R:{if((h|0)==1)break R;n=4;e=-1;S:{T:{U:{V:{if(!h)break V;d=J[699345];if(!d)break V;e=Pc(J[h>>2],l,4);if(!e)break U;gc=d}d=gc;W:{if((e|0)==1)break W;d=0;if(f)break S;X:{Y:{r=c+44|0;if(!J[r>>2])break Y;J[699344]=0;f=tp(c);h=J[699344];J[699344]=0;if((h|0)==1)break R;e=-1;Z:{if(!h)break Z;d=J[699345];if(!d)break Z;e=Pc(J[h>>2],l,4);if(!e)break U;gc=d}d=gc;if((e|0)==1)break X;if(f)break Y;b=K[43587]|K[43588]<<8|(K[43589]<< +16|K[43590]<<24);H[c+111|0]=b;H[c+112|0]=b>>>8;H[c+113|0]=b>>>16;H[c+114|0]=b>>>24;b=K[43584]|K[43585]<<8|(K[43586]<<16|K[43587]<<24);d=K[43580]|K[43581]<<8|(K[43582]<<16|K[43583]<<24);H[c+104|0]=d;H[c+105|0]=d>>>8;H[c+106|0]=d>>>16;H[c+107|0]=d>>>24;H[c+108|0]=b;H[c+109|0]=b>>>8;H[c+110|0]=b>>>16;H[c+111|0]=b>>>24;b=K[43576]|K[43577]<<8|(K[43578]<<16|K[43579]<<24);d=K[43572]|K[43573]<<8|(K[43574]<<16|K[43575]<<24);H[c+96|0]=d;H[c+97|0]=d>>>8;H[c+98|0]=d>>>16;H[c+99|0]=d>>>24;H[c+100|0]=b;H[c+101| +0]=b>>>8;H[c+102|0]=b>>>16;H[c+103|0]=b>>>24;b=K[43568]|K[43569]<<8|(K[43570]<<16|K[43571]<<24);d=K[43564]|K[43565]<<8|(K[43566]<<16|K[43567]<<24);H[c+88|0]=d;H[c+89|0]=d>>>8;H[c+90|0]=d>>>16;H[c+91|0]=d>>>24;H[c+92|0]=b;H[c+93|0]=b>>>8;H[c+94|0]=b>>>16;H[c+95|0]=b>>>24;b=K[43560]|K[43561]<<8|(K[43562]<<16|K[43563]<<24);d=K[43556]|K[43557]<<8|(K[43558]<<16|K[43559]<<24);H[c+80|0]=d;H[c+81|0]=d>>>8;H[c+82|0]=d>>>16;H[c+83|0]=d>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>>16;H[c+87|0]=b>>>24;b=K[43552]| +K[43553]<<8|(K[43554]<<16|K[43555]<<24);d=K[43548]|K[43549]<<8|(K[43550]<<16|K[43551]<<24);H[c+72|0]=d;H[c+73|0]=d>>>8;H[c+74|0]=d>>>16;H[c+75|0]=d>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24;d=0;break S}d=J[J[b>>2]+24>>2];J[699344]=0;k=_(d|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break R;e=-1;_:{if(!h)break _;d=J[699345];if(!d)break _;e=Pc(J[h>>2],l,4);if(!e)break U;gc=d}d=gc;if((e|0)==1)break X;J[699344]=0;m=c+72|0;J[g+348>>2]=m;f=Bq(g+60|0);h=J[699344];J[699344]=0;if((h| +0)==1)break R;e=-1;$:{if(!h)break $;d=J[699345];if(!d)break $;e=Pc(J[h>>2],l,4);if(!e)break U;gc=d}q=c+52|0;j=g+348|0;d=gc;if((e|0)==1)break W;J[g+60>>2]=61;J[g+352>>2]=f;l=Hf(g+192|0,1,l,4);n=gc;d=0}}aa:while(1){f=d;if(d){d=J[j>>2];J[699344]=0;of(m,d);h=J[699344];J[699344]=0;e=-1;ba:{if(!h)break ba;d=J[699345];if(!d)break ba;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;J[699344]=0;$(93,g+352|0);h=J[699344];J[699344]=0;if((h|0)==1)break R;e=-1;ca:{if(!h)break ca;d=J[699345];if(!d)break ca; +e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;break T}J[699344]=0;ca(94,g+352|0,80,432);h=J[699344];J[699344]=0;if((h|0)==1)break R;e=-1;da:{if(!h)break da;d=J[699345];if(!d)break da;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;J[g+44>>2]=62;J[g+40>>2]=63;J[g+36>>2]=64;J[g+32>>2]=65;J[g+28>>2]=66;J[g+16>>2]=67;J[g+12>>2]=68;J[g+8>>2]=69;J[g+48>>2]=b;J[g+20>>2]=0;J[g+24>>2]=0;J[699344]=0;i=_(27,4096)|0;h=J[699344];J[699344]=0;if((h|0)==1)break R;e=-1;ea:{if(!h)break ea; +d=J[699345];if(!d)break ea;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;J[g+52>>2]=i;J[699344]=0;J[g+376>>2]=g;i=J[c+16>>2];h=J[699344];J[699344]=0;e=-1;fa:{if(!h)break fa;d=J[699345];if(!d)break fa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;ga:{if((h|0)==1)break ga;J[699344]=0;J[g+380>>2]=i;i=J[c+20>>2];h=J[699344];J[699344]=0;e=-1;ha:{if(!h)break ha;d=J[699345];if(!d)break ha;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga; +J[699344]=0;J[g+384>>2]=i;i=tp(c);h=J[699344];J[699344]=0;e=-1;ia:{if(!h)break ia;d=J[699345];if(!d)break ia;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;J[699344]=0;J[g+392>>2]=i?1:2;J[g+388>>2]=i?1:3;$(96,g+352|0);h=J[699344];J[699344]=0;e=-1;ja:{if(!h)break ja;d=J[699345];if(!d)break ja;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;J[699344]=0;i=Xq(c,3);h=J[699344];J[699344]=0;e=-1;ka:{if(!h)break ka;d=J[699345];if(!d)break ka; +e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;if(i&2)J[g+564>>2]=1;if(i&8)J[g+568>>2]=1;if(i&4){J[699344]=0;da(97,g+352|0,1);h=J[699344];J[699344]=0;e=-1;la:{if(!h)break la;d=J[699345];if(!d)break la;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga}if(i&64)J[g+580>>2]=J[c+988>>2];J[699344]=0;v=Q(N[c+344>>2]+Q(.5));ma:{if(v=Q(0)){o=~~v>>>0;break ma}o=0}h=J[699344];J[699344]=0;e=-1;na:{if(!h)break na;d=J[699345]; +if(!d)break na;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;J[699344]=0;ca(98,g+352|0,o|0,i&1);h=J[699344];J[699344]=0;e=-1;oa:{if(!h)break oa;d=J[699345];if(!d)break oa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;if(i&16){J[699344]=0;$(99,g+352|0);h=J[699344];J[699344]=0;e=-1;pa:{if(!h)break pa;d=J[699345];if(!d)break pa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga}d=J[g+436>>2]; +J[d+8>>2]=2;J[d+12>>2]=2;J[d+184>>2]=1;J[d+188>>2]=1;J[d+96>>2]=1;J[d+100>>2]=1;if(i&4096){J[d+184>>2]=1;J[d+188>>2]=1;J[d+96>>2]=1;J[d+100>>2]=1;J[d+8>>2]=2;J[d+12>>2]=1}if(i&8192){J[d+184>>2]=1;J[d+188>>2]=1;J[d+96>>2]=1;J[d+100>>2]=1;J[d+8>>2]=1;J[d+12>>2]=1}J[699344]=0;H[g+602|0]=1;i=J[c+364>>2];h=J[699344];J[699344]=0;e=-1;qa:{if(!h)break qa;d=J[699345];if(!d)break qa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;J[699344]=0;I[g+604>>1]=i;i=J[c+368>>2];h= +J[699344];J[699344]=0;e=-1;ra:{if(!h)break ra;d=J[699345];if(!d)break ra;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;J[699344]=0;I[g+606>>1]=i;da(101,g+352|0,1);h=J[699344];J[699344]=0;e=-1;sa:{if(!h)break sa;d=J[699345];if(!d)break sa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;d=J[J[g+356>>2]+8>>2];p=J[q>>2];J[699344]=0;s=ha(d|0,g+352|0,1,p+8|0,1)|0;h=J[699344];J[699344]=0;e=-1;ta:{if(!h)break ta;d=J[699345];if(!d)break ta; +e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break ga;J[699344]=0;mf(c,0);h=J[699344];J[699344]=0;e=-1;ua:{if(!h)break ua;d=J[699345];if(!d)break ua;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;va:{if((h|0)==1)break va;J[699344]=0;o=J[c+20>>2];h=J[699344];J[699344]=0;e=-1;wa:{if(!h)break wa;d=J[699345];if(!d)break wa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;J[699344]=0;i=mf(c,0);h=J[699344];J[699344]=0;e=-1; +xa:{if(!h)break xa;d=J[699345];if(!d)break xa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;J[699344]=0;t=J[c+52>>2];h=J[699344];J[699344]=0;e=-1;ya:{if(!h)break ya;d=J[699345];if(!d)break ya;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;J[699344]=0;u=J[c+20>>2];h=J[699344];J[699344]=0;e=-1;za:{if(!h)break za;d=J[699345];if(!d)break za;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;Aa:{if((p| +0)>0){e=i+P(t,u-1|0)|0;while(1){if(M[g+612>>2]>=M[g+384>>2])break Aa;Ba:{if(!e)break Ba;u=J[s>>2];if(!u)break Ba;J[699344]=0;t=J[c+52>>2];h=J[699344];J[699344]=0;i=-1;Ca:{if(!h)break Ca;d=J[699345];if(!d)break Ca;i=Pc(J[h>>2],l,n);if(!i)break U;gc=d}d=gc;if((i|0)==1)continue aa;if((h|0)==1)break va;xc(u,e,(p|0)>(t|0)?t:p)}if(!J[r>>2]){d=J[s>>2];J[699344]=0;ys(c,d,p);h=J[699344];J[699344]=0;i=-1;Da:{if(!h)break Da;d=J[699345];if(!d)break Da;i=Pc(J[h>>2],l,n);if(!i)break U;gc=d}d=gc;if((i|0)==1)continue aa; +if((h|0)==1)break va}o=o-1|0;if((o|0)>0){J[699344]=0;t=J[c+52>>2];h=J[699344];J[699344]=0;i=-1;Ea:{if(!h)break Ea;d=J[699345];if(!d)break Ea;i=Pc(J[h>>2],l,n);if(!i)break U;gc=d}d=gc;if((i|0)==1)continue aa;if((h|0)==1)break va;e=e-t|0}J[699344]=0;ga(102,g+352|0,s|0,1)|0;h=J[699344];J[699344]=0;i=-1;Fa:{if(!h)break Fa;d=J[699345];if(!d)break Fa;i=Pc(J[h>>2],l,n);if(!i)break U;gc=d}d=gc;if((i|0)==1)continue aa;if((h|0)!=1)continue;break}break va}while(1){if(M[g+612>>2]>=M[g+384>>2])break Aa;Ga:{if(!J[r>> +2]){d=J[s>>2];J[699344]=0;ys(c,d,p);h=J[699344];J[699344]=0;e=-1;Ha:{if(!h)break Ha;d=J[699345];if(!d)break Ha;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue aa;if((h|0)==1)break Ga}o=o-1|0;if((o|0)>0){J[699344]=0;h=J[699344];J[699344]=0;e=-1;Ia:{if(!h)break Ia;d=J[699345];if(!d)break Ia;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue aa;if((h|0)==1)break Ga}J[699344]=0;ga(102,g+352|0,s|0,1)|0;h=J[699344];J[699344]=0;e=-1;Ja:{if(!h)break Ja;d=J[699345];if(!d)break Ja; +e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue aa;if((h|0)!=1)continue}break}break ga}J[699344]=0;$(103,g+352|0);h=J[699344];J[699344]=0;e=-1;Ka:{if(!h)break Ka;d=J[699345];if(!d)break Ka;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;J[699344]=0;$(93,g+352|0);h=J[699344];J[699344]=0;e=-1;La:{if(!h)break La;d=J[699345];if(!d)break La;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[c+976>>2];if(!(!d|!K[J[d>> +2]+460|0])){J[699344]=0;OP(d);h=J[699344];J[699344]=0;e=-1;Ma:{if(!h)break Ma;d=J[699345];if(!d)break Ma;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[J[b>>2]+20>>2];J[699344]=0;ga(d|0,b|0,k|0,0)|0;h=J[699344];J[699344]=0;e=-1;Na:{if(!h)break Na;d=J[699345];if(!d)break Na;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[c+976>>2];J[699344]=0;ga(58,d|0,b|0,2)|0;h=J[699344];J[699344]=0;e=-1;Oa:{if(!h)break Oa;d=J[699345]; +if(!d)break Oa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[J[b>>2]+20>>2];J[699344]=0;ga(d|0,b|0,k|0,0)|0;h=J[699344];J[699344]=0;e=-1;Pa:{if(!h)break Pa;d=J[699345];if(!d)break Pa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)==1)break va;d=J[c+976>>2];J[699344]=0;aa(105,d|0,b|0)|0;h=J[699344];J[699344]=0;e=-1;Qa:{if(!h)break Qa;d=J[699345];if(!d)break Qa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;if((h|0)== +1)break va}d=J[g+52>>2];if(!d)break T;J[699344]=0;uc(d);h=J[699344];J[699344]=0;e=-1;Ra:{if(!h)break Ra;d=J[699345];if(!d)break Ra;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue;break T}}f=Z()|0;d=J[g+52>>2];if(d){J[699344]=0;uc(d);h=J[699344];J[699344]=0;e=-1;Sa:{if(!h)break Sa;d=J[699345];if(!d)break Sa;e=Pc(J[h>>2],l,n);if(!e)break U;gc=d}d=gc;if((e|0)==1)continue}break}uc(l);ba(f|0);B()}uc(l);nf(h,d);B()}d=!f}b=d;uc(l);fc=g+784|0;break Q}a=Z()|0;uc(l);break a}if(b)break c;break b; +case 1:e=vc(1124);J[699344]=0;c=_(49,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;ck(c,a);if(!sl(c,b))Ta:{if(L[c+26>>1]>=9){m=fc-1168|0;fc=m;iN(c,b);d=Yc(J[c+1116>>2]);if(d){kc[J[J[b>>2]+44>>2]](b,33)|0;kc[J[J[b>>2]+44>>2]](b,254)|0;d=d>>>0>=255?255:d;kc[J[J[b>>2]+44>>2]](b,d)|0;kc[J[J[b>>2]+16>>2]](b,J[c+1116>>2],d,1)|0;kc[J[J[b>>2]+44>>2]](b,0)|0}e=b;g=$D(m+44|0);b=J[c+20>>2];d=J[c+16>>2];J[699344]=0;na(78,g|0,d|0,b|0,8,0)|0;b=J[699344];J[699344]=0;Ua:{Va:{Wa:{Xa:{Ya:{Za:{if((b|0)==1)break Za; +J[699344]=0;J[g+336>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break Za;k=J[c+20>>2];n=J[c+16>>2];J[699344]=0;o=_(27,P(k,n)<<2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ya;if(!(!k|!n)){b=1;i=k;f=o;while(1){d=0;l=0;if(b){while(1){J[699344]=0;fl(m+28|0,c,l,h,1);b=J[699344];J[699344]=0;if((b|0)==1)break Xa;H[f|0]=K[m+28|0];H[f+1|0]=K[m+29|0];H[f+2|0]=K[m+30|0];H[f+3|0]=K[m+31|0];f=f+4|0;d=J[c+16>>2];l=l+1|0;if(d>>>0>l>>>0)continue;break}i=J[c+20>>2]}b=d;h=h+1|0;if(i>>>0>h>>>0)continue;break}}J[699344]= +0;b=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Wa;f=Z()|0;break Va}f=Z()|0;break Va}f=Z()|0;break Va}f=Z()|0;break Va}J[b+8>>2]=k;J[b+4>>2]=n;J[b>>2]=o;d=b+12|0;J[m+36>>2]=d;J[m+32>>2]=d;J[m+28>>2]=b;J[m+24>>2]=0;J[699344]=0;ia(199,m+12|0,m+43|0,m+28|0,m+24|0);b=J[699344];J[699344]=0;_a:{$a:{if((b|0)!=1){k=J[J[m+12>>2]>>2];f=0;while(1){b=J[J[m+24>>2]+(f<<2)>>2];H[m+8|0]=b;H[m+9|0]=b>>>8;H[m+10|0]=b>>>16;H[m+11|0]=b>>>24;J[699344]=0;J[m+4>>2]=b;Hy(g,f&255,m+4|0);b=J[699344];J[699344]=0;if((b| +0)==1)break $a;f=f+1|0;if((f|0)!=256)continue;break}i=J[c+20>>2];if(!(!i|!J[c+16>>2])){l=J[k>>2];b=1;h=0;while(1){d=0;f=0;if(b){while(1){b=K[l|0];J[699344]=0;jn(g,f,h,b);b=J[699344];J[699344]=0;if((b|0)==1)break $a;l=l+1|0;d=J[c+16>>2];f=f+1|0;if(d>>>0>f>>>0)continue;break}i=J[c+20>>2]}b=d;h=h+1|0;if(i>>>0>h>>>0)continue;break}}uc(o);b=J[m+24>>2];if(b)uc(b);b=J[k>>2];if(b)uc(b);uc(k);J[699344]=0;J[g+396>>2]=0;J[g+392>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break $a;b=J[J[e>>2]+44>>2];J[699344]= +0;aa(b|0,e|0,33)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $a;b=J[J[e>>2]+44>>2];J[699344]=0;aa(b|0,e|0,249)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $a;H[g+976|0]=J[g+336>>2]!=-1;J[699344]=0;d=K[g+492|0];b=J[699344];J[699344]=0;if((b|0)==1)break $a;H[g+979|0]=J[g+336>>2];b=I[g+360>>1];H[g+977|0]=b;H[g+978|0]=b>>>8;H[g+976|0]=K[g+976|0]|d<<2&28;J[699344]=0;d=K[g+494|0];f=J[699344];J[699344]=0;if((f|0)==1)break $a;b=(d?b:b<<8|(b&65280)>>>8)<<16>>16;H[g+977|0]=b;H[g+978|0]=b>>>8;b=J[J[e>>2]+44>> +2];J[699344]=0;aa(b|0,e|0,4)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $a;b=J[J[e>>2]+16>>2];J[699344]=0;ha(b|0,e|0,g+976|0,4,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $a;b=(K[g+977|0]|K[g+978|0]<<8)<<16>>16;J[699344]=0;d=K[g+494|0];f=J[699344];J[699344]=0;if((f|0)==1)break $a;b=(d?b:b<<8|(b&65280)>>>8)<<16>>16;H[g+977|0]=b;H[g+978|0]=b>>>8;b=J[J[e>>2]+44>>2];J[699344]=0;aa(b|0,e|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $a;J[699344]=0;ca(204,g|0,e|0,1);b=J[699344];J[699344]=0;if((b| +0)==1)break $a;b=J[J[e>>2]+44>>2];J[699344]=0;aa(b|0,e|0,59)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $a;b=J[m+12>>2];if(b){J[m+16>>2]=b;uc(b)}b=J[m+28>>2];if(b){J[m+32>>2]=b;uc(b)}ip(g);fc=m+1168|0;break Ua}f=Z()|0;break _a}f=Z()|0;a=J[m+12>>2];if(!a)break _a;J[m+16>>2]=a;uc(a)}a=J[m+28>>2];if(!a)break Va;J[m+32>>2]=a;uc(a)}ip(g);ba(f|0);B()}d=1;break Ta}ab:{k=J[c+356>>2];if((k|0)<2)break ab;e=J[c+972>>2];if(!e)break ab;f=0;o=fc-1136|0;fc=o;bb:{cb:{db:{eb:{fb:{if(!b){Ad(c+72|0,43627,255);break fb}if(!(!J[e>> +2]|(!e|(k|0)<=0))){gb:{while(1){d=e+(f<<2)|0;i=J[d>>2];if(!i){Ad(c+72|0,44360,255);break fb}if(!J[i+4>>2]){Ad(c+72|0,44689,255);break fb}if(J[J[d>>2]+44>>2]){f=f+1|0;if((k|0)==(f|0))break gb;continue}break}Ad(c+72|0,44851,255);break fb}d=$D(o+12|0);f=J[e>>2];J[699344]=0;da(205,d|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break cb;J[699344]=0;da(206,d|0,b|0);f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[c+1120>>2];if((f|0)!=1){J[d+1120>>2]=((f|0)<=1?1:f)-1;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0, +b|0,33)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,255)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,11)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+16>>2];J[699344]=0;ha(f|0,b|0,45673,11,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,3)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,1)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break cb;i=J[J[b>>2]+44>>2];f=J[d+1120>>2];J[699344]=0;aa(i|0,b|0,f&255)|0;i=J[699344];J[699344]=0;if((i|0)==1)break cb;i=J[J[b>>2]+44>>2];J[699344]=0;aa(i|0,b|0,f>>>8&255)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb}J[699344]=0;i=K[d+492|0];f=J[699344];J[699344]=0;hb:{if((f|0)==1)break hb;J[699344]=0;f=K[c+492|0];m=J[699344];J[699344]=0;if((m|0)==1)break hb;J[699344]=0;H[d+492|0]=f;f=J[699344]; +J[699344]=0;if((f|0)==1)break hb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,33)|0;f=J[699344];J[699344]=0;if((f|0)==1)break hb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,249)|0;f=J[699344];J[699344]=0;if((f|0)==1)break hb;H[d+976|0]=J[d+336>>2]!=-1;J[699344]=0;m=K[d+492|0];f=J[699344];J[699344]=0;if((f|0)==1)break hb;H[d+979|0]=J[d+336>>2];f=I[d+360>>1];H[d+977|0]=f;H[d+978|0]=f>>>8;H[d+976|0]=K[d+976|0]|m<<2&28;J[699344]=0;m=K[d+494|0];g=J[699344];J[699344]=0;if((g|0)==1)break hb;f=(m?f:f<<8|(f&65280)>>> +8)<<16>>16;H[d+977|0]=f;H[d+978|0]=f>>>8;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break hb;f=J[J[b>>2]+16>>2];J[699344]=0;ha(f|0,b|0,d+976|0,4,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break hb;f=(K[d+977|0]|K[d+978|0]<<8)<<16>>16;J[699344]=0;m=K[d+494|0];g=J[699344];J[699344]=0;if((g|0)==1)break hb;f=(m?f:f<<8|(f&65280)>>>8)<<16>>16;H[d+977|0]=f;H[d+978|0]=f>>>8;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break hb;J[699344]= +0;H[d+492|0]=i;f=J[699344];J[699344]=0;if((f|0)!=1)break eb}break cb}Ad(c+72|0,44244,255)}b=0;break db}f=Yc(J[c+1116>>2]);if(f){i=J[J[b>>2]+44>>2];J[699344]=0;aa(i|0,b|0,33)|0;i=J[699344];J[699344]=0;if((i|0)==1)break cb;i=J[J[b>>2]+44>>2];J[699344]=0;aa(i|0,b|0,254)|0;i=J[699344];J[699344]=0;if((i|0)==1)break cb;i=J[J[b>>2]+44>>2];J[699344]=0;f=f>>>0>=255?255:f;aa(i|0,b|0,f&255)|0;i=J[699344];J[699344]=0;if((i|0)==1)break cb;i=J[c+1116>>2];m=J[J[b>>2]+16>>2];J[699344]=0;ha(m|0,b|0,i|0,f|0,1)|0;f= +J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb}J[699344]=0;ca(204,d|0,b|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break cb;ib:{if((k|0)>=2){m=d+976|0;i=1;while(1){f=J[e+(i<<2)>>2];J[699344]=0;da(205,d|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break ib;J[699344]=0;g=K[d+492|0];f=J[699344];J[699344]=0;if((f|0)==1)break cb;J[699344]=0;f=K[c+492|0];h=J[699344];J[699344]=0;if((h|0)==1)break cb;J[699344]=0;H[d+492|0]= +f;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,33)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,249)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;H[d+976|0]=J[d+336>>2]!=-1;J[699344]=0;h=K[d+492|0];f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=I[d+360>>1];H[d+977|0]=f;H[d+978|0]=f>>>8;H[d+979|0]=J[d+336>>2];H[d+976|0]=K[d+976|0]|h<<2&28;J[699344]=0;h=K[d+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break cb;f=(h? +f:f<<8|(f&65280)>>>8)<<16>>16;H[d+977|0]=f;H[d+978|0]=f>>>8;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=J[J[b>>2]+16>>2];J[699344]=0;ha(f|0,b|0,m|0,4,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break cb;f=(K[d+977|0]|K[d+978|0]<<8)<<16>>16;J[699344]=0;h=K[d+494|0];l=J[699344];J[699344]=0;if((l|0)==1)break cb;f=(h?f:f<<8|(f&65280)>>>8)<<16>>16;H[d+977|0]=f;H[d+978|0]=f>>>8;f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,0)|0;f=J[699344];J[699344]=0;if((f|0)== +1)break cb;J[699344]=0;H[d+492|0]=g;f=J[699344];J[699344]=0;if((f|0)==1)break cb;J[699344]=0;ca(204,d|0,b|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break ib;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=J[J[b>>2]+44>>2];J[699344]=0;aa(f|0,b|0,59)|0;f=J[699344];J[699344]=0;b=1;if((f|0)==1)break cb;ip(d);break db}break cb}fc=o+1136|0;break bb}a=Z()|0;ip(d);ba(a|0);B()}d=b;break Ta}iN(c,b);kc[J[J[b>>2]+44>>2]](b,33)|0;kc[J[J[b>>2]+44>>2]](b,249)|0;H[c+976|0]=J[c+336>>2]!=-1;f=K[c+492|0];d=I[c+360>>1];H[c+ +977|0]=d;H[c+978|0]=d>>>8;H[c+979|0]=J[c+336>>2];H[c+976|0]=K[c+976|0]|f<<2&28;d=K[c+494|0]?d:d<<8|(d&65280)>>>8;H[c+977|0]=d;H[c+978|0]=d>>>8;kc[J[J[b>>2]+44>>2]](b,4)|0;d=1;kc[J[J[b>>2]+16>>2]](b,c+976|0,4,1)|0;f=(K[c+977|0]|K[c+978|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[c+977|0]=f;H[c+978|0]=f>>>8;kc[J[J[b>>2]+44>>2]](b,0)|0;f=Yc(J[c+1116>>2]);if(f){kc[J[J[b>>2]+44>>2]](b,33)|0;kc[J[J[b>>2]+44>>2]](b,254)|0;f=f>>>0>=255?255:f;kc[J[J[b>>2]+44>>2]](b,f)|0;kc[J[J[b>>2]+16>>2]](b,J[c+1116>> +2],f,1)|0;kc[J[J[b>>2]+44>>2]](b,0)|0}z7(c,b,0);kc[J[J[b>>2]+44>>2]](b,59)|0}if(d)break c;break b;case 3:e=vc(976);J[699344]=0;c=xf(e,4);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c>>2]=45892;ck(c,a);n=fc-304|0;fc=n;k=Dc(40);J[k>>2]=0;J[699344]=0;d=sl(c,b);g=J[699344];J[699344]=0;jb:{kb:{lb:{if((g|0)==1)break lb;l=4;e=-1;mb:{if(!g)break mb;h=J[699345];if(!h)break mb;e=Pc(J[g>>2],k,4);if(!e)break kb;gc=h}g=gc;nb:{ob:{if((e|0)==1)break ob;e=0;if(d)break nb;J[699344]=0;mf(c,0);g=J[699344];J[699344]= +0;if((g|0)==1)break lb;e=-1;pb:{if(!g)break pb;h=J[699345];if(!h)break pb;e=Pc(J[g>>2],k,4);if(!e)break kb;gc=h}g=gc;if((e|0)==1)break ob;J[699344]=0;d=ha(132,43541,0,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;qb:{if(!g)break qb;h=J[699345];if(!h)break qb;e=Pc(J[g>>2],k,4);if(!e)break kb;gc=h}g=gc;if((e|0)==1)break ob;J[n+44>>2]=d;if(!d){e=0;J[699344]=0;Ad(c+72|0,43703,255);g=J[699344];J[699344]=0;d=-1;rb:{if(!g)break rb;h=J[699345];if(!h)break rb;d=Pc(J[g>>2],k,4);if(!d)break kb;gc= +h}g=gc;if((d|0)==1)break ob;break nb}J[699344]=0;d=_(111,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;sb:{if(!g)break sb;h=J[699345];if(!h)break sb;e=Pc(J[g>>2],k,4);if(!e)break kb;gc=h}g=gc;if((e|0)==1)break ob;J[n+40>>2]=d;if(!d){J[699344]=0;da(133,n+44|0,0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;tb:{if(!g)break tb;h=J[699345];if(!h)break tb;e=Pc(J[g>>2],k,4);if(!e)break kb;gc=h}g=gc;if((e|0)==1)break ob;J[699344]=0;Ad(c+72|0,44081,255);g=J[699344];J[699344]=0;e=-1;ub:{if(!g)break ub; +h=J[699345];if(!h)break ub;e=Pc(J[g>>2],k,4);if(!e)break kb;gc=h}g=gc;if((e|0)==1)break ob;e=0;break nb}k=Hf(J[n+44>>2],1,k,4);l=gc;g=0}vb:while(1){if(g){d=J[J[n+40>>2]+16>>2];if(d)uc(d);J[699344]=0;da(133,n+44|0,n+40|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;wb:{if(!g)break wb;h=J[699345];if(!h)break wb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;J[699344]=0;Ad(c+72|0,44946,255);g=J[699344];J[699344]=0;e=-1;xb:{if(!g)break xb;h=J[699345];if(!h)break xb;e=Pc(J[g>>2], +k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;e=0;break nb}J[699344]=0;ia(134,J[n+44>>2],b|0,135,136);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;yb:{if(!g)break yb;h=J[699345];if(!h)break yb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;J[699344]=0;d=J[c+16>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;zb:{if(!g)break zb;h=J[699345];if(!h)break zb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;J[J[n+40>>2]>>2]=d;J[699344]=0;d=J[c+20>>2];g=J[699344]; +J[699344]=0;if((g|0)==1)break lb;e=-1;Ab:{if(!g)break Ab;h=J[699345];if(!h)break Ab;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;J[J[n+40>>2]+4>>2]=d;J[699344]=0;d=L[c+26>>1];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Bb:{if(!g)break Bb;h=J[699345];if(!h)break Bb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;H[J[n+40>>2]+30|0]=d;J[699344]=0;d=L[c+26>>1];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Cb:{if(!g)break Cb;h=J[699345];if(!h)break Cb;e=Pc(J[g>> +2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;H[J[n+40>>2]+29|0]=d>>>0>8?3:1;J[699344]=0;f=L[c+26>>1];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Db:{if(!g)break Db;h=J[699345];if(!h)break Db;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;d=J[n+40>>2];I[d+26>>1]=0;J[d+8>>2]=0;H[d+24|0]=(f>>>0)/K[d+29|0];J[699344]=0;d=Xq(c,4);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Eb:{if(!g)break Eb;h=J[699345];if(!h)break Eb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e| +0)==1)continue;H[J[n+40>>2]+28|0]=d&1;g=-1;d=(d&14)-2|0;if(d>>>0<=4)g=J[(d<<2)+47768>>2];J[699344]=0;d=J[n+44>>2];if(d){J[d+280>>2]=g;J[d+204>>2]=J[d+204>>2]|2}g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Fb:{if(!g)break Fb;h=J[699345];if(!h)break Fb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;J[699344]=0;t=tp(c);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Gb:{if(!g)break Gb;h=J[699345];if(!h)break Gb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;J[699344]= +0;d=J[c+44>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Hb:{if(!g)break Hb;h=J[699345];if(!h)break Hb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;H[J[n+40>>2]+25|0]=d?t?0:3:2;J[699344]=0;d=J[c+964>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=(d|0)!=0;e=-1;Ib:{if(!g)break Ib;h=J[699345];if(!h)break Ib;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;if(d){d=J[n+40>>2];H[d+24|0]=8;H[d+25|0]=K[d+25|0]|4;H[d+29|0]=K[d+29|0]+1;H[d+30|0]=K[d+30|0]+8}I[n+ +32>>1]=L[23882];d=L[23880]|L[23881]<<16;J[n+24>>2]=L[23878]|L[23879]<<16;J[n+28>>2]=d;J[699344]=0;mP(n+20|0,c);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Jb:{if(!g)break Jb;h=J[699345];if(!h)break Jb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;if(J[c+336>>2]>=0){I[n+30>>1]=K[n+20|0];I[n+28>>1]=K[n+21|0];I[n+26>>1]=K[n+22|0]}J[699344]=0;hI(J[n+44>>2],J[n+40>>2],n+24|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Kb:{if(!g)break Kb;h=J[699345];if(!h)break Kb;e=Pc(J[g>> +2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;d=J[c+40>>2];f=J[c+36>>2];J[699344]=0;fI(J[n+44>>2],J[n+40>>2],f,d,1);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Lb:{if(!g)break Lb;h=J[699345];if(!h)break Lb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;d=J[n+40>>2];f=K[d+28|0];e=K[d+25|0];i=K[d+24|0];o=J[d+4>>2];m=J[d>>2];J[699344]=0;Ja(143,J[n+44>>2],d|0,m|0,o|0,i|0,e|0,f|0,0,0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Mb:{if(!g)break Mb;h=J[699345];if(!h)break Mb; +e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;f=J[c+336>>2];Nb:{if((f|0)<0)break Nb;d=J[n+40>>2];I[d+22>>1]=1;H[d+80|0]=f;J[d+8>>2]=J[d+8>>2]|16;J[d+76>>2]=n+48;I[d+82>>1]=K[n+22|0];I[d+84>>1]=K[n+21|0];e=K[n+20|0];i=f&255;I[d+88>>1]=i;I[d+86>>1]=e;if(!f|(t|!J[c+44>>2]))break Nb;J[699344]=0;xO(c,0,i);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Ob:{if(!g)break Ob;h=J[699345];if(!h)break Ob;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue}J[699344]=0;d=J[c+4>> +2];f=J[c+44>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=d?f?d+40|0:0:0;e=-1;Pb:{if(!g)break Pb;h=J[699345];if(!h)break Pb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;Qb:{if(!d)break Qb;if(!t){d=J[n+40>>2];J[d+8>>2]=J[d+8>>2]|8}J[699344]=0;d=J[c+48>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Rb:{if(!g)break Rb;h=J[699345];if(!h)break Rb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;if(!d){J[699344]=0;d=J[c+44>>2];g=J[699344];J[699344]=0;if((g| +0)==1)break lb;e=-1;Sb:{if(!g)break Sb;h=J[699345];if(!h)break Sb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue}Tb:{if(!K[c+389|0]){e=J[n+40>>2];break Tb}if((d|0)>0){f=0;e=0;while(1){J[699344]=0;Hg(n+16|0,c,e&255);g=J[699344];J[699344]=0;if((g|0)==1)break lb;i=-1;Ub:{if(!g)break Ub;h=J[699345];if(!h)break Ub;i=Pc(J[g>>2],k,l);if(!i)break kb;gc=h}g=gc;if((i|0)==1)continue vb;H[(n+48|0)+f|0]=K[n+19|0];e=e+1|0;f=e&65535;if((f|0)<(d|0))continue;break}}e=J[n+40>>2];I[e+22>>1]=d;J[e+8>> +2]=J[e+8>>2]|16;J[e+76>>2]=n+48}J[699344]=0;i=-1;f=_(27,(w=-1,x=vEb(d,0,3,0),y=jc,y?w:x)|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break lb;Vb:{if(!g)break Vb;h=J[699345];if(!h)break Vb;i=Pc(J[g>>2],k,l);if(!i)break kb;gc=h}g=gc;if((i|0)==1)continue;I[e+20>>1]=d;J[e+16>>2]=f;e=0;if((d|0)<=0)break Qb;while(1){f=J[J[n+40>>2]+16>>2];J[699344]=0;f=f+P(e,3)|0;BO(c,e&255,f,f+1|0,f+2|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;i=-1;Wb:{if(!g)break Wb;h=J[699345];if(!h)break Wb;i=Pc(J[g>>2],k,l);if(!i)break kb; +gc=h}g=gc;if((i|0)==1)continue vb;e=e+1|0;if((e|0)!=(d|0))continue;break}}J[699344]=0;d=J[c+964>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=(d|0)!=0;e=-1;Xb:{if(!g)break Xb;h=J[699345];if(!h)break Xb;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;Yb:{if(!(d&L[c+26>>1]==24)|J[c+336>>2]<0)break Yb;h=J[c+20>>2];if((h|0)<=0)break Yb;i=0;g=J[c+16>>2];if((g|0)<=0)break Yb;while(1){e=0;if((g|0)>0){while(1){J[699344]=0;fl(n+12|0,c,e,i,0);g=J[699344];J[699344]=0;if((g|0)==1)break lb; +d=-1;Zb:{if(!g)break Zb;h=J[699345];if(!h)break Zb;d=Pc(J[g>>2],k,l);if(!d)break kb;gc=h}g=gc;if((d|0)==1)continue vb;if(J[n+12>>2]==J[n+20>>2]){J[699344]=0;yh(c,e,i,0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=-1;_b:{if(!g)break _b;h=J[699345];if(!h)break _b;d=Pc(J[g>>2],k,l);if(!d)break kb;gc=h}g=gc;if((d|0)==1)continue vb}e=e+1|0;g=J[c+16>>2];if((e|0)<(g|0))continue;break}h=J[c+20>>2]}i=i+1|0;if((i|0)<(h|0))continue;break}}d=J[c+52>>2];f=J[n+40>>2];e=P(P(J[f>>2],K[f+29|0]),K[f+24|0]>>>3|0); +q=d>>>0>e>>>0?d:e;J[f+12>>2]=q;J[699344]=0;p=_(27,q|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=-1;$b:{if(!g)break $b;h=J[699345];if(!h)break $b;d=Pc(J[g>>2],k,l);if(!d)break kb;gc=h}g=gc;if((d|0)==1)continue;J[699344]=0;da(149,J[n+44>>2],f|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;ac:{if(!g)break ac;h=J[699345];if(!h)break ac;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;J[699344]=0;f=1;d=J[n+44>>2];if(!(!d|!K[d+398|0])){J[d+208>>2]=J[d+208>>2]|2;f=7}g=J[699344]; +J[699344]=0;if((g|0)==1)break lb;e=-1;bc:{if(!g)break bc;h=J[699345];if(!h)break bc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;cc:{if((f|0)<=0)break cc;o=0;j=0;if(t)while(1){J[699344]=0;m=J[c+20>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;dc:{if(!g)break dc;h=J[699345];if(!h)break dc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;J[699344]=0;d=mf(c,0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;ec:{if(!g)break ec;h=J[699345];if(!h)break ec; +e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;J[699344]=0;i=J[c+52>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;fc:{if(!g)break fc;h=J[699345];if(!h)break fc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;J[699344]=0;j=J[c+20>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;gc:{if(!g)break gc;h=J[699345];if(!h)break gc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;r=J[c+20>>2]-1|0;s=P(i,j-1|0)+d|0;while(1){J[699344]=0;d=J[c+ +964>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=(d|0)!=0;e=-1;hc:{if(!g)break hc;h=J[699345];if(!h)break hc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;ic:{if(!d){if(!(!s|(q|0)<=0)){J[699344]=0;e=J[c+52>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=-1;jc:{if(!g)break jc;h=J[699345];if(!h)break jc;d=Pc(J[g>>2],k,l);if(!d)break kb;gc=h}g=gc;if((d|0)==1)continue vb;xc(p,s,(e|0)<(q|0)?e:q)}if(K[J[n+40>>2]+25|0]==2){J[699344]=0;ys(c,p,q);g=J[699344];J[699344]=0;if((g| +0)==1)break lb;e=-1;kc:{if(!g)break kc;h=J[699345];if(!h)break kc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb}J[699344]=0;da(150,J[n+44>>2],p|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;lc:{if(!g)break lc;h=J[699345];if(!h)break lc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;break ic}d=J[c+16>>2];if((d|0)>0)while(1){J[699344]=0;e=-1;i=d-1|0;kn(n+8|0,c,i,r,1);g=J[699344];J[699344]=0;if((g|0)==1)break lb;mc:{if(!g)break mc;h=J[699345];if(!h)break mc; +e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;j=p+P(i,K[J[n+40>>2]+29|0])|0;H[j|0]=K[n+8|0];J[699344]=0;u=mm(c,i,r);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;nc:{if(!g)break nc;h=J[699345];if(!h)break nc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;H[j+1|0]=u;e=d>>>0>1;d=i;if(e)continue;break}J[699344]=0;da(150,J[n+44>>2],p|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;oc:{if(!g)break oc;h=J[699345];if(!h)break oc;e=Pc(J[g>>2],k,l);if(!e)break kb; +gc=h}g=gc;if((e|0)==1)continue vb;r=r-1|0}m=m-1|0;if((m|0)>0){J[699344]=0;d=J[c+52>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;pc:{if(!g)break pc;h=J[699345];if(!h)break pc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;s=s-d|0;continue}break}o=o+1|0;if((f|0)!=(o|0))continue;break cc}while(1){J[699344]=0;m=J[c+20>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;qc:{if(!g)break qc;h=J[699345];if(!h)break qc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb; +J[699344]=0;d=mf(c,0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;rc:{if(!g)break rc;h=J[699345];if(!h)break rc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;J[699344]=0;i=J[c+52>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;sc:{if(!g)break sc;h=J[699345];if(!h)break sc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;J[699344]=0;r=J[c+20>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;tc:{if(!g)break tc;h=J[699345];if(!h)break tc;e=Pc(J[g>> +2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;o=J[c+20>>2]-1|0;s=P(i,r-1|0)+d|0;while(1){J[699344]=0;d=J[c+964>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=(d|0)!=0;e=-1;uc:{if(!g)break uc;h=J[699345];if(!h)break uc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;vc:{wc:{if(d){e=J[c+16>>2];if((e|0)<=0)break wc;while(1){J[699344]=0;d=-1;i=e-1|0;kn(n+8|0,c,i,o,1);g=J[699344];J[699344]=0;if((g|0)==1)break lb;xc:{if(!g)break xc;h=J[699345];if(!h)break xc;d=Pc(J[g>> +2],k,l);if(!d)break kb;gc=h}g=gc;if((d|0)==1)continue vb;g=K[n+9|0];h=K[n+8|0];d=p+P(i,K[J[n+40>>2]+29|0])|0;H[d|0]=K[n+10|0];H[d+2|0]=h;H[d+1|0]=g;J[699344]=0;u=mm(c,i,o);g=J[699344];J[699344]=0;if((g|0)==1)break lb;r=-1;yc:{if(!g)break yc;h=J[699345];if(!h)break yc;r=Pc(J[g>>2],k,l);if(!r)break kb;gc=h}g=gc;if((r|0)==1)continue vb;H[d+3|0]=u;d=e>>>0>1;e=i;if(d)continue;break}break wc}if(!(!s|(q|0)<=0)){J[699344]=0;e=J[c+52>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=-1;zc:{if(!g)break zc; +h=J[699345];if(!h)break zc;d=Pc(J[g>>2],k,l);if(!d)break kb;gc=h}g=gc;if((d|0)==1)continue vb;xc(p,s,(e|0)<(q|0)?e:q)}if(K[J[n+40>>2]+25|0]==2){J[699344]=0;ys(c,p,q);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Ac:{if(!g)break Ac;h=J[699345];if(!h)break Ac;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb}J[699344]=0;da(150,J[n+44>>2],p|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Bc:{if(!g)break Bc;h=J[699345];if(!h)break Bc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc; +if((e|0)==1)continue vb;break vc}J[699344]=0;da(150,J[n+44>>2],p|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Cc:{if(!g)break Cc;h=J[699345];if(!h)break Cc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;o=o-1|0}m=m-1|0;if((m|0)>0){J[699344]=0;d=J[c+52>>2];g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Dc:{if(!g)break Dc;h=J[699345];if(!h)break Dc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue vb;s=s-d|0;continue}break}j=j+1|0;if((f|0)!=(j|0))continue; +break}}J[699344]=0;uc(p);g=J[699344];J[699344]=0;e=-1;Ec:{if(!g)break Ec;h=J[699345];if(!h)break Ec;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;Fc:{if(t|!J[c+44>>2])break Fc;d=J[c+336>>2];if((d|0)<=0)break Fc;J[699344]=0;xO(c,d&255,0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;e=-1;Gc:{if(!g)break Gc;h=J[699345];if(!h)break Gc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue}J[699344]=0;da(152,J[n+44>>2],J[n+40>>2]);g=J[699344];J[699344]=0;if((g|0)==1)break lb; +e=-1;Hc:{if(!g)break Hc;h=J[699345];if(!h)break Hc;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;d=J[J[n+40>>2]+16>>2];if(d){J[699344]=0;uc(d);g=J[699344];J[699344]=0;e=-1;Ic:{if(!g)break Ic;h=J[699345];if(!h)break Ic;e=Pc(J[g>>2],k,l);if(!e)break kb;gc=h}g=gc;if((e|0)==1)continue;J[J[n+40>>2]+16>>2]=0}J[699344]=0;da(133,n+44|0,n+40|0);g=J[699344];J[699344]=0;if((g|0)==1)break lb;d=-1;Jc:{if(!g)break Jc;h=J[699345];if(!h)break Jc;d=Pc(J[g>>2],k,l);if(!d)break kb;gc=h}e=1;g=gc;if((d| +0)==1)continue;break}}uc(k);fc=n+304|0;break jb}a=Z()|0;uc(k);break a}uc(k);nf(g,h);B()}if(e)break c;break b;case 16:e=vc(1028);J[699344]=0;c=bN(e);d=J[699344];J[699344]=0;if((d|0)==1)break d;ck(c,a);if(sl(c,b))b=0;else Kc:{if(J[c+44>>2]){Ad(c+72|0,45144,255);b=0;break Kc}J[c+980>>2]=b;J[c+1008>>2]=J[c+52>>2];I[c+1012>>1]=L[c+26>>1];b=J[c+20>>2];J[c+1E3>>2]=J[c+16>>2];J[c+1004>>2]=b;d=J[c+32>>2];b=Dc(d);J[c+984>>2]=b;if(!b){Ad(c+72|0,45454,255);b=0;break Kc}xc(b,J[c+56>>2],d);b=Naa(c+980|0);J[c+976>> +2]=b;if(!b){Ad(c+72|0,43675,255);b=0;break Kc}if(!(!b|J[b>>2]!=1381173770))J[b+164>>2]=231;b=J[c+976>>2];if(!(!b|J[b>>2]!=1381173770))J[b+168>>2]=221;b=J[c+976>>2];if(!(!b|J[b>>2]!=1381173770))J[b+176>>2]=232;b=J[c+976>>2];Lc:{if(!b|J[b>>2]!=1381173770)break Lc;Mc:{if(!(!J[b+152>>2]|!J[b+156>>2])){if(K[b+344|0]|(K[b+417|0]|K[b+416|0]))break Mc;J[b+148>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;H[b+136|0]=0;J[b+132>>2]=0;if(SO(b))break Lc;H[b+416|0]=1;break Lc}Jc(b,3,0,0);break Lc}Jc(b,11,0,0)}b=0;i=fc-16| +0;fc=i;d=J[c+976>>2];if(!(!d|J[d>>2]!=1381173770))b=J[d+4>>2];h=J[b+20>>2];k=J[b+24>>2];g=vc(P(k,J[b+28>>2]+1|0));f=fc-48|0;fc=f;e=J[54746];J[f+32>>2]=J[54745];J[f+36>>2]=e;e=J[54744];J[f+24>>2]=J[54743];J[f+28>>2]=e;e=J[54742];J[f+16>>2]=J[54741];J[f+20>>2]=e;e=J[54740];J[f+8>>2]=J[54739];J[f+12>>2]=e;Nc:{if(!d|J[d>>2]!=1381173770)break Nc;if(!K[d+416|0]){Jc(d,11,0,0);break Nc}if(J[d+420>>2]!=1296581714){Jc(d,2052,0,0);break Nc}Oc:{e=J[d+280>>2];if(!e|J[e>>2]!=1413829197)break Oc;e=J[e+28>>2];if(J[e>> +2]==1296581714?e:0)break Oc;Jc(d,1072,0,0);break Nc}if(NE(d,f+8|0,f+44|0))break Nc;e=J[f+44>>2];J[e+64>>2]=0;J[e+60>>2]=0;J[e+56>>2]=0;J[e+52>>2]=0;H[e+48|0]=0;J[e+44>>2]=0;J[e+40>>2]=0;H[e+38|0]=1;H[e+37|0]=0;H[e+35|0]=0;I[e+32>>1]=0;Ay(d,e)}fc=f+48|0;f=fc-48|0;fc=f;e=J[54722];J[f+32>>2]=J[54721];J[f+36>>2]=e;e=J[54720];J[f+24>>2]=J[54719];J[f+28>>2]=e;e=J[54718];J[f+16>>2]=J[54717];J[f+20>>2]=e;e=J[54716];J[f+8>>2]=J[54715];J[f+12>>2]=e;Pc:{if(!d|J[d>>2]!=1381173770)break Pc;if(!K[d+416|0]){Jc(d, +11,0,0);break Pc}Qc:{e=J[d+280>>2];if(!e|J[e>>2]!=1413829197)break Qc;e=J[e+28>>2];if(J[e>>2]==1296581714?e:0)break Qc;Jc(d,1072,0,0);break Pc}if(Oq(d,f+8|0,f+44|0))break Pc;e=J[f+44>>2];H[e+44|0]=0;H[e+43|0]=0;H[e+42|0]=0;H[e+41|0]=2;H[e+40|0]=8;J[e+36>>2]=k;J[e+32>>2]=h;Ay(d,e)}fc=f+48|0;if((k|0)>0){e=g+1|0;while(1){f=J[b+28>>2];h=P(f+1|0,m);H[h+g|0]=0;ys(c,xc(e+h|0,J[b+4>>2]+P(f,k+(m^-1)|0)|0,f),f);m=m+1|0;if((k|0)!=(m|0))continue;break}}e=P(k,J[b+28>>2]+1|0);h=vc(e);J[i+12>>2]=e;b=fc+-64|0;fc= +b;m=J[i+12>>2];J[i+12>>2]=0;J[b+48>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;k=G2(b+8|0,9,28310);if(!k){J[b+24>>2]=0;J[b+20>>2]=h;J[b+12>>2]=0;J[b+8>>2]=g;while(1){if(!o){J[b+24>>2]=m;m=0}f=b+8|0;Rc:{if(!J[b+12>>2]){J[b+12>>2]=e;e=0;o=4;break Rc}o=!e<<2}f=Wk(f,o);if(!f){o=J[b+24>>2];continue}break}J[i+12>>2]=J[b+28>>2];Yo(b+8|0);k=(f|0)!=1?f:0}fc=b- -64|0;if(!k){e=J[i+12>>2];f=fc-48|0;fc=f;b=J[54730];J[f+32>>2]=J[54729];J[f+36>>2]=b;b=J[54728];J[f+24>>2]=J[54727];J[f+28>>2]=b;b=J[54726];J[f+16>>2]=J[54725]; +J[f+20>>2]=b;b=J[54724];J[f+8>>2]=J[54723];J[f+12>>2]=b;Sc:{if(!d|J[d>>2]!=1381173770)break Sc;if(!K[d+416|0]){Jc(d,11,0,0);break Sc}if(!J[d+420>>2]){Jc(d,2052,0,0);break Sc}Tc:{b=J[d+280>>2];if(!b|J[b>>2]!=1413829197)break Tc;b=J[b+28>>2];if(J[b>>2]==1296581714?b:0)break Tc;Jc(d,1072,0,0);break Sc}if(sp(d,f+8|0,f+44|0))break Sc;b=J[f+44>>2];J[b+36>>2]=e;H[b+32|0]=!e;if(e){b=kc[J[d+152>>2]](e)|0;J[J[f+44>>2]+40>>2]=b;if(!b){Jc(d,1,0,0);break Sc}xc(b,h,e);b=J[f+44>>2]}Ay(d,b)}fc=f+48|0;b=fc-48|0;fc= +b;f=J[54738];J[b+32>>2]=J[54737];J[b+36>>2]=f;f=J[54736];J[b+24>>2]=J[54735];J[b+28>>2]=f;f=J[54734];J[b+16>>2]=J[54733];J[b+20>>2]=f;f=J[54732];J[b+8>>2]=J[54731];J[b+12>>2]=f;Uc:{if(!d|J[d>>2]!=1381173770)break Uc;if(!K[d+416|0]){Jc(d,11,0,0);break Uc}if(!J[d+420>>2]){Jc(d,2052,0,0);break Uc}Vc:{f=J[d+280>>2];if(!f|J[f>>2]!=1413829197)break Vc;f=J[f+28>>2];if(J[f>>2]==1296581714?f:0)break Vc;Jc(d,1072,0,0);break Uc}if(fv(d,b+8|0,b+44|0))break Uc;Ay(d,J[b+44>>2]);f=J[d+420>>2];if((f|0)!=1246250066& +(f|0)!=1229472850)break Uc;H[d+416|0]=0}fc=b+48|0;uc(g);uc(h)}fc=i+16|0;f=J[c+976>>2];Wc:{if(!f|J[f>>2]!=1381173770)break Wc;if(!(!J[f+176>>2]|(!J[f+152>>2]|!J[f+156>>2]|(!J[f+164>>2]|!J[f+168>>2])))){if(K[f+344|0]){Jc(f,11,0,0);break Wc}J[f+148>>2]=0;J[f+140>>2]=0;J[f+144>>2]=0;H[f+136|0]=0;J[f+132>>2]=0;e=fc-16|0;fc=e;b=J[f+276>>2];Xc:{if(!b)break Xc;Yc:{if(K[f+417|0])break Yc;Zc:{d=J[f+164>>2];if(!d)break Zc;if(kc[d|0](f)|0)break Zc;Jc(f,901,0,0);break Xc}J[f+424>>2]=32768;H[f+417|0]=1;d=kc[J[f+ +152>>2]](32780)|0;J[f+428>>2]=d;if(!d){Jc(f,1,0,0);break Xc}i=d;d=J[b>>2];ws(i,(d|0)==1229472850?-1991225785:(d|0)==1246250066?-1958064569:-1974645177);ws(J[f+428>>2]+4|0,218765834);if(!(kc[J[f+176>>2]](f,J[f+428>>2],8,e+12|0)|0)){b=J[f+428>>2];if(b){kc[J[f+156>>2]](b,J[f+424>>2]+12|0);J[f+428>>2]=0}Jc(f,901,0,0);break Xc}if(J[e+12>>2]==8)break Yc;b=J[f+428>>2];if(b){kc[J[f+156>>2]](b,J[f+424>>2]+12|0);J[f+428>>2]=0}Jc(f,12,0,0);break Xc}while(1){if(kc[J[b+16>>2]](f,b)|0)break Xc;b=J[b+24>>2];if(b)continue; +break}if(!K[f+416|0]){b=J[f+428>>2];if(b){kc[J[f+156>>2]](b,J[f+424>>2]+12|0);J[f+428>>2]=0}H[f+417|0]=0;b=J[f+168>>2];if(!b)break Xc;if(kc[b|0](f)|0)break Xc;Jc(f,901,0,0);break Xc}b=J[f+276>>2];if(b)while(1){d=J[b+24>>2];kc[J[b+8>>2]](f,b)|0;b=d;if(d)continue;break}J[f+276>>2]=0;J[f+280>>2]=0}fc=e+16|0;break Wc}Jc(f,3,0,0)}b=1}if(b)break c;break b;case 6:e=vc(976);J[699344]=0;c=xf(e,7);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c>>2]=45936;ck(c,a);d=fc-800|0;fc=d;f=0;_c:{if(sl(c,b))break _c; +if(L[c+26>>1]<=7){b=K[45512]|K[45513]<<8;H[c+96|0]=b;H[c+97|0]=b>>>8;b=K[45508]|K[45509]<<8|(K[45510]<<16|K[45511]<<24);f=K[45504]|K[45505]<<8|(K[45506]<<16|K[45507]<<24);H[c+88|0]=f;H[c+89|0]=f>>>8;H[c+90|0]=f>>>16;H[c+91|0]=f>>>24;H[c+92|0]=b;H[c+93|0]=b>>>8;H[c+94|0]=b>>>16;H[c+95|0]=b>>>24;b=K[45500]|K[45501]<<8|(K[45502]<<16|K[45503]<<24);f=K[45496]|K[45497]<<8|(K[45498]<<16|K[45499]<<24);H[c+80|0]=f;H[c+81|0]=f>>>8;H[c+82|0]=f>>>16;H[c+83|0]=f>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>> +16;H[c+87|0]=b>>>24;b=K[45492]|K[45493]<<8|(K[45494]<<16|K[45495]<<24);f=K[45488]|K[45489]<<8|(K[45490]<<16|K[45491]<<24);H[c+72|0]=f;H[c+73|0]=f>>>8;H[c+74|0]=f>>>16;H[c+75|0]=f>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24;f=0;break _c}H[d+782|0]=0;f=J[c+4>>2];H[d+783|0]=((f?J[c+44>>2]?f+40|0:0:0)|0)!=0;f=L[c+26>>1];e=(f|0)==8;H[d+789|0]=e?24:0;H[d+784|0]=e?1:2;i=J[c+20>>2];k=J[c+16>>2];H[d+799|0]=0;H[d+798|0]=f;if(!(!J[c+964>>2]|(f|0)!=24))H[d+798|0]=32;H[d+785|0]=0;H[d+786| +0]=0;f=e<<8;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+787|0]=f;H[d+788|0]=f>>>8;H[d+790|0]=0;H[d+791|0]=0;H[d+792|0]=0;H[d+793|0]=0;f=k<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+794|0]=f;H[d+795|0]=f>>>8;f=i<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+796|0]=f;H[d+797|0]=f>>>8;kc[J[J[b>>2]+16>>2]](b,d+782|0,18,1)|0;f=(K[d+785|0]|K[d+786|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+785|0]=f;H[d+786|0]=f>>>8;f=(K[d+787|0]|K[d+788|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+787|0]= f;H[d+788|0]=f>>>8;f=(K[d+790|0]|K[d+791|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+790|0]=f;H[d+791|0]=f>>>8;f=(K[d+792|0]|K[d+793|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+792|0]=f;H[d+793|0]=f>>>8;f=(K[d+794|0]|K[d+795|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+794|0]=f;H[d+795|0]=f>>>8;f=(K[d+796|0]|K[d+797|0]<<8)<<16>>16;f=K[c+494|0]?f:f<<8|(f&65280)>>>8;H[d+796|0]=f;H[d+797|0]=f>>>8;if(L[c+26>>1]==8){f=J[c+4>>2];f=f?J[c+44>>2]?f+40|0:0:0;while(1){e=d+P(j,3)|0; -i=f+(j<<2)|0;H[e|0]=K[i|0];H[e+1|0]=K[i+1|0];H[e+2|0]=K[i+2|0];i=j|1;e=d+P(i,3)|0;i=f+(i<<2)|0;H[e|0]=K[i|0];H[e+1|0]=K[i+1|0];H[e+2|0]=K[i+2|0];j=j+2|0;if((j|0)!=256)continue;break}gc[J[J[b>>2]+16>>2]](b,d,768,1)|0}j=0;f=df(c,0);$c:{if(!(L[c+26>>1]!=8?J[c+964>>2]:0)){if(!(K[d+796|0]|K[d+797|0]<<8))break $c;while(1){if(J[c+20>>2]>=(j|0))f=df(c,0)+P(J[c+52>>2],j)|0;gc[J[J[b>>2]+16>>2]](b,f,P(K[d+794|0]|K[d+795|0]<<8,L[c+26>>1]>>>3|0),1)|0;j=j+1|0;if(j>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break}break $c}k= -zc((K[d+794|0]|K[d+795|0]<<8)<<2);if(K[d+796|0]|K[d+797|0]<<8){i=0;while(1){f=0;j=0;e=0;if(K[d+794|0]|K[d+795|0]<<8)while(1){tm(d,c,e,i,1);f=K[d+2|0];o=K[d+1|0];H[j+k|0]=K[d|0];H[k+(j|1)|0]=o;H[k+(j|2)|0]=f;w=k+(j|3)|0,x=Cl(c,e,i),H[w|0]=x;j=j+4|0;e=e+1|0;f=K[d+794|0]|K[d+795|0]<<8;if(e>>>0>>0)continue;break}gc[J[J[b>>2]+16>>2]](b,k,f<<2,1)|0;i=i+1|0;if(i>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break}}qc(k)}f=1}b=f;bc=d+800|0;if(b)break c;break b;case 7:e=rc(976);J[695492]=0;c=qf(e,8);d=J[695492]; -J[695492]=0;if((d|0)==1)break d;J[c>>2]=45964;Hj(c,a);j=bc-160|0;bc=j;if(!Vk(c,b)){g=b;wc(j+35|0,0,125);H[j+38|0]=0;H[j+39|0]=0;H[j+34|0]=1;H[j+32|0]=10;H[j+33|0]=5;d=J[c+16>>2];b=d-1|0;H[j+40|0]=b;H[j+41|0]=b>>>8;b=L[c+20>>1]-1|0;H[j+42|0]=b;H[j+43|0]=b>>>8;b=J[c+364>>2];H[j+44|0]=b;H[j+45|0]=b>>>8;b=J[c+368>>2];H[j+46|0]=b;H[j+47|0]=b>>>8;b=J[c+44>>2];f=!b;H[j+100|0]=f;H[j+101|0]=f>>>8;f=L[c+26>>1]-8|0;ad:{if(!((f|0)!=16?f:0)){H[j+35|0]=8;H[j+97|0]=b?1:3;if(!(J[c+44>>2]|!J[c+964>>2]))H[j+97|0]= -4;i=J[c+16>>2];H[j+98|0]=i;H[j+99|0]=i>>>8;b=0;break ad}i=d+7>>>3|0;H[j+98|0]=i;H[j+99|0]=i>>>8;H[j+35|0]=1;b=(b|0)==16;H[j+97|0]=b?4:1;if(!b){H[j+53|0]=255;H[j+49|0]=0;H[j+51|0]=255;H[j+52|0]=255;b=0;break ad}b=j+4|0;ug(b,c,0);H[j+50|0]=K[j+4|0];H[j+49|0]=K[j+5|0];H[j+48|0]=K[j+6|0];ug(b,c,1);H[j+53|0]=K[j+4|0];H[j+52|0]=K[j+5|0];H[j+51|0]=K[j+6|0];ug(b,c,2);H[j+56|0]=K[j+4|0];H[j+55|0]=K[j+5|0];H[j+54|0]=K[j+6|0];ug(b,c,3);H[j+59|0]=K[j+4|0];H[j+58|0]=K[j+5|0];H[j+57|0]=K[j+6|0];ug(b,c,4);H[j+62| -0]=K[j+4|0];H[j+61|0]=K[j+5|0];H[j+60|0]=K[j+6|0];ug(b,c,5);H[j+65|0]=K[j+4|0];H[j- -64|0]=K[j+5|0];H[j+63|0]=K[j+6|0];ug(b,c,6);H[j+68|0]=K[j+4|0];H[j+67|0]=K[j+5|0];H[j+66|0]=K[j+6|0];ug(b,c,7);H[j+71|0]=K[j+4|0];H[j+70|0]=K[j+5|0];H[j+69|0]=K[j+6|0];ug(b,c,8);H[j+74|0]=K[j+4|0];H[j+73|0]=K[j+5|0];H[j+72|0]=K[j+6|0];ug(b,c,9);H[j+77|0]=K[j+4|0];H[j+76|0]=K[j+5|0];H[j+75|0]=K[j+6|0];ug(b,c,10);H[j+80|0]=K[j+4|0];H[j+79|0]=K[j+5|0];H[j+78|0]=K[j+6|0];ug(b,c,11);H[j+83|0]=K[j+4|0];H[j+82|0]=K[j+5| -0];H[j+81|0]=K[j+6|0];ug(b,c,12);H[j+86|0]=K[j+4|0];H[j+85|0]=K[j+5|0];H[j+84|0]=K[j+6|0];ug(b,c,13);H[j+89|0]=K[j+4|0];H[j+88|0]=K[j+5|0];H[j+87|0]=K[j+6|0];ug(b,c,14);H[j+92|0]=K[j+4|0];H[j+91|0]=K[j+5|0];H[j+90|0]=K[j+6|0];ug(b,c,15);H[j+95|0]=K[j+4|0];H[j+94|0]=K[j+5|0];H[j+93|0]=K[j+6|0];i=K[j+98|0]|K[j+99|0]<<8;b=K[j+36|0]|K[j+37|0]<<8}d=i+1&65534;H[j+98|0]=d;H[j+99|0]=d>>>8;b=b<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+36|0]=b;H[j+37|0]=b>>>8;b=(K[j+38|0]|K[j+39|0]<<8)<<16>>16;b=K[c+494| +i=f+(j<<2)|0;H[e|0]=K[i|0];H[e+1|0]=K[i+1|0];H[e+2|0]=K[i+2|0];i=j|1;e=d+P(i,3)|0;i=f+(i<<2)|0;H[e|0]=K[i|0];H[e+1|0]=K[i+1|0];H[e+2|0]=K[i+2|0];j=j+2|0;if((j|0)!=256)continue;break}kc[J[J[b>>2]+16>>2]](b,d,768,1)|0}j=0;f=mf(c,0);$c:{if(!(L[c+26>>1]!=8?J[c+964>>2]:0)){if(!(K[d+796|0]|K[d+797|0]<<8))break $c;while(1){if(J[c+20>>2]>=(j|0))f=mf(c,0)+P(J[c+52>>2],j)|0;kc[J[J[b>>2]+16>>2]](b,f,P(K[d+794|0]|K[d+795|0]<<8,L[c+26>>1]>>>3|0),1)|0;j=j+1|0;if(j>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break}break $c}k= +Dc((K[d+794|0]|K[d+795|0]<<8)<<2);if(K[d+796|0]|K[d+797|0]<<8){i=0;while(1){f=0;j=0;e=0;if(K[d+794|0]|K[d+795|0]<<8)while(1){kn(d,c,e,i,1);f=K[d+2|0];o=K[d+1|0];H[j+k|0]=K[d|0];H[k+(j|1)|0]=o;H[k+(j|2)|0]=f;w=k+(j|3)|0,x=mm(c,e,i),H[w|0]=x;j=j+4|0;e=e+1|0;f=K[d+794|0]|K[d+795|0]<<8;if(e>>>0>>0)continue;break}kc[J[J[b>>2]+16>>2]](b,k,f<<2,1)|0;i=i+1|0;if(i>>>0<(K[d+796|0]|K[d+797|0]<<8)>>>0)continue;break}}uc(k)}f=1}b=f;fc=d+800|0;if(b)break c;break b;case 7:e=vc(976);J[699344]=0;c=xf(e,8);d=J[699344]; +J[699344]=0;if((d|0)==1)break d;J[c>>2]=45980;ck(c,a);j=fc-160|0;fc=j;if(!sl(c,b)){g=b;Ac(j+35|0,0,125);H[j+38|0]=0;H[j+39|0]=0;H[j+34|0]=1;H[j+32|0]=10;H[j+33|0]=5;d=J[c+16>>2];b=d-1|0;H[j+40|0]=b;H[j+41|0]=b>>>8;b=L[c+20>>1]-1|0;H[j+42|0]=b;H[j+43|0]=b>>>8;b=J[c+364>>2];H[j+44|0]=b;H[j+45|0]=b>>>8;b=J[c+368>>2];H[j+46|0]=b;H[j+47|0]=b>>>8;b=J[c+44>>2];f=!b;H[j+100|0]=f;H[j+101|0]=f>>>8;f=L[c+26>>1]-8|0;ad:{if(!((f|0)!=16?f:0)){H[j+35|0]=8;H[j+97|0]=b?1:3;if(!(J[c+44>>2]|!J[c+964>>2]))H[j+97|0]= +4;i=J[c+16>>2];H[j+98|0]=i;H[j+99|0]=i>>>8;b=0;break ad}i=d+7>>>3|0;H[j+98|0]=i;H[j+99|0]=i>>>8;H[j+35|0]=1;b=(b|0)==16;H[j+97|0]=b?4:1;if(!b){H[j+53|0]=255;H[j+49|0]=0;H[j+51|0]=255;H[j+52|0]=255;b=0;break ad}b=j+4|0;Hg(b,c,0);H[j+50|0]=K[j+4|0];H[j+49|0]=K[j+5|0];H[j+48|0]=K[j+6|0];Hg(b,c,1);H[j+53|0]=K[j+4|0];H[j+52|0]=K[j+5|0];H[j+51|0]=K[j+6|0];Hg(b,c,2);H[j+56|0]=K[j+4|0];H[j+55|0]=K[j+5|0];H[j+54|0]=K[j+6|0];Hg(b,c,3);H[j+59|0]=K[j+4|0];H[j+58|0]=K[j+5|0];H[j+57|0]=K[j+6|0];Hg(b,c,4);H[j+62| +0]=K[j+4|0];H[j+61|0]=K[j+5|0];H[j+60|0]=K[j+6|0];Hg(b,c,5);H[j+65|0]=K[j+4|0];H[j- -64|0]=K[j+5|0];H[j+63|0]=K[j+6|0];Hg(b,c,6);H[j+68|0]=K[j+4|0];H[j+67|0]=K[j+5|0];H[j+66|0]=K[j+6|0];Hg(b,c,7);H[j+71|0]=K[j+4|0];H[j+70|0]=K[j+5|0];H[j+69|0]=K[j+6|0];Hg(b,c,8);H[j+74|0]=K[j+4|0];H[j+73|0]=K[j+5|0];H[j+72|0]=K[j+6|0];Hg(b,c,9);H[j+77|0]=K[j+4|0];H[j+76|0]=K[j+5|0];H[j+75|0]=K[j+6|0];Hg(b,c,10);H[j+80|0]=K[j+4|0];H[j+79|0]=K[j+5|0];H[j+78|0]=K[j+6|0];Hg(b,c,11);H[j+83|0]=K[j+4|0];H[j+82|0]=K[j+5| +0];H[j+81|0]=K[j+6|0];Hg(b,c,12);H[j+86|0]=K[j+4|0];H[j+85|0]=K[j+5|0];H[j+84|0]=K[j+6|0];Hg(b,c,13);H[j+89|0]=K[j+4|0];H[j+88|0]=K[j+5|0];H[j+87|0]=K[j+6|0];Hg(b,c,14);H[j+92|0]=K[j+4|0];H[j+91|0]=K[j+5|0];H[j+90|0]=K[j+6|0];Hg(b,c,15);H[j+95|0]=K[j+4|0];H[j+94|0]=K[j+5|0];H[j+93|0]=K[j+6|0];i=K[j+98|0]|K[j+99|0]<<8;b=K[j+36|0]|K[j+37|0]<<8}d=i+1&65534;H[j+98|0]=d;H[j+99|0]=d>>>8;b=b<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+36|0]=b;H[j+37|0]=b>>>8;b=(K[j+38|0]|K[j+39|0]<<8)<<16>>16;b=K[c+494| 0]?b:b<<8|(b&65280)>>>8;H[j+38|0]=b;H[j+39|0]=b>>>8;b=(K[j+40|0]|K[j+41|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+40|0]=b;H[j+41|0]=b>>>8;b=(K[j+42|0]|K[j+43|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+42|0]=b;H[j+43|0]=b>>>8;b=(K[j+44|0]|K[j+45|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+44|0]=b;H[j+45|0]=b>>>8;b=(K[j+46|0]|K[j+47|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+46|0]=b;H[j+47|0]=b>>>8;b=(K[j+98|0]|K[j+99|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>> -8;H[j+98|0]=b;H[j+99|0]=b>>>8;b=(K[j+100|0]|K[j+101|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+100|0]=b;H[j+101|0]=b>>>8;bd:{t=gc[J[J[g>>2]+16>>2]](g,j+32|0,128,1)|0;if(!t){qd(c+72|0,46440,255);break bd}b=(K[j+36|0]|K[j+37|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+36|0]=b;H[j+37|0]=b>>>8;b=(K[j+38|0]|K[j+39|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+38|0]=b;H[j+39|0]=b>>>8;b=(K[j+40|0]|K[j+41|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+40|0]=b;H[j+41|0]=b>>> -8;b=(K[j+42|0]|K[j+43|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+42|0]=b;H[j+43|0]=b>>>8;b=(K[j+44|0]|K[j+45|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+44|0]=b;H[j+45|0]=b>>>8;b=(K[j+46|0]|K[j+47|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+46|0]=b;H[j+47|0]=b>>>8;b=(K[j+98|0]|K[j+99|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+98|0]=b;H[j+99|0]=b>>>8;b=(K[j+100|0]|K[j+101|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+100|0]=b;H[j+101|0]=b>>>8;p=Gx(j+4|0, -0,0);J[695492]=0;$(52,p|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)cd:{dd:{if(!J[c+44>>2]){e=J[c+20>>2];if((e|0)>0){i=K[j+97|0];while(1){m=e;e=e-1|0;k=0;ed:{if(i<<24>>24<=0)break ed;fd:{while(1){gd:{o=J[c+16>>2];hd:{if((o|0)<=0)break hd;i=0;b=0;q=0;f=0;id:{jd:{kd:{ld:{md:{d=k;switch(d|0){case 3:break jd;case 2:break kd;case 1:break ld;case 0:break md;default:break hd}}while(1){J[695492]=0;tm(j,c,d,e,1);f=J[695492];J[695492]=0;if((f|0)==1)break gd;f=b&255;b=K[j+2|0];nd:{od:{pd:{if((f|0)!=(b|0)){qd:switch(i& -255){case 1:if(f>>>0<192)break od;break;case 0:break nd;default:break qd}q=i|-64;break pd}q=255;if((i&255)!=63)break nd}i=J[J[p>>2]+44>>2];J[695492]=0;aa(i|0,p|0,q&255)|0;i=J[695492];J[695492]=0;if((i|0)==1)break gd}o=J[J[p>>2]+44>>2];i=0;J[695492]=0;aa(o|0,p|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break gd}i=i+1|0;d=d+1|0;o=J[c+16>>2];if((d|0)<(o|0))continue;break}break id}while(1){rd:{J[695492]=0;tm(j,c,q,e,1);d=J[695492];J[695492]=0;if((d|0)==1)break rd;f=b&255;b=K[j+1|0];sd:{td:{ud:{if((f| -0)!=(b|0)){vd:switch(i&255){case 1:if(f>>>0<192)break td;break;case 0:break sd;default:break vd}d=i|-64;break ud}d=255;if((i&255)!=63)break sd}i=J[J[p>>2]+44>>2];J[695492]=0;aa(i|0,p|0,d&255)|0;d=J[695492];J[695492]=0;if((d|0)==1)break rd}d=J[J[p>>2]+44>>2];i=0;J[695492]=0;aa(d|0,p|0,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break rd}i=i+1|0;q=q+1|0;o=J[c+16>>2];if((q|0)<(o|0))continue;break id}break}break cd}while(1){wd:{J[695492]=0;tm(j,c,f,e,1);d=J[695492];J[695492]=0;if((d|0)==1)break wd;o=b& -255;b=K[j|0];xd:{yd:{zd:{if((o|0)!=(b|0)){Ad:switch(i&255){case 1:if(o>>>0<192)break yd;break;case 0:break xd;default:break Ad}d=i|-64;break zd}d=255;if((i&255)!=63)break xd}i=J[J[p>>2]+44>>2];J[695492]=0;aa(i|0,p|0,d&255)|0;d=J[695492];J[695492]=0;if((d|0)==1)break wd}d=J[J[p>>2]+44>>2];i=0;J[695492]=0;aa(d|0,p|0,o|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break wd}i=i+1|0;f=f+1|0;o=J[c+16>>2];if((f|0)<(o|0))continue;break id}break}break cd}while(1){d=b;J[695492]=0;b=K[(J[c+964>>2]+P(J[c+16>>2],e)| -0)+f|0];o=J[695492];J[695492]=0;if((o|0)==1)break cd;o=d&255;Bd:{Cd:{Dd:{if((o|0)!=(b|0)){Ed:switch(i&255){case 1:if(o>>>0<192)break Cd;break;case 0:break Bd;default:break Ed}d=i|-64;break Dd}d=255;if((i&255)!=63)break Bd}i=J[J[p>>2]+44>>2];J[695492]=0;aa(i|0,p|0,d&255)|0;d=J[695492];J[695492]=0;if((d|0)==1)break cd}d=J[J[p>>2]+44>>2];i=0;J[695492]=0;aa(d|0,p|0,o|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break cd}i=i+1|0;f=f+1|0;o=J[c+16>>2];if((f|0)<(o|0))continue;break}}Fd:{Gd:switch(i&255){case 1:if(b>>> -0<192)break Fd;break;case 0:break hd;default:break Gd}d=J[J[p>>2]+44>>2];J[695492]=0;aa(d|0,p|0,(i|192)&255)|0;d=J[695492];J[695492]=0;if((d|0)==1)break fd}d=J[J[p>>2]+44>>2];J[695492]=0;aa(d|0,p|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break fd}if(o&1){b=J[J[p>>2]+44>>2];J[695492]=0;aa(b|0,p|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break fd}i=H[j+97|0];k=k+1|0;if((i|0)>(k|0))continue;break ed}break}break cd}break cd}if((m|0)>=2)continue;break}}J[695492]=0;b=J[p+4>>2];d=J[695492];J[695492]= -0;if((d|0)==1)break cd;J[695492]=0;d=J[p+16>>2];f=J[p+4>>2];e=J[695492];J[695492]=0;if((e|0)==1)break cd;e=J[J[g>>2]+16>>2];J[695492]=0;ha(e|0,g|0,b|0,(f?d:-1)|0,1)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break dd;break cd}if(L[c+26>>1]==8){f=J[c+20>>2];if((f|0)>0)while(1){k=f-1|0;o=0;i=0;b=0;d=J[c+16>>2];Hd:{if((d|0)<=0)break Hd;while(1){d=b;J[695492]=0;b=lj(c,o,k);e=J[695492];J[695492]=0;if((e|0)==1)break cd;d=d&255;Id:{Jd:{Kd:{if((d|0)!=(b|0)){Ld:{Md:{e=i;switch(e&255){case 0:break Id;case 1:break Md; -default:break Ld}}if(d>>>0<192)break Jd}q=e|-64;break Kd}q=255;e=i;if((e&255)!=63)break Id}e=J[J[p>>2]+44>>2];J[695492]=0;aa(e|0,p|0,q&255)|0;e=J[695492];J[695492]=0;if((e|0)==1)break cd}i=J[J[p>>2]+44>>2];e=0;J[695492]=0;aa(i|0,p|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break cd}i=e+1|0;d=J[c+16>>2];o=o+1|0;if((d|0)>(o|0))continue;break}e=e&255;if((e|0)==255)break Hd;if(!(!e&b>>>0<192)){e=J[J[p>>2]+44>>2];J[695492]=0;aa(e|0,p|0,(i|192)&255)|0;e=J[695492];J[695492]=0;if((e|0)==1)break cd}e=J[J[p>> -2]+44>>2];J[695492]=0;aa(e|0,p|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd}if(d&1){b=J[J[p>>2]+44>>2];J[695492]=0;aa(b|0,p|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd}b=(f|0)>1;f=k;if(b)continue;break}J[695492]=0;b=J[p+4>>2];d=J[695492];J[695492]=0;if((d|0)==1)break cd;J[695492]=0;d=J[p+16>>2];f=J[p+4>>2];e=J[695492];J[695492]=0;if((e|0)==1)break cd;e=J[J[g>>2]+16>>2];J[695492]=0;ha(e|0,g|0,b|0,(f?d:-1)|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd;if(L[c+26>>1]!=8)break dd; -b=J[J[g>>2]+44>>2];J[695492]=0;aa(b|0,g|0,12)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd;b=zc(768);i=0;while(1){J[695492]=0;ug(j,c,i&255);d=J[695492];J[695492]=0;if((d|0)==1)break cd;f=K[j+1|0];e=K[j|0];d=b+P(i,3)|0;H[d|0]=K[j+2|0];H[d+2|0]=e;H[d+1|0]=f;i=i+1|0;if((i|0)!=256)continue;break}d=J[J[g>>2]+16>>2];J[695492]=0;ha(d|0,g|0,b|0,768,1)|0;d=J[695492];J[695492]=0;if((d|0)!=1){qc(b);un(p);break bd}break cd}J[695492]=0;b=J[c+4>>2];b=b?J[c+44>>2]?b+40|0:0:0;d=J[695492];J[695492]=0;Nd:{Od:{if((d| -0)!=1){J[695492]=0;b=XN(b,b+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break cd;d=L[c+26>>1];r=zc(K[j+98|0]|K[j+99|0]<<8);q=zc(J[c+16>>2]);m=J[c+20>>2];if((m|0)<=0)break Nd;h=r+1|0;l=r-1|0;u=!((d|0)==1&(b|0)>0);break Od}break cd}while(1){n=m;m=m-1|0;i=0;Pd:{if(J[c+16>>2]<=0)break Pd;while(1){J[695492]=0;b=lj(c,i,m);d=J[695492];J[695492]=0;if((d|0)==1)break cd;H[i+q|0]=b;i=i+1|0;b=J[c+16>>2];if((i|0)<(b|0))continue;break}if(u|(b|0)<=0)break Pd;o=0;i=0;if(b>>>0>=4){f=b&-4;d=0;while(1){e=i+q|0;H[e|0]= +8;H[j+98|0]=b;H[j+99|0]=b>>>8;b=(K[j+100|0]|K[j+101|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+100|0]=b;H[j+101|0]=b>>>8;bd:{t=kc[J[J[g>>2]+16>>2]](g,j+32|0,128,1)|0;if(!t){Ad(c+72|0,46456,255);break bd}b=(K[j+36|0]|K[j+37|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+36|0]=b;H[j+37|0]=b>>>8;b=(K[j+38|0]|K[j+39|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+38|0]=b;H[j+39|0]=b>>>8;b=(K[j+40|0]|K[j+41|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+40|0]=b;H[j+41|0]=b>>> +8;b=(K[j+42|0]|K[j+43|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+42|0]=b;H[j+43|0]=b>>>8;b=(K[j+44|0]|K[j+45|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+44|0]=b;H[j+45|0]=b>>>8;b=(K[j+46|0]|K[j+47|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+46|0]=b;H[j+47|0]=b>>>8;b=(K[j+98|0]|K[j+99|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+98|0]=b;H[j+99|0]=b>>>8;b=(K[j+100|0]|K[j+101|0]<<8)<<16>>16;b=K[c+494|0]?b:b<<8|(b&65280)>>>8;H[j+100|0]=b;H[j+101|0]=b>>>8;p=xy(j+4|0, +0,0);J[699344]=0;_(52,p|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)cd:{dd:{if(!J[c+44>>2]){e=J[c+20>>2];if((e|0)>0){i=K[j+97|0];while(1){m=e;e=e-1|0;k=0;ed:{if(i<<24>>24<=0)break ed;fd:{while(1){gd:{o=J[c+16>>2];hd:{if((o|0)<=0)break hd;i=0;b=0;q=0;f=0;id:{jd:{kd:{ld:{md:{d=k;switch(d|0){case 3:break jd;case 2:break kd;case 1:break ld;case 0:break md;default:break hd}}while(1){J[699344]=0;kn(j,c,d,e,1);f=J[699344];J[699344]=0;if((f|0)==1)break gd;f=b&255;b=K[j+2|0];nd:{od:{pd:{if((f|0)!=(b|0)){qd:switch(i& +255){case 1:if(f>>>0<192)break od;break;case 0:break nd;default:break qd}q=i|-64;break pd}q=255;if((i&255)!=63)break nd}i=J[J[p>>2]+44>>2];J[699344]=0;aa(i|0,p|0,q&255)|0;i=J[699344];J[699344]=0;if((i|0)==1)break gd}o=J[J[p>>2]+44>>2];i=0;J[699344]=0;aa(o|0,p|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break gd}i=i+1|0;d=d+1|0;o=J[c+16>>2];if((d|0)<(o|0))continue;break}break id}while(1){rd:{J[699344]=0;kn(j,c,q,e,1);d=J[699344];J[699344]=0;if((d|0)==1)break rd;f=b&255;b=K[j+1|0];sd:{td:{ud:{if((f| +0)!=(b|0)){vd:switch(i&255){case 1:if(f>>>0<192)break td;break;case 0:break sd;default:break vd}d=i|-64;break ud}d=255;if((i&255)!=63)break sd}i=J[J[p>>2]+44>>2];J[699344]=0;aa(i|0,p|0,d&255)|0;d=J[699344];J[699344]=0;if((d|0)==1)break rd}d=J[J[p>>2]+44>>2];i=0;J[699344]=0;aa(d|0,p|0,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break rd}i=i+1|0;q=q+1|0;o=J[c+16>>2];if((q|0)<(o|0))continue;break id}break}break cd}while(1){wd:{J[699344]=0;kn(j,c,f,e,1);d=J[699344];J[699344]=0;if((d|0)==1)break wd;o=b& +255;b=K[j|0];xd:{yd:{zd:{if((o|0)!=(b|0)){Ad:switch(i&255){case 1:if(o>>>0<192)break yd;break;case 0:break xd;default:break Ad}d=i|-64;break zd}d=255;if((i&255)!=63)break xd}i=J[J[p>>2]+44>>2];J[699344]=0;aa(i|0,p|0,d&255)|0;d=J[699344];J[699344]=0;if((d|0)==1)break wd}d=J[J[p>>2]+44>>2];i=0;J[699344]=0;aa(d|0,p|0,o|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break wd}i=i+1|0;f=f+1|0;o=J[c+16>>2];if((f|0)<(o|0))continue;break id}break}break cd}while(1){d=b;J[699344]=0;b=K[(J[c+964>>2]+P(J[c+16>>2],e)| +0)+f|0];o=J[699344];J[699344]=0;if((o|0)==1)break cd;o=d&255;Bd:{Cd:{Dd:{if((o|0)!=(b|0)){Ed:switch(i&255){case 1:if(o>>>0<192)break Cd;break;case 0:break Bd;default:break Ed}d=i|-64;break Dd}d=255;if((i&255)!=63)break Bd}i=J[J[p>>2]+44>>2];J[699344]=0;aa(i|0,p|0,d&255)|0;d=J[699344];J[699344]=0;if((d|0)==1)break cd}d=J[J[p>>2]+44>>2];i=0;J[699344]=0;aa(d|0,p|0,o|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break cd}i=i+1|0;f=f+1|0;o=J[c+16>>2];if((f|0)<(o|0))continue;break}}Fd:{Gd:switch(i&255){case 1:if(b>>> +0<192)break Fd;break;case 0:break hd;default:break Gd}d=J[J[p>>2]+44>>2];J[699344]=0;aa(d|0,p|0,(i|192)&255)|0;d=J[699344];J[699344]=0;if((d|0)==1)break fd}d=J[J[p>>2]+44>>2];J[699344]=0;aa(d|0,p|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break fd}if(o&1){b=J[J[p>>2]+44>>2];J[699344]=0;aa(b|0,p|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break fd}i=H[j+97|0];k=k+1|0;if((i|0)>(k|0))continue;break ed}break}break cd}break cd}if((m|0)>=2)continue;break}}J[699344]=0;b=J[p+4>>2];d=J[699344];J[699344]= +0;if((d|0)==1)break cd;J[699344]=0;d=J[p+16>>2];f=J[p+4>>2];e=J[699344];J[699344]=0;if((e|0)==1)break cd;e=J[J[g>>2]+16>>2];J[699344]=0;ha(e|0,g|0,b|0,(f?d:-1)|0,1)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break dd;break cd}if(L[c+26>>1]==8){f=J[c+20>>2];if((f|0)>0)while(1){k=f-1|0;o=0;i=0;b=0;d=J[c+16>>2];Hd:{if((d|0)<=0)break Hd;while(1){d=b;J[699344]=0;b=Ij(c,o,k);e=J[699344];J[699344]=0;if((e|0)==1)break cd;d=d&255;Id:{Jd:{Kd:{if((d|0)!=(b|0)){Ld:{Md:{e=i;switch(e&255){case 0:break Id;case 1:break Md; +default:break Ld}}if(d>>>0<192)break Jd}q=e|-64;break Kd}q=255;e=i;if((e&255)!=63)break Id}e=J[J[p>>2]+44>>2];J[699344]=0;aa(e|0,p|0,q&255)|0;e=J[699344];J[699344]=0;if((e|0)==1)break cd}i=J[J[p>>2]+44>>2];e=0;J[699344]=0;aa(i|0,p|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break cd}i=e+1|0;d=J[c+16>>2];o=o+1|0;if((d|0)>(o|0))continue;break}e=e&255;if((e|0)==255)break Hd;if(!(!e&b>>>0<192)){e=J[J[p>>2]+44>>2];J[699344]=0;aa(e|0,p|0,(i|192)&255)|0;e=J[699344];J[699344]=0;if((e|0)==1)break cd}e=J[J[p>> +2]+44>>2];J[699344]=0;aa(e|0,p|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd}if(d&1){b=J[J[p>>2]+44>>2];J[699344]=0;aa(b|0,p|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd}b=(f|0)>1;f=k;if(b)continue;break}J[699344]=0;b=J[p+4>>2];d=J[699344];J[699344]=0;if((d|0)==1)break cd;J[699344]=0;d=J[p+16>>2];f=J[p+4>>2];e=J[699344];J[699344]=0;if((e|0)==1)break cd;e=J[J[g>>2]+16>>2];J[699344]=0;ha(e|0,g|0,b|0,(f?d:-1)|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd;if(L[c+26>>1]!=8)break dd; +b=J[J[g>>2]+44>>2];J[699344]=0;aa(b|0,g|0,12)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd;b=Dc(768);i=0;while(1){J[699344]=0;Hg(j,c,i&255);d=J[699344];J[699344]=0;if((d|0)==1)break cd;f=K[j+1|0];e=K[j|0];d=b+P(i,3)|0;H[d|0]=K[j+2|0];H[d+2|0]=e;H[d+1|0]=f;i=i+1|0;if((i|0)!=256)continue;break}d=J[J[g>>2]+16>>2];J[699344]=0;ha(d|0,g|0,b|0,768,1)|0;d=J[699344];J[699344]=0;if((d|0)!=1){uc(b);lo(p);break bd}break cd}J[699344]=0;b=J[c+4>>2];b=b?J[c+44>>2]?b+40|0:0:0;d=J[699344];J[699344]=0;Nd:{Od:{if((d| +0)!=1){J[699344]=0;b=pP(b,b+4|0);d=J[699344];J[699344]=0;if((d|0)==1)break cd;d=L[c+26>>1];r=Dc(K[j+98|0]|K[j+99|0]<<8);q=Dc(J[c+16>>2]);m=J[c+20>>2];if((m|0)<=0)break Nd;h=r+1|0;l=r-1|0;u=!((d|0)==1&(b|0)>0);break Od}break cd}while(1){n=m;m=m-1|0;i=0;Pd:{if(J[c+16>>2]<=0)break Pd;while(1){J[699344]=0;b=Ij(c,i,m);d=J[699344];J[699344]=0;if((d|0)==1)break cd;H[i+q|0]=b;i=i+1|0;b=J[c+16>>2];if((i|0)<(b|0))continue;break}if(u|(b|0)<=0)break Pd;o=0;i=0;if(b>>>0>=4){f=b&-4;d=0;while(1){e=i+q|0;H[e|0]= 1-K[e|0];e=q+(i|1)|0;H[e|0]=1-K[e|0];e=q+(i|2)|0;H[e|0]=1-K[e|0];e=q+(i|3)|0;H[e|0]=1-K[e|0];i=i+4|0;d=d+4|0;if((f|0)!=(d|0))continue;break}}b=b&3;if(!b)break Pd;while(1){d=i+q|0;H[d|0]=1-K[d|0];i=i+1|0;o=o+1|0;if((b|0)!=(o|0))continue;break}}k=0;if(H[j+97|0]>0)while(1){d=J[c+16>>2];if((d|0)>0){f=1<>>0<2){d= -f;break Sd}s=b+r|0;b=h;while(1){i=1;o=f&255;Td:{while(1){e=b+1|0;d=K[b|0];if((o|0)!=(d|0)|(i&255)>>>0>62)break Td;i=i+1|0;b=e;if(s>>>0>b>>>0)continue;break}d=f;break Rd}if(!((i&255)>>>0<2&o>>>0<=191)){b=J[J[p>>2]+44>>2];J[695492]=0;aa(b|0,p|0,(i|192)&255)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd}b=J[J[p>>2]+44>>2];J[695492]=0;aa(b|0,p|0,o|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd;f=d;b=e;if(s>>>0>b>>>0)continue;break}}i=1;if((d&255)>>>0<192)break Qd}b=J[J[p>>2]+44>>2];J[695492]=0;aa(b| -0,p|0,(i|192)&255)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd}b=J[J[p>>2]+44>>2];J[695492]=0;aa(b|0,p|0,d&255)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd;k=k+1|0;if((k|0)=2)continue;break}}qc(r);qc(q);J[695492]=0;b=J[p+4>>2];d=J[695492];J[695492]=0;if((d|0)==1)break cd;J[695492]=0;d=J[p+16>>2];f=J[p+4>>2];e=J[695492];J[695492]=0;if((e|0)==1)break cd;e=J[J[g>>2]+16>>2];J[695492]=0;ha(e|0,g|0,b|0,(f?d:-1)|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break cd}un(p); -break bd}a=Z()|0;un(p);break a}i=(t|0)!=0}bc=j+160|0;if(i)break c;break b;case 8:e=rc(976);J[695492]=0;c=qf(e,9);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c>>2]=46008;Hj(c,a);d=b;if(!Vk(c,d))Ud:{if(L[c+26>>1]!=1){b=K[45061]|K[45062]<<8|(K[45063]<<16|K[45064]<<24);d=K[45057]|K[45058]<<8|(K[45059]<<16|K[45060]<<24);H[c+94|0]=d;H[c+95|0]=d>>>8;H[c+96|0]=d>>>16;H[c+97|0]=d>>>24;H[c+98|0]=b;H[c+99|0]=b>>>8;H[c+100|0]=b>>>16;H[c+101|0]=b>>>24;b=K[45055]|K[45056]<<8|(K[45057]<<16|K[45058]<<24);d=K[45051]| -K[45052]<<8|(K[45053]<<16|K[45054]<<24);H[c+88|0]=d;H[c+89|0]=d>>>8;H[c+90|0]=d>>>16;H[c+91|0]=d>>>24;H[c+92|0]=b;H[c+93|0]=b>>>8;H[c+94|0]=b>>>16;H[c+95|0]=b>>>24;b=K[45047]|K[45048]<<8|(K[45049]<<16|K[45050]<<24);d=K[45043]|K[45044]<<8|(K[45045]<<16|K[45046]<<24);H[c+80|0]=d;H[c+81|0]=d>>>8;H[c+82|0]=d>>>16;H[c+83|0]=d>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>>16;H[c+87|0]=b>>>24;b=K[45039]|K[45040]<<8|(K[45041]<<16|K[45042]<<24);d=K[45035]|K[45036]<<8|(K[45037]<<16|K[45038]<<24);H[c+72|0]= -d;H[c+73|0]=d>>>8;H[c+74|0]=d>>>16;H[c+75|0]=d>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24;break Ud}e=J[c+20>>2];k=J[c+16>>2];gc[J[J[d>>2]+44>>2]](d,0)|0;gc[J[J[d>>2]+44>>2]](d,0)|0;while(1){b=f;f=b+7|0;if(k>>>f|0)continue;break}Vd:{if(b)while(1){if(!(gc[J[J[d>>2]+44>>2]](d,(k>>>b|128)&255)|0))break Vd;f=(b|0)<8;b=b-7|0;if(!f)continue;break}gc[J[J[d>>2]+44>>2]](d,k&127)|0}f=0;while(1){b=f;f=b+7|0;if(e>>>f|0)continue;break}Wd:{if(b)while(1){if(!(gc[J[J[d>>2]+44>>2]](d,(e>>>b| -128)&255)|0))break Wd;f=(b|0)<8;b=b-7|0;if(!f)continue;break}gc[J[J[d>>2]+44>>2]](d,e&127)|0}f=0;df(c,0);j=J[c+20>>2];b=df(c,0);i=1;if(!e)break Ud;k=k+7>>>3|0;b=P(J[c+52>>2],J[c+20>>2]-1|0)+b|0;while(1){gc[J[J[d>>2]+16>>2]](d,b,k,1)|0;j=j-1|0;b=(j|0)>0?b-J[c+52>>2]|0:b;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(i)break c;break b;default:break e}if(c-11>>>0<=4){e=rc(976);J[695492]=0;f=qf(e,0);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[f>>2]=46052;Hj(f,a);d=0;e=bc-192|0;bc=e;Xd:{if(Vk(f,b))break Xd; -Yd:{if(!J[f+44>>2])break Yd;if(Do(f))break Yd;b=K[46846]|K[46847]<<8|(K[46848]<<16|K[46849]<<24);c=K[46842]|K[46843]<<8|(K[46844]<<16|K[46845]<<24);H[f+109|0]=c;H[f+110|0]=c>>>8;H[f+111|0]=c>>>16;H[f+112|0]=c>>>24;H[f+113|0]=b;H[f+114|0]=b>>>8;H[f+115|0]=b>>>16;H[f+116|0]=b>>>24;b=K[46841]|K[46842]<<8|(K[46843]<<16|K[46844]<<24);c=K[46837]|K[46838]<<8|(K[46839]<<16|K[46840]<<24);H[f+104|0]=c;H[f+105|0]=c>>>8;H[f+106|0]=c>>>16;H[f+107|0]=c>>>24;H[f+108|0]=b;H[f+109|0]=b>>>8;H[f+110|0]=b>>>16;H[f+111| -0]=b>>>24;b=K[46833]|K[46834]<<8|(K[46835]<<16|K[46836]<<24);c=K[46829]|K[46830]<<8|(K[46831]<<16|K[46832]<<24);H[f+96|0]=c;H[f+97|0]=c>>>8;H[f+98|0]=c>>>16;H[f+99|0]=c>>>24;H[f+100|0]=b;H[f+101|0]=b>>>8;H[f+102|0]=b>>>16;H[f+103|0]=b>>>24;b=K[46825]|K[46826]<<8|(K[46827]<<16|K[46828]<<24);c=K[46821]|K[46822]<<8|(K[46823]<<16|K[46824]<<24);H[f+88|0]=c;H[f+89|0]=c>>>8;H[f+90|0]=c>>>16;H[f+91|0]=c>>>24;H[f+92|0]=b;H[f+93|0]=b>>>8;H[f+94|0]=b>>>16;H[f+95|0]=b>>>24;b=K[46817]|K[46818]<<8|(K[46819]<<16| -K[46820]<<24);c=K[46813]|K[46814]<<8|(K[46815]<<16|K[46816]<<24);H[f+80|0]=c;H[f+81|0]=c>>>8;H[f+82|0]=c>>>16;H[f+83|0]=c>>>24;H[f+84|0]=b;H[f+85|0]=b>>>8;H[f+86|0]=b>>>16;H[f+87|0]=b>>>24;b=K[46809]|K[46810]<<8|(K[46811]<<16|K[46812]<<24);c=K[46805]|K[46806]<<8|(K[46807]<<16|K[46808]<<24);H[f+72|0]=c;H[f+73|0]=c>>>8;H[f+74|0]=c>>>16;H[f+75|0]=c>>>24;H[f+76|0]=b;H[f+77|0]=b>>>8;H[f+78|0]=b>>>16;H[f+79|0]=b>>>24;break Xd}Zd:{if(pO()){qd(f+72|0,43158,255);break Zd}i=oO(46996);if(!i){qd(f+72|0,47037, -255);break Zd}d=J[i+56>>2];if(d)qc(d);J[i+56>>2]=b;J[e+72>>2]=185;J[e+64>>2]=186;J[e+76>>2]=187;J[e+68>>2]=188;J[i+52>>2]=e- -64;b=J[f+16>>2];d=J[f+20>>2];h=J[f+44>>2];J[e+104>>2]=8;J[e+108>>2]=0;J[e+100>>2]=d;J[e+96>>2]=b;J[e+88>>2]=1;J[e+92>>2]=1;J[e+80>>2]=0;J[e+84>>2]=0;if(!h){J[e+168>>2]=8;J[e+172>>2]=0;J[e+164>>2]=d;J[e+160>>2]=b;J[e+152>>2]=1;J[e+156>>2]=1;J[e+136>>2]=8;J[e+140>>2]=0;J[e+132>>2]=d;J[e+128>>2]=b;J[e+120>>2]=1;J[e+124>>2]=1;J[e+144>>2]=0;J[e+148>>2]=0;J[e+112>>2]=0;J[e+116>> -2]=0}g=h?1:3;k=Rr(g,e+80|0);_d:{if(!k){qd(f+72|0,47132,255);d=0;break _d}b=J[k+24>>2];J[J[b>>2]+40>>2]=0;if(h)b=769;else{J[J[b+4>>2]+40>>2]=1;J[J[b+8>>2]+40>>2]=2;b=1025}J[k+28>>2]=b;wc(e+180|0,0,g<<2);$d:{while(1){b=ek(1,J[f+16>>2]);J[(e+180|0)+(o<<2)>>2]=b;if(!b)break $d;o=o+1|0;if((g|0)!=(o|0))continue;break}d=J[f+20>>2];if((d|0)>0){h=J[e+188>>2];l=J[e+184>>2];b=J[e+180>>2];while(1){o=0;if(J[f+16>>2]>0){while(1){ae:{if(!J[f+44>>2]){Ik(e+16|0,f,o,m,1);n=K[e+17|0];d=K[e+16|0];p=o<<2;j=J[b+28>>2]; -J[(J[b+20>>2]==1?p+J[j>>2]|0:J[j+p>>2])>>2]=K[e+18|0];j=J[l+28>>2];J[(J[l+20>>2]==1?p+J[j>>2]|0:J[j+(o<<2)>>2])>>2]=n;n=J[h+28>>2];if(J[h+20>>2]==1){J[p+J[n>>2]>>2]=d;break ae}J[J[n+(o<<2)>>2]>>2]=d;break ae}j=J[b+20>>2];d=lj(f,o,m);n=J[b+28>>2];if((j|0)==1){J[J[n>>2]+(o<<2)>>2]=d;break ae}J[J[n+(o<<2)>>2]>>2]=d}o=o+1|0;if((o|0)>2])continue;break}d=J[f+20>>2]}d=d+(m^-1)|0;o=0;be:{while(1){if(!gk(k,o,0,d,J[f+16>>2],1,J[(e+180|0)+(o<<2)>>2])){o=o+1|0;if((g|0)!=(o|0))continue;break be}break}qd(f+ -72|0,47262,255);d=0;break _d}d=J[f+20>>2];m=m+1|0;if((d|0)>(m|0))continue;break}}H[e+60|0]=0;ce:{de:switch(c-11|0){case 1:J[e+60>>2]=6516842;break ce;case 4:J[e+60>>2]=7561586;break ce;case 3:J[e+60>>2]=7171696;break ce;case 2:J[e+60>>2]=7890800;if(J[f+44>>2])break ce;qd(f+72|0,47382,255);d=0;break _d;case 0:break de;default:break ce}J[e+60>>2]=3305578}o=iO(e+60|0);O[e>>3]=Q(N[f+344>>2]/Q(100));d=bc-16|0;bc=d;J[d+12>>2]=e;b=bc-160|0;bc=b;m=b+8|0;tc(m,2613136,144);c=e+16|0;J[b+52>>2]=c;J[b+28>>2]= -c;h=-2-c|0;h=h>>>0>2147483647?2147483647:h;J[b+56>>2]=h;h=c+h|0;J[b+36>>2]=h;J[b+24>>2]=h;jF(m,47429,e);if((c|0)!=-2){m=J[b+28>>2];H[m-((m|0)==J[b+24>>2])|0]=0}bc=b+160|0;bc=d+16|0;b=jO(k,i,o,c);ee:{if(b){qd(f+72|0,47816,255);break ee}oE(i)}d=!b;break _d}qd(f+72|0,47184,255);d=0}c=0;while(1){b=J[(e+180|0)+(c<<2)>>2];if(b)dg(b);c=c+1|0;if((g|0)!=(c|0))continue;break}Cu();if(k)yh(k);If(i);break Xd}Cu()}bc=e+192|0;if(d){gc[J[J[f>>2]+4>>2]](f);return 1}ff(a+72|0,f+72|0);gc[J[J[f>>2]+4>>2]](f);return 0}fe:switch(c- -18|0){case 0:e=rc(976);J[695492]=0;c=qf(e,18);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c>>2]=46096;Hj(c,a);e=0;i=bc-784|0;bc=i;ge:{if(Vk(c,b))break ge;if(L[c+26>>1]>=9){H[c+104|0]=K[43136];b=K[43132]|K[43133]<<8|(K[43134]<<16|K[43135]<<24);d=K[43128]|K[43129]<<8|(K[43130]<<16|K[43131]<<24);H[c+96|0]=d;H[c+97|0]=d>>>8;H[c+98|0]=d>>>16;H[c+99|0]=d>>>24;H[c+100|0]=b;H[c+101|0]=b>>>8;H[c+102|0]=b>>>16;H[c+103|0]=b>>>24;b=K[43124]|K[43125]<<8|(K[43126]<<16|K[43127]<<24);d=K[43120]|K[43121]<<8|(K[43122]<< -16|K[43123]<<24);H[c+88|0]=d;H[c+89|0]=d>>>8;H[c+90|0]=d>>>16;H[c+91|0]=d>>>24;H[c+92|0]=b;H[c+93|0]=b>>>8;H[c+94|0]=b>>>16;H[c+95|0]=b>>>24;b=K[43116]|K[43117]<<8|(K[43118]<<16|K[43119]<<24);d=K[43112]|K[43113]<<8|(K[43114]<<16|K[43115]<<24);H[c+80|0]=d;H[c+81|0]=d>>>8;H[c+82|0]=d>>>16;H[c+83|0]=d>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>>16;H[c+87|0]=b>>>24;b=K[43108]|K[43109]<<8|(K[43110]<<16|K[43111]<<24);d=K[43104]|K[43105]<<8|(K[43106]<<16|K[43107]<<24);H[c+72|0]=d;H[c+73|0]=d>>>8;H[c+ -74|0]=d>>>16;H[c+75|0]=d>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24;break ge}d=J[c+16>>2];f=J[c+20>>2];H[i+778|0]=3;d=d<<16>>16;I[i+774>>1]=K[c+494|0]?d:d<<8|(d&65280)>>>8;d=f<<16>>16;I[i+776>>1]=K[c+494|0]?d:d<<8|(d&65280)>>>8;d=Ej(c,16777216);H[i+779|0]=d;H[i+780|0]=d>>>8;H[i+781|0]=d>>>16;H[i+782|0]=d>>>24;gc[J[J[b>>2]+16>>2]](b,i+774|0,9,1)|0;d=I[i+774>>1];I[i+774>>1]=K[c+494|0]?d:d<<8|(d&65280)>>>8;d=I[i+776>>1];I[i+776>>1]=K[c+494|0]?d:d<<8|(d&65280)>>>8;d=Ej(c,K[i+779| -0]|K[i+780|0]<<8|(K[i+781|0]<<16|K[i+782|0]<<24));H[i+779|0]=d;H[i+780|0]=d>>>8;H[i+781|0]=d>>>16;H[i+782|0]=d>>>24;if(L[c+26>>1]<=7)_6(c,8);d=0;while(1){f=i+P(d,3)|0;hN(c,d&255,f,f+1|0,f+2|0);d=d+1|0;if((d|0)!=256)continue;break}f=1;gc[J[J[b>>2]+16>>2]](b,i,768,1)|0;d=df(c,L[i+776>>1]-1|0);if(!L[i+776>>1])break ge;while(1){gc[J[J[b>>2]+16>>2]](b,d,L[i+774>>1],1)|0;d=d-J[c+52>>2]|0;e=e+1|0;if(e>>>0>1])continue;break}}bc=i+784|0;if(f)break c;break b;case 2:e=rc(976);J[695492]=0;c=qf(e,20); -d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c>>2]=46140;Hj(c,a);if(b){b=K[44453]|K[44454]<<8|(K[44455]<<16|K[44456]<<24);d=K[44449]|K[44450]<<8|(K[44451]<<16|K[44452]<<24);H[c+87|0]=d;H[c+88|0]=d>>>8;H[c+89|0]=d>>>16;H[c+90|0]=d>>>24;H[c+91|0]=b;H[c+92|0]=b>>>8;H[c+93|0]=b>>>16;H[c+94|0]=b>>>24;b=K[44446]|K[44447]<<8|(K[44448]<<16|K[44449]<<24);d=K[44442]|K[44443]<<8|(K[44444]<<16|K[44445]<<24);H[c+80|0]=d;H[c+81|0]=d>>>8;H[c+82|0]=d>>>16;H[c+83|0]=d>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>> -16;H[c+87|0]=b>>>24;b=K[44438]|K[44439]<<8|(K[44440]<<16|K[44441]<<24);d=K[44434]|K[44435]<<8|(K[44436]<<16|K[44437]<<24);H[c+72|0]=d;H[c+73|0]=d>>>8;H[c+74|0]=d>>>16;H[c+75|0]=d>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24}break b;default:break fe}b=K[44598]|K[44599]<<8|(K[44600]<<16|K[44601]<<24);c=K[44594]|K[44595]<<8|(K[44596]<<16|K[44597]<<24);H[a+87|0]=c;H[a+88|0]=c>>>8;H[a+89|0]=c>>>16;H[a+90|0]=c>>>24;H[a+91|0]=b;H[a+92|0]=b>>>8;H[a+93|0]=b>>>16;H[a+94|0]=b>>>24;b=K[44591]| -K[44592]<<8|(K[44593]<<16|K[44594]<<24);c=K[44587]|K[44588]<<8|(K[44589]<<16|K[44590]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[44583]|K[44584]<<8|(K[44585]<<16|K[44586]<<24);c=K[44579]|K[44580]<<8|(K[44581]<<16|K[44582]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;return 0}a=Z()|0;qc(e);break a}gc[J[J[c>>2]+4>>2]](c);return 1}ff(a+ -72|0,c+72|0);gc[J[J[c>>2]+4>>2]](c);return 0}ba(a|0);B()}function x9(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,N=0,Q=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;N=bc-5216|0;bc=N;p9();J[N+1216>>2]=0;J[N+192>>2]=0;a:{b:{c:{h=zc(360);if(h){J[h+32>>2]=0;J[h+24>>2]=-1;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=-1;J[h+8>>2]=-1;J[h+ -12>>2]=0;J[h>>2]=0;J[h+4>>2]=-1;J[h+52>>2]=0;i=J[a+16>>2];J[h+48>>2]=i;g=1;l=1;d:{e:{f:{g:{if((i|0)>0){o=J[a+8>>2];f=J[a+24>>2];while(1){e=J[f+(d<<2)>>2];j=J[e+8>>2];h:{if((o|0)<((j+J[e>>2]|0)+P(j,J[e+16>>2])|0)){v=J[e+12>>2];if(J[a+12>>2]<((v+J[e+4>>2]|0)+P(v,J[e+20>>2])|0))break h}hd(210260,0);break g}l=P(l,v);g=P(g,j);d=d+1|0;if((i|0)!=(d|0))continue;break}}e=zc(P(i,412));J[h+52>>2]=e;if(!e)break g;if(J[h+48>>2]>0){j=0;while(1){d=J[J[a+24>>2]+(j<<2)>>2];H[e|0]=J[d+8>>2];i=J[d+12>>2];H[e+2|0]=0; -H[e+1|0]=i;H[e+4|0]=J[d+24>>2];H[e+5|0]=J[d+28>>2]!=0;wc(e+8|0,0,404);e=e+412|0;j=j+1|0;if((j|0)>2])continue;break}}d=0;e=0;i=J[a+16>>2];if((i|0)>0){o=i&1;j=J[a+24>>2];i:{if((i|0)==1){v=0;break i}f=i&-2;v=0;while(1){s=v<<2;i=J[j+(s|4)>>2];m=e;e=J[j+s>>2];e=((P(P(J[i+20>>2],J[i+16>>2]),J[i+24>>2])+7|0)/8|0)+(m+((P(P(J[e+20>>2],J[e+16>>2]),J[e+24>>2])+7|0)/8|0)|0)|0;v=v+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}if(o){d=e;e=J[j+(v<<2)>>2];e=d+((P(P(J[e+20>>2],J[e+16>>2]),J[e+24>>2])+7|0)/8| -0)|0}}J[h+352>>2]=-1;J[h+356>>2]=e;H[h+348|0]=2;i=0;H[h+80|0]=0;J[h+72>>2]=6;J[h+76>>2]=6;I[h+68>>1]=1536;J[h+60>>2]=1;J[h+64>>2]=0;H[h+58|0]=0;I[h+56>>1]=1;o=Wx(c?c:210326);if(!o)break g;j=15;e=1;j:{if(Go(o)){d=15;break j}d=15;while(1){c=e;e=0;k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{v=Or(2632352,J[o+4>>2]);switch(J[(v?v:2631056)>>2]){case 13:break k;case 26:break n;case 25:break o;case 24:break p;case 23:break q;case 22:break r;case 21:break s;case 20:break t; -case 19:break u;case 18:break v;case 17:break w;case 16:break x;case 15:break y;case 14:break z;case 12:break A;case 11:break B;case 10:break C;case 9:break D;case 8:break E;case 7:break F;case 6:break G;case 5:break H;case 4:break I;case 3:break J;case 2:break K;case 1:break L;case 0:break M;default:break m}}oa=h,pa=Zf(J[o+8>>2]),J[oa>>2]=pa;break l}oa=h,pa=Zf(J[o+8>>2]),J[oa+4>>2]=pa;break l}oa=h,pa=Zf(J[o+8>>2]),J[oa+8>>2]=pa;break l}oa=h,pa=Zf(J[o+8>>2]),J[oa+20>>2]=pa;break l}oa=h,pa=Zf(J[o+ -8>>2]),J[oa+24>>2]=pa;break l}oa=h,pa=Zf(J[o+8>>2]),J[oa+28>>2]=pa;break l}oa=h,pa=Zf(J[o+8>>2]),J[oa+32>>2]=pa;break l}d=dq(Zf(J[o+8>>2]));break l}j=dq(Zf(J[o+8>>2]));break l}oa=h,pa=dq(Zf(J[o+8>>2])),J[oa+72>>2]=pa;break l}oa=h,pa=dq(Zf(J[o+8>>2])),J[oa+76>>2]=pa;break l}e=Or(2632624,J[o+8>>2]);e=J[(e?e:2631056)>>2];if((e|0)<0){J[N+144>>2]=J[o+8>>2];hd(210327,N+144|0);break l}H[h+56|0]=!e;break l}e=Or(2632576,J[o+8>>2]);e=J[(e?e:2631056)>>2];if((e|0)<0){J[N+160>>2]=J[o+8>>2];hd(210374,N+160|0); -break l}H[h+58|0]=e;break l}oa=h,pa=Zf(J[o+8>>2]),H[oa+69|0]=pa;break l}H[h+57|0]=K[h+57|0]|2;break l}H[h+57|0]=K[h+57|0]|4;break l}H[h+80|0]=K[h+80|0]|1;break l}H[h+80|0]=K[h+80|0]|4;break l}H[h+80|0]=K[h+80|0]|32;break l}H[h+80|0]=K[h+80|0]|8;break l}H[h+80|0]=K[h+80|0]|2;break l}H[h+80|0]=K[h+80|0]|16;break l}oa=h,pa=Zf(J[o+8>>2]),H[oa+348|0]=pa;break l}e=J[h+356>>2];v=J[o+8>>2];if(Yf(v,66)){oa=h,pa=Zf(v),J[oa+352>>2]=pa;break l}A=Wf(v);if(!(A<0)){if(A>1){J[h+352>>2]=e+1;break l}A=A*+(e>>>0);if(A< -4294967296&A>=0){J[h+352>>2]=~~A>>>0;break l}}J[h+352>>2]=0;break l}x=N+1216|0;v=0;Q=0;w=bc-4096|0;bc=w;s=J[o+8>>2];f=qd(w,s,4096);H[f+4095|0]=0;N:{O:{if(!Cg(f,2632928))break O;e=1;while(1){v=e;e=e+1|0;if(Cg(0,2632928))continue;break}v=zc(v<<3);if(!v){Q=-1;break N}e=0;s=qd(f,s,4096);H[f+4095|0]=0;f=Cg(s,2632928);if(!f)break O;oa=v,qa=Wf(f),O[oa>>3]=qa;e=1;s=Cg(0,2632928);if(!s)break O;while(1){oa=(e<<3)+v|0,qa=Wf(s),O[oa>>3]=qa;e=e+1|0;s=Cg(0,2632928);if(s)continue;break}}J[x>>2]=e;J[N+192>>2]=v}bc= -w+4096|0;if(!Q)break l;J[N+176>>2]=J[o+8>>2];hd(210480,N+176|0);break l}i=Zf(J[o+8>>2]);break l}J[N+128>>2]=J[o+4>>2];hd(210546,N+128|0)}e=c}if(!Go(o))continue;break}}zu(o);c=J[h+352>>2];if((c|0)!=-1){i=c-i|0;J[h+352>>2]=c>>>0>=i>>>0?i:0}c=0;v=0;i=J[h+4>>2];if((i|0)!=-1){if((g|0)!=1){hd(210583,0);i=J[h+4>>2]}v=P(g,i)}J[h+4>>2]=v;i=J[h+8>>2];if((i|0)!=-1){if((l|0)!=1){hd(210621,0);v=J[h+4>>2];i=J[h+8>>2]}c=P(i,l)}J[h+8>>2]=c;i=(J[a+8>>2]-J[a>>2]|0)+v|0;J[h+12>>2]=i;l=(J[a+12>>2]-J[a+4>>2]|0)+c|0;J[h+ -16>>2]=l;g=J[h+20>>2];if((g|0)==-1){J[h+20>>2]=v;g=v}v=J[h+24>>2];if((v|0)==-1){J[h+24>>2]=c;v=c}if(!J[h+28>>2])J[h+28>>2]=i-g;if(!J[h+32>>2])J[h+32>>2]=l-v;P:{Q:{if(J[h+48>>2]!=3)break Q;l=1;g=J[a+16>>2];if((g|0)>0){o=J[a+24>>2];c=J[o>>2];f=J[c+24>>2];v=0;while(1){i=J[o+(v<<2)>>2];R:{if(!((f|0)!=J[i+24>>2]|J[i+28>>2]!=J[c+28>>2]|J[i+16>>2]!=J[c+16>>2]))if(J[i+20>>2]==J[c+20>>2])break R;l=0}v=v+1|0;if((g|0)!=(v|0))continue;break}}if(!(e&l&1))break Q;c=J[a+28>>2];if((c&-256)!=1024){hd(210659,0);c= +f;break Sd}s=b+r|0;b=h;while(1){i=1;o=f&255;Td:{while(1){e=b+1|0;d=K[b|0];if((o|0)!=(d|0)|(i&255)>>>0>62)break Td;i=i+1|0;b=e;if(s>>>0>b>>>0)continue;break}d=f;break Rd}if(!((i&255)>>>0<2&o>>>0<=191)){b=J[J[p>>2]+44>>2];J[699344]=0;aa(b|0,p|0,(i|192)&255)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd}b=J[J[p>>2]+44>>2];J[699344]=0;aa(b|0,p|0,o|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd;f=d;b=e;if(s>>>0>b>>>0)continue;break}}i=1;if((d&255)>>>0<192)break Qd}b=J[J[p>>2]+44>>2];J[699344]=0;aa(b| +0,p|0,(i|192)&255)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd}b=J[J[p>>2]+44>>2];J[699344]=0;aa(b|0,p|0,d&255)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd;k=k+1|0;if((k|0)=2)continue;break}}uc(r);uc(q);J[699344]=0;b=J[p+4>>2];d=J[699344];J[699344]=0;if((d|0)==1)break cd;J[699344]=0;d=J[p+16>>2];f=J[p+4>>2];e=J[699344];J[699344]=0;if((e|0)==1)break cd;e=J[J[g>>2]+16>>2];J[699344]=0;ha(e|0,g|0,b|0,(f?d:-1)|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break cd}lo(p); +break bd}a=Z()|0;lo(p);break a}i=(t|0)!=0}fc=j+160|0;if(i)break c;break b;case 8:e=vc(976);J[699344]=0;c=xf(e,9);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c>>2]=46024;ck(c,a);d=b;if(!sl(c,d))Ud:{if(L[c+26>>1]!=1){b=K[45077]|K[45078]<<8|(K[45079]<<16|K[45080]<<24);d=K[45073]|K[45074]<<8|(K[45075]<<16|K[45076]<<24);H[c+94|0]=d;H[c+95|0]=d>>>8;H[c+96|0]=d>>>16;H[c+97|0]=d>>>24;H[c+98|0]=b;H[c+99|0]=b>>>8;H[c+100|0]=b>>>16;H[c+101|0]=b>>>24;b=K[45071]|K[45072]<<8|(K[45073]<<16|K[45074]<<24);d=K[45067]| +K[45068]<<8|(K[45069]<<16|K[45070]<<24);H[c+88|0]=d;H[c+89|0]=d>>>8;H[c+90|0]=d>>>16;H[c+91|0]=d>>>24;H[c+92|0]=b;H[c+93|0]=b>>>8;H[c+94|0]=b>>>16;H[c+95|0]=b>>>24;b=K[45063]|K[45064]<<8|(K[45065]<<16|K[45066]<<24);d=K[45059]|K[45060]<<8|(K[45061]<<16|K[45062]<<24);H[c+80|0]=d;H[c+81|0]=d>>>8;H[c+82|0]=d>>>16;H[c+83|0]=d>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>>16;H[c+87|0]=b>>>24;b=K[45055]|K[45056]<<8|(K[45057]<<16|K[45058]<<24);d=K[45051]|K[45052]<<8|(K[45053]<<16|K[45054]<<24);H[c+72|0]= +d;H[c+73|0]=d>>>8;H[c+74|0]=d>>>16;H[c+75|0]=d>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24;break Ud}e=J[c+20>>2];k=J[c+16>>2];kc[J[J[d>>2]+44>>2]](d,0)|0;kc[J[J[d>>2]+44>>2]](d,0)|0;while(1){b=f;f=b+7|0;if(k>>>f|0)continue;break}Vd:{if(b)while(1){if(!(kc[J[J[d>>2]+44>>2]](d,(k>>>b|128)&255)|0))break Vd;f=(b|0)<8;b=b-7|0;if(!f)continue;break}kc[J[J[d>>2]+44>>2]](d,k&127)|0}f=0;while(1){b=f;f=b+7|0;if(e>>>f|0)continue;break}Wd:{if(b)while(1){if(!(kc[J[J[d>>2]+44>>2]](d,(e>>>b| +128)&255)|0))break Wd;f=(b|0)<8;b=b-7|0;if(!f)continue;break}kc[J[J[d>>2]+44>>2]](d,e&127)|0}f=0;mf(c,0);j=J[c+20>>2];b=mf(c,0);i=1;if(!e)break Ud;k=k+7>>>3|0;b=P(J[c+52>>2],J[c+20>>2]-1|0)+b|0;while(1){kc[J[J[d>>2]+16>>2]](d,b,k,1)|0;j=j-1|0;b=(j|0)>0?b-J[c+52>>2]|0:b;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(i)break c;break b;default:break e}if(c-11>>>0<=4){e=vc(976);J[699344]=0;f=xf(e,0);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[f>>2]=46068;ck(f,a);d=0;e=fc-192|0;fc=e;Xd:{if(sl(f,b))break Xd; +Yd:{if(!J[f+44>>2])break Yd;if(tp(f))break Yd;b=K[46862]|K[46863]<<8|(K[46864]<<16|K[46865]<<24);c=K[46858]|K[46859]<<8|(K[46860]<<16|K[46861]<<24);H[f+109|0]=c;H[f+110|0]=c>>>8;H[f+111|0]=c>>>16;H[f+112|0]=c>>>24;H[f+113|0]=b;H[f+114|0]=b>>>8;H[f+115|0]=b>>>16;H[f+116|0]=b>>>24;b=K[46857]|K[46858]<<8|(K[46859]<<16|K[46860]<<24);c=K[46853]|K[46854]<<8|(K[46855]<<16|K[46856]<<24);H[f+104|0]=c;H[f+105|0]=c>>>8;H[f+106|0]=c>>>16;H[f+107|0]=c>>>24;H[f+108|0]=b;H[f+109|0]=b>>>8;H[f+110|0]=b>>>16;H[f+111| +0]=b>>>24;b=K[46849]|K[46850]<<8|(K[46851]<<16|K[46852]<<24);c=K[46845]|K[46846]<<8|(K[46847]<<16|K[46848]<<24);H[f+96|0]=c;H[f+97|0]=c>>>8;H[f+98|0]=c>>>16;H[f+99|0]=c>>>24;H[f+100|0]=b;H[f+101|0]=b>>>8;H[f+102|0]=b>>>16;H[f+103|0]=b>>>24;b=K[46841]|K[46842]<<8|(K[46843]<<16|K[46844]<<24);c=K[46837]|K[46838]<<8|(K[46839]<<16|K[46840]<<24);H[f+88|0]=c;H[f+89|0]=c>>>8;H[f+90|0]=c>>>16;H[f+91|0]=c>>>24;H[f+92|0]=b;H[f+93|0]=b>>>8;H[f+94|0]=b>>>16;H[f+95|0]=b>>>24;b=K[46833]|K[46834]<<8|(K[46835]<<16| +K[46836]<<24);c=K[46829]|K[46830]<<8|(K[46831]<<16|K[46832]<<24);H[f+80|0]=c;H[f+81|0]=c>>>8;H[f+82|0]=c>>>16;H[f+83|0]=c>>>24;H[f+84|0]=b;H[f+85|0]=b>>>8;H[f+86|0]=b>>>16;H[f+87|0]=b>>>24;b=K[46825]|K[46826]<<8|(K[46827]<<16|K[46828]<<24);c=K[46821]|K[46822]<<8|(K[46823]<<16|K[46824]<<24);H[f+72|0]=c;H[f+73|0]=c>>>8;H[f+74|0]=c>>>16;H[f+75|0]=c>>>24;H[f+76|0]=b;H[f+77|0]=b>>>8;H[f+78|0]=b>>>16;H[f+79|0]=b>>>24;break Xd}Zd:{if(JP()){Ad(f+72|0,43174,255);break Zd}i=IP(47012);if(!i){Ad(f+72|0,47053, +255);break Zd}d=J[i+56>>2];if(d)uc(d);J[i+56>>2]=b;J[e+72>>2]=185;J[e+64>>2]=186;J[e+76>>2]=187;J[e+68>>2]=188;J[i+52>>2]=e- -64;b=J[f+16>>2];d=J[f+20>>2];h=J[f+44>>2];J[e+104>>2]=8;J[e+108>>2]=0;J[e+100>>2]=d;J[e+96>>2]=b;J[e+88>>2]=1;J[e+92>>2]=1;J[e+80>>2]=0;J[e+84>>2]=0;if(!h){J[e+168>>2]=8;J[e+172>>2]=0;J[e+164>>2]=d;J[e+160>>2]=b;J[e+152>>2]=1;J[e+156>>2]=1;J[e+136>>2]=8;J[e+140>>2]=0;J[e+132>>2]=d;J[e+128>>2]=b;J[e+120>>2]=1;J[e+124>>2]=1;J[e+144>>2]=0;J[e+148>>2]=0;J[e+112>>2]=0;J[e+116>> +2]=0}g=h?1:3;k=Hs(g,e+80|0);_d:{if(!k){Ad(f+72|0,47148,255);d=0;break _d}b=J[k+24>>2];J[J[b>>2]+40>>2]=0;if(h)b=769;else{J[J[b+4>>2]+40>>2]=1;J[J[b+8>>2]+40>>2]=2;b=1025}J[k+28>>2]=b;Ac(e+180|0,0,g<<2);$d:{while(1){b=Dk(1,J[f+16>>2]);J[(e+180|0)+(o<<2)>>2]=b;if(!b)break $d;o=o+1|0;if((g|0)!=(o|0))continue;break}d=J[f+20>>2];if((d|0)>0){h=J[e+188>>2];l=J[e+184>>2];b=J[e+180>>2];while(1){o=0;if(J[f+16>>2]>0){while(1){ae:{if(!J[f+44>>2]){fl(e+16|0,f,o,m,1);n=K[e+17|0];d=K[e+16|0];p=o<<2;j=J[b+28>>2]; +J[(J[b+20>>2]==1?p+J[j>>2]|0:J[j+p>>2])>>2]=K[e+18|0];j=J[l+28>>2];J[(J[l+20>>2]==1?p+J[j>>2]|0:J[j+(o<<2)>>2])>>2]=n;n=J[h+28>>2];if(J[h+20>>2]==1){J[p+J[n>>2]>>2]=d;break ae}J[J[n+(o<<2)>>2]>>2]=d;break ae}j=J[b+20>>2];d=Ij(f,o,m);n=J[b+28>>2];if((j|0)==1){J[J[n>>2]+(o<<2)>>2]=d;break ae}J[J[n+(o<<2)>>2]>>2]=d}o=o+1|0;if((o|0)>2])continue;break}d=J[f+20>>2]}d=d+(m^-1)|0;o=0;be:{while(1){if(!Fk(k,o,0,d,J[f+16>>2],1,J[(e+180|0)+(o<<2)>>2])){o=o+1|0;if((g|0)!=(o|0))continue;break be}break}Ad(f+ +72|0,47278,255);d=0;break _d}d=J[f+20>>2];m=m+1|0;if((d|0)>(m|0))continue;break}}H[e+60|0]=0;ce:{de:switch(c-11|0){case 1:J[e+60>>2]=6516842;break ce;case 4:J[e+60>>2]=7561586;break ce;case 3:J[e+60>>2]=7171696;break ce;case 2:J[e+60>>2]=7890800;if(J[f+44>>2])break ce;Ad(f+72|0,47398,255);d=0;break _d;case 0:break de;default:break ce}J[e+60>>2]=3305578}o=CP(e+60|0);O[e>>3]=Q(N[f+344>>2]/Q(100));d=fc-16|0;fc=d;J[d+12>>2]=e;b=fc-160|0;fc=b;m=b+8|0;xc(m,2627952,144);c=e+16|0;J[b+52>>2]=c;J[b+28>>2]= +c;h=-2-c|0;h=h>>>0>2147483647?2147483647:h;J[b+56>>2]=h;h=c+h|0;J[b+36>>2]=h;J[b+24>>2]=h;tG(m,47445,e);if((c|0)!=-2){m=J[b+28>>2];H[m-((m|0)==J[b+24>>2])|0]=0}fc=b+160|0;fc=d+16|0;b=DP(k,i,o,c);ee:{if(b){Ad(f+72|0,47832,255);break ee}sF(i)}d=!b;break _d}Ad(f+72|0,47200,255);d=0}c=0;while(1){b=J[(e+180|0)+(c<<2)>>2];if(b)mg(b);c=c+1|0;if((g|0)!=(c|0))continue;break}rv();if(k)Mh(k);Pf(i);break Xd}rv()}fc=e+192|0;if(d){kc[J[J[f>>2]+4>>2]](f);return 1}of(a+72|0,f+72|0);kc[J[J[f>>2]+4>>2]](f);return 0}fe:switch(c- +18|0){case 0:e=vc(976);J[699344]=0;c=xf(e,18);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c>>2]=46112;ck(c,a);e=0;i=fc-784|0;fc=i;ge:{if(sl(c,b))break ge;if(L[c+26>>1]>=9){H[c+104|0]=K[43152];b=K[43148]|K[43149]<<8|(K[43150]<<16|K[43151]<<24);d=K[43144]|K[43145]<<8|(K[43146]<<16|K[43147]<<24);H[c+96|0]=d;H[c+97|0]=d>>>8;H[c+98|0]=d>>>16;H[c+99|0]=d>>>24;H[c+100|0]=b;H[c+101|0]=b>>>8;H[c+102|0]=b>>>16;H[c+103|0]=b>>>24;b=K[43140]|K[43141]<<8|(K[43142]<<16|K[43143]<<24);d=K[43136]|K[43137]<<8|(K[43138]<< +16|K[43139]<<24);H[c+88|0]=d;H[c+89|0]=d>>>8;H[c+90|0]=d>>>16;H[c+91|0]=d>>>24;H[c+92|0]=b;H[c+93|0]=b>>>8;H[c+94|0]=b>>>16;H[c+95|0]=b>>>24;b=K[43132]|K[43133]<<8|(K[43134]<<16|K[43135]<<24);d=K[43128]|K[43129]<<8|(K[43130]<<16|K[43131]<<24);H[c+80|0]=d;H[c+81|0]=d>>>8;H[c+82|0]=d>>>16;H[c+83|0]=d>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>>16;H[c+87|0]=b>>>24;b=K[43124]|K[43125]<<8|(K[43126]<<16|K[43127]<<24);d=K[43120]|K[43121]<<8|(K[43122]<<16|K[43123]<<24);H[c+72|0]=d;H[c+73|0]=d>>>8;H[c+ +74|0]=d>>>16;H[c+75|0]=d>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24;break ge}d=J[c+16>>2];f=J[c+20>>2];H[i+778|0]=3;d=d<<16>>16;I[i+774>>1]=K[c+494|0]?d:d<<8|(d&65280)>>>8;d=f<<16>>16;I[i+776>>1]=K[c+494|0]?d:d<<8|(d&65280)>>>8;d=$j(c,16777216);H[i+779|0]=d;H[i+780|0]=d>>>8;H[i+781|0]=d>>>16;H[i+782|0]=d>>>24;kc[J[J[b>>2]+16>>2]](b,i+774|0,9,1)|0;d=I[i+774>>1];I[i+774>>1]=K[c+494|0]?d:d<<8|(d&65280)>>>8;d=I[i+776>>1];I[i+776>>1]=K[c+494|0]?d:d<<8|(d&65280)>>>8;d=$j(c,K[i+779| +0]|K[i+780|0]<<8|(K[i+781|0]<<16|K[i+782|0]<<24));H[i+779|0]=d;H[i+780|0]=d>>>8;H[i+781|0]=d>>>16;H[i+782|0]=d>>>24;if(L[c+26>>1]<=7)a9(c,8);d=0;while(1){f=i+P(d,3)|0;BO(c,d&255,f,f+1|0,f+2|0);d=d+1|0;if((d|0)!=256)continue;break}f=1;kc[J[J[b>>2]+16>>2]](b,i,768,1)|0;d=mf(c,L[i+776>>1]-1|0);if(!L[i+776>>1])break ge;while(1){kc[J[J[b>>2]+16>>2]](b,d,L[i+774>>1],1)|0;d=d-J[c+52>>2]|0;e=e+1|0;if(e>>>0>1])continue;break}}fc=i+784|0;if(f)break c;break b;case 2:e=vc(976);J[699344]=0;c=xf(e,20); +d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c>>2]=46156;ck(c,a);if(b){b=K[44469]|K[44470]<<8|(K[44471]<<16|K[44472]<<24);d=K[44465]|K[44466]<<8|(K[44467]<<16|K[44468]<<24);H[c+87|0]=d;H[c+88|0]=d>>>8;H[c+89|0]=d>>>16;H[c+90|0]=d>>>24;H[c+91|0]=b;H[c+92|0]=b>>>8;H[c+93|0]=b>>>16;H[c+94|0]=b>>>24;b=K[44462]|K[44463]<<8|(K[44464]<<16|K[44465]<<24);d=K[44458]|K[44459]<<8|(K[44460]<<16|K[44461]<<24);H[c+80|0]=d;H[c+81|0]=d>>>8;H[c+82|0]=d>>>16;H[c+83|0]=d>>>24;H[c+84|0]=b;H[c+85|0]=b>>>8;H[c+86|0]=b>>> +16;H[c+87|0]=b>>>24;b=K[44454]|K[44455]<<8|(K[44456]<<16|K[44457]<<24);d=K[44450]|K[44451]<<8|(K[44452]<<16|K[44453]<<24);H[c+72|0]=d;H[c+73|0]=d>>>8;H[c+74|0]=d>>>16;H[c+75|0]=d>>>24;H[c+76|0]=b;H[c+77|0]=b>>>8;H[c+78|0]=b>>>16;H[c+79|0]=b>>>24}break b;default:break fe}b=K[44614]|K[44615]<<8|(K[44616]<<16|K[44617]<<24);c=K[44610]|K[44611]<<8|(K[44612]<<16|K[44613]<<24);H[a+87|0]=c;H[a+88|0]=c>>>8;H[a+89|0]=c>>>16;H[a+90|0]=c>>>24;H[a+91|0]=b;H[a+92|0]=b>>>8;H[a+93|0]=b>>>16;H[a+94|0]=b>>>24;b=K[44607]| +K[44608]<<8|(K[44609]<<16|K[44610]<<24);c=K[44603]|K[44604]<<8|(K[44605]<<16|K[44606]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[44599]|K[44600]<<8|(K[44601]<<16|K[44602]<<24);c=K[44595]|K[44596]<<8|(K[44597]<<16|K[44598]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;return 0}a=Z()|0;uc(e);break a}kc[J[J[c>>2]+4>>2]](c);return 1}of(a+ +72|0,c+72|0);kc[J[J[c>>2]+4>>2]](c);return 0}ba(a|0);B()}function zba(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,N=0,Q=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;N=fc-5216|0;fc=N;rba();J[N+1216>>2]=0;J[N+192>>2]=0;a:{b:{c:{h=Dc(360);if(h){J[h+32>>2]=0;J[h+24>>2]=-1;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=-1;J[h+8>>2]=-1;J[h+ +12>>2]=0;J[h>>2]=0;J[h+4>>2]=-1;J[h+52>>2]=0;i=J[a+16>>2];J[h+48>>2]=i;g=1;l=1;d:{e:{f:{g:{if((i|0)>0){o=J[a+8>>2];f=J[a+24>>2];while(1){e=J[f+(d<<2)>>2];j=J[e+8>>2];h:{if((o|0)<((j+J[e>>2]|0)+P(j,J[e+16>>2])|0)){v=J[e+12>>2];if(J[a+12>>2]<((v+J[e+4>>2]|0)+P(v,J[e+20>>2])|0))break h}rd(210276,0);break g}l=P(l,v);g=P(g,j);d=d+1|0;if((i|0)!=(d|0))continue;break}}e=Dc(P(i,412));J[h+52>>2]=e;if(!e)break g;if(J[h+48>>2]>0){j=0;while(1){d=J[J[a+24>>2]+(j<<2)>>2];H[e|0]=J[d+8>>2];i=J[d+12>>2];H[e+2|0]=0; +H[e+1|0]=i;H[e+4|0]=J[d+24>>2];H[e+5|0]=J[d+28>>2]!=0;Ac(e+8|0,0,404);e=e+412|0;j=j+1|0;if((j|0)>2])continue;break}}d=0;e=0;i=J[a+16>>2];if((i|0)>0){o=i&1;j=J[a+24>>2];i:{if((i|0)==1){v=0;break i}f=i&-2;v=0;while(1){s=v<<2;i=J[j+(s|4)>>2];m=e;e=J[j+s>>2];e=((P(P(J[i+20>>2],J[i+16>>2]),J[i+24>>2])+7|0)/8|0)+(m+((P(P(J[e+20>>2],J[e+16>>2]),J[e+24>>2])+7|0)/8|0)|0)|0;v=v+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}if(o){d=e;e=J[j+(v<<2)>>2];e=d+((P(P(J[e+20>>2],J[e+16>>2]),J[e+24>>2])+7|0)/8| +0)|0}}J[h+352>>2]=-1;J[h+356>>2]=e;H[h+348|0]=2;i=0;H[h+80|0]=0;J[h+72>>2]=6;J[h+76>>2]=6;I[h+68>>1]=1536;J[h+60>>2]=1;J[h+64>>2]=0;H[h+58|0]=0;I[h+56>>1]=1;o=Ny(c?c:210342);if(!o)break g;j=15;e=1;j:{if(wp(o)){d=15;break j}d=15;while(1){c=e;e=0;k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{v=Es(2647344,J[o+4>>2]);switch(J[(v?v:2646048)>>2]){case 13:break k;case 26:break n;case 25:break o;case 24:break p;case 23:break q;case 22:break r;case 21:break s;case 20:break t; +case 19:break u;case 18:break v;case 17:break w;case 16:break x;case 15:break y;case 14:break z;case 12:break A;case 11:break B;case 10:break C;case 9:break D;case 8:break E;case 7:break F;case 6:break G;case 5:break H;case 4:break I;case 3:break J;case 2:break K;case 1:break L;case 0:break M;default:break m}}oa=h,pa=fg(J[o+8>>2]),J[oa>>2]=pa;break l}oa=h,pa=fg(J[o+8>>2]),J[oa+4>>2]=pa;break l}oa=h,pa=fg(J[o+8>>2]),J[oa+8>>2]=pa;break l}oa=h,pa=fg(J[o+8>>2]),J[oa+20>>2]=pa;break l}oa=h,pa=fg(J[o+ +8>>2]),J[oa+24>>2]=pa;break l}oa=h,pa=fg(J[o+8>>2]),J[oa+28>>2]=pa;break l}oa=h,pa=fg(J[o+8>>2]),J[oa+32>>2]=pa;break l}d=Wq(fg(J[o+8>>2]));break l}j=Wq(fg(J[o+8>>2]));break l}oa=h,pa=Wq(fg(J[o+8>>2])),J[oa+72>>2]=pa;break l}oa=h,pa=Wq(fg(J[o+8>>2])),J[oa+76>>2]=pa;break l}e=Es(2647616,J[o+8>>2]);e=J[(e?e:2646048)>>2];if((e|0)<0){J[N+144>>2]=J[o+8>>2];rd(210343,N+144|0);break l}H[h+56|0]=!e;break l}e=Es(2647568,J[o+8>>2]);e=J[(e?e:2646048)>>2];if((e|0)<0){J[N+160>>2]=J[o+8>>2];rd(210390,N+160|0); +break l}H[h+58|0]=e;break l}oa=h,pa=fg(J[o+8>>2]),H[oa+69|0]=pa;break l}H[h+57|0]=K[h+57|0]|2;break l}H[h+57|0]=K[h+57|0]|4;break l}H[h+80|0]=K[h+80|0]|1;break l}H[h+80|0]=K[h+80|0]|4;break l}H[h+80|0]=K[h+80|0]|32;break l}H[h+80|0]=K[h+80|0]|8;break l}H[h+80|0]=K[h+80|0]|2;break l}H[h+80|0]=K[h+80|0]|16;break l}oa=h,pa=fg(J[o+8>>2]),H[oa+348|0]=pa;break l}e=J[h+356>>2];v=J[o+8>>2];if(eg(v,66)){oa=h,pa=fg(v),J[oa+352>>2]=pa;break l}A=qg(v);if(!(A<0)){if(A>1){J[h+352>>2]=e+1;break l}A=A*+(e>>>0);if(A< +4294967296&A>=0){J[h+352>>2]=~~A>>>0;break l}}J[h+352>>2]=0;break l}x=N+1216|0;v=0;Q=0;w=fc-4096|0;fc=w;s=J[o+8>>2];f=Ad(w,s,4096);H[f+4095|0]=0;N:{O:{if(!Og(f,2647920))break O;e=1;while(1){v=e;e=e+1|0;if(Og(0,2647920))continue;break}v=Dc(v<<3);if(!v){Q=-1;break N}e=0;s=Ad(f,s,4096);H[f+4095|0]=0;f=Og(s,2647920);if(!f)break O;oa=v,qa=qg(f),O[oa>>3]=qa;e=1;s=Og(0,2647920);if(!s)break O;while(1){oa=(e<<3)+v|0,qa=qg(s),O[oa>>3]=qa;e=e+1|0;s=Og(0,2647920);if(s)continue;break}}J[x>>2]=e;J[N+192>>2]=v}fc= +w+4096|0;if(!Q)break l;J[N+176>>2]=J[o+8>>2];rd(210496,N+176|0);break l}i=fg(J[o+8>>2]);break l}J[N+128>>2]=J[o+4>>2];rd(210562,N+128|0)}e=c}if(!wp(o))continue;break}}ov(o);c=J[h+352>>2];if((c|0)!=-1){i=c-i|0;J[h+352>>2]=c>>>0>=i>>>0?i:0}c=0;v=0;i=J[h+4>>2];if((i|0)!=-1){if((g|0)!=1){rd(210599,0);i=J[h+4>>2]}v=P(g,i)}J[h+4>>2]=v;i=J[h+8>>2];if((i|0)!=-1){if((l|0)!=1){rd(210637,0);v=J[h+4>>2];i=J[h+8>>2]}c=P(i,l)}J[h+8>>2]=c;i=(J[a+8>>2]-J[a>>2]|0)+v|0;J[h+12>>2]=i;l=(J[a+12>>2]-J[a+4>>2]|0)+c|0;J[h+ +16>>2]=l;g=J[h+20>>2];if((g|0)==-1){J[h+20>>2]=v;g=v}v=J[h+24>>2];if((v|0)==-1){J[h+24>>2]=c;v=c}if(!J[h+28>>2])J[h+28>>2]=i-g;if(!J[h+32>>2])J[h+32>>2]=l-v;P:{Q:{if(J[h+48>>2]!=3)break Q;l=1;g=J[a+16>>2];if((g|0)>0){o=J[a+24>>2];c=J[o>>2];f=J[c+24>>2];v=0;while(1){i=J[o+(v<<2)>>2];R:{if(!((f|0)!=J[i+24>>2]|J[i+28>>2]!=J[c+28>>2]|J[i+16>>2]!=J[c+16>>2]))if(J[i+20>>2]==J[c+20>>2])break R;l=0}v=v+1|0;if((g|0)!=(v|0))continue;break}}if(!(e&l&1))break Q;c=J[a+28>>2];if((c&-256)!=1024){rd(210675,0);c= J[a+28>>2]}if((c&-256)!=1024)break Q;e=K[h+56|0];H[h+59|0]=e?2:1;break P}H[h+59|0]=0;e=K[h+56|0]}H[h+81|0]=e;o=K[h+69|0];S:{if(!o)break S;c=0;e=0;if(o>>>0>=4){f=o&252;g=h+84|0;l=h+216|0;i=0;while(1){v=e<<2;J[v+g>>2]=d;J[l+v>>2]=j;s=v|4;J[s+g>>2]=d;J[l+s>>2]=j;s=v|8;J[s+g>>2]=d;J[l+s>>2]=j;v=v|12;J[v+g>>2]=d;J[l+v>>2]=j;e=e+4|0;i=i+4|0;if((f|0)!=(i|0))continue;break}}i=o&3;if(!i)break S;while(1){g=(e<<2)+h|0;J[g+216>>2]=j;J[g+84>>2]=d;e=e+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if(!((d|0)==15& -(j|0)==15))H[h+68|0]=K[h+68|0]|1;e=J[h+28>>2];if(!e){J[N+32>>2]=0;hd(210700,N+32|0);break g}i=J[h+32>>2];if(!i){J[N+48>>2]=0;hd(210724,N+48|0);break g}c=J[h+24>>2];T:{g=J[h+20>>2];l=J[h+4>>2];U:{if(g>>>0>l>>>0)break U;v=J[h+8>>2];if(v>>>0>c+i>>>0|l>>>0>e+g>>>0)break U;if(c>>>0<=v>>>0)break T}J[N+68>>2]=c;J[N+64>>2]=g;hd(210749,N- -64|0);break g}c=(J[h+16>>2]+(i+(c^-1)|0)>>>0)/(i>>>0)|0;J[h+40>>2]=c;e=(J[h+12>>2]+(e+(g^-1)|0)>>>0)/(e>>>0)|0;J[h+36>>2]=e;J[h+44>>2]=P(c,e);V:{if(!J[N+192>>2])break V; -c=J[N+1216>>2];if((c|0)<=0)break V;J[h+60>>2]=c+1;c=zc(c<<2);J[h+64>>2]=c;if(!c)break g;if((J[h+60>>2]-1|0)<=0)break V;e=0;g=J[N+192>>2];while(1){f=c+(e<<2)|0;A=O[g+(e<<3)>>3]*8192;W:{if(R(A)<2147483648){i=~~A;break W}i=-2147483648}J[f>>2]=i;e=e+1|0;if((e|0)<(J[h+60>>2]-1|0))continue;break}}c=J[h+352>>2];if(!(K[h+56|0]|(c|0)!=-1)){hd(210786,0);break g}if(d>>>0>=16){hd(210828,0);break g}if(j>>>0>=16){hd(210852,0);break g}e=J[h+72>>2];if(e-13>>>0<=4294967284){J[N+80>>2]=1<>2];if(d-13>>>0<=4294967284){J[N+96>>2]=1<>>0>=13){hd(210936,0);break g}v=J[h+60>>2];if(v>>>0>=16385){hd(210963,0);break g}if(!K[h+69|0]){hd(210980,0);break g}if(K[h+348|0]>=9){hd(211019,0);break g}X:{if((c|0)==-1)break X;e=J[h+356>>2];if(e>>>0>=c>>>0)break X;J[N+116>>2]=e;J[N+112>>2]=c;hd(211049,N+112|0);v=J[h+60>>2]}if(v>>>0<2)break f;c=v-2|0;e=0;Y:{while(1){if((c|0)==(e|0))break Y;d=J[h+64>>2];g=J[d+(e<<2)>>2];e=e+1|0;if((g|0)>2])continue; -break}hd(211108,0);break g}c=J[h+352>>2];if((c|0)==-1)break f;d=v-2|0;A=+(c>>>0)/+M[h+356>>2];c=J[h+64>>2];e=0;while(1){if(!(A<+J[c+(e<<2)>>2]*1.220703125E-4)){i=(d|0)==(e|0);e=e+1|0;if(!i)continue;break f}break}hd(211162,0)}c=J[N+192>>2];if(c)qc(c);c=J[h+52>>2];if(c){e=J[h- -64>>2];if(e){qc(e);c=J[h+52>>2]}qc(c)}e=h;h=0;break e}e=J[N+192>>2];if(!e)break d}qc(e)}if(h)break c}hd(208944,0);e=-1;break b}Z:{t=zc(36);if(t){J[t+8>>2]=h;J[t+4>>2]=b;J[t>>2]=a;J[t+28>>2]=0;J[t+32>>2]=0;J[t+12>>2]=0;J[t+16>> -2]=0;a=E9();J[t+16>>2]=a;if(a)break Z;PN(t)}a=J[h+52>>2];if(a){b=J[h- -64>>2];if(b){qc(b);a=J[h+52>>2]}qc(a)}qc(h);e=-1;break b}J[t+20>>2]=0;J[t+24>>2]=0;e=J[t+8>>2];o=J[J[t+4>>2]+60>>2];a=Mk(65359);J[t+28>>2]=a;_:{if(!a)break _;d=211228;$:{if(Lk(J[t+4>>2],J[t+16>>2],a))break $;Ci(J[t+28>>2]);J[t+28>>2]=0;a=Mk(65361);J[t+28>>2]=a;if(!a)break _;J[a+12>>2]=0;J[a+24>>2]=J[e+4>>2];J[a+28>>2]=J[e+8>>2];J[a+16>>2]=J[e+12>>2];J[a+20>>2]=J[e+16>>2];J[a+40>>2]=J[e+20>>2];J[a+44>>2]=J[e+24>>2];J[a+32>>2]=J[e+ -28>>2];J[a+36>>2]=J[e+32>>2];b=J[e+48>>2];J[a+48>>2]=b;c=zc(b<<2);J[a+52>>2]=c;aa:{ba:{ca:{da:{if(c){d=J[e+48>>2];if((d|0)>0){i=J[e+52>>2];h=0;while(1){a=c+(h<<2)|0;b=i+P(h,412)|0;H[a|0]=K[b+4|0];H[a+1|0]=K[b+5|0];H[a+2|0]=K[b|0];H[a+3|0]=K[b+1|0];h=h+1|0;if((d|0)!=(h|0))continue;break}}d=211286;if(Lk(J[t+4>>2],J[t+16>>2],J[t+28>>2]))break $;Ci(J[t+28>>2]);J[t+28>>2]=0;a=Mk(65380);J[t+28>>2]=a;if(!a)break _;J[N+16>>2]=198036;a=N+192|0;Vf(a,211311,N+16|0);c=Qc(a);b=J[t+28>>2];J[b+12>>2]=1;J[b+16>> -2]=c;a=kq(a);J[b+20>>2]=a;if(!a)break da;d=211338;if(Lk(J[t+4>>2],J[t+16>>2],J[t+28>>2]))break $;Ci(J[t+28>>2]);J[t+28>>2]=0;if(J[e+48>>2]){b=N+1256|0;c=0;while(1){a=MN(K[e+81|0],K[e+69|0]-1|0);d=1<>>0>2)break ea}a=K[e+69|0];i=P(a,3)-2|0;ga:{if(!i){l=J[e+52>>2];break ga}d=eE(K[e+81|0],0,J[N+1232>>2]);h=8192;if(!K[e+56|0]){a=8192<>31<<13|a>>>19;g=a<<13;a=J[N+1252>>2];h=Ezb(g,l,a,a>>31); -if((h|0)<0)break da}g=P(c,412);l=K[(g+J[e+52>>2]|0)+4|0];j=vm(h);a=vm(h);d=d+l|0;l=j-13|0;if((d|0)<(l|0))break da;d=d-l|0;if(d>>>0>31)break a;l=J[e+52>>2];J[(g+l|0)+12>>2]=((a|0)>11?h>>>a-11|0:h<<11-a)&2047|d<<11&63488;d=1;v=b;if((i|0)==1)break ga;while(1){j=eE(K[e+81|0],((d-1>>>0)/3|0)+1|0,J[v+16>>2]);h=8192;if(!K[e+56|0]){a=8192<>31<<13|a>>>19;f=a<<13;a=J[v+36>>2];h=Ezb(f,l,a,a>>31);if((h|0)<0)break da}l=K[(g+J[e+52>>2]|0)+4|0];f=vm(h);a=vm(h);l=j+l|0;j=f-13|0;if((l|0)<(j|0))break da;j= -l-j|0;if(j>>>0>=32)break a;l=J[e+52>>2];J[((g+l|0)+(d<<2)|0)+12>>2]=((a|0)>11?h>>>a-11|0:h<<11-a)&2047|j<<11&63488;v=v+40|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}J[(P(c,412)+l|0)+8>>2]=i;c=c+1|0;if(c>>>0>2])continue;break}}b=Mk(65362);J[t+28>>2]=b;if(!b)break _;d=K[e+68|0];a=d|K[e+57|0];H[b+24|0]=a;H[b+12|0]=a;c=K[e+69|0];J[b+32>>2]=c;a=c+255|0;H[b+25|0]=a;H[b+13|0]=K[e+58|0];J[b+16>>2]=J[e+60>>2];H[b+26|0]=K[e+72|0]-2;H[b+27|0]=K[e+76|0]-2;H[b+28|0]=K[e+80|0];H[b+29|0]=K[e+81|0];H[b+20| -0]=K[e+59|0]!=0;ha:{if(!(d&1)|(a|0)==(a&255))break ha;h=0;if((c|0)!=1){l=c&254;d=b+36|0;i=e+84|0;g=e+216|0;a=0;while(1){j=d+(h<<1)|0;v=h<<2;H[j|0]=J[v+i>>2];H[j+1|0]=J[g+v>>2];j=h|1;v=d+(j<<1)|0;j=j<<2;H[v|0]=J[j+i>>2];H[v+1|0]=J[g+j>>2];h=h+2|0;a=a+2|0;if((l|0)!=(a|0))continue;break}}if(!(c&1))break ha;a=b+(h<<1)|0;c=e+(h<<2)|0;H[a+36|0]=J[c+84>>2];H[a+37|0]=J[c+216>>2]}d=211363;if(Lk(J[t+4>>2],J[t+16>>2],b))break $;Ci(J[t+28>>2]);J[t+28>>2]=0;a=Mk(65372);J[t+28>>2]=a;if(!a)break _;d=1;H[a+12|0]= -!K[e+81|0]<<1;b=J[e+52>>2];J[a+16>>2]=J[b+8>>2];c=K[e+348|0];J[a+20>>2]=b+12;H[a+24|0]=c;if(Lk(J[t+4>>2],J[t+16>>2],a))break _;J[a+20>>2]=0;Ci(J[t+28>>2]);J[t+28>>2]=0;if(M[e+48>>2]>=2)while(1){a=Mk(65373);J[t+28>>2]=a;if(!a)break _;J[a+12>>2]=d;H[a+16|0]=!K[e+81|0]<<1;b=J[e+52>>2]+P(d,412)|0;J[a+20>>2]=J[b+8>>2];c=K[e+348|0];J[a+24>>2]=b+12;H[a+28|0]=c;if(Lk(J[t+4>>2],J[t+16>>2],a))break _;J[a+24>>2]=0;Ci(J[t+28>>2]);J[t+28>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}b=J[J[t+4>>2]+60>>2]-o| -0;J[t+20>>2]=b+J[t+20>>2];a=J[J[t+8>>2]+352>>2];b=(a-b|0)-2|0;J[t+24>>2]=(a|0)==-1?-1:a>>>0>=b>>>0?b:0;v=J[t+8>>2];if(J[v+44>>2]>0)while(1){g=J[t+8>>2];S=J[t>>2];a=0;s=bc-4E3|0;bc=s;i=zc(56);ia:{if(i){J[i+40>>2]=0;J[i+48>>2]=0;b=J[g+48>>2];J[i+32>>2]=0;J[i+44>>2]=b;J[i>>2]=ba;c=J[g+36>>2];b=(ba>>>0)/(c>>>0)|0;d=J[g+20>>2];e=J[g+28>>2];c=ba-P(b,c)|0;h=d+P(e,c)|0;l=J[g+4>>2];J[i+4>>2]=h>>>0>l>>>0?h:l;l=J[g+24>>2];h=J[g+32>>2];j=l+P(h,b)|0;o=J[g+8>>2];J[i+8>>2]=j>>>0>o>>>0?j:o;c=d+P(e,c+1|0)|0;e=J[g+ -12>>2];J[i+12>>2]=c>>>0>>0?c:e;b=l+P(h,b+1|0)|0;c=J[g+16>>2];J[i+16>>2]=b>>>0>>0?b:c;H[i+36|0]=K[g+56|0];H[i+20|0]=K[g+57|0];H[i+21|0]=K[g+58|0];H[i+28|0]=K[g+59|0];b=J[g+60>>2];J[i+24>>2]=b;b=zc(b<<2);J[i+40>>2]=b;ja:{if(!b)break ja;if(J[i+24>>2])while(1){J[b+(a<<2)>>2]=0;a=a+1|0;if(a>>>0>2])continue;break}c=zc(P(J[g+48>>2],716));J[i+48>>2]=c;if(!c)break ja;ka:{la:{ma:{e=J[g+48>>2];na:{if(!e){d=0;break na}a=c;if(e>>>0>=4){d=e&-4;b=0;while(1){J[a+20>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+ +(j|0)==15))H[h+68|0]=K[h+68|0]|1;e=J[h+28>>2];if(!e){J[N+32>>2]=0;rd(210716,N+32|0);break g}i=J[h+32>>2];if(!i){J[N+48>>2]=0;rd(210740,N+48|0);break g}c=J[h+24>>2];T:{g=J[h+20>>2];l=J[h+4>>2];U:{if(g>>>0>l>>>0)break U;v=J[h+8>>2];if(v>>>0>c+i>>>0|l>>>0>e+g>>>0)break U;if(c>>>0<=v>>>0)break T}J[N+68>>2]=c;J[N+64>>2]=g;rd(210765,N- -64|0);break g}c=(J[h+16>>2]+(i+(c^-1)|0)>>>0)/(i>>>0)|0;J[h+40>>2]=c;e=(J[h+12>>2]+(e+(g^-1)|0)>>>0)/(e>>>0)|0;J[h+36>>2]=e;J[h+44>>2]=P(c,e);V:{if(!J[N+192>>2])break V; +c=J[N+1216>>2];if((c|0)<=0)break V;J[h+60>>2]=c+1;c=Dc(c<<2);J[h+64>>2]=c;if(!c)break g;if((J[h+60>>2]-1|0)<=0)break V;e=0;g=J[N+192>>2];while(1){f=c+(e<<2)|0;A=O[g+(e<<3)>>3]*8192;W:{if(R(A)<2147483648){i=~~A;break W}i=-2147483648}J[f>>2]=i;e=e+1|0;if((e|0)<(J[h+60>>2]-1|0))continue;break}}c=J[h+352>>2];if(!(K[h+56|0]|(c|0)!=-1)){rd(210802,0);break g}if(d>>>0>=16){rd(210844,0);break g}if(j>>>0>=16){rd(210868,0);break g}e=J[h+72>>2];if(e-13>>>0<=4294967284){J[N+80>>2]=1<>2];if(d-13>>>0<=4294967284){J[N+96>>2]=1<>>0>=13){rd(210952,0);break g}v=J[h+60>>2];if(v>>>0>=16385){rd(210979,0);break g}if(!K[h+69|0]){rd(210996,0);break g}if(K[h+348|0]>=9){rd(211035,0);break g}X:{if((c|0)==-1)break X;e=J[h+356>>2];if(e>>>0>=c>>>0)break X;J[N+116>>2]=e;J[N+112>>2]=c;rd(211065,N+112|0);v=J[h+60>>2]}if(v>>>0<2)break f;c=v-2|0;e=0;Y:{while(1){if((c|0)==(e|0))break Y;d=J[h+64>>2];g=J[d+(e<<2)>>2];e=e+1|0;if((g|0)>2])continue; +break}rd(211124,0);break g}c=J[h+352>>2];if((c|0)==-1)break f;d=v-2|0;A=+(c>>>0)/+M[h+356>>2];c=J[h+64>>2];e=0;while(1){if(!(A<+J[c+(e<<2)>>2]*1.220703125E-4)){i=(d|0)==(e|0);e=e+1|0;if(!i)continue;break f}break}rd(211178,0)}c=J[N+192>>2];if(c)uc(c);c=J[h+52>>2];if(c){e=J[h- -64>>2];if(e){uc(e);c=J[h+52>>2]}uc(c)}e=h;h=0;break e}e=J[N+192>>2];if(!e)break d}uc(e)}if(h)break c}rd(208960,0);e=-1;break b}Z:{t=Dc(36);if(t){J[t+8>>2]=h;J[t+4>>2]=b;J[t>>2]=a;J[t+28>>2]=0;J[t+32>>2]=0;J[t+12>>2]=0;J[t+16>> +2]=0;a=Gba();J[t+16>>2]=a;if(a)break Z;hP(t)}a=J[h+52>>2];if(a){b=J[h- -64>>2];if(b){uc(b);a=J[h+52>>2]}uc(a)}uc(h);e=-1;break b}J[t+20>>2]=0;J[t+24>>2]=0;e=J[t+8>>2];o=J[J[t+4>>2]+60>>2];a=jl(65359);J[t+28>>2]=a;_:{if(!a)break _;d=211244;$:{if(il(J[t+4>>2],J[t+16>>2],a))break $;Si(J[t+28>>2]);J[t+28>>2]=0;a=jl(65361);J[t+28>>2]=a;if(!a)break _;J[a+12>>2]=0;J[a+24>>2]=J[e+4>>2];J[a+28>>2]=J[e+8>>2];J[a+16>>2]=J[e+12>>2];J[a+20>>2]=J[e+16>>2];J[a+40>>2]=J[e+20>>2];J[a+44>>2]=J[e+24>>2];J[a+32>>2]= +J[e+28>>2];J[a+36>>2]=J[e+32>>2];b=J[e+48>>2];J[a+48>>2]=b;c=Dc(b<<2);J[a+52>>2]=c;aa:{ba:{ca:{da:{if(c){d=J[e+48>>2];if((d|0)>0){i=J[e+52>>2];h=0;while(1){a=c+(h<<2)|0;b=i+P(h,412)|0;H[a|0]=K[b+4|0];H[a+1|0]=K[b+5|0];H[a+2|0]=K[b|0];H[a+3|0]=K[b+1|0];h=h+1|0;if((d|0)!=(h|0))continue;break}}d=211302;if(il(J[t+4>>2],J[t+16>>2],J[t+28>>2]))break $;Si(J[t+28>>2]);J[t+28>>2]=0;a=jl(65380);J[t+28>>2]=a;if(!a)break _;J[N+16>>2]=198052;a=N+192|0;cg(a,211327,N+16|0);c=Yc(a);b=J[t+28>>2];J[b+12>>2]=1;J[b+ +16>>2]=c;a=br(a);J[b+20>>2]=a;if(!a)break da;d=211354;if(il(J[t+4>>2],J[t+16>>2],J[t+28>>2]))break $;Si(J[t+28>>2]);J[t+28>>2]=0;if(J[e+48>>2]){b=N+1256|0;c=0;while(1){a=eP(K[e+81|0],K[e+69|0]-1|0);d=1<>>0>2)break ea}a=K[e+69|0];i=P(a,3)-2|0;ga:{if(!i){l=J[e+52>>2];break ga}d=iF(K[e+81|0],0,J[N+1232>>2]);h=8192;if(!K[e+56|0]){a=8192<>31<<13|a>>>19;g=a<<13;a=J[N+1252>>2];h=wEb(g,l,a, +a>>31);if((h|0)<0)break da}g=P(c,412);l=K[(g+J[e+52>>2]|0)+4|0];j=mn(h);a=mn(h);d=d+l|0;l=j-13|0;if((d|0)<(l|0))break da;d=d-l|0;if(d>>>0>31)break a;l=J[e+52>>2];J[(g+l|0)+12>>2]=((a|0)>11?h>>>a-11|0:h<<11-a)&2047|d<<11&63488;d=1;v=b;if((i|0)==1)break ga;while(1){j=iF(K[e+81|0],((d-1>>>0)/3|0)+1|0,J[v+16>>2]);h=8192;if(!K[e+56|0]){a=8192<>31<<13|a>>>19;f=a<<13;a=J[v+36>>2];h=wEb(f,l,a,a>>31);if((h|0)<0)break da}l=K[(g+J[e+52>>2]|0)+4|0];f=mn(h);a=mn(h);l=j+l|0;j=f-13|0;if((l|0)<(j|0))break da; +j=l-j|0;if(j>>>0>=32)break a;l=J[e+52>>2];J[((g+l|0)+(d<<2)|0)+12>>2]=((a|0)>11?h>>>a-11|0:h<<11-a)&2047|j<<11&63488;v=v+40|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}J[(P(c,412)+l|0)+8>>2]=i;c=c+1|0;if(c>>>0>2])continue;break}}b=jl(65362);J[t+28>>2]=b;if(!b)break _;d=K[e+68|0];a=d|K[e+57|0];H[b+24|0]=a;H[b+12|0]=a;c=K[e+69|0];J[b+32>>2]=c;a=c+255|0;H[b+25|0]=a;H[b+13|0]=K[e+58|0];J[b+16>>2]=J[e+60>>2];H[b+26|0]=K[e+72|0]-2;H[b+27|0]=K[e+76|0]-2;H[b+28|0]=K[e+80|0];H[b+29|0]=K[e+81|0];H[b+ +20|0]=K[e+59|0]!=0;ha:{if(!(d&1)|(a|0)==(a&255))break ha;h=0;if((c|0)!=1){l=c&254;d=b+36|0;i=e+84|0;g=e+216|0;a=0;while(1){j=d+(h<<1)|0;v=h<<2;H[j|0]=J[v+i>>2];H[j+1|0]=J[g+v>>2];j=h|1;v=d+(j<<1)|0;j=j<<2;H[v|0]=J[j+i>>2];H[v+1|0]=J[g+j>>2];h=h+2|0;a=a+2|0;if((l|0)!=(a|0))continue;break}}if(!(c&1))break ha;a=b+(h<<1)|0;c=e+(h<<2)|0;H[a+36|0]=J[c+84>>2];H[a+37|0]=J[c+216>>2]}d=211379;if(il(J[t+4>>2],J[t+16>>2],b))break $;Si(J[t+28>>2]);J[t+28>>2]=0;a=jl(65372);J[t+28>>2]=a;if(!a)break _;d=1;H[a+12| +0]=!K[e+81|0]<<1;b=J[e+52>>2];J[a+16>>2]=J[b+8>>2];c=K[e+348|0];J[a+20>>2]=b+12;H[a+24|0]=c;if(il(J[t+4>>2],J[t+16>>2],a))break _;J[a+20>>2]=0;Si(J[t+28>>2]);J[t+28>>2]=0;if(M[e+48>>2]>=2)while(1){a=jl(65373);J[t+28>>2]=a;if(!a)break _;J[a+12>>2]=d;H[a+16|0]=!K[e+81|0]<<1;b=J[e+52>>2]+P(d,412)|0;J[a+20>>2]=J[b+8>>2];c=K[e+348|0];J[a+24>>2]=b+12;H[a+28|0]=c;if(il(J[t+4>>2],J[t+16>>2],a))break _;J[a+24>>2]=0;Si(J[t+28>>2]);J[t+28>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}b=J[J[t+4>>2]+60>>2]- +o|0;J[t+20>>2]=b+J[t+20>>2];a=J[J[t+8>>2]+352>>2];b=(a-b|0)-2|0;J[t+24>>2]=(a|0)==-1?-1:a>>>0>=b>>>0?b:0;v=J[t+8>>2];if(J[v+44>>2]>0)while(1){g=J[t+8>>2];S=J[t>>2];a=0;s=fc-4E3|0;fc=s;i=Dc(56);ia:{if(i){J[i+40>>2]=0;J[i+48>>2]=0;b=J[g+48>>2];J[i+32>>2]=0;J[i+44>>2]=b;J[i>>2]=ba;c=J[g+36>>2];b=(ba>>>0)/(c>>>0)|0;d=J[g+20>>2];e=J[g+28>>2];c=ba-P(b,c)|0;h=d+P(e,c)|0;l=J[g+4>>2];J[i+4>>2]=h>>>0>l>>>0?h:l;l=J[g+24>>2];h=J[g+32>>2];j=l+P(h,b)|0;o=J[g+8>>2];J[i+8>>2]=j>>>0>o>>>0?j:o;c=d+P(e,c+1|0)|0;e=J[g+ +12>>2];J[i+12>>2]=c>>>0>>0?c:e;b=l+P(h,b+1|0)|0;c=J[g+16>>2];J[i+16>>2]=b>>>0>>0?b:c;H[i+36|0]=K[g+56|0];H[i+20|0]=K[g+57|0];H[i+21|0]=K[g+58|0];H[i+28|0]=K[g+59|0];b=J[g+60>>2];J[i+24>>2]=b;b=Dc(b<<2);J[i+40>>2]=b;ja:{if(!b)break ja;if(J[i+24>>2])while(1){J[b+(a<<2)>>2]=0;a=a+1|0;if(a>>>0>2])continue;break}c=Dc(P(J[g+48>>2],716));J[i+48>>2]=c;if(!c)break ja;ka:{la:{ma:{e=J[g+48>>2];na:{if(!e){d=0;break na}a=c;if(e>>>0>=4){d=e&-4;b=0;while(1){J[a+20>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+ 736>>2]=0;J[a+1452>>2]=0;J[a+720>>2]=0;J[a+724>>2]=0;J[a+2168>>2]=0;h=a+1436|0;J[h>>2]=0;J[h+4>>2]=0;h=a+2152|0;J[h>>2]=0;J[h+4>>2]=0;a=a+2864|0;b=b+4|0;if((d|0)!=(b|0))continue;break}}d=e&3;if(d){b=0;while(1){J[a+20>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;a=a+716|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}if(!e){d=0;break na}w=0;while(1){J[c+20>>2]=0;J[c+712>>2]=i;J[c+4>>2]=0;J[c+8>>2]=0;l=(c-J[i+48>>2]|0)/716|0;a=J[g+52>>2]+P(l,412)|0;b=K[a|0];j=b-1|0;e=(j+J[i+4>>2]>>>0)/(b>>>0)|0;d=K[a+1|0];o=d-1|0;h=(o+ -J[i+8>>2]>>>0)/(d>>>0)|0;j=(j+J[i+12>>2]>>>0)/(b>>>0)|0;d=(o+J[i+16>>2]>>>0)/(d>>>0)|0;b=Io(e,h,j,d);J[c+8>>2]=b;if(!b)break la;f=l;l=K[a|0];a=K[a+1|0];if(hk(S,f,e-(((l+J[g+4>>2]|0)-1>>>0)/(l>>>0)|0)|0,h-(((a+J[g+8>>2]|0)-1>>>0)/(a>>>0)|0)|0,j-e|0,d-h|0,b))break la;J[c+24>>2]=0;b=K[g+81|0];J[c+12>>2]=b;a=K[g+69|0];J[c>>2]=a;J[c+16>>2]=P(a,3)-2;b=MN(b,a-1|0);J[c+20>>2]=b;if(!b)break la;a=0;if(J[c>>2])while(1){e=a<<2;d=e+c|0;e=e+g|0;J[d+28>>2]=J[e+84>>2];J[d+160>>2]=J[e+216>>2];a=a+1|0;if(a>>>0> -2])continue;break}J[c+292>>2]=J[g+72>>2];J[c+296>>2]=J[g+76>>2];J[c+304>>2]=K[g+80|0];J[c+300>>2]=K[g+68|0];a=J[c+16>>2];J[c+308>>2]=a;if((a|0)>=101)break ma;J[c+312>>2]=0;a=J[c+8>>2];LN(b,J[a+4>>2],J[a+8>>2],J[a+12>>2],J[a+16>>2],s);e=zc(J[c>>2]<<6);J[c+4>>2]=e;if(!e)break ka;l=J[c>>2];if(l){a=e;if(l>>>0>=8){d=l&-8;b=0;while(1){J[a+60>>2]=c;J[a+56>>2]=0;J[a+508>>2]=c;J[a+504>>2]=0;J[a+444>>2]=c;J[a+440>>2]=0;J[a+380>>2]=c;J[a+376>>2]=0;J[a+316>>2]=c;J[a+312>>2]=0;J[a+252>>2]=c;J[a+248>>2]=0;J[a+ +J[i+8>>2]>>>0)/(d>>>0)|0;j=(j+J[i+12>>2]>>>0)/(b>>>0)|0;d=(o+J[i+16>>2]>>>0)/(d>>>0)|0;b=yp(e,h,j,d);J[c+8>>2]=b;if(!b)break la;f=l;l=K[a|0];a=K[a+1|0];if(Gk(S,f,e-(((l+J[g+4>>2]|0)-1>>>0)/(l>>>0)|0)|0,h-(((a+J[g+8>>2]|0)-1>>>0)/(a>>>0)|0)|0,j-e|0,d-h|0,b))break la;J[c+24>>2]=0;b=K[g+81|0];J[c+12>>2]=b;a=K[g+69|0];J[c>>2]=a;J[c+16>>2]=P(a,3)-2;b=eP(b,a-1|0);J[c+20>>2]=b;if(!b)break la;a=0;if(J[c>>2])while(1){e=a<<2;d=e+c|0;e=e+g|0;J[d+28>>2]=J[e+84>>2];J[d+160>>2]=J[e+216>>2];a=a+1|0;if(a>>>0> +2])continue;break}J[c+292>>2]=J[g+72>>2];J[c+296>>2]=J[g+76>>2];J[c+304>>2]=K[g+80|0];J[c+300>>2]=K[g+68|0];a=J[c+16>>2];J[c+308>>2]=a;if((a|0)>=101)break ma;J[c+312>>2]=0;a=J[c+8>>2];dP(b,J[a+4>>2],J[a+8>>2],J[a+12>>2],J[a+16>>2],s);e=Dc(J[c>>2]<<6);J[c+4>>2]=e;if(!e)break ka;l=J[c>>2];if(l){a=e;if(l>>>0>=8){d=l&-8;b=0;while(1){J[a+60>>2]=c;J[a+56>>2]=0;J[a+508>>2]=c;J[a+504>>2]=0;J[a+444>>2]=c;J[a+440>>2]=0;J[a+380>>2]=c;J[a+376>>2]=0;J[a+316>>2]=c;J[a+312>>2]=0;J[a+252>>2]=c;J[a+248>>2]=0;J[a+ 188>>2]=c;J[a+184>>2]=0;J[a+124>>2]=c;J[a+120>>2]=0;a=a+512|0;b=b+8|0;if((d|0)!=(b|0))continue;break}}b=0;d=l&7;if(d)while(1){J[a+60>>2]=c;J[a+56>>2]=0;a=a- -64|0;b=b+1|0;if((d|0)!=(b|0))continue;break}Q=0;while(1){j=J[c+4>>2];J[e+60>>2]=c;J[e+56>>2]=0;f=e-j>>6;a=(f^-1)+l|0;d=-1<>2];l=d+J[b+4>>2]>>a;J[e>>2]=l;o=d+J[b+8>>2]>>a;J[e+4>>2]=o;h=d+J[b+12>>2]>>a;J[e+8>>2]=h;a=d+J[b+16>>2]>>a;J[e+12>>2]=a;oa:{if(!(a>>>0>o>>>0&h>>>0>l>>>0)){J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;break oa}j=(e| -0)!=(j|0);x=j?3:1;J[e+52>>2]=x;b=g+(f<<2)|0;d=J[b+84>>2];J[e+16>>2]=d;b=J[b+216>>2];f=d-j|0;J[e+36>>2]=f;J[e+20>>2]=b;j=b-j|0;J[e+40>>2]=j;m=J[g+72>>2];J[e+44>>2]=f>>>0>m>>>0?m:f;f=J[g+76>>2];J[e+48>>2]=f>>>0>>0?f:j;if((d|0)>0){f=h;h=1<0){f=a;a=1<>>b|0;J[e+28>>2]=a;b=h-(l&((d|0)<=0?-1:-1<>>d|0;J[e+24>>2]=b;J[e+32>>2]=P(a,b);h=zc(P(x,36));J[e+56>>2]=h;pa:{if(!h)break pa;d=J[e+52>>2];if(!d)break oa;a=h;if(d>>>0>=4){l= +0)!=(j|0);x=j?3:1;J[e+52>>2]=x;b=g+(f<<2)|0;d=J[b+84>>2];J[e+16>>2]=d;b=J[b+216>>2];f=d-j|0;J[e+36>>2]=f;J[e+20>>2]=b;j=b-j|0;J[e+40>>2]=j;m=J[g+72>>2];J[e+44>>2]=f>>>0>m>>>0?m:f;f=J[g+76>>2];J[e+48>>2]=f>>>0>>0?f:j;if((d|0)>0){f=h;h=1<0){f=a;a=1<>>b|0;J[e+28>>2]=a;b=h-(l&((d|0)<=0?-1:-1<>>d|0;J[e+24>>2]=b;J[e+32>>2]=P(a,b);h=Dc(P(x,36));J[e+56>>2]=h;pa:{if(!h)break pa;d=J[e+52>>2];if(!d)break oa;a=h;if(d>>>0>=4){l= d&-4;b=0;while(1){J[a+108>>2]=0;J[a+112>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+32>>2]=e;J[a>>2]=0;J[a+4>>2]=0;J[a+140>>2]=e;J[a+104>>2]=e;J[a+68>>2]=e;a=a+144|0;b=b+4|0;if((l|0)!=(b|0))continue;break}}b=0;d=d&3;if(d)while(1){J[a+32>>2]=e;J[a>>2]=0;J[a+4>>2]=0;a=a+36|0;b=b+1|0;if((d|0)!=(b|0))continue;break}f=0;qa:{ra:{while(1){d=J[e+60>>2];J[h+32>>2]=e;J[h>>2]=0;J[h+4>>2]=0;a=J[d+4>>2];l=e-a>>6;if((a|0)!=(e|0))a=(P(l,3)+((h-J[e+56>>2]|0)/36|0)|0)-2|0;else a=0;a=P(a,40)+s|0; -if(!(J[a>>2]==J[a+8>>2]|J[a+4>>2]==J[a+12>>2])){b=Io(0,0,0,0);J[h+4>>2]=b;if(!b)break ra;Zx(b,J[d+8>>2],J[a+20>>2],J[a+24>>2],J[a+28>>2],J[a+32>>2]);b=J[h+4>>2];j=J[a>>2];J[b+4>>2]=j;o=J[(a|4)>>2];J[b+8>>2]=o;J[b+12>>2]=j+J[b+24>>2];J[b+16>>2]=o+J[b+20>>2]}b=J[a+16>>2];J[h+8>>2]=b;b=eE(K[g+81|0],l,b);J[h+20>>2]=0;J[h+12>>2]=0;J[h+16>>2]=0;J[h+28>>2]=b;J[h+24>>2]=J[a+36>>2];sa:{ta:{if(!J[h+4>>2])break ta;b=zc(P(J[e+32>>2],52));J[h>>2]=b;if(!b)break qa;l=J[e+32>>2];if(!l)break ta;a=b;if(l>>>0>=4){j= +if(!(J[a>>2]==J[a+8>>2]|J[a+4>>2]==J[a+12>>2])){b=yp(0,0,0,0);J[h+4>>2]=b;if(!b)break ra;Qy(b,J[d+8>>2],J[a+20>>2],J[a+24>>2],J[a+28>>2],J[a+32>>2]);b=J[h+4>>2];j=J[a>>2];J[b+4>>2]=j;o=J[(a|4)>>2];J[b+8>>2]=o;J[b+12>>2]=j+J[b+24>>2];J[b+16>>2]=o+J[b+20>>2]}b=J[a+16>>2];J[h+8>>2]=b;b=iF(K[g+81|0],l,b);J[h+20>>2]=0;J[h+12>>2]=0;J[h+16>>2]=0;J[h+28>>2]=b;J[h+24>>2]=J[a+36>>2];sa:{ta:{if(!J[h+4>>2])break ta;b=Dc(P(J[e+32>>2],52));J[h>>2]=b;if(!b)break qa;l=J[e+32>>2];if(!l)break ta;a=b;if(l>>>0>=4){j= l&-4;d=0;while(1){J[a+44>>2]=0;J[a+48>>2]=0;J[a+36>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+40>>2]=h;J[a+96>>2]=0;J[a+100>>2]=0;J[a+88>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+140>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+92>>2]=h;J[a+200>>2]=0;J[a+204>>2]=0;J[a+192>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+144>>2]=h;J[a+196>>2]=h;a=a+208|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}d=0;l=l&3;if(l)while(1){J[a+44>>2]=0;J[a+48>>2]=0;J[a+36>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+40>>2]=h;a=a+52| 0;d=d+1|0;if((l|0)!=(d|0))continue;break}o=0;while(1){J[b+28>>2]=0;J[b+32>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+36>>2]=0;d=J[h+32>>2];l=J[d+24>>2];a=J[h>>2];y=J[J[d+60>>2]+4>>2];J[b+40>>2]=h;j=J[d+40>>2];k=J[d+4>>2];x=J[d+20>>2];n=(b-a|0)/52|0;m=(n>>>0)/(l>>>0)|0;a=J[h+4>>2];q=J[a+4>>2];C=J[d+16>>2];C=J[d>>2]&((C|0)<=0?-1:-1<>>1|0;C=(d|0)==(y|0);u=C?u:r;l=n-P(l,m)|0;n=J[d+36>>2];y=u+(l<>>0>y>>>0?q:y;J[b>>2]=y;q=J[a+8>>2];x=k&((x|0)<=0?-1:-1<>>1|0)|0;m=q>>> -0>x>>>0?q:x;J[b+4>>2]=m;k=J[a+12>>2];l=u+(l+1<>>0>>0?k:l;J[b+8>>2]=l;a=J[a+16>>2];j=x+(1<>>0>>0?a:j;J[b+12>>2]=a;ua:{if(!(l>>>0<=y>>>0|a>>>0<=m>>>0)){j=J[d+48>>2];x=-1<>2];k=-1<>>j|0;J[b+20>>2]=a;d=l-(k&y)>>>d|0;J[b+16>>2]=d;J[b+24>>2]=P(a,d);a=uu(d,a);J[b+32>>2]=a;if(!a)break sa;a=uu(J[b+16>>2],J[b+20>>2]);J[b+36>>2]=a;if(!a)break sa;a=uu(J[b+16>>2],J[b+20>>2]);J[b+44>>2]=a;if(!a)break sa; -a=uu(J[b+16>>2],J[b+20>>2]);J[b+48>>2]=a;if(!a)break sa;d=zc(P(J[b+24>>2],60));J[b+28>>2]=d;if(!d)break sa;j=J[b+24>>2];if(!j)break ua;a=d;if(j>>>0>=4){x=j&-4;l=0;while(1){J[a+20>>2]=0;J[a+24>>2]=0;J[a+4>>2]=0;J[a+44>>2]=b;J[a+28>>2]=0;J[a+32>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a- -64>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+124>>2]=0;J[a+104>>2]=b;J[a+148>>2]=0;J[a+152>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+184>>2]=0;J[a+164>>2]=b;J[a+208>>2]=0;J[a+212>>2]=0;J[a+224>>2]=b;a=a+ +0>x>>>0?q:x;J[b+4>>2]=m;k=J[a+12>>2];l=u+(l+1<>>0>>0?k:l;J[b+8>>2]=l;a=J[a+16>>2];j=x+(1<>>0>>0?a:j;J[b+12>>2]=a;ua:{if(!(l>>>0<=y>>>0|a>>>0<=m>>>0)){j=J[d+48>>2];x=-1<>2];k=-1<>>j|0;J[b+20>>2]=a;d=l-(k&y)>>>d|0;J[b+16>>2]=d;J[b+24>>2]=P(a,d);a=jv(d,a);J[b+32>>2]=a;if(!a)break sa;a=jv(J[b+16>>2],J[b+20>>2]);J[b+36>>2]=a;if(!a)break sa;a=jv(J[b+16>>2],J[b+20>>2]);J[b+44>>2]=a;if(!a)break sa; +a=jv(J[b+16>>2],J[b+20>>2]);J[b+48>>2]=a;if(!a)break sa;d=Dc(P(J[b+24>>2],60));J[b+28>>2]=d;if(!d)break sa;j=J[b+24>>2];if(!j)break ua;a=d;if(j>>>0>=4){x=j&-4;l=0;while(1){J[a+20>>2]=0;J[a+24>>2]=0;J[a+4>>2]=0;J[a+44>>2]=b;J[a+28>>2]=0;J[a+32>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a- -64>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+124>>2]=0;J[a+104>>2]=b;J[a+148>>2]=0;J[a+152>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+184>>2]=0;J[a+164>>2]=b;J[a+208>>2]=0;J[a+212>>2]=0;J[a+224>>2]=b;a=a+ 240|0;l=l+4|0;if((x|0)!=(l|0))continue;break}}l=0;j=j&3;if(j)while(1){J[a+20>>2]=0;J[a+24>>2]=0;J[a+4>>2]=0;J[a+44>>2]=b;J[a+28>>2]=0;J[a+32>>2]=0;a=a+60|0;l=l+1|0;if((j|0)!=(l|0))continue;break}a=0;while(1){va:{n=J[b+40>>2];j=J[n+32>>2];x=J[b+16>>2];l=J[b+28>>2];J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+44>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;y=J[b>>2];m=J[j+44>>2];k=y&-1<>>0)/(x>>>0)|0;x=q-P(l,x)|0;q=k+(x<>>0>y>>>0?q:y;x=k+(x+1<>2];k=m>>>0>x>>>0?x:m;if(y>>>0>=k>>>0)break va;x=J[b+4>>2];j=J[j+48>>2];m=x&-1<>>0>x>>>0?q:x;l=m+(l+1<>2];j=j>>>0>l>>>0?l:j;if(x>>>0>=j>>>0)break va;l=Io(0,0,0,0);J[d+28>>2]=l;if(!l){a=J[d+4>>2];if(a)qc(a);a=J[d+20>>2];if(a)If(a);a=J[d+24>>2];if(a)YD(a);a=J[d+28>>2];if(a)dg(a);a=J[d+32>>2];if(!a)break sa;dg(a);break sa}Zx(l,J[n+4>>2],y,x,k,j);d=d+60|0;a=a+1|0;if(a>>>0> -2])continue;break ua}break}fa(211670,209137,2535,211709);B()}J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=a;J[b>>2]=l;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0}b=b+52|0;o=o+1|0;if(o>>>0>2])continue;break}}h=h+36|0;f=f+1|0;if(f>>>0>=M[e+52>>2])break oa;continue}break}v9(b)}a=J[h>>2];if(!a)break qa;d=J[h+32>>2];if(J[d+32>>2]){b=0;while(1){v9(a);a=a+52|0;b=b+1|0;if(b>>>0>2])continue;break}a=J[h>>2]}qc(a)}a=J[h+4>>2];if(!a)break pa;dg(a)}NN(e);break la}e=e- -64|0;l=J[c>>2];Q=Q+1|0;if(l>>> -0>Q>>>0)continue;break}}c=c+716|0;d=J[g+48>>2];w=w+1|0;if(d>>>0>w>>>0)continue;break}}b=6792;c=6792;wa:{xa:switch(K[i+28|0]-1|0){default:if(!d)break wa;a=J[i+48>>2];if(d>>>0>=8){c=d&-8;b=0;while(1){J[a+24>>2]=8192;J[a+5036>>2]=8192;J[a+4320>>2]=8192;J[a+3604>>2]=8192;J[a+2888>>2]=8192;J[a+2172>>2]=8192;J[a+1456>>2]=8192;J[a+740>>2]=8192;a=a+5728|0;b=b+8|0;if((c|0)!=(b|0))continue;break}}c=d&7;if(!c)break wa;b=0;while(1){J[a+24>>2]=8192;a=a+716|0;b=b+1|0;if((c|0)!=(b|0))continue;break}break wa;case 0:c= -12889;b=14787;break;case 1:break xa}a=J[i+48>>2];J[a+24>>2]=14188;J[a+1456>>2]=c;J[a+740>>2]=b}f=0;e=k9();a=0;ya:{if(!e)break ya;J[e+104>>2]=-1;a=J[g+48>>2];J[e+8>>2]=a;c=zc(a<<4);J[e+12>>2]=c;za:{if(!c)break za;Aa:{Ba:{d=J[e+8>>2];if((d|0)<=0)break Ba;a=c;if(d>>>0>=8){h=d&-8;b=0;while(1){J[a+4>>2]=0;J[a+116>>2]=0;J[a+100>>2]=0;J[a+84>>2]=0;J[a+68>>2]=0;J[a+52>>2]=0;J[a+36>>2]=0;J[a+20>>2]=0;a=a+128|0;b=b+8|0;if((h|0)!=(b|0))continue;break}}h=d&7;if(h){b=0;while(1){J[a+4>>2]=0;a=a+16|0;b=b+1|0;if((h| -0)!=(b|0))continue;break}}if((d|0)<=0)break Ba;l=J[i+48>>2];while(1){a=J[l>>2];J[c>>2]=a;b=zc(P(a,20));J[c+4>>2]=b;if(!b)break za;d=J[c>>2];j=(d|0)<=0;Ca:{if(j)break Ca;a=b;if(d>>>0>=8){o=d&-8;h=0;while(1){J[a+4>>2]=0;J[a+144>>2]=0;J[a+124>>2]=0;J[a+104>>2]=0;J[a+84>>2]=0;J[a- -64>>2]=0;J[a+44>>2]=0;J[a+24>>2]=0;a=a+160|0;h=h+8|0;if((o|0)!=(h|0))continue;break}}h=0;o=d&7;if(o)while(1){J[a+4>>2]=0;a=a+20|0;h=h+1|0;if((o|0)!=(h|0))continue;break}if(j)break Ca;a=J[l+4>>2];j=0;while(1){h=J[a+32>>2];J[b>> -2]=h;Da:{if(h){d=zc(h<<2);J[b+4>>2]=d;if(!d)break za;d=J[c>>2];break Da}J[b+4>>2]=0}a=a- -64|0;b=b+20|0;j=j+1|0;if((j|0)<(d|0))continue;break}}c=c+16|0;l=l+716|0;d=J[e+8>>2];f=f+1|0;if((d|0)>(f|0))continue;break}b=0;J[e+4>>2]=0;if((d|0)<=0)break Aa;o=J[g+52>>2];g=J[i+48>>2];c=J[e+12>>2];l=0;while(1){a=o+P(l,412)|0;J[c+8>>2]=K[a|0];J[c+12>>2]=K[a+1|0];a=J[c>>2];if((a|0)>0){h=J[c+4>>2];j=J[g+4>>2];d=0;while(1){J[h+8>>2]=J[j+16>>2];J[h+12>>2]=J[j+20>>2];if(J[h>>2]>0){a=J[h+4>>2];b=0;while(1){J[a>>2]= -0;a=a+4|0;b=b+1|0;if((b|0)>2])continue;break}a=J[c>>2]}J[h+16>>2]=J[j+24>>2];j=j- -64|0;h=h+20|0;d=d+1|0;if((d|0)<(a|0))continue;break}b=J[e+4>>2]}a=J[g>>2];if((a|0)>(b|0)){J[e+4>>2]=a;b=a}c=c+16|0;g=g+716|0;d=J[e+8>>2];l=l+1|0;if((d|0)>(l|0))continue;break}break Aa}b=0;J[e+4>>2]=0}a=J[i+24>>2];J[e>>2]=a;J[e+56>>2]=J[i+4>>2];J[e+60>>2]=J[i+8>>2];J[e+64>>2]=J[i+12>>2];c=J[i+16>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+68>>2]=c;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+40>>2]=0;J[e+44>>2]= -0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+96>>2]=-1;c=K[i+21|0];J[e+88>>2]=d;J[e+84>>2]=0;H[e+80|0]=c;J[e+92>>2]=a;H[e+82|0]=b;H[e+81|0]=0;H[e+101|0]=0;J[e+72>>2]=0;a=e;break ya}aE(e);a=0}J[i+32>>2]=a;if(a)break ia;break ja}fa(211621,209137,2104,211657);B()}a=J[c+4>>2];if(!a)break ka;if(J[c>>2]){b=0;while(1){NN(a);a=a- -64|0;b=b+1|0;if(b>>>0>2])continue;break}a=J[c+4>>2]}qc(a)}a=J[c+8>>2];if(a)dg(a);a=J[c+20>>2];if(!a)break ja;qc(a)}ON(i)}i=0}bc=s+4E3|0;J[t+12>>2]=i;if(!i)break da;x=i;if(J[682644]>=10){g= -0;a=bc-96|0;bc=a;o=J[t+12>>2];if(J[o+44>>2]){e=J[o+48>>2];while(1){b=J[e+8>>2];c=J[b+4>>2];d=J[b+8>>2];h=J[b+16>>2];J[a+88>>2]=J[b+12>>2];J[a+92>>2]=h;J[a+80>>2]=c;J[a+84>>2]=d;hd(210044,a+80|0);if(J[e>>2]){b=J[e+4>>2];l=0;while(1){c=J[b>>2];d=J[b+4>>2];h=J[b+12>>2];J[a+72>>2]=J[b+8>>2];J[a+76>>2]=h;J[a+64>>2]=c;J[a+68>>2]=d;hd(210096,a- -64|0);if(J[b+52>>2]){h=J[b+56>>2];j=0;while(1){c=J[h+4>>2];Ea:{if(!c)break Ea;d=J[c+4>>2];i=J[c+8>>2];f=J[c+16>>2];J[a+56>>2]=J[c+12>>2];J[a+60>>2]=f;J[a+48>>2]= -d;J[a+52>>2]=i;hd(210122,a+48|0);if(!J[b+32>>2])break Ea;c=J[h>>2];w=0;while(1){d=J[c+8>>2];i=J[c>>2];f=J[c+12>>2];s=J[c+4>>2];J[a+36>>2]=f-s;J[a+32>>2]=d-i;J[a+28>>2]=f;J[a+24>>2]=d;J[a+20>>2]=s;J[a+16>>2]=i;hd(210182,a+16|0);d=J[c+28>>2];Fa:{if(!d)break Fa;Q=0;if(!J[c+24>>2])break Fa;while(1){i=J[d+28>>2];f=J[i+4>>2];s=J[i+8>>2];m=J[i+16>>2];J[a+8>>2]=J[i+12>>2];J[a+12>>2]=m;J[a>>2]=f;J[a+4>>2]=s;hd(210221,a);d=d+60|0;Q=Q+1|0;if(Q>>>0>2])continue;break}}c=c+52|0;w=w+1|0;if(w>>>0> -2])continue;break}}h=h+36|0;j=j+1|0;if(j>>>0>2])continue;break}}b=b- -64|0;l=l+1|0;if(l>>>0>2])continue;break}}e=e+716|0;g=g+1|0;if(g>>>0>2])continue;break}}bc=a+96|0}i=J[x+48>>2];j=J[x+44>>2];if((j|0)>0){c=J[v+52>>2];g=0;l=i;while(1){a=c+P(g,412)|0;Ga:{if(K[a+5|0])break Ga;b=J[l+8>>2];e=J[b+20>>2];if((e|0)<=0)break Ga;h=J[b+24>>2];if((h|0)<=0)break Ga;d=-1<0){j=J[J[b+28>>2]+(a<<2)>>2];e=0;while(1){h=j+(e<<2)|0;J[h>>2]=d+J[h>>2];e=e+1|0;h=J[b+ -24>>2];if((e|0)<(h|0))continue;break}e=J[b+20>>2]}a=a+1|0;if((e|0)>(a|0))continue;break}j=J[x+44>>2]}l=l+716|0;g=g+1|0;if((j|0)>(g|0))continue;break}}if(!(K[x+36|0]|!j)){a=P(j,716)+i|0;while(1){kE(J[i+8>>2],13);i=i+716|0;if((a|0)!=(i|0))continue;break}}Ha:{Ia:switch(K[x+28|0]-1|0){case 1:if(J[J[t>>2]+16>>2]!=3)break ca;a=J[x+48>>2];b=J[a+8>>2];c=J[a+1440>>2];d=0;Ja:{Ka:{g=J[b+20>>2];e=J[a+724>>2];if((g|0)!=J[e+20>>2])break Ka;a=J[b+24>>2];if((a|0)!=J[e+24>>2]|(g|0)!=J[c+20>>2]|(a|0)!=J[c+24>>2])break Ka; -if(!((g|0)<=0|(a|0)<=0)){j=J[c+28>>2];o=J[e+28>>2];f=J[b+28>>2];i=a-1|0;s=a&1;while(1){b=d<<2;c=J[b+j>>2];e=J[b+o>>2];h=J[b+f>>2];if(s){w=J[c>>2];l=J[h>>2];b=J[e>>2];J[h>>2]=w+(l+(b<<1)|0)>>2;J[e>>2]=w-b;J[c>>2]=l-b;c=c+4|0;e=e+4|0;h=h+4|0;b=i}else b=a;if((a|0)!=1)while(1){m=J[c>>2];w=J[h>>2];l=J[e>>2];J[h>>2]=m+(w+(l<<1)|0)>>2;J[e>>2]=m-l;J[c>>2]=w-l;m=J[c+4>>2];w=J[h+4>>2];l=J[e+4>>2];J[h+4>>2]=m+(w+(l<<1)|0)>>2;J[e+4>>2]=m-l;J[c+4>>2]=w-l;c=c+8|0;e=e+8|0;h=h+8|0;l=(b|0)>2;b=b-2|0;if(l)continue; -break}d=d+1|0;if((g|0)!=(d|0))continue;break}}break Ja}fa(197707,198563,102,211887);B()}break Ha;case 0:break Ia;default:break Ha}if(J[J[t>>2]+16>>2]!=3)break ba;c=J[x+48>>2];a=J[c+8>>2];b=J[c+1440>>2];d=0;La:{Ma:{f=J[a+20>>2];c=J[c+724>>2];if(!((f|0)!=J[c+20>>2]|(f|0)!=J[b+20>>2])){i=J[a+24>>2];if((i|0)!=J[c+24>>2]|(i|0)!=J[b+24>>2])break Ma;if(!((f|0)<=0|(i|0)<=0)){s=J[b+28>>2];w=J[c+28>>2];m=J[a+28>>2];while(1){a=d<<2;c=J[a+s>>2];e=J[a+w>>2];h=J[a+m>>2];b=i;while(1){a=J[c>>2];g=a>>31;y=g;k=Dzb(a, -g,933,0);S=fc;g=J[e>>2];l=g>>31;n=Dzb(g,l,4808,0);q=fc;j=J[h>>2];o=j>>31;C=Dzb(j,o,2449,0);J[h>>2]=(((q&8191)<<19|n>>>13)+((fc&8191)<<19|C>>>13)|0)+((S&8191)<<19|k>>>13);k=Dzb(g,l,-2713,8191);S=fc;o=Dzb(j,o,-1382,8191);J[e>>2]=(((fc&8191)<<19|o>>>13)+(a>>1)|0)+((S&8191)<<19|k>>>13);a=Dzb(a,y,-666,8191);o=fc;g=Dzb(g,l,-3429,8191);J[c>>2]=(((fc&8191)<<19|g>>>13)+(j>>1)|0)+((o&8191)<<19|a>>>13);c=c+4|0;e=e+4|0;h=h+4|0;a=(b|0)>1;b=b-1|0;if(a)continue;break}d=d+1|0;if((f|0)!=(d|0))continue;break}}break La}fa(199877, -198563,188,211904);B()}fa(200705,198563,190,211904);B()}}e=0;if(J[J[t>>2]+16>>2]>0)while(1){b=J[x+48>>2]+P(e,716)|0;a=J[b+20>>2];b=J[b+8>>2];c=J[a>>2];if((c|0)>0){i=J[b+4>>2];l=J[b+12>>2]-i|0;g=J[b+8>>2];j=J[b+16>>2]-g|0;d=J[b+28>>2];h=J[d>>2];o9(a,h,i,g,l,j,J[b+20>>2]>=2?J[d+4>>2]-h>>2:0,c-1|0)}e=e+1|0;if((e|0)>2]+16>>2])continue;break}a=J[x+44>>2];if(a){g=J[x+48>>2];m=g+P(a,716)|0;Q=0;while(1){wc(g+312|0,0,400);i=0;e=J[g>>2];if((e|0)>0){w=J[g+4>>2];f=0;c=0;while(1){b=J[w+56>>2];Na:{if(!b){c= -(f?3:1)+c|0;break Na}a=J[w+52>>2];if(!a)break Na;y=P(a,36)+b|0;while(1){a=J[b+4>>2];if(a){e=0;k=J[a+20>>2];Oa:{if(!k)break Oa;d=J[a+24>>2];if(!d)break Oa;S=d&-2;n=d&1;q=J[a+28>>2];l=0;while(1){a=J[q+(l<<2)>>2];h=0;j=0;if((d|0)!=1)while(1){s=h<<2;C=J[a+(s|4)>>2];o=C>>31;u=J[a+s>>2];s=u>>31;o=(o^C)-o|0;s=(s^u)-s|0;e=(e|0)<(s|0)?s:e;e=(e|0)<(o|0)?o:e;h=h+2|0;j=j+2|0;if((S|0)!=(j|0))continue;break}if(n){h=J[a+(h<<2)>>2];a=h>>31;a=(a^h)-a|0;e=(a|0)>(e|0)?a:e}l=l+1|0;if((k|0)!=(l|0))continue;break}}h=K[x+ -36|0];j=vm(e);o=K[(J[v+52>>2]+P(Q,412)|0)+4|0];d=J[b+28>>2];Pa:{if(K[x+36|0]){e=8192;J[b+16>>2]=8192;break Pa}a=8192<>31<<13|a>>>19;e=a<<13;a=J[b+24>>2];e=Ezb(e,l,a,a>>31);J[b+16>>2]=e;if((e|0)<0)break da}l=vm(e);a=vm(e);d=d+o|0;l=l-13|0;if((d|0)<(l|0))break da;l=d-l|0;if(l>>>0>=32)break a;s=(((h?1:-12)+j|0)-d|0)+1|0;k=(s|0)>(i|0);d=((a|0)>11?e>>>a-11|0:e<<11-a)&2047;a=l<<11&63488;d=d|a;J[b+20>>2]=d;J[b+12>>2]=(K[v+348|0]+(a>>>11|0)|0)-1;Qa:{if(K[x+36|0])break Qa;j=J[b+4>>2];if(!j)break Qa; -a=J[b+16>>2];if((a|0)==8192)break Qa;e=J[j+20>>2];if((e|0)<=0)break Qa;h=J[j+24>>2];if((h|0)<=0)break Qa;d=a;o=a>>31;a=0;while(1){if((h|0)>0){S=J[J[j+28>>2]+(a<<2)>>2];e=0;while(1){n=S+(e<<2)|0;h=J[n>>2];Ra:{if((h|0)<0){h=0-h|0;l=h>>>19|0;h=0-Ezb(h<<13,l,d,o)|0;break Ra}h=Ezb(h<<13,h>>>19|0,d,o)}J[n>>2]=h;e=e+1|0;h=J[j+24>>2];if((e|0)<(h|0))continue;break}e=J[j+20>>2]}a=a+1|0;if((e|0)>(a|0))continue;break}d=J[b+20>>2]}J[((c<<2)+g|0)+312>>2]=d;i=k?s:i}c=c+1|0;b=b+36|0;if((y|0)!=(b|0))continue;break}e= -J[g>>2]}w=w- -64|0;f=f+1|0;if((e|0)>(f|0))continue;break}}d=J[g+8>>2];Sa:{if(!K[x+36|0]){b=0;a=J[d+20>>2];Ta:{Ua:{if((a|0)>=2){b=J[d+28>>2];b=J[b+4>>2]-J[b>>2]>>2;break Ua}if((a|0)!=1)break Ta}if(J[d+24>>2]<=0)break Ta;h=J[J[d+28>>2]>>2];j=b<<2;while(1){c=a;e=J[d+24>>2];Va:{if((e|0)<=0)break Va;a=h;b=e;if(b&1){l=J[a>>2];J[a>>2]=(l|0)<0?0-(0-l>>7)|0:l>>>7|0;b=b-1|0;a=a+4|0}if((e|0)==1)break Va;while(1){e=J[a>>2];J[a>>2]=(e|0)<0?0-(0-e>>7)|0:e>>>7|0;e=J[a+4>>2];J[a+4>>2]=(e|0)<0?0-(0-e>>7)|0:e>>>7| -0;a=a+8|0;e=b-3|0;b=b-2|0;if(e>>>0<4294967294)continue;break}}a=c-1|0;h=h+j|0;if((c|0)>1)continue;break}}break Sa}kE(d,6)}if(K[v+348|0]<(i|0)){J[N>>2]=i;hd(211488,N);break _}Q=Q+1|0;g=g+716|0;if((m|0)!=(g|0))continue;break}}a=Fi(0,0);J[t+32>>2]=a;if(!a){hd(211534,0);break _}a=Mk(65424);J[t+28>>2]=a;if(!a)break _;J[a+12>>2]=ba;I[a+20>>1]=256;J[a+16>>2]=0;if(Lk(J[t+32>>2],J[t+16>>2],a)){hd(211556,0);break _}Ci(J[t+28>>2]);J[t+28>>2]=0;j=J[v+48>>2];Wa:{if((j|0)<=0)break Wa;i=0;while(1){if(J[J[x+48>> -2]+P(i,716)>>2]!=K[v+69|0]){a=Mk(65362);J[t+28>>2]=a;if(!a)break _;b=J[x+48>>2];H[a+24|0]=0;c=J[b>>2];H[a+25|0]=c-1;H[a+13|0]=K[x+21|0];J[a+16>>2]=J[x+24>>2];H[a+26|0]=K[b+292|0]-2;H[a+27|0]=K[b+296|0]-2;H[a+28|0]=J[b+304>>2];H[a+29|0]=J[b+12>>2];H[a+20|0]=K[x+28|0]!=0;Xa:{if((c|0)<=0)break Xa;b=J[b+4>>2];e=0;if((c|0)!=1){d=c&-2;j=0;while(1){h=a+36|0;g=h+(e<<1)|0;l=b+(e<<6)|0;H[g|0]=J[l+16>>2];H[g+1|0]=J[l+20>>2];g=e|1;h=h+(g<<1)|0;g=b+(g<<6)|0;H[h|0]=J[g+16>>2];H[h+1|0]=J[g+20>>2];e=e+2|0;j=j+2| -0;if((d|0)!=(j|0))continue;break}}if(!(c&1))break Xa;c=a+(e<<1)|0;b=b+(e<<6)|0;H[c+36|0]=J[b+16>>2];H[c+37|0]=J[b+20>>2]}if(Lk(J[t+32>>2],J[t+16>>2],a))break _;Ci(J[t+28>>2]);J[t+28>>2]=0;j=J[v+48>>2]}i=i+1|0;if((j|0)>(i|0))continue;break}if((j|0)<=0)break Wa;d=J[x+48>>2];g=0;while(1){Ya:{Za:{b=J[v+52>>2]+P(g,412)|0;a=J[b+8>>2];if((a|0)!=J[d+308>>2])break Za;e=0;if((a|0)<=0)break Ya;while(1){c=e<<2;if(J[(c+b|0)+12>>2]!=J[(c+d|0)+312>>2])break Za;e=e+1|0;if((a|0)!=(e|0))continue;break}break Ya}a=Mk(65373); -J[t+28>>2]=a;if(!a)break _;J[a+12>>2]=g;H[a+28|0]=K[v+348|0];H[a+16|0]=!J[d+12>>2]<<1;b=J[d+308>>2];J[a+24>>2]=d+312;J[a+20>>2]=b;if(Lk(J[t+32>>2],J[t+16>>2],a))break _;J[a+24>>2]=0;Ci(J[t+28>>2]);J[t+28>>2]=0;j=J[v+48>>2]}d=d+716|0;g=g+1|0;if((j|0)>(g|0))continue;break}}a=Mk(65427);J[t+28>>2]=a;if(!a)break _;if(Lk(J[t+32>>2],J[t+16>>2],a)){hd(211581,0);break _}Ci(J[t+28>>2]);J[t+28>>2]=0;ha=J[J[t+32>>2]+60>>2];_a:{$a:{a=J[t+12>>2];b=J[a+44>>2];if(b){v=J[a+48>>2];ja=v+P(b,716)|0;while(1){a=J[v>>2]; -if(a){e=J[v+4>>2];ka=e+(a<<6)|0;while(1){c=J[e+56>>2];ab:{if(!c)break ab;a=J[e+52>>2];if(!a)break ab;la=P(a,36)+c|0;while(1){if(!(!J[c+4>>2]|!J[e+32>>2])){h=J[c>>2];Q=0;while(1){b=J[h+28>>2];bb:{if(!b)break bb;a=J[h+24>>2];ca=P(a,60)+b|0;if(a){while(1){a=0;i=J[b+28>>2];s=J[i+20>>2];cb:{if((s|0)<=0)break cb;d=J[i+24>>2];if((d|0)<=0)break cb;w=d&-2;m=d&1;y=J[i+28>>2];l=0;while(1){i=J[y+(l<<2)>>2];g=0;f=0;if((d|0)!=1)while(1){o=g<<2;k=J[i+(o|4)>>2];j=k>>31;S=J[i+o>>2];o=S>>31;j=(j^k)-j|0;o=(o^S)-o|0; -a=(a|0)<(o|0)?o:a;a=(a|0)<(j|0)?j:a;g=g+2|0;f=f+2|0;if((w|0)!=(f|0))continue;break}if(m){g=J[i+(g<<2)>>2];i=g>>31;i=(g^i)-i|0;a=(a|0)<(i|0)?i:a}l=l+1|0;if((s|0)!=(l|0))continue;break}}if((vm(a)|0)>=6)a=vm(a)-5|0;else a=0;J[b+36>>2]=a;b=b+60|0;if((ca|0)!=(b|0))continue;break}b=J[h+28>>2]}d=(b|0)==(ca|0);if(d)break bb;i=J[c+12>>2];a=b;while(1){g=i-J[a+36>>2]|0;J[a+12>>2]=g;if((g|0)<0)break $a;a=a+60|0;if((ca|0)!=(a|0))continue;break}if(d)break bb;while(1){q=0;g=0;S=0;y=b;a=Fi(0,0);J[b+20>>2]=a;db:{if(a){l= -b;b=zc(40);eb:{if(b){J[b+12>>2]=19;J[b+24>>2]=a;d=zc(76);J[b+16>>2]=d;if(d){J[b+28>>2]=-1;J[b+20>>2]=d;J[b+32>>2]=-1;J[b+36>>2]=0;J[b+8>>2]=12;J[b>>2]=0;J[b+4>>2]=32768;i=J[b+12>>2];if((i|0)<=0)break eb;j=i&7;fb:{if(!j){a=i;break fb}a=i;while(1){J[d>>2]=2632944;d=d+4|0;a=a-1|0;g=g+1|0;if((j|0)!=(g|0))continue;break}}if(i>>>0<8)break eb;while(1){J[d+28>>2]=2632944;J[d+24>>2]=2632944;J[d+20>>2]=2632944;J[d+16>>2]=2632944;J[d+12>>2]=2632944;J[d+8>>2]=2632944;J[d+4>>2]=2632944;J[d>>2]=2632944;d=d+32| -0;i=a-9|0;a=a-8|0;if(i>>>0<4294967294)continue;break}break eb}qc(b)}b=0}J[l+24>>2]=b;if(b){f9(b);a=0;b=J[y+36>>2];i=(b|0)>0?P(b,3)-2|0:0;J[y>>2]=i;gb:{if((i|0)>0){a=zc(P(i,72));J[y+4>>2]=a;if(a){i=J[y>>2];break gb}fa(202075,199039,223,211976);B()}J[y+4>>2]=0}hb:{if(i){i=P(i,72)+a|0;g=i-72|0;while(1){J[a>>2]=0;J[a+4>>2]=0;b=J[v+304>>2];l=b>>>2&1;j=b&1;ib:{jb:{d=(a-J[y+4>>2]|0)/72|0;o=J[y>>2];if((d|0)!=(o-1|0)){b=1;kb:{if(l)break kb;b=94;if(!j)break kb;b=10-d|0;if((d|0)<10)break kb;b=(d|0)%3|0;if(b>>> -0>=3)break jb;b=J[(b<<2)+211848>>2]}d=o-d|0;b=(((b|0)<(d|0)?b:d)|0)<2}else b=1;break ib}fa(198111,198921,130,211806);B()}J[a+12>>2]=b;b=q9((a-J[y+4>>2]|0)/72|0,0,J[v+304>>2]&1);J[a+32>>2]=-1;J[a+8>>2]=b;if((a|0)==(g|0)){if(J[a+12>>2]!=1)break hb;J[a+12>>2]=1}a=a+72|0;if((i|0)!=(a|0))continue;break}}a=J[y+28>>2];a=ek(J[a+20>>2]+2|0,J[a+24>>2]+2|0);J[y+32>>2]=a;if(a){a=J[y+4>>2];_=J[y>>2];if((_|0)>0){C=J[y+36>>2]-1|0;o=a;while(1){lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:switch(J[o+8>>2]-1|0){default:fa(203920, -199039,253,211976);B();case 0:break rb;case 1:break sb}if(q)break rb;q=dE(J[y+20>>2],204208);if(!q)break qb;a=J[y+4>>2]}oa=o,pa=Zi(J[y+20>>2]),J[oa>>2]=pa;ia=(((o-a|0)/72|0)+2|0)%3|0;if((C|0)>=0){X=J[v+304>>2];T=X>>>4&1;da=X>>>3&1;aa=J[o+12>>2];tb:switch(ia|0){case 1:break nb;case 2:break ob;case 0:break tb;default:break pb}if(J[o+8>>2]!=1)break mb;g=J[c+8>>2];k=J[y+24>>2];a=J[y+28>>2];b=J[y+32>>2];d=0;J[o+64>>2]=0;s=J[a+20>>2];if(J[b+20>>2]>=2){d=J[b+28>>2];d=J[d+4>>2]-J[d>>2]>>2}i=J[a+24>>2];ub:{vb:{if((s| -0)>=2){l=J[a+28>>2];m=J[l+4>>2]-J[l>>2]|0;j=m>>2;break vb}m=0;j=0;if((s|0)!=1)break ub}if((i|0)<=0)break ub;z=g<<8;p=64<>2]+4>>2]+4|0;w=J[J[a+28>>2]>>2];W=0-d<<2;F=m<<2;n=d<<2;X=n<<2;while(1){b=i;a=l;g=w;while(1){f=b;b=J[a>>2];m=b&255;if(!(!m|b&20480)){d=J[g>>2];m=J[k+16>>2]+(J[((m|z)<<2)+2730592>>2]<<2)|0;J[k+20>>2]=m;m=J[m>>2];u=d;d=d>>31;d=p&(u^d)-d;wb:{if(J[m+4>>2]!=((d|0)!=0|0)){zg(k);break wb}m=J[m>>2];u=J[k+4>>2]-m|0;J[k+4>>2]=u;if(u&32768){J[k>>2]=m+J[k>> -2];break wb}Ag(k)}if(d){m=J[g>>2];d=m>>31;J[o+64>>2]=J[o+64>>2]+J[E+(((d^m)-d>>>C&127)<<2)>>2];b=b>>>2&1020;d=J[k+16>>2]+(J[b+2735712>>2]<<2)|0;J[k+20>>2]=d;d=J[d>>2];xb:{if(J[d+4>>2]!=(J[b+2734688>>2]^m>>>31)){zg(k);break xb}b=J[d>>2];d=J[k+4>>2]-b|0;J[k+4>>2]=d;if(d&32768){J[k>>2]=b+J[k>>2];break xb}Ag(k)}b=a+n|0;yb:{zb:{Ab:{if(da){J[b+4>>2]=J[b+4>>2]|8;d=b-4|0;J[d>>2]=J[d>>2]|1;d=J[b>>2];if((m|0)>=0){m=d|16;break zb}m=d|272;break Ab}d=a+W|0;J[d+4>>2]=J[d+4>>2]|4;u=d-4|0;J[u>>2]=J[u>>2]|2;u=b-4| -0;J[u>>2]=J[u>>2]|1;J[b+4>>2]=J[b+4>>2]|8;u=J[d>>2];if((m|0)>=0){J[d>>2]=u|64;m=J[b>>2]|16;break zb}J[d>>2]=u|1088;m=J[b>>2]|272}u=544;d=2176;break yb}u=32;d=128}J[b>>2]=m;b=a-4|0;J[b>>2]=J[b>>2]|u;J[a+4>>2]=d|J[a+4>>2];b=J[a>>2]|4096}else b=J[a>>2];J[a>>2]=b|16384}Bb:{if(s>>>0<2)break Bb;U=j<<2;m=U+g|0;b=a+n|0;d=J[b>>2];r=d&255;if(!(!r|d&20480)){u=J[m>>2];r=J[k+16>>2]+(J[((r|z)<<2)+2730592>>2]<<2)|0;J[k+20>>2]=r;r=J[r>>2];G=u;u=u>>31;u=p&(G^u)-u;Cb:{if(J[r+4>>2]!=((u|0)!=0|0)){zg(k);break Cb}r=J[r>> -2];D=J[k+4>>2]-r|0;J[k+4>>2]=D;if(D&32768){J[k>>2]=r+J[k>>2];break Cb}Ag(k)}if(u){u=J[m>>2];r=u>>31;J[o+64>>2]=J[o+64>>2]+J[E+(((u^r)-r>>>C&127)<<2)>>2];d=d>>>2&1020;r=J[k+16>>2]+(J[d+2735712>>2]<<2)|0;J[k+20>>2]=r;r=J[r>>2];Db:{if(J[r+4>>2]!=(J[d+2734688>>2]^u>>>31)){zg(k);break Db}d=J[r>>2];r=J[k+4>>2]-d|0;J[k+4>>2]=r;if(r&32768){J[k>>2]=d+J[k>>2];break Db}Ag(k)}J[a+4>>2]=J[a+4>>2]|4;d=a-4|0;J[d>>2]=J[d>>2]|2;d=b+n|0;r=d-4|0;J[r>>2]=J[r>>2]|1;J[d+4>>2]=J[d+4>>2]|8;u=(u|0)<0;J[a>>2]=J[a>>2]|(u?1088: -64);J[d>>2]=J[d>>2]|(u?272:16);d=b-4|0;J[d>>2]=J[d>>2]|(u?544:32);J[b+4>>2]=J[b+4>>2]|(u?2176:128);d=J[b>>2]|4096}else d=J[b>>2];J[b>>2]=d|16384}if(s>>>0<3)break Bb;u=m+U|0;d=b+n|0;m=J[d>>2];D=m&255;if(!(!D|m&20480)){r=J[u>>2];D=J[k+16>>2]+(J[((z|D)<<2)+2730592>>2]<<2)|0;J[k+20>>2]=D;D=J[D>>2];G=r;r=r>>31;r=p&(G^r)-r;Eb:{if(J[D+4>>2]!=((r|0)!=0|0)){zg(k);break Eb}D=J[D>>2];G=J[k+4>>2]-D|0;J[k+4>>2]=G;if(G&32768){J[k>>2]=D+J[k>>2];break Eb}Ag(k)}if(r){r=J[u>>2];D=r>>31;J[o+64>>2]=J[o+64>>2]+J[E+(((r^ -D)-D>>>C&127)<<2)>>2];m=m>>>2&1020;D=J[k+16>>2]+(J[m+2735712>>2]<<2)|0;J[k+20>>2]=D;D=J[D>>2];Fb:{if(J[D+4>>2]!=(J[m+2734688>>2]^r>>>31)){zg(k);break Fb}m=J[D>>2];D=J[k+4>>2]-m|0;J[k+4>>2]=D;if(D&32768){J[k>>2]=m+J[k>>2];break Fb}Ag(k)}J[b+4>>2]=J[b+4>>2]|4;m=b-4|0;J[m>>2]=J[m>>2]|2;m=d+n|0;D=m-4|0;J[D>>2]=J[D>>2]|1;J[m+4>>2]=J[m+4>>2]|8;G=b;D=J[b>>2];b=(r|0)<0;J[G>>2]=D|(b?1088:64);J[m>>2]=J[m>>2]|(b?272:16);m=d-4|0;J[m>>2]=J[m>>2]|(b?544:32);J[d+4>>2]=J[d+4>>2]|(b?2176:128);b=J[d>>2]|4096}else b= -J[d>>2];J[d>>2]=b|16384}if(s>>>0<4)break Bb;b=d+n|0;m=J[b>>2];r=m&255;if(!r|m&20480)break Bb;U=u+U|0;u=J[U>>2];r=J[k+16>>2]+(J[((r|z)<<2)+2730592>>2]<<2)|0;J[k+20>>2]=r;r=J[r>>2];G=u;u=u>>31;u=p&(G^u)-u;Gb:{if(J[r+4>>2]!=((u|0)!=0|0)){zg(k);break Gb}r=J[r>>2];D=J[k+4>>2]-r|0;J[k+4>>2]=D;if(D&32768){J[k>>2]=r+J[k>>2];break Gb}Ag(k)}if(u){u=J[U>>2];r=u>>31;J[o+64>>2]=J[o+64>>2]+J[E+(((u^r)-r>>>C&127)<<2)>>2];m=m>>>2&1020;r=J[k+16>>2]+(J[m+2735712>>2]<<2)|0;J[k+20>>2]=r;r=J[r>>2];Hb:{if(J[r+4>>2]!=(J[m+ -2734688>>2]^u>>>31)){zg(k);break Hb}m=J[r>>2];r=J[k+4>>2]-m|0;J[k+4>>2]=r;if(r&32768){J[k>>2]=m+J[k>>2];break Hb}Ag(k)}J[d+4>>2]=J[d+4>>2]|4;m=d-4|0;J[m>>2]=J[m>>2]|2;m=b+n|0;r=m-4|0;J[r>>2]=J[r>>2]|1;J[m+4>>2]=J[m+4>>2]|8;r=d;G=J[d>>2];d=(u|0)<0;J[r>>2]=G|(d?1088:64);J[m>>2]=J[m>>2]|(d?272:16);m=b-4|0;J[m>>2]=J[m>>2]|(d?544:32);J[b+4>>2]=J[b+4>>2]|(d?2176:128);d=J[b>>2]|4096}else d=J[b>>2];J[b>>2]=d|16384}g=g+4|0;a=a+4|0;b=f-1|0;if((f|0)>1)continue;break}w=w+F|0;l=l+X|0;a=(s|0)>4;s=s-4|0;if(a)continue; -break}}if(!aa)break lb;EN(k,T);break lb}fa(204974,199039,269,211976);B()}fa(204597,199039,256,211976);B()}fa(205525,199039,300,211976);B()}if(J[o+8>>2]==1){i=J[c+8>>2];n=J[y+24>>2];a=J[y+28>>2];d=J[y+32>>2];U=0;J[o+64>>2]=0;E=J[a+20>>2];if(J[d+20>>2]>=2){b=J[d+28>>2];U=J[b+4>>2]-J[b>>2]>>2}j=J[a+24>>2];Ib:{Jb:{if((E|0)>=2){b=J[a+28>>2];b=J[b+4>>2]-J[b>>2]|0;u=b>>2;break Jb}b=0;u=0;if((E|0)!=1)break Ib}if((j|0)<=0)break Ib;D=0-U|0;W=i<<8;r=64<>2]+4>>2]+4|0;w=J[J[a+ -28>>2]>>2];ma=b<<2;z=U<<2;na=z<<2;while(1){g=(E|0)>=4?4:E;a=j;s=w;d=l;while(1){m=a;b=s;i=g;Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{Tb:{Ub:{Vb:{Wb:{a=d;if(L[a>>1]&20735|E>>>0<4)break Wb;f=a+z|0;if(L[f>>1]&20735)break Wb;f=f+z|0;if(L[f>>1]&20735|L[f+z>>1]&20735)break Wb;f=0;a=b;Xb:{while(1){i=J[a>>2];b=i>>31;if(r&(b^i)-b)break Xb;a=(u<<2)+a|0;f=f+1|0;if((g|0)!=(f|0))continue;break}f=g}a=J[n+16>>2];J[n+20>>2]=a;a=J[a>>2];b=J[a+4>>2];if(f>>>0>3)break Ub;Yb:{if((b|0)!=1){zg(n);break Yb}a=J[a>>2];b=J[n+4>> -2]-a|0;J[n+4>>2]=b;if(b&32768){J[n>>2]=a+J[n>>2];break Yb}Ag(n)}a=J[n+16>>2];J[n+20>>2]=a+72;a=J[a+72>>2];Zb:{if(J[a+4>>2]!=(f>>>1|0)){zg(n);break Zb}a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(b&32768){J[n>>2]=a+J[n>>2];break Zb}Ag(n)}a=J[J[n+20>>2]>>2];_b:{if(J[a+4>>2]!=(f&1)){zg(n);break _b}a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(b&32768){J[n>>2]=a+J[n>>2];break _b}Ag(n)}i=g-f|0;b=(P(f,u)<<2)+s|0;a=(P(f,U)<<2)+d|0;switch(f|0){case 3:break Mb;case 2:break Ob;case 1:break Qb;case 0:break Vb;default:break Wb}}f= -J[a>>2];if(f&20480)break Rb;k=J[n+16>>2]+(J[((W|f&255)<<2)+2730592>>2]<<2)|0;J[n+20>>2]=k;p=J[b>>2];f=p>>31;k=J[k>>2];f=r&(f^p)-f;$b:{if(J[k+4>>2]!=((f|0)!=0|0)){zg(n);break $b}k=J[k>>2];p=J[n+4>>2]-k|0;J[n+4>>2]=p;if(p&32768){J[n>>2]=k+J[n>>2];break $b}Ag(n)}if(f)break Vb;f=J[a>>2];break Rb}p=J[a>>2];k=J[b>>2];f=k>>31;J[o+64>>2]=J[o+64>>2]+J[F+(((f^k)-f>>>C&127)<<2)>>2];f=p>>>2&1020;p=J[n+16>>2]+(J[f+2735712>>2]<<2)|0;J[n+20>>2]=p;p=J[p>>2];ac:{if(J[p+4>>2]!=(J[f+2734688>>2]^k>>>31)){zg(n);break ac}f= -J[p>>2];p=J[n+4>>2]-f|0;J[n+4>>2]=p;if(p&32768){J[n>>2]=f+J[n>>2];break ac}Ag(n)}p=a+z|0;bc:{if(da){J[p+4>>2]=J[p+4>>2]|8;f=p-4|0;J[f>>2]=J[f>>2]|1;f=J[p>>2];if((k|0)>=0){k=f|16;break Tb}k=f|272;break bc}f=(D<<2)+a|0;J[f+4>>2]=J[f+4>>2]|4;G=f-4|0;J[G>>2]=J[G>>2]|2;G=p-4|0;J[G>>2]=J[G>>2]|1;J[p+4>>2]=J[p+4>>2]|8;G=J[f>>2];if((k|0)>=0){J[f>>2]=G|64;k=J[p>>2]|16;break Tb}J[f>>2]=G|1088;k=J[p>>2]|272}G=2176;f=544;break Sb}if(b){zg(n);break Kb}a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(b&32768){J[n>>2]= -a+J[n>>2];break Kb}Ag(n);break Kb}G=128;f=32}J[p>>2]=k;k=a-4|0;J[k>>2]=J[k>>2]|f;J[a+4>>2]=G|J[a+4>>2];f=J[a>>2]|4096;J[a>>2]=f}J[a>>2]=f&-16385;if((i|0)<2)break Kb;i=i-1|0;b=(u<<2)+b|0;a=a+z|0;f=J[a>>2];if(f&20480)break Pb;k=J[n+16>>2]+(J[((W|f&255)<<2)+2730592>>2]<<2)|0;J[n+20>>2]=k;p=J[b>>2];f=p>>31;k=J[k>>2];f=r&(f^p)-f;cc:{if(J[k+4>>2]!=((f|0)!=0|0)){zg(n);break cc}k=J[k>>2];p=J[n+4>>2]-k|0;J[n+4>>2]=p;if(p&32768){J[n>>2]=k+J[n>>2];break cc}Ag(n)}if(f)break Qb;f=J[a>>2];break Pb}k=J[a>>2];p= -J[b>>2];f=p>>31;J[o+64>>2]=J[o+64>>2]+J[F+(((f^p)-f>>>C&127)<<2)>>2];f=k>>>2&1020;k=J[n+16>>2]+(J[f+2735712>>2]<<2)|0;J[n+20>>2]=k;k=J[k>>2];dc:{if(J[k+4>>2]!=(J[f+2734688>>2]^p>>>31)){zg(n);break dc}f=J[k>>2];k=J[n+4>>2]-f|0;J[n+4>>2]=k;if(k&32768){J[n>>2]=f+J[n>>2];break dc}Ag(n)}f=(D<<2)+a|0;J[f+4>>2]=J[f+4>>2]|4;k=f-4|0;J[k>>2]=J[k>>2]|2;k=a+z|0;G=k-4|0;J[G>>2]=J[G>>2]|1;J[k+4>>2]=J[k+4>>2]|8;G=f;ea=J[f>>2];f=(p|0)<0;J[G>>2]=ea|(f?1088:64);J[k>>2]=J[k>>2]|(f?272:16);k=a-4|0;J[k>>2]=J[k>>2]|(f? -544:32);J[a+4>>2]=J[a+4>>2]|(f?2176:128);f=J[a>>2]|4096;J[a>>2]=f}J[a>>2]=f&-16385;if((i|0)<2)break Kb;i=i-1|0;b=(u<<2)+b|0;a=a+z|0;f=J[a>>2];if(f&20480)break Nb;k=J[n+16>>2]+(J[((W|f&255)<<2)+2730592>>2]<<2)|0;J[n+20>>2]=k;p=J[b>>2];f=p>>31;k=J[k>>2];f=r&(f^p)-f;ec:{if(J[k+4>>2]!=((f|0)!=0|0)){zg(n);break ec}k=J[k>>2];p=J[n+4>>2]-k|0;J[n+4>>2]=p;if(p&32768){J[n>>2]=k+J[n>>2];break ec}Ag(n)}if(f)break Ob;f=J[a>>2];break Nb}k=J[a>>2];p=J[b>>2];f=p>>31;J[o+64>>2]=J[o+64>>2]+J[F+(((f^p)-f>>>C&127)<< -2)>>2];f=k>>>2&1020;k=J[n+16>>2]+(J[f+2735712>>2]<<2)|0;J[n+20>>2]=k;k=J[k>>2];fc:{if(J[k+4>>2]!=(J[f+2734688>>2]^p>>>31)){zg(n);break fc}f=J[k>>2];k=J[n+4>>2]-f|0;J[n+4>>2]=k;if(k&32768){J[n>>2]=f+J[n>>2];break fc}Ag(n)}f=(D<<2)+a|0;J[f+4>>2]=J[f+4>>2]|4;k=f-4|0;J[k>>2]=J[k>>2]|2;k=a+z|0;G=k-4|0;J[G>>2]=J[G>>2]|1;J[k+4>>2]=J[k+4>>2]|8;G=f;ea=J[f>>2];f=(p|0)<0;J[G>>2]=ea|(f?1088:64);J[k>>2]=J[k>>2]|(f?272:16);k=a-4|0;J[k>>2]=J[k>>2]|(f?544:32);J[a+4>>2]=J[a+4>>2]|(f?2176:128);f=J[a>>2]|4096;J[a>> -2]=f}J[a>>2]=f&-16385;if((i|0)<2)break Kb;a=a+z|0;i=J[a>>2];if(i&20480)break Lb;f=J[n+16>>2]+(J[((W|i&255)<<2)+2730592>>2]<<2)|0;J[n+20>>2]=f;b=(u<<2)+b|0;k=J[b>>2];i=k>>31;f=J[f>>2];i=r&(i^k)-i;gc:{if(J[f+4>>2]!=((i|0)!=0|0)){zg(n);break gc}f=J[f>>2];k=J[n+4>>2]-f|0;J[n+4>>2]=k;if(k&32768){J[n>>2]=f+J[n>>2];break gc}Ag(n)}if(i)break Mb;i=J[a>>2];break Lb}i=J[a>>2];f=J[b>>2];b=f>>31;J[o+64>>2]=J[o+64>>2]+J[F+(((b^f)-b>>>C&127)<<2)>>2];b=i>>>2&1020;i=J[n+16>>2]+(J[b+2735712>>2]<<2)|0;J[n+20>>2]=i; -i=J[i>>2];hc:{if(J[i+4>>2]!=(J[b+2734688>>2]^f>>>31)){zg(n);break hc}b=J[i>>2];i=J[n+4>>2]-b|0;J[n+4>>2]=i;if(i&32768){J[n>>2]=b+J[n>>2];break hc}Ag(n)}b=(D<<2)+a|0;J[b+4>>2]=J[b+4>>2]|4;i=b-4|0;J[i>>2]=J[i>>2]|2;i=a+z|0;k=i-4|0;J[k>>2]=J[k>>2]|1;J[i+4>>2]=J[i+4>>2]|8;k=b;G=J[b>>2];b=(f|0)<0;J[k>>2]=G|(b?1088:64);J[i>>2]=J[i>>2]|(b?272:16);i=a-4|0;J[i>>2]=J[i>>2]|(b?544:32);J[a+4>>2]=J[a+4>>2]|(b?2176:128);i=J[a>>2]|4096;J[a>>2]=i}J[a>>2]=i&-16385}s=s+4|0;d=d+4|0;a=m-1|0;if((m|0)>1)continue;break}w= -w+ma|0;l=l+na|0;a=(E|0)>4;E=E-4|0;if(a)continue;break}}ic:{if(!(X&32))break ic;a=J[n+16>>2];J[n+20>>2]=a+72;a=J[a+72>>2];jc:{if(J[a+4>>2]==1){a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(!(b&32768)){Ag(n);break jc}J[n>>2]=a+J[n>>2];break jc}zg(n)}a=J[J[n+20>>2]>>2];kc:{if(!J[a+4>>2]){a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(!(b&32768)){Ag(n);break kc}J[n>>2]=a+J[n>>2];break kc}zg(n)}a=J[J[n+20>>2]>>2];lc:{if(J[a+4>>2]==1){a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(!(b&32768)){Ag(n);break lc}J[n>>2]=a+J[n>> -2];break lc}zg(n)}a=J[J[n+20>>2]>>2];if(!J[a+4>>2]){a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(!(b&32768)){Ag(n);break ic}J[n>>2]=a+J[n>>2];break ic}zg(n)}if(!aa)break lb;EN(n,T);break lb}fa(205235,199039,294,211976);B()}if(J[o+8>>2]==1){f=J[y+24>>2];a=J[y+28>>2];g=J[y+32>>2];d=0;J[o+64>>2]=0;s=J[a+20>>2];if(J[g+20>>2]>=2){b=J[g+28>>2];d=J[b+4>>2]-J[b>>2]>>2}i=J[a+24>>2];mc:{nc:{if((s|0)>=2){b=J[a+28>>2];b=J[b+4>>2]-J[b>>2]|0;k=b>>2;break nc}b=0;k=0;if((s|0)!=1)break mc}if((i|0)<=0)break mc;w=64<>2]+4>>2]+4|0;j=J[J[a+28>>2]>>2];r=b<<2;n=d<<2;U=n<<2;while(1){b=i;g=j;a=l;while(1){d=J[a>>2];if((d&20480)==4096){z=J[g>>2];u=z>>31;u=(u^z)-u|0;J[o+64>>2]=J[o+64>>2]+J[m+((u>>>C&127)<<2)>>2];d=J[f+16>>2]+(J[((d>>>2&2048|d&255)<<2)+2736736>>2]<<2)|0;J[f+20>>2]=d;d=J[d>>2];oc:{if(J[d+4>>2]!=((u&w)!=0|0)){zg(f);break oc}d=J[d>>2];u=J[f+4>>2]-d|0;J[f+4>>2]=u;if(u&32768){J[f>>2]=d+J[f>>2];break oc}Ag(f)}J[a>>2]=J[a>>2]|8192}d=b;pc:{if(s>>>0<2)break pc;u=k<<2;z=u+g|0;b=a+ -n|0;p=J[b>>2];if((p&20480)==4096){D=J[z>>2];E=D>>31;E=(E^D)-E|0;J[o+64>>2]=J[o+64>>2]+J[m+((E>>>C&127)<<2)>>2];p=J[f+16>>2]+(J[((p>>>2&2048|p&255)<<2)+2736736>>2]<<2)|0;J[f+20>>2]=p;p=J[p>>2];qc:{if(J[p+4>>2]!=((w&E)!=0|0)){zg(f);break qc}p=J[p>>2];E=J[f+4>>2]-p|0;J[f+4>>2]=E;if(E&32768){J[f>>2]=p+J[f>>2];break qc}Ag(f)}J[b>>2]=J[b>>2]|8192}if(s>>>0<3)break pc;z=u+z|0;b=b+n|0;p=J[b>>2];if((p&20480)==4096){D=J[z>>2];E=D>>31;E=(E^D)-E|0;J[o+64>>2]=J[o+64>>2]+J[m+((E>>>C&127)<<2)>>2];p=J[f+16>>2]+(J[((p>>> -2&2048|p&255)<<2)+2736736>>2]<<2)|0;J[f+20>>2]=p;p=J[p>>2];rc:{if(J[p+4>>2]!=((w&E)!=0|0)){zg(f);break rc}p=J[p>>2];E=J[f+4>>2]-p|0;J[f+4>>2]=E;if(E&32768){J[f>>2]=p+J[f>>2];break rc}Ag(f)}J[b>>2]=J[b>>2]|8192}if(s>>>0<4)break pc;b=b+n|0;p=J[b>>2];if((p&20480)!=4096)break pc;z=J[u+z>>2];u=z>>31;u=(u^z)-u|0;J[o+64>>2]=J[o+64>>2]+J[m+((u>>>C&127)<<2)>>2];z=J[f+16>>2]+(J[((p>>>2&2048|p&255)<<2)+2736736>>2]<<2)|0;J[f+20>>2]=z;z=J[z>>2];sc:{if(J[z+4>>2]!=((u&w)!=0|0)){zg(f);break sc}u=J[z>>2];z=J[f+4>> -2]-u|0;J[f+4>>2]=z;if(z&32768){J[f>>2]=u+J[f>>2];break sc}Ag(f)}J[b>>2]=J[b>>2]|8192}g=g+4|0;a=a+4|0;b=d-1|0;if((d|0)>1)continue;break}j=j+r|0;l=l+U|0;a=(s|0)>4;s=s-4|0;if(a)continue;break}}if(!aa)break lb;EN(f,T);break lb}a=J[y+28>>2];i=J[y+32>>2];g=0;J[o+64>>2]=0;b=J[a+20>>2];if(J[i+20>>2]>=2){d=J[i+28>>2];g=J[d+4>>2]-J[d>>2]>>2}l=J[a+24>>2];tc:{uc:{vc:{wc:{xc:{yc:{zc:{Ac:{Bc:{Cc:{if((b|0)>=2){d=J[a+28>>2];d=J[d+4>>2]-J[d>>2]|0;u=d>>2;break Cc}d=0;u=0;if((b|0)!=1)break Bc}if((l|0)<=0)break Bc;s= -64<>2]+4>>2]+4|0;f=J[J[a+28>>2]>>2];E=d<<2;m=g<<2;r=m<<2;while(1){d=l;a=j;i=f;while(1){if((J[a>>2]&20480)==4096){k=J[i>>2];g=k>>31;g=(g^k)-g|0;J[o+64>>2]=J[o+64>>2]+J[w+((g>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break Ac;g=(g&s)!=0;k=J[q+8>>2];n=k-1|0;J[q+8>>2]=n;Dc:{if((k|0)>0){J[q+4>>2]=J[q+4>>2]|g<>2];k=n<<8&65280;z=(k|0)==65280?6:7;J[q+8>>2]=z;J[q+4>>2]=k|g<>2];z=J[g+8>>2];if(z&7)break lb;p=J[g+64>>2];if((p|0)>=0&(p|0)<=J[g+60>>2])break zc; -J[g+4>>2]=J[g+4>>2]|32;z=J[g+28>>2];J[g+28>>2]=z-1;if((z|0)>0){J[g+60>>2]=J[g+60>>2]+1;k=g;g=J[g+24>>2];J[k+24>>2]=g+1;H[g|0]=n;break Dc}if((Uc(g,k>>>8|0)|0)==-1)break lb}J[a>>2]=J[a>>2]|8192}g=d;Ec:{if(b>>>0<2)break Ec;n=u<<2;z=n+i|0;k=a+m|0;if((J[k>>2]&20480)==4096){p=J[z>>2];d=p>>31;d=(d^p)-d|0;J[o+64>>2]=J[o+64>>2]+J[w+((d>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break yc;d=(d&s)!=0;p=J[q+8>>2];U=p-1|0;J[q+8>>2]=U;Fc:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|d<>2];p=U<<8&65280;D=(p|0)==65280? -6:7;J[q+8>>2]=D;J[q+4>>2]=p|d<>2];D=J[d+8>>2];if(D&7)break lb;W=J[d+64>>2];if((W|0)>=0&(W|0)<=J[d+60>>2])break xc;J[d+4>>2]=J[d+4>>2]|32;D=J[d+28>>2];J[d+28>>2]=D-1;if((D|0)>0){J[d+60>>2]=J[d+60>>2]+1;G=d;d=J[d+24>>2];J[G+24>>2]=d+1;H[d|0]=U;break Fc}if((Uc(d,p>>>8|0)|0)==-1)break lb}J[k>>2]=J[k>>2]|8192}if(b>>>0<3)break Ec;z=n+z|0;k=k+m|0;if((J[k>>2]&20480)==4096){p=J[z>>2];d=p>>31;d=(d^p)-d|0;J[o+64>>2]=J[o+64>>2]+J[w+((d>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break wc;d=(d&s)!=0;p=J[q+ -8>>2];U=p-1|0;J[q+8>>2]=U;Gc:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|d<>2];p=U<<8&65280;D=(p|0)==65280?6:7;J[q+8>>2]=D;J[q+4>>2]=p|d<>2];D=J[d+8>>2];if(D&7)break lb;W=J[d+64>>2];if((W|0)>=0&(W|0)<=J[d+60>>2])break vc;J[d+4>>2]=J[d+4>>2]|32;D=J[d+28>>2];J[d+28>>2]=D-1;if((D|0)>0){J[d+60>>2]=J[d+60>>2]+1;G=d;d=J[d+24>>2];J[G+24>>2]=d+1;H[d|0]=U;break Gc}if((Uc(d,p>>>8|0)|0)==-1)break lb}J[k>>2]=J[k>>2]|8192}if(b>>>0<4)break Ec;k=k+m|0;if((J[k>>2]&20480)!=4096)break Ec;n=J[n+ -z>>2];d=n>>31;d=(d^n)-d|0;J[o+64>>2]=J[o+64>>2]+J[w+((d>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break uc;d=(d&s)!=0;n=J[q+8>>2];z=n-1|0;J[q+8>>2]=z;Hc:{if((n|0)>0){J[q+4>>2]=J[q+4>>2]|d<>2];n=z<<8&65280;p=(n|0)==65280?6:7;J[q+8>>2]=p;J[q+4>>2]=n|d<>2];p=J[d+8>>2];if(p&7)break lb;U=J[d+64>>2];if((U|0)>=0&(U|0)<=J[d+60>>2])break tc;J[d+4>>2]=J[d+4>>2]|32;p=J[d+28>>2];J[d+28>>2]=p-1;if((p|0)>0){J[d+60>>2]=J[d+60>>2]+1;n=d;d=J[d+24>>2];J[n+24>>2]=d+1;H[d|0]=z;break Hc}if((Uc(d, -n>>>8|0)|0)==-1)break lb}J[k>>2]=J[k>>2]|8192}i=i+4|0;a=a+4|0;d=g-1|0;if((g|0)>1)continue;break}f=f+E|0;j=j+r|0;a=(b|0)>4;b=b-4|0;if(a)continue;break}}if(!aa)break lb;Sx(q,42);break lb}fa(205705,199039,767,212010);B()}J[g+8>>2]=z|4;break lb}fa(205705,199039,774,212010);B()}J[d+8>>2]=D|4;break lb}fa(205705,199039,781,212010);B()}J[d+8>>2]=D|4;break lb}fa(205705,199039,788,212010);B()}J[d+8>>2]=p|4;break lb}a=J[y+28>>2];i=J[y+32>>2];g=0;J[o+64>>2]=0;b=J[a+20>>2];if(J[i+20>>2]>=2){d=J[i+28>>2];g=J[d+ -4>>2]-J[d>>2]>>2}s=J[a+24>>2];Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{if((b|0)>=2){d=J[a+28>>2];d=J[d+4>>2]-J[d>>2]|0;k=d>>2;break Vc}d=0;k=0;if((b|0)!=1)break Uc}if((s|0)<=0)break Uc;u=64<>2]+4>>2]+4|0;l=J[J[a+28>>2]>>2];U=0-g<<2;D=d<<2;n=g<<2;W=n<<2;while(1){d=s;a=j;i=l;while(1){w=d;d=J[a>>2];if(!(!(d&255)|d&20480)){Wc:{Xc:{Yc:{Zc:{_c:{$c:{if(K[q+16|0]&2){g=J[i>>2];d=g>>31;f=u&(d^g)-d;d=(f|0)!=0;g=J[q+8>>2];m=g-1|0;J[q+8>>2]=m;ad:{if((g|0)>0){J[q+ -4>>2]=J[q+4>>2]|d<>2];g=m<<8&65280;p=(g|0)==65280?6:7;J[q+8>>2]=p;J[q+4>>2]=g|d<>2];p=J[d+8>>2];if(p&7)break lb;E=J[d+64>>2];if((E|0)>=0&(E|0)<=J[d+60>>2])break Zc;J[d+4>>2]=J[d+4>>2]|32;p=J[d+28>>2];J[d+28>>2]=p-1;if((p|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=d;d=J[d+24>>2];J[g+24>>2]=d+1;H[d|0]=m;break ad}if((Uc(d,g>>>8|0)|0)==-1)break lb}d=J[a>>2];if(!f)break Wc;f=J[i>>2];d=f>>31;J[o+64>>2]=J[o+64>>2]+J[z+(((d^f)-d>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break $c;d=f>>>31|0; -g=J[q+8>>2];m=g-1|0;J[q+8>>2]=m;bd:{if((g|0)>0){J[q+4>>2]=J[q+4>>2]|d<>2];g=m<<8&65280;p=(g|0)==65280?6:7;J[q+8>>2]=p;J[q+4>>2]=g|d<>2];p=J[d+8>>2];if(p&7)break lb;E=J[d+64>>2];if((E|0)>=0&(E|0)<=J[d+60>>2])break _c;J[d+4>>2]=J[d+4>>2]|32;p=J[d+28>>2];J[d+28>>2]=p-1;if((p|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=d;d=J[d+24>>2];J[g+24>>2]=d+1;H[d|0]=m;break bd}if((Uc(d,g>>>8|0)|0)==-1)break lb}d=a+n|0;cd:{if(da){J[d+4>>2]=J[d+4>>2]|8;g=d-4|0;J[g>>2]=J[g>>2]|1;g=J[d>>2];if((f| -0)>=0){m=g|16;break Yc}m=g|272;break cd}g=a+U|0;J[g+4>>2]=J[g+4>>2]|4;m=g-4|0;J[m>>2]=J[m>>2]|2;m=d-4|0;J[m>>2]=J[m>>2]|1;J[d+4>>2]=J[d+4>>2]|8;m=J[g>>2];if((f|0)>=0){J[g>>2]=m|64;m=J[d>>2]|16;break Yc}J[g>>2]=m|1088;m=J[d>>2]|272}f=2176;g=544;break Xc}fa(205705,199039,572,211992);B()}fa(205944,199039,572,211992);B()}J[d+8>>2]=p|4;break lb}J[d+8>>2]=p|4;break lb}f=128;g=32}J[d>>2]=m;d=a-4|0;J[d>>2]=g|J[d>>2];J[a+4>>2]=J[a+4>>2]|f;d=J[a>>2]|4096}J[a>>2]=d|16384}dd:{if(b>>>0<2)break dd;E=k<<2;f=E+i| -0;d=a+n|0;g=J[d>>2];if(!(!(g&255)|g&20480)){if(!(K[q+16|0]&2))break Tc;m=J[f>>2];g=m>>31;p=u&(g^m)-g;g=(p|0)!=0;m=J[q+8>>2];r=m-1|0;J[q+8>>2]=r;ed:{if((m|0)>0){J[q+4>>2]=J[q+4>>2]|g<>2];m=r<<8&65280;F=(m|0)==65280?6:7;J[q+8>>2]=F;J[q+4>>2]=m|g<>2];F=J[g+8>>2];if(F&7)break lb;T=J[g+64>>2];if((T|0)>=0&(T|0)<=J[g+60>>2])break Sc;J[g+4>>2]=J[g+4>>2]|32;F=J[g+28>>2];J[g+28>>2]=F-1;if((F|0)>0){J[g+60>>2]=J[g+60>>2]+1;m=g;g=J[g+24>>2];J[m+24>>2]=g+1;H[g|0]=r;break ed}if((Uc(g, +l=(q>>>0)/(x>>>0)|0;x=q-P(l,x)|0;q=k+(x<>>0>y>>>0?q:y;x=k+(x+1<>2];k=m>>>0>x>>>0?x:m;if(y>>>0>=k>>>0)break va;x=J[b+4>>2];j=J[j+48>>2];m=x&-1<>>0>x>>>0?q:x;l=m+(l+1<>2];j=j>>>0>l>>>0?l:j;if(x>>>0>=j>>>0)break va;l=yp(0,0,0,0);J[d+28>>2]=l;if(!l){a=J[d+4>>2];if(a)uc(a);a=J[d+20>>2];if(a)Pf(a);a=J[d+24>>2];if(a)aF(a);a=J[d+28>>2];if(a)mg(a);a=J[d+32>>2];if(!a)break sa;mg(a);break sa}Qy(l,J[n+4>>2],y,x,k,j);d=d+60|0;a=a+1|0;if(a>>>0> +2])continue;break ua}break}fa(211686,209153,2535,211725);B()}J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=a;J[b>>2]=l;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0}b=b+52|0;o=o+1|0;if(o>>>0>2])continue;break}}h=h+36|0;f=f+1|0;if(f>>>0>=M[e+52>>2])break oa;continue}break}xba(b)}a=J[h>>2];if(!a)break qa;d=J[h+32>>2];if(J[d+32>>2]){b=0;while(1){xba(a);a=a+52|0;b=b+1|0;if(b>>>0>2])continue;break}a=J[h>>2]}uc(a)}a=J[h+4>>2];if(!a)break pa;mg(a)}fP(e);break la}e=e- -64|0;l=J[c>>2];Q=Q+1|0; +if(l>>>0>Q>>>0)continue;break}}c=c+716|0;d=J[g+48>>2];w=w+1|0;if(d>>>0>w>>>0)continue;break}}b=6792;c=6792;wa:{xa:switch(K[i+28|0]-1|0){default:if(!d)break wa;a=J[i+48>>2];if(d>>>0>=8){c=d&-8;b=0;while(1){J[a+24>>2]=8192;J[a+5036>>2]=8192;J[a+4320>>2]=8192;J[a+3604>>2]=8192;J[a+2888>>2]=8192;J[a+2172>>2]=8192;J[a+1456>>2]=8192;J[a+740>>2]=8192;a=a+5728|0;b=b+8|0;if((c|0)!=(b|0))continue;break}}c=d&7;if(!c)break wa;b=0;while(1){J[a+24>>2]=8192;a=a+716|0;b=b+1|0;if((c|0)!=(b|0))continue;break}break wa; +case 0:c=12889;b=14787;break;case 1:break xa}a=J[i+48>>2];J[a+24>>2]=14188;J[a+1456>>2]=c;J[a+740>>2]=b}f=0;e=mba();a=0;ya:{if(!e)break ya;J[e+104>>2]=-1;a=J[g+48>>2];J[e+8>>2]=a;c=Dc(a<<4);J[e+12>>2]=c;za:{if(!c)break za;Aa:{Ba:{d=J[e+8>>2];if((d|0)<=0)break Ba;a=c;if(d>>>0>=8){h=d&-8;b=0;while(1){J[a+4>>2]=0;J[a+116>>2]=0;J[a+100>>2]=0;J[a+84>>2]=0;J[a+68>>2]=0;J[a+52>>2]=0;J[a+36>>2]=0;J[a+20>>2]=0;a=a+128|0;b=b+8|0;if((h|0)!=(b|0))continue;break}}h=d&7;if(h){b=0;while(1){J[a+4>>2]=0;a=a+16|0; +b=b+1|0;if((h|0)!=(b|0))continue;break}}if((d|0)<=0)break Ba;l=J[i+48>>2];while(1){a=J[l>>2];J[c>>2]=a;b=Dc(P(a,20));J[c+4>>2]=b;if(!b)break za;d=J[c>>2];j=(d|0)<=0;Ca:{if(j)break Ca;a=b;if(d>>>0>=8){o=d&-8;h=0;while(1){J[a+4>>2]=0;J[a+144>>2]=0;J[a+124>>2]=0;J[a+104>>2]=0;J[a+84>>2]=0;J[a- -64>>2]=0;J[a+44>>2]=0;J[a+24>>2]=0;a=a+160|0;h=h+8|0;if((o|0)!=(h|0))continue;break}}h=0;o=d&7;if(o)while(1){J[a+4>>2]=0;a=a+20|0;h=h+1|0;if((o|0)!=(h|0))continue;break}if(j)break Ca;a=J[l+4>>2];j=0;while(1){h= +J[a+32>>2];J[b>>2]=h;Da:{if(h){d=Dc(h<<2);J[b+4>>2]=d;if(!d)break za;d=J[c>>2];break Da}J[b+4>>2]=0}a=a- -64|0;b=b+20|0;j=j+1|0;if((j|0)<(d|0))continue;break}}c=c+16|0;l=l+716|0;d=J[e+8>>2];f=f+1|0;if((d|0)>(f|0))continue;break}b=0;J[e+4>>2]=0;if((d|0)<=0)break Aa;o=J[g+52>>2];g=J[i+48>>2];c=J[e+12>>2];l=0;while(1){a=o+P(l,412)|0;J[c+8>>2]=K[a|0];J[c+12>>2]=K[a+1|0];a=J[c>>2];if((a|0)>0){h=J[c+4>>2];j=J[g+4>>2];d=0;while(1){J[h+8>>2]=J[j+16>>2];J[h+12>>2]=J[j+20>>2];if(J[h>>2]>0){a=J[h+4>>2];b=0; +while(1){J[a>>2]=0;a=a+4|0;b=b+1|0;if((b|0)>2])continue;break}a=J[c>>2]}J[h+16>>2]=J[j+24>>2];j=j- -64|0;h=h+20|0;d=d+1|0;if((d|0)<(a|0))continue;break}b=J[e+4>>2]}a=J[g>>2];if((a|0)>(b|0)){J[e+4>>2]=a;b=a}c=c+16|0;g=g+716|0;d=J[e+8>>2];l=l+1|0;if((d|0)>(l|0))continue;break}break Aa}b=0;J[e+4>>2]=0}a=J[i+24>>2];J[e>>2]=a;J[e+56>>2]=J[i+4>>2];J[e+60>>2]=J[i+8>>2];J[e+64>>2]=J[i+12>>2];c=J[i+16>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+68>>2]=c;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+40>> +2]=0;J[e+44>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+96>>2]=-1;c=K[i+21|0];J[e+88>>2]=d;J[e+84>>2]=0;H[e+80|0]=c;J[e+92>>2]=a;H[e+82|0]=b;H[e+81|0]=0;H[e+101|0]=0;J[e+72>>2]=0;a=e;break ya}eF(e);a=0}J[i+32>>2]=a;if(a)break ia;break ja}fa(211637,209153,2104,211673);B()}a=J[c+4>>2];if(!a)break ka;if(J[c>>2]){b=0;while(1){fP(a);a=a- -64|0;b=b+1|0;if(b>>>0>2])continue;break}a=J[c+4>>2]}uc(a)}a=J[c+8>>2];if(a)mg(a);a=J[c+20>>2];if(!a)break ja;uc(a)}gP(i)}i=0}fc=s+4E3|0;J[t+12>>2]=i;if(!i)break da;x=i; +if(J[686392]>=10){g=0;a=fc-96|0;fc=a;o=J[t+12>>2];if(J[o+44>>2]){e=J[o+48>>2];while(1){b=J[e+8>>2];c=J[b+4>>2];d=J[b+8>>2];h=J[b+16>>2];J[a+88>>2]=J[b+12>>2];J[a+92>>2]=h;J[a+80>>2]=c;J[a+84>>2]=d;rd(210060,a+80|0);if(J[e>>2]){b=J[e+4>>2];l=0;while(1){c=J[b>>2];d=J[b+4>>2];h=J[b+12>>2];J[a+72>>2]=J[b+8>>2];J[a+76>>2]=h;J[a+64>>2]=c;J[a+68>>2]=d;rd(210112,a- -64|0);if(J[b+52>>2]){h=J[b+56>>2];j=0;while(1){c=J[h+4>>2];Ea:{if(!c)break Ea;d=J[c+4>>2];i=J[c+8>>2];f=J[c+16>>2];J[a+56>>2]=J[c+12>>2];J[a+ +60>>2]=f;J[a+48>>2]=d;J[a+52>>2]=i;rd(210138,a+48|0);if(!J[b+32>>2])break Ea;c=J[h>>2];w=0;while(1){d=J[c+8>>2];i=J[c>>2];f=J[c+12>>2];s=J[c+4>>2];J[a+36>>2]=f-s;J[a+32>>2]=d-i;J[a+28>>2]=f;J[a+24>>2]=d;J[a+20>>2]=s;J[a+16>>2]=i;rd(210198,a+16|0);d=J[c+28>>2];Fa:{if(!d)break Fa;Q=0;if(!J[c+24>>2])break Fa;while(1){i=J[d+28>>2];f=J[i+4>>2];s=J[i+8>>2];m=J[i+16>>2];J[a+8>>2]=J[i+12>>2];J[a+12>>2]=m;J[a>>2]=f;J[a+4>>2]=s;rd(210237,a);d=d+60|0;Q=Q+1|0;if(Q>>>0>2])continue;break}}c=c+52|0;w=w+ +1|0;if(w>>>0>2])continue;break}}h=h+36|0;j=j+1|0;if(j>>>0>2])continue;break}}b=b- -64|0;l=l+1|0;if(l>>>0>2])continue;break}}e=e+716|0;g=g+1|0;if(g>>>0>2])continue;break}}fc=a+96|0}i=J[x+48>>2];j=J[x+44>>2];if((j|0)>0){c=J[v+52>>2];g=0;l=i;while(1){a=c+P(g,412)|0;Ga:{if(K[a+5|0])break Ga;b=J[l+8>>2];e=J[b+20>>2];if((e|0)<=0)break Ga;h=J[b+24>>2];if((h|0)<=0)break Ga;d=-1<0){j=J[J[b+28>>2]+(a<<2)>>2];e=0;while(1){h=j+(e<<2)|0;J[h>>2]=d+ +J[h>>2];e=e+1|0;h=J[b+24>>2];if((e|0)<(h|0))continue;break}e=J[b+20>>2]}a=a+1|0;if((e|0)>(a|0))continue;break}j=J[x+44>>2]}l=l+716|0;g=g+1|0;if((j|0)>(g|0))continue;break}}if(!(K[x+36|0]|!j)){a=P(j,716)+i|0;while(1){oF(J[i+8>>2],13);i=i+716|0;if((a|0)!=(i|0))continue;break}}Ha:{Ia:switch(K[x+28|0]-1|0){case 1:if(J[J[t>>2]+16>>2]!=3)break ca;a=J[x+48>>2];b=J[a+8>>2];c=J[a+1440>>2];d=0;Ja:{Ka:{g=J[b+20>>2];e=J[a+724>>2];if((g|0)!=J[e+20>>2])break Ka;a=J[b+24>>2];if((a|0)!=J[e+24>>2]|(g|0)!=J[c+20>> +2]|(a|0)!=J[c+24>>2])break Ka;if(!((g|0)<=0|(a|0)<=0)){j=J[c+28>>2];o=J[e+28>>2];f=J[b+28>>2];i=a-1|0;s=a&1;while(1){b=d<<2;c=J[b+j>>2];e=J[b+o>>2];h=J[b+f>>2];if(s){w=J[c>>2];l=J[h>>2];b=J[e>>2];J[h>>2]=w+(l+(b<<1)|0)>>2;J[e>>2]=w-b;J[c>>2]=l-b;c=c+4|0;e=e+4|0;h=h+4|0;b=i}else b=a;if((a|0)!=1)while(1){m=J[c>>2];w=J[h>>2];l=J[e>>2];J[h>>2]=m+(w+(l<<1)|0)>>2;J[e>>2]=m-l;J[c>>2]=w-l;m=J[c+4>>2];w=J[h+4>>2];l=J[e+4>>2];J[h+4>>2]=m+(w+(l<<1)|0)>>2;J[e+4>>2]=m-l;J[c+4>>2]=w-l;c=c+8|0;e=e+8|0;h=h+8|0;l= +(b|0)>2;b=b-2|0;if(l)continue;break}d=d+1|0;if((g|0)!=(d|0))continue;break}}break Ja}fa(197723,198579,102,211903);B()}break Ha;case 0:break Ia;default:break Ha}if(J[J[t>>2]+16>>2]!=3)break ba;c=J[x+48>>2];a=J[c+8>>2];b=J[c+1440>>2];d=0;La:{Ma:{f=J[a+20>>2];c=J[c+724>>2];if(!((f|0)!=J[c+20>>2]|(f|0)!=J[b+20>>2])){i=J[a+24>>2];if((i|0)!=J[c+24>>2]|(i|0)!=J[b+24>>2])break Ma;if(!((f|0)<=0|(i|0)<=0)){s=J[b+28>>2];w=J[c+28>>2];m=J[a+28>>2];while(1){a=d<<2;c=J[a+s>>2];e=J[a+w>>2];h=J[a+m>>2];b=i;while(1){a= +J[c>>2];g=a>>31;y=g;k=vEb(a,g,933,0);S=jc;g=J[e>>2];l=g>>31;n=vEb(g,l,4808,0);q=jc;j=J[h>>2];o=j>>31;C=vEb(j,o,2449,0);J[h>>2]=(((q&8191)<<19|n>>>13)+((jc&8191)<<19|C>>>13)|0)+((S&8191)<<19|k>>>13);k=vEb(g,l,-2713,8191);S=jc;o=vEb(j,o,-1382,8191);J[e>>2]=(((jc&8191)<<19|o>>>13)+(a>>1)|0)+((S&8191)<<19|k>>>13);a=vEb(a,y,-666,8191);o=jc;g=vEb(g,l,-3429,8191);J[c>>2]=(((jc&8191)<<19|g>>>13)+(j>>1)|0)+((o&8191)<<19|a>>>13);c=c+4|0;e=e+4|0;h=h+4|0;a=(b|0)>1;b=b-1|0;if(a)continue;break}d=d+1|0;if((f|0)!= +(d|0))continue;break}}break La}fa(199893,198579,188,211920);B()}fa(200721,198579,190,211920);B()}}e=0;if(J[J[t>>2]+16>>2]>0)while(1){b=J[x+48>>2]+P(e,716)|0;a=J[b+20>>2];b=J[b+8>>2];c=J[a>>2];if((c|0)>0){i=J[b+4>>2];l=J[b+12>>2]-i|0;g=J[b+8>>2];j=J[b+16>>2]-g|0;d=J[b+28>>2];h=J[d>>2];qba(a,h,i,g,l,j,J[b+20>>2]>=2?J[d+4>>2]-h>>2:0,c-1|0)}e=e+1|0;if((e|0)>2]+16>>2])continue;break}a=J[x+44>>2];if(a){g=J[x+48>>2];m=g+P(a,716)|0;Q=0;while(1){Ac(g+312|0,0,400);i=0;e=J[g>>2];if((e|0)>0){w=J[g+4>> +2];f=0;c=0;while(1){b=J[w+56>>2];Na:{if(!b){c=(f?3:1)+c|0;break Na}a=J[w+52>>2];if(!a)break Na;y=P(a,36)+b|0;while(1){a=J[b+4>>2];if(a){e=0;k=J[a+20>>2];Oa:{if(!k)break Oa;d=J[a+24>>2];if(!d)break Oa;S=d&-2;n=d&1;q=J[a+28>>2];l=0;while(1){a=J[q+(l<<2)>>2];h=0;j=0;if((d|0)!=1)while(1){s=h<<2;C=J[a+(s|4)>>2];o=C>>31;u=J[a+s>>2];s=u>>31;o=(o^C)-o|0;s=(s^u)-s|0;e=(e|0)<(s|0)?s:e;e=(e|0)<(o|0)?o:e;h=h+2|0;j=j+2|0;if((S|0)!=(j|0))continue;break}if(n){h=J[a+(h<<2)>>2];a=h>>31;a=(a^h)-a|0;e=(a|0)>(e|0)?a: +e}l=l+1|0;if((k|0)!=(l|0))continue;break}}h=K[x+36|0];j=mn(e);o=K[(J[v+52>>2]+P(Q,412)|0)+4|0];d=J[b+28>>2];Pa:{if(K[x+36|0]){e=8192;J[b+16>>2]=8192;break Pa}a=8192<>31<<13|a>>>19;e=a<<13;a=J[b+24>>2];e=wEb(e,l,a,a>>31);J[b+16>>2]=e;if((e|0)<0)break da}l=mn(e);a=mn(e);d=d+o|0;l=l-13|0;if((d|0)<(l|0))break da;l=d-l|0;if(l>>>0>=32)break a;s=(((h?1:-12)+j|0)-d|0)+1|0;k=(s|0)>(i|0);d=((a|0)>11?e>>>a-11|0:e<<11-a)&2047;a=l<<11&63488;d=d|a;J[b+20>>2]=d;J[b+12>>2]=(K[v+348|0]+(a>>>11|0)|0)-1;Qa:{if(K[x+ +36|0])break Qa;j=J[b+4>>2];if(!j)break Qa;a=J[b+16>>2];if((a|0)==8192)break Qa;e=J[j+20>>2];if((e|0)<=0)break Qa;h=J[j+24>>2];if((h|0)<=0)break Qa;d=a;o=a>>31;a=0;while(1){if((h|0)>0){S=J[J[j+28>>2]+(a<<2)>>2];e=0;while(1){n=S+(e<<2)|0;h=J[n>>2];Ra:{if((h|0)<0){h=0-h|0;l=h>>>19|0;h=0-wEb(h<<13,l,d,o)|0;break Ra}h=wEb(h<<13,h>>>19|0,d,o)}J[n>>2]=h;e=e+1|0;h=J[j+24>>2];if((e|0)<(h|0))continue;break}e=J[j+20>>2]}a=a+1|0;if((e|0)>(a|0))continue;break}d=J[b+20>>2]}J[((c<<2)+g|0)+312>>2]=d;i=k?s:i}c=c+ +1|0;b=b+36|0;if((y|0)!=(b|0))continue;break}e=J[g>>2]}w=w- -64|0;f=f+1|0;if((e|0)>(f|0))continue;break}}d=J[g+8>>2];Sa:{if(!K[x+36|0]){b=0;a=J[d+20>>2];Ta:{Ua:{if((a|0)>=2){b=J[d+28>>2];b=J[b+4>>2]-J[b>>2]>>2;break Ua}if((a|0)!=1)break Ta}if(J[d+24>>2]<=0)break Ta;h=J[J[d+28>>2]>>2];j=b<<2;while(1){c=a;e=J[d+24>>2];Va:{if((e|0)<=0)break Va;a=h;b=e;if(b&1){l=J[a>>2];J[a>>2]=(l|0)<0?0-(0-l>>7)|0:l>>>7|0;b=b-1|0;a=a+4|0}if((e|0)==1)break Va;while(1){e=J[a>>2];J[a>>2]=(e|0)<0?0-(0-e>>7)|0:e>>>7|0;e=J[a+ +4>>2];J[a+4>>2]=(e|0)<0?0-(0-e>>7)|0:e>>>7|0;a=a+8|0;e=b-3|0;b=b-2|0;if(e>>>0<4294967294)continue;break}}a=c-1|0;h=h+j|0;if((c|0)>1)continue;break}}break Sa}oF(d,6)}if(K[v+348|0]<(i|0)){J[N>>2]=i;rd(211504,N);break _}Q=Q+1|0;g=g+716|0;if((m|0)!=(g|0))continue;break}}a=Vi(0,0);J[t+32>>2]=a;if(!a){rd(211550,0);break _}a=jl(65424);J[t+28>>2]=a;if(!a)break _;J[a+12>>2]=ba;I[a+20>>1]=256;J[a+16>>2]=0;if(il(J[t+32>>2],J[t+16>>2],a)){rd(211572,0);break _}Si(J[t+28>>2]);J[t+28>>2]=0;j=J[v+48>>2];Wa:{if((j| +0)<=0)break Wa;i=0;while(1){if(J[J[x+48>>2]+P(i,716)>>2]!=K[v+69|0]){a=jl(65362);J[t+28>>2]=a;if(!a)break _;b=J[x+48>>2];H[a+24|0]=0;c=J[b>>2];H[a+25|0]=c-1;H[a+13|0]=K[x+21|0];J[a+16>>2]=J[x+24>>2];H[a+26|0]=K[b+292|0]-2;H[a+27|0]=K[b+296|0]-2;H[a+28|0]=J[b+304>>2];H[a+29|0]=J[b+12>>2];H[a+20|0]=K[x+28|0]!=0;Xa:{if((c|0)<=0)break Xa;b=J[b+4>>2];e=0;if((c|0)!=1){d=c&-2;j=0;while(1){h=a+36|0;g=h+(e<<1)|0;l=b+(e<<6)|0;H[g|0]=J[l+16>>2];H[g+1|0]=J[l+20>>2];g=e|1;h=h+(g<<1)|0;g=b+(g<<6)|0;H[h|0]=J[g+ +16>>2];H[h+1|0]=J[g+20>>2];e=e+2|0;j=j+2|0;if((d|0)!=(j|0))continue;break}}if(!(c&1))break Xa;c=a+(e<<1)|0;b=b+(e<<6)|0;H[c+36|0]=J[b+16>>2];H[c+37|0]=J[b+20>>2]}if(il(J[t+32>>2],J[t+16>>2],a))break _;Si(J[t+28>>2]);J[t+28>>2]=0;j=J[v+48>>2]}i=i+1|0;if((j|0)>(i|0))continue;break}if((j|0)<=0)break Wa;d=J[x+48>>2];g=0;while(1){Ya:{Za:{b=J[v+52>>2]+P(g,412)|0;a=J[b+8>>2];if((a|0)!=J[d+308>>2])break Za;e=0;if((a|0)<=0)break Ya;while(1){c=e<<2;if(J[(c+b|0)+12>>2]!=J[(c+d|0)+312>>2])break Za;e=e+1|0;if((a| +0)!=(e|0))continue;break}break Ya}a=jl(65373);J[t+28>>2]=a;if(!a)break _;J[a+12>>2]=g;H[a+28|0]=K[v+348|0];H[a+16|0]=!J[d+12>>2]<<1;b=J[d+308>>2];J[a+24>>2]=d+312;J[a+20>>2]=b;if(il(J[t+32>>2],J[t+16>>2],a))break _;J[a+24>>2]=0;Si(J[t+28>>2]);J[t+28>>2]=0;j=J[v+48>>2]}d=d+716|0;g=g+1|0;if((j|0)>(g|0))continue;break}}a=jl(65427);J[t+28>>2]=a;if(!a)break _;if(il(J[t+32>>2],J[t+16>>2],a)){rd(211597,0);break _}Si(J[t+28>>2]);J[t+28>>2]=0;ha=J[J[t+32>>2]+60>>2];_a:{$a:{a=J[t+12>>2];b=J[a+44>>2];if(b){v= +J[a+48>>2];ja=v+P(b,716)|0;while(1){a=J[v>>2];if(a){e=J[v+4>>2];ka=e+(a<<6)|0;while(1){c=J[e+56>>2];ab:{if(!c)break ab;a=J[e+52>>2];if(!a)break ab;la=P(a,36)+c|0;while(1){if(!(!J[c+4>>2]|!J[e+32>>2])){h=J[c>>2];Q=0;while(1){b=J[h+28>>2];bb:{if(!b)break bb;a=J[h+24>>2];ca=P(a,60)+b|0;if(a){while(1){a=0;i=J[b+28>>2];s=J[i+20>>2];cb:{if((s|0)<=0)break cb;d=J[i+24>>2];if((d|0)<=0)break cb;w=d&-2;m=d&1;y=J[i+28>>2];l=0;while(1){i=J[y+(l<<2)>>2];g=0;f=0;if((d|0)!=1)while(1){o=g<<2;k=J[i+(o|4)>>2];j=k>> +31;S=J[i+o>>2];o=S>>31;j=(j^k)-j|0;o=(o^S)-o|0;a=(a|0)<(o|0)?o:a;a=(a|0)<(j|0)?j:a;g=g+2|0;f=f+2|0;if((w|0)!=(f|0))continue;break}if(m){g=J[i+(g<<2)>>2];i=g>>31;i=(g^i)-i|0;a=(a|0)<(i|0)?i:a}l=l+1|0;if((s|0)!=(l|0))continue;break}}if((mn(a)|0)>=6)a=mn(a)-5|0;else a=0;J[b+36>>2]=a;b=b+60|0;if((ca|0)!=(b|0))continue;break}b=J[h+28>>2]}d=(b|0)==(ca|0);if(d)break bb;i=J[c+12>>2];a=b;while(1){g=i-J[a+36>>2]|0;J[a+12>>2]=g;if((g|0)<0)break $a;a=a+60|0;if((ca|0)!=(a|0))continue;break}if(d)break bb;while(1){q= +0;g=0;S=0;y=b;a=Vi(0,0);J[b+20>>2]=a;db:{if(a){l=b;b=Dc(40);eb:{if(b){J[b+12>>2]=19;J[b+24>>2]=a;d=Dc(76);J[b+16>>2]=d;if(d){J[b+28>>2]=-1;J[b+20>>2]=d;J[b+32>>2]=-1;J[b+36>>2]=0;J[b+8>>2]=12;J[b>>2]=0;J[b+4>>2]=32768;i=J[b+12>>2];if((i|0)<=0)break eb;j=i&7;fb:{if(!j){a=i;break fb}a=i;while(1){J[d>>2]=2647936;d=d+4|0;a=a-1|0;g=g+1|0;if((j|0)!=(g|0))continue;break}}if(i>>>0<8)break eb;while(1){J[d+28>>2]=2647936;J[d+24>>2]=2647936;J[d+20>>2]=2647936;J[d+16>>2]=2647936;J[d+12>>2]=2647936;J[d+8>>2]= +2647936;J[d+4>>2]=2647936;J[d>>2]=2647936;d=d+32|0;i=a-9|0;a=a-8|0;if(i>>>0<4294967294)continue;break}break eb}uc(b)}b=0}J[l+24>>2]=b;if(b){hba(b);a=0;b=J[y+36>>2];i=(b|0)>0?P(b,3)-2|0:0;J[y>>2]=i;gb:{if((i|0)>0){a=Dc(P(i,72));J[y+4>>2]=a;if(a){i=J[y>>2];break gb}fa(202091,199055,223,211992);B()}J[y+4>>2]=0}hb:{if(i){i=P(i,72)+a|0;g=i-72|0;while(1){J[a>>2]=0;J[a+4>>2]=0;b=J[v+304>>2];l=b>>>2&1;j=b&1;ib:{jb:{d=(a-J[y+4>>2]|0)/72|0;o=J[y>>2];if((d|0)!=(o-1|0)){b=1;kb:{if(l)break kb;b=94;if(!j)break kb; +b=10-d|0;if((d|0)<10)break kb;b=(d|0)%3|0;if(b>>>0>=3)break jb;b=J[(b<<2)+211864>>2]}d=o-d|0;b=(((b|0)<(d|0)?b:d)|0)<2}else b=1;break ib}fa(198127,198937,130,211822);B()}J[a+12>>2]=b;b=sba((a-J[y+4>>2]|0)/72|0,0,J[v+304>>2]&1);J[a+32>>2]=-1;J[a+8>>2]=b;if((a|0)==(g|0)){if(J[a+12>>2]!=1)break hb;J[a+12>>2]=1}a=a+72|0;if((i|0)!=(a|0))continue;break}}a=J[y+28>>2];a=Dk(J[a+20>>2]+2|0,J[a+24>>2]+2|0);J[y+32>>2]=a;if(a){a=J[y+4>>2];_=J[y>>2];if((_|0)>0){C=J[y+36>>2]-1|0;o=a;while(1){lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:switch(J[o+ +8>>2]-1|0){default:fa(203936,199055,253,211992);B();case 0:break rb;case 1:break sb}if(q)break rb;q=hF(J[y+20>>2],204224);if(!q)break qb;a=J[y+4>>2]}oa=o,pa=tj(J[y+20>>2]),J[oa>>2]=pa;ia=(((o-a|0)/72|0)+2|0)%3|0;if((C|0)>=0){X=J[v+304>>2];T=X>>>4&1;da=X>>>3&1;aa=J[o+12>>2];tb:switch(ia|0){case 1:break nb;case 2:break ob;case 0:break tb;default:break pb}if(J[o+8>>2]!=1)break mb;g=J[c+8>>2];k=J[y+24>>2];a=J[y+28>>2];b=J[y+32>>2];d=0;J[o+64>>2]=0;s=J[a+20>>2];if(J[b+20>>2]>=2){d=J[b+28>>2];d=J[d+4>> +2]-J[d>>2]>>2}i=J[a+24>>2];ub:{vb:{if((s|0)>=2){l=J[a+28>>2];m=J[l+4>>2]-J[l>>2]|0;j=m>>2;break vb}m=0;j=0;if((s|0)!=1)break ub}if((i|0)<=0)break ub;z=g<<8;p=64<>2]+4>>2]+4|0;w=J[J[a+28>>2]>>2];W=0-d<<2;F=m<<2;n=d<<2;X=n<<2;while(1){b=i;a=l;g=w;while(1){f=b;b=J[a>>2];m=b&255;if(!(!m|b&20480)){d=J[g>>2];m=J[k+16>>2]+(J[((m|z)<<2)+2745584>>2]<<2)|0;J[k+20>>2]=m;m=J[m>>2];u=d;d=d>>31;d=p&(u^d)-d;wb:{if(J[m+4>>2]!=((d|0)!=0|0)){Lg(k);break wb}m=J[m>>2];u=J[k+4>>2]-m| +0;J[k+4>>2]=u;if(u&32768){J[k>>2]=m+J[k>>2];break wb}Mg(k)}if(d){m=J[g>>2];d=m>>31;J[o+64>>2]=J[o+64>>2]+J[E+(((d^m)-d>>>C&127)<<2)>>2];b=b>>>2&1020;d=J[k+16>>2]+(J[b+2750704>>2]<<2)|0;J[k+20>>2]=d;d=J[d>>2];xb:{if(J[d+4>>2]!=(J[b+2749680>>2]^m>>>31)){Lg(k);break xb}b=J[d>>2];d=J[k+4>>2]-b|0;J[k+4>>2]=d;if(d&32768){J[k>>2]=b+J[k>>2];break xb}Mg(k)}b=a+n|0;yb:{zb:{Ab:{if(da){J[b+4>>2]=J[b+4>>2]|8;d=b-4|0;J[d>>2]=J[d>>2]|1;d=J[b>>2];if((m|0)>=0){m=d|16;break zb}m=d|272;break Ab}d=a+W|0;J[d+4>>2]=J[d+ +4>>2]|4;u=d-4|0;J[u>>2]=J[u>>2]|2;u=b-4|0;J[u>>2]=J[u>>2]|1;J[b+4>>2]=J[b+4>>2]|8;u=J[d>>2];if((m|0)>=0){J[d>>2]=u|64;m=J[b>>2]|16;break zb}J[d>>2]=u|1088;m=J[b>>2]|272}u=544;d=2176;break yb}u=32;d=128}J[b>>2]=m;b=a-4|0;J[b>>2]=J[b>>2]|u;J[a+4>>2]=d|J[a+4>>2];b=J[a>>2]|4096}else b=J[a>>2];J[a>>2]=b|16384}Bb:{if(s>>>0<2)break Bb;U=j<<2;m=U+g|0;b=a+n|0;d=J[b>>2];r=d&255;if(!(!r|d&20480)){u=J[m>>2];r=J[k+16>>2]+(J[((r|z)<<2)+2745584>>2]<<2)|0;J[k+20>>2]=r;r=J[r>>2];G=u;u=u>>31;u=p&(G^u)-u;Cb:{if(J[r+ +4>>2]!=((u|0)!=0|0)){Lg(k);break Cb}r=J[r>>2];D=J[k+4>>2]-r|0;J[k+4>>2]=D;if(D&32768){J[k>>2]=r+J[k>>2];break Cb}Mg(k)}if(u){u=J[m>>2];r=u>>31;J[o+64>>2]=J[o+64>>2]+J[E+(((u^r)-r>>>C&127)<<2)>>2];d=d>>>2&1020;r=J[k+16>>2]+(J[d+2750704>>2]<<2)|0;J[k+20>>2]=r;r=J[r>>2];Db:{if(J[r+4>>2]!=(J[d+2749680>>2]^u>>>31)){Lg(k);break Db}d=J[r>>2];r=J[k+4>>2]-d|0;J[k+4>>2]=r;if(r&32768){J[k>>2]=d+J[k>>2];break Db}Mg(k)}J[a+4>>2]=J[a+4>>2]|4;d=a-4|0;J[d>>2]=J[d>>2]|2;d=b+n|0;r=d-4|0;J[r>>2]=J[r>>2]|1;J[d+4>>2]= +J[d+4>>2]|8;u=(u|0)<0;J[a>>2]=J[a>>2]|(u?1088:64);J[d>>2]=J[d>>2]|(u?272:16);d=b-4|0;J[d>>2]=J[d>>2]|(u?544:32);J[b+4>>2]=J[b+4>>2]|(u?2176:128);d=J[b>>2]|4096}else d=J[b>>2];J[b>>2]=d|16384}if(s>>>0<3)break Bb;u=m+U|0;d=b+n|0;m=J[d>>2];D=m&255;if(!(!D|m&20480)){r=J[u>>2];D=J[k+16>>2]+(J[((z|D)<<2)+2745584>>2]<<2)|0;J[k+20>>2]=D;D=J[D>>2];G=r;r=r>>31;r=p&(G^r)-r;Eb:{if(J[D+4>>2]!=((r|0)!=0|0)){Lg(k);break Eb}D=J[D>>2];G=J[k+4>>2]-D|0;J[k+4>>2]=G;if(G&32768){J[k>>2]=D+J[k>>2];break Eb}Mg(k)}if(r){r= +J[u>>2];D=r>>31;J[o+64>>2]=J[o+64>>2]+J[E+(((r^D)-D>>>C&127)<<2)>>2];m=m>>>2&1020;D=J[k+16>>2]+(J[m+2750704>>2]<<2)|0;J[k+20>>2]=D;D=J[D>>2];Fb:{if(J[D+4>>2]!=(J[m+2749680>>2]^r>>>31)){Lg(k);break Fb}m=J[D>>2];D=J[k+4>>2]-m|0;J[k+4>>2]=D;if(D&32768){J[k>>2]=m+J[k>>2];break Fb}Mg(k)}J[b+4>>2]=J[b+4>>2]|4;m=b-4|0;J[m>>2]=J[m>>2]|2;m=d+n|0;D=m-4|0;J[D>>2]=J[D>>2]|1;J[m+4>>2]=J[m+4>>2]|8;G=b;D=J[b>>2];b=(r|0)<0;J[G>>2]=D|(b?1088:64);J[m>>2]=J[m>>2]|(b?272:16);m=d-4|0;J[m>>2]=J[m>>2]|(b?544:32);J[d+4>> +2]=J[d+4>>2]|(b?2176:128);b=J[d>>2]|4096}else b=J[d>>2];J[d>>2]=b|16384}if(s>>>0<4)break Bb;b=d+n|0;m=J[b>>2];r=m&255;if(!r|m&20480)break Bb;U=u+U|0;u=J[U>>2];r=J[k+16>>2]+(J[((r|z)<<2)+2745584>>2]<<2)|0;J[k+20>>2]=r;r=J[r>>2];G=u;u=u>>31;u=p&(G^u)-u;Gb:{if(J[r+4>>2]!=((u|0)!=0|0)){Lg(k);break Gb}r=J[r>>2];D=J[k+4>>2]-r|0;J[k+4>>2]=D;if(D&32768){J[k>>2]=r+J[k>>2];break Gb}Mg(k)}if(u){u=J[U>>2];r=u>>31;J[o+64>>2]=J[o+64>>2]+J[E+(((u^r)-r>>>C&127)<<2)>>2];m=m>>>2&1020;r=J[k+16>>2]+(J[m+2750704>>2]<< +2)|0;J[k+20>>2]=r;r=J[r>>2];Hb:{if(J[r+4>>2]!=(J[m+2749680>>2]^u>>>31)){Lg(k);break Hb}m=J[r>>2];r=J[k+4>>2]-m|0;J[k+4>>2]=r;if(r&32768){J[k>>2]=m+J[k>>2];break Hb}Mg(k)}J[d+4>>2]=J[d+4>>2]|4;m=d-4|0;J[m>>2]=J[m>>2]|2;m=b+n|0;r=m-4|0;J[r>>2]=J[r>>2]|1;J[m+4>>2]=J[m+4>>2]|8;r=d;G=J[d>>2];d=(u|0)<0;J[r>>2]=G|(d?1088:64);J[m>>2]=J[m>>2]|(d?272:16);m=b-4|0;J[m>>2]=J[m>>2]|(d?544:32);J[b+4>>2]=J[b+4>>2]|(d?2176:128);d=J[b>>2]|4096}else d=J[b>>2];J[b>>2]=d|16384}g=g+4|0;a=a+4|0;b=f-1|0;if((f|0)>1)continue; +break}w=w+F|0;l=l+X|0;a=(s|0)>4;s=s-4|0;if(a)continue;break}}if(!aa)break lb;YO(k,T);break lb}fa(204990,199055,269,211992);B()}fa(204613,199055,256,211992);B()}fa(205541,199055,300,211992);B()}if(J[o+8>>2]==1){i=J[c+8>>2];n=J[y+24>>2];a=J[y+28>>2];d=J[y+32>>2];U=0;J[o+64>>2]=0;E=J[a+20>>2];if(J[d+20>>2]>=2){b=J[d+28>>2];U=J[b+4>>2]-J[b>>2]>>2}j=J[a+24>>2];Ib:{Jb:{if((E|0)>=2){b=J[a+28>>2];b=J[b+4>>2]-J[b>>2]|0;u=b>>2;break Jb}b=0;u=0;if((E|0)!=1)break Ib}if((j|0)<=0)break Ib;D=0-U|0;W=i<<8;r=64<< +C;F=C?2768112:2768624;l=J[J[d+28>>2]+4>>2]+4|0;w=J[J[a+28>>2]>>2];ma=b<<2;z=U<<2;na=z<<2;while(1){g=(E|0)>=4?4:E;a=j;s=w;d=l;while(1){m=a;b=s;i=g;Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{Tb:{Ub:{Vb:{Wb:{a=d;if(L[a>>1]&20735|E>>>0<4)break Wb;f=a+z|0;if(L[f>>1]&20735)break Wb;f=f+z|0;if(L[f>>1]&20735|L[f+z>>1]&20735)break Wb;f=0;a=b;Xb:{while(1){i=J[a>>2];b=i>>31;if(r&(b^i)-b)break Xb;a=(u<<2)+a|0;f=f+1|0;if((g|0)!=(f|0))continue;break}f=g}a=J[n+16>>2];J[n+20>>2]=a;a=J[a>>2];b=J[a+4>>2];if(f>>>0>3)break Ub; +Yb:{if((b|0)!=1){Lg(n);break Yb}a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(b&32768){J[n>>2]=a+J[n>>2];break Yb}Mg(n)}a=J[n+16>>2];J[n+20>>2]=a+72;a=J[a+72>>2];Zb:{if(J[a+4>>2]!=(f>>>1|0)){Lg(n);break Zb}a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(b&32768){J[n>>2]=a+J[n>>2];break Zb}Mg(n)}a=J[J[n+20>>2]>>2];_b:{if(J[a+4>>2]!=(f&1)){Lg(n);break _b}a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(b&32768){J[n>>2]=a+J[n>>2];break _b}Mg(n)}i=g-f|0;b=(P(f,u)<<2)+s|0;a=(P(f,U)<<2)+d|0;switch(f|0){case 3:break Mb;case 2:break Ob; +case 1:break Qb;case 0:break Vb;default:break Wb}}f=J[a>>2];if(f&20480)break Rb;k=J[n+16>>2]+(J[((W|f&255)<<2)+2745584>>2]<<2)|0;J[n+20>>2]=k;p=J[b>>2];f=p>>31;k=J[k>>2];f=r&(f^p)-f;$b:{if(J[k+4>>2]!=((f|0)!=0|0)){Lg(n);break $b}k=J[k>>2];p=J[n+4>>2]-k|0;J[n+4>>2]=p;if(p&32768){J[n>>2]=k+J[n>>2];break $b}Mg(n)}if(f)break Vb;f=J[a>>2];break Rb}p=J[a>>2];k=J[b>>2];f=k>>31;J[o+64>>2]=J[o+64>>2]+J[F+(((f^k)-f>>>C&127)<<2)>>2];f=p>>>2&1020;p=J[n+16>>2]+(J[f+2750704>>2]<<2)|0;J[n+20>>2]=p;p=J[p>>2];ac:{if(J[p+ +4>>2]!=(J[f+2749680>>2]^k>>>31)){Lg(n);break ac}f=J[p>>2];p=J[n+4>>2]-f|0;J[n+4>>2]=p;if(p&32768){J[n>>2]=f+J[n>>2];break ac}Mg(n)}p=a+z|0;bc:{if(da){J[p+4>>2]=J[p+4>>2]|8;f=p-4|0;J[f>>2]=J[f>>2]|1;f=J[p>>2];if((k|0)>=0){k=f|16;break Tb}k=f|272;break bc}f=(D<<2)+a|0;J[f+4>>2]=J[f+4>>2]|4;G=f-4|0;J[G>>2]=J[G>>2]|2;G=p-4|0;J[G>>2]=J[G>>2]|1;J[p+4>>2]=J[p+4>>2]|8;G=J[f>>2];if((k|0)>=0){J[f>>2]=G|64;k=J[p>>2]|16;break Tb}J[f>>2]=G|1088;k=J[p>>2]|272}G=2176;f=544;break Sb}if(b){Lg(n);break Kb}a=J[a>>2]; +b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(b&32768){J[n>>2]=a+J[n>>2];break Kb}Mg(n);break Kb}G=128;f=32}J[p>>2]=k;k=a-4|0;J[k>>2]=J[k>>2]|f;J[a+4>>2]=G|J[a+4>>2];f=J[a>>2]|4096;J[a>>2]=f}J[a>>2]=f&-16385;if((i|0)<2)break Kb;i=i-1|0;b=(u<<2)+b|0;a=a+z|0;f=J[a>>2];if(f&20480)break Pb;k=J[n+16>>2]+(J[((W|f&255)<<2)+2745584>>2]<<2)|0;J[n+20>>2]=k;p=J[b>>2];f=p>>31;k=J[k>>2];f=r&(f^p)-f;cc:{if(J[k+4>>2]!=((f|0)!=0|0)){Lg(n);break cc}k=J[k>>2];p=J[n+4>>2]-k|0;J[n+4>>2]=p;if(p&32768){J[n>>2]=k+J[n>>2];break cc}Mg(n)}if(f)break Qb; +f=J[a>>2];break Pb}k=J[a>>2];p=J[b>>2];f=p>>31;J[o+64>>2]=J[o+64>>2]+J[F+(((f^p)-f>>>C&127)<<2)>>2];f=k>>>2&1020;k=J[n+16>>2]+(J[f+2750704>>2]<<2)|0;J[n+20>>2]=k;k=J[k>>2];dc:{if(J[k+4>>2]!=(J[f+2749680>>2]^p>>>31)){Lg(n);break dc}f=J[k>>2];k=J[n+4>>2]-f|0;J[n+4>>2]=k;if(k&32768){J[n>>2]=f+J[n>>2];break dc}Mg(n)}f=(D<<2)+a|0;J[f+4>>2]=J[f+4>>2]|4;k=f-4|0;J[k>>2]=J[k>>2]|2;k=a+z|0;G=k-4|0;J[G>>2]=J[G>>2]|1;J[k+4>>2]=J[k+4>>2]|8;G=f;ea=J[f>>2];f=(p|0)<0;J[G>>2]=ea|(f?1088:64);J[k>>2]=J[k>>2]|(f?272: +16);k=a-4|0;J[k>>2]=J[k>>2]|(f?544:32);J[a+4>>2]=J[a+4>>2]|(f?2176:128);f=J[a>>2]|4096;J[a>>2]=f}J[a>>2]=f&-16385;if((i|0)<2)break Kb;i=i-1|0;b=(u<<2)+b|0;a=a+z|0;f=J[a>>2];if(f&20480)break Nb;k=J[n+16>>2]+(J[((W|f&255)<<2)+2745584>>2]<<2)|0;J[n+20>>2]=k;p=J[b>>2];f=p>>31;k=J[k>>2];f=r&(f^p)-f;ec:{if(J[k+4>>2]!=((f|0)!=0|0)){Lg(n);break ec}k=J[k>>2];p=J[n+4>>2]-k|0;J[n+4>>2]=p;if(p&32768){J[n>>2]=k+J[n>>2];break ec}Mg(n)}if(f)break Ob;f=J[a>>2];break Nb}k=J[a>>2];p=J[b>>2];f=p>>31;J[o+64>>2]=J[o+ +64>>2]+J[F+(((f^p)-f>>>C&127)<<2)>>2];f=k>>>2&1020;k=J[n+16>>2]+(J[f+2750704>>2]<<2)|0;J[n+20>>2]=k;k=J[k>>2];fc:{if(J[k+4>>2]!=(J[f+2749680>>2]^p>>>31)){Lg(n);break fc}f=J[k>>2];k=J[n+4>>2]-f|0;J[n+4>>2]=k;if(k&32768){J[n>>2]=f+J[n>>2];break fc}Mg(n)}f=(D<<2)+a|0;J[f+4>>2]=J[f+4>>2]|4;k=f-4|0;J[k>>2]=J[k>>2]|2;k=a+z|0;G=k-4|0;J[G>>2]=J[G>>2]|1;J[k+4>>2]=J[k+4>>2]|8;G=f;ea=J[f>>2];f=(p|0)<0;J[G>>2]=ea|(f?1088:64);J[k>>2]=J[k>>2]|(f?272:16);k=a-4|0;J[k>>2]=J[k>>2]|(f?544:32);J[a+4>>2]=J[a+4>>2]|(f? +2176:128);f=J[a>>2]|4096;J[a>>2]=f}J[a>>2]=f&-16385;if((i|0)<2)break Kb;a=a+z|0;i=J[a>>2];if(i&20480)break Lb;f=J[n+16>>2]+(J[((W|i&255)<<2)+2745584>>2]<<2)|0;J[n+20>>2]=f;b=(u<<2)+b|0;k=J[b>>2];i=k>>31;f=J[f>>2];i=r&(i^k)-i;gc:{if(J[f+4>>2]!=((i|0)!=0|0)){Lg(n);break gc}f=J[f>>2];k=J[n+4>>2]-f|0;J[n+4>>2]=k;if(k&32768){J[n>>2]=f+J[n>>2];break gc}Mg(n)}if(i)break Mb;i=J[a>>2];break Lb}i=J[a>>2];f=J[b>>2];b=f>>31;J[o+64>>2]=J[o+64>>2]+J[F+(((b^f)-b>>>C&127)<<2)>>2];b=i>>>2&1020;i=J[n+16>>2]+(J[b+2750704>> +2]<<2)|0;J[n+20>>2]=i;i=J[i>>2];hc:{if(J[i+4>>2]!=(J[b+2749680>>2]^f>>>31)){Lg(n);break hc}b=J[i>>2];i=J[n+4>>2]-b|0;J[n+4>>2]=i;if(i&32768){J[n>>2]=b+J[n>>2];break hc}Mg(n)}b=(D<<2)+a|0;J[b+4>>2]=J[b+4>>2]|4;i=b-4|0;J[i>>2]=J[i>>2]|2;i=a+z|0;k=i-4|0;J[k>>2]=J[k>>2]|1;J[i+4>>2]=J[i+4>>2]|8;k=b;G=J[b>>2];b=(f|0)<0;J[k>>2]=G|(b?1088:64);J[i>>2]=J[i>>2]|(b?272:16);i=a-4|0;J[i>>2]=J[i>>2]|(b?544:32);J[a+4>>2]=J[a+4>>2]|(b?2176:128);i=J[a>>2]|4096;J[a>>2]=i}J[a>>2]=i&-16385}s=s+4|0;d=d+4|0;a=m-1|0;if((m| +0)>1)continue;break}w=w+ma|0;l=l+na|0;a=(E|0)>4;E=E-4|0;if(a)continue;break}}ic:{if(!(X&32))break ic;a=J[n+16>>2];J[n+20>>2]=a+72;a=J[a+72>>2];jc:{if(J[a+4>>2]==1){a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(!(b&32768)){Mg(n);break jc}J[n>>2]=a+J[n>>2];break jc}Lg(n)}a=J[J[n+20>>2]>>2];kc:{if(!J[a+4>>2]){a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(!(b&32768)){Mg(n);break kc}J[n>>2]=a+J[n>>2];break kc}Lg(n)}a=J[J[n+20>>2]>>2];lc:{if(J[a+4>>2]==1){a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(!(b&32768)){Mg(n); +break lc}J[n>>2]=a+J[n>>2];break lc}Lg(n)}a=J[J[n+20>>2]>>2];if(!J[a+4>>2]){a=J[a>>2];b=J[n+4>>2]-a|0;J[n+4>>2]=b;if(!(b&32768)){Mg(n);break ic}J[n>>2]=a+J[n>>2];break ic}Lg(n)}if(!aa)break lb;YO(n,T);break lb}fa(205251,199055,294,211992);B()}if(J[o+8>>2]==1){f=J[y+24>>2];a=J[y+28>>2];g=J[y+32>>2];d=0;J[o+64>>2]=0;s=J[a+20>>2];if(J[g+20>>2]>=2){b=J[g+28>>2];d=J[b+4>>2]-J[b>>2]>>2}i=J[a+24>>2];mc:{nc:{if((s|0)>=2){b=J[a+28>>2];b=J[b+4>>2]-J[b>>2]|0;k=b>>2;break nc}b=0;k=0;if((s|0)!=1)break mc}if((i| +0)<=0)break mc;w=64<>2]+4>>2]+4|0;j=J[J[a+28>>2]>>2];r=b<<2;n=d<<2;U=n<<2;while(1){b=i;g=j;a=l;while(1){d=J[a>>2];if((d&20480)==4096){z=J[g>>2];u=z>>31;u=(u^z)-u|0;J[o+64>>2]=J[o+64>>2]+J[m+((u>>>C&127)<<2)>>2];d=J[f+16>>2]+(J[((d>>>2&2048|d&255)<<2)+2751728>>2]<<2)|0;J[f+20>>2]=d;d=J[d>>2];oc:{if(J[d+4>>2]!=((u&w)!=0|0)){Lg(f);break oc}d=J[d>>2];u=J[f+4>>2]-d|0;J[f+4>>2]=u;if(u&32768){J[f>>2]=d+J[f>>2];break oc}Mg(f)}J[a>>2]=J[a>>2]|8192}d=b;pc:{if(s>>>0<2)break pc; +u=k<<2;z=u+g|0;b=a+n|0;p=J[b>>2];if((p&20480)==4096){D=J[z>>2];E=D>>31;E=(E^D)-E|0;J[o+64>>2]=J[o+64>>2]+J[m+((E>>>C&127)<<2)>>2];p=J[f+16>>2]+(J[((p>>>2&2048|p&255)<<2)+2751728>>2]<<2)|0;J[f+20>>2]=p;p=J[p>>2];qc:{if(J[p+4>>2]!=((w&E)!=0|0)){Lg(f);break qc}p=J[p>>2];E=J[f+4>>2]-p|0;J[f+4>>2]=E;if(E&32768){J[f>>2]=p+J[f>>2];break qc}Mg(f)}J[b>>2]=J[b>>2]|8192}if(s>>>0<3)break pc;z=u+z|0;b=b+n|0;p=J[b>>2];if((p&20480)==4096){D=J[z>>2];E=D>>31;E=(E^D)-E|0;J[o+64>>2]=J[o+64>>2]+J[m+((E>>>C&127)<<2)>> +2];p=J[f+16>>2]+(J[((p>>>2&2048|p&255)<<2)+2751728>>2]<<2)|0;J[f+20>>2]=p;p=J[p>>2];rc:{if(J[p+4>>2]!=((w&E)!=0|0)){Lg(f);break rc}p=J[p>>2];E=J[f+4>>2]-p|0;J[f+4>>2]=E;if(E&32768){J[f>>2]=p+J[f>>2];break rc}Mg(f)}J[b>>2]=J[b>>2]|8192}if(s>>>0<4)break pc;b=b+n|0;p=J[b>>2];if((p&20480)!=4096)break pc;z=J[u+z>>2];u=z>>31;u=(u^z)-u|0;J[o+64>>2]=J[o+64>>2]+J[m+((u>>>C&127)<<2)>>2];z=J[f+16>>2]+(J[((p>>>2&2048|p&255)<<2)+2751728>>2]<<2)|0;J[f+20>>2]=z;z=J[z>>2];sc:{if(J[z+4>>2]!=((u&w)!=0|0)){Lg(f);break sc}u= +J[z>>2];z=J[f+4>>2]-u|0;J[f+4>>2]=z;if(z&32768){J[f>>2]=u+J[f>>2];break sc}Mg(f)}J[b>>2]=J[b>>2]|8192}g=g+4|0;a=a+4|0;b=d-1|0;if((d|0)>1)continue;break}j=j+r|0;l=l+U|0;a=(s|0)>4;s=s-4|0;if(a)continue;break}}if(!aa)break lb;YO(f,T);break lb}a=J[y+28>>2];i=J[y+32>>2];g=0;J[o+64>>2]=0;b=J[a+20>>2];if(J[i+20>>2]>=2){d=J[i+28>>2];g=J[d+4>>2]-J[d>>2]>>2}l=J[a+24>>2];tc:{uc:{vc:{wc:{xc:{yc:{zc:{Ac:{Bc:{Cc:{if((b|0)>=2){d=J[a+28>>2];d=J[d+4>>2]-J[d>>2]|0;u=d>>2;break Cc}d=0;u=0;if((b|0)!=1)break Bc}if((l| +0)<=0)break Bc;s=64<>2]+4>>2]+4|0;f=J[J[a+28>>2]>>2];E=d<<2;m=g<<2;r=m<<2;while(1){d=l;a=j;i=f;while(1){if((J[a>>2]&20480)==4096){k=J[i>>2];g=k>>31;g=(g^k)-g|0;J[o+64>>2]=J[o+64>>2]+J[w+((g>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break Ac;g=(g&s)!=0;k=J[q+8>>2];n=k-1|0;J[q+8>>2]=n;Dc:{if((k|0)>0){J[q+4>>2]=J[q+4>>2]|g<>2];k=n<<8&65280;z=(k|0)==65280?6:7;J[q+8>>2]=z;J[q+4>>2]=k|g<>2];z=J[g+8>>2];if(z&7)break lb;p=J[g+64>>2];if((p|0)>=0&(p| +0)<=J[g+60>>2])break zc;J[g+4>>2]=J[g+4>>2]|32;z=J[g+28>>2];J[g+28>>2]=z-1;if((z|0)>0){J[g+60>>2]=J[g+60>>2]+1;k=g;g=J[g+24>>2];J[k+24>>2]=g+1;H[g|0]=n;break Dc}if((bd(g,k>>>8|0)|0)==-1)break lb}J[a>>2]=J[a>>2]|8192}g=d;Ec:{if(b>>>0<2)break Ec;n=u<<2;z=n+i|0;k=a+m|0;if((J[k>>2]&20480)==4096){p=J[z>>2];d=p>>31;d=(d^p)-d|0;J[o+64>>2]=J[o+64>>2]+J[w+((d>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break yc;d=(d&s)!=0;p=J[q+8>>2];U=p-1|0;J[q+8>>2]=U;Fc:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|d<>2]; +p=U<<8&65280;D=(p|0)==65280?6:7;J[q+8>>2]=D;J[q+4>>2]=p|d<>2];D=J[d+8>>2];if(D&7)break lb;W=J[d+64>>2];if((W|0)>=0&(W|0)<=J[d+60>>2])break xc;J[d+4>>2]=J[d+4>>2]|32;D=J[d+28>>2];J[d+28>>2]=D-1;if((D|0)>0){J[d+60>>2]=J[d+60>>2]+1;G=d;d=J[d+24>>2];J[G+24>>2]=d+1;H[d|0]=U;break Fc}if((bd(d,p>>>8|0)|0)==-1)break lb}J[k>>2]=J[k>>2]|8192}if(b>>>0<3)break Ec;z=n+z|0;k=k+m|0;if((J[k>>2]&20480)==4096){p=J[z>>2];d=p>>31;d=(d^p)-d|0;J[o+64>>2]=J[o+64>>2]+J[w+((d>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break wc; +d=(d&s)!=0;p=J[q+8>>2];U=p-1|0;J[q+8>>2]=U;Gc:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|d<>2];p=U<<8&65280;D=(p|0)==65280?6:7;J[q+8>>2]=D;J[q+4>>2]=p|d<>2];D=J[d+8>>2];if(D&7)break lb;W=J[d+64>>2];if((W|0)>=0&(W|0)<=J[d+60>>2])break vc;J[d+4>>2]=J[d+4>>2]|32;D=J[d+28>>2];J[d+28>>2]=D-1;if((D|0)>0){J[d+60>>2]=J[d+60>>2]+1;G=d;d=J[d+24>>2];J[G+24>>2]=d+1;H[d|0]=U;break Gc}if((bd(d,p>>>8|0)|0)==-1)break lb}J[k>>2]=J[k>>2]|8192}if(b>>>0<4)break Ec;k=k+m|0;if((J[k>>2]&20480)!=4096)break Ec; +n=J[n+z>>2];d=n>>31;d=(d^n)-d|0;J[o+64>>2]=J[o+64>>2]+J[w+((d>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break uc;d=(d&s)!=0;n=J[q+8>>2];z=n-1|0;J[q+8>>2]=z;Hc:{if((n|0)>0){J[q+4>>2]=J[q+4>>2]|d<>2];n=z<<8&65280;p=(n|0)==65280?6:7;J[q+8>>2]=p;J[q+4>>2]=n|d<>2];p=J[d+8>>2];if(p&7)break lb;U=J[d+64>>2];if((U|0)>=0&(U|0)<=J[d+60>>2])break tc;J[d+4>>2]=J[d+4>>2]|32;p=J[d+28>>2];J[d+28>>2]=p-1;if((p|0)>0){J[d+60>>2]=J[d+60>>2]+1;n=d;d=J[d+24>>2];J[n+24>>2]=d+1;H[d|0]=z;break Hc}if((bd(d, +n>>>8|0)|0)==-1)break lb}J[k>>2]=J[k>>2]|8192}i=i+4|0;a=a+4|0;d=g-1|0;if((g|0)>1)continue;break}f=f+E|0;j=j+r|0;a=(b|0)>4;b=b-4|0;if(a)continue;break}}if(!aa)break lb;Jy(q,42);break lb}fa(205721,199055,767,212026);B()}J[g+8>>2]=z|4;break lb}fa(205721,199055,774,212026);B()}J[d+8>>2]=D|4;break lb}fa(205721,199055,781,212026);B()}J[d+8>>2]=D|4;break lb}fa(205721,199055,788,212026);B()}J[d+8>>2]=p|4;break lb}a=J[y+28>>2];i=J[y+32>>2];g=0;J[o+64>>2]=0;b=J[a+20>>2];if(J[i+20>>2]>=2){d=J[i+28>>2];g=J[d+ +4>>2]-J[d>>2]>>2}s=J[a+24>>2];Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{if((b|0)>=2){d=J[a+28>>2];d=J[d+4>>2]-J[d>>2]|0;k=d>>2;break Vc}d=0;k=0;if((b|0)!=1)break Uc}if((s|0)<=0)break Uc;u=64<>2]+4>>2]+4|0;l=J[J[a+28>>2]>>2];U=0-g<<2;D=d<<2;n=g<<2;W=n<<2;while(1){d=s;a=j;i=l;while(1){w=d;d=J[a>>2];if(!(!(d&255)|d&20480)){Wc:{Xc:{Yc:{Zc:{_c:{$c:{if(K[q+16|0]&2){g=J[i>>2];d=g>>31;f=u&(d^g)-d;d=(f|0)!=0;g=J[q+8>>2];m=g-1|0;J[q+8>>2]=m;ad:{if((g|0)>0){J[q+ +4>>2]=J[q+4>>2]|d<>2];g=m<<8&65280;p=(g|0)==65280?6:7;J[q+8>>2]=p;J[q+4>>2]=g|d<>2];p=J[d+8>>2];if(p&7)break lb;E=J[d+64>>2];if((E|0)>=0&(E|0)<=J[d+60>>2])break Zc;J[d+4>>2]=J[d+4>>2]|32;p=J[d+28>>2];J[d+28>>2]=p-1;if((p|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=d;d=J[d+24>>2];J[g+24>>2]=d+1;H[d|0]=m;break ad}if((bd(d,g>>>8|0)|0)==-1)break lb}d=J[a>>2];if(!f)break Wc;f=J[i>>2];d=f>>31;J[o+64>>2]=J[o+64>>2]+J[z+(((d^f)-d>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break $c;d=f>>>31|0; +g=J[q+8>>2];m=g-1|0;J[q+8>>2]=m;bd:{if((g|0)>0){J[q+4>>2]=J[q+4>>2]|d<>2];g=m<<8&65280;p=(g|0)==65280?6:7;J[q+8>>2]=p;J[q+4>>2]=g|d<>2];p=J[d+8>>2];if(p&7)break lb;E=J[d+64>>2];if((E|0)>=0&(E|0)<=J[d+60>>2])break _c;J[d+4>>2]=J[d+4>>2]|32;p=J[d+28>>2];J[d+28>>2]=p-1;if((p|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=d;d=J[d+24>>2];J[g+24>>2]=d+1;H[d|0]=m;break bd}if((bd(d,g>>>8|0)|0)==-1)break lb}d=a+n|0;cd:{if(da){J[d+4>>2]=J[d+4>>2]|8;g=d-4|0;J[g>>2]=J[g>>2]|1;g=J[d>>2];if((f| +0)>=0){m=g|16;break Yc}m=g|272;break cd}g=a+U|0;J[g+4>>2]=J[g+4>>2]|4;m=g-4|0;J[m>>2]=J[m>>2]|2;m=d-4|0;J[m>>2]=J[m>>2]|1;J[d+4>>2]=J[d+4>>2]|8;m=J[g>>2];if((f|0)>=0){J[g>>2]=m|64;m=J[d>>2]|16;break Yc}J[g>>2]=m|1088;m=J[d>>2]|272}f=2176;g=544;break Xc}fa(205721,199055,572,212008);B()}fa(205960,199055,572,212008);B()}J[d+8>>2]=p|4;break lb}J[d+8>>2]=p|4;break lb}f=128;g=32}J[d>>2]=m;d=a-4|0;J[d>>2]=g|J[d>>2];J[a+4>>2]=J[a+4>>2]|f;d=J[a>>2]|4096}J[a>>2]=d|16384}dd:{if(b>>>0<2)break dd;E=k<<2;f=E+i| +0;d=a+n|0;g=J[d>>2];if(!(!(g&255)|g&20480)){if(!(K[q+16|0]&2))break Tc;m=J[f>>2];g=m>>31;p=u&(g^m)-g;g=(p|0)!=0;m=J[q+8>>2];r=m-1|0;J[q+8>>2]=r;ed:{if((m|0)>0){J[q+4>>2]=J[q+4>>2]|g<>2];m=r<<8&65280;F=(m|0)==65280?6:7;J[q+8>>2]=F;J[q+4>>2]=m|g<>2];F=J[g+8>>2];if(F&7)break lb;T=J[g+64>>2];if((T|0)>=0&(T|0)<=J[g+60>>2])break Sc;J[g+4>>2]=J[g+4>>2]|32;F=J[g+28>>2];J[g+28>>2]=F-1;if((F|0)>0){J[g+60>>2]=J[g+60>>2]+1;m=g;g=J[g+24>>2];J[m+24>>2]=g+1;H[g|0]=r;break ed}if((bd(g, m>>>8|0)|0)==-1)break lb}if(p){m=J[f>>2];g=m>>31;J[o+64>>2]=J[o+64>>2]+J[z+(((g^m)-g>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break Rc;g=m>>>31|0;p=J[q+8>>2];r=p-1|0;J[q+8>>2]=r;fd:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|g<>2];p=r<<8&65280;F=(p|0)==65280?6:7;J[q+8>>2]=F;J[q+4>>2]=p|g<>2];F=J[g+8>>2];if(F&7)break lb;T=J[g+64>>2];if((T|0)>=0&(T|0)<=J[g+60>>2])break Qc;J[g+4>>2]=J[g+4>>2]|32;F=J[g+28>>2];J[g+28>>2]=F-1;if((F|0)>0){J[g+60>>2]=J[g+60>>2]+1;G=g;g=J[g+24>>2];J[G+24>>2]= -g+1;H[g|0]=r;break fd}if((Uc(g,p>>>8|0)|0)==-1)break lb}J[a+4>>2]=J[a+4>>2]|4;g=a-4|0;J[g>>2]=J[g>>2]|2;g=d+n|0;p=g-4|0;J[p>>2]=J[p>>2]|1;J[g+4>>2]=J[g+4>>2]|8;m=(m|0)<0;J[a>>2]=J[a>>2]|(m?1088:64);J[g>>2]=J[g>>2]|(m?272:16);g=d-4|0;J[g>>2]=J[g>>2]|(m?544:32);J[d+4>>2]=J[d+4>>2]|(m?2176:128);g=J[d>>2]|4096}else g=J[d>>2];J[d>>2]=g|16384}if(b>>>0<3)break dd;m=f+E|0;g=d+n|0;f=J[g>>2];if(!(!(f&255)|f&20480)){if(!(K[q+16|0]&2))break Pc;p=J[m>>2];f=p>>31;r=u&(f^p)-f;f=(r|0)!=0;p=J[q+8>>2];F=p-1|0;J[q+ -8>>2]=F;gd:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|f<>2];p=F<<8&65280;T=(p|0)==65280?6:7;J[q+8>>2]=T;J[q+4>>2]=p|f<>2];T=J[f+8>>2];if(T&7)break lb;X=J[f+64>>2];if((X|0)>=0&(X|0)<=J[f+60>>2])break Oc;J[f+4>>2]=J[f+4>>2]|32;T=J[f+28>>2];J[f+28>>2]=T-1;if((T|0)>0){J[f+60>>2]=J[f+60>>2]+1;G=f;f=J[f+24>>2];J[G+24>>2]=f+1;H[f|0]=F;break gd}if((Uc(f,p>>>8|0)|0)==-1)break lb}if(r){p=J[m>>2];f=p>>31;J[o+64>>2]=J[o+64>>2]+J[z+(((f^p)-f>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break Nc;f= -p>>>31|0;r=J[q+8>>2];F=r-1|0;J[q+8>>2]=F;hd:{if((r|0)>0){J[q+4>>2]=J[q+4>>2]|f<>2];r=F<<8&65280;T=(r|0)==65280?6:7;J[q+8>>2]=T;J[q+4>>2]=r|f<>2];T=J[f+8>>2];if(T&7)break lb;X=J[f+64>>2];if((X|0)>=0&(X|0)<=J[f+60>>2])break Mc;J[f+4>>2]=J[f+4>>2]|32;T=J[f+28>>2];J[f+28>>2]=T-1;if((T|0)>0){J[f+60>>2]=J[f+60>>2]+1;r=f;f=J[f+24>>2];J[r+24>>2]=f+1;H[f|0]=F;break hd}if((Uc(f,r>>>8|0)|0)==-1)break lb}J[d+4>>2]=J[d+4>>2]|4;f=d-4|0;J[f>>2]=J[f>>2]|2;f=g+n|0;r=f-4|0;J[r>>2]=J[r>> +g+1;H[g|0]=r;break fd}if((bd(g,p>>>8|0)|0)==-1)break lb}J[a+4>>2]=J[a+4>>2]|4;g=a-4|0;J[g>>2]=J[g>>2]|2;g=d+n|0;p=g-4|0;J[p>>2]=J[p>>2]|1;J[g+4>>2]=J[g+4>>2]|8;m=(m|0)<0;J[a>>2]=J[a>>2]|(m?1088:64);J[g>>2]=J[g>>2]|(m?272:16);g=d-4|0;J[g>>2]=J[g>>2]|(m?544:32);J[d+4>>2]=J[d+4>>2]|(m?2176:128);g=J[d>>2]|4096}else g=J[d>>2];J[d>>2]=g|16384}if(b>>>0<3)break dd;m=f+E|0;g=d+n|0;f=J[g>>2];if(!(!(f&255)|f&20480)){if(!(K[q+16|0]&2))break Pc;p=J[m>>2];f=p>>31;r=u&(f^p)-f;f=(r|0)!=0;p=J[q+8>>2];F=p-1|0;J[q+ +8>>2]=F;gd:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|f<>2];p=F<<8&65280;T=(p|0)==65280?6:7;J[q+8>>2]=T;J[q+4>>2]=p|f<>2];T=J[f+8>>2];if(T&7)break lb;X=J[f+64>>2];if((X|0)>=0&(X|0)<=J[f+60>>2])break Oc;J[f+4>>2]=J[f+4>>2]|32;T=J[f+28>>2];J[f+28>>2]=T-1;if((T|0)>0){J[f+60>>2]=J[f+60>>2]+1;G=f;f=J[f+24>>2];J[G+24>>2]=f+1;H[f|0]=F;break gd}if((bd(f,p>>>8|0)|0)==-1)break lb}if(r){p=J[m>>2];f=p>>31;J[o+64>>2]=J[o+64>>2]+J[z+(((f^p)-f>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break Nc;f= +p>>>31|0;r=J[q+8>>2];F=r-1|0;J[q+8>>2]=F;hd:{if((r|0)>0){J[q+4>>2]=J[q+4>>2]|f<>2];r=F<<8&65280;T=(r|0)==65280?6:7;J[q+8>>2]=T;J[q+4>>2]=r|f<>2];T=J[f+8>>2];if(T&7)break lb;X=J[f+64>>2];if((X|0)>=0&(X|0)<=J[f+60>>2])break Mc;J[f+4>>2]=J[f+4>>2]|32;T=J[f+28>>2];J[f+28>>2]=T-1;if((T|0)>0){J[f+60>>2]=J[f+60>>2]+1;r=f;f=J[f+24>>2];J[r+24>>2]=f+1;H[f|0]=F;break hd}if((bd(f,r>>>8|0)|0)==-1)break lb}J[d+4>>2]=J[d+4>>2]|4;f=d-4|0;J[f>>2]=J[f>>2]|2;f=g+n|0;r=f-4|0;J[r>>2]=J[r>> 2]|1;J[f+4>>2]=J[f+4>>2]|8;r=d;G=J[d>>2];d=(p|0)<0;J[r>>2]=G|(d?1088:64);J[f>>2]=J[f>>2]|(d?272:16);f=g-4|0;J[f>>2]=J[f>>2]|(d?544:32);J[g+4>>2]=J[g+4>>2]|(d?2176:128);d=J[g>>2]|4096}else d=J[g>>2];J[g>>2]=d|16384}if(b>>>0<4)break dd;d=g+n|0;f=J[d>>2];if(!(f&255)|f&20480)break dd;if(!(K[q+16|0]&2))break Lc;p=m+E|0;m=J[p>>2];f=m>>31;E=u&(f^m)-f;f=(E|0)!=0;m=J[q+8>>2];r=m-1|0;J[q+8>>2]=r;id:{if((m|0)>0){J[q+4>>2]=J[q+4>>2]|f<>2];m=r<<8&65280;F=(m|0)==65280?6:7;J[q+8>>2]=F;J[q+4>> -2]=m|f<>2];F=J[f+8>>2];if(F&7)break lb;T=J[f+64>>2];if((T|0)>=0&(T|0)<=J[f+60>>2])break Kc;J[f+4>>2]=J[f+4>>2]|32;F=J[f+28>>2];J[f+28>>2]=F-1;if((F|0)>0){J[f+60>>2]=J[f+60>>2]+1;m=f;f=J[f+24>>2];J[m+24>>2]=f+1;H[f|0]=r;break id}if((Uc(f,m>>>8|0)|0)==-1)break lb}if(E){m=J[p>>2];f=m>>31;J[o+64>>2]=J[o+64>>2]+J[z+(((f^m)-f>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break Jc;f=m>>>31|0;p=J[q+8>>2];E=p-1|0;J[q+8>>2]=E;jd:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|f<>2];p=E<<8&65280;r=(p| -0)==65280?6:7;J[q+8>>2]=r;J[q+4>>2]=p|f<>2];r=J[f+8>>2];if(r&7)break lb;F=J[f+64>>2];if((F|0)>=0&(F|0)<=J[f+60>>2])break Ic;J[f+4>>2]=J[f+4>>2]|32;r=J[f+28>>2];J[f+28>>2]=r-1;if((r|0)>0){J[f+60>>2]=J[f+60>>2]+1;r=f;f=J[f+24>>2];J[r+24>>2]=f+1;H[f|0]=E;break jd}if((Uc(f,p>>>8|0)|0)==-1)break lb}J[g+4>>2]=J[g+4>>2]|4;f=g-4|0;J[f>>2]=J[f>>2]|2;f=d+n|0;p=f-4|0;J[p>>2]=J[p>>2]|1;J[f+4>>2]=J[f+4>>2]|8;r=g;G=J[g>>2];g=(m|0)<0;J[r>>2]=G|(g?1088:64);J[f>>2]=J[f>>2]|(g?272:16);f=d-4|0;J[f>>2]=J[f>> -2]|(g?544:32);J[d+4>>2]=J[d+4>>2]|(g?2176:128);g=J[d>>2]|4096}else g=J[d>>2];J[d>>2]=g|16384}i=i+4|0;a=a+4|0;d=w-1|0;if((w|0)>1)continue;break}l=l+D|0;j=j+W|0;a=(b|0)>4;b=b-4|0;if(a)continue;break}}if(!aa)break lb;Sx(q,42);break lb}fa(205705,199039,580,211992);B()}J[g+8>>2]=F|4;break lb}fa(205944,199039,580,211992);B()}J[g+8>>2]=F|4;break lb}fa(205705,199039,588,211992);B()}J[f+8>>2]=T|4;break lb}fa(205944,199039,588,211992);B()}J[f+8>>2]=T|4;break lb}fa(205705,199039,596,211992);B()}J[f+8>>2]=F| -4;break lb}fa(205944,199039,596,211992);B()}J[f+8>>2]=r|4}b=J[o+12>>2];kd:{if(J[o+8>>2]==1){a=J[y+24>>2];if(b){J[a+28>>2]=-1;J[a>>2]=0;J[a+4>>2]=32768;J[a+32>>2]=-1;J[a+36>>2]=0;J[a+8>>2]=12;a=J[y+24>>2]}J[o+16>>2]=J[a+4>>2];J[o+20>>2]=J[a>>2];J[o+24>>2]=J[a+8>>2];J[o+28>>2]=J[a+32>>2];oa=o,pa=Zi(J[y+20>>2]),J[oa+4>>2]=pa;if(!(K[v+304|0]&2))break kd;f9(J[y+24>>2]);break kd}if(b){if(K[q+16|0]&2?J[q+8>>2]<8:-1)Sx(q,42);wu(q);oa=o,pa=Zi(J[y+20>>2]),J[oa+4>>2]=pa;q=0;break kd}oa=o,pa=Zi(J[y+20>>2])+(K[q+ -16|0]&2?J[q+8>>2]<8:-1)|0,J[oa+4>>2]=pa}A=+J[c+16>>2]*1.220703125E-4;V=A;A=+J[c+24>>2]*1.220703125E-4;Z=A;A=+J[J[J[c+32>>2]+60>>2]+24>>2]*1.220703125E-4;V=V*(V*(Z*(Z*(A*A))));A=+(1<>2]*1.220703125E-4*(V*A*A);O[o+56>>3]=A;O[o+48>>3]=A;a=J[y+4>>2];if((o|0)!=(a|0))O[o+56>>3]=A+O[o-16>>3];o=o+72|0;C=C-((ia|0)==2)|0;b=(_|0)>1;_=_-1|0;if(b)continue;break}_=J[y>>2]}ld:{if(_){l=P(_,72)+a|0;while(1){if(J[a>>2]<(S|0))J[a>>2]=S;g=J[a+4>>2];if((S|0)>(g|0)){J[a+4>>2]=S;g=S}md:{if(J[a+12>>2])break md; -i=a;b=J[y>>2];nd:{if((b|0)<=0)break nd;while(1){if(J[i+12>>2])break nd;i=i+72|0;if((b|0)>((i-a|0)/72|0))continue;break}}if(J[a+8>>2]==1){b=J[a+28>>2]==255;g=(M[a+24>>2]>4?b?5:4:b?6:5)+g|0;J[a+4>>2]=g}b=J[i+4>>2];if((b|0)<(g|0)){J[a+4>>2]=b;g=b}b=J[y+20>>2];i=Zi(b);if((i|0)<0)break ld;Mg(b,g-1|0,0);od:{if(J[b+28>>2]<=0){d=jd(b,0);break od}d=K[J[b+24>>2]]}Mg(b,i,0);if((d|0)!=255){if((d|0)!=-1){g=J[a+4>>2];break md}ra();B()}g=J[a+4>>2]+1|0;J[a+4>>2]=g}S=(g|0)<(S|0)?S:g;a=a+72|0;if((l|0)!=(a|0))continue; -break}}if(q)wu(q);break db}fa(200303,199039,185,211965);B()}fa(203221,199039,242,211976);B()}fa(202854,199039,235,211976);B()}fa(201334,199039,217,211976);B()}fa(200787,199039,215,211976);B()}b=y+60|0;if((ca|0)!=(b|0))continue;break}}h=h+52|0;Q=Q+1|0;if(Q>>>0>2])continue;break}}c=c+36|0;if((la|0)!=(c|0))continue;break}}e=e- -64|0;if((ka|0)!=(e|0))continue;break}}v=v+716|0;if((ja|0)!=(v|0))continue;break}}break _a}fa(198093,199039,165,211948);B()}v=J[t+8>>2];V=+(J[x+12>>2]-J[x+4>>2]>>>0)*+(J[x+ +2]=m|f<>2];F=J[f+8>>2];if(F&7)break lb;T=J[f+64>>2];if((T|0)>=0&(T|0)<=J[f+60>>2])break Kc;J[f+4>>2]=J[f+4>>2]|32;F=J[f+28>>2];J[f+28>>2]=F-1;if((F|0)>0){J[f+60>>2]=J[f+60>>2]+1;m=f;f=J[f+24>>2];J[m+24>>2]=f+1;H[f|0]=r;break id}if((bd(f,m>>>8|0)|0)==-1)break lb}if(E){m=J[p>>2];f=m>>31;J[o+64>>2]=J[o+64>>2]+J[z+(((f^m)-f>>>C&127)<<2)>>2];if(!(K[q+16|0]&2))break Jc;f=m>>>31|0;p=J[q+8>>2];E=p-1|0;J[q+8>>2]=E;jd:{if((p|0)>0){J[q+4>>2]=J[q+4>>2]|f<>2];p=E<<8&65280;r=(p| +0)==65280?6:7;J[q+8>>2]=r;J[q+4>>2]=p|f<>2];r=J[f+8>>2];if(r&7)break lb;F=J[f+64>>2];if((F|0)>=0&(F|0)<=J[f+60>>2])break Ic;J[f+4>>2]=J[f+4>>2]|32;r=J[f+28>>2];J[f+28>>2]=r-1;if((r|0)>0){J[f+60>>2]=J[f+60>>2]+1;r=f;f=J[f+24>>2];J[r+24>>2]=f+1;H[f|0]=E;break jd}if((bd(f,p>>>8|0)|0)==-1)break lb}J[g+4>>2]=J[g+4>>2]|4;f=g-4|0;J[f>>2]=J[f>>2]|2;f=d+n|0;p=f-4|0;J[p>>2]=J[p>>2]|1;J[f+4>>2]=J[f+4>>2]|8;r=g;G=J[g>>2];g=(m|0)<0;J[r>>2]=G|(g?1088:64);J[f>>2]=J[f>>2]|(g?272:16);f=d-4|0;J[f>>2]=J[f>> +2]|(g?544:32);J[d+4>>2]=J[d+4>>2]|(g?2176:128);g=J[d>>2]|4096}else g=J[d>>2];J[d>>2]=g|16384}i=i+4|0;a=a+4|0;d=w-1|0;if((w|0)>1)continue;break}l=l+D|0;j=j+W|0;a=(b|0)>4;b=b-4|0;if(a)continue;break}}if(!aa)break lb;Jy(q,42);break lb}fa(205721,199055,580,212008);B()}J[g+8>>2]=F|4;break lb}fa(205960,199055,580,212008);B()}J[g+8>>2]=F|4;break lb}fa(205721,199055,588,212008);B()}J[f+8>>2]=T|4;break lb}fa(205960,199055,588,212008);B()}J[f+8>>2]=T|4;break lb}fa(205721,199055,596,212008);B()}J[f+8>>2]=F| +4;break lb}fa(205960,199055,596,212008);B()}J[f+8>>2]=r|4}b=J[o+12>>2];kd:{if(J[o+8>>2]==1){a=J[y+24>>2];if(b){J[a+28>>2]=-1;J[a>>2]=0;J[a+4>>2]=32768;J[a+32>>2]=-1;J[a+36>>2]=0;J[a+8>>2]=12;a=J[y+24>>2]}J[o+16>>2]=J[a+4>>2];J[o+20>>2]=J[a>>2];J[o+24>>2]=J[a+8>>2];J[o+28>>2]=J[a+32>>2];oa=o,pa=tj(J[y+20>>2]),J[oa+4>>2]=pa;if(!(K[v+304|0]&2))break kd;hba(J[y+24>>2]);break kd}if(b){if(K[q+16|0]&2?J[q+8>>2]<8:-1)Jy(q,42);lv(q);oa=o,pa=tj(J[y+20>>2]),J[oa+4>>2]=pa;q=0;break kd}oa=o,pa=tj(J[y+20>>2])+ +(K[q+16|0]&2?J[q+8>>2]<8:-1)|0,J[oa+4>>2]=pa}A=+J[c+16>>2]*1.220703125E-4;V=A;A=+J[c+24>>2]*1.220703125E-4;Z=A;A=+J[J[J[c+32>>2]+60>>2]+24>>2]*1.220703125E-4;V=V*(V*(Z*(Z*(A*A))));A=+(1<>2]*1.220703125E-4*(V*A*A);O[o+56>>3]=A;O[o+48>>3]=A;a=J[y+4>>2];if((o|0)!=(a|0))O[o+56>>3]=A+O[o-16>>3];o=o+72|0;C=C-((ia|0)==2)|0;b=(_|0)>1;_=_-1|0;if(b)continue;break}_=J[y>>2]}ld:{if(_){l=P(_,72)+a|0;while(1){if(J[a>>2]<(S|0))J[a>>2]=S;g=J[a+4>>2];if((S|0)>(g|0)){J[a+4>>2]=S;g=S}md:{if(J[a+12>>2])break md; +i=a;b=J[y>>2];nd:{if((b|0)<=0)break nd;while(1){if(J[i+12>>2])break nd;i=i+72|0;if((b|0)>((i-a|0)/72|0))continue;break}}if(J[a+8>>2]==1){b=J[a+28>>2]==255;g=(M[a+24>>2]>4?b?5:4:b?6:5)+g|0;J[a+4>>2]=g}b=J[i+4>>2];if((b|0)<(g|0)){J[a+4>>2]=b;g=b}b=J[y+20>>2];i=tj(b);if((i|0)<0)break ld;Xg(b,g-1|0,0);od:{if(J[b+28>>2]<=0){d=td(b,0);break od}d=K[J[b+24>>2]]}Xg(b,i,0);if((d|0)!=255){if((d|0)!=-1){g=J[a+4>>2];break md}ra();B()}g=J[a+4>>2]+1|0;J[a+4>>2]=g}S=(g|0)<(S|0)?S:g;a=a+72|0;if((l|0)!=(a|0))continue; +break}}if(q)lv(q);break db}fa(200319,199055,185,211981);B()}fa(203237,199055,242,211992);B()}fa(202870,199055,235,211992);B()}fa(201350,199055,217,211992);B()}fa(200803,199055,215,211992);B()}b=y+60|0;if((ca|0)!=(b|0))continue;break}}h=h+52|0;Q=Q+1|0;if(Q>>>0>2])continue;break}}c=c+36|0;if((la|0)!=(c|0))continue;break}}e=e- -64|0;if((ka|0)!=(e|0))continue;break}}v=v+716|0;if((ja|0)!=(v|0))continue;break}}break _a}fa(198109,199055,165,211964);B()}v=J[t+8>>2];V=+(J[x+12>>2]-J[x+4>>2]>>>0)*+(J[x+ 16>>2]-J[x+8>>2]>>>0)/+(P(J[v+16>>2]-J[v+8>>2]|0,J[v+12>>2]-J[v+4>>2]|0)>>>0);A=V*+M[v+356>>2];pd:{if(A<4294967296&A>=0){a=~~A>>>0;break pd}a=0}J[x+52>>2]=a;h=J[x+24>>2];if((h|0)>=2){b=J[v- -64>>2];c=J[x+40>>2];e=0;while(1){a=e<<2;d=a+c|0;A=+J[a+b>>2]*1.220703125E-4*+M[x+52>>2];qd:{if(A<4294967296&A>=0){a=~~A>>>0;break qd}a=0}J[d>>2]=a;e=e+1|0;h=J[x+24>>2];if((e|0)<(h-1|0))continue;break}}a=J[x+40>>2];c=(a+(h<<2)|0)-4|0;b=-1;rd:{if(J[v+352>>2]==-1)break rd;A=V*+M[t+24>>2];if(A<4294967296&A>=0){b= -~~A>>>0;break rd}b=0}J[c>>2]=b;e=0;d=J[x+24>>2];if((d|0)>0)while(1){c=a+(e<<2)|0;b=J[c>>2];if((b|0)!=-1){J[c>>2]=(b|0)>=(ha|0)?b-ha|0:0;d=J[x+24>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}i=a;c=0;V=0;x=bc-48|0;bc=x;e=-1;l=d;q=d-1|0;y=J[t+12>>2];sd:{td:{if((d|0)>2){a=1;while(1){b=i+(a<<2)|0;if(M[b-4>>2]>M[b>>2])break td;a=a+1|0;if((q|0)!=(a|0))continue;break}}k=Fi(0,0);ud:{if(!k)break ud;Y=1.7976931348623157E308;a=J[y+44>>2];if(a){o=J[y+48>>2];S=o+P(a,716)|0;while(1){a=J[o>>2];if(a){g=J[o+4>>2];n=g+ +~~A>>>0;break rd}b=0}J[c>>2]=b;e=0;d=J[x+24>>2];if((d|0)>0)while(1){c=a+(e<<2)|0;b=J[c>>2];if((b|0)!=-1){J[c>>2]=(b|0)>=(ha|0)?b-ha|0:0;d=J[x+24>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}i=a;c=0;V=0;x=fc-48|0;fc=x;e=-1;l=d;q=d-1|0;y=J[t+12>>2];sd:{td:{if((d|0)>2){a=1;while(1){b=i+(a<<2)|0;if(M[b-4>>2]>M[b>>2])break td;a=a+1|0;if((q|0)!=(a|0))continue;break}}k=Vi(0,0);ud:{if(!k)break ud;Y=1.7976931348623157E308;a=J[y+44>>2];if(a){o=J[y+48>>2];S=o+P(a,716)|0;while(1){a=J[o>>2];if(a){g=J[o+4>>2];n=g+ (a<<6)|0;while(1){j=J[g+56>>2];vd:{if(!j)break vd;a=J[g+52>>2];if(!a)break vd;C=P(a,36)+j|0;while(1){wd:{if(!J[j+4>>2])break wd;Q=J[g+32>>2];if((Q|0)<=0)break wd;f=J[j>>2];w=0;while(1){s=J[f+28>>2];xd:{if(!s)break xd;a=J[f+24>>2];if(!a)break xd;u=P(a,60)+s|0;while(1){m=J[s>>2];yd:{if(!m)break yd;h=J[s+4>>2];z=P(m,72);d=h+z|0;$=0;e=h;a=e;while(1){b=J[a+4>>2];A=O[a+56>>3];if(c){A=A-O[c+56>>3];b=b-J[c+4>>2]|0}zd:{Ad:{Bd:{if(A<=0){J[a+40>>2]=0;J[a+44>>2]=-1074790400;e=a>>>0>>0?e:a+72|0;break Bd}if(a>>> -0>>0&O[a+40>>3]<=0)break Bd;if(!b){if(c)break Ad;fa(209376,209137,1547,210442);B()}A=A/+(b|0);if(A>=$?c:0)break Ad;O[a+40>>3]=A;e=a>>>0>>0?e:a+72|0;$=A;c=a}a=a+72|0;if((d|0)!=(a|0))continue;break zd}J[c+40>>2]=0;J[c+44>>2]=0}c=0;a=h;if((d|0)!=(e|0))continue;break}if(!m)break yd;b=z-72|0;if(!((b>>>0)/72&1)){A=O[a+40>>3];Cd:{if(!(A>0))break Cd;Y=AV))break Cd;V=A}h=h+72|0}if(b>>>0<72)break yd;while(1){A=O[h+40>>3];Dd:{if(A>0){Y=AV)break Dd}A=V}V=O[h+112>>3];Ed:{if(V>0){Y= -V>3]=V;O[x+32>>3]=Y;hd(209611,x+32|0)}g9(t,1);if((l|0)>0){h=0;while(1){z=i+(h<<2)|0;$=0;o=0;ga=V;A=Y;S=0;Fd:{Gd:{Hd:{Id:{Jd:{Kd:{while(1){C=J[z>>2];if((C|0)==-1){if((h|0)==(q|0)){$=-1;o=1;a=0;break Kd}fa(209708, -209137,1732,210455);B()}a=J[t+12>>2];b=J[a+44>>2];if(b){d=J[a+48>>2];f=d+P(b,716)|0;while(1){a=J[d>>2];if(a){c=J[d+4>>2];s=c+(a<<6)|0;while(1){e=J[c+56>>2];Ld:{if(!e)break Ld;a=J[c+52>>2];if(!a)break Ld;w=P(a,36)+e|0;while(1){if(!(!J[e+4>>2]|J[c+32>>2]<=0)){b=J[e>>2];g=0;while(1){Md:{if(!J[b+28>>2])break Md;_D(J[b+44>>2],J[b+32>>2]);_D(J[b+48>>2],J[b+36>>2]);m=J[b+24>>2];if(!m)break Md;j=0;n=J[b+28>>2];a=n;m=P(m,60);Q=m-60|0;u=((Q>>>0)/60|0)+1&3;if(u)while(1){J[a+48>>2]=J[a+40>>2];J[a+56>>2]=J[a+ +0>>0&O[a+40>>3]<=0)break Bd;if(!b){if(c)break Ad;fa(209392,209153,1547,210458);B()}A=A/+(b|0);if(A>=$?c:0)break Ad;O[a+40>>3]=A;e=a>>>0>>0?e:a+72|0;$=A;c=a}a=a+72|0;if((d|0)!=(a|0))continue;break zd}J[c+40>>2]=0;J[c+44>>2]=0}c=0;a=h;if((d|0)!=(e|0))continue;break}if(!m)break yd;b=z-72|0;if(!((b>>>0)/72&1)){A=O[a+40>>3];Cd:{if(!(A>0))break Cd;Y=AV))break Cd;V=A}h=h+72|0}if(b>>>0<72)break yd;while(1){A=O[h+40>>3];Dd:{if(A>0){Y=AV)break Dd}A=V}V=O[h+112>>3];Ed:{if(V>0){Y= +V>3]=V;O[x+32>>3]=Y;rd(209627,x+32|0)}iba(t,1);if((l|0)>0){h=0;while(1){z=i+(h<<2)|0;$=0;o=0;ga=V;A=Y;S=0;Fd:{Gd:{Hd:{Id:{Jd:{Kd:{while(1){C=J[z>>2];if((C|0)==-1){if((h|0)==(q|0)){$=-1;o=1;a=0;break Kd}fa(209724, +209153,1732,210471);B()}a=J[t+12>>2];b=J[a+44>>2];if(b){d=J[a+48>>2];f=d+P(b,716)|0;while(1){a=J[d>>2];if(a){c=J[d+4>>2];s=c+(a<<6)|0;while(1){e=J[c+56>>2];Ld:{if(!e)break Ld;a=J[c+52>>2];if(!a)break Ld;w=P(a,36)+e|0;while(1){if(!(!J[e+4>>2]|J[c+32>>2]<=0)){b=J[e>>2];g=0;while(1){Md:{if(!J[b+28>>2])break Md;cF(J[b+44>>2],J[b+32>>2]);cF(J[b+48>>2],J[b+36>>2]);m=J[b+24>>2];if(!m)break Md;j=0;n=J[b+28>>2];a=n;m=P(m,60);Q=m-60|0;u=((Q>>>0)/60|0)+1&3;if(u)while(1){J[a+48>>2]=J[a+40>>2];J[a+56>>2]=J[a+ 8>>2];J[a+52>>2]=J[a+16>>2];a=a+60|0;j=j+1|0;if((u|0)!=(j|0))continue;break}if(Q>>>0<180)break Md;j=n+m|0;while(1){J[a+48>>2]=J[a+40>>2];J[a+56>>2]=J[a+8>>2];J[a+52>>2]=J[a+16>>2];J[a+108>>2]=J[a+100>>2];J[a+116>>2]=J[a+68>>2];J[a+112>>2]=J[a+76>>2];J[a+168>>2]=J[a+160>>2];J[a+176>>2]=J[a+128>>2];J[a+172>>2]=J[a+136>>2];J[a+228>>2]=J[a+220>>2];J[a+236>>2]=J[a+188>>2];J[a+232>>2]=J[a+196>>2];a=a+240|0;if((j|0)!=(a|0))continue;break}}b=b+52|0;g=g+1|0;if((g|0)>2])continue;break}}e=e+36|0;if((w| -0)!=(e|0))continue;break}}c=c- -64|0;if((s|0)!=(c|0))continue;break}}d=d+716|0;if((f|0)!=(d|0))continue;break}}p=Zi(k);if((p|0)<0)break Id;Z=(ga+A)*.5;Q=J[y+44>>2];Nd:{if(!Q)break Nd;d=J[y+48>>2];u=d+P(Q,716)|0;g=d;while(1){a=J[g>>2];if(a){j=J[g+4>>2];E=j+(a<<6)|0;while(1){w=J[j+56>>2];Od:{if(!w)break Od;a=J[j+52>>2];if(!a)break Od;_=P(a,36)+w|0;while(1){Pd:{if(!J[w+4>>2])break Pd;aa=J[j+32>>2];if((aa|0)<=0)break Pd;f=J[w>>2];m=0;while(1){s=J[f+28>>2];Qd:{if(!s)break Qd;a=J[f+24>>2];if(!a)break Qd; +0)!=(e|0))continue;break}}c=c- -64|0;if((s|0)!=(c|0))continue;break}}d=d+716|0;if((f|0)!=(d|0))continue;break}}p=tj(k);if((p|0)<0)break Id;Z=(ga+A)*.5;Q=J[y+44>>2];Nd:{if(!Q)break Nd;d=J[y+48>>2];u=d+P(Q,716)|0;g=d;while(1){a=J[g>>2];if(a){j=J[g+4>>2];E=j+(a<<6)|0;while(1){w=J[j+56>>2];Od:{if(!w)break Od;a=J[j+52>>2];if(!a)break Od;_=P(a,36)+w|0;while(1){Pd:{if(!J[w+4>>2])break Pd;aa=J[j+32>>2];if((aa|0)<=0)break Pd;f=J[w>>2];m=0;while(1){s=J[f+28>>2];Qd:{if(!s)break Qd;a=J[f+24>>2];if(!a)break Qd; r=P(a,60)+s|0;while(1){a=J[s+40>>2];Rd:{if(!a)break Rd;b=a;c=a;n=J[s+4>>2]+P(J[s>>2],72)|0;Sd:{if((n|0)==(a|0))break Sd;while(1){e=c+72|0;b=O[c+40>>3]>=Z?e:b;c=e;if((e|0)!=(n|0))continue;break}if((a|0)==(b|0))break Sd;while(1){J[a+32>>2]=h;a=a+72|0;if((b|0)!=(a|0))continue;break}a=b}if((a|0)==(n|0))break Rd;while(1){J[a+32>>2]=-1;a=a+72|0;if((n|0)!=(a|0))continue;break}}s=s+60|0;if((r|0)!=(s|0))continue;break}}f=f+52|0;m=m+1|0;if((aa|0)!=(m|0))continue;break}}w=w+36|0;if((_|0)!=(w|0))continue;break}}j= -j- -64|0;if((E|0)!=(j|0))continue;break}}g=g+716|0;if((u|0)!=(g|0))continue;break}if(!Q)break Nd;while(1){a=J[d>>2];if(a){c=J[d+4>>2];b=c+(a<<6)|0;while(1){Td:{if(!J[c+56>>2]|J[c+32>>2]<=0)break Td;a=0;while(1){if(!HN(t,k,(d-J[y+48>>2]|0)/716|0,c-J[d+4>>2]>>6,a,h)){a=a+1|0;if((a|0)>2])continue;break Td}break}e=-1;break ud}c=c- -64|0;if((b|0)!=(c|0))continue;break}}d=d+716|0;if((u|0)!=(d|0))continue;break}}g=Zi(k);if((g|0)<0)break Jd;Ud:{if((g|0)>(C|0)){A=Z;break Ud}$=o?$>Z?Z:$:Z;o=1;ga=Z}a= -J[t+12>>2];b=J[a+44>>2];if(b){d=J[a+48>>2];s=d+P(b,716)|0;while(1){a=J[d>>2];if(a){c=J[d+4>>2];w=c+(a<<6)|0;while(1){e=J[c+56>>2];Vd:{if(!e)break Vd;a=J[c+52>>2];if(!a)break Vd;m=P(a,36)+e|0;while(1){if(!(!J[e+4>>2]|J[c+32>>2]<=0)){b=J[e>>2];j=0;while(1){Wd:{if(!J[b+28>>2])break Wd;_D(J[b+32>>2],J[b+44>>2]);_D(J[b+36>>2],J[b+48>>2]);n=J[b+24>>2];if(!n)break Wd;f=0;Q=J[b+28>>2];a=Q;n=P(n,60);u=n-60|0;E=((u>>>0)/60|0)+1&3;if(E)while(1){J[a+40>>2]=J[a+48>>2];J[a+8>>2]=J[a+56>>2];J[a+16>>2]=J[a+52>>2]; +j- -64|0;if((E|0)!=(j|0))continue;break}}g=g+716|0;if((u|0)!=(g|0))continue;break}if(!Q)break Nd;while(1){a=J[d>>2];if(a){c=J[d+4>>2];b=c+(a<<6)|0;while(1){Td:{if(!J[c+56>>2]|J[c+32>>2]<=0)break Td;a=0;while(1){if(!$O(t,k,(d-J[y+48>>2]|0)/716|0,c-J[d+4>>2]>>6,a,h)){a=a+1|0;if((a|0)>2])continue;break Td}break}e=-1;break ud}c=c- -64|0;if((b|0)!=(c|0))continue;break}}d=d+716|0;if((u|0)!=(d|0))continue;break}}g=tj(k);if((g|0)<0)break Jd;Ud:{if((g|0)>(C|0)){A=Z;break Ud}$=o?$>Z?Z:$:Z;o=1;ga=Z}a= +J[t+12>>2];b=J[a+44>>2];if(b){d=J[a+48>>2];s=d+P(b,716)|0;while(1){a=J[d>>2];if(a){c=J[d+4>>2];w=c+(a<<6)|0;while(1){e=J[c+56>>2];Vd:{if(!e)break Vd;a=J[c+52>>2];if(!a)break Vd;m=P(a,36)+e|0;while(1){if(!(!J[e+4>>2]|J[c+32>>2]<=0)){b=J[e>>2];j=0;while(1){Wd:{if(!J[b+28>>2])break Wd;cF(J[b+32>>2],J[b+44>>2]);cF(J[b+36>>2],J[b+48>>2]);n=J[b+24>>2];if(!n)break Wd;f=0;Q=J[b+28>>2];a=Q;n=P(n,60);u=n-60|0;E=((u>>>0)/60|0)+1&3;if(E)while(1){J[a+40>>2]=J[a+48>>2];J[a+8>>2]=J[a+56>>2];J[a+16>>2]=J[a+52>>2]; a=a+60|0;f=f+1|0;if((E|0)!=(f|0))continue;break}if(u>>>0<180)break Wd;f=n+Q|0;while(1){J[a+40>>2]=J[a+48>>2];J[a+8>>2]=J[a+56>>2];J[a+16>>2]=J[a+52>>2];J[a+100>>2]=J[a+108>>2];J[a+68>>2]=J[a+116>>2];J[a+76>>2]=J[a+112>>2];J[a+160>>2]=J[a+168>>2];J[a+128>>2]=J[a+176>>2];J[a+136>>2]=J[a+172>>2];J[a+220>>2]=J[a+228>>2];J[a+188>>2]=J[a+236>>2];J[a+196>>2]=J[a+232>>2];a=a+240|0;if((f|0)!=(a|0))continue;break}}b=b+52|0;j=j+1|0;if((j|0)>2])continue;break}}e=e+36|0;if((m|0)!=(e|0))continue;break}}c= -c- -64|0;if((w|0)!=(c|0))continue;break}}d=d+716|0;if((s|0)!=(d|0))continue;break}}if((Mg(k,p,0)|0)<0)break td;if(J[682644]){O[x+24>>3]=Z;J[x+20>>2]=g;J[x+16>>2]=C;hd(209806,x+16|0)}if(ga+-.001>A){a=S>>>0<31;S=S+1|0;if(a)continue}break}a=0;if(o)break Kd;o=0;hd(209885,0);a=1}if(J[682644]){O[x+8>>3]=$;J[x>>2]=o;hd(209991,x)}n=J[y+44>>2];if(!n)break Fd;d=J[y+48>>2];S=d+P(n,716)|0;b=d;g=b;if(!a)break Hd;while(1){a=J[b>>2];if(a){g=J[b+4>>2];j=g+(a<<6)|0;while(1){f=J[g+56>>2];Xd:{if(!f)break Xd;a=J[g+52>> +c- -64|0;if((w|0)!=(c|0))continue;break}}d=d+716|0;if((s|0)!=(d|0))continue;break}}if((Xg(k,p,0)|0)<0)break td;if(J[686392]){O[x+24>>3]=Z;J[x+20>>2]=g;J[x+16>>2]=C;rd(209822,x+16|0)}if(ga+-.001>A){a=S>>>0<31;S=S+1|0;if(a)continue}break}a=0;if(o)break Kd;o=0;rd(209901,0);a=1}if(J[686392]){O[x+8>>3]=$;J[x>>2]=o;rd(210007,x)}n=J[y+44>>2];if(!n)break Fd;d=J[y+48>>2];S=d+P(n,716)|0;b=d;g=b;if(!a)break Hd;while(1){a=J[b>>2];if(a){g=J[b+4>>2];j=g+(a<<6)|0;while(1){f=J[g+56>>2];Xd:{if(!f)break Xd;a=J[g+52>> 2];if(!a)break Xd;w=P(a,36)+f|0;while(1){Yd:{if(!J[f+4>>2])break Yd;m=J[g+32>>2];if((m|0)<=0)break Yd;o=J[f>>2];s=0;while(1){c=J[o+28>>2];Zd:{if(!c)break Zd;a=J[o+24>>2];if(!a)break Zd;e=c;C=P(a,60);Q=C-60|0;if(!((Q>>>0)/60&1)){a=J[e+40>>2];_d:{if(!a)break _d;e=J[e+4>>2]+P(J[e>>2],72)|0;if((e|0)==(a|0))break _d;while(1){J[a+32>>2]=-1;a=a+72|0;if((e|0)!=(a|0))continue;break}}e=c+60|0}if(Q>>>0<=59)break Zd;c=c+C|0;while(1){a=J[e+40>>2];$d:{if(!a)break $d;C=J[e+4>>2]+P(J[e>>2],72)|0;if((C|0)==(a|0))break $d; -while(1){J[a+32>>2]=-1;a=a+72|0;if((C|0)!=(a|0))continue;break}}a=J[e+100>>2];ae:{if(!a)break ae;C=J[e- -64>>2]+P(J[e+60>>2],72)|0;if((C|0)==(a|0))break ae;while(1){J[a+32>>2]=-1;a=a+72|0;if((C|0)!=(a|0))continue;break}}e=e+120|0;if((c|0)!=(e|0))continue;break}}o=o+52|0;s=s+1|0;if((m|0)!=(s|0))continue;break}}f=f+36|0;if((w|0)!=(f|0))continue;break}}g=g- -64|0;if((j|0)!=(g|0))continue;break}}b=b+716|0;if((S|0)!=(b|0))continue;break}break Gd}fa(209750,209137,1805,210455);B()}fa(210468,209137,1743, -210455);B()}while(1){a=J[g>>2];if(a){j=J[g+4>>2];C=j+(a<<6)|0;while(1){w=J[j+56>>2];be:{if(!w)break be;a=J[j+52>>2];if(!a)break be;Q=P(a,36)+w|0;while(1){ce:{if(!J[w+4>>2])break ce;u=J[j+32>>2];if((u|0)<=0)break ce;f=J[w>>2];m=0;while(1){s=J[f+28>>2];de:{if(!s)break de;a=J[f+24>>2];if(!a)break de;z=P(a,60)+s|0;while(1){a=J[s+40>>2];ee:{if(!a)break ee;b=a;c=a;o=J[s+4>>2]+P(J[s>>2],72)|0;fe:{if((o|0)==(a|0))break fe;while(1){e=c+72|0;b=O[c+40>>3]>=$?e:b;c=e;if((e|0)!=(o|0))continue;break}if((a|0)== +while(1){J[a+32>>2]=-1;a=a+72|0;if((C|0)!=(a|0))continue;break}}a=J[e+100>>2];ae:{if(!a)break ae;C=J[e- -64>>2]+P(J[e+60>>2],72)|0;if((C|0)==(a|0))break ae;while(1){J[a+32>>2]=-1;a=a+72|0;if((C|0)!=(a|0))continue;break}}e=e+120|0;if((c|0)!=(e|0))continue;break}}o=o+52|0;s=s+1|0;if((m|0)!=(s|0))continue;break}}f=f+36|0;if((w|0)!=(f|0))continue;break}}g=g- -64|0;if((j|0)!=(g|0))continue;break}}b=b+716|0;if((S|0)!=(b|0))continue;break}break Gd}fa(209766,209153,1805,210471);B()}fa(210484,209153,1743, +210471);B()}while(1){a=J[g>>2];if(a){j=J[g+4>>2];C=j+(a<<6)|0;while(1){w=J[j+56>>2];be:{if(!w)break be;a=J[j+52>>2];if(!a)break be;Q=P(a,36)+w|0;while(1){ce:{if(!J[w+4>>2])break ce;u=J[j+32>>2];if((u|0)<=0)break ce;f=J[w>>2];m=0;while(1){s=J[f+28>>2];de:{if(!s)break de;a=J[f+24>>2];if(!a)break de;z=P(a,60)+s|0;while(1){a=J[s+40>>2];ee:{if(!a)break ee;b=a;c=a;o=J[s+4>>2]+P(J[s>>2],72)|0;fe:{if((o|0)==(a|0))break fe;while(1){e=c+72|0;b=O[c+40>>3]>=$?e:b;c=e;if((e|0)!=(o|0))continue;break}if((a|0)== (b|0))break fe;while(1){J[a+32>>2]=h;a=a+72|0;if((b|0)!=(a|0))continue;break}a=b}if((a|0)==(o|0))break ee;while(1){J[a+32>>2]=-1;a=a+72|0;if((o|0)!=(a|0))continue;break}}s=s+60|0;if((z|0)!=(s|0))continue;break}}f=f+52|0;m=m+1|0;if((u|0)!=(m|0))continue;break}}w=w+36|0;if((Q|0)!=(w|0))continue;break}}j=j- -64|0;if((C|0)!=(j|0))continue;break}}g=g+716|0;if((S|0)!=(g|0))continue;break}}if(!n)break Fd;while(1){a=J[d>>2];if(a){c=J[d+4>>2];b=c+(a<<6)|0;while(1){ge:{if(!J[c+56>>2]|J[c+32>>2]<=0)break ge; -a=0;while(1){if(!HN(t,k,(d-J[y+48>>2]|0)/716|0,c-J[d+4>>2]>>6,a,h)){a=a+1|0;if((a|0)>2])continue;break ge}break}e=-1;break ud}c=c- -64|0;if((b|0)!=(c|0))continue;break}}d=d+716|0;if((S|0)!=(d|0))continue;break}}h=h+1|0;if((l|0)!=(h|0))continue;break}}if(J[682644]>=5){d=0;b=bc-48|0;bc=b;l=J[t+12>>2];if(J[l+24>>2]>0)while(1){J[b+32>>2]=d;hd(209399,b+32|0);a=J[l+44>>2];if((a|0)>0){h=J[l+48>>2];f=0;while(1){c=J[h>>2];if((c|0)>0){e=J[h+4>>2];s=0;while(1){j=J[e+56>>2];he:{if(!j)break he;a=J[e+52>> -2];if((a|0)<=0)break he;w=0;while(1){ie:{if(!J[j+4>>2])break ie;c=J[e+32>>2];if((c|0)<=0)break ie;i=J[j>>2];o=0;while(1){g=J[i+28>>2];je:{if(!g)break je;m=0;a=J[i+24>>2];if((a|0)<=0)break je;while(1){if(J[g>>2]>0){a=J[g+4>>2];c=0;while(1){if(J[a+32>>2]==(d|0)){J[b+24>>2]=c;J[b+20>>2]=m;J[b+16>>2]=o;J[b+12>>2]=w;J[b+8>>2]=s;J[b+4>>2]=f;J[b>>2]=d;hd(209457,b);a=a+72|0;c=c+1|0;if((c|0)>2])continue}break}a=J[i+24>>2]}g=g+60|0;m=m+1|0;if((m|0)<(a|0))continue;break}c=J[e+32>>2]}i=i+52|0;o=o+1|0;if((o| -0)<(c|0))continue;break}a=J[e+52>>2]}j=j+36|0;w=w+1|0;if((w|0)<(a|0))continue;break}c=J[h>>2]}e=e- -64|0;s=s+1|0;if((s|0)<(c|0))continue;break}a=J[l+44>>2]}h=h+716|0;f=f+1|0;if((f|0)<(a|0))continue;break}}d=d+1|0;if((d|0)>2])continue;break}bc=b+48|0}If(k);e=0}bc=x+48|0;break sd}ra();B()}if(e)break _;c=J[t+32>>2];if(!c)break aa;a=J[t+12>>2];g9(t,0);a=J[a+32>>2];h9(a);ke:{le:{if(!KN(a))while(1){if(!K[a+101|0])break le;b=-1;if(HN(t,c,J[a+24>>2],J[a+28>>2],J[a+32>>2],J[a+36>>2]))break ke;if(!KN(a))continue; -break}b=0;break ke}fa(197941,198999,148,212270);B()}if(b){hd(211606,0);break _}a=Zi(J[t+32>>2]);if((Mg(J[t+32>>2],6,0)|0)<0)break _;ki(J[t+32>>2],a);if((Mg(J[t+32>>2],0,0)|0)<0)break _;if(xn(J[t+4>>2],J[t+32>>2],-1))break _;J[t+20>>2]=a+J[t+20>>2];If(J[t+32>>2]);J[t+32>>2]=0;ON(J[t+12>>2]);J[t+12>>2]=0;ba=ba+1|0;if((ba|0)>2])continue;break}a=Mk(65497);J[t+28>>2]=a;if(!a)break _;if(Lk(J[t+4>>2],J[t+16>>2],a)){hd(209030,0);break _}Ci(J[t+28>>2]);e=0;J[t+28>>2]=0;if(oE(J[t+4>>2]))break _;PN(t); -break b}fa(211253,209137,944,211264);B()}ra();B()}fa(211429,209137,1175,211465);B()}fa(211429,209137,1180,211465);B()}fa(209097,209137,1458,210419);B()}hd(d,0)}PN(t);e=-1}bc=N+5216|0;return e|0}fa(211388,209137,186,211408);B()}function MY(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,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,$=0,ca=0,da=0,ea=0,fa=0,ga=0;da=bc-16|0;bc=da;a:{while(1){b:{b=J[a+8>>2];b=gc[J[J[b>>2]+ -28>>2]](b)|0;if((b|0)!=255){if((b|0)!=-1)continue;break b}while(1){b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==255)continue;break}c:switch(c+1|0){case 1:continue;case 0:break b;default:break c}b=0;if(!((c&-16)==48|c-146>>>0<2|((c|0)==79|(c|0)==217))){b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break b;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break b;b=d|b<<8}d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:switch(c-79|0){case 2:if(r){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,784583,0);a=2;break a}o:{b= -J[a+8>>2];p:{if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break p;b=J[a+8>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break p;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+140>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p; -d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+144>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+148>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>> -2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+152>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+156>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=gc[J[J[b>> -2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+160>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+ -164>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+168>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=-1)break o}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,785278,0);a=2;break a}d=c|b<<8;J[a+188>>2]= -d;if(!(!J[a+32>>2]|(d|0)==J[a+12>>2])){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,786242,0);a=2;break a}q:{g=J[a+140>>2];r:{if(!g)break r;h=J[a+144>>2];if(!h)break r;e=J[a+148>>2];if(e>>>0>=g>>>0)break r;f=J[a+152>>2];if(f>>>0>=h>>>0)break r;b=J[a+156>>2];if(!b)break r;c=J[a+160>>2];if(!c)break r;i=J[a+164>>2];if(i>>>0>e>>>0|e>>>0>=b+i>>>0)break r;l=J[a+168>>2];if(l>>>0>f>>>0|f>>>0>=c+l>>>0)break r;if(d)break q}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,785278,0);a=2;break a}d=h-1|0;l=(d+c|0)-l|0;h=(l>>>0)/(c>>>0)|0;J[a+ -196>>2]=h;j=g-1|0;m=(j+b|0)-i|0;i=(m>>>0)/(b>>>0)|0;J[a+192>>2]=i;q=d;d=J[a+28>>2];g=1<>2]=q+g>>>d;J[a+172>>2]=g+j>>>d;J[a+184>>2]=(f+g|0)-1>>>d;J[a+180>>2]=(e+g|0)-1>>>d;s:{if(!(b>>>0>m>>>0|c>>>0>l>>>0))if(i>>>0<2147483647/(h>>>0)>>>0)break s;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,787078,0);a=2;break a}b=vd(P(h,i),64);J[a+200>>2]=b;f=P(J[a+196>>2],J[a+192>>2]);if(!f)break d;e=0;d=0;if(f>>>0>=4){h=f&-4;r=0;while(1){c=d<<6;g=c+b|0;J[g+56>>2]=0;J[g+60>>2]=0;J[g>>2]=0;g=b+(c|64)|0;J[g+56>>2]=0;J[g+ -60>>2]=0;J[g>>2]=0;g=b+(c|128)|0;J[g+56>>2]=0;J[g+60>>2]=0;J[g>>2]=0;c=b+(c|192)|0;J[c+56>>2]=0;J[c+60>>2]=0;J[c>>2]=0;d=d+4|0;r=r+4|0;if((h|0)!=(r|0))continue;break}}g=f&3;if(g)while(1){c=b+(d<<6)|0;J[c+56>>2]=0;J[c+60>>2]=0;J[c>>2]=0;d=d+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}c=0;if(!f)break d;while(1){b=vd(J[a+188>>2],88);J[(J[a+200>>2]+(c<<6)|0)+60>>2]=b;f=J[a+188>>2];t:{if(!f)break t;d=0;if((f|0)!=1){h=f&-2;e=0;while(1){g=b+P(d,88)|0;J[g+84>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;J[g+44>>2]=0;g= -b+P(d|1,88)|0;J[g+84>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;J[g+44>>2]=0;d=d+2|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!(f&1))break t;b=b+P(d,88)|0;J[b+84>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+44>>2]=0}c=c+1|0;if(c>>>0>2],J[a+192>>2])>>>0)continue;break}break d;case 3:if(!r){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,787914,0);a=2;break a}u:{b=J[a+8>>2];i=gc[J[J[b>>2]+28>>2]](b)|0;v:{if((i|0)==-1)break v;b=J[a+8>>2];p=gc[J[J[b>>2]+28>>2]](b)|0;if((p|0)==-1)break v;b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)| -0;if((e|0)==-1)break v;b=J[a+8>>2];f=gc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break v;b=J[a+8>>2];m=gc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break v;b=J[a+8>>2];h=gc[J[J[b>>2]+28>>2]](b)|0;if((h|0)==-1)break v;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break v;c=J[a+8>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==-1)break v;c=J[a+8>>2];n=gc[J[J[c>>2]+28>>2]](c)|0;if((n|0)==-1)break v;c=J[a+8>>2];v=gc[J[J[c>>2]+28>>2]](c)|0;if((v|0)!=-1)break u}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,788887,0);a=2;break a}if(!(!(h- -32>>>0<4294967265|b>>>0>8)&d>>>0<9)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,788887,0);a=2;break a}c=J[a+196>>2];g=J[a+192>>2];if(P(c,g)){o=f|e<<8;k=d+2|0;q=b+2|0;l=h+1|0;u=l&-8;j=l&7;f=J[a+188>>2];r=J[a+200>>2];e=0;while(1){t=e<<6;b=t+r|0;J[b+12>>2]=m;J[b+8>>2]=o;J[b+4>>2]=p;d=0;if(f){g=J[b+60>>2];c=0;while(1){d=P(c,88);b=d+g|0;J[b+36>>2]=v;J[b+32>>2]=n;J[b+28>>2]=k;J[b+24>>2]=q;J[b+20>>2]=h;J[b+16>>2]=i;b=vd(l,100);r=J[a+200>>2];g=J[(t+r|0)+60>>2];J[(d+g|0)+84>>2]=b;d=0;f=0;if(h>>>0>=7)while(1){J[(b+P(d, +a=0;while(1){if(!$O(t,k,(d-J[y+48>>2]|0)/716|0,c-J[d+4>>2]>>6,a,h)){a=a+1|0;if((a|0)>2])continue;break ge}break}e=-1;break ud}c=c- -64|0;if((b|0)!=(c|0))continue;break}}d=d+716|0;if((S|0)!=(d|0))continue;break}}h=h+1|0;if((l|0)!=(h|0))continue;break}}if(J[686392]>=5){d=0;b=fc-48|0;fc=b;l=J[t+12>>2];if(J[l+24>>2]>0)while(1){J[b+32>>2]=d;rd(209415,b+32|0);a=J[l+44>>2];if((a|0)>0){h=J[l+48>>2];f=0;while(1){c=J[h>>2];if((c|0)>0){e=J[h+4>>2];s=0;while(1){j=J[e+56>>2];he:{if(!j)break he;a=J[e+52>> +2];if((a|0)<=0)break he;w=0;while(1){ie:{if(!J[j+4>>2])break ie;c=J[e+32>>2];if((c|0)<=0)break ie;i=J[j>>2];o=0;while(1){g=J[i+28>>2];je:{if(!g)break je;m=0;a=J[i+24>>2];if((a|0)<=0)break je;while(1){if(J[g>>2]>0){a=J[g+4>>2];c=0;while(1){if(J[a+32>>2]==(d|0)){J[b+24>>2]=c;J[b+20>>2]=m;J[b+16>>2]=o;J[b+12>>2]=w;J[b+8>>2]=s;J[b+4>>2]=f;J[b>>2]=d;rd(209473,b);a=a+72|0;c=c+1|0;if((c|0)>2])continue}break}a=J[i+24>>2]}g=g+60|0;m=m+1|0;if((m|0)<(a|0))continue;break}c=J[e+32>>2]}i=i+52|0;o=o+1|0;if((o| +0)<(c|0))continue;break}a=J[e+52>>2]}j=j+36|0;w=w+1|0;if((w|0)<(a|0))continue;break}c=J[h>>2]}e=e- -64|0;s=s+1|0;if((s|0)<(c|0))continue;break}a=J[l+44>>2]}h=h+716|0;f=f+1|0;if((f|0)<(a|0))continue;break}}d=d+1|0;if((d|0)>2])continue;break}fc=b+48|0}Pf(k);e=0}fc=x+48|0;break sd}ra();B()}if(e)break _;c=J[t+32>>2];if(!c)break aa;a=J[t+12>>2];iba(t,0);a=J[a+32>>2];jba(a);ke:{le:{if(!cP(a))while(1){if(!K[a+101|0])break le;b=-1;if($O(t,c,J[a+24>>2],J[a+28>>2],J[a+32>>2],J[a+36>>2]))break ke;if(!cP(a))continue; +break}b=0;break ke}fa(197957,199015,148,212286);B()}if(b){rd(211622,0);break _}a=tj(J[t+32>>2]);if((Xg(J[t+32>>2],6,0)|0)<0)break _;zi(J[t+32>>2],a);if((Xg(J[t+32>>2],0,0)|0)<0)break _;if(oo(J[t+4>>2],J[t+32>>2],-1))break _;J[t+20>>2]=a+J[t+20>>2];Pf(J[t+32>>2]);J[t+32>>2]=0;gP(J[t+12>>2]);J[t+12>>2]=0;ba=ba+1|0;if((ba|0)>2])continue;break}a=jl(65497);J[t+28>>2]=a;if(!a)break _;if(il(J[t+4>>2],J[t+16>>2],a)){rd(209046,0);break _}Si(J[t+28>>2]);e=0;J[t+28>>2]=0;if(sF(J[t+4>>2]))break _;hP(t); +break b}fa(211269,209153,944,211280);B()}ra();B()}fa(211445,209153,1175,211481);B()}fa(211445,209153,1180,211481);B()}fa(209113,209153,1458,210435);B()}rd(d,0)}hP(t);e=-1}fc=N+5216|0;return e|0}fa(211404,209153,186,211424);B()}function N_(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,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,$=0,ca=0,da=0,ea=0,fa=0,ga=0;da=fc-16|0;fc=da;a:{while(1){b:{b=J[a+8>>2];b=kc[J[J[b>>2]+ +28>>2]](b)|0;if((b|0)!=255){if((b|0)!=-1)continue;break b}while(1){b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==255)continue;break}c:switch(c+1|0){case 1:continue;case 0:break b;default:break c}b=0;if(!((c&-16)==48|c-146>>>0<2|((c|0)==79|(c|0)==217))){b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break b;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break b;b=d|b<<8}d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:switch(c-79|0){case 2:if(r){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,786327,0);a=2;break a}o:{b= +J[a+8>>2];p:{if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break p;b=J[a+8>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break p;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+140>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p; +d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+144>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+148>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>> +2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+152>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+156>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=kc[J[J[b>> +2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+160>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+ +164>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break p;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break p;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+168>>2]=e|(c<<16|b<<24|d<<8);b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break p;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=-1)break o}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,787022,0);a=2;break a}d=c|b<<8;J[a+188>>2]= +d;if(!(!J[a+32>>2]|(d|0)==J[a+12>>2])){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,787986,0);a=2;break a}q:{g=J[a+140>>2];r:{if(!g)break r;h=J[a+144>>2];if(!h)break r;e=J[a+148>>2];if(e>>>0>=g>>>0)break r;f=J[a+152>>2];if(f>>>0>=h>>>0)break r;b=J[a+156>>2];if(!b)break r;c=J[a+160>>2];if(!c)break r;i=J[a+164>>2];if(i>>>0>e>>>0|e>>>0>=b+i>>>0)break r;l=J[a+168>>2];if(l>>>0>f>>>0|f>>>0>=c+l>>>0)break r;if(d)break q}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,787022,0);a=2;break a}d=h-1|0;l=(d+c|0)-l|0;h=(l>>>0)/(c>>>0)|0;J[a+ +196>>2]=h;j=g-1|0;m=(j+b|0)-i|0;i=(m>>>0)/(b>>>0)|0;J[a+192>>2]=i;q=d;d=J[a+28>>2];g=1<>2]=q+g>>>d;J[a+172>>2]=g+j>>>d;J[a+184>>2]=(f+g|0)-1>>>d;J[a+180>>2]=(e+g|0)-1>>>d;s:{if(!(b>>>0>m>>>0|c>>>0>l>>>0))if(i>>>0<2147483647/(h>>>0)>>>0)break s;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,788822,0);a=2;break a}b=Gd(P(h,i),64);J[a+200>>2]=b;f=P(J[a+196>>2],J[a+192>>2]);if(!f)break d;e=0;d=0;if(f>>>0>=4){h=f&-4;r=0;while(1){c=d<<6;g=c+b|0;J[g+56>>2]=0;J[g+60>>2]=0;J[g>>2]=0;g=b+(c|64)|0;J[g+56>>2]=0;J[g+ +60>>2]=0;J[g>>2]=0;g=b+(c|128)|0;J[g+56>>2]=0;J[g+60>>2]=0;J[g>>2]=0;c=b+(c|192)|0;J[c+56>>2]=0;J[c+60>>2]=0;J[c>>2]=0;d=d+4|0;r=r+4|0;if((h|0)!=(r|0))continue;break}}g=f&3;if(g)while(1){c=b+(d<<6)|0;J[c+56>>2]=0;J[c+60>>2]=0;J[c>>2]=0;d=d+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}c=0;if(!f)break d;while(1){b=Gd(J[a+188>>2],88);J[(J[a+200>>2]+(c<<6)|0)+60>>2]=b;f=J[a+188>>2];t:{if(!f)break t;d=0;if((f|0)!=1){h=f&-2;e=0;while(1){g=b+P(d,88)|0;J[g+84>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;J[g+44>>2]=0;g= +b+P(d|1,88)|0;J[g+84>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;J[g+44>>2]=0;d=d+2|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!(f&1))break t;b=b+P(d,88)|0;J[b+84>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+44>>2]=0}c=c+1|0;if(c>>>0>2],J[a+192>>2])>>>0)continue;break}break d;case 3:if(!r){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,789658,0);a=2;break a}u:{b=J[a+8>>2];i=kc[J[J[b>>2]+28>>2]](b)|0;v:{if((i|0)==-1)break v;b=J[a+8>>2];p=kc[J[J[b>>2]+28>>2]](b)|0;if((p|0)==-1)break v;b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)| +0;if((e|0)==-1)break v;b=J[a+8>>2];f=kc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break v;b=J[a+8>>2];m=kc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break v;b=J[a+8>>2];h=kc[J[J[b>>2]+28>>2]](b)|0;if((h|0)==-1)break v;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break v;c=J[a+8>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==-1)break v;c=J[a+8>>2];n=kc[J[J[c>>2]+28>>2]](c)|0;if((n|0)==-1)break v;c=J[a+8>>2];v=kc[J[J[c>>2]+28>>2]](c)|0;if((v|0)!=-1)break u}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,790631,0);a=2;break a}if(!(!(h- +32>>>0<4294967265|b>>>0>8)&d>>>0<9)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,790631,0);a=2;break a}c=J[a+196>>2];g=J[a+192>>2];if(P(c,g)){o=f|e<<8;k=d+2|0;q=b+2|0;l=h+1|0;u=l&-8;j=l&7;f=J[a+188>>2];r=J[a+200>>2];e=0;while(1){t=e<<6;b=t+r|0;J[b+12>>2]=m;J[b+8>>2]=o;J[b+4>>2]=p;d=0;if(f){g=J[b+60>>2];c=0;while(1){d=P(c,88);b=d+g|0;J[b+36>>2]=v;J[b+32>>2]=n;J[b+28>>2]=k;J[b+24>>2]=q;J[b+20>>2]=h;J[b+16>>2]=i;b=Gd(l,100);r=J[a+200>>2];g=J[(t+r|0)+60>>2];J[(d+g|0)+84>>2]=b;d=0;f=0;if(h>>>0>=7)while(1){J[(b+P(d, 100)|0)+96>>2]=0;J[(b+P(d|1,100)|0)+96>>2]=0;J[(b+P(d|2,100)|0)+96>>2]=0;J[(b+P(d|3,100)|0)+96>>2]=0;J[(b+P(d|4,100)|0)+96>>2]=0;J[(b+P(d|5,100)|0)+96>>2]=0;J[(b+P(d|6,100)|0)+96>>2]=0;J[(b+P(d|7,100)|0)+96>>2]=0;d=d+8|0;f=f+8|0;if((u|0)!=(f|0))continue;break}f=0;if(j)while(1){J[(b+P(d,100)|0)+96>>2]=0;d=d+1|0;f=f+1|0;if((j|0)!=(f|0))continue;break}c=c+1|0;d=J[a+188>>2];if(c>>>0>>0)continue;break}g=J[a+192>>2];c=J[a+196>>2]}f=d;e=e+1|0;if(e>>>0>>0)continue;break}}e=i&1;d=0;while(1){w:{if(e){b= -J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,788887,0);a=2;break a}b=J[J[J[a+200>>2]+60>>2]+84>>2];J[b+P(d,100)>>2]=c&15;c=c>>>4&15;break w}b=J[J[J[a+200>>2]+60>>2]+84>>2];J[b+P(d,100)>>2]=15;c=15}J[(P(d,100)+b|0)+4>>2]=c;d=d+1|0;if(h>>>0>=d>>>0)continue;break}break e;case 4:if(!p){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,789651,0);a=2;break a}x:{y:{z:{A:{if(M[a+188>>2]<257)break A;b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break y;b=J[a+8>>2];d=gc[J[J[b>>2]+ -28>>2]](b)|0;if((d|0)==-1)break y;b=J[a+188>>2];if(b>>>0<=256)break A;d=d|c<<8;break z}b=J[a+8>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break y;b=J[a+188>>2]}if(b>>>0<=d>>>0)break y;b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break y;b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break y;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break y;f=J[a+8>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break y;g=J[a+8>>2];p=gc[J[J[g>>2]+28>>2]](g)|0;if((p|0)==-1)break y;g=J[a+8>>2]; -m=gc[J[J[g>>2]+28>>2]](g)|0;if((m|0)!=-1)break x}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,790472,0);a=2;break a}if(!(!(e-32>>>0<4294967265|b>>>0>8)&f>>>0<9)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,790472,0);a=2;break a}i=c&1;h=P(d,88);c=J[a+200>>2];if(P(J[a+196>>2],J[a+192>>2])){n=i|J[(h+J[c+60>>2]|0)+16>>2]&-2;v=f+2|0;o=b+2|0;l=e+1|0;k=l&-8;j=l&7;g=0;while(1){d=g<<6;b=h+J[(d+c|0)+60>>2]|0;J[b+36>>2]=m;J[b+32>>2]=p;J[b+28>>2]=v;J[b+24>>2]=o;J[b+20>>2]=e;J[b+16>>2]=n;b=Nd(J[b+84>>2],l,100);c=J[a+200>>2];J[(h+J[(d+c| +J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,790631,0);a=2;break a}b=J[J[J[a+200>>2]+60>>2]+84>>2];J[b+P(d,100)>>2]=c&15;c=c>>>4&15;break w}b=J[J[J[a+200>>2]+60>>2]+84>>2];J[b+P(d,100)>>2]=15;c=15}J[(P(d,100)+b|0)+4>>2]=c;d=d+1|0;if(h>>>0>=d>>>0)continue;break}break e;case 4:if(!p){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,791395,0);a=2;break a}x:{y:{z:{A:{if(M[a+188>>2]<257)break A;b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break y;b=J[a+8>>2];d=kc[J[J[b>>2]+ +28>>2]](b)|0;if((d|0)==-1)break y;b=J[a+188>>2];if(b>>>0<=256)break A;d=d|c<<8;break z}b=J[a+8>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break y;b=J[a+188>>2]}if(b>>>0<=d>>>0)break y;b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break y;b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break y;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break y;f=J[a+8>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break y;g=J[a+8>>2];p=kc[J[J[g>>2]+28>>2]](g)|0;if((p|0)==-1)break y;g=J[a+8>>2]; +m=kc[J[J[g>>2]+28>>2]](g)|0;if((m|0)!=-1)break x}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,792216,0);a=2;break a}if(!(!(e-32>>>0<4294967265|b>>>0>8)&f>>>0<9)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,792216,0);a=2;break a}i=c&1;h=P(d,88);c=J[a+200>>2];if(P(J[a+196>>2],J[a+192>>2])){n=i|J[(h+J[c+60>>2]|0)+16>>2]&-2;v=f+2|0;o=b+2|0;l=e+1|0;k=l&-8;j=l&7;g=0;while(1){d=g<<6;b=h+J[(d+c|0)+60>>2]|0;J[b+36>>2]=m;J[b+32>>2]=p;J[b+28>>2]=v;J[b+24>>2]=o;J[b+20>>2]=e;J[b+16>>2]=n;b=Wd(J[b+84>>2],l,100);c=J[a+200>>2];J[(h+J[(d+c| 0)+60>>2]|0)+84>>2]=b;d=0;f=0;if(e>>>0>=7)while(1){J[(b+P(d,100)|0)+96>>2]=0;J[(b+P(d|1,100)|0)+96>>2]=0;J[(b+P(d|2,100)|0)+96>>2]=0;J[(b+P(d|3,100)|0)+96>>2]=0;J[(b+P(d|4,100)|0)+96>>2]=0;J[(b+P(d|5,100)|0)+96>>2]=0;J[(b+P(d|6,100)|0)+96>>2]=0;J[(b+P(d|7,100)|0)+96>>2]=0;d=d+8|0;f=f+8|0;if((k|0)!=(f|0))continue;break}f=0;if(j)while(1){J[(b+P(d,100)|0)+96>>2]=0;d=d+1|0;f=f+1|0;if((j|0)!=(f|0))continue;break}g=g+1|0;if(g>>>0>2],J[a+192>>2])>>>0)continue;break}}d=0;while(1){B:{if(i){b=J[a+ -8>>2];f=gc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,788887,0);a=2;break a}c=J[a+200>>2];b=J[(h+J[c+60>>2]|0)+84>>2];J[b+P(d,100)>>2]=f&15;f=f>>>4&15;break B}b=J[(h+J[c+60>>2]|0)+84>>2];J[b+P(d,100)>>2]=15;f=15}J[(P(d,100)+b|0)+4>>2]=f;d=d+1|0;if(e>>>0>=d>>>0)continue;break}p=1;g=P(J[a+196>>2],J[a+192>>2]);if(g>>>0<=1)continue;while(1){d=h+J[((p<<6)+c|0)+60>>2]|0;e=J[d+20>>2]+1|0;i=e>>>0<=1?1:e;l=i&1;f=J[d+84>>2];d=0;if(e>>>0>=2){i=i&-2;e=0;while(1){j=P(d,100);m=j+f|0;j= -b+j|0;J[m>>2]=J[j>>2];J[m+4>>2]=J[j+4>>2];j=P(d|1,100);m=j+f|0;j=b+j|0;J[m>>2]=J[j>>2];J[m+4>>2]=J[j+4>>2];d=d+2|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}if(l){d=P(d,100);e=d+f|0;d=b+d|0;J[e>>2]=J[d>>2];J[e+4>>2]=J[d+4>>2]}p=p+1|0;if((g|0)!=(p|0))continue;break}p=1;continue;case 13:if(!r){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,791238,0);a=2;break a}c=J[J[a+200>>2]+60>>2];d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);a=2;break a}J[c+40>>2]=d;C:{c=J[J[a+200>> -2]+60>>2];switch(J[c+40>>2]&31){case 1:break g;case 2:break h;case 0:break C;default:break i}}if(b>>>0<=3){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);a=2;break a}b=b-3|0;J[c+48>>2]=b;c=Nd(J[c+44>>2],b,4);b=J[J[a+200>>2]+60>>2];J[b+44>>2]=c;d=0;if(!J[b+48>>2])break f;while(1){b=J[b+44>>2];c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);a=2;break a}J[(d<<2)+b>>2]=c;d=d+1|0;b=J[J[a+200>>2]+60>>2];if(d>>>0>2])continue;break}break f;case 14:if(!s){xc(1, -gc[J[J[a>>2]+52>>2]](a)|0,792789,0);a=2;break a}D:{E:{F:{G:{if(M[a+188>>2]<257)break G;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break E;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break E;f=J[a+188>>2];if(f>>>0<=256)break G;d=d|c<<8;break F}c=J[a+8>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==-1)break E;f=J[a+188>>2]}if(d>>>0>=f>>>0)break E;c=J[J[a+200>>2]+60>>2];e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1)break D}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);a=2;break a}f=P(d, -88);J[(f+c|0)+40>>2]=e;H:{c=f+J[J[a+200>>2]+60>>2]|0;switch(J[c+40>>2]&31){case 1:break k;case 2:break l;case 0:break H;default:break m}}d=M[a+188>>2]>256?5:4;if(d>>>0>=b>>>0){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);a=2;break a}b=b-d|0;J[c+48>>2]=b;c=Nd(J[c+44>>2],b,4);b=J[J[a+200>>2]+60>>2];e=f+b|0;J[e+44>>2]=c;d=0;if(!J[e+48>>2])break j;while(1){b=J[(b+f|0)+44>>2];c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);a=2;break a}J[(d<<2)+b>>2]=c;d=d+1|0; -b=J[J[a+200>>2]+60>>2];if(d>>>0>2])continue;break}break j;case 15:xc(6,-1,794265,0);if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((gc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,795099,0);a=2;break a;case 16:xc(6,-1,795875,0);if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((gc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,796718,0);a=2;break a;case 17:xc(6,-1,797466,0);if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((gc[J[J[c>>2]+48>>2]](c, -b)|0)==(b|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,798194,0);a=2;break a;case 6:if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((gc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,798941,0);a=2;break a;case 8:if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((gc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,799649,0);a=2;break a;case 20:if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((gc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0, -800452,0);a=2;break a;case 21:if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((gc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,801084,0);a=2;break a;default:d=gc[J[J[a>>2]+52>>2]](a)|0;J[da>>2]=c;xc(1,d,801995,da);if(b>>>0<3)continue;c=J[a+8>>2];gc[J[J[c>>2]+48>>2]](c,b-2|0)|0;continue;case 65:break n;case 0:continue}if(!r){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,802616,0);a=2;break a}if(!p){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,803234,0);a=2;break a}I:{J:{K:{if(s)while(1){y=0;X=bc-16|0;bc= -X;L:{M:{b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;N:{if((b|0)==-1)break N;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break N;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break N;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break N;f=J[a+8>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break N;g=J[a+8>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break N;h=J[a+8>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break N;i=J[a+8>>2];if((gc[J[J[i>>2]+28>>2]](i)|0)!=-1)break M}xc(1,gc[J[J[a>> -2]+52>>2]](a)|0,805240,0);f=0;break L}O:{u=c|b<<8;P:{if(u>>>0>=P(J[a+196>>2],J[a+192>>2])>>>0)break P;b=J[a+200>>2]+(u<<6)|0;if((h|0)!=J[b+56>>2])break P;c=J[b>>2];if(h){if(!c)break P;break O}if(!c)break O}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,805713,0);f=0;break L}J[b+56>>2]=h+1;b=g|(e<<16|d<<24|f<<8);i=b-12|0;ea=!b;d=u<<6;Q:while(1){R:{b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=255){if((b|0)!=-1)continue;break R}while(1){b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}S:switch(b+ -1|0){case 1:continue;case 0:break R;default:break S}f=0;if(!((b&-16)==48|b-146>>>0<2|((b|0)==79|(b|0)==217))){c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break R;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break R;f=e|c<<8}i=(i-f|0)-2|0;T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:switch(b-82|0){case 0:if(h){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,806480,0);f=0;break L}ba:{b=J[a+8>>2];s=gc[J[J[b>>2]+28>>2]](b)|0;ca:{if((s|0)==-1)break ca;b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break ca;b=J[a+ -8>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break ca;b=J[a+8>>2];p=gc[J[J[b>>2]+28>>2]](b)|0;if((p|0)==-1)break ca;b=J[a+8>>2];m=gc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break ca;b=J[a+8>>2];l=gc[J[J[b>>2]+28>>2]](b)|0;if((l|0)==-1)break ca;b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break ca;b=J[a+8>>2];f=gc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break ca;b=J[a+8>>2];r=gc[J[J[b>>2]+28>>2]](b)|0;if((r|0)==-1)break ca;b=J[a+8>>2];v=gc[J[J[b>>2]+28>>2]](b)|0;if((v|0)!=-1)break ba}xc(1,gc[J[J[a>> -2]+52>>2]](a)|0,788887,0);f=0;break L}if(!(!(l-32>>>0<4294967265|e>>>0>8)&f>>>0<9)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,788887,0);f=0;break L}j=J[a+200>>2];b=d+j|0;J[b+12>>2]=m;J[b+8>>2]=p|g<<8;J[b+4>>2]=c;c=0;p=0;if(J[a+188>>2]){k=f+2|0;q=e+2|0;m=l+1|0;t=m&-8;n=m&7;g=J[b+60>>2];o=0;while(1){e=P(o,88);b=e+g|0;J[b+36>>2]=v;J[b+32>>2]=r;J[b+28>>2]=k;J[b+24>>2]=q;J[b+20>>2]=l;J[b+16>>2]=s;f=Nd(J[b+84>>2],m,100);j=J[a+200>>2];g=J[(d+j|0)+60>>2];J[(e+g|0)+84>>2]=f;b=0;e=0;if(l>>>0>=7)while(1){J[(f+P(b,100)| +8>>2];f=kc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,790631,0);a=2;break a}c=J[a+200>>2];b=J[(h+J[c+60>>2]|0)+84>>2];J[b+P(d,100)>>2]=f&15;f=f>>>4&15;break B}b=J[(h+J[c+60>>2]|0)+84>>2];J[b+P(d,100)>>2]=15;f=15}J[(P(d,100)+b|0)+4>>2]=f;d=d+1|0;if(e>>>0>=d>>>0)continue;break}p=1;g=P(J[a+196>>2],J[a+192>>2]);if(g>>>0<=1)continue;while(1){d=h+J[((p<<6)+c|0)+60>>2]|0;e=J[d+20>>2]+1|0;i=e>>>0<=1?1:e;l=i&1;f=J[d+84>>2];d=0;if(e>>>0>=2){i=i&-2;e=0;while(1){j=P(d,100);m=j+f|0;j= +b+j|0;J[m>>2]=J[j>>2];J[m+4>>2]=J[j+4>>2];j=P(d|1,100);m=j+f|0;j=b+j|0;J[m>>2]=J[j>>2];J[m+4>>2]=J[j+4>>2];d=d+2|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}if(l){d=P(d,100);e=d+f|0;d=b+d|0;J[e>>2]=J[d>>2];J[e+4>>2]=J[d+4>>2]}p=p+1|0;if((g|0)!=(p|0))continue;break}p=1;continue;case 13:if(!r){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,792982,0);a=2;break a}c=J[J[a+200>>2]+60>>2];d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);a=2;break a}J[c+40>>2]=d;C:{c=J[J[a+200>> +2]+60>>2];switch(J[c+40>>2]&31){case 1:break g;case 2:break h;case 0:break C;default:break i}}if(b>>>0<=3){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);a=2;break a}b=b-3|0;J[c+48>>2]=b;c=Wd(J[c+44>>2],b,4);b=J[J[a+200>>2]+60>>2];J[b+44>>2]=c;d=0;if(!J[b+48>>2])break f;while(1){b=J[b+44>>2];c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);a=2;break a}J[(d<<2)+b>>2]=c;d=d+1|0;b=J[J[a+200>>2]+60>>2];if(d>>>0>2])continue;break}break f;case 14:if(!s){Cc(1, +kc[J[J[a>>2]+52>>2]](a)|0,794533,0);a=2;break a}D:{E:{F:{G:{if(M[a+188>>2]<257)break G;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break E;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break E;f=J[a+188>>2];if(f>>>0<=256)break G;d=d|c<<8;break F}c=J[a+8>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==-1)break E;f=J[a+188>>2]}if(d>>>0>=f>>>0)break E;c=J[J[a+200>>2]+60>>2];e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1)break D}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);a=2;break a}f=P(d, +88);J[(f+c|0)+40>>2]=e;H:{c=f+J[J[a+200>>2]+60>>2]|0;switch(J[c+40>>2]&31){case 1:break k;case 2:break l;case 0:break H;default:break m}}d=M[a+188>>2]>256?5:4;if(d>>>0>=b>>>0){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);a=2;break a}b=b-d|0;J[c+48>>2]=b;c=Wd(J[c+44>>2],b,4);b=J[J[a+200>>2]+60>>2];e=f+b|0;J[e+44>>2]=c;d=0;if(!J[e+48>>2])break j;while(1){b=J[(b+f|0)+44>>2];c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);a=2;break a}J[(d<<2)+b>>2]=c;d=d+1|0; +b=J[J[a+200>>2]+60>>2];if(d>>>0>2])continue;break}break j;case 15:Cc(6,-1,796026,0);if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,796858,0);a=2;break a;case 16:Cc(6,-1,797616,0);if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,798466,0);a=2;break a;case 17:Cc(6,-1,799223,0);if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((kc[J[J[c>>2]+48>>2]](c, +b)|0)==(b|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,799933,0);a=2;break a;case 6:if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,800689,0);a=2;break a;case 8:if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,801385,0);a=2;break a;case 20:if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0, +802188,0);a=2;break a;case 21:if(b>>>0<3)continue;c=J[a+8>>2];b=b-2|0;if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,802820,0);a=2;break a;default:d=kc[J[J[a>>2]+52>>2]](a)|0;J[da>>2]=c;Cc(1,d,803687,da);if(b>>>0<3)continue;c=J[a+8>>2];kc[J[J[c>>2]+48>>2]](c,b-2|0)|0;continue;case 65:break n;case 0:continue}if(!r){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,804348,0);a=2;break a}if(!p){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,804970,0);a=2;break a}I:{J:{K:{if(s)while(1){y=0;X=fc-16|0;fc= +X;L:{M:{b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;N:{if((b|0)==-1)break N;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break N;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break N;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break N;f=J[a+8>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break N;g=J[a+8>>2];g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break N;h=J[a+8>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break N;i=J[a+8>>2];if((kc[J[J[i>>2]+28>>2]](i)|0)!=-1)break M}Cc(1,kc[J[J[a>> +2]+52>>2]](a)|0,806997,0);f=0;break L}O:{u=c|b<<8;P:{if(u>>>0>=P(J[a+196>>2],J[a+192>>2])>>>0)break P;b=J[a+200>>2]+(u<<6)|0;if((h|0)!=J[b+56>>2])break P;c=J[b>>2];if(h){if(!c)break P;break O}if(!c)break O}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,807447,0);f=0;break L}J[b+56>>2]=h+1;b=g|(e<<16|d<<24|f<<8);i=b-12|0;ea=!b;d=u<<6;Q:while(1){R:{b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=255){if((b|0)!=-1)continue;break R}while(1){b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}S:switch(b+ +1|0){case 1:continue;case 0:break R;default:break S}f=0;if(!((b&-16)==48|b-146>>>0<2|((b|0)==79|(b|0)==217))){c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break R;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break R;f=e|c<<8}i=(i-f|0)-2|0;T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:switch(b-82|0){case 0:if(h){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,808220,0);f=0;break L}ba:{b=J[a+8>>2];s=kc[J[J[b>>2]+28>>2]](b)|0;ca:{if((s|0)==-1)break ca;b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break ca;b=J[a+ +8>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break ca;b=J[a+8>>2];p=kc[J[J[b>>2]+28>>2]](b)|0;if((p|0)==-1)break ca;b=J[a+8>>2];m=kc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break ca;b=J[a+8>>2];l=kc[J[J[b>>2]+28>>2]](b)|0;if((l|0)==-1)break ca;b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break ca;b=J[a+8>>2];f=kc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break ca;b=J[a+8>>2];r=kc[J[J[b>>2]+28>>2]](b)|0;if((r|0)==-1)break ca;b=J[a+8>>2];v=kc[J[J[b>>2]+28>>2]](b)|0;if((v|0)!=-1)break ba}Cc(1,kc[J[J[a>> +2]+52>>2]](a)|0,790631,0);f=0;break L}if(!(!(l-32>>>0<4294967265|e>>>0>8)&f>>>0<9)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,790631,0);f=0;break L}j=J[a+200>>2];b=d+j|0;J[b+12>>2]=m;J[b+8>>2]=p|g<<8;J[b+4>>2]=c;c=0;p=0;if(J[a+188>>2]){k=f+2|0;q=e+2|0;m=l+1|0;t=m&-8;n=m&7;g=J[b+60>>2];o=0;while(1){e=P(o,88);b=e+g|0;J[b+36>>2]=v;J[b+32>>2]=r;J[b+28>>2]=k;J[b+24>>2]=q;J[b+20>>2]=l;J[b+16>>2]=s;f=Wd(J[b+84>>2],m,100);j=J[a+200>>2];g=J[(d+j|0)+60>>2];J[(e+g|0)+84>>2]=f;b=0;e=0;if(l>>>0>=7)while(1){J[(f+P(b,100)| 0)+96>>2]=0;J[(f+P(b|1,100)|0)+96>>2]=0;J[(f+P(b|2,100)|0)+96>>2]=0;J[(f+P(b|3,100)|0)+96>>2]=0;J[(f+P(b|4,100)|0)+96>>2]=0;J[(f+P(b|5,100)|0)+96>>2]=0;J[(f+P(b|6,100)|0)+96>>2]=0;J[(f+P(b|7,100)|0)+96>>2]=0;b=b+8|0;e=e+8|0;if((t|0)!=(e|0))continue;break}e=0;if(n)while(1){J[(f+P(b,100)|0)+96>>2]=0;b=b+1|0;e=e+1|0;if((n|0)!=(e|0))continue;break}o=o+1|0;p=J[a+188>>2];if(o>>>0

      >>0)continue;break}}if(!(s&1)){c=l+1|0;m=c>>>0<=1?1:c;g=m&3;s=J[(d+j|0)+60>>2];f=J[s+84>>2];e=0;b=0;if(c>>>0>=4){j=m&-4;c= -0;while(1){m=P(b,100)+f|0;J[m>>2]=15;J[m+4>>2]=15;m=P(b|1,100)+f|0;J[m>>2]=15;J[m+4>>2]=15;m=P(b|2,100)+f|0;J[m>>2]=15;J[m+4>>2]=15;m=P(b|3,100)+f|0;J[m>>2]=15;J[m+4>>2]=15;b=b+4|0;c=c+4|0;if((j|0)!=(c|0))continue;break}}if(!g)break T;while(1){c=P(b,100)+f|0;J[c>>2]=15;J[c+4>>2]=15;b=b+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}break T}while(1){b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,788887,0);f=0;break L}s=J[(d+J[a+200>>2]|0)+60>>2];f=J[s+84>>2];e=f+P(c, -100)|0;J[e+4>>2]=b>>>4&15;J[e>>2]=b&15;c=c+1|0;if(l>>>0>=c>>>0)continue;break}p=J[a+188>>2];break T;case 1:if(h){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,806887,0);f=0;break L}da:{ea:{fa:{ga:{if(M[a+188>>2]<257)break ga;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break ea;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break ea;f=J[a+188>>2];if(f>>>0<=256)break ga;b=c|b<<8;break fa}b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break ea;f=J[a+188>>2]}if(b>>>0>=f>>>0)break ea;c=J[a+8>>2]; -f=gc[J[J[c>>2]+28>>2]](c)|0;if((f|0)==-1)break ea;c=J[a+8>>2];g=gc[J[J[c>>2]+28>>2]](c)|0;if((g|0)==-1)break ea;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break ea;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break ea;l=J[a+8>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break ea;j=J[a+8>>2];s=gc[J[J[j>>2]+28>>2]](j)|0;if((s|0)!=-1)break da}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,790472,0);f=0;break L}if(!(!(g-32>>>0<4294967265|c>>>0>8)&e>>>0<9)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,790472,0);f= -0;break L}j=P(b,88);b=j+J[(d+J[a+200>>2]|0)+60>>2]|0;J[b+36>>2]=s;J[b+32>>2]=l;J[b+28>>2]=e+2;J[b+24>>2]=c+2;J[b+20>>2]=g;s=f&1;J[b+16>>2]=s|J[b+16>>2]&-2;l=g+1|0;f=Nd(J[b+84>>2],l,100);J[(j+J[(d+J[a+200>>2]|0)+60>>2]|0)+84>>2]=f;e=0;b=0;if(g>>>0>=7){p=l&-8;c=0;while(1){J[(f+P(b,100)|0)+96>>2]=0;J[(f+P(b|1,100)|0)+96>>2]=0;J[(f+P(b|2,100)|0)+96>>2]=0;J[(f+P(b|3,100)|0)+96>>2]=0;J[(f+P(b|4,100)|0)+96>>2]=0;J[(f+P(b|5,100)|0)+96>>2]=0;J[(f+P(b|6,100)|0)+96>>2]=0;J[(f+P(b|7,100)|0)+96>>2]=0;b=b+8|0; +0;while(1){m=P(b,100)+f|0;J[m>>2]=15;J[m+4>>2]=15;m=P(b|1,100)+f|0;J[m>>2]=15;J[m+4>>2]=15;m=P(b|2,100)+f|0;J[m>>2]=15;J[m+4>>2]=15;m=P(b|3,100)+f|0;J[m>>2]=15;J[m+4>>2]=15;b=b+4|0;c=c+4|0;if((j|0)!=(c|0))continue;break}}if(!g)break T;while(1){c=P(b,100)+f|0;J[c>>2]=15;J[c+4>>2]=15;b=b+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}break T}while(1){b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,790631,0);f=0;break L}s=J[(d+J[a+200>>2]|0)+60>>2];f=J[s+84>>2];e=f+P(c, +100)|0;J[e+4>>2]=b>>>4&15;J[e>>2]=b&15;c=c+1|0;if(l>>>0>=c>>>0)continue;break}p=J[a+188>>2];break T;case 1:if(h){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,808619,0);f=0;break L}da:{ea:{fa:{ga:{if(M[a+188>>2]<257)break ga;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break ea;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break ea;f=J[a+188>>2];if(f>>>0<=256)break ga;b=c|b<<8;break fa}b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break ea;f=J[a+188>>2]}if(b>>>0>=f>>>0)break ea;c=J[a+8>>2]; +f=kc[J[J[c>>2]+28>>2]](c)|0;if((f|0)==-1)break ea;c=J[a+8>>2];g=kc[J[J[c>>2]+28>>2]](c)|0;if((g|0)==-1)break ea;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break ea;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break ea;l=J[a+8>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break ea;j=J[a+8>>2];s=kc[J[J[j>>2]+28>>2]](j)|0;if((s|0)!=-1)break da}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,792216,0);f=0;break L}if(!(!(g-32>>>0<4294967265|c>>>0>8)&e>>>0<9)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,792216,0);f= +0;break L}j=P(b,88);b=j+J[(d+J[a+200>>2]|0)+60>>2]|0;J[b+36>>2]=s;J[b+32>>2]=l;J[b+28>>2]=e+2;J[b+24>>2]=c+2;J[b+20>>2]=g;s=f&1;J[b+16>>2]=s|J[b+16>>2]&-2;l=g+1|0;f=Wd(J[b+84>>2],l,100);J[(j+J[(d+J[a+200>>2]|0)+60>>2]|0)+84>>2]=f;e=0;b=0;if(g>>>0>=7){p=l&-8;c=0;while(1){J[(f+P(b,100)|0)+96>>2]=0;J[(f+P(b|1,100)|0)+96>>2]=0;J[(f+P(b|2,100)|0)+96>>2]=0;J[(f+P(b|3,100)|0)+96>>2]=0;J[(f+P(b|4,100)|0)+96>>2]=0;J[(f+P(b|5,100)|0)+96>>2]=0;J[(f+P(b|6,100)|0)+96>>2]=0;J[(f+P(b|7,100)|0)+96>>2]=0;b=b+8|0; c=c+8|0;if((p|0)!=(c|0))continue;break}}c=l&7;if(c)while(1){J[(f+P(b,100)|0)+96>>2]=0;b=b+1|0;e=e+1|0;if((c|0)!=(e|0))continue;break}b=0;if(!s){e=0;if(g>>>0>=3){g=l&-4;c=0;while(1){j=f+P(b,100)|0;J[j>>2]=15;J[j+4>>2]=15;j=f+P(b|1,100)|0;J[j>>2]=15;J[j+4>>2]=15;j=f+P(b|2,100)|0;J[j>>2]=15;J[j+4>>2]=15;j=f+P(b|3,100)|0;J[j>>2]=15;J[j+4>>2]=15;b=b+4|0;c=c+4|0;if((g|0)!=(c|0))continue;break}}c=l&3;if(!c)continue;while(1){g=f+P(b,100)|0;J[g>>2]=15;J[g+4>>2]=15;b=b+1|0;e=e+1|0;if((c|0)!=(e|0))continue; -break}continue}while(1){c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=-1){e=J[(j+J[(d+J[a+200>>2]|0)+60>>2]|0)+84>>2]+P(b,100)|0;J[e+4>>2]=c>>>4&15;J[e>>2]=c&15;b=b+1|0;if(g>>>0>=b>>>0)continue;continue Q}break}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,788887,0);f=0;break L;case 10:if(h){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,807332,0);f=0;break L}b=J[(d+J[a+200>>2]|0)+60>>2];c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);f=0;break L}J[b+40>>2]=c;ha:{b=J[(d+J[a+200>> -2]|0)+60>>2];switch(J[b+40>>2]&31){case 1:break V;case 2:break W;case 0:break ha;default:break X}}if(f>>>0<=3){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);f=0;break L}c=f-3|0;J[b+48>>2]=c;b=Nd(J[b+44>>2],c,4);f=J[(d+J[a+200>>2]|0)+60>>2];J[f+44>>2]=b;b=0;if(!J[f+48>>2])break U;while(1){c=J[f+44>>2];e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);f=0;break L}J[(b<<2)+c>>2]=e;b=b+1|0;f=J[(d+J[a+200>>2]|0)+60>>2];if(b>>>0>2])continue;break}break U; -case 11:if(h){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,807635,0);f=0;break L}ia:{ja:{ka:{la:{if(M[a+188>>2]<257)break la;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break ja;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break ja;e=J[a+188>>2];if(e>>>0<=256)break la;b=c|b<<8;break ka}b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break ja;e=J[a+188>>2]}if(b>>>0>=e>>>0)break ja;c=J[(d+J[a+200>>2]|0)+60>>2];e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1)break ia}xc(1,gc[J[J[a>>2]+52>> -2]](a)|0,793481,0);f=0;break L}b=P(b,88);J[(b+c|0)+40>>2]=e;ma:{na:{oa:{pa:{c=b+J[(d+J[a+200>>2]|0)+60>>2]|0;switch(J[c+40>>2]&31){case 2:break na;case 1:break oa;case 0:break pa;default:break ma}}e=M[a+188>>2]>256?5:4;if(e>>>0>=f>>>0){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);f=0;break L}e=f-e|0;J[c+48>>2]=e;c=Nd(J[c+44>>2],e,4);e=J[(d+J[a+200>>2]|0)+60>>2];g=b+e|0;J[g+44>>2]=c;f=0;if(!J[g+48>>2])continue;while(1){c=J[(b+e|0)+44>>2];e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1){xc(1,gc[J[J[a>> -2]+52>>2]](a)|0,793481,0);f=0;break L}J[(f<<2)+c>>2]=e;f=f+1|0;e=J[(d+J[a+200>>2]|0)+60>>2];if(f>>>0>2])continue;break}continue}J[c+48>>2]=1;c=Nd(J[c+44>>2],1,4);J[(b+J[(d+J[a+200>>2]|0)+60>>2]|0)+44>>2]=c;if(KY(a,c))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);f=0;break L}e=M[a+188>>2]>256?5:4;if((e|2)>>>0>f>>>0){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);f=0;break L}e=f-e>>>1|0;J[c+48>>2]=e;c=Nd(J[c+44>>2],e,4);e=J[(d+J[a+200>>2]|0)+60>>2];g=b+e|0;J[g+44>>2]=c;f=0;if(!J[g+48>>2])continue; -while(1){c=J[(b+e|0)+44>>2];qa:{e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1){g=J[a+8>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)!=-1)break qa}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);f=0;break L}J[(f<<2)+c>>2]=g|e<<8;f=f+1|0;e=J[(d+J[a+200>>2]|0)+60>>2];if(f>>>0>2])continue;break}continue}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);f=0;break L;case 12:if(h){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,807958,0);f=0;break L}xc(6,-1,808264,0);if(f>>>0<3)continue;b=J[a+8>>2];c=f-2|0;if((gc[J[J[b>> -2]+48>>2]](b,c)|0)==(c|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,795099,0);f=0;break L;case 13:xc(6,-1,808744,0);if(f>>>0<3)continue;b=J[a+8>>2];c=f-2|0;if((gc[J[J[b>>2]+48>>2]](b,c)|0)==(c|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,796718,0);f=0;break L;case 15:xc(6,-1,809132,0);if(f>>>0<3)continue;b=f-2|0;c=J[a+8>>2];if((b|0)==(gc[J[J[c>>2]+48>>2]](c,b)|0))break $;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,826430,0);f=0;break L;case 65:break Y;case 18:break _;case 6:break aa;default:break Z}if(f>>>0<3)continue; -b=f-2|0}c=J[a+8>>2];if((gc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,826742,0);f=0;break L}if(f>>>0<3)continue;b=J[a+8>>2];c=f-2|0;if((gc[J[J[b>>2]+48>>2]](b,c)|0)==(c|0))continue;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,801084,0);f=0;break L}c=gc[J[J[a>>2]+52>>2]](a)|0;J[X>>2]=b;xc(1,c,809626,X);if(f>>>0<3)continue;b=J[a+8>>2];gc[J[J[b>>2]+48>>2]](b,f-2|0)|0;continue}ra:{d=J[a+188>>2];if(d){e=J[(J[a+200>>2]+(u<<6)|0)+60>>2];b=0;while(1){sa:{ta:{ua:{va:{c=e+P(b,88)|0;switch(J[c+ +break}continue}while(1){c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=-1){e=J[(j+J[(d+J[a+200>>2]|0)+60>>2]|0)+84>>2]+P(b,100)|0;J[e+4>>2]=c>>>4&15;J[e>>2]=c&15;b=b+1|0;if(g>>>0>=b>>>0)continue;continue Q}break}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,790631,0);f=0;break L;case 10:if(h){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,809068,0);f=0;break L}b=J[(d+J[a+200>>2]|0)+60>>2];c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);f=0;break L}J[b+40>>2]=c;ha:{b=J[(d+J[a+200>> +2]|0)+60>>2];switch(J[b+40>>2]&31){case 1:break V;case 2:break W;case 0:break ha;default:break X}}if(f>>>0<=3){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);f=0;break L}c=f-3|0;J[b+48>>2]=c;b=Wd(J[b+44>>2],c,4);f=J[(d+J[a+200>>2]|0)+60>>2];J[f+44>>2]=b;b=0;if(!J[f+48>>2])break U;while(1){c=J[f+44>>2];e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);f=0;break L}J[(b<<2)+c>>2]=e;b=b+1|0;f=J[(d+J[a+200>>2]|0)+60>>2];if(b>>>0>2])continue;break}break U; +case 11:if(h){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,809404,0);f=0;break L}ia:{ja:{ka:{la:{if(M[a+188>>2]<257)break la;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break ja;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break ja;e=J[a+188>>2];if(e>>>0<=256)break la;b=c|b<<8;break ka}b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break ja;e=J[a+188>>2]}if(b>>>0>=e>>>0)break ja;c=J[(d+J[a+200>>2]|0)+60>>2];e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1)break ia}Cc(1,kc[J[J[a>>2]+52>> +2]](a)|0,795245,0);f=0;break L}b=P(b,88);J[(b+c|0)+40>>2]=e;ma:{na:{oa:{pa:{c=b+J[(d+J[a+200>>2]|0)+60>>2]|0;switch(J[c+40>>2]&31){case 2:break na;case 1:break oa;case 0:break pa;default:break ma}}e=M[a+188>>2]>256?5:4;if(e>>>0>=f>>>0){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);f=0;break L}e=f-e|0;J[c+48>>2]=e;c=Wd(J[c+44>>2],e,4);e=J[(d+J[a+200>>2]|0)+60>>2];g=b+e|0;J[g+44>>2]=c;f=0;if(!J[g+48>>2])continue;while(1){c=J[(b+e|0)+44>>2];e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1){Cc(1,kc[J[J[a>> +2]+52>>2]](a)|0,795245,0);f=0;break L}J[(f<<2)+c>>2]=e;f=f+1|0;e=J[(d+J[a+200>>2]|0)+60>>2];if(f>>>0>2])continue;break}continue}J[c+48>>2]=1;c=Wd(J[c+44>>2],1,4);J[(b+J[(d+J[a+200>>2]|0)+60>>2]|0)+44>>2]=c;if(L_(a,c))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);f=0;break L}e=M[a+188>>2]>256?5:4;if((e|2)>>>0>f>>>0){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);f=0;break L}e=f-e>>>1|0;J[c+48>>2]=e;c=Wd(J[c+44>>2],e,4);e=J[(d+J[a+200>>2]|0)+60>>2];g=b+e|0;J[g+44>>2]=c;f=0;if(!J[g+48>>2])continue; +while(1){c=J[(b+e|0)+44>>2];qa:{e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1){g=J[a+8>>2];g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)!=-1)break qa}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);f=0;break L}J[(f<<2)+c>>2]=g|e<<8;f=f+1|0;e=J[(d+J[a+200>>2]|0)+60>>2];if(f>>>0>2])continue;break}continue}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);f=0;break L;case 12:if(h){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,809718,0);f=0;break L}Cc(6,-1,810032,0);if(f>>>0<3)continue;b=J[a+8>>2];c=f-2|0;if((kc[J[J[b>> +2]+48>>2]](b,c)|0)==(c|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,796858,0);f=0;break L;case 13:Cc(6,-1,810524,0);if(f>>>0<3)continue;b=J[a+8>>2];c=f-2|0;if((kc[J[J[b>>2]+48>>2]](b,c)|0)==(c|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,798466,0);f=0;break L;case 15:Cc(6,-1,810924,0);if(f>>>0<3)continue;b=f-2|0;c=J[a+8>>2];if((b|0)==(kc[J[J[c>>2]+48>>2]](c,b)|0))break $;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,836686,0);f=0;break L;case 65:break Y;case 18:break _;case 6:break aa;default:break Z}if(f>>>0<3)continue; +b=f-2|0}c=J[a+8>>2];if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,837033,0);f=0;break L}if(f>>>0<3)continue;b=J[a+8>>2];c=f-2|0;if((kc[J[J[b>>2]+48>>2]](b,c)|0)==(c|0))continue;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,802820,0);f=0;break L}c=kc[J[J[a>>2]+52>>2]](a)|0;J[X>>2]=b;Cc(1,c,811399,X);if(f>>>0<3)continue;b=J[a+8>>2];kc[J[J[b>>2]+48>>2]](b,f-2|0)|0;continue}ra:{d=J[a+188>>2];if(d){e=J[(J[a+200>>2]+(u<<6)|0)+60>>2];b=0;while(1){sa:{ta:{ua:{va:{c=e+P(b,88)|0;switch(J[c+ 40>>2]&31){case 0:break ta;case 2:break ua;case 1:break va;default:break sa}}if(!J[c+48>>2])break ra;break sa}if(M[c+48>>2]>=P(J[c+20>>2],3)>>>0)break sa;break ra}if(M[c+48>>2]>2],3)>>>0)break ra}b=b+1|0;if((d|0)!=(b|0))continue;break}}if(!h){c=J[a+192>>2];b=(u>>>0)/(c>>>0)|0;k=J[a+200>>2]+(u<<6)|0;c=u-P(b,c)|0;d=J[a+164>>2]+P(c,J[a+156>>2])|0;e=J[a+148>>2];J[k+16>>2]=d>>>0>e>>>0?d:e;d=J[a+168>>2]+P(b,J[a+160>>2])|0;e=J[a+152>>2];J[k+20>>2]=d>>>0>e>>>0?d:e;c=J[a+164>>2]+P(J[a+156>>2],c+ 1|0)|0;d=J[a+140>>2];J[k+24>>2]=c>>>0>>0?c:d;c=J[a+144>>2];d=J[a+168>>2];e=J[a+160>>2];J[k+32>>2]=0;J[k+36>>2]=0;J[k+40>>2]=0;J[k+44>>2]=0;J[k+48>>2]=0;J[k+52>>2]=0;b=d+P(e,b+1|0)|0;J[k+28>>2]=b>>>0>>0?b:c;if(J[a+188>>2])while(1){r=J[k+60>>2]+P(y,88)|0;b=J[r+20>>2];if(b>>>0>M[k+32>>2])J[k+32>>2]=b;b=J[r+8>>2];d=b-1|0;e=(d+J[k+16>>2]>>>0)/(b>>>0)|0;J[r+52>>2]=e;c=J[r+12>>2];f=c-1|0;g=(f+J[k+20>>2]>>>0)/(c>>>0)|0;J[r+56>>2]=g;d=(d+J[k+24>>2]>>>0)/(b>>>0)|0;J[r+60>>2]=d;b=(f+J[k+28>>2]>>>0)/(c>>> -0)|0;J[r+64>>2]=b;f=b;b=J[a+28>>2];c=-1<>>b|0;g=c+g>>>b|0;h=f-g|0;J[r+72>>2]=h;d=c+d>>>b|0;b=c+e>>>b|0;c=d-b|0;J[r+68>>2]=c;if(!((b|0)!=(d|0)&(f|0)!=(g|0))){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,810398,0);f=0;break L}fa=r,ga=vd(P(c,h),4),J[fa+76>>2]=ga;b=J[r+60>>2]-J[r+52>>2]|0;$=r- -64|0;c=J[$>>2]-J[r+56>>2]|0;fa=r,ga=vd((b>>>0>c>>>0?b:c)+8|0,4),J[fa+80>>2]=ga;b=J[r+20>>2];v=0;while(1){c=J[r+84>>2];j=c+P(v,100)|0;f=b-v|0;g=-1<>2]>>>f|0;J[j+12>>2]=b;d=g+J[r+56>>2]>>>f|0;J[j+ +0)|0;J[r+64>>2]=b;f=b;b=J[a+28>>2];c=-1<>>b|0;g=c+g>>>b|0;h=f-g|0;J[r+72>>2]=h;d=c+d>>>b|0;b=c+e>>>b|0;c=d-b|0;J[r+68>>2]=c;if(!((b|0)!=(d|0)&(f|0)!=(g|0))){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,812191,0);f=0;break L}fa=r,ga=Gd(P(c,h),4),J[fa+76>>2]=ga;b=J[r+60>>2]-J[r+52>>2]|0;$=r- -64|0;c=J[$>>2]-J[r+56>>2]|0;fa=r,ga=Gd((b>>>0>c>>>0?b:c)+8|0,4),J[fa+80>>2]=ga;b=J[r+20>>2];v=0;while(1){c=J[r+84>>2];j=c+P(v,100)|0;f=b-v|0;g=-1<>2]>>>f|0;J[j+12>>2]=b;d=g+J[r+56>>2]>>>f|0;J[j+ 16>>2]=d;e=g+J[r+60>>2]>>>f|0;J[j+20>>2]=e;f=g+J[$>>2]>>>f|0;J[j+24>>2]=f;g=J[j>>2];h=g-((v|0)!=0)|0;l=J[r+24>>2];h=h>>>0>>0?h:l;J[j+76>>2]=h;J[j+84>>2]=1<>2]-1|0;else h=J[c+4>>2];l=J[r+28>>2];h=h>>>0>>0?h:l;J[j+80>>2]=h;J[j+88>>2]=1<>2]=f;J[c+52>>2]=e;J[c+40>>2]=d;J[c+28>>2]=b;C=1;break wa}p=f+1>>>1|0;J[j+64>>2]=p;c=e>>>1|0;J[j+52>>2]=c;m=d+1>>>1|0;J[j+40>>2]=m;h=b>>>1|0;J[j+28>>2]=h;l=f>>>1|0;J[j+68>>2]=l;n=e+1>>>1|0;J[j+56>> -2]=n;s=d>>>1|0;J[j+44>>2]=s;q=b+1>>>1|0;J[j+32>>2]=q;J[j+72>>2]=l;J[j+60>>2]=c;J[j+48>>2]=s;J[j+36>>2]=h;C=3;if(!o){o=0;break wa}c=(c|0)==(h|0);if(!(c|(p|0)==(m|0))){o=0;break wa}o=c&(n|0)==(q|0)|(l|0)==(s|0)}J[j+92>>2]=o;c=J[j+4>>2];N=f+(-1<>>c|0;h=d>>>c|0;U=e+(-1<>>g|0;s=b>>>g|0;b=P(N-h|0,U-s|0);J[j+8>>2]=b;q=vd(b,4);J[j+96>>2]=q;b=J[j+8>>2];if(b)wc(q,0,b<<2);if(!(h>>>0>=N>>>0|s>>>0>=U>>>0)){Q=j- -64|0;while(1){l=h+1|0;d=s;while(1){b=vd(C,24);J[q>>2]=b;J[b+20>>2]=0;J[b+12>>2]=0;J[b+ +2]=n;s=d>>>1|0;J[j+44>>2]=s;q=b+1>>>1|0;J[j+32>>2]=q;J[j+72>>2]=l;J[j+60>>2]=c;J[j+48>>2]=s;J[j+36>>2]=h;C=3;if(!o){o=0;break wa}c=(c|0)==(h|0);if(!(c|(p|0)==(m|0))){o=0;break wa}o=c&(n|0)==(q|0)|(l|0)==(s|0)}J[j+92>>2]=o;c=J[j+4>>2];N=f+(-1<>>c|0;h=d>>>c|0;U=e+(-1<>>g|0;s=b>>>g|0;b=P(N-h|0,U-s|0);J[j+8>>2]=b;q=Gd(b,4);J[j+96>>2]=q;b=J[j+8>>2];if(b)Ac(q,0,b<<2);if(!(h>>>0>=N>>>0|s>>>0>=U>>>0)){Q=j- -64|0;while(1){l=h+1|0;d=s;while(1){b=Gd(C,24);J[q>>2]=b;J[b+20>>2]=0;J[b+12>>2]=0;J[b+ 16>>2]=0;if(v){J[b+68>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+44>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0}p=d+1|0;t=0;while(1){b=J[j>>2];e=J[q>>2]+P(t,24)|0;xa:{if(v){b=b-1|0;c=J[j+4>>2]-1|0;break xa}c=J[j+4>>2]}f=l<>2];A=f>>>0>>0?f:g;c=h<>2];F=c>>>0>f>>>0?c:f;c=p<>2];D=c>>>0>>0?c:f;b=d<>2];O=b>>>0>c>>>0?b:c;b=J[r+76>>2];ya:{if(!v)break ya;za:switch(t|0){case 1:b=b+(P(J[r+68>>2],J[Q>>2]-J[j+40>>2]|0)<<2)|0;break ya;case 0:b=(b+(J[j+56>>2]<<2)| 0)-(J[j+32>>2]<<2)|0;break ya;default:break za}b=(b+(P(J[r+68>>2],J[Q>>2]-J[j+40>>2]|0)<<2)|0)+(J[j+56>>2]-J[j+32>>2]<<2)|0}n=b;b=J[j+80>>2];c=J[j+76>>2];S=(D+(1<>>c|0;m=O>>>c|0;g=S-m|0;J[e>>2]=g;c=0;J[e+8>>2]=0;W=(A+(1<>>b|0;x=F>>>b|0;o=W-x|0;J[e+4>>2]=o;f=0;Aa:{Ba:{b=(g>>>0>o>>>0?g:o)-1|0;if(!b)break Ba;while(1){f=f+1|0;w=b>>>0>1;b=b>>>1|0;if(w)continue;break}J[e+8>>2]=f;if((f|0)>=0)break Ba;break Aa}o=o-1|0;g=g-1|0;b=f;if(b){E=b+1&2147483646;w=0;while(1){G=c;c=1<>> -b|0,c+o>>>b|0)|0;c=b-1|0;G=1<>>c|0,o+G>>>c|0)|0;b=b-2|0;w=w+2|0;if((E|0)!=(w|0))continue;break}}if(f&1)break Aa;f=c;c=1<>>b|0,c+o>>>b|0)|0}fa=e,ga=vd(c,8),J[fa+12>>2]=ga;f=vd(c,8);J[e+16>>2]=f;Ca:{if(!c)break Ca;w=c&1;g=J[e+12>>2];b=0;if((c|0)!=1){E=c&-2;c=0;while(1){o=b<<3;G=o+g|0;J[G>>2]=0;J[G+4>>2]=0;G=f+o|0;J[G>>2]=0;J[G+4>>2]=0;o=o|8;G=o+g|0;J[G>>2]=0;J[G+4>>2]=0;o=f+o|0;J[o>>2]=0;J[o+4>>2]=0;b=b+2|0;c=c+2|0;if((E|0)!=(c|0))continue;break}}if(!w)break Ca;b=b<<3;c=b+ -g|0;J[c>>2]=0;J[c+4>>2]=0;b=b+f|0;J[b>>2]=0;J[b+4>>2]=0}f=vd(P(J[e+4>>2],J[e>>2]),68);J[e+20>>2]=f;e=P(J[e+4>>2],J[e>>2]);Da:{if(!e)break Da;b=0;if((e|0)!=1){o=e&-2;c=0;while(1){g=P(b,68)+f|0;J[g+60>>2]=0;J[g+64>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;g=P(b|1,68)+f|0;J[g+60>>2]=0;J[g+64>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;b=b+2|0;c=c+2|0;if((o|0)!=(c|0))continue;break}}if(!(e&1))break Da;b=P(b,68)+f|0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0}if(!(x>>>0>=W>>>0|m>>>0>=S>>>0))while(1){g=m;while(1){b= -g<>2];J[f>>2]=b;c=b+J[j+84>>2]|0;J[f+8>>2]=c;if(b>>>0>>0)J[f>>2]=O;if(c>>>0>D>>>0)J[f+8>>2]=D;b=x<>2];J[f+4>>2]=b;c=b+J[j+88>>2]|0;J[f+12>>2]=c;if(b>>>0>>0)J[f+4>>2]=F;if(c>>>0>A>>>0)J[f+12>>2]=A;J[f+44>>2]=1;J[f+24>>2]=2;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=3;fa=f,ga=sk(4),J[fa+40>>2]=ga;Ea:{if(J[r+20>>2]-J[a+28>>2]>>>0>=v>>>0){J[f+48>>2]=(n+(P(J[r+68>>2],J[f+4>>2]-J[z+40>>2]|0)<<2)|0)+(J[f>>2]-J[z+28>>2]<<2);G=sk(1<>2]+J[j+76>>2]);I[f+56>>1]=0;J[f+52>>2]=G;o=J[f+12>> -2];w=J[f+4>>2];if((o|0)!=(w|0)){e=J[f>>2];c=J[f+8>>2];E=0;while(1){b=(c|0)==(e|0);c=e;if(!b){o=J[f+48>>2];b=0;while(1){J[(o+(P(J[r+68>>2],E)<<2)|0)+(b<<2)>>2]=0;b=b+1|0;c=J[f+8>>2];e=J[f>>2];if(b>>>0>>0)continue;break}w=J[f+4>>2];o=J[f+12>>2]}E=E+1|0;if(E>>>0>>0)continue;break}}wc(G,0,1<>2]+J[j+76>>2]);break Ea}I[f+56>>1]=0;J[f+48>>2]=0;J[f+52>>2]=0}f=f+68|0;g=g+1|0;if((S|0)!=(g|0))continue;break}x=x+1|0;if((W|0)!=(x|0))continue;break}t=t+1|0;if((C|0)!=(t|0))continue;break}q=q+4| -0;d=p;if((U|0)!=(d|0))continue;break}h=l;if((N|0)!=(h|0))continue;break}}b=J[r+20>>2];v=v+1|0;if(b>>>0>=v>>>0)continue;break}y=y+1|0;if(y>>>0>2])continue;break}J[k>>2]=1}g=i;v=bc-16|0;bc=v;Fa:{Ga:{b=J[a+200>>2];G=b+(u<<6)|0;if(!J[G+52>>2]){if(g|ea)break Ga;f=1;break Fa}b=J[a+8>>2];gc[J[J[b>>2]+48>>2]](b,g)|0;f=1;break Fa}z=b+(u<<6)|0;p=z+48|0;n=z+44|0;j=z+40|0;r=z+36|0;d=J[z+40>>2];b=d;e=b;c=b;while(1){u=J[z+60>>2]+P(J[r>>2],88)|0;F=J[u+84>>2]+P(c,100)|0;Ha:{if(J[F+92>>2])break Ha;e=J[F+ -96>>2];f=J[n>>2];J[a+216>>2]=g;J[a+208>>2]=0;J[a+212>>2]=0;Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{if(!(K[u+16|0]&2)|g>>>0<6)break Oa;b=J[a+8>>2];c=J[b+8>>2];if(J[c>>2]!=255|J[c+4>>2]!=145)break Oa;gc[J[J[b>>2]+48>>2]](b,6)|0;J[a+208>>2]=0;J[a+212>>2]=0;c=J[a+216>>2]-6|0;J[a+216>>2]=c;break Na}g=J[a+208>>2];if((g|0)>0)break Ma;c=J[a+216>>2]}while(1){if(!c)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;d=J[a+212>>2];J[a+212>>2]=(b|0)==255;c=J[a+216>>2]-1|0;J[a+216>>2]=c;h=d?7:8;g=h+J[a+ +b|0,c+o>>>b|0)|0;c=b-1|0;G=1<>>c|0,o+G>>>c|0)|0;b=b-2|0;w=w+2|0;if((E|0)!=(w|0))continue;break}}if(f&1)break Aa;f=c;c=1<>>b|0,c+o>>>b|0)|0}fa=e,ga=Gd(c,8),J[fa+12>>2]=ga;f=Gd(c,8);J[e+16>>2]=f;Ca:{if(!c)break Ca;w=c&1;g=J[e+12>>2];b=0;if((c|0)!=1){E=c&-2;c=0;while(1){o=b<<3;G=o+g|0;J[G>>2]=0;J[G+4>>2]=0;G=f+o|0;J[G>>2]=0;J[G+4>>2]=0;o=o|8;G=o+g|0;J[G>>2]=0;J[G+4>>2]=0;o=f+o|0;J[o>>2]=0;J[o+4>>2]=0;b=b+2|0;c=c+2|0;if((E|0)!=(c|0))continue;break}}if(!w)break Ca;b=b<<3;c=b+ +g|0;J[c>>2]=0;J[c+4>>2]=0;b=b+f|0;J[b>>2]=0;J[b+4>>2]=0}f=Gd(P(J[e+4>>2],J[e>>2]),68);J[e+20>>2]=f;e=P(J[e+4>>2],J[e>>2]);Da:{if(!e)break Da;b=0;if((e|0)!=1){o=e&-2;c=0;while(1){g=P(b,68)+f|0;J[g+60>>2]=0;J[g+64>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;g=P(b|1,68)+f|0;J[g+60>>2]=0;J[g+64>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;b=b+2|0;c=c+2|0;if((o|0)!=(c|0))continue;break}}if(!(e&1))break Da;b=P(b,68)+f|0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0}if(!(x>>>0>=W>>>0|m>>>0>=S>>>0))while(1){g=m;while(1){b= +g<>2];J[f>>2]=b;c=b+J[j+84>>2]|0;J[f+8>>2]=c;if(b>>>0>>0)J[f>>2]=O;if(c>>>0>D>>>0)J[f+8>>2]=D;b=x<>2];J[f+4>>2]=b;c=b+J[j+88>>2]|0;J[f+12>>2]=c;if(b>>>0>>0)J[f+4>>2]=F;if(c>>>0>A>>>0)J[f+12>>2]=A;J[f+44>>2]=1;J[f+24>>2]=2;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=3;fa=f,ga=Pk(4),J[fa+40>>2]=ga;Ea:{if(J[r+20>>2]-J[a+28>>2]>>>0>=v>>>0){J[f+48>>2]=(n+(P(J[r+68>>2],J[f+4>>2]-J[z+40>>2]|0)<<2)|0)+(J[f>>2]-J[z+28>>2]<<2);G=Pk(1<>2]+J[j+76>>2]);I[f+56>>1]=0;J[f+52>>2]=G;o=J[f+12>> +2];w=J[f+4>>2];if((o|0)!=(w|0)){e=J[f>>2];c=J[f+8>>2];E=0;while(1){b=(c|0)==(e|0);c=e;if(!b){o=J[f+48>>2];b=0;while(1){J[(o+(P(J[r+68>>2],E)<<2)|0)+(b<<2)>>2]=0;b=b+1|0;c=J[f+8>>2];e=J[f>>2];if(b>>>0>>0)continue;break}w=J[f+4>>2];o=J[f+12>>2]}E=E+1|0;if(E>>>0>>0)continue;break}}Ac(G,0,1<>2]+J[j+76>>2]);break Ea}I[f+56>>1]=0;J[f+48>>2]=0;J[f+52>>2]=0}f=f+68|0;g=g+1|0;if((S|0)!=(g|0))continue;break}x=x+1|0;if((W|0)!=(x|0))continue;break}t=t+1|0;if((C|0)!=(t|0))continue;break}q=q+4| +0;d=p;if((U|0)!=(d|0))continue;break}h=l;if((N|0)!=(h|0))continue;break}}b=J[r+20>>2];v=v+1|0;if(b>>>0>=v>>>0)continue;break}y=y+1|0;if(y>>>0>2])continue;break}J[k>>2]=1}g=i;v=fc-16|0;fc=v;Fa:{Ga:{b=J[a+200>>2];G=b+(u<<6)|0;if(!J[G+52>>2]){if(g|ea)break Ga;f=1;break Fa}b=J[a+8>>2];kc[J[J[b>>2]+48>>2]](b,g)|0;f=1;break Fa}z=b+(u<<6)|0;p=z+48|0;n=z+44|0;j=z+40|0;r=z+36|0;d=J[z+40>>2];b=d;e=b;c=b;while(1){u=J[z+60>>2]+P(J[r>>2],88)|0;F=J[u+84>>2]+P(c,100)|0;Ha:{if(J[F+92>>2])break Ha;e=J[F+ +96>>2];f=J[n>>2];J[a+216>>2]=g;J[a+208>>2]=0;J[a+212>>2]=0;Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{if(!(K[u+16|0]&2)|g>>>0<6)break Oa;b=J[a+8>>2];c=J[b+8>>2];if(J[c>>2]!=255|J[c+4>>2]!=145)break Oa;kc[J[J[b>>2]+48>>2]](b,6)|0;J[a+208>>2]=0;J[a+212>>2]=0;c=J[a+216>>2]-6|0;J[a+216>>2]=c;break Na}g=J[a+208>>2];if((g|0)>0)break Ma;c=J[a+216>>2]}while(1){if(!c)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;d=J[a+212>>2];J[a+212>>2]=(b|0)==255;c=J[a+216>>2]-1|0;J[a+216>>2]=c;h=d?7:8;g=h+J[a+ 208>>2]|0;J[a+208>>2]=g;d=b&(d?127:255)|J[a+204>>2]<>2]=d;if((g|0)<=0)continue;break}break La}d=J[a+204>>2]}U=e+(f<<2)|0;b=g-1|0;c=d>>>b&1;J[v+12>>2]=c;J[a+208>>2]=b;if(!c)break Ja;l=0;while(1){s=J[U>>2]+P(l,24)|0;c=J[s+4>>2];Pa:{if(!c)break Pa;d=J[s>>2];if(!d)break Pa;m=0;while(1){f=0;if(d){while(1){i=(J[s+20>>2]+P(P(d,m),68)|0)+P(f,68)|0;Qa:{if(!(M[i>>2]>2]&M[i+4>>2]>2])){J[i+32>>2]=0;break Qa}Ra:{if(J[i+16>>2]){e=J[a+208>>2];Sa:{if((e|0)>0){c=J[a+204>>2];break Sa}d=J[a+ -216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;c=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=c?7:8;e=g+J[a+208>>2]|0;J[a+208>>2]=e;c=b&(c?127:255)|J[a+204>>2]<>2]=c;if((e|0)<=0)continue;break}}c=c>>>e-1&1;J[i+32>>2]=c;J[a+208>>2]=J[a+208>>2]-1;break Ra}c=J[s+8>>2];Ta:{if((c|0)<0){d=c;break Ta}e=J[s+12>>2];C=0;g=0;while(1){o=-1<>2]>>>c|0;h=((f>>>c|0)+C|0)+P(k,m>>>c|0)<<3;d=h+e|0;b=J[d+4>>2];q=J[s+4>>2]; -Ua:{Va:{Wa:{if(J[d>>2])break Wa;if(!b){J[d+4>>2]=g;b=g}if(M[p>>2]>>0)break Wa;g=b;break Va}d=J[v+12>>2];g=b;break Ua}while(1){d=J[a+208>>2];Xa:{if((d|0)>0){b=J[a+204>>2];break Xa}x=J[a+216>>2];while(1){if(!x)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;e=J[a+212>>2];J[a+212>>2]=(b|0)==255;x=J[a+216>>2]-1|0;J[a+216>>2]=x;t=e?7:8;d=t+J[a+208>>2]|0;J[a+208>>2]=d;b=b&(e?127:255)|J[a+204>>2]<>2]=b;if((d|0)<=0)continue;break}}d=d-1|0;J[a+208>>2]=d;if(b>>>d&1){d=1; +216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;c=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=c?7:8;e=g+J[a+208>>2]|0;J[a+208>>2]=e;c=b&(c?127:255)|J[a+204>>2]<>2]=c;if((e|0)<=0)continue;break}}c=c>>>e-1&1;J[i+32>>2]=c;J[a+208>>2]=J[a+208>>2]-1;break Ra}c=J[s+8>>2];Ta:{if((c|0)<0){d=c;break Ta}e=J[s+12>>2];C=0;g=0;while(1){o=-1<>2]>>>c|0;h=((f>>>c|0)+C|0)+P(k,m>>>c|0)<<3;d=h+e|0;b=J[d+4>>2];q=J[s+4>>2]; +Ua:{Va:{Wa:{if(J[d>>2])break Wa;if(!b){J[d+4>>2]=g;b=g}if(M[p>>2]>>0)break Wa;g=b;break Va}d=J[v+12>>2];g=b;break Ua}while(1){d=J[a+208>>2];Xa:{if((d|0)>0){b=J[a+204>>2];break Xa}x=J[a+216>>2];while(1){if(!x)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;e=J[a+212>>2];J[a+212>>2]=(b|0)==255;x=J[a+216>>2]-1|0;J[a+216>>2]=x;t=e?7:8;d=t+J[a+208>>2]|0;J[a+208>>2]=d;b=b&(e?127:255)|J[a+204>>2]<>2]=b;if((d|0)<=0)continue;break}}d=d-1|0;J[a+208>>2]=d;if(b>>>d&1){d=1; e=J[s+12>>2];J[h+e>>2]=1;break Ua}g=g+1|0;d=0;e=J[s+12>>2];if(J[h+e>>2])break Ua;if(M[p>>2]>=g>>>0)continue;break}}J[v+12>>2]=d;J[(e+h|0)+4>>2]=g;if(M[p>>2]>>0){d=c;break Ta}d=-1;C=P(k,o+q>>>c|0)+C|0;b=(c|0)>0;c=c-1|0;if(b)continue;break}}c=d>>>31|0;J[i+32>>2]=c}if(!c)break Qa;if(!J[i+16>>2]){e=0;b=J[s+8>>2];if((b|0)>=0){c=J[s+16>>2];C=0;while(1){h=b;k=-1<>2]>>>b|0;b=((f>>>b|0)+C|0)+P(q,m>>>b|0)<<3;d=b+c|0;g=J[d+4>>2];t=J[s+4>>2];Ya:{if(!J[d>>2]){if(!g){J[d+4>>2]=e;g=e}e=J[a+208>> -2];while(1){Za:{if((e|0)>0){c=J[a+204>>2];break Za}d=J[a+216>>2];while(1){if(!d)break Ka;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break Ka;o=J[a+212>>2];J[a+212>>2]=(c|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;w=o?7:8;e=w+J[a+208>>2]|0;J[a+208>>2]=e;c=c&(o?127:255)|J[a+204>>2]<>2]=c;if((e|0)<=0)continue;break}}e=e-1|0;J[a+208>>2]=e;if(c>>>e&1){c=J[s+16>>2];J[b+c>>2]=1;d=1;break Ya}g=g+1|0;c=J[s+16>>2];if(!J[b+c>>2])continue;break}d=0;break Ya}d=J[v+12>>2]}J[v+12>>2]=d;e=g;J[(b+ -c|0)+4>>2]=e;b=h-1|0;C=P(q,k+t>>>h|0)+C|0;if((h|0)>0)continue;break}}J[i+28>>2]=e}e=J[a+208>>2];_a:{if((e|0)>0){b=J[a+204>>2];break _a}d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;c=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=c?7:8;e=g+J[a+208>>2]|0;J[a+208>>2]=e;b=b&(c?127:255)|J[a+204>>2]<>2]=b;if((e|0)<=0)continue;break}}c=e-1|0;J[a+208>>2]=c;$a:{if(!(b>>>c&1)){J[i+36>>2]=1;break $a}if(e>>>0<=1){d=J[a+216>> -2];while(1){if(!d)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;e=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=e?7:8;c=g+J[a+208>>2]|0;J[a+208>>2]=c;b=b&(e?127:255)|J[a+204>>2]<>2]=b;if((c|0)<=0)continue;break}}e=c-1|0;J[a+208>>2]=e;if(!(b>>>e&1)){J[i+36>>2]=2;c=e;break $a}if(c>>>0<=2){d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;c=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0; -J[a+216>>2]=d;g=c?7:8;e=g+J[a+208>>2]|0;J[a+208>>2]=e;b=b&(c?127:255)|J[a+204>>2]<>2]=b;if((e|0)<2)continue;break}}c=e-2|0;J[a+208>>2]=c;d=b>>>c&3;if((d|0)!=3){J[i+36>>2]=d+3;break $a}if(e>>>0<=6){d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;e=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=e?7:8;c=g+J[a+208>>2]|0;J[a+208>>2]=c;b=b&(e?127:255)|J[a+204>>2]<>2]=b;if((c|0)<5)continue;break}}c=c-5|0;b=b>>> -c&31;J[v+12>>2]=b;J[a+208>>2]=c;if((b|0)!=31){J[i+36>>2]=b+6;break $a}d=J[a+208>>2];ab:{bb:{if((d|0)>=7){g=J[a+204>>2];break bb}b=J[a+216>>2];while(1){d=0;if(!b)break ab;b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break ab;e=J[a+212>>2];J[a+212>>2]=(c|0)==255;b=J[a+216>>2]-1|0;J[a+216>>2]=b;g=e?7:8;d=g+J[a+208>>2]|0;J[a+208>>2]=d;g=c&(e?127:255)|J[a+204>>2]<>2]=g;if((d|0)<7)continue;break}}J[v+12>>2]=g>>>d-7&127;J[a+208>>2]=J[a+208>>2]-7;d=1}if(!d)break Ka;J[i+36>>2]=J[v+12>>2]+ -37;c=J[a+208>>2]}while(1){cb:{if((c|0)>0){b=J[a+204>>2];break cb}d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;e=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=e?7:8;c=g+J[a+208>>2]|0;J[a+208>>2]=c;b=b&(e?127:255)|J[a+204>>2]<>2]=b;if((c|0)<=0)continue;break}}e=c-1|0;J[a+208>>2]=e;if(b>>>e&1){J[i+20>>2]=J[i+20>>2]+1;c=e;continue}break}J[v+12>>2]=0;if(K[u+32|0]&4){b=J[i+36>>2];if(b>>>0>M[i+44>>2]){J[i+44>>2]=b;fa= -i,ga=Nd(J[i+40>>2],b,4),J[fa+40>>2]=ga;b=J[i+36>>2]}if(!b)break Qa;b=J[a+208>>2];g=0;while(1){o=J[i+40>>2];c=J[i+20>>2];db:{if((c|0)<=(b|0)){d=J[a+204>>2];break db}e=J[a+216>>2];while(1){if(!e)break Ka;b=J[a+8>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break Ka;h=J[a+212>>2];J[a+212>>2]=(d|0)==255;e=J[a+216>>2]-1|0;J[a+216>>2]=e;k=h?7:8;b=k+J[a+208>>2]|0;J[a+208>>2]=b;d=d&(h?127:255)|J[a+204>>2]<>2]=d;if((b|0)<(c|0))continue;break}}J[(g<<2)+o>>2]=(-1<>>b-c;b=J[a+208>>2]-c|0; -J[a+208>>2]=b;g=g+1|0;if(g>>>0>2])continue;break}break Qa}x=J[i+20>>2];d=J[i+36>>2];if(d>>>0>=2)while(1){x=x+1|0;g=d>>>0>3;d=d>>>1|0;if(g)continue;break}g=J[i+40>>2];if((c|0)<=(x|0)){d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;c=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;h=c?7:8;e=h+J[a+208>>2]|0;J[a+208>>2]=e;b=b&(c?127:255)|J[a+204>>2]<>2]=b;if((e|0)<(x|0))continue;break}}J[g>>2]=(-1<>>e- -x;J[a+208>>2]=J[a+208>>2]-x}d=J[s>>2];f=f+1|0;if(d>>>0>f>>>0)continue;break}c=J[s+4>>2]}else d=0;m=m+1|0;if(m>>>0>>0)continue;break}}if(!J[j>>2])break Ia;b=l>>>0<2;l=l+1|0;if(b)continue;break}break Ia}f=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,810708,0);break Fa}h=J[j>>2];c=J[U>>2];l=J[c+4>>2];eb:{if(!l)break eb;f=J[c>>2];if(!f)break eb;s=f&-8;i=f&7;m=J[c+20>>2];e=0;while(1){b=m+P(P(e,f),68)|0;d=0;g=0;if(f>>>0>=8)while(1){J[(b+P(d,68)|0)+32>>2]=0;J[(b+P(d|1,68)|0)+32>>2]=0;J[(b+P(d|2,68)|0)+32>>2]=0;J[(b+ +2];while(1){Za:{if((e|0)>0){c=J[a+204>>2];break Za}d=J[a+216>>2];while(1){if(!d)break Ka;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break Ka;o=J[a+212>>2];J[a+212>>2]=(c|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;w=o?7:8;e=w+J[a+208>>2]|0;J[a+208>>2]=e;c=c&(o?127:255)|J[a+204>>2]<>2]=c;if((e|0)<=0)continue;break}}e=e-1|0;J[a+208>>2]=e;if(c>>>e&1){c=J[s+16>>2];J[b+c>>2]=1;d=1;break Ya}g=g+1|0;c=J[s+16>>2];if(!J[b+c>>2])continue;break}d=0;break Ya}d=J[v+12>>2]}J[v+12>>2]=d;e=g;J[(b+ +c|0)+4>>2]=e;b=h-1|0;C=P(q,k+t>>>h|0)+C|0;if((h|0)>0)continue;break}}J[i+28>>2]=e}e=J[a+208>>2];_a:{if((e|0)>0){b=J[a+204>>2];break _a}d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;c=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=c?7:8;e=g+J[a+208>>2]|0;J[a+208>>2]=e;b=b&(c?127:255)|J[a+204>>2]<>2]=b;if((e|0)<=0)continue;break}}c=e-1|0;J[a+208>>2]=c;$a:{if(!(b>>>c&1)){J[i+36>>2]=1;break $a}if(e>>>0<=1){d=J[a+216>> +2];while(1){if(!d)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;e=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=e?7:8;c=g+J[a+208>>2]|0;J[a+208>>2]=c;b=b&(e?127:255)|J[a+204>>2]<>2]=b;if((c|0)<=0)continue;break}}e=c-1|0;J[a+208>>2]=e;if(!(b>>>e&1)){J[i+36>>2]=2;c=e;break $a}if(c>>>0<=2){d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;c=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0; +J[a+216>>2]=d;g=c?7:8;e=g+J[a+208>>2]|0;J[a+208>>2]=e;b=b&(c?127:255)|J[a+204>>2]<>2]=b;if((e|0)<2)continue;break}}c=e-2|0;J[a+208>>2]=c;d=b>>>c&3;if((d|0)!=3){J[i+36>>2]=d+3;break $a}if(e>>>0<=6){d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;e=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=e?7:8;c=g+J[a+208>>2]|0;J[a+208>>2]=c;b=b&(e?127:255)|J[a+204>>2]<>2]=b;if((c|0)<5)continue;break}}c=c-5|0;b=b>>> +c&31;J[v+12>>2]=b;J[a+208>>2]=c;if((b|0)!=31){J[i+36>>2]=b+6;break $a}d=J[a+208>>2];ab:{bb:{if((d|0)>=7){g=J[a+204>>2];break bb}b=J[a+216>>2];while(1){d=0;if(!b)break ab;b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break ab;e=J[a+212>>2];J[a+212>>2]=(c|0)==255;b=J[a+216>>2]-1|0;J[a+216>>2]=b;g=e?7:8;d=g+J[a+208>>2]|0;J[a+208>>2]=d;g=c&(e?127:255)|J[a+204>>2]<>2]=g;if((d|0)<7)continue;break}}J[v+12>>2]=g>>>d-7&127;J[a+208>>2]=J[a+208>>2]-7;d=1}if(!d)break Ka;J[i+36>>2]=J[v+12>>2]+ +37;c=J[a+208>>2]}while(1){cb:{if((c|0)>0){b=J[a+204>>2];break cb}d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;e=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;g=e?7:8;c=g+J[a+208>>2]|0;J[a+208>>2]=c;b=b&(e?127:255)|J[a+204>>2]<>2]=b;if((c|0)<=0)continue;break}}e=c-1|0;J[a+208>>2]=e;if(b>>>e&1){J[i+20>>2]=J[i+20>>2]+1;c=e;continue}break}J[v+12>>2]=0;if(K[u+32|0]&4){b=J[i+36>>2];if(b>>>0>M[i+44>>2]){J[i+44>>2]=b;fa= +i,ga=Wd(J[i+40>>2],b,4),J[fa+40>>2]=ga;b=J[i+36>>2]}if(!b)break Qa;b=J[a+208>>2];g=0;while(1){o=J[i+40>>2];c=J[i+20>>2];db:{if((c|0)<=(b|0)){d=J[a+204>>2];break db}e=J[a+216>>2];while(1){if(!e)break Ka;b=J[a+8>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break Ka;h=J[a+212>>2];J[a+212>>2]=(d|0)==255;e=J[a+216>>2]-1|0;J[a+216>>2]=e;k=h?7:8;b=k+J[a+208>>2]|0;J[a+208>>2]=b;d=d&(h?127:255)|J[a+204>>2]<>2]=d;if((b|0)<(c|0))continue;break}}J[(g<<2)+o>>2]=(-1<>>b-c;b=J[a+208>>2]-c|0; +J[a+208>>2]=b;g=g+1|0;if(g>>>0>2])continue;break}break Qa}x=J[i+20>>2];d=J[i+36>>2];if(d>>>0>=2)while(1){x=x+1|0;g=d>>>0>3;d=d>>>1|0;if(g)continue;break}g=J[i+40>>2];if((c|0)<=(x|0)){d=J[a+216>>2];while(1){if(!d)break Ka;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break Ka;c=J[a+212>>2];J[a+212>>2]=(b|0)==255;d=J[a+216>>2]-1|0;J[a+216>>2]=d;h=c?7:8;e=h+J[a+208>>2]|0;J[a+208>>2]=e;b=b&(c?127:255)|J[a+204>>2]<>2]=b;if((e|0)<(x|0))continue;break}}J[g>>2]=(-1<>>e- +x;J[a+208>>2]=J[a+208>>2]-x}d=J[s>>2];f=f+1|0;if(d>>>0>f>>>0)continue;break}c=J[s+4>>2]}else d=0;m=m+1|0;if(m>>>0>>0)continue;break}}if(!J[j>>2])break Ia;b=l>>>0<2;l=l+1|0;if(b)continue;break}break Ia}f=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,812488,0);break Fa}h=J[j>>2];c=J[U>>2];l=J[c+4>>2];eb:{if(!l)break eb;f=J[c>>2];if(!f)break eb;s=f&-8;i=f&7;m=J[c+20>>2];e=0;while(1){b=m+P(P(e,f),68)|0;d=0;g=0;if(f>>>0>=8)while(1){J[(b+P(d,68)|0)+32>>2]=0;J[(b+P(d|1,68)|0)+32>>2]=0;J[(b+P(d|2,68)|0)+32>>2]=0;J[(b+ P(d|3,68)|0)+32>>2]=0;J[(b+P(d|4,68)|0)+32>>2]=0;J[(b+P(d|5,68)|0)+32>>2]=0;J[(b+P(d|6,68)|0)+32>>2]=0;J[(b+P(d|7,68)|0)+32>>2]=0;d=d+8|0;g=g+8|0;if((s|0)!=(g|0))continue;break}g=0;if(i)while(1){J[(b+P(d,68)|0)+32>>2]=0;d=d+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}e=e+1|0;if((l|0)!=(e|0))continue;break}}if(!h)break Ia;l=J[c+28>>2];fb:{if(!l)break fb;f=J[c+24>>2];if(!f)break fb;s=f&-8;i=f&7;m=J[c+44>>2];e=0;while(1){b=m+P(P(e,f),68)|0;d=0;g=0;if(f>>>0>=8)while(1){J[(b+P(d,68)|0)+32>>2]=0;J[(b+P(d| 1,68)|0)+32>>2]=0;J[(b+P(d|2,68)|0)+32>>2]=0;J[(b+P(d|3,68)|0)+32>>2]=0;J[(b+P(d|4,68)|0)+32>>2]=0;J[(b+P(d|5,68)|0)+32>>2]=0;J[(b+P(d|6,68)|0)+32>>2]=0;J[(b+P(d|7,68)|0)+32>>2]=0;d=d+8|0;g=g+8|0;if((s|0)!=(g|0))continue;break}g=0;if(i)while(1){J[(b+P(d,68)|0)+32>>2]=0;d=d+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}e=e+1|0;if((l|0)!=(e|0))continue;break}}if(!h)break Ia;i=J[c+52>>2];if(!i)break Ia;f=J[c+48>>2];if(!f)break Ia;l=f&-8;h=f&7;c=J[c+68>>2];e=0;while(1){b=c+P(P(e,f),68)|0;d=0;g=0;if(f>>> 0>=8)while(1){J[(b+P(d,68)|0)+32>>2]=0;J[(b+P(d|1,68)|0)+32>>2]=0;J[(b+P(d|2,68)|0)+32>>2]=0;J[(b+P(d|3,68)|0)+32>>2]=0;J[(b+P(d|4,68)|0)+32>>2]=0;J[(b+P(d|5,68)|0)+32>>2]=0;J[(b+P(d|6,68)|0)+32>>2]=0;J[(b+P(d|7,68)|0)+32>>2]=0;d=d+8|0;g=g+8|0;if((l|0)!=(g|0))continue;break}g=0;if(h)while(1){J[(b+P(d,68)|0)+32>>2]=0;d=d+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}e=e+1|0;if((i|0)!=(e|0))continue;break}}gb:{hb:{ib:{jb:{if(!(K[u+16|0]&4))break jb;d=J[a+212>>2];b=d?3:2;if(b>>>0>M[a+216>>2])break ib;c= -J[a+8>>2];e=J[c+8>>2];if(J[e+(((d|0)!=0)<<2)>>2]!=255|J[e+((d?2:1)<<2)>>2]!=146)break jb;gc[J[J[c>>2]+48>>2]](c,b)|0;J[a+208>>2]=0;J[a+212>>2]=0;g=J[a+216>>2]-b|0;break hb}d=J[a+212>>2]}if(!d){g=J[a+216>>2];break gb}b=J[a+8>>2];gc[J[J[b>>2]+28>>2]](b)|0;g=J[a+216>>2]-1|0}J[a+216>>2]=g}E=0;while(1){O=J[U>>2]+P(E,24)|0;b=J[O+4>>2];kb:{if(!b)break kb;d=J[O>>2];if(!d)break kb;C=0;f=d;while(1){x=0;c=0;if(f){while(1){k=(J[O+20>>2]+P(P(f,C),68)|0)+P(x,68)|0;if(J[k+32>>2]){d=0;N=0;lb:{mb:{nb:{ob:{l=J[j>> +J[a+8>>2];e=J[c+8>>2];if(J[e+(((d|0)!=0)<<2)>>2]!=255|J[e+((d?2:1)<<2)>>2]!=146)break jb;kc[J[J[c>>2]+48>>2]](c,b)|0;J[a+208>>2]=0;J[a+212>>2]=0;g=J[a+216>>2]-b|0;break hb}d=J[a+212>>2]}if(!d){g=J[a+216>>2];break gb}b=J[a+8>>2];kc[J[J[b>>2]+28>>2]](b)|0;g=J[a+216>>2]-1|0}J[a+216>>2]=g}E=0;while(1){O=J[U>>2]+P(E,24)|0;b=J[O+4>>2];kb:{if(!b)break kb;d=J[O>>2];if(!d)break kb;C=0;f=d;while(1){x=0;c=0;if(f){while(1){k=(J[O+20>>2]+P(P(f,C),68)|0)+P(x,68)|0;if(J[k+32>>2]){d=0;N=0;lb:{mb:{nb:{ob:{l=J[j>> 2];if(l>>>0>J[u+20>>2]-J[a+28>>2]>>>0){if(!(K[u+32|0]&4))break ob;f=J[k+36>>2];if(!f){b=0;break mb}e=J[k+40>>2];c=0;b=0;if(f>>>0>=4){l=f&-4;h=0;while(1){i=c<<2;b=J[e+(i|12)>>2]+(J[e+(i|8)>>2]+(J[e+(i|4)>>2]+(J[e+i>>2]+b|0)|0)|0)|0;c=c+4|0;h=h+4|0;if((l|0)!=(h|0))continue;break}}f=f&3;if(!f)break mb;while(1){b=J[e+(c<<2)>>2]+b|0;c=c+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}break mb}pb:{b=J[k+60>>2];qb:{if(b){c=J[J[k+40>>2]>>2];e=0;f=0;d=J[b+32>>2];if((d|0)>=0){J[b+32>>2]=c;break qb}if((d|0)==-1){J[b+ -32>>2]=c;rb:{if(!J[b+36>>2])break rb;d=J[b+40>>2];if((d|0)>=0){J[b+40>>2]=-1;J[b+4>>2]=d;break qb}J[b+32>>2]=c-1;if((c|0)>0)break rb;J[b+4>>2]=255;break qb}J[b+28>>2]=J[b+28>>2]+1;c=b;b=J[b+24>>2];fa=c,ga=gc[J[J[b>>2]+28>>2]](b)&255,J[fa+4>>2]=ga;break qb}J[b+32>>2]=c;d=((d^-1)<<3)-J[b+16>>2]|0;sb:{if((d|0)<=0)break sb;while(1){tb:{ub:{if(!J[b+36>>2])break ub;c=J[b+40>>2];if((c|0)>=0){J[b+40>>2]=-1;break tb}c=J[b+32>>2];J[b+32>>2]=c-1;if((c|0)>0)break ub;c=255;break tb}J[b+28>>2]=J[b+28>>2]+1;c=J[b+ -24>>2];c=gc[J[J[c>>2]+28>>2]](c)&255}J[b>>2]=c;e=((f?65024:65280)+e|0)-(c<<(f?9:8))|0;h=f?7:8;if(h>>>0>=d>>>0){J[b+16>>2]=h-d;e=e<>2]=J[b+8>>2]+e;vb:{if(!J[b+36>>2])break vb;c=J[b+40>>2];if((c|0)>=0){J[b+40>>2]=-1;J[b+4>>2]=c;break qb}c=J[b+32>>2];J[b+32>>2]=c-1;if((c|0)>0)break vb;J[b+4>>2]=255;break qb}J[b+28>>2]=J[b+28>>2]+1;c=b;b=J[b+24>>2];fa=c,ga=gc[J[J[b>>2]+28>>2]](b)&255,J[fa+4>>2]=ga;break qb}i=rc(44);J[695492]=0;J[i+24>> -2]=0;J[i+28>>2]=0;J[i+40>>2]=-1;J[i+32>>2]=0;J[i+36>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break nb;J[k+60>>2]=i;b=J[a+8>>2];c=J[J[k+40>>2]>>2];J[i+36>>2]=1;J[i+32>>2]=c;J[i+24>>2]=b;Vm(i);i=rc(8);J[695492]=0;b=aa(3443,i|0,19)|0;c=J[695492];J[695492]=0;if((c|0)==1)break pb;J[k+64>>2]=b;H[J[b>>2]]=8;H[J[J[k+64>>2]>>2]+17|0]=6;H[J[J[k+64>>2]>>2]+18|0]=92}if(J[k+36>>2]){W=l?E:1;while(1){if(!(!N|!(J[u+32>>2]&4))){c=J[J[k+40>>2]+(N<<2)>>2];d=J[a+8>>2];b=J[k+60>>2];J[b+36>>2]=1;J[b+32>>2]=c;J[b+24>> -2]=d;Vm(b)}wb:{xb:{yb:switch(J[k+24>>2]){case 0:o=J[k+4>>2];t=J[k+12>>2];if(o>>>0>>0){f=J[k+8>>2];e=J[k+48>>2];s=J[k+52>>2];while(1){d=s;c=e;l=J[k>>2];if(l>>>0>>0){while(1){t=0;i=d;f=c;while(1){y=o+t|0;A=J[k+12>>2];if(y>>>0>>0){zb:{if(J[f>>2])break zb;D=J[k+4>>2];Ab:{if(M[k>>2]>=l>>>0){m=2;q=0;w=0;break Ab}w=0;b=J[f-4>>2];m=b?(b|0)>=0?3:1:2;q=(b|0)!=0;if(y>>>0>D>>>0)w=J[((J[u+68>>2]^-1)<<2)+f>>2]!=0;if(y>>>0>=A-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Ab;w=(J[((J[u+68>>2]<<2)+f|0)-4>>2]!=0)+ +32>>2]=c;rb:{if(!J[b+36>>2])break rb;d=J[b+40>>2];if((d|0)>=0){J[b+40>>2]=-1;J[b+4>>2]=d;break qb}J[b+32>>2]=c-1;if((c|0)>0)break rb;J[b+4>>2]=255;break qb}J[b+28>>2]=J[b+28>>2]+1;c=b;b=J[b+24>>2];fa=c,ga=kc[J[J[b>>2]+28>>2]](b)&255,J[fa+4>>2]=ga;break qb}J[b+32>>2]=c;d=((d^-1)<<3)-J[b+16>>2]|0;sb:{if((d|0)<=0)break sb;while(1){tb:{ub:{if(!J[b+36>>2])break ub;c=J[b+40>>2];if((c|0)>=0){J[b+40>>2]=-1;break tb}c=J[b+32>>2];J[b+32>>2]=c-1;if((c|0)>0)break ub;c=255;break tb}J[b+28>>2]=J[b+28>>2]+1;c=J[b+ +24>>2];c=kc[J[J[c>>2]+28>>2]](c)&255}J[b>>2]=c;e=((f?65024:65280)+e|0)-(c<<(f?9:8))|0;h=f?7:8;if(h>>>0>=d>>>0){J[b+16>>2]=h-d;e=e<>2]=J[b+8>>2]+e;vb:{if(!J[b+36>>2])break vb;c=J[b+40>>2];if((c|0)>=0){J[b+40>>2]=-1;J[b+4>>2]=c;break qb}c=J[b+32>>2];J[b+32>>2]=c-1;if((c|0)>0)break vb;J[b+4>>2]=255;break qb}J[b+28>>2]=J[b+28>>2]+1;c=b;b=J[b+24>>2];fa=c,ga=kc[J[J[b>>2]+28>>2]](b)&255,J[fa+4>>2]=ga;break qb}i=vc(44);J[699344]=0;J[i+24>> +2]=0;J[i+28>>2]=0;J[i+40>>2]=-1;J[i+32>>2]=0;J[i+36>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break nb;J[k+60>>2]=i;b=J[a+8>>2];c=J[J[k+40>>2]>>2];J[i+36>>2]=1;J[i+32>>2]=c;J[i+24>>2]=b;Nn(i);i=vc(8);J[699344]=0;b=aa(3618,i|0,19)|0;c=J[699344];J[699344]=0;if((c|0)==1)break pb;J[k+64>>2]=b;H[J[b>>2]]=8;H[J[J[k+64>>2]>>2]+17|0]=6;H[J[J[k+64>>2]>>2]+18|0]=92}if(J[k+36>>2]){W=l?E:1;while(1){if(!(!N|!(J[u+32>>2]&4))){c=J[J[k+40>>2]+(N<<2)>>2];d=J[a+8>>2];b=J[k+60>>2];J[b+36>>2]=1;J[b+32>>2]=c;J[b+24>> +2]=d;Nn(b)}wb:{xb:{yb:switch(J[k+24>>2]){case 0:o=J[k+4>>2];t=J[k+12>>2];if(o>>>0>>0){f=J[k+8>>2];e=J[k+48>>2];s=J[k+52>>2];while(1){d=s;c=e;l=J[k>>2];if(l>>>0>>0){while(1){t=0;i=d;f=c;while(1){y=o+t|0;A=J[k+12>>2];if(y>>>0>>0){zb:{if(J[f>>2])break zb;D=J[k+4>>2];Ab:{if(M[k>>2]>=l>>>0){m=2;q=0;w=0;break Ab}w=0;b=J[f-4>>2];m=b?(b|0)>=0?3:1:2;q=(b|0)!=0;if(y>>>0>D>>>0)w=J[((J[u+68>>2]^-1)<<2)+f>>2]!=0;if(y>>>0>=A-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Ab;w=(J[((J[u+68>>2]<<2)+f|0)-4>>2]!=0)+ w|0}Bb:{if(J[k+8>>2]-1>>>0<=l>>>0)break Bb;b=J[f+4>>2];h=b?b>>31|1:0;q=b?q?2:1:q;m=h+m|0;if(y>>>0>D>>>0)w=(J[(1-J[u+68>>2]<<2)+f>>2]!=0)+w|0;if(y>>>0>=A-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Bb;w=(J[((J[u+68>>2]<<2)+f|0)+4>>2]!=0)+w|0}b=0;h=2;Cb:{if(y>>>0<=D>>>0)break Cb;D=J[f-(J[u+68>>2]<<2)>>2];h=2;if(!D)break Cb;b=1;h=(D|0)>=0?3:1}Db:{if(y>>>0>=A-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Db;y=J[(J[u+68>>2]<<2)+f>>2];if(!y)break Db;b=b+1|0;h=(y>>31|1)+h|0}b=J[(((P(q,180)+P(b,60)|0)+P(w,12)|0)+(W<<2)| -0)+2306080>>2];if(!b)break zb;if(he(J[k+60>>2],b,J[k+64>>2])){b=P(m,40)+(h<<3)|0;fa=f,ga=J[b+2306628>>2]==(he(J[k+60>>2],J[b+2306624>>2],J[k+64>>2])|0)?1:-1,J[fa>>2]=ga}H[i|0]=1}i=J[F+84>>2]+i|0;f=(J[u+68>>2]<<2)+f|0;t=t+1|0;if((t|0)!=4)continue}break}d=d+1|0;c=c+4|0;f=J[k+8>>2];l=l+1|0;if(f>>>0>l>>>0)continue;break}t=J[k+12>>2]}s=(4<>2])+s|0;e=(J[u+68>>2]<<4)+e|0;o=o+4|0;if(t>>>0>o>>>0)continue;break}b=J[k+24>>2]}else b=0;f=b+1|0;break xb;case 1:t=J[k+12>>2];w=J[k+4>>2];if(t>>>0>w>>>0){f= +0)+2317968>>2];if(!b)break zb;if(qe(J[k+60>>2],b,J[k+64>>2])){b=P(m,40)+(h<<3)|0;fa=f,ga=J[b+2318516>>2]==(qe(J[k+60>>2],J[b+2318512>>2],J[k+64>>2])|0)?1:-1,J[fa>>2]=ga}H[i|0]=1}i=J[F+84>>2]+i|0;f=(J[u+68>>2]<<2)+f|0;t=t+1|0;if((t|0)!=4)continue}break}d=d+1|0;c=c+4|0;f=J[k+8>>2];l=l+1|0;if(f>>>0>l>>>0)continue;break}t=J[k+12>>2]}s=(4<>2])+s|0;e=(J[u+68>>2]<<4)+e|0;o=o+4|0;if(t>>>0>o>>>0)continue;break}b=J[k+24>>2]}else b=0;f=b+1|0;break xb;case 1:t=J[k+12>>2];w=J[k+4>>2];if(t>>>0>w>>>0){f= J[k+8>>2];m=J[k+48>>2];l=J[k+52>>2];while(1){b=l;h=m;o=J[k>>2];if(o>>>0>>0){while(1){t=0;d=b;f=h;while(1){c=t+w|0;e=J[k+12>>2];if(c>>>0>>0){i=J[f>>2];if(!(K[d|0]|!i)){y=16;Eb:switch(i+1|0){case 0:case 2:i=J[k+4>>2];q=0;Fb:{if(M[k>>2]>=o>>>0)break Fb;q=J[f-4>>2]!=0;if(c>>>0>i>>>0)q=(J[((J[u+68>>2]^-1)<<2)+f>>2]!=0)+q|0;if(c>>>0>=e-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Fb;q=(J[((J[u+68>>2]<<2)+f|0)-4>>2]!=0)+q|0}Gb:{if(J[k+8>>2]-1>>>0<=o>>>0)break Gb;q=(J[f+4>>2]!=0)+q|0;if(c>>>0>i>>>0)q=(J[(1- -J[u+68>>2]<<2)+f>>2]!=0)+q|0;if(c>>>0>=e-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Gb;q=(J[((J[u+68>>2]<<2)+f|0)+4>>2]!=0)+q|0}if(c>>>0>i>>>0)q=(J[f-(J[u+68>>2]<<2)>>2]!=0)+q|0;if(!(c>>>0>=e-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0)))q=(J[(J[u+68>>2]<<2)+f>>2]!=0)+q|0;y=q?15:14;break;default:break Eb}c=he(J[k+60>>2],y,J[k+64>>2]);i=0-c|0;e=c;c=J[f>>2];J[f>>2]=((c|0)<0?i:e)+(c<<1);H[d|0]=1}d=J[F+84>>2]+d|0;f=(J[u+68>>2]<<2)+f|0;t=t+1|0;if((t|0)!=4)continue}break}b=b+1|0;h=h+4|0;f=J[k+8>>2];o=o+1|0;if(f>>>0>o>>> +J[u+68>>2]<<2)+f>>2]!=0)+q|0;if(c>>>0>=e-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Gb;q=(J[((J[u+68>>2]<<2)+f|0)+4>>2]!=0)+q|0}if(c>>>0>i>>>0)q=(J[f-(J[u+68>>2]<<2)>>2]!=0)+q|0;if(!(c>>>0>=e-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0)))q=(J[(J[u+68>>2]<<2)+f>>2]!=0)+q|0;y=q?15:14;break;default:break Eb}c=qe(J[k+60>>2],y,J[k+64>>2]);i=0-c|0;e=c;c=J[f>>2];J[f>>2]=((c|0)<0?i:e)+(c<<1);H[d|0]=1}d=J[F+84>>2]+d|0;f=(J[u+68>>2]<<2)+f|0;t=t+1|0;if((t|0)!=4)continue}break}b=b+1|0;h=h+4|0;f=J[k+8>>2];o=o+1|0;if(f>>>0>o>>> 0)continue;break}t=J[k+12>>2]}l=(4<>2])+l|0;m=(J[u+68>>2]<<4)+m|0;w=w+4|0;if(w>>>0>>0)continue;break}b=J[k+24>>2]}else b=1;f=b+1|0;break xb;case 2:break yb;default:break wb}b=J[k+4>>2];t=J[k+12>>2];Hb:{if(b>>>0>=t>>>0)break Hb;f=J[k+8>>2];if(f>>>0<=M[k>>2])break Hb;i=J[k+52>>2];s=J[k+48>>2];while(1){o=b+4|0;A=J[k>>2];Ib:{if(A>>>0>=f>>>0){q=J[u+68>>2];break Ib}$=b+3|0;c=i;e=s;while(1){Jb:{Kb:{Lb:{Mb:{l=J[k+12>>2];if(K[c|0]|l>>>0<=$>>>0)break Mb;d=J[F+84>>2];if(K[d+c|0]|K[(d<<1)+c|0]|K[P(d, 3)+c|0])break Mb;h=J[k>>2]==(A|0);d=J[k+4>>2];if(!(J[((J[u+68>>2]^-1)<<2)+e>>2]?h|(d|0)==(b|0):1))break Mb;Nb:{if((b|0)!=(d|0)){m=J[u+68>>2];if(J[e-(m<<2)>>2])break Mb;d=1;if((f-1|0)==(A|0))break Nb;if(J[(1-m<<2)+e>>2])break Mb;d=0;break Nb}d=(f-1|0)==(A|0)}if(!h){if(J[e-4>>2])break Mb;f=J[u+68>>2];if(J[((f<<2)+e|0)-4>>2]|J[((f<<3)+e|0)-4>>2]|J[(P(f,12)+e|0)-4>>2])break Mb}if(!d){if(J[e+4>>2])break Mb;f=J[u+68>>2];if(J[((f<<2)+e|0)+4>>2]|J[((f<<3)+e|0)+4>>2]|J[(P(f,12)+e|0)+4>>2])break Mb}Ob:{if(K[u+ -32|0]&8)break Ob;f=(l|0)==(o|0);if(!(J[((J[u+68>>2]<<4)+e|0)-4>>2]?h|f:1))break Mb;if(f)break Ob;f=J[u+68>>2];if(J[(f<<4)+e>>2])break Mb;if(d)break Ob;if(J[(f<<4|4)+e>>2])break Mb}if(he(J[k+60>>2],17,J[k+64>>2]))break Lb;q=J[u+68>>2];break Jb}q=J[u+68>>2];t=0;break Kb}d=he(J[k+60>>2],18,J[k+64>>2]);d=he(J[k+60>>2],18,J[k+64>>2])|d<<1;fa=(P(d,J[u+68>>2])<<2)+e|0,ga=he(J[k+60>>2],9,J[k+64>>2])?-1:1,J[fa>>2]=ga;q=J[u+68>>2];t=d+1|0;if(t>>>0>3)break Jb}d=(P(q,t)<<2)+e|0;f=(t<>2])+c|0;while(1){D= +32|0]&8)break Ob;f=(l|0)==(o|0);if(!(J[((J[u+68>>2]<<4)+e|0)-4>>2]?h|f:1))break Mb;if(f)break Ob;f=J[u+68>>2];if(J[(f<<4)+e>>2])break Mb;if(d)break Ob;if(J[(f<<4|4)+e>>2])break Mb}if(qe(J[k+60>>2],17,J[k+64>>2]))break Lb;q=J[u+68>>2];break Jb}q=J[u+68>>2];t=0;break Kb}d=qe(J[k+60>>2],18,J[k+64>>2]);d=qe(J[k+60>>2],18,J[k+64>>2])|d<<1;fa=(P(d,J[u+68>>2])<<2)+e|0,ga=qe(J[k+60>>2],9,J[k+64>>2])?-1:1,J[fa>>2]=ga;q=J[u+68>>2];t=d+1|0;if(t>>>0>3)break Jb}d=(P(q,t)<<2)+e|0;f=(t<>2])+c|0;while(1){D= b+t|0;Q=J[k+12>>2];if(D>>>0>=Q>>>0)break Jb;Pb:{if(!K[f|0]){S=J[k+4>>2];Qb:{if(M[k>>2]>=A>>>0){m=2;w=0;y=0;break Qb}y=0;h=J[d-4>>2];m=h?(h|0)>=0?3:1:2;w=(h|0)!=0;if(D>>>0>S>>>0)y=J[((q^-1)<<2)+d>>2]!=0;if(D>>>0>=Q-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Qb;y=(J[((q<<2)+d|0)-4>>2]!=0)+y|0}Rb:{if(J[k+8>>2]-1>>>0<=A>>>0)break Rb;h=J[d+4>>2];l=h?h>>31|1:0;w=h?w?2:1:w;m=l+m|0;if(D>>>0>S>>>0)y=(J[(1-q<<2)+d>>2]!=0)+y|0;if(D>>>0>=Q-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Rb;y=(J[((q<<2)+d|0)+4>>2]!=0)+y|0}l= -0;h=2;Sb:{if(D>>>0<=S>>>0)break Sb;S=J[d-(q<<2)>>2];h=2;if(!S)break Sb;l=1;h=(S|0)>=0?3:1}Tb:{if(D>>>0>=Q-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Tb;q=J[(q<<2)+d>>2];if(!q)break Tb;l=l+1|0;h=(q>>31|1)+h|0}if(!he(J[k+60>>2],J[(((P(w,180)+P(l,60)|0)+P(y,12)|0)+(W<<2)|0)+2306080>>2],J[k+64>>2]))break Pb;h=P(m,40)+(h<<3)|0;if(J[h+2306628>>2]!=(he(J[k+60>>2],J[h+2306624>>2],J[k+64>>2])|0)){J[d>>2]=-1;break Pb}J[d>>2]=1;break Pb}H[f|0]=0}f=J[F+84>>2]+f|0;q=J[u+68>>2];d=(q<<2)+d|0;t=t+1|0;if((t|0)!=4)continue; -break}}c=c+1|0;e=e+4|0;f=J[k+8>>2];A=A+1|0;if(f>>>0>A>>>0)continue;break}t=J[k+12>>2]}s=(q<<4)+s|0;i=(4<>2])+i|0;b=o;if(t>>>0>b>>>0)continue;break}}I[k+56>>1]=L[k+56>>1]+1;f=0;if(!(K[u+32|0]&32))break xb;b=he(J[k+60>>2],18,J[k+64>>2]);if((he(J[k+60>>2],18,J[k+64>>2])<<2|b<<3|he(J[k+60>>2],18,J[k+64>>2])<<1|he(J[k+60>>2],18,J[k+64>>2]))==10)break xb;xc(0,gc[J[J[a>>2]+52>>2]](a)|0,811E3,0)}J[k+24>>2]=f}b=J[u+32>>2];if(b&2){ti(J[k+64>>2]);H[J[J[k+64>>2]>>2]]=8;H[J[J[k+64>>2]>>2]+17|0]=6;H[J[J[k+ -64>>2]>>2]+18|0]=92;b=J[u+32>>2]}if(b&4)SY(J[k+60>>2]);N=N+1|0;if(N>>>0>2])continue;break}}SY(J[k+60>>2]);break lb}break nb}b=J[J[k+40>>2]>>2];break mb}a=Z()|0;qc(i);ba(a|0);B()}c=J[a+8>>2];gc[J[J[c>>2]+48>>2]](c,b)|0}Ub:{if(K[u+32|0]&4){d=J[k+36>>2];if(!d)break Ub;h=d&3;c=J[k+40>>2];b=0;Vb:{if(d>>>0<4){d=0;break Vb}i=d&-4;d=0;e=0;while(1){f=d<<2;g=g-(((J[f+c>>2]+J[c+(f|4)>>2]|0)+J[c+(f|8)>>2]|0)+J[c+(f|12)>>2]|0)|0;d=d+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(!h)break Ub;while(1){g= +0;h=2;Sb:{if(D>>>0<=S>>>0)break Sb;S=J[d-(q<<2)>>2];h=2;if(!S)break Sb;l=1;h=(S|0)>=0?3:1}Tb:{if(D>>>0>=Q-1>>>0|(J[u+32>>2]&8?t>>>0>=3:0))break Tb;q=J[(q<<2)+d>>2];if(!q)break Tb;l=l+1|0;h=(q>>31|1)+h|0}if(!qe(J[k+60>>2],J[(((P(w,180)+P(l,60)|0)+P(y,12)|0)+(W<<2)|0)+2317968>>2],J[k+64>>2]))break Pb;h=P(m,40)+(h<<3)|0;if(J[h+2318516>>2]!=(qe(J[k+60>>2],J[h+2318512>>2],J[k+64>>2])|0)){J[d>>2]=-1;break Pb}J[d>>2]=1;break Pb}H[f|0]=0}f=J[F+84>>2]+f|0;q=J[u+68>>2];d=(q<<2)+d|0;t=t+1|0;if((t|0)!=4)continue; +break}}c=c+1|0;e=e+4|0;f=J[k+8>>2];A=A+1|0;if(f>>>0>A>>>0)continue;break}t=J[k+12>>2]}s=(q<<4)+s|0;i=(4<>2])+i|0;b=o;if(t>>>0>b>>>0)continue;break}}I[k+56>>1]=L[k+56>>1]+1;f=0;if(!(K[u+32|0]&32))break xb;b=qe(J[k+60>>2],18,J[k+64>>2]);if((qe(J[k+60>>2],18,J[k+64>>2])<<2|b<<3|qe(J[k+60>>2],18,J[k+64>>2])<<1|qe(J[k+60>>2],18,J[k+64>>2]))==10)break xb;Cc(0,kc[J[J[a>>2]+52>>2]](a)|0,812792,0)}J[k+24>>2]=f}b=J[u+32>>2];if(b&2){Ji(J[k+64>>2]);H[J[J[k+64>>2]>>2]]=8;H[J[J[k+64>>2]>>2]+17|0]=6;H[J[J[k+ +64>>2]>>2]+18|0]=92;b=J[u+32>>2]}if(b&4)V_(J[k+60>>2]);N=N+1|0;if(N>>>0>2])continue;break}}V_(J[k+60>>2]);break lb}break nb}b=J[J[k+40>>2]>>2];break mb}a=Z()|0;uc(i);ba(a|0);B()}c=J[a+8>>2];kc[J[J[c>>2]+48>>2]](c,b)|0}Ub:{if(K[u+32|0]&4){d=J[k+36>>2];if(!d)break Ub;h=d&3;c=J[k+40>>2];b=0;Vb:{if(d>>>0<4){d=0;break Vb}i=d&-4;d=0;e=0;while(1){f=d<<2;g=g-(((J[f+c>>2]+J[c+(f|4)>>2]|0)+J[c+(f|8)>>2]|0)+J[c+(f|12)>>2]|0)|0;d=d+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(!h)break Ub;while(1){g= g-J[c+(d<<2)>>2]|0;d=d+1|0;b=b+1|0;if((h|0)!=(b|0))continue;break}break Ub}g=g-J[J[k+40>>2]>>2]|0}J[k+16>>2]=1;d=J[O>>2]}f=d;x=x+1|0;if(x>>>0>>0)continue;break}c=d;b=J[O+4>>2]}f=c;C=C+1|0;if(C>>>0>>0)continue;break}}d=J[j>>2];if(!d){b=d;e=b;c=b;break Ha}f=E>>>0<2;E=E+1|0;b=d;e=b;c=b;if(f)continue;break}}Wb:{Xb:{Yb:{Zb:{_b:switch(J[z+4>>2]){case 0:b=J[r>>2];c=J[(J[z+60>>2]+P(b,88)|0)+84>>2];e=J[n>>2]+1|0;J[n>>2]=e;if((e|0)!=J[(c+P(d,100)|0)+8>>2])break Xb;J[n>>2]=0;b=b+1|0;J[r>>2]=b;if((b|0)!= J[a+188>>2])break Xb;J[r>>2]=0;b=d+1|0;J[j>>2]=b;f=J[z+32>>2]!=(d|0);d=b;e=b;c=b;if(f)break Wb;d=0;J[j>>2]=0;h=J[p>>2]+1|0;J[p>>2]=h;f=p;b=0;e=0;c=0;if((h|0)==J[z+8>>2])break Zb;break Wb;case 1:c=J[r>>2];e=J[(J[z+60>>2]+P(c,88)|0)+84>>2];f=J[n>>2]+1|0;J[n>>2]=f;if((f|0)!=J[(e+P(b,100)|0)+8>>2])break Yb;J[n>>2]=0;c=c+1|0;J[r>>2]=c;if((c|0)!=J[a+188>>2])break Yb;J[r>>2]=0;c=J[p>>2]+1|0;J[p>>2]=c;if((c|0)!=J[z+8>>2])break Yb;J[p>>2]=0;d=b+1|0;J[j>>2]=d;h=J[z+32>>2]==(b|0);f=j;b=d;e=b;c=b;if(h)break Zb; break Wb;case 2:f=J[p>>2]+1|0;J[p>>2]=f;if((f|0)!=J[z+8>>2])break Wb;J[p>>2]=0;f=J[r>>2]+1|0;J[r>>2]=f;if((f|0)!=J[a+188>>2])break Wb;J[r>>2]=0;c=J[J[z+60>>2]+84>>2];f=J[n>>2]+1|0;J[n>>2]=f;if((f|0)!=J[(P(e,100)+c|0)+8>>2]){c=e;break Wb}J[n>>2]=0;d=e+1|0;J[j>>2]=d;h=J[z+32>>2]==(e|0);f=j;b=d;e=b;c=b;if(h)break Zb;break Wb;case 3:f=J[p>>2]+1|0;J[p>>2]=f;if((f|0)!=J[z+8>>2])break Wb;J[p>>2]=0;d=c+1|0;J[j>>2]=d;f=J[z+32>>2]!=(c|0);b=d;e=b;c=b;if(f)break Wb;d=0;J[j>>2]=0;f=J[r>>2]+1|0;J[r>>2]=f;b=0;e= 0;c=0;if((f|0)!=J[a+188>>2])break Wb;J[r>>2]=0;h=J[J[z+60>>2]+84>>2];i=J[n>>2]+1|0;J[n>>2]=i;f=n;if((i|0)==J[h+8>>2])break Zb;break Wb;case 4:break _b;default:break Wb}f=J[p>>2]+1|0;J[p>>2]=f;if((f|0)!=J[z+8>>2])break Wb;J[p>>2]=0;d=c+1|0;J[j>>2]=d;f=J[z+32>>2]!=(c|0);b=d;e=b;c=b;if(f)break Wb;d=0;J[j>>2]=0;f=J[r>>2];h=J[(J[z+60>>2]+P(f,88)|0)+84>>2];i=J[n>>2]+1|0;J[n>>2]=i;b=0;e=0;c=0;if((i|0)!=J[h+8>>2])break Wb;J[n>>2]=0;h=f+1|0;J[r>>2]=h;f=r;if((h|0)!=J[a+188>>2])break Wb}d=0;J[f>>2]=0;J[G+52>> -2]=1;b=0;e=0;c=0;break Wb}e=b;c=b;break Wb}b=d;e=b;c=b}f=1;if(g|ea)continue;break}}bc=v+16|0;break L}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,809957,0);f=0;break L}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);f=0;break L}if(f>>>0<=4){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);f=0;break L}c=f-3>>>1|0;J[b+48>>2]=c;b=Nd(J[b+44>>2],c,4);f=J[(d+J[a+200>>2]|0)+60>>2];J[f+44>>2]=b;b=0;if(!J[f+48>>2])break U;while(1){c=J[f+44>>2];$b:{e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1){f=J[a+8>>2];f=gc[J[J[f>>2]+28>>2]](f)| -0;if((f|0)!=-1)break $b}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);f=0;break L}J[(b<<2)+c>>2]=f|e<<8;b=b+1|0;f=J[(d+J[a+200>>2]|0)+60>>2];if(b>>>0>2])continue;break}break U}J[b+48>>2]=1;b=Nd(J[b+44>>2],1,4);J[J[(d+J[a+200>>2]|0)+60>>2]+44>>2]=b;if(KY(a,b))break U;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);f=0;break L}if(M[a+188>>2]<2)continue;e=J[(d+J[a+200>>2]|0)+60>>2];f=J[e+48>>2];o=1;while(1){c=J[e+40>>2];g=P(o,88);b=g+e|0;J[b+48>>2]=f;J[b+40>>2]=c;c=Nd(J[b+44>>2],f,4);e=J[(d+J[a+200>>2]| +2]=1;b=0;e=0;c=0;break Wb}e=b;c=b;break Wb}b=d;e=b;c=b}f=1;if(g|ea)continue;break}}fc=v+16|0;break L}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,811733,0);f=0;break L}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);f=0;break L}if(f>>>0<=4){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);f=0;break L}c=f-3>>>1|0;J[b+48>>2]=c;b=Wd(J[b+44>>2],c,4);f=J[(d+J[a+200>>2]|0)+60>>2];J[f+44>>2]=b;b=0;if(!J[f+48>>2])break U;while(1){c=J[f+44>>2];$b:{e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1){f=J[a+8>>2];f=kc[J[J[f>>2]+28>>2]](f)| +0;if((f|0)!=-1)break $b}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);f=0;break L}J[(b<<2)+c>>2]=f|e<<8;b=b+1|0;f=J[(d+J[a+200>>2]|0)+60>>2];if(b>>>0>2])continue;break}break U}J[b+48>>2]=1;b=Wd(J[b+44>>2],1,4);J[J[(d+J[a+200>>2]|0)+60>>2]+44>>2]=b;if(L_(a,b))break U;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);f=0;break L}if(M[a+188>>2]<2)continue;e=J[(d+J[a+200>>2]|0)+60>>2];f=J[e+48>>2];o=1;while(1){c=J[e+40>>2];g=P(o,88);b=g+e|0;J[b+48>>2]=f;J[b+40>>2]=c;c=Wd(J[b+44>>2],f,4);e=J[(d+J[a+200>>2]| 0)+60>>2];J[(g+e|0)+44>>2]=c;ac:{if(!J[e+48>>2]){f=0;break ac}g=J[e+44>>2];b=0;while(1){f=b<<2;J[f+c>>2]=J[f+g>>2];b=b+1|0;f=J[e+48>>2];if(b>>>0>>0)continue;break}}o=o+1|0;if(o>>>0>2])continue;break}continue}if(p>>>0<2)continue;g=1;l=l+1|0;b=l>>>0<=1?1:l;j=b&-2;m=b&1;while(1){e=J[(P(g,88)+s|0)+84>>2];b=0;c=0;if(l>>>0>=2)while(1){n=P(b,100);r=n+e|0;n=f+n|0;J[r>>2]=J[n>>2];J[r+4>>2]=J[n+4>>2];n=P(b|1,100);r=n+e|0;n=f+n|0;J[r>>2]=J[n>>2];J[r+4>>2]=J[n+4>>2];b=b+2|0;c=c+2|0;if((j|0)!=(c|0))continue; -break}if(m){b=P(b,100);c=b+e|0;b=b+f|0;J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2]}g=g+1|0;if((p|0)!=(g|0))continue;break}continue}break}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,806159,0);f=0}bc=X+16|0;if(!f)break J;bc:{cc:{while(1){b=144;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=255){if((c|0)!=-1)continue;break cc}while(1){c=J[a+8>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==255)continue;break}dc:switch(d+1|0){case 0:break cc;case 1:continue;default:break dc}break}if((d&-16)==48)break J;r=1;if((d|0)==79|d-146>>> -0<2|(d|0)==217)break K;b=J[a+8>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)!=-1){b=J[a+8>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)!=-1)break bc}b=d}r=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,783597,0);d=b;break K}if((d|0)==144)continue;break K}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,803978,0);a=2;break a}if((d|0)==217)break I}r=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,804388,0)}ec:{fc:{if(!P(J[a+196>>2],J[a+192>>2]))break fc;f=0;while(1){z=J[a+200>>2]+(f<<6)|0;if(!J[z>>2])break ec;if(J[a+188>>2]){d=0;while(1){v=0;T=0;n=J[z+60>>2]+P(d,88)| +break}if(m){b=P(b,100);c=b+e|0;b=b+f|0;J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2]}g=g+1|0;if((p|0)!=(g|0))continue;break}continue}break}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,807900,0);f=0}fc=X+16|0;if(!f)break J;bc:{cc:{while(1){b=144;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=255){if((c|0)!=-1)continue;break cc}while(1){c=J[a+8>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==255)continue;break}dc:switch(d+1|0){case 0:break cc;case 1:continue;default:break dc}break}if((d&-16)==48)break J;r=1;if((d|0)==79|d-146>>> +0<2|(d|0)==217)break K;b=J[a+8>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)!=-1){b=J[a+8>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)!=-1)break bc}b=d}r=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,785341,0);d=b;break K}if((d|0)==144)continue;break K}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,805697,0);a=2;break a}if((d|0)==217)break I}r=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,806140,0)}ec:{fc:{if(!P(J[a+196>>2],J[a+192>>2]))break fc;f=0;while(1){z=J[a+200>>2]+(f<<6)|0;if(!J[z>>2])break ec;if(J[a+188>>2]){d=0;while(1){v=0;T=0;n=J[z+60>>2]+P(d,88)| 0;c=J[n+40>>2];b=c>>>5&7;u=c&31;if(u){T=+((J[J[n+44>>2]>>2]&2047|2048)>>>0)*4.8828125E-4;e=(b+J[n+4>>2]|0)-1|0}else e=(b+(J[J[n+44>>2]>>2]>>>3&31)|0)-1|0;s=J[n+84>>2];e=J[n+36>>2]?e:(e-J[n+4>>2]|0)+24|0;p=J[s+8>>2];if(p){w=J[s+96>>2];while(1){k=J[w+(v<<2)>>2];c=J[k+4>>2];gc:{if(!c)break gc;j=J[k>>2];if(!j)break gc;p=J[k+20>>2];q=0;b=1;while(1){t=0;if(b){while(1){o=J[p+4>>2];hc:{if(o>>>0>=M[p+12>>2])break hc;m=J[p+8>>2];if(m>>>0<=M[p>>2])break hc;g=J[p+52>>2];h=J[p+48>>2];while(1){l=J[p>>2];ic:{if(m>>> 0<=l>>>0)break ic;b=g;c=h;j=c;if(!u)while(1){j=J[c>>2];i=0;jc:{if(!j)break jc;i=e-(H[b|0]+(J[p+28>>2]+L[p+56>>1]|0)|0)|0;kc:{if((i|0)<=0){i=j>>0-i;break kc}x=j<=0)break kc;i=x+(-1<>2])break jc;i=i&-1<<24-J[n+4>>2]}J[c>>2]=i;b=b+1|0;c=c+4|0;l=l+1|0;m=J[p+8>>2];if(l>>>0>>0)continue;break ic}while(1){i=J[j>>2];c=0;lc:{if(!i)break lc;c=e-(H[b|0]+(J[p+28>>2]+L[p+56>>1]|0)|0)|0;mc:{if((c|0)>0){x=i<>0-c}V=T*+(c|0);if(R(V)<2147483648){c=~~V;break lc}c=-2147483648}J[j>>2]=c;b=b+1|0;j=j+4|0;l=l+1|0;m=J[p+8>>2];if(l>>>0>>0)continue;break}}g=J[s+84>>2]+g|0;h=(J[n+68>>2]<<2)+h|0;o=o+1|0;if(o>>>0>2])continue;break}j=J[k>>2]}p=p+68|0;t=t+1|0;if(t>>>0>>0)continue;break}c=J[k+4>>2];b=j}else b=0;q=q+1|0;if(q>>>0>>0)continue;break}p=J[s+8>>2]}v=v+1|0;if(v>>>0

      >>0)continue;break}}if(J[n+20>>2]!=J[a+28>>2]){j=1;while(1){q=0;m=J[n+84>>2]+P(j,100)|0;O=J[m+56>>2];N=J[m+32>> @@ -2134,27 +2160,27 @@ ca)|0}if(J[n+36>>2])break sc;c=c&-1<<24-J[n+4>>2]}J[i>>2]=c;e=e+1|0;i=i+4|0;b=b+ 0>2])continue;break}c=J[C>>2]}h=h+68|0;w=w+1|0;if(w>>>0>>0)continue;break}i=J[C+4>>2];e=c}else e=0;Q=Q+1|0;if(Q>>>0>>0)continue;break}h=J[m+8>>2]}D=D+1|0;if(D>>>0>>0)continue;break}}q=q+1|0;if((q|0)!=3)continue;break}t=A+O-(x+N)|0;q=u>>>0<=1?1:u;w=g&-4;l=g&3;p=A-x&3;x=A+(x^-1)|0;C=O+(N^-1)|0;b=k>>>0<=1?1:k;O=b&-4;F=b&3;h=J[n+76>>2];A=0;N=(J[m+12>>2]&1)+3|0;D=N<<2;while(1){Q=J[n+80>>2];b=Q+D|0;wc:{if(J[m+28>>2]==J[m+32>>2]){xc:{if(!g)break xc;o=0;e=0;c=b;v=0;if(C>>>0>=3)while(1){i= e<<2;J[c>>2]=J[i+h>>2];J[c+8>>2]=J[(i|4)+h>>2];J[c+16>>2]=J[(i|8)+h>>2];J[c+24>>2]=J[(i|12)+h>>2];c=c+32|0;e=e+4|0;v=v+4|0;if((w|0)!=(v|0))continue;break}if(!l)break xc;while(1){J[c>>2]=J[(e<<2)+h>>2];c=c+8|0;e=e+1|0;o=o+1|0;if((l|0)!=(o|0))continue;break}}if(g>>>0>=k>>>0)break wc;c=b+4|0;e=0;b=g;if(p)while(1){J[c>>2]=J[(b<<2)+h>>2];c=c+8|0;b=b+1|0;e=e+1|0;if((p|0)!=(e|0))continue;break}if(x>>>0<3)break wc;while(1){e=(b<<2)+h|0;J[c>>2]=J[e>>2];J[c+8>>2]=J[e+4>>2];J[c+16>>2]=J[e+8>>2];J[c+24>>2]=J[e+ 12>>2];c=c+32|0;b=b+4|0;if((t|0)!=(b|0))continue;break}break wc}yc:{if(!g)break yc;c=b+4|0;o=0;e=0;v=0;if(C>>>0>2)while(1){i=e<<2;J[c>>2]=J[i+h>>2];J[c+8>>2]=J[(i|4)+h>>2];J[c+16>>2]=J[(i|8)+h>>2];J[c+24>>2]=J[(i|12)+h>>2];c=c+32|0;e=e+4|0;v=v+4|0;if((w|0)!=(v|0))continue;break}if(!l)break yc;while(1){J[c>>2]=J[(e<<2)+h>>2];c=c+8|0;e=e+1|0;o=o+1|0;if((l|0)!=(o|0))continue;break}}if(g>>>0>=k>>>0)break wc;e=0;c=g;if(p)while(1){J[b>>2]=J[(c<<2)+h>>2];b=b+8|0;c=c+1|0;e=e+1|0;if((p|0)!=(e|0))continue; -break}if(x>>>0<3)break wc;while(1){e=(c<<2)+h|0;J[b>>2]=J[e>>2];J[b+8>>2]=J[e+4>>2];J[b+16>>2]=J[e+8>>2];J[b+24>>2]=J[e+12>>2];b=b+32|0;c=c+4|0;if((t|0)!=(c|0))continue;break}}JY(n,Q,N,k);c=D+J[n+80>>2]|0;i=0;b=0;o=0;if(k>>>0>=4)while(1){e=b<<2;J[e+h>>2]=J[c>>2];J[(e|4)+h>>2]=J[c+4>>2];J[(e|8)+h>>2]=J[c+8>>2];J[(e|12)+h>>2]=J[c+12>>2];c=c+16|0;b=b+4|0;o=o+4|0;if((O|0)!=(o|0))continue;break}if(F)while(1){J[(b<<2)+h>>2]=J[c>>2];c=c+4|0;b=b+1|0;i=i+1|0;if((F|0)!=(i|0))continue;break}h=(J[n+68>>2]<<2)+ +break}if(x>>>0<3)break wc;while(1){e=(c<<2)+h|0;J[b>>2]=J[e>>2];J[b+8>>2]=J[e+4>>2];J[b+16>>2]=J[e+8>>2];J[b+24>>2]=J[e+12>>2];b=b+32|0;c=c+4|0;if((t|0)!=(c|0))continue;break}}K_(n,Q,N,k);c=D+J[n+80>>2]|0;i=0;b=0;o=0;if(k>>>0>=4)while(1){e=b<<2;J[e+h>>2]=J[c>>2];J[(e|4)+h>>2]=J[c+4>>2];J[(e|8)+h>>2]=J[c+8>>2];J[(e|12)+h>>2]=J[c+12>>2];c=c+16|0;b=b+4|0;o=o+4|0;if((O|0)!=(o|0))continue;break}if(F)while(1){J[(b<<2)+h>>2]=J[c>>2];c=c+4|0;b=b+1|0;i=i+1|0;if((F|0)!=(i|0))continue;break}h=(J[n+68>>2]<<2)+ h|0;A=A+1|0;if((q|0)!=(A|0))continue;break}v=E+X-(y+U)|0;C=k>>>0<=1?1:k;A=q&-4;o=q&3;k=s&-4;g=s&3;l=E-y&3;q=E+(y^-1)|0;t=X+(U^-1)|0;c=J[n+76>>2];w=0;y=(J[m+16>>2]&1)+3|0;x=y<<2;while(1){E=J[n+80>>2];e=E+x|0;zc:{if(J[m+40>>2]==J[m+44>>2]){Ac:{if(!s)break Ac;i=0;h=0;b=e;p=0;if(t>>>0>=3)while(1){J[b>>2]=J[(P(J[n+68>>2],h)<<2)+c>>2];J[b+8>>2]=J[(P(J[n+68>>2],h|1)<<2)+c>>2];J[b+16>>2]=J[(P(J[n+68>>2],h|2)<<2)+c>>2];J[b+24>>2]=J[(P(J[n+68>>2],h|3)<<2)+c>>2];b=b+32|0;h=h+4|0;p=p+4|0;if((k|0)!=(p|0))continue; break}if(!g)break Ac;while(1){J[b>>2]=J[(P(J[n+68>>2],h)<<2)+c>>2];b=b+8|0;h=h+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}if(s>>>0>=u>>>0)break zc;h=e+4|0;e=0;b=s;if(l)while(1){J[h>>2]=J[(P(J[n+68>>2],b)<<2)+c>>2];h=h+8|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}if(q>>>0<3)break zc;while(1){J[h>>2]=J[(P(J[n+68>>2],b)<<2)+c>>2];J[h+8>>2]=J[(P(J[n+68>>2],b+1|0)<<2)+c>>2];J[h+16>>2]=J[(P(J[n+68>>2],b+2|0)<<2)+c>>2];J[h+24>>2]=J[(P(J[n+68>>2],b+3|0)<<2)+c>>2];h=h+32|0;b=b+4|0;if((v|0)!=(b|0))continue; break}break zc}Bc:{if(!s)break Bc;h=e+4|0;i=0;b=0;p=0;if(t>>>0>2)while(1){J[h>>2]=J[(P(J[n+68>>2],b)<<2)+c>>2];J[h+8>>2]=J[(P(J[n+68>>2],b|1)<<2)+c>>2];J[h+16>>2]=J[(P(J[n+68>>2],b|2)<<2)+c>>2];J[h+24>>2]=J[(P(J[n+68>>2],b|3)<<2)+c>>2];h=h+32|0;b=b+4|0;p=p+4|0;if((k|0)!=(p|0))continue;break}if(!g)break Bc;while(1){J[h>>2]=J[(P(J[n+68>>2],b)<<2)+c>>2];h=h+8|0;b=b+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}if(s>>>0>=u>>>0)break zc;b=0;h=s;if(l)while(1){J[e>>2]=J[(P(J[n+68>>2],h)<<2)+c>>2];e=e+8|0; -h=h+1|0;b=b+1|0;if((l|0)!=(b|0))continue;break}if(q>>>0<3)break zc;while(1){J[e>>2]=J[(P(J[n+68>>2],h)<<2)+c>>2];J[e+8>>2]=J[(P(J[n+68>>2],h+1|0)<<2)+c>>2];J[e+16>>2]=J[(P(J[n+68>>2],h+2|0)<<2)+c>>2];J[e+24>>2]=J[(P(J[n+68>>2],h+3|0)<<2)+c>>2];e=e+32|0;h=h+4|0;if((v|0)!=(h|0))continue;break}}JY(n,E,y,u);h=x+J[n+80>>2]|0;e=0;b=0;i=0;if(u>>>0>=4)while(1){J[(P(J[n+68>>2],b)<<2)+c>>2]=J[h>>2];J[(P(J[n+68>>2],b|1)<<2)+c>>2]=J[h+4>>2];J[(P(J[n+68>>2],b|2)<<2)+c>>2]=J[h+8>>2];J[(P(J[n+68>>2],b|3)<<2)+c>> +h=h+1|0;b=b+1|0;if((l|0)!=(b|0))continue;break}if(q>>>0<3)break zc;while(1){J[e>>2]=J[(P(J[n+68>>2],h)<<2)+c>>2];J[e+8>>2]=J[(P(J[n+68>>2],h+1|0)<<2)+c>>2];J[e+16>>2]=J[(P(J[n+68>>2],h+2|0)<<2)+c>>2];J[e+24>>2]=J[(P(J[n+68>>2],h+3|0)<<2)+c>>2];e=e+32|0;h=h+4|0;if((v|0)!=(h|0))continue;break}}K_(n,E,y,u);h=x+J[n+80>>2]|0;e=0;b=0;i=0;if(u>>>0>=4)while(1){J[(P(J[n+68>>2],b)<<2)+c>>2]=J[h>>2];J[(P(J[n+68>>2],b|1)<<2)+c>>2]=J[h+4>>2];J[(P(J[n+68>>2],b|2)<<2)+c>>2]=J[h+8>>2];J[(P(J[n+68>>2],b|3)<<2)+c>> 2]=J[h+12>>2];h=h+16|0;b=b+4|0;i=i+4|0;if((A|0)!=(i|0))continue;break}if(o)while(1){J[(P(J[n+68>>2],b)<<2)+c>>2]=J[h>>2];h=h+4|0;b=b+1|0;e=e+1|0;if((o|0)!=(e|0))continue;break}c=c+4|0;w=w+1|0;if((C|0)!=(w|0))continue;break}}j=j+1|0;if(j>>>0<=J[n+20>>2]-J[a+28>>2]>>>0)continue;break}}d=d+1|0;if(d>>>0>2])continue;break}}d=0;h=0;Cc:{Dc:{if(J[z+12>>2]!=1)break Dc;if(M[a+188>>2]<3)break Cc;e=J[z+60>>2];b=J[e+8>>2];if((b|0)!=J[e+96>>2])break Cc;c=J[e+12>>2];if((c|0)!=J[e+100>>2]|(b|0)!=J[e+184>> 2]|(c|0)!=J[e+188>>2])break Cc;g=J[e+72>>2];if(J[e+36>>2]){if(!g|!J[e+68>>2])break Dc;b=1;while(1){Ec:{if(!b){b=0;break Ec}c=J[e+252>>2];i=J[e+164>>2];l=J[e+76>>2];g=0;while(1){b=d<<2;j=b+i|0;q=j;s=b+l|0;p=b+c|0;m=J[p>>2];j=J[j>>2];b=J[s>>2]-(m+j>>2)|0;J[q>>2]=b;J[s>>2]=b+m;J[p>>2]=b+j;d=d+1|0;b=J[e+68>>2];g=g+1|0;if(b>>>0>g>>>0)continue;break}g=J[e+72>>2]}h=h+1|0;if(h>>>0>>0)continue;break}break Dc}if(!g|!J[e+68>>2])break Dc;b=1;while(1){Fc:{if(!b){b=0;break Fc}l=J[e+252>>2];j=J[e+164>>2];s=J[e+ 76>>2];g=0;while(1){c=d<<2;b=c+l|0;V=+J[b>>2];p=c+s|0;T=+J[p>>2];_=V*1.402+T+.5;Gc:{if(R(_)<2147483648){i=~~_;break Gc}i=-2147483648}c=c+j|0;m=J[c>>2];J[p>>2]=i;_=V*-.71414;V=+(m|0);_=_+(V*-.34413+T)+.5;Hc:{if(R(_)<2147483648){i=~~_;break Hc}i=-2147483648}J[c>>2]=i;T=V*1.772+T+.5;Ic:{if(R(T)<2147483648){c=~~T;break Ic}c=-2147483648}J[b>>2]=c;d=d+1|0;b=J[e+68>>2];g=g+1|0;if(b>>>0>g>>>0)continue;break}g=J[e+72>>2]}h=h+1|0;if(h>>>0>>0)continue;break}}d=1;if(!J[a+188>>2])break Cc;m=J[z+60>>2];s=0; while(1){g=m+P(s,88)|0;h=J[g+72>>2];b=J[g+4>>2];Jc:{if(J[g>>2]){if(!h|!J[g+68>>2])break Jc;i=1<>2];c=0;e=1;while(1){p=0;d=0;if(e){while(1){d=J[b>>2];d=J[g+36>>2]?d:d>>24-J[g+4>>2];J[b>>2]=(d|0)<(l|0)?l:(d|0)<(i|0)?d:j;b=b+4|0;d=J[g+68>>2];p=p+1|0;if(d>>>0>p>>>0)continue;break}h=J[g+72>>2]}e=d;c=c+1|0;if(h>>>0>c>>>0)continue;break}break Jc}if(!h|!J[g+68>>2])break Jc;i=1<>2];j=0;c=1;while(1){p=0;b=0;if(c){while(1){b=J[d>>2];if(!J[g+36>>2])b=b>> -24-J[g+4>>2];b=b+i|0;J[d>>2]=(b|0)>=0?(b|0)<(e|0)?b:e:0;d=d+4|0;b=J[g+68>>2];p=p+1|0;if(b>>>0>p>>>0)continue;break}h=J[g+72>>2]}c=b;j=j+1|0;if(j>>>0>>0)continue;break}}d=1;s=s+1|0;if(s>>>0>2])continue;break}}if(d){f=f+1|0;if(f>>>0>=P(J[a+196>>2],J[a+192>>2])>>>0)break fc;continue}break}a=2;break a}a=!r;break a}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,804829,0);a=2;break a}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);a=2;break a}d=M[a+188>>2]>256?5:4;if((d|2)>>>0>b>>>0){xc(1,gc[J[J[a>>2]+52>>2]](a)| -0,793481,0);a=2;break a}b=b-d>>>1|0;J[c+48>>2]=b;c=Nd(J[c+44>>2],b,4);b=J[J[a+200>>2]+60>>2];e=f+b|0;J[e+44>>2]=c;d=0;if(!J[e+48>>2])break j;while(1){b=J[(b+f|0)+44>>2];Kc:{c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=-1){e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1)break Kc}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);a=2;break a}J[(d<<2)+b>>2]=e|c<<8;d=d+1|0;b=J[J[a+200>>2]+60>>2];if(d>>>0>2])continue;break}break j}J[c+48>>2]=1;b=Nd(J[c+44>>2],1,4);J[(f+J[J[a+200>>2]+60>> -2]|0)+44>>2]=b;Lc:{c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break Lc;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break Lc;J[b>>2]=d|c<<8;break j}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793481,0);a=2;break a}s=1;if(P(J[a+196>>2],J[a+192>>2])>>>0<2)continue;g=J[a+200>>2];c=J[g+60>>2];b=J[(f+c|0)+48>>2];e=1;while(1){d=c+f|0;h=J[d+40>>2];i=e<<6;c=f+J[(i+g|0)+60>>2]|0;J[c+48>>2]=b;J[c+40>>2]=h;h=Nd(J[c+44>>2],J[d+48>>2],4);g=J[a+200>>2];J[(f+J[(i+g|0)+60>>2]|0)+44>>2]=h;c=J[g+60>>2];i=f+c| -0;Mc:{if(!J[i+48>>2]){b=0;break Mc}l=J[i+44>>2];d=0;while(1){b=d<<2;J[b+h>>2]=J[b+l>>2];b=J[i+48>>2];d=d+1|0;if(b>>>0>d>>>0)continue;break}}e=e+1|0;if(e>>>0>2],J[a+192>>2])>>>0)continue;break}continue}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);a=2;break a}if(b>>>0<=4){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);a=2;break a}b=b-3>>>1|0;J[c+48>>2]=b;c=Nd(J[c+44>>2],b,4);b=J[J[a+200>>2]+60>>2];J[b+44>>2]=c;d=0;if(!J[b+48>>2])break f;while(1){b=J[b+44>>2];Nc:{c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)| -0;if((c|0)!=-1){e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1)break Nc}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);a=2;break a}J[(d<<2)+b>>2]=e|c<<8;d=d+1|0;b=J[J[a+200>>2]+60>>2];if(d>>>0>2])continue;break}break f}J[c+48>>2]=1;b=Nd(J[c+44>>2],1,4);J[J[J[a+200>>2]+60>>2]+44>>2]=b;Oc:{c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break Oc;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break Oc;J[b>>2]=d|c<<8;break f}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792079,0);a=2;break a}r=1; -s=1;e=J[a+192>>2];f=J[a+196>>2];if(!P(e,f))continue;b=J[a+188>>2];g=0;while(1){c=0;d=0;if(b){while(1){Pc:{if(!(c|g))break Pc;f=P(c,88);d=J[a+200>>2];e=g<<6;b=f+J[(d+e|0)+60>>2]|0;d=J[d+60>>2];J[b+40>>2]=J[d+40>>2];d=J[d+48>>2];J[b+48>>2]=d;b=Nd(J[b+44>>2],d,4);d=J[a+200>>2];J[(J[(d+e|0)+60>>2]+f|0)+44>>2]=b;e=J[d+60>>2];if(!J[e+48>>2])break Pc;f=J[e+44>>2];d=0;while(1){h=d<<2;J[h+b>>2]=J[f+h>>2];d=d+1|0;if(d>>>0>2])continue;break}}c=c+1|0;d=J[a+188>>2];if(c>>>0>>0)continue;break}f=J[a+ +24-J[g+4>>2];b=b+i|0;J[d>>2]=(b|0)>=0?(b|0)<(e|0)?b:e:0;d=d+4|0;b=J[g+68>>2];p=p+1|0;if(b>>>0>p>>>0)continue;break}h=J[g+72>>2]}c=b;j=j+1|0;if(j>>>0>>0)continue;break}}d=1;s=s+1|0;if(s>>>0>2])continue;break}}if(d){f=f+1|0;if(f>>>0>=P(J[a+196>>2],J[a+192>>2])>>>0)break fc;continue}break}a=2;break a}a=!r;break a}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,806583,0);a=2;break a}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);a=2;break a}d=M[a+188>>2]>256?5:4;if((d|2)>>>0>b>>>0){Cc(1,kc[J[J[a>>2]+52>>2]](a)| +0,795245,0);a=2;break a}b=b-d>>>1|0;J[c+48>>2]=b;c=Wd(J[c+44>>2],b,4);b=J[J[a+200>>2]+60>>2];e=f+b|0;J[e+44>>2]=c;d=0;if(!J[e+48>>2])break j;while(1){b=J[(b+f|0)+44>>2];Kc:{c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=-1){e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1)break Kc}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);a=2;break a}J[(d<<2)+b>>2]=e|c<<8;d=d+1|0;b=J[J[a+200>>2]+60>>2];if(d>>>0>2])continue;break}break j}J[c+48>>2]=1;b=Wd(J[c+44>>2],1,4);J[(f+J[J[a+200>>2]+60>> +2]|0)+44>>2]=b;Lc:{c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break Lc;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break Lc;J[b>>2]=d|c<<8;break j}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795245,0);a=2;break a}s=1;if(P(J[a+196>>2],J[a+192>>2])>>>0<2)continue;g=J[a+200>>2];c=J[g+60>>2];b=J[(f+c|0)+48>>2];e=1;while(1){d=c+f|0;h=J[d+40>>2];i=e<<6;c=f+J[(i+g|0)+60>>2]|0;J[c+48>>2]=b;J[c+40>>2]=h;h=Wd(J[c+44>>2],J[d+48>>2],4);g=J[a+200>>2];J[(f+J[(i+g|0)+60>>2]|0)+44>>2]=h;c=J[g+60>>2];i=f+c| +0;Mc:{if(!J[i+48>>2]){b=0;break Mc}l=J[i+44>>2];d=0;while(1){b=d<<2;J[b+h>>2]=J[b+l>>2];b=J[i+48>>2];d=d+1|0;if(b>>>0>d>>>0)continue;break}}e=e+1|0;if(e>>>0>2],J[a+192>>2])>>>0)continue;break}continue}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);a=2;break a}if(b>>>0<=4){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);a=2;break a}b=b-3>>>1|0;J[c+48>>2]=b;c=Wd(J[c+44>>2],b,4);b=J[J[a+200>>2]+60>>2];J[b+44>>2]=c;d=0;if(!J[b+48>>2])break f;while(1){b=J[b+44>>2];Nc:{c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)| +0;if((c|0)!=-1){e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)!=-1)break Nc}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);a=2;break a}J[(d<<2)+b>>2]=e|c<<8;d=d+1|0;b=J[J[a+200>>2]+60>>2];if(d>>>0>2])continue;break}break f}J[c+48>>2]=1;b=Wd(J[c+44>>2],1,4);J[J[J[a+200>>2]+60>>2]+44>>2]=b;Oc:{c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break Oc;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break Oc;J[b>>2]=d|c<<8;break f}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793823,0);a=2;break a}r=1; +s=1;e=J[a+192>>2];f=J[a+196>>2];if(!P(e,f))continue;b=J[a+188>>2];g=0;while(1){c=0;d=0;if(b){while(1){Pc:{if(!(c|g))break Pc;f=P(c,88);d=J[a+200>>2];e=g<<6;b=f+J[(d+e|0)+60>>2]|0;d=J[d+60>>2];J[b+40>>2]=J[d+40>>2];d=J[d+48>>2];J[b+48>>2]=d;b=Wd(J[b+44>>2],d,4);d=J[a+200>>2];J[(J[(d+e|0)+60>>2]+f|0)+44>>2]=b;e=J[d+60>>2];if(!J[e+48>>2])break Pc;f=J[e+44>>2];d=0;while(1){h=d<<2;J[h+b>>2]=J[f+h>>2];d=d+1|0;if(d>>>0>2])continue;break}}c=c+1|0;d=J[a+188>>2];if(c>>>0>>0)continue;break}f=J[a+ 196>>2];e=J[a+192>>2]}b=d;g=g+1|0;if(g>>>0>>0)continue;break}continue}r=1;p=1;i=P(J[a+196>>2],J[a+192>>2]);if(!i)continue;l=h&1;j=h+1&-2;g=J[a+188>>2];c=0;while(1){if(g){p=J[a+200>>2];m=p+(c<<6)|0;r=0;while(1){Qc:{if(!(c|r))break Qc;b=J[(J[m+60>>2]+P(r,88)|0)+84>>2];f=J[J[p+60>>2]+84>>2];d=0;e=0;if(h)while(1){n=P(d,100);v=n+b|0;n=f+n|0;J[v>>2]=J[n>>2];J[v+4>>2]=J[n+4>>2];n=P(d|1,100);v=n+b|0;n=f+n|0;J[v>>2]=J[n>>2];J[v+4>>2]=J[n+4>>2];d=d+2|0;e=e+2|0;if((j|0)!=(e|0))continue;break}if(l)break Qc; -e=b;b=P(d,100);d=e+b|0;b=b+f|0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2]}r=r+1|0;if((g|0)!=(r|0))continue;break}}r=1;c=c+1|0;if((i|0)!=(c|0))continue;break}p=1;continue}e=0;r=1;if(!J[a+188>>2])continue;while(1){b=J[J[a+200>>2]+60>>2];Rc:{c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;Sc:{if((c|0)==-1)break Sc;d=b;b=P(e,88);J[(d+b|0)+4>>2]=c;c=J[J[a+200>>2]+60>>2];d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break Sc;J[(b+c|0)+8>>2]=d;c=J[J[a+200>>2]+60>>2];d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d| -0)!=-1)break Rc}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,785278,0);a=2;break a}J[(b+c|0)+12>>2]=d;c=b+J[J[a+200>>2]+60>>2]|0;if(!(J[c+12>>2]?J[c+8>>2]:0)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,785278,0);a=2;break a}d=1;f=J[c+4>>2];J[c>>2]=f>>>7&1;J[c+4>>2]=(f&127)+1;if(P(J[a+196>>2],J[a+192>>2])>>>0>=2)while(1){c=J[a+200>>2];tc(b+J[(c+(d<<6)|0)+60>>2]|0,b+J[c+60>>2]|0,88);d=d+1|0;if(d>>>0>2],J[a+192>>2])>>>0)continue;break}e=e+1|0;if(e>>>0>2])continue;break}continue}break}xc(1,gc[J[J[a>>2]+52>> -2]](a)|0,783597,0);a=2}bc=da+16|0;return a}function Fra(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0;i=bc-2064|0;bc=i;M=ch(i+2052|0,i+2060|0,P(J[a+16>>2],J[a+12>>2]),2);F=J[i+2060>>2];g=J[a+16>>2];a:{if((g|0)<=0)break a;A=J[a+12>>2];if((A|0)<=0)break a;u=i+1984|0;v=i+1920|0;w=i+1856|0;x=i+1792|0;y=i+1728|0;z=i+1664|0;k=i+1600|0;m=i+1536|0;n=i+1472|0;s=i+1408|0;t=i+1344|0;q=i+1280|0; -r=i+1216|0;j=i+1152|0;l=i+1088|0;o=i+1024|0;p=i- -64|0;D=J[a>>2];G=F;while(1){E=0;if((A|0)>0){while(1){h=0;C=wc(i,0,2048);f=0;while(1){g=J[(f>>>2&1073741820)+D>>2];b:{if(!g)break b;A=J[g+((f&15)<<2)>>2];if(!A)break b;g=h<<2;I[C+(J[g+2415952>>2]<<1)>>1]=L[A>>1];I[C+(J[(g|4)+2415952>>2]<<1)>>1]=L[A+2>>1];I[C+(J[(g|8)+2415952>>2]<<1)>>1]=L[A+4>>1];I[C+(J[(g|12)+2415952>>2]<<1)>>1]=L[A+6>>1];I[C+(J[(g|16)+2415952>>2]<<1)>>1]=L[A+8>>1];I[C+(J[(g|20)+2415952>>2]<<1)>>1]=L[A+10>>1];I[C+(J[(g|24)+2415952>> -2]<<1)>>1]=L[A+12>>1];I[C+(J[(g|28)+2415952>>2]<<1)>>1]=L[A+14>>1];I[C+(J[(g|32)+2415952>>2]<<1)>>1]=L[A+16>>1];I[C+(J[(g|36)+2415952>>2]<<1)>>1]=L[A+18>>1];I[C+(J[(g|40)+2415952>>2]<<1)>>1]=L[A+20>>1];I[C+(J[(g|44)+2415952>>2]<<1)>>1]=L[A+22>>1];I[C+(J[(g|48)+2415952>>2]<<1)>>1]=L[A+24>>1];I[C+(J[(g|52)+2415952>>2]<<1)>>1]=L[A+26>>1];I[C+(J[(g|56)+2415952>>2]<<1)>>1]=L[A+28>>1];I[C+(J[(g|60)+2415952>>2]<<1)>>1]=L[A+30>>1]}h=h+16|0;f=f+1|0;if((f|0)!=64)continue;break}h=J[C+4>>2];f=(E<<1)+G|0;g=J[C>> +e=b;b=P(d,100);d=e+b|0;b=b+f|0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2]}r=r+1|0;if((g|0)!=(r|0))continue;break}}r=1;c=c+1|0;if((i|0)!=(c|0))continue;break}p=1;continue}e=0;r=1;if(!J[a+188>>2])continue;while(1){b=J[J[a+200>>2]+60>>2];Rc:{c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;Sc:{if((c|0)==-1)break Sc;d=b;b=P(e,88);J[(d+b|0)+4>>2]=c;c=J[J[a+200>>2]+60>>2];d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break Sc;J[(b+c|0)+8>>2]=d;c=J[J[a+200>>2]+60>>2];d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d| +0)!=-1)break Rc}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,787022,0);a=2;break a}J[(b+c|0)+12>>2]=d;c=b+J[J[a+200>>2]+60>>2]|0;if(!(J[c+12>>2]?J[c+8>>2]:0)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,787022,0);a=2;break a}d=1;f=J[c+4>>2];J[c>>2]=f>>>7&1;J[c+4>>2]=(f&127)+1;if(P(J[a+196>>2],J[a+192>>2])>>>0>=2)while(1){c=J[a+200>>2];xc(b+J[(c+(d<<6)|0)+60>>2]|0,b+J[c+60>>2]|0,88);d=d+1|0;if(d>>>0>2],J[a+192>>2])>>>0)continue;break}e=e+1|0;if(e>>>0>2])continue;break}continue}break}Cc(1,kc[J[J[a>>2]+52>> +2]](a)|0,785341,0);a=2}fc=da+16|0;return a}function Pta(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0;i=fc-2064|0;fc=i;M=sh(i+2052|0,i+2060|0,P(J[a+16>>2],J[a+12>>2]),2);F=J[i+2060>>2];g=J[a+16>>2];a:{if((g|0)<=0)break a;A=J[a+12>>2];if((A|0)<=0)break a;u=i+1984|0;v=i+1920|0;w=i+1856|0;x=i+1792|0;y=i+1728|0;z=i+1664|0;k=i+1600|0;m=i+1536|0;n=i+1472|0;s=i+1408|0;t=i+1344|0;q=i+1280|0; +r=i+1216|0;j=i+1152|0;l=i+1088|0;o=i+1024|0;p=i- -64|0;D=J[a>>2];G=F;while(1){E=0;if((A|0)>0){while(1){h=0;C=Ac(i,0,2048);f=0;while(1){g=J[(f>>>2&1073741820)+D>>2];b:{if(!g)break b;A=J[g+((f&15)<<2)>>2];if(!A)break b;g=h<<2;I[C+(J[g+2427856>>2]<<1)>>1]=L[A>>1];I[C+(J[(g|4)+2427856>>2]<<1)>>1]=L[A+2>>1];I[C+(J[(g|8)+2427856>>2]<<1)>>1]=L[A+4>>1];I[C+(J[(g|12)+2427856>>2]<<1)>>1]=L[A+6>>1];I[C+(J[(g|16)+2427856>>2]<<1)>>1]=L[A+8>>1];I[C+(J[(g|20)+2427856>>2]<<1)>>1]=L[A+10>>1];I[C+(J[(g|24)+2427856>> +2]<<1)>>1]=L[A+12>>1];I[C+(J[(g|28)+2427856>>2]<<1)>>1]=L[A+14>>1];I[C+(J[(g|32)+2427856>>2]<<1)>>1]=L[A+16>>1];I[C+(J[(g|36)+2427856>>2]<<1)>>1]=L[A+18>>1];I[C+(J[(g|40)+2427856>>2]<<1)>>1]=L[A+20>>1];I[C+(J[(g|44)+2427856>>2]<<1)>>1]=L[A+22>>1];I[C+(J[(g|48)+2427856>>2]<<1)>>1]=L[A+24>>1];I[C+(J[(g|52)+2427856>>2]<<1)>>1]=L[A+26>>1];I[C+(J[(g|56)+2427856>>2]<<1)>>1]=L[A+28>>1];I[C+(J[(g|60)+2427856>>2]<<1)>>1]=L[A+30>>1]}h=h+16|0;f=f+1|0;if((f|0)!=64)continue;break}h=J[C+4>>2];f=(E<<1)+G|0;g=J[C>> 2];H[f|0]=g;H[f+1|0]=g>>>8;H[f+2|0]=g>>>16;H[f+3|0]=g>>>24;H[f+4|0]=h;H[f+5|0]=h>>>8;H[f+6|0]=h>>>16;H[f+7|0]=h>>>24;h=J[C+60>>2];g=J[C+56>>2];H[f+56|0]=g;H[f+57|0]=g>>>8;H[f+58|0]=g>>>16;H[f+59|0]=g>>>24;H[f+60|0]=h;H[f+61|0]=h>>>8;H[f+62|0]=h>>>16;H[f+63|0]=h>>>24;h=J[C+52>>2];g=J[C+48>>2];H[f+48|0]=g;H[f+49|0]=g>>>8;H[f+50|0]=g>>>16;H[f+51|0]=g>>>24;H[f+52|0]=h;H[f+53|0]=h>>>8;H[f+54|0]=h>>>16;H[f+55|0]=h>>>24;h=J[C+44>>2];g=J[C+40>>2];H[f+40|0]=g;H[f+41|0]=g>>>8;H[f+42|0]=g>>>16;H[f+43|0]=g>>> 24;H[f+44|0]=h;H[f+45|0]=h>>>8;H[f+46|0]=h>>>16;H[f+47|0]=h>>>24;h=J[C+36>>2];g=J[C+32>>2];H[f+32|0]=g;H[f+33|0]=g>>>8;H[f+34|0]=g>>>16;H[f+35|0]=g>>>24;H[f+36|0]=h;H[f+37|0]=h>>>8;H[f+38|0]=h>>>16;H[f+39|0]=h>>>24;h=J[C+28>>2];g=J[C+24>>2];H[f+24|0]=g;H[f+25|0]=g>>>8;H[f+26|0]=g>>>16;H[f+27|0]=g>>>24;H[f+28|0]=h;H[f+29|0]=h>>>8;H[f+30|0]=h>>>16;H[f+31|0]=h>>>24;h=J[C+20>>2];g=J[C+16>>2];H[f+16|0]=g;H[f+17|0]=g>>>8;H[f+18|0]=g>>>16;H[f+19|0]=g>>>24;H[f+20|0]=h;H[f+21|0]=h>>>8;H[f+22|0]=h>>>16;H[f+ 23|0]=h>>>24;h=J[C+12>>2];g=J[C+8>>2];H[f+8|0]=g;H[f+9|0]=g>>>8;H[f+10|0]=g>>>16;H[f+11|0]=g>>>24;H[f+12|0]=h;H[f+13|0]=h>>>8;H[f+14|0]=h>>>16;H[f+15|0]=h>>>24;h=K[p+4|0]|K[p+5|0]<<8|(K[p+6|0]<<16|K[p+7|0]<<24);f=f+(J[a+12>>2]<<1)|0;g=K[p|0]|K[p+1|0]<<8|(K[p+2|0]<<16|K[p+3|0]<<24);H[f|0]=g;H[f+1|0]=g>>>8;H[f+2|0]=g>>>16;H[f+3|0]=g>>>24;H[f+4|0]=h;H[f+5|0]=h>>>8;H[f+6|0]=h>>>16;H[f+7|0]=h>>>24;h=K[p+12|0]|K[p+13|0]<<8|(K[p+14|0]<<16|K[p+15|0]<<24);g=K[p+8|0]|K[p+9|0]<<8|(K[p+10|0]<<16|K[p+11|0]<<24); @@ -2275,1041 +2301,1081 @@ g=K[v+8|0]|K[v+9|0]<<8|(K[v+10|0]<<16|K[v+11|0]<<24);H[f+8|0]=g;H[f+9|0]=g>>>8;H h>>>8;H[f+14|0]=h>>>16;H[f+15|0]=h>>>24;h=K[u+20|0]|K[u+21|0]<<8|(K[u+22|0]<<16|K[u+23|0]<<24);g=K[u+16|0]|K[u+17|0]<<8|(K[u+18|0]<<16|K[u+19|0]<<24);H[f+16|0]=g;H[f+17|0]=g>>>8;H[f+18|0]=g>>>16;H[f+19|0]=g>>>24;H[f+20|0]=h;H[f+21|0]=h>>>8;H[f+22|0]=h>>>16;H[f+23|0]=h>>>24;h=K[u+28|0]|K[u+29|0]<<8|(K[u+30|0]<<16|K[u+31|0]<<24);g=K[u+24|0]|K[u+25|0]<<8|(K[u+26|0]<<16|K[u+27|0]<<24);H[f+24|0]=g;H[f+25|0]=g>>>8;H[f+26|0]=g>>>16;H[f+27|0]=g>>>24;H[f+28|0]=h;H[f+29|0]=h>>>8;H[f+30|0]=h>>>16;H[f+31|0]= h>>>24;h=K[u+36|0]|K[u+37|0]<<8|(K[u+38|0]<<16|K[u+39|0]<<24);g=K[u+32|0]|K[u+33|0]<<8|(K[u+34|0]<<16|K[u+35|0]<<24);H[f+32|0]=g;H[f+33|0]=g>>>8;H[f+34|0]=g>>>16;H[f+35|0]=g>>>24;H[f+36|0]=h;H[f+37|0]=h>>>8;H[f+38|0]=h>>>16;H[f+39|0]=h>>>24;h=K[u+44|0]|K[u+45|0]<<8|(K[u+46|0]<<16|K[u+47|0]<<24);g=K[u+40|0]|K[u+41|0]<<8|(K[u+42|0]<<16|K[u+43|0]<<24);H[f+40|0]=g;H[f+41|0]=g>>>8;H[f+42|0]=g>>>16;H[f+43|0]=g>>>24;H[f+44|0]=h;H[f+45|0]=h>>>8;H[f+46|0]=h>>>16;H[f+47|0]=h>>>24;h=K[u+52|0]|K[u+53|0]<<8|(K[u+ 54|0]<<16|K[u+55|0]<<24);g=K[u+48|0]|K[u+49|0]<<8|(K[u+50|0]<<16|K[u+51|0]<<24);H[f+48|0]=g;H[f+49|0]=g>>>8;H[f+50|0]=g>>>16;H[f+51|0]=g>>>24;H[f+52|0]=h;H[f+53|0]=h>>>8;H[f+54|0]=h>>>16;H[f+55|0]=h>>>24;h=K[u+60|0]|K[u+61|0]<<8|(K[u+62|0]<<16|K[u+63|0]<<24);g=K[u+56|0]|K[u+57|0]<<8|(K[u+58|0]<<16|K[u+59|0]<<24);H[f+56|0]=g;H[f+57|0]=g>>>8;H[f+58|0]=g>>>16;H[f+59|0]=g>>>24;H[f+60|0]=h;H[f+61|0]=h>>>8;H[f+62|0]=h>>>16;H[f+63|0]=h>>>24;D=D+16|0;A=J[a+12>>2];E=E+32|0;if((A|0)>(E|0))continue;break}g= -J[a+16>>2]}G=(A<<6)+G|0;N=N+32|0;if((N|0)<(g|0))continue;break}}l=J[a+12>>2];o=J[a+8>>2];p=J[a+4>>2];c:{d:{if(e){J[695492]=0;Gn(F,p,o,l,32,2);e=J[695492];J[695492]=0;if((e|0)==1)break c;l=J[a+16>>2];if((l|0)<=0)break d;k=J[a+12>>2];if((k|0)<=0)break d;s=k+1|0;e=(k-1>>>1|0)+1|0;o=e&-4;t=e&3;q=0;A=J[i+2060>>2];p=k>>>0<7;while(1){r=0;if(!p)while(1){e=L[A>>1];I[A+2>>1]=e;m=s<<1;I[m+A>>1]=e;n=k<<1;I[n+A>>1]=e;j=L[A+4>>1];I[A+6>>1]=j;e=A+4|0;I[e+m>>1]=j;I[e+n>>1]=j;j=L[A+8>>1];I[A+10>>1]=j;e=A+8|0;I[e+ -m>>1]=j;I[e+n>>1]=j;j=L[A+12>>1];I[A+14>>1]=j;e=A+12|0;I[e+m>>1]=j;I[e+n>>1]=j;A=A+16|0;r=r+4|0;if((o|0)!=(r|0))continue;break}j=0;if(t)while(1){e=L[A>>1];I[A+2>>1]=e;I[(s<<1)+A>>1]=e;I[(k<<1)+A>>1]=e;A=A+4|0;j=j+1|0;if((t|0)!=(j|0))continue;break}A=(k<<1)+A|0;q=q+2|0;if((l|0)>(q|0))continue;break}break d}J[695492]=0;Gn(F,p,o,l,32,1);e=J[695492];J[695492]=0;if((e|0)==1)break c}D=J[a+8>>2];e:{if((D|0)<=0)break e;j=J[a+4>>2];if((j|0)<=0)break e;f=J[i+2060>>2];h=0;while(1){A=0;g=b;if((j|0)>0){while(1){e= -I[(A<<1)+f>>1]+32>>6;e=(e|0)>=127?127:e;H[g|0]=(e|0)<=-128?-128:e;g=d+g|0;A=A+1|0;j=J[a+4>>2];if((A|0)<(j|0))continue;break}D=J[a+8>>2]}b=b+c|0;f=(J[a+12>>2]<<1)+f|0;h=h+1|0;if((h|0)<(D|0))continue;break}}_c(M);bc=i+2064|0;return}a=Z()|0;_c(M);ba(a|0);B()}function Jlb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[a+20>>2])a=0;else{i=J[J[J[a>>2]+16>>2]+40>>2];if(i)a:{d=bc-1760|0;bc=d;H[d+76|0]=0;H[d+84|0]=0;H[d+96|0]=0;I[d+112>>1]=K[791857]|K[791858]<<8;H[d+79|0]=8;H[d+64|0]=0;J[d+56>> -2]=1160593991;J[d+60>>2]=1210925909;H[d+67|0]=8;H[d+91|0]=4;J[d+68>>2]=1160593991;J[d+72>>2]=1445806933;H[d+103|0]=4;J[d+80>>2]=1210925639;J[d+92>>2]=1445806663;a=K[791853]|K[791854]<<8|(K[791855]<<16|K[791856]<<24);J[d+104>>2]=K[791849]|K[791850]<<8|(K[791851]<<16|K[791852]<<24);J[d+108>>2]=a;H[d+127|0]=10;I[d+114>>1]=2560;I[d+124>>1]=K[792337]|K[792338]<<8;H[d+136|0]=K[793291];H[d+148|0]=K[793678];H[d+139|0]=9;H[d+126|0]=0;H[d+151|0]=9;H[d+137|0]=0;H[d+149|0]=0;H[d+163|0]=10;a=K[792333]|K[792334]<< -8|(K[792335]<<16|K[792336]<<24);J[d+116>>2]=K[792329]|K[792330]<<8|(K[792331]<<16|K[792332]<<24);J[d+120>>2]=a;a=K[793287]|K[793288]<<8|(K[793289]<<16|K[793290]<<24);J[d+128>>2]=K[793283]|K[793284]<<8|(K[793285]<<16|K[793286]<<24);J[d+132>>2]=a;a=K[793674]|K[793675]<<8|(K[793676]<<16|K[793677]<<24);J[d+140>>2]=K[793670]|K[793671]<<8|(K[793672]<<16|K[793673]<<24);J[d+144>>2]=a;I[d+160>>1]=K[794802]|K[794803]<<8;I[d+172>>1]=K[795356]|K[795357]<<8;a=K[796482]|K[796483]<<8|(K[796484]<<16|K[796485]<<24); -H[d+179|0]=a;H[d+180|0]=a>>>8;H[d+181|0]=a>>>16;H[d+182|0]=a>>>24;H[d+162|0]=0;H[d+187|0]=7;I[d+174>>1]=2560;H[d+199|0]=7;H[d+183|0]=0;a=K[794798]|K[794799]<<8|(K[794800]<<16|K[794801]<<24);J[d+152>>2]=K[794794]|K[794795]<<8|(K[794796]<<16|K[794797]<<24);J[d+156>>2]=a;a=K[795352]|K[795353]<<8|(K[795354]<<16|K[795355]<<24);J[d+164>>2]=K[795348]|K[795349]<<8|(K[795350]<<16|K[795351]<<24);J[d+168>>2]=a;J[d+176>>2]=K[796479]|K[796480]<<8|(K[796481]<<16|K[796482]<<24);a=K[796971]|K[796972]<<8|(K[796973]<< -16|K[796974]<<24);H[d+191|0]=a;H[d+192|0]=a>>>8;H[d+193|0]=a>>>16;H[d+194|0]=a>>>24;J[d+188>>2]=K[796968]|K[796969]<<8|(K[796970]<<16|K[796971]<<24);H[d+211|0]=5;H[d+195|0]=0;H[d+204|0]=K[798039];J[d+200>>2]=K[798035]|K[798036]<<8|(K[798037]<<16|K[798038]<<24);H[d+223|0]=5;H[d+205|0]=0;H[d+216|0]=K[798439];J[d+212>>2]=K[798435]|K[798436]<<8|(K[798437]<<16|K[798438]<<24);H[d+217|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;b:{c:{if((b|0)==1){a=d+224|0;break c}J[d+228>>2]=11;J[d+232>>2]=-2147483632; -J[d+224>>2]=a;b=K[799401]|K[799402]<<8|(K[799403]<<16|K[799404]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[799398]|K[799399]<<8|(K[799400]<<16|K[799401]<<24);c=K[799394]|K[799395]<<8|(K[799396]<<16|K[799397]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+236|0;break c}J[d+240>>2]=11;J[d+244>>2]=-2147483632;J[d+236>>2]=a;b=K[799941]| -K[799942]<<8|(K[799943]<<16|K[799944]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[799938]|K[799939]<<8|(K[799940]<<16|K[799941]<<24);c=K[799934]|K[799935]<<8|(K[799936]<<16|K[799937]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+248|0;break c}J[d+252>>2]=12;J[d+256>>2]=-2147483632;J[d+248>>2]=a;b=K[800963]|K[800964]<<8|(K[800965]<< -16|K[800966]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[800959]|K[800960]<<8|(K[800961]<<16|K[800962]<<24);c=K[800955]|K[800956]<<8|(K[800957]<<16|K[800958]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+260|0;break c}J[d+264>>2]=12;J[d+268>>2]=-2147483632;J[d+260>>2]=a;b=K[801275]|K[801276]<<8|(K[801277]<<16|K[801278]<<24); -H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[801271]|K[801272]<<8|(K[801273]<<16|K[801274]<<24);c=K[801267]|K[801268]<<8|(K[801269]<<16|K[801270]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+272|0;break c}J[d+276>>2]=12;J[d+280>>2]=-2147483632;J[d+272>>2]=a;b=K[802420]|K[802421]<<8|(K[802422]<<16|K[802423]<<24);H[a+8|0]=b;H[a+9|0]= -b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[802416]|K[802417]<<8|(K[802418]<<16|K[802419]<<24);c=K[802412]|K[802413]<<8|(K[802414]<<16|K[802415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+284|0;break c}J[d+288>>2]=12;J[d+292>>2]=-2147483632;J[d+284>>2]=a;b=K[802823]|K[802824]<<8|(K[802825]<<16|K[802826]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>> -16;H[a+11|0]=b>>>24;b=K[802819]|K[802820]<<8|(K[802821]<<16|K[802822]<<24);c=K[802815]|K[802816]<<8|(K[802817]<<16|K[802818]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+296|0;break c}J[d+300>>2]=13;J[d+304>>2]=-2147483632;J[d+296>>2]=a;b=K[803699]|K[803700]<<8|(K[803701]<<16|K[803702]<<24);c=K[803695]|K[803696]<<8|(K[803697]<<16|K[803698]<<24);H[a+ -5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[803694]|K[803695]<<8|(K[803696]<<16|K[803697]<<24);c=K[803690]|K[803691]<<8|(K[803692]<<16|K[803693]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+308|0;break c}J[d+312>>2]=13;J[d+316>>2]=-2147483632;J[d+308>>2]=a;b=K[804099]|K[804100]<< -8|(K[804101]<<16|K[804102]<<24);c=K[804095]|K[804096]<<8|(K[804097]<<16|K[804098]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[804094]|K[804095]<<8|(K[804096]<<16|K[804097]<<24);c=K[804090]|K[804091]<<8|(K[804092]<<16|K[804093]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a= -d+320|0;break c}J[d+324>>2]=13;J[d+328>>2]=-2147483632;J[d+320>>2]=a;b=K[804515]|K[804516]<<8|(K[804517]<<16|K[804518]<<24);c=K[804511]|K[804512]<<8|(K[804513]<<16|K[804514]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[804510]|K[804511]<<8|(K[804512]<<16|K[804513]<<24);c=K[804506]|K[804507]<<8|(K[804508]<<16|K[804509]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>> -16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+332|0;break c}J[d+336>>2]=13;J[d+340>>2]=-2147483632;J[d+332>>2]=a;b=K[804953]|K[804954]<<8|(K[804955]<<16|K[804956]<<24);c=K[804949]|K[804950]<<8|(K[804951]<<16|K[804952]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[804948]|K[804949]<<8|(K[804950]<<16|K[804951]<<24);c=K[804944]|K[804945]<<8|(K[804946]<<16|K[804947]<<24); -H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;I[d+348>>1]=K[805428]|K[805429]<<8;a=K[805845]|K[805846]<<8;H[d+360|0]=a;H[d+361|0]=a>>>8;H[d+372|0]=0;H[d+384|0]=0;J[d+344>>2]=K[805424]|K[805425]<<8|(K[805426]<<16|K[805427]<<24);H[d+367|0]=6;H[d+350|0]=0;J[d+356>>2]=K[805841]|K[805842]<<8|(K[805843]<<16|K[805844]<<24);H[d+379|0]=4;H[d+362|0]=0;H[d+391|0]=4;J[d+368>>2]=1210922306;H[d+403|0]=10;J[d+380>>2]=1445803330;H[d+ -355|0]=6;I[d+400>>1]=K[807182]|K[807183]<<8;I[d+412>>1]=K[807506]|K[807507]<<8;I[d+424>>1]=K[807841]|K[807842]<<8;I[d+436>>1]=K[808135]|K[808136]<<8;I[d+414>>1]=2560;H[d+402|0]=0;I[d+426>>1]=2560;H[d+439|0]=10;a=K[807178]|K[807179]<<8|(K[807180]<<16|K[807181]<<24);J[d+392>>2]=K[807174]|K[807175]<<8|(K[807176]<<16|K[807177]<<24);J[d+396>>2]=a;a=K[807502]|K[807503]<<8|(K[807504]<<16|K[807505]<<24);J[d+404>>2]=K[807498]|K[807499]<<8|(K[807500]<<16|K[807501]<<24);J[d+408>>2]=a;a=K[807837]|K[807838]<< -8|(K[807839]<<16|K[807840]<<24);J[d+416>>2]=K[807833]|K[807834]<<8|(K[807835]<<16|K[807836]<<24);J[d+420>>2]=a;a=K[808131]|K[808132]<<8|(K[808133]<<16|K[808134]<<24);J[d+428>>2]=K[808127]|K[808128]<<8|(K[808129]<<16|K[808130]<<24);J[d+432>>2]=a;I[d+448>>1]=K[808618]|K[808619]<<8;I[d+460>>1]=K[808983]|K[808984]<<8;I[d+450>>1]=2560;H[d+438|0]=0;I[d+462>>1]=2560;a=K[808614]|K[808615]<<8|(K[808616]<<16|K[808617]<<24);J[d+440>>2]=K[808610]|K[808611]<<8|(K[808612]<<16|K[808613]<<24);J[d+444>>2]=a;a=K[808979]| -K[808980]<<8|(K[808981]<<16|K[808982]<<24);J[d+452>>2]=K[808975]|K[808976]<<8|(K[808977]<<16|K[808978]<<24);J[d+456>>2]=a;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+464|0;break c}J[d+468>>2]=11;J[d+472>>2]=-2147483632;J[d+464>>2]=a;b=K[809313]|K[809314]<<8|(K[809315]<<16|K[809316]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[809310]|K[809311]<<8|(K[809312]<<16|K[809313]<<24);c=K[809306]|K[809307]<<8|(K[809308]<<16|K[809309]<<24);H[a|0]=c;H[a+1|0]=c>>>8; -H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+476|0;break c}J[d+480>>2]=11;J[d+484>>2]=-2147483632;J[d+476>>2]=a;b=K[826526]|K[826527]<<8|(K[826528]<<16|K[826529]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[826523]|K[826524]<<8|(K[826525]<<16|K[826526]<<24);c=K[826519]|K[826520]<<8|(K[826521]<<16|K[826522]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+ -3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+488|0;break c}J[d+492>>2]=11;J[d+496>>2]=-2147483632;J[d+488>>2]=a;b=K[826873]|K[826874]<<8|(K[826875]<<16|K[826876]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[826870]|K[826871]<<8|(K[826872]<<16|K[826873]<<24);c=K[826866]|K[826867]<<8|(K[826868]<<16|K[826869]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]= -b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+500|0;break c}J[d+504>>2]=11;J[d+508>>2]=-2147483632;J[d+500>>2]=a;b=K[809740]|K[809741]<<8|(K[809742]<<16|K[809743]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[809737]|K[809738]<<8|(K[809739]<<16|K[809740]<<24);c=K[809733]|K[809734]<<8|(K[809735]<<16|K[809736]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+ -6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+512|0;break c}J[d+516>>2]=11;J[d+520>>2]=-2147483632;J[d+512>>2]=a;b=K[810159]|K[810160]<<8|(K[810161]<<16|K[810162]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[810156]|K[810157]<<8|(K[810158]<<16|K[810159]<<24);c=K[810152]|K[810153]<<8|(K[810154]<<16|K[810155]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]= -b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+524|0;break c}J[d+528>>2]=11;J[d+532>>2]=-2147483632;J[d+524>>2]=a;b=K[810476]|K[810477]<<8|(K[810478]<<16|K[810479]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[810473]|K[810474]<<8|(K[810475]<<16|K[810476]<<24);c=K[810469]|K[810470]<<8|(K[810471]<<16|K[810472]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0; -H[d+544|0]=K[810849];H[d+556|0]=K[811145];a=K[810845]|K[810846]<<8|(K[810847]<<16|K[810848]<<24);J[d+536>>2]=K[810841]|K[810842]<<8|(K[810843]<<16|K[810844]<<24);J[d+540>>2]=a;H[d+559|0]=9;H[d+545|0]=0;a=K[811141]|K[811142]<<8|(K[811143]<<16|K[811144]<<24);J[d+548>>2]=K[811137]|K[811138]<<8|(K[811139]<<16|K[811140]<<24);J[d+552>>2]=a;H[d+557|0]=0;J[695492]=0;H[d+547|0]=9;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+560|0;break c}J[d+564>>2]=11;J[d+568>>2]=-2147483632;J[d+560>>2]=a;b=K[811525]| -K[811526]<<8|(K[811527]<<16|K[811528]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[811522]|K[811523]<<8|(K[811524]<<16|K[811525]<<24);c=K[811518]|K[811519]<<8|(K[811520]<<16|K[811521]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+572|0;break c}J[d+576>>2]=11;J[d+580>>2]=-2147483632;J[d+572>>2]=a;b=K[811801]|K[811802]<<8|(K[811803]<< -16|K[811804]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[811798]|K[811799]<<8|(K[811800]<<16|K[811801]<<24);c=K[811794]|K[811795]<<8|(K[811796]<<16|K[811797]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;H[d+592|0]=K[812142];H[d+604|0]=K[812378];a=K[812138]|K[812139]<<8|(K[812140]<<16|K[812141]<<24);J[d+584>>2]=K[812134]|K[812135]<<8|(K[812136]<<16|K[812137]<<24);J[d+588>>2]=a;H[d+607|0]=9; -H[d+593|0]=0;a=K[812374]|K[812375]<<8|(K[812376]<<16|K[812377]<<24);J[d+596>>2]=K[812370]|K[812371]<<8|(K[812372]<<16|K[812373]<<24);J[d+600>>2]=a;H[d+619|0]=9;H[d+605|0]=0;H[d+595|0]=9;H[d+616|0]=K[812662];a=K[812658]|K[812659]<<8|(K[812660]<<16|K[812661]<<24);J[d+608>>2]=K[812654]|K[812655]<<8|(K[812656]<<16|K[812657]<<24);J[d+612>>2]=a;H[d+631|0]=9;H[d+617|0]=0;H[d+628|0]=K[813043];a=K[813039]|K[813040]<<8|(K[813041]<<16|K[813042]<<24);J[d+620>>2]=K[813035]|K[813036]<<8|(K[813037]<<16|K[813038]<< -24);J[d+624>>2]=a;H[d+643|0]=6;H[d+629|0]=0;I[d+636>>1]=K[813383]|K[813384]<<8;J[d+632>>2]=K[813379]|K[813380]<<8|(K[813381]<<16|K[813382]<<24);H[d+655|0]=6;H[d+638|0]=0;a=K[813597]|K[813598]<<8;H[d+648|0]=a;H[d+649|0]=a>>>8;J[d+644>>2]=K[813593]|K[813594]<<8|(K[813595]<<16|K[813596]<<24);H[d+667|0]=6;H[d+650|0]=0;I[d+660>>1]=K[813908]|K[813909]<<8;J[d+656>>2]=K[813904]|K[813905]<<8|(K[813906]<<16|K[813907]<<24);H[d+679|0]=6;H[d+662|0]=0;a=K[814084]|K[814085]<<8;H[d+672|0]=a;H[d+673|0]=a>>>8;J[d+ -668>>2]=K[814080]|K[814081]<<8|(K[814082]<<16|K[814083]<<24);H[d+674|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+680|0;break c}J[d+684>>2]=13;J[d+688>>2]=-2147483632;J[d+680>>2]=a;b=K[814305]|K[814306]<<8|(K[814307]<<16|K[814308]<<24);c=K[814301]|K[814302]<<8|(K[814303]<<16|K[814304]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[814300]|K[814301]<<8|(K[814302]<<16|K[814303]<<24);c=K[814296]| -K[814297]<<8|(K[814298]<<16|K[814299]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+692|0;break c}J[d+696>>2]=13;J[d+700>>2]=-2147483632;J[d+692>>2]=a;b=K[814564]|K[814565]<<8|(K[814566]<<16|K[814567]<<24);c=K[814560]|K[814561]<<8|(K[814562]<<16|K[814563]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11| -0]=b>>>16;H[a+12|0]=b>>>24;b=K[814559]|K[814560]<<8|(K[814561]<<16|K[814562]<<24);c=K[814555]|K[814556]<<8|(K[814557]<<16|K[814558]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+704|0;break c}J[d+708>>2]=13;J[d+712>>2]=-2147483632;J[d+704>>2]=a;b=K[814915]|K[814916]<<8|(K[814917]<<16|K[814918]<<24);c=K[814911]|K[814912]<<8|(K[814913]<<16|K[814914]<< -24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[814910]|K[814911]<<8|(K[814912]<<16|K[814913]<<24);c=K[814906]|K[814907]<<8|(K[814908]<<16|K[814909]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+716|0;break c}J[d+720>>2]=13;J[d+724>>2]=-2147483632;J[d+716>>2]=a;b=K[815149]| -K[815150]<<8|(K[815151]<<16|K[815152]<<24);c=K[815145]|K[815146]<<8|(K[815147]<<16|K[815148]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[815144]|K[815145]<<8|(K[815146]<<16|K[815147]<<24);c=K[815140]|K[815141]<<8|(K[815142]<<16|K[815143]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0; -if((b|0)==1){a=d+728|0;break c}J[d+732>>2]=14;J[d+736>>2]=-2147483632;J[d+728>>2]=a;b=K[815403]|K[815404]<<8|(K[815405]<<16|K[815406]<<24);c=K[815399]|K[815400]<<8|(K[815401]<<16|K[815402]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[815397]|K[815398]<<8|(K[815399]<<16|K[815400]<<24);c=K[815393]|K[815394]<<8|(K[815395]<<16|K[815396]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>> -8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+740|0;break c}J[d+744>>2]=14;J[d+748>>2]=-2147483632;J[d+740>>2]=a;b=K[815747]|K[815748]<<8|(K[815749]<<16|K[815750]<<24);c=K[815743]|K[815744]<<8|(K[815745]<<16|K[815746]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[815741]|K[815742]<<8|(K[815743]<<16|K[815744]<<24);c=K[815737]|K[815738]<<8|(K[815739]<<16| -K[815740]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+752|0;break c}J[d+756>>2]=14;J[d+760>>2]=-2147483632;J[d+752>>2]=a;b=K[816009]|K[816010]<<8|(K[816011]<<16|K[816012]<<24);c=K[816005]|K[816006]<<8|(K[816007]<<16|K[816008]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24; -b=K[816003]|K[816004]<<8|(K[816005]<<16|K[816006]<<24);c=K[815999]|K[816E3]<<8|(K[816001]<<16|K[816002]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+764|0;break c}J[d+768>>2]=14;J[d+772>>2]=-2147483632;J[d+764>>2]=a;b=K[816204]|K[816205]<<8|(K[816206]<<16|K[816207]<<24);c=K[816200]|K[816201]<<8|(K[816202]<<16|K[816203]<<24);H[a+6|0]=c;H[a+7|0]=c>>> -8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[816198]|K[816199]<<8|(K[816200]<<16|K[816201]<<24);c=K[816194]|K[816195]<<8|(K[816196]<<16|K[816197]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;H[d+784|0]=0;H[d+796|0]=0;H[d+804|0]=0;H[d+816|0]=0;H[d+799|0]=8;J[d+776>>2]=1160591415;J[d+780>>2]=1210925909;H[d+811|0]=4;J[d+788>>2]=1160591415;J[d+792>>2]=1445806933; -H[d+823|0]=4;J[d+800>>2]=1210923063;H[d+835|0]=9;J[d+812>>2]=1445804087;H[d+787|0]=8;H[d+832|0]=K[817442];H[d+847|0]=9;H[d+833|0]=0;a=K[817438]|K[817439]<<8|(K[817440]<<16|K[817441]<<24);J[d+824>>2]=K[817434]|K[817435]<<8|(K[817436]<<16|K[817437]<<24);J[d+828>>2]=a;H[d+844|0]=K[817699];a=K[817695]|K[817696]<<8|(K[817697]<<16|K[817698]<<24);J[d+836>>2]=K[817691]|K[817692]<<8|(K[817693]<<16|K[817694]<<24);J[d+840>>2]=a;H[d+845|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+848| -0;break c}J[d+852>>2]=11;J[d+856>>2]=-2147483632;J[d+848>>2]=a;b=K[818041]|K[818042]<<8|(K[818043]<<16|K[818044]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[818038]|K[818039]<<8|(K[818040]<<16|K[818041]<<24);c=K[818034]|K[818035]<<8|(K[818036]<<16|K[818037]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+860|0;break c}J[d+864>> -2]=11;J[d+868>>2]=-2147483632;J[d+860>>2]=a;b=K[818239]|K[818240]<<8|(K[818241]<<16|K[818242]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[818236]|K[818237]<<8|(K[818238]<<16|K[818239]<<24);c=K[818232]|K[818233]<<8|(K[818234]<<16|K[818235]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+872|0;break c}J[d+876>>2]=11;J[d+880>>2]=-2147483632; -J[d+872>>2]=a;b=K[818424]|K[818425]<<8|(K[818426]<<16|K[818427]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[818421]|K[818422]<<8|(K[818423]<<16|K[818424]<<24);c=K[818417]|K[818418]<<8|(K[818419]<<16|K[818420]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+884|0;break c}J[d+888>>2]=11;J[d+892>>2]=-2147483632;J[d+884>>2]=a;b=K[818700]| -K[818701]<<8|(K[818702]<<16|K[818703]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[818697]|K[818698]<<8|(K[818699]<<16|K[818700]<<24);c=K[818693]|K[818694]<<8|(K[818695]<<16|K[818696]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+896|0;break c}J[d+900>>2]=11;J[d+904>>2]=-2147483632;J[d+896>>2]=a;b=K[819116]|K[819117]<<8|(K[819118]<< -16|K[819119]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[819113]|K[819114]<<8|(K[819115]<<16|K[819116]<<24);c=K[819109]|K[819110]<<8|(K[819111]<<16|K[819112]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+908|0;break c}J[d+912>>2]=12;J[d+916>>2]=-2147483632;J[d+908>>2]=a;b=K[819378]|K[819379]<<8|(K[819380]<<16|K[819381]<<24);H[a+ -8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[819374]|K[819375]<<8|(K[819376]<<16|K[819377]<<24);c=K[819370]|K[819371]<<8|(K[819372]<<16|K[819373]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+920|0;break c}J[d+924>>2]=12;J[d+928>>2]=-2147483632;J[d+920>>2]=a;b=K[819620]|K[819621]<<8|(K[819622]<<16|K[819623]<<24);H[a+8|0]=b;H[a+9|0]=b>>> -8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[819616]|K[819617]<<8|(K[819618]<<16|K[819619]<<24);c=K[819612]|K[819613]<<8|(K[819614]<<16|K[819615]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+932|0;break c}J[d+936>>2]=11;J[d+940>>2]=-2147483632;J[d+932>>2]=a;b=K[819876]|K[819877]<<8|(K[819878]<<16|K[819879]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16; -H[a+10|0]=b>>>24;b=K[819873]|K[819874]<<8|(K[819875]<<16|K[819876]<<24);c=K[819869]|K[819870]<<8|(K[819871]<<16|K[819872]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+944|0;break c}J[d+948>>2]=11;J[d+952>>2]=-2147483632;J[d+944>>2]=a;b=K[820176]|K[820177]<<8|(K[820178]<<16|K[820179]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b= -K[820173]|K[820174]<<8|(K[820175]<<16|K[820176]<<24);c=K[820169]|K[820170]<<8|(K[820171]<<16|K[820172]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;H[d+960|0]=K[820354];H[d+972|0]=K[820550];J[d+956>>2]=K[820350]|K[820351]<<8|(K[820352]<<16|K[820353]<<24);H[d+979|0]=5;H[d+961|0]=0;J[d+968>>2]=K[820546]|K[820547]<<8|(K[820548]<<16|K[820549]<<24);H[d+991|0]=10;H[d+973|0]=0;H[d+967|0]=5;I[d+988>>1]=K[820752]|K[820753]<< -8;a=K[820748]|K[820749]<<8|(K[820750]<<16|K[820751]<<24);J[d+980>>2]=K[820744]|K[820745]<<8|(K[820746]<<16|K[820747]<<24);J[d+984>>2]=a;H[d+1003|0]=10;H[d+990|0]=0;I[d+1E3>>1]=K[820969]|K[820970]<<8;a=K[820965]|K[820966]<<8|(K[820967]<<16|K[820968]<<24);J[d+992>>2]=K[820961]|K[820962]<<8|(K[820963]<<16|K[820964]<<24);J[d+996>>2]=a;H[d+1015|0]=5;H[d+1002|0]=0;H[d+1008|0]=K[821292];J[d+1004>>2]=K[821288]|K[821289]<<8|(K[821290]<<16|K[821291]<<24);H[d+1027|0]=5;H[d+1009|0]=0;H[d+1020|0]=K[821555];J[d+ -1016>>2]=K[821551]|K[821552]<<8|(K[821553]<<16|K[821554]<<24);H[d+1039|0]=10;H[d+1021|0]=0;I[d+1036>>1]=K[821788]|K[821789]<<8;a=K[821784]|K[821785]<<8|(K[821786]<<16|K[821787]<<24);J[d+1028>>2]=K[821780]|K[821781]<<8|(K[821782]<<16|K[821783]<<24);J[d+1032>>2]=a;H[d+1051|0]=10;H[d+1038|0]=0;I[d+1048>>1]=K[822073]|K[822074]<<8;a=K[822069]|K[822070]<<8|(K[822071]<<16|K[822072]<<24);J[d+1040>>2]=K[822065]|K[822066]<<8|(K[822067]<<16|K[822068]<<24);J[d+1044>>2]=a;H[d+1063|0]=1;H[d+1050|0]=0;H[d+1075| -0]=1;I[d+1052>>1]=72;H[d+1087|0]=5;I[d+1064>>1]=86;H[d+1080|0]=K[822965];J[d+1076>>2]=K[822961]|K[822962]<<8|(K[822963]<<16|K[822964]<<24);H[d+1099|0]=5;H[d+1081|0]=0;H[d+1092|0]=K[823258];J[d+1088>>2]=K[823254]|K[823255]<<8|(K[823256]<<16|K[823257]<<24);H[d+1111|0]=6;H[d+1093|0]=0;a=d+1104|0;b=K[823435]|K[823436]<<8;H[a|0]=b;H[a+1|0]=b>>>8;J[d+1100>>2]=K[823431]|K[823432]<<8|(K[823433]<<16|K[823434]<<24);H[d+1123|0]=6;H[d+1106|0]=0;I[d+1116>>1]=K[823750]|K[823751]<<8;J[d+1112>>2]=K[823746]|K[823747]<< -8|(K[823748]<<16|K[823749]<<24);H[d+1118|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1124|0;break c}b=d+1128|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1124>>2]=a;b=K[823996]|K[823997]<<8|(K[823998]<<16|K[823999]<<24);c=K[823992]|K[823993]<<8|(K[823994]<<16|K[823995]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[823991]|K[823992]<<8|(K[823993]<<16|K[823994]<<24);c=K[823987]|K[823988]<<8|(K[823989]<< -16|K[823990]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1136|0;break c}b=d+1140|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1136>>2]=a;b=K[824253]|K[824254]<<8|(K[824255]<<16|K[824256]<<24);c=K[824249]|K[824250]<<8|(K[824251]<<16|K[824252]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12| -0]=b>>>24;b=K[824248]|K[824249]<<8|(K[824250]<<16|K[824251]<<24);c=K[824244]|K[824245]<<8|(K[824246]<<16|K[824247]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1148|0;break c}b=d+1152|0;J[b>>2]=16;J[b+4>>2]=-2147483616;J[d+1148>>2]=a;b=K[824612]|K[824613]<<8|(K[824614]<<16|K[824615]<<24);c=K[824608]|K[824609]<<8|(K[824610]<<16|K[824611]<<24);H[a+8| -0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[824604]|K[824605]<<8|(K[824606]<<16|K[824607]<<24);c=K[824600]|K[824601]<<8|(K[824602]<<16|K[824603]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+16|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1160|0;break c}b=d+1164|0;J[b>>2]=16;J[b+4>>2]=-2147483616;J[d+1160>>2]=a;b=K[824877]| -K[824878]<<8|(K[824879]<<16|K[824880]<<24);c=K[824873]|K[824874]<<8|(K[824875]<<16|K[824876]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[824869]|K[824870]<<8|(K[824871]<<16|K[824872]<<24);c=K[824865]|K[824866]<<8|(K[824867]<<16|K[824868]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+16|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]= -0;if((b|0)==1){a=d+1172|0;break c}b=d+1176|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1172>>2]=a;b=K[825150]|K[825151]<<8|(K[825152]<<16|K[825153]<<24);c=K[825146]|K[825147]<<8|(K[825148]<<16|K[825149]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[825145]|K[825146]<<8|(K[825147]<<16|K[825148]<<24);c=K[825141]|K[825142]<<8|(K[825143]<<16|K[825144]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+ -5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1184|0;break c}b=d+1188|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1184>>2]=a;b=K[825420]|K[825421]<<8|(K[825422]<<16|K[825423]<<24);c=K[825416]|K[825417]<<8|(K[825418]<<16|K[825419]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[825415]|K[825416]<<8|(K[825417]<<16|K[825418]<<24);c=K[825411]|K[825412]<< -8|(K[825413]<<16|K[825414]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1196|0;break c}b=d+1200|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1196>>2]=a;b=K[825588]|K[825589]<<8|(K[825590]<<16|K[825591]<<24);c=K[825584]|K[825585]<<8|(K[825586]<<16|K[825587]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]= -b>>>16;H[a+13|0]=b>>>24;b=K[825582]|K[825583]<<8|(K[825584]<<16|K[825585]<<24);c=K[825578]|K[825579]<<8|(K[825580]<<16|K[825581]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1208|0;break c}b=d+1212|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1208>>2]=a;b=K[825821]|K[825822]<<8|(K[825823]<<16|K[825824]<<24);c=K[825817]|K[825818]<<8|(K[825819]<<16|K[825820]<< -24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[825815]|K[825816]<<8|(K[825817]<<16|K[825818]<<24);c=K[825811]|K[825812]<<8|(K[825813]<<16|K[825814]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1220|0;break c}b=d+1224|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1220>>2]=a;b= -K[827613]|K[827614]<<8|(K[827615]<<16|K[827616]<<24);c=K[827609]|K[827610]<<8|(K[827611]<<16|K[827612]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[827607]|K[827608]<<8|(K[827609]<<16|K[827610]<<24);c=K[827603]|K[827604]<<8|(K[827605]<<16|K[827606]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]= -0;if((b|0)==1){a=d+1232|0;break c}b=d+1236|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1232>>2]=a;b=K[827796]|K[827797]<<8|(K[827798]<<16|K[827799]<<24);c=K[827792]|K[827793]<<8|(K[827794]<<16|K[827795]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[827790]|K[827791]<<8|(K[827792]<<16|K[827793]<<24);c=K[827786]|K[827787]<<8|(K[827788]<<16|K[827789]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+ -5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1244|0;break c}b=d+1248|0;J[b>>2]=17;J[b+4>>2]=-2147483616;J[d+1244>>2]=a;H[a+16|0]=K[827978];b=K[827974]|K[827975]<<8|(K[827976]<<16|K[827977]<<24);c=K[827970]|K[827971]<<8|(K[827972]<<16|K[827973]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[827966]|K[827967]<<8|(K[827968]<<16|K[827969]<<24); -c=K[827962]|K[827963]<<8|(K[827964]<<16|K[827965]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+17|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1256|0;break c}b=d+1260|0;J[b>>2]=17;J[b+4>>2]=-2147483616;J[d+1256>>2]=a;H[a+16|0]=K[828132];b=K[828128]|K[828129]<<8|(K[828130]<<16|K[828131]<<24);c=K[828124]|K[828125]<<8|(K[828126]<<16|K[828127]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]= -c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[828120]|K[828121]<<8|(K[828122]<<16|K[828123]<<24);c=K[828116]|K[828117]<<8|(K[828118]<<16|K[828119]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+17|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1268|0;break c}b=d+1272|0;J[b>>2]=18;J[b+4>>2]=-2147483616;J[d+1268>>2]=a;b=K[828310]|K[828311]<<8;H[a+16|0]=b;H[a+17|0]=b>>>8;b=K[828306]| -K[828307]<<8|(K[828308]<<16|K[828309]<<24);c=K[828302]|K[828303]<<8|(K[828304]<<16|K[828305]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[828298]|K[828299]<<8|(K[828300]<<16|K[828301]<<24);c=K[828294]|K[828295]<<8|(K[828296]<<16|K[828297]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+18|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]= -0;if((b|0)==1){a=d+1280|0;break c}b=d+1284|0;J[b>>2]=18;J[b+4>>2]=-2147483616;J[d+1280>>2]=a;b=K[828506]|K[828507]<<8;H[a+16|0]=b;H[a+17|0]=b>>>8;b=K[828502]|K[828503]<<8|(K[828504]<<16|K[828505]<<24);c=K[828498]|K[828499]<<8|(K[828500]<<16|K[828501]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[828494]|K[828495]<<8|(K[828496]<<16|K[828497]<<24);c=K[828490]|K[828491]<<8|(K[828492]<<16|K[828493]<<24);H[a|0]=c;H[a+ -1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+18|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1292|0;break c}b=d+1296|0;J[b>>2]=18;J[b+4>>2]=-2147483616;J[d+1292>>2]=a;b=K[828693]|K[828694]<<8;H[a+16|0]=b;H[a+17|0]=b>>>8;b=K[828689]|K[828690]<<8|(K[828691]<<16|K[828692]<<24);c=K[828685]|K[828686]<<8|(K[828687]<<16|K[828688]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>> -8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[828681]|K[828682]<<8|(K[828683]<<16|K[828684]<<24);c=K[828677]|K[828678]<<8|(K[828679]<<16|K[828680]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+18|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1304|0;break c}b=d+1308|0;J[b>>2]=18;J[b+4>>2]=-2147483616;J[d+1304>>2]=a;b=K[828854]|K[828855]<<8;H[a+16|0]=b;H[a+17|0]=b>>>8;b=K[828850]|K[828851]<<8|(K[828852]<< -16|K[828853]<<24);c=K[828846]|K[828847]<<8|(K[828848]<<16|K[828849]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[828842]|K[828843]<<8|(K[828844]<<16|K[828845]<<24);c=K[828838]|K[828839]<<8|(K[828840]<<16|K[828841]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+18|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1316| -0;break c}b=d+1320|0;J[b>>2]=16;J[b+4>>2]=-2147483616;J[d+1316>>2]=a;b=K[829025]|K[829026]<<8|(K[829027]<<16|K[829028]<<24);c=K[829021]|K[829022]<<8|(K[829023]<<16|K[829024]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[829017]|K[829018]<<8|(K[829019]<<16|K[829020]<<24);c=K[829013]|K[829014]<<8|(K[829015]<<16|K[829016]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]= -b>>>16;H[a+7|0]=b>>>24;H[a+16|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1328|0;break c}b=d+1332|0;J[b>>2]=19;J[b+4>>2]=-2147483616;J[d+1328>>2]=a;b=K[829170]|K[829171]<<8|(K[829172]<<16|K[829173]<<24);H[a+15|0]=b;H[a+16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[829167]|K[829168]<<8|(K[829169]<<16|K[829170]<<24);c=K[829163]|K[829164]<<8|(K[829165]<<16|K[829166]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>> -16;H[a+15|0]=b>>>24;b=K[829159]|K[829160]<<8|(K[829161]<<16|K[829162]<<24);c=K[829155]|K[829156]<<8|(K[829157]<<16|K[829158]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+19|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1340|0;break c}b=d+1344|0;J[b>>2]=16;J[b+4>>2]=-2147483616;J[d+1340>>2]=a;b=K[829315]|K[829316]<<8|(K[829317]<<16|K[829318]<<24);c=K[829311]|K[829312]<<8|(K[829313]<<16|K[829314]<< -24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[829307]|K[829308]<<8|(K[829309]<<16|K[829310]<<24);c=K[829303]|K[829304]<<8|(K[829305]<<16|K[829306]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+16|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1352|0;break c}b=d+1356|0;J[b>>2]=19;J[b+4>>2]=-2147483616;J[d+1352>>2]=a; -b=K[829463]|K[829464]<<8|(K[829465]<<16|K[829466]<<24);H[a+15|0]=b;H[a+16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[829460]|K[829461]<<8|(K[829462]<<16|K[829463]<<24);c=K[829456]|K[829457]<<8|(K[829458]<<16|K[829459]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[829452]|K[829453]<<8|(K[829454]<<16|K[829455]<<24);c=K[829448]|K[829449]<<8|(K[829450]<<16|K[829451]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+ -3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+19|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1364|0;break c}b=d+1368|0;J[b>>2]=19;J[b+4>>2]=-2147483616;J[d+1364>>2]=a;b=K[829625]|K[829626]<<8|(K[829627]<<16|K[829628]<<24);H[a+15|0]=b;H[a+16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[829622]|K[829623]<<8|(K[829624]<<16|K[829625]<<24);c=K[829618]|K[829619]<<8|(K[829620]<<16|K[829621]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]= -c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[829614]|K[829615]<<8|(K[829616]<<16|K[829617]<<24);c=K[829610]|K[829611]<<8|(K[829612]<<16|K[829613]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+19|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1376|0;break c}b=d+1380|0;J[b>>2]=23;J[b+4>>2]=-2147483616;J[d+1376>>2]=a;b=K[829747]|K[829748]<<8|(K[829749]<<16|K[829750]<<24);c= -K[829743]|K[829744]<<8|(K[829745]<<16|K[829746]<<24);H[a+15|0]=c;H[a+16|0]=c>>>8;H[a+17|0]=c>>>16;H[a+18|0]=c>>>24;H[a+19|0]=b;H[a+20|0]=b>>>8;H[a+21|0]=b>>>16;H[a+22|0]=b>>>24;b=K[829740]|K[829741]<<8|(K[829742]<<16|K[829743]<<24);c=K[829736]|K[829737]<<8|(K[829738]<<16|K[829739]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[829732]|K[829733]<<8|(K[829734]<<16|K[829735]<<24);c=K[829728]|K[829729]<<8|(K[829730]<< -16|K[829731]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+23|0]=0;J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1388|0;break c}b=d+1392|0;J[b>>2]=23;J[b+4>>2]=-2147483616;J[d+1388>>2]=a;b=K[829914]|K[829915]<<8|(K[829916]<<16|K[829917]<<24);c=K[829910]|K[829911]<<8|(K[829912]<<16|K[829913]<<24);H[a+15|0]=c;H[a+16|0]=c>>>8;H[a+17|0]=c>>>16;H[a+18|0]=c>>>24;H[a+19|0]=b;H[a+20|0]=b>>>8;H[a+21|0]=b>>>16;H[a+ -22|0]=b>>>24;b=K[829907]|K[829908]<<8|(K[829909]<<16|K[829910]<<24);c=K[829903]|K[829904]<<8|(K[829905]<<16|K[829906]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[829899]|K[829900]<<8|(K[829901]<<16|K[829902]<<24);c=K[829895]|K[829896]<<8|(K[829897]<<16|K[829898]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+23|0]=0;H[d+1408|0]=K[829997]; -H[d+1432|0]=0;H[d+1444|0]=0;a=K[829993]|K[829994]<<8|(K[829995]<<16|K[829996]<<24);J[d+1400>>2]=K[829989]|K[829990]<<8|(K[829991]<<16|K[829992]<<24);J[d+1404>>2]=a;H[d+1423|0]=7;H[d+1409|0]=0;H[d+1411|0]=9;a=d+1415|0;b=K[830071]|K[830072]<<8|(K[830073]<<16|K[830074]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;H[d+1435|0]=8;H[d+1419|0]=0;H[d+1447|0]=8;J[d+1424>>2]=1634888008;J[d+1428>>2]=1634623847;H[d+1459|0]=5;J[d+1436>>2]=1635017035;J[d+1440>>2]=1634623851;J[d+1412>>2]=K[830068]| -K[830069]<<8|(K[830070]<<16|K[830071]<<24);H[d+1452|0]=K[830471];J[d+1448>>2]=K[830467]|K[830468]<<8|(K[830469]<<16|K[830470]<<24);H[d+1471|0]=9;H[d+1453|0]=0;H[d+1468|0]=K[830684];a=K[830680]|K[830681]<<8|(K[830682]<<16|K[830683]<<24);J[d+1460>>2]=K[830676]|K[830677]<<8|(K[830678]<<16|K[830679]<<24);J[d+1464>>2]=a;H[d+1483|0]=9;H[d+1469|0]=0;H[d+1480|0]=K[830832];a=K[830828]|K[830829]<<8|(K[830830]<<16|K[830831]<<24);J[d+1472>>2]=K[830824]|K[830825]<<8|(K[830826]<<16|K[830827]<<24);J[d+1476>>2]= -a;H[d+1495|0]=5;H[d+1481|0]=0;H[d+1488|0]=K[830998];J[d+1484>>2]=K[830994]|K[830995]<<8|(K[830996]<<16|K[830997]<<24);H[d+1507|0]=5;H[d+1489|0]=0;H[d+1500|0]=K[831162];J[d+1496>>2]=K[831158]|K[831159]<<8|(K[831160]<<16|K[831161]<<24);H[d+1501|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1508|0;break c}b=d+1512|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1508>>2]=a;b=K[831303]|K[831304]<<8|(K[831305]<<16|K[831306]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24; -b=K[831300]|K[831301]<<8|(K[831302]<<16|K[831303]<<24);c=K[831296]|K[831297]<<8|(K[831298]<<16|K[831299]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1520|0;break c}b=d+1524|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1520>>2]=a;b=K[831489]|K[831490]<<8|(K[831491]<<16|K[831492]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[831486]| -K[831487]<<8|(K[831488]<<16|K[831489]<<24);c=K[831482]|K[831483]<<8|(K[831484]<<16|K[831485]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1532|0;break c}b=d+1536|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1532>>2]=a;b=K[831643]|K[831644]<<8|(K[831645]<<16|K[831646]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[831640]|K[831641]<<8| -(K[831642]<<16|K[831643]<<24);c=K[831636]|K[831637]<<8|(K[831638]<<16|K[831639]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1544|0;break c}b=d+1548|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1544>>2]=a;b=K[831801]|K[831802]<<8|(K[831803]<<16|K[831804]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[831798]|K[831799]<<8|(K[831800]<< -16|K[831801]<<24);c=K[831794]|K[831795]<<8|(K[831796]<<16|K[831797]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1556|0;break c}b=d+1560|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1556>>2]=a;b=K[831967]|K[831968]<<8|(K[831969]<<16|K[831970]<<24);c=K[831963]|K[831964]<<8|(K[831965]<<16|K[831966]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>> -24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[831961]|K[831962]<<8|(K[831963]<<16|K[831964]<<24);c=K[831957]|K[831958]<<8|(K[831959]<<16|K[831960]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1568|0;break c}b=d+1572|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1568>>2]=a;b=K[832062]|K[832063]<<8|(K[832064]<<16|K[832065]<<24);c=K[832058]| -K[832059]<<8|(K[832060]<<16|K[832061]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[832056]|K[832057]<<8|(K[832058]<<16|K[832059]<<24);c=K[832052]|K[832053]<<8|(K[832054]<<16|K[832055]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1580|0;break c}b=d+1584|0;J[b>>2]=11; -J[b+4>>2]=-2147483632;J[d+1580>>2]=a;b=K[832165]|K[832166]<<8|(K[832167]<<16|K[832168]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[832162]|K[832163]<<8|(K[832164]<<16|K[832165]<<24);c=K[832158]|K[832159]<<8|(K[832160]<<16|K[832161]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1592|0;break c}b=d+1596|0;J[b>>2]=11;J[b+4>>2]=-2147483632; -J[d+1592>>2]=a;b=K[832359]|K[832360]<<8|(K[832361]<<16|K[832362]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[832356]|K[832357]<<8|(K[832358]<<16|K[832359]<<24);c=K[832352]|K[832353]<<8|(K[832354]<<16|K[832355]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1604|0;break c}b=d+1608|0;J[b>>2]=12;J[b+4>>2]=-2147483632;J[d+1604>>2]= -a;b=K[832505]|K[832506]<<8|(K[832507]<<16|K[832508]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[832501]|K[832502]<<8|(K[832503]<<16|K[832504]<<24);c=K[832497]|K[832498]<<8|(K[832499]<<16|K[832500]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1616|0;break c}b=d+1620|0;J[b>>2]=12;J[b+4>>2]=-2147483632;J[d+1616>>2]=a;b=K[832588]| -K[832589]<<8|(K[832590]<<16|K[832591]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[832584]|K[832585]<<8|(K[832586]<<16|K[832587]<<24);c=K[832580]|K[832581]<<8|(K[832582]<<16|K[832583]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1628|0;break c}b=d+1632|0;J[b>>2]=12;J[b+4>>2]=-2147483632;J[d+1628>>2]=a;b=K[832792]|K[832793]<< -8|(K[832794]<<16|K[832795]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[832788]|K[832789]<<8|(K[832790]<<16|K[832791]<<24);c=K[832784]|K[832785]<<8|(K[832786]<<16|K[832787]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1640|0;break c}b=d+1644|0;J[b>>2]=12;J[b+4>>2]=-2147483632;J[d+1640>>2]=a;b=K[832886]|K[832887]<<8|(K[832888]<< -16|K[832889]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[832882]|K[832883]<<8|(K[832884]<<16|K[832885]<<24);c=K[832878]|K[832879]<<8|(K[832880]<<16|K[832881]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1652|0;break c}b=d+1656|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1652>>2]=a;b=K[832987]|K[832988]<<8|(K[832989]<<16|K[832990]<< -24);c=K[832983]|K[832984]<<8|(K[832985]<<16|K[832986]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[832982]|K[832983]<<8|(K[832984]<<16|K[832985]<<24);c=K[832978]|K[832979]<<8|(K[832980]<<16|K[832981]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1664|0;break c}b=d+1668| -0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1664>>2]=a;b=K[833089]|K[833090]<<8|(K[833091]<<16|K[833092]<<24);c=K[833085]|K[833086]<<8|(K[833087]<<16|K[833088]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[833084]|K[833085]<<8|(K[833086]<<16|K[833087]<<24);c=K[833080]|K[833081]<<8|(K[833082]<<16|K[833083]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24; -H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1676|0;break c}b=d+1680|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1676>>2]=a;b=K[833213]|K[833214]<<8|(K[833215]<<16|K[833216]<<24);c=K[833209]|K[833210]<<8|(K[833211]<<16|K[833212]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[833208]|K[833209]<<8|(K[833210]<<16|K[833211]<<24);c=K[833204]|K[833205]<<8|(K[833206]<<16|K[833207]<<24);H[a|0]=c;H[a+ -1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1688|0;break c}b=d+1692|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1688>>2]=a;b=K[833330]|K[833331]<<8|(K[833332]<<16|K[833333]<<24);c=K[833326]|K[833327]<<8|(K[833328]<<16|K[833329]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[833325]|K[833326]<< -8|(K[833327]<<16|K[833328]<<24);c=K[833321]|K[833322]<<8|(K[833323]<<16|K[833324]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1700|0;break c}b=d+1704|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1700>>2]=a;b=K[833427]|K[833428]<<8|(K[833429]<<16|K[833430]<<24);c=K[833423]|K[833424]<<8|(K[833425]<<16|K[833426]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>> -16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[833422]|K[833423]<<8|(K[833424]<<16|K[833425]<<24);c=K[833418]|K[833419]<<8|(K[833420]<<16|K[833421]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1712|0;break c}b=d+1716|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1712>>2]=a;b=K[833540]|K[833541]<<8|(K[833542]<<16|K[833543]<< -24);c=K[833536]|K[833537]<<8|(K[833538]<<16|K[833539]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[833534]|K[833535]<<8|(K[833536]<<16|K[833537]<<24);c=K[833530]|K[833531]<<8|(K[833532]<<16|K[833533]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=d+1724|0;break c}b=d+1728| -0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1724>>2]=a;b=K[833605]|K[833606]<<8|(K[833607]<<16|K[833608]<<24);c=K[833601]|K[833602]<<8|(K[833603]<<16|K[833604]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[833599]|K[833600]<<8|(K[833601]<<16|K[833602]<<24);c=K[833595]|K[833596]<<8|(K[833597]<<16|K[833598]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>> -24;H[a+14|0]=0;J[d+1744>>2]=140;J[695492]=0;J[d+1740>>2]=d+56;a=J[d+1744>>2];J[d>>2]=J[d+1740>>2];J[d+4>>2]=a;c=aa(3311,d+1748|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=d+1736|0;while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>>2]);a=b;if((a|0)!=(d+56|0))continue;break}d:{a=J[i>>2];e:{if(!a)break e;a=J[a+28>>2];if(!a)break e;J[d+52>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;f:{g:{j=J[a+20>>2];if((j|0)>0){a=1;while(1){b=J[J[i>>2]+28>>2];J[695492]=0;b=aa(3280,b|0,a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d; -h:{e=J[b+12>>2];if(J[e+280>>2]!=7)break h;e=J[e+288>>2];if(!e)break h;J[695492]=0;e=ha(3512,e|0,c|0,0,d+44|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){if(!e)break h;g=1;break f}break d}J[d+56>>2]=13;e=J[b+4>>2];J[695492]=0;b=ha(3207,b+16|0,e|0,d+56|0,0)|0;e=J[695492];J[695492]=0;i:{if((e|0)!=1){j:{if(J[b>>2]!=6)break j;b=0;e=J[J[d+64>>2]+12>>2];if((e|0)<=0)break j;while(1){J[d+24>>2]=13;J[695492]=0;f=d+24|0;h=ha(3283,J[d+64>>2],b|0,f|0,0)|0;k=J[695492];J[695492]=0;k:{l:{if((k|0)!=1){if(J[h>>2]==7)break l; -J[695492]=0;_(3205,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break k}break d}J[d+8>>2]=13;J[695492]=0;f=d+8|0;h=ha(3203,J[d+32>>2],833709,f|0,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break d;m:{if(J[h>>2]!=7)break m;J[695492]=0;h=ha(3512,J[d+16>>2],c|0,0,d+44|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break d;if(!h)break m;J[695492]=0;_(3205,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;break g}J[695492]=0;_(3205,d+8|0);f=J[695492];J[695492]=0;if((f|0)==1)break d;J[695492]=0;f=d+24|0;h=ga(3513,f| -0,c|0,d+44|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break d;if(h)break g;J[695492]=0;_(3205,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break d}b=b+1|0;if((e|0)!=(b|0))continue;break}}J[695492]=0;_(3205,d+56|0);b=J[695492];J[695492]=0;if((b|0)!=1)break i}break d}b=(a|0)==(j|0);a=a+1|0;if(!b)continue;break}a=J[J[i>>2]+28>>2]}a=J[a+132>>2];if(!a)break f;J[d+56>>2]=13;b=J[a+16>>2];J[695492]=0;e=b;b=d+56|0;j=ha(3203,e|0,833709,b|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;n:{if(J[j>>2]!=7)break n; -J[695492]=0;j=ha(3512,J[d+64>>2],c|0,0,d+44|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;if(!j)break n;J[695492]=0;_(3205,b|0);a=J[695492];J[695492]=0;g=1;if((a|0)!=1)break f;break d}J[695492]=0;_(3205,d+56|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;j=J[J[a+32>>2]+8>>2];b=J[695492];J[695492]=0;o:{if((b|0)!=1){if((j|0)>0)break o;break f}break d}b=0;while(1){J[695492]=0;g=J[J[J[a+32>>2]>>2]+(b<<2)>>2];e=J[695492];J[695492]=0;if((e|0)==1)break d;J[695492]=0;e=d+56|0;f=aa(3514,g|0, -e|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;p:{if(J[f>>2]!=7)break p;J[695492]=0;f=ha(3512,J[d+64>>2],c|0,0,d+44|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;if(!f)break p;J[695492]=0;_(3205,e|0);a=J[695492];J[695492]=0;g=1;if((a|0)!=1)break f;break d}J[695492]=0;_(3205,d+56|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;J[d+24>>2]=13;J[695492]=0;J[d+8>>2]=13;e=g;g=d+24|0;aa(3289,e|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[J[i>>2]+24>>2];J[695492]=0;f=e;e=d+8|0;ha(3207,g| -0,f|0,e|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;J[695492]=0;_(3205,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break d;J[695492]=0;g=ga(3513,e|0,c|0,d+44|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;J[695492]=0;_(3205,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;b=b+1|0;if(((j|0)==(b|0)|g)!=1)continue;break}break f}J[695492]=0;_(3205,d+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;_(3205,d+56|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;g=1}a=J[d+44>>2];if(!a)break e; -J[d+48>>2]=a;qc(a)}i=J[c>>2];if(i){a=J[c+4>>2];b=i;if((a|0)!=(b|0)){while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>>2]);a=b;if((i|0)!=(a|0))continue;break}b=J[c>>2]}J[c+4>>2]=i;qc(b)}bc=d+1760|0;a=g;break a}g=Z()|0;a=J[d+44>>2];if(a){J[d+48>>2]=a;qc(a)}sg(c);break b}a=d+1736|0;g=Z()|0;while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>>2]);a=b;if((a|0)!=(d+56|0))continue;break}break b}g=Z()|0;while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>>2]);a=b;if((a|0)!=(d+56|0))continue;break}}ba(g|0);B()}else a=0}return a|0}function Gmb(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;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=Q(0),A=0,C=Q(0),D=0,E=0,F=0,G=0,I=0,S=0,T=Q(0),U=0,V=0,W=0,X=0,Y=0,ca=0,ea=0,fa=Q(0),ha=0,ia=0,ja=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0;c=bc-96|0;bc=c;a:{b:{if(!b)break b;l=uh(d,e,32);J[c+72>>2]=l;if(!l)break b;if(!((e|0)<=0|(d|0)<=0)){j=g?0:2;k=g?2:0;while(1){g=0;while(1){o=K[b+k|0];p=K[b+1|0];u=K[b+j|0];n=bc-16|0;bc=n;h=!l;c:{if(h)break c;xf(l,n+12|0,n+8| -0,n+4|0);if(J[n+4>>2]!=32|(g|0)<0|((i|0)<0|J[n+12>>2]<=(g|0)))break c;if(J[n+8>>2]<=(i|0))break c;h=h?-1:J[l+12>>2];J[((P(h,i)<<2)+(l?J[l+40>>2]:0)|0)+(g<<2)>>2]=p<<16|o<<24|u<<8}bc=n+16|0;b=b+3|0;g=g+1|0;if((g|0)!=(d|0))continue;break}i=i+1|0;if((i|0)!=(e|0))continue;break}}b=0;z=Q(O[a+8>>3]);d=!K[a+1|0];e=K[a+3|0]?10:-1;n=rc(112);J[n+52>>2]=0;J[n+56>>2]=0;J[n+100>>2]=0;J[n+104>>2]=0;J[n+96>>2]=e;H[n+88|0]=(e|0)>=0;J[n+16>>2]=0;J[n+20>>2]=-1;H[n+13|0]=!d;H[n+12|0]=d;J[n+8>>2]=0;J[n+4>>2]=0;d=n+40| -0;J[d>>2]=0;J[d+4>>2]=0;J[n+24>>2]=n+28;J[n+28>>2]=0;J[n+32>>2]=0;e=n+80|0;J[e>>2]=0;J[e+4>>2]=0;J[n+36>>2]=d;J[n+60>>2]=0;J[n+64>>2]=0;J[n+68>>2]=0;J[n+72>>2]=0;J[n+108>>2]=0;J[n+76>>2]=e;J[n+92>>2]=0;d=0;E=+z;d:{if(E<.4|E>.98)break d;g=0;e=bd(1,112);if(e){J[e+8>>2]=0;J[e+4>>2]=1;ta=e,ua=sn(0),J[ta+28>>2]=ua;i=bd(1,16);e:{if(!i)break e;J[i+4>>2]=20;h=bd(20,4);J[i+8>>2]=h;if(!h)break e;ta=i,ua=Tp(20),J[ta+12>>2]=ua;g=i}J[e+68>>2]=g;ta=e,ua=Fk(0),J[ta+72>>2]=ua;ta=e,ua=Fk(0),J[ta+76>>2]=ua;ta=e,ua= -sn(0),J[ta+84>>2]=ua;ta=e,ua=sn(0),J[ta+48>>2]=ua;ta=e,ua=Dr(0),J[ta+88>>2]=ua;ta=e,ua=Dr(0),J[ta+92>>2]=ua;ta=e,ua=sn(0),J[ta+96>>2]=ua;ta=e,ua=sn(0),J[ta+100>>2]=ua;ta=e,ua=Dr(0),J[ta+104>>2]=ua}else e=0;if(!e)break d;N[e+44>>2]=.5;N[e+40>>2]=z;J[e+16>>2]=9999;J[e+12>>2]=9999;d=bd(1,12);if(d)f:{g=bd(5507,4);J[d+8>>2]=g;if(!g){qc(d);d=0;break f}J[d+4>>2]=4;J[d>>2]=5507}else d=0;J[e+64>>2]=0;J[e+80>>2]=d;d=e}J[n>>2]=d;d=Hk(l,3);J[c+68>>2]=d;wd(c+72|0);if(!d){ED(n);break a}J[c+64>>2]=0;b=J[c+68>>2]; -d=J[b+8>>2];g:{if(d>>>0>=2){J[c+48>>2]=0;h:{if(d>>>0>=9){d=0;i=0;k=bc-16|0;bc=k;e=!b;i:{if(e|((e?-1:J[b+8>>2])|0)!=32)break i;xf(b,k+12|0,k+8|0,0);g=b?J[b+40>>2]:0;h=b?J[b+12>>2]:-1;e=uh(J[k+12>>2],J[k+8>>2],8);if(!e)break i;l=h;if(!(!e|!b|(b|0)==(e|0))){J[e+20>>2]=J[b+20>>2];J[e+24>>2]=J[b+24>>2]}m=e?J[e+40>>2]:0;j=e?J[e+12>>2]:-1;b=J[k+8>>2];j:{if((b|0)<=0)break j;h=J[k+12>>2];if((h|0)<=0)break j;while(1){if((h|0)>0){o=m+(P(i,j)<<2)|0;b=g+(P(i,l)<<2)|0;d=0;while(1){H[d+o^3]=L[b+2>>1];b=b+4|0;d= -d+1|0;h=J[k+12>>2];if((d|0)<(h|0))continue;break}b=J[k+8>>2]}i=i+1|0;if((i|0)<(b|0))continue;break}}d=e}bc=k+16|0;b=d;J[c+48>>2]=b;if(b)break h;wd(c+72|0);ED(n);break b}if(b)J[b+16>>2]=J[b+16>>2]+1;J[c+48>>2]=b}k:{if(K[a+4|0]){j=J[a+16>>2];e=0;l=bc-16|0;bc=l;d=!b;l:{if(d|(((d?-1:J[b+8>>2])|0)!=8|j>>>0>256))break l;xf(b,l+12|0,l+8|0,0);p=J[l+8>>2];d=J[l+12>>2];g=b?J[b+40>>2]:0;i=b?J[b+12>>2]:-1;k=d<<1;o=(k+3|0)/4|0;m=bd(o<<1,4);if(!m)break l;d=uh(k,p<<1,1);if(!d)break l;h=g;g=i;u=p-1|0;if(!(!d|!b| -(b|0)==(d|0))){J[d+20>>2]=J[b+20>>2];J[d+24>>2]=J[b+24>>2]}mu(d,Q(2),Q(2));b=d?J[d+12>>2]:-1;i=d?J[d+40>>2]:0;if((p|0)>=2){p=b<<1;t=m+(o<<2)|0;while(1){m7(m,o,h+(P(e,g)<<2)|0,J[l+12>>2],g,0);r=i+(P(e,p)<<2)|0;Gk(r,k,m,8,j);Gk(r+(b<<2)|0,k,t,8,j);e=e+1|0;if((u|0)!=(e|0))continue;break}}m7(m,o,h+(P(g,u)<<2)|0,J[l+12>>2],g,1);e=i+(P(b,u)<<3)|0;Gk(e,k,m,8,j);Gk(e+(b<<2)|0,k,m+(o<<2)|0,8,j);qc(m);e=d}bc=l+16|0;J[c+64>>2]=e;break k}d=J[a+16>>2];if(K[a+5|0]){g=0;p=bc-16|0;bc=p;e=!b;m:{if(e|(((e?-1:J[b+8>> -2])|0)!=8|d>>>0>256))break m;xf(b,p+12|0,p+8|0,0);m=J[p+8>>2];e=J[p+12>>2];i=b?J[b+40>>2]:0;h=b?J[b+12>>2]:-1;k=e<<2;o=(k|3)/4|0;j=bd(o<<2,4);if(!j)break m;e=uh(k,m<<2,1);if(!e)break m;l=i;i=h;t=m-1|0;if(!(!e|!b|(b|0)==(e|0))){J[e+20>>2]=J[b+20>>2];J[e+24>>2]=J[b+24>>2]}mu(e,Q(4),Q(4));b=e?J[e+12>>2]:-1;h=e?J[e+40>>2]:0;n:{if((m|0)<=1){x=P(o,3);m=P(b,3);s=o<<1;u=b<<1;break n}m=P(b,3);s=o<<1;u=b<<1;D=b<<2;y=j+(o<<3)|0;q=j+(o<<2)|0;x=P(o,3);A=j+(x<<2)|0;while(1){l7(j,o,l+(P(g,i)<<2)|0,J[p+12>>2],i, -0);r=h+(P(g,D)<<2)|0;Gk(r,k,j,8,d);Gk(r+D|0,k,q,8,d);Gk(r+(u<<2)|0,k,y,8,d);Gk(r+(m<<2)|0,k,A,8,d);g=g+1|0;if((t|0)!=(g|0))continue;break}}l7(j,o,l+(P(i,t)<<2)|0,J[p+12>>2],i,1);g=h+(P(b,t)<<4)|0;Gk(g,k,j,8,d);Gk(g+(b<<2)|0,k,j+(o<<2)|0,8,d);Gk(g+(u<<2)|0,k,j+(s<<2)|0,8,d);Gk(g+(m<<2)|0,k,j+(x<<2)|0,8,d);qc(j);g=e}bc=p+16|0;J[c+64>>2]=g;break k}g=0;k=bc-16|0;bc=k;o:{if(!b)break o;xf(b,k+8|0,k+4|0,k+12|0);p:{e=J[k+12>>2];switch(e-4|0){case 0:case 4:break p;default:break o}}if((e|0)==8&d>>>0>=257|((e| -0)==4&d>>>0>=17|(d|0)<0))break o;i=uh(J[k+8>>2],J[k+4>>2],1);if(!i)break o;if(!(!i|!b|(b|0)==(i|0))){J[i+20>>2]=J[b+20>>2];J[i+24>>2]=J[b+24>>2]}h=i?J[i+40>>2]:0;l=i?J[i+12>>2]:-1;j=Hk(b,1);J[k>>2]=j;m=j?J[j+40>>2]:0;j=j?J[j+12>>2]:-1;e=J[k+12>>2];if(!(!(b?J[b+36>>2]:0)|(e|0)!=4)){e=8;J[k+12>>2]=8;d=d<<4}b=J[k+8>>2];o=J[k+4>>2];if((o|0)>0)while(1){Gk(h+(P(g,l)<<2)|0,b,m+(P(g,j)<<2)|0,e,d);g=g+1|0;if((o|0)!=(g|0))continue;break}wd(k);g=i}bc=k+16|0;J[c+64>>2]=g}wd(c+48|0);break g}if(b)J[b+16>>2]=J[b+ -16>>2]+1;J[c+64>>2]=b}d=K[a+43|0];b=d<<24>>24<0;if(b?J[a+36>>2]:d)z7(b?J[a+32>>2]:a+32|0,J[c+64>>2]);q:{if(!K[a+6|0])break q;j=J[c+68>>2];if(M[j+8>>2]<2)break q;A=J[c+64>>2];J[c+48>>2]=A;d=xx(A,227244);J[c+16>>2]=d;b=xx(A,227517);J[c+32>>2]=b;i=0;v=bc-16|0;bc=v;e=!b;r:{if(e)break r;g=!d;if(g|((e?-1:J[b+8>>2])|0)!=1|((g?-1:J[d+8>>2])|0)!=1)break r;i=wf(0,b);if(!i){i=0;break r}m=nu(b);J[v+8>>2]=m;if(!m)break r;x=i?J[i+4>>2]:-1;s=d?J[d+4>>2]:-1;D=i?J[i+40>>2]:0;y=d?J[d+40>>2]:0;k=i?J[i+12>>2]:-1;o=d? -J[d+12>>2]:-1;Ao(d,0);while(1){s:{wf(m,i);h=0;l=(s|0)>(x|0)?x:s;e=(k|0)<(o|0)?k:o;t:{if((l|0)<=0|(e|0)<=0)break t;q=e-1|0;w=0-k<<2;while(1){p=D+(P(h,k)<<2)|0;u=y+(P(h,o)<<2)|0;g=0;u:{if(h){U=p+w|0;while(1){b=g<<2;t=b+p|0;r=b+U|0;d=J[r>>2];d=J[t>>2]|d>>>1|d<<1|d;d=g?J[r-4>>2]<<31|d:d;d=(g|0)<(q|0)?J[r+4>>2]>>>31|d:d;r=J[b+u>>2];if(g)d=J[t-4>>2]<<31|d;b=d&r;d=b;if(b+1>>>0>=2)while(1){d=b;b=r&(b|(b<<1|b>>>1));if((b|0)!=(d|0))continue;break}J[t>>2]=d;g=g+1|0;if((e|0)!=(g|0))continue;break}break u}while(1){b= -g<<2;t=J[b+u>>2];r=b+p|0;b=J[r>>2];if(g)b=b|J[r-4>>2]<<31;b=b&t;d=b;if(b+1>>>0>=2)while(1){d=b;b=t&(b|(b<<1|b>>>1));if((b|0)!=(d|0))continue;break}J[r>>2]=d;g=g+1|0;if((e|0)!=(g|0))continue;break}}h=h+1|0;if((l|0)!=(h|0))continue;break}if((l|0)<=0|(e|0)<=0)break t;e=e-1|0;q=l-1|0;h=q;while(1){l=D+(P(h,k)<<2)|0;p=y+(P(h,o)<<2)|0;g=e;v:{if((h|0)<(q|0)){w=l+(k<<2)|0;while(1){b=g<<2;u=b+l|0;t=b+w|0;d=J[t>>2];d=J[u>>2]|d>>>1|d<<1|d;d=(g|0)>0?J[t-4>>2]<<31|d:d;r=J[b+p>>2];if((e|0)>(g|0))d=(J[t+4>>2]|J[u+ -4>>2])>>>31|d;b=d&r;d=b;if(b+1>>>0>=2)while(1){d=b;b=r&(b|(b<<1|b>>>1));if((b|0)!=(d|0))continue;break}J[u>>2]=d;b=(g|0)>0;g=g-1|0;if(b)continue;break}break v}while(1){b=g<<2;u=J[b+p>>2];t=b+l|0;b=J[t>>2];if((e|0)>(g|0))b=b|J[t+4>>2]>>>31;b=b&u;d=b;if(b+1>>>0>=2)while(1){d=b;b=u&(b|(b<<1|b>>>1));if((b|0)!=(d|0))continue;break}J[t>>2]=d;b=(g|0)>0;g=g-1|0;if(b)continue;break}}b=(h|0)>0;h=h-1|0;if(b)continue;break}}b=0;e=bc-48|0;bc=e;w=v+12|0;w:{if(!w)break w;J[w>>2]=0;d=!i;if(d|!m)break w;xf(i,e+44| -0,e+40|0,e+36|0);xf(m,e+32|0,e+28|0,e+24|0);if(J[e+44>>2]!=J[e+32>>2]|J[e+40>>2]!=J[e+28>>2])break w;x:{y:{d=d?0:J[i+36>>2];g=m?J[m+36>>2]:0;if(!(d|g)){b=J[e+36>>2];d=J[e+24>>2];if((b|0)==(d|0))break y;if((b|0)==32|(d|0)==32)break w;break y}z:{if(!(!d|!g)){if(J[e+36>>2]!=J[e+24>>2])break z;l=0;q=bc-32|0;bc=q;A:{if(!w)break A;J[w>>2]=0;g=!i;if(g)break A;h=!m;if(h)break A;d=0;B:{C:{if(g|h)break C;g=1;if((i|0)==(m|0))break B;if(J[i>>2]!=J[m>>2]|J[i+4>>2]!=J[m+4>>2])break C;d=J[i+8>>2]==J[m+8>>2]}g=d}if(!g)break A; -h=i?J[i+36>>2]:0;p=m?J[m+36>>2]:0;if(!h|!p)break A;d=i?J[i+8>>2]:-1;if(d>>>0>8|!(1<>2]:0;D:{if((g|0)!=((p?J[p+12>>2]:0)|0))break D;if((g|0)<=0){l=1;break D}while(1){Up(h,b,q+28|0,q+20|0,q+12|0);Up(p,b,q+24|0,q+16|0,q+8|0);l=0;if(J[q+28>>2]!=J[q+24>>2]|J[q+20>>2]!=J[q+16>>2]|J[q+12>>2]!=J[q+8>>2])break D;l=1;b=b+1|0;if((g|0)!=(b|0))continue;break}}g=i?J[i+4>>2]:-1;b=i?J[i>>2]:-1;E:{F:{if(!l){if((g|0)<=0|(b|0)<=0)break F;d=0;while(1){l=0;while(1){w7(i,l,d,q+4|0);w7(m,l,d, -q);Up(h,J[q+4>>2],q+28|0,q+20|0,q+12|0);Up(p,J[q>>2],q+24|0,q+16|0,q+8|0);if(J[q+28>>2]!=J[q+24>>2]|J[q+20>>2]!=J[q+16>>2]|J[q+12>>2]!=J[q+8>>2])break A;l=l+1|0;if((b|0)!=(l|0))continue;break}d=d+1|0;if((g|0)!=(d|0))continue;break}break F}p=i?J[i+12>>2]:-1;u=m?J[m+12>>2]:-1;t=i?J[i+40>>2]:0;r=m?J[m+40>>2]:0;if((g|0)<=0)break F;b=P(b,d);U=(b|0)/32|0;d=b&31;V=-1<<32-d;if((b|0)>=32){l=0;if(!d)while(1){h=r+(P(l,u)<<2)|0;b=t+(P(l,p)<<2)|0;d=0;while(1){if(J[b>>2]!=J[h>>2])break A;h=h+4|0;b=b+4|0;d=d+1| -0;if((U|0)!=(d|0))continue;break}l=l+1|0;if((g|0)!=(l|0))continue;break F}while(1){h=r+(P(l,u)<<2)|0;b=t+(P(l,p)<<2)|0;d=0;while(1){if(J[b>>2]!=J[h>>2])break A;h=h+4|0;b=b+4|0;d=d+1|0;if((U|0)!=(d|0))continue;break}if(V&(J[h>>2]^J[b>>2]))break A;l=l+1|0;if((g|0)!=(l|0))continue;break}break F}if(!d)break F;h=0;while(1){if(V&(J[r+(P(h,u)<<2)>>2]^J[t+(P(h,p)<<2)>>2]))break E;h=h+1|0;if((g|0)!=(h|0))continue;break}}J[w>>2]=1}}bc=q+32|0;break w}if(!(g|!d)){k7(i,e+20|0);b=J[e+24>>2];if((b|0)<9?J[e+20>> -2]:0)break w;G:{if((b|0)<=7){b=zD(m);break G}if(m)J[m+16>>2]=J[m+16>>2]+1;b=m}J[e+12>>2]=b;if(J[e+24>>2]<=8){ta=e,ua=Hk(i,1),J[ta+16>>2]=ua;break x}ta=e,ua=Hk(i,2),J[ta+16>>2]=ua;break x}if(!g|d)break y;k7(m,e+20|0);b=J[e+36>>2];if((b|0)<9?J[e+20>>2]:0)break w;H:{if((b|0)<=7){b=zD(i);break H}if(i)J[i+16>>2]=J[i+16>>2]+1;b=i}J[e+16>>2]=b;if(J[e+36>>2]<=8){ta=e,ua=Hk(m,1),J[ta+12>>2]=ua;break x}ta=e,ua=Hk(m,2),J[ta+12>>2]=ua;break x}ta=e,ua=Hk(i,2),J[ta+16>>2]=ua;ta=e,ua=Hk(m,2),J[ta+12>>2]=ua;break x}if(i)J[i+ -16>>2]=J[i+16>>2]+1;J[e+16>>2]=i;if(m)J[m+16>>2]=J[m+16>>2]+1;J[e+12>>2]=m}b=J[e+16>>2];if(b)b=J[b+8>>2];else b=-1;J[e+36>>2]=b;b=J[e+12>>2];if(b)b=J[b+8>>2];else b=-1;J[e+24>>2]=b;d=J[e+36>>2];I:{if((d|0)!=(b|0)){if(!((b|0)!=16&(d|0)!=16)){wd(e+16|0);wd(e+12|0);break w}ta=e,ua=A7(J[e+16>>2]),J[ta+8>>2]=ua;b=A7(J[e+12>>2]);J[e+4>>2]=b;if(b?J[e+8>>2]:0)break I;wd(e+16|0);wd(e+12|0);wd(e+8|0);wd(e+4|0);break w}b=J[e+16>>2];if(b)J[b+16>>2]=J[b+16>>2]+1;J[e+8>>2]=b;b=J[e+12>>2];if(b)J[b+16>>2]=J[b+16>> -2]+1;J[e+4>>2]=b}wd(e+16|0);wd(e+12|0);b=J[e+8>>2];if(b)b=J[b+8>>2];else b=-1;J[e+36>>2]=b;b=J[e+4>>2];if(b)b=J[b+8>>2];else b=-1;J[e+24>>2]=b;b=J[e+8>>2];if(b)d=J[b+12>>2];else d=-1;b=J[e+4>>2];if(b)p=J[b+12>>2];else p=-1;b=J[e+8>>2];if(b)u=J[b+40>>2];else u=0;b=J[e+4>>2];if(b)t=J[b+40>>2];else t=0;J:{K:{b=J[e+36>>2];L:{if((b|0)==32){r=J[e+40>>2];if((r|0)<=0|(d|0)<=0)break L;g=0;while(1){h=t+(P(g,p)<<2)|0;b=u+(P(d,g)<<2)|0;l=0;M:{while(1){if((J[h>>2]^J[b>>2])>>>0>255)break M;h=h+4|0;b=b+4|0;l=l+ -1|0;if((d|0)!=(l|0))continue;break}g=g+1|0;if((r|0)!=(g|0))continue;break L}break}wd(e+8|0);wd(e+4|0);break w}r=J[e+40>>2];if((r|0)<=0)break L;b=P(b,J[e+44>>2]);q=(b|0)/32|0;h=b&31;U=-1<<32-h;if((b|0)>=32){g=0;if(!h)while(1){h=t+(P(g,p)<<2)|0;b=u+(P(d,g)<<2)|0;l=0;while(1){if(J[b>>2]!=J[h>>2])break K;h=h+4|0;b=b+4|0;l=l+1|0;if((q|0)!=(l|0))continue;break}g=g+1|0;if((r|0)!=(g|0))continue;break L}while(1){h=t+(P(g,p)<<2)|0;b=u+(P(d,g)<<2)|0;l=0;while(1){if(J[b>>2]!=J[h>>2])break K;h=h+4|0;b=b+4|0;l= -l+1|0;if((q|0)!=(l|0))continue;break}if(U&(J[h>>2]^J[b>>2]))break J;g=g+1|0;if((r|0)!=(g|0))continue;break}break L}if(!h)break L;h=0;while(1){if(U&(J[t+(P(h,p)<<2)>>2]^J[u+(P(d,h)<<2)>>2]))break J;h=h+1|0;if((r|0)!=(h|0))continue;break}}wd(e+8|0);wd(e+4|0);J[w>>2]=1;break w}wd(e+8|0);wd(e+4|0);break w}wd(e+8|0);wd(e+4|0)}bc=e+48|0;if(J[v+12>>2]==1)break s;F=F+1|0;if((F|0)!=40)continue}break}wd(v+8|0)}bc=v+16|0;J[c+92>>2]=i;b=xx(i,227773);J[c+88>>2]=b;d=uh(J[j>>2],J[j+4>>2],1);J[c+84>>2]=d;if(!(!d| -!j|(d|0)==(j|0))){J[d+20>>2]=J[j+20>>2];J[d+24>>2]=J[j+24>>2]}r7(J[d+40>>2],J[d+12>>2],J[b+40>>2],J[b>>2],J[b+4>>2],J[b+12>>2],4);wd(c+88|0);wd(c+92|0);wd(c+32|0);wd(c+16|0);e=bc-16|0;bc=e;g=!A;N:{if(g|!d|((g?-1:J[A+8>>2])|0)!=((d?J[d+8>>2]:-1)|0))break N;xf(A,e+12|0,e+8|0,0);if(g){uf(wf(0,A),0,0,J[e+12>>2],J[e+8>>2],4,d,0,0);break N}uf(A,0,0,J[e+12>>2],J[e+8>>2],4,d,0,0)}bc=e+16|0;g=J[688831];if(!g){g=lu();J[688831]=g}ck(d,c+80|0,g);O:{if(J[c+80>>2]<=99){wd(c+84|0);break O}ck(A,c+80|0,J[688831]); -if(J[c+80>>2]<=99)wd(c+48|0);P:{Q:{R:{S:{b=J[j+8>>2];switch(b-1|0){case 1:case 2:case 3:case 4:case 5:case 6:break Q;case 0:case 7:break R;default:break S}}if((b|0)!=32)break Q}if(j)J[j+16>>2]=J[j+16>>2]+1;d=j;break P}if(b>>>0>=9){d=B7(j);break P}d=zD(j)}J[c+76>>2]=d;b=J[c+84>>2];T:{U:{e=J[d+8>>2];if((e|0)!=8){if((e|0)!=32)break U;b=B7(b);break T}b=zD(b);break T}if(b)J[b+16>>2]=J[b+16>>2]+1}wd(c+84|0);e=!b;if(!(e|!d))uf(b,0,0,e?-1:J[b>>2],b?J[b+4>>2]:-1,28,d,0,0);wd(c+76|0);if(!b)break O;d=J[a+20>> -2];e=H[a+31|0];J[c+8>>2]=226492;J[c+4>>2]=0;J[c>>2]=(e|0)<0?d:a+20|0;d=bc-16|0;bc=d;J[d+12>>2]=c;lR(c+48|0,225953,c);bc=d+16|0;z7(J[c+48>>2],b);qc(J[c+48>>2])}if(J[c+64>>2])break q;b=1;break a}wd(c+68|0);V:{if(!K[a+2|0]){J[c+16>>2]=0;p=!K[a+1|0];u=K[a|0];b=bc-72352|0;bc=b;W:{a=J[c+64>>2];if(!a){d=0;break W}Ao(a,0);e=p?16777216:0;d=b+132|0;VM(d);J[b+120>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+88>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;g=b- -64|0;J[g>>2]= -0;J[g+4>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;H[b+16|0]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+124>>2]=1;J[b+128>>2]=19;J[b+96>>2]=0;J[b+100>>2]=48;j=J[a>>2];g=j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24);k=J[a+4>>2];i=k;h=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=J[a+20>>2];l=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=J[a+24>>2];m=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=J[a+40>>2];J[695492]=0;la(1598,d|0,i|0,j| -0,k|0,u|0);i=J[695492];J[695492]=0;X:{Y:{if((i|0)==1)break Y;J[695492]=0;_(1599,d|0);i=J[695492];J[695492]=0;if((i|0)==1)break Y;J[695492]=0;i=J[d+20>>2];d=J[d+12>>2];j=i+P(J[d+4>>2]-J[d>>2]>>2,20480)|0;d=J[695492];J[695492]=0;if((d|0)==1){d=Z()|0;break X}J[b+84>>2]=1;J[b+56>>2]=1;J[b+60>>2]=38;J[b+48>>2]=1;J[b+20>>2]=2;J[b+88>>2]=j+26;d=J[a>>2];k=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a=J[a+4>>2];o=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);Z:{if(!p){i=j+67|0;d=zc(i);a=0;break Z}i=j+102|0;d=zc(i); -H[d+9|0]=e;H[d+10|0]=e>>>8;H[d+11|0]=e>>>16;H[d+12|0]=e>>>24;H[d+8|0]=1;H[d|0]=151;H[d+1|0]=74;H[d+2|0]=66;H[d+3|0]=50;H[d+4|0]=13;H[d+5|0]=10;H[d+6|0]=26;H[d+7|0]=10;a=13}J[695492]=0;da(1594,b+96|0,a+d|0);e=J[695492];J[695492]=0;_:{if((e|0)==1)break _;e=a+(M[b+124>>2]<256?11:12)|0;a=J[b+96>>2];e=e+(J[b+116>>2]-J[b+112>>2]>>2<<(a>>>0>=257?a>>>0<65537?1:2:0))|0;a=e+d|0;H[a+17|0]=0;H[a+18|0]=0;H[a+16|0]=1;H[a+12|0]=m;H[a+13|0]=m>>>8;H[a+14|0]=m>>>16;H[a+15|0]=m>>>24;H[a+8|0]=l;H[a+9|0]=l>>>8;H[a+10| -0]=l>>>16;H[a+11|0]=l>>>24;H[a+4|0]=h;H[a+5|0]=h>>>8;H[a+6|0]=h>>>16;H[a+7|0]=h>>>24;H[a|0]=g;H[a+1|0]=g>>>8;H[a+2|0]=g>>>16;H[a+3|0]=g>>>24;J[695492]=0;a=e+19|0;da(1594,b+56|0,a+d|0);e=J[695492];J[695492]=0;if((e|0)==1)break _;e=a+(M[b+84>>2]<256?11:12)|0;a=J[b+56>>2];h=e+(J[b+76>>2]-J[b+72>>2]>>2<<(a>>>0>=257?a>>>0<65537?1:2:0))|0;a=h+d|0;H[a+4|0]=o;H[a+5|0]=o>>>8;H[a+6|0]=o>>>16;H[a+7|0]=o>>>24;H[a|0]=k;H[a+1|0]=k>>>8;H[a+2|0]=k>>>16;H[a+3|0]=k>>>24;e=J[b+12>>2];g=J[b+8>>2];H[a+8|0]=g;H[a+9|0]= -g>>>8;H[a+10|0]=g>>>16;H[a+11|0]=g>>>24;H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=K[b+16|0];H[a+18|0]=3;H[a+19|0]=255;H[a+20|0]=253;H[a+21|0]=255;H[a+22|0]=2;H[a+23|0]=254;H[a+24|0]=254;H[a+25|0]=254;H[a+17|0]=u?8:0;J[695492]=0;a=h+26|0;da(1595,b+132|0,a+d|0);e=J[695492];J[695492]=0;if((e|0)==1)break _;a=a+j|0;if(p){J[695492]=0;J[b+24>>2]=49;e=b+20|0;da(1594,e|0,a+d|0);g=J[695492];J[695492]=0;if((g|0)==1)break _;J[b+24>>2]=51;J[695492]=0;g=a+(M[b+48>>2]<256?11:12)|0; -a=J[b+20>>2];a=g+(J[b+40>>2]-J[b+36>>2]>>2<<(a>>>0>=257?a>>>0<65537?1:2:0))|0;da(1594,e|0,a+d|0);e=J[695492];J[695492]=0;if((e|0)==1)break _;e=a+(M[b+48>>2]<256?11:12)|0;a=J[b+20>>2];a=e+(J[b+40>>2]-J[b+36>>2]>>2<<(a>>>0>=257?a>>>0<65537?1:2:0))|0}if((a|0)!=(i|0)){J[695492]=0;ka(495);a=J[695492];J[695492]=0;if((a|0)==1)break _;B()}J[695492]=0;Cx(b+132|0);a=J[695492];J[695492]=0;if((a|0)==1)break _;J[c+16>>2]=i;a=J[b+36>>2];if(a){J[b+40>>2]=a;qc(a)}a=J[b+72>>2];if(a){J[b+76>>2]=a;qc(a)}a=J[b+112>> -2];if(!a)break W;J[b+116>>2]=a;qc(a);break W}d=Z()|0;a=J[b+36>>2];if(!a)break X;J[b+40>>2]=a;qc(a);break X}d=Z()|0}a=J[b+72>>2];if(a){J[b+76>>2]=a;qc(a)}a=J[b+112>>2];if(a){J[b+116>>2]=a;qc(a)}ba(d|0);B()}bc=b+72352|0;a=c+48|0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=413844;J[695492]=0;b=aa(17,a|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break V;if(b){J[695492]=0;ga(42,a|0,d|0,J[c+16>>2])|0;e=J[695492];J[695492]=0;if((e|0)==1)break V;J[695492]=0;_(21,a|0);e=J[695492];J[695492]=0;if((e|0)==1)break V}J[695492]= -0;_(1584,c- -64|0);e=J[695492];J[695492]=0;if((e|0)==1)break V;if(d)qc(d);J[695492]=0;_(1585,n|0);d=J[695492];J[695492]=0;if((d|0)==1)break V;ve(a);break a}ja=bc-16|0;bc=ja;j=J[c+64>>2];if(j)J[j+16>>2]=J[j+16>>2]+1;J[ja+12>>2]=j;g=J[n>>2];$:{aa:{ba:{ca:{da:{ea:{if(!K[n+88|0])break ea;d=J[n+104>>2];if((d|0)!=J[n+108>>2]){J[d>>2]=J[g+24>>2];J[n+104>>2]=d+4;break ea}h=n+100|0;i=J[h>>2];b=d-i|0;l=b>>2;e=l+1|0;if(e>>>0>=1073741824)break da;h=b>>1;h=b>>>0>=2147483644?1073741823:e>>>0>>0?h:e;if(h){if(h>>> -0>=1073741824)break ca;b=rc(h<<2)}else b=0;e=b+(l<<2)|0;J[e>>2]=J[g+24>>2];l=e+4|0;if((d|0)!=(i|0))while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(i|0))continue;break}J[n+108>>2]=b+(h<<2);J[n+104>>2]=l;J[n+100>>2]=e;if(!i)break ea;qc(i);g=J[n>>2]}U=bc-16|0;bc=U;fa:{if(!g)break fa;b=!j;if(b|((b?-1:J[j+8>>2])|0)!=1)break fa;J[g+52>>2]=j?J[j>>2]:-1;J[g+56>>2]=j?J[j+4>>2]:-1;d=J[g+8>>2];u=J[g+12>>2];t=J[g+16>>2];V=U+8|0;k=bc-32|0;bc=k;b=1;X=U+12|0;ga:{if(!X)break ga;J[X>>2]=0;if(!V)break ga;J[V>> -2]=0;if(!j|d>>>0>2)break ga;yx(j,k+28|0);if(J[k+28>>2]){b=0;ta=X,ua=Tp(0),J[ta>>2]=ua;ta=V,ua=Fk(0),J[ta>>2]=ua;break ga}ha:{ia:switch(d|0){case 0:e=BM(j,k+8|0,8);J[k+24>>2]=e;break ha;case 1:b=xx(j,226014);J[k+20>>2]=b;d=b;b=k+4|0;e=BM(d,b,8);J[k+24>>2]=e;ta=k,ua=f7(J[k+4>>2],j),J[ta+8>>2]=ua;wd(k+20|0);bk(b);break ha;default:break ia}b=j?J[j+20>>2]:0;ja:{if((b|0)<=200){if(j)J[j+16>>2]=J[j+16>>2]+1;b=j;J[k+20>>2]=b;i=1;break ja}if(b>>>0<=400){b=zM(j,1,0,0,0);J[k+20>>2]=b;i=2;break ja}b=zM(j,1,1, -0,0);J[k+20>>2]=b;i=4}l=0;d=bc-96|0;bc=d;ka:{if(!b){b=0;break ka}h=Fk(8);J[d+12>>2]=h;e=wf(0,b);J[d+20>>2]=e;b=1;$h(h,e,1);p=sn(7);J[d+24>>2]=p;m=wf(0,e);e=AM(m,4);J[d+28>>2]=e;e=e?J[e>>2]:0;J[d+32>>2]=e;_h(p,Q(e|0));$h(h,m,1);wd(d+20|0);J[d+20>>2]=m;wo(d+28|0);m=1E6;while(1){o=xx(J[d+20>>2],226554);J[d+16>>2]=o;e=AM(o,4);J[d+28>>2]=e;r=(d+32|0)+(b<<2)|0;e=e?J[e>>2]:0;J[r>>2]=e;_h(p,Q(e|0));r=J[r-4>>2];$h(h,o,1);x=d+20|0;wd(x);J[d+20>>2]=o;o=r-e|0;e=(o|0)<(m|0);m=e?o:m;l=e?b:l;e=(b|0)!=7;wo(d+28| -0);b=b+1|0;if(e)continue;break}wd(x);b=cg(h,l);J[d+16>>2]=b;e=Wi(1,l,0,l-1|0);J[d+8>>2]=e;b=wl(0,b,e);ij(d+8|0);wd(d+16|0);bk(d+12|0);Ai(d+24|0)}bc=d+96|0;J[k+16>>2]=b;b=y7(b,i);J[k+12>>2]=b;d=b;b=k+4|0;e=BM(d,b,4);J[k+24>>2]=e;ta=k,ua=f7(J[k+4>>2],j),J[ta+8>>2]=ua;bk(b);wd(k+20|0);wd(k+16|0);wd(k+12|0)}b=0;d=0;m=0;l=bc-16|0;bc=l;i=J[k+8>>2];if(i){la:{if(!i)break la;d=J[i+16>>2];if(!d)break la;ma:{if(d){J[d+8>>2]=J[d+8>>2]+1;break ma}d=0}m=d}J[l+12>>2]=m;p=e7(m,u,t);J[l+8>>2]=p;wo(l+12|0);m=0;d=0; -o=bc-16|0;bc=o;na:{if(!i)break na;h=!p;if(h)break na;h=h?0:J[p+4>>2];if((h|0)>0)while(1){jj(p,m,o+12|0);d=(J[o+12>>2]==1)+d|0;m=m+1|0;if((h|0)!=(m|0))continue;break}if((d|0)==(h|0)){oa:{if(i){J[i+8>>2]=J[i+8>>2]+1;d=i;break oa}d=0}break na}d=Fk(d);if((h|0)<=0)break na;m=0;while(1){jj(p,m,o+12|0);if(J[o+12>>2]){r=cg(i,m);x=s7(i,m,2);$h(d,r,0);Vp(d,x)}m=m+1|0;if((h|0)!=(m|0))continue;break}}bc=o+16|0;Ai(l+8|0)}bc=l+16|0;J[V>>2]=d;l=0;o=bc-16|0;bc=o;if(e){m=e7(e,u,t);J[o+12>>2]=m;d=0;h=bc-16|0;bc=h; -pa:{if(!e)break pa;i=!m;if(i)break pa;i=i?0:J[m+4>>2];if((i|0)>0)while(1){jj(m,d,h+12|0);l=(J[h+12>>2]==1)+l|0;d=d+1|0;if((i|0)!=(d|0))continue;break}if((i|0)==(l|0)){qa:{if(e){J[e+8>>2]=J[e+8>>2]+1;break qa}e=0}l=e;break pa}l=Tp(l);if((i|0)<=0)break pa;d=0;while(1){jj(m,d,h+12|0);if(J[h+12>>2])tD(l,Sp(e,d));d=d+1|0;if((i|0)!=(d|0))continue;break}}bc=h+16|0;Ai(o+12|0)}bc=o+16|0;J[X>>2]=l;bk(k+8|0);wo(k+24|0)}bc=k+32|0;if(b)break fa;D=J[U+12>>2];b=J[U+8>>2];ra:{if(!g|!j)break ra;d=!D;if(!(d|!b|!(d? -0:J[D>>2]))){sa:{if(!J[g+4>>2]){l=b;x=0;h=bc-80|0;bc=h;s=1;ta:{if(!g|!D)break ta;b=!b;if(b)break ta;v=J[g+20>>2];d=J[g+32>>2];e=d;d=(d|0)/2|0;d=Wi(e,e,d,d);J[h+12>>2]=d;k=b?0:J[l>>2];A=Fk(k);J[h+24>>2]=A;ha=Fk(k);J[h+20>>2]=ha;if((k|0)>0){s=0;while(1){b=cg(l,s);J[h+48>>2]=b;b=NM(b,6,6,6,6);J[h+44>>2]=b;e=xl(0,b,d);J[h+40>>2]=e;$h(A,b,0);$h(ha,e,0);wd(h+48|0);s=s+1|0;if((k|0)!=(s|0))continue;break}}d=0;r=bc-16|0;bc=r;b=!A;ua:{if(b)break ua;i=b?0:J[A>>2];if(!i)break ua;b=cg(A,0);J[r+12>>2]=b;b=b?J[b+ -8>>2]:-1;wd(r+12|0);va:{e=b;switch(b-1|0){case 0:case 7:break va;default:break ua}}b=Dr(i);if(!b)break ua;if(!J[688834]){m=t7();J[688834]=m;if(!m)break ua}if(!J[688835]){m=lu();J[688835]=m;if(!m)break ua}wa:{if((i|0)<=0)break wa;if((e|0)==1)while(1){ta=r,ua=cg(A,x),J[ta+12>>2]=ua;d=J[r+12>>2];if(d)p=J[d+4>>2];else p=-1;d=J[r+12>>2];if(d)u=J[d+40>>2];else u=0;xa:{ya:{e=(p|0)<=0;d=J[r+12>>2];if(d)o=J[d+12>>2];else o=-1;if(e|(o|0)<=0)break ya;m=0;s=J[688834];y=J[688835];z=Q(0);C=Q(0);t=0;while(1){G= -u+(P(m,o)<<2)|0;d=0;e=0;while(1){q=J[G+(d<<2)>>2];if(q){Y=q<<2&1020;w=J[Y+y>>2];ca=q>>>6&1020;F=J[ca+y>>2];W=q>>>14&1020;I=J[W+y>>2];ea=q>>>22&1020;S=J[ea+y>>2];q=d<<5;C=Q(Q(Q(Q(C+Q(J[s+Y>>2]+P(w,q|24)|0))+Q(J[s+ca>>2]+P(F,q|16)|0))+Q(J[s+W>>2]+P(I,q|8)|0))+Q(J[s+ea>>2]+P(q,S)|0));e=S+(I+(F+(e+w|0)|0)|0)|0}d=d+1|0;if((o|0)!=(d|0))continue;break}t=e+t|0;z=Q(z+Q(P(e,m)|0));m=m+1|0;if((p|0)!=(m|0))continue;break}if(!t)break ya;T=C;C=Q(t|0);zl(b,Q(T/C),Q(z/C));break xa}zl(b,Q(0),Q(0))}wd(r+12|0);x=x+ -1|0;if((i|0)!=(x|0))continue;break wa}while(1){d=cg(A,x);J[r+12>>2]=d;o=d?J[d>>2]:-1;d=J[r+12>>2];if(d)p=J[d+4>>2];else p=-1;d=J[r+12>>2];if(d)u=J[d+40>>2];else u=0;d=J[r+12>>2];if(d)t=J[d+12>>2];else t=-1;za:{Aa:{if(!((p|0)<=0|(o|0)<=0)){F=o&-2;I=o&1;C=Q(0);m=0;z=Q(0);e=0;while(1){s=u+(P(m,t)<<2)|0;d=0;y=0;if((o|0)!=1)while(1){S=d|1;w=K[S+s^3];q=K[d+s^3];e=w+(q+e|0)|0;C=Q(Q(C+Q(P(m,q)|0))+Q(P(m,w)|0));z=Q(Q(z+Q(P(d,q)|0))+Q(P(w,S)|0));d=d+2|0;y=y+2|0;if((F|0)!=(y|0))continue;break}if(I){s=K[d+s^ -3];e=s+e|0;C=Q(C+Q(P(m,s)|0));z=Q(z+Q(P(d,s)|0))}m=m+1|0;if((p|0)!=(m|0))continue;break}if(e)break Aa}zl(b,Q(0),Q(0));break za}T=z;z=Q(e|0);zl(b,Q(T/z),Q(C/z))}wd(r+12|0);x=x+1|0;if((i|0)!=(x|0))continue;break}}d=b}bc=r+16|0;J[h+16>>2]=d;d7(J[g+88>>2],d);I=J[g+100>>2];S=J[g+96>>2];G=J[g+92>>2];ma=lu();i=J[g+80>>2];Y=J[g+76>>2];y=J[g+72>>2];ca=J[g+68>>2];fa=N[g+36>>2];Ba:{if(fa==Q(1)){if((k|0)<=0)break Ba;z=Q(v|0);s=0;while(1){ta=h,ua=cg(A,s),J[ta+44>>2]=ua;ta=h,ua=cg(ha,s),J[ta+40>>2]=ua;yo(d,s,h+ -68|0,h- -64|0);r=y?J[y>>2]:0;b=J[h+44>>2];q=bd(1,24);J[q+4>>2]=(b?J[b>>2]:-1)-12;b=b?J[b+4>>2]:-1;J[q>>2]=g;J[q+8>>2]=b-12;Ca:{Da:{while(1){v=uD(q);if((v|0)<0)break Da;ta=h,ua=cg(y,v),J[ta+36>>2]=ua;ta=h,ua=cg(Y,v),J[ta+32>>2]=ua;yo(G,v,h+60|0,h+56|0);W=J[h+40>>2];w=J[h+36>>2];ea=J[h+32>>2];C=Q(N[h+68>>2]-N[h+60>>2]);T=Q(N[h+64>>2]-N[h+56>>2]);F=0;x=bc-16|0;bc=x;u=J[h+44>>2];if(u)e=J[u>>2];else e=-1;m=u?J[u+4>>2]:-1;o=w?J[w>>2]:-1;p=w?J[w+4>>2]:-1;t=e-o|0;b=t>>31;Ea:{if(((b^t)-b|0)>2)break Ea;t=m- -p|0;b=t>>31;if(((b^t)-b|0)>2)break Ea;b=nu(u);J[x+8>>2]=b;uf(b,0,0,e,m,24,u,0,0);E=(T>=Q(0)?.5:-.5)+ +T;Fa:{if(R(E)<2147483648){u=~~E;break Fa}u=-2147483648}E=(C>=Q(0)?.5:-.5)+ +C;Ga:{if(R(E)<2147483648){t=~~E;break Ga}t=-2147483648}uf(b,t,u,e,m,4,ea,0,0);yx(b,x+12|0);if(!J[x+12>>2]){wd(x+8|0);break Ea}uf(b,t,u,o,p,24,w,0,0);uf(J[x+8>>2],0,0,o,p,4,W,0,0);yx(J[x+8>>2],x+12|0);wd(x+8|0);F=J[x+12>>2]}bc=x+16|0;wd(h+36|0);wd(h+32|0);if((F|0)!=1)continue;break}_h(S,Q(v|0));_h(I,z);if(J[g+64>>2]){ta=h, -ua=JM(ca,v),J[ta+28>>2]=ua;b=cg(l,s);J[h+48>>2]=b;$h(J[h+28>>2],b,0);b=Sp(D,s);Vp(J[h+28>>2],b);bk(h+28|0)}Ai(q+16|0);qc(q);wd(h+44|0);wd(h+40|0);break Ca}Ai(q+16|0);qc(q);C=Q(r|0);_h(S,C);_h(I,z);ta=h,ua=Fk(0),J[ta+28>>2]=ua;b=cg(l,s);J[h+48>>2]=b;$h(J[h+28>>2],b,0);b=J[h+48>>2];if(b)b=J[b>>2];else b=-1;e=J[h+48>>2];if(e)e=J[e+4>>2];else e=-1;IM(i,P(b,e),C);b=Sp(D,s);Vp(J[h+28>>2],b);KM(ca,J[h+28>>2]);zl(G,N[h+68>>2],N[h+64>>2]);$h(y,J[h+44>>2],0);$h(Y,J[h+40>>2],0)}s=s+1|0;if((k|0)!=(s|0))continue; -break}break Ba}e=0;m=bc-16|0;bc=m;b=!l;Ha:{if(b)break Ha;b=b?0:J[l>>2];if(!b){e=sn(1);break Ha}o=cg(l,0);J[m+8>>2]=o;o=o?J[o+8>>2]:-1;wd(m+8|0);if((o|0)!=1)break Ha;o=bd(256,4);if(o){s=0;while(1){J[o+(s<<2)>>2]=(((((((s&1)+(s>>>7|0)|0)+(s>>>1&1)|0)+(s>>>2&1)|0)+(s>>>3&1)|0)+(s>>>4&1)|0)+(s>>>5&1)|0)+(s>>>6&1);s=s+1|0;if((s|0)!=256)continue;break}}e=sn(b);if(!e){e=0;break Ha}if((b|0)>0){s=0;while(1){p=cg(l,s);J[m+8>>2]=p;ck(p,m+12|0,o);_h(e,Q(J[m+12>>2]));wd(m+8|0);s=s+1|0;if((b|0)!=(s|0))continue; -break}}qc(o)}bc=m+16|0;J[h+52>>2]=e;if(!e){s=1;break ta}ea=J[g+84>>2];W=lu();if((k|0)>0){z=Q(v|0);s=0;while(1){ta=h,ua=cg(A,s),J[ta+44>>2]=ua;jj(e,s,h+76|0);ta=h,ua=cg(ha,s),J[ta+40>>2]=ua;yo(d,s,h+68|0,h- -64|0);x=y?J[y>>2]:0;b=J[h+44>>2];v=bd(1,24);J[v+4>>2]=(b?J[b>>2]:-1)-12;b=b?J[b+4>>2]:-1;J[v>>2]=g;J[v+8>>2]=b-12;Ia:{Ja:{while(1){w=uD(v);if((w|0)<0)break Ja;ta=h,ua=cg(y,w),J[ta+36>>2]=ua;jj(ea,w,h+72|0);ta=h,ua=cg(Y,w),J[ta+32>>2]=ua;yo(G,w,h+60|0,h+56|0);na=J[h+40>>2];F=J[h+36>>2];oa=J[h+32>> -2];C=Q(N[h+68>>2]-N[h+60>>2]);T=Q(N[h+64>>2]-N[h+56>>2]);pa=J[h+76>>2];sa=J[h+72>>2];qa=0;q=bc-16|0;bc=q;t=J[h+44>>2];if(t)m=J[t>>2];else m=-1;o=t?J[t+4>>2]:-1;p=F?J[F>>2]:-1;u=F?J[F+4>>2]:-1;r=m-p|0;b=r>>31;Ka:{if(((b^r)-b|0)>2)break Ka;r=o-u|0;b=r>>31;if(((b^r)-b|0)>2)break Ka;b=nu(t);J[q+8>>2]=b;uf(b,0,0,m,o,24,t,0,0);E=(T>=Q(0)?.5:-.5)+ +T;La:{if(R(E)<2147483648){t=~~E;break La}t=-2147483648}E=(C>=Q(0)?.5:-.5)+ +C;Ma:{if(R(E)<2147483648){r=~~E;break Ma}r=-2147483648}uf(b,r,t,m,o,4,oa,0,0);E=1- -+fa;ra=+(pa|0)*E+.5;Na:{if(R(ra)<2147483648){m=~~ra;break Na}m=-2147483648}u7(b,m,q+12|0,W);if(J[q+12>>2]==1){wd(q+8|0);break Ka}uf(b,r,t,p,u,24,F,0,0);uf(J[q+8>>2],0,0,p,u,4,na,0,0);m=J[q+8>>2];E=+(sa|0)*E+.5;Oa:{if(R(E)<2147483648){b=~~E;break Oa}b=-2147483648}u7(m,b,q+12|0,W);wd(q+8|0);qa=J[q+12>>2]!=1}bc=q+16|0;wd(h+36|0);wd(h+32|0);if(!qa)continue;break}_h(S,Q(w|0));_h(I,z);if(J[g+64>>2]){ta=h,ua=JM(ca,w),J[ta+28>>2]=ua;b=cg(l,s);J[h+48>>2]=b;$h(J[h+28>>2],b,0);b=Sp(D,s);Vp(J[h+28>>2],b);bk(h+ -28|0)}Ai(v+16|0);qc(v);wd(h+44|0);wd(h+40|0);break Ia}Ai(v+16|0);qc(v);C=Q(x|0);_h(S,C);_h(I,z);ta=h,ua=Fk(0),J[ta+28>>2]=ua;b=cg(l,s);J[h+48>>2]=b;$h(J[h+28>>2],b,0);b=J[h+48>>2];if(b)b=J[b>>2];else b=-1;m=J[h+48>>2];if(m)m=J[m+4>>2];else m=-1;IM(i,P(b,m),C);b=Sp(D,s);Vp(J[h+28>>2],b);KM(ca,J[h+28>>2]);zl(G,N[h+68>>2],N[h+64>>2]);$h(y,J[h+44>>2],0);$h(Y,J[h+40>>2],0);_h(ea,Q(J[h+76>>2]))}s=s+1|0;if((k|0)!=(s|0))continue;break}}qc(W);Ai(h+52|0)}J[g+60>>2]=y?J[y>>2]:0;qc(ma);zo(h+16|0);bk(h+24|0); -bk(h+20|0);ij(h+12|0);s=0}bc=h+80|0;if(!s)break sa;break ra}i=b;h=0;o=0;b=bc-48|0;bc=b;d=1;Pa:{if(!g|!D)break Pa;e=!i;if(e)break Pa;ha=J[g+20>>2];e=e?0:J[i>>2];s=Fk(e);J[b+4>>2]=s;if((e|0)>0)while(1){l=cg(i,h);J[b+20>>2]=l;l=NM(l,6,6,6,6);J[b+16>>2]=l;$h(s,l,0);wd(b+20|0);h=h+1|0;if((e|0)!=(h|0))continue;break}y=J[g+84>>2];w=J[g+100>>2];F=J[g+96>>2];p=lu();r=bd(e,4);x=bd(e,4);u=t7();if(!u|(!r|!x))break Pa;q=Dr(e);J[b>>2]=q;W=(e|0)<=0;if(!W)while(1){d=cg(s,o);J[b+20>>2]=d;ea=o<<2;I=bd(d?J[d+4>>2]: --1,4);J[ea+x>>2]=I;d=J[b+20>>2];if(d)h=J[d+12>>2];else h=-1;d=J[b+20>>2];if(d)l=J[d+40>>2];else l=0;d=J[b+20>>2];if(d)m=J[d+4>>2];else m=-1;C=Q(0);d=J[b+20>>2];if(d)d=J[d+4>>2];else d=-1;Qa:{if((d|0)<=0){z=Q(0);m=0;break Qa}if((h|0)<=0){m=0;wc(I,0,d<<2);z=Q(0);break Qa}A=l+(P(h,m-1|0)<<2)|0;z=Q(0);m=0;qa=0-h<<2;while(1){k=d-1|0;J[I+(k<<2)>>2]=m;t=0;l=0;while(1){v=J[(l<<2)+A>>2];ma=(v&255)<<2;S=J[ma+p>>2];na=v>>>6&1020;G=J[na+p>>2];oa=v>>>14&1020;Y=J[oa+p>>2];pa=v>>>22&1020;ca=J[pa+p>>2];v=l<<5;z= -Q(Q(Q(Q(z+Q(J[u+ma>>2]+P(S,v|24)|0))+Q(J[u+na>>2]+P(G,v|16)|0))+Q(J[u+oa>>2]+P(Y,v|8)|0))+Q(J[u+pa>>2]+P(v,ca)|0));t=ca+(Y+(G+(t+S|0)|0)|0)|0;l=l+1|0;if((h|0)!=(l|0))continue;break}m=m+t|0;A=A+qa|0;C=Q(C+Q(P(k,t)|0));l=(d|0)>1;d=k;if(l)continue;break}}J[r+ea>>2]=m;T=z;z=Q(m|0);zl(q,Q(T/z),Q(C/z));wd(b+20|0);o=o+1|0;if((e|0)!=(o|0))continue;break}d7(J[g+88>>2],q);k=J[g+72>>2];Ra:{if(!W){m=J[g+80>>2];v=J[g+48>>2];I=J[g+68>>2];t=J[g+92>>2];C=N[g+40>>2];E=+C;T=N[g+44>>2];ra=(1-E)*+T;z=Q(ha|0);d=0;while(1){ta= -b,ua=cg(s,d),J[ta+16>>2]=ua;G=d<<2;A=J[G+r>>2];yo(q,d,b+36|0,b+32|0);h=k?J[k>>2]:0;l=J[b+16>>2];o=bd(1,24);J[o+4>>2]=(l?J[l>>2]:-1)-12;l=l?J[l+4>>2]:-1;J[o>>2]=g;J[o+8>>2]=l-12;S=x+G|0;Sa:{Ta:{Ua:{if(T>Q(0))while(1){l=uD(o);if((l|0)<0)break Ta;ta=b,ua=cg(k,l),J[ta+12>>2]=ua;jj(y,l,b+40|0);yo(t,l,b+28|0,b+24|0);jj(v,l,b+44|0);G=J[b+40>>2];G=c7(J[b+16>>2],J[b+12>>2],A,G,Q(N[b+36>>2]-N[b+28>>2]),Q(N[b+32>>2]-N[b+24>>2]),p,J[S>>2],Q(ra*+(G|0)/+J[b+44>>2]+E));wd(b+12|0);if(!G)continue;break Ua}while(1){l= -uD(o);if((l|0)<0)break Ta;ta=b,ua=cg(k,l),J[ta+12>>2]=ua;jj(y,l,b+40|0);yo(t,l,b+28|0,b+24|0);G=c7(J[b+16>>2],J[b+12>>2],A,J[b+40>>2],Q(N[b+36>>2]-N[b+28>>2]),Q(N[b+32>>2]-N[b+24>>2]),p,J[S>>2],C);wd(b+12|0);if(!G)continue;break}}_h(F,Q(l|0));_h(w,z);if(J[g+64>>2]){ta=b,ua=JM(I,l),J[ta+8>>2]=ua;h=cg(i,d);J[b+20>>2]=h;$h(J[b+8>>2],h,0);h=Sp(D,d);Vp(J[b+8>>2],h);bk(b+8|0)}Ai(o+16|0);qc(o);wd(b+16|0);break Sa}Ai(o+16|0);qc(o);fa=Q(h|0);_h(F,fa);_h(w,z);ta=b,ua=Fk(0),J[ta+8>>2]=ua;h=cg(i,d);J[b+20>>2]= -h;$h(J[b+8>>2],h,0);h=J[b+20>>2];if(h)h=J[h>>2];else h=-1;l=J[b+20>>2];if(l)l=J[l+4>>2];else l=-1;IM(m,P(h,l),fa);h=Sp(D,d);Vp(J[b+8>>2],h);KM(I,J[b+8>>2]);zl(t,N[b+36>>2],N[b+32>>2]);_h(y,Q(A|0));$h(k,J[b+16>>2],0);h=J[b+16>>2];if(h)h=J[h>>2];else h=-1;l=J[b+16>>2];if(l)l=J[l+4>>2];else l=-1;h=P(l-12|0,h-12|0);J[b+44>>2]=h;_h(v,Q(h|0))}d=d+1|0;if((e|0)!=(d|0))continue;break}J[g+60>>2]=k?J[k>>2]:0;qc(r);qc(u);if((e|0)<=0)break Ra;l=0;while(1){qc(J[x+(l<<2)>>2]);l=l+1|0;if((e|0)!=(l|0))continue;break}break Ra}J[g+ -60>>2]=k?J[k>>2]:0;qc(r);qc(u)}qc(x);qc(p);zo(b);bk(b+4|0);d=0}bc=b+48|0;if(d)break ra}e=0;u=0;t=0;b=bc+-64|0;bc=b;h=1;Va:{if(!g|!j)break Va;d=!D;if(d)break Va;d=d?0:J[D>>2];w=J[g+24>>2];F=J[g+92>>2];I=J[g+88>>2];S=J[g+96>>2];G=J[g+104>>2];p=lu();m=d;if((d|0)>0)while(1){d=t+w|0;yo(I,d,b+32|0,b+24|0);jj(S,d,b+44|0);yo(F,J[b+44>>2],b+28|0,b+20|0);z=N[b+24>>2];C=N[b+20>>2];T=N[b+32>>2];fa=N[b+28>>2];i=Sp(D,t);J[b+16>>2]=i;T=Q(fa-T);E=(T>=Q(0)?.5:-.5)+ +T;Wa:{if(R(E)<2147483648){h=~~E;break Wa}h=-2147483648}if(!i){h= -1;break Va}Cr(i,b+40|0,b+36|0,0,0);k=cg(J[g+72>>2],J[b+44>>2]);J[b+12>>2]=k;z=Q(C-z);E=(z>=Q(0)?.5:-.5)+ +z;Xa:{if(R(E)<2147483648){l=~~E;break Xa}l=-2147483648}d=!k;Ya:{if(d|!p)break Ya;d=d?-1:J[k>>2];i=k?J[k+4>>2]:-1;o=DM((J[b+40>>2]-h|0)-6|0,(J[b+36>>2]-l|0)-6|0,d,i);J[b+48>>2]=o;e=0;o=vD(j,o);J[b+56>>2]=o;CM(b+48|0);u=0;r=!o;if(r)break Ya;e=uh(r?-1:J[o>>2],o?J[o+4>>2]:-1,1);J[b+52>>2]=e;wf(e,o);uf(e,-1,-1,d,i,12,k,0,0);ck(e,b+60|0,p);u=J[b+60>>2];wf(e,o);uf(e,0,-1,d,i,12,k,0,0);ck(e,b+60|0,p); -r=J[b+60>>2];wf(e,o);uf(e,1,-1,d,i,12,k,0,0);ck(e,b+60|0,p);q=J[b+60>>2];wf(e,o);uf(e,-1,0,d,i,12,k,0,0);ck(e,b+60|0,p);x=J[b+60>>2];wf(e,o);uf(e,0,0,d,i,12,k,0,0);ck(e,b+60|0,p);s=J[b+60>>2];wf(e,o);uf(e,1,0,d,i,12,k,0,0);ck(e,b+60|0,p);y=J[b+60>>2];wf(e,o);uf(e,-1,1,d,i,12,k,0,0);ck(e,b+60|0,p);A=J[b+60>>2];wf(e,o);uf(e,0,1,d,i,12,k,0,0);ck(e,b+60|0,p);v=J[b+60>>2];wf(e,o);uf(e,1,1,d,i,12,k,0,0);ck(e,b+60|0,p);d=(r|0)<(u|0)?r:u;e=(d|0)>(q|0);d=e?q:d;k=(d|0)<=(x|0);d=(d|0)>(x|0)?x:d;o=(d|0)<=(s| -0);q=o?k?e?1:(r|0)>=(u|0)?-1:0:-1:0;d=(d|0)>(s|0)?s:d;u=(d|0)<=(y|0);e=(d|0)>(y|0)?y:d;d=(e|0)>(A|0);e=d?A:e;i=(e|0)>(v|0);r=J[b+60>>2]<((i?v:e)|0);e=r?1:i?0:d?-1:u?q:1;u=r?1:i?1:d?1:0-(k&(o&u))|0;wd(b+56|0);wd(b+52|0)}zl(G,Q(J[b+40>>2]+(e-h|0)|0),Q(J[b+36>>2]+(u-l|0)|0));CM(b+16|0);wd(b+12|0);t=t+1|0;if((m|0)!=(t|0))continue;break}qc(p);h=0}bc=b- -64|0;if(h)break ra;b=D?J[D>>2]:0;J[g+24>>2]=b+J[g+24>>2];_h(J[g+28>>2],Q(b|0))}J[g+20>>2]=J[g+20>>2]+1}wo(X);bk(V)}bc=U+16|0;h=J[j>>2];d=J[n+56>>2];e= -J[n+60>>2];Za:{if(d>>>0>>0){J[d>>2]=h;J[n+56>>2]=d+4;break Za}i=n+52|0;g=J[i>>2];l=d-g>>2;b=l+1|0;if(b>>>0>=1073741824)break ba;e=e-g|0;i=e>>1;i=e>>>0>=2147483644?1073741823:b>>>0>>0?i:b;if(i){if(i>>>0>=1073741824)break ca;b=rc(i<<2)}else b=0;e=b+(l<<2)|0;J[e>>2]=h;h=e+4|0;if((d|0)!=(g|0))while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(g|0))continue;break}J[n+60>>2]=b+(i<<2);J[n+56>>2]=h;J[n+52>>2]=e;if(!g)break Za;qc(g)}h=J[j+4>>2];d=J[n+68>>2];e=J[n+72>>2];_a:{if(d>>>0>>0){J[d>>2]= -h;J[n+68>>2]=d+4;break _a}i=n- -64|0;g=J[i>>2];l=d-g>>2;b=l+1|0;if(b>>>0>=1073741824)break aa;e=e-g|0;i=e>>1;i=e>>>0>=2147483644?1073741823:b>>>0>>0?i:b;if(i){if(i>>>0>=1073741824)break ca;b=rc(i<<2)}else b=0;e=b+(l<<2)|0;J[e>>2]=h;h=e+4|0;if((d|0)!=(g|0))while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(g|0))continue;break}J[n+72>>2]=b+(i<<2);J[n+68>>2]=h;J[n+64>>2]=e;if(!g)break _a;qc(g)}wd(ja+12|0);bc=ja+16|0;break $}kj(h);B()}Sd();B()}kj(i);B()}kj(i);B()}wd(c- -64|0);J[c+92>>2]=0;d=0;h=0; -k=bc-72304|0;bc=k;g=J[n>>2];o=J[g+20>>2];e=J[J[g+72>>2]>>2];J[k+72300>>2]=0;J[k+72292>>2]=0;J[k+72296>>2]=0;$a:{ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{if(e){if(e>>>0>=1073741824){J[695492]=0;_(1587,k+72292|0);a=J[695492];J[695492]=0;if((a|0)==1)break hb;break ab}J[695492]=0;b=e<<2;h=$(4,b|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break hb;J[k+72292>>2]=h;i=b+h|0;J[k+72300>>2]=i;wc(h,0,b);J[k+72296>>2]=i}b=J[g+96>>2];if(J[b+4>>2]>0){while(1){J[695492]=0;jj(b,d,k+60|0);b=J[695492];J[695492]=0;if((b|0)==1)break gb; -b=(J[k+60>>2]<<2)+h|0;J[b>>2]=J[b>>2]+1;d=d+1|0;g=J[n>>2];b=J[g+96>>2];if((d|0)>2])continue;break}e=J[J[g+72>>2]>>2]}i=0;J[k+72288>>2]=0;J[k+72280>>2]=0;J[k+72284>>2]=0;if((e|0)>0)break fb;b=0;break eb}d=Z()|0;a=J[k+72292>>2];if(!a)break bb;J[k+72296>>2]=a;qc(a);break bb}d=Z()|0;break cb}ib:{while(1){b=J[(i<<2)+h>>2];if(!b){J[695492]=0;ka(495);a=J[695492];J[695492]=0;if((a|0)!=1)break ab;d=Z()|0;break db}jb:{kb:{if((b|0)==1&(o|0)!=1)break kb;d=J[k+72284>>2];l=J[k+72288>>2];if(d>>>0>>0){J[d>> -2]=i;J[k+72284>>2]=d+4;break kb}lb:{mb:{e=J[k+72280>>2];m=d-e>>2;b=m+1|0;nb:{if(b>>>0>=1073741824){J[695492]=0;_(1587,k+72280|0);break nb}l=l-e|0;j=l>>1;l=l>>>0>=2147483644?1073741823:b>>>0>>0?j:b;if(!l){s=0;break lb}if(l>>>0<1073741824)break mb;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break ab;d=Z()|0;break db}J[695492]=0;s=$(4,l<<2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break jb}b=(m<<2)+s|0;J[b>>2]=i;m=b+4|0;if((d|0)!=(e|0))while(1){b=b-4|0;d=d-4|0;J[b>>2]=J[d>>2];if((d|0)!=(e| -0))continue;break}J[k+72288>>2]=(l<<2)+s;J[k+72284>>2]=m;J[k+72280>>2]=b;if(!e)break kb;qc(e);g=J[n>>2]}i=i+1|0;if((i|0)>=J[J[g+72>>2]>>2])break ib;continue}break}d=Z()|0;break db}i=J[k+72280>>2];b=J[k+72284>>2]}J[n+48>>2]=b-i>>2;ob:{d=J[g+100>>2];if(J[d+4>>2]<=0)break ob;l=n+40|0;j=n+28|0;m=0;pb:{qb:{while(1){J[695492]=0;jj(d,m,k+60|0);b=J[695492];J[695492]=0;if((b|0)==1)break pb;e=J[k+60>>2];i=j;d=i;b=J[d>>2];rb:{sb:{if(!b)break sb;while(1){d=b;b=J[b+16>>2];if((b|0)>(e|0)){i=d;b=J[d>>2];if(b)continue; -break sb}if((b|0)>=(e|0)){g=d;break rb}b=J[d+4>>2];if(b)continue;break}i=d+4|0}J[695492]=0;g=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break pb;J[g+16>>2]=e;J[g+8>>2]=d;J[g>>2]=0;J[g+4>>2]=0;J[g+28>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[i>>2]=g;e=g;b=J[J[n+24>>2]>>2];if(b){J[n+24>>2]=b;e=J[i>>2]}h=J[j>>2];b=(h|0)==(e|0);H[e+12|0]=b;tb:{if(b)break tb;while(1){b=J[e+8>>2];if(K[b+12|0])break tb;ub:{d=J[b+8>>2];i=J[d>>2];if((i|0)==(b|0)){i=J[d+4>>2];if(!(!i|K[i+12|0]))break ub;vb:{if(J[b>>2]==(e|0)){e= -b;break vb}e=J[b+4>>2];i=J[e>>2];J[b+4>>2]=i;h=b;if(i){J[i+8>>2]=b;d=J[b+8>>2];h=J[d>>2]}J[e+8>>2]=d;J[((b|0)==(h|0)?d:d+4|0)>>2]=e;J[e>>2]=b;J[b+8>>2]=e;d=J[e+8>>2];b=J[d>>2]}H[e+12|0]=1;H[d+12|0]=0;e=J[b+4>>2];J[d>>2]=e;if(e)J[e+8>>2]=d;e=J[d+8>>2];J[b+8>>2]=e;J[e+((J[e>>2]!=(d|0))<<2)>>2]=b;J[b+4>>2]=d;J[d+8>>2]=b;break tb}if(!(K[i+12|0]|!i))break ub;wb:{if(J[b>>2]!=(e|0)){e=b;break wb}i=J[e+4>>2];J[b>>2]=i;if(i){J[i+8>>2]=b;d=J[b+8>>2]}J[e+8>>2]=d;J[(J[d>>2]==(b|0)?d:d+4|0)>>2]=e;J[e+4>>2]=b; -J[b+8>>2]=e;d=J[e+8>>2]}H[e+12|0]=1;H[d+12|0]=0;b=J[d+4>>2];e=J[b>>2];J[d+4>>2]=e;if(e)J[e+8>>2]=d;e=J[d+8>>2];J[b+8>>2]=e;J[e+((J[e>>2]!=(d|0))<<2)>>2]=b;J[b>>2]=d;J[d+8>>2]=b;break tb}H[b+12|0]=1;H[d+12|0]=(d|0)==(h|0);H[i+12|0]=1;e=d;if((d|0)!=(h|0))continue;break}}J[n+32>>2]=J[n+32>>2]+1}d=J[g+24>>2];xb:{if((d|0)!=J[g+28>>2]){J[d>>2]=m;J[g+24>>2]=d+4;break xb}yb:{zb:{h=g+20|0;e=J[h>>2];b=d-e|0;p=b>>2;i=p+1|0;Ab:{if(i>>>0>=1073741824){J[695492]=0;_(1589,h|0);break Ab}h=b>>1;i=b>>>0>=2147483644? -1073741823:h>>>0>i>>>0?h:i;if(!i){h=0;break yb}if(i>>>0<1073741824)break zb;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break ab;d=Z()|0;break db}J[695492]=0;h=$(4,i<<2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break pb}b=(p<<2)+h|0;J[b>>2]=m;p=b+4|0;if((d|0)!=(e|0))while(1){b=b-4|0;d=d-4|0;J[b>>2]=J[d>>2];if((d|0)!=(e|0))continue;break}J[g+28>>2]=(i<<2)+h;J[g+24>>2]=p;J[g+20>>2]=b;if(!e)break xb;qc(e)}b=J[J[n>>2]+96>>2];J[695492]=0;jj(b,m,k+24|0);b=J[695492];J[695492]=0;if((b|0)==1)break qb; -Bb:{p=J[k+24>>2];Cb:{if((o|0)==1|J[J[k+72292>>2]+(p<<2)>>2]!=1)break Cb;e=J[k+60>>2];i=l;d=i;b=J[d>>2];Db:{Eb:{if(!b)break Eb;while(1){d=b;b=J[b+16>>2];if((b|0)>(e|0)){i=d;b=J[d>>2];if(b)continue;break Eb}if((b|0)>=(e|0)){g=d;break Db}b=J[d+4>>2];if(b)continue;break}i=d+4|0}J[695492]=0;g=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break qb;J[g+16>>2]=e;J[g+8>>2]=d;J[g>>2]=0;J[g+4>>2]=0;J[g+28>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[i>>2]=g;e=g;b=J[J[n+36>>2]>>2];if(b){J[n+36>>2]=b;e=J[i>>2]}h=J[l>>2]; -b=(h|0)==(e|0);H[e+12|0]=b;Fb:{if(b)break Fb;while(1){b=J[e+8>>2];if(K[b+12|0])break Fb;Gb:{d=J[b+8>>2];i=J[d>>2];if((i|0)==(b|0)){i=J[d+4>>2];if(!(!i|K[i+12|0]))break Gb;Hb:{if(J[b>>2]==(e|0)){e=b;break Hb}e=J[b+4>>2];i=J[e>>2];J[b+4>>2]=i;h=b;if(i){J[i+8>>2]=b;d=J[b+8>>2];h=J[d>>2]}J[e+8>>2]=d;J[((b|0)==(h|0)?d:d+4|0)>>2]=e;J[e>>2]=b;J[b+8>>2]=e;d=J[e+8>>2];b=J[d>>2]}H[e+12|0]=1;H[d+12|0]=0;e=J[b+4>>2];J[d>>2]=e;if(e)J[e+8>>2]=d;e=J[d+8>>2];J[b+8>>2]=e;J[e+((J[e>>2]!=(d|0))<<2)>>2]=b;J[b+4>>2]= -d;J[d+8>>2]=b;break Fb}if(!(K[i+12|0]|!i))break Gb;Ib:{if(J[b>>2]!=(e|0)){e=b;break Ib}i=J[e+4>>2];J[b>>2]=i;if(i){J[i+8>>2]=b;d=J[b+8>>2]}J[e+8>>2]=d;J[(J[d>>2]==(b|0)?d:d+4|0)>>2]=e;J[e+4>>2]=b;J[b+8>>2]=e;d=J[e+8>>2]}H[e+12|0]=1;H[d+12|0]=0;b=J[d+4>>2];e=J[b>>2];J[d+4>>2]=e;if(e)J[e+8>>2]=d;e=J[d+8>>2];J[b+8>>2]=e;J[e+((J[e>>2]!=(d|0))<<2)>>2]=b;J[b>>2]=d;J[d+8>>2]=b;break Fb}H[b+12|0]=1;H[d+12|0]=(d|0)==(h|0);H[i+12|0]=1;e=d;if((d|0)!=(h|0))continue;break}}J[n+44>>2]=J[n+44>>2]+1}d=J[g+24>>2]; -i=J[g+28>>2];if(d>>>0>>0){J[d>>2]=p;J[g+24>>2]=d+4;break Cb}Jb:{Kb:{h=g+20|0;e=J[h>>2];u=d-e>>2;b=u+1|0;Lb:{if(b>>>0>=1073741824){J[695492]=0;_(1587,h|0);break Lb}i=i-e|0;h=i>>1;i=i>>>0>=2147483644?1073741823:b>>>0>>0?h:b;if(!i){h=0;break Jb}if(i>>>0<1073741824)break Kb;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break ab;d=Z()|0;break db}J[695492]=0;h=$(4,i<<2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Bb}b=(u<<2)+h|0;J[b>>2]=p;p=b+4|0;if((d|0)!=(e|0))while(1){b=b-4|0;d=d-4|0; -J[b>>2]=J[d>>2];if((d|0)!=(e|0))continue;break}J[g+28>>2]=(i<<2)+h;J[g+24>>2]=p;J[g+20>>2]=b;if(!e)break Cb;qc(e)}m=m+1|0;g=J[n>>2];d=J[g+100>>2];if((m|0)>2])continue;break ob}break}d=Z()|0;break db}d=Z()|0;break db}d=Z()|0;break db}i=J[g+20>>2];h=J[651370];d=0;e=J[J[g+72>>2]>>2];if(e>>>0>=2){b=e;while(1){d=d+1|0;b=b>>1;if(b>>>0>1)continue;break}}J[k>>2]=i;J[k+4>>2]=e;J[k+8>>2]=((e&e-1)!=0)+d;cd(h,226218,k);b=J[n>>2];J[695492]=0;$(1590,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){d=Z()|0;break db}J[695492]= -0;_(1591,k+60|0);b=J[695492];J[695492]=0;Mb:{Nb:{if((b|0)!=1){if(K[n+12|0])break Nb;break Mb}d=Z()|0;break db}b=J[J[n>>2]+20>>2];h=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}J[k+48>>2]=0;J[k+40>>2]=0;J[k+44>>2]=0;J[k+32>>2]=0;J[k+36>>2]=0;d=J[n+92>>2];b=d;if(!b)b=J[J[n>>2]+72>>2];J[695492]=0;la(1592,k+60|0,b|0,k+72280|0,n+76|0,!d|0);b=J[695492];J[695492]=0;Ob:{Pb:{if((b|0)!=1){e=0;J[695492]=0;d=J[k+80>>2];b=J[k+72>>2];g=J[b+4>>2];i=J[b>>2];b=J[695492];J[695492]=0;if((b|0)==1)break Pb;l=J[k+72284>>2]; -m=J[k+72280>>2];b=J[n+16>>2];J[n+20>>2]=b;J[k+24>>2]=b;J[n+16>>2]=b+1;g=P(g-i>>2,20480)+d|0;J[k+56>>2]=g+18;J[k+28>>2]=0;J[k+52>>2]=0;J[k+36>>2]=1;d=K[n+12|0];b=zc((g+(d?13:0)|0)+29|0);if(d){H[b+9|0]=h;H[b+10|0]=h>>>8;H[b+11|0]=h>>>16;H[b+12|0]=h>>>24;H[b+8|0]=1;H[b|0]=151;H[b+1|0]=74;H[b+2|0]=66;H[b+3|0]=50;H[b+4|0]=13;H[b+5|0]=10;H[b+6|0]=26;H[b+7|0]=10;e=13}J[695492]=0;da(1594,k+24|0,b+e|0);d=J[695492];J[695492]=0;if((d|0)==1)break Ob;d=J[k+24>>2];i=((M[k+52>>2]<256?11:12)+e|0)+(J[k+44>>2]-J[k+ -40>>2]>>2<<(d>>>0>=257?d>>>0<65537?1:2:0))|0;d=i+b|0;e=l-m>>2;e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[d+14|0]=e;H[d+15|0]=e>>>8;h=e>>>16|0;H[d+16|0]=h;H[d+17|0]=e>>>24;H[d+10|0]=e;H[d+11|0]=e>>>8;H[d+12|0]=h;H[d+13|0]=e>>>24;H[d+2|0]=3;H[d+3|0]=255;H[d+4|0]=253;H[d+5|0]=255;H[d+6|0]=2;H[d+7|0]=254;H[d+8|0]=254;H[d+9|0]=254;H[d|0]=0;H[d+1|0]=0;J[695492]=0;d=k+60|0;e=i+18|0;da(1595,d|0,e+b|0);i=J[695492];J[695492]=0;if((i|0)==1)break Ob;J[695492]=0;Cx(d);d=J[695492];J[695492]=0;if((d|0)==1)break Ob; -J[c+92>>2]=e+g;d=J[k+40>>2];if(d){J[k+44>>2]=d;qc(d)}d=J[k+72280>>2];if(d){J[k+72284>>2]=d;qc(d)}d=J[k+72292>>2];if(d)qc(d);bc=k+72304|0;break $a}d=Z()|0;break db}d=Z()|0;break db}d=Z()|0;a=J[k+40>>2];if(!a)break db;J[k+44>>2]=a;qc(a)}a=J[k+72280>>2];if(a){J[k+72284>>2]=a;qc(a)}h=J[k+72292>>2]}if(!h)break bb;J[k+72296>>2]=h;qc(h);ba(d|0);B()}ba(d|0);B()}B()}Qb:{Rb:{Sb:{h=b;if(b){Tb:{Ub:{Vb:{if(K[a+1|0]){Wb:{if(H[f+11|0]>=0){J[c+24>>2]=J[f+8>>2];b=J[f+4>>2];J[c+16>>2]=J[f>>2];J[c+20>>2]=b;break Wb}Re(c+ -16|0,J[f>>2],J[f+4>>2])}J[695492]=0;b=c+48|0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=413844;d=J[695492];J[695492]=0;if((d|0)==1)break Vb;J[695492]=0;d=aa(17,b|0,c+16|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Sb;Xb:{if(!d){qc(h);J[695492]=0;_(1585,n|0);e=J[695492];J[695492]=0;if((e|0)!=1)break Xb;break Sb}J[695492]=0;ga(42,b|0,h|0,J[c+92>>2])|0;e=J[695492];J[695492]=0;if((e|0)==1)break Sb;J[695492]=0;_(21,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break Sb}ve(b);if(H[c+27|0]<0)qc(J[c+16>>2]); -b=0;if(!d)break a}qc(h);i=0;s=0;m=0;u=0;x=0;A=0;j=bc-144672|0;bc=j;s=J[J[n>>2]+20>>2]?s:K[n+12|0]!=0;VM(j+72452|0);J[j+72440>>2]=0;b=j+72432|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72424>>2]=0;J[j+72428>>2]=0;J[j+72408>>2]=0;b=j+72400|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72392|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72384|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72376>>2]=0;J[j+72380>>2]=0;J[j+72368>>2]=0;b=j+72360|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72352|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72344|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72336>>2]=0;J[j+72340>>2]=0;J[j+ -72328>>2]=0;b=j+72320|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72312|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72304|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72296>>2]=0;J[j+72300>>2]=0;H[j+72288|0]=0;J[j+72280>>2]=0;J[j+72284>>2]=0;J[j+72272>>2]=0;b=j+72264|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72256|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72248|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72240>>2]=0;J[j+72244>>2]=0;b=J[n+16>>2];J[j+72416>>2]=b;J[n+16>>2]=b+1;J[j+72420>>2]=48;J[j+72448>>2]=19;J[j+72444>>2]=1;b=J[J[n+52>>2]>>2];o=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[J[n+ -64>>2]>>2];p=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[n+4>>2];t=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[n+8>>2];r=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);U=K[n+88|0];J[j+72228>>2]=j+72232;J[j+72232>>2]=0;J[j+72236>>2]=0;e=n+40|0;f=e;Yb:{Zb:{_b:{$b:{ac:{bc:{b=e;d=J[b>>2];cc:{dc:{if(!d)break dc;while(1){b=d;f=J[b+16>>2];if((f|0)>0){f=b;d=J[b>>2];if(d)continue;break dc}if((f|0)>=0)break cc;d=J[b+4>>2];if(d)continue;break}f=b+4|0}J[695492]=0;d=$(4,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break bc; -J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[f>>2]=d;b=d;g=J[J[n+36>>2]>>2];if(g){J[n+36>>2]=g;b=J[f>>2]}Ic(J[n+40>>2],b);J[n+44>>2]=J[n+44>>2]+1}ec:{k=J[d+24>>2]==J[d+20>>2];if(k)g=0;else{J[695492]=0;_(1591,j+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break ec;b=J[n+16>>2];J[n+16>>2]=b+1;J[j+72380>>2]=0;J[j+72376>>2]=b;J[j+72404>>2]=1;i=J[n+92>>2];ia=i?i:J[J[n>>2]+72>>2];f=e;b=e;d=J[b>>2];fc:{gc:{if(!d)break gc;while(1){b=d;f=J[b+16>>2];if((f|0)>0){f=b;d= -J[b>>2];if(d)continue;break gc}if((f|0)>=0)break fc;d=J[b+4>>2];if(d)continue;break}f=b+4|0}J[695492]=0;d=$(4,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ec;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[f>>2]=d;b=d;g=J[J[n+36>>2]>>2];if(g){J[n+36>>2]=g;b=J[f>>2]}Ic(J[n+40>>2],b);J[n+44>>2]=J[n+44>>2]+1;i=J[n+92>>2]}J[695492]=0;la(1592,j+8|0,ia|0,d+20|0,j+72228|0,!i|0);b=J[695492];J[695492]=0;if((b|0)==1)break ec;f=e;b=e;d=J[b>>2];hc:{ic:{if(!d)break ic; -while(1){b=d;f=J[b+16>>2];if((f|0)>0){f=b;d=J[b>>2];if(d)continue;break ic}if((f|0)>=0)break hc;d=J[b+4>>2];if(d)continue;break}f=b+4|0}J[695492]=0;d=$(4,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ec;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[f>>2]=d;b=d;g=J[J[n+36>>2]>>2];if(g){J[n+36>>2]=g;b=J[f>>2]}Ic(J[n+40>>2],b);J[n+44>>2]=J[n+44>>2]+1}u=2;b=J[d+24>>2]-J[d+20>>2]>>2;ia=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[695492]=0;b=J[j+28>>2];d=J[j+20>> -2];f=J[d+4>>2];d=J[d>>2];g=J[695492];J[695492]=0;if((g|0)==1)break ec;J[j+72408>>2]=(P(f-d>>2,20480)+b|0)+18;m=255;x=253;A=3;g=254}D=J[n+48>>2];b=e;d=J[n+40>>2];jc:{kc:{if(!d)break kc;while(1){b=d;e=J[b+16>>2];if((e|0)>0){e=b;d=J[b>>2];if(d)continue;break kc}if((e|0)>=0)break jc;d=J[b+4>>2];if(d)continue;break}e=b+4|0}J[695492]=0;d=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break $b;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[e>>2]=d;b=d;f=J[J[n+36>> -2]>>2];if(f){J[n+36>>2]=f;b=J[e>>2]}Ic(J[n+40>>2],b);J[n+44>>2]=J[n+44>>2]+1}l=K[n+88|0]?J[J[n+100>>2]>>2]:0;y=J[d+20>>2];q=J[d+24>>2];e=n+28|0;f=e;lc:{b=e;d=J[b>>2];mc:{nc:{if(!d)break nc;while(1){b=d;f=J[b+16>>2];if((f|0)>0){f=b;d=J[b>>2];if(d)continue;break nc}if((f|0)>=0)break mc;d=J[b+4>>2];if(d)continue;break}f=b+4|0}J[695492]=0;d=$(4,32)|0;i=J[695492];J[695492]=0;if((i|0)==1)break lc;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[f>>2]=d;b=d;i=J[J[n+ -24>>2]>>2];if(i){J[n+24>>2]=i;b=J[f>>2]}Ic(J[n+28>>2],b);J[n+32>>2]=J[n+32>>2]+1}b=J[n>>2];v=J[n+92>>2];i=v;if(!i)i=J[b+72>>2];w=d+20|0;V=J[b+108>>2];F=J[b+96>>2];b=0;f=D+(q-y>>2)|0;if(f>>>0>=2){d=f;while(1){b=b+1|0;d=d>>1;if(d>>>0>1)continue;break}}D=J[n+96>>2];J[695492]=0;d=j+72452|0;Tb(1597,d|0,n+76|0,j+72228|0,w|0,V|0,i|0,F|0,1,((f&f-1)!=0)+b|0,0,0,l|0,D|0,!v|0);b=J[695492];J[695492]=0;if((b|0)==1)break lc;J[695492]=0;b=J[d+12>>2];q=J[d+20>>2]+P(J[b+4>>2]-J[b>>2]>>2,20480)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break $b;b=J[J[n+52>>2]>>2];l=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[J[n+64>>2]>>2];D=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);V=K[n+88|0];b=e;d=J[n+28>>2];oc:{pc:{if(!d)break pc;while(1){b=d;e=J[b+16>>2];if((e|0)>0){e=b;d=J[b>>2];if(d)continue;break pc}if((e|0)>=0)break oc;d=J[b+4>>2];if(d)continue;break}e=b+4|0}J[695492]=0;d=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break $b;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[e>>2]=d;f=d; -b=J[J[n+24>>2]>>2];if(b){J[n+24>>2]=b;f=J[e>>2]}Ic(J[n+28>>2],f);J[n+32>>2]=J[n+32>>2]+1}b=J[d+24>>2]-J[d+20>>2]>>2;y=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[n+16>>2];J[j+72240>>2]=b;J[n+16>>2]=b+1;J[j+72244>>2]=6;v=j+72256|0;w=J[n+20>>2];f=J[j+72260>>2];e=J[j+72264>>2];qc:{if(f>>>0>>0){J[f>>2]=w;J[j+72260>>2]=f+4;break qc}d=J[j+72256>>2];F=f-d>>2;b=F+1|0;if(b>>>0>=1073741824){J[695492]=0;_(1587,v|0);a=J[695492];J[695492]=0;if((a|0)==1)break $b;break Zb}e=e-d|0;i=e>>1;e=e>>>0>=2147483644?1073741823: -b>>>0>>0?i:b;rc:{if(!e){i=0;break rc}if(e>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break Zb;break $b}J[695492]=0;i=$(4,e<<2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break $b}b=(F<<2)+i|0;J[b>>2]=w;w=b+4|0;if((d|0)!=(f|0))while(1){b=b-4|0;f=f-4|0;J[b>>2]=J[f>>2];if((d|0)!=(f|0))continue;break}J[j+72264>>2]=(e<<2)+i;J[j+72260>>2]=w;J[j+72256>>2]=b;if(!d)break qc;qc(d)}if(k)break ac;f=J[j+72260>>2];if((f|0)!=J[j+72264>>2]){J[f>>2]=J[j+72376>>2];J[j+72260>>2]=f+4;break ac}d= -J[j+72256>>2];b=f-d|0;w=b>>2;e=w+1|0;if(e>>>0>=1073741824){J[695492]=0;_(1587,v|0);a=J[695492];J[695492]=0;if((a|0)!=1)break Zb;break $b}i=b>>1;e=b>>>0>=2147483644?1073741823:e>>>0>>0?i:e;sc:{if(!e){i=0;break sc}if(e>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break Zb;break $b}J[695492]=0;i=$(4,e<<2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break $b}b=(w<<2)+i|0;J[b>>2]=J[j+72376>>2];v=b+4|0;if((d|0)!=(f|0))while(1){b=b-4|0;f=f-4|0;J[b>>2]=J[f>>2];if((d|0)!=(f|0))continue; -break}J[j+72264>>2]=(e<<2)+i;J[j+72260>>2]=v;J[j+72256>>2]=b;if(!d)break ac;qc(d);break ac}break $b}break $b}f=Z()|0;break _b}b=K[n+88|0];J[j+72252>>2]=2;J[j+72272>>2]=q+(b?27:23);J[j+72268>>2]=1;tc:{uc:{if(k){e=0;break uc}J[695492]=0;b=J[j+20>>2];e=J[j+28>>2]+P(J[b+4>>2]-J[b>>2]>>2,20480)|0;b=J[695492];J[695492]=0;if((b|0)==1)break tc}d=K[n+12|0];if(d){b=J[n+16>>2];J[j+72336>>2]=b;J[n+16>>2]=b+1;J[j+72340>>2]=49;J[j+72364>>2]=1}if(s){b=J[n+16>>2];J[j+72296>>2]=b;J[n+16>>2]=b+1;J[j+72324>>2]=0;J[j+ -72300>>2]=51}i=J[j+72416>>2];v=i>>>0<65537?1:2;f=0;w=J[j+72436>>2]-J[j+72432>>2]|0;F=J[j+72444>>2];b=0;if(!k){b=J[j+72376>>2];b=(((M[j+72404>>2]<256?11:12)+e|0)+(J[j+72396>>2]-J[j+72392>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0)+18|0}X=J[j+72240>>2];X=X>>>0>=257?X>>>0<65537?1:2:0;I=J[j+72260>>2]-J[j+72256>>2]>>2;S=M[j+72268>>2]<256;G=K[n+88|0];if(d){d=J[j+72336>>2];f=(J[j+72356>>2]-J[j+72352>>2]>>2<<(d>>>0>=257?d>>>0<65537?1:2:0))+(M[j+72364>>2]<256?11:12)|0}if(s){d=J[j+72296>>2];d=(J[j+72316>>2]- -J[j+72312>>2]>>2<<(d>>>0>=257?d>>>0<65537?1:2:0))+(M[j+72324>>2]<256?11:12)|0}else d=0;i=(d+(((((((q+(F>>>0<256?11:12)|0)+(w>>2<<(i>>>0>=257?v:0))|0)+b|0)+(S?11:12)|0)+(G<<2)|0)+(I<>2];f=(J[j+72436>>2]-J[j+72432>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))+(M[j+72444>>2]<256?11:12)|0;b=f+d|0;H[b+17|0]=0;H[b+18|0]=0;H[b+16|0]=U;H[b+12|0]=r;H[b+13|0]=r>>>8;H[b+14|0]=r>>>16;H[b+15|0]=r>>> -24;H[b+8|0]=t;H[b+9|0]=t>>>8;H[b+10|0]=t>>>16;H[b+11|0]=t>>>24;H[b+4|0]=p;H[b+5|0]=p>>>8;H[b+6|0]=p>>>16;H[b+7|0]=p>>>24;H[b|0]=o;H[b+1|0]=o>>>8;H[b+2|0]=o>>>16;H[b+3|0]=o>>>24;b=f+19|0;if(!k){J[695492]=0;da(1594,j+72376|0,b+d|0);f=J[695492];J[695492]=0;if((f|0)==1)break tc;f=(M[j+72404>>2]<256?11:12)+b|0;b=J[j+72376>>2];o=f+(J[j+72396>>2]-J[j+72392>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0;f=o+d|0;b=ia;H[f+14|0]=b;ia=b>>>8|0;H[f+15|0]=ia;p=b>>>16|0;H[f+16|0]=p;r=b>>>24|0;H[f+17|0]=r;H[f+10|0]=b; -H[f+11|0]=ia;H[f+12|0]=p;H[f+13|0]=r;H[f+9|0]=g;H[f+8|0]=g;H[f+7|0]=g;H[f+6|0]=u;H[f+5|0]=m;H[f+4|0]=x;H[f+3|0]=m;H[f+2|0]=A;H[f|0]=0;H[f+1|0]=0;J[695492]=0;b=o+18|0;da(1595,j+8|0,b+d|0);f=J[695492];J[695492]=0;if((f|0)==1)break tc;b=b+e|0}J[695492]=0;da(1594,j+72240|0,b+d|0);e=J[695492];J[695492]=0;if((e|0)==1)break tc;e=(M[j+72268>>2]<256?11:12)+b|0;b=J[j+72240>>2];g=e+(J[j+72260>>2]-J[j+72256>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0;b=g+d|0;H[b+4|0]=D;H[b+5|0]=D>>>8;H[b+6|0]=D>>>16;H[b+7|0]=D>>> -24;H[b|0]=l;H[b+1|0]=l>>>8;H[b+2|0]=l>>>16;H[b+3|0]=l>>>24;e=J[j+72284>>2];f=J[j+72280>>2];H[b+8|0]=f;H[b+9|0]=f>>>8;H[b+10|0]=f>>>16;H[b+11|0]=f>>>24;H[b+12|0]=e;H[b+13|0]=e>>>8;H[b+14|0]=e>>>16;H[b+15|0]=e>>>24;H[b+16|0]=K[j+72288|0];e=V<<9;H[b+17|0]=e;H[b+18|0]=e>>>8;b=g+19|0;if(K[n+88|0]){b=b+d|0;H[b|0]=255;H[b+1|0]=255;H[b+2|0]=255;H[b+3|0]=255;b=g+23|0}e=b+d|0;H[e|0]=y;H[e+1|0]=y>>>8;H[e+2|0]=y>>>16;H[e+3|0]=y>>>24;J[695492]=0;b=b+4|0;da(1595,j+72452|0,b+d|0);e=J[695492];J[695492]=0;if((e|0)== -1)break tc;b=b+q|0;if(K[n+12|0]){J[695492]=0;da(1594,j+72336|0,b+d|0);e=J[695492];J[695492]=0;if((e|0)==1)break tc;e=(M[j+72364>>2]<256?11:12)+b|0;b=J[j+72336>>2];b=e+(J[j+72356>>2]-J[j+72352>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0}if(s){J[695492]=0;da(1594,j+72296|0,b+d|0);e=J[695492];J[695492]=0;if((e|0)==1)break tc;e=(M[j+72324>>2]<256?11:12)+b|0;b=J[j+72296>>2];b=e+(J[j+72316>>2]-J[j+72312>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0}if((b|0)!=(i|0)){J[695492]=0;ka(495);a=J[695492];J[695492]=0; -if((a|0)!=1)break Zb;break tc}J[695492]=0;Cx(j+72452|0);b=J[695492];J[695492]=0;if((b|0)==1)break tc;if(!k){J[695492]=0;Cx(j+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break tc}J[c+92>>2]=i;Dx(j+72228|0,J[j+72232>>2]);b=J[j+72256>>2];if(b){J[j+72260>>2]=b;qc(b)}b=J[j+72312>>2];if(b){J[j+72316>>2]=b;qc(b)}b=J[j+72352>>2];if(b){J[j+72356>>2]=b;qc(b)}b=J[j+72392>>2];if(b){J[j+72396>>2]=b;qc(b)}b=J[j+72432>>2];if(b){J[j+72436>>2]=b;qc(b)}bc=j+144672|0;break Yb}}f=Z()|0;i=J[j+72232>>2]}Dx(j+72228|0,i);a= -J[j+72256>>2];if(a){J[j+72260>>2]=a;qc(a)}a=J[j+72312>>2];if(a){J[j+72316>>2]=a;qc(a)}a=J[j+72352>>2];if(a){J[j+72356>>2]=a;qc(a)}a=J[j+72392>>2];if(a){J[j+72396>>2]=a;qc(a)}a=J[j+72432>>2];if(a){J[j+72436>>2]=a;qc(a)}ba(f|0);B()}B()}if(K[a+1|0])break Ub;break Tb}g=Z()|0;break Rb}b=K[a+31|0];e=b<<24>>24;vc:{wc:{xc:{f=(e|0)<0?J[a+24>>2]:b;b=f+5|0;if(b>>>0<1073741808){yc:{if(b>>>0<=1){J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;H[c+43|0]=b;g=c+32|0;break yc}g=b|3;if(g>>>0>=1073741823)break xc;i=g+1|0;g= -rc(i<<2);J[c+36>>2]=b;J[c+32>>2]=g;J[c+40>>2]=i|-2147483648}a=a+20|0;b=(e|0)<0?J[a>>2]:a;a=f<<2;a=Zc(g,b,a)+a|0;J[a+20>>2]=0;J[a+16>>2]=J[56718];b=J[56717];J[a+8>>2]=J[56716];J[a+12>>2]=b;b=J[56715];J[a>>2]=J[56714];J[a+4>>2]=b;J[695492]=0;a=c+16|0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=413844;b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;e=aa(17,a|0,c+32|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break wc;zc:{if(!e){qc(d);J[695492]=0;_(1585,n|0);b=J[695492];J[695492]=0;if((b|0)!=1)break zc; -break wc}J[695492]=0;ga(42,a|0,d|0,J[c+92>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break wc;J[695492]=0;_(21,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break wc}ve(a);if(H[c+43|0]<0)qc(J[c+32>>2]);b=0;if(!e)break a;break Tb}g=Z()|0;break vc}Id(c+32|0);B()}Sd();B()}g=Z()|0;ve(a)}if(H[c+43|0]>=0)break Qb;qc(J[c+32>>2]);break Qb}qc(d)}b=(h|0)!=0;ED(n);break a}g=Z()|0;ve(b)}if(H[c+27|0]>=0)break Qb;qc(J[c+16>>2]);ba(g|0);B()}ba(g|0);B()}b=Z()|0;ve(a);ba(b|0);B()}b=0}bc=c+96|0;return b|0}function Cv(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,L=0,O=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,ga=Q(0),ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=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,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0;Aa=bc-16|0;bc=Aa;a:{b:{if(e){if(!a)break b;if(!f)break a; -c:{if(!(K[a+8|0]&128)|J[a+192>>2]!=(b|0))break c;h=J[a+156>>2];Ha=h+P(b,5644)|0;r=J[Ha+5596>>2];if(!r){iA(Ha);break c}F=J[a+196>>2];t=J[a+76>>2];if(!t)t=J[a+72>>2];k=J[t>>2];g=J[t+4>>2];i=J[t+8>>2];j=J[t+12>>2];n=J[a+60>>2];m=J[a- -64>>2];Oa=h+P(b,5644)|0;l=J[Oa+5600>>2];ua=bc-16|0;bc=ua;J[F+36>>2]=b;h=J[J[F+28>>2]+76>>2];J[F+64>>2]=1;J[F+60>>2]=j;J[F+56>>2]=i;J[F+52>>2]=g;J[F+48>>2]=k;J[F+32>>2]=h+P(b,5644);qc(J[F+68>>2]);J[F+68>>2]=0;d:{e:{f:{if(n){T=ye(4,J[J[F+24>>2]+16>>2]);if(!T)break f;t=0; -if(n>>>0>=4){b=n&-4;h=0;while(1){j=t<<2;J[(J[j+m>>2]<<2)+T>>2]=1;J[(J[m+(j|4)>>2]<<2)+T>>2]=1;J[(J[m+(j|8)>>2]<<2)+T>>2]=1;J[(J[m+(j|12)>>2]<<2)+T>>2]=1;t=t+4|0;h=h+4|0;if((b|0)!=(h|0))continue;break}}b=n&3;if(b)while(1){J[(J[m+(t<<2)>>2]<<2)+T>>2]=1;t=t+1|0;ja=ja+1|0;if((b|0)!=(ja|0))continue;break}J[F+68>>2]=T}g:{h:{i=J[F+24>>2];ba=J[i+16>>2];i:{if(!ba)break i;t=0;j:{while(1){k:{if(J[(t<<2)+T>>2]?0:T)break k;m=J[i+24>>2]+P(t,52)|0;b=J[m>>2];if(!b)break e;k=b;j=k-1|0;b=J[F+48>>2];n=j+b|0;h=0-!k| -0;n=Fzb(n,b>>>0>n>>>0?h+1|0:h,k,0);b=J[m+4>>2];if(!b)break e;g=j;j=J[F+56>>2];m=g+j|0;k=Fzb(m,j>>>0>m>>>0?h+1|0:h,k,0);m=b;j=b-1|0;b=J[F+60>>2];o=j+b|0;h=0-!m|0;b=Fzb(o,b>>>0>o>>>0?h+1|0:h,m,0);g=j;j=J[F+52>>2];o=g+j|0;j=Fzb(o,j>>>0>o>>>0?h+1|0:h,m,0);m=J[J[J[F+20>>2]>>2]+20>>2]+P(t,76)|0;g=J[m+20>>2]-J[m+24>>2]|0;if(g>>>0>31)break k;h=n-J[m>>2]|0;l:{if((h>>>0<=n>>>0?h:0)>>>g|0)break l;h=j-J[m+4>>2]|0;if((h>>>0<=j>>>0?h:0)>>>g|0)break l;j=J[m+8>>2];h=j-k|0;if((h>>>0<=j>>>0?h:0)>>>g|0)break l;h=J[m+ -12>>2];b=h-b|0;if(!((b>>>0<=h>>>0?b:0)>>>g|0))break k}J[F+64>>2]=0;break j}t=t+1|0;if((ba|0)!=(t|0))continue;break}if(!J[F+64>>2])break j;if(!ba)break i;b=0;while(1){m=J[J[J[F+20>>2]>>2]+20>>2]+P(b,76)|0;h=(J[m+28>>2]+P(J[m+24>>2],152)|0)-152|0;n=J[h+4>>2];g=J[h+12>>2];i=J[h>>2];j=J[h+8>>2];h=J[F+68>>2];m:{if(J[h+(b<<2)>>2]?0:h)break m;k=g-n|0;j=j-i|0;n:{if((g|0)==(n|0))break n;Dzb(k,0,j,0);if(!fc)break n;ja=0;Hc(f,1,2338255,0);break f}h=P(j,k);if(h>>>0>=1073741824){ja=0;Hc(f,1,2338255,0);break f}j= -h<<2;J[m+44>>2]=j;o:{p:{q:{r:{h=J[m+36>>2];if(h){if(j>>>0<=M[m+48>>2])break m;if(J[m+40>>2])break r}h=Xk(j);J[m+36>>2]=h;i=h;h=J[m+44>>2];if(!(h?i:1))break q;J[m+48>>2]=h;t=m+40|0;break o}t=m+40|0;qc(h);h=Xk(J[m+44>>2]);J[m+36>>2]=h;if(h)break p;J[m+48>>2]=0;J[m+44>>2]=0;J[m+40>>2]=0}ja=0;Hc(f,1,2338255,0);break f}J[m+48>>2]=J[m+44>>2]}J[t>>2]=1}b=b+1|0;i=J[F+24>>2];if(b>>>0>2])continue;break}break i}if(!ba)break i;p=J[i+24>>2];y=J[J[J[F+20>>2]>>2]+20>>2];h=0;while(1){s:{if(J[(h<<2)+T>>2]? -0:T)break s;t=p+P(h,52)|0;j=J[t>>2];if(!j)break e;b=y+P(h,76)|0;k=J[b>>2];o=j;m=j-1|0;j=J[F+48>>2];q=m+j|0;n=0-!o|0;g=n;j=Fzb(q,j>>>0>q>>>0?g+1|0:g,o,0);v=j>>>0>>0?k:j;J[b+56>>2]=v;j=J[t+4>>2];if(!j)break e;q=j;k=j-1|0;t=J[F+52>>2];x=k+t|0;j=0-!j|0;g=j;A=J[b+4>>2];g=Fzb(x,t>>>0>x>>>0?g+1|0:g,q,0);t=g>>>0>>0?A:g;J[b+60>>2]=t;g=n;A=J[b+8>>2];n=m;m=J[F+56>>2];x=n+m|0;g=Fzb(x,m>>>0>x>>>0?g+1|0:g,o,0);o=g>>>0>A>>>0?A:g;J[b+64>>2]=o;g=j;n=J[b+12>>2];j=k;k=J[F+60>>2];m=j+k|0;j=Fzb(m,k>>>0>m>>>0?g+ -1|0:g,q,0);q=j>>>0>n>>>0?n:j;J[b+68>>2]=q;if(o>>>0>>0|q>>>0>>0)break h;m=J[b+20>>2];if(!m)break s;D=J[b+28>>2];n=v;u=0;v=0;k=0;while(1){j=D+P(v,152)|0;A=m+(u^-1)|0;b=A&31;if((A&63)>>>0>=32){g=-1<>>32-b;b=-1<>>0>x>>>0?g+1|0:g;L=A&31;if((A&63)>>>0>=32)g=g>>>L|0;else g=((1<>>L;J[j+148>>2]=g;g=b;x=o+w|0;g=x>>>0>>0?g+1|0:g;L=A&31;if((A&63)>>>0>=32)g=g>>>L|0;else g=((1<>>L;J[j+144>>2]=g;g=b;x=t+w| -0;g=x>>>0>>0?g+1|0:g;L=A&31;if((A&63)>>>0>=32)g=g>>>L|0;else g=((1<>>L;J[j+140>>2]=g;g=b;b=n+w|0;g=b>>>0>>0?g+1|0:g;L=j;j=A&31;if((A&63)>>>0>=32)b=g>>>j|0;else b=((1<>>j;J[L+136>>2]=b;u=u+1|0;g=k;b=v+1|0;g=b?g:g+1|0;v=b;k=g;if((m|0)!=(b|0)|g)continue;break}}h=h+1|0;if((ba|0)!=(h|0))continue;break}}ja=0;J[ua+8>>2]=0;b=J[F+28>>2];E=ye(1,8);if(E){J[E+4>>2]=b;J[E>>2]=i}if(!E)break f;Z=J[J[F+20>>2]>>2];$=bc-80|0;bc=$;G=J[F+36>>2];b=P(G,5644);v=J[E+4>>2];ea=b+J[v+ -76>>2]|0;ca=J[ea+420>>2];_=J[E>>2];j=0;t=0;C=bc-32|0;bc=C;t:{u:{if(v){if(G>>>0>=P(J[v+28>>2],J[v+24>>2])>>>0)break u;ha=J[v+76>>2];ba=ha+b|0;ka=J[ba+420>>2];W=J[_+16>>2];q=_e(P(W,528));v:{if(!q)break v;h=_e(W<<2);w:{if(!h){h=q;break w}x:{y:{z:{if(G>>>0>2],J[v+24>>2])>>>0){k=J[v+76>>2];g=P(G,5644);o=J[(k+g|0)+420>>2];b=o+1|0;i=ye(b,240);if(!i)break y;if(b){m=(g+k|0)+5584|0;O=J[_+16>>2];b=i;while(1){J[b+236>>2]=f;g=ye(O,16);J[b+200>>2]=g;if(!g)break z;g=J[_+16>>2];J[b+196>>2]=g;p=0;O=0;if(g)while(1){n= -J[b+200>>2]+(p<<4)|0;k=J[m>>2]+P(p,1080)|0;g=ye(J[k+4>>2],16);J[n+12>>2]=g;if(!g)break z;J[n+8>>2]=J[k+4>>2];p=p+1|0;O=J[_+16>>2];if(p>>>0>>0)continue;break}b=b+240|0;g=(o|0)==(V|0);V=V+1|0;if(!g)continue;break}}b=i;break x}fa(2341708,2338975,1040,2361277);B()}b=J[i+4>>2];if(b){qc(b);J[i+4>>2]=0}b=i;while(1){p=J[b+200>>2];if(p){O=0;V=J[b+196>>2];if(V){while(1){g=J[p+12>>2];if(g){qc(g);J[p+12>>2]=0;V=J[b+196>>2]}p=p+16|0;O=O+1|0;if(O>>>0>>0)continue;break}p=J[b+200>>2]}qc(p);J[b+200>>2]=0}b= -b+240|0;g=(o|0)==(U|0);U=U+1|0;if(!g)continue;break}qc(i)}b=0}if(b){A:{if(!W)break A;i=q;if(W>>>0>=8){g=W&-8;while(1){k=z<<2;J[k+h>>2]=i;J[(k|4)+h>>2]=i+528;J[(k|8)+h>>2]=i+1056;J[(k|12)+h>>2]=i+1584;J[(k|16)+h>>2]=i+2112;J[(k|20)+h>>2]=i+2640;J[(k|24)+h>>2]=i+3168;J[(k|28)+h>>2]=i+3696;z=z+8|0;i=i+4224|0;j=j+8|0;if((g|0)!=(j|0))continue;break}}j=W&7;if(!j)break A;while(1){J[(z<<2)+h>>2]=i;z=z+1|0;i=i+528|0;s=s+1|0;if((j|0)!=(s|0))continue;break}}va=ka+1|0;D=h;O=0;B:{C:{j=J[v+24>>2];if(G>>>0>2])>>>0){i=J[(J[v+76>>2]+P(G,5644)|0)+5584>>2];h=J[_+24>>2];k=(G>>>0)/(j>>>0)|0;g=J[v+4>>2]+P(J[v+12>>2],G-P(k,j)|0)|0;j=J[_>>2];J[C+20>>2]=g>>>0>j>>>0?g:j;j=g+J[v+12>>2]|0;g=g>>>0>j>>>0?-1:j;j=J[_+8>>2];J[C+16>>2]=g>>>0>>0?g:j;g=J[v+8>>2]+P(k,J[v+16>>2])|0;j=J[_+4>>2];J[C+12>>2]=g>>>0>j>>>0?g:j;j=g+J[v+16>>2]|0;g=g>>>0>j>>>0?-1:j;j=J[_+12>>2];J[C+8>>2]=g>>>0>>0?g:j;J[C+24>>2]=0;J[C+28>>2]=0;J[C+4>>2]=2147483647;J[C>>2]=2147483647;if(J[_+16>>2])while(1){j=D?J[D+(O<<2)>>2]:0;g=J[h>>2]; -if(!g)break C;v=g;m=g-1|0;k=J[C+20>>2];o=m+k|0;n=0-!g|0;g=n;o=Fzb(o,k>>>0>o>>>0?g+1|0:g,v,0);k=J[h+4>>2];if(!k)break C;n=m;m=J[C+16>>2];A=n+m|0;n=Fzb(A,m>>>0>A>>>0?g+1|0:g,v,0);A=k;v=k-1|0;k=J[C+8>>2];x=v+k|0;m=0-!A|0;g=m;k=Fzb(x,k>>>0>x>>>0?g+1|0:g,A,0);y=v;v=J[C+12>>2];x=y+v|0;g=Fzb(x,v>>>0>x>>>0?g+1|0:g,A,0);m=J[i+4>>2];if(m>>>0>M[C+28>>2]){J[C+28>>2]=m;m=J[i+4>>2]}if(m){v=k;k=0;x=n;A=g;w=0;V=0;while(1){g=(V<<2)+i|0;n=J[g+944>>2];y=J[g+812>>2];p=0;if(j){J[j+4>>2]=n;J[j>>2]=y;p=j+8|0}m=m-1|0;u= -y+m|0;D:{if(u>>>0>31)break D;j=J[h>>2];if(j>>>0>-1>>>u>>>0)break D;g=J[C+4>>2];j=j<>2]=g>>>0>>0?g:j}u=m+n|0;E:{if(u>>>0>31)break E;j=J[h+4>>2];if(j>>>0>-1>>>u>>>0)break E;g=J[C>>2];j=j<>2]=g>>>0>>0?g:j}j=0;u=m&31;if((m&63)>>>0>=32){g=-1<>>32-u;u=-1<>>0>L>>>0?g+1|0:g;z=0;u=L;L=m&31;if((m&63)>>>0>=32)L=g>>>L|0;else L=((1<>>L;u=n&31;if((n&63)>>>0>=32){g=1<>>32- -u;u=s}aa=L+u|0;g=g+z|0;z=(u>>>0>aa>>>0?g+1|0:g)-!aa|0;g=aa-1|0;u=n&31;if((n&63)>>>0>=32)z=z>>>u|0;else z=((1<>>u;g=w+la|0;u=A+ma|0;g=u>>>0>>0?g+1|0:g;s=z;z=m&31;if((m&63)>>>0>=32)g=g>>>z|0;else g=((1<>>z;aa=(g|0)!=(L|0)?s-(g>>>n|0)&-1>>>n:0;g=w+la|0;u=x+ma|0;g=u>>>0>>0?g+1|0:g;L=0;n=y;z=m&31;if((m&63)>>>0>=32)z=g>>>z|0;else z=((1<>>z;u=y&31;if((y&63)>>>0>=32){g=1<>>32-u;u=s}S=z+u|0;g=g+L|0;L=(u>>>0>S>>>0?g+1|0:g)- -!S|0;g=S-1|0;u=n&31;if((n&63)>>>0>=32)u=L>>>u|0;else u=((1<>>u;g=w+la|0;n=o+ma|0;g=n>>>0>>0?g+1|0:g;L=u;u=m&31;if((m&63)>>>0>=32)g=g>>>u|0;else g=((1<>>u;g=(g|0)!=(z|0)?L-(g>>>y|0)&-1>>>y:0;if(p){J[p+4>>2]=aa;J[p>>2]=g;j=p+8|0}g=P(g,aa);if(g>>>0>M[C+24>>2])J[C+24>>2]=g;V=V+1|0;if(V>>>0>2])continue;break}}h=h+52|0;i=i+1080|0;O=O+1|0;if(O>>>0>2])continue;break}break B}fa(2342144,2338975,916,2361291);B()}fa(2342591,2342825,172,2343334);B()}L=J[C+28>> -2];w=J[C+24>>2];J[b+4>>2]=0;y=ha+P(G,5644)|0;j=J[y+8>>2]+1|0;x=P(w,W);u=P(x,L);Dzb(j,0,u,0);F:{if(!fc){h=P(j,u);J[b+8>>2]=h;h=ye(h,2);J[b+4>>2]=h;if(h)break F}qc(q);qc(D);h=J[b+4>>2];if(h){qc(h);J[b+4>>2]=0}if(!va){h=b;break w}j=0;m=b;while(1){i=J[m+200>>2];if(i){s=0;z=J[m+196>>2];if(z){while(1){h=J[i+12>>2];if(h){qc(h);J[i+12>>2]=0;z=J[m+196>>2]}i=i+16|0;s=s+1|0;if(z>>>0>s>>>0)continue;break}i=J[m+200>>2]}qc(i);J[m+200>>2]=0}m=m+240|0;h=(j|0)==(ka|0);j=j+1|0;if(!h)continue;break}h=b;break w}h=J[_+ -24>>2];A=J[C+20>>2];J[b+204>>2]=A;v=J[C+12>>2];J[b+208>>2]=v;o=J[C+16>>2];J[b+212>>2]=o;k=J[C+8>>2];J[b+216>>2]=k;J[b+12>>2]=u;J[b+16>>2]=x;J[b+20>>2]=w;t=1;J[b+24>>2]=1;if(W){m=J[b+200>>2];j=h;while(1){i=J[D+(X<<2)>>2];J[m>>2]=J[j>>2];J[m+4>>2]=J[j+4>>2];n=J[m+8>>2];G:{if(!n)break G;s=J[m+12>>2];if((n|0)!=1){g=n&-2;z=0;while(1){J[s>>2]=J[i>>2];J[s+4>>2]=J[i+4>>2];J[s+8>>2]=J[i+8>>2];J[s+12>>2]=J[i+12>>2];J[s+16>>2]=J[i+16>>2];J[s+20>>2]=J[i+20>>2];J[s+24>>2]=J[i+24>>2];J[s+28>>2]=J[i+28>>2];s=s+ -32|0;i=i+32|0;z=z+2|0;if((g|0)!=(z|0))continue;break}}if(!(n&1))break G;J[s>>2]=J[i>>2];J[s+4>>2]=J[i+4>>2];J[s+8>>2]=J[i+8>>2];J[s+12>>2]=J[i+12>>2]}j=j+52|0;m=m+16|0;X=X+1|0;if((W|0)!=(X|0))continue;break}}if(va>>>0>1){n=b;while(1){J[n+456>>2]=k;J[n+452>>2]=o;J[n+448>>2]=v;J[n+444>>2]=A;J[n+264>>2]=1;J[n+260>>2]=w;J[n+256>>2]=x;J[n+252>>2]=u;if(W){m=J[n+440>>2];X=0;j=h;while(1){i=J[D+(X<<2)>>2];J[m>>2]=J[j>>2];J[m+4>>2]=J[j+4>>2];p=J[m+8>>2];H:{if(!p)break H;s=J[m+12>>2];if((p|0)!=1){g=p&-2;z=0; -while(1){J[s>>2]=J[i>>2];J[s+4>>2]=J[i+4>>2];J[s+8>>2]=J[i+8>>2];J[s+12>>2]=J[i+12>>2];J[s+16>>2]=J[i+16>>2];J[s+20>>2]=J[i+20>>2];J[s+24>>2]=J[i+24>>2];J[s+28>>2]=J[i+28>>2];s=s+32|0;i=i+32|0;z=z+2|0;if((g|0)!=(z|0))continue;break}}if(!(p&1))break H;J[s>>2]=J[i>>2];J[s+4>>2]=J[i+4>>2];J[s+8>>2]=J[i+8>>2];J[s+12>>2]=J[i+12>>2]}j=j+52|0;m=m+16|0;X=X+1|0;if((W|0)!=(X|0))continue;break}}j=J[n+8>>2];J[n+244>>2]=J[n+4>>2];J[n+248>>2]=j;j=(t|0)!=(ka|0);n=n+240|0;t=t+1|0;if(j)continue;break}}qc(q);qc(D); -k=J[ba+420>>2];h=ha+P(G,5644)|0;I:{if(K[h+5640|0]&4){if((k|0)==-1)break I;s=h+424|0;j=J[y+8>>2];z=0;i=b;while(1){h=J[s+36>>2];J[i+44>>2]=1;J[i+84>>2]=h;J[i+48>>2]=J[s>>2];h=J[s+4>>2];J[i+68>>2]=0;J[i+72>>2]=0;J[i+52>>2]=h;J[i+60>>2]=J[s+12>>2];J[i- -64>>2]=J[s+16>>2];h=J[s+8>>2];J[i+76>>2]=w;J[i+56>>2]=h>>>0>>0?h:j;s=s+148|0;i=i+240|0;h=(k|0)==(z|0);z=z+1|0;if(!h)continue;break}break I}if((k|0)==-1)break I;g=J[(ha+P(G,5644)|0)+4>>2];j=J[y+8>>2];i=b;if(k){h=k+1&-2;s=0;while(1){J[i+44>>2]=1;J[i+ -48>>2]=0;J[i+68>>2]=0;J[i+72>>2]=0;J[i+52>>2]=0;J[i+84>>2]=g;J[i+60>>2]=L;J[i- -64>>2]=J[i+196>>2];J[i+324>>2]=g;J[i+76>>2]=w;J[i+56>>2]=j;J[i+308>>2]=0;J[i+312>>2]=0;J[i+292>>2]=0;J[i+284>>2]=1;J[i+288>>2]=0;J[i+300>>2]=L;J[i+296>>2]=j;J[i+316>>2]=w;J[i+304>>2]=J[i+436>>2];i=i+480|0;s=s+2|0;if((h|0)!=(s|0))continue;break}}if(k&1)break I;J[i+44>>2]=1;J[i+48>>2]=0;J[i+68>>2]=0;J[i+72>>2]=0;J[i+52>>2]=0;J[i+84>>2]=g;J[i+60>>2]=L;J[i- -64>>2]=J[i+196>>2];J[i+76>>2]=w;J[i+56>>2]=j}t=b;break v}qc(q)}qc(h)}bc= -C+32|0;break t}fa(2338113,2338975,1427,2361256);B()}fa(2340274,2338975,1429,2361256);B()}h=t;b=0;J:{if(!h)break J;D=ca+1|0;t=r;j=h;K:{L:{while(1){if(J[j+84>>2]==-1)break K;b=_e(J[_+16>>2]<<2);if(!b)break K;y=wc(b,1,J[_+16>>2]<<2);if(FW(j))while(1){b=J[Z+20>>2];M:{N:{if(M[j+40>>2]>=M[ea+12>>2])break N;i=J[j+32>>2];g=P(J[j+28>>2],76)+b|0;if(i>>>0>=M[g+24>>2])break N;i=J[g+28>>2]+P(i,152)|0;if(!J[i+24>>2])break N;q=0;O:{while(1){b=i+P(q,36)|0;g=J[b+48>>2]+P(J[j+36>>2],40)|0;if(!fH(F,J[j+28>>2],J[j+32>> -2],J[b+44>>2],J[g>>2],J[g+4>>2],J[g+8>>2],J[g+12>>2])){q=q+1|0;if(q>>>0>2])continue;break O}break}J[y+(J[j+28>>2]<<2)>>2]=0;b=J[E+4>>2];J[$+72>>2]=0;if(!BW(b,J[Z+20>>2],ea,j,$+76|0,t,$+72|0,l,f))break L;b=J[j+32>>2];U=J[j+28>>2];p=J[$+72>>2];if(J[$+76>>2]){J[$+72>>2]=0;v=p+t|0;s=v;x=J[(J[Z+20>>2]+P(U,76)|0)+28>>2]+P(b,152)|0;q=J[x+24>>2];if(q){A=l+t|0;U=x+28|0;W=0;while(1){P:{if(J[U+8>>2]==J[U>>2]|J[U+12>>2]==J[U+4>>2])break P;b=J[U+20>>2]+P(J[j+36>>2],40)|0;o=P(J[b+20>>2],J[b+16>>2]);if(!o)break P; -q=J[b+24>>2];O=0;while(1){m=J[q+32>>2];if(m){b=J[q>>2];g=J[q+36>>2];Q:{if(g){i=P(g,24)+b|0;b=i-24|0;if(J[b+4>>2]!=J[b+12>>2])break Q;b=i;i=g+1|0}else i=1;J[q+36>>2]=i}R:{i=J[b+20>>2];S:{if(i>>>0>(s^-1)>>>0|A>>>0>>0)break S;n=b+20|0;V=J[q+4>>2];G=J[q+52>>2];z=J[q+48>>2];while(1){if((z|0)!=(G|0))g=m;else{G=G<<1|1;V=Tg(V,G<<3);if(!V){Hc(f,1,2344536,0);break L}J[q+52>>2]=G;J[q+4>>2]=V;z=J[q+48>>2];i=J[n>>2];g=J[q+32>>2]}k=(z<<3)+V|0;J[k+4>>2]=i;J[k>>2]=s;z=z+1|0;J[q+48>>2]=z;J[b>>2]=J[b>>2]+i;n= -J[b+16>>2];k=n+J[b+4>>2]|0;J[b+4>>2]=k;m=g-n|0;J[q+32>>2]=m;J[b+8>>2]=k;s=i+s|0;if((g|0)==(n|0))break R;J[q+36>>2]=J[q+36>>2]+1;n=b+44|0;i=J[n>>2];if(i>>>0>(s^-1)>>>0)break S;b=b+24|0;if(A>>>0>=i+s>>>0)continue;break}}k=J[j+36>>2];g=J[j+28>>2];b=J[j+32>>2];J[$+48>>2]=W;Va=$,Wa=Izb(g,b,32),J[Va+52>>2]=Wa;J[$+56>>2]=fc;J[$+36>>2]=l-p;J[$+40>>2]=O;J[$+44>>2]=k;J[$+32>>2]=i;Hc(f,1,2344451,$+32|0);break L}J[q+40>>2]=J[q+36>>2]}q=q+60|0;O=O+1|0;if((o|0)!=(O|0))continue;break}q=J[x+24>>2]}U=U+36|0;W=W+1| -0;if(W>>>0>>0)continue;break}U=J[j+28>>2];b=J[j+32>>2]}p=(p-v|0)+s|0}i=J[_+24>>2]+P(U,52)|0;g=J[i+36>>2];J[i+36>>2]=b>>>0>g>>>0?b:g;break M}b=J[Z+20>>2]}i=J[E+4>>2];J[$+72>>2]=0;if(!BW(i,b,ea,j,$+76|0,t,$+72|0,l,f))break L;U=J[j+28>>2];p=J[$+72>>2];if(!J[$+76>>2])break M;o=J[j+32>>2];b=J[(J[Z+20>>2]+P(U,76)|0)+28>>2]+P(o,152)|0;m=J[b+24>>2];T:{if(!m){q=0;break T}x=l-p|0;G=b+28|0;A=J[j+36>>2];q=0;W=0;while(1){U:{if(J[G+8>>2]==J[G>>2]|J[G+12>>2]==J[G+4>>2])break U;b=J[G+20>>2]+P(A,40)|0;k=P(J[b+ -20>>2],J[b+16>>2]);if(!k)break U;n=J[b+24>>2];O=0;while(1){i=J[n+32>>2];if(i){b=J[n>>2];z=J[n+36>>2];V:{if(z){b=P(z,24)+b|0;g=b-24|0;if(J[g+4>>2]!=J[g+12>>2]){b=g;break V}z=z+1|0}else z=1;J[n+36>>2]=z}W:{s=J[b+20>>2];q=s+q|0;if(!(q>>>0>>0|q>>>0>x>>>0)){while(1){v=J[b+16>>2];J[b+4>>2]=v+J[b+4>>2];g=i-v|0;if((i|0)==(v|0))break W;z=z+1|0;J[n+36>>2]=z;s=J[b+44>>2];q=s+q|0;if(q>>>0>=s>>>0){b=b+24|0;i=g;if(q>>>0<=x>>>0)continue}break}J[n+32>>2]=g}J[$+24>>2]=U;J[$+20>>2]=o;J[$+16>>2]=W;J[$+12>>2]=A;J[$+ -8>>2]=O;J[$+4>>2]=x;J[$>>2]=s;Hc(f,1,2345229,$);break L}J[n+32>>2]=g}n=n+60|0;O=O+1|0;if((k|0)!=(O|0))continue;break}}G=G+36|0;W=W+1|0;if((m|0)!=(W|0))continue;break}}p=p+q|0}X:{if(!J[y+(U<<2)>>2])break X;b=J[_+24>>2]+P(U,52)|0;if(J[b+36>>2])break X;J[b+36>>2]=J[(J[Z+20>>2]+P(U,76)|0)+24>>2]-1}l=l-p|0;t=p+t|0;if(FW(j))continue;break}qc(y);j=j+240|0;oa=oa+1|0;if(oa>>>0<=M[ea+420>>2])continue;break}gH(h,D);J[ua+8>>2]=t-r;b=1;break J}gH(h,D);qc(y);b=0;break J}gH(h,D);b=0}bc=$+80|0;Gc(E);if(!b)break f; -t=J[J[F+32>>2]+5584>>2];A=J[J[F+20>>2]>>2];u=J[A+20>>2];J[ua+12>>2]=1;b=0;l=0;h=J[F+32>>2];l=J[h+12>>2]==J[h+8>>2]?J[t+16>>2]>>>4&1:l;ja=J[A+16>>2];Y:{if(!ja)break Y;while(1){h=J[F+68>>2];if(!(J[h+(b<<2)>>2]?0:h)){m=ua+12|0;n=0;h=J[u+24>>2];Z:{if(!h)break Z;v=J[F+44>>2];while(1){r=J[u+28>>2]+P(n,152)|0;o=J[r+24>>2];if(o){h=J[r+20>>2];i=J[r+16>>2];y=0;while(1){if(P(h,i)){x=r+P(y,36)|0;k=x+28|0;q=0;while(1){D=J[x+48>>2]+P(q,40)|0;h=fH(F,J[u+16>>2],n,J[x+44>>2],J[D>>2],J[D+4>>2],J[D+8>>2],J[D+12>>2]); -i=J[D+20>>2];o=J[D+16>>2];j=P(i,o);_:{if(h){if(!j)break _;o=0;while(1){j=J[D+24>>2]+P(o,60)|0;$:{if(!fH(F,J[u+16>>2],n,J[x+44>>2],J[j+8>>2],J[j+12>>2],J[j+16>>2],J[j+20>>2])){h=J[j+56>>2];if(!h)break $;qc(h);J[j+56>>2]=0;break $}if(!J[F+64>>2])if(J[j+56>>2]|J[j+16>>2]==J[j+8>>2]|J[j+20>>2]==J[j+12>>2])break $;i=ye(1,44);if(!i){J[ua+12>>2]=0;break Z}h=J[F+64>>2];J[i+36>>2]=0;J[i+28>>2]=m;J[i+20>>2]=t;J[i+16>>2]=u;J[i+12>>2]=k;J[i+8>>2]=j;J[i+4>>2]=n;J[i>>2]=h;J[i+40>>2]=l;J[i+32>>2]=f;J[i+24>>2]=J[v+ -4>>2]>1;Av(v,4692,i);if(!J[ua+12>>2])break Z}o=o+1|0;if(o>>>0>2],J[D+16>>2])>>>0)continue;break}break _}if(!j)break _;h=0;while(1){g=J[D+24>>2]+P(h,60)|0;j=J[g+56>>2];if(j){qc(j);J[g+56>>2]=0;o=J[D+16>>2];i=J[D+20>>2]}h=h+1|0;if(h>>>0>>0)continue;break}}q=q+1|0;i=J[r+16>>2];h=J[r+20>>2];if(q>>>0>>0)continue;break}o=J[r+24>>2]}y=y+1|0;if(y>>>0>>0)continue;break}h=J[u+24>>2]}n=n+1|0;if(n>>>0>>0)continue;break}}if(!J[ua+12>>2])break Y;ja=J[A+16>>2]}t=t+1080|0;u=u+76|0; -b=b+1|0;if(ja>>>0>b>>>0)continue;break}}ja=0;Wl(J[F+44>>2]);if(!J[ua+12>>2])break f;aa:{if(J[F+64>>2])break aa;u=J[F+24>>2];if(!J[u+16>>2])break aa;t=0;while(1){l=J[J[J[F+20>>2]>>2]+20>>2]+P(t,76)|0;b=J[l+28>>2]+P(J[(J[u+24>>2]+P(t,52)|0)+36>>2],152)|0;g=J[b+136>>2];i=J[b+144>>2];j=J[b+140>>2];h=J[b+148>>2];qc(J[l+52>>2]);J[l+52>>2]=0;ba:{b=J[F+68>>2];if((g|0)==(i|0)|(J[b+(t<<2)>>2]?0:b)|(h|0)==(j|0))break ba;j=h-j|0;h=i-g|0;Dzb(j,0,h,0);if(fc){Hc(f,1,2338255,0);break f}b=P(h,j);if(b>>>0>=1073741824){Hc(f, -1,2338255,0);break f}b=Xk(b<<2);J[l+52>>2]=b;if(b)break ba;Hc(f,1,2338255,0);break f}t=t+1|0;u=J[F+24>>2];if(t>>>0>2])continue;break}}u=J[F+32>>2];Y=J[J[F+20>>2]>>2];if(J[Y+16>>2]){t=J[Y+20>>2];u=J[u+5584>>2];b=J[J[F+24>>2]+24>>2];T=0;while(1){ca:{h=J[F+68>>2];if(J[h+(T<<2)>>2]?0:h)break ca;h=J[b+36>>2]+1|0;if(J[u+20>>2]==1){ea=h;h=0;ia=bc-32|0;bc=ia;da:{ea:{if(J[F+64>>2]){l=1;if((ea|0)==1)break da;h=J[t+28>>2];s=ea-1|0;m=s&1;y=J[F+44>>2];fa:{if((ea|0)==2){n=0;i=h;break fa}k=s&-2;n=0;i=h; -l=0;while(1){j=J[i+160>>2]-J[i+152>>2]|0;g=j>>>0>>0?n:j;j=J[i+164>>2]-J[i+156>>2]|0;g=g>>>0>j>>>0?g:j;j=J[i+312>>2]-J[i+304>>2]|0;g=g>>>0>j>>>0?g:j;j=J[i+316>>2]-J[i+308>>2]|0;n=g>>>0>j>>>0?g:j;i=i+304|0;l=l+2|0;if((k|0)!=(l|0))continue;break}}l=0;if(m){j=J[i+160>>2]-J[i+152>>2]|0;g=j>>>0>>0?n:j;j=J[i+164>>2]-J[i+156>>2]|0;n=g>>>0>j>>>0?g:j}if(n>>>0>134217727)break da;j=(P(J[t+24>>2],152)+h|0)-152|0;o=J[j>>2];m=J[j+8>>2];k=J[h+4>>2];j=J[h+12>>2];g=J[h>>2];i=J[h+8>>2];r=J[y+4>>2];v=n<<5;D=gA(v); -J[ia+16>>2]=D;if(!D)break da;J[ia>>2]=D;if(s){x=m-o|0;j=j-k|0;o=i-g|0;while(1){A=J[t+36>>2];g=j;J[ia+8>>2]=g;j=o;J[ia+24>>2]=j;m=J[h+156>>2];n=J[h+164>>2];l=J[h+160>>2];i=J[h+152>>2];J[ia+28>>2]=(i|0)%2;o=l-i|0;J[ia+20>>2]=o-j;k=(r|0)<2;j=n-m|0;ga:{if(!(!k&j>>>0>1)){i=0;if(!j)break ga;while(1){oX(ia+16|0,A+(P(i,x)<<2)|0);i=i+1|0;if((j|0)!=(i|0))continue;break}break ga}q=j>>>0>>0?j:r;l=q-1|0;m=(j>>>0)/(q>>>0)|0;n=0;while(1){p=_e(36);if(!p)break ea;i=J[ia+20>>2];J[p>>2]=J[ia+16>>2];J[p+4>>2]=i;i= -J[ia+28>>2];J[p+8>>2]=J[ia+24>>2];J[p+12>>2]=i;J[p+28>>2]=P(m,n);J[p+24>>2]=A;J[p+20>>2]=x;J[p+16>>2]=o;i=(l|0)==(n|0);n=n+1|0;J[p+32>>2]=i?j:P(m,n);i=gA(v);J[p>>2]=i;if(!i){l=0;Wl(y);qc(p);qc(D);break da}Av(y,4650,p);if((n|0)!=(q|0))continue;break}Wl(y)}J[ia+4>>2]=j-g;J[ia+12>>2]=J[h+156>>2]%2;ha:{if(!(!k&o>>>0>1)){n=8;i=0;if(o>>>0>=8)while(1){oA(ia,A+(i<<2)|0,x,8);i=n;n=i+8|0;if(n>>>0<=o>>>0)continue;break}if(i>>>0>=o>>>0)break ha;oA(ia,A+(i<<2)|0,x,o-i|0);break ha}k=o>>>0>>0?o:r;g=k-1|0;l=(o>>> -0)/(k>>>0)|0;n=0;while(1){m=_e(36);if(!m)break ea;i=J[ia+4>>2];J[m>>2]=J[ia>>2];J[m+4>>2]=i;i=J[ia+12>>2];J[m+8>>2]=J[ia+8>>2];J[m+12>>2]=i;J[m+28>>2]=P(l,n);J[m+24>>2]=A;J[m+20>>2]=x;J[m+16>>2]=j;i=(g|0)==(n|0);n=n+1|0;J[m+32>>2]=i?o:P(l,n);i=gA(v);J[m>>2]=i;if(!i){l=0;Wl(y);qc(m);qc(D);break da}Av(y,4651,m);if((k|0)!=(n|0))continue;break}Wl(y)}h=h+152|0;s=s-1|0;if(s)continue;break}}l=1;qc(D);break da}l=1;o=J[t+28>>2];La=o+P(ea,152)|0;ya=La-152|0;if(J[ya>>2]==J[ya+8>>2]|J[ya+4>>2]==J[ya+12>>2])break da; -y=J[o+4>>2];D=J[o+12>>2];r=J[o>>2];m=J[o+8>>2];x=J[t+68>>2];A=J[t+64>>2];v=J[t+60>>2];q=J[t+56>>2];sa=nX(t,ea);if(!sa){l=0;break da}ia:{ja:{ka:{la:{if((ea|0)==1){l=La-152|0;g=J[l+136>>2];i=J[ya>>2];j=J[ya+4>>2];h=J[l+144>>2];if(!Wk(sa,g-i|0,J[l+140>>2]-j|0,h-i|0,J[l+148>>2]-j|0,J[t+52>>2],1,h-g|0))break la;Rn(sa);l=1;break da}j=ea-1|0;n=j&1;ma:{if((ea|0)==2){l=0;i=o;break ma}k=j&-2;l=0;i=o;while(1){j=J[i+160>>2]-J[i+152>>2]|0;g=j>>>0>>0?l:j;j=J[i+164>>2]-J[i+156>>2]|0;g=g>>>0>j>>>0?g:j;j=J[i+312>> -2]-J[i+304>>2]|0;g=g>>>0>j>>>0?g:j;j=J[i+316>>2]-J[i+308>>2]|0;l=g>>>0>j>>>0?g:j;i=i+304|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(n){h=J[i+160>>2]-J[i+152>>2]|0;j=h>>>0>>0?l:h;h=J[i+164>>2]-J[i+156>>2]|0;l=h>>>0>>0?j:h}if(l>>>0>=268435456)break ia;p=gA(l<<4);if(!p)break ia;if(ea>>>0<2)break ka;U=D-y|0;G=m-r|0;Ba=p-4|0;S=p+28|0;va=p+24|0;Ea=p+16|0;Fa=p-16|0;Pa=p-32|0;Qa=p-8|0;m=p+4|0;Ga=1;na:while(1){j=J[o+156>>2];ha=J[o+164>>2]-j|0;ta=ha-U|0;h=J[o+152>>2];Ca=(h|0)%2|0;Ia=(j|0)%2|0;ka=J[o+ -160>>2]-h|0;pa=ka-G|0;s=q;h=q;i=v;j=i;l=A;y=l;n=x;z=n;g=J[t+20>>2];oa:{if((g|0)==(Ga|0))break oa;k=g-Ga|0;j=0;h=0;if(q){h=k&31;if((k&63)>>>0>=32){g=-1<>>32-h;h=-1<>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)h=g>>>i|0;else h=((1<>>i}if(v){j=k&31;if((k&63)>>>0>=32){g=-1<>>32-j}j=v+(i^-1)|0;g=g^-1;g=j>>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)j=g>>>i|0;else j=((1<>>i}n=0;l= -0;if(A){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>>0?g+1|0:g;l=k&31;if((k&63)>>>0>=32)l=g>>>l|0;else l=((1<>>l}if(x){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>>0?g+1|0:g;n=k&31;if((k&63)>>>0>=32)n=g>>>n|0;else n=((1<>>n}y=0;s=0;D=1<>>0>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>r>>>0?g+1|0:g;i=r;r=k&31;if((k&63)>>>0>=32)s=g>>>r|0;else s=((1<>>r}if(A>>>0>D>>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>r>>>0?g+1|0:g;i=r;r=k&31;if((k&63)>>>0>=32)y=g>>>r|0;else y=((1<>>r}z=0;i=0;if(v>>>0>D>>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>r>>>0?g+1|0:g;i=r;r=k&31;if((k& -63)>>>0>=32)i=g>>>r|0;else i=((1<>>r}if(x>>>0<=D>>>0)break oa;r=k&31;if((k&63)>>>0>=32){g=-1<>>32-r;r=-1<>>0>D>>>0?g+1|0:g;r=D;D=k&31;if((k&63)>>>0>=32)z=g>>>D|0;else z=((1<>>D}r=J[o+180>>2];g=y-r|0;k=g>>>0<=y>>>0?g:0;g=k+2|0;g=g>>>0>>0?-1:g;wa=g>>>0>>0?g:pa;k=J[o+216>>2];g=l-k|0;l=g>>>0<=l>>>0?g:0;g=l+2|0;g=g>>>0>>0?-1:g;xa=g>>>0>>0?g:G;l=(Ca?wa:xa)<<1;g=(Ca?xa:wa)<<1|1;Ma=g>>>0>> -0?l:g;ba=Ma>>>0>>0;g=s-r|0;l=g>>>0<=s>>>0?g:0;g=l-2|0;r=g>>>0<=l>>>0?g:0;g=h-k|0;g=g>>>0<=h>>>0?g:0;h=g-2|0;y=g>>>0>=h>>>0?h:0;w=(Ca?r:y)<<1;L=(Ca?y:r)<<1|1;oa=w>>>0>>0;D=J[o+184>>2];h=j-D|0;j=h>>>0<=j>>>0?h:0;h=j-2|0;k=h>>>0<=j>>>0?h:0;aa=k;l=J[o+220>>2];h=i-l|0;j=h>>>0<=i>>>0?h:0;h=j-2|0;g=h>>>0<=j>>>0?h:0;ca=g;h=n-D|0;j=h>>>0<=n>>>0?h:0;h=j+2|0;h=h>>>0>>0?-1:h;D=h>>>0>>0?h:U;V=D;h=z-l|0;j=h>>>0<=z>>>0?h:0;h=j+2|0;h=h>>>0>>0?-1:h;_=h>>>0>>0?h:ta;n=_;if(Ia){ca=k;V=n;aa=g;n=D}Ja= -ba?Ma:ka;W=oa?w:L;Ra=U+_|0;Sa=g+U|0;if(ha){Ka=p+(y<<3)|0;i=pa<<3;L=i+Ba|0;j=(y|0)<(pa|0);Ua=j?Ka+4|0:L;ma=(G|0)>(wa|0)?wa:G-1|0;z=0;da=(G|0)>1|(pa|0)>0;na=ba&(ka|0)!=0;h=Ca<<2;qa=(m-h|0)+(r<<3)|0;ra=h+Ka|0;la=(pa|0)>(xa|0)?xa:pa;oa=y+1|0;za=G+wa|0;Da=r+G|0;$=p+(W<<2)|0;h=G<<3;X=h+Qa|0;Ta=h+Ba|0;ba=i+Qa|0;C=!G&(pa|0)==1;h=Ja<<2;O=h+p|0;E=h+Ba|0;Z=Ba+((j?y:pa)<<3)|0;while(1){pa:{if(!(z>>>0>>0&k>>>0<=z>>>0|z>>>0>>0&z>>>0>=Sa>>>0)){i=z+1|0;break pa}if(na)J[E>>2]=0;if(ka>>>0>Ma>>>0)J[O>>2]=0;qa:{ra:{sa:{ta:{ua:{va:{i= -z+1|0;if(Wk(sa,y,z,xa,i,ra,2,0)){if(!Wk(sa,Da,z,za,i,qa,2,0))break va;if(!Ca){if(!da)break qa;if((y|0)>=(xa|0))break ra;wa:{xa:{if((y|0)>0){l=J[Z>>2];break xa}l=J[m>>2];h=l;if((y|0)<0)break wa}h=l;l=J[Ua>>2]}J[Ka>>2]=J[Ka>>2]-((h+l|0)+2>>2);j=y;l=oa;h=l;if((la|0)<=(h|0))break sa;while(1){l=p+(h<<3)|0;J[l>>2]=J[l>>2]-((J[(p+(j<<3)|0)+4>>2]+J[l+4>>2]|0)+2>>2);j=h;h=h+1|0;if((la|0)!=(h|0))continue;break}l=la;break sa}if(C)break ua;h=y;if((xa|0)<=(h|0))break ta;while(1){w=h;ya:{za:{if((h|0)>=0){s=J[((h| -0)<(pa|0)?p+(h<<3)|0:ba)>>2];j=h+1|0;break za}s=J[p>>2];j=0;h=w+1|0;l=p;if(h)break ya}if((j|0)>=(pa|0)){h=j;l=ba;break ya}h=j;l=p+(h<<3)|0}j=p+(w<<3)|0;J[j+4>>2]=J[j+4>>2]-((J[l>>2]+s|0)+2>>2);if((h|0)<(xa|0))continue;break}break ta}fa(2342140,2338616,2242,2342510);B()}fa(2342140,2338616,2248,2342510);B()}J[p>>2]=J[p>>2]/2;break qa}l=r;if((wa|0)<=(l|0))break qa;while(1){s=l<<1;Aa:{if((l|0)<0){j=J[m>>2];h=m;break Aa}w=s<<2;j=J[((l|0)<(G|0)?p+(w|4)|0:Ta)>>2];h=m;if(!l)break Aa;h=(l|0)>(G|0)?Ta:w+Ba| -0}w=p+(s<<2)|0;J[w>>2]=J[w>>2]+(J[h>>2]+j>>1);l=l+1|0;if((wa|0)!=(l|0))continue;break}break qa}if((l|0)>=(xa|0))break ra;while(1){h=p+(l<<3)|0;s=h;w=J[h>>2];Ba:{Ca:{if((l|0)>0){j=J[Ba+(((l|0)<(pa|0)?l:pa)<<3)>>2];break Ca}j=J[m>>2];h=m;if((l|0)<0)break Ba}h=L;if((l|0)>=(pa|0))break Ba;h=(p+(l<<3)|0)+4|0}J[s>>2]=w-((J[h>>2]+j|0)+2>>2);l=l+1|0;if((xa|0)!=(l|0))continue;break}}if((r|0)>=(wa|0))break qa;h=r;l=h;if((h|0)<(ma|0)){while(1){h=p+(l<<3)|0;l=l+1|0;J[h+4>>2]=J[h+4>>2]+(J[p+(l<<3)>>2]+J[h>>2]>> -1);if((l|0)!=(ma|0))continue;break}h=ma}if((h|0)>=(wa|0))break qa;while(1){w=h;Da:{Ea:{if((h|0)>=0){s=J[((h|0)<(G|0)?p+(h<<3)|0:X)>>2];j=h+1|0;break Ea}s=J[p>>2];j=0;h=w+1|0;l=p;if(h)break Da}if((j|0)>=(G|0)){h=j;l=X;break Da}h=j;l=p+(h<<3)|0}j=p+(w<<3)|0;J[j+4>>2]=J[j+4>>2]+(J[l>>2]+s>>1);if((h|0)<(wa|0))continue;break}}if(!Us(sa,W,z,Ja,i,$,1,0))break ja}z=i;if((i|0)!=(ha|0))continue;break}}o=o+152|0;j=V<<1;h=n<<1|1;h=h>>>0>>0?j:h;C=h>>>0>>0?h:ha;na=p+(k<<5)|0;i=ta<<5;za=i+Fa|0;h=(k|0)<(ta| -0);Da=h?na+16|0:za;O=(k|0)<0?Ea:Da;L=(U|0)>(_|0)?_:U-1|0;$=((h?k:ta)<<5)+Fa|0;E=(k|0)<=0;Z=E?Ea:$;s=(ta|0)>0;G=s|(U|0)>1;ma=na+(Ia<<4)|0;la=(p+(4-(Ia<<2)<<2)|0)+(g<<5)|0;oa=(D|0)<(ta|0)?D:ta;y=k+1|0;j=aa<<1;h=ca<<1|1;V=h>>>0>j>>>0?j:h;X=p+(V<<4)|0;h=U<<5;qa=h+Pa|0;aa=h+Fa|0;ra=i+Pa|0;ba=!U&(ta|0)==1;r=$+12|0;n=$+8|0;while(1){Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{z=W;if(z>>>0>>0){h=Ja-z|0;W=z+(h>>>0>=4?4:h)|0;if(!Wk(sa,z,k,W,D,ma,1,8))break Ka;if(!Wk(sa,z,Sa,W,Ra,la,1,8))break Ja;if(!Ia){if(!G)break Fa;if((k| -0)>=(D|0))break Ga;J[na>>2]=J[na>>2]-((J[Z>>2]+J[O>>2]|0)+2>>2);La:{if(!E){l=J[$+4>>2];j=n;h=r;break La}l=J[p+20>>2];if((k|0)<0)break Ia;j=va;h=S}J[na+4>>2]=J[na+4>>2]-((J[Da+4>>2]+l|0)+2>>2);J[na+8>>2]=J[na+8>>2]-((J[j>>2]+J[Da+8>>2]|0)+2>>2);l=J[Da+12>>2];h=J[h>>2];break Ha}if(ba){J[p>>2]=J[p>>2]/2;J[p+4>>2]=J[p+4>>2]/2;J[p+8>>2]=J[p+8>>2]/2;J[p+12>>2]=J[p+12>>2]/2;break Fa}h=k;if((D|0)>(h|0))while(1){j=p+(h<<5)|0;Ma:{if((h|0)<0){l=J[p>>2];ca=s|(h|0)!=-1;J[j+16>>2]=J[j+16>>2]-((l+(ca?l:J[ra>>2])| -0)+2>>2);l=J[m>>2];J[j+20>>2]=J[j+20>>2]-((l+(ca?l:J[ra+4>>2])|0)+2>>2);l=J[p+8>>2];J[j+24>>2]=J[j+24>>2]-((l+(ca?l:J[ra+8>>2])|0)+2>>2);l=J[p+12>>2];J[j+28>>2]=J[j+28>>2]-((l+(ca?l:J[ra+12>>2])|0)+2>>2);h=h+1|0;break Ma}i=h+1|0;Na:{if((i|0)<(ta|0)){h=p+(i<<5)|0;J[j+16>>2]=J[j+16>>2]-((J[j>>2]+J[h>>2]|0)+2>>2);J[j+20>>2]=J[j+20>>2]-((J[j+4>>2]+J[h+4>>2]|0)+2>>2);J[j+24>>2]=J[j+24>>2]-((J[j+8>>2]+J[h+8>>2]|0)+2>>2);J[j+28>>2]=J[j+28>>2]-((J[j+12>>2]+J[h+12>>2]|0)+2>>2);break Na}if((h|0)>=(ta|0)){J[j+ -16>>2]=J[j+16>>2]-((J[ra>>2]<<1)+2>>2);J[j+20>>2]=J[j+20>>2]-((J[ra+4>>2]<<1)+2>>2);J[j+24>>2]=J[j+24>>2]-((J[ra+8>>2]<<1)+2>>2);J[j+28>>2]=J[j+28>>2]-((J[ra+12>>2]<<1)+2>>2);break Na}J[j+16>>2]=J[j+16>>2]-((J[j>>2]+J[ra>>2]|0)+2>>2);J[j+20>>2]=J[j+20>>2]-((J[j+4>>2]+J[ra+4>>2]|0)+2>>2);J[j+24>>2]=J[j+24>>2]-((J[j+8>>2]+J[ra+8>>2]|0)+2>>2);J[j+28>>2]=J[j+28>>2]-((J[j+12>>2]+J[ra+12>>2]|0)+2>>2)}h=i}if((D|0)!=(h|0))continue;break}h=g;if((_|0)<=(h|0))break Fa;while(1){i=h<<5;j=i+p|0;Oa:{if((h|0)<0){J[j>> -2]=J[j>>2]+J[Ea>>2];J[j+4>>2]=J[j+4>>2]+J[p+20>>2];J[j+8>>2]=J[j+8>>2]+J[p+24>>2];i=J[p+28>>2];break Oa}l=j+16|0;if(!h){i=(h|0)<(U|0)?l:aa;J[j>>2]=J[j>>2]+(J[Ea>>2]+J[i>>2]>>1);J[j+4>>2]=J[j+4>>2]+(J[p+20>>2]+J[i+4>>2]>>1);J[j+8>>2]=J[j+8>>2]+(J[p+24>>2]+J[i+8>>2]>>1);i=J[p+28>>2]+J[i+12>>2]>>1;break Oa}if((h|0)<=(U|0)){w=i+Fa|0;i=(h|0)<(U|0)?l:aa;J[j>>2]=J[j>>2]+(J[w>>2]+J[i>>2]>>1);J[j+4>>2]=J[j+4>>2]+(J[w+4>>2]+J[i+4>>2]>>1);J[j+8>>2]=J[j+8>>2]+(J[w+8>>2]+J[i+8>>2]>>1);i=J[w+12>>2]+J[i+12>>2]>> -1;break Oa}J[j>>2]=J[j>>2]+J[aa>>2];J[j+4>>2]=J[j+4>>2]+J[aa+4>>2];J[j+8>>2]=J[j+8>>2]+J[aa+8>>2];i=J[aa+12>>2]}J[j+12>>2]=i+J[j+12>>2];h=h+1|0;if((_|0)!=(h|0))continue;break}break Fa}G=ka;U=ha;Ga=Ga+1|0;if((ea|0)!=(Ga|0))continue na;break ka}fa(2342140,2338616,2270,2342539);B()}fa(2342140,2338616,2276,2342539);B()}J[na+4>>2]=J[na+4>>2]-((l<<1)+2>>2);J[na+8>>2]=J[na+8>>2]-((J[va>>2]<<1)+2>>2);l=J[S>>2];h=l}J[na+12>>2]=J[na+12>>2]-((h+l|0)+2>>2);i=k;h=y;l=h;if((h|0)<(oa|0)){while(1){l=p+(h<<5)|0;j= -p+(i<<5)|0;J[l>>2]=J[l>>2]-((J[j+16>>2]+J[l+16>>2]|0)+2>>2);J[l+4>>2]=J[l+4>>2]-((J[j+20>>2]+J[l+20>>2]|0)+2>>2);J[l+8>>2]=J[l+8>>2]-((J[j+24>>2]+J[l+24>>2]|0)+2>>2);J[l+12>>2]=J[l+12>>2]-((J[j+28>>2]+J[l+28>>2]|0)+2>>2);i=h;h=h+1|0;if((oa|0)!=(h|0))continue;break}l=oa}if((l|0)>=(D|0))break Ga;while(1){da=p+(l<<5)|0;w=da+16|0;i=(l|0)<(ta|0);Pa:{if((l|0)<=0){h=J[Ea>>2];if((l|0)>=0){j=i?w:za;J[da>>2]=J[da>>2]-((h+J[j>>2]|0)+2>>2);J[da+4>>2]=J[da+4>>2]-((J[p+20>>2]+J[j+4>>2]|0)+2>>2);J[da+8>>2]=J[da+ -8>>2]-((J[p+24>>2]+J[j+8>>2]|0)+2>>2);h=(J[p+28>>2]+J[j+12>>2]|0)+2|0;break Pa}J[da>>2]=J[da>>2]-((h<<1)+2>>2);J[da+4>>2]=J[da+4>>2]-((J[p+20>>2]<<1)+2>>2);J[da+8>>2]=J[da+8>>2]-((J[p+24>>2]<<1)+2>>2);h=(J[p+28>>2]<<1)+2|0;break Pa}ca=((i?l:ta)<<5)+Fa|0;j=J[ca>>2]+2|0;h=J[da>>2];if(!i){J[da>>2]=h-(j+J[za>>2]>>2);J[da+4>>2]=J[da+4>>2]-((J[ca+4>>2]+J[za+4>>2]|0)+2>>2);J[da+8>>2]=J[da+8>>2]-((J[ca+8>>2]+J[za+8>>2]|0)+2>>2);h=(J[ca+12>>2]+J[za+12>>2]|0)+2|0;break Pa}J[da>>2]=h-(j+J[w>>2]>>2);J[da+4>> -2]=J[da+4>>2]-((J[ca+4>>2]+J[w+4>>2]|0)+2>>2);J[da+8>>2]=J[da+8>>2]-((J[ca+8>>2]+J[w+8>>2]|0)+2>>2);h=(J[ca+12>>2]+J[w+12>>2]|0)+2|0}J[da+12>>2]=J[da+12>>2]-(h>>2);l=l+1|0;if((D|0)!=(l|0))continue;break}}if((g|0)>=(_|0))break Fa;j=g;h=g;if((L|0)>(h|0)){while(1){h=p+(j<<5)|0;J[h+16>>2]=J[h+16>>2]+(J[h+32>>2]+J[h>>2]>>1);J[h+20>>2]=J[h+20>>2]+(J[h+36>>2]+J[h+4>>2]>>1);J[h+24>>2]=J[h+24>>2]+(J[h+40>>2]+J[h+8>>2]>>1);J[h+28>>2]=J[h+28>>2]+(J[h+44>>2]+J[h+12>>2]>>1);j=j+1|0;if((L|0)!=(j|0))continue;break}h= -L}if((h|0)>=(_|0))break Fa;while(1){w=p+(h<<5)|0;j=_;Qa:{Ra:{Sa:{if((h|0)<0){i=J[p>>2];if((h|0)!=-1)break Sa;if((U|0)<=0){J[w+16>>2]=J[w+16>>2]+(i+J[qa>>2]>>1);J[w+20>>2]=J[w+20>>2]+(J[qa+4>>2]+J[p+4>>2]>>1);J[w+24>>2]=J[w+24>>2]+(J[qa+8>>2]+J[p+8>>2]>>1);i=J[p+12>>2];l=J[qa+12>>2];break Ra}break Sa}i=h+1|0;Ta:{if((i|0)<(U|0)){h=p+(i<<5)|0;J[w+16>>2]=J[w+16>>2]+(J[h>>2]+J[w>>2]>>1);J[w+20>>2]=J[w+20>>2]+(J[h+4>>2]+J[w+4>>2]>>1);J[w+24>>2]=J[w+24>>2]+(J[h+8>>2]+J[w+8>>2]>>1);J[w+28>>2]=J[w+28>>2]+ -(J[h+12>>2]+J[w+12>>2]>>1);break Ta}if((h|0)>=(U|0)){J[w+16>>2]=J[w+16>>2]+J[qa>>2];J[w+20>>2]=J[w+20>>2]+J[qa+4>>2];J[w+24>>2]=J[w+24>>2]+J[qa+8>>2];J[w+28>>2]=J[w+28>>2]+J[qa+12>>2];break Ta}J[w+16>>2]=J[w+16>>2]+(J[qa>>2]+J[w>>2]>>1);J[w+20>>2]=J[w+20>>2]+(J[qa+4>>2]+J[w+4>>2]>>1);J[w+24>>2]=J[w+24>>2]+(J[qa+8>>2]+J[w+8>>2]>>1);J[w+28>>2]=J[w+28>>2]+(J[qa+12>>2]+J[w+12>>2]>>1)}h=i;break Qa}J[w+16>>2]=i+J[w+16>>2];J[w+20>>2]=J[w+20>>2]+J[p+4>>2];J[w+24>>2]=J[w+24>>2]+J[p+8>>2];i=J[p+12>>2];l=i}J[w+ -28>>2]=J[w+28>>2]+(i+l>>1);h=h+1|0}if((j|0)!=(h|0))continue;break}}if(Us(sa,z,V,W,C,X,1,4))continue;break}break}break ja}fa(2342140,2338616,2655,2342482);B()}qc(p);l=1;k=La-152|0;g=J[k+136>>2];i=J[ya>>2];j=J[ya+4>>2];h=J[k+144>>2];if(Wk(sa,g-i|0,J[k+140>>2]-j|0,h-i|0,J[k+148>>2]-j|0,J[t+52>>2],1,h-g|0)){Rn(sa);break da}fa(2342140,2338616,2847,2342482);B()}Rn(sa);qc(p);l=0;break da}Rn(sa);l=0;break da}l=0;Wl(y);qc(D)}bc=ia+32|0;if(l)break ca;break f}i=h;o=0;C=bc+-64|0;bc=C;Ua:{Va:{Wa:{if(J[F+64>>2]){l= -J[t+28>>2];j=1;s=J[F+44>>2];if((h|0)==1)break Ua;y=h-1|0;n=y&1;Xa:{if((h|0)==2){i=0;h=l;break Xa}k=y&-2;i=0;h=l;j=0;while(1){g=J[h+160>>2]-J[h+152>>2]|0;g=g>>>0>>0?i:g;i=J[h+164>>2]-J[h+156>>2]|0;g=g>>>0>i>>>0?g:i;i=J[h+312>>2]-J[h+304>>2]|0;g=g>>>0>i>>>0?g:i;i=J[h+316>>2]-J[h+308>>2]|0;i=g>>>0>i>>>0?g:i;h=h+304|0;j=j+2|0;if((k|0)!=(j|0))continue;break}}if(n){j=J[h+160>>2]-J[h+152>>2]|0;j=i>>>0>j>>>0?i:j;h=J[h+164>>2]-J[h+156>>2]|0;i=h>>>0>>0?j:h}j=0;if(i>>>0>134217727)break Ua;h=(P(J[t+24>> -2],152)+l|0)-152|0;o=J[h>>2];m=J[h+8>>2];n=J[l+4>>2];k=J[l+12>>2];g=J[l>>2];h=J[l+8>>2];W=J[s+4>>2];va=i<<5;i=Xk(va);J[C+32>>2]=i;if(!i)break Ua;J[C>>2]=i;if(!y){j=1;qc(i);break Ua}O=k-n|0;n=h-g|0;h=W>>>1|0;aa=h>>>0<=2?2:h;E=m-o|0;V=P(E,7);X=P(E,6);ba=P(E,5);w=E<<2;L=P(E,3);oa=E<<1;j=J[t+36>>2];z=E<<5;while(1){J[C+8>>2]=O;i=n;J[C+40>>2]=i;ea=J[l+156>>2];_=J[l+164>>2];h=J[l+160>>2];g=J[l+152>>2];J[C+56>>2]=0;J[C+52>>2]=i;J[C+48>>2]=0;k=(g|0)%2|0;J[C+44>>2]=k;n=h-g|0;x=n-i|0;J[C+60>>2]=x;J[C+36>>2]= -x;A=(W|0)<2;O=_-ea|0;Ya:{if(!(!A&O>>>0>15)){m=0;h=j;if(O>>>0<8)break Ya;g=J[C+32>>2];while(1){i=C+32|0;pH(i,h,E,8);Sn(i);i=0;if(n){while(1){k=g+(i<<5)|0;N[(i<<2)+h>>2]=N[k>>2];N[(i+E<<2)+h>>2]=N[k+4>>2];N[(i+oa<<2)+h>>2]=N[k+8>>2];N[(i+L<<2)+h>>2]=N[k+12>>2];i=i+1|0;if((n|0)!=(i|0))continue;break}i=0;while(1){k=g+(i<<5)|0;N[(i+w<<2)+h>>2]=N[k+16>>2];N[(i+ba<<2)+h>>2]=N[k+20>>2];N[(i+X<<2)+h>>2]=N[k+24>>2];N[(i+V<<2)+h>>2]=N[k+28>>2];i=i+1|0;if((n|0)!=(i|0))continue;break}}h=h+z|0;m=m+8|0;if((m|7)>>> -0>>0)continue;break}break Ya}h=O>>>3|0;v=h>>>0>>0?h:W;q=(O>>>0)/(v>>>0)&-8;m=O&-8;o=0;h=j;while(1){r=_e(48);if(!r)break Wa;g=Xk(va);J[r>>2]=g;if(!g){Wl(s);qc(r);j=0;break Va}J[r+40>>2]=h;J[r+36>>2]=E;J[r+32>>2]=n;J[r+28>>2]=x;J[r+24>>2]=0;J[r+20>>2]=i;J[r+16>>2]=0;J[r+12>>2]=k;J[r+8>>2]=i;J[r+4>>2]=x;g=m-P(o,q)|0;o=o+1|0;g=(v|0)==(o|0)?g:q;J[r+44>>2]=g;Av(s,4652,r);h=(P(g,E)<<2)+h|0;if((o|0)!=(v|0))continue;break}Wl(s)}Za:{if(m>>>0>=O>>>0)break Za;i=C+32|0;g=O-m|0;pH(i,h,E,g);Sn(i);if(!n)break Za; -i=g>>>0<=1?1:g;v=i&-4;x=i&3;o=0;q=J[C+32>>2];k=g>>>0<4;while(1){r=q+(o<<5)|0;i=0;m=0;if(!k)while(1){N[(P(i,E)+o<<2)+h>>2]=N[r+(i<<2)>>2];g=i|1;N[(P(g,E)+o<<2)+h>>2]=N[r+(g<<2)>>2];g=i|2;N[(P(g,E)+o<<2)+h>>2]=N[r+(g<<2)>>2];g=i|3;N[(P(g,E)+o<<2)+h>>2]=N[r+(g<<2)>>2];i=i+4|0;m=m+4|0;if((v|0)!=(m|0))continue;break}m=0;if(x)while(1){N[(P(i,E)+o<<2)+h>>2]=N[r+(i<<2)>>2];i=i+1|0;m=m+1|0;if((x|0)!=(m|0))continue;break}o=o+1|0;if((n|0)!=(o|0))continue;break}}Z=J[C+8>>2];U=O-Z|0;J[C+4>>2]=U;h=J[l+156>>2]; -J[C+16>>2]=0;J[C+20>>2]=Z;J[C+24>>2]=0;J[C+28>>2]=U;ka=(h|0)%2|0;J[C+12>>2]=ka;_a:{if(!(!A&n>>>0>15)){o=j;if(n>>>0<8)break _a;p=O&-2;D=O&1;r=U&-2;x=U&1;A=Z&-2;v=Z&1;ca=_+(ea^-1)|0;ha=J[C>>2];h=ka<<5;ma=ha+h|0;la=(ha-h|0)+32|0;q=P(E,Z)<<2;i=n;while(1){h=0;m=0;$a:{ab:switch(Z|0){default:while(1){S=(P(h,E)<<2)+o|0;g=J[S+4>>2];k=ma+(h<<6)|0;J[k>>2]=J[S>>2];J[k+4>>2]=g;g=J[S+28>>2];J[k+24>>2]=J[S+24>>2];J[k+28>>2]=g;g=J[S+20>>2];J[k+16>>2]=J[S+16>>2];J[k+20>>2]=g;g=J[S+12>>2];J[k+8>>2]=J[S+8>>2];J[k+12>> -2]=g;g=h|1;k=ma+(g<<6)|0;S=(P(g,E)<<2)+o|0;g=J[S+28>>2];J[k+24>>2]=J[S+24>>2];J[k+28>>2]=g;g=J[S+20>>2];J[k+16>>2]=J[S+16>>2];J[k+20>>2]=g;g=J[S+12>>2];J[k+8>>2]=J[S+8>>2];J[k+12>>2]=g;g=J[S+4>>2];J[k>>2]=J[S>>2];J[k+4>>2]=g;h=h+2|0;m=m+2|0;if((A|0)!=(m|0))continue;break}break;case 0:break $a;case 1:break ab}if(!v)break $a;g=ma+(h<<6)|0;k=(P(h,E)<<2)+o|0;h=J[k+4>>2];J[g>>2]=J[k>>2];J[g+4>>2]=h;h=J[k+28>>2];J[g+24>>2]=J[k+24>>2];J[g+28>>2]=h;h=J[k+20>>2];J[g+16>>2]=J[k+16>>2];J[g+20>>2]=h;h=J[k+12>> -2];J[g+8>>2]=J[k+8>>2];J[g+12>>2]=h}bb:{if((O|0)==(Z|0))break bb;S=o+q|0;h=0;m=0;if((Z|0)!=(ca|0))while(1){G=S+(P(h,E)<<2)|0;g=J[G+4>>2];k=la+(h<<6)|0;J[k>>2]=J[G>>2];J[k+4>>2]=g;g=J[G+28>>2];J[k+24>>2]=J[G+24>>2];J[k+28>>2]=g;g=J[G+20>>2];J[k+16>>2]=J[G+16>>2];J[k+20>>2]=g;g=J[G+12>>2];J[k+8>>2]=J[G+8>>2];J[k+12>>2]=g;g=h|1;k=la+(g<<6)|0;G=S+(P(g,E)<<2)|0;g=J[G+28>>2];J[k+24>>2]=J[G+24>>2];J[k+28>>2]=g;g=J[G+20>>2];J[k+16>>2]=J[G+16>>2];J[k+20>>2]=g;g=J[G+12>>2];J[k+8>>2]=J[G+8>>2];J[k+12>>2]=g; -g=J[G+4>>2];J[k>>2]=J[G>>2];J[k+4>>2]=g;h=h+2|0;m=m+2|0;if((r|0)!=(m|0))continue;break}if(!x)break bb;g=la+(h<<6)|0;k=S+(P(h,E)<<2)|0;h=J[k+4>>2];J[g>>2]=J[k>>2];J[g+4>>2]=h;h=J[k+28>>2];J[g+24>>2]=J[k+24>>2];J[g+28>>2]=h;h=J[k+20>>2];J[g+16>>2]=J[k+16>>2];J[g+20>>2]=h;h=J[k+12>>2];J[g+8>>2]=J[k+8>>2];J[g+12>>2]=h}Sn(C);cb:{if(!O)break cb;h=0;m=0;if(ca)while(1){S=ha+(h<<5)|0;g=J[S+4>>2];k=(P(h,E)<<2)+o|0;J[k>>2]=J[S>>2];J[k+4>>2]=g;g=J[S+28>>2];J[k+24>>2]=J[S+24>>2];J[k+28>>2]=g;g=J[S+20>>2];J[k+ -16>>2]=J[S+16>>2];J[k+20>>2]=g;g=J[S+12>>2];J[k+8>>2]=J[S+8>>2];J[k+12>>2]=g;g=h|1;k=(P(g,E)<<2)+o|0;S=ha+(g<<5)|0;g=J[S+28>>2];J[k+24>>2]=J[S+24>>2];J[k+28>>2]=g;g=J[S+20>>2];J[k+16>>2]=J[S+16>>2];J[k+20>>2]=g;g=J[S+12>>2];J[k+8>>2]=J[S+8>>2];J[k+12>>2]=g;g=J[S+4>>2];J[k>>2]=J[S>>2];J[k+4>>2]=g;h=h+2|0;m=m+2|0;if((p|0)!=(m|0))continue;break}if(!D)break cb;g=(P(h,E)<<2)+o|0;k=ha+(h<<5)|0;h=J[k+4>>2];J[g>>2]=J[k>>2];J[g+4>>2]=h;h=J[k+28>>2];J[g+24>>2]=J[k+24>>2];J[g+28>>2]=h;h=J[k+20>>2];J[g+16>>2]= -J[k+16>>2];J[g+20>>2]=h;h=J[k+12>>2];J[g+8>>2]=J[k+8>>2];J[g+12>>2]=h}o=o+32|0;i=i-8|0;if(i>>>0>7)continue;break}break _a}h=n>>>3|0;q=h>>>0>>0?h:aa;k=q>>>0<=1?1:q;m=(n>>>0)/(q>>>0)&-8;g=n&-8;i=0;o=j;while(1){v=_e(48);if(!v)break Wa;h=Xk(va);J[v>>2]=h;if(!h){Wl(s);qc(v);j=0;break Va}J[v+40>>2]=o;J[v+36>>2]=E;J[v+32>>2]=O;J[v+28>>2]=U;J[v+24>>2]=0;J[v+20>>2]=Z;J[v+16>>2]=0;J[v+12>>2]=ka;J[v+8>>2]=Z;J[v+4>>2]=U;h=g-P(i,m)|0;i=i+1|0;h=(q|0)==(i|0)?h:m;J[v+44>>2]=h;Av(s,4653,v);o=(h<<2)+o|0;if((i| -0)!=(k|0))continue;break}Wl(s)}A=n&7;db:{if(!A)break db;k=ka<<5;x=J[C>>2];eb:{if(!Z)break eb;v=k+x|0;q=A<<2;h=0;if((Z|0)!=1){g=Z&-2;m=0;while(1){tc(v+(h<<6)|0,(P(h,E)<<2)+o|0,q);i=h|1;tc(v+(i<<6)|0,(P(i,E)<<2)+o|0,q);h=h+2|0;m=m+2|0;if((g|0)!=(m|0))continue;break}}if(!(Z&1))break eb;tc(v+(h<<6)|0,(P(h,E)<<2)+o|0,q)}fb:{if((O|0)==(Z|0))break fb;v=(x-k|0)+32|0;q=(P(E,Z)<<2)+o|0;k=A<<2;h=0;if((Z|0)!=(_+(ea^-1)|0)){g=U&-2;m=0;while(1){tc(v+(h<<6)|0,q+(P(h,E)<<2)|0,k);i=h|1;tc(v+(i<<6)|0,q+(P(i,E)<<2)| -0,k);h=h+2|0;m=m+2|0;if((g|0)!=(m|0))continue;break}}if(!(U&1))break fb;tc(v+(h<<6)|0,q+(P(h,E)<<2)|0,k)}Sn(C);if(!O)break db;k=A<<2;h=0;if((_|0)!=(ea+1|0)){g=O&-2;m=0;while(1){tc((P(h,E)<<2)+o|0,x+(h<<5)|0,k);i=h|1;tc((P(i,E)<<2)+o|0,x+(i<<5)|0,k);h=h+2|0;m=m+2|0;if((g|0)!=(m|0))continue;break}}if(!(O&1))break db;tc((P(h,E)<<2)+o|0,x+(h<<5)|0,k)}l=l+152|0;y=y-1|0;if(y)continue;break}j=1;break Va}j=1;m=J[t+28>>2];U=m+P(i,152)|0;s=U-152|0;if(J[s>>2]==J[s+8>>2]|J[s+4>>2]==J[s+12>>2])break Ua;y=J[m+ -4>>2];v=J[m+12>>2];q=J[m>>2];n=J[m+8>>2];D=J[t+68>>2];r=J[t+64>>2];x=J[t+60>>2];A=J[t+56>>2];E=nX(t,i);if(!E){j=0;break Ua}gb:{hb:{ib:{if((i|0)==1){l=U-152|0;g=J[l+136>>2];i=J[s>>2];j=J[s+4>>2];h=J[l+144>>2];if(!Wk(E,g-i|0,J[l+140>>2]-j|0,h-i|0,J[l+148>>2]-j|0,J[t+52>>2],1,h-g|0))break ib;Rn(E);j=1;break Ua}h=i-1|0;k=h&1;jb:{if((i|0)==2){j=0;h=m;break jb}l=h&-2;j=0;h=m;while(1){g=J[h+160>>2]-J[h+152>>2]|0;g=g>>>0>>0?j:g;j=J[h+164>>2]-J[h+156>>2]|0;g=g>>>0>j>>>0?g:j;j=J[h+312>>2]-J[h+304>>2]|0; -g=g>>>0>j>>>0?g:j;j=J[h+316>>2]-J[h+308>>2]|0;j=g>>>0>j>>>0?g:j;h=h+304|0;o=o+2|0;if((l|0)!=(o|0))continue;break}}if(k){g=J[h+160>>2]-J[h+152>>2]|0;j=g>>>0>>0?j:g;h=J[h+164>>2]-J[h+156>>2]|0;j=h>>>0>>0?j:h}if(j>>>0>=134217728)break gb;Z=Xk(j<<5);J[C+32>>2]=Z;if(!Z)break gb;J[C>>2]=Z;kb:{lb:{mb:{if(i>>>0>=2){l=v-y|0;h=n-q|0;ma=Z+32|0;oa=i;z=J[t+20>>2];w=1;v=0;while(1){J[C+8>>2]=l;J[C+40>>2]=h;g=J[m+164>>2];i=J[m+160>>2];k=J[m+156>>2];j=J[m+152>>2];aa=(j|0)%2|0;J[C+44>>2]=aa;G=(k|0)%2|0;J[C+12>> -2]=G;L=i-j|0;ca=L-h|0;J[C+36>>2]=ca;ba=g-k|0;W=ba-l|0;J[C+4>>2]=W;y=A;o=A;i=x;n=i;j=r;q=j;p=D;O=p;nb:{if(!v&(w|0)==(z|0))break nb;k=z-w|0;n=0;o=0;if(A){j=k&31;if((k&63)>>>0>=32){g=-1<>>32-j}j=A+(i^-1)|0;g=g^-1;g=j>>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)o=g>>>i|0;else o=((1<>>i}if(x){j=k&31;if((k&63)>>>0>=32){g=-1<>>32-j}j=x+(i^-1)|0;g=g^-1;g=j>>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)n=g>>>i|0;else n=((1<< -i)-1&g)<<32-i|j>>>i}p=0;j=0;if(r){j=k&31;if((k&63)>>>0>=32){g=-1<>>32-j}j=r+(i^-1)|0;g=g^-1;g=j>>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)j=g>>>i|0;else j=((1<>>i}if(D){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>>0?g+1|0:g;q=k&31;if((k&63)>>>0>=32)p=g>>>q|0;else p=((1<>>q}q=0;y=0;V=1<>>0>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>> -32-i;i=-1<>>0>y>>>0?g+1|0:g;i=y;y=k&31;if((k&63)>>>0>=32)y=g>>>y|0;else y=((1<>>y}if(r>>>0>V>>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>q>>>0?g+1|0:g;i=q;q=k&31;if((k&63)>>>0>=32)q=g>>>q|0;else q=((1<>>q}O=0;i=0;if(x>>>0>V>>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>X>>>0?g+ -1|0:g;i=X;X=k&31;if((k&63)>>>0>=32)i=g>>>X|0;else i=((1<>>X}if(D>>>0<=V>>>0)break nb;X=k&31;_=D-V|0;if((k&63)>>>0>=32){g=-1<>>32-X}X=V^-1;V=_+X|0;g=g^-1;g=V>>>0>>0?g+1|0:g;X=V;V=k&31;if((k&63)>>>0>=32)O=g>>>V|0;else O=((1<>>V}X=J[m+180>>2];g=q-X|0;k=g>>>0<=q>>>0?g:0;g=k+4|0;g=g>>>0>>0?-1:g;ea=g>>>0>>0?g:ca;k=J[m+216>>2];g=j-k|0;g=g>>>0<=j>>>0?g:0;j=g+4|0;j=g>>>0>j>>>0?-1:j;_=h>>>0>j>>>0?j:h;j=(aa?ea:_)<<1;h=(aa?_:ea)<< -1|1;la=h>>>0>>0?j:h;S=la>>>0>>0;h=y-X|0;j=h>>>0<=y>>>0?h:0;h=j-4|0;ha=h>>>0<=j>>>0?h:0;h=o-k|0;j=h>>>0<=o>>>0?h:0;h=j-4|0;ka=h>>>0<=j>>>0?h:0;va=(aa?ha:ka)<<1;aa=(aa?ka:ha)<<1|1;ca=va>>>0>>0;g=J[m+184>>2];h=n-g|0;j=h>>>0<=n>>>0?h:0;h=j-4|0;n=h>>>0<=j>>>0?h:0;y=n;o=J[m+220>>2];h=i-o|0;j=h>>>0<=i>>>0?h:0;h=j-4|0;k=h>>>0<=j>>>0?h:0;V=k;h=p-g|0;j=h>>>0<=p>>>0?h:0;h=j+4|0;h=h>>>0>>0?-1:h;g=h>>>0>>0?h:l;X=g;h=O-o|0;j=h>>>0<=O>>>0?h:0;h=j+4|0;h=h>>>0>>0?-1:h;W=h>>>0>>0?h:W;q=W;if(G){V= -n;X=q;y=k;q=g}S=S?la:L;h=ca?va:aa;J[C+60>>2]=ea;J[C+56>>2]=ha;J[C+52>>2]=_;J[C+48>>2]=ka;ob:{if(ba>>>0<8){o=7;j=0;break ob}aa=l+W|0;ca=k+l|0;p=Z+(h<<5)|0;i=0;o=7;while(1){pb:{if(!(n>>>0<=o>>>0&g>>>0>i>>>0|i>>>0>>0&o>>>0>=ca>>>0)){j=i+8|0;break pb}o=C+32|0;j=ba-i|0;mX(o,E,i,j>>>0>=8?8:j);Sn(o);j=i+8|0;if(!Us(E,h,i,S,j,p,8,1))break hb}i=j;o=i|7;if(ba>>>0>o>>>0)continue;break}}if(!(!(n>>>0<=o>>>0&g>>>0>j>>>0)&(l+W>>>0<=j>>>0|k+l>>>0>o>>>0)|j>>>0>=ba>>>0)){i=C+32|0;mX(i,E,j,ba-j|0);Sn(i);if(!Us(E, -h,j,S,ba,Z+(h<<5)|0,8,1))break hb}J[C+28>>2]=W;J[C+24>>2]=k;J[C+20>>2]=g;J[C+16>>2]=n;if(h>>>0>>0){i=X<<1;j=q<<1|1;j=i>>>0>j>>>0?i:j;X=j>>>0>>0?j:ba;j=G<<5;p=(ma-j|0)+(k<<6)|0;q=(j+Z|0)+(n<<6)|0;o=l+W|0;k=k+l|0;i=y<<1;j=V<<1|1;l=i>>>0>>0?i:j;i=Z+(l<<5)|0;while(1){j=S-h|0;j=(j>>>0>=8?8:j)+h|0;if(!Wk(E,h,n,j,g,q,1,16))break mb;if(!Wk(E,h,k,j,o,p,1,16))break lb;Sn(C);if(!Us(E,h,l,j,X,i,1,8))break hb;h=h+8|0;if(S>>>0>h>>>0)continue;break}}m=m+152|0;h=L;l=ba;g=v;j=w+1|0;g=j?g:g+1|0;w=j;v=g;if((oa| -0)!=(j|0)|g)continue;break}}j=1;k=U-152|0;l=J[k+136>>2];g=J[s>>2];i=J[s+4>>2];h=J[k+144>>2];if(!Wk(E,l-g|0,J[k+140>>2]-i|0,h-g|0,J[k+148>>2]-i|0,J[t+52>>2],1,h-l|0))break kb;Rn(E);qc(Z);break Ua}fa(2342140,2338616,2997,2343248);B()}fa(2342140,2338616,3003,2343248);B()}fa(2342140,2338616,3737,2343191);B()}fa(2342140,2338616,3560,2343191);B()}Rn(E);qc(Z);j=0;break Ua}Rn(E);j=0;break Ua}Wl(s);j=0}qc(J[C+32>>2])}bc=C- -64|0;if(j)break ca;break f}u=u+1080|0;b=b+52|0;t=t+76|0;T=T+1|0;if(T>>>0>2])continue; -break}Y=J[J[F+20>>2]>>2];u=J[F+32>>2]}i=J[u+16>>2];qb:{if(J[F+68>>2]|!i)break qb;b=J[Y+20>>2];l=J[b+28>>2];rb:{sb:{k=J[F+64>>2];if(k){T=J[Y+16>>2];if(T>>>0<3)break rb;g=J[b+24>>2];if(!((g|0)==J[b+100>>2]&(g|0)==J[b+176>>2])){Hc(f,1,2343789,0);break f}j=J[J[F+24>>2]+24>>2];h=J[j+36>>2];tb:{if((h|0)!=J[j+88>>2]|(h|0)!=J[j+140>>2])break tb;h=l;l=P(g,152);h=(h+l|0)-152|0;h=P(J[h+12>>2]-J[h+4>>2]|0,J[h+8>>2]-J[h>>2]|0);j=l+J[b+104>>2]|0;g=j-152|0;if((h|0)!=(P(J[g+12>>2]-J[g+4>>2]|0,J[g+8>>2]-J[j-152>> -2]|0)|0))break tb;j=l+J[b+180>>2]|0;g=j-152|0;if((P(J[g+12>>2]-J[g+4>>2]|0,J[g+8>>2]-J[j-152>>2]|0)|0)==(h|0))break sb}Hc(f,1,2343789,0);break f}T=J[Y+16>>2];if(T>>>0<3)break rb;h=J[J[F+24>>2]+24>>2];j=J[h+36>>2];ub:{if((j|0)!=J[h+88>>2]|(j|0)!=J[h+140>>2])break ub;j=P(j,152);h=j+l|0;h=P(J[h+148>>2]-J[h+140>>2]|0,J[h+144>>2]-J[h+136>>2]|0);g=j+J[b+104>>2]|0;if((h|0)!=(P(J[g+148>>2]-J[g+140>>2]|0,J[g+144>>2]-J[g+136>>2]|0)|0))break ub;j=j+J[b+180>>2]|0;if((P(J[j+148>>2]-J[j+140>>2]|0,J[j+144>>2]-J[j+ -136>>2]|0)|0)==(h|0))break sb}Hc(f,1,2343789,0);break f}if((i|0)==2){if(!J[u+5608>>2])break qb;r=_e(T<<2);if(!r)break f;x=J[Y+16>>2];vb:{if(!x)break vb;wb:{xb:{if(J[F+64>>2]){i=x&3;l=0;if(x>>>0>=4)break xb;T=0;break wb}i=x&3;l=0;yb:{if(x>>>0<4){T=0;break yb}j=x&-4;T=0;o=0;while(1){g=T<<2;J[g+r>>2]=J[b+52>>2];J[r+(g|4)>>2]=J[b+128>>2];J[r+(g|8)>>2]=J[b+204>>2];J[r+(g|12)>>2]=J[b+280>>2];T=T+4|0;b=b+304|0;o=o+4|0;if((j|0)!=(o|0))continue;break}}if(!i)break vb;while(1){J[r+(T<<2)>>2]=J[b+52>>2];T=T+ -1|0;b=b+76|0;l=l+1|0;if((i|0)!=(l|0))continue;break}break vb}j=x&-4;T=0;o=0;while(1){g=T<<2;J[g+r>>2]=J[b+36>>2];J[r+(g|4)>>2]=J[b+112>>2];J[r+(g|8)>>2]=J[b+188>>2];J[r+(g|12)>>2]=J[b+264>>2];T=T+4|0;b=b+304|0;o=o+4|0;if((j|0)!=(o|0))continue;break}}if(!i)break vb;while(1){J[r+(T<<2)>>2]=J[b+36>>2];T=T+1|0;b=b+76|0;l=l+1|0;if((i|0)!=(l|0))continue;break}}j=J[u+5608>>2];q=0;A=_e(x<<3);b=0;zb:{if(!A)break zb;if(!(!h|!x)){g=A+(x<<2)|0;m=x&-4;t=x&3;k=x-1|0;while(1){b=0;n=0;if(k>>>0>=3)while(1){l=b<<2; -N[l+A>>2]=N[J[l+r>>2]>>2];i=l|4;N[i+A>>2]=N[J[i+r>>2]>>2];i=l|8;N[i+A>>2]=N[J[i+r>>2]>>2];i=l|12;N[i+A>>2]=N[J[i+r>>2]>>2];b=b+4|0;n=n+4|0;if((m|0)!=(n|0))continue;break}o=0;if(t)while(1){i=b<<2;N[i+A>>2]=N[J[i+r>>2]>>2];b=b+1|0;o=o+1|0;if((t|0)!=(o|0))continue;break}y=0;b=j;while(1){i=y<<2;v=i+g|0;J[v>>2]=0;ga=Q(0);o=0;s=0;if(k>>>0>2)while(1){l=o<<2;ga=Q(Q(N[b>>2]*N[l+A>>2])+ga);N[v>>2]=ga;ga=Q(Q(N[b+4>>2]*N[A+(l|4)>>2])+ga);N[v>>2]=ga;ga=Q(Q(N[b+8>>2]*N[A+(l|8)>>2])+ga);N[v>>2]=ga;ga=Q(Q(N[b+12>> -2]*N[A+(l|12)>>2])+ga);N[v>>2]=ga;o=o+4|0;b=b+16|0;s=s+4|0;if((m|0)!=(s|0))continue;break}n=0;if(t)while(1){ga=Q(Q(N[b>>2]*N[A+(o<<2)>>2])+ga);N[v>>2]=ga;o=o+1|0;b=b+4|0;n=n+1|0;if((t|0)!=(n|0))continue;break}i=i+r|0;l=J[i>>2];J[i>>2]=l+4;N[l>>2]=ga;y=y+1|0;if((x|0)!=(y|0))continue;break}q=q+1|0;if((q|0)!=(h|0))continue;break}}qc(A);b=1}qc(r);if(b)break qb;break f}if(J[J[u+5584>>2]+20>>2]==1){if(k){PW(J[b+36>>2],J[b+112>>2],J[b+188>>2],h);break qb}PW(J[b+52>>2],J[b+128>>2],J[b+204>>2],h);break qb}if(k){OW(J[b+ -36>>2],J[b+112>>2],J[b+188>>2],h);break qb}OW(J[b+52>>2],J[b+128>>2],J[b+204>>2],h);break qb}J[ua>>2]=T;Hc(f,1,2343958,ua)}x=J[J[F+20>>2]>>2];if(!J[x+16>>2]){ja=1;break f}A=J[F+68>>2];n=J[x+20>>2];h=J[J[F+32>>2]+5584>>2];m=J[J[F+24>>2]+24>>2];y=0;while(1){Ab:{if(J[A+(y<<2)>>2]?0:A)break Ab;j=J[m+36>>2];i=J[n+28>>2];Bb:{if(!J[F+64>>2]){b=i+P(j,152)|0;o=J[b+148>>2]-J[b+140>>2]|0;Y=J[b+144>>2]-J[b+136>>2]|0;t=J[n+52>>2];i=0;break Bb}b=(i+P(J[n+24>>2],152)|0)-152|0;b=J[b+8>>2]-J[b>>2]|0;j=i+P(j,152)| -0;Y=J[j+8>>2]-J[j>>2]|0;i=b-Y|0;t=J[n+36>>2];o=J[j+12>>2]-J[j+4>>2]|0;if(!o){o=0;break Bb}if(b>>>0>M[n+48>>2]/(o>>>0)>>>0)break g}b=J[m+24>>2];Cb:{if(J[m+32>>2]){b=1<>2]!=1){if(!o|!Y)break Ab;v=u>>31;q=j>>31;l=0;while(1){T=0;while(1){ga=N[t>>2];b=u;Db:{if(ga>Q(2147483648))break Db;b=j;b=j;if(ga>2];k=g;g=g>>31;ga=Gzb(ga);Eb:{if(Q(R(ga))>31)|0;k=k+r|0;g=k>>> -0>>0?g+1|0:g;b=(g|0)<=(q|0)&j>>>0>k>>>0|(g|0)<(q|0)?b:k>>>0>>0&(g|0)<=(v|0)|(g|0)<(v|0)?k:u}J[t>>2]=b;t=t+4|0;T=T+1|0;if((Y|0)!=(T|0))continue;break}t=(i<<2)+t|0;l=l+1|0;if((l|0)!=(o|0))continue;break}break Ab}if(!o|!Y)break Ab;l=Y&-2;g=Y&1;b=0;i=i<<2;while(1){T=0;if((Y|0)!=1)while(1){k=J[h+1076>>2]+J[t>>2]|0;J[t>>2]=(j|0)>(k|0)?j:(k|0)<(u|0)?k:u;k=J[h+1076>>2]+J[t+4>>2]|0;J[t+4>>2]=(j|0)>(k|0)?j:(k|0)<(u|0)?k:u;t=t+8|0;T=T+2|0;if((l|0)!=(T|0))continue;break}if(g){k=J[h+1076>>2]+J[t>>2]|0;J[t>> -2]=(j|0)>(k|0)?j:(k|0)<(u|0)?k:u;t=t+4|0}t=i+t|0;b=b+1|0;if((o|0)!=(b|0))continue;break}}n=n+76|0;h=h+1080|0;m=m+52|0;ja=1;y=y+1|0;if(y>>>0>2])continue;break}break f}ja=0;Hc(f,1,2339308,0);break f}fa(2344032,2344252,2239,2363952);B()}bc=ua+16|0;b=ja;break d}fa(2343351,2343469,172,2343334);B()}if(!b){iA(Ha);J[a+8>>2]=J[a+8>>2]|32768;Hc(f,1,2347961,0);break c}Fb:{if(!c)break Fb;b=0;ja=0;k=J[a+196>>2];h=zW(k,1);if(!((h|0)==-1|d>>>0>>0))Gb:{b=1;d=J[k+24>>2];if(!J[d+16>>2])break Gb;t=J[d+24>> -2];T=J[J[J[k+20>>2]>>2]+20>>2];while(1){b=J[t+24>>2];i=b&7;j=b>>>3|0;b=J[t+36>>2];g=J[T+28>>2];Hb:{if(J[k+64>>2]){d=g+P(b,152)|0;h=J[d+12>>2]-J[d+4>>2]|0;b=(g+P(J[T+24>>2],152)|0)-152|0;d=J[d+8>>2]-J[d>>2]|0;u=J[b+8>>2]-(d+J[b>>2]|0)|0;b=T+36|0;break Hb}b=g+P(b,152)|0;h=J[b+148>>2]-J[b+140>>2]|0;d=J[b+144>>2]-J[b+136>>2]|0;u=0;b=T+52|0}b=J[b>>2];Ib:{Jb:{Kb:{Lb:{j=j+((i|0)!=0)|0;switch(((j|0)==3?4:j)-1|0){case 1:break Jb;case 0:break Kb;case 3:break Lb;default:break Ib}}if(!h)break Ib;l=d+u|0;n=d<< -2;if(h>>>0>=4){i=h&-4;Y=0;while(1){j=tc(c,b,n);c=b;b=l<<2;g=c+b|0;d=b+g|0;c=d+b|0;b=c+b|0;c=tc(tc(tc(j+n|0,g,n)+n|0,d,n)+n|0,c,n)+n|0;Y=Y+4|0;if((i|0)!=(Y|0))continue;break}}Y=0;d=h&3;if(!d)break Ib;while(1){c=tc(c,b,n);b=(l<<2)+b|0;c=c+n|0;Y=Y+1|0;if((d|0)!=(Y|0))continue;break}break Ib}j=!h|!d;if(J[t+32>>2]){if(j)break Ib;i=d&-8;g=d&7;Y=0;j=d-1>>>0<7;while(1){d=0;if(!j)while(1){H[c|0]=J[b>>2];H[c+1|0]=J[b+4>>2];H[c+2|0]=J[b+8>>2];H[c+3|0]=J[b+12>>2];H[c+4|0]=J[b+16>>2];H[c+5|0]=J[b+20>>2];H[c+6| -0]=J[b+24>>2];H[c+7|0]=J[b+28>>2];c=c+8|0;b=b+32|0;d=d+8|0;if((i|0)!=(d|0))continue;break}d=0;if(g)while(1){H[c|0]=J[b>>2];c=c+1|0;b=b+4|0;d=d+1|0;if((g|0)!=(d|0))continue;break}b=(u<<2)+b|0;Y=Y+1|0;if((Y|0)!=(h|0))continue;break}break Ib}if(j)break Ib;g=d&-8;l=d&7;Y=0;i=d-1>>>0<7;j=u<<2;while(1){d=0;if(!i)while(1){H[c|0]=J[b>>2];H[c+1|0]=J[b+4>>2];H[c+2|0]=J[b+8>>2];H[c+3|0]=J[b+12>>2];H[c+4|0]=J[b+16>>2];H[c+5|0]=J[b+20>>2];H[c+6|0]=J[b+24>>2];H[c+7|0]=J[b+28>>2];c=c+8|0;b=b+32|0;d=d+8|0;if((g| -0)!=(d|0))continue;break}d=0;if(l)while(1){H[c|0]=J[b>>2];c=c+1|0;b=b+4|0;d=d+1|0;if((l|0)!=(d|0))continue;break}b=b+j|0;Y=Y+1|0;if((Y|0)!=(h|0))continue;break}break Ib}j=!h|!d;if(J[t+32>>2]){if(j)break Ib;i=d&-8;g=d&7;Y=0;j=d-1>>>0<7;while(1){d=0;if(!j)while(1){I[c>>1]=J[b>>2];I[c+2>>1]=J[b+4>>2];I[c+4>>1]=J[b+8>>2];I[c+6>>1]=J[b+12>>2];I[c+8>>1]=J[b+16>>2];I[c+10>>1]=J[b+20>>2];I[c+12>>1]=J[b+24>>2];I[c+14>>1]=J[b+28>>2];c=c+16|0;b=b+32|0;d=d+8|0;if((i|0)!=(d|0))continue;break}d=0;if(g)while(1){I[c>> -1]=J[b>>2];c=c+2|0;b=b+4|0;d=d+1|0;if((g|0)!=(d|0))continue;break}b=(u<<2)+b|0;Y=Y+1|0;if((Y|0)!=(h|0))continue;break}break Ib}if(j)break Ib;i=d&-8;g=d&7;Y=0;j=d-1>>>0<7;while(1){d=0;if(!j)while(1){I[c>>1]=J[b>>2];I[c+2>>1]=J[b+4>>2];I[c+4>>1]=J[b+8>>2];I[c+6>>1]=J[b+12>>2];I[c+8>>1]=J[b+16>>2];I[c+10>>1]=J[b+20>>2];I[c+12>>1]=J[b+24>>2];I[c+14>>1]=J[b+28>>2];c=c+16|0;b=b+32|0;d=d+8|0;if((i|0)!=(d|0))continue;break}d=0;if(g)while(1){I[c>>1]=J[b>>2];c=c+2|0;b=b+4|0;d=d+1|0;if((g|0)!=(d|0))continue; -break}b=(u<<2)+b|0;Y=Y+1|0;if((Y|0)!=(h|0))continue;break}}T=T+76|0;t=t+52|0;b=1;ja=ja+1|0;if(ja>>>0>2]+16>>2])continue;break}}if(!b)break c;c=Ha+5596|0;b=J[c>>2];if(!b)break Fb;qc(b);J[c>>2]=0;J[Oa+5600>>2]=0}J[a+8>>2]=J[a+8>>2]&-129;H[a+68|0]=K[a+68|0]&254;Na=1;c=Yk(e);b=J[a+8>>2];if(!(c|fc)&(b|0)==64|(b|0)==256)break c;if((fi(e,Aa+10|0,2,f)|0)!=2){Na=0;Hc(f,1,2346745,0);break c}ld(Aa+10|0,Aa+12|0,2);b=J[Aa+12>>2];if((b|0)==65424)break c;if((b|0)==65497){J[a+8>>2]=256;J[a+192>>2]=0;break c}if(!(Yk(e)| -fc)){J[a+8>>2]=64;Hc(f,2,2348E3,0);break c}Na=0;Hc(f,1,2348030,0)}bc=Aa+16|0;return Na|0}fa(2346550,2346358,9705,2347905);B()}fa(2346477,2346358,9706,2347905);B()}fa(2346590,2346358,9707,2347905);B()}function $A(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,Q=0,S=0,T=0,U=0,W=0,X=0,Y=0,_=0,ca=0,da=0,ea=0,fa=0,ga=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0;G=bc-48|0;bc=G;J[G+32>>2]=13;J[G+16>> -2]=13;a:{b:{if(J[f>>2]!=7)break b;c:{if(J[e>>2]!=9)break c;I=J[J[a>>2]+28>>2];A=J[I+8>>2];if((A|0)<=0)break c;Q=J[e+12>>2];j=J[e+8>>2];I=J[I>>2];e=0;while(1){k=J[I+(e<<2)>>2];if(!((j|0)!=J[k>>2]|(Q|0)!=J[k+4>>2])){k=J[k+8>>2];break c}e=e+1|0;if((A|0)!=(e|0))continue;break}k=0}if((b|0)!=(k|0))break b;b=G+32|0;e=J[Bc(J[f+8>>2],807844,b,0)>>2];k=J[G+40>>2];uc(b);d:{if(!i)break d;b=(e|0)==1?k:0;if(b&2|(b&4?0:d))break b;if(d)break d;if(b&32)break b}b=G+32|0;Ce(J[f+8>>2],808142,b);d=JA(J[J[J[a>>2]>>2]+ -36>>2],b,G+12|0);e=J[G+12>>2];uc(b);if(e?0:d)break b;e:{if(J[Bc(J[f+8>>2],802602,b,0)>>2]!=6)break e;b=J[G+40>>2];if(J[b+12>>2]!=4)break e;if(J[Mc(b,0,G+16|0,0)>>2]-3>>>0>=4294967294)o=J[G+16>>2]==1?+J[G+24>>2]:O[G+24>>3];b=G+16|0;uc(b);if(J[Mc(J[G+40>>2],1,b,0)>>2]-3>>>0>=4294967294)r=J[G+16>>2]==1?+J[G+24>>2]:O[G+24>>3];b=G+16|0;uc(b);if(J[Mc(J[G+40>>2],2,b,0)>>2]-3>>>0>=4294967294)p=J[G+16>>2]==1?+J[G+24>>2]:O[G+24>>3];b=G+16|0;uc(b);if(J[Mc(J[G+40>>2],3,b,0)>>2]-3>>>0>=4294967294)q=J[G+16>>2]== -1?+J[G+24>>2]:O[G+24>>3];b=qp;W=b?o:p;X=b?p:o;uc(G+16|0);b=G+32|0;uc(b);f:{g:{if(J[J[a>>2]+24>>2])break g;d=J[a+56>>2];if(J[d+8>>2]?d:0)break g;d=J[Bc(J[f+8>>2],808992,b,0)>>2];uc(b);if((d|0)==7)break f}h=J[f+8>>2];e=0;g=0;j=bc-1296|0;bc=j;J[j+1280>>2]=13;J[j+1264>>2]=13;J[j+1248>>2]=13;J[j+1232>>2]=13;J[j+1216>>2]=13;J[j+1200>>2]=13;J[j+1184>>2]=13;J[j+1168>>2]=13;J[j+1152>>2]=13;J[j+1136>>2]=13;J[j+1120>>2]=13;J[j+1104>>2]=13;J[j+1088>>2]=13;J[j+1072>>2]=13;J[j+1056>>2]=13; -d=rc(8);J[695492]=0;n=$(3184,d|0)|0;b=J[695492];J[695492]=0;h:{i:{j:{k:{l:{if((b|0)!=1){f=0;m:{if(J[Bc(h,809303,j+1264|0,0)>>2]!=7)break m;f=J[j+1272>>2];if(!f){f=0;break m}n:{if(J[Bc(f,809750,j+1104|0,0)>>2]!=6)break n;b=J[j+1112>>2];if(J[b+12>>2]<=0)break n;Xm(b,1,0,n);O[j+1032>>3]=T-U;O[j+1024>>3]=W-X;Xc(n,810221,j+1024|0)}uc(j+1104|0);l=1}ka=cm(a,J[a+32>>2],787291,j+1248|0);o:{if(J[Bc(h,810483,j+1104|0,0)>>2]==7){L=0;p:{if(J[Bc(J[j+1112>>2],810839,j+1088|0,0)>>2]!=4)break p;q:{if(J[j+1088>>2]!= -4)break q;b=J[j+1096>>2];L=0;if(!Ec(b,810839))break p;L=1;if(!Ec(b,811155))break p;L=2;if(!Ec(b,811533))break p;L=3;if(!Ec(b,811806))break p;if(Ec(b,812124))break q;L=4;break p}L=0}b=j+1088|0;uc(b);o=1;if(J[Bc(J[j+1112>>2],812368,b,0)>>2]-3>>>0>=4294967294)o=J[j+1088>>2]==1?+J[j+1096>>2]:O[j+1096>>3];b=j+1088|0;uc(b);if(J[Bc(J[j+1112>>2],811155,b,0)>>2]!=6){d=0;break o}d=J[J[j+1096>>2]+12>>2];g=vd(d,8);if((d|0)<=0)break o;while(1){b=(e<<3)+g|0;if(J[Mc(J[j+1096>>2],e,j+1072|0,0)>>2]-3>>>0>=4294967294)r= -J[j+1072>>2]==1?+J[j+1080>>2]:O[j+1080>>3];else r=1;O[b>>3]=r;uc(j+1072|0);e=e+1|0;if((e|0)!=(d|0))continue;break}break o}b=j+1104|0;uc(b);o=1;if(J[Bc(h,812524,b,0)>>2]!=6)break l;d=0;b=J[j+1112>>2];if(J[b+12>>2]<3)break k;if(J[Mc(b,2,j+1088|0,0)>>2]-3>>>0>=4294967294)o=J[j+1088>>2]==1?+J[j+1096>>2]:O[j+1096>>3];b=j+1088|0;uc(b);d=J[j+1112>>2];if(J[d+12>>2]<4)break l;if(J[Mc(d,3,b,0)>>2]!=6){o=0;d=0;break o}L=1;d=J[J[j+1096>>2]+12>>2];g=vd(d,8);if((d|0)<=0)break o;while(1){b=(e<<3)+g|0;if(J[Mc(J[j+ -1096>>2],e,j+1072|0,0)>>2]-3>>>0>=4294967294)r=J[j+1072>>2]==1?+J[j+1080>>2]:O[j+1080>>3];else r=1;O[b>>3]=r;uc(j+1072|0);e=e+1|0;if((e|0)!=(d|0))continue;break}}uc(j+1088|0);break k}break j}d=0}b=j+1104|0;uc(b);if(!(!(o>0)|l^1)){Bc(f,813048,b,0);r:{if(!(J[j+1104>>2]==6&J[J[j+1112>>2]+12>>2]>0)){uc(b);Bc(f,809750,b,0);if(J[j+1104>>2]!=6)break r}if(J[J[j+1112>>2]+12>>2]<=0)break r;b=j+1088|0;e=J[Bc(f,813386,b,0)>>2];p=T-U;r=W-X;uc(b);s:{if(J[ka>>2]!=4)break s;if(Ec(J[ka+8>>2],789795)|(e|0)==3|!(J[a+ -48>>2]&32768))break s;E=(p>r?r:p)*.5;t:switch(L|0){case 1:od(n,813591);if((d|0)>0){e=0;while(1){O[j+544>>3]=O[(e<<3)+g>>3];Xc(n,813760,j+544|0);e=e+1|0;if((e|0)!=(d|0))continue;break}}od(n,814127);case 0:case 4:O[j+528>>3]=o;Xc(n,814310,j+528|0);Xm(J[j+1112>>2],0,0,n);p=p*.5;O[j+520>>3]=p;r=r*.5;q=o*-.5+E;E=r+q;O[j+512>>3]=E;Xc(n,831496,j+512|0);s=p+q;O[j+504>>3]=s;O[j+496>>3]=r;O[j+488>>3]=s;v=q*.55228475;M=v+r;O[j+480>>3]=M;_=v+p;O[j+472>>3]=_;O[j+464>>3]=E;Xc(n,831650,j+464|0);O[j+456>>3]=p;v= -r-q;O[j+448>>3]=v;O[j+440>>3]=_;O[j+432>>3]=v;O[j+424>>3]=s;s=q*-.55228475;_=s+r;O[j+416>>3]=_;Xc(n,831650,j+416|0);q=p-q;O[j+408>>3]=q;O[j+400>>3]=r;O[j+392>>3]=q;O[j+384>>3]=_;r=s+p;O[j+376>>3]=r;O[j+368>>3]=v;Xc(n,831650,j+368|0);O[j+360>>3]=p;O[j+352>>3]=E;O[j+344>>3]=r;O[j+336>>3]=E;O[j+328>>3]=q;O[j+320>>3]=M;Xc(n,831650,j+320|0);J[j+304>>2]=814449;Xc(n,831840,j+304|0);break r;case 2:case 3:break t;default:break r}O[j+1008>>3]=o*.5;Xc(n,814310,j+1008|0);Xm(J[j+1112>>2],0,0,n);p=p*.5;O[j+1E3>> -3]=p;r=r*.5;q=o*-.25+E;s=r+q;O[j+992>>3]=s;Xc(n,831496,j+992|0);v=p+q;O[j+984>>3]=v;O[j+976>>3]=r;O[j+968>>3]=v;M=q*.55228475;_=M+r;O[j+960>>3]=_;ca=M+p;O[j+952>>3]=ca;O[j+944>>3]=s;Xc(n,831650,j+944|0);O[j+936>>3]=p;M=r-q;O[j+928>>3]=M;O[j+920>>3]=ca;O[j+912>>3]=M;O[j+904>>3]=v;v=q*-.55228475;ca=v+r;O[j+896>>3]=ca;Xc(n,831650,j+896|0);q=p-q;O[j+888>>3]=q;O[j+880>>3]=r;O[j+872>>3]=q;O[j+864>>3]=ca;v=v+p;O[j+856>>3]=v;O[j+848>>3]=M;Xc(n,831650,j+848|0);O[j+840>>3]=p;O[j+832>>3]=s;O[j+824>>3]=v;O[j+ -816>>3]=s;O[j+808>>3]=q;O[j+800>>3]=_;Xc(n,831650,j+800|0);J[j+784>>2]=814449;Xc(n,831840,j+784|0);b=(L|0)==2;Xm(J[j+1112>>2],0,b?1:-1,n);q=(o*-.75+E)/1.4142135623730951;E=p+q;O[j+776>>3]=E;s=r+q;O[j+768>>3]=s;Xc(n,831496,j+768|0);O[j+760>>3]=E;v=r-q;O[j+752>>3]=v;_=q*1.55228475;M=_+p;O[j+744>>3]=M;ca=q*-.44771525;ma=ca+r;O[j+736>>3]=ma;O[j+728>>3]=M;fa=q*.44771525;oa=fa+r;O[j+720>>3]=oa;Xc(n,831650,j+720|0);M=p-q;O[j+712>>3]=M;O[j+704>>3]=v;ca=ca+p;O[j+696>>3]=ca;q=q*-1.55228475;pa=q+r;O[j+688>> -3]=pa;fa=fa+p;O[j+680>>3]=fa;O[j+672>>3]=pa;Xc(n,831650,j+672|0);od(n,831972);Xm(J[j+1112>>2],0,b?-1:1,n);O[j+664>>3]=M;O[j+656>>3]=v;Xc(n,831496,j+656|0);O[j+648>>3]=M;O[j+640>>3]=s;p=q+p;O[j+632>>3]=p;O[j+624>>3]=oa;O[j+616>>3]=p;O[j+608>>3]=ma;Xc(n,831650,j+608|0);O[j+600>>3]=E;O[j+592>>3]=s;O[j+584>>3]=fa;p=_+r;O[j+576>>3]=p;O[j+568>>3]=ca;O[j+560>>3]=p;Xc(n,831650,j+560|0);od(n,831972);break r}u:{v:switch(L|0){case 1:od(n,813591);if((d|0)>0){e=0;while(1){O[j+96>>3]=O[(e<<3)+g>>3];Xc(n,813760, -j+96|0);e=e+1|0;if((e|0)!=(d|0))continue;break}}od(n,814127);case 0:O[j+80>>3]=o;Xc(n,814310,j+80|0);Xm(J[j+1112>>2],0,0,n);O[j- -64>>3]=p-o;O[j+56>>3]=r-o;O[j+48>>3]=o*.5;Xc(n,814941,j+48|0);break u;case 2:case 3:b=(L|0)==2;Xm(J[j+1112>>2],1,b?1:-1,n);od(n,815181);O[j+256>>3]=p;Xc(n,815460,j+256|0);O[j+248>>3]=p;O[j+240>>3]=r;Xc(n,815795,j+240|0);q=p-o;O[j+232>>3]=q;E=r-o;O[j+224>>3]=E;Xc(n,815795,j+224|0);O[j+216>>3]=q;O[j+208>>3]=o;Xc(n,815795,j+208|0);O[j+192>>3]=o;Xc(n,816031,j+192|0);od(n,816224); -Xm(J[j+1112>>2],1,b?-1:1,n);od(n,815181);O[j+176>>3]=r;Xc(n,816407,j+176|0);O[j+168>>3]=p;O[j+160>>3]=r;Xc(n,815795,j+160|0);O[j+152>>3]=q;O[j+144>>3]=E;Xc(n,815795,j+144|0);O[j+136>>3]=o;O[j+128>>3]=E;Xc(n,815795,j+128|0);O[j+112>>3]=o;Xc(n,816031,j+112|0);od(n,816224);break u;case 4:break v;default:break u}O[j+288>>3]=o;Xc(n,814310,j+288|0);Xm(J[j+1112>>2],0,0,n);O[j+272>>3]=r;Xc(n,816685,j+272|0)}O[j+16>>3]=o;q=o*-2;O[j+32>>3]=q+p;O[j+24>>3]=q+r;Xc(n,816991,j+16|0)}uc(j+1104|0)}Gc(g);e=0;b=bc- -80|0;bc=b;J[b+64>>2]=13;J[b+48>>2]=13;J[b+32>>2]=13;J[b+16>>2]=13;J[b>>2]=13;i=j+1216|0;ig(i,J[J[J[a>>2]>>2]+24>>2]);Bc(J[J[a>>2]+16>>2],804958,b- -64|0,0);w:{if(J[b+64>>2]!=7)break w;d=J[b+72>>2];if(J[d+16>>2]<=0)break w;while(1){d=J[J[d+4>>2]+(e<<5)>>2];ip(J[b+72>>2],e,b+32|0);x:{if(J[b+32>>2]!=7)break x;g=b+16|0;ig(g,J[J[J[a>>2]>>2]+24>>2]);d=Md(d);De(J[i+8>>2],d,g);d=0;g=J[b+40>>2];if(J[g+16>>2]<=0)break x;while(1){g=J[J[g+4>>2]+(d<<5)>>2];Wm(J[b+40>>2],d,b);g=Md(g);De(J[b+24>>2],g,b);d=d+1|0; -g=J[b+40>>2];if((d|0)>2])continue;break}}uc(b+32|0);e=e+1|0;d=J[b+72>>2];if((e|0)>2])continue;break}}uc(b- -64|0);Bc(J[a+32>>2],804958,b+48|0,0);y:{if(J[b+48>>2]!=7)break y;d=J[b+56>>2];if(J[d+16>>2]<=0)break y;e=0;while(1){d=J[J[d+4>>2]+(e<<5)>>2];ip(J[b+56>>2],e,b+32|0);z:{if(J[b+32>>2]!=7)break z;g=b+16|0;Bc(J[i+8>>2],d,g,0);if(J[b+16>>2]!=7){uc(g);ig(g,J[J[J[a>>2]>>2]+24>>2])}d=Md(d);De(J[i+8>>2],d,b+16|0);d=0;g=J[b+40>>2];if(J[g+16>>2]<=0)break z;while(1){g=J[J[g+4>>2]+(d<<5)>> -2];Wm(J[b+40>>2],d,b);g=Md(g);De(J[b+24>>2],g,b);d=d+1|0;g=J[b+40>>2];if((d|0)>2])continue;break}}uc(b+32|0);e=e+1|0;d=J[b+56>>2];if((e|0)>2])continue;break}}uc(b+48|0);bc=b+80|0;L=0;A:{if(J[j+1216>>2]!=7)break A;if(J[Bc(J[j+1224>>2],805178,j+1104|0,0)>>2]!=7)break A;d=rc(8);b=J[J[J[a>>2]>>2]+24>>2];J[695492]=0;L=ha(3309,d|0,b|0,0,J[j+1112>>2])|0;b=J[695492];J[695492]=0;if((b|0)!=1)break A;break j}b=j+1104|0;uc(b);B:{z=cm(a,J[a+32>>2],803707,b);if(J[z>>2]!=3)break B;b=J[z+8>>2];d= -rc(8);J[695492]=0;Y=aa(3183,d|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break B;break j}uc(z);i=0;if(l){b=J[Bc(f,817175,z,0)>>2];d=J[z+8>>2];uc(z);i=(b|0)==1?d:0}Bc(h,808992,j+1200|0,0);Bc(h,826531,j+1184|0,0);C:{D:{if(J[j+1184>>2]==4){b=rc(8);J[695492]=0;h=aa(3182,b|0,J[j+1192>>2])|0;d=J[695492];J[695492]=0;if((d|0)!=1)break D;break C}E:{if(J[j+1200>>2]==7){Bc(J[j+1208>>2],807518,z,0);F:{if(J[z>>2]!=7)break F;d=J[z+8>>2];if(J[d+16>>2]!=1)break F;b=rc(8);J[695492]=0;d=J[J[d+4>>2]>>2];e=J[695492]; -J[695492]=0;if((e|0)!=1){J[695492]=0;h=aa(3182,b|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break E}break C}uc(z)}b=rc(8);J[695492]=0;h=aa(3182,b|0,826801)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break D;break C}uc(z)}uc(j+1184|0);uc(j+1200|0);d=0;k=0;e=0;g=bc-48|0;bc=g;J[g+24>>2]=13;J[g+8>>2]=13;Q=j+1052|0;J[Q>>2]=0;I=a;a=J[a+56>>2];G:{if(a){e=J[a+8>>2];if(!e)break G;a=0;J[g+44>>2]=0;while(1){b=a;a=a+1|0;if(zA(e,g+44|0,g+40|0))continue;break}a=0;d=vd(b,4);J[g+44>>2]=0;while(1){b=a;a=a+1|0;if(zA(e, -g+44|0,(b<<2)+d|0))continue;break}J[Q>>2]=b;break G}H:{I:{J:{K:{D=cm(I,J[I+32>>2],801278,g+24|0);switch(J[D>>2]-3|0){case 4:break I;case 0:break J;case 1:break K;default:break H}}b=J[D+8>>2];A=Qc(b);d=vd(A,4);L:{if((A|0)<=0)break L;a=0;if(A>>>0>=4){y=A&-4;while(1){J[(a<<2)+d>>2]=K[a+b|0];x=a|1;J[(x<<2)+d>>2]=K[b+x|0];x=a|2;J[(x<<2)+d>>2]=K[b+x|0];x=a|3;J[(x<<2)+d>>2]=K[b+x|0];a=a+4|0;k=k+4|0;if((y|0)!=(k|0))continue;break}}k=A&3;if(!k)break L;while(1){J[(a<<2)+d>>2]=K[a+b|0];a=a+1|0;e=e+1|0;if((k| -0)!=(e|0))continue;break}}J[Q>>2]=A;break H}b=rc(12);a=J[D+8>>2];J[695492]=0;a=aa(3187,b|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[a+4>>2];d=vd(b,4);tc(d,J[a>>2],b<<2);J[Q>>2]=b;qc(dd(a));break H}a=Z()|0;qc(b);break a}Bc(J[D+8>>2],801844,g+8|0,0);if(J[g+8>>2]==3){a=J[g+16>>2];b=J[a>>2];d=vd(b,4);M:{if((b|0)<=0)break M;A=J[a+4>>2];a=0;if(b>>>0>=4){y=b&-4;while(1){J[(a<<2)+d>>2]=K[a+A|0];x=a|1;J[(x<<2)+d>>2]=K[A+x|0];x=a|2;J[(x<<2)+d>>2]=K[A+x|0];x=a|3;J[(x<<2)+d>>2]=K[A+x|0];a=a+4|0;k=k+4| -0;if((y|0)!=(k|0))continue;break}}k=b&3;if(!k)break M;while(1){J[(a<<2)+d>>2]=K[a+A|0];a=a+1|0;e=e+1|0;if((k|0)!=(e|0))continue;break}}J[Q>>2]=b}uc(g+8|0)}uc(D)}bc=g+48|0;Q=d;N:{O:{P:{Q:{R:{if(J[ka>>2]!=4)break R;a=J[ka+8>>2];if(!Ec(a,789795)){b=0;if(l){S:{if(J[Bc(f,813386,z,0)>>2]!=3)break S;a=J[z+8>>2];d=rc(8);J[695492]=0;b=aa(3183,d|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break S;break j}uc(z)}a=J[I+48>>2];if(a&32768){if(!Q)break Q;a=J[j+1052>>2];if((a|0)>0){e=J[h+4>>2];d=K[e|0];if(!d|(d| -0)!=J[Q>>2])break Q;d=0;while(1){T:{d=d+1|0;if((a|0)==(d|0))break T;g=K[d+e|0];if(!g)break T;if((g|0)==J[Q+(d<<2)>>2])continue}break}if((a|0)>(d|0))break Q}if(b){Uq(b,Y,L,0,0,1,2,0,1,i,0,W-X,T-U,o,0,n);break P}if(!l)break O;U:{if(J[Bc(f,813048,j+1088|0,0)>>2]!=6)break U;a=J[j+1096>>2];if(J[a+12>>2]<=0)break U;Xm(a,1,0,n);a=bc-224|0;bc=a;r=T-U;o=r*.5;O[a+216>>3]=o;q=W-X;p=q*.5;r=(q>3]=q;Xc(n,831496,a+208|0);E=o+r;O[a+200>>3]=E;O[a+192>>3]=p;O[a+184>>3]=E;s=r*.55228475;v=s+ -p;O[a+176>>3]=v;M=s+o;O[a+168>>3]=M;O[a+160>>3]=q;Xc(n,831650,a+160|0);O[a+152>>3]=o;s=p-r;O[a+144>>3]=s;O[a+136>>3]=M;O[a+128>>3]=s;O[a+120>>3]=E;E=r*-.55228475;M=E+p;O[a+112>>3]=M;Xc(n,831650,a+112|0);r=o-r;O[a+104>>3]=r;O[a+96>>3]=p;O[a+88>>3]=r;O[a+80>>3]=M;p=E+o;O[a+72>>3]=p;O[a+64>>3]=s;Xc(n,831650,a- -64|0);O[a+56>>3]=o;O[a+48>>3]=q;O[a+40>>3]=p;O[a+32>>3]=q;O[a+24>>3]=r;O[a+16>>3]=v;Xc(n,831650,a+16|0);J[a>>2]=817418;Xc(n,831840,a);bc=a+224|0}uc(j+1088|0);break O}if(a&65536){if(!b)break O; -Uq(b,Y,L,0,0,1,1,0,0,i,0,W-X,T-U,o,0,n);break P}if(!Q)break Q;a=J[j+1052>>2];if((a|0)<=0)break Q;V:{W:{X:{Y:{d=J[Q>>2];switch(d-78|0){case 0:break X;case 1:break Y;default:break W}}d=a>>>0<2;if(!((a|0)==1|J[Q+4>>2]!=102)){if((a|0)==2){if(a>>>0<3)break Q;break V}d=a>>>0<(J[Q+8>>2]==102?4:3)>>>0}if(d)break Q;break V}if(!((a|0)==1?a>>>0<2:a>>>0<(J[Q+4>>2]==111?3:2)>>>0))break V;break Q}if((d|0)!=48)break V;if(a>>>0<2)break Q}Z:{if(b)break Z;d=rc(8);J[695492]=0;b=aa(3182,d|0,818244)|0;a=J[695492];J[695492]= -0;if((a|0)!=1)break Z;break N}Uq(b,Y,L,0,0,1,2,0,1,i,0,W-X,T-U,o,0,n);break P}if(!Ec(a,790439)){a=J[I+56>>2];if(a)g=J[a+20>>2];else g=0;if(!Q)break O;a=J[j+1052>>2];d=0;l=rc(8);J[695492]=0;A=$(3184,l|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;if((a|0)>0)while(1){b=J[Q+(d<<2)>>2];if(b>>>0<=255)zd(A,b<<24>>24);d=d+1|0;if((a|0)!=(d|0))continue;break}_:{if(g){r=0;m=bc-608|0;bc=m;od(n,828347);$:{aa:{ba:{ca:{if((i|0)!=90){if((i|0)==180)break ca;if((i|0)==270)break ba;o=T-U;s=W-X;break $}o=W-X;O[m+ -576>>3]=o;Xc(n,828557,m+576|0);s=T-U;break $}s=T-U;O[m+592>>3]=s;Xc(n,828913,m+592|0);break aa}s=T-U;O[m+560>>3]=s;Xc(n,828913,m+560|0)}o=W-X}E=o*.2;if(Y){a=rt(Y);k=J[a+8>>2];da:{if((k|0)<3)break da;f=2;while(1){if(!sd(J[J[a>>2]+(f<<2)>>2],804055)){E=Wf(J[J[(J[a>>2]+(f<<2)|0)-4>>2]+4>>2]);k=J[a+8>>2];break da}f=f+1|0;k=J[a+8>>2];if((f|0)<(k|0))continue;break}}if((k|0)>0){f=0;while(1){b=J[J[a>>2]+(f<<2)>>2];if(b){qc(Rc(b));k=J[a+8>>2]}f=f+1|0;if((k|0)>(f|0))continue;break}}qc(dd(a))}ea:{fa:{ga:{a= -J[g+40>>2];if(!a)break ga;if(!sd(a,832012)){q=0;r=o;p=o-E;k=0;break fa}a=J[g+40>>2];if(!a)break ga;e=1;q=0;if(!sd(a,832117)){u=3;k=0;p=o;break ea}a=J[g+40>>2];if(!a)break ga;if(!sd(a,832338)){k=0;r=o;p=o;break ea}a=J[g+40>>2];if(!a)break ga;if(sd(a,832420))break ga;p=0;k=1;break fa}u=3;q=E;p=o-q;k=0}e=0}a=rc(8);J[695492]=0;w=aa(3183,a|0,A|0)|0;b=J[695492];J[695492]=0;ha:{ia:{ja:{ka:{la:{ma:{if((b|0)!=1){na:{if(sd(J[g>>2],832595))break na;f=J[w>>2];if((f|0)<=0)break na;if(K[J[w+4>>2]]==42){dm(w,0, -1);f=J[w>>2];if((f|0)<=0)break na}a=f-1|0;if(K[a+J[w+4>>2]|0]!=42)break na;dm(w,a,1)}if(!sd(J[g>>2],832595)){if(!J[g+32>>2]){xc(1,-1,832707,0);break ha}od(n,832893);v=O[g+8>>3]*3+7;o=s/(v*+(J[g+32>>2]+2|0));d=-1;a=J[w>>2];if((a|0)<-1)break ka;s=0;while(1){a=P((d|0)<0|(a|0)<=(d|0)?42:K[J[w+4>>2]+d|0]&127,10);oa:{if(!K[a+2183360|0]){O[m+280>>3]=p;O[m+272>>3]=o;O[m+264>>3]=q;O[m+256>>3]=s;Xc(n,831171,m+256|0);v=1;break oa}v=O[g+8>>3];O[m+312>>3]=p;O[m+304>>3]=o*v;O[m+296>>3]=q;O[m+288>>3]=s;Xc(n,831171, -m+288|0);v=O[g+8>>3]}s=(v+(K[a+2183361|0]?O[g+8>>3]:1))*o+s;pa:{if(K[a+2183362|0]){v=O[g+8>>3];O[m+248>>3]=p;O[m+240>>3]=o*v;O[m+232>>3]=q;O[m+224>>3]=s;Xc(n,831171,m+224|0);v=O[g+8>>3];break pa}O[m+216>>3]=p;O[m+208>>3]=o;O[m+200>>3]=q;O[m+192>>3]=s;Xc(n,831171,m+192|0);v=1}s=(v+(K[a+2183363|0]?O[g+8>>3]:1))*o+s;qa:{if(K[a+2183364|0]){v=O[g+8>>3];O[m+184>>3]=p;O[m+176>>3]=o*v;O[m+168>>3]=q;O[m+160>>3]=s;Xc(n,831171,m+160|0);v=O[g+8>>3];break qa}O[m+152>>3]=p;O[m+144>>3]=o;O[m+136>>3]=q;O[m+128>> -3]=s;Xc(n,831171,m+128|0);v=1}s=(v+(K[a+2183365|0]?O[g+8>>3]:1))*o+s;ra:{if(K[a+2183366|0]){v=O[g+8>>3];O[m+120>>3]=p;O[m+112>>3]=o*v;O[m+104>>3]=q;O[m+96>>3]=s;Xc(n,831171,m+96|0);v=O[g+8>>3];break ra}O[m+88>>3]=p;O[m+80>>3]=o;O[m+72>>3]=q;O[m+64>>3]=s;Xc(n,831171,m- -64|0);v=1}s=(v+(K[a+2183367|0]?O[g+8>>3]:1))*o+s;sa:{if(K[a+2183368|0]){v=O[g+8>>3];O[m+56>>3]=p;O[m+48>>3]=o*v;O[m+40>>3]=q;O[m+32>>3]=s;Xc(n,831171,m+32|0);v=O[g+8>>3];break sa}O[m+24>>3]=p;O[m+16>>3]=o;O[m+8>>3]=q;O[m>>3]=s;Xc(n, -831171,m);v=1}s=(v+(K[a+2183369|0]?O[g+8>>3]:1))*o+s;a=J[w>>2];b=(d|0)<(a|0);d=d+1|0;if(b)continue;break}break la}if(!sd(J[g>>2],832992)){if(!J[g+32>>2]){xc(1,-1,832707,0);break ha}od(n,832893);o=s/+(P(J[g+32>>2],11)+35|0);if(J[w>>2]<=-3){v=o+o;s=0;break ma}O[m+536>>3]=p;v=o+o;O[m+528>>3]=v;O[m+520>>3]=q;J[m+512>>2]=0;J[m+516>>2]=0;Xc(n,831171,m+512|0);O[m+504>>3]=p;O[m+496>>3]=o;O[m+488>>3]=q;s=o*3;M=s+0;O[m+480>>3]=M;Xc(n,831171,m+480|0);O[m+472>>3]=p;O[m+464>>3]=o;O[m+456>>3]=q;s=s+M;O[m+448>> -3]=s;Xc(n,831171,m+448|0);s=o*5+s;i=J[w>>2];if((i|0)<=-2)break ma;a=104;d=0;while(1){b=d;ta:{if((b|0)==(i|0)){d=(a|0)%103|0;break ta}d=106;if((b|0)==(i+1|0))break ta;d=K[b+J[w+4>>2]|0];d=d<<24>>24>31?d-32|0:0;a=a+P(d,b+1|0)|0}O[m+440>>3]=p;d=P(d,6);f=K[d+2182704|0];O[m+432>>3]=o*+(f>>>0);O[m+424>>3]=q;O[m+416>>3]=s;Xc(n,831171,m+416|0);O[m+408>>3]=p;g=K[d+2182706|0];O[m+400>>3]=o*+(g>>>0);O[m+392>>3]=q;s=+(f+K[d+2182705|0]|0)*o+s;O[m+384>>3]=s;Xc(n,831171,m+384|0);O[m+376>>3]=p;f=K[d+2182708|0];O[m+ -368>>3]=o*+(f>>>0);O[m+360>>3]=q;s=+(g+K[d+2182707|0]|0)*o+s;O[m+352>>3]=s;Xc(n,831171,m+352|0);s=+(f+K[d+2182709|0]|0)*o+s;d=b+1|0;i=J[w>>2];if((b|0)<=(i|0))continue;break}break ma}if(!sd(J[g>>2],833099)){N=J[g+36>>2];b=0;t=bc-7872|0;bc=t;p=O[g+16>>3];r=O[g+24>>3];ua:{if(p<=0|r<=0){xc(1,-1,775010,0);break ua}q=V((s/p+-73)/17);va:{if(R(q)<2147483648){ga=~~q;break va}ga=-2147483648}if((ga|0)<=0){xc(1,-1,776008,0);break ua}l=1;wa:{D=J[w>>2];if((D|0)<=0)break wa;C=J[w+4>>2];x=C+2|0;F=C+1|0;na=t|12;qa= -t|8;ra=t|4;u=1;xa:{while(1){e=D-b|0;i=0;a=b;ya:{while(1){if((K[a+C|0]-48&255)>>>0>9)break ya;a=a+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}i=e}d=0;f=b;za:{Aa:{if((i|0)>=13){if((l|0)>927)break xa;J[t+(l<<2)>>2]=902;sa=b+C|0;l=l+1|0;u=0;d=i;while(1){k=i-u|0;ia=(k|0)>=44?44:k;y=(d|0)>=44?44:d;J[t+5824>>2]=1;Ba:{if((k|0)<=0)break Ba;f=(y|0)<=1?1:y;ea=f&3;g=u+sa|0;e=0;a=0;if(f>>>0>=4){ja=f&2147483644;f=0;while(1){S=t+5824|0;da=a|1;J[S+(da<<2)>>2]=H[a+g|0]-48;la=a|2;J[S+(la<<2)>>2]=H[g+da|0]-48;da=a|3; -J[S+(da<<2)>>2]=H[g+la|0]-48;a=a+4|0;J[S+(a<<2)>>2]=H[g+da|0]-48;f=f+4|0;if((ja|0)!=(f|0))continue;break}}if(!ea)break Ba;while(1){f=a+g|0;a=a+1|0;J[(t+5824|0)+(a<<2)>>2]=H[f|0]-48;e=e+1|0;if((ea|0)!=(e|0))continue;break}}if((k|0)>=-2){S=(ia|0)/3|0;f=(S|0)>0?S:0;Ca:{if((k|0)>=0){ea=y&1;y=y+1&-2;k=0;while(1){g=0;a=0;e=0;if(d)while(1){ia=a<<2;ja=t+5824|0;da=ia+ja|0;la=J[da>>2]+P(g,10)|0;g=(la|0)/900|0;J[da>>2]=g;ia=ja+(ia|4)|0;ja=J[ia>>2]+P(la-P(g,900)|0,10)|0;g=(ja|0)/900|0;J[ia>>2]=g;g=ja-P(g,900)| -0;a=a+2|0;e=e+2|0;if((y|0)!=(e|0))continue;break}da=(t+5760|0)+(S-k<<2)|0;if(!ea){e=(t+5824|0)+(a<<2)|0;g=J[e>>2]+P(g,10)|0;a=(g|0)/900|0;J[e>>2]=a;g=g-P(a,900)|0}J[da>>2]=g;a=(f|0)==(k|0);k=k+1|0;if(!a)continue;break}break Ca}wc((t+5760|0)+(S-f<<2)|0,0,(f<<2)+4|0)}e=((l|0)<=928?928:l)-l|0;a=0;while(1){if((a|0)==(e|0))break xa;J[t+(l<<2)>>2]=J[(t+5760|0)+(a<<2)>>2];l=l+1|0;g=(a|0)==(f|0);a=a+1|0;if(!g)continue;break}}d=d-44|0;u=u+44|0;if((u|0)<(i|0))continue;break}b=b+i|0;break Aa}while(1){Da:{a= -H[f+C|0];if(a&128)break Da;a=a<<2;if(!(K[a+2307904|0]!=30|K[a+2307905|0]!=30|K[a+2307906|0]!=30)&K[a+2307907|0]==30)break Da;i=D-f|0;g=0;a=f;Ea:{while(1){if((K[a+C|0]-48&255)>>>0>9)break Ea;a=a+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}g=i}a=(g|0)<13;d=a+d|0;f=f+1|0;if((D|0)==(f|0))break Da;if(a)continue}break}i=0;k=b;if((d|0)>=5){if(!u){if((l|0)>927)break xa;J[t+(l<<2)>>2]=900;l=l+1|0}f=b+d|0;k=f-2|0;u=f-1|0;a=30;d=0;e=0;while(1){i=K[b+C|0]&127;Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{g= -e;switch(g|0){case 5:break Qa;case 3:break Va;case 2:break Wa;case 1:break Xa;case 4:break Ya;case 0:break Za;default:break Fa}}e=i<<2;d=H[e+2307904|0];if((d|0)<=29){if((a|0)==30){a=d;break Ga}if((l|0)>927)break xa;J[t+(l<<2)>>2]=d+P(a,30);l=l+1|0;a=30;break Ga}if(H[e+2307905|0]<=29){if((a|0)==30)break Ha;if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+27;break Ua}if(H[e+2307906|0]<=29){if((a|0)==30)break Ia;if((l|0)>927)break xa;e=2;J[t+(l<<2)>>2]=P(a,30)+28;break Sa}if(H[e+2307907|0]>29)break Ga;if(!(H[((K[b+ -F|0]&127)<<2)+2307907|0]>29|(b|0)>=(k|0)|H[((K[b+x|0]&127)<<2)+2307907|0]>29))break Ja;e=5;if((a|0)==30){a=29;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;break Sa}i=H[(i<<2)+2307904|0];if((i|0)<=29)break La;if((a|0)==30)break Pa;break Oa}e=i<<2;if(H[e+2307904|0]<=29){if(!(H[((K[b+F|0]&127)<<2)+2307904|0]>29|(b|0)>=(k|0)|H[((K[b+x|0]&127)<<2)+2307904|0]>29)){if((a|0)!=30){if((l|0)>927)break xa;d=P(a,30);a=28;J[t+(l<<2)>>2]=d+28;l=l+1|0;e=0;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]= -868;l=l+1|0;e=0;a=30;break Fa}e=4;if((a|0)==30){a=27;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+27;break Sa}d=H[e+2307905|0];if((d|0)<=29){if((a|0)==30){a=d;break Ma}if((l|0)>927)break xa;J[t+(l<<2)>>2]=d+P(a,30);l=l+1|0;a=30;break Ma}if(H[e+2307906|0]<=29){if((a|0)==30)break Ia;if((l|0)>927)break xa;e=2;J[t+(l<<2)>>2]=P(a,30)+28;break Sa}if(H[e+2307907|0]>29)break Ma;if(!(H[((K[b+F|0]&127)<<2)+2307907|0]>29|(b|0)>=(k|0)|H[((K[b+x|0]&127)<<2)+2307907|0]>29))break Ja;e=5;if((a|0)==30){a= -29;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;break Sa}e=i<<2;if(H[e+2307904|0]<=29){e=0;if((a|0)==30){a=28;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+28;break Sa}if(H[e+2307905|0]<=29){if((a|0)==30)break Ha;if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+27;break Ua}d=H[e+2307906|0];if((d|0)<=29){if((a|0)==30){a=d;break Na}if((l|0)>927)break xa;J[t+(l<<2)>>2]=d+P(a,30);l=l+1|0;a=30;break Na}if(H[e+2307907|0]>29)break Na;if(!(H[((K[b+F|0]&127)<<2)+2307907|0]>29|(b|0)>=(u|0))){e= -3;if((a|0)==30){a=25;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+25;break Sa}e=5;if((a|0)==30){a=29;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;break Sa}d=i<<2;if(H[d+2307904|0]<=29){e=0;if((a|0)==30){a=29;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;break Sa}if(H[d+2307905|0]>29)break Ta;if((a|0)!=30){if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;e=1;l=l+1|0;a=27;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=897}e=1;l=l+1|0;a=30;break Fa}if(H[d+2307906|0]>29)break Ra; -if((a|0)!=30){if((l|0)>927)break xa;e=2;J[t+(l<<2)>>2]=P(a,30)+29;l=l+1|0;a=28;break Fa}if((l|0)>927)break xa;e=2;J[t+(l<<2)>>2]=898}l=l+1|0;a=30;break Fa}d=H[d+2307907|0];_a:{if((d|0)>29)break _a;if((a|0)==30){a=d;break _a}if((l|0)>927)break xa;J[t+(l<<2)>>2]=d+P(a,30);l=l+1|0;a=30}b=b+1|0;e=3;break Fa}i=H[(i<<2)+2307907|0];if((i|0)<=29)break La;if((a|0)!=30)break Oa}a=0;break Ka}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30);l=l+1|0;a=30;break Ka}b=b+1|0;e=2;break Fa}e=1;b=b+1|0;break Fa}if((a|0)== -30){b=b+1|0;a=i;break Ka}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+i;l=l+1|0;b=b+1|0;a=30}e=d;break Fa}$a:{if((a|0)!=30){if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+28;break $a}if((l|0)>927)break xa;J[t+(l<<2)>>2]=865;l=l+1|0;e=3;a=30;break Fa}l=l+1|0;e=3;a=25;break Fa}e=2;a=28;break Fa}e=1;a=27;break Fa}b=b+1|0;e=0}d=g;if((b|0)<(f|0))continue;break}u=1;if((a|0)>29){b=f;break za}if((l|0)>927){b=f;break za}J[t+(l<<2)>>2]=P(a,30)+29;l=l+1|0;b=f;break za}ab:{while(1){d=D-k|0;g=0;a=k;bb:{while(1){if((K[a+ -C|0]-48&255)>>>0>9)break bb;a=a+1|0;g=g+1|0;if((d|0)!=(g|0))continue;break}g=d}d=0;f=k;if((g|0)>12)break ab;while(1){cb:{a=H[f+C|0];if(a&128)break cb;a=a<<2;if(!(K[a+2307904|0]!=30|K[a+2307905|0]!=30|K[a+2307906|0]!=30)&K[a+2307907|0]==30)break cb;u=D-f|0;g=0;a=f;db:{while(1){if((K[a+C|0]-48&255)>>>0>9)break db;a=a+1|0;g=g+1|0;if((u|0)!=(g|0))continue;break}g=u}a=(g|0)<13;d=a+d|0;f=f+1|0;if((D|0)==(f|0))break cb;if(a)continue}break}if((d|0)>4)break ab;k=k+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}i= -e}if((l|0)>927)break xa;J[t+(l<<2)>>2]=(i|0)%6|0?901:924;l=l+1|0;a=0;if((i|0)>=6){k=i-6|0;u=b+C|0;while(1){d=a+u|0;e=K[d+3|0];f=e>>>24|0;g=K[d+1|0];y=g>>>24|0;S=K[d|0];ea=S>>>16|0;g=K[d+2|0]|(g<<8|S<<16);e=K[d+4|0]|e<<8|g<<16;g=(y|ea)<<16|g>>>16|f;y=g;f=K[d+5|0]|e<<8;g=g<<8|e>>>24;S=Fzb(f,g,729E6,0);if((l|0)>927)break xa;d=l<<2;ta=d+t|0,ua=Fzb(e,y,-1732076671,0),J[ta>>2]=ua;if((l|0)==927)break xa;J[d+ra>>2]=(S>>>0)%900;if((l|0)>925)break xa;ta=d+qa|0,ua=(Fzb(f,g,81E4,0)>>>0)%900|0,J[ta>>2]=ua;if((l| -0)==925)break xa;Bzb(Fzb(f,g,900,0),fc,900,0);fc=ec;J[d+na>>2]=dc;l=l+4|0;a=a+6|0;if((k|0)>=(a|0))continue;break}}if((a|0)<(i|0)){d=(l|0)<=928?928:l;e=b+C|0;while(1){if((d|0)==(l|0))break xa;J[t+(l<<2)>>2]=K[a+e|0];l=l+1|0;a=a+1|0;if((i|0)!=(a|0))continue;break}}b=b+i|0}u=0}if((b|0)<(D|0))continue;break}if((l|0)!=929)break wa}xc(1,-1,777174,0);break ua}k=(ga|0)>=30?30:ga;u=N+1|0;g=1<>>0>=91){xc(1,-1,778449,0);break ua}a=P(b,k)-a|0;d=a+l|0;if((d| -0)>=929){xc(1,-1,777174,0);break ua}J[t>>2]=d;if((a|0)>0)while(1){J[t+(l<<2)>>2]=900;l=l+1|0;if((l|0)<(d|0))continue;break}if((u|0)!=31)wc(t+5824|0,0,((g|0)<=1?1:g)<<2);eb:{if((d|0)<=0)break eb;e=g-1|0;l=(t+5824|0)+(e<<2)|0;F=J[(N<<2)+2308416>>2];C=J[F>>2];i=0;if((g|0)>=2)while(1){D=(J[l>>2]+J[t+(i<<2)>>2]|0)%929|0;a=e;while(1){y=a<<2;x=t+5824|0;f=a-1|0;J[y+x>>2]=((J[x+(f<<2)>>2]-((P(D,J[y+F>>2])|0)%929|0)|0)+929|0)%929;y=(a|0)>1;a=f;if(y)continue;break}a=(P(C,D)|0)%929|0;f=929-a|0;J[t+5824>>2]=f>>> -0<929?f:0-a|0;i=i+1|0;if((i|0)!=(d|0))continue;break eb}while(1){a=(P(C,(J[l>>2]+J[t+(i<<2)>>2]|0)%929|0)|0)%929|0;e=929-a|0;J[t+5824>>2]=e>>>0<929?e:0-a|0;i=i+1|0;if((i|0)!=(d|0))continue;break}}if((u|0)!=31)while(1){a=g-1|0;e=J[(t+5824|0)+(a<<2)>>2];J[t+(d<<2)>>2]=e?929-e|0:0;d=d+1|0;e=(g|0)>1;g=a;if(e)continue;break}q=+(b|0);if(q*r+p*6>o){xc(1,-1,778449,0);break ua}i=0;a=0;e=bc-368|0;bc=e;od(n,780098);r=(p*-6+o)/q;O[e+344>>3]=r;d=b;O[e+360>>3]=(o-+(b|0)*r)*.5;O[e+336>>3]=p;O[e+352>>3]=(s-+(P(k, -17)+73|0)*p)*.5;Xc(n,781141,e+336|0);if((b|0)>0){D=b-1|0;C=(D>>>0)/3|0;F=(D-P(C,3)|0)+P(N,3)|0;y=k-1|0;while(1){b=0;l=0;fb:{gb:{hb:{ib:{f=(i>>>0)/3|0;g=i-P(f,3)|0;switch(g|0){case 2:break gb;case 1:break hb;case 0:break ib;default:break fb}}b=P((i>>>0)/3|0,30);l=b+y|0;b=b+C|0;break fb}b=P((i>>>0)/3|0,30);l=b+C|0;b=b+F|0;break fb}b=P(f,30);l=b+F|0;b=b+y|0}J[e+328>>2]=8;f=D-i|0;J[e+324>>2]=f;J[e+320>>2]=0;Xc(n,783236,e+320|0);J[e+312>>2]=1;J[e+308>>2]=f;J[e+304>>2]=9;Xc(n,783236,e+304|0);J[e+296>>2]= -1;J[e+292>>2]=f;J[e+288>>2]=11;Xc(n,783236,e+288|0);J[e+280>>2]=1;J[e+276>>2]=f;J[e+272>>2]=13;Xc(n,783236,e+272|0);J[e+260>>2]=f;N=g<<3;b=N+P(b,24)|0;g=H[b+2308464|0];J[e+264>>2]=g;J[e+256>>2]=17;Xc(n,783236,e+256|0);J[e+244>>2]=f;g=(g+H[b+2308465|0]|0)+17|0;J[e+240>>2]=g;u=H[b+2308466|0];J[e+248>>2]=u;Xc(n,783236,e+240|0);J[e+228>>2]=f;g=H[b+2308467|0]+(g+u|0)|0;J[e+224>>2]=g;u=H[b+2308468|0];J[e+232>>2]=u;Xc(n,783236,e+224|0);J[e+212>>2]=f;g=H[b+2308469|0]+(g+u|0)|0;J[e+208>>2]=g;u=H[b+2308470| -0];J[e+216>>2]=u;Xc(n,783236,e+208|0);u=H[b+2308471|0]+(g+u|0)|0;if((k|0)>0){b=a+k|0;while(1){g=J[t+(a<<2)>>2];J[e+196>>2]=f;g=N+P(g,24)|0;x=H[g+2308464|0];J[e+200>>2]=x;J[e+192>>2]=u;Xc(n,783236,e+192|0);J[e+180>>2]=f;u=H[g+2308465|0]+(u+x|0)|0;J[e+176>>2]=u;x=H[g+2308466|0];J[e+184>>2]=x;Xc(n,783236,e+176|0);J[e+164>>2]=f;u=H[g+2308467|0]+(u+x|0)|0;J[e+160>>2]=u;x=H[g+2308468|0];J[e+168>>2]=x;Xc(n,783236,e+160|0);J[e+148>>2]=f;u=H[g+2308469|0]+(u+x|0)|0;J[e+144>>2]=u;x=H[g+2308470|0];J[e+152>>2]= -x;Xc(n,783236,e+144|0);u=H[g+2308471|0]+(u+x|0)|0;a=a+1|0;if((b|0)!=(a|0))continue;break}a=b}J[e+132>>2]=f;b=N+P(l,24)|0;g=H[b+2308464|0];J[e+136>>2]=g;J[e+128>>2]=u;Xc(n,783236,e+128|0);J[e+116>>2]=f;g=H[b+2308465|0]+(g+u|0)|0;J[e+112>>2]=g;u=H[b+2308466|0];J[e+120>>2]=u;Xc(n,783236,e+112|0);J[e+100>>2]=f;g=H[b+2308467|0]+(g+u|0)|0;J[e+96>>2]=g;u=H[b+2308468|0];J[e+104>>2]=u;Xc(n,783236,e+96|0);J[e+84>>2]=f;g=H[b+2308469|0]+(g+u|0)|0;J[e+80>>2]=g;u=H[b+2308470|0];J[e+88>>2]=u;Xc(n,783236,e+80|0); -J[e+72>>2]=7;J[e+68>>2]=f;b=H[b+2308471|0]+(g+u|0)|0;J[e+64>>2]=b;Xc(n,783236,e- -64|0);J[e+56>>2]=1;J[e+52>>2]=f;J[e+48>>2]=b+8;Xc(n,783236,e+48|0);J[e+40>>2]=1;J[e+36>>2]=f;J[e+32>>2]=b+12;Xc(n,783236,e+32|0);J[e+24>>2]=1;J[e+20>>2]=f;J[e+16>>2]=b+14;Xc(n,783236,e+16|0);J[e+8>>2]=1;J[e+4>>2]=f;J[e>>2]=b+17;Xc(n,783236,e);i=i+1|0;if((d|0)!=(i|0))continue;break}}od(n,782308);bc=e+368|0}bc=t+7872|0;break ia}J[m+544>>2]=J[g>>2];xc(1,-1,833150,m+544|0);break ja}b=Z()|0;qc(a);ba(b|0);B()}O[m+344>>3]= -p;O[m+336>>3]=v;O[m+328>>3]=q;O[m+320>>3]=s;Xc(n,831171,m+320|0);s=o*+(P(J[w>>2],11)+35|0);break ja}v=O[g+8>>3]*3+7}s=o*(v*+(a+2|0))}if(k)break ia;Uq(w,Y,L,0,0,1,u,0,0,0,r,s,E+r,0,e,n)}od(n,830686)}qc(Rc(w));bc=m+608|0;break _}a=cm(I,J[I+32>>2],818412,j+1088|0);b=J[a+8>>2];d=J[a>>2];uc(a);u=(d|0)==1?b:0;e=J[I+48>>2];l=(e^-1)>>>12&1;b=J[I+56>>2];jb:{if(!b)break jb;d=J[b+12>>2];if(!d)break jb;f=J[d>>2];u=(f|0)==2?2:(f|0)==1;l=0;kb:switch(J[d+4>>2]-1|0){case 0:l=1;break jb;case 1:break kb;default:break jb}l= -3}if(e&16777216){b=cm(I,J[I+32>>2],807032,a);d=J[b>>2];a=J[a+8>>2];uc(b);t=(d|0)==1?a:0;b=J[I+56>>2]}d=A;lb:{if(!b)break lb;a=J[b+16>>2];if(!a)break lb;mb:switch(J[a>>2]){case 0:m=J[a+4>>2];e=bc-192|0;bc=e;nb:{ob:{pb:{d=J[A>>2];if(!d){g=rc(8);J[695492]=0;b=aa(3183,g|0,A|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break pb;break ob}qb:{rb:{sb:{tb:{if((d|0)<=3)break tb;f=J[A+4>>2];S=K[f|0];if((S-48&255)>>>0>=10)break tb;g=f+1|0;ga=K[g|0];if((ga-48&255)>>>0>9)break tb;ea=K[f+2|0];if((ea-48&255)>>>0>9)break tb; -na=K[f+3|0];if((na-48&255)>>>0>=10)break tb;a=4;y=0;if(d>>>0<5)break qb;a=K[f+4|0]==45?5:4;b=a|2;if(d>>>0>=b>>>0)break sb;break rb}g=rc(8);J[695492]=0;b=aa(3183,g|0,A|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break pb;break ob}if(a>>>0>=d>>>0)break rb;k=K[a+f|0];if((d-a|0)==1|(k-58&255)>>>0<246)break rb;D=K[a+g|0];if((D-48&255)>>>0>=10)break rb;C=(D+P(k,10)|0)-528|0;ub:{b=b>>>0>>0?K[b+f|0]==45?a+3|0:b:b;a=b+2|0;if(d>>>0>>0|b>>>0>=d>>>0)break ub;k=K[b+f|0];if((((b|0)<(d|0)?d:b)-b|0)==1|(k-58& -255)>>>0<246)break ub;g=K[b+g|0];if((g-48&255)>>>0>=10)break ub;y=(g+P(k,10)|0)-528|0;break qb}a=b;y=0;break qb}y=0}vb:{wb:{if(a>>>0>=d>>>0)break wb;if(K[a+f|0]!=84){g=rc(8);J[695492]=0;b=aa(3183,g|0,A|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break pb;break ob}b=a+3|0;if(d>>>0>>0)break vb;g=a+1|0;if(g>>>0>=d>>>0)break vb;x=(((d|0)>(g|0)?d:g)-g|0)==1;g=f+g|0;k=K[g|0];if(x|(k-58&255)>>>0<246)break vb;g=K[g+1|0];if((g-48&255)>>>0>=10)break vb;F=(g+P(k,10)|0)-528|0;a=b>>>0>>0?K[b+f|0]==58?a+4|0: -b:b;b=a+2|0;xb:{if(d>>>0>>0|a>>>0>=d>>>0)break xb;g=a+f|0;k=K[g|0];if((((a|0)<(d|0)?d:a)-a|0)==1|(k-58&255)>>>0<246)break xb;g=K[g+1|0];if((g-48&255)>>>0>=10)break xb;N=(g+P(k,10)|0)-528|0;b=b>>>0>>0?K[b+f|0]==58?a+3|0:b:b;a=b+2|0;if(d>>>0>>0){a=b;break wb}if(b>>>0>=d>>>0){a=b;break wb}f=b+f|0;g=K[f|0];if((g-58&255)>>>0<246){a=b;break wb}if((((b|0)<(d|0)?d:b)-b|0)==1){a=b;break wb}f=K[f+1|0];if((f-48&255)>>>0>=10){a=b;break wb}w=(f+P(g,10)|0)-528|0}}if(a>>>0>>0){g=rc(8);J[695492]=0;b= -aa(3183,g|0,A|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break pb;break ob}yb:{zb:{a=J[m>>2];if((a|0)<=0)break zb;f=1;d=J[m+4>>2];b=K[d|0];if((b|0)!=123){g=0;while(1){Ab:{if((b-97&255)>>>0>=26){f=0;if((b&254)!=40&(b-65&255)>>>0>25)break yb;g=g+1|0;if((g|0)>=(a|0))break yb;break Ab}g=g+1|0;if((g|0)>=(a|0))break zb}b=K[d+g|0];if((b|0)!=123)continue;break}f=g+1|0}if((a|0)<=(f|0)){a=f;break yb}b=f;while(1){if(K[b+d|0]==125){a=b;break yb}b=b+1|0;if((b|0)!=(a|0))continue;break}break yb}f=0}g=rc(16);J[695492]= -0;k=$(3185,g|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if((a|0)>(f|0))while(1){b=f+1|0;Bb:{Cb:{Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{g=J[m+4>>2];D=K[g+f|0];switch(D-32|0){case 0:case 12:case 13:case 14:case 15:case 26:break Db;case 7:break Eb;case 57:break Fb;case 45:break Gb;case 36:break Hb;case 72:break Ib;case 40:break Jb;case 51:break Kb;default:break Bb}}d=1;if((a|0)>(b|0)){d=K[b+g|0]==83;b=d?f+2|0:b;d=d?2:1}g=rc(8);J[g+4>>2]=d;J[g>>2]=2185132;break Cb}d=1;if((a|0)>(b|0)){d=K[b+g|0]==72;b=d?f+2|0: -b;d=d?2:1}g=rc(12);J[g+8>>2]=d;J[g+4>>2]=1;J[g>>2]=2185040;break Cb}d=1;if((a|0)>(b|0)){d=K[b+g|0]==104;b=d?f+2|0:b;d=d?2:1}g=rc(12);J[g+8>>2]=d;J[g+4>>2]=0;J[g>>2]=2185040;break Cb}d=1;if((a|0)>(b|0)){d=K[b+g|0]==68;b=d?f+2|0:b;d=d?2:1}g=rc(8);J[g+4>>2]=d;J[g>>2]=2184948;break Cb}d=1;if((a|0)>(b|0)){d=K[b+g|0]==77;b=d?f+2|0:b;d=d?2:1}g=rc(8);J[g+4>>2]=d;J[g>>2]=2184856;break Cb}d=1;Lb:{if(K[b+g|0]!=89|(a|0)<=(b|0))break Lb;b=f+2|0;d=2;if((b|0)>=(a|0)|K[b+g|0]!=89)break Lb;b=f+3|0;d=3;if((b|0)>=(a| -0))break Lb;d=K[b+g|0]==89;b=d?f+4|0:b;d=d?4:3}g=rc(8);J[g+4>>2]=d;J[g>>2]=2184764;break Cb}g=rc(8);J[695492]=0;f=$(3184,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break ob;Mb:{if((a|0)<=(b|0))break Mb;while(1){d=b;Nb:{Ob:{g=J[m+4>>2];D=g+b|0;x=K[D|0];if((x|0)!=92){if((x|0)!=39)break Ob;b=b+1|0;if((b|0)>=(a|0)|K[b+g|0]!=39)break Mb;zd(f,39);b=d+2|0;break Nb}x=d+1|0;if((x|0)==(a|0)){b=a;break Mb}b=d+2|0;Pb:{x=K[g+x|0];if((x|0)!=117)break Pb;d=d+6|0;if((d|0)>(a|0))break Pb;g=H[b+g|0];b=g-48|0;Qb:{if((b& -255)>>>0<=9)break Qb;if((g-97&255)>>>0<=5){b=g-87|0;break Qb}b=(g-65&255)>>>0<6?g-55|0:0}b=b<<4;g=H[D+3|0];Rb:{if((g-48&255)>>>0>=10){if((g-97&255)>>>0>=6){if((g-65&255)>>>0>5)break Rb;b=(b+g|0)-55|0;break Rb}b=(b+g|0)-87|0;break Rb}b=(b+g|0)-48|0}b=b<<4;g=H[D+4|0];Sb:{if((g-48&255)>>>0>=10){if((g-97&255)>>>0>=6){if((g-65&255)>>>0>5)break Sb;b=(b+g|0)-55|0;break Sb}b=(b+g|0)-87|0;break Sb}b=(b+g|0)-48|0}b=b<<4;g=H[D+5|0];Tb:{if((g-48&255)>>>0>=10){if((g-97&255)>>>0>=6){if((g-65&255)>>>0>5)break Tb; -b=(b+g|0)-55|0;break Tb}b=(b+g|0)-87|0;break Tb}b=(b+g|0)-48|0}if((b|0)>255){b=d;break Nb}zd(f,b<<24>>24);b=d;break Nb}zd(f,x<<24>>24);break Nb}zd(f,x<<24>>24)}if((a|0)>(b|0))continue;break}}g=rc(8);J[g+4>>2]=f;J[g>>2]=2184648;break Cb}g=rc(8);J[695492]=0;d=$(3184,g|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){zd(d,D<<24>>24);g=rc(8);J[g+4>>2]=d;J[g>>2]=2184648;break Cb}break ob}id(k,g)}f=b;if((a|0)>(b|0))continue;break}g=rc(8);J[695492]=0;b=$(3184,g|0)|0;a=J[695492];J[695492]=0;Ub:{Vb:{if((a|0)!=1){if(J[k+ -8>>2]<=0)break Ub;a=(F|0)%12|0;m=a?a:12;f=(na+P(ea+P(ga+P(S,10)|0,10)|0,10)|0)-53328|0;D=((f&65535)>>>0)%100|0;d=0;x=f-1930>>>0>99;while(1){a=J[J[k>>2]+(d<<2)>>2];Wb:{if(gc[J[J[a>>2]+8>>2]](a)|0){Dh(b,J[a+4>>2]);break Wb}if(gc[J[J[a>>2]+28>>2]](a)|0){if(J[a+4>>2]==2){if(!x){J[e+160>>2]=D;Xc(b,833243,e+160|0);break Wb}od(b,833434);break Wb}J[e+176>>2]=f;Xc(b,833437,e+176|0);break Wb}if(gc[J[J[a>>2]+32>>2]](a)|0){if(J[a+4>>2]==1){J[e+128>>2]=C;Xc(b,833545,e+128|0);break Wb}J[e+144>>2]=C;Xc(b,833243, -e+144|0);break Wb}if(gc[J[J[a>>2]+36>>2]](a)|0){if(J[a+4>>2]==1){J[e+96>>2]=y;Xc(b,833545,e+96|0);break Wb}J[e+112>>2]=y;Xc(b,833243,e+112|0);break Wb}if(gc[J[J[a>>2]+40>>2]](a)|0){g=J[a+4>>2]?F:m;if(J[a+8>>2]==1){J[e+64>>2]=g;Xc(b,833545,e- -64|0);break Wb}J[e+80>>2]=g;Xc(b,833243,e+80|0);break Wb}if(gc[J[J[a>>2]+44>>2]](a)|0){if(J[a+4>>2]==1){J[e+32>>2]=N;Xc(b,833545,e+32|0);break Wb}J[e+48>>2]=N;Xc(b,833243,e+48|0);break Wb}if(!(gc[J[J[a>>2]+48>>2]](a)|0))break Wb;if(J[a+4>>2]==1){J[e>>2]=w;Xc(b, -833545,e);break Wb}J[e+16>>2]=w;Xc(b,833243,e+16|0)}d=d+1|0;g=J[k+8>>2];if((d|0)<(g|0))continue;break}break Vb}break ob}d=0;if((g|0)<=0)break Ub;while(1){a=J[J[k>>2]+(d<<2)>>2];if(a){gc[J[J[a>>2]+4>>2]](a);g=J[k+8>>2]}d=d+1|0;if((g|0)>(d|0))continue;break}}qc(dd(k));break pb}break ob}g=rc(8);J[695492]=0;b=aa(3183,g|0,A|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break pb;break ob}bc=e+192|0;break nb}a=Z()|0;qc(g);break a}d=b;break lb;case 1:C=J[a+4>>2];Xb:{Yb:{f=J[A>>2];if(!f){k=rc(8);J[695492]=0;d= -aa(3183,k|0,A|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break Xb;break Yb}d=J[A+4>>2];D=K[d|0];N=(D|0)==45|(D|0)==43;e=N;Zb:{if((f|0)<=(e|0))break Zb;while(1){if(K[d+e|0]==46)break Zb;e=e+1|0;if((f|0)!=(e|0))continue;break}e=f}b=(e|0)<(f|0)?e:f;a=f;while(1){_b:{g=a;if((a|0)<=(e|0)){g=b;break _b}a=g-1|0;if(K[d+a|0]==48)continue}break}$b:{ac:{b=J[C>>2];if((b|0)<=0)break ac;d=0;m=J[C+4>>2];k=K[m|0];if((k|0)!=123)while(1){bc:{if((k-97&255)>>>0>=26){a=0;if((k&254)!=40&(k-65&255)>>>0>25)break $b;d=d+1|0; -if((d|0)>=(b|0))break $b;break bc}d=d+1|0;if((d|0)>=(b|0))break ac}k=K[d+m|0];if((k|0)!=123)continue;break}a=d+1|0;if((b|0)<=(a|0)){b=a;break $b}d=a;while(1){if(K[d+m|0]==125){b=d;break $b}d=d+1|0;if((d|0)!=(b|0))continue;break}break $b}a=0}k=rc(16);J[695492]=0;m=$(3185,k|0)|0;d=J[695492];J[695492]=0;cc:{if((d|0)!=1){if((a|0)>=(b|0))break cc;while(1){dc:{d=J[C+4>>2]+a|0;a=a+1|0;ec:{fc:{gc:{d=K[d|0];k=d-32|0;if(k>>>0>26)break gc;if(!(1<=(b|0))break hc;while(1){d=a;ic:{jc:{k=J[C+4>>2];F=k+a|0;y=K[F|0];if((y|0)!=92){if((y|0)!=39)break jc;a=a+1|0;if((b|0)<=(a|0)|K[a+k|0]!=39)break hc;zd(w,39);a=d+2|0;break ic}y=d+1|0;if((y|0)==(b|0)){a=b;break hc}a=d+2|0;kc:{y=K[k+y|0];if((y|0)!=117)break kc;d=d+6|0;if((d|0)>(b|0))break kc;k=H[a+k|0];a=k-48|0;if((a&255)>>>0>9)a=(k-65&255)>>>0<6?k-55|0:0;a=a<<4;k=H[F+3|0];lc:{if((k-48&255)>>>0>=10){if((k-65&255)>>>0>5)break lc;a=(a+k| -0)-55|0;break lc}a=(a+k|0)-48|0}a=a<<4;k=H[F+4|0];mc:{if((k-48&255)>>>0>=10){if((k-65&255)>>>0>5)break mc;a=(a+k|0)-55|0;break mc}a=(a+k|0)-48|0}a=a<<4;k=H[F+5|0];nc:{if((k-48&255)>>>0>=10){if((k-65&255)>>>0>5)break nc;a=(a+k|0)-55|0;break nc}a=(a+k|0)-48|0}if((a|0)>255){a=d;break ic}zd(w,a<<24>>24);a=d;break ic}zd(w,y<<24>>24);break ic}zd(w,y<<24>>24);a=d+1|0}if((a|0)<(b|0))continue;break}}k=rc(8);J[k+4>>2]=w;J[k>>2]=2184648;break fc}k=rc(8);J[695492]=0;w=$(3184,k|0)|0;F=J[695492];J[695492]=0;if((F| -0)!=1){zd(w,d<<24>>24);k=rc(8);J[k+4>>2]=w;J[k>>2]=2184648;break fc}break Yb}if((d&223)==83){k=rc(8);H[k+4|0]=d;J[k>>2]=2185224;break fc}oc:switch(d-44|0){default:if((d|0)!=122)break ec;case 12:case 13:case 46:k=rc(12);J[k+8>>2]=0;H[k+4|0]=d;J[k>>2]=2185316;break fc;case 2:k=rc(4);J[k>>2]=2185408;break fc;case 1:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:break ec; -case 0:break oc}k=rc(4);J[k>>2]=2185500}id(m,k)}if((a|0)<(b|0))continue;break cc}break}break Yb}break Yb}k=0;pc:{if(J[m+8>>2]<=0)break pc;qc:{while(1){a=J[J[m>>2]+(k<<2)>>2];if(!(gc[J[J[a>>2]+20>>2]](a)|0)){k=k+1|0;if((k|0)>2])continue;break qc}break}if(!k)break pc}b=0;a=k;while(1){d=a-1|0;w=J[J[m>>2]+(d<<2)>>2];if(gc[J[J[w>>2]+16>>2]](w)|0){J[w+8>>2]=b;b=b+1|0}w=(a|0)>1;a=d;if(w)continue;break}}a=k+1|0;if((a|0)>2]){k=-1;while(1){b=J[J[m>>2]+(a<<2)>>2];if(gc[J[J[b>>2]+16>>2]](b)|0){J[b+ -8>>2]=k;k=k-1|0}a=a+1|0;if((a|0)>2])continue;break}}k=rc(8);J[695492]=0;d=$(3184,k|0)|0;a=J[695492];J[695492]=0;rc:{sc:{if((a|0)!=1){if(J[m+8>>2]<=0)break rc;k=(D|0)==45?45:32;w=e-N|0;a=e^-1;C=a+f|0;F=a+g|0;y=(e+1|0)>=(g|0);b=0;g=0;while(1){a=J[J[m>>2]+(b<<2)>>2];tc:{if(gc[J[J[a>>2]+8>>2]](a)|0){Dh(d,J[a+4>>2]);break tc}if(gc[J[J[a>>2]+12>>2]](a)|0){if(K[a+4|0]==83){zd(d,k);break tc}if((D|0)!=45)break tc;zd(d,45);break tc}uc:{if(gc[J[J[a>>2]+16>>2]](a)|0){f=K[a+4|0];a=J[a+8>>2];N=(a|0)<0;if(!(N| -(a|0)>=(w|0))){zd(d,H[(J[A+4>>2]+e|0)+(a^-1)|0]);break uc}vc:{wc:{if((a|0)<0){N=0-a|0;if((N|0)<=(F|0)){zd(d,H[J[A+4>>2]+(e-a|0)|0]);break uc}xc:switch(f-56|0){case 1:break wc;case 0:break xc;default:break tc}if((C|0)<(N|0))break tc;zd(d,48);break uc}if((f|0)!=57)break vc}zd(d,48);break uc}if((f|0)!=90|N)break tc;zd(d,32);break tc}if(gc[J[J[a>>2]+20>>2]](a)|0){a=b+1|0;yc:{if((a|0)>=J[m+8>>2])break yc;a=a<<2;f=J[a+J[m>>2]>>2];if(!(gc[J[J[f>>2]+16>>2]](f)|0)|K[J[a+J[m>>2]>>2]+4|0]!=122)break yc;if(y)break tc}zd(d, -46);break tc}if(!(gc[J[J[a>>2]+24>>2]](a)|0)|!g)break tc;zd(d,44)}g=1}a=J[m+8>>2];b=b+1|0;if((a|0)>(b|0))continue;break}break sc}break Yb}b=0;if((a|0)<=0)break rc;while(1){e=J[J[m>>2]+(b<<2)>>2];if(e){gc[J[J[e>>2]+4>>2]](e);a=J[m+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}qc(dd(m));break Xb}a=Z()|0;qc(k);break a}break lb;case 2:break mb;default:break lb}k=J[a+4>>2];f=0;zc:{Ac:{Bc:{if(!J[A>>2]){d=rc(8);J[695492]=0;k=aa(3183,d|0,A|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break Bc;break Ac}Cc:{Dc:{b= -J[k>>2];if((b|0)<=0)break Dc;a=1;e=J[k+4>>2];d=K[e|0];if((d|0)!=123){while(1){Ec:{if((d-97&255)>>>0>=26){a=0;if((d&254)!=40&(d-65&255)>>>0>25)break Cc;f=f+1|0;if((f|0)>=(b|0))break Cc;break Ec}f=f+1|0;if((f|0)>=(b|0))break Dc}d=K[e+f|0];if((d|0)!=123)continue;break}a=f+1|0}if((a|0)>=(b|0)){b=a;break Cc}d=a;while(1){if(K[d+e|0]==125){b=d;break Cc}d=d+1|0;if((d|0)!=(b|0))continue;break}break Cc}a=0}d=rc(16);J[695492]=0;e=$(3185,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Ac;if((a|0)<(b|0))while(1){d= -J[k+4>>2]+a|0;a=a+1|0;Fc:{Gc:{Hc:{Ic:{Jc:{f=K[d|0];switch(f-32|0){case 16:case 25:case 33:case 47:case 56:break Hc;case 0:case 12:case 13:case 14:case 15:case 26:break Ic;case 7:break Jc;default:break Fc}}d=rc(8);J[695492]=0;g=$(3184,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Ac;Kc:{if((a|0)>=(b|0))break Kc;while(1){d=a;Lc:{Mc:{f=J[k+4>>2];m=f+a|0;w=K[m|0];if((w|0)!=92){if((w|0)!=39)break Mc;a=a+1|0;if((b|0)<=(a|0)|K[a+f|0]!=39)break Kc;zd(g,39);a=d+2|0;break Lc}w=d+1|0;if((w|0)==(b|0)){a=b; -break Kc}a=d+2|0;Nc:{w=K[f+w|0];if((w|0)!=117)break Nc;d=d+6|0;if((d|0)>(b|0))break Nc;f=H[a+f|0];a=f-48|0;if((a&255)>>>0>9)a=(f-65&255)>>>0<6?f-55|0:0;a=a<<4;f=H[m+3|0];Oc:{if((f-48&255)>>>0>=10){if((f-65&255)>>>0>5)break Oc;a=(a+f|0)-55|0;break Oc}a=(a+f|0)-48|0}a=a<<4;f=H[m+4|0];Pc:{if((f-48&255)>>>0>=10){if((f-65&255)>>>0>5)break Pc;a=(a+f|0)-55|0;break Pc}a=(a+f|0)-48|0}a=a<<4;f=H[m+5|0];Qc:{if((f-48&255)>>>0>=10){if((f-65&255)>>>0>5)break Qc;a=(a+f|0)-55|0;break Qc}a=(a+f|0)-48|0}if((a|0)>255){a= -d;break Lc}zd(g,a<<24>>24);a=d;break Lc}zd(g,w<<24>>24);break Lc}zd(g,w<<24>>24);a=d+1|0}if((a|0)<(b|0))continue;break}}f=rc(8);J[f+4>>2]=g;J[f>>2]=2184648;break Gc}d=rc(8);J[695492]=0;g=$(3184,d|0)|0;m=J[695492];J[695492]=0;if((m|0)!=1){zd(g,f<<24>>24);f=rc(8);J[f+4>>2]=g;J[f>>2]=2184648;break Gc}break Ac}f=rc(4);J[f>>2]=2185596}id(e,f)}if((a|0)<(b|0))continue;break}d=rc(8);J[695492]=0;k=$(3184,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ac;Rc:{if(J[e+8>>2]<=0)break Rc;d=0;b=0;while(1){Sc:{a= -J[J[e>>2]+(b<<2)>>2];Tc:{if(gc[J[J[a>>2]+8>>2]](a)|0){Dh(k,J[a+4>>2]);break Tc}if(!(gc[J[J[a>>2]+52>>2]](a)|0))break Tc;if(J[A>>2]<=(d|0)){qc(Rc(k));d=rc(8);J[695492]=0;k=aa(3183,d|0,A|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){f=J[e+8>>2];break Sc}break Ac}zd(k,H[J[A+4>>2]+d|0]);d=d+1|0}b=b+1|0;f=J[e+8>>2];if((b|0)<(f|0))continue}break}if((f|0)<=0)break Rc;a=0;while(1){b=J[J[e>>2]+(a<<2)>>2];if(b){gc[J[J[b>>2]+4>>2]](b);f=J[e+8>>2]}a=a+1|0;if((f|0)>(a|0))continue;break}}qc(dd(e))}d=k;break zc}a=Z()| -0;qc(d);break a}}Uq(d,Y,L,J[I+48>>2]&4096,t,u,l,1,0,i,0,W-X,T-U,o,0,n);if(!d|(d|0)==(A|0))break _;qc(Rc(d))}qc(Rc(A));break O}if(!Ec(a,791539)){D=cm(I,J[I+32>>2],818412,z);a=J[D+8>>2];b=J[D>>2];uc(D);t=1;g=(b|0)==1?a:0;a=J[I+56>>2];Uc:{if(!a)break Uc;a=J[a+12>>2];if(!a)break Uc;b=J[a>>2];g=(b|0)==2?2:(b|0)==1;t=0;Vc:switch(J[a+4>>2]-1|0){case 0:t=1;break Uc;case 1:break Vc;default:break Uc}t=3}if(K[I+50|0]&2){if(!Q)break O;a=J[j+1052>>2];d=0;l=rc(8);J[695492]=0;f=$(3184,l|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break i;if((a|0)>0)while(1){b=J[Q+(d<<2)>>2];if(b>>>0<=255)zd(f,b<<24>>24);d=d+1|0;if((a|0)!=(d|0))continue;break}Wc:{if(J[Bc(J[I+32>>2],818561,j+1088|0,0)>>2]!=6)break Wc;b=J[j+1096>>2];if(J[b+12>>2]<=0)break Wc;d=0;while(1){Mc(b,d,j+1072|0,0);Xc:{if(J[j+1072>>2]!=6){b=0;break Xc}a=J[j+1080>>2];if(J[a+12>>2]!=2){b=0;break Xc}b=0;Yc:{e=a;a=j+1056|0;if(J[Mc(e,0,a,0)>>2]!=3)break Yc;if(rg(J[j+1064>>2],f))break Yc;uc(a);b=1;if(J[Mc(J[j+1080>>2],1,a,0)>>2]!=3)break Yc;if(f)qc(Rc(f));a=J[j+ -1064>>2];l=rc(8);J[695492]=0;f=aa(3183,l|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break Yc;break i}uc(j+1056|0)}uc(j+1072|0);if(b)break Wc;d=d+1|0;b=J[j+1096>>2];if((d|0)>2])continue;break}}uc(j+1088|0);Uq(f,Y,L,0,0,g,t,1,0,i,0,W-X,T-U,o,0,n);if(!f)break O;qc(Rc(f));break O}if(J[Bc(J[I+32>>2],818561,D,0)>>2]==6){a=J[J[D+8>>2]+12>>2];A=vd(a,4);Zc:{if((a|0)<=0){u=vd(a,4);break Zc}b=0;while(1){e=A+(b<<2)|0;J[e>>2]=0;Mc(J[D+8>>2],b,j+1088|0,0);_c:{$c:switch(J[j+1088>>2]-3|0){case 0:f=J[j+ -1096>>2];d=rc(8);J[695492]=0;f=aa(3183,d|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break j;J[e>>2]=f;break _c;case 3:break $c;default:break _c}d=J[j+1096>>2];if(J[d+12>>2]!=2)break _c;if(J[Mc(d,1,j+1072|0,0)>>2]==3){f=J[j+1080>>2];d=rc(8);J[695492]=0;f=aa(3183,d|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break j;J[e>>2]=f}uc(j+1072|0)}uc(j+1088|0);if(!J[e>>2]){d=rc(8);J[695492]=0;f=$(3184,d|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break N;J[e>>2]=f}b=b+1|0;if((a|0)!=(b|0))continue;break}u=vd(a, -4);if((a|0)<=0)break Zc;t=0;b=J[j+1052>>2];while(1){e=t<<2;f=J[e+A>>2];i=J[f>>2];d=(i|0)==(b|0);ad:{if((b|0)!=(i|0)|(b|0)<=0)break ad;d=0;f=J[f+4>>2];if(J[Q>>2]!=K[f|0])break ad;while(1){d=d+1|0;if((b|0)!=(d|0)&J[Q+(d<<2)>>2]==K[d+f|0])continue;break}d=(b|0)<=(d|0)}J[e+u>>2]=d;t=t+1|0;if((a|0)!=(t|0))continue;break}}d=0;b=0;if(J[Bc(J[I+32>>2],819121,j+1088|0,0)>>2]==1){b=J[j+1096>>2];b=(b|0)>=0?(a|0)>(b|0)?b:0:0}uc(j+1088|0);r=o;o=0;i=0;k=bc-112|0;bc=k;t=-1;l=-1;bd:{cd:{dd:{ed:{if(!Y)break ed;i=rt(Y); -if(J[i+8>>2]<3)break ed;l=sd(J[J[i>>2]+8>>2],804055)?-1:0;fd:{if(J[i+8>>2]<4)break fd;l=sd(J[J[i>>2]+12>>2],804055)?l:1;if(J[i+8>>2]<5)break fd;l=sd(J[J[i>>2]+16>>2],804055)?l:2;f=6;if(J[i+8>>2]<6)break fd;l=sd(J[J[i>>2]+20>>2],804055)?l:3;if(J[i+8>>2]<7)break fd;while(1){e=f<<2;gd:{if(!sd(J[e+J[i>>2]>>2],804055)){l=f-2|0;break gd}t=sd(J[e+J[i>>2]>>2],804460)?t:f-6|0}f=f+1|0;if((f|0)>2])continue;break}}if((l|0)<0)break ed;hd:{id:{f=J[J[i>>2]+(l<<2)>>2];if(J[f>>2]<=0)break id;e=J[f+4>>2];if(K[e| -0]!=47)break id;if(L){e=mI(L,e+1|0);if(e)break hd}e=0;xc(1,-1,825516,0);Eh(f);od(f,825700);break hd}e=0;xc(1,-1,827497,0)}E=Wf(J[J[(J[i>>2]+(l<<2)|0)+4>>2]+4>>2]);if(E!=0)break bd;if((a|0)<=0){m=1;break cd}if(!e){m=1;break dd}while(1){f=gc[J[J[e>>2]+8>>2]](e)|0;m=J[A+(F<<2)>>2];C=J[m>>2];jd:{if(!f){if((C|0)<=0){p=0;break jd}y=J[m+4>>2];p=0;w=0;f=0;if(C>>>0>=4){x=C&-4;m=0;while(1){N=e+1464|0;p=p+O[N+(K[f+y|0]<<3)>>3]+O[N+(K[y+(f|1)|0]<<3)>>3]+O[N+(K[y+(f|2)|0]<<3)>>3]+O[N+(K[y+(f|3)|0]<<3)>>3];f=f+ -4|0;m=m+4|0;if((x|0)!=(m|0))continue;break}}m=C&3;if(!m)break jd;while(1){p=p+O[((K[f+y|0]<<3)+e|0)+1464>>3];f=f+1|0;w=w+1|0;if((m|0)!=(w|0))continue;break}break jd}p=+(C|0)*.5}o=o0)break dd;e=0;break cd}w=a&1;e=0;kd:{if((a|0)==1){f=0;break kd}F=a&-2;f=0;while(1){y=f<<2;p=+J[J[A+(y|4)>>2]>>2]*.5;q=+J[J[A+y>>2]>>2]*.5;o=o>2]>>2]*.5;o=o10?10:o;if(!m)break bd;f=J[(J[i>>2]+(l<<2)|0)+4>>2];Eh(f);O[k+96>>3]=E;Xc(f,829218,k+96|0)}if((a|0)>(b|0)){M=E*-1.1;p=M+(T-U);q=r+2;_=E*1.1;s=W-X;ca=s-(r+r);ma=s-r+-2;y=g-1|0;N=(t|0)<0;fa=E*-.2;while(1){od(n,828347);l=b<<2;x=l+u|0;if(J[x>>2]){od(n,831005);O[k+88>>3]=_;O[k+80>>3]=ca;O[k+64>>3]=r;O[k+72>>3]=fa+p;Xc(n,831171,k- -64|0)}od(n,829214);ld:{md:{if(!e)break md;if(gc[J[J[e>>2]+8>>2]](e)|0)break md;f=J[l+A>>2];C=J[f>> -2];if((C|0)<=0){o=0;break ld}g=J[f+4>>2];o=0;w=0;f=0;if(C>>>0>=4){S=C&-4;m=0;while(1){F=e+1464|0;o=o+O[F+(K[f+g|0]<<3)>>3]+O[F+(K[g+(f|1)|0]<<3)>>3]+O[F+(K[g+(f|2)|0]<<3)>>3]+O[F+(K[g+(f|3)|0]<<3)>>3];f=f+4|0;m=m+4|0;if((S|0)!=(m|0))continue;break}}m=C&3;if(!m)break ld;while(1){o=o+O[((K[f+g|0]<<3)+e|0)+1464>>3];f=f+1|0;w=w+1|0;if((m|0)!=(w|0))continue;break}break ld}o=+J[J[l+A>>2]>>2]*.5}v=E*o;o=q;nd:{od:switch(y|0){case 0:o=(s-v)*.5;break nd;case 1:break od;default:break nd}o=ma-v}pd:{qd:{rd:{if(!N){f= -t<<2;g=J[(f+J[i>>2]|0)+16>>2];Eh(g);O[k+48>>3]=o;Xc(g,829218,k+48|0);f=J[(f+J[i>>2]|0)+20>>2];Eh(f);O[k+32>>3]=p;Xc(f,829218,k+32|0);break rd}if(!i)break qd}f=0;if(J[i+8>>2]>0)while(1){zd(Dh(n,J[J[i>>2]+(f<<2)>>2]),32);f=f+1|0;if((f|0)>2])continue;break}if((t|0)>=0)break pd}O[k+24>>3]=p;O[k+16>>3]=o;Xc(n,829485,k+16|0)}if(J[x>>2])od(n,831375);zd(n,40);f=0;m=l+A|0;C=J[m>>2];if(J[C>>2]>0)while(1){g=K[J[C+4>>2]+f|0];l=g<<24>>24;sd:{if(!((g|0)!=92&g-40>>>0>=2)){zd(n,92);zd(n,l);break sd}if((l| -0)<=31){J[k>>2]=g;Xc(n,829658,k);break sd}zd(n,l)}f=f+1|0;C=J[m>>2];if((f|0)>2])continue;break}od(n,829919);od(n,830041);od(n,830686);p=M+p;b=b+1|0;if((a|0)!=(b|0))continue;break}}if(i){b=J[i+8>>2];if((b|0)>0){f=0;while(1){e=J[J[i>>2]+(f<<2)>>2];if(e){qc(Rc(e));b=J[i+8>>2]}f=f+1|0;if((f|0)<(b|0))continue;break}}qc(dd(i))}bc=k+112|0;if((a|0)>0)while(1){b=J[A+(d<<2)>>2];if(b)qc(Rc(b));d=d+1|0;if((a|0)!=(d|0))continue;break}Gc(A);Gc(u)}uc(D);break O}if(Ec(a,792264))break R;ig(j+1120|0,J[J[J[I>> -2]>>2]+24>>2]);J[z+8>>2]=0;J[z+12>>2]=1071644672;J[z>>2]=2;a=Md(819367);De(J[j+1128>>2],a,z);od(n,819628);p=T-U;O[j+8>>3]=p;r=W-X;O[j>>3]=r;Xc(n,819923,j);d=rc(8);J[695492]=0;a=aa(3182,d|0,820181)|0;b=J[695492];J[695492]=0;if((b|0)==1)break N;if(Y)qc(Rc(Y));d=rc(8);J[695492]=0;Y=aa(3182,d|0,820277)|0;b=J[695492];J[695492]=0;if((b|0)!=1){Uq(a,Y,L,0,0,0,1,0,0,i,0,r,p,o,0,n);qc(Rc(a));break O}break N}xc(1,-1,820514,0);break O}if(!b)break O}qc(Rc(b))}Gc(Q);qc(Rc(h));if(Y)qc(Rc(Y));ig(j+1232|0,J[J[J[I>> -2]>>2]+24>>2]);a=Md(820698);J[z+8>>2]=J[n>>2];J[z>>2]=1;De(J[j+1240>>2],a,z);a=Md(779620);J[z>>2]=4;ta=z,ua=Md(820930),J[ta+8>>2]=ua;De(J[j+1240>>2],a,z);gp(z,J[J[J[I>>2]>>2]+24>>2]);J[j+1096>>2]=0;J[j+1100>>2]=0;J[j+1088>>2]=2;a=j+1088|0;Dg(J[z+8>>2],a);J[j+1096>>2]=0;J[j+1100>>2]=0;J[j+1088>>2]=2;Dg(J[z+8>>2],a);O[j+1096>>3]=W-X;J[j+1088>>2]=2;Dg(J[z+8>>2],a);O[j+1096>>3]=T-U;J[j+1088>>2]=2;Dg(J[z+8>>2],a);a=Md(821159);De(J[j+1240>>2],a,z);td:{if(J[j+1216>>2]==7){Ef(j+1216|0,j+1168|0);break td}ig(j+ -1168|0,J[J[J[I>>2]>>2]+24>>2])}uc(j+1216|0);ig(j+1152|0,J[J[J[I>>2]>>2]+24>>2]);ud:{if(J[Bc(J[j+1176>>2],805178,z,0)>>2]!=7)break ud;d=J[z+8>>2];if(J[d+16>>2]<=0)break ud;g=0;while(1){a=j+1088|0;Wm(d,g,a);b=Md(J[J[J[z+8>>2]+4>>2]+(g<<5)>>2]);De(J[j+1160>>2],b,a);g=g+1|0;d=J[z+8>>2];if((g|0)>2])continue;break}}uc(z);a=j+1136|0;ig(a,J[J[J[I>>2]>>2]+24>>2]);b=Md(821546);J[z>>2]=4;ta=z,ua=Md(805178),J[ta+8>>2]=ua;De(J[j+1144>>2],b,z);b=Md(779620);J[z>>2]=4;ta=z,ua=Md(821799),J[ta+8>>2]=ua;De(J[j+ -1144>>2],b,z);b=Md(821940);J[z>>2]=4;ta=z,ua=Md(822413),J[ta+8>>2]=ua;De(J[j+1144>>2],b,z);b=Md(822637);J[z>>2]=4;ta=z,ua=Md(822916),J[ta+8>>2]=ua;De(J[j+1144>>2],b,z);b=Md(823103);De(J[j+1160>>2],b,a);a=Md(805178);De(J[j+1176>>2],a,j+1152|0);if(J[j+1120>>2]==7){ig(z,J[J[J[I>>2]>>2]+24>>2]);a=Md(823453);De(J[z+8>>2],a,j+1120|0);a=Md(823686);De(J[j+1176>>2],a,z)}a=Md(823842);De(J[j+1240>>2],a,j+1168|0);d=rc(48);a=J[n>>2];b=J[n+4>>2];J[695492]=0;b=Wn(d,b,0,a,j+1232|0);a=J[695492];J[695492]=0;if((a| -0)!=1){a=j+1280|0;J[a+8>>2]=b;J[a>>2]=8;pI(c,a,0,X,U,W,T);uc(a);qc(Rc(n));if(L)qc(VA(L));uc(ka);uc(j+1264|0);bc=j+1296|0;break h}}a=Z()|0;qc(d);break a}a=Z()|0;qc(b);break a}a=Z()|0;qc(d);break a}a=Z()|0;qc(l);break a}break b}b=J[f+8>>2];a=bc+-64|0;bc=a;J[a+48>>2]=13;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;vd:{wd:{if(Ec(809303,g))break wd;if(J[Bc(b,809303,a+48|0,0)>>2]!=7)break wd;Ce(J[a+56>>2],h,a+16|0);break vd}if(J[Bc(b,808992,a+48|0,0)>>2]!=7)break vd;Bc(J[a+56>>2],g,a,0);xd:{if(J[a>>2]==7){yd:{if(h){Ce(J[a+ -8>>2],h,a+16|0);break yd}if(J[Bc(b,826531,a+32|0,0)>>2]==4){Ce(J[a+8>>2],J[a+40>>2],a+16|0);break yd}b=J[a+8>>2];if(J[b+16>>2]==1){Wm(b,0,a+16|0);break yd}Ce(b,826801,a+16|0)}uc(a+32|0);break xd}Ce(J[a+56>>2],g?g:807518,a+16|0)}uc(a)}uc(a+48|0);if(J[a+16>>2]!=13){b=a+16|0;pI(c,b,0,X,U,W,T);uc(b)}bc=a- -64|0;break b}xc(1,-1,808412,0);uc(G+32|0)}bc=G+48|0;return}ba(a|0);B()}function yEa(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,y=0, -z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;k=bc-160|0;bc=k;a:{if(!a){a=K[5112]|K[5113]<<8;H[b+300|0]=a;H[b+301|0]=a>>>8;a=K[5108]|K[5109]<<8|(K[5110]<<16|K[5111]<<24);d=K[5104]|K[5105]<<8|(K[5106]<<16|K[5107]<<24);H[b+292|0]=d;H[b+293|0]=d>>>8;H[b+294|0]=d>>>16;H[b+295|0]=d>>>24;H[b+296|0]=a;H[b+297|0]=a>>>8;H[b+298|0]=a>>>16;H[b+299|0]=a>>>24;break a}I[k+30>>1]=0;I[k+32>>1]=0;c=b;b=bc-16|0;bc=b;b:{c:{d:{e:{if(a){Yd(b+10|0,1,4,a);d=K[b+13|0];h=K[b+12|0];if(!(K[b+10|0]!=80|K[b+11|0]!=73|(h|0)!=67))if((d|0)== -84)break d;l=d|h<<8;I[b>>1]=l;H[b+14|0]=0;d=Yd(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<<8;o=(d|0)!=2?-1:e<<8|e>>>8;I[b+2>>1]=o;H[b+14|0]=0;d=Yd(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<<8;i=(d|0)!=2?-1:e<<8|e>>>8;I[b+4>>1]=i;H[b+14|0]=0;d=Yd(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<<8;e=(d|0)!=2?-1:e<<8|e>>>8;I[b+6>>1]=e;Yd(b+9|0,1,1,a);break e}I[b>>1]=0;I[b+2>>1]=65535;I[b+4>>1]=65535;I[b+6>>1]=65535;i=65535;o=65535;e=65535}if((Yg(a)|0)==17)break d;Xg(a,512,0);H[b+14|0]=0;f:{if(a){Yd(b+14|0,1,2,a);if(!Vq(a,b))break f; -Yd(b+9|0,1,1,a);break c}if(Vq(0,b))break c}d=0;e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293| -0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}if((Yg(a)|0)==2){d=0;if((Yg(a)|0)!=255)break b;J[c+104>>2]=2;g:{h=o<<16>>16;h:{if((h|0)<0)break h;u=e<<16>>16;if((u|0)<0)break h;n=l<<16>>16;if((n|0)<0)break h;s=i<<16>>16;if((s|0)<0|(h|0)>=(u|0))break h;if((n|0)<(s|0))break g}e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<< -24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}J[c+108>>2]=(i&65535)-(l&65535);J[c+112>>2]=(e&65535)-(o&65535);d=1;break b}d=1;J[c+ -104>>2]=1;J[c+112>>2]=(e<<16>>16)-(o<<16>>16);J[c+108>>2]=(i<<16>>16)-(l<<16>>16);break b}if((Yg(a)|0)==17){i:switch(Yg(a)-1|0){case 1:d=0;if((Yg(a)|0)!=255)break b;J[c+104>>2]=2;j:{e=I[b+2>>1];k:{if((e|0)<0)break k;h=I[b+6>>1];if((h|0)<0)break k;u=I[b>>1];if((u|0)<0)break k;n=I[b+4>>1];if((n|0)<0|(e|0)>=(h|0))break k;if((n|0)>(u|0))break j}e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24); -h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}J[c+108>>2]=(n&65535)-(u&65535);J[c+112>>2]=(h&65535)-(e&65535);d=1;break b;case 0:J[c+104>> -2]=1;d=0;l:{e=I[b+2>>1];m:{if((e|0)<0)break m;h=I[b+6>>1];if((h|0)<0)break m;u=I[b>>1];if((u|0)<0)break m;n=I[b+4>>1];if((n|0)<0|(e|0)>=(h|0))break m;if((n|0)>(u|0))break l}e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307| -0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}J[c+108>>2]=(n&65535)-(u&65535);J[c+112>>2]=(h&65535)-(e&65535);d=1;break b;default:break i}d=0;e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h= -K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}d=0;e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]= -e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24}bc=b+16|0;if(!d)break a; -m=a;if(J[a+76>>2]<0)a=J[a>>2];else a=J[m>>2];if(a>>>4&1){H[c+292|0]=69;H[c+293|0]=79;H[c+294|0]=70;H[c+295|0]=102;H[c+296|0]=105;H[c+297|0]=108;H[c+298|0]=101;H[c+299|0]=0;break a}J[c+160>>2]=0;J[c+164>>2]=1079115776;J[c+152>>2]=0;J[c+156>>2]=1079115776;J[c+116>>2]=8;n:{a=J[c+108>>2];if(a){b=J[c+112>>2];if(b)break n}a=K[9761]|K[9762]<<8|(K[9763]<<16|K[9764]<<24);b=K[9757]|K[9758]<<8|(K[9759]<<16|K[9760]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]= -a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[9753]|K[9754]<<8|(K[9755]<<16|K[9756]<<24);b=K[9749]|K[9750]<<8|(K[9751]<<16|K[9752]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}a=P(J[c+288>>2],P(a,b));J[c+120>>2]=a;b=J[c+144>>2];o:{if(!b){a=zc(a);break o}a=Vd(b,a)}J[c+144>>2]=a;f=1;if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break a;b=0;while(1){p:{if(J[c+104>>2]!=1)if(!(wq(m)&1))break p;b=Yg(m)}if(J[c+ -104>>2]==2){H[k+64|0]=0;a=Yd(k- -64|0,1,2,m);b=(a|0)!=2?-1:K[k+65|0]|K[k+64|0]<<8}q:{u=b&65535;r:{if(!u){b=0;break r}s:{t:{if(u>>>0>161)break t;u:{v:{w:{x:{y:{z:switch((b&65535)-1|0){case 0:H[k+64|0]=0;d=k- -64|0;e=Yd(d,1,2,m);a=K[k+64|0]|K[k+65|0]<<8;d=xq(yq(m),d);a=((e|0)!=2?-1:a<<8|a>>>8)&65535;if(a>>>0>(d?0:J[k+88>>2])>>>0){f=0;a=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24); -b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14211]|K[14212]<<8|(K[14213]<<16|K[14214]<<24);b=K[14207]|K[14208]<<8|(K[14209]<<16|K[14210]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14203]|K[14204]<<8|(K[14205]<<16|K[14206]<<24);b=K[14199]|K[14200]<<8|(K[14201]<< -16|K[14202]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if((a|0)!=10){a=a-2|0;if(!a)break s;e=a;d=0;a=0;while(1){if((Yg(m)|0)==-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break t}f=0;if(!Vq(m,k+48|0))break a;a=I[k+50>>1];if((a|0)<0)break s;d=I[k+48>>1];if(d&32768)break s;J[c+108>>2]=I[k+52>>1]-d;J[c+112>>2]=I[k+54>>1]-(a&65535);A:{B:{a=J[c+108>>2];if(a){d=J[c+112>>2];if(d)break B}a= -K[9761]|K[9762]<<8|(K[9763]<<16|K[9764]<<24);d=K[9757]|K[9758]<<8|(K[9759]<<16|K[9760]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[9753]|K[9754]<<8|(K[9755]<<16|K[9756]<<24);d=K[9749]|K[9750]<<8|(K[9751]<<16|K[9752]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;a=0;break A}a=P(J[c+288>>2],P(a,d));J[c+120>>2]=a;d= -J[c+144>>2];C:{if(!d){a=zc(a);break C}a=Vd(d,a)}J[c+144>>2]=a;a=1}if(!a)break a;break s;case 17:case 18:case 19:H[k+64|0]=0;e=Yd(k- -64|0,1,2,m);a=K[k+64|0]|K[k+65|0]<<8;h=a<<8|a>>>8;d=0;a=0;while(1){if((Yg(m)|0)!=-1){f=!a&d>>>0<7;d=d+1|0;a=d?a:a+1|0;if(f)continue}break}d=0;a=0;D:switch((((e|0)!=2?-1:h)&65535)-1|0){case 1:while(1){if((Yg(m)|0)==-1)break t;e=!a&d>>>0<4;d=d+1|0;a=d?a:a+1|0;if(e)continue;break}break t;default:a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[13804]|K[13805]<< -8|(K[13806]<<16|K[13807]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[13801]|K[13802]<<8|(K[13803]<<16|K[13804]<<24);b=K[13797]|K[13798]<<8|(K[13799]<<16|K[13800]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[13793]|K[13794]<<8|(K[13795]<<16|K[13796]<<24);b=K[13789]|K[13790]<<8|(K[13791]<<16|K[13792]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+ -296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a;case 0:break D}H[k+64|0]=0;e=k- -64|0;h=Yd(e,1,2,m);f=K[k+64|0];n=K[k+65|0];e=xq(yq(m),e);if((e?0:J[k+88>>2])>>>0<((h|0)!=2?65535:n|f<<8)>>>0){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+308|0]= -b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14211]|K[14212]<<8|(K[14213]<<16|K[14214]<<24);b=K[14207]|K[14208]<<8|(K[14209]<<16|K[14210]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14203]|K[14204]<<8|(K[14205]<<16|K[14206]<<24);b=K[14199]|K[14200]<<8|(K[14201]<<16|K[14202]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>> -16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!Vq(m,k+48|0)){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]= -a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!HZ(m,k+12|0)){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<< -16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}J[c+116>>2]=I[k+34>>1];O[c+152>>3]=M[k+20>>2];O[c+160>>3]=M[k+24>>2];B_(m);np(m);e=np(m);if(cJ(m)>>>0>>0)break q;if(e)while(1){H[k+ -64|0]=0;Yd(k- -64|0,1,4,m);d=d+1|0;a=d?a:a+1|0;if((d|0)!=(e|0)|a)continue;break}h=I[k+54>>1];f=I[k+50>>1];a=h-f|0;d=L[k+30>>1];e=d<<16>>16<9?e&32767:e;d=e?e:I[k+52>>1]-I[k+48>>1]<<((d|0)==16);if(d>>>0<8)break u;if((f|0)==(h|0))break t;e=a>>>0<=1?1:a;n=0;h=0;i=d>>>0<201;while(1){if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break t;E:{if(!i){a=np(m);break E}a=Yg(m)}if(cJ(m)>>>0>=a>>>0){F:{if(!a)break F;f=a;d=0;a=0;while(1){if((Yg(m)|0)==-1)break F;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue; -break}}n=n+1|0;h=n?h:h+1|0;if((e|0)!=(n|0)|h)continue;break t}break}a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14211]|K[14212]<<8|(K[14213]<< -16|K[14214]<<24);b=K[14207]|K[14208]<<8|(K[14209]<<16|K[14210]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14203]|K[14204]<<8|(K[14205]<<16|K[14206]<<24);b=K[14199]|K[14200]<<8|(K[14201]<<16|K[14202]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a;case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:H[k+ -64|0]=0;a=k- -64|0;d=Yd(a,1,2,m);e=K[k+64|0];h=K[k+65|0];a=xq(yq(m),a);f=a?0:J[k+88>>2];a=(d|0)!=2?65535:h|e<<8;if(f>>>0>=a>>>0){a=a-2|0;if(!a)break s;e=a;d=0;a=0;while(1){if((Yg(m)|0)==-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break t}a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<< -8|(K[14217]<<16|K[14218]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14211]|K[14212]<<8|(K[14213]<<16|K[14214]<<24);b=K[14207]|K[14208]<<8|(K[14209]<<16|K[14210]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14203]|K[14204]<<8|(K[14205]<<16|K[14206]<<24);b=K[14199]|K[14200]<<8|(K[14201]<<16|K[14202]<<24);H[c+ -292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a;case 143:case 144:case 151:case 152:case 153:case 154:s=u-156|0;e=s>>>0>4294967293;G:{if(!e){H[k+62|0]=0;d=Yd(k+62|0,1,2,m);a=K[k+62|0];h=a>>>24|0;f=K[k+63|0]|a<<8;a=(d|0)!=2;f=a?65535:f;a=a?0:h;break G}H[k+62|0]=0;Yd(k+62|0,1,2,m);H[k+62|0]=0;Yd(k+62|0,1,2,m);H[k+62|0]=0;Yd(k+62|0,1,2,m);f=0;a=0}if(!Vq(m,k+48|0)){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>> +J[a+16>>2]}G=(A<<6)+G|0;N=N+32|0;if((N|0)<(g|0))continue;break}}l=J[a+12>>2];o=J[a+8>>2];p=J[a+4>>2];c:{d:{if(e){J[699344]=0;zo(F,p,o,l,32,2);e=J[699344];J[699344]=0;if((e|0)==1)break c;l=J[a+16>>2];if((l|0)<=0)break d;k=J[a+12>>2];if((k|0)<=0)break d;s=k+1|0;e=(k-1>>>1|0)+1|0;o=e&-4;t=e&3;q=0;A=J[i+2060>>2];p=k>>>0<7;while(1){r=0;if(!p)while(1){e=L[A>>1];I[A+2>>1]=e;m=s<<1;I[m+A>>1]=e;n=k<<1;I[n+A>>1]=e;j=L[A+4>>1];I[A+6>>1]=j;e=A+4|0;I[e+m>>1]=j;I[e+n>>1]=j;j=L[A+8>>1];I[A+10>>1]=j;e=A+8|0;I[e+ +m>>1]=j;I[e+n>>1]=j;j=L[A+12>>1];I[A+14>>1]=j;e=A+12|0;I[e+m>>1]=j;I[e+n>>1]=j;A=A+16|0;r=r+4|0;if((o|0)!=(r|0))continue;break}j=0;if(t)while(1){e=L[A>>1];I[A+2>>1]=e;I[(s<<1)+A>>1]=e;I[(k<<1)+A>>1]=e;A=A+4|0;j=j+1|0;if((t|0)!=(j|0))continue;break}A=(k<<1)+A|0;q=q+2|0;if((l|0)>(q|0))continue;break}break d}J[699344]=0;zo(F,p,o,l,32,1);e=J[699344];J[699344]=0;if((e|0)==1)break c}D=J[a+8>>2];e:{if((D|0)<=0)break e;j=J[a+4>>2];if((j|0)<=0)break e;f=J[i+2060>>2];h=0;while(1){A=0;g=b;if((j|0)>0){while(1){e= +I[(A<<1)+f>>1]+32>>6;e=(e|0)>=127?127:e;H[g|0]=(e|0)<=-128?-128:e;g=d+g|0;A=A+1|0;j=J[a+4>>2];if((A|0)<(j|0))continue;break}D=J[a+8>>2]}b=b+c|0;f=(J[a+12>>2]<<1)+f|0;h=h+1|0;if((h|0)<(D|0))continue;break}}hd(M);fc=i+2064|0;return}a=Z()|0;hd(M);ba(a|0);B()}function Coa(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,Q=0,T=0,U=0,V=0,W=0,X=0;C=J[a+12>>2];a:{b:{a=J[b>>2];c:{if((a|0)==1){if(K[C+2768|0])break c; +J[C+2696>>2]=-1;J[C+1992>>2]=-1;x=vc(20);J[699344]=0;J[x+4>>2]=0;J[x+8>>2]=0;J[x>>2]=2463920;J[x+12>>2]=0;J[x+16>>2]=0;a=J[699344];J[699344]=0;if((a|0)!=1){kc[J[J[x>>2]+8>>2]](x,1E5);h=fc-32|0;fc=h;f=C+1976|0;a=J[f+220>>2];b=J[f+224>>2];fH(a,b,(a|0)!=(b|0)?62-(S(b-a>>3)<<1)|0:0);d:{e:{e=J[f+224>>2];n=J[f+220>>2];if((e|0)!=(n|0))while(1){p=k<<3;a=J[p+n>>2];if(!(!a|O[a+24>>3]>2.5|J[a+664>>2]-1>>>0>1)){J[h+28>>2]=0;J[h+20>>2]=0;J[699344]=0;g=_(4,4)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[g>> +2]=k;b=g+4|0;J[h+28>>2]=b;J[h+24>>2]=b;J[h+20>>2]=g;d=b;o=k+1|0;if(o>>>0>3>>>0){while(1){f:{e=o<<3;a=J[e+n>>2];if(!a)break f;a=Wz(J[n+p>>2],a);n=J[f+220>>2];if(a)break f;c=J[n+p>>2];a=e+n|0;J[h+12>>2]=J[a>>2];a=J[a+4>>2];J[h+16>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;a=J[h+16>>2];J[h>>2]=J[h+12>>2];J[h+4>>2]=a;c=J[c+664>>2];v=J[J[h>>2]+664>>2];a=J[h+4>>2];g:{if(!a)break g;i=J[a+4>>2];J[a+4>>2]=i-1;if(i)break g;kc[J[J[a>>2]+8>>2]](a);Gc(a)}v=(c|0)==(v|0);a=J[f+220>>2];c=J[a+p>>2];a=J[a+e>>2];J[699344]= +0;i=cA(c- -64|0,a- -64|0);a=J[699344];J[699344]=0;h:{i:{if((a|0)!=1){c=0;n=J[f+220>>2];a=J[p+n>>2];e=J[e+n>>2];j:{if(J[a+436>>2]!=J[e+436>>2]|J[a+440>>2]!=J[e+440>>2]|(K[a+456|0]!=K[e+456|0]|O[a+448>>3]!=O[e+448>>3]))break j;if(K[a+457|0]!=K[e+457|0]|K[a+458|0]!=K[e+458|0])break j;c=K[a+459|0]==K[e+459|0]}if(!v|!((i|0)!=0|c)|(!(R(O[a+24>>3]-O[e+24>>3])<.3)|!(R(O[a+16>>3]-O[e+16>>3])<1.5)))break f;if((b|0)!=(d|0)){J[d>>2]=o;d=d+4|0;J[h+24>>2]=d;break f}a=b-g|0;d=a>>2;c=d+1|0;if(c>>>0>=1073741824){J[699344]= +0;$(6545,h+20|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;break h}e=a>>1;a=a>>>0>=2147483644?1073741823:c>>>0>>0?e:c;k:{if(!a){i=0;break k}if(a>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break e}J[699344]=0;i=_(4,a<<2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e}e=(d<<2)+i|0;J[e>>2]=o;a=(a<<2)+i|0;d=e+4|0;if((b|0)!=(g|0))while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(g|0))continue;break}J[h+28>>2]=a;J[h+24>>2]=d;J[h+20>>2]=e;if(!g)break i;uc(g);n= +J[f+220>>2];break i}break e}g=e;b=a;break f}B()}o=o+1|0;if(o>>>0>2]-n>>3>>>0)continue;break}g=J[h+20>>2];b=J[h+24>>2]}a=b-g|0;l:{if(a>>>0>=5){o=1;b=0;e=a>>2;if(e>>>0<=1)break l;while(1){m:{a=J[(b<<2)+g>>2];c=J[(o<<2)+g>>2];J[699344]=0;ca(6546,(a<<3)+n|0,(c<<3)+n|0,(e-1|0)==(o|0)|0);a=J[699344];J[699344]=0;if((a|0)==1)break m;n=J[f+220>>2];a=J[n+(b<<3)>>2];b=a?b:o;a=(!a+o|0)+1|0;o=a;g=J[h+20>>2];e=J[h+24>>2]-g>>2;if(a>>>0>>0)continue;break l}break}break e}if((a|0)!=4)break l;a=J[g>>2]; +J[699344]=0;KT((a<<3)+n|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;g=J[h+20>>2]}if(g){J[h+24>>2]=g;uc(g)}n=J[f+220>>2];e=J[f+224>>2]}k=k+1|0;if(k>>>0>3>>>0)continue;break}fc=h+32|0;break d}b=Z()|0;a=J[h+20>>2];if(a){J[h+24>>2]=a;uc(a)}ba(b|0);B()}e=0;g=J[f+184>>2];if((g|0)!=J[f+188>>2]){c=f+208|0;while(1){a=e<<3;b=J[a+g>>2];n:{if(!b)break n;g=J[f+184>>2];b=b+240|0;if(J[b+8>>2]-J[b+4>>2]>>2!=1)break n;b=J[ym(J[a+g>>2]+240|0,0)>>2]-768|0;g=J[f+184>>2];if(b>>>0>=112)break n;a=a+g|0;b=J[f+212>> +2];if(b>>>0>2]){J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[f+212>>2]=b+8;break n}Sv(c,a);g=J[f+184>>2]}e=e+1|0;if(e>>>0>2]-g>>3>>>0)continue;break}}c=fc+-64|0;fc=c;J[c+56>>2]=0;J[c+60>>2]=0;o:{p:{q:{k=J[f+184>>2];d=J[f+188>>2];if((k|0)==(d|0))break q;e=f+196|0;r:{while(1){s:{a=J[k>>2];t:{if(!a)break t;b=J[c+56>>2];if(!(!b|!(R(O[b+16>>3]-O[a+16>>3])<=.02))){J[c+48>>2]=a;a=J[k+4>>2];J[c+52>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[699344]=0;a=J[c+52>>2];J[c+24>>2]=J[c+48>> +2];J[c+28>>2]=a;da(6548,b|0,c+24|0);a=J[699344];J[699344]=0;if((a|0)!=1)break t;break p}u:{b=J[f+200>>2];o=J[f+196>>2];if((b|0)==(o|0))break u;p=0;i=0;while(1){a=b-o>>3;j=O[J[k>>2]+16>>3];v:{while(1){b=(p<<3)+o|0;g=J[b>>2];if(R(O[g+16>>3]-j)<=.02){b=J[b+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[c+56>>2]=g;a=J[c+60>>2];J[c+60>>2]=b;w:{if(!a)break w;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break w;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[k>>2];H[a+238|0]=1;J[c+40>>2]=a;a=J[k+4>>2];J[c+44>>2]=a;b=J[c+56>>2];if(a)J[a+4>>2]=J[a+ +4>>2]+1;J[699344]=0;a=J[c+44>>2];J[c+16>>2]=J[c+40>>2];J[c+20>>2]=a;da(6548,b|0,c+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)break v;break p}p=p+1|0;if(a>>>0>p>>>0)continue;break}if(i)break t;break u}i=1;p=p+1|0;b=J[f+200>>2];o=J[f+196>>2];if(p>>>0>3>>>0)continue;break}break t}J[699344]=0;a=_(4,136)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=2442036;J[a+4>>2]=0;J[a+8>>2]=0;J[a+16>>2]=2463728;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0; +J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[c+56>>2]=a+16;b=J[c+60>>2];J[c+60>>2]=a;x:{if(!b)break x;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break x;kc[J[J[b>>2]+8>>2]](b);Gc(b)}J[c+32>>2]=J[k>>2];a=J[k+4>>2];J[c+36>>2]=a;b=J[c+56>>2];if(a)J[a+ +4>>2]=J[a+4>>2]+1;J[699344]=0;a=J[c+36>>2];J[c+8>>2]=J[c+32>>2];J[c+12>>2]=a;da(6548,b|0,c+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break s;a=J[f+200>>2];if((a|0)!=J[f+204>>2]){J[a>>2]=J[c+56>>2];b=J[c+60>>2];J[a+4>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[f+200>>2]=a+8;break t}J[699344]=0;da(6549,e|0,c+56|0);a=J[699344];J[699344]=0;if((a|0)==1)break s}k=k+8|0;if((d|0)!=(k|0))continue;break q}break}break p}break p}o=J[f+196>>2];if((o|0)==J[f+200>>2])break o;a=f+196|0;k=0;while(1){y:{b=k<<3;d=J[b+o>>2];p= +J[d+56>>2];d=J[d+60>>2];z:{if((p|0)!=(d|0)){A:{while(1){B:{e=J[p>>2];J[699344]=0;e=_(6550,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break B;if(!e)break z;p=p+8|0;if((d|0)!=(p|0))continue;break A}break}break p}o=J[a>>2]}J[699344]=0;b=b+o|0;ga(6551,a|0,b|0,b+8|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break y}k=k+1|0;o=J[f+196>>2];if(k>>>0>2]-o>>3>>>0)continue;break o}break}}a=Z()|0;je(c+56|0);break b}a=J[c+60>>2];C:{if(!a)break C;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break C;kc[J[J[a>>2]+8>>2]](a); +Gc(a)}fc=c- -64|0;a=J[f+196>>2];b=J[f+200>>2];iH(a,b,(a|0)!=(b|0)?62-(S(b-a>>3)<<1)|0:0);c=0;g=0;h=fc-112|0;fc=h;v=f;j=O[J[f+72>>2]+16>>3];J[h+108>>2]=0;J[h+100>>2]=0;J[h+104>>2]=0;J[h+96>>2]=0;J[h+88>>2]=0;J[h+92>>2]=0;D:{E:{F:{G:{b=J[f+196>>2];e=J[f+200>>2];if((b|0)==(e|0))break G;j=j+j;while(1){i=(g<<3)+b|0;a=J[i>>2];d=J[a+56>>2];n=J[a+60>>2];if((d|0)!=(n|0)){while(1){H:{a=J[d>>2];if(!a|!(j>2]+400>>3]))break H;J[699344]=0;a=J[a+248>>2]-J[a+244>>2]>>2;b=J[699344];J[699344]=0;I:{J:{if((b| +0)!=1){if((a|0)!=1)break H;b=J[h+108>>2];if(b>>>0>c>>>0){J[c+4>>2]=i;J[c>>2]=d;c=c+8|0;J[h+104>>2]=c;break H}K:{L:{e=J[h+100>>2];o=c-e>>3;a=o+1|0;M:{if(a>>>0>=536870912){J[699344]=0;$(6561,h+100|0);a=J[699344];J[699344]=0;if((a|0)==1)break M;break I}b=b-e|0;k=b>>2;p=b>>>0>=2147483640?536870911:a>>>0>>0?k:a;if(!p){k=0;break K}if(p>>>0<536870912)break L;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break I}b=Z()|0;break F}J[699344]=0;k=_(4,p<<3)|0;a=J[699344];J[699344]=0;if((a|0)==1)break J}b= +(o<<3)+k|0;J[b+4>>2]=i;J[b>>2]=d;a=b+8|0;if((c|0)!=(e|0)){while(1){c=c-8|0;o=J[c+4>>2];b=b-8|0;J[b>>2]=J[c>>2];J[b+4>>2]=o;if((c|0)!=(e|0))continue;break}c=J[h+100>>2]}J[h+108>>2]=(p<<3)+k;J[h+104>>2]=a;J[h+100>>2]=b;if(c)uc(c);c=a;break H}b=Z()|0;break F}b=Z()|0;break F}B()}d=d+8|0;if((n|0)!=(d|0))continue;break}e=J[v+200>>2];b=J[v+196>>2]}g=g+1|0;if(g>>>0>3>>>0)continue;break}o=J[h+100>>2];if((o|0)==(c|0))break G;while(1){N:{b=J[v+196>>2];p=J[v+200>>2];O:{if((b|0)==(p|0))break O;g=J[o+4>>2]; +d=J[o>>2];e=0;while(1){P:{a=J[b>>2];Q:{if(!a|(a|0)==J[g>>2])break Q;k=J[d>>2];if(O[a+32>>3]>3])break Q;j=O[a+104>>3];m=O[k+224>>3];if(R(j-m)<.02){e=e+1|0;break P}if(j>3])break Q;if(m>3])break P;e=e+1|0}b=b+8|0;if((p|0)!=(b|0))continue}break}if(e>>>0<2)break O;J[699344]=0;a=_(4,112)|0;b=J[699344];J[699344]=0;R:{S:{if((b|0)!=1){J[a>>2]=2442156;J[a+4>>2]=0;J[a+8>>2]=0;b=Ac(a+16|0,0,96);J[a+76>>2]=0;J[a+80>>2]=0;J[a+16>>2]=2450216;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>> +2]=0;J[h+84>>2]=a;J[h+80>>2]=b;a=J[d>>2];J[699344]=0;XG(b,a);a=J[699344];J[699344]=0;if((a|0)==1)break N;k=J[h+80>>2];J[k+56>>2]=e;a=k+72|0;b=J[J[d>>2]+56>>2];e=b+384|0;if((a|0)==(e|0))break R;i=K[b+395|0];p=i<<24>>24;if(H[k+83|0]>=0){if((p|0)<0)break S;b=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=b;J[a+8>>2]=J[e+8>>2];break R}k=J[b+388>>2];b=J[b+384>>2];J[699344]=0;n=a;a=(p|0)<0;ga(1630,n|0,(a?b:e)|0,(a?k:i)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break N;break R}b=Z()|0;break F}e=J[b+388>>2];b=J[b+384>> +2];J[699344]=0;ga(1631,a|0,b|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break N}a=J[d>>2]+240|0;J[699344]=0;da(6563,h+8|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break N;b=J[h+80>>2];a=b;if(H[a+71|0]<0){uc(J[a+60>>2]);b=J[h+80>>2]}e=J[h+12>>2];J[a+60>>2]=J[h+8>>2];J[a+64>>2]=e;J[a+68>>2]=J[h+16>>2];j=O[J[J[d>>2]+56>>2]+400>>3];j=j+j;T:{if(R(j)<2147483648){a=~~j;break T}a=-2147483648}J[b+84>>2]=a;a=J[h+92>>2];U:{if(a>>>0>2]){J[a>>2]=b;J[a+4>>2]=J[h+84>>2];J[h+92>>2]=a+8;J[h+80>>2]=0;J[h+ +84>>2]=0;break U}J[699344]=0;da(6564,h+88|0,h+80|0);a=J[699344];J[699344]=0;if((a|0)==1)break N}a=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;V:{if(!a)break V;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break V;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[g>>2];J[699344]=0;a=Tz(a);b=J[699344];J[699344]=0;if((b|0)==1)break N;W:{X:{if(!a)break X;a=J[g+4>>2];J[g>>2]=0;J[g+4>>2]=0;if(!a)break W;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break X;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[g>>2];if(!a)break W;J[699344]=0;$(6566,a|0);a=J[699344];J[699344]=0;if((a| +0)==1)break N}a=J[h+84>>2];if(!a)break O;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break O;kc[J[J[a>>2]+8>>2]](a);Gc(a)}o=o+8|0;if((o|0)!=(c|0))continue;break G}break}b=Z()|0;je(h+80|0);break F}b=J[h+88>>2];k=J[h+92>>2];if((b|0)==(k|0))break D;p=v+220|0;d=h+24|0;a=h+8|4;Y:{Z:{_:{$:{while(1){aa:{J[699344]=0;c=_(4,712)|0;e=J[699344];J[699344]=0;ba:{ca:{if((e|0)!=1){J[c>>2]=2441796;J[c+4>>2]=0;J[c+8>>2]=0;J[699344]=0;e=_(6508,c+16|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){b=Z()|0;uc(c);break F}J[h+80>>2]=e;J[h+ +84>>2]=c;J[c+72>>2]=1;J[h+8>>2]=340552;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[699344]=0;ga(2227,d|0,2441764,5)|0;c=J[699344];J[699344]=0;da:{ea:{if((c|0)!=1){if(H[h+23|0]>=0)break ea;J[h+16>>2]=0;c=J[h+12>>2];break da}b=Z()|0;if(H[h+35|0]<0)uc(J[h+24>>2]);if(H[h+23|0]>=0)break Y;uc(J[h+12>>2]);break Y}H[h+23|0]=0;c=a}J[c>>2]=0;I[h+56>>1]=0;J[h+48>>2]=0;J[h+52>>2]=0;J[h+40>>2]=0;J[h+44>>2]=0;J[h+68>>2]=0;J[h+72>>2]=0;J[h+60>>2]=0;J[h+64>>2]=0;c=J[b>>2];e=c+72|0; +if((e|0)==(d|0))break ba;i=K[c+83|0];g=i<<24>>24;if(H[h+35|0]>=0){if((g|0)<0)break ca;c=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=c;J[d+8>>2]=J[e+8>>2];break ba}n=J[c+76>>2];c=J[c+72>>2];J[699344]=0;o=c;c=(g|0)<0;ga(1630,d|0,(c?o:e)|0,(c?n:i)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break aa;break ba}b=Z()|0;break F}e=J[c+76>>2];c=J[c+72>>2];J[699344]=0;ga(1631,d|0,c|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break aa}O[h+40>>3]=+J[J[b>>2]+84>>2]*.5;c=J[v+76>>2];J[699344]=0;da(6567,c|0,h+8|0);c=J[699344]; +J[699344]=0;if((c|0)==1)break aa;c=J[v+76>>2];J[699344]=0;m=O[c+96>>3];q=O[c+40>>3];u=O[c+104>>3];c=J[699344];J[699344]=0;if((c|0)==1)break $;c=J[h+80>>2];e=J[b>>2];j=O[e+8>>3];O[c+8>>3]=j;m=m*q*.35277777777777775/u+j;O[c+16>>3]=m;O[c+24>>3]=m-j;O[c+40>>3]=O[e+40>>3];O[c+32>>3]=O[e+32>>3];O[c+48>>3]=O[e+48>>3];J[h>>2]=e;g=J[b+4>>2];J[h+4>>2]=g;if(g)J[g+4>>2]=J[g+4>>2]+1;g=J[c+680>>2];fa:{if(g>>>0>2]){J[g>>2]=e;J[g+4>>2]=J[h+4>>2];J[c+680>>2]=g+8;break fa}J[699344]=0;da(6560,c+676|0,h|0); +c=J[699344];J[699344]=0;if((c|0)==1)break _;c=J[h+4>>2];if(!c)break fa;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break fa;kc[J[J[c>>2]+8>>2]](c);Gc(c)}e=J[h+80>>2];H[e+622|0]=0;c=J[v+224>>2];ga:{if((c|0)!=J[v+228>>2]){J[c>>2]=e;e=J[h+84>>2];J[c+4>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;J[v+224>>2]=c+8;break ga}J[699344]=0;da(6517,p|0,h+80|0);c=J[699344];J[699344]=0;if((c|0)==1)break $}J[h+8>>2]=340552;if(H[h+35|0]<0)uc(J[h+24>>2]);if(H[h+23|0]<0)uc(J[h+12>>2]);c=J[h+84>>2];ha:{if(!c)break ha;e=J[c+4>>2];J[c+4>>2]= +e-1;if(e)break ha;kc[J[J[c>>2]+8>>2]](c);Gc(c)}b=b+8|0;if((k|0)!=(b|0))continue;break E}break}b=Z()|0;break Z}b=Z()|0;break Z}b=Z()|0;je(h)}yk(h+8|0)}je(h+80|0)}$m(h+88|0);a=J[h+100>>2];if(a){J[h+104>>2]=a;uc(a)}ba(b|0);B()}b=J[h+88>>2]}if(b){d=b;c=J[h+92>>2];if((c|0)!=(b|0)){while(1){c=c-8|0;a=J[c+4>>2];ia:{if(!a)break ia;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break ia;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(c|0))continue;break}d=J[h+88>>2]}J[h+92>>2]=b;uc(d)}a=J[h+100>>2];if(a)uc(a);fc=h+112|0;e=fc-32| +0;fc=e;b=J[f+196>>2];o=J[f+200>>2];if((b|0)!=(o|0))while(1){i=(s<<3)+b|0;c=J[i>>2];ja:{if(!c)break ja;h=J[c+56>>2];a=J[c+60>>2];if((h|0)!=(a|0)){d=a-h>>3;p=0;while(1){h=(p<<3)+h|0;ka:{if(!J[h>>2])break ka;t=(d-1>>>0<=p>>>0)+s|0;if(t>>>0>=o-b>>3>>>0)break ka;F=p+1|0;while(1){k=(t<<3)+b|0;a=J[k>>2];la:{if(!a)break la;if(Wz(J[i>>2],a))break la;b=J[k>>2];c=J[b+56>>2];o=(s|0)==(t|0)?F:0;ma:{if(o>>>0>=J[b+60>>2]-c>>3>>>0)break ma;d=J[h>>2];if(!d)break ma;while(1){g=(o<<3)+c|0;a=J[g>>2];na:{if(!a)break na; +d=kc[J[J[d>>2]+32>>2]](d,a)|0;a=J[h>>2];a=kc[J[J[a>>2]+24>>2]](a,J[g>>2])|0;r=fc-16|0;fc=r;b=J[g>>2];j=O[J[b+56>>2]+400>>3];c=J[h>>2];m=O[J[c+56>>2]+400>>3];c=QG(c+240|0,b+240|0);b=0;oa:{if(!c|j!=m)break oa;c=J[h>>2];w=J[J[c+56>>2]+28>>2];pa:{qa:{ra:{A=J[g>>2];b=J[J[A+56>>2]+28>>2];if(b){if((b|0)!=10066329)break ra;if(!K[c+110|0]|((a|0)!=3|(d|0)!=3))break qa;b=1;H[c+110|0]=1;c=J[g+4>>2];J[g>>2]=0;J[g+4>>2]=0;if(!c)break oa;n=J[c+4>>2];J[c+4>>2]=n-1;if(n)break oa;kc[J[J[c>>2]+8>>2]](c);Gc(c);break oa}if(!K[c+ +111|0]|((a|0)!=3|(d|0)!=3))break qa;b=1;H[c+111|0]=1;c=J[g+4>>2];J[g>>2]=0;J[g+4>>2]=0;if(!c)break oa;n=J[c+4>>2];J[c+4>>2]=n-1;if(n)break oa;kc[J[J[c>>2]+8>>2]](c);Gc(c);break oa}n=(d|0)!=3|(a|0)!=3;if(n|(b|0)!=12632256)break pa;b=1;H[c+108|0]=1;c=J[g+4>>2];J[g>>2]=0;J[g+4>>2]=0;if(!c)break oa;n=J[c+4>>2];J[c+4>>2]=n-1;if(n)break oa;kc[J[J[c>>2]+8>>2]](c);Gc(c);break oa}n=(d|0)!=3|(a|0)!=3}if(!((d|0)!=4|(a|0)!=4|(w|0)!=12632256)){b=1;H[A+108|0]=1;c=J[h+4>>2];J[h>>2]=0;J[h+4>>2]=0;if(!c)break oa; +n=J[c+4>>2];J[c+4>>2]=n-1;if(n)break oa;kc[J[J[c>>2]+8>>2]](c);Gc(c);break oa}b=0;if(!((w|0)!=0|n)){b=1;H[A+110|0]=1;c=J[h+4>>2];J[h>>2]=0;J[h+4>>2]=0;if(!c)break oa;n=J[c+4>>2];J[c+4>>2]=n-1;if(n)break oa;kc[J[J[c>>2]+8>>2]](c);Gc(c);break oa}if((w|0)!=10066329|n)break oa;b=1;H[A+111|0]=1;J[r+8>>2]=0;J[r+12>>2]=0;c=r+8|0;pl(h,c);je(c)}fc=r+16|0;if(b)break na;J[e+24>>2]=J[h>>2];b=J[h+4>>2];J[e+28>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[e+16>>2]=J[g>>2];b=J[g+4>>2];J[e+20>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+ +1;b=J[e+28>>2];J[e+8>>2]=J[e+24>>2];J[e+12>>2]=b;b=J[e+20>>2];J[e>>2]=J[e+16>>2];J[e+4>>2]=b;n=0;r=0;sa:switch(a-3|0){case 0:case 6:n=R(O[J[e+8>>2]+40>>3]-O[J[e>>2]+32>>3])<1.5;break;default:break sa}ta:{ua:switch(a-4|0){default:c=J[e>>2];b=J[e+8>>2];w=0;break ta;case 0:case 6:break ua}b=J[e+8>>2];c=J[e>>2];w=R(O[b+32>>3]-O[c+40>>3])<1.5}va:{if((w|n)!=1)break va;j=O[J[c+56>>2]+400>>3];m=O[J[b+56>>2]+400>>3];q=m*.7;n=d&-3;wa:{xa:{if(!(!(j>2]=2;n=J[e+12>>2];if(n)J[n+8>>2]=J[n+ +8>>2]+1;J[c+76>>2]=b;r=J[c+80>>2];J[c+80>>2]=n;if(r)Gc(r);J[b+84>>2]=1;r=J[e+4>>2];if(r)J[r+8>>2]=J[r+8>>2]+1;J[b+76>>2]=c;n=J[b+80>>2];J[b+80>>2]=r;if(n)break xa;break wa}if(!(!(j>2]=3;n=J[e+12>>2];if(n)J[n+8>>2]=J[n+8>>2]+1;J[c+76>>2]=b;r=J[c+80>>2];J[c+80>>2]=n;if(r)Gc(r);J[b+84>>2]=1;r=J[e+4>>2];if(r)J[r+8>>2]=J[r+8>>2]+1;J[b+76>>2]=c;n=J[b+80>>2];J[b+80>>2]=r;if(n)break xa;break wa}j=j*.7;ya:{if(!(!(j>m)|(n|0)!=1)){J[b+84>>2]=3;break ya}if(!(j>m)|(d|0)!=4)break va;J[b+84>> +2]=2}n=J[e+4>>2];if(n)J[n+8>>2]=J[n+8>>2]+1;J[b+76>>2]=c;r=J[b+80>>2];J[b+80>>2]=n;if(r)Gc(r);J[c+84>>2]=1;r=J[e+12>>2];if(r)J[r+8>>2]=J[r+8>>2]+1;J[c+76>>2]=b;n=J[c+80>>2];J[c+80>>2]=r;b=c;if(!n)break wa}Gc(n)}H[b+238|0]=0;r=1}b=J[e+4>>2];za:{if(!b)break za;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break za;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[e+12>>2];Aa:{if(!b)break Aa;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break Aa;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if(r){DT(J[i>>2],J[h>>2]+84|0);DT(J[k>>2],J[g>>2]+84|0);Ba:{Ca:{Da:{b=J[i>> +2];switch(J[b+72>>2]-1|0){case 0:break Ca;case 2:break Da;default:break na}}c=J[k>>2];if(J[c+72>>2]==1)break Ba;break na}c=J[k>>2];if(J[c+72>>2]!=2)break na}d=J[k+4>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[b+76>>2]=c;a=J[b+80>>2];J[b+80>>2]=d;Ea:{if(!a)break Ea;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Ea;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[i>>2];b=J[k>>2];c=J[i+4>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[b+76>>2]=a;a=J[b+80>>2];J[b+80>>2]=c;if(!a)break na;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break na;kc[J[J[a>>2]+8>>2]](a);Gc(a); +break na}b=J[h>>2];c=J[g>>2];J[699344]=0;b=QG(b+240|0,c+240|0);c=J[699344];J[699344]=0;a=b&(d|0)==5&(a|0)==5;if((c|0)==1)break a;if(!a)break na;J[g>>2]=0;a=J[g+4>>2];J[g+4>>2]=0;Fa:{if(!a)break Fa;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Fa;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[h>>2];J[a+232>>2]=J[a+232>>2]+1}b=J[k>>2];c=J[b+56>>2];o=o+1|0;if(o>>>0>=J[b+60>>2]-c>>3>>>0)break ma;d=J[h>>2];if(d)continue;break}}if(!Tz(b))break la;J[k>>2]=0;a=J[k+4>>2];J[k+4>>2]=0;if(!a)break la;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break la; +kc[J[J[a>>2]+8>>2]](a);Gc(a)}t=t+1|0;o=J[f+200>>2];b=J[f+196>>2];if(t>>>0>3>>>0)continue;break}c=J[i>>2]}h=J[c+56>>2];d=J[c+60>>2]-h>>3;p=p+1|0;if(d>>>0>p>>>0)continue;break}}if(!Tz(c))break ja;J[i>>2]=0;a=J[i+4>>2];J[i+4>>2]=0;if(!a)break ja;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break ja;kc[J[J[a>>2]+8>>2]](a);Gc(a)}s=s+1|0;o=J[f+200>>2];b=J[f+196>>2];if(s>>>0>3>>>0)continue;break}fc=e+32|0;o=0;b=fc-400|0;fc=b;Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{d=J[f+220>>2];if((d|0)!=J[f+224>>2]){F=b+40|0;Q=b+220| +0;while(1){c=(o<<3)+d|0;a=J[c>>2];Oa:{if(!a|J[a+664>>2]==4)break Oa;d=J[f+196>>2];if((d|0)==J[f+200>>2])break Oa;i=0;s=0;while(1){r=(s<<3)+d|0;a=J[r>>2];Pa:{if(!a)break Pa;d=Wz(a,J[c>>2]);a=J[r>>2];if(d){d=J[c>>2];if(O[a+8>>3]>O[d+16>>3]|O[d+8>>3]>O[a+16>>3]+O[a+24>>3])break Pa}h=0;d=J[a+56>>2];if((d|0)==J[a+60>>2])break Pa;while(1){T=h<<3;a=T+d|0;e=J[a>>2];J[b+376>>2]=e;a=J[a+4>>2];J[b+380>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;Qa:{if(!e)break Qa;u=O[J[r>>2]+48>>3];d=J[c>>2];y=O[d+48>>3];g=J[c+4>>2];if(g)J[g+ +4>>2]=J[g+4>>2]+1;if(a)J[a+4>>2]=J[a+4>>2]+1;J[b+388>>2]=g;J[b+384>>2]=d;J[699344]=0;J[b+396>>2]=a;J[b+392>>2]=e;g=Mv(e,d);k=J[699344];J[699344]=0;if((k|0)==1)break La;j=O[e+24>>3];m=O[e+8>>3]+j/3;k=1;t=0;if(m>3])e=O[d+16>>3]>3]+j/-6;else e=0;if(!(!e|(J[d+664>>2]==1?!J[d+672>>2]:k))){m=O[d+24>>3];t=m.1&(502>>>g|g>>>0>10)}Ra:{if(!a)break Ra;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break Ra;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[b+388>>2];Sa:{if(!a)break Sa;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break Sa; +kc[J[J[a>>2]+8>>2]](a);Gc(a)}d=J[c>>2];g=J[c+4>>2];if(g)J[g+4>>2]=J[g+4>>2]+1;e=J[b+376>>2];a=J[b+380>>2];if(a)J[a+4>>2]=J[a+4>>2]+1;J[b+388>>2]=g;J[b+384>>2]=d;J[699344]=0;J[b+396>>2]=a;J[b+392>>2]=e;g=Mv(e,d);k=J[699344];J[699344]=0;if((k|0)==1)break Ka;k=0;Ta:{if(!(J[d+664>>2]-1>>>0<=1?J[d+672>>2]:0))break Ta;m=O[e+24>>3];j=m*.5;if(!(R(O[d+16>>3]-O[e+16>>3])<(j<1.5?j:1.5)))break Ta;q=j;j=O[d+24>>3];k=q>j&m-j>.1&(502>>>g|g>>>0>10)}Ua:{if(!a)break Ua;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break Ua;kc[J[J[a>> +2]+8>>2]](a);Gc(a)}a=J[b+388>>2];Va:{if(!a)break Va;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break Va;kc[J[J[a>>2]+8>>2]](a);Gc(a)}d=J[c>>2];g=J[c+4>>2];if(g)J[g+4>>2]=J[g+4>>2]+1;e=J[b+376>>2];a=J[b+380>>2];if(a)J[a+4>>2]=J[a+4>>2]+1;J[b+388>>2]=g;J[b+384>>2]=d;J[699344]=0;J[b+396>>2]=a;J[b+392>>2]=e;g=Mv(e,d);p=J[699344];J[699344]=0;Wa:{Xa:{Ya:{Za:{_a:{if((p|0)!=1){J[699344]=0;n=aU(e,d);p=J[699344];J[699344]=0;if((p|0)==1)break Ia;p=0;if(!(J[d+664>>2]!=3|(n|0)!=2|J[J[e+56>>2]+28>>2]!=12632256))p=!(g-2&-3); +$a:{if(!a)break $a;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break $a;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[b+388>>2];ab:{if(!a)break ab;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break ab;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[c>>2];g=J[c+4>>2];if(g)J[g+4>>2]=J[g+4>>2]+1;e=J[b+376>>2];d=J[b+380>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[b+388>>2]=g;J[b+384>>2]=a;J[699344]=0;J[b+396>>2]=d;J[b+392>>2]=e;A=Mv(e,a);g=J[699344];J[699344]=0;if((g|0)==1)break Ja;w=1;j=O[e+16>>3];z=O[e+24>>3];q=j+z*-.7;m=O[a+8>>3];if(q>m){D=q;q=O[a+16>>3];z=-z;E= +z*.5+j;j=z*.3+j;w=!(Dm)|!(j>2];n=U?n:J[a+436>>2]==16777215;j=u*1.05;if(!(n|(1545>>>A&A>>>0<11|(J[a+664>>2]!=1|w)|J[J[e+56>>2]+28>>2]==(U|0))))g=!K[a+620|0]&K[a+621|0]!=0;j=j-y;bb:{if(!d)break bb;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break bb;kc[J[J[d>>2]+8>>2]](d);Gc(d)}d=j>0;a=J[b+388>>2];cb:{if(!a)break cb;e=J[a+4>>2];J[a+4>>2]=e-1;if(e)break cb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}n=d&t;k=d&k;e=0;e=!g|!(O[J[c>>2]+24>>3]>2]+24>>3]*1.5)?e:j>0;if(!(e|(k|n|p)))break Qa; +a=J[c>>2];j=O[a+32>>3];g=J[b+376>>2];if(j>O[g+32>>3]){J[699344]=0;a=b+392|0;Ba(6570,a|0,g|0,+j);d=J[699344];J[699344]=0;if((d|0)==1)break _a;db:{if(!J[b+392>>2])break db;d=J[r>>2];g=J[d+56>>2];J[699344]=0;ga(6571,d+56|0,g+T|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Za;d=J[b+396>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;h=h+1|0;J[b+376>>2]=J[b+392>>2];a=J[b+380>>2];J[b+380>>2]=d;if(!a)break db;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break db;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[b+396>>2];eb:{if(!a)break eb;d=J[a+ +4>>2];J[a+4>>2]=d-1;if(d)break eb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}g=J[b+376>>2];a=J[c>>2]}j=O[a+40>>3];fb:{if(!(j>3]))break fb;J[699344]=0;a=b+392|0;Ba(6570,a|0,g|0,+j);d=J[699344];J[699344]=0;if((d|0)==1)break Ya;if(J[b+392>>2]){d=J[r>>2];g=J[d+56>>2];J[699344]=0;ga(6571,d+56|0,(g+(h<<3)|0)+8|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Xa;h=h+1|0}a=J[b+396>>2];if(!a)break fb;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break fb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if(!n)break Wa;i=1;a=J[b+376>>2];H[a+88|0]= +1;if(J[J[c>>2]+672>>2]!=2)break Qa;H[a+89|0]=1;break Qa}break Ia}d=Z()|0;break Ha}d=Z()|0;je(b+392|0);break Ha}d=Z()|0;break Ha}d=Z()|0;je(b+392|0);break Ha}if(k){i=1;a=J[b+376>>2];H[a+96|0]=1;d=J[c>>2];J[a+100>>2]=J[d+672>>2];J[a+104>>2]=J[d+(O[d+24>>3]>.3?76:436)>>2];break Qa}if(e){a=J[c>>2];d=J[c+4>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;e=J[b+376>>2];J[e+68>>2]=a;a=J[e+72>>2];J[e+72>>2]=d;gb:{if(!a)break gb;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break gb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}i=1;a=J[b+376>>2];H[a+90|0]= +1;J[a+92>>2]=J[J[c>>2]+76>>2];break Qa}i=1;if(!p)break Qa;d=J[b+376>>2];a=J[d+56>>2];J[699344]=0;e=aa(6512,b+8|0,a+16|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Na;J[b+20>>2]=J[J[c>>2]+436>>2];g=J[f+68>>2];a=J[d+56>>2];k=K[a+409|0];p=K[a+408|0];j=O[a+400>>3];J[699344]=0;ab(6537,b+392|0,g|0,e|0,a+384|0,+j,p|0,k|0);a=J[699344];J[699344]=0;if((a|0)==1)break Ma;g=J[b+392>>2];k=J[b+396>>2];J[b+392>>2]=0;J[b+396>>2]=0;a=J[d+60>>2];J[d+56>>2]=g;J[d+60>>2]=k;hb:{if(!a)break hb;d=J[a+4>>2];J[a+4>>2]=d- +1;if(d)break hb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[b+396>>2];ib:{if(!a)break ib;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break ib;kc[J[J[a>>2]+8>>2]](a);Gc(a)}I[J[b+376>>2]+108>>1]=257;J[e>>2]=340504;a=J[b+36>>2];if(a){d=J[J[a>>2]+12>>2];J[699344]=0;_(d|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;J[b+36>>2]=0}Se(Q);a=J[b+128>>2];if(a){J[b+132>>2]=a;uc(a)}if(H[b+55|0]<0)uc(J[b+44>>2]);Jd(F)}a=J[b+380>>2];jb:{if(!a)break jb;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break jb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[r>>2]; +d=J[a+56>>2];h=h+1|0;if(h>>>0>2]-d>>3>>>0)continue;break}}s=s+1|0;d=J[f+196>>2];if(s>>>0>2]-d>>3>>>0)continue;break}if(!i)break Oa;J[c>>2]=0;a=J[c+4>>2];J[c+4>>2]=0;if(!a)break Oa;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break Oa;kc[J[J[a>>2]+8>>2]](a);Gc(a)}o=o+1|0;d=J[f+220>>2];if(o>>>0>2]-d>>3>>>0)continue;break}}fc=b+400|0;break Ga}d=Z()|0;break Ha}d=Z()|0;bo(e);break Ha}d=Z()|0;je(b+392|0);je(b+384|0);break Ha}d=Z()|0;je(b+392|0);je(b+384|0);break Ha}d=Z()|0;je(b+392|0);je(b+ +384|0);break Ha}d=Z()|0;je(b+392|0);je(b+384|0)}je(b+376|0);ba(d|0);B()}a=J[f+208>>2];h=f;f=J[h+212>>2];if((a|0)!=(f|0))while(1){kb:{if(!J[a>>2])break kb;d=J[h+196>>2];g=J[h+200>>2];if((d|0)==(g|0))break kb;while(1){b=J[d>>2];lb:{if(!b)break lb;if(Wz(b,J[a>>2]))break lb;c=J[d>>2];b=J[c+56>>2];k=J[c+60>>2];if((b|0)==(k|0))break lb;while(1){mb:{c=J[b>>2];if(!c)break mb;e=kc[J[J[c>>2]+32>>2]](c,J[a>>2])|0;c=J[b>>2];c=kc[J[J[c>>2]+24>>2]](c,J[a>>2])|0;if(e-11>>>0>4294967293|c-11>>>0>4294967293)break mb; +nb:{ob:{pb:{if((c|0)==2&e-3>>>0<=1)break pb;d=(e|0)!=6;if(!d&(c|0)==3|(e|0)==5&(c|0)==5)break pb;if(d|(c|0)!=8)break ob}UT(J[b>>2],J[ym(J[a>>2]+240|0,0)>>2],0);break nb}if((c|0)!=4|d)break nb;TT(J[b>>2],J[ym(J[a>>2]+240|0,0)>>2],0)}b=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;if(!b)break kb;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break kb;kc[J[J[b>>2]+8>>2]](b);Gc(b);break kb}b=b+8|0;if((k|0)!=(b|0))continue;break}}d=d+8|0;if((g|0)!=(d|0))continue;break}}a=a+8|0;if((f|0)!=(a|0))continue;break}c=J[h+196>>2];g=J[h+200>> +2];if((c|0)!=(g|0))while(1){d=J[c>>2];qb:{if(!d|(J[d+72>>2]&-2)!=2|!J[d+76>>2])break qb;b=J[d+56>>2];k=J[d+60>>2];if((b|0)!=(k|0))while(1){e=J[b>>2];rb:{if(!e)break rb;a=J[d+76>>2];j=O[a+32>>3];m=O[e+32>>3];if(j>m){O[a+32>>3]=m;j=m}q=O[a+40>>3];m=O[e+40>>3];if(q>3]=m;else m=q;O[a+48>>3]=m-j;f=J[a+60>>2];sb:{if((f|0)!=J[a- -64>>2]){J[f>>2]=e;e=J[b+4>>2];J[f+4>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;J[a+60>>2]=f+8;break sb}eA(a+56|0,b)}a=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;if(!a)break rb;e=J[a+4>>2]; +J[a+4>>2]=e-1;if(e)break rb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}b=b+8|0;if((k|0)!=(b|0))continue;break}a=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;if(!a)break qb;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break qb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}c=c+8|0;if((g|0)!=(c|0))continue;break}tb:{if(!K[h+256|0])break tb;c=J[h+196>>2];b=J[h+200>>2];if((c|0)==(b|0))break tb;while(1){a=J[c>>2];ub:{if(!a|!(O[a+8>>3]>=O[h+8>>3]|O[a+16>>3]<=0))break ub;a=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;if(!a)break ub;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break ub;kc[J[J[a>> +2]+8>>2]](a);Gc(a)}c=c+8|0;if((b|0)!=(c|0))continue;break}}c=J[h+196>>2];e=J[h+200>>2];if((c|0)!=(e|0))while(1){f=J[(l<<3)+c>>2];if(f){d=fc-32|0;fc=d;vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{a=J[f+56>>2];b=J[f+60>>2];Db:{if((a|0)==(b|0))break Db;g=f+56|0;VG(a,b,62-(S(b-a>>3)<<1)|0);J[d+24>>2]=0;J[d+28>>2]=0;a=J[f+60>>2];c=a;b=J[f+56>>2];Eb:{if((b|0)==(a|0))break Eb;c=0;while(1){a=(c<<3)+b|0;e=J[a>>2];b=J[a+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[d+24>>2]=e;a=J[d+28>>2];J[d+28>>2]=b;Fb:{if(!a)break Fb;b=J[a+4>> +2];J[a+4>>2]=b-1;if(b)break Fb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}c=c+1|0;a=J[f+60>>2];b=J[f+56>>2];e=c>>>0>=a-b>>3>>>0;if(!(e|J[d+24>>2]))continue;break}Gb:{if(e)break Gb;while(1){t=c<<3;b=t+b|0;a=J[b>>2];Hb:{if(!a)break Hb;a=J[a+56>>2];J[699344]=0;j=O[a+424>>3];a=J[699344];J[699344]=0;if((a|0)==1)break Ab;j=j!=0?j*.9:O[J[b>>2]+192>>3]*.4;a=J[d+24>>2];m=O[a+40>>3];e=J[b>>2];q=O[e+32>>3];k=J[a+56>>2];s=K[k+11|0];n=s<<24>>24;p=J[e+56>>2];r=K[p+11|0];o=r<<24>>24;n=(n|0)<0;s=n?J[k+4>>2]:s;i=(o|0)<0;o=1;Ib:{if((s| +0)!=((i?J[p+4>>2]:r)|0))break Ib;o=0;if(!s)break Ib;o=(qd(n?J[k>>2]:k,i?J[p>>2]:p,s)|0)!=0}k=o|K[a+88|0]!=K[e+88|0]|K[a+89|0]!=K[e+89|0]|K[a+90|0]!=K[e+90|0]|J[a+92>>2]!=J[e+92>>2]|K[a+96|0]!=K[e+96|0]|J[a+100>>2]!=J[e+100>>2]|J[a+104>>2]!=J[e+104>>2]|K[a+108|0]!=K[e+108|0]|K[a+109|0]!=K[e+109|0]|K[a+110|0]!=K[e+110|0]|K[a+111|0]!=K[e+111|0];i=k^1;Jb:{if(k&1)break Jb;a=J[a+84>>2];e=J[e+84>>2];if((a|0)==(e|0))break Jb;i=!a&(e|0)==1|!e&(a|0)==1}e=i&1;Kb:{m=q-m;if(!(m>j*3)){a=J[b>>2];if(!K[a+238|0]| +!(j>2])|0;k=J[699344];J[699344]=0;if((k|0)==1)break xb;J[699344]=0;k=J[699344];J[699344]=0;if((k|0)==1)break xb;if((a|0)==8195|(a&-129)==32){J[699344]=0;$(6696,J[d+24>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break xb}J[699344]=0;k=J[d+24>>2];a=_(4,288)|0;p=J[699344];J[699344]=0;if((p|0)==1)break zb;J[a>>2]=2441916;J[a+4>>2]=0;J[a+8>>2]=0;k=J[k+64>>2];J[699344]=0;k=aa(6534,a+16|0,k|0)|0;p=J[699344];J[699344]=0;if((p|0)==1){b=Z()|0;uc(a);break wb}J[d+20>>2]= +a;J[d+16>>2]=k;J[d+8>>2]=b;J[d+12>>2]=d+16;J[d+4>>2]=d+24;if(e){J[699344]=0;aa(6649,k|0,J[d+24>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break yb}J[699344]=0;$(6697,d+4|0);a=J[699344];J[699344]=0;if((a|0)==1)break yb;a=J[d+24>>2];J[699344]=0;a=J[a+248>>2]-J[a+244>>2]|0;b=J[699344];J[699344]=0;a=a>>2;if((b|0)==1)break a;Lb:{Mb:{if(!a){J[699344]=0;aa(6649,J[d+24>>2],J[d+16>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break yb;break Mb}a=J[g>>2];J[699344]=0;ga(6571,g|0,a+t|0,d+16|0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break Lb;c=c+1|0}k=J[f+56>>2];e=J[f+60>>2]-k>>3;a=J[k+(c<<3)>>2];Nb:{if(a)break Nb;b=c>>>0>e>>>0?c:e;while(1){if((b|0)==(c|0)){a=0;c=b;break Nb}c=c+1|0;a=J[k+(c<<3)>>2];if(!a)continue;break}}Ob:{if((c|0)==(e|0))break Ob;b=J[(k+(c<<3)|0)+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[d+24>>2]=a;a=J[d+28>>2];J[d+28>>2]=b;if(!a)break Ob;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Ob;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[d+20>>2];Pb:{if(!a)break Pb;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Pb;kc[J[J[a>>2]+8>>2]](a); +Gc(a)}if((c|0)!=(e|0))break Hb;a=J[f+60>>2];b=J[f+56>>2];break Gb}break yb}Qb:{if(e){i=J[d+24>>2];if(j>3];m=O[a+32>>3];J[699344]=0;Ba(6680,i|0,32,+(m-j));a=J[699344];J[699344]=0;if((a|0)==1)break xb;i=J[d+24>>2];a=J[b>>2]}e=J[b>>2]+256|0;J[699344]=0;ca(6532,i|0,a+240|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break xb;a=J[d+24>>2];i=J[a+80>>2];if(!(J[i+4>>2]!=-1?i:0)){e=J[b>>2];k=J[e+76>>2];e=J[e+80>>2];if(e){J[e+8>>2]=J[e+8>>2]+1;i=J[a+80>>2]}J[a+80>>2]=e;J[a+76>>2]=k;if(i){Gc(i);a= +J[d+24>>2]}J[a+84>>2]=J[J[b>>2]+84>>2]}J[b>>2]=0;a=J[b+4>>2];J[b+4>>2]=0;if(!a)break Hb;b=J[a+4>>2];J[a+4>>2]=b-1;if(!b)break Qb;break Hb}Rb:{if(!(j>2])>>>0<=VT(J[b>>2])>>>0){a=J[d+24>>2];j=O[a+40>>3];m=O[J[b>>2]+32>>3];J[699344]=0;Ba(6680,a|0,32,+(m-j));a=J[699344];J[699344]=0;if((a|0)==1)break xb;break Rb}j=O[J[d+24>>2]+40>>3];a=J[b>>2];m=O[a+32>>3];J[699344]=0;Ba(6698,a|0,32,+(m-j));a=J[699344];J[699344]=0;if((a|0)==1)break xb}a=J[b>>2];b=J[b+4>>2];if(b)J[b+4>>2]=J[b+ +4>>2]+1;J[d+24>>2]=a;a=J[d+28>>2];J[d+28>>2]=b;if(!a)break Hb;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Hb}kc[J[J[a>>2]+8>>2]](a);Gc(a)}c=c+1|0;a=J[f+60>>2];b=J[f+56>>2];if(c>>>0>3>>>0)continue;break}}if(a>>>0<=b>>>0){c=b;break Eb}a=a-8|0;while(1){c=a;e=J[a>>2];if(a>>>0>b>>>0){a=a-8|0;if(!e)continue}a=b;while(1){Sb:{b=a;k=J[a>>2];p=a>>>0>=c>>>0;if(p)break Sb;a=a+8|0;if(k)continue}break}if(!p){J[b>>2]=e;J[c>>2]=k;a=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=a;a=c;continue}break}c=c+(((e|0)!=0)<<3)|0; +a=J[f+60>>2]}J[699344]=0;ga(6699,g|0,c|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Bb;a=J[f+60>>2];b=J[f+56>>2];J[699344]=0;ca(6700,b|0,a|0,((a|0)!=(b|0)?62-(S(a-b>>3)<<1)|0:0)|0);a=J[699344];J[699344]=0;if((a|0)==1)break Cb;a=J[d+28>>2];if(!a)break Db;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Db;kc[J[J[a>>2]+8>>2]](a);Gc(a)}fc=d+32|0;break vb}b=Z()|0;break wb}b=Z()|0;break wb}b=Z()|0;break wb}b=Z()|0;break wb}b=Z()|0;je(d+16|0);break wb}b=Z()|0}je(d+24|0);ba(b|0);B()}e=J[h+200>>2];c=J[h+196>>2]}l= +l+1|0;if(l>>>0>3>>>0)continue;break}o=0;b=J[h+196>>2];if((b|0)!=J[h+200>>2])while(1){a=(o<<3)+b|0;c=J[a>>2];f=J[a+4>>2];if(f)J[f+4>>2]=J[f+4>>2]+1;Tb:{if(!c)break Tb;e=0;g=1;b=J[c+56>>2];Ub:{if((b|0)!=J[c+60>>2]){i=0;d=0;while(1){a=(i<<3)+b|0;b=J[a>>2];l=J[a+4>>2];if(l)J[l+4>>2]=J[l+4>>2]+1;Vb:{if(!b)break Vb;a=J[b+68>>2];if(!a|(a|0)==(d|0))break Vb;j=O[a+32>>3];if(!(j>3]))break Vb;m=O[a+40>>3];if(!(m>O[b+40>>3])|(!(j>3])|!(m>O[d+40>>3])?d:0))break Vb;b=J[b+72>>2];if(b)J[b+4>> +2]=J[b+4>>2]+1;Wb:{if(!e)break Wb;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break Wb;kc[J[J[e>>2]+8>>2]](e);Gc(e)}d=a;e=b}Xb:{if(!l)break Xb;a=J[l+4>>2];J[l+4>>2]=a-1;if(a)break Xb;kc[J[J[l>>2]+8>>2]](l);Gc(l)}i=i+1|0;b=J[c+56>>2];if(i>>>0>2]-b>>3>>>0)continue;break}if(!e){e=0;break Ub}J[e+4>>2]=J[e+4>>2]+1;g=0;break Ub}d=0}J[c+84>>2]=d;a=J[c+88>>2];J[c+88>>2]=e;Yb:{if(!a)break Yb;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Yb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if(g)break Tb;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break Tb; +kc[J[J[e>>2]+8>>2]](e);Gc(e)}Zb:{if(!f)break Zb;a=J[f+4>>2];J[f+4>>2]=a-1;if(a)break Zb;kc[J[J[f>>2]+8>>2]](f);Gc(f)}o=o+1|0;b=J[h+196>>2];if(o>>>0>2]-b>>3>>>0)continue;break}d=0;i=fc-160|0;fc=i;_b:{$b:{ac:{bc:{cc:{c=J[h+196>>2];dc:{if((c|0)==J[h+200>>2])break dc;f=h+196|0;e=h+220|0;while(1){ec:{if(!d)break ec;a=(d<<3)+c|0;c=J[a>>2];if(!c)break ec;b=a-8|0;g=J[b>>2];if(!g)break ec;c=(kc[J[J[c>>2]+24>>2]](c,g)|0)-9>>>0<2;g=J[a>>2];if(c|(kc[J[J[g>>2]+36>>2]](g,J[b>>2])|0)-9>>>0<2)break ec;TG(J[b>> +2]);TG(J[a>>2]);g=J[b>>2];c=J[g+56>>2];g=J[g+60>>2];if((c|0)!=(g|0))while(1){Vz(J[c>>2]);c=c+8|0;if((g|0)!=(c|0))continue;break}g=J[a>>2];c=J[g+56>>2];g=J[g+60>>2];if((c|0)!=(g|0))while(1){Vz(J[c>>2]);c=c+8|0;if((g|0)!=(c|0))continue;break}EU(i+28|0,b);c=J[h+224>>2];fc:{if(c>>>0>2]){J[c>>2]=J[i+28>>2];J[c+4>>2]=J[i+32>>2];J[h+224>>2]=c+8;break fc}J[699344]=0;da(6552,e|0,i+28|0);c=J[699344];J[699344]=0;if((c|0)==1)break $b;c=J[i+32>>2];if(!c)break fc;g=J[c+4>>2];J[c+4>>2]=g-1;if(g)break fc; +kc[J[J[c>>2]+8>>2]](c);Gc(c)}EU(i+28|0,a);c=J[h+224>>2];gc:{if(c>>>0>2]){J[c>>2]=J[i+28>>2];J[c+4>>2]=J[i+32>>2];J[h+224>>2]=c+8;break gc}J[699344]=0;da(6552,e|0,i+28|0);c=J[699344];J[699344]=0;if((c|0)==1)break $b;c=J[i+32>>2];if(!c)break gc;g=J[c+4>>2];J[c+4>>2]=g-1;if(g)break gc;kc[J[J[c>>2]+8>>2]](c);Gc(c)}J[b>>2]=0;c=a-4|0;b=J[c>>2];J[c>>2]=0;hc:{if(!b)break hc;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break hc;kc[J[J[b>>2]+8>>2]](b);Gc(b)}J[a>>2]=0;b=J[a+4>>2];J[a+4>>2]=0;if(!b)break ec;a=J[b+ +4>>2];J[b+4>>2]=a-1;if(a)break ec;kc[J[J[b>>2]+8>>2]](b);Gc(b)}d=d+1|0;a=J[h+200>>2];c=J[h+196>>2];if(d>>>0>3>>>0)continue;break}if((a|0)==(c|0))break dc;if(a>>>0>c>>>0){a=a-8|0;while(1){b=a;d=J[a>>2];if(a>>>0>c>>>0){a=a-8|0;if(!d)continue}a=c;while(1){ic:{c=a;e=J[a>>2];g=a>>>0>=b>>>0;if(g)break ic;a=a+8|0;if(e)continue}break}if(!g){J[c>>2]=d;J[b>>2]=e;a=J[c+4>>2];J[c+4>>2]=J[b+4>>2];J[b+4>>2]=a;a=b;continue}break}c=b+(((d|0)!=0)<<3)|0;a=J[h+200>>2]}bA(f,c,a);a=J[h+200>>2];b=J[h+196>>2];if((a| +0)==(b|0))break dc;n=0;e=fc-48|0;fc=e;jc:{if((a|0)==(b|0)){c=a-b>>3;b=a;break jc}p=h+196|0;while(1){o=0;t=n<<3;f=t+b|0;b=J[f>>2];a=J[b+56>>2];kc:{if((a|0)==J[b+60>>2])break kc;while(1){s=o<<3;a=J[s+a>>2];lc:{if(!a){l=0;break lc}b=e+36|0;Jv(b,a+240|0);l=0;c=K[e+47|0];a=c<<24>>24;d=c;c=(a|0)<0;if(((c?J[e+40>>2]:d)|0)==1){l=!qd(c?J[e+36>>2]:b,2440464,1);a=K[e+47|0]}if(a<<24>>24<0)uc(J[e+36>>2]);b=J[f>>2]}a=s+J[b+56>>2]|0;b=J[a>>2];z=O[b+48>>3];d=J[a+4>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;a=J[h+220>>2];r=J[h+ +224>>2];mc:{if((a|0)!=(r|0)){j=O[b+224>>3];m=O[b+216>>3];q=O[b+40>>3];u=O[b+32>>3];E=O[h>>3]*1.1;D=O[h+8>>3]*1.1;while(1){b=J[a>>2];nc:{if(!b)break nc;c=1;y=O[b+8>>3];if(!(y<0|D>3]|O[b+32>>3]<0))c=E>3];oc:{pc:{if(O[b+48>>3]>120|O[b+24>>3]>120){if(!J[b+668>>2]|c)break nc;g=b+16|0;c=b+40|0;k=b+32|0;break pc}if(c)break nc;g=b+16|0;c=b+40|0;k=b+32|0;if(!J[b+668>>2])break oc}if(q>3]|u>O[c>>3]|(jO[g>>3]))break nc;c=1;break mc}if(J[b+664>>2]!=1)break nc;N=O[b+40>>3];if(N>3];if(G>q)break nc;L=O[b+16>>3];if(LG)|!(m>y)|(!(j>2];J[d+4>>2]=a-1;if(a)break qc;kc[J[J[d>>2]+8>>2]](d);Gc(d)}b=J[f>>2];a=J[b+56>>2];rc:{d=J[b+60>>2]-a>>3;sc:{if((d-1|0)!=(o|0)){if(K[J[(a+s|0)+8>>2]+238|0]!=0&l|(z>10&l|c))break sc;break rc}if((z>10&l|c)!=1)break rc}k=0;J[e+44>>2]=0;J[e+36>>2]=0;J[e+40>>2]=0;J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;tc:{uc:{vc:{g=o+1|0;o=l? +o:g;if(o){while(1){wc:{d=J[J[f>>2]+56>>2]+(k<<3)|0;a=J[d>>2];if(!a)break wc;b=J[e+40>>2];if((b|0)!=J[e+44>>2]){J[b>>2]=a;a=J[d+4>>2];J[b+4>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[e+40>>2]=b+8;break wc}xc:{c=J[e+36>>2];a=b-c|0;s=a>>3;l=s+1|0;yc:{if(l>>>0>=536870912){J[699344]=0;$(6573,e+36|0);a=J[699344];J[699344]=0;if((a|0)==1)break yc;break vc}r=a>>2;a=a>>>0>=2147483640?536870911:l>>>0>>0?r:l;if(a>>>0<536870912)break xc;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break vc}c=Z()|0;break tc}J[699344]= +0;r=a<<3;l=_(4,r|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=l+(s<<3)|0;J[a>>2]=J[d>>2];d=J[d+4>>2];J[a+4>>2]=d;if(d){J[d+4>>2]=J[d+4>>2]+1;b=J[e+40>>2]}d=l+r|0;l=a+8|0;zc:{if((b|0)==(c|0)){J[e+44>>2]=d;J[e+40>>2]=l;J[e+36>>2]=a;break zc}while(1){a=a-8|0;b=b-8|0;J[a>>2]=J[b>>2];J[a+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;if((b|0)!=(c|0))continue;break}J[e+44>>2]=d;b=J[e+40>>2];J[e+40>>2]=l;c=J[e+36>>2];J[e+36>>2]=a;if((b|0)==(c|0))break zc;while(1){b=b-8|0;a=J[b+4>>2];Ac:{if(!a)break Ac;d=J[a+4>>2]; +J[a+4>>2]=d-1;if(d)break Ac;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(c|0))continue;break}}if(!c)break wc;uc(c);break wc}c=Z()|0;break tc}k=k+1|0;if((o|0)!=(k|0))continue;break}b=J[f>>2];a=J[b+56>>2];d=J[b+60>>2]-a>>3}if(d>>>0<=g>>>0)break uc;while(1){Bc:{d=(g<<3)+a|0;a=J[d>>2];if(!a)break Bc;b=J[e+28>>2];if((b|0)!=J[e+32>>2]){J[b>>2]=a;a=J[d+4>>2];J[b+4>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[e+28>>2]=b+8;break Bc}Cc:{c=J[e+24>>2];a=b-c|0;k=a>>3;l=k+1|0;Dc:{if(l>>>0>=536870912){J[699344]=0;$(6573,e+24| +0);break Dc}o=a>>2;a=a>>>0>=2147483640?536870911:l>>>0>>0?o:l;if(a>>>0<536870912)break Cc;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break vc;c=Z()|0;break tc}J[699344]=0;o=a<<3;l=_(4,o|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=l+(k<<3)|0;J[a>>2]=J[d>>2];d=J[d+4>>2];J[a+4>>2]=d;if(d){J[d+4>>2]=J[d+4>>2]+1;b=J[e+28>>2]}d=l+o|0;l=a+8|0;Ec:{if((b|0)==(c|0)){J[e+32>>2]=d;J[e+28>>2]=l;J[e+24>>2]=a;break Ec}while(1){a=a-8|0;b=b-8|0;J[a>>2]=J[b>>2];J[a+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>> +2]=0;if((b|0)!=(c|0))continue;break}J[e+32>>2]=d;b=J[e+28>>2];J[e+28>>2]=l;c=J[e+24>>2];J[e+24>>2]=a;if((b|0)==(c|0))break Ec;while(1){b=b-8|0;a=J[b+4>>2];Fc:{if(!a)break Fc;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break Fc;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(c|0))continue;break}}if(!c)break Bc;uc(c);break Bc}c=Z()|0;break tc}b=J[f>>2];a=J[b+56>>2];g=g+1|0;if(g>>>0>2]-a>>3>>>0)continue;break}break uc}B()}J[699344]=0;b=_(4,120)|0;a=J[699344];J[699344]=0;if((a|0)==1){c=Z()|0;break tc}J[b>>2]=0;J[b+ +4>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2463728;a=b- -64|0;J[a>>2]=0;J[a+4>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[699344]=0;J[e+16>>2]=b;c=_(4,16)|0;a=J[699344];J[699344]=0;if((a|0)==1){c=Z()|0;kc[J[615933]](b);break tc}J[c+ +12>>2]=b;J[c>>2]=2442276;J[c+4>>2]=0;J[c+8>>2]=0;J[e+20>>2]=c;J[699344]=0;a=_(4,120)|0;d=J[699344];J[699344]=0;Gc:{Hc:{if((d|0)!=1){J[a>>2]=0;J[a+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2463728;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]= +0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[699344]=0;J[e+8>>2]=a;d=_(4,16)|0;f=J[699344];J[699344]=0;if((f|0)==1){c=Z()|0;kc[J[615933]](a);break Gc}J[d+12>>2]=a;J[d>>2]=2442276;J[d+4>>2]=0;J[d+8>>2]=0;J[699344]=0;J[e+12>>2]=d;da(6574,b|0,e+36|0);a=J[699344];J[699344]=0;if((a|0)==1)break Hc;J[699344]=0;da(6574,J[e+8>>2],e+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break Hc;d=J[e+8>>2];Ic:{if(J[d+56>>2]==J[d+60>>2])break Ic;a=J[h+200>>2];if((a|0)!=J[h+204>>2]){J[a>>2]=d;d=J[e+12>>2];J[a+4>>2]=d;if(d)J[d+ +4>>2]=J[d+4>>2]+1;J[h+200>>2]=a+8;break Ic}J[699344]=0;da(6549,p|0,e+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break Hc}a=t+J[p>>2]|0;d=J[a>>2];Jc:{if(J[d+56>>2]==J[d+60>>2]){b=a+8|0;d=J[h+200>>2];if((b|0)!=(d|0)){while(1){f=J[b>>2];g=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;c=J[a+4>>2];J[a>>2]=f;J[a+4>>2]=g;Kc:{if(!c)break Kc;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break Kc;kc[J[J[c>>2]+8>>2]](c);Gc(c)}a=a+8|0;b=b+8|0;if((d|0)!=(b|0))continue;break}b=J[h+200>>2]}if((a|0)!=(b|0))while(1){b=b-8|0;c=J[b+4>>2];Lc:{if(!c)break Lc; +d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break Lc;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((a|0)!=(b|0))continue;break}J[h+200>>2]=a;n=n-1|0;break Jc}J[c+4>>2]=J[c+4>>2]+1;J[a>>2]=b;b=J[a+4>>2];J[a+4>>2]=c;if(!b)break Jc;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Jc;kc[J[J[b>>2]+8>>2]](b);Gc(b)}a=J[e+12>>2];Mc:{if(!a)break Mc;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Mc;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[e+20>>2];Nc:{if(!a)break Nc;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break Nc;kc[J[J[a>>2]+8>>2]](a);Gc(a)}c=J[e+24>>2];if(c){a=c;b=J[e+ +28>>2];if((a|0)!=(b|0)){while(1){b=b-8|0;a=J[b+4>>2];Oc:{if(!a)break Oc;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break Oc;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(c|0))continue;break}a=J[e+24>>2]}J[e+28>>2]=c;uc(a)}c=J[e+36>>2];if(!c)break kc;a=c;b=J[e+40>>2];if((a|0)!=(b|0)){while(1){b=b-8|0;a=J[b+4>>2];Pc:{if(!a)break Pc;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break Pc;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(c|0))continue;break}a=J[e+36>>2]}J[e+40>>2]=c;uc(a);break kc}c=Z()|0;break Gc}c=Z()|0;je(e+8|0)}je(e+16|0)}$m(e+ +24|0);$m(e+36|0);ba(c|0);B()}o=o+1|0;if(d>>>0>o>>>0)continue;break}}a=J[h+200>>2];b=J[h+196>>2];c=a-b>>3;n=n+1|0;if(c>>>0>n>>>0)continue;break}}eH(b,a,(a|0)!=(b|0)?62-(S(c)<<1)|0:0);fc=e+48|0;c=0;b=0;e=0;l=fc-32|0;fc=l;k=i+100|0;J[k+8>>2]=0;J[k>>2]=0;J[k+4>>2]=0;n=J[h+196>>2];r=J[h+200>>2];Qc:{if((n|0)==(r|0))break Qc;while(1){g=(c-b|0)/40|0;Rc:{Sc:{Tc:{Uc:{Vc:{if((b|0)==(c|0))break Vc;w=g>>>0<=1?1:g;t=J[n>>2];j=O[t+104>>3];m=O[t+40>>3];o=0;d=0;a=0;p=0;while(1){s=P(d,40)+b|0;if(m<=O[s>>3])f=1;else f= +O[t+32>>3]>=O[s+8>>3];f=f|K[s+32|0]!=0;Wc:{Xc:{Yc:{Zc:{if(!(j<=O[s+16>>3])){if(f)break Xc;if(O[t+96>>3]>=O[s+24>>3])break Zc;break Yc}if(f)break Xc}A=o|p;o=1;p=0;f=d;if(!(A&1))break Wc;p=1;H[(P(a,40)+b|0)+32|0]=1;o=0}H[s+32|0]=1}f=a}a=f;d=d+1|0;if((w|0)!=(d|0))continue;break}if(!o)break Vc;d=P(a,40)+b|0;j=O[d>>3];f=J[n>>2];m=O[f+32>>3];O[d>>3]=j>m?m:j;j=O[f+40>>3];m=O[d+8>>3];O[d+8>>3]=j>m?j:m;j=O[f+16>>3];m=O[d+24>>3];O[d+24>>3]=j>m?j:m;j=O[f+8>>3];m=O[d+16>>3];O[d+16>>3]=j>2]+P(a,12)| +0;a=J[d+4>>2];if((a|0)!=J[d+8>>2]){J[a>>2]=f;f=J[n+4>>2];J[a+4>>2]=f;if(f)J[f+4>>2]=J[f+4>>2]+1;J[d+4>>2]=a+8;break Rc}J[699344]=0;da(6549,d|0,n|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Rc;a=Z()|0;break Uc}a=J[n>>2];j=O[a+16>>3];m=O[a+8>>3];q=O[a+40>>3];u=O[a+32>>3];_c:{$c:{ad:{if((c|0)!=(e|0)){H[c+32|0]=0;O[c+24>>3]=j;O[c+16>>3]=m;O[c+8>>3]=q;O[c>>3]=u;break ad}bd:{cd:{a=g+1|0;dd:{if(a>>>0>=107374183){J[699344]=0;ka(6575);a=J[699344];J[699344]=0;if((a|0)==1)break dd;break Sc}c=g<<1;f=g>>>0>= +53687091?107374182:a>>>0>>0?c:a;if(!f){d=0;break bd}if(f>>>0<107374183)break cd;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break Sc}a=Z()|0;break _c}J[699344]=0;d=_(4,P(f,40)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break $c}c=P(g,40)+d|0;H[c+32|0]=0;O[c+24>>3]=j;O[c+16>>3]=m;O[c+8>>3]=q;O[c>>3]=u;a=c;if((b|0)!=(e|0)){while(1){e=e-40|0;g=J[e+4>>2];a=a-40|0;J[a>>2]=J[e>>2];J[a+4>>2]=g;H[a+32|0]=K[e+32|0];g=J[e+28>>2];J[a+24>>2]=J[e+24>>2];J[a+28>>2]=g;g=J[e+20>>2];J[a+16>>2]=J[e+16>> +2];J[a+20>>2]=g;g=J[e+12>>2];J[a+8>>2]=J[e+8>>2];J[a+12>>2]=g;if((b|0)!=(e|0))continue;break}e=b}if(e)uc(e);b=a;e=P(f,40)+d|0}J[l+20>>2]=0;J[l+12>>2]=0;J[l+16>>2]=0;J[699344]=0;da(6549,l+12|0,n|0);a=J[699344];J[699344]=0;ed:{fd:{if((a|0)==1)break fd;f=J[k+4>>2];gd:{if((f|0)!=J[k+8>>2]){J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;H[l+28|0]=0;J[l+24>>2]=f;hd:{g=J[l+16>>2];a=J[l+12>>2];if((g|0)!=(a|0)){a=g-a|0;d=a>>3;if(d>>>0>=536870912){J[699344]=0;$(6576,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Sc;break hd}J[699344]= +0;a=_(4,a|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break hd;J[f+4>>2]=a;J[f>>2]=a;J[f+8>>2]=(d<<3)+a;g=J[l+12>>2];d=g;o=J[l+16>>2];if((d|0)!=(o|0))while(1){J[a>>2]=J[d>>2];p=J[d+4>>2];J[a+4>>2]=p;if(p)J[p+4>>2]=J[p+4>>2]+1;a=a+8|0;d=d+8|0;if((o|0)!=(d|0))continue;break}J[f+4>>2]=a}J[k+4>>2]=f+12;break gd}a=Z()|0;BU(l+24|0);J[k+4>>2]=f;break ed}J[699344]=0;da(6577,k|0,l+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break fd;g=J[l+12>>2]}if(g){a=J[l+16>>2];d=g;if((a|0)!=(d|0)){while(1){a=a-8|0;d=J[a+4>> +2];id:{if(!d)break id;f=J[d+4>>2];J[d+4>>2]=f-1;if(f)break id;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if((a|0)!=(g|0))continue;break}d=J[l+12>>2]}J[l+16>>2]=g;uc(d)}c=c+40|0;break Rc}a=Z()|0}$m(l+12|0);break _c}a=Z()|0}if(!b)break Tc}uc(b)}DU(k);break b}B()}n=n+8|0;if((r|0)!=(n|0))continue;break}if(!b)break Qc;uc(b)}fc=l+32|0;J[i+96>>2]=0;J[i+88>>2]=0;J[i+92>>2]=0;O[i+80>>3]=O[h>>3];J[i+72>>2]=0;J[i+76>>2]=0;J[i+56>>2]=h;b=i+72|0;J[i+60>>2]=b;J[i+68>>2]=i+88;a=i- -64|0;c=i+80|0;J[a>>2]=c;d=J[a+4>>2];J[i+48>> +2]=J[a>>2];J[i+52>>2]=d;a=J[i+60>>2];J[i+40>>2]=J[i+56>>2];J[i+44>>2]=a;J[i+36>>2]=b;J[i+28>>2]=h;J[i+32>>2]=c;jd:{kd:{ld:{md:{nd:{od:switch(J[h+28>>2]-2|0){case 0:case 1:J[699344]=0;d=_(4,160)|0;a=J[699344];J[699344]=0;if((a|0)==1)break nd;J[d+16>>2]=0;J[d+20>>2]=0;J[d>>2]=2442544;J[d+4>>2]=0;J[d+8>>2]=0;J[d+16>>2]=2450296;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;a=d- -64|0;J[a>>2]=0;J[a+4>>2]=0;J[d+76>>2]=16777215; +J[d+80>>2]=0;I[d+72>>1]=0;Ac(d+88|0,0,72);J[i+152>>2]=d;J[i+148>>2]=d+16;c=J[h+196>>2];e=J[h+200>>2];if((c|0)==(e|0))break kd;while(1){pd:{d=J[c>>2];j=O[d+32>>3];m=O[i+80>>3];O[i+80>>3]=j>3];m=O[i+72>>3];O[i+72>>3]=j>m?j:m;b=J[i+148>>2];a=J[b+124>>2];qd:{if((a|0)!=J[b+128>>2]){J[a>>2]=d;d=J[c+4>>2];J[a+4>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;J[b+124>>2]=a+8;break qd}J[699344]=0;da(6549,b+120|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break pd}J[699344]=0;da(6553,i+56|0,i+148|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break pd;c=c+8|0;if((e|0)!=(c|0))continue;break ld}break}c=Z()|0;je(i+148|0);break ac;case 2:case 3:break od;default:break jd}d=J[i+100>>2];F=J[i+104>>2];if((d|0)==(F|0))break jd;Q=i+40|0;while(1){A=J[i+28>>2];a=J[d>>2];b=J[d+4>>2];J[i+156>>2]=0;J[i+148>>2]=0;J[i+152>>2]=0;rd:{sd:{td:{ud:{vd:{wd:{xd:{yd:{zd:{Ad:{Bd:{Cd:{Dd:{Ed:{Fd:{if((a|0)==(b|0)){o=0;J[i+144>>2]=0;J[i+136>>2]=0;J[i+140>>2]=0;n=0;s=0;p=0;t=0;l=0;break Fd}Gd:{Hd:{b=b-a|0;a=b>>3;if(a>>>0>=536870912){J[699344]= +0;$(2494,i+148|0);a=J[699344];J[699344]=0;if((a|0)==1)break Hd;break md}J[699344]=0;s=_(4,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break Gd;c=Z()|0;break ac}c=Z()|0;a=J[i+148>>2];if(!a)break ac;J[i+152>>2]=a;uc(a);break ac}J[i+148>>2]=s;p=(a<<3)+s|0;J[i+156>>2]=p;Ac(s,0,b&-8);J[699344]=0;J[i+152>>2]=p;b=P(a,3);o=_(4,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){c=Z()|0;break sd}b=b-3|0;c=(b-((b>>>0)%3|0)|0)+3|0;e=Ac(o,0,c);J[699344]=0;b=a-1>>>5|0;t=_(4,(b<<2)+4|0)|0;f=J[699344];J[699344]=0;if((f| +0)==1)break Ed;J[((a>>>0>=33?b:0)<<2)+t>>2]=0;b=a>>>5|0;if(a>>>0>=32)Ac(t,0,b<<2);a=a&31;if(a){b=(b<<2)+t|0;J[b>>2]=J[b>>2]&(-1>>>32-a^-1)}a=J[d>>2];b=J[d+4>>2];l=0;J[i+144>>2]=0;J[i+136>>2]=0;J[i+140>>2]=0;n=c+e|0;c=(a|0)==(b|0);if(c)break Fd;a=b-a>>3;if((a|0)<0){J[699344]=0;$(6554,i+136|0);a=J[699344];J[699344]=0;if((a|0)!=1)break md;c=Z()|0;break vd}J[699344]=0;b=a-1>>>5|0;e=b+1|0;l=_(4,e<<2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Dd;J[i+144>>2]=e;J[i+140>>2]=a;J[i+136>>2]=l;J[((a>>>0>=33? +b:0)<<2)+l>>2]=0;if(c)break Fd;b=a>>>5|0;if(a>>>0>=32)Ac(l,0,b<<2);a=a&31;if(!a)break Fd;b=(b<<2)+l|0;J[b>>2]=J[b>>2]&(-1>>>32-a^-1)}J[699344]=0;a=_(4,160)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Cd;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=2442544;J[a+4>>2]=0;J[a+8>>2]=0;J[a+16>>2]=2450296;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+76>>2]=16777215;J[a+80>>2]=0;I[a+72>>1]=0;Ac(a+ +88|0,0,72);J[i+132>>2]=a;J[i+128>>2]=a+16;c=J[d>>2];a=c;b=J[d+4>>2];if((a|0)!=(b|0)){while(1){a=J[c>>2];J[699344]=0;$(6555,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break xd;c=c+8|0;if((b|0)!=(c|0))continue;break}c=J[d>>2];a=J[d+4>>2]}k=a-c|0;g=(k>>3)-1|0;if(g){a=J[c>>2];b=0;while(1){f=b+1|0;e=J[(f<<3)+c>>2];O[(b<<3)+s>>3]=O[e+8>>3]-O[a+16>>3];j=O[a+32>>3];m=O[e+32>>3];if(R(j+O[a+48>>3]*.5-(m+O[e+48>>3]*.5))<1.5)H[(P(b,3)+o|0)+1|0]=1;if(R(j-m)<1)H[P(b,3)+o|0]=1;if(R(O[a+40>>3]-O[e+40>>3])<1)H[(P(b, +3)+o|0)+2|0]=1;a=e;b=f;if((g|0)!=(b|0))continue;break}}if((p|0)==(s|0))break yd;b=s+8|0;f=p-s|0;g=f>>3;e=g-1|0;j=O[s>>3];if(j>50)break Ad;if(R(j-j)<.3)break Bd;if(!e)break yd;if(!(R(j-O[b>>3])<.3))break zd;J[l+536870908>>2]=J[l+536870908>>2]|-2147483648;break zd}c=Z()|0;break td}c=Z()|0;break vd}c=Z()|0;break wd}J[l>>2]=J[l>>2]&-2;break zd}J[l>>2]=J[l>>2]|1}if(g>>>0<2)break yd;q=O[b>>3];m=j==0?q:j;j=q==0?m:q;Id:{Jd:{if(!(j>50)){if(!(R(m-j)<.3)){if(!(e>>>0>=2&R(j-O[s+16>>3])<.3)){if(!(j +m))break Id;a=J[l>>2]|2;break Jd}a=J[l>>2]|1;break Jd}a=J[l>>2]|1;break Jd}a=J[l>>2]&-3;break Jd}a=J[l>>2]|2}J[l>>2]=a}if((f|0)==16)break yd;p=s-16|0;r=s-8|0;a=2;while(1){f=a<<3;m=O[f+s>>3];j=O[f+r>>3];j=j==0?m:j;m=m==0?j:m;Kd:{if(m>50){f=(a>>>3&536870908)+l|0;J[f>>2]=J[f>>2]|1<>>3&536870908)+l|0;w=J[f>>2];W=f,X=zEb(-2,a)&w,J[W>>2]=X;break Kd}q=R(j-O[f+p>>3]);Ld:{Md:{Nd:{Od:{if(a>>>0>=e>>>0){if(!(q<.3))break Od;break Md}w=q<.3;f=R(m-O[b+f>>3])<.3;if(w^f)break Nd}if(j> +m){f=a-1|0;w=(f>>>3&536870908)+l|0;J[w>>2]=J[w>>2]|1<>>3&536870908)+l|0;J[f>>2]=J[f>>2]|1<>>3&536870908)+l|0;J[f>>2]=J[f>>2]|1<>>3&536870908)+l|0;J[w>>2]=J[w>>2]|1<>2];j=O[p+32>>3];Pd:{if(!(j>O[J[c+8>>2]+32>>3]))break Pd;Qd:{if(!e)break Qd;a=J[l>>2];if(a&1)break Pd;if(a&2)break Qd;if(!K[o+3|0])break Pd}J[t>> +2]=J[t>>2]|1}if(!(K[o|0]|H[t|0]&1|(K[o+2|0]|K[o+1|0])))J[l>>2]=J[l>>2]|1;b=1;if((g|0)!=1)while(1){a=b;f=a-1|0;b=a+1|0;Rd:{if(!(J[(f>>>3&536870908)+l>>2]>>>f&1)|!(O[J[(b<<3)+c>>2]+32>>3]>2]+32>>3]))break Rd;f=1<>>5|0;Sd:{if(a>>>0>=e>>>0)break Sd;if(f&J[(k<<2)+l>>2])break Rd;if(J[(b>>>3&536870908)+l>>2]>>>b&1)break Sd;if(!K[P(b,3)+o|0])break Rd}k=(k<<2)+t|0;J[k>>2]=f|J[k>>2]}f=P(a,3)+o|0;Td:{if(K[f|0])break Td;k=a>>>5<<2;a=1<>2]&a))break Td;f=k+l| +0;J[f>>2]=a|J[f>>2]}if((b|0)!=(g|0))continue;break}m=O[p+40>>3];b=0;while(1){k=J[d>>2];a=b;b=a+1|0;p=k+(b<<3)|0;c=J[p>>2];l=1<>>5<<2;f=n+J[i+136>>2]|0;Ud:{if(l&J[f>>2]){j=O[c+32>>3];m=O[c+40>>3];break Ud}e=P(a,3)+o|0;s=K[e+2|0];r=K[e|0];e=J[J[c+56>>2]+4>>2];if(e){J[e+4>>2]=J[e+4>>2]+1;c=J[p>>2]}q=O[c+32>>3];j=j>q?q:j;u=O[c+40>>3];m=m>3];a=J[k+(a<<3)>>2];Vd:{if(s&1)D=O[a+32>>3]-y-j;else{z=O[a+40>>3];if(!(r&1|l&J[n+t>>2]))break Vd;D=m-(z+y)}if(D<=0)break Vd;J[f>>2]=l|J[f>>2]; +j=q;m=u}if(!e)break Ud;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break Ud;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((b|0)!=(g|0))continue;break}c=J[d>>2];k=J[d+4>>2]-c|0}a=0;Wd:{if((k|0)==8)break Wd;while(1){Xd:{b=a+1|0;c=J[J[J[(b<<3)+c>>2]+56>>2]>>2]+240|0;J[699344]=0;c=aa(6556,c|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Xd;c=J[c>>2];J[699344]=0;c=RT(c);e=J[699344];J[699344]=0;if((e|0)==1)break Xd;if(c){c=J[i+136>>2]+(a>>>3&536870908)|0;J[c>>2]=J[c>>2]|1<>2];if(a>>>0<(J[d+4>>2]-c>>3)-1>>>0)continue; +break Wd}break}break xd}c=0;if(g)while(1){e=J[d>>2];a=e+(c<<3)|0;J[i+120>>2]=J[a>>2];a=J[a+4>>2];J[i+124>>2]=a;if(a){J[a+4>>2]=J[a+4>>2]+1;e=J[d>>2]}a=c+1|0;b=e+(a<<3)|0;J[i+112>>2]=J[b>>2];b=J[b+4>>2];J[i+116>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;b=J[i+124>>2];J[i+16>>2]=J[i+120>>2];J[i+20>>2]=b;b=J[i+116>>2];J[i+8>>2]=J[i+112>>2];J[i+12>>2]=b;s=0;f=fc-32|0;fc=f;b=J[i+16>>2];j=O[b+32>>3];e=J[i+8>>2];m=O[e+32>>3];q=O[e+40>>3];u=O[b+40>>3];y=O[b+104>>3];z=O[e+104>>3];E=O[e+96>>3];D=O[b+96>>3];J[699344]= +0;e=_(4,288)|0;b=J[699344];J[699344]=0;Yd:{if((b|0)!=1){J[e>>2]=2441916;J[e+4>>2]=0;J[e+8>>2]=0;b=Ac(e+16|0,0,272);J[699344]=0;b=_(6578,b|0)|0;l=J[699344];J[699344]=0;if((l|0)==1){ea(0)|0;uc(e);Bc();B()}O[e+240>>3]=E>D?E:D;O[e+232>>3]=y>z?z:y;z=q>u?q:u;O[e+56>>3]=z;E=j>m?m:j;O[e+48>>3]=E;J[f+24>>2]=0;J[f+28>>2]=0;J[f+12>>2]=e;J[f+8>>2]=b;p=1;J[e+4>>2]=J[e+4>>2]+1;b=J[f+12>>2];J[f>>2]=J[f+8>>2];J[f+4>>2]=b;k=J[A+220>>2];n=J[A+224>>2];Zd:{if((k|0)==(n|0))break Zd;b=J[f>>2];j=O[b+224>>3];m=O[b+216>> +3];q=O[b+40>>3];u=O[b+32>>3];D=O[A>>3]*1.1;N=O[A+8>>3]*1.1;while(1){_d:{b=J[k>>2];if(!b)break _d;l=1;y=O[b+8>>3];if(!(y<0|N>3]|O[b+32>>3]<0))l=D>3];$d:{ae:{be:{if(O[b+48>>3]>120|O[b+24>>3]>120){if(!J[b+668>>2]|l)break _d;r=b+16|0;l=b+40|0;w=b+32|0;break be}if(l)break _d;r=b+16|0;l=b+40|0;w=b+32|0;if(!J[b+668>>2])break ae}if(q>3]|u>O[l>>3]|m>O[r>>3])break _d;if(!(j>2]!=1)break _d;G=O[b+40>>3];if(G>3];if(L>q)break _d;V=O[b+16>> +3];if(jV)break _d;if(!(jL)|!(m>y)))break $d;if(q>3];D=q>y?y:q;q=O[b+32>>3];O[f+24>>3]=D-(q>u?q:u);q=O[b+16>>3];q=j>q?q:j;j=O[b+8>>3];O[f+16>>3]=q-(j>m?j:m);s=1;break Zd}k=k+8|0;if((n|0)!=(k|0))continue;break}}b=J[f+4>>2];ce:{if(!b)break ce;l=J[b+4>>2];J[b+4>>2]=l-1;if(l)break ce;kc[J[J[b>>2]+8>>2]](b);Gc(b)}de:{if(s){j=O[f+24>>3];if(j+j>z-E)break de}p=0}b=J[e+4>>2];J[e+4>>2]=b-1;if(!b){kc[J[J[e>>2]+8>>2]](e);Gc(e)}b=J[i+12>>2];ee:{if(!b)break ee;e=J[b+4>>2];J[b+ +4>>2]=e-1;if(e)break ee;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[i+20>>2];fe:{if(!b)break fe;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break fe;kc[J[J[b>>2]+8>>2]](b);Gc(b)}fc=f+32|0;break Yd}break a}if(p){b=J[i+136>>2]+(c>>>3&536870908)|0;J[b>>2]=J[b>>2]|1<>2];if(!f)break rd;p=f-1|0;c=0;g=J[i+36>>2];l=J[i+32>>2];while(1){ge:{a=J[i+128>>2];e=J[d>>2]+(c<<3)|0;k=J[e>>2];j=O[k+32>>3];m=O[l>>3];O[l>>3]=j>3];m=O[g>>3];O[g>>3]=j>m?j:m;b=J[a+124>>2];he:{if((b| +0)!=J[a+128>>2]){J[b>>2]=k;e=J[e+4>>2];J[b+4>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;J[a+124>>2]=b+8;break he}J[699344]=0;da(6549,a+120|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break ge}if(!(!(J[J[i+136>>2]+(c>>>3&536870908)>>2]>>>c&1)&(c|0)!=(p|0))){J[699344]=0;da(6553,Q|0,i+128|0);a=J[699344];J[699344]=0;if((a|0)==1)break ge}c=c+1|0;if(f>>>0>c>>>0)continue;break rd}break}}c=Z()|0;je(i+128|0);l=J[i+136>>2]}if(l)uc(l);if(!t)break ud}uc(t)}if(!o)break sd}uc(o)}a=J[i+148>>2];if(!a)break ac;uc(a);break ac}a= +J[i+132>>2];ie:{if(!a)break ie;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break ie;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[i+136>>2];if(a)uc(a);if(t)uc(t);if(o)uc(o);a=J[i+148>>2];if(a)uc(a);d=d+12|0;if((F|0)!=(d|0))continue;break}break jd}c=Z()|0;break ac}B()}d=J[i+152>>2];if(!d)break jd}a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break jd;kc[J[J[d>>2]+8>>2]](d);Gc(d)}J[699344]=0;a=J[i+88>>2];b=J[i+92>>2];ca(6558,a|0,b|0,((a|0)!=(b|0)?62-(S(b-a>>3)<<1)|0:0)|0);c=J[699344];J[699344]=0;je:{ke:{le:{if((c|0)!=1){me:switch(J[h+28>> +2]-2|0){case 1:case 3:break le;case 0:case 2:break me;default:break ke}d=J[i+88>>2];a=J[i+92>>2];if((d|0)==(a|0))break je;g=h+244|0;l=h+220|0;e=a-d>>3;s=0;b=1;a=0;while(1){c=a;f=(a<<3)+d|0;ne:{oe:{if((b|0)!=(e|0)){a=b;if(b>>>0>=e>>>0)break oe;a=b;if(!(O[J[f>>2]+16>>3]>O[J[(a<<3)+d>>2]+8>>3]))break oe}a=e}pe:{if((a-c|0)!=1){if(a>>>0<=c>>>0)break pe;qe:{while(1){re:{J[699344]=0;ca(6559,i+148|0,c|0,J[i+88>>2]+(c<<3)|0);b=J[699344];J[699344]=0;if((b|0)==1)break re;b=J[h+224>>2];se:{if(b>>>0> +2]){J[b>>2]=J[i+148>>2];J[b+4>>2]=J[i+152>>2];J[h+224>>2]=b+8;break se}J[699344]=0;da(6552,l|0,i+148|0);b=J[699344];J[699344]=0;if((b|0)==1)break qe;b=J[i+152>>2];if(!b)break se;d=J[b+4>>2];J[b+4>>2]=d-1;if(d)break se;kc[J[J[b>>2]+8>>2]](b);Gc(b)}c=c+1|0;if((c|0)!=(a|0))continue;break pe}break}c=Z()|0;break ac}c=Z()|0;je(i+148|0);break ac}b=J[f>>2];j=O[b+8>>3];O[b+96>>3]=s?j-O[s+16>>3]:j+-1.5;J[i+148>>2]=b;c=J[f+4>>2];J[i+152>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;c=J[h+248>>2];te:{if(c>>>0>2]){J[c>> +2]=b;J[c+4>>2]=J[i+152>>2];J[h+248>>2]=c+8;break te}J[699344]=0;da(6560,g|0,i+148|0);b=J[699344];J[699344]=0;if((b|0)==1)break ne;b=J[i+152>>2];if(!b)break te;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break te;kc[J[J[b>>2]+8>>2]](b);Gc(b)}s=J[f>>2]}b=a+1|0;d=J[i+88>>2];e=J[i+92>>2]-d>>3;if(e>>>0>a>>>0)continue;break ke}break}c=Z()|0;je(i+148|0);break ac}c=Z()|0;break ac}d=J[i+88>>2];a=J[i+92>>2];if((d|0)==(a|0))break je;b=h+220|0;while(1){J[699344]=0;ca(6559,i+148|0,c|0,d|0);c=J[699344];J[699344]=0;if((c|0)== +1)break cc;c=J[h+224>>2];ue:{if(c>>>0>2]){J[c>>2]=J[i+148>>2];J[c+4>>2]=J[i+152>>2];J[h+224>>2]=c+8;break ue}J[699344]=0;da(6552,b|0,i+148|0);c=J[699344];J[699344]=0;if((c|0)==1)break bc;c=J[i+152>>2];if(!c)break ue;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break ue;kc[J[J[c>>2]+8>>2]](c);Gc(c)}d=d+8|0;if((a|0)!=(d|0))continue;break}}d=J[i+88>>2]}if(d){a=d;c=J[i+92>>2];if((a|0)!=(c|0)){while(1){c=c-8|0;a=J[c+4>>2];ve:{if(!a)break ve;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break ve;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((c| +0)!=(d|0))continue;break}a=J[i+88>>2]}J[i+92>>2]=d;uc(a)}a=J[i+100>>2];if(!a)break dc;c=J[i+104>>2];d=a;if((c|0)!=(a|0)){while(1){e=c-12|0;b=J[e>>2];if(b){f=c-8|0;c=J[f>>2];d=b;if((c|0)!=(b|0)){while(1){c=c-8|0;d=J[c+4>>2];we:{if(!d)break we;g=J[d+4>>2];J[d+4>>2]=g-1;if(g)break we;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if((b|0)!=(c|0))continue;break}d=J[e>>2]}J[f>>2]=b;uc(d)}c=e;if((a|0)!=(c|0))continue;break}d=J[i+100>>2]}J[i+104>>2]=a;uc(d)}fc=i+160|0;break _b}c=Z()|0;break ac}c=Z()|0;je(i+148|0)}$m(i+88| +0);DU(i+100|0);ba(c|0);B()}a=Z()|0;je(i+28|0);break b}c=J[h+196>>2];b=J[h+200>>2];if((c|0)!=(b|0))while(1){a=J[c>>2];l=J[a+56>>2];d=J[a+60>>2];if((l|0)!=(d|0))while(1){a=J[l>>2];xe:{if(!a|O[a+208>>3]!=0|O[a+200>>3]!=0)break xe;if(K[h+32|0]){O[a+208>>3]=O[a+24>>3];O[a+200>>3]=O[a+48>>3];break xe}Vz(a)}l=l+8|0;if((d|0)!=(l|0))continue;break}c=c+8|0;if((b|0)!=(c|0))continue;break}a=J[h+220>>2];b=J[h+224>>2];ye:{if((a|0)==(b|0))break ye;jH(a,b,62-(S(b-a>>3)<<1)|0);e=J[h+224>>2];l=J[h+220>>2];if((e-l| +0)!=8){c=0;while(1){a=c;c=a+1|0;d=(a<<3)+l|0;ze:{if(!J[d>>2])break ze;a=J[(c<<3)+l>>2];if(!a)break ze;e=fc-16|0;fc=e;Ae:{Be:{b=J[d>>2];switch(J[b+664>>2]-1|0){case 0:case 2:break Be;default:break Ae}}Ce:switch(J[a+664>>2]-1|0){case 0:case 2:break Ce;default:break Ae}if(J[b+56>>2]!=J[a+56>>2]|J[b+436>>2]!=J[a+436>>2]|(J[b+440>>2]!=J[a+440>>2]|O[b+448>>3]!=O[a+448>>3]))break Ae;if(K[b+456|0]!=K[a+456|0]|K[b+457|0]!=K[a+457|0]|(K[b+458|0]!=K[a+458|0]|K[b+459|0]!=K[a+459|0]))break Ae;if(!cA(b- -64|0, +a- -64|0))break Ae;b=J[d>>2];if(K[b+620|0]!=K[a+620|0]|K[b+621|0]!=K[a+621|0]|(J[b+624>>2]|J[a+624>>2]))break Ae;j=O[b+40>>3];m=O[a+32>>3];De:{if(R(j-m)<30)break De;q=O[b+32>>3];u=O[a+40>>3];if(R(q-u)<30|R(j-u)<30)break De;if(!(R(q-m)<30))break Ae}j=O[b+16>>3];m=O[a+8>>3];Ee:{if(R(j-m)<30)break Ee;q=O[b+8>>3];u=O[a+16>>3];if(R(q-u)<30|R(j-u)<30)break Ee;if(!(R(q-m)<30))break Ae}kc[J[J[a>>2]+28>>2]](a,b);zm(a+496|0,J[d>>2]+496|0);J[e+8>>2]=0;J[e+12>>2]=0;b=e+8|0;pl(d,b);je(b);J[a+672>>2]=0;J[a+664>> +2]=3;J[a+668>>2]=0}fc=e+16|0;l=J[h+220>>2];e=J[h+224>>2]}if((e-l>>3)-1>>>0>c>>>0)continue;break}}if((e|0)==(l|0))break ye;while(1){b=J[l>>2];if(!(!b|R(O[b+608>>3])<.01)){c=fc-16|0;fc=c;a=b+544|0;QU(a,b+496|0);O[c+8>>3]=-O[b+608>>3];d=fc-16|0;fc=d;j=O[a+32>>3];m=O[a+16>>3];q=O[a+40>>3];u=O[a+24>>3];b=wk(d+12|0);y=O[c+8>>3];J[699344]=0;Kx(b,y,(m+j)*.5,(u+q)*.5,1);f=J[699344];J[699344]=0;Fe:{Ge:{if((f|0)==1)break Ge;J[699344]=0;da(6498,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break Ge;Jd(b);fc=d+ +16|0;break Fe}a=Z()|0;Jd(b);break b}fc=c+16|0}l=l+8|0;if((l|0)!=(e|0))continue;break}}d=J[C+2760>>2]>=(J[C+2764>>2]-1|0);a=J[v+220>>2]==J[v+224>>2];He:{if(a)break He;Tc(x,2440180,-1);Tc(x,2440204,-1);e=J[v+220>>2];b=J[v+224>>2];if((e|0)!=(b|0)){while(1){c=J[e>>2];if(c)JT(c,x);e=e+8|0;if((b|0)!=(e|0))continue;break}if(a)break He}Tc(x,2440436,-1)}b=J[v+248>>2];c=J[v+244>>2];if((b|0)!=(c|0)){e=0;while(1){a=J[(e<<3)+c>>2];Ie:{if(!a)break Ie;a=pm(a,2444140,2452120);if(!a)break Ie;NT(a,x);c=J[v+244>>2]; +b=J[v+248>>2]}e=e+1|0;if(e>>>0>3>>>0)continue;break}}j=O[v>>3];m=O[v+8>>3];Tc(x,d?2440564:2440472,-1);Tc(x,2440608,-1);q=O[v>>3]*56.69291338582678;Je:{if(R(q)<2147483648){a=~~q;break Je}a=-2147483648}jh(x,a);Tc(x,2440664,-1);q=O[v+8>>3]*56.69291338582678;Ke:{if(R(q)<2147483648){a=~~q;break Ke}a=-2147483648}jh(x,a);Tc(x,2440696,-1);m=m*56.69291338582678;Le:{if(R(m)<2147483648){a=~~m;break Le}a=-2147483648}j=j*56.69291338582678;Me:{if(R(j)<2147483648){b=~~j;break Me}b=-2147483648}Tc(x,(a|0)>(b| +0)?2440788:2440748,-1);Tc(x,2440824,-1);Tc(x,d?2441336:2440840,-1);d=J[C+2760>>2];c=C+2792|0;a=c;b=J[a>>2];Ne:{Oe:{if(!b)break Oe;while(1){a=b;c=J[a+16>>2];if((c|0)>(d|0)){c=a;b=J[a>>2];if(b)continue;break Oe}if((c|0)>=(d|0))break Ne;b=J[a+4>>2];if(b)continue;break}c=a+4|0}b=vc(24);J[b+16>>2]=d;J[b+8>>2]=a;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[c>>2]=b;a=b;d=J[J[C+2788>>2]>>2];if(d){J[C+2788>>2]=d;a=J[c>>2]}Oc(J[C+2792>>2],a);a=C+2796|0;J[a>>2]=J[a>>2]+1}J[b+20>>2]=x;break c}a=Z()|0;uc(x);break b}IU(C+ +1976|0,a)}return 0}ba(a|0);B()}ea(0)|0;Bc();B()}function Aqb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[a+20>>2])a=0;else{i=J[J[J[a+16>>2]+16>>2]+40>>2];if(i)a:{d=fc-1760|0;fc=d;H[d+76|0]=0;H[d+84|0]=0;H[d+96|0]=0;I[d+112>>1]=K[793601]|K[793602]<<8;H[d+79|0]=8;H[d+64|0]=0;J[d+56>>2]=1160593991;J[d+60>>2]=1210925909;H[d+67|0]=8;H[d+91|0]=4;J[d+68>>2]=1160593991;J[d+72>>2]=1445806933;H[d+103|0]=4;J[d+80>>2]=1210925639;J[d+92>>2]=1445806663;a=K[793597]|K[793598]<<8|(K[793599]<<16|K[793600]<< +24);J[d+104>>2]=K[793593]|K[793594]<<8|(K[793595]<<16|K[793596]<<24);J[d+108>>2]=a;H[d+127|0]=10;I[d+114>>1]=2560;I[d+124>>1]=K[794081]|K[794082]<<8;H[d+136|0]=K[795035];H[d+148|0]=K[795457];H[d+139|0]=9;H[d+126|0]=0;H[d+151|0]=9;H[d+137|0]=0;H[d+149|0]=0;H[d+163|0]=10;a=K[794077]|K[794078]<<8|(K[794079]<<16|K[794080]<<24);J[d+116>>2]=K[794073]|K[794074]<<8|(K[794075]<<16|K[794076]<<24);J[d+120>>2]=a;a=K[795031]|K[795032]<<8|(K[795033]<<16|K[795034]<<24);J[d+128>>2]=K[795027]|K[795028]<<8|(K[795029]<< +16|K[795030]<<24);J[d+132>>2]=a;a=K[795453]|K[795454]<<8|(K[795455]<<16|K[795456]<<24);J[d+140>>2]=K[795449]|K[795450]<<8|(K[795451]<<16|K[795452]<<24);J[d+144>>2]=a;I[d+160>>1]=K[796552]|K[796553]<<8;I[d+172>>1]=K[797103]|K[797104]<<8;a=K[798238]|K[798239]<<8|(K[798240]<<16|K[798241]<<24);H[d+179|0]=a;H[d+180|0]=a>>>8;H[d+181|0]=a>>>16;H[d+182|0]=a>>>24;H[d+162|0]=0;H[d+187|0]=7;I[d+174>>1]=2560;H[d+199|0]=7;H[d+183|0]=0;a=K[796548]|K[796549]<<8|(K[796550]<<16|K[796551]<<24);J[d+152>>2]=K[796544]| +K[796545]<<8|(K[796546]<<16|K[796547]<<24);J[d+156>>2]=a;a=K[797099]|K[797100]<<8|(K[797101]<<16|K[797102]<<24);J[d+164>>2]=K[797095]|K[797096]<<8|(K[797097]<<16|K[797098]<<24);J[d+168>>2]=a;J[d+176>>2]=K[798235]|K[798236]<<8|(K[798237]<<16|K[798238]<<24);a=K[798712]|K[798713]<<8|(K[798714]<<16|K[798715]<<24);H[d+191|0]=a;H[d+192|0]=a>>>8;H[d+193|0]=a>>>16;H[d+194|0]=a>>>24;J[d+188>>2]=K[798709]|K[798710]<<8|(K[798711]<<16|K[798712]<<24);H[d+211|0]=5;H[d+195|0]=0;H[d+204|0]=K[799785];J[d+200>>2]= +K[799781]|K[799782]<<8|(K[799783]<<16|K[799784]<<24);H[d+223|0]=5;H[d+205|0]=0;H[d+216|0]=K[800190];J[d+212>>2]=K[800186]|K[800187]<<8|(K[800188]<<16|K[800189]<<24);H[d+217|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;b:{c:{if((b|0)==1){a=d+224|0;break c}J[d+228>>2]=11;J[d+232>>2]=-2147483632;J[d+224>>2]=a;b=K[801134]|K[801135]<<8|(K[801136]<<16|K[801137]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[801131]|K[801132]<<8|(K[801133]<<16|K[801134]<<24);c=K[801127]|K[801128]<< +8|(K[801129]<<16|K[801130]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+236|0;break c}J[d+240>>2]=11;J[d+244>>2]=-2147483632;J[d+236>>2]=a;b=K[801678]|K[801679]<<8|(K[801680]<<16|K[801681]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[801675]|K[801676]<<8|(K[801677]<<16|K[801678]<<24);c=K[801671]|K[801672]<<8|(K[801673]<<16|K[801674]<< +24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+248|0;break c}J[d+252>>2]=12;J[d+256>>2]=-2147483632;J[d+248>>2]=a;b=K[802697]|K[802698]<<8|(K[802699]<<16|K[802700]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[802693]|K[802694]<<8|(K[802695]<<16|K[802696]<<24);c=K[802689]|K[802690]<<8|(K[802691]<<16|K[802692]<<24);H[a|0]=c;H[a+1| +0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+260|0;break c}J[d+264>>2]=12;J[d+268>>2]=-2147483632;J[d+260>>2]=a;b=K[803009]|K[803010]<<8|(K[803011]<<16|K[803012]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[803005]|K[803006]<<8|(K[803007]<<16|K[803008]<<24);c=K[803001]|K[803002]<<8|(K[803003]<<16|K[803004]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]= +c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+272|0;break c}J[d+276>>2]=12;J[d+280>>2]=-2147483632;J[d+272>>2]=a;b=K[804118]|K[804119]<<8|(K[804120]<<16|K[804121]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[804114]|K[804115]<<8|(K[804116]<<16|K[804117]<<24);c=K[804110]|K[804111]<<8|(K[804112]<<16|K[804113]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>> +24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+284|0;break c}J[d+288>>2]=12;J[d+292>>2]=-2147483632;J[d+284>>2]=a;b=K[804549]|K[804550]<<8|(K[804551]<<16|K[804552]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[804545]|K[804546]<<8|(K[804547]<<16|K[804548]<<24);c=K[804541]|K[804542]<<8|(K[804543]<<16|K[804544]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+ +5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+296|0;break c}J[d+300>>2]=13;J[d+304>>2]=-2147483632;J[d+296>>2]=a;b=K[805422]|K[805423]<<8|(K[805424]<<16|K[805425]<<24);c=K[805418]|K[805419]<<8|(K[805420]<<16|K[805421]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[805417]|K[805418]<<8|(K[805419]<<16|K[805420]<<24);c=K[805413]|K[805414]<<8|(K[805415]<< +16|K[805416]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+308|0;break c}J[d+312>>2]=13;J[d+316>>2]=-2147483632;J[d+308>>2]=a;b=K[805842]|K[805843]<<8|(K[805844]<<16|K[805845]<<24);c=K[805838]|K[805839]<<8|(K[805840]<<16|K[805841]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>> +24;b=K[805837]|K[805838]<<8|(K[805839]<<16|K[805840]<<24);c=K[805833]|K[805834]<<8|(K[805835]<<16|K[805836]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+320|0;break c}J[d+324>>2]=13;J[d+328>>2]=-2147483632;J[d+320>>2]=a;b=K[806264]|K[806265]<<8|(K[806266]<<16|K[806267]<<24);c=K[806260]|K[806261]<<8|(K[806262]<<16|K[806263]<<24);H[a+5|0]=c;H[a+6|0]= +c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[806259]|K[806260]<<8|(K[806261]<<16|K[806262]<<24);c=K[806255]|K[806256]<<8|(K[806257]<<16|K[806258]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+332|0;break c}J[d+336>>2]=13;J[d+340>>2]=-2147483632;J[d+332>>2]=a;b=K[806711]|K[806712]<<8|(K[806713]<< +16|K[806714]<<24);c=K[806707]|K[806708]<<8|(K[806709]<<16|K[806710]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[806706]|K[806707]<<8|(K[806708]<<16|K[806709]<<24);c=K[806702]|K[806703]<<8|(K[806704]<<16|K[806705]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;I[d+348>>1]=K[807165]|K[807166]<<8;a=K[807589]|K[807590]<<8;H[d+360|0]=a; +H[d+361|0]=a>>>8;H[d+372|0]=0;H[d+384|0]=0;J[d+344>>2]=K[807161]|K[807162]<<8|(K[807163]<<16|K[807164]<<24);H[d+367|0]=6;H[d+350|0]=0;J[d+356>>2]=K[807585]|K[807586]<<8|(K[807587]<<16|K[807588]<<24);H[d+379|0]=4;H[d+362|0]=0;H[d+391|0]=4;J[d+368>>2]=1210922306;H[d+403|0]=10;J[d+380>>2]=1445803330;H[d+355|0]=6;I[d+400>>1]=K[808917]|K[808918]<<8;I[d+412>>1]=K[809252]|K[809253]<<8;I[d+424>>1]=K[809601]|K[809602]<<8;I[d+436>>1]=K[809903]|K[809904]<<8;I[d+414>>1]=2560;H[d+402|0]=0;I[d+426>>1]=2560;H[d+ +439|0]=10;a=K[808913]|K[808914]<<8|(K[808915]<<16|K[808916]<<24);J[d+392>>2]=K[808909]|K[808910]<<8|(K[808911]<<16|K[808912]<<24);J[d+396>>2]=a;a=K[809248]|K[809249]<<8|(K[809250]<<16|K[809251]<<24);J[d+404>>2]=K[809244]|K[809245]<<8|(K[809246]<<16|K[809247]<<24);J[d+408>>2]=a;a=K[809597]|K[809598]<<8|(K[809599]<<16|K[809600]<<24);J[d+416>>2]=K[809593]|K[809594]<<8|(K[809595]<<16|K[809596]<<24);J[d+420>>2]=a;a=K[809899]|K[809900]<<8|(K[809901]<<16|K[809902]<<24);J[d+428>>2]=K[809895]|K[809896]<<8| +(K[809897]<<16|K[809898]<<24);J[d+432>>2]=a;I[d+448>>1]=K[810400]|K[810401]<<8;I[d+460>>1]=K[810773]|K[810774]<<8;I[d+450>>1]=2560;H[d+438|0]=0;I[d+462>>1]=2560;a=K[810396]|K[810397]<<8|(K[810398]<<16|K[810399]<<24);J[d+440>>2]=K[810392]|K[810393]<<8|(K[810394]<<16|K[810395]<<24);J[d+444>>2]=a;a=K[810769]|K[810770]<<8|(K[810771]<<16|K[810772]<<24);J[d+452>>2]=K[810765]|K[810766]<<8|(K[810767]<<16|K[810768]<<24);J[d+456>>2]=a;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+464|0;break c}J[d+ +468>>2]=11;J[d+472>>2]=-2147483632;J[d+464>>2]=a;b=K[811123]|K[811124]<<8|(K[811125]<<16|K[811126]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[811120]|K[811121]<<8|(K[811122]<<16|K[811123]<<24);c=K[811116]|K[811117]<<8|(K[811118]<<16|K[811119]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+476|0;break c}J[d+480>>2]=11;J[d+484>> +2]=-2147483632;J[d+476>>2]=a;b=K[836787]|K[836788]<<8|(K[836789]<<16|K[836790]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[836784]|K[836785]<<8|(K[836786]<<16|K[836787]<<24);c=K[836780]|K[836781]<<8|(K[836782]<<16|K[836783]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+488|0;break c}J[d+492>>2]=11;J[d+496>>2]=-2147483632;J[d+ +488>>2]=a;b=K[837177]|K[837178]<<8|(K[837179]<<16|K[837180]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[837174]|K[837175]<<8|(K[837176]<<16|K[837177]<<24);c=K[837170]|K[837171]<<8|(K[837172]<<16|K[837173]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+500|0;break c}J[d+504>>2]=11;J[d+508>>2]=-2147483632;J[d+500>>2]=a;b=K[811523]| +K[811524]<<8|(K[811525]<<16|K[811526]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[811520]|K[811521]<<8|(K[811522]<<16|K[811523]<<24);c=K[811516]|K[811517]<<8|(K[811518]<<16|K[811519]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+512|0;break c}J[d+516>>2]=11;J[d+520>>2]=-2147483632;J[d+512>>2]=a;b=K[811939]|K[811940]<<8|(K[811941]<< +16|K[811942]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[811936]|K[811937]<<8|(K[811938]<<16|K[811939]<<24);c=K[811932]|K[811933]<<8|(K[811934]<<16|K[811935]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+524|0;break c}J[d+528>>2]=11;J[d+532>>2]=-2147483632;J[d+524>>2]=a;b=K[812265]|K[812266]<<8|(K[812267]<<16|K[812268]<<24);H[a+ +7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[812262]|K[812263]<<8|(K[812264]<<16|K[812265]<<24);c=K[812258]|K[812259]<<8|(K[812260]<<16|K[812261]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;H[d+544|0]=K[812639];H[d+556|0]=K[812930];a=K[812635]|K[812636]<<8|(K[812637]<<16|K[812638]<<24);J[d+536>>2]=K[812631]|K[812632]<<8|(K[812633]<<16|K[812634]<<24);J[d+540>>2]=a;H[d+559|0]=9;H[d+545|0]=0;a=K[812926]| +K[812927]<<8|(K[812928]<<16|K[812929]<<24);J[d+548>>2]=K[812922]|K[812923]<<8|(K[812924]<<16|K[812925]<<24);J[d+552>>2]=a;H[d+557|0]=0;J[699344]=0;H[d+547|0]=9;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+560|0;break c}J[d+564>>2]=11;J[d+568>>2]=-2147483632;J[d+560>>2]=a;b=K[813306]|K[813307]<<8|(K[813308]<<16|K[813309]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[813303]|K[813304]<<8|(K[813305]<<16|K[813306]<<24);c=K[813299]|K[813300]<<8|(K[813301]<<16|K[813302]<<24); +H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+572|0;break c}J[d+576>>2]=11;J[d+580>>2]=-2147483632;J[d+572>>2]=a;b=K[813600]|K[813601]<<8|(K[813602]<<16|K[813603]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[813597]|K[813598]<<8|(K[813599]<<16|K[813600]<<24);c=K[813593]|K[813594]<<8|(K[813595]<<16|K[813596]<<24);H[a|0]=c;H[a+1|0]=c>>> +8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;H[d+592|0]=K[813934];H[d+604|0]=K[814171];a=K[813930]|K[813931]<<8|(K[813932]<<16|K[813933]<<24);J[d+584>>2]=K[813926]|K[813927]<<8|(K[813928]<<16|K[813929]<<24);J[d+588>>2]=a;H[d+607|0]=9;H[d+593|0]=0;a=K[814167]|K[814168]<<8|(K[814169]<<16|K[814170]<<24);J[d+596>>2]=K[814163]|K[814164]<<8|(K[814165]<<16|K[814166]<<24);J[d+600>>2]=a;H[d+619|0]=9;H[d+605|0]=0;H[d+595|0]=9;H[d+616|0]=K[814468];a= +K[814464]|K[814465]<<8|(K[814466]<<16|K[814467]<<24);J[d+608>>2]=K[814460]|K[814461]<<8|(K[814462]<<16|K[814463]<<24);J[d+612>>2]=a;H[d+631|0]=9;H[d+617|0]=0;H[d+628|0]=K[815037];a=K[815033]|K[815034]<<8|(K[815035]<<16|K[815036]<<24);J[d+620>>2]=K[815029]|K[815030]<<8|(K[815031]<<16|K[815032]<<24);J[d+624>>2]=a;H[d+643|0]=6;H[d+629|0]=0;I[d+636>>1]=K[815370]|K[815371]<<8;J[d+632>>2]=K[815366]|K[815367]<<8|(K[815368]<<16|K[815369]<<24);H[d+655|0]=6;H[d+638|0]=0;a=K[815577]|K[815578]<<8;H[d+648|0]= +a;H[d+649|0]=a>>>8;J[d+644>>2]=K[815573]|K[815574]<<8|(K[815575]<<16|K[815576]<<24);H[d+667|0]=6;H[d+650|0]=0;I[d+660>>1]=K[816001]|K[816002]<<8;J[d+656>>2]=K[815997]|K[815998]<<8|(K[815999]<<16|K[816E3]<<24);H[d+679|0]=6;H[d+662|0]=0;a=K[816148]|K[816149]<<8;H[d+672|0]=a;H[d+673|0]=a>>>8;J[d+668>>2]=K[816144]|K[816145]<<8|(K[816146]<<16|K[816147]<<24);H[d+674|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+680|0;break c}J[d+684>>2]=13;J[d+688>>2]=-2147483632;J[d+680>>2]=a;b= +K[816920]|K[816921]<<8|(K[816922]<<16|K[816923]<<24);c=K[816916]|K[816917]<<8|(K[816918]<<16|K[816919]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[816915]|K[816916]<<8|(K[816917]<<16|K[816918]<<24);c=K[816911]|K[816912]<<8|(K[816913]<<16|K[816914]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]= +0;if((b|0)==1){a=d+692|0;break c}J[d+696>>2]=13;J[d+700>>2]=-2147483632;J[d+692>>2]=a;b=K[817176]|K[817177]<<8|(K[817178]<<16|K[817179]<<24);c=K[817172]|K[817173]<<8|(K[817174]<<16|K[817175]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[817171]|K[817172]<<8|(K[817173]<<16|K[817174]<<24);c=K[817167]|K[817168]<<8|(K[817169]<<16|K[817170]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]= +b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+704|0;break c}J[d+708>>2]=13;J[d+712>>2]=-2147483632;J[d+704>>2]=a;b=K[817499]|K[817500]<<8|(K[817501]<<16|K[817502]<<24);c=K[817495]|K[817496]<<8|(K[817497]<<16|K[817498]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[817494]|K[817495]<<8|(K[817496]<<16|K[817497]<<24);c=K[817490]|K[817491]<<8|(K[817492]<< +16|K[817493]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+716|0;break c}J[d+720>>2]=13;J[d+724>>2]=-2147483632;J[d+716>>2]=a;b=K[818516]|K[818517]<<8|(K[818518]<<16|K[818519]<<24);c=K[818512]|K[818513]<<8|(K[818514]<<16|K[818515]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>> +24;b=K[818511]|K[818512]<<8|(K[818513]<<16|K[818514]<<24);c=K[818507]|K[818508]<<8|(K[818509]<<16|K[818510]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+728|0;break c}J[d+732>>2]=14;J[d+736>>2]=-2147483632;J[d+728>>2]=a;b=K[818766]|K[818767]<<8|(K[818768]<<16|K[818769]<<24);c=K[818762]|K[818763]<<8|(K[818764]<<16|K[818765]<<24);H[a+6|0]=c;H[a+7|0]= +c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[818760]|K[818761]<<8|(K[818762]<<16|K[818763]<<24);c=K[818756]|K[818757]<<8|(K[818758]<<16|K[818759]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+740|0;break c}J[d+744>>2]=14;J[d+748>>2]=-2147483632;J[d+740>>2]=a;b=K[819341]|K[819342]<<8|(K[819343]<< +16|K[819344]<<24);c=K[819337]|K[819338]<<8|(K[819339]<<16|K[819340]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[819335]|K[819336]<<8|(K[819337]<<16|K[819338]<<24);c=K[819331]|K[819332]<<8|(K[819333]<<16|K[819334]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+752|0;break c}J[d+ +756>>2]=14;J[d+760>>2]=-2147483632;J[d+752>>2]=a;b=K[819612]|K[819613]<<8|(K[819614]<<16|K[819615]<<24);c=K[819608]|K[819609]<<8|(K[819610]<<16|K[819611]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[819606]|K[819607]<<8|(K[819608]<<16|K[819609]<<24);c=K[819602]|K[819603]<<8|(K[819604]<<16|K[819605]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24; +H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+764|0;break c}J[d+768>>2]=14;J[d+772>>2]=-2147483632;J[d+764>>2]=a;b=K[819798]|K[819799]<<8|(K[819800]<<16|K[819801]<<24);c=K[819794]|K[819795]<<8|(K[819796]<<16|K[819797]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[819792]|K[819793]<<8|(K[819794]<<16|K[819795]<<24);c=K[819788]|K[819789]<<8|(K[819790]<<16|K[819791]<<24);H[a|0]=c;H[a+1|0]= +c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;H[d+784|0]=0;H[d+796|0]=0;H[d+804|0]=0;H[d+816|0]=0;H[d+799|0]=8;J[d+776>>2]=1160591415;J[d+780>>2]=1210925909;H[d+811|0]=4;J[d+788>>2]=1160591415;J[d+792>>2]=1445806933;H[d+823|0]=4;J[d+800>>2]=1210923063;H[d+835|0]=9;J[d+812>>2]=1445804087;H[d+787|0]=8;H[d+832|0]=K[822899];H[d+847|0]=9;H[d+833|0]=0;a=K[822895]|K[822896]<<8|(K[822897]<<16|K[822898]<<24);J[d+824>>2]=K[822891]|K[822892]<<8|(K[822893]<< +16|K[822894]<<24);J[d+828>>2]=a;H[d+844|0]=K[823155];a=K[823151]|K[823152]<<8|(K[823153]<<16|K[823154]<<24);J[d+836>>2]=K[823147]|K[823148]<<8|(K[823149]<<16|K[823150]<<24);J[d+840>>2]=a;H[d+845|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+848|0;break c}J[d+852>>2]=11;J[d+856>>2]=-2147483632;J[d+848>>2]=a;b=K[823497]|K[823498]<<8|(K[823499]<<16|K[823500]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[823494]|K[823495]<<8|(K[823496]<<16|K[823497]<<24); +c=K[823490]|K[823491]<<8|(K[823492]<<16|K[823493]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+860|0;break c}J[d+864>>2]=11;J[d+868>>2]=-2147483632;J[d+860>>2]=a;b=K[823786]|K[823787]<<8|(K[823788]<<16|K[823789]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[823783]|K[823784]<<8|(K[823785]<<16|K[823786]<<24);c=K[823779]|K[823780]<< +8|(K[823781]<<16|K[823782]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+872|0;break c}J[d+876>>2]=11;J[d+880>>2]=-2147483632;J[d+872>>2]=a;b=K[823967]|K[823968]<<8|(K[823969]<<16|K[823970]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[823964]|K[823965]<<8|(K[823966]<<16|K[823967]<<24);c=K[823960]|K[823961]<<8|(K[823962]<<16|K[823963]<< +24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+884|0;break c}J[d+888>>2]=11;J[d+892>>2]=-2147483632;J[d+884>>2]=a;b=K[825265]|K[825266]<<8|(K[825267]<<16|K[825268]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[825262]|K[825263]<<8|(K[825264]<<16|K[825265]<<24);c=K[825258]|K[825259]<<8|(K[825260]<<16|K[825261]<<24);H[a|0]=c;H[a+1| +0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+896|0;break c}J[d+900>>2]=11;J[d+904>>2]=-2147483632;J[d+896>>2]=a;b=K[825637]|K[825638]<<8|(K[825639]<<16|K[825640]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[825634]|K[825635]<<8|(K[825636]<<16|K[825637]<<24);c=K[825630]|K[825631]<<8|(K[825632]<<16|K[825633]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>> +16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+908|0;break c}J[d+912>>2]=12;J[d+916>>2]=-2147483632;J[d+908>>2]=a;b=K[827134]|K[827135]<<8|(K[827136]<<16|K[827137]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[827130]|K[827131]<<8|(K[827132]<<16|K[827133]<<24);c=K[827126]|K[827127]<<8|(K[827128]<<16|K[827129]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24; +H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+920|0;break c}J[d+924>>2]=12;J[d+928>>2]=-2147483632;J[d+920>>2]=a;b=K[827378]|K[827379]<<8|(K[827380]<<16|K[827381]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[827374]|K[827375]<<8|(K[827376]<<16|K[827377]<<24);c=K[827370]|K[827371]<<8|(K[827372]<<16|K[827373]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]= +b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+932|0;break c}J[d+936>>2]=11;J[d+940>>2]=-2147483632;J[d+932>>2]=a;b=K[828090]|K[828091]<<8|(K[828092]<<16|K[828093]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[828087]|K[828088]<<8|(K[828089]<<16|K[828090]<<24);c=K[828083]|K[828084]<<8|(K[828085]<<16|K[828086]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>> +16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+944|0;break c}J[d+948>>2]=11;J[d+952>>2]=-2147483632;J[d+944>>2]=a;b=K[828345]|K[828346]<<8|(K[828347]<<16|K[828348]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[828342]|K[828343]<<8|(K[828344]<<16|K[828345]<<24);c=K[828338]|K[828339]<<8|(K[828340]<<16|K[828341]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24; +H[a+11|0]=0;H[d+960|0]=K[828521];H[d+972|0]=K[828944];J[d+956>>2]=K[828517]|K[828518]<<8|(K[828519]<<16|K[828520]<<24);H[d+979|0]=5;H[d+961|0]=0;J[d+968>>2]=K[828940]|K[828941]<<8|(K[828942]<<16|K[828943]<<24);H[d+991|0]=10;H[d+973|0]=0;H[d+967|0]=5;I[d+988>>1]=K[829877]|K[829878]<<8;a=K[829873]|K[829874]<<8|(K[829875]<<16|K[829876]<<24);J[d+980>>2]=K[829869]|K[829870]<<8|(K[829871]<<16|K[829872]<<24);J[d+984>>2]=a;H[d+1003|0]=10;H[d+990|0]=0;I[d+1E3>>1]=K[830065]|K[830066]<<8;a=K[830061]|K[830062]<< +8|(K[830063]<<16|K[830064]<<24);J[d+992>>2]=K[830057]|K[830058]<<8|(K[830059]<<16|K[830060]<<24);J[d+996>>2]=a;H[d+1015|0]=5;H[d+1002|0]=0;H[d+1008|0]=K[830981];J[d+1004>>2]=K[830977]|K[830978]<<8|(K[830979]<<16|K[830980]<<24);H[d+1027|0]=5;H[d+1009|0]=0;H[d+1020|0]=K[831228];J[d+1016>>2]=K[831224]|K[831225]<<8|(K[831226]<<16|K[831227]<<24);H[d+1039|0]=10;H[d+1021|0]=0;I[d+1036>>1]=K[831550]|K[831551]<<8;a=K[831546]|K[831547]<<8|(K[831548]<<16|K[831549]<<24);J[d+1028>>2]=K[831542]|K[831543]<<8|(K[831544]<< +16|K[831545]<<24);J[d+1032>>2]=a;H[d+1051|0]=10;H[d+1038|0]=0;I[d+1048>>1]=K[831831]|K[831832]<<8;a=K[831827]|K[831828]<<8|(K[831829]<<16|K[831830]<<24);J[d+1040>>2]=K[831823]|K[831824]<<8|(K[831825]<<16|K[831826]<<24);J[d+1044>>2]=a;H[d+1063|0]=1;H[d+1050|0]=0;H[d+1075|0]=1;I[d+1052>>1]=72;H[d+1087|0]=5;I[d+1064>>1]=86;H[d+1080|0]=K[833031];J[d+1076>>2]=K[833027]|K[833028]<<8|(K[833029]<<16|K[833030]<<24);H[d+1099|0]=5;H[d+1081|0]=0;H[d+1092|0]=K[833327];J[d+1088>>2]=K[833323]|K[833324]<<8|(K[833325]<< +16|K[833326]<<24);H[d+1111|0]=6;H[d+1093|0]=0;a=d+1104|0;b=K[833646]|K[833647]<<8;H[a|0]=b;H[a+1|0]=b>>>8;J[d+1100>>2]=K[833642]|K[833643]<<8|(K[833644]<<16|K[833645]<<24);H[d+1123|0]=6;H[d+1106|0]=0;I[d+1116>>1]=K[833948]|K[833949]<<8;J[d+1112>>2]=K[833944]|K[833945]<<8|(K[833946]<<16|K[833947]<<24);H[d+1118|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1124|0;break c}b=d+1128|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1124>>2]=a;b=K[834207]|K[834208]<<8|(K[834209]<<16|K[834210]<< +24);c=K[834203]|K[834204]<<8|(K[834205]<<16|K[834206]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[834202]|K[834203]<<8|(K[834204]<<16|K[834205]<<24);c=K[834198]|K[834199]<<8|(K[834200]<<16|K[834201]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1136|0;break c}b=d+1140| +0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1136>>2]=a;b=K[834472]|K[834473]<<8|(K[834474]<<16|K[834475]<<24);c=K[834468]|K[834469]<<8|(K[834470]<<16|K[834471]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[834467]|K[834468]<<8|(K[834469]<<16|K[834470]<<24);c=K[834463]|K[834464]<<8|(K[834465]<<16|K[834466]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24; +H[a+13|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1148|0;break c}b=d+1152|0;J[b>>2]=16;J[b+4>>2]=-2147483616;J[d+1148>>2]=a;b=K[834831]|K[834832]<<8|(K[834833]<<16|K[834834]<<24);c=K[834827]|K[834828]<<8|(K[834829]<<16|K[834830]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[834823]|K[834824]<<8|(K[834825]<<16|K[834826]<<24);c=K[834819]|K[834820]<<8|(K[834821]<<16|K[834822]<<24);H[a|0]=c; +H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+16|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1160|0;break c}b=d+1164|0;J[b>>2]=16;J[b+4>>2]=-2147483616;J[d+1160>>2]=a;b=K[835095]|K[835096]<<8|(K[835097]<<16|K[835098]<<24);c=K[835091]|K[835092]<<8|(K[835093]<<16|K[835094]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[835087]|K[835088]<< +8|(K[835089]<<16|K[835090]<<24);c=K[835083]|K[835084]<<8|(K[835085]<<16|K[835086]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+16|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1172|0;break c}b=d+1176|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1172>>2]=a;b=K[835378]|K[835379]<<8|(K[835380]<<16|K[835381]<<24);c=K[835374]|K[835375]<<8|(K[835376]<<16|K[835377]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>> +16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[835373]|K[835374]<<8|(K[835375]<<16|K[835376]<<24);c=K[835369]|K[835370]<<8|(K[835371]<<16|K[835372]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1184|0;break c}b=d+1188|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1184>>2]=a;b=K[835650]|K[835651]<<8|(K[835652]<<16|K[835653]<< +24);c=K[835646]|K[835647]<<8|(K[835648]<<16|K[835649]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[835645]|K[835646]<<8|(K[835647]<<16|K[835648]<<24);c=K[835641]|K[835642]<<8|(K[835643]<<16|K[835644]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1196|0;break c}b=d+1200| +0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1196>>2]=a;b=K[835832]|K[835833]<<8|(K[835834]<<16|K[835835]<<24);c=K[835828]|K[835829]<<8|(K[835830]<<16|K[835831]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[835826]|K[835827]<<8|(K[835828]<<16|K[835829]<<24);c=K[835822]|K[835823]<<8|(K[835824]<<16|K[835825]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>> +24;H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1208|0;break c}b=d+1212|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1208>>2]=a;b=K[836089]|K[836090]<<8|(K[836091]<<16|K[836092]<<24);c=K[836085]|K[836086]<<8|(K[836087]<<16|K[836088]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[836083]|K[836084]<<8|(K[836085]<<16|K[836086]<<24);c=K[836079]|K[836080]<<8|(K[836081]<<16|K[836082]<<24);H[a|0]= +c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1220|0;break c}b=d+1224|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1220>>2]=a;b=K[837950]|K[837951]<<8|(K[837952]<<16|K[837953]<<24);c=K[837946]|K[837947]<<8|(K[837948]<<16|K[837949]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[837944]|K[837945]<< +8|(K[837946]<<16|K[837947]<<24);c=K[837940]|K[837941]<<8|(K[837942]<<16|K[837943]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1232|0;break c}b=d+1236|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1232>>2]=a;b=K[838145]|K[838146]<<8|(K[838147]<<16|K[838148]<<24);c=K[838141]|K[838142]<<8|(K[838143]<<16|K[838144]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>> +16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[838139]|K[838140]<<8|(K[838141]<<16|K[838142]<<24);c=K[838135]|K[838136]<<8|(K[838137]<<16|K[838138]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1244|0;break c}b=d+1248|0;J[b>>2]=17;J[b+4>>2]=-2147483616;J[d+1244>>2]=a;H[a+16|0]=K[838358];b=K[838354]|K[838355]<<8| +(K[838356]<<16|K[838357]<<24);c=K[838350]|K[838351]<<8|(K[838352]<<16|K[838353]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[838346]|K[838347]<<8|(K[838348]<<16|K[838349]<<24);c=K[838342]|K[838343]<<8|(K[838344]<<16|K[838345]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+17|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)== +1){a=d+1256|0;break c}b=d+1260|0;J[b>>2]=17;J[b+4>>2]=-2147483616;J[d+1256>>2]=a;H[a+16|0]=K[838526];b=K[838522]|K[838523]<<8|(K[838524]<<16|K[838525]<<24);c=K[838518]|K[838519]<<8|(K[838520]<<16|K[838521]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[838514]|K[838515]<<8|(K[838516]<<16|K[838517]<<24);c=K[838510]|K[838511]<<8|(K[838512]<<16|K[838513]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+ +4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+17|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1268|0;break c}b=d+1272|0;J[b>>2]=18;J[b+4>>2]=-2147483616;J[d+1268>>2]=a;b=K[838694]|K[838695]<<8;H[a+16|0]=b;H[a+17|0]=b>>>8;b=K[838690]|K[838691]<<8|(K[838692]<<16|K[838693]<<24);c=K[838686]|K[838687]<<8|(K[838688]<<16|K[838689]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[838682]| +K[838683]<<8|(K[838684]<<16|K[838685]<<24);c=K[838678]|K[838679]<<8|(K[838680]<<16|K[838681]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+18|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1280|0;break c}b=d+1284|0;J[b>>2]=18;J[b+4>>2]=-2147483616;J[d+1280>>2]=a;b=K[838910]|K[838911]<<8;H[a+16|0]=b;H[a+17|0]=b>>>8;b=K[838906]|K[838907]<<8|(K[838908]<<16|K[838909]<<24);c=K[838902]|K[838903]<<8|(K[838904]<< +16|K[838905]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[838898]|K[838899]<<8|(K[838900]<<16|K[838901]<<24);c=K[838894]|K[838895]<<8|(K[838896]<<16|K[838897]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+18|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1292|0;break c}b=d+1296|0;J[b>>2]=18;J[b+4>>2]=-2147483616;J[d+ +1292>>2]=a;b=K[839115]|K[839116]<<8;H[a+16|0]=b;H[a+17|0]=b>>>8;b=K[839111]|K[839112]<<8|(K[839113]<<16|K[839114]<<24);c=K[839107]|K[839108]<<8|(K[839109]<<16|K[839110]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[839103]|K[839104]<<8|(K[839105]<<16|K[839106]<<24);c=K[839099]|K[839100]<<8|(K[839101]<<16|K[839102]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>> +16;H[a+7|0]=b>>>24;H[a+18|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1304|0;break c}b=d+1308|0;J[b>>2]=18;J[b+4>>2]=-2147483616;J[d+1304>>2]=a;b=K[839292]|K[839293]<<8;H[a+16|0]=b;H[a+17|0]=b>>>8;b=K[839288]|K[839289]<<8|(K[839290]<<16|K[839291]<<24);c=K[839284]|K[839285]<<8|(K[839286]<<16|K[839287]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[839280]|K[839281]<<8|(K[839282]<<16|K[839283]<< +24);c=K[839276]|K[839277]<<8|(K[839278]<<16|K[839279]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+18|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1316|0;break c}b=d+1320|0;J[b>>2]=16;J[b+4>>2]=-2147483616;J[d+1316>>2]=a;b=K[839471]|K[839472]<<8|(K[839473]<<16|K[839474]<<24);c=K[839467]|K[839468]<<8|(K[839469]<<16|K[839470]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12| +0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[839463]|K[839464]<<8|(K[839465]<<16|K[839466]<<24);c=K[839459]|K[839460]<<8|(K[839461]<<16|K[839462]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+16|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1328|0;break c}b=d+1332|0;J[b>>2]=19;J[b+4>>2]=-2147483616;J[d+1328>>2]=a;b=K[839628]|K[839629]<<8|(K[839630]<<16|K[839631]<<24);H[a+15|0]=b;H[a+ +16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[839625]|K[839626]<<8|(K[839627]<<16|K[839628]<<24);c=K[839621]|K[839622]<<8|(K[839623]<<16|K[839624]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[839617]|K[839618]<<8|(K[839619]<<16|K[839620]<<24);c=K[839613]|K[839614]<<8|(K[839615]<<16|K[839616]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24; +H[a+19|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1340|0;break c}b=d+1344|0;J[b>>2]=16;J[b+4>>2]=-2147483616;J[d+1340>>2]=a;b=K[839795]|K[839796]<<8|(K[839797]<<16|K[839798]<<24);c=K[839791]|K[839792]<<8|(K[839793]<<16|K[839794]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[839787]|K[839788]<<8|(K[839789]<<16|K[839790]<<24);c=K[839783]|K[839784]<<8|(K[839785]<<16|K[839786]<<24);H[a|0]=c; +H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+16|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1352|0;break c}b=d+1356|0;J[b>>2]=19;J[b+4>>2]=-2147483616;J[d+1352>>2]=a;b=K[839945]|K[839946]<<8|(K[839947]<<16|K[839948]<<24);H[a+15|0]=b;H[a+16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[839942]|K[839943]<<8|(K[839944]<<16|K[839945]<<24);c=K[839938]|K[839939]<<8|(K[839940]<<16|K[839941]<<24);H[a+8|0]=c;H[a+9|0]= +c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[839934]|K[839935]<<8|(K[839936]<<16|K[839937]<<24);c=K[839930]|K[839931]<<8|(K[839932]<<16|K[839933]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+19|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1364|0;break c}b=d+1368|0;J[b>>2]=19;J[b+4>>2]=-2147483616;J[d+1364>>2]=a;b=K[840117]|K[840118]<<8| +(K[840119]<<16|K[840120]<<24);H[a+15|0]=b;H[a+16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[840114]|K[840115]<<8|(K[840116]<<16|K[840117]<<24);c=K[840110]|K[840111]<<8|(K[840112]<<16|K[840113]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[840106]|K[840107]<<8|(K[840108]<<16|K[840109]<<24);c=K[840102]|K[840103]<<8|(K[840104]<<16|K[840105]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b; +H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+19|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1376|0;break c}b=d+1380|0;J[b>>2]=23;J[b+4>>2]=-2147483616;J[d+1376>>2]=a;b=K[840245]|K[840246]<<8|(K[840247]<<16|K[840248]<<24);c=K[840241]|K[840242]<<8|(K[840243]<<16|K[840244]<<24);H[a+15|0]=c;H[a+16|0]=c>>>8;H[a+17|0]=c>>>16;H[a+18|0]=c>>>24;H[a+19|0]=b;H[a+20|0]=b>>>8;H[a+21|0]=b>>>16;H[a+22|0]=b>>>24;b=K[840238]|K[840239]<<8|(K[840240]<<16|K[840241]<<24);c=K[840234]|K[840235]<< +8|(K[840236]<<16|K[840237]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[840230]|K[840231]<<8|(K[840232]<<16|K[840233]<<24);c=K[840226]|K[840227]<<8|(K[840228]<<16|K[840229]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+23|0]=0;J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1388|0;break c}b=d+1392|0;J[b>>2]=23;J[b+4>>2]= +-2147483616;J[d+1388>>2]=a;b=K[840444]|K[840445]<<8|(K[840446]<<16|K[840447]<<24);c=K[840440]|K[840441]<<8|(K[840442]<<16|K[840443]<<24);H[a+15|0]=c;H[a+16|0]=c>>>8;H[a+17|0]=c>>>16;H[a+18|0]=c>>>24;H[a+19|0]=b;H[a+20|0]=b>>>8;H[a+21|0]=b>>>16;H[a+22|0]=b>>>24;b=K[840437]|K[840438]<<8|(K[840439]<<16|K[840440]<<24);c=K[840433]|K[840434]<<8|(K[840435]<<16|K[840436]<<24);H[a+8|0]=c;H[a+9|0]=c>>>8;H[a+10|0]=c>>>16;H[a+11|0]=c>>>24;H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;b=K[840429]| +K[840430]<<8|(K[840431]<<16|K[840432]<<24);c=K[840425]|K[840426]<<8|(K[840427]<<16|K[840428]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+23|0]=0;H[d+1408|0]=K[840552];H[d+1432|0]=0;H[d+1444|0]=0;a=K[840548]|K[840549]<<8|(K[840550]<<16|K[840551]<<24);J[d+1400>>2]=K[840544]|K[840545]<<8|(K[840546]<<16|K[840547]<<24);J[d+1404>>2]=a;H[d+1423|0]=7;H[d+1409|0]=0;H[d+1411|0]=9;a=d+1415|0;b=K[840605]|K[840606]<<8|(K[840607]<<16| +K[840608]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;H[d+1435|0]=8;H[d+1419|0]=0;H[d+1447|0]=8;J[d+1424>>2]=1634888008;J[d+1428>>2]=1634623847;H[d+1459|0]=5;J[d+1436>>2]=1635017035;J[d+1440>>2]=1634623851;J[d+1412>>2]=K[840602]|K[840603]<<8|(K[840604]<<16|K[840605]<<24);H[d+1452|0]=K[841046];J[d+1448>>2]=K[841042]|K[841043]<<8|(K[841044]<<16|K[841045]<<24);H[d+1471|0]=9;H[d+1453|0]=0;H[d+1468|0]=K[841270];a=K[841266]|K[841267]<<8|(K[841268]<<16|K[841269]<<24);J[d+1460>>2]=K[841262]| +K[841263]<<8|(K[841264]<<16|K[841265]<<24);J[d+1464>>2]=a;H[d+1483|0]=9;H[d+1469|0]=0;H[d+1480|0]=K[841451];a=K[841447]|K[841448]<<8|(K[841449]<<16|K[841450]<<24);J[d+1472>>2]=K[841443]|K[841444]<<8|(K[841445]<<16|K[841446]<<24);J[d+1476>>2]=a;H[d+1495|0]=5;H[d+1481|0]=0;H[d+1488|0]=K[841608];J[d+1484>>2]=K[841604]|K[841605]<<8|(K[841606]<<16|K[841607]<<24);H[d+1507|0]=5;H[d+1489|0]=0;H[d+1500|0]=K[841744];J[d+1496>>2]=K[841740]|K[841741]<<8|(K[841742]<<16|K[841743]<<24);H[d+1501|0]=0;J[699344]=0; +a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1508|0;break c}b=d+1512|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1508>>2]=a;b=K[841886]|K[841887]<<8|(K[841888]<<16|K[841889]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[841883]|K[841884]<<8|(K[841885]<<16|K[841886]<<24);c=K[841879]|K[841880]<<8|(K[841881]<<16|K[841882]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0; +b=J[699344];J[699344]=0;if((b|0)==1){a=d+1520|0;break c}b=d+1524|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1520>>2]=a;b=K[842090]|K[842091]<<8|(K[842092]<<16|K[842093]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[842087]|K[842088]<<8|(K[842089]<<16|K[842090]<<24);c=K[842083]|K[842084]<<8|(K[842085]<<16|K[842086]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344]; +J[699344]=0;if((b|0)==1){a=d+1532|0;break c}b=d+1536|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1532>>2]=a;b=K[842259]|K[842260]<<8|(K[842261]<<16|K[842262]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[842256]|K[842257]<<8|(K[842258]<<16|K[842259]<<24);c=K[842252]|K[842253]<<8|(K[842254]<<16|K[842255]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0; +if((b|0)==1){a=d+1544|0;break c}b=d+1548|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1544>>2]=a;b=K[842454]|K[842455]<<8|(K[842456]<<16|K[842457]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[842451]|K[842452]<<8|(K[842453]<<16|K[842454]<<24);c=K[842447]|K[842448]<<8|(K[842449]<<16|K[842450]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a= +d+1556|0;break c}b=d+1560|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1556>>2]=a;b=K[842614]|K[842615]<<8|(K[842616]<<16|K[842617]<<24);c=K[842610]|K[842611]<<8|(K[842612]<<16|K[842613]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[842608]|K[842609]<<8|(K[842610]<<16|K[842611]<<24);c=K[842604]|K[842605]<<8|(K[842606]<<16|K[842607]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+ +6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1568|0;break c}b=d+1572|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1568>>2]=a;b=K[842719]|K[842720]<<8|(K[842721]<<16|K[842722]<<24);c=K[842715]|K[842716]<<8|(K[842717]<<16|K[842718]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[842713]|K[842714]<<8|(K[842715]<<16|K[842716]<<24);c=K[842709]|K[842710]<<8|(K[842711]<< +16|K[842712]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1580|0;break c}b=d+1584|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1580>>2]=a;b=K[842849]|K[842850]<<8|(K[842851]<<16|K[842852]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[842846]|K[842847]<<8|(K[842848]<<16|K[842849]<<24);c=K[842842]|K[842843]<<8|(K[842844]<<16|K[842845]<< +24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1592|0;break c}b=d+1596|0;J[b>>2]=11;J[b+4>>2]=-2147483632;J[d+1592>>2]=a;b=K[843034]|K[843035]<<8|(K[843036]<<16|K[843037]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]=b>>>24;b=K[843031]|K[843032]<<8|(K[843033]<<16|K[843034]<<24);c=K[843027]|K[843028]<<8|(K[843029]<<16|K[843030]<<24);H[a|0]=c; +H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1604|0;break c}b=d+1608|0;J[b>>2]=12;J[b+4>>2]=-2147483632;J[d+1604>>2]=a;b=K[843207]|K[843208]<<8|(K[843209]<<16|K[843210]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[843203]|K[843204]<<8|(K[843205]<<16|K[843206]<<24);c=K[843199]|K[843200]<<8|(K[843201]<<16|K[843202]<<24);H[a|0]=c;H[a+1|0]=c>>> +8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1616|0;break c}b=d+1620|0;J[b>>2]=12;J[b+4>>2]=-2147483632;J[d+1616>>2]=a;b=K[843321]|K[843322]<<8|(K[843323]<<16|K[843324]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[843317]|K[843318]<<8|(K[843319]<<16|K[843320]<<24);c=K[843313]|K[843314]<<8|(K[843315]<<16|K[843316]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]= +c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1628|0;break c}b=d+1632|0;J[b>>2]=12;J[b+4>>2]=-2147483632;J[d+1628>>2]=a;b=K[843539]|K[843540]<<8|(K[843541]<<16|K[843542]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[843535]|K[843536]<<8|(K[843537]<<16|K[843538]<<24);c=K[843531]|K[843532]<<8|(K[843533]<<16|K[843534]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+ +3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1640|0;break c}b=d+1644|0;J[b>>2]=12;J[b+4>>2]=-2147483632;J[d+1640>>2]=a;b=K[843649]|K[843650]<<8|(K[843651]<<16|K[843652]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[843645]|K[843646]<<8|(K[843647]<<16|K[843648]<<24);c=K[843641]|K[843642]<<8|(K[843643]<<16|K[843644]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24; +H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1652|0;break c}b=d+1656|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1652>>2]=a;b=K[843743]|K[843744]<<8|(K[843745]<<16|K[843746]<<24);c=K[843739]|K[843740]<<8|(K[843741]<<16|K[843742]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[843738]|K[843739]<<8|(K[843740]<<16|K[843741]<<24);c=K[843734]| +K[843735]<<8|(K[843736]<<16|K[843737]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1664|0;break c}b=d+1668|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1664>>2]=a;b=K[843862]|K[843863]<<8|(K[843864]<<16|K[843865]<<24);c=K[843858]|K[843859]<<8|(K[843860]<<16|K[843861]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>> +8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[843857]|K[843858]<<8|(K[843859]<<16|K[843860]<<24);c=K[843853]|K[843854]<<8|(K[843855]<<16|K[843856]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1676|0;break c}b=d+1680|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1676>>2]=a;b=K[844010]|K[844011]<<8|(K[844012]<<16|K[844013]<<24);c=K[844006]|K[844007]<<8|(K[844008]<< +16|K[844009]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[844005]|K[844006]<<8|(K[844007]<<16|K[844008]<<24);c=K[844001]|K[844002]<<8|(K[844003]<<16|K[844004]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1688|0;break c}b=d+1692|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+ +1688>>2]=a;b=K[844124]|K[844125]<<8|(K[844126]<<16|K[844127]<<24);c=K[844120]|K[844121]<<8|(K[844122]<<16|K[844123]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[844119]|K[844120]<<8|(K[844121]<<16|K[844122]<<24);c=K[844115]|K[844116]<<8|(K[844117]<<16|K[844118]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b= +J[699344];J[699344]=0;if((b|0)==1){a=d+1700|0;break c}b=d+1704|0;J[b>>2]=13;J[b+4>>2]=-2147483632;J[d+1700>>2]=a;b=K[844234]|K[844235]<<8|(K[844236]<<16|K[844237]<<24);c=K[844230]|K[844231]<<8|(K[844232]<<16|K[844233]<<24);H[a+5|0]=c;H[a+6|0]=c>>>8;H[a+7|0]=c>>>16;H[a+8|0]=c>>>24;H[a+9|0]=b;H[a+10|0]=b>>>8;H[a+11|0]=b>>>16;H[a+12|0]=b>>>24;b=K[844229]|K[844230]<<8|(K[844231]<<16|K[844232]<<24);c=K[844225]|K[844226]<<8|(K[844227]<<16|K[844228]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]= +c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+13|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1712|0;break c}b=d+1716|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1712>>2]=a;b=K[844361]|K[844362]<<8|(K[844363]<<16|K[844364]<<24);c=K[844357]|K[844358]<<8|(K[844359]<<16|K[844360]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[844355]|K[844356]<<8|(K[844357]<<16|K[844358]<<24); +c=K[844351]|K[844352]<<8|(K[844353]<<16|K[844354]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=d+1724|0;break c}b=d+1728|0;J[b>>2]=14;J[b+4>>2]=-2147483632;J[d+1724>>2]=a;b=K[844426]|K[844427]<<8|(K[844428]<<16|K[844429]<<24);c=K[844422]|K[844423]<<8|(K[844424]<<16|K[844425]<<24);H[a+6|0]=c;H[a+7|0]=c>>>8;H[a+8|0]=c>>>16;H[a+9|0]=c>>>24;H[a+10|0]=b;H[a+ +11|0]=b>>>8;H[a+12|0]=b>>>16;H[a+13|0]=b>>>24;b=K[844420]|K[844421]<<8|(K[844422]<<16|K[844423]<<24);c=K[844416]|K[844417]<<8|(K[844418]<<16|K[844419]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+14|0]=0;J[d+1744>>2]=140;J[699344]=0;J[d+1740>>2]=d+56;a=J[d+1744>>2];J[d>>2]=J[d+1740>>2];J[d+4>>2]=a;c=aa(3504,d+1748|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=d+1736|0;while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((a| +0)!=(d+56|0))continue;break}d:{a=J[i>>2];e:{if(!a)break e;a=J[a+28>>2];if(!a)break e;J[d+52>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;f:{g:{j=J[a+20>>2];if((j|0)>0){a=1;while(1){b=J[J[i>>2]+28>>2];J[699344]=0;b=aa(3446,b|0,a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;h:{e=J[b+12>>2];if(J[e+280>>2]!=7)break h;e=J[e+288>>2];if(!e)break h;J[699344]=0;e=ha(3687,e|0,c|0,0,d+44|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){if(!e)break h;g=1;break f}break d}J[d+56>>2]=13;e=J[b+4>>2];J[699344]=0;b=ha(3372,b+16|0, +e|0,d+56|0,0)|0;e=J[699344];J[699344]=0;i:{if((e|0)!=1){j:{if(J[b>>2]!=6)break j;b=0;e=J[J[d+64>>2]+12>>2];if((e|0)<=0)break j;while(1){J[d+24>>2]=13;J[699344]=0;f=d+24|0;h=ha(3449,J[d+64>>2],b|0,f|0,0)|0;k=J[699344];J[699344]=0;k:{l:{if((k|0)!=1){if(J[h>>2]==7)break l;J[699344]=0;$(3370,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break k}break d}J[d+8>>2]=13;J[699344]=0;f=d+8|0;h=ha(3368,J[d+32>>2],844535,f|0,0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break d;m:{if(J[h>>2]!=7)break m;J[699344]=0;h=ha(3687, +J[d+16>>2],c|0,0,d+44|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break d;if(!h)break m;J[699344]=0;$(3370,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break d;break g}J[699344]=0;$(3370,d+8|0);f=J[699344];J[699344]=0;if((f|0)==1)break d;J[699344]=0;f=d+24|0;h=ga(3688,f|0,c|0,d+44|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break d;if(h)break g;J[699344]=0;$(3370,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break d}b=b+1|0;if((e|0)!=(b|0))continue;break}}J[699344]=0;$(3370,d+56|0);b=J[699344];J[699344]=0;if((b| +0)!=1)break i}break d}b=(a|0)==(j|0);a=a+1|0;if(!b)continue;break}a=J[J[i>>2]+28>>2]}a=J[a+132>>2];if(!a)break f;J[d+56>>2]=13;b=J[a+16>>2];J[699344]=0;e=b;b=d+56|0;j=ha(3368,e|0,844535,b|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;n:{if(J[j>>2]!=7)break n;J[699344]=0;j=ha(3687,J[d+64>>2],c|0,0,d+44|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;if(!j)break n;J[699344]=0;$(3370,b|0);a=J[699344];J[699344]=0;g=1;if((a|0)!=1)break f;break d}J[699344]=0;$(3370,d+56|0);b=J[699344];J[699344]=0; +if((b|0)==1)break d;J[699344]=0;j=J[J[a+32>>2]+8>>2];b=J[699344];J[699344]=0;o:{if((b|0)!=1){if((j|0)>0)break o;break f}break d}b=0;while(1){J[699344]=0;g=J[J[J[a+32>>2]>>2]+(b<<2)>>2];e=J[699344];J[699344]=0;if((e|0)==1)break d;J[699344]=0;e=d+56|0;f=aa(3689,g|0,e|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;p:{if(J[f>>2]!=7)break p;J[699344]=0;f=ha(3687,J[d+64>>2],c|0,0,d+44|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;if(!f)break p;J[699344]=0;$(3370,e|0);a=J[699344];J[699344]=0;g=1;if((a| +0)!=1)break f;break d}J[699344]=0;$(3370,d+56|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;J[d+24>>2]=13;J[699344]=0;J[d+8>>2]=13;e=g;g=d+24|0;aa(3488,e|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[J[i>>2]+24>>2];J[699344]=0;f=e;e=d+8|0;ha(3372,g|0,f|0,e|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;J[699344]=0;$(3370,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break d;J[699344]=0;g=ga(3688,e|0,c|0,d+44|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;J[699344]=0;$(3370,e|0);e=J[699344]; +J[699344]=0;if((e|0)==1)break d;b=b+1|0;if(((j|0)==(b|0)|g)!=1)continue;break}break f}J[699344]=0;$(3370,d+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;$(3370,d+56|0);a=J[699344];J[699344]=0;if((a|0)==1)break d;g=1}a=J[d+44>>2];if(!a)break e;J[d+48>>2]=a;uc(a)}i=J[c>>2];if(i){a=J[c+4>>2];b=i;if((a|0)!=(b|0)){while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((i|0)!=(a|0))continue;break}b=J[c>>2]}J[c+4>>2]=i;uc(b)}fc=d+1760|0;a=g;break a}g=Z()|0;a=J[d+44>>2];if(a){J[d+48>>2]=a;uc(a)}Ag(c); +break b}a=d+1736|0;g=Z()|0;while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((a|0)!=(d+56|0))continue;break}break b}g=Z()|0;while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((a|0)!=(d+56|0))continue;break}}ba(g|0);B()}else a=0}return a|0}function yrb(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;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=Q(0),A=0,C=Q(0),D=0,E=0,F=0,G=0,I=0,S=0,T=Q(0),U=0,V=0,W=0,X=0,Y=0,ca=0,ea=0,fa=Q(0),ha=0,ia=0,ja=0,la=0,na=0,oa= +0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0;c=fc-96|0;fc=c;a:{b:{if(!b)break b;l=xh(d,e,32);J[c+72>>2]=l;if(!l)break b;if(!((e|0)<=0|(d|0)<=0)){j=g?0:2;k=g?2:0;while(1){g=0;while(1){o=K[b+k|0];p=K[b+1|0];u=K[b+j|0];n=fc-16|0;fc=n;h=!l;c:{if(h)break c;Df(l,n+12|0,n+8|0,n+4|0);if(J[n+4>>2]!=32|(g|0)<0|((i|0)<0|J[n+12>>2]<=(g|0)))break c;if(J[n+8>>2]<=(i|0))break c;h=h?-1:J[l+12>>2];J[((P(h,i)<<2)+(l?J[l+40>>2]:0)|0)+(g<<2)>>2]=p<<16|o<<24|u<<8}fc=n+16|0;b=b+3|0;g=g+1|0;if((g|0)!=(d|0))continue;break}i=i+1|0;if((i| +0)!=(e|0))continue;break}}b=0;z=Q(O[a+8>>3]);d=!K[a+1|0];e=K[a+3|0]?10:-1;n=vc(112);J[n+52>>2]=0;J[n+56>>2]=0;J[n+100>>2]=0;J[n+104>>2]=0;J[n+96>>2]=e;H[n+88|0]=(e|0)>=0;J[n+16>>2]=0;J[n+20>>2]=-1;H[n+13|0]=!d;H[n+12|0]=d;J[n+8>>2]=0;J[n+4>>2]=0;d=n+40|0;J[d>>2]=0;J[d+4>>2]=0;J[n+24>>2]=n+28;J[n+28>>2]=0;J[n+32>>2]=0;e=n+80|0;J[e>>2]=0;J[e+4>>2]=0;J[n+36>>2]=d;J[n+60>>2]=0;J[n+64>>2]=0;J[n+68>>2]=0;J[n+72>>2]=0;J[n+108>>2]=0;J[n+76>>2]=e;J[n+92>>2]=0;d=0;E=+z;d:{if(E<.4|E>.98)break d;g=0;e=kd(1,112); +if(e){J[e+8>>2]=0;J[e+4>>2]=1;ta=e,ua=jo(0),J[ta+28>>2]=ua;i=kd(1,16);e:{if(!i)break e;J[i+4>>2]=20;h=kd(20,4);J[i+8>>2]=h;if(!h)break e;ta=i,ua=Kq(20),J[ta+12>>2]=ua;g=i}J[e+68>>2]=g;ta=e,ua=cl(0),J[ta+72>>2]=ua;ta=e,ua=cl(0),J[ta+76>>2]=ua;ta=e,ua=jo(0),J[ta+84>>2]=ua;ta=e,ua=jo(0),J[ta+48>>2]=ua;ta=e,ua=ts(0),J[ta+88>>2]=ua;ta=e,ua=ts(0),J[ta+92>>2]=ua;ta=e,ua=jo(0),J[ta+96>>2]=ua;ta=e,ua=jo(0),J[ta+100>>2]=ua;ta=e,ua=ts(0),J[ta+104>>2]=ua}else e=0;if(!e)break d;N[e+44>>2]=.5;N[e+40>>2]=z;J[e+ +16>>2]=9999;J[e+12>>2]=9999;d=kd(1,12);if(d)f:{g=kd(5507,4);J[d+8>>2]=g;if(!g){uc(d);d=0;break f}J[d+4>>2]=4;J[d>>2]=5507}else d=0;J[e+64>>2]=0;J[e+80>>2]=d;d=e}J[n>>2]=d;d=el(l,3);J[c+68>>2]=d;Fd(c+72|0);if(!d){IE(n);break a}J[c+64>>2]=0;b=J[c+68>>2];d=J[b+8>>2];g:{if(d>>>0>=2){J[c+48>>2]=0;h:{if(d>>>0>=9){d=0;i=0;k=fc-16|0;fc=k;e=!b;i:{if(e|((e?-1:J[b+8>>2])|0)!=32)break i;Df(b,k+12|0,k+8|0,0);g=b?J[b+40>>2]:0;h=b?J[b+12>>2]:-1;e=xh(J[k+12>>2],J[k+8>>2],8);if(!e)break i;l=h;if(!(!e|!b|(b|0)==(e| +0))){J[e+20>>2]=J[b+20>>2];J[e+24>>2]=J[b+24>>2]}m=e?J[e+40>>2]:0;j=e?J[e+12>>2]:-1;b=J[k+8>>2];j:{if((b|0)<=0)break j;h=J[k+12>>2];if((h|0)<=0)break j;while(1){if((h|0)>0){o=m+(P(i,j)<<2)|0;b=g+(P(i,l)<<2)|0;d=0;while(1){H[d+o^3]=L[b+2>>1];b=b+4|0;d=d+1|0;h=J[k+12>>2];if((d|0)<(h|0))continue;break}b=J[k+8>>2]}i=i+1|0;if((i|0)<(b|0))continue;break}}d=e}fc=k+16|0;b=d;J[c+48>>2]=b;if(b)break h;Fd(c+72|0);IE(n);break b}if(b)J[b+16>>2]=J[b+16>>2]+1;J[c+48>>2]=b}k:{if(K[a+4|0]){j=J[a+16>>2];e=0;l=fc-16| +0;fc=l;d=!b;l:{if(d|(((d?-1:J[b+8>>2])|0)!=8|j>>>0>256))break l;Df(b,l+12|0,l+8|0,0);p=J[l+8>>2];d=J[l+12>>2];g=b?J[b+40>>2]:0;i=b?J[b+12>>2]:-1;k=d<<1;o=(k+3|0)/4|0;m=kd(o<<1,4);if(!m)break l;d=xh(k,p<<1,1);if(!d)break l;h=g;g=i;u=p-1|0;if(!(!d|!b|(b|0)==(d|0))){J[d+20>>2]=J[b+20>>2];J[d+24>>2]=J[b+24>>2]}bv(d,Q(2),Q(2));b=d?J[d+12>>2]:-1;i=d?J[d+40>>2]:0;if((p|0)>=2){p=b<<1;t=m+(o<<2)|0;while(1){o9(m,o,h+(P(e,g)<<2)|0,J[l+12>>2],g,0);r=i+(P(e,p)<<2)|0;dl(r,k,m,8,j);dl(r+(b<<2)|0,k,t,8,j);e=e+1| +0;if((u|0)!=(e|0))continue;break}}o9(m,o,h+(P(g,u)<<2)|0,J[l+12>>2],g,1);e=i+(P(b,u)<<3)|0;dl(e,k,m,8,j);dl(e+(b<<2)|0,k,m+(o<<2)|0,8,j);uc(m);e=d}fc=l+16|0;J[c+64>>2]=e;break k}d=J[a+16>>2];if(K[a+5|0]){g=0;p=fc-16|0;fc=p;e=!b;m:{if(e|(((e?-1:J[b+8>>2])|0)!=8|d>>>0>256))break m;Df(b,p+12|0,p+8|0,0);m=J[p+8>>2];e=J[p+12>>2];i=b?J[b+40>>2]:0;h=b?J[b+12>>2]:-1;k=e<<2;o=(k|3)/4|0;j=kd(o<<2,4);if(!j)break m;e=xh(k,m<<2,1);if(!e)break m;l=i;i=h;t=m-1|0;if(!(!e|!b|(b|0)==(e|0))){J[e+20>>2]=J[b+20>>2];J[e+ +24>>2]=J[b+24>>2]}bv(e,Q(4),Q(4));b=e?J[e+12>>2]:-1;h=e?J[e+40>>2]:0;n:{if((m|0)<=1){x=P(o,3);m=P(b,3);s=o<<1;u=b<<1;break n}m=P(b,3);s=o<<1;u=b<<1;D=b<<2;y=j+(o<<3)|0;q=j+(o<<2)|0;x=P(o,3);A=j+(x<<2)|0;while(1){n9(j,o,l+(P(g,i)<<2)|0,J[p+12>>2],i,0);r=h+(P(g,D)<<2)|0;dl(r,k,j,8,d);dl(r+D|0,k,q,8,d);dl(r+(u<<2)|0,k,y,8,d);dl(r+(m<<2)|0,k,A,8,d);g=g+1|0;if((t|0)!=(g|0))continue;break}}n9(j,o,l+(P(i,t)<<2)|0,J[p+12>>2],i,1);g=h+(P(b,t)<<4)|0;dl(g,k,j,8,d);dl(g+(b<<2)|0,k,j+(o<<2)|0,8,d);dl(g+(u<<2)| +0,k,j+(s<<2)|0,8,d);dl(g+(m<<2)|0,k,j+(x<<2)|0,8,d);uc(j);g=e}fc=p+16|0;J[c+64>>2]=g;break k}g=0;k=fc-16|0;fc=k;o:{if(!b)break o;Df(b,k+8|0,k+4|0,k+12|0);p:{e=J[k+12>>2];switch(e-4|0){case 0:case 4:break p;default:break o}}if((e|0)==8&d>>>0>=257|((e|0)==4&d>>>0>=17|(d|0)<0))break o;i=xh(J[k+8>>2],J[k+4>>2],1);if(!i)break o;if(!(!i|!b|(b|0)==(i|0))){J[i+20>>2]=J[b+20>>2];J[i+24>>2]=J[b+24>>2]}h=i?J[i+40>>2]:0;l=i?J[i+12>>2]:-1;j=el(b,1);J[k>>2]=j;m=j?J[j+40>>2]:0;j=j?J[j+12>>2]:-1;e=J[k+12>>2];if(!(!(b? +J[b+36>>2]:0)|(e|0)!=4)){e=8;J[k+12>>2]=8;d=d<<4}b=J[k+8>>2];o=J[k+4>>2];if((o|0)>0)while(1){dl(h+(P(g,l)<<2)|0,b,m+(P(g,j)<<2)|0,e,d);g=g+1|0;if((o|0)!=(g|0))continue;break}Fd(k);g=i}fc=k+16|0;J[c+64>>2]=g}Fd(c+48|0);break g}if(b)J[b+16>>2]=J[b+16>>2]+1;J[c+64>>2]=b}d=K[a+43|0];b=d<<24>>24<0;if(b?J[a+36>>2]:d)B9(b?J[a+32>>2]:a+32|0,J[c+64>>2]);q:{if(!K[a+6|0])break q;j=J[c+68>>2];if(M[j+8>>2]<2)break q;A=J[c+64>>2];J[c+48>>2]=A;d=oy(A,227260);J[c+16>>2]=d;b=oy(A,227533);J[c+32>>2]=b;i=0;v=fc-16| +0;fc=v;e=!b;r:{if(e)break r;g=!d;if(g|((e?-1:J[b+8>>2])|0)!=1|((g?-1:J[d+8>>2])|0)!=1)break r;i=Ff(0,b);if(!i){i=0;break r}m=cv(b);J[v+8>>2]=m;if(!m)break r;x=i?J[i+4>>2]:-1;s=d?J[d+4>>2]:-1;D=i?J[i+40>>2]:0;y=d?J[d+40>>2]:0;k=i?J[i+12>>2]:-1;o=d?J[d+12>>2]:-1;qp(d,0);while(1){s:{Ff(m,i);h=0;l=(s|0)>(x|0)?x:s;e=(k|0)<(o|0)?k:o;t:{if((l|0)<=0|(e|0)<=0)break t;q=e-1|0;w=0-k<<2;while(1){p=D+(P(h,k)<<2)|0;u=y+(P(h,o)<<2)|0;g=0;u:{if(h){U=p+w|0;while(1){b=g<<2;t=b+p|0;r=b+U|0;d=J[r>>2];d=J[t>>2]|d>>>1| +d<<1|d;d=g?J[r-4>>2]<<31|d:d;d=(g|0)<(q|0)?J[r+4>>2]>>>31|d:d;r=J[b+u>>2];if(g)d=J[t-4>>2]<<31|d;b=d&r;d=b;if(b+1>>>0>=2)while(1){d=b;b=r&(b|(b<<1|b>>>1));if((b|0)!=(d|0))continue;break}J[t>>2]=d;g=g+1|0;if((e|0)!=(g|0))continue;break}break u}while(1){b=g<<2;t=J[b+u>>2];r=b+p|0;b=J[r>>2];if(g)b=b|J[r-4>>2]<<31;b=b&t;d=b;if(b+1>>>0>=2)while(1){d=b;b=t&(b|(b<<1|b>>>1));if((b|0)!=(d|0))continue;break}J[r>>2]=d;g=g+1|0;if((e|0)!=(g|0))continue;break}}h=h+1|0;if((l|0)!=(h|0))continue;break}if((l|0)<=0| +(e|0)<=0)break t;e=e-1|0;q=l-1|0;h=q;while(1){l=D+(P(h,k)<<2)|0;p=y+(P(h,o)<<2)|0;g=e;v:{if((h|0)<(q|0)){w=l+(k<<2)|0;while(1){b=g<<2;u=b+l|0;t=b+w|0;d=J[t>>2];d=J[u>>2]|d>>>1|d<<1|d;d=(g|0)>0?J[t-4>>2]<<31|d:d;r=J[b+p>>2];if((e|0)>(g|0))d=(J[t+4>>2]|J[u+4>>2])>>>31|d;b=d&r;d=b;if(b+1>>>0>=2)while(1){d=b;b=r&(b|(b<<1|b>>>1));if((b|0)!=(d|0))continue;break}J[u>>2]=d;b=(g|0)>0;g=g-1|0;if(b)continue;break}break v}while(1){b=g<<2;u=J[b+p>>2];t=b+l|0;b=J[t>>2];if((e|0)>(g|0))b=b|J[t+4>>2]>>>31;b=b&u;d= +b;if(b+1>>>0>=2)while(1){d=b;b=u&(b|(b<<1|b>>>1));if((b|0)!=(d|0))continue;break}J[t>>2]=d;b=(g|0)>0;g=g-1|0;if(b)continue;break}}b=(h|0)>0;h=h-1|0;if(b)continue;break}}b=0;e=fc-48|0;fc=e;w=v+12|0;w:{if(!w)break w;J[w>>2]=0;d=!i;if(d|!m)break w;Df(i,e+44|0,e+40|0,e+36|0);Df(m,e+32|0,e+28|0,e+24|0);if(J[e+44>>2]!=J[e+32>>2]|J[e+40>>2]!=J[e+28>>2])break w;x:{y:{d=d?0:J[i+36>>2];g=m?J[m+36>>2]:0;if(!(d|g)){b=J[e+36>>2];d=J[e+24>>2];if((b|0)==(d|0))break y;if((b|0)==32|(d|0)==32)break w;break y}z:{if(!(!d| +!g)){if(J[e+36>>2]!=J[e+24>>2])break z;l=0;q=fc-32|0;fc=q;A:{if(!w)break A;J[w>>2]=0;g=!i;if(g)break A;h=!m;if(h)break A;d=0;B:{C:{if(g|h)break C;g=1;if((i|0)==(m|0))break B;if(J[i>>2]!=J[m>>2]|J[i+4>>2]!=J[m+4>>2])break C;d=J[i+8>>2]==J[m+8>>2]}g=d}if(!g)break A;h=i?J[i+36>>2]:0;p=m?J[m+36>>2]:0;if(!h|!p)break A;d=i?J[i+8>>2]:-1;if(d>>>0>8|!(1<>2]:0;D:{if((g|0)!=((p?J[p+12>>2]:0)|0))break D;if((g|0)<=0){l=1;break D}while(1){Lq(h,b,q+28|0,q+20|0,q+12|0);Lq(p,b,q+24|0,q+ +16|0,q+8|0);l=0;if(J[q+28>>2]!=J[q+24>>2]|J[q+20>>2]!=J[q+16>>2]|J[q+12>>2]!=J[q+8>>2])break D;l=1;b=b+1|0;if((g|0)!=(b|0))continue;break}}g=i?J[i+4>>2]:-1;b=i?J[i>>2]:-1;E:{F:{if(!l){if((g|0)<=0|(b|0)<=0)break F;d=0;while(1){l=0;while(1){y9(i,l,d,q+4|0);y9(m,l,d,q);Lq(h,J[q+4>>2],q+28|0,q+20|0,q+12|0);Lq(p,J[q>>2],q+24|0,q+16|0,q+8|0);if(J[q+28>>2]!=J[q+24>>2]|J[q+20>>2]!=J[q+16>>2]|J[q+12>>2]!=J[q+8>>2])break A;l=l+1|0;if((b|0)!=(l|0))continue;break}d=d+1|0;if((g|0)!=(d|0))continue;break}break F}p= +i?J[i+12>>2]:-1;u=m?J[m+12>>2]:-1;t=i?J[i+40>>2]:0;r=m?J[m+40>>2]:0;if((g|0)<=0)break F;b=P(b,d);U=(b|0)/32|0;d=b&31;V=-1<<32-d;if((b|0)>=32){l=0;if(!d)while(1){h=r+(P(l,u)<<2)|0;b=t+(P(l,p)<<2)|0;d=0;while(1){if(J[b>>2]!=J[h>>2])break A;h=h+4|0;b=b+4|0;d=d+1|0;if((U|0)!=(d|0))continue;break}l=l+1|0;if((g|0)!=(l|0))continue;break F}while(1){h=r+(P(l,u)<<2)|0;b=t+(P(l,p)<<2)|0;d=0;while(1){if(J[b>>2]!=J[h>>2])break A;h=h+4|0;b=b+4|0;d=d+1|0;if((U|0)!=(d|0))continue;break}if(V&(J[h>>2]^J[b>>2]))break A; +l=l+1|0;if((g|0)!=(l|0))continue;break}break F}if(!d)break F;h=0;while(1){if(V&(J[r+(P(h,u)<<2)>>2]^J[t+(P(h,p)<<2)>>2]))break E;h=h+1|0;if((g|0)!=(h|0))continue;break}}J[w>>2]=1}}fc=q+32|0;break w}if(!(g|!d)){m9(i,e+20|0);b=J[e+24>>2];if((b|0)<9?J[e+20>>2]:0)break w;G:{if((b|0)<=7){b=DE(m);break G}if(m)J[m+16>>2]=J[m+16>>2]+1;b=m}J[e+12>>2]=b;if(J[e+24>>2]<=8){ta=e,ua=el(i,1),J[ta+16>>2]=ua;break x}ta=e,ua=el(i,2),J[ta+16>>2]=ua;break x}if(!g|d)break y;m9(m,e+20|0);b=J[e+36>>2];if((b|0)<9?J[e+20>> +2]:0)break w;H:{if((b|0)<=7){b=DE(i);break H}if(i)J[i+16>>2]=J[i+16>>2]+1;b=i}J[e+16>>2]=b;if(J[e+36>>2]<=8){ta=e,ua=el(m,1),J[ta+12>>2]=ua;break x}ta=e,ua=el(m,2),J[ta+12>>2]=ua;break x}ta=e,ua=el(i,2),J[ta+16>>2]=ua;ta=e,ua=el(m,2),J[ta+12>>2]=ua;break x}if(i)J[i+16>>2]=J[i+16>>2]+1;J[e+16>>2]=i;if(m)J[m+16>>2]=J[m+16>>2]+1;J[e+12>>2]=m}b=J[e+16>>2];if(b)b=J[b+8>>2];else b=-1;J[e+36>>2]=b;b=J[e+12>>2];if(b)b=J[b+8>>2];else b=-1;J[e+24>>2]=b;d=J[e+36>>2];I:{if((d|0)!=(b|0)){if(!((b|0)!=16&(d|0)!= +16)){Fd(e+16|0);Fd(e+12|0);break w}ta=e,ua=C9(J[e+16>>2]),J[ta+8>>2]=ua;b=C9(J[e+12>>2]);J[e+4>>2]=b;if(b?J[e+8>>2]:0)break I;Fd(e+16|0);Fd(e+12|0);Fd(e+8|0);Fd(e+4|0);break w}b=J[e+16>>2];if(b)J[b+16>>2]=J[b+16>>2]+1;J[e+8>>2]=b;b=J[e+12>>2];if(b)J[b+16>>2]=J[b+16>>2]+1;J[e+4>>2]=b}Fd(e+16|0);Fd(e+12|0);b=J[e+8>>2];if(b)b=J[b+8>>2];else b=-1;J[e+36>>2]=b;b=J[e+4>>2];if(b)b=J[b+8>>2];else b=-1;J[e+24>>2]=b;b=J[e+8>>2];if(b)d=J[b+12>>2];else d=-1;b=J[e+4>>2];if(b)p=J[b+12>>2];else p=-1;b=J[e+8>>2]; +if(b)u=J[b+40>>2];else u=0;b=J[e+4>>2];if(b)t=J[b+40>>2];else t=0;J:{K:{b=J[e+36>>2];L:{if((b|0)==32){r=J[e+40>>2];if((r|0)<=0|(d|0)<=0)break L;g=0;while(1){h=t+(P(g,p)<<2)|0;b=u+(P(d,g)<<2)|0;l=0;M:{while(1){if((J[h>>2]^J[b>>2])>>>0>255)break M;h=h+4|0;b=b+4|0;l=l+1|0;if((d|0)!=(l|0))continue;break}g=g+1|0;if((r|0)!=(g|0))continue;break L}break}Fd(e+8|0);Fd(e+4|0);break w}r=J[e+40>>2];if((r|0)<=0)break L;b=P(b,J[e+44>>2]);q=(b|0)/32|0;h=b&31;U=-1<<32-h;if((b|0)>=32){g=0;if(!h)while(1){h=t+(P(g,p)<< +2)|0;b=u+(P(d,g)<<2)|0;l=0;while(1){if(J[b>>2]!=J[h>>2])break K;h=h+4|0;b=b+4|0;l=l+1|0;if((q|0)!=(l|0))continue;break}g=g+1|0;if((r|0)!=(g|0))continue;break L}while(1){h=t+(P(g,p)<<2)|0;b=u+(P(d,g)<<2)|0;l=0;while(1){if(J[b>>2]!=J[h>>2])break K;h=h+4|0;b=b+4|0;l=l+1|0;if((q|0)!=(l|0))continue;break}if(U&(J[h>>2]^J[b>>2]))break J;g=g+1|0;if((r|0)!=(g|0))continue;break}break L}if(!h)break L;h=0;while(1){if(U&(J[t+(P(h,p)<<2)>>2]^J[u+(P(d,h)<<2)>>2]))break J;h=h+1|0;if((r|0)!=(h|0))continue;break}}Fd(e+ +8|0);Fd(e+4|0);J[w>>2]=1;break w}Fd(e+8|0);Fd(e+4|0);break w}Fd(e+8|0);Fd(e+4|0)}fc=e+48|0;if(J[v+12>>2]==1)break s;F=F+1|0;if((F|0)!=40)continue}break}Fd(v+8|0)}fc=v+16|0;J[c+92>>2]=i;b=oy(i,227789);J[c+88>>2]=b;d=xh(J[j>>2],J[j+4>>2],1);J[c+84>>2]=d;if(!(!d|!j|(d|0)==(j|0))){J[d+20>>2]=J[j+20>>2];J[d+24>>2]=J[j+24>>2]}t9(J[d+40>>2],J[d+12>>2],J[b+40>>2],J[b>>2],J[b+4>>2],J[b+12>>2],4);Fd(c+88|0);Fd(c+92|0);Fd(c+32|0);Fd(c+16|0);e=fc-16|0;fc=e;g=!A;N:{if(g|!d|((g?-1:J[A+8>>2])|0)!=((d?J[d+8>>2]: +-1)|0))break N;Df(A,e+12|0,e+8|0,0);if(g){Cf(Ff(0,A),0,0,J[e+12>>2],J[e+8>>2],4,d,0,0);break N}Cf(A,0,0,J[e+12>>2],J[e+8>>2],4,d,0,0)}fc=e+16|0;g=J[692579];if(!g){g=av();J[692579]=g}Bk(d,c+80|0,g);O:{if(J[c+80>>2]<=99){Fd(c+84|0);break O}Bk(A,c+80|0,J[692579]);if(J[c+80>>2]<=99)Fd(c+48|0);P:{Q:{R:{S:{b=J[j+8>>2];switch(b-1|0){case 1:case 2:case 3:case 4:case 5:case 6:break Q;case 0:case 7:break R;default:break S}}if((b|0)!=32)break Q}if(j)J[j+16>>2]=J[j+16>>2]+1;d=j;break P}if(b>>>0>=9){d=D9(j);break P}d= +DE(j)}J[c+76>>2]=d;b=J[c+84>>2];T:{U:{e=J[d+8>>2];if((e|0)!=8){if((e|0)!=32)break U;b=D9(b);break T}b=DE(b);break T}if(b)J[b+16>>2]=J[b+16>>2]+1}Fd(c+84|0);e=!b;if(!(e|!d))Cf(b,0,0,e?-1:J[b>>2],b?J[b+4>>2]:-1,28,d,0,0);Fd(c+76|0);if(!b)break O;d=J[a+20>>2];e=H[a+31|0];J[c+8>>2]=226508;J[c+4>>2]=0;J[c>>2]=(e|0)<0?d:a+20|0;d=fc-16|0;fc=d;J[d+12>>2]=c;PS(c+48|0,225969,c);fc=d+16|0;B9(J[c+48>>2],b);uc(J[c+48>>2])}if(J[c+64>>2])break q;b=1;break a}Fd(c+68|0);V:{if(!K[a+2|0]){J[c+16>>2]=0;p=!K[a+1|0];u= +K[a|0];b=fc-72352|0;fc=b;W:{a=J[c+64>>2];if(!a){d=0;break W}qp(a,0);e=p?16777216:0;d=b+132|0;nO(d);J[b+120>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+88>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;g=b- -64|0;J[g>>2]=0;J[g+4>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;H[b+16|0]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+124>>2]=1;J[b+128>>2]=19;J[b+96>>2]=0;J[b+100>>2]=48;j=J[a>>2]; +g=j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24);k=J[a+4>>2];i=k;h=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=J[a+20>>2];l=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=J[a+24>>2];m=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=J[a+40>>2];J[699344]=0;ma(1598,d|0,i|0,j|0,k|0,u|0);i=J[699344];J[699344]=0;X:{Y:{if((i|0)==1)break Y;J[699344]=0;$(1599,d|0);i=J[699344];J[699344]=0;if((i|0)==1)break Y;J[699344]=0;i=J[d+20>>2];d=J[d+12>>2];j=i+P(J[d+4>>2]-J[d>>2]>>2,20480)|0;d=J[699344];J[699344]=0;if((d|0)==1){d=Z()|0; +break X}J[b+84>>2]=1;J[b+56>>2]=1;J[b+60>>2]=38;J[b+48>>2]=1;J[b+20>>2]=2;J[b+88>>2]=j+26;d=J[a>>2];k=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a=J[a+4>>2];o=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);Z:{if(!p){i=j+67|0;d=Dc(i);a=0;break Z}i=j+102|0;d=Dc(i);H[d+9|0]=e;H[d+10|0]=e>>>8;H[d+11|0]=e>>>16;H[d+12|0]=e>>>24;H[d+8|0]=1;H[d|0]=151;H[d+1|0]=74;H[d+2|0]=66;H[d+3|0]=50;H[d+4|0]=13;H[d+5|0]=10;H[d+6|0]=26;H[d+7|0]=10;a=13}J[699344]=0;da(1594,b+96|0,a+d|0);e=J[699344];J[699344]=0;_:{if((e|0)==1)break _; +e=a+(M[b+124>>2]<256?11:12)|0;a=J[b+96>>2];e=e+(J[b+116>>2]-J[b+112>>2]>>2<<(a>>>0>=257?a>>>0<65537?1:2:0))|0;a=e+d|0;H[a+17|0]=0;H[a+18|0]=0;H[a+16|0]=1;H[a+12|0]=m;H[a+13|0]=m>>>8;H[a+14|0]=m>>>16;H[a+15|0]=m>>>24;H[a+8|0]=l;H[a+9|0]=l>>>8;H[a+10|0]=l>>>16;H[a+11|0]=l>>>24;H[a+4|0]=h;H[a+5|0]=h>>>8;H[a+6|0]=h>>>16;H[a+7|0]=h>>>24;H[a|0]=g;H[a+1|0]=g>>>8;H[a+2|0]=g>>>16;H[a+3|0]=g>>>24;J[699344]=0;a=e+19|0;da(1594,b+56|0,a+d|0);e=J[699344];J[699344]=0;if((e|0)==1)break _;e=a+(M[b+84>>2]<256?11:12)| +0;a=J[b+56>>2];h=e+(J[b+76>>2]-J[b+72>>2]>>2<<(a>>>0>=257?a>>>0<65537?1:2:0))|0;a=h+d|0;H[a+4|0]=o;H[a+5|0]=o>>>8;H[a+6|0]=o>>>16;H[a+7|0]=o>>>24;H[a|0]=k;H[a+1|0]=k>>>8;H[a+2|0]=k>>>16;H[a+3|0]=k>>>24;e=J[b+12>>2];g=J[b+8>>2];H[a+8|0]=g;H[a+9|0]=g>>>8;H[a+10|0]=g>>>16;H[a+11|0]=g>>>24;H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=K[b+16|0];H[a+18|0]=3;H[a+19|0]=255;H[a+20|0]=253;H[a+21|0]=255;H[a+22|0]=2;H[a+23|0]=254;H[a+24|0]=254;H[a+25|0]=254;H[a+17|0]=u?8:0;J[699344]= +0;a=h+26|0;da(1595,b+132|0,a+d|0);e=J[699344];J[699344]=0;if((e|0)==1)break _;a=a+j|0;if(p){J[699344]=0;J[b+24>>2]=49;e=b+20|0;da(1594,e|0,a+d|0);g=J[699344];J[699344]=0;if((g|0)==1)break _;J[b+24>>2]=51;J[699344]=0;g=a+(M[b+48>>2]<256?11:12)|0;a=J[b+20>>2];a=g+(J[b+40>>2]-J[b+36>>2]>>2<<(a>>>0>=257?a>>>0<65537?1:2:0))|0;da(1594,e|0,a+d|0);e=J[699344];J[699344]=0;if((e|0)==1)break _;e=a+(M[b+48>>2]<256?11:12)|0;a=J[b+20>>2];a=e+(J[b+40>>2]-J[b+36>>2]>>2<<(a>>>0>=257?a>>>0<65537?1:2:0))|0}if((a|0)!= +(i|0)){J[699344]=0;ka(495);a=J[699344];J[699344]=0;if((a|0)==1)break _;B()}J[699344]=0;ty(b+132|0);a=J[699344];J[699344]=0;if((a|0)==1)break _;J[c+16>>2]=i;a=J[b+36>>2];if(a){J[b+40>>2]=a;uc(a)}a=J[b+72>>2];if(a){J[b+76>>2]=a;uc(a)}a=J[b+112>>2];if(!a)break W;J[b+116>>2]=a;uc(a);break W}d=Z()|0;a=J[b+36>>2];if(!a)break X;J[b+40>>2]=a;uc(a);break X}d=Z()|0}a=J[b+72>>2];if(a){J[b+76>>2]=a;uc(a)}a=J[b+112>>2];if(a){J[b+116>>2]=a;uc(a)}ba(d|0);B()}fc=b+72352|0;a=c+48|0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>> +2]=0;J[a>>2]=415588;J[699344]=0;b=aa(17,a|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break V;if(b){J[699344]=0;ga(42,a|0,d|0,J[c+16>>2])|0;e=J[699344];J[699344]=0;if((e|0)==1)break V;J[699344]=0;$(21,a|0);e=J[699344];J[699344]=0;if((e|0)==1)break V}J[699344]=0;$(1584,c- -64|0);e=J[699344];J[699344]=0;if((e|0)==1)break V;if(d)uc(d);J[699344]=0;$(1585,n|0);d=J[699344];J[699344]=0;if((d|0)==1)break V;De(a);break a}ja=fc-16|0;fc=ja;j=J[c+64>>2];if(j)J[j+16>>2]=J[j+16>>2]+1;J[ja+12>>2]=j;g=J[n>>2];$:{aa:{ba:{ca:{da:{ea:{if(!K[n+ +88|0])break ea;d=J[n+104>>2];if((d|0)!=J[n+108>>2]){J[d>>2]=J[g+24>>2];J[n+104>>2]=d+4;break ea}h=n+100|0;i=J[h>>2];b=d-i|0;l=b>>2;e=l+1|0;if(e>>>0>=1073741824)break da;h=b>>1;h=b>>>0>=2147483644?1073741823:e>>>0>>0?h:e;if(h){if(h>>>0>=1073741824)break ca;b=vc(h<<2)}else b=0;e=b+(l<<2)|0;J[e>>2]=J[g+24>>2];l=e+4|0;if((d|0)!=(i|0))while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(i|0))continue;break}J[n+108>>2]=b+(h<<2);J[n+104>>2]=l;J[n+100>>2]=e;if(!i)break ea;uc(i);g=J[n>>2]}U=fc-16|0;fc=U; +fa:{if(!g)break fa;b=!j;if(b|((b?-1:J[j+8>>2])|0)!=1)break fa;J[g+52>>2]=j?J[j>>2]:-1;J[g+56>>2]=j?J[j+4>>2]:-1;d=J[g+8>>2];u=J[g+12>>2];t=J[g+16>>2];V=U+8|0;k=fc-32|0;fc=k;b=1;X=U+12|0;ga:{if(!X)break ga;J[X>>2]=0;if(!V)break ga;J[V>>2]=0;if(!j|d>>>0>2)break ga;py(j,k+28|0);if(J[k+28>>2]){b=0;ta=X,ua=Kq(0),J[ta>>2]=ua;ta=V,ua=cl(0),J[ta>>2]=ua;break ga}ha:{ia:switch(d|0){case 0:e=VN(j,k+8|0,8);J[k+24>>2]=e;break ha;case 1:b=oy(j,226030);J[k+20>>2]=b;d=b;b=k+4|0;e=VN(d,b,8);J[k+24>>2]=e;ta=k,ua=h9(J[k+ +4>>2],j),J[ta+8>>2]=ua;Fd(k+20|0);Ak(b);break ha;default:break ia}b=j?J[j+20>>2]:0;ja:{if((b|0)<=200){if(j)J[j+16>>2]=J[j+16>>2]+1;b=j;J[k+20>>2]=b;i=1;break ja}if(b>>>0<=400){b=TN(j,1,0,0,0);J[k+20>>2]=b;i=2;break ja}b=TN(j,1,1,0,0);J[k+20>>2]=b;i=4}l=0;d=fc-96|0;fc=d;ka:{if(!b){b=0;break ka}h=cl(8);J[d+12>>2]=h;e=Ff(0,b);J[d+20>>2]=e;b=1;ni(h,e,1);p=jo(7);J[d+24>>2]=p;m=Ff(0,e);e=UN(m,4);J[d+28>>2]=e;e=e?J[e>>2]:0;J[d+32>>2]=e;mi(p,Q(e|0));ni(h,m,1);Fd(d+20|0);J[d+20>>2]=m;mp(d+28|0);m=1E6;while(1){o= +oy(J[d+20>>2],226570);J[d+16>>2]=o;e=UN(o,4);J[d+28>>2]=e;r=(d+32|0)+(b<<2)|0;e=e?J[e>>2]:0;J[r>>2]=e;mi(p,Q(e|0));r=J[r-4>>2];ni(h,o,1);x=d+20|0;Fd(x);J[d+20>>2]=o;o=r-e|0;e=(o|0)<(m|0);m=e?o:m;l=e?b:l;e=(b|0)!=7;mp(d+28|0);b=b+1|0;if(e)continue;break}Fd(x);b=lg(h,l);J[d+16>>2]=b;e=pj(1,l,0,l-1|0);J[d+8>>2]=e;b=gm(0,b,e);Gj(d+8|0);Fd(d+16|0);Ak(d+12|0);Qi(d+24|0)}fc=d+96|0;J[k+16>>2]=b;b=A9(b,i);J[k+12>>2]=b;d=b;b=k+4|0;e=VN(d,b,4);J[k+24>>2]=e;ta=k,ua=h9(J[k+4>>2],j),J[ta+8>>2]=ua;Ak(b);Fd(k+20| +0);Fd(k+16|0);Fd(k+12|0)}b=0;d=0;m=0;l=fc-16|0;fc=l;i=J[k+8>>2];if(i){la:{if(!i)break la;d=J[i+16>>2];if(!d)break la;ma:{if(d){J[d+8>>2]=J[d+8>>2]+1;break ma}d=0}m=d}J[l+12>>2]=m;p=g9(m,u,t);J[l+8>>2]=p;mp(l+12|0);m=0;d=0;o=fc-16|0;fc=o;na:{if(!i)break na;h=!p;if(h)break na;h=h?0:J[p+4>>2];if((h|0)>0)while(1){Hj(p,m,o+12|0);d=(J[o+12>>2]==1)+d|0;m=m+1|0;if((h|0)!=(m|0))continue;break}if((d|0)==(h|0)){oa:{if(i){J[i+8>>2]=J[i+8>>2]+1;d=i;break oa}d=0}break na}d=cl(d);if((h|0)<=0)break na;m=0;while(1){Hj(p, +m,o+12|0);if(J[o+12>>2]){r=lg(i,m);x=u9(i,m,2);ni(d,r,0);Mq(d,x)}m=m+1|0;if((h|0)!=(m|0))continue;break}}fc=o+16|0;Qi(l+8|0)}fc=l+16|0;J[V>>2]=d;l=0;o=fc-16|0;fc=o;if(e){m=g9(e,u,t);J[o+12>>2]=m;d=0;h=fc-16|0;fc=h;pa:{if(!e)break pa;i=!m;if(i)break pa;i=i?0:J[m+4>>2];if((i|0)>0)while(1){Hj(m,d,h+12|0);l=(J[h+12>>2]==1)+l|0;d=d+1|0;if((i|0)!=(d|0))continue;break}if((i|0)==(l|0)){qa:{if(e){J[e+8>>2]=J[e+8>>2]+1;break qa}e=0}l=e;break pa}l=Kq(l);if((i|0)<=0)break pa;d=0;while(1){Hj(m,d,h+12|0);if(J[h+ +12>>2])xE(l,Jq(e,d));d=d+1|0;if((i|0)!=(d|0))continue;break}}fc=h+16|0;Qi(o+12|0)}fc=o+16|0;J[X>>2]=l;Ak(k+8|0);mp(k+24|0)}fc=k+32|0;if(b)break fa;D=J[U+12>>2];b=J[U+8>>2];ra:{if(!g|!j)break ra;d=!D;if(!(d|!b|!(d?0:J[D>>2]))){sa:{if(!J[g+4>>2]){l=b;x=0;h=fc-80|0;fc=h;s=1;ta:{if(!g|!D)break ta;b=!b;if(b)break ta;v=J[g+20>>2];d=J[g+32>>2];e=d;d=(d|0)/2|0;d=pj(e,e,d,d);J[h+12>>2]=d;k=b?0:J[l>>2];A=cl(k);J[h+24>>2]=A;ha=cl(k);J[h+20>>2]=ha;if((k|0)>0){s=0;while(1){b=lg(l,s);J[h+48>>2]=b;b=fO(b,6,6,6, +6);J[h+44>>2]=b;e=hm(0,b,d);J[h+40>>2]=e;ni(A,b,0);ni(ha,e,0);Fd(h+48|0);s=s+1|0;if((k|0)!=(s|0))continue;break}}d=0;r=fc-16|0;fc=r;b=!A;ua:{if(b)break ua;i=b?0:J[A>>2];if(!i)break ua;b=lg(A,0);J[r+12>>2]=b;b=b?J[b+8>>2]:-1;Fd(r+12|0);va:{e=b;switch(b-1|0){case 0:case 7:break va;default:break ua}}b=ts(i);if(!b)break ua;if(!J[692582]){m=v9();J[692582]=m;if(!m)break ua}if(!J[692583]){m=av();J[692583]=m;if(!m)break ua}wa:{if((i|0)<=0)break wa;if((e|0)==1)while(1){ta=r,ua=lg(A,x),J[ta+12>>2]=ua;d=J[r+ +12>>2];if(d)p=J[d+4>>2];else p=-1;d=J[r+12>>2];if(d)u=J[d+40>>2];else u=0;xa:{ya:{e=(p|0)<=0;d=J[r+12>>2];if(d)o=J[d+12>>2];else o=-1;if(e|(o|0)<=0)break ya;m=0;s=J[692582];y=J[692583];z=Q(0);C=Q(0);t=0;while(1){G=u+(P(m,o)<<2)|0;d=0;e=0;while(1){q=J[G+(d<<2)>>2];if(q){Y=q<<2&1020;w=J[Y+y>>2];ca=q>>>6&1020;F=J[ca+y>>2];W=q>>>14&1020;I=J[W+y>>2];ea=q>>>22&1020;S=J[ea+y>>2];q=d<<5;C=Q(Q(Q(Q(C+Q(J[s+Y>>2]+P(w,q|24)|0))+Q(J[s+ca>>2]+P(F,q|16)|0))+Q(J[s+W>>2]+P(I,q|8)|0))+Q(J[s+ea>>2]+P(q,S)|0));e=S+(I+ +(F+(e+w|0)|0)|0)|0}d=d+1|0;if((o|0)!=(d|0))continue;break}t=e+t|0;z=Q(z+Q(P(e,m)|0));m=m+1|0;if((p|0)!=(m|0))continue;break}if(!t)break ya;T=C;C=Q(t|0);jm(b,Q(T/C),Q(z/C));break xa}jm(b,Q(0),Q(0))}Fd(r+12|0);x=x+1|0;if((i|0)!=(x|0))continue;break wa}while(1){d=lg(A,x);J[r+12>>2]=d;o=d?J[d>>2]:-1;d=J[r+12>>2];if(d)p=J[d+4>>2];else p=-1;d=J[r+12>>2];if(d)u=J[d+40>>2];else u=0;d=J[r+12>>2];if(d)t=J[d+12>>2];else t=-1;za:{Aa:{if(!((p|0)<=0|(o|0)<=0)){F=o&-2;I=o&1;C=Q(0);m=0;z=Q(0);e=0;while(1){s=u+(P(m, +t)<<2)|0;d=0;y=0;if((o|0)!=1)while(1){S=d|1;w=K[S+s^3];q=K[d+s^3];e=w+(q+e|0)|0;C=Q(Q(C+Q(P(m,q)|0))+Q(P(m,w)|0));z=Q(Q(z+Q(P(d,q)|0))+Q(P(w,S)|0));d=d+2|0;y=y+2|0;if((F|0)!=(y|0))continue;break}if(I){s=K[d+s^3];e=s+e|0;C=Q(C+Q(P(m,s)|0));z=Q(z+Q(P(d,s)|0))}m=m+1|0;if((p|0)!=(m|0))continue;break}if(e)break Aa}jm(b,Q(0),Q(0));break za}T=z;z=Q(e|0);jm(b,Q(T/z),Q(C/z))}Fd(r+12|0);x=x+1|0;if((i|0)!=(x|0))continue;break}}d=b}fc=r+16|0;J[h+16>>2]=d;f9(J[g+88>>2],d);I=J[g+100>>2];S=J[g+96>>2];G=J[g+92>> +2];la=av();i=J[g+80>>2];Y=J[g+76>>2];y=J[g+72>>2];ca=J[g+68>>2];fa=N[g+36>>2];Ba:{if(fa==Q(1)){if((k|0)<=0)break Ba;z=Q(v|0);s=0;while(1){ta=h,ua=lg(A,s),J[ta+44>>2]=ua;ta=h,ua=lg(ha,s),J[ta+40>>2]=ua;op(d,s,h+68|0,h- -64|0);r=y?J[y>>2]:0;b=J[h+44>>2];q=kd(1,24);J[q+4>>2]=(b?J[b>>2]:-1)-12;b=b?J[b+4>>2]:-1;J[q>>2]=g;J[q+8>>2]=b-12;Ca:{Da:{while(1){v=yE(q);if((v|0)<0)break Da;ta=h,ua=lg(y,v),J[ta+36>>2]=ua;ta=h,ua=lg(Y,v),J[ta+32>>2]=ua;op(G,v,h+60|0,h+56|0);W=J[h+40>>2];w=J[h+36>>2];ea=J[h+32>>2]; +C=Q(N[h+68>>2]-N[h+60>>2]);T=Q(N[h+64>>2]-N[h+56>>2]);F=0;x=fc-16|0;fc=x;u=J[h+44>>2];if(u)e=J[u>>2];else e=-1;m=u?J[u+4>>2]:-1;o=w?J[w>>2]:-1;p=w?J[w+4>>2]:-1;t=e-o|0;b=t>>31;Ea:{if(((b^t)-b|0)>2)break Ea;t=m-p|0;b=t>>31;if(((b^t)-b|0)>2)break Ea;b=cv(u);J[x+8>>2]=b;Cf(b,0,0,e,m,24,u,0,0);E=(T>=Q(0)?.5:-.5)+ +T;Fa:{if(R(E)<2147483648){u=~~E;break Fa}u=-2147483648}E=(C>=Q(0)?.5:-.5)+ +C;Ga:{if(R(E)<2147483648){t=~~E;break Ga}t=-2147483648}Cf(b,t,u,e,m,4,ea,0,0);py(b,x+12|0);if(!J[x+12>>2]){Fd(x+8| +0);break Ea}Cf(b,t,u,o,p,24,w,0,0);Cf(J[x+8>>2],0,0,o,p,4,W,0,0);py(J[x+8>>2],x+12|0);Fd(x+8|0);F=J[x+12>>2]}fc=x+16|0;Fd(h+36|0);Fd(h+32|0);if((F|0)!=1)continue;break}mi(S,Q(v|0));mi(I,z);if(J[g+64>>2]){ta=h,ua=bO(ca,v),J[ta+28>>2]=ua;b=lg(l,s);J[h+48>>2]=b;ni(J[h+28>>2],b,0);b=Jq(D,s);Mq(J[h+28>>2],b);Ak(h+28|0)}Qi(q+16|0);uc(q);Fd(h+44|0);Fd(h+40|0);break Ca}Qi(q+16|0);uc(q);C=Q(r|0);mi(S,C);mi(I,z);ta=h,ua=cl(0),J[ta+28>>2]=ua;b=lg(l,s);J[h+48>>2]=b;ni(J[h+28>>2],b,0);b=J[h+48>>2];if(b)b=J[b>> +2];else b=-1;e=J[h+48>>2];if(e)e=J[e+4>>2];else e=-1;aO(i,P(b,e),C);b=Jq(D,s);Mq(J[h+28>>2],b);cO(ca,J[h+28>>2]);jm(G,N[h+68>>2],N[h+64>>2]);ni(y,J[h+44>>2],0);ni(Y,J[h+40>>2],0)}s=s+1|0;if((k|0)!=(s|0))continue;break}break Ba}e=0;m=fc-16|0;fc=m;b=!l;Ha:{if(b)break Ha;b=b?0:J[l>>2];if(!b){e=jo(1);break Ha}o=lg(l,0);J[m+8>>2]=o;o=o?J[o+8>>2]:-1;Fd(m+8|0);if((o|0)!=1)break Ha;o=kd(256,4);if(o){s=0;while(1){J[o+(s<<2)>>2]=(((((((s&1)+(s>>>7|0)|0)+(s>>>1&1)|0)+(s>>>2&1)|0)+(s>>>3&1)|0)+(s>>>4&1)|0)+(s>>> +5&1)|0)+(s>>>6&1);s=s+1|0;if((s|0)!=256)continue;break}}e=jo(b);if(!e){e=0;break Ha}if((b|0)>0){s=0;while(1){p=lg(l,s);J[m+8>>2]=p;Bk(p,m+12|0,o);mi(e,Q(J[m+12>>2]));Fd(m+8|0);s=s+1|0;if((b|0)!=(s|0))continue;break}}uc(o)}fc=m+16|0;J[h+52>>2]=e;if(!e){s=1;break ta}ea=J[g+84>>2];W=av();if((k|0)>0){z=Q(v|0);s=0;while(1){ta=h,ua=lg(A,s),J[ta+44>>2]=ua;Hj(e,s,h+76|0);ta=h,ua=lg(ha,s),J[ta+40>>2]=ua;op(d,s,h+68|0,h- -64|0);x=y?J[y>>2]:0;b=J[h+44>>2];v=kd(1,24);J[v+4>>2]=(b?J[b>>2]:-1)-12;b=b?J[b+4>>2]: +-1;J[v>>2]=g;J[v+8>>2]=b-12;Ia:{Ja:{while(1){w=yE(v);if((w|0)<0)break Ja;ta=h,ua=lg(y,w),J[ta+36>>2]=ua;Hj(ea,w,h+72|0);ta=h,ua=lg(Y,w),J[ta+32>>2]=ua;op(G,w,h+60|0,h+56|0);na=J[h+40>>2];F=J[h+36>>2];oa=J[h+32>>2];C=Q(N[h+68>>2]-N[h+60>>2]);T=Q(N[h+64>>2]-N[h+56>>2]);pa=J[h+76>>2];sa=J[h+72>>2];qa=0;q=fc-16|0;fc=q;t=J[h+44>>2];if(t)m=J[t>>2];else m=-1;o=t?J[t+4>>2]:-1;p=F?J[F>>2]:-1;u=F?J[F+4>>2]:-1;r=m-p|0;b=r>>31;Ka:{if(((b^r)-b|0)>2)break Ka;r=o-u|0;b=r>>31;if(((b^r)-b|0)>2)break Ka;b=cv(t);J[q+ +8>>2]=b;Cf(b,0,0,m,o,24,t,0,0);E=(T>=Q(0)?.5:-.5)+ +T;La:{if(R(E)<2147483648){t=~~E;break La}t=-2147483648}E=(C>=Q(0)?.5:-.5)+ +C;Ma:{if(R(E)<2147483648){r=~~E;break Ma}r=-2147483648}Cf(b,r,t,m,o,4,oa,0,0);E=1-+fa;ra=+(pa|0)*E+.5;Na:{if(R(ra)<2147483648){m=~~ra;break Na}m=-2147483648}w9(b,m,q+12|0,W);if(J[q+12>>2]==1){Fd(q+8|0);break Ka}Cf(b,r,t,p,u,24,F,0,0);Cf(J[q+8>>2],0,0,p,u,4,na,0,0);m=J[q+8>>2];E=+(sa|0)*E+.5;Oa:{if(R(E)<2147483648){b=~~E;break Oa}b=-2147483648}w9(m,b,q+12|0,W);Fd(q+8|0);qa= +J[q+12>>2]!=1}fc=q+16|0;Fd(h+36|0);Fd(h+32|0);if(!qa)continue;break}mi(S,Q(w|0));mi(I,z);if(J[g+64>>2]){ta=h,ua=bO(ca,w),J[ta+28>>2]=ua;b=lg(l,s);J[h+48>>2]=b;ni(J[h+28>>2],b,0);b=Jq(D,s);Mq(J[h+28>>2],b);Ak(h+28|0)}Qi(v+16|0);uc(v);Fd(h+44|0);Fd(h+40|0);break Ia}Qi(v+16|0);uc(v);C=Q(x|0);mi(S,C);mi(I,z);ta=h,ua=cl(0),J[ta+28>>2]=ua;b=lg(l,s);J[h+48>>2]=b;ni(J[h+28>>2],b,0);b=J[h+48>>2];if(b)b=J[b>>2];else b=-1;m=J[h+48>>2];if(m)m=J[m+4>>2];else m=-1;aO(i,P(b,m),C);b=Jq(D,s);Mq(J[h+28>>2],b);cO(ca, +J[h+28>>2]);jm(G,N[h+68>>2],N[h+64>>2]);ni(y,J[h+44>>2],0);ni(Y,J[h+40>>2],0);mi(ea,Q(J[h+76>>2]))}s=s+1|0;if((k|0)!=(s|0))continue;break}}uc(W);Qi(h+52|0)}J[g+60>>2]=y?J[y>>2]:0;uc(la);pp(h+16|0);Ak(h+24|0);Ak(h+20|0);Gj(h+12|0);s=0}fc=h+80|0;if(!s)break sa;break ra}i=b;h=0;o=0;b=fc-48|0;fc=b;d=1;Pa:{if(!g|!D)break Pa;e=!i;if(e)break Pa;ha=J[g+20>>2];e=e?0:J[i>>2];s=cl(e);J[b+4>>2]=s;if((e|0)>0)while(1){l=lg(i,h);J[b+20>>2]=l;l=fO(l,6,6,6,6);J[b+16>>2]=l;ni(s,l,0);Fd(b+20|0);h=h+1|0;if((e|0)!=(h| +0))continue;break}y=J[g+84>>2];w=J[g+100>>2];F=J[g+96>>2];p=av();r=kd(e,4);x=kd(e,4);u=v9();if(!u|(!r|!x))break Pa;q=ts(e);J[b>>2]=q;W=(e|0)<=0;if(!W)while(1){d=lg(s,o);J[b+20>>2]=d;ea=o<<2;I=kd(d?J[d+4>>2]:-1,4);J[ea+x>>2]=I;d=J[b+20>>2];if(d)h=J[d+12>>2];else h=-1;d=J[b+20>>2];if(d)l=J[d+40>>2];else l=0;d=J[b+20>>2];if(d)m=J[d+4>>2];else m=-1;C=Q(0);d=J[b+20>>2];if(d)d=J[d+4>>2];else d=-1;Qa:{if((d|0)<=0){z=Q(0);m=0;break Qa}if((h|0)<=0){m=0;Ac(I,0,d<<2);z=Q(0);break Qa}A=l+(P(h,m-1|0)<<2)|0;z= +Q(0);m=0;qa=0-h<<2;while(1){k=d-1|0;J[I+(k<<2)>>2]=m;t=0;l=0;while(1){v=J[(l<<2)+A>>2];la=(v&255)<<2;S=J[la+p>>2];na=v>>>6&1020;G=J[na+p>>2];oa=v>>>14&1020;Y=J[oa+p>>2];pa=v>>>22&1020;ca=J[pa+p>>2];v=l<<5;z=Q(Q(Q(Q(z+Q(J[u+la>>2]+P(S,v|24)|0))+Q(J[u+na>>2]+P(G,v|16)|0))+Q(J[u+oa>>2]+P(Y,v|8)|0))+Q(J[u+pa>>2]+P(v,ca)|0));t=ca+(Y+(G+(t+S|0)|0)|0)|0;l=l+1|0;if((h|0)!=(l|0))continue;break}m=m+t|0;A=A+qa|0;C=Q(C+Q(P(k,t)|0));l=(d|0)>1;d=k;if(l)continue;break}}J[r+ea>>2]=m;T=z;z=Q(m|0);jm(q,Q(T/z),Q(C/ +z));Fd(b+20|0);o=o+1|0;if((e|0)!=(o|0))continue;break}f9(J[g+88>>2],q);k=J[g+72>>2];Ra:{if(!W){m=J[g+80>>2];v=J[g+48>>2];I=J[g+68>>2];t=J[g+92>>2];C=N[g+40>>2];E=+C;T=N[g+44>>2];ra=(1-E)*+T;z=Q(ha|0);d=0;while(1){ta=b,ua=lg(s,d),J[ta+16>>2]=ua;G=d<<2;A=J[G+r>>2];op(q,d,b+36|0,b+32|0);h=k?J[k>>2]:0;l=J[b+16>>2];o=kd(1,24);J[o+4>>2]=(l?J[l>>2]:-1)-12;l=l?J[l+4>>2]:-1;J[o>>2]=g;J[o+8>>2]=l-12;S=x+G|0;Sa:{Ta:{Ua:{if(T>Q(0))while(1){l=yE(o);if((l|0)<0)break Ta;ta=b,ua=lg(k,l),J[ta+12>>2]=ua;Hj(y,l,b+40| +0);op(t,l,b+28|0,b+24|0);Hj(v,l,b+44|0);G=J[b+40>>2];G=e9(J[b+16>>2],J[b+12>>2],A,G,Q(N[b+36>>2]-N[b+28>>2]),Q(N[b+32>>2]-N[b+24>>2]),p,J[S>>2],Q(ra*+(G|0)/+J[b+44>>2]+E));Fd(b+12|0);if(!G)continue;break Ua}while(1){l=yE(o);if((l|0)<0)break Ta;ta=b,ua=lg(k,l),J[ta+12>>2]=ua;Hj(y,l,b+40|0);op(t,l,b+28|0,b+24|0);G=e9(J[b+16>>2],J[b+12>>2],A,J[b+40>>2],Q(N[b+36>>2]-N[b+28>>2]),Q(N[b+32>>2]-N[b+24>>2]),p,J[S>>2],C);Fd(b+12|0);if(!G)continue;break}}mi(F,Q(l|0));mi(w,z);if(J[g+64>>2]){ta=b,ua=bO(I,l),J[ta+ +8>>2]=ua;h=lg(i,d);J[b+20>>2]=h;ni(J[b+8>>2],h,0);h=Jq(D,d);Mq(J[b+8>>2],h);Ak(b+8|0)}Qi(o+16|0);uc(o);Fd(b+16|0);break Sa}Qi(o+16|0);uc(o);fa=Q(h|0);mi(F,fa);mi(w,z);ta=b,ua=cl(0),J[ta+8>>2]=ua;h=lg(i,d);J[b+20>>2]=h;ni(J[b+8>>2],h,0);h=J[b+20>>2];if(h)h=J[h>>2];else h=-1;l=J[b+20>>2];if(l)l=J[l+4>>2];else l=-1;aO(m,P(h,l),fa);h=Jq(D,d);Mq(J[b+8>>2],h);cO(I,J[b+8>>2]);jm(t,N[b+36>>2],N[b+32>>2]);mi(y,Q(A|0));ni(k,J[b+16>>2],0);h=J[b+16>>2];if(h)h=J[h>>2];else h=-1;l=J[b+16>>2];if(l)l=J[l+4>>2];else l= +-1;h=P(l-12|0,h-12|0);J[b+44>>2]=h;mi(v,Q(h|0))}d=d+1|0;if((e|0)!=(d|0))continue;break}J[g+60>>2]=k?J[k>>2]:0;uc(r);uc(u);if((e|0)<=0)break Ra;l=0;while(1){uc(J[x+(l<<2)>>2]);l=l+1|0;if((e|0)!=(l|0))continue;break}break Ra}J[g+60>>2]=k?J[k>>2]:0;uc(r);uc(u)}uc(x);uc(p);pp(b);Ak(b+4|0);d=0}fc=b+48|0;if(d)break ra}e=0;u=0;t=0;b=fc+-64|0;fc=b;h=1;Va:{if(!g|!j)break Va;d=!D;if(d)break Va;d=d?0:J[D>>2];w=J[g+24>>2];F=J[g+92>>2];I=J[g+88>>2];S=J[g+96>>2];G=J[g+104>>2];p=av();m=d;if((d|0)>0)while(1){d=t+ +w|0;op(I,d,b+32|0,b+24|0);Hj(S,d,b+44|0);op(F,J[b+44>>2],b+28|0,b+20|0);z=N[b+24>>2];C=N[b+20>>2];T=N[b+32>>2];fa=N[b+28>>2];i=Jq(D,t);J[b+16>>2]=i;T=Q(fa-T);E=(T>=Q(0)?.5:-.5)+ +T;Wa:{if(R(E)<2147483648){h=~~E;break Wa}h=-2147483648}if(!i){h=1;break Va}ss(i,b+40|0,b+36|0,0,0);k=lg(J[g+72>>2],J[b+44>>2]);J[b+12>>2]=k;z=Q(C-z);E=(z>=Q(0)?.5:-.5)+ +z;Xa:{if(R(E)<2147483648){l=~~E;break Xa}l=-2147483648}d=!k;Ya:{if(d|!p)break Ya;d=d?-1:J[k>>2];i=k?J[k+4>>2]:-1;o=XN((J[b+40>>2]-h|0)-6|0,(J[b+36>>2]-l| +0)-6|0,d,i);J[b+48>>2]=o;e=0;o=zE(j,o);J[b+56>>2]=o;WN(b+48|0);u=0;r=!o;if(r)break Ya;e=xh(r?-1:J[o>>2],o?J[o+4>>2]:-1,1);J[b+52>>2]=e;Ff(e,o);Cf(e,-1,-1,d,i,12,k,0,0);Bk(e,b+60|0,p);u=J[b+60>>2];Ff(e,o);Cf(e,0,-1,d,i,12,k,0,0);Bk(e,b+60|0,p);r=J[b+60>>2];Ff(e,o);Cf(e,1,-1,d,i,12,k,0,0);Bk(e,b+60|0,p);q=J[b+60>>2];Ff(e,o);Cf(e,-1,0,d,i,12,k,0,0);Bk(e,b+60|0,p);x=J[b+60>>2];Ff(e,o);Cf(e,0,0,d,i,12,k,0,0);Bk(e,b+60|0,p);s=J[b+60>>2];Ff(e,o);Cf(e,1,0,d,i,12,k,0,0);Bk(e,b+60|0,p);y=J[b+60>>2];Ff(e,o); +Cf(e,-1,1,d,i,12,k,0,0);Bk(e,b+60|0,p);A=J[b+60>>2];Ff(e,o);Cf(e,0,1,d,i,12,k,0,0);Bk(e,b+60|0,p);v=J[b+60>>2];Ff(e,o);Cf(e,1,1,d,i,12,k,0,0);Bk(e,b+60|0,p);d=(r|0)<(u|0)?r:u;e=(d|0)>(q|0);d=e?q:d;k=(d|0)<=(x|0);d=(d|0)>(x|0)?x:d;o=(d|0)<=(s|0);q=o?k?e?1:(r|0)>=(u|0)?-1:0:-1:0;d=(d|0)>(s|0)?s:d;u=(d|0)<=(y|0);e=(d|0)>(y|0)?y:d;d=(e|0)>(A|0);e=d?A:e;i=(e|0)>(v|0);r=J[b+60>>2]<((i?v:e)|0);e=r?1:i?0:d?-1:u?q:1;u=r?1:i?1:d?1:0-(k&(o&u))|0;Fd(b+56|0);Fd(b+52|0)}jm(G,Q(J[b+40>>2]+(e-h|0)|0),Q(J[b+36>>2]+ +(u-l|0)|0));WN(b+16|0);Fd(b+12|0);t=t+1|0;if((m|0)!=(t|0))continue;break}uc(p);h=0}fc=b- -64|0;if(h)break ra;b=D?J[D>>2]:0;J[g+24>>2]=b+J[g+24>>2];mi(J[g+28>>2],Q(b|0))}J[g+20>>2]=J[g+20>>2]+1}mp(X);Ak(V)}fc=U+16|0;h=J[j>>2];d=J[n+56>>2];e=J[n+60>>2];Za:{if(d>>>0>>0){J[d>>2]=h;J[n+56>>2]=d+4;break Za}i=n+52|0;g=J[i>>2];l=d-g>>2;b=l+1|0;if(b>>>0>=1073741824)break ba;e=e-g|0;i=e>>1;i=e>>>0>=2147483644?1073741823:b>>>0>>0?i:b;if(i){if(i>>>0>=1073741824)break ca;b=vc(i<<2)}else b=0;e=b+(l<<2)|0; +J[e>>2]=h;h=e+4|0;if((d|0)!=(g|0))while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(g|0))continue;break}J[n+60>>2]=b+(i<<2);J[n+56>>2]=h;J[n+52>>2]=e;if(!g)break Za;uc(g)}h=J[j+4>>2];d=J[n+68>>2];e=J[n+72>>2];_a:{if(d>>>0>>0){J[d>>2]=h;J[n+68>>2]=d+4;break _a}i=n- -64|0;g=J[i>>2];l=d-g>>2;b=l+1|0;if(b>>>0>=1073741824)break aa;e=e-g|0;i=e>>1;i=e>>>0>=2147483644?1073741823:b>>>0>>0?i:b;if(i){if(i>>>0>=1073741824)break ca;b=vc(i<<2)}else b=0;e=b+(l<<2)|0;J[e>>2]=h;h=e+4|0;if((d|0)!=(g|0))while(1){e= +e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(g|0))continue;break}J[n+72>>2]=b+(i<<2);J[n+68>>2]=h;J[n+64>>2]=e;if(!g)break _a;uc(g)}Fd(ja+12|0);fc=ja+16|0;break $}qj(h);B()}Pd();B()}qj(i);B()}qj(i);B()}Fd(c- -64|0);J[c+92>>2]=0;d=0;h=0;k=fc-72304|0;fc=k;g=J[n>>2];o=J[g+20>>2];e=J[J[g+72>>2]>>2];J[k+72300>>2]=0;J[k+72292>>2]=0;J[k+72296>>2]=0;$a:{ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{if(e){if(e>>>0>=1073741824){J[699344]=0;$(1587,k+72292|0);a=J[699344];J[699344]=0;if((a|0)==1)break hb;break ab}J[699344]=0;b= +e<<2;h=_(4,b|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break hb;J[k+72292>>2]=h;i=b+h|0;J[k+72300>>2]=i;Ac(h,0,b);J[k+72296>>2]=i}b=J[g+96>>2];if(J[b+4>>2]>0){while(1){J[699344]=0;Hj(b,d,k+60|0);b=J[699344];J[699344]=0;if((b|0)==1)break gb;b=(J[k+60>>2]<<2)+h|0;J[b>>2]=J[b>>2]+1;d=d+1|0;g=J[n>>2];b=J[g+96>>2];if((d|0)>2])continue;break}e=J[J[g+72>>2]>>2]}i=0;J[k+72288>>2]=0;J[k+72280>>2]=0;J[k+72284>>2]=0;if((e|0)>0)break fb;b=0;break eb}d=Z()|0;a=J[k+72292>>2];if(!a)break bb;J[k+72296>>2]= +a;uc(a);break bb}d=Z()|0;break cb}ib:{while(1){b=J[(i<<2)+h>>2];if(!b){J[699344]=0;ka(495);a=J[699344];J[699344]=0;if((a|0)!=1)break ab;d=Z()|0;break db}jb:{kb:{if((b|0)==1&(o|0)!=1)break kb;d=J[k+72284>>2];l=J[k+72288>>2];if(d>>>0>>0){J[d>>2]=i;J[k+72284>>2]=d+4;break kb}lb:{mb:{e=J[k+72280>>2];m=d-e>>2;b=m+1|0;nb:{if(b>>>0>=1073741824){J[699344]=0;$(1587,k+72280|0);break nb}l=l-e|0;j=l>>1;l=l>>>0>=2147483644?1073741823:b>>>0>>0?j:b;if(!l){s=0;break lb}if(l>>>0<1073741824)break mb;J[699344]= +0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break ab;d=Z()|0;break db}J[699344]=0;s=_(4,l<<2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break jb}b=(m<<2)+s|0;J[b>>2]=i;m=b+4|0;if((d|0)!=(e|0))while(1){b=b-4|0;d=d-4|0;J[b>>2]=J[d>>2];if((d|0)!=(e|0))continue;break}J[k+72288>>2]=(l<<2)+s;J[k+72284>>2]=m;J[k+72280>>2]=b;if(!e)break kb;uc(e);g=J[n>>2]}i=i+1|0;if((i|0)>=J[J[g+72>>2]>>2])break ib;continue}break}d=Z()|0;break db}i=J[k+72280>>2];b=J[k+72284>>2]}J[n+48>>2]=b-i>>2;ob:{d=J[g+100>>2];if(J[d+4>> +2]<=0)break ob;l=n+40|0;j=n+28|0;m=0;pb:{qb:{while(1){J[699344]=0;Hj(d,m,k+60|0);b=J[699344];J[699344]=0;if((b|0)==1)break pb;e=J[k+60>>2];i=j;d=i;b=J[d>>2];rb:{sb:{if(!b)break sb;while(1){d=b;b=J[b+16>>2];if((b|0)>(e|0)){i=d;b=J[d>>2];if(b)continue;break sb}if((b|0)>=(e|0)){g=d;break rb}b=J[d+4>>2];if(b)continue;break}i=d+4|0}J[699344]=0;g=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break pb;J[g+16>>2]=e;J[g+8>>2]=d;J[g>>2]=0;J[g+4>>2]=0;J[g+28>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[i>>2]=g;e=g;b=J[J[n+ +24>>2]>>2];if(b){J[n+24>>2]=b;e=J[i>>2]}h=J[j>>2];b=(h|0)==(e|0);H[e+12|0]=b;tb:{if(b)break tb;while(1){b=J[e+8>>2];if(K[b+12|0])break tb;ub:{d=J[b+8>>2];i=J[d>>2];if((i|0)==(b|0)){i=J[d+4>>2];if(!(!i|K[i+12|0]))break ub;vb:{if(J[b>>2]==(e|0)){e=b;break vb}e=J[b+4>>2];i=J[e>>2];J[b+4>>2]=i;h=b;if(i){J[i+8>>2]=b;d=J[b+8>>2];h=J[d>>2]}J[e+8>>2]=d;J[((b|0)==(h|0)?d:d+4|0)>>2]=e;J[e>>2]=b;J[b+8>>2]=e;d=J[e+8>>2];b=J[d>>2]}H[e+12|0]=1;H[d+12|0]=0;e=J[b+4>>2];J[d>>2]=e;if(e)J[e+8>>2]=d;e=J[d+8>>2];J[b+ +8>>2]=e;J[e+((J[e>>2]!=(d|0))<<2)>>2]=b;J[b+4>>2]=d;J[d+8>>2]=b;break tb}if(!(K[i+12|0]|!i))break ub;wb:{if(J[b>>2]!=(e|0)){e=b;break wb}i=J[e+4>>2];J[b>>2]=i;if(i){J[i+8>>2]=b;d=J[b+8>>2]}J[e+8>>2]=d;J[(J[d>>2]==(b|0)?d:d+4|0)>>2]=e;J[e+4>>2]=b;J[b+8>>2]=e;d=J[e+8>>2]}H[e+12|0]=1;H[d+12|0]=0;b=J[d+4>>2];e=J[b>>2];J[d+4>>2]=e;if(e)J[e+8>>2]=d;e=J[d+8>>2];J[b+8>>2]=e;J[e+((J[e>>2]!=(d|0))<<2)>>2]=b;J[b>>2]=d;J[d+8>>2]=b;break tb}H[b+12|0]=1;H[d+12|0]=(d|0)==(h|0);H[i+12|0]=1;e=d;if((d|0)!=(h|0))continue; +break}}J[n+32>>2]=J[n+32>>2]+1}d=J[g+24>>2];xb:{if((d|0)!=J[g+28>>2]){J[d>>2]=m;J[g+24>>2]=d+4;break xb}yb:{zb:{h=g+20|0;e=J[h>>2];b=d-e|0;p=b>>2;i=p+1|0;Ab:{if(i>>>0>=1073741824){J[699344]=0;$(1589,h|0);break Ab}h=b>>1;i=b>>>0>=2147483644?1073741823:h>>>0>i>>>0?h:i;if(!i){h=0;break yb}if(i>>>0<1073741824)break zb;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break ab;d=Z()|0;break db}J[699344]=0;h=_(4,i<<2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break pb}b=(p<<2)+h|0;J[b>>2]=m;p=b+4|0;if((d| +0)!=(e|0))while(1){b=b-4|0;d=d-4|0;J[b>>2]=J[d>>2];if((d|0)!=(e|0))continue;break}J[g+28>>2]=(i<<2)+h;J[g+24>>2]=p;J[g+20>>2]=b;if(!e)break xb;uc(e)}b=J[J[n>>2]+96>>2];J[699344]=0;Hj(b,m,k+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break qb;Bb:{p=J[k+24>>2];Cb:{if((o|0)==1|J[J[k+72292>>2]+(p<<2)>>2]!=1)break Cb;e=J[k+60>>2];i=l;d=i;b=J[d>>2];Db:{Eb:{if(!b)break Eb;while(1){d=b;b=J[b+16>>2];if((b|0)>(e|0)){i=d;b=J[d>>2];if(b)continue;break Eb}if((b|0)>=(e|0)){g=d;break Db}b=J[d+4>>2];if(b)continue; +break}i=d+4|0}J[699344]=0;g=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break qb;J[g+16>>2]=e;J[g+8>>2]=d;J[g>>2]=0;J[g+4>>2]=0;J[g+28>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[i>>2]=g;e=g;b=J[J[n+36>>2]>>2];if(b){J[n+36>>2]=b;e=J[i>>2]}h=J[l>>2];b=(h|0)==(e|0);H[e+12|0]=b;Fb:{if(b)break Fb;while(1){b=J[e+8>>2];if(K[b+12|0])break Fb;Gb:{d=J[b+8>>2];i=J[d>>2];if((i|0)==(b|0)){i=J[d+4>>2];if(!(!i|K[i+12|0]))break Gb;Hb:{if(J[b>>2]==(e|0)){e=b;break Hb}e=J[b+4>>2];i=J[e>>2];J[b+4>>2]=i;h=b;if(i){J[i+8>>2]= +b;d=J[b+8>>2];h=J[d>>2]}J[e+8>>2]=d;J[((b|0)==(h|0)?d:d+4|0)>>2]=e;J[e>>2]=b;J[b+8>>2]=e;d=J[e+8>>2];b=J[d>>2]}H[e+12|0]=1;H[d+12|0]=0;e=J[b+4>>2];J[d>>2]=e;if(e)J[e+8>>2]=d;e=J[d+8>>2];J[b+8>>2]=e;J[e+((J[e>>2]!=(d|0))<<2)>>2]=b;J[b+4>>2]=d;J[d+8>>2]=b;break Fb}if(!(K[i+12|0]|!i))break Gb;Ib:{if(J[b>>2]!=(e|0)){e=b;break Ib}i=J[e+4>>2];J[b>>2]=i;if(i){J[i+8>>2]=b;d=J[b+8>>2]}J[e+8>>2]=d;J[(J[d>>2]==(b|0)?d:d+4|0)>>2]=e;J[e+4>>2]=b;J[b+8>>2]=e;d=J[e+8>>2]}H[e+12|0]=1;H[d+12|0]=0;b=J[d+4>>2];e=J[b>> +2];J[d+4>>2]=e;if(e)J[e+8>>2]=d;e=J[d+8>>2];J[b+8>>2]=e;J[e+((J[e>>2]!=(d|0))<<2)>>2]=b;J[b>>2]=d;J[d+8>>2]=b;break Fb}H[b+12|0]=1;H[d+12|0]=(d|0)==(h|0);H[i+12|0]=1;e=d;if((d|0)!=(h|0))continue;break}}J[n+44>>2]=J[n+44>>2]+1}d=J[g+24>>2];i=J[g+28>>2];if(d>>>0>>0){J[d>>2]=p;J[g+24>>2]=d+4;break Cb}Jb:{Kb:{h=g+20|0;e=J[h>>2];u=d-e>>2;b=u+1|0;Lb:{if(b>>>0>=1073741824){J[699344]=0;$(1587,h|0);break Lb}i=i-e|0;h=i>>1;i=i>>>0>=2147483644?1073741823:b>>>0>>0?h:b;if(!i){h=0;break Jb}if(i>>>0<1073741824)break Kb; +J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break ab;d=Z()|0;break db}J[699344]=0;h=_(4,i<<2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Bb}b=(u<<2)+h|0;J[b>>2]=p;p=b+4|0;if((d|0)!=(e|0))while(1){b=b-4|0;d=d-4|0;J[b>>2]=J[d>>2];if((d|0)!=(e|0))continue;break}J[g+28>>2]=(i<<2)+h;J[g+24>>2]=p;J[g+20>>2]=b;if(!e)break Cb;uc(e)}m=m+1|0;g=J[n>>2];d=J[g+100>>2];if((m|0)>2])continue;break ob}break}d=Z()|0;break db}d=Z()|0;break db}d=Z()|0;break db}i=J[g+20>>2];h=J[655074];d=0;e=J[J[g+ +72>>2]>>2];if(e>>>0>=2){b=e;while(1){d=d+1|0;b=b>>1;if(b>>>0>1)continue;break}}J[k>>2]=i;J[k+4>>2]=e;J[k+8>>2]=((e&e-1)!=0)+d;md(h,226234,k);b=J[n>>2];J[699344]=0;_(1590,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){d=Z()|0;break db}J[699344]=0;$(1591,k+60|0);b=J[699344];J[699344]=0;Mb:{Nb:{if((b|0)!=1){if(K[n+12|0])break Nb;break Mb}d=Z()|0;break db}b=J[J[n>>2]+20>>2];h=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}J[k+48>>2]=0;J[k+40>>2]=0;J[k+44>>2]=0;J[k+32>>2]=0;J[k+36>>2]=0;d=J[n+92>>2];b=d;if(!b)b= +J[J[n>>2]+72>>2];J[699344]=0;ma(1592,k+60|0,b|0,k+72280|0,n+76|0,!d|0);b=J[699344];J[699344]=0;Ob:{Pb:{if((b|0)!=1){e=0;J[699344]=0;d=J[k+80>>2];b=J[k+72>>2];g=J[b+4>>2];i=J[b>>2];b=J[699344];J[699344]=0;if((b|0)==1)break Pb;l=J[k+72284>>2];m=J[k+72280>>2];b=J[n+16>>2];J[n+20>>2]=b;J[k+24>>2]=b;J[n+16>>2]=b+1;g=P(g-i>>2,20480)+d|0;J[k+56>>2]=g+18;J[k+28>>2]=0;J[k+52>>2]=0;J[k+36>>2]=1;d=K[n+12|0];b=Dc((g+(d?13:0)|0)+29|0);if(d){H[b+9|0]=h;H[b+10|0]=h>>>8;H[b+11|0]=h>>>16;H[b+12|0]=h>>>24;H[b+8|0]= +1;H[b|0]=151;H[b+1|0]=74;H[b+2|0]=66;H[b+3|0]=50;H[b+4|0]=13;H[b+5|0]=10;H[b+6|0]=26;H[b+7|0]=10;e=13}J[699344]=0;da(1594,k+24|0,b+e|0);d=J[699344];J[699344]=0;if((d|0)==1)break Ob;d=J[k+24>>2];i=((M[k+52>>2]<256?11:12)+e|0)+(J[k+44>>2]-J[k+40>>2]>>2<<(d>>>0>=257?d>>>0<65537?1:2:0))|0;d=i+b|0;e=l-m>>2;e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[d+14|0]=e;H[d+15|0]=e>>>8;h=e>>>16|0;H[d+16|0]=h;H[d+17|0]=e>>>24;H[d+10|0]=e;H[d+11|0]=e>>>8;H[d+12|0]=h;H[d+13|0]=e>>>24;H[d+2|0]=3;H[d+3|0]=255;H[d+4|0]= +253;H[d+5|0]=255;H[d+6|0]=2;H[d+7|0]=254;H[d+8|0]=254;H[d+9|0]=254;H[d|0]=0;H[d+1|0]=0;J[699344]=0;d=k+60|0;e=i+18|0;da(1595,d|0,e+b|0);i=J[699344];J[699344]=0;if((i|0)==1)break Ob;J[699344]=0;ty(d);d=J[699344];J[699344]=0;if((d|0)==1)break Ob;J[c+92>>2]=e+g;d=J[k+40>>2];if(d){J[k+44>>2]=d;uc(d)}d=J[k+72280>>2];if(d){J[k+72284>>2]=d;uc(d)}d=J[k+72292>>2];if(d)uc(d);fc=k+72304|0;break $a}d=Z()|0;break db}d=Z()|0;break db}d=Z()|0;a=J[k+40>>2];if(!a)break db;J[k+44>>2]=a;uc(a)}a=J[k+72280>>2];if(a){J[k+ +72284>>2]=a;uc(a)}h=J[k+72292>>2]}if(!h)break bb;J[k+72296>>2]=h;uc(h);ba(d|0);B()}ba(d|0);B()}B()}Qb:{Rb:{Sb:{h=b;if(b){Tb:{Ub:{Vb:{if(K[a+1|0]){Wb:{if(H[f+11|0]>=0){J[c+24>>2]=J[f+8>>2];b=J[f+4>>2];J[c+16>>2]=J[f>>2];J[c+20>>2]=b;break Wb}Ve(c+16|0,J[f>>2],J[f+4>>2])}J[699344]=0;b=c+48|0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=415588;d=J[699344];J[699344]=0;if((d|0)==1)break Vb;J[699344]=0;d=aa(17,b|0,c+16|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Sb;Xb:{if(!d){uc(h);J[699344]=0;$(1585, +n|0);e=J[699344];J[699344]=0;if((e|0)!=1)break Xb;break Sb}J[699344]=0;ga(42,b|0,h|0,J[c+92>>2])|0;e=J[699344];J[699344]=0;if((e|0)==1)break Sb;J[699344]=0;$(21,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break Sb}De(b);if(H[c+27|0]<0)uc(J[c+16>>2]);b=0;if(!d)break a}uc(h);i=0;s=0;m=0;u=0;x=0;A=0;j=fc-144672|0;fc=j;s=J[J[n>>2]+20>>2]?s:K[n+12|0]!=0;nO(j+72452|0);J[j+72440>>2]=0;b=j+72432|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72424>>2]=0;J[j+72428>>2]=0;J[j+72408>>2]=0;b=j+72400|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72392| +0;J[b>>2]=0;J[b+4>>2]=0;b=j+72384|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72376>>2]=0;J[j+72380>>2]=0;J[j+72368>>2]=0;b=j+72360|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72352|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72344|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72336>>2]=0;J[j+72340>>2]=0;J[j+72328>>2]=0;b=j+72320|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72312|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72304|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72296>>2]=0;J[j+72300>>2]=0;H[j+72288|0]=0;J[j+72280>>2]=0;J[j+72284>>2]=0;J[j+72272>>2]=0;b=j+72264|0;J[b>>2]=0;J[b+4>>2]=0;b=j+72256|0;J[b>> +2]=0;J[b+4>>2]=0;b=j+72248|0;J[b>>2]=0;J[b+4>>2]=0;J[j+72240>>2]=0;J[j+72244>>2]=0;b=J[n+16>>2];J[j+72416>>2]=b;J[n+16>>2]=b+1;J[j+72420>>2]=48;J[j+72448>>2]=19;J[j+72444>>2]=1;b=J[J[n+52>>2]>>2];o=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[J[n+64>>2]>>2];p=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[n+4>>2];t=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[n+8>>2];r=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);U=K[n+88|0];J[j+72228>>2]=j+72232;J[j+72232>>2]=0;J[j+72236>>2]=0;e=n+40|0;f=e;Yb:{Zb:{_b:{$b:{ac:{bc:{b= +e;d=J[b>>2];cc:{dc:{if(!d)break dc;while(1){b=d;f=J[b+16>>2];if((f|0)>0){f=b;d=J[b>>2];if(d)continue;break dc}if((f|0)>=0)break cc;d=J[b+4>>2];if(d)continue;break}f=b+4|0}J[699344]=0;d=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break bc;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[f>>2]=d;b=d;g=J[J[n+36>>2]>>2];if(g){J[n+36>>2]=g;b=J[f>>2]}Oc(J[n+40>>2],b);J[n+44>>2]=J[n+44>>2]+1}ec:{k=J[d+24>>2]==J[d+20>>2];if(k)g=0;else{J[699344]=0;$(1591,j+8|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break ec;b=J[n+16>>2];J[n+16>>2]=b+1;J[j+72380>>2]=0;J[j+72376>>2]=b;J[j+72404>>2]=1;i=J[n+92>>2];ia=i?i:J[J[n>>2]+72>>2];f=e;b=e;d=J[b>>2];fc:{gc:{if(!d)break gc;while(1){b=d;f=J[b+16>>2];if((f|0)>0){f=b;d=J[b>>2];if(d)continue;break gc}if((f|0)>=0)break fc;d=J[b+4>>2];if(d)continue;break}f=b+4|0}J[699344]=0;d=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ec;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[f>>2]=d;b=d;g=J[J[n+36>> +2]>>2];if(g){J[n+36>>2]=g;b=J[f>>2]}Oc(J[n+40>>2],b);J[n+44>>2]=J[n+44>>2]+1;i=J[n+92>>2]}J[699344]=0;ma(1592,j+8|0,ia|0,d+20|0,j+72228|0,!i|0);b=J[699344];J[699344]=0;if((b|0)==1)break ec;f=e;b=e;d=J[b>>2];hc:{ic:{if(!d)break ic;while(1){b=d;f=J[b+16>>2];if((f|0)>0){f=b;d=J[b>>2];if(d)continue;break ic}if((f|0)>=0)break hc;d=J[b+4>>2];if(d)continue;break}f=b+4|0}J[699344]=0;d=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ec;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>> +2]=0;J[d+24>>2]=0;J[f>>2]=d;b=d;g=J[J[n+36>>2]>>2];if(g){J[n+36>>2]=g;b=J[f>>2]}Oc(J[n+40>>2],b);J[n+44>>2]=J[n+44>>2]+1}u=2;b=J[d+24>>2]-J[d+20>>2]>>2;ia=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[699344]=0;b=J[j+28>>2];d=J[j+20>>2];f=J[d+4>>2];d=J[d>>2];g=J[699344];J[699344]=0;if((g|0)==1)break ec;J[j+72408>>2]=(P(f-d>>2,20480)+b|0)+18;m=255;x=253;A=3;g=254}D=J[n+48>>2];b=e;d=J[n+40>>2];jc:{kc:{if(!d)break kc;while(1){b=d;e=J[b+16>>2];if((e|0)>0){e=b;d=J[b>>2];if(d)continue;break kc}if((e|0)>=0)break jc; +d=J[b+4>>2];if(d)continue;break}e=b+4|0}J[699344]=0;d=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break $b;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[e>>2]=d;b=d;f=J[J[n+36>>2]>>2];if(f){J[n+36>>2]=f;b=J[e>>2]}Oc(J[n+40>>2],b);J[n+44>>2]=J[n+44>>2]+1}l=K[n+88|0]?J[J[n+100>>2]>>2]:0;y=J[d+20>>2];q=J[d+24>>2];e=n+28|0;f=e;lc:{b=e;d=J[b>>2];mc:{nc:{if(!d)break nc;while(1){b=d;f=J[b+16>>2];if((f|0)>0){f=b;d=J[b>>2];if(d)continue;break nc}if((f|0)>=0)break mc; +d=J[b+4>>2];if(d)continue;break}f=b+4|0}J[699344]=0;d=_(4,32)|0;i=J[699344];J[699344]=0;if((i|0)==1)break lc;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[f>>2]=d;b=d;i=J[J[n+24>>2]>>2];if(i){J[n+24>>2]=i;b=J[f>>2]}Oc(J[n+28>>2],b);J[n+32>>2]=J[n+32>>2]+1}b=J[n>>2];v=J[n+92>>2];i=v;if(!i)i=J[b+72>>2];w=d+20|0;V=J[b+108>>2];F=J[b+96>>2];b=0;f=D+(q-y>>2)|0;if(f>>>0>=2){d=f;while(1){b=b+1|0;d=d>>1;if(d>>>0>1)continue;break}}D=J[n+96>>2];J[699344]=0;d=j+72452| +0;Ub(1597,d|0,n+76|0,j+72228|0,w|0,V|0,i|0,F|0,1,((f&f-1)!=0)+b|0,0,0,l|0,D|0,!v|0);b=J[699344];J[699344]=0;if((b|0)==1)break lc;J[699344]=0;b=J[d+12>>2];q=J[d+20>>2]+P(J[b+4>>2]-J[b>>2]>>2,20480)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $b;b=J[J[n+52>>2]>>2];l=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[J[n+64>>2]>>2];D=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);V=K[n+88|0];b=e;d=J[n+28>>2];oc:{pc:{if(!d)break pc;while(1){b=d;e=J[b+16>>2];if((e|0)>0){e=b;d=J[b>>2];if(d)continue;break pc}if((e|0)>= +0)break oc;d=J[b+4>>2];if(d)continue;break}e=b+4|0}J[699344]=0;d=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break $b;J[d+16>>2]=0;J[d+8>>2]=b;J[d>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[e>>2]=d;f=d;b=J[J[n+24>>2]>>2];if(b){J[n+24>>2]=b;f=J[e>>2]}Oc(J[n+28>>2],f);J[n+32>>2]=J[n+32>>2]+1}b=J[d+24>>2]-J[d+20>>2]>>2;y=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[n+16>>2];J[j+72240>>2]=b;J[n+16>>2]=b+1;J[j+72244>>2]=6;v=j+72256|0;w=J[n+20>>2];f=J[j+72260>>2];e=J[j+72264>>2];qc:{if(f>>> +0>>0){J[f>>2]=w;J[j+72260>>2]=f+4;break qc}d=J[j+72256>>2];F=f-d>>2;b=F+1|0;if(b>>>0>=1073741824){J[699344]=0;$(1587,v|0);a=J[699344];J[699344]=0;if((a|0)==1)break $b;break Zb}e=e-d|0;i=e>>1;e=e>>>0>=2147483644?1073741823:b>>>0>>0?i:b;rc:{if(!e){i=0;break rc}if(e>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break Zb;break $b}J[699344]=0;i=_(4,e<<2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $b}b=(F<<2)+i|0;J[b>>2]=w;w=b+4|0;if((d|0)!=(f|0))while(1){b=b-4|0;f=f-4| +0;J[b>>2]=J[f>>2];if((d|0)!=(f|0))continue;break}J[j+72264>>2]=(e<<2)+i;J[j+72260>>2]=w;J[j+72256>>2]=b;if(!d)break qc;uc(d)}if(k)break ac;f=J[j+72260>>2];if((f|0)!=J[j+72264>>2]){J[f>>2]=J[j+72376>>2];J[j+72260>>2]=f+4;break ac}d=J[j+72256>>2];b=f-d|0;w=b>>2;e=w+1|0;if(e>>>0>=1073741824){J[699344]=0;$(1587,v|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Zb;break $b}i=b>>1;e=b>>>0>=2147483644?1073741823:e>>>0>>0?i:e;sc:{if(!e){i=0;break sc}if(e>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]= +0;if((a|0)!=1)break Zb;break $b}J[699344]=0;i=_(4,e<<2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break $b}b=(w<<2)+i|0;J[b>>2]=J[j+72376>>2];v=b+4|0;if((d|0)!=(f|0))while(1){b=b-4|0;f=f-4|0;J[b>>2]=J[f>>2];if((d|0)!=(f|0))continue;break}J[j+72264>>2]=(e<<2)+i;J[j+72260>>2]=v;J[j+72256>>2]=b;if(!d)break ac;uc(d);break ac}break $b}break $b}f=Z()|0;break _b}b=K[n+88|0];J[j+72252>>2]=2;J[j+72272>>2]=q+(b?27:23);J[j+72268>>2]=1;tc:{uc:{if(k){e=0;break uc}J[699344]=0;b=J[j+20>>2];e=J[j+28>>2]+P(J[b+4>>2]- +J[b>>2]>>2,20480)|0;b=J[699344];J[699344]=0;if((b|0)==1)break tc}d=K[n+12|0];if(d){b=J[n+16>>2];J[j+72336>>2]=b;J[n+16>>2]=b+1;J[j+72340>>2]=49;J[j+72364>>2]=1}if(s){b=J[n+16>>2];J[j+72296>>2]=b;J[n+16>>2]=b+1;J[j+72324>>2]=0;J[j+72300>>2]=51}i=J[j+72416>>2];v=i>>>0<65537?1:2;f=0;w=J[j+72436>>2]-J[j+72432>>2]|0;F=J[j+72444>>2];b=0;if(!k){b=J[j+72376>>2];b=(((M[j+72404>>2]<256?11:12)+e|0)+(J[j+72396>>2]-J[j+72392>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0)+18|0}X=J[j+72240>>2];X=X>>>0>=257?X>>>0<65537? +1:2:0;I=J[j+72260>>2]-J[j+72256>>2]>>2;S=M[j+72268>>2]<256;G=K[n+88|0];if(d){d=J[j+72336>>2];f=(J[j+72356>>2]-J[j+72352>>2]>>2<<(d>>>0>=257?d>>>0<65537?1:2:0))+(M[j+72364>>2]<256?11:12)|0}if(s){d=J[j+72296>>2];d=(J[j+72316>>2]-J[j+72312>>2]>>2<<(d>>>0>=257?d>>>0<65537?1:2:0))+(M[j+72324>>2]<256?11:12)|0}else d=0;i=(d+(((((((q+(F>>>0<256?11:12)|0)+(w>>2<<(i>>>0>=257?v:0))|0)+b|0)+(S?11:12)|0)+(G<<2)|0)+(I<>2];f=(J[j+72436>>2]-J[j+72432>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))+(M[j+72444>>2]<256?11:12)|0;b=f+d|0;H[b+17|0]=0;H[b+18|0]=0;H[b+16|0]=U;H[b+12|0]=r;H[b+13|0]=r>>>8;H[b+14|0]=r>>>16;H[b+15|0]=r>>>24;H[b+8|0]=t;H[b+9|0]=t>>>8;H[b+10|0]=t>>>16;H[b+11|0]=t>>>24;H[b+4|0]=p;H[b+5|0]=p>>>8;H[b+6|0]=p>>>16;H[b+7|0]=p>>>24;H[b|0]=o;H[b+1|0]=o>>>8;H[b+2|0]=o>>>16;H[b+3|0]=o>>>24;b=f+19|0;if(!k){J[699344]=0;da(1594,j+72376|0,b+d|0);f=J[699344];J[699344]=0;if((f|0)==1)break tc; +f=(M[j+72404>>2]<256?11:12)+b|0;b=J[j+72376>>2];o=f+(J[j+72396>>2]-J[j+72392>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0;f=o+d|0;b=ia;H[f+14|0]=b;ia=b>>>8|0;H[f+15|0]=ia;p=b>>>16|0;H[f+16|0]=p;r=b>>>24|0;H[f+17|0]=r;H[f+10|0]=b;H[f+11|0]=ia;H[f+12|0]=p;H[f+13|0]=r;H[f+9|0]=g;H[f+8|0]=g;H[f+7|0]=g;H[f+6|0]=u;H[f+5|0]=m;H[f+4|0]=x;H[f+3|0]=m;H[f+2|0]=A;H[f|0]=0;H[f+1|0]=0;J[699344]=0;b=o+18|0;da(1595,j+8|0,b+d|0);f=J[699344];J[699344]=0;if((f|0)==1)break tc;b=b+e|0}J[699344]=0;da(1594,j+72240|0,b+d|0); +e=J[699344];J[699344]=0;if((e|0)==1)break tc;e=(M[j+72268>>2]<256?11:12)+b|0;b=J[j+72240>>2];g=e+(J[j+72260>>2]-J[j+72256>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0;b=g+d|0;H[b+4|0]=D;H[b+5|0]=D>>>8;H[b+6|0]=D>>>16;H[b+7|0]=D>>>24;H[b|0]=l;H[b+1|0]=l>>>8;H[b+2|0]=l>>>16;H[b+3|0]=l>>>24;e=J[j+72284>>2];f=J[j+72280>>2];H[b+8|0]=f;H[b+9|0]=f>>>8;H[b+10|0]=f>>>16;H[b+11|0]=f>>>24;H[b+12|0]=e;H[b+13|0]=e>>>8;H[b+14|0]=e>>>16;H[b+15|0]=e>>>24;H[b+16|0]=K[j+72288|0];e=V<<9;H[b+17|0]=e;H[b+18|0]=e>>>8;b=g+ +19|0;if(K[n+88|0]){b=b+d|0;H[b|0]=255;H[b+1|0]=255;H[b+2|0]=255;H[b+3|0]=255;b=g+23|0}e=b+d|0;H[e|0]=y;H[e+1|0]=y>>>8;H[e+2|0]=y>>>16;H[e+3|0]=y>>>24;J[699344]=0;b=b+4|0;da(1595,j+72452|0,b+d|0);e=J[699344];J[699344]=0;if((e|0)==1)break tc;b=b+q|0;if(K[n+12|0]){J[699344]=0;da(1594,j+72336|0,b+d|0);e=J[699344];J[699344]=0;if((e|0)==1)break tc;e=(M[j+72364>>2]<256?11:12)+b|0;b=J[j+72336>>2];b=e+(J[j+72356>>2]-J[j+72352>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0}if(s){J[699344]=0;da(1594,j+72296|0,b+ +d|0);e=J[699344];J[699344]=0;if((e|0)==1)break tc;e=(M[j+72324>>2]<256?11:12)+b|0;b=J[j+72296>>2];b=e+(J[j+72316>>2]-J[j+72312>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))|0}if((b|0)!=(i|0)){J[699344]=0;ka(495);a=J[699344];J[699344]=0;if((a|0)!=1)break Zb;break tc}J[699344]=0;ty(j+72452|0);b=J[699344];J[699344]=0;if((b|0)==1)break tc;if(!k){J[699344]=0;ty(j+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break tc}J[c+92>>2]=i;uy(j+72228|0,J[j+72232>>2]);b=J[j+72256>>2];if(b){J[j+72260>>2]=b;uc(b)}b=J[j+72312>> +2];if(b){J[j+72316>>2]=b;uc(b)}b=J[j+72352>>2];if(b){J[j+72356>>2]=b;uc(b)}b=J[j+72392>>2];if(b){J[j+72396>>2]=b;uc(b)}b=J[j+72432>>2];if(b){J[j+72436>>2]=b;uc(b)}fc=j+144672|0;break Yb}}f=Z()|0;i=J[j+72232>>2]}uy(j+72228|0,i);a=J[j+72256>>2];if(a){J[j+72260>>2]=a;uc(a)}a=J[j+72312>>2];if(a){J[j+72316>>2]=a;uc(a)}a=J[j+72352>>2];if(a){J[j+72356>>2]=a;uc(a)}a=J[j+72392>>2];if(a){J[j+72396>>2]=a;uc(a)}a=J[j+72432>>2];if(a){J[j+72436>>2]=a;uc(a)}ba(f|0);B()}B()}if(K[a+1|0])break Ub;break Tb}g=Z()|0; +break Rb}b=K[a+31|0];e=b<<24>>24;vc:{wc:{xc:{f=(e|0)<0?J[a+24>>2]:b;b=f+5|0;if(b>>>0<1073741808){yc:{if(b>>>0<=1){J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;H[c+43|0]=b;g=c+32|0;break yc}g=b|3;if(g>>>0>=1073741823)break xc;i=g+1|0;g=vc(i<<2);J[c+36>>2]=b;J[c+32>>2]=g;J[c+40>>2]=i|-2147483648}a=a+20|0;b=(e|0)<0?J[a>>2]:a;a=f<<2;a=cd(g,b,a)+a|0;J[a+20>>2]=0;J[a+16>>2]=J[56722];b=J[56721];J[a+8>>2]=J[56720];J[a+12>>2]=b;b=J[56719];J[a>>2]=J[56718];J[a+4>>2]=b;J[699344]=0;a=c+16|0;J[a+12>>2]=0;J[a+4>>2]= +0;J[a+8>>2]=0;J[a>>2]=415588;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;e=aa(17,a|0,c+32|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break wc;zc:{if(!e){uc(d);J[699344]=0;$(1585,n|0);b=J[699344];J[699344]=0;if((b|0)!=1)break zc;break wc}J[699344]=0;ga(42,a|0,d|0,J[c+92>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break wc;J[699344]=0;$(21,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break wc}De(a);if(H[c+43|0]<0)uc(J[c+32>>2]);b=0;if(!e)break a;break Tb}g=Z()|0;break vc}_d(c+32|0);B()}Pd();B()}g=Z()| +0;De(a)}if(H[c+43|0]>=0)break Qb;uc(J[c+32>>2]);break Qb}uc(d)}b=(h|0)!=0;IE(n);break a}g=Z()|0;De(b)}if(H[c+27|0]>=0)break Qb;uc(J[c+16>>2]);ba(g|0);B()}ba(g|0);B()}b=Z()|0;De(a);ba(b|0);B()}b=0}fc=c+96|0;return b|0}function qw(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,L=0,O=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,ga=Q(0),ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0, +oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=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,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0;Aa=fc-16|0;fc=Aa;a:{b:{if(e){if(!a)break b;if(!f)break a;c:{if(!(K[a+8|0]&128)|J[a+192>>2]!=(b|0))break c;h=J[a+156>>2];Ha=h+P(b,5644)|0;r=J[Ha+5596>>2];if(!r){eB(Ha);break c}F=J[a+196>>2];t=J[a+76>>2];if(!t)t=J[a+72>>2];k=J[t>>2];g=J[t+4>>2];i=J[t+8>>2];j=J[t+12>>2];n=J[a+60>>2];m=J[a- -64>>2];Oa=h+P(b,5644)|0;l=J[Oa+5600>> +2];ua=fc-16|0;fc=ua;J[F+36>>2]=b;h=J[J[F+28>>2]+76>>2];J[F+64>>2]=1;J[F+60>>2]=j;J[F+56>>2]=i;J[F+52>>2]=g;J[F+48>>2]=k;J[F+32>>2]=h+P(b,5644);uc(J[F+68>>2]);J[F+68>>2]=0;d:{e:{f:{if(n){T=Ge(4,J[J[F+24>>2]+16>>2]);if(!T)break f;t=0;if(n>>>0>=4){b=n&-4;h=0;while(1){j=t<<2;J[(J[j+m>>2]<<2)+T>>2]=1;J[(J[m+(j|4)>>2]<<2)+T>>2]=1;J[(J[m+(j|8)>>2]<<2)+T>>2]=1;J[(J[m+(j|12)>>2]<<2)+T>>2]=1;t=t+4|0;h=h+4|0;if((b|0)!=(h|0))continue;break}}b=n&3;if(b)while(1){J[(J[m+(t<<2)>>2]<<2)+T>>2]=1;t=t+1|0;ja=ja+1|0; +if((b|0)!=(ja|0))continue;break}J[F+68>>2]=T}g:{h:{i=J[F+24>>2];ba=J[i+16>>2];i:{if(!ba)break i;t=0;j:{while(1){k:{if(J[(t<<2)+T>>2]?0:T)break k;m=J[i+24>>2]+P(t,52)|0;b=J[m>>2];if(!b)break e;k=b;j=k-1|0;b=J[F+48>>2];n=j+b|0;h=0-!k|0;n=xEb(n,b>>>0>n>>>0?h+1|0:h,k,0);b=J[m+4>>2];if(!b)break e;g=j;j=J[F+56>>2];m=g+j|0;k=xEb(m,j>>>0>m>>>0?h+1|0:h,k,0);m=b;j=b-1|0;b=J[F+60>>2];o=j+b|0;h=0-!m|0;b=xEb(o,b>>>0>o>>>0?h+1|0:h,m,0);g=j;j=J[F+52>>2];o=g+j|0;j=xEb(o,j>>>0>o>>>0?h+1|0:h,m,0);m=J[J[J[F+20>>2]>> +2]+20>>2]+P(t,76)|0;g=J[m+20>>2]-J[m+24>>2]|0;if(g>>>0>31)break k;h=n-J[m>>2]|0;l:{if((h>>>0<=n>>>0?h:0)>>>g|0)break l;h=j-J[m+4>>2]|0;if((h>>>0<=j>>>0?h:0)>>>g|0)break l;j=J[m+8>>2];h=j-k|0;if((h>>>0<=j>>>0?h:0)>>>g|0)break l;h=J[m+12>>2];b=h-b|0;if(!((b>>>0<=h>>>0?b:0)>>>g|0))break k}J[F+64>>2]=0;break j}t=t+1|0;if((ba|0)!=(t|0))continue;break}if(!J[F+64>>2])break j;if(!ba)break i;b=0;while(1){m=J[J[J[F+20>>2]>>2]+20>>2]+P(b,76)|0;h=(J[m+28>>2]+P(J[m+24>>2],152)|0)-152|0;n=J[h+4>>2];g=J[h+12>>2]; +i=J[h>>2];j=J[h+8>>2];h=J[F+68>>2];m:{if(J[h+(b<<2)>>2]?0:h)break m;k=g-n|0;j=j-i|0;n:{if((g|0)==(n|0))break n;vEb(k,0,j,0);if(!jc)break n;ja=0;Nc(f,1,2350151,0);break f}h=P(j,k);if(h>>>0>=1073741824){ja=0;Nc(f,1,2350151,0);break f}j=h<<2;J[m+44>>2]=j;o:{p:{q:{r:{h=J[m+36>>2];if(h){if(j>>>0<=M[m+48>>2])break m;if(J[m+40>>2])break r}h=ul(j);J[m+36>>2]=h;i=h;h=J[m+44>>2];if(!(h?i:1))break q;J[m+48>>2]=h;t=m+40|0;break o}t=m+40|0;uc(h);h=ul(J[m+44>>2]);J[m+36>>2]=h;if(h)break p;J[m+48>>2]=0;J[m+44>> +2]=0;J[m+40>>2]=0}ja=0;Nc(f,1,2350151,0);break f}J[m+48>>2]=J[m+44>>2]}J[t>>2]=1}b=b+1|0;i=J[F+24>>2];if(b>>>0>2])continue;break}break i}if(!ba)break i;p=J[i+24>>2];y=J[J[J[F+20>>2]>>2]+20>>2];h=0;while(1){s:{if(J[(h<<2)+T>>2]?0:T)break s;t=p+P(h,52)|0;j=J[t>>2];if(!j)break e;b=y+P(h,76)|0;k=J[b>>2];o=j;m=j-1|0;j=J[F+48>>2];q=m+j|0;n=0-!o|0;g=n;j=xEb(q,j>>>0>q>>>0?g+1|0:g,o,0);v=j>>>0>>0?k:j;J[b+56>>2]=v;j=J[t+4>>2];if(!j)break e;q=j;k=j-1|0;t=J[F+52>>2];x=k+t|0;j=0-!j|0;g=j;A=J[b+4>>2]; +g=xEb(x,t>>>0>x>>>0?g+1|0:g,q,0);t=g>>>0>>0?A:g;J[b+60>>2]=t;g=n;A=J[b+8>>2];n=m;m=J[F+56>>2];x=n+m|0;g=xEb(x,m>>>0>x>>>0?g+1|0:g,o,0);o=g>>>0>A>>>0?A:g;J[b+64>>2]=o;g=j;n=J[b+12>>2];j=k;k=J[F+60>>2];m=j+k|0;j=xEb(m,k>>>0>m>>>0?g+1|0:g,q,0);q=j>>>0>n>>>0?n:j;J[b+68>>2]=q;if(o>>>0>>0|q>>>0>>0)break h;m=J[b+20>>2];if(!m)break s;D=J[b+28>>2];n=v;u=0;v=0;k=0;while(1){j=D+P(v,152)|0;A=m+(u^-1)|0;b=A&31;if((A&63)>>>0>=32){g=-1<>>32-b;b=-1<>>0>x>>>0?g+1|0:g;L=A&31;if((A&63)>>>0>=32)g=g>>>L|0;else g=((1<>>L;J[j+148>>2]=g;g=b;x=o+w|0;g=x>>>0>>0?g+1|0:g;L=A&31;if((A&63)>>>0>=32)g=g>>>L|0;else g=((1<>>L;J[j+144>>2]=g;g=b;x=t+w|0;g=x>>>0>>0?g+1|0:g;L=A&31;if((A&63)>>>0>=32)g=g>>>L|0;else g=((1<>>L;J[j+140>>2]=g;g=b;b=n+w|0;g=b>>>0>>0?g+1|0:g;L=j;j=A&31;if((A&63)>>>0>=32)b=g>>>j|0;else b=((1<>>j;J[L+136>>2]=b;u=u+1|0;g=k;b=v+1|0;g=b?g:g+1|0;v=b;k=g;if((m| +0)!=(b|0)|g)continue;break}}h=h+1|0;if((ba|0)!=(h|0))continue;break}}ja=0;J[ua+8>>2]=0;b=J[F+28>>2];E=Ge(1,8);if(E){J[E+4>>2]=b;J[E>>2]=i}if(!E)break f;Z=J[J[F+20>>2]>>2];$=fc-80|0;fc=$;G=J[F+36>>2];b=P(G,5644);v=J[E+4>>2];ea=b+J[v+76>>2]|0;ca=J[ea+420>>2];_=J[E>>2];j=0;t=0;C=fc-32|0;fc=C;t:{u:{if(v){if(G>>>0>=P(J[v+28>>2],J[v+24>>2])>>>0)break u;ha=J[v+76>>2];ba=ha+b|0;ka=J[ba+420>>2];W=J[_+16>>2];q=ef(P(W,528));v:{if(!q)break v;h=ef(W<<2);w:{if(!h){h=q;break w}x:{y:{z:{if(G>>>0>2],J[v+ +24>>2])>>>0){k=J[v+76>>2];g=P(G,5644);o=J[(k+g|0)+420>>2];b=o+1|0;i=Ge(b,240);if(!i)break y;if(b){m=(g+k|0)+5584|0;O=J[_+16>>2];b=i;while(1){J[b+236>>2]=f;g=Ge(O,16);J[b+200>>2]=g;if(!g)break z;g=J[_+16>>2];J[b+196>>2]=g;p=0;O=0;if(g)while(1){n=J[b+200>>2]+(p<<4)|0;k=J[m>>2]+P(p,1080)|0;g=Ge(J[k+4>>2],16);J[n+12>>2]=g;if(!g)break z;J[n+8>>2]=J[k+4>>2];p=p+1|0;O=J[_+16>>2];if(p>>>0>>0)continue;break}b=b+240|0;g=(o|0)==(V|0);V=V+1|0;if(!g)continue;break}}b=i;break x}fa(2353604,2350871,1040,2373181); +B()}b=J[i+4>>2];if(b){uc(b);J[i+4>>2]=0}b=i;while(1){p=J[b+200>>2];if(p){O=0;V=J[b+196>>2];if(V){while(1){g=J[p+12>>2];if(g){uc(g);J[p+12>>2]=0;V=J[b+196>>2]}p=p+16|0;O=O+1|0;if(O>>>0>>0)continue;break}p=J[b+200>>2]}uc(p);J[b+200>>2]=0}b=b+240|0;g=(o|0)==(U|0);U=U+1|0;if(!g)continue;break}uc(i)}b=0}if(b){A:{if(!W)break A;i=q;if(W>>>0>=8){g=W&-8;while(1){k=z<<2;J[k+h>>2]=i;J[(k|4)+h>>2]=i+528;J[(k|8)+h>>2]=i+1056;J[(k|12)+h>>2]=i+1584;J[(k|16)+h>>2]=i+2112;J[(k|20)+h>>2]=i+2640;J[(k|24)+h>>2]=i+ +3168;J[(k|28)+h>>2]=i+3696;z=z+8|0;i=i+4224|0;j=j+8|0;if((g|0)!=(j|0))continue;break}}j=W&7;if(!j)break A;while(1){J[(z<<2)+h>>2]=i;z=z+1|0;i=i+528|0;s=s+1|0;if((j|0)!=(s|0))continue;break}}va=ka+1|0;D=h;O=0;B:{C:{j=J[v+24>>2];if(G>>>0>2])>>>0){i=J[(J[v+76>>2]+P(G,5644)|0)+5584>>2];h=J[_+24>>2];k=(G>>>0)/(j>>>0)|0;g=J[v+4>>2]+P(J[v+12>>2],G-P(k,j)|0)|0;j=J[_>>2];J[C+20>>2]=g>>>0>j>>>0?g:j;j=g+J[v+12>>2]|0;g=g>>>0>j>>>0?-1:j;j=J[_+8>>2];J[C+16>>2]=g>>>0>>0?g:j;g=J[v+8>>2]+P(k,J[v+16>> +2])|0;j=J[_+4>>2];J[C+12>>2]=g>>>0>j>>>0?g:j;j=g+J[v+16>>2]|0;g=g>>>0>j>>>0?-1:j;j=J[_+12>>2];J[C+8>>2]=g>>>0>>0?g:j;J[C+24>>2]=0;J[C+28>>2]=0;J[C+4>>2]=2147483647;J[C>>2]=2147483647;if(J[_+16>>2])while(1){j=D?J[D+(O<<2)>>2]:0;g=J[h>>2];if(!g)break C;v=g;m=g-1|0;k=J[C+20>>2];o=m+k|0;n=0-!g|0;g=n;o=xEb(o,k>>>0>o>>>0?g+1|0:g,v,0);k=J[h+4>>2];if(!k)break C;n=m;m=J[C+16>>2];A=n+m|0;n=xEb(A,m>>>0>A>>>0?g+1|0:g,v,0);A=k;v=k-1|0;k=J[C+8>>2];x=v+k|0;m=0-!A|0;g=m;k=xEb(x,k>>>0>x>>>0?g+1|0:g,A,0);y=v;v= +J[C+12>>2];x=y+v|0;g=xEb(x,v>>>0>x>>>0?g+1|0:g,A,0);m=J[i+4>>2];if(m>>>0>M[C+28>>2]){J[C+28>>2]=m;m=J[i+4>>2]}if(m){v=k;k=0;x=n;A=g;w=0;V=0;while(1){g=(V<<2)+i|0;n=J[g+944>>2];y=J[g+812>>2];p=0;if(j){J[j+4>>2]=n;J[j>>2]=y;p=j+8|0}m=m-1|0;u=y+m|0;D:{if(u>>>0>31)break D;j=J[h>>2];if(j>>>0>-1>>>u>>>0)break D;g=J[C+4>>2];j=j<>2]=g>>>0>>0?g:j}u=m+n|0;E:{if(u>>>0>31)break E;j=J[h+4>>2];if(j>>>0>-1>>>u>>>0)break E;g=J[C>>2];j=j<>2]=g>>>0>>0?g:j}j=0;u=m&31;if((m&63)>>>0>=32){g=-1<>>32-u;u=-1<>>0>L>>>0?g+1|0:g;z=0;u=L;L=m&31;if((m&63)>>>0>=32)L=g>>>L|0;else L=((1<>>L;u=n&31;if((n&63)>>>0>=32){g=1<>>32-u;u=s}aa=L+u|0;g=g+z|0;z=(u>>>0>aa>>>0?g+1|0:g)-!aa|0;g=aa-1|0;u=n&31;if((n&63)>>>0>=32)z=z>>>u|0;else z=((1<>>u;g=w+la|0;u=A+ma|0;g=u>>>0>>0?g+1|0:g;s=z;z=m&31;if((m&63)>>>0>=32)g=g>>>z|0;else g=((1<>>z;aa=(g|0)!=(L|0)?s-(g>>> +n|0)&-1>>>n:0;g=w+la|0;u=x+ma|0;g=u>>>0>>0?g+1|0:g;L=0;n=y;z=m&31;if((m&63)>>>0>=32)z=g>>>z|0;else z=((1<>>z;u=y&31;if((y&63)>>>0>=32){g=1<>>32-u;u=s}S=z+u|0;g=g+L|0;L=(u>>>0>S>>>0?g+1|0:g)-!S|0;g=S-1|0;u=n&31;if((n&63)>>>0>=32)u=L>>>u|0;else u=((1<>>u;g=w+la|0;n=o+ma|0;g=n>>>0>>0?g+1|0:g;L=u;u=m&31;if((m&63)>>>0>=32)g=g>>>u|0;else g=((1<>>u;g=(g|0)!=(z|0)?L-(g>>>y|0)&-1>>>y:0;if(p){J[p+4>>2]=aa;J[p>>2]=g;j=p+8|0}g= +P(g,aa);if(g>>>0>M[C+24>>2])J[C+24>>2]=g;V=V+1|0;if(V>>>0>2])continue;break}}h=h+52|0;i=i+1080|0;O=O+1|0;if(O>>>0>2])continue;break}break B}fa(2354040,2350871,916,2373195);B()}fa(2354487,2354721,172,2355230);B()}L=J[C+28>>2];w=J[C+24>>2];J[b+4>>2]=0;y=ha+P(G,5644)|0;j=J[y+8>>2]+1|0;x=P(w,W);u=P(x,L);vEb(j,0,u,0);F:{if(!jc){h=P(j,u);J[b+8>>2]=h;h=Ge(h,2);J[b+4>>2]=h;if(h)break F}uc(q);uc(D);h=J[b+4>>2];if(h){uc(h);J[b+4>>2]=0}if(!va){h=b;break w}j=0;m=b;while(1){i=J[m+200>>2];if(i){s= +0;z=J[m+196>>2];if(z){while(1){h=J[i+12>>2];if(h){uc(h);J[i+12>>2]=0;z=J[m+196>>2]}i=i+16|0;s=s+1|0;if(z>>>0>s>>>0)continue;break}i=J[m+200>>2]}uc(i);J[m+200>>2]=0}m=m+240|0;h=(j|0)==(ka|0);j=j+1|0;if(!h)continue;break}h=b;break w}h=J[_+24>>2];A=J[C+20>>2];J[b+204>>2]=A;v=J[C+12>>2];J[b+208>>2]=v;o=J[C+16>>2];J[b+212>>2]=o;k=J[C+8>>2];J[b+216>>2]=k;J[b+12>>2]=u;J[b+16>>2]=x;J[b+20>>2]=w;t=1;J[b+24>>2]=1;if(W){m=J[b+200>>2];j=h;while(1){i=J[D+(X<<2)>>2];J[m>>2]=J[j>>2];J[m+4>>2]=J[j+4>>2];n=J[m+8>> +2];G:{if(!n)break G;s=J[m+12>>2];if((n|0)!=1){g=n&-2;z=0;while(1){J[s>>2]=J[i>>2];J[s+4>>2]=J[i+4>>2];J[s+8>>2]=J[i+8>>2];J[s+12>>2]=J[i+12>>2];J[s+16>>2]=J[i+16>>2];J[s+20>>2]=J[i+20>>2];J[s+24>>2]=J[i+24>>2];J[s+28>>2]=J[i+28>>2];s=s+32|0;i=i+32|0;z=z+2|0;if((g|0)!=(z|0))continue;break}}if(!(n&1))break G;J[s>>2]=J[i>>2];J[s+4>>2]=J[i+4>>2];J[s+8>>2]=J[i+8>>2];J[s+12>>2]=J[i+12>>2]}j=j+52|0;m=m+16|0;X=X+1|0;if((W|0)!=(X|0))continue;break}}if(va>>>0>1){n=b;while(1){J[n+456>>2]=k;J[n+452>>2]=o;J[n+ +448>>2]=v;J[n+444>>2]=A;J[n+264>>2]=1;J[n+260>>2]=w;J[n+256>>2]=x;J[n+252>>2]=u;if(W){m=J[n+440>>2];X=0;j=h;while(1){i=J[D+(X<<2)>>2];J[m>>2]=J[j>>2];J[m+4>>2]=J[j+4>>2];p=J[m+8>>2];H:{if(!p)break H;s=J[m+12>>2];if((p|0)!=1){g=p&-2;z=0;while(1){J[s>>2]=J[i>>2];J[s+4>>2]=J[i+4>>2];J[s+8>>2]=J[i+8>>2];J[s+12>>2]=J[i+12>>2];J[s+16>>2]=J[i+16>>2];J[s+20>>2]=J[i+20>>2];J[s+24>>2]=J[i+24>>2];J[s+28>>2]=J[i+28>>2];s=s+32|0;i=i+32|0;z=z+2|0;if((g|0)!=(z|0))continue;break}}if(!(p&1))break H;J[s>>2]=J[i>>2]; +J[s+4>>2]=J[i+4>>2];J[s+8>>2]=J[i+8>>2];J[s+12>>2]=J[i+12>>2]}j=j+52|0;m=m+16|0;X=X+1|0;if((W|0)!=(X|0))continue;break}}j=J[n+8>>2];J[n+244>>2]=J[n+4>>2];J[n+248>>2]=j;j=(t|0)!=(ka|0);n=n+240|0;t=t+1|0;if(j)continue;break}}uc(q);uc(D);k=J[ba+420>>2];h=ha+P(G,5644)|0;I:{if(K[h+5640|0]&4){if((k|0)==-1)break I;s=h+424|0;j=J[y+8>>2];z=0;i=b;while(1){h=J[s+36>>2];J[i+44>>2]=1;J[i+84>>2]=h;J[i+48>>2]=J[s>>2];h=J[s+4>>2];J[i+68>>2]=0;J[i+72>>2]=0;J[i+52>>2]=h;J[i+60>>2]=J[s+12>>2];J[i- -64>>2]=J[s+16>>2]; +h=J[s+8>>2];J[i+76>>2]=w;J[i+56>>2]=h>>>0>>0?h:j;s=s+148|0;i=i+240|0;h=(k|0)==(z|0);z=z+1|0;if(!h)continue;break}break I}if((k|0)==-1)break I;g=J[(ha+P(G,5644)|0)+4>>2];j=J[y+8>>2];i=b;if(k){h=k+1&-2;s=0;while(1){J[i+44>>2]=1;J[i+48>>2]=0;J[i+68>>2]=0;J[i+72>>2]=0;J[i+52>>2]=0;J[i+84>>2]=g;J[i+60>>2]=L;J[i- -64>>2]=J[i+196>>2];J[i+324>>2]=g;J[i+76>>2]=w;J[i+56>>2]=j;J[i+308>>2]=0;J[i+312>>2]=0;J[i+292>>2]=0;J[i+284>>2]=1;J[i+288>>2]=0;J[i+300>>2]=L;J[i+296>>2]=j;J[i+316>>2]=w;J[i+304>>2]=J[i+436>> +2];i=i+480|0;s=s+2|0;if((h|0)!=(s|0))continue;break}}if(k&1)break I;J[i+44>>2]=1;J[i+48>>2]=0;J[i+68>>2]=0;J[i+72>>2]=0;J[i+52>>2]=0;J[i+84>>2]=g;J[i+60>>2]=L;J[i- -64>>2]=J[i+196>>2];J[i+76>>2]=w;J[i+56>>2]=j}t=b;break v}uc(q)}uc(h)}fc=C+32|0;break t}fa(2350009,2350871,1427,2373160);B()}fa(2352170,2350871,1429,2373160);B()}h=t;b=0;J:{if(!h)break J;D=ca+1|0;t=r;j=h;K:{L:{while(1){if(J[j+84>>2]==-1)break K;b=ef(J[_+16>>2]<<2);if(!b)break K;y=Ac(b,1,J[_+16>>2]<<2);if(wY(j))while(1){b=J[Z+20>>2];M:{N:{if(M[j+ +40>>2]>=M[ea+12>>2])break N;i=J[j+32>>2];g=P(J[j+28>>2],76)+b|0;if(i>>>0>=M[g+24>>2])break N;i=J[g+28>>2]+P(i,152)|0;if(!J[i+24>>2])break N;q=0;O:{while(1){b=i+P(q,36)|0;g=J[b+48>>2]+P(J[j+36>>2],40)|0;if(!tI(F,J[j+28>>2],J[j+32>>2],J[b+44>>2],J[g>>2],J[g+4>>2],J[g+8>>2],J[g+12>>2])){q=q+1|0;if(q>>>0>2])continue;break O}break}J[y+(J[j+28>>2]<<2)>>2]=0;b=J[E+4>>2];J[$+72>>2]=0;if(!rY(b,J[Z+20>>2],ea,j,$+76|0,t,$+72|0,l,f))break L;b=J[j+32>>2];U=J[j+28>>2];p=J[$+72>>2];if(J[$+76>>2]){J[$+72>> +2]=0;v=p+t|0;s=v;x=J[(J[Z+20>>2]+P(U,76)|0)+28>>2]+P(b,152)|0;q=J[x+24>>2];if(q){A=l+t|0;U=x+28|0;W=0;while(1){P:{if(J[U+8>>2]==J[U>>2]|J[U+12>>2]==J[U+4>>2])break P;b=J[U+20>>2]+P(J[j+36>>2],40)|0;o=P(J[b+20>>2],J[b+16>>2]);if(!o)break P;q=J[b+24>>2];O=0;while(1){m=J[q+32>>2];if(m){b=J[q>>2];g=J[q+36>>2];Q:{if(g){i=P(g,24)+b|0;b=i-24|0;if(J[b+4>>2]!=J[b+12>>2])break Q;b=i;i=g+1|0}else i=1;J[q+36>>2]=i}R:{i=J[b+20>>2];S:{if(i>>>0>(s^-1)>>>0|A>>>0>>0)break S;n=b+20|0;V=J[q+4>>2];G=J[q+52>>2]; +z=J[q+48>>2];while(1){if((z|0)!=(G|0))g=m;else{G=G<<1|1;V=ch(V,G<<3);if(!V){Nc(f,1,2356432,0);break L}J[q+52>>2]=G;J[q+4>>2]=V;z=J[q+48>>2];i=J[n>>2];g=J[q+32>>2]}k=(z<<3)+V|0;J[k+4>>2]=i;J[k>>2]=s;z=z+1|0;J[q+48>>2]=z;J[b>>2]=J[b>>2]+i;n=J[b+16>>2];k=n+J[b+4>>2]|0;J[b+4>>2]=k;m=g-n|0;J[q+32>>2]=m;J[b+8>>2]=k;s=i+s|0;if((g|0)==(n|0))break R;J[q+36>>2]=J[q+36>>2]+1;n=b+44|0;i=J[n>>2];if(i>>>0>(s^-1)>>>0)break S;b=b+24|0;if(A>>>0>=i+s>>>0)continue;break}}k=J[j+36>>2];g=J[j+28>>2];b=J[j+32>>2];J[$+48>> +2]=W;Va=$,Wa=AEb(g,b,32),J[Va+52>>2]=Wa;J[$+56>>2]=jc;J[$+36>>2]=l-p;J[$+40>>2]=O;J[$+44>>2]=k;J[$+32>>2]=i;Nc(f,1,2356347,$+32|0);break L}J[q+40>>2]=J[q+36>>2]}q=q+60|0;O=O+1|0;if((o|0)!=(O|0))continue;break}q=J[x+24>>2]}U=U+36|0;W=W+1|0;if(W>>>0>>0)continue;break}U=J[j+28>>2];b=J[j+32>>2]}p=(p-v|0)+s|0}i=J[_+24>>2]+P(U,52)|0;g=J[i+36>>2];J[i+36>>2]=b>>>0>g>>>0?b:g;break M}b=J[Z+20>>2]}i=J[E+4>>2];J[$+72>>2]=0;if(!rY(i,b,ea,j,$+76|0,t,$+72|0,l,f))break L;U=J[j+28>>2];p=J[$+72>>2];if(!J[$+76>> +2])break M;o=J[j+32>>2];b=J[(J[Z+20>>2]+P(U,76)|0)+28>>2]+P(o,152)|0;m=J[b+24>>2];T:{if(!m){q=0;break T}x=l-p|0;G=b+28|0;A=J[j+36>>2];q=0;W=0;while(1){U:{if(J[G+8>>2]==J[G>>2]|J[G+12>>2]==J[G+4>>2])break U;b=J[G+20>>2]+P(A,40)|0;k=P(J[b+20>>2],J[b+16>>2]);if(!k)break U;n=J[b+24>>2];O=0;while(1){i=J[n+32>>2];if(i){b=J[n>>2];z=J[n+36>>2];V:{if(z){b=P(z,24)+b|0;g=b-24|0;if(J[g+4>>2]!=J[g+12>>2]){b=g;break V}z=z+1|0}else z=1;J[n+36>>2]=z}W:{s=J[b+20>>2];q=s+q|0;if(!(q>>>0>>0|q>>>0>x>>>0)){while(1){v= +J[b+16>>2];J[b+4>>2]=v+J[b+4>>2];g=i-v|0;if((i|0)==(v|0))break W;z=z+1|0;J[n+36>>2]=z;s=J[b+44>>2];q=s+q|0;if(q>>>0>=s>>>0){b=b+24|0;i=g;if(q>>>0<=x>>>0)continue}break}J[n+32>>2]=g}J[$+24>>2]=U;J[$+20>>2]=o;J[$+16>>2]=W;J[$+12>>2]=A;J[$+8>>2]=O;J[$+4>>2]=x;J[$>>2]=s;Nc(f,1,2357125,$);break L}J[n+32>>2]=g}n=n+60|0;O=O+1|0;if((k|0)!=(O|0))continue;break}}G=G+36|0;W=W+1|0;if((m|0)!=(W|0))continue;break}}p=p+q|0}X:{if(!J[y+(U<<2)>>2])break X;b=J[_+24>>2]+P(U,52)|0;if(J[b+36>>2])break X;J[b+36>>2]=J[(J[Z+ +20>>2]+P(U,76)|0)+24>>2]-1}l=l-p|0;t=p+t|0;if(wY(j))continue;break}uc(y);j=j+240|0;oa=oa+1|0;if(oa>>>0<=M[ea+420>>2])continue;break}uI(h,D);J[ua+8>>2]=t-r;b=1;break J}uI(h,D);uc(y);b=0;break J}uI(h,D);b=0}fc=$+80|0;Mc(E);if(!b)break f;t=J[J[F+32>>2]+5584>>2];A=J[J[F+20>>2]>>2];u=J[A+20>>2];J[ua+12>>2]=1;b=0;l=0;h=J[F+32>>2];l=J[h+12>>2]==J[h+8>>2]?J[t+16>>2]>>>4&1:l;ja=J[A+16>>2];Y:{if(!ja)break Y;while(1){h=J[F+68>>2];if(!(J[h+(b<<2)>>2]?0:h)){m=ua+12|0;n=0;h=J[u+24>>2];Z:{if(!h)break Z;v=J[F+44>> +2];while(1){r=J[u+28>>2]+P(n,152)|0;o=J[r+24>>2];if(o){h=J[r+20>>2];i=J[r+16>>2];y=0;while(1){if(P(h,i)){x=r+P(y,36)|0;k=x+28|0;q=0;while(1){D=J[x+48>>2]+P(q,40)|0;h=tI(F,J[u+16>>2],n,J[x+44>>2],J[D>>2],J[D+4>>2],J[D+8>>2],J[D+12>>2]);i=J[D+20>>2];o=J[D+16>>2];j=P(i,o);_:{if(h){if(!j)break _;o=0;while(1){j=J[D+24>>2]+P(o,60)|0;$:{if(!tI(F,J[u+16>>2],n,J[x+44>>2],J[j+8>>2],J[j+12>>2],J[j+16>>2],J[j+20>>2])){h=J[j+56>>2];if(!h)break $;uc(h);J[j+56>>2]=0;break $}if(!J[F+64>>2])if(J[j+56>>2]|J[j+16>> +2]==J[j+8>>2]|J[j+20>>2]==J[j+12>>2])break $;i=Ge(1,44);if(!i){J[ua+12>>2]=0;break Z}h=J[F+64>>2];J[i+36>>2]=0;J[i+28>>2]=m;J[i+20>>2]=t;J[i+16>>2]=u;J[i+12>>2]=k;J[i+8>>2]=j;J[i+4>>2]=n;J[i>>2]=h;J[i+40>>2]=l;J[i+32>>2]=f;J[i+24>>2]=J[v+4>>2]>1;pw(v,4852,i);if(!J[ua+12>>2])break Z}o=o+1|0;if(o>>>0>2],J[D+16>>2])>>>0)continue;break}break _}if(!j)break _;h=0;while(1){g=J[D+24>>2]+P(h,60)|0;j=J[g+56>>2];if(j){uc(j);J[g+56>>2]=0;o=J[D+16>>2];i=J[D+20>>2]}h=h+1|0;if(h>>>0>>0)continue; +break}}q=q+1|0;i=J[r+16>>2];h=J[r+20>>2];if(q>>>0>>0)continue;break}o=J[r+24>>2]}y=y+1|0;if(y>>>0>>0)continue;break}h=J[u+24>>2]}n=n+1|0;if(n>>>0>>0)continue;break}}if(!J[ua+12>>2])break Y;ja=J[A+16>>2]}t=t+1080|0;u=u+76|0;b=b+1|0;if(ja>>>0>b>>>0)continue;break}}ja=0;Jm(J[F+44>>2]);if(!J[ua+12>>2])break f;aa:{if(J[F+64>>2])break aa;u=J[F+24>>2];if(!J[u+16>>2])break aa;t=0;while(1){l=J[J[J[F+20>>2]>>2]+20>>2]+P(t,76)|0;b=J[l+28>>2]+P(J[(J[u+24>>2]+P(t,52)|0)+36>>2],152)|0;g=J[b+136>> +2];i=J[b+144>>2];j=J[b+140>>2];h=J[b+148>>2];uc(J[l+52>>2]);J[l+52>>2]=0;ba:{b=J[F+68>>2];if((g|0)==(i|0)|(J[b+(t<<2)>>2]?0:b)|(h|0)==(j|0))break ba;j=h-j|0;h=i-g|0;vEb(j,0,h,0);if(jc){Nc(f,1,2350151,0);break f}b=P(h,j);if(b>>>0>=1073741824){Nc(f,1,2350151,0);break f}b=ul(b<<2);J[l+52>>2]=b;if(b)break ba;Nc(f,1,2350151,0);break f}t=t+1|0;u=J[F+24>>2];if(t>>>0>2])continue;break}}u=J[F+32>>2];Y=J[J[F+20>>2]>>2];if(J[Y+16>>2]){t=J[Y+20>>2];u=J[u+5584>>2];b=J[J[F+24>>2]+24>>2];T=0;while(1){ca:{h= +J[F+68>>2];if(J[h+(T<<2)>>2]?0:h)break ca;h=J[b+36>>2]+1|0;if(J[u+20>>2]==1){ea=h;h=0;ia=fc-32|0;fc=ia;da:{ea:{if(J[F+64>>2]){l=1;if((ea|0)==1)break da;h=J[t+28>>2];s=ea-1|0;m=s&1;y=J[F+44>>2];fa:{if((ea|0)==2){n=0;i=h;break fa}k=s&-2;n=0;i=h;l=0;while(1){j=J[i+160>>2]-J[i+152>>2]|0;g=j>>>0>>0?n:j;j=J[i+164>>2]-J[i+156>>2]|0;g=g>>>0>j>>>0?g:j;j=J[i+312>>2]-J[i+304>>2]|0;g=g>>>0>j>>>0?g:j;j=J[i+316>>2]-J[i+308>>2]|0;n=g>>>0>j>>>0?g:j;i=i+304|0;l=l+2|0;if((k|0)!=(l|0))continue;break}}l=0;if(m){j= +J[i+160>>2]-J[i+152>>2]|0;g=j>>>0>>0?n:j;j=J[i+164>>2]-J[i+156>>2]|0;n=g>>>0>j>>>0?g:j}if(n>>>0>134217727)break da;j=(P(J[t+24>>2],152)+h|0)-152|0;o=J[j>>2];m=J[j+8>>2];k=J[h+4>>2];j=J[h+12>>2];g=J[h>>2];i=J[h+8>>2];r=J[y+4>>2];v=n<<5;D=cB(v);J[ia+16>>2]=D;if(!D)break da;J[ia>>2]=D;if(s){x=m-o|0;j=j-k|0;o=i-g|0;while(1){A=J[t+36>>2];g=j;J[ia+8>>2]=g;j=o;J[ia+24>>2]=j;m=J[h+156>>2];n=J[h+164>>2];l=J[h+160>>2];i=J[h+152>>2];J[ia+28>>2]=(i|0)%2;o=l-i|0;J[ia+20>>2]=o-j;k=(r|0)<2;j=n-m|0;ga:{if(!(!k& +j>>>0>1)){i=0;if(!j)break ga;while(1){nZ(ia+16|0,A+(P(i,x)<<2)|0);i=i+1|0;if((j|0)!=(i|0))continue;break}break ga}q=j>>>0>>0?j:r;l=q-1|0;m=(j>>>0)/(q>>>0)|0;n=0;while(1){p=ef(36);if(!p)break ea;i=J[ia+20>>2];J[p>>2]=J[ia+16>>2];J[p+4>>2]=i;i=J[ia+28>>2];J[p+8>>2]=J[ia+24>>2];J[p+12>>2]=i;J[p+28>>2]=P(m,n);J[p+24>>2]=A;J[p+20>>2]=x;J[p+16>>2]=o;i=(l|0)==(n|0);n=n+1|0;J[p+32>>2]=i?j:P(m,n);i=cB(v);J[p>>2]=i;if(!i){l=0;Jm(y);uc(p);uc(D);break da}pw(y,4810,p);if((n|0)!=(q|0))continue;break}Jm(y)}J[ia+ +4>>2]=j-g;J[ia+12>>2]=J[h+156>>2]%2;ha:{if(!(!k&o>>>0>1)){n=8;i=0;if(o>>>0>=8)while(1){jB(ia,A+(i<<2)|0,x,8);i=n;n=i+8|0;if(n>>>0<=o>>>0)continue;break}if(i>>>0>=o>>>0)break ha;jB(ia,A+(i<<2)|0,x,o-i|0);break ha}k=o>>>0>>0?o:r;g=k-1|0;l=(o>>>0)/(k>>>0)|0;n=0;while(1){m=ef(36);if(!m)break ea;i=J[ia+4>>2];J[m>>2]=J[ia>>2];J[m+4>>2]=i;i=J[ia+12>>2];J[m+8>>2]=J[ia+8>>2];J[m+12>>2]=i;J[m+28>>2]=P(l,n);J[m+24>>2]=A;J[m+20>>2]=x;J[m+16>>2]=j;i=(g|0)==(n|0);n=n+1|0;J[m+32>>2]=i?o:P(l,n);i=cB(v);J[m>>2]= +i;if(!i){l=0;Jm(y);uc(m);uc(D);break da}pw(y,4811,m);if((k|0)!=(n|0))continue;break}Jm(y)}h=h+152|0;s=s-1|0;if(s)continue;break}}l=1;uc(D);break da}l=1;o=J[t+28>>2];La=o+P(ea,152)|0;ya=La-152|0;if(J[ya>>2]==J[ya+8>>2]|J[ya+4>>2]==J[ya+12>>2])break da;y=J[o+4>>2];D=J[o+12>>2];r=J[o>>2];m=J[o+8>>2];x=J[t+68>>2];A=J[t+64>>2];v=J[t+60>>2];q=J[t+56>>2];sa=kZ(t,ea);if(!sa){l=0;break da}ia:{ja:{ka:{la:{if((ea|0)==1){l=La-152|0;g=J[l+136>>2];i=J[ya>>2];j=J[ya+4>>2];h=J[l+144>>2];if(!tl(sa,g-i|0,J[l+140>> +2]-j|0,h-i|0,J[l+148>>2]-j|0,J[t+52>>2],1,h-g|0))break la;Ko(sa);l=1;break da}j=ea-1|0;n=j&1;ma:{if((ea|0)==2){l=0;i=o;break ma}k=j&-2;l=0;i=o;while(1){j=J[i+160>>2]-J[i+152>>2]|0;g=j>>>0>>0?l:j;j=J[i+164>>2]-J[i+156>>2]|0;g=g>>>0>j>>>0?g:j;j=J[i+312>>2]-J[i+304>>2]|0;g=g>>>0>j>>>0?g:j;j=J[i+316>>2]-J[i+308>>2]|0;l=g>>>0>j>>>0?g:j;i=i+304|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(n){h=J[i+160>>2]-J[i+152>>2]|0;j=h>>>0>>0?l:h;h=J[i+164>>2]-J[i+156>>2]|0;l=h>>>0>>0?j:h}if(l>>>0>=268435456)break ia; +p=cB(l<<4);if(!p)break ia;if(ea>>>0<2)break ka;U=D-y|0;G=m-r|0;Ba=p-4|0;S=p+28|0;va=p+24|0;Ea=p+16|0;Fa=p-16|0;Pa=p-32|0;Qa=p-8|0;m=p+4|0;Ga=1;na:while(1){j=J[o+156>>2];ha=J[o+164>>2]-j|0;ta=ha-U|0;h=J[o+152>>2];Ca=(h|0)%2|0;Ia=(j|0)%2|0;ka=J[o+160>>2]-h|0;pa=ka-G|0;s=q;h=q;i=v;j=i;l=A;y=l;n=x;z=n;g=J[t+20>>2];oa:{if((g|0)==(Ga|0))break oa;k=g-Ga|0;j=0;h=0;if(q){h=k&31;if((k&63)>>>0>=32){g=-1<>>32-h;h=-1<>>0>>0?g+1|0:g;i=k&31;if((k&63)>>> +0>=32)h=g>>>i|0;else h=((1<>>i}if(v){j=k&31;if((k&63)>>>0>=32){g=-1<>>32-j}j=v+(i^-1)|0;g=g^-1;g=j>>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)j=g>>>i|0;else j=((1<>>i}n=0;l=0;if(A){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>>0?g+1|0:g;l=k&31;if((k&63)>>>0>=32)l=g>>>l|0;else l=((1<>>l}if(x){i=k&31;if((k&63)>>>0>=32){g=-1<>> +32-i;i=-1<>>0>>0?g+1|0:g;n=k&31;if((k&63)>>>0>=32)n=g>>>n|0;else n=((1<>>n}y=0;s=0;D=1<>>0>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>r>>>0?g+1|0:g;i=r;r=k&31;if((k&63)>>>0>=32)s=g>>>r|0;else s=((1<>>r}if(A>>>0>D>>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>r>>>0?g+1|0: +g;i=r;r=k&31;if((k&63)>>>0>=32)y=g>>>r|0;else y=((1<>>r}z=0;i=0;if(v>>>0>D>>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>r>>>0?g+1|0:g;i=r;r=k&31;if((k&63)>>>0>=32)i=g>>>r|0;else i=((1<>>r}if(x>>>0<=D>>>0)break oa;r=k&31;if((k&63)>>>0>=32){g=-1<>>32-r;r=-1<>>0>D>>>0?g+1|0:g;r=D;D=k&31;if((k&63)>>>0>=32)z=g>>>D|0;else z=((1<>>D}r=J[o+180>>2];g=y-r|0;k=g>>>0<=y>>>0?g:0;g=k+2|0;g=g>>>0>>0?-1:g;wa=g>>>0>>0?g:pa;k=J[o+216>>2];g=l-k|0;l=g>>>0<=l>>>0?g:0;g=l+2|0;g=g>>>0>>0?-1:g;xa=g>>>0>>0?g:G;l=(Ca?wa:xa)<<1;g=(Ca?xa:wa)<<1|1;Ma=g>>>0>>0?l:g;ba=Ma>>>0>>0;g=s-r|0;l=g>>>0<=s>>>0?g:0;g=l-2|0;r=g>>>0<=l>>>0?g:0;g=h-k|0;g=g>>>0<=h>>>0?g:0;h=g-2|0;y=g>>>0>=h>>>0?h:0;w=(Ca?r:y)<<1;L=(Ca?y:r)<<1|1;oa=w>>>0>>0;D=J[o+184>>2];h=j-D|0;j=h>>>0<=j>>>0?h:0;h=j-2|0;k=h>>>0<=j>>>0?h:0;aa=k;l=J[o+220>>2]; +h=i-l|0;j=h>>>0<=i>>>0?h:0;h=j-2|0;g=h>>>0<=j>>>0?h:0;ca=g;h=n-D|0;j=h>>>0<=n>>>0?h:0;h=j+2|0;h=h>>>0>>0?-1:h;D=h>>>0>>0?h:U;V=D;h=z-l|0;j=h>>>0<=z>>>0?h:0;h=j+2|0;h=h>>>0>>0?-1:h;_=h>>>0>>0?h:ta;n=_;if(Ia){ca=k;V=n;aa=g;n=D}Ja=ba?Ma:ka;W=oa?w:L;Ra=U+_|0;Sa=g+U|0;if(ha){Ka=p+(y<<3)|0;i=pa<<3;L=i+Ba|0;j=(y|0)<(pa|0);Ua=j?Ka+4|0:L;ma=(G|0)>(wa|0)?wa:G-1|0;z=0;da=(G|0)>1|(pa|0)>0;na=ba&(ka|0)!=0;h=Ca<<2;qa=(m-h|0)+(r<<3)|0;ra=h+Ka|0;la=(pa|0)>(xa|0)?xa:pa;oa=y+1|0;za=G+wa|0;Da=r+G|0;$=p+ +(W<<2)|0;h=G<<3;X=h+Qa|0;Ta=h+Ba|0;ba=i+Qa|0;C=!G&(pa|0)==1;h=Ja<<2;O=h+p|0;E=h+Ba|0;Z=Ba+((j?y:pa)<<3)|0;while(1){pa:{if(!(z>>>0>>0&k>>>0<=z>>>0|z>>>0>>0&z>>>0>=Sa>>>0)){i=z+1|0;break pa}if(na)J[E>>2]=0;if(ka>>>0>Ma>>>0)J[O>>2]=0;qa:{ra:{sa:{ta:{ua:{va:{i=z+1|0;if(tl(sa,y,z,xa,i,ra,2,0)){if(!tl(sa,Da,z,za,i,qa,2,0))break va;if(!Ca){if(!da)break qa;if((y|0)>=(xa|0))break ra;wa:{xa:{if((y|0)>0){l=J[Z>>2];break xa}l=J[m>>2];h=l;if((y|0)<0)break wa}h=l;l=J[Ua>>2]}J[Ka>>2]=J[Ka>>2]-((h+l|0)+2>> +2);j=y;l=oa;h=l;if((la|0)<=(h|0))break sa;while(1){l=p+(h<<3)|0;J[l>>2]=J[l>>2]-((J[(p+(j<<3)|0)+4>>2]+J[l+4>>2]|0)+2>>2);j=h;h=h+1|0;if((la|0)!=(h|0))continue;break}l=la;break sa}if(C)break ua;h=y;if((xa|0)<=(h|0))break ta;while(1){w=h;ya:{za:{if((h|0)>=0){s=J[((h|0)<(pa|0)?p+(h<<3)|0:ba)>>2];j=h+1|0;break za}s=J[p>>2];j=0;h=w+1|0;l=p;if(h)break ya}if((j|0)>=(pa|0)){h=j;l=ba;break ya}h=j;l=p+(h<<3)|0}j=p+(w<<3)|0;J[j+4>>2]=J[j+4>>2]-((J[l>>2]+s|0)+2>>2);if((h|0)<(xa|0))continue;break}break ta}fa(2354036, +2350512,2242,2354406);B()}fa(2354036,2350512,2248,2354406);B()}J[p>>2]=J[p>>2]/2;break qa}l=r;if((wa|0)<=(l|0))break qa;while(1){s=l<<1;Aa:{if((l|0)<0){j=J[m>>2];h=m;break Aa}w=s<<2;j=J[((l|0)<(G|0)?p+(w|4)|0:Ta)>>2];h=m;if(!l)break Aa;h=(l|0)>(G|0)?Ta:w+Ba|0}w=p+(s<<2)|0;J[w>>2]=J[w>>2]+(J[h>>2]+j>>1);l=l+1|0;if((wa|0)!=(l|0))continue;break}break qa}if((l|0)>=(xa|0))break ra;while(1){h=p+(l<<3)|0;s=h;w=J[h>>2];Ba:{Ca:{if((l|0)>0){j=J[Ba+(((l|0)<(pa|0)?l:pa)<<3)>>2];break Ca}j=J[m>>2];h=m;if((l|0)< +0)break Ba}h=L;if((l|0)>=(pa|0))break Ba;h=(p+(l<<3)|0)+4|0}J[s>>2]=w-((J[h>>2]+j|0)+2>>2);l=l+1|0;if((xa|0)!=(l|0))continue;break}}if((r|0)>=(wa|0))break qa;h=r;l=h;if((h|0)<(ma|0)){while(1){h=p+(l<<3)|0;l=l+1|0;J[h+4>>2]=J[h+4>>2]+(J[p+(l<<3)>>2]+J[h>>2]>>1);if((l|0)!=(ma|0))continue;break}h=ma}if((h|0)>=(wa|0))break qa;while(1){w=h;Da:{Ea:{if((h|0)>=0){s=J[((h|0)<(G|0)?p+(h<<3)|0:X)>>2];j=h+1|0;break Ea}s=J[p>>2];j=0;h=w+1|0;l=p;if(h)break Da}if((j|0)>=(G|0)){h=j;l=X;break Da}h=j;l=p+(h<<3)|0}j= +p+(w<<3)|0;J[j+4>>2]=J[j+4>>2]+(J[l>>2]+s>>1);if((h|0)<(wa|0))continue;break}}if(!Jt(sa,W,z,Ja,i,$,1,0))break ja}z=i;if((i|0)!=(ha|0))continue;break}}o=o+152|0;j=V<<1;h=n<<1|1;h=h>>>0>>0?j:h;C=h>>>0>>0?h:ha;na=p+(k<<5)|0;i=ta<<5;za=i+Fa|0;h=(k|0)<(ta|0);Da=h?na+16|0:za;O=(k|0)<0?Ea:Da;L=(U|0)>(_|0)?_:U-1|0;$=((h?k:ta)<<5)+Fa|0;E=(k|0)<=0;Z=E?Ea:$;s=(ta|0)>0;G=s|(U|0)>1;ma=na+(Ia<<4)|0;la=(p+(4-(Ia<<2)<<2)|0)+(g<<5)|0;oa=(D|0)<(ta|0)?D:ta;y=k+1|0;j=aa<<1;h=ca<<1|1;V=h>>>0>j>>>0?j:h;X=p+(V<< +4)|0;h=U<<5;qa=h+Pa|0;aa=h+Fa|0;ra=i+Pa|0;ba=!U&(ta|0)==1;r=$+12|0;n=$+8|0;while(1){Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{z=W;if(z>>>0>>0){h=Ja-z|0;W=z+(h>>>0>=4?4:h)|0;if(!tl(sa,z,k,W,D,ma,1,8))break Ka;if(!tl(sa,z,Sa,W,Ra,la,1,8))break Ja;if(!Ia){if(!G)break Fa;if((k|0)>=(D|0))break Ga;J[na>>2]=J[na>>2]-((J[Z>>2]+J[O>>2]|0)+2>>2);La:{if(!E){l=J[$+4>>2];j=n;h=r;break La}l=J[p+20>>2];if((k|0)<0)break Ia;j=va;h=S}J[na+4>>2]=J[na+4>>2]-((J[Da+4>>2]+l|0)+2>>2);J[na+8>>2]=J[na+8>>2]-((J[j>>2]+J[Da+8>>2]|0)+2>> +2);l=J[Da+12>>2];h=J[h>>2];break Ha}if(ba){J[p>>2]=J[p>>2]/2;J[p+4>>2]=J[p+4>>2]/2;J[p+8>>2]=J[p+8>>2]/2;J[p+12>>2]=J[p+12>>2]/2;break Fa}h=k;if((D|0)>(h|0))while(1){j=p+(h<<5)|0;Ma:{if((h|0)<0){l=J[p>>2];ca=s|(h|0)!=-1;J[j+16>>2]=J[j+16>>2]-((l+(ca?l:J[ra>>2])|0)+2>>2);l=J[m>>2];J[j+20>>2]=J[j+20>>2]-((l+(ca?l:J[ra+4>>2])|0)+2>>2);l=J[p+8>>2];J[j+24>>2]=J[j+24>>2]-((l+(ca?l:J[ra+8>>2])|0)+2>>2);l=J[p+12>>2];J[j+28>>2]=J[j+28>>2]-((l+(ca?l:J[ra+12>>2])|0)+2>>2);h=h+1|0;break Ma}i=h+1|0;Na:{if((i| +0)<(ta|0)){h=p+(i<<5)|0;J[j+16>>2]=J[j+16>>2]-((J[j>>2]+J[h>>2]|0)+2>>2);J[j+20>>2]=J[j+20>>2]-((J[j+4>>2]+J[h+4>>2]|0)+2>>2);J[j+24>>2]=J[j+24>>2]-((J[j+8>>2]+J[h+8>>2]|0)+2>>2);J[j+28>>2]=J[j+28>>2]-((J[j+12>>2]+J[h+12>>2]|0)+2>>2);break Na}if((h|0)>=(ta|0)){J[j+16>>2]=J[j+16>>2]-((J[ra>>2]<<1)+2>>2);J[j+20>>2]=J[j+20>>2]-((J[ra+4>>2]<<1)+2>>2);J[j+24>>2]=J[j+24>>2]-((J[ra+8>>2]<<1)+2>>2);J[j+28>>2]=J[j+28>>2]-((J[ra+12>>2]<<1)+2>>2);break Na}J[j+16>>2]=J[j+16>>2]-((J[j>>2]+J[ra>>2]|0)+2>>2);J[j+ +20>>2]=J[j+20>>2]-((J[j+4>>2]+J[ra+4>>2]|0)+2>>2);J[j+24>>2]=J[j+24>>2]-((J[j+8>>2]+J[ra+8>>2]|0)+2>>2);J[j+28>>2]=J[j+28>>2]-((J[j+12>>2]+J[ra+12>>2]|0)+2>>2)}h=i}if((D|0)!=(h|0))continue;break}h=g;if((_|0)<=(h|0))break Fa;while(1){i=h<<5;j=i+p|0;Oa:{if((h|0)<0){J[j>>2]=J[j>>2]+J[Ea>>2];J[j+4>>2]=J[j+4>>2]+J[p+20>>2];J[j+8>>2]=J[j+8>>2]+J[p+24>>2];i=J[p+28>>2];break Oa}l=j+16|0;if(!h){i=(h|0)<(U|0)?l:aa;J[j>>2]=J[j>>2]+(J[Ea>>2]+J[i>>2]>>1);J[j+4>>2]=J[j+4>>2]+(J[p+20>>2]+J[i+4>>2]>>1);J[j+8>>2]= +J[j+8>>2]+(J[p+24>>2]+J[i+8>>2]>>1);i=J[p+28>>2]+J[i+12>>2]>>1;break Oa}if((h|0)<=(U|0)){w=i+Fa|0;i=(h|0)<(U|0)?l:aa;J[j>>2]=J[j>>2]+(J[w>>2]+J[i>>2]>>1);J[j+4>>2]=J[j+4>>2]+(J[w+4>>2]+J[i+4>>2]>>1);J[j+8>>2]=J[j+8>>2]+(J[w+8>>2]+J[i+8>>2]>>1);i=J[w+12>>2]+J[i+12>>2]>>1;break Oa}J[j>>2]=J[j>>2]+J[aa>>2];J[j+4>>2]=J[j+4>>2]+J[aa+4>>2];J[j+8>>2]=J[j+8>>2]+J[aa+8>>2];i=J[aa+12>>2]}J[j+12>>2]=i+J[j+12>>2];h=h+1|0;if((_|0)!=(h|0))continue;break}break Fa}G=ka;U=ha;Ga=Ga+1|0;if((ea|0)!=(Ga|0))continue na; +break ka}fa(2354036,2350512,2270,2354435);B()}fa(2354036,2350512,2276,2354435);B()}J[na+4>>2]=J[na+4>>2]-((l<<1)+2>>2);J[na+8>>2]=J[na+8>>2]-((J[va>>2]<<1)+2>>2);l=J[S>>2];h=l}J[na+12>>2]=J[na+12>>2]-((h+l|0)+2>>2);i=k;h=y;l=h;if((h|0)<(oa|0)){while(1){l=p+(h<<5)|0;j=p+(i<<5)|0;J[l>>2]=J[l>>2]-((J[j+16>>2]+J[l+16>>2]|0)+2>>2);J[l+4>>2]=J[l+4>>2]-((J[j+20>>2]+J[l+20>>2]|0)+2>>2);J[l+8>>2]=J[l+8>>2]-((J[j+24>>2]+J[l+24>>2]|0)+2>>2);J[l+12>>2]=J[l+12>>2]-((J[j+28>>2]+J[l+28>>2]|0)+2>>2);i=h;h=h+1|0; +if((oa|0)!=(h|0))continue;break}l=oa}if((l|0)>=(D|0))break Ga;while(1){da=p+(l<<5)|0;w=da+16|0;i=(l|0)<(ta|0);Pa:{if((l|0)<=0){h=J[Ea>>2];if((l|0)>=0){j=i?w:za;J[da>>2]=J[da>>2]-((h+J[j>>2]|0)+2>>2);J[da+4>>2]=J[da+4>>2]-((J[p+20>>2]+J[j+4>>2]|0)+2>>2);J[da+8>>2]=J[da+8>>2]-((J[p+24>>2]+J[j+8>>2]|0)+2>>2);h=(J[p+28>>2]+J[j+12>>2]|0)+2|0;break Pa}J[da>>2]=J[da>>2]-((h<<1)+2>>2);J[da+4>>2]=J[da+4>>2]-((J[p+20>>2]<<1)+2>>2);J[da+8>>2]=J[da+8>>2]-((J[p+24>>2]<<1)+2>>2);h=(J[p+28>>2]<<1)+2|0;break Pa}ca= +((i?l:ta)<<5)+Fa|0;j=J[ca>>2]+2|0;h=J[da>>2];if(!i){J[da>>2]=h-(j+J[za>>2]>>2);J[da+4>>2]=J[da+4>>2]-((J[ca+4>>2]+J[za+4>>2]|0)+2>>2);J[da+8>>2]=J[da+8>>2]-((J[ca+8>>2]+J[za+8>>2]|0)+2>>2);h=(J[ca+12>>2]+J[za+12>>2]|0)+2|0;break Pa}J[da>>2]=h-(j+J[w>>2]>>2);J[da+4>>2]=J[da+4>>2]-((J[ca+4>>2]+J[w+4>>2]|0)+2>>2);J[da+8>>2]=J[da+8>>2]-((J[ca+8>>2]+J[w+8>>2]|0)+2>>2);h=(J[ca+12>>2]+J[w+12>>2]|0)+2|0}J[da+12>>2]=J[da+12>>2]-(h>>2);l=l+1|0;if((D|0)!=(l|0))continue;break}}if((g|0)>=(_|0))break Fa;j=g;h= +g;if((L|0)>(h|0)){while(1){h=p+(j<<5)|0;J[h+16>>2]=J[h+16>>2]+(J[h+32>>2]+J[h>>2]>>1);J[h+20>>2]=J[h+20>>2]+(J[h+36>>2]+J[h+4>>2]>>1);J[h+24>>2]=J[h+24>>2]+(J[h+40>>2]+J[h+8>>2]>>1);J[h+28>>2]=J[h+28>>2]+(J[h+44>>2]+J[h+12>>2]>>1);j=j+1|0;if((L|0)!=(j|0))continue;break}h=L}if((h|0)>=(_|0))break Fa;while(1){w=p+(h<<5)|0;j=_;Qa:{Ra:{Sa:{if((h|0)<0){i=J[p>>2];if((h|0)!=-1)break Sa;if((U|0)<=0){J[w+16>>2]=J[w+16>>2]+(i+J[qa>>2]>>1);J[w+20>>2]=J[w+20>>2]+(J[qa+4>>2]+J[p+4>>2]>>1);J[w+24>>2]=J[w+24>>2]+ +(J[qa+8>>2]+J[p+8>>2]>>1);i=J[p+12>>2];l=J[qa+12>>2];break Ra}break Sa}i=h+1|0;Ta:{if((i|0)<(U|0)){h=p+(i<<5)|0;J[w+16>>2]=J[w+16>>2]+(J[h>>2]+J[w>>2]>>1);J[w+20>>2]=J[w+20>>2]+(J[h+4>>2]+J[w+4>>2]>>1);J[w+24>>2]=J[w+24>>2]+(J[h+8>>2]+J[w+8>>2]>>1);J[w+28>>2]=J[w+28>>2]+(J[h+12>>2]+J[w+12>>2]>>1);break Ta}if((h|0)>=(U|0)){J[w+16>>2]=J[w+16>>2]+J[qa>>2];J[w+20>>2]=J[w+20>>2]+J[qa+4>>2];J[w+24>>2]=J[w+24>>2]+J[qa+8>>2];J[w+28>>2]=J[w+28>>2]+J[qa+12>>2];break Ta}J[w+16>>2]=J[w+16>>2]+(J[qa>>2]+J[w>> +2]>>1);J[w+20>>2]=J[w+20>>2]+(J[qa+4>>2]+J[w+4>>2]>>1);J[w+24>>2]=J[w+24>>2]+(J[qa+8>>2]+J[w+8>>2]>>1);J[w+28>>2]=J[w+28>>2]+(J[qa+12>>2]+J[w+12>>2]>>1)}h=i;break Qa}J[w+16>>2]=i+J[w+16>>2];J[w+20>>2]=J[w+20>>2]+J[p+4>>2];J[w+24>>2]=J[w+24>>2]+J[p+8>>2];i=J[p+12>>2];l=i}J[w+28>>2]=J[w+28>>2]+(i+l>>1);h=h+1|0}if((j|0)!=(h|0))continue;break}}if(Jt(sa,z,V,W,C,X,1,4))continue;break}break}break ja}fa(2354036,2350512,2655,2354378);B()}uc(p);l=1;k=La-152|0;g=J[k+136>>2];i=J[ya>>2];j=J[ya+4>>2];h=J[k+144>> +2];if(tl(sa,g-i|0,J[k+140>>2]-j|0,h-i|0,J[k+148>>2]-j|0,J[t+52>>2],1,h-g|0)){Ko(sa);break da}fa(2354036,2350512,2847,2354378);B()}Ko(sa);uc(p);l=0;break da}Ko(sa);l=0;break da}l=0;Jm(y);uc(D)}fc=ia+32|0;if(l)break ca;break f}i=h;o=0;C=fc+-64|0;fc=C;Ua:{Va:{Wa:{if(J[F+64>>2]){l=J[t+28>>2];j=1;s=J[F+44>>2];if((h|0)==1)break Ua;y=h-1|0;n=y&1;Xa:{if((h|0)==2){i=0;h=l;break Xa}k=y&-2;i=0;h=l;j=0;while(1){g=J[h+160>>2]-J[h+152>>2]|0;g=g>>>0>>0?i:g;i=J[h+164>>2]-J[h+156>>2]|0;g=g>>>0>i>>>0?g:i;i=J[h+ +312>>2]-J[h+304>>2]|0;g=g>>>0>i>>>0?g:i;i=J[h+316>>2]-J[h+308>>2]|0;i=g>>>0>i>>>0?g:i;h=h+304|0;j=j+2|0;if((k|0)!=(j|0))continue;break}}if(n){j=J[h+160>>2]-J[h+152>>2]|0;j=i>>>0>j>>>0?i:j;h=J[h+164>>2]-J[h+156>>2]|0;i=h>>>0>>0?j:h}j=0;if(i>>>0>134217727)break Ua;h=(P(J[t+24>>2],152)+l|0)-152|0;o=J[h>>2];m=J[h+8>>2];n=J[l+4>>2];k=J[l+12>>2];g=J[l>>2];h=J[l+8>>2];W=J[s+4>>2];va=i<<5;i=ul(va);J[C+32>>2]=i;if(!i)break Ua;J[C>>2]=i;if(!y){j=1;uc(i);break Ua}O=k-n|0;n=h-g|0;h=W>>>1|0;aa=h>>>0<=2?2:h; +E=m-o|0;V=P(E,7);X=P(E,6);ba=P(E,5);w=E<<2;L=P(E,3);oa=E<<1;j=J[t+36>>2];z=E<<5;while(1){J[C+8>>2]=O;i=n;J[C+40>>2]=i;ea=J[l+156>>2];_=J[l+164>>2];h=J[l+160>>2];g=J[l+152>>2];J[C+56>>2]=0;J[C+52>>2]=i;J[C+48>>2]=0;k=(g|0)%2|0;J[C+44>>2]=k;n=h-g|0;x=n-i|0;J[C+60>>2]=x;J[C+36>>2]=x;A=(W|0)<2;O=_-ea|0;Ya:{if(!(!A&O>>>0>15)){m=0;h=j;if(O>>>0<8)break Ya;g=J[C+32>>2];while(1){i=C+32|0;AI(i,h,E,8);Lo(i);i=0;if(n){while(1){k=g+(i<<5)|0;N[(i<<2)+h>>2]=N[k>>2];N[(i+E<<2)+h>>2]=N[k+4>>2];N[(i+oa<<2)+h>>2]=N[k+ +8>>2];N[(i+L<<2)+h>>2]=N[k+12>>2];i=i+1|0;if((n|0)!=(i|0))continue;break}i=0;while(1){k=g+(i<<5)|0;N[(i+w<<2)+h>>2]=N[k+16>>2];N[(i+ba<<2)+h>>2]=N[k+20>>2];N[(i+X<<2)+h>>2]=N[k+24>>2];N[(i+V<<2)+h>>2]=N[k+28>>2];i=i+1|0;if((n|0)!=(i|0))continue;break}}h=h+z|0;m=m+8|0;if((m|7)>>>0>>0)continue;break}break Ya}h=O>>>3|0;v=h>>>0>>0?h:W;q=(O>>>0)/(v>>>0)&-8;m=O&-8;o=0;h=j;while(1){r=ef(48);if(!r)break Wa;g=ul(va);J[r>>2]=g;if(!g){Jm(s);uc(r);j=0;break Va}J[r+40>>2]=h;J[r+36>>2]=E;J[r+32>>2]=n;J[r+ +28>>2]=x;J[r+24>>2]=0;J[r+20>>2]=i;J[r+16>>2]=0;J[r+12>>2]=k;J[r+8>>2]=i;J[r+4>>2]=x;g=m-P(o,q)|0;o=o+1|0;g=(v|0)==(o|0)?g:q;J[r+44>>2]=g;pw(s,4812,r);h=(P(g,E)<<2)+h|0;if((o|0)!=(v|0))continue;break}Jm(s)}Za:{if(m>>>0>=O>>>0)break Za;i=C+32|0;g=O-m|0;AI(i,h,E,g);Lo(i);if(!n)break Za;i=g>>>0<=1?1:g;v=i&-4;x=i&3;o=0;q=J[C+32>>2];k=g>>>0<4;while(1){r=q+(o<<5)|0;i=0;m=0;if(!k)while(1){N[(P(i,E)+o<<2)+h>>2]=N[r+(i<<2)>>2];g=i|1;N[(P(g,E)+o<<2)+h>>2]=N[r+(g<<2)>>2];g=i|2;N[(P(g,E)+o<<2)+h>>2]=N[r+(g<< +2)>>2];g=i|3;N[(P(g,E)+o<<2)+h>>2]=N[r+(g<<2)>>2];i=i+4|0;m=m+4|0;if((v|0)!=(m|0))continue;break}m=0;if(x)while(1){N[(P(i,E)+o<<2)+h>>2]=N[r+(i<<2)>>2];i=i+1|0;m=m+1|0;if((x|0)!=(m|0))continue;break}o=o+1|0;if((n|0)!=(o|0))continue;break}}Z=J[C+8>>2];U=O-Z|0;J[C+4>>2]=U;h=J[l+156>>2];J[C+16>>2]=0;J[C+20>>2]=Z;J[C+24>>2]=0;J[C+28>>2]=U;ka=(h|0)%2|0;J[C+12>>2]=ka;_a:{if(!(!A&n>>>0>15)){o=j;if(n>>>0<8)break _a;p=O&-2;D=O&1;r=U&-2;x=U&1;A=Z&-2;v=Z&1;ca=_+(ea^-1)|0;ha=J[C>>2];h=ka<<5;ma=ha+h|0;la=(ha- +h|0)+32|0;q=P(E,Z)<<2;i=n;while(1){h=0;m=0;$a:{ab:switch(Z|0){default:while(1){S=(P(h,E)<<2)+o|0;g=J[S+4>>2];k=ma+(h<<6)|0;J[k>>2]=J[S>>2];J[k+4>>2]=g;g=J[S+28>>2];J[k+24>>2]=J[S+24>>2];J[k+28>>2]=g;g=J[S+20>>2];J[k+16>>2]=J[S+16>>2];J[k+20>>2]=g;g=J[S+12>>2];J[k+8>>2]=J[S+8>>2];J[k+12>>2]=g;g=h|1;k=ma+(g<<6)|0;S=(P(g,E)<<2)+o|0;g=J[S+28>>2];J[k+24>>2]=J[S+24>>2];J[k+28>>2]=g;g=J[S+20>>2];J[k+16>>2]=J[S+16>>2];J[k+20>>2]=g;g=J[S+12>>2];J[k+8>>2]=J[S+8>>2];J[k+12>>2]=g;g=J[S+4>>2];J[k>>2]=J[S>>2]; +J[k+4>>2]=g;h=h+2|0;m=m+2|0;if((A|0)!=(m|0))continue;break}break;case 0:break $a;case 1:break ab}if(!v)break $a;g=ma+(h<<6)|0;k=(P(h,E)<<2)+o|0;h=J[k+4>>2];J[g>>2]=J[k>>2];J[g+4>>2]=h;h=J[k+28>>2];J[g+24>>2]=J[k+24>>2];J[g+28>>2]=h;h=J[k+20>>2];J[g+16>>2]=J[k+16>>2];J[g+20>>2]=h;h=J[k+12>>2];J[g+8>>2]=J[k+8>>2];J[g+12>>2]=h}bb:{if((O|0)==(Z|0))break bb;S=o+q|0;h=0;m=0;if((Z|0)!=(ca|0))while(1){G=S+(P(h,E)<<2)|0;g=J[G+4>>2];k=la+(h<<6)|0;J[k>>2]=J[G>>2];J[k+4>>2]=g;g=J[G+28>>2];J[k+24>>2]=J[G+24>> +2];J[k+28>>2]=g;g=J[G+20>>2];J[k+16>>2]=J[G+16>>2];J[k+20>>2]=g;g=J[G+12>>2];J[k+8>>2]=J[G+8>>2];J[k+12>>2]=g;g=h|1;k=la+(g<<6)|0;G=S+(P(g,E)<<2)|0;g=J[G+28>>2];J[k+24>>2]=J[G+24>>2];J[k+28>>2]=g;g=J[G+20>>2];J[k+16>>2]=J[G+16>>2];J[k+20>>2]=g;g=J[G+12>>2];J[k+8>>2]=J[G+8>>2];J[k+12>>2]=g;g=J[G+4>>2];J[k>>2]=J[G>>2];J[k+4>>2]=g;h=h+2|0;m=m+2|0;if((r|0)!=(m|0))continue;break}if(!x)break bb;g=la+(h<<6)|0;k=S+(P(h,E)<<2)|0;h=J[k+4>>2];J[g>>2]=J[k>>2];J[g+4>>2]=h;h=J[k+28>>2];J[g+24>>2]=J[k+24>>2];J[g+ +28>>2]=h;h=J[k+20>>2];J[g+16>>2]=J[k+16>>2];J[g+20>>2]=h;h=J[k+12>>2];J[g+8>>2]=J[k+8>>2];J[g+12>>2]=h}Lo(C);cb:{if(!O)break cb;h=0;m=0;if(ca)while(1){S=ha+(h<<5)|0;g=J[S+4>>2];k=(P(h,E)<<2)+o|0;J[k>>2]=J[S>>2];J[k+4>>2]=g;g=J[S+28>>2];J[k+24>>2]=J[S+24>>2];J[k+28>>2]=g;g=J[S+20>>2];J[k+16>>2]=J[S+16>>2];J[k+20>>2]=g;g=J[S+12>>2];J[k+8>>2]=J[S+8>>2];J[k+12>>2]=g;g=h|1;k=(P(g,E)<<2)+o|0;S=ha+(g<<5)|0;g=J[S+28>>2];J[k+24>>2]=J[S+24>>2];J[k+28>>2]=g;g=J[S+20>>2];J[k+16>>2]=J[S+16>>2];J[k+20>>2]=g;g= +J[S+12>>2];J[k+8>>2]=J[S+8>>2];J[k+12>>2]=g;g=J[S+4>>2];J[k>>2]=J[S>>2];J[k+4>>2]=g;h=h+2|0;m=m+2|0;if((p|0)!=(m|0))continue;break}if(!D)break cb;g=(P(h,E)<<2)+o|0;k=ha+(h<<5)|0;h=J[k+4>>2];J[g>>2]=J[k>>2];J[g+4>>2]=h;h=J[k+28>>2];J[g+24>>2]=J[k+24>>2];J[g+28>>2]=h;h=J[k+20>>2];J[g+16>>2]=J[k+16>>2];J[g+20>>2]=h;h=J[k+12>>2];J[g+8>>2]=J[k+8>>2];J[g+12>>2]=h}o=o+32|0;i=i-8|0;if(i>>>0>7)continue;break}break _a}h=n>>>3|0;q=h>>>0>>0?h:aa;k=q>>>0<=1?1:q;m=(n>>>0)/(q>>>0)&-8;g=n&-8;i=0;o=j;while(1){v= +ef(48);if(!v)break Wa;h=ul(va);J[v>>2]=h;if(!h){Jm(s);uc(v);j=0;break Va}J[v+40>>2]=o;J[v+36>>2]=E;J[v+32>>2]=O;J[v+28>>2]=U;J[v+24>>2]=0;J[v+20>>2]=Z;J[v+16>>2]=0;J[v+12>>2]=ka;J[v+8>>2]=Z;J[v+4>>2]=U;h=g-P(i,m)|0;i=i+1|0;h=(q|0)==(i|0)?h:m;J[v+44>>2]=h;pw(s,4813,v);o=(h<<2)+o|0;if((i|0)!=(k|0))continue;break}Jm(s)}A=n&7;db:{if(!A)break db;k=ka<<5;x=J[C>>2];eb:{if(!Z)break eb;v=k+x|0;q=A<<2;h=0;if((Z|0)!=1){g=Z&-2;m=0;while(1){xc(v+(h<<6)|0,(P(h,E)<<2)+o|0,q);i=h|1;xc(v+(i<<6)|0,(P(i,E)<<2)+o|0, +q);h=h+2|0;m=m+2|0;if((g|0)!=(m|0))continue;break}}if(!(Z&1))break eb;xc(v+(h<<6)|0,(P(h,E)<<2)+o|0,q)}fb:{if((O|0)==(Z|0))break fb;v=(x-k|0)+32|0;q=(P(E,Z)<<2)+o|0;k=A<<2;h=0;if((Z|0)!=(_+(ea^-1)|0)){g=U&-2;m=0;while(1){xc(v+(h<<6)|0,q+(P(h,E)<<2)|0,k);i=h|1;xc(v+(i<<6)|0,q+(P(i,E)<<2)|0,k);h=h+2|0;m=m+2|0;if((g|0)!=(m|0))continue;break}}if(!(U&1))break fb;xc(v+(h<<6)|0,q+(P(h,E)<<2)|0,k)}Lo(C);if(!O)break db;k=A<<2;h=0;if((_|0)!=(ea+1|0)){g=O&-2;m=0;while(1){xc((P(h,E)<<2)+o|0,x+(h<<5)|0,k);i=h| +1;xc((P(i,E)<<2)+o|0,x+(i<<5)|0,k);h=h+2|0;m=m+2|0;if((g|0)!=(m|0))continue;break}}if(!(O&1))break db;xc((P(h,E)<<2)+o|0,x+(h<<5)|0,k)}l=l+152|0;y=y-1|0;if(y)continue;break}j=1;break Va}j=1;m=J[t+28>>2];U=m+P(i,152)|0;s=U-152|0;if(J[s>>2]==J[s+8>>2]|J[s+4>>2]==J[s+12>>2])break Ua;y=J[m+4>>2];v=J[m+12>>2];q=J[m>>2];n=J[m+8>>2];D=J[t+68>>2];r=J[t+64>>2];x=J[t+60>>2];A=J[t+56>>2];E=kZ(t,i);if(!E){j=0;break Ua}gb:{hb:{ib:{if((i|0)==1){l=U-152|0;g=J[l+136>>2];i=J[s>>2];j=J[s+4>>2];h=J[l+144>>2];if(!tl(E, +g-i|0,J[l+140>>2]-j|0,h-i|0,J[l+148>>2]-j|0,J[t+52>>2],1,h-g|0))break ib;Ko(E);j=1;break Ua}h=i-1|0;k=h&1;jb:{if((i|0)==2){j=0;h=m;break jb}l=h&-2;j=0;h=m;while(1){g=J[h+160>>2]-J[h+152>>2]|0;g=g>>>0>>0?j:g;j=J[h+164>>2]-J[h+156>>2]|0;g=g>>>0>j>>>0?g:j;j=J[h+312>>2]-J[h+304>>2]|0;g=g>>>0>j>>>0?g:j;j=J[h+316>>2]-J[h+308>>2]|0;j=g>>>0>j>>>0?g:j;h=h+304|0;o=o+2|0;if((l|0)!=(o|0))continue;break}}if(k){g=J[h+160>>2]-J[h+152>>2]|0;j=g>>>0>>0?j:g;h=J[h+164>>2]-J[h+156>>2]|0;j=h>>>0>>0?j:h}if(j>>> +0>=134217728)break gb;Z=ul(j<<5);J[C+32>>2]=Z;if(!Z)break gb;J[C>>2]=Z;kb:{lb:{mb:{if(i>>>0>=2){l=v-y|0;h=n-q|0;ma=Z+32|0;oa=i;z=J[t+20>>2];w=1;v=0;while(1){J[C+8>>2]=l;J[C+40>>2]=h;g=J[m+164>>2];i=J[m+160>>2];k=J[m+156>>2];j=J[m+152>>2];aa=(j|0)%2|0;J[C+44>>2]=aa;G=(k|0)%2|0;J[C+12>>2]=G;L=i-j|0;ca=L-h|0;J[C+36>>2]=ca;ba=g-k|0;W=ba-l|0;J[C+4>>2]=W;y=A;o=A;i=x;n=i;j=r;q=j;p=D;O=p;nb:{if(!v&(w|0)==(z|0))break nb;k=z-w|0;n=0;o=0;if(A){j=k&31;if((k&63)>>>0>=32){g=-1<>>32-j}j=A+(i^-1)|0;g=g^-1;g=j>>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)o=g>>>i|0;else o=((1<>>i}if(x){j=k&31;if((k&63)>>>0>=32){g=-1<>>32-j}j=x+(i^-1)|0;g=g^-1;g=j>>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)n=g>>>i|0;else n=((1<>>i}p=0;j=0;if(r){j=k&31;if((k&63)>>>0>=32){g=-1<>>32-j}j=r+(i^-1)|0;g=g^-1;g=j>>>0>>0?g+1|0:g;i=k&31;if((k&63)>>>0>=32)j=g>>>i|0;else j=((1<>> +i}if(D){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>>0?g+1|0:g;q=k&31;if((k&63)>>>0>=32)p=g>>>q|0;else p=((1<>>q}q=0;y=0;V=1<>>0>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>y>>>0?g+1|0:g;i=y;y=k&31;if((k&63)>>>0>=32)y=g>>>y|0;else y=((1<>>y}if(r>>>0>V>>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>> +32-i;i=-1<>>0>q>>>0?g+1|0:g;i=q;q=k&31;if((k&63)>>>0>=32)q=g>>>q|0;else q=((1<>>q}O=0;i=0;if(x>>>0>V>>>0){i=k&31;if((k&63)>>>0>=32){g=-1<>>32-i;i=-1<>>0>X>>>0?g+1|0:g;i=X;X=k&31;if((k&63)>>>0>=32)i=g>>>X|0;else i=((1<>>X}if(D>>>0<=V>>>0)break nb;X=k&31;_=D-V|0;if((k&63)>>>0>=32){g=-1<>>32-X}X=V^-1;V=_+X|0;g=g^-1;g=V>>>0>> +0?g+1|0:g;X=V;V=k&31;if((k&63)>>>0>=32)O=g>>>V|0;else O=((1<>>V}X=J[m+180>>2];g=q-X|0;k=g>>>0<=q>>>0?g:0;g=k+4|0;g=g>>>0>>0?-1:g;ea=g>>>0>>0?g:ca;k=J[m+216>>2];g=j-k|0;g=g>>>0<=j>>>0?g:0;j=g+4|0;j=g>>>0>j>>>0?-1:j;_=h>>>0>j>>>0?j:h;j=(aa?ea:_)<<1;h=(aa?_:ea)<<1|1;la=h>>>0>>0?j:h;S=la>>>0>>0;h=y-X|0;j=h>>>0<=y>>>0?h:0;h=j-4|0;ha=h>>>0<=j>>>0?h:0;h=o-k|0;j=h>>>0<=o>>>0?h:0;h=j-4|0;ka=h>>>0<=j>>>0?h:0;va=(aa?ha:ka)<<1;aa=(aa?ka:ha)<<1|1;ca=va>>>0>>0;g=J[m+184>>2];h= +n-g|0;j=h>>>0<=n>>>0?h:0;h=j-4|0;n=h>>>0<=j>>>0?h:0;y=n;o=J[m+220>>2];h=i-o|0;j=h>>>0<=i>>>0?h:0;h=j-4|0;k=h>>>0<=j>>>0?h:0;V=k;h=p-g|0;j=h>>>0<=p>>>0?h:0;h=j+4|0;h=h>>>0>>0?-1:h;g=h>>>0>>0?h:l;X=g;h=O-o|0;j=h>>>0<=O>>>0?h:0;h=j+4|0;h=h>>>0>>0?-1:h;W=h>>>0>>0?h:W;q=W;if(G){V=n;X=q;y=k;q=g}S=S?la:L;h=ca?va:aa;J[C+60>>2]=ea;J[C+56>>2]=ha;J[C+52>>2]=_;J[C+48>>2]=ka;ob:{if(ba>>>0<8){o=7;j=0;break ob}aa=l+W|0;ca=k+l|0;p=Z+(h<<5)|0;i=0;o=7;while(1){pb:{if(!(n>>>0<=o>>>0&g>>>0>i>>>0|i>>>0>> +0&o>>>0>=ca>>>0)){j=i+8|0;break pb}o=C+32|0;j=ba-i|0;jZ(o,E,i,j>>>0>=8?8:j);Lo(o);j=i+8|0;if(!Jt(E,h,i,S,j,p,8,1))break hb}i=j;o=i|7;if(ba>>>0>o>>>0)continue;break}}if(!(!(n>>>0<=o>>>0&g>>>0>j>>>0)&(l+W>>>0<=j>>>0|k+l>>>0>o>>>0)|j>>>0>=ba>>>0)){i=C+32|0;jZ(i,E,j,ba-j|0);Lo(i);if(!Jt(E,h,j,S,ba,Z+(h<<5)|0,8,1))break hb}J[C+28>>2]=W;J[C+24>>2]=k;J[C+20>>2]=g;J[C+16>>2]=n;if(h>>>0>>0){i=X<<1;j=q<<1|1;j=i>>>0>j>>>0?i:j;X=j>>>0>>0?j:ba;j=G<<5;p=(ma-j|0)+(k<<6)|0;q=(j+Z|0)+(n<<6)|0;o=l+W|0;k=k+l| +0;i=y<<1;j=V<<1|1;l=i>>>0>>0?i:j;i=Z+(l<<5)|0;while(1){j=S-h|0;j=(j>>>0>=8?8:j)+h|0;if(!tl(E,h,n,j,g,q,1,16))break mb;if(!tl(E,h,k,j,o,p,1,16))break lb;Lo(C);if(!Jt(E,h,l,j,X,i,1,8))break hb;h=h+8|0;if(S>>>0>h>>>0)continue;break}}m=m+152|0;h=L;l=ba;g=v;j=w+1|0;g=j?g:g+1|0;w=j;v=g;if((oa|0)!=(j|0)|g)continue;break}}j=1;k=U-152|0;l=J[k+136>>2];g=J[s>>2];i=J[s+4>>2];h=J[k+144>>2];if(!tl(E,l-g|0,J[k+140>>2]-i|0,h-g|0,J[k+148>>2]-i|0,J[t+52>>2],1,h-l|0))break kb;Ko(E);uc(Z);break Ua}fa(2354036,2350512, +2997,2355144);B()}fa(2354036,2350512,3003,2355144);B()}fa(2354036,2350512,3737,2355087);B()}fa(2354036,2350512,3560,2355087);B()}Ko(E);uc(Z);j=0;break Ua}Ko(E);j=0;break Ua}Jm(s);j=0}uc(J[C+32>>2])}fc=C- -64|0;if(j)break ca;break f}u=u+1080|0;b=b+52|0;t=t+76|0;T=T+1|0;if(T>>>0>2])continue;break}Y=J[J[F+20>>2]>>2];u=J[F+32>>2]}i=J[u+16>>2];qb:{if(J[F+68>>2]|!i)break qb;b=J[Y+20>>2];l=J[b+28>>2];rb:{sb:{k=J[F+64>>2];if(k){T=J[Y+16>>2];if(T>>>0<3)break rb;g=J[b+24>>2];if(!((g|0)==J[b+100>>2]& +(g|0)==J[b+176>>2])){Nc(f,1,2355685,0);break f}j=J[J[F+24>>2]+24>>2];h=J[j+36>>2];tb:{if((h|0)!=J[j+88>>2]|(h|0)!=J[j+140>>2])break tb;h=l;l=P(g,152);h=(h+l|0)-152|0;h=P(J[h+12>>2]-J[h+4>>2]|0,J[h+8>>2]-J[h>>2]|0);j=l+J[b+104>>2]|0;g=j-152|0;if((h|0)!=(P(J[g+12>>2]-J[g+4>>2]|0,J[g+8>>2]-J[j-152>>2]|0)|0))break tb;j=l+J[b+180>>2]|0;g=j-152|0;if((P(J[g+12>>2]-J[g+4>>2]|0,J[g+8>>2]-J[j-152>>2]|0)|0)==(h|0))break sb}Nc(f,1,2355685,0);break f}T=J[Y+16>>2];if(T>>>0<3)break rb;h=J[J[F+24>>2]+24>>2];j=J[h+ +36>>2];ub:{if((j|0)!=J[h+88>>2]|(j|0)!=J[h+140>>2])break ub;j=P(j,152);h=j+l|0;h=P(J[h+148>>2]-J[h+140>>2]|0,J[h+144>>2]-J[h+136>>2]|0);g=j+J[b+104>>2]|0;if((h|0)!=(P(J[g+148>>2]-J[g+140>>2]|0,J[g+144>>2]-J[g+136>>2]|0)|0))break ub;j=j+J[b+180>>2]|0;if((P(J[j+148>>2]-J[j+140>>2]|0,J[j+144>>2]-J[j+136>>2]|0)|0)==(h|0))break sb}Nc(f,1,2355685,0);break f}if((i|0)==2){if(!J[u+5608>>2])break qb;r=ef(T<<2);if(!r)break f;x=J[Y+16>>2];vb:{if(!x)break vb;wb:{xb:{if(J[F+64>>2]){i=x&3;l=0;if(x>>>0>=4)break xb; +T=0;break wb}i=x&3;l=0;yb:{if(x>>>0<4){T=0;break yb}j=x&-4;T=0;o=0;while(1){g=T<<2;J[g+r>>2]=J[b+52>>2];J[r+(g|4)>>2]=J[b+128>>2];J[r+(g|8)>>2]=J[b+204>>2];J[r+(g|12)>>2]=J[b+280>>2];T=T+4|0;b=b+304|0;o=o+4|0;if((j|0)!=(o|0))continue;break}}if(!i)break vb;while(1){J[r+(T<<2)>>2]=J[b+52>>2];T=T+1|0;b=b+76|0;l=l+1|0;if((i|0)!=(l|0))continue;break}break vb}j=x&-4;T=0;o=0;while(1){g=T<<2;J[g+r>>2]=J[b+36>>2];J[r+(g|4)>>2]=J[b+112>>2];J[r+(g|8)>>2]=J[b+188>>2];J[r+(g|12)>>2]=J[b+264>>2];T=T+4|0;b=b+304| +0;o=o+4|0;if((j|0)!=(o|0))continue;break}}if(!i)break vb;while(1){J[r+(T<<2)>>2]=J[b+36>>2];T=T+1|0;b=b+76|0;l=l+1|0;if((i|0)!=(l|0))continue;break}}j=J[u+5608>>2];q=0;A=ef(x<<3);b=0;zb:{if(!A)break zb;if(!(!h|!x)){g=A+(x<<2)|0;m=x&-4;t=x&3;k=x-1|0;while(1){b=0;n=0;if(k>>>0>=3)while(1){l=b<<2;N[l+A>>2]=N[J[l+r>>2]>>2];i=l|4;N[i+A>>2]=N[J[i+r>>2]>>2];i=l|8;N[i+A>>2]=N[J[i+r>>2]>>2];i=l|12;N[i+A>>2]=N[J[i+r>>2]>>2];b=b+4|0;n=n+4|0;if((m|0)!=(n|0))continue;break}o=0;if(t)while(1){i=b<<2;N[i+A>>2]=N[J[i+ +r>>2]>>2];b=b+1|0;o=o+1|0;if((t|0)!=(o|0))continue;break}y=0;b=j;while(1){i=y<<2;v=i+g|0;J[v>>2]=0;ga=Q(0);o=0;s=0;if(k>>>0>2)while(1){l=o<<2;ga=Q(Q(N[b>>2]*N[l+A>>2])+ga);N[v>>2]=ga;ga=Q(Q(N[b+4>>2]*N[A+(l|4)>>2])+ga);N[v>>2]=ga;ga=Q(Q(N[b+8>>2]*N[A+(l|8)>>2])+ga);N[v>>2]=ga;ga=Q(Q(N[b+12>>2]*N[A+(l|12)>>2])+ga);N[v>>2]=ga;o=o+4|0;b=b+16|0;s=s+4|0;if((m|0)!=(s|0))continue;break}n=0;if(t)while(1){ga=Q(Q(N[b>>2]*N[A+(o<<2)>>2])+ga);N[v>>2]=ga;o=o+1|0;b=b+4|0;n=n+1|0;if((t|0)!=(n|0))continue;break}i= +i+r|0;l=J[i>>2];J[i>>2]=l+4;N[l>>2]=ga;y=y+1|0;if((x|0)!=(y|0))continue;break}q=q+1|0;if((q|0)!=(h|0))continue;break}}uc(A);b=1}uc(r);if(b)break qb;break f}if(J[J[u+5584>>2]+20>>2]==1){if(k){HY(J[b+36>>2],J[b+112>>2],J[b+188>>2],h);break qb}HY(J[b+52>>2],J[b+128>>2],J[b+204>>2],h);break qb}if(k){GY(J[b+36>>2],J[b+112>>2],J[b+188>>2],h);break qb}GY(J[b+52>>2],J[b+128>>2],J[b+204>>2],h);break qb}J[ua>>2]=T;Nc(f,1,2355854,ua)}x=J[J[F+20>>2]>>2];if(!J[x+16>>2]){ja=1;break f}A=J[F+68>>2];n=J[x+20>>2]; +h=J[J[F+32>>2]+5584>>2];m=J[J[F+24>>2]+24>>2];y=0;while(1){Ab:{if(J[A+(y<<2)>>2]?0:A)break Ab;j=J[m+36>>2];i=J[n+28>>2];Bb:{if(!J[F+64>>2]){b=i+P(j,152)|0;o=J[b+148>>2]-J[b+140>>2]|0;Y=J[b+144>>2]-J[b+136>>2]|0;t=J[n+52>>2];i=0;break Bb}b=(i+P(J[n+24>>2],152)|0)-152|0;b=J[b+8>>2]-J[b>>2]|0;j=i+P(j,152)|0;Y=J[j+8>>2]-J[j>>2]|0;i=b-Y|0;t=J[n+36>>2];o=J[j+12>>2]-J[j+4>>2]|0;if(!o){o=0;break Bb}if(b>>>0>M[n+48>>2]/(o>>>0)>>>0)break g}b=J[m+24>>2];Cb:{if(J[m+32>>2]){b=1<>2]!=1){if(!o|!Y)break Ab;v=u>>31;q=j>>31;l=0;while(1){T=0;while(1){ga=N[t>>2];b=u;Db:{if(ga>Q(2147483648))break Db;b=j;b=j;if(ga>2];k=g;g=g>>31;ga=yEb(ga);Eb:{if(Q(R(ga))>31)|0;k=k+r|0;g=k>>>0>>0?g+1|0:g;b=(g|0)<=(q|0)&j>>>0>k>>>0|(g|0)<(q|0)?b:k>>>0>>0&(g|0)<=(v|0)|(g|0)<(v|0)?k:u}J[t>>2]=b;t=t+4|0;T=T+1|0;if((Y|0)!=(T|0))continue;break}t=(i<<2)+t|0;l=l+1|0;if((l|0)!=(o|0))continue; +break}break Ab}if(!o|!Y)break Ab;l=Y&-2;g=Y&1;b=0;i=i<<2;while(1){T=0;if((Y|0)!=1)while(1){k=J[h+1076>>2]+J[t>>2]|0;J[t>>2]=(j|0)>(k|0)?j:(k|0)<(u|0)?k:u;k=J[h+1076>>2]+J[t+4>>2]|0;J[t+4>>2]=(j|0)>(k|0)?j:(k|0)<(u|0)?k:u;t=t+8|0;T=T+2|0;if((l|0)!=(T|0))continue;break}if(g){k=J[h+1076>>2]+J[t>>2]|0;J[t>>2]=(j|0)>(k|0)?j:(k|0)<(u|0)?k:u;t=t+4|0}t=i+t|0;b=b+1|0;if((o|0)!=(b|0))continue;break}}n=n+76|0;h=h+1080|0;m=m+52|0;ja=1;y=y+1|0;if(y>>>0>2])continue;break}break f}ja=0;Nc(f,1,2351204,0); +break f}fa(2355928,2356148,2239,2375856);B()}fc=ua+16|0;b=ja;break d}fa(2355247,2355365,172,2355230);B()}if(!b){eB(Ha);J[a+8>>2]=J[a+8>>2]|32768;Nc(f,1,2359865,0);break c}Fb:{if(!c)break Fb;b=0;ja=0;k=J[a+196>>2];h=oY(k,1);if(!((h|0)==-1|d>>>0>>0))Gb:{b=1;d=J[k+24>>2];if(!J[d+16>>2])break Gb;t=J[d+24>>2];T=J[J[J[k+20>>2]>>2]+20>>2];while(1){b=J[t+24>>2];i=b&7;j=b>>>3|0;b=J[t+36>>2];g=J[T+28>>2];Hb:{if(J[k+64>>2]){d=g+P(b,152)|0;h=J[d+12>>2]-J[d+4>>2]|0;b=(g+P(J[T+24>>2],152)|0)-152|0;d=J[d+8>> +2]-J[d>>2]|0;u=J[b+8>>2]-(d+J[b>>2]|0)|0;b=T+36|0;break Hb}b=g+P(b,152)|0;h=J[b+148>>2]-J[b+140>>2]|0;d=J[b+144>>2]-J[b+136>>2]|0;u=0;b=T+52|0}b=J[b>>2];Ib:{Jb:{Kb:{Lb:{j=j+((i|0)!=0)|0;switch(((j|0)==3?4:j)-1|0){case 1:break Jb;case 0:break Kb;case 3:break Lb;default:break Ib}}if(!h)break Ib;l=d+u|0;n=d<<2;if(h>>>0>=4){i=h&-4;Y=0;while(1){j=xc(c,b,n);c=b;b=l<<2;g=c+b|0;d=b+g|0;c=d+b|0;b=c+b|0;c=xc(xc(xc(j+n|0,g,n)+n|0,d,n)+n|0,c,n)+n|0;Y=Y+4|0;if((i|0)!=(Y|0))continue;break}}Y=0;d=h&3;if(!d)break Ib; +while(1){c=xc(c,b,n);b=(l<<2)+b|0;c=c+n|0;Y=Y+1|0;if((d|0)!=(Y|0))continue;break}break Ib}j=!h|!d;if(J[t+32>>2]){if(j)break Ib;i=d&-8;g=d&7;Y=0;j=d-1>>>0<7;while(1){d=0;if(!j)while(1){H[c|0]=J[b>>2];H[c+1|0]=J[b+4>>2];H[c+2|0]=J[b+8>>2];H[c+3|0]=J[b+12>>2];H[c+4|0]=J[b+16>>2];H[c+5|0]=J[b+20>>2];H[c+6|0]=J[b+24>>2];H[c+7|0]=J[b+28>>2];c=c+8|0;b=b+32|0;d=d+8|0;if((i|0)!=(d|0))continue;break}d=0;if(g)while(1){H[c|0]=J[b>>2];c=c+1|0;b=b+4|0;d=d+1|0;if((g|0)!=(d|0))continue;break}b=(u<<2)+b|0;Y=Y+1|0; +if((Y|0)!=(h|0))continue;break}break Ib}if(j)break Ib;g=d&-8;l=d&7;Y=0;i=d-1>>>0<7;j=u<<2;while(1){d=0;if(!i)while(1){H[c|0]=J[b>>2];H[c+1|0]=J[b+4>>2];H[c+2|0]=J[b+8>>2];H[c+3|0]=J[b+12>>2];H[c+4|0]=J[b+16>>2];H[c+5|0]=J[b+20>>2];H[c+6|0]=J[b+24>>2];H[c+7|0]=J[b+28>>2];c=c+8|0;b=b+32|0;d=d+8|0;if((g|0)!=(d|0))continue;break}d=0;if(l)while(1){H[c|0]=J[b>>2];c=c+1|0;b=b+4|0;d=d+1|0;if((l|0)!=(d|0))continue;break}b=b+j|0;Y=Y+1|0;if((Y|0)!=(h|0))continue;break}break Ib}j=!h|!d;if(J[t+32>>2]){if(j)break Ib; +i=d&-8;g=d&7;Y=0;j=d-1>>>0<7;while(1){d=0;if(!j)while(1){I[c>>1]=J[b>>2];I[c+2>>1]=J[b+4>>2];I[c+4>>1]=J[b+8>>2];I[c+6>>1]=J[b+12>>2];I[c+8>>1]=J[b+16>>2];I[c+10>>1]=J[b+20>>2];I[c+12>>1]=J[b+24>>2];I[c+14>>1]=J[b+28>>2];c=c+16|0;b=b+32|0;d=d+8|0;if((i|0)!=(d|0))continue;break}d=0;if(g)while(1){I[c>>1]=J[b>>2];c=c+2|0;b=b+4|0;d=d+1|0;if((g|0)!=(d|0))continue;break}b=(u<<2)+b|0;Y=Y+1|0;if((Y|0)!=(h|0))continue;break}break Ib}if(j)break Ib;i=d&-8;g=d&7;Y=0;j=d-1>>>0<7;while(1){d=0;if(!j)while(1){I[c>> +1]=J[b>>2];I[c+2>>1]=J[b+4>>2];I[c+4>>1]=J[b+8>>2];I[c+6>>1]=J[b+12>>2];I[c+8>>1]=J[b+16>>2];I[c+10>>1]=J[b+20>>2];I[c+12>>1]=J[b+24>>2];I[c+14>>1]=J[b+28>>2];c=c+16|0;b=b+32|0;d=d+8|0;if((i|0)!=(d|0))continue;break}d=0;if(g)while(1){I[c>>1]=J[b>>2];c=c+2|0;b=b+4|0;d=d+1|0;if((g|0)!=(d|0))continue;break}b=(u<<2)+b|0;Y=Y+1|0;if((Y|0)!=(h|0))continue;break}}T=T+76|0;t=t+52|0;b=1;ja=ja+1|0;if(ja>>>0>2]+16>>2])continue;break}}if(!b)break c;c=Ha+5596|0;b=J[c>>2];if(!b)break Fb;uc(b);J[c>>2]= +0;J[Oa+5600>>2]=0}J[a+8>>2]=J[a+8>>2]&-129;H[a+68|0]=K[a+68|0]&254;Na=1;c=vl(e);b=J[a+8>>2];if(!(c|jc)&(b|0)==64|(b|0)==256)break c;if((ui(e,Aa+10|0,2,f)|0)!=2){Na=0;Nc(f,1,2358649,0);break c}wd(Aa+10|0,Aa+12|0,2);b=J[Aa+12>>2];if((b|0)==65424)break c;if((b|0)==65497){J[a+8>>2]=256;J[a+192>>2]=0;break c}if(!(vl(e)|jc)){J[a+8>>2]=64;Nc(f,2,2359904,0);break c}Na=0;Nc(f,1,2359934,0)}fc=Aa+16|0;return Na|0}fa(2358446,2358254,9705,2359809);B()}fa(2358373,2358254,9706,2359809);B()}fa(2358486,2358254,9707, +2359809);B()}function XB(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,Q=0,S=0,T=0,U=0,W=0,X=0,Y=0,$=0,ca=0,da=0,ea=0,fa=0,ga=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0;G=fc-48|0;fc=G;J[G+32>>2]=13;J[G+16>>2]=13;a:{b:{if(J[f>>2]!=7)break b;c:{if(J[e>>2]!=9)break c;I=J[J[a>>2]+28>>2];A=J[I+8>>2];if((A|0)<=0)break c;Q=J[e+12>>2];j=J[e+8>>2];I=J[I>>2];e=0;while(1){k=J[I+(e<<2)>>2];if(!((j|0)!= +J[k>>2]|(Q|0)!=J[k+4>>2])){k=J[k+8>>2];break c}e=e+1|0;if((A|0)!=(e|0))continue;break}k=0}if((b|0)!=(k|0))break b;b=G+32|0;e=J[Ec(J[f+8>>2],809604,b,0)>>2];k=J[G+40>>2];yc(b);d:{if(!i)break d;b=(e|0)==1?k:0;if(b&2|(b&4?0:d))break b;if(d)break d;if(b&32)break b}b=G+32|0;Ke(J[f+8>>2],809908,b);d=HB(J[J[J[a>>2]>>2]+36>>2],b,G+12|0);e=J[G+12>>2];yc(b);if(e?0:d)break b;e:{if(J[Ec(J[f+8>>2],804334,b,0)>>2]!=6)break e;b=J[G+40>>2];if(J[b+12>>2]!=4)break e;if(J[Sc(b,0,G+16|0,0)>>2]-3>>>0>=4294967294)o=J[G+ +16>>2]==1?+J[G+24>>2]:O[G+24>>3];b=G+16|0;yc(b);if(J[Sc(J[G+40>>2],1,b,0)>>2]-3>>>0>=4294967294)r=J[G+16>>2]==1?+J[G+24>>2]:O[G+24>>3];b=G+16|0;yc(b);if(J[Sc(J[G+40>>2],2,b,0)>>2]-3>>>0>=4294967294)p=J[G+16>>2]==1?+J[G+24>>2]:O[G+24>>3];b=G+16|0;yc(b);if(J[Sc(J[G+40>>2],3,b,0)>>2]-3>>>0>=4294967294)q=J[G+16>>2]==1?+J[G+24>>2]:O[G+24>>3];b=qp;W=b?o:p;X=b?p:o;yc(G+16|0);b=G+32|0;yc(b);f:{g:{if(J[J[a>>2]+24>>2])break g;d=J[a+56>>2];if(J[d+8>>2]?d:0)break g;d=J[Ec(J[f+8>>2],810779, +b,0)>>2];yc(b);if((d|0)==7)break f}h=J[f+8>>2];e=0;g=0;j=fc-1296|0;fc=j;J[j+1280>>2]=13;J[j+1264>>2]=13;J[j+1248>>2]=13;J[j+1232>>2]=13;J[j+1216>>2]=13;J[j+1200>>2]=13;J[j+1184>>2]=13;J[j+1168>>2]=13;J[j+1152>>2]=13;J[j+1136>>2]=13;J[j+1120>>2]=13;J[j+1104>>2]=13;J[j+1088>>2]=13;J[j+1072>>2]=13;J[j+1056>>2]=13;d=vc(8);J[699344]=0;n=_(3351,d|0)|0;b=J[699344];J[699344]=0;h:{i:{j:{k:{l:{if((b|0)!=1){f=0;m:{if(J[Ec(h,811113,j+1264|0,0)>>2]!=7)break m;f=J[j+1272>>2];if(!f){f=0;break m}n:{if(J[Ec(f,811531, +j+1104|0,0)>>2]!=6)break n;b=J[j+1112>>2];if(J[b+12>>2]<=0)break n;On(b,1,0,n);O[j+1032>>3]=T-U;O[j+1024>>3]=W-X;ed(n,812005,j+1024|0)}yc(j+1104|0);l=1}ka=Rm(a,J[a+32>>2],789035,j+1248|0);o:{if(J[Ec(h,812272,j+1104|0,0)>>2]==7){L=0;p:{if(J[Ec(J[j+1112>>2],812629,j+1088|0,0)>>2]!=4)break p;q:{if(J[j+1088>>2]!=4)break q;b=J[j+1096>>2];L=0;if(!Ic(b,812629))break p;L=1;if(!Ic(b,812937))break p;L=2;if(!Ic(b,813314))break p;L=3;if(!Ic(b,813608))break p;if(Ic(b,813919))break q;L=4;break p}L=0}b=j+1088|0; +yc(b);o=1;if(J[Ec(J[j+1112>>2],814161,b,0)>>2]-3>>>0>=4294967294)o=J[j+1088>>2]==1?+J[j+1096>>2]:O[j+1096>>3];b=j+1088|0;yc(b);if(J[Ec(J[j+1112>>2],812937,b,0)>>2]!=6){d=0;break o}d=J[J[j+1096>>2]+12>>2];g=Gd(d,8);if((d|0)<=0)break o;while(1){b=(e<<3)+g|0;if(J[Sc(J[j+1096>>2],e,j+1072|0,0)>>2]-3>>>0>=4294967294)r=J[j+1072>>2]==1?+J[j+1080>>2]:O[j+1080>>3];else r=1;O[b>>3]=r;yc(j+1072|0);e=e+1|0;if((e|0)!=(d|0))continue;break}break o}b=j+1104|0;yc(b);o=1;if(J[Ec(h,814316,b,0)>>2]!=6)break l;d=0;b= +J[j+1112>>2];if(J[b+12>>2]<3)break k;if(J[Sc(b,2,j+1088|0,0)>>2]-3>>>0>=4294967294)o=J[j+1088>>2]==1?+J[j+1096>>2]:O[j+1096>>3];b=j+1088|0;yc(b);d=J[j+1112>>2];if(J[d+12>>2]<4)break l;if(J[Sc(d,3,b,0)>>2]!=6){o=0;d=0;break o}L=1;d=J[J[j+1096>>2]+12>>2];g=Gd(d,8);if((d|0)<=0)break o;while(1){b=(e<<3)+g|0;if(J[Sc(J[j+1096>>2],e,j+1072|0,0)>>2]-3>>>0>=4294967294)r=J[j+1072>>2]==1?+J[j+1080>>2]:O[j+1080>>3];else r=1;O[b>>3]=r;yc(j+1072|0);e=e+1|0;if((e|0)!=(d|0))continue;break}}yc(j+1088|0);break k}break j}d= +0}b=j+1104|0;yc(b);if(!(!(o>0)|l^1)){Ec(f,815039,b,0);r:{if(!(J[j+1104>>2]==6&J[J[j+1112>>2]+12>>2]>0)){yc(b);Ec(f,811531,b,0);if(J[j+1104>>2]!=6)break r}if(J[J[j+1112>>2]+12>>2]<=0)break r;b=j+1088|0;e=J[Ec(f,815373,b,0)>>2];p=T-U;r=W-X;yc(b);s:{if(J[ka>>2]!=4)break s;if(Ic(J[ka+8>>2],791539)|(e|0)==3|!(J[a+48>>2]&32768))break s;E=(p>r?r:p)*.5;t:switch(L|0){case 1:od(n,815571);if((d|0)>0){e=0;while(1){O[j+544>>3]=O[(e<<3)+g>>3];ed(n,815848,j+544|0);e=e+1|0;if((e|0)!=(d|0))continue;break}}od(n,816408); +case 0:case 4:O[j+528>>3]=o;ed(n,816925,j+528|0);On(J[j+1112>>2],0,0,n);p=p*.5;O[j+520>>3]=p;r=r*.5;q=o*-.5+E;E=r+q;O[j+512>>3]=E;ed(n,842127,j+512|0);s=p+q;O[j+504>>3]=s;O[j+496>>3]=r;O[j+488>>3]=s;v=q*.55228475;M=v+r;O[j+480>>3]=M;$=v+p;O[j+472>>3]=$;O[j+464>>3]=E;ed(n,842289,j+464|0);O[j+456>>3]=p;v=r-q;O[j+448>>3]=v;O[j+440>>3]=$;O[j+432>>3]=v;O[j+424>>3]=s;s=q*-.55228475;$=s+r;O[j+416>>3]=$;ed(n,842289,j+416|0);q=p-q;O[j+408>>3]=q;O[j+400>>3]=r;O[j+392>>3]=q;O[j+384>>3]=$;r=s+p;O[j+376>>3]=r; +O[j+368>>3]=v;ed(n,842289,j+368|0);O[j+360>>3]=p;O[j+352>>3]=E;O[j+344>>3]=r;O[j+336>>3]=E;O[j+328>>3]=q;O[j+320>>3]=M;ed(n,842289,j+320|0);J[j+304>>2]=817061;ed(n,842493,j+304|0);break r;case 2:case 3:break t;default:break r}O[j+1008>>3]=o*.5;ed(n,816925,j+1008|0);On(J[j+1112>>2],0,0,n);p=p*.5;O[j+1E3>>3]=p;r=r*.5;q=o*-.25+E;s=r+q;O[j+992>>3]=s;ed(n,842127,j+992|0);v=p+q;O[j+984>>3]=v;O[j+976>>3]=r;O[j+968>>3]=v;M=q*.55228475;$=M+r;O[j+960>>3]=$;ca=M+p;O[j+952>>3]=ca;O[j+944>>3]=s;ed(n,842289,j+ +944|0);O[j+936>>3]=p;M=r-q;O[j+928>>3]=M;O[j+920>>3]=ca;O[j+912>>3]=M;O[j+904>>3]=v;v=q*-.55228475;ca=v+r;O[j+896>>3]=ca;ed(n,842289,j+896|0);q=p-q;O[j+888>>3]=q;O[j+880>>3]=r;O[j+872>>3]=q;O[j+864>>3]=ca;v=v+p;O[j+856>>3]=v;O[j+848>>3]=M;ed(n,842289,j+848|0);O[j+840>>3]=p;O[j+832>>3]=s;O[j+824>>3]=v;O[j+816>>3]=s;O[j+808>>3]=q;O[j+800>>3]=$;ed(n,842289,j+800|0);J[j+784>>2]=817061;ed(n,842493,j+784|0);b=(L|0)==2;On(J[j+1112>>2],0,b?1:-1,n);q=(o*-.75+E)/1.4142135623730951;E=p+q;O[j+776>>3]=E;s=r+q; +O[j+768>>3]=s;ed(n,842127,j+768|0);O[j+760>>3]=E;v=r-q;O[j+752>>3]=v;$=q*1.55228475;M=$+p;O[j+744>>3]=M;ca=q*-.44771525;ma=ca+r;O[j+736>>3]=ma;O[j+728>>3]=M;fa=q*.44771525;oa=fa+r;O[j+720>>3]=oa;ed(n,842289,j+720|0);M=p-q;O[j+712>>3]=M;O[j+704>>3]=v;ca=ca+p;O[j+696>>3]=ca;q=q*-1.55228475;pa=q+r;O[j+688>>3]=pa;fa=fa+p;O[j+680>>3]=fa;O[j+672>>3]=pa;ed(n,842289,j+672|0);od(n,842619);On(J[j+1112>>2],0,b?-1:1,n);O[j+664>>3]=M;O[j+656>>3]=v;ed(n,842127,j+656|0);O[j+648>>3]=M;O[j+640>>3]=s;p=q+p;O[j+632>> +3]=p;O[j+624>>3]=oa;O[j+616>>3]=p;O[j+608>>3]=ma;ed(n,842289,j+608|0);O[j+600>>3]=E;O[j+592>>3]=s;O[j+584>>3]=fa;p=$+r;O[j+576>>3]=p;O[j+568>>3]=ca;O[j+560>>3]=p;ed(n,842289,j+560|0);od(n,842619);break r}u:{v:switch(L|0){case 1:od(n,815571);if((d|0)>0){e=0;while(1){O[j+96>>3]=O[(e<<3)+g>>3];ed(n,815848,j+96|0);e=e+1|0;if((e|0)!=(d|0))continue;break}}od(n,816408);case 0:O[j+80>>3]=o;ed(n,816925,j+80|0);On(J[j+1112>>2],0,0,n);O[j- -64>>3]=p-o;O[j+56>>3]=r-o;O[j+48>>3]=o*.5;ed(n,817842,j+48|0);break u; +case 2:case 3:b=(L|0)==2;On(J[j+1112>>2],1,b?1:-1,n);od(n,818547);O[j+256>>3]=p;ed(n,818825,j+256|0);O[j+248>>3]=p;O[j+240>>3]=r;ed(n,819390,j+240|0);q=p-o;O[j+232>>3]=q;E=r-o;O[j+224>>3]=E;ed(n,819390,j+224|0);O[j+216>>3]=q;O[j+208>>3]=o;ed(n,819390,j+208|0);O[j+192>>3]=o;ed(n,819632,j+192|0);od(n,820040);On(J[j+1112>>2],1,b?-1:1,n);od(n,818547);O[j+176>>3]=r;ed(n,820782,j+176|0);O[j+168>>3]=p;O[j+160>>3]=r;ed(n,819390,j+160|0);O[j+152>>3]=q;O[j+144>>3]=E;ed(n,819390,j+144|0);O[j+136>>3]=o;O[j+128>> +3]=E;ed(n,819390,j+128|0);O[j+112>>3]=o;ed(n,819632,j+112|0);od(n,820040);break u;case 4:break v;default:break u}O[j+288>>3]=o;ed(n,816925,j+288|0);On(J[j+1112>>2],0,0,n);O[j+272>>3]=r;ed(n,821062,j+272|0)}O[j+16>>3]=o;q=o*-2;O[j+32>>3]=q+p;O[j+24>>3]=q+r;ed(n,821621,j+16|0)}yc(j+1104|0)}Mc(g);e=0;b=fc-80|0;fc=b;J[b+64>>2]=13;J[b+48>>2]=13;J[b+32>>2]=13;J[b+16>>2]=13;J[b>>2]=13;i=j+1216|0;Af(i,J[J[J[a>>2]>>2]+24>>2]);Ec(J[J[a>>2]+16>>2],806716,b- -64|0,0);w:{if(J[b+64>>2]!=7)break w;d=J[b+72>>2]; +if(J[d+16>>2]<=0)break w;while(1){d=J[J[d+4>>2]+(e<<5)>>2];aq(J[b+72>>2],e,b+32|0);x:{if(J[b+32>>2]!=7)break x;g=b+16|0;Af(g,J[J[J[a>>2]>>2]+24>>2]);d=Id(d);de(J[i+8>>2],d,g);d=0;g=J[b+40>>2];if(J[g+16>>2]<=0)break x;while(1){g=J[J[g+4>>2]+(d<<5)>>2];$p(J[b+40>>2],d,b);g=Id(g);de(J[b+24>>2],g,b);d=d+1|0;g=J[b+40>>2];if((d|0)>2])continue;break}}yc(b+32|0);e=e+1|0;d=J[b+72>>2];if((e|0)>2])continue;break}}yc(b- -64|0);Ec(J[a+32>>2],806716,b+48|0,0);y:{if(J[b+48>>2]!=7)break y;d=J[b+56>> +2];if(J[d+16>>2]<=0)break y;e=0;while(1){d=J[J[d+4>>2]+(e<<5)>>2];aq(J[b+56>>2],e,b+32|0);z:{if(J[b+32>>2]!=7)break z;g=b+16|0;Ec(J[i+8>>2],d,g,0);if(J[b+16>>2]!=7){yc(g);Af(g,J[J[J[a>>2]>>2]+24>>2])}d=Id(d);de(J[i+8>>2],d,b+16|0);d=0;g=J[b+40>>2];if(J[g+16>>2]<=0)break z;while(1){g=J[J[g+4>>2]+(d<<5)>>2];$p(J[b+40>>2],d,b);g=Id(g);de(J[b+24>>2],g,b);d=d+1|0;g=J[b+40>>2];if((d|0)>2])continue;break}}yc(b+32|0);e=e+1|0;d=J[b+56>>2];if((e|0)>2])continue;break}}yc(b+48|0);fc=b+80|0;L= +0;A:{if(J[j+1216>>2]!=7)break A;if(J[Ec(J[j+1224>>2],806935,j+1104|0,0)>>2]!=7)break A;d=vc(8);b=J[J[J[a>>2]>>2]+24>>2];J[699344]=0;L=ha(3543,d|0,b|0,0,J[j+1112>>2])|0;b=J[699344];J[699344]=0;if((b|0)!=1)break A;break j}b=j+1104|0;yc(b);B:{z=Rm(a,J[a+32>>2],805430,b);if(J[z>>2]!=3)break B;b=J[z+8>>2];d=vc(8);J[699344]=0;Y=aa(3350,d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break B;break j}yc(z);i=0;if(l){b=J[Ec(f,822631,z,0)>>2];d=J[z+8>>2];yc(z);i=(b|0)==1?d:0}Ec(h,810779,j+1200|0,0);Ec(h,836792, +j+1184|0,0);C:{D:{if(J[j+1184>>2]==4){b=vc(8);J[699344]=0;h=aa(3349,b|0,J[j+1192>>2])|0;d=J[699344];J[699344]=0;if((d|0)!=1)break D;break C}E:{if(J[j+1200>>2]==7){Ec(J[j+1208>>2],809264,z,0);F:{if(J[z>>2]!=7)break F;d=J[z+8>>2];if(J[d+16>>2]!=1)break F;b=vc(8);J[699344]=0;d=J[J[d+4>>2]>>2];e=J[699344];J[699344]=0;if((e|0)!=1){J[699344]=0;h=aa(3349,b|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break E}break C}yc(z)}b=vc(8);J[699344]=0;h=aa(3349,b|0,837100)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break D; +break C}yc(z)}yc(j+1184|0);yc(j+1200|0);d=0;k=0;e=0;g=fc-48|0;fc=g;J[g+24>>2]=13;J[g+8>>2]=13;Q=j+1052|0;J[Q>>2]=0;I=a;a=J[a+56>>2];G:{if(a){e=J[a+8>>2];if(!e)break G;a=0;J[g+44>>2]=0;while(1){b=a;a=a+1|0;if(xB(e,g+44|0,g+40|0))continue;break}a=0;d=Gd(b,4);J[g+44>>2]=0;while(1){b=a;a=a+1|0;if(xB(e,g+44|0,(b<<2)+d|0))continue;break}J[Q>>2]=b;break G}H:{I:{J:{K:{D=Rm(I,J[I+32>>2],803012,g+24|0);switch(J[D>>2]-3|0){case 4:break I;case 0:break J;case 1:break K;default:break H}}b=J[D+8>>2];A=Yc(b);d=Gd(A, +4);L:{if((A|0)<=0)break L;a=0;if(A>>>0>=4){y=A&-4;while(1){J[(a<<2)+d>>2]=K[a+b|0];x=a|1;J[(x<<2)+d>>2]=K[b+x|0];x=a|2;J[(x<<2)+d>>2]=K[b+x|0];x=a|3;J[(x<<2)+d>>2]=K[b+x|0];a=a+4|0;k=k+4|0;if((y|0)!=(k|0))continue;break}}k=A&3;if(!k)break L;while(1){J[(a<<2)+d>>2]=K[a+b|0];a=a+1|0;e=e+1|0;if((k|0)!=(e|0))continue;break}}J[Q>>2]=A;break H}b=vc(12);a=J[D+8>>2];J[699344]=0;a=aa(3354,b|0,a|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){b=J[a+4>>2];d=Gd(b,4);xc(d,J[a>>2],b<<2);J[Q>>2]=b;uc(ld(a));break H}a= +Z()|0;uc(b);break a}Ec(J[D+8>>2],803536,g+8|0,0);if(J[g+8>>2]==3){a=J[g+16>>2];b=J[a>>2];d=Gd(b,4);M:{if((b|0)<=0)break M;A=J[a+4>>2];a=0;if(b>>>0>=4){y=b&-4;while(1){J[(a<<2)+d>>2]=K[a+A|0];x=a|1;J[(x<<2)+d>>2]=K[A+x|0];x=a|2;J[(x<<2)+d>>2]=K[A+x|0];x=a|3;J[(x<<2)+d>>2]=K[A+x|0];a=a+4|0;k=k+4|0;if((y|0)!=(k|0))continue;break}}k=b&3;if(!k)break M;while(1){J[(a<<2)+d>>2]=K[a+A|0];a=a+1|0;e=e+1|0;if((k|0)!=(e|0))continue;break}}J[Q>>2]=b}yc(g+8|0)}yc(D)}fc=g+48|0;Q=d;N:{O:{P:{Q:{R:{if(J[ka>>2]!=4)break R; +a=J[ka+8>>2];if(!Ic(a,791539)){b=0;if(l){S:{if(J[Ec(f,815373,z,0)>>2]!=3)break S;a=J[z+8>>2];d=vc(8);J[699344]=0;b=aa(3350,d|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break S;break j}yc(z)}a=J[I+48>>2];if(a&32768){if(!Q)break Q;a=J[j+1052>>2];if((a|0)>0){e=J[h+4>>2];d=K[e|0];if(!d|(d|0)!=J[Q>>2])break Q;d=0;while(1){T:{d=d+1|0;if((a|0)==(d|0))break T;g=K[d+e|0];if(!g)break T;if((g|0)==J[Q+(d<<2)>>2])continue}break}if((a|0)>(d|0))break Q}if(b){Fr(b,Y,L,0,0,1,2,0,1,i,0,W-X,T-U,o,0,n);break P}if(!l)break O; +U:{if(J[Ec(f,815039,j+1088|0,0)>>2]!=6)break U;a=J[j+1096>>2];if(J[a+12>>2]<=0)break U;On(a,1,0,n);a=fc-224|0;fc=a;r=T-U;o=r*.5;O[a+216>>3]=o;q=W-X;p=q*.5;r=(q>3]=q;ed(n,842127,a+208|0);E=o+r;O[a+200>>3]=E;O[a+192>>3]=p;O[a+184>>3]=E;s=r*.55228475;v=s+p;O[a+176>>3]=v;M=s+o;O[a+168>>3]=M;O[a+160>>3]=q;ed(n,842289,a+160|0);O[a+152>>3]=o;s=p-r;O[a+144>>3]=s;O[a+136>>3]=M;O[a+128>>3]=s;O[a+120>>3]=E;E=r*-.55228475;M=E+p;O[a+112>>3]=M;ed(n,842289,a+112|0);r=o-r;O[a+104>>3]=r;O[a+ +96>>3]=p;O[a+88>>3]=r;O[a+80>>3]=M;p=E+o;O[a+72>>3]=p;O[a+64>>3]=s;ed(n,842289,a- -64|0);O[a+56>>3]=o;O[a+48>>3]=q;O[a+40>>3]=p;O[a+32>>3]=q;O[a+24>>3]=r;O[a+16>>3]=v;ed(n,842289,a+16|0);J[a>>2]=822872;ed(n,842493,a);fc=a+224|0}yc(j+1088|0);break O}if(a&65536){if(!b)break O;Fr(b,Y,L,0,0,1,1,0,0,i,0,W-X,T-U,o,0,n);break P}if(!Q)break Q;a=J[j+1052>>2];if((a|0)<=0)break Q;V:{W:{X:{Y:{d=J[Q>>2];switch(d-78|0){case 0:break X;case 1:break Y;default:break W}}d=a>>>0<2;if(!((a|0)==1|J[Q+4>>2]!=102)){if((a| +0)==2){if(a>>>0<3)break Q;break V}d=a>>>0<(J[Q+8>>2]==102?4:3)>>>0}if(d)break Q;break V}if(!((a|0)==1?a>>>0<2:a>>>0<(J[Q+4>>2]==111?3:2)>>>0))break V;break Q}if((d|0)!=48)break V;if(a>>>0<2)break Q}Z:{if(b)break Z;d=vc(8);J[699344]=0;b=aa(3349,d|0,823793)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Z;break N}Fr(b,Y,L,0,0,1,2,0,1,i,0,W-X,T-U,o,0,n);break P}if(!Ic(a,792183)){a=J[I+56>>2];if(a)g=J[a+20>>2];else g=0;if(!Q)break O;a=J[j+1052>>2];d=0;l=vc(8);J[699344]=0;A=_(3351,l|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break i;if((a|0)>0)while(1){b=J[Q+(d<<2)>>2];if(b>>>0<=255)Kd(A,b<<24>>24);d=d+1|0;if((a|0)!=(d|0))continue;break}_:{if(g){r=0;m=fc-608|0;fc=m;od(n,838731);$:{aa:{ba:{ca:{if((i|0)!=90){if((i|0)==180)break ca;if((i|0)==270)break ba;o=T-U;s=W-X;break $}o=W-X;O[m+576>>3]=o;ed(n,838958,m+576|0);s=T-U;break $}s=T-U;O[m+592>>3]=s;ed(n,839348,m+592|0);break aa}s=T-U;O[m+560>>3]=s;ed(n,839348,m+560|0)}o=W-X}E=o*.2;if(Y){a=gu(Y);k=J[a+8>>2];da:{if((k|0)<3)break da;f=2;while(1){if(!Dd(J[J[a>> +2]+(f<<2)>>2],805790)){E=qg(J[J[(J[a>>2]+(f<<2)|0)-4>>2]+4>>2]);k=J[a+8>>2];break da}f=f+1|0;k=J[a+8>>2];if((f|0)<(k|0))continue;break}}if((k|0)>0){f=0;while(1){b=J[J[a>>2]+(f<<2)>>2];if(b){uc(Zc(b));k=J[a+8>>2]}f=f+1|0;if((k|0)>(f|0))continue;break}}uc(ld(a))}ea:{fa:{ga:{a=J[g+40>>2];if(!a)break ga;if(!Dd(a,842659)){q=0;r=o;p=o-E;k=0;break fa}a=J[g+40>>2];if(!a)break ga;e=1;q=0;if(!Dd(a,842801)){u=3;k=0;p=o;break ea}a=J[g+40>>2];if(!a)break ga;if(!Dd(a,843013)){k=0;r=o;p=o;break ea}a=J[g+40>>2]; +if(!a)break ga;if(Dd(a,843122))break ga;p=0;k=1;break fa}u=3;q=E;p=o-q;k=0}e=0}a=vc(8);J[699344]=0;w=aa(3350,a|0,A|0)|0;b=J[699344];J[699344]=0;ha:{ia:{ja:{ka:{la:{ma:{if((b|0)!=1){na:{if(Dd(J[g>>2],843328))break na;f=J[w>>2];if((f|0)<=0)break na;if(K[J[w+4>>2]]==42){Sm(w,0,1);f=J[w>>2];if((f|0)<=0)break na}a=f-1|0;if(K[a+J[w+4>>2]|0]!=42)break na;Sm(w,a,1)}if(!Dd(J[g>>2],843328)){if(!J[g+32>>2]){Cc(1,-1,843454,0);break ha}od(n,843656);v=O[g+8>>3]*3+7;o=s/(v*+(J[g+32>>2]+2|0));d=-1;a=J[w>>2];if((a| +0)<-1)break ka;s=0;while(1){a=P((d|0)<0|(a|0)<=(d|0)?42:K[J[w+4>>2]+d|0]&127,10);oa:{if(!K[a+2195248|0]){O[m+280>>3]=p;O[m+272>>3]=o;O[m+264>>3]=q;O[m+256>>3]=s;ed(n,841760,m+256|0);v=1;break oa}v=O[g+8>>3];O[m+312>>3]=p;O[m+304>>3]=o*v;O[m+296>>3]=q;O[m+288>>3]=s;ed(n,841760,m+288|0);v=O[g+8>>3]}s=(v+(K[a+2195249|0]?O[g+8>>3]:1))*o+s;pa:{if(K[a+2195250|0]){v=O[g+8>>3];O[m+248>>3]=p;O[m+240>>3]=o*v;O[m+232>>3]=q;O[m+224>>3]=s;ed(n,841760,m+224|0);v=O[g+8>>3];break pa}O[m+216>>3]=p;O[m+208>>3]=o;O[m+ +200>>3]=q;O[m+192>>3]=s;ed(n,841760,m+192|0);v=1}s=(v+(K[a+2195251|0]?O[g+8>>3]:1))*o+s;qa:{if(K[a+2195252|0]){v=O[g+8>>3];O[m+184>>3]=p;O[m+176>>3]=o*v;O[m+168>>3]=q;O[m+160>>3]=s;ed(n,841760,m+160|0);v=O[g+8>>3];break qa}O[m+152>>3]=p;O[m+144>>3]=o;O[m+136>>3]=q;O[m+128>>3]=s;ed(n,841760,m+128|0);v=1}s=(v+(K[a+2195253|0]?O[g+8>>3]:1))*o+s;ra:{if(K[a+2195254|0]){v=O[g+8>>3];O[m+120>>3]=p;O[m+112>>3]=o*v;O[m+104>>3]=q;O[m+96>>3]=s;ed(n,841760,m+96|0);v=O[g+8>>3];break ra}O[m+88>>3]=p;O[m+80>>3]=o; +O[m+72>>3]=q;O[m+64>>3]=s;ed(n,841760,m- -64|0);v=1}s=(v+(K[a+2195255|0]?O[g+8>>3]:1))*o+s;sa:{if(K[a+2195256|0]){v=O[g+8>>3];O[m+56>>3]=p;O[m+48>>3]=o*v;O[m+40>>3]=q;O[m+32>>3]=s;ed(n,841760,m+32|0);v=O[g+8>>3];break sa}O[m+24>>3]=p;O[m+16>>3]=o;O[m+8>>3]=q;O[m>>3]=s;ed(n,841760,m);v=1}s=(v+(K[a+2195257|0]?O[g+8>>3]:1))*o+s;a=J[w>>2];b=(d|0)<(a|0);d=d+1|0;if(b)continue;break}break la}if(!Dd(J[g>>2],843748)){if(!J[g+32>>2]){Cc(1,-1,843454,0);break ha}od(n,843656);o=s/+(P(J[g+32>>2],11)+35|0);if(J[w>> +2]<=-3){v=o+o;s=0;break ma}O[m+536>>3]=p;v=o+o;O[m+528>>3]=v;O[m+520>>3]=q;J[m+512>>2]=0;J[m+516>>2]=0;ed(n,841760,m+512|0);O[m+504>>3]=p;O[m+496>>3]=o;O[m+488>>3]=q;s=o*3;M=s+0;O[m+480>>3]=M;ed(n,841760,m+480|0);O[m+472>>3]=p;O[m+464>>3]=o;O[m+456>>3]=q;s=s+M;O[m+448>>3]=s;ed(n,841760,m+448|0);s=o*5+s;i=J[w>>2];if((i|0)<=-2)break ma;a=104;d=0;while(1){b=d;ta:{if((b|0)==(i|0)){d=(a|0)%103|0;break ta}d=106;if((b|0)==(i+1|0))break ta;d=K[b+J[w+4>>2]|0];d=d<<24>>24>31?d-32|0:0;a=a+P(d,b+1|0)|0}O[m+440>> +3]=p;d=P(d,6);f=K[d+2194592|0];O[m+432>>3]=o*+(f>>>0);O[m+424>>3]=q;O[m+416>>3]=s;ed(n,841760,m+416|0);O[m+408>>3]=p;g=K[d+2194594|0];O[m+400>>3]=o*+(g>>>0);O[m+392>>3]=q;s=+(f+K[d+2194593|0]|0)*o+s;O[m+384>>3]=s;ed(n,841760,m+384|0);O[m+376>>3]=p;f=K[d+2194596|0];O[m+368>>3]=o*+(f>>>0);O[m+360>>3]=q;s=+(g+K[d+2194595|0]|0)*o+s;O[m+352>>3]=s;ed(n,841760,m+352|0);s=+(f+K[d+2194597|0]|0)*o+s;d=b+1|0;i=J[w>>2];if((b|0)<=(i|0))continue;break}break ma}if(!Dd(J[g>>2],843869)){N=J[g+36>>2];b=0;t=fc-7872| +0;fc=t;p=O[g+16>>3];r=O[g+24>>3];ua:{if(p<=0|r<=0){Cc(1,-1,776754,0);break ua}q=V((s/p+-73)/17);va:{if(R(q)<2147483648){ga=~~q;break va}ga=-2147483648}if((ga|0)<=0){Cc(1,-1,777752,0);break ua}l=1;wa:{D=J[w>>2];if((D|0)<=0)break wa;C=J[w+4>>2];x=C+2|0;F=C+1|0;na=t|12;qa=t|8;ra=t|4;u=1;xa:{while(1){e=D-b|0;i=0;a=b;ya:{while(1){if((K[a+C|0]-48&255)>>>0>9)break ya;a=a+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}i=e}d=0;f=b;za:{Aa:{if((i|0)>=13){if((l|0)>927)break xa;J[t+(l<<2)>>2]=902;sa=b+C|0;l=l+1|0; +u=0;d=i;while(1){k=i-u|0;ia=(k|0)>=44?44:k;y=(d|0)>=44?44:d;J[t+5824>>2]=1;Ba:{if((k|0)<=0)break Ba;f=(y|0)<=1?1:y;ea=f&3;g=u+sa|0;e=0;a=0;if(f>>>0>=4){ja=f&2147483644;f=0;while(1){S=t+5824|0;da=a|1;J[S+(da<<2)>>2]=H[a+g|0]-48;la=a|2;J[S+(la<<2)>>2]=H[g+da|0]-48;da=a|3;J[S+(da<<2)>>2]=H[g+la|0]-48;a=a+4|0;J[S+(a<<2)>>2]=H[g+da|0]-48;f=f+4|0;if((ja|0)!=(f|0))continue;break}}if(!ea)break Ba;while(1){f=a+g|0;a=a+1|0;J[(t+5824|0)+(a<<2)>>2]=H[f|0]-48;e=e+1|0;if((ea|0)!=(e|0))continue;break}}if((k|0)>= +-2){S=(ia|0)/3|0;f=(S|0)>0?S:0;Ca:{if((k|0)>=0){ea=y&1;y=y+1&-2;k=0;while(1){g=0;a=0;e=0;if(d)while(1){ia=a<<2;ja=t+5824|0;da=ia+ja|0;la=J[da>>2]+P(g,10)|0;g=(la|0)/900|0;J[da>>2]=g;ia=ja+(ia|4)|0;ja=J[ia>>2]+P(la-P(g,900)|0,10)|0;g=(ja|0)/900|0;J[ia>>2]=g;g=ja-P(g,900)|0;a=a+2|0;e=e+2|0;if((y|0)!=(e|0))continue;break}da=(t+5760|0)+(S-k<<2)|0;if(!ea){e=(t+5824|0)+(a<<2)|0;g=J[e>>2]+P(g,10)|0;a=(g|0)/900|0;J[e>>2]=a;g=g-P(a,900)|0}J[da>>2]=g;a=(f|0)==(k|0);k=k+1|0;if(!a)continue;break}break Ca}Ac((t+ +5760|0)+(S-f<<2)|0,0,(f<<2)+4|0)}e=((l|0)<=928?928:l)-l|0;a=0;while(1){if((a|0)==(e|0))break xa;J[t+(l<<2)>>2]=J[(t+5760|0)+(a<<2)>>2];l=l+1|0;g=(a|0)==(f|0);a=a+1|0;if(!g)continue;break}}d=d-44|0;u=u+44|0;if((u|0)<(i|0))continue;break}b=b+i|0;break Aa}while(1){Da:{a=H[f+C|0];if(a&128)break Da;a=a<<2;if(!(K[a+2319792|0]!=30|K[a+2319793|0]!=30|K[a+2319794|0]!=30)&K[a+2319795|0]==30)break Da;i=D-f|0;g=0;a=f;Ea:{while(1){if((K[a+C|0]-48&255)>>>0>9)break Ea;a=a+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}g= +i}a=(g|0)<13;d=a+d|0;f=f+1|0;if((D|0)==(f|0))break Da;if(a)continue}break}i=0;k=b;if((d|0)>=5){if(!u){if((l|0)>927)break xa;J[t+(l<<2)>>2]=900;l=l+1|0}f=b+d|0;k=f-2|0;u=f-1|0;a=30;d=0;e=0;while(1){i=K[b+C|0]&127;Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{g=e;switch(g|0){case 5:break Qa;case 3:break Va;case 2:break Wa;case 1:break Xa;case 4:break Ya;case 0:break Za;default:break Fa}}e=i<<2;d=H[e+2319792|0];if((d|0)<=29){if((a|0)==30){a=d;break Ga}if((l|0)>927)break xa; +J[t+(l<<2)>>2]=d+P(a,30);l=l+1|0;a=30;break Ga}if(H[e+2319793|0]<=29){if((a|0)==30)break Ha;if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+27;break Ua}if(H[e+2319794|0]<=29){if((a|0)==30)break Ia;if((l|0)>927)break xa;e=2;J[t+(l<<2)>>2]=P(a,30)+28;break Sa}if(H[e+2319795|0]>29)break Ga;if(!(H[((K[b+F|0]&127)<<2)+2319795|0]>29|(b|0)>=(k|0)|H[((K[b+x|0]&127)<<2)+2319795|0]>29))break Ja;e=5;if((a|0)==30){a=29;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;break Sa}i=H[(i<<2)+2319792|0];if((i| +0)<=29)break La;if((a|0)==30)break Pa;break Oa}e=i<<2;if(H[e+2319792|0]<=29){if(!(H[((K[b+F|0]&127)<<2)+2319792|0]>29|(b|0)>=(k|0)|H[((K[b+x|0]&127)<<2)+2319792|0]>29)){if((a|0)!=30){if((l|0)>927)break xa;d=P(a,30);a=28;J[t+(l<<2)>>2]=d+28;l=l+1|0;e=0;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=868;l=l+1|0;e=0;a=30;break Fa}e=4;if((a|0)==30){a=27;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+27;break Sa}d=H[e+2319793|0];if((d|0)<=29){if((a|0)==30){a=d;break Ma}if((l|0)>927)break xa;J[t+ +(l<<2)>>2]=d+P(a,30);l=l+1|0;a=30;break Ma}if(H[e+2319794|0]<=29){if((a|0)==30)break Ia;if((l|0)>927)break xa;e=2;J[t+(l<<2)>>2]=P(a,30)+28;break Sa}if(H[e+2319795|0]>29)break Ma;if(!(H[((K[b+F|0]&127)<<2)+2319795|0]>29|(b|0)>=(k|0)|H[((K[b+x|0]&127)<<2)+2319795|0]>29))break Ja;e=5;if((a|0)==30){a=29;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;break Sa}e=i<<2;if(H[e+2319792|0]<=29){e=0;if((a|0)==30){a=28;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+28;break Sa}if(H[e+2319793| +0]<=29){if((a|0)==30)break Ha;if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+27;break Ua}d=H[e+2319794|0];if((d|0)<=29){if((a|0)==30){a=d;break Na}if((l|0)>927)break xa;J[t+(l<<2)>>2]=d+P(a,30);l=l+1|0;a=30;break Na}if(H[e+2319795|0]>29)break Na;if(!(H[((K[b+F|0]&127)<<2)+2319795|0]>29|(b|0)>=(u|0))){e=3;if((a|0)==30){a=25;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+25;break Sa}e=5;if((a|0)==30){a=29;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;break Sa}d=i<<2;if(H[d+2319792|0]<= +29){e=0;if((a|0)==30){a=29;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;break Sa}if(H[d+2319793|0]>29)break Ta;if((a|0)!=30){if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+29;e=1;l=l+1|0;a=27;break Fa}if((l|0)>927)break xa;J[t+(l<<2)>>2]=897}e=1;l=l+1|0;a=30;break Fa}if(H[d+2319794|0]>29)break Ra;if((a|0)!=30){if((l|0)>927)break xa;e=2;J[t+(l<<2)>>2]=P(a,30)+29;l=l+1|0;a=28;break Fa}if((l|0)>927)break xa;e=2;J[t+(l<<2)>>2]=898}l=l+1|0;a=30;break Fa}d=H[d+2319795|0];_a:{if((d|0)>29)break _a; +if((a|0)==30){a=d;break _a}if((l|0)>927)break xa;J[t+(l<<2)>>2]=d+P(a,30);l=l+1|0;a=30}b=b+1|0;e=3;break Fa}i=H[(i<<2)+2319795|0];if((i|0)<=29)break La;if((a|0)!=30)break Oa}a=0;break Ka}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30);l=l+1|0;a=30;break Ka}b=b+1|0;e=2;break Fa}e=1;b=b+1|0;break Fa}if((a|0)==30){b=b+1|0;a=i;break Ka}if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+i;l=l+1|0;b=b+1|0;a=30}e=d;break Fa}$a:{if((a|0)!=30){if((l|0)>927)break xa;J[t+(l<<2)>>2]=P(a,30)+28;break $a}if((l|0)>927)break xa; +J[t+(l<<2)>>2]=865;l=l+1|0;e=3;a=30;break Fa}l=l+1|0;e=3;a=25;break Fa}e=2;a=28;break Fa}e=1;a=27;break Fa}b=b+1|0;e=0}d=g;if((b|0)<(f|0))continue;break}u=1;if((a|0)>29){b=f;break za}if((l|0)>927){b=f;break za}J[t+(l<<2)>>2]=P(a,30)+29;l=l+1|0;b=f;break za}ab:{while(1){d=D-k|0;g=0;a=k;bb:{while(1){if((K[a+C|0]-48&255)>>>0>9)break bb;a=a+1|0;g=g+1|0;if((d|0)!=(g|0))continue;break}g=d}d=0;f=k;if((g|0)>12)break ab;while(1){cb:{a=H[f+C|0];if(a&128)break cb;a=a<<2;if(!(K[a+2319792|0]!=30|K[a+2319793|0]!= +30|K[a+2319794|0]!=30)&K[a+2319795|0]==30)break cb;u=D-f|0;g=0;a=f;db:{while(1){if((K[a+C|0]-48&255)>>>0>9)break db;a=a+1|0;g=g+1|0;if((u|0)!=(g|0))continue;break}g=u}a=(g|0)<13;d=a+d|0;f=f+1|0;if((D|0)==(f|0))break cb;if(a)continue}break}if((d|0)>4)break ab;k=k+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}i=e}if((l|0)>927)break xa;J[t+(l<<2)>>2]=(i|0)%6|0?901:924;l=l+1|0;a=0;if((i|0)>=6){k=i-6|0;u=b+C|0;while(1){d=a+u|0;e=K[d+3|0];f=e>>>24|0;g=K[d+1|0];y=g>>>24|0;S=K[d|0];ea=S>>>16|0;g=K[d+2|0]|(g<< +8|S<<16);e=K[d+4|0]|e<<8|g<<16;g=(y|ea)<<16|g>>>16|f;y=g;f=K[d+5|0]|e<<8;g=g<<8|e>>>24;S=xEb(f,g,729E6,0);if((l|0)>927)break xa;d=l<<2;ta=d+t|0,ua=xEb(e,y,-1732076671,0),J[ta>>2]=ua;if((l|0)==927)break xa;J[d+ra>>2]=(S>>>0)%900;if((l|0)>925)break xa;ta=d+qa|0,ua=(xEb(f,g,81E4,0)>>>0)%900|0,J[ta>>2]=ua;if((l|0)==925)break xa;tEb(xEb(f,g,900,0),jc,900,0);jc=ic;J[d+na>>2]=hc;l=l+4|0;a=a+6|0;if((k|0)>=(a|0))continue;break}}if((a|0)<(i|0)){d=(l|0)<=928?928:l;e=b+C|0;while(1){if((d|0)==(l|0))break xa;J[t+ +(l<<2)>>2]=K[a+e|0];l=l+1|0;a=a+1|0;if((i|0)!=(a|0))continue;break}}b=b+i|0}u=0}if((b|0)<(D|0))continue;break}if((l|0)!=929)break wa}Cc(1,-1,778918,0);break ua}k=(ga|0)>=30?30:ga;u=N+1|0;g=1<>>0>=91){Cc(1,-1,780193,0);break ua}a=P(b,k)-a|0;d=a+l|0;if((d|0)>=929){Cc(1,-1,778918,0);break ua}J[t>>2]=d;if((a|0)>0)while(1){J[t+(l<<2)>>2]=900;l=l+1|0;if((l|0)<(d|0))continue;break}if((u|0)!=31)Ac(t+5824|0,0,((g|0)<=1?1:g)<<2);eb:{if((d|0)<=0)break eb; +e=g-1|0;l=(t+5824|0)+(e<<2)|0;F=J[(N<<2)+2320304>>2];C=J[F>>2];i=0;if((g|0)>=2)while(1){D=(J[l>>2]+J[t+(i<<2)>>2]|0)%929|0;a=e;while(1){y=a<<2;x=t+5824|0;f=a-1|0;J[y+x>>2]=((J[x+(f<<2)>>2]-((P(D,J[y+F>>2])|0)%929|0)|0)+929|0)%929;y=(a|0)>1;a=f;if(y)continue;break}a=(P(C,D)|0)%929|0;f=929-a|0;J[t+5824>>2]=f>>>0<929?f:0-a|0;i=i+1|0;if((i|0)!=(d|0))continue;break eb}while(1){a=(P(C,(J[l>>2]+J[t+(i<<2)>>2]|0)%929|0)|0)%929|0;e=929-a|0;J[t+5824>>2]=e>>>0<929?e:0-a|0;i=i+1|0;if((i|0)!=(d|0))continue;break}}if((u| +0)!=31)while(1){a=g-1|0;e=J[(t+5824|0)+(a<<2)>>2];J[t+(d<<2)>>2]=e?929-e|0:0;d=d+1|0;e=(g|0)>1;g=a;if(e)continue;break}q=+(b|0);if(q*r+p*6>o){Cc(1,-1,780193,0);break ua}i=0;a=0;e=fc-368|0;fc=e;od(n,781842);r=(p*-6+o)/q;O[e+344>>3]=r;d=b;O[e+360>>3]=(o-+(b|0)*r)*.5;O[e+336>>3]=p;O[e+352>>3]=(s-+(P(k,17)+73|0)*p)*.5;ed(n,782885,e+336|0);if((b|0)>0){D=b-1|0;C=(D>>>0)/3|0;F=(D-P(C,3)|0)+P(N,3)|0;y=k-1|0;while(1){b=0;l=0;fb:{gb:{hb:{ib:{f=(i>>>0)/3|0;g=i-P(f,3)|0;switch(g|0){case 2:break gb;case 1:break hb; +case 0:break ib;default:break fb}}b=P((i>>>0)/3|0,30);l=b+y|0;b=b+C|0;break fb}b=P((i>>>0)/3|0,30);l=b+C|0;b=b+F|0;break fb}b=P(f,30);l=b+F|0;b=b+y|0}J[e+328>>2]=8;f=D-i|0;J[e+324>>2]=f;J[e+320>>2]=0;ed(n,784980,e+320|0);J[e+312>>2]=1;J[e+308>>2]=f;J[e+304>>2]=9;ed(n,784980,e+304|0);J[e+296>>2]=1;J[e+292>>2]=f;J[e+288>>2]=11;ed(n,784980,e+288|0);J[e+280>>2]=1;J[e+276>>2]=f;J[e+272>>2]=13;ed(n,784980,e+272|0);J[e+260>>2]=f;N=g<<3;b=N+P(b,24)|0;g=H[b+2320352|0];J[e+264>>2]=g;J[e+256>>2]=17;ed(n,784980, +e+256|0);J[e+244>>2]=f;g=(g+H[b+2320353|0]|0)+17|0;J[e+240>>2]=g;u=H[b+2320354|0];J[e+248>>2]=u;ed(n,784980,e+240|0);J[e+228>>2]=f;g=H[b+2320355|0]+(g+u|0)|0;J[e+224>>2]=g;u=H[b+2320356|0];J[e+232>>2]=u;ed(n,784980,e+224|0);J[e+212>>2]=f;g=H[b+2320357|0]+(g+u|0)|0;J[e+208>>2]=g;u=H[b+2320358|0];J[e+216>>2]=u;ed(n,784980,e+208|0);u=H[b+2320359|0]+(g+u|0)|0;if((k|0)>0){b=a+k|0;while(1){g=J[t+(a<<2)>>2];J[e+196>>2]=f;g=N+P(g,24)|0;x=H[g+2320352|0];J[e+200>>2]=x;J[e+192>>2]=u;ed(n,784980,e+192|0);J[e+ +180>>2]=f;u=H[g+2320353|0]+(u+x|0)|0;J[e+176>>2]=u;x=H[g+2320354|0];J[e+184>>2]=x;ed(n,784980,e+176|0);J[e+164>>2]=f;u=H[g+2320355|0]+(u+x|0)|0;J[e+160>>2]=u;x=H[g+2320356|0];J[e+168>>2]=x;ed(n,784980,e+160|0);J[e+148>>2]=f;u=H[g+2320357|0]+(u+x|0)|0;J[e+144>>2]=u;x=H[g+2320358|0];J[e+152>>2]=x;ed(n,784980,e+144|0);u=H[g+2320359|0]+(u+x|0)|0;a=a+1|0;if((b|0)!=(a|0))continue;break}a=b}J[e+132>>2]=f;b=N+P(l,24)|0;g=H[b+2320352|0];J[e+136>>2]=g;J[e+128>>2]=u;ed(n,784980,e+128|0);J[e+116>>2]=f;g=H[b+ +2320353|0]+(g+u|0)|0;J[e+112>>2]=g;u=H[b+2320354|0];J[e+120>>2]=u;ed(n,784980,e+112|0);J[e+100>>2]=f;g=H[b+2320355|0]+(g+u|0)|0;J[e+96>>2]=g;u=H[b+2320356|0];J[e+104>>2]=u;ed(n,784980,e+96|0);J[e+84>>2]=f;g=H[b+2320357|0]+(g+u|0)|0;J[e+80>>2]=g;u=H[b+2320358|0];J[e+88>>2]=u;ed(n,784980,e+80|0);J[e+72>>2]=7;J[e+68>>2]=f;b=H[b+2320359|0]+(g+u|0)|0;J[e+64>>2]=b;ed(n,784980,e- -64|0);J[e+56>>2]=1;J[e+52>>2]=f;J[e+48>>2]=b+8;ed(n,784980,e+48|0);J[e+40>>2]=1;J[e+36>>2]=f;J[e+32>>2]=b+12;ed(n,784980,e+32| +0);J[e+24>>2]=1;J[e+20>>2]=f;J[e+16>>2]=b+14;ed(n,784980,e+16|0);J[e+8>>2]=1;J[e+4>>2]=f;J[e>>2]=b+17;ed(n,784980,e);i=i+1|0;if((d|0)!=(i|0))continue;break}}od(n,784052);fc=e+368|0}fc=t+7872|0;break ia}J[m+544>>2]=J[g>>2];Cc(1,-1,843947,m+544|0);break ja}b=Z()|0;uc(a);ba(b|0);B()}O[m+344>>3]=p;O[m+336>>3]=v;O[m+328>>3]=q;O[m+320>>3]=s;ed(n,841760,m+320|0);s=o*+(P(J[w>>2],11)+35|0);break ja}v=O[g+8>>3]*3+7}s=o*(v*+(a+2|0))}if(k)break ia;Fr(w,Y,L,0,0,1,u,0,0,0,r,s,E+r,0,e,n)}od(n,841272)}uc(Zc(w)); +fc=m+608|0;break _}a=Rm(I,J[I+32>>2],823958,j+1088|0);b=J[a+8>>2];d=J[a>>2];yc(a);u=(d|0)==1?b:0;e=J[I+48>>2];l=(e^-1)>>>12&1;b=J[I+56>>2];jb:{if(!b)break jb;d=J[b+12>>2];if(!d)break jb;f=J[d>>2];u=(f|0)==2?2:(f|0)==1;l=0;kb:switch(J[d+4>>2]-1|0){case 0:l=1;break jb;case 1:break kb;default:break jb}l=3}if(e&16777216){b=Rm(I,J[I+32>>2],808764,a);d=J[b>>2];a=J[a+8>>2];yc(b);t=(d|0)==1?a:0;b=J[I+56>>2]}d=A;lb:{if(!b)break lb;a=J[b+16>>2];if(!a)break lb;mb:switch(J[a>>2]){case 0:m=J[a+4>>2];e=fc-192| +0;fc=e;nb:{ob:{pb:{d=J[A>>2];if(!d){g=vc(8);J[699344]=0;b=aa(3350,g|0,A|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break pb;break ob}qb:{rb:{sb:{tb:{if((d|0)<=3)break tb;f=J[A+4>>2];S=K[f|0];if((S-48&255)>>>0>=10)break tb;g=f+1|0;ga=K[g|0];if((ga-48&255)>>>0>9)break tb;ea=K[f+2|0];if((ea-48&255)>>>0>9)break tb;na=K[f+3|0];if((na-48&255)>>>0>=10)break tb;a=4;y=0;if(d>>>0<5)break qb;a=K[f+4|0]==45?5:4;b=a|2;if(d>>>0>=b>>>0)break sb;break rb}g=vc(8);J[699344]=0;b=aa(3350,g|0,A|0)|0;a=J[699344];J[699344]= +0;if((a|0)!=1)break pb;break ob}if(a>>>0>=d>>>0)break rb;k=K[a+f|0];if((d-a|0)==1|(k-58&255)>>>0<246)break rb;D=K[a+g|0];if((D-48&255)>>>0>=10)break rb;C=(D+P(k,10)|0)-528|0;ub:{b=b>>>0>>0?K[b+f|0]==45?a+3|0:b:b;a=b+2|0;if(d>>>0>>0|b>>>0>=d>>>0)break ub;k=K[b+f|0];if((((b|0)<(d|0)?d:b)-b|0)==1|(k-58&255)>>>0<246)break ub;g=K[b+g|0];if((g-48&255)>>>0>=10)break ub;y=(g+P(k,10)|0)-528|0;break qb}a=b;y=0;break qb}y=0}vb:{wb:{if(a>>>0>=d>>>0)break wb;if(K[a+f|0]!=84){g=vc(8);J[699344]=0;b=aa(3350, +g|0,A|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break pb;break ob}b=a+3|0;if(d>>>0>>0)break vb;g=a+1|0;if(g>>>0>=d>>>0)break vb;x=(((d|0)>(g|0)?d:g)-g|0)==1;g=f+g|0;k=K[g|0];if(x|(k-58&255)>>>0<246)break vb;g=K[g+1|0];if((g-48&255)>>>0>=10)break vb;F=(g+P(k,10)|0)-528|0;a=b>>>0>>0?K[b+f|0]==58?a+4|0:b:b;b=a+2|0;xb:{if(d>>>0>>0|a>>>0>=d>>>0)break xb;g=a+f|0;k=K[g|0];if((((a|0)<(d|0)?d:a)-a|0)==1|(k-58&255)>>>0<246)break xb;g=K[g+1|0];if((g-48&255)>>>0>=10)break xb;N=(g+P(k,10)|0)-528|0;b=b>>> +0>>0?K[b+f|0]==58?a+3|0:b:b;a=b+2|0;if(d>>>0>>0){a=b;break wb}if(b>>>0>=d>>>0){a=b;break wb}f=b+f|0;g=K[f|0];if((g-58&255)>>>0<246){a=b;break wb}if((((b|0)<(d|0)?d:b)-b|0)==1){a=b;break wb}f=K[f+1|0];if((f-48&255)>>>0>=10){a=b;break wb}w=(f+P(g,10)|0)-528|0}}if(a>>>0>>0){g=vc(8);J[699344]=0;b=aa(3350,g|0,A|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break pb;break ob}yb:{zb:{a=J[m>>2];if((a|0)<=0)break zb;f=1;d=J[m+4>>2];b=K[d|0];if((b|0)!=123){g=0;while(1){Ab:{if((b-97&255)>>>0>=26){f=0;if((b& +254)!=40&(b-65&255)>>>0>25)break yb;g=g+1|0;if((g|0)>=(a|0))break yb;break Ab}g=g+1|0;if((g|0)>=(a|0))break zb}b=K[d+g|0];if((b|0)!=123)continue;break}f=g+1|0}if((a|0)<=(f|0)){a=f;break yb}b=f;while(1){if(K[b+d|0]==125){a=b;break yb}b=b+1|0;if((b|0)!=(a|0))continue;break}break yb}f=0}g=vc(16);J[699344]=0;k=_(3352,g|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if((a|0)>(f|0))while(1){b=f+1|0;Bb:{Cb:{Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{g=J[m+4>>2];D=K[g+f|0];switch(D-32|0){case 0:case 12:case 13:case 14:case 15:case 26:break Db; +case 7:break Eb;case 57:break Fb;case 45:break Gb;case 36:break Hb;case 72:break Ib;case 40:break Jb;case 51:break Kb;default:break Bb}}d=1;if((a|0)>(b|0)){d=K[b+g|0]==83;b=d?f+2|0:b;d=d?2:1}g=vc(8);J[g+4>>2]=d;J[g>>2]=2197020;break Cb}d=1;if((a|0)>(b|0)){d=K[b+g|0]==72;b=d?f+2|0:b;d=d?2:1}g=vc(12);J[g+8>>2]=d;J[g+4>>2]=1;J[g>>2]=2196928;break Cb}d=1;if((a|0)>(b|0)){d=K[b+g|0]==104;b=d?f+2|0:b;d=d?2:1}g=vc(12);J[g+8>>2]=d;J[g+4>>2]=0;J[g>>2]=2196928;break Cb}d=1;if((a|0)>(b|0)){d=K[b+g|0]==68;b=d? +f+2|0:b;d=d?2:1}g=vc(8);J[g+4>>2]=d;J[g>>2]=2196836;break Cb}d=1;if((a|0)>(b|0)){d=K[b+g|0]==77;b=d?f+2|0:b;d=d?2:1}g=vc(8);J[g+4>>2]=d;J[g>>2]=2196744;break Cb}d=1;Lb:{if(K[b+g|0]!=89|(a|0)<=(b|0))break Lb;b=f+2|0;d=2;if((b|0)>=(a|0)|K[b+g|0]!=89)break Lb;b=f+3|0;d=3;if((b|0)>=(a|0))break Lb;d=K[b+g|0]==89;b=d?f+4|0:b;d=d?4:3}g=vc(8);J[g+4>>2]=d;J[g>>2]=2196652;break Cb}g=vc(8);J[699344]=0;f=_(3351,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break ob;Mb:{if((a|0)<=(b|0))break Mb;while(1){d=b;Nb:{Ob:{g= +J[m+4>>2];D=g+b|0;x=K[D|0];if((x|0)!=92){if((x|0)!=39)break Ob;b=b+1|0;if((b|0)>=(a|0)|K[b+g|0]!=39)break Mb;Kd(f,39);b=d+2|0;break Nb}x=d+1|0;if((x|0)==(a|0)){b=a;break Mb}b=d+2|0;Pb:{x=K[g+x|0];if((x|0)!=117)break Pb;d=d+6|0;if((d|0)>(a|0))break Pb;g=H[b+g|0];b=g-48|0;Qb:{if((b&255)>>>0<=9)break Qb;if((g-97&255)>>>0<=5){b=g-87|0;break Qb}b=(g-65&255)>>>0<6?g-55|0:0}b=b<<4;g=H[D+3|0];Rb:{if((g-48&255)>>>0>=10){if((g-97&255)>>>0>=6){if((g-65&255)>>>0>5)break Rb;b=(b+g|0)-55|0;break Rb}b=(b+g|0)-87| +0;break Rb}b=(b+g|0)-48|0}b=b<<4;g=H[D+4|0];Sb:{if((g-48&255)>>>0>=10){if((g-97&255)>>>0>=6){if((g-65&255)>>>0>5)break Sb;b=(b+g|0)-55|0;break Sb}b=(b+g|0)-87|0;break Sb}b=(b+g|0)-48|0}b=b<<4;g=H[D+5|0];Tb:{if((g-48&255)>>>0>=10){if((g-97&255)>>>0>=6){if((g-65&255)>>>0>5)break Tb;b=(b+g|0)-55|0;break Tb}b=(b+g|0)-87|0;break Tb}b=(b+g|0)-48|0}if((b|0)>255){b=d;break Nb}Kd(f,b<<24>>24);b=d;break Nb}Kd(f,x<<24>>24);break Nb}Kd(f,x<<24>>24)}if((a|0)>(b|0))continue;break}}g=vc(8);J[g+4>>2]=f;J[g>>2]=2196536; +break Cb}g=vc(8);J[699344]=0;d=_(3351,g|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){Kd(d,D<<24>>24);g=vc(8);J[g+4>>2]=d;J[g>>2]=2196536;break Cb}break ob}sd(k,g)}f=b;if((a|0)>(b|0))continue;break}g=vc(8);J[699344]=0;b=_(3351,g|0)|0;a=J[699344];J[699344]=0;Ub:{Vb:{if((a|0)!=1){if(J[k+8>>2]<=0)break Ub;a=(F|0)%12|0;m=a?a:12;f=(na+P(ea+P(ga+P(S,10)|0,10)|0,10)|0)-53328|0;D=((f&65535)>>>0)%100|0;d=0;x=f-1930>>>0>99;while(1){a=J[J[k>>2]+(d<<2)>>2];Wb:{if(kc[J[J[a>>2]+8>>2]](a)|0){Qh(b,J[a+4>>2]);break Wb}if(kc[J[J[a>> +2]+28>>2]](a)|0){if(J[a+4>>2]==2){if(!x){J[e+160>>2]=D;ed(b,844037,e+160|0);break Wb}od(b,844241);break Wb}J[e+176>>2]=f;ed(b,844244,e+176|0);break Wb}if(kc[J[J[a>>2]+32>>2]](a)|0){if(J[a+4>>2]==1){J[e+128>>2]=C;ed(b,844366,e+128|0);break Wb}J[e+144>>2]=C;ed(b,844037,e+144|0);break Wb}if(kc[J[J[a>>2]+36>>2]](a)|0){if(J[a+4>>2]==1){J[e+96>>2]=y;ed(b,844366,e+96|0);break Wb}J[e+112>>2]=y;ed(b,844037,e+112|0);break Wb}if(kc[J[J[a>>2]+40>>2]](a)|0){g=J[a+4>>2]?F:m;if(J[a+8>>2]==1){J[e+64>>2]=g;ed(b,844366, +e- -64|0);break Wb}J[e+80>>2]=g;ed(b,844037,e+80|0);break Wb}if(kc[J[J[a>>2]+44>>2]](a)|0){if(J[a+4>>2]==1){J[e+32>>2]=N;ed(b,844366,e+32|0);break Wb}J[e+48>>2]=N;ed(b,844037,e+48|0);break Wb}if(!(kc[J[J[a>>2]+48>>2]](a)|0))break Wb;if(J[a+4>>2]==1){J[e>>2]=w;ed(b,844366,e);break Wb}J[e+16>>2]=w;ed(b,844037,e+16|0)}d=d+1|0;g=J[k+8>>2];if((d|0)<(g|0))continue;break}break Vb}break ob}d=0;if((g|0)<=0)break Ub;while(1){a=J[J[k>>2]+(d<<2)>>2];if(a){kc[J[J[a>>2]+4>>2]](a);g=J[k+8>>2]}d=d+1|0;if((g|0)>(d| +0))continue;break}}uc(ld(k));break pb}break ob}g=vc(8);J[699344]=0;b=aa(3350,g|0,A|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break pb;break ob}fc=e+192|0;break nb}a=Z()|0;uc(g);break a}d=b;break lb;case 1:C=J[a+4>>2];Xb:{Yb:{f=J[A>>2];if(!f){k=vc(8);J[699344]=0;d=aa(3350,k|0,A|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Xb;break Yb}d=J[A+4>>2];D=K[d|0];N=(D|0)==45|(D|0)==43;e=N;Zb:{if((f|0)<=(e|0))break Zb;while(1){if(K[d+e|0]==46)break Zb;e=e+1|0;if((f|0)!=(e|0))continue;break}e=f}b=(e|0)<(f|0)? +e:f;a=f;while(1){_b:{g=a;if((a|0)<=(e|0)){g=b;break _b}a=g-1|0;if(K[d+a|0]==48)continue}break}$b:{ac:{b=J[C>>2];if((b|0)<=0)break ac;d=0;m=J[C+4>>2];k=K[m|0];if((k|0)!=123)while(1){bc:{if((k-97&255)>>>0>=26){a=0;if((k&254)!=40&(k-65&255)>>>0>25)break $b;d=d+1|0;if((d|0)>=(b|0))break $b;break bc}d=d+1|0;if((d|0)>=(b|0))break ac}k=K[d+m|0];if((k|0)!=123)continue;break}a=d+1|0;if((b|0)<=(a|0)){b=a;break $b}d=a;while(1){if(K[d+m|0]==125){b=d;break $b}d=d+1|0;if((d|0)!=(b|0))continue;break}break $b}a= +0}k=vc(16);J[699344]=0;m=_(3352,k|0)|0;d=J[699344];J[699344]=0;cc:{if((d|0)!=1){if((a|0)>=(b|0))break cc;while(1){dc:{d=J[C+4>>2]+a|0;a=a+1|0;ec:{fc:{gc:{d=K[d|0];k=d-32|0;if(k>>>0>26)break gc;if(!(1<=(b|0))break hc;while(1){d=a;ic:{jc:{k=J[C+4>>2];F=k+a|0;y=K[F|0];if((y|0)!=92){if((y|0)!=39)break jc;a=a+1|0;if((b|0)<=(a|0)|K[a+k|0]!=39)break hc;Kd(w,39);a=d+2|0;break ic}y= +d+1|0;if((y|0)==(b|0)){a=b;break hc}a=d+2|0;kc:{y=K[k+y|0];if((y|0)!=117)break kc;d=d+6|0;if((d|0)>(b|0))break kc;k=H[a+k|0];a=k-48|0;if((a&255)>>>0>9)a=(k-65&255)>>>0<6?k-55|0:0;a=a<<4;k=H[F+3|0];lc:{if((k-48&255)>>>0>=10){if((k-65&255)>>>0>5)break lc;a=(a+k|0)-55|0;break lc}a=(a+k|0)-48|0}a=a<<4;k=H[F+4|0];mc:{if((k-48&255)>>>0>=10){if((k-65&255)>>>0>5)break mc;a=(a+k|0)-55|0;break mc}a=(a+k|0)-48|0}a=a<<4;k=H[F+5|0];nc:{if((k-48&255)>>>0>=10){if((k-65&255)>>>0>5)break nc;a=(a+k|0)-55|0;break nc}a= +(a+k|0)-48|0}if((a|0)>255){a=d;break ic}Kd(w,a<<24>>24);a=d;break ic}Kd(w,y<<24>>24);break ic}Kd(w,y<<24>>24);a=d+1|0}if((a|0)<(b|0))continue;break}}k=vc(8);J[k+4>>2]=w;J[k>>2]=2196536;break fc}k=vc(8);J[699344]=0;w=_(3351,k|0)|0;F=J[699344];J[699344]=0;if((F|0)!=1){Kd(w,d<<24>>24);k=vc(8);J[k+4>>2]=w;J[k>>2]=2196536;break fc}break Yb}if((d&223)==83){k=vc(8);H[k+4|0]=d;J[k>>2]=2197112;break fc}oc:switch(d-44|0){default:if((d|0)!=122)break ec;case 12:case 13:case 46:k=vc(12);J[k+8>>2]=0;H[k+4|0]=d; +J[k>>2]=2197204;break fc;case 2:k=vc(4);J[k>>2]=2197296;break fc;case 1:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:break ec;case 0:break oc}k=vc(4);J[k>>2]=2197388}sd(m,k)}if((a|0)<(b|0))continue;break cc}break}break Yb}break Yb}k= +0;pc:{if(J[m+8>>2]<=0)break pc;qc:{while(1){a=J[J[m>>2]+(k<<2)>>2];if(!(kc[J[J[a>>2]+20>>2]](a)|0)){k=k+1|0;if((k|0)>2])continue;break qc}break}if(!k)break pc}b=0;a=k;while(1){d=a-1|0;w=J[J[m>>2]+(d<<2)>>2];if(kc[J[J[w>>2]+16>>2]](w)|0){J[w+8>>2]=b;b=b+1|0}w=(a|0)>1;a=d;if(w)continue;break}}a=k+1|0;if((a|0)>2]){k=-1;while(1){b=J[J[m>>2]+(a<<2)>>2];if(kc[J[J[b>>2]+16>>2]](b)|0){J[b+8>>2]=k;k=k-1|0}a=a+1|0;if((a|0)>2])continue;break}}k=vc(8);J[699344]=0;d=_(3351,k|0)|0;a=J[699344]; +J[699344]=0;rc:{sc:{if((a|0)!=1){if(J[m+8>>2]<=0)break rc;k=(D|0)==45?45:32;w=e-N|0;a=e^-1;C=a+f|0;F=a+g|0;y=(e+1|0)>=(g|0);b=0;g=0;while(1){a=J[J[m>>2]+(b<<2)>>2];tc:{if(kc[J[J[a>>2]+8>>2]](a)|0){Qh(d,J[a+4>>2]);break tc}if(kc[J[J[a>>2]+12>>2]](a)|0){if(K[a+4|0]==83){Kd(d,k);break tc}if((D|0)!=45)break tc;Kd(d,45);break tc}uc:{if(kc[J[J[a>>2]+16>>2]](a)|0){f=K[a+4|0];a=J[a+8>>2];N=(a|0)<0;if(!(N|(a|0)>=(w|0))){Kd(d,H[(J[A+4>>2]+e|0)+(a^-1)|0]);break uc}vc:{wc:{if((a|0)<0){N=0-a|0;if((N|0)<=(F|0)){Kd(d, +H[J[A+4>>2]+(e-a|0)|0]);break uc}xc:switch(f-56|0){case 1:break wc;case 0:break xc;default:break tc}if((C|0)<(N|0))break tc;Kd(d,48);break uc}if((f|0)!=57)break vc}Kd(d,48);break uc}if((f|0)!=90|N)break tc;Kd(d,32);break tc}if(kc[J[J[a>>2]+20>>2]](a)|0){a=b+1|0;yc:{if((a|0)>=J[m+8>>2])break yc;a=a<<2;f=J[a+J[m>>2]>>2];if(!(kc[J[J[f>>2]+16>>2]](f)|0)|K[J[a+J[m>>2]>>2]+4|0]!=122)break yc;if(y)break tc}Kd(d,46);break tc}if(!(kc[J[J[a>>2]+24>>2]](a)|0)|!g)break tc;Kd(d,44)}g=1}a=J[m+8>>2];b=b+1|0;if((a| +0)>(b|0))continue;break}break sc}break Yb}b=0;if((a|0)<=0)break rc;while(1){e=J[J[m>>2]+(b<<2)>>2];if(e){kc[J[J[e>>2]+4>>2]](e);a=J[m+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}uc(ld(m));break Xb}a=Z()|0;uc(k);break a}break lb;case 2:break mb;default:break lb}k=J[a+4>>2];f=0;zc:{Ac:{Bc:{if(!J[A>>2]){d=vc(8);J[699344]=0;k=aa(3350,d|0,A|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Bc;break Ac}Cc:{Dc:{b=J[k>>2];if((b|0)<=0)break Dc;a=1;e=J[k+4>>2];d=K[e|0];if((d|0)!=123){while(1){Ec:{if((d-97&255)>>> +0>=26){a=0;if((d&254)!=40&(d-65&255)>>>0>25)break Cc;f=f+1|0;if((f|0)>=(b|0))break Cc;break Ec}f=f+1|0;if((f|0)>=(b|0))break Dc}d=K[e+f|0];if((d|0)!=123)continue;break}a=f+1|0}if((a|0)>=(b|0)){b=a;break Cc}d=a;while(1){if(K[d+e|0]==125){b=d;break Cc}d=d+1|0;if((d|0)!=(b|0))continue;break}break Cc}a=0}d=vc(16);J[699344]=0;e=_(3352,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Ac;if((a|0)<(b|0))while(1){d=J[k+4>>2]+a|0;a=a+1|0;Fc:{Gc:{Hc:{Ic:{Jc:{f=K[d|0];switch(f-32|0){case 16:case 25:case 33:case 47:case 56:break Hc; +case 0:case 12:case 13:case 14:case 15:case 26:break Ic;case 7:break Jc;default:break Fc}}d=vc(8);J[699344]=0;g=_(3351,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Ac;Kc:{if((a|0)>=(b|0))break Kc;while(1){d=a;Lc:{Mc:{f=J[k+4>>2];m=f+a|0;w=K[m|0];if((w|0)!=92){if((w|0)!=39)break Mc;a=a+1|0;if((b|0)<=(a|0)|K[a+f|0]!=39)break Kc;Kd(g,39);a=d+2|0;break Lc}w=d+1|0;if((w|0)==(b|0)){a=b;break Kc}a=d+2|0;Nc:{w=K[f+w|0];if((w|0)!=117)break Nc;d=d+6|0;if((d|0)>(b|0))break Nc;f=H[a+f|0];a=f-48|0;if((a&255)>>> +0>9)a=(f-65&255)>>>0<6?f-55|0:0;a=a<<4;f=H[m+3|0];Oc:{if((f-48&255)>>>0>=10){if((f-65&255)>>>0>5)break Oc;a=(a+f|0)-55|0;break Oc}a=(a+f|0)-48|0}a=a<<4;f=H[m+4|0];Pc:{if((f-48&255)>>>0>=10){if((f-65&255)>>>0>5)break Pc;a=(a+f|0)-55|0;break Pc}a=(a+f|0)-48|0}a=a<<4;f=H[m+5|0];Qc:{if((f-48&255)>>>0>=10){if((f-65&255)>>>0>5)break Qc;a=(a+f|0)-55|0;break Qc}a=(a+f|0)-48|0}if((a|0)>255){a=d;break Lc}Kd(g,a<<24>>24);a=d;break Lc}Kd(g,w<<24>>24);break Lc}Kd(g,w<<24>>24);a=d+1|0}if((a|0)<(b|0))continue;break}}f= +vc(8);J[f+4>>2]=g;J[f>>2]=2196536;break Gc}d=vc(8);J[699344]=0;g=_(3351,d|0)|0;m=J[699344];J[699344]=0;if((m|0)!=1){Kd(g,f<<24>>24);f=vc(8);J[f+4>>2]=g;J[f>>2]=2196536;break Gc}break Ac}f=vc(4);J[f>>2]=2197484}sd(e,f)}if((a|0)<(b|0))continue;break}d=vc(8);J[699344]=0;k=_(3351,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ac;Rc:{if(J[e+8>>2]<=0)break Rc;d=0;b=0;while(1){Sc:{a=J[J[e>>2]+(b<<2)>>2];Tc:{if(kc[J[J[a>>2]+8>>2]](a)|0){Qh(k,J[a+4>>2]);break Tc}if(!(kc[J[J[a>>2]+52>>2]](a)|0))break Tc; +if(J[A>>2]<=(d|0)){uc(Zc(k));d=vc(8);J[699344]=0;k=aa(3350,d|0,A|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){f=J[e+8>>2];break Sc}break Ac}Kd(k,H[J[A+4>>2]+d|0]);d=d+1|0}b=b+1|0;f=J[e+8>>2];if((b|0)<(f|0))continue}break}if((f|0)<=0)break Rc;a=0;while(1){b=J[J[e>>2]+(a<<2)>>2];if(b){kc[J[J[b>>2]+4>>2]](b);f=J[e+8>>2]}a=a+1|0;if((f|0)>(a|0))continue;break}}uc(ld(e))}d=k;break zc}a=Z()|0;uc(d);break a}}Fr(d,Y,L,J[I+48>>2]&4096,t,u,l,1,0,i,0,W-X,T-U,o,0,n);if(!d|(d|0)==(A|0))break _;uc(Zc(d))}uc(Zc(A)); +break O}if(!Ic(a,793283)){D=Rm(I,J[I+32>>2],823958,z);a=J[D+8>>2];b=J[D>>2];yc(D);t=1;g=(b|0)==1?a:0;a=J[I+56>>2];Uc:{if(!a)break Uc;a=J[a+12>>2];if(!a)break Uc;b=J[a>>2];g=(b|0)==2?2:(b|0)==1;t=0;Vc:switch(J[a+4>>2]-1|0){case 0:t=1;break Uc;case 1:break Vc;default:break Uc}t=3}if(K[I+50|0]&2){if(!Q)break O;a=J[j+1052>>2];d=0;l=vc(8);J[699344]=0;f=_(3351,l|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;if((a|0)>0)while(1){b=J[Q+(d<<2)>>2];if(b>>>0<=255)Kd(f,b<<24>>24);d=d+1|0;if((a|0)!=(d|0))continue; +break}Wc:{if(J[Ec(J[I+32>>2],824557,j+1088|0,0)>>2]!=6)break Wc;b=J[j+1096>>2];if(J[b+12>>2]<=0)break Wc;d=0;while(1){Sc(b,d,j+1072|0,0);Xc:{if(J[j+1072>>2]!=6){b=0;break Xc}a=J[j+1080>>2];if(J[a+12>>2]!=2){b=0;break Xc}b=0;Yc:{e=a;a=j+1056|0;if(J[Sc(e,0,a,0)>>2]!=3)break Yc;if(Eg(J[j+1064>>2],f))break Yc;yc(a);b=1;if(J[Sc(J[j+1080>>2],1,a,0)>>2]!=3)break Yc;if(f)uc(Zc(f));a=J[j+1064>>2];l=vc(8);J[699344]=0;f=aa(3350,l|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Yc;break i}yc(j+1056|0)}yc(j+ +1072|0);if(b)break Wc;d=d+1|0;b=J[j+1096>>2];if((d|0)>2])continue;break}}yc(j+1088|0);Fr(f,Y,L,0,0,g,t,1,0,i,0,W-X,T-U,o,0,n);if(!f)break O;uc(Zc(f));break O}if(J[Ec(J[I+32>>2],824557,D,0)>>2]==6){a=J[J[D+8>>2]+12>>2];A=Gd(a,4);Zc:{if((a|0)<=0){u=Gd(a,4);break Zc}b=0;while(1){e=A+(b<<2)|0;J[e>>2]=0;Sc(J[D+8>>2],b,j+1088|0,0);_c:{$c:switch(J[j+1088>>2]-3|0){case 0:f=J[j+1096>>2];d=vc(8);J[699344]=0;f=aa(3350,d|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break j;J[e>>2]=f;break _c;case 3:break $c; +default:break _c}d=J[j+1096>>2];if(J[d+12>>2]!=2)break _c;if(J[Sc(d,1,j+1072|0,0)>>2]==3){f=J[j+1080>>2];d=vc(8);J[699344]=0;f=aa(3350,d|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break j;J[e>>2]=f}yc(j+1072|0)}yc(j+1088|0);if(!J[e>>2]){d=vc(8);J[699344]=0;f=_(3351,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break N;J[e>>2]=f}b=b+1|0;if((a|0)!=(b|0))continue;break}u=Gd(a,4);if((a|0)<=0)break Zc;t=0;b=J[j+1052>>2];while(1){e=t<<2;f=J[e+A>>2];i=J[f>>2];d=(i|0)==(b|0);ad:{if((b|0)!=(i|0)|(b|0)<=0)break ad; +d=0;f=J[f+4>>2];if(J[Q>>2]!=K[f|0])break ad;while(1){d=d+1|0;if((b|0)!=(d|0)&J[Q+(d<<2)>>2]==K[d+f|0])continue;break}d=(b|0)<=(d|0)}J[e+u>>2]=d;t=t+1|0;if((a|0)!=(t|0))continue;break}}d=0;b=0;if(J[Ec(J[I+32>>2],825642,j+1088|0,0)>>2]==1){b=J[j+1096>>2];b=(b|0)>=0?(a|0)>(b|0)?b:0:0}yc(j+1088|0);r=o;o=0;i=0;k=fc-112|0;fc=k;t=-1;l=-1;bd:{cd:{dd:{ed:{if(!Y)break ed;i=gu(Y);if(J[i+8>>2]<3)break ed;l=Dd(J[J[i>>2]+8>>2],805790)?-1:0;fd:{if(J[i+8>>2]<4)break fd;l=Dd(J[J[i>>2]+12>>2],805790)?l:1;if(J[i+8>> +2]<5)break fd;l=Dd(J[J[i>>2]+16>>2],805790)?l:2;f=6;if(J[i+8>>2]<6)break fd;l=Dd(J[J[i>>2]+20>>2],805790)?l:3;if(J[i+8>>2]<7)break fd;while(1){e=f<<2;gd:{if(!Dd(J[e+J[i>>2]>>2],805790)){l=f-2|0;break gd}t=Dd(J[e+J[i>>2]>>2],806212)?t:f-6|0}f=f+1|0;if((f|0)>2])continue;break}}if((l|0)<0)break ed;hd:{id:{f=J[J[i>>2]+(l<<2)>>2];if(J[f>>2]<=0)break id;e=J[f+4>>2];if(K[e|0]!=47)break id;if(L){e=AJ(L,e+1|0);if(e)break hd}e=0;Cc(1,-1,835769,0);Rh(f);od(f,835972);break hd}e=0;Cc(1,-1,837843,0)}E=qg(J[J[(J[i>> +2]+(l<<2)|0)+4>>2]+4>>2]);if(E!=0)break bd;if((a|0)<=0){m=1;break cd}if(!e){m=1;break dd}while(1){f=kc[J[J[e>>2]+8>>2]](e)|0;m=J[A+(F<<2)>>2];C=J[m>>2];jd:{if(!f){if((C|0)<=0){p=0;break jd}y=J[m+4>>2];p=0;w=0;f=0;if(C>>>0>=4){x=C&-4;m=0;while(1){N=e+1464|0;p=p+O[N+(K[f+y|0]<<3)>>3]+O[N+(K[y+(f|1)|0]<<3)>>3]+O[N+(K[y+(f|2)|0]<<3)>>3]+O[N+(K[y+(f|3)|0]<<3)>>3];f=f+4|0;m=m+4|0;if((x|0)!=(m|0))continue;break}}m=C&3;if(!m)break jd;while(1){p=p+O[((K[f+y|0]<<3)+e|0)+1464>>3];f=f+1|0;w=w+1|0;if((m|0)!=(w| +0))continue;break}break jd}p=+(C|0)*.5}o=o0)break dd;e=0;break cd}w=a&1;e=0;kd:{if((a|0)==1){f=0;break kd}F=a&-2;f=0;while(1){y=f<<2;p=+J[J[A+(y|4)>>2]>>2]*.5;q=+J[J[A+y>>2]>>2]*.5;o=o>2]>>2]*.5;o=o10?10:o;if(!m)break bd;f=J[(J[i>>2]+(l<<2)|0)+4>>2];Rh(f);O[k+96>> +3]=E;ed(f,839676,k+96|0)}if((a|0)>(b|0)){M=E*-1.1;p=M+(T-U);q=r+2;$=E*1.1;s=W-X;ca=s-(r+r);ma=s-r+-2;y=g-1|0;N=(t|0)<0;fa=E*-.2;while(1){od(n,838731);l=b<<2;x=l+u|0;if(J[x>>2]){od(n,841615);O[k+88>>3]=$;O[k+80>>3]=ca;O[k+64>>3]=r;O[k+72>>3]=fa+p;ed(n,841760,k- -64|0)}od(n,839672);ld:{md:{if(!e)break md;if(kc[J[J[e>>2]+8>>2]](e)|0)break md;f=J[l+A>>2];C=J[f>>2];if((C|0)<=0){o=0;break ld}g=J[f+4>>2];o=0;w=0;f=0;if(C>>>0>=4){S=C&-4;m=0;while(1){F=e+1464|0;o=o+O[F+(K[f+g|0]<<3)>>3]+O[F+(K[g+(f|1)|0]<< +3)>>3]+O[F+(K[g+(f|2)|0]<<3)>>3]+O[F+(K[g+(f|3)|0]<<3)>>3];f=f+4|0;m=m+4|0;if((S|0)!=(m|0))continue;break}}m=C&3;if(!m)break ld;while(1){o=o+O[((K[f+g|0]<<3)+e|0)+1464>>3];f=f+1|0;w=w+1|0;if((m|0)!=(w|0))continue;break}break ld}o=+J[J[l+A>>2]>>2]*.5}v=E*o;o=q;nd:{od:switch(y|0){case 0:o=(s-v)*.5;break nd;case 1:break od;default:break nd}o=ma-v}pd:{qd:{rd:{if(!N){f=t<<2;g=J[(f+J[i>>2]|0)+16>>2];Rh(g);O[k+48>>3]=o;ed(g,839676,k+48|0);f=J[(f+J[i>>2]|0)+20>>2];Rh(f);O[k+32>>3]=p;ed(f,839676,k+32|0);break rd}if(!i)break qd}f= +0;if(J[i+8>>2]>0)while(1){Kd(Qh(n,J[J[i>>2]+(f<<2)>>2]),32);f=f+1|0;if((f|0)>2])continue;break}if((t|0)>=0)break pd}O[k+24>>3]=p;O[k+16>>3]=o;ed(n,839967,k+16|0)}if(J[x>>2])od(n,841981);Kd(n,40);f=0;m=l+A|0;C=J[m>>2];if(J[C>>2]>0)while(1){g=K[J[C+4>>2]+f|0];l=g<<24>>24;sd:{if(!((g|0)!=92&g-40>>>0>=2)){Kd(n,92);Kd(n,l);break sd}if((l|0)<=31){J[k>>2]=g;ed(n,840149,k);break sd}Kd(n,l)}f=f+1|0;C=J[m>>2];if((f|0)>2])continue;break}od(n,840449);od(n,840595);od(n,841272);p=M+p;b=b+1|0;if((a| +0)!=(b|0))continue;break}}if(i){b=J[i+8>>2];if((b|0)>0){f=0;while(1){e=J[J[i>>2]+(f<<2)>>2];if(e){uc(Zc(e));b=J[i+8>>2]}f=f+1|0;if((f|0)<(b|0))continue;break}}uc(ld(i))}fc=k+112|0;if((a|0)>0)while(1){b=J[A+(d<<2)>>2];if(b)uc(Zc(b));d=d+1|0;if((a|0)!=(d|0))continue;break}Mc(A);Mc(u)}yc(D);break O}if(Ic(a,794008))break R;Af(j+1120|0,J[J[J[I>>2]>>2]+24>>2]);J[z+8>>2]=0;J[z+12>>2]=1071644672;J[z>>2]=2;a=Id(825881);de(J[j+1128>>2],a,z);od(n,827389);p=T-U;O[j+8>>3]=p;r=W-X;O[j>>3]=r;ed(n,828137,j);d=vc(8); +J[699344]=0;a=aa(3349,d|0,828350)|0;b=J[699344];J[699344]=0;if((b|0)==1)break N;if(Y)uc(Zc(Y));d=vc(8);J[699344]=0;Y=aa(3349,d|0,828449)|0;b=J[699344];J[699344]=0;if((b|0)!=1){Fr(a,Y,L,0,0,0,1,0,0,i,0,r,p,o,0,n);uc(Zc(a));break O}break N}Cc(1,-1,828908,0);break O}if(!b)break O}uc(Zc(b))}Mc(Q);uc(Zc(h));if(Y)uc(Zc(Y));Af(j+1232|0,J[J[J[I>>2]>>2]+24>>2]);a=Id(829823);J[z+8>>2]=J[n>>2];J[z>>2]=1;de(J[j+1240>>2],a,z);a=Id(781364);J[z>>2]=4;ta=z,ua=Id(830026),J[ta+8>>2]=ua;de(J[j+1240>>2],a,z);Po(z,J[J[J[I>> +2]>>2]+24>>2]);J[j+1096>>2]=0;J[j+1100>>2]=0;J[j+1088>>2]=2;a=j+1088|0;hg(J[z+8>>2],a);J[j+1096>>2]=0;J[j+1100>>2]=0;J[j+1088>>2]=2;hg(J[z+8>>2],a);O[j+1096>>3]=W-X;J[j+1088>>2]=2;hg(J[z+8>>2],a);O[j+1096>>3]=T-U;J[j+1088>>2]=2;hg(J[z+8>>2],a);a=Id(830487);de(J[j+1240>>2],a,z);td:{if(J[j+1216>>2]==7){Pe(j+1216|0,j+1168|0);break td}Af(j+1168|0,J[J[J[I>>2]>>2]+24>>2])}yc(j+1216|0);Af(j+1152|0,J[J[J[I>>2]>>2]+24>>2]);ud:{if(J[Ec(J[j+1176>>2],806935,z,0)>>2]!=7)break ud;d=J[z+8>>2];if(J[d+16>>2]<=0)break ud; +g=0;while(1){a=j+1088|0;$p(d,g,a);b=Id(J[J[J[z+8>>2]+4>>2]+(g<<5)>>2]);de(J[j+1160>>2],b,a);g=g+1|0;d=J[z+8>>2];if((g|0)>2])continue;break}}yc(z);a=j+1136|0;Af(a,J[J[J[I>>2]>>2]+24>>2]);b=Id(831219);J[z>>2]=4;ta=z,ua=Id(806935),J[ta+8>>2]=ua;de(J[j+1144>>2],b,z);b=Id(781364);J[z>>2]=4;ta=z,ua=Id(831561),J[ta+8>>2]=ua;de(J[j+1144>>2],b,z);b=Id(831693);J[z>>2]=4;ta=z,ua=Id(832340),J[ta+8>>2]=ua;de(J[j+1144>>2],b,z);b=Id(832560);J[z>>2]=4;ta=z,ua=Id(832841),J[ta+8>>2]=ua;de(J[j+1144>>2],b,z); +b=Id(833177);de(J[j+1160>>2],b,a);a=Id(806935);de(J[j+1176>>2],a,j+1152|0);if(J[j+1120>>2]==7){Af(z,J[J[J[I>>2]>>2]+24>>2]);a=Id(833664);de(J[z+8>>2],a,j+1120|0);a=Id(833884);de(J[j+1176>>2],a,z)}a=Id(834058);de(J[j+1240>>2],a,j+1168|0);d=vc(48);a=J[n>>2];b=J[n+4>>2];J[699344]=0;b=Ln(d,b,0,a,j+1232|0);a=J[699344];J[699344]=0;if((a|0)!=1){a=j+1280|0;J[a+8>>2]=b;J[a>>2]=8;EJ(c,a,0,X,U,W,T);yc(a);uc(Zc(n));if(L)uc(q$(L));yc(ka);yc(j+1264|0);fc=j+1296|0;break h}}a=Z()|0;uc(d);break a}a=Z()|0;uc(b);break a}a= +Z()|0;uc(d);break a}a=Z()|0;uc(l);break a}break b}b=J[f+8>>2];a=fc+-64|0;fc=a;J[a+48>>2]=13;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;vd:{wd:{if(Ic(811113,g))break wd;if(J[Ec(b,811113,a+48|0,0)>>2]!=7)break wd;Ke(J[a+56>>2],h,a+16|0);break vd}if(J[Ec(b,810779,a+48|0,0)>>2]!=7)break vd;Ec(J[a+56>>2],g,a,0);xd:{if(J[a>>2]==7){yd:{if(h){Ke(J[a+8>>2],h,a+16|0);break yd}if(J[Ec(b,836792,a+32|0,0)>>2]==4){Ke(J[a+8>>2],J[a+40>>2],a+16|0);break yd}b=J[a+8>>2];if(J[b+16>>2]==1){$p(b,0,a+16|0);break yd}Ke(b,837100, +a+16|0)}yc(a+32|0);break xd}Ke(J[a+56>>2],g?g:809264,a+16|0)}yc(a)}yc(a+48|0);if(J[a+16>>2]!=13){b=a+16|0;EJ(c,b,0,X,U,W,T);yc(b)}fc=a- -64|0;break b}Cc(1,-1,810180,0);yc(G+32|0)}fc=G+48|0;return}ba(a|0);B()}function bJa(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;k=fc-160|0;fc=k;a:{if(!a){a=K[5112]|K[5113]<<8;H[b+300|0]=a;H[b+301|0]=a>>>8;a=K[5108]|K[5109]<<8|(K[5110]<<16|K[5111]<<24);d=K[5104]|K[5105]<< +8|(K[5106]<<16|K[5107]<<24);H[b+292|0]=d;H[b+293|0]=d>>>8;H[b+294|0]=d>>>16;H[b+295|0]=d>>>24;H[b+296|0]=a;H[b+297|0]=a>>>8;H[b+298|0]=a>>>16;H[b+299|0]=a>>>24;break a}I[k+30>>1]=0;I[k+32>>1]=0;c=b;b=fc-16|0;fc=b;b:{c:{d:{e:{if(a){ge(b+10|0,1,4,a);d=K[b+13|0];h=K[b+12|0];if(!(K[b+10|0]!=80|K[b+11|0]!=73|(h|0)!=67))if((d|0)==84)break d;l=d|h<<8;I[b>>1]=l;H[b+14|0]=0;d=ge(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<<8;o=(d|0)!=2?-1:e<<8|e>>>8;I[b+2>>1]=o;H[b+14|0]=0;d=ge(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<< +8;i=(d|0)!=2?-1:e<<8|e>>>8;I[b+4>>1]=i;H[b+14|0]=0;d=ge(b+14|0,1,2,a);e=K[b+14|0]|K[b+15|0]<<8;e=(d|0)!=2?-1:e<<8|e>>>8;I[b+6>>1]=e;ge(b+9|0,1,1,a);break e}I[b>>1]=0;I[b+2>>1]=65535;I[b+4>>1]=65535;I[b+6>>1]=65535;i=65535;o=65535;e=65535}if((ih(a)|0)==17)break d;hh(a,512,0);H[b+14|0]=0;f:{if(a){ge(b+14|0,1,2,a);if(!Jr(a,b))break f;ge(b+9|0,1,1,a);break c}if(Jr(0,b))break c}d=0;e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]| +K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}if((ih(a)|0)==2){d=0;if((ih(a)|0)!=255)break b;J[c+ +104>>2]=2;g:{h=o<<16>>16;h:{if((h|0)<0)break h;u=e<<16>>16;if((u|0)<0)break h;n=l<<16>>16;if((n|0)<0)break h;s=i<<16>>16;if((s|0)<0|(h|0)>=(u|0))break h;if((n|0)<(s|0))break g}e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+ +307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}J[c+108>>2]=(i&65535)-(l&65535);J[c+112>>2]=(e&65535)-(o&65535);d=1;break b}d=1;J[c+104>>2]=1;J[c+112>>2]=(e<<16>>16)-(o<<16>>16);J[c+108>>2]=(i<<16>>16)-(l<<16>>16);break b}if((ih(a)|0)==17){i:switch(ih(a)-1|0){case 1:d=0;if((ih(a)|0)!=255)break b;J[c+ +104>>2]=2;j:{e=I[b+2>>1];k:{if((e|0)<0)break k;h=I[b+6>>1];if((h|0)<0)break k;u=I[b>>1];if((u|0)<0)break k;n=I[b+4>>1];if((n|0)<0|(e|0)>=(h|0))break k;if((n|0)>(u|0))break j}e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307| +0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}J[c+108>>2]=(n&65535)-(u&65535);J[c+112>>2]=(h&65535)-(e&65535);d=1;break b;case 0:J[c+104>>2]=1;d=0;l:{e=I[b+2>>1];m:{if((e|0)<0)break m;h=I[b+6>>1];if((h|0)<0)break m;u=I[b>>1];if((u|0)<0)break m;n=I[b+4>>1];if((n|0)<0|(e|0)>=(h|0))break m;if((n|0)>(u|0))break l}e= +K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+ +296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}J[c+108>>2]=(n&65535)-(u&65535);J[c+112>>2]=(h&65535)-(e&65535);d=1;break b;default:break i}d=0;e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303|0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>> +24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24;break b}d=0;e=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=e;H[c+309|0]=e>>>8;H[c+310|0]=e>>>16;H[c+311|0]=e>>>24;e=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);h=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=h;H[c+301|0]=h>>>8;H[c+302|0]=h>>>16;H[c+303| +0]=h>>>24;H[c+304|0]=e;H[c+305|0]=e>>>8;H[c+306|0]=e>>>16;H[c+307|0]=e>>>24;e=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);h=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=h;H[c+293|0]=h>>>8;H[c+294|0]=h>>>16;H[c+295|0]=h>>>24;H[c+296|0]=e;H[c+297|0]=e>>>8;H[c+298|0]=e>>>16;H[c+299|0]=e>>>24}fc=b+16|0;if(!d)break a;m=a;if(J[a+76>>2]<0)a=J[a>>2];else a=J[m>>2];if(a>>>4&1){H[c+292|0]=69;H[c+293|0]=79;H[c+294|0]=70;H[c+295|0]=102;H[c+296|0]=105;H[c+297|0]=108;H[c+298|0]=101;H[c+299|0]=0;break a}J[c+ +160>>2]=0;J[c+164>>2]=1079115776;J[c+152>>2]=0;J[c+156>>2]=1079115776;J[c+116>>2]=8;n:{a=J[c+108>>2];if(a){b=J[c+112>>2];if(b)break n}a=K[9777]|K[9778]<<8|(K[9779]<<16|K[9780]<<24);b=K[9773]|K[9774]<<8|(K[9775]<<16|K[9776]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[9769]|K[9770]<<8|(K[9771]<<16|K[9772]<<24);b=K[9765]|K[9766]<<8|(K[9767]<<16|K[9768]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16; +H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}a=P(J[c+288>>2],P(a,b));J[c+120>>2]=a;b=J[c+144>>2];o:{if(!b){a=Dc(a);break o}a=fe(b,a)}J[c+144>>2]=a;f=1;if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break a;b=0;while(1){p:{if(J[c+104>>2]!=1)if(!(mr(m)&1))break p;b=ih(m)}if(J[c+104>>2]==2){H[k+64|0]=0;a=ge(k- -64|0,1,2,m);b=(a|0)!=2?-1:K[k+65|0]|K[k+64|0]<<8}q:{u=b&65535;r:{if(!u){b=0;break r}s:{t:{if(u>>>0>161)break t;u:{v:{w:{x:{y:{z:switch((b&65535)- +1|0){case 0:H[k+64|0]=0;d=k- -64|0;e=ge(d,1,2,m);a=K[k+64|0]|K[k+65|0]<<8;d=nr(or(m),d);a=((e|0)!=2?-1:a<<8|a>>>8)&65535;if(a>>>0>(d?0:J[k+88>>2])>>>0){f=0;a=K[14239]|K[14240]<<8|(K[14241]<<16|K[14242]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14235]|K[14236]<<8|(K[14237]<<16|K[14238]<<24);b=K[14231]|K[14232]<<8|(K[14233]<<16|K[14234]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>> +24;a=K[14227]|K[14228]<<8|(K[14229]<<16|K[14230]<<24);b=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if((a|0)!=10){a=a-2|0; +if(!a)break s;e=a;d=0;a=0;while(1){if((ih(m)|0)==-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break t}f=0;if(!Jr(m,k+48|0))break a;a=I[k+50>>1];if((a|0)<0)break s;d=I[k+48>>1];if(d&32768)break s;J[c+108>>2]=I[k+52>>1]-d;J[c+112>>2]=I[k+54>>1]-(a&65535);A:{B:{a=J[c+108>>2];if(a){d=J[c+112>>2];if(d)break B}a=K[9777]|K[9778]<<8|(K[9779]<<16|K[9780]<<24);d=K[9773]|K[9774]<<8|(K[9775]<<16|K[9776]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+ +305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[9769]|K[9770]<<8|(K[9771]<<16|K[9772]<<24);d=K[9765]|K[9766]<<8|(K[9767]<<16|K[9768]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;a=0;break A}a=P(J[c+288>>2],P(a,d));J[c+120>>2]=a;d=J[c+144>>2];C:{if(!d){a=Dc(a);break C}a=fe(d,a)}J[c+144>>2]=a;a=1}if(!a)break a;break s;case 17:case 18:case 19:H[k+64|0]=0;e=ge(k- -64|0,1,2,m);a=K[k+64|0]|K[k+65|0]<<8;h=a<< +8|a>>>8;d=0;a=0;while(1){if((ih(m)|0)!=-1){f=!a&d>>>0<7;d=d+1|0;a=d?a:a+1|0;if(f)continue}break}d=0;a=0;D:switch((((e|0)!=2?-1:h)&65535)-1|0){case 1:while(1){if((ih(m)|0)==-1)break t;e=!a&d>>>0<4;d=d+1|0;a=d?a:a+1|0;if(e)continue;break}break t;default:a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[13820]|K[13821]<<8|(K[13822]<<16|K[13823]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[13817]|K[13818]<<8|(K[13819]<<16|K[13820]<<24);b=K[13813]|K[13814]<<8| +(K[13815]<<16|K[13816]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[13809]|K[13810]<<8|(K[13811]<<16|K[13812]<<24);b=K[13805]|K[13806]<<8|(K[13807]<<16|K[13808]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a;case 0:break D}H[k+64|0]=0;e=k- -64|0;h=ge(e,1,2,m);f=K[k+64|0];n=K[k+65|0];e=nr(or(m),e);if((e?0:J[k+ +88>>2])>>>0<((h|0)!=2?65535:n|f<<8)>>>0){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14239]|K[14240]<<8|(K[14241]<<16|K[14242]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14235]|K[14236]<<8|(K[14237]<<16|K[14238]<<24);b=K[14231]|K[14232]<<8|(K[14233]<<16|K[14234]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14227]|K[14228]<<8|(K[14229]<<16|K[14230]<<24); +b=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!Jr(m,k+48|0)){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0; +a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+ +296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!w0(m,k+12|0)){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<< +8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}J[c+116>>2]=I[k+34>>1];O[c+152>>3]=M[k+20>>2];O[c+160>>3]=M[k+24>>2];Q0(m);hq(m);e=hq(m);if(NK(m)>>>0>>0)break q;if(e)while(1){H[k+64|0]=0;ge(k- -64|0,1,4,m);d=d+1|0;a=d?a:a+1|0;if((d|0)!=(e|0)|a)continue;break}h=I[k+54>>1];f=I[k+50>>1];a=h-f|0;d=L[k+30>>1];e=d<<16>>16<9?e&32767:e;d= +e?e:I[k+52>>1]-I[k+48>>1]<<((d|0)==16);if(d>>>0<8)break u;if((f|0)==(h|0))break t;e=a>>>0<=1?1:a;n=0;h=0;i=d>>>0<201;while(1){if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break t;E:{if(!i){a=hq(m);break E}a=ih(m)}if(NK(m)>>>0>=a>>>0){F:{if(!a)break F;f=a;d=0;a=0;while(1){if((ih(m)|0)==-1)break F;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}}n=n+1|0;h=n?h:h+1|0;if((e|0)!=(n|0)|h)continue;break t}break}a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14239]|K[14240]<<8|(K[14241]<< +16|K[14242]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14235]|K[14236]<<8|(K[14237]<<16|K[14238]<<24);b=K[14231]|K[14232]<<8|(K[14233]<<16|K[14234]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14227]|K[14228]<<8|(K[14229]<<16|K[14230]<<24);b=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+ +305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a;case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:H[k+64|0]=0;a=k- -64|0;d=ge(a,1,2,m);e=K[k+64|0];h=K[k+65|0];a=nr(or(m),a);f=a?0:J[k+88>>2];a=(d|0)!=2?65535:h|e<<8;if(f>>>0>=a>>>0){a=a-2| +0;if(!a)break s;e=a;d=0;a=0;while(1){if((ih(m)|0)==-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break t}a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14239]|K[14240]<<8|(K[14241]<<16|K[14242]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14235]|K[14236]<<8|(K[14237]<<16|K[14238]<<24);b=K[14231]|K[14232]<<8|(K[14233]<<16|K[14234]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314| +0]=a>>>16;H[c+315|0]=a>>>24;a=K[14227]|K[14228]<<8|(K[14229]<<16|K[14230]<<24);b=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a; +case 143:case 144:case 151:case 152:case 153:case 154:s=u-156|0;e=s>>>0>4294967293;G:{if(!e){H[k+62|0]=0;d=ge(k+62|0,1,2,m);a=K[k+62|0];h=a>>>24|0;f=K[k+63|0]|a<<8;a=(d|0)!=2;f=a?65535:f;a=a?0:h;break G}H[k+62|0]=0;ge(k+62|0,1,2,m);H[k+62|0]=0;ge(k+62|0,1,2,m);H[k+62|0]=0;ge(k+62|0,1,2,m);f=0;a=0}if(!Jr(m,k+48|0)){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<< +8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}j=mZ(c,I[k+54>>1]-I[k+50>>1]|0,I[k+52>>1]-I[k+48>>1]|0); +if(!j){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292| +0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}H:{I:{J:{d=J[j+108>>2];if(!d)break J;h=J[j+112>>2];if(!h)break J;d=P(J[j+288>>2],P(d,h));J[j+120>>2]=d;h=J[j+144>>2];if(h)break I;h=Dc(d);break H}a=K[9777]|K[9778]<<8|(K[9779]<<16|K[9780]<<24);b=K[9773]|K[9774]<<8|(K[9775]<<16|K[9776]<<24);H[j+300|0]=b;H[j+301|0]=b>>>8;H[j+302|0]=b>>>16;H[j+303|0]=b>>>24;H[j+304|0]=a;H[j+305|0]=a>>>8;H[j+306|0]=a>>>16;H[j+307|0]= +a>>>24;a=K[9769]|K[9770]<<8|(K[9771]<<16|K[9772]<<24);b=K[9765]|K[9766]<<8|(K[9767]<<16|K[9768]<<24);H[j+292|0]=b;H[j+293|0]=b>>>8;H[j+294|0]=b>>>16;H[j+295|0]=b>>>24;H[j+296|0]=a;H[j+297|0]=a>>>8;H[j+298|0]=a>>>16;H[j+299|0]=a>>>24;a=J[c+144>>2];if(!a)break v;uc(a);J[c+120>>2]=0;J[c+144>>2]=0;f=0;break a}h=fe(h,d)}J[j+144>>2]=h;q=!a&f>>>0<32768;y=q&(b&65534)!=154;K:{if(y)break K;if(!w0(m,k+12|0)){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a);J[j+120>>2]=0;J[j+144>> 2]=0}a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>> -24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}j=pW(c,I[k+54>>1]-I[k+50>>1]|0,I[k+52>>1]-I[k+48>>1]|0);if(!j){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8; -H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}H:{I:{J:{d=J[j+108>>2];if(!d)break J;h=J[j+112>>2];if(!h)break J;d=P(J[j+288>>2],P(d,h));J[j+120>>2]=d;h=J[j+144>>2];if(h)break I;h=zc(d);break H}a=K[9761]|K[9762]<<8|(K[9763]<<16|K[9764]<<24);b=K[9757]|K[9758]<<8|(K[9759]<<16| -K[9760]<<24);H[j+300|0]=b;H[j+301|0]=b>>>8;H[j+302|0]=b>>>16;H[j+303|0]=b>>>24;H[j+304|0]=a;H[j+305|0]=a>>>8;H[j+306|0]=a>>>16;H[j+307|0]=a>>>24;a=K[9753]|K[9754]<<8|(K[9755]<<16|K[9756]<<24);b=K[9749]|K[9750]<<8|(K[9751]<<16|K[9752]<<24);H[j+292|0]=b;H[j+293|0]=b>>>8;H[j+294|0]=b>>>16;H[j+295|0]=b>>>24;H[j+296|0]=a;H[j+297|0]=a>>>8;H[j+298|0]=a>>>16;H[j+299|0]=a>>>24;a=J[c+144>>2];if(!a)break v;qc(a);J[c+120>>2]=0;J[c+144>>2]=0;f=0;break a}h=Vd(h,d)}J[j+144>>2]=h;q=!a&f>>>0<32768;y=q&(b&65534)!= -154;K:{if(y)break K;if(!HZ(m,k+12|0)){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<< -8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break v}J[j+116>>2]=I[k+34>>1];d=L[k+32>>1];J[j+268>>2]=((d|0)==4)<<2;O[j+152>>3]=M[k+20>>2];O[j+160>>3]=M[k+24>>2];if((d|0)!=4)break K;SJ(j)}L:{if(e)break L;J[j+124>>2]=2;M:{N:{if(!a&f>>>0<=32767){if(!X$(j,2))break N;e=J[j+124>>2];if(!e)break L;o=e&1;i=J[j+264>>2];d=0;a=0;if((e|0)!=1){l=e&-2; -n=0;h=0;while(1){e=i+P(d,80)|0;p=255-O[e+48>>3];O[e+32>>3]=p;O[e+40>>3]=255-O[e+40>>3];O[e+48>>3]=255-p;e=i+P(d|1,80)|0;p=255-O[e+48>>3];O[e+32>>3]=p;O[e+40>>3]=255-O[e+40>>3];O[e+48>>3]=255-p;d=d+2|0;a=d>>>0<2?a+1|0:a;e=h;n=n+2|0;e=n>>>0<2?e+1|0:e;h=e;if((l|0)!=(n|0)|e)continue;break}}if(!o)break L;a=i+P(d,80)|0;p=255-O[a+48>>3];O[a+32>>3]=p;O[a+40>>3]=255-O[a+40>>3];O[a+48>>3]=255-p;break L}B_(m);e=np(m);a=np(m)+1|0;J[j+124>>2]=a;if(X$(j,a))break M}a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>> -2]=0}a=J[j+144>>2];if(!a)break v;qc(a);J[j+120>>2]=0;J[j+144>>2]=0;f=0;break a}if(!J[j+124>>2])break L;d=0;a=0;h=e<<16>>16<0;while(1){H[k+62|0]=0;e=Yd(k+62|0,1,2,m);n=K[k+63|0];i=K[k+62|0];o=J[j+124>>2];H[k+62|0]=0;l=Yd(k+62|0,1,2,m);e=P(h?d:(((e|0)!=2?65535:n|i<<8)>>>0)%(o>>>0)|0,80);O[(e+J[j+264>>2]|0)+32>>3]=(l|0)==2?+K[k+63|0]:255;H[k+62|0]=0;n=Yd(k+62|0,1,2,m);O[(e+J[j+264>>2]|0)+40>>3]=(n|0)==2?+K[k+63|0]:255;H[k+62|0]=0;n=Yd(k+62|0,1,2,m);O[(e+J[j+264>>2]|0)+48>>3]=(n|0)==2?+K[k+63|0]:255; -d=d+1|0;a=d?a:a+1|0;if(!a&M[j+124>>2]>d>>>0)continue;break}}if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}H[c+292|0]=69;H[c+293|0]=79;H[c+294|0]=70;H[c+295|0]=102;H[c+296|0]=105;H[c+297|0]=108;H[c+298|0]=101;H[c+299|0]=0;f=0;break a}if(!Vq(m,k- -64|0)){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[5515]|K[5516]<<8|(K[5517]<< -16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+ -298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}if(!Vq(m,k+4|0)){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]= -a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}np(m);O:{if((b&65527)!=145&(u|0)!=155)break O;a=np(m);if(cJ(m)>>>0>>0)break w;a=a-2|0;if(!a)break O;e=a;d=0;a=0;while(1){if((Yg(m)|0)==-1)break O;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}}h=f;i=0;e=0;d=0;a=0;A=bc-2064|0;bc=A;o=1;f=J[j+112>>2]; -l=f;P:{Q:{n=I[k+30>>1];x=s>>>0<4294967294?q?1:n:n;n=x-16|0;if(n)if((n|0)==16)break Q;else break P;l=f<<1;o=2;break P}l=P(f,J[j+268>>2]?4:3)}g=(J[j>>2]==1?f<<2:f)|32768;n=P(g,J[j+108>>2]);f=bd(1,n);R:{if(!f){f=0;break R}J[k+56>>2]=n;S:{v=bd(1,g<<1);if(!v)break S;r=wc(A,0,2048);n=J[j+108>>2];T:{h=x>>>0<9?h&32767:h;h=h?h:l;U:{if(h>>>0>=8){if(!n)break U;C=h>>>0<251;while(1){V:{if(!C){H[r+2062|0]=0;q=65535;if(!m)break V;if((Yd(r+2062|0,1,2,m)|0)!=2)break V;q=K[r+2063|0]|K[r+2062|0]<<8;break V}q=Yg(m)}W:{if(!q| -g>>>0<=q>>>0)break W;if(m)e=Yd(v,1,q,m);else e=0;w=e;t=e>>31;if((e|0)!=(q|0)|t)break W;s=P(d,l)+f|0;n=0;h=0;while(1){q=n+v|0;i=H[q|0];e=i&255;X:{if((i|0)>=0){i=P(e+1|0,o);J[r+2056>>2]=i;q=Yz(q+1|0,x,r,r+2056|0);e=J[r+2056>>2];if(M[k+56>>2]>=e+(s-f|0)>>>0){tc(s,q,e);e=J[r+2056>>2]}s=e+s|0;break X}J[r+2056>>2]=o;e=257-e|0;D=e&510;E=e&1;i=0;e=0;z=Yz(q+1|0,x,r,r+2056|0);q=J[r+2056>>2];while(1){if(M[k+56>>2]>=(s-f|0)+q>>>0){tc(s,z,q);q=J[r+2056>>2]}s=q+s|0;if(M[k+56>>2]>=(s-f|0)+q>>>0){tc(s,z,q);q=J[r+ -2056>>2]}s=q+s|0;i=i+2|0;e=i>>>0<2?e+1|0:e;if((i|0)!=(D|0)|e)continue;break}i=o;if(E){if(M[k+56>>2]>=(s-f|0)+q>>>0){tc(s,z,q);q=J[r+2056>>2]}s=q+s|0}}e=i+1|0;n=e+n|0;h=e>>>0>n>>>0?h+1|0:h;if((t|0)==(h|0)&n>>>0>>0|h>>>0>>0)continue;break}d=d+1|0;a=d?a:a+1|0;if(!a&M[j+108>>2]>d>>>0)continue;break U}break}qc(v);break S}if(!n)break U;if(m){while(1){d=J[j+288>>2];J[r+2056>>2]=h;a=Yd(v,1,h,m);if((h|0)!=(a|0)|a>>31)break T;a=Yz(v,x,r,r+2056|0);d=P(d,P(i,l))+f|0;n=J[r+2056>>2];if(d+n>>>0>J[k+56>>2]+ -f>>>0)break T;tc(d,a,n);i=i+1|0;e=i?e:e+1|0;if(!e&M[j+108>>2]>i>>>0)continue;break}break U}if(h)break T;while(1){a=J[j+288>>2];J[r+2056>>2]=0;d=Yz(v,x,r,r+2056|0);a=P(a,P(i,l))+f|0;h=J[r+2056>>2];if(a+h>>>0>J[k+56>>2]+f>>>0)break T;tc(a,d,h);i=i+1|0;e=i?e:e+1|0;if(!e&M[j+108>>2]>i>>>0)continue;break}}qc(v);break R}qc(v);qc(f);break R}qc(f);f=0}bc=A+2064|0;if(!f)break x;e=f;Y:{if(!J[j+108>>2])break Y;w=I[k+32>>1]-1|0;s=J[k+56>>2]+e|0;q=L[k+30>>1];n=0;h=0;while(1){if(s+J[c+112>>2]>>>0>>0){qc(e); -a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[19091]|K[19092]<<8|(K[19093]<<16|K[19094]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[19088]|K[19089]<<8|(K[19090]<<16|K[19091]<<24);b=K[19084]|K[19085]<<8|(K[19086]<<16|K[19087]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[19080]|K[19081]<<8|(K[19082]<<16|K[19083]<< -24);b=K[19076]|K[19077]<<8|(K[19078]<<16|K[19079]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}a=J[j+144>>2];if(!a)break Y;i=J[j+112>>2];Z:{if(!i){i=0;break Z}l=a+P(J[j+288>>2],P(i,n))|0;d=0;a=0;if((q|0)==16)while(1){i=J[j+272>>2];_:{if(J[j>>2]!=2){o=K[f+1|0];r=J[i+8>>2]+l|0;i=K[f|0];H[r|0]=i<<1&248;H[J[J[j+272>>2]+24>>2]+l|0]=o>>>2&56|i<<6;f=f+1|0;i=o<<3;break _}o=K[f|0];o=o>>>0>2]?o: -0;if(J[i+84>>2]){H[J[i+88>>2]+l|0]=o;i=J[j+272>>2]}r=J[i+8>>2]+l|0;i=P(o,80);p=O[(i+J[j+264>>2]|0)+32>>3];$:{if(p<4294967296&p>=0){o=~~p>>>0;break $}o=0}H[r|0]=o;r=J[J[j+272>>2]+24>>2]+l|0;p=O[(i+J[j+264>>2]|0)+40>>3];aa:{if(p<4294967296&p>=0){o=~~p>>>0;break aa}o=0}H[r|0]=o;p=O[(i+J[j+264>>2]|0)+48>>3];if(p<4294967296&p>=0){i=~~p>>>0;break _}i=0}H[J[J[j+272>>2]+40>>2]+l|0]=i;f=f+1|0;l=J[j+288>>2]+l|0;d=d+1|0;a=d?a:a+1|0;i=J[j+112>>2];if(!a&i>>>0>d>>>0)continue;break Z}while(1){ba:{if(J[j>>2]==2){i= -K[f|0];o=i>>>0>2]?i:0;i=J[j+272>>2];if(J[i+84>>2]){H[J[i+88>>2]+l|0]=o;i=J[j+272>>2]}r=J[i+8>>2]+l|0;i=P(o,80);p=O[(i+J[j+264>>2]|0)+32>>3];ca:{if(p<4294967296&p>=0){o=~~p>>>0;break ca}o=0}H[r|0]=o;r=J[J[j+272>>2]+24>>2]+l|0;p=O[(i+J[j+264>>2]|0)+40>>3];da:{if(p<4294967296&p>=0){o=~~p>>>0;break da}o=0}H[r|0]=o;p=O[(i+J[j+264>>2]|0)+48>>3];if(p<4294967296&p>=0){i=~~p>>>0;break ba}i=0;break ba}o=J[c+112>>2];if(!J[j+268>>2]){if(s+(o<<1)>>>0>>0){qc(e);a=J[c+144>>2];if(a){qc(a);J[c+120>>2]= -0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[19091]|K[19092]<<8|(K[19093]<<16|K[19094]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[19088]|K[19089]<<8|(K[19090]<<16|K[19091]<<24);b=K[19084]|K[19085]<<8|(K[19086]<<16|K[19087]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[19080]|K[19081]<<8|(K[19082]<<16|K[19083]<<24);b=K[19076]|K[19077]<<8|(K[19078]<< -16|K[19079]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}H[J[J[j+272>>2]+8>>2]+l|0]=K[f|0];H[J[J[j+272>>2]+24>>2]+l|0]=K[J[j+112>>2]+f|0];i=K[(J[j+112>>2]<<1)+f|0];break ba}if(s+P(o,3)>>>0>>0){qc(e);a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[19091]|K[19092]<<8|(K[19093]<<16|K[19094]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309| -0]=a>>>16;H[c+310|0]=a>>>24;a=K[19088]|K[19089]<<8|(K[19090]<<16|K[19091]<<24);b=K[19084]|K[19085]<<8|(K[19086]<<16|K[19087]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[19080]|K[19081]<<8|(K[19082]<<16|K[19083]<<24);b=K[19076]|K[19077]<<8|(K[19078]<<16|K[19079]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}o= -J[j+272>>2];if(J[o+68>>2]){H[J[o+72>>2]+l|0]=K[f|0];i=J[j+112>>2];o=J[j+272>>2]}H[J[o+8>>2]+l|0]=K[f+i|0];H[J[J[j+272>>2]+24>>2]+l|0]=K[(J[j+112>>2]<<1)+f|0];i=K[P(J[j+112>>2],3)+f|0]}H[J[J[j+272>>2]+40>>2]+l|0]=i;f=f+1|0;l=J[j+288>>2]+l|0;d=d+1|0;a=d?a:a+1|0;i=J[j+112>>2];if(!a&i>>>0>d>>>0)continue;break}}if(!((q|0)==16|J[j>>2]!=1)){f=P(i,w)+f|0;if(e>>>0>f>>>0)break Y}a=h;n=n+1|0;h=n?a:a+1|0;if(!h&M[j+108>>2]>n>>>0)continue;break}}if(J[j+268>>2]?J[j>>2]==2|L[k+30>>1]==16:1)SJ(j);qc(e);if(J[m+76>> -2]<0)a=J[m>>2];else a=J[m>>2];if(!(a>>>4&1|y))ea:{y=I[k+6>>1];r=y>>31;v=I[k+4>>1];x=v>>31;n=0;h=0;J[c>>2]=1;if(!J[c+144>>2])break ea;fa:{g=pW(j,0,0);a=J[g+108>>2];if(a){d=J[g+112>>2];if(d)break fa}a=K[9761]|K[9762]<<8|(K[9763]<<16|K[9764]<<24);d=K[9757]|K[9758]<<8|(K[9759]<<16|K[9760]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[9753]|K[9754]<<8|(K[9755]<<16|K[9756]<<24);d=K[9749]|K[9750]<<8|(K[9751]<< -16|K[9752]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break ea}l=P(J[g+288>>2],P(a,d));J[g+120>>2]=l;a=J[g+144>>2];ga:{if(!a){t=zc(l);break ga}t=Vd(a,l);l=J[g+120>>2]}J[g+144>>2]=t;tc(t,J[j+144>>2],l);d=J[c+4>>2];ha:{if((d|0)==J[g+4>>2])break ha;J[g+168>>2]=-780903145;J[g+172>>2]=1071454021;J[g+4>>2]=d;wc(g+8|0,0,96);a=J[g+176>>2];f=2;ia:{ja:{ka:{la:switch(d-3|0){case 30:J[g+168>>2]=0;J[g+172>>2]=1072693248; -break ia;default:if(d-25>>>0>1)break ka;break;case 0:break ia;case 18:case 19:break la}J[g+168>>2]=0;J[g+172>>2]=1072693248;break ja}J[g+8>>2]=1202590843;J[g+12>>2]=1071938273;J[g+96>>2]=529139971;J[g+100>>2]=1071050339;J[g+88>>2]=68719477;J[g+92>>2]=1070927446;J[g+80>>2]=-597859448;J[g+84>>2]=1070859078;J[g+72>>2]=343597384;J[g+76>>2]=1072252846;d=g- -64|0;J[d>>2]=-343597384;J[d+4>>2]=1068415057;J[g+56>>2]=858993459;J[g+60>>2]=1069757235;J[g+48>>2]=-1717986918;J[g+52>>2]=1069128089;J[g+40>>2]=858993459; -J[g+44>>2]=1071854387;J[g+32>>2]=858993459;J[g+36>>2]=1070805811;J[g+24>>2]=-343597384;J[g+28>>2]=1067366481;J[g+16>>2]=1374389535;J[g+20>>2]=1070931640}f=a}if(!J[g+144>>2])break ha;J[g+176>>2]=f}A=1;a=J[c+132>>2];ma:{if(!a)break ma;a=zH(a,5807);if(a)na:{f=0;q=0;if(!a)break na;l=13352;i=K[a|0];oa:{if(!i)break oa;if((i|0)!=116){f=i;if(((f-65>>>0<26?f|32:f)|0)!=116)break oa}l=13353;f=K[a+1|0];if(!f)break oa;if((f|0)!=114)if(((f-65>>>0<26?f|32:f)|0)!=114)break oa;l=13354;f=K[a+2|0];if(!f)break oa;if((f| -0)!=117)if(((f-65>>>0<26?f|32:f)|0)!=117)break oa;l=13355;f=K[a+3|0];if(!f)break oa;if((f|0)!=101)if(((f-65>>>0<26?f|32:f)|0)!=101)break oa;f=K[a+4|0];l=13356}q=1;d=K[l|0];pa:{if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa;l=6997;qa:{if(!i){f=0;break qa}if((i|0)!=111){f=i;if(((f-65>>>0<26?f|32:f)|0)!=111)break qa}l=6998;f=K[a+1|0];if(!f)break qa;if((f|0)!=110)if(((f-65>>>0<26?f|32:f)|0)!=110)break qa;f=K[a+2|0];l=6999}d=K[l|0];if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa; -l=4261;ra:{if(!i){f=0;break ra}if((i|0)!=121){f=i;if(((f-65>>>0<26?f|32:f)|0)!=121)break ra}l=4262;f=K[a+1|0];if(!f)break ra;if((f|0)!=101)if(((f-65>>>0<26?f|32:f)|0)!=101)break ra;l=4263;f=K[a+2|0];if(!f)break ra;if((f|0)!=115)if(((f-65>>>0<26?f|32:f)|0)!=115)break ra;f=K[a+3|0];l=4264}d=K[l|0];if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa;f=28334;sa:{if(!i){i=0;break sa}if((i|0)!=49)if(((i-65>>>0<26?i|32:i)|0)!=49)break sa;i=K[a+1|0];f=28335}a=K[f|0];q=((i-65>>>0<26?i|32:i)|0)== -((a-65>>>0<26?a|32:a)|0)}}else q=1;A=q;a=J[c+132>>2];if(!a)break ma;zH(a,17779)}a=J[c+272>>2];J[a+4>>2]=2;J[a+68>>2]=2;J[a+36>>2]=2;J[a+20>>2]=2;a=J[g+272>>2];J[a+4>>2]=1;J[a+68>>2]=1;J[a+36>>2]=1;J[a+20>>2]=1;ta:{if((r|x)<0)break ta;d=J[c+112>>2];a=r;e=y+J[g+112>>2]|0;a=e>>>0>>0?a+1|0:a;if((a|0)>0)a=1;else a=d>>>0>>0&(a|0)>=0;if(a)break ta;d=J[c+108>>2];a=x;f=J[g+108>>2];e=v+f|0;a=e>>>0>>0?a+1|0:a;if((a|0)>0)a=1;else a=d>>>0>>0&(a|0)>=0;if(a)break ta;if(!(J[g+268>>2]|!J[c+268>>2])){SJ(g); -f=J[g+108>>2]}if(f){q=1;while(1){ua:{if(!q){q=0;break ua}f=J[g+112>>2];q=0;i=J[g+144>>2];va:{if(!i){i=0;break va}if(!f){i=0;break va}a=Fzb(-1,33554431,f,0);d=fc;if((d|0)==(h|0)&a>>>0<=n>>>0|d>>>0>>0){i=0;break va}e=J[g+288>>2];d=Dzb(e,0,f,0);if(fc){i=0;a=K[11111]|K[11112]<<8|(K[11113]<<16|K[11114]<<24);d=K[11107]|K[11108]<<8|(K[11109]<<16|K[11110]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[11103]| -K[11104]<<8|(K[11105]<<16|K[11106]<<24);d=K[11099]|K[11100]<<8|(K[11101]<<16|K[11102]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break va}if(d){i=i+P(e,P(f,n))|0;f=J[g+112>>2];break va}i=0;a=K[2371]|K[2372]<<8|(K[2373]<<16|K[2374]<<24);d=K[2367]|K[2368]<<8|(K[2369]<<16|K[2370]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]= -a>>>24;a=K[2363]|K[2364]<<8|(K[2365]<<16|K[2366]<<24);d=K[2359]|K[2360]<<8|(K[2361]<<16|K[2362]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24}s=J[c+144>>2];if(!s)break ua;d=J[c+112>>2];if(!d)break ua;e=h+x|0;a=Fzb(-1,33554431,d,0);o=n+v|0;e=o>>>0>>0?e+1|0:e;w=e;l=fc;if((e|0)>=(l|0)&a>>>0<=o>>>0|(e|0)>(l|0))break ua;a=Fzb(0,33554432,d,0);l=0-a|0;a=0-(fc+((a|0)!=0)|0)|0;if((a|0)>=(e|0)&l>>>0>=o>>>0|(a|0)>(e| -0))break ua;e=J[c+288>>2];f=Dzb(e,0,f,0);if(fc){a=K[11111]|K[11112]<<8|(K[11113]<<16|K[11114]<<24);d=K[11107]|K[11108]<<8|(K[11109]<<16|K[11110]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[11103]|K[11104]<<8|(K[11105]<<16|K[11106]<<24);d=K[11099]|K[11100]<<8|(K[11101]<<16|K[11102]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+ -299|0]=a>>>24;break ua}if(f){if(!i)break ua;q=1;l=J[g+112>>2];if(!l)break ua;a=Dzb(o,w,d,0)+y|0;f=P(a,e)+s|0;w=0;o=0;while(1){wa:{xa:{a=J[g+272>>2];if(!(H[J[a+104>>2]+i|0]>=0?J[a+100>>2]:0)){d=0;a=0;t=J[g+288>>2];if(t)break xa;t=0;break wa}t=J[g+288>>2];break wa}while(1){e=J[g+272>>2];l=0;ya:{if(!a&d>>>0<=63){l=J[e+(d<<4)>>2];if(l>>>0>63)break ya}s=e;e=l<<4;if(!J[(s+e|0)+4>>2])break ya;e=e+J[c+272>>2]|0;if(!J[e+4>>2])break ya;H[J[e+8>>2]+f|0]=K[d+i|0];t=J[g+288>>2]}d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0< -t>>>0)continue;break}l=J[g+112>>2]}i=i+t|0;f=J[c+288>>2]+f|0;a=o;w=w+1|0;o=w?a:a+1|0;if(!o&l>>>0>w>>>0)continue;break}break ua}a=K[2371]|K[2372]<<8|(K[2373]<<16|K[2374]<<24);d=K[2367]|K[2368]<<8|(K[2369]<<16|K[2370]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[2363]|K[2364]<<8|(K[2365]<<16|K[2366]<<24);d=K[2359]|K[2360]<<8|(K[2361]<<16|K[2362]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295| -0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}a=h;n=n+1|0;h=n?a:a+1|0;if(!h&M[g+108>>2]>n>>>0)continue;break}}qc(J[g+144>>2]);qc(J[g+272>>2]);qc(g);break ea}if(J[c+108>>2]){F=+(y>>>0)+ +(r|0)*4294967296;G=+(v>>>0)+ +(x|0)*4294967296;i=1;while(1){a=i;i=0;za:{if(!a)break za;i=1;a=n>>>0>>0;d=a&(h|0)<=(x|0)|(h|0)<(x|0);if(d)break za;p=+M[g+108>>2];B=+(n>>>0)+ +(h|0)*4294967296-G;if(p<=B)break za;s=0;e=0;Aa:{if(d)break Aa;e=0;if(!(p>B))break Aa;i=0;o=J[g+144>>2];if(!o)break za; -d=J[g+112>>2];if(!d)break za;f=Fzb(-1,33554431,d,0);e=n-v|0;a=h-(a+x|0)|0;l=fc;if(f>>>0<=e>>>0&(a|0)>=(l|0)|(a|0)>(l|0))break za;f=Fzb(0,33554432,d,0);l=0-f|0;f=0-(fc+((f|0)!=0)|0)|0;if(e>>>0<=l>>>0&(f|0)>=(a|0)|(a|0)<(f|0))break za;i=J[g+288>>2];f=Dzb(i,0,d,0);if(fc){i=0;a=K[11111]|K[11112]<<8|(K[11113]<<16|K[11114]<<24);d=K[11107]|K[11108]<<8|(K[11109]<<16|K[11110]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>> -24;a=K[11103]|K[11104]<<8|(K[11105]<<16|K[11106]<<24);d=K[11099]|K[11100]<<8|(K[11101]<<16|K[11102]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break za}Ba:{if(f){s=o+P(i,P(d,e))|0;if((r|0)<0)break Ba;e=s;break Aa}i=0;a=K[2371]|K[2372]<<8|(K[2373]<<16|K[2374]<<24);d=K[2367]|K[2368]<<8|(K[2369]<<16|K[2370]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8; -H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[2363]|K[2364]<<8|(K[2365]<<16|K[2366]<<24);d=K[2359]|K[2360]<<8|(K[2361]<<16|K[2362]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break za}e=s-P(y,J[g+288>>2])|0}z=e;o=J[c+144>>2];if(!o){i=0;break za}e=J[c+112>>2];if(!e){i=0;break za}i=0;a=Fzb(-1,33554431,e,0);d=fc;if((h|0)==(d|0)&a>>>0<=n>>>0|d>>>0>>0)break za;f=J[c+288>>2];d=Dzb(f,0,e,0);if(fc){a=K[11111]|K[11112]<< -8|(K[11113]<<16|K[11114]<<24);d=K[11107]|K[11108]<<8|(K[11109]<<16|K[11110]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[11103]|K[11104]<<8|(K[11105]<<16|K[11106]<<24);d=K[11099]|K[11100]<<8|(K[11101]<<16|K[11102]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break za}if(d){i=1;if(!J[c+112>>2])break za;q=o+P(f,P(e, -n))|0;w=0;o=0;while(1){Ca:{if(w>>>0>>0&(o|0)<=(r|0)|(o|0)<(r|0)){t=J[c+288>>2];break Ca}p=+(w>>>0)+ +(o|0)*4294967296-F;f=J[g+112>>2];if(p>=+(f>>>0))break za;if(!s|(w>>>0>>0&(o|0)<=(r|0)|(o|0)<(r|0))|p>=+(f>>>0)){d=0;a=0;t=J[c+288>>2];if(!t){t=0;break Ca}while(1){e=J[c+272>>2];l=0;Da:{if(!a&d>>>0<=63){l=J[e+(d<<4)>>2];if(l>>>0>63)break Da}f=e;e=l<<4;if(!J[(f+e|0)+4>>2]|!J[(e+J[g+272>>2]|0)+4>>2])break Da;H[d+q|0]=0;t=J[c+288>>2]}d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break Ca}t= -0;l=0;a=J[g+272>>2];if(J[a+68>>2])l=K[J[a+72>>2]+z|0];if(J[c+288>>2]){p=+((l&255)>>>0)*.00392156862745098;B=p==0?1:p;p=B*255;l=p>0;e=l?-1:0;f=p>=255;t=p<0;a=t?0:-1;if(p<4294967296&p>=0)d=~~p>>>0;else d=0;l=A?t?a:f?a:d:l?f?e:d:e;B=B*.00392156862745098;d=0;a=0;while(1){e=J[c+272>>2];f=0;Ea:{if(!a&d>>>0<=63){f=J[e+(d<<4)>>2];if(f>>>0>63)break Ea}t=f<<4;e=J[(t+e|0)+4>>2];if(!e)break Ea;t=t+J[g+272>>2]|0;C=J[t+4>>2];if(!(!(e&2)|(f|0)!=4)){H[d+q|0]=l;break Ea}if(!C|e&1)break Ea;p=B*+K[J[t+8>>2]+z|0]*255; -f=d+q|0;Fa:{Ga:{if(A){e=0;if(p<0)break Fa;e=255;if(p>=255)break Fa;if(!(p<4294967296&p>=0))break Ga;e=~~p>>>0;break Fa}e=0;if(!(p>0))break Fa;e=255;if(p>=255)break Fa;if(!(p<4294967296&p>=0))break Ga;e=~~p>>>0;break Fa}e=0}H[f|0]=e}d=d+1|0;a=d?a:a+1|0;t=J[c+288>>2];if(!a&t>>>0>d>>>0)continue;break}f=J[g+112>>2]}a=J[g+288>>2];d=a+z|0;z=d>>>0>>0?d:s}q=q+t|0;a=o;w=w+1|0;o=w?a:a+1|0;if(!o&M[c+112>>2]>w>>>0)continue;break}break za}a=K[2371]|K[2372]<<8|(K[2373]<<16|K[2374]<<24);d=K[2367]|K[2368]<< -8|(K[2369]<<16|K[2370]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[2363]|K[2364]<<8|(K[2365]<<16|K[2366]<<24);d=K[2359]|K[2360]<<8|(K[2361]<<16|K[2362]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}a=h;n=n+1|0;h=n?a:a+1|0;if(!h&M[c+108>>2]>n>>>0)continue;break}}qc(J[g+144>>2]);qc(J[g+272>>2]);qc(g)}hA(j);break t; -case 160:H[k+64|0]=0;a=k- -64|0;h=Yd(a,1,2,m);e=K[k+64|0]|K[k+65|0]<<8;H[k+64|0]=0;f=Yd(a,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;a=xq(yq(m),a);f=(f|0)!=2?-1:d<<8|d>>>8;d=f&65535;if(d>>>0>(a?0:J[k+88>>2])>>>0){a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+308|0]=b;H[c+309|0]= -b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14211]|K[14212]<<8|(K[14213]<<16|K[14214]<<24);b=K[14207]|K[14208]<<8|(K[14209]<<16|K[14210]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14203]|K[14204]<<8|(K[14205]<<16|K[14206]<<24);b=K[14199]|K[14200]<<8|(K[14201]<<16|K[14202]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]= -b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!d)break s;a=zc(d);if(!a)break s;n=Yd(a,1,d,m);if((n|0)!=(f&65535)|n>>31){qc(a);a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[19113]|K[19114]<<8|(K[19115]<<16|K[19116]<<24);b=K[19109]|K[19110]<<8|(K[19111]<<16|K[19112]<<24);H[c+306|0]=b;H[c+307|0]=b>>>8;H[c+308|0]=b>>>16;H[c+309|0]=b>>>24;H[c+310|0]=a;H[c+311|0]=a>>>8;H[c+312|0]=a>>>16;H[c+313|0]=a>>>24;a=K[19107]|K[19108]<<8|(K[19109]<<16|K[19110]<< -24);b=K[19103]|K[19104]<<8|(K[19105]<<16|K[19106]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[19099]|K[19100]<<8|(K[19101]<<16|K[19102]<<24);b=K[19095]|K[19096]<<8|(K[19097]<<16|K[19098]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}e=((h|0)!=2?-1:e<<8|e>>>8)&65535;Ha:{if((e|0)!=498){if((e|0)!=224)break Ha; -d=R0(d);e=J[d+8>>2];if(e)tc(J[d+4>>2],a,e);e=xX(c,18026,d);a1(d);if(e)break Ha;qc(a);a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[17120]|K[17121]<<8|(K[17122]<<16|K[17123]<<24);b=K[17116]|K[17117]<<8|(K[17118]<<16|K[17119]<<24);H[c+307|0]=b;H[c+308|0]=b>>>8;H[c+309|0]=b>>>16;H[c+310|0]=b>>>24;H[c+311|0]=a;H[c+312|0]=a>>>8;H[c+313|0]=a>>>16;H[c+314|0]=a>>>24;a=K[17113]|K[17114]<<8|(K[17115]<<16|K[17116]<<24);b=K[17109]|K[17110]<<8|(K[17111]<<16|K[17112]<<24);H[c+300|0]=b;H[c+301|0]= -b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[17105]|K[17106]<<8|(K[17107]<<16|K[17108]<<24);b=K[17101]|K[17102]<<8|(K[17103]<<16|K[17104]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}d=R0(d);e=J[d+8>>2];if(e)tc(J[d+4>>2],a,e);if(!xX(c,17432,d)){qc(a);a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[17120]|K[17121]<<8|(K[17122]<< -16|K[17123]<<24);b=K[17116]|K[17117]<<8|(K[17118]<<16|K[17119]<<24);H[c+307|0]=b;H[c+308|0]=b>>>8;H[c+309|0]=b>>>16;H[c+310|0]=b>>>24;H[c+311|0]=a;H[c+312|0]=a>>>8;H[c+313|0]=a>>>16;H[c+314|0]=a>>>24;a=K[17113]|K[17114]<<8|(K[17115]<<16|K[17116]<<24);b=K[17109]|K[17110]<<8|(K[17111]<<16|K[17112]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[17105]|K[17106]<<8|(K[17107]<<16|K[17108]<<24);b=K[17101]|K[17102]<< -8|(K[17103]<<16|K[17104]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}a1(d)}qc(a);break s;default:a=P(u,24)+39224|0;h=J[a>>2];e=J[a+4>>2];f=e;if((e&h)==-1)break y;d=0;a=0;if(!h&(e|0)<=0|(e|0)<0)break s;while(1){if((Yg(m)|0)==-1)break t;d=d+1|0;e=d?a:a+1|0;a=e;if(d>>>0>>0&(f|0)>=(a|0)|(a|0)<(f|0))continue;break}break t;case 26:break z}H[k+64|0]=0;a=Yd(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+ -216>>3]=(a|0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495;H[k+64|0]=0;a=Yd(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+224>>3]=(a|0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495;H[k+64|0]=0;a=Yd(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+232>>3]=(a|0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495;break s}np(m);break s}a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[14480]|K[14481]<<8|(K[14482]<<16|K[14483]<<24);b=K[14476]|K[14477]<<8| -(K[14478]<<16|K[14479]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14472]|K[14473]<<8|(K[14474]<<16|K[14475]<<24);b=K[14468]|K[14469]<<8|(K[14470]<<16|K[14471]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14464]|K[14465]<<8|(K[14466]<<16|K[14467]<<24);b=K[14460]|K[14461]<<8|(K[14462]<<16|K[14463]<<24);H[c+292| -0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){qc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310| -0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14211]|K[14212]<<8|(K[14213]<<16|K[14214]<<24);b=K[14207]|K[14208]<<8|(K[14209]<<16|K[14210]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14203]|K[14204]<<8|(K[14205]<<16|K[14206]<<24);b=K[14199]|K[14200]<<8|(K[14201]<<16|K[14202]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296| -0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}f=0;break a}a=P(a,d);if(!a)break t;e=a;d=0;a=0;while(1){if((Yg(m)|0)==-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}}d=0;a=0;if((u|0)!=3072)break s;while(1){b=3072;if((Yg(m)|0)==-1)break r;e=!a&d>>>0<23;d=d+1|0;a=d?a:a+1|0;if(e)continue;break}break r}if((b&65280)==32768){b=u;break r}if(u-176>>>0<32){b=u;break r}a=b&65535;if((a|0)==255){b=u;break r}if((a|0)==65535){b=u;break r}if(!(u>>>0<=33023&u-208>>>0>46)){H[k+ -64|0]=0;b=k- -64|0;d=Yd(b,1,2,m);a=K[k+64|0]|K[k+65|0]<<8;b=xq(yq(m),b);Ia:{e=b?0:J[k+88>>2];a=(d|0)!=2?-1:a<<8|a>>>8;b=a&65535;if(e>>>0>=b>>>0){if(b)break Ia;b=u;break r}a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24; -H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}b=a&65535;d=0;a=0;while(1){if((Yg(m)|0)==-1){b=u;break r}d=d+1|0;a=d?a:a+1|0;if(!a&b>>>0>d>>>0)continue;break}b=u;break r}if(u-256>>>0>32511){b=u;break r}a=xq(yq(m),k- -64|0);Ja:{e=a?0:J[k+88>>2];a=b>>> -7&255;if(e>>>0>=a>>>0){if(a)break Ja;b=u;break r}a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]| -K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}b=a;d=0;a=0;while(1){if((Yg(m)|0)==-1){b=u;break r}d=d+1|0;a=d?a:a+1|0;if(!a&b>>>0>d>>>0)continue;break}b=u}f=1;if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break a;continue}break}a=J[c+144>>2];if(a){qc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+316|0]=a;H[c+317|0]=a>>> -8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14211]|K[14212]<<8|(K[14213]<<16|K[14214]<<24);b=K[14207]|K[14208]<<8|(K[14209]<<16|K[14210]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>> -24;a=K[14203]|K[14204]<<8|(K[14205]<<16|K[14206]<<24);b=K[14199]|K[14200]<<8|(K[14201]<<16|K[14202]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}bc=k+160|0;return f|0}function ueb(a){a=a|0;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,G=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0;k=bc-48|0;bc=k;d=J[a>>2];b=0;a:{if(J[J[d+96>>2]+64>>2]!= -40)break a;b=0;if(!K[a+613|0])break a;b=0;if(K[d+9|0]&32)break a;b=(K[a+340|0]^-1)>>>2&1}I[a+616>>1]=0;H[a+615|0]=b;b=J[a+384>>2];c=L[a+152>>1];f=b+c<<1;f=f>>>0<=30?30:f;if(f>>>0>1])I[a+188>>1]=f;J[a+628>>2]=0;J[a+620>>2]=0;if(c)b=(c>>>0<5?50:P(c,10))+(b>>>0<500?50:(b>>>0)/10|0)|0;else b=P(b,22)+300|0;J[a+624>>2]=b;c=J[d+16>>2];J[a+260>>2]=0;c=P(c,100);b=b>>>0>>0?b:c;J[a+632>>2]=b;J[a+624>>2]=b;b:{if(L[a+220>>1]!=L[a+222>>1]){c=1724;f=1725;d=1726;b=1723;break b}c=1728;f=1729;d=1730;b= -1727}J[a+608>>2]=b;J[a+604>>2]=c;J[a+600>>2]=f;J[a+596>>2]=d;d=I[a+302>>1];c:{if((d&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;c=b;break c}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;c=L[a+298>>1];break c}c=I[a+298>>1];b=P(b,I[a+300>>1])+P(d,c)>>14;J[a+568>>2]=b}d:{if((c&65535)==16384){J[a+576>>2]=1731;break d}if(L[a+300>>1]==16384){J[a+576>>2]=1732;break d}J[a+576>>2]=1733}e:{if(L[a+294>>1]==16384){J[a+580>>2]=1731;break e}if(L[a+296>>1]==16384){J[a+580>>2]=1732;break e}J[a+580>>2]= -1734}J[a+592>>2]=1735;J[a+588>>2]=1736;f:{if((b|0)!=16384)break f;g:{if((d|0)==16384){f=1738;c=1737;break g}if(L[a+304>>1]!=16384)break f;f=1740;c=1739}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;b=J[a+316>>2];if(!(b&248))J[a+572>>2]=J[(b<<24>>24<<2)+328872>>2];x=a+180|0;y=a+144|0;o=a+72|0;m=a+36|0;p=a+108|0;d=J[a+368>>2];c=J[a+364>>2];h:{i:{while(1){i=J[a+360>>2];h=K[i+c|0];H[a+372|0]=h;f=H[h+326848|0];J[a+376>>2]=f;if((h&254)==64){b=c+1|0;if((b|0)>= -(d|0)){d=131;break i}f=2-P(K[b+i|0],f)|0;J[a+376>>2]=f}if((c+f|0)>(d|0)){d=131;break i}b=K[h+327104|0];d=b>>>4|0;c=J[a+16>>2]-d|0;J[a+28>>2]=c;if((c|0)<0){if(K[a+565|0]){d=129;break i}if(b>>>0>=16)wc(J[a+24>>2],0,(d>>>0<=1?1:d)<<2);J[a+28>>2]=0;c=0}j:{k:{if((h|0)==145){b=J[J[a>>2]+736>>2];if(!b){g=J[a+32>>2];break j}g=J[b>>2]+c|0;break k}g=(b&15)+c|0}J[a+32>>2]=g}d=130;b=J[a+20>>2];if((b|0)<(g|0))break i;J[a+12>>2]=0;H[a+380|0]=1;j=J[a+24>>2];e=j+(c<<2)|0;d=135;l:{m:{n:{o:{p:{q:switch(h|0){case 0:case 1:case 2:case 3:case 4:case 5:c= -h<<14&16384;b=c^16384;if(h>>>0<=3){I[a+296>>1]=b;I[a+294>>1]=c;I[a+300>>1]=b;I[a+298>>1]=c}r:{if(h&2){c=L[a+302>>1];break r}I[a+302>>1]=c;I[a+304>>1]=b}s:{if((c&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break s}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break s}g=I[a+298>>1];b=P(b,I[a+300>>1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=1731;J[a+576>>2]=(g&65535)==16384?1731:L[a+300>>1]==16384?1732:1733;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?1732:1734:f;J[a+592>>2]=1735; -J[a+588>>2]=1736;J[a+580>>2]=f;t:{if((b|0)!=16384)break t;u:{if((c&65535)==16384){f=1738;c=1737;break u}if(L[a+304>>1]!=16384)break t;f=1740;c=1739}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 6:case 7:v:{b=L[e+4>>1];if(b>>>0>1]){c=L[e>>1];if(c>>>0>1])break v}if(!K[a+565|0])break p;d=134;break i}c=J[a+88>>2]+(c<<3)|0;d=J[c+4>>2];f=J[a+124>>2]+(b<<3)|0;g=J[f+4>>2];b=d-g|0;e=J[c>>2];f=J[f>>2];c=(e|0)==(f|0)&(d|0)==(g|0);d= -c?16384:e-f|0;c=c|!(h&1);f=c?b:d;b=c?d:0-b|0;if(f|b){J[k+16>>2]=f;J[k+12>>2]=b;ju(k+12|0);I[a+298>>1]=J[k+12>>2]/4;I[a+300>>1]=J[k+16>>2]/4}c=L[a+298>>1]|L[a+300>>1]<<16;I[a+294>>1]=c;I[a+296>>1]=c>>>16;f=c<<16>>16;d=I[a+302>>1];b=f;w:{if((d&65535)==16384)break w;b=c>>16;g=I[a+304>>1];if((g|0)==16384)break w;b=P(b,g)+P(d,f)>>14}J[a+592>>2]=1735;J[a+588>>2]=1736;J[a+568>>2]=b;f=(c&-65536)==1073741824;c=(c&65535)==16384;J[a+580>>2]=c?1731:f?1732:1734;J[a+576>>2]=c?1731:f?1732:1733;x:{if((b|0)!=16384)break x; -y:{if((d|0)==16384){f=1738;c=1737;break y}if(L[a+304>>1]!=16384)break x;f=1740;c=1739}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 8:case 9:z:{b=L[e+4>>1];if(b>>>0>1]){c=L[e>>1];if(c>>>0>1])break z}if(!K[a+565|0])break p;d=134;break i}c=J[a+88>>2]+(c<<3)|0;d=J[c+4>>2];f=J[a+124>>2]+(b<<3)|0;g=J[f+4>>2];b=d-g|0;e=J[c>>2];f=J[f>>2];c=(e|0)==(f|0)&(d|0)==(g|0);d=c?16384:e-f|0;c=c|!(h&1);f=c?b:d;b=c?d:0-b|0;A:{if(!(f|b)){c= -L[a+302>>1];break A}J[k+16>>2]=f;J[k+12>>2]=b;ju(k+12|0);c=J[k+12>>2]/4|0;I[a+302>>1]=c;I[a+304>>1]=J[k+16>>2]/4}B:{if((c&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break B}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break B}g=I[a+298>>1];b=P(b,I[a+300>>1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=1731;J[a+576>>2]=(g&65535)==16384?1731:L[a+300>>1]==16384?1732:1733;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?1732:1734:f;J[a+592>>2]=1735;J[a+588>>2]=1736;J[a+580>>2]=f;C:{if((b| -0)!=16384)break C;D:{if((c&65535)==16384){f=1738;c=1737;break D}if(L[a+304>>1]!=16384)break C;f=1740;c=1739}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 10:b=I[e+4>>1];c=I[e>>1];if(b|c){J[k+16>>2]=b;J[k+12>>2]=c;ju(k+12|0);I[a+298>>1]=J[k+12>>2]/4;I[a+300>>1]=J[k+16>>2]/4}c=L[a+298>>1]|L[a+300>>1]<<16;I[a+294>>1]=c;I[a+296>>1]=c>>>16;f=c<<16>>16;d=I[a+302>>1];b=f;E:{if((d&65535)==16384)break E;b=c>>16;g=I[a+304>>1];if((g|0)==16384)break E; -b=P(b,g)+P(d,f)>>14}J[a+592>>2]=1735;J[a+588>>2]=1736;J[a+568>>2]=b;f=(c&-65536)==1073741824;c=(c&65535)==16384;J[a+580>>2]=c?1731:f?1732:1734;J[a+576>>2]=c?1731:f?1732:1733;F:{if((b|0)!=16384)break F;G:{if((d|0)==16384){f=1738;c=1737;break G}if(L[a+304>>1]!=16384)break F;f=1740;c=1739}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 11:b=I[e+4>>1];c=I[e>>1];H:{if(!(b|c)){c=L[a+302>>1];break H}J[k+16>>2]=b;J[k+12>>2]=c;ju(k+12|0);c=J[k+12>> -2]/4|0;I[a+302>>1]=c;I[a+304>>1]=J[k+16>>2]/4}I:{if((c&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break I}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break I}g=I[a+298>>1];b=P(b,I[a+300>>1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=1731;J[a+576>>2]=(g&65535)==16384?1731:L[a+300>>1]==16384?1732:1733;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?1732:1734:f;J[a+592>>2]=1735;J[a+588>>2]=1736;J[a+580>>2]=f;J:{if((b|0)!=16384)break J;K:{if((c&65535)==16384){f=1738;c=1737;break K}if(L[a+ -304>>1]!=16384)break J;f=1740;c=1739}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 12:b=I[a+298>>1];J[e+4>>2]=I[a+300>>1];J[e>>2]=b;break p;case 13:b=I[a+302>>1];J[e+4>>2]=I[a+304>>1];J[e>>2]=b;break p;case 14:g=L[a+298>>1]|L[a+300>>1]<<16;I[a+302>>1]=g;e=g>>>16|0;I[a+304>>1]=e;c=g<<16>>16;f=1731;h=g&65535;L:{if((h|0)==16384){d=1731;b=c;break L}d=1732;b=16384;if((e|0)==16384)break L;d=1733;b=g>>16;b=P(c,c)+P(b,b)>>>14|0}J[a+576>>2]=d;J[a+ -568>>2]=b;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?1732:1734:f;J[a+592>>2]=1735;J[a+588>>2]=1736;J[a+580>>2]=f;M:{if((b|0)!=16384)break M;N:{if((h|0)==16384){f=1738;c=1737;break N}if((e|0)!=16384)break M;f=1740;c=1739}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 15:O:{c=L[e+12>>1];b=L[a+44>>1];P:{if(c>>>0>=b>>>0)break P;f=L[e+16>>1];if(f>>>0>=b>>>0)break P;g=L[e+4>>1];b=L[a+80>>1];if(g>>>0>=b>>>0)break P;h=L[e+8>>1];if(h>>>0>=b>>>0)break P; -b=L[e>>1];if(b>>>0>1])break O}if(!K[a+565|0])break p;d=134;break i}e=J[a+52>>2];n=c<<3;c=e+n|0;d=J[c>>2];q=f<<3;i=q+e|0;j=J[i>>2];e=J[a+88>>2];f=g<<3;l=e+f|0;g=J[l+4>>2];r=h<<3;e=r+e|0;h=J[e+4>>2];s=J[l>>2];e=J[e>>2]-s|0;u=J[c+4>>2];l=J[i+4>>2]-u|0;w=0-l|0;h=h-g|0;i=j-d|0;c=Dd(e,w,64)+Dd(h,i,64)|0;j=c>>31;v=Dd(e,i,64)+Dd(h,l,64)|0;l=v>>31;Q:{if(((l^v)-l|0)<(P((c^j)-j|0,19)|0)){d=Dd(d-s|0,w,64)+Dd(u-g|0,i,64)|0;g=Dd(d,e,c);d=Dd(d,h,c);c=J[a+124>>2];f=f+J[a+88>>2]|0;J[c+(b<<3)>>2]=g+J[f>>2]; -d=J[f+4>>2]+d|0;break Q}c=J[a+124>>2];d=J[a+52>>2];g=d+n|0;e=J[a+88>>2];h=e+r|0;f=e+f|0;d=d+q|0;J[c+(b<<3)>>2]=((J[g>>2]+(J[h>>2]+J[f>>2]|0)|0)+J[d>>2]|0)/4;d=(J[d+4>>2]+(J[g+4>>2]+(J[h+4>>2]+J[f+4>>2]|0)|0)|0)/4|0}J[((b<<3)+c|0)+4>>2]=d;b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|24;break p;case 16:I[a+288>>1]=J[e>>2];break p;case 17:I[a+290>>1]=J[e>>2];break p;case 18:I[a+292>>1]=J[e>>2];break p;case 19:b=x;R:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break R}c=J[b+ -4>>2];J[m>>2]=J[b>>2];J[m+4>>2]=c;J[m+32>>2]=J[b+32>>2];c=J[b+28>>2];J[m+24>>2]=J[b+24>>2];J[m+28>>2]=c;c=J[b+20>>2];J[m+16>>2]=J[b+16>>2];J[m+20>>2]=c;c=J[b+12>>2];J[m+8>>2]=J[b+8>>2];J[m+12>>2]=c;I[a+348>>1]=J[e>>2];break p;case 20:b=x;S:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break S}c=J[b+4>>2];J[o>>2]=J[b>>2];J[o+4>>2]=c;J[o+32>>2]=J[b+32>>2];c=J[b+28>>2];J[o+24>>2]=J[b+24>>2];J[o+28>>2]=c;c=J[b+20>>2];J[o+16>>2]=J[b+16>>2];J[o+20>>2]=c;c=J[b+12>> -2];J[o+8>>2]=J[b+8>>2];J[o+12>>2]=c;I[a+350>>1]=J[e>>2];break p;case 21:b=x;T:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break T}c=J[b+4>>2];J[p>>2]=J[b>>2];J[p+4>>2]=c;J[p+32>>2]=J[b+32>>2];c=J[b+28>>2];J[p+24>>2]=J[b+24>>2];J[p+28>>2]=c;c=J[b+20>>2];J[p+16>>2]=J[b+16>>2];J[p+20>>2]=c;c=J[b+12>>2];J[p+8>>2]=J[b+8>>2];J[p+12>>2]=c;I[a+352>>1]=J[e>>2];break p;case 22:b=x;U:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break U}g= -J[b+4>>2];c=J[b>>2];J[m>>2]=c;J[m+4>>2]=g;l=J[b+32>>2];J[m+32>>2]=l;h=J[b+28>>2];d=J[b+24>>2];J[m+24>>2]=d;J[m+28>>2]=h;i=J[b+20>>2];f=J[b+16>>2];J[m+16>>2]=f;J[m+20>>2]=i;j=J[b+12>>2];b=J[b+8>>2];J[m+8>>2]=b;J[m+12>>2]=j;J[o+32>>2]=l;J[o+24>>2]=d;J[o+28>>2]=h;J[o+16>>2]=f;J[o+20>>2]=i;J[o+8>>2]=b;J[o+12>>2]=j;J[o>>2]=c;J[o+4>>2]=g;J[p+32>>2]=J[m+32>>2];b=J[m+28>>2];J[p+24>>2]=J[m+24>>2];J[p+28>>2]=b;b=J[m+20>>2];J[p+16>>2]=J[m+16>>2];J[p+20>>2]=b;b=J[m+12>>2];J[p+8>>2]=J[m+8>>2];J[p+12>>2]=b;b=J[m+ -4>>2];J[p>>2]=J[m>>2];J[p+4>>2]=b;b=L[e>>1];I[a+352>>1]=b;I[a+350>>1]=b;I[a+348>>1]=b;break p;case 23:b=J[e>>2];if((b|0)<0){d=132;break i}J[a+308>>2]=b>>>0>=65535?65535:b;break p;case 24:J[a+572>>2]=1741;J[a+316>>2]=1;break p;case 25:J[a+572>>2]=1742;J[a+316>>2]=0;break p;case 26:J[a+312>>2]=J[e>>2];break p;case 27:b=J[a+364>>2];c=J[a+368>>2];g=1;while(1){b=b+f|0;J[a+364>>2]=b;if((b|0)>=(c|0)){d=131;break i}d=K[b+i|0];H[a+372|0]=d;f=H[d+326848|0];J[a+376>>2]=f;if((d&254)==64){e=b+1|0;if((e|0)>=(c| -0)){d=131;break i}f=2-P(K[e+i|0],f)|0;J[a+376>>2]=f}if((c|0)<(b+f|0)){d=131;break i}V:switch(d-88|0){case 0:g=g+1|0;if(g)continue;break p;case 1:g=g-1|0;break;default:break V}if(g)continue;break}break p;case 28:b=132;d=c;c=J[e>>2];W:{if(!(d|c))break W;c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break W;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+8>>2])break W;H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>>2])break p}J[a+12>>2]=b;break o; -case 29:J[a+324>>2]=J[e>>2];break p;case 30:J[a+328>>2]=J[e>>2];break p;case 31:R=a,S=Pc(J[e>>2],J[a+264>>2]),J[R+332>>2]=S;break p;case 32:J[e+4>>2]=J[e>>2];break p;case 34:J[a+32>>2]=0;break p;case 35:R=e,S=Izb(J[e>>2],J[e+4>>2],32),J[R>>2]=S;J[e+4>>2]=fc;break p;case 36:J[e>>2]=J[a+16>>2];break p;case 37:b=J[e>>2];X:{if(!((b|0)>0&(b|0)<=(c|0))){b=0;if(!K[a+565|0])break X;J[a+12>>2]=134;J[e>>2]=0;break p}b=J[j+(c-b<<2)>>2]}J[e>>2]=b;break p;case 38:b=J[e>>2];if(!((b|0)>0&(b|0)<=(c|0))){if(!K[a+ -565|0])break p;d=134;break i}c=j+(c-b<<2)|0;d=J[c>>2];Zc(c,c+4|0,(b<<2)-4|0);J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2]=d;break p;case 39:Y:{b=L[e>>1];if(b>>>0>1]){c=L[e+4>>1];if(c>>>0>1])break Y}if(!K[a+565|0])break p;d=134;break i}e=b;d=J[a+52>>2]+(c<<3)|0;b=J[a+88>>2]+(b<<3)|0;b=(gc[J[a+576>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0)/2|0;gc[J[a+588>>2]](a,o,e,b);gc[J[a+588>>2]](a,m,c,0-b|0);break p;case 40:sr(a);break p;case 41:b=L[e>>1];if(b>>>0>=L[a+44>>1]){if(!K[a+565|0])break p; -d=134;break i}b=b+J[a+60>>2]|0;c=b;d=K[b|0];b=L[a+302>>1]?-9:-1;H[c|0]=d&(L[a+304>>1]?b&239:b);break p;case 42:b=134;f=J[e+4>>2];c=J[a+424>>2]+1|0;Z:{if(f>>>0>=c>>>0)break Z;d=J[a+408>>2];g=J[a+400>>2];_:{if((g|0)==(c|0)){c=d+P(f,24)|0;if((f|0)==J[(d?c:0)+12>>2])break _}c=d;d=c?c+P(g,24)|0:0;$:{if(c>>>0>=d>>>0)break $;while(1){if((f|0)==J[c+12>>2])break $;c=c+24|0;if(d>>>0>c>>>0)continue;break}}if((c|0)==(d|0))break Z}if(!K[c+16|0])break Z;b=130;f=J[a+432>>2];if((f|0)>=J[a+436>>2])break Z;if(J[e>> -2]<=0)break p;b=J[a+440>>2]+(f<<4)|0;J[b>>2]=J[a+356>>2];J[b+4>>2]=J[a+364>>2]+1;d=J[e>>2];J[b+12>>2]=c;J[b+8>>2]=d;J[a+432>>2]=f+1;b=J[c>>2];aa:{if(b-4>>>0<=4294967292){J[a+12>>2]=132;break aa}f=(b-1<<3)+a|0;g=J[f+448>>2];if(!g){J[a+12>>2]=138;break aa}f=J[f+452>>2];c=J[c+4>>2];if((f|0)<(c|0)){J[a+12>>2]=131;break aa}J[a+368>>2]=f;J[a+360>>2]=g;J[a+364>>2]=c;J[a+356>>2]=b;d=J[e>>2]}H[a+380|0]=0;c=J[a+620>>2]+d|0;J[a+620>>2]=c;b=139;if(c>>>0<=M[a+624>>2])break p}J[a+12>>2]=b;break o;case 43:d=134; -b=J[a+424>>2]+1|0;f=J[e>>2];if(b>>>0<=f>>>0)break i;c=J[a+408>>2];if(!c)break i;g=J[a+400>>2];ba:{if((g|0)==(b|0)){b=c+P(f,24)|0;if((f|0)==J[b+12>>2])break ba}e=c+P(g,24)|0;b=c;ca:{if((g|0)<=0)break ca;while(1){if((f|0)==J[b+12>>2])break ca;b=b+24|0;if(e>>>0>b>>>0)continue;break}}if((b|0)==(e|0))break i}if(!K[b+16|0])break i;d=130;f=J[a+432>>2];if((f|0)>=J[a+436>>2])break i;c=J[a+440>>2]+(f<<4)|0;J[c>>2]=J[a+356>>2];d=J[a+364>>2];J[c+12>>2]=b;J[c+8>>2]=1;J[c+4>>2]=d+1;J[a+432>>2]=f+1;c=J[b>>2];da:{if(c- -4>>>0<=4294967292){J[a+12>>2]=132;break da}d=(c-1<<3)+a|0;f=J[d+448>>2];if(!f){J[a+12>>2]=138;break da}d=J[d+452>>2];b=J[b+4>>2];if((d|0)<(b|0)){J[a+12>>2]=131;break da}J[a+368>>2]=d;J[a+360>>2]=f;J[a+364>>2]=b;J[a+356>>2]=c}H[a+380|0]=0;break p;case 44:h=J[a+356>>2];if((h|0)==3){d=156;break i}b=J[a+408>>2];ea:{fa:{if(!b){g=J[a+400>>2];d=J[e>>2];c=0;break fa}g=J[a+400>>2];c=P(g,24)+b|0;d=J[e>>2];ga:{if((g|0)<=0)break ga;while(1){if(J[b+12>>2]==(d|0))break ga;b=b+24|0;if(c>>>0>b>>>0)continue;break}}if((b| -0)!=(c|0))break ea}if(M[a+404>>2]<=g>>>0){d=140;break i}J[a+400>>2]=g+1;b=c}if(d>>>0>65535){d=140;break i}J[b+12>>2]=d;J[b>>2]=h;c=J[a+364>>2];J[b+20>>2]=0;I[b+16>>1]=1;J[b+4>>2]=c+1;if(M[a+424>>2]>>0)J[a+424>>2]=d;e=J[a+368>>2];while(1){c=c+f|0;J[a+364>>2]=c;if((c|0)>=(e|0)){d=131;break i}g=K[c+i|0];H[a+372|0]=g;f=H[g+326848|0];J[a+376>>2]=f;if((g&254)==64){d=c+1|0;if((d|0)>=(e|0)){d=131;break i}f=2-P(K[d+i|0],f)|0;J[a+376>>2]=f}if((e|0)<(c+f|0)){d=131;break i}d=137;ha:switch(g-44|0){case 1:J[b+ -8>>2]=c;break p;case 0:break i;default:break ha}if((g|0)!=137)continue;break}break i;case 33:case 89:case 126:case 127:J[a+16>>2]=g;break n;default:if(h>>>0>=224){d=J[e+4>>2];c=0;ia:{ja:{f=J[e>>2];g=f&65535;ka:{if(g>>>0>=L[a+80>>1])break ka;e=d+1|0;if(e>>>0>=J[a+384>>2]+1>>>0)break ka;b=L[a+288>>1];if(b>>>0>1])break ja}if(!K[a+565|0])break ia;J[a+12>>2]=134;break ia}if(e){c=gc[J[a+600>>2]](a,d)|0;b=L[a+288>>1]}d=J[a+332>>2];h=c-d|0;e=h>>31;c=J[a+328>>2]>((e^h)-e|0)?(c|0)<0?0-d|0:d:c;if(!L[a+ -350>>1]){e=I[a+302>>1];d=e>>31;i=(d^e)-d|0;d=c>>31;j=(d^c)-d|0;l=j>>>16|0;n=P(i,l);h=n<<16|8192;q=g<<3;d=q+J[a+84>>2]|0;r=J[a+48>>2]+(b<<3)|0;b=i;i=j&65535;b=h+P(b,i)|0;b=(n>>>16|0)+(b>>>0>>0)<<18|b>>>14;J[d>>2]=J[r>>2]+((c^e)<0?0-b|0:b);b=I[a+304>>1];e=b>>31;h=(b^e)-e|0;j=P(h,l);e=j<<16|8192;n=e;e=e+P(h,i)|0;e=(j>>>16|0)+(n>>>0>e>>>0)<<18|e>>>14;J[d+4>>2]=J[r+4>>2]+((b^c)<0?0-e|0:e);e=J[d+4>>2];b=q+J[a+88>>2]|0;J[b>>2]=J[d>>2];J[b+4>>2]=e;b=L[a+288>>1]}g=g<<3;d=g+J[a+84>>2]|0;b=J[a+48>>2]+(b<< -3)|0;d=gc[J[a+580>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0;b=g+J[a+88>>2]|0;g=J[a+52>>2]+(L[a+288>>1]<<3)|0;e=gc[J[a+576>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[g+4>>2]|0)|0;b=K[a+320|0]?(c^d)<0?0-c|0:c:c;c=K[a+372|0];la:{if(c&4){if(L[a+348>>1]==L[a+350>>1]){h=b-d|0;g=h>>31;b=J[a+324>>2]<((g^h)-g|0)?d:b}b=gc[J[a+572>>2]](a,b,c&3)|0;c=K[a+372|0];break la}g=J[(((c&3)<<2)+a|0)+268>>2];if((b|0)>=0){b=b+g|0;b=(b|0)>0?b:0;break la}b=b-g|0;b=b>>31&b}g=a+72|0;ma:{if(!(c&8))break ma;c=J[a+312>>2];if((d| -0)>=0){b=(b|0)>(c|0)?b:c;break ma}c=0-c|0;b=(b|0)<(c|0)?b:c}gc[J[a+588>>2]](a,g,f&65535,b-e|0)}I[a+290>>1]=L[a+288>>1];if(K[a+372|0]&16)I[a+288>>1]=f;I[a+292>>1]=f;break p}if(h>>>0>=192){na:{oa:{f=J[e>>2];g=f&65535;if(g>>>0>1]){b=L[a+288>>1];if(b>>>0>1])break oa}if(!K[a+565|0])break na;J[a+12>>2]=134;break na}pa:{if(!(L[a+350>>1]?L[a+348>>1]:0)){c=J[a+84>>2]+(g<<3)|0;b=J[a+48>>2]+(b<<3)|0;b=gc[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0;break pa}b=J[a+56>>2]+(b<<3)|0; -c=J[a+92>>2]+(g<<3)|0;d=J[a+224>>2];if((d|0)==J[a+228>>2]){b=Pc(gc[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[a+224>>2]);break pa}b=(S=a,T=Pc(J[c>>2]-J[b>>2]|0,d),U=Pc(J[c+4>>2]-J[b+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],gc[R](S|0,T|0,U|0)|0)}d=J[a+328>>2];qa:{if((d|0)<=0)break qa;c=J[a+332>>2];if((c+d|0)<=(b|0)|(c-d|0)>=(b|0))break qa;b=(b|0)<0?0-c|0:c}d=K[a+372|0];ra:{if(d&4){c=gc[J[a+572>>2]](a,b,d&3)|0;d=K[a+372|0];break ra}c=J[(((d&3)<<2)+a|0)+268>>2];if((b|0)>=0){c=b+c|0;c=(c|0)> -0?c:0;break ra}c=b-c|0;c=c>>31&c}e=a+72|0;sa:{if(!(d&8))break sa;d=J[a+312>>2];if((b|0)>=0){c=(c|0)>(d|0)?c:d;break sa}b=0-d|0;c=(b|0)>(c|0)?c:b}d=c;b=J[a+88>>2]+(g<<3)|0;c=J[a+52>>2]+(L[a+288>>1]<<3)|0;U=a,T=e,S=f&65535,V=d-(gc[J[a+576>>2]](a,J[b>>2]-J[c>>2]|0,J[b+4>>2]-J[c+4>>2]|0)|0)|0,R=J[a+588>>2],gc[R](U|0,T|0,S|0,V|0)}I[a+292>>1]=f;I[a+290>>1]=L[a+288>>1];if(K[a+372|0]&16)I[a+288>>1]=f;break p}if(h>>>0>=184){b=K[a+372|0]+65353|0;c=b&65535;if(c>>>0>=(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){J[a+12>> -2]=130;break p}J[a+364>>2]=J[a+364>>2]+1;ta:{if(!c)break ta;f=b&1;d=J[a+360>>2];b=0;if((c|0)!=1){g=c-f|0;c=0;while(1){h=J[a+364>>2];J[a+364>>2]=h+2;i=b<<2;h=d+h|0;h=K[h|0]|K[h+1|0]<<8;J[i+e>>2]=(h<<8|h>>>8)<<16>>16;h=J[a+364>>2];J[a+364>>2]=h+2;h=d+h|0;h=K[h|0]|K[h+1|0]<<8;J[e+(i|4)>>2]=(h<<8|h>>>8)<<16>>16;b=b+2|0;c=c+2|0;if((g|0)!=(c|0))continue;break}}if(!f)break ta;c=J[a+364>>2];J[a+364>>2]=c+2;e=e+(b<<2)|0;b=c+d|0;b=K[b|0]|K[b+1|0]<<8;J[e>>2]=(b<<8|b>>>8)<<16>>16}H[a+380|0]=0;break p}if(h>>> -0>=176){d=K[a+372|0]+65361|0;b=d&65535;if(b>>>0<(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){if(b){f=e-4|0;g=J[a+360>>2];b=1;c=1;while(1){J[f+(b<<2)>>2]=K[(g+J[a+364>>2]|0)+b|0];c=c+1|0;b=c&65535;if(b>>>0<=(d&65535)>>>0)continue;break}}break p}J[a+12>>2]=130;break p}sr(a);break p;case 146:if(J[J[a>>2]+736>>2]){J[e>>2]=17;break p}sr(a);break p;case 145:c=J[J[a>>2]+736>>2];if(c){f=0;h=0;b=J[c>>2];if(b>>>0>=(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){J[a+12>>2]=130;break p}d=J[c+8>>2];ua:{if(d){if(!b)break ua;c=0;if(b>>>0>= -4){i=b&-4;while(1){g=c<<2;J[g+e>>2]=J[d+g>>2]>>2;j=g|4;J[j+e>>2]=J[d+j>>2]>>2;j=g|8;J[j+e>>2]=J[d+j>>2]>>2;g=g|12;J[g+e>>2]=J[d+g>>2]>>2;c=c+4|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}b=b&3;if(!b)break ua;while(1){g=c<<2;J[g+e>>2]=J[d+g>>2]>>2;c=c+1|0;f=f+1|0;if((b|0)!=(f|0))continue;break}break ua}if(!b)break ua;wc(e,0,b<<2)}break p}sr(a);break p;case 143:case 144:sr(a);break p;case 142:c=J[e+4>>2];if(c-4>>>0<=4294967292){if(!K[a+565|0])break p;d=134;break i}b=J[e>>2];d=1<>2]+96>>2]+64>>2]!=40)break p;H[a+615|0]=(b|0)!=4;break p;case 141:b=J[e>>2];if((b|0)<0)break p;J[a+344>>2]=b&65535;break p;case 140:b=J[e+4>>2];if((b|0)>=J[e>>2])break p;J[e>>2]=b;break p;case 139:b=J[e+4>>2];if((b|0)<=J[e>>2])break p;J[e>>2]=b;break p;case 138:b=J[e+4>>2];c=J[e+8>>2];J[e+8>>2]=J[e>>2];J[e>>2]=b;J[e+4>>2]=c;break p;case 137:g=J[a+356>>2];if((g|0)==3){d=156;break i}d=J[a+412>>2];b=J[a+420>> -2];va:{wa:{if(!b){c=0;break wa}c=P(d,24)+b|0;xa:{if((d|0)<=0)break xa;h=J[e>>2];while(1){if((h|0)==J[b+12>>2])break xa;b=b+24|0;if(c>>>0>b>>>0)continue;break}}if((b|0)!=(c|0))break va}if(d>>>0>=M[a+416>>2]){d=141;break i}J[a+412>>2]=d+1;b=c}c=J[e>>2];if(c>>>0>255){d=141;break i}J[b+12>>2]=c;c=J[a+364>>2];H[b+16|0]=1;J[b>>2]=g;J[b+4>>2]=c+1;d=J[e>>2];if(d>>>0>M[a+428>>2])J[a+428>>2]=d&255;e=J[a+368>>2];while(1){c=c+f|0;J[a+364>>2]=c;if((c|0)>=(e|0)){d=131;break i}g=K[c+i|0];H[a+372|0]=g;f=H[g+326848| -0];J[a+376>>2]=f;if((g&254)==64){d=c+1|0;if((d|0)>=(e|0)){d=131;break i}f=2-P(K[d+i|0],f)|0;J[a+376>>2]=f}if((e|0)<(c+f|0)){d=131;break i}d=137;ya:switch(g-44|0){default:if((g|0)!=137)continue;break i;case 0:break i;case 1:break ya}break}J[b+8>>2]=c;break p;case 136:b=0;c=J[e>>2];b=c&1?J[J[J[a>>2]+96>>2]+64>>2]:b;b=c&2?K[a+285|0]?b|256:b:b;b=c&4?K[a+286|0]?b|512:b:b;b=c&8?J[J[a>>2]+736>>2]?b|1024:b:b;b=c&32?K[a+612|0]?b|4096:b:b;za:{if(!K[a+613|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)break za;d=c<<7;b=d& -8192|b;if(c&256)b=K[a+614|0]?b|32768:b;b=d&393216|b;if(!(c&4096))break za;b=K[a+618|0]?b|524288:b}J[e>>2]=b;break p;case 134:case 135:Aa:{b=L[e>>1];if(b>>>0>1]){c=L[e+4>>1];if(c>>>0>1])break Aa}if(!K[a+565|0])break p;d=134;break i}d=b<<3;f=d+J[a+84>>2]|0;g=J[f+4>>2];e=c<<3;c=e+J[a+120>>2]|0;i=J[c+4>>2];b=g-i|0;f=J[f>>2];j=J[c>>2];c=(f|0)==(j|0)&(g|0)==(i|0);f=c?16384:f-j|0;c=c|!(h&1);g=c?b:f;b=c?f:0-b|0;if(g|b){J[k+16>>2]=g;J[k+12>>2]=b;ju(k+12|0);I[a+294>>1]=J[k+12>>2]/4;I[a+296>> -1]=J[k+16>>2]/4}d=d+J[a+88>>2]|0;f=J[d+4>>2];g=e+J[a+124>>2]|0;e=J[g+4>>2];b=f-e|0;h=J[d>>2];g=J[g>>2];d=(h|0)==(g|0)&(e|0)==(f|0);f=d?16384:h-g|0;c=c|d;d=c?b:f;b=c?f:0-b|0;if(d|b){J[k+16>>2]=d;J[k+12>>2]=b;ju(k+12|0);I[a+298>>1]=J[k+12>>2]/4;I[a+300>>1]=J[k+16>>2]/4}f=L[a+302>>1];Ba:{if((f|0)==16384){b=I[a+298>>1];J[a+568>>2]=b;d=b;break Ba}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;d=L[a+298>>1];break Ba}d=I[a+298>>1];b=P(b,I[a+300>>1])+P(d,f<<16>>16)>>14;J[a+568>>2]=b}c=1731;J[a+ -576>>2]=(d&65535)==16384?1731:L[a+300>>1]==16384?1732:1733;c=L[a+294>>1]!=16384?L[a+296>>1]==16384?1732:1734:c;J[a+592>>2]=1735;J[a+588>>2]=1736;J[a+580>>2]=c;Ca:{if((b|0)!=16384)break Ca;Da:{if((f|0)==16384){f=1738;c=1737;break Da}if(L[a+304>>1]!=16384)break Ca;f=1740;c=1739}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 133:b=J[e>>2];c=b&255;if((c|0)==255){H[a+341|0]=1;break p}if(!c){H[a+341|0]=0;break p}if(!(!(b&256)|c>>>0>1]))H[a+ -341|0]=1;if(!(!(b&512)|!K[a+285|0]))H[a+341|0]=1;if(!(!(b&1024)|!K[a+286|0]))H[a+341|0]=1;if(!(!(b&2048)|c>>>0>=L[a+256>>1]))H[a+341|0]=0;if(!(!(b&4096)|!K[a+285|0]))H[a+341|0]=0;if(!(b&8192)|!K[a+286|0])break p;H[a+341|0]=0;break p;case 131:case 132:sr(a);break p;case 130:if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break p;Ea:{d=L[e+4>>1];c=L[a+152>>1];if(d>>>0>=c>>>0)break Ea;b=L[e>>1];if(c>>>0<=b>>>0)break Ea;if(b>>>0>d>>>0)break p;c=b;while(1){b=J[a+168>>2]+b|0; -H[b|0]=K[b|0]&254;c=c+1|0;b=c&65535;if(d>>>0>=b>>>0)continue;break}break p}if(!K[a+565|0])break p;d=134;break i;case 129:if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break p;Fa:{d=L[e+4>>1];c=L[a+152>>1];if(d>>>0>=c>>>0)break Fa;b=L[e>>1];if(c>>>0<=b>>>0)break Fa;if(b>>>0>d>>>0)break p;c=b;while(1){b=J[a+168>>2]+b|0;H[b|0]=K[b|0]|1;c=c+1|0;b=c&65535;if(d>>>0>=b>>>0)continue;break}break p}if(!K[a+565|0])break p;d=134;break i;case 128:Ga:{if(!(!K[a+616|0]|(!K[a+615|0]| -J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Ga;f=J[a+308>>2];if((f|0)<=J[a+16>>2]){if((f|0)<=0)break Ga;while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];Ha:{if(b>>>0>=L[a+152>>1]){b=f;if(!K[a+565|0])break Ha;d=134;break i}b=b+J[a+168>>2]|0;H[b|0]=K[b|0]^1;b=J[a+308>>2]}f=b-1|0;J[a+308>>2]=f;if((b|0)>1)continue;break}c=J[a+28>>2];break Ga}if(!K[a+565|0])break Ga;J[a+12>>2]=129}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 125:J[a+572>>2]=1743;J[a+316>>2]=3;break p;case 124:J[a+572>> -2]=1744;J[a+316>>2]=4;break p;case 123:sr(a);break p;case 122:J[a+572>>2]=1745;J[a+316>>2]=5;break p;case 121:if(J[e+4>>2])break p;b=132;d=c;c=J[e>>2];Ia:{if(!(d|c))break Ia;c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break Ia;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+8>>2])break Ia;H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>>2])break p}J[a+12>>2]=b;break o;case 120:if(!J[e+4>>2])break p;b=132;d=c;c=J[e>>2];Ja:{if(!(d|c))break Ja; -c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break Ja;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+8>>2])break Ja;H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>>2])break p}J[a+12>>2]=b;break o;case 119:d=J[e>>2];c=d>>>4|0;b=J[(c&12)+328920>>2];Ka:{La:{Ma:{Na:{c=c&3;switch(c-1|0){case 2:break La;case 1:break Ma;case 0:break Na;default:break Ka}}c=b>>>10|0;break Ka}c=b>>>9|0;break Ka}c=P(b,3)>>>10|0}J[a+484>>2]=c;J[a+572>>2]=1746;J[a+ -316>>2]=7;c=d&15;if(c)c=(P(b,c-4|0)|0)/8|0;else c=b-1|0;J[a+488>>2]=c>>8;J[a+480>>2]=b>>>8;break p;case 118:d=J[e>>2];c=d>>>4|0;b=J[(c&12)+328904>>2];Oa:{Pa:{Qa:{Ra:{c=c&3;switch(c-1|0){case 2:break Pa;case 1:break Qa;case 0:break Ra;default:break Oa}}c=b>>>10|0;break Oa}c=b>>>9|0;break Oa}c=P(b,3)>>>10|0}J[a+484>>2]=c;J[a+572>>2]=1747;J[a+316>>2]=6;J[a+480>>2]=b>>>8;c=d&15;J[a+488>>2]=(c?P(b,c-4|0)>>3:b-1|0)>>8;break p;case 115:case 116:case 117:d=gc[J[a+596>>2]](a)|0;c=1;f=J[e>>2];Sa:{if(!f)break Sa; -while(1){b=J[a+28>>2];if((b|0)<=1){if(K[a+565|0])J[a+12>>2]=129;J[a+28>>2]=0;break Sa}g=b-2|0;J[a+28>>2]=g;e=b<<2;b=J[a+24>>2];e=J[(e+b|0)-4>>2];Ta:{if(e>>>0>=M[a+384>>2]){if(!K[a+565|0])break Ta;d=134;break i}g=J[b+(g<<2)>>2];b=g>>>4&15;Ua:{Va:switch(K[a+372|0]-116|0){case 0:b=b|16;break Ua;case 1:break Va;default:break Ua}b=b|32}if((d|0)!=(L[a+336>>1]+b|0))break Ta;b=g&15;gc[J[a+608>>2]](a,e,(b>>>0>7?-7:-8)+b<<6-L[a+338>>1])}c=c+1|0;if(f>>>0>=c>>>0)continue;break}}J[a+32>>2]=J[a+28>>2];break p; -case 113:case 114:o4(a,e);break p;case 112:b=J[e>>2];if(b>>>0>=M[a+384>>2]){if(!K[a+565|0])break p;d=134;break i}c=Pc(J[e+4>>2],J[a+264>>2]);J[J[a+388>>2]+(b<<2)>>2]=c;break p;case 108:case 109:case 110:case 111:b=J[(((h&3)<<2)+a|0)+268>>2];c=J[e>>2];if((c|0)>=0){b=b+c|0;J[e>>2]=(b|0)>0?b:0;break p}b=c-b|0;J[e>>2]=b>>31&b;break p;case 104:case 105:case 106:case 107:R=e,V=gc[J[a+572>>2]](a,J[e>>2],h&3)|0,J[R>>2]=V;break p;case 103:J[e>>2]=J[e>>2]+63&-64;break p;case 102:J[e>>2]=J[e>>2]&-64;break p; -case 101:J[e>>2]=0-J[e>>2];break p;case 100:b=J[e>>2];if((b|0)>=0)break p;J[e>>2]=0-b;break p;case 99:R=e,V=Dd(J[e>>2],J[e+4>>2],64),J[R>>2]=V;break p;case 98:b=J[e+4>>2];if(!b){d=133;break i}R=e,V=hM(J[e>>2],64,b),J[R>>2]=V;break p;case 97:J[e>>2]=J[e>>2]-J[e+4>>2];break p;case 96:J[e>>2]=J[e+4>>2]+J[e>>2];break p;case 95:b=J[e>>2];if(b>>>0>6){d=132;break i}I[a+338>>1]=b;break p;case 94:I[a+336>>1]=J[e>>2];break p;case 93:o4(a,e);break p;case 92:J[e>>2]=!J[e>>2];break p;case 91:J[e>>2]=J[e>>2]?1: -J[e+4>>2]!=0;break p;case 90:if(!J[e>>2]){J[e>>2]=0;break p}J[e>>2]=J[e+4>>2]!=0;break p;case 88:if(J[e>>2])break p;c=J[a+364>>2];g=J[a+368>>2];d=1;Wa:while(1){c=c+f|0;J[a+364>>2]=c;Xa:{if((d|0)==1){if((c|0)>=(g|0)){d=131;break i}b=K[c+i|0];H[a+372|0]=b;f=H[b+326848|0];J[a+376>>2]=f;if((b&254)==64){e=c+1|0;if((e|0)>=(g|0)){d=131;break i}f=2-P(K[e+i|0],f)|0;J[a+376>>2]=f}if((g|0)<(c+f|0)){d=131;break i}Ya:switch(b-88|0){case 1:break p;case 0:break Xa;default:break Ya}d=1;if((b|0)!=27)continue;break p}if((c| -0)>=(g|0)){d=131;break i}Za:{while(1){e=K[c+i|0];H[a+372|0]=e;f=H[e+326848|0];J[a+376>>2]=f;if((e&254)==64){b=c+1|0;if((b|0)>=(g|0)){d=131;break i}f=2-P(K[b+i|0],f)|0;J[a+376>>2]=f}b=c+f|0;if((b|0)>(g|0)){d=131;break i}if((e|0)!=27)switch(e-88|0){case 0:break Xa;case 1:break Za;default:continue Wa}J[a+364>>2]=b;c=b;if((b|0)<(g|0))continue;break}d=131;break i}d=d-1|0;if(d)continue;break p}d=d+1|0;continue}case 87:R=e,V=!(gc[J[a+572>>2]](a,J[e>>2],3)&127),J[R>>2]=V;break p;case 86:R=e,V=(gc[J[a+572>> -2]](a,J[e>>2],3)&127)==64,J[R>>2]=V;break p;case 85:J[e>>2]=J[e>>2]!=J[e+4>>2];break p;case 84:J[e>>2]=J[e>>2]==J[e+4>>2];break p;case 83:J[e>>2]=J[e>>2]>=J[e+4>>2];break p;case 82:J[e>>2]=J[e>>2]>J[e+4>>2];break p;case 81:J[e>>2]=J[e>>2]<=J[e+4>>2];break p;case 80:J[e>>2]=J[e>>2]>2];break p;case 78:H[a+320|0]=0;break p;case 77:H[a+320|0]=1;break p;case 76:if(J[J[J[a>>2]+96>>2]+64>>2]==35){R=e,V=gc[J[a+596>>2]](a)|0,J[R>>2]=V;break p}J[e>>2]=J[a+216>>2];break p;case 75:R=e,V=gc[J[a+596>>2]](a)| -0,J[R>>2]=V;break p;case 73:case 74:_a:{$a:{c=L[e>>1];if(c>>>0>1]){b=L[e+4>>1];if(b>>>0>1])break $a}b=0;if(!K[a+565|0])break _a;J[a+12>>2]=134;J[e>>2]=0;break p}if(h&1){c=J[a+52>>2]+(c<<3)|0;b=J[a+88>>2]+(b<<3)|0;R=e,V=gc[J[a+576>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[R>>2]=V;break p}if(!(L[a+350>>1]?L[a+348>>1]:0)){c=J[a+48>>2]+(c<<3)|0;b=J[a+84>>2]+(b<<3)|0;R=e,V=gc[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[R>>2]=V;break p}b=J[a+92>>2]+(b<<3)|0;c=J[a+ -56>>2]+(c<<3)|0;d=J[a+224>>2];if((d|0)==J[a+228>>2]){R=e,V=Pc(gc[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[a+224>>2]),J[R>>2]=V;break p}b=(V=a,S=Pc(J[c>>2]-J[b>>2]|0,d),T=Pc(J[c+4>>2]-J[b+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],gc[R](V|0,S|0,T|0)|0)}J[e>>2]=b;break p;case 72:b=L[e>>1];if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break p;d=134;break i}c=b<<3;d=c+J[a+124>>2]|0;d=gc[J[a+576>>2]](a,J[d>>2],J[d+4>>2])|0;gc[J[a+588>>2]](a,p,b,J[e+4>>2]-d|0);if(L[a+352>>1])break p;b=c+J[a+120>>2]| -0;c=c+J[a+124>>2]|0;d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;break p;case 70:case 71:b=J[e>>2];ab:{if(b>>>0>=L[a+116>>1]){b=0;if(!K[a+565|0])break ab;J[a+12>>2]=134;J[e>>2]=0;break p}if(h&1){b=J[a+120>>2]+(b<<3)|0;R=e,T=gc[J[a+580>>2]](a,J[b>>2],J[b+4>>2])|0,J[R>>2]=T;break p}b=J[a+124>>2]+(b<<3)|0;b=gc[J[a+576>>2]](a,J[b>>2],J[b+4>>2])|0}J[e>>2]=b;break p;case 69:b=J[e>>2];bb:{if(b>>>0>=M[a+384>>2]){b=0;if(!K[a+565|0])break bb;d=134;break i}b=gc[J[a+600>>2]](a,b)|0}J[e>>2]=b;break p;case 68:b=J[e>> -2];if(b>>>0>=M[a+384>>2]){if(!K[a+565|0])break p;d=134;break i}gc[J[a+604>>2]](a,b,J[e+4>>2]);break p;case 67:b=J[e>>2];cb:{if(b>>>0>=L[a+472>>1]){b=0;if(!K[a+565|0])break cb;d=134;break i}b=J[J[a+476>>2]+(b<<2)>>2]}J[e>>2]=b;break p;case 66:b=J[e>>2];if(b>>>0>=L[a+472>>1]){if(!K[a+565|0])break p;d=134;break i}J[J[a+476>>2]+(b<<2)>>2]=J[e+4>>2];break p;case 65:d=130;c=(b-J[a+16>>2]|0)+1|0;b=J[a+364>>2];f=K[(b+i|0)+1|0];if(c>>>0<=f>>>0)break i;J[a+364>>2]=b+2;if(f){b=0;if((f|0)!=1){d=f&254;c=0;while(1){g= -J[a+364>>2];J[a+364>>2]=g+2;h=b<<2;g=g+i|0;g=K[g|0]|K[g+1|0]<<8;J[h+e>>2]=(g<<8|g>>>8)<<16>>16;g=J[a+364>>2];J[a+364>>2]=g+2;g=g+i|0;g=K[g|0]|K[g+1|0]<<8;J[e+(h|4)>>2]=(g<<8|g>>>8)<<16>>16;b=b+2|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(f&1){c=J[a+364>>2];J[a+364>>2]=c+2;d=e+(b<<2)|0;b=c+i|0;b=K[b|0]|K[b+1|0]<<8;J[d>>2]=(b<<8|b>>>8)<<16>>16}g=J[a+32>>2]}H[a+380|0]=0;J[a+32>>2]=f+g;break p;case 64:d=130;c=K[(i+J[a+364>>2]|0)+1|0];if(c>>>0>=(b-J[a+16>>2]|0)+1>>>0)break i;if(c){d=e-4|0;b=1;if(c>>> -0>=4){g=c&252;f=0;while(1){h=b<<2;J[h+d>>2]=K[((i+J[a+364>>2]|0)+b|0)+1|0];J[e+h>>2]=K[((i+J[a+364>>2]|0)+b|0)+2|0];h=b+2|0;J[d+(h<<2)>>2]=K[(h+(i+J[a+364>>2]|0)|0)+1|0];h=b+3|0;J[d+(h<<2)>>2]=K[(h+(i+J[a+364>>2]|0)|0)+1|0];b=b+4|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}f=0;g=c&3;if(g)while(1){J[d+(b<<2)>>2]=K[((i+J[a+364>>2]|0)+b|0)+1|0];b=b+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}g=J[a+32>>2]}J[a+32>>2]=c+g;break p;case 62:case 63:db:{eb:{c=L[e>>1];if(c>>>0>1]){b=J[e+4>>2];if(b>>>0< -M[a+384>>2])break eb}if(!K[a+565|0])break db;J[a+12>>2]=134;break db}b=gc[J[a+600>>2]](a,b)|0;if(!L[a+348>>1]){f=I[a+302>>1];d=f>>31;e=(d^f)-d|0;d=b>>31;h=(d^b)-d|0;i=h>>>16|0;j=P(e,i);g=j<<16|8192;l=c<<3;d=l+J[a+48>>2]|0;n=g;q=e;e=h&65535;g=g+P(q,e)|0;g=(j>>>16|0)+(n>>>0>g>>>0)<<18|g>>>14;J[d>>2]=(b^f)<0?0-g|0:g;f=I[a+304>>1];g=f>>31;h=(f^g)-g|0;i=P(h,i);g=i<<16|8192;n=g;g=g+P(e,h)|0;g=(i>>>16|0)+(n>>>0>g>>>0)<<18|g>>>14;J[d+4>>2]=(b^f)<0?0-g|0:g;g=J[d+4>>2];f=l+J[a+52>>2]|0;J[f>>2]=J[d>>2];J[f+ -4>>2]=g}d=J[a+52>>2]+(c<<3)|0;d=gc[J[a+576>>2]](a,J[d>>2],J[d+4>>2])|0;if(H[a+372|0]&1){g=b-d|0;f=g>>31;b=gc[J[a+572>>2]](a,J[a+324>>2]<((f^g)-f|0)?d:b,3)|0}gc[J[a+588>>2]](a,m,c,b-d|0)}I[a+290>>1]=c;I[a+288>>1]=c;break p;case 61:J[a+572>>2]=1748;J[a+316>>2]=2;break p;case 60:f=J[a+308>>2];fb:{if(!(L[a+288>>1]>1]&(f|0)<=J[a+16>>2])){if(!K[a+565|0])break fb;J[a+12>>2]=134;break fb}if((f|0)<=0)break fb;while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];gb:{if(b>>>0>=L[a+80>>1]){b= -f;if(!K[a+565|0])break gb;d=134;break i}d=b;b=J[a+88>>2]+(b<<3)|0;c=J[a+52>>2]+(L[a+288>>1]<<3)|0;T=a,S=o,V=d,U=0-(gc[J[a+576>>2]](a,J[b>>2]-J[c>>2]|0,J[b+4>>2]-J[c+4>>2]|0)|0)|0,R=J[a+588>>2],gc[R](T|0,S|0,V|0,U|0);b=J[a+308>>2]}f=b-1|0;J[a+308>>2]=f;if((b|0)>1)continue;break}c=J[a+28>>2]}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 58:case 59:hb:{b=L[e>>1];if(b>>>0>1]){c=L[a+288>>1];if(c>>>0>1])break hb}if(!K[a+565|0])break p;d=134;break i}if(!L[a+350>>1]){c=J[a+48>>2]+(c<<3)|0;g=J[c+ -4>>2];d=b<<3;f=d+J[a+84>>2]|0;J[f>>2]=J[c>>2];J[f+4>>2]=g;gc[J[a+592>>2]](a,o,b,J[e+4>>2]);c=d+J[a+88>>2]|0;d=d+J[a+84>>2]|0;f=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=f;c=L[a+288>>1]}d=J[a+88>>2]+(b<<3)|0;c=J[a+52>>2]+(c<<3)|0;c=gc[J[a+576>>2]](a,J[d>>2]-J[c>>2]|0,J[d+4>>2]-J[c+4>>2]|0)|0;gc[J[a+588>>2]](a,o,b,J[e+4>>2]-c|0);I[a+292>>1]=b;I[a+290>>1]=L[a+288>>1];if(!(H[a+372|0]&1))break p;I[a+288>>1]=b;break p;case 57:ib:{jb:{b=J[a+308>>2];kb:{if((b|0)>J[a+16>>2]){if(K[a+565|0])break kb;break ib}c=1; -c=!L[a+348>>1]|!L[a+350>>1]?c:!L[a+352>>1];e=L[a+290>>1];if(e>>>0>1])break jb;if(!K[a+565|0])break ib}J[a+12>>2]=134;break ib}h=J[(c?48:56)+a>>2];n=e<<3;d=n;g=h+d|0;l=J[a+52>>2];i=l+d|0;d=0;f=0;j=L[a+292>>1];if(j>>>0>1]){lb:{if(c){b=J[a+84>>2]+(j<<3)|0;f=gc[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[(h+n|0)+4>>2]|0)|0;break lb}b=J[a+224>>2];if((b|0)==J[a+228>>2]){b=J[a+92>>2]+(j<<3)|0;f=gc[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[(h+(e<<3)|0)+4>>2]|0)|0;break lb}f=(U=a,V=Pc(J[J[a+ -92>>2]+(j<<3)>>2]-J[g>>2]|0,b),S=Pc(J[(J[a+92>>2]+(L[a+292>>1]<<3)|0)+4>>2]-J[(h+(e<<3)|0)+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],gc[R](U|0,V|0,S|0)|0)}b=J[a+88>>2]+(L[a+292>>1]<<3)|0;d=gc[J[a+576>>2]](a,J[b>>2]-J[i>>2]|0,J[b+4>>2]-J[(l+(e<<3)|0)+4>>2]|0)|0;b=J[a+308>>2]}if((b|0)<=0)break ib;e=e<<3;j=e+l|0;e=e+h|0;if(c)while(1){c=J[a+28>>2]-1|0;J[a+28>>2]=c;c=J[J[a+24>>2]+(c<<2)>>2];mb:{if(c>>>0>=L[a+116>>1]){if(!K[a+565|0])break mb;d=134;break i}h=c<<3;b=h+J[a+120>>2]|0;b=gc[J[a+580>>2]](a,J[b>>2]-J[g>> -2]|0,J[b+4>>2]-J[e+4>>2]|0)|0;h=h+J[a+124>>2]|0;h=gc[J[a+576>>2]](a,J[h>>2]-J[i>>2]|0,J[h+4>>2]-J[j+4>>2]|0)|0;n=a;c=c&65535;if(!(!b|!f))b=Dd(b,d,f);gc[J[a+588>>2]](n,p,c,b-h|0);b=J[a+308>>2]}c=b;b=c-1|0;J[a+308>>2]=b;if((c|0)>1)continue;break ib}while(1){c=J[a+28>>2]-1|0;J[a+28>>2]=c;c=J[J[a+24>>2]+(c<<2)>>2];nb:{if(c>>>0>=L[a+116>>1]){if(!K[a+565|0])break nb;d=134;break i}b=J[a+224>>2];ob:{if((b|0)==J[a+228>>2]){b=J[a+128>>2]+(c<<3)|0;b=gc[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[e+4>>2]|0)| -0;break ob}h=c<<3;b=(S=a,V=Pc(J[h+J[a+128>>2]>>2]-J[g>>2]|0,b),U=Pc(J[(h+J[a+128>>2]|0)+4>>2]-J[e+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],gc[R](S|0,V|0,U|0)|0)}h=J[a+124>>2]+(c<<3)|0;h=gc[J[a+576>>2]](a,J[h>>2]-J[i>>2]|0,J[h+4>>2]-J[j+4>>2]|0)|0;n=a;c=c&65535;if(!(!b|!f))b=Dd(b,d,f);gc[J[a+588>>2]](n,p,c,b-h|0);b=J[a+308>>2]}c=b;b=c-1|0;J[a+308>>2]=b;if((c|0)>1)continue;break}}J[a+308>>2]=1;J[a+32>>2]=J[a+28>>2];break p;case 56:f=0;f=!L[a+348>>1]|!L[a+350>>1]?f:L[a+352>>1]!=0;b=J[a+308>>2];pb:{if((b|0)>= -J[a+16>>2]){if(!K[a+565|0])break pb;J[a+12>>2]=134;break pb}if((b|0)<=0)break pb;c=I[a+304>>1];d=c>>31;b=J[e>>2];g=b>>31;e=(c^d)-d|0;g=(b^g)-g|0;h=g>>>16|0;i=P(e,h);d=i<<16|8192;n=d;g=g&65535;d=d+P(g,e)|0;d=(i>>>16|0)+(n>>>0>d>>>0)<<18|d>>>14;e=(b^c)<0?0-d|0:d;c=I[a+302>>1];d=c>>31;i=h;h=(c^d)-d|0;i=P(i,h);d=i<<16|8192;n=d;d=d+P(g,h)|0;d=(i>>>16|0)+(n>>>0>d>>>0)<<18|d>>>14;c=(b^c)<0?0-d|0:d;while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];qb:{if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break qb; -d=134;break i}rb:{sb:{tb:{ub:{if(J[J[J[a>>2]+96>>2]+64>>2]==40){if(K[a+615|0]){vb:{if(!f)break vb;if(K[a+617|0]?K[a+616|0]:0)break qb;if(L[a+304>>1]?K[a+564|0]:0)break vb;if(!(K[b+J[a+132>>2]|0]&16))break qb}if(L[a+302>>1]){d=b+J[a+132>>2]|0;H[d|0]=K[d|0]|8}if(!L[a+304>>1])break qb;if(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40|(!K[a+616|0]|!K[a+617|0]))break sb;break rb}if(L[a+302>>1])break ub;break tb}if(!L[a+302>>1])break tb}d=J[a+124>>2]+(b<<3)|0;J[d>>2]=c+J[d>>2];d=b+J[a+132>>2]|0;H[d|0]=K[d|0]| -8}if(!L[a+304>>1])break qb;if(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40))break sb;if(K[a+617|0])break rb}d=J[a+124>>2]+(b<<3)|0;J[d+4>>2]=e+J[d+4>>2]}b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|16}b=J[a+308>>2];J[a+308>>2]=b-1;if((b|0)>1)continue;break}c=J[a+28>>2]}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 54:case 55:if(M[e>>2]>=2){if(!K[a+565|0])break p;J[a+12>>2]=134;break p}if(wL(a,k+4|0,k,k+12|0,k+10|0))break p;wb:{xb:switch(L[a+352>>1]){case 0:c=L[a+116>>1];break wb;case 1:break xb;default:break p}b= -I[a+118>>1];if((b|0)<=0)break p;c=L[(J[a+136>>2]+((b&65535)<<1)|0)-2>>1]+1|0}d=c&65535;if(!d)break p;e=J[k>>2];h=J[k+4>>2];f=J[a+124>>2];if((f|0)==J[k+28>>2]){b=0;c=L[k+10>>1];while(1){yb:{if((b|0)==(c|0))break yb;if(!(!L[a+302>>1]|(K[a+615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0))){g=f+(b<<3)|0;J[g>>2]=h+J[g>>2]}if(!L[a+304>>1])break yb;if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break yb;g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2]}b=b+1|0;if((d|0)!=(b|0))continue;break}break p}b= -L[a+302>>1];if(!L[a+304>>1]){if(!b)break p;g=J[J[J[a>>2]+96>>2]+64>>2];b=0;d=c&65535;if((d|0)!=1){e=d&65534;d=0;while(1){if(!(K[a+615|0]?(g|0)==40:0)){i=f+(b<<3)|0;J[i>>2]=h+J[i>>2]}if(!(K[a+615|0]?(g|0)==40:0)){i=f+((b|1)<<3)|0;J[i>>2]=h+J[i>>2]}b=b+2|0;d=d+2|0;if((e|0)!=(d|0))continue;break}}if(!(c&1)|(K[a+615|0]?(g|0)==40:0))break p;b=f+(b<<3)|0;J[b>>2]=h+J[b>>2];break p}d=J[J[J[a>>2]+96>>2]+64>>2];if(!b){if((d|0)!=40){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>> -2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if(!K[a+615|0]){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+ -4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if(!K[a+616|0]){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0; -if((c|0)!=(d|0))continue;break}break p}if(K[a+617|0])break p;d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if((d|0)==40){c=c&65535;d=K[a+615|0];b=0;while(1){zb:{Ab:{if(!d){g=f+(b<<3)|0; -J[g>>2]=h+J[g>>2];break Ab}if(!K[a+616|0])break Ab;if(K[a+617|0])break zb}g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2]}b=b+1|0;if((c|0)!=(b|0))continue;break}break p}d=0;b=c&65535;if((b|0)!=1){i=b&65534;g=0;while(1){j=d<<3;b=j+f|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>>2];b=f+(j|8)|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>>2];d=d+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break p;b=f+(d<<3)|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>>2];break p;case 52:case 53:b=J[e>>2];c=b<<16>>16;if(c>>>0>=(L[a+352>>1]? -I[a+118>>1]:1)>>>0){if(!K[a+565|0])break p;J[a+12>>2]=134;break p}if(wL(a,k+4|0,k,k+12|0,k+10|0))break p;if(b<<16)b=(L[(J[a+136>>2]+(c<<1)|0)-2>>1]-L[a+140>>1]|0)+1|0;else b=0;b=b&65535;if(L[a+352>>1])c=(L[J[a+136>>2]+(c<<1)>>1]-L[a+140>>1]|0)+1|0;else c=L[a+116>>1];c=c&65535;if(b>>>0>=c>>>0)break p;d=L[k+10>>1];f=J[k>>2];g=J[k+4>>2];e=J[k+28>>2];while(1){h=J[a+124>>2];Bb:{if((h|0)==(e|0)&(b|0)==(d|0))break Bb;if(L[a+302>>1]){if(!(K[a+615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0)){h=h+(b<<3)|0;J[h>>2]= -g+J[h>>2]}h=J[a+132>>2]+b|0;H[h|0]=K[h|0]|8}if(!L[a+304>>1])break Bb;Cb:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Cb;h=J[a+124>>2]+(b<<3)|0;J[h+4>>2]=f+J[h+4>>2]}h=J[a+132>>2]+b|0;H[h|0]=K[h|0]|16}b=b+1|0;if((c|0)!=(b|0))continue;break}break p;case 50:case 51:Db:{if(J[a+16>>2]>2]){if(!K[a+565|0])break Db;J[a+12>>2]=134;break Db}if(wL(a,k+4|0,k,k+12|0,k+10|0))break p;if(J[a+308>>2]<=0)break Db;c=J[k>>2];d=J[k+4>>2];while(1){b=J[a+28>>2]-1|0;J[a+28>> -2]=b;b=L[J[a+24>>2]+(b<<2)>>1];Eb:{if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break Eb;J[a+12>>2]=134;break p}if(L[a+302>>1]){if(!(K[a+615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0)){f=J[a+124>>2]+(b<<3)|0;J[f>>2]=d+J[f>>2]}f=b+J[a+132>>2]|0;H[f|0]=K[f|0]|8}if(!L[a+304>>1])break Eb;Fb:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Fb;f=J[a+124>>2]+(b<<3)|0;J[f+4>>2]=c+J[f+4>>2]}b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|16}b=J[a+308>>2];J[a+308>>2]=b-1;if((b|0)>1)continue;break}}J[a+ -308>>2]=1;J[a+32>>2]=J[a+28>>2];break p;case 48:case 49:Gb:{if(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)break Gb;if(K[a+617|0]?K[a+616|0]:0)break p;if(h&1){H[a+616|0]=1;break Gb}H[a+617|0]=1}if(!L[a+154>>1])break p;q=J[a+156>>2];Hb:{if(h&1){r=J[a+164>>2];w=8;j=J[a+160>>2];break Hb}q=q+4|0;r=J[a+164>>2]+4|0;w=16;j=J[a+160>>2]+4|0}J[k+20>>2]=r;J[k+16>>2]=j;J[k+12>>2]=q;A=L[a+152>>1];J[k+24>>2]=A;v=0;f=0;while(1){l=f;b=L[J[a+172>>2]+(v<<1)>>1]-L[a+176>>1]|0;c=L[a+152>>1];s=b>>>0>>0?b:c-1|0;Ib:{if(s>>> -0>>0)break Ib;b=J[a+168>>2];u=0;g=f;Jb:{while(1){Kb:{f=g+1|0;if(K[b+g|0]&w){d=g;c=d;Lb:{Mb:{b=f;D=s>>>0>>0;if(!D){while(1){e=c;n=d;d=b;Nb:{if(!(K[J[a+168>>2]+b|0]&w))break Nb;c=b;b=e+1|0;if(n>>>0>>0|c>>>0>=A>>>0|e>>>0>=A>>>0)break Nb;h=J[(c<<3)+r>>2];i=J[(e<<3)+r>>2];Ob:{if((h|0)>=(i|0)){c=h;h=i;i=d;break Ob}c=i;i=e;e=d}t=i<<3;i=J[t+j>>2];B=J[q+t>>2];E=i-B|0;t=e<<3;e=J[t+j>>2];C=J[q+t>>2];F=e-C|0;Pb:{if(!((c|0)==(h|0)|(e|0)==(i|0))){N=c-h|0;O=i-e|0;i=0;t=0;while(1){c=b<<3;Q=c+j|0;c=J[c+q>> -2];Qb:{if((c|0)<=(C|0)){z=c+F|0;break Qb}z=c+E|0;if((c|0)>=(B|0))break Qb;if(!i)t=td(O,N);i=1;z=Pc(J[(b<<3)+r>>2]-h|0,t)+e|0}J[Q>>2]=z;b=b+1|0;if(n>>>0>=b>>>0)continue;break}break Pb}while(1){h=b<<3;c=J[h+q>>2];J[h+j>>2]=(c|0)>(C|0)?(c|0)<(B|0)?e:c+E|0:c+F|0;b=b+1|0;if(n>>>0>=b>>>0)continue;break}}c=d}b=d+1|0;if(s>>>0>=b>>>0)continue;break}if((c|0)!=(g|0))break Mb}c=g<<3;d=J[c+j>>2];c=J[c+q>>2];if((d|0)==(c|0))break Jb;e=d-c|0;if(g>>>0<=l>>>0)break Kb;d=0;c=u&3;if(c)while(1){h=j+(l<<3)|0;J[h>>2]= -e+J[h>>2];l=l+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}if(u-1>>>0>2)break Lb;break Kb}d=k+12|0;n4(d,c+1&65535,s,c,g);if(!g)break Jb;n4(d,l,g-1|0,c,g);break Jb}while(1){c=j+(l<<3)|0;J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];J[c+16>>2]=e+J[c+16>>2];J[c+24>>2]=e+J[c+24>>2];l=l+4|0;if((l|0)!=(g|0))continue;break}break Kb}u=u+1|0;g=f;if(s>>>0>=f>>>0)continue;break Ib}break}if(D)break Jb;while(1){c=j+(f<<3)|0;J[c>>2]=e+J[c>>2];f=f+1|0;if(s>>>0>=f>>>0)continue;break}}f=b}v=v+1|0;if((v|0)>1])continue; -break}break p;case 46:case 47:b=L[e>>1];if(b>>>0>=L[a+44>>1]){if(!K[a+565|0])break p;d=134;break i}if(h&1){c=J[a+52>>2]+(b<<3)|0;c=gc[J[a+576>>2]](a,J[c>>2],J[c+4>>2])|0;c=(gc[J[a+572>>2]](a,c,3)|0)-c|0}else c=0;gc[J[a+588>>2]](a,m,b,c);I[a+290>>1]=b;I[a+288>>1]=b;break p;case 79:break i;case 45:break q}c=J[a+432>>2];if((c|0)<=0){d=136;break i}b=c-1|0;J[a+432>>2]=b;b=J[a+440>>2]+(b<<4)|0;d=J[b+8>>2];J[b+8>>2]=d-1;H[a+380|0]=0;if((d|0)>=2){J[a+432>>2]=c;J[a+364>>2]=J[J[b+12>>2]+4>>2];break p}c=J[b>> -2];if(c-4>>>0<4294967293){d=132;break i}d=(c-1<<3)+a|0;f=J[d+448>>2];if(!f){d=138;break i}d=J[d+452>>2];b=J[b+4>>2];if((d|0)<(b|0)){d=131;break i}J[a+368>>2]=d;J[a+360>>2]=f;J[a+364>>2]=b;J[a+356>>2]=c}b=J[a+12>>2]}if(b){d=128;if((b|0)!=128)break h;b=J[a+420>>2];if(!b)break i;c=J[a+412>>2];if((c|0)<=0)break i;c=P(c,24)+b|0;while(1){Rb:{if(!(!K[b+16|0]|K[a+372|0]!=K[b+12|0])){c=J[a+432>>2];if((c|0)>=J[a+436>>2]){d=134;break i}c=J[a+440>>2]+(c<<4)|0;J[c>>2]=J[a+356>>2];d=J[a+364>>2];J[c+12>>2]=b;J[c+ -8>>2]=1;J[c+4>>2]=d+1;f=J[b>>2];if(f-4>>>0<4294967293){d=132;break i}d=(f-1<<3)+a|0;g=J[d+448>>2];if(!g){d=138;break i}c=J[b+4>>2];d=J[d+452>>2];if((c|0)<=(d|0))break Rb;d=131;break i}b=b+24|0;if(c>>>0>b>>>0)continue;break i}break}J[a+368>>2]=d;J[a+360>>2]=g;J[a+364>>2]=c;J[a+356>>2]=f;break l}J[a+16>>2]=J[a+32>>2];if(!K[a+380|0])break m}J[a+364>>2]=J[a+364>>2]+J[a+376>>2]}G=G+1|0;if(G>>>0>1E6){b=139;break h}d=J[a+368>>2];c=J[a+364>>2]}if((c|0)>=(d|0)){b=0;d=131;if(J[a+432>>2]>0)break i;break h}if(!K[a+ -492|0])continue;break}b=0;break h}J[a+12>>2]=d;b=d}bc=k+48|0;return b|0}function ULa(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,u=0,v=0,w=0,x=0,y=0,z=0;s=bc-16|0;bc=s;a:{b:{c:{d:{if(!a)break d;if(!(K[a+204|0]&64)){J[a+216>>2]=0;m=bc-16|0;bc=m;d=J[a+464>>2];e:{f:{g:{g=J[a+460>>2];if(g){if(!d)break g;if(x=jA(m+12|0,g,d),y=0,z=J[m+12>>2]-105001>>>0>=4294957295,z?x:y)break f;d=J[a+208>>2]|8192;break e}if(d){x=a,y=Bv(d),J[x+460>>2]=y;break f}J[a+460>> -2]=1E5;J[a+464>>2]=1E5;break f}x=a,y=Bv(g),J[x+464>>2]=y}d=J[a+208>>2]&-8193}J[a+208>>2]=d;if((d&262272)==262144){I[a+394>>1]=0;d=d&-41943297;J[a+208>>2]=d;J[a+204>>2]=J[a+204>>2]&-8193}h:{if(d&256){if(K[a+401|0]&2)break h;J[a+200>>2]=J[a+200>>2]|2048;break h}if((d&16512)!=16512)break h;g=L[a+426>>1];if((g|0)!=L[a+428>>1]|(g|0)!=L[a+430>>1])break h;I[a+432>>1]=g;J[a+200>>2]=J[a+200>>2]|2048}f=L[a+394>>1];i:{j:{k:{l:{g=K[a+401|0];if((g|0)==3){if(!f)break l;h=J[a+504>>2];g=0;while(1){i=K[g+h|0];if((i| -0)!=255){if(i)break j;e=1}g=g+1|0;if((f|0)!=(g|0))continue;break}d=d&-8388609;J[a+208>>2]=d;J[a+204>>2]=J[a+204>>2]&-8193;if(e)break j;break k}if(!(f|g&4)){d=d&-385;J[a+208>>2]=d}if(g&2|(d&4352)!=4352)break i;e=L[a+516>>1];g=L[a+432>>1];m:{n:switch(K[a+402|0]-1|0){case 0:e=P(e,255);g=P(g,255);break m;case 1:e=P(e,85);g=P(g,85);break m;case 3:break n;default:break m}e=P(e,17);g=P(g,17)}I[a+428>>1]=g;I[a+430>>1]=g;I[a+426>>1]=g;if(d&33554432)break i;I[a+512>>1]=e;I[a+514>>1]=e;I[a+510>>1]=e;break i}J[a+ -204>>2]=J[a+204>>2]&-8193;d=d&-8388609}d=d&-8388993;J[a+208>>2]=d}if((d&4352)!=4352)break i;e=J[a+388>>2]+P(K[a+424|0],3)|0;I[a+426>>1]=K[e|0];I[a+428>>1]=K[e+1|0];I[a+430>>1]=K[e+2|0];if(!f|(d&34078720)!=524288)break i;d=0;g=0;if(f>>>0>=4){h=f&65532;e=0;while(1){i=J[a+504>>2]+g|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|1)|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|2)|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|3)|0;H[i|0]=K[i|0]^-1;g=g+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}e=f&3;if(e)while(1){f=J[a+504>>2]+g|0; -H[f|0]=K[f|0]^-1;g=g+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}d=J[a+208>>2]}e=L[a+428>>1]|L[a+430>>1]<<16;g=L[a+424>>1]|L[a+426>>1]<<16;I[a+434>>1]=g;I[a+436>>1]=g>>>16;I[a+438>>1]=e;I[a+440>>1]=e>>>16;I[a+442>>1]=L[a+432>>1];o:{p:{q:{if(d&8192)break q;if(d&6291456){if(J[a+460>>2]-105001>>>0<4294957295|J[a+464>>2]-105001>>>0<4294957295)break q;d=J[a+208>>2]}r:{if(!(d&128))break r;if(J[a+460>>2]-105001>>>0<4294957295|J[a+464>>2]-105001>>>0<4294957295)break q;if(K[a+418|0]!=3)break r;if(J[a+420>> -2]-105001>>>0<4294957295)break q}d=J[a+208>>2];if(J[a+464>>2]-105001>>>0<4294957295?d&8388608:0)break q;if(!(d&128)|K[a+401|0]!=3)break o;l=L[a+394>>1];if(l){f=K[a+430|0];h=K[a+428|0];i=K[a+426|0];k=J[a+388>>2];g=0;while(1){j=J[a+504>>2]+g|0;e=K[j|0];s:{if((e|0)==255)break s;if(!e){d=k+P(g,3)|0;H[d+2|0]=f;H[d+1|0]=h;H[d|0]=i;break s}d=k+P(g,3)|0;e=(P(i,e^255)+P(e,K[d|0])|0)+128|0;H[d|0]=e+((e&65280)>>>8|0)>>>8;e=K[j|0];e=(P(h,e^255)+P(e,K[d+1|0])|0)+128|0;H[d+1|0]=((e&65280)>>>8|0)+e>>>8;o=d;e=K[j| -0];d=(P(f,e^255)+P(e,K[d+2|0])|0)+128|0;H[o+2|0]=((d&65280)>>>8|0)+d>>>8}g=g+1|0;if((l|0)!=(g|0))continue;break}d=J[a+208>>2]}d=d&-129;break p}d=K[a+402|0];if(J[a+468>>2]|J[a+472>>2]){Yc(a,63983);QW(a)}t:{if(d>>>0<=8){d=J[a+464>>2];u:{if((d|0)<=0){g=1E5;break u}e=J[a+460>>2];v:{if(!e)break v;p=V(1E15/+(e|0)/+(d|0)+.5);d=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!d)break v;if(p>=-2147483648)break u}g=0}e=_g(a,256);J[a+468>>2]=e;w:{if(g-95E3>>>0<10001){g=0;while(1){H[e+g|0]=g;d=g| -1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]=d;g=g+8|0;if((g|0)!=256)continue;break}break w}v=+(g|0)*1E-5;g=0;while(1){f=e+g|0;x:{if(g-1>>>0<=253){p=V(We(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break x}d=0;break x}d=g}H[f|0]=d;g=g+1|0;if((g|0)!=256)continue;break}}if(!(J[a+208>>2]&6291584))break t;d=J[a+460>>2];y:{z:{if(!d)break z;p=V(1E10/+(d|0)+.5);d=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!d)break z; -if(p>=-2147483648)break y}g=0}e=_g(a,256);J[a+480>>2]=e;A:{if(g-95E3>>>0<10001){g=0;while(1){H[e+g|0]=g;d=g|1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]=d;g=g+8|0;if((g|0)!=256)continue;break}break A}v=+(g|0)*1E-5;g=0;while(1){f=e+g|0;B:{if(g-1>>>0<=253){p=V(We(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break B}d=0;break B}d=g}H[f|0]=d;g=g+1|0;if((g|0)!=256)continue;break}}d=J[a+464>>2];C:{if((d|0)>0){p=V(1E10/+(d|0)+ -.5);e=p>=-2147483648;if(R(p)<2147483648)d=~~p;else d=-2147483648;d=p<=2147483647?e?d:0:0;break C}d=J[a+460>>2]}e=_g(a,256);J[a+476>>2]=e;if(d-95E3>>>0<10001){g=0;while(1){H[e+g|0]=g;d=g|1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]=d;g=g+8|0;if((g|0)!=256)continue;break}break t}v=+(d|0)*1E-5;g=0;while(1){f=e+g|0;D:{if(g-1>>>0<=253){p=V(We(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break D}d=0;break D}d=g}H[f|0]=d;g=g+ -1|0;if((g|0)!=256)continue;break}break t}d=a;i=d;E:{if(K[d+401|0]&2){e=K[d+494|0];g=K[d+493|0];f=K[d+492|0];g=f>>>0>>0?g:f;e=e>>>0>g>>>0?e:g;break E}e=K[a+495|0]}d=(e-1&255)>>>0<15?16-e|0:0;e=d&255;g=J[a+208>>2]&67109888;d=(g?e>>>0<=5?5:e:d)&255;d=d>>>0>=8?8:d;J[i+456>>2]=d;e=J[a+464>>2];F:{G:{if(g){if((e|0)<=0)p=1;else{p=V(+J[a+460>>2]*1E-5*+(e|0)+.5);g=p>=-2147483648;if(R(p)<2147483648)e=~~p;else e=-2147483648;p=p<=2147483647?g?+(e|0)*1E-5:0:0}e=8-d|0;h=Hv(a,4<>2]=h;g=0;while(1){x= -h+(g<<2)|0,y=_g(a,512),J[x>>2]=y;g=g+1|0;if(!(g>>>e|0))continue;break}i=255>>>d|0;n=16-d|0;g=0;while(1){k=P(j,257);v=V(We(+((k&65535)+128>>>0)/65535,p)*65535+.5);H:{if(v<4294967296&v>=0){f=~~v>>>0;break H}f=0}f=f&65535;l=(((f<>>0)/65535|0;if(l>>>0>=g>>>0){f=0;q=l-g|0;r=q+1&3;if(r)while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=k;g=g+1|0;f=f+1|0;if((r|0)!=(f|0))continue;break}if(q>>>0>=3)while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=k;f=g+1|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=k;f=g+2| -0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=k;f=g+3|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=k;g=g+4|0;if((f|0)!=(l|0))continue;break}g=l+1|0}j=j+1|0;if((j|0)!=255)continue;break}break G}f=a+472|0;I:{if((e|0)<=0){g=1E5;break I}g=J[a+460>>2];J:{if(!g)break J;p=V(1E15/+(g|0)/+(e|0)+.5);e=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!e)break J;if(p>=-2147483648)break I}g=0}hH(a,f,d,g);break F}k=256<>>0<=g>>>0)break F;f=0;j=k+(g^-1)|0;l=0-g&3;if(l)while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<< -1)>>1]=65535;g=g+1|0;f=f+1|0;if((l|0)!=(f|0))continue;break}if(j>>>0<3)break F;while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=65535;f=g+1|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;f=g+2|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;f=g+3|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;g=g+4|0;if((k|0)!=(g|0))continue;break}}if(!(J[a+208>>2]&6291584))break t;e=a+488|0;g=J[a+460>>2];K:{L:{if(!g)break L;p=V(1E10/+(g|0)+.5);f=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!f)break L;if(p>=-2147483648)break K}g= -0}hH(a,e,d,g);e=a;f=a+484|0;g=J[a+464>>2];M:{if((g|0)>0){p=V(1E10/+(g|0)+.5);h=p>=-2147483648;if(R(p)<2147483648)g=~~p;else g=-2147483648;g=p<=2147483647?h?g:0:0;break M}g=J[a+460>>2]}hH(e,f,d,g)}d=J[a+208>>2];if(d&128){if(d&6291456)Yc(a,59258);if(K[a+401|0]==3){j=L[a+392>>1];k=J[a+388>>2];d=1E5;g=1E5;N:{O:{P:switch(K[a+418|0]-1|0){case 1:d=J[a+480>>2];f=L[a+430>>1];g=K[d+f|0];l=L[a+428>>1];e=K[l+d|0];n=L[a+426>>1];d=K[n+d|0];h=J[a+468>>2];i=K[h+f|0];f=K[h+l|0];h=K[h+n|0];break N;case 0:g=J[a+464>> -2];break O;case 2:break P;default:break O}g=Bv(J[a+420>>2]);d=iH(J[a+420>>2],J[a+464>>2])}h=L[a+426>>1];Q:{if(d-105001>>>0<4294957295){h=Ws(h,d);f=Ws(L[a+428>>1],d);i=Ws(L[a+430>>1],d);break Q}f=K[a+428|0];i=K[a+430|0]}d=L[a+426>>1];if(g-105001>>>0<4294957295){d=Ws(d,g);e=Ws(L[a+428>>1],g);g=Ws(L[a+430>>1],g);break N}g=K[a+430|0];e=K[a+428|0]}if(j){q=g&255;r=e&255;t=d&255;g=0;while(1){R:{S:{if(L[a+394>>1]<=g>>>0)break S;l=J[a+504>>2]+g|0;e=K[l|0];if((e|0)==255)break S;if(!e){d=k+P(g,3)|0;H[d+2|0]= -i;H[d+1|0]=f;H[d|0]=h;break R}n=J[a+480>>2];d=k+P(g,3)|0;e=(P(t,e^255)+P(e,K[n+K[d|0]|0])|0)+128|0;o=e+(e>>>8&255)>>>8&255;e=J[a+476>>2];H[d|0]=K[o+e|0];o=K[l|0];o=(P(r,o^255)+P(o,K[n+K[d+1|0]|0])|0)+128|0;H[d+1|0]=K[e+((o>>>8&255)+o>>>8&255)|0];o=d;l=K[l|0];d=(P(q,l^255)+P(l,K[n+K[d+2|0]|0])|0)+128|0;H[o+2|0]=K[e+((d>>>8&255)+d>>>8&255)|0];break R}d=k+P(g,3)|0;e=J[a+468>>2];H[d|0]=K[e+K[d|0]|0];H[d+1|0]=K[e+K[d+1|0]|0];H[d+2|0]=K[e+K[d+2|0]|0]}g=g+1|0;if((j|0)!=(g|0))continue;break}}d=J[a+208>>2]& --8321;break p}T:{U:switch(K[a+418|0]-1|0){case 1:g=Bv(J[a+460>>2]);d=iH(J[a+460>>2],J[a+464>>2]);break T;case 2:g=Bv(J[a+420>>2]);d=iH(J[a+420>>2],J[a+464>>2]);break T;default:Ad(a,59463);B();case 0:break U}g=J[a+464>>2];d=1E5}f=d-105001>>>0<4294957295;h=g-105001>>>0<4294957295;if(h)x=a,y=dp(a,L[a+432>>1],g),I[x+442>>1]=y;if(f)x=a,y=dp(a,L[a+432>>1],d),I[x+432>>1]=y;e=L[a+426>>1];V:{if(!(!((e|0)!=L[a+428>>1]|(e|0)!=L[a+430>>1])&(e|0)==L[a+432>>1])){if(h){x=a,y=dp(a,e,g),I[x+436>>1]=y;x=a,y=dp(a,L[a+ -428>>1],g),I[x+438>>1]=y;x=a,y=dp(a,L[a+430>>1],g),I[x+440>>1]=y}if(!f)break V;x=a,y=dp(a,L[a+426>>1],d),I[x+426>>1]=y;x=a,y=dp(a,L[a+428>>1],d),I[x+428>>1]=y;x=a,y=dp(a,L[a+430>>1],d),I[x+430>>1]=y;break V}I[a+430>>1]=e;I[a+428>>1]=e;I[a+426>>1]=e;d=L[a+442>>1];I[a+440>>1]=d;I[a+438>>1]=d;I[a+436>>1]=d}H[a+418|0]=1;d=J[a+208>>2];break o}if(K[a+401|0]!=3|(d&6291456?d&4096:0))break o;h=L[a+392>>1];if(h){i=J[a+388>>2];f=J[a+468>>2];e=0;while(1){g=i+P(e,3)|0;H[g|0]=K[f+K[g|0]|0];H[g+1|0]=K[f+K[g+1|0]| -0];H[g+2|0]=K[f+K[g+2|0]|0];e=e+1|0;if((h|0)!=(e|0))continue;break}}d=d&-8193}J[a+208>>2]=d}W:{if((d&4104)!=8|K[a+401|0]!=3)break W;J[a+208>>2]=d&-9;f=L[a+392>>1];d=K[a+492|0];X:{if(!f|(d-1&255)>>>0>6)break X;e=8-d|0;h=J[a+388>>2];d=0;g=0;if(f>>>0>=4){k=f&65532;i=0;while(1){j=h+P(g,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|1,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|2,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|3,3)|0;H[j|0]=K[j|0]>>>e;g=g+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}i=f&3;if(!i)break X;while(1){k=h+P(g,3)|0;H[k|0]= -K[k|0]>>>e;g=g+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}d=K[a+493|0];Y:{if(!f|(d-1&255)>>>0>6)break Y;e=8-d|0;h=J[a+388>>2];d=0;g=0;if(f>>>0>=4){k=f&65532;i=0;while(1){j=h+P(g,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|1,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|2,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|3,3)|0;H[j+1|0]=K[j+1|0]>>>e;g=g+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}i=f&3;if(!i)break Y;while(1){k=h+P(g,3)|0;H[k+1|0]=K[k+1|0]>>>e;g=g+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}d=K[a+494|0];if(!f|(d-1& -255)>>>0>6)break W;h=8-d|0;i=J[a+388>>2];e=0;g=0;if(f>>>0>=4){k=f&65532;d=0;while(1){j=i+P(g,3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|1,3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|2,3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|3,3)|0;H[j+2|0]=K[j+2|0]>>>h;g=g+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}d=f&3;if(!d)break W;while(1){f=i+P(g,3)|0;H[f+2|0]=K[f+2|0]>>>h;g=g+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}bc=m+16|0;Z:{if(K[a+398|0]){d=J[a+324>>2];g=J[a+208>>2];J[a+328>>2]=g&2?d:d+7>>>3|0;h=J[a+320>>2];d=K[a+399|0]; -e=K[d+68824|0];J[a+340>>2]=((h+e|0)+(K[d+68817|0]^-1)>>>0)/(e>>>0);break Z}J[a+328>>2]=J[a+324>>2];h=J[a+320>>2];J[a+340>>2]=h;g=J[a+208>>2]}e=K[a+404|0];e=g&4?K[a+402|0]<8?8:e:e;d=e&255;f=g&4096;_:{if(!f)break _;$:switch(K[a+401|0]){case 3:d=L[a+394>>1]?32:24;break _;case 0:d=(d>>>0<=8?8:d)<<(L[a+394>>1]!=0);break _;case 2:break $;default:break _}if(!L[a+394>>1])break _;d=((e&255)<<2>>>0)/3|0}e=g&32768;aa:{if(!e)break aa;ba:switch(K[a+401|0]){case 0:d=d>>>0<9?16:32;break aa;case 2:case 3:break ba; -default:break aa}d=d>>>0>32?64:32}ca:{if(!(g&16384))break ca;da:{if(!((f|0)!=0&L[a+394>>1]!=0|e)){e=K[a+401|0];if((e|0)!=4)break da}d=d>>>0<17?32:64;break ca}if(d>>>0<=8){d=(e|0)==6?32:24;break ca}d=(e|0)==6?64:48}if(g&1048576){e=P(K[a+197|0],K[a+196|0]);d=d>>>0>>0?e:d}H[a+409|0]=0;H[a+408|0]=d;e=h+7&-8;d=((d+7>>>3|0)+(d>>>0>7?P(e,d>>>3|0):P(d,e)>>>3|0)|0)+49|0;if(d>>>0>M[a+736>>2]){rd(a,J[a+680>>2]);rd(a,J[a+748>>2]);ea:{if(K[a+398|0]){e=Hv(a,d);break ea}e=_g(a,d)}J[a+680>>2]=e;e=_g(a,d);J[a+ -748>>2]=e;J[a+736>>2]=d;J[a+352>>2]=e+31;J[a+356>>2]=J[a+680>>2]+31}d=J[a+336>>2];if((d|0)==-1){Ad(a,68831);B()}wc(J[a+352>>2],0,d+1|0);J[a+204>>2]=J[a+204>>2]|64}g=J[a+340>>2];J[s+4>>2]=g;H[s+12|0]=K[a+401|0];H[s+13|0]=K[a+402|0];H[s+14|0]=K[a+405|0];e=K[a+404|0];H[s+15|0]=e;h=e>>>0>=8?P(g,e>>>3|0):P(e,g)+7>>>3|0;J[s+8>>2]=h;fa:{if(!K[a+398|0]|!(K[a+208|0]&2))break fa;d=J[a+344>>2];ga:switch(K[a+399|0]){case 0:if(!(d&7))break fa;if(c)Om(a,c,1);ap(a);break d;case 1:if(!(d&7)&M[a+320>>2]>4)break fa; -if(c)Om(a,c,1);ap(a);break d;case 2:if((d&7)==4)break fa;if(!(!c|!(d&4)))Om(a,c,1);ap(a);break d;case 3:if(!(d&3)&M[a+320>>2]>2)break fa;if(c)Om(a,c,1);ap(a);break d;case 4:if((d&3)==2)break fa;if(!(!c|!(d&2)))Om(a,c,1);ap(a);break d;case 5:if(!(d&1)&M[a+320>>2]>1)break fa;if(c)Om(a,c,1);ap(a);break d;default:break ga}if(d&1)break fa;ap(a);break d}if(!(K[a+200|0]&4))break c;J[a+224>>2]=J[a+356>>2];f=a+212|0;J[a+228>>2]=(e>>>0>=8?P(g,e>>>3|0):P(e,g)+7>>>3|0)+1;while(1){if(!J[a+216>>2]){g=J[a+380>> -2];ha:{while(1){if(g)break ha;Ld(a,0);g=dA(a);J[a+380>>2]=g;if(J[a+348>>2]==1229209940)continue;break}Ad(a,59526);B()}d=J[a+272>>2];J[a+216>>2]=d;e=J[a+268>>2];J[a+212>>2]=e;if(d>>>0>g>>>0){J[a+216>>2]=g;d=g}if(a){qg(a,e,d);pe(a,e,d)}J[a+380>>2]=J[a+380>>2]-J[a+216>>2]}d=zk(f,1);ia:{if(d){if((d|0)==1){if(J[a+228>>2]|J[a+216>>2]|J[a+380>>2])EH(a,59859);J[a+200>>2]=J[a+200>>2]|8;J[a+204>>2]=J[a+204>>2]|32;break ia}b=a;a=J[a+236>>2];Ad(b,a?a:59955);B()}if(J[a+228>>2])continue}break}g=J[a+356>>2];d=K[g| -0];if(d){if(d>>>0>4)break b;e=J[a+352>>2]+1|0;d=d-1|0;if(d>>>0<=3){if(!J[a+752>>2]){J[a+752>>2]=506;J[a+760>>2]=507;J[a+756>>2]=508;J[a+764>>2]=(K[a+404|0]+7&504)==8?509:510}gc[J[((d<<2)+a|0)+752>>2]](s+4|0,g+1|0,e)}h=J[s+8>>2];g=J[a+356>>2]}tc(J[a+352>>2],g,h+1|0);if(!(!(K[a+660|0]&4)|K[a+664|0]!=64)){d=J[a+356>>2]+1|0;h=K[s+12|0];ja:{if(!(h&2))break ja;g=J[s+4>>2];ka:switch(K[s+13|0]-8|0){case 0:e=3;la:switch(h-2|0){case 4:e=4;break;case 0:break la;default:break ja}if(!g)break ja;if((g|0)!=1){i= -g&-2;h=0;while(1){f=K[d+1|0];H[d|0]=f+K[d|0];H[d+2|0]=f+K[d+2|0];d=d+e|0;f=K[d+1|0];H[d+2|0]=f+K[d+2|0];H[d|0]=f+K[d|0];d=d+e|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(g&1))break ja;e=K[d+1|0];H[d|0]=e+K[d|0];H[d+2|0]=e+K[d+2|0];break ja;case 8:break ka;default:break ja}f=6;ma:switch(h-2|0){case 4:f=8;break;case 0:break ma;default:break ja}if(!g)break ja;e=0;while(1){h=K[d+3|0]|K[d+2|0]<<8;i=h+(K[d+5|0]|K[d+4|0]<<8)|0;H[d+5|0]=i;h=h+(K[d+1|0]|K[d|0]<<8)|0;H[d+1|0]=h;H[d+4|0]=i>>>8;H[d|0]=h>>> -8;d=d+f|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}}d=J[a+208>>2];if(d)na:{g=s+4|0;oa:{pa:{qa:{e=J[a+356>>2];if(e){if((J[a+204>>2]&16448)==16384)break qa;ra:{if(!(d&4096))break ra;f=K[g+8|0];if((f|0)==3){k=e+1|0;j=J[a+388>>2];t=J[a+504>>2];n=L[a+394>>1];sa:{if((f|0)!=3)break sa;e=J[g>>2];d=K[g+9|0];ta:{if(d>>>0<=7){ua:{va:switch(d-1|0){case 0:if(!e)break ua;h=e+k|0;d=0-e&7;i=e-1|0;f=k+(i>>>3|0)|0;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&1;h=h-2|0;o=f;f=(d|0)==7;l=o-f|0;d=f?0:d+1|0;H[h|0]=K[l| -0]>>>d&1;f=(d|0)==7;d=f?0:d+1|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&1;break ua;case 1:if(!e)break ua;h=e+k|0;i=e-1|0;f=k+(i>>>2|0)|0;d=((e<<1)+6^-1)&6;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&3;h=h-2|0;o=f;f=(d|0)==6;l=o-f|0;d=f?0:d+2|0;H[h|0]=K[l|0]>>>d&3;f=(d|0)==6;d=f?0:d+2|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&3;break ua;case 3:break va;default:break ua}if(!e)break ua;h=e+k|0;d=e<<2&4;i= -e-1|0;f=k+(i>>>1|0)|0;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&15;h=h-2|0;o=f;f=(d|0)==4;l=o-f|0;d=f?0:d+4|0;H[h|0]=K[l|0]>>>d&15;f=(d|0)==4;d=f?0:d+4|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&15}H[g+11|0]=8;H[g+9|0]=8;J[g+4>>2]=e;break ta}if((d|0)!=8)break sa}wa:{if(n){m=e<<2;q=4;r=6;l=32;if(!e)break wa;d=e+k|0;h=k+m|0;i=0;while(1){o=h-1|0;d=d-1|0;f=K[d|0];if((f|0)<(n|0))f=K[f+t|0];else f=255;H[o|0]=f;H[h-2|0]=K[(j+P(K[d|0],3)|0)+2|0];H[h-3|0]= -K[(j+P(K[d|0],3)|0)+1|0];h=h-4|0;H[h|0]=K[j+P(K[d|0],3)|0];i=i+1|0;if((e|0)!=(i|0))continue;break}break wa}q=3;m=P(e,3);r=2;l=24;if(!e)break wa;d=e+k|0;h=k+m|0;f=0;while(1){d=d-1|0;H[h-1|0]=K[(j+P(K[d|0],3)|0)+2|0];H[h-2|0]=K[(j+P(K[d|0],3)|0)+1|0];h=h-3|0;H[h|0]=K[j+P(K[d|0],3)|0];f=f+1|0;if((e|0)!=(f|0))continue;break}}H[g+11|0]=l;H[g+9|0]=8;H[g+10|0]=q;H[g+8|0]=r;J[g+4>>2]=m}break ra}e=e+1|0;if(!(!(d&33554432)|!L[a+394>>1])){cV(g,e,a+508|0);break ra}cV(g,e,0)}d=J[a+208>>2];xa:{if((d&262272)!=262144)break xa; -ya:switch(K[g+8|0]-4|0){case 0:case 2:break ya;default:break xa}eH(g,J[a+356>>2]+1|0,0);d=J[a+208>>2]}za:{if(!(d&6291456))break za;d=J[a+356>>2]+1|0;f=0;e=0;k=0;l=0;h=K[g+8|0];if((h&3)==2){q=h&4;j=L[a+656>>1];m=L[a+658>>1];n=32768-(j+m|0)|0;i=J[g>>2];Aa:{if(K[g+9|0]==8){if(!(!J[a+476>>2]|!J[a+480>>2])){if(!i)break Aa;f=d;while(1){h=K[d|0];l=K[d+1|0];r=K[d+2|0];Ba:{Ca:{if(!((h|0)==(l|0)&(r|0)==(h|0))){k=1;o=h;h=J[a+480>>2];h=J[a+476>>2]+(((P(j,K[o+h|0])+P(m,K[h+l|0])|0)+P(n,K[h+r|0])|0)+16384>>>15| -0)|0;break Ca}l=J[a+468>>2];if(!l)break Ba;h=h+l|0}h=K[h|0]}H[f|0]=h;Da:{if(!q){f=f+1|0;d=d+3|0;break Da}H[f+1|0]=K[d+3|0];f=f+2|0;d=d+4|0}e=e+1|0;if((i|0)!=(e|0))continue;break}break Aa}if(!i)break Aa;if(!q){h=d;while(1){e=K[d|0];l=K[d+1|0];q=K[d+2|0];if(!((e|0)==(l|0)&(q|0)==(e|0))){k=1;e=(P(l,m)+P(e,j)|0)+P(n,q)>>>15|0}d=d+3|0;H[h|0]=e;h=h+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}break Aa}e=d;while(1){h=K[d|0];l=K[d+1|0];q=K[d+2|0];if(!((h|0)==(l|0)&(q|0)==(h|0))){k=1;h=(P(l,m)+P(h,j)|0)+P(n, -q)>>>15|0}H[e|0]=h;H[e+1|0]=K[d+3|0];e=e+2|0;d=d+4|0;f=f+1|0;if((i|0)!=(f|0))continue;break}break Aa}if(!(!J[a+488>>2]|!J[a+484>>2])){if(!i)break Aa;h=d;while(1){f=K[d+1|0];w=K[d|0];r=f|w<<8;o=K[d+3|0];t=K[d+2|0];e=K[d+4|0]|K[d+5|0]<<8;e=e<<8|e>>>8;Ea:{Fa:{if(!((r|0)!=(o|t<<8)|(r|0)!=(e&65535))){e=J[a+472>>2];if(!e)break Ea;f=L[J[e+(o>>>J[a+456>>2]<<2)>>2]+(t<<1)>>1];break Fa}k=1;w=J[a+488>>2];f=J[a+456>>2];e=((P(j,L[J[w+((r&255)>>>f<<2)>>2]+(r>>>7&510)>>1])+P(m,L[J[w+(o>>>f<<2)>>2]+(t<<1)>>1])|0)+ -P(n,L[J[w+((e&255)>>>f<<2)>>2]+(e>>>7&510)>>1])|0)+16384|0;f=L[J[J[a+484>>2]+((e>>>15&255)>>>f<<2)>>2]+(e>>>22&510)>>1]}w=f>>>8|0}H[h+1|0]=f;H[h|0]=w;Ga:{if(!q){h=h+2|0;d=d+6|0;break Ga}H[h+2|0]=K[d+6|0];H[h+3|0]=K[d+7|0];h=h+4|0;d=d+8|0}l=l+1|0;if((i|0)!=(l|0))continue;break}break Aa}if(!i)break Aa;e=d;while(1){h=K[e+1|0]|K[e|0]<<8;l=K[e+3|0]|K[e+2|0]<<8;r=K[e+5|0]|K[e+4|0]<<8;t=((P(h,j)+P(l,m)|0)+P(r,n)|0)+16384|0;H[d+1|0]=t>>>15;H[d|0]=t>>>23;k=(h|0)!=(r|0)?1:k;h=(h|0)==(l|0);Ha:{if(!q){e=e+6| -0;d=d+2|0;break Ha}H[d+2|0]=K[e+6|0];H[d+3|0]=K[e+7|0];e=e+8|0;d=d+4|0}k=h?k:1;f=f+1|0;if((i|0)!=(f|0))continue;break}}d=K[g+10|0]-2|0;H[g+10|0]=d;H[g+8|0]=K[g+8|0]&253;d=P(d,K[g+9|0]);H[g+11|0]=d;d=d&255;Ia:{if(d>>>0>=8){d=P(i,d>>>3|0);break Ia}d=P(d,i)+7>>>3|0}J[g+4>>2]=d}d=J[a+208>>2];if(!k)break za;H[a+653|0]=1;if((d&6291456)==4194304){Yc(a,60353);d=J[a+208>>2]}if((d&6291456)==2097152)break pa}if(!(!(d&16384)|K[a+201|0]&8)){aV(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&128){d=J[a+356>>2]+1|0;m=J[a+ -204>>2]&8192;k=J[g>>2];e=J[a+456>>2];l=J[a+488>>2];n=J[a+484>>2];i=J[a+472>>2];h=J[a+480>>2];j=J[a+476>>2];f=J[a+468>>2];Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:switch(K[g+8|0]){case 0:Wa:switch(K[g+9|0]-1|0){case 0:if(!k)break Ja;f=0;h=7;while(1){e=K[d|0];if(L[a+516>>1]==(e>>>h&1)){e=e&32639>>>7-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>>h&3;Xa:{if((m|0)==L[a+ -516>>1]){j=e&16191>>>6-h;H[d|0]=j;e=L[a+432>>1];break Xa}j=e&16191>>>6-h;e=K[f+P(m,85)|0]>>>6|0}H[d|0]=e<>>h&15;Ya:{if((m|0)==L[a+516>>1]){j=e&3855>>>4-h;H[d|0]=j;e=L[a+432>>1];break Ya}j=e&3855>>>4-h;e=K[f+P(m,17)|0]>>>4|0}H[d|0]=e<>1])e=K[a+432|0];else e=K[e+f|0];H[d|0]=e;e=K[d+1|0];Za:{if((e|0)!=L[a+516>>1]){e=K[e+f|0];break Za}e=K[a+432|0]}H[d+1|0]=e;d=d+2|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(k&1))break Ja;e=K[d|0];if((e|0)==L[a+516>>1])break Ua;H[d|0]=K[e+f|0];break Ja;case 15:break Wa;default:break Ja}if(!i)break Na;if(!k)break Ja;f=0;while(1){j=K[d+1|0];h=K[d|0];_a:{if(L[a+516>>1]==(j|h<<8)){H[d|0]=K[a+433|0];j=K[a+432|0];break _a}j=L[J[i+(j>>>e<<2)>>2]+(h<<1)>>1];H[d| -0]=j>>>8}H[d+1|0]=j;d=d+2|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja;case 2:if(K[g+9|0]==8){if(!f)break Oa;if(!k)break Ja;i=0;while(1){h=K[d|0];e=K[d+1|0];$a:{if(!((h|0)!=L[a+510>>1]|(e|0)!=L[a+512>>1]|L[a+514>>1]!=K[d+2|0])){H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0];break $a}H[d|0]=K[f+h|0];H[d+1|0]=K[e+f|0];H[d+2|0]=K[f+K[d+2|0]|0]}d=d+3|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!i)break Pa;if(!k)break Ja;h=0;while(1){f=K[d+4|0];j=K[d+5|0];q=K[d+1|0];n=K[d|0];l= -K[d+3|0];m=K[d+2|0];ab:{if(!(L[a+510>>1]!=(q|n<<8)|L[a+512>>1]!=(l|m<<8)|L[a+514>>1]!=(j|f<<8))){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];f=K[a+430|0];break ab}n=L[J[i+(q>>>e<<2)>>2]+(n<<1)>>1];n=n<<8|n>>>8;H[d|0]=n;H[d+1|0]=n>>>8;m=L[J[i+(l>>>e<<2)>>2]+(m<<1)>>1];m=m<<8|m>>>8;H[d+2|0]=m;H[d+3|0]=m>>>8;f=L[J[i+(j>>>e<<2)>>2]+(f<<1)>>1];H[d+4|0]=f>>>8}H[d+5|0]=f;d=d+6|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja;case 4:if(K[g+9|0]==8){if(!(f? -!h|!j:1))break Qa;if(!k)break Ja;f=0;while(1){e=K[d+1|0];if((e|0)!=255){if(e){e=(P(L[a+432>>1],e^255)+P(e,K[d|0])|0)+128&65535;e=(e>>>8|0)+e>>>8|0}else e=K[a+432|0];H[d|0]=e}d=d+2|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja}if(!(l?!i|!n:1))break Ra;if(!k)break Ja;f=0;while(1){e=K[d+3|0]|K[d+2|0]<<8;bb:{if((e|0)==65535)break bb;if(!e){H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break bb}e=(P(L[a+432>>1],e^65535)+P(e,K[d+1|0]|K[d|0]<<8)|0)+32768|0;e=(e>>>16|0)+e|0;H[d+1|0]=e>>>16;H[d|0]=e>>>24}d=d+ -4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja;case 6:break Va;default:break Ja}if(K[g+9|0]==8){if(!(f?!h|!j:1))break Sa;if(!k)break Ja;f=0;while(1){e=K[d+3|0];cb:{if((e|0)==255)break cb;if(!e){H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0];break cb}h=e^255;i=(P(e,K[d|0])+P(h,L[a+426>>1])|0)+128|0;H[d|0]=(i>>>8&255)+i>>>8;i=(P(e,K[d+1|0])+P(h,L[a+428>>1])|0)+128|0;H[d+1|0]=(i>>>8&255)+i>>>8;e=(P(e,K[d+2|0])+P(h,L[a+430>>1])|0)+128|0;H[d+2|0]=(e>>>8&255)+e>>>8}d=d+4|0;f=f+1|0;if((k| -0)!=(f|0))continue;break}break Ja}if(!(l?!i|!n:1))break Ta;if(!k)break Ja;f=0;while(1){e=K[d+7|0]|K[d+6|0]<<8;db:{if((e|0)==65535)break db;if(!e){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0];break db}h=e^65535;i=(P(e,K[d+1|0]|K[d|0]<<8)+P(h,L[a+426>>1])|0)+32768|0;i=(i>>>16|0)+i|0;H[d+1|0]=i>>>16;H[d|0]=i>>>24;i=(P(e,K[d+3|0]|K[d+2|0]<<8)+P(h,L[a+428>>1])|0)+32768|0;i=(i>>>16|0)+i|0;H[d+2|0]=i>>>24;H[d+3|0]=i>>>16;e=(P(e,K[d+ -5|0]|K[d+4|0]<<8)+P(h,L[a+430>>1])|0)+32768|0;e=(e>>>16|0)+e|0;H[d+4|0]=e>>>24;H[d+5|0]=e>>>16}d=d+8|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja}H[d|0]=K[a+432|0];break Ja}if(!k)break Ja;h=0;while(1){eb:{fb:{q=K[d+7|0]|K[d+6|0]<<8;if(q){if((q|0)!=65535)break fb;f=L[J[i+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+(K[d+3|0]>>>e<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>e<<2)>>2]+(K[d+4|0]<<1)>>1];f=f<<8|f>>>8;H[d+ -4|0]=f;H[d+5|0]=f>>>8;break eb}H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0];break eb}r=q^65535;f=(P(q,L[J[l+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1])+P(r,L[a+436>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j=L[J[n+((j&255)>>>e<<2)>>2]+(f<<1)>>1];f=j>>>8|0}H[d+1|0]=j;H[d|0]=f;f=(P(q,L[J[l+(K[d+3|0]>>>e<<2)>>2]+(K[d+2|0]<<1)>>1])+P(r,L[a+438>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j=L[J[n+((j& -255)>>>e<<2)>>2]+(f<<1)>>1];f=j>>>8|0}H[d+3|0]=j;H[d+2|0]=f;f=(P(q,L[J[l+(K[d+5|0]>>>e<<2)>>2]+(K[d+4|0]<<1)>>1])+P(r,L[a+440>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j=L[J[n+((j&255)>>>e<<2)>>2]+(f<<1)>>1];f=j>>>8|0}H[d+5|0]=j;H[d+4|0]=f}d=d+8|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;i=0;while(1){gb:{hb:{l=K[d+3|0];if(l){if((l|0)!=255)break hb;H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];break gb}H[d|0]=K[a+426|0];H[d+1|0]=K[a+ -428|0];H[d+2|0]=K[a+430|0];break gb}n=l^255;e=(P(l,K[h+K[d|0]|0])+P(n,L[a+436>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!m)e=K[j+(e&255)|0];H[d|0]=e;e=(P(l,K[h+K[d+1|0]|0])+P(n,L[a+438>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!m)e=K[j+(e&255)|0];H[d+1|0]=e;e=(P(l,K[h+K[d+2|0]|0])+P(n,L[a+440>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!m)e=K[j+(e&255)|0];H[d+2|0]=e}d=d+4|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!k)break Ja;h=0;while(1){ib:{jb:{f=K[d+3|0]|K[d+2|0]<<8;if(f){if((f|0)!=65535)break jb; -f=L[J[i+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;break ib}H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break ib}f=(P(f,L[J[l+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1])+P(L[a+442>>1],f^65535)|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>16|0;if(m)j=j>>>24|0;else{f=L[J[n+((f&255)>>>e<<2)>>2]+(j>>>23&510)>>1];j=f>>>8|0}H[d+1|0]=f;H[d|0]=j}d=d+4|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;i=0;while(1){kb:{lb:{e=K[d+1|0];if(e){if((e|0)!=255)break lb;e=K[f+K[d|0]|0];break kb}e= -K[a+432|0];break kb}e=(P(L[a+442>>1],e^255)+P(e,K[h+K[d|0]|0])|0)+128&65535;e=(e>>>8|0)+e>>>8|0;if(m)break kb;e=K[j+(e&255)|0]}H[d|0]=e;d=d+2|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!k)break Ja;h=0;while(1){if(!(L[a+510>>1]!=(K[d+1|0]|K[d|0]<<8)|L[a+512>>1]!=(K[d+3|0]|K[d+2|0]<<8)|L[a+514>>1]!=(K[d+5|0]|K[d+4|0]<<8))){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0]}d=d+6|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja; -h=0;while(1){if(!(L[a+510>>1]!=K[d|0]|L[a+512>>1]!=K[d+1|0]|L[a+514>>1]!=K[d+2|0])){H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0]}d=d+3|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;if((k|0)!=1){e=k&-2;h=0;while(1){if(L[a+516>>1]==(K[d+1|0]|K[d|0]<<8)){H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0]}if(L[a+516>>1]==(K[d+3|0]|K[d+2|0]<<8)){H[d+2|0]=K[a+433|0];H[d+3|0]=K[a+432|0]}d=d+4|0;h=h+2|0;if((e|0)!=(h|0))continue;break}}if(!(k&1)|L[a+516>>1]!=(K[d+1|0]|K[d|0]<<8))break Ja; -H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break Ja}if(!k)break Ja;if((k|0)!=1){e=k&-2;h=0;while(1){if(L[a+516>>1]==K[d|0])H[d|0]=K[a+432|0];if(L[a+516>>1]==K[d+1|0])H[d+1|0]=K[a+432|0];d=d+2|0;h=h+2|0;if((e|0)!=(h|0))continue;break}}if(!(k&1)|L[a+516>>1]!=K[d|0])break Ja;H[d|0]=K[a+432|0];break Ja}if(!k)break Ja;f=0;h=4;while(1){e=K[d|0];if(L[a+516>>1]==(e>>>h&15)){e=e&3855>>>4-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>1]==(e>>>h&3)){e=e&16191>>>6-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>2]}mb:{if((d&6299648)!=8192)break mb;nb:{if(!(d&128)){e=K[a+401|0];break nb}if(L[a+394>>1])break mb;e=K[a+401|0];if(e&4)break mb}if((e|0)==3)break mb;d=J[a+356>>2]+1|0;l=0;h=J[g>>2];k=J[a+456>>2];i=J[a+472>>2];e=K[g+9|0];f=J[a+468>>2];ob:{if(!(f?e>>>0<=8:0)&(!i|(e|0)!=16))break ob;pb:{qb:{rb:switch(K[g+8|0]){case 2:if((e|0)!=8){if(!h)break ob; -e=0;while(1){f=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>k<<2)>>2]+(K[d+4|0]<<1)>>1];f=f<<8|f>>>8;H[d+4|0]=f;H[d+5|0]=f>>>8;d=d+6|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob}if(!h)break ob;if((h|0)!=1){i=h&-2;e=0;while(1){H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+3|0]=K[f+K[d+3|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+5| -0]=K[f+K[d+5|0]|0];d=d+6|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}break qb;case 6:if((e|0)!=8){if(!h)break ob;e=0;while(1){f=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>k<<2)>>2]+(K[d+4|0]<<1)>>1];f=f<<8|f>>>8;H[d+4|0]=f;H[d+5|0]=f>>>8;d=d+8|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob}if(!h)break ob;if((h|0)!=1){i=h&-2;e=0;while(1){H[d|0]=K[f+K[d|0]| -0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+5|0]=K[f+K[d+5|0]|0];H[d+6|0]=K[f+K[d+6|0]|0];d=d+8|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}break qb;case 4:if((e|0)!=8){if(!h)break ob;if((h|0)!=1){f=h&-2;e=0;while(1){j=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];j=j<<8|j>>>8;H[d|0]=j;H[d+1|0]=j>>>8;j=L[J[i+(K[d+5|0]>>>k<<2)>>2]+(K[d+4|0]<<1)>>1];j=j<<8|j>>>8;H[d+4|0]=j;H[d+5|0]=j>>>8;d=d+8|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}break pb}if(!h)break ob;if(h-1>>> -0>=3){i=h&-4;e=0;while(1){H[d|0]=K[f+K[d|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+6|0]=K[f+K[d+6|0]|0];d=d+8|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}h=h&3;if(!h)break ob;e=0;while(1){H[d|0]=K[f+K[d|0]|0];d=d+2|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob;case 0:break rb;default:break ob}sb:{tb:{ub:{if(!(!h|(e|0)!=2)){e=d;while(1){j=K[e|0];m=j&48;o=K[f+(m<<2|m>>>2|m>>>4|m)|0]>>>2&48;m=j&192;o=o|K[f+(j>>>6|m>>>4|m>>>2|m)|0]&192;m=j&12;H[e|0]=o|K[f+(P(m,20)|m>>>2|m)|0]>>>4& -12|K[f+P(j&3,85)|0]>>>6;e=e+1|0;l=l+4|0;if(h>>>0>l>>>0)continue;break}e=K[g+9|0]}switch(e-4|0){case 0:break sb;case 4:break tb;case 12:break ub;default:break ob}}if(!h)break ob;if((h|0)!=1){f=h&-2;e=0;while(1){j=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];j=j<<8|j>>>8;H[d|0]=j;H[d+1|0]=j>>>8;j=L[J[i+(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];j=j<<8|j>>>8;H[d+2|0]=j;H[d+3|0]=j>>>8;d=d+4|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}break pb}if(!h)break ob;if(h-1>>>0>=3){i=h&-4;e=0;while(1){H[d|0]=K[f+K[d| -0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+3|0]=K[f+K[d+3|0]|0];d=d+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}h=h&3;if(!h)break ob;e=0;while(1){H[d|0]=K[f+K[d|0]|0];d=d+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob}if(!h)break ob;e=0;while(1){i=K[d|0];H[d|0]=K[f+P(i&15,17)|0]>>>4|K[f+(i&240|i>>>4)|0]&240;d=d+1|0;e=e+2|0;if(h>>>0>e>>>0)continue;break}break ob}if(!(h&1))break ob;H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];break ob}if(!(h&1))break ob; -e=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];e=e<<8|e>>>8;H[d|0]=e;H[d+1|0]=e>>>8}d=J[a+208>>2]}vb:{if((d&262272)!=262272)break vb;wb:switch(K[g+8|0]-4|0){case 0:case 2:break wb;default:break vb}eH(g,J[a+356>>2]+1|0,0);d=J[a+208>>2]}if(d&64){d=J[a+356>>2]+1|0;i=J[a+588>>2];e=J[a+592>>2];xb:{if(K[g+9|0]!=8)break xb;h=J[g>>2];yb:{zb:{Ab:{Bb:{Cb:{f=K[g+8|0];if(!(!i|(f|0)!=2)){if(!h)break Cb;f=0;e=d;while(1){H[e|0]=K[i+(K[d+1|0]<<2&992|K[d|0]<<7&31744|K[d+2|0]>>>3)|0];e=e+1|0;d=d+3|0;f=f+1|0;if((h|0)!= -(f|0))continue;break}H[g+10|0]=1;H[g+8|0]=3;d=K[g+9|0];H[g+11|0]=d;if(d>>>0>=8)break zb;break yb}if(!(!i|(f|0)!=6)){if(!h)break Bb;f=0;e=d;while(1){H[e|0]=K[i+(K[d+1|0]<<2&992|K[d|0]<<7&31744|K[d+2|0]>>>3)|0];e=e+1|0;d=d+4|0;f=f+1|0;if((h|0)!=(f|0))continue;break}H[g+10|0]=1;H[g+8|0]=3;d=K[g+9|0];H[g+11|0]=d;if(d>>>0>=8)break Ab;break yb}if(!h|(!e|(f|0)!=3))break xb;if(h>>>0>=4){i=h&-4;f=0;while(1){H[d|0]=K[e+K[d|0]|0];H[d+1|0]=K[e+K[d+1|0]|0];H[d+2|0]=K[e+K[d+2|0]|0];H[d+3|0]=K[e+K[d+3|0]|0];d=d+ -4|0;f=f+4|0;if((i|0)!=(f|0))continue;break}}h=h&3;if(!h)break xb;f=0;while(1){H[d|0]=K[e+K[d|0]|0];d=d+1|0;f=f+1|0;if((h|0)!=(f|0))continue;break}break xb}I[g+10>>1]=2049;H[g+8|0]=3;d=8;break zb}I[g+10>>1]=2049;H[g+8|0]=3;d=8}J[g+4>>2]=P(h,d>>>3|0);break xb}J[g+4>>2]=P(h,d>>>3|0);break xb}J[g+4>>2]=P(d,h)+7>>>3}if(!J[g+4>>2])break oa;d=J[a+208>>2]}if(!(!(d&16384)|!(K[a+201|0]&8))){aV(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&32){rW(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&8){d=J[a+356>>2]+1|0;e=bc-16|0; -i=K[g+8|0];Db:{if((i|0)==3)break Db;h=K[g+9|0];Eb:{if(i&2){k=K[a+497|0];J[e+4>>2]=h-K[a+498|0];J[e+8>>2]=h-K[a+499|0];f=3;break Eb}k=K[a+500|0];f=1}J[e>>2]=h-k;if(i&4){J[(e|f<<2)>>2]=h-K[a+501|0];f=f+1|0}k=J[e>>2];i=(k|0)<(h|0)&(k|0)>0;J[e>>2]=i?k:0;Fb:{if((f|0)==1)break Fb;k=J[e+4>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+4>>2]=j?k:0;i=j?1:i;if((f|0)==2)break Fb;k=J[e+8>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+8>>2]=j?k:0;i=j?1:i;if((f|0)==3)break Fb;k=J[e+12>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+12>>2]=j?k:0;i=j?1:i}if(!i)break Db; -Gb:switch(h<<31|h-2>>>1){case 0:e=J[g+4>>2];if((e|0)<=0)break Db;e=d+e|0;while(1){H[d|0]=K[d|0]>>>1&85;d=d+1|0;if(e>>>0>d>>>0)continue;break}break Db;case 1:f=J[g+4>>2];if((f|0)<=0)break Db;e=J[e>>2];h=P(15>>>e|0,17);f=d+f|0;while(1){H[d|0]=h&K[d|0]>>>e;d=d+1|0;if(f>>>0>d>>>0)continue;break}break Db;case 3:h=J[g+4>>2];if((h|0)<=0)break Db;i=d+h|0;h=0;while(1){H[d|0]=K[d|0]>>>J[e+(h<<2)>>2];h=h+1|0;h=(f|0)>(h|0)?h:0;d=d+1|0;if(i>>>0>d>>>0)continue;break}break Db;case 7:break Gb;default:break Db}h= -J[g+4>>2];if((h|0)<=0)break Db;i=d+h|0;h=0;while(1){k=(K[d+1|0]|K[d|0]<<8)>>>J[e+(h<<2)>>2]|0;k=k<<8|k>>>8;H[d|0]=k;H[d+1|0]=k>>>8;h=h+1|0;h=(f|0)>(h|0)?h:0;d=d+2|0;if(i>>>0>d>>>0)continue;break}}d=J[a+208>>2]}if(d&4){f=J[a+356>>2]+1|0;e=K[g+9|0];if(e>>>0<=7){d=J[g>>2];Hb:{Ib:switch(e-1|0){case 0:if(!d)break Hb;h=d+f|0;e=0-d&7;i=d-1|0;f=f+(i>>>3|0)|0;if(i){k=d&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>e&1;h=h-2|0;j=f;f=(e|0)==7;j=j-f|0;e=f?0:e+1|0;H[h|0]=K[j|0]>>>e&1;f=(e|0)==7;e=f?0:e+1|0;f=j-f|0;i=i+2| -0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&1;break Hb;case 1:if(!d)break Hb;h=d+f|0;i=d-1|0;f=f+(i>>>2|0)|0;e=((d<<1)+6^-1)&6;if(i){k=d&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>e&3;h=h-2|0;j=f;f=(e|0)==6;j=j-f|0;e=f?0:e+2|0;H[h|0]=K[j|0]>>>e&3;f=(e|0)==6;e=f?0:e+2|0;f=j-f|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&3;break Hb;case 3:break Ib;default:break Hb}if(!d)break Hb;h=d+f|0;e=d<<2&4;i=d-1|0;f=f+(i>>>1|0)|0;if(i){k=d&-2;i=0;while(1){H[h- -1|0]=K[f|0]>>>e&15;h=h-2|0;j=f;f=(e|0)!=0;j=j-f|0;m=!e;H[h|0]=K[j|0]>>>(m<<2)&15;e=f<<2;f=j-m|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&15}H[g+9|0]=8;e=K[g+10|0];H[g+11|0]=e<<3;J[g+4>>2]=P(d,e)}d=J[a+208>>2]}if(d&1){mW(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&65536){oW(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&32768){d=J[a+356>>2]+1|0;f=J[a+204>>2];h=0;k=L[a+416>>1];e=k>>>8|0;i=J[g>>2];Jb:{Kb:{Lb:switch(K[g+8|0]){case 0:Mb:switch(K[g+9|0]-8|0){case 0:if(f&128){f=d+ -i|0;d=i+f|0;m=2;Nb:{if(i>>>0<2)break Nb;e=i-1|0;h=e&3;if(i-2>>>0>=3){j=e&-4;e=0;while(1){H[d-1|0]=k;l=K[f-1|0];H[d-3|0]=k;H[d-2|0]=l;l=K[f-2|0];H[d-5|0]=k;H[d-4|0]=l;l=K[f-3|0];H[d-7|0]=k;H[d-6|0]=l;d=d-8|0;f=f-4|0;H[d|0]=K[f|0];e=e+4|0;if((j|0)!=(e|0))continue;break}}if(!h)break Nb;e=0;while(1){H[d-1|0]=k;d=d-2|0;f=f-1|0;H[d|0]=K[f|0];e=e+1|0;if((h|0)!=(e|0))continue;break}}H[d-1|0]=k;j=1;l=16;break Kb}j=1;l=16;m=2;if(!i)break Kb;n=i&3;f=d+i|0;d=i+f|0;Ob:{if(i>>>0<4){e=d;break Ob}q=i&-4;while(1){e= -K[f-1|0];H[d-2|0]=k;H[d-1|0]=e;e=K[f-2|0];H[d-4|0]=k;H[d-3|0]=e;e=K[f-3|0];H[d-6|0]=k;H[d-5|0]=e;f=f-4|0;r=K[f|0];e=d-8|0;H[e|0]=k;H[d-7|0]=r;d=e;h=h+4|0;if((q|0)!=(h|0))continue;break}}if(!n)break Kb;d=0;while(1){f=f-1|0;j=K[f|0];h=e-2|0;H[h|0]=k;H[e-1|0]=j;j=1;e=h;d=d+1|0;if((n|0)!=(d|0))continue;break}break Kb;case 8:break Mb;default:break Jb}if(f&128){f=d;d=i<<1;f=f+d|0;d=f+d|0;m=2;Pb:{if(i>>>0<2)break Pb;h=i-1|0;j=h&1;if((i|0)!=2){l=h&-2;h=0;while(1){H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];n= -K[f-2|0];H[d-5|0]=k;H[d-4|0]=n;H[d-6|0]=e;H[d-7|0]=K[f-3|0];d=d-8|0;f=f-4|0;H[d|0]=K[f|0];h=h+2|0;if((l|0)!=(h|0))continue;break}}if(!j)break Pb;H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];d=d-4|0;H[d|0]=K[f-2|0]}H[d-2|0]=e;H[d-1|0]=k;l=32;j=2;break Kb}l=32;if(i)Qb:{f=d;d=i<<1;f=f+d|0;d=f+d|0;if((i|0)!=1){j=i&-2;while(1){H[d-1|0]=K[f-1|0];m=K[f-2|0];H[d-3|0]=k;H[d-2|0]=m;H[d-4|0]=e;H[d-5|0]=K[f-3|0];f=f-4|0;m=K[f|0];H[d-7|0]=k;H[d-6|0]=m;d=d-8|0;H[d|0]=e;h=h+2|0;if((j|0)!=(h|0))continue;break}}if(!(i& -1))break Qb;H[d-1|0]=K[f-1|0];f=K[f-2|0];H[d-3|0]=k;H[d-2|0]=f;H[d-4|0]=e}m=2;j=2;break Kb;case 2:break Lb;default:break Jb}Rb:switch(K[g+9|0]-8|0){case 0:if(f&128){f=d+P(i,3)|0;d=i+f|0;j=2;if(i>>>0>=2){e=1;while(1){H[d-1|0]=k;H[d-2|0]=K[f-1|0];H[d-3|0]=K[f-2|0];d=d-4|0;f=f-3|0;H[d|0]=K[f|0];e=e+1|0;if((i|0)!=(e|0))continue;break}}H[d-1|0]=k;l=32;m=4;break Kb}j=2;l=32;m=4;if(!i)break Kb;f=d+P(i,3)|0;d=i+f|0;e=0;while(1){H[d-1|0]=K[f-1|0];H[d-2|0]=K[f-2|0];f=f-3|0;n=K[f|0];h=d-4|0;H[h|0]=k;H[d-3|0]= -n;d=h;e=e+1|0;if((i|0)!=(e|0))continue;break}break Kb;case 8:break Rb;default:break Jb}if(f&128){h=1;f=d+P(i,6)|0;d=f+(i<<1)|0;if(i>>>0>=2)while(1){H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];H[d-4|0]=K[f-2|0];H[d-5|0]=K[f-3|0];H[d-6|0]=K[f-4|0];H[d-7|0]=K[f-5|0];d=d-8|0;f=f-6|0;H[d|0]=K[f|0];h=h+1|0;if((i|0)!=(h|0))continue;break}H[d-2|0]=e;H[d-1|0]=k;j=3;l=64;m=4;break Kb}j=3;l=64;m=4;if(!i)break Kb;f=d+P(i,6)|0;d=f+(i<<1)|0;while(1){H[d-1|0]=K[f-1|0];H[d-2|0]=K[f-2|0];H[d-3|0]=K[f-3|0];H[d-4|0]=K[f- -4|0];H[d-5|0]=K[f-5|0];f=f-6|0;n=K[f|0];H[d-7|0]=k;H[d-6|0]=n;d=d-8|0;H[d|0]=e;h=h+1|0;if((i|0)!=(h|0))continue;break}}H[g+11|0]=l;H[g+10|0]=m;J[g+4>>2]=i<>2]}if(d&524288){d=J[a+356>>2]+1|0;f=J[g>>2];Sb:{Tb:switch(K[g+8|0]-4|0){case 2:if(K[g+9|0]==8){if(!f)break Sb;d=d+J[g+4>>2]|0;if(f>>>0>=4){h=f&-4;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-9|0;H[i|0]=K[i|0]^-1;i=d-13|0;H[i|0]=K[i|0]^-1;d=d-16|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}f=f&3;if(!f)break Sb;e= -0;while(1){h=d-1|0;H[h|0]=K[h|0]^-1;d=d-4|0;e=e+1|0;if((f|0)!=(e|0))continue;break}break Sb}if(!f)break Sb;d=d+J[g+4>>2]|0;if((f|0)!=1){h=f&-2;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-2|0;H[i|0]=K[i|0]^-1;i=d-9|0;H[i|0]=K[i|0]^-1;i=d-10|0;H[i|0]=K[i|0]^-1;d=d-16|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!(f&1))break Sb;e=d-1|0;H[e|0]=K[e|0]^-1;d=d-2|0;H[d|0]=K[d|0]^-1;break Sb;case 0:break Tb;default:break Sb}if(K[g+9|0]==8){if(!f)break Sb;d=d+J[g+4>>2]|0;if(f>>>0>=4){h=f&-4;e=0;while(1){i=d- -1|0;H[i|0]=K[i|0]^-1;i=d-3|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-7|0;H[i|0]=K[i|0]^-1;d=d-8|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}f=f&3;if(!f)break Sb;e=0;while(1){h=d-1|0;H[h|0]=K[h|0]^-1;d=d-2|0;e=e+1|0;if((f|0)!=(e|0))continue;break}break Sb}if(!f)break Sb;d=d+J[g+4>>2]|0;if((f|0)!=1){h=f&-2;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-2|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-6|0;H[i|0]=K[i|0]^-1;d=d-8|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!(f&1))break Sb;e=d-1|0;H[e| -0]=K[e|0]^-1;d=d-2|0;H[d|0]=K[d|0]^-1}d=J[a+208>>2]}if(d&131072){d=J[a+356>>2]+1|0;e=J[g>>2];Ub:{Vb:switch(K[g+8|0]-4|0){case 2:if(K[g+9|0]==8){if(!e)break Ub;d=d+J[g+4>>2]|0;if((e|0)!=1){f=e&-2;h=0;while(1){i=d-1|0;k=K[i|0];j=i;i=d-2|0;H[j|0]=K[i|0];j=d-3|0;m=K[j|0];o=j;j=d-4|0;H[o|0]=K[j|0];H[i|0]=m;H[j|0]=k;i=d-5|0;k=K[i|0];j=i;i=d-6|0;H[j|0]=K[i|0];j=i;i=d-7|0;H[j|0]=K[i|0];d=d-8|0;H[i|0]=K[d|0];H[d|0]=k;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(e&1))break Ub;e=d-1|0;f=K[e|0];i=e;e=d-2|0;H[i| -0]=K[e|0];h=d-3|0;i=K[h|0];d=d-4|0;H[h|0]=K[d|0];H[e|0]=i;H[d|0]=f;break Ub}if(!e)break Ub;d=d+J[g+4>>2]|0;h=0;while(1){f=d-2|0;k=K[f|0]|K[f+1|0]<<8;i=d-4|0;j=K[i|0]|K[i+1|0]<<8;H[f|0]=j;H[f+1|0]=j>>>8;f=d-6|0;j=K[f|0]|K[f+1|0]<<8;H[i|0]=j;H[i+1|0]=j>>>8;d=d-8|0;i=K[d|0]|K[d+1|0]<<8;H[f|0]=i;H[f+1|0]=i>>>8;H[d|0]=k;H[d+1|0]=k>>>8;h=h+1|0;if((e|0)!=(h|0))continue;break}break Ub;case 0:break Vb;default:break Ub}if(K[g+9|0]==8){if(!e)break Ub;d=d+J[g+4>>2]|0;if(e>>>0>=4){f=e&-4;h=0;while(1){i=d-1|0; -k=K[i|0];j=i;i=d-2|0;H[j|0]=K[i|0];H[i|0]=k;i=d-3|0;k=K[i|0];j=i;i=d-4|0;H[j|0]=K[i|0];H[i|0]=k;i=d-5|0;k=K[i|0];j=i;i=d-6|0;H[j|0]=K[i|0];H[i|0]=k;i=d-7|0;k=K[i|0];d=d-8|0;H[i|0]=K[d|0];H[d|0]=k;h=h+4|0;if((f|0)!=(h|0))continue;break}}e=e&3;if(!e)break Ub;h=0;while(1){f=d-1|0;i=K[f|0];d=d-2|0;H[f|0]=K[d|0];H[d|0]=i;h=h+1|0;if((e|0)!=(h|0))continue;break}break Ub}if(!e)break Ub;d=d+J[g+4>>2]|0;if((e|0)!=1){k=e&-2;h=0;while(1){f=d-4|0;i=Hzb(K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24),16);H[f|0]= -i;H[f+1|0]=i>>>8;H[f+2|0]=i>>>16;H[f+3|0]=i>>>24;d=d-8|0;f=Hzb(K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),16);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(e&1))break Ub;d=d-4|0;e=Hzb(K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),16);H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=e>>>16;H[d+3|0]=e>>>24}d=J[a+208>>2]}if(d&16){qW(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&1048576){d=J[a+184>>2];if(d)gc[d|0](a,g,J[a+356>>2]+1|0);d=K[a+196|0];if(d)H[g+9|0]=d;d= -K[a+197|0];Wb:{if(!d){d=K[g+10|0];break Wb}H[g+10|0]=d}e=P(K[g+9|0],d);H[g+11|0]=e;d=J[g>>2];e=e&255;Xb:{if(e>>>0>=8){d=P(d,e>>>3|0);break Xb}d=P(d,e)+7>>>3|0}J[g+4>>2]=d}break na}Ad(a,59975);B()}Ad(a,60131);B()}Ad(a,60353);B()}Ad(a,60742);B()}d=K[s+15|0];e=K[a+409|0];Yb:{if(!e){H[a+409|0]=d;if(d>>>0<=K[a+408|0])break Yb;Ad(a,60306);B()}if((d|0)!=(e|0))break a}Zb:{_b:{if(!K[a+398|0])break _b;g=J[a+208>>2];if(!(g&2))break _b;l=K[a+399|0];if(l>>>0<=5){h=0;n=bc-16|0;bc=n;j=J[a+356>>2]+1|0;if(!(!j|(s| -0)==-4)){m=J[(l<<2)+68688>>2];d=J[s+4>>2];k=P(m,d);$b:{ac:{bc:{cc:{dc:{ec:{e=K[s+15|0];switch(e-1|0){case 3:break cc;case 1:break dc;case 0:break ec;default:break bc}}i=7;q=d-1|0;h=q&7;fc:{if(g&65536){f=-1;e=k-1&7;break fc}u=7;h=h^7;i=0;f=1;e=0-k&7}if(!d)break ac;g=j+(k-1>>>3|0)|0;j=j+(q>>>3|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&1;d=0;if(!t)while(1){H[g|0]=K[g|0]&32639>>>7-e|l<>>7-e|l<>>7-e|l<>>0>2])continue;break}break ac}i=6;h=(d<<1)+6&6;gc:{if(g&65536){f=-2;e=(k<<1)+6&6;break gc}u=6;h=h^6;f=2;i=0;e=((k<<1)+6^-1)&6}if(!d)break ac;g=j+(k-1>>>2|0)|0;j=j+(d-1>>>2|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&3;d=0;if(!t)while(1){H[g|0]=K[g|0]&16191>>>6-e|l<>>6-e|l<>>6-e|l<>>0>2])continue;break}break ac}i=4;h=d<<2&4;hc:{if(g&65536){h=h^4;f=-4;e=(k^-1)<<2&4;break hc}u=4;i=0;f=4;e=k<<2&4}if(!d)break ac;g=j+(k-1>>>1|0)|0;j=j+(d-1>>>1|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&15;d= -0;if(!t)while(1){H[g|0]=K[g|0]&3855>>>4-e|l<>>4-e|l<>>4-e|l<>>0>2])continue;break}break ac}if(!d)break $b;e=e>>>3|0;g=0-e|0;f=(m|0)<=1?1:m;u=f&2147483644;m=f&3;d=j+P(e,d-1|0)|0;i=j+P(e,k-1|0)|0;j=f>>>0<4;while(1){tc(n+8|0,d,e);f=0;if(!j)while(1){o=i; -i=n+8|0;i=tc(tc(tc(tc(o,i,e)+g|0,i,e)+g|0,i,e)+g|0,i,e)+g|0;f=f+4|0;if((u|0)!=(f|0))continue;break}f=0;if(m)while(1){i=tc(i,n+8|0,e)+g|0;f=f+1|0;if((m|0)!=(f|0))continue;break}d=d+g|0;h=h+1|0;if(h>>>0>2])continue;break}}e=K[s+15|0]}J[s+4>>2]=k;d=e&255;ic:{if(d>>>0>=8){d=P(k,d>>>3|0);break ic}d=P(d,k)+7>>>3|0}J[s+8>>2]=d}bc=n+16|0}if(c)Om(a,c,1);if(!b)break Zb;Om(a,b,0);break Zb}if(b)Om(a,b,-1);if(!c)break Zb;Om(a,c,-1)}ap(a);b=J[a+520>>2];if(!b)break d;gc[b|0](a,J[a+344>>2],K[a+399|0])}bc= -s+16|0;return}Ad(a,59379);B()}Ad(a,60174);B()}Ad(a,60562);B()}function U8(a){a=a|0;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,G=0,I=0,M=0,O=0,S=0,T=0,U=0,W=0,X=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=Q(0),na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=Q(0),ua=0,va=0,wa=0,xa=0,ya=0,za=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,Na=0,Oa=Q(0);c=J[a>>2];d=bd(1,28);a:{if(!d)break a; -J[d>>2]=c;c=bd(1,12);J[d+4>>2]=c;if(c){b=d;break a}qc(d)}y=J[a+40>>2];t=bc-256|0;bc=t;C=b;u=J[a+44>>2];J[b+12>>2]=u;J[b+8>>2]=y;b=J[b+4>>2];d=J[u+48>>2];J[b>>2]=d;c=J[u+52>>2];J[b+4>>2]=c;e=b;b=bd(1,P(P(c,d),840));J[e+8>>2]=b;b:{c:{if(!b)break c;d:{e:{f=J[u+60>>2];if((f|0)>0)while(1){e=J[u+88>>2];b=J[J[u+56>>2]+(_<<2)>>2];v=J[J[C+4>>2]+8>>2]+P(b,840)|0;c=J[u+48>>2];d=(b|0)/(c|0)|0;k=J[u+28>>2];l=J[u+36>>2];c=b-P(c,d)|0;m=k+P(l,c)|0;g=J[y>>2];J[v>>2]=(g|0)<(m|0)?m:g;g=J[u+32>>2];m=J[u+40>>2];i=g+P(m, -d)|0;h=J[y+4>>2];J[v+4>>2]=(h|0)<(i|0)?i:h;i=J[y+8>>2];c=k+P(l,c+1|0)|0;J[v+8>>2]=(c|0)>(i|0)?i:c;c=J[y+12>>2];d=g+P(m,d+1|0)|0;J[v+12>>2]=(c|0)<(d|0)?c:d;c=J[y+16>>2];J[v+16>>2]=c;d=bd(1,c<<5);J[v+20>>2]=d;if(!d)break e;if((c|0)>0){ha=(e+P(b,1876)|0)+1872|0;M=0;while(1){e=J[ha>>2];w=J[v+20>>2]+(M<<5)|0;ea=P(M,48);d=ea+J[y+24>>2]|0;b=J[d>>2];f=b-1|0;l=(f+J[v>>2]|0)/(b|0)|0;J[w>>2]=l;d=J[d+4>>2];k=d-1|0;m=(k+J[v+4>>2]|0)/(d|0)|0;J[w+4>>2]=m;b=(f+J[v+8>>2]|0)/(b|0)|0;J[w+8>>2]=b;d=(k+J[v+12>>2]|0)/ -(d|0)|0;J[w+12>>2]=d;b=bd(1,P(b-l|0,d-m|0)<<2);J[w+24>>2]=b;if(!b)break e;O=e+P(M,1076)|0;d=J[O+4>>2];J[w+16>>2]=d;b=bd(1,P(d,124));J[w+20>>2]=b;if(!b)break e;if((d|0)>0){r=0;while(1){D=J[w+20>>2]+P(r,124)|0;k=(r^-1)+d|0;m=-1<>2]>>k;J[D>>2]=b;c=m+J[w+4>>2]>>k;J[D+4>>2]=c;e=m+J[w+8>>2]>>k;J[D+8>>2]=e;f=J[w+12>>2];J[D+24>>2]=r?3:1;f=f+m>>k;J[D+12>>2]=f;z=15;A=15;if(H[O|0]&1){l=O+(r<<2)|0;z=J[l+944>>2];A=J[l+812>>2]}l=-1<>2]=(c|0)!=(f|0)?(l&(f+(1<>z:0;c=-1<< -A;G=c&b;J[D+16>>2]=(b|0)!=(e|0)?(c&(e+(1<>A:0;h=d-r|0;X=1<>1;G=G+1>>1;z=z-1|0}b=J[O+12>>2];F=(b|0)>(z|0)?z:b;na=-1<>2];I=(b|0)>(A|0)?A:b;qa=1<>2]=i;f:{if(!r){g=m+J[w+8>>2]>>k;q=m+J[w+4>>2]>>k;f=m+J[w>>2]>>k;e=J[w+12>>2];d=m;b=k;break f}b=X+(((l&2147483645)==1)<>2]>>h;e=X+(((l&2147483646)==2)<>2]>>h;f=b+J[w>>2]>>h;d=J[w+12>>2];b=h}J[x+ -28>>2]=f;J[x+40>>2]=d+e>>b;J[x+36>>2]=g;J[x+32>>2]=q;b=O+((r?c+aa|0:0)<<3)|0;d=J[b+32>>2];b=J[b+28>>2];Na=x,Oa=Q(Pu((J[(ea+J[y+24>>2]|0)+24>>2]+(r?J[O+20>>2]?i>>>0>2?2:1:0:0)|0)-b|0)*(+(d|0)*4.8828125E-4+1)),N[Na+56>>2]=Oa;J[x+52>>2]=(b+J[O+804>>2]|0)-1;d=J[D+16>>2];b=P(d,J[D+20>>2]);c=bd(1,P(b,36));J[x+48>>2]=c;if(!c)break e;B=0;if((b|0)>0)while(1){o=J[x+48>>2]+P(B,36)|0;b=(B|0)/(d|0)|0;d=B-P(b,d)|0;c=(d<>2];c=(c|0)>(e|0)?c:e;J[o>>2]=c;e=(b<>2];e=(e|0)>(f|0)?e:f; -J[o+4>>2]=e;f=J[x+36>>2];d=(d+1<(f|0)?f:d;J[o+8>>2]=d;f=J[x+40>>2];b=(b+1<(f|0)?f:b;J[o+12>>2]=b;ra=c>>I;f=(d+ua>>I)-ra<>I;J[o+16>>2]=f;oa=e>>F;e=(b+na>>F)-oa<>F;J[o+20>>2]=e;n=P(e,f);b=bd(1,P(n,15448));J[o+24>>2]=b;if(!b)break e;g:{h:{p=bd(1,16);if(p){J[p+4>>2]=e;J[p>>2]=f;J[t+128>>2]=f;J[t>>2]=e;j=0;d=e;c=f;b=0;while(1){s=b;b=b+1|0;i=b<<2;g=(d+1|0)/2|0;J[i+t>>2]=g;q=i+(t+128|0)|0;i=(c+1|0)/2|0;J[q>>2]=i;q=P(c,d);j=q+j|0;d=g;c=i;if((q|0)>1)continue;break}J[p+ -8>>2]=j;i:{if(!j)break i;i=bd(1,j<<4);J[p+12>>2]=i;if(!i)break i;c=i;if(!s)break h;S=0;b=(n<<4)+c|0;d=b;while(1){g=S<<2;T=J[g+t>>2];j:{if((T|0)<=0)break j;ba=T-1|0;q=0;k:{n=J[g+(t+128|0)>>2];if((n|0)<=0){g=0;if((T|0)!=1){W=T&-2;while(1){pa=(g|0)==(ba|0);g=g+2|0;b=pa?d:b;d=b;q=q+2|0;if((W|0)!=(q|0))continue;break}}if(T&1)break k;d=b;break j}while(1){g=b;b=n;while(1){l:{J[c>>2]=d;if((b|0)==1){c=c+16|0;d=d+16|0;break l}J[c+16>>2]=d;d=d+16|0;c=c+32|0;W=(b|0)>2;b=b-2|0;if(W)continue}break}W=((q|0)==(ba| -0)|q)&1;b=W?d:g+(n<<4)|0;d=W?d:g;q=q+1|0;if((T|0)!=(q|0))continue;break}break j}q=(n<<4)+b|0;n=((g|0)==(ba|0)|g)&1;g=n?d:q;d=n?d:b;b=g}S=S+1|0;if((s|0)!=(S|0))continue;break}break h}qc(p);f=J[o+16>>2];e=J[o+20>>2]}p=0;break g}J[c>>2]=0;if((j|0)<=0)break g;b=0;d=0;if(j-1>>>0>=3){s=j&-4;g=0;while(1){c=d<<4;n=c+i|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;n=i+(c|16)|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;n=i+(c|32)|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;c=i+(c|48)|0;J[c+12>>2]=0;J[c+4>>2]=999;J[c+ -8>>2]=0;d=d+4|0;g=g+4|0;if((s|0)!=(g|0))continue;break}}g=j&3;if(!g)break g;while(1){c=i+(d<<4)|0;J[c+12>>2]=0;J[c+4>>2]=999;J[c+8>>2]=0;d=d+1|0;b=b+1|0;if((g|0)!=(b|0))continue;break}}J[o+28>>2]=p;m:{n:{p=bd(1,16);if(p){J[p+4>>2]=e;J[p>>2]=f;J[t+128>>2]=f;J[t>>2]=e;j=0;d=e;c=f;b=0;while(1){s=b;b=b+1|0;i=b<<2;g=(d+1|0)/2|0;J[i+t>>2]=g;q=i+(t+128|0)|0;i=(c+1|0)/2|0;J[q>>2]=i;n=P(c,d);j=n+j|0;d=g;c=i;if((n|0)>1)continue;break}J[p+8>>2]=j;o:{if(!j)break o;i=bd(1,j<<4);J[p+12>>2]=i;if(!i)break o;c=i; -if(!s)break n;S=0;b=(P(e,f)<<4)+c|0;d=b;while(1){g=S<<2;T=J[g+t>>2];p:{if((T|0)<=0)break p;ba=T-1|0;q=0;q:{n=J[g+(t+128|0)>>2];if((n|0)<=0){g=0;if((T|0)!=1){W=T&-2;while(1){pa=(g|0)==(ba|0);g=g+2|0;b=pa?d:b;d=b;q=q+2|0;if((W|0)!=(q|0))continue;break}}if(T&1)break q;d=b;break p}while(1){g=b;b=n;while(1){r:{J[c>>2]=d;if((b|0)==1){c=c+16|0;d=d+16|0;break r}J[c+16>>2]=d;d=d+16|0;c=c+32|0;W=(b|0)>2;b=b-2|0;if(W)continue}break}W=((q|0)==(ba|0)|q)&1;b=W?d:g+(n<<4)|0;d=W?d:g;q=q+1|0;if((T|0)!=(q|0))continue; -break}break p}q=(n<<4)+b|0;n=((g|0)==(ba|0)|g)&1;g=n?d:q;d=n?d:b;b=g}S=S+1|0;if((s|0)!=(S|0))continue;break}break n}qc(p);f=J[o+16>>2];e=J[o+20>>2]}p=0;break m}J[c>>2]=0;if((j|0)<=0)break m;b=0;d=0;if(j-1>>>0>=3){s=j&-4;g=0;while(1){c=d<<4;n=c+i|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;n=i+(c|16)|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;n=i+(c|32)|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;c=i+(c|48)|0;J[c+12>>2]=0;J[c+4>>2]=999;J[c+8>>2]=0;d=d+4|0;g=g+4|0;if((s|0)!=(g|0))continue;break}}g=j&3;if(!g)break m; -while(1){c=i+(d<<4)|0;J[c+12>>2]=0;J[c+4>>2]=999;J[c+8>>2]=0;d=d+1|0;b=b+1|0;if((g|0)!=(b|0))continue;break}}J[o+32>>2]=p;e=P(e,f);if((e|0)>0){g=J[o+24>>2];d=0;while(1){b=g+P(d,15448)|0;i=(d|0)/(f|0)|0;c=ra+(d-P(i,f)|0)<>2];J[b>>2]=(c|0)>(n|0)?c:n;i=i+oa|0;n=i<>2];J[b+4>>2]=(n|0)>(s|0)?n:s;n=J[o+8>>2];c=c+qa|0;J[b+8>>2]=(c|0)>(n|0)?n:c;q=b;b=J[o+12>>2];c=i+1<>2]=(b|0)<(c|0)?b:c;d=d+1|0;if((e|0)!=(d|0))continue;break}}B=B+1|0;d=J[D+16>>2];if((B|0)<(P(d,J[D+20>>2])|0))continue; -break}if(J[D+24>>2]>(l|0))continue;break}d=J[w+16>>2];r=r+1|0;if((d|0)>(r|0))continue;break}c=J[v+16>>2]}M=M+1|0;if((M|0)<(c|0))continue;break}f=J[u+60>>2]}_=_+1|0;if((_|0)<(f|0))continue;break}k=J[y+16>>2];if((k|0)<=0)break b;m=J[y+24>>2];if((f|0)<=0){e=0;while(1){b=m+P(e,48)|0;d=bd(1,0);J[b+44>>2]=d;if(!d)break d;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;e=e+1|0;if((k|0)!=(e|0))continue;break}break b}i=J[u+56>>2];s=J[C+4>>2];h=J[s+8>>2];e=0;w=(f|0)==1;while(1){l=e<<5;c=l+J[(h+P(J[i>>2], -840)|0)+20>>2]|0;b=J[c+12>>2];g=J[c+8>>2];d=J[c+4>>2];c=J[c>>2];if(!w){j=J[s+8>>2];q=1;while(1){n=P(J[i+(q<<2)>>2],840);o=J[(l+J[(n+h|0)+20>>2]|0)+12>>2];b=b>>>0>o>>>0?b:o;n=l+J[(j+n|0)+20>>2]|0;o=J[n+8>>2];g=g>>>0>o>>>0?g:o;o=J[n+4>>2];d=d>>>0>o>>>0?o:d;n=J[n>>2];c=c>>>0>n>>>0?n:c;q=q+1|0;if((q|0)!=(f|0))continue;break}}l=m+P(e,48)|0;g=g-c|0;b=b-d|0;n=bd(1,P(g,b)<<2);J[l+44>>2]=n;if(!n)break d;J[l+20>>2]=d;J[l+16>>2]=c;J[l+12>>2]=b;J[l+8>>2]=g;e=e+1|0;if((k|0)!=(e|0))continue;break}break b}BN(C); -break c}BN(C);if(!e)break c;d=0;while(1){b=J[y+24>>2]+P(d,48)|0;c=J[b+44>>2];if(c){qc(c);J[b+44>>2]=0}d=d+1|0;if((e|0)!=(d|0))continue;break}}J[J[C>>2]+20>>2]=1}bc=t+256|0;b=J[a+44>>2];d=J[b+60>>2];s:{if(J[J[C>>2]+20>>2]){if((d|0)<=0)break s;while(1){d=J[a+28>>2];c=J[J[b+56>>2]+(ka<<2)>>2]<<2;b=d+c|0;e=J[b>>2];if(e){qc(e);J[b>>2]=0;d=J[a+28>>2]}J[d+c>>2]=0;ka=ka+1|0;b=J[a+44>>2];if((ka|0)>2])continue;break}break s}if((d|0)>0)while(1){D=J[J[b+56>>2]+(ka<<2)>>2];T=D<<2;d=J[T+J[a+28>>2]>>2]; -c=J[T+J[a+32>>2]>>2];M=0;J[C+24>>2]=D;ba=J[J[C+4>>2]+8>>2];f=ba+P(D,840)|0;J[C+16>>2]=f;e=J[C+12>>2];J[C+20>>2]=J[e+88>>2]+P(D,1876);l=J[C+8>>2];k=J[C>>2];b=bd(1,12);t:{if(!b){V8(0,d,c,D,f);break t}J[b+8>>2]=e;J[b+4>>2]=l;J[b>>2]=k;V8(b,d,c,D,f);qc(b)}b=J[C>>2];d=bd(1,8429596);u:{if(!d){J[b+20>>2]=1;d=0;break u}J[d>>2]=b;c=bd(1,156);J[d+4>>2]=c;v:{if(!c){J[b+20>>2]=1;break v}e=bd(1,28);J[d+8>>2]=e;if(e){c=0;while(1){l=(c>>>4&1)+(c>>>6&1)|0;e=(((c>>>3&1)+(c&1)|0)+(c>>>1&1)|0)+(c>>>2&1)|0;b=8;w:{x:switch((c>>> -5&1)+(c>>>7|0)|0){case 0:b=3;y:switch(l|0){case 0:b=e?(e|0)==1?1:2:0;break w;case 1:break w;default:break y}b=4;break w;case 1:break x;default:break w}b=7;if(l)break w;b=e?6:5}J[(d+(c<<2)|0)+12>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){l=(c>>>4&1)+(c>>>6&1)|0;e=(((c>>>3&1)+(c&1)|0)+(c>>>1&1)|0)+(c>>>2&1)|0;b=8;z:{A:switch((c>>>5&1)+(c>>>7|0)|0){case 1:b=7;if(l)break z;b=e?6:5;break z;case 0:break A;default:break z}b=3;B:switch(l|0){case 0:b=e?(e|0)==1?1:2:0;break z;case 1:break z;default:break B}b= -4}J[(d+(c<<2|1024)|0)+12>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){l=(c>>>5&1)+(c>>>7|0)|0;e=(((c>>>3&1)+(c&1)|0)+(c>>>1&1)|0)+(c>>>2&1)|0;b=8;C:{D:switch((c>>>4&1)+(c>>>6&1)|0){case 1:b=7;if(l)break C;b=e?6:5;break C;case 0:break D;default:break C}b=3;E:switch(l|0){case 0:b=e?(e|0)==1?1:2:0;break C;case 1:break C;default:break E}b=4}J[(d+(c<<2|2048)|0)+12>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){e=(((c>>>5&1)+(c>>>7|0)|0)+(c>>>6&1)|0)+(c>>>4&1)|0;b=8;F:{G:switch((((c>>> -3&1)+(c&1)|0)+(c>>>1&1)|0)+(c>>>2&1)|0){case 2:b=e?7:6;break F;case 1:b=e?(e|0)==1?4:5:3;break F;case 0:break G;default:break F}b=e?(e|0)==1?1:2:0}J[(d+(c<<2|3072)|0)+12>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){b=c<<4;e=b&272;l=b&1088;e=((e|0)==16|(l|0)==64)-((e|0)==272|(l|0)==1088)|0;g=0-e|0;k=e;e=b&544;b=b&2176;l=((e|0)==32|(b|0)==128)-((e|0)==544|(b|0)==2176)|0;e=(l|0)<0?g:k;b=9;H:{I:{J:{k=l;l=l>>31;switch((k^l)-l|0){case 1:break I;case 0:break J;default:break H}}b=e?10:9;break H}b= -(e|0)==-1?11:e?13:12}J[(d+(c<<2)|0)+4108>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;b=d+5132|0;while(1){e=c<<2;l=c&8192;J[e+b>>2]=l?16:c&254?15:14;J[b+(e|4)>>2]=l?16:15;c=c+2|0;if((c|0)!=2048)continue;break}c=0;while(1){b=d+(c<<2)|0;e=b+13332|0;J[e>>2]=16;J[e+4>>2]=16;b=b+13324|0;J[b>>2]=16;J[b+4>>2]=16;c=c+4|0;if((c|0)!=2048)continue;break}c=0;while(1){b=c<<4;l=b&272;k=b&1088;e=(l|0)==272|(k|0)==1088;l=(l|0)==16|(k|0)==64;k=(d+(c<<2)|0)+21516|0;m=b&544;b=b&2176;g=(m|0)==32|(b|0)==128;m=(m|0)== -544|(b|0)==2176;i=g^m;K:{if(!i){b=0;if(!(e^l))break K}b=(m|g^-1)&(i|(e|!l))}J[k>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){b=d+(c<<2)|0;l=b+23052|0;U=+(c|0)*.015625;fa=U*U;ia=V(fa*64+.5)*.015625*8192;L:{if(R(ia)<2147483648){e=~~ia;break L}e=-2147483648}J[l>>2]=(e|0)>0?e:0;l=b+24076|0;ia=U+-1;ia=ia*ia;la=V(ia*64+.5)*.015625*8192;M:{if(R(la)<2147483648){e=~~la;break M}e=-2147483648}J[l>>2]=(e|0)>0?e:0;l=b+22540|0;la=fa;fa=U+-1.5;la=V((la-fa*fa)*64+.5)*.015625*8192;N:{if(R(la)<2147483648){e= -~~la;break N}e=-2147483648}J[l>>2]=(e|0)>0?e:0;e=b+23564|0;U=c&64?fa:U+-.5;U=V((ia-U*U)*64+.5)*.015625*8192;O:{if(R(U)<2147483648){b=~~U;break O}b=-2147483648}J[e>>2]=(b|0)>0?b:0;c=c+1|0;if((c|0)!=128)continue;break}break u}J[b+20>>2]=1;qc(c)}qc(d);d=0}n=d;qa=J[C+20>>2];e=J[f+16>>2];if((e|0)>0){w=f;Aa=n+4231204|0;Ba=n+4227100|0;Ca=n+4222996|0;ua=n+4218892|0;while(1){x=J[w+20>>2]+(M<<5)|0;f=J[x+16>>2];if((f|0)>0){_=0;ra=P(M,1076);while(1){oa=P(_,124);y=oa+J[x+20>>2]|0;e=J[y+24>>2];if((e|0)>0){f=J[y+ -20>>2];c=J[y+16>>2];X=0;while(1){if((P(c,f)|0)>0){A=y+(X<<5)|0;ha=0;while(1){G=J[A+48>>2]+P(ha,36)|0;if((P(J[G+20>>2],J[G+16>>2])|0)>0){m=J[qa+1872>>2];ea=0;while(1){l=J[A+44>>2];t=J[G+24>>2]+P(ea,15448)|0;v=J[t+8>>2]-J[t>>2]|0;b=m+ra|0;f=J[b+16>>2];m=J[b+808>>2];p=J[n+4>>2];S=J[n+8>>2];g=J[t+12>>2];h=J[t+4>>2];u=g-h|0;P:{Q:{if((u|0)<0)break Q;I=0;if((v|0)<0)break P;c=u+1|0;k=c&3;d=(v<<2)+4|0;b=0;e=0;if(u>>>0>=3){s=c&-4;i=0;while(1){c=P(e,4104);wc(c+ua|0,0,d);wc(c+Ca|0,0,d);wc(c+Ba|0,0,d);wc(c+Aa| -0,0,d);e=e+4|0;i=i+4|0;if((s|0)!=(i|0))continue;break}}if(!k)break Q;while(1){wc(ua+P(e,4104)|0,0,d);e=e+1|0;b=b+1|0;if((k|0)!=(b|0))continue;break}}if((v|0)<=0){I=0;break P}I=1;if((u|0)<=0)break P;s=u&-8;k=u&7;i=0;g=g+(h^-1)>>>0<7;while(1){b=0;h=0;if(!g)while(1){e=i<<2;d=n+24588|0;c=b<<12;J[e+(d+c|0)>>2]=0;J[e+(d+(c|4096)|0)>>2]=0;J[e+(d+(c|8192)|0)>>2]=0;J[e+(d+(c|12288)|0)>>2]=0;J[e+(d+(c|16384)|0)>>2]=0;J[e+(d+(c|20480)|0)>>2]=0;J[e+(d+(c|24576)|0)>>2]=0;J[e+(d+(c|28672)|0)>>2]=0;b=b+8|0;h=h+ -8|0;if((s|0)!=(h|0))continue;break}e=0;if(k)while(1){J[((n+(b<<12)|0)+(i<<2)|0)+24588>>2]=0;b=b+1|0;e=e+1|0;if((k|0)!=(e|0))continue;break}i=i+1|0;if((v|0)!=(i|0))continue;break}}b=J[t+16>>2];J[p+148>>2]=2635504;J[p+144>>2]=2635504;J[p+140>>2]=2635504;J[p+136>>2]=2635504;J[p+132>>2]=2635504;J[p+128>>2]=2635504;J[p+124>>2]=2635504;J[p+120>>2]=2635504;J[p+116>>2]=2635504;J[p+112>>2]=2635504;J[p+108>>2]=2635504;J[p+104>>2]=2635504;J[p+100>>2]=2635504;J[p+88>>2]=2635504;J[p+84>>2]=2635504;J[p+80>>2]= -2635504;J[p+76>>2]=2635504;J[p+72>>2]=2635504;J[p+68>>2]=2635504;J[p- -64>>2]=2635504;J[p+60>>2]=2635504;J[p+56>>2]=2635504;J[p+52>>2]=2635504;J[p+48>>2]=2635504;J[p+44>>2]=2635504;J[p+40>>2]=2635504;J[p+36>>2]=2635504;J[p+32>>2]=2635504;J[p+28>>2]=2635504;J[p+92>>2]=2635600;J[p+96>>2]=2636976;J[p+24>>2]=2635632;c=J[t+36>>2];if((c|0)>0){Da=p+24|0;W=(u|0)<=0;Ea=W|(v|0)<=0;E=2;pa=(l|0)==2?256:(l|0)==1?512:l<<8;F=u-1|0;O=f&8;Fa=f&32;z=(b+m|0)-1|0;aa=0;Ga=f&1;Ha=!(f&2);while(1){b=t+P(aa,24)|0;wa=b;e= -J[b+44>>2];d=J[b+48>>2];na=(E|0)<2&(J[t+16>>2]-5|0)>=(z|0)&Ga;R:{if(na){J[S+12>>2]=0;J[S+8>>2]=e;J[S+20>>2]=d;J[S+4>>2]=0;H[S|0]=0;break R}J[p+16>>2]=d;J[p+152>>2]=Da;J[p+12>>2]=d;J[p+20>>2]=d+e;i=1;b=65280;S:{if(!e){h=16711680;break S}h=K[d|0]<<16;J[p>>2]=h;l=d+1|0;T:{if((e|0)!=1){f=K[d+1|0];if(K[d|0]!=255)break T;if(f>>>0>143)break S;J[p+12>>2]=l;b=f<<9;i=0;break S}f=255;if(K[d|0]==255)break S}J[p+12>>2]=l;b=f<<8}J[p+8>>2]=i;J[p+4>>2]=32768;J[p>>2]=b+h<<7}if(J[wa+40>>2]>0){Ia=na|Ha;va=0;while(1){U:{V:{W:switch(E| -0){case 0:if(!I|W)break U;b=1<>1|b;B=0-r|0;d=0;if(!na)break V;l=J[n+8>>2];k=0;while(1){b=k;s=b|3;k=b+4|0;g=0;while(1){d=g;g=d+1|0;c=b;while(1){X:{if(!O){f=c+1|0;e=((n+P(f,4104)|0)+(g<<2)|0)+4218892|0;m=J[e>>2];break X}f=c+1|0;e=((n+P(f,4104)|0)+(g<<2)|0)+4218892|0;m=J[e>>2];m=(c|0)==(s|0)|(c|0)==(F|0)?m&-1095:m}if(!(!(m&255)|m&20480)){i=J[l+4>>2];Y:{if(i){h=K[l|0];break Y}J[l+4>>2]=8;m=J[l+12>>2];if((m|0)!=J[l+8>>2]){i=8;if(K[l|0]==255){J[l+4>>2]=7;i=7}h=K[m+J[l+20>>2]|0];J[l+12>>2]=m+1; -H[l|0]=h;break Y}h=255;H[l|0]=255;i=8}i=i-1|0;J[l+4>>2]=i;m=h&255;if(m>>>i&1){q=d<<2;j=(q+(n+(c<<12)|0)|0)+24588|0;Z:{if(i)break Z;J[l+4>>2]=8;c=J[l+12>>2];if((c|0)!=J[l+8>>2]){i=8;if((m|0)==255){J[l+4>>2]=7;i=7}h=K[c+J[l+20>>2]|0];J[l+12>>2]=c+1;H[l|0]=h;break Z}h=255;H[l|0]=255;i=8}c=i-1|0;J[l+4>>2]=c;i=j;j=(h&255)>>>c&1;J[i>>2]=j?B:r;c=e-4108|0;J[c>>2]=J[c>>2]|2;c=e-4100|0;J[c>>2]=J[c>>2]|4;J[e+4100>>2]=J[e+4100>>2]|1;J[e+4108>>2]=J[e+4108>>2]|8;c=e-4104|0;m=J[c>>2];J[c>>2]=m|64;o=J[e+4104>>2]; -J[e+4104>>2]=o|16;i=(q+(n+P(f,4104)|0)|0)+4218892|0;h=J[i>>2];J[i>>2]=h|32;q=J[e+4>>2];J[e+4>>2]=q|128;if(j){J[c>>2]=m|1088;J[e+4104>>2]=o|272;J[i>>2]=h|544;J[e+4>>2]=q|2176}c=J[e>>2]|4096}else c=J[e>>2];J[e>>2]=c|16384}if(f>>>0>>0){c=f;if((u|0)>(c|0))continue}break}if((g|0)!=(v|0))continue;break}if((k|0)<(u|0))continue;break}break U;case 2:j=J[n+4>>2];if(!(!I|W)){d=0;b=1<>1|b;Ja=0-xa|0;Ka=j+96|0;La=j+92|0;while(1){s=d+4|0;$=(s|0)<(u|0);Y=$?s:u;da=d|2;B=d|3;Ma=n+P(d|1,4104)|0;m=0;while(1){ca= -1;q=m;m=m+1|0;e=0;_:{$:{if((u|0)<=(B|0))break $;b=m<<2;c=J[(b+Ma|0)+4218892>>2]&20735;aa:{if(O){if(L[(b+(n+P(B,4104)|0)|0)+4218892>>1]&20735|(L[(b+(n+P(da,4104)|0)|0)+4218892>>1]&20735|c))break $;if(!(L[(b+(n+P(s,4104)|0)|0)+4218892>>1]&20665))break aa;break $}if(L[(b+(n+P(da,4104)|0)|0)+4218892>>1]&20735|c|(L[(b+(n+P(B,4104)|0)|0)+4218892>>1]&20735|L[(b+(n+P(s,4104)|0)|0)+4218892>>1]&20735))break $}J[j+152>>2]=La;f=J[j+92>>2];c=J[f>>2];b=J[j+4>>2]-c|0;J[j+4>>2]=b;e=J[j>>2];ba:{if(e>>>16>>>0>=c>>> -0){e=e-(c<<16)|0;J[j>>2]=e;l=J[f+4>>2];if(b&32768)break ba;l=J[f+4>>2];g=b>>>0>>0;J[j+92>>2]=J[f+(g?12:8)>>2];f=J[j+8>>2];while(1){if(!f){f=8;i=65280;c=J[j+12>>2];k=J[j+20>>2];ca:{if((c|0)==(k|0))break ca;h=k;k=c+1|0;da:{if((h|0)!=(k|0)){h=K[c+1|0];if(K[c|0]!=255)break da;if(h>>>0>143)break ca;J[j+12>>2]=k;i=h<<9;f=7;break ca}h=255;if(K[c|0]==255)break ca}J[j+12>>2]=k;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}l=g?1-l|0:l;break ba}l=J[f+ -4>>2];J[j+4>>2]=c;g=b>>>0>>0;J[j+92>>2]=J[f+(g?8:12)>>2];f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];k=J[j+20>>2];ea:{if((b|0)==(k|0))break ea;h=k;k=b+1|0;fa:{if((h|0)!=(k|0)){h=K[b+1|0];if(K[b|0]!=255)break fa;if(h>>>0>143)break ea;J[j+12>>2]=k;i=h<<9;f=7;break ea}h=255;if(K[b|0]==255)break ea}J[j+12>>2]=k;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;l=g?l:1-l|0}if(!l)break _;J[j+152>>2]=Ka;k=J[j+96>>2];c=J[k>>2];b=b-c|0;J[j+ -4>>2]=b;ga:{if(e>>>16>>>0>=c>>>0){e=e-(c<<16)|0;J[j>>2]=e;l=J[k+4>>2];if(b&32768)break ga;l=J[k+4>>2];o=b>>>0>>0;k=J[(o?12:8)+k>>2];J[j+96>>2]=k;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;c=J[j+12>>2];g=J[j+20>>2];ha:{if((c|0)==(g|0))break ha;h=g;g=c+1|0;ia:{if((h|0)!=(g|0)){h=K[c+1|0];if(K[c|0]!=255)break ia;if(h>>>0>143)break ha;J[j+12>>2]=g;i=h<<9;f=7;break ha}h=255;if(K[c|0]==255)break ha}J[j+12>>2]=g;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue; -break}l=o?1-l|0:l;break ga}l=J[k+4>>2];J[j+4>>2]=c;o=b>>>0>>0;k=J[(o?8:12)+k>>2];J[j+96>>2]=k;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];g=J[j+20>>2];ja:{if((b|0)==(g|0))break ja;h=g;g=b+1|0;ka:{if((h|0)!=(g|0)){h=K[b+1|0];if(K[b|0]!=255)break ka;if(h>>>0>143)break ja;J[j+12>>2]=g;i=h<<9;f=7;break ja}h=255;if(K[b|0]==255)break ja}J[j+12>>2]=g;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;l=o?l:1-l|0}c=J[k>>2];f=b-c|0;J[j+4>>2]= -f;g=l<<1;la:{if(e>>>16>>>0>=c>>>0){b=e-(c<<16)|0;J[j>>2]=b;e=J[k+4>>2];if(f&32768)break la;l=J[k+4>>2];o=c>>>0>f>>>0;J[j+96>>2]=J[(o?12:8)+k>>2];e=J[j+8>>2];while(1){if(!e){e=8;i=65280;c=J[j+12>>2];k=J[j+20>>2];ma:{if((c|0)==(k|0))break ma;h=k;k=c+1|0;na:{if((h|0)!=(k|0)){h=K[c+1|0];if(K[c|0]!=255)break na;if(h>>>0>143)break ma;J[j+12>>2]=k;i=h<<9;e=7;break ma}h=255;if(K[c|0]==255)break ma}J[j+12>>2]=k;i=h<<8}b=b+i|0}e=e-1|0;J[j+8>>2]=e;b=b<<1;J[j>>2]=b;f=f<<1;J[j+4>>2]=f;if(f>>>0<32768)continue; -break}e=o?1-l|0:l;break la}l=J[k+4>>2];J[j+4>>2]=c;o=c>>>0>f>>>0;J[j+96>>2]=J[(o?8:12)+k>>2];f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];k=J[j+20>>2];oa:{if((b|0)==(k|0))break oa;h=k;k=b+1|0;pa:{if((h|0)!=(k|0)){h=K[b+1|0];if(K[b|0]!=255)break pa;if(h>>>0>143)break oa;J[j+12>>2]=k;i=h<<9;f=7;break oa}h=255;if(K[b|0]==255)break oa}J[j+12>>2]=k;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}e=o?l:1-l|0}e=e|g;ca=0}ya=d+e|0;l=ya;if((Y|0)<= -(l|0))break _;while(1){e=l;l=e+1|0;za=n+P(l,4104)|0;r=(za+(m<<2)|0)+4218892|0;f=J[r>>2];i=(O?(e|0)==(B|0)|(e|0)==(F|0):0)&1?f&-1095:f;h=J[n+4>>2];qa:{ra:{sa:{if(!((e|0)!=(ya|0)|ca)){f=J[h>>2];c=J[h+4>>2];break sa}if(i&20480)break qa;g=h+(J[(n+((pa|i&255)<<2)|0)+12>>2]<<2)|0;J[h+152>>2]=g+24;k=J[g+24>>2];b=J[k>>2];c=J[h+4>>2]-b|0;J[h+4>>2]=c;f=J[h>>2];ta:{if(f>>>16>>>0>=b>>>0){f=f-(b<<16)|0;J[h>>2]=f;o=J[k+4>>2];if(c&32768)break ta;Z=J[k+4>>2];ja=b>>>0>c>>>0;J[g+24>>2]=J[k+(ja?12:8)>>2];b=J[h+8>>2]; -while(1){if(!b){b=8;k=65280;g=J[h+12>>2];o=J[h+20>>2];ua:{if((g|0)==(o|0))break ua;ga=g+1|0;va:{if((ga|0)!=(o|0)){o=K[g+1|0];if(K[g|0]!=255)break va;if(o>>>0>143)break ua;J[h+12>>2]=ga;k=o<<9;b=7;break ua}o=255;if(K[g|0]==255)break ua}J[h+12>>2]=ga;k=o<<8}f=f+k|0}b=b-1|0;J[h+8>>2]=b;f=f<<1;J[h>>2]=f;c=c<<1;J[h+4>>2]=c;if(c>>>0<32768)continue;break}o=ja?1-Z|0:Z;break ta}Z=J[k+4>>2];J[h+4>>2]=b;ja=b>>>0>c>>>0;J[g+24>>2]=J[k+(ja?8:12)>>2];c=J[h+8>>2];while(1){if(!c){c=8;k=65280;g=J[h+12>>2];o=J[h+20>> -2];wa:{if((g|0)==(o|0))break wa;ga=g+1|0;xa:{if((ga|0)!=(o|0)){o=K[g+1|0];if(K[g|0]!=255)break xa;if(o>>>0>143)break wa;J[h+12>>2]=ga;k=o<<9;c=7;break wa}o=255;if(K[g|0]==255)break wa}J[h+12>>2]=ga;k=o<<8}f=f+k|0}c=c-1|0;J[h+8>>2]=c;f=f<<1;J[h>>2]=f;b=b<<1;J[h+4>>2]=b;if(b>>>0<32768)continue;break}c=b;o=ja?Z:1-Z|0}if(!o)break ra}Z=q<<2;ga=(Z+(n+(e<<12)|0)|0)+24588|0;ja=n+((i>>>4&255)<<2)|0;k=h+(J[ja+4108>>2]<<2)|0;J[h+152>>2]=k+24;e=J[k+24>>2];b=J[e>>2];c=c-b|0;J[h+4>>2]=c;ya:{if(f>>>16>>>0>=b>>> -0){i=f-(b<<16)|0;J[h>>2]=i;g=J[e+4>>2];if(c&32768)break ya;o=J[e+4>>2];sa=b>>>0>c>>>0;J[k+24>>2]=J[e+(sa?12:8)>>2];f=J[h+8>>2];while(1){if(!f){f=8;g=65280;b=J[h+12>>2];e=J[h+20>>2];za:{if((b|0)==(e|0))break za;k=e;e=b+1|0;Aa:{if((k|0)!=(e|0)){k=K[b+1|0];if(K[b|0]!=255)break Aa;if(k>>>0>143)break za;J[h+12>>2]=e;g=k<<9;f=7;break za}k=255;if(K[b|0]==255)break za}J[h+12>>2]=e;g=k<<8}i=g+i|0}f=f-1|0;J[h+8>>2]=f;i=i<<1;J[h>>2]=i;c=c<<1;J[h+4>>2]=c;if(c>>>0<32768)continue;break}g=sa?1-o|0:o;break ya}i= -J[e+4>>2];J[h+4>>2]=b;sa=b>>>0>c>>>0;J[k+24>>2]=J[e+(sa?8:12)>>2];c=J[h+8>>2];while(1){if(!c){c=8;g=65280;e=J[h+12>>2];k=J[h+20>>2];Ba:{if((e|0)==(k|0))break Ba;o=e+1|0;Ca:{if((o|0)!=(k|0)){k=K[e+1|0];if(K[e|0]!=255)break Ca;if(k>>>0>143)break Ba;J[h+12>>2]=o;g=k<<9;c=7;break Ba}k=255;if(K[e|0]==255)break Ba}J[h+12>>2]=o;g=k<<8}f=f+g|0}c=c-1|0;J[h+8>>2]=c;f=f<<1;J[h>>2]=f;b=b<<1;J[h+4>>2]=b;if(b>>>0<32768)continue;break}g=sa?i:1-i|0}b=g;k=(b|0)==J[ja+21516>>2];J[ga>>2]=k?xa:Ja;b=r-4108|0;J[b>>2]= -J[b>>2]|2;b=r-4100|0;J[b>>2]=J[b>>2]|4;J[r+4100>>2]=J[r+4100>>2]|1;J[r+4108>>2]=J[r+4108>>2]|8;b=r-4104|0;c=J[b>>2];J[b>>2]=c|64;g=J[r+4104>>2];J[r+4104>>2]=g|16;e=(Z+za|0)+4218892|0;f=J[e>>2];J[e>>2]=f|32;i=J[r+4>>2];J[r+4>>2]=i|128;if(!k){J[b>>2]=c|1088;J[r+4104>>2]=g|272;J[e>>2]=f|544;J[r+4>>2]=i|2176}f=J[r>>2]|4096;break qa}f=J[r>>2]}J[r>>2]=f&-16385;if((l|0)<(Y|0))continue;break}}if((m|0)!=(v|0))continue;break}d=s;if($)continue;break}}if(!Fa)break U;J[j+152>>2]=j+96;g=J[j+96>>2];c=J[g>>2];b= -J[j+4>>2]-c|0;J[j+4>>2]=b;e=J[j>>2];Da:{if(e>>>16>>>0>>0){J[j+4>>2]=c;g=J[(b>>>0>>0?8:12)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];d=J[j+20>>2];Ea:{if((b|0)==(d|0))break Ea;l=d;d=b+1|0;Fa:{if((l|0)!=(d|0)){h=K[b+1|0];if(K[b|0]!=255)break Fa;if(h>>>0>143)break Ea;J[j+12>>2]=d;i=h<<9;f=7;break Ea}h=255;if(K[b|0]==255)break Ea}J[j+12>>2]=d;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;break Da}e=e-(c<<16)| -0;J[j>>2]=e;if(b&32768)break Da;g=J[(b>>>0>>0?12:8)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;d=J[j+12>>2];c=J[j+20>>2];Ga:{if((d|0)==(c|0))break Ga;l=c;c=d+1|0;Ha:{if((l|0)!=(c|0)){h=K[d+1|0];if(K[d|0]!=255)break Ha;if(h>>>0>143)break Ga;J[j+12>>2]=c;i=h<<9;f=7;break Ga}h=255;if(K[d|0]==255)break Ga}J[j+12>>2]=c;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}}c=J[g>>2];b=b-c|0;J[j+4>>2]=b;Ia:{if(e>>>16>>>0>>0){J[j+4>>2]= -c;g=J[(b>>>0>>0?8:12)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];d=J[j+20>>2];Ja:{if((b|0)==(d|0))break Ja;l=d;d=b+1|0;Ka:{if((l|0)!=(d|0)){h=K[b+1|0];if(K[b|0]!=255)break Ka;if(h>>>0>143)break Ja;J[j+12>>2]=d;i=h<<9;f=7;break Ja}h=255;if(K[b|0]==255)break Ja}J[j+12>>2]=d;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;break Ia}e=e-(c<<16)|0;J[j>>2]=e;if(b&32768)break Ia;g=J[(b>>>0>>0?12:8)+g>>2];J[j+96>>2]= -g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;d=J[j+12>>2];c=J[j+20>>2];La:{if((d|0)==(c|0))break La;l=c;c=d+1|0;Ma:{if((l|0)!=(c|0)){h=K[d+1|0];if(K[d|0]!=255)break Ma;if(h>>>0>143)break La;J[j+12>>2]=c;i=h<<9;f=7;break La}h=255;if(K[d|0]==255)break La}J[j+12>>2]=c;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}}c=J[g>>2];b=b-c|0;J[j+4>>2]=b;Na:{if(e>>>16>>>0>>0){J[j+4>>2]=c;g=J[(b>>>0>>0?8:12)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f= -8;i=65280;b=J[j+12>>2];d=J[j+20>>2];Oa:{if((b|0)==(d|0))break Oa;l=d;d=b+1|0;Pa:{if((l|0)!=(d|0)){h=K[b+1|0];if(K[b|0]!=255)break Pa;if(h>>>0>143)break Oa;J[j+12>>2]=d;i=h<<9;f=7;break Oa}h=255;if(K[b|0]==255)break Oa}J[j+12>>2]=d;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;break Na}e=e-(c<<16)|0;J[j>>2]=e;if(b&32768)break Na;g=J[(b>>>0>>0?12:8)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;d=J[j+12>>2];c=J[j+20>>2];Qa:{if((d| -0)==(c|0))break Qa;l=c;c=d+1|0;Ra:{if((l|0)!=(c|0)){h=K[d+1|0];if(K[d|0]!=255)break Ra;if(h>>>0>143)break Qa;J[j+12>>2]=c;i=h<<9;f=7;break Qa}h=255;if(K[d|0]==255)break Qa}J[j+12>>2]=c;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}}c=J[g>>2];f=b-c|0;J[j+4>>2]=f;if(e>>>16>>>0>>0){J[j+4>>2]=c;J[j+96>>2]=J[(c>>>0>f>>>0?8:12)+g>>2];f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];d=J[j+20>>2];Sa:{if((b|0)==(d|0))break Sa;l=d;d=b+1|0;Ta:{if((l| -0)!=(d|0)){h=K[b+1|0];if(K[b|0]!=255)break Ta;if(h>>>0>143)break Sa;J[j+12>>2]=d;i=h<<9;f=7;break Sa}h=255;if(K[b|0]==255)break Sa}J[j+12>>2]=d;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}break U}b=e-(c<<16)|0;J[j>>2]=b;if(f&32768)break U;J[j+96>>2]=J[(c>>>0>f>>>0?12:8)+g>>2];e=J[j+8>>2];while(1){if(!e){e=8;i=65280;d=J[j+12>>2];c=J[j+20>>2];Ua:{if((d|0)==(c|0))break Ua;l=c;c=d+1|0;Va:{if((l|0)!=(c|0)){h=K[d+1|0];if(K[d|0]!=255)break Va;if(h>>> -0>143)break Ua;J[j+12>>2]=c;i=h<<9;e=7;break Ua}h=255;if(K[d|0]==255)break Ua}J[j+12>>2]=c;i=h<<8}b=b+i|0}e=e-1|0;J[j+8>>2]=e;b=b<<1;J[j>>2]=b;f=f<<1;J[j+4>>2]=f;if(f>>>0<32768)continue;break}break U;case 1:break W;default:break U}if(Ea)break U;s=1<>1;q=(z|0)<0?-1:0-s|0;d=0;if(na){m=J[n+8>>2];j=J[n+4>>2];k=0;while(1){b=k;o=b|3;k=b+4|0;h=0;while(1){l=h;h=h+1|0;f=b;while(1){Wa:{if(!O){e=f+1|0;i=((n+P(e,4104)|0)+(h<<2)|0)+4218892|0;d=J[i>>2];break Wa}e=f+1|0;i=((n+P(e,4104)|0)+(h<<2)|0)+4218892| -0;d=J[i>>2];d=(f|0)==(o|0)|(f|0)==(F|0)?d&-1095:d}if((d&20480)==4096){f=((n+(f<<12)|0)+(l<<2)|0)+24588|0;J[j+152>>2]=(j+(J[(n+((d>>>2&2048|d&255)<<2)|0)+5132>>2]<<2)|0)+24;c=J[m+4>>2];Xa:{if(c){g=K[m|0];break Xa}J[m+4>>2]=8;d=J[m+12>>2];if((d|0)!=J[m+8>>2]){c=8;if(K[m|0]==255){J[m+4>>2]=7;c=7}g=K[d+J[m+20>>2]|0];J[m+12>>2]=d+1;H[m|0]=g;break Xa}g=255;H[m|0]=255;c=8}d=c-1|0;J[m+4>>2]=d;d=(g&255)>>>d&1?s:q;g=0-d|0;c=d;d=J[f>>2];J[f>>2]=((d|0)<0?g:c)+d;J[i>>2]=J[i>>2]|8192}if(e>>>0>>0){f=e;if((u| -0)>(e|0))continue}break}if((h|0)!=(v|0))continue;break}if((k|0)<(u|0))continue;break}break U}while(1){$=d|3;j=d+4|0;m=0;while(1){o=m;m=m+1|0;e=d;while(1){Ya:{if(!O){k=e+1|0;l=((n+P(k,4104)|0)+(m<<2)|0)+4218892|0;b=J[l>>2];break Ya}k=e+1|0;l=((n+P(k,4104)|0)+(m<<2)|0)+4218892|0;b=J[l>>2];b=(e|0)==($|0)|(e|0)==(F|0)?b&-1095:b}if((b&20480)==4096){r=J[n+4>>2];g=r+(J[(n+((b>>>2&2048|b&255)<<2)|0)+5132>>2]<<2)|0;J[r+152>>2]=g+24;f=J[g+24>>2];c=J[f>>2];i=J[r+4>>2]-c|0;J[r+4>>2]=i;Y=((n+(e<<12)|0)+(o<<2)| -0)+24588|0;b=J[r>>2];Za:{if(b>>>16>>>0>=c>>>0){b=b-(c<<16)|0;J[r>>2]=b;e=J[f+4>>2];if(i&32768)break Za;e=J[f+4>>2];da=c>>>0>i>>>0;J[g+24>>2]=J[f+(da?12:8)>>2];f=J[r+8>>2];while(1){if(!f){f=8;h=65280;c=J[r+12>>2];g=J[r+20>>2];_a:{if((c|0)==(g|0))break _a;B=c+1|0;$a:{if((B|0)!=(g|0)){g=K[c+1|0];if(K[c|0]!=255)break $a;if(g>>>0>143)break _a;J[r+12>>2]=B;h=g<<9;f=7;break _a}g=255;if(K[c|0]==255)break _a}J[r+12>>2]=B;h=g<<8}b=b+h|0}f=f-1|0;J[r+8>>2]=f;b=b<<1;J[r>>2]=b;i=i<<1;J[r+4>>2]=i;if(i>>>0<32768)continue; -break}e=da?1-e|0:e;break Za}B=J[f+4>>2];J[r+4>>2]=c;da=c>>>0>i>>>0;J[g+24>>2]=J[f+(da?8:12)>>2];f=J[r+8>>2];while(1){if(!f){f=8;h=65280;e=J[r+12>>2];g=J[r+20>>2];ab:{if((e|0)==(g|0))break ab;i=e+1|0;bb:{if((i|0)!=(g|0)){g=K[e+1|0];if(K[e|0]!=255)break bb;if(g>>>0>143)break ab;J[r+12>>2]=i;h=g<<9;f=7;break ab}g=255;if(K[e|0]==255)break ab}J[r+12>>2]=i;h=g<<8}b=b+h|0}f=f-1|0;J[r+8>>2]=f;b=b<<1;J[r>>2]=b;c=c<<1;J[r+4>>2]=c;if(c>>>0<32768)continue;break}e=da?B:1-B|0}b=e?s:q;e=0-b|0;c=b;b=J[Y>>2];J[Y>> -2]=((b|0)<0?e:c)+b;J[l>>2]=J[l>>2]|8192}if(j>>>0>k>>>0){e=k;if((u|0)>(e|0))continue}break}if((m|0)!=(v|0))continue;break}d=j;if((u|0)>(d|0))continue;break}break U}while(1){da=d|3;s=d+4|0;e=0;while(1){j=e;e=e+1|0;l=d;while(1){cb:{if(!O){m=l+1|0;g=((n+P(m,4104)|0)+(e<<2)|0)+4218892|0;q=J[g>>2];break cb}m=l+1|0;g=((n+P(m,4104)|0)+(e<<2)|0)+4218892|0;b=J[g>>2];q=(l|0)==(da|0)|(l|0)==(F|0)?b&-1095:b}b=q&255;if(!(!b|q&20480)){o=J[n+4>>2];k=o+(J[(n+((b|pa)<<2)|0)+12>>2]<<2)|0;J[o+152>>2]=k+24;c=J[k+24>> -2];b=J[c>>2];i=J[o+4>>2]-b|0;J[o+4>>2]=i;f=J[o>>2];db:{if(f>>>16>>>0>=b>>>0){f=f-(b<<16)|0;J[o>>2]=f;h=J[c+4>>2];if(i&32768)break db;$=J[c+4>>2];ca=b>>>0>i>>>0;J[k+24>>2]=J[c+(ca?12:8)>>2];c=J[o+8>>2];while(1){if(!c){c=8;h=65280;b=J[o+12>>2];k=J[o+20>>2];eb:{if((b|0)==(k|0))break eb;Y=b+1|0;fb:{if((Y|0)!=(k|0)){k=K[b+1|0];if(K[b|0]!=255)break fb;if(k>>>0>143)break eb;J[o+12>>2]=Y;h=k<<9;c=7;break eb}k=255;if(K[b|0]==255)break eb}J[o+12>>2]=Y;h=k<<8}f=f+h|0}c=c-1|0;J[o+8>>2]=c;f=f<<1;J[o>>2]=f;i=i<< -1;J[o+4>>2]=i;if(i>>>0<32768)continue;break}h=ca?1-$|0:$;break db}$=J[c+4>>2];J[o+4>>2]=b;ca=b>>>0>i>>>0;J[k+24>>2]=J[c+(ca?8:12)>>2];c=J[o+8>>2];while(1){if(!c){c=8;h=65280;i=J[o+12>>2];k=J[o+20>>2];gb:{if((i|0)==(k|0))break gb;Y=i+1|0;hb:{if((Y|0)!=(k|0)){k=K[i+1|0];if(K[i|0]!=255)break hb;if(k>>>0>143)break gb;J[o+12>>2]=Y;h=k<<9;c=7;break gb}k=255;if(K[i|0]==255)break gb}J[o+12>>2]=Y;h=k<<8}f=f+h|0}c=c-1|0;J[o+8>>2]=c;f=f<<1;J[o>>2]=f;b=b<<1;J[o+4>>2]=b;if(b>>>0<32768)continue;break}i=b;h=ca? -$:1-$|0}ib:{if(!h){b=J[g>>2];break ib}$=j<<2;Y=($+(n+(l<<12)|0)|0)+24588|0;ca=n+((q>>>4&255)<<2)|0;k=o+(J[ca+4108>>2]<<2)|0;J[o+152>>2]=k+24;l=J[k+24>>2];b=J[l>>2];c=i-b|0;J[o+4>>2]=c;jb:{if(f>>>16>>>0>=b>>>0){i=f-(b<<16)|0;J[o>>2]=i;f=J[l+4>>2];if(c&32768)break jb;q=J[l+4>>2];Z=b>>>0>c>>>0;J[k+24>>2]=J[l+(Z?12:8)>>2];f=J[o+8>>2];while(1){if(!f){f=8;h=65280;b=J[o+12>>2];l=J[o+20>>2];kb:{if((b|0)==(l|0))break kb;k=l;l=b+1|0;lb:{if((k|0)!=(l|0)){k=K[b+1|0];if(K[b|0]!=255)break lb;if(k>>>0>143)break kb; -J[o+12>>2]=l;h=k<<9;f=7;break kb}k=255;if(K[b|0]==255)break kb}J[o+12>>2]=l;h=k<<8}i=h+i|0}f=f-1|0;J[o+8>>2]=f;i=i<<1;J[o>>2]=i;c=c<<1;J[o+4>>2]=c;if(c>>>0<32768)continue;break}f=Z?1-q|0:q;break jb}i=J[l+4>>2];J[o+4>>2]=b;Z=b>>>0>c>>>0;J[k+24>>2]=J[l+(Z?8:12)>>2];c=J[o+8>>2];while(1){if(!c){c=8;h=65280;l=J[o+12>>2];k=J[o+20>>2];mb:{if((l|0)==(k|0))break mb;q=l+1|0;nb:{if((q|0)!=(k|0)){k=K[l+1|0];if(K[l|0]!=255)break nb;if(k>>>0>143)break mb;J[o+12>>2]=q;h=k<<9;c=7;break mb}k=255;if(K[l|0]==255)break mb}J[o+ -12>>2]=q;h=k<<8}f=f+h|0}c=c-1|0;J[o+8>>2]=c;f=f<<1;J[o>>2]=f;b=b<<1;J[o+4>>2]=b;if(b>>>0<32768)continue;break}f=Z?i:1-i|0}b=f;k=(b|0)==J[ca+21516>>2];J[Y>>2]=k?r:B;b=g-4108|0;J[b>>2]=J[b>>2]|2;b=g-4100|0;J[b>>2]=J[b>>2]|4;J[g+4100>>2]=J[g+4100>>2]|1;J[g+4108>>2]=J[g+4108>>2]|8;b=g-4104|0;c=J[b>>2];J[b>>2]=c|64;i=J[g+4104>>2];J[g+4104>>2]=i|16;f=($+(n+P(m,4104)|0)|0)+4218892|0;l=J[f>>2];J[f>>2]=l|32;h=J[g+4>>2];J[g+4>>2]=h|128;if(!k){J[b>>2]=c|1088;J[g+4104>>2]=i|272;J[f>>2]=l|544;J[g+4>>2]=h|2176}b= -J[g>>2]|4096}J[g>>2]=b|16384}if(m>>>0>>0){l=m;if((u|0)>(l|0))continue}break}if((e|0)!=(v|0))continue;break}d=s;if((u|0)>(d|0))continue;break}}if(!Ia){J[p+148>>2]=2635504;J[p+144>>2]=2635504;J[p+140>>2]=2635504;J[p+136>>2]=2635504;J[p+132>>2]=2635504;J[p+128>>2]=2635504;J[p+124>>2]=2635504;J[p+120>>2]=2635504;J[p+116>>2]=2635504;J[p+112>>2]=2635504;J[p+108>>2]=2635504;J[p+104>>2]=2635504;J[p+100>>2]=2635504;J[p+88>>2]=2635504;J[p+84>>2]=2635504;J[p+80>>2]=2635504;J[p+76>>2]=2635504;J[p+72>>2]=2635504; -J[p+68>>2]=2635504;J[p+64>>2]=2635504;J[p+60>>2]=2635504;J[p+56>>2]=2635504;J[p+52>>2]=2635504;J[p+48>>2]=2635504;J[p+44>>2]=2635504;J[p+40>>2]=2635504;J[p+36>>2]=2635504;J[p+32>>2]=2635504;J[p+28>>2]=2635504;J[p+92>>2]=2635600;J[p+96>>2]=2636976;J[p+24>>2]=2635632}d=E+1|0;b=(d|0)==3;E=b?0:d;z=z-b|0;va=va+1|0;if((va|0)>2])continue;break}c=J[t+36>>2]}aa=aa+1|0;if((aa|0)<(c|0))continue;break}}b=J[A+32>>2];g=J[t+4>>2];e=J[t>>2];l=e-J[A+28>>2]|0;d=J[A+44>>2];if(d&1){c=(oa+J[x+20>>2]|0)-124|0; -l=(J[c+8>>2]+l|0)-J[c>>2]|0}o=g-b|0;if(d&2){b=(oa+J[x+20>>2]|0)-124|0;o=(J[b+12>>2]+o|0)-J[b+4>>2]|0}m=J[qa+1872>>2];b=ra+m|0;d=J[b+808>>2];ob:{if(!d)break ob;c=J[t+12>>2];if((g|0)>=(c|0))break ob;i=1<>2];k=0;while(1){f=0;if((e|0)<(h|0)){while(1){g=((n+(k<<12)|0)+(f<<2)|0)+24588|0;d=J[g>>2];c=d>>31;c=(c^d)-c|0;if((c|0)>=(i|0)){c=c>>>J[b+808>>2]|0;J[g>>2]=(d|0)<0?0-c|0:c;h=J[t+8>>2];e=J[t>>2]}f=f+1|0;if((f|0)<(h-e|0))continue;break}g=J[t+4>>2];c=J[t+12>>2]}k=k+1|0;if((k|0)<(c-g|0))continue; -break}}d=J[x+8>>2]-J[x>>2]|0;f=J[t+12>>2];pb:{if(J[b+20>>2]!=1){if((f|0)<=(g|0))break pb;c=J[t+8>>2];h=0;while(1){if((c|0)>(e|0)){k=(J[x+24>>2]+(l<<2)|0)+(P(d,h+o|0)<<2)|0;f=0;while(1){e=0;c=f<<2;b=J[(c+(n+(h<<12)|0)|0)+24588>>2];if(b>>>0>=2){ma=Q(N[A+56>>2]*Q(b<<12));U=+ma;fa=V(R(U+U));qb:{if(R(fa)<2147483648){b=~~fa;break qb}b=-2147483648}e=(b|0)%2|0;U=V(R(U));rb:{if(R(U)<2147483648){b=~~U;break rb}b=-2147483648}b=b+e|0;e=ma>2]=e;f=f+1|0;c=J[t+8>>2];e=J[t>>2];if((f|0)<(c-e|0))continue; -break}g=J[t+4>>2];f=J[t+12>>2]}h=h+1|0;if((h|0)<(f-g|0))continue;break}break pb}if((f|0)<=(g|0))break pb;i=J[t+8>>2];c=0;while(1){if((e|0)<(i|0)){b=(J[x+24>>2]+(l<<2)|0)+(P(d,c+o|0)<<2)|0;f=0;while(1){e=f<<2;J[e+b>>2]=J[(e+(n+(c<<12)|0)|0)+24588>>2]/2;f=f+1|0;i=J[t+8>>2];e=J[t>>2];if((f|0)<(i-e|0))continue;break}g=J[t+4>>2];f=J[t+12>>2]}c=c+1|0;if((c|0)<(f-g|0))continue;break}}ea=ea+1|0;if((ea|0)<(P(J[G+20>>2],J[G+16>>2])|0))continue;break}f=J[y+20>>2];c=J[y+16>>2]}ha=ha+1|0;if((ha|0)<(P(c,f)|0))continue; -break}e=J[y+24>>2]}X=X+1|0;if((X|0)<(e|0))continue;break}f=J[x+16>>2]}_=_+1|0;if((_|0)<(f|0))continue;break}e=J[w+16>>2]}M=M+1|0;if((M|0)<(e|0))continue;break}}if(n){b=J[n+4>>2];if(b)qc(b);b=J[n+8>>2];if(b)qc(b);qc(n)}w=ba+P(D,840)|0;if(J[w+16>>2]>0){d=J[w+20>>2];c=0;while(1){O=c<<5;d=O+d|0;b=J[J[C+12>>2]+12>>2];if(b)J[(J[J[C+8>>2]+24>>2]+P(c,48)|0)+36>>2]=J[d+16>>2]+(b^-1);x=J[d+16>>2];S=P(c,48);b=x+(J[(S+J[J[C+8>>2]+24>>2]|0)+36>>2]^-1)|0;sb:{if(J[(J[J[C+20>>2]+1872>>2]+P(c,1076)|0)+20>>2]==1){i= -x-2|0;if((b|0)>(i|0))break sb;f=b;t=J[d+24>>2];s=J[d+8>>2]-J[d>>2]|0;h=s<<2;_=J[d+20>>2];while(1){b=_+P(x+(i^-1)|0,124)|0;d=b-124|0;e=J[d>>2];m=J[d+8>>2];r=J[b+12>>2];z=J[d+4>>2];u=J[d+12>>2];o=J[b+4>>2];d=J[b+8>>2];b=J[b>>2];p=d-b|0;F=p<<2;n=bd(1,F);if(!n)break sb;y=(b|0)%2|0;q=r-o|0;M=(q|0)<=0;if(!M){j=m-e|0;v=p-j|0;G=v&-8;A=v&7;I=j&-8;E=j&7;k=y<<2;l=k+n|0;k=(n-k|0)+4|0;g=0;B=m+(e^-1)>>>0>6;X=(d+e|0)+(b+m^-1)>>>0<7;while(1){e=t+(P(g,s)<<2)|0;tb:{if((j|0)<=0)break tb;m=0;b=l;d=e;if(B)while(1){J[b>> -2]=J[d>>2];J[b+8>>2]=J[d+4>>2];J[b+16>>2]=J[d+8>>2];J[b+24>>2]=J[d+12>>2];J[b+32>>2]=J[d+16>>2];J[b+40>>2]=J[d+20>>2];J[b+48>>2]=J[d+24>>2];J[b+56>>2]=J[d+28>>2];d=d+32|0;b=b- -64|0;m=m+8|0;if((I|0)!=(m|0))continue;break}m=0;if(!E)break tb;while(1){J[b>>2]=J[d>>2];d=d+4|0;b=b+8|0;m=m+1|0;if((E|0)!=(m|0))continue;break}}ub:{if((v|0)<=0)break ub;b=e+(j<<2)|0;m=0;d=k;if(!X)while(1){J[d>>2]=J[b>>2];J[d+8>>2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];J[d+24>>2]=J[b+12>>2];J[d+32>>2]=J[b+16>>2];J[d+40>>2]=J[b+20>> -2];J[d+48>>2]=J[b+24>>2];J[d+56>>2]=J[b+28>>2];b=b+32|0;d=d- -64|0;m=m+8|0;if((G|0)!=(m|0))continue;break}m=0;if(!A)break ub;while(1){J[d>>2]=J[b>>2];b=b+4|0;d=d+8|0;m=m+1|0;if((A|0)!=(m|0))continue;break}}Y8(n,v,j,y);if((p|0)>0)tc(t+P(h,g)|0,n,F);g=g+1|0;if((q|0)!=(g|0))continue;break}}qc(n);n=bd(1,q<<2);if(!n)break sb;v=(o|0)%2|0;if((p|0)>0){F=q&-4;y=q&3;b=q;q=u-z|0;j=b-q|0;G=j&-4;A=j&3;I=q&-4;E=q&3;b=v<<2;l=b+n|0;k=(n-b|0)+4|0;g=0;B=u+(z^-1)>>>0>2;X=P(q,s)<<2;z=(r+z|0)+(o+u^-1)>>>0<3;o=r+(o^-1)>>> -0>2;while(1){e=t+(g<<2)|0;vb:{if((q|0)<=0)break vb;m=0;b=l;d=e;if(B)while(1){J[b>>2]=J[d>>2];d=d+h|0;J[b+8>>2]=J[d>>2];d=d+h|0;J[b+16>>2]=J[d>>2];d=d+h|0;J[b+24>>2]=J[d>>2];d=d+h|0;b=b+32|0;m=m+4|0;if((I|0)!=(m|0))continue;break}m=0;if(!E)break vb;while(1){J[b>>2]=J[d>>2];b=b+8|0;d=d+h|0;m=m+1|0;if((E|0)!=(m|0))continue;break}}wb:{if((j|0)<=0)break wb;d=e+X|0;m=0;b=k;if(!z)while(1){J[b>>2]=J[d>>2];d=d+h|0;J[b+8>>2]=J[d>>2];d=d+h|0;J[b+16>>2]=J[d>>2];d=d+h|0;J[b+24>>2]=J[d>>2];d=d+h|0;b=b+32|0;m=m+ -4|0;if((G|0)!=(m|0))continue;break}m=0;if(!A)break wb;while(1){J[b>>2]=J[d>>2];b=b+8|0;d=d+h|0;m=m+1|0;if((A|0)!=(m|0))continue;break}}Y8(n,j,q,v);xb:{if(M)break xb;d=0;b=0;m=0;if(o)while(1){J[e+(P(b,s)<<2)>>2]=J[n+(b<<2)>>2];r=b|1;J[e+(P(r,s)<<2)>>2]=J[n+(r<<2)>>2];r=b|2;J[e+(P(r,s)<<2)>>2]=J[n+(r<<2)>>2];r=b|3;J[e+(P(r,s)<<2)>>2]=J[n+(r<<2)>>2];b=b+4|0;m=m+4|0;if((F|0)!=(m|0))continue;break}if(!y)break xb;while(1){J[e+(P(b,s)<<2)>>2]=J[n+(b<<2)>>2];b=b+1|0;d=d+1|0;if((y|0)!=(d|0))continue;break}}g= -g+1|0;if((p|0)!=(g|0))continue;break}}qc(n);b=(f|0)<(i|0);i=i-1|0;if(b)continue;break}break sb}_=J[d+16>>2];i=_-2|0;yb:{if((b|0)>(i|0))break yb;f=b;h=J[d+8>>2]-J[d>>2]|0;v=J[d+24>>2];F=J[d+20>>2];while(1){b=F+P(_+(i^-1)|0,124)|0;d=b-124|0;e=J[d>>2];m=J[d+8>>2];t=J[b+12>>2];r=J[d+4>>2];z=J[d+12>>2];p=J[b+4>>2];d=J[b+8>>2];b=J[b>>2];s=d-b|0;n=bd(1,s<<2);if(!n)break yb;x=(b|0)%2|0;q=t-p|0;M=(q|0)<=0;if(!M){G=s&-4;y=s&3;j=m-e|0;o=s-j|0;I=o&-8;A=o&7;B=j&-8;E=j&7;k=x<<2;l=k+n|0;k=(n-k|0)+4|0;u=0;X=m+(e^ --1)>>>0>6;d=d-1|0;ha=d+e-(b+m)>>>0<7;ea=d-b>>>0>2;while(1){e=v+(P(h,u)<<2)|0;zb:{if((j|0)<=0)break zb;m=0;b=l;d=e;if(X)while(1){J[b>>2]=J[d>>2];J[b+8>>2]=J[d+4>>2];J[b+16>>2]=J[d+8>>2];J[b+24>>2]=J[d+12>>2];J[b+32>>2]=J[d+16>>2];J[b+40>>2]=J[d+20>>2];J[b+48>>2]=J[d+24>>2];J[b+56>>2]=J[d+28>>2];d=d+32|0;b=b- -64|0;m=m+8|0;if((B|0)!=(m|0))continue;break}m=0;if(!E)break zb;while(1){J[b>>2]=J[d>>2];d=d+4|0;b=b+8|0;m=m+1|0;if((E|0)!=(m|0))continue;break}}Ab:{if((o|0)<=0)break Ab;b=e+(j<<2)|0;m=0;d=k;if(!ha)while(1){J[d>> -2]=J[b>>2];J[d+8>>2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];J[d+24>>2]=J[b+12>>2];J[d+32>>2]=J[b+16>>2];J[d+40>>2]=J[b+20>>2];J[d+48>>2]=J[b+24>>2];J[d+56>>2]=J[b+28>>2];b=b+32|0;d=d- -64|0;m=m+8|0;if((I|0)!=(m|0))continue;break}m=0;if(!A)break Ab;while(1){J[d>>2]=J[b>>2];b=b+4|0;d=d+8|0;m=m+1|0;if((A|0)!=(m|0))continue;break}}X8(n,o,j,x);Bb:{if((s|0)<=0)break Bb;m=0;b=0;g=0;if(ea)while(1){d=b<<2;J[d+e>>2]=J[d+n>>2];aa=d|4;J[aa+e>>2]=J[n+aa>>2];aa=d|8;J[aa+e>>2]=J[n+aa>>2];d=d|12;J[d+e>>2]=J[d+n>>2];b=b+ -4|0;g=g+4|0;if((G|0)!=(g|0))continue;break}if(!y)break Bb;while(1){d=b<<2;J[d+e>>2]=J[d+n>>2];b=b+1|0;m=m+1|0;if((y|0)!=(m|0))continue;break}}u=u+1|0;if((q|0)!=(u|0))continue;break}}qc(n);n=bd(1,q<<2);if(!n)break yb;u=(p|0)%2|0;if((s|0)>0){E=q&-4;x=q&3;b=q;q=z-r|0;j=b-q|0;G=j&-4;y=j&3;I=q&-4;A=q&3;b=u<<2;l=b+n|0;k=(n-b|0)+4|0;o=0;B=z+(r^-1)>>>0>2;X=P(h,q)<<2;r=(r+t|0)+(p+z^-1)>>>0<3;p=t+(p^-1)>>>0>2;while(1){e=v+(o<<2)|0;Cb:{if((q|0)<=0)break Cb;g=0;b=l;d=e;if(B)while(1){J[b>>2]=J[d>>2];m=d;d=h<< -2;m=m+d|0;J[b+8>>2]=J[m>>2];m=d+m|0;J[b+16>>2]=J[m>>2];m=d+m|0;J[b+24>>2]=J[m>>2];d=d+m|0;b=b+32|0;g=g+4|0;if((I|0)!=(g|0))continue;break}m=0;if(!A)break Cb;while(1){J[b>>2]=J[d>>2];b=b+8|0;d=(h<<2)+d|0;m=m+1|0;if((A|0)!=(m|0))continue;break}}Db:{if((j|0)<=0)break Db;d=e+X|0;g=0;b=k;if(!r)while(1){J[b>>2]=J[d>>2];m=d;d=h<<2;m=m+d|0;J[b+8>>2]=J[m>>2];m=d+m|0;J[b+16>>2]=J[m>>2];m=d+m|0;J[b+24>>2]=J[m>>2];d=d+m|0;b=b+32|0;g=g+4|0;if((G|0)!=(g|0))continue;break}m=0;if(!y)break Db;while(1){J[b>>2]=J[d>> -2];b=b+8|0;d=(h<<2)+d|0;m=m+1|0;if((y|0)!=(m|0))continue;break}}X8(n,j,q,u);Eb:{if(M)break Eb;d=0;b=0;m=0;if(p)while(1){J[e+(P(b,h)<<2)>>2]=J[n+(b<<2)>>2];g=b|1;J[e+(P(g,h)<<2)>>2]=J[n+(g<<2)>>2];g=b|2;J[e+(P(g,h)<<2)>>2]=J[n+(g<<2)>>2];g=b|3;J[e+(P(g,h)<<2)>>2]=J[n+(g<<2)>>2];b=b+4|0;m=m+4|0;if((E|0)!=(m|0))continue;break}if(!x)break Eb;while(1){J[e+(P(b,h)<<2)>>2]=J[n+(b<<2)>>2];b=b+1|0;d=d+1|0;if((x|0)!=(d|0))continue;break}}o=o+1|0;if((s|0)!=(o|0))continue;break}}qc(n);b=(f|0)<(i|0);i=i-1|0;if(b)continue; -break}}}d=J[w+20>>2];b=J[(O+d|0)+16>>2];if((b|0)>0){e=S+J[J[C+8>>2]+24>>2]|0;J[e+40>>2]=b+(J[e+36>>2]^-1)}c=c+1|0;if((c|0)>2])continue;break}}h=J[C+20>>2];Fb:{if(!J[h+16>>2])break Fb;b=J[(ba+P(D,840)|0)+20>>2];g=P(J[b+12>>2]-J[b+4>>2]|0,J[b+8>>2]-J[b>>2]|0);n=J[b+24>>2];s=J[b+88>>2];q=J[b+56>>2];if(J[J[h+1872>>2]+20>>2]==1){if((g|0)<=0)break Fb;c=0;while(1){b=c<<2;d=b+n|0;e=b+s|0;f=J[e>>2];l=b+q|0;k=J[l>>2];b=J[d>>2]-(f+k>>2)|0;J[d>>2]=b+f;J[l>>2]=b;J[e>>2]=b+k;c=c+1|0;if((g|0)!=(c|0))continue; -break}break Fb}if((g|0)<=0)break Fb;c=0;while(1){e=c<<2;k=e+q|0;d=J[k>>2];i=d>>31;b=e+n|0;j=b;b=J[b>>2];m=e+s|0;e=J[m>>2];f=e>>31;l=Dzb(e,f,11485,0);o=fc;l=(((o&4095)<<20|l>>>12)&1)+((o&8191)<<19|l>>>13)|0;J[j>>2]=b+l;Dzb(e,f,0,-1227882496);l=fc;e=Dzb(e,f,5850,0);e=(l>>31)-((fc&8191)<<19|e>>>13)|0;Dzb(d,i,0,1477967872);f=fc;l=Dzb(d,i,2819,0);J[k>>2]=(((f>>31)-((fc&8191)<<19|l>>>13)|0)+b|0)+e;e=b;b=Dzb(d,i,14516,0);d=fc;b=(((d&4095)<<20|b>>>12)&1)+((d&8191)<<19|b>>>13)|0;J[m>>2]=b+e;c=c+1|0;if((g| -0)!=(c|0))continue;break}}b=J[w+16>>2];Gb:{if((b|0)<=0)break Gb;n=J[(ba+P(D,840)|0)+20>>2];s=J[J[C+8>>2]+24>>2];k=0;while(1){m=n+(k<<5)|0;f=s+P(k,48)|0;e=J[m+20>>2]+P(J[f+36>>2],124)|0;l=J[e+4>>2];i=J[e+12>>2];Hb:{if((l|0)>=(i|0))break Hb;d=J[e+8>>2];if((d|0)<=J[e>>2])break Hb;b=J[f+24>>2];c=b-1|0;q=-1<>2];g=(b?q:g)^-1;j=b?0:1<>2]-J[m>>2]|0;c=J[f+40>>2];o=-1<>2]>>c;o=o+J[f+16>>2]>>c;t=J[f+8>>2];while(1){c=J[e>>2];if((d|0)>(c|0)){i=J[h+1872>> -2]+P(k,1076)|0;r=J[f+44>>2]+(P(t,l-p|0)<<2)|0;z=J[m+24>>2];while(1){d=J[(z+(c-J[e>>2]<<2)|0)+(P(q,l-J[e+4>>2]|0)<<2)>>2];u=r+(c-o<<2)|0;if(J[i+20>>2]!=1){ma=Q(+(d|0)*1.220703125E-4);ta=Q(V(Q(R(Q(ma+ma)))));Ib:{if(Q(R(ta))>2]=(b|0)>(d|0)?b:(d|0)<(g|0)?d:g;c=c+1|0;d=J[e+8>>2];if((c|0)<(d|0))continue;break}i=J[e+12>>2]}l=l+1|0; -if((l|0)<(i|0))continue;break}b=J[w+16>>2]}k=k+1|0;if((k|0)<(b|0))continue;break}if((b|0)<=0)break Gb;e=P(D,840);d=J[(e+J[J[C+4>>2]+8>>2]|0)+20>>2];c=0;while(1){f=c<<5;l=f+d|0;k=J[l+24>>2];if(k){qc(k);J[l+24>>2]=0;d=J[(e+J[J[C+4>>2]+8>>2]|0)+20>>2];b=J[w+16>>2]}J[(d+f|0)+24>>2]=0;c=c+1|0;if((c|0)<(b|0))continue;break}}b=J[a+28>>2];d=b+T|0;c=J[d>>2];if(c){qc(c);J[d>>2]=0;b=J[a+28>>2]}J[b+T>>2]=0;ka=ka+1|0;b=J[a+44>>2];if((ka|0)>2])continue;break}BN(C)}b=J[C+4>>2];if(b)qc(b);qc(C);J[a+4>>2]= -32}function tma(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,L=0;E=J[a+12>>2];a:{b:{b=J[b>>2];a=(b|0)!=1;c:{if(!(K[E+2304|0]?a:1))break c;J[E+2232>>2]=-1;J[E+2E3>>2]=-1;m=E+1984|0;if(!a){z=rc(20);J[695492]=0;J[z+4>>2]=0;J[z+8>>2]=0;J[z>>2]=2451300;J[z+12>>2]=0;J[z+16>>2]=0;a=J[695492];J[695492]=0;if((a|0)!=1){gc[J[J[z>>2]+8>>2]](z,1E5);D=bc-16|0;bc=D;e=J[m+152>>2];if((e|0)!=J[m+156>>2]){a=m+176|0;while(1){c= -d<<3;b=J[c+e>>2];d:{if(!b)break d;e=J[m+152>>2];c=c+e|0;if(J[b+232>>2]-J[b+228>>2]>>2!=1|J[J[J[c>>2]+228>>2]>>2]-768>>>0>111)break d;b=J[m+180>>2];if(b>>>0>2]){J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;J[m+180>>2]=b+8;break d}$u(a,c);e=J[m+152>>2]}d=d+1|0;if(d>>>0>2]-e>>3>>>0)continue;break}}b=J[m+152>>2];a=J[m+156>>2];YF(b,a,(a|0)!=(b|0)?62-(S(a-b>>3)<<1)|0:0);c=J[m+152>>2];b=J[m+156>>2];if((c|0)!=(b|0))while(1){a=J[c>>2];if(a){J[D+8>>2]=a;a=J[c+4>>2];J[D+12>>2]= -a;if(a)J[a+4>>2]=J[a+4>>2]+1;a=J[D+12>>2];J[D>>2]=J[D+8>>2];J[D+4>>2]=a;g=bc-80|0;bc=g;e:{f:{g:{h:{d=J[m+236>>2];i:{if(!d){J[695492]=0;d=$(4,128)|0;a=J[695492];J[695492]=0;j:{if((a|0)!=1){J[d+16>>2]=0;J[d+20>>2]=0;J[d>>2]=2430156;J[d+4>>2]=0;J[d+8>>2]=0;J[d+16>>2]=2451100;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;a=d- -64|0;J[a>>2]=0;J[a+4>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0; -J[d+92>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+104>>2]=0;J[d+108>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+120>>2]=0;J[d+124>>2]=0;J[g+76>>2]=d;d=d+16|0;J[g+72>>2]=d;J[m+236>>2]=d;J[g+64>>2]=J[D>>2];a=J[D+4>>2];J[g+68>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;a=J[g+68>>2];J[g+8>>2]=J[g+64>>2];J[g+12>>2]=a;da(6347,d|0,g+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;d=J[m+168>>2];k:{if((d|0)!=J[m+172>>2]){J[d>>2]=J[g+72>>2];a=J[g+76>>2];J[d+4>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[m+168>>2]=d+8;break k}J[695492]= -0;da(6348,m+164|0,g+72|0);a=J[695492];J[695492]=0;if((a|0)==1)break j}d=J[g+76>>2];if(!d)break i;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break i;gc[J[J[d>>2]+8>>2]](d);Vc(d);break i}h=Z()|0;break f}h=Z()|0;Ie(g+72|0);break f}l:{m:{j=J[D>>2];k=O[j+16>>3];if(!(R(O[d+16>>3]-k)<=.01)){a=J[m+168>>2];e=J[m+164>>2];if((a|0)==(e|0))break l;a=a-e>>3;a=a>>>0<=1?1:a;h=0;break m}J[g+56>>2]=j;a=J[D+4>>2];J[g+60>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;a=J[g+60>>2];J[g+32>>2]=J[g+56>>2];J[g+36>>2]=a;da(6347,d|0,g+32| -0);a=J[695492];J[695492]=0;if((a|0)!=1)break i;h=Z()|0;break f}while(1){d=J[e+(h<<3)>>2];if(!(R(O[d+16>>3]-k)<=.01)){h=h+1|0;if((a|0)!=(h|0))continue;break l}break}J[m+236>>2]=d;J[g+48>>2]=j;a=J[D+4>>2];J[g+52>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;a=J[g+52>>2];J[g+24>>2]=J[g+48>>2];J[g+28>>2]=a;da(6347,d|0,g+24|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i;h=Z()|0;break f}J[695492]=0;d=$(4,128)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[d+16>>2]=0;J[d+20>>2]=0;J[d>>2]=2430156;J[d+4>> -2]=0;J[d+8>>2]=0;J[d+16>>2]=2451100;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;a=d- -64|0;J[a>>2]=0;J[a+4>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+104>>2]=0;J[d+108>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+120>>2]=0;J[d+124>>2]=0;J[g+76>>2]=d;d=d+16|0;J[g+72>>2]=d;J[m+236>>2]=d;J[g+40>>2]=j;a=J[D+4>>2];J[g+44>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1; -J[695492]=0;a=J[g+44>>2];J[g+16>>2]=J[g+40>>2];J[g+20>>2]=a;da(6347,d|0,g+16|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;d=J[m+168>>2];n:{if((d|0)!=J[m+172>>2]){J[d>>2]=J[g+72>>2];a=J[g+76>>2];J[d+4>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[m+168>>2]=d+8;break n}J[695492]=0;da(6348,m+164|0,g+72|0);a=J[695492];J[695492]=0;if((a|0)==1)break g}d=J[g+76>>2];if(!d)break i;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break i;gc[J[J[d>>2]+8>>2]](d);Vc(d)}d=J[D+4>>2];o:{if(!d)break o;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break o; -gc[J[J[d>>2]+8>>2]](d);Vc(d)}bc=g+80|0;break e}h=Z()|0;break f}h=Z()|0;Ie(g+72|0)}Ie(D);ba(h|0);B()}}c=c+8|0;if((b|0)!=(c|0))continue;break}l=bc-32|0;bc=l;b=J[m+200>>2];a=J[m+204>>2];TF(b,a,(a|0)!=(b|0)?62-(S(a-b>>3)<<1)|0:0);p:{q:{d=J[m+204>>2];w=J[m+200>>2];if((d|0)!=(w|0))while(1){h=p<<3;a=J[h+w>>2];if(!(!a|O[a+24>>3]>2.5|J[a+604>>2]-1>>>0>1)){J[l+28>>2]=0;J[l+20>>2]=0;J[695492]=0;e=$(4,4)|0;a=J[695492];J[695492]=0;if((a|0)==1)break q;J[e>>2]=p;b=e+4|0;J[l+28>>2]=b;J[l+24>>2]=b;J[l+20>>2]=e;a= -b;t=p+1|0;if(t>>>0>3>>>0){while(1){r:{g=t<<3;c=J[g+w>>2];if(!c)break r;c=dz(J[h+w>>2],c);w=J[m+200>>2];if(c)break r;d=J[h+w>>2];c=g+w|0;J[l+12>>2]=J[c>>2];c=J[c+4>>2];J[l+16>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;c=J[l+16>>2];J[l>>2]=J[l+12>>2];J[l+4>>2]=c;j=J[d+604>>2];d=J[J[l>>2]+604>>2];n=J[l+4>>2];s:{if(!n)break s;c=J[n+4>>2];J[n+4>>2]=c-1;if(c)break s;gc[J[J[n>>2]+8>>2]](n);Vc(n)}j=(d|0)==(j|0);c=J[m+200>>2];d=J[c+h>>2];c=J[c+g>>2];J[695492]=0;d=SF(d- -64|0,c- -64|0);c=J[695492];J[695492]=0;t:{u:{if((c| -0)!=1){c=0;w=J[m+200>>2];n=J[h+w>>2];g=J[g+w>>2];v:{if(J[n+436>>2]!=J[g+436>>2]|J[n+440>>2]!=J[g+440>>2]|(K[n+456|0]!=K[g+456|0]|O[n+448>>3]!=O[g+448>>3]))break v;if(K[n+457|0]!=K[g+457|0]|K[n+458|0]!=K[g+458|0])break v;c=K[n+459|0]==K[g+459|0]}if(!j|!((d|0)!=0|c)|(!(R(O[n+24>>3]-O[g+24>>3])<.3)|!(R(O[n+16>>3]-O[g+16>>3])<1.5)))break r;if((a|0)!=(b|0)){J[a>>2]=t;a=a+4|0;J[l+24>>2]=a;break r}j=b-e|0;c=j>>2;d=c+1|0;if(d>>>0>=1073741824){J[695492]=0;_(6350,l+20|0);a=J[695492];J[695492]=0;if((a|0)==1)break q; -break t}a=j>>1;j=j>>>0>=2147483644?1073741823:a>>>0>d>>>0?a:d;w:{if(!j){o=0;break w}if(j>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break t;break q}J[695492]=0;o=$(4,j<<2)|0;a=J[695492];J[695492]=0;if((a|0)==1)break q}d=(c<<2)+o|0;J[d>>2]=t;c=(j<<2)+o|0;a=d+4|0;if((b|0)!=(e|0))while(1){d=d-4|0;b=b-4|0;J[d>>2]=J[b>>2];if((b|0)!=(e|0))continue;break}J[l+28>>2]=c;J[l+24>>2]=a;J[l+20>>2]=d;if(!e)break u;qc(e);w=J[m+200>>2];break u}break q}e=d;b=c;break r}B()}t=t+1|0;if(t>>> -0>2]-w>>3>>>0)continue;break}e=J[l+20>>2];b=J[l+24>>2]}a=b-e|0;x:{if(a>>>0>=5){t=1;b=0;d=a>>2;if(d>>>0<=1)break x;while(1){y:{c=J[(b<<2)+e>>2];a=J[(t<<2)+e>>2];J[695492]=0;ca(6351,(c<<3)+w|0,(a<<3)+w|0,(d-1|0)==(t|0)|0);a=J[695492];J[695492]=0;if((a|0)==1)break y;w=J[m+200>>2];a=J[w+(b<<3)>>2];b=a?b:t;a=(!a+t|0)+1|0;t=a;e=J[l+20>>2];d=J[l+24>>2]-e>>2;if(a>>>0>>0)continue;break x}break}break q}if((a|0)!=4)break x;a=J[e>>2];J[695492]=0;hS((a<<3)+w|0);a=J[695492];J[695492]=0;if((a|0)==1)break q; -e=J[l+20>>2]}if(e){J[l+24>>2]=e;qc(e)}w=J[m+200>>2];d=J[m+204>>2]}p=p+1|0;if(p>>>0>3>>>0)continue;break}bc=l+32|0;break p}a=Z()|0;b=J[l+20>>2];if(b){J[l+24>>2]=b;qc(b)}break b}b=J[m+164>>2];a=J[m+168>>2];XF(b,a,(a|0)!=(b|0)?62-(S(a-b>>3)<<1)|0:0);d=0;w=0;f=bc-112|0;bc=f;k=O[J[m+60>>2]+16>>3];J[f+108>>2]=0;J[f+100>>2]=0;J[f+104>>2]=0;J[f+96>>2]=0;J[f+88>>2]=0;J[f+92>>2]=0;z:{A:{B:{C:{a=J[m+164>>2];e=J[m+168>>2];if((a|0)==(e|0))break C;k=k+k;while(1){h=(w<<3)+a|0;b=J[h>>2];c=J[b+56>>2];j=J[b+60>> -2];if((c|0)!=(j|0)){while(1){D:{a=J[c>>2];if(!a|!(k>2]+400>>3]))break D;J[695492]=0;b=J[a+232>>2]-J[a+228>>2]>>2;a=J[695492];J[695492]=0;E:{F:{if((a|0)!=1){if((b|0)!=1)break D;a=J[f+108>>2];if(a>>>0>d>>>0){J[d+4>>2]=h;J[d>>2]=c;d=d+8|0;J[f+104>>2]=d;break D}G:{H:{n=J[f+100>>2];e=d-n>>3;g=e+1|0;I:{if(g>>>0>=536870912){J[695492]=0;_(6360,f+100|0);a=J[695492];J[695492]=0;if((a|0)==1)break I;break E}b=a-n|0;a=b>>2;g=b>>>0>=2147483640?536870911:a>>>0>g>>>0?a:g;if(!g){o=0;break G}if(g>>>0<536870912)break H; -J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break E}a=Z()|0;break B}J[695492]=0;o=$(4,g<<3)|0;a=J[695492];J[695492]=0;if((a|0)==1)break F}a=(e<<3)+o|0;J[a+4>>2]=h;J[a>>2]=c;b=a+8|0;if((d|0)!=(n|0)){while(1){d=d-8|0;e=J[d+4>>2];a=a-8|0;J[a>>2]=J[d>>2];J[a+4>>2]=e;if((d|0)!=(n|0))continue;break}d=J[f+100>>2]}J[f+108>>2]=(g<<3)+o;J[f+104>>2]=b;J[f+100>>2]=a;if(d)qc(d);d=b;break D}a=Z()|0;break B}a=Z()|0;break B}B()}c=c+8|0;if((j|0)!=(c|0))continue;break}e=J[m+168>>2];a=J[m+164>>2]}w=w+1| -0;if(w>>>0>3>>>0)continue;break}i=J[f+100>>2];if((i|0)==(d|0))break C;while(1){J:{a=J[m+164>>2];b=J[m+168>>2];K:{if((a|0)==(b|0))break K;n=J[i+4>>2];l=J[i>>2];h=0;while(1){L:{e=J[a>>2];M:{if(!e|(e|0)==J[n>>2])break M;c=J[l>>2];if(O[e+32>>3]>3])break M;r=O[e+16>>3];k=O[c+16>>3];if(R(r-k)<.01){h=h+1|0;break L}if(k>3];k=O[c+8>>3];h=(!(R(r-k)>.01)|!(k>r))+h|0}a=a+8|0;if((b|0)!=(a|0))continue}break}if(h>>>0<2)break K;J[695492]=0;a=$(4,112)|0;b=J[695492];J[695492]=0;N:{O:{if((b| -0)!=1){J[a>>2]=2430276;J[a+4>>2]=0;J[a+8>>2]=0;b=wc(a+16|0,0,96);J[a+80>>2]=0;J[a+84>>2]=0;J[a+16>>2]=2437776;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[f+84>>2]=a;J[f+80>>2]=b;a=J[l>>2];J[695492]=0;NF(b,a);a=J[695492];J[695492]=0;if((a|0)==1)break J;a=J[f+80>>2];J[a+60>>2]=h;h=a+76|0;g=J[J[l>>2]+56>>2];j=g+384|0;if((h|0)==(j|0))break N;c=K[g+395|0];e=c<<24>>24;if(H[a+87|0]>=0){if((e|0)<0)break O;a=J[j+4>>2];J[h>>2]=J[j>>2];J[h+4>>2]=a;J[h+8>>2]=J[j+8>>2];break N}b=J[g+388>>2];a=J[g+384>> -2];J[695492]=0;t=a;a=(e|0)<0;ga(1629,h|0,(a?t:j)|0,(a?b:c)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break J;break N}a=Z()|0;break B}b=J[g+388>>2];a=J[g+384>>2];J[695492]=0;ga(1630,h|0,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break J}a=J[l>>2];J[695492]=0;da(6362,f+8|0,a+224|0);a=J[695492];J[695492]=0;if((a|0)==1)break J;a=J[f+80>>2];c=a- -64|0;if(H[a+75|0]<0){qc(J[c>>2]);a=J[f+80>>2]}b=J[f+12>>2];J[c>>2]=J[f+8>>2];J[c+4>>2]=b;J[c+8>>2]=J[f+16>>2];k=O[J[J[l>>2]+56>>2]+400>>3];k=k+k;P:{if(R(k)< -2147483648){b=~~k;break P}b=-2147483648}J[a+88>>2]=b;b=J[f+92>>2];Q:{if(b>>>0>2]){J[b>>2]=a;J[b+4>>2]=J[f+84>>2];J[f+92>>2]=b+8;J[f+80>>2]=0;J[f+84>>2]=0;break Q}J[695492]=0;da(6363,f+88|0,f+80|0);a=J[695492];J[695492]=0;if((a|0)==1)break J}b=J[l+4>>2];J[l>>2]=0;J[l+4>>2]=0;R:{if(!b)break R;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break R;gc[J[J[b>>2]+8>>2]](b);Vc(b)}a=J[n>>2];J[695492]=0;b=$y(a);a=J[695492];J[695492]=0;if((a|0)==1)break J;S:{T:{if(!b)break T;b=J[n+4>>2];J[n>>2]=0;J[n+4>>2]=0;if(!b)break S; -a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break T;gc[J[J[b>>2]+8>>2]](b);Vc(b)}a=J[n>>2];if(!a)break S;J[695492]=0;_(6365,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break J}b=J[f+84>>2];if(!b)break K;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break K;gc[J[J[b>>2]+8>>2]](b);Vc(b)}i=i+8|0;if((i|0)!=(d|0))continue;break C}break}a=Z()|0;Ie(f+80|0);break B}a=J[f+88>>2];g=J[f+92>>2];if((a|0)==(g|0))break z;j=m+200|0;l=f+24|0;b=f+8|4;U:{V:{W:{X:{while(1){Y:{J[695492]=0;e=$(4,664)|0;c=J[695492];J[695492]=0;Z:{_:{if((c|0)!=1){J[e>> -2]=2429916;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;d=$(6328,e+16|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;qc(e);break B}J[f+80>>2]=d;J[f+84>>2]=e;J[e+76>>2]=1;J[f+8>>2]=340520;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[695492]=0;ga(2226,l|0,2429884,5)|0;c=J[695492];J[695492]=0;$:{aa:{if((c|0)!=1){if(H[f+23|0]>=0)break aa;J[f+16>>2]=0;c=J[f+12>>2];break $}a=Z()|0;if(H[f+35|0]<0)qc(J[f+24>>2]);if(H[f+23|0]>=0)break U;qc(J[f+12>>2]);break U}H[f+23|0]=0;c=b}J[c>>2]= -0;I[f+56>>1]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+68>>2]=0;J[f+72>>2]=0;J[f+60>>2]=0;J[f+64>>2]=0;c=J[a>>2];n=c+76|0;if((n|0)==(l|0))break Z;e=K[c+87|0];h=e<<24>>24;if(H[f+35|0]>=0){if((h|0)<0)break _;c=J[n+4>>2];J[l>>2]=J[n>>2];J[l+4>>2]=c;J[l+8>>2]=J[n+8>>2];break Z}d=J[c+80>>2];c=J[c+76>>2];J[695492]=0;t=c;c=(h|0)<0;ga(1629,l|0,(c?t:n)|0,(c?d:e)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Y;break Z}a=Z()|0;break B}d=J[c+80>>2];c=J[c+76>>2];J[695492]=0;ga(1630,l|0,c|0,d| -0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Y}O[f+40>>3]=+J[J[a>>2]+88>>2]*.5;c=J[m+64>>2];J[695492]=0;da(6366,c|0,f+8|0);c=J[695492];J[695492]=0;if((c|0)==1)break Y;c=J[m+64>>2];J[695492]=0;y=O[c+96>>3];r=O[c+40>>3];k=O[c+104>>3];c=J[695492];J[695492]=0;if((c|0)==1)break X;e=J[f+80>>2];d=J[a>>2];A=O[d+8>>3];O[e+8>>3]=A;k=y*r*.35277777777777775/k+A;O[e+16>>3]=k;O[e+24>>3]=k-A;O[e+40>>3]=O[d+40>>3];O[e+32>>3]=O[d+32>>3];O[e+48>>3]=O[d+48>>3];J[f>>2]=d;c=J[a+4>>2];J[f+4>>2]=c;if(c)J[c+4>>2]=J[c+ -4>>2]+1;c=J[e+620>>2];ba:{if(c>>>0>2]){J[c>>2]=d;J[c+4>>2]=J[f+4>>2];J[e+620>>2]=c+8;break ba}J[695492]=0;da(6357,e+616|0,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break W;d=J[f+4>>2];if(!d)break ba;c=J[d+4>>2];J[d+4>>2]=c-1;if(c)break ba;gc[J[J[d>>2]+8>>2]](d);Vc(d)}c=J[f+80>>2];H[c+602|0]=0;d=J[m+204>>2];ca:{if((d|0)!=J[m+208>>2]){J[d>>2]=c;c=J[f+84>>2];J[d+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[m+204>>2]=d+8;break ca}J[695492]=0;da(6324,j|0,f+80|0);c=J[695492];J[695492]=0;if((c|0)==1)break X}J[f+ -8>>2]=340520;if(H[f+35|0]<0)qc(J[f+24>>2]);if(H[f+23|0]<0)qc(J[f+12>>2]);d=J[f+84>>2];da:{if(!d)break da;c=J[d+4>>2];J[d+4>>2]=c-1;if(c)break da;gc[J[J[d>>2]+8>>2]](d);Vc(d)}a=a+8|0;if((g|0)!=(a|0))continue;break A}break}a=Z()|0;break V}a=Z()|0;break V}a=Z()|0;Ie(f)}kn(f+8|0)}Ie(f+80|0)}UF(f+88|0);b=J[f+100>>2];if(b){J[f+104>>2]=b;qc(b)}ba(a|0);B()}a=J[f+88>>2]}if(a){c=a;d=J[f+92>>2];if((a|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];ea:{if(!c)break ea;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break ea;gc[J[J[c>> -2]+8>>2]](c);Vc(c)}if((a|0)!=(d|0))continue;break}c=J[f+88>>2]}J[f+92>>2]=a;qc(c)}a=J[f+100>>2];if(a)qc(a);bc=f+112|0;p=0;u=bc-32|0;bc=u;b=J[m+164>>2];C=J[m+168>>2];if((b|0)!=(C|0))while(1){i=(p<<3)+b|0;e=J[i>>2];fa:{if(!e)break fa;d=J[e+56>>2];a=J[e+60>>2];if((d|0)!=(a|0)){h=a-d>>3;q=0;while(1){v=(q<<3)+d|0;ga:{if(!J[v>>2])break ga;o=(h-1>>>0<=q>>>0)+p|0;if(o>>>0>=C-b>>3>>>0)break ga;d=q+1|0;while(1){f=(o<<3)+b|0;a=J[f>>2];ha:{if(!a)break ha;if(dz(J[i>>2],a))break ha;b=J[f>>2];e=J[b+56>>2];C=(o| -0)==(p|0)?d:0;ia:{if(C>>>0>=J[b+60>>2]-e>>3>>>0)break ia;h=J[v>>2];if(!h)break ia;while(1){s=(C<<3)+e|0;a=J[s>>2];ja:{if(!a)break ja;l=gc[J[J[h>>2]+32>>2]](h,a)|0;a=J[v>>2];n=gc[J[J[a>>2]+24>>2]](a,J[s>>2])|0;g=bc-16|0;bc=g;b=J[s>>2];r=O[J[b+56>>2]+400>>3];a=J[v>>2];k=O[J[a+56>>2]+400>>3];a=HF(a+224|0,b+224|0);b=0;ka:{if(!a|k!=r)break ka;h=J[v>>2];j=J[J[h+56>>2]+28>>2];la:{ma:{na:{e=J[s>>2];a=J[J[e+56>>2]+28>>2];if(a){if((a|0)!=10066329)break na;if(!K[h+110|0]|((n|0)!=3|(l|0)!=3))break ma;b=1;H[h+ -110|0]=1;c=J[s+4>>2];J[s>>2]=0;J[s+4>>2]=0;if(!c)break ka;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break ka;gc[J[J[c>>2]+8>>2]](c);Vc(c);break ka}if(!K[h+111|0]|((n|0)!=3|(l|0)!=3))break ma;b=1;H[h+111|0]=1;c=J[s+4>>2];J[s>>2]=0;J[s+4>>2]=0;if(!c)break ka;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break ka;gc[J[J[c>>2]+8>>2]](c);Vc(c);break ka}c=(l|0)!=3|(n|0)!=3;if(c|(a|0)!=12632256)break la;b=1;H[h+108|0]=1;c=J[s+4>>2];J[s>>2]=0;J[s+4>>2]=0;if(!c)break ka;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break ka;gc[J[J[c>>2]+8>>2]](c); -Vc(c);break ka}c=(l|0)!=3|(n|0)!=3}if(!((l|0)!=4|(n|0)!=4|(j|0)!=12632256)){b=1;H[e+108|0]=1;c=J[v+4>>2];J[v>>2]=0;J[v+4>>2]=0;if(!c)break ka;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break ka;gc[J[J[c>>2]+8>>2]](c);Vc(c);break ka}if(!((j|0)!=0|c)){b=1;H[e+110|0]=1;c=J[v+4>>2];J[v>>2]=0;J[v+4>>2]=0;if(!c)break ka;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break ka;gc[J[J[c>>2]+8>>2]](c);Vc(c);break ka}if((j|0)!=10066329|c)break ka;b=1;H[e+111|0]=1;J[g+8>>2]=0;J[g+12>>2]=0;a=g+8|0;Sk(v,a);Ie(a)}bc=g+16|0;if(b)break ja;J[u+ -24>>2]=J[v>>2];a=J[v+4>>2];J[u+28>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[u+16>>2]=J[s>>2];a=J[s+4>>2];J[u+20>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;a=J[u+28>>2];J[u+8>>2]=J[u+24>>2];J[u+12>>2]=a;a=J[u+20>>2];J[u>>2]=J[u+16>>2];J[u+4>>2]=a;e=0;c=0;oa:switch(n-3|0){case 0:case 6:c=R(O[J[u+8>>2]+40>>3]-O[J[u>>2]+32>>3])<1.5;break;default:break oa}pa:{qa:switch(n-4|0){default:b=J[u>>2];h=J[u+8>>2];a=0;break pa;case 0:case 6:break qa}h=J[u+8>>2];b=J[u>>2];a=R(O[h+32>>3]-O[b+40>>3])<1.5}ra:{if(!(a|c))break ra;y= -O[J[b+56>>2]+400>>3];r=O[J[h+56>>2]+400>>3];k=r*.7;a=l&-3;sa:{if(!(!(y>2]=2;c=J[u+12>>2];if(c)J[c+8>>2]=J[c+8>>2]+1;J[b+76>>2]=h;a=J[b+80>>2];J[b+80>>2]=c;if(a)Vc(a);e=1;J[h+84>>2]=1;a=J[u+4>>2];if(a)J[a+8>>2]=J[a+8>>2]+1;J[h+76>>2]=b;b=J[h+80>>2];J[h+80>>2]=a;if(b)break sa;break ra}if(!(!(k>y)|(l|0)!=4)){J[b+84>>2]=3;c=J[u+12>>2];if(c)J[c+8>>2]=J[c+8>>2]+1;J[b+76>>2]=h;a=J[b+80>>2];J[b+80>>2]=c;if(a)Vc(a);e=1;J[h+84>>2]=1;a=J[u+4>>2];if(a)J[a+8>>2]=J[a+8>>2]+1;J[h+76>>2]=b; -b=J[h+80>>2];J[h+80>>2]=a;if(b)break sa;break ra}k=y*.7;if(!(!(k>r)|(a|0)!=1)){J[h+84>>2]=3;c=J[u+4>>2];if(c)J[c+8>>2]=J[c+8>>2]+1;J[h+76>>2]=b;a=J[h+80>>2];J[h+80>>2]=c;if(a)Vc(a);e=1;J[b+84>>2]=1;c=J[u+12>>2];if(c)J[c+8>>2]=J[c+8>>2]+1;J[b+76>>2]=h;a=b;b=J[a+80>>2];J[a+80>>2]=c;if(b)break sa;break ra}if(!(k>r)|(l|0)!=4)break ra;J[h+84>>2]=2;c=J[u+4>>2];if(c)J[c+8>>2]=J[c+8>>2]+1;J[h+76>>2]=b;a=J[h+80>>2];J[h+80>>2]=c;if(a)Vc(a);e=1;J[b+84>>2]=1;c=J[u+12>>2];if(c)J[c+8>>2]=J[c+8>>2]+1;J[b+76>>2]= -h;a=b;b=J[a+80>>2];J[a+80>>2]=c;if(!b)break ra}Vc(b)}b=J[u+4>>2];ta:{if(!b)break ta;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break ta;gc[J[J[b>>2]+8>>2]](b);Vc(b)}b=J[u+12>>2];ua:{if(!b)break ua;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break ua;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if(e){cS(J[i>>2],J[v>>2]+84|0);cS(J[f>>2],J[s>>2]+84|0);va:{wa:{xa:{b=J[i>>2];switch(J[b+72>>2]-1|0){case 0:break wa;case 2:break xa;default:break ja}}e=J[f>>2];if(J[e+72>>2]==1)break va;break ja}e=J[f>>2];if(J[e+72>>2]!=2)break ja}a=J[f+4>>2];if(a)J[a+ -4>>2]=J[a+4>>2]+1;J[b+76>>2]=e;c=J[b+80>>2];J[b+80>>2]=a;ya:{if(!c)break ya;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break ya;gc[J[J[c>>2]+8>>2]](c);Vc(c)}a=J[i>>2];c=J[f>>2];b=J[i+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[c+76>>2]=a;e=J[c+80>>2];J[c+80>>2]=b;if(!e)break ja;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break ja;gc[J[J[e>>2]+8>>2]](e);Vc(e);break ja}b=J[v>>2];a=J[s>>2];za:{Aa:{if((l|0)==5){J[695492]=0;c=HF(b+224|0,a+224|0);a=J[695492];J[695492]=0;b=1;if((a|0)==1)break Aa;if(c)break za}b=0;break za}ea(0)|0;yc();B()}if(!b)break ja; -J[s>>2]=0;b=J[s+4>>2];J[s+4>>2]=0;Ba:{if(!b)break Ba;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Ba;gc[J[J[b>>2]+8>>2]](b);Vc(b)}a=J[v>>2];J[a+240>>2]=J[a+240>>2]+1}b=J[f>>2];e=J[b+56>>2];C=C+1|0;if(C>>>0>=J[b+60>>2]-e>>3>>>0)break ia;h=J[v>>2];if(h)continue;break}}if(!$y(b))break ha;J[f>>2]=0;b=J[f+4>>2];J[f+4>>2]=0;if(!b)break ha;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break ha;gc[J[J[b>>2]+8>>2]](b);Vc(b)}o=o+1|0;C=J[m+168>>2];b=J[m+164>>2];if(o>>>0>3>>>0)continue;break}e=J[i>>2]}q=q+1|0;d=J[e+56>>2];h=J[e+ -60>>2]-d>>3;if(q>>>0>>0)continue;break}}if(!$y(e))break fa;J[i>>2]=0;b=J[i+4>>2];J[i+4>>2]=0;if(!b)break fa;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break fa;gc[J[J[b>>2]+8>>2]](b);Vc(b)}p=p+1|0;C=J[m+168>>2];b=J[m+164>>2];if(p>>>0>3>>>0)continue;break}bc=u+32|0;t=0;o=bc-384|0;bc=o;Ca:{Da:{Ea:{x=J[m+200>>2];if((x|0)!=J[m+204>>2]){h=o+48|0;g=o+228|0;while(1){u=(t<<3)+x|0;a=J[u>>2];Fa:{if(!a|J[a+604>>2]==4)break Fa;x=J[m+164>>2];if((x|0)==J[m+168>>2])break Fa;i=0;C=0;while(1){n=(C<<3)+x|0;a=J[n>>2];Ga:{if(!a)break Ga; -a=dz(a,J[u>>2]);b=J[n>>2];if(a){a=J[u>>2];if(O[b+8>>3]>O[a+16>>3]|O[a+8>>3]>O[b+16>>3]+O[b+24>>3])break Ga}w=0;x=J[b+56>>2];if((x|0)==J[b+60>>2])break Ga;while(1){b=J[u>>2];if(!b)break Ga;s=(w<<3)+x|0;a=J[s>>2];Ha:{if(!a)break Ha;j=vS(a,b);a=J[s>>2];v=gc[J[J[a>>2]+24>>2]](a,J[u>>2])|0;x=J[s>>2];F=O[x+24>>3];k=O[x+8>>3]+F/3;f=1;a=1;q=0;p=J[u>>2];l=J[p+604>>2];if((l|0)==1)a=!J[p+612>>2];L=O[p+8>>3];if(!(a|!(O[p+16>>3]>3]&L>k))){k=O[p+24>>3];q=k.1&(502>>>v|v>>>0>10)}A=O[x+16>>3];k=A+F* --.75;if(k>L){y=O[p+16>>3];a=!(y>k);r=-F;k=r*.5+A;a=a|!(kL);k=r*.25+A;f=a|!(k>L)|!(k>>e&v>>>0<11;c=J[J[x+56>>2]+28>>2];a=0;b=J[p+76>>2];a=b?a:J[p+436>>2]==16777215;Ia:{Ja:{if(!(a|(d|((l|0)!=1|f)|(b|0)==(c|0)))){f=!K[p+600|0]&K[p+601|0]!=0;break Ja}f=0;b=1;if(l-1>>>0>1)break Ia}b=!J[p+612>>2]}a=0;Ka:{if(b)break Ka;k=F*.5;if(!(R(O[p+16>>3]-A)<(k<1.5?k:1.5)))break Ka;r=k;k=O[p+24>>3];a=r>k&F-k>.1&(502>>>e|v>>>0>10)}La:{if(q){H[x+88|0]=1;if(J[p+612>>2]!=2)break La;H[x+89|0]= -1;break La}if(f){b=J[u+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[x+68>>2]=p;c=J[x+72>>2];J[x+72>>2]=b;Ma:{if(!c)break Ma;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break Ma;gc[J[J[c>>2]+8>>2]](c);Vc(c)}x=J[s>>2];H[x+90|0]=1;J[x+92>>2]=J[J[u>>2]+76>>2];break La}if(!a)break La;H[x+96|0]=1;J[x+100>>2]=J[p+612>>2];J[x+104>>2]=J[(O[p+24>>3]>.3?76:436)+p>>2]}b=(l|0)!=3;if(b){i=b&(a|q|f)|i;break Ha}a=K[x+108|0]?K[x+109|0]!=0:0;if((j|0)!=2)break Ha;b=J[x+56>>2];if(!(a|J[b+28>>2]==12632256))break Ha;Na:switch(v-2|0){case 0:case 2:break Na; -default:break Ha}i=1;if(a)break Ha;e=b+16|0;c=o+16|0;J[c>>2]=340472;d=nl(c+32|0);J[c+44>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+60>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;J[c+72>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+128>>2]=0;J[c+132>>2]=0;J[c+136>>2]=0;J[c+140>>2]=0;J[c+144>>2]=0;J[c+164>>2]=0;J[c+168>>2]=0;J[c+156>>2]=0;J[c+160>>2]=1065353216;J[c+172>>2]=0;J[c+176>>2]=0;I[c+188>>1]=0;J[c+208>>2]=0;J[c+ -212>>2]=1;J[c+200>>2]=0;J[c+204>>2]=0;J[c+192>>2]=1056964608;J[c+196>>2]=1065353216;J[c+180>>2]=1065353216;J[c+184>>2]=1065353216;J[c+216>>2]=1;J[c+236>>2]=0;J[c+240>>2]=0;J[c+228>>2]=0;J[c+232>>2]=0;j=c+220|0;J[j>>2]=0;J[j+4>>2]=0;J[c+252>>2]=0;J[c+256>>2]=0;J[c+260>>2]=0;J[c+264>>2]=0;J[c+268>>2]=0;J[c+272>>2]=0;J[695492]=0;a=$(4,24)|0;b=J[695492];J[695492]=0;Oa:{Pa:{if((b|0)==1){b=Z()|0;$j(j);break Pa}b=a+24|0;J[c+272>>2]=b;J[c+264>>2]=a;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>> -2]=0;J[a+4>>2]=0;J[c+268>>2]=b;wc(c+280|0,0,88);J[695492]=0;aa(6327,c|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break Oa;b=Z()|0;Qe(c+212|0)}a=J[c+120>>2];if(a){J[c+124>>2]=a;qc(a)}if(H[c+47|0]<0)qc(J[c+36>>2]);Ed(d);break a}J[o+28>>2]=J[J[u>>2]+436>>2];d=J[m+56>>2];e=J[J[s>>2]+56>>2];b=K[e+409|0];a=K[e+408|0];k=O[e+400>>3];J[695492]=0;$a(6342,o+8|0,d|0,c|0,e+384|0,+k,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break Da;d=J[s>>2];b=J[o+8>>2];a=J[o+12>>2];J[o+8>>2]=0;J[o+12>>2]=0;e=J[d+60>>2]; -J[d+56>>2]=b;J[d+60>>2]=a;Qa:{if(!e)break Qa;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break Qa;gc[J[J[e>>2]+8>>2]](e);Vc(e)}b=J[o+12>>2];Ra:{if(!b)break Ra;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Ra;gc[J[J[b>>2]+8>>2]](b);Vc(b)}I[J[s>>2]+108>>1]=257;J[c>>2]=340472;b=J[o+44>>2];if(b){a=J[J[b>>2]+12>>2];J[695492]=0;$(a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ea;J[o+44>>2]=0}Qe(g);a=J[o+136>>2];if(a){J[o+140>>2]=a;qc(a)}if(H[o+63|0]<0)qc(J[o+52>>2]);Ed(h)}a=J[n>>2];x=J[a+56>>2];w=w+1|0;if(w>>>0> -2]-x>>3>>>0)continue;break}}C=C+1|0;x=J[m+164>>2];if(C>>>0>2]-x>>3>>>0)continue;break}if(!(i&1))break Fa;J[u>>2]=0;b=J[u+4>>2];J[u+4>>2]=0;if(!b)break Fa;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Fa;gc[J[J[b>>2]+8>>2]](b);Vc(b)}t=t+1|0;x=J[m+200>>2];if(t>>>0>2]-x>>3>>>0)continue;break}}bc=o+384|0;break Ca}ea(0)|0;yc();B()}a=Z()|0;ln(c);break b}c=bc-16|0;bc=c;Sa:{Ta:{j=m;i=J[j+176>>2];e=J[j+180>>2];if((i|0)!=(e|0))while(1){Ua:{if(!J[i>>2])break Ua;p=J[j+164>>2];d=J[j+168>>2];if((p|0)== -(d|0))break Ua;while(1){a=J[p>>2];Va:{if(!a)break Va;if(dz(a,J[i>>2]))break Va;a=J[p>>2];o=J[a+56>>2];b=J[a+60>>2];if((o|0)==(b|0))break Va;while(1){Wa:{a=J[o>>2];if(!a)break Wa;g=gc[J[J[a>>2]+32>>2]](a,J[i>>2])|0;a=J[o>>2];h=gc[J[J[a>>2]+24>>2]](a,J[i>>2])|0;if(g-11>>>0>4294967293|h-11>>>0>4294967293)break Wa;Xa:{Ya:{Za:{if((h|0)==2&g-3>>>0<=1)break Za;a=(g|0)!=6;if(!a&(h|0)==3|(g|0)==5&(h|0)==5)break Za;if(a|(h|0)!=8)break Ya}YR(J[o>>2]+224|0,J[i>>2]+224|0);break Xa}if((h|0)!=4|a)break Xa;g=J[i>> -2];J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2451200;_a:{$a:{b=J[g+232>>2];a=J[g+228>>2];if((b|0)!=(a|0)){d=c+4|0;a=b-a|0;b=a>>2;if(b>>>0>=1073741824){J[695492]=0;_(1587,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break $a;B()}J[695492]=0;p=$(4,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break $a;J[c+8>>2]=p;J[c+4>>2]=p;J[c+12>>2]=(b<<2)+p;b=J[g+228>>2];a=J[g+232>>2];if((b|0)!=(a|0))while(1){J[p>>2]=J[b>>2];p=p+4|0;b=b+4|0;if((a|0)!=(b|0))continue;break}J[c+8>>2]=p}a=c;break _a}a=Z()|0;b=J[d>>2];if(b){J[c+ -8>>2]=b;qc(b)}break b}d=J[o>>2];J[695492]=0;b=a;aa(6367,a|0,d+224|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ta;a=J[o>>2];J[695492]=0;aa(6341,a+224|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ta;mk(b)}b=J[i+4>>2];J[i>>2]=0;J[i+4>>2]=0;if(!b)break Ua;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Ua;gc[J[J[b>>2]+8>>2]](b);Vc(b);break Ua}o=o+8|0;if((b|0)!=(o|0))continue;break}}p=p+8|0;if((d|0)!=(p|0))continue;break}}i=i+8|0;if((e|0)!=(i|0))continue;break}bc=c+16|0;break Sa}a=Z()|0;mk(b);break b}h= -J[j+164>>2];c=J[j+168>>2];if((h|0)!=(c|0))while(1){g=J[h>>2];ab:{if(!g|(J[g+72>>2]&-2)!=2|!J[g+76>>2])break ab;o=J[g+56>>2];b=J[g+60>>2];if((o|0)!=(b|0))while(1){d=J[o>>2];bb:{if(!d)break bb;a=J[g+76>>2];y=O[a+32>>3];k=O[d+32>>3];if(y>k){O[a+32>>3]=k;y=k}k=O[a+40>>3];r=O[d+40>>3];if(k>3]=r;k=r}O[a+48>>3]=k-y;e=J[a+60>>2];cb:{if((e|0)!=J[a- -64>>2]){J[e>>2]=d;d=J[o+4>>2];J[e+4>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+60>>2]=e+8;break cb}kz(a+56|0,o)}d=J[o+4>>2];J[o>>2]=0;J[o+4>>2]=0;if(!d)break bb; -a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break bb;gc[J[J[d>>2]+8>>2]](d);Vc(d)}o=o+8|0;if((b|0)!=(o|0))continue;break}b=J[h+4>>2];J[h>>2]=0;J[h+4>>2]=0;if(!b)break ab;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break ab;gc[J[J[b>>2]+8>>2]](b);Vc(b)}h=h+8|0;if((c|0)!=(h|0))continue;break}db:{if(!K[j+240|0])break db;c=J[j+164>>2];b=J[j+168>>2];if((c|0)==(b|0))break db;while(1){a=J[c>>2];eb:{if(!a|!(O[a+8>>3]>=O[j+8>>3]|O[a+16>>3]<=0))break eb;d=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;if(!d)break eb;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break eb; -gc[J[J[d>>2]+8>>2]](d);Vc(d)}c=c+8|0;if((b|0)!=(c|0))continue;break}}c=J[j+164>>2];d=J[j+168>>2];if((c|0)!=(d|0))while(1){b=J[(G<<3)+c>>2];if(b){a=J[b+60>>2];n=J[b+56>>2];fb:{if((a|0)==(n|0))break fb;d=a-n>>3;a=d>>>0<=1?1:d;g=a&1;c=0;if(d>>>0>=2){e=a&-2;p=0;while(1){d=c<<3;a=J[d+n>>2];gb:{if(!a)break gb;h=J[a+240>>2];if(!h)break gb;a=J[b+92>>2];J[b+92>>2]=a>>>0>h>>>0?a:h}a=J[n+(d|8)>>2];hb:{if(!a)break hb;d=J[a+240>>2];if(!d)break hb;a=J[b+92>>2];J[b+92>>2]=a>>>0>d>>>0?a:d}c=c+2|0;p=p+2|0;if((e|0)!= -(p|0))continue;break}}if(!g)break fb;a=J[n+(c<<3)>>2];if(!a)break fb;c=J[a+240>>2];if(!c)break fb;a=J[b+92>>2];J[b+92>>2]=a>>>0>c>>>0?a:c}t=0;q=bc+-64|0;bc=q;ib:{jb:{kb:{lb:{c=J[b+56>>2];a=J[b+60>>2];mb:{if((c|0)==(a|0))break mb;d=b;i=b+56|0;LF(c,a,62-(S(a-c>>3)<<1)|0);J[q+56>>2]=0;J[q+60>>2]=0;nb:{a=J[b+56>>2];e=J[b+60>>2];b=e;if((a|0)==(b|0))break nb;while(1){b=(t<<3)+a|0;a=J[b>>2];b=J[b+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[q+56>>2]=a;c=J[q+60>>2];J[q+60>>2]=b;ob:{if(!c)break ob;a=J[c+4>>2];J[c+4>> -2]=a-1;if(a)break ob;gc[J[J[c>>2]+8>>2]](c);Vc(c)}t=t+1|0;e=J[d+60>>2];a=J[d+56>>2];b=t>>>0>=e-a>>3>>>0;if(!(b|J[q+56>>2]))continue;break}if(b){b=a;break nb}b=a;pb:{while(1){qb:{c=t<<3;s=c+b|0;a=J[s>>2];rb:{if(!a)break rb;A=O[a+184>>3]*.35;v=J[s>>2];y=O[v+184>>3]*3;f=J[q+56>>2];r=O[f+40>>3];k=O[v+32>>3];l=J[f+56>>2];b=K[l+11|0];g=b<<24>>24;n=J[v+56>>2];a=K[n+11|0];e=a<<24>>24;e=(e|0)<0;C=e?J[n+4>>2]:a;a=b;b=(g|0)<0;a=b?J[l+4>>2]:a;w=1;sb:{if((C|0)!=(a|0))break sb;w=0;if(!a)break sb;w=(gd(b?J[l>>2]: -l,e?J[n>>2]:n,a)|0)!=0}a=w|K[f+88|0]!=K[v+88|0]|K[f+89|0]!=K[v+89|0]|K[f+90|0]!=K[v+90|0]|J[f+92>>2]!=J[v+92>>2]|K[f+96|0]!=K[v+96|0]|J[f+100>>2]!=J[v+100>>2]|J[f+104>>2]!=J[v+104>>2]|K[f+108|0]!=K[v+108|0]|K[f+109|0]!=K[v+109|0]|K[f+110|0]!=K[v+110|0]|K[f+111|0]!=K[v+111|0];e=a^1;tb:{if(a&1)break tb;b=J[f+84>>2];a=J[v+84>>2];if((b|0)==(a|0))break tb;e=!b&(a|0)==1|!a&(b|0)==1}e=e&1;k=R(k-r);b=k>A;ub:{if(!b)break ub;a=J[q+56>>2];if(O[a+248>>3]!=0)break ub;O[a+248>>3]=O[a+48>>3]}vb:{wb:{if(k>y){J[695492]= -0;b=J[q+56>>2];g=$(4,272)|0;a=J[695492];J[695492]=0;if((a|0)==1)break wb;J[g>>2]=2430036;J[g+4>>2]=0;J[g+8>>2]=0;a=J[b+64>>2];J[695492]=0;b=aa(6337,g+16|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1){b=Z()|0;qc(g);break jb}J[q+52>>2]=g;J[q+48>>2]=b;J[q+40>>2]=s;J[q+44>>2]=q+48;J[q+36>>2]=q+56;if(e){J[695492]=0;aa(6481,b|0,J[q+56>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break pb}J[695492]=0;_(6482,q+36|0);a=J[695492];J[695492]=0;if((a|0)==1)break pb;a=J[i>>2];J[695492]=0;ga(6483,i|0,a+c|0,q+48|0)| -0;a=J[695492];J[695492]=0;if((a|0)!=1){c=J[i>>2];while(1){t=t+1|0;b=c+(t<<3)|0;a=J[b>>2];if(!a)continue;break}b=J[b+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[q+56>>2]=a;c=J[q+60>>2];J[q+60>>2]=b;xb:{if(!c)break xb;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break xb;gc[J[J[c>>2]+8>>2]](c);Vc(c)}b=J[q+52>>2];if(!b)break rb;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break rb;gc[J[J[b>>2]+8>>2]](b);Vc(b);break rb}break pb}if(e){yb:{zb:{if(b){J[q+36>>2]=32;J[695492]=0;aa(6484,J[q+56>>2]+224|0,q+36|0)|0;a=J[695492];J[695492]=0;if((a| -0)==1)break zb}a=J[s>>2];J[695492]=0;aa(6367,J[q+56>>2]+224|0,a+224|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break yb;break qb}b=Z()|0;break jb}a=J[q+56>>2];c=J[s>>2];k=O[c+40>>3];O[a+40>>3]=k;O[a+48>>3]=k-O[a+32>>3];e=J[a+80>>2];if(!(J[e+4>>2]!=-1?e:0)){b=J[c+76>>2];c=J[c+80>>2];if(c){J[c+8>>2]=J[c+8>>2]+1;e=J[a+80>>2]}J[a+80>>2]=c;J[a+76>>2]=b;if(e){Vc(e);a=J[q+56>>2]}J[a+84>>2]=J[J[s>>2]+84>>2]}J[s>>2]=0;b=J[s+4>>2];J[s+4>>2]=0;if(!b)break rb;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break rb;gc[J[J[b>>2]+ -8>>2]](b);Vc(b);break rb}if(!b)break vb;J[695492]=0;b=J[q+56>>2]+224|0;e=J[b+8>>2];c=J[b+4>>2];a=J[695492];J[695492]=0;if((a|0)==1)break qb;J[695492]=0;b=J[b+4>>2];a=J[695492];J[695492]=0;if((a|0)==1)break qb;a=J[((e-c>>2)-1<<2)+b>>2];if((a|0)==32|(a|0)==160|(a|0)==8195)break vb;a=J[s>>2];J[695492]=0;b=J[a+228>>2];a=J[695492];J[695492]=0;if((a|0)==1)break qb;a=J[b>>2];if((a|0)==32|(a|0)==160|(a|0)==8195)break vb;if(oS(J[q+56>>2])>>>0<=oS(J[s>>2])>>>0){J[695492]=0;c=aa(6466,q+20|0,2451140)|0;a=J[695492]; -J[695492]=0;Ab:{if((a|0)!=1){J[695492]=0;aa(6367,J[q+56>>2]+224|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ab;mk(c);a=J[q+56>>2];O[a+48>>3]=O[a+48>>3]+(O[J[s>>2]+32>>3]-O[a+40>>3]);break vb}b=Z()|0;break jb}b=Z()|0;mk(c);break jb}J[695492]=0;c=aa(6466,q+4|0,2451140)|0;a=J[695492];J[695492]=0;Bb:{if((a|0)!=1){a=J[s>>2];J[695492]=0;aa(6367,c|0,a+224|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Bb;a=J[s>>2];J[695492]=0;aa(6341,a+224|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Bb;a=J[s>> -2];O[a+48>>3]=O[a+48>>3]+(O[a+32>>3]-O[J[q+56>>2]+40>>3]);mk(c);break vb}b=Z()|0;break jb}b=Z()|0;mk(c);break jb}b=Z()|0;break jb}a=J[s>>2];b=J[s+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[q+56>>2]=a;c=J[q+60>>2];J[q+60>>2]=b;if(!c)break rb;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break rb;gc[J[J[c>>2]+8>>2]](c);Vc(c)}t=t+1|0;e=J[d+60>>2];b=J[d+56>>2];if(t>>>0>3>>>0)continue;break nb}break}b=Z()|0;break jb}b=Z()|0;Ie(q+48|0);break jb}a=e-8|0;while(1){c=a;h=J[a>>2];if(a>>>0>b>>>0){a=a-8|0;if(!h)continue}a=b;while(1){Cb:{b= -a;g=J[a>>2];e=a>>>0>=c>>>0;if(e)break Cb;a=a+8|0;if(g)continue}break}if(!e){J[b>>2]=h;J[c>>2]=g;a=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=a;a=c;continue}break}a=J[d+60>>2];J[695492]=0;ga(6485,i|0,c+(((h|0)!=0)<<3)|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break kb;b=J[d+60>>2];a=J[d+56>>2];J[695492]=0;ca(6486,a|0,b|0,((a|0)!=(b|0)?62-(S(b-a>>3)<<1)|0:0)|0);a=J[695492];J[695492]=0;if((a|0)==1)break lb;b=J[q+60>>2];if(!b)break mb;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break mb;gc[J[J[b>>2]+8>>2]](b);Vc(b)}bc= -q- -64|0;break ib}b=Z()|0;break jb}b=Z()|0}Ie(q+56|0);break a}d=J[j+168>>2];c=J[j+164>>2]}G=G+1|0;if(G>>>0>3>>>0)continue;break}t=0;a=J[j+164>>2];if((a|0)!=J[j+168>>2])while(1){a=(t<<3)+a|0;l=J[a>>2];n=J[a+4>>2];if(n)J[n+4>>2]=J[n+4>>2]+1;Db:{if(!l)break Db;d=0;e=1;a=J[l+56>>2];Eb:{if((a|0)!=J[l+60>>2]){o=0;c=0;while(1){a=(o<<3)+a|0;g=J[a>>2];h=J[a+4>>2];if(h)J[h+4>>2]=J[h+4>>2]+1;Fb:{if(!g)break Fb;b=J[g+68>>2];if(!b|(b|0)==(c|0))break Fb;r=O[b+32>>3];if(!(r>3]))break Fb;k=O[b+40>>3]; -if(!(k>O[g+40>>3])|(!(r>3])|!(k>O[c+40>>3])?c:0))break Fb;a=J[g+72>>2];if(a)J[a+4>>2]=J[a+4>>2]+1;Gb:{if(!d)break Gb;c=J[d+4>>2];J[d+4>>2]=c-1;if(c)break Gb;gc[J[J[d>>2]+8>>2]](d);Vc(d)}c=b;d=a}Hb:{if(!h)break Hb;a=J[h+4>>2];J[h+4>>2]=a-1;if(a)break Hb;gc[J[J[h>>2]+8>>2]](h);Vc(h)}o=o+1|0;a=J[l+56>>2];if(o>>>0>2]-a>>3>>>0)continue;break}if(!d){d=0;break Eb}J[d+4>>2]=J[d+4>>2]+1;e=0;break Eb}c=0}J[l+84>>2]=c;b=J[l+88>>2];J[l+88>>2]=d;Ib:{if(!b)break Ib;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Ib; -gc[J[J[b>>2]+8>>2]](b);Vc(b)}if(e)break Db;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break Db;gc[J[J[d>>2]+8>>2]](d);Vc(d)}Jb:{if(!n)break Jb;a=J[n+4>>2];J[n+4>>2]=a-1;if(a)break Jb;gc[J[J[n>>2]+8>>2]](n);Vc(n)}t=t+1|0;a=J[j+164>>2];if(t>>>0>2]-a>>3>>>0)continue;break}c=J[j+152>>2];a=J[j+156>>2];if((c|0)!=(a|0))while(1){b=J[c>>2];Kb:{if(!b|O[b+200>>3]!=0|O[b+192>>3]!=0)break Kb;if(K[j+24|0]){O[b+200>>3]=O[b+24>>3];O[b+192>>3]=O[b+48>>3];break Kb}sS(b)}c=c+8|0;if((a|0)!=(c|0))continue;break}G=0;i=bc- -32|0;bc=i;Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{b=J[j+164>>2];Tb:{if((b|0)==J[j+168>>2])break Tb;e=j+164|0;n=j+200|0;while(1){Ub:{l=(G<<3)+b|0;b=J[l>>2];if(!b)break Ub;t=J[b+92>>2];if(t){jz(i+20|0,l);a=J[j+204>>2];Vb:{if(a>>>0>2]){J[a>>2]=J[i+20>>2];J[a+4>>2]=J[i+24>>2];J[j+204>>2]=a+8;break Vb}J[695492]=0;da(6353,n|0,i+20|0);a=J[695492];J[695492]=0;if((a|0)==1)break Mb;b=J[i+24>>2];if(!b)break Vb;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Vb;gc[J[J[b>>2]+8>>2]](b);Vc(b)}Wb:{while(1){jz(i+20|0,l);b= -J[j+204>>2];a=J[j+208>>2];Xb:{if(b>>>0>>0){J[b>>2]=J[i+20>>2];J[b+4>>2]=J[i+24>>2];J[j+204>>2]=b+8;break Xb}h=J[n>>2];d=b-h>>3;g=d+1|0;if(g>>>0>=536870912){J[695492]=0;_(6354,n|0);a=J[695492];J[695492]=0;if((a|0)==1)break Wb;break Ob}c=a-h|0;a=c>>2;a=c>>>0>=2147483640?536870911:a>>>0>g>>>0?a:g;if(a>>>0>=536870912){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break Ob;break Wb}J[695492]=0;c=a<<3;g=$(4,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Wb;d=g+(d<<3)|0;J[d>>2]=J[i+20>>2]; -J[d+4>>2]=J[i+24>>2];J[i+20>>2]=0;J[i+24>>2]=0;a=c+g|0;c=d+8|0;Yb:{if((b|0)==(h|0)){J[j+208>>2]=a;J[j+204>>2]=c;J[j+200>>2]=d;break Yb}while(1){d=d-8|0;b=b-8|0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;if((b|0)!=(h|0))continue;break}J[j+208>>2]=a;a=J[j+204>>2];J[j+204>>2]=c;b=J[j+200>>2];J[j+200>>2]=d;if((a|0)==(b|0))break Yb;while(1){a=a-8|0;d=J[a+4>>2];Zb:{if(!d)break Zb;c=J[d+4>>2];J[d+4>>2]=c-1;if(c)break Zb;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if((a|0)!=(b|0))continue;break}}if(b)qc(b); -b=J[i+24>>2];if(!b)break Xb;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Xb;gc[J[J[b>>2]+8>>2]](b);Vc(b)}t=t-1|0;if(t)continue;break}break Ub}break Mb}if(!G)break Ub;c=l-8|0;a=J[c>>2];if(!a)break Ub;b=(gc[J[J[b>>2]+24>>2]](b,a)|0)-9>>>0<2;a=J[l>>2];if(b|(gc[J[J[a>>2]+36>>2]](a,J[c>>2])|0)-9>>>0<2)break Ub;jz(i+20|0,c);a=J[j+204>>2];_b:{if(a>>>0>2]){J[a>>2]=J[i+20>>2];J[a+4>>2]=J[i+24>>2];J[j+204>>2]=a+8;break _b}J[695492]=0;da(6353,n|0,i+20|0);a=J[695492];J[695492]=0;if((a|0)==1)break Mb;b=J[i+24>> -2];if(!b)break _b;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break _b;gc[J[J[b>>2]+8>>2]](b);Vc(b)}jz(i+20|0,l);$b:{a=J[j+204>>2];ac:{if(a>>>0>2]){J[a>>2]=J[i+20>>2];J[a+4>>2]=J[i+24>>2];J[j+204>>2]=a+8;break ac}J[695492]=0;da(6353,n|0,i+20|0);a=J[695492];J[695492]=0;if((a|0)==1)break $b;b=J[i+24>>2];if(!b)break ac;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break ac;gc[J[J[b>>2]+8>>2]](b);Vc(b)}J[c>>2]=0;a=l-4|0;b=J[a>>2];J[a>>2]=0;bc:{if(!b)break bc;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break bc;gc[J[J[b>>2]+8>>2]](b); -Vc(b)}J[l>>2]=0;b=J[l+4>>2];J[l+4>>2]=0;if(!b)break Ub;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Ub;gc[J[J[b>>2]+8>>2]](b);Vc(b);break Ub}break Mb}G=G+1|0;a=J[j+168>>2];b=J[j+164>>2];if(G>>>0>3>>>0)continue;break}if((a|0)==(b|0))break Tb;a=a-8|0;while(1){c=a;h=J[a>>2];if(a>>>0>b>>>0){a=a-8|0;if(!h)continue}a=b;while(1){cc:{b=a;g=J[a>>2];d=a>>>0>=c>>>0;if(d)break cc;a=a+8|0;if(g)continue}break}if(!d){J[b>>2]=h;J[c>>2]=g;a=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=a;a=c;continue}break}b=0;TS(e,c+(((h| -0)!=0)<<3)|0,J[j+168>>2]);c=J[j+164>>2];a=J[j+168>>2];WF(c,a,(a|0)!=(c|0)?62-(S(a-c>>3)<<1)|0:0);if(J[j+164>>2]==J[j+168>>2])break Tb;J[i+28>>2]=0;J[i+20>>2]=0;J[i+24>>2]=0;d=0;dc:{ec:{fc:{gc:switch(J[j+20>>2]-2|0){case 0:case 2:J[695492]=0;da(6355,i+8|0,j|0);a=J[695492];J[695492]=0;if((a|0)==1)break fc;break ec;case 1:case 3:break gc;default:break dc}J[695492]=0;da(6355,i+8|0,j|0);a=J[695492];J[695492]=0;if((a|0)!=1)break ec;b=Z()|0;break Pb}b=Z()|0;break Pb}J[i+28>>2]=J[i+16>>2];b=J[i+12>>2];J[i+ -24>>2]=b;d=J[i+8>>2];J[i+20>>2]=d}J[695492]=0;ca(6356,d|0,b|0,((b|0)!=(d|0)?62-(S(b-d>>3)<<1)|0:0)|0);a=J[695492];J[695492]=0;if((a|0)==1)break Qb;hc:{ic:{jc:switch(J[j+20>>2]-2|0){case 0:case 2:b=J[i+20>>2];e=J[i+24>>2];if((b|0)==(e|0))break hc;d=j+224|0;while(1){kc:{c=J[b>>2];J[i+8>>2]=c;a=J[b+4>>2];J[i+12>>2]=a;J[b>>2]=0;J[b+4>>2]=0;g=J[j+228>>2];lc:{if(g>>>0>2]){J[g+4>>2]=a;J[g>>2]=c;J[j+228>>2]=g+8;break lc}J[695492]=0;da(6357,d|0,i+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break kc; -c=J[i+12>>2];if(!c)break lc;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break lc;gc[J[J[c>>2]+8>>2]](c);Vc(c)}b=b+8|0;if((e|0)!=(b|0))continue;break ic}break}b=Z()|0;Ie(i+8|0);break Pb;case 1:case 3:break jc;default:break ic}b=J[i+20>>2];d=J[i+24>>2];if((b|0)==(d|0))break hc;c=j+200|0;while(1){J[695492]=0;ca(6358,i+8|0,b|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break Sb;a=J[j+204>>2];mc:{if(a>>>0>2]){J[a>>2]=J[i+8>>2];J[a+4>>2]=J[i+12>>2];J[j+204>>2]=a+8;break mc}J[695492]=0;da(6353,c|0,i+8|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break Rb;e=J[i+12>>2];if(!e)break mc;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break mc;gc[J[J[e>>2]+8>>2]](e);Vc(e)}b=b+8|0;if((d|0)!=(b|0))continue;break}}b=J[i+20>>2]}if(!b)break Tb;a=b;d=J[i+24>>2];if((a|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];nc:{if(!c)break nc;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break nc;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}a=J[i+20>>2]}J[i+24>>2]=b;qc(a)}bc=i+32|0;break Nb}b=Z()|0;break Pb}b=Z()|0;Ie(i+8|0);break Pb}b=Z()|0}UF(i+20|0);break a}B()}d= -J[j+200>>2];p=J[j+204>>2];if(!((d|0)==(p|0)|(p-d|0)==8)){c=0;while(1){a=c;c=a+1|0;l=(a<<3)+d|0;oc:{if(!J[l>>2])break oc;f=J[(c<<3)+d>>2];if(!f)break oc;n=bc-16|0;bc=n;pc:{qc:{a=J[l>>2];switch(J[a+604>>2]-1|0){case 0:case 2:break qc;default:break pc}}rc:switch(J[f+604>>2]-1|0){case 0:case 2:break rc;default:break pc}if(J[a+60>>2]!=J[f+60>>2]|J[a+436>>2]!=J[f+436>>2]|(J[a+440>>2]!=J[f+440>>2]|O[a+448>>3]!=O[f+448>>3]))break pc;if(K[a+456|0]!=K[f+456|0]|K[a+457|0]!=K[f+457|0]|(K[a+458|0]!=K[f+458|0]| -K[a+459|0]!=K[f+459|0]))break pc;if(!SF(a- -64|0,f- -64|0))break pc;a=J[l>>2];if(K[a+600|0]!=K[f+600|0]|K[a+601|0]!=K[f+601|0]|(J[a+628>>2]|J[f+628>>2]))break pc;A=O[a+40>>3];y=O[f+32>>3];sc:{if(R(A-y)<30)break sc;r=O[a+32>>3];k=O[f+40>>3];if(R(r-k)<30|R(A-k)<30)break sc;if(!(R(r-y)<30))break pc}A=O[a+16>>3];y=O[f+8>>3];tc:{if(R(A-y)<30)break tc;r=O[a+8>>3];k=O[f+16>>3];if(R(r-k)<30|R(A-k)<30)break tc;if(!(R(r-y)<30))break pc}gc[J[J[f>>2]+28>>2]](f,a);e=f+496|0;i=J[l>>2];r=O[i+520>>3];L=O[f+512>> -3];k=O[i+512>>3];if(L>k){O[f+512>>3]=k;L=k}A=O[f+528>>3];if(k>A){O[f+528>>3]=k;A=k}y=O[f+520>>3];if(r>3]=r;y=r}k=O[f+536>>3];if(r>k){O[f+536>>3]=r;k=r}F=O[i+536>>3];r=O[i+528>>3];if(r>3]=r;if(r>A)O[f+528>>3]=r;if(y>F)O[f+520>>3]=F;if(k>3]=F;d=J[i+504>>2];if(d){h=J[i+500>>2];b=J[h>>2];g=J[i+496>>2];a=J[g+4>>2];J[b+4>>2]=a;J[a>>2]=b;a=J[f+496>>2];J[a+4>>2]=h;J[h>>2]=a;J[f+496>>2]=g;J[g+4>>2]=e;J[f+504>>2]=d+J[f+504>>2];J[i+504>>2]=0}O[i+512>>3]=O[i+544>>3];O[i+520>> -3]=O[i+552>>3];O[i+528>>3]=O[i+560>>3];O[i+536>>3]=O[i+568>>3];J[n+8>>2]=0;J[n+12>>2]=0;a=n+8|0;Sk(l,a);Ie(a);J[f+604>>2]=3}bc=n+16|0;d=J[j+200>>2];p=J[j+204>>2]}if((p-d>>3)-1>>>0>c>>>0)continue;break}}bc=D+16|0;break Lb}a=Z()|0;Ie(i+20|0);break b}e=J[E+2296>>2]>=(J[E+2300>>2]-1|0);uc:{vc:{a=J[m+228>>2];c=J[m+224>>2];if((a|0)!=(c|0)){a=a-c>>3;b=a>>>0<=1?1:a;a=0;while(1){if(J[J[c+(a<<3)>>2]+56>>2]==2)break vc;a=a+1|0;if((b|0)!=(a|0))continue;break}}if(J[m+188>>2]!=J[m+192>>2]|J[m+200>>2]!=J[m+204>> -2])break vc;d=0;break uc}Oc(z,2428260,-1);Oc(z,2428284,-1);d=1;a=J[m+188>>2];c=J[m+192>>2];if((a|0)==(c|0))break uc;while(1){b=J[a>>2];if(b)MF(b,z);a=a+8|0;if((c|0)!=(a|0))continue;break}}a=J[m+200>>2];c=J[m+204>>2];if((a|0)!=(c|0))while(1){b=J[a>>2];if(b)MF(b,z);a=a+8|0;if((c|0)!=(a|0))continue;break}if(d)Oc(z,2428516,-1);b=J[m+224>>2];d=J[m+228>>2];if((b|0)!=(d|0)){a=0;while(1){c=J[(a<<3)+b>>2];wc:{if(!c)break wc;c=ik(c,2428580,2439688);if(!c)break wc;mS(c,z);b=J[m+224>>2];d=J[m+228>>2]}a=a+1|0; -if(a>>>0>3>>>0)continue;break}}y=O[m>>3];r=O[m+8>>3];Oc(z,e?2428684:2428592,-1);Oc(z,2428728,-1);k=O[m>>3]*56.69291338582678;xc:{if(R(k)<2147483648){a=~~k;break xc}a=-2147483648}wg(z,a);Oc(z,2428784,-1);k=O[m+8>>3]*56.69291338582678;yc:{if(R(k)<2147483648){a=~~k;break yc}a=-2147483648}wg(z,a);Oc(z,2428816,-1);k=r*56.69291338582678;zc:{if(R(k)<2147483648){a=~~k;break zc}a=-2147483648}k=y*56.69291338582678;Ac:{if(R(k)<2147483648){b=~~k;break Ac}b=-2147483648}Oc(z,(a|0)>(b|0)?2428908:2428868,-1); -Oc(z,2428944,-1);Oc(z,e?2429456:2428960,-1);d=J[E+2296>>2];c=E+2328|0;a=c;b=J[a>>2];Bc:{Cc:{if(!b)break Cc;while(1){a=b;c=J[a+16>>2];if((c|0)>(d|0)){c=a;b=J[a>>2];if(b)continue;break Cc}if((c|0)>=(d|0))break Bc;b=J[a+4>>2];if(b)continue;break}c=a+4|0}b=rc(24);J[b+16>>2]=d;J[b+8>>2]=a;J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[c>>2]=b;a=b;d=J[J[E+2324>>2]>>2];if(d){J[E+2324>>2]=d;a=J[c>>2]}Ic(J[E+2328>>2],a);a=E+2332|0;J[a>>2]=J[a>>2]+1}J[b+20>>2]=z;break c}b=Z()|0;qc(z);break a}if((b|0)!=4)break c;bv(m)}return 0}ba(a| -0);B()}ba(b|0);B()}function kAa(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;q=bc-32|0;bc=q;g=bc-16|0;bc=g;J[695492]=0;ia(5193,g+12|0,b|0,2394042,1);c=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((c|0)!=1){c=J[g+12>>2];if(!c)break d;if(J[c+8>>2]!=4){J[695492]=0;da(5194,c|0,4);c=J[695492];J[695492]=0;if((c|0)==1)break g;B()}if(J[c+44>>2]!=1){J[g+12>>2]=0;d=-1;break h}J[695492]=0;ca(5195,g|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break k; -J[695492]=0;c=J[g>>2];da(5186,g+4|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break j;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break i;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break i}break a}d=ea(0)|0;break e}d=ea(0)|0;break f}d=ea(0)|0;vc(g);break f}c=J[g+4>>2];d=Js(J[(c?c+12|0:2728584)>>2],16777215);sc(g+4|0);c=J[g+12>>2];J[g+12>>2]=0;if(!c)break c}J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)!=1){if(f)break c; -J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break c}break a}d=ea(0)|0}vc(g+12|0)}na(d|0)|0;ta()}d=-1}bc=g+16|0;break b}J[a+8>>2]=d;c=0;g=bc-48|0;bc=g;J[695492]=0;ia(5193,g+44|0,b|0,2394155,1);d=J[695492];J[695492]=0;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{if((d|0)!=1){d=J[g+44>>2];if(!d)break n;if(J[d+8>>2]!=4){J[695492]=0;da(5194,d|0,4);c=J[695492];J[695492]=0;if((c|0)==1)break u;break m}if(J[d+44>>2]!=1){J[g+44>>2]=0;break o}J[695492]=0;ca(5195,g+12|0,d|0,0);c=J[695492]; -J[695492]=0;if((c|0)==1)break B;J[695492]=0;c=J[g+12>>2];da(5186,g+36|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break A;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!d){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;d=g+36|0;c=fd(d,2400052,-1);f=J[695492];J[695492]=0;if((f|0)==1)break s;if(!c)break y;J[695492]=0;c=-1;f=fd(d,2400116,-1);e=J[695492];J[695492]=0;if((e|0)==1)break s;if(!f)break x;J[695492]=0;c=fd(d,2400151,-1); -d=J[695492];J[695492]=0;if((d|0)==1)break s;if(c)break z;c=-2;break x}c=ea(0)|0;break p}c=ea(0)|0;break q}c=ea(0)|0;vc(g+12|0);break q}J[695492]=0;c=fd(g+36|0,2400180,-1);d=J[695492];J[695492]=0;if((d|0)==1)break s;if(!c){c=-3;break x}J[695492]=0;c=fd(g+36|0,2400200,-1);d=J[695492];J[695492]=0;if((d|0)==1)break s;if(c)break y;c=-4;break x}c=J[g+36>>2];if(!(K[J[c+12>>2]]==100?c:0)){J[695492]=0;d=ja(5018,g+12|0,2394256,2377733,933,2394423,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break t;J[695492]=0; -_(5019,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break m;c=ea(0)|0;Fc(d);break r}d=J[c+8>>2];c=0;J[695492]=0;ia(5143,g+12|0,g+36|0,1,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break w;d=J[g+12>>2];if(d){c=J[J[d>>2]+40>>2];J[695492]=0;c=$(c|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break v}sc(g+12|0)}sc(g+36|0);d=J[g+44>>2];J[g+44>>2]=0;if(d)break o;break n}c=ea(0)|0;break r}c=ea(0)|0;sc(g+12|0);break r}c=ea(0)|0;break q}c=ea(0)|0;break r}c=ea(0)|0}sc(g+36|0)}vc(g+44|0)}na(c|0)|0;ta();c=0;break n}J[695492]= -0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)!=1){if(f)break n;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break n}break a}bc=g+48|0;break l}B()}J[a+12>>2]=c;c=0;g=bc-16|0;bc=g;J[695492]=0;ia(5193,g+12|0,b|0,2394493,1);d=J[695492];J[695492]=0;C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((d|0)!=1){d=J[g+12>>2];if(!d)break D;if(J[d+8>>2]!=4){J[695492]=0;da(5194,d|0,4);c=J[695492];J[695492]=0;if((c|0)==1)break H;B()}if(J[d+44>>2]!=1){J[g+12>>2]=0;break I}J[695492]=0;ca(5195,g| -0,d|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break M;J[695492]=0;c=J[g>>2];da(5186,g+4|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break L;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!d){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=0;J[695492]=0;d=g+4|0;f=fd(d,2400052,-1);e=J[695492];J[695492]=0;if((e|0)==1)break G;if(!f)break J;J[695492]=0;f=fd(d,2400228,-1);e=J[695492];J[695492]=0;c=1;if((e|0)==1)break G;if(!f)break J;J[695492]= -0;c=fd(d,2400318,-1);d=J[695492];J[695492]=0;if((d|0)==1)break G;if(c)break K;c=2;break J}c=ea(0)|0;break E}c=ea(0)|0;break F}c=ea(0)|0;vc(g);break F}J[695492]=0;c=fd(g+4|0,2400602,-1);d=J[695492];J[695492]=0;if((d|0)==1)break G;if(!c){c=3;break J}J[695492]=0;c=fd(g+4|0,2400607,-1);d=J[695492];J[695492]=0;if((d|0)==1)break G;c=!c<<2}sc(g+4|0);d=J[g+12>>2];J[g+12>>2]=0;if(!d)break D}J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)!=1){if(f)break D;J[695492]=0;_(4987,d|0);d= -J[695492];J[695492]=0;if((d|0)!=1)break D}break a}c=ea(0)|0;break F}c=ea(0)|0;sc(g+4|0)}vc(g+12|0)}na(c|0)|0;ta();c=0}bc=g+16|0;break C}J[a+16>>2]=c;c=0;g=bc-16|0;bc=g;J[695492]=0;ia(5193,g+12|0,b|0,2394662,1);d=J[695492];J[695492]=0;N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{if((d|0)!=1){d=J[g+12>>2];if(!d)break O;if(J[d+8>>2]!=4){J[695492]=0;da(5194,d|0,4);c=J[695492];J[695492]=0;if((c|0)==1)break S;B()}if(J[d+44>>2]!=2){J[g+12>>2]=0;break T}J[695492]=0;ca(5195,g|0,d|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break W; -J[695492]=0;c=J[g>>2];da(5186,g+4|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break V;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break U;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break U}break a}c=ea(0)|0;break P}c=ea(0)|0;break Q}c=ea(0)|0;vc(g);break Q}c=0;J[695492]=0;d=g+4|0;f=fd(d,2400052,-1);e=J[695492];J[695492]=0;if((e|0)==1)break R;X:{if(!f)break X;J[695492]=0;f=fd(d,2400644,-1);e=J[695492];J[695492]=0;c=1;if((e|0)==1)break R;if(!f)break X; -J[695492]=0;c=fd(d,2400664,-1);d=J[695492];J[695492]=0;if((d|0)==1)break R;if(!c){c=2;break X}J[695492]=0;c=fd(g+4|0,2400700,-1);d=J[695492];J[695492]=0;if((d|0)==1)break R;c=c?0:3}sc(g+4|0);d=J[g+12>>2];J[g+12>>2]=0;if(!d)break O}J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)!=1){if(f)break O;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break O}break a}c=ea(0)|0;break Q}c=ea(0)|0;sc(g+4|0)}vc(g+12|0)}na(c|0)|0;ta();c=0}bc=g+16|0;break N}J[a+20>>2]=c;c=0;g= -bc-16|0;bc=g;J[695492]=0;ia(5193,g+12|0,b|0,2394662,1);d=J[695492];J[695492]=0;Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{if((d|0)!=1){d=J[g+12>>2];if(!d)break Z;if(J[d+8>>2]!=4){J[695492]=0;da(5194,d|0,4);c=J[695492];J[695492]=0;if((c|0)==1)break ba;B()}if(J[d+44>>2]!=2){J[g+12>>2]=0;break ca}J[695492]=0;ca(5195,g|0,d|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break fa;J[695492]=0;c=J[g>>2];da(5186,g+4|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break ea;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492]; -J[695492]=0;if((f|0)!=1){if(d)break da;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break da}break a}c=ea(0)|0;break _}c=ea(0)|0;break $}c=ea(0)|0;vc(g);break $}c=0;J[695492]=0;d=g+4|0;f=fd(d,2400052,-1);e=J[695492];J[695492]=0;if((e|0)==1)break aa;ga:{if(!f)break ga;J[695492]=0;c=fd(d,2400664,-1);d=J[695492];J[695492]=0;if((d|0)==1)break aa;if(!c){c=2;break ga}J[695492]=0;c=fd(g+4|0,2400907,-1);d=J[695492];J[695492]=0;if((d|0)==1)break aa;if(!c){c=4;break ga}J[695492]=0;c=fd(g+4|0, -2400951,-1);d=J[695492];J[695492]=0;if((d|0)==1)break aa;c=c?0:5}sc(g+4|0);d=J[g+12>>2];J[g+12>>2]=0;if(!d)break Z}J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)!=1){if(f)break Z;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break Z}break a}c=ea(0)|0;break $}c=ea(0)|0;sc(g+4|0)}vc(g+12|0)}na(c|0)|0;ta();c=0}bc=g+16|0;break Y}J[a+24>>2]=c;e=bc-384|0;bc=e;c=q+4|0;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]= -0;g=c;J[695492]=0;p=aa(5031,e+236|0,b|0)|0;c=J[695492];J[695492]=0;ha:{ia:{ja:{ka:{if((c|0)!=1){k=J[p+8>>2];if(k)while(1){l=J[k+8>>2];if(J[l+8>>2]==4){J[695492]=0;c=e+228|0;da(5191,c|0,l|0);d=J[695492];J[695492]=0;la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{if((d|0)!=1){J[695492]=0;c=fd(c,2411746,-1);d=J[695492];J[695492]=0;if((d|0)==1)break ka;if(c)break la;J[e+220>>2]=0;J[e+224>>2]=J[682146];J[695492]=0;n=aa(4989, -e+212|0,2411852)|0;c=J[695492];J[695492]=0;Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{if((c|0)!=1){J[695492]=0;ca(5195,e+188|0,l|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break Za;c=J[e+188>>2];_a:{if(!c)break _a;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break _a;J[695492]=0;_(4987,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}if(J[c+8>>2]!=4)break Ta;J[695492]=0;d=e+188|0;da(5191,d|0,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break Ya;J[695492]=0;f=fd(d,2411848, --1);h=J[695492];J[695492]=0;if((h|0)==1)break Xa;sc(d);if(!f)break Ua;J[695492]=0;d=ja(5018,d|0,2395641,2377733,1171,2395783,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Wa;J[695492]=0;_(5019,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break Va;break ia}c=ea(0)|0;break ma}c=ea(0)|0;break na}c=ea(0)|0;break na}c=ea(0)|0;sc(e+188|0);break na}c=ea(0)|0;break na}c=ea(0)|0;Fc(d);break na}J[695492]=0;ca(5195,e+180|0,c|0,0);d=J[695492];J[695492]=0;$a:{ab:{bb:{if((d|0)!=1){J[695492]=0;da(5196,e+188|0,J[e+ -180>>2]);d=J[695492];J[695492]=0;if((d|0)==1)break bb;d=J[e+188>>2];cb:{if(d){f=J[J[d>>2]+28>>2];J[695492]=0;ca(f|0,e+252|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break cb;c=ea(0)|0;break pa}J[e+252>>2]=0}J[695492]=0;aa(4993,e+220|0,e+252|0)|0;d=J[695492];J[695492]=0;db:{if((d|0)!=1){d=J[e+252>>2];J[e+252>>2]=0;if(!d)break db;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break db;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break db}break a}c= -ea(0)|0;vc(e+252|0);break pa}d=J[e+220>>2];J[e+224>>2]=J[(d?d+12|0:2728584)>>2];sc(e+188|0);d=J[e+180>>2];J[e+180>>2]=0;eb:{if(!d)break eb;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(f)break eb;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}J[695492]=0;ca(5195,e+180|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break ab;J[695492]=0;da(5196,e+188|0,J[e+180>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break $a;c=J[e+188>>2];fb:{if(c){d=J[J[c>> -2]+28>>2];J[695492]=0;ca(d|0,e+256|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break fb;c=ea(0)|0;break ra}J[e+256>>2]=0}J[695492]=0;aa(4993,n|0,e+256|0)|0;c=J[695492];J[695492]=0;gb:{if((c|0)!=1){c=J[e+256>>2];J[e+256>>2]=0;if(!c)break gb;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break gb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break gb}break a}c=ea(0)|0;vc(e+256|0);break ra}c=J[n>>2];J[e+216>>2]=J[(c?c+12|0:2728584)>>2];sc(e+188|0);c= -J[e+180>>2];J[e+180>>2]=0;if(!c)break Sa;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break Sa;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Sa}break a}c=ea(0)|0;break na}c=ea(0)|0;break oa}c=ea(0)|0;break na}c=ea(0)|0;break qa}J[695492]=0;da(5196,e+188|0,c|0);c=J[695492];J[695492]=0;hb:{if((c|0)!=1){c=J[e+188>>2];ib:{if(c){d=J[J[c>>2]+28>>2];J[695492]=0;ca(d|0,e+260|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ib;c=ea(0)|0;break sa}J[e+ -260>>2]=0}J[695492]=0;aa(4993,e+220|0,e+260|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+260>>2];J[e+260>>2]=0;if(!c)break hb;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break hb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break hb}break a}c=ea(0)|0;vc(e+260|0);break sa}c=ea(0)|0;break na}c=J[e+220>>2];J[e+224>>2]=J[(c?c+12|0:2728584)>>2];sc(e+188|0)}J[695492]=0;ca(5195,e+188|0,l|0,1);c=J[695492];J[695492]=0;jb:{kb:{lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{Eb:{Fb:{Gb:{if((c| -0)!=1){J[695492]=0;da(5196,e+180|0,J[e+188>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break Gb;c=J[e+188>>2];J[e+188>>2]=0;Hb:{if(!c)break Hb;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break Hb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;ca(5195,e+188|0,l|0,2);c=J[695492];J[695492]=0;if((c|0)==1)break Fb;c=J[e+188>>2];Ib:{if(!c)break Ib;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a; -if(d)break Ib;J[695492]=0;_(4987,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}J[e+176>>2]=0;if(J[c+8>>2]!=4)break ta;J[695492]=0;d=e+188|0;da(5191,d|0,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break Eb;J[695492]=0;f=fd(d,2411754,-1);h=J[695492];J[695492]=0;if((h|0)==1)break Db;sc(d);if(f)break tb;if(J[c+8>>2]!=4)break sb;if(J[c+44>>2]!=4)break xa;J[695492]=0;ca(5195,e+172|0,c|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break Cb;d=J[e+172>>2];if(J[d+8>>2]!=1){J[695492]=0;da(5194,d|0,1);c=J[695492]; -J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break wb}d=J[d+20>>2];J[695492]=0;ca(5195,e+168|0,c|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break Bb;f=J[e+168>>2];if(J[f+8>>2]!=1){J[695492]=0;da(5194,f|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break xb}f=J[f+20>>2];J[695492]=0;ca(5195,e+164|0,c|0,2);h=J[695492];J[695492]=0;if((h|0)==1)break Ab;h=J[e+164>>2];if(J[h+8>>2]!=1){J[695492]=0;da(5194,h|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break yb}h=J[h+20>>2];J[695492]= -0;i=e+160|0;ca(5195,i|0,c|0,3);c=J[695492];J[695492]=0;if((c|0)==1)break zb;c=J[e+160>>2];if(J[c+8>>2]!=1){J[695492]=0;da(5194,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;vc(i);break yb}i=J[c+20>>2];J[e+160>>2]=0;J[695492]=0;J[e+192>>2]=f;J[e+200>>2]=f+i;J[e+188>>2]=d;J[e+196>>2]=d+h;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!d){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+164>>2];J[e+164>>2]=0;Jb:{if(!c)break Jb;J[695492]= -0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break Jb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+168>>2];J[e+168>>2]=0;Kb:{if(!c)break Kb;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break Kb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+172>>2];J[e+172>>2]=0;Lb:{if(!c)break Lb;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break Lb; -J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;d=$(4,108)|0;c=J[695492];J[695492]=0;if((c|0)==1)break vb;J[695492]=0;c=aa(5197,d|0,e+188|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break jb;J[695492]=0;J[e+172>>2]=0;aa(4985,e+172|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break vb;J[695492]=0;aa(4985,e+176|0,J[e+172>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break ub;c=J[e+172>>2];J[e+172>>2]=0;if(!c)break xa;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]= -0;if((f|0)!=1){if(d)break xa;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break xa}break a}c=ea(0)|0;break na}c=ea(0)|0;vc(e+188|0);break na}c=ea(0)|0;break ua}c=ea(0)|0;break va}c=ea(0)|0;sc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;break wb}c=ea(0)|0;break xb}c=ea(0)|0}vc(e+164|0)}vc(e+168|0)}vc(e+172|0);break va}c=ea(0)|0;break va}c=ea(0)|0;vc(e+172|0);break va}J[695492]=0;d=e+188|0;da(5191,d|0,c|0);f=J[695492];J[695492]=0;Mb:{Nb:{Ob:{Pb:{Qb:{if((f|0)!=1){J[695492]=0;f=fd(d, -2411759,-1);h=J[695492];J[695492]=0;if((h|0)==1)break Qb;sc(d);if(f)break Mb;if(J[c+8>>2]!=4)break sb;f=J[c+44>>2];if(f&1)break xa;J[695492]=0;i=(f|0)/2|0;d=i-1|0;h=ha(5198,e+136|0,2401048,0,d|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break Pb;J[695492]=0;j=ha(5198,e+112|0,2401048,0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Ob;d=0;if((f|0)>1)break Nb;break za}c=ea(0)|0;break va}c=ea(0)|0;sc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;xd(h);break va}Rb:{while(1){Sb:{J[695492]=0;m=d<<1;ca(5195, -e+188|0,c|0,m|0);f=J[695492];J[695492]=0;if((f|0)==1)break Sb;f=J[e+188>>2];if(J[f+8>>2]!=1){J[695492]=0;da(5194,f|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Ba}if(!(J[e+152>>2]<=(d|0)&J[e+156>>2]>=(d|0))){J[695492]=0;d=ja(5018,e+264|0,2401081,2401144,619,2401256,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ba;J[695492]=0;_(5019,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;Fc(d);break Aa}J[J[e+140>>2]+(d-J[e+144>>2]<<2)>>2]=J[f+20>>2];J[695492]=0;J[e+188>>2]=0;o=J[f+ -4>>2]-1|0;J[f+4>>2]=o;r=J[695492];J[695492]=0;if((r|0)==1)break a;if(!o){J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}J[695492]=0;ca(5195,e+188|0,c|0,m|1);f=J[695492];J[695492]=0;if((f|0)==1)break Rb;f=J[e+188>>2];if(J[f+8>>2]!=1){J[695492]=0;da(5194,f|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Da}if(!(J[e+128>>2]<=(d|0)&J[e+132>>2]>=(d|0))){J[695492]=0;d=ja(5018,e+288|0,2401081,2401144,619,2401256,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Da;J[695492]=0;_(5019, -d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;Fc(d);break Ca}J[J[e+116>>2]+(d-J[e+120>>2]<<2)>>2]=J[f+20>>2];J[695492]=0;J[e+188>>2]=0;m=J[f+4>>2]-1|0;J[f+4>>2]=m;o=J[695492];J[695492]=0;if((o|0)==1)break a;if(!m){J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}d=d+1|0;if((i|0)!=(d|0))continue;break za}break}c=ea(0)|0;break ya}c=ea(0)|0;break ya}J[695492]=0;d=e+188|0;da(5191,d|0,c|0);f=J[695492];J[695492]=0;Tb:{Ub:{Vb:{Wb:{Xb:{Yb:{Zb:{_b:{$b:{ac:{bc:{if((f|0)!=1){J[695492]= -0;f=fd(d,2411764,-1);h=J[695492];J[695492]=0;if((h|0)==1)break bc;sc(d);if(f)break Tb;if(J[c+8>>2]!=4)break sb;if(J[c+44>>2]!=4)break xa;J[695492]=0;ca(5195,e+172|0,c|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break ac;d=J[e+172>>2];if(J[d+8>>2]!=1){J[695492]=0;da(5194,d|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break Wb}d=J[d+20>>2];J[695492]=0;ca(5195,e+168|0,c|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break $b;f=J[e+168>>2];if(J[f+8>>2]!=1){J[695492]=0;da(5194,f|0,1);c=J[695492]; -J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break Xb}f=J[f+20>>2];J[695492]=0;ca(5195,e+164|0,c|0,2);h=J[695492];J[695492]=0;if((h|0)==1)break _b;h=J[e+164>>2];if(J[h+8>>2]!=1){J[695492]=0;da(5194,h|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break Yb}h=J[h+20>>2];J[695492]=0;i=e+160|0;ca(5195,i|0,c|0,3);c=J[695492];J[695492]=0;if((c|0)==1)break Zb;c=J[e+160>>2];if(J[c+8>>2]!=1){J[695492]=0;da(5194,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;vc(i);break Yb}i=J[c+20>> -2];J[e+160>>2]=0;J[695492]=0;J[e+192>>2]=f;J[e+200>>2]=f+i;J[e+188>>2]=d;J[e+196>>2]=d+h;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!d){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+164>>2];J[e+164>>2]=0;cc:{if(!c)break cc;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break cc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+168>>2];J[e+168>>2]=0;dc:{if(!c)break dc;J[695492]= -0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break dc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+172>>2];J[e+172>>2]=0;ec:{if(!c)break ec;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break ec;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;d=$(4,140)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Vb;J[695492]=0;c=aa(5199,d|0,e+188|0)|0;f=J[695492];J[695492]=0;if((f| -0)==1)break Ra;J[695492]=0;J[e+172>>2]=0;aa(4985,e+172|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Vb;J[695492]=0;aa(4985,e+176|0,J[e+172>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ub;c=J[e+172>>2];J[e+172>>2]=0;if(!c)break xa;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break xa;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break xa}break a}c=ea(0)|0;break va}c=ea(0)|0;sc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;break Wb}c=ea(0)| -0;break Xb}c=ea(0)|0}vc(e+164|0)}vc(e+168|0)}vc(e+172|0);break va}c=ea(0)|0;break va}c=ea(0)|0;vc(e+172|0);break va}J[695492]=0;d=e+188|0;da(5191,d|0,c|0);f=J[695492];J[695492]=0;fc:{gc:{hc:{ic:{jc:{kc:{lc:{mc:{nc:{oc:{pc:{if((f|0)!=1){J[695492]=0;f=fd(d,2411858,-1);h=J[695492];J[695492]=0;if((h|0)==1)break pc;sc(d);if(f)break fc;if(J[c+8>>2]!=4)break sb;if(J[c+44>>2]!=4)break xa;J[695492]=0;ca(5195,e+172|0,c|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break oc;d=J[e+172>>2];if(J[d+8>>2]!=1){J[695492]= -0;da(5194,d|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break ic}d=J[d+20>>2];J[695492]=0;ca(5195,e+168|0,c|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break nc;f=J[e+168>>2];if(J[f+8>>2]!=1){J[695492]=0;da(5194,f|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break jc}f=J[f+20>>2];J[695492]=0;ca(5195,e+164|0,c|0,2);h=J[695492];J[695492]=0;if((h|0)==1)break mc;h=J[e+164>>2];if(J[h+8>>2]!=1){J[695492]=0;da(5194,h|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0; -break kc}h=J[h+20>>2];J[695492]=0;i=e+160|0;ca(5195,i|0,c|0,3);c=J[695492];J[695492]=0;if((c|0)==1)break lc;c=J[e+160>>2];if(J[c+8>>2]!=1){J[695492]=0;da(5194,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;vc(i);break kc}i=J[c+20>>2];J[e+160>>2]=0;J[695492]=0;J[e+192>>2]=f;J[e+200>>2]=f+i;J[e+188>>2]=d;J[e+196>>2]=d+h;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!d){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+164>>2];J[e+164>> -2]=0;qc:{if(!c)break qc;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break qc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+168>>2];J[e+168>>2]=0;rc:{if(!c)break rc;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break rc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e+172>>2];J[e+172>>2]=0;sc:{if(!c)break sc;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492]; -J[695492]=0;if((f|0)==1)break a;if(d)break sc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;d=$(4,108)|0;c=J[695492];J[695492]=0;if((c|0)==1)break hc;J[695492]=0;c=aa(5197,d|0,e+188|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Qa;J[695492]=0;J[e+172>>2]=0;aa(4985,e+172|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break hc;c=J[e+172>>2];J[c+52>>2]=100;H[c+56|0]=1;J[695492]=0;aa(4985,e+176|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break gc;c=J[e+172>>2];J[e+172>> -2]=0;if(!c)break xa;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break xa;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break xa}break a}c=ea(0)|0;break va}c=ea(0)|0;sc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;break ic}c=ea(0)|0;break jc}c=ea(0)|0}vc(e+164|0)}vc(e+168|0)}vc(e+172|0);break va}c=ea(0)|0;break va}c=ea(0)|0;vc(e+172|0);break va}J[695492]=0;d=e+188|0;da(5191,d|0,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break qb;J[695492]=0;f=fd(d, -2411863,-1);h=J[695492];J[695492]=0;if((h|0)==1)break pb;sc(d);if(f)break xa;if(J[c+8>>2]==4)break rb}J[695492]=0;da(5194,c|0,4);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break wa}if(J[c+44>>2]!=4)break xa;J[695492]=0;f=ha(5198,e+88|0,2401048,0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break ob;J[695492]=0;h=ha(5198,e- -64|0,2401048,0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break nb;J[695492]=0;ca(5195,e+188|0,c|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break lb;d=J[e+188>>2];if(J[d+8>>2]==1)break mb; -break Ha}c=ea(0)|0;break va}c=ea(0)|0;sc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;xd(f);break va}if(J[e+108>>2]<0|J[e+104>>2]>0)break La;J[J[e+92>>2]-(J[e+96>>2]<<2)>>2]=J[d+20>>2];J[695492]=0;J[e+188>>2]=0;i=J[d+4>>2]-1|0;J[d+4>>2]=i;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(!i){J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}J[695492]=0;ca(5195,e+188|0,c|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break kb;d=J[e+188>>2];if(J[d+8>>2]!=1)break Oa;if(J[e+84>>2]<0|J[e+80>> -2]>0)break Pa;J[J[e+68>>2]-(J[e+72>>2]<<2)>>2]=J[d+20>>2];J[695492]=0;J[e+188>>2]=0;i=J[d+4>>2]-1|0;J[d+4>>2]=i;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(!i){J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}J[695492]=0;ca(5195,e+188|0,c|0,2);d=J[695492];J[695492]=0;if((d|0)==1)break lb;d=J[e+188>>2];if(J[d+8>>2]!=1)break Ha;if(J[e+108>>2]<=0|J[e+104>>2]>1)break La;J[J[e+92>>2]+(1-J[e+96>>2]<<2)>>2]=J[d+20>>2];J[695492]=0;J[e+188>>2]=0;i=J[d+4>>2]-1|0;J[d+4>>2]=i;j=J[695492]; -J[695492]=0;if((j|0)==1)break a;if(!i){J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}J[695492]=0;ca(5195,e+188|0,c|0,3);c=J[695492];J[695492]=0;if((c|0)==1)break kb;d=J[e+188>>2];if(J[d+8>>2]!=1)break Oa;if(J[e+84>>2]<=0|J[e+80>>2]>1)break Pa;J[J[e+68>>2]+(1-J[e+72>>2]<<2)>>2]=J[d+20>>2];J[695492]=0;J[e+188>>2]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(!c){J[695492]=0;_(4987,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;c=J[e+ -92>>2];i=J[e+96>>2];j=J[e+68>>2];m=J[e+72>>2];d=$(4,148)|0;o=J[695492];J[695492]=0;if((o|0)!=1)break Ka;break Ja}c=ea(0)|0;break Ea}c=ea(0)|0;break Ea}c=ea(0)|0;qc(d);break va}k=Z()|0;$c(p);break ja}c=ea(0)|0;qc(d);break va}c=ea(0)|0;qc(d);break va}J[695492]=0;d=ja(5018,e+336|0,2401081,2401144,619,2401256,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Na;J[695492]=0;_(5019,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;Fc(d);break Ma}J[695492]=0;da(5194,d|0,1);c=J[695492];J[695492]=0; -if((c|0)!=1)break ia}c=ea(0)|0}vc(e+188|0);break Ea}J[695492]=0;d=ja(5018,e+312|0,2401081,2401144,619,2401256,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ga;J[695492]=0;_(5019,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;Fc(d);break Fa}J[695492]=0;c=ma(5200,d|0,c-(i<<2)|0,j-(m<<2)|0,2,1)|0;i=J[695492];J[695492]=0;if((i|0)!=1){J[695492]=0;J[e+188>>2]=0;aa(4985,e+188|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ja;c=J[e+188>>2];H[c+64|0]=1;J[695492]=0;aa(4985,e+176|0,c|0)|0; -c=J[695492];J[695492]=0;if((c|0)==1)break Ia;c=J[e+188>>2];J[e+188>>2]=0;tc:{if(!c)break tc;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(d)break tc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}xd(h);xd(f);break xa}c=ea(0)|0;qc(d);break Ea}c=ea(0)|0;break Ea}c=ea(0)|0;vc(e+188|0);break Ea}J[695492]=0;da(5194,d|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ia}c=ea(0)|0}vc(e+188|0)}xd(h);xd(f);break va}c=ea(0)|0}vc(e+188|0);break ya}c= -ea(0)|0}vc(e+188|0);break ya}J[695492]=0;c=J[e+140>>2];f=J[e+144>>2];m=J[e+116>>2];o=J[e+120>>2];d=$(4,148)|0;r=J[695492];J[695492]=0;uc:{vc:{if((r|0)!=1){J[695492]=0;c=ma(5200,d|0,c-(f<<2)|0,m-(o<<2)|0,i|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break vc;J[695492]=0;J[e+188>>2]=0;aa(4985,e+188|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break uc}c=ea(0)|0;break ya}c=ea(0)|0;qc(d);break ya}J[695492]=0;aa(4985,e+176|0,J[e+188>>2])|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+188>>2];J[e+188>>2]= -0;wc:{if(!c)break wc;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break wc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}xd(j);xd(h);break xa}c=ea(0)|0;vc(e+188|0)}xd(j);xd(h);break va}d=J[e+176>>2];if(!d)break ta;c=J[e+220>>2];xc:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,e+360|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break xc;break wa}J[e+360>>2]=0}J[695492]=0;aa(4993,d+8|0,e+360|0)|0;c=J[695492];J[695492]=0;yc:{if((c|0)!=1){c= -J[e+360>>2];J[e+360>>2]=0;if(!c)break yc;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break yc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break yc}break a}c=ea(0)|0;vc(e+360|0);break va}c=J[d+8>>2];J[d+12>>2]=J[(c?c+12|0:2728584)>>2];d=J[e+176>>2];c=J[n>>2];zc:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,e+364|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break wa;break zc}J[e+364>>2]=0}J[695492]=0;aa(4993,d+16|0,e+364|0)|0;c=J[695492];J[695492]= -0;Ac:{if((c|0)!=1){c=J[e+364>>2];J[e+364>>2]=0;if(!c)break Ac;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break Ac;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Ac}break a}c=ea(0)|0;vc(e+364|0);break va}c=J[d+16>>2];J[d+20>>2]=J[(c?c+12|0:2728584)>>2];d=J[e+176>>2];c=J[e+180>>2];Bc:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,e+368|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break wa;break Bc}J[e+368>>2]=0}J[695492]=0;aa(4993,d+24|0,e+368| -0)|0;c=J[695492];J[695492]=0;Cc:{if((c|0)!=1){c=J[e+368>>2];J[e+368>>2]=0;if(!c)break Cc;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break Cc;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Cc}break a}c=ea(0)|0;vc(e+368|0);break va}c=J[d+24>>2];J[d+28>>2]=J[(c?c+12|0:2728584)>>2];Dc:{if(J[l+8>>2]!=4)break Dc;i=l+40|0;h=3;Ec:{Fc:{Gc:{Hc:{Ic:{Jc:{Kc:{while(1){if(J[l+44>>2]<=(h|0)){J[695492]=0;c=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break wa; -J[c>>2]=0;J[c+4>>2]=0;d=J[e+176>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break wa;d=J[e+176>>2]}else d=0;J[c+8>>2]=d;J[695492]=0;of(g,c);c=J[695492];J[695492]=0;if((c|0)==1)break wa;c=J[e+176>>2];J[e+176>>2]=0;if(!c)break ta;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break ta;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ta}break a}d=0;Lc:{c=J[l+48>>2];Mc:{if(!c){J[e+376>>2]=i;J[e+372>>2]=0;break Mc}while(1){Nc:{c= -J[c>>2];d=d+1|0;if(h>>>0<=d>>>0)break Nc;if(c)continue}break}J[e+376>>2]=i;J[e+372>>2]=c;if(c)break Lc}J[695492]=0;da(5073,e+372|0,i|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break va}Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{d=J[c+8>>2];Vc:{if(!d){c=0;break Vc}J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break Uc;c=J[c+8>>2];if(!c){c=0;break Vc}J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break Vc;J[695492]=0;_(4987,c|0);d=J[695492]; -J[695492]=0;if((d|0)==1)break a}if(J[c+8>>2]!=4)break Pc;J[e+56>>2]=0;J[e+60>>2]=J[682146];d=J[c+12>>2];Wc:{if(d){f=J[J[d>>2]+28>>2];J[695492]=0;ca(f|0,e+380|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break Wc;c=ea(0)|0;break Sc}J[e+380>>2]=0}J[695492]=0;aa(4993,e+56|0,e+380|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Tc;d=J[e+380>>2];J[e+380>>2]=0;Xc:{if(!d)break Xc;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(f)break Xc;J[695492]=0;_(4987,d|0);d=J[695492]; -J[695492]=0;if((d|0)==1)break a}d=J[e+56>>2];J[e+60>>2]=J[(d?d+12|0:2728584)>>2];J[695492]=0;d=fd(e+56|0,2411829,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Oc;if(d)break Rc;H[J[e+176>>2]+36|0]=1;break Qc}c=ea(0)|0;break va}c=ea(0)|0;vc(e+380|0)}sc(e+56|0);break va}J[695492]=0;d=fd(e+56|0,2411841,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[695492]=0;da(5194,c|0,4);break Fc}d=J[c+48>>2];c=c+40|0;J[e+52>>2]=c;J[e+48>>2]=d;if(!d){J[695492]=0;da(5073,e+48|0,c|0);break Fc}c= -J[d+8>>2];if(J[c+8>>2]!=3)break Qc;J[695492]=0;d=e+188|0;da(5186,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+188>>2];s=J[e+176>>2],t=Js(J[(c?c+12|0:2728584)>>2],255),J[s+48>>2]=t;sc(d);break Qc}break Ec}J[695492]=0;d=fd(e+56|0,2411868,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[695492]=0;da(5194,c|0,4);break Gc}d=J[c+48>>2];c=c+40|0;J[e+44>>2]=c;J[e+40>>2]=d;if(!d){J[695492]=0;da(5073,e+40|0,c|0);break Gc}c=J[d+8>>2];if(J[c+8>>2]!=1)break Qc;J[J[e+176>>2]+52>> -2]=J[c+20>>2];break Qc}J[695492]=0;d=fd(e+56|0,2411876,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Oc;if(!d){H[J[e+176>>2]+65|0]=1;break Qc}J[695492]=0;d=fd(e+56|0,2411882,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[695492]=0;da(5194,c|0,4);break Hc}d=J[c+48>>2];c=c+40|0;J[e+36>>2]=c;J[e+32>>2]=d;if(!d){J[695492]=0;da(5073,e+32|0,c|0);break Hc}c=J[d+8>>2];if(J[c+8>>2]!=1)break Qc;J[J[e+176>>2]+68>>2]=J[c+20>>2];break Qc}J[695492]=0;d=fd(e+56|0,2411888,-1);f=J[695492]; -J[695492]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[695492]=0;da(5194,c|0,4);break Ic}d=J[c+48>>2];c=c+40|0;J[e+28>>2]=c;J[e+24>>2]=d;if(!d){J[695492]=0;da(5073,e+24|0,c|0);break Ic}c=J[d+8>>2];if(J[c+8>>2]!=3)break Qc;J[695492]=0;d=e+188|0;da(5186,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+188>>2];s=J[e+176>>2],t=Js(J[(c?c+12|0:2728584)>>2],255),J[s+60>>2]=t;sc(d);break Qc}break Ec}J[695492]=0;d=fd(e+56|0,2411896,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!= -4){J[695492]=0;da(5194,c|0,4);break Jc}d=J[c+48>>2];c=c+40|0;J[e+20>>2]=c;J[e+16>>2]=d;if(!d){J[695492]=0;da(5073,e+16|0,c|0);break Jc}c=J[d+8>>2];if(J[c+8>>2]!=3)break Qc;J[695492]=0;d=e+188|0;da(5186,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+188>>2];s=J[e+176>>2],t=Js(J[(c?c+12|0:2728584)>>2],255),J[s+48>>2]=t;sc(d);break Qc}break Ec}J[695492]=0;d=fd(e+56|0,2411904,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[695492]=0;da(5194,c|0,4);break Kc}d=J[c+48>>2]; -c=c+40|0;J[e+12>>2]=c;J[e+8>>2]=d;if(!d){J[695492]=0;da(5073,e+8|0,c|0);break Kc}c=J[d+8>>2];if(J[c+8>>2]!=3)break Qc;J[695492]=0;d=e+188|0;da(5186,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+188>>2];s=J[e+176>>2],t=Js(J[(c?c+12|0:2728584)>>2],255),J[s+60>>2]=t;sc(d);break Qc}break Ec}J[695492]=0;d=fd(e+56|0,2411912,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Oc;if(!d){H[J[e+176>>2]+57|0]=1;break Qc}J[695492]=0;f=e+56|0;j=fd(f,2411769,-1);d=J[695492];J[695492]=0;if((d|0)==1)break Ec;d=0; -Yc:{if(!j)break Yc;J[695492]=0;j=fd(f,2411774,-1);d=J[695492];J[695492]=0;if((d|0)==1)break Ec;d=1;if(!j)break Yc;J[695492]=0;j=fd(f,2411778,-1);d=J[695492];J[695492]=0;if((d|0)==1)break Ec;d=2;if(!j)break Yc;J[695492]=0;j=fd(f,2411785,-1);d=J[695492];J[695492]=0;if((d|0)==1)break Ec;d=3;if(!j)break Yc;J[695492]=0;j=fd(f,2411795,-1);d=J[695492];J[695492]=0;if((d|0)==1)break Ec;d=4;if(!j)break Yc;J[695492]=0;j=fd(f,2411806,-1);d=J[695492];J[695492]=0;if((d|0)==1)break Ec;d=5;if(!j)break Yc;J[695492]= -0;d=fd(f,2411817,-1);f=J[695492];J[695492]=0;if((f|0)==1)break Ec;if(d)break Qc;d=6}J[J[e+176>>2]+32>>2]=d;if(J[c+8>>2]!=4){J[695492]=0;da(5194,c|0,4);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Ec}d=J[c+48>>2];if(!d)break Qc;while(1){if(J[c+8>>2]!=4){J[695492]=0;da(5194,c|0,4);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Ec}j=J[d+8>>2];f=J[j+8>>2];if((f|0)==3){J[695492]=0;f=e+188|0;da(5186,f|0,j|0);m=J[695492];J[695492]=0;if((m|0)==1)break Ec;m=J[e+188>>2];s=J[e+176>>2],t=Js(J[(m?m+ -12|0:2728584)>>2],255),J[s+40>>2]=t;sc(f);f=J[j+8>>2]}if((f|0)==1)J[J[e+176>>2]+44>>2]=J[j+20>>2];d=J[d>>2];if(d)continue;break}}sc(e+56|0)}h=h+1|0;if(J[l+8>>2]==4)continue;break Dc}break}break Ec}c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Ec}c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Ec}c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Ec}c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Ec}c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break Ec}c=J[695492];J[695492]=0;if((c|0)!= -1)break ia}c=ea(0)|0;sc(e+56|0);break va}J[695492]=0;da(5194,l|0,4);c=J[695492];J[695492]=0;if((c|0)!=1)break ia;c=ea(0)|0;break va}c=ea(0)|0}vc(e+176|0)}sc(e+180|0);break na}sc(e+180|0);sc(n);sc(e+220|0);break la}sc(e+188|0);break na}sc(e+188|0)}vc(e+180|0);break na}sc(e+188|0)}vc(e+180|0)}sc(n)}sc(e+220|0);na(c|0)|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)==1)break ka}sc(e+228|0)}k=J[k>>2];if(k)continue;break}$c(p);bc=e+384|0;break ha}k=Z()|0;break ja}k=Z()|0;sc(e+228|0);$c(p)}$c(g); -ba(k|0);B()}B()}J[695492]=0;aa(5072,a+28|0,g|0)|0;c=J[695492];J[695492]=0;Zc:{if((c|0)!=1){$c(g);c=bc-96|0;bc=c;J[g>>2]=0;J[g+4>>2]=0;J[g+24>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;n=Jn(g,2389436);J[695492]=0;l=aa(5031,c+28|0,b|0)|0;b=J[695492];J[695492]=0;_c:{$c:{if((b|0)!=1){ad:{bd:{k=J[l+8>>2];if(k)while(1){f=J[k+8>>2];cd:{if(J[f+8>>2]!=4)break cd;J[695492]=0;b=c+20|0;da(5191,b|0,f|0);d=J[695492];J[695492]=0;dd:{ed:{fd:{gd:{if((d|0)!=1){J[695492]=0;d=fd(b,2395551,-1);e=J[695492]; -J[695492]=0;if((e|0)!=1){sc(b);if(d)break cd;if(J[f+8>>2]!=4)break gd;p=f+40|0;d=0;hd:{id:{jd:{kd:{ld:{md:{nd:{od:{while(1){if(J[f+44>>2]<=(d|0))break cd;b=J[f+48>>2];pd:{if(!d)break pd;e=0;if(!b)break pd;while(1){b=J[b>>2];e=e+1|0;if(e>>>0>=d>>>0)break pd;if(b)continue;break}}J[c+68>>2]=p;J[c+64>>2]=b;if(!b){J[695492]=0;da(5073,c- -64|0,p|0);b=J[695492];J[695492]=0;if((b|0)!=1)break fd;b=ea(0)|0;break dd}qd:{e=J[b+8>>2];rd:{if(!e){b=0;break rd}J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]= -0;if((e|0)==1)break qd;b=J[b+8>>2];if(!b){b=0;break rd}J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break rd;J[695492]=0;_(4987,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}if(J[b+8>>2]==4){J[c+12>>2]=0;J[c+16>>2]=J[682146];e=J[b+12>>2];sd:{if(e){h=J[J[e>>2]+28>>2];J[695492]=0;ca(h|0,c+44|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break sd;b=ea(0)|0;break nd}J[c+44>>2]=0}J[695492]=0;aa(4993,c+12|0,c+44|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break od; -e=J[c+44>>2];J[c+44>>2]=0;td:{if(!e)break td;J[695492]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(h)break td;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}e=J[c+12>>2];J[c+16>>2]=J[(e?e+12|0:2728584)>>2];if(J[b+8>>2]!=4){J[695492]=0;da(5194,b|0,4);b=J[695492];J[695492]=0;if((b|0)!=1)break fd;break id}if(J[b+44>>2]<=0){J[695492]=0;ca(5048,c+56|0,2386673,b+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break id;b=J[c+56>>2];b=J[(b?b+12|0:2728584)>> -2];J[695492]=0;d=ja(5018,c- -64|0,b|0,2377733,384,2389813,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ld;J[695492]=0;_(5019,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break fd;b=ea(0)|0;Fc(d);break jd}e=J[b+48>>2];b=b+40|0;J[c+52>>2]=b;J[c+48>>2]=e;if(!e){J[695492]=0;da(5073,c+48|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break fd;break id}b=J[e+8>>2];J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break md;b=J[e+8>>2];J[c+44>>2]=b;if(J[b+8>>2]!=2){J[695492]=0;da(5194,b|0,2); -b=J[695492];J[695492]=0;if((b|0)!=1)break fd;b=ea(0)|0;break kd}J[c+20>>2]=0;J[c+24>>2]=J[682146];ud:{b=J[b+24>>2];vd:{wd:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c+88|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break wd;b=ea(0)|0;break vd}J[c+88>>2]=0}J[695492]=0;aa(4993,c+20|0,c+88|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+88>>2];J[c+88>>2]=0;if(!b)break ud;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)!=1){if(e)break ud;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break ud}break a}b=ea(0)|0;vc(c+88|0)}sc(c+20|0);break kd}b=J[c+20>>2];J[c+24>>2]=J[(b?b+12|0:2728584)>>2];J[695492]=0;e=aa(5168,n|0,c+12|0)|0;b=J[695492];J[695492]=0;xd:{yd:{zd:{Ad:{if((b|0)!=1){b=J[c+20>>2];if(!b)break Ad;h=J[J[b>>2]+28>>2];J[695492]=0;ca(h|0,c+92|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break zd}b=ea(0)|0;break yd}J[c+92>>2]=0}J[695492]=0;aa(4993,e+24|0,c+92|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+92>>2];J[c+92>>2]=0;if(!b)break xd;J[695492]=0;h=J[b+4>> -2]-1|0;J[b+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break xd;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break xd}break a}b=ea(0)|0;vc(c+92|0)}sc(c+20|0);break kd}b=J[e+24>>2];J[e+28>>2]=J[(b?b+12|0:2728584)>>2];sc(c+20|0);b=J[c+44>>2];J[c+44>>2]=0;Bd:{if(!b)break Bd;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break Bd;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}sc(c+12|0)}d=d+1|0;if(J[f+8>>2]==4)continue; -break gd}break}b=ea(0)|0;break dd}b=ea(0)|0;vc(c+44|0)}sc(c+12|0);break dd}b=ea(0)|0;break hd}b=ea(0)|0;break jd}vc(c+44|0);break hd}sc(c+56|0);break hd}b=ea(0)|0}sc(c+12|0);break dd}b=Z()|0;sc(c+20|0);break ad}b=Z()|0;break ad}J[695492]=0;da(5194,f|0,4);b=J[695492];J[695492]=0;if((b|0)==1)break ed}B()}b=ea(0)|0}na(b|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break bd}k=J[k>>2];if(k)continue;break}$c(l);bc=c+96|0;break _c}b=Z()|0}$c(l);break $c}b=Z()|0}Bd(n);ba(b|0);B()}J[695492]= -0;aa(5192,a+44|0,g|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Zc;Bd(g);bc=q+32|0;return}a=Z()|0;$c(q+4|0);ba(a|0);B()}a=Z()|0;Bd(q+4|0);ba(a|0);B()}ea(0)|0;yc();B()}function DOa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=rc(8);J[695492]=0;c=ga(3370,b|0,2643392,315)|0;d=J[695492];J[695492]=0;a:{if((d|0)!=1)b:{J[660742]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2647184,315)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660749]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2650976,315)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break b;J[660756]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2654768,315)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660763]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2658560,315)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660770]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2662352,316)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660777]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2666144,315)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660784]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2669936,315)| -0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660791]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2673728,190)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660798]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2676016,315)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660805]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2679808,315)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660812]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2683600,315)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660819]=c;b=rc(8);J[695492]=0;c=ga(3370, -b|0,2687392,315)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660826]=c;b=rc(8);J[695492]=0;c=ga(3370,b|0,2691184,202)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[660833]=c;break a}a=Z()|0;qc(b);ba(a|0);B()}c=rc(12);J[695492]=0;b=$(3429,c|0)|0;d=J[695492];J[695492]=0;c:{d:{if((d|0)!=1){J[a>>2]=b;b=255;while(1){c=b;d=J[(b<<2)+2693680>>2];if(d)EY(J[a>>2],d,b);b=c-1|0;if(c)continue;break}h=a,i=_n(NI(),782698),J[h+4>>2]=i;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{if((d| -0)!=1){J[a+8>>2]=b;c=rc(8);J[695492]=0;d=aa(3182,c|0,794515)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[a+8>>2];c=rc(8);J[695492]=0;f=aa(3182,c|0,795371)|0;e=J[695492];J[695492]=0;if((e|0)==1){a=Z()|0;break c}xg(b,f,d);c=rc(12);J[695492]=0;b=$(3429,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break N;J[a+12>>2]=b;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break M;J[a+16>>2]=b;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break L; -J[a+20>>2]=b;c=rc(16);J[695492]=0;b=aa(3365,c|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break K;J[a+24>>2]=b;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break J;J[a+28>>2]=b;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break I;J[a+32>>2]=b;c=rc(16);J[695492]=0;b=$(3185,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break H;J[a+36>>2]=b;c=rc(1036);J[695492]=0;b=UX(c);d=J[695492];J[695492]=0;if((d|0)==1)break G;J[a+40>>2]=b;c=rc(16);J[695492]= -0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break F;J[a+44>>2]=b;c=rc(16);J[695492]=0;b=$(3185,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break E;J[a+48>>2]=b;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break D;J[a+52>>2]=b;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break C;J[a+56>>2]=b;c=rc(4);J[695492]=0;b=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break B;J[695492]=0;d=$(3185,b|0)|0;f=J[695492];J[695492]=0;if((f|0)== -1){a=Z()|0;qc(b);break c}J[c>>2]=d;J[a+64>>2]=612;J[a+68>>2]=792;J[a+60>>2]=c;J[a+112>>2]=2;J[a+104>>2]=1;J[a+108>>2]=0;J[a+96>>2]=0;J[a+100>>2]=1;J[a+88>>2]=1;J[a+92>>2]=0;J[a+80>>2]=612;J[a+84>>2]=792;J[a+72>>2]=0;J[a+76>>2]=0;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break A;J[a+116>>2]=b;c=rc(16);J[695492]=0;b=$(3185,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break z;J[a+120>>2]=b;c=rc(16);J[695492]=0;b=$(3185,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break y; -J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=1;J[a+140>>2]=1;J[a+128>>2]=1;J[a+132>>2]=1;J[a+124>>2]=b;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=0;J[a+188>>2]=2E7;J[a+176>>2]=0;J[a+180>>2]=1081262080;J[a+168>>2]=0;J[a+172>>2]=0;J[a+160>>2]=1;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;c=rc(8);J[695492]=0;b=aa(3182,c|0,J[677790])|0;d=J[695492];J[695492]=0;if((d|0)==1)break x;J[a+212>>2]=1;J[a+204>>2]=0;J[a+208>>2]=1;J[a+200>>2]=b;c=rc(8);J[695492]=0;b=aa(3182,c|0,784027)|0;d=J[695492];J[695492]=0;if((d|0)== -1)break w;J[a+220>>2]=0;J[a+216>>2]=b;c=rc(8);J[695492]=0;b=aa(3182,c|0,784429)|0;d=J[695492];J[695492]=0;if((d|0)==1)break v;J[a+236>>2]=0;J[a+228>>2]=1;J[a+232>>2]=1;J[a+224>>2]=b;c=rc(8);J[695492]=0;b=aa(3182,c|0,785344)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;J[a+336>>2]=1;J[a+340>>2]=0;J[a+328>>2]=0;J[a+332>>2]=1;J[a+320>>2]=0;J[a+324>>2]=0;J[a+312>>2]=0;J[a+316>>2]=1072693248;J[a+304>>2]=0;J[a+308>>2]=0;J[a+296>>2]=0;J[a+300>>2]=1072693248;J[a+292>>2]=-1;J[a+284>>2]=0;J[a+288>>2]=-1;J[a+ -276>>2]=0;J[a+280>>2]=1;J[a+268>>2]=1;J[a+272>>2]=1;J[a+260>>2]=1;J[a+264>>2]=0;J[a+252>>2]=10;J[a+256>>2]=1;J[a+244>>2]=1500;J[a+248>>2]=1500;J[a+240>>2]=b;c=rc(8);J[695492]=0;b=aa(3182,c|0,786380)|0;d=J[695492];J[695492]=0;if((d|0)==1)break t;J[a+344>>2]=b;c=rc(8);J[695492]=0;b=aa(3182,c|0,787582)|0;d=J[695492];J[695492]=0;if((d|0)==1)break s;J[a+348>>2]=b;c=rc(8);J[695492]=0;b=aa(3182,c|0,788548)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r;J[a+352>>2]=b;c=rc(8);J[695492]=0;b=aa(3182,c|0,789007)| -0;d=J[695492];J[695492]=0;if((d|0)==1)break q;J[a+360>>2]=0;J[a+364>>2]=0;J[a+356>>2]=b;J[a+384>>2]=1;J[a+376>>2]=1;J[a+380>>2]=0;J[a+368>>2]=0;J[a+372>>2]=0;c=rc(16);J[695492]=0;b=aa(3365,c|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break p;J[a+388>>2]=b;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{if((d| -0)!=1){J[a+392>>2]=c;b=rc(16);J[b+8>>2]=0;J[b>>2]=8193;J[b+4>>2]=0;J[695492]=0;d=$(4,16)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Wa;J[695492]=0;f=$(3185,d|0)|0;e=J[695492];J[695492]=0;Xa:{Ya:{if((e|0)!=1){J[b+12>>2]=f;J[695492]=0;d=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Wa;J[695492]=0;e=aa(3182,d|0,795937)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ya;J[695492]=0;da(3330,f|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break Wa;id(c,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8193; -J[b+4>>2]=1;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Xa;break Q}a=Z()|0;qc(d);break P}a=Z()|0;qc(d);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Za:{_a:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Q;J[695492]=0;e=aa(3182,c|0,796828)|0;g=J[695492];J[695492]=0;if((g|0)==1)break _a;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Q;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8449;J[b+4>> -2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Za;break R}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;$a:{ab:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break R;J[695492]=0;e=aa(3182,c|0,797701)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ab;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break R;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8449;J[b+4>>2]=1; -J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break $a;break S}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;bb:{cb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break S;J[695492]=0;e=aa(3182,c|0,797701)|0;g=J[695492];J[695492]=0;if((g|0)==1)break cb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break S;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8961;J[b+4>>2]=0;J[695492]= -0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break bb;break T}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;db:{eb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break T;J[695492]=0;e=aa(3182,c|0,798419)|0;g=J[695492];J[695492]=0;if((g|0)==1)break eb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break T;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=9217;J[b+4>>2]=0;J[695492]=0;c=$(4, -16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break db;break U}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;fb:{gb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break U;J[695492]=0;e=aa(3182,c|0,799075)|0;g=J[695492];J[695492]=0;if((g|0)==1)break gb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break U;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8705;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0; -d=J[695492];J[695492]=0;if((d|0)!=1)break fb;break V}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;hb:{ib:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break V;J[695492]=0;e=aa(3182,c|0,799890)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ib;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break V;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=16;J[b>>2]=8706;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492]; -J[695492]=0;if((d|0)!=1)break hb;break W}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;jb:{kb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break W;J[695492]=0;e=aa(3182,c|0,800656)|0;g=J[695492];J[695492]=0;if((g|0)==1)break kb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break W;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8194;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]= -0;if((d|0)!=1)break jb;break X}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;lb:{mb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break X;J[695492]=0;e=aa(3182,c|0,801200)|0;g=J[695492];J[695492]=0;if((g|0)==1)break mb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break X;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8450;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d| -0)!=1)break lb;break Y}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;nb:{ob:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Y;J[695492]=0;e=aa(3182,c|0,801988)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ob;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Y;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8195;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break nb; -break Z}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;pb:{qb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Z;J[695492]=0;e=aa(3182,c|0,802579)|0;g=J[695492];J[695492]=0;if((g|0)==1)break qb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Z;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8196;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break pb;break _}a= -Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;rb:{sb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break _;J[695492]=0;e=aa(3182,c|0,803718)|0;g=J[695492];J[695492]=0;if((g|0)==1)break sb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break _;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8197;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break rb;break $}a=Z()|0; -qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;tb:{ub:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break $;J[695492]=0;e=aa(3182,c|0,804153)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ub;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break $;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8198;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break tb;break aa}a=Z()|0;qc(c); -break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;vb:{wb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break aa;J[695492]=0;e=aa(3182,c|0,804613)|0;g=J[695492];J[695492]=0;if((g|0)==1)break wb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break aa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8199;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break vb;break ba}a=Z()|0;qc(c);break P}a= -Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;xb:{yb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ba;J[695492]=0;e=aa(3182,c|0,805024)|0;g=J[695492];J[695492]=0;if((g|0)==1)break yb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ba;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8196;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break xb;break ca}a=Z()|0;qc(c);break P}a=Z()| -0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;zb:{Ab:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ca;J[695492]=0;e=aa(3182,c|0,805302)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ab;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ca;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=8197;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break zb;break da}a=Z()|0;qc(c);break P}a=Z()|0; -qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Bb:{Cb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break da;J[695492]=0;e=aa(3182,c|0,805672)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Cb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break da;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=111;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Bb;break ea}a=Z()|0;qc(c);break P}a=Z()|0;qc(c); -break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Db:{Eb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ea;J[695492]=0;e=aa(3182,c|0,806154)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Eb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ea;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=114;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Db;break fa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]= -0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Fb:{Gb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break fa;J[695492]=0;e=aa(3182,c|0,806682)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Gb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break fa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=102;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Fb;break ga}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d= -$(3185,c|0)|0;e=J[695492];J[695492]=0;Hb:{Ib:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ga;J[695492]=0;e=aa(3182,c|0,807167)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ib;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ga;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=103;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Hb;break ha}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185, -c|0)|0;e=J[695492];J[695492]=0;Jb:{Kb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ha;J[695492]=0;e=aa(3182,c|0,807308)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Kb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ha;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=99;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Jb;break ia}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)| -0;e=J[695492];J[695492]=0;Lb:{Mb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ia;J[695492]=0;e=aa(3182,c|0,807624)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Mb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ia;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=112;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Lb;break ja}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e= -J[695492];J[695492]=0;Nb:{Ob:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ja;J[695492]=0;e=aa(3182,c|0,807952)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ob;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ja;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=48;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Nb;break ka}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492]; -J[695492]=0;Pb:{Qb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ka;J[695492]=0;e=aa(3182,c|0,808664)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Qb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ka;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=43;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Pb;break la}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]= -0;Rb:{Sb:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break la;J[695492]=0;e=aa(3182,c|0,805302)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Sb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break la;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=61;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Rb;break ma}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Tb:{Ub:{if((e| -0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ma;J[695492]=0;e=aa(3182,c|0,805302)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ub;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ma;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=45;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Tb;break na}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Vb:{Wb:{if((e|0)!= -1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break na;J[695492]=0;e=aa(3182,c|0,805672)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Wb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break na;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=115;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Vb;break oa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Xb:{Yb:{if((e|0)!=1){J[b+ -12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break oa;J[695492]=0;e=aa(3182,c|0,808778)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Yb;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break oa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=116;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Xb;break pa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Zb:{_b:{if((e|0)!=1){J[b+12>> -2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break pa;J[695492]=0;e=aa(3182,c|0,809270)|0;g=J[695492];J[695492]=0;if((g|0)==1)break _b;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break pa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=110;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Zb;break qa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;$b:{ac:{if((e|0)!=1){J[b+12>>2]= -d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break qa;J[695492]=0;e=aa(3182,c|0,826420)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ac;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break qa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=119;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break $b;break ra}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;bc:{cc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]= -0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ra;J[695492]=0;e=aa(3182,c|0,826774)|0;g=J[695492];J[695492]=0;if((g|0)==1)break cc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ra;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=108;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break bc;break sa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;dc:{ec:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c= -$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break sa;J[695492]=0;e=aa(3182,c|0,809712)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ec;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break sa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=113;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break dc;break ta}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;fc:{gc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4, -8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ta;J[695492]=0;e=aa(3182,c|0,810011)|0;g=J[695492];J[695492]=0;if((g|0)==1)break gc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ta;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4096;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break fc;break ua}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;hc:{ic:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)| -0;e=J[695492];J[695492]=0;if((e|0)==1)break ua;J[695492]=0;e=aa(3182,c|0,810451)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ic;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ua;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4096;J[b+4>>2]=3;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break hc;break va}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;jc:{kc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0; -e=J[695492];J[695492]=0;if((e|0)==1)break va;J[695492]=0;e=aa(3182,c|0,810816)|0;g=J[695492];J[695492]=0;if((g|0)==1)break kc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break va;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=63;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break jc;break wa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;lc:{mc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break wa;J[695492]=0;e=aa(3182,c|0,810917)|0;g=J[695492];J[695492]=0;if((g|0)==1)break mc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break wa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4107;J[b+4>>2]=4;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break lc;break xa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;nc:{oc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]= -0;if((e|0)==1)break xa;J[695492]=0;e=aa(3182,c|0,811492)|0;g=J[695492];J[695492]=0;if((g|0)==1)break oc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break xa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4108;J[b+4>>2]=4;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break nc;break ya}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;pc:{qc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0; -if((e|0)==1)break ya;J[695492]=0;e=aa(3182,c|0,811776)|0;g=J[695492];J[695492]=0;if((g|0)==1)break qc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break ya;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4103;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break pc;break za}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;rc:{sc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e| -0)==1)break za;J[695492]=0;e=aa(3182,c|0,812144)|0;g=J[695492];J[695492]=0;if((g|0)==1)break sc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break za;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4103;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break rc;break Aa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;tc:{uc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)== -1)break Aa;J[695492]=0;e=aa(3182,c|0,812268)|0;g=J[695492];J[695492]=0;if((g|0)==1)break uc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Aa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4104;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break tc;break Ba}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;vc:{wc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ba; -J[695492]=0;e=aa(3182,c|0,812636)|0;g=J[695492];J[695492]=0;if((g|0)==1)break wc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ba;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4104;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break vc;break Ca}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;xc:{yc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ca;J[695492]= -0;e=aa(3182,c|0,812915)|0;g=J[695492];J[695492]=0;if((g|0)==1)break yc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ca;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4105;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break xc;break Da}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;zc:{Ac:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Da;J[695492]=0; -e=aa(3182,c|0,813235)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ac;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Da;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4106;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break zc;break Ea}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Bc:{Cc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ea;J[695492]=0;e= -aa(3182,c|0,813517)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Cc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ea;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4105;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Bc;break Fa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Dc:{Ec:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Fa;J[695492]=0;e=aa(3182, -c|0,813893)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ec;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Fa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4106;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Dc;break Ga}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Fc:{Gc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ga;J[695492]=0;e=aa(3182,c| -0,814067)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Gc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ga;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=256;J[b>>2]=4105;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Fc;break Ha}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Hc:{Ic:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ha;J[695492]=0;e=aa(3182,c| -0,814259)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ic;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ha;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=256;J[b>>2]=4106;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Hc;break Ia}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Jc:{Kc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ia;J[695492]=0;e=aa(3182,c| -0,814536)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Kc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ia;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=1;J[b>>2]=4100;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Jc;break Ja}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Lc:{Mc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ja;J[695492]=0;e=aa(3182,c|0, -814890)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Mc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ja;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4107;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Lc;break Ka}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Nc:{Oc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ka;J[695492]=0;e=aa(3182,c|0,804613)| -0;g=J[695492];J[695492]=0;if((g|0)==1)break Oc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ka;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4108;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Nc;break La}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Pc:{Qc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break La;J[695492]=0;e=aa(3182,c|0,805024)|0; -g=J[695492];J[695492]=0;if((g|0)==1)break Qc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break La;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4109;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Pc;break Ma}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Rc:{Sc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ma;J[695492]=0;e=aa(3182,c|0,815168)|0;g= -J[695492];J[695492]=0;if((g|0)==1)break Sc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ma;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4110;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Rc;break Na}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Tc:{Uc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Na;J[695492]=0;e=aa(3182,c|0,815408)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break Uc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Na;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4109;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Tc;break Oa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Vc:{Wc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Oa;J[695492]=0;e=aa(3182,c|0,813893)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break Wc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Oa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=4110;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Vc;break Pa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Xc:{Yc:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Pa;J[695492]=0;e=aa(3182,c|0,814067)|0;g=J[695492];J[695492]=0; -if((g|0)==1)break Yc;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Pa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=256;J[b>>2]=4109;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Xc;break Qa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;Zc:{_c:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Qa;J[695492]=0;e=aa(3182,c|0,814259)|0;g=J[695492];J[695492]=0; -if((g|0)==1)break _c;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Qa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=256;J[b>>2]=4110;J[b+4>>2]=2;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break Zc;break Ra}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;$c:{ad:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ra;J[695492]=0;e=aa(3182,c|0,814536)|0;g=J[695492];J[695492]=0; -if((g|0)==1)break ad;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ra;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=32;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break $c;break Sa}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;bd:{cd:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Sa;J[695492]=0;e=aa(3182,c|0,813517)|0;g=J[695492];J[695492]=0;if((g| -0)==1)break cd;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Sa;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=103;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break bd;break Ta}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;dd:{ed:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ta;J[695492]=0;e=aa(3182,c|0,815706)|0;g=J[695492];J[695492]=0;if((g|0)== -1)break ed;J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ta;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=122;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break dd;break Ua}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;fd:{gd:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ua;J[695492]=0;e=aa(3182,c|0,815971)|0;g=J[695492];J[695492]=0;if((g|0)==1)break gd; -J[695492]=0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ua;id(f,b);f=J[a+392>>2];b=rc(16);J[b+8>>2]=0;J[b>>2]=119;J[b+4>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break fd;break Va}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}J[695492]=0;d=$(3185,c|0)|0;e=J[695492];J[695492]=0;hd:{if((e|0)!=1){J[b+12>>2]=d;J[695492]=0;c=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Va;J[695492]=0;e=aa(3182,c|0,816139)|0;g=J[695492];J[695492]=0;if((g|0)==1)break hd;J[695492]= -0;da(3330,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Va;id(f,b);break O}a=Z()|0;qc(c);break P}a=Z()|0;qc(c);break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a= +24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break v}J[j+116>>2]=I[k+34>>1];d=L[k+32>>1];J[j+268>>2]=((d|0)==4)<<2;O[j+152>>3]=M[k+20>>2];O[j+160>>3]=M[k+24>>2];if((d|0)!=4)break K;yL(j)}L:{if(e)break L;J[j+124>>2]=2;M:{N:{if(!a&f>>>0<=32767){if(!u2(j,2))break N;e=J[j+124>>2];if(!e)break L;o=e&1;i=J[j+264>>2];d=0;a=0;if((e|0)!=1){l=e&-2;n=0;h=0;while(1){e=i+P(d,80)|0;p=255-O[e+48>>3];O[e+32>>3]=p;O[e+40>>3]=255-O[e+40>>3];O[e+48>>3]=255-p;e=i+P(d|1,80)|0;p=255-O[e+48>>3];O[e+ +32>>3]=p;O[e+40>>3]=255-O[e+40>>3];O[e+48>>3]=255-p;d=d+2|0;a=d>>>0<2?a+1|0:a;e=h;n=n+2|0;e=n>>>0<2?e+1|0:e;h=e;if((l|0)!=(n|0)|e)continue;break}}if(!o)break L;a=i+P(d,80)|0;p=255-O[a+48>>3];O[a+32>>3]=p;O[a+40>>3]=255-O[a+40>>3];O[a+48>>3]=255-p;break L}Q0(m);e=hq(m);a=hq(m)+1|0;J[j+124>>2]=a;if(u2(j,a))break M}a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(!a)break v;uc(a);J[j+120>>2]=0;J[j+144>>2]=0;f=0;break a}if(!J[j+124>>2])break L;d=0;a=0;h=e<<16>>16<0;while(1){H[k+ +62|0]=0;e=ge(k+62|0,1,2,m);n=K[k+63|0];i=K[k+62|0];o=J[j+124>>2];H[k+62|0]=0;l=ge(k+62|0,1,2,m);e=P(h?d:(((e|0)!=2?65535:n|i<<8)>>>0)%(o>>>0)|0,80);O[(e+J[j+264>>2]|0)+32>>3]=(l|0)==2?+K[k+63|0]:255;H[k+62|0]=0;n=ge(k+62|0,1,2,m);O[(e+J[j+264>>2]|0)+40>>3]=(n|0)==2?+K[k+63|0]:255;H[k+62|0]=0;n=ge(k+62|0,1,2,m);O[(e+J[j+264>>2]|0)+48>>3]=(n|0)==2?+K[k+63|0]:255;d=d+1|0;a=d?a:a+1|0;if(!a&M[j+124>>2]>d>>>0)continue;break}}if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1){a=J[c+144>>2];if(a){uc(a); +J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a);J[j+120>>2]=0;J[j+144>>2]=0}H[c+292|0]=69;H[c+293|0]=79;H[c+294|0]=70;H[c+295|0]=102;H[c+296|0]=105;H[c+297|0]=108;H[c+298|0]=101;H[c+299|0]=0;f=0;break a}if(!Jr(m,k- -64|0)){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]| +K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}if(!Jr(m,k+4|0)){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a); +J[j+120>>2]=0;J[j+144>>2]=0}a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]= +b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}hq(m);O:{if((b&65527)!=145&(u|0)!=155)break O;a=hq(m);if(NK(m)>>>0>>0)break w;a=a-2|0;if(!a)break O;e=a;d=0;a=0;while(1){if((ih(m)|0)==-1)break O;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}}h=f;i=0;e=0;d=0;a=0;A=fc-2064|0;fc=A;o=1;f=J[j+112>>2];l=f;P:{Q:{n=I[k+30>>1];x=s>>>0<4294967294?q?1:n:n;n=x-16|0;if(n)if((n|0)==16)break Q;else break P;l=f<<1;o=2;break P}l=P(f,J[j+268>>2]?4:3)}g= +(J[j>>2]==1?f<<2:f)|32768;n=P(g,J[j+108>>2]);f=kd(1,n);R:{if(!f){f=0;break R}J[k+56>>2]=n;S:{v=kd(1,g<<1);if(!v)break S;r=Ac(A,0,2048);n=J[j+108>>2];T:{h=x>>>0<9?h&32767:h;h=h?h:l;U:{if(h>>>0>=8){if(!n)break U;C=h>>>0<251;while(1){V:{if(!C){H[r+2062|0]=0;q=65535;if(!m)break V;if((ge(r+2062|0,1,2,m)|0)!=2)break V;q=K[r+2063|0]|K[r+2062|0]<<8;break V}q=ih(m)}W:{if(!q|g>>>0<=q>>>0)break W;if(m)e=ge(v,1,q,m);else e=0;w=e;t=e>>31;if((e|0)!=(q|0)|t)break W;s=P(d,l)+f|0;n=0;h=0;while(1){q=n+v|0;i=H[q|0]; +e=i&255;X:{if((i|0)>=0){i=P(e+1|0,o);J[r+2056>>2]=i;q=$A(q+1|0,x,r,r+2056|0);e=J[r+2056>>2];if(M[k+56>>2]>=e+(s-f|0)>>>0){xc(s,q,e);e=J[r+2056>>2]}s=e+s|0;break X}J[r+2056>>2]=o;e=257-e|0;D=e&510;E=e&1;i=0;e=0;z=$A(q+1|0,x,r,r+2056|0);q=J[r+2056>>2];while(1){if(M[k+56>>2]>=(s-f|0)+q>>>0){xc(s,z,q);q=J[r+2056>>2]}s=q+s|0;if(M[k+56>>2]>=(s-f|0)+q>>>0){xc(s,z,q);q=J[r+2056>>2]}s=q+s|0;i=i+2|0;e=i>>>0<2?e+1|0:e;if((i|0)!=(D|0)|e)continue;break}i=o;if(E){if(M[k+56>>2]>=(s-f|0)+q>>>0){xc(s,z,q);q=J[r+2056>> +2]}s=q+s|0}}e=i+1|0;n=e+n|0;h=e>>>0>n>>>0?h+1|0:h;if((t|0)==(h|0)&n>>>0>>0|h>>>0>>0)continue;break}d=d+1|0;a=d?a:a+1|0;if(!a&M[j+108>>2]>d>>>0)continue;break U}break}uc(v);break S}if(!n)break U;if(m){while(1){d=J[j+288>>2];J[r+2056>>2]=h;a=ge(v,1,h,m);if((h|0)!=(a|0)|a>>31)break T;a=$A(v,x,r,r+2056|0);d=P(d,P(i,l))+f|0;n=J[r+2056>>2];if(d+n>>>0>J[k+56>>2]+f>>>0)break T;xc(d,a,n);i=i+1|0;e=i?e:e+1|0;if(!e&M[j+108>>2]>i>>>0)continue;break}break U}if(h)break T;while(1){a=J[j+288>>2];J[r+2056>> +2]=0;d=$A(v,x,r,r+2056|0);a=P(a,P(i,l))+f|0;h=J[r+2056>>2];if(a+h>>>0>J[k+56>>2]+f>>>0)break T;xc(a,d,h);i=i+1|0;e=i?e:e+1|0;if(!e&M[j+108>>2]>i>>>0)continue;break}}uc(v);break R}uc(v);uc(f);break R}uc(f);f=0}fc=A+2064|0;if(!f)break x;e=f;Y:{if(!J[j+108>>2])break Y;w=I[k+32>>1]-1|0;s=J[k+56>>2]+e|0;q=L[k+30>>1];n=0;h=0;while(1){if(s+J[c+112>>2]>>>0>>0){uc(e);a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[19107]|K[19108]<<8|(K[19109]<< +16|K[19110]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[19104]|K[19105]<<8|(K[19106]<<16|K[19107]<<24);b=K[19100]|K[19101]<<8|(K[19102]<<16|K[19103]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[19096]|K[19097]<<8|(K[19098]<<16|K[19099]<<24);b=K[19092]|K[19093]<<8|(K[19094]<<16|K[19095]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+ +297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}a=J[j+144>>2];if(!a)break Y;i=J[j+112>>2];Z:{if(!i){i=0;break Z}l=a+P(J[j+288>>2],P(i,n))|0;d=0;a=0;if((q|0)==16)while(1){i=J[j+272>>2];_:{if(J[j>>2]!=2){o=K[f+1|0];r=J[i+8>>2]+l|0;i=K[f|0];H[r|0]=i<<1&248;H[J[J[j+272>>2]+24>>2]+l|0]=o>>>2&56|i<<6;f=f+1|0;i=o<<3;break _}o=K[f|0];o=o>>>0>2]?o:0;if(J[i+84>>2]){H[J[i+88>>2]+l|0]=o;i=J[j+272>>2]}r=J[i+8>>2]+l|0;i=P(o,80);p=O[(i+J[j+264>>2]|0)+32>>3];$:{if(p<4294967296&p>=0){o=~~p>>> +0;break $}o=0}H[r|0]=o;r=J[J[j+272>>2]+24>>2]+l|0;p=O[(i+J[j+264>>2]|0)+40>>3];aa:{if(p<4294967296&p>=0){o=~~p>>>0;break aa}o=0}H[r|0]=o;p=O[(i+J[j+264>>2]|0)+48>>3];if(p<4294967296&p>=0){i=~~p>>>0;break _}i=0}H[J[J[j+272>>2]+40>>2]+l|0]=i;f=f+1|0;l=J[j+288>>2]+l|0;d=d+1|0;a=d?a:a+1|0;i=J[j+112>>2];if(!a&i>>>0>d>>>0)continue;break Z}while(1){ba:{if(J[j>>2]==2){i=K[f|0];o=i>>>0>2]?i:0;i=J[j+272>>2];if(J[i+84>>2]){H[J[i+88>>2]+l|0]=o;i=J[j+272>>2]}r=J[i+8>>2]+l|0;i=P(o,80);p=O[(i+J[j+264>> +2]|0)+32>>3];ca:{if(p<4294967296&p>=0){o=~~p>>>0;break ca}o=0}H[r|0]=o;r=J[J[j+272>>2]+24>>2]+l|0;p=O[(i+J[j+264>>2]|0)+40>>3];da:{if(p<4294967296&p>=0){o=~~p>>>0;break da}o=0}H[r|0]=o;p=O[(i+J[j+264>>2]|0)+48>>3];if(p<4294967296&p>=0){i=~~p>>>0;break ba}i=0;break ba}o=J[c+112>>2];if(!J[j+268>>2]){if(s+(o<<1)>>>0>>0){uc(e);a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[19107]|K[19108]<<8|(K[19109]<<16|K[19110]<<24);H[c+307|0]=a;H[c+ +308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[19104]|K[19105]<<8|(K[19106]<<16|K[19107]<<24);b=K[19100]|K[19101]<<8|(K[19102]<<16|K[19103]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[19096]|K[19097]<<8|(K[19098]<<16|K[19099]<<24);b=K[19092]|K[19093]<<8|(K[19094]<<16|K[19095]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+ +299|0]=a>>>24;f=0;break a}H[J[J[j+272>>2]+8>>2]+l|0]=K[f|0];H[J[J[j+272>>2]+24>>2]+l|0]=K[J[j+112>>2]+f|0];i=K[(J[j+112>>2]<<1)+f|0];break ba}if(s+P(o,3)>>>0>>0){uc(e);a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[19107]|K[19108]<<8|(K[19109]<<16|K[19110]<<24);H[c+307|0]=a;H[c+308|0]=a>>>8;H[c+309|0]=a>>>16;H[c+310|0]=a>>>24;a=K[19104]|K[19105]<<8|(K[19106]<<16|K[19107]<<24);b=K[19100]|K[19101]<<8|(K[19102]<<16|K[19103]<<24);H[c+ +300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[19096]|K[19097]<<8|(K[19098]<<16|K[19099]<<24);b=K[19092]|K[19093]<<8|(K[19094]<<16|K[19095]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}o=J[j+272>>2];if(J[o+68>>2]){H[J[o+72>>2]+l|0]=K[f|0];i=J[j+112>>2];o=J[j+272>>2]}H[J[o+8>>2]+l|0]=K[f+i|0];H[J[J[j+272>>2]+24>> +2]+l|0]=K[(J[j+112>>2]<<1)+f|0];i=K[P(J[j+112>>2],3)+f|0]}H[J[J[j+272>>2]+40>>2]+l|0]=i;f=f+1|0;l=J[j+288>>2]+l|0;d=d+1|0;a=d?a:a+1|0;i=J[j+112>>2];if(!a&i>>>0>d>>>0)continue;break}}if(!((q|0)==16|J[j>>2]!=1)){f=P(i,w)+f|0;if(e>>>0>f>>>0)break Y}a=h;n=n+1|0;h=n?a:a+1|0;if(!h&M[j+108>>2]>n>>>0)continue;break}}if(J[j+268>>2]?J[j>>2]==2|L[k+30>>1]==16:1)yL(j);uc(e);if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(!(a>>>4&1|y))ea:{y=I[k+6>>1];r=y>>31;v=I[k+4>>1];x=v>>31;n=0;h=0;J[c>>2]=1;if(!J[c+144>>2])break ea; +fa:{g=mZ(j,0,0);a=J[g+108>>2];if(a){d=J[g+112>>2];if(d)break fa}a=K[9777]|K[9778]<<8|(K[9779]<<16|K[9780]<<24);d=K[9773]|K[9774]<<8|(K[9775]<<16|K[9776]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[9769]|K[9770]<<8|(K[9771]<<16|K[9772]<<24);d=K[9765]|K[9766]<<8|(K[9767]<<16|K[9768]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+ +299|0]=a>>>24;break ea}l=P(J[g+288>>2],P(a,d));J[g+120>>2]=l;a=J[g+144>>2];ga:{if(!a){t=Dc(l);break ga}t=fe(a,l);l=J[g+120>>2]}J[g+144>>2]=t;xc(t,J[j+144>>2],l);d=J[c+4>>2];ha:{if((d|0)==J[g+4>>2])break ha;J[g+168>>2]=-780903145;J[g+172>>2]=1071454021;J[g+4>>2]=d;Ac(g+8|0,0,96);a=J[g+176>>2];f=2;ia:{ja:{ka:{la:switch(d-3|0){case 30:J[g+168>>2]=0;J[g+172>>2]=1072693248;break ia;default:if(d-25>>>0>1)break ka;break;case 0:break ia;case 18:case 19:break la}J[g+168>>2]=0;J[g+172>>2]=1072693248;break ja}J[g+ +8>>2]=1202590843;J[g+12>>2]=1071938273;J[g+96>>2]=529139971;J[g+100>>2]=1071050339;J[g+88>>2]=68719477;J[g+92>>2]=1070927446;J[g+80>>2]=-597859448;J[g+84>>2]=1070859078;J[g+72>>2]=343597384;J[g+76>>2]=1072252846;d=g- -64|0;J[d>>2]=-343597384;J[d+4>>2]=1068415057;J[g+56>>2]=858993459;J[g+60>>2]=1069757235;J[g+48>>2]=-1717986918;J[g+52>>2]=1069128089;J[g+40>>2]=858993459;J[g+44>>2]=1071854387;J[g+32>>2]=858993459;J[g+36>>2]=1070805811;J[g+24>>2]=-343597384;J[g+28>>2]=1067366481;J[g+16>>2]=1374389535; +J[g+20>>2]=1070931640}f=a}if(!J[g+144>>2])break ha;J[g+176>>2]=f}A=1;a=J[c+132>>2];ma:{if(!a)break ma;a=aJ(a,5807);if(a)na:{f=0;q=0;if(!a)break na;l=13368;i=K[a|0];oa:{if(!i)break oa;if((i|0)!=116){f=i;if(((f-65>>>0<26?f|32:f)|0)!=116)break oa}l=13369;f=K[a+1|0];if(!f)break oa;if((f|0)!=114)if(((f-65>>>0<26?f|32:f)|0)!=114)break oa;l=13370;f=K[a+2|0];if(!f)break oa;if((f|0)!=117)if(((f-65>>>0<26?f|32:f)|0)!=117)break oa;l=13371;f=K[a+3|0];if(!f)break oa;if((f|0)!=101)if(((f-65>>>0<26?f|32:f)|0)!= +101)break oa;f=K[a+4|0];l=13372}q=1;d=K[l|0];pa:{if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa;l=6997;qa:{if(!i){f=0;break qa}if((i|0)!=111){f=i;if(((f-65>>>0<26?f|32:f)|0)!=111)break qa}l=6998;f=K[a+1|0];if(!f)break qa;if((f|0)!=110)if(((f-65>>>0<26?f|32:f)|0)!=110)break qa;f=K[a+2|0];l=6999}d=K[l|0];if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa;l=4261;ra:{if(!i){f=0;break ra}if((i|0)!=121){f=i;if(((f-65>>>0<26?f|32:f)|0)!=121)break ra}l=4262;f=K[a+1|0];if(!f)break ra; +if((f|0)!=101)if(((f-65>>>0<26?f|32:f)|0)!=101)break ra;l=4263;f=K[a+2|0];if(!f)break ra;if((f|0)!=115)if(((f-65>>>0<26?f|32:f)|0)!=115)break ra;f=K[a+3|0];l=4264}d=K[l|0];if(((f-65>>>0<26?f|32:f)|0)==((d-65>>>0<26?d|32:d)|0))break pa;f=28350;sa:{if(!i){i=0;break sa}if((i|0)!=49)if(((i-65>>>0<26?i|32:i)|0)!=49)break sa;i=K[a+1|0];f=28351}a=K[f|0];q=((i-65>>>0<26?i|32:i)|0)==((a-65>>>0<26?a|32:a)|0)}}else q=1;A=q;a=J[c+132>>2];if(!a)break ma;aJ(a,17795)}a=J[c+272>>2];J[a+4>>2]=2;J[a+68>>2]=2;J[a+36>> +2]=2;J[a+20>>2]=2;a=J[g+272>>2];J[a+4>>2]=1;J[a+68>>2]=1;J[a+36>>2]=1;J[a+20>>2]=1;ta:{if((r|x)<0)break ta;d=J[c+112>>2];a=r;e=y+J[g+112>>2]|0;a=e>>>0>>0?a+1|0:a;if((a|0)>0)a=1;else a=d>>>0>>0&(a|0)>=0;if(a)break ta;d=J[c+108>>2];a=x;f=J[g+108>>2];e=v+f|0;a=e>>>0>>0?a+1|0:a;if((a|0)>0)a=1;else a=d>>>0>>0&(a|0)>=0;if(a)break ta;if(!(J[g+268>>2]|!J[c+268>>2])){yL(g);f=J[g+108>>2]}if(f){q=1;while(1){ua:{if(!q){q=0;break ua}f=J[g+112>>2];q=0;i=J[g+144>>2];va:{if(!i){i=0;break va}if(!f){i= +0;break va}a=xEb(-1,33554431,f,0);d=jc;if((d|0)==(h|0)&a>>>0<=n>>>0|d>>>0>>0){i=0;break va}e=J[g+288>>2];d=vEb(e,0,f,0);if(jc){i=0;a=K[11127]|K[11128]<<8|(K[11129]<<16|K[11130]<<24);d=K[11123]|K[11124]<<8|(K[11125]<<16|K[11126]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[11119]|K[11120]<<8|(K[11121]<<16|K[11122]<<24);d=K[11115]|K[11116]<<8|(K[11117]<<16|K[11118]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+ +294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break va}if(d){i=i+P(e,P(f,n))|0;f=J[g+112>>2];break va}i=0;a=K[2371]|K[2372]<<8|(K[2373]<<16|K[2374]<<24);d=K[2367]|K[2368]<<8|(K[2369]<<16|K[2370]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[2363]|K[2364]<<8|(K[2365]<<16|K[2366]<<24);d=K[2359]|K[2360]<<8|(K[2361]<<16|K[2362]<<24);H[g+292|0]=d;H[g+293|0]= +d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24}s=J[c+144>>2];if(!s)break ua;d=J[c+112>>2];if(!d)break ua;e=h+x|0;a=xEb(-1,33554431,d,0);o=n+v|0;e=o>>>0>>0?e+1|0:e;w=e;l=jc;if((e|0)>=(l|0)&a>>>0<=o>>>0|(e|0)>(l|0))break ua;a=xEb(0,33554432,d,0);l=0-a|0;a=0-(jc+((a|0)!=0)|0)|0;if((a|0)>=(e|0)&l>>>0>=o>>>0|(a|0)>(e|0))break ua;e=J[c+288>>2];f=vEb(e,0,f,0);if(jc){a=K[11127]|K[11128]<<8|(K[11129]<<16|K[11130]<<24);d=K[11123]|K[11124]<<8|(K[11125]<< +16|K[11126]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[11119]|K[11120]<<8|(K[11121]<<16|K[11122]<<24);d=K[11115]|K[11116]<<8|(K[11117]<<16|K[11118]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break ua}if(f){if(!i)break ua;q=1;l=J[g+112>>2];if(!l)break ua;a=vEb(o,w,d,0)+y|0;f=P(a,e)+s|0;w=0;o=0;while(1){wa:{xa:{a= +J[g+272>>2];if(!(H[J[a+104>>2]+i|0]>=0?J[a+100>>2]:0)){d=0;a=0;t=J[g+288>>2];if(t)break xa;t=0;break wa}t=J[g+288>>2];break wa}while(1){e=J[g+272>>2];l=0;ya:{if(!a&d>>>0<=63){l=J[e+(d<<4)>>2];if(l>>>0>63)break ya}s=e;e=l<<4;if(!J[(s+e|0)+4>>2])break ya;e=e+J[c+272>>2]|0;if(!J[e+4>>2])break ya;H[J[e+8>>2]+f|0]=K[d+i|0];t=J[g+288>>2]}d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}l=J[g+112>>2]}i=i+t|0;f=J[c+288>>2]+f|0;a=o;w=w+1|0;o=w?a:a+1|0;if(!o&l>>>0>w>>>0)continue;break}break ua}a=K[2371]| +K[2372]<<8|(K[2373]<<16|K[2374]<<24);d=K[2367]|K[2368]<<8|(K[2369]<<16|K[2370]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[2363]|K[2364]<<8|(K[2365]<<16|K[2366]<<24);d=K[2359]|K[2360]<<8|(K[2361]<<16|K[2362]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}a=h;n=n+1|0;h=n?a:a+1|0;if(!h&M[g+108>>2]>n>>>0)continue;break}}uc(J[g+ +144>>2]);uc(J[g+272>>2]);uc(g);break ea}if(J[c+108>>2]){F=+(y>>>0)+ +(r|0)*4294967296;G=+(v>>>0)+ +(x|0)*4294967296;i=1;while(1){a=i;i=0;za:{if(!a)break za;i=1;a=n>>>0>>0;d=a&(h|0)<=(x|0)|(h|0)<(x|0);if(d)break za;p=+M[g+108>>2];B=+(n>>>0)+ +(h|0)*4294967296-G;if(p<=B)break za;s=0;e=0;Aa:{if(d)break Aa;e=0;if(!(p>B))break Aa;i=0;o=J[g+144>>2];if(!o)break za;d=J[g+112>>2];if(!d)break za;f=xEb(-1,33554431,d,0);e=n-v|0;a=h-(a+x|0)|0;l=jc;if(f>>>0<=e>>>0&(a|0)>=(l|0)|(a|0)>(l|0))break za;f=xEb(0,33554432, +d,0);l=0-f|0;f=0-(jc+((f|0)!=0)|0)|0;if(e>>>0<=l>>>0&(f|0)>=(a|0)|(a|0)<(f|0))break za;i=J[g+288>>2];f=vEb(i,0,d,0);if(jc){i=0;a=K[11127]|K[11128]<<8|(K[11129]<<16|K[11130]<<24);d=K[11123]|K[11124]<<8|(K[11125]<<16|K[11126]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[11119]|K[11120]<<8|(K[11121]<<16|K[11122]<<24);d=K[11115]|K[11116]<<8|(K[11117]<<16|K[11118]<<24);H[g+292|0]=d;H[g+293|0]=d>>>8;H[g+294| +0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break za}Ba:{if(f){s=o+P(i,P(d,e))|0;if((r|0)<0)break Ba;e=s;break Aa}i=0;a=K[2371]|K[2372]<<8|(K[2373]<<16|K[2374]<<24);d=K[2367]|K[2368]<<8|(K[2369]<<16|K[2370]<<24);H[g+300|0]=d;H[g+301|0]=d>>>8;H[g+302|0]=d>>>16;H[g+303|0]=d>>>24;H[g+304|0]=a;H[g+305|0]=a>>>8;H[g+306|0]=a>>>16;H[g+307|0]=a>>>24;a=K[2363]|K[2364]<<8|(K[2365]<<16|K[2366]<<24);d=K[2359]|K[2360]<<8|(K[2361]<<16|K[2362]<<24);H[g+292|0]=d; +H[g+293|0]=d>>>8;H[g+294|0]=d>>>16;H[g+295|0]=d>>>24;H[g+296|0]=a;H[g+297|0]=a>>>8;H[g+298|0]=a>>>16;H[g+299|0]=a>>>24;break za}e=s-P(y,J[g+288>>2])|0}z=e;o=J[c+144>>2];if(!o){i=0;break za}e=J[c+112>>2];if(!e){i=0;break za}i=0;a=xEb(-1,33554431,e,0);d=jc;if((h|0)==(d|0)&a>>>0<=n>>>0|d>>>0>>0)break za;f=J[c+288>>2];d=vEb(f,0,e,0);if(jc){a=K[11127]|K[11128]<<8|(K[11129]<<16|K[11130]<<24);d=K[11123]|K[11124]<<8|(K[11125]<<16|K[11126]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]= +d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[11119]|K[11120]<<8|(K[11121]<<16|K[11122]<<24);d=K[11115]|K[11116]<<8|(K[11117]<<16|K[11118]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break za}if(d){i=1;if(!J[c+112>>2])break za;q=o+P(f,P(e,n))|0;w=0;o=0;while(1){Ca:{if(w>>>0>>0&(o|0)<=(r|0)|(o|0)<(r|0)){t=J[c+288>>2];break Ca}p=+(w>>>0)+ +(o|0)*4294967296-F;f=J[g+112>>2];if(p>= ++(f>>>0))break za;if(!s|(w>>>0>>0&(o|0)<=(r|0)|(o|0)<(r|0))|p>=+(f>>>0)){d=0;a=0;t=J[c+288>>2];if(!t){t=0;break Ca}while(1){e=J[c+272>>2];l=0;Da:{if(!a&d>>>0<=63){l=J[e+(d<<4)>>2];if(l>>>0>63)break Da}f=e;e=l<<4;if(!J[(f+e|0)+4>>2]|!J[(e+J[g+272>>2]|0)+4>>2])break Da;H[d+q|0]=0;t=J[c+288>>2]}d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}break Ca}t=0;l=0;a=J[g+272>>2];if(J[a+68>>2])l=K[J[a+72>>2]+z|0];if(J[c+288>>2]){p=+((l&255)>>>0)*.00392156862745098;B=p==0?1:p;p=B*255;l=p>0;e=l?-1:0;f= +p>=255;t=p<0;a=t?0:-1;if(p<4294967296&p>=0)d=~~p>>>0;else d=0;l=A?t?a:f?a:d:l?f?e:d:e;B=B*.00392156862745098;d=0;a=0;while(1){e=J[c+272>>2];f=0;Ea:{if(!a&d>>>0<=63){f=J[e+(d<<4)>>2];if(f>>>0>63)break Ea}t=f<<4;e=J[(t+e|0)+4>>2];if(!e)break Ea;t=t+J[g+272>>2]|0;C=J[t+4>>2];if(!(!(e&2)|(f|0)!=4)){H[d+q|0]=l;break Ea}if(!C|e&1)break Ea;p=B*+K[J[t+8>>2]+z|0]*255;f=d+q|0;Fa:{Ga:{if(A){e=0;if(p<0)break Fa;e=255;if(p>=255)break Fa;if(!(p<4294967296&p>=0))break Ga;e=~~p>>>0;break Fa}e=0;if(!(p>0))break Fa; +e=255;if(p>=255)break Fa;if(!(p<4294967296&p>=0))break Ga;e=~~p>>>0;break Fa}e=0}H[f|0]=e}d=d+1|0;a=d?a:a+1|0;t=J[c+288>>2];if(!a&t>>>0>d>>>0)continue;break}f=J[g+112>>2]}a=J[g+288>>2];d=a+z|0;z=d>>>0>>0?d:s}q=q+t|0;a=o;w=w+1|0;o=w?a:a+1|0;if(!o&M[c+112>>2]>w>>>0)continue;break}break za}a=K[2371]|K[2372]<<8|(K[2373]<<16|K[2374]<<24);d=K[2367]|K[2368]<<8|(K[2369]<<16|K[2370]<<24);H[c+300|0]=d;H[c+301|0]=d>>>8;H[c+302|0]=d>>>16;H[c+303|0]=d>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>> +16;H[c+307|0]=a>>>24;a=K[2363]|K[2364]<<8|(K[2365]<<16|K[2366]<<24);d=K[2359]|K[2360]<<8|(K[2361]<<16|K[2362]<<24);H[c+292|0]=d;H[c+293|0]=d>>>8;H[c+294|0]=d>>>16;H[c+295|0]=d>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}a=h;n=n+1|0;h=n?a:a+1|0;if(!h&M[c+108>>2]>n>>>0)continue;break}}uc(J[g+144>>2]);uc(J[g+272>>2]);uc(g)}rB(j);break t;case 160:H[k+64|0]=0;a=k- -64|0;h=ge(a,1,2,m);e=K[k+64|0]|K[k+65|0]<<8;H[k+64|0]=0;f=ge(a,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;a=nr(or(m),a);f= +(f|0)!=2?-1:d<<8|d>>>8;d=f&65535;if(d>>>0>(a?0:J[k+88>>2])>>>0){a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14239]|K[14240]<<8|(K[14241]<<16|K[14242]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14235]|K[14236]<<8|(K[14237]<<16|K[14238]<<24);b=K[14231]|K[14232]<<8|(K[14233]<<16|K[14234]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14227]|K[14228]<<8|(K[14229]<< +16|K[14230]<<24);b=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}if(!d)break s;a=Dc(d);if(!a)break s;n=ge(a,1,d,m);if((n|0)!= +(f&65535)|n>>31){uc(a);a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[19129]|K[19130]<<8|(K[19131]<<16|K[19132]<<24);b=K[19125]|K[19126]<<8|(K[19127]<<16|K[19128]<<24);H[c+306|0]=b;H[c+307|0]=b>>>8;H[c+308|0]=b>>>16;H[c+309|0]=b>>>24;H[c+310|0]=a;H[c+311|0]=a>>>8;H[c+312|0]=a>>>16;H[c+313|0]=a>>>24;a=K[19123]|K[19124]<<8|(K[19125]<<16|K[19126]<<24);b=K[19119]|K[19120]<<8|(K[19121]<<16|K[19122]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305| +0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[19115]|K[19116]<<8|(K[19117]<<16|K[19118]<<24);b=K[19111]|K[19112]<<8|(K[19113]<<16|K[19114]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}e=((h|0)!=2?-1:e<<8|e>>>8)&65535;Ha:{if((e|0)!=498){if((e|0)!=224)break Ha;d=p3(d);e=J[d+8>>2];if(e)xc(J[d+4>>2],a,e);e=e_(c,18042,d);R3(d);if(e)break Ha;uc(a);a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f= +0;a=K[17136]|K[17137]<<8|(K[17138]<<16|K[17139]<<24);b=K[17132]|K[17133]<<8|(K[17134]<<16|K[17135]<<24);H[c+307|0]=b;H[c+308|0]=b>>>8;H[c+309|0]=b>>>16;H[c+310|0]=b>>>24;H[c+311|0]=a;H[c+312|0]=a>>>8;H[c+313|0]=a>>>16;H[c+314|0]=a>>>24;a=K[17129]|K[17130]<<8|(K[17131]<<16|K[17132]<<24);b=K[17125]|K[17126]<<8|(K[17127]<<16|K[17128]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[17121]|K[17122]<<8|(K[17123]<< +16|K[17124]<<24);b=K[17117]|K[17118]<<8|(K[17119]<<16|K[17120]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}d=p3(d);e=J[d+8>>2];if(e)xc(J[d+4>>2],a,e);if(!e_(c,17448,d)){uc(a);a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[17136]|K[17137]<<8|(K[17138]<<16|K[17139]<<24);b=K[17132]|K[17133]<<8|(K[17134]<<16|K[17135]<<24);H[c+307|0]=b;H[c+308|0]=b>>>8;H[c+309|0]=b>>>16;H[c+310|0]=b>>>24; +H[c+311|0]=a;H[c+312|0]=a>>>8;H[c+313|0]=a>>>16;H[c+314|0]=a>>>24;a=K[17129]|K[17130]<<8|(K[17131]<<16|K[17132]<<24);b=K[17125]|K[17126]<<8|(K[17127]<<16|K[17128]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[17121]|K[17122]<<8|(K[17123]<<16|K[17124]<<24);b=K[17117]|K[17118]<<8|(K[17119]<<16|K[17120]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+ +298|0]=a>>>16;H[c+299|0]=a>>>24;break a}R3(d)}uc(a);break s;default:a=P(u,24)+39240|0;h=J[a>>2];e=J[a+4>>2];f=e;if((e&h)==-1)break y;d=0;a=0;if(!h&(e|0)<=0|(e|0)<0)break s;while(1){if((ih(m)|0)==-1)break t;d=d+1|0;e=d?a:a+1|0;a=e;if(d>>>0>>0&(f|0)>=(a|0)|(a|0)<(f|0))continue;break}break t;case 26:break z}H[k+64|0]=0;a=ge(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+216>>3]=(a|0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495;H[k+64|0]=0;a=ge(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+224>>3]=(a| +0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495;H[k+64|0]=0;a=ge(k- -64|0,1,2,m);d=K[k+64|0]|K[k+65|0]<<8;O[c+232>>3]=(a|0)==2?+(((d<<8|d>>>8)&65535)>>>0)*257:16842495;break s}hq(m);break s}a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[14496]|K[14497]<<8|(K[14498]<<16|K[14499]<<24);b=K[14492]|K[14493]<<8|(K[14494]<<16|K[14495]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314| +0]=a>>>16;H[c+315|0]=a>>>24;a=K[14488]|K[14489]<<8|(K[14490]<<16|K[14491]<<24);b=K[14484]|K[14485]<<8|(K[14486]<<16|K[14487]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14480]|K[14481]<<8|(K[14482]<<16|K[14483]<<24);b=K[14476]|K[14477]<<8|(K[14478]<<16|K[14479]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}a= +J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}a=J[j+144>>2];if(a){uc(a);J[j+120>>2]=0;J[j+144>>2]=0}a=K[14239]|K[14240]<<8|(K[14241]<<16|K[14242]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14235]|K[14236]<<8|(K[14237]<<16|K[14238]<<24);b=K[14231]|K[14232]<<8|(K[14233]<<16|K[14234]<<24);H[c+308|0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14227]|K[14228]<<8|(K[14229]<<16|K[14230]<< +24);b=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;f=0;break a}f=0;break a}a=P(a,d);if(!a)break t;e=a;d=0;a=0;while(1){if((ih(m)|0)== +-1)break t;d=d+1|0;a=d?a:a+1|0;if(!a&d>>>0>>0)continue;break}}d=0;a=0;if((u|0)!=3072)break s;while(1){b=3072;if((ih(m)|0)==-1)break r;e=!a&d>>>0<23;d=d+1|0;a=d?a:a+1|0;if(e)continue;break}break r}if((b&65280)==32768){b=u;break r}if(u-176>>>0<32){b=u;break r}a=b&65535;if((a|0)==255){b=u;break r}if((a|0)==65535){b=u;break r}if(!(u>>>0<=33023&u-208>>>0>46)){H[k+64|0]=0;b=k- -64|0;d=ge(b,1,2,m);a=K[k+64|0]|K[k+65|0]<<8;b=nr(or(m),b);Ia:{e=b?0:J[k+88>>2];a=(d|0)!=2?-1:a<<8|a>>>8;b=a&65535;if(e>>>0>= +b>>>0){if(b)break Ia;b=u;break r}a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<<24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<< +16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24;break a}b=a&65535;d=0;a=0;while(1){if((ih(m)|0)==-1){b=u;break r}d=d+1|0;a=d?a:a+1|0;if(!a&b>>>0>d>>>0)continue;break}b=u;break r}if(u-256>>>0>32511){b=u;break r}a=nr(or(m),k- -64|0);Ja:{e=a?0:J[k+88>>2];a=b>>>7&255;if(e>>>0>=a>>>0){if(a)break Ja;b=u;break r}a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[5515]|K[5516]<<8|(K[5517]<<16|K[5518]<< +24);H[c+308|0]=a;H[c+309|0]=a>>>8;H[c+310|0]=a>>>16;H[c+311|0]=a>>>24;a=K[5511]|K[5512]<<8|(K[5513]<<16|K[5514]<<24);b=K[5507]|K[5508]<<8|(K[5509]<<16|K[5510]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[5503]|K[5504]<<8|(K[5505]<<16|K[5506]<<24);b=K[5499]|K[5500]<<8|(K[5501]<<16|K[5502]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]=b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>> +16;H[c+299|0]=a>>>24;break a}b=a;d=0;a=0;while(1){if((ih(m)|0)==-1){b=u;break r}d=d+1|0;a=d?a:a+1|0;if(!a&b>>>0>d>>>0)continue;break}b=u}f=1;if(J[m+76>>2]<0)a=J[m>>2];else a=J[m>>2];if(a>>>4&1)break a;continue}break}a=J[c+144>>2];if(a){uc(a);J[c+120>>2]=0;J[c+144>>2]=0}f=0;a=K[14239]|K[14240]<<8|(K[14241]<<16|K[14242]<<24);H[c+316|0]=a;H[c+317|0]=a>>>8;H[c+318|0]=a>>>16;H[c+319|0]=a>>>24;a=K[14235]|K[14236]<<8|(K[14237]<<16|K[14238]<<24);b=K[14231]|K[14232]<<8|(K[14233]<<16|K[14234]<<24);H[c+308| +0]=b;H[c+309|0]=b>>>8;H[c+310|0]=b>>>16;H[c+311|0]=b>>>24;H[c+312|0]=a;H[c+313|0]=a>>>8;H[c+314|0]=a>>>16;H[c+315|0]=a>>>24;a=K[14227]|K[14228]<<8|(K[14229]<<16|K[14230]<<24);b=K[14223]|K[14224]<<8|(K[14225]<<16|K[14226]<<24);H[c+300|0]=b;H[c+301|0]=b>>>8;H[c+302|0]=b>>>16;H[c+303|0]=b>>>24;H[c+304|0]=a;H[c+305|0]=a>>>8;H[c+306|0]=a>>>16;H[c+307|0]=a>>>24;a=K[14219]|K[14220]<<8|(K[14221]<<16|K[14222]<<24);b=K[14215]|K[14216]<<8|(K[14217]<<16|K[14218]<<24);H[c+292|0]=b;H[c+293|0]=b>>>8;H[c+294|0]= +b>>>16;H[c+295|0]=b>>>24;H[c+296|0]=a;H[c+297|0]=a>>>8;H[c+298|0]=a>>>16;H[c+299|0]=a>>>24}fc=k+160|0;return f|0}function kjb(a){a=a|0;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,G=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0;k=fc-48|0;fc=k;d=J[a>>2];b=0;a:{if(J[J[d+96>>2]+64>>2]!=40)break a;b=0;if(!K[a+613|0])break a;b=0;if(K[d+9|0]&32)break a;b=(K[a+340|0]^-1)>>>2&1}I[a+616>>1]=0;H[a+615|0]=b;b=J[a+384>>2];c=L[a+152>>1];f= +b+c<<1;f=f>>>0<=30?30:f;if(f>>>0>1])I[a+188>>1]=f;J[a+628>>2]=0;J[a+620>>2]=0;if(c)b=(c>>>0<5?50:P(c,10))+(b>>>0<500?50:(b>>>0)/10|0)|0;else b=P(b,22)+300|0;J[a+624>>2]=b;c=J[d+16>>2];J[a+260>>2]=0;c=P(c,100);b=b>>>0>>0?b:c;J[a+632>>2]=b;J[a+624>>2]=b;b:{if(L[a+220>>1]!=L[a+222>>1]){c=1725;f=1726;d=1727;b=1724;break b}c=1729;f=1730;d=1731;b=1728}J[a+608>>2]=b;J[a+604>>2]=c;J[a+600>>2]=f;J[a+596>>2]=d;d=I[a+302>>1];c:{if((d&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;c=b;break c}b=I[a+304>> +1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;c=L[a+298>>1];break c}c=I[a+298>>1];b=P(b,I[a+300>>1])+P(d,c)>>14;J[a+568>>2]=b}d:{if((c&65535)==16384){J[a+576>>2]=1732;break d}if(L[a+300>>1]==16384){J[a+576>>2]=1733;break d}J[a+576>>2]=1734}e:{if(L[a+294>>1]==16384){J[a+580>>2]=1732;break e}if(L[a+296>>1]==16384){J[a+580>>2]=1733;break e}J[a+580>>2]=1735}J[a+592>>2]=1736;J[a+588>>2]=1737;f:{if((b|0)!=16384)break f;g:{if((d|0)==16384){f=1739;c=1738;break g}if(L[a+304>>1]!=16384)break f;f=1741;c=1740}J[a+ +592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;b=J[a+316>>2];if(!(b&248))J[a+572>>2]=J[(b<<24>>24<<2)+328888>>2];x=a+180|0;y=a+144|0;o=a+72|0;m=a+36|0;p=a+108|0;d=J[a+368>>2];c=J[a+364>>2];h:{i:{while(1){i=J[a+360>>2];h=K[i+c|0];H[a+372|0]=h;f=H[h+326864|0];J[a+376>>2]=f;if((h&254)==64){b=c+1|0;if((b|0)>=(d|0)){d=131;break i}f=2-P(K[b+i|0],f)|0;J[a+376>>2]=f}if((c+f|0)>(d|0)){d=131;break i}b=K[h+327120|0];d=b>>>4|0;c=J[a+16>>2]-d|0;J[a+28>>2]=c;if((c|0)<0){if(K[a+ +565|0]){d=129;break i}if(b>>>0>=16)Ac(J[a+24>>2],0,(d>>>0<=1?1:d)<<2);J[a+28>>2]=0;c=0}j:{k:{if((h|0)==145){b=J[J[a>>2]+736>>2];if(!b){g=J[a+32>>2];break j}g=J[b>>2]+c|0;break k}g=(b&15)+c|0}J[a+32>>2]=g}d=130;b=J[a+20>>2];if((b|0)<(g|0))break i;J[a+12>>2]=0;H[a+380|0]=1;j=J[a+24>>2];e=j+(c<<2)|0;d=135;l:{m:{n:{o:{p:{q:switch(h|0){case 0:case 1:case 2:case 3:case 4:case 5:c=h<<14&16384;b=c^16384;if(h>>>0<=3){I[a+296>>1]=b;I[a+294>>1]=c;I[a+300>>1]=b;I[a+298>>1]=c}r:{if(h&2){c=L[a+302>>1];break r}I[a+ +302>>1]=c;I[a+304>>1]=b}s:{if((c&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break s}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break s}g=I[a+298>>1];b=P(b,I[a+300>>1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=1732;J[a+576>>2]=(g&65535)==16384?1732:L[a+300>>1]==16384?1733:1734;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?1733:1735:f;J[a+592>>2]=1736;J[a+588>>2]=1737;J[a+580>>2]=f;t:{if((b|0)!=16384)break t;u:{if((c&65535)==16384){f=1739;c=1738;break u}if(L[a+304>>1]!=16384)break t; +f=1741;c=1740}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 6:case 7:v:{b=L[e+4>>1];if(b>>>0>1]){c=L[e>>1];if(c>>>0>1])break v}if(!K[a+565|0])break p;d=134;break i}c=J[a+88>>2]+(c<<3)|0;d=J[c+4>>2];f=J[a+124>>2]+(b<<3)|0;g=J[f+4>>2];b=d-g|0;e=J[c>>2];f=J[f>>2];c=(e|0)==(f|0)&(d|0)==(g|0);d=c?16384:e-f|0;c=c|!(h&1);f=c?b:d;b=c?d:0-b|0;if(f|b){J[k+16>>2]=f;J[k+12>>2]=b;_u(k+12|0);I[a+298>>1]=J[k+12>>2]/4;I[a+300>>1]=J[k+16>> +2]/4}c=L[a+298>>1]|L[a+300>>1]<<16;I[a+294>>1]=c;I[a+296>>1]=c>>>16;f=c<<16>>16;d=I[a+302>>1];b=f;w:{if((d&65535)==16384)break w;b=c>>16;g=I[a+304>>1];if((g|0)==16384)break w;b=P(b,g)+P(d,f)>>14}J[a+592>>2]=1736;J[a+588>>2]=1737;J[a+568>>2]=b;f=(c&-65536)==1073741824;c=(c&65535)==16384;J[a+580>>2]=c?1732:f?1733:1735;J[a+576>>2]=c?1732:f?1733:1734;x:{if((b|0)!=16384)break x;y:{if((d|0)==16384){f=1739;c=1738;break y}if(L[a+304>>1]!=16384)break x;f=1741;c=1740}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31; +if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 8:case 9:z:{b=L[e+4>>1];if(b>>>0>1]){c=L[e>>1];if(c>>>0>1])break z}if(!K[a+565|0])break p;d=134;break i}c=J[a+88>>2]+(c<<3)|0;d=J[c+4>>2];f=J[a+124>>2]+(b<<3)|0;g=J[f+4>>2];b=d-g|0;e=J[c>>2];f=J[f>>2];c=(e|0)==(f|0)&(d|0)==(g|0);d=c?16384:e-f|0;c=c|!(h&1);f=c?b:d;b=c?d:0-b|0;A:{if(!(f|b)){c=L[a+302>>1];break A}J[k+16>>2]=f;J[k+12>>2]=b;_u(k+12|0);c=J[k+12>>2]/4|0;I[a+302>>1]=c;I[a+304>>1]=J[k+16>>2]/4}B:{if((c&65535)== +16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break B}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break B}g=I[a+298>>1];b=P(b,I[a+300>>1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=1732;J[a+576>>2]=(g&65535)==16384?1732:L[a+300>>1]==16384?1733:1734;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?1733:1735:f;J[a+592>>2]=1736;J[a+588>>2]=1737;J[a+580>>2]=f;C:{if((b|0)!=16384)break C;D:{if((c&65535)==16384){f=1739;c=1738;break D}if(L[a+304>>1]!=16384)break C;f=1741;c=1740}J[a+592>>2]=c;J[a+588>> +2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 10:b=I[e+4>>1];c=I[e>>1];if(b|c){J[k+16>>2]=b;J[k+12>>2]=c;_u(k+12|0);I[a+298>>1]=J[k+12>>2]/4;I[a+300>>1]=J[k+16>>2]/4}c=L[a+298>>1]|L[a+300>>1]<<16;I[a+294>>1]=c;I[a+296>>1]=c>>>16;f=c<<16>>16;d=I[a+302>>1];b=f;E:{if((d&65535)==16384)break E;b=c>>16;g=I[a+304>>1];if((g|0)==16384)break E;b=P(b,g)+P(d,f)>>14}J[a+592>>2]=1736;J[a+588>>2]=1737;J[a+568>>2]=b;f=(c&-65536)==1073741824;c=(c&65535)==16384;J[a+580>>2]=c?1732: +f?1733:1735;J[a+576>>2]=c?1732:f?1733:1734;F:{if((b|0)!=16384)break F;G:{if((d|0)==16384){f=1739;c=1738;break G}if(L[a+304>>1]!=16384)break F;f=1741;c=1740}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 11:b=I[e+4>>1];c=I[e>>1];H:{if(!(b|c)){c=L[a+302>>1];break H}J[k+16>>2]=b;J[k+12>>2]=c;_u(k+12|0);c=J[k+12>>2]/4|0;I[a+302>>1]=c;I[a+304>>1]=J[k+16>>2]/4}I:{if((c&65535)==16384){b=I[a+298>>1];J[a+568>>2]=b;g=b;break I}b=I[a+304>>1];if((b|0)== +16384){b=I[a+300>>1];J[a+568>>2]=b;g=L[a+298>>1];break I}g=I[a+298>>1];b=P(b,I[a+300>>1])+P(g,c<<16>>16)>>14;J[a+568>>2]=b}f=1732;J[a+576>>2]=(g&65535)==16384?1732:L[a+300>>1]==16384?1733:1734;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?1733:1735:f;J[a+592>>2]=1736;J[a+588>>2]=1737;J[a+580>>2]=f;J:{if((b|0)!=16384)break J;K:{if((c&65535)==16384){f=1739;c=1738;break K}if(L[a+304>>1]!=16384)break J;f=1741;c=1740}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]= +0;break p;case 12:b=I[a+298>>1];J[e+4>>2]=I[a+300>>1];J[e>>2]=b;break p;case 13:b=I[a+302>>1];J[e+4>>2]=I[a+304>>1];J[e>>2]=b;break p;case 14:g=L[a+298>>1]|L[a+300>>1]<<16;I[a+302>>1]=g;e=g>>>16|0;I[a+304>>1]=e;c=g<<16>>16;f=1732;h=g&65535;L:{if((h|0)==16384){d=1732;b=c;break L}d=1733;b=16384;if((e|0)==16384)break L;d=1734;b=g>>16;b=P(c,c)+P(b,b)>>>14|0}J[a+576>>2]=d;J[a+568>>2]=b;f=L[a+294>>1]!=16384?L[a+296>>1]==16384?1733:1735:f;J[a+592>>2]=1736;J[a+588>>2]=1737;J[a+580>>2]=f;M:{if((b|0)!=16384)break M; +N:{if((h|0)==16384){f=1739;c=1738;break N}if((e|0)!=16384)break M;f=1741;c=1740}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 15:O:{c=L[e+12>>1];b=L[a+44>>1];P:{if(c>>>0>=b>>>0)break P;f=L[e+16>>1];if(f>>>0>=b>>>0)break P;g=L[e+4>>1];b=L[a+80>>1];if(g>>>0>=b>>>0)break P;h=L[e+8>>1];if(h>>>0>=b>>>0)break P;b=L[e>>1];if(b>>>0>1])break O}if(!K[a+565|0])break p;d=134;break i}e=J[a+52>>2];n=c<<3;c=e+n|0;d=J[c>>2];q=f<<3;i=q+e|0;j=J[i>> +2];e=J[a+88>>2];f=g<<3;l=e+f|0;g=J[l+4>>2];r=h<<3;e=r+e|0;h=J[e+4>>2];s=J[l>>2];e=J[e>>2]-s|0;u=J[c+4>>2];l=J[i+4>>2]-u|0;w=0-l|0;h=h-g|0;i=j-d|0;c=Od(e,w,64)+Od(h,i,64)|0;j=c>>31;v=Od(e,i,64)+Od(h,l,64)|0;l=v>>31;Q:{if(((l^v)-l|0)<(P((c^j)-j|0,19)|0)){d=Od(d-s|0,w,64)+Od(u-g|0,i,64)|0;g=Od(d,e,c);d=Od(d,h,c);c=J[a+124>>2];f=f+J[a+88>>2]|0;J[c+(b<<3)>>2]=g+J[f>>2];d=J[f+4>>2]+d|0;break Q}c=J[a+124>>2];d=J[a+52>>2];g=d+n|0;e=J[a+88>>2];h=e+r|0;f=e+f|0;d=d+q|0;J[c+(b<<3)>>2]=((J[g>>2]+(J[h>>2]+J[f>> +2]|0)|0)+J[d>>2]|0)/4;d=(J[d+4>>2]+(J[g+4>>2]+(J[h+4>>2]+J[f+4>>2]|0)|0)|0)/4|0}J[((b<<3)+c|0)+4>>2]=d;b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|24;break p;case 16:I[a+288>>1]=J[e>>2];break p;case 17:I[a+290>>1]=J[e>>2];break p;case 18:I[a+292>>1]=J[e>>2];break p;case 19:b=x;R:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break R}c=J[b+4>>2];J[m>>2]=J[b>>2];J[m+4>>2]=c;J[m+32>>2]=J[b+32>>2];c=J[b+28>>2];J[m+24>>2]=J[b+24>>2];J[m+28>>2]=c;c=J[b+20>>2];J[m+16>>2]=J[b+16>> +2];J[m+20>>2]=c;c=J[b+12>>2];J[m+8>>2]=J[b+8>>2];J[m+12>>2]=c;I[a+348>>1]=J[e>>2];break p;case 20:b=x;S:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break S}c=J[b+4>>2];J[o>>2]=J[b>>2];J[o+4>>2]=c;J[o+32>>2]=J[b+32>>2];c=J[b+28>>2];J[o+24>>2]=J[b+24>>2];J[o+28>>2]=c;c=J[b+20>>2];J[o+16>>2]=J[b+16>>2];J[o+20>>2]=c;c=J[b+12>>2];J[o+8>>2]=J[b+8>>2];J[o+12>>2]=c;I[a+350>>1]=J[e>>2];break p;case 21:b=x;T:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i; +case 1:b=y;break;case 0:break T}c=J[b+4>>2];J[p>>2]=J[b>>2];J[p+4>>2]=c;J[p+32>>2]=J[b+32>>2];c=J[b+28>>2];J[p+24>>2]=J[b+24>>2];J[p+28>>2]=c;c=J[b+20>>2];J[p+16>>2]=J[b+16>>2];J[p+20>>2]=c;c=J[b+12>>2];J[p+8>>2]=J[b+8>>2];J[p+12>>2]=c;I[a+352>>1]=J[e>>2];break p;case 22:b=x;U:switch(J[e>>2]){default:if(!K[a+565|0])break p;d=134;break i;case 1:b=y;break;case 0:break U}g=J[b+4>>2];c=J[b>>2];J[m>>2]=c;J[m+4>>2]=g;l=J[b+32>>2];J[m+32>>2]=l;h=J[b+28>>2];d=J[b+24>>2];J[m+24>>2]=d;J[m+28>>2]=h;i=J[b+20>> +2];f=J[b+16>>2];J[m+16>>2]=f;J[m+20>>2]=i;j=J[b+12>>2];b=J[b+8>>2];J[m+8>>2]=b;J[m+12>>2]=j;J[o+32>>2]=l;J[o+24>>2]=d;J[o+28>>2]=h;J[o+16>>2]=f;J[o+20>>2]=i;J[o+8>>2]=b;J[o+12>>2]=j;J[o>>2]=c;J[o+4>>2]=g;J[p+32>>2]=J[m+32>>2];b=J[m+28>>2];J[p+24>>2]=J[m+24>>2];J[p+28>>2]=b;b=J[m+20>>2];J[p+16>>2]=J[m+16>>2];J[p+20>>2]=b;b=J[m+12>>2];J[p+8>>2]=J[m+8>>2];J[p+12>>2]=b;b=J[m+4>>2];J[p>>2]=J[m>>2];J[p+4>>2]=b;b=L[e>>1];I[a+352>>1]=b;I[a+350>>1]=b;I[a+348>>1]=b;break p;case 23:b=J[e>>2];if((b|0)<0){d=132; +break i}J[a+308>>2]=b>>>0>=65535?65535:b;break p;case 24:J[a+572>>2]=1742;J[a+316>>2]=1;break p;case 25:J[a+572>>2]=1743;J[a+316>>2]=0;break p;case 26:J[a+312>>2]=J[e>>2];break p;case 27:b=J[a+364>>2];c=J[a+368>>2];g=1;while(1){b=b+f|0;J[a+364>>2]=b;if((b|0)>=(c|0)){d=131;break i}d=K[b+i|0];H[a+372|0]=d;f=H[d+326864|0];J[a+376>>2]=f;if((d&254)==64){e=b+1|0;if((e|0)>=(c|0)){d=131;break i}f=2-P(K[e+i|0],f)|0;J[a+376>>2]=f}if((c|0)<(b+f|0)){d=131;break i}V:switch(d-88|0){case 0:g=g+1|0;if(g)continue; +break p;case 1:g=g-1|0;break;default:break V}if(g)continue;break}break p;case 28:b=132;d=c;c=J[e>>2];W:{if(!(d|c))break W;c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break W;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+8>>2])break W;H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>>2])break p}J[a+12>>2]=b;break o;case 29:J[a+324>>2]=J[e>>2];break p;case 30:J[a+328>>2]=J[e>>2];break p;case 31:R=a,S=Wc(J[e>>2],J[a+264>>2]),J[R+332>>2]=S; +break p;case 32:J[e+4>>2]=J[e>>2];break p;case 34:J[a+32>>2]=0;break p;case 35:R=e,S=AEb(J[e>>2],J[e+4>>2],32),J[R>>2]=S;J[e+4>>2]=jc;break p;case 36:J[e>>2]=J[a+16>>2];break p;case 37:b=J[e>>2];X:{if(!((b|0)>0&(b|0)<=(c|0))){b=0;if(!K[a+565|0])break X;J[a+12>>2]=134;J[e>>2]=0;break p}b=J[j+(c-b<<2)>>2]}J[e>>2]=b;break p;case 38:b=J[e>>2];if(!((b|0)>0&(b|0)<=(c|0))){if(!K[a+565|0])break p;d=134;break i}c=j+(c-b<<2)|0;d=J[c>>2];cd(c,c+4|0,(b<<2)-4|0);J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2]=d;break p; +case 39:Y:{b=L[e>>1];if(b>>>0>1]){c=L[e+4>>1];if(c>>>0>1])break Y}if(!K[a+565|0])break p;d=134;break i}e=b;d=J[a+52>>2]+(c<<3)|0;b=J[a+88>>2]+(b<<3)|0;b=(kc[J[a+576>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0)/2|0;kc[J[a+588>>2]](a,o,e,b);kc[J[a+588>>2]](a,m,c,0-b|0);break p;case 40:hs(a);break p;case 41:b=L[e>>1];if(b>>>0>=L[a+44>>1]){if(!K[a+565|0])break p;d=134;break i}b=b+J[a+60>>2]|0;c=b;d=K[b|0];b=L[a+302>>1]?-9:-1;H[c|0]=d&(L[a+304>>1]?b&239:b);break p;case 42:b=134;f= +J[e+4>>2];c=J[a+424>>2]+1|0;Z:{if(f>>>0>=c>>>0)break Z;d=J[a+408>>2];g=J[a+400>>2];_:{if((g|0)==(c|0)){c=d+P(f,24)|0;if((f|0)==J[(d?c:0)+12>>2])break _}c=d;d=c?c+P(g,24)|0:0;$:{if(c>>>0>=d>>>0)break $;while(1){if((f|0)==J[c+12>>2])break $;c=c+24|0;if(d>>>0>c>>>0)continue;break}}if((c|0)==(d|0))break Z}if(!K[c+16|0])break Z;b=130;f=J[a+432>>2];if((f|0)>=J[a+436>>2])break Z;if(J[e>>2]<=0)break p;b=J[a+440>>2]+(f<<4)|0;J[b>>2]=J[a+356>>2];J[b+4>>2]=J[a+364>>2]+1;d=J[e>>2];J[b+12>>2]=c;J[b+8>>2]=d;J[a+ +432>>2]=f+1;b=J[c>>2];aa:{if(b-4>>>0<=4294967292){J[a+12>>2]=132;break aa}f=(b-1<<3)+a|0;g=J[f+448>>2];if(!g){J[a+12>>2]=138;break aa}f=J[f+452>>2];c=J[c+4>>2];if((f|0)<(c|0)){J[a+12>>2]=131;break aa}J[a+368>>2]=f;J[a+360>>2]=g;J[a+364>>2]=c;J[a+356>>2]=b;d=J[e>>2]}H[a+380|0]=0;c=J[a+620>>2]+d|0;J[a+620>>2]=c;b=139;if(c>>>0<=M[a+624>>2])break p}J[a+12>>2]=b;break o;case 43:d=134;b=J[a+424>>2]+1|0;f=J[e>>2];if(b>>>0<=f>>>0)break i;c=J[a+408>>2];if(!c)break i;g=J[a+400>>2];ba:{if((g|0)==(b|0)){b=c+ +P(f,24)|0;if((f|0)==J[b+12>>2])break ba}e=c+P(g,24)|0;b=c;ca:{if((g|0)<=0)break ca;while(1){if((f|0)==J[b+12>>2])break ca;b=b+24|0;if(e>>>0>b>>>0)continue;break}}if((b|0)==(e|0))break i}if(!K[b+16|0])break i;d=130;f=J[a+432>>2];if((f|0)>=J[a+436>>2])break i;c=J[a+440>>2]+(f<<4)|0;J[c>>2]=J[a+356>>2];d=J[a+364>>2];J[c+12>>2]=b;J[c+8>>2]=1;J[c+4>>2]=d+1;J[a+432>>2]=f+1;c=J[b>>2];da:{if(c-4>>>0<=4294967292){J[a+12>>2]=132;break da}d=(c-1<<3)+a|0;f=J[d+448>>2];if(!f){J[a+12>>2]=138;break da}d=J[d+452>> +2];b=J[b+4>>2];if((d|0)<(b|0)){J[a+12>>2]=131;break da}J[a+368>>2]=d;J[a+360>>2]=f;J[a+364>>2]=b;J[a+356>>2]=c}H[a+380|0]=0;break p;case 44:h=J[a+356>>2];if((h|0)==3){d=156;break i}b=J[a+408>>2];ea:{fa:{if(!b){g=J[a+400>>2];d=J[e>>2];c=0;break fa}g=J[a+400>>2];c=P(g,24)+b|0;d=J[e>>2];ga:{if((g|0)<=0)break ga;while(1){if(J[b+12>>2]==(d|0))break ga;b=b+24|0;if(c>>>0>b>>>0)continue;break}}if((b|0)!=(c|0))break ea}if(M[a+404>>2]<=g>>>0){d=140;break i}J[a+400>>2]=g+1;b=c}if(d>>>0>65535){d=140;break i}J[b+ +12>>2]=d;J[b>>2]=h;c=J[a+364>>2];J[b+20>>2]=0;I[b+16>>1]=1;J[b+4>>2]=c+1;if(M[a+424>>2]>>0)J[a+424>>2]=d;e=J[a+368>>2];while(1){c=c+f|0;J[a+364>>2]=c;if((c|0)>=(e|0)){d=131;break i}g=K[c+i|0];H[a+372|0]=g;f=H[g+326864|0];J[a+376>>2]=f;if((g&254)==64){d=c+1|0;if((d|0)>=(e|0)){d=131;break i}f=2-P(K[d+i|0],f)|0;J[a+376>>2]=f}if((e|0)<(c+f|0)){d=131;break i}d=137;ha:switch(g-44|0){case 1:J[b+8>>2]=c;break p;case 0:break i;default:break ha}if((g|0)!=137)continue;break}break i;case 33:case 89:case 126:case 127:J[a+ +16>>2]=g;break n;default:if(h>>>0>=224){d=J[e+4>>2];c=0;ia:{ja:{f=J[e>>2];g=f&65535;ka:{if(g>>>0>=L[a+80>>1])break ka;e=d+1|0;if(e>>>0>=J[a+384>>2]+1>>>0)break ka;b=L[a+288>>1];if(b>>>0>1])break ja}if(!K[a+565|0])break ia;J[a+12>>2]=134;break ia}if(e){c=kc[J[a+600>>2]](a,d)|0;b=L[a+288>>1]}d=J[a+332>>2];h=c-d|0;e=h>>31;c=J[a+328>>2]>((e^h)-e|0)?(c|0)<0?0-d|0:d:c;if(!L[a+350>>1]){e=I[a+302>>1];d=e>>31;i=(d^e)-d|0;d=c>>31;j=(d^c)-d|0;l=j>>>16|0;n=P(i,l);h=n<<16|8192;q=g<<3;d=q+J[a+84>>2]|0; +r=J[a+48>>2]+(b<<3)|0;b=i;i=j&65535;b=h+P(b,i)|0;b=(n>>>16|0)+(b>>>0>>0)<<18|b>>>14;J[d>>2]=J[r>>2]+((c^e)<0?0-b|0:b);b=I[a+304>>1];e=b>>31;h=(b^e)-e|0;j=P(h,l);e=j<<16|8192;n=e;e=e+P(h,i)|0;e=(j>>>16|0)+(n>>>0>e>>>0)<<18|e>>>14;J[d+4>>2]=J[r+4>>2]+((b^c)<0?0-e|0:e);e=J[d+4>>2];b=q+J[a+88>>2]|0;J[b>>2]=J[d>>2];J[b+4>>2]=e;b=L[a+288>>1]}g=g<<3;d=g+J[a+84>>2]|0;b=J[a+48>>2]+(b<<3)|0;d=kc[J[a+580>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0;b=g+J[a+88>>2]|0;g=J[a+52>>2]+(L[a+288>>1]<<3)|0;e= +kc[J[a+576>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[g+4>>2]|0)|0;b=K[a+320|0]?(c^d)<0?0-c|0:c:c;c=K[a+372|0];la:{if(c&4){if(L[a+348>>1]==L[a+350>>1]){h=b-d|0;g=h>>31;b=J[a+324>>2]<((g^h)-g|0)?d:b}b=kc[J[a+572>>2]](a,b,c&3)|0;c=K[a+372|0];break la}g=J[(((c&3)<<2)+a|0)+268>>2];if((b|0)>=0){b=b+g|0;b=(b|0)>0?b:0;break la}b=b-g|0;b=b>>31&b}g=a+72|0;ma:{if(!(c&8))break ma;c=J[a+312>>2];if((d|0)>=0){b=(b|0)>(c|0)?b:c;break ma}c=0-c|0;b=(b|0)<(c|0)?b:c}kc[J[a+588>>2]](a,g,f&65535,b-e|0)}I[a+290>>1]=L[a+288>> +1];if(K[a+372|0]&16)I[a+288>>1]=f;I[a+292>>1]=f;break p}if(h>>>0>=192){na:{oa:{f=J[e>>2];g=f&65535;if(g>>>0>1]){b=L[a+288>>1];if(b>>>0>1])break oa}if(!K[a+565|0])break na;J[a+12>>2]=134;break na}pa:{if(!(L[a+350>>1]?L[a+348>>1]:0)){c=J[a+84>>2]+(g<<3)|0;b=J[a+48>>2]+(b<<3)|0;b=kc[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0;break pa}b=J[a+56>>2]+(b<<3)|0;c=J[a+92>>2]+(g<<3)|0;d=J[a+224>>2];if((d|0)==J[a+228>>2]){b=Wc(kc[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>> +2]|0)|0,J[a+224>>2]);break pa}b=(S=a,T=Wc(J[c>>2]-J[b>>2]|0,d),U=Wc(J[c+4>>2]-J[b+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],kc[R](S|0,T|0,U|0)|0)}d=J[a+328>>2];qa:{if((d|0)<=0)break qa;c=J[a+332>>2];if((c+d|0)<=(b|0)|(c-d|0)>=(b|0))break qa;b=(b|0)<0?0-c|0:c}d=K[a+372|0];ra:{if(d&4){c=kc[J[a+572>>2]](a,b,d&3)|0;d=K[a+372|0];break ra}c=J[(((d&3)<<2)+a|0)+268>>2];if((b|0)>=0){c=b+c|0;c=(c|0)>0?c:0;break ra}c=b-c|0;c=c>>31&c}e=a+72|0;sa:{if(!(d&8))break sa;d=J[a+312>>2];if((b|0)>=0){c=(c|0)>(d|0)?c:d;break sa}b= +0-d|0;c=(b|0)>(c|0)?c:b}d=c;b=J[a+88>>2]+(g<<3)|0;c=J[a+52>>2]+(L[a+288>>1]<<3)|0;U=a,T=e,S=f&65535,V=d-(kc[J[a+576>>2]](a,J[b>>2]-J[c>>2]|0,J[b+4>>2]-J[c+4>>2]|0)|0)|0,R=J[a+588>>2],kc[R](U|0,T|0,S|0,V|0)}I[a+292>>1]=f;I[a+290>>1]=L[a+288>>1];if(K[a+372|0]&16)I[a+288>>1]=f;break p}if(h>>>0>=184){b=K[a+372|0]+65353|0;c=b&65535;if(c>>>0>=(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){J[a+12>>2]=130;break p}J[a+364>>2]=J[a+364>>2]+1;ta:{if(!c)break ta;f=b&1;d=J[a+360>>2];b=0;if((c|0)!=1){g=c-f|0;c=0;while(1){h=J[a+ +364>>2];J[a+364>>2]=h+2;i=b<<2;h=d+h|0;h=K[h|0]|K[h+1|0]<<8;J[i+e>>2]=(h<<8|h>>>8)<<16>>16;h=J[a+364>>2];J[a+364>>2]=h+2;h=d+h|0;h=K[h|0]|K[h+1|0]<<8;J[e+(i|4)>>2]=(h<<8|h>>>8)<<16>>16;b=b+2|0;c=c+2|0;if((g|0)!=(c|0))continue;break}}if(!f)break ta;c=J[a+364>>2];J[a+364>>2]=c+2;e=e+(b<<2)|0;b=c+d|0;b=K[b|0]|K[b+1|0]<<8;J[e>>2]=(b<<8|b>>>8)<<16>>16}H[a+380|0]=0;break p}if(h>>>0>=176){d=K[a+372|0]+65361|0;b=d&65535;if(b>>>0<(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){if(b){f=e-4|0;g=J[a+360>>2];b=1;c=1;while(1){J[f+ +(b<<2)>>2]=K[(g+J[a+364>>2]|0)+b|0];c=c+1|0;b=c&65535;if(b>>>0<=(d&65535)>>>0)continue;break}}break p}J[a+12>>2]=130;break p}hs(a);break p;case 146:if(J[J[a>>2]+736>>2]){J[e>>2]=17;break p}hs(a);break p;case 145:c=J[J[a>>2]+736>>2];if(c){f=0;h=0;b=J[c>>2];if(b>>>0>=(J[a+20>>2]-J[a+16>>2]|0)+1>>>0){J[a+12>>2]=130;break p}d=J[c+8>>2];ua:{if(d){if(!b)break ua;c=0;if(b>>>0>=4){i=b&-4;while(1){g=c<<2;J[g+e>>2]=J[d+g>>2]>>2;j=g|4;J[j+e>>2]=J[d+j>>2]>>2;j=g|8;J[j+e>>2]=J[d+j>>2]>>2;g=g|12;J[g+e>>2]=J[d+ +g>>2]>>2;c=c+4|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}b=b&3;if(!b)break ua;while(1){g=c<<2;J[g+e>>2]=J[d+g>>2]>>2;c=c+1|0;f=f+1|0;if((b|0)!=(f|0))continue;break}break ua}if(!b)break ua;Ac(e,0,b<<2)}break p}hs(a);break p;case 143:case 144:hs(a);break p;case 142:c=J[e+4>>2];if(c-4>>>0<=4294967292){if(!K[a+565|0])break p;d=134;break i}b=J[e>>2];d=1<>2]+96>>2]+64>>2]!=40)break p;H[a+ +615|0]=(b|0)!=4;break p;case 141:b=J[e>>2];if((b|0)<0)break p;J[a+344>>2]=b&65535;break p;case 140:b=J[e+4>>2];if((b|0)>=J[e>>2])break p;J[e>>2]=b;break p;case 139:b=J[e+4>>2];if((b|0)<=J[e>>2])break p;J[e>>2]=b;break p;case 138:b=J[e+4>>2];c=J[e+8>>2];J[e+8>>2]=J[e>>2];J[e>>2]=b;J[e+4>>2]=c;break p;case 137:g=J[a+356>>2];if((g|0)==3){d=156;break i}d=J[a+412>>2];b=J[a+420>>2];va:{wa:{if(!b){c=0;break wa}c=P(d,24)+b|0;xa:{if((d|0)<=0)break xa;h=J[e>>2];while(1){if((h|0)==J[b+12>>2])break xa;b=b+24| +0;if(c>>>0>b>>>0)continue;break}}if((b|0)!=(c|0))break va}if(d>>>0>=M[a+416>>2]){d=141;break i}J[a+412>>2]=d+1;b=c}c=J[e>>2];if(c>>>0>255){d=141;break i}J[b+12>>2]=c;c=J[a+364>>2];H[b+16|0]=1;J[b>>2]=g;J[b+4>>2]=c+1;d=J[e>>2];if(d>>>0>M[a+428>>2])J[a+428>>2]=d&255;e=J[a+368>>2];while(1){c=c+f|0;J[a+364>>2]=c;if((c|0)>=(e|0)){d=131;break i}g=K[c+i|0];H[a+372|0]=g;f=H[g+326864|0];J[a+376>>2]=f;if((g&254)==64){d=c+1|0;if((d|0)>=(e|0)){d=131;break i}f=2-P(K[d+i|0],f)|0;J[a+376>>2]=f}if((e|0)<(c+f|0)){d= +131;break i}d=137;ya:switch(g-44|0){default:if((g|0)!=137)continue;break i;case 0:break i;case 1:break ya}break}J[b+8>>2]=c;break p;case 136:b=0;c=J[e>>2];b=c&1?J[J[J[a>>2]+96>>2]+64>>2]:b;b=c&2?K[a+285|0]?b|256:b:b;b=c&4?K[a+286|0]?b|512:b:b;b=c&8?J[J[a>>2]+736>>2]?b|1024:b:b;b=c&32?K[a+612|0]?b|4096:b:b;za:{if(!K[a+613|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)break za;d=c<<7;b=d&8192|b;if(c&256)b=K[a+614|0]?b|32768:b;b=d&393216|b;if(!(c&4096))break za;b=K[a+618|0]?b|524288:b}J[e>>2]=b;break p;case 134:case 135:Aa:{b= +L[e>>1];if(b>>>0>1]){c=L[e+4>>1];if(c>>>0>1])break Aa}if(!K[a+565|0])break p;d=134;break i}d=b<<3;f=d+J[a+84>>2]|0;g=J[f+4>>2];e=c<<3;c=e+J[a+120>>2]|0;i=J[c+4>>2];b=g-i|0;f=J[f>>2];j=J[c>>2];c=(f|0)==(j|0)&(g|0)==(i|0);f=c?16384:f-j|0;c=c|!(h&1);g=c?b:f;b=c?f:0-b|0;if(g|b){J[k+16>>2]=g;J[k+12>>2]=b;_u(k+12|0);I[a+294>>1]=J[k+12>>2]/4;I[a+296>>1]=J[k+16>>2]/4}d=d+J[a+88>>2]|0;f=J[d+4>>2];g=e+J[a+124>>2]|0;e=J[g+4>>2];b=f-e|0;h=J[d>>2];g=J[g>>2];d=(h|0)==(g|0)&(e|0)==(f|0);f=d?16384: +h-g|0;c=c|d;d=c?b:f;b=c?f:0-b|0;if(d|b){J[k+16>>2]=d;J[k+12>>2]=b;_u(k+12|0);I[a+298>>1]=J[k+12>>2]/4;I[a+300>>1]=J[k+16>>2]/4}f=L[a+302>>1];Ba:{if((f|0)==16384){b=I[a+298>>1];J[a+568>>2]=b;d=b;break Ba}b=I[a+304>>1];if((b|0)==16384){b=I[a+300>>1];J[a+568>>2]=b;d=L[a+298>>1];break Ba}d=I[a+298>>1];b=P(b,I[a+300>>1])+P(d,f<<16>>16)>>14;J[a+568>>2]=b}c=1732;J[a+576>>2]=(d&65535)==16384?1732:L[a+300>>1]==16384?1733:1734;c=L[a+294>>1]!=16384?L[a+296>>1]==16384?1733:1735:c;J[a+592>>2]=1736;J[a+588>>2]= +1737;J[a+580>>2]=c;Ca:{if((b|0)!=16384)break Ca;Da:{if((f|0)==16384){f=1739;c=1738;break Da}if(L[a+304>>1]!=16384)break Ca;f=1741;c=1740}J[a+592>>2]=c;J[a+588>>2]=f}c=b;b=b>>31;if((c^b)-b>>>0<=1023)J[a+568>>2]=16384;J[a+260>>2]=0;break p;case 133:b=J[e>>2];c=b&255;if((c|0)==255){H[a+341|0]=1;break p}if(!c){H[a+341|0]=0;break p}if(!(!(b&256)|c>>>0>1]))H[a+341|0]=1;if(!(!(b&512)|!K[a+285|0]))H[a+341|0]=1;if(!(!(b&1024)|!K[a+286|0]))H[a+341|0]=1;if(!(!(b&2048)|c>>>0>=L[a+256>>1]))H[a+341|0]= +0;if(!(!(b&4096)|!K[a+285|0]))H[a+341|0]=0;if(!(b&8192)|!K[a+286|0])break p;H[a+341|0]=0;break p;case 131:case 132:hs(a);break p;case 130:if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break p;Ea:{d=L[e+4>>1];c=L[a+152>>1];if(d>>>0>=c>>>0)break Ea;b=L[e>>1];if(c>>>0<=b>>>0)break Ea;if(b>>>0>d>>>0)break p;c=b;while(1){b=J[a+168>>2]+b|0;H[b|0]=K[b|0]&254;c=c+1|0;b=c&65535;if(d>>>0>=b>>>0)continue;break}break p}if(!K[a+565|0])break p;d=134;break i;case 129:if(!(!K[a+616| +0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break p;Fa:{d=L[e+4>>1];c=L[a+152>>1];if(d>>>0>=c>>>0)break Fa;b=L[e>>1];if(c>>>0<=b>>>0)break Fa;if(b>>>0>d>>>0)break p;c=b;while(1){b=J[a+168>>2]+b|0;H[b|0]=K[b|0]|1;c=c+1|0;b=c&65535;if(d>>>0>=b>>>0)continue;break}break p}if(!K[a+565|0])break p;d=134;break i;case 128:Ga:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Ga;f=J[a+308>>2];if((f|0)<=J[a+16>>2]){if((f|0)<=0)break Ga;while(1){b=J[a+28>>2]- +1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];Ha:{if(b>>>0>=L[a+152>>1]){b=f;if(!K[a+565|0])break Ha;d=134;break i}b=b+J[a+168>>2]|0;H[b|0]=K[b|0]^1;b=J[a+308>>2]}f=b-1|0;J[a+308>>2]=f;if((b|0)>1)continue;break}c=J[a+28>>2];break Ga}if(!K[a+565|0])break Ga;J[a+12>>2]=129}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 125:J[a+572>>2]=1744;J[a+316>>2]=3;break p;case 124:J[a+572>>2]=1745;J[a+316>>2]=4;break p;case 123:hs(a);break p;case 122:J[a+572>>2]=1746;J[a+316>>2]=5;break p;case 121:if(J[e+4>>2])break p; +b=132;d=c;c=J[e>>2];Ia:{if(!(d|c))break Ia;c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break Ia;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+8>>2])break Ia;H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>>2])break p}J[a+12>>2]=b;break o;case 120:if(!J[e+4>>2])break p;b=132;d=c;c=J[e>>2];Ja:{if(!(d|c))break Ja;c=c+J[a+364>>2]|0;J[a+364>>2]=c;if((c|0)<0)break Ja;d=J[a+432>>2];if((d|0)>0)if((c|0)>J[J[(J[a+440>>2]+(d<<4)|0)-4>>2]+8>>2])break Ja; +H[a+380|0]=0;if(J[e>>2]>=0)break p;c=J[a+628>>2]+1|0;J[a+628>>2]=c;b=139;if(c>>>0<=M[a+632>>2])break p}J[a+12>>2]=b;break o;case 119:d=J[e>>2];c=d>>>4|0;b=J[(c&12)+328936>>2];Ka:{La:{Ma:{Na:{c=c&3;switch(c-1|0){case 2:break La;case 1:break Ma;case 0:break Na;default:break Ka}}c=b>>>10|0;break Ka}c=b>>>9|0;break Ka}c=P(b,3)>>>10|0}J[a+484>>2]=c;J[a+572>>2]=1747;J[a+316>>2]=7;c=d&15;if(c)c=(P(b,c-4|0)|0)/8|0;else c=b-1|0;J[a+488>>2]=c>>8;J[a+480>>2]=b>>>8;break p;case 118:d=J[e>>2];c=d>>>4|0;b=J[(c& +12)+328920>>2];Oa:{Pa:{Qa:{Ra:{c=c&3;switch(c-1|0){case 2:break Pa;case 1:break Qa;case 0:break Ra;default:break Oa}}c=b>>>10|0;break Oa}c=b>>>9|0;break Oa}c=P(b,3)>>>10|0}J[a+484>>2]=c;J[a+572>>2]=1748;J[a+316>>2]=6;J[a+480>>2]=b>>>8;c=d&15;J[a+488>>2]=(c?P(b,c-4|0)>>3:b-1|0)>>8;break p;case 115:case 116:case 117:d=kc[J[a+596>>2]](a)|0;c=1;f=J[e>>2];Sa:{if(!f)break Sa;while(1){b=J[a+28>>2];if((b|0)<=1){if(K[a+565|0])J[a+12>>2]=129;J[a+28>>2]=0;break Sa}g=b-2|0;J[a+28>>2]=g;e=b<<2;b=J[a+24>>2];e= +J[(e+b|0)-4>>2];Ta:{if(e>>>0>=M[a+384>>2]){if(!K[a+565|0])break Ta;d=134;break i}g=J[b+(g<<2)>>2];b=g>>>4&15;Ua:{Va:switch(K[a+372|0]-116|0){case 0:b=b|16;break Ua;case 1:break Va;default:break Ua}b=b|32}if((d|0)!=(L[a+336>>1]+b|0))break Ta;b=g&15;kc[J[a+608>>2]](a,e,(b>>>0>7?-7:-8)+b<<6-L[a+338>>1])}c=c+1|0;if(f>>>0>=c>>>0)continue;break}}J[a+32>>2]=J[a+28>>2];break p;case 113:case 114:p6(a,e);break p;case 112:b=J[e>>2];if(b>>>0>=M[a+384>>2]){if(!K[a+565|0])break p;d=134;break i}c=Wc(J[e+4>>2],J[a+ +264>>2]);J[J[a+388>>2]+(b<<2)>>2]=c;break p;case 108:case 109:case 110:case 111:b=J[(((h&3)<<2)+a|0)+268>>2];c=J[e>>2];if((c|0)>=0){b=b+c|0;J[e>>2]=(b|0)>0?b:0;break p}b=c-b|0;J[e>>2]=b>>31&b;break p;case 104:case 105:case 106:case 107:R=e,V=kc[J[a+572>>2]](a,J[e>>2],h&3)|0,J[R>>2]=V;break p;case 103:J[e>>2]=J[e>>2]+63&-64;break p;case 102:J[e>>2]=J[e>>2]&-64;break p;case 101:J[e>>2]=0-J[e>>2];break p;case 100:b=J[e>>2];if((b|0)>=0)break p;J[e>>2]=0-b;break p;case 99:R=e,V=Od(J[e>>2],J[e+4>>2],64), +J[R>>2]=V;break p;case 98:b=J[e+4>>2];if(!b){d=133;break i}R=e,V=DN(J[e>>2],64,b),J[R>>2]=V;break p;case 97:J[e>>2]=J[e>>2]-J[e+4>>2];break p;case 96:J[e>>2]=J[e+4>>2]+J[e>>2];break p;case 95:b=J[e>>2];if(b>>>0>6){d=132;break i}I[a+338>>1]=b;break p;case 94:I[a+336>>1]=J[e>>2];break p;case 93:p6(a,e);break p;case 92:J[e>>2]=!J[e>>2];break p;case 91:J[e>>2]=J[e>>2]?1:J[e+4>>2]!=0;break p;case 90:if(!J[e>>2]){J[e>>2]=0;break p}J[e>>2]=J[e+4>>2]!=0;break p;case 88:if(J[e>>2])break p;c=J[a+364>>2];g= +J[a+368>>2];d=1;Wa:while(1){c=c+f|0;J[a+364>>2]=c;Xa:{if((d|0)==1){if((c|0)>=(g|0)){d=131;break i}b=K[c+i|0];H[a+372|0]=b;f=H[b+326864|0];J[a+376>>2]=f;if((b&254)==64){e=c+1|0;if((e|0)>=(g|0)){d=131;break i}f=2-P(K[e+i|0],f)|0;J[a+376>>2]=f}if((g|0)<(c+f|0)){d=131;break i}Ya:switch(b-88|0){case 1:break p;case 0:break Xa;default:break Ya}d=1;if((b|0)!=27)continue;break p}if((c|0)>=(g|0)){d=131;break i}Za:{while(1){e=K[c+i|0];H[a+372|0]=e;f=H[e+326864|0];J[a+376>>2]=f;if((e&254)==64){b=c+1|0;if((b| +0)>=(g|0)){d=131;break i}f=2-P(K[b+i|0],f)|0;J[a+376>>2]=f}b=c+f|0;if((b|0)>(g|0)){d=131;break i}if((e|0)!=27)switch(e-88|0){case 0:break Xa;case 1:break Za;default:continue Wa}J[a+364>>2]=b;c=b;if((b|0)<(g|0))continue;break}d=131;break i}d=d-1|0;if(d)continue;break p}d=d+1|0;continue}case 87:R=e,V=!(kc[J[a+572>>2]](a,J[e>>2],3)&127),J[R>>2]=V;break p;case 86:R=e,V=(kc[J[a+572>>2]](a,J[e>>2],3)&127)==64,J[R>>2]=V;break p;case 85:J[e>>2]=J[e>>2]!=J[e+4>>2];break p;case 84:J[e>>2]=J[e>>2]==J[e+4>>2]; +break p;case 83:J[e>>2]=J[e>>2]>=J[e+4>>2];break p;case 82:J[e>>2]=J[e>>2]>J[e+4>>2];break p;case 81:J[e>>2]=J[e>>2]<=J[e+4>>2];break p;case 80:J[e>>2]=J[e>>2]>2];break p;case 78:H[a+320|0]=0;break p;case 77:H[a+320|0]=1;break p;case 76:if(J[J[J[a>>2]+96>>2]+64>>2]==35){R=e,V=kc[J[a+596>>2]](a)|0,J[R>>2]=V;break p}J[e>>2]=J[a+216>>2];break p;case 75:R=e,V=kc[J[a+596>>2]](a)|0,J[R>>2]=V;break p;case 73:case 74:_a:{$a:{c=L[e>>1];if(c>>>0>1]){b=L[e+4>>1];if(b>>>0>1])break $a}b= +0;if(!K[a+565|0])break _a;J[a+12>>2]=134;J[e>>2]=0;break p}if(h&1){c=J[a+52>>2]+(c<<3)|0;b=J[a+88>>2]+(b<<3)|0;R=e,V=kc[J[a+576>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[R>>2]=V;break p}if(!(L[a+350>>1]?L[a+348>>1]:0)){c=J[a+48>>2]+(c<<3)|0;b=J[a+84>>2]+(b<<3)|0;R=e,V=kc[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>>2]|0)|0,J[R>>2]=V;break p}b=J[a+92>>2]+(b<<3)|0;c=J[a+56>>2]+(c<<3)|0;d=J[a+224>>2];if((d|0)==J[a+228>>2]){R=e,V=Wc(kc[J[a+580>>2]](a,J[c>>2]-J[b>>2]|0,J[c+4>>2]-J[b+4>> +2]|0)|0,J[a+224>>2]),J[R>>2]=V;break p}b=(V=a,S=Wc(J[c>>2]-J[b>>2]|0,d),T=Wc(J[c+4>>2]-J[b+4>>2]|0,J[a+228>>2]),R=J[a+580>>2],kc[R](V|0,S|0,T|0)|0)}J[e>>2]=b;break p;case 72:b=L[e>>1];if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break p;d=134;break i}c=b<<3;d=c+J[a+124>>2]|0;d=kc[J[a+576>>2]](a,J[d>>2],J[d+4>>2])|0;kc[J[a+588>>2]](a,p,b,J[e+4>>2]-d|0);if(L[a+352>>1])break p;b=c+J[a+120>>2]|0;c=c+J[a+124>>2]|0;d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;break p;case 70:case 71:b=J[e>>2];ab:{if(b>>>0>=L[a+116>> +1]){b=0;if(!K[a+565|0])break ab;J[a+12>>2]=134;J[e>>2]=0;break p}if(h&1){b=J[a+120>>2]+(b<<3)|0;R=e,T=kc[J[a+580>>2]](a,J[b>>2],J[b+4>>2])|0,J[R>>2]=T;break p}b=J[a+124>>2]+(b<<3)|0;b=kc[J[a+576>>2]](a,J[b>>2],J[b+4>>2])|0}J[e>>2]=b;break p;case 69:b=J[e>>2];bb:{if(b>>>0>=M[a+384>>2]){b=0;if(!K[a+565|0])break bb;d=134;break i}b=kc[J[a+600>>2]](a,b)|0}J[e>>2]=b;break p;case 68:b=J[e>>2];if(b>>>0>=M[a+384>>2]){if(!K[a+565|0])break p;d=134;break i}kc[J[a+604>>2]](a,b,J[e+4>>2]);break p;case 67:b=J[e>> +2];cb:{if(b>>>0>=L[a+472>>1]){b=0;if(!K[a+565|0])break cb;d=134;break i}b=J[J[a+476>>2]+(b<<2)>>2]}J[e>>2]=b;break p;case 66:b=J[e>>2];if(b>>>0>=L[a+472>>1]){if(!K[a+565|0])break p;d=134;break i}J[J[a+476>>2]+(b<<2)>>2]=J[e+4>>2];break p;case 65:d=130;c=(b-J[a+16>>2]|0)+1|0;b=J[a+364>>2];f=K[(b+i|0)+1|0];if(c>>>0<=f>>>0)break i;J[a+364>>2]=b+2;if(f){b=0;if((f|0)!=1){d=f&254;c=0;while(1){g=J[a+364>>2];J[a+364>>2]=g+2;h=b<<2;g=g+i|0;g=K[g|0]|K[g+1|0]<<8;J[h+e>>2]=(g<<8|g>>>8)<<16>>16;g=J[a+364>>2]; +J[a+364>>2]=g+2;g=g+i|0;g=K[g|0]|K[g+1|0]<<8;J[e+(h|4)>>2]=(g<<8|g>>>8)<<16>>16;b=b+2|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(f&1){c=J[a+364>>2];J[a+364>>2]=c+2;d=e+(b<<2)|0;b=c+i|0;b=K[b|0]|K[b+1|0]<<8;J[d>>2]=(b<<8|b>>>8)<<16>>16}g=J[a+32>>2]}H[a+380|0]=0;J[a+32>>2]=f+g;break p;case 64:d=130;c=K[(i+J[a+364>>2]|0)+1|0];if(c>>>0>=(b-J[a+16>>2]|0)+1>>>0)break i;if(c){d=e-4|0;b=1;if(c>>>0>=4){g=c&252;f=0;while(1){h=b<<2;J[h+d>>2]=K[((i+J[a+364>>2]|0)+b|0)+1|0];J[e+h>>2]=K[((i+J[a+364>>2]|0)+b| +0)+2|0];h=b+2|0;J[d+(h<<2)>>2]=K[(h+(i+J[a+364>>2]|0)|0)+1|0];h=b+3|0;J[d+(h<<2)>>2]=K[(h+(i+J[a+364>>2]|0)|0)+1|0];b=b+4|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}f=0;g=c&3;if(g)while(1){J[d+(b<<2)>>2]=K[((i+J[a+364>>2]|0)+b|0)+1|0];b=b+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}g=J[a+32>>2]}J[a+32>>2]=c+g;break p;case 62:case 63:db:{eb:{c=L[e>>1];if(c>>>0>1]){b=J[e+4>>2];if(b>>>0>2])break eb}if(!K[a+565|0])break db;J[a+12>>2]=134;break db}b=kc[J[a+600>>2]](a,b)|0;if(!L[a+348>>1]){f= +I[a+302>>1];d=f>>31;e=(d^f)-d|0;d=b>>31;h=(d^b)-d|0;i=h>>>16|0;j=P(e,i);g=j<<16|8192;l=c<<3;d=l+J[a+48>>2]|0;n=g;q=e;e=h&65535;g=g+P(q,e)|0;g=(j>>>16|0)+(n>>>0>g>>>0)<<18|g>>>14;J[d>>2]=(b^f)<0?0-g|0:g;f=I[a+304>>1];g=f>>31;h=(f^g)-g|0;i=P(h,i);g=i<<16|8192;n=g;g=g+P(e,h)|0;g=(i>>>16|0)+(n>>>0>g>>>0)<<18|g>>>14;J[d+4>>2]=(b^f)<0?0-g|0:g;g=J[d+4>>2];f=l+J[a+52>>2]|0;J[f>>2]=J[d>>2];J[f+4>>2]=g}d=J[a+52>>2]+(c<<3)|0;d=kc[J[a+576>>2]](a,J[d>>2],J[d+4>>2])|0;if(H[a+372|0]&1){g=b-d|0;f=g>>31;b=kc[J[a+ +572>>2]](a,J[a+324>>2]<((f^g)-f|0)?d:b,3)|0}kc[J[a+588>>2]](a,m,c,b-d|0)}I[a+290>>1]=c;I[a+288>>1]=c;break p;case 61:J[a+572>>2]=1749;J[a+316>>2]=2;break p;case 60:f=J[a+308>>2];fb:{if(!(L[a+288>>1]>1]&(f|0)<=J[a+16>>2])){if(!K[a+565|0])break fb;J[a+12>>2]=134;break fb}if((f|0)<=0)break fb;while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];gb:{if(b>>>0>=L[a+80>>1]){b=f;if(!K[a+565|0])break gb;d=134;break i}d=b;b=J[a+88>>2]+(b<<3)|0;c=J[a+52>>2]+(L[a+288>>1]<<3)|0;T=a,S=o,V=d, +U=0-(kc[J[a+576>>2]](a,J[b>>2]-J[c>>2]|0,J[b+4>>2]-J[c+4>>2]|0)|0)|0,R=J[a+588>>2],kc[R](T|0,S|0,V|0,U|0);b=J[a+308>>2]}f=b-1|0;J[a+308>>2]=f;if((b|0)>1)continue;break}c=J[a+28>>2]}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 58:case 59:hb:{b=L[e>>1];if(b>>>0>1]){c=L[a+288>>1];if(c>>>0>1])break hb}if(!K[a+565|0])break p;d=134;break i}if(!L[a+350>>1]){c=J[a+48>>2]+(c<<3)|0;g=J[c+4>>2];d=b<<3;f=d+J[a+84>>2]|0;J[f>>2]=J[c>>2];J[f+4>>2]=g;kc[J[a+592>>2]](a,o,b,J[e+4>>2]);c=d+J[a+88>>2]|0;d= +d+J[a+84>>2]|0;f=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=f;c=L[a+288>>1]}d=J[a+88>>2]+(b<<3)|0;c=J[a+52>>2]+(c<<3)|0;c=kc[J[a+576>>2]](a,J[d>>2]-J[c>>2]|0,J[d+4>>2]-J[c+4>>2]|0)|0;kc[J[a+588>>2]](a,o,b,J[e+4>>2]-c|0);I[a+292>>1]=b;I[a+290>>1]=L[a+288>>1];if(!(H[a+372|0]&1))break p;I[a+288>>1]=b;break p;case 57:ib:{jb:{b=J[a+308>>2];kb:{if((b|0)>J[a+16>>2]){if(K[a+565|0])break kb;break ib}c=1;c=!L[a+348>>1]|!L[a+350>>1]?c:!L[a+352>>1];e=L[a+290>>1];if(e>>>0>1])break jb;if(!K[a+565|0])break ib}J[a+ +12>>2]=134;break ib}h=J[(c?48:56)+a>>2];n=e<<3;d=n;g=h+d|0;l=J[a+52>>2];i=l+d|0;d=0;f=0;j=L[a+292>>1];if(j>>>0>1]){lb:{if(c){b=J[a+84>>2]+(j<<3)|0;f=kc[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[(h+n|0)+4>>2]|0)|0;break lb}b=J[a+224>>2];if((b|0)==J[a+228>>2]){b=J[a+92>>2]+(j<<3)|0;f=kc[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[(h+(e<<3)|0)+4>>2]|0)|0;break lb}f=(U=a,V=Wc(J[J[a+92>>2]+(j<<3)>>2]-J[g>>2]|0,b),S=Wc(J[(J[a+92>>2]+(L[a+292>>1]<<3)|0)+4>>2]-J[(h+(e<<3)|0)+4>>2]|0,J[a+228>> +2]),R=J[a+580>>2],kc[R](U|0,V|0,S|0)|0)}b=J[a+88>>2]+(L[a+292>>1]<<3)|0;d=kc[J[a+576>>2]](a,J[b>>2]-J[i>>2]|0,J[b+4>>2]-J[(l+(e<<3)|0)+4>>2]|0)|0;b=J[a+308>>2]}if((b|0)<=0)break ib;e=e<<3;j=e+l|0;e=e+h|0;if(c)while(1){c=J[a+28>>2]-1|0;J[a+28>>2]=c;c=J[J[a+24>>2]+(c<<2)>>2];mb:{if(c>>>0>=L[a+116>>1]){if(!K[a+565|0])break mb;d=134;break i}h=c<<3;b=h+J[a+120>>2]|0;b=kc[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[e+4>>2]|0)|0;h=h+J[a+124>>2]|0;h=kc[J[a+576>>2]](a,J[h>>2]-J[i>>2]|0,J[h+4>>2]-J[j+4>>2]| +0)|0;n=a;c=c&65535;if(!(!b|!f))b=Od(b,d,f);kc[J[a+588>>2]](n,p,c,b-h|0);b=J[a+308>>2]}c=b;b=c-1|0;J[a+308>>2]=b;if((c|0)>1)continue;break ib}while(1){c=J[a+28>>2]-1|0;J[a+28>>2]=c;c=J[J[a+24>>2]+(c<<2)>>2];nb:{if(c>>>0>=L[a+116>>1]){if(!K[a+565|0])break nb;d=134;break i}b=J[a+224>>2];ob:{if((b|0)==J[a+228>>2]){b=J[a+128>>2]+(c<<3)|0;b=kc[J[a+580>>2]](a,J[b>>2]-J[g>>2]|0,J[b+4>>2]-J[e+4>>2]|0)|0;break ob}h=c<<3;b=(S=a,V=Wc(J[h+J[a+128>>2]>>2]-J[g>>2]|0,b),U=Wc(J[(h+J[a+128>>2]|0)+4>>2]-J[e+4>>2]|0, +J[a+228>>2]),R=J[a+580>>2],kc[R](S|0,V|0,U|0)|0)}h=J[a+124>>2]+(c<<3)|0;h=kc[J[a+576>>2]](a,J[h>>2]-J[i>>2]|0,J[h+4>>2]-J[j+4>>2]|0)|0;n=a;c=c&65535;if(!(!b|!f))b=Od(b,d,f);kc[J[a+588>>2]](n,p,c,b-h|0);b=J[a+308>>2]}c=b;b=c-1|0;J[a+308>>2]=b;if((c|0)>1)continue;break}}J[a+308>>2]=1;J[a+32>>2]=J[a+28>>2];break p;case 56:f=0;f=!L[a+348>>1]|!L[a+350>>1]?f:L[a+352>>1]!=0;b=J[a+308>>2];pb:{if((b|0)>=J[a+16>>2]){if(!K[a+565|0])break pb;J[a+12>>2]=134;break pb}if((b|0)<=0)break pb;c=I[a+304>>1];d=c>>31; +b=J[e>>2];g=b>>31;e=(c^d)-d|0;g=(b^g)-g|0;h=g>>>16|0;i=P(e,h);d=i<<16|8192;n=d;g=g&65535;d=d+P(g,e)|0;d=(i>>>16|0)+(n>>>0>d>>>0)<<18|d>>>14;e=(b^c)<0?0-d|0:d;c=I[a+302>>1];d=c>>31;i=h;h=(c^d)-d|0;i=P(i,h);d=i<<16|8192;n=d;d=d+P(g,h)|0;d=(i>>>16|0)+(n>>>0>d>>>0)<<18|d>>>14;c=(b^c)<0?0-d|0:d;while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];qb:{if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break qb;d=134;break i}rb:{sb:{tb:{ub:{if(J[J[J[a>>2]+96>>2]+64>>2]==40){if(K[a+615|0]){vb:{if(!f)break vb; +if(K[a+617|0]?K[a+616|0]:0)break qb;if(L[a+304>>1]?K[a+564|0]:0)break vb;if(!(K[b+J[a+132>>2]|0]&16))break qb}if(L[a+302>>1]){d=b+J[a+132>>2]|0;H[d|0]=K[d|0]|8}if(!L[a+304>>1])break qb;if(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40|(!K[a+616|0]|!K[a+617|0]))break sb;break rb}if(L[a+302>>1])break ub;break tb}if(!L[a+302>>1])break tb}d=J[a+124>>2]+(b<<3)|0;J[d>>2]=c+J[d>>2];d=b+J[a+132>>2]|0;H[d|0]=K[d|0]|8}if(!L[a+304>>1])break qb;if(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40))break sb;if(K[a+ +617|0])break rb}d=J[a+124>>2]+(b<<3)|0;J[d+4>>2]=e+J[d+4>>2]}b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|16}b=J[a+308>>2];J[a+308>>2]=b-1;if((b|0)>1)continue;break}c=J[a+28>>2]}J[a+32>>2]=c;J[a+308>>2]=1;break p;case 54:case 55:if(M[e>>2]>=2){if(!K[a+565|0])break p;J[a+12>>2]=134;break p}if(SM(a,k+4|0,k,k+12|0,k+10|0))break p;wb:{xb:switch(L[a+352>>1]){case 0:c=L[a+116>>1];break wb;case 1:break xb;default:break p}b=I[a+118>>1];if((b|0)<=0)break p;c=L[(J[a+136>>2]+((b&65535)<<1)|0)-2>>1]+1|0}d=c&65535;if(!d)break p; +e=J[k>>2];h=J[k+4>>2];f=J[a+124>>2];if((f|0)==J[k+28>>2]){b=0;c=L[k+10>>1];while(1){yb:{if((b|0)==(c|0))break yb;if(!(!L[a+302>>1]|(K[a+615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0))){g=f+(b<<3)|0;J[g>>2]=h+J[g>>2]}if(!L[a+304>>1])break yb;if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break yb;g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2]}b=b+1|0;if((d|0)!=(b|0))continue;break}break p}b=L[a+302>>1];if(!L[a+304>>1]){if(!b)break p;g=J[J[J[a>>2]+96>>2]+64>>2];b=0;d=c&65535;if((d|0)!=1){e= +d&65534;d=0;while(1){if(!(K[a+615|0]?(g|0)==40:0)){i=f+(b<<3)|0;J[i>>2]=h+J[i>>2]}if(!(K[a+615|0]?(g|0)==40:0)){i=f+((b|1)<<3)|0;J[i>>2]=h+J[i>>2]}b=b+2|0;d=d+2|0;if((e|0)!=(d|0))continue;break}}if(!(c&1)|(K[a+615|0]?(g|0)==40:0))break p;b=f+(b<<3)|0;J[b>>2]=h+J[b>>2];break p}d=J[J[J[a>>2]+96>>2]+64>>2];if(!b){if((d|0)!=40){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+ +4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if(!K[a+615|0]){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+ +4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if(!K[a+616|0]){d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532;g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if(K[a+617|0])break p;d=0;b=0;g=c&65535;if(g>>>0>=4){i=g&65532; +g=0;while(1){h=b<<3;j=h+f|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|8)|0;J[j+4>>2]=e+J[j+4>>2];j=f+(h|16)|0;J[j+4>>2]=e+J[j+4>>2];h=f+(h|24)|0;J[h+4>>2]=e+J[h+4>>2];b=b+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=c&3;if(!c)break p;while(1){g=f+(b<<3)|0;J[g+4>>2]=e+J[g+4>>2];b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break p}if((d|0)==40){c=c&65535;d=K[a+615|0];b=0;while(1){zb:{Ab:{if(!d){g=f+(b<<3)|0;J[g>>2]=h+J[g>>2];break Ab}if(!K[a+616|0])break Ab;if(K[a+617|0])break zb}g=f+(b<<3)|0;J[g+4>>2]=e+J[g+ +4>>2]}b=b+1|0;if((c|0)!=(b|0))continue;break}break p}d=0;b=c&65535;if((b|0)!=1){i=b&65534;g=0;while(1){j=d<<3;b=j+f|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>>2];b=f+(j|8)|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>>2];d=d+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break p;b=f+(d<<3)|0;J[b>>2]=h+J[b>>2];J[b+4>>2]=e+J[b+4>>2];break p;case 52:case 53:b=J[e>>2];c=b<<16>>16;if(c>>>0>=(L[a+352>>1]?I[a+118>>1]:1)>>>0){if(!K[a+565|0])break p;J[a+12>>2]=134;break p}if(SM(a,k+4|0,k,k+12|0,k+10|0))break p; +if(b<<16)b=(L[(J[a+136>>2]+(c<<1)|0)-2>>1]-L[a+140>>1]|0)+1|0;else b=0;b=b&65535;if(L[a+352>>1])c=(L[J[a+136>>2]+(c<<1)>>1]-L[a+140>>1]|0)+1|0;else c=L[a+116>>1];c=c&65535;if(b>>>0>=c>>>0)break p;d=L[k+10>>1];f=J[k>>2];g=J[k+4>>2];e=J[k+28>>2];while(1){h=J[a+124>>2];Bb:{if((h|0)==(e|0)&(b|0)==(d|0))break Bb;if(L[a+302>>1]){if(!(K[a+615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0)){h=h+(b<<3)|0;J[h>>2]=g+J[h>>2]}h=J[a+132>>2]+b|0;H[h|0]=K[h|0]|8}if(!L[a+304>>1])break Bb;Cb:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>> +2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Cb;h=J[a+124>>2]+(b<<3)|0;J[h+4>>2]=f+J[h+4>>2]}h=J[a+132>>2]+b|0;H[h|0]=K[h|0]|16}b=b+1|0;if((c|0)!=(b|0))continue;break}break p;case 50:case 51:Db:{if(J[a+16>>2]>2]){if(!K[a+565|0])break Db;J[a+12>>2]=134;break Db}if(SM(a,k+4|0,k,k+12|0,k+10|0))break p;if(J[a+308>>2]<=0)break Db;c=J[k>>2];d=J[k+4>>2];while(1){b=J[a+28>>2]-1|0;J[a+28>>2]=b;b=L[J[a+24>>2]+(b<<2)>>1];Eb:{if(b>>>0>=L[a+116>>1]){if(!K[a+565|0])break Eb;J[a+12>>2]=134;break p}if(L[a+ +302>>1]){if(!(K[a+615|0]?J[J[J[a>>2]+96>>2]+64>>2]==40:0)){f=J[a+124>>2]+(b<<3)|0;J[f>>2]=d+J[f>>2]}f=b+J[a+132>>2]|0;H[f|0]=K[f|0]|8}if(!L[a+304>>1])break Eb;Fb:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break Fb;f=J[a+124>>2]+(b<<3)|0;J[f+4>>2]=c+J[f+4>>2]}b=b+J[a+132>>2]|0;H[b|0]=K[b|0]|16}b=J[a+308>>2];J[a+308>>2]=b-1;if((b|0)>1)continue;break}}J[a+308>>2]=1;J[a+32>>2]=J[a+28>>2];break p;case 48:case 49:Gb:{if(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)break Gb; +if(K[a+617|0]?K[a+616|0]:0)break p;if(h&1){H[a+616|0]=1;break Gb}H[a+617|0]=1}if(!L[a+154>>1])break p;q=J[a+156>>2];Hb:{if(h&1){r=J[a+164>>2];w=8;j=J[a+160>>2];break Hb}q=q+4|0;r=J[a+164>>2]+4|0;w=16;j=J[a+160>>2]+4|0}J[k+20>>2]=r;J[k+16>>2]=j;J[k+12>>2]=q;A=L[a+152>>1];J[k+24>>2]=A;v=0;f=0;while(1){l=f;b=L[J[a+172>>2]+(v<<1)>>1]-L[a+176>>1]|0;c=L[a+152>>1];s=b>>>0>>0?b:c-1|0;Ib:{if(s>>>0>>0)break Ib;b=J[a+168>>2];u=0;g=f;Jb:{while(1){Kb:{f=g+1|0;if(K[b+g|0]&w){d=g;c=d;Lb:{Mb:{b=f;D=s>>>0>> +0;if(!D){while(1){e=c;n=d;d=b;Nb:{if(!(K[J[a+168>>2]+b|0]&w))break Nb;c=b;b=e+1|0;if(n>>>0>>0|c>>>0>=A>>>0|e>>>0>=A>>>0)break Nb;h=J[(c<<3)+r>>2];i=J[(e<<3)+r>>2];Ob:{if((h|0)>=(i|0)){c=h;h=i;i=d;break Ob}c=i;i=e;e=d}t=i<<3;i=J[t+j>>2];B=J[q+t>>2];E=i-B|0;t=e<<3;e=J[t+j>>2];C=J[q+t>>2];F=e-C|0;Pb:{if(!((c|0)==(h|0)|(e|0)==(i|0))){N=c-h|0;O=i-e|0;i=0;t=0;while(1){c=b<<3;Q=c+j|0;c=J[c+q>>2];Qb:{if((c|0)<=(C|0)){z=c+F|0;break Qb}z=c+E|0;if((c|0)>=(B|0))break Qb;if(!i)t=Cd(O,N);i=1;z=Wc(J[(b<<3)+r>> +2]-h|0,t)+e|0}J[Q>>2]=z;b=b+1|0;if(n>>>0>=b>>>0)continue;break}break Pb}while(1){h=b<<3;c=J[h+q>>2];J[h+j>>2]=(c|0)>(C|0)?(c|0)<(B|0)?e:c+E|0:c+F|0;b=b+1|0;if(n>>>0>=b>>>0)continue;break}}c=d}b=d+1|0;if(s>>>0>=b>>>0)continue;break}if((c|0)!=(g|0))break Mb}c=g<<3;d=J[c+j>>2];c=J[c+q>>2];if((d|0)==(c|0))break Jb;e=d-c|0;if(g>>>0<=l>>>0)break Kb;d=0;c=u&3;if(c)while(1){h=j+(l<<3)|0;J[h>>2]=e+J[h>>2];l=l+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}if(u-1>>>0>2)break Lb;break Kb}d=k+12|0;o6(d,c+1&65535, +s,c,g);if(!g)break Jb;o6(d,l,g-1|0,c,g);break Jb}while(1){c=j+(l<<3)|0;J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];J[c+16>>2]=e+J[c+16>>2];J[c+24>>2]=e+J[c+24>>2];l=l+4|0;if((l|0)!=(g|0))continue;break}break Kb}u=u+1|0;g=f;if(s>>>0>=f>>>0)continue;break Ib}break}if(D)break Jb;while(1){c=j+(f<<3)|0;J[c>>2]=e+J[c>>2];f=f+1|0;if(s>>>0>=f>>>0)continue;break}}f=b}v=v+1|0;if((v|0)>1])continue;break}break p;case 46:case 47:b=L[e>>1];if(b>>>0>=L[a+44>>1]){if(!K[a+565|0])break p;d=134;break i}if(h&1){c= +J[a+52>>2]+(b<<3)|0;c=kc[J[a+576>>2]](a,J[c>>2],J[c+4>>2])|0;c=(kc[J[a+572>>2]](a,c,3)|0)-c|0}else c=0;kc[J[a+588>>2]](a,m,b,c);I[a+290>>1]=b;I[a+288>>1]=b;break p;case 79:break i;case 45:break q}c=J[a+432>>2];if((c|0)<=0){d=136;break i}b=c-1|0;J[a+432>>2]=b;b=J[a+440>>2]+(b<<4)|0;d=J[b+8>>2];J[b+8>>2]=d-1;H[a+380|0]=0;if((d|0)>=2){J[a+432>>2]=c;J[a+364>>2]=J[J[b+12>>2]+4>>2];break p}c=J[b>>2];if(c-4>>>0<4294967293){d=132;break i}d=(c-1<<3)+a|0;f=J[d+448>>2];if(!f){d=138;break i}d=J[d+452>>2];b=J[b+ +4>>2];if((d|0)<(b|0)){d=131;break i}J[a+368>>2]=d;J[a+360>>2]=f;J[a+364>>2]=b;J[a+356>>2]=c}b=J[a+12>>2]}if(b){d=128;if((b|0)!=128)break h;b=J[a+420>>2];if(!b)break i;c=J[a+412>>2];if((c|0)<=0)break i;c=P(c,24)+b|0;while(1){Rb:{if(!(!K[b+16|0]|K[a+372|0]!=K[b+12|0])){c=J[a+432>>2];if((c|0)>=J[a+436>>2]){d=134;break i}c=J[a+440>>2]+(c<<4)|0;J[c>>2]=J[a+356>>2];d=J[a+364>>2];J[c+12>>2]=b;J[c+8>>2]=1;J[c+4>>2]=d+1;f=J[b>>2];if(f-4>>>0<4294967293){d=132;break i}d=(f-1<<3)+a|0;g=J[d+448>>2];if(!g){d=138; +break i}c=J[b+4>>2];d=J[d+452>>2];if((c|0)<=(d|0))break Rb;d=131;break i}b=b+24|0;if(c>>>0>b>>>0)continue;break i}break}J[a+368>>2]=d;J[a+360>>2]=g;J[a+364>>2]=c;J[a+356>>2]=f;break l}J[a+16>>2]=J[a+32>>2];if(!K[a+380|0])break m}J[a+364>>2]=J[a+364>>2]+J[a+376>>2]}G=G+1|0;if(G>>>0>1E6){b=139;break h}d=J[a+368>>2];c=J[a+364>>2]}if((c|0)>=(d|0)){b=0;d=131;if(J[a+432>>2]>0)break i;break h}if(!K[a+492|0])continue;break}b=0;break h}J[a+12>>2]=d;b=d}fc=k+48|0;return b|0}function vQa(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,u=0,v=0,w=0,x=0,y=0,z=0;s=fc-16|0;fc=s;a:{b:{c:{d:{if(!a)break d;if(!(K[a+204|0]&64)){J[a+216>>2]=0;m=fc-16|0;fc=m;d=J[a+464>>2];e:{f:{g:{g=J[a+460>>2];if(g){if(!d)break g;if(x=yB(m+12|0,g,d),y=0,z=J[m+12>>2]-105001>>>0>=4294957295,z?x:y)break f;d=J[a+208>>2]|8192;break e}if(d){x=a,y=rw(d),J[x+460>>2]=y;break f}J[a+460>>2]=1E5;J[a+464>>2]=1E5;break f}x=a,y=rw(g),J[x+464>>2]=y}d=J[a+208>>2]&-8193}J[a+208>>2]=d;if((d&262272)== +262144){I[a+394>>1]=0;d=d&-41943297;J[a+208>>2]=d;J[a+204>>2]=J[a+204>>2]&-8193}h:{if(d&256){if(K[a+401|0]&2)break h;J[a+200>>2]=J[a+200>>2]|2048;break h}if((d&16512)!=16512)break h;g=L[a+426>>1];if((g|0)!=L[a+428>>1]|(g|0)!=L[a+430>>1])break h;I[a+432>>1]=g;J[a+200>>2]=J[a+200>>2]|2048}f=L[a+394>>1];i:{j:{k:{l:{g=K[a+401|0];if((g|0)==3){if(!f)break l;h=J[a+504>>2];g=0;while(1){i=K[g+h|0];if((i|0)!=255){if(i)break j;e=1}g=g+1|0;if((f|0)!=(g|0))continue;break}d=d&-8388609;J[a+208>>2]=d;J[a+204>>2]= +J[a+204>>2]&-8193;if(e)break j;break k}if(!(f|g&4)){d=d&-385;J[a+208>>2]=d}if(g&2|(d&4352)!=4352)break i;e=L[a+516>>1];g=L[a+432>>1];m:{n:switch(K[a+402|0]-1|0){case 0:e=P(e,255);g=P(g,255);break m;case 1:e=P(e,85);g=P(g,85);break m;case 3:break n;default:break m}e=P(e,17);g=P(g,17)}I[a+428>>1]=g;I[a+430>>1]=g;I[a+426>>1]=g;if(d&33554432)break i;I[a+512>>1]=e;I[a+514>>1]=e;I[a+510>>1]=e;break i}J[a+204>>2]=J[a+204>>2]&-8193;d=d&-8388609}d=d&-8388993;J[a+208>>2]=d}if((d&4352)!=4352)break i;e=J[a+388>> +2]+P(K[a+424|0],3)|0;I[a+426>>1]=K[e|0];I[a+428>>1]=K[e+1|0];I[a+430>>1]=K[e+2|0];if(!f|(d&34078720)!=524288)break i;d=0;g=0;if(f>>>0>=4){h=f&65532;e=0;while(1){i=J[a+504>>2]+g|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|1)|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|2)|0;H[i|0]=K[i|0]^-1;i=J[a+504>>2]+(g|3)|0;H[i|0]=K[i|0]^-1;g=g+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}e=f&3;if(e)while(1){f=J[a+504>>2]+g|0;H[f|0]=K[f|0]^-1;g=g+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}d=J[a+208>>2]}e=L[a+428>>1]|L[a+430>>1]<< +16;g=L[a+424>>1]|L[a+426>>1]<<16;I[a+434>>1]=g;I[a+436>>1]=g>>>16;I[a+438>>1]=e;I[a+440>>1]=e>>>16;I[a+442>>1]=L[a+432>>1];o:{p:{q:{if(d&8192)break q;if(d&6291456){if(J[a+460>>2]-105001>>>0<4294957295|J[a+464>>2]-105001>>>0<4294957295)break q;d=J[a+208>>2]}r:{if(!(d&128))break r;if(J[a+460>>2]-105001>>>0<4294957295|J[a+464>>2]-105001>>>0<4294957295)break q;if(K[a+418|0]!=3)break r;if(J[a+420>>2]-105001>>>0<4294957295)break q}d=J[a+208>>2];if(J[a+464>>2]-105001>>>0<4294957295?d&8388608:0)break q;if(!(d& +128)|K[a+401|0]!=3)break o;l=L[a+394>>1];if(l){f=K[a+430|0];h=K[a+428|0];i=K[a+426|0];k=J[a+388>>2];g=0;while(1){j=J[a+504>>2]+g|0;e=K[j|0];s:{if((e|0)==255)break s;if(!e){d=k+P(g,3)|0;H[d+2|0]=f;H[d+1|0]=h;H[d|0]=i;break s}d=k+P(g,3)|0;e=(P(i,e^255)+P(e,K[d|0])|0)+128|0;H[d|0]=e+((e&65280)>>>8|0)>>>8;e=K[j|0];e=(P(h,e^255)+P(e,K[d+1|0])|0)+128|0;H[d+1|0]=((e&65280)>>>8|0)+e>>>8;o=d;e=K[j|0];d=(P(f,e^255)+P(e,K[d+2|0])|0)+128|0;H[o+2|0]=((d&65280)>>>8|0)+d>>>8}g=g+1|0;if((l|0)!=(g|0))continue;break}d= +J[a+208>>2]}d=d&-129;break p}d=K[a+402|0];if(J[a+468>>2]|J[a+472>>2]){fd(a,63999);EZ(a)}t:{if(d>>>0<=8){d=J[a+464>>2];u:{if((d|0)<=0){g=1E5;break u}e=J[a+460>>2];v:{if(!e)break v;p=V(1E15/+(e|0)/+(d|0)+.5);d=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!d)break v;if(p>=-2147483648)break u}g=0}e=lh(a,256);J[a+468>>2]=e;w:{if(g-95E3>>>0<10001){g=0;while(1){H[e+g|0]=g;d=g|1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]= +d;g=g+8|0;if((g|0)!=256)continue;break}break w}v=+(g|0)*1E-5;g=0;while(1){f=e+g|0;x:{if(g-1>>>0<=253){p=V(_e(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break x}d=0;break x}d=g}H[f|0]=d;g=g+1|0;if((g|0)!=256)continue;break}}if(!(J[a+208>>2]&6291584))break t;d=J[a+460>>2];y:{z:{if(!d)break z;p=V(1E10/+(d|0)+.5);d=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!d)break z;if(p>=-2147483648)break y}g=0}e=lh(a,256);J[a+480>>2]=e;A:{if(g-95E3>>>0<10001){g=0;while(1){H[e+g|0]=g; +d=g|1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]=d;g=g+8|0;if((g|0)!=256)continue;break}break A}v=+(g|0)*1E-5;g=0;while(1){f=e+g|0;B:{if(g-1>>>0<=253){p=V(_e(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break B}d=0;break B}d=g}H[f|0]=d;g=g+1|0;if((g|0)!=256)continue;break}}d=J[a+464>>2];C:{if((d|0)>0){p=V(1E10/+(d|0)+.5);e=p>=-2147483648;if(R(p)<2147483648)d=~~p;else d=-2147483648;d=p<=2147483647?e?d:0:0;break C}d=J[a+ +460>>2]}e=lh(a,256);J[a+476>>2]=e;if(d-95E3>>>0<10001){g=0;while(1){H[e+g|0]=g;d=g|1;H[d+e|0]=d;d=g|2;H[d+e|0]=d;d=g|3;H[d+e|0]=d;d=g|4;H[d+e|0]=d;d=g|5;H[d+e|0]=d;d=g|6;H[d+e|0]=d;d=g|7;H[d+e|0]=d;g=g+8|0;if((g|0)!=256)continue;break}break t}v=+(d|0)*1E-5;g=0;while(1){f=e+g|0;D:{if(g-1>>>0<=253){p=V(_e(+(g>>>0)/255,v)*255+.5);if(p<4294967296&p>=0){d=~~p>>>0;break D}d=0;break D}d=g}H[f|0]=d;g=g+1|0;if((g|0)!=256)continue;break}break t}d=a;i=d;E:{if(K[d+401|0]&2){e=K[d+494|0];g=K[d+493|0];f=K[d+492| +0];g=f>>>0>>0?g:f;e=e>>>0>g>>>0?e:g;break E}e=K[a+495|0]}d=(e-1&255)>>>0<15?16-e|0:0;e=d&255;g=J[a+208>>2]&67109888;d=(g?e>>>0<=5?5:e:d)&255;d=d>>>0>=8?8:d;J[i+456>>2]=d;e=J[a+464>>2];F:{G:{if(g){if((e|0)<=0)p=1;else{p=V(+J[a+460>>2]*1E-5*+(e|0)+.5);g=p>=-2147483648;if(R(p)<2147483648)e=~~p;else e=-2147483648;p=p<=2147483647?g?+(e|0)*1E-5:0:0}e=8-d|0;h=zw(a,4<>2]=h;g=0;while(1){x=h+(g<<2)|0,y=lh(a,512),J[x>>2]=y;g=g+1|0;if(!(g>>>e|0))continue;break}i=255>>>d|0;n=16-d|0;g=0;while(1){k= +P(j,257);v=V(_e(+((k&65535)+128>>>0)/65535,p)*65535+.5);H:{if(v<4294967296&v>=0){f=~~v>>>0;break H}f=0}f=f&65535;l=(((f<>>0)/65535|0;if(l>>>0>=g>>>0){f=0;q=l-g|0;r=q+1&3;if(r)while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=k;g=g+1|0;f=f+1|0;if((r|0)!=(f|0))continue;break}if(q>>>0>=3)while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=k;f=g+1|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=k;f=g+2|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=k;f=g+3|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=k;g=g+4|0;if((f|0)!=(l| +0))continue;break}g=l+1|0}j=j+1|0;if((j|0)!=255)continue;break}break G}f=a+472|0;I:{if((e|0)<=0){g=1E5;break I}g=J[a+460>>2];J:{if(!g)break J;p=V(1E15/+(g|0)/+(e|0)+.5);e=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!e)break J;if(p>=-2147483648)break I}g=0}GI(a,f,d,g);break F}k=256<>>0<=g>>>0)break F;f=0;j=k+(g^-1)|0;l=0-g&3;if(l)while(1){I[J[h+((g&i)<<2)>>2]+(g>>>e<<1)>>1]=65535;g=g+1|0;f=f+1|0;if((l|0)!=(f|0))continue;break}if(j>>>0<3)break F;while(1){I[J[h+((g&i)<<2)>>2]+ +(g>>>e<<1)>>1]=65535;f=g+1|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;f=g+2|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;f=g+3|0;I[J[h+((f&i)<<2)>>2]+(f>>>e<<1)>>1]=65535;g=g+4|0;if((k|0)!=(g|0))continue;break}}if(!(J[a+208>>2]&6291584))break t;e=a+488|0;g=J[a+460>>2];K:{L:{if(!g)break L;p=V(1E10/+(g|0)+.5);f=p<=2147483647;if(R(p)<2147483648)g=~~p;else g=-2147483648;if(!f)break L;if(p>=-2147483648)break K}g=0}GI(a,e,d,g);e=a;f=a+484|0;g=J[a+464>>2];M:{if((g|0)>0){p=V(1E10/+(g|0)+.5);h=p>=-2147483648; +if(R(p)<2147483648)g=~~p;else g=-2147483648;g=p<=2147483647?h?g:0:0;break M}g=J[a+460>>2]}GI(e,f,d,g)}d=J[a+208>>2];if(d&128){if(d&6291456)fd(a,59274);if(K[a+401|0]==3){j=L[a+392>>1];k=J[a+388>>2];d=1E5;g=1E5;N:{O:{P:switch(K[a+418|0]-1|0){case 1:d=J[a+480>>2];f=L[a+430>>1];g=K[d+f|0];l=L[a+428>>1];e=K[l+d|0];n=L[a+426>>1];d=K[n+d|0];h=J[a+468>>2];i=K[h+f|0];f=K[h+l|0];h=K[h+n|0];break N;case 0:g=J[a+464>>2];break O;case 2:break P;default:break O}g=rw(J[a+420>>2]);d=II(J[a+420>>2],J[a+464>>2])}h= +L[a+426>>1];Q:{if(d-105001>>>0<4294957295){h=Tt(h,d);f=Tt(L[a+428>>1],d);i=Tt(L[a+430>>1],d);break Q}f=K[a+428|0];i=K[a+430|0]}d=L[a+426>>1];if(g-105001>>>0<4294957295){d=Tt(d,g);e=Tt(L[a+428>>1],g);g=Tt(L[a+430>>1],g);break N}g=K[a+430|0];e=K[a+428|0]}if(j){q=g&255;r=e&255;t=d&255;g=0;while(1){R:{S:{if(L[a+394>>1]<=g>>>0)break S;l=J[a+504>>2]+g|0;e=K[l|0];if((e|0)==255)break S;if(!e){d=k+P(g,3)|0;H[d+2|0]=i;H[d+1|0]=f;H[d|0]=h;break R}n=J[a+480>>2];d=k+P(g,3)|0;e=(P(t,e^255)+P(e,K[n+K[d|0]|0])|0)+ +128|0;o=e+(e>>>8&255)>>>8&255;e=J[a+476>>2];H[d|0]=K[o+e|0];o=K[l|0];o=(P(r,o^255)+P(o,K[n+K[d+1|0]|0])|0)+128|0;H[d+1|0]=K[e+((o>>>8&255)+o>>>8&255)|0];o=d;l=K[l|0];d=(P(q,l^255)+P(l,K[n+K[d+2|0]|0])|0)+128|0;H[o+2|0]=K[e+((d>>>8&255)+d>>>8&255)|0];break R}d=k+P(g,3)|0;e=J[a+468>>2];H[d|0]=K[e+K[d|0]|0];H[d+1|0]=K[e+K[d+1|0]|0];H[d+2|0]=K[e+K[d+2|0]|0]}g=g+1|0;if((j|0)!=(g|0))continue;break}}d=J[a+208>>2]&-8321;break p}T:{U:switch(K[a+418|0]-1|0){case 1:g=rw(J[a+460>>2]);d=II(J[a+460>>2],J[a+464>> +2]);break T;case 2:g=rw(J[a+420>>2]);d=II(J[a+420>>2],J[a+464>>2]);break T;default:Ld(a,59479);B();case 0:break U}g=J[a+464>>2];d=1E5}f=d-105001>>>0<4294957295;h=g-105001>>>0<4294957295;if(h)x=a,y=Yp(a,L[a+432>>1],g),I[x+442>>1]=y;if(f)x=a,y=Yp(a,L[a+432>>1],d),I[x+432>>1]=y;e=L[a+426>>1];V:{if(!(!((e|0)!=L[a+428>>1]|(e|0)!=L[a+430>>1])&(e|0)==L[a+432>>1])){if(h){x=a,y=Yp(a,e,g),I[x+436>>1]=y;x=a,y=Yp(a,L[a+428>>1],g),I[x+438>>1]=y;x=a,y=Yp(a,L[a+430>>1],g),I[x+440>>1]=y}if(!f)break V;x=a,y=Yp(a, +L[a+426>>1],d),I[x+426>>1]=y;x=a,y=Yp(a,L[a+428>>1],d),I[x+428>>1]=y;x=a,y=Yp(a,L[a+430>>1],d),I[x+430>>1]=y;break V}I[a+430>>1]=e;I[a+428>>1]=e;I[a+426>>1]=e;d=L[a+442>>1];I[a+440>>1]=d;I[a+438>>1]=d;I[a+436>>1]=d}H[a+418|0]=1;d=J[a+208>>2];break o}if(K[a+401|0]!=3|(d&6291456?d&4096:0))break o;h=L[a+392>>1];if(h){i=J[a+388>>2];f=J[a+468>>2];e=0;while(1){g=i+P(e,3)|0;H[g|0]=K[f+K[g|0]|0];H[g+1|0]=K[f+K[g+1|0]|0];H[g+2|0]=K[f+K[g+2|0]|0];e=e+1|0;if((h|0)!=(e|0))continue;break}}d=d&-8193}J[a+208>>2]= +d}W:{if((d&4104)!=8|K[a+401|0]!=3)break W;J[a+208>>2]=d&-9;f=L[a+392>>1];d=K[a+492|0];X:{if(!f|(d-1&255)>>>0>6)break X;e=8-d|0;h=J[a+388>>2];d=0;g=0;if(f>>>0>=4){k=f&65532;i=0;while(1){j=h+P(g,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|1,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|2,3)|0;H[j|0]=K[j|0]>>>e;j=h+P(g|3,3)|0;H[j|0]=K[j|0]>>>e;g=g+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}i=f&3;if(!i)break X;while(1){k=h+P(g,3)|0;H[k|0]=K[k|0]>>>e;g=g+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}d=K[a+493|0];Y:{if(!f|(d-1&255)>>> +0>6)break Y;e=8-d|0;h=J[a+388>>2];d=0;g=0;if(f>>>0>=4){k=f&65532;i=0;while(1){j=h+P(g,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|1,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|2,3)|0;H[j+1|0]=K[j+1|0]>>>e;j=h+P(g|3,3)|0;H[j+1|0]=K[j+1|0]>>>e;g=g+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}i=f&3;if(!i)break Y;while(1){k=h+P(g,3)|0;H[k+1|0]=K[k+1|0]>>>e;g=g+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}d=K[a+494|0];if(!f|(d-1&255)>>>0>6)break W;h=8-d|0;i=J[a+388>>2];e=0;g=0;if(f>>>0>=4){k=f&65532;d=0;while(1){j=i+P(g, +3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|1,3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|2,3)|0;H[j+2|0]=K[j+2|0]>>>h;j=i+P(g|3,3)|0;H[j+2|0]=K[j+2|0]>>>h;g=g+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}d=f&3;if(!d)break W;while(1){f=i+P(g,3)|0;H[f+2|0]=K[f+2|0]>>>h;g=g+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}fc=m+16|0;Z:{if(K[a+398|0]){d=J[a+324>>2];g=J[a+208>>2];J[a+328>>2]=g&2?d:d+7>>>3|0;h=J[a+320>>2];d=K[a+399|0];e=K[d+68840|0];J[a+340>>2]=((h+e|0)+(K[d+68833|0]^-1)>>>0)/(e>>>0);break Z}J[a+328>>2]=J[a+324>> +2];h=J[a+320>>2];J[a+340>>2]=h;g=J[a+208>>2]}e=K[a+404|0];e=g&4?K[a+402|0]<8?8:e:e;d=e&255;f=g&4096;_:{if(!f)break _;$:switch(K[a+401|0]){case 3:d=L[a+394>>1]?32:24;break _;case 0:d=(d>>>0<=8?8:d)<<(L[a+394>>1]!=0);break _;case 2:break $;default:break _}if(!L[a+394>>1])break _;d=((e&255)<<2>>>0)/3|0}e=g&32768;aa:{if(!e)break aa;ba:switch(K[a+401|0]){case 0:d=d>>>0<9?16:32;break aa;case 2:case 3:break ba;default:break aa}d=d>>>0>32?64:32}ca:{if(!(g&16384))break ca;da:{if(!((f|0)!=0&L[a+394>>1]!=0| +e)){e=K[a+401|0];if((e|0)!=4)break da}d=d>>>0<17?32:64;break ca}if(d>>>0<=8){d=(e|0)==6?32:24;break ca}d=(e|0)==6?64:48}if(g&1048576){e=P(K[a+197|0],K[a+196|0]);d=d>>>0>>0?e:d}H[a+409|0]=0;H[a+408|0]=d;e=h+7&-8;d=((d+7>>>3|0)+(d>>>0>7?P(e,d>>>3|0):P(d,e)>>>3|0)|0)+49|0;if(d>>>0>M[a+736>>2]){Bd(a,J[a+680>>2]);Bd(a,J[a+748>>2]);ea:{if(K[a+398|0]){e=zw(a,d);break ea}e=lh(a,d)}J[a+680>>2]=e;e=lh(a,d);J[a+748>>2]=e;J[a+736>>2]=d;J[a+352>>2]=e+31;J[a+356>>2]=J[a+680>>2]+31}d=J[a+336>>2];if((d|0)==-1){Ld(a, +68847);B()}Ac(J[a+352>>2],0,d+1|0);J[a+204>>2]=J[a+204>>2]|64}g=J[a+340>>2];J[s+4>>2]=g;H[s+12|0]=K[a+401|0];H[s+13|0]=K[a+402|0];H[s+14|0]=K[a+405|0];e=K[a+404|0];H[s+15|0]=e;h=e>>>0>=8?P(g,e>>>3|0):P(e,g)+7>>>3|0;J[s+8>>2]=h;fa:{if(!K[a+398|0]|!(K[a+208|0]&2))break fa;d=J[a+344>>2];ga:switch(K[a+399|0]){case 0:if(!(d&7))break fa;if(c)In(a,c,1);Vp(a);break d;case 1:if(!(d&7)&M[a+320>>2]>4)break fa;if(c)In(a,c,1);Vp(a);break d;case 2:if((d&7)==4)break fa;if(!(!c|!(d&4)))In(a,c,1);Vp(a);break d;case 3:if(!(d& +3)&M[a+320>>2]>2)break fa;if(c)In(a,c,1);Vp(a);break d;case 4:if((d&3)==2)break fa;if(!(!c|!(d&2)))In(a,c,1);Vp(a);break d;case 5:if(!(d&1)&M[a+320>>2]>1)break fa;if(c)In(a,c,1);Vp(a);break d;default:break ga}if(d&1)break fa;Vp(a);break d}if(!(K[a+200|0]&4))break c;J[a+224>>2]=J[a+356>>2];f=a+212|0;J[a+228>>2]=(e>>>0>=8?P(g,e>>>3|0):P(e,g)+7>>>3|0)+1;while(1){if(!J[a+216>>2]){g=J[a+380>>2];ha:{while(1){if(g)break ha;Vd(a,0);g=dB(a);J[a+380>>2]=g;if(J[a+348>>2]==1229209940)continue;break}Ld(a,59542); +B()}d=J[a+272>>2];J[a+216>>2]=d;e=J[a+268>>2];J[a+212>>2]=e;if(d>>>0>g>>>0){J[a+216>>2]=g;d=g}if(a){Dg(a,e,d);Ae(a,e,d)}J[a+380>>2]=J[a+380>>2]-J[a+216>>2]}d=Vk(f,1);ia:{if(d){if((d|0)==1){if(J[a+228>>2]|J[a+216>>2]|J[a+380>>2])cJ(a,59875);J[a+200>>2]=J[a+200>>2]|8;J[a+204>>2]=J[a+204>>2]|32;break ia}b=a;a=J[a+236>>2];Ld(b,a?a:59971);B()}if(J[a+228>>2])continue}break}g=J[a+356>>2];d=K[g|0];if(d){if(d>>>0>4)break b;e=J[a+352>>2]+1|0;d=d-1|0;if(d>>>0<=3){if(!J[a+752>>2]){J[a+752>>2]=506;J[a+760>>2]= +507;J[a+756>>2]=508;J[a+764>>2]=(K[a+404|0]+7&504)==8?509:510}kc[J[((d<<2)+a|0)+752>>2]](s+4|0,g+1|0,e)}h=J[s+8>>2];g=J[a+356>>2]}xc(J[a+352>>2],g,h+1|0);if(!(!(K[a+660|0]&4)|K[a+664|0]!=64)){d=J[a+356>>2]+1|0;h=K[s+12|0];ja:{if(!(h&2))break ja;g=J[s+4>>2];ka:switch(K[s+13|0]-8|0){case 0:e=3;la:switch(h-2|0){case 4:e=4;break;case 0:break la;default:break ja}if(!g)break ja;if((g|0)!=1){i=g&-2;h=0;while(1){f=K[d+1|0];H[d|0]=f+K[d|0];H[d+2|0]=f+K[d+2|0];d=d+e|0;f=K[d+1|0];H[d+2|0]=f+K[d+2|0];H[d|0]= +f+K[d|0];d=d+e|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(g&1))break ja;e=K[d+1|0];H[d|0]=e+K[d|0];H[d+2|0]=e+K[d+2|0];break ja;case 8:break ka;default:break ja}f=6;ma:switch(h-2|0){case 4:f=8;break;case 0:break ma;default:break ja}if(!g)break ja;e=0;while(1){h=K[d+3|0]|K[d+2|0]<<8;i=h+(K[d+5|0]|K[d+4|0]<<8)|0;H[d+5|0]=i;h=h+(K[d+1|0]|K[d|0]<<8)|0;H[d+1|0]=h;H[d+4|0]=i>>>8;H[d|0]=h>>>8;d=d+f|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}}d=J[a+208>>2];if(d)na:{g=s+4|0;oa:{pa:{qa:{e=J[a+356>>2];if(e){if((J[a+ +204>>2]&16448)==16384)break qa;ra:{if(!(d&4096))break ra;f=K[g+8|0];if((f|0)==3){k=e+1|0;j=J[a+388>>2];t=J[a+504>>2];n=L[a+394>>1];sa:{if((f|0)!=3)break sa;e=J[g>>2];d=K[g+9|0];ta:{if(d>>>0<=7){ua:{va:switch(d-1|0){case 0:if(!e)break ua;h=e+k|0;d=0-e&7;i=e-1|0;f=k+(i>>>3|0)|0;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&1;h=h-2|0;o=f;f=(d|0)==7;l=o-f|0;d=f?0:d+1|0;H[h|0]=K[l|0]>>>d&1;f=(d|0)==7;d=f?0:d+1|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&1;break ua; +case 1:if(!e)break ua;h=e+k|0;i=e-1|0;f=k+(i>>>2|0)|0;d=((e<<1)+6^-1)&6;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&3;h=h-2|0;o=f;f=(d|0)==6;l=o-f|0;d=f?0:d+2|0;H[h|0]=K[l|0]>>>d&3;f=(d|0)==6;d=f?0:d+2|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&3;break ua;case 3:break va;default:break ua}if(!e)break ua;h=e+k|0;d=e<<2&4;i=e-1|0;f=k+(i>>>1|0)|0;if(i){m=e&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>d&15;h=h-2|0;o=f;f=(d|0)==4;l=o-f|0;d=f?0:d+4|0;H[h|0]=K[l|0]>>> +d&15;f=(d|0)==4;d=f?0:d+4|0;f=l-f|0;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(e&1))break ua;H[h-1|0]=K[f|0]>>>d&15}H[g+11|0]=8;H[g+9|0]=8;J[g+4>>2]=e;break ta}if((d|0)!=8)break sa}wa:{if(n){m=e<<2;q=4;r=6;l=32;if(!e)break wa;d=e+k|0;h=k+m|0;i=0;while(1){o=h-1|0;d=d-1|0;f=K[d|0];if((f|0)<(n|0))f=K[f+t|0];else f=255;H[o|0]=f;H[h-2|0]=K[(j+P(K[d|0],3)|0)+2|0];H[h-3|0]=K[(j+P(K[d|0],3)|0)+1|0];h=h-4|0;H[h|0]=K[j+P(K[d|0],3)|0];i=i+1|0;if((e|0)!=(i|0))continue;break}break wa}q=3;m=P(e,3);r=2;l=24;if(!e)break wa; +d=e+k|0;h=k+m|0;f=0;while(1){d=d-1|0;H[h-1|0]=K[(j+P(K[d|0],3)|0)+2|0];H[h-2|0]=K[(j+P(K[d|0],3)|0)+1|0];h=h-3|0;H[h|0]=K[j+P(K[d|0],3)|0];f=f+1|0;if((e|0)!=(f|0))continue;break}}H[g+11|0]=l;H[g+9|0]=8;H[g+10|0]=q;H[g+8|0]=r;J[g+4>>2]=m}break ra}e=e+1|0;if(!(!(d&33554432)|!L[a+394>>1])){GX(g,e,a+508|0);break ra}GX(g,e,0)}d=J[a+208>>2];xa:{if((d&262272)!=262144)break xa;ya:switch(K[g+8|0]-4|0){case 0:case 2:break ya;default:break xa}zI(g,J[a+356>>2]+1|0,0);d=J[a+208>>2]}za:{if(!(d&6291456))break za; +d=J[a+356>>2]+1|0;f=0;e=0;k=0;l=0;h=K[g+8|0];if((h&3)==2){q=h&4;j=L[a+656>>1];m=L[a+658>>1];n=32768-(j+m|0)|0;i=J[g>>2];Aa:{if(K[g+9|0]==8){if(!(!J[a+476>>2]|!J[a+480>>2])){if(!i)break Aa;f=d;while(1){h=K[d|0];l=K[d+1|0];r=K[d+2|0];Ba:{Ca:{if(!((h|0)==(l|0)&(r|0)==(h|0))){k=1;o=h;h=J[a+480>>2];h=J[a+476>>2]+(((P(j,K[o+h|0])+P(m,K[h+l|0])|0)+P(n,K[h+r|0])|0)+16384>>>15|0)|0;break Ca}l=J[a+468>>2];if(!l)break Ba;h=h+l|0}h=K[h|0]}H[f|0]=h;Da:{if(!q){f=f+1|0;d=d+3|0;break Da}H[f+1|0]=K[d+3|0];f=f+2|0; +d=d+4|0}e=e+1|0;if((i|0)!=(e|0))continue;break}break Aa}if(!i)break Aa;if(!q){h=d;while(1){e=K[d|0];l=K[d+1|0];q=K[d+2|0];if(!((e|0)==(l|0)&(q|0)==(e|0))){k=1;e=(P(l,m)+P(e,j)|0)+P(n,q)>>>15|0}d=d+3|0;H[h|0]=e;h=h+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}break Aa}e=d;while(1){h=K[d|0];l=K[d+1|0];q=K[d+2|0];if(!((h|0)==(l|0)&(q|0)==(h|0))){k=1;h=(P(l,m)+P(h,j)|0)+P(n,q)>>>15|0}H[e|0]=h;H[e+1|0]=K[d+3|0];e=e+2|0;d=d+4|0;f=f+1|0;if((i|0)!=(f|0))continue;break}break Aa}if(!(!J[a+488>>2]|!J[a+484>>2])){if(!i)break Aa; +h=d;while(1){f=K[d+1|0];w=K[d|0];r=f|w<<8;o=K[d+3|0];t=K[d+2|0];e=K[d+4|0]|K[d+5|0]<<8;e=e<<8|e>>>8;Ea:{Fa:{if(!((r|0)!=(o|t<<8)|(r|0)!=(e&65535))){e=J[a+472>>2];if(!e)break Ea;f=L[J[e+(o>>>J[a+456>>2]<<2)>>2]+(t<<1)>>1];break Fa}k=1;w=J[a+488>>2];f=J[a+456>>2];e=((P(j,L[J[w+((r&255)>>>f<<2)>>2]+(r>>>7&510)>>1])+P(m,L[J[w+(o>>>f<<2)>>2]+(t<<1)>>1])|0)+P(n,L[J[w+((e&255)>>>f<<2)>>2]+(e>>>7&510)>>1])|0)+16384|0;f=L[J[J[a+484>>2]+((e>>>15&255)>>>f<<2)>>2]+(e>>>22&510)>>1]}w=f>>>8|0}H[h+1|0]=f;H[h|0]= +w;Ga:{if(!q){h=h+2|0;d=d+6|0;break Ga}H[h+2|0]=K[d+6|0];H[h+3|0]=K[d+7|0];h=h+4|0;d=d+8|0}l=l+1|0;if((i|0)!=(l|0))continue;break}break Aa}if(!i)break Aa;e=d;while(1){h=K[e+1|0]|K[e|0]<<8;l=K[e+3|0]|K[e+2|0]<<8;r=K[e+5|0]|K[e+4|0]<<8;t=((P(h,j)+P(l,m)|0)+P(r,n)|0)+16384|0;H[d+1|0]=t>>>15;H[d|0]=t>>>23;k=(h|0)!=(r|0)?1:k;h=(h|0)==(l|0);Ha:{if(!q){e=e+6|0;d=d+2|0;break Ha}H[d+2|0]=K[e+6|0];H[d+3|0]=K[e+7|0];e=e+8|0;d=d+4|0}k=h?k:1;f=f+1|0;if((i|0)!=(f|0))continue;break}}d=K[g+10|0]-2|0;H[g+10|0]=d;H[g+ +8|0]=K[g+8|0]&253;d=P(d,K[g+9|0]);H[g+11|0]=d;d=d&255;Ia:{if(d>>>0>=8){d=P(i,d>>>3|0);break Ia}d=P(d,i)+7>>>3|0}J[g+4>>2]=d}d=J[a+208>>2];if(!k)break za;H[a+653|0]=1;if((d&6291456)==4194304){fd(a,60369);d=J[a+208>>2]}if((d&6291456)==2097152)break pa}if(!(!(d&16384)|K[a+201|0]&8)){EX(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&128){d=J[a+356>>2]+1|0;m=J[a+204>>2]&8192;k=J[g>>2];e=J[a+456>>2];l=J[a+488>>2];n=J[a+484>>2];i=J[a+472>>2];h=J[a+480>>2];j=J[a+476>>2];f=J[a+468>>2];Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:switch(K[g+ +8|0]){case 0:Wa:switch(K[g+9|0]-1|0){case 0:if(!k)break Ja;f=0;h=7;while(1){e=K[d|0];if(L[a+516>>1]==(e>>>h&1)){e=e&32639>>>7-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>>h&3;Xa:{if((m|0)==L[a+516>>1]){j=e&16191>>>6-h;H[d|0]=j;e=L[a+432>>1];break Xa}j=e&16191>>>6-h;e=K[f+P(m,85)|0]>>>6|0}H[d|0]=e<>>h&15;Ya:{if((m|0)==L[a+516>>1]){j=e&3855>>>4-h;H[d|0]=j;e=L[a+432>>1];break Ya}j=e&3855>>>4-h;e=K[f+P(m,17)|0]>>>4|0}H[d|0]=e<>1])e=K[a+432|0];else e=K[e+f|0];H[d|0]=e;e=K[d+1|0];Za:{if((e|0)!=L[a+516>>1]){e=K[e+f|0];break Za}e=K[a+432|0]}H[d+1|0]=e;d=d+2|0;h=h+2|0;if((i|0)!=(h|0))continue; +break}}if(!(k&1))break Ja;e=K[d|0];if((e|0)==L[a+516>>1])break Ua;H[d|0]=K[e+f|0];break Ja;case 15:break Wa;default:break Ja}if(!i)break Na;if(!k)break Ja;f=0;while(1){j=K[d+1|0];h=K[d|0];_a:{if(L[a+516>>1]==(j|h<<8)){H[d|0]=K[a+433|0];j=K[a+432|0];break _a}j=L[J[i+(j>>>e<<2)>>2]+(h<<1)>>1];H[d|0]=j>>>8}H[d+1|0]=j;d=d+2|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja;case 2:if(K[g+9|0]==8){if(!f)break Oa;if(!k)break Ja;i=0;while(1){h=K[d|0];e=K[d+1|0];$a:{if(!((h|0)!=L[a+510>>1]|(e|0)!=L[a+512>> +1]|L[a+514>>1]!=K[d+2|0])){H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0];break $a}H[d|0]=K[f+h|0];H[d+1|0]=K[e+f|0];H[d+2|0]=K[f+K[d+2|0]|0]}d=d+3|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!i)break Pa;if(!k)break Ja;h=0;while(1){f=K[d+4|0];j=K[d+5|0];q=K[d+1|0];n=K[d|0];l=K[d+3|0];m=K[d+2|0];ab:{if(!(L[a+510>>1]!=(q|n<<8)|L[a+512>>1]!=(l|m<<8)|L[a+514>>1]!=(j|f<<8))){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];f=K[a+430| +0];break ab}n=L[J[i+(q>>>e<<2)>>2]+(n<<1)>>1];n=n<<8|n>>>8;H[d|0]=n;H[d+1|0]=n>>>8;m=L[J[i+(l>>>e<<2)>>2]+(m<<1)>>1];m=m<<8|m>>>8;H[d+2|0]=m;H[d+3|0]=m>>>8;f=L[J[i+(j>>>e<<2)>>2]+(f<<1)>>1];H[d+4|0]=f>>>8}H[d+5|0]=f;d=d+6|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja;case 4:if(K[g+9|0]==8){if(!(f?!h|!j:1))break Qa;if(!k)break Ja;f=0;while(1){e=K[d+1|0];if((e|0)!=255){if(e){e=(P(L[a+432>>1],e^255)+P(e,K[d|0])|0)+128&65535;e=(e>>>8|0)+e>>>8|0}else e=K[a+432|0];H[d|0]=e}d=d+2|0;f=f+1|0;if((k|0)!= +(f|0))continue;break}break Ja}if(!(l?!i|!n:1))break Ra;if(!k)break Ja;f=0;while(1){e=K[d+3|0]|K[d+2|0]<<8;bb:{if((e|0)==65535)break bb;if(!e){H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break bb}e=(P(L[a+432>>1],e^65535)+P(e,K[d+1|0]|K[d|0]<<8)|0)+32768|0;e=(e>>>16|0)+e|0;H[d+1|0]=e>>>16;H[d|0]=e>>>24}d=d+4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja;case 6:break Va;default:break Ja}if(K[g+9|0]==8){if(!(f?!h|!j:1))break Sa;if(!k)break Ja;f=0;while(1){e=K[d+3|0];cb:{if((e|0)==255)break cb;if(!e){H[d| +0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0];break cb}h=e^255;i=(P(e,K[d|0])+P(h,L[a+426>>1])|0)+128|0;H[d|0]=(i>>>8&255)+i>>>8;i=(P(e,K[d+1|0])+P(h,L[a+428>>1])|0)+128|0;H[d+1|0]=(i>>>8&255)+i>>>8;e=(P(e,K[d+2|0])+P(h,L[a+430>>1])|0)+128|0;H[d+2|0]=(e>>>8&255)+e>>>8}d=d+4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja}if(!(l?!i|!n:1))break Ta;if(!k)break Ja;f=0;while(1){e=K[d+7|0]|K[d+6|0]<<8;db:{if((e|0)==65535)break db;if(!e){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0]; +H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0];break db}h=e^65535;i=(P(e,K[d+1|0]|K[d|0]<<8)+P(h,L[a+426>>1])|0)+32768|0;i=(i>>>16|0)+i|0;H[d+1|0]=i>>>16;H[d|0]=i>>>24;i=(P(e,K[d+3|0]|K[d+2|0]<<8)+P(h,L[a+428>>1])|0)+32768|0;i=(i>>>16|0)+i|0;H[d+2|0]=i>>>24;H[d+3|0]=i>>>16;e=(P(e,K[d+5|0]|K[d+4|0]<<8)+P(h,L[a+430>>1])|0)+32768|0;e=(e>>>16|0)+e|0;H[d+4|0]=e>>>24;H[d+5|0]=e>>>16}d=d+8|0;f=f+1|0;if((k|0)!=(f|0))continue;break}break Ja}H[d|0]=K[a+432|0];break Ja}if(!k)break Ja;h=0;while(1){eb:{fb:{q= +K[d+7|0]|K[d+6|0]<<8;if(q){if((q|0)!=65535)break fb;f=L[J[i+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+(K[d+3|0]>>>e<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>e<<2)>>2]+(K[d+4|0]<<1)>>1];f=f<<8|f>>>8;H[d+4|0]=f;H[d+5|0]=f>>>8;break eb}H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0];break eb}r=q^65535;f=(P(q,L[J[l+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>> +1])+P(r,L[a+436>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j=L[J[n+((j&255)>>>e<<2)>>2]+(f<<1)>>1];f=j>>>8|0}H[d+1|0]=j;H[d|0]=f;f=(P(q,L[J[l+(K[d+3|0]>>>e<<2)>>2]+(K[d+2|0]<<1)>>1])+P(r,L[a+438>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j=L[J[n+((j&255)>>>e<<2)>>2]+(f<<1)>>1];f=j>>>8|0}H[d+3|0]=j;H[d+2|0]=f;f=(P(q,L[J[l+(K[d+5|0]>>>e<<2)>>2]+(K[d+4|0]<<1)>>1])+P(r,L[a+440>>1])|0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>24|0;j=j>>>16|0;if(!m){j=L[J[n+((j&255)>>>e<<2)>> +2]+(f<<1)>>1];f=j>>>8|0}H[d+5|0]=j;H[d+4|0]=f}d=d+8|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;i=0;while(1){gb:{hb:{l=K[d+3|0];if(l){if((l|0)!=255)break hb;H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];break gb}H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0];break gb}n=l^255;e=(P(l,K[h+K[d|0]|0])+P(n,L[a+436>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!m)e=K[j+(e&255)|0];H[d|0]=e;e=(P(l,K[h+K[d+1|0]|0])+P(n,L[a+438>>1])|0)+128|0;e=(e>>>8&255)+e>>> +8|0;if(!m)e=K[j+(e&255)|0];H[d+1|0]=e;e=(P(l,K[h+K[d+2|0]|0])+P(n,L[a+440>>1])|0)+128|0;e=(e>>>8&255)+e>>>8|0;if(!m)e=K[j+(e&255)|0];H[d+2|0]=e}d=d+4|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!k)break Ja;h=0;while(1){ib:{jb:{f=K[d+3|0]|K[d+2|0]<<8;if(f){if((f|0)!=65535)break jb;f=L[J[i+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;break ib}H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break ib}f=(P(f,L[J[l+(K[d+1|0]>>>e<<2)>>2]+(K[d|0]<<1)>>1])+P(L[a+442>>1],f^65535)| +0)+32768|0;j=(f>>>16|0)+f|0;f=j>>>16|0;if(m)j=j>>>24|0;else{f=L[J[n+((f&255)>>>e<<2)>>2]+(j>>>23&510)>>1];j=f>>>8|0}H[d+1|0]=f;H[d|0]=j}d=d+4|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;i=0;while(1){kb:{lb:{e=K[d+1|0];if(e){if((e|0)!=255)break lb;e=K[f+K[d|0]|0];break kb}e=K[a+432|0];break kb}e=(P(L[a+442>>1],e^255)+P(e,K[h+K[d|0]|0])|0)+128&65535;e=(e>>>8|0)+e>>>8|0;if(m)break kb;e=K[j+(e&255)|0]}H[d|0]=e;d=d+2|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break Ja}if(!k)break Ja; +h=0;while(1){if(!(L[a+510>>1]!=(K[d+1|0]|K[d|0]<<8)|L[a+512>>1]!=(K[d+3|0]|K[d+2|0]<<8)|L[a+514>>1]!=(K[d+5|0]|K[d+4|0]<<8))){H[d|0]=K[a+427|0];H[d+1|0]=K[a+426|0];H[d+2|0]=K[a+429|0];H[d+3|0]=K[a+428|0];H[d+4|0]=K[a+431|0];H[d+5|0]=K[a+430|0]}d=d+6|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja;h=0;while(1){if(!(L[a+510>>1]!=K[d|0]|L[a+512>>1]!=K[d+1|0]|L[a+514>>1]!=K[d+2|0])){H[d|0]=K[a+426|0];H[d+1|0]=K[a+428|0];H[d+2|0]=K[a+430|0]}d=d+3|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break Ja}if(!k)break Ja; +if((k|0)!=1){e=k&-2;h=0;while(1){if(L[a+516>>1]==(K[d+1|0]|K[d|0]<<8)){H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0]}if(L[a+516>>1]==(K[d+3|0]|K[d+2|0]<<8)){H[d+2|0]=K[a+433|0];H[d+3|0]=K[a+432|0]}d=d+4|0;h=h+2|0;if((e|0)!=(h|0))continue;break}}if(!(k&1)|L[a+516>>1]!=(K[d+1|0]|K[d|0]<<8))break Ja;H[d|0]=K[a+433|0];H[d+1|0]=K[a+432|0];break Ja}if(!k)break Ja;if((k|0)!=1){e=k&-2;h=0;while(1){if(L[a+516>>1]==K[d|0])H[d|0]=K[a+432|0];if(L[a+516>>1]==K[d+1|0])H[d+1|0]=K[a+432|0];d=d+2|0;h=h+2|0;if((e|0)!=(h|0))continue; +break}}if(!(k&1)|L[a+516>>1]!=K[d|0])break Ja;H[d|0]=K[a+432|0];break Ja}if(!k)break Ja;f=0;h=4;while(1){e=K[d|0];if(L[a+516>>1]==(e>>>h&15)){e=e&3855>>>4-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>1]==(e>>>h&3)){e=e&16191>>>6-h;H[d|0]=e;H[d|0]=e|L[a+432>>1]<>2]}mb:{if((d&6299648)!=8192)break mb;nb:{if(!(d&128)){e= +K[a+401|0];break nb}if(L[a+394>>1])break mb;e=K[a+401|0];if(e&4)break mb}if((e|0)==3)break mb;d=J[a+356>>2]+1|0;l=0;h=J[g>>2];k=J[a+456>>2];i=J[a+472>>2];e=K[g+9|0];f=J[a+468>>2];ob:{if(!(f?e>>>0<=8:0)&(!i|(e|0)!=16))break ob;pb:{qb:{rb:switch(K[g+8|0]){case 2:if((e|0)!=8){if(!h)break ob;e=0;while(1){f=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>k<<2)>>2]+ +(K[d+4|0]<<1)>>1];f=f<<8|f>>>8;H[d+4|0]=f;H[d+5|0]=f>>>8;d=d+6|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob}if(!h)break ob;if((h|0)!=1){i=h&-2;e=0;while(1){H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+3|0]=K[f+K[d+3|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+5|0]=K[f+K[d+5|0]|0];d=d+6|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}break qb;case 6:if((e|0)!=8){if(!h)break ob;e=0;while(1){f=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;f=L[J[i+ +(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];f=f<<8|f>>>8;H[d+2|0]=f;H[d+3|0]=f>>>8;f=L[J[i+(K[d+5|0]>>>k<<2)>>2]+(K[d+4|0]<<1)>>1];f=f<<8|f>>>8;H[d+4|0]=f;H[d+5|0]=f>>>8;d=d+8|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob}if(!h)break ob;if((h|0)!=1){i=h&-2;e=0;while(1){H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+5|0]=K[f+K[d+5|0]|0];H[d+6|0]=K[f+K[d+6|0]|0];d=d+8|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}break qb;case 4:if((e|0)!=8){if(!h)break ob; +if((h|0)!=1){f=h&-2;e=0;while(1){j=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];j=j<<8|j>>>8;H[d|0]=j;H[d+1|0]=j>>>8;j=L[J[i+(K[d+5|0]>>>k<<2)>>2]+(K[d+4|0]<<1)>>1];j=j<<8|j>>>8;H[d+4|0]=j;H[d+5|0]=j>>>8;d=d+8|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}break pb}if(!h)break ob;if(h-1>>>0>=3){i=h&-4;e=0;while(1){H[d|0]=K[f+K[d|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+4|0]=K[f+K[d+4|0]|0];H[d+6|0]=K[f+K[d+6|0]|0];d=d+8|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}h=h&3;if(!h)break ob;e=0;while(1){H[d|0]=K[f+K[d| +0]|0];d=d+2|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break ob;case 0:break rb;default:break ob}sb:{tb:{ub:{if(!(!h|(e|0)!=2)){e=d;while(1){j=K[e|0];m=j&48;o=K[f+(m<<2|m>>>2|m>>>4|m)|0]>>>2&48;m=j&192;o=o|K[f+(j>>>6|m>>>4|m>>>2|m)|0]&192;m=j&12;H[e|0]=o|K[f+(P(m,20)|m>>>2|m)|0]>>>4&12|K[f+P(j&3,85)|0]>>>6;e=e+1|0;l=l+4|0;if(h>>>0>l>>>0)continue;break}e=K[g+9|0]}switch(e-4|0){case 0:break sb;case 4:break tb;case 12:break ub;default:break ob}}if(!h)break ob;if((h|0)!=1){f=h&-2;e=0;while(1){j=L[J[i+(K[d+ +1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];j=j<<8|j>>>8;H[d|0]=j;H[d+1|0]=j>>>8;j=L[J[i+(K[d+3|0]>>>k<<2)>>2]+(K[d+2|0]<<1)>>1];j=j<<8|j>>>8;H[d+2|0]=j;H[d+3|0]=j>>>8;d=d+4|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}break pb}if(!h)break ob;if(h-1>>>0>=3){i=h&-4;e=0;while(1){H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];H[d+3|0]=K[f+K[d+3|0]|0];d=d+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}h=h&3;if(!h)break ob;e=0;while(1){H[d|0]=K[f+K[d|0]|0];d=d+1|0;e=e+1|0;if((h|0)!=(e|0))continue; +break}break ob}if(!h)break ob;e=0;while(1){i=K[d|0];H[d|0]=K[f+P(i&15,17)|0]>>>4|K[f+(i&240|i>>>4)|0]&240;d=d+1|0;e=e+2|0;if(h>>>0>e>>>0)continue;break}break ob}if(!(h&1))break ob;H[d|0]=K[f+K[d|0]|0];H[d+1|0]=K[f+K[d+1|0]|0];H[d+2|0]=K[f+K[d+2|0]|0];break ob}if(!(h&1))break ob;e=L[J[i+(K[d+1|0]>>>k<<2)>>2]+(K[d|0]<<1)>>1];e=e<<8|e>>>8;H[d|0]=e;H[d+1|0]=e>>>8}d=J[a+208>>2]}vb:{if((d&262272)!=262272)break vb;wb:switch(K[g+8|0]-4|0){case 0:case 2:break wb;default:break vb}zI(g,J[a+356>>2]+1|0,0);d= +J[a+208>>2]}if(d&64){d=J[a+356>>2]+1|0;i=J[a+588>>2];e=J[a+592>>2];xb:{if(K[g+9|0]!=8)break xb;h=J[g>>2];yb:{zb:{Ab:{Bb:{Cb:{f=K[g+8|0];if(!(!i|(f|0)!=2)){if(!h)break Cb;f=0;e=d;while(1){H[e|0]=K[i+(K[d+1|0]<<2&992|K[d|0]<<7&31744|K[d+2|0]>>>3)|0];e=e+1|0;d=d+3|0;f=f+1|0;if((h|0)!=(f|0))continue;break}H[g+10|0]=1;H[g+8|0]=3;d=K[g+9|0];H[g+11|0]=d;if(d>>>0>=8)break zb;break yb}if(!(!i|(f|0)!=6)){if(!h)break Bb;f=0;e=d;while(1){H[e|0]=K[i+(K[d+1|0]<<2&992|K[d|0]<<7&31744|K[d+2|0]>>>3)|0];e=e+1|0;d= +d+4|0;f=f+1|0;if((h|0)!=(f|0))continue;break}H[g+10|0]=1;H[g+8|0]=3;d=K[g+9|0];H[g+11|0]=d;if(d>>>0>=8)break Ab;break yb}if(!h|(!e|(f|0)!=3))break xb;if(h>>>0>=4){i=h&-4;f=0;while(1){H[d|0]=K[e+K[d|0]|0];H[d+1|0]=K[e+K[d+1|0]|0];H[d+2|0]=K[e+K[d+2|0]|0];H[d+3|0]=K[e+K[d+3|0]|0];d=d+4|0;f=f+4|0;if((i|0)!=(f|0))continue;break}}h=h&3;if(!h)break xb;f=0;while(1){H[d|0]=K[e+K[d|0]|0];d=d+1|0;f=f+1|0;if((h|0)!=(f|0))continue;break}break xb}I[g+10>>1]=2049;H[g+8|0]=3;d=8;break zb}I[g+10>>1]=2049;H[g+8|0]= +3;d=8}J[g+4>>2]=P(h,d>>>3|0);break xb}J[g+4>>2]=P(h,d>>>3|0);break xb}J[g+4>>2]=P(d,h)+7>>>3}if(!J[g+4>>2])break oa;d=J[a+208>>2]}if(!(!(d&16384)|!(K[a+201|0]&8))){EX(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&32){wZ(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&8){d=J[a+356>>2]+1|0;e=fc-16|0;i=K[g+8|0];Db:{if((i|0)==3)break Db;h=K[g+9|0];Eb:{if(i&2){k=K[a+497|0];J[e+4>>2]=h-K[a+498|0];J[e+8>>2]=h-K[a+499|0];f=3;break Eb}k=K[a+500|0];f=1}J[e>>2]=h-k;if(i&4){J[(e|f<<2)>>2]=h-K[a+501|0];f=f+1|0}k=J[e>>2];i=(k|0)< +(h|0)&(k|0)>0;J[e>>2]=i?k:0;Fb:{if((f|0)==1)break Fb;k=J[e+4>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+4>>2]=j?k:0;i=j?1:i;if((f|0)==2)break Fb;k=J[e+8>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+8>>2]=j?k:0;i=j?1:i;if((f|0)==3)break Fb;k=J[e+12>>2];j=(k|0)<(h|0)&(k|0)>0;J[e+12>>2]=j?k:0;i=j?1:i}if(!i)break Db;Gb:switch(h<<31|h-2>>>1){case 0:e=J[g+4>>2];if((e|0)<=0)break Db;e=d+e|0;while(1){H[d|0]=K[d|0]>>>1&85;d=d+1|0;if(e>>>0>d>>>0)continue;break}break Db;case 1:f=J[g+4>>2];if((f|0)<=0)break Db;e=J[e>>2];h=P(15>>>e|0,17); +f=d+f|0;while(1){H[d|0]=h&K[d|0]>>>e;d=d+1|0;if(f>>>0>d>>>0)continue;break}break Db;case 3:h=J[g+4>>2];if((h|0)<=0)break Db;i=d+h|0;h=0;while(1){H[d|0]=K[d|0]>>>J[e+(h<<2)>>2];h=h+1|0;h=(f|0)>(h|0)?h:0;d=d+1|0;if(i>>>0>d>>>0)continue;break}break Db;case 7:break Gb;default:break Db}h=J[g+4>>2];if((h|0)<=0)break Db;i=d+h|0;h=0;while(1){k=(K[d+1|0]|K[d|0]<<8)>>>J[e+(h<<2)>>2]|0;k=k<<8|k>>>8;H[d|0]=k;H[d+1|0]=k>>>8;h=h+1|0;h=(f|0)>(h|0)?h:0;d=d+2|0;if(i>>>0>d>>>0)continue;break}}d=J[a+208>>2]}if(d&4){f= +J[a+356>>2]+1|0;e=K[g+9|0];if(e>>>0<=7){d=J[g>>2];Hb:{Ib:switch(e-1|0){case 0:if(!d)break Hb;h=d+f|0;e=0-d&7;i=d-1|0;f=f+(i>>>3|0)|0;if(i){k=d&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>e&1;h=h-2|0;j=f;f=(e|0)==7;j=j-f|0;e=f?0:e+1|0;H[h|0]=K[j|0]>>>e&1;f=(e|0)==7;e=f?0:e+1|0;f=j-f|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&1;break Hb;case 1:if(!d)break Hb;h=d+f|0;i=d-1|0;f=f+(i>>>2|0)|0;e=((d<<1)+6^-1)&6;if(i){k=d&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>e&3;h=h-2|0;j=f;f=(e| +0)==6;j=j-f|0;e=f?0:e+2|0;H[h|0]=K[j|0]>>>e&3;f=(e|0)==6;e=f?0:e+2|0;f=j-f|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&3;break Hb;case 3:break Ib;default:break Hb}if(!d)break Hb;h=d+f|0;e=d<<2&4;i=d-1|0;f=f+(i>>>1|0)|0;if(i){k=d&-2;i=0;while(1){H[h-1|0]=K[f|0]>>>e&15;h=h-2|0;j=f;f=(e|0)!=0;j=j-f|0;m=!e;H[h|0]=K[j|0]>>>(m<<2)&15;e=f<<2;f=j-m|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!(d&1))break Hb;H[h-1|0]=K[f|0]>>>e&15}H[g+9|0]=8;e=K[g+10|0];H[g+11|0]=e<<3; +J[g+4>>2]=P(d,e)}d=J[a+208>>2]}if(d&1){hZ(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&65536){lZ(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&32768){d=J[a+356>>2]+1|0;f=J[a+204>>2];h=0;k=L[a+416>>1];e=k>>>8|0;i=J[g>>2];Jb:{Kb:{Lb:switch(K[g+8|0]){case 0:Mb:switch(K[g+9|0]-8|0){case 0:if(f&128){f=d+i|0;d=i+f|0;m=2;Nb:{if(i>>>0<2)break Nb;e=i-1|0;h=e&3;if(i-2>>>0>=3){j=e&-4;e=0;while(1){H[d-1|0]=k;l=K[f-1|0];H[d-3|0]=k;H[d-2|0]=l;l=K[f-2|0];H[d-5|0]=k;H[d-4|0]=l;l=K[f-3|0];H[d-7|0]=k;H[d-6|0]=l;d=d-8|0;f=f-4|0;H[d| +0]=K[f|0];e=e+4|0;if((j|0)!=(e|0))continue;break}}if(!h)break Nb;e=0;while(1){H[d-1|0]=k;d=d-2|0;f=f-1|0;H[d|0]=K[f|0];e=e+1|0;if((h|0)!=(e|0))continue;break}}H[d-1|0]=k;j=1;l=16;break Kb}j=1;l=16;m=2;if(!i)break Kb;n=i&3;f=d+i|0;d=i+f|0;Ob:{if(i>>>0<4){e=d;break Ob}q=i&-4;while(1){e=K[f-1|0];H[d-2|0]=k;H[d-1|0]=e;e=K[f-2|0];H[d-4|0]=k;H[d-3|0]=e;e=K[f-3|0];H[d-6|0]=k;H[d-5|0]=e;f=f-4|0;r=K[f|0];e=d-8|0;H[e|0]=k;H[d-7|0]=r;d=e;h=h+4|0;if((q|0)!=(h|0))continue;break}}if(!n)break Kb;d=0;while(1){f= +f-1|0;j=K[f|0];h=e-2|0;H[h|0]=k;H[e-1|0]=j;j=1;e=h;d=d+1|0;if((n|0)!=(d|0))continue;break}break Kb;case 8:break Mb;default:break Jb}if(f&128){f=d;d=i<<1;f=f+d|0;d=f+d|0;m=2;Pb:{if(i>>>0<2)break Pb;h=i-1|0;j=h&1;if((i|0)!=2){l=h&-2;h=0;while(1){H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];n=K[f-2|0];H[d-5|0]=k;H[d-4|0]=n;H[d-6|0]=e;H[d-7|0]=K[f-3|0];d=d-8|0;f=f-4|0;H[d|0]=K[f|0];h=h+2|0;if((l|0)!=(h|0))continue;break}}if(!j)break Pb;H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];d=d-4|0;H[d|0]=K[f-2|0]}H[d-2| +0]=e;H[d-1|0]=k;l=32;j=2;break Kb}l=32;if(i)Qb:{f=d;d=i<<1;f=f+d|0;d=f+d|0;if((i|0)!=1){j=i&-2;while(1){H[d-1|0]=K[f-1|0];m=K[f-2|0];H[d-3|0]=k;H[d-2|0]=m;H[d-4|0]=e;H[d-5|0]=K[f-3|0];f=f-4|0;m=K[f|0];H[d-7|0]=k;H[d-6|0]=m;d=d-8|0;H[d|0]=e;h=h+2|0;if((j|0)!=(h|0))continue;break}}if(!(i&1))break Qb;H[d-1|0]=K[f-1|0];f=K[f-2|0];H[d-3|0]=k;H[d-2|0]=f;H[d-4|0]=e}m=2;j=2;break Kb;case 2:break Lb;default:break Jb}Rb:switch(K[g+9|0]-8|0){case 0:if(f&128){f=d+P(i,3)|0;d=i+f|0;j=2;if(i>>>0>=2){e=1;while(1){H[d- +1|0]=k;H[d-2|0]=K[f-1|0];H[d-3|0]=K[f-2|0];d=d-4|0;f=f-3|0;H[d|0]=K[f|0];e=e+1|0;if((i|0)!=(e|0))continue;break}}H[d-1|0]=k;l=32;m=4;break Kb}j=2;l=32;m=4;if(!i)break Kb;f=d+P(i,3)|0;d=i+f|0;e=0;while(1){H[d-1|0]=K[f-1|0];H[d-2|0]=K[f-2|0];f=f-3|0;n=K[f|0];h=d-4|0;H[h|0]=k;H[d-3|0]=n;d=h;e=e+1|0;if((i|0)!=(e|0))continue;break}break Kb;case 8:break Rb;default:break Jb}if(f&128){h=1;f=d+P(i,6)|0;d=f+(i<<1)|0;if(i>>>0>=2)while(1){H[d-2|0]=e;H[d-1|0]=k;H[d-3|0]=K[f-1|0];H[d-4|0]=K[f-2|0];H[d-5|0]=K[f- +3|0];H[d-6|0]=K[f-4|0];H[d-7|0]=K[f-5|0];d=d-8|0;f=f-6|0;H[d|0]=K[f|0];h=h+1|0;if((i|0)!=(h|0))continue;break}H[d-2|0]=e;H[d-1|0]=k;j=3;l=64;m=4;break Kb}j=3;l=64;m=4;if(!i)break Kb;f=d+P(i,6)|0;d=f+(i<<1)|0;while(1){H[d-1|0]=K[f-1|0];H[d-2|0]=K[f-2|0];H[d-3|0]=K[f-3|0];H[d-4|0]=K[f-4|0];H[d-5|0]=K[f-5|0];f=f-6|0;n=K[f|0];H[d-7|0]=k;H[d-6|0]=n;d=d-8|0;H[d|0]=e;h=h+1|0;if((i|0)!=(h|0))continue;break}}H[g+11|0]=l;H[g+10|0]=m;J[g+4>>2]=i<>2]}if(d&524288){d=J[a+356>>2]+1|0;f=J[g>>2];Sb:{Tb:switch(K[g+ +8|0]-4|0){case 2:if(K[g+9|0]==8){if(!f)break Sb;d=d+J[g+4>>2]|0;if(f>>>0>=4){h=f&-4;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-9|0;H[i|0]=K[i|0]^-1;i=d-13|0;H[i|0]=K[i|0]^-1;d=d-16|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}f=f&3;if(!f)break Sb;e=0;while(1){h=d-1|0;H[h|0]=K[h|0]^-1;d=d-4|0;e=e+1|0;if((f|0)!=(e|0))continue;break}break Sb}if(!f)break Sb;d=d+J[g+4>>2]|0;if((f|0)!=1){h=f&-2;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-2|0;H[i|0]=K[i|0]^-1;i=d-9|0;H[i|0]=K[i|0]^-1; +i=d-10|0;H[i|0]=K[i|0]^-1;d=d-16|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!(f&1))break Sb;e=d-1|0;H[e|0]=K[e|0]^-1;d=d-2|0;H[d|0]=K[d|0]^-1;break Sb;case 0:break Tb;default:break Sb}if(K[g+9|0]==8){if(!f)break Sb;d=d+J[g+4>>2]|0;if(f>>>0>=4){h=f&-4;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-3|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-7|0;H[i|0]=K[i|0]^-1;d=d-8|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}f=f&3;if(!f)break Sb;e=0;while(1){h=d-1|0;H[h|0]=K[h|0]^-1;d=d-2|0;e=e+1|0;if((f|0)!=(e| +0))continue;break}break Sb}if(!f)break Sb;d=d+J[g+4>>2]|0;if((f|0)!=1){h=f&-2;e=0;while(1){i=d-1|0;H[i|0]=K[i|0]^-1;i=d-2|0;H[i|0]=K[i|0]^-1;i=d-5|0;H[i|0]=K[i|0]^-1;i=d-6|0;H[i|0]=K[i|0]^-1;d=d-8|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!(f&1))break Sb;e=d-1|0;H[e|0]=K[e|0]^-1;d=d-2|0;H[d|0]=K[d|0]^-1}d=J[a+208>>2]}if(d&131072){d=J[a+356>>2]+1|0;e=J[g>>2];Ub:{Vb:switch(K[g+8|0]-4|0){case 2:if(K[g+9|0]==8){if(!e)break Ub;d=d+J[g+4>>2]|0;if((e|0)!=1){f=e&-2;h=0;while(1){i=d-1|0;k=K[i|0];j=i;i= +d-2|0;H[j|0]=K[i|0];j=d-3|0;m=K[j|0];o=j;j=d-4|0;H[o|0]=K[j|0];H[i|0]=m;H[j|0]=k;i=d-5|0;k=K[i|0];j=i;i=d-6|0;H[j|0]=K[i|0];j=i;i=d-7|0;H[j|0]=K[i|0];d=d-8|0;H[i|0]=K[d|0];H[d|0]=k;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(e&1))break Ub;e=d-1|0;f=K[e|0];i=e;e=d-2|0;H[i|0]=K[e|0];h=d-3|0;i=K[h|0];d=d-4|0;H[h|0]=K[d|0];H[e|0]=i;H[d|0]=f;break Ub}if(!e)break Ub;d=d+J[g+4>>2]|0;h=0;while(1){f=d-2|0;k=K[f|0]|K[f+1|0]<<8;i=d-4|0;j=K[i|0]|K[i+1|0]<<8;H[f|0]=j;H[f+1|0]=j>>>8;f=d-6|0;j=K[f|0]|K[f+1|0]<< +8;H[i|0]=j;H[i+1|0]=j>>>8;d=d-8|0;i=K[d|0]|K[d+1|0]<<8;H[f|0]=i;H[f+1|0]=i>>>8;H[d|0]=k;H[d+1|0]=k>>>8;h=h+1|0;if((e|0)!=(h|0))continue;break}break Ub;case 0:break Vb;default:break Ub}if(K[g+9|0]==8){if(!e)break Ub;d=d+J[g+4>>2]|0;if(e>>>0>=4){f=e&-4;h=0;while(1){i=d-1|0;k=K[i|0];j=i;i=d-2|0;H[j|0]=K[i|0];H[i|0]=k;i=d-3|0;k=K[i|0];j=i;i=d-4|0;H[j|0]=K[i|0];H[i|0]=k;i=d-5|0;k=K[i|0];j=i;i=d-6|0;H[j|0]=K[i|0];H[i|0]=k;i=d-7|0;k=K[i|0];d=d-8|0;H[i|0]=K[d|0];H[d|0]=k;h=h+4|0;if((f|0)!=(h|0))continue; +break}}e=e&3;if(!e)break Ub;h=0;while(1){f=d-1|0;i=K[f|0];d=d-2|0;H[f|0]=K[d|0];H[d|0]=i;h=h+1|0;if((e|0)!=(h|0))continue;break}break Ub}if(!e)break Ub;d=d+J[g+4>>2]|0;if((e|0)!=1){k=e&-2;h=0;while(1){f=d-4|0;i=zEb(K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24),16);H[f|0]=i;H[f+1|0]=i>>>8;H[f+2|0]=i>>>16;H[f+3|0]=i>>>24;d=d-8|0;f=zEb(K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),16);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(e&1))break Ub; +d=d-4|0;e=zEb(K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),16);H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=e>>>16;H[d+3|0]=e>>>24}d=J[a+208>>2]}if(d&16){pZ(g,J[a+356>>2]+1|0);d=J[a+208>>2]}if(d&1048576){d=J[a+184>>2];if(d)kc[d|0](a,g,J[a+356>>2]+1|0);d=K[a+196|0];if(d)H[g+9|0]=d;d=K[a+197|0];Wb:{if(!d){d=K[g+10|0];break Wb}H[g+10|0]=d}e=P(K[g+9|0],d);H[g+11|0]=e;d=J[g>>2];e=e&255;Xb:{if(e>>>0>=8){d=P(d,e>>>3|0);break Xb}d=P(d,e)+7>>>3|0}J[g+4>>2]=d}break na}Ld(a,59991);B()}Ld(a,60147);B()}Ld(a,60369);B()}Ld(a, +60758);B()}d=K[s+15|0];e=K[a+409|0];Yb:{if(!e){H[a+409|0]=d;if(d>>>0<=K[a+408|0])break Yb;Ld(a,60322);B()}if((d|0)!=(e|0))break a}Zb:{_b:{if(!K[a+398|0])break _b;g=J[a+208>>2];if(!(g&2))break _b;l=K[a+399|0];if(l>>>0<=5){h=0;n=fc-16|0;fc=n;j=J[a+356>>2]+1|0;if(!(!j|(s|0)==-4)){m=J[(l<<2)+68704>>2];d=J[s+4>>2];k=P(m,d);$b:{ac:{bc:{cc:{dc:{ec:{e=K[s+15|0];switch(e-1|0){case 3:break cc;case 1:break dc;case 0:break ec;default:break bc}}i=7;q=d-1|0;h=q&7;fc:{if(g&65536){f=-1;e=k-1&7;break fc}u=7;h=h^7; +i=0;f=1;e=0-k&7}if(!d)break ac;g=j+(k-1>>>3|0)|0;j=j+(q>>>3|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&1;d=0;if(!t)while(1){H[g|0]=K[g|0]&32639>>>7-e|l<>>7-e|l<>>7-e|l<>>0>2])continue;break}break ac}i=6;h=(d<<1)+ +6&6;gc:{if(g&65536){f=-2;e=(k<<1)+6&6;break gc}u=6;h=h^6;f=2;i=0;e=((k<<1)+6^-1)&6}if(!d)break ac;g=j+(k-1>>>2|0)|0;j=j+(d-1>>>2|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&3;d=0;if(!t)while(1){H[g|0]=K[g|0]&16191>>>6-e|l<>>6-e|l<>>6-e|l<>>0>2])continue;break}break ac}i=4;h=d<<2&4;hc:{if(g&65536){h=h^4;f=-4;e=(k^-1)<<2&4;break hc}u=4;i=0;f=4;e=k<<2&4}if(!d)break ac;g=j+(k-1>>>1|0)|0;j=j+(d-1>>>1|0)|0;d=(m|0)<=1?1:m;q=d&2147483646;r=d&1;m=0;t=(l|0)==6;while(1){l=K[j|0]>>>h&15;d=0;if(!t)while(1){H[g|0]=K[g|0]&3855>>>4-e|l<>>4-e|l<>>4-e|l<>>0>2])continue;break}break ac}if(!d)break $b;e=e>>>3|0;g=0-e|0;f=(m|0)<=1?1:m;u=f&2147483644;m=f&3;d=j+P(e,d-1|0)|0;i=j+P(e,k-1|0)|0;j=f>>>0<4;while(1){xc(n+8|0,d,e);f=0;if(!j)while(1){o=i;i=n+8|0;i=xc(xc(xc(xc(o,i,e)+g|0,i,e)+g|0,i,e)+g|0,i,e)+g|0;f=f+4|0;if((u|0)!=(f|0))continue;break}f=0;if(m)while(1){i=xc(i,n+8|0,e)+g|0;f=f+1|0;if((m|0)!=(f|0))continue;break}d=d+g|0;h=h+1|0;if(h>>>0>2])continue;break}}e=K[s+ +15|0]}J[s+4>>2]=k;d=e&255;ic:{if(d>>>0>=8){d=P(k,d>>>3|0);break ic}d=P(d,k)+7>>>3|0}J[s+8>>2]=d}fc=n+16|0}if(c)In(a,c,1);if(!b)break Zb;In(a,b,0);break Zb}if(b)In(a,b,-1);if(!c)break Zb;In(a,c,-1)}Vp(a);b=J[a+520>>2];if(!b)break d;kc[b|0](a,J[a+344>>2],K[a+399|0])}fc=s+16|0;return}Ld(a,59395);B()}Ld(a,60190);B()}Ld(a,60578);B()}function Waa(a){a=a|0;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,G=0,I=0,M=0,O=0,S=0,T= +0,U=0,W=0,X=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=Q(0),na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=Q(0),ua=0,va=0,wa=0,xa=0,ya=0,za=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,Na=0,Oa=Q(0);c=J[a>>2];d=kd(1,28);a:{if(!d)break a;J[d>>2]=c;c=kd(1,12);J[d+4>>2]=c;if(c){b=d;break a}uc(d)}y=J[a+40>>2];t=fc-256|0;fc=t;C=b;u=J[a+44>>2];J[b+12>>2]=u;J[b+8>>2]=y;b=J[b+4>>2];d=J[u+48>>2];J[b>>2]=d;c=J[u+52>>2];J[b+4>>2]=c;e=b;b=kd(1,P(P(c,d),840));J[e+8>> +2]=b;b:{c:{if(!b)break c;d:{e:{f=J[u+60>>2];if((f|0)>0)while(1){e=J[u+88>>2];b=J[J[u+56>>2]+(_<<2)>>2];v=J[J[C+4>>2]+8>>2]+P(b,840)|0;c=J[u+48>>2];d=(b|0)/(c|0)|0;k=J[u+28>>2];l=J[u+36>>2];c=b-P(c,d)|0;m=k+P(l,c)|0;g=J[y>>2];J[v>>2]=(g|0)<(m|0)?m:g;g=J[u+32>>2];m=J[u+40>>2];i=g+P(m,d)|0;h=J[y+4>>2];J[v+4>>2]=(h|0)<(i|0)?i:h;i=J[y+8>>2];c=k+P(l,c+1|0)|0;J[v+8>>2]=(c|0)>(i|0)?i:c;c=J[y+12>>2];d=g+P(m,d+1|0)|0;J[v+12>>2]=(c|0)<(d|0)?c:d;c=J[y+16>>2];J[v+16>>2]=c;d=kd(1,c<<5);J[v+20>>2]=d;if(!d)break e; +if((c|0)>0){ha=(e+P(b,1876)|0)+1872|0;M=0;while(1){e=J[ha>>2];w=J[v+20>>2]+(M<<5)|0;ea=P(M,48);d=ea+J[y+24>>2]|0;b=J[d>>2];f=b-1|0;l=(f+J[v>>2]|0)/(b|0)|0;J[w>>2]=l;d=J[d+4>>2];k=d-1|0;m=(k+J[v+4>>2]|0)/(d|0)|0;J[w+4>>2]=m;b=(f+J[v+8>>2]|0)/(b|0)|0;J[w+8>>2]=b;d=(k+J[v+12>>2]|0)/(d|0)|0;J[w+12>>2]=d;b=kd(1,P(b-l|0,d-m|0)<<2);J[w+24>>2]=b;if(!b)break e;O=e+P(M,1076)|0;d=J[O+4>>2];J[w+16>>2]=d;b=kd(1,P(d,124));J[w+20>>2]=b;if(!b)break e;if((d|0)>0){r=0;while(1){D=J[w+20>>2]+P(r,124)|0;k=(r^-1)+d|0; +m=-1<>2]>>k;J[D>>2]=b;c=m+J[w+4>>2]>>k;J[D+4>>2]=c;e=m+J[w+8>>2]>>k;J[D+8>>2]=e;f=J[w+12>>2];J[D+24>>2]=r?3:1;f=f+m>>k;J[D+12>>2]=f;z=15;A=15;if(H[O|0]&1){l=O+(r<<2)|0;z=J[l+944>>2];A=J[l+812>>2]}l=-1<>2]=(c|0)!=(f|0)?(l&(f+(1<>z:0;c=-1<>2]=(b|0)!=(e|0)?(c&(e+(1<>A:0;h=d-r|0;X=1<>1;G=G+1>>1;z=z-1|0}b=J[O+12>>2];F=(b|0)>(z|0)?z:b;na=-1<>2];I=(b|0)>(A|0)?A:b;qa=1<>2]=i;f:{if(!r){g=m+J[w+8>>2]>>k;q=m+J[w+4>>2]>>k;f=m+J[w>>2]>>k;e=J[w+12>>2];d=m;b=k;break f}b=X+(((l&2147483645)==1)<>2]>>h;e=X+(((l&2147483646)==2)<>2]>>h;f=b+J[w>>2]>>h;d=J[w+12>>2];b=h}J[x+28>>2]=f;J[x+40>>2]=d+e>>b;J[x+36>>2]=g;J[x+32>>2]=q;b=O+((r?c+aa|0:0)<<3)|0;d=J[b+32>>2];b=J[b+28>>2];Na=x,Oa=Q(Dv((J[(ea+J[y+24>>2]|0)+24>>2]+(r?J[O+20>>2]?i>>>0>2?2:1:0:0)|0)-b|0)*(+(d|0)*4.8828125E-4+1)),N[Na+56>>2]= +Oa;J[x+52>>2]=(b+J[O+804>>2]|0)-1;d=J[D+16>>2];b=P(d,J[D+20>>2]);c=kd(1,P(b,36));J[x+48>>2]=c;if(!c)break e;B=0;if((b|0)>0)while(1){o=J[x+48>>2]+P(B,36)|0;b=(B|0)/(d|0)|0;d=B-P(b,d)|0;c=(d<>2];c=(c|0)>(e|0)?c:e;J[o>>2]=c;e=(b<>2];e=(e|0)>(f|0)?e:f;J[o+4>>2]=e;f=J[x+36>>2];d=(d+1<(f|0)?f:d;J[o+8>>2]=d;f=J[x+40>>2];b=(b+1<(f|0)?f:b;J[o+12>>2]=b;ra=c>>I;f=(d+ua>>I)-ra<>I;J[o+16>>2]=f;oa=e>>F;e=(b+na>>F)-oa<>F;J[o+20>>2]=e;n=P(e, +f);b=kd(1,P(n,15448));J[o+24>>2]=b;if(!b)break e;g:{h:{p=kd(1,16);if(p){J[p+4>>2]=e;J[p>>2]=f;J[t+128>>2]=f;J[t>>2]=e;j=0;d=e;c=f;b=0;while(1){s=b;b=b+1|0;i=b<<2;g=(d+1|0)/2|0;J[i+t>>2]=g;q=i+(t+128|0)|0;i=(c+1|0)/2|0;J[q>>2]=i;q=P(c,d);j=q+j|0;d=g;c=i;if((q|0)>1)continue;break}J[p+8>>2]=j;i:{if(!j)break i;i=kd(1,j<<4);J[p+12>>2]=i;if(!i)break i;c=i;if(!s)break h;S=0;b=(n<<4)+c|0;d=b;while(1){g=S<<2;T=J[g+t>>2];j:{if((T|0)<=0)break j;ba=T-1|0;q=0;k:{n=J[g+(t+128|0)>>2];if((n|0)<=0){g=0;if((T|0)!= +1){W=T&-2;while(1){pa=(g|0)==(ba|0);g=g+2|0;b=pa?d:b;d=b;q=q+2|0;if((W|0)!=(q|0))continue;break}}if(T&1)break k;d=b;break j}while(1){g=b;b=n;while(1){l:{J[c>>2]=d;if((b|0)==1){c=c+16|0;d=d+16|0;break l}J[c+16>>2]=d;d=d+16|0;c=c+32|0;W=(b|0)>2;b=b-2|0;if(W)continue}break}W=((q|0)==(ba|0)|q)&1;b=W?d:g+(n<<4)|0;d=W?d:g;q=q+1|0;if((T|0)!=(q|0))continue;break}break j}q=(n<<4)+b|0;n=((g|0)==(ba|0)|g)&1;g=n?d:q;d=n?d:b;b=g}S=S+1|0;if((s|0)!=(S|0))continue;break}break h}uc(p);f=J[o+16>>2];e=J[o+20>>2]}p= +0;break g}J[c>>2]=0;if((j|0)<=0)break g;b=0;d=0;if(j-1>>>0>=3){s=j&-4;g=0;while(1){c=d<<4;n=c+i|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;n=i+(c|16)|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;n=i+(c|32)|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;c=i+(c|48)|0;J[c+12>>2]=0;J[c+4>>2]=999;J[c+8>>2]=0;d=d+4|0;g=g+4|0;if((s|0)!=(g|0))continue;break}}g=j&3;if(!g)break g;while(1){c=i+(d<<4)|0;J[c+12>>2]=0;J[c+4>>2]=999;J[c+8>>2]=0;d=d+1|0;b=b+1|0;if((g|0)!=(b|0))continue;break}}J[o+28>>2]=p;m:{n:{p=kd(1,16);if(p){J[p+ +4>>2]=e;J[p>>2]=f;J[t+128>>2]=f;J[t>>2]=e;j=0;d=e;c=f;b=0;while(1){s=b;b=b+1|0;i=b<<2;g=(d+1|0)/2|0;J[i+t>>2]=g;q=i+(t+128|0)|0;i=(c+1|0)/2|0;J[q>>2]=i;n=P(c,d);j=n+j|0;d=g;c=i;if((n|0)>1)continue;break}J[p+8>>2]=j;o:{if(!j)break o;i=kd(1,j<<4);J[p+12>>2]=i;if(!i)break o;c=i;if(!s)break n;S=0;b=(P(e,f)<<4)+c|0;d=b;while(1){g=S<<2;T=J[g+t>>2];p:{if((T|0)<=0)break p;ba=T-1|0;q=0;q:{n=J[g+(t+128|0)>>2];if((n|0)<=0){g=0;if((T|0)!=1){W=T&-2;while(1){pa=(g|0)==(ba|0);g=g+2|0;b=pa?d:b;d=b;q=q+2|0;if((W| +0)!=(q|0))continue;break}}if(T&1)break q;d=b;break p}while(1){g=b;b=n;while(1){r:{J[c>>2]=d;if((b|0)==1){c=c+16|0;d=d+16|0;break r}J[c+16>>2]=d;d=d+16|0;c=c+32|0;W=(b|0)>2;b=b-2|0;if(W)continue}break}W=((q|0)==(ba|0)|q)&1;b=W?d:g+(n<<4)|0;d=W?d:g;q=q+1|0;if((T|0)!=(q|0))continue;break}break p}q=(n<<4)+b|0;n=((g|0)==(ba|0)|g)&1;g=n?d:q;d=n?d:b;b=g}S=S+1|0;if((s|0)!=(S|0))continue;break}break n}uc(p);f=J[o+16>>2];e=J[o+20>>2]}p=0;break m}J[c>>2]=0;if((j|0)<=0)break m;b=0;d=0;if(j-1>>>0>=3){s=j&-4;g= +0;while(1){c=d<<4;n=c+i|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;n=i+(c|16)|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;n=i+(c|32)|0;J[n+12>>2]=0;J[n+4>>2]=999;J[n+8>>2]=0;c=i+(c|48)|0;J[c+12>>2]=0;J[c+4>>2]=999;J[c+8>>2]=0;d=d+4|0;g=g+4|0;if((s|0)!=(g|0))continue;break}}g=j&3;if(!g)break m;while(1){c=i+(d<<4)|0;J[c+12>>2]=0;J[c+4>>2]=999;J[c+8>>2]=0;d=d+1|0;b=b+1|0;if((g|0)!=(b|0))continue;break}}J[o+32>>2]=p;e=P(e,f);if((e|0)>0){g=J[o+24>>2];d=0;while(1){b=g+P(d,15448)|0;i=(d|0)/(f|0)|0;c=ra+(d-P(i, +f)|0)<>2];J[b>>2]=(c|0)>(n|0)?c:n;i=i+oa|0;n=i<>2];J[b+4>>2]=(n|0)>(s|0)?n:s;n=J[o+8>>2];c=c+qa|0;J[b+8>>2]=(c|0)>(n|0)?n:c;q=b;b=J[o+12>>2];c=i+1<>2]=(b|0)<(c|0)?b:c;d=d+1|0;if((e|0)!=(d|0))continue;break}}B=B+1|0;d=J[D+16>>2];if((B|0)<(P(d,J[D+20>>2])|0))continue;break}if(J[D+24>>2]>(l|0))continue;break}d=J[w+16>>2];r=r+1|0;if((d|0)>(r|0))continue;break}c=J[v+16>>2]}M=M+1|0;if((M|0)<(c|0))continue;break}f=J[u+60>>2]}_=_+1|0;if((_|0)<(f|0))continue;break}k=J[y+16>>2]; +if((k|0)<=0)break b;m=J[y+24>>2];if((f|0)<=0){e=0;while(1){b=m+P(e,48)|0;d=kd(1,0);J[b+44>>2]=d;if(!d)break d;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;e=e+1|0;if((k|0)!=(e|0))continue;break}break b}i=J[u+56>>2];s=J[C+4>>2];h=J[s+8>>2];e=0;w=(f|0)==1;while(1){l=e<<5;c=l+J[(h+P(J[i>>2],840)|0)+20>>2]|0;b=J[c+12>>2];g=J[c+8>>2];d=J[c+4>>2];c=J[c>>2];if(!w){j=J[s+8>>2];q=1;while(1){n=P(J[i+(q<<2)>>2],840);o=J[(l+J[(n+h|0)+20>>2]|0)+12>>2];b=b>>>0>o>>>0?b:o;n=l+J[(j+n|0)+20>>2]|0;o=J[n+8>>2]; +g=g>>>0>o>>>0?g:o;o=J[n+4>>2];d=d>>>0>o>>>0?o:d;n=J[n>>2];c=c>>>0>n>>>0?n:c;q=q+1|0;if((q|0)!=(f|0))continue;break}}l=m+P(e,48)|0;g=g-c|0;b=b-d|0;n=kd(1,P(g,b)<<2);J[l+44>>2]=n;if(!n)break d;J[l+20>>2]=d;J[l+16>>2]=c;J[l+12>>2]=b;J[l+8>>2]=g;e=e+1|0;if((k|0)!=(e|0))continue;break}break b}VO(C);break c}VO(C);if(!e)break c;d=0;while(1){b=J[y+24>>2]+P(d,48)|0;c=J[b+44>>2];if(c){uc(c);J[b+44>>2]=0}d=d+1|0;if((e|0)!=(d|0))continue;break}}J[J[C>>2]+20>>2]=1}fc=t+256|0;b=J[a+44>>2];d=J[b+60>>2];s:{if(J[J[C>> +2]+20>>2]){if((d|0)<=0)break s;while(1){d=J[a+28>>2];c=J[J[b+56>>2]+(ka<<2)>>2]<<2;b=d+c|0;e=J[b>>2];if(e){uc(e);J[b>>2]=0;d=J[a+28>>2]}J[d+c>>2]=0;ka=ka+1|0;b=J[a+44>>2];if((ka|0)>2])continue;break}break s}if((d|0)>0)while(1){D=J[J[b+56>>2]+(ka<<2)>>2];T=D<<2;d=J[T+J[a+28>>2]>>2];c=J[T+J[a+32>>2]>>2];M=0;J[C+24>>2]=D;ba=J[J[C+4>>2]+8>>2];f=ba+P(D,840)|0;J[C+16>>2]=f;e=J[C+12>>2];J[C+20>>2]=J[e+88>>2]+P(D,1876);l=J[C+8>>2];k=J[C>>2];b=kd(1,12);t:{if(!b){Xaa(0,d,c,D,f);break t}J[b+8>>2]=e; +J[b+4>>2]=l;J[b>>2]=k;Xaa(b,d,c,D,f);uc(b)}b=J[C>>2];d=kd(1,8429596);u:{if(!d){J[b+20>>2]=1;d=0;break u}J[d>>2]=b;c=kd(1,156);J[d+4>>2]=c;v:{if(!c){J[b+20>>2]=1;break v}e=kd(1,28);J[d+8>>2]=e;if(e){c=0;while(1){l=(c>>>4&1)+(c>>>6&1)|0;e=(((c>>>3&1)+(c&1)|0)+(c>>>1&1)|0)+(c>>>2&1)|0;b=8;w:{x:switch((c>>>5&1)+(c>>>7|0)|0){case 0:b=3;y:switch(l|0){case 0:b=e?(e|0)==1?1:2:0;break w;case 1:break w;default:break y}b=4;break w;case 1:break x;default:break w}b=7;if(l)break w;b=e?6:5}J[(d+(c<<2)|0)+12>>2]= +b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){l=(c>>>4&1)+(c>>>6&1)|0;e=(((c>>>3&1)+(c&1)|0)+(c>>>1&1)|0)+(c>>>2&1)|0;b=8;z:{A:switch((c>>>5&1)+(c>>>7|0)|0){case 1:b=7;if(l)break z;b=e?6:5;break z;case 0:break A;default:break z}b=3;B:switch(l|0){case 0:b=e?(e|0)==1?1:2:0;break z;case 1:break z;default:break B}b=4}J[(d+(c<<2|1024)|0)+12>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){l=(c>>>5&1)+(c>>>7|0)|0;e=(((c>>>3&1)+(c&1)|0)+(c>>>1&1)|0)+(c>>>2&1)|0;b=8;C:{D:switch((c>>>4&1)+(c>>> +6&1)|0){case 1:b=7;if(l)break C;b=e?6:5;break C;case 0:break D;default:break C}b=3;E:switch(l|0){case 0:b=e?(e|0)==1?1:2:0;break C;case 1:break C;default:break E}b=4}J[(d+(c<<2|2048)|0)+12>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){e=(((c>>>5&1)+(c>>>7|0)|0)+(c>>>6&1)|0)+(c>>>4&1)|0;b=8;F:{G:switch((((c>>>3&1)+(c&1)|0)+(c>>>1&1)|0)+(c>>>2&1)|0){case 2:b=e?7:6;break F;case 1:b=e?(e|0)==1?4:5:3;break F;case 0:break G;default:break F}b=e?(e|0)==1?1:2:0}J[(d+(c<<2|3072)|0)+12>>2]=b;c=c+1| +0;if((c|0)!=256)continue;break}c=0;while(1){b=c<<4;e=b&272;l=b&1088;e=((e|0)==16|(l|0)==64)-((e|0)==272|(l|0)==1088)|0;g=0-e|0;k=e;e=b&544;b=b&2176;l=((e|0)==32|(b|0)==128)-((e|0)==544|(b|0)==2176)|0;e=(l|0)<0?g:k;b=9;H:{I:{J:{k=l;l=l>>31;switch((k^l)-l|0){case 1:break I;case 0:break J;default:break H}}b=e?10:9;break H}b=(e|0)==-1?11:e?13:12}J[(d+(c<<2)|0)+4108>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;b=d+5132|0;while(1){e=c<<2;l=c&8192;J[e+b>>2]=l?16:c&254?15:14;J[b+(e|4)>>2]=l?16:15;c=c+2| +0;if((c|0)!=2048)continue;break}c=0;while(1){b=d+(c<<2)|0;e=b+13332|0;J[e>>2]=16;J[e+4>>2]=16;b=b+13324|0;J[b>>2]=16;J[b+4>>2]=16;c=c+4|0;if((c|0)!=2048)continue;break}c=0;while(1){b=c<<4;l=b&272;k=b&1088;e=(l|0)==272|(k|0)==1088;l=(l|0)==16|(k|0)==64;k=(d+(c<<2)|0)+21516|0;m=b&544;b=b&2176;g=(m|0)==32|(b|0)==128;m=(m|0)==544|(b|0)==2176;i=g^m;K:{if(!i){b=0;if(!(e^l))break K}b=(m|g^-1)&(i|(e|!l))}J[k>>2]=b;c=c+1|0;if((c|0)!=256)continue;break}c=0;while(1){b=d+(c<<2)|0;l=b+23052|0;U=+(c|0)*.015625; +fa=U*U;ia=V(fa*64+.5)*.015625*8192;L:{if(R(ia)<2147483648){e=~~ia;break L}e=-2147483648}J[l>>2]=(e|0)>0?e:0;l=b+24076|0;ia=U+-1;ia=ia*ia;la=V(ia*64+.5)*.015625*8192;M:{if(R(la)<2147483648){e=~~la;break M}e=-2147483648}J[l>>2]=(e|0)>0?e:0;l=b+22540|0;la=fa;fa=U+-1.5;la=V((la-fa*fa)*64+.5)*.015625*8192;N:{if(R(la)<2147483648){e=~~la;break N}e=-2147483648}J[l>>2]=(e|0)>0?e:0;e=b+23564|0;U=c&64?fa:U+-.5;U=V((ia-U*U)*64+.5)*.015625*8192;O:{if(R(U)<2147483648){b=~~U;break O}b=-2147483648}J[e>>2]=(b|0)> +0?b:0;c=c+1|0;if((c|0)!=128)continue;break}break u}J[b+20>>2]=1;uc(c)}uc(d);d=0}n=d;qa=J[C+20>>2];e=J[f+16>>2];if((e|0)>0){w=f;Aa=n+4231204|0;Ba=n+4227100|0;Ca=n+4222996|0;ua=n+4218892|0;while(1){x=J[w+20>>2]+(M<<5)|0;f=J[x+16>>2];if((f|0)>0){_=0;ra=P(M,1076);while(1){oa=P(_,124);y=oa+J[x+20>>2]|0;e=J[y+24>>2];if((e|0)>0){f=J[y+20>>2];c=J[y+16>>2];X=0;while(1){if((P(c,f)|0)>0){A=y+(X<<5)|0;ha=0;while(1){G=J[A+48>>2]+P(ha,36)|0;if((P(J[G+20>>2],J[G+16>>2])|0)>0){m=J[qa+1872>>2];ea=0;while(1){l=J[A+ +44>>2];t=J[G+24>>2]+P(ea,15448)|0;v=J[t+8>>2]-J[t>>2]|0;b=m+ra|0;f=J[b+16>>2];m=J[b+808>>2];p=J[n+4>>2];S=J[n+8>>2];g=J[t+12>>2];h=J[t+4>>2];u=g-h|0;P:{Q:{if((u|0)<0)break Q;I=0;if((v|0)<0)break P;c=u+1|0;k=c&3;d=(v<<2)+4|0;b=0;e=0;if(u>>>0>=3){s=c&-4;i=0;while(1){c=P(e,4104);Ac(c+ua|0,0,d);Ac(c+Ca|0,0,d);Ac(c+Ba|0,0,d);Ac(c+Aa|0,0,d);e=e+4|0;i=i+4|0;if((s|0)!=(i|0))continue;break}}if(!k)break Q;while(1){Ac(ua+P(e,4104)|0,0,d);e=e+1|0;b=b+1|0;if((k|0)!=(b|0))continue;break}}if((v|0)<=0){I=0;break P}I= +1;if((u|0)<=0)break P;s=u&-8;k=u&7;i=0;g=g+(h^-1)>>>0<7;while(1){b=0;h=0;if(!g)while(1){e=i<<2;d=n+24588|0;c=b<<12;J[e+(d+c|0)>>2]=0;J[e+(d+(c|4096)|0)>>2]=0;J[e+(d+(c|8192)|0)>>2]=0;J[e+(d+(c|12288)|0)>>2]=0;J[e+(d+(c|16384)|0)>>2]=0;J[e+(d+(c|20480)|0)>>2]=0;J[e+(d+(c|24576)|0)>>2]=0;J[e+(d+(c|28672)|0)>>2]=0;b=b+8|0;h=h+8|0;if((s|0)!=(h|0))continue;break}e=0;if(k)while(1){J[((n+(b<<12)|0)+(i<<2)|0)+24588>>2]=0;b=b+1|0;e=e+1|0;if((k|0)!=(e|0))continue;break}i=i+1|0;if((v|0)!=(i|0))continue;break}}b= +J[t+16>>2];J[p+148>>2]=2650496;J[p+144>>2]=2650496;J[p+140>>2]=2650496;J[p+136>>2]=2650496;J[p+132>>2]=2650496;J[p+128>>2]=2650496;J[p+124>>2]=2650496;J[p+120>>2]=2650496;J[p+116>>2]=2650496;J[p+112>>2]=2650496;J[p+108>>2]=2650496;J[p+104>>2]=2650496;J[p+100>>2]=2650496;J[p+88>>2]=2650496;J[p+84>>2]=2650496;J[p+80>>2]=2650496;J[p+76>>2]=2650496;J[p+72>>2]=2650496;J[p+68>>2]=2650496;J[p- -64>>2]=2650496;J[p+60>>2]=2650496;J[p+56>>2]=2650496;J[p+52>>2]=2650496;J[p+48>>2]=2650496;J[p+44>>2]=2650496; +J[p+40>>2]=2650496;J[p+36>>2]=2650496;J[p+32>>2]=2650496;J[p+28>>2]=2650496;J[p+92>>2]=2650592;J[p+96>>2]=2651968;J[p+24>>2]=2650624;c=J[t+36>>2];if((c|0)>0){Da=p+24|0;W=(u|0)<=0;Ea=W|(v|0)<=0;E=2;pa=(l|0)==2?256:(l|0)==1?512:l<<8;F=u-1|0;O=f&8;Fa=f&32;z=(b+m|0)-1|0;aa=0;Ga=f&1;Ha=!(f&2);while(1){b=t+P(aa,24)|0;wa=b;e=J[b+44>>2];d=J[b+48>>2];na=(E|0)<2&(J[t+16>>2]-5|0)>=(z|0)&Ga;R:{if(na){J[S+12>>2]=0;J[S+8>>2]=e;J[S+20>>2]=d;J[S+4>>2]=0;H[S|0]=0;break R}J[p+16>>2]=d;J[p+152>>2]=Da;J[p+12>>2]=d;J[p+ +20>>2]=d+e;i=1;b=65280;S:{if(!e){h=16711680;break S}h=K[d|0]<<16;J[p>>2]=h;l=d+1|0;T:{if((e|0)!=1){f=K[d+1|0];if(K[d|0]!=255)break T;if(f>>>0>143)break S;J[p+12>>2]=l;b=f<<9;i=0;break S}f=255;if(K[d|0]==255)break S}J[p+12>>2]=l;b=f<<8}J[p+8>>2]=i;J[p+4>>2]=32768;J[p>>2]=b+h<<7}if(J[wa+40>>2]>0){Ia=na|Ha;va=0;while(1){U:{V:{W:switch(E|0){case 0:if(!I|W)break U;b=1<>1|b;B=0-r|0;d=0;if(!na)break V;l=J[n+8>>2];k=0;while(1){b=k;s=b|3;k=b+4|0;g=0;while(1){d=g;g=d+1|0;c=b;while(1){X:{if(!O){f=c+ +1|0;e=((n+P(f,4104)|0)+(g<<2)|0)+4218892|0;m=J[e>>2];break X}f=c+1|0;e=((n+P(f,4104)|0)+(g<<2)|0)+4218892|0;m=J[e>>2];m=(c|0)==(s|0)|(c|0)==(F|0)?m&-1095:m}if(!(!(m&255)|m&20480)){i=J[l+4>>2];Y:{if(i){h=K[l|0];break Y}J[l+4>>2]=8;m=J[l+12>>2];if((m|0)!=J[l+8>>2]){i=8;if(K[l|0]==255){J[l+4>>2]=7;i=7}h=K[m+J[l+20>>2]|0];J[l+12>>2]=m+1;H[l|0]=h;break Y}h=255;H[l|0]=255;i=8}i=i-1|0;J[l+4>>2]=i;m=h&255;if(m>>>i&1){q=d<<2;j=(q+(n+(c<<12)|0)|0)+24588|0;Z:{if(i)break Z;J[l+4>>2]=8;c=J[l+12>>2];if((c|0)!= +J[l+8>>2]){i=8;if((m|0)==255){J[l+4>>2]=7;i=7}h=K[c+J[l+20>>2]|0];J[l+12>>2]=c+1;H[l|0]=h;break Z}h=255;H[l|0]=255;i=8}c=i-1|0;J[l+4>>2]=c;i=j;j=(h&255)>>>c&1;J[i>>2]=j?B:r;c=e-4108|0;J[c>>2]=J[c>>2]|2;c=e-4100|0;J[c>>2]=J[c>>2]|4;J[e+4100>>2]=J[e+4100>>2]|1;J[e+4108>>2]=J[e+4108>>2]|8;c=e-4104|0;m=J[c>>2];J[c>>2]=m|64;o=J[e+4104>>2];J[e+4104>>2]=o|16;i=(q+(n+P(f,4104)|0)|0)+4218892|0;h=J[i>>2];J[i>>2]=h|32;q=J[e+4>>2];J[e+4>>2]=q|128;if(j){J[c>>2]=m|1088;J[e+4104>>2]=o|272;J[i>>2]=h|544;J[e+4>>2]= +q|2176}c=J[e>>2]|4096}else c=J[e>>2];J[e>>2]=c|16384}if(f>>>0>>0){c=f;if((u|0)>(c|0))continue}break}if((g|0)!=(v|0))continue;break}if((k|0)<(u|0))continue;break}break U;case 2:j=J[n+4>>2];if(!(!I|W)){d=0;b=1<>1|b;Ja=0-xa|0;Ka=j+96|0;La=j+92|0;while(1){s=d+4|0;$=(s|0)<(u|0);Y=$?s:u;da=d|2;B=d|3;Ma=n+P(d|1,4104)|0;m=0;while(1){ca=1;q=m;m=m+1|0;e=0;_:{$:{if((u|0)<=(B|0))break $;b=m<<2;c=J[(b+Ma|0)+4218892>>2]&20735;aa:{if(O){if(L[(b+(n+P(B,4104)|0)|0)+4218892>>1]&20735|(L[(b+(n+P(da,4104)| +0)|0)+4218892>>1]&20735|c))break $;if(!(L[(b+(n+P(s,4104)|0)|0)+4218892>>1]&20665))break aa;break $}if(L[(b+(n+P(da,4104)|0)|0)+4218892>>1]&20735|c|(L[(b+(n+P(B,4104)|0)|0)+4218892>>1]&20735|L[(b+(n+P(s,4104)|0)|0)+4218892>>1]&20735))break $}J[j+152>>2]=La;f=J[j+92>>2];c=J[f>>2];b=J[j+4>>2]-c|0;J[j+4>>2]=b;e=J[j>>2];ba:{if(e>>>16>>>0>=c>>>0){e=e-(c<<16)|0;J[j>>2]=e;l=J[f+4>>2];if(b&32768)break ba;l=J[f+4>>2];g=b>>>0>>0;J[j+92>>2]=J[f+(g?12:8)>>2];f=J[j+8>>2];while(1){if(!f){f=8;i=65280;c=J[j+12>> +2];k=J[j+20>>2];ca:{if((c|0)==(k|0))break ca;h=k;k=c+1|0;da:{if((h|0)!=(k|0)){h=K[c+1|0];if(K[c|0]!=255)break da;if(h>>>0>143)break ca;J[j+12>>2]=k;i=h<<9;f=7;break ca}h=255;if(K[c|0]==255)break ca}J[j+12>>2]=k;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}l=g?1-l|0:l;break ba}l=J[f+4>>2];J[j+4>>2]=c;g=b>>>0>>0;J[j+92>>2]=J[f+(g?8:12)>>2];f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];k=J[j+20>>2];ea:{if((b|0)==(k|0))break ea;h=k;k=b+ +1|0;fa:{if((h|0)!=(k|0)){h=K[b+1|0];if(K[b|0]!=255)break fa;if(h>>>0>143)break ea;J[j+12>>2]=k;i=h<<9;f=7;break ea}h=255;if(K[b|0]==255)break ea}J[j+12>>2]=k;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;l=g?l:1-l|0}if(!l)break _;J[j+152>>2]=Ka;k=J[j+96>>2];c=J[k>>2];b=b-c|0;J[j+4>>2]=b;ga:{if(e>>>16>>>0>=c>>>0){e=e-(c<<16)|0;J[j>>2]=e;l=J[k+4>>2];if(b&32768)break ga;l=J[k+4>>2];o=b>>>0>>0;k=J[(o?12:8)+k>>2];J[j+96>>2]=k;f=J[j+8>>2];while(1){if(!f){f= +8;i=65280;c=J[j+12>>2];g=J[j+20>>2];ha:{if((c|0)==(g|0))break ha;h=g;g=c+1|0;ia:{if((h|0)!=(g|0)){h=K[c+1|0];if(K[c|0]!=255)break ia;if(h>>>0>143)break ha;J[j+12>>2]=g;i=h<<9;f=7;break ha}h=255;if(K[c|0]==255)break ha}J[j+12>>2]=g;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}l=o?1-l|0:l;break ga}l=J[k+4>>2];J[j+4>>2]=c;o=b>>>0>>0;k=J[(o?8:12)+k>>2];J[j+96>>2]=k;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];g=J[j+20>>2];ja:{if((b|0)== +(g|0))break ja;h=g;g=b+1|0;ka:{if((h|0)!=(g|0)){h=K[b+1|0];if(K[b|0]!=255)break ka;if(h>>>0>143)break ja;J[j+12>>2]=g;i=h<<9;f=7;break ja}h=255;if(K[b|0]==255)break ja}J[j+12>>2]=g;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;l=o?l:1-l|0}c=J[k>>2];f=b-c|0;J[j+4>>2]=f;g=l<<1;la:{if(e>>>16>>>0>=c>>>0){b=e-(c<<16)|0;J[j>>2]=b;e=J[k+4>>2];if(f&32768)break la;l=J[k+4>>2];o=c>>>0>f>>>0;J[j+96>>2]=J[(o?12:8)+k>>2];e=J[j+8>>2];while(1){if(!e){e= +8;i=65280;c=J[j+12>>2];k=J[j+20>>2];ma:{if((c|0)==(k|0))break ma;h=k;k=c+1|0;na:{if((h|0)!=(k|0)){h=K[c+1|0];if(K[c|0]!=255)break na;if(h>>>0>143)break ma;J[j+12>>2]=k;i=h<<9;e=7;break ma}h=255;if(K[c|0]==255)break ma}J[j+12>>2]=k;i=h<<8}b=b+i|0}e=e-1|0;J[j+8>>2]=e;b=b<<1;J[j>>2]=b;f=f<<1;J[j+4>>2]=f;if(f>>>0<32768)continue;break}e=o?1-l|0:l;break la}l=J[k+4>>2];J[j+4>>2]=c;o=c>>>0>f>>>0;J[j+96>>2]=J[(o?8:12)+k>>2];f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];k=J[j+20>>2];oa:{if((b|0)==(k| +0))break oa;h=k;k=b+1|0;pa:{if((h|0)!=(k|0)){h=K[b+1|0];if(K[b|0]!=255)break pa;if(h>>>0>143)break oa;J[j+12>>2]=k;i=h<<9;f=7;break oa}h=255;if(K[b|0]==255)break oa}J[j+12>>2]=k;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}e=o?l:1-l|0}e=e|g;ca=0}ya=d+e|0;l=ya;if((Y|0)<=(l|0))break _;while(1){e=l;l=e+1|0;za=n+P(l,4104)|0;r=(za+(m<<2)|0)+4218892|0;f=J[r>>2];i=(O?(e|0)==(B|0)|(e|0)==(F|0):0)&1?f&-1095:f;h=J[n+4>>2];qa:{ra:{sa:{if(!((e|0)!=(ya|0)| +ca)){f=J[h>>2];c=J[h+4>>2];break sa}if(i&20480)break qa;g=h+(J[(n+((pa|i&255)<<2)|0)+12>>2]<<2)|0;J[h+152>>2]=g+24;k=J[g+24>>2];b=J[k>>2];c=J[h+4>>2]-b|0;J[h+4>>2]=c;f=J[h>>2];ta:{if(f>>>16>>>0>=b>>>0){f=f-(b<<16)|0;J[h>>2]=f;o=J[k+4>>2];if(c&32768)break ta;Z=J[k+4>>2];ja=b>>>0>c>>>0;J[g+24>>2]=J[k+(ja?12:8)>>2];b=J[h+8>>2];while(1){if(!b){b=8;k=65280;g=J[h+12>>2];o=J[h+20>>2];ua:{if((g|0)==(o|0))break ua;ga=g+1|0;va:{if((ga|0)!=(o|0)){o=K[g+1|0];if(K[g|0]!=255)break va;if(o>>>0>143)break ua;J[h+ +12>>2]=ga;k=o<<9;b=7;break ua}o=255;if(K[g|0]==255)break ua}J[h+12>>2]=ga;k=o<<8}f=f+k|0}b=b-1|0;J[h+8>>2]=b;f=f<<1;J[h>>2]=f;c=c<<1;J[h+4>>2]=c;if(c>>>0<32768)continue;break}o=ja?1-Z|0:Z;break ta}Z=J[k+4>>2];J[h+4>>2]=b;ja=b>>>0>c>>>0;J[g+24>>2]=J[k+(ja?8:12)>>2];c=J[h+8>>2];while(1){if(!c){c=8;k=65280;g=J[h+12>>2];o=J[h+20>>2];wa:{if((g|0)==(o|0))break wa;ga=g+1|0;xa:{if((ga|0)!=(o|0)){o=K[g+1|0];if(K[g|0]!=255)break xa;if(o>>>0>143)break wa;J[h+12>>2]=ga;k=o<<9;c=7;break wa}o=255;if(K[g|0]==255)break wa}J[h+ +12>>2]=ga;k=o<<8}f=f+k|0}c=c-1|0;J[h+8>>2]=c;f=f<<1;J[h>>2]=f;b=b<<1;J[h+4>>2]=b;if(b>>>0<32768)continue;break}c=b;o=ja?Z:1-Z|0}if(!o)break ra}Z=q<<2;ga=(Z+(n+(e<<12)|0)|0)+24588|0;ja=n+((i>>>4&255)<<2)|0;k=h+(J[ja+4108>>2]<<2)|0;J[h+152>>2]=k+24;e=J[k+24>>2];b=J[e>>2];c=c-b|0;J[h+4>>2]=c;ya:{if(f>>>16>>>0>=b>>>0){i=f-(b<<16)|0;J[h>>2]=i;g=J[e+4>>2];if(c&32768)break ya;o=J[e+4>>2];sa=b>>>0>c>>>0;J[k+24>>2]=J[e+(sa?12:8)>>2];f=J[h+8>>2];while(1){if(!f){f=8;g=65280;b=J[h+12>>2];e=J[h+20>>2];za:{if((b| +0)==(e|0))break za;k=e;e=b+1|0;Aa:{if((k|0)!=(e|0)){k=K[b+1|0];if(K[b|0]!=255)break Aa;if(k>>>0>143)break za;J[h+12>>2]=e;g=k<<9;f=7;break za}k=255;if(K[b|0]==255)break za}J[h+12>>2]=e;g=k<<8}i=g+i|0}f=f-1|0;J[h+8>>2]=f;i=i<<1;J[h>>2]=i;c=c<<1;J[h+4>>2]=c;if(c>>>0<32768)continue;break}g=sa?1-o|0:o;break ya}i=J[e+4>>2];J[h+4>>2]=b;sa=b>>>0>c>>>0;J[k+24>>2]=J[e+(sa?8:12)>>2];c=J[h+8>>2];while(1){if(!c){c=8;g=65280;e=J[h+12>>2];k=J[h+20>>2];Ba:{if((e|0)==(k|0))break Ba;o=e+1|0;Ca:{if((o|0)!=(k|0)){k= +K[e+1|0];if(K[e|0]!=255)break Ca;if(k>>>0>143)break Ba;J[h+12>>2]=o;g=k<<9;c=7;break Ba}k=255;if(K[e|0]==255)break Ba}J[h+12>>2]=o;g=k<<8}f=f+g|0}c=c-1|0;J[h+8>>2]=c;f=f<<1;J[h>>2]=f;b=b<<1;J[h+4>>2]=b;if(b>>>0<32768)continue;break}g=sa?i:1-i|0}b=g;k=(b|0)==J[ja+21516>>2];J[ga>>2]=k?xa:Ja;b=r-4108|0;J[b>>2]=J[b>>2]|2;b=r-4100|0;J[b>>2]=J[b>>2]|4;J[r+4100>>2]=J[r+4100>>2]|1;J[r+4108>>2]=J[r+4108>>2]|8;b=r-4104|0;c=J[b>>2];J[b>>2]=c|64;g=J[r+4104>>2];J[r+4104>>2]=g|16;e=(Z+za|0)+4218892|0;f=J[e>>2]; +J[e>>2]=f|32;i=J[r+4>>2];J[r+4>>2]=i|128;if(!k){J[b>>2]=c|1088;J[r+4104>>2]=g|272;J[e>>2]=f|544;J[r+4>>2]=i|2176}f=J[r>>2]|4096;break qa}f=J[r>>2]}J[r>>2]=f&-16385;if((l|0)<(Y|0))continue;break}}if((m|0)!=(v|0))continue;break}d=s;if($)continue;break}}if(!Fa)break U;J[j+152>>2]=j+96;g=J[j+96>>2];c=J[g>>2];b=J[j+4>>2]-c|0;J[j+4>>2]=b;e=J[j>>2];Da:{if(e>>>16>>>0>>0){J[j+4>>2]=c;g=J[(b>>>0>>0?8:12)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];d=J[j+20>>2];Ea:{if((b|0)== +(d|0))break Ea;l=d;d=b+1|0;Fa:{if((l|0)!=(d|0)){h=K[b+1|0];if(K[b|0]!=255)break Fa;if(h>>>0>143)break Ea;J[j+12>>2]=d;i=h<<9;f=7;break Ea}h=255;if(K[b|0]==255)break Ea}J[j+12>>2]=d;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;break Da}e=e-(c<<16)|0;J[j>>2]=e;if(b&32768)break Da;g=J[(b>>>0>>0?12:8)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;d=J[j+12>>2];c=J[j+20>>2];Ga:{if((d|0)==(c|0))break Ga;l=c;c=d+1|0;Ha:{if((l|0)!= +(c|0)){h=K[d+1|0];if(K[d|0]!=255)break Ha;if(h>>>0>143)break Ga;J[j+12>>2]=c;i=h<<9;f=7;break Ga}h=255;if(K[d|0]==255)break Ga}J[j+12>>2]=c;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}}c=J[g>>2];b=b-c|0;J[j+4>>2]=b;Ia:{if(e>>>16>>>0>>0){J[j+4>>2]=c;g=J[(b>>>0>>0?8:12)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];d=J[j+20>>2];Ja:{if((b|0)==(d|0))break Ja;l=d;d=b+1|0;Ka:{if((l|0)!=(d|0)){h=K[b+1|0];if(K[b|0]!= +255)break Ka;if(h>>>0>143)break Ja;J[j+12>>2]=d;i=h<<9;f=7;break Ja}h=255;if(K[b|0]==255)break Ja}J[j+12>>2]=d;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;break Ia}e=e-(c<<16)|0;J[j>>2]=e;if(b&32768)break Ia;g=J[(b>>>0>>0?12:8)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;d=J[j+12>>2];c=J[j+20>>2];La:{if((d|0)==(c|0))break La;l=c;c=d+1|0;Ma:{if((l|0)!=(c|0)){h=K[d+1|0];if(K[d|0]!=255)break Ma;if(h>>>0>143)break La;J[j+12>> +2]=c;i=h<<9;f=7;break La}h=255;if(K[d|0]==255)break La}J[j+12>>2]=c;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}}c=J[g>>2];b=b-c|0;J[j+4>>2]=b;Na:{if(e>>>16>>>0>>0){J[j+4>>2]=c;g=J[(b>>>0>>0?8:12)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];d=J[j+20>>2];Oa:{if((b|0)==(d|0))break Oa;l=d;d=b+1|0;Pa:{if((l|0)!=(d|0)){h=K[b+1|0];if(K[b|0]!=255)break Pa;if(h>>>0>143)break Oa;J[j+12>>2]=d;i=h<<9;f=7;break Oa}h=255; +if(K[b|0]==255)break Oa}J[j+12>>2]=d;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}b=c;break Na}e=e-(c<<16)|0;J[j>>2]=e;if(b&32768)break Na;g=J[(b>>>0>>0?12:8)+g>>2];J[j+96>>2]=g;f=J[j+8>>2];while(1){if(!f){f=8;i=65280;d=J[j+12>>2];c=J[j+20>>2];Qa:{if((d|0)==(c|0))break Qa;l=c;c=d+1|0;Ra:{if((l|0)!=(c|0)){h=K[d+1|0];if(K[d|0]!=255)break Ra;if(h>>>0>143)break Qa;J[j+12>>2]=c;i=h<<9;f=7;break Qa}h=255;if(K[d|0]==255)break Qa}J[j+12>>2]=c;i=h<< +8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1;J[j>>2]=e;b=b<<1;J[j+4>>2]=b;if(b>>>0<32768)continue;break}}c=J[g>>2];f=b-c|0;J[j+4>>2]=f;if(e>>>16>>>0>>0){J[j+4>>2]=c;J[j+96>>2]=J[(c>>>0>f>>>0?8:12)+g>>2];f=J[j+8>>2];while(1){if(!f){f=8;i=65280;b=J[j+12>>2];d=J[j+20>>2];Sa:{if((b|0)==(d|0))break Sa;l=d;d=b+1|0;Ta:{if((l|0)!=(d|0)){h=K[b+1|0];if(K[b|0]!=255)break Ta;if(h>>>0>143)break Sa;J[j+12>>2]=d;i=h<<9;f=7;break Sa}h=255;if(K[b|0]==255)break Sa}J[j+12>>2]=d;i=h<<8}e=e+i|0}f=f-1|0;J[j+8>>2]=f;e=e<<1; +J[j>>2]=e;c=c<<1;J[j+4>>2]=c;if(c>>>0<32768)continue;break}break U}b=e-(c<<16)|0;J[j>>2]=b;if(f&32768)break U;J[j+96>>2]=J[(c>>>0>f>>>0?12:8)+g>>2];e=J[j+8>>2];while(1){if(!e){e=8;i=65280;d=J[j+12>>2];c=J[j+20>>2];Ua:{if((d|0)==(c|0))break Ua;l=c;c=d+1|0;Va:{if((l|0)!=(c|0)){h=K[d+1|0];if(K[d|0]!=255)break Va;if(h>>>0>143)break Ua;J[j+12>>2]=c;i=h<<9;e=7;break Ua}h=255;if(K[d|0]==255)break Ua}J[j+12>>2]=c;i=h<<8}b=b+i|0}e=e-1|0;J[j+8>>2]=e;b=b<<1;J[j>>2]=b;f=f<<1;J[j+4>>2]=f;if(f>>>0<32768)continue; +break}break U;case 1:break W;default:break U}if(Ea)break U;s=1<>1;q=(z|0)<0?-1:0-s|0;d=0;if(na){m=J[n+8>>2];j=J[n+4>>2];k=0;while(1){b=k;o=b|3;k=b+4|0;h=0;while(1){l=h;h=h+1|0;f=b;while(1){Wa:{if(!O){e=f+1|0;i=((n+P(e,4104)|0)+(h<<2)|0)+4218892|0;d=J[i>>2];break Wa}e=f+1|0;i=((n+P(e,4104)|0)+(h<<2)|0)+4218892|0;d=J[i>>2];d=(f|0)==(o|0)|(f|0)==(F|0)?d&-1095:d}if((d&20480)==4096){f=((n+(f<<12)|0)+(l<<2)|0)+24588|0;J[j+152>>2]=(j+(J[(n+((d>>>2&2048|d&255)<<2)|0)+5132>>2]<<2)|0)+24;c=J[m+4>>2];Xa:{if(c){g= +K[m|0];break Xa}J[m+4>>2]=8;d=J[m+12>>2];if((d|0)!=J[m+8>>2]){c=8;if(K[m|0]==255){J[m+4>>2]=7;c=7}g=K[d+J[m+20>>2]|0];J[m+12>>2]=d+1;H[m|0]=g;break Xa}g=255;H[m|0]=255;c=8}d=c-1|0;J[m+4>>2]=d;d=(g&255)>>>d&1?s:q;g=0-d|0;c=d;d=J[f>>2];J[f>>2]=((d|0)<0?g:c)+d;J[i>>2]=J[i>>2]|8192}if(e>>>0>>0){f=e;if((u|0)>(e|0))continue}break}if((h|0)!=(v|0))continue;break}if((k|0)<(u|0))continue;break}break U}while(1){$=d|3;j=d+4|0;m=0;while(1){o=m;m=m+1|0;e=d;while(1){Ya:{if(!O){k=e+1|0;l=((n+P(k,4104)|0)+(m<< +2)|0)+4218892|0;b=J[l>>2];break Ya}k=e+1|0;l=((n+P(k,4104)|0)+(m<<2)|0)+4218892|0;b=J[l>>2];b=(e|0)==($|0)|(e|0)==(F|0)?b&-1095:b}if((b&20480)==4096){r=J[n+4>>2];g=r+(J[(n+((b>>>2&2048|b&255)<<2)|0)+5132>>2]<<2)|0;J[r+152>>2]=g+24;f=J[g+24>>2];c=J[f>>2];i=J[r+4>>2]-c|0;J[r+4>>2]=i;Y=((n+(e<<12)|0)+(o<<2)|0)+24588|0;b=J[r>>2];Za:{if(b>>>16>>>0>=c>>>0){b=b-(c<<16)|0;J[r>>2]=b;e=J[f+4>>2];if(i&32768)break Za;e=J[f+4>>2];da=c>>>0>i>>>0;J[g+24>>2]=J[f+(da?12:8)>>2];f=J[r+8>>2];while(1){if(!f){f=8;h=65280; +c=J[r+12>>2];g=J[r+20>>2];_a:{if((c|0)==(g|0))break _a;B=c+1|0;$a:{if((B|0)!=(g|0)){g=K[c+1|0];if(K[c|0]!=255)break $a;if(g>>>0>143)break _a;J[r+12>>2]=B;h=g<<9;f=7;break _a}g=255;if(K[c|0]==255)break _a}J[r+12>>2]=B;h=g<<8}b=b+h|0}f=f-1|0;J[r+8>>2]=f;b=b<<1;J[r>>2]=b;i=i<<1;J[r+4>>2]=i;if(i>>>0<32768)continue;break}e=da?1-e|0:e;break Za}B=J[f+4>>2];J[r+4>>2]=c;da=c>>>0>i>>>0;J[g+24>>2]=J[f+(da?8:12)>>2];f=J[r+8>>2];while(1){if(!f){f=8;h=65280;e=J[r+12>>2];g=J[r+20>>2];ab:{if((e|0)==(g|0))break ab; +i=e+1|0;bb:{if((i|0)!=(g|0)){g=K[e+1|0];if(K[e|0]!=255)break bb;if(g>>>0>143)break ab;J[r+12>>2]=i;h=g<<9;f=7;break ab}g=255;if(K[e|0]==255)break ab}J[r+12>>2]=i;h=g<<8}b=b+h|0}f=f-1|0;J[r+8>>2]=f;b=b<<1;J[r>>2]=b;c=c<<1;J[r+4>>2]=c;if(c>>>0<32768)continue;break}e=da?B:1-B|0}b=e?s:q;e=0-b|0;c=b;b=J[Y>>2];J[Y>>2]=((b|0)<0?e:c)+b;J[l>>2]=J[l>>2]|8192}if(j>>>0>k>>>0){e=k;if((u|0)>(e|0))continue}break}if((m|0)!=(v|0))continue;break}d=j;if((u|0)>(d|0))continue;break}break U}while(1){da=d|3;s=d+4|0;e=0; +while(1){j=e;e=e+1|0;l=d;while(1){cb:{if(!O){m=l+1|0;g=((n+P(m,4104)|0)+(e<<2)|0)+4218892|0;q=J[g>>2];break cb}m=l+1|0;g=((n+P(m,4104)|0)+(e<<2)|0)+4218892|0;b=J[g>>2];q=(l|0)==(da|0)|(l|0)==(F|0)?b&-1095:b}b=q&255;if(!(!b|q&20480)){o=J[n+4>>2];k=o+(J[(n+((b|pa)<<2)|0)+12>>2]<<2)|0;J[o+152>>2]=k+24;c=J[k+24>>2];b=J[c>>2];i=J[o+4>>2]-b|0;J[o+4>>2]=i;f=J[o>>2];db:{if(f>>>16>>>0>=b>>>0){f=f-(b<<16)|0;J[o>>2]=f;h=J[c+4>>2];if(i&32768)break db;$=J[c+4>>2];ca=b>>>0>i>>>0;J[k+24>>2]=J[c+(ca?12:8)>>2];c= +J[o+8>>2];while(1){if(!c){c=8;h=65280;b=J[o+12>>2];k=J[o+20>>2];eb:{if((b|0)==(k|0))break eb;Y=b+1|0;fb:{if((Y|0)!=(k|0)){k=K[b+1|0];if(K[b|0]!=255)break fb;if(k>>>0>143)break eb;J[o+12>>2]=Y;h=k<<9;c=7;break eb}k=255;if(K[b|0]==255)break eb}J[o+12>>2]=Y;h=k<<8}f=f+h|0}c=c-1|0;J[o+8>>2]=c;f=f<<1;J[o>>2]=f;i=i<<1;J[o+4>>2]=i;if(i>>>0<32768)continue;break}h=ca?1-$|0:$;break db}$=J[c+4>>2];J[o+4>>2]=b;ca=b>>>0>i>>>0;J[k+24>>2]=J[c+(ca?8:12)>>2];c=J[o+8>>2];while(1){if(!c){c=8;h=65280;i=J[o+12>>2];k= +J[o+20>>2];gb:{if((i|0)==(k|0))break gb;Y=i+1|0;hb:{if((Y|0)!=(k|0)){k=K[i+1|0];if(K[i|0]!=255)break hb;if(k>>>0>143)break gb;J[o+12>>2]=Y;h=k<<9;c=7;break gb}k=255;if(K[i|0]==255)break gb}J[o+12>>2]=Y;h=k<<8}f=f+h|0}c=c-1|0;J[o+8>>2]=c;f=f<<1;J[o>>2]=f;b=b<<1;J[o+4>>2]=b;if(b>>>0<32768)continue;break}i=b;h=ca?$:1-$|0}ib:{if(!h){b=J[g>>2];break ib}$=j<<2;Y=($+(n+(l<<12)|0)|0)+24588|0;ca=n+((q>>>4&255)<<2)|0;k=o+(J[ca+4108>>2]<<2)|0;J[o+152>>2]=k+24;l=J[k+24>>2];b=J[l>>2];c=i-b|0;J[o+4>>2]=c;jb:{if(f>>> +16>>>0>=b>>>0){i=f-(b<<16)|0;J[o>>2]=i;f=J[l+4>>2];if(c&32768)break jb;q=J[l+4>>2];Z=b>>>0>c>>>0;J[k+24>>2]=J[l+(Z?12:8)>>2];f=J[o+8>>2];while(1){if(!f){f=8;h=65280;b=J[o+12>>2];l=J[o+20>>2];kb:{if((b|0)==(l|0))break kb;k=l;l=b+1|0;lb:{if((k|0)!=(l|0)){k=K[b+1|0];if(K[b|0]!=255)break lb;if(k>>>0>143)break kb;J[o+12>>2]=l;h=k<<9;f=7;break kb}k=255;if(K[b|0]==255)break kb}J[o+12>>2]=l;h=k<<8}i=h+i|0}f=f-1|0;J[o+8>>2]=f;i=i<<1;J[o>>2]=i;c=c<<1;J[o+4>>2]=c;if(c>>>0<32768)continue;break}f=Z?1-q|0:q;break jb}i= +J[l+4>>2];J[o+4>>2]=b;Z=b>>>0>c>>>0;J[k+24>>2]=J[l+(Z?8:12)>>2];c=J[o+8>>2];while(1){if(!c){c=8;h=65280;l=J[o+12>>2];k=J[o+20>>2];mb:{if((l|0)==(k|0))break mb;q=l+1|0;nb:{if((q|0)!=(k|0)){k=K[l+1|0];if(K[l|0]!=255)break nb;if(k>>>0>143)break mb;J[o+12>>2]=q;h=k<<9;c=7;break mb}k=255;if(K[l|0]==255)break mb}J[o+12>>2]=q;h=k<<8}f=f+h|0}c=c-1|0;J[o+8>>2]=c;f=f<<1;J[o>>2]=f;b=b<<1;J[o+4>>2]=b;if(b>>>0<32768)continue;break}f=Z?i:1-i|0}b=f;k=(b|0)==J[ca+21516>>2];J[Y>>2]=k?r:B;b=g-4108|0;J[b>>2]=J[b>>2]| +2;b=g-4100|0;J[b>>2]=J[b>>2]|4;J[g+4100>>2]=J[g+4100>>2]|1;J[g+4108>>2]=J[g+4108>>2]|8;b=g-4104|0;c=J[b>>2];J[b>>2]=c|64;i=J[g+4104>>2];J[g+4104>>2]=i|16;f=($+(n+P(m,4104)|0)|0)+4218892|0;l=J[f>>2];J[f>>2]=l|32;h=J[g+4>>2];J[g+4>>2]=h|128;if(!k){J[b>>2]=c|1088;J[g+4104>>2]=i|272;J[f>>2]=l|544;J[g+4>>2]=h|2176}b=J[g>>2]|4096}J[g>>2]=b|16384}if(m>>>0>>0){l=m;if((u|0)>(l|0))continue}break}if((e|0)!=(v|0))continue;break}d=s;if((u|0)>(d|0))continue;break}}if(!Ia){J[p+148>>2]=2650496;J[p+144>>2]=2650496; +J[p+140>>2]=2650496;J[p+136>>2]=2650496;J[p+132>>2]=2650496;J[p+128>>2]=2650496;J[p+124>>2]=2650496;J[p+120>>2]=2650496;J[p+116>>2]=2650496;J[p+112>>2]=2650496;J[p+108>>2]=2650496;J[p+104>>2]=2650496;J[p+100>>2]=2650496;J[p+88>>2]=2650496;J[p+84>>2]=2650496;J[p+80>>2]=2650496;J[p+76>>2]=2650496;J[p+72>>2]=2650496;J[p+68>>2]=2650496;J[p+64>>2]=2650496;J[p+60>>2]=2650496;J[p+56>>2]=2650496;J[p+52>>2]=2650496;J[p+48>>2]=2650496;J[p+44>>2]=2650496;J[p+40>>2]=2650496;J[p+36>>2]=2650496;J[p+32>>2]=2650496; +J[p+28>>2]=2650496;J[p+92>>2]=2650592;J[p+96>>2]=2651968;J[p+24>>2]=2650624}d=E+1|0;b=(d|0)==3;E=b?0:d;z=z-b|0;va=va+1|0;if((va|0)>2])continue;break}c=J[t+36>>2]}aa=aa+1|0;if((aa|0)<(c|0))continue;break}}b=J[A+32>>2];g=J[t+4>>2];e=J[t>>2];l=e-J[A+28>>2]|0;d=J[A+44>>2];if(d&1){c=(oa+J[x+20>>2]|0)-124|0;l=(J[c+8>>2]+l|0)-J[c>>2]|0}o=g-b|0;if(d&2){b=(oa+J[x+20>>2]|0)-124|0;o=(J[b+12>>2]+o|0)-J[b+4>>2]|0}m=J[qa+1872>>2];b=ra+m|0;d=J[b+808>>2];ob:{if(!d)break ob;c=J[t+12>>2];if((g|0)>=(c|0))break ob; +i=1<>2];k=0;while(1){f=0;if((e|0)<(h|0)){while(1){g=((n+(k<<12)|0)+(f<<2)|0)+24588|0;d=J[g>>2];c=d>>31;c=(c^d)-c|0;if((c|0)>=(i|0)){c=c>>>J[b+808>>2]|0;J[g>>2]=(d|0)<0?0-c|0:c;h=J[t+8>>2];e=J[t>>2]}f=f+1|0;if((f|0)<(h-e|0))continue;break}g=J[t+4>>2];c=J[t+12>>2]}k=k+1|0;if((k|0)<(c-g|0))continue;break}}d=J[x+8>>2]-J[x>>2]|0;f=J[t+12>>2];pb:{if(J[b+20>>2]!=1){if((f|0)<=(g|0))break pb;c=J[t+8>>2];h=0;while(1){if((c|0)>(e|0)){k=(J[x+24>>2]+(l<<2)|0)+(P(d,h+o|0)<<2)|0;f=0;while(1){e=0;c=f<< +2;b=J[(c+(n+(h<<12)|0)|0)+24588>>2];if(b>>>0>=2){ma=Q(N[A+56>>2]*Q(b<<12));U=+ma;fa=V(R(U+U));qb:{if(R(fa)<2147483648){b=~~fa;break qb}b=-2147483648}e=(b|0)%2|0;U=V(R(U));rb:{if(R(U)<2147483648){b=~~U;break rb}b=-2147483648}b=b+e|0;e=ma>2]=e;f=f+1|0;c=J[t+8>>2];e=J[t>>2];if((f|0)<(c-e|0))continue;break}g=J[t+4>>2];f=J[t+12>>2]}h=h+1|0;if((h|0)<(f-g|0))continue;break}break pb}if((f|0)<=(g|0))break pb;i=J[t+8>>2];c=0;while(1){if((e|0)<(i|0)){b=(J[x+24>>2]+(l<<2)|0)+(P(d,c+o|0)<< +2)|0;f=0;while(1){e=f<<2;J[e+b>>2]=J[(e+(n+(c<<12)|0)|0)+24588>>2]/2;f=f+1|0;i=J[t+8>>2];e=J[t>>2];if((f|0)<(i-e|0))continue;break}g=J[t+4>>2];f=J[t+12>>2]}c=c+1|0;if((c|0)<(f-g|0))continue;break}}ea=ea+1|0;if((ea|0)<(P(J[G+20>>2],J[G+16>>2])|0))continue;break}f=J[y+20>>2];c=J[y+16>>2]}ha=ha+1|0;if((ha|0)<(P(c,f)|0))continue;break}e=J[y+24>>2]}X=X+1|0;if((X|0)<(e|0))continue;break}f=J[x+16>>2]}_=_+1|0;if((_|0)<(f|0))continue;break}e=J[w+16>>2]}M=M+1|0;if((M|0)<(e|0))continue;break}}if(n){b=J[n+4>> +2];if(b)uc(b);b=J[n+8>>2];if(b)uc(b);uc(n)}w=ba+P(D,840)|0;if(J[w+16>>2]>0){d=J[w+20>>2];c=0;while(1){O=c<<5;d=O+d|0;b=J[J[C+12>>2]+12>>2];if(b)J[(J[J[C+8>>2]+24>>2]+P(c,48)|0)+36>>2]=J[d+16>>2]+(b^-1);x=J[d+16>>2];S=P(c,48);b=x+(J[(S+J[J[C+8>>2]+24>>2]|0)+36>>2]^-1)|0;sb:{if(J[(J[J[C+20>>2]+1872>>2]+P(c,1076)|0)+20>>2]==1){i=x-2|0;if((b|0)>(i|0))break sb;f=b;t=J[d+24>>2];s=J[d+8>>2]-J[d>>2]|0;h=s<<2;_=J[d+20>>2];while(1){b=_+P(x+(i^-1)|0,124)|0;d=b-124|0;e=J[d>>2];m=J[d+8>>2];r=J[b+12>>2];z=J[d+ +4>>2];u=J[d+12>>2];o=J[b+4>>2];d=J[b+8>>2];b=J[b>>2];p=d-b|0;F=p<<2;n=kd(1,F);if(!n)break sb;y=(b|0)%2|0;q=r-o|0;M=(q|0)<=0;if(!M){j=m-e|0;v=p-j|0;G=v&-8;A=v&7;I=j&-8;E=j&7;k=y<<2;l=k+n|0;k=(n-k|0)+4|0;g=0;B=m+(e^-1)>>>0>6;X=(d+e|0)+(b+m^-1)>>>0<7;while(1){e=t+(P(g,s)<<2)|0;tb:{if((j|0)<=0)break tb;m=0;b=l;d=e;if(B)while(1){J[b>>2]=J[d>>2];J[b+8>>2]=J[d+4>>2];J[b+16>>2]=J[d+8>>2];J[b+24>>2]=J[d+12>>2];J[b+32>>2]=J[d+16>>2];J[b+40>>2]=J[d+20>>2];J[b+48>>2]=J[d+24>>2];J[b+56>>2]=J[d+28>>2];d=d+32|0; +b=b- -64|0;m=m+8|0;if((I|0)!=(m|0))continue;break}m=0;if(!E)break tb;while(1){J[b>>2]=J[d>>2];d=d+4|0;b=b+8|0;m=m+1|0;if((E|0)!=(m|0))continue;break}}ub:{if((v|0)<=0)break ub;b=e+(j<<2)|0;m=0;d=k;if(!X)while(1){J[d>>2]=J[b>>2];J[d+8>>2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];J[d+24>>2]=J[b+12>>2];J[d+32>>2]=J[b+16>>2];J[d+40>>2]=J[b+20>>2];J[d+48>>2]=J[b+24>>2];J[d+56>>2]=J[b+28>>2];b=b+32|0;d=d- -64|0;m=m+8|0;if((G|0)!=(m|0))continue;break}m=0;if(!A)break ub;while(1){J[d>>2]=J[b>>2];b=b+4|0;d=d+8|0;m=m+ +1|0;if((A|0)!=(m|0))continue;break}}_aa(n,v,j,y);if((p|0)>0)xc(t+P(h,g)|0,n,F);g=g+1|0;if((q|0)!=(g|0))continue;break}}uc(n);n=kd(1,q<<2);if(!n)break sb;v=(o|0)%2|0;if((p|0)>0){F=q&-4;y=q&3;b=q;q=u-z|0;j=b-q|0;G=j&-4;A=j&3;I=q&-4;E=q&3;b=v<<2;l=b+n|0;k=(n-b|0)+4|0;g=0;B=u+(z^-1)>>>0>2;X=P(q,s)<<2;z=(r+z|0)+(o+u^-1)>>>0<3;o=r+(o^-1)>>>0>2;while(1){e=t+(g<<2)|0;vb:{if((q|0)<=0)break vb;m=0;b=l;d=e;if(B)while(1){J[b>>2]=J[d>>2];d=d+h|0;J[b+8>>2]=J[d>>2];d=d+h|0;J[b+16>>2]=J[d>>2];d=d+h|0;J[b+24>>2]= +J[d>>2];d=d+h|0;b=b+32|0;m=m+4|0;if((I|0)!=(m|0))continue;break}m=0;if(!E)break vb;while(1){J[b>>2]=J[d>>2];b=b+8|0;d=d+h|0;m=m+1|0;if((E|0)!=(m|0))continue;break}}wb:{if((j|0)<=0)break wb;d=e+X|0;m=0;b=k;if(!z)while(1){J[b>>2]=J[d>>2];d=d+h|0;J[b+8>>2]=J[d>>2];d=d+h|0;J[b+16>>2]=J[d>>2];d=d+h|0;J[b+24>>2]=J[d>>2];d=d+h|0;b=b+32|0;m=m+4|0;if((G|0)!=(m|0))continue;break}m=0;if(!A)break wb;while(1){J[b>>2]=J[d>>2];b=b+8|0;d=d+h|0;m=m+1|0;if((A|0)!=(m|0))continue;break}}_aa(n,j,q,v);xb:{if(M)break xb; +d=0;b=0;m=0;if(o)while(1){J[e+(P(b,s)<<2)>>2]=J[n+(b<<2)>>2];r=b|1;J[e+(P(r,s)<<2)>>2]=J[n+(r<<2)>>2];r=b|2;J[e+(P(r,s)<<2)>>2]=J[n+(r<<2)>>2];r=b|3;J[e+(P(r,s)<<2)>>2]=J[n+(r<<2)>>2];b=b+4|0;m=m+4|0;if((F|0)!=(m|0))continue;break}if(!y)break xb;while(1){J[e+(P(b,s)<<2)>>2]=J[n+(b<<2)>>2];b=b+1|0;d=d+1|0;if((y|0)!=(d|0))continue;break}}g=g+1|0;if((p|0)!=(g|0))continue;break}}uc(n);b=(f|0)<(i|0);i=i-1|0;if(b)continue;break}break sb}_=J[d+16>>2];i=_-2|0;yb:{if((b|0)>(i|0))break yb;f=b;h=J[d+8>>2]-J[d>> +2]|0;v=J[d+24>>2];F=J[d+20>>2];while(1){b=F+P(_+(i^-1)|0,124)|0;d=b-124|0;e=J[d>>2];m=J[d+8>>2];t=J[b+12>>2];r=J[d+4>>2];z=J[d+12>>2];p=J[b+4>>2];d=J[b+8>>2];b=J[b>>2];s=d-b|0;n=kd(1,s<<2);if(!n)break yb;x=(b|0)%2|0;q=t-p|0;M=(q|0)<=0;if(!M){G=s&-4;y=s&3;j=m-e|0;o=s-j|0;I=o&-8;A=o&7;B=j&-8;E=j&7;k=x<<2;l=k+n|0;k=(n-k|0)+4|0;u=0;X=m+(e^-1)>>>0>6;d=d-1|0;ha=d+e-(b+m)>>>0<7;ea=d-b>>>0>2;while(1){e=v+(P(h,u)<<2)|0;zb:{if((j|0)<=0)break zb;m=0;b=l;d=e;if(X)while(1){J[b>>2]=J[d>>2];J[b+8>>2]=J[d+4>>2]; +J[b+16>>2]=J[d+8>>2];J[b+24>>2]=J[d+12>>2];J[b+32>>2]=J[d+16>>2];J[b+40>>2]=J[d+20>>2];J[b+48>>2]=J[d+24>>2];J[b+56>>2]=J[d+28>>2];d=d+32|0;b=b- -64|0;m=m+8|0;if((B|0)!=(m|0))continue;break}m=0;if(!E)break zb;while(1){J[b>>2]=J[d>>2];d=d+4|0;b=b+8|0;m=m+1|0;if((E|0)!=(m|0))continue;break}}Ab:{if((o|0)<=0)break Ab;b=e+(j<<2)|0;m=0;d=k;if(!ha)while(1){J[d>>2]=J[b>>2];J[d+8>>2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];J[d+24>>2]=J[b+12>>2];J[d+32>>2]=J[b+16>>2];J[d+40>>2]=J[b+20>>2];J[d+48>>2]=J[b+24>>2];J[d+ +56>>2]=J[b+28>>2];b=b+32|0;d=d- -64|0;m=m+8|0;if((I|0)!=(m|0))continue;break}m=0;if(!A)break Ab;while(1){J[d>>2]=J[b>>2];b=b+4|0;d=d+8|0;m=m+1|0;if((A|0)!=(m|0))continue;break}}Zaa(n,o,j,x);Bb:{if((s|0)<=0)break Bb;m=0;b=0;g=0;if(ea)while(1){d=b<<2;J[d+e>>2]=J[d+n>>2];aa=d|4;J[aa+e>>2]=J[n+aa>>2];aa=d|8;J[aa+e>>2]=J[n+aa>>2];d=d|12;J[d+e>>2]=J[d+n>>2];b=b+4|0;g=g+4|0;if((G|0)!=(g|0))continue;break}if(!y)break Bb;while(1){d=b<<2;J[d+e>>2]=J[d+n>>2];b=b+1|0;m=m+1|0;if((y|0)!=(m|0))continue;break}}u= +u+1|0;if((q|0)!=(u|0))continue;break}}uc(n);n=kd(1,q<<2);if(!n)break yb;u=(p|0)%2|0;if((s|0)>0){E=q&-4;x=q&3;b=q;q=z-r|0;j=b-q|0;G=j&-4;y=j&3;I=q&-4;A=q&3;b=u<<2;l=b+n|0;k=(n-b|0)+4|0;o=0;B=z+(r^-1)>>>0>2;X=P(h,q)<<2;r=(r+t|0)+(p+z^-1)>>>0<3;p=t+(p^-1)>>>0>2;while(1){e=v+(o<<2)|0;Cb:{if((q|0)<=0)break Cb;g=0;b=l;d=e;if(B)while(1){J[b>>2]=J[d>>2];m=d;d=h<<2;m=m+d|0;J[b+8>>2]=J[m>>2];m=d+m|0;J[b+16>>2]=J[m>>2];m=d+m|0;J[b+24>>2]=J[m>>2];d=d+m|0;b=b+32|0;g=g+4|0;if((I|0)!=(g|0))continue;break}m=0;if(!A)break Cb; +while(1){J[b>>2]=J[d>>2];b=b+8|0;d=(h<<2)+d|0;m=m+1|0;if((A|0)!=(m|0))continue;break}}Db:{if((j|0)<=0)break Db;d=e+X|0;g=0;b=k;if(!r)while(1){J[b>>2]=J[d>>2];m=d;d=h<<2;m=m+d|0;J[b+8>>2]=J[m>>2];m=d+m|0;J[b+16>>2]=J[m>>2];m=d+m|0;J[b+24>>2]=J[m>>2];d=d+m|0;b=b+32|0;g=g+4|0;if((G|0)!=(g|0))continue;break}m=0;if(!y)break Db;while(1){J[b>>2]=J[d>>2];b=b+8|0;d=(h<<2)+d|0;m=m+1|0;if((y|0)!=(m|0))continue;break}}Zaa(n,j,q,u);Eb:{if(M)break Eb;d=0;b=0;m=0;if(p)while(1){J[e+(P(b,h)<<2)>>2]=J[n+(b<<2)>>2]; +g=b|1;J[e+(P(g,h)<<2)>>2]=J[n+(g<<2)>>2];g=b|2;J[e+(P(g,h)<<2)>>2]=J[n+(g<<2)>>2];g=b|3;J[e+(P(g,h)<<2)>>2]=J[n+(g<<2)>>2];b=b+4|0;m=m+4|0;if((E|0)!=(m|0))continue;break}if(!x)break Eb;while(1){J[e+(P(b,h)<<2)>>2]=J[n+(b<<2)>>2];b=b+1|0;d=d+1|0;if((x|0)!=(d|0))continue;break}}o=o+1|0;if((s|0)!=(o|0))continue;break}}uc(n);b=(f|0)<(i|0);i=i-1|0;if(b)continue;break}}}d=J[w+20>>2];b=J[(O+d|0)+16>>2];if((b|0)>0){e=S+J[J[C+8>>2]+24>>2]|0;J[e+40>>2]=b+(J[e+36>>2]^-1)}c=c+1|0;if((c|0)>2])continue; +break}}h=J[C+20>>2];Fb:{if(!J[h+16>>2])break Fb;b=J[(ba+P(D,840)|0)+20>>2];g=P(J[b+12>>2]-J[b+4>>2]|0,J[b+8>>2]-J[b>>2]|0);n=J[b+24>>2];s=J[b+88>>2];q=J[b+56>>2];if(J[J[h+1872>>2]+20>>2]==1){if((g|0)<=0)break Fb;c=0;while(1){b=c<<2;d=b+n|0;e=b+s|0;f=J[e>>2];l=b+q|0;k=J[l>>2];b=J[d>>2]-(f+k>>2)|0;J[d>>2]=b+f;J[l>>2]=b;J[e>>2]=b+k;c=c+1|0;if((g|0)!=(c|0))continue;break}break Fb}if((g|0)<=0)break Fb;c=0;while(1){e=c<<2;k=e+q|0;d=J[k>>2];i=d>>31;b=e+n|0;j=b;b=J[b>>2];m=e+s|0;e=J[m>>2];f=e>>31;l=vEb(e, +f,11485,0);o=jc;l=(((o&4095)<<20|l>>>12)&1)+((o&8191)<<19|l>>>13)|0;J[j>>2]=b+l;vEb(e,f,0,-1227882496);l=jc;e=vEb(e,f,5850,0);e=(l>>31)-((jc&8191)<<19|e>>>13)|0;vEb(d,i,0,1477967872);f=jc;l=vEb(d,i,2819,0);J[k>>2]=(((f>>31)-((jc&8191)<<19|l>>>13)|0)+b|0)+e;e=b;b=vEb(d,i,14516,0);d=jc;b=(((d&4095)<<20|b>>>12)&1)+((d&8191)<<19|b>>>13)|0;J[m>>2]=b+e;c=c+1|0;if((g|0)!=(c|0))continue;break}}b=J[w+16>>2];Gb:{if((b|0)<=0)break Gb;n=J[(ba+P(D,840)|0)+20>>2];s=J[J[C+8>>2]+24>>2];k=0;while(1){m=n+(k<<5)|0; +f=s+P(k,48)|0;e=J[m+20>>2]+P(J[f+36>>2],124)|0;l=J[e+4>>2];i=J[e+12>>2];Hb:{if((l|0)>=(i|0))break Hb;d=J[e+8>>2];if((d|0)<=J[e>>2])break Hb;b=J[f+24>>2];c=b-1|0;q=-1<>2];g=(b?q:g)^-1;j=b?0:1<>2]-J[m>>2]|0;c=J[f+40>>2];o=-1<>2]>>c;o=o+J[f+16>>2]>>c;t=J[f+8>>2];while(1){c=J[e>>2];if((d|0)>(c|0)){i=J[h+1872>>2]+P(k,1076)|0;r=J[f+44>>2]+(P(t,l-p|0)<<2)|0;z=J[m+24>>2];while(1){d=J[(z+(c-J[e>>2]<<2)|0)+(P(q,l-J[e+4>>2]|0)<<2)>>2];u=r+(c-o<<2)|0;if(J[i+ +20>>2]!=1){ma=Q(+(d|0)*1.220703125E-4);ta=Q(V(Q(R(Q(ma+ma)))));Ib:{if(Q(R(ta))>2]=(b|0)>(d|0)?b:(d|0)<(g|0)?d:g;c=c+1|0;d=J[e+8>>2];if((c|0)<(d|0))continue;break}i=J[e+12>>2]}l=l+1|0;if((l|0)<(i|0))continue;break}b=J[w+16>>2]}k=k+1|0;if((k|0)<(b|0))continue;break}if((b|0)<=0)break Gb;e=P(D,840);d=J[(e+J[J[C+4>>2]+8>>2]|0)+20>> +2];c=0;while(1){f=c<<5;l=f+d|0;k=J[l+24>>2];if(k){uc(k);J[l+24>>2]=0;d=J[(e+J[J[C+4>>2]+8>>2]|0)+20>>2];b=J[w+16>>2]}J[(d+f|0)+24>>2]=0;c=c+1|0;if((c|0)<(b|0))continue;break}}b=J[a+28>>2];d=b+T|0;c=J[d>>2];if(c){uc(c);J[d>>2]=0;b=J[a+28>>2]}J[b+T>>2]=0;ka=ka+1|0;b=J[a+44>>2];if((ka|0)>2])continue;break}VO(C)}b=J[C+4>>2];if(b)uc(b);uc(C);J[a+4>>2]=32}function wCa(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;q=fc-32|0;fc=q;g=fc-16|0;fc=g;J[699344]= +0;ia(5363,g+12|0,b|0,2405946,1);c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((c|0)!=1){c=J[g+12>>2];if(!c)break d;if(J[c+8>>2]!=4){J[699344]=0;da(5364,c|0,4);c=J[699344];J[699344]=0;if((c|0)==1)break g;B()}if(J[c+44>>2]!=1){J[g+12>>2]=0;d=-1;break h}J[699344]=0;ca(5365,g|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break k;J[699344]=0;c=J[g>>2];da(5356,g+4|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break j;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break i; +J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break i}break a}d=ea(0)|0;break e}d=ea(0)|0;break f}d=ea(0)|0;zc(g);break f}c=J[g+4>>2];d=yt(J[(c?c+12|0:2743576)>>2],16777215);wc(g+4|0);c=J[g+12>>2];J[g+12>>2]=0;if(!c)break c}J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)!=1){if(f)break c;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break c}break a}d=ea(0)|0}zc(g+12|0)}oa(d|0)|0;ta()}d=-1}fc=g+16|0;break b}J[a+8>>2]=d;c=0;g=fc-48|0;fc=g;J[699344]= +0;ia(5363,g+44|0,b|0,2406059,1);d=J[699344];J[699344]=0;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{if((d|0)!=1){d=J[g+44>>2];if(!d)break n;if(J[d+8>>2]!=4){J[699344]=0;da(5364,d|0,4);c=J[699344];J[699344]=0;if((c|0)==1)break u;break m}if(J[d+44>>2]!=1){J[g+44>>2]=0;break o}J[699344]=0;ca(5365,g+12|0,d|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break B;J[699344]=0;c=J[g+12>>2];da(5356,g+36|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break A;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344]; +J[699344]=0;if((f|0)==1)break a;if(!d){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;d=g+36|0;c=pd(d,2411956,-1);f=J[699344];J[699344]=0;if((f|0)==1)break s;if(!c)break y;J[699344]=0;c=-1;f=pd(d,2412020,-1);e=J[699344];J[699344]=0;if((e|0)==1)break s;if(!f)break x;J[699344]=0;c=pd(d,2412055,-1);d=J[699344];J[699344]=0;if((d|0)==1)break s;if(c)break z;c=-2;break x}c=ea(0)|0;break p}c=ea(0)|0;break q}c=ea(0)|0;zc(g+12|0);break q}J[699344]=0;c=pd(g+36|0,2412084,-1); +d=J[699344];J[699344]=0;if((d|0)==1)break s;if(!c){c=-3;break x}J[699344]=0;c=pd(g+36|0,2412104,-1);d=J[699344];J[699344]=0;if((d|0)==1)break s;if(c)break y;c=-4;break x}c=J[g+36>>2];if(!(K[J[c+12>>2]]==100?c:0)){J[699344]=0;d=ja(5178,g+12|0,2406160,2389637,933,2406327,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break t;J[699344]=0;$(5179,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break m;c=ea(0)|0;Kc(d);break r}d=J[c+8>>2];c=0;J[699344]=0;ia(5313,g+12|0,g+36|0,1,d|0);d=J[699344];J[699344]=0;if((d|0)== +1)break w;d=J[g+12>>2];if(d){c=J[J[d>>2]+40>>2];J[699344]=0;c=_(c|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break v}wc(g+12|0)}wc(g+36|0);d=J[g+44>>2];J[g+44>>2]=0;if(d)break o;break n}c=ea(0)|0;break r}c=ea(0)|0;wc(g+12|0);break r}c=ea(0)|0;break q}c=ea(0)|0;break r}c=ea(0)|0}wc(g+36|0)}zc(g+44|0)}oa(c|0)|0;ta();c=0;break n}J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)!=1){if(f)break n;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break n}break a}fc=g+ +48|0;break l}B()}J[a+12>>2]=c;c=0;g=fc-16|0;fc=g;J[699344]=0;ia(5363,g+12|0,b|0,2406397,1);d=J[699344];J[699344]=0;C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((d|0)!=1){d=J[g+12>>2];if(!d)break D;if(J[d+8>>2]!=4){J[699344]=0;da(5364,d|0,4);c=J[699344];J[699344]=0;if((c|0)==1)break H;B()}if(J[d+44>>2]!=1){J[g+12>>2]=0;break I}J[699344]=0;ca(5365,g|0,d|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break M;J[699344]=0;c=J[g>>2];da(5356,g+4|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break L;J[699344]=0;d=J[c+4>>2]- +1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!d){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=0;J[699344]=0;d=g+4|0;f=pd(d,2411956,-1);e=J[699344];J[699344]=0;if((e|0)==1)break G;if(!f)break J;J[699344]=0;f=pd(d,2412132,-1);e=J[699344];J[699344]=0;c=1;if((e|0)==1)break G;if(!f)break J;J[699344]=0;c=pd(d,2412222,-1);d=J[699344];J[699344]=0;if((d|0)==1)break G;if(c)break K;c=2;break J}c=ea(0)|0;break E}c=ea(0)|0;break F}c=ea(0)|0;zc(g);break F}J[699344]=0; +c=pd(g+4|0,2412506,-1);d=J[699344];J[699344]=0;if((d|0)==1)break G;if(!c){c=3;break J}J[699344]=0;c=pd(g+4|0,2412511,-1);d=J[699344];J[699344]=0;if((d|0)==1)break G;c=!c<<2}wc(g+4|0);d=J[g+12>>2];J[g+12>>2]=0;if(!d)break D}J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)!=1){if(f)break D;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break D}break a}c=ea(0)|0;break F}c=ea(0)|0;wc(g+4|0)}zc(g+12|0)}oa(c|0)|0;ta();c=0}fc=g+16|0;break C}J[a+16>>2]=c;c=0;g=fc-16|0; +fc=g;J[699344]=0;ia(5363,g+12|0,b|0,2406566,1);d=J[699344];J[699344]=0;N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{if((d|0)!=1){d=J[g+12>>2];if(!d)break O;if(J[d+8>>2]!=4){J[699344]=0;da(5364,d|0,4);c=J[699344];J[699344]=0;if((c|0)==1)break S;B()}if(J[d+44>>2]!=2){J[g+12>>2]=0;break T}J[699344]=0;ca(5365,g|0,d|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break W;J[699344]=0;c=J[g>>2];da(5356,g+4|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break V;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f| +0)!=1){if(d)break U;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break U}break a}c=ea(0)|0;break P}c=ea(0)|0;break Q}c=ea(0)|0;zc(g);break Q}c=0;J[699344]=0;d=g+4|0;f=pd(d,2411956,-1);e=J[699344];J[699344]=0;if((e|0)==1)break R;X:{if(!f)break X;J[699344]=0;f=pd(d,2412548,-1);e=J[699344];J[699344]=0;c=1;if((e|0)==1)break R;if(!f)break X;J[699344]=0;c=pd(d,2412568,-1);d=J[699344];J[699344]=0;if((d|0)==1)break R;if(!c){c=2;break X}J[699344]=0;c=pd(g+4|0,2412604,-1);d=J[699344];J[699344]= +0;if((d|0)==1)break R;c=c?0:3}wc(g+4|0);d=J[g+12>>2];J[g+12>>2]=0;if(!d)break O}J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)!=1){if(f)break O;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break O}break a}c=ea(0)|0;break Q}c=ea(0)|0;wc(g+4|0)}zc(g+12|0)}oa(c|0)|0;ta();c=0}fc=g+16|0;break N}J[a+20>>2]=c;c=0;g=fc-16|0;fc=g;J[699344]=0;ia(5363,g+12|0,b|0,2406566,1);d=J[699344];J[699344]=0;Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{if((d|0)!=1){d=J[g+12>>2];if(!d)break Z; +if(J[d+8>>2]!=4){J[699344]=0;da(5364,d|0,4);c=J[699344];J[699344]=0;if((c|0)==1)break ba;B()}if(J[d+44>>2]!=2){J[g+12>>2]=0;break ca}J[699344]=0;ca(5365,g|0,d|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break fa;J[699344]=0;c=J[g>>2];da(5356,g+4|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break ea;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break da;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break da}break a}c=ea(0)|0;break _}c=ea(0)|0;break $}c= +ea(0)|0;zc(g);break $}c=0;J[699344]=0;d=g+4|0;f=pd(d,2411956,-1);e=J[699344];J[699344]=0;if((e|0)==1)break aa;ga:{if(!f)break ga;J[699344]=0;c=pd(d,2412568,-1);d=J[699344];J[699344]=0;if((d|0)==1)break aa;if(!c){c=2;break ga}J[699344]=0;c=pd(g+4|0,2412811,-1);d=J[699344];J[699344]=0;if((d|0)==1)break aa;if(!c){c=4;break ga}J[699344]=0;c=pd(g+4|0,2412855,-1);d=J[699344];J[699344]=0;if((d|0)==1)break aa;c=c?0:5}wc(g+4|0);d=J[g+12>>2];J[g+12>>2]=0;if(!d)break Z}J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]= +f;e=J[699344];J[699344]=0;if((e|0)!=1){if(f)break Z;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break Z}break a}c=ea(0)|0;break $}c=ea(0)|0;wc(g+4|0)}zc(g+12|0)}oa(c|0)|0;ta();c=0}fc=g+16|0;break Y}J[a+24>>2]=c;e=fc-384|0;fc=e;c=q+4|0;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;g=c;J[699344]=0;p=aa(5201,e+236|0,b|0)|0;c=J[699344];J[699344]=0;ha:{ia:{ja:{ka:{if((c|0)!=1){k=J[p+8>>2];if(k)while(1){l=J[k+8>>2];if(J[l+8>>2]==4){J[699344]= +0;c=e+228|0;da(5361,c|0,l|0);d=J[699344];J[699344]=0;la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{if((d|0)!=1){J[699344]=0;c=pd(c,2423650,-1);d=J[699344];J[699344]=0;if((d|0)==1)break ka;if(c)break la;J[e+220>>2]=0;J[e+224>>2]=J[685894];J[699344]=0;n=aa(5149,e+212|0,2423756)|0;c=J[699344];J[699344]=0;Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{if((c|0)!=1){J[699344]=0;ca(5365,e+188|0,l|0,0);c=J[699344];J[699344]=0;if((c|0)== +1)break Za;c=J[e+188>>2];_a:{if(!c)break _a;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break _a;J[699344]=0;$(5147,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}if(J[c+8>>2]!=4)break Ta;J[699344]=0;d=e+188|0;da(5361,d|0,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break Ya;J[699344]=0;f=pd(d,2423752,-1);h=J[699344];J[699344]=0;if((h|0)==1)break Xa;wc(d);if(!f)break Ua;J[699344]=0;d=ja(5178,d|0,2407545,2389637,1171,2407687,0)|0;c=J[699344];J[699344]=0;if((c| +0)==1)break Wa;J[699344]=0;$(5179,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break Va;break ia}c=ea(0)|0;break ma}c=ea(0)|0;break na}c=ea(0)|0;break na}c=ea(0)|0;wc(e+188|0);break na}c=ea(0)|0;break na}c=ea(0)|0;Kc(d);break na}J[699344]=0;ca(5365,e+180|0,c|0,0);d=J[699344];J[699344]=0;$a:{ab:{bb:{if((d|0)!=1){J[699344]=0;da(5366,e+188|0,J[e+180>>2]);d=J[699344];J[699344]=0;if((d|0)==1)break bb;d=J[e+188>>2];cb:{if(d){f=J[J[d>>2]+28>>2];J[699344]=0;ca(f|0,e+252|0,d|0,1);d=J[699344];J[699344]=0;if((d| +0)!=1)break cb;c=ea(0)|0;break pa}J[e+252>>2]=0}J[699344]=0;aa(5153,e+220|0,e+252|0)|0;d=J[699344];J[699344]=0;db:{if((d|0)!=1){d=J[e+252>>2];J[e+252>>2]=0;if(!d)break db;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break db;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break db}break a}c=ea(0)|0;zc(e+252|0);break pa}d=J[e+220>>2];J[e+224>>2]=J[(d?d+12|0:2743576)>>2];wc(e+188|0);d=J[e+180>>2];J[e+180>>2]=0;eb:{if(!d)break eb;J[699344]=0;f=J[d+4>> +2]-1|0;J[d+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(f)break eb;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}J[699344]=0;ca(5365,e+180|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break ab;J[699344]=0;da(5366,e+188|0,J[e+180>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break $a;c=J[e+188>>2];fb:{if(c){d=J[J[c>>2]+28>>2];J[699344]=0;ca(d|0,e+256|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break fb;c=ea(0)|0;break ra}J[e+256>>2]=0}J[699344]=0;aa(5153,n|0,e+256|0)|0; +c=J[699344];J[699344]=0;gb:{if((c|0)!=1){c=J[e+256>>2];J[e+256>>2]=0;if(!c)break gb;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break gb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break gb}break a}c=ea(0)|0;zc(e+256|0);break ra}c=J[n>>2];J[e+216>>2]=J[(c?c+12|0:2743576)>>2];wc(e+188|0);c=J[e+180>>2];J[e+180>>2]=0;if(!c)break Sa;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break Sa;J[699344]=0;$(5147,c|0);c= +J[699344];J[699344]=0;if((c|0)!=1)break Sa}break a}c=ea(0)|0;break na}c=ea(0)|0;break oa}c=ea(0)|0;break na}c=ea(0)|0;break qa}J[699344]=0;da(5366,e+188|0,c|0);c=J[699344];J[699344]=0;hb:{if((c|0)!=1){c=J[e+188>>2];ib:{if(c){d=J[J[c>>2]+28>>2];J[699344]=0;ca(d|0,e+260|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ib;c=ea(0)|0;break sa}J[e+260>>2]=0}J[699344]=0;aa(5153,e+220|0,e+260|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+260>>2];J[e+260>>2]=0;if(!c)break hb;J[699344]=0;d=J[c+4>>2]-1| +0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break hb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break hb}break a}c=ea(0)|0;zc(e+260|0);break sa}c=ea(0)|0;break na}c=J[e+220>>2];J[e+224>>2]=J[(c?c+12|0:2743576)>>2];wc(e+188|0)}J[699344]=0;ca(5365,e+188|0,l|0,1);c=J[699344];J[699344]=0;jb:{kb:{lb:{mb:{nb:{ob:{pb:{qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{yb:{zb:{Ab:{Bb:{Cb:{Db:{Eb:{Fb:{Gb:{if((c|0)!=1){J[699344]=0;da(5366,e+180|0,J[e+188>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break Gb; +c=J[e+188>>2];J[e+188>>2]=0;Hb:{if(!c)break Hb;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break Hb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;ca(5365,e+188|0,l|0,2);c=J[699344];J[699344]=0;if((c|0)==1)break Fb;c=J[e+188>>2];Ib:{if(!c)break Ib;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break Ib;J[699344]=0;$(5147,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}J[e+176>> +2]=0;if(J[c+8>>2]!=4)break ta;J[699344]=0;d=e+188|0;da(5361,d|0,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break Eb;J[699344]=0;f=pd(d,2423658,-1);h=J[699344];J[699344]=0;if((h|0)==1)break Db;wc(d);if(f)break tb;if(J[c+8>>2]!=4)break sb;if(J[c+44>>2]!=4)break xa;J[699344]=0;ca(5365,e+172|0,c|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break Cb;d=J[e+172>>2];if(J[d+8>>2]!=1){J[699344]=0;da(5364,d|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break wb}d=J[d+20>>2];J[699344]=0;ca(5365,e+168| +0,c|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break Bb;f=J[e+168>>2];if(J[f+8>>2]!=1){J[699344]=0;da(5364,f|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break xb}f=J[f+20>>2];J[699344]=0;ca(5365,e+164|0,c|0,2);h=J[699344];J[699344]=0;if((h|0)==1)break Ab;h=J[e+164>>2];if(J[h+8>>2]!=1){J[699344]=0;da(5364,h|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break yb}h=J[h+20>>2];J[699344]=0;i=e+160|0;ca(5365,i|0,c|0,3);c=J[699344];J[699344]=0;if((c|0)==1)break zb;c=J[e+160>> +2];if(J[c+8>>2]!=1){J[699344]=0;da(5364,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;zc(i);break yb}i=J[c+20>>2];J[e+160>>2]=0;J[699344]=0;J[e+192>>2]=f;J[e+200>>2]=f+i;J[e+188>>2]=d;J[e+196>>2]=d+h;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!d){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+164>>2];J[e+164>>2]=0;Jb:{if(!c)break Jb;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break Jb; +J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+168>>2];J[e+168>>2]=0;Kb:{if(!c)break Kb;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break Kb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+172>>2];J[e+172>>2]=0;Lb:{if(!c)break Lb;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break Lb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]= +0;d=_(4,108)|0;c=J[699344];J[699344]=0;if((c|0)==1)break vb;J[699344]=0;c=aa(5367,d|0,e+188|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break jb;J[699344]=0;J[e+172>>2]=0;aa(5145,e+172|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break vb;J[699344]=0;aa(5145,e+176|0,J[e+172>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break ub;c=J[e+172>>2];J[e+172>>2]=0;if(!c)break xa;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break xa;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]= +0;if((c|0)!=1)break xa}break a}c=ea(0)|0;break na}c=ea(0)|0;zc(e+188|0);break na}c=ea(0)|0;break ua}c=ea(0)|0;break va}c=ea(0)|0;wc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;break wb}c=ea(0)|0;break xb}c=ea(0)|0}zc(e+164|0)}zc(e+168|0)}zc(e+172|0);break va}c=ea(0)|0;break va}c=ea(0)|0;zc(e+172|0);break va}J[699344]=0;d=e+188|0;da(5361,d|0,c|0);f=J[699344];J[699344]=0;Mb:{Nb:{Ob:{Pb:{Qb:{if((f|0)!=1){J[699344]=0;f=pd(d,2423663,-1);h=J[699344];J[699344]=0;if((h|0)==1)break Qb;wc(d);if(f)break Mb; +if(J[c+8>>2]!=4)break sb;f=J[c+44>>2];if(f&1)break xa;J[699344]=0;i=(f|0)/2|0;d=i-1|0;h=ha(5368,e+136|0,2412952,0,d|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break Pb;J[699344]=0;j=ha(5368,e+112|0,2412952,0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Ob;d=0;if((f|0)>1)break Nb;break za}c=ea(0)|0;break va}c=ea(0)|0;wc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;Hd(h);break va}Rb:{while(1){Sb:{J[699344]=0;m=d<<1;ca(5365,e+188|0,c|0,m|0);f=J[699344];J[699344]=0;if((f|0)==1)break Sb;f=J[e+188>> +2];if(J[f+8>>2]!=1){J[699344]=0;da(5364,f|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Ba}if(!(J[e+152>>2]<=(d|0)&J[e+156>>2]>=(d|0))){J[699344]=0;d=ja(5178,e+264|0,2412985,2413048,619,2413160,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ba;J[699344]=0;$(5179,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;Kc(d);break Aa}J[J[e+140>>2]+(d-J[e+144>>2]<<2)>>2]=J[f+20>>2];J[699344]=0;J[e+188>>2]=0;o=J[f+4>>2]-1|0;J[f+4>>2]=o;r=J[699344];J[699344]=0;if((r|0)==1)break a;if(!o){J[699344]= +0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}J[699344]=0;ca(5365,e+188|0,c|0,m|1);f=J[699344];J[699344]=0;if((f|0)==1)break Rb;f=J[e+188>>2];if(J[f+8>>2]!=1){J[699344]=0;da(5364,f|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Da}if(!(J[e+128>>2]<=(d|0)&J[e+132>>2]>=(d|0))){J[699344]=0;d=ja(5178,e+288|0,2412985,2413048,619,2413160,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Da;J[699344]=0;$(5179,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;Kc(d);break Ca}J[J[e+ +116>>2]+(d-J[e+120>>2]<<2)>>2]=J[f+20>>2];J[699344]=0;J[e+188>>2]=0;m=J[f+4>>2]-1|0;J[f+4>>2]=m;o=J[699344];J[699344]=0;if((o|0)==1)break a;if(!m){J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}d=d+1|0;if((i|0)!=(d|0))continue;break za}break}c=ea(0)|0;break ya}c=ea(0)|0;break ya}J[699344]=0;d=e+188|0;da(5361,d|0,c|0);f=J[699344];J[699344]=0;Tb:{Ub:{Vb:{Wb:{Xb:{Yb:{Zb:{_b:{$b:{ac:{bc:{if((f|0)!=1){J[699344]=0;f=pd(d,2423668,-1);h=J[699344];J[699344]=0;if((h|0)==1)break bc;wc(d); +if(f)break Tb;if(J[c+8>>2]!=4)break sb;if(J[c+44>>2]!=4)break xa;J[699344]=0;ca(5365,e+172|0,c|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break ac;d=J[e+172>>2];if(J[d+8>>2]!=1){J[699344]=0;da(5364,d|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break Wb}d=J[d+20>>2];J[699344]=0;ca(5365,e+168|0,c|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break $b;f=J[e+168>>2];if(J[f+8>>2]!=1){J[699344]=0;da(5364,f|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break Xb}f=J[f+20>>2];J[699344]= +0;ca(5365,e+164|0,c|0,2);h=J[699344];J[699344]=0;if((h|0)==1)break _b;h=J[e+164>>2];if(J[h+8>>2]!=1){J[699344]=0;da(5364,h|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break Yb}h=J[h+20>>2];J[699344]=0;i=e+160|0;ca(5365,i|0,c|0,3);c=J[699344];J[699344]=0;if((c|0)==1)break Zb;c=J[e+160>>2];if(J[c+8>>2]!=1){J[699344]=0;da(5364,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;zc(i);break Yb}i=J[c+20>>2];J[e+160>>2]=0;J[699344]=0;J[e+192>>2]=f;J[e+200>>2]=f+i;J[e+188>>2]=d; +J[e+196>>2]=d+h;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!d){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+164>>2];J[e+164>>2]=0;cc:{if(!c)break cc;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break cc;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+168>>2];J[e+168>>2]=0;dc:{if(!c)break dc;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a; +if(d)break dc;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+172>>2];J[e+172>>2]=0;ec:{if(!c)break ec;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break ec;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;d=_(4,140)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Vb;J[699344]=0;c=aa(5369,d|0,e+188|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Ra;J[699344]=0;J[e+172>>2]=0;aa(5145,e+172|0,c|0)|0;c=J[699344]; +J[699344]=0;if((c|0)==1)break Vb;J[699344]=0;aa(5145,e+176|0,J[e+172>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ub;c=J[e+172>>2];J[e+172>>2]=0;if(!c)break xa;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break xa;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break xa}break a}c=ea(0)|0;break va}c=ea(0)|0;wc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;break Wb}c=ea(0)|0;break Xb}c=ea(0)|0}zc(e+164|0)}zc(e+168|0)}zc(e+172|0);break va}c=ea(0)| +0;break va}c=ea(0)|0;zc(e+172|0);break va}J[699344]=0;d=e+188|0;da(5361,d|0,c|0);f=J[699344];J[699344]=0;fc:{gc:{hc:{ic:{jc:{kc:{lc:{mc:{nc:{oc:{pc:{if((f|0)!=1){J[699344]=0;f=pd(d,2423762,-1);h=J[699344];J[699344]=0;if((h|0)==1)break pc;wc(d);if(f)break fc;if(J[c+8>>2]!=4)break sb;if(J[c+44>>2]!=4)break xa;J[699344]=0;ca(5365,e+172|0,c|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break oc;d=J[e+172>>2];if(J[d+8>>2]!=1){J[699344]=0;da(5364,d|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0; +break ic}d=J[d+20>>2];J[699344]=0;ca(5365,e+168|0,c|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break nc;f=J[e+168>>2];if(J[f+8>>2]!=1){J[699344]=0;da(5364,f|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break jc}f=J[f+20>>2];J[699344]=0;ca(5365,e+164|0,c|0,2);h=J[699344];J[699344]=0;if((h|0)==1)break mc;h=J[e+164>>2];if(J[h+8>>2]!=1){J[699344]=0;da(5364,h|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break kc}h=J[h+20>>2];J[699344]=0;i=e+160|0;ca(5365,i|0,c|0,3);c=J[699344]; +J[699344]=0;if((c|0)==1)break lc;c=J[e+160>>2];if(J[c+8>>2]!=1){J[699344]=0;da(5364,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;zc(i);break kc}i=J[c+20>>2];J[e+160>>2]=0;J[699344]=0;J[e+192>>2]=f;J[e+200>>2]=f+i;J[e+188>>2]=d;J[e+196>>2]=d+h;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!d){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+164>>2];J[e+164>>2]=0;qc:{if(!c)break qc;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344]; +J[699344]=0;if((f|0)==1)break a;if(d)break qc;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+168>>2];J[e+168>>2]=0;rc:{if(!c)break rc;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break rc;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+172>>2];J[e+172>>2]=0;sc:{if(!c)break sc;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break sc;J[699344]=0;$(5147,c|0);c=J[699344]; +J[699344]=0;if((c|0)==1)break a}J[699344]=0;d=_(4,108)|0;c=J[699344];J[699344]=0;if((c|0)==1)break hc;J[699344]=0;c=aa(5367,d|0,e+188|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Qa;J[699344]=0;J[e+172>>2]=0;aa(5145,e+172|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break hc;c=J[e+172>>2];J[c+52>>2]=100;H[c+56|0]=1;J[699344]=0;aa(5145,e+176|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break gc;c=J[e+172>>2];J[e+172>>2]=0;if(!c)break xa;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]= +0;if((f|0)!=1){if(d)break xa;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break xa}break a}c=ea(0)|0;break va}c=ea(0)|0;wc(e+188|0);break va}c=ea(0)|0;break va}c=ea(0)|0;break ic}c=ea(0)|0;break jc}c=ea(0)|0}zc(e+164|0)}zc(e+168|0)}zc(e+172|0);break va}c=ea(0)|0;break va}c=ea(0)|0;zc(e+172|0);break va}J[699344]=0;d=e+188|0;da(5361,d|0,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break qb;J[699344]=0;f=pd(d,2423767,-1);h=J[699344];J[699344]=0;if((h|0)==1)break pb;wc(d);if(f)break xa;if(J[c+ +8>>2]==4)break rb}J[699344]=0;da(5364,c|0,4);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break wa}if(J[c+44>>2]!=4)break xa;J[699344]=0;f=ha(5368,e+88|0,2412952,0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break ob;J[699344]=0;h=ha(5368,e- -64|0,2412952,0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break nb;J[699344]=0;ca(5365,e+188|0,c|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break lb;d=J[e+188>>2];if(J[d+8>>2]==1)break mb;break Ha}c=ea(0)|0;break va}c=ea(0)|0;wc(e+188|0);break va}c=ea(0)|0;break va}c= +ea(0)|0;Hd(f);break va}if(J[e+108>>2]<0|J[e+104>>2]>0)break La;J[J[e+92>>2]-(J[e+96>>2]<<2)>>2]=J[d+20>>2];J[699344]=0;J[e+188>>2]=0;i=J[d+4>>2]-1|0;J[d+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(!i){J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}J[699344]=0;ca(5365,e+188|0,c|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break kb;d=J[e+188>>2];if(J[d+8>>2]!=1)break Oa;if(J[e+84>>2]<0|J[e+80>>2]>0)break Pa;J[J[e+68>>2]-(J[e+72>>2]<<2)>>2]=J[d+20>>2];J[699344]=0;J[e+188>> +2]=0;i=J[d+4>>2]-1|0;J[d+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(!i){J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}J[699344]=0;ca(5365,e+188|0,c|0,2);d=J[699344];J[699344]=0;if((d|0)==1)break lb;d=J[e+188>>2];if(J[d+8>>2]!=1)break Ha;if(J[e+108>>2]<=0|J[e+104>>2]>1)break La;J[J[e+92>>2]+(1-J[e+96>>2]<<2)>>2]=J[d+20>>2];J[699344]=0;J[e+188>>2]=0;i=J[d+4>>2]-1|0;J[d+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(!i){J[699344]=0;$(5147,d|0);d=J[699344];J[699344]= +0;if((d|0)==1)break a}J[699344]=0;ca(5365,e+188|0,c|0,3);c=J[699344];J[699344]=0;if((c|0)==1)break kb;d=J[e+188>>2];if(J[d+8>>2]!=1)break Oa;if(J[e+84>>2]<=0|J[e+80>>2]>1)break Pa;J[J[e+68>>2]+(1-J[e+72>>2]<<2)>>2]=J[d+20>>2];J[699344]=0;J[e+188>>2]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(!c){J[699344]=0;$(5147,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;c=J[e+92>>2];i=J[e+96>>2];j=J[e+68>>2];m=J[e+72>>2];d=_(4,148)|0;o=J[699344];J[699344]=0;if((o| +0)!=1)break Ka;break Ja}c=ea(0)|0;break Ea}c=ea(0)|0;break Ea}c=ea(0)|0;uc(d);break va}k=Z()|0;id(p);break ja}c=ea(0)|0;uc(d);break va}c=ea(0)|0;uc(d);break va}J[699344]=0;d=ja(5178,e+336|0,2412985,2413048,619,2413160,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Na;J[699344]=0;$(5179,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;Kc(d);break Ma}J[699344]=0;da(5364,d|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia}c=ea(0)|0}zc(e+188|0);break Ea}J[699344]=0;d=ja(5178,e+312|0,2412985, +2413048,619,2413160,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ga;J[699344]=0;$(5179,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;Kc(d);break Fa}J[699344]=0;c=na(5370,d|0,c-(i<<2)|0,j-(m<<2)|0,2,1)|0;i=J[699344];J[699344]=0;if((i|0)!=1){J[699344]=0;J[e+188>>2]=0;aa(5145,e+188|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ja;c=J[e+188>>2];H[c+64|0]=1;J[699344]=0;aa(5145,e+176|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ia;c=J[e+188>>2];J[e+188>>2]=0;tc:{if(!c)break tc; +J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(d)break tc;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}Hd(h);Hd(f);break xa}c=ea(0)|0;uc(d);break Ea}c=ea(0)|0;break Ea}c=ea(0)|0;zc(e+188|0);break Ea}J[699344]=0;da(5364,d|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ia}c=ea(0)|0}zc(e+188|0)}Hd(h);Hd(f);break va}c=ea(0)|0}zc(e+188|0);break ya}c=ea(0)|0}zc(e+188|0);break ya}J[699344]=0;c=J[e+140>>2];f=J[e+144>>2];m=J[e+116>>2];o=J[e+120>> +2];d=_(4,148)|0;r=J[699344];J[699344]=0;uc:{vc:{if((r|0)!=1){J[699344]=0;c=na(5370,d|0,c-(f<<2)|0,m-(o<<2)|0,i|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break vc;J[699344]=0;J[e+188>>2]=0;aa(5145,e+188|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break uc}c=ea(0)|0;break ya}c=ea(0)|0;uc(d);break ya}J[699344]=0;aa(5145,e+176|0,J[e+188>>2])|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+188>>2];J[e+188>>2]=0;wc:{if(!c)break wc;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)== +1)break a;if(d)break wc;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}Hd(j);Hd(h);break xa}c=ea(0)|0;zc(e+188|0)}Hd(j);Hd(h);break va}d=J[e+176>>2];if(!d)break ta;c=J[e+220>>2];xc:{if(c){f=J[J[c>>2]+28>>2];J[699344]=0;ca(f|0,e+360|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break xc;break wa}J[e+360>>2]=0}J[699344]=0;aa(5153,d+8|0,e+360|0)|0;c=J[699344];J[699344]=0;yc:{if((c|0)!=1){c=J[e+360>>2];J[e+360>>2]=0;if(!c)break yc;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344]; +J[699344]=0;if((h|0)!=1){if(f)break yc;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break yc}break a}c=ea(0)|0;zc(e+360|0);break va}c=J[d+8>>2];J[d+12>>2]=J[(c?c+12|0:2743576)>>2];d=J[e+176>>2];c=J[n>>2];zc:{if(c){f=J[J[c>>2]+28>>2];J[699344]=0;ca(f|0,e+364|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break wa;break zc}J[e+364>>2]=0}J[699344]=0;aa(5153,d+16|0,e+364|0)|0;c=J[699344];J[699344]=0;Ac:{if((c|0)!=1){c=J[e+364>>2];J[e+364>>2]=0;if(!c)break Ac;J[699344]=0;f=J[c+4>>2]-1|0;J[c+ +4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break Ac;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break Ac}break a}c=ea(0)|0;zc(e+364|0);break va}c=J[d+16>>2];J[d+20>>2]=J[(c?c+12|0:2743576)>>2];d=J[e+176>>2];c=J[e+180>>2];Bc:{if(c){f=J[J[c>>2]+28>>2];J[699344]=0;ca(f|0,e+368|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break wa;break Bc}J[e+368>>2]=0}J[699344]=0;aa(5153,d+24|0,e+368|0)|0;c=J[699344];J[699344]=0;Cc:{if((c|0)!=1){c=J[e+368>>2];J[e+368>>2]=0;if(!c)break Cc;J[699344]= +0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break Cc;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break Cc}break a}c=ea(0)|0;zc(e+368|0);break va}c=J[d+24>>2];J[d+28>>2]=J[(c?c+12|0:2743576)>>2];Dc:{if(J[l+8>>2]!=4)break Dc;i=l+40|0;h=3;Ec:{Fc:{Gc:{Hc:{Ic:{Jc:{Kc:{while(1){if(J[l+44>>2]<=(h|0)){J[699344]=0;c=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break wa;J[c>>2]=0;J[c+4>>2]=0;d=J[e+176>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]= +0;if((d|0)==1)break wa;d=J[e+176>>2]}else d=0;J[c+8>>2]=d;J[699344]=0;vf(g,c);c=J[699344];J[699344]=0;if((c|0)==1)break wa;c=J[e+176>>2];J[e+176>>2]=0;if(!c)break ta;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break ta;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ta}break a}d=0;Lc:{c=J[l+48>>2];Mc:{if(!c){J[e+376>>2]=i;J[e+372>>2]=0;break Mc}while(1){Nc:{c=J[c>>2];d=d+1|0;if(h>>>0<=d>>>0)break Nc;if(c)continue}break}J[e+376>>2]=i;J[e+372>> +2]=c;if(c)break Lc}J[699344]=0;da(5243,e+372|0,i|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;c=ea(0)|0;break va}Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{d=J[c+8>>2];Vc:{if(!d){c=0;break Vc}J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break Uc;c=J[c+8>>2];if(!c){c=0;break Vc}J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break Vc;J[699344]=0;$(5147,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}if(J[c+8>>2]!=4)break Pc;J[e+56>>2]=0;J[e+60>> +2]=J[685894];d=J[c+12>>2];Wc:{if(d){f=J[J[d>>2]+28>>2];J[699344]=0;ca(f|0,e+380|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break Wc;c=ea(0)|0;break Sc}J[e+380>>2]=0}J[699344]=0;aa(5153,e+56|0,e+380|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Tc;d=J[e+380>>2];J[e+380>>2]=0;Xc:{if(!d)break Xc;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(f)break Xc;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}d=J[e+56>>2];J[e+60>>2]=J[(d?d+12|0:2743576)>> +2];J[699344]=0;d=pd(e+56|0,2423733,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Oc;if(d)break Rc;H[J[e+176>>2]+36|0]=1;break Qc}c=ea(0)|0;break va}c=ea(0)|0;zc(e+380|0)}wc(e+56|0);break va}J[699344]=0;d=pd(e+56|0,2423745,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[699344]=0;da(5364,c|0,4);break Fc}d=J[c+48>>2];c=c+40|0;J[e+52>>2]=c;J[e+48>>2]=d;if(!d){J[699344]=0;da(5243,e+48|0,c|0);break Fc}c=J[d+8>>2];if(J[c+8>>2]!=3)break Qc;J[699344]=0;d=e+188|0;da(5356,d|0,c|0); +c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+188>>2];s=J[e+176>>2],t=yt(J[(c?c+12|0:2743576)>>2],255),J[s+48>>2]=t;wc(d);break Qc}break Ec}J[699344]=0;d=pd(e+56|0,2423772,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[699344]=0;da(5364,c|0,4);break Gc}d=J[c+48>>2];c=c+40|0;J[e+44>>2]=c;J[e+40>>2]=d;if(!d){J[699344]=0;da(5243,e+40|0,c|0);break Gc}c=J[d+8>>2];if(J[c+8>>2]!=1)break Qc;J[J[e+176>>2]+52>>2]=J[c+20>>2];break Qc}J[699344]=0;d=pd(e+56|0,2423780,-1);f=J[699344];J[699344]= +0;if((f|0)==1)break Oc;if(!d){H[J[e+176>>2]+65|0]=1;break Qc}J[699344]=0;d=pd(e+56|0,2423786,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[699344]=0;da(5364,c|0,4);break Hc}d=J[c+48>>2];c=c+40|0;J[e+36>>2]=c;J[e+32>>2]=d;if(!d){J[699344]=0;da(5243,e+32|0,c|0);break Hc}c=J[d+8>>2];if(J[c+8>>2]!=1)break Qc;J[J[e+176>>2]+68>>2]=J[c+20>>2];break Qc}J[699344]=0;d=pd(e+56|0,2423792,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[699344]=0;da(5364, +c|0,4);break Ic}d=J[c+48>>2];c=c+40|0;J[e+28>>2]=c;J[e+24>>2]=d;if(!d){J[699344]=0;da(5243,e+24|0,c|0);break Ic}c=J[d+8>>2];if(J[c+8>>2]!=3)break Qc;J[699344]=0;d=e+188|0;da(5356,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+188>>2];s=J[e+176>>2],t=yt(J[(c?c+12|0:2743576)>>2],255),J[s+60>>2]=t;wc(d);break Qc}break Ec}J[699344]=0;d=pd(e+56|0,2423800,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[699344]=0;da(5364,c|0,4);break Jc}d=J[c+48>>2];c=c+40|0;J[e+20>>2]=c; +J[e+16>>2]=d;if(!d){J[699344]=0;da(5243,e+16|0,c|0);break Jc}c=J[d+8>>2];if(J[c+8>>2]!=3)break Qc;J[699344]=0;d=e+188|0;da(5356,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+188>>2];s=J[e+176>>2],t=yt(J[(c?c+12|0:2743576)>>2],255),J[s+48>>2]=t;wc(d);break Qc}break Ec}J[699344]=0;d=pd(e+56|0,2423808,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Oc;if(!d){if(J[c+8>>2]!=4){J[699344]=0;da(5364,c|0,4);break Kc}d=J[c+48>>2];c=c+40|0;J[e+12>>2]=c;J[e+8>>2]=d;if(!d){J[699344]=0;da(5243,e+8|0,c|0);break Kc}c= +J[d+8>>2];if(J[c+8>>2]!=3)break Qc;J[699344]=0;d=e+188|0;da(5356,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+188>>2];s=J[e+176>>2],t=yt(J[(c?c+12|0:2743576)>>2],255),J[s+60>>2]=t;wc(d);break Qc}break Ec}J[699344]=0;d=pd(e+56|0,2423816,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Oc;if(!d){H[J[e+176>>2]+57|0]=1;break Qc}J[699344]=0;f=e+56|0;j=pd(f,2423673,-1);d=J[699344];J[699344]=0;if((d|0)==1)break Ec;d=0;Yc:{if(!j)break Yc;J[699344]=0;j=pd(f,2423678,-1);d=J[699344];J[699344]=0;if((d|0)== +1)break Ec;d=1;if(!j)break Yc;J[699344]=0;j=pd(f,2423682,-1);d=J[699344];J[699344]=0;if((d|0)==1)break Ec;d=2;if(!j)break Yc;J[699344]=0;j=pd(f,2423689,-1);d=J[699344];J[699344]=0;if((d|0)==1)break Ec;d=3;if(!j)break Yc;J[699344]=0;j=pd(f,2423699,-1);d=J[699344];J[699344]=0;if((d|0)==1)break Ec;d=4;if(!j)break Yc;J[699344]=0;j=pd(f,2423710,-1);d=J[699344];J[699344]=0;if((d|0)==1)break Ec;d=5;if(!j)break Yc;J[699344]=0;d=pd(f,2423721,-1);f=J[699344];J[699344]=0;if((f|0)==1)break Ec;if(d)break Qc;d= +6}J[J[e+176>>2]+32>>2]=d;if(J[c+8>>2]!=4){J[699344]=0;da(5364,c|0,4);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Ec}d=J[c+48>>2];if(!d)break Qc;while(1){if(J[c+8>>2]!=4){J[699344]=0;da(5364,c|0,4);c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Ec}j=J[d+8>>2];f=J[j+8>>2];if((f|0)==3){J[699344]=0;f=e+188|0;da(5356,f|0,j|0);m=J[699344];J[699344]=0;if((m|0)==1)break Ec;m=J[e+188>>2];s=J[e+176>>2],t=yt(J[(m?m+12|0:2743576)>>2],255),J[s+40>>2]=t;wc(f);f=J[j+8>>2]}if((f|0)==1)J[J[e+176>>2]+44>> +2]=J[j+20>>2];d=J[d>>2];if(d)continue;break}}wc(e+56|0)}h=h+1|0;if(J[l+8>>2]==4)continue;break Dc}break}break Ec}c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Ec}c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Ec}c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Ec}c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Ec}c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break Ec}c=J[699344];J[699344]=0;if((c|0)!=1)break ia}c=ea(0)|0;wc(e+56|0);break va}J[699344]=0;da(5364,l|0,4);c=J[699344];J[699344]= +0;if((c|0)!=1)break ia;c=ea(0)|0;break va}c=ea(0)|0}zc(e+176|0)}wc(e+180|0);break na}wc(e+180|0);wc(n);wc(e+220|0);break la}wc(e+188|0);break na}wc(e+188|0)}zc(e+180|0);break na}wc(e+188|0)}zc(e+180|0)}wc(n)}wc(e+220|0);oa(c|0)|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)==1)break ka}wc(e+228|0)}k=J[k>>2];if(k)continue;break}id(p);fc=e+384|0;break ha}k=Z()|0;break ja}k=Z()|0;wc(e+228|0);id(p)}id(g);ba(k|0);B()}B()}J[699344]=0;aa(5242,a+28|0,g|0)|0;c=J[699344];J[699344]=0;Zc:{if((c|0)!= +1){id(g);c=fc-96|0;fc=c;J[g>>2]=0;J[g+4>>2]=0;J[g+24>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;n=Co(g,2401340);J[699344]=0;l=aa(5201,c+28|0,b|0)|0;b=J[699344];J[699344]=0;_c:{$c:{if((b|0)!=1){ad:{bd:{k=J[l+8>>2];if(k)while(1){f=J[k+8>>2];cd:{if(J[f+8>>2]!=4)break cd;J[699344]=0;b=c+20|0;da(5361,b|0,f|0);d=J[699344];J[699344]=0;dd:{ed:{fd:{gd:{if((d|0)!=1){J[699344]=0;d=pd(b,2407455,-1);e=J[699344];J[699344]=0;if((e|0)!=1){wc(b);if(d)break cd;if(J[f+8>>2]!=4)break gd;p=f+40|0;d=0;hd:{id:{jd:{kd:{ld:{md:{nd:{od:{while(1){if(J[f+ +44>>2]<=(d|0))break cd;b=J[f+48>>2];pd:{if(!d)break pd;e=0;if(!b)break pd;while(1){b=J[b>>2];e=e+1|0;if(e>>>0>=d>>>0)break pd;if(b)continue;break}}J[c+68>>2]=p;J[c+64>>2]=b;if(!b){J[699344]=0;da(5243,c- -64|0,p|0);b=J[699344];J[699344]=0;if((b|0)!=1)break fd;b=ea(0)|0;break dd}qd:{e=J[b+8>>2];rd:{if(!e){b=0;break rd}J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break qd;b=J[b+8>>2];if(!b){b=0;break rd}J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)== +1)break a;if(e)break rd;J[699344]=0;$(5147,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}if(J[b+8>>2]==4){J[c+12>>2]=0;J[c+16>>2]=J[685894];e=J[b+12>>2];sd:{if(e){h=J[J[e>>2]+28>>2];J[699344]=0;ca(h|0,c+44|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break sd;b=ea(0)|0;break nd}J[c+44>>2]=0}J[699344]=0;aa(5153,c+12|0,c+44|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break od;e=J[c+44>>2];J[c+44>>2]=0;td:{if(!e)break td;J[699344]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break a; +if(h)break td;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}e=J[c+12>>2];J[c+16>>2]=J[(e?e+12|0:2743576)>>2];if(J[b+8>>2]!=4){J[699344]=0;da(5364,b|0,4);b=J[699344];J[699344]=0;if((b|0)!=1)break fd;break id}if(J[b+44>>2]<=0){J[699344]=0;ca(5218,c+56|0,2398577,b+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break id;b=J[c+56>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;d=ja(5178,c- -64|0,b|0,2389637,384,2401717,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ld;J[699344]=0;$(5179,d| +0);b=J[699344];J[699344]=0;if((b|0)!=1)break fd;b=ea(0)|0;Kc(d);break jd}e=J[b+48>>2];b=b+40|0;J[c+52>>2]=b;J[c+48>>2]=e;if(!e){J[699344]=0;da(5243,c+48|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break fd;break id}b=J[e+8>>2];J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break md;b=J[e+8>>2];J[c+44>>2]=b;if(J[b+8>>2]!=2){J[699344]=0;da(5364,b|0,2);b=J[699344];J[699344]=0;if((b|0)!=1)break fd;b=ea(0)|0;break kd}J[c+20>>2]=0;J[c+24>>2]=J[685894];ud:{b=J[b+24>>2];vd:{wd:{if(b){e= +J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,c+88|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break wd;b=ea(0)|0;break vd}J[c+88>>2]=0}J[699344]=0;aa(5153,c+20|0,c+88|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+88>>2];J[c+88>>2]=0;if(!b)break ud;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)!=1){if(e)break ud;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break ud}break a}b=ea(0)|0;zc(c+88|0)}wc(c+20|0);break kd}b=J[c+20>>2];J[c+24>>2]=J[(b?b+12|0:2743576)>>2];J[699344]= +0;e=aa(5338,n|0,c+12|0)|0;b=J[699344];J[699344]=0;xd:{yd:{zd:{Ad:{if((b|0)!=1){b=J[c+20>>2];if(!b)break Ad;h=J[J[b>>2]+28>>2];J[699344]=0;ca(h|0,c+92|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break zd}b=ea(0)|0;break yd}J[c+92>>2]=0}J[699344]=0;aa(5153,e+24|0,c+92|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+92>>2];J[c+92>>2]=0;if(!b)break xd;J[699344]=0;h=J[b+4>>2]-1|0;J[b+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break xd;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break xd}break a}b= +ea(0)|0;zc(c+92|0)}wc(c+20|0);break kd}b=J[e+24>>2];J[e+28>>2]=J[(b?b+12|0:2743576)>>2];wc(c+20|0);b=J[c+44>>2];J[c+44>>2]=0;Bd:{if(!b)break Bd;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break Bd;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}wc(c+12|0)}d=d+1|0;if(J[f+8>>2]==4)continue;break gd}break}b=ea(0)|0;break dd}b=ea(0)|0;zc(c+44|0)}wc(c+12|0);break dd}b=ea(0)|0;break hd}b=ea(0)|0;break jd}zc(c+44|0);break hd}wc(c+56|0);break hd}b= +ea(0)|0}wc(c+12|0);break dd}b=Z()|0;wc(c+20|0);break ad}b=Z()|0;break ad}J[699344]=0;da(5364,f|0,4);b=J[699344];J[699344]=0;if((b|0)==1)break ed}B()}b=ea(0)|0}oa(b|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break bd}k=J[k>>2];if(k)continue;break}id(l);fc=c+96|0;break _c}b=Z()|0}id(l);break $c}b=Z()|0}Md(n);ba(b|0);B()}J[699344]=0;aa(5362,a+44|0,g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Zc;Md(g);fc=q+32|0;return}a=Z()|0;id(q+4|0);ba(a|0);B()}a=Z()|0;Md(q+4|0);ba(a|0);B()}ea(0)| +0;Bc();B()}function JQa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=vc(8);J[699344]=0;c=ga(3545,b|0,2658384,315)|0;d=J[699344];J[699344]=0;a:{if((d|0)!=1)b:{J[664490]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2662176,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664497]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2665968,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664504]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2669760,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664511]=c;b=vc(8);J[699344]= +0;c=ga(3545,b|0,2673552,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664518]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2677344,316)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664525]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2681136,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664532]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2684928,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664539]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2688720,190)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664546]= +c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2691008,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664553]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2694800,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664560]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2698592,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664567]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2702384,315)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[664574]=c;b=vc(8);J[699344]=0;c=ga(3545,b|0,2706176,202)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break b;J[664581]=c;break a}a=Z()|0;uc(b);ba(a|0);B()}c=vc(12);J[699344]=0;b=_(3604,c|0)|0;d=J[699344];J[699344]=0;c:{d:{if((d|0)!=1){J[a>>2]=b;b=255;while(1){c=b;d=J[(b<<2)+2708672>>2];if(d)F_(J[a>>2],d,b);b=c-1|0;if(c)continue;break}h=a,i=Ro(aK(),784442),J[h+4>>2]=i;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{if((d|0)!=1){J[a+8>>2]=b;c=vc(8);J[699344]=0;d=aa(3349, +c|0,796265)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[a+8>>2];c=vc(8);J[699344]=0;f=aa(3349,c|0,797118)|0;e=J[699344];J[699344]=0;if((e|0)==1){a=Z()|0;break c}Jg(b,f,d);c=vc(12);J[699344]=0;b=_(3604,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break N;J[a+12>>2]=b;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break M;J[a+16>>2]=b;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break L;J[a+20>>2]=b;c=vc(16);J[699344]=0;b=aa(3539,c|0,0)| +0;d=J[699344];J[699344]=0;if((d|0)==1)break K;J[a+24>>2]=b;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break J;J[a+28>>2]=b;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break I;J[a+32>>2]=b;c=vc(16);J[699344]=0;b=_(3352,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break H;J[a+36>>2]=b;c=vc(1036);J[699344]=0;b=RZ(c);d=J[699344];J[699344]=0;if((d|0)==1)break G;J[a+40>>2]=b;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break F;J[a+44>>2]=b;c=vc(16);J[699344]=0;b=_(3352,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break E;J[a+48>>2]=b;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break D;J[a+52>>2]=b;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break C;J[a+56>>2]=b;c=vc(4);J[699344]=0;b=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)==1)break B;J[699344]=0;d=_(3352,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1){a=Z()|0;uc(b);break c}J[c>>2]=d;J[a+64>>2]=612; +J[a+68>>2]=792;J[a+60>>2]=c;J[a+112>>2]=2;J[a+104>>2]=1;J[a+108>>2]=0;J[a+96>>2]=0;J[a+100>>2]=1;J[a+88>>2]=1;J[a+92>>2]=0;J[a+80>>2]=612;J[a+84>>2]=792;J[a+72>>2]=0;J[a+76>>2]=0;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break A;J[a+116>>2]=b;c=vc(16);J[699344]=0;b=_(3352,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break z;J[a+120>>2]=b;c=vc(16);J[699344]=0;b=_(3352,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break y;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=1;J[a+140>> +2]=1;J[a+128>>2]=1;J[a+132>>2]=1;J[a+124>>2]=b;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=0;J[a+188>>2]=2E7;J[a+176>>2]=0;J[a+180>>2]=1081262080;J[a+168>>2]=0;J[a+172>>2]=0;J[a+160>>2]=1;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;c=vc(8);J[699344]=0;b=aa(3349,c|0,J[681538])|0;d=J[699344];J[699344]=0;if((d|0)==1)break x;J[a+212>>2]=1;J[a+204>>2]=0;J[a+208>>2]=1;J[a+200>>2]=b;c=vc(8);J[699344]=0;b=aa(3349,c|0,785771)|0;d=J[699344];J[699344]=0;if((d|0)==1)break w;J[a+220>>2]=0;J[a+216>>2]=b;c=vc(8);J[699344]= +0;b=aa(3349,c|0,786173)|0;d=J[699344];J[699344]=0;if((d|0)==1)break v;J[a+236>>2]=0;J[a+228>>2]=1;J[a+232>>2]=1;J[a+224>>2]=b;c=vc(8);J[699344]=0;b=aa(3349,c|0,787088)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;J[a+336>>2]=1;J[a+340>>2]=0;J[a+328>>2]=0;J[a+332>>2]=1;J[a+320>>2]=0;J[a+324>>2]=0;J[a+312>>2]=0;J[a+316>>2]=1072693248;J[a+304>>2]=0;J[a+308>>2]=0;J[a+296>>2]=0;J[a+300>>2]=1072693248;J[a+292>>2]=-1;J[a+284>>2]=0;J[a+288>>2]=-1;J[a+276>>2]=0;J[a+280>>2]=1;J[a+268>>2]=1;J[a+272>>2]=1;J[a+ +260>>2]=1;J[a+264>>2]=0;J[a+252>>2]=10;J[a+256>>2]=1;J[a+244>>2]=1500;J[a+248>>2]=1500;J[a+240>>2]=b;c=vc(8);J[699344]=0;b=aa(3349,c|0,788124)|0;d=J[699344];J[699344]=0;if((d|0)==1)break t;J[a+344>>2]=b;c=vc(8);J[699344]=0;b=aa(3349,c|0,789326)|0;d=J[699344];J[699344]=0;if((d|0)==1)break s;J[a+348>>2]=b;c=vc(8);J[699344]=0;b=aa(3349,c|0,790292)|0;d=J[699344];J[699344]=0;if((d|0)==1)break r;J[a+352>>2]=b;c=vc(8);J[699344]=0;b=aa(3349,c|0,790751)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;J[a+360>> +2]=0;J[a+364>>2]=0;J[a+356>>2]=b;J[a+384>>2]=1;J[a+376>>2]=1;J[a+380>>2]=0;J[a+368>>2]=0;J[a+372>>2]=0;c=vc(16);J[699344]=0;b=aa(3539,c|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[a+388>>2]=b;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{Va:{Wa:{if((d| +0)!=1){J[a+392>>2]=c;b=vc(16);J[b+8>>2]=0;J[b>>2]=8193;J[b+4>>2]=0;J[699344]=0;d=_(4,16)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Wa;J[699344]=0;f=_(3352,d|0)|0;e=J[699344];J[699344]=0;Xa:{Ya:{if((e|0)!=1){J[b+12>>2]=f;J[699344]=0;d=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Wa;J[699344]=0;e=aa(3349,d|0,797678)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ya;J[699344]=0;da(3508,f|0,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break Wa;sd(c,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8193; +J[b+4>>2]=1;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Xa;break Q}a=Z()|0;uc(d);break P}a=Z()|0;uc(d);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Za:{_a:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Q;J[699344]=0;e=aa(3349,c|0,798581)|0;g=J[699344];J[699344]=0;if((g|0)==1)break _a;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Q;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8449;J[b+4>> +2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Za;break R}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;$a:{ab:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break R;J[699344]=0;e=aa(3349,c|0,799447)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ab;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break R;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8449;J[b+4>>2]=1; +J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break $a;break S}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;bb:{cb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break S;J[699344]=0;e=aa(3349,c|0,799447)|0;g=J[699344];J[699344]=0;if((g|0)==1)break cb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break S;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8961;J[b+4>>2]=0;J[699344]= +0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break bb;break T}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;db:{eb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break T;J[699344]=0;e=aa(3349,c|0,800170)|0;g=J[699344];J[699344]=0;if((g|0)==1)break eb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break T;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=9217;J[b+4>>2]=0;J[699344]=0;c=_(4, +16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break db;break U}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;fb:{gb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break U;J[699344]=0;e=aa(3349,c|0,800823)|0;g=J[699344];J[699344]=0;if((g|0)==1)break gb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break U;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8705;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0; +d=J[699344];J[699344]=0;if((d|0)!=1)break fb;break V}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;hb:{ib:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break V;J[699344]=0;e=aa(3349,c|0,801619)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ib;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break V;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=16;J[b>>2]=8706;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344]; +J[699344]=0;if((d|0)!=1)break hb;break W}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;jb:{kb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break W;J[699344]=0;e=aa(3349,c|0,802394)|0;g=J[699344];J[699344]=0;if((g|0)==1)break kb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break W;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8194;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]= +0;if((d|0)!=1)break jb;break X}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;lb:{mb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break X;J[699344]=0;e=aa(3349,c|0,802934)|0;g=J[699344];J[699344]=0;if((g|0)==1)break mb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break X;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8450;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d| +0)!=1)break lb;break Y}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;nb:{ob:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Y;J[699344]=0;e=aa(3349,c|0,803680)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ob;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Y;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8195;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break nb; +break Z}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;pb:{qb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Z;J[699344]=0;e=aa(3349,c|0,804311)|0;g=J[699344];J[699344]=0;if((g|0)==1)break qb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Z;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8196;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break pb;break _}a= +Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;rb:{sb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break _;J[699344]=0;e=aa(3349,c|0,805441)|0;g=J[699344];J[699344]=0;if((g|0)==1)break sb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break _;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8197;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break rb;break $}a=Z()|0; +uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;tb:{ub:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break $;J[699344]=0;e=aa(3349,c|0,805896)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ub;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break $;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8198;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break tb;break aa}a=Z()|0;uc(c); +break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;vb:{wb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break aa;J[699344]=0;e=aa(3349,c|0,806362)|0;g=J[699344];J[699344]=0;if((g|0)==1)break wb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break aa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8199;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break vb;break ba}a=Z()|0;uc(c);break P}a= +Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;xb:{yb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ba;J[699344]=0;e=aa(3349,c|0,806778)|0;g=J[699344];J[699344]=0;if((g|0)==1)break yb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ba;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8196;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break xb;break ca}a=Z()|0;uc(c);break P}a=Z()| +0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;zb:{Ab:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ca;J[699344]=0;e=aa(3349,c|0,807059)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ab;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ca;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=8197;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break zb;break da}a=Z()|0;uc(c);break P}a=Z()|0; +uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Bb:{Cb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break da;J[699344]=0;e=aa(3349,c|0,807416)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Cb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break da;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=111;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Bb;break ea}a=Z()|0;uc(c);break P}a=Z()|0;uc(c); +break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Db:{Eb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ea;J[699344]=0;e=aa(3349,c|0,807895)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Eb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ea;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=114;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Db;break fa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]= +0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Fb:{Gb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break fa;J[699344]=0;e=aa(3349,c|0,808431)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Gb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break fa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=102;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Fb;break ga}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d= +_(3352,c|0)|0;e=J[699344];J[699344]=0;Hb:{Ib:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ga;J[699344]=0;e=aa(3349,c|0,808902)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ib;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ga;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=103;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Hb;break ha}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352, +c|0)|0;e=J[699344];J[699344]=0;Jb:{Kb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ha;J[699344]=0;e=aa(3349,c|0,809044)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Kb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ha;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=99;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Jb;break ia}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)| +0;e=J[699344];J[699344]=0;Lb:{Mb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ia;J[699344]=0;e=aa(3349,c|0,809388)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Mb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ia;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=112;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Lb;break ja}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e= +J[699344];J[699344]=0;Nb:{Ob:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ja;J[699344]=0;e=aa(3349,c|0,809712)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ob;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ja;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=48;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Nb;break ka}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344]; +J[699344]=0;Pb:{Qb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ka;J[699344]=0;e=aa(3349,c|0,810443)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Qb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ka;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=43;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Pb;break la}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]= +0;Rb:{Sb:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break la;J[699344]=0;e=aa(3349,c|0,807059)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Sb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break la;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=61;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Rb;break ma}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Tb:{Ub:{if((e| +0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ma;J[699344]=0;e=aa(3349,c|0,807059)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ub;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ma;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=45;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Tb;break na}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Vb:{Wb:{if((e|0)!= +1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break na;J[699344]=0;e=aa(3349,c|0,807416)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Wb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break na;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=115;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Vb;break oa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Xb:{Yb:{if((e|0)!=1){J[b+ +12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break oa;J[699344]=0;e=aa(3349,c|0,810558)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Yb;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break oa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=116;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Xb;break pa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Zb:{_b:{if((e|0)!=1){J[b+12>> +2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break pa;J[699344]=0;e=aa(3349,c|0,811080)|0;g=J[699344];J[699344]=0;if((g|0)==1)break _b;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break pa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=110;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Zb;break qa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;$b:{ac:{if((e|0)!=1){J[b+12>>2]= +d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break qa;J[699344]=0;e=aa(3349,c|0,836676)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ac;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break qa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=119;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break $b;break ra}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;bc:{cc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]= +0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ra;J[699344]=0;e=aa(3349,c|0,837065)|0;g=J[699344];J[699344]=0;if((g|0)==1)break cc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ra;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=108;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break bc;break sa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;dc:{ec:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c= +_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break sa;J[699344]=0;e=aa(3349,c|0,811485)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ec;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break sa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=113;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break dc;break ta}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;fc:{gc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4, +8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ta;J[699344]=0;e=aa(3349,c|0,811778)|0;g=J[699344];J[699344]=0;if((g|0)==1)break gc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ta;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4096;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break fc;break ua}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;hc:{ic:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)| +0;e=J[699344];J[699344]=0;if((e|0)==1)break ua;J[699344]=0;e=aa(3349,c|0,812250)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ic;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ua;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4096;J[b+4>>2]=3;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break hc;break va}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;jc:{kc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0; +e=J[699344];J[699344]=0;if((e|0)==1)break va;J[699344]=0;e=aa(3349,c|0,812596)|0;g=J[699344];J[699344]=0;if((g|0)==1)break kc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break va;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=63;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break jc;break wa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;lc:{mc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break wa;J[699344]=0;e=aa(3349,c|0,812709)|0;g=J[699344];J[699344]=0;if((g|0)==1)break mc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break wa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4107;J[b+4>>2]=4;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break lc;break xa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;nc:{oc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break xa;J[699344]=0;e=aa(3349,c|0,813270)|0;g=J[699344];J[699344]=0;if((g|0)==1)break oc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break xa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4108;J[b+4>>2]=4;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break nc;break ya}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;pc:{qc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0; +if((e|0)==1)break ya;J[699344]=0;e=aa(3349,c|0,813578)|0;g=J[699344];J[699344]=0;if((g|0)==1)break qc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break ya;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4103;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break pc;break za}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;rc:{sc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e| +0)==1)break za;J[699344]=0;e=aa(3349,c|0,813939)|0;g=J[699344];J[699344]=0;if((g|0)==1)break sc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break za;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4103;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break rc;break Aa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;tc:{uc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break Aa;J[699344]=0;e=aa(3349,c|0,814055)|0;g=J[699344];J[699344]=0;if((g|0)==1)break uc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Aa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4104;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break tc;break Ba}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;vc:{wc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ba; +J[699344]=0;e=aa(3349,c|0,814444)|0;g=J[699344];J[699344]=0;if((g|0)==1)break wc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ba;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4104;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break vc;break Ca}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;xc:{yc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ca;J[699344]= +0;e=aa(3349,c|0,814711)|0;g=J[699344];J[699344]=0;if((g|0)==1)break yc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ca;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4105;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break xc;break Da}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;zc:{Ac:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Da;J[699344]=0; +e=aa(3349,c|0,815215)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ac;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Da;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4106;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break zc;break Ea}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Bc:{Cc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ea;J[699344]=0;e= +aa(3349,c|0,815497)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Cc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ea;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4105;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Bc;break Fa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Dc:{Ec:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Fa;J[699344]=0;e=aa(3349, +c|0,815988)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ec;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Fa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4106;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Dc;break Ga}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Fc:{Gc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ga;J[699344]=0;e=aa(3349,c| +0,816131)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Gc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ga;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=256;J[b>>2]=4105;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Fc;break Ha}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Hc:{Ic:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ha;J[699344]=0;e=aa(3349,c| +0,816503)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ic;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ha;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=256;J[b>>2]=4106;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Hc;break Ia}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Jc:{Kc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ia;J[699344]=0;e=aa(3349,c| +0,817148)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Kc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ia;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=1;J[b>>2]=4100;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Jc;break Ja}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Lc:{Mc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ja;J[699344]=0;e=aa(3349,c|0, +817474)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Mc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ja;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4107;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Lc;break Ka}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Nc:{Oc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ka;J[699344]=0;e=aa(3349,c|0,806362)| +0;g=J[699344];J[699344]=0;if((g|0)==1)break Oc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ka;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4108;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Nc;break La}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Pc:{Qc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break La;J[699344]=0;e=aa(3349,c|0,806778)|0; +g=J[699344];J[699344]=0;if((g|0)==1)break Qc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break La;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4109;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Pc;break Ma}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Rc:{Sc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ma;J[699344]=0;e=aa(3349,c|0,818534)|0;g= +J[699344];J[699344]=0;if((g|0)==1)break Sc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ma;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4110;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Rc;break Na}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Tc:{Uc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Na;J[699344]=0;e=aa(3349,c|0,818773)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break Uc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Na;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4109;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Tc;break Oa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Vc:{Wc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Oa;J[699344]=0;e=aa(3349,c|0,815988)|0;g=J[699344];J[699344]= +0;if((g|0)==1)break Wc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Oa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=4110;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Vc;break Pa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Xc:{Yc:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Pa;J[699344]=0;e=aa(3349,c|0,816131)|0;g=J[699344];J[699344]=0; +if((g|0)==1)break Yc;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Pa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=256;J[b>>2]=4109;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Xc;break Qa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;Zc:{_c:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Qa;J[699344]=0;e=aa(3349,c|0,816503)|0;g=J[699344];J[699344]=0; +if((g|0)==1)break _c;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Qa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=256;J[b>>2]=4110;J[b+4>>2]=2;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Zc;break Ra}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;$c:{ad:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ra;J[699344]=0;e=aa(3349,c|0,817148)|0;g=J[699344];J[699344]=0; +if((g|0)==1)break ad;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ra;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=32;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break $c;break Sa}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;bd:{cd:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Sa;J[699344]=0;e=aa(3349,c|0,815497)|0;g=J[699344];J[699344]=0;if((g| +0)==1)break cd;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Sa;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=103;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break bd;break Ta}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;dd:{ed:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ta;J[699344]=0;e=aa(3349,c|0,819070)|0;g=J[699344];J[699344]=0;if((g|0)== +1)break ed;J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ta;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=122;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break dd;break Ua}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;fd:{gd:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ua;J[699344]=0;e=aa(3349,c|0,819582)|0;g=J[699344];J[699344]=0;if((g|0)==1)break gd; +J[699344]=0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ua;sd(f,b);f=J[a+392>>2];b=vc(16);J[b+8>>2]=0;J[b>>2]=119;J[b+4>>2]=0;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break fd;break Va}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}J[699344]=0;d=_(3352,c|0)|0;e=J[699344];J[699344]=0;hd:{if((e|0)!=1){J[b+12>>2]=d;J[699344]=0;c=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Va;J[699344]=0;e=aa(3349,c|0,819729)|0;g=J[699344];J[699344]=0;if((g|0)==1)break hd;J[699344]= +0;da(3508,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Va;sd(f,b);break O}a=Z()|0;uc(c);break P}a=Z()|0;uc(c);break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a= Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0; -break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0}qc(b);ba(a|0);B()}c=rc(16);J[695492]=0;b=$(3185,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break o;J[a+396>>2]=b;b=_n(NI(),789886);J[a+412>>2]=0;J[a+404>>2]=0;J[a+408>>2]=0;J[a+400>>2]=b;c=rc(8);J[695492]=0;b=aa(3431,c|0,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[a+416>>2]=b;c=rc(8);J[695492]=0;b=aa(3431,c|0,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break m;J[a+420>>2]=b;c=rc(16);J[695492]=0;J[c>> -2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[a+424>>2]=c;c=rc(16);J[695492]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J[a+428>>2]=c;c=0;b=2174923;while(1){EY(J[a+12>>2],b,J[(c<<3)+2207328>>2]);c=c+1|0;b=J[(c<<3)+2207332>>2];if(b)continue;break}c=rc(32);J[695492]=0;b=ma(3434,c|0,775343,0,2711168,61)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;xg(J[a+24>>2],J[b>>2],b);c=rc(32);J[695492]=0;b=ma(3434,c|0,791079, -0,2712144,131)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;xg(J[a+24>>2],J[b>>2],b);c=rc(32);J[695492]=0;b=ma(3434,c|0,791526,0,2714240,121)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;xg(J[a+24>>2],J[b>>2],b);c=rc(32);J[695492]=0;b=ma(3434,c|0,792149,0,2716176,30)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;xg(J[a+24>>2],J[b>>2],b);c=rc(32);J[695492]=0;b=ha(3435,c|0,793307,1,3436)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;xg(J[a+24>>2],J[b>>2],b);c=rc(32);J[695492]=0;b=ha(3435,c|0,793953, -1,3437)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;xg(J[a+24>>2],J[b>>2],b);return a|0}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a= -Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0}qc(c);ba(a|0);B()}function uf(a,b,c,d,e,f,g,h,i){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;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,y=0,z=0,A=0,B=0;j=1;m=!a;a:{if(m)break a;b:{if((f|0)==20)break b;v=m?-1:J[a+8>>2];c:{d:switch(f|0){default:if((f|0)!=30)break c;break;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break c; -case 0:case 10:break d}g=a?J[a+40>>2]:0;m=a?J[a>>2]:-1;j=a?J[a+4>>2]:-1;h=a?J[a+12>>2]:-1;t=bc-16|0;bc=t;a=P(b,v);i=P(d,v)+(a>>31&a)|0;s=(a|0)>0?a:0;a=(s-P(m,v)|0)+i|0;m=i-((a|0)>0?a:0)|0;e:{if((m|0)<=0)break e;l=(c>>31&c)+e|0;a=(c|0)>0?c:0;b=l+(a-j|0)|0;k=(b|0)>0?b:0;o=l-k|0;if((o|0)<=0)break e;f:{g:{h:{i:{j:{c=s&31;if(!c){b=m&31;if(b)i=J[(b<<2)+231504>>2];c=m>>>5|0;v=P(a,h);s=s>>>5|0;j=(g+(v<<2)|0)+(s<<2)|0;k:switch(f|0){case 10:if(m>>>0>=32){a=c>>>0<=1?1:c;if(b){d=a&134217724;c=a&3;e=0;f=m>>>0< +break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0;break P}a=Z()|0}uc(b);ba(a|0);B()}c=vc(16);J[699344]=0;b=_(3352,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;J[a+396>>2]=b;b=Ro(aK(),791630);J[a+412>>2]=0;J[a+404>>2]=0;J[a+408>>2]=0;J[a+400>>2]=b;c=vc(8);J[699344]=0;b=aa(3606,c|0,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[a+416>>2]=b;c=vc(8);J[699344]=0;b=aa(3606,c|0,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break m;J[a+420>>2]=b;c=vc(16);J[699344]=0;J[c>> +2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[a+424>>2]=c;c=vc(16);J[699344]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break k;J[a+428>>2]=c;c=0;b=2186810;while(1){F_(J[a+12>>2],b,J[(c<<3)+2219216>>2]);c=c+1|0;b=J[(c<<3)+2219220>>2];if(b)continue;break}c=vc(32);J[699344]=0;b=na(3609,c|0,777087,0,2726160,61)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;Jg(J[a+24>>2],J[b>>2],b);c=vc(32);J[699344]=0;b=na(3609,c|0,792823, +0,2727136,131)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;Jg(J[a+24>>2],J[b>>2],b);c=vc(32);J[699344]=0;b=na(3609,c|0,793270,0,2729232,121)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;Jg(J[a+24>>2],J[b>>2],b);c=vc(32);J[699344]=0;b=na(3609,c|0,793893,0,2731168,30)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;Jg(J[a+24>>2],J[b>>2],b);c=vc(32);J[699344]=0;b=ha(3610,c|0,795051,1,3611)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;Jg(J[a+24>>2],J[b>>2],b);c=vc(32);J[699344]=0;b=ha(3610,c|0,795732, +1,3612)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;Jg(J[a+24>>2],J[b>>2],b);return a|0}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a= +Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0}uc(c);ba(a|0);B()}function Cf(a,b,c,d,e,f,g,h,i){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;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,y=0,z=0,A=0,B=0;j=1;m=!a;a:{if(m)break a;b:{if((f|0)==20)break b;v=m?-1:J[a+8>>2];c:{d:switch(f|0){default:if((f|0)!=30)break c;break;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break c; +case 0:case 10:break d}g=a?J[a+40>>2]:0;m=a?J[a>>2]:-1;j=a?J[a+4>>2]:-1;h=a?J[a+12>>2]:-1;t=fc-16|0;fc=t;a=P(b,v);i=P(d,v)+(a>>31&a)|0;s=(a|0)>0?a:0;a=(s-P(m,v)|0)+i|0;m=i-((a|0)>0?a:0)|0;e:{if((m|0)<=0)break e;l=(c>>31&c)+e|0;a=(c|0)>0?c:0;b=l+(a-j|0)|0;k=(b|0)>0?b:0;o=l-k|0;if((o|0)<=0)break e;f:{g:{h:{i:{j:{c=s&31;if(!c){b=m&31;if(b)i=J[(b<<2)+231520>>2];c=m>>>5|0;v=P(a,h);s=s>>>5|0;j=(g+(v<<2)|0)+(s<<2)|0;k:switch(f|0){case 10:if(m>>>0>=32){a=c>>>0<=1?1:c;if(b){d=a&134217724;c=a&3;e=0;f=m>>>0< 128;while(1){a=j+(P(e,h)<<2)|0;b=0;if(!f)while(1){J[a>>2]=J[a>>2]^-1;J[a+4>>2]=J[a+4>>2]^-1;J[a+8>>2]=J[a+8>>2]^-1;J[a+12>>2]=J[a+12>>2]^-1;a=a+16|0;b=b+4|0;if((d|0)!=(b|0))continue;break}b=0;if(c)while(1){J[a>>2]=J[a>>2]^-1;a=a+4|0;b=b+1|0;if((c|0)!=(b|0))continue;break}J[a>>2]=J[a>>2]^i;e=e+1|0;if((o|0)!=(e|0))continue;break}break e}d=a&134217724;c=a&3;i=0;e=m>>>0<128;while(1){a=j+(P(h,i)<<2)|0;b=0;if(!e)while(1){J[a>>2]=J[a>>2]^-1;J[a+4>>2]=J[a+4>>2]^-1;J[a+8>>2]=J[a+8>>2]^-1;J[a+12>>2]=J[a+12>> 2]^-1;a=a+16|0;b=b+4|0;if((d|0)!=(b|0))continue;break}b=0;if(c)while(1){J[a>>2]=J[a>>2]^-1;a=a+4|0;b=b+1|0;if((c|0)!=(b|0))continue;break}i=i+1|0;if((o|0)!=(i|0))continue;break}break e}if(!b)break e;b=0;a=0;if(l+(k^-1)>>>0>=3){c=o&-4;d=0;while(1){e=j+(P(a,h)<<2)|0;J[e>>2]=J[e>>2]^i;e=j+(P(h,a|1)<<2)|0;J[e>>2]=J[e>>2]^i;e=j+(P(h,a|2)<<2)|0;J[e>>2]=J[e>>2]^i;e=j+(P(h,a|3)<<2)|0;J[e>>2]=J[e>>2]^i;a=a+4|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}c=o&3;if(!c)break e;while(1){d=j+(P(a,h)<<2)|0;J[d>>2]=J[d>> -2]^i;a=a+1|0;b=b+1|0;if((c|0)!=(b|0))continue;break}break e;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break g;case 0:break k;default:break j}e=i^-1;if(m>>>0>=32){g=(g+(v<<2)|0)+(s<<2)|0;i=(c>>>0<=1?1:c)<<2;c=g+i|0;d=h<<2;a=0;if((l|0)!=(k+1|0)){h=o&-2;f=0;while(1){wc(g+P(a,d)|0,0,i);if(b)J[c>>2]=e&J[c>>2];wc(g+P(d,a|1)|0,0,i);c=c+d|0;if(b)J[c>>2]=e&J[c>>2];c=c+d|0;a=a+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!(o&1))break e;wc(g+P(a,d)|0,0,i);if(!b)break e;J[c>>2]=e&J[c>> -2];break e}if(!b)break e;d=0;a=0;if(l+(k^-1)>>>0>=3){b=o&-4;c=0;while(1){f=j+(P(a,h)<<2)|0;J[f>>2]=e&J[f>>2];f=j+(P(h,a|1)<<2)|0;J[f>>2]=e&J[f>>2];f=j+(P(h,a|2)<<2)|0;J[f>>2]=e&J[f>>2];f=j+(P(h,a|3)<<2)|0;J[f>>2]=e&J[f>>2];a=a+4|0;c=c+4|0;if((b|0)!=(c|0))continue;break}}b=o&3;if(!b)break e;while(1){c=j+(P(a,h)<<2)|0;J[c>>2]=e&J[c>>2];a=a+1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}break e}a=(g+(P(a,h)<<2)|0)+(s>>>3&536870908)|0;b=32-c|0;d=J[(b<<2)+230992>>2];if(b>>>0>m>>>0){d=J[(c+m<<2)+231504>>2]& -d;g=0;i=0;m=1;break h}v=m-b|0;if(v>>>0<=31){g=0;c=m+s&31;if(c){i=0;break i}i=0;m=1;break h}b=a+4|0;i=v>>5;c=m+s&31;if(c)break i;g=0;m=0;break h}if((f|0)==30)break f;break g}e=((i<<2)+a|0)+4|0;j=J[(c<<2)+231504>>2];g=1;m=v>>>0<32}l:switch(f|0){case 10:l=l+(k^-1)|0;if(l>>>0>=3){k=o&-4;f=0;c=h<<2;while(1){J[a>>2]=J[a>>2]^d;a=a+c|0;J[a>>2]=J[a>>2]^d;a=a+c|0;J[a>>2]=J[a>>2]^d;a=a+c|0;J[a>>2]=J[a>>2]^d;a=a+c|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=o&3;if(f){c=0;k=h<<2;while(1){J[a>>2]=J[a>>2]^d;a=a+ +2]^i;a=a+1|0;b=b+1|0;if((c|0)!=(b|0))continue;break}break e;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break g;case 0:break k;default:break j}e=i^-1;if(m>>>0>=32){g=(g+(v<<2)|0)+(s<<2)|0;i=(c>>>0<=1?1:c)<<2;c=g+i|0;d=h<<2;a=0;if((l|0)!=(k+1|0)){h=o&-2;f=0;while(1){Ac(g+P(a,d)|0,0,i);if(b)J[c>>2]=e&J[c>>2];Ac(g+P(d,a|1)|0,0,i);c=c+d|0;if(b)J[c>>2]=e&J[c>>2];c=c+d|0;a=a+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!(o&1))break e;Ac(g+P(a,d)|0,0,i);if(!b)break e;J[c>>2]=e&J[c>> +2];break e}if(!b)break e;d=0;a=0;if(l+(k^-1)>>>0>=3){b=o&-4;c=0;while(1){f=j+(P(a,h)<<2)|0;J[f>>2]=e&J[f>>2];f=j+(P(h,a|1)<<2)|0;J[f>>2]=e&J[f>>2];f=j+(P(h,a|2)<<2)|0;J[f>>2]=e&J[f>>2];f=j+(P(h,a|3)<<2)|0;J[f>>2]=e&J[f>>2];a=a+4|0;c=c+4|0;if((b|0)!=(c|0))continue;break}}b=o&3;if(!b)break e;while(1){c=j+(P(a,h)<<2)|0;J[c>>2]=e&J[c>>2];a=a+1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}break e}a=(g+(P(a,h)<<2)|0)+(s>>>3&536870908)|0;b=32-c|0;d=J[(b<<2)+231008>>2];if(b>>>0>m>>>0){d=J[(c+m<<2)+231520>>2]& +d;g=0;i=0;m=1;break h}v=m-b|0;if(v>>>0<=31){g=0;c=m+s&31;if(c){i=0;break i}i=0;m=1;break h}b=a+4|0;i=v>>5;c=m+s&31;if(c)break i;g=0;m=0;break h}if((f|0)==30)break f;break g}e=((i<<2)+a|0)+4|0;j=J[(c<<2)+231520>>2];g=1;m=v>>>0<32}l:switch(f|0){case 10:l=l+(k^-1)|0;if(l>>>0>=3){k=o&-4;f=0;c=h<<2;while(1){J[a>>2]=J[a>>2]^d;a=a+c|0;J[a>>2]=J[a>>2]^d;a=a+c|0;J[a>>2]=J[a>>2]^d;a=a+c|0;J[a>>2]=J[a>>2]^d;a=a+c|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=o&3;if(f){c=0;k=h<<2;while(1){J[a>>2]=J[a>>2]^d;a=a+ k|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}if(!(m|(i|0)<=0)){m=i&-4;f=i&3;k=0;i=i-1>>>0<3;s=h<<2;while(1){a=0;c=0;if(!i)while(1){d=a<<2;v=d+b|0;J[v>>2]=J[v>>2]^-1;v=(d|4)+b|0;J[v>>2]=J[v>>2]^-1;v=(d|8)+b|0;J[v>>2]=J[v>>2]^-1;d=(d|12)+b|0;J[d>>2]=J[d>>2]^-1;a=a+4|0;c=c+4|0;if((m|0)!=(c|0))continue;break}d=0;if(f)while(1){c=(a<<2)+b|0;J[c>>2]=J[c>>2]^-1;a=a+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}b=b+s|0;k=k+1|0;if((o|0)!=(k|0))continue;break}}if(!g)break e;if(l>>>0>=3){c=o&-4;d=0;a=h<<2;while(1){J[e>> 2]=J[e>>2]^j;b=a+e|0;J[b>>2]=J[b>>2]^j;b=a+b|0;J[b>>2]=J[b>>2]^j;b=a+b|0;J[b>>2]=J[b>>2]^j;e=a+b|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}b=o&3;if(!b)break e;a=0;c=h<<2;while(1){J[e>>2]=J[e>>2]^j;e=c+e|0;a=a+1|0;if((b|0)!=(a|0))continue;break}break e;default:if((f|0)!=30)break g;l=l+(k^-1)|0;if(l>>>0>=3){k=o&-4;f=0;c=h<<2;while(1){J[a>>2]=J[a>>2]|d;a=a+c|0;J[a>>2]=J[a>>2]|d;a=a+c|0;J[a>>2]=J[a>>2]|d;a=a+c|0;J[a>>2]=J[a>>2]|d;a=a+c|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=o&3;if(f){c=0;k=h<<2; -while(1){J[a>>2]=J[a>>2]|d;a=a+k|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}m:{if(m|(i|0)<=0)break m;a=i<<2;if(l>>>0>=7){f=o&-8;c=0;d=h<<2;while(1){b=wc(wc(wc(wc(wc(wc(wc(wc(b,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=o&7;if(!c)break m;d=0;f=h<<2;while(1){b=wc(b,255,a)+f|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}if(!g)break e;if(l>>>0>=3){c=o&-4;d=0;a=h<<2;while(1){J[e>>2]=J[e>>2]|j;b=a+e|0;J[b>>2]=J[b>>2]|j;b= +while(1){J[a>>2]=J[a>>2]|d;a=a+k|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}m:{if(m|(i|0)<=0)break m;a=i<<2;if(l>>>0>=7){f=o&-8;c=0;d=h<<2;while(1){b=Ac(Ac(Ac(Ac(Ac(Ac(Ac(Ac(b,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0,255,a)+d|0;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=o&7;if(!c)break m;d=0;f=h<<2;while(1){b=Ac(b,255,a)+f|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}if(!g)break e;if(l>>>0>=3){c=o&-4;d=0;a=h<<2;while(1){J[e>>2]=J[e>>2]|j;b=a+e|0;J[b>>2]=J[b>>2]|j;b= a+b|0;J[b>>2]=J[b>>2]|j;b=a+b|0;J[b>>2]=J[b>>2]|j;e=a+b|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}b=o&3;if(!b)break e;a=0;c=h<<2;while(1){J[e>>2]=J[e>>2]|j;e=c+e|0;a=a+1|0;if((b|0)!=(a|0))continue;break}break e;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break g;case 0:break l}d=d^-1;l=l+(k^-1)|0;if(l>>>0>=3){k=o&-4;f=0;c=h<<2;while(1){J[a>>2]=d&J[a>>2];a=a+c|0;J[a>>2]=d&J[a>>2];a=a+c|0;J[a>>2]=d&J[a>>2];a=a+c|0;J[a>>2]=d&J[a>>2];a=a+c|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f= -o&3;if(f){c=0;k=h<<2;while(1){J[a>>2]=d&J[a>>2];a=a+k|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}n:{if(m|(i|0)<=0)break n;a=i<<2;if(l>>>0>=7){f=o&-8;d=h<<2;c=0;while(1){b=wc(wc(wc(wc(wc(wc(wc(wc(b,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=o&7;if(!c)break n;d=0;f=h<<2;while(1){b=wc(b,0,a)+f|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}if(!g)break e;a=j^-1;if(l>>>0>=3){f=o&-4;c=0;b=h<<2;while(1){J[e>>2]=a&J[e>>2];d=b+e|0;J[d>>2]=a& -J[d>>2];d=b+d|0;J[d>>2]=a&J[d>>2];d=b+d|0;J[d>>2]=a&J[d>>2];e=b+d|0;c=c+4|0;if((f|0)!=(c|0))continue;break}}c=o&3;if(!c)break e;b=0;d=h<<2;while(1){J[e>>2]=a&J[e>>2];e=d+e|0;b=b+1|0;if((c|0)!=(b|0))continue;break}break e}J[t>>2]=f;cd(J[651370],226442,t);break e}if(m>>>0>=32){a=h<<2;d=(c>>>0<=1?1:c)<<2;if(b){e=(g+(v<<2)|0)+(s<<2)|0;b=e+d|0;c=0;if((l|0)!=(k+1|0)){g=o&-2;f=0;while(1){wc(e+P(a,c)|0,255,d);J[b>>2]=J[b>>2]|i;wc(e+P(a,c|1)|0,255,d);b=a+b|0;J[b>>2]=J[b>>2]|i;c=c+2|0;b=a+b|0;f=f+2|0;if((g| -0)!=(f|0))continue;break}}if(!(o&1))break e;wc(e+P(a,c)|0,255,d);J[b>>2]=J[b>>2]|i;break e}c=g+(s+v<<2)|0;f=0;b=0;if(l+(k^-1)>>>0>=3){e=o&-4;i=0;while(1){wc(c+P(a,b)|0,255,d);wc(c+P(a,b|1)|0,255,d);wc(c+P(a,b|2)|0,255,d);wc(c+P(a,b|3)|0,255,d);b=b+4|0;i=i+4|0;if((e|0)!=(i|0))continue;break}}e=o&3;if(!e)break e;while(1){wc(c+P(a,b)|0,255,d);b=b+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}break e}if(!b)break e;b=0;a=0;if(l+(k^-1)>>>0>=3){c=o&-4;d=0;while(1){e=j+(P(a,h)<<2)|0;J[e>>2]=J[e>>2]|i;e=j+(P(h, -a|1)<<2)|0;J[e>>2]=J[e>>2]|i;e=j+(P(h,a|2)<<2)|0;J[e>>2]=J[e>>2]|i;e=j+(P(h,a|3)<<2)|0;J[e>>2]=J[e>>2]|i;a=a+4|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}c=o&3;if(!c)break e;while(1){d=j+(P(a,h)<<2)|0;J[d>>2]=J[d>>2]|i;a=a+1|0;b=b+1|0;if((c|0)!=(b|0))continue;break}}bc=t+16|0;break b}m=!g;if(m|(v|0)!=((m?-1:J[g+8>>2])|0))break a;n=a?J[a+40>>2]:0;j=a?J[a>>2]:-1;m=a?J[a+4>>2]:-1;s=a?J[a+12>>2]:-1;o=g?J[g+40>>2]:0;k=g?J[g>>2]:-1;l=g?J[g+4>>2]:-1;t=g?J[g+12>>2]:-1;B=bc-16|0;bc=B;if((v|0)!=1){h=P(h,v); -k=P(k,v);d=P(d,v);j=P(j,v);b=P(b,v)}g=b>>31&b;a=h-g|0;h=a>>31&a;d=h+(d+g|0)|0;u=(a|0)>0?a:0;g=((b|0)>0?b:0)-h|0;a=g+(d-j|0)|0;b=d-((a|0)>0?a:0)|0;a=(u-k|0)+b|0;d=b-((a|0)>0?a:0)|0;o:{if((d|0)<=0)break o;p=(c|0)>0?c:0;b=c>>31&c;a=i-b|0;c=a>>31&a;z=p-c|0;p=c+(b+e|0)|0;b=z+(p-m|0)|0;v=(b|0)>0?b:0;c=p-v|0;y=(a|0)>0?a:0;a=c+(y-l|0)|0;x=(a|0)>0?a:0;r=c-x|0;if((r|0)<=0)break o;p:{b=u&31;q=g&31;if(!(b|q)){h=d&31;if(h)l=J[(h<<2)+231504>>2];a=d>>>5|0;g=(n+(P(s,z)<<2)|0)+(g>>>3&536870908)|0;i=((P(t,y)<<2)+o| -0)+(u>>>3&536870908)|0;n=226668;q:switch(f-2|0){case 22:j=l^-1;a=a>>>0<=1?1:a;m=a&134217720;f=a&7;e=0;o=d>>>0<32;d=d>>>0<256;while(1){b=g+(P(e,s)<<2)|0;c=i+(P(e,t)<<2)|0;r:{if(o)break r;a=0;if(!d)while(1){J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;a=a+8|0;if((m|0)!=(a|0))continue;break}a=0;if(!f)break r;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;a=a+1|0;if((f| +o&3;if(f){c=0;k=h<<2;while(1){J[a>>2]=d&J[a>>2];a=a+k|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}n:{if(m|(i|0)<=0)break n;a=i<<2;if(l>>>0>=7){f=o&-8;d=h<<2;c=0;while(1){b=Ac(Ac(Ac(Ac(Ac(Ac(Ac(Ac(b,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0,0,a)+d|0;c=c+8|0;if((f|0)!=(c|0))continue;break}}c=o&7;if(!c)break n;d=0;f=h<<2;while(1){b=Ac(b,0,a)+f|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}if(!g)break e;a=j^-1;if(l>>>0>=3){f=o&-4;c=0;b=h<<2;while(1){J[e>>2]=a&J[e>>2];d=b+e|0;J[d>>2]=a& +J[d>>2];d=b+d|0;J[d>>2]=a&J[d>>2];d=b+d|0;J[d>>2]=a&J[d>>2];e=b+d|0;c=c+4|0;if((f|0)!=(c|0))continue;break}}c=o&3;if(!c)break e;b=0;d=h<<2;while(1){J[e>>2]=a&J[e>>2];e=d+e|0;b=b+1|0;if((c|0)!=(b|0))continue;break}break e}J[t>>2]=f;md(J[655074],226458,t);break e}if(m>>>0>=32){a=h<<2;d=(c>>>0<=1?1:c)<<2;if(b){e=(g+(v<<2)|0)+(s<<2)|0;b=e+d|0;c=0;if((l|0)!=(k+1|0)){g=o&-2;f=0;while(1){Ac(e+P(a,c)|0,255,d);J[b>>2]=J[b>>2]|i;Ac(e+P(a,c|1)|0,255,d);b=a+b|0;J[b>>2]=J[b>>2]|i;c=c+2|0;b=a+b|0;f=f+2|0;if((g| +0)!=(f|0))continue;break}}if(!(o&1))break e;Ac(e+P(a,c)|0,255,d);J[b>>2]=J[b>>2]|i;break e}c=g+(s+v<<2)|0;f=0;b=0;if(l+(k^-1)>>>0>=3){e=o&-4;i=0;while(1){Ac(c+P(a,b)|0,255,d);Ac(c+P(a,b|1)|0,255,d);Ac(c+P(a,b|2)|0,255,d);Ac(c+P(a,b|3)|0,255,d);b=b+4|0;i=i+4|0;if((e|0)!=(i|0))continue;break}}e=o&3;if(!e)break e;while(1){Ac(c+P(a,b)|0,255,d);b=b+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}break e}if(!b)break e;b=0;a=0;if(l+(k^-1)>>>0>=3){c=o&-4;d=0;while(1){e=j+(P(a,h)<<2)|0;J[e>>2]=J[e>>2]|i;e=j+(P(h, +a|1)<<2)|0;J[e>>2]=J[e>>2]|i;e=j+(P(h,a|2)<<2)|0;J[e>>2]=J[e>>2]|i;e=j+(P(h,a|3)<<2)|0;J[e>>2]=J[e>>2]|i;a=a+4|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}c=o&3;if(!c)break e;while(1){d=j+(P(a,h)<<2)|0;J[d>>2]=J[d>>2]|i;a=a+1|0;b=b+1|0;if((c|0)!=(b|0))continue;break}}fc=t+16|0;break b}m=!g;if(m|(v|0)!=((m?-1:J[g+8>>2])|0))break a;n=a?J[a+40>>2]:0;j=a?J[a>>2]:-1;m=a?J[a+4>>2]:-1;s=a?J[a+12>>2]:-1;o=g?J[g+40>>2]:0;k=g?J[g>>2]:-1;l=g?J[g+4>>2]:-1;t=g?J[g+12>>2]:-1;B=fc-16|0;fc=B;if((v|0)!=1){h=P(h,v); +k=P(k,v);d=P(d,v);j=P(j,v);b=P(b,v)}g=b>>31&b;a=h-g|0;h=a>>31&a;d=h+(d+g|0)|0;u=(a|0)>0?a:0;g=((b|0)>0?b:0)-h|0;a=g+(d-j|0)|0;b=d-((a|0)>0?a:0)|0;a=(u-k|0)+b|0;d=b-((a|0)>0?a:0)|0;o:{if((d|0)<=0)break o;p=(c|0)>0?c:0;b=c>>31&c;a=i-b|0;c=a>>31&a;z=p-c|0;p=c+(b+e|0)|0;b=z+(p-m|0)|0;v=(b|0)>0?b:0;c=p-v|0;y=(a|0)>0?a:0;a=c+(y-l|0)|0;x=(a|0)>0?a:0;r=c-x|0;if((r|0)<=0)break o;p:{b=u&31;q=g&31;if(!(b|q)){h=d&31;if(h)l=J[(h<<2)+231520>>2];a=d>>>5|0;g=(n+(P(s,z)<<2)|0)+(g>>>3&536870908)|0;i=((P(t,y)<<2)+o| +0)+(u>>>3&536870908)|0;n=226684;q:switch(f-2|0){case 22:j=l^-1;a=a>>>0<=1?1:a;m=a&134217720;f=a&7;e=0;o=d>>>0<32;d=d>>>0<256;while(1){b=g+(P(e,s)<<2)|0;c=i+(P(e,t)<<2)|0;r:{if(o)break r;a=0;if(!d)while(1){J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;a=a+8|0;if((m|0)!=(a|0))continue;break}a=0;if(!f)break r;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;a=a+1|0;if((f| 0)!=(a|0))continue;break}}if(h)J[b>>2]=J[c>>2]&l|j&J[b>>2];e=e+1|0;if((r|0)!=(e|0))continue;break}break o;case 4:j=l^-1;a=a>>>0<=1?1:a;m=a&134217724;f=a&3;e=0;o=d>>>0<32;d=d>>>0<128;while(1){b=g+(P(e,s)<<2)|0;c=i+(P(e,t)<<2)|0;s:{if(o)break s;a=0;if(!d)while(1){J[b>>2]=J[c>>2]^-1;J[b+4>>2]=J[c+4>>2]^-1;J[b+8>>2]=J[c+8>>2]^-1;J[b+12>>2]=J[c+12>>2]^-1;c=c+16|0;b=b+16|0;a=a+4|0;if((m|0)!=(a|0))continue;break}a=0;if(!f)break s;while(1){J[b>>2]=J[c>>2]^-1;c=c+4|0;b=b+4|0;a=a+1|0;if((f|0)!=(a|0))continue; break}}if(h)J[b>>2]=(J[c>>2]^-1)&l|j&J[b>>2];e=e+1|0;if((r|0)!=(e|0))continue;break}break o;case 26:j=l^-1;a=a>>>0<=1?1:a;m=a&134217724;f=a&3;e=0;o=d>>>0<32;d=d>>>0<128;while(1){b=g+(P(e,s)<<2)|0;c=i+(P(e,t)<<2)|0;t:{if(o)break t;a=0;if(!d)while(1){J[b>>2]=J[b>>2]|J[c>>2];J[b+4>>2]=J[b+4>>2]|J[c+4>>2];J[b+8>>2]=J[b+8>>2]|J[c+8>>2];J[b+12>>2]=J[b+12>>2]|J[c+12>>2];c=c+16|0;b=b+16|0;a=a+4|0;if((m|0)!=(a|0))continue;break}a=0;if(!f)break t;while(1){J[b>>2]=J[b>>2]|J[c>>2];c=c+4|0;b=b+4|0;a=a+1|0;if((f| 0)!=(a|0))continue;break}}if(h){a=J[b>>2];J[b>>2]=(a|J[c>>2])&l|a&j}e=e+1|0;if((r|0)!=(e|0))continue;break}break o;case 14:f=l^-1;a=a>>>0<=1?1:a;j=a&134217724;e=a&3;l=0;m=d>>>0<32;d=d>>>0<128;while(1){b=g+(P(l,s)<<2)|0;c=i+(P(l,t)<<2)|0;u:{if(m)break u;a=0;if(!d)while(1){J[b>>2]=J[b>>2]&J[c>>2];J[b+4>>2]=J[b+4>>2]&J[c+4>>2];J[b+8>>2]=J[b+8>>2]&J[c+8>>2];J[b+12>>2]=J[b+12>>2]&J[c+12>>2];c=c+16|0;b=b+16|0;a=a+4|0;if((j|0)!=(a|0))continue;break}a=0;if(!e)break u;while(1){J[b>>2]=J[b>>2]&J[c>>2];c=c+ @@ -3322,9 +3388,9 @@ break}}if(h)J[b>>2]=(J[c>>2]^-1)&l|j&J[b>>2];e=e+1|0;if((r|0)!=(e|0))continue;br J[c>>2])^-1;J[b+4>>2]=(J[b+4>>2]|J[c+4>>2])^-1;J[b+8>>2]=(J[b+8>>2]|J[c+8>>2])^-1;J[b+12>>2]=(J[b+12>>2]|J[c+12>>2])^-1;c=c+16|0;b=b+16|0;a=a+4|0;if((m|0)!=(a|0))continue;break}a=0;if(!f)break A;while(1){J[b>>2]=(J[b>>2]|J[c>>2])^-1;c=c+4|0;b=b+4|0;a=a+1|0;if((f|0)!=(a|0))continue;break}}if(h){a=J[b>>2];J[b>>2]=((a|J[c>>2])^-1)&l|a&j}e=e+1|0;if((r|0)!=(e|0))continue;break}break o;case 12:j=l^-1;a=a>>>0<=1?1:a;m=a&134217724;f=a&3;e=0;o=d>>>0<32;d=d>>>0<128;while(1){b=g+(P(e,s)<<2)|0;c=i+(P(e,t)<<2)| 0;B:{if(o)break B;a=0;if(!d)while(1){J[b>>2]=J[b>>2]&J[c>>2]^-1;J[b+4>>2]=J[b+4>>2]&J[c+4>>2]^-1;J[b+8>>2]=J[b+8>>2]&J[c+8>>2]^-1;J[b+12>>2]=J[b+12>>2]&J[c+12>>2]^-1;c=c+16|0;b=b+16|0;a=a+4|0;if((m|0)!=(a|0))continue;break}a=0;if(!f)break B;while(1){J[b>>2]=J[b>>2]&J[c>>2]^-1;c=c+4|0;b=b+4|0;a=a+1|0;if((f|0)!=(a|0))continue;break}}if(h){a=J[b>>2];J[b>>2]=(a&J[c>>2]^-1)&l|a&j}e=e+1|0;if((r|0)!=(e|0))continue;break}break o;case 16:break q;default:break p}j=l^-1;a=a>>>0<=1?1:a;m=a&134217724;f=a&3;e= 0;o=d>>>0<32;d=d>>>0<128;while(1){b=g+(P(e,s)<<2)|0;c=i+(P(e,t)<<2)|0;C:{if(o)break C;a=0;if(!d)while(1){J[b>>2]=J[c>>2]^J[b>>2]^-1;J[b+4>>2]=J[c+4>>2]^J[b+4>>2]^-1;J[b+8>>2]=J[c+8>>2]^J[b+8>>2]^-1;J[b+12>>2]=J[c+12>>2]^J[b+12>>2]^-1;c=c+16|0;b=b+16|0;a=a+4|0;if((m|0)!=(a|0))continue;break}a=0;if(!f)break C;while(1){J[b>>2]=J[c>>2]^J[b>>2]^-1;c=c+4|0;b=b+4|0;a=a+1|0;if((f|0)!=(a|0))continue;break}}if(h){a=J[b>>2];J[b>>2]=(a^J[c>>2]^-1)&l|a&j}e=e+1|0;if((r|0)!=(e|0))continue;break}break o}D:{E:{F:{G:{H:{I:{if((b| -0)==(q|0)){J:{if(q){h=((P(t,y)<<2)+o|0)+(u>>>3&536870908)|0;a=(n+(P(s,z)<<2)|0)+(g>>>3&536870908)|0;b=32-q|0;k=J[(b<<2)+230992>>2];if(b>>>0<=d>>>0)break J;k=J[(d-b<<2)+231632>>2]&k;i=1;l=0;break D}i=d>>>0<32;if(i)break F;h=P(t,y);k=u>>>5|0;b=((h<<2)+o|0)+(k<<2)|0;j=P(s,z);m=g>>>5|0;c=(n+(j<<2)|0)+(m<<2)|0;l=d>>>5|0;a=d+g&31;if(a)break E;i=0;break D}j=d-b|0;i=j>>>0<32;if(i)break I;b=h+4|0;c=a+4|0;l=j>>5;g=d+g&31;if(g)break H;i=0;break D}e=0;l=32-q|0;A=q?l:0;K:{L:{if(!((g|u)&31)){l=0;a=0;h=0;k=0;break L}c= -b?32-b|0:0;a=A-c|0;a=c>>>0>>0?a:a+32|0;h=32-a|0;k=J[(a<<2)+230992>>2];if(!q){l=0;break L}i=((P(t,y)<<2)+o|0)+(u>>>3&536870908)|0;j=(n+(P(s,z)<<2)|0)+(g>>>3&536870908)|0;p=c>>>0>d>>>0;w=b>>>0>q>>>0;m=J[(l<<2)+230992>>2];if(d>>>0>=l>>>0)break L;m=J[(d-l<<2)+231632>>2]&m;x=1;v=0;break K}l=d-l|0;x=l>>>0<32;if(!x){e=l>>5;c=((P(t,y)<<2)+o|0)+(u+A>>>3&536870908)|0;b=(n+(P(s,z)<<2)|0)+(g+A>>>3&536870908)|0}d=d+g&31;v=0;if(!d)break K;v=e<<2;l=v+(((P(t,y)<<2)+o|0)+(u+A>>>3&536870908)|0)|0;g=((n+(P(s,z)<< -2)|0)+(g+A>>>3&536870908)|0)+v|0;y=(d|0)<=(h|0);o=J[(d<<2)+231504>>2];v=1}n=227070;M:switch(f-2|0){case 22:if(q){f=m^-1;q=k^-1;n=0;while(1){d=J[i>>2];u=f&J[j>>2];N:{if(w){d=d<>2]>>>h&k|d&q;break N}d=d>>>h|0}J[j>>2]=u|d&m;i=(t<<2)+i|0;j=(s<<2)+j|0;n=n+1|0;if((r|0)!=(n|0))continue;break}}if(!x){n=e&-2;p=e&1;f=k^-1;w=0;while(1){O:{if((e|0)<=0)break O;j=0;d=0;if((e|0)!=1)while(1){i=j<<2;m=i+c|0;J[b+i>>2]=J[m+4>>2]>>>h&k|f&J[m>>2]<>2]=J[i+4>>2]>>>h&k|f& +0)==(q|0)){J:{if(q){h=((P(t,y)<<2)+o|0)+(u>>>3&536870908)|0;a=(n+(P(s,z)<<2)|0)+(g>>>3&536870908)|0;b=32-q|0;k=J[(b<<2)+231008>>2];if(b>>>0<=d>>>0)break J;k=J[(d-b<<2)+231648>>2]&k;i=1;l=0;break D}i=d>>>0<32;if(i)break F;h=P(t,y);k=u>>>5|0;b=((h<<2)+o|0)+(k<<2)|0;j=P(s,z);m=g>>>5|0;c=(n+(j<<2)|0)+(m<<2)|0;l=d>>>5|0;a=d+g&31;if(a)break E;i=0;break D}j=d-b|0;i=j>>>0<32;if(i)break I;b=h+4|0;c=a+4|0;l=j>>5;g=d+g&31;if(g)break H;i=0;break D}e=0;l=32-q|0;A=q?l:0;K:{L:{if(!((g|u)&31)){l=0;a=0;h=0;k=0;break L}c= +b?32-b|0:0;a=A-c|0;a=c>>>0>>0?a:a+32|0;h=32-a|0;k=J[(a<<2)+231008>>2];if(!q){l=0;break L}i=((P(t,y)<<2)+o|0)+(u>>>3&536870908)|0;j=(n+(P(s,z)<<2)|0)+(g>>>3&536870908)|0;p=c>>>0>d>>>0;w=b>>>0>q>>>0;m=J[(l<<2)+231008>>2];if(d>>>0>=l>>>0)break L;m=J[(d-l<<2)+231648>>2]&m;x=1;v=0;break K}l=d-l|0;x=l>>>0<32;if(!x){e=l>>5;c=((P(t,y)<<2)+o|0)+(u+A>>>3&536870908)|0;b=(n+(P(s,z)<<2)|0)+(g+A>>>3&536870908)|0}d=d+g&31;v=0;if(!d)break K;v=e<<2;l=v+(((P(t,y)<<2)+o|0)+(u+A>>>3&536870908)|0)|0;g=((n+(P(s,z)<< +2)|0)+(g+A>>>3&536870908)|0)+v|0;y=(d|0)<=(h|0);o=J[(d<<2)+231520>>2];v=1}n=227086;M:switch(f-2|0){case 22:if(q){f=m^-1;q=k^-1;n=0;while(1){d=J[i>>2];u=f&J[j>>2];N:{if(w){d=d<>2]>>>h&k|d&q;break N}d=d>>>h|0}J[j>>2]=u|d&m;i=(t<<2)+i|0;j=(s<<2)+j|0;n=n+1|0;if((r|0)!=(n|0))continue;break}}if(!x){n=e&-2;p=e&1;f=k^-1;w=0;while(1){O:{if((e|0)<=0)break O;j=0;d=0;if((e|0)!=1)while(1){i=j<<2;m=i+c|0;J[b+i>>2]=J[m+4>>2]>>>h&k|f&J[m>>2]<>2]=J[i+4>>2]>>>h&k|f& J[i>>2]<>2]=J[d+4>>2]>>>h&k|f&J[d>>2]<>2]<>2];if(!f)b=J[l+4>>2]>>>h&k|b&e;J[g>>2]=b&o|i;l=(t<<2)+l|0;g=(s<<2)+g|0;c=c+1|0;if((r|0)!=(c|0))continue;break}break o;case 4:if(q){f=m^-1;q=k^-1;n=0;while(1){d=J[i>>2];u=f&J[j>>2];P:{if(w){d=d<>2]>>>h&k|d&q;break P}d= d>>>h|0}J[j>>2]=u|(d^-1)&m;i=(t<<2)+i|0;j=(s<<2)+j|0;n=n+1|0;if((r|0)!=(n|0))continue;break}}if(!x){n=e&-2;p=e&1;f=k^-1;w=0;while(1){Q:{if((e|0)<=0)break Q;j=0;d=0;if((e|0)!=1)while(1){i=j<<2;m=i+c|0;J[b+i>>2]=(J[m+4>>2]>>>h&k|f&J[m>>2]<>2]=(J[i+4>>2]>>>h&k|f&J[i>>2]<>2]=(J[d+4>>2]>>>h&k|f&J[d>>2]<>2]<>2];if(!f)b=J[l+4>>2]>>>h&k|b&e;J[g>>2]=(b^-1)&o|i;l=(t<<2)+l|0;g=(s<<2)+g|0;c=c+1|0;if((r|0)!=(c|0))continue;break}break o;case 26:if(q){f=m^-1;q=k^-1;n=0;while(1){d=J[i>>2];R:{if(w){d=d<>2]>>>h&k|d&q;break R}u=d>>>h|0}d=J[j>>2];J[j>>2]=(u|d)&m|d&f;i=(t<<2)+i|0;j=(s<<2)+j|0;n=n+1|0;if((r|0)!=(n|0))continue;break}}if(!x){m=e&-2;n=e&1;f=k^-1;w=0;while(1){S:{if((e|0)<=0)break S;j=0;d=0;if((e|0)!=1)while(1){i=j<<2;p= @@ -3344,8 +3410,8 @@ p=i+b|0;i=c+i|0;J[p>>2]=(J[p>>2]|f&J[i>>2]<>2]>>>h&k)^-1;j=j+2|0;d=d+2| J[i>>2];fa:{if(w){d=d<>2]>>>h&k|d&q;break fa}u=d>>>h|0}d=J[j>>2];J[j>>2]=(u&d^-1)&m|d&f;i=(t<<2)+i|0;j=(s<<2)+j|0;n=n+1|0;if((r|0)!=(n|0))continue;break}}if(!x){m=e&-2;n=e&1;f=k^-1;w=0;while(1){ga:{if((e|0)<=0)break ga;j=0;d=0;if((e|0)!=1)while(1){i=j<<2;p=i+b|0;u=p;q=J[p>>2];p=c+i|0;J[u>>2]=q&(J[p+4>>2]>>>h&k|f&J[p>>2]<>2]=J[p>>2]&(J[i+4>>2]>>>h&k|f&J[i>>2]<>2]=J[i>>2]&(J[d+4>>2]>>>h&k|f&J[d>>2]<>2]<>2]>>>h&k|b&e;i=b;b=J[g>>2];J[g>>2]=(i&b^-1)&o|b&d;l=(t<<2)+l|0;g=(s<<2)+g|0;c=c+1|0;if((r|0)!=(c|0))continue;break}break o;case 16:break M;default:break p}if(q){f=m^-1;q=k^-1;n=0;while(1){d=J[i>>2];ha:{if(w){d=d<>2]>>>h&k|d&q;break ha}u=d>>>h|0}d=J[j>>2];J[j>>2]= (u^d^-1)&m|d&f;i=(t<<2)+i|0;j=(s<<2)+j|0;n=n+1|0;if((r|0)!=(n|0))continue;break}}if(!x){m=e&-2;n=e&1;f=k^-1;w=0;while(1){ia:{if((e|0)<=0)break ia;j=0;d=0;if((e|0)!=1)while(1){i=j<<2;p=i+b|0;u=p;q=J[p>>2];p=c+i|0;J[u>>2]=q^(J[p+4>>2]>>>h&k|f&J[p>>2]<>2]=J[p>>2]^(J[i+4>>2]>>>h&k|f&J[i>>2]<>2]=J[i>>2]^(J[d+4>>2]>>>h&k|f&J[d>>2]<>2]<>2]>>>h&k|b&e;i=b;b=J[g>>2];J[g>>2]=(i^b^-1)&o|b&d;l=(t<<2)+l|0;g=(s<<2)+g|0;c=c+1|0;if((r|0)!=(c|0))continue;break}break o}g=d+g&31;if(!g)break G;l=0}d=l<<2;e=(d+h|0)+4|0;j=(a+d|0)+4|0;m=J[(g<<2)+231504>>2];w=1;break D}i=1;l=0;break D}a=d+g&31;if(!a){i=1;l=0;break D}k=u>>>5|0;h=P(t,y);m=g>>>5|0;j=P(s,z);l=0}d=((h<<2)+o|0)+(k<<2)|0;h=l<<2;e=d+h|0;j=((n+(j<<2)|0)+(m<<2)|0)+h|0;m=J[(a<<2)+231504>>2]; -w=1}n=227070;ja:switch(f-2|0){case 22:ka:{if(!q)break ka;f=k^-1;if((v|0)!=((x^-1)+p|0)){g=r&-2;d=0;while(1){J[a>>2]=J[h>>2]&k|f&J[a>>2];o=s<<2;a=o+a|0;u=h;h=t<<2;n=u+h|0;J[a>>2]=J[n>>2]&k|f&J[a>>2];h=h+n|0;a=a+o|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(r&1))break ka;J[a>>2]=J[h>>2]&k|f&J[a>>2]}if(!i){g=l&-4;f=l&3;o=0;h=(l|0)<=0;l=l-1>>>0<3;while(1){la:{if(h)break la;k=0;a=0;i=0;if(!l)while(1){d=a<<2;J[d+c>>2]=J[b+d>>2];n=d|4;J[n+c>>2]=J[b+n>>2];n=d|8;J[n+c>>2]=J[b+n>>2];d=d|12;J[d+c>>2]=J[b+ +0)!=(w|0))continue;break}}if(!v)break o;d=o^-1;e=k^-1;c=0;f=y&1;while(1){b=J[l>>2]<>2]>>>h&k|b&e;i=b;b=J[g>>2];J[g>>2]=(i^b^-1)&o|b&d;l=(t<<2)+l|0;g=(s<<2)+g|0;c=c+1|0;if((r|0)!=(c|0))continue;break}break o}g=d+g&31;if(!g)break G;l=0}d=l<<2;e=(d+h|0)+4|0;j=(a+d|0)+4|0;m=J[(g<<2)+231520>>2];w=1;break D}i=1;l=0;break D}a=d+g&31;if(!a){i=1;l=0;break D}k=u>>>5|0;h=P(t,y);m=g>>>5|0;j=P(s,z);l=0}d=((h<<2)+o|0)+(k<<2)|0;h=l<<2;e=d+h|0;j=((n+(j<<2)|0)+(m<<2)|0)+h|0;m=J[(a<<2)+231520>>2]; +w=1}n=227086;ja:switch(f-2|0){case 22:ka:{if(!q)break ka;f=k^-1;if((v|0)!=((x^-1)+p|0)){g=r&-2;d=0;while(1){J[a>>2]=J[h>>2]&k|f&J[a>>2];o=s<<2;a=o+a|0;u=h;h=t<<2;n=u+h|0;J[a>>2]=J[n>>2]&k|f&J[a>>2];h=h+n|0;a=a+o|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(r&1))break ka;J[a>>2]=J[h>>2]&k|f&J[a>>2]}if(!i){g=l&-4;f=l&3;o=0;h=(l|0)<=0;l=l-1>>>0<3;while(1){la:{if(h)break la;k=0;a=0;i=0;if(!l)while(1){d=a<<2;J[d+c>>2]=J[b+d>>2];n=d|4;J[n+c>>2]=J[b+n>>2];n=d|8;J[n+c>>2]=J[b+n>>2];d=d|12;J[d+c>>2]=J[b+ d>>2];a=a+4|0;i=i+4|0;if((g|0)!=(i|0))continue;break}if(!f)break la;while(1){d=a<<2;J[d+c>>2]=J[b+d>>2];a=a+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}b=(t<<2)+b|0;c=(s<<2)+c|0;o=o+1|0;if((r|0)!=(o|0))continue;break}}if(!w)break o;b=m^-1;if((v|0)!=((x^-1)+p|0)){d=r&-2;a=0;while(1){J[j>>2]=J[e>>2]&m|b&J[j>>2];f=s<<2;c=f+j|0;g=e;e=t<<2;g=g+e|0;J[c>>2]=J[g>>2]&m|b&J[c>>2];e=e+g|0;j=c+f|0;a=a+2|0;if((d|0)!=(a|0))continue;break}}if(!(r&1))break o;J[j>>2]=J[e>>2]&m|b&J[j>>2];break o;case 4:ma:{if(!q)break ma; f=k^-1;if((v|0)!=((x^-1)+p|0)){g=r&-2;d=0;while(1){J[a>>2]=(J[h>>2]^-1)&k|f&J[a>>2];o=s<<2;a=o+a|0;u=h;h=t<<2;n=u+h|0;J[a>>2]=(J[n>>2]^-1)&k|f&J[a>>2];h=h+n|0;a=a+o|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(r&1))break ma;J[a>>2]=(J[h>>2]^-1)&k|f&J[a>>2]}if(!i){g=l&-4;f=l&3;o=0;h=(l|0)<=0;l=l-1>>>0<3;while(1){na:{if(h)break na;k=0;a=0;i=0;if(!l)while(1){d=a<<2;J[d+c>>2]=J[b+d>>2]^-1;n=d|4;J[n+c>>2]=J[b+n>>2]^-1;n=d|8;J[n+c>>2]=J[b+n>>2]^-1;d=d|12;J[d+c>>2]=J[b+d>>2]^-1;a=a+4|0;i=i+4|0;if((g|0)!= (i|0))continue;break}if(!f)break na;while(1){d=a<<2;J[d+c>>2]=J[b+d>>2]^-1;a=a+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}b=(t<<2)+b|0;c=(s<<2)+c|0;o=o+1|0;if((r|0)!=(o|0))continue;break}}if(!w)break o;b=m^-1;if((v|0)!=((x^-1)+p|0)){d=r&-2;a=0;while(1){J[j>>2]=(J[e>>2]^-1)&m|b&J[j>>2];f=s<<2;c=f+j|0;g=e;e=t<<2;g=g+e|0;J[c>>2]=(J[g>>2]^-1)&m|b&J[c>>2];e=e+g|0;j=c+f|0;a=a+2|0;if((d|0)!=(a|0))continue;break}}if(!(r&1))break o;J[j>>2]=(J[e>>2]^-1)&m|b&J[j>>2];break o;case 26:oa:{if(!q)break oa;f=k^-1; @@ -3368,1417 +3434,1599 @@ break}}if(!w)break o;b=m^-1;if((v|0)!=((x^-1)+p|0)){f=r&-2;a=0;while(1){c=J[j>>2 h=h+q|0;a=a+n|0;d=d+2|0;if((o|0)!=(d|0))continue;break}}if(!(r&1))break Ea;d=a;a=J[a>>2];J[d>>2]=(a&J[h>>2]^-1)&k|a&f}if(!i){g=l&-2;h=l&1;d=0;while(1){Fa:{if((l|0)<=0)break Fa;a=0;k=0;if((l|0)!=1)while(1){f=a<<2;i=f+c|0;J[i>>2]=J[i>>2]&J[b+f>>2]^-1;f=f|4;i=f+c|0;J[i>>2]=J[i>>2]&J[b+f>>2]^-1;a=a+2|0;k=k+2|0;if((g|0)!=(k|0))continue;break}if(!h)break Fa;a=a<<2;f=a+c|0;J[f>>2]=J[f>>2]&J[a+b>>2]^-1}b=(t<<2)+b|0;c=(s<<2)+c|0;d=d+1|0;if((r|0)!=(d|0))continue;break}}if(!w)break o;b=m^-1;if((v|0)!=((x^-1)+ p|0)){f=r&-2;a=0;while(1){c=J[j>>2];J[j>>2]=(c&J[e>>2]^-1)&m|b&c;g=s<<2;c=g+j|0;d=J[c>>2];h=e;e=t<<2;h=h+e|0;J[c>>2]=(d&J[h>>2]^-1)&m|b&d;e=e+h|0;j=c+g|0;a=a+2|0;if((f|0)!=(a|0))continue;break}}if(!(r&1))break o;a=J[j>>2];J[j>>2]=(a&J[e>>2]^-1)&m|a&b;break o;case 16:break ja;default:break p}Ga:{if(!q)break Ga;d=p-(v+x|0)|0;o=d&1;f=k^-1;if((v|0)!=((x^-1)+p|0)){n=d&-2;d=0;while(1){g=J[a>>2];J[a>>2]=(g^J[h>>2]^-1)&k|f&g;q=s<<2;a=q+a|0;g=J[a>>2];u=h;h=t<<2;y=u+h|0;J[a>>2]=(g^J[y>>2]^-1)&k|f&g;h=h+y|0; a=a+q|0;d=d+2|0;if((n|0)!=(d|0))continue;break}}if(!o)break Ga;d=a;a=J[a>>2];J[d>>2]=(a^J[h>>2]^-1)&k|a&f}if(!i){g=l&-2;h=l&1;d=0;while(1){Ha:{if((l|0)<=0)break Ha;a=0;k=0;if((l|0)!=1)while(1){f=a<<2;i=f+c|0;J[i>>2]=J[b+f>>2]^J[i>>2]^-1;f=f|4;i=f+c|0;J[i>>2]=J[b+f>>2]^J[i>>2]^-1;a=a+2|0;k=k+2|0;if((g|0)!=(k|0))continue;break}if(!h)break Ha;a=a<<2;f=a+c|0;J[f>>2]=J[a+b>>2]^J[f>>2]^-1}b=(t<<2)+b|0;c=(s<<2)+c|0;d=d+1|0;if((r|0)!=(d|0))continue;break}}if(!w)break o;b=m^-1;if((v|0)!=((x^-1)+p|0)){f=r& --2;a=0;while(1){c=J[j>>2];J[j>>2]=(c^J[e>>2]^-1)&m|b&c;g=s<<2;c=g+j|0;d=J[c>>2];h=e;e=t<<2;h=h+e|0;J[c>>2]=(d^J[h>>2]^-1)&m|b&d;e=e+h|0;j=c+g|0;a=a+2|0;if((f|0)!=(a|0))continue;break}}if(!(r&1))break o;a=J[j>>2];J[j>>2]=(a^J[e>>2]^-1)&m|a&b;break o}J[B>>2]=f;cd(J[651370],n,B)}bc=B+16|0}j=0}return j|0}function ixb(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,y=0,z=0,A=0,B=0;q=c&1;t=(d|0)/16<<4;c=a;if((d|0)>=16)while(1){c9(c, -e,f,q);p=c;a:{if((e|0)<2)break a;w=(e-q|0)+1>>1;j=(P(w,f)<<2)+p|0;h=j;if(q){i=J[h>>2];g=J[p>>2];g=Dzb(g,g>>31,-25987,8191);J[h>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[p+4>>2];g=Dzb(g,g>>31,-25987,8191);J[h+4>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[p+8>>2];g=Dzb(g,g>>31,-25987,8191);J[h+8>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[p+12>>2];g=Dzb(g,g>>31,-25987,8191);J[h+12>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[p+16>>2];g=Dzb(g,g>>31,-25987,8191);J[h+16>>2]=((fc&8191)<<19|g>>>13)+ -i;i=J[h+20>>2];g=J[p+20>>2];g=Dzb(g,g>>31,-25987,8191);J[h+20>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[p+24>>2];g=Dzb(g,g>>31,-25987,8191);J[h+24>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[p+28>>2];g=Dzb(g,g>>31,-25987,8191);J[h+28>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[p+32>>2];g=Dzb(g,g>>31,-25987,8191);J[h+32>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[p+36>>2];g=Dzb(g,g>>31,-25987,8191);J[h+36>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[p+40>>2];g=Dzb(g,g>>31,-25987,8191);J[h+ -40>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[p+44>>2];g=Dzb(g,g>>31,-25987,8191);J[h+44>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[p+48>>2];g=Dzb(g,g>>31,-25987,8191);J[h+48>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[p+52>>2];g=Dzb(g,g>>31,-25987,8191);J[h+52>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[p+56>>2];g=Dzb(g,g>>31,-25987,8191);J[h+56>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[p+60>>2];g=Dzb(g,g>>31,-25987,8191);J[h+60>>2]=((fc&8191)<<19|g>>>13)+i;h=(f<<2)+h|0}u=e-w|0;r=e& -1;x=(r|0)==(q|0);k=(u-q|0)-x|0;b:{if((k|0)<=0){i=p;break b}m=f<<2;o=k;g=p;while(1){n=J[h>>2];i=g+m|0;l=J[i>>2]+J[g>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+4>>2];l=J[m+(g+4|0)>>2]+J[g+4>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+4>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+8>>2];l=J[m+(g+8|0)>>2]+J[g+8>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+8>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+12>>2];l=J[m+(g+12|0)>>2]+J[g+12>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+12>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+ -16>>2];l=J[m+(g+16|0)>>2]+J[g+16>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+16>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+20>>2];l=J[m+(g+20|0)>>2]+J[g+20>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+20>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+24>>2];l=J[m+(g+24|0)>>2]+J[g+24>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+24>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+28>>2];l=J[m+(g+28|0)>>2]+J[g+28>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+28>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+32>>2];l=J[m+(g+32|0)>>2]+J[g+32>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+ -32>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+36>>2];l=J[m+(g+36|0)>>2]+J[g+36>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+36>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+40>>2];l=J[m+(g+40|0)>>2]+J[g+40>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+40>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+44>>2];l=J[m+(g+44|0)>>2]+J[g+44>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+44>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+48>>2];l=J[m+(g+48|0)>>2]+J[g+48>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+48>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+52>>2];l=J[m+(g+52|0)>>2]+J[g+52>> -2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+52>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+56>>2];l=J[m+(g+56|0)>>2]+J[g+56>>2]|0;l=Dzb(l,l>>31,-12993,8191);J[h+56>>2]=((fc&8191)<<19|l>>>13)+n;l=J[h+60>>2];g=J[m+(g+60|0)>>2]+J[g+60>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+60>>2]=((fc&8191)<<19|g>>>13)+l;h=h+m|0;l=o>>>0>1;o=o-1|0;g=i;if(l)continue;break}}r=(q|0)!=(r|0);if(!r){o=J[h>>2];g=J[i>>2];g=Dzb(g,g>>31,-25987,8191);J[h>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+4>>2];g=J[i+4>>2];g=Dzb(g,g>>31,-25987,8191);J[h+4>>2]=((fc& -8191)<<19|g>>>13)+o;o=J[h+8>>2];g=J[i+8>>2];g=Dzb(g,g>>31,-25987,8191);J[h+8>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+12>>2];g=J[i+12>>2];g=Dzb(g,g>>31,-25987,8191);J[h+12>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+16>>2];g=J[i+16>>2];g=Dzb(g,g>>31,-25987,8191);J[h+16>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+20>>2];g=J[i+20>>2];g=Dzb(g,g>>31,-25987,8191);J[h+20>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+24>>2];g=J[i+24>>2];g=Dzb(g,g>>31,-25987,8191);J[h+24>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+28>>2];g=J[i+28>>2];g=Dzb(g,g>>31, --25987,8191);J[h+28>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+32>>2];g=J[i+32>>2];g=Dzb(g,g>>31,-25987,8191);J[h+32>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+36>>2];g=J[i+36>>2];g=Dzb(g,g>>31,-25987,8191);J[h+36>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+40>>2];g=J[i+40>>2];g=Dzb(g,g>>31,-25987,8191);J[h+40>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+44>>2];g=J[i+44>>2];g=Dzb(g,g>>31,-25987,8191);J[h+44>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+48>>2];g=J[i+48>>2];g=Dzb(g,g>>31,-25987,8191);J[h+48>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+52>> -2];g=J[i+52>>2];g=Dzb(g,g>>31,-25987,8191);J[h+52>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+56>>2];g=J[i+56>>2];g=Dzb(g,g>>31,-25987,8191);J[h+56>>2]=((fc&8191)<<19|g>>>13)+o;o=J[h+60>>2];g=J[i+60>>2];g=Dzb(g,g>>31,-25987,8191);J[h+60>>2]=((fc&8191)<<19|g>>>13)+o}h=p;if(!q){i=J[h>>2];g=J[j>>2];g=Dzb(g,g>>31,-868,8191);J[h>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[j+4>>2];g=Dzb(g,g>>31,-868,8191);J[h+4>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[j+8>>2];g=Dzb(g,g>>31,-868,8191);J[h+8>>2]=((fc&8191)<< -19|g>>>13)+i;i=J[h+12>>2];g=J[j+12>>2];g=Dzb(g,g>>31,-868,8191);J[h+12>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[j+16>>2];g=Dzb(g,g>>31,-868,8191);J[h+16>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[j+20>>2];g=Dzb(g,g>>31,-868,8191);J[h+20>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[j+24>>2];g=Dzb(g,g>>31,-868,8191);J[h+24>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[j+28>>2];g=Dzb(g,g>>31,-868,8191);J[h+28>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[j+32>>2];g=Dzb(g,g>>31,-868,8191);J[h+ -32>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[j+36>>2];g=Dzb(g,g>>31,-868,8191);J[h+36>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[j+40>>2];g=Dzb(g,g>>31,-868,8191);J[h+40>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[j+44>>2];g=Dzb(g,g>>31,-868,8191);J[h+44>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[j+48>>2];g=Dzb(g,g>>31,-868,8191);J[h+48>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[j+52>>2];g=Dzb(g,g>>31,-868,8191);J[h+52>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[j+56>>2];g=Dzb(g, -g>>31,-868,8191);J[h+56>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[j+60>>2];g=Dzb(g,g>>31,-868,8191);J[h+60>>2]=((fc&8191)<<19|g>>>13)+i;h=(f<<2)+h|0}o=(w-!q|0)-r|0;c:{if((o|0)<=0){m=j;break c}l=f<<2;i=o;g=j;while(1){s=J[h>>2];m=g+l|0;n=J[m>>2]+J[g>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+4>>2];n=J[l+(g+4|0)>>2]+J[g+4>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+4>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+8>>2];n=J[l+(g+8|0)>>2]+J[g+8>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+8>>2]=((fc&8191)<< -19|n>>>13)+s;s=J[h+12>>2];n=J[l+(g+12|0)>>2]+J[g+12>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+12>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+16>>2];n=J[l+(g+16|0)>>2]+J[g+16>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+16>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+20>>2];n=J[l+(g+20|0)>>2]+J[g+20>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+20>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+24>>2];n=J[l+(g+24|0)>>2]+J[g+24>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+24>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+28>>2];n=J[l+(g+28|0)>>2]+J[g+28>>2]|0;n=Dzb(n,n>>31,-434, -8191);J[h+28>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+32>>2];n=J[l+(g+32|0)>>2]+J[g+32>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+32>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+36>>2];n=J[l+(g+36|0)>>2]+J[g+36>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+36>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+40>>2];n=J[l+(g+40|0)>>2]+J[g+40>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+40>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+44>>2];n=J[l+(g+44|0)>>2]+J[g+44>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+44>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+48>>2];n=J[l+(g+48|0)>>2]+J[g+ -48>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+48>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+52>>2];n=J[l+(g+52|0)>>2]+J[g+52>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+52>>2]=((fc&8191)<<19|n>>>13)+s;s=J[h+56>>2];n=J[l+(g+56|0)>>2]+J[g+56>>2]|0;n=Dzb(n,n>>31,-434,8191);J[h+56>>2]=((fc&8191)<<19|n>>>13)+s;n=J[h+60>>2];g=J[l+(g+60|0)>>2]+J[g+60>>2]|0;g=Dzb(g,g>>31,-434,8191);J[h+60>>2]=((fc&8191)<<19|g>>>13)+n;h=h+l|0;n=i>>>0>1;i=i-1|0;g=m;if(n)continue;break}}if(!x){i=J[h>>2];g=J[m>>2];g=Dzb(g,g>>31,-868,8191);J[h>>2]=((fc& -8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[m+4>>2];g=Dzb(g,g>>31,-868,8191);J[h+4>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[m+8>>2];g=Dzb(g,g>>31,-868,8191);J[h+8>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[m+12>>2];g=Dzb(g,g>>31,-868,8191);J[h+12>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[m+16>>2];g=Dzb(g,g>>31,-868,8191);J[h+16>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[m+20>>2];g=Dzb(g,g>>31,-868,8191);J[h+20>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[m+24>>2];g=Dzb(g,g>>31,-868,8191);J[h+ -24>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[m+28>>2];g=Dzb(g,g>>31,-868,8191);J[h+28>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[m+32>>2];g=Dzb(g,g>>31,-868,8191);J[h+32>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[m+36>>2];g=Dzb(g,g>>31,-868,8191);J[h+36>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[m+40>>2];g=Dzb(g,g>>31,-868,8191);J[h+40>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[m+44>>2];g=Dzb(g,g>>31,-868,8191);J[h+44>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[m+48>>2];g=Dzb(g, -g>>31,-868,8191);J[h+48>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[m+52>>2];g=Dzb(g,g>>31,-868,8191);J[h+52>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[m+56>>2];g=Dzb(g,g>>31,-868,8191);J[h+56>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[m+60>>2];g=Dzb(g,g>>31,-868,8191);J[h+60>>2]=((fc&8191)<<19|g>>>13)+i}h=j;if(q){i=J[h>>2];g=J[p>>2];g=Dzb(g,g>>31,14465,0);J[h>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[p+4>>2];g=Dzb(g,g>>31,14465,0);J[h+4>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[p+8>> -2];g=Dzb(g,g>>31,14465,0);J[h+8>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[p+12>>2];g=Dzb(g,g>>31,14465,0);J[h+12>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[p+16>>2];g=Dzb(g,g>>31,14465,0);J[h+16>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[p+20>>2];g=Dzb(g,g>>31,14465,0);J[h+20>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[p+24>>2];g=Dzb(g,g>>31,14465,0);J[h+24>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[p+28>>2];g=Dzb(g,g>>31,14465,0);J[h+28>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g= -J[p+32>>2];g=Dzb(g,g>>31,14465,0);J[h+32>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[p+36>>2];g=Dzb(g,g>>31,14465,0);J[h+36>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[p+40>>2];g=Dzb(g,g>>31,14465,0);J[h+40>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[p+44>>2];g=Dzb(g,g>>31,14465,0);J[h+44>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[p+48>>2];g=Dzb(g,g>>31,14465,0);J[h+48>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[p+52>>2];g=Dzb(g,g>>31,14465,0);J[h+52>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+ -56>>2];g=J[p+56>>2];g=Dzb(g,g>>31,14465,0);J[h+56>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[p+60>>2];g=Dzb(g,g>>31,14465,0);J[h+60>>2]=((fc&8191)<<19|g>>>13)+i;h=(f<<2)+h|0}d:{if((k|0)<=0){i=p;break d}m=f<<2;g=p;while(1){n=J[h>>2];i=g+m|0;l=J[i>>2]+J[g>>2]|0;l=Dzb(l,l>>31,7232,0);J[h>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+4>>2];l=J[m+(g+4|0)>>2]+J[g+4>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+4>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+8>>2];l=J[m+(g+8|0)>>2]+J[g+8>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+8>>2]=((fc&8191)<< -19|l>>>13)+n;n=J[h+12>>2];l=J[m+(g+12|0)>>2]+J[g+12>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+12>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+16>>2];l=J[m+(g+16|0)>>2]+J[g+16>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+16>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+20>>2];l=J[m+(g+20|0)>>2]+J[g+20>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+20>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+24>>2];l=J[m+(g+24|0)>>2]+J[g+24>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+24>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+28>>2];l=J[m+(g+28|0)>>2]+J[g+28>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+28>>2]= -((fc&8191)<<19|l>>>13)+n;n=J[h+32>>2];l=J[m+(g+32|0)>>2]+J[g+32>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+32>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+36>>2];l=J[m+(g+36|0)>>2]+J[g+36>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+36>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+40>>2];l=J[m+(g+40|0)>>2]+J[g+40>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+40>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+44>>2];l=J[m+(g+44|0)>>2]+J[g+44>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+44>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+48>>2];l=J[m+(g+48|0)>>2]+J[g+48>>2]|0;l=Dzb(l,l>>31,7232, -0);J[h+48>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+52>>2];l=J[m+(g+52|0)>>2]+J[g+52>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+52>>2]=((fc&8191)<<19|l>>>13)+n;n=J[h+56>>2];l=J[m+(g+56|0)>>2]+J[g+56>>2]|0;l=Dzb(l,l>>31,7232,0);J[h+56>>2]=((fc&8191)<<19|l>>>13)+n;l=J[h+60>>2];g=J[m+(g+60|0)>>2]+J[g+60>>2]|0;g=Dzb(g,g>>31,7232,0);J[h+60>>2]=((fc&8191)<<19|g>>>13)+l;h=h+m|0;l=k>>>0>1;k=k-1|0;g=i;if(l)continue;break}}if(!r){k=J[h>>2];g=J[i>>2];g=Dzb(g,g>>31,14465,0);J[h>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+4>>2];g=J[i+4>> -2];g=Dzb(g,g>>31,14465,0);J[h+4>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+8>>2];g=J[i+8>>2];g=Dzb(g,g>>31,14465,0);J[h+8>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+12>>2];g=J[i+12>>2];g=Dzb(g,g>>31,14465,0);J[h+12>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+16>>2];g=J[i+16>>2];g=Dzb(g,g>>31,14465,0);J[h+16>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+20>>2];g=J[i+20>>2];g=Dzb(g,g>>31,14465,0);J[h+20>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+24>>2];g=J[i+24>>2];g=Dzb(g,g>>31,14465,0);J[h+24>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+28>>2];g=J[i+ -28>>2];g=Dzb(g,g>>31,14465,0);J[h+28>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+32>>2];g=J[i+32>>2];g=Dzb(g,g>>31,14465,0);J[h+32>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+36>>2];g=J[i+36>>2];g=Dzb(g,g>>31,14465,0);J[h+36>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+40>>2];g=J[i+40>>2];g=Dzb(g,g>>31,14465,0);J[h+40>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+44>>2];g=J[i+44>>2];g=Dzb(g,g>>31,14465,0);J[h+44>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+48>>2];g=J[i+48>>2];g=Dzb(g,g>>31,14465,0);J[h+48>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+52>> -2];g=J[i+52>>2];g=Dzb(g,g>>31,14465,0);J[h+52>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+56>>2];g=J[i+56>>2];g=Dzb(g,g>>31,14465,0);J[h+56>>2]=((fc&8191)<<19|g>>>13)+k;k=J[h+60>>2];g=J[i+60>>2];g=Dzb(g,g>>31,14465,0);J[h+60>>2]=((fc&8191)<<19|g>>>13)+k}h=p;if(!q){i=J[h>>2];g=J[j>>2];g=Dzb(g,g>>31,7266,0);J[h>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[j+4>>2];g=Dzb(g,g>>31,7266,0);J[h+4>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[j+8>>2];g=Dzb(g,g>>31,7266,0);J[h+8>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+12>> -2];g=J[j+12>>2];g=Dzb(g,g>>31,7266,0);J[h+12>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[j+16>>2];g=Dzb(g,g>>31,7266,0);J[h+16>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[j+20>>2];g=Dzb(g,g>>31,7266,0);J[h+20>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[j+24>>2];g=Dzb(g,g>>31,7266,0);J[h+24>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[j+28>>2];g=Dzb(g,g>>31,7266,0);J[h+28>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[j+32>>2];g=Dzb(g,g>>31,7266,0);J[h+32>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+36>> -2];g=J[j+36>>2];g=Dzb(g,g>>31,7266,0);J[h+36>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[j+40>>2];g=Dzb(g,g>>31,7266,0);J[h+40>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[j+44>>2];g=Dzb(g,g>>31,7266,0);J[h+44>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[j+48>>2];g=Dzb(g,g>>31,7266,0);J[h+48>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[j+52>>2];g=Dzb(g,g>>31,7266,0);J[h+52>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[j+56>>2];g=Dzb(g,g>>31,7266,0);J[h+56>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+60>> -2];g=J[j+60>>2];g=Dzb(g,g>>31,7266,0);J[h+60>>2]=((fc&8191)<<19|g>>>13)+i;h=(f<<2)+h|0}e:{if((o|0)<=0){k=j;break e}i=f<<2;g=j;while(1){l=J[h>>2];k=g+i|0;m=J[k>>2]+J[g>>2]|0;m=Dzb(m,m>>31,3633,0);J[h>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+4>>2];m=J[i+(g+4|0)>>2]+J[g+4>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+4>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+8>>2];m=J[i+(g+8|0)>>2]+J[g+8>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+8>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+12>>2];m=J[i+(g+12|0)>>2]+J[g+12>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+12>> -2]=((fc&8191)<<19|m>>>13)+l;l=J[h+16>>2];m=J[i+(g+16|0)>>2]+J[g+16>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+16>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+20>>2];m=J[i+(g+20|0)>>2]+J[g+20>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+20>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+24>>2];m=J[i+(g+24|0)>>2]+J[g+24>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+24>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+28>>2];m=J[i+(g+28|0)>>2]+J[g+28>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+28>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+32>>2];m=J[i+(g+32|0)>>2]+J[g+32>>2]|0;m=Dzb(m,m>>31,3633, -0);J[h+32>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+36>>2];m=J[i+(g+36|0)>>2]+J[g+36>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+36>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+40>>2];m=J[i+(g+40|0)>>2]+J[g+40>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+40>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+44>>2];m=J[i+(g+44|0)>>2]+J[g+44>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+44>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+48>>2];m=J[i+(g+48|0)>>2]+J[g+48>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+48>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+52>>2];m=J[i+(g+52|0)>>2]+J[g+52>>2]|0;m=Dzb(m, -m>>31,3633,0);J[h+52>>2]=((fc&8191)<<19|m>>>13)+l;l=J[h+56>>2];m=J[i+(g+56|0)>>2]+J[g+56>>2]|0;m=Dzb(m,m>>31,3633,0);J[h+56>>2]=((fc&8191)<<19|m>>>13)+l;m=J[h+60>>2];g=J[i+(g+60|0)>>2]+J[g+60>>2]|0;g=Dzb(g,g>>31,3633,0);J[h+60>>2]=((fc&8191)<<19|g>>>13)+m;h=h+i|0;m=o>>>0>1;o=o-1|0;g=k;if(m)continue;break}}if(!x){i=J[h>>2];g=J[k>>2];g=Dzb(g,g>>31,7266,0);J[h>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[k+4>>2];g=Dzb(g,g>>31,7266,0);J[h+4>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[k+8>>2];g=Dzb(g, -g>>31,7266,0);J[h+8>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[k+12>>2];g=Dzb(g,g>>31,7266,0);J[h+12>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[k+16>>2];g=Dzb(g,g>>31,7266,0);J[h+16>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[k+20>>2];g=Dzb(g,g>>31,7266,0);J[h+20>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[k+24>>2];g=Dzb(g,g>>31,7266,0);J[h+24>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[k+28>>2];g=Dzb(g,g>>31,7266,0);J[h+28>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[k+32>>2];g=Dzb(g, -g>>31,7266,0);J[h+32>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[k+36>>2];g=Dzb(g,g>>31,7266,0);J[h+36>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[k+40>>2];g=Dzb(g,g>>31,7266,0);J[h+40>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[k+44>>2];g=Dzb(g,g>>31,7266,0);J[h+44>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[k+48>>2];g=Dzb(g,g>>31,7266,0);J[h+48>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[k+52>>2];g=Dzb(g,g>>31,7266,0);J[h+52>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[k+56>>2];g=Dzb(g, -g>>31,7266,0);J[h+56>>2]=((fc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[k+60>>2];g=Dzb(g,g>>31,7266,0);J[h+60>>2]=((fc&8191)<<19|g>>>13)+i}if((w|0)>0){i=f<<2;while(1){g=J[p>>2];g=Dzb(g,g>>31,6659,0);J[p>>2]=(fc&8191)<<19|g>>>13;g=J[p+4>>2];g=Dzb(g,g>>31,6659,0);J[p+4>>2]=(fc&8191)<<19|g>>>13;g=J[p+8>>2];g=Dzb(g,g>>31,6659,0);J[p+8>>2]=(fc&8191)<<19|g>>>13;g=J[p+12>>2];g=Dzb(g,g>>31,6659,0);J[p+12>>2]=(fc&8191)<<19|g>>>13;g=J[p+16>>2];g=Dzb(g,g>>31,6659,0);J[p+16>>2]=(fc&8191)<<19|g>>>13;g=J[p+20>>2];g= -Dzb(g,g>>31,6659,0);J[p+20>>2]=(fc&8191)<<19|g>>>13;g=J[p+24>>2];g=Dzb(g,g>>31,6659,0);J[p+24>>2]=(fc&8191)<<19|g>>>13;g=J[p+28>>2];g=Dzb(g,g>>31,6659,0);J[p+28>>2]=(fc&8191)<<19|g>>>13;g=J[p+32>>2];g=Dzb(g,g>>31,6659,0);J[p+32>>2]=(fc&8191)<<19|g>>>13;g=J[p+36>>2];g=Dzb(g,g>>31,6659,0);J[p+36>>2]=(fc&8191)<<19|g>>>13;g=J[p+40>>2];g=Dzb(g,g>>31,6659,0);J[p+40>>2]=(fc&8191)<<19|g>>>13;g=J[p+44>>2];g=Dzb(g,g>>31,6659,0);J[p+44>>2]=(fc&8191)<<19|g>>>13;g=J[p+48>>2];g=Dzb(g,g>>31,6659,0);J[p+48>>2]=(fc& -8191)<<19|g>>>13;g=J[p+52>>2];g=Dzb(g,g>>31,6659,0);J[p+52>>2]=(fc&8191)<<19|g>>>13;g=J[p+56>>2];g=Dzb(g,g>>31,6659,0);J[p+56>>2]=(fc&8191)<<19|g>>>13;g=J[p+60>>2];g=Dzb(g,g>>31,6659,0);J[p+60>>2]=(fc&8191)<<19|g>>>13;p=i+p|0;g=w>>>0>1;w=w-1|0;if(g)continue;break}}if((u|0)<=0)break a;p=f<<2;while(1){g=J[j>>2];g=Dzb(g,g>>31,5038,0);J[j>>2]=(fc&8191)<<19|g>>>13;g=J[j+4>>2];g=Dzb(g,g>>31,5038,0);J[j+4>>2]=(fc&8191)<<19|g>>>13;g=J[j+8>>2];g=Dzb(g,g>>31,5038,0);J[j+8>>2]=(fc&8191)<<19|g>>>13;g=J[j+12>> -2];g=Dzb(g,g>>31,5038,0);J[j+12>>2]=(fc&8191)<<19|g>>>13;g=J[j+16>>2];g=Dzb(g,g>>31,5038,0);J[j+16>>2]=(fc&8191)<<19|g>>>13;g=J[j+20>>2];g=Dzb(g,g>>31,5038,0);J[j+20>>2]=(fc&8191)<<19|g>>>13;g=J[j+24>>2];g=Dzb(g,g>>31,5038,0);J[j+24>>2]=(fc&8191)<<19|g>>>13;g=J[j+28>>2];g=Dzb(g,g>>31,5038,0);J[j+28>>2]=(fc&8191)<<19|g>>>13;g=J[j+32>>2];g=Dzb(g,g>>31,5038,0);J[j+32>>2]=(fc&8191)<<19|g>>>13;g=J[j+36>>2];g=Dzb(g,g>>31,5038,0);J[j+36>>2]=(fc&8191)<<19|g>>>13;g=J[j+40>>2];g=Dzb(g,g>>31,5038,0);J[j+40>> -2]=(fc&8191)<<19|g>>>13;g=J[j+44>>2];g=Dzb(g,g>>31,5038,0);J[j+44>>2]=(fc&8191)<<19|g>>>13;g=J[j+48>>2];g=Dzb(g,g>>31,5038,0);J[j+48>>2]=(fc&8191)<<19|g>>>13;g=J[j+52>>2];g=Dzb(g,g>>31,5038,0);J[j+52>>2]=(fc&8191)<<19|g>>>13;g=J[j+56>>2];g=Dzb(g,g>>31,5038,0);J[j+56>>2]=(fc&8191)<<19|g>>>13;g=J[j+60>>2];g=Dzb(g,g>>31,5038,0);J[j+60>>2]=(fc&8191)<<19|g>>>13;j=j+p|0;g=u>>>0>1;u=u-1|0;if(g)continue;break}}c=c- -64|0;z=z+16|0;if((t|0)>(z|0))continue;break}if((d|0)>(t|0)){l=d-t|0;b9(c,e,l,f,q);g=c;t=q; -c=0;u=0;f:{if((e|0)<2)break f;x=(e-q|0)+1>>1;p=(P(x,f)<<2)+g|0;j=p;if(q){g:{if((l|0)<=0)break g;i=j;k=g;if(l-1>>>0>=3){h=l&-4;while(1){o=J[i>>2];j=J[k>>2];j=Dzb(j,j>>31,-25987,8191);J[i>>2]=((fc&8191)<<19|j>>>13)+o;o=J[i+4>>2];j=J[k+4>>2];j=Dzb(j,j>>31,-25987,8191);J[i+4>>2]=((fc&8191)<<19|j>>>13)+o;o=J[i+8>>2];j=J[k+8>>2];j=Dzb(j,j>>31,-25987,8191);J[i+8>>2]=((fc&8191)<<19|j>>>13)+o;o=J[i+12>>2];j=J[k+12>>2];j=Dzb(j,j>>31,-25987,8191);J[i+12>>2]=((fc&8191)<<19|j>>>13)+o;k=k+16|0;i=i+16|0;c=c+4|0; -if((h|0)!=(c|0))continue;break}}h=l&3;if(!h)break g;c=0;while(1){o=J[i>>2];j=J[k>>2];j=Dzb(j,j>>31,-25987,8191);J[i>>2]=((fc&8191)<<19|j>>>13)+o;k=k+4|0;i=i+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}j=(f<<2)+p|0}w=e-x|0;r=e&1;n=(r|0)==(t|0);m=(w-t|0)-n|0;h:{i:{if((m|0)<=0){c=g;break i}if((l|0)<=0)break h;v=l&-2;s=l&1;h=f<<2;o=m;c=g;while(1){q=0;i=j;k=c;if((l|0)!=1)while(1){y=J[i>>2];u=J[h+k>>2]+J[k>>2]|0;u=Dzb(u,u>>31,-12993,8191);J[i>>2]=((fc&8191)<<19|u>>>13)+y;y=J[i+4>>2];u=J[h+(k+4|0)>>2]+J[k+ -4>>2]|0;u=Dzb(u,u>>31,-12993,8191);J[i+4>>2]=((fc&8191)<<19|u>>>13)+y;i=i+8|0;k=k+8|0;q=q+2|0;if((v|0)!=(q|0))continue;break}if(s){q=J[i>>2];k=J[h+k>>2]+J[k>>2]|0;k=Dzb(k,k>>31,-12993,8191);J[i>>2]=((fc&8191)<<19|k>>>13)+q}c=c+h|0;j=h+j|0;i=(o|0)>1;o=o-1|0;if(i)continue;break}}v=(l|0)>0;u=n&v;if(!u){u=0;break h}if(l-1>>>0>=3){h=l&-4;i=0;while(1){o=J[j>>2];k=J[c>>2];k=Dzb(k,k>>31,-25987,8191);J[j>>2]=((fc&8191)<<19|k>>>13)+o;o=J[j+4>>2];k=J[c+4>>2];k=Dzb(k,k>>31,-25987,8191);J[j+4>>2]=((fc&8191)<< -19|k>>>13)+o;o=J[j+8>>2];k=J[c+8>>2];k=Dzb(k,k>>31,-25987,8191);J[j+8>>2]=((fc&8191)<<19|k>>>13)+o;o=J[j+12>>2];k=J[c+12>>2];k=Dzb(k,k>>31,-25987,8191);J[j+12>>2]=((fc&8191)<<19|k>>>13)+o;j=j+16|0;c=c+16|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}h=l&3;if(!h)break h;i=0;while(1){o=J[j>>2];k=J[c>>2];k=Dzb(k,k>>31,-25987,8191);J[j>>2]=((fc&8191)<<19|k>>>13)+o;j=j+4|0;c=c+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}j=g;if(!t){j:{if(!v)break j;k=p;i=g;if(l-1>>>0>=3){h=l&-4;c=0;while(1){o=J[i>>2];j=J[k>> -2];j=Dzb(j,j>>31,-868,8191);J[i>>2]=((fc&8191)<<19|j>>>13)+o;o=J[i+4>>2];j=J[k+4>>2];j=Dzb(j,j>>31,-868,8191);J[i+4>>2]=((fc&8191)<<19|j>>>13)+o;o=J[i+8>>2];j=J[k+8>>2];j=Dzb(j,j>>31,-868,8191);J[i+8>>2]=((fc&8191)<<19|j>>>13)+o;o=J[i+12>>2];j=J[k+12>>2];j=Dzb(j,j>>31,-868,8191);J[i+12>>2]=((fc&8191)<<19|j>>>13)+o;k=k+16|0;i=i+16|0;c=c+4|0;if((h|0)!=(c|0))continue;break}}h=l&3;if(!h)break j;c=0;while(1){o=J[i>>2];j=J[k>>2];j=Dzb(j,j>>31,-868,8191);J[i>>2]=((fc&8191)<<19|j>>>13)+o;k=k+4|0;i=i+4|0; -c=c+1|0;if((h|0)!=(c|0))continue;break}}j=(f<<2)+g|0}k:{l:{m:{n:{o:{s=(r|0)!=(t|0);o=(x-!t|0)-s|0;p:{if((o|0)<=0){c=p;break p}if(!v)break o;z=l&-2;A=l&1;r=f<<2;h=o;c=p;while(1){q=0;i=c;k=j;if((l|0)!=1)while(1){B=J[k>>2];y=J[i+r>>2]+J[i>>2]|0;y=Dzb(y,y>>31,-434,8191);J[k>>2]=((fc&8191)<<19|y>>>13)+B;B=J[k+4>>2];y=J[r+(i+4|0)>>2]+J[i+4>>2]|0;y=Dzb(y,y>>31,-434,8191);J[k+4>>2]=((fc&8191)<<19|y>>>13)+B;i=i+8|0;k=k+8|0;q=q+2|0;if((z|0)!=(q|0))continue;break}if(A){q=J[k>>2];i=J[i+r>>2]+J[i>>2]|0;i=Dzb(i, -i>>31,-434,8191);J[k>>2]=((fc&8191)<<19|i>>>13)+q}c=c+r|0;j=j+r|0;i=(h|0)>1;h=h-1|0;if(i)continue;break}}q=s&v;q:{if(!q)break q;if(l-1>>>0>=3){h=l&-4;i=0;while(1){r=J[j>>2];k=J[c>>2];k=Dzb(k,k>>31,-868,8191);J[j>>2]=((fc&8191)<<19|k>>>13)+r;r=J[j+4>>2];k=J[c+4>>2];k=Dzb(k,k>>31,-868,8191);J[j+4>>2]=((fc&8191)<<19|k>>>13)+r;r=J[j+8>>2];k=J[c+8>>2];k=Dzb(k,k>>31,-868,8191);J[j+8>>2]=((fc&8191)<<19|k>>>13)+r;r=J[j+12>>2];k=J[c+12>>2];k=Dzb(k,k>>31,-868,8191);J[j+12>>2]=((fc&8191)<<19|k>>>13)+r;c=c+16| -0;j=j+16|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}h=l&3;if(!h)break q;i=0;while(1){r=J[j>>2];k=J[c>>2];k=Dzb(k,k>>31,-868,8191);J[j>>2]=((fc&8191)<<19|k>>>13)+r;c=c+4|0;j=j+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(!t){h=q;j=p;break m}h=0;if(!v)break n;i=p;k=g;if(l-1>>>0>=3){h=l&-4;c=0;while(1){r=J[i>>2];j=J[k>>2];j=Dzb(j,j>>31,14465,0);J[i>>2]=((fc&8191)<<19|j>>>13)+r;r=J[i+4>>2];j=J[k+4>>2];j=Dzb(j,j>>31,14465,0);J[i+4>>2]=((fc&8191)<<19|j>>>13)+r;r=J[i+8>>2];j=J[k+8>>2];j=Dzb(j,j>>31,14465, -0);J[i+8>>2]=((fc&8191)<<19|j>>>13)+r;r=J[i+12>>2];j=J[k+12>>2];j=Dzb(j,j>>31,14465,0);J[i+12>>2]=((fc&8191)<<19|j>>>13)+r;k=k+16|0;i=i+16|0;c=c+4|0;if((h|0)!=(c|0))continue;break}}h=l&3;if(h){c=0;while(1){r=J[i>>2];j=J[k>>2];j=Dzb(j,j>>31,14465,0);J[i>>2]=((fc&8191)<<19|j>>>13)+r;k=k+4|0;i=i+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}h=q;break n}h=0;if(t)break n;j=p;c=g;if((m|0)<=0)break k;break l}j=(f<<2)+p|0}if((m|0)<=0){c=g;break k}if(!v)break l;y=l&-2;z=l&1;r=f<<2;c=g;while(1){q=0;i=j;k=c;if((l| -0)!=1)while(1){A=J[i>>2];n=J[k+r>>2]+J[k>>2]|0;n=Dzb(n,n>>31,7232,0);J[i>>2]=((fc&8191)<<19|n>>>13)+A;A=J[i+4>>2];n=J[r+(k+4|0)>>2]+J[k+4>>2]|0;n=Dzb(n,n>>31,7232,0);J[i+4>>2]=((fc&8191)<<19|n>>>13)+A;i=i+8|0;k=k+8|0;q=q+2|0;if((y|0)!=(q|0))continue;break}if(z){q=J[i>>2];k=J[k+r>>2]+J[k>>2]|0;k=Dzb(k,k>>31,7232,0);J[i>>2]=((fc&8191)<<19|k>>>13)+q}c=c+r|0;j=j+r|0;i=(m|0)>1;m=m-1|0;if(i)continue;break}break k}i=P((n?-1:0)+e-(t+x)|0,f)<<2;c=i+g|0;j=i+j|0}r:{if(!u)break r;if(l-1>>>0>=3){m=l&-4;i=0;while(1){q= -J[j>>2];k=J[c>>2];k=Dzb(k,k>>31,14465,0);J[j>>2]=((fc&8191)<<19|k>>>13)+q;q=J[j+4>>2];k=J[c+4>>2];k=Dzb(k,k>>31,14465,0);J[j+4>>2]=((fc&8191)<<19|k>>>13)+q;q=J[j+8>>2];k=J[c+8>>2];k=Dzb(k,k>>31,14465,0);J[j+8>>2]=((fc&8191)<<19|k>>>13)+q;q=J[j+12>>2];k=J[c+12>>2];k=Dzb(k,k>>31,14465,0);J[j+12>>2]=((fc&8191)<<19|k>>>13)+q;j=j+16|0;c=c+16|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}m=l&3;if(!m)break r;i=0;while(1){q=J[j>>2];k=J[c>>2];k=Dzb(k,k>>31,14465,0);J[j>>2]=((fc&8191)<<19|k>>>13)+q;j=j+4|0;c=c+ -4|0;i=i+1|0;if((m|0)!=(i|0))continue;break}}j=g;if(!t){s:{if(!v)break s;k=p;i=g;if(l-1>>>0>=3){m=l&-4;c=0;while(1){q=J[i>>2];j=J[k>>2];j=Dzb(j,j>>31,7266,0);J[i>>2]=((fc&8191)<<19|j>>>13)+q;q=J[i+4>>2];j=J[k+4>>2];j=Dzb(j,j>>31,7266,0);J[i+4>>2]=((fc&8191)<<19|j>>>13)+q;q=J[i+8>>2];j=J[k+8>>2];j=Dzb(j,j>>31,7266,0);J[i+8>>2]=((fc&8191)<<19|j>>>13)+q;q=J[i+12>>2];j=J[k+12>>2];j=Dzb(j,j>>31,7266,0);J[i+12>>2]=((fc&8191)<<19|j>>>13)+q;k=k+16|0;i=i+16|0;c=c+4|0;if((m|0)!=(c|0))continue;break}}m=l&3;if(!m)break s; -c=0;while(1){q=J[i>>2];j=J[k>>2];j=Dzb(j,j>>31,7266,0);J[i>>2]=((fc&8191)<<19|j>>>13)+q;k=k+4|0;i=i+4|0;c=c+1|0;if((m|0)!=(c|0))continue;break}}j=(f<<2)+g|0}t:{if((o|0)<=0){c=p;break t}if(v){u=l&-2;r=l&1;m=f<<2;c=p;while(1){q=0;i=c;k=j;if((l|0)!=1)while(1){n=J[k>>2];t=J[i+m>>2]+J[i>>2]|0;t=Dzb(t,t>>31,3633,0);J[k>>2]=((fc&8191)<<19|t>>>13)+n;n=J[k+4>>2];t=J[m+(i+4|0)>>2]+J[i+4>>2]|0;t=Dzb(t,t>>31,3633,0);J[k+4>>2]=((fc&8191)<<19|t>>>13)+n;i=i+8|0;k=k+8|0;q=q+2|0;if((u|0)!=(q|0))continue;break}if(r){q= -J[k>>2];i=J[i+m>>2]+J[i>>2]|0;i=Dzb(i,i>>31,3633,0);J[k>>2]=((fc&8191)<<19|i>>>13)+q}c=c+m|0;j=j+m|0;i=(o|0)>1;o=o-1|0;if(i)continue;break}break t}c=P((x<<3)+((t?0:-1)+(s?-1:0)<<2)|0,f)+g|0;j=(P(f,o)<<2)+j|0}u:{if(!h)break u;if(l-1>>>0>=3){h=l&-4;i=0;while(1){o=J[j>>2];k=J[c>>2];k=Dzb(k,k>>31,7266,0);J[j>>2]=((fc&8191)<<19|k>>>13)+o;o=J[j+4>>2];k=J[c+4>>2];k=Dzb(k,k>>31,7266,0);J[j+4>>2]=((fc&8191)<<19|k>>>13)+o;o=J[j+8>>2];k=J[c+8>>2];k=Dzb(k,k>>31,7266,0);J[j+8>>2]=((fc&8191)<<19|k>>>13)+o;o=J[j+ -12>>2];k=J[c+12>>2];k=Dzb(k,k>>31,7266,0);J[j+12>>2]=((fc&8191)<<19|k>>>13)+o;c=c+16|0;j=j+16|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}h=l&3;if(!h)break u;i=0;while(1){o=J[j>>2];k=J[c>>2];k=Dzb(k,k>>31,7266,0);J[j>>2]=((fc&8191)<<19|k>>>13)+o;c=c+4|0;j=j+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if((x|0)>0){if(!v)break f;h=l&-4;c=l&3;o=l-1>>>0<3;m=f<<2;while(1){k=0;i=g;if(!o)while(1){j=J[i>>2];j=Dzb(j,j>>31,6659,0);J[i>>2]=(fc&8191)<<19|j>>>13;j=J[i+4>>2];j=Dzb(j,j>>31,6659,0);J[i+4>>2]=(fc&8191)<< -19|j>>>13;j=J[i+8>>2];j=Dzb(j,j>>31,6659,0);J[i+8>>2]=(fc&8191)<<19|j>>>13;j=J[i+12>>2];j=Dzb(j,j>>31,6659,0);J[i+12>>2]=(fc&8191)<<19|j>>>13;i=i+16|0;k=k+4|0;if((h|0)!=(k|0))continue;break}k=0;if(c)while(1){j=J[i>>2];j=Dzb(j,j>>31,6659,0);J[i>>2]=(fc&8191)<<19|j>>>13;i=i+4|0;k=k+1|0;if((c|0)!=(k|0))continue;break}g=g+m|0;j=(x|0)>1;x=x-1|0;if(j)continue;break}}if(!v|(w|0)<=0)break f;j=l&-4;c=l&3;h=l-1>>>0<3;o=f<<2;while(1){k=0;i=p;if(!h)while(1){g=J[i>>2];g=Dzb(g,g>>31,5038,0);J[i>>2]=(fc&8191)<< -19|g>>>13;g=J[i+4>>2];g=Dzb(g,g>>31,5038,0);J[i+4>>2]=(fc&8191)<<19|g>>>13;g=J[i+8>>2];g=Dzb(g,g>>31,5038,0);J[i+8>>2]=(fc&8191)<<19|g>>>13;g=J[i+12>>2];g=Dzb(g,g>>31,5038,0);J[i+12>>2]=(fc&8191)<<19|g>>>13;i=i+16|0;k=k+4|0;if((j|0)!=(k|0))continue;break}k=0;if(c)while(1){g=J[i>>2];g=Dzb(g,g>>31,5038,0);J[i>>2]=(fc&8191)<<19|g>>>13;i=i+4|0;k=k+1|0;if((c|0)!=(k|0))continue;break}p=o+p|0;g=(w|0)>1;w=w-1|0;if(g)continue;break}}}if((e|0)>0){o=b&1;c=0;x=f<<2;while(1){a9(a,d,o);b=a;v:{if((d|0)<2)break v; -i=(d-o|0)+1>>1;p=(i<<2)+b|0;g=p;if(o){j=J[g>>2];f=J[b>>2];f=Dzb(f,f>>31,-25987,8191);J[g>>2]=((fc&8191)<<19|f>>>13)+j;g=g+4|0}q=d&1;m=(q|0)==(o|0);l=m?-1:0;u=d-i|0;k=(u-o|0)-m|0;w:{if((k|0)<=0){f=b;break w}h=(d+l|0)+(i^-1)|0;x:{if(!(k&1)){j=k;f=b;break x}j=J[g>>2];f=J[b+4>>2]+J[b>>2]|0;f=Dzb(f,f>>31,-12993,8191);J[g>>2]=((fc&8191)<<19|f>>>13)+j;g=g+4|0;j=k-1|0;f=b+4|0}if((h|0)==(o|0))break w;while(1){t=J[g>>2];h=J[f+4>>2]+J[f>>2]|0;h=Dzb(h,h>>31,-12993,8191);J[g>>2]=((fc&8191)<<19|h>>>13)+t;t=J[g+ -4>>2];h=J[f+8>>2]+J[f+4>>2]|0;h=Dzb(h,h>>31,-12993,8191);J[g+4>>2]=((fc&8191)<<19|h>>>13)+t;g=g+8|0;f=f+8|0;h=j-3|0;j=j-2|0;if(h>>>0<4294967294)continue;break}}q=(o|0)!=(q|0);if(!q){j=J[g>>2];f=J[f>>2];f=Dzb(f,f>>31,-25987,8191);J[g>>2]=((fc&8191)<<19|f>>>13)+j}g=b;if(!o){j=J[g>>2];f=J[p>>2];f=Dzb(f,f>>31,-868,8191);J[g>>2]=((fc&8191)<<19|f>>>13)+j;g=g+4|0}t=o?0:-1;w=q?-1:0;j=(i-!o|0)-q|0;y:{if((j|0)<=0){f=p;break y}v=w+(i+t|0)|0;z:{if(!(j&1)){h=j;f=p;break z}h=J[g>>2];f=J[p+4>>2]+J[p>>2]|0;f=Dzb(f, -f>>31,-434,8191);J[g>>2]=((fc&8191)<<19|f>>>13)+h;g=g+4|0;h=j-1|0;f=p+4|0}if((v|0)==1)break y;while(1){r=J[g>>2];v=J[f+4>>2]+J[f>>2]|0;v=Dzb(v,v>>31,-434,8191);J[g>>2]=((fc&8191)<<19|v>>>13)+r;r=J[g+4>>2];v=J[f+8>>2]+J[f+4>>2]|0;v=Dzb(v,v>>31,-434,8191);J[g+4>>2]=((fc&8191)<<19|v>>>13)+r;g=g+8|0;f=f+8|0;v=h-3|0;h=h-2|0;if(v>>>0<4294967294)continue;break}}if(!m){h=J[g>>2];f=J[f>>2];f=Dzb(f,f>>31,-868,8191);J[g>>2]=((fc&8191)<<19|f>>>13)+h}g=p;if(o){h=J[g>>2];f=J[b>>2];f=Dzb(f,f>>31,14465,0);J[g>>2]= -((fc&8191)<<19|f>>>13)+h;g=g+4|0}A:{if((k|0)<=0){f=b;break A}h=(d+l|0)+(i^-1)|0;if(k&1){l=J[g>>2];f=J[b+4>>2]+J[b>>2]|0;f=Dzb(f,f>>31,7232,0);J[g>>2]=((fc&8191)<<19|f>>>13)+l;g=g+4|0;k=k-1|0;f=b+4|0}else f=b;if((h|0)==(o|0))break A;while(1){l=J[g>>2];h=J[f+4>>2]+J[f>>2]|0;h=Dzb(h,h>>31,7232,0);J[g>>2]=((fc&8191)<<19|h>>>13)+l;l=J[g+4>>2];h=J[f+8>>2]+J[f+4>>2]|0;h=Dzb(h,h>>31,7232,0);J[g+4>>2]=((fc&8191)<<19|h>>>13)+l;g=g+8|0;f=f+8|0;h=k-3|0;k=k-2|0;if(h>>>0<4294967294)continue;break}}if(!q){k=J[g>> -2];f=J[f>>2];f=Dzb(f,f>>31,14465,0);J[g>>2]=((fc&8191)<<19|f>>>13)+k}g=b;if(!o){k=J[g>>2];f=J[p>>2];f=Dzb(f,f>>31,7266,0);J[g>>2]=((fc&8191)<<19|f>>>13)+k;g=g+4|0}B:{if((j|0)<=0){f=p;break B}k=w+(i+t|0)|0;if(j&1){h=J[g>>2];f=J[p+4>>2]+J[p>>2]|0;f=Dzb(f,f>>31,3633,0);J[g>>2]=((fc&8191)<<19|f>>>13)+h;g=g+4|0;j=j-1|0;f=p+4|0}else f=p;if((k|0)==1)break B;while(1){h=J[g>>2];k=J[f+4>>2]+J[f>>2]|0;k=Dzb(k,k>>31,3633,0);J[g>>2]=((fc&8191)<<19|k>>>13)+h;h=J[g+4>>2];k=J[f+8>>2]+J[f+4>>2]|0;k=Dzb(k,k>>31,3633, -0);J[g+4>>2]=((fc&8191)<<19|k>>>13)+h;g=g+8|0;f=f+8|0;k=j-3|0;j=j-2|0;if(k>>>0<4294967294)continue;break}}if(!m){j=J[g>>2];f=J[f>>2];f=Dzb(f,f>>31,7266,0);J[g>>2]=((fc&8191)<<19|f>>>13)+j}C:{if((i|0)<=0)break C;k=i&3;D:{if(!k){g=i;break D}f=0;g=i;while(1){j=J[b>>2];j=Dzb(j,j>>31,6659,0);J[b>>2]=(fc&8191)<<19|j>>>13;b=b+4|0;g=g-1|0;f=f+1|0;if((k|0)!=(f|0))continue;break}}if(i>>>0<=3)break C;while(1){f=J[b>>2];f=Dzb(f,f>>31,6659,0);J[b>>2]=(fc&8191)<<19|f>>>13;f=J[b+4>>2];f=Dzb(f,f>>31,6659,0);J[b+ -4>>2]=(fc&8191)<<19|f>>>13;f=J[b+8>>2];f=Dzb(f,f>>31,6659,0);J[b+8>>2]=(fc&8191)<<19|f>>>13;f=J[b+12>>2];f=Dzb(f,f>>31,6659,0);J[b+12>>2]=(fc&8191)<<19|f>>>13;b=b+16|0;f=g-5|0;g=g-4|0;if(f>>>0<4294967294)continue;break}}if((u|0)<=0)break v;while(1){b=J[p>>2];b=Dzb(b,b>>31,5038,0);J[p>>2]=(fc&8191)<<19|b>>>13;p=p+4|0;b=u>>>0>1;u=u-1|0;if(b)continue;break}}a=a+x|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}return 0}function eu(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,u=0,v= -0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;k=bc-15984|0;bc=k;J[k+15976>>2]=g;J[k+15980>>2]=f;q=J[a+176>>2];j=q;p=J[J[j+536>>2]+544>>2];G=J[a+52>>2];C=J[a>>2];wc(k+15824|0,0,128);J[k+15968>>2]=0;f=k+15808|0;J[f>>2]=0;J[f+4>>2]=0;f=k+15708|0;J[f>>2]=0;J[f+4>>2]=0;f=k+15716|0;J[f>>2]=0;J[f+4>>2]=0;J[k+15960>>2]=0;J[k+15964>>2]=0;J[k+15792>>2]=0;J[k+15796>>2]=0;J[k+15800>>2]=0;J[k+15804>>2]=0;J[k+15780>>2]=0;J[k+15784>>2]=0;J[k+15772>>2]=10;J[k+15776>>2]= -0;J[k+15764>>2]=20;J[k+15768>>2]=0;E=a+4|0;J[k+15760>>2]=E;J[k+15756>>2]=C;J[k+15748>>2]=0;J[k+15752>>2]=0;J[k+15740>>2]=10;J[k+15744>>2]=0;J[k+15732>>2]=20;J[k+15736>>2]=0;J[k+15728>>2]=E;J[k+15724>>2]=C;J[k+15700>>2]=0;J[k+15704>>2]=0;J[k+15696>>2]=E;wc(k+15536|0,0,160);J[k+15540>>2]=10;J[k+15532>>2]=8;J[k+15528>>2]=E;J[k+15524>>2]=C;J[k+3916>>2]=c;J[k+3912>>2]=a;wc(k+11668|0,0,3856);f=K[a+184|0];J[k+11672>>2]=G;H[k+11669|0]=f;N=k+15524|0;J[k+11664>>2]=N;O=k+11656|0;J[k+11660>>2]=O;J[k+11656>>2]= -a;wc(k+7800|0,0,3856);J[k+7804>>2]=G;H[k+7801|0]=f;J[k+7796>>2]=N;J[k+7792>>2]=O;J[k+7788>>2]=a;wc(k+3932|0,0,3856);J[k+3936>>2]=G;H[k+3933|0]=f;J[k+3928>>2]=N;J[k+3924>>2]=O;J[k+3920>>2]=a;J[k+15556>>2]=J[a+40>>2];L=48;f=J[a+48>>2];J[k+15564>>2]=G;J[k+15560>>2]=f;i=J[d>>2];f=J[d+4>>2];J[k+15596>>2]=a+240;J[k+15592>>2]=g;J[k+15568>>2]=i;J[k+15572>>2]=f;J[k+15588>>2]=k+15696;J[k+15584>>2]=k+15724;J[k+15580>>2]=k+15756;H[k+15578|0]=K[a+185|0];f=J[a+228>>2];J[k+15600>>2]=f;i=J[a+232>>2];J[k+15612>>2]= -6554;J[k+15604>>2]=i;H[k+15577|0]=0;H[k+15579|0]=1;g=f;f=f>>31;g=(g^f)-f|0;f=i>>31;f=(f^i)-f|0;J[k+15608>>2]=((f|0)<(g|0)?g:f)<<1;f=K[a+9|0];H[k+15791|0]=(f|0)!=0;J[h>>2]=J[J[j+536>>2]+540>>2]<<16;L=f?J[J[j+532>>2]+1556>>2]:L;J[k+40>>2]=0;g=k+40|0;f=Zd(C,20,g);a:{b:{c:{d:{if(!J[k+40>>2]){J[f+4>>2]=E;J[f>>2]=C;g=Sc(C,8,0,L,0,g);J[f+8>>2]=g;if(!J[k+40>>2])break d;if(f)gc[J[C+8>>2]](C,f)}b=64;f=0;i=1;g=0;break c}J[f+16>>2]=L;J[f+12>>2]=g;J[k+40>>2]=0;g=Sc(C,1,0,272,0,k+40|0);j=J[a+4>>2];if(J[k+40>>2]){i= -0;if(j)break a;b=64;break b}i=0;if(j)break a;Q=p<<16;S=k+3920|0;A=k+15700|0;p=J[b+4>>2];J[g>>2]=J[b>>2];J[g+4>>2]=p;p=J[b+12>>2];J[g+8>>2]=J[b+8>>2];J[g+12>>2]=p;F=a+92|0;T=k+52|0;U=k+15616|0;R=2E7;w=g;e:while(1){B=0;while(1){p=i;b=w+12|0;i=J[b>>2];n=J[w+8>>2];f:{if(i>>>0>=n>>>0){l=z?11:14;j=i;break f}j=i+1|0;J[b>>2]=j;g:{l=K[i|0];switch(l-11|0){case 0:case 3:break g;default:break f}}l=K[a+9|0]?0:l}u=K[a+8|0];if(u){o=l&254;h:{m=l>>>0>31;if(m|(l|0)==12|((o|0)==10|(l-13&255)>>>0<2))break h;if(p&255| -(l&253)==1)break h;J[f+12>>2]=J[f+8>>2];i=0;continue}i=(l|0)==12;D=i?D:D&255?m?D:0:D;x=m?x:i?x:(x|0)<=0?x:(o|0)==10?x:0}if(J[a+4>>2]){i=0;break a}R=R-1|0;if(!R){i=0;b=18;break b}i=p;i:{j:{k:{l:{m:{n:{o:{p:switch(l|0){case 15:if(!K[a+9|0])break m;if(K[a+93|0])break i;b=J[f+12>>2];if((b|0)==J[f+8>>2]){i=0;b=J[f+4>>2];if(!b|J[b>>2])break k;J[b>>2]=161;J[a+120>>2]=0;i=p;break j}if(J[b-4>>2]!=2){i=0;b=J[f+4>>2];if(!b|J[b>>2])break k;J[b>>2]=160;break k}b=b-8|0;J[f+12>>2]=b;i=J[b>>2];if((i|0)>=0)break k; -break m;case 16:if(!K[a+9|0])break m;b=18;i=0;if(!J[a+96>>2])break c;q:{if(!(gc[J[J[a+548>>2]+12>>2]](F,J[a+120>>2],J[a+124>>2],J[a+128>>2])|0))break q;j=gc[J[J[a+548>>2]+16>>2]](F,J[a+120>>2],J[a+124>>2],J[a+128>>2])|0;if(!j)break q;b=j;break c}j=J[f+12>>2];r:{if((j|0)==J[f+8>>2]){l=0;b=J[f+4>>2];if(!b|J[b>>2])break r;J[b>>2]=161;break r}if(J[j-4>>2]!=2){l=0;b=J[f+4>>2];if(!b|J[b>>2])break r;J[b>>2]=160;break r}j=j-8|0;J[f+12>>2]=j;l=J[j>>2];if(L>>>0>>0)break c}n=0;j=J[f+12>>2];b=J[f+8>>2];i= -j-b>>3;t=P(J[F+20>>2],l);if(l){v=i-t|0;m=v+l|0;while(1){j=J[F+24>>2];o=J[f+12>>2]-b>>3;y=n+v|0;s:{if(o>>>0<=y>>>0){i=0;r=J[f+4>>2];if(!r|J[r>>2])break s;J[r>>2]=130;break s}r=(y<<3)+b|0;i=J[r>>2];t:switch(J[r+4>>2]-1|0){case 1:i=i<<16;break s;case 0:break t;default:break s}i=((i>>31)+i|0)- -8192>>14}r=1;if(M[F+20>>2]>=2){while(1){u=J[j+4>>2];b=J[f+8>>2];u:{if(J[f+12>>2]-b>>3>>>0<=m>>>0){b=0;o=J[f+4>>2];if(!o|J[o>>2])break u;J[o>>2]=130;break u}o=b+(m<<3)|0;b=J[o>>2];v:switch(J[o+4>>2]-1|0){case 1:b= -b<<16;break u;case 0:break v;default:break u}b=((b>>31)+b|0)- -8192>>14}m=m+1|0;j=j+4|0;i=Pc(u,b)+i|0;r=r+1|0;if(r>>>0>2])continue;break}b=J[f+8>>2];o=J[f+12>>2]-b>>3}w:{if(o>>>0>>0){i=J[f+4>>2];if(!i|J[i>>2])break w;J[i>>2]=130;break w}j=y<<3;J[j+b>>2]=i;b=J[f+8>>2];J[(j+b|0)+4>>2]=0}n=n+1|0;if((n|0)!=(l|0))continue;break}j=J[f+12>>2];i=j-b>>3}b=t-l|0;x:{if(i>>>0>>0){b=J[f+4>>2];if(!b|J[b>>2])break x;J[b>>2]=161;break x}J[f+12>>2]=j-(b<<3)}H[a+93|0]=1;i=p;continue;case 1:case 18:j= -k+15756|0;m=k+15791|0;y:{if(!u){if(K[k+15700|0])break m;b=0;break y}b=J[J[q+32>>2]+4>>2]}OC(a,f,j,h,m,b);if(!K[q+548|0])break j;break l;case 3:case 23:j=k+15724|0;m=k+15791|0;z:{if(!u){if(K[k+15700|0])break m;b=0;break z}b=J[J[q+32>>2]>>2]}OC(a,f,j,h,m,b);if(K[q+548|0])break l;break j;case 4:i=J[f+12>>2];j=J[f+8>>2];if(!(K[k+15791|0]|i-j>>>0<16)){b=J[j>>2];A:{B:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break A;case 0:break B;default:break A}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+ -548|0])break l;C:{if((i|0)==(j|0)){i=0;b=J[f+4>>2];if(!b|J[b>>2])break C;J[b>>2]=161;break C}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];D:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break C;case 0:break D;default:break C}i=((i>>31)+i|0)- -8192>>14}b=J[k+15976>>2]+i|0;J[k+15976>>2]=b;if(J[q+468>>2])break m;du(k+3912|0,J[k+15980>>2],b);break m;case 5:r=J[k+15976>>2];l=J[k+15980>>2];i=J[f+8>>2];b=J[f+12>>2];if((i|0)!=(b|0)){o=b-i>>3;i=0;while(1){n=J[f+8>>2];m=J[f+12>>2]-n>>3;E:{if(m>>>0<=i>>>0){b=0;j=J[f+4>>2];if(!j|J[j>> -2])break E;J[j>>2]=130;break E}j=n+(i<<3)|0;b=J[j>>2];F:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break E;case 0:break F;default:break E}b=((b>>31)+b|0)- -8192>>14}l=b+l|0;b=i|1;G:{if(b>>>0>=m>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break G;J[j>>2]=130;break G}j=n+(b<<3)|0;b=J[j>>2];H:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break G;case 0:break H;default:break G}b=((b>>31)+b|0)- -8192>>14}r=b+r|0;tr(k+3912|0,l,r);i=i+2|0;if(o>>>0>i>>>0)continue;break}i=J[f+8>>2]}J[k+15976>>2]=r;J[k+15980>>2]=l;J[f+12>>2]=i;i= -p;continue;case 6:case 7:r=J[k+15976>>2];s=J[k+15980>>2];i=J[f+8>>2];b=J[f+12>>2];if((i|0)!=(b|0)){b=b-i>>3;m=b>>>0<=1?1:b;b=(l|0)==6;l=0;while(1){i=J[f+8>>2];I:{if(J[f+12>>2]-i>>3>>>0<=l>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break I;J[j>>2]=130;break I}j=i+(l<<3)|0;i=J[j>>2];J:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break I;case 0:break J;default:break I}i=((i>>31)+i|0)- -8192>>14}j=b&255;s=(j?i:0)+s|0;r=(j?0:i)+r|0;tr(k+3912|0,s,r);b=b^1;l=l+1|0;if((m|0)!=(l|0))continue;break}i=J[f+8>>2]}J[k+15976>>2]= -r;J[k+15980>>2]=s;J[f+12>>2]=i;i=p;continue;case 8:case 24:b=6;m=0;r=J[k+15976>>2];s=J[k+15980>>2];i=J[f+8>>2];u=J[f+12>>2]-i>>3;if(u>>>0>=6){while(1){i=m;m=b;y=J[f+8>>2];t=J[f+12>>2]-y>>3;K:{if(t>>>0<=i>>>0){j=0;b=J[f+4>>2];if(!b|J[b>>2])break K;J[b>>2]=130;break K}b=y+(i<<3)|0;j=J[b>>2];L:switch(J[b+4>>2]-1|0){case 1:j=j<<16;break K;case 0:break L;default:break K}j=((j>>31)+j|0)- -8192>>14}b=i|1;M:{if(b>>>0>=t>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break M;J[b>>2]=130;break M}b=y+(b<<3)|0;n=J[b>>2]; -N:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break M;case 0:break N;default:break M}n=((n>>31)+n|0)- -8192>>14}b=i+2|0;O:{if(b>>>0>=t>>>0){o=0;b=J[f+4>>2];if(!b|J[b>>2])break O;J[b>>2]=130;break O}b=y+(b<<3)|0;o=J[b>>2];P:switch(J[b+4>>2]-1|0){case 1:o=o<<16;break O;case 0:break P;default:break O}o=((o>>31)+o|0)- -8192>>14}v=j+s|0;b=i+3|0;Q:{if(b>>>0>=t>>>0){s=0;b=J[f+4>>2];if(!b|J[b>>2])break Q;J[b>>2]=130;break Q}b=y+(b<<3)|0;s=J[b>>2];R:switch(J[b+4>>2]-1|0){case 1:s=s<<16;break Q;case 0:break R;default:break Q}s= -((s>>31)+s|0)- -8192>>14}n=n+r|0;o=o+v|0;b=i+4|0;S:{if(b>>>0>=t>>>0){r=0;b=J[f+4>>2];if(!b|J[b>>2])break S;J[b>>2]=130;break S}b=y+(b<<3)|0;r=J[b>>2];T:switch(J[b+4>>2]-1|0){case 1:r=r<<16;break S;case 0:break T;default:break S}r=((r>>31)+r|0)- -8192>>14}j=n+s|0;s=o+r|0;b=i+5|0;U:{if(b>>>0>=t>>>0){i=0;b=J[f+4>>2];if(!b|J[b>>2])break U;J[b>>2]=130;break U}b=y+(b<<3)|0;i=J[b>>2];V:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break U;case 0:break V;default:break U}i=((i>>31)+i|0)- -8192>>14}r=i+j|0;Kp(k+3912| -0,v,n,o,j,s,r);b=m+6|0;if(u>>>0>=b>>>0)continue;break}i=J[f+8>>2]}J[k+15976>>2]=r;J[k+15980>>2]=s;if((l|0)==24){o=J[f+12>>2]-i>>3;W:{if(o>>>0<=m>>>0){l=0;b=J[f+4>>2];if(!b|J[b>>2])break W;J[b>>2]=130;break W}b=(m<<3)+i|0;l=J[b>>2];X:switch(J[b+4>>2]-1|0){case 1:l=l<<16;break W;case 0:break X;default:break W}l=((l>>31)+l|0)- -8192>>14}j=l+s|0;J[k+15980>>2]=j;b=m|1;Y:{if(b>>>0>=o>>>0){i=0;b=J[f+4>>2];if(!b|J[b>>2])break Y;J[b>>2]=130;break Y}b=(b<<3)+i|0;i=J[b>>2];Z:switch(J[b+4>>2]-1|0){case 1:i=i<< -16;break Y;case 0:break Z;default:break Y}i=((i>>31)+i|0)- -8192>>14}b=i+r|0;J[k+15976>>2]=b;tr(k+3912|0,j,b);i=J[f+8>>2]}J[f+12>>2]=i;i=p;continue;case 9:if(!u)break m;if(K[k+15576|0]){H[k+15577|0]=1;b=k+3912|0;tr(b,J[k+15648>>2],J[k+15652>>2]);if(K[k+15656|0])lx(b,S,U,J[k+15624>>2],J[k+15628>>2],1);H[k+15656|0]=0;I[k+15576>>1]=0;H[k+15579|0]=1}H[k+15791|0]=1;i=p;break j;case 10:case 29:b=18;i=0;if((z|0)>16)break c;z=z+1|0;j=z;if(j>>>0>=17){J[a+4>>2]=130;j=0}m=j<<4;j=J[f+12>>2];_:{if((j|0)==J[f+ -8>>2]){r=0;j=J[f+4>>2];if(!j|J[j>>2])break _;J[j>>2]=161;break _}if(J[j-4>>2]!=2){r=0;j=J[f+4>>2];if(!j|J[j>>2])break _;J[j>>2]=160;break _}j=j-8|0;J[f+12>>2]=j;r=J[j>>2]}w=g+m|0;$:{if(!u)break $;j=J[q+616>>2];if(!j)break $;j=zi(r,j);if(!j){r=-1;break $}r=J[j>>2]}J[w>>2]=0;J[w+4>>2]=0;J[w+8>>2]=0;J[w+12>>2]=0;if((l|0)==29){j=J[q+568>>2]+r|0;if(j>>>0>=M[q+560>>2])break c;i=J[q+576>>2]+(j<<2)|0;b=J[i>>2];J[w+4>>2]=b;J[w+12>>2]=b;J[w+8>>2]=J[i+4>>2];i=p;continue}j=J[q+564>>2]+r|0;if(j>>>0>=M[q+556>> -2])break c;j=j<<2;m=j+J[q+572>>2]|0;i=J[m>>2];J[w+4>>2]=i;aa:{if(K[q+48|0]){b=J[q+612>>2];if(b){if(!i){i=0;b=0;break aa}b=J[b+j>>2]+i|0;break aa}b=J[q+608>>2];i=((b|0)>0?b:0)+i|0;J[w+4>>2]=i;b=J[m+4>>2];break aa}b=J[m+4>>2]}J[w+12>>2]=i;J[w+8>>2]=b;i=p;continue;case 11:if((z|0)<=0)break i;z=z-1|0;b=z;if(b>>>0>=17){J[a+4>>2]=130;b=0}w=(b<<4)+g|0;continue;case 12:if(j>>>0>=n>>>0){b=J[w>>2];if(b){l=0;if(J[b>>2])break n;J[b>>2]=85}l=0;break n}J[b>>2]=j+1;ba:{ca:{da:{ea:{l=K[j|0];switch(l-8|0){case 29:break ba; -case 28:break ca;case 27:break da;case 26:break ea;case 0:case 5:case 11:case 17:case 23:case 24:break j;default:break n}}NC(f,k+15980|0,k+15976|0,k+3912|0,262028,0);continue}NC(f,k+15980|0,k+15976|0,k+3912|0,262040,0);break j}NC(f,k+15980|0,k+15976|0,k+3912|0,262052,0);continue}NC(f,k+15980|0,k+15976|0,k+3912|0,262064,1);continue;case 13:if(!u)break m;i=J[f+12>>2];j=J[f+8>>2];fa:{if((i|0)==(j|0)){l=0;b=J[f+4>>2];if(!b|J[b>>2])break fa;J[b>>2]=161;break fa}i=i-8|0;J[f+12>>2]=i;l=J[i>>2];ga:switch(J[i+ -4>>2]-1|0){case 1:l=l<<16;break fa;case 0:break ga;default:break fa}l=((l>>31)+l|0)- -8192>>14}b=J[q+36>>2];J[b+4>>2]=0;J[b>>2]=l;ha:{if((i|0)==(j|0)){i=0;b=J[f+4>>2];if(!b|J[b>>2])break ha;J[b>>2]=161;break ha}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];ia:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break ha;case 0:break ia;default:break ha}i=((i>>31)+i|0)- -8192>>14}b=J[q+32>>2];J[b>>2]=J[b>>2]+i;H[k+15791|0]=1;if(K[q+47|0])break l;if(!(p&255)){i=0;break j}J[k+15980>>2]=J[k+15980>>2]+i;i=p;break j;case 14:if(!(!u| -p&255)){du(k+3912|0,J[k+15980>>2],J[k+15976>>2]);J[k+15776>>2]=0;J[k+15744>>2]=0;J[A+16>>2]=0;J[A+20>>2]=0;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+4>>2]=0;J[k+15696>>2]=E;H[k+15701|0]=1;if((z|0)>0){i=z;ja:{if(!(i&1))break ja;i=i-1|0;if(z>>>0<18){b=i;break ja}b=0;if(J[a+4>>2])break ja;J[a+4>>2]=130}if((z|0)!=1)while(1){if(!(J[a+4>>2]|i>>>0<18))J[a+4>>2]=130;p=i-1|0;i=i-2|0;b=i;ka:{if(p>>>0<18)break ka;b=0;if(J[a+4>>2])break ka;J[a+4>>2]=130}if(p>>>0>1)continue;break}w=(b<<4)+g|0;z=0}J[w+12>>2]=J[w+ -4>>2];i=1;break j}b=J[f+12>>2]-J[f+8>>2]|0;la:{ma:{if((b|0)!=8){if((b|0)!=40)break la;if(!K[k+15791|0])break ma;break la}if(K[k+15791|0])break la}V=h,W=po(f,0)+Q|0,J[V>>2]=W}H[k+15791|0]=1;i=0;if(K[q+548|0]){b=0;break c}b=k+3912|0;if(K[b+11664|0]){H[b+11665|0]=1;tr(b,J[b+11736>>2],J[b+11740>>2]);if(K[b+11744|0])lx(b,b+8|0,b+11704|0,J[b+11712>>2],J[b+11716>>2],1);H[b+11744|0]=0;I[b+11664>>1]=0;H[b+11667|0]=1}if(K[a+9|0]){b=0;break c}if(K[a+8|0]){b=0;break c}if(J[f+12>>2]-J[f+8>>2]>>>0<9){b=0;break c}b= -18;na:{if(e)break na;b=gj(f);i=gj(f);h=Ge(f);J[k+15976>>2]=h;e=Ge(f);J[k+15980>>2]=e;p=k+40|0;b=c5(q,b,p);if(b)break na;b=h;h=k+12|0;eu(a,p,c,d,1,e,b,h);e=k+44|0;gc[J[q+600>>2]](J[q+4>>2],e,J[k+48>>2]-J[k+44>>2]|0);b=c5(q,i,p);if(b)break na;b=0;eu(a,p,c,d,1,0,0,h);gc[J[q+600>>2]](J[q+4>>2],e,J[k+48>>2]-J[k+44>>2]|0)}i=0;break c;case 19:case 20:if(K[k+15700|0]?J[f+12>>2]-J[f+8>>2]>>>0>=16:0)break m;i=0;OC(a,f,k+15724|0,h,k+15791|0,0);if(K[q+548|0]){b=0;break c}if((l|0)==19){j=J[k+15744>>2]+J[k+15776>> -2]|0;if(j>>>0>=97){b=J[k+15696>>2];if(!b|J[b>>2])break m;J[b>>2]=18;i=p;break j}J[k+15704>>2]=j;I[k+15700>>1]=257;J[k+15708>>2]=j+7>>>3;if(!j)break m;while(1){j=J[b>>2];oa:{if(j>>>0>2]){J[b>>2]=j+1;l=K[j|0];break oa}l=0;j=J[w>>2];if(!j|J[j>>2])break oa;J[j>>2]=85}H[(i+k|0)+15712|0]=l;i=i+1|0;if(i>>>0>2])continue;break}break m}wc(T,0,3856);i=K[a+184|0];J[k+56>>2]=G;H[k+53|0]=i;J[k+48>>2]=N;J[k+44>>2]=O;J[k+40>>2]=a;J[k+32>>2]=0;J[k+36>>2]=0;J[k+24>>2]=0;J[k+28>>2]=0;J[k+16>>2]=0; -J[k+20>>2]=0;J[k+12>>2]=E;j=J[k+15744>>2]+J[k+15776>>2]|0;pa:{if(j>>>0>=97){if(J[a+4>>2])break pa;J[a+4>>2]=18;break pa}J[k+20>>2]=j;I[k+16>>1]=257;J[k+24>>2]=j+7>>>3;i=0;if(!j)break pa;while(1){j=J[b>>2];qa:{if(j>>>0>2]){J[b>>2]=j+1;l=K[j|0];break qa}l=0;j=J[w>>2];if(!j|J[j>>2])break qa;J[j>>2]=85}H[(i+k|0)+28|0]=l;i=i+1|0;if(i>>>0>2])continue;break}}kx(k+40|0,k+15756|0,k+15724|0,k+12|0,0,0);i=p;break j;case 21:j=J[f+12>>2];m=J[f+8>>2];if(!(K[k+15791|0]|j-m>>>0<24)){b=J[m>>2];ra:{sa:switch(J[m+ -4>>2]-1|0){case 1:b=b<<16;break ra;case 0:break sa;default:break ra}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+548|0])break l;b=J[k+15976>>2];ta:{ua:{va:{if((j|0)==(m|0)){i=J[f+4>>2];if(!(!i|J[i>>2]))J[i>>2]=161;J[k+15976>>2]=b;s=J[k+15980>>2];break va}i=j-8|0;J[f+12>>2]=i;s=J[i>>2];wa:{xa:switch(J[i+4>>2]-1|0){case 0:s=((s>>31)+s|0)- -8192>>14;break wa;case 1:break xa;default:break wa}s=s<<16}b=b+s|0;J[k+15976>>2]=b;s=J[k+15980>>2];if((i|0)!=(m|0))break ua}i=0;j=J[f+4>>2];if(!j| -J[j>>2])break ta;J[j>>2]=161;break ta}j=j-16|0;J[f+12>>2]=j;i=J[j>>2];ya:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break ta;case 0:break ya;default:break ta}i=((i>>31)+i|0)- -8192>>14}i=i+s|0;J[k+15980>>2]=i;if(J[q+468>>2])break m;du(k+3912|0,i,b);i=p;break j;case 22:i=J[f+12>>2];j=J[f+8>>2];if(!(K[k+15791|0]|i-j>>>0<16)){b=J[j>>2];za:{Aa:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break za;case 0:break Aa;default:break za}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+548|0])break l;Ba:{if((i| -0)==(j|0)){i=0;b=J[f+4>>2];if(!b|J[b>>2])break Ba;J[b>>2]=161;break Ba}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];Ca:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break Ba;case 0:break Ca;default:break Ba}i=((i>>31)+i|0)- -8192>>14}b=J[k+15980>>2]+i|0;J[k+15980>>2]=b;if(J[q+468>>2])break m;du(k+3912|0,b,J[k+15976>>2]);i=p;break j;case 25:i=0;r=J[k+15976>>2];l=J[k+15980>>2];t=J[f+12>>2]-J[f+8>>2]>>3;if(t>>>0<=6)break o;while(1){o=J[f+8>>2];m=J[f+12>>2]-o>>3;b=i;Da:{if(m>>>0<=b>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break Da; -J[j>>2]=130;break Da}j=o+(b<<3)|0;i=J[j>>2];Ea:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break Da;case 0:break Ea;default:break Da}i=((i>>31)+i|0)- -8192>>14}l=i+l|0;i=b|1;Fa:{if(i>>>0>=m>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break Fa;J[j>>2]=130;break Fa}j=o+(i<<3)|0;i=J[j>>2];Ga:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break Fa;case 0:break Ga;default:break Fa}i=((i>>31)+i|0)- -8192>>14}r=i+r|0;tr(k+3912|0,l,r);i=b+2|0;if(t>>>0>b+8>>>0)continue;break}break o;case 26:n=J[k+15976>>2];b=J[k+15980>>2];l=J[f+8>> -2];u=J[f+12>>2]-l>>3;i=u&2;o=u&-3;if(i>>>0>>0){while(1){t=J[f+8>>2];v=J[f+12>>2]-t>>3;if(u-i&1){Ha:{if(i>>>0>=v>>>0){s=0;j=J[f+4>>2];if(!j|J[j>>2])break Ha;J[j>>2]=130;break Ha}j=t+(i<<3)|0;s=J[j>>2];Ia:switch(J[j+4>>2]-1|0){case 1:s=s<<16;break Ha;case 0:break Ia;default:break Ha}s=((s>>31)+s|0)- -8192>>14}i=i+1|0;b=b+s|0}m=b;Ja:{if(i>>>0>=v>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Ja;J[j>>2]=130;break Ja}j=t+(i<<3)|0;b=J[j>>2];Ka:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Ja;case 0:break Ka; -default:break Ja}b=((b>>31)+b|0)- -8192>>14}j=i+1|0;La:{if(j>>>0>=v>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break La;J[l>>2]=130;break La}l=t+(j<<3)|0;j=J[l>>2];Ma:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break La;case 0:break Ma;default:break La}j=((j>>31)+j|0)- -8192>>14}r=b+n|0;b=i+2|0;Na:{if(b>>>0>=v>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break Na;J[b>>2]=130;break Na}b=t+(b<<3)|0;n=J[b>>2];Oa:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break Na;case 0:break Oa;default:break Na}n=((n>>31)+n|0)- -8192>>14}b=j+m|0; -n=n+r|0;j=i+3|0;Pa:{if(j>>>0>=v>>>0){l=0;j=J[f+4>>2];if(!j|J[j>>2])break Pa;J[j>>2]=130;break Pa}j=t+(j<<3)|0;l=J[j>>2];Qa:switch(J[j+4>>2]-1|0){case 1:l=l<<16;break Pa;case 0:break Qa;default:break Pa}l=((l>>31)+l|0)- -8192>>14}j=n;n=l+n|0;Kp(k+3912|0,m,r,b,j,b,n);i=i+4|0;if(o>>>0>i>>>0)continue;break}l=J[f+8>>2]}J[k+15976>>2]=n;J[k+15980>>2]=b;J[f+12>>2]=l;i=p;continue;case 27:n=J[k+15980>>2];b=J[k+15976>>2];l=J[f+8>>2];u=J[f+12>>2]-l>>3;i=u&2;o=u&-3;if(i>>>0>>0){while(1){t=J[f+8>>2];v=J[f+12>> -2]-t>>3;if(u-i&1){Ra:{if(i>>>0>=v>>>0){s=0;j=J[f+4>>2];if(!j|J[j>>2])break Ra;J[j>>2]=130;break Ra}j=t+(i<<3)|0;s=J[j>>2];Sa:switch(J[j+4>>2]-1|0){case 1:s=s<<16;break Ra;case 0:break Sa;default:break Ra}s=((s>>31)+s|0)- -8192>>14}i=i+1|0;b=b+s|0}m=b;Ta:{if(i>>>0>=v>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Ta;J[j>>2]=130;break Ta}j=t+(i<<3)|0;b=J[j>>2];Ua:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Ta;case 0:break Ua;default:break Ta}b=((b>>31)+b|0)- -8192>>14}j=i+1|0;Va:{if(j>>>0>=v>>>0){j=0;l=J[f+ -4>>2];if(!l|J[l>>2])break Va;J[l>>2]=130;break Va}l=t+(j<<3)|0;j=J[l>>2];Wa:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break Va;case 0:break Wa;default:break Va}j=((j>>31)+j|0)- -8192>>14}r=b+n|0;b=i+2|0;Xa:{if(b>>>0>=v>>>0){b=0;l=J[f+4>>2];if(!l|J[l>>2])break Xa;J[l>>2]=130;break Xa}l=t+(b<<3)|0;b=J[l>>2];Ya:switch(J[l+4>>2]-1|0){case 1:b=b<<16;break Xa;case 0:break Ya;default:break Xa}b=((b>>31)+b|0)- -8192>>14}n=j+r|0;b=b+m|0;j=i+3|0;Za:{if(j>>>0>=v>>>0){l=0;j=J[f+4>>2];if(!j|J[j>>2])break Za;J[j>>2]= -130;break Za}j=t+(j<<3)|0;l=J[j>>2];_a:switch(J[j+4>>2]-1|0){case 1:l=l<<16;break Za;case 0:break _a;default:break Za}l=((l>>31)+l|0)- -8192>>14}j=n;n=l+n|0;Kp(k+3912|0,r,m,j,b,n,b);i=i+4|0;if(o>>>0>i>>>0)continue;break}l=J[f+8>>2]}J[k+15980>>2]=n;J[k+15976>>2]=b;J[f+12>>2]=l;i=p;continue;case 30:case 31:m=J[k+15976>>2];j=J[k+15980>>2];b=J[f+8>>2];o=J[f+12>>2]-b>>3;i=o&2;u=o&-3;if(i>>>0>>0){s=(l|0)==31;while(1){r=m;b=j;t=J[f+8>>2];v=J[f+12>>2]-t>>3;$a:{if(s){ab:{if(i>>>0>=v>>>0){m=0;j=J[f+4>>2]; -if(!j|J[j>>2])break ab;J[j>>2]=130;break ab}j=t+(i<<3)|0;m=J[j>>2];bb:switch(J[j+4>>2]-1|0){case 1:m=m<<16;break ab;case 0:break bb;default:break ab}m=((m>>31)+m|0)- -8192>>14}n=i+1|0;cb:{if(v>>>0<=n>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break cb;J[l>>2]=130;break cb}l=t+(n<<3)|0;j=J[l>>2];db:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break cb;case 0:break db;default:break cb}j=((j>>31)+j|0)- -8192>>14}l=i+2|0;eb:{if(l>>>0>=v>>>0){o=0;l=J[f+4>>2];if(!l|J[l>>2])break eb;J[l>>2]=130;break eb}l=t+(l<<3)|0;o= -J[l>>2];fb:switch(J[l+4>>2]-1|0){case 1:o=o<<16;break eb;case 0:break fb;default:break eb}o=((o>>31)+o|0)- -8192>>14}b=b+m|0;l=o+r|0;m=i+3|0;gb:{if(m>>>0>=v>>>0){m=0;o=J[f+4>>2];if(!o|J[o>>2])break gb;J[o>>2]=130;break gb}o=t+(m<<3)|0;m=J[o>>2];hb:switch(J[o+4>>2]-1|0){case 1:m=m<<16;break gb;case 0:break hb;default:break gb}m=((m>>31)+m|0)- -8192>>14}o=b+j|0;m=l+m|0;s=0;if((u-i|0)!=5){n=i;j=o;break $a}i=i+4|0;ib:{if(i>>>0>=v>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break ib;J[j>>2]=130;j=o;break $a}j= -t+(i<<3)|0;i=J[j>>2];jb:switch(J[j+4>>2]-1|0){case 1:j=(i<<16)+o|0;break $a;case 0:break jb;default:break ib}i=((i>>31)+i|0)- -8192>>14}j=i+o|0;break $a}kb:{if(i>>>0>=v>>>0){m=0;j=J[f+4>>2];if(!j|J[j>>2])break kb;J[j>>2]=130;break kb}j=t+(i<<3)|0;m=J[j>>2];lb:switch(J[j+4>>2]-1|0){case 1:m=m<<16;break kb;case 0:break lb;default:break kb}m=((m>>31)+m|0)- -8192>>14}n=i+1|0;mb:{if(v>>>0<=n>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break mb;J[l>>2]=130;break mb}l=t+(n<<3)|0;j=J[l>>2];nb:switch(J[l+4>>2]-1|0){case 1:j= -j<<16;break mb;case 0:break nb;default:break mb}j=((j>>31)+j|0)- -8192>>14}l=i+2|0;ob:{if(l>>>0>=v>>>0){l=0;o=J[f+4>>2];if(!o|J[o>>2])break ob;J[o>>2]=130;break ob}o=t+(l<<3)|0;l=J[o>>2];pb:switch(J[o+4>>2]-1|0){case 1:l=l<<16;break ob;case 0:break pb;default:break ob}l=((l>>31)+l|0)- -8192>>14}r=m+r|0;o=b+j|0;j=i+3|0;qb:{if(j>>>0>=v>>>0){m=0;j=J[f+4>>2];if(!j|J[j>>2])break qb;J[j>>2]=130;break qb}j=t+(j<<3)|0;m=J[j>>2];rb:switch(J[j+4>>2]-1|0){case 1:m=m<<16;break qb;case 0:break rb;default:break qb}m= -((m>>31)+m|0)- -8192>>14}l=l+r|0;j=m+o|0;s=1;if((u-i|0)!=5){n=i;m=l;break $a}i=i+4|0;sb:{if(i>>>0>=v>>>0){i=0;m=J[f+4>>2];if(!m|J[m>>2])break sb;J[m>>2]=130;break sb}m=t+(i<<3)|0;i=J[m>>2];tb:switch(J[m+4>>2]-1|0){case 1:i=i<<16;break sb;case 0:break tb;default:break sb}i=((i>>31)+i|0)- -8192>>14}m=i+l|0}Kp(k+3912|0,b,r,o,l,j,m);i=n+4|0;if(u>>>0>i>>>0)continue;break}b=J[f+8>>2]}J[k+15976>>2]=m;J[k+15980>>2]=j;J[f+12>>2]=b;i=p;continue;case 28:ub:{if(j>>>0>>0){i=j+1|0;J[b>>2]=i;l=K[j|0];break ub}l= -0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=j}vb:{if(i>>>0>>0){J[b>>2]=i+1;b=K[i|0];break vb}b=0;i=J[w>>2];if(!i|J[i>>2])break vb;J[i>>2]=85}i=J[f+12>>2];if((i|0)==(J[f+8>>2]+(J[f+16>>2]<<3)|0)){i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[i>>2]=(b<<16|l<<24)>>16;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;i=p;continue;case 0:case 2:case 17:break j;default:break p}if(l>>>0<=246){b=J[f+12>>2];if((b|0)==(J[f+8>>2]+(J[f+16>>2]<<3)|0)){b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[b>> -2]=l-139;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;continue}if(l>>>0<=250){wb:{if(j>>>0>>0){J[b>>2]=j+1;b=K[j|0];break wb}b=0;i=J[w>>2];if(!i|J[i>>2])break wb;J[i>>2]=85}i=J[f+12>>2];if((i|0)==(J[f+8>>2]+(J[f+16>>2]<<3)|0)){i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[i>>2]=((l<<8)+b|0)-63124;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;i=p;continue}if((l|0)!=255){xb:{if(j>>>0>>0){J[b>>2]=j+1;i=K[j|0];break xb}i=0;b=J[w>>2];if(!b|J[b>>2])break xb;J[b>>2]=85}cu(f,64148-(l<<8|i)|0); -i=p;continue}yb:{if(j>>>0>>0){i=j+1|0;J[b>>2]=i;r=K[j|0];break yb}r=0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=j}zb:{if(i>>>0>>0){l=i+1|0;J[b>>2]=l;s=K[i|0];break zb}s=0;j=J[w>>2];if(!(!j|J[j>>2]))J[j>>2]=85;l=i}Ab:{if(l>>>0>>0){i=l+1|0;J[b>>2]=i;j=K[l|0];break Ab}j=0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=l}Bb:{if(i>>>0>>0){J[b>>2]=i+1;i=K[i|0];break Bb}i=0;b=J[w>>2];if(!b|J[b>>2])break Bb;J[b>>2]=85}b=s<<16|r<<24|j<<8|i;if(u){cu(f,b);D=b+32E3>>>0<64001?D:D&255?D:1;i=p;continue}yg(f, -b);i=p;continue}if(i>>>0>>0)while(1){s=J[f+8>>2];y=J[f+12>>2]-s>>3;Cb:{if(y>>>0<=i>>>0){m=0;b=J[f+4>>2];if(!b|J[b>>2])break Cb;J[b>>2]=130;break Cb}b=s+(i<<3)|0;m=J[b>>2];Db:switch(J[b+4>>2]-1|0){case 1:m=m<<16;break Cb;case 0:break Db;default:break Cb}m=((m>>31)+m|0)- -8192>>14}b=i|1;Eb:{if(b>>>0>=y>>>0){j=0;b=J[f+4>>2];if(!b|J[b>>2])break Eb;J[b>>2]=130;break Eb}b=s+(b<<3)|0;j=J[b>>2];Fb:switch(J[b+4>>2]-1|0){case 1:j=j<<16;break Eb;case 0:break Fb;default:break Eb}j=((j>>31)+j|0)- -8192>>14}b= -i+2|0;Gb:{if(b>>>0>=y>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break Gb;J[b>>2]=130;break Gb}b=s+(b<<3)|0;n=J[b>>2];Hb:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break Gb;case 0:break Hb;default:break Gb}n=((n>>31)+n|0)- -8192>>14}v=l+m|0;b=i+3|0;Ib:{if(b>>>0>=y>>>0){l=0;b=J[f+4>>2];if(!b|J[b>>2])break Ib;J[b>>2]=130;break Ib}b=s+(b<<3)|0;l=J[b>>2];Jb:switch(J[b+4>>2]-1|0){case 1:l=l<<16;break Ib;case 0:break Jb;default:break Ib}l=((l>>31)+l|0)- -8192>>14}u=j+r|0;o=n+v|0;b=i+4|0;Kb:{if(b>>>0>=y>>>0){r=0;b=J[f+ -4>>2];if(!b|J[b>>2])break Kb;J[b>>2]=130;break Kb}b=s+(b<<3)|0;r=J[b>>2];Lb:switch(J[b+4>>2]-1|0){case 1:r=r<<16;break Kb;case 0:break Lb;default:break Kb}r=((r>>31)+r|0)- -8192>>14}m=l+u|0;l=o+r|0;b=i+5|0;Mb:{if(b>>>0>=y>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Mb;J[j>>2]=130;break Mb}j=s+(b<<3)|0;b=J[j>>2];Nb:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Mb;case 0:break Nb;default:break Mb}b=((b>>31)+b|0)- -8192>>14}r=b+m|0;Kp(k+3912|0,v,u,o,m,l,r);i=i+6|0;if(t>>>0>i>>>0)continue;break}J[k+15976>> -2]=r;J[k+15980>>2]=l;J[f+12>>2]=J[f+8>>2];i=p;continue}if(K[a+9|0]|l>>>0>37)break m;if(!(!u|(x|0)<=0|(l|0)==17)){x=0;i=p;break j}i=p;Ob:{Pb:{Qb:{Rb:switch(l-1|0){case 0:case 1:if(!u)break m;m=po(f,0);o=po(f,2);j=po(f,4);i=po(f,1);b=J[f+8>>2];Sb:{if(J[f+12>>2]-b>>>0<=15){b=J[f+4>>2];if(!b|J[b>>2])break Sb;J[b>>2]=130;break Sb}J[b+16>>2]=o-(i+m|0);J[J[f+8>>2]+20>>2]=0}i=po(f,3);b=J[f+8>>2];Tb:{if(J[f+12>>2]-b>>>0<=31){b=J[f+4>>2];if(!b|J[b>>2])break Tb;J[b>>2]=130;break Tb}J[b+32>>2]=j-(i+o|0);J[J[f+ -8>>2]+36>>2]=0}OC(a,f,(l|0)==1?k+15724|0:k+15756|0,h,k+15791|0,J[J[q+32>>2]+(((l|0)!=1)<<2)>>2]);i=p;if(K[q+548|0])break l;break j;case 2:b=Ge(f);cu(f,(Ge(f)|0)!=0&(b|0)!=0);continue;case 3:cu(f,(Ge(f)|Ge(f))!=0);continue;case 4:cu(f,!Ge(f));continue;case 5:if(!u)break j;i=J[q+4>>2];b=18;o=gj(f);m=gj(f);z=Ge(f);h=Ge(f);A=Ge(f);Ub:{if(K[q+47|0]|e)break Ub;e=J[J[i+128>>2]+52>>2];Vb:{if(!J[q+580>>2]){if(!e)break Ub;l=J[J[q+32>>2]>>2];break Vb}l=J[J[q+32>>2]>>2];if(e)break Vb;m=b5(q,m);o=b5(q,o)}if((m| -o)<0)break Ub;i=h+l|0;Wb:{if(K[q+46|0]){d=J[q+8>>2];c=J[J[d+156>>2]>>2];b=i6(c,2);if(b)break Ub;e=J[c+88>>2];J[e+32>>2]=o;J[e+8>>2]=0;J[e+12>>2]=0;I[e+4>>1]=514;J[e>>2]=m;I[e+36>>1]=2;b=i-A|0;J[e+40>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[e+44>>2]=((z+(z>>31)|0)+32768&-65536)>>16;J[d+128>>2]=2;b=J[c+52>>2];J[d+72>>2]=1668246896;J[d+132>>2]=b;J[c+84>>2]=2;break Wb}b=J[q+12>>2];J[b+56>>2]=0;J[b+84>>2]=0;e=J[b+24>>2];if(e)e=e+(I[b+22>>1]<<3)|0;else e=0;J[b+60>>2]=e;h=b- -64|0;e=J[b+28>>2];if(e)e=e+I[b+ -22>>1]|0;else e=0;J[h>>2]=e;e=J[b+32>>2];if(e)e=e+(I[b+20>>1]<<1)|0;else e=0;J[b+68>>2]=e;if(K[b+16|0]){e=I[b+22>>1]<<3;J[b+76>>2]=e+J[b+40>>2];J[b+80>>2]=e+J[b+44>>2]}e=J[b+52>>2];if(e)e=e+(J[b+48>>2]<<5)|0;else e=0;J[b+88>>2]=e;e=k+40|0;b=a5(J[q+4>>2],m,e);if(b)break Ub;b=J[q+36>>2];j=J[b>>2];r=J[b+4>>2];b=J[q+32>>2];p=J[b>>2];n=J[b+4>>2];eu(a,e,c,d,1,0,0,k+3908|0);e=J[J[J[q+4>>2]+128>>2]+52>>2];b=J[k+44>>2];J[k+16>>2]=J[k+48>>2]-b;J[k+12>>2]=b;if(e)gc[J[J[e>>2]+4>>2]](J[e+4>>2],k+12|0);e=J[q+32>> -2];if(!K[k+15791|0]){n=J[e+4>>2];b=J[q+36>>2];j=J[b>>2];r=J[b+4>>2];p=J[e>>2]}J[e>>2]=0;J[e+4>>2]=0;e=k+40|0;b=a5(J[q+4>>2],o,e);if(b)break Ub;eu(a,e,c,d,1,i-A|0,z,k+3908|0);c=J[J[J[q+4>>2]+128>>2]+52>>2];b=J[k+44>>2];J[k+16>>2]=J[k+48>>2]-b;J[k+12>>2]=b;if(c)gc[J[J[c>>2]+4>>2]](J[c+4>>2],k+12|0);b=J[q+32>>2];J[b>>2]=p;J[b+4>>2]=n;b=J[q+36>>2];J[b>>2]=j;J[b+4>>2]=r}b=0}i=0;break c;case 6:if(!u)break m;b=Ge(f);J[J[q+36>>2]+4>>2]=b;b=Ge(f);J[J[q+36>>2]>>2]=b;i=Ge(f);b=Ge(f);j=J[q+32>>2];J[j>>2]=b+J[j>> -2];J[j+4>>2]=i+J[j+4>>2];H[k+15791|0]=1;if(K[q+47|0])break l;if(!(p&255)){i=0;break j}J[k+15980>>2]=b+J[k+15980>>2];J[k+15976>>2]=i+J[k+15976>>2];i=p;break j;case 8:b=Ge(f);if((b|0)==-2147483648){yg(f,2147483647);continue}p=b;b=b>>31;yg(f,(p^b)-b|0);continue;case 9:yg(f,Ge(f)+Ge(f)|0);continue;case 10:b=Ge(f);yg(f,Ge(f)-b|0);continue;case 11:Xb:{if(!(!u|!(D&255))){D=0;i=gj(f);b=gj(f);break Xb}i=Ge(f);b=Ge(f)}yg(f,td(b,i));i=p;continue;case 13:b=Ge(f);if((b|0)==-2147483648){yg(f,2147483647);continue}yg(f, -0-b|0);continue;case 14:cu(f,(Ge(f)|0)==(Ge(f)|0));continue;case 15:if(!u)continue;m=gj(f);n=gj(f);j=J[f+8>>2];Yb:switch(m|0){case 0:b=18;i=0;if((n|0)!=3|(!J[q+468>>2]|J[q+472>>2]!=7?p&255:0))break c;yg(f,J[k+15980>>2]);yg(f,J[k+15976>>2]);B=2;break Pb;case 1:if(n)break i;x=0;i=0;B=0;if(!(p&255))continue;Zb:{b=J[q+12>>2];if((I[b+22>>1]+I[b+58>>1]|0)+6>>>0<=M[b+4>>2])break Zb;if(!sh(b,6,0))break Zb;b=0;break c}J[q+468>>2]=1;J[q+472>>2]=0;break Ob;case 2:b=18;if(n){i=0;break c}x=0;i=0;B=0;if(!(p&255))continue; -if(!J[q+468>>2])break c;m=J[q+472>>2];J[q+472>>2]=m+1;i=p;if(m-1>>>0>5)continue;j=J[q+12>>2];if((I[j+22>>1]+I[j+58>>1]|0)+1>>>0>M[j+4>>2]){i=0;if(sh(j,1,0))break c}b=m<<1;b=(k+15792|0)+((m>>>0>3?b-6|0:b)<<2)|0;J[b-8>>2]=J[k+15980>>2];J[b-4>>2]=J[k+15976>>2];i=p;_b:switch(m-3|0){case 0:case 3:break _b;default:continue}Kp(k+3912|0,J[k+15792>>2],J[k+15796>>2],J[k+15800>>2],J[k+15804>>2],J[k+15808>>2],J[k+15812>>2]);continue e;case 3:B=1;if((n|0)!=1)break i;x=0;i=0;if(!(p&255))continue;J[k+15776>>2]= -0;J[k+15744>>2]=0;J[A+16>>2]=0;J[A+20>>2]=0;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+4>>2]=0;H[k+15701|0]=1;J[k+15696>>2]=E;i=p;continue;case 12:case 13:J[f+12>>2]=j;break Ob;case 14:case 15:case 16:case 17:case 18:i=0;b=18;o=J[q+644>>2];if(!o)break c;B=(m+((m|0)==18)|0)-13|0;if((n|0)!=(P(B,J[o>>2])|0))break c;s=(J[f+12>>2]-j>>3)-n|0;l=B+s|0;m=0;while(1){b=po(f,s);i=1;if(M[o>>2]>=2)while(1){b=Pc(po(f,l),J[J[o+136>>2]+(i<<2)>>2])+b|0;l=l+1|0;i=i+1|0;if(i>>>0>2])continue;break}i=J[f+8>>2];$b:{if(J[f+ -12>>2]-i>>3>>>0>>0){b=J[f+4>>2];if(!b|J[b>>2])break $b;J[b>>2]=130;break $b}j=i;i=s<<3;J[j+i>>2]=b;J[(i+J[f+8>>2]|0)+4>>2]=0}s=s+1|0;m=m+1|0;if((B|0)!=(m|0))continue;break}b=n-B|0;i=J[f+12>>2];if(b>>>0>i-J[f+8>>2]>>3>>>0){x=0;i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=161;continue}J[f+12>>2]=i-(b<<3);break Pb;case 19:b=18;i=0;if((n|0)!=1)break c;l=J[q+644>>2];if(!l)break c;m=gj(f);if((m|0)<0)break c;j=J[l>>2];if(M[q+652>>2]>>0)break c;tc(J[q+648>>2]+(m<<2)|0,J[l+136>>2],j<<2);break Ob; -case 20:if((n|0)!=2)break i;yg(f,Ge(f)+Ge(f)|0);break Qb;case 21:if((n|0)!=2)break i;b=Ge(f);yg(f,Ge(f)-b|0);break Qb;case 22:if((n|0)!=2)break i;b=Ge(f);yg(f,Pc(Ge(f),b));break Qb;case 23:b=18;i=0;if((n|0)!=2)break c;m=Ge(f);j=Ge(f);if(!m)break c;yg(f,td(j,m));break Qb;case 24:b=18;i=0;if(!J[q+644>>2]|(n|0)!=2)break c;j=gj(f);if((j|0)<0|j>>>0>=M[q+652>>2])break c;b=Ge(f);J[J[q+648>>2]+(j<<2)>>2]=b;break Ob;case 25:b=18;i=0;if(!J[q+644>>2]|(n|0)!=1)break c;j=gj(f);if((j|0)<0|j>>>0>=M[q+652>>2])break c; -yg(f,J[J[q+648>>2]+(j<<2)>>2]);break Qb;case 27:if((n|0)!=4)break i;i=Ge(f);b=Ge(f);yg(f,(V=Ge(f),W=Ge(f),X=(b|0)>(i|0),X?V:W));break Qb;case 28:if(n)break i;i=J[q+536>>2];j=J[i+648>>2];b=j<<13^j;b=b>>>17^b;J[i+648>>2]=b^b<<5;B=1;yg(f,(j&65535)+1|0);break Pb;default:break Yb}i=0;if((m|n)<0){b=18;break c}x=(n|0)>=3?3:n;l=1;B=0;i=p;if((n|0)<=0)continue;p=(x|0)<=1?1:x;while(1){V=(k+15960|0)+(x-l<<2)|0,W=Ge(f),J[V>>2]=W;b=(l|0)==(p|0);l=l+1|0;if(!b)continue;break}continue;case 16:if(!u)continue;if((B| -0)>0){B=B-1|0;continue}if(!x)break i;x=x-1|0;yg(f,J[(k+15960|0)+(x<<2)>>2]);continue;case 17:Ge(f);continue;case 19:p=gj(f);b=Ge(f);if(p>>>0>31)continue;J[(k+15824|0)+(p<<2)>>2]=b;continue;case 20:b=gj(f);if(b>>>0>31)continue;yg(f,J[(k+15824|0)+(b<<2)>>2]);continue;case 21:i=Ge(f);b=Ge(f);yg(f,(V=Ge(f),W=Ge(f),X=(b|0)>(i|0),X?V:W));i=p;continue;case 22:i=J[q+536>>2];j=J[i+648>>2];b=j<<13^j;b=b>>>17^b;J[i+648>>2]=b^b<<5;yg(f,(j&65535)+1|0);i=p;continue;case 23:b=Ge(f);yg(f,Pc(Ge(f),b));continue;case 25:b= -Ge(f);ac:{if((b|0)<=0){i=0;break ac}l=b>>>(b>>>0>9)|0;while(1){i=l;l=(i+td(b,i)|0)+1>>1;if((i|0)!=(l|0))continue;break}}yg(f,i);i=p;continue;case 26:b=Ge(f);yg(f,b);yg(f,b);continue;case 27:i=Ge(f);b=Ge(f);yg(f,i);yg(f,b);i=p;continue;case 28:j=gj(f);p=J[f+12>>2];b=J[f+8>>2];if((p|0)==(b|0))continue;b=p-b>>3;p=b-1|0;bc:{if((j|0)<0)break bc;p=0;if(b>>>0<=j>>>0)break bc;p=b+(j^-1)|0}yg(f,po(f,p));continue;case 29:b=gj(f);l=0;t=gj(f);cc:{if((t|0)<2)break cc;if(t>>>0>J[f+12>>2]-J[f+8>>2]>>3>>>0){b=J[f+ -4>>2];if(!b|J[b>>2])break cc;J[b>>2]=130;break cc}if((b|0)<0)m=0-((0-b>>>0)%(t>>>0)|0)|0;else m=(b>>>0)%(t>>>0)|0;if(!m)break cc;u=0-t|0;j=0;r=2;b=-1;o=-1;while(1){v=J[f+8>>2];dc:{if((b|0)!=(o|0)){p=j;n=r;break dc}o=b+1|0;b=v+(o<<3)|0;p=J[b>>2];n=J[b+4>>2];b=o}b=b+m|0;b=((b|0)<(t|0)?t&b>>31:u)+b|0;v=v+(b<<3)|0;j=J[v>>2];r=J[v+4>>2];J[v>>2]=p;J[v+4>>2]=n;l=l+1|0;if((t|0)!=(l|0))continue;break}}continue;case 32:break Rb;default:break j}if(!u|!(p&255))break m;V=k,W=Ge(f),J[V+15976>>2]=W;V=k,W=Ge(f), -J[V+15980>>2]=W;J[q+468>>2]=0;break j}B=1}x=0;i=p;continue}x=0;i=p;continue e}i=p;break j}i=0;b=0;break c}J[a+120>>2]=i;i=p}J[f+12>>2]=J[f+8>>2];continue}break}break}b=18;i=0}if(J[a+4>>2])break a}J[a+4>>2]=b}a=k+15544|0;J[a>>2]=0;J[a+4>>2]=0;J[k+15536>>2]=0;c=J[k+15524>>2];b=k+15552|0;a=J[b>>2];if(a)gc[J[c+8>>2]](c,a);J[b>>2]=0;J[k+15744>>2]=0;J[k+15748>>2]=0;J[k+15736>>2]=0;b=J[k+15724>>2];a=J[k+15752>>2];if(a)gc[J[b+8>>2]](b,a);J[k+15752>>2]=0;J[k+15776>>2]=0;J[k+15780>>2]=0;J[k+15768>>2]=0;b=J[k+ -15756>>2];a=J[k+15784>>2];if(a)gc[J[b+8>>2]](b,a);J[k+15784>>2]=0;if(g)gc[J[C+8>>2]](C,g);if(!i){b=J[f>>2];a=J[f+8>>2];if(a)gc[J[b+8>>2]](b,a);J[f+8>>2]=0;if(f)gc[J[b+8>>2]](b,f)}bc=k+15984|0}function hxb(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;if((e|0)>0){q=b&1;v=f<<2;b=a;while(1){i=b;g=0;a:{if((d|0)<2)break a;m=(d-q|0)+1>>1;b:{if((m|0)<=0)break b;l=b;h=m;k=h&3;if(k)while(1){j=J[l>>2];j=Dzb(j,j>>31,10077,0);J[l>> -2]=(fc&8191)<<19|j>>>13;l=l+4|0;h=h-1|0;g=g+1|0;if((k|0)!=(g|0))continue;break}if(m>>>0<4)break b;while(1){g=J[l>>2];g=Dzb(g,g>>31,10077,0);J[l>>2]=(fc&8191)<<19|g>>>13;g=J[l+4>>2];g=Dzb(g,g>>31,10077,0);J[l+4>>2]=(fc&8191)<<19|g>>>13;g=J[l+8>>2];g=Dzb(g,g>>31,10077,0);J[l+8>>2]=(fc&8191)<<19|g>>>13;g=J[l+12>>2];g=Dzb(g,g>>31,10077,0);J[l+12>>2]=(fc&8191)<<19|g>>>13;l=l+16|0;g=h-5|0;h=h-4|0;if(g>>>0<4294967294)continue;break}}h=(m<<2)+i|0;k=d-m|0;if((k|0)>0){g=k;l=h;while(1){j=J[l>>2];j=Dzb(j,j>> -31,13318,0);J[l>>2]=(fc&8191)<<19|j>>>13;l=l+4|0;j=g>>>0>1;g=g-1|0;if(j)continue;break}}l=i;if(!q){l=J[i>>2];g=J[h>>2];g=Dzb(g,g>>31,7266,0);J[i>>2]=l-((fc&8191)<<19|g>>>13);l=i+4|0}o=q?0:-1;p=d&1;r=(p|0)!=(q|0);n=r?-1:0;t=(m-!q|0)-r|0;c:{if((t|0)<=0){g=h;break c}s=n+(m+o|0)|0;d:{if(!(t&1)){j=t;g=h;break d}j=J[l>>2];g=J[h+4>>2]+J[h>>2]|0;g=Dzb(g,g>>31,3633,0);J[l>>2]=j-((fc&8191)<<19|g>>>13);l=l+4|0;j=t-1|0;g=h+4|0}if((s|0)==1)break c;while(1){u=J[l>>2];s=J[g+4>>2]+J[g>>2]|0;s=Dzb(s,s>>31,3633,0); -J[l>>2]=u-((fc&8191)<<19|s>>>13);u=J[l+4>>2];s=J[g+8>>2]+J[g+4>>2]|0;s=Dzb(s,s>>31,3633,0);J[l+4>>2]=u-((fc&8191)<<19|s>>>13);l=l+8|0;g=g+8|0;s=j-3|0;j=j-2|0;if(s>>>0<4294967294)continue;break}}s=(p|0)==(q|0);if(!s){j=J[l>>2];g=J[g>>2];g=Dzb(g,g>>31,7266,0);J[l>>2]=j-((fc&8191)<<19|g>>>13)}l=h;if(q){l=J[h>>2];g=J[i>>2];g=Dzb(g,g>>31,14465,0);J[h>>2]=l-((fc&8191)<<19|g>>>13);l=h+4|0}p=s?-1:0;j=(k-q|0)-s|0;e:{if((j|0)<=0){g=i;break e}u=(d+p|0)+(m^-1)|0;f:{if(!(j&1)){k=j;g=i;break f}k=J[l>>2];g=J[i+ -4>>2]+J[i>>2]|0;g=Dzb(g,g>>31,7232,0);J[l>>2]=k-((fc&8191)<<19|g>>>13);l=l+4|0;k=j-1|0;g=i+4|0}if((q|0)==(u|0))break e;while(1){w=J[l>>2];u=J[g+4>>2]+J[g>>2]|0;u=Dzb(u,u>>31,7232,0);J[l>>2]=w-((fc&8191)<<19|u>>>13);w=J[l+4>>2];u=J[g+8>>2]+J[g+4>>2]|0;u=Dzb(u,u>>31,7232,0);J[l+4>>2]=w-((fc&8191)<<19|u>>>13);l=l+8|0;g=g+8|0;u=k-3|0;k=k-2|0;if(u>>>0<4294967294)continue;break}}if(!r){k=J[l>>2];g=J[g>>2];g=Dzb(g,g>>31,14465,0);J[l>>2]=k-((fc&8191)<<19|g>>>13)}l=i;if(!q){l=J[i>>2];g=J[h>>2];g=Dzb(g,g>> -31,-868,8191);J[i>>2]=l-((fc&8191)<<19|g>>>13);l=i+4|0}g:{if((t|0)<=0){g=h;break g}k=n+(m+o|0)|0;if(t&1){o=J[l>>2];g=J[h+4>>2]+J[h>>2]|0;g=Dzb(g,g>>31,-434,8191);J[l>>2]=o-((fc&8191)<<19|g>>>13);l=l+4|0;t=t-1|0;g=h+4|0}else g=h;if((k|0)==1)break g;while(1){o=J[l>>2];k=J[g+4>>2]+J[g>>2]|0;k=Dzb(k,k>>31,-434,8191);J[l>>2]=o-((fc&8191)<<19|k>>>13);o=J[l+4>>2];k=J[g+8>>2]+J[g+4>>2]|0;k=Dzb(k,k>>31,-434,8191);J[l+4>>2]=o-((fc&8191)<<19|k>>>13);l=l+8|0;g=g+8|0;k=t-3|0;t=t-2|0;if(k>>>0<4294967294)continue; -break}}if(!s){k=J[l>>2];g=J[g>>2];g=Dzb(g,g>>31,-868,8191);J[l>>2]=k-((fc&8191)<<19|g>>>13)}if(q){l=J[h>>2];g=J[i>>2];g=Dzb(g,g>>31,-25987,8191);J[h>>2]=l-((fc&8191)<<19|g>>>13);h=h+4|0}h:{if((j|0)<=0)break h;if(j&1){l=J[h>>2];g=J[i+4>>2]+J[i>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h>>2]=l-((fc&8191)<<19|g>>>13);j=j-1|0;i=i+4|0;h=h+4|0}if((q|0)==((d+p|0)+(m^-1)|0))break h;while(1){l=J[h>>2];g=J[i+4>>2]+J[i>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h>>2]=l-((fc&8191)<<19|g>>>13);l=J[h+4>>2];g=J[i+8>>2]+J[i+4>> -2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+4>>2]=l-((fc&8191)<<19|g>>>13);h=h+8|0;i=i+8|0;g=j-3|0;j=j-2|0;if(g>>>0<4294967294)continue;break}}if(r)break a;g=J[h>>2];i=J[i>>2];i=Dzb(i,i>>31,-25987,8191);J[h>>2]=g-((fc&8191)<<19|i>>>13)}$8(b,d,q);b=b+v|0;x=x+1|0;if((x|0)!=(e|0))continue;break}}l=c&1;q=(d|0)/16<<4;if((d|0)>=16){r=0;while(1){c=a;i:{if((e|0)<2)break i;i=(e-l|0)+1>>1;if((i|0)>0){j=f<<2;g=i;h=c;while(1){b=J[h>>2];b=Dzb(b,b>>31,10077,0);J[h>>2]=(fc&8191)<<19|b>>>13;b=J[h+4>>2];b=Dzb(b,b>>31,10077, -0);J[h+4>>2]=(fc&8191)<<19|b>>>13;b=J[h+8>>2];b=Dzb(b,b>>31,10077,0);J[h+8>>2]=(fc&8191)<<19|b>>>13;b=J[h+12>>2];b=Dzb(b,b>>31,10077,0);J[h+12>>2]=(fc&8191)<<19|b>>>13;b=J[h+16>>2];b=Dzb(b,b>>31,10077,0);J[h+16>>2]=(fc&8191)<<19|b>>>13;b=J[h+20>>2];b=Dzb(b,b>>31,10077,0);J[h+20>>2]=(fc&8191)<<19|b>>>13;b=J[h+24>>2];b=Dzb(b,b>>31,10077,0);J[h+24>>2]=(fc&8191)<<19|b>>>13;b=J[h+28>>2];b=Dzb(b,b>>31,10077,0);J[h+28>>2]=(fc&8191)<<19|b>>>13;b=J[h+32>>2];b=Dzb(b,b>>31,10077,0);J[h+32>>2]=(fc&8191)<<19| -b>>>13;b=J[h+36>>2];b=Dzb(b,b>>31,10077,0);J[h+36>>2]=(fc&8191)<<19|b>>>13;b=J[h+40>>2];b=Dzb(b,b>>31,10077,0);J[h+40>>2]=(fc&8191)<<19|b>>>13;b=J[h+44>>2];b=Dzb(b,b>>31,10077,0);J[h+44>>2]=(fc&8191)<<19|b>>>13;b=J[h+48>>2];b=Dzb(b,b>>31,10077,0);J[h+48>>2]=(fc&8191)<<19|b>>>13;b=J[h+52>>2];b=Dzb(b,b>>31,10077,0);J[h+52>>2]=(fc&8191)<<19|b>>>13;b=J[h+56>>2];b=Dzb(b,b>>31,10077,0);J[h+56>>2]=(fc&8191)<<19|b>>>13;b=J[h+60>>2];b=Dzb(b,b>>31,10077,0);J[h+60>>2]=(fc&8191)<<19|b>>>13;h=h+j|0;b=g>>>0>1; -g=g-1|0;if(b)continue;break}}h=(P(f,i)<<2)+c|0;k=e-i|0;if((k|0)>0){t=f<<2;b=k;g=h;while(1){j=J[g>>2];j=Dzb(j,j>>31,13318,0);J[g>>2]=(fc&8191)<<19|j>>>13;j=J[g+4>>2];j=Dzb(j,j>>31,13318,0);J[g+4>>2]=(fc&8191)<<19|j>>>13;j=J[g+8>>2];j=Dzb(j,j>>31,13318,0);J[g+8>>2]=(fc&8191)<<19|j>>>13;j=J[g+12>>2];j=Dzb(j,j>>31,13318,0);J[g+12>>2]=(fc&8191)<<19|j>>>13;j=J[g+16>>2];j=Dzb(j,j>>31,13318,0);J[g+16>>2]=(fc&8191)<<19|j>>>13;j=J[g+20>>2];j=Dzb(j,j>>31,13318,0);J[g+20>>2]=(fc&8191)<<19|j>>>13;j=J[g+24>>2]; -j=Dzb(j,j>>31,13318,0);J[g+24>>2]=(fc&8191)<<19|j>>>13;j=J[g+28>>2];j=Dzb(j,j>>31,13318,0);J[g+28>>2]=(fc&8191)<<19|j>>>13;j=J[g+32>>2];j=Dzb(j,j>>31,13318,0);J[g+32>>2]=(fc&8191)<<19|j>>>13;j=J[g+36>>2];j=Dzb(j,j>>31,13318,0);J[g+36>>2]=(fc&8191)<<19|j>>>13;j=J[g+40>>2];j=Dzb(j,j>>31,13318,0);J[g+40>>2]=(fc&8191)<<19|j>>>13;j=J[g+44>>2];j=Dzb(j,j>>31,13318,0);J[g+44>>2]=(fc&8191)<<19|j>>>13;j=J[g+48>>2];j=Dzb(j,j>>31,13318,0);J[g+48>>2]=(fc&8191)<<19|j>>>13;j=J[g+52>>2];j=Dzb(j,j>>31,13318,0);J[g+ -52>>2]=(fc&8191)<<19|j>>>13;j=J[g+56>>2];j=Dzb(j,j>>31,13318,0);J[g+56>>2]=(fc&8191)<<19|j>>>13;j=J[g+60>>2];j=Dzb(j,j>>31,13318,0);J[g+60>>2]=(fc&8191)<<19|j>>>13;g=g+t|0;j=b>>>0>1;b=b-1|0;if(j)continue;break}}g=c;if(!l){j=J[g>>2];b=J[h>>2];b=Dzb(b,b>>31,7266,0);J[g>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+4>>2];b=J[h+4>>2];b=Dzb(b,b>>31,7266,0);J[g+4>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+8>>2];b=J[h+8>>2];b=Dzb(b,b>>31,7266,0);J[g+8>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+12>>2];b=J[h+12>>2];b=Dzb(b,b>>31,7266, -0);J[g+12>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+16>>2];b=J[h+16>>2];b=Dzb(b,b>>31,7266,0);J[g+16>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+20>>2];b=J[h+20>>2];b=Dzb(b,b>>31,7266,0);J[g+20>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+24>>2];b=J[h+24>>2];b=Dzb(b,b>>31,7266,0);J[g+24>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+28>>2];b=J[h+28>>2];b=Dzb(b,b>>31,7266,0);J[g+28>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+32>>2];b=J[h+32>>2];b=Dzb(b,b>>31,7266,0);J[g+32>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+36>>2];b=J[h+36>>2];b=Dzb(b,b>>31,7266, -0);J[g+36>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+40>>2];b=J[h+40>>2];b=Dzb(b,b>>31,7266,0);J[g+40>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+44>>2];b=J[h+44>>2];b=Dzb(b,b>>31,7266,0);J[g+44>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+48>>2];b=J[h+48>>2];b=Dzb(b,b>>31,7266,0);J[g+48>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+52>>2];b=J[h+52>>2];b=Dzb(b,b>>31,7266,0);J[g+52>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+56>>2];b=J[h+56>>2];b=Dzb(b,b>>31,7266,0);J[g+56>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+60>>2];b=J[h+60>>2];b=Dzb(b,b>>31,7266, -0);J[g+60>>2]=j-((fc&8191)<<19|b>>>13);g=(f<<2)+g|0}n=e&1;s=(n|0)!=(l|0);t=(i-!l|0)-s|0;j:{if((t|0)<=0){i=h;break j}m=f<<2;j=t;b=h;while(1){p=J[g>>2];i=b+m|0;o=J[i>>2]+J[b>>2]|0;o=Dzb(o,o>>31,3633,0);J[g>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+4>>2];o=J[m+(b+4|0)>>2]+J[b+4>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+4>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+8>>2];o=J[m+(b+8|0)>>2]+J[b+8>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+8>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+12>>2];o=J[m+(b+12|0)>>2]+J[b+12>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+ -12>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+16>>2];o=J[m+(b+16|0)>>2]+J[b+16>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+16>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+20>>2];o=J[m+(b+20|0)>>2]+J[b+20>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+20>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+24>>2];o=J[m+(b+24|0)>>2]+J[b+24>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+24>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+28>>2];o=J[m+(b+28|0)>>2]+J[b+28>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+28>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+32>>2];o=J[m+(b+32|0)>>2]+J[b+32>>2]|0;o=Dzb(o,o>>31, -3633,0);J[g+32>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+36>>2];o=J[m+(b+36|0)>>2]+J[b+36>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+36>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+40>>2];o=J[m+(b+40|0)>>2]+J[b+40>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+40>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+44>>2];o=J[m+(b+44|0)>>2]+J[b+44>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+44>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+48>>2];o=J[m+(b+48|0)>>2]+J[b+48>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+48>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+52>>2];o=J[m+(b+52|0)>>2]+J[b+52>>2]|0; -o=Dzb(o,o>>31,3633,0);J[g+52>>2]=p-((fc&8191)<<19|o>>>13);p=J[g+56>>2];o=J[m+(b+56|0)>>2]+J[b+56>>2]|0;o=Dzb(o,o>>31,3633,0);J[g+56>>2]=p-((fc&8191)<<19|o>>>13);o=J[g+60>>2];b=J[m+(b+60|0)>>2]+J[b+60>>2]|0;b=Dzb(b,b>>31,3633,0);J[g+60>>2]=o-((fc&8191)<<19|b>>>13);g=g+m|0;o=j>>>0>1;j=j-1|0;b=i;if(o)continue;break}}o=(l|0)==(n|0);if(!o){j=J[g>>2];b=J[i>>2];b=Dzb(b,b>>31,7266,0);J[g>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+4>>2];b=J[i+4>>2];b=Dzb(b,b>>31,7266,0);J[g+4>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+8>> -2];b=J[i+8>>2];b=Dzb(b,b>>31,7266,0);J[g+8>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+12>>2];b=J[i+12>>2];b=Dzb(b,b>>31,7266,0);J[g+12>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+16>>2];b=J[i+16>>2];b=Dzb(b,b>>31,7266,0);J[g+16>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+20>>2];b=J[i+20>>2];b=Dzb(b,b>>31,7266,0);J[g+20>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+24>>2];b=J[i+24>>2];b=Dzb(b,b>>31,7266,0);J[g+24>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+28>>2];b=J[i+28>>2];b=Dzb(b,b>>31,7266,0);J[g+28>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+32>> -2];b=J[i+32>>2];b=Dzb(b,b>>31,7266,0);J[g+32>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+36>>2];b=J[i+36>>2];b=Dzb(b,b>>31,7266,0);J[g+36>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+40>>2];b=J[i+40>>2];b=Dzb(b,b>>31,7266,0);J[g+40>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+44>>2];b=J[i+44>>2];b=Dzb(b,b>>31,7266,0);J[g+44>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+48>>2];b=J[i+48>>2];b=Dzb(b,b>>31,7266,0);J[g+48>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+52>>2];b=J[i+52>>2];b=Dzb(b,b>>31,7266,0);J[g+52>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+56>> -2];b=J[i+56>>2];b=Dzb(b,b>>31,7266,0);J[g+56>>2]=j-((fc&8191)<<19|b>>>13);j=J[g+60>>2];b=J[i+60>>2];b=Dzb(b,b>>31,7266,0);J[g+60>>2]=j-((fc&8191)<<19|b>>>13)}g=h;if(l){i=J[g>>2];b=J[c>>2];b=Dzb(b,b>>31,14465,0);J[g>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+4>>2];b=J[c+4>>2];b=Dzb(b,b>>31,14465,0);J[g+4>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+8>>2];b=J[c+8>>2];b=Dzb(b,b>>31,14465,0);J[g+8>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+12>>2];b=J[c+12>>2];b=Dzb(b,b>>31,14465,0);J[g+12>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+16>> -2];b=J[c+16>>2];b=Dzb(b,b>>31,14465,0);J[g+16>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+20>>2];b=J[c+20>>2];b=Dzb(b,b>>31,14465,0);J[g+20>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+24>>2];b=J[c+24>>2];b=Dzb(b,b>>31,14465,0);J[g+24>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+28>>2];b=J[c+28>>2];b=Dzb(b,b>>31,14465,0);J[g+28>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+32>>2];b=J[c+32>>2];b=Dzb(b,b>>31,14465,0);J[g+32>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+36>>2];b=J[c+36>>2];b=Dzb(b,b>>31,14465,0);J[g+36>>2]=i-((fc&8191)<<19|b>>>13);i= -J[g+40>>2];b=J[c+40>>2];b=Dzb(b,b>>31,14465,0);J[g+40>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+44>>2];b=J[c+44>>2];b=Dzb(b,b>>31,14465,0);J[g+44>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+48>>2];b=J[c+48>>2];b=Dzb(b,b>>31,14465,0);J[g+48>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+52>>2];b=J[c+52>>2];b=Dzb(b,b>>31,14465,0);J[g+52>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+56>>2];b=J[c+56>>2];b=Dzb(b,b>>31,14465,0);J[g+56>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+60>>2];b=J[c+60>>2];b=Dzb(b,b>>31,14465,0);J[g+60>>2]=i-((fc&8191)<<19|b>>> -13);g=(f<<2)+g|0}j=(k-l|0)-o|0;k:{if((j|0)<=0){k=c;break k}m=f<<2;i=j;b=c;while(1){p=J[g>>2];k=b+m|0;n=J[k>>2]+J[b>>2]|0;n=Dzb(n,n>>31,7232,0);J[g>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+4>>2];n=J[m+(b+4|0)>>2]+J[b+4>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+4>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+8>>2];n=J[m+(b+8|0)>>2]+J[b+8>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+8>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+12>>2];n=J[m+(b+12|0)>>2]+J[b+12>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+12>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+16>>2];n=J[m+(b+16| -0)>>2]+J[b+16>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+16>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+20>>2];n=J[m+(b+20|0)>>2]+J[b+20>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+20>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+24>>2];n=J[m+(b+24|0)>>2]+J[b+24>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+24>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+28>>2];n=J[m+(b+28|0)>>2]+J[b+28>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+28>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+32>>2];n=J[m+(b+32|0)>>2]+J[b+32>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+32>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+36>>2]; -n=J[m+(b+36|0)>>2]+J[b+36>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+36>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+40>>2];n=J[m+(b+40|0)>>2]+J[b+40>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+40>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+44>>2];n=J[m+(b+44|0)>>2]+J[b+44>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+44>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+48>>2];n=J[m+(b+48|0)>>2]+J[b+48>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+48>>2]=p-((fc&8191)<<19|n>>>13);p=J[g+52>>2];n=J[m+(b+52|0)>>2]+J[b+52>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+52>>2]=p-((fc&8191)<<19|n>>>13); -p=J[g+56>>2];n=J[m+(b+56|0)>>2]+J[b+56>>2]|0;n=Dzb(n,n>>31,7232,0);J[g+56>>2]=p-((fc&8191)<<19|n>>>13);n=J[g+60>>2];b=J[m+(b+60|0)>>2]+J[b+60>>2]|0;b=Dzb(b,b>>31,7232,0);J[g+60>>2]=n-((fc&8191)<<19|b>>>13);g=g+m|0;n=i>>>0>1;i=i-1|0;b=k;if(n)continue;break}}if(!s){i=J[g>>2];b=J[k>>2];b=Dzb(b,b>>31,14465,0);J[g>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+4>>2];b=J[k+4>>2];b=Dzb(b,b>>31,14465,0);J[g+4>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+8>>2];b=J[k+8>>2];b=Dzb(b,b>>31,14465,0);J[g+8>>2]=i-((fc&8191)<<19|b>>>13); -i=J[g+12>>2];b=J[k+12>>2];b=Dzb(b,b>>31,14465,0);J[g+12>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+16>>2];b=J[k+16>>2];b=Dzb(b,b>>31,14465,0);J[g+16>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+20>>2];b=J[k+20>>2];b=Dzb(b,b>>31,14465,0);J[g+20>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+24>>2];b=J[k+24>>2];b=Dzb(b,b>>31,14465,0);J[g+24>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+28>>2];b=J[k+28>>2];b=Dzb(b,b>>31,14465,0);J[g+28>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+32>>2];b=J[k+32>>2];b=Dzb(b,b>>31,14465,0);J[g+32>>2]=i-((fc&8191)<<19| -b>>>13);i=J[g+36>>2];b=J[k+36>>2];b=Dzb(b,b>>31,14465,0);J[g+36>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+40>>2];b=J[k+40>>2];b=Dzb(b,b>>31,14465,0);J[g+40>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+44>>2];b=J[k+44>>2];b=Dzb(b,b>>31,14465,0);J[g+44>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+48>>2];b=J[k+48>>2];b=Dzb(b,b>>31,14465,0);J[g+48>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+52>>2];b=J[k+52>>2];b=Dzb(b,b>>31,14465,0);J[g+52>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+56>>2];b=J[k+56>>2];b=Dzb(b,b>>31,14465,0);J[g+56>>2]=i-((fc&8191)<< -19|b>>>13);i=J[g+60>>2];b=J[k+60>>2];b=Dzb(b,b>>31,14465,0);J[g+60>>2]=i-((fc&8191)<<19|b>>>13)}g=c;if(!l){i=J[g>>2];b=J[h>>2];b=Dzb(b,b>>31,-868,8191);J[g>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+4>>2];b=J[h+4>>2];b=Dzb(b,b>>31,-868,8191);J[g+4>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+8>>2];b=J[h+8>>2];b=Dzb(b,b>>31,-868,8191);J[g+8>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+12>>2];b=J[h+12>>2];b=Dzb(b,b>>31,-868,8191);J[g+12>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+16>>2];b=J[h+16>>2];b=Dzb(b,b>>31,-868,8191);J[g+16>>2]= -i-((fc&8191)<<19|b>>>13);i=J[g+20>>2];b=J[h+20>>2];b=Dzb(b,b>>31,-868,8191);J[g+20>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+24>>2];b=J[h+24>>2];b=Dzb(b,b>>31,-868,8191);J[g+24>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+28>>2];b=J[h+28>>2];b=Dzb(b,b>>31,-868,8191);J[g+28>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+32>>2];b=J[h+32>>2];b=Dzb(b,b>>31,-868,8191);J[g+32>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+36>>2];b=J[h+36>>2];b=Dzb(b,b>>31,-868,8191);J[g+36>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+40>>2];b=J[h+40>>2];b=Dzb(b,b>>31,-868, -8191);J[g+40>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+44>>2];b=J[h+44>>2];b=Dzb(b,b>>31,-868,8191);J[g+44>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+48>>2];b=J[h+48>>2];b=Dzb(b,b>>31,-868,8191);J[g+48>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+52>>2];b=J[h+52>>2];b=Dzb(b,b>>31,-868,8191);J[g+52>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+56>>2];b=J[h+56>>2];b=Dzb(b,b>>31,-868,8191);J[g+56>>2]=i-((fc&8191)<<19|b>>>13);i=J[g+60>>2];b=J[h+60>>2];b=Dzb(b,b>>31,-868,8191);J[g+60>>2]=i-((fc&8191)<<19|b>>>13);g=(f<<2)+g|0}l:{if((t|0)<= -0){i=h;break l}k=f<<2;b=h;while(1){n=J[g>>2];i=b+k|0;m=J[i>>2]+J[b>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+4>>2];m=J[k+(b+4|0)>>2]+J[b+4>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+4>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+8>>2];m=J[k+(b+8|0)>>2]+J[b+8>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+8>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+12>>2];m=J[k+(b+12|0)>>2]+J[b+12>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+12>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+16>>2];m=J[k+(b+16|0)>>2]+J[b+16>>2]|0;m=Dzb(m,m>>31,-434, -8191);J[g+16>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+20>>2];m=J[k+(b+20|0)>>2]+J[b+20>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+20>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+24>>2];m=J[k+(b+24|0)>>2]+J[b+24>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+24>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+28>>2];m=J[k+(b+28|0)>>2]+J[b+28>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+28>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+32>>2];m=J[k+(b+32|0)>>2]+J[b+32>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+32>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+36>>2];m=J[k+(b+36|0)>>2]+J[b+ -36>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+36>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+40>>2];m=J[k+(b+40|0)>>2]+J[b+40>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+40>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+44>>2];m=J[k+(b+44|0)>>2]+J[b+44>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+44>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+48>>2];m=J[k+(b+48|0)>>2]+J[b+48>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+48>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+52>>2];m=J[k+(b+52|0)>>2]+J[b+52>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+52>>2]=n-((fc&8191)<<19|m>>>13);n=J[g+56>> -2];m=J[k+(b+56|0)>>2]+J[b+56>>2]|0;m=Dzb(m,m>>31,-434,8191);J[g+56>>2]=n-((fc&8191)<<19|m>>>13);m=J[g+60>>2];b=J[k+(b+60|0)>>2]+J[b+60>>2]|0;b=Dzb(b,b>>31,-434,8191);J[g+60>>2]=m-((fc&8191)<<19|b>>>13);g=g+k|0;m=t>>>0>1;t=t-1|0;b=i;if(m)continue;break}}if(!o){k=J[g>>2];b=J[i>>2];b=Dzb(b,b>>31,-868,8191);J[g>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+4>>2];b=J[i+4>>2];b=Dzb(b,b>>31,-868,8191);J[g+4>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+8>>2];b=J[i+8>>2];b=Dzb(b,b>>31,-868,8191);J[g+8>>2]=k-((fc&8191)<<19|b>>> -13);k=J[g+12>>2];b=J[i+12>>2];b=Dzb(b,b>>31,-868,8191);J[g+12>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+16>>2];b=J[i+16>>2];b=Dzb(b,b>>31,-868,8191);J[g+16>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+20>>2];b=J[i+20>>2];b=Dzb(b,b>>31,-868,8191);J[g+20>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+24>>2];b=J[i+24>>2];b=Dzb(b,b>>31,-868,8191);J[g+24>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+28>>2];b=J[i+28>>2];b=Dzb(b,b>>31,-868,8191);J[g+28>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+32>>2];b=J[i+32>>2];b=Dzb(b,b>>31,-868,8191);J[g+32>>2]= -k-((fc&8191)<<19|b>>>13);k=J[g+36>>2];b=J[i+36>>2];b=Dzb(b,b>>31,-868,8191);J[g+36>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+40>>2];b=J[i+40>>2];b=Dzb(b,b>>31,-868,8191);J[g+40>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+44>>2];b=J[i+44>>2];b=Dzb(b,b>>31,-868,8191);J[g+44>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+48>>2];b=J[i+48>>2];b=Dzb(b,b>>31,-868,8191);J[g+48>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+52>>2];b=J[i+52>>2];b=Dzb(b,b>>31,-868,8191);J[g+52>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+56>>2];b=J[i+56>>2];b=Dzb(b,b>>31,-868, -8191);J[g+56>>2]=k-((fc&8191)<<19|b>>>13);k=J[g+60>>2];b=J[i+60>>2];b=Dzb(b,b>>31,-868,8191);J[g+60>>2]=k-((fc&8191)<<19|b>>>13)}if(l){i=J[h>>2];b=J[c>>2];b=Dzb(b,b>>31,-25987,8191);J[h>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+4>>2];b=J[c+4>>2];b=Dzb(b,b>>31,-25987,8191);J[h+4>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+8>>2];b=J[c+8>>2];b=Dzb(b,b>>31,-25987,8191);J[h+8>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+12>>2];b=J[c+12>>2];b=Dzb(b,b>>31,-25987,8191);J[h+12>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+16>>2];b=J[c+16>>2]; -b=Dzb(b,b>>31,-25987,8191);J[h+16>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+20>>2];b=J[c+20>>2];b=Dzb(b,b>>31,-25987,8191);J[h+20>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+24>>2];b=J[c+24>>2];b=Dzb(b,b>>31,-25987,8191);J[h+24>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+28>>2];b=J[c+28>>2];b=Dzb(b,b>>31,-25987,8191);J[h+28>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+32>>2];b=J[c+32>>2];b=Dzb(b,b>>31,-25987,8191);J[h+32>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+36>>2];b=J[c+36>>2];b=Dzb(b,b>>31,-25987,8191);J[h+36>>2]=i-((fc&8191)<<19|b>>> -13);i=J[h+40>>2];b=J[c+40>>2];b=Dzb(b,b>>31,-25987,8191);J[h+40>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+44>>2];b=J[c+44>>2];b=Dzb(b,b>>31,-25987,8191);J[h+44>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+48>>2];b=J[c+48>>2];b=Dzb(b,b>>31,-25987,8191);J[h+48>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+52>>2];b=J[c+52>>2];b=Dzb(b,b>>31,-25987,8191);J[h+52>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+56>>2];b=J[c+56>>2];b=Dzb(b,b>>31,-25987,8191);J[h+56>>2]=i-((fc&8191)<<19|b>>>13);i=J[h+60>>2];b=J[c+60>>2];b=Dzb(b,b>>31,-25987,8191); -J[h+60>>2]=i-((fc&8191)<<19|b>>>13);h=(f<<2)+h|0}m:{if((j|0)<=0){b=c;break m}i=f<<2;while(1){k=J[h>>2];b=c+i|0;g=J[b>>2]+J[c>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+4>>2];g=J[i+(c+4|0)>>2]+J[c+4>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+4>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+8>>2];g=J[i+(c+8|0)>>2]+J[c+8>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+8>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+12>>2];g=J[i+(c+12|0)>>2]+J[c+12>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+12>>2]=k-((fc&8191)<<19|g>>> -13);k=J[h+16>>2];g=J[i+(c+16|0)>>2]+J[c+16>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+16>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+20>>2];g=J[i+(c+20|0)>>2]+J[c+20>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+20>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+24>>2];g=J[i+(c+24|0)>>2]+J[c+24>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+24>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+28>>2];g=J[i+(c+28|0)>>2]+J[c+28>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+28>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+32>>2];g=J[i+(c+32|0)>>2]+J[c+32>>2]|0;g=Dzb(g,g>>31,-12993, -8191);J[h+32>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+36>>2];g=J[i+(c+36|0)>>2]+J[c+36>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+36>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+40>>2];g=J[i+(c+40|0)>>2]+J[c+40>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+40>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+44>>2];g=J[i+(c+44|0)>>2]+J[c+44>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+44>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+48>>2];g=J[i+(c+48|0)>>2]+J[c+48>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+48>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+52>>2];g=J[i+(c+52|0)>> -2]+J[c+52>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+52>>2]=k-((fc&8191)<<19|g>>>13);k=J[h+56>>2];g=J[i+(c+56|0)>>2]+J[c+56>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[h+56>>2]=k-((fc&8191)<<19|g>>>13);g=J[h+60>>2];c=J[i+(c+60|0)>>2]+J[c+60>>2]|0;c=Dzb(c,c>>31,-12993,8191);J[h+60>>2]=g-((fc&8191)<<19|c>>>13);h=h+i|0;g=j>>>0>1;j=j-1|0;c=b;if(g)continue;break}}if(s)break i;i=J[h>>2];c=J[b>>2];c=Dzb(c,c>>31,-25987,8191);J[h>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+4>>2];c=J[b+4>>2];c=Dzb(c,c>>31,-25987,8191);J[h+4>>2]=i- -((fc&8191)<<19|c>>>13);i=J[h+8>>2];c=J[b+8>>2];c=Dzb(c,c>>31,-25987,8191);J[h+8>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+12>>2];c=J[b+12>>2];c=Dzb(c,c>>31,-25987,8191);J[h+12>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+16>>2];c=J[b+16>>2];c=Dzb(c,c>>31,-25987,8191);J[h+16>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+20>>2];c=J[b+20>>2];c=Dzb(c,c>>31,-25987,8191);J[h+20>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+24>>2];c=J[b+24>>2];c=Dzb(c,c>>31,-25987,8191);J[h+24>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+28>>2];c=J[b+28>>2];c=Dzb(c,c>> -31,-25987,8191);J[h+28>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+32>>2];c=J[b+32>>2];c=Dzb(c,c>>31,-25987,8191);J[h+32>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+36>>2];c=J[b+36>>2];c=Dzb(c,c>>31,-25987,8191);J[h+36>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+40>>2];c=J[b+40>>2];c=Dzb(c,c>>31,-25987,8191);J[h+40>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+44>>2];c=J[b+44>>2];c=Dzb(c,c>>31,-25987,8191);J[h+44>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+48>>2];c=J[b+48>>2];c=Dzb(c,c>>31,-25987,8191);J[h+48>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+ -52>>2];c=J[b+52>>2];c=Dzb(c,c>>31,-25987,8191);J[h+52>>2]=i-((fc&8191)<<19|c>>>13);i=J[h+56>>2];c=J[b+56>>2];c=Dzb(c,c>>31,-25987,8191);J[h+56>>2]=i-((fc&8191)<<19|c>>>13);c=J[h+60>>2];b=J[b+60>>2];b=Dzb(b,b>>31,-25987,8191);J[h+60>>2]=c-((fc&8191)<<19|b>>>13)}_8(a,e,f,l);a=a- -64|0;r=r+16|0;if((q|0)>(r|0))continue;break}}if((d|0)>(q|0)){c=a;q=d-q|0;k=f;t=l;n=0;m=e;n:{if((e|0)<2)break n;e=(e-l|0)+1>>1;if(!((e|0)<=0|(q|0)<=0)){l=q&-4;g=q&3;j=q-1>>>0<3;r=k<<2;i=e;b=c;while(1){h=0;d=b;if(!j)while(1){f= -J[d>>2];f=Dzb(f,f>>31,10077,0);J[d>>2]=(fc&8191)<<19|f>>>13;f=J[d+4>>2];f=Dzb(f,f>>31,10077,0);J[d+4>>2]=(fc&8191)<<19|f>>>13;f=J[d+8>>2];f=Dzb(f,f>>31,10077,0);J[d+8>>2]=(fc&8191)<<19|f>>>13;f=J[d+12>>2];f=Dzb(f,f>>31,10077,0);J[d+12>>2]=(fc&8191)<<19|f>>>13;d=d+16|0;h=h+4|0;if((l|0)!=(h|0))continue;break}h=0;if(g)while(1){f=J[d>>2];f=Dzb(f,f>>31,10077,0);J[d>>2]=(fc&8191)<<19|f>>>13;d=d+4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}b=b+r|0;d=(i|0)>1;i=i-1|0;if(d)continue;break}}b=(P(e,k)<<2)+c|0;g= -m-e|0;if(!((g|0)<=0|(q|0)<=0)){r=q&-4;l=q&3;s=q-1>>>0<3;o=k<<2;i=g;f=b;while(1){h=0;d=f;if(!s)while(1){j=J[d>>2];j=Dzb(j,j>>31,13318,0);J[d>>2]=(fc&8191)<<19|j>>>13;j=J[d+4>>2];j=Dzb(j,j>>31,13318,0);J[d+4>>2]=(fc&8191)<<19|j>>>13;j=J[d+8>>2];j=Dzb(j,j>>31,13318,0);J[d+8>>2]=(fc&8191)<<19|j>>>13;j=J[d+12>>2];j=Dzb(j,j>>31,13318,0);J[d+12>>2]=(fc&8191)<<19|j>>>13;d=d+16|0;h=h+4|0;if((r|0)!=(h|0))continue;break}h=0;if(l)while(1){j=J[d>>2];j=Dzb(j,j>>31,13318,0);J[d>>2]=(fc&8191)<<19|j>>>13;d=d+4|0; -h=h+1|0;if((l|0)!=(h|0))continue;break}f=f+o|0;d=(i|0)>1;i=i-1|0;if(d)continue;break}}f=c;if(!t){o:{if((q|0)<=0)break o;h=b;d=c;if(q-1>>>0>=3){i=q&-4;j=0;while(1){l=J[d>>2];f=J[h>>2];f=Dzb(f,f>>31,7266,0);J[d>>2]=l-((fc&8191)<<19|f>>>13);l=J[d+4>>2];f=J[h+4>>2];f=Dzb(f,f>>31,7266,0);J[d+4>>2]=l-((fc&8191)<<19|f>>>13);l=J[d+8>>2];f=J[h+8>>2];f=Dzb(f,f>>31,7266,0);J[d+8>>2]=l-((fc&8191)<<19|f>>>13);l=J[d+12>>2];f=J[h+12>>2];f=Dzb(f,f>>31,7266,0);J[d+12>>2]=l-((fc&8191)<<19|f>>>13);h=h+16|0;d=d+16|0; -j=j+4|0;if((i|0)!=(j|0))continue;break}}i=q&3;if(!i)break o;j=0;while(1){l=J[d>>2];f=J[h>>2];f=Dzb(f,f>>31,7266,0);J[d>>2]=l-((fc&8191)<<19|f>>>13);h=h+4|0;d=d+4|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}f=(k<<2)+c|0}o=m&1;p=(o|0)!=(t|0);l=(e-!t|0)-p|0;p:{q:{if((l|0)<=0){e=b;break q}if((q|0)<=0){s=0;break p}n=q&-2;u=q&1;j=k<<2;i=l;e=b;while(1){r=0;d=e;h=f;if((q|0)!=1)while(1){v=J[h>>2];s=J[d+j>>2]+J[d>>2]|0;s=Dzb(s,s>>31,3633,0);J[h>>2]=v-((fc&8191)<<19|s>>>13);v=J[h+4>>2];s=J[j+(d+4|0)>>2]+J[d+4>> -2]|0;s=Dzb(s,s>>31,3633,0);J[h+4>>2]=v-((fc&8191)<<19|s>>>13);d=d+8|0;h=h+8|0;r=r+2|0;if((n|0)!=(r|0))continue;break}if(u){r=J[h>>2];d=J[d+j>>2]+J[d>>2]|0;d=Dzb(d,d>>31,3633,0);J[h>>2]=r-((fc&8191)<<19|d>>>13)}e=e+j|0;f=f+j|0;d=(i|0)>1;i=i-1|0;if(d)continue;break}}s=(q|0)>0;n=p&s;if(!n){n=0;break p}if(q-1>>>0>=3){i=q&-4;d=0;while(1){j=J[f>>2];h=J[e>>2];h=Dzb(h,h>>31,7266,0);J[f>>2]=j-((fc&8191)<<19|h>>>13);j=J[f+4>>2];h=J[e+4>>2];h=Dzb(h,h>>31,7266,0);J[f+4>>2]=j-((fc&8191)<<19|h>>>13);j=J[f+8>>2]; -h=J[e+8>>2];h=Dzb(h,h>>31,7266,0);J[f+8>>2]=j-((fc&8191)<<19|h>>>13);j=J[f+12>>2];h=J[e+12>>2];h=Dzb(h,h>>31,7266,0);J[f+12>>2]=j-((fc&8191)<<19|h>>>13);e=e+16|0;f=f+16|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}i=q&3;if(!i)break p;d=0;while(1){j=J[f>>2];h=J[e>>2];h=Dzb(h,h>>31,7266,0);J[f>>2]=j-((fc&8191)<<19|h>>>13);e=e+4|0;f=f+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}f=b;if(t){r:{if(!s)break r;d=b;h=c;if(q-1>>>0>=3){f=q&-4;j=0;while(1){i=J[d>>2];e=J[h>>2];e=Dzb(e,e>>31,14465,0);J[d>>2]=i-((fc& -8191)<<19|e>>>13);i=J[d+4>>2];e=J[h+4>>2];e=Dzb(e,e>>31,14465,0);J[d+4>>2]=i-((fc&8191)<<19|e>>>13);i=J[d+8>>2];e=J[h+8>>2];e=Dzb(e,e>>31,14465,0);J[d+8>>2]=i-((fc&8191)<<19|e>>>13);i=J[d+12>>2];e=J[h+12>>2];e=Dzb(e,e>>31,14465,0);J[d+12>>2]=i-((fc&8191)<<19|e>>>13);h=h+16|0;d=d+16|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=q&3;if(!f)break r;j=0;while(1){i=J[d>>2];e=J[h>>2];e=Dzb(e,e>>31,14465,0);J[d>>2]=i-((fc&8191)<<19|e>>>13);h=h+4|0;d=d+4|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}f=(k<<2)+b| -0}s:{t:{u:{v:{p=(o|0)==(t|0);g=(g-t|0)-p|0;w:{if((g|0)<=0){e=c;break w}if(!s)break v;u=q&-2;v=q&1;j=k<<2;i=g;e=c;while(1){r=0;d=f;h=e;if((q|0)!=1)while(1){w=J[d>>2];o=J[h+j>>2]+J[h>>2]|0;o=Dzb(o,o>>31,7232,0);J[d>>2]=w-((fc&8191)<<19|o>>>13);w=J[d+4>>2];o=J[j+(h+4|0)>>2]+J[h+4>>2]|0;o=Dzb(o,o>>31,7232,0);J[d+4>>2]=w-((fc&8191)<<19|o>>>13);d=d+8|0;h=h+8|0;r=r+2|0;if((u|0)!=(r|0))continue;break}if(v){r=J[d>>2];h=J[h+j>>2]+J[h>>2]|0;h=Dzb(h,h>>31,7232,0);J[d>>2]=r-((fc&8191)<<19|h>>>13)}e=e+j|0;f=f+ -j|0;d=(i|0)>1;i=i-1|0;if(d)continue;break}}i=p&s;x:{if(!i)break x;if(q-1>>>0>=3){j=q&-4;d=0;while(1){r=J[f>>2];h=J[e>>2];h=Dzb(h,h>>31,14465,0);J[f>>2]=r-((fc&8191)<<19|h>>>13);r=J[f+4>>2];h=J[e+4>>2];h=Dzb(h,h>>31,14465,0);J[f+4>>2]=r-((fc&8191)<<19|h>>>13);r=J[f+8>>2];h=J[e+8>>2];h=Dzb(h,h>>31,14465,0);J[f+8>>2]=r-((fc&8191)<<19|h>>>13);r=J[f+12>>2];h=J[e+12>>2];h=Dzb(h,h>>31,14465,0);J[f+12>>2]=r-((fc&8191)<<19|h>>>13);f=f+16|0;e=e+16|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}j=q&3;if(!j)break x; -d=0;while(1){r=J[f>>2];h=J[e>>2];h=Dzb(h,h>>31,14465,0);J[f>>2]=r-((fc&8191)<<19|h>>>13);f=f+4|0;e=e+4|0;d=d+1|0;if((j|0)!=(d|0))continue;break}}if(!t)break u;f=i;i=c;break s}i=c;f=0;if(!t)break t;break s}f=0;if(!s)break t;h=b;d=c;if(q-1>>>0>=3){f=q&-4;j=0;while(1){r=J[d>>2];e=J[h>>2];e=Dzb(e,e>>31,-868,8191);J[d>>2]=r-((fc&8191)<<19|e>>>13);r=J[d+4>>2];e=J[h+4>>2];e=Dzb(e,e>>31,-868,8191);J[d+4>>2]=r-((fc&8191)<<19|e>>>13);r=J[d+8>>2];e=J[h+8>>2];e=Dzb(e,e>>31,-868,8191);J[d+8>>2]=r-((fc&8191)<< -19|e>>>13);r=J[d+12>>2];e=J[h+12>>2];e=Dzb(e,e>>31,-868,8191);J[d+12>>2]=r-((fc&8191)<<19|e>>>13);h=h+16|0;d=d+16|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=q&3;if(f){j=0;while(1){r=J[d>>2];e=J[h>>2];e=Dzb(e,e>>31,-868,8191);J[d>>2]=r-((fc&8191)<<19|e>>>13);h=h+4|0;d=d+4|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}f=i}i=(k<<2)+c|0}y:{if((l|0)<=0){e=b;break y}p=q&-2;u=q&1;o=k<<2;e=b;while(1){j=l;z:{if(!s)break z;r=0;d=e;h=i;if((q|0)!=1)while(1){v=J[h>>2];l=J[d+o>>2]+J[d>>2]|0;l=Dzb(l,l>>31,-434,8191); -J[h>>2]=v-((fc&8191)<<19|l>>>13);v=J[h+4>>2];l=J[o+(d+4|0)>>2]+J[d+4>>2]|0;l=Dzb(l,l>>31,-434,8191);J[h+4>>2]=v-((fc&8191)<<19|l>>>13);d=d+8|0;h=h+8|0;r=r+2|0;if((p|0)!=(r|0))continue;break}if(!u)break z;l=J[h>>2];d=J[d+o>>2]+J[d>>2]|0;d=Dzb(d,d>>31,-434,8191);J[h>>2]=l-((fc&8191)<<19|d>>>13)}l=j-1|0;e=e+o|0;i=i+o|0;if((j|0)>1)continue;break}}A:{if(!n)break A;if(q-1>>>0>=3){l=q&-4;d=0;while(1){j=J[i>>2];h=J[e>>2];h=Dzb(h,h>>31,-868,8191);J[i>>2]=j-((fc&8191)<<19|h>>>13);j=J[i+4>>2];h=J[e+4>>2];h= -Dzb(h,h>>31,-868,8191);J[i+4>>2]=j-((fc&8191)<<19|h>>>13);j=J[i+8>>2];h=J[e+8>>2];h=Dzb(h,h>>31,-868,8191);J[i+8>>2]=j-((fc&8191)<<19|h>>>13);j=J[i+12>>2];h=J[e+12>>2];h=Dzb(h,h>>31,-868,8191);J[i+12>>2]=j-((fc&8191)<<19|h>>>13);e=e+16|0;i=i+16|0;d=d+4|0;if((l|0)!=(d|0))continue;break}}l=q&3;if(!l)break A;d=0;while(1){j=J[i>>2];h=J[e>>2];h=Dzb(h,h>>31,-868,8191);J[i>>2]=j-((fc&8191)<<19|h>>>13);e=e+4|0;i=i+4|0;d=d+1|0;if((l|0)!=(d|0))continue;break}}if(t){B:{if(!s)break B;d=b;h=c;if(q-1>>>0>=3){i= -q&-4;j=0;while(1){l=J[d>>2];e=J[h>>2];e=Dzb(e,e>>31,-25987,8191);J[d>>2]=l-((fc&8191)<<19|e>>>13);l=J[d+4>>2];e=J[h+4>>2];e=Dzb(e,e>>31,-25987,8191);J[d+4>>2]=l-((fc&8191)<<19|e>>>13);l=J[d+8>>2];e=J[h+8>>2];e=Dzb(e,e>>31,-25987,8191);J[d+8>>2]=l-((fc&8191)<<19|e>>>13);l=J[d+12>>2];e=J[h+12>>2];e=Dzb(e,e>>31,-25987,8191);J[d+12>>2]=l-((fc&8191)<<19|e>>>13);h=h+16|0;d=d+16|0;j=j+4|0;if((i|0)!=(j|0))continue;break}}i=q&3;if(!i)break B;j=0;while(1){l=J[d>>2];e=J[h>>2];e=Dzb(e,e>>31,-25987,8191);J[d>> -2]=l-((fc&8191)<<19|e>>>13);h=h+4|0;d=d+4|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}b=(k<<2)+b|0}if((g|0)>0){l=q&-2;j=q&1;i=k<<2;while(1){e=g;C:{if(!s)break C;r=0;d=b;h=c;if((q|0)!=1)while(1){o=J[d>>2];g=J[h+i>>2]+J[h>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[d>>2]=o-((fc&8191)<<19|g>>>13);o=J[d+4>>2];g=J[i+(h+4|0)>>2]+J[h+4>>2]|0;g=Dzb(g,g>>31,-12993,8191);J[d+4>>2]=o-((fc&8191)<<19|g>>>13);d=d+8|0;h=h+8|0;r=r+2|0;if((l|0)!=(r|0))continue;break}if(!j)break C;g=J[d>>2];h=J[h+i>>2]+J[h>>2]|0;h=Dzb(h,h>>31, --12993,8191);J[d>>2]=g-((fc&8191)<<19|h>>>13)}g=e-1|0;c=c+i|0;b=b+i|0;if((e|0)>1)continue;break}}if(!f)break n;if(q-1>>>0>=3){f=q&-4;d=0;while(1){h=J[b>>2];e=J[c>>2];e=Dzb(e,e>>31,-25987,8191);J[b>>2]=h-((fc&8191)<<19|e>>>13);h=J[b+4>>2];e=J[c+4>>2];e=Dzb(e,e>>31,-25987,8191);J[b+4>>2]=h-((fc&8191)<<19|e>>>13);h=J[b+8>>2];e=J[c+8>>2];e=Dzb(e,e>>31,-25987,8191);J[b+8>>2]=h-((fc&8191)<<19|e>>>13);h=J[b+12>>2];e=J[c+12>>2];e=Dzb(e,e>>31,-25987,8191);J[b+12>>2]=h-((fc&8191)<<19|e>>>13);b=b+16|0;c=c+16| -0;d=d+4|0;if((f|0)!=(d|0))continue;break}}f=q&3;if(!f)break n;d=0;while(1){h=J[b>>2];e=J[c>>2];e=Dzb(e,e>>31,-25987,8191);J[b>>2]=h-((fc&8191)<<19|e>>>13);b=b+4|0;c=c+4|0;d=d+1|0;if((f|0)!=(d|0))continue;break}}Z8(a,m,q,k,t)}return 0}function vfb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=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=0,ha=0,ia= -0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0;h=bc-112|0;bc=h;d=J[b+96>>2];e=J[d+4>>2];D=J[b+540>>2];a:{if(!D){D=pn(e,239448);if(!D){f=11;break a}J[b+540>>2]=D;J[b+516>>2]=J[D>>2];d=J[b+96>>2]}ra=b,sa=Dk(d,240709,1),J[ra+544>>2]=sa;if(!J[b+548>>2])ra=b,sa=Dk(gh(e,240862),240940,0),J[ra+548>>2]=sa;if(!J[b+552>>2])ra=b,sa=Dk(gh(e,240862),241078,0),J[ra+552>>2]=sa;ja=J[a+28>>2];J[b+140>>2]=0;J[b+132>>2]=0;J[b+136>>2]=0;v=J[a+8>>2];d=Kf(a,h);f=J[h>>2];if(f)break a;ka=b+132|0;pa=h+96|0;while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((d| -0)<=1954115632){if((d|0)<=131071){if((d|0)==-1519689116|(d|0)==-1519619212)break o;f=2;if((d|0)==65536)break o;break a}if((d|0)<=1953658212){if((d|0)==131072)break o;f=2;if((d|0)==1330926671)break o;break a}if((d|0)==1953658213)break o;f=2;if((d|0)==1953784678)break o;break a}if((d|0)==2001684018)break m;if((d|0)==2001684038)break n;f=2;if((d|0)!=1954115633)break a}J[ka>>2]=1953784678;if((d|0)!=1953784678)break k;f=Me(a,325280,ka);J[h>>2]=f;if(f)break a;d=J[b+140>>2];if(d)break l;f=8;break a}f=nd(a, -v);J[h>>2]=f;if(f)break a;t=J[a+28>>2];f=Me(a,325296,h+40|0);J[h+16>>2]=f;if(f)break a;f=8;d=J[h+44>>2];if((d|0)==1953784678|(d|0)==2001684038)break a;d=J[h+48>>2];if((d|0)!=J[a+4>>2])break a;e=L[h+52>>1];if(!e|d>>>0<=P(e,20)+44>>>0)break a;e=e<<4|12;d=J[h+56>>2];if(e>>>0>=d>>>0|d&3)break a;d=J[h+68>>2];p:{if(!J[h+64>>2]){if(!(d|J[h+72>>2]))break p;break a}if(!d)break p;if(!J[h+72>>2])break a}if(!(J[h+80>>2]?J[h+76>>2]:1))break a;f=0;z=Zd(t,e,h+16|0);if(J[h+16>>2]){l=0;v=0;break d}l=Zd(t,40,h+16| -0);if(J[h+16>>2]){v=0;break d}v=0;g=L[h+52>>1];f=g;q:{if(!f){d=-1;break q}while(1){d=v;v=d+1|0;e=f>>>0>1;f=f>>>1|0;if(e)continue;break}}H[z|0]=K[h+47|0];H[z+1|0]=L[h+46>>1];H[z+2|0]=J[h+44>>2]>>>8;H[z+3|0]=J[h+44>>2];H[z+4|0]=K[h+53|0];f=K[h+52|0];e=g<<4;g=16<>>8;H[z+9|0]=d;H[z+8|0]=d>>>8;H[z+7|0]=g;H[z+6|0]=g>>>8;H[z+5|0]=f;f=0;d=h+16|0;v=Sc(t,24,0,L[h+52>>1],0,d);if(J[h+16>>2])break d;f=Sc(t,4,0,L[h+52>>1],0,d);if(J[h+16>>2])break d;d=Ue(a,P(L[h+52>>1],20));J[h+ -16>>2]=d;if(d)break d;e=0;d=0;if(L[h+52>>1])while(1){g=P(d,24)+v|0;ra=g,sa=qh(a),J[ra>>2]=sa;ra=g,sa=qh(a),J[ra+4>>2]=sa;ra=g,sa=qh(a),J[ra+8>>2]=sa;ra=g,sa=qh(a),J[ra+12>>2]=sa;ra=g,sa=qh(a),J[ra+16>>2]=sa;j=e;e=J[g>>2];if(j>>>0>=e>>>0){ne(a);J[h+16>>2]=8;break d}J[(d<<2)+f>>2]=g;d=d+1|0;if(d>>>0>1])continue;break}ne(a);Kl(f,L[h+52>>1],4,1707);p=L[h+52>>1];g=p<<4|12;w=P(p,20)+44|0;r:{if(!p){d=g;break r}m=0;j=J[h+56>>2];e=J[h+48>>2];d=g;while(1){s:{k=J[(m<<2)+f>>2];t:{if(J[k+4>>2]!=(w|0))break t; -i=J[k+8>>2];if(i>>>0>e>>>0|e-i>>>0>>0)break t;s=J[k+12>>2];if(s>>>0>>0|j>>>0>>0)break t;if(j-s>>>0>=d>>>0)break s}J[h+16>>2]=8;break d}J[k+20>>2]=d;d=(s+3&-4)+d|0;w=(i+3&-4)+w|0;m=m+1|0;if((p|0)!=(m|0))continue;break}}u:{e=J[h+64>>2];if(!e)break u;if((e|0)==(w|0)){w=J[h+68>>2]+w|0;if(w>>>0<=M[h+48>>2])break u}J[h+16>>2]=8;break d}j=J[h+76>>2];if(!j){e=J[h+48>>2];break e}if((j|0)==(w+3&-4)){e=J[h+48>>2];w=j+J[h+80>>2]|0;if(e>>>0>=w>>>0)break e}J[h+16>>2]=8;break d}f=nd(a,v);J[h>>2]=f;if(f)break a; -n=J[a+28>>2];J[h+32>>2]=0;J[h+36>>2]=0;J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+12>>2]=0;f=Me(a,325360,h+40|0);J[h+108>>2]=f;if(f)break a;f=8;if(J[h+44>>2]==2001684018)break a;j=J[h+48>>2];if((j|0)!=J[a+4>>2])break a;g=L[h+52>>1];if(!g|j>>>0<=P(g,20)+48>>>0)break a;w=J[h+68>>2];e=J[h+64>>2];v:{if(!e){d=J[h+72>>2]|w;w=0;if(!d)break v;break a}if(!w)break v;if(!J[h+72>>2])break a}if(j-e>>>0>>0|e>>>0>=j>>>0)break a;e=J[h+76>>2];if(e>>>0>=j>>>0)break a;d=J[h+80>>2];if(!(!d|(e|0)!=0)| -d>>>0>j-e>>>0)break a;v=0;J[h+104>>2]=0;ea=Sc(n,32,0,g,0,h+108|0);if(J[h+108>>2]){z=0;w=0;break f}w=Sc(n,4,0,L[h+52>>1],0,h+108|0);if(J[h+108>>2]){z=0;break f}z=0;l=0;m=0;f=0;if(L[h+52>>1])while(1){s=(l<<5)+ea|0;f=h+108|0;d=Gg(a,f);H[s|0]=d;if(J[h+108>>2])break f;e=d&63;w:{if((e|0)==63){v=Kf(a,f);J[s+4>>2]=v;if(J[h+108>>2]){v=0;break f}d=K[s|0];break w}v=J[(e<<2)+325424>>2];J[s+4>>2]=v}j=(v|0)!=1819239265;g=(v|0)!=1735162214;e=z4(a,s+8|0);J[h+108>>2]=e;v=0;if(e)break f;e=J[s+8>>2];J[s+12>>2]=e;x:{y:{f= -d&255;g=g&j?f>>>0<64:f>>>0>63;if(!g){e=z4(a,s+12|0);J[h+108>>2]=e;if(e)break f;f=J[s+12>>2];if(J[s+4>>2]==1819239265)break y;e=f}if((m^-1)>>>0>=e>>>0)break x;break g}e=0;if(f)break i}J[s+24>>2]=e;J[s+20>>2]=m;J[s+16>>2]=(d&192)>>>6|(g?0:256);J[(l<<2)+w>>2]=s;m=e+m|0;f=L[h+52>>1];l=l+1|0;if(f>>>0>l>>>0)continue;break}d=J[((f<<2)+w|0)-4>>2];e=J[d+24>>2];d=e+J[d+20>>2]|0;J[h+84>>2]=d;if(d>>>0>>0)break h;J[h+92>>2]=0;I[h+96>>1]=1;z:{if(J[h+44>>2]==1953784678){e=h+108|0;d=Kf(a,e);J[h+92>>2]=d;if(J[h+ -108>>2])break f;if((d|0)!=65536&(d|0)!=131072)break h;d=au(a,pa);J[h+108>>2]=d;if(d)break f;d=L[h+96>>1];if(!d)break h;ra=h,sa=Sc(n,12,0,d,0,e),J[ra+104>>2]=sa;if(J[h+108>>2])break f;f=0;if(!L[h+96>>1])break z;while(1){m=J[h+104>>2]+P(f,12)|0;d=au(a,m+4|0);J[h+108>>2]=d;if(d)break f;d=h+108|0;ra=m,sa=Kf(a,d),J[ra>>2]=sa;if(J[h+108>>2])break f;ra=m,sa=Sc(n,2,0,L[m+4>>1],0,d),J[ra+8>>2]=sa;if(J[h+108>>2])break f;l=0;A:{if(!L[m+4>>1]){e=0;break A}e=0;d=0;while(1){g=au(a,h+6|0);J[h+108>>2]=g;if(g)break f; -j=L[h+6>>1];if(j>>>0>=L[h+52>>1])break i;I[J[m+8>>2]+(d<<1)>>1]=j;g=J[J[(j<<2)+w>>2]+4>>2];e=(g|0)==1735162214?j:e;l=(g|0)==1819239265?j:l;d=d+1|0;if(d>>>0>1])continue;break}}if((l-e|0)!=1|e>>>0>l>>>0?e|l:0)break i;f=f+1|0;if(f>>>0>1])continue;break}break z}J[h+104>>2]=0}d=J[a+8>>2];J[h+88>>2]=d;g=(d+J[h+60>>2]|0)+3|0;f=g&-4;e=J[h+48>>2];if(f>>>0>e>>>0)break h;d=J[h+64>>2];if(d){if((d|0)!=(f|0))break h;f=J[h+68>>2]+(g|3)&-4}d=J[h+76>>2];if(d){if((d|0)!=(f|0))break h;f=J[h+80>>2]+(f| -3)&-4}if((e+3&-4)!=(f|0))break h;B:{ba=c>>31;f=ba+((c^ba)-ba&65535)|0;fa=L[h+96>>1];if((f|0)<(fa|0))break B;f=0;if((c|0)<0)break B;J[h+108>>2]=6;break f}C:{if(!J[h+92>>2]){f=L[h+52>>1];break C}s=J[h+104>>2]+P(f,12)|0;i=Sc(n,4,0,L[s+4>>1],0,h+108|0);if(J[h+108>>2])break f;j=L[s+4>>1];D:{if(!j)break D;f=0;if((j|0)!=1){g=j&65534;e=0;while(1){J[i+(f<<2)>>2]=J[(L[J[s+8>>2]+(f<<1)>>1]<<2)+w>>2];d=f|1;J[i+(d<<2)>>2]=J[(L[J[s+8>>2]+(d<<1)>>1]<<2)+w>>2];f=f+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(!(j& -1))break D;J[i+(f<<2)>>2]=J[(L[J[s+8>>2]+(f<<1)>>1]<<2)+w>>2]}w=Sc(n,4,L[h+52>>1],j,w,h+108|0);if(J[h+108>>2])break f;j=L[s+4>>1];E:{if(!j)break E;l=0;f=0;if(j>>>0>=4){g=j&65532;e=0;while(1){m=f<<2;J[m+w>>2]=J[i+m>>2];d=m|4;J[d+w>>2]=J[d+i>>2];d=m|8;J[d+w>>2]=J[d+i>>2];d=m|12;J[d+w>>2]=J[d+i>>2];f=f+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}e=j&3;if(!e)break E;while(1){d=f<<2;J[d+w>>2]=J[d+i>>2];f=f+1|0;l=l+1|0;if((e|0)!=(l|0))continue;break}}if(i)gc[J[n+8>>2]](n,i);J[h+44>>2]=J[s>>2];f=L[s+4>> -1];I[h+52>>1]=f}e=(f&65535)<<4|12;J[h+8>>2]=e;f=J[h+56>>2];if(f>>>0>e>>>0){d=J[h+48>>2];d=d>>>0>>6>>>0?d<<6:f;e=d>>>0>=67108864?67108864:d;J[h+8>>2]=e}d=h+108|0;l=Zd(n,e,d);J[h+12>>2]=l;if(J[h+108>>2])break f;v=Zd(n,40,d);if(J[h+108>>2])break f;H[l|0]=K[h+47|0];H[l+1|0]=L[h+46>>1];H[l+2|0]=J[h+44>>2]>>>8;H[l+3|0]=J[h+44>>2];j=L[h+52>>1];if(j){d=0;f=j;while(1){g=d;d=d+1|0;m=f>>>0>1;f=f>>>1|0;if(m)continue;break}H[l+4|0]=j>>>8;f=K[h+52|0];d=j<<4;j=16<>>8;H[l+9| -0]=g;H[l+8|0]=g>>>8;H[l+7|0]=j;H[l+6|0]=j>>>8;H[l+5|0]=f;d=L[h+52>>1]}else d=0;ra=h,sa=CL(l,12),J[ra+16>>2]=sa;Kl(w,d,4,1708);d=J[h+84>>2];if(!d|d>>>0>e>>>0)break g;la=h+108|0;z=Zd(n,d,la);if(J[h+108>>2])break f;d=Ue(a,J[h+60>>2]);J[h+108>>2]=d;if(d)break f;J[h+108>>2]=7;ne(a);if(J[h+108>>2])break f;ma=J[h+84>>2];N=h+8|0;e=0;o=0;A=0;ca=0;da=0;i=bc-48|0;bc=i;J[i+16>>2]=0;d=J[h+12>>2];J[i+12>>2]=d;R=L[h+52>>1];s=R<<4|12;J[i+8>>2]=s;J[i>>2]=0;B=h+16|0;ga=J[B>>2];F:{G:{if(R){H:{while(1){l=J[(e<<2)+w>> -2];if(J[l+4>>2]==1735162214)break H;e=e+1|0;if((R|0)!=(e|0))continue;break}l=0}J[B+12>>2]=l;T=B+12|0;e=0;I:{while(1){f=J[(e<<2)+w>>2];if(J[f+4>>2]!=1819239265){e=e+1|0;if((R|0)!=(e|0))continue;break I}break}J[B+16>>2]=f;e=8;if(!l|(J[f+16>>2]^J[l+16>>2])&256)break F;e=B+16|0;break G}J[B+16>>2]=0;e=8;if(l)break F;e=B+16|0;break G}J[B+12>>2]=0;J[B+16>>2]=0;T=B+12|0;e=B+16|0}na=e;e=i+16|0;u=Sc(n,1,0,16,0,e);J:{K:{if(J[i+16>>2])break K;o=Zd(n,40,e);if(J[i+16>>2])break K;J[o+32>>2]=0;J[o+8>>2]=0;J[o+4>> -2]=ma;J[o>>2]=z;J[o+20>>2]=0;J[o+24>>2]=0;L:{M:{N:{if(!R)break N;qa=z+8|0;ha=12;while(1){g=J[(da<<2)+w>>2];e=J[g+28>>2];f=J[g+16>>2];aa=J[g+8>>2];W=J[g+4>>2];j=J[g+24>>2];g=J[g+20>>2];l=nd(o,g);J[i+16>>2]=l;if(g+j>>>0>ma>>>0|l)break L;O:{P:{if((W|0)==1751672161){e=bg(o,34);J[i+44>>2]=e;if(e)break M;ca=Wd(o,i+44|0);if(J[i+44>>2])break M;I[B+6>>1]=ca;if(!(f&256))break P;break M}I[B+6>>1]=ca;J[i+4>>2]=0;if(f&256){Q:{R:{S:{T:{U:{if((W|0)!=1819239265){if((W|0)==1752003704)break U;if((W|0)!=1735162214)break M; -e=0;J[i+44>>2]=0;J[i+40>>2]=d;m=J[o+8>>2];J[i+36>>2]=s;k=i+44|0;q=Sc(n,12,0,7,0,k);if(J[i+44>>2])break S;d=bg(o,4);J[i+44>>2]=d;if(d)break S;Y=Wd(o,k);if(J[i+44>>2])break S;ia=Wd(o,k);l=0;r=0;C=0;if(J[i+44>>2])break R;I[B+4>>1]=Y;t=Y+1|0;V:{if(J[J[B+16>>2]+8>>2]!=t<<(ia?2:1)|M[J[T>>2]+12>>2]<36)break V;f=Kf(o,k);if(J[i+44>>2])break R;if(f>>>0>J[J[T>>2]+12>>2]-36>>>0)break V;J[q+8>>2]=f;d=m+36|0;J[q+4>>2]=d;J[q>>2]=d;j=Kf(o,k);if(J[i+44>>2])break R;f=f+36|0;if(j>>>0>J[J[T>>2]+12>>2]-f>>>0)break V; -J[q+20>>2]=j;d=f+m|0;J[q+16>>2]=d;J[q+12>>2]=d;g=Kf(o,k);if(J[i+44>>2])break R;f=f+j|0;if(g>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+32>>2]=g;d=f+m|0;J[q+28>>2]=d;J[q+24>>2]=d;j=Kf(o,k);if(J[i+44>>2])break R;f=f+g|0;if(j>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+44>>2]=j;d=f+m|0;J[q+40>>2]=d;J[q+36>>2]=d;g=Kf(o,i+44|0);if(J[i+44>>2])break R;f=f+j|0;if(g>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+56>>2]=g;d=f+m|0;J[q+52>>2]=d;J[q+48>>2]=d;j=Kf(o,i+44|0);if(J[i+44>>2])break R;g=f+g|0;if(j>>>0>J[J[T>>2]+12>> -2]-g>>>0)break V;J[q+68>>2]=j;d=g+m|0;J[q- -64>>2]=d;J[q+60>>2]=d;f=Kf(o,i+44|0);if(J[i+44>>2])break R;d=g+j|0;if(f>>>0>J[J[T>>2]+12>>2]-d>>>0)break V;J[q+80>>2]=f;d=d+m|0;J[q+76>>2]=d;J[q+72>>2]=d;e=Sc(n,4,0,t,0,k);if(J[i+44>>2])break S;oa=J[q+64>>2];J[q+64>>2]=oa+(Y+31>>>3&16380);r=Sc(n,1,0,5120,0,k);if(J[i+44>>2])break R;ra=B,sa=Sc(n,2,0,Y,0,k),J[ra+8>>2]=sa;if(J[i+44>>2])break R;d=5120;Z=0;l=s;W:{if(Y){while(1){J[i+32>>2]=0;I[i+30>>1]=0;f=nd(o,(Z>>>3|0)+oa|0);J[i+44>>2]=f;X:{Y:{if(f)break Y;j= -i+44|0;g=Gg(o,j);if(J[i+44>>2])break Y;f=nd(o,J[q+4>>2]);J[i+44>>2]=f;if(f)break Y;U=Wd(o,j);if(J[i+44>>2])break Y;X=128>>>(Z&7)&g;J[q+4>>2]=J[q+4>>2]+2;Z:{if(U){if((U|0)==65535){H[i+22|0]=0;I[i+28>>1]=0;if(!X)break Y;g=0;j=bc-16|0;bc=j;k=J[q+52>>2];m=nd(o,k);J[j+12>>2]=m;_:{if(m)break _;l=32;while(1){if(l&32){l=Wd(o,j+12|0);m=J[j+12>>2];if(m)break _;g=l>>>8&1|g;m=l&1?6:4;f=m+2|0;$:{if(l&8)break $;f=m+4|0;if(l&64)break $;f=m|l>>>4&8}m=bg(o,f);J[j+12>>2]=m;if(!m)continue;break _}break}J[i+24>>2]=J[o+ -8>>2]-k;H[i+22|0]=g;m=J[j+12>>2]}bc=j+16|0;if(m)break Y;C=0;l=0;if(K[i+22|0]){f=nd(o,J[q+40>>2]);J[i+44>>2]=f;if(f)break Y;f=au(o,i+28|0);J[i+44>>2]=f;if(f)break Y;J[q+40>>2]=J[o+8>>2];l=L[i+28>>1]}f=(J[i+24>>2]+(l&65535)|0)+12|0;if(f>>>0>d>>>0){r=Sc(n,1,d,f,r,i+44|0);if(J[i+44>>2])break Y;C=J[i+32>>2];d=f}f=r+C|0;H[f|0]=255;H[f+1|0]=255;g=J[i+32>>2]+2|0;J[i+32>>2]=g;f=nd(o,J[q+64>>2]);J[i+44>>2]=f;if(f)break Y;ra=i,sa=Wd(o,i+44|0),I[ra+30>>1]=sa;if(J[i+44>>2])break Y;f=nd(o,J[q+64>>2]);J[i+44>>2]= -f;if(f)break Y;f=mg(o,g+r|0,8);J[i+44>>2]=f;if(f)break Y;J[q+64>>2]=J[q+64>>2]+8;g=J[i+32>>2]+8|0;J[i+32>>2]=g;f=nd(o,J[q+52>>2]);J[i+44>>2]=f;if(f)break Y;f=mg(o,g+r|0,J[i+24>>2]);J[i+44>>2]=f;if(f)break Y;f=J[i+24>>2];J[q+52>>2]=f+J[q+52>>2];C=f+J[i+32>>2]|0;J[i+32>>2]=C;if(!K[i+22|0])break Z;f=r+C|0;H[f|0]=K[i+29|0];H[f+1|0]=K[i+28|0];g=J[i+32>>2]+2|0;J[i+32>>2]=g;f=nd(o,J[q+76>>2]);J[i+44>>2]=f;if(f)break Y;f=mg(o,g+r|0,L[i+28>>1]);J[i+44>>2]=f;if(f)break Y;f=L[i+28>>1];J[q+76>>2]=f+J[q+76>>2]; -C=f+J[i+32>>2]|0;J[i+32>>2]=C;break Z}l=0;C=Sc(n,2,0,U,0,i+44|0);if(J[i+44>>2])break V;f=nd(o,J[q+16>>2]);J[i+44>>2]=f;j=0;m=0;if(f)break V;while(1){f=au(o,i+28|0);J[i+44>>2]=f;if(f)break V;f=L[i+28>>1];I[(j<<1)+C>>1]=f;E=f+m|0;if(E>>>0>>0)break V;m=E;j=j+1|0;if((U|0)!=(j|0))continue;break}J[q+16>>2]=J[o+8>>2];if(M[q+32>>2]>>0)break V;k=J[q+44>>2];g=J[q+40>>2];j=g-J[q+36>>2]|0;if(k>>>0>>0)break V;p=J[o>>2];f=J[q+28>>2];J[i+24>>2]=0;l=Sc(n,12,0,m,0,i+44|0);if(J[i+44>>2])break V;y=f+p|0;F= -g+p|0;f=0;_=0;G=0;V=0;g=0;$=8;A=k-j|0;aa:{if(A>>>0>>0)break aa;if(m)while(1){j=K[y+V|0];O=j&127;k=1;ba:{if(O>>>0<84)break ba;k=2;if(O>>>0<120)break ba;k=O>>>0<124?3:4}g=k+f|0;if(A>>>0>>0|g>>>0>>0)break aa;S=j<<24>>24;ca:{if(O>>>0<=9){Q=0;f=K[f+F|0]|O<<7&1792;x=S&1?f:0-f|0;break ca}if(O>>>0<=19){x=0;f=K[f+F|0]|(O<<7)+768&1792;Q=S&1?f:0-f|0;break ca}if(O>>>0<=83){k=K[f+F|0];j=O-20|0;f=k&15|j<<2&48;x=S&2?f+1|0:f^-1;f=j&48|k>>>4;Q=S&1?f+1|0:f^-1;break ca}if(O>>>0<=119){p=f+F|0;k=O-84|0;j=((k& -255)>>>0)/12|0;f=K[p|0]|j<<8;Q=S&1?f+1|0:f^-1;f=K[p+1|0]|k+(j<<2)<<6&768;x=S&2?f+1|0:f^-1;break ca}k=f+F|0;if(O>>>0<=123){j=K[k+1|0];f=K[k|0]<<4|j>>>4;Q=S&1?f:0-f|0;f=K[k+2|0]|j<<8&3840;x=S&2?f:0-f|0;break ca}f=K[k+1|0]|K[k|0]<<8;Q=S&1?f:0-f|0;f=K[k+3|0]|K[k+2|0]<<8;x=S&2?f:0-f|0}if((G^2147483647)<(Q|0)&(G|0)>0|(G|0)<0&(-2147483648-G|0)>(Q|0)|((_^2147483647)<(x|0)&(_|0)>0|(_|0)<0&(-2147483648-_|0)>(x|0)))break aa;f=P(V,12)+l|0;H[f+8|0]=(S|0)>=0;_=x+_|0;J[f+4>>2]=_;G=G+Q|0;J[f>>2]=G;f=g;V=V+1|0;if((V| -0)!=(m|0))continue;break}J[i+24>>2]=g;$=0}if($)break V;J[q+28>>2]=J[q+28>>2]+m;f=J[q+40>>2]+J[i+24>>2]|0;J[q+40>>2]=f;f=nd(o,f);J[i+44>>2]=f;if(f)break V;f=au(o,i+22|0);J[i+44>>2]=f;if(f)break V;J[q+40>>2]=J[o+8>>2];if(m>>>0>134217727)break V;m=0;f=(L[i+22>>1]+(P(E,5)+(U<<1)|0)|0)+12|0;da:{if(f>>>0<=d>>>0){f=d;break da}r=Sc(n,1,d,f,r,i+44|0);if(J[i+44>>2])break V;m=J[i+32>>2]}g=m+r|0;d=U<<8|U>>>8;H[g|0]=d;H[g+1|0]=d>>>8;g=J[i+32>>2]+2|0;J[i+32>>2]=g;ea:{if(X){d=nd(o,J[q+64>>2]);J[i+44>>2]=d;if(d)break V; -ra=i,sa=Wd(o,i+44|0),I[ra+30>>1]=sa;if(J[i+44>>2])break V;d=nd(o,J[q+64>>2]);J[i+44>>2]=d;if(d)break V;d=mg(o,g+r|0,8);J[i+44>>2]=d;if(d)break V;J[q+64>>2]=J[q+64>>2]+8;break ea}g=0;d=0;m=0;F=0;fa:{if(!E){j=0;break fa}A=1;m=J[l+4>>2];d=J[l>>2];if((E|0)==1){j=m;g=d;break fa}g=E-1|0;p=g&1;ga:{if((E|0)==2){g=d;j=m;break ga}k=g&-2;g=d;j=m;while(1){x=P(A,12)+l|0;X=J[x+16>>2];$=J[x+4>>2];j=(j|0)<($|0)?$:j;j=(j|0)<(X|0)?X:j;y=J[x+12>>2];x=J[x>>2];g=(g|0)<(x|0)?x:g;g=(g|0)<(y|0)?y:g;m=(m|0)>($|0)?$:m;m=(m| -0)>(X|0)?X:m;d=(d|0)>(x|0)?x:d;d=(d|0)>(y|0)?y:d;A=A+2|0;F=F+2|0;if((k|0)!=(F|0))continue;break}}if(!p)break fa;k=P(A,12)+l|0;p=J[k+4>>2];j=(j|0)<(p|0)?p:j;k=J[k>>2];g=(g|0)<(k|0)?k:g;m=(m|0)>(p|0)?p:m;d=(d|0)>(k|0)?k:d}H[r+9|0]=j;H[r+7|0]=g;H[r+5|0]=m;H[r+3|0]=d;H[r+8|0]=j>>>8;H[r+6|0]=g>>>8;H[r+4|0]=m>>>8;H[r+2|0]=d>>>8;I[i+30>>1]=d}J[i+32>>2]=10;g=r+10|0;m=-1;j=0;while(1){d=g;m=L[(j<<1)+C>>1]+m|0;if((m|0)>65535)break V;k=m<<8|(m&65280)>>>8;H[d|0]=k;H[d+1|0]=k>>>8;J[i+32>>2]=J[i+32>>2]+2;g=d+2| -0;j=j+1|0;if((U|0)!=(j|0))continue;break}j=L[i+22>>1];g=j<<8|j>>>8;H[d+2|0]=g;H[d+3|0]=g>>>8;g=J[i+32>>2]+2|0;J[i+32>>2]=g;d=nd(o,J[q+76>>2]);J[i+44>>2]=d;if(d)break V;d=mg(o,g+r|0,j);J[i+44>>2]=d;if(d)break V;d=L[i+22>>1];J[q+76>>2]=d+J[q+76>>2];J[i+32>>2]=d+J[i+32>>2];m=f;f=0;A=0;j=0;G=0;F=0;V=0;g=(d+(U<<1)|0)+12|0;ha:{ia:{ja:{if(E){y=r-1|0;x=255;while(1){k=P(V,12)+l|0;p=J[k+4>>2];d=K[k+8|0]!=0;k=J[k>>2];ka:{if((k|0)==(f|0)){d=d|16;break ka}f=k-f|0;if(f+255>>>0<=510){G=G+1|0;d=((f|0)>0?18:2)|d; -break ka}G=G+2|0}la:{if((p|0)==(A|0)){d=d|32;break la}f=p-A|0;if(f+255>>>0<=510){F=F+1|0;d=((f|0)>0?36:4)|d;break la}F=F+2|0}ma:{if(!((j&255)==255|(x&255)!=(d|0))){f=g+y|0;H[f|0]=K[f|0]|8;j=j+1|0;break ma}if(j&255){f=8;if(g>>>0>=m>>>0)break ha;H[g+r|0]=j;g=g+1|0}f=8;if(g>>>0>=m>>>0)break ha;H[g+r|0]=d;g=g+1|0;j=0}x=d;f=k;A=p;V=V+1|0;if((E|0)!=(V|0))continue;break}if(j&255){d=8;if(g>>>0>=m>>>0)break ia;H[g+r|0]=j;f=g+1|0}else f=g;d=8;g=F+G|0;if(g>>>0>>0)break ia;g=f+g|0;if(g>>>0>>0|g>>>0>m>>> -0)break ia;g=f+G|0;if(!E)break ja;j=0;d=0;x=0;while(1){p=d;A=P(x,12)+l|0;d=J[A+4>>2];k=j;j=J[A>>2];na:{if((k|0)==(j|0))break na;k=j-k|0;if(k+255>>>0<=510){A=k;k=k>>31;H[f+r|0]=(A^k)-k;f=f+1|0;break na}A=f+r|0;k=k<<8|(k&65280)>>>8;H[A|0]=k;H[A+1|0]=k>>>8;f=f+2|0}oa:{if((d|0)==(p|0))break oa;k=d-p|0;if(k+255>>>0<=510){p=k;k=k>>31;H[g+r|0]=(p^k)-k;g=g+1|0;break oa}p=g+r|0;k=k<<8|(k&65280)>>>8;H[p|0]=k;H[p+1|0]=k>>>8;g=g+2|0}x=x+1|0;if((E|0)!=(x|0))continue;break}break ja}d=8;if(g>>>0>m>>>0)break ia}J[i+ -32>>2]=g;d=0}f=d}if(f)break V;if(l)gc[J[n+8>>2]](n,l);if(C)gc[J[n+8>>2]](n,C);C=J[i+32>>2];d=m;break Z}C=0;l=0;if(X)break V}J[(Z<<2)+e>>2]=J[i+36>>2]-s;g=i+40|0;f=i+36|0;if(v4(g,N,f,r,C,n))break Y;k=bc-16|0;bc=k;y=J[g>>2];j=J[f>>2];H[k+10|0]=0;I[k+8>>1]=0;A=8;pa:{if(j>>>0>4294967292)break pa;l=j+3&-4;qa:{if((j|0)==(l|0)){l=j;break qa}J[k+12>>2]=0;if(l>>>0>31457280)break pa;m=J[N>>2];if(m>>>0>>0){y=Sc(n,1,m,l,y,k+12|0);if(J[k+12>>2])break pa;J[N>>2]=l}tc(j+y|0,k+8|0,l-j|0);if(J[k+12>>2])break pa}J[g>> -2]=y;J[f>>2]=l;A=0}bc=k+16|0;if(!A)break X}C=0;break W}ra=i,sa=J[i+4>>2]+CL(r,C)|0,J[ra+4>>2]=sa;if(U)I[J[B+8>>2]+(Z<<1)>>1]=L[i+30>>1];Z=Z+1|0;if((Z|0)!=(Y|0))continue;break}l=J[i+36>>2]}d=J[T>>2];f=l-J[d+28>>2]|0;J[d+8>>2]=f;J[J[na>>2]+28>>2]=l;J[(Y<<2)+e>>2]=f;C=0;d=0;m=0;y=0;x=bc-16|0;bc=x;J[x+8>>2]=0;k=J[i+36>>2];A=J[i+40>>2];E=t<<(ia?2:1);g=Sc(n,1,0,E,0,x+8|0);ra:{if(J[x+8>>2])break ra;sa:{if(!t)break sa;ta:{if(ia){d=g;if((t|0)!=1){j=t&-2;while(1){f=m<<2;l=J[f+e>>2];l=l<<24|(l&65280)<<8|(l>>> -8&65280|l>>>24);H[d|0]=l;H[d+1|0]=l>>>8;H[d+2|0]=l>>>16;H[d+3|0]=l>>>24;f=J[(f|4)+e>>2];f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;m=m+2|0;d=d+8|0;y=y+2|0;if((j|0)!=(y|0))continue;break}}if(!(t&1))break ta;f=J[(m<<2)+e>>2];f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;break ta}d=g;if(t>>>0>=4){j=t&-4;l=0;while(1){p=m<<2;f=J[p+e>>2];H[d+1|0]=f>>>1;H[d|0]=f>>>9;f=J[(p|4)+e>>2];H[d+3|0]=f>>>1; -H[d+2|0]=f>>>9;f=J[(p|8)+e>>2];H[d+5|0]=f>>>1;H[d+4|0]=f>>>9;f=J[(p|12)+e>>2];H[d+7|0]=f>>>1;H[d+6|0]=f>>>9;m=m+4|0;d=d+8|0;l=l+4|0;if((j|0)!=(l|0))continue;break}}j=t&3;if(!j)break ta;while(1){f=J[(m<<2)+e>>2];H[d+1|0]=f>>>1;H[d|0]=f>>>9;m=m+1|0;d=d+2|0;y=y+1|0;if((j|0)!=(y|0))continue;break}}d=0;f=E&-4;if(!f){m=0;break sa}m=0;while(1){m=(K[g+(d|3)|0]|(K[g+(d|1)|0]<<16|K[d+g|0]<<24|K[g+(d|2)|0]<<8))+m|0;d=d+4|0;if(f>>>0>d>>>0)continue;break}d=f}if((d|0)!=(E|0)){f=0;while(1){f=K[d+g|0]<<((d^-1)<< -3)|f;d=d+1|0;if(E>>>0>d>>>0)continue;break}m=f+m|0}J[i>>2]=m;J[x+12>>2]=0;ua:{f=k+E|0;if(f>>>0>31457280)break ua;d=J[N>>2];if(d>>>0>>0){A=Sc(n,1,d,f,A,x+12|0);if(J[x+12>>2])break ua;J[N>>2]=f}tc(k+A|0,g,E);if(J[x+12>>2])break ua;J[i+40>>2]=A;J[i+36>>2]=f;break ra}if(J[x+8>>2])break ra;J[x+8>>2]=8}if(g)gc[J[n+8>>2]](n,g);bc=x+16|0;if(!J[x+8>>2])break T}l=0}if(J[i+44>>2])break R;J[i+44>>2]=8;break R}J[i+4>>2]=J[i>>2];s=e;break O}e=ca;if(!A){l=0;k=bc-16|0;bc=k;d=8;va:{if(!R)break va;wa:{while(1){f= -J[(l<<2)+w>>2];if(J[f+4>>2]==1835104368)break wa;l=l+1|0;if((R|0)!=(l|0))continue;break}f=0}l=0;while(1){e=J[(l<<2)+w>>2];if(J[e+4>>2]!=1751474532){l=l+1|0;if((R|0)!=(l|0))continue;break va}break}if(!f|!J[B+16>>2])break va;d=nd(o,J[f+20>>2]);if(d)break va;d=bg(o,8);J[k+12>>2]=d;if(d)break va;f=k+12|0;m=Wd(o,f);d=J[k+12>>2];if(d)break va;I[B+4>>1]=m;d=nd(o,J[e+20>>2]);J[k+12>>2]=d;if(d)break va;d=bg(o,50);J[k+12>>2]=d;if(d)break va;e=Wd(o,f);d=J[k+12>>2];if(d)break va;ra=B,sa=Sc(n,2,0,m,0,f),J[ra+ -8>>2]=sa;d=J[k+12>>2];if(d)break va;d=0;if(!m)break va;d=e&65535;j=d?4:2;l=J[J[B+16>>2]+20>>2];f=0;if(!d)while(1){d=nd(o,l);J[k+12>>2]=d;if(d)break va;e=Wd(o,k+12|0);d=J[k+12>>2];if(d)break va;d=nd(o,J[J[B+12>>2]+20>>2]+(e<<1)|0);J[k+12>>2]=d;if(d)break va;d=bg(o,2);J[k+12>>2]=d;if(d)break va;d=Wd(o,k+12|0);I[J[B+8>>2]+(f<<1)>>1]=d;d=J[k+12>>2];if(d)break va;l=j+l|0;d=0;f=f+1|0;if((m|0)!=(f|0))continue;break va}while(1){d=nd(o,l);J[k+12>>2]=d;if(d)break va;g=k+12|0;e=Kf(o,g);d=J[k+12>>2];if(d)break va; -d=nd(o,e+J[J[B+12>>2]+20>>2]|0);J[k+12>>2]=d;if(d)break va;d=bg(o,2);J[k+12>>2]=d;if(d)break va;d=Wd(o,g);I[J[B+8>>2]+(f<<1)>>1]=d;d=J[k+12>>2];if(d)break va;l=j+l|0;d=0;f=f+1|0;if((m|0)!=(f|0))continue;break}}bc=k+16|0;if(d)break M;e=L[B+6>>1]}p=L[B+4>>1];e=e&65535;k=J[B+8>>2];l=0;m=0;r=0;t=bc-16|0;bc=t;J[t+12>>2]=0;J[t+8>>2]=J[i+12>>2];J[t+4>>2]=J[i+8>>2];d=t+12|0;f=Gg(o,d);xa:{ya:{za:{if(!(f&3)|(J[t+12>>2]|f>>>0>3))break za;if(p>>>0<=(e-1&65535)>>>0)break ya;r=Sc(n,2,0,e,0,d);if(J[t+12>>2])break za; -m=Sc(n,2,0,p,0,d);if(J[t+12>>2])break ya;g=f&2;f=f&1;y=0;while(1){d=Wd(o,t+12|0);if(J[t+12>>2])break ya;I[(y<<1)+r>>1]=d;y=y+1|0;if((e|0)!=(y|0))continue;break}Aa:{if(!f){while(1){d=Wd(o,t+12|0);if(J[t+12>>2])break za;I[(l<<1)+m>>1]=d;l=l+1|0;if((e|0)!=(l|0))continue;break}break Aa}y=0;if(e-1>>>0>=3){f=e&65532;Q=0;while(1){j=l<<1;I[j+m>>1]=L[j+k>>1];d=j|2;I[d+m>>1]=L[d+k>>1];d=j|4;I[d+m>>1]=L[d+k>>1];d=j|6;I[d+m>>1]=L[d+k>>1];l=l+4|0;Q=Q+4|0;if((f|0)!=(Q|0))continue;break}}f=e&3;if(!f)break Aa;while(1){d= -l<<1;I[d+m>>1]=L[d+k>>1];l=l+1|0;y=y+1|0;if((f|0)!=(y|0))continue;break}}Ba:{if(e>>>0>=p>>>0)break Ba;if(!g){l=e;while(1){d=Wd(o,t+12|0);if(J[t+12>>2])break za;I[(l<<1)+m>>1]=d;l=l+1|0;if((p|0)!=(l|0))continue;break}break Ba}j=p+(e^-1)|0;g=p-e&3;Ca:{if(!g){d=e;break Ca}l=0;d=e;while(1){f=d<<1;I[f+m>>1]=L[f+k>>1];d=d+1|0;l=l+1|0;if((g|0)!=(l|0))continue;break}}if(j>>>0<3)break Ba;while(1){g=d<<1;I[g+m>>1]=L[g+k>>1];f=g+2|0;I[f+m>>1]=L[f+k>>1];f=g+4|0;I[f+m>>1]=L[f+k>>1];f=g+6|0;I[f+m>>1]=L[f+k>>1]; -d=d+4|0;if((p|0)!=(d|0))continue;break}}y=0;j=e+p<<1;l=Sc(n,1,0,j,0,t+12|0);if(J[t+12>>2])break ya;g=p>>>0<=1?1:p;d=l;while(1){if(e>>>0>y>>>0){f=(y<<1)+r|0;H[d|0]=K[f+1|0];H[d+1|0]=K[f|0];d=d+2|0}f=(y<<1)+m|0;H[d|0]=K[f+1|0];H[d+1|0]=K[f|0];d=d+2|0;y=y+1|0;if((g|0)!=(y|0))continue;break}ra=i,sa=CL(l,j),J[ra+4>>2]=sa;if(v4(t+8|0,N,t+4|0,l,j,n))break ya;J[i+12>>2]=J[t+8>>2];J[i+8>>2]=J[t+4>>2];if(r)gc[J[n+8>>2]](n,r);if(m)gc[J[n+8>>2]](n,m);if(l)gc[J[n+8>>2]](n,l);d=J[t+12>>2];break xa}l=0}if(r)gc[J[n+ -8>>2]](n,r);if(m)gc[J[n+8>>2]](n,m);if(l)gc[J[n+8>>2]](n,l);d=J[t+12>>2];d=d?d:8}bc=t+16|0;if(d)break M;break O}f=J[na>>2];d=J[i+36>>2];J[f+8>>2]=d-J[f+28>>2];J[i+8>>2]=d;J[i+12>>2]=J[i+40>>2];if(q)gc[J[n+8>>2]](n,q);if(e)gc[J[n+8>>2]](n,e);l=0;break Q}l=0;r=0;C=0}J[i+12>>2]=J[i+40>>2];if(q)gc[J[n+8>>2]](n,q);if(e)gc[J[n+8>>2]](n,e)}if(C)gc[J[n+8>>2]](n,C);if(r)gc[J[n+8>>2]](n,r);if(l)gc[J[n+8>>2]](n,l);A=1;if(!J[i+44>>2])break O;break M}if((W|0)!=1751474532)break P;if(j>>>0<12)break M;e=g+qa|0;H[e| -0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0}g=g+z|0;m=0;e=0;C=0;r=j&-4;if(r)while(1){C=(K[g+(e|3)|0]|(K[g+(e|1)|0]<<16|K[e+g|0]<<24|K[g+(e|2)|0]<<8))+C|0;e=e+4|0;if(r>>>0>e>>>0)continue;break}if((j|0)!=(r|0)){while(1){m=K[g+r|0]<<((r^-1)<<3)|m;r=r+1|0;if(j>>>0>r>>>0)continue;break}C=m+C|0}J[i+4>>2]=C;J[i+44>>2]=0;f=j+s|0;if(f>>>0>31457280)break M;e=J[N>>2];if(e>>>0>>0){d=Sc(n,1,e,f,d,i+44|0);if(J[i+44>>2])break M;J[N>>2]=f}tc(d+s|0,g,j);J[i+12>>2]=d;J[i+8>>2]=f;if(J[i+44>>2])break M}p=J[i+4>>2];H[u+ -15|0]=aa;H[u+11|0]=s;H[u+7|0]=p;H[u+3|0]=W;H[u+14|0]=aa>>>8;H[u+13|0]=aa>>>16;H[u+12|0]=aa>>>24;H[u+10|0]=s>>>8;H[u+9|0]=s>>>16;H[u+8|0]=s>>>24;H[u+6|0]=p>>>8;H[u+5|0]=p>>>16;H[u+4|0]=p>>>24;H[u+2|0]=W>>>8;H[u+1|0]=W>>>16;H[u|0]=W>>>24;J[i+44>>2]=0;e=J[i+12>>2];f=ha+16|0;Da:{if(f>>>0>31457280){d=e;break Da}d=J[N>>2];Ea:{if(d>>>0>=f>>>0){d=e;break Ea}d=Sc(n,1,d,f,e,i+44|0);if(J[i+44>>2]){d=e;break Da}J[N>>2]=f}g=K[u+4|0]|K[u+5|0]<<8|(K[u+6|0]<<16|K[u+7|0]<<24);j=d+ha|0;e=K[u|0]|K[u+1|0]<<8|(K[u+2| -0]<<16|K[u+3|0]<<24);H[j|0]=e;H[j+1|0]=e>>>8;H[j+2|0]=e>>>16;H[j+3|0]=e>>>24;H[j+4|0]=g;H[j+5|0]=g>>>8;H[j+6|0]=g>>>16;H[j+7|0]=g>>>24;g=K[u+12|0]|K[u+13|0]<<8|(K[u+14|0]<<16|K[u+15|0]<<24);e=K[u+8|0]|K[u+9|0]<<8|(K[u+10|0]<<16|K[u+11|0]<<24);H[j+8|0]=e;H[j+9|0]=e>>>8;H[j+10|0]=e>>>16;H[j+11|0]=e>>>24;H[j+12|0]=g;H[j+13|0]=g>>>8;H[j+14|0]=g>>>16;H[j+15|0]=g>>>24;J[i+12>>2]=d;ha=f}k=K[u+12|0]|K[u+13|0]<<8|(K[u+14|0]<<16|K[u+15|0]<<24);l=K[u+8|0]|K[u+9|0]<<8|(K[u+10|0]<<16|K[u+11|0]<<24);m=K[u+4|0]| -K[u+5|0]<<8|(K[u+6|0]<<16|K[u+7|0]<<24);j=K[u|0]|K[u+1|0]<<8|(K[u+2|0]<<16|K[u+3|0]<<24);f=J[i+8>>2];H[i+42|0]=0;I[i+40>>1]=0;if(f>>>0>4294967292)break M;e=f+3&-4;Fa:{if((f|0)==(e|0)){e=f;break Fa}J[i+44>>2]=0;if(e>>>0>31457280)break M;g=J[N>>2];if(g>>>0>>0){d=Sc(n,1,g,e,d,i+44|0);if(J[i+44>>2])break M;J[N>>2]=e}tc(d+f|0,i+40|0,e-f|0);if(J[i+44>>2])break M}J[i+12>>2]=d;J[i+8>>2]=e;if(s+aa>>>0>e>>>0)break M;ga=p+ga+((((m<<24|(m&65280)<<8|(m>>>8&65280|m>>>24))+(j<<24|(j&65280)<<8|(j>>>8&65280|j>>> -24))|0)+(l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24))|0)+(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24)))|0;s=e;da=da+1|0;if((da|0)!=(R|0))continue;break}if(!R)break N;e=0;while(1){f=J[(e<<2)+w>>2];if(J[f+4>>2]!=1751474532){e=e+1|0;if((R|0)!=(e|0))continue;break N}break}J[B+20>>2]=f;if(M[f+8>>2]<12)break M;f=J[f+28>>2]+d|0;e=-1313820742-ga|0;e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[f+8|0]=e;H[f+9|0]=e>>>8;H[f+10|0]=e>>>16;H[f+11|0]=e>>>24;J[h+100>>2]=J[i+8>>2];J[h+12>>2]=d;break J}J[B+20>>2]=0}l=J[i+16>> -2]}if(l)break K;J[i+16>>2]=8}J[h+12>>2]=J[i+12>>2]}if(u)gc[J[n+8>>2]](n,u);Ga:{if(!o)break Ga;d=J[o+24>>2];if(!d)break Ga;gc[d|0](o)}if(o)gc[J[n+8>>2]](n,o);e=J[i+16>>2]}bc=i+48|0;J[h+108>>2]=e;if(e)break f;f=J[h+12>>2];d=J[h+100>>2];e=J[h+8>>2];if(d>>>0>>0){f=Sc(n,1,e,d,f,la);J[h+12>>2]=f;if(J[h+108>>2])break f;d=J[h+100>>2]}J[v+32>>2]=0;J[v+8>>2]=0;J[v+4>>2]=d;J[v>>2]=f;J[v+20>>2]=0;J[v+24>>2]=0;a=J[a+28>>2];J[v+24>>2]=1709;J[v+28>>2]=a;f6(J[b+104>>2],J[b+8>>2]>>>10&1);J[b+104>>2]=v;J[b+8>>2]= -J[b+8>>2]&-1025;c=ba;break f}f=10;if(d>>>0>J[a+4>>2]>>>5>>>0)break a;ra=b,sa=Sc(ja,4,0,d,0,h),J[ra+144>>2]=sa;f=J[h>>2];if(f)break a;f=Ue(a,J[b+140>>2]<<2);J[h>>2]=f;if(f)break a;if(J[b+140>>2]>0){f=0;while(1){d=qh(a);J[J[b+144>>2]+(f<<2)>>2]=d;f=f+1|0;if((f|0)>2])continue;break}}ne(a);f=J[h>>2];J[h+40>>2]=f;if(!f)break j;break a}J[b+136>>2]=65536;J[b+140>>2]=1;a=Zd(ja,4,h);J[b+144>>2]=a;f=J[h>>2];if(f)break a;J[a>>2]=v;J[h+40>>2]=0}k=J[b+104>>2];d=J[b+144>>2];a=c>>31;g=(a^c)-a|0;a=(g&65535)+ -a|0;if((a|0)>=J[b+140>>2]){f=6;if((c|0)>=0)break a;a=0}f=nd(k,J[d+(a<<2)>>2]);J[h+40>>2]=f;if(f)break a;f=gc[J[D+88>>2]](b,k)|0;J[h+40>>2]=f;if(f)break a;i=J[b+100>>2];Ha:{Ia:{if(gc[J[b+516>>2]](b,1719034226,k,h+16|0)|M[h+16>>2]<20)break Ia;d=h+40|0;D=Kf(k,d);if(J[h+40>>2])break Ia;v=Wd(k,d);if(J[h+40>>2])break Ia;a=bg(k,2);J[h+40>>2]=a;if(a)break Ia;f=Wd(k,d);if(J[h+40>>2])break Ia;s=Wd(k,d);if(J[h+40>>2])break Ia;d=Wd(k,d);if(J[h+40>>2])break Ia;l=Wd(k,h+40|0);if(!J[h+40>>2])break Ha}D=0;v=0;f= -0;s=0;d=0;l=0}w=0;a=0;Ja:{if((D|0)!=65536|(s|0)!=20|(!f|f>>>0>16382))break Ja;e=f<<2;Ka:{if((e+4|0)!=(l|0)){if((e+6|0)!=(l|0))break Ja;if(d>>>0<=32511)break Ka;break Ja}if(d>>>0>32511)break Ja}if(M[h+16>>2]<(P(f,20)+v|0)+P(d,l)>>>0)break Ja;J[b+740>>2]=J[b+740>>2]|1;a=d}La:{if(!(H[b+740|0]&1)){e=0;break La}m=f<<2;d=h+40|0;e=Zd(i,m,d);if(J[h+40>>2])break La;w=Zd(i,m,d);if(J[h+40>>2])break La;j=(J[k+8>>2]+v|0)-16|0;if(f){D=j+8|0;v=0;d=e;while(1){ra=h,sa=TC(k,D,d,4),J[ra+40>>2]=sa;d=d+4|0;D=s+D|0;v= -v+1|0;if((v|0)!=(f|0))continue;break}}Ma:{if(!a){D=0;break Ma}f=(j+P(f,s)|0)+4|0;D=0;while(1){ra=h,sa=TC(k,f,w,m),J[ra+40>>2]=sa;if(!Wc(e,w,m))break Ma;f=f+l|0;D=D+1|0;if((D|0)!=(a|0))continue;break}D=a}a=((a|0)==(D|0))+a|0}if(e)gc[J[i+8>>2]](i,e);if(w)gc[J[i+8>>2]](i,w);d=g>>>16|0;Na:{if(!(gc[J[b+516>>2]](b,1735162214,k,0)|0))break Na;if(!(gc[J[b+516>>2]](b,1128678962,k,0)|0))break Na;a=gc[J[b+516>>2]](b,1128678944,k,0)|0?a:0}Oa:{if(d>>>0>(a&65535)>>>0){if((c|0)>=0)break Oa;a=0}J[b+12>>2]=a<<16; -J[b+4>>2]=c;J[b>>2]=J[b+140>>2];if(fa)J[b>>2]=fa;f=J[h+40>>2];break a}f=6;break a}J[h+108>>2]=8;break f}J[h+108>>2]=8;break f}J[h+108>>2]=8}if(ea)gc[J[n+8>>2]](n,ea);if(w)gc[J[n+8>>2]](n,w);if(z)gc[J[n+8>>2]](n,z);a=J[h+24>>2];if(a)gc[J[n+8>>2]](n,a);a=J[h+104>>2];if(a){f=0;if(L[h+96>>1]){while(1){d=J[a+8>>2];if(d)gc[J[n+8>>2]](n,d);J[a+8>>2]=0;a=a+12|0;f=f+1|0;if(f>>>0>1])continue;break}a=J[h+104>>2]}if(a)gc[J[n+8>>2]](n,a);J[h+104>>2]=0}if(!J[h+108>>2]){J[h>>2]=0;break b}a=J[h+12>>2];if(a)gc[J[n+ -8>>2]](n,a);if(v){Pa:{if(!v)break Pa;a=J[v+24>>2];if(!a)break Pa;gc[a|0](v)}if(v)gc[J[n+8>>2]](n,v)}f=J[h+108>>2];break c}if(!(J[h+56>>2]==(d|0)&(e|0)==(w|0))){J[h+16>>2]=8;break d}z=Sc(t,1,g,d,z,h+16|0);if(J[h+16>>2])break d;if(L[h+52>>1]){d=z+12|0;e=0;while(1){p=P(e,24)+v|0;H[d|0]=K[p+3|0];H[d+1|0]=L[p+2>>1];H[d+2|0]=J[p>>2]>>>8;H[d+3|0]=J[p>>2];H[d+4|0]=K[p+19|0];H[d+5|0]=L[p+18>>1];H[d+6|0]=J[p+16>>2]>>>8;H[d+7|0]=J[p+16>>2];H[d+8|0]=K[p+23|0];H[d+9|0]=L[p+22>>1];H[d+10|0]=J[p+20>>2]>>>8;H[d+ -11|0]=J[p+20>>2];H[d+12|0]=K[p+15|0];H[d+13|0]=L[p+14>>1];H[d+14|0]=J[p+12>>2]>>>8;H[d+15|0]=J[p+12>>2];g=nd(a,J[p+4>>2]);J[h+16>>2]=g;if(g)break d;g=Ue(a,J[p+8>>2]);J[h+16>>2]=g;if(g)break d;Qa:{s=J[p+8>>2];g=J[p+12>>2];if((s|0)==(g|0)){tc(J[p+20>>2]+z|0,J[a+32>>2],s);break Qa}J[h+108>>2]=g;i=h+108|0;j=J[a+32>>2];k=bc+-64|0;bc=k;m=6;g=J[p+20>>2]+z|0;Ra:{if(!i|(!g|!t))break Ra;J[k+20>>2]=g;J[k+12>>2]=s;J[k+8>>2]=j;g=J[i>>2];J[k+48>>2]=t;J[k+44>>2]=1657;J[k+40>>2]=1658;J[k+24>>2]=g;g=k+8|0;if(dK(g, -47,239657))break Ra;j=zk(g,4);Sa:{if((j|0)!=1){kl(g);if(j)break Sa;m=10;break Ra}J[i>>2]=J[k+28>>2];j=kl(k+8|0)}m=0;g=j+5|0;if(g>>>0>2)break Ra;m=J[(g<<2)+259976>>2]}bc=k- -64|0;J[h+16>>2]=m;if(!m){if(J[h+108>>2]==J[p+12>>2])break Qa;J[h+16>>2]=8}ne(a);break d}ne(a);m=J[p+12>>2];j=J[p+20>>2];g=m+j|0;if(g&3)wc(g+z|0,0,((m^-1)-j&3)+1|0);d=d+16|0;e=e+1|0;if(e>>>0>1])continue;break}}d=J[h+56>>2];J[l+32>>2]=0;J[l+8>>2]=0;J[l+4>>2]=d;J[l>>2]=z;J[l+20>>2]=0;J[l+24>>2]=0;a=J[a+28>>2];J[l+24>>2]=1710; -J[l+28>>2]=a;f6(J[b+104>>2],J[b+8>>2]>>>10&1);J[b+104>>2]=l;J[b+8>>2]=J[b+8>>2]&-1025}if(v)gc[J[t+8>>2]](t,v);if(f)gc[J[t+8>>2]](t,f);if(!J[h+16>>2]){J[h>>2]=0;break b}if(z)gc[J[t+8>>2]](t,z);Ta:{if(!l)break Ta;a=J[l+24>>2];if(!a)break Ta;gc[a|0](l)}if(l)gc[J[t+8>>2]](t,l);f=J[h+16>>2]}J[h>>2]=f;if(f)break a}a=J[b+104>>2];v=J[a+8>>2];d=Kf(a,h);f=J[h>>2];if(!f)continue;break}}bc=h+112|0;return f|0}function xla(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;J[695492]=0;b=$(4,20)|0;c=J[695492]; -J[695492]=0;if((c|0)!=1)a:{I[b+8>>1]=0;J[b+4>>2]=a;J[b>>2]=a;J[b+12>>2]=0;J[b+16>>2]=127;J[a+8>>2]=1;J[a>>2]=b;J[a+4>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=256;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=128;J[c+16>>2]=255;J[b+4>>2]=c;J[a+8>>2]=2;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=512;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=256;J[b+16>>2]=383;J[c+4>>2]=b;J[a+8>>2]=3;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break a;I[c+8>>1]=768;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=384;J[c+16>>2]=591;J[b+4>>2]=c;J[a+8>>2]=4;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1024;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=592;J[b+16>>2]=687;J[c+4>>2]=b;J[a+8>>2]=5;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1024;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=7424;J[c+16>>2]=7551;J[b+4>>2]=c;J[a+8>>2]=6;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break a;I[b+8>>1]=1024;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=7552;J[b+16>>2]=7615;J[c+4>>2]=b;J[a+8>>2]=7;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1280;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=688;J[c+16>>2]=767;J[b+4>>2]=c;J[a+8>>2]=8;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1280;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=42752;J[b+16>>2]=42783;J[c+4>>2]=b;J[a+8>>2]=9;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1536;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=768;J[c+16>>2]=879;J[b+4>>2]=c;J[a+8>>2]=10;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1536;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=7616;J[b+16>>2]=7679;J[c+4>>2]=b;J[a+8>>2]=11;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1792;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=880;J[c+16>>2]=1023;J[b+4>>2]=c;J[a+8>>2]=12;J[a>>2]=c;J[695492]=0;b=$(4,20)|0; -d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2048;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11392;J[b+16>>2]=11519;J[c+4>>2]=b;J[a+8>>2]=13;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2304;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1024;J[c+16>>2]=1279;J[b+4>>2]=c;J[a+8>>2]=14;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2304;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1280;J[b+16>>2]=1327;J[c+4>>2]=b;J[a+8>>2]=15;J[a>>2]=b;J[695492]= -0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2304;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=11744;J[c+16>>2]=11775;J[b+4>>2]=c;J[a+8>>2]=16;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2304;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=42560;J[b+16>>2]=42655;J[c+4>>2]=b;J[a+8>>2]=17;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2560;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1328;J[c+16>>2]=1423;J[b+4>>2]=c;J[a+8>>2]=18;J[a>> -2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2816;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1424;J[b+16>>2]=1535;J[c+4>>2]=b;J[a+8>>2]=19;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=3072;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=42240;J[c+16>>2]=42559;J[b+4>>2]=c;J[a+8>>2]=20;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3328;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1536;J[b+16>>2]=1791;J[c+4>>2]=b;J[a+ -8>>2]=21;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=3328;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1872;J[c+16>>2]=1919;J[b+4>>2]=c;J[a+8>>2]=22;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3584;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1984;J[b+16>>2]=2047;J[c+4>>2]=b;J[a+8>>2]=23;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=3840;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=2304;J[c+16>>2]=2431;J[b+ -4>>2]=c;J[a+8>>2]=24;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4096;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=2432;J[b+16>>2]=2559;J[c+4>>2]=b;J[a+8>>2]=25;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4352;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=2560;J[c+16>>2]=2687;J[b+4>>2]=c;J[a+8>>2]=26;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4608;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=2688;J[b+16>> -2]=2815;J[c+4>>2]=b;J[a+8>>2]=27;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4864;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=2816;J[c+16>>2]=2943;J[b+4>>2]=c;J[a+8>>2]=28;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5120;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=2944;J[b+16>>2]=3071;J[c+4>>2]=b;J[a+8>>2]=29;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5376;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]= -3072;J[c+16>>2]=3199;J[b+4>>2]=c;J[a+8>>2]=30;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5632;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=3200;J[b+16>>2]=3327;J[c+4>>2]=b;J[a+8>>2]=31;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5888;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=3328;J[c+16>>2]=3455;J[b+4>>2]=c;J[a+8>>2]=32;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6144;J[b+4>>2]=a;J[b>>2]= -c;J[b+12>>2]=3584;J[b+16>>2]=3711;J[c+4>>2]=b;J[a+8>>2]=33;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6400;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=3712;J[c+16>>2]=3839;J[b+4>>2]=c;J[a+8>>2]=34;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6656;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=4256;J[b+16>>2]=4351;J[c+4>>2]=b;J[a+8>>2]=35;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6656;J[c+4>> -2]=a;J[c>>2]=b;J[c+12>>2]=11520;J[c+16>>2]=11567;J[b+4>>2]=c;J[a+8>>2]=36;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6912;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=6912;J[b+16>>2]=7039;J[c+4>>2]=b;J[a+8>>2]=37;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=7168;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=4352;J[c+16>>2]=4607;J[b+4>>2]=c;J[a+8>>2]=38;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>> -1]=7424;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=7680;J[b+16>>2]=7935;J[c+4>>2]=b;J[a+8>>2]=39;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=7424;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=11360;J[c+16>>2]=11391;J[b+4>>2]=c;J[a+8>>2]=40;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=7424;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=42784;J[b+16>>2]=43007;J[c+4>>2]=b;J[a+8>>2]=41;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)== -1)break a;I[c+8>>1]=7680;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=7936;J[c+16>>2]=8191;J[b+4>>2]=c;J[a+8>>2]=42;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=7936;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=8192;J[b+16>>2]=8303;J[c+4>>2]=b;J[a+8>>2]=43;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=7936;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=11776;J[c+16>>2]=11903;J[b+4>>2]=c;J[a+8>>2]=44;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break a;I[b+8>>1]=1;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=8304;J[b+16>>2]=8351;J[c+4>>2]=b;J[a+8>>2]=45;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=257;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8352;J[c+16>>2]=8399;J[b+4>>2]=c;J[a+8>>2]=46;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=513;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=8400;J[b+16>>2]=8447;J[c+4>>2]=b;J[a+8>>2]=47;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=769;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8448;J[c+16>>2]=8527;J[b+4>>2]=c;J[a+8>>2]=48;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1025;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=8528;J[b+16>>2]=8591;J[c+4>>2]=b;J[a+8>>2]=49;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1281;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8592;J[c+16>>2]=8703;J[b+4>>2]=c;J[a+8>>2]=50;J[a>>2]=c;J[695492]=0;b=$(4,20)| -0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1281;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=10224;J[b+16>>2]=10239;J[c+4>>2]=b;J[a+8>>2]=51;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1281;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=10496;J[c+16>>2]=10623;J[b+4>>2]=c;J[a+8>>2]=52;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1281;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11008;J[b+16>>2]=11263;J[c+4>>2]=b;J[a+8>>2]=53;J[a>>2]=b;J[695492]= -0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1537;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8704;J[c+16>>2]=8959;J[b+4>>2]=c;J[a+8>>2]=54;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1537;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=10752;J[b+16>>2]=11007;J[c+4>>2]=b;J[a+8>>2]=55;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1537;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=10176;J[c+16>>2]=10223;J[b+4>>2]=c;J[a+8>>2]=56;J[a>> -2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1537;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=10624;J[b+16>>2]=10751;J[c+4>>2]=b;J[a+8>>2]=57;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1793;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8960;J[c+16>>2]=9215;J[b+4>>2]=c;J[a+8>>2]=58;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2049;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=9216;J[b+16>>2]=9279;J[c+4>>2]=b;J[a+ -8>>2]=59;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2305;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=9280;J[c+16>>2]=9311;J[b+4>>2]=c;J[a+8>>2]=60;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2561;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=9312;J[b+16>>2]=9471;J[c+4>>2]=b;J[a+8>>2]=61;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2817;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=9472;J[c+16>>2]=9599;J[b+ -4>>2]=c;J[a+8>>2]=62;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3073;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=9600;J[b+16>>2]=9631;J[c+4>>2]=b;J[a+8>>2]=63;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=3329;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=9632;J[c+16>>2]=9727;J[b+4>>2]=c;J[a+8>>2]=64;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3585;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=9728;J[b+16>> -2]=9983;J[c+4>>2]=b;J[a+8>>2]=65;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=3841;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=9984;J[c+16>>2]=10175;J[b+4>>2]=c;J[a+8>>2]=66;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4097;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12288;J[b+16>>2]=12351;J[c+4>>2]=b;J[a+8>>2]=67;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4353;J[c+4>>2]=a;J[c>>2]=b;J[c+12>> -2]=12352;J[c+16>>2]=12447;J[b+4>>2]=c;J[a+8>>2]=68;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4609;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12448;J[b+16>>2]=12543;J[c+4>>2]=b;J[a+8>>2]=69;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4609;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12784;J[c+16>>2]=12799;J[b+4>>2]=c;J[a+8>>2]=70;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4865;J[b+4>>2]= -a;J[b>>2]=c;J[b+12>>2]=12544;J[b+16>>2]=12591;J[c+4>>2]=b;J[a+8>>2]=71;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4865;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12704;J[c+16>>2]=12735;J[b+4>>2]=c;J[a+8>>2]=72;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5121;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12592;J[b+16>>2]=12687;J[c+4>>2]=b;J[a+8>>2]=73;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+ -8>>1]=5377;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=43072;J[c+16>>2]=43135;J[b+4>>2]=c;J[a+8>>2]=74;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5633;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12800;J[b+16>>2]=13055;J[c+4>>2]=b;J[a+8>>2]=75;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5889;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=13056;J[c+16>>2]=13311;J[b+4>>2]=c;J[a+8>>2]=76;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d| -0)==1)break a;I[b+8>>1]=6145;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=44032;J[b+16>>2]=55215;J[c+4>>2]=b;J[a+8>>2]=77;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6401;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65536;J[c+16>>2]=1114111;J[b+4>>2]=c;J[a+8>>2]=78;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6657;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=67840;J[b+16>>2]=67871;J[c+4>>2]=b;J[a+8>>2]=79;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6913;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=19968;J[c+16>>2]=40959;J[b+4>>2]=c;J[a+8>>2]=80;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6913;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11904;J[b+16>>2]=12031;J[c+4>>2]=b;J[a+8>>2]=81;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6913;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12032;J[c+16>>2]=12255;J[b+4>>2]=c;J[a+8>>2]=82;J[a>>2]=c;J[695492]=0;b=$(4, -20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6913;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12272;J[b+16>>2]=12287;J[c+4>>2]=b;J[a+8>>2]=83;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6913;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=13312;J[c+16>>2]=19903;J[b+4>>2]=c;J[a+8>>2]=84;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6913;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12688;J[b+16>>2]=12703;J[c+4>>2]=b;J[a+8>>2]=85;J[a>>2]= -b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6913;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=131072;J[c+16>>2]=173791;J[b+4>>2]=c;J[a+8>>2]=86;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=7169;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=57344;J[b+16>>2]=63743;J[c+4>>2]=b;J[a+8>>2]=87;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=7425;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12736;J[c+16>>2]=12783;J[b+4>>2]= -c;J[a+8>>2]=88;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=7425;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=63744;J[b+16>>2]=64255;J[c+4>>2]=b;J[a+8>>2]=89;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=7425;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=194560;J[c+16>>2]=195103;J[b+4>>2]=c;J[a+8>>2]=90;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=7681;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=64256;J[b+ -16>>2]=64335;J[c+4>>2]=b;J[a+8>>2]=91;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=7937;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=64336;J[c+16>>2]=65023;J[b+4>>2]=c;J[a+8>>2]=92;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65056;J[b+16>>2]=65071;J[c+4>>2]=b;J[a+8>>2]=93;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=258;J[c+4>>2]=a;J[c>>2]=b;J[c+ -12>>2]=65040;J[c+16>>2]=65055;J[b+4>>2]=c;J[a+8>>2]=94;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=258;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65072;J[b+16>>2]=65103;J[c+4>>2]=b;J[a+8>>2]=95;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=514;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65104;J[c+16>>2]=65135;J[b+4>>2]=c;J[a+8>>2]=96;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=770;J[b+4>>2]= -a;J[b>>2]=c;J[b+12>>2]=65136;J[b+16>>2]=65279;J[c+4>>2]=b;J[a+8>>2]=97;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1026;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65280;J[c+16>>2]=65519;J[b+4>>2]=c;J[a+8>>2]=98;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1282;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65520;J[b+16>>2]=65535;J[c+4>>2]=b;J[a+8>>2]=99;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+ -8>>1]=1538;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=3840;J[c+16>>2]=4095;J[b+4>>2]=c;J[a+8>>2]=100;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1794;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1792;J[b+16>>2]=1871;J[c+4>>2]=b;J[a+8>>2]=101;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2050;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1920;J[c+16>>2]=1983;J[b+4>>2]=c;J[a+8>>2]=102;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d| -0)==1)break a;I[b+8>>1]=2306;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=3456;J[b+16>>2]=3583;J[c+4>>2]=b;J[a+8>>2]=103;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2562;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=4096;J[c+16>>2]=4255;J[b+4>>2]=c;J[a+8>>2]=104;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2818;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=4608;J[b+16>>2]=4991;J[c+4>>2]=b;J[a+8>>2]=105;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2818;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=4992;J[c+16>>2]=5023;J[b+4>>2]=c;J[a+8>>2]=106;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2818;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11648;J[b+16>>2]=11743;J[c+4>>2]=b;J[a+8>>2]=107;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=3074;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=5024;J[c+16>>2]=5119;J[b+4>>2]=c;J[a+8>>2]=108;J[a>>2]=c;J[695492]=0;b=$(4, -20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3330;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=5120;J[b+16>>2]=5759;J[c+4>>2]=b;J[a+8>>2]=109;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=3586;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=5760;J[c+16>>2]=5791;J[b+4>>2]=c;J[a+8>>2]=110;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3842;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=5792;J[b+16>>2]=5887;J[c+4>>2]=b;J[a+8>>2]=111;J[a>>2]=b; -J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4098;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=6016;J[c+16>>2]=6143;J[b+4>>2]=c;J[a+8>>2]=112;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4098;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=6624;J[b+16>>2]=6655;J[c+4>>2]=b;J[a+8>>2]=113;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4354;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=6144;J[c+16>>2]=6319;J[b+4>>2]=c;J[a+8>> -2]=114;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4610;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=10240;J[b+16>>2]=10495;J[c+4>>2]=b;J[a+8>>2]=115;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4866;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=40960;J[c+16>>2]=42127;J[b+4>>2]=c;J[a+8>>2]=116;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4866;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=42128;J[b+16>>2]=42191; -J[c+4>>2]=b;J[a+8>>2]=117;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5122;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=5888;J[c+16>>2]=5919;J[b+4>>2]=c;J[a+8>>2]=118;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5122;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=5920;J[b+16>>2]=5951;J[c+4>>2]=b;J[a+8>>2]=119;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5122;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=5952; -J[c+16>>2]=5983;J[b+4>>2]=c;J[a+8>>2]=120;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5122;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=5984;J[b+16>>2]=6015;J[c+4>>2]=b;J[a+8>>2]=121;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5378;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66304;J[c+16>>2]=66351;J[b+4>>2]=c;J[a+8>>2]=122;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5634;J[b+4>>2]=a;J[b>>2]= -c;J[b+12>>2]=66352;J[b+16>>2]=66383;J[c+4>>2]=b;J[a+8>>2]=123;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5890;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66560;J[c+16>>2]=66639;J[b+4>>2]=c;J[a+8>>2]=124;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6146;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=118784;J[b+16>>2]=119039;J[c+4>>2]=b;J[a+8>>2]=125;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]= -6146;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=119040;J[c+16>>2]=119295;J[b+4>>2]=c;J[a+8>>2]=126;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6146;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=119296;J[b+16>>2]=119375;J[c+4>>2]=b;J[a+8>>2]=127;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6402;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=119808;J[c+16>>2]=120831;J[b+4>>2]=c;J[a+8>>2]=128;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0; -if((d|0)==1)break a;I[b+8>>1]=6658;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=983040;J[b+16>>2]=1048573;J[c+4>>2]=b;J[a+8>>2]=129;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6658;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1048576;J[c+16>>2]=1114109;J[b+4>>2]=c;J[a+8>>2]=130;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6914;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65024;J[b+16>>2]=65039;J[c+4>>2]=b;J[a+8>>2]=131;J[a>>2]=b;J[695492]=0;c=$(4, -20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6914;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=917760;J[c+16>>2]=917999;J[b+4>>2]=c;J[a+8>>2]=132;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=7170;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=917504;J[b+16>>2]=917631;J[c+4>>2]=b;J[a+8>>2]=133;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=7426;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=6400;J[c+16>>2]=6479;J[b+4>>2]=c;J[a+8>>2]=134;J[a>> -2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=7682;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=6480;J[b+16>>2]=6527;J[c+4>>2]=b;J[a+8>>2]=135;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=7938;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=6528;J[c+16>>2]=6623;J[b+4>>2]=c;J[a+8>>2]=136;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=6656;J[b+16>>2]=6687;J[c+4>>2]=b;J[a+ -8>>2]=137;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=259;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=11264;J[c+16>>2]=11359;J[b+4>>2]=c;J[a+8>>2]=138;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=515;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11568;J[b+16>>2]=11647;J[c+4>>2]=b;J[a+8>>2]=139;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=771;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=19904;J[c+16>>2]=19967; -J[b+4>>2]=c;J[a+8>>2]=140;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1027;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=43008;J[b+16>>2]=43055;J[c+4>>2]=b;J[a+8>>2]=141;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1283;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65536;J[c+16>>2]=65663;J[b+4>>2]=c;J[a+8>>2]=142;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1283;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]= -65664;J[b+16>>2]=65791;J[c+4>>2]=b;J[a+8>>2]=143;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1283;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65792;J[c+16>>2]=65855;J[b+4>>2]=c;J[a+8>>2]=144;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=1539;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65856;J[b+16>>2]=65935;J[c+4>>2]=b;J[a+8>>2]=145;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=1795;J[c+4>>2]= -a;J[c>>2]=b;J[c+12>>2]=66432;J[c+16>>2]=66463;J[b+4>>2]=c;J[a+8>>2]=146;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=2051;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=66464;J[b+16>>2]=66527;J[c+4>>2]=b;J[a+8>>2]=147;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2307;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66640;J[c+16>>2]=66687;J[b+4>>2]=c;J[a+8>>2]=148;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+ -8>>1]=2563;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=66688;J[b+16>>2]=66735;J[c+4>>2]=b;J[a+8>>2]=149;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=2819;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=67584;J[c+16>>2]=67647;J[b+4>>2]=c;J[a+8>>2]=150;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3075;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=68096;J[b+16>>2]=68191;J[c+4>>2]=b;J[a+8>>2]=151;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0; -if((d|0)==1)break a;I[c+8>>1]=3331;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=119552;J[c+16>>2]=119647;J[b+4>>2]=c;J[a+8>>2]=152;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3587;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=73728;J[b+16>>2]=74751;J[c+4>>2]=b;J[a+8>>2]=153;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=3587;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=74752;J[c+16>>2]=74879;J[b+4>>2]=c;J[a+8>>2]=154;J[a>>2]=c;J[695492]=0;b=$(4,20)| -0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=3843;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=119648;J[b+16>>2]=119679;J[c+4>>2]=b;J[a+8>>2]=155;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4099;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=7040;J[c+16>>2]=7103;J[b+4>>2]=c;J[a+8>>2]=156;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4355;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=7168;J[b+16>>2]=7247;J[c+4>>2]=b;J[a+8>>2]=157;J[a>>2]=b; -J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=4611;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=7248;J[c+16>>2]=7295;J[b+4>>2]=c;J[a+8>>2]=158;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=4867;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=43136;J[b+16>>2]=43231;J[c+4>>2]=b;J[a+8>>2]=159;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5123;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=43264;J[c+16>>2]=43311;J[b+4>>2]=c;J[a+ -8>>2]=160;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5379;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=43312;J[b+16>>2]=43359;J[c+4>>2]=b;J[a+8>>2]=161;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=5635;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=43520;J[c+16>>2]=43615;J[b+4>>2]=c;J[a+8>>2]=162;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=5891;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65936;J[b+16>>2]= -65999;J[c+4>>2]=b;J[a+8>>2]=163;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6147;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66E3;J[c+16>>2]=66047;J[b+4>>2]=c;J[a+8>>2]=164;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6403;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=66208;J[b+16>>2]=66271;J[c+4>>2]=b;J[a+8>>2]=165;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6403;J[c+4>>2]=a;J[c>>2]=b;J[c+12>> -2]=66176;J[c+16>>2]=66207;J[b+4>>2]=c;J[a+8>>2]=166;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6403;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=67872;J[b+16>>2]=67903;J[c+4>>2]=b;J[a+8>>2]=167;J[a>>2]=b;J[695492]=0;c=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[c+8>>1]=6659;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=127024;J[c+16>>2]=127135;J[b+4>>2]=c;J[a+8>>2]=168;J[a>>2]=c;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;I[b+8>>1]=6659;J[b+ -4>>2]=a;J[b>>2]=c;J[b+12>>2]=126976;J[b+16>>2]=127023;J[c+4>>2]=b;J[a+8>>2]=169;J[a>>2]=b;return a|0}b=Z()|0;Zo(a);ba(b|0);B()}function O8(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,N=0,O=0,Q=0,R=0;r=bd(1,24);if(!r)return 0;H[r|0]=1;a:{e=bd(1,104);if(e){J[e>>2]=r;b:{c=bd(1,56);if(c){J[c>>2]=r;k=bd(1,1876);J[c+36>>2]=k;if(k)break b;qc(c)}J[r+20>>2]=1;zN(e);qc(r);return 0}J[e+4>>2]=c;J[r+8>> -2]=c;J[r+16>>2]=e;J[r+4>>2]=3;if(b){k=bd(1,96);if(!k)break a;J[k+12>>2]=J[b>>2];J[k+16>>2]=J[b+4>>2];J[k+20>>2]=J[b+8>>2];J[c+44>>2]=k}p=bc-32|0;bc=p;c:{b=e;c=a;if(!e|!c)break c;e=gc[J[J[c>>2]+36>>2]](c)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;k=gc[J[J[c>>2]+20>>2]](c,4)|0;d:{e:switch(a|0){case 1:a=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break d;a=gc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break d;a=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break d;case 0:break e;default:break d}a=gc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}if((k|0)!=1783636E3)break c; -if((gc[J[J[c>>2]+20>>2]](c,4)|0)!=218793738)break c;if(((gc[J[J[c>>2]+36>>2]](c)|0)-e|0)!=(a|0))break c;k=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;f:{g:switch(d|0){case 1:d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break f;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break f;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break f;case 0:break g;default:break f}e=gc[J[J[c>>2]+40>>2]](c)|0;d=e?e+8|0:0}if((a|0)!=1718909296)break c;O=b,Q=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+8>>2]=Q;e=gc[J[J[c>> -2]+20>>2]](c,4)|0;a=(d-16|0)/4|0;J[b+16>>2]=a;J[b+12>>2]=e;O=b,Q=bd(1,a<<2),J[O+20>>2]=Q;if((d|0)>=20)while(1){g=gc[J[J[c>>2]+20>>2]](c,4)|0;e=a-1|0;J[J[b+20>>2]+(e<<2)>>2]=g;g=(a|0)>1;a=e;if(g)continue;break}if(((gc[J[J[c>>2]+36>>2]](c)|0)-k|0)!=(d|0))break c;e=gc[J[J[c>>2]+36>>2]](c)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;h:{i:switch(a|0){case 1:a=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break h;a=gc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break h;a=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break h; -case 0:break i;default:break h}a=gc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}g=0;while(1){j:{k:{l:{m:{n:{o:{p:{q:{if((d|0)<=1836019557){if((d|0)==1718773093)break l;if((d|0)!=1835295092)break m;e=gc[J[J[c>>2]+36>>2]](c)|0;gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;k=gc[J[J[c>>2]+20>>2]](c,4)|0;switch(d|0){case 0:break p;case 1:break q;default:break o}}switch(d-1836019558|0){case 16:break k;case 0:break l;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break m; -default:break n}}d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break o;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break o;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break o}g=gc[J[J[c>>2]+40>>2]](c)|0;d=(g|0)>0?g+8|0:0}r:{if((k|0)==1785737827)break r;gc[J[J[c>>2]+24>>2]](c,d-8|0);if((gc[J[J[c>>2]+40>>2]](c)|0)<0)break c;gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;k=gc[J[J[c>>2]+20>>2]](c,4)|0;s:{t:switch(d|0){case 0:g=gc[J[J[c>>2]+40>>2]](c)|0;if((g|0)<=0)break c;d=g+8|0;break s;case 1:break t;default:break s}if(gc[J[J[c>> -2]+20>>2]](c,4)|0)break c;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break s;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0}if((k|0)==1785737827)break r;while(1){gc[J[J[c>>2]+24>>2]](c,d-8|0);if((gc[J[J[c>>2]+40>>2]](c)|0)<0)break c;gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;k=gc[J[J[c>>2]+20>>2]](c,4)|0;u:{v:switch(d|0){case 1:if(gc[J[J[c>>2]+20>>2]](c,4)|0)break c;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break u;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break u;case 0:break v;default:break u}g=gc[J[J[c>>2]+40>>2]](c)| -0;if((g|0)<=0)break c;d=g+8|0}if((k|0)!=1785737827)continue;break}}gc[J[J[c>>2]+36>>2]](c)|0;g=AN(J[b+4>>2],c);if(!g)break c;Q=c,R=(a+e-gc[J[J[c>>2]+36>>2]](c)|0)-8|0,O=J[J[c>>2]+24>>2],gc[O](Q|0,R|0);if((gc[J[J[c>>2]+40>>2]](c)|0)>=0)break j;break c}if((d|0)==1936419184)break l}gc[J[J[c>>2]+24>>2]](c,a);if((gc[J[J[c>>2]+40>>2]](c)|0)<0)break c;break j}gc[J[J[c>>2]+24>>2]](c,a);if((gc[J[J[c>>2]+40>>2]](c)|0)>=0)break j;break c}J[p+28>>2]=e;J[p+16>>2]=e;J[p+24>>2]=1836019574;J[p+20>>2]=a;a=J[p+24>> -2];J[p+8>>2]=J[p+20>>2];J[p+12>>2]=a;B=g;k=b;w:{if(J[p+12>>2]!=1836019574)break w;a=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;x:{y:switch(d|0){case 1:d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break x;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break x;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break x;case 0:break y;default:break x}e=gc[J[J[c>>2]+40>>2]](c)|0;d=e?e+8|0:0}if((b|0)!=1836476516)break w;gc[J[J[c>>2]+20>>2]](c,4)|0;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+24>>2]=R;O=k, -R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+28>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+32>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+36>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+40>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+56>>2]=R;gc[J[J[c>>2]+24>>2]](c,10);O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+60>>2]=R;O=k- -64|0,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+68>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+72>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+76>>2]=R;O=k, -R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+80>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+84>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+88>>2]=R;O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+92>>2]=R;gc[J[J[c>>2]+24>>2]](c,24);O=k,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+96>>2]=R;if(((gc[J[J[c>>2]+36>>2]](c)|0)-a|0)!=(d|0))break w;f=1;O=k,R=bd(1,P(J[k+96>>2],384)-384|0),J[O+100>>2]=R;if(((gc[J[J[c>>2]+36>>2]](c)|0)-J[p+16>>2]|0)>=J[p+8>>2])break w;z:{while(1){e=J[k+100>>2]+P(y,384)|0;J[e>>2]=J[k>>2];a=gc[J[J[c>>2]+36>> -2]](c)|0;f=gc[J[J[c>>2]+20>>2]](c,4)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;A:{B:switch(f|0){case 1:f=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break A;f=gc[J[J[c>>2]+20>>2]](c,4)|0;if(f)break A;f=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break A;case 0:break B;default:break A}f=gc[J[J[c>>2]+40>>2]](c)|0;f=f?f+8|0:0}C:{if((b|0)!=1836475768){f=0;if((b|0)!=1953653099)break w;gc[J[J[c>>2]+28>>2]](c,a);C=gc[J[J[c>>2]+36>>2]](c)|0;t=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;D:{E:switch(t|0){case 1:t=1;if(gc[J[J[c>> -2]+20>>2]](c,4)|0)break D;t=gc[J[J[c>>2]+20>>2]](c,4)|0;if(t)break D;t=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break D;case 0:break E;default:break D}b=gc[J[J[c>>2]+40>>2]](c)|0;t=b?b+8|0:0}if((a|0)!=1953653099)break w;a=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;F:{G:switch(d|0){case 1:d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break F;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break F;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break F;case 0:break G;default:break F}g=gc[J[J[c>>2]+40>> -2]](c)|0;d=g?g+8|0:0}if((b|0)!=1953196132)break w;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break w;if((gc[J[J[c>>2]+20>>2]](c,3)|0)-1>>>0>3)break w;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+12>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+16>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+4>>2]=R;gc[J[J[c>>2]+24>>2]](c,4);O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+20>>2]=R;gc[J[J[c>>2]+24>>2]](c,8);O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+28>>2]=R;gc[J[J[c>>2]+20>>2]](c,2)|0;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+32>>2]=R;gc[J[J[c>> -2]+24>>2]](c,2);O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+204>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+208>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+212>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+216>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+220>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+224>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+228>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+232>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+236>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+112>>2]=R;O=e,R= -gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+116>>2]=R;if(((gc[J[J[c>>2]+36>>2]](c)|0)-a|0)!=(d|0))break w;D=gc[J[J[c>>2]+36>>2]](c)|0;u=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;H:{I:switch(u|0){case 1:u=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break H;u=gc[J[J[c>>2]+20>>2]](c,4)|0;if(u)break H;u=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break H;case 0:break I;default:break H}b=gc[J[J[c>>2]+40>>2]](c)|0;u=b?b+8|0:0}if((a|0)!=1835297121)break w;b=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>> -2]+20>>2]](c,4)|0;J:{K:switch(d|0){case 1:d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break J;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break J;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break J;case 0:break K;default:break J}g=gc[J[J[c>>2]+40>>2]](c)|0;d=g?g+8|0:0}if(!((a|0)!=1835558002&(a|0)!=1835296868)){if(gc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break w;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+12>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+16>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+24>>2]= -R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+20>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+36>>2]=R;gc[J[J[c>>2]+24>>2]](c,2);if(((gc[J[J[c>>2]+36>>2]](c)|0)-b|0)!=(d|0))break w}a=gc[J[J[c>>2]+36>>2]](c)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;g=gc[J[J[c>>2]+20>>2]](c,4)|0;L:{M:switch(b|0){case 1:b=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break L;b=gc[J[J[c>>2]+20>>2]](c,4)|0;if(b)break L;b=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break L;case 0:break M;default:break L}b=gc[J[J[c>>2]+40>>2]](c)|0;b=b?b+8|0:0}if((g|0)!=1751411826)break w; -if(gc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break w;gc[J[J[c>>2]+24>>2]](c,4);O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+248>>2]=R;gc[J[J[c>>2]+24>>2]](c,12);g=b-32|0;J[e+252>>2]=g;O=e,R=bd(1,g),J[O+284>>2]=R;if((b|0)>=33)while(1){g=gc[J[J[c>>2]+20>>2]](c,1)|0;H[J[e+284>>2]+f|0]=g;f=f+1|0;if((f|0)>2])continue;break}if(((gc[J[J[c>>2]+36>>2]](c)|0)-a|0)!=(b|0))break z;E=gc[J[J[c>>2]+36>>2]](c)|0;v=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;N:{O:switch(v| -0){case 1:v=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break N;v=gc[J[J[c>>2]+20>>2]](c,4)|0;if(v)break N;v=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break N;case 0:break O;default:break N}b=gc[J[J[c>>2]+40>>2]](c)|0;v=b?b+8|0:0}if((a|0)!=1835626086)break z;gc[J[J[c>>2]+24>>2]](c,4);a=gc[J[J[c>>2]+20>>2]](c,4)|0;gc[J[J[c>>2]+24>>2]](c,-8);P:{if((a|0)!=1752000612){if((a|0)!=1936549988){if((a|0)!=1986881636)break z;a=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;Q:{R:switch(d|0){case 1:d= -1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break Q;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break Q;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Q;case 0:break R;default:break Q}f=gc[J[J[c>>2]+40>>2]](c)|0;d=f?f+8|0:0}if((b|0)!=1986881636)break z;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break z;if((gc[J[J[c>>2]+20>>2]](c,3)|0)!=1)break z;f=0;J[e+8>>2]=0;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+64>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+68>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+72>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0, -J[O+76>>2]=R;if(((gc[J[J[c>>2]+36>>2]](c)|0)-a|0)==(d|0))break P;break w}a=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;S:{T:switch(d|0){case 1:d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break S;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break S;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break S;case 0:break T;default:break S}f=gc[J[J[c>>2]+40>>2]](c)|0;d=f?f+8|0:0}if((b|0)!=1936549988)break z;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break z;J[e+8>>2]= -1;f=0;b=gc[J[J[c>>2]+20>>2]](c,2)|0;J[e+184>>2]=0;J[e+40>>2]=b;J[e+268>>2]=0;J[e+88>>2]=0;J[e+80>>2]=0;J[e+276>>2]=0;J[e+260>>2]=0;J[e+240>>2]=0;gc[J[J[c>>2]+24>>2]](c,2);if(((gc[J[J[c>>2]+36>>2]](c)|0)-a|0)==(d|0))break P;break w}a=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;U:{V:switch(d|0){case 1:d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break U;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break U;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break U;case 0:break V;default:break U}f= -gc[J[J[c>>2]+40>>2]](c)|0;d=f?f+8|0:0}if((b|0)!=1752000612)break z;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break z;J[e+8>>2]=2;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+44>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+48>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+52>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+56>>2]=R;f=0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;J[e+184>>2]=0;J[e+60>>2]=b;J[e+268>>2]=0;J[e+88>>2]=0;J[e+80>>2]=0;J[e+276>>2]=0;J[e+260>>2]=0;J[e+240>>2]=0;if(((gc[J[J[c>> -2]+36>>2]](c)|0)-a|0)!=(d|0))break w}m=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;W:{X:switch(d|0){case 1:d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break W;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break W;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break W;case 0:break X;default:break W}b=gc[J[J[c>>2]+40>>2]](c)|0;d=b?b+8|0:0}if((a|0)!=1684631142)break z;l=gc[J[J[c>>2]+36>>2]](c)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;Y:{Z:switch(a|0){case 1:a=1;if(gc[J[J[c>> -2]+20>>2]](c,4)|0)break Y;a=gc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break Y;a=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Y;case 0:break Z;default:break Y}a=gc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}if((b|0)!=1685218662)break z;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break z;_:{if(gc[J[J[c>>2]+20>>2]](c,3)|0)break _;j=gc[J[J[c>>2]+20>>2]](c,4)|0;J[e+88>>2]=0;J[e+80>>2]=0;if((j|0)>0){g=0;while(1){gc[J[J[c>>2]+24>>2]](c,4);b=gc[J[J[c>>2]+20>>2]](c,4)|0;$:{if((b|0)!=1970433568){if((b|0)!=1970433056)break w;gc[J[J[c>>2]+24>> -2]](c,-8);h=J[e+80>>2]+1|0;J[e+80>>2]=h;n=gc[J[J[c>>2]+36>>2]](c)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;i=gc[J[J[c>>2]+20>>2]](c,4)|0;aa:{ba:switch(b|0){case 1:b=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break aa;b=gc[J[J[c>>2]+20>>2]](c,4)|0;if(b)break aa;b=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break aa;case 0:break ba;default:break aa}b=gc[J[J[c>>2]+40>>2]](c)|0;b=b?b+8|0:0}if((i|0)!=1970433056)break w;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break w;ca:{if((gc[J[J[c>>2]+20>>2]](c,3)|0)!=1){i=gc[J[J[c>>2]+20>>2]](c,4)|0;h=h<< -4;J[h+J[e+84>>2]>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+84>>2]|0)+4>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+84>>2]|0)+8>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+84>>2]|0)+12>>2]=i;break ca}J[e+80>>2]=J[e+80>>2]-1}if(((gc[J[J[c>>2]+36>>2]](c)|0)-n|0)==(b|0))break $;break w}gc[J[J[c>>2]+24>>2]](c,-8);h=J[e+88>>2]+1|0;J[e+88>>2]=h;n=gc[J[J[c>>2]+36>>2]](c)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;i=gc[J[J[c>>2]+20>>2]](c,4)|0;da:{ea:switch(b|0){case 1:b=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break da; -b=gc[J[J[c>>2]+20>>2]](c,4)|0;if(b)break da;b=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break da;case 0:break ea;default:break da}b=gc[J[J[c>>2]+40>>2]](c)|0;b=b?b+8|0:0}if((i|0)!=1970433568)break w;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break w;if((gc[J[J[c>>2]+20>>2]](c,3)|0)!=1){i=gc[J[J[c>>2]+20>>2]](c,4)|0;h=h<<5;J[h+J[e+92>>2]>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+4>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+8>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+12>>2]=i;i=gc[J[J[c>> -2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+16>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+20>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+24>>2]=i;i=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+28>>2]=i}if(((gc[J[J[c>>2]+36>>2]](c)|0)-n|0)!=(b|0))break w}g=g+1|0;if((j|0)!=(g|0))continue;break}}if(((gc[J[J[c>>2]+36>>2]](c)|0)-l|0)==(a|0))break _;break z}if(((gc[J[J[c>>2]+36>>2]](c)|0)-m|0)!=(d|0))break z;F=gc[J[J[c>>2]+36>>2]](c)|0;w=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>> -2]](c,4)|0;fa:{ga:switch(w|0){case 1:w=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break fa;w=gc[J[J[c>>2]+20>>2]](c,4)|0;if(w)break fa;w=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break fa;case 0:break ga;default:break fa}b=gc[J[J[c>>2]+40>>2]](c)|0;w=b?b+8|0:0}if((a|0)!=1937007212)break z;m=gc[J[J[c>>2]+36>>2]](c)|0;h=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;ha:{ia:switch(h|0){case 1:h=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break ha;h=gc[J[J[c>>2]+20>>2]](c,4)|0;if(h)break ha;h=(gc[J[J[c>>2]+40>>2]](c)|0)+ -12|0;break ha;case 0:break ia;default:break ha}b=gc[J[J[c>>2]+40>>2]](c)|0;h=b?b+8|0:0}if((a|0)!=1937011556)break z;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break z;g=gc[J[J[c>>2]+20>>2]](c,4)|0;ja:{ka:switch(J[e+8>>2]){case 0:if((g|0)<=0)break ja;l=e+288|0;n=0;while(1){j=gc[J[J[c>>2]+36>>2]](c)|0;b=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;la:{ma:switch(b|0){case 1:b=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break la;b=gc[J[J[c>>2]+20>>2]](c,4)|0;if(b)break la; -b=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break la;case 0:break ma;default:break la}b=gc[J[J[c>>2]+40>>2]](c)|0;b=b?b+8|0:0}if((a|0)!=1835692082)break w;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break w;gc[J[J[c>>2]+24>>2]](c,4);gc[J[J[c>>2]+24>>2]](c,2);gc[J[J[c>>2]+24>>2]](c,2);gc[J[J[c>>2]+24>>2]](c,4);gc[J[J[c>>2]+24>>2]](c,4);gc[J[J[c>>2]+24>>2]](c,4);O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+104>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+108>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c, -4)|0,J[O+136>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+140>>2]=R;gc[J[J[c>>2]+24>>2]](c,4);gc[J[J[c>>2]+24>>2]](c,2);O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+144>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+148>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+152>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+156>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+160>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+164>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+168>>2]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,4)|0,J[O+172>>2]= -R;O=e,R=gc[J[J[c>>2]+20>>2]](c,2)|0,J[O+176>>2]=R;gc[J[J[c>>2]+24>>2]](c,2);H[e+192|0]=0;H[e+180|0]=1;H[e+181|0]=0;H[e+182|0]=1;H[e+183|0]=0;if(!R8(l,c))break w;O=e,R=bd(1,P(J[e+304>>2],12)),J[O+356>>2]=R;O=e,R=bd(1,4),J[O+352>>2]=R;J[e+184>>2]=0;H[e+192|0]=0;if(((gc[J[J[c>>2]+36>>2]](c)|0)-j|0)<(b|0))while(1){d=gc[J[J[c>>2]+36>>2]](c)|0;i=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;na:{oa:switch(i|0){case 1:if(gc[J[J[c>>2]+20>>2]](c,4)|0)break na;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break na; -break;case 0:break oa;default:break na}gc[J[J[c>>2]+40>>2]](c)|0}gc[J[J[c>>2]+28>>2]](c,d);pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{if((a|0)<=1785951585){za:switch(a-1785737840|0){case 8:break ua;case 0:break va;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break w;default:break za}if((a|0)!=1718183276)break w;a=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;i=gc[J[J[c>>2]+20>>2]](c,4)|0;switch(d|0){case 0:break xa;case 1:break ya;default:break wa}}if((a|0)==1785951586)break ta;if((a|0)!= -1869768303)break w;a=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;i=gc[J[J[c>>2]+20>>2]](c,4)|0;switch(d|0){case 0:break ra;case 1:break sa;default:break qa}}d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break wa;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break wa;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break wa}d=gc[J[J[c>>2]+40>>2]](c)|0;d=d?d+8|0:0}if((i|0)!=1718183276)break w;O=e,R=gc[J[J[c>>2]+20>>2]](c,1)|0,H[O+180|0]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,1)|0,H[O+181|0]=R;if(((gc[J[J[c>>2]+36>>2]](c)|0)-a|0)== -(d|0))break pa;break w}i=gc[J[J[c>>2]+36>>2]](c)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;Aa:{Ba:switch(a|0){case 1:a=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break Aa;a=gc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break Aa;a=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Aa;case 0:break Ba;default:break Aa}a=gc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}if((d|0)!=1785737840)break w;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break w;d=(a-12|0)/4|0;J[e+184>>2]=d;O=e,R=bd(1,d<<2),J[O+188>> -2]=R;d=0;if((a|0)>=16)while(1){o=gc[J[J[c>>2]+20>>2]](c,4)|0;J[J[e+188>>2]+(d<<2)>>2]=o;d=d+1|0;if((d|0)>2])continue;break}if(((gc[J[J[c>>2]+36>>2]](c)|0)-i|0)==(a|0))break pa;break z}i=gc[J[J[c>>2]+36>>2]](c)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;Ca:{Da:switch(a|0){case 1:a=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break Ca;a=gc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break Ca;a=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Ca;case 0:break Da;default:break Ca}a=gc[J[J[c>>2]+40>>2]](c)|0;a= -a?a+8|0:0}if((d|0)!=1785737848)break w;d=a-8|0;H[e+192|0]=d;o=d&255;O=e,R=bd(1,o),J[O+196>>2]=R;d=0;if(o)while(1){o=gc[J[J[c>>2]+20>>2]](c,1)|0;H[J[e+196>>2]+d|0]=o;d=d+1|0;if(d>>>0>2]+36>>2]](c)|0)-i|0)==(a|0))break pa;break z}a=gc[J[J[c>>2]+36>>2]](c)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;i=gc[J[J[c>>2]+20>>2]](c,4)|0;Ea:{Fa:switch(d|0){case 1:d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break Ea;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break Ea;d=(gc[J[J[c>>2]+40>>2]](c)|0)+ -12|0;break Ea;case 0:break Fa;default:break Ea}d=gc[J[J[c>>2]+40>>2]](c)|0;d=d?d+8|0:0}if((i|0)!=1785951586)break w;O=e,R=gc[J[J[c>>2]+20>>2]](c,1)|0,H[O+200|0]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,1)|0,H[O+201|0]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,1)|0,H[O+202|0]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,1)|0,H[O+203|0]=R;if(((gc[J[J[c>>2]+36>>2]](c)|0)-a|0)==(d|0))break pa;break w}d=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break qa;d=gc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break qa;d=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break qa}d=gc[J[J[c>> -2]+40>>2]](c)|0;d=d?d+8|0:0}if((i|0)!=1869768303)break w;O=e,R=gc[J[J[c>>2]+20>>2]](c,1)|0,H[O+182|0]=R;O=e,R=gc[J[J[c>>2]+20>>2]](c,1)|0,H[O+183|0]=R;if(((gc[J[J[c>>2]+36>>2]](c)|0)-a|0)!=(d|0))break w}if(((gc[J[J[c>>2]+36>>2]](c)|0)-j|0)<(b|0))continue;break}n=n+1|0;if((g|0)!=(n|0))continue;break}break ja;case 1:case 2:break ka;default:break ja}R=c,Q=(gc[J[J[c>>2]+20>>2]](c,4)|0)-4|0,O=J[J[c>>2]+24>>2],gc[O](R|0,Q|0)}if(((gc[J[J[c>>2]+36>>2]](c)|0)-m|0)!=(h|0))break z;i=gc[J[J[c>>2]+36>>2]](c)| -0;h=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;Ga:{Ha:switch(h|0){case 1:h=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break Ga;h=gc[J[J[c>>2]+20>>2]](c,4)|0;if(h)break Ga;h=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Ga;case 0:break Ha;default:break Ga}b=gc[J[J[c>>2]+40>>2]](c)|0;h=b?b+8|0:0}if((a|0)!=1937011827)break z;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break w;a=gc[J[J[c>>2]+20>>2]](c,4)|0;J[e+260>>2]=a;O=e,Q=bd(1,a<<3),J[O+264>>2]=Q;Ia:{Ja:{if((a|0)>0){while(1){a= -gc[J[J[c>>2]+20>>2]](c,4)|0;b=f<<3;J[b+J[e+264>>2]>>2]=a;a=gc[J[J[c>>2]+20>>2]](c,4)|0;m=J[e+264>>2];J[(m+b|0)+4>>2]=a;f=f+1|0;l=J[e+260>>2];if((f|0)<(l|0))continue;break}J[e+240>>2]=0;if((l|0)<=0)break Ja;g=0;d=0;f=0;if(l>>>0>=4){j=l&-4;b=0;while(1){a=f<<3;d=J[m+(a|24)>>2]+(J[m+(a|16)>>2]+(J[m+(a|8)>>2]+(J[a+m>>2]+d|0)|0)|0)|0;f=f+4|0;b=b+4|0;if((j|0)!=(b|0))continue;break}}a=l&3;if(a)while(1){d=J[m+(f<<3)>>2]+d|0;f=f+1|0;g=g+1|0;if((a|0)!=(g|0))continue;break}J[e+240>>2]=d;d=bd(1,P(d,12));J[e+380>> -2]=d;a=0;while(1){b=m+(a<<3)|0;n=J[b>>2];Ka:{if((n|0)<=0)break Ka;j=J[b+4>>2];g=0;f=0;if(n>>>0>=8){o=n&-8;b=0;while(1){J[(d+P(f,12)|0)+8>>2]=j;J[(d+P(f|1,12)|0)+8>>2]=j;J[(d+P(f|2,12)|0)+8>>2]=j;J[(d+P(f|3,12)|0)+8>>2]=j;J[(d+P(f|4,12)|0)+8>>2]=j;J[(d+P(f|5,12)|0)+8>>2]=j;J[(d+P(f|6,12)|0)+8>>2]=j;J[(d+P(f|7,12)|0)+8>>2]=j;f=f+8|0;b=b+8|0;if((o|0)!=(b|0))continue;break}}b=n&7;if(!b)break Ka;while(1){J[(d+P(f,12)|0)+8>>2]=j;f=f+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}a=a+1|0;if((l|0)!=(a|0))continue; -break}break Ia}J[e+240>>2]=0}O=e,Q=bd(1,0),J[O+380>>2]=Q}f=0;if(((gc[J[J[c>>2]+36>>2]](c)|0)-i|0)!=(h|0))break w;G=gc[J[J[c>>2]+36>>2]](c)|0;n=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;La:{Ma:switch(n|0){case 1:n=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break La;n=gc[J[J[c>>2]+20>>2]](c,4)|0;if(n)break La;n=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break La;case 0:break Ma;default:break La}b=gc[J[J[c>>2]+40>>2]](c)|0;n=b?b+8|0:0}if((a|0)!=1937011555)break w;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(gc[J[J[c>> -2]+20>>2]](c,3)|0)break w;m=gc[J[J[c>>2]+20>>2]](c,4)|0;J[e+276>>2]=m;h=bd(1,P(m,12));J[e+280>>2]=h;Na:{Oa:{if((m|0)<=0)break Oa;while(1){b=gc[J[J[c>>2]+20>>2]](c,4)|0;a=P(f,12);J[a+J[e+280>>2]>>2]=b;b=gc[J[J[c>>2]+20>>2]](c,4)|0;J[(a+J[e+280>>2]|0)+4>>2]=b;b=gc[J[J[c>>2]+20>>2]](c,4)|0;h=J[e+280>>2];J[(a+h|0)+8>>2]=b;f=f+1|0;m=J[e+276>>2];if((f|0)<(m|0))continue;break}if((m|0)!=1)break Oa;d=J[h+4>>2];z=W(+M[e+240>>2]/+(d|0));Pa:{if(z<4294967296&z>=0){a=~~z>>>0;break Pa}a=0}J[e+268>>2]=a;h=bd(1,P(a, -12));J[e+272>>2]=h;if(!a)break Na;g=0;f=0;if(a>>>0>=8){j=a&-8;b=0;while(1){J[h+P(f,12)>>2]=d;J[h+P(f|1,12)>>2]=d;J[h+P(f|2,12)>>2]=d;J[h+P(f|3,12)>>2]=d;J[h+P(f|4,12)>>2]=d;J[h+P(f|5,12)>>2]=d;J[h+P(f|6,12)>>2]=d;J[h+P(f|7,12)>>2]=d;f=f+8|0;b=b+8|0;if((j|0)!=(b|0))continue;break}}a=a&7;if(!a)break Na;while(1){J[h+P(f,12)>>2]=d;f=f+1|0;g=g+1|0;if((a|0)!=(g|0))continue;break}break Na}j=bd(1,P(J[e+268>>2],12));J[e+272>>2]=j;x=m-1|0;o=0;l=0;if((m|0)>=2){I=j+36|0;L=j+24|0;N=j+12|0;b=J[h>>2];a=0;while(1){d= -b;g=a;a=a+1|0;b=J[P(a,12)+h>>2];if((d|0)<(b|0)){f=d-1|0;i=J[(P(g,12)+h|0)+4>>2];g=0;q=b-1|0;q=(d|0)>(q|0)?d:q;s=q-d|0;A=s+1&3;if(A)while(1){J[j+P(f,12)>>2]=i;f=f+1|0;l=i+l|0;g=g+1|0;if((A|0)!=(g|0))continue;break}if(s>>>0>=3){s=i<<1;while(1){g=P(f,12);J[g+j>>2]=i;J[g+N>>2]=i;J[g+L>>2]=i;J[g+I>>2]=i;l=s+(l+s|0)|0;f=f+4|0;if((q|0)!=(f|0))continue;break}}o=(q+(o-d|0)|0)+1|0}if((a|0)!=(x|0))continue;break}}a=J[(P(x,12)+h|0)+4>>2];f=((J[e+240>>2]-l|0)/(a|0)|0)+o|0;J[e+268>>2]=f;b=J[(P(m,12)+h|0)-12>>2]; -l=b-1|0;Qa:{if(f>>>0<=l>>>0)break Qa;d=0;b=f-b|0;g=b+1&7;if(g)while(1){J[j+P(l,12)>>2]=a;l=l+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(b>>>0<7)break Qa;g=j+84|0;d=j+72|0;h=j+60|0;m=j+48|0;i=j+36|0;x=j+24|0;q=j+12|0;while(1){b=P(l,12);J[b+j>>2]=a;J[b+q>>2]=a;J[b+x>>2]=a;J[b+i>>2]=a;J[b+m>>2]=a;J[b+h>>2]=a;J[b+d>>2]=a;J[b+g>>2]=a;l=l+8|0;if((f|0)!=(l|0))continue;break}}a=bd(1,P(f,12));if(!a)break Na;a=tc(a,j,P(o,12));if(j)qc(j);J[e+272>>2]=a}if(((gc[J[J[c>>2]+36>>2]](c)|0)-G|0)!=(n|0))break z;m= -gc[J[J[c>>2]+36>>2]](c)|0;h=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;Ra:{Sa:switch(h|0){case 1:h=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break Ra;h=gc[J[J[c>>2]+20>>2]](c,4)|0;if(h)break Ra;h=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Ra;case 0:break Sa;default:break Ra}b=gc[J[J[c>>2]+40>>2]](c)|0;h=b?b+8|0:0}if((a|0)!=1937011578)break z;if(gc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break z;a=gc[J[J[c>>2]+20>>2]](c,4)|0;Ta:{if(a){H[e+256|0]=1;j=J[e+240>>2];Ua:{if(!j)break Ua; -d=J[e+380>>2];g=0;f=0;if(j>>>0>=8){l=j&-8;b=0;while(1){J[d+P(f,12)>>2]=a;J[d+P(f|1,12)>>2]=a;J[d+P(f|2,12)>>2]=a;J[d+P(f|3,12)>>2]=a;J[d+P(f|4,12)>>2]=a;J[d+P(f|5,12)>>2]=a;J[d+P(f|6,12)>>2]=a;J[d+P(f|7,12)>>2]=a;f=f+8|0;b=b+8|0;if((l|0)!=(b|0))continue;break}}b=j&7;if(!b)break Ua;while(1){J[d+P(f,12)>>2]=a;f=f+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}gc[J[J[c>>2]+24>>2]](c,4);break Ta}f=0;H[e+256|0]=0;if(J[e+240>>2]!=(gc[J[J[c>>2]+20>>2]](c,4)|0))break w;if(!J[e+240>>2])break Ta;while(1){a=gc[J[J[c>> -2]+20>>2]](c,4)|0;J[J[e+380>>2]+P(f,12)>>2]=a;f=f+1|0;if(f>>>0>2])continue;break}}if(((gc[J[J[c>>2]+36>>2]](c)|0)-m|0)!=(h|0))break z;i=gc[J[J[c>>2]+36>>2]](c)|0;m=gc[J[J[c>>2]+20>>2]](c,4)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;Va:{Wa:switch(m|0){case 1:m=1;if(gc[J[J[c>>2]+20>>2]](c,4)|0)break Va;m=gc[J[J[c>>2]+20>>2]](c,4)|0;if(m)break Va;m=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Va;case 0:break Wa;default:break Va}b=gc[J[J[c>>2]+40>>2]](c)|0;m=b?b+8|0:0}if((a|0)!=1937007471)break z;if(gc[J[J[c>> -2]+20>>2]](c,1)|0)break z;if(gc[J[J[c>>2]+20>>2]](c,3)|0)break z;a=gc[J[J[c>>2]+20>>2]](c,4)|0;if((a|0)!=J[e+268>>2])break z;Xa:{if(!a)break Xa;f=0;while(1){a=gc[J[J[c>>2]+20>>2]](c,4)|0;o=J[e+272>>2];J[(o+P(f,12)|0)+8>>2]=a;f=f+1|0;n=J[e+268>>2];if(f>>>0>>0)continue;break}if(!n)break Xa;h=0;while(1){a=o+P(h,12)|0;l=J[a>>2];Ya:{if((l|0)<=0)break Ya;g=J[a+8>>2];j=J[e+380>>2];b=0;f=0;d=0;if(l>>>0>=4){x=l&-4;a=0;while(1){q=j+P(f,12)|0;J[q+4>>2]=d+g;s=j+P(f|1,12)|0;d=J[q>>2]+d|0;J[s+4>>2]=d+g;q=j+ -P(f|2,12)|0;d=d+J[s>>2]|0;J[q+4>>2]=d+g;s=j+P(f|3,12)|0;d=d+J[q>>2]|0;J[s+4>>2]=d+g;d=d+J[s>>2]|0;f=f+4|0;a=a+4|0;if((x|0)!=(a|0))continue;break}}a=l&3;if(!a)break Ya;while(1){l=j+P(f,12)|0;J[l+4>>2]=d+g;f=f+1|0;d=J[l>>2]+d|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}h=h+1|0;if((n|0)!=(h|0))continue;break}}if(((gc[J[J[c>>2]+36>>2]](c)|0)-i|0)!=(m|0))break z;if(((gc[J[J[c>>2]+36>>2]](c)|0)-F|0)!=(w|0))break z;if(((gc[J[J[c>>2]+36>>2]](c)|0)-E|0)!=(v|0))break z;if(((gc[J[J[c>>2]+36>>2]](c)|0)-D|0)!=(u| -0))break z;f=0;if(((gc[J[J[c>>2]+36>>2]](c)|0)-C|0)!=(t|0))break w;Za:switch(J[e+8>>2]){case 0:J[k+44>>2]=J[k+44>>2]+1;break C;case 1:J[k+48>>2]=J[k+48>>2]+1;break C;case 2:break Za;default:break C}J[k+52>>2]=J[k+52>>2]+1;break C}gc[J[J[c>>2]+28>>2]](c,a);gc[J[J[c>>2]+24>>2]](c,f);y=y-1|0}f=1;y=y+1|0;if(((gc[J[J[c>>2]+36>>2]](c)|0)-J[p+16>>2]|0)>2])continue;break}break w}f=0}f=f?B:0;break c}e=gc[J[J[c>>2]+36>>2]](c)|0;a=gc[J[J[c>>2]+20>>2]](c,4)|0;d=gc[J[J[c>>2]+20>>2]](c,4)|0;_a:switch(a| -0){case 1:if(gc[J[J[c>>2]+20>>2]](c,4)|0)break c;a=gc[J[J[c>>2]+20>>2]](c,4)|0;if(a)continue;a=(gc[J[J[c>>2]+40>>2]](c)|0)+12|0;continue;case 0:break _a;default:continue}a=gc[J[J[c>>2]+40>>2]](c)|0;if(!a)break c;a=a+8|0;continue}}bc=p+32|0;zN(J[r+16>>2])}qc(r);return f|0}J[r+20>>2]=1;zN(e);qc(r);return 0}function Zv(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,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,G=0,H=0,I=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,_=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,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0;if(c){ra=J[a+56>>2];za=J[a+60>>2];sa=J[a+48>>2];ya=J[a+52>>2];qa=J[a+40>>2];wa=J[a+44>>2];ka=J[a+32>>2];na=J[a+36>>2];ta=J[a+24>>2];Aa=J[a+28>>2];pa=J[a+16>>2];xa=J[a+20>>2];la=J[a+8>>2];ua=J[a+12>>2];ia=J[a>>2];ma=J[a+4>>2];while(1){j=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=j<<24|(j&65280)<<8;y=j&16711680;h=y<<24;y=y>>>8|0;r=j&-16777216; -d=r>>>24|0;e=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);fa=h|r<<8|(((e&255)<<24|j>>>8)&-16777216|((e&16777215)<<8|j>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|y|g;d=0;d=e|(d|d);ja=d;e=d;d=Izb(ka,na,50);j=fc;d=Izb(ka,na,46)^d;y=fc^j;r=Izb(ka,na,23)^d;j=r+(ka&qa)|0;d=(na&wa)+(fc^y)|0;d=za+(j>>>0>>0?d+1|0:d)|0;j=j+ra|0;d=j>>>0>>0?d+1|0:d;y=(ka^-1)&sa;j=y+j|0;d=((na^-1)&ya)+d|0;d=(j>>>0>>0?d+1|0:d)+e|0;e=j+fa|0;d=(e>>>0>>0?d+1|0:d)+1116352408|0;e=e-685199838|0;d=e>>>0<3609767458?d+1| -0:d;y=e;r=d;j=d;d=Izb(ia,ma,36);g=fc;d=Izb(ia,ma,30)^d;h=fc^g;i=Izb(ia,ma,25)^d;g=i+(ia&(la^pa)^la&pa)|0;d=(ma&(ua^xa)^ua&xa)+(fc^h)|0;d=(g>>>0>>0?d+1|0:d)+j|0;f=e+g|0;d=f>>>0>>0?d+1|0:d;e=Izb(f,d,36);j=fc;L=d;e=Izb(f,d,30)^e;j=fc^j;g=(ia^la)&f^ia&la;e=g+(Izb(f,d,25)^e)|0;d=(fc^j)+((ma^ua)&d^ma&ua)|0;X=e;g=e>>>0>>0?d+1|0:d;j=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);ha=j<<24|(j&65280)<<8;h=j&16711680;N=h<<24;h=h>>>8|0;i=j&-16777216;d=i>>>24|0;e=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<< -16|K[b+15|0]<<24);ga=N|i<<8|(((e&255)<<24|j>>>8)&-16777216|((e&16777215)<<8|j>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|h|ha;d=0;d=e|(d|d);ha=d;e=d;d=r+Aa|0;y=y+ta|0;d=y>>>0>>0?d+1|0:d;j=d;h=(y^-1)&qa;r=h+sa|0;d=((d^-1)&wa)+ya|0;d=h>>>0>r>>>0?d+1|0:d;h=y&ka;r=h+r|0;d=(j&na)+d|0;d=h>>>0>r>>>0?d+1|0:d;h=Izb(y,j,50);i=fc;h=Izb(y,j,46)^h;i=fc^i;h=Izb(y,j,23)^h;r=h+r|0;d=(fc^i)+d|0;d=(h>>>0>r>>>0?d+1|0:d)+e|0;e=r+ga|0;d=(e>>>0>>0?d+1|0:d)+1899447441|0;e=e+602891725|0;d=e>>>0<602891725?d+1|0:d;h= -e;i=g;g=d;d=i+d|0;G=e+X|0;d=G>>>0>>0?d+1|0:d;e=Izb(G,d,36);r=fc;z=d;e=Izb(G,d,30)^e;r=fc^r;i=(f^ia)&G^f&ia;e=i+(Izb(G,d,25)^e)|0;d=(fc^r)+((L^ma)&d^L&ma)|0;O=e;i=e>>>0>>0?d+1|0:d;r=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);F=r<<24|(r&65280)<<8;X=r&16711680;H=X<<24;X=X>>>8|0;N=r&-16777216;d=N>>>24|0;e=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);ba=H|N<<8|(((e&255)<<24|r>>>8)&-16777216|((e&16777215)<<8|r>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|X|F;d=0;d=e|(d|d);X=d;e=d;d= -g+xa|0;g=h+pa|0;d=g>>>0>>0?d+1|0:d;r=d;N=(g^-1)&ka;h=N+qa|0;d=((d^-1)&na)+wa|0;d=h>>>0>>0?d+1|0:d;N=g&y;h=N+h|0;d=(j&r)+d|0;d=h>>>0>>0?d+1|0:d;N=Izb(g,r,50);F=fc;N=Izb(g,r,46)^N;F=fc^F;N=Izb(g,r,23)^N;h=N+h|0;d=(fc^F)+d|0;d=(h>>>0>>0?d+1|0:d)+e|0;e=h;h=h+ba|0;d=e>>>0>h>>>0?d+1|0:d;e=h-330482897|0;F=e;s=d-((h>>>0<330482897)+1245643824|0)|0;d=s+i|0;H=e+O|0;d=H>>>0>>0?d+1|0:d;e=Izb(H,d,36);h=fc;B=d;e=Izb(H,d,30)^e;h=fc^h;i=(f^G)&H^f&G;e=i+(Izb(H,d,25)^e)|0;d=(fc^h)+((z^L)&d^z&L)|0;v= -e;O=e>>>0>>0?d+1|0:d;h=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);x=h<<24|(h&65280)<<8;i=h&16711680;m=i<<24;i=i>>>8|0;N=h&-16777216;d=N>>>24|0;e=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);ca=m|N<<8|(((e&255)<<24|h>>>8)&-16777216|((e&16777215)<<8|h>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|i|x;d=0;d=e|(d|d);N=d;e=d;d=s+ua|0;i=F+la|0;d=i>>>0>>0?d+1|0:d;h=d;s=(i^-1)&y;F=s+ka|0;d=((d^-1)&j)+na|0;d=s>>>0>F>>>0?d+1|0:d;s=g&i;F=s+F|0;d=(h&r)+d|0;d=s>>>0>F>>>0?d+1|0:d;s=Izb(i,h, -50);x=fc;s=Izb(i,h,46)^s;x=fc^x;s=Izb(i,h,23)^s;F=s+F|0;d=(fc^x)+d|0;d=(s>>>0>F>>>0?d+1|0:d)+e|0;e=F;F=F+ca|0;d=e>>>0>F>>>0?d+1|0:d;e=F-2121671748|0;x=e;o=d-((F>>>0<2121671748)+373957722|0)|0;d=o+O|0;s=e+v|0;d=s>>>0>>0?d+1|0:d;e=Izb(s,d,36);F=fc;k=d;e=Izb(s,d,30)^e;F=fc^F;O=(G^H)&s^G&H;e=O+(Izb(s,d,25)^e)|0;d=(fc^F)+((z^B)&d^z&B)|0;l=e;O=e>>>0>>0?d+1|0:d;F=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);n=F<<24|(F&65280)<<8;v=F&16711680;$=v<<24;v=v>>>8|0;m=F&-16777216;d=m>>>24|0;e=K[b+ -36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);$=$|m<<8|(((e&255)<<24|F>>>8)&-16777216|((e&16777215)<<8|F>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|v|n;d=0;d=e|(d|d);F=d;e=d;v=j;d=o+ma|0;x=x+ia|0;d=x>>>0>>0?d+1|0:d;j=d;t=y;y=x;m=(y^-1)&g;x=t+m|0;d=((d^-1)&r)+v|0;d=m>>>0>x>>>0?d+1|0:d;v=i&y;x=v+x|0;d=(h&j)+d|0;d=v>>>0>x>>>0?d+1|0:d;v=Izb(y,j,50);m=fc;v=Izb(y,j,46)^v;m=fc^m;v=Izb(y,j,23)^v;x=v+x|0;d=(fc^m)+d|0;d=(v>>>0>x>>>0?d+1|0:d)+e|0;e=x+$|0;d=(e>>>0>>0?d+1|0:d)+961987163|0;e=e-213338824| -0;d=e>>>0<4081628472?d+1|0:d;x=e;m=d;d=d+O|0;v=e+l|0;d=v>>>0>>0?d+1|0:d;e=Izb(v,d,36);O=fc;l=d;e=Izb(v,d,30)^e;O=fc^O;o=(s^H)&v^s&H;e=o+(Izb(v,d,25)^e)|0;d=(fc^O)+((k^B)&d^k&B)|0;U=e;o=e>>>0>>0?d+1|0:d;O=K[b+40|0]|K[b+41|0]<<8|(K[b+42|0]<<16|K[b+43|0]<<24);R=O<<24|(O&65280)<<8;n=O&16711680;P=n<<24;n=n>>>8|0;Y=O&-16777216;d=Y>>>24|0;e=K[b+44|0]|K[b+45|0]<<8|(K[b+46|0]<<16|K[b+47|0]<<24);da=P|Y<<8|(((e&255)<<24|O>>>8)&-16777216|((e&16777215)<<8|O>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|n|R;d= -0;d=e|(d|d);O=d;e=d;n=r;d=m+L|0;f=f+x|0;d=f>>>0>>0?d+1|0:d;r=d;m=g;g=f;L=(g^-1)&i;f=m+L|0;d=((d^-1)&h)+n|0;d=f>>>0>>0?d+1|0:d;L=g&y;f=L+f|0;d=(j&r)+d|0;d=f>>>0>>0?d+1|0:d;L=Izb(g,r,50);x=fc;L=Izb(g,r,46)^L;x=fc^x;L=Izb(g,r,23)^L;f=L+f|0;d=(fc^x)+d|0;d=(f>>>0>>0?d+1|0:d)+e|0;e=f+da|0;d=(e>>>0>>0?d+1|0:d)+1508970993|0;e=e-1241133031|0;d=e>>>0<3053834265?d+1|0:d;x=e;f=o;o=d;d=f+d|0;m=e+U|0;d=m>>>0>>0?d+1|0:d;e=Izb(m,d,36);f=fc;n=d;e=Izb(m,d,30)^e;f=fc^f;L=(s^v)&m^s&v;e=L+(Izb(m,d,25)^ -e)|0;d=(fc^f)+((k^l)&d^k&l)|0;R=e;Y=e>>>0>>0?d+1|0:d;f=K[b+48|0]|K[b+49|0]<<8|(K[b+50|0]<<16|K[b+51|0]<<24);P=f<<24|(f&65280)<<8;L=f&16711680;Q=L<<24;L=L>>>8|0;U=f&-16777216;d=U>>>24|0;e=K[b+52|0]|K[b+53|0]<<8|(K[b+54|0]<<16|K[b+55|0]<<24);ea=Q|U<<8|(((e&255)<<24|f>>>8)&-16777216|((e&16777215)<<8|f>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|L|P;d=0;d=e|(d|d);L=d;e=d;f=h;d=o+z|0;G=x+G|0;d=G>>>0>>0?d+1|0:d;h=d;t=i;i=G;z=(i^-1)&y;G=t+z|0;d=((d^-1)&j)+f|0;d=z>>>0>G>>>0?d+1|0:d;f=G;G=g&i;f=f+G|0;d= -(h&r)+d|0;d=f>>>0>>0?d+1|0:d;G=Izb(i,h,50);z=fc;G=Izb(i,h,46)^G;z=fc^z;G=Izb(i,h,23)^G;f=G+f|0;d=(fc^z)+d|0;d=(f>>>0>>0?d+1|0:d)+e|0;e=f+ea|0;P=(e>>>0>>0?d+1|0:d)-((e>>>0<1357295717)+1841331547|0)|0;d=P+Y|0;z=e-1357295717|0;x=z+R|0;d=z>>>0>x>>>0?d+1|0:d;e=Izb(x,d,36);f=fc;R=d;e=Izb(x,d,30)^e;f=fc^f;G=(m^v)&x^m&v;e=G+(Izb(x,d,25)^e)|0;d=(fc^f)+((l^n)&d^l&n)|0;Q=e;o=e>>>0>>0?d+1|0:d;f=K[b+56|0]|K[b+57|0]<<8|(K[b+58|0]<<16|K[b+59|0]<<24);U=f<<24|(f&65280)<<8;G=f&16711680;Z=G<<24;G=G>>>8| -0;Y=f&-16777216;d=Y>>>24|0;e=K[b+60|0]|K[b+61|0]<<8|(K[b+62|0]<<16|K[b+63|0]<<24);Y=Z|Y<<8|(((e&255)<<24|f>>>8)&-16777216|((e&16777215)<<8|f>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|G|U;d=0;d=e|(d|d);G=d;e=d;U=j;d=B+P|0;f=z+H|0;d=f>>>0>>0?d+1|0:d;j=d;H=(f^-1)&g;y=H+y|0;d=((d^-1)&r)+U|0;d=y>>>0>>0?d+1|0:d;H=f&i;y=H+y|0;d=(h&j)+d|0;d=y>>>0>>0?d+1|0:d;H=Izb(f,j,50);z=fc;H=Izb(f,j,46)^H;z=fc^z;H=Izb(f,j,23)^H;y=H+y|0;d=(fc^z)+d|0;d=(y>>>0>>0?d+1|0:d)+e|0;e=y+Y|0;Z=(e>>>0>>0?d+1|0:d)-((e>>> -0<630357736)+1424204074|0)|0;d=Z+o|0;z=e-630357736|0;B=z+Q|0;d=z>>>0>B>>>0?d+1|0:d;e=Izb(B,d,36);y=fc;P=d;e=Izb(B,d,30)^e;y=fc^y;H=(m^x)&B^m&x;e=H+(Izb(B,d,25)^e)|0;d=(fc^y)+((n^R)&d^n&R)|0;Q=e;o=e>>>0>>0?d+1|0:d;y=K[b+64|0]|K[b+65|0]<<8|(K[b+66|0]<<16|K[b+67|0]<<24);W=y<<24|(y&65280)<<8;H=y&16711680;S=H<<24;H=H>>>8|0;U=y&-16777216;d=U>>>24|0;e=K[b+68|0]|K[b+69|0]<<8|(K[b+70|0]<<16|K[b+71|0]<<24);U=S|U<<8|(((e&255)<<24|y>>>8)&-16777216|((e&16777215)<<8|y>>>24)&16711680|(e>>>8&65280|e>>>24));e= -d|H|W;d=0;d=e|(d|d);H=d;e=d;y=g;d=k+Z|0;g=z;z=s+z|0;d=g>>>0>z>>>0?d+1|0:d;g=d;s=(z^-1)&i;y=s+y|0;d=((d^-1)&h)+r|0;d=y>>>0>>0?d+1|0:d;r=f&z;y=r+y|0;d=(g&j)+d|0;d=r>>>0>y>>>0?d+1|0:d;r=Izb(z,g,50);s=fc;r=Izb(z,g,46)^r;s=fc^s;r=Izb(z,g,23)^r;y=r+y|0;d=(fc^s)+d|0;d=(r>>>0>y>>>0?d+1|0:d)+e|0;e=y+U|0;W=(e>>>0>>0?d+1|0:d)-((e>>>0<1560083902)+670586215|0)|0;d=W+o|0;r=e-1560083902|0;o=r+Q|0;d=r>>>0>o>>>0?d+1|0:d;e=Izb(o,d,36);y=fc;Q=d;e=Izb(o,d,30)^e;y=fc^y;s=(x^B)&o^x&B;e=s+(Izb(o,d,25)^e)|0;d=(fc^ -y)+((P^R)&d^P&R)|0;S=e;k=e>>>0>>0?d+1|0:d;y=K[b+72|0]|K[b+73|0]<<8|(K[b+74|0]<<16|K[b+75|0]<<24);D=y<<24|(y&65280)<<8;s=y&16711680;V=s<<24;s=s>>>8|0;Z=y&-16777216;d=Z>>>24|0;e=K[b+76|0]|K[b+77|0]<<8|(K[b+78|0]<<16|K[b+79|0]<<24);Z=V|Z<<8|(((e&255)<<24|y>>>8)&-16777216|((e&16777215)<<8|y>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|s|D;d=0;d=e|(d|d);y=d;e=d;s=h;d=l+W|0;h=r;r=r+v|0;d=h>>>0>r>>>0?d+1|0:d;h=d;l=i;i=r;v=(i^-1)&f;r=l+v|0;d=((d^-1)&j)+s|0;d=r>>>0>>0?d+1|0:d;s=i&z;r=s+r|0;d=(g&h)+d|0;d= -r>>>0>>0?d+1|0:d;s=Izb(i,h,50);v=fc;s=Izb(i,h,46)^s;v=fc^v;s=Izb(i,h,23)^s;r=s+r|0;d=(fc^v)+d|0;d=(r>>>0>>0?d+1|0:d)+e|0;e=r+Z|0;d=(e>>>0>>0?d+1|0:d)+310598401|0;e=e+1164996542|0;d=e>>>0<1164996542?d+1|0:d;s=e;v=d;d=d+k|0;l=e+S|0;d=l>>>0>>0?d+1|0:d;e=Izb(l,d,36);r=fc;p=d;e=Izb(l,d,30)^e;r=fc^r;k=(o^B)&l^o&B;e=k+(Izb(l,d,25)^e)|0;d=(fc^r)+((P^Q)&d^P&Q)|0;D=e;k=e>>>0>>0?d+1|0:d;r=K[b+80|0]|K[b+81|0]<<8|(K[b+82|0]<<16|K[b+83|0]<<24);V=r<<24|(r&65280)<<8;W=r&16711680;q=W<<24;W=W>>>8|0; -S=r&-16777216;d=S>>>24|0;S=q|S<<8;V=d|W|V;e=K[b+84|0]|K[b+85|0]<<8|(K[b+86|0]<<16|K[b+87|0]<<24);W=((e&255)<<24|r>>>8)&-16777216|((e&16777215)<<8|r>>>24)&16711680|(e>>>8&65280|e>>>24)|S;d=0;d=d|d|V;r=d;e=d;S=j;d=n+v|0;j=s;s=m+s|0;d=j>>>0>s>>>0?d+1|0:d;j=d;m=f;f=s;v=(f^-1)&z;s=m+v|0;d=((d^-1)&g)+S|0;d=s>>>0>>0?d+1|0:d;v=f&i;s=v+s|0;d=(h&j)+d|0;d=s>>>0>>0?d+1|0:d;v=Izb(f,j,50);m=fc;v=Izb(f,j,46)^v;m=fc^m;v=Izb(f,j,23)^v;s=v+s|0;d=(fc^m)+d|0;d=(s>>>0>>0?d+1|0:d)+e|0;e=s+W|0;d=(e>>>0>>0?d+ -1|0:d)+607225278|0;e=e+1323610764|0;d=e>>>0<1323610764?d+1|0:d;v=e;m=d;d=d+k|0;q=e+D|0;d=q>>>0>>0?d+1|0:d;e=Izb(q,d,36);s=fc;I=d;e=Izb(q,d,30)^e;s=fc^s;k=(l^o)&q^l&o;e=k+(Izb(q,d,25)^e)|0;d=(fc^s)+((p^Q)&d^p&Q)|0;D=e;k=e>>>0>>0?d+1|0:d;s=K[b+88|0]|K[b+89|0]<<8|(K[b+90|0]<<16|K[b+91|0]<<24);V=s<<24|(s&65280)<<8;n=s&16711680;E=n<<24;n=n>>>8|0;S=s&-16777216;d=S>>>24|0;e=K[b+92|0]|K[b+93|0]<<8|(K[b+94|0]<<16|K[b+95|0]<<24);S=E|S<<8|(((e&255)<<24|s>>>8)&-16777216|((e&16777215)<<8|s>>>24)&16711680| -(e>>>8&65280|e>>>24));e=d|n|V;d=0;d=e|(d|d);s=d;e=d;d=m+R|0;m=v+x|0;d=m>>>0>>0?d+1|0:d;v=d;x=(m^-1)&i;z=x+z|0;d=((d^-1)&h)+g|0;d=x>>>0>z>>>0?d+1|0:d;g=z;z=f&m;g=g+z|0;d=(j&v)+d|0;d=g>>>0>>0?d+1|0:d;z=Izb(m,v,50);x=fc;z=Izb(m,v,46)^z;x=fc^x;z=Izb(m,v,23)^z;g=z+g|0;d=(fc^x)+d|0;d=(g>>>0>>0?d+1|0:d)+e|0;e=g+S|0;d=(e>>>0>>0?d+1|0:d)+1426881987|0;e=e-704662302|0;d=e>>>0<3590304994?d+1|0:d;x=e;g=k;k=d;d=g+d|0;C=e+D|0;d=C>>>0>>0?d+1|0:d;e=Izb(C,d,36);g=fc;A=d;e=Izb(C,d,30)^e;g=fc^g;z=(l^q)& -C^l&q;e=z+(Izb(C,d,25)^e)|0;d=(fc^g)+((p^I)&d^p&I)|0;D=e;n=e>>>0>>0?d+1|0:d;g=K[b+96|0]|K[b+97|0]<<8|(K[b+98|0]<<16|K[b+99|0]<<24);V=g<<24|(g&65280)<<8;z=g&16711680;E=z<<24;z=z>>>8|0;R=g&-16777216;d=R>>>24|0;e=K[b+100|0]|K[b+101|0]<<8|(K[b+102|0]<<16|K[b+103|0]<<24);R=E|R<<8|(((e&255)<<24|g>>>8)&-16777216|((e&16777215)<<8|g>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|z|V;d=0;d=e|(d|d);z=d;e=d;g=h;d=k+P|0;x=x+B|0;d=x>>>0>>0?d+1|0:d;h=d;t=i;i=x;B=(i^-1)&f;x=t+B|0;d=((d^-1)&j)+g|0;d=x>>>0>>0?d+ -1|0:d;g=x;x=i&m;g=g+x|0;d=(h&v)+d|0;d=g>>>0>>0?d+1|0:d;x=Izb(i,h,50);B=fc;x=Izb(i,h,46)^x;B=fc^B;x=Izb(i,h,23)^x;g=x+g|0;d=(fc^B)+d|0;d=(g>>>0>>0?d+1|0:d)+e|0;e=g+R|0;d=(e>>>0>>0?d+1|0:d)+1925078388|0;e=e-226784913|0;d=e>>>0<4068182383?d+1|0:d;B=e;g=n;n=d;d=g+d|0;k=e+D|0;d=k>>>0>>0?d+1|0:d;e=Izb(k,d,36);g=fc;D=d;e=Izb(k,d,30)^e;g=fc^g;x=(q^C)&k^q&C;e=x+(Izb(k,d,25)^e)|0;d=(fc^g)+((A^I)&d^A&I)|0;T=e;P=e>>>0>>0?d+1|0:d;g=K[b+104|0]|K[b+105|0]<<8|(K[b+106|0]<<16|K[b+107|0]<<24);E=g<<24| -(g&65280)<<8;x=g&16711680;u=x<<24;x=x>>>8|0;V=g&-16777216;d=V>>>24|0;e=K[b+108|0]|K[b+109|0]<<8|(K[b+110|0]<<16|K[b+111|0]<<24);V=u|V<<8|(((e&255)<<24|g>>>8)&-16777216|((e&16777215)<<8|g>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|x|E;d=0;d=e|(d|d);x=d;g=d;E=j;d=n+Q|0;e=o+B|0;d=e>>>0>>0?d+1|0:d;j=d;B=(e^-1)&m;f=B+f|0;d=((d^-1)&v)+E|0;d=f>>>0>>0?d+1|0:d;B=e&i;f=B+f|0;d=(h&j)+d|0;d=f>>>0>>0?d+1|0:d;B=Izb(e,j,50);o=fc;B=Izb(e,j,46)^B;o=fc^o;B=Izb(e,j,23)^B;f=B+f|0;d=(fc^o)+d|0;d=(f>>>0>>0?d+ -1|0:d)+g|0;g=f+V|0;u=(g>>>0>>0?d+1|0:d)-((g>>>0<3303631183)+2132889089|0)|0;d=u+P|0;n=g+991336113|0;o=n+T|0;d=n>>>0>o>>>0?d+1|0:d;g=Izb(o,d,36);f=fc;E=d;g=Izb(o,d,30)^g;f=fc^f;B=(k^C)&o^k&C;g=B+(Izb(o,d,25)^g)|0;d=(fc^f)+((A^D)&d^A&D)|0;T=g;Q=g>>>0>>0?d+1|0:d;f=K[b+112|0]|K[b+113|0]<<8|(K[b+114|0]<<16|K[b+115|0]<<24);t=f<<24|(f&65280)<<8;B=f&16711680;_=B<<24;B=B>>>8|0;P=f&-16777216;d=P>>>24|0;g=K[b+116|0]|K[b+117|0]<<8|(K[b+118|0]<<16|K[b+119|0]<<24);P=_|P<<8|(((g&255)<<24|f>>>8)&-16777216| -((g&16777215)<<8|f>>>24)&16711680|(g>>>8&65280|g>>>24));g=d|B|t;d=0;d=g|(d|d);B=d;g=d;d=p+u|0;f=l+n|0;d=f>>>0>>0?d+1|0:d;l=d;t=m;m=f;n=(f^-1)&i;f=t+n|0;d=((d^-1)&h)+v|0;d=f>>>0>>0?d+1|0:d;v=e&m;f=v+f|0;d=(j&l)+d|0;d=f>>>0>>0?d+1|0:d;v=Izb(m,l,50);n=fc;v=Izb(m,l,46)^v;n=fc^n;v=Izb(m,l,23)^v;f=v+f|0;d=(fc^n)+d|0;d=(f>>>0>>0?d+1|0:d)+g|0;g=f+P|0;_=(g>>>0>>0?d+1|0:d)-((g>>>0<3661163979)+1680079192|0)|0;d=_+Q|0;p=g+633803317|0;n=p+T|0;d=p>>>0>n>>>0?d+1|0:d;g=Izb(n,d,36);f=fc;T=d;g=Izb(n, -d,30)^g;f=fc^f;v=(k^o)&n^k&o;g=v+(Izb(n,d,25)^g)|0;d=(fc^f)+((D^E)&d^D&E)|0;va=g;u=g>>>0>>0?d+1|0:d;f=K[b+120|0]|K[b+121|0]<<8|(K[b+122|0]<<16|K[b+123|0]<<24);t=f<<24|(f&65280)<<8;v=f&16711680;w=v<<24;v=v>>>8|0;Q=f&-16777216;d=Q>>>24|0;g=K[b+124|0]|K[b+125|0]<<8|(K[b+126|0]<<16|K[b+127|0]<<24);Q=w|Q<<8|(((g&255)<<24|f>>>8)&-16777216|((g&16777215)<<8|f>>>24)&16711680|(g>>>8&65280|g>>>24));g=d|v|t;d=0;d=g|(d|d);v=d;f=d;t=h;d=I+_|0;g=p+q|0;d=g>>>0

      >>0?d+1|0:d;h=d;q=(g^-1)&e;i=q+i|0;d=((d^-1)&j)+ -t|0;d=i>>>0>>0?d+1|0:d;q=g&m;i=q+i|0;d=(h&l)+d|0;d=i>>>0>>0?d+1|0:d;q=Izb(g,h,50);p=fc;q=Izb(g,h,46)^q;p=fc^p;q=Izb(g,h,23)^q;i=q+i|0;d=(fc^p)+d|0;d=(i>>>0>>0?d+1|0:d)+f|0;f=i+Q|0;d=f>>>0>>0?d+1|0:d;i=f-815192428|0;f=d-((f>>>0<815192428)+1046744715|0)|0;d=f+u|0;q=i+va|0;p=q>>>0>>0?d+1|0:d;d=f+A|0;f=i;i=i+C|0;f=f>>>0>i>>>0?d+1|0:d;va=16;while(1){_=va<<3;d=_+2201632|0;I=J[d>>2];A=J[d+4>>2];d=Izb(P,B,45);C=fc;d=Izb(P,B,3)^d;u=fc^C;t=((B&63)<<26|P>>>6)^d;C=t+Z|0;d=(B>>>6^u)+y|0;d=ja+(t>>> -0>C>>>0?d+1|0:d)|0;t=fa;fa=C+fa|0;ja=t>>>0>fa>>>0?d+1|0:d;d=Izb(ga,ha,63);C=fc;u=((ha&127)<<25|ga>>>7)^(Izb(ga,ha,56)^d);fa=u+fa|0;d=(fc^C^ha>>>7)+ja|0;ja=u>>>0>fa>>>0?d+1|0:d;d=Izb(i,f,50);C=fc;d=Izb(i,f,46)^d;u=fc^C;t=Izb(i,f,23)^d;C=t+(g&i)|0;d=(f&h)+(fc^u)|0;d=j+(t>>>0>C>>>0?d+1|0:d)|0;j=e;e=e+C|0;d=j>>>0>e>>>0?d+1|0:d;j=(i^-1)&m;e=j+e|0;d=((f^-1)&l)+d|0;d=(e>>>0>>0?d+1|0:d)+ja|0;j=e;e=e+fa|0;d=(j>>>0>e>>>0?d+1|0:d)+A|0;j=e;e=e+I|0;j=j>>>0>e>>>0?d+1|0:d;d=Izb(q,p,36);C=fc;d=Izb(q,p,30)^d;I= -fc^C;A=Izb(q,p,25)^d;C=A+(q&(n^o)^n&o)|0;d=(p&(E^T)^E&T)+(fc^I)|0;d=(A>>>0>C>>>0?d+1|0:d)+j|0;t=C;C=e+C|0;d=t>>>0>C>>>0?d+1|0:d;I=Izb(C,d,36);A=fc;t=I;I=d;u=t^Izb(C,d,30);t=fc^A;A=Izb(C,d,25)^u;u=(n^q)&C^n&q;A=A+u|0;d=(fc^t)+((p^T)&d^p&T)|0;t=A;A=u>>>0>t>>>0?d+1|0:d;d=(_|8)+2201632|0;w=J[d>>2];M=J[d+4>>2];d=Izb(Q,v,45);u=fc;d=Izb(Q,v,3)^d;aa=fc^u;oa=((v&63)<<26|Q>>>6)^d;u=oa+W|0;d=(v>>>6^aa)+r|0;d=ha+(u>>>0>>0?d+1|0:d)|0;oa=ga;ga=u+ga|0;ha=oa>>>0>ga>>>0?d+1|0:d;d=Izb(ba,X,63);u=fc;aa=((X&127)<< -25|ba>>>7)^(Izb(ba,X,56)^d);ga=aa+ga|0;d=(fc^u^X>>>7)+ha|0;ha=ga>>>0>>0?d+1|0:d;d=l+ha|0;l=m;m=m+ga|0;d=(l>>>0>m>>>0?d+1|0:d)+M|0;l=m;m=m+w|0;d=l>>>0>m>>>0?d+1|0:d;l=m;m=d;d=j+D|0;j=e+k|0;d=j>>>0>>0?d+1|0:d;e=d;k=l;l=(j^-1)&g;k=k+l|0;d=((d^-1)&h)+m|0;d=k>>>0>>0?d+1|0:d;m=k;k=i&j;m=m+k|0;d=(e&f)+d|0;d=k>>>0>m>>>0?d+1|0:d;k=Izb(j,e,50);l=fc;k=Izb(j,e,46)^k;l=fc^l;k=Izb(j,e,23)^k;m=k+m|0;d=(fc^l)+d|0;k=k>>>0>m>>>0?d+1|0:d;d=k+A|0;l=m+t|0;d=l>>>0>>0?d+1|0:d;D=Izb(l,d,36);u=fc;A=d;D=Izb(l, -d,30)^D;u=fc^u;t=(q^C)&l^q&C;D=t+(Izb(l,d,25)^D)|0;d=(fc^u)+((p^I)&d^p&I)|0;u=D;D=u>>>0>>0?d+1|0:d;d=(_|16)+2201632|0;t=J[d>>2];w=J[d+4>>2];d=s+X|0;X=ba;ba=S+ba|0;X=X>>>0>ba>>>0?d+1|0:d;d=Izb(ca,N,63);M=fc;aa=((N&127)<<25|ca>>>7)^(Izb(ca,N,56)^d);ba=aa+ba|0;d=(fc^M^N>>>7)+X|0;X=ba>>>0>>0?d+1|0:d;d=Izb(fa,ja,45);M=fc;aa=((ja&63)<<26|fa>>>6)^(Izb(fa,ja,3)^d);ba=aa+ba|0;d=(fc^M^ja>>>6)+X|0;X=ba>>>0>>0?d+1|0:d;d=h+X|0;h=g;g=g+ba|0;d=(h>>>0>g>>>0?d+1|0:d)+w|0;h=g;g=g+t|0;d=h>>>0>g>>>0?d+1|0: -d;t=g;h=d;d=k+E|0;g=m+o|0;d=g>>>0>>0?d+1|0:d;m=d;o=(g^-1)&i;k=o+t|0;d=((d^-1)&f)+h|0;d=k>>>0>>0?d+1|0:d;h=k;k=g&j;h=h+k|0;d=(e&m)+d|0;d=h>>>0>>0?d+1|0:d;k=Izb(g,m,50);o=fc;k=Izb(g,m,46)^k;o=fc^o;k=Izb(g,m,23)^k;h=k+h|0;d=(fc^o)+d|0;k=h>>>0>>0?d+1|0:d;d=k+D|0;D=h+u|0;d=D>>>0>>0?d+1|0:d;o=Izb(D,d,36);E=fc;u=d;o=Izb(D,d,30)^o;E=fc^E;t=(l^C)&D^l&C;o=t+(Izb(D,d,25)^o)|0;d=(fc^E)+((A^I)&d^A&I)|0;E=o;o=o>>>0>>0?d+1|0:d;d=(_|24)+2201632|0;t=J[d>>2];w=J[d+4>>2];d=z+N|0;ca=R+ca|0;N=ca>>>0< -R>>>0?d+1|0:d;d=Izb($,F,63);M=fc;aa=((F&127)<<25|$>>>7)^(Izb($,F,56)^d);ca=aa+ca|0;d=(fc^M^F>>>7)+N|0;N=ca>>>0>>0?d+1|0:d;d=Izb(ga,ha,45);M=fc;aa=((ha&63)<<26|ga>>>6)^(Izb(ga,ha,3)^d);ca=aa+ca|0;d=(fc^M^ha>>>6)+N|0;N=ca>>>0>>0?d+1|0:d;d=f+N|0;f=i;i=i+ca|0;d=(f>>>0>i>>>0?d+1|0:d)+w|0;f=i;i=i+t|0;d=f>>>0>i>>>0?d+1|0:d;t=i;f=d;d=k+T|0;h=h+n|0;d=h>>>0>>0?d+1|0:d;i=d;n=(h^-1)&j;k=n+t|0;d=((d^-1)&e)+f|0;d=k>>>0>>0?d+1|0:d;f=k;k=g&h;f=f+k|0;d=(i&m)+d|0;d=f>>>0>>0?d+1|0:d;k=Izb(h,i,50);n= -fc;k=Izb(h,i,46)^k;n=fc^n;k=Izb(h,i,23)^k;f=k+f|0;d=(fc^n)+d|0;k=f>>>0>>0?d+1|0:d;d=k+o|0;E=f+E|0;d=E>>>0>>0?d+1|0:d;o=Izb(E,d,36);n=fc;T=d;o=Izb(E,d,30)^o;n=fc^n;t=(l^D)&E^l&D;o=t+(Izb(E,d,25)^o)|0;d=(fc^n)+((u^A)&d^u&A)|0;d=o>>>0>>0?d+1|0:d;t=o;o=d;d=(_|32)+2201632|0;w=J[d>>2];M=J[d+4>>2];d=x+F|0;n=V+$|0;F=n>>>0<$>>>0?d+1|0:d;d=Izb(da,O,63);$=fc;aa=((O&127)<<25|da>>>7)^(Izb(da,O,56)^d);n=aa+n|0;d=(fc^$^O>>>7)+F|0;F=n>>>0>>0?d+1|0:d;d=Izb(ba,X,45);$=fc;d=Izb(ba,X,3)^d;aa=fc^$;oa=n;n= -((X&63)<<26|ba>>>6)^d;$=oa+n|0;d=(X>>>6^aa)+F|0;F=n>>>0>$>>>0?d+1|0:d;d=F+e|0;e=j+$|0;d=(e>>>0<$>>>0?d+1|0:d)+M|0;j=e;e=e+w|0;d=j>>>0>e>>>0?d+1|0:d;n=e;j=d;d=k+p|0;e=f+q|0;d=e>>>0>>0?d+1|0:d;f=d;p=n;n=(e^-1)&g;k=p+n|0;d=((d^-1)&m)+j|0;d=k>>>0>>0?d+1|0:d;j=k;k=e&h;j=j+k|0;d=(f&i)+d|0;d=j>>>0>>0?d+1|0:d;k=Izb(e,f,50);n=fc;k=Izb(e,f,46)^k;n=fc^n;k=Izb(e,f,23)^k;j=k+j|0;d=(fc^n)+d|0;n=o;o=j>>>0>>0?d+1|0:d;d=n+o|0;k=j+t|0;d=k>>>0>>0?d+1|0:d;n=Izb(k,d,36);p=fc;q=d;n=Izb(k,d,30)^n;p=fc^p; -t=(D^E)&k^D&E;n=t+(Izb(k,d,25)^n)|0;d=(fc^p)+((u^T)&d^u&T)|0;d=n>>>0>>0?d+1|0:d;t=n;n=d;d=B+O|0;da=P+da|0;O=da>>>0

      >>0?d+1|0:d;d=Izb(ea,L,63);p=fc;w=((L&127)<<25|ea>>>7)^(Izb(ea,L,56)^d);da=w+da|0;d=(fc^p^L>>>7)+O|0;O=w>>>0>da>>>0?d+1|0:d;d=Izb(ca,N,45);p=fc;w=((N&63)<<26|ca>>>6)^(Izb(ca,N,3)^d);da=w+da|0;d=(fc^p^N>>>6)+O|0;d=w>>>0>da>>>0?d+1|0:d;w=(_|40)+2201632|0;M=J[w>>2];p=M+da|0;O=d;d=d+J[w+4>>2]|0;d=m+(p>>>0>>0?d+1|0:d)|0;m=g;g=g+p|0;d=m>>>0>g>>>0?d+1|0:d;p=g;g=d;d=o+I|0;m=j;j=j+C|0; -d=m>>>0>j>>>0?d+1|0:d;m=d;o=p;p=(j^-1)&h;o=o+p|0;d=((d^-1)&i)+g|0;d=o>>>0

      >>0?d+1|0:d;g=o;o=e&j;g=g+o|0;d=(f&m)+d|0;d=g>>>0>>0?d+1|0:d;o=Izb(j,m,50);p=fc;o=Izb(j,m,46)^o;p=fc^p;o=Izb(j,m,23)^o;g=o+g|0;d=(fc^p)+d|0;p=n;n=g>>>0>>0?d+1|0:d;d=p+n|0;o=g+t|0;d=o>>>0>>0?d+1|0:d;p=Izb(o,d,36);I=fc;C=d;p=Izb(o,d,30)^p;I=fc^I;t=(k^E)&o^k&E;p=t+(Izb(o,d,25)^p)|0;d=(fc^I)+((q^T)&d^q&T)|0;d=p>>>0>>0?d+1|0:d;t=p;p=d;d=v+L|0;ea=Q+ea|0;L=ea>>>0>>0?d+1|0:d;d=Izb(Y,G,63);I=fc;w=((G&127)<<25|Y>>>7)^ -(Izb(Y,G,56)^d);ea=w+ea|0;d=(fc^I^G>>>7)+L|0;L=w>>>0>ea>>>0?d+1|0:d;d=Izb($,F,45);I=fc;w=((F&63)<<26|$>>>6)^(Izb($,F,3)^d);ea=w+ea|0;d=(fc^I^F>>>6)+L|0;d=w>>>0>ea>>>0?d+1|0:d;w=(_|48)+2201632|0;M=J[w>>2];I=M+ea|0;L=d;d=d+J[w+4>>2]|0;d=i+(I>>>0>>0?d+1|0:d)|0;i=h;h=h+I|0;d=i>>>0>h>>>0?d+1|0:d;I=h;i=d;d=n+A|0;h=g;g=g+l|0;d=h>>>0>g>>>0?d+1|0:d;h=d;n=(g^-1)&e;l=n+I|0;d=((d^-1)&f)+i|0;d=l>>>0>>0?d+1|0:d;i=l;l=g&j;i=i+l|0;d=(h&m)+d|0;d=i>>>0>>0?d+1|0:d;l=Izb(g,h,50);n=fc;l=Izb(g,h,46)^l;n=fc^n; -l=Izb(g,h,23)^l;i=l+i|0;d=(fc^n)+d|0;n=i>>>0>>0?d+1|0:d;d=n+p|0;l=i+t|0;d=l>>>0>>0?d+1|0:d;p=Izb(l,d,36);A=fc;I=d;p=Izb(l,d,30)^p;A=fc^A;t=(k^o)&l^k&o;p=t+(Izb(l,d,25)^p)|0;d=(fc^A)+((q^C)&d^q&C)|0;d=p>>>0>>0?d+1|0:d;t=p;p=d;d=Izb(U,H,63);A=fc;d=Izb(U,H,56)^d;w=fc^A;A=Y+(((H&127)<<25|U>>>7)^d)|0;d=G+(H>>>7^w)|0;d=ja+(A>>>0>>0?d+1|0:d)|0;Y=A+fa|0;G=Y>>>0>>0?d+1|0:d;d=Izb(da,O,45);A=fc;w=((O&63)<<26|da>>>6)^(Izb(da,O,3)^d);Y=w+Y|0;d=(fc^A^O>>>6)+G|0;d=w>>>0>Y>>>0?d+1|0:d;w=(_|56)+2201632| -0;M=J[w>>2];A=M+Y|0;G=d;d=d+J[w+4>>2]|0;d=f+(A>>>0>>0?d+1|0:d)|0;f=e;e=e+A|0;d=f>>>0>e>>>0?d+1|0:d;A=e;f=d;d=n+u|0;e=i+D|0;d=e>>>0>>0?d+1|0:d;i=d;D=(e^-1)&j;n=D+A|0;d=((d^-1)&m)+f|0;d=n>>>0>>0?d+1|0:d;f=n;n=e&g;f=f+n|0;d=(h&i)+d|0;d=f>>>0>>0?d+1|0:d;n=Izb(e,i,50);D=fc;n=Izb(e,i,46)^n;D=fc^D;n=Izb(e,i,23)^n;f=n+f|0;d=(fc^D)+d|0;D=p;p=f>>>0>>0?d+1|0:d;d=D+p|0;n=f+t|0;d=n>>>0>>0?d+1|0:d;D=Izb(n,d,36);A=fc;t=D;D=d;u=t^Izb(n,d,30);t=fc^A;A=Izb(n,d,25)^u;u=(l^o)&n^l&o;A=A+u|0;d=(fc^t)+ -((C^I)&d^C&I)|0;t=A;A=u>>>0>t>>>0?d+1|0:d;d=Izb(Z,y,63);u=fc;d=Izb(Z,y,56)^d;w=fc^u;u=U+(((y&127)<<25|Z>>>7)^d)|0;d=H+(y>>>7^w)|0;d=ha+(u>>>0>>0?d+1|0:d)|0;U=u+ga|0;H=U>>>0>>0?d+1|0:d;d=Izb(ea,L,45);u=fc;w=((L&63)<<26|ea>>>6)^(Izb(ea,L,3)^d);U=w+U|0;d=(fc^u^L>>>6)+H|0;d=w>>>0>U>>>0?d+1|0:d;w=(_|64)+2201632|0;M=J[w>>2];u=M+U|0;H=d;d=d+J[w+4>>2]|0;d=m+(u>>>0>>0?d+1|0:d)|0;m=j;j=j+u|0;d=m>>>0>j>>>0?d+1|0:d;u=j;m=d;d=p+T|0;j=f+E|0;d=j>>>0>>0?d+1|0:d;f=d;E=(j^-1)&g;p=E+u|0;d=((d^-1)&h)+m| -0;d=p>>>0>>0?d+1|0:d;m=p;p=e&j;m=m+p|0;d=(f&i)+d|0;d=m>>>0

      >>0?d+1|0:d;p=Izb(j,f,50);E=fc;p=Izb(j,f,46)^p;E=fc^E;p=Izb(j,f,23)^p;m=p+m|0;d=(fc^E)+d|0;p=m>>>0

      >>0?d+1|0:d;d=p+A|0;E=m+t|0;d=E>>>0>>0?d+1|0:d;T=Izb(E,d,36);A=fc;t=T;T=d;u=t^Izb(E,d,30);t=fc^A;A=Izb(E,d,25)^u;u=(l^n)&E^l&n;A=A+u|0;d=(fc^t)+((D^I)&d^D&I)|0;t=A;A=u>>>0>t>>>0?d+1|0:d;d=Izb(W,r,63);u=fc;d=Izb(W,r,56)^d;w=fc^u;u=Z+(((r&127)<<25|W>>>7)^d)|0;d=y+(r>>>7^w)|0;d=X+(u>>>0>>0?d+1|0:d)|0;Z=u+ba|0;y=Z>>>0>>0?d+1|0:d; -d=Izb(Y,G,45);u=fc;w=((G&63)<<26|Y>>>6)^(Izb(Y,G,3)^d);Z=w+Z|0;d=(fc^u^G>>>6)+y|0;d=w>>>0>Z>>>0?d+1|0:d;w=(_|72)+2201632|0;M=J[w>>2];u=M+Z|0;y=d;d=d+J[w+4>>2]|0;d=h+(u>>>0>>0?d+1|0:d)|0;h=g;g=g+u|0;d=h>>>0>g>>>0?d+1|0:d;u=g;h=d;d=p+q|0;g=k+m|0;d=g>>>0>>0?d+1|0:d;m=d;q=(g^-1)&e;k=q+u|0;d=((d^-1)&i)+h|0;d=k>>>0>>0?d+1|0:d;h=k;k=g&j;h=h+k|0;d=(f&m)+d|0;d=h>>>0>>0?d+1|0:d;k=Izb(g,m,50);q=fc;k=Izb(g,m,46)^k;q=fc^q;k=Izb(g,m,23)^k;h=k+h|0;d=(fc^q)+d|0;k=h>>>0>>0?d+1|0:d;d=k+A|0;p=h+t|0;d= -p>>>0>>0?d+1|0:d;q=Izb(p,d,36);u=fc;A=d;q=Izb(p,d,30)^q;u=fc^u;t=(n^E)&p^n&E;q=t+(Izb(p,d,25)^q)|0;d=(fc^u)+((D^T)&d^D&T)|0;d=q>>>0>>0?d+1|0:d;t=q;q=d;d=Izb(S,s,63);u=fc;d=Izb(S,s,56)^d;w=fc^u;u=W+(((s&127)<<25|S>>>7)^d)|0;d=r+(s>>>7^w)|0;d=N+(u>>>0>>0?d+1|0:d)|0;W=u+ca|0;r=W>>>0>>0?d+1|0:d;d=Izb(U,H,45);u=fc;w=((H&63)<<26|U>>>6)^(Izb(U,H,3)^d);W=w+W|0;d=(fc^u^H>>>6)+r|0;d=w>>>0>W>>>0?d+1|0:d;w=(_|80)+2201632|0;M=J[w>>2];u=M+W|0;r=d;d=d+J[w+4>>2]|0;d=i+(u>>>0>>0?d+1|0:d)|0;i=e;e=e+ -u|0;d=i>>>0>e>>>0?d+1|0:d;w=e;u=d;d=k+C|0;e=h+o|0;d=e>>>0>>0?d+1|0:d;i=d;k=(e^-1)&j;h=k+w|0;d=((d^-1)&f)+u|0;d=h>>>0>>0?d+1|0:d;k=e&g;h=k+h|0;d=(i&m)+d|0;d=h>>>0>>0?d+1|0:d;k=Izb(e,i,50);o=fc;k=Izb(e,i,46)^k;o=fc^o;k=Izb(e,i,23)^k;h=k+h|0;d=(fc^o)+d|0;k=h>>>0>>0?d+1|0:d;d=k+q|0;C=h+t|0;d=C>>>0>>0?d+1|0:d;o=Izb(C,d,36);q=fc;u=d;o=Izb(C,d,30)^o;q=fc^q;t=(p^E)&C^p&E;o=t+(Izb(C,d,25)^o)|0;d=(fc^q)+((A^T)&d^A&T)|0;d=o>>>0>>0?d+1|0:d;t=o;o=d;d=Izb(R,z,63);q=fc;d=Izb(R,z,56)^d;w=fc^q;q= -S+(((z&127)<<25|R>>>7)^d)|0;d=s+(z>>>7^w)|0;d=F+(q>>>0>>0?d+1|0:d)|0;S=q+$|0;s=S>>>0<$>>>0?d+1|0:d;d=Izb(Z,y,45);q=fc;w=((y&63)<<26|Z>>>6)^(Izb(Z,y,3)^d);S=w+S|0;d=(fc^q^y>>>6)+s|0;d=w>>>0>S>>>0?d+1|0:d;w=(_|88)+2201632|0;M=J[w>>2];q=M+S|0;s=d;d=d+J[w+4>>2]|0;d=f+(q>>>0>>0?d+1|0:d)|0;f=j;j=j+q|0;d=f>>>0>j>>>0?d+1|0:d;q=j;j=d;d=k+I|0;h=h+l|0;d=h>>>0>>0?d+1|0:d;f=d;l=(h^-1)&g;k=l+q|0;d=((d^-1)&m)+j|0;d=k>>>0>>0?d+1|0:d;j=k;k=e&h;j=j+k|0;d=(f&i)+d|0;d=j>>>0>>0?d+1|0:d;k=Izb(h,f,50);l= -fc;k=Izb(h,f,46)^k;l=fc^l;k=Izb(h,f,23)^k;j=k+j|0;d=(fc^l)+d|0;k=j>>>0>>0?d+1|0:d;d=k+o|0;I=j+t|0;d=I>>>0>>0?d+1|0:d;o=Izb(I,d,36);l=fc;t=d;o=Izb(I,d,30)^o;l=fc^l;q=(p^C)&I^p&C;o=q+(Izb(I,d,25)^o)|0;d=(fc^l)+((u^A)&d^u&A)|0;w=o;o=o>>>0>>0?d+1|0:d;d=Izb(V,x,63);l=fc;d=Izb(V,x,56)^d;q=fc^l;l=R+(((x&127)<<25|V>>>7)^d)|0;d=z+(x>>>7^q)|0;d=O+(l>>>0>>0?d+1|0:d)|0;l=l+da|0;z=l>>>0>>0?d+1|0:d;d=Izb(W,r,45);R=fc;d=Izb(W,r,3)^d;q=fc^R;R=l;l=((r&63)<<26|W>>>6)^d;R=R+l|0;d=(r>>>6^q)+z|0;d=l>>> -0>R>>>0?d+1|0:d;q=(_|96)+2201632|0;M=J[q>>2];l=M+R|0;z=d;d=d+J[q+4>>2]|0;d=m+(l>>>0>>0?d+1|0:d)|0;m=g;g=g+l|0;d=m>>>0>g>>>0?d+1|0:d;l=g;m=d;d=k+D|0;g=j+n|0;d=g>>>0>>0?d+1|0:d;q=d;k=(g^-1)&e;j=k+l|0;d=((d^-1)&i)+m|0;d=j>>>0>>0?d+1|0:d;m=g&h;j=m+j|0;d=(f&q)+d|0;d=j>>>0>>0?d+1|0:d;m=Izb(g,q,50);k=fc;m=Izb(g,q,46)^m;k=fc^k;m=Izb(g,q,23)^m;j=m+j|0;d=(fc^k)+d|0;m=j>>>0>>0?d+1|0:d;d=m+o|0;k=j+w|0;d=k>>>0>>0?d+1|0:d;o=Izb(k,d,36);l=fc;D=d;o=Izb(k,d,30)^o;l=fc^l;n=(C^I)&k^C&I;o=n+(Izb(k, -d,25)^o)|0;d=(fc^l)+((u^t)&d^u&t)|0;d=n>>>0>o>>>0?d+1|0:d;n=o;o=d;d=Izb(P,B,63);l=fc;d=Izb(P,B,56)^d;w=fc^l;l=V+(((B&127)<<25|P>>>7)^d)|0;d=x+(B>>>7^w)|0;d=L+(l>>>0>>0?d+1|0:d)|0;l=l+ea|0;x=l>>>0>>0?d+1|0:d;d=Izb(S,s,45);V=fc;d=Izb(S,s,3)^d;w=fc^V;oa=l;l=((s&63)<<26|S>>>6)^d;V=oa+l|0;d=(s>>>6^w)+x|0;d=l>>>0>V>>>0?d+1|0:d;w=(_|104)+2201632|0;M=J[w>>2];l=M+V|0;x=d;d=d+J[w+4>>2]|0;d=i+(l>>>0>>0?d+1|0:d)|0;i=e;e=e+l|0;d=i>>>0>e>>>0?d+1|0:d;l=e;i=d;d=m+T|0;e=j+E|0;d=e>>>0>>0?d+1|0:d;j=d;m= -l;l=(e^-1)&h;m=m+l|0;d=((d^-1)&f)+i|0;d=l>>>0>m>>>0?d+1|0:d;i=m;m=e&g;i=i+m|0;d=(j&q)+d|0;d=i>>>0>>0?d+1|0:d;m=Izb(e,j,50);l=fc;m=Izb(e,j,46)^m;l=fc^l;m=Izb(e,j,23)^m;i=m+i|0;d=(fc^l)+d|0;m=i>>>0>>0?d+1|0:d;d=m+o|0;o=i+n|0;d=o>>>0>>0?d+1|0:d;l=Izb(o,d,36);n=fc;E=d;l=Izb(o,d,30)^l;n=fc^n;T=(k^I)&o^k&I;l=T+(Izb(o,d,25)^l)|0;d=(fc^n)+((t^D)&d^t&D)|0;d=l>>>0>>0?d+1|0:d;T=l;n=d;d=Izb(Q,v,63);l=fc;d=Izb(Q,v,56)^d;w=fc^l;l=P+(((v&127)<<25|Q>>>7)^d)|0;d=B+(v>>>7^w)|0;d=G+(l>>>0

      >>0?d+1|0:d)| -0;l=l+Y|0;B=l>>>0>>0?d+1|0:d;d=Izb(R,z,45);P=fc;d=Izb(R,z,3)^d;w=fc^P;oa=l;l=((z&63)<<26|R>>>6)^d;P=oa+l|0;d=(z>>>6^w)+B|0;d=l>>>0>P>>>0?d+1|0:d;w=(_|112)+2201632|0;M=J[w>>2];l=M+P|0;B=d;d=d+J[w+4>>2]|0;d=f+(l>>>0>>0?d+1|0:d)|0;f=h;h=h+l|0;d=f>>>0>h>>>0?d+1|0:d;f=h;h=d;d=m+A|0;m=i+p|0;d=m>>>0

      >>0?d+1|0:d;l=d;i=f;f=(m^-1)&g;i=i+f|0;d=((d^-1)&q)+h|0;d=f>>>0>i>>>0?d+1|0:d;h=i;i=e&m;h=h+i|0;d=(j&l)+d|0;d=h>>>0>>0?d+1|0:d;i=Izb(m,l,50);f=fc;i=Izb(m,l,46)^i;f=fc^f;i=Izb(m,l,23)^i;h=i+h|0;d=(fc^ -f)+d|0;i=h>>>0>>0?d+1|0:d;d=i+n|0;n=h+T|0;d=n>>>0>>0?d+1|0:d;f=Izb(n,d,36);p=fc;T=d;f=Izb(n,d,30)^f;p=fc^p;A=(k^o)&n^k&o;f=A+(Izb(n,d,25)^f)|0;d=(fc^p)+((D^E)&d^D&E)|0;d=f>>>0>>0?d+1|0:d;A=f;f=d;d=Izb(fa,ja,63);p=fc;d=Izb(fa,ja,56)^d;w=fc^p;p=Q+(((ja&127)<<25|fa>>>7)^d)|0;d=v+(ja>>>7^w)|0;d=H+(p>>>0>>0?d+1|0:d)|0;Q=p+U|0;v=Q>>>0>>0?d+1|0:d;d=Izb(V,x,45);p=fc;w=((x&63)<<26|V>>>6)^(Izb(V,x,3)^d);Q=w+Q|0;d=(fc^p^x>>>6)+v|0;d=w>>>0>Q>>>0?d+1|0:d;_=(_|120)+2201632|0;w=J[_>>2];p=w+Q|0;v= -d;d=d+J[_+4>>2]|0;d=q+(p>>>0>>0?d+1|0:d)|0;q=g;g=g+p|0;d=q>>>0>g>>>0?d+1|0:d;p=g;q=d;d=i+u|0;g=h+C|0;d=g>>>0>>0?d+1|0:d;h=d;i=p;p=(g^-1)&e;i=i+p|0;d=((d^-1)&j)+q|0;d=i>>>0

      >>0?d+1|0:d;q=g&m;i=q+i|0;d=(h&l)+d|0;d=i>>>0>>0?d+1|0:d;q=Izb(g,h,50);p=fc;q=Izb(g,h,46)^q;p=fc^p;q=Izb(g,h,23)^q;i=q+i|0;d=(fc^p)+d|0;p=f;f=i>>>0>>0?d+1|0:d;d=p+f|0;q=i+A|0;p=q>>>0>>0?d+1|0:d;d=f+t|0;f=i;i=i+I|0;f=f>>>0>i>>>0?d+1|0:d;d=va>>>0<64;va=va+16|0;if(d)continue;break}d=j+za|0;j=ra;ra=e+ra|0;d=j>>>0>ra>>> -0?d+1|0:d;za=d;J[a+56>>2]=ra;J[a+60>>2]=d;d=l+ya|0;e=sa;sa=m+sa|0;d=e>>>0>sa>>>0?d+1|0:d;ya=d;J[a+48>>2]=sa;J[a+52>>2]=d;d=h+wa|0;e=qa;qa=g+qa|0;d=e>>>0>qa>>>0?d+1|0:d;wa=d;J[a+40>>2]=qa;J[a+44>>2]=d;d=f+na|0;e=ka;ka=i+ka|0;d=e>>>0>ka>>>0?d+1|0:d;na=d;J[a+32>>2]=ka;J[a+36>>2]=d;d=D+Aa|0;e=ta;ta=k+ta|0;d=e>>>0>ta>>>0?d+1|0:d;Aa=d;J[a+24>>2]=ta;J[a+28>>2]=d;d=E+xa|0;e=pa;pa=o+pa|0;d=e>>>0>pa>>>0?d+1|0:d;xa=d;J[a+16>>2]=pa;J[a+20>>2]=d;d=T+ua|0;e=la;la=n+la|0;d=e>>>0>la>>>0?d+1|0:d;ua=d;J[a+8>>2]=la; -J[a+12>>2]=d;d=p+ma|0;e=ia;ia=q+ia|0;d=e>>>0>ia>>>0?d+1|0:d;ma=d;J[a>>2]=ia;J[a+4>>2]=d;b=b+128|0;c=c-1|0;if(c)continue;break}}}function hB(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;o=bc-32|0;bc=o;a:{if(!a){f=1;break a}f=J[a+84>>2];if(J[a+212>>2]==1?f:0)break a;b:{c:{f=J[a+172>>2];switch(f+1|0){case 0:break a;case 1:break c;default:break b}}mw(a)}if(!(d|(!b|(c|0)<=0))){s=K[(b+c|0)-1|0]==13;c=c-s|0}d:{while(1){e:{f:{g:{h:{i:{j:{k:{l:{if(!b|(c|0)<=0)break l; -e=J[a+36>>2];if(!e)break l;f=J[e>>2];if(!f)break l;if(J[a+172>>2]==-1)break k;g=Gw(J[f+16>>2],e);e=J[a+36>>2];h=J[e+12>>2];i=J[e+16>>2];q=ui(J[J[e>>2]+16>>2]);e=J[a+36>>2];f=0;m:{if(J[a+172>>2]){n=c;break m}n=J[e>>2];if(!n){n=c;break m}l=J[n+12>>2];if(!l){n=c;break m}n=90;n:{if(vB(J[l>>2],22625))break n;if(vB(J[J[J[J[a+36>>2]>>2]+12>>2]>>2],22619))break n;o:{if(vB(J[J[J[J[a+36>>2]>>2]+12>>2]>>2],22855))break o;if(vB(J[J[J[J[a+36>>2]>>2]+12>>2]>>2],22744))break o;n=45;break n}n=180}e=J[a+36>>2];f= -J[J[e>>2]+32>>2];f=n-(f>>>0>>0?f:0)|0;n=c>>>0>>0?c:f;f=c-f|0;f=c>>>0>=f>>>0?f:0}if((BB(J[e>>2],n,b)|0)>=0)break i;J[a+212>>2]=1;f=-1;J[a+172>>2]=-1;J[a+84>>2]=-1;c=J[a+36>>2];if(!c)break a;b=J[c+40>>2];if(b){gc[b|0](J[c+12>>2]);c=J[a+36>>2];J[c+40>>2]=0}J[c+12>>2]=39181;J[c+16>>2]=39181;break a}if(J[a+172>>2]==-1)break k;f=J[a+36>>2];if(!f){n=c;break g}e=J[f>>2];if(!e){n=c;break g}if(!J[e+12>>2])break k;g=J[e+16>>2];if(!g|!J[e+20>>2])break k;f=Gw(g,f);g=J[a+36>>2];h=J[g+12>>2];g=J[g+16>>2]; -if((MB(e,d)|0)<0)break j;Fw(J[e+16>>2],J[a+36>>2],f,g-h|0)}n=c;break h}gc[J[659549]](J[689514],32954,0);f=81;break a}c=J[a+36>>2];Fw(J[J[c>>2]+16>>2],c,g,i-h|0);e=0;if(!f)break h;t=0;c=f;break f}c=J[a+36>>2];if(!c)break g;c=J[c>>2];if(!c)break g;r=ui(J[c+16>>2])}c=0;t=1;if(d){e=d;break f}if(r>>>0>15E6){e=d;break f}if(!q){e=d;break f}if(!r){e=d;break f}g=r-q|0;if((g|0)<0){e=d;break f}h=J[J[a+36>>2]+12>>2];if(!h){e=d;break f}p:{e=J[a+172>>2];if((e|0)==6|(e|0)==9)break p;f=J[a+292>>2];if((f|0)==2|(e| -0)==8|((f|0)==5|(e|0)==3))break p;if((f|0)==3)break p;e=d;break f}e=d;if(!pg(h+q|0,62,g))break e}l=e;u=0;k=bc-240|0;bc=k;e=J[a+36>>2];q:{if(!e)break q;if((J[e+16>>2]-J[e+12>>2]|0)>=4097){Pg(a);J[a+204>>2]=0}hJ(a,k+232|0,k+228|0);if(J[a+172>>2]==-1)break q;while(1){if(J[a+212>>2]==1?J[a+84>>2]:0)break q;f=J[a+36>>2];g=J[f+16>>2];r:{if(K[g|0])break r;e=J[a+40>>2];if((e|0)<=1)break r;while(1){s:{t:{u:{if(!J[689531]){i=e-1|0;J[a+40>>2]=i;f=J[a+48>>2];break u}J[k+48>>2]=e;f=0;gc[J[659549]](J[689514],36109, -k+48|0);e=J[a+40>>2];if((e|0)<=0)break s;i=e-1|0;J[a+40>>2]=i;f=J[a+48>>2];h=0;g=0;if((e|0)==1)break t}h=J[((e<<2)+f|0)-8>>2];g=i}J[a+36>>2]=h;e=(g<<2)+f|0;f=J[e>>2];J[e>>2]=0}dh(f);e=J[a+36>>2];v:{if(K[J[e+16>>2]])break v;if((Cd(e)|0)>0)break v;e=J[a+40>>2];if((e|0)>=2)continue}f=J[a+36>>2];g=J[f+16>>2];if(K[g|0])break r;e=J[a+40>>2];if((e|0)>1)continue;break}}e=J[f>>2];w:{if(!e){e=J[f+24>>2];break w}x:{if(!J[a+172>>2])break x;h=J[e+20>>2];if(!h)break x;g=-1;if(!(J[h+32>>2]|!h)){e=J[h+8>>2];if(!((e| -0)==J[h+24>>2]|e>>>0>2147483646))J[h+24>>2]=e;g=J[h+20>>2];e=J[h+4>>2];if((g|0)==(e|0)|e>>>0>2147483646)e=g;else J[h+20>>2]=e;g=!e}f=J[a+36>>2];if(g)break x;f=Gw(J[J[f>>2]+16>>2],f);e=J[a+36>>2];g=J[e+12>>2];h=J[e+16>>2];BB(J[e>>2],0,39181);e=J[a+36>>2];Fw(J[J[e>>2]+16>>2],e,f,h-g|0);f=J[a+36>>2]}e=ui(J[J[f>>2]+16>>2]);f=J[a+36>>2];g=J[f+16>>2]}e=e-g|0;g=J[f+12>>2];m=e+g|0;if((m|0)<=0)break q;y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{e= -J[a+172>>2];switch(e+1|0){case 0:break q;case 6:break L;case 16:break M;case 3:break N;case 11:break O;case 12:break Q;case 13:break R;case 14:break S;case 17:break T;case 4:break Z;case 15:break _;case 5:break $;case 2:break aa;case 9:break ba;case 10:break ca;case 8:break da;case 7:break ea;case 1:break fa;default:break y}}if(!J[a+256>>2]){if(m>>>0<4)break q;e=J[f+16>>2];H[k+64|0]=K[e|0];H[k+65|0]=K[e+1|0];H[k+66|0]=K[e+2|0];H[k+67|0]=K[e+3|0];dr(a,gr(k- -64|0,4));e=J[a+172>>2];break y}if(m>>>0< -2)break q;e=J[f+16>>2];h=K[e|0];if(!h){e=J[a>>2];ga:{if(!e)break ga;e=J[e+44>>2];if(!e)break ga;gc[e|0](J[a+4>>2],2638320)}Pe(a,4,0);J[a+212>>2]=1;J[a+172>>2]=-1;e=J[a+36>>2];if(e){f=J[e+40>>2];if(f){gc[f|0](J[e+12>>2]);e=J[a+36>>2];J[e+40>>2]=0}J[e+12>>2]=39181;J[e+16>>2]=39181}e=J[a>>2];if(!e)break q;e=J[e+52>>2];if(!e)break q;gc[e|0](J[a+4>>2]);break q}if(!((h|0)!=60|K[e+1|0]!=63)){if(m>>>0<5)break q;if(!l){e=e-g|0;if((e|0)<0)break q;ha:{h=J[a+204>>2];h=(e|0)<(h|0)?h:e;i=J[f>>2];if(i){e=0;g=J[i+ -16>>2];if(!(!g|J[g+32>>2]))e=J[g>>2];g=e;e=ui(J[J[f>>2]+16>>2])}else e=J[f+24>>2];e=e-1|0;if((h|0)<(e|0)){while(1){i=h+1|0;if(K[g+h|0]==63&K[i+g|0]==62)break ha;h=i;if((h|0)!=(e|0))continue;break}h=e}J[a+204>>2]=h;break q}J[a+204>>2]=0;if((J[f+12>>2]+(h-J[f+16>>2]|0)|0)<0)break q}e=J[a>>2];ia:{if(!e)break ia;e=J[e+44>>2];if(!e)break ia;gc[e|0](J[a+4>>2],2638320)}ja:{e=J[a+36>>2];f=J[e+16>>2];if(K[f+2|0]!=120|K[f+3|0]!=109|K[f+4|0]!=108)break ja;f=K[f+5|0]-9|0;if(f>>>0>23|!(1<>2]=-2;J[a+200>>2]=J[a+200>>2]+5;f=J[e+16>>2];J[e+16>>2]=f+5;J[e+32>>2]=J[e+32>>2]+5;f=K[f+5|0];if((f|0)==37){Od(a);e=J[a+36>>2];f=K[J[e+16>>2]]}ka:{if(f&255)break ka;if((Cd(e)|0)>0)break ka;while(1){e=J[a+40>>2];if((e|0)<2)break ka;la:{ma:{na:{if(!J[689531]){i=e-1|0;J[a+40>>2]=i;g=J[a+48>>2];break na}J[j+48>>2]=e;g=0;gc[J[659549]](J[689514],36109,j+48|0);e=J[a+40>>2];if((e|0)<=0)break la;i=e-1|0;J[a+40>>2]=i;g=J[a+48>>2];h=0;f=0;if((e|0)==1)break ma}h=i;f=J[((e<<2)+g|0)-8>> -2]}J[a+36>>2]=f;e=(h<<2)+g|0;g=J[e>>2];J[e>>2]=0}dh(g);e=J[a+36>>2];if(K[J[e+16>>2]])break ka;if((Cd(e)|0)<=0)continue;break}}e=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))fe(a,65,37696);Ud(a);e=x$(a);oa:{if(!e){if(J[a+172>>2]==-1?J[a+212>>2]:0)break oa;J[a+84>>2]=96;J[j+32>>2]=6920;Cc(0,0,0,a,0,1,96,3,0,0,0,0,32890,j+32|0);J[a+12>>2]=0;if(J[a+288>>2])break oa;J[a+212>>2]=1;break oa}pa:{if(Eg(e,28555))break pa;if(K[a+362|0]&2){Nf(a,108,37599,e);break pa}if(!(K[e|0]!=49|K[e+1|0]!=46)){co(a, -97,37599,e);break pa}Nf(a,108,37599,e)}f=J[a+20>>2];if(f)gc[J[659451]](f);J[a+20>>2]=e}f=J[a+36>>2];e=J[f+16>>2];g=K[e|0];h=g-9|0;qa:{if(!(1<>>0<=23:0)){if(!((g|0)!=63|K[e+1|0]!=62)){J[a+200>>2]=J[a+200>>2]+2;J[f+16>>2]=e+2;J[f+32>>2]=J[f+32>>2]+2;e=K[e+2|0];if((e|0)==37){Od(a);f=J[a+36>>2];e=K[J[f+16>>2]]}if(e&255)break qa;if((Cd(f)|0)>0)break qa;ze(a);break qa}fe(a,65,34158)}w$(a);if(J[a+84>>2]==32|J[a+172>>2]==-1)break qa;e=J[a+36>>2];ra:{if(!J[e+44>>2])break ra;f=J[e+16>>2];g=K[f| -0];h=g-9|0;if(1<>>0<=23:0)break ra;if(!((g|0)!=63|K[f+1|0]!=62)){J[a+200>>2]=J[a+200>>2]+2;J[e+16>>2]=f+2;J[e+32>>2]=J[e+32>>2]+2;f=K[f+2|0];if((f|0)==37){Od(a);e=J[a+36>>2];f=K[J[e+16>>2]]}if(f&255)break qa;if((Cd(e)|0)>0)break qa;ze(a);break qa}fe(a,65,34158)}sa:{if(J[a+292>>2])break sa;e=J[a+36>>2];if((J[e+20>>2]-J[e+16>>2]|0)>249)break sa;Hd(a)}Ud(a);Ud(a);ta:{ua:{e=J[a+36>>2];f=J[e+16>>2];va:{if(K[f|0]!=115|K[f+1|0]!=116|(K[f+2|0]!=97|K[f+3|0]!=110))break va;if(K[f+4|0]!=100|K[f+ -5|0]!=97|(K[f+6|0]!=108|K[f+7|0]!=111))break va;if(K[f+8|0]!=110|K[f+9|0]!=101)break va;J[a+200>>2]=J[a+200>>2]+10;J[e+16>>2]=f+10;J[e+32>>2]=J[e+32>>2]+10;f=K[f+10|0];if((f|0)==37){Od(a);e=J[a+36>>2];f=K[J[e+16>>2]]}wa:{if(f&255)break wa;if((Cd(e)|0)>0)break wa;ze(a)}Ud(a);if(K[J[J[a+36>>2]+16>>2]]!=61){Pe(a,75,0);f=-2;break ta}Qd(a);Ud(a);xa:switch(K[J[J[a+36>>2]+16>>2]]-34|0){case 5:Qd(a);ya:{za:{Aa:{Ba:{e=J[a+36>>2];g=J[e+16>>2];switch(K[g|0]-110|0){case 11:break Aa;case 0:break Ba;default:break za}}if(K[g+ -1|0]!=111)break za;J[a+200>>2]=J[a+200>>2]+2;J[e+16>>2]=g+2;J[e+32>>2]=J[e+32>>2]+2;f=0;g=K[g+2|0];if((g|0)==37){Od(a);e=J[a+36>>2];g=K[J[e+16>>2]]}if(g)break ya;if((Cd(e)|0)>0)break ya;ze(a);break ya}if(K[g+1|0]!=101|K[g+2|0]!=115)break za;J[a+200>>2]=J[a+200>>2]+3;J[e+16>>2]=g+3;J[e+32>>2]=J[e+32>>2]+3;f=1;g=K[g+3|0];if((g|0)==37){Od(a);e=J[a+36>>2];g=K[J[e+16>>2]]}if(g)break ya;if((Cd(e)|0)>0)break ya;ze(a);break ya}Pe(a,78,0);f=-2}if(K[J[J[a+36>>2]+16>>2]]!=39)break ua;Qd(a);break ta;case 0:Qd(a); -Ca:{Da:{Ea:{Fa:{e=J[a+36>>2];g=J[e+16>>2];switch(K[g|0]-110|0){case 11:break Ea;case 0:break Fa;default:break Da}}if(K[g+1|0]!=111)break Da;J[a+200>>2]=J[a+200>>2]+2;J[e+16>>2]=g+2;J[e+32>>2]=J[e+32>>2]+2;f=0;g=K[g+2|0];if((g|0)==37){Od(a);e=J[a+36>>2];g=K[J[e+16>>2]]}if(g)break Ca;if((Cd(e)|0)>0)break Ca;ze(a);break Ca}if(K[g+1|0]!=101|K[g+2|0]!=115)break Da;J[a+200>>2]=J[a+200>>2]+3;J[e+16>>2]=g+3;J[e+32>>2]=J[e+32>>2]+3;f=1;g=K[g+3|0];if((g|0)==37){Od(a);e=J[a+36>>2];g=K[J[e+16>>2]]}if(g)break Ca; -if((Cd(e)|0)>0)break Ca;ze(a);break Ca}Pe(a,78,0);f=-2}if(K[J[J[a+36>>2]+16>>2]]!=34)break ua;Qd(a);break ta;default:break xa}Pe(a,33,0)}f=-2;break ta}Pe(a,34,0)}J[J[a+36>>2]+52>>2]=f;Ud(a);Ga:{Ha:{Ia:{Ja:{g=J[a+36>>2];e=J[g+16>>2];switch(K[e|0]-62|0){case 0:break Ia;case 1:break Ja;default:break Ha}}if(K[e+1|0]!=62)break Ha;J[a+200>>2]=J[a+200>>2]+2;J[g+16>>2]=e+2;J[g+32>>2]=J[g+32>>2]+2;e=K[e+2|0];if((e|0)==37){Od(a);g=J[a+36>>2];e=K[J[g+16>>2]]}if(e&255)break qa;if((Cd(g)|0)>0)break qa;ze(a);break qa}if(J[a+ -172>>2]==-1?J[a+212>>2]:0)break Ga;J[a+84>>2]=57;J[j+16>>2]=15909;Cc(0,0,0,a,0,1,57,3,0,0,0,0,32890,j+16|0);J[a+12>>2]=0;if(J[a+288>>2])break Ga;J[a+212>>2]=1;break Ga}Ka:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break Ka;J[a+84>>2]=57;J[j>>2]=15909;Cc(0,0,0,a,0,1,57,3,0,0,0,0,32890,j);J[a+12>>2]=0;if(J[a+288>>2])break Ka;J[a+212>>2]=1}f=J[a+36>>2];e=J[f+16>>2];while(1){g=K[e|0];if(!g|(g|0)==62)break Ga;e=e+1|0;J[f+16>>2]=e;continue}}Qd(a)}bc=j- -64|0;if(J[a+84>>2]==32){J[a+212>>2]=1;J[a+172>>2]=-1;e=J[a+ -36>>2];if(!e)break q;f=J[e+40>>2];if(f){gc[f|0](J[e+12>>2]);e=J[a+36>>2];J[e+40>>2]=0}J[e+12>>2]=39181;J[e+16>>2]=39181;break q}e=J[a+36>>2];J[a+28>>2]=J[e+52>>2];La:{if(J[a+24>>2])break La;e=J[e+44>>2];if(!e)break La;v=a,w=$e(e),J[v+24>>2]=w}e=J[a>>2];Ma:{if(!e)break Ma;e=J[e+48>>2];if(J[a+212>>2]|!e)break Ma;gc[e|0](J[a+4>>2])}u=u+5|0;e=1;break z}v=a,w=uJ(),J[v+20>>2]=w;e=J[a>>2];if(!e)break A;e=J[e+48>>2];if(J[a+212>>2]|!e)break A;gc[e|0](J[a+4>>2]);break A}e=J[a>>2];Na:{if(!e)break Na;e=J[e+44>> -2];if(!e)break Na;gc[e|0](J[a+4>>2],2638320)}e=uJ();J[a+20>>2]=e;if(!e){ke(a,0);e=J[a+172>>2];break y}e=J[a>>2];if(!e)break A;e=J[e+48>>2];if(J[a+212>>2]|!e)break A;gc[e|0](J[a+4>>2]);e=1;break z}J[k+64>>2]=0;J[k+224>>2]=0;h=J[a+328>>2];if(J[a+40>>2]==1&m>>>0<=1)break q;e=J[f+16>>2];if(K[e|0]!=60){J[a+84>>2]=4;J[k>>2]=1123;Cc(0,0,0,a,0,1,4,3,0,0,0,0,32890,k);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+12>>2]=0;e=J[a+36>>2];if(e){f=J[e+40>>2];if(f){gc[f|0](J[e+12>>2]);e=J[a+36>>2];J[e+40>>2]=0}J[e+12>>2]=39181; -J[e+16>>2]=39181}e=J[a>>2];if(!e)break q;e=J[e+52>>2];if(!e)break q;break B}Oa:{if(l)break Oa;if(J[a+292>>2]){if(e>>>0>2])break Oa;break q}if((pp(a,62,0,0)|0)<0)break q}e=J[a+236>>2];if(!e){e=J[a+240>>2];Pa:{if((e|0)>0){e=J[a+244>>2];f=0;break Pa}J[a+240>>2]=e<<1;e=gc[J[659452]](J[a+244>>2],e<<3)|0;if(!e)break W;J[a+244>>2]=e;f=J[a+236>>2]}J[(f<<2)+e>>2]=-1;f=J[a+236>>2];J[a+236>>2]=f+1;J[a+232>>2]=(f<<2)+e;break C}f=J[a+240>>2];g=J[J[a+232>>2]>>2];if((g|0)==-2){Qa:{if((e|0)<(f|0)){f=J[a+ -244>>2];break Qa}J[a+240>>2]=f<<1;f=gc[J[659452]](J[a+244>>2],f<<3)|0;if(!f)break X;J[a+244>>2]=f;e=J[a+236>>2]}J[(e<<2)+f>>2]=-1;e=J[a+236>>2];J[a+236>>2]=e+1;J[a+232>>2]=(e<<2)+f;break C}Ra:{if((e|0)<(f|0)){f=J[a+244>>2];break Ra}J[a+240>>2]=f<<1;f=gc[J[659452]](J[a+244>>2],f<<3)|0;if(!f)break Y;J[a+244>>2]=f;e=J[a+236>>2]}J[(e<<2)+f>>2]=g;e=J[a+236>>2];J[a+236>>2]=e+1;J[a+232>>2]=(e<<2)+f;break C}if(J[a+40>>2]==1&m>>>0<=1)break q;p=J[f+36>>2];j=J[f+16>>2];e=K[j+1|0];h=K[j|0];g=(h|0)!=60;if(!(g| -(e|0)!=47)){e=9;break z}if(!((e|0)!=63|g)){Sa:{if(l)break Sa;if((pp(a,63,62,0)|0)>=0)break Sa;J[a+292>>2]=2;break q}vt(a);break F}if(!((e|0)==33|g)){e=6;break z}Ta:{Ua:{Va:{i=(h|0)==60&(e|0)==33;Wa:{if(i){h=K[j+2|0];if((h|0)!=45)break Wa;if(K[j+3|0]!=45)break Ua;if(m>>>0<4)break q;J[f+16>>2]=j+4;e=pp(a,45,45,62);f=J[a+36>>2];J[f+16>>2]=J[f+16>>2]-4;if(!((e|0)>=0|l)){J[a+292>>2]=5;break q}wt(a);break F}if(g)break Va;if((e|0)!=33)break Ta;h=K[j+2|0]}if((h&255)!=91|K[j+3|0]!=67|(K[j+4|0]!=68|K[j+5|0]!= -65))break Ua;if(K[j+6|0]!=84|K[j+7|0]!=65|K[j+8|0]!=91)break Ua;J[a+200>>2]=J[a+200>>2]+9;J[f+16>>2]=j+9;J[f+32>>2]=J[f+32>>2]+9;e=K[j+9|0];if((e|0)==37){Od(a);f=J[a+36>>2];e=K[J[f+16>>2]]}Xa:{if(e&255)break Xa;if((Cd(f)|0)>0)break Xa;ze(a)}e=8;break z}if((h|0)!=38)break Ta;if(!l)if((pp(a,59,0,0)|0)<0)break q;n$(a);break E}if(m>>>0<9&i)break q}Ya:{if(m>>>0>299|l|J[a+40>>2]!=1)break Ya;if(J[a+292>>2]){if(j>>>0<=M[k+232>>2])break Ya;break q}if((pp(a,60,0,0)|0)<0)break q}J[a+204>>2]=0;q$(a);break E}if(m>>> -0<2)break q;Za:{if(l)break Za;if(J[a+292>>2]){e=J[k+228>>2];if(!e)break q;if(e>>>0>M[f+16>>2])break Za;break q}e=J[f+16>>2]-g|0;if((e|0)<0)break q;_a:{h=J[a+204>>2];e=(e|0)<(h|0)?h:e;h=J[f>>2];if(h){g=0;h=J[h+16>>2];if(!(!h|J[h+32>>2]))g=J[h>>2];h=ui(J[J[f>>2]+16>>2])}else h=J[f+24>>2];if((e|0)<(h|0)){while(1){if(K[e+g|0]==62)break _a;e=e+1|0;if((h|0)!=(e|0))continue;break}e=h}J[a+204>>2]=e;break q}J[a+204>>2]=0;if((J[f+12>>2]+(e-J[f+16>>2]|0)|0)<0)break q}$a:{if(J[a+324>>2]){e=J[a+344>>2]+P(J[a+ -188>>2],12)|0;e$(a,J[e-12>>2],J[e-8>>2],0,J[e-4>>2],0);e=J[a+188>>2];if((e|0)<=0)break $a;g=e-1|0;J[a+188>>2]=g;f=J[a+196>>2];J[a+184>>2]=(e|0)!=1?J[(f+(e<<2)|0)-8>>2]:0;J[f+(g<<2)>>2]=0;break $a}i$(a,0)}if(J[a+172>>2]==-1)break q;if(J[a+188>>2])break P;e=14;break z}ab:{e=J[f+16>>2]-g|0;bb:{if((e|0)<0)break bb;j=a;cb:{h=J[a+204>>2];e=(e|0)<(h|0)?h:e;h=J[f>>2];if(h){g=0;h=J[h+16>>2];if(!(!h|J[h+32>>2]))g=J[h>>2];h=ui(J[J[f>>2]+16>>2])}else h=J[f+24>>2];h=h-2|0;if((e|0)<(h|0)){while(1){i=e;p=e+g|0; -e=e+1|0;if(!(K[p|0]!=93|K[g+e|0]!=93)&K[p+2|0]==62)break cb;if((e|0)!=(h|0))continue;break}e=h}J[j+204>>2]=e;break bb}J[a+204>>2]=0;e=J[f+12>>2]+(i-J[f+16>>2]|0)|0;if((e|0)>=0)break ab}if((m|0)<302)break q;f=J[a+36>>2];e=J[f+16>>2];l=a$(e,300,0);if((l|0)<0)break V;f=J[a>>2];db:{if(J[a+212>>2]|!f)break db;g=J[f+100>>2];if(!g){g=J[f+68>>2];if(!g)break db}gc[g|0](J[a+4>>2],e,l)}if(J[a+172>>2]==-1)break q;e=J[a+36>>2];eb:{if(!l){f=J[e+16>>2];break eb}h=J[e+32>>2];g=J[a+200>>2];f=J[e+16>>2];if((l|0)!= -1){j=l&-2;i=0;while(1){fb:{if(K[f|0]==10){J[e+28>>2]=J[e+28>>2]+1;h=1;break fb}h=h+1|0}J[e+32>>2]=h;J[a+200>>2]=g+1;J[e+16>>2]=f+1;if(K[f+1|0]!=10)h=h+1|0;else{J[e+28>>2]=J[e+28>>2]+1;h=1}J[e+32>>2]=h;g=g+2|0;J[a+200>>2]=g;f=f+2|0;J[e+16>>2]=f;i=i+2|0;if((j|0)!=(i|0))continue;break}}if(!(l&1))break eb;if(K[f|0]!=10)h=h+1|0;else{J[e+28>>2]=J[e+28>>2]+1;h=1}J[e+32>>2]=h;J[a+200>>2]=g+1;f=f+1|0;J[e+16>>2]=f}f=K[f|0];if((f|0)==37){Od(a);e=J[a+36>>2];f=K[J[e+16>>2]]}gb:{if(f&255)break gb;if((Cd(e)|0)> -0)break gb;ze(a)}J[a+204>>2]=0;break q}h=J[a+36>>2];f=J[h+16>>2];g=a$(f,e,1);if((g|0)!=(e|0)){e=f-g|0;J[h+16>>2]=e;break U}g=J[a>>2];hb:{if(!(!g|e)){g=J[g+100>>2];if(J[a+212>>2]|!g|(f-J[h+12>>2]|0)<9)break hb;if(kd(f-9|0,19935,9))break hb;gc[g|0](J[a+4>>2],39181,0);break hb}if(J[a+212>>2]|(!e|!g))break hb;h=J[g+100>>2];if(h){gc[h|0](J[a+4>>2],f,e);break hb}g=J[g+68>>2];if(!g)break hb;gc[g|0](J[a+4>>2],f,e)}if(J[a+172>>2]==-1)break q;e=e+2|0;i=(e|0)>0;j=i?e:0;g=J[a+200>>2];e=J[a+36>>2];h=J[e+32>>2]; -f=J[e+16>>2];if(i){m=j+1&-2;i=0;while(1){ib:{if(K[f|0]==10){J[e+28>>2]=J[e+28>>2]+1;h=1;break ib}h=h+1|0}J[e+32>>2]=h;J[a+200>>2]=g+1;J[e+16>>2]=f+1;if(K[f+1|0]!=10)h=h+1|0;else{J[e+28>>2]=J[e+28>>2]+1;h=1}J[e+32>>2]=h;g=g+2|0;J[a+200>>2]=g;f=f+2|0;J[e+16>>2]=f;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(j&1)){if(K[f|0]!=10)h=h+1|0;else{J[e+28>>2]=J[e+28>>2]+1;h=1}J[e+32>>2]=h;J[a+200>>2]=g+1;f=f+1|0;J[e+16>>2]=f}f=K[f|0];if((f|0)==37){Od(a);e=J[a+36>>2];f=K[J[e+16>>2]]}jb:{if(f&255)break jb;if((Cd(e)| -0)>0)break jb;ze(a)}e=7;break G}Ud(a);h=J[a+36>>2];e=J[h>>2];kb:{if(!e){f=J[h+24>>2];break kb}f=ui(J[e+16>>2]);h=J[a+36>>2]}g=J[h+12>>2];e=J[h+16>>2];i=g+(f-e|0)|0;if((i|0)<2)break q;j=K[e|0]!=60;f=K[e+1|0];if(!(j|(f|0)!=63)){lb:{if(l)break lb;e=e-g|0;mb:{if((e|0)<0)break mb;j=a;nb:{f=J[a+204>>2];f=(e|0)<(f|0)?f:e;i=J[h>>2];if(i){e=0;g=J[i+16>>2];if(!(!g|J[g+32>>2]))e=J[g>>2];g=e;e=ui(J[J[h>>2]+16>>2])}else e=J[h+24>>2];e=e-1|0;if((f|0)<(e|0)){while(1){i=f+1|0;if(K[f+g|0]==63&K[i+g|0]==62)break nb; -f=i;if((f|0)!=(e|0))continue;break}f=e}J[j+204>>2]=f;break mb}J[a+204>>2]=0;if((J[h+12>>2]+(f-J[h+16>>2]|0)|0)>=0)break lb}J[a+292>>2]=2;break q}vt(a);if(J[a+172>>2]==-1)break q;break H}if(!((f|0)!=33|j)){ob:{f=K[e+2|0];if((f|0)!=68){if((f|0)!=45|K[e+3|0]!=45)break ob;pb:{if(l)break pb;if((pp(a,45,45,62)|0)>=0)break pb;J[a+292>>2]=5;break q}wt(a);if(J[a+172>>2]!=-1)break H;break q}if(K[e+3|0]!=79|K[e+4|0]!=67|(K[e+5|0]!=84|K[e+6|0]!=89))break ob;if(K[e+7|0]!=80|K[e+8|0]!=69)break ob;qb:{if(l)break qb; -if((pp(a,62,0,0)|0)>=0)break qb;J[a+292>>2]=3;break q}J[a+292>>2]=0;J[a+216>>2]=1;J[a+204>>2]=0;j=bc-32|0;bc=j;J[j+28>>2]=0;J[a+200>>2]=J[a+200>>2]+9;e=J[a+36>>2];J[e+32>>2]=J[e+32>>2]+9;f=J[e+16>>2];J[e+16>>2]=f+9;f=K[f+9|0];if((f|0)==37){Od(a);e=J[a+36>>2];f=K[J[e+16>>2]]}rb:{if(f&255)break rb;if((Cd(e)|0)>0)break rb;while(1){e=J[a+40>>2];if((e|0)<2)break rb;sb:{tb:{ub:{if(!J[689531]){h=e-1|0;J[a+40>>2]=h;g=J[a+48>>2];break ub}J[j+16>>2]=e;g=0;gc[J[659549]](J[689514],36109,j+16|0);e=J[a+40>>2]; -if((e|0)<=0)break sb;h=e-1|0;J[a+40>>2]=h;g=J[a+48>>2];i=0;f=0;if((e|0)==1)break tb}i=J[((e<<2)+g|0)-8>>2];f=h}J[a+36>>2]=i;e=(f<<2)+g|0;g=J[e>>2];J[e>>2]=0}dh(g);e=J[a+36>>2];if(K[J[e+16>>2]])break rb;if((Cd(e)|0)<=0)continue;break}}Ud(a);e=Uh(a);if(!e)fe(a,68,38927);J[a+220>>2]=e;Ud(a);f=lB(a,j+28|0,1);g=J[j+28>>2];if(f|g)J[a+88>>2]=1;J[a+228>>2]=g;J[a+224>>2]=f;Ud(a);h=J[a>>2];vb:{if(!h)break vb;h=J[h>>2];if(J[a+212>>2]|!h)break vb;gc[h|0](J[a+4>>2],e,g,f)}wb:{if(J[a+172>>2]==-1)break wb;e=K[J[J[a+ -36>>2]+16>>2]];xb:{if((e|0)==62)break xb;if((e|0)==91)break wb;J[a+84>>2]=61;J[j>>2]=16220;Cc(0,0,0,a,0,1,61,3,0,0,0,0,32890,j);J[a+12>>2]=0;if(J[a+288>>2])break xb;J[a+212>>2]=1}Qd(a)}bc=j+32|0;if(J[a+172>>2]==-1)break q;if(K[J[J[a+36>>2]+16>>2]]==91)break I;J[a+216>>2]=2;e=J[a>>2];yb:{if(J[a+212>>2]|!e)break yb;e=J[e+104>>2];if(!e)break yb;gc[e|0](J[a+4>>2],J[a+220>>2],J[a+228>>2],J[a+224>>2])}J[a+216>>2]=0;c$(a);e=4;break z}if(i>>>0<9)break q}J[a+292>>2]=6;J[a+172>>2]=6;hJ(a,k+232|0,k+228|0);e= -J[a+172>>2];break y}Ud(a);h=J[a+36>>2];e=J[h>>2];zb:{if(!e){f=J[h+24>>2];break zb}f=ui(J[e+16>>2]);h=J[a+36>>2]}g=J[h+12>>2];e=J[h+16>>2];i=g+(f-e|0)|0;if((i|0)<2)break q;j=K[e|0]!=60;f=K[e+1|0];if(!(j|(f|0)!=63)){Ab:{if(l)break Ab;e=e-g|0;Bb:{if((e|0)<0)break Bb;Cb:{f=J[a+204>>2];f=(e|0)<(f|0)?f:e;i=J[h>>2];if(i){e=0;g=J[i+16>>2];if(!(!g|J[g+32>>2]))e=J[g>>2];g=e;e=ui(J[J[h>>2]+16>>2])}else e=J[h+24>>2];e=e-1|0;if((f|0)<(e|0)){while(1){i=f+1|0;if(K[f+g|0]==63&K[i+g|0]==62)break Cb;f=i;if((f|0)!= -(e|0))continue;break}f=e}J[a+204>>2]=f;break Bb}J[a+204>>2]=0;if((J[h+12>>2]+(f-J[h+16>>2]|0)|0)>=0)break Ab}J[a+292>>2]=2;break q}vt(a);if(J[a+172>>2]==-1)break q;break J}if(!((f|0)!=33|j)){if(!(K[e+2|0]!=45|K[e+3|0]!=45)){Db:{if(l)break Db;if((pp(a,45,45,62)|0)>=0)break Db;J[a+292>>2]=5;break q}wt(a);if(J[a+172>>2]!=-1)break J;break q}if(i>>>0<4)break q}J[a+172>>2]=6;if(!J[a+292>>2])J[a+292>>2]=6;hJ(a,k+232|0,k+228|0);break D}Ud(a);i=J[a+36>>2];e=J[i>>2];Eb:{if(!e){f=J[i+24>>2];break Eb}f=ui(J[e+ -16>>2]);i=J[a+36>>2]}e=J[i+16>>2];g=f-e|0;f=J[i+12>>2];h=g+f|0;if((h|0)<2)break q;j=K[e|0]!=60;g=K[e+1|0];if(!(j|(g|0)!=63)){Fb:{if(l)break Fb;e=e-f|0;Gb:{if((e|0)<0)break Gb;Hb:{g=J[a+204>>2];g=(e|0)<(g|0)?g:e;h=J[i>>2];if(h){e=0;f=J[h+16>>2];if(!(!f|J[f+32>>2]))e=J[f>>2];f=e;e=ui(J[J[i>>2]+16>>2])}else e=J[i+24>>2];e=e-1|0;if((g|0)<(e|0)){while(1){h=g+1|0;if(K[f+g|0]==63&K[h+f|0]==62)break Hb;g=h;if((g|0)!=(e|0))continue;break}g=e}J[a+204>>2]=g;break Gb}J[a+204>>2]=0;if((J[i+12>>2]+(g-J[i+16>>2]| -0)|0)>=0)break Fb}J[a+292>>2]=2;break q}vt(a);if(J[a+172>>2]==-1)break q;break K}if(!((g|0)!=33|j)){if(!(K[e+2|0]!=45|K[e+3|0]!=45)){Ib:{if(l)break Ib;e=e-f|0;Jb:{if((e|0)<0)break Jb;Kb:{g=J[a+204>>2];e=(e|0)<(g|0)?g:e;g=J[i>>2];if(g){f=0;g=J[g+16>>2];if(!(!g|J[g+32>>2]))f=J[g>>2];h=ui(J[J[i>>2]+16>>2])}else h=J[i+24>>2];g=h-2|0;if((e|0)<(g|0)){while(1){h=e;j=e+f|0;e=e+1|0;if(!(K[j|0]!=45|K[f+e|0]!=45)&K[j+2|0]==62)break Kb;if((e|0)!=(g|0))continue;break}e=g}J[a+204>>2]=e;break Jb}J[a+204>>2]=0;if((J[i+ -12>>2]+(h-J[i+16>>2]|0)|0)>=0)break Ib}J[a+292>>2]=5;break q}wt(a);if(J[a+172>>2]!=-1)break K;break q}if(h>>>0<4)break q}Pe(a,5,0);qp(a);e=J[a>>2];if(!e)break q;e=J[e+52>>2];if(!e)break q;gc[e|0](J[a+4>>2]);break q}e=J[f+16>>2]-g|0;if((e|0)<0)break q;g=J[a+204>>2];h=0;f=J[J[f>>2]+16>>2];if(!(!f|J[f+32>>2]))h=J[f>>2];f=0;e=(e|0)<(g|0)?g:e;i=ui(J[J[J[a+36>>2]>>2]+16>>2]);Lb:{if(e>>>0>=i>>>0)break Lb;while(1){g=f;j=e+h|0;f=K[j|0];Mb:{m=g&255;if(m){f=(f|0)!=(m|0)?g:0;break Mb}Nb:{Ob:{if(!((f|0)!=60|i>>> -0<=e+4>>>0)){if(K[j+1|0]!=33|K[j+2|0]!=45|K[j+3|0]!=45)break Ob;if(i>>>0<=e+3>>>0)break Lb;while(1){f=e;g=e+h|0;if(!(K[g|0]!=45|K[g+1|0]!=45)){e=e+2|0;if(K[h+e|0]==62)break Ob}e=f+1|0;if(i>>>0>f+4>>>0)continue;break}J[a+204>>2]=i-3;break q}Pb:switch(f-34|0){case 5:f=39;break Mb;case 0:break Mb;case 1:case 2:case 3:case 4:break Ob;default:break Pb}if((f|0)==93)break Nb}f=0;break Mb}g=e+1|0;if(i>>>0<=g>>>0)break Lb;f=0;if(K[g+h|0]==93){e=g;break Mb}j=i-e|0;f=1;while(1){g=K[g+h|0];m=g-9|0;if(!(m>>>0> -23|!(1<>2]=0;j=bc-48|0;bc=j;e=K[J[J[a+36>>2]+16>>2]];Qb:{if((e|0)!=91)break Qb;J[a+172>>2]=3;Qd(a);f=J[a+36>>2];i=J[f+16>>2];Rb:{if(K[i|0]==93)break Rb;while(1){if(J[a+172>>2]==-1)break Rb;p=J[f+36>>2];Ud(a);lJ(a);kB(a);f=J[a+36>>2];h=J[f+16>>2];Sb:{if(K[h|0])break Sb;e=J[a+40>>2];if((e|0)<=1)break Sb;while(1){Tb:{Ub:{Vb:{if(!J[689531]){h=e-1|0;J[a+40>>2]=h;f=J[a+48>>2];break Vb}J[j+32>>2]=e;f= -0;gc[J[659549]](J[689514],36109,j+32|0);e=J[a+40>>2];if((e|0)<=0)break Tb;h=e-1|0;J[a+40>>2]=h;f=J[a+48>>2];m=0;g=0;if((e|0)==1)break Ub}m=J[((e<<2)+f|0)-8>>2];g=h}J[a+36>>2]=m;e=(g<<2)+f|0;f=J[e>>2];J[e>>2]=0}dh(f);e=J[a+36>>2];Wb:{if(K[J[e+16>>2]])break Wb;if((Cd(e)|0)>0)break Wb;e=J[a+40>>2];if((e|0)>=2)continue}f=J[a+36>>2];h=J[f+16>>2];if(K[h|0])break Sb;e=J[a+40>>2];if((e|0)>1)continue;break}}if(!((h|0)!=(i|0)|(p|0)!=J[f+36>>2])){if(J[a+172>>2]==-1?J[a+212>>2]:0)break Rb;J[a+84>>2]=1;J[j+20>> -2]=33396;J[j+16>>2]=5012;Cc(0,0,0,a,0,1,1,3,33396,0,0,0,32761,j+16|0);J[a+12>>2]=0;if(J[a+288>>2])break Rb;J[a+212>>2]=1;break Rb}i=J[f+16>>2];if(K[i|0]!=93)continue;break}}e=K[J[J[a+36>>2]+16>>2]];if((e|0)!=93)break Qb;Qd(a);Ud(a);e=K[J[J[a+36>>2]+16>>2]]}Xb:{if((e&255)!=62){if(J[a+172>>2]==-1?J[a+212>>2]:0)break Xb;J[a+84>>2]=61;J[j>>2]=16220;Cc(0,0,0,a,0,1,61,3,0,0,0,0,32890,j);J[a+12>>2]=0;if(J[a+288>>2])break Xb;J[a+212>>2]=1;break Xb}Qd(a)}bc=j+48|0;if(J[a+172>>2]==-1)break q;J[a+216>>2]=2; -e=J[a>>2];Yb:{if(J[a+212>>2]|!e)break Yb;e=J[e+104>>2];if(!e)break Yb;gc[e|0](J[a+4>>2],J[a+220>>2],J[a+228>>2],J[a+224>>2])}J[a+216>>2]=0;c$(a);if(J[a+172>>2]==-1)break q;J[a+204>>2]=0;e=4;break z}e=e+1|0;if(i>>>0>e>>>0)continue;break}e=f&255?0:e}J[a+204>>2]=e;break q}ke(a,0);J[a+240>>2]=J[a+240>>2]/2;break C}ke(a,0);J[a+240>>2]=J[a+240>>2]/2;break C}ke(a,0);J[a+240>>2]=J[a+240>>2]/2;break C}e=e-l|0;J[f+16>>2]=e}f=K[e|0];g=K[e+1|0];h=K[e+2|0];J[k+44>>2]=K[e+3|0];J[k+40>>2]=h;J[k+36>>2]=g;J[k+32>> -2]=f;e=k- -64|0;Gi(e,149,36511,k+32|0);Wj(a,9,4560,e);break q}gc[J[659549]](J[689514],36778,0);e=6;break z}gc[J[659549]](J[689514],36733,0);e=6;break z}gc[J[659549]](J[689514],37077,0);e=6;break z}gc[J[659549]](J[689514],37034,0)}e=7;break z}gc[J[659549]](J[689514],36691,0);break I}gc[J[659549]](J[689514],37001,0);e=7;break z}gc[J[659549]](J[689514],21400,0);break I}gc[J[659549]](J[689514],36547,0);e=7;break z}J[a+292>>2]=1;e=14;break z}J[a+292>>2]=1;e=4;break z}e=3;break z}J[a+292>>2]=1;e=1}J[a+ -172>>2]=e;J[a+204>>2]=0;break y}J[a+292>>2]=1;J[a+172>>2]=7}h=J[a+36>>2];f=J[h+16>>2];Zb:{if(K[f|0])break Zb;e=J[a+40>>2];if((e|0)<=1)break Zb;while(1){_b:{$b:{ac:{if(!J[689531]){g=e-1|0;J[a+40>>2]=g;f=J[a+48>>2];break ac}J[k+16>>2]=e;f=0;gc[J[659549]](J[689514],36109,k+16|0);e=J[a+40>>2];if((e|0)<=0)break _b;g=e-1|0;J[a+40>>2]=g;f=J[a+48>>2];i=0;h=0;if((e|0)==1)break $b}i=J[((e<<2)+f|0)-8>>2];h=g}J[a+36>>2]=i;e=(h<<2)+f|0;f=J[e>>2];J[e>>2]=0}dh(f);e=J[a+36>>2];bc:{if(K[J[e+16>>2]])break bc;if((Cd(e)| -0)>0)break bc;e=J[a+40>>2];if((e|0)>=2)continue}h=J[a+36>>2];f=J[h+16>>2];if(K[f|0])break Zb;e=J[a+40>>2];if((e|0)>1)continue;break}}if((f|0)!=(j|0)|(p|0)!=J[h+36>>2])break D;Pe(a,1,30819);qp(a);e=J[a+172>>2];break y}e=J[a+172>>2];break y}cc:{if(J[a+324>>2]){e=g$(a,k- -64|0,k+224|0,k+236|0);break cc}e=j$(a)}if(J[a+172>>2]==-1)break q;if(!e){e=J[a+236>>2];if((e|0)>0){g=e-1|0;J[a+236>>2]=g;f=J[a+244>>2];J[a+232>>2]=(e|0)==1?f:(f+(e<<2)|0)-8|0;J[f+(g<<2)>>2]=-1}qp(a);e=J[a>>2];if(!e)break q;e=J[e+52>> -2];if(e)break B;break q}dc:{ec:{fc:{g=J[a+36>>2];f=J[g+16>>2];i=K[f|0]-47|0;if(i)if((i|0)==15)break fc;else break ec;if(K[f+1|0]!=62)break ec;J[a+200>>2]=J[a+200>>2]+2;J[g+16>>2]=f+2;J[g+32>>2]=J[g+32>>2]+2;f=K[f+2|0];if((f|0)==37){Od(a);g=J[a+36>>2];f=K[J[g+16>>2]]}gc:{if(f&255)break gc;if((Cd(g)|0)>0)break gc;ze(a)}f=J[a>>2];hc:{if(J[a+324>>2]){ic:{if(!f)break ic;f=J[f+120>>2];if(J[a+212>>2]|!f)break ic;gc[f|0](J[a+4>>2],e,J[k+64>>2],J[k+224>>2])}e=J[a+328>>2]-h|0;if((e|0)<=0)break hc;f$(a,e);break hc}if(!f)break hc; -f=J[f+60>>2];if(J[a+212>>2]|!f)break hc;gc[f|0](J[a+4>>2],e)}if(J[a+172>>2]==-1)break q;e=J[a+236>>2];if((e|0)>0){g=e-1|0;J[a+236>>2]=g;f=J[a+244>>2];J[a+232>>2]=(e|0)==1?f:(f+(e<<2)|0)-8|0;J[f+(g<<2)>>2]=-1}e=J[a+188>>2]?7:14;J[a+292>>2]=1;break z}Qd(a);break dc}Nf(a,73,32470,e);nB(a);f=J[a+236>>2];if((f|0)<=0)break dc;i=f-1|0;J[a+236>>2]=i;g=J[a+244>>2];J[a+232>>2]=(f|0)==1?g:(g+(f<<2)|0)-8|0;J[g+(i<<2)>>2]=-1}jc:{if(J[a+324>>2]){i=J[k+64>>2];j=J[k+224>>2];h=J[a+328>>2]-h|0;kc:{f=J[a+188>>2];g= -J[a+192>>2];if((f|0)>=(g|0)){J[a+192>>2]=g<<1;f=gc[J[659452]](J[a+196>>2],g<<3)|0;if(!f)break kc;J[a+196>>2]=f;f=gc[J[659452]](J[a+344>>2],P(J[a+192>>2],12))|0;if(!f)break kc;J[a+344>>2]=f;f=J[a+188>>2]}J[J[a+196>>2]+(f<<2)>>2]=e;J[a+184>>2]=e;e=P(f,12);J[e+J[a+344>>2]>>2]=i;J[(e+J[a+344>>2]|0)+4>>2]=j;J[(e+J[a+344>>2]|0)+8>>2]=h;J[a+188>>2]=f+1;break jc}J[a+192>>2]=J[a+192>>2]/2;ke(a,0);break jc}if(a)lc:{mc:{f=J[a+188>>2];g=J[a+192>>2];nc:{if((f|0)<(g|0)){g=J[a+196>>2];break nc}g=gc[J[659452]](J[a+ -196>>2],g<<3)|0;if(!g)break mc;J[a+196>>2]=g;J[a+192>>2]=J[a+192>>2]<<1;f=J[a+188>>2]}J[(f<<2)+g>>2]=e;J[a+188>>2]=f+1;J[a+184>>2]=e;break lc}ke(a,0)}}e=7;J[a+292>>2]=1;break z}gc[e|0](J[a+4>>2]);break q}e=1}J[a+172>>2]=e}if((e|0)!=-1)continue;break}}bc=k+240|0}if(J[a+172>>2]==-1)break d;e=J[a+36>>2];oc:{if(!e){e=0;break oc}f=J[e+16>>2];if((J[e+20>>2]-f|0)<=15E6&(f-J[e+12>>2]|0)<15000001|K[a+362|0]&8)break oc;J[a+84>>2]=1;J[o+20>>2]=5628;J[o+16>>2]=5012;e=0;Cc(0,0,0,a,0,1,1,3,5628,0,0,0,32761,o+16| -0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+12>>2]=0;f=J[a+36>>2];if(!f)break oc;e=J[f+40>>2];pc:{if(!e){e=f;break pc}gc[e|0](J[f+12>>2]);e=J[a+36>>2];J[e+40>>2]=0}J[e+12>>2]=39181;J[e+16>>2]=39181}f=J[a+84>>2];if(J[a+212>>2]==1?f:0)break a;if(!t){b=b+n|0;continue}break}qc:{if(!e|!s)break qc;b=J[e>>2];if(!b)break qc;c=Gw(J[b+16>>2],e);b=J[a+36>>2];e=J[b+12>>2];f=J[b+16>>2];BB(J[b>>2],1,29816);b=J[a+36>>2];Fw(J[J[b>>2]+16>>2],b,c,f-e|0)}if(d){c=J[a+36>>2];if(c){b=J[c>>2];rc:{if(!b){e=J[c+24>>2];break rc}e= -ui(J[b+16>>2]);c=J[a+36>>2]}b=(J[c+12>>2]+(e-J[c+16>>2]|0)|0)>0}else b=0;c=J[a+172>>2];d=c+1|0;if(!(!d|(d|0)==15)){Pe(a,5,0);c=J[a+172>>2]}if(b&(c|0)==14){J[a+84>>2]=5;J[o>>2]=2549;Cc(0,0,0,a,0,1,5,3,0,0,0,0,32890,o);J[a+12>>2]=0;if(!J[a+288>>2])J[a+212>>2]=1;c=J[a+172>>2]}sc:{if((c|0)==-1)break sc;b=J[a>>2];if(!b)break sc;b=J[b+52>>2];if(!b)break sc;gc[b|0](J[a+4>>2])}J[a+172>>2]=-1}f=0;if(J[a+12>>2])break a}f=J[a+84>>2]}bc=o+32|0;return f}function u9(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;A=b;Q=bc-16|0;bc=Q;a:{b:{c:{d:{e:{f:{g:{h:{T=J[a+56>>2];i:{if((T|0)>0){R=J[b+36>>2];while(1){d=J[R+20>>2];if((d|0)>0){S=J[R+24>>2];while(1){C=d;E=J[S+4>>2];j:{if(!E)break j;d=J[S>>2];if((d|0)<=0)break j;while(1){N=d;k:{if(!J[E+4>>2])break k;d=J[S+40>>2];if((d|0)<=0)break k;U=J[E>>2];while(1){I=d;r=J[U+28>>2];l:{if(!r)break l;V=J[U+24>>2];if((V|0)<= -0)break l;while(1){b=J[A+36>>2];m:{if(J[r+36>>2])break m;d=J[r+40>>2];d=ek(J[d+20>>2]+2|0,J[d+24>>2]+2|0);J[r+36>>2]=d;if(d)break m;b=-1;break i}t=J[r+4>>2];n:{o:{if(!t)break o;Z=r+4|0;O=P(R-b>>5,488);while(1){if(J[t+36>>2]>16383)break o;b=J[t+24>>2];if(!b)break f;yn(b);J[J[t+24>>2]+60>>2]=0;p:{q:switch(J[t+20>>2]-1|0){case 0:b=J[r+28>>2];if(!b){o=0;d=zc(36);r:{if(d){J[d+20>>2]=19;J[d+24>>2]=0;m=zc(76);J[d+16>>2]=m;if(m){J[d+12>>2]=m;if(J[d+24>>2]){e9(d);m=J[d+16>>2]}j=J[d+20>>2];if((j|0)<=0)break r; -c=j&7;s:{if(!c){b=j;break s}b=j;while(1){J[m>>2]=2632944;m=m+4|0;b=b-1|0;o=o+1|0;if((c|0)!=(o|0))continue;break}}if(j>>>0<8)break r;while(1){J[m+28>>2]=2632944;J[m+24>>2]=2632944;J[m+20>>2]=2632944;J[m+16>>2]=2632944;J[m+12>>2]=2632944;J[m+8>>2]=2632944;J[m+4>>2]=2632944;J[m>>2]=2632944;m=m+32|0;j=b-9|0;b=b-8|0;if(j>>>0<4294967294)continue;break}break r}qc(d)}d=0}J[r+28>>2]=d;b=-1;if(!d)break i;d9(d);b=J[r+28>>2]}J[b+24>>2]=J[t+24>>2];e9(J[r+28>>2]);break p;default:fa(200858,199119,231,212028);B(); -case 1:break q}if(J[r+32>>2])break p;b=dE(J[t+24>>2],201303);J[r+32>>2]=b;if(!b)break g}t:{if(J[t+12>>2]<=0)break t;W=0;while(1){d=J[r+16>>2];n=J[E+20>>2];u:{if((d|0)<=(n|0))break u;b=K[(J[J[A+32>>2]+24>>2]+O|0)+417|0];if((b-n|0)<=(d|0)?b:0)break u;hd(203067,0);d=J[r+16>>2];n=J[E+20>>2]}b=J[t+8>>2]+W|0;m=(J[E+28>>2]+n|0)+((((b-J[r+24>>2]|0)+2|0)/3|0)+d^-1)|0;if((m|0)<0)break n;_=(b+2|0)%3|0;v:{w:{x:{y:{if(m>>>0<31){i=0;z:switch(_|0){case 1:break x;case 2:break y;case 0:break z;default:break v}if(J[t+ -20>>2]!=1)break w;b=J[J[A+32>>2]+24>>2]+O|0;c=J[r+40>>2];o=J[c+20>>2];j=0;n=J[r+36>>2];if(J[n+20>>2]>=2){d=J[n+28>>2];j=J[d+4>>2]-J[d>>2]>>2}s=K[b+418|0];g=J[E+8>>2];k=J[r+28>>2];d=J[c+24>>2];A:{if((o|0)>=2){b=1<>>1|b;b=J[c+28>>2];e=J[b+4>>2]-J[b>>2]|0;b=e>>2;break A}i=1;if((o|0)!=1)break v;b=1<>>1|b;e=0;b=0}i=1;if((d|0)<=0)break v;h=b;f=0-x|0;G=s&8;y=g<<8;m=J[J[n+28>>2]+4>>2]+4|0;s=J[J[c+28>>2]>>2];M=0-j<<2;D=e<<2;l=j<<2;X=l<<2;while(1){b=d;n=m;j=s;while(1){e=b;c=J[n>>2];b=c&255;if(!(!b| -c&20480)){b=J[k+16>>2]+(J[((b|y)<<2)+2730592>>2]<<2)|0;J[k+12>>2]=b;g=J[b>>2];b=J[g>>2];p=J[k+4>>2]-b|0;J[k+4>>2]=p;v=J[k>>2];B:{if(b>>>0<=v>>>16>>>0){J[k>>2]=v-(b<<16);b=J[g+4>>2];if(p&32768)break B;b=Kg(k);break B}b=Jg(k)}if(b){g=(c>>>4&255)<<2;b=J[k+16>>2]+(J[g+2735712>>2]<<2)|0;J[k+12>>2]=b;p=J[b>>2];c=J[p>>2];v=J[k+4>>2]-c|0;J[k+4>>2]=v;b=n+l|0;u=J[k>>2];C:{if(c>>>0<=u>>>16>>>0){J[k>>2]=u-(c<<16);c=J[p+4>>2];if(v&32768)break C;c=Kg(k);break C}c=Jg(k)}p=c^J[g+2734688>>2];D:{E:{F:{if(G){J[b+4>> -2]=J[b+4>>2]|8;c=b-4|0;J[c>>2]=J[c>>2]|1;c=J[b>>2];if(p){c=c|272;break E}c=c|16;break F}c=n+M|0;J[c+4>>2]=J[c+4>>2]|4;g=c-4|0;J[g>>2]=J[g>>2]|2;g=b-4|0;J[g>>2]=J[g>>2]|1;J[b+4>>2]=J[b+4>>2]|8;g=J[c>>2];if(p){J[c>>2]=g|1088;c=J[b>>2]|272;break E}J[c>>2]=g|64;c=J[b>>2]|16}v=128;g=32;break D}v=2176;g=544}J[b>>2]=c;b=n-4|0;J[b>>2]=J[b>>2]|g;J[n+4>>2]=v|J[n+4>>2];J[n>>2]=J[n>>2]|4096;J[j>>2]=p?f:x}J[n>>2]=J[n>>2]|16384}G:{if(o>>>0<2)break G;v=h<<2;p=v+j|0;b=n+l|0;g=J[b>>2];c=g&255;if(!(!c|g&20480)){c= -J[k+16>>2]+(J[((c|y)<<2)+2730592>>2]<<2)|0;J[k+12>>2]=c;u=J[c>>2];c=J[u>>2];w=J[k+4>>2]-c|0;J[k+4>>2]=w;q=J[k>>2];H:{if(c>>>0<=q>>>16>>>0){J[k>>2]=q-(c<<16);c=J[u+4>>2];if(w&32768)break H;c=Kg(k);break H}c=Jg(k)}if(c){u=(g>>>4&255)<<2;c=J[k+16>>2]+(J[u+2735712>>2]<<2)|0;J[k+12>>2]=c;g=J[c>>2];c=J[g>>2];w=J[k+4>>2]-c|0;J[k+4>>2]=w;q=J[k>>2];I:{if(c>>>0<=q>>>16>>>0){J[k>>2]=q-(c<<16);g=J[g+4>>2];if(w&32768)break I;g=Kg(k);break I}g=Jg(k)}u=J[u+2734688>>2];c=n-4|0;J[c>>2]=J[c>>2]|2;J[n+4>>2]=J[n+4>> -2]|4;c=b+l|0;w=c-4|0;J[w>>2]=J[w>>2]|1;J[c+4>>2]=J[c+4>>2]|8;g=(g|0)==(u|0);J[n>>2]=J[n>>2]|(g?64:1088);J[c>>2]=J[c>>2]|(g?16:272);c=b-4|0;J[c>>2]=J[c>>2]|(g?32:544);J[b+4>>2]=J[b+4>>2]|(g?128:2176);J[b>>2]=J[b>>2]|4096;J[p>>2]=g?x:f}J[b>>2]=J[b>>2]|16384}if(o>>>0<3)break G;u=p+v|0;c=b+l|0;p=J[c>>2];g=p&255;if(!(!g|p&20480)){g=J[k+16>>2]+(J[((g|y)<<2)+2730592>>2]<<2)|0;J[k+12>>2]=g;w=J[g>>2];g=J[w>>2];q=J[k+4>>2]-g|0;J[k+4>>2]=q;F=J[k>>2];J:{if(g>>>0<=F>>>16>>>0){J[k>>2]=F-(g<<16);g=J[w+4>>2];if(q& -32768)break J;g=Kg(k);break J}g=Jg(k)}if(g){w=(p>>>4&255)<<2;g=J[k+16>>2]+(J[w+2735712>>2]<<2)|0;J[k+12>>2]=g;p=J[g>>2];g=J[p>>2];q=J[k+4>>2]-g|0;J[k+4>>2]=q;F=J[k>>2];K:{if(g>>>0<=F>>>16>>>0){J[k>>2]=F-(g<<16);p=J[p+4>>2];if(q&32768)break K;p=Kg(k);break K}p=Jg(k)}w=J[w+2734688>>2];g=b-4|0;J[g>>2]=J[g>>2]|2;J[b+4>>2]=J[b+4>>2]|4;g=c+l|0;q=g-4|0;J[q>>2]=J[q>>2]|1;J[g+4>>2]=J[g+4>>2]|8;q=b;z=J[b>>2];b=(p|0)==(w|0);J[q>>2]=z|(b?64:1088);J[g>>2]=J[g>>2]|(b?16:272);g=c-4|0;J[g>>2]=J[g>>2]|(b?32:544); -J[c+4>>2]=J[c+4>>2]|(b?128:2176);J[c>>2]=J[c>>2]|4096;J[u>>2]=b?x:f}J[c>>2]=J[c>>2]|16384}if(o>>>0<4)break G;b=c+l|0;p=J[b>>2];g=p&255;if(!g|p&20480)break G;g=J[k+16>>2]+(J[((g|y)<<2)+2730592>>2]<<2)|0;J[k+12>>2]=g;w=J[g>>2];g=J[w>>2];q=J[k+4>>2]-g|0;J[k+4>>2]=q;F=J[k>>2];L:{if(g>>>0<=F>>>16>>>0){J[k>>2]=F-(g<<16);g=J[w+4>>2];if(q&32768)break L;g=Kg(k);break L}g=Jg(k)}if(g){v=u+v|0;u=(p>>>4&255)<<2;g=J[k+16>>2]+(J[u+2735712>>2]<<2)|0;J[k+12>>2]=g;p=J[g>>2];g=J[p>>2];w=J[k+4>>2]-g|0;J[k+4>>2]=w;q= -J[k>>2];M:{if(g>>>0<=q>>>16>>>0){J[k>>2]=q-(g<<16);p=J[p+4>>2];if(w&32768)break M;p=Kg(k);break M}p=Jg(k)}u=J[u+2734688>>2];g=c-4|0;J[g>>2]=J[g>>2]|2;J[c+4>>2]=J[c+4>>2]|4;g=b+l|0;w=g-4|0;J[w>>2]=J[w>>2]|1;J[g+4>>2]=J[g+4>>2]|8;q=c;w=J[c>>2];c=(p|0)==(u|0);J[q>>2]=w|(c?64:1088);J[g>>2]=J[g>>2]|(c?16:272);g=b-4|0;J[g>>2]=J[g>>2]|(c?32:544);J[b+4>>2]=J[b+4>>2]|(c?128:2176);J[b>>2]=J[b>>2]|4096;J[v>>2]=c?x:f}J[b>>2]=J[b>>2]|16384}j=j+4|0;n=n+4|0;b=e-1|0;if((e|0)>1)continue;break}s=s+D|0;m=m+X|0;b=(o| -0)>4;o=o-4|0;if(b)continue;break}break v}fa(203333,199119,261,212028);B()}if(J[t+20>>2]==1){j=J[J[A+32>>2]+24>>2]+O|0;b=J[r+40>>2];p=J[b+20>>2];v=0;d=J[r+36>>2];if(J[d+20>>2]>=2){c=J[d+28>>2];v=J[c+4>>2]-J[c>>2]>>2}X=K[j+418|0];j=J[E+8>>2];f=J[r+28>>2];k=J[b+24>>2];N:{O:{if((p|0)>=2){c=J[b+28>>2];o=J[c+4>>2]-J[c>>2]|0;x=o>>2;break O}o=0;x=0;if((p|0)!=1)break N}if((k|0)<=0)break N;F=X&8;u=0-v|0;m=1<>>1|m;M=0-G|0;D=j<<8;i=J[J[d+28>>2]+4>>2]+4|0;m=J[J[b+28>>2]>>2];s=0;$=o<<2;y=v<<2;aa=y<<2;while(1){b= -p-s|0;w=(b|0)<4;n=w?b:4;d=k;o=m;j=i;while(1){l=d;P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{e=J[j>>2];if(e&20735|w)break _;b=j+y|0;if(L[b>>1]&20735)break _;h=b+y|0;if(L[h>>1]&20735)break _;c=o;d=j;b=n;if(L[h+y>>1]&20735)break Z;b=J[f+16>>2];J[f+12>>2]=b;d=J[b>>2];b=J[d>>2];c=J[f+4>>2]-b|0;J[f+4>>2]=c;e=J[f>>2];$:{if(b>>>0<=e>>>16>>>0){J[f>>2]=e-(b<<16);b=J[d+4>>2];if(c&32768)break $;b=Kg(f);break $}b=Jg(f)}if(!b)break P;b=J[f+16>>2];J[f+12>>2]=b+72;d=J[b+72>>2];b=J[d>>2];c=J[f+4>>2]-b|0;J[f+4>>2]=c;e=J[f>> -2];aa:{if(b>>>0<=e>>>16>>>0){J[f>>2]=e-(b<<16);b=J[d+4>>2];if(c&32768)break aa;b=Kg(f);break aa}b=Jg(f)}c=J[J[f+12>>2]>>2];d=J[c>>2];e=J[f+4>>2]-d|0;J[f+4>>2]=e;h=J[f>>2];ba:{if(d>>>0<=h>>>16>>>0){J[f>>2]=h-(d<<16);d=J[c+4>>2];if(e&32768)break ba;d=Kg(f);break ba}d=Jg(f)}h=d|b<<1;b=n-h|0;c=(P(h,x)<<2)+o|0;d=(P(h,v)<<2)+j|0;e=J[d>>2];switch(h|0){case 3:break S;case 2:break U;case 1:break W;case 0:break Y;default:break Z}}c=o;d=j;b=n}if(e&20480)break X;h=J[f+16>>2]+(J[((D|e&255)<<2)+2730592>>2]<<2)| -0;J[f+12>>2]=h;g=J[h>>2];h=J[g>>2];q=J[f+4>>2]-h|0;J[f+4>>2]=q;z=J[f>>2];ca:{if(h>>>0<=z>>>16>>>0){J[f>>2]=z-(h<<16);h=J[g+4>>2];if(q&32768)break ca;h=Kg(f);break ca}h=Jg(f)}if(h)break Y;e=J[d>>2];break X}h=(e>>>4&255)<<2;e=J[f+16>>2]+(J[h+2735712>>2]<<2)|0;J[f+12>>2]=e;g=J[e>>2];e=J[g>>2];q=J[f+4>>2]-e|0;J[f+4>>2]=q;z=J[f>>2];da:{if(e>>>0<=z>>>16>>>0){J[f>>2]=z-(e<<16);e=J[g+4>>2];if(q&32768)break da;e=Kg(f);break da}e=Jg(f)}g=(e|0)==J[h+2734688>>2];J[c>>2]=g?G:M;e=d+y|0;ea:{fa:{ga:{if(F){J[e+4>> -2]=J[e+4>>2]|8;h=e-4|0;J[h>>2]=J[h>>2]|1;h=J[e>>2];if(!g){g=h|272;break fa}g=h|16;break ga}h=(u<<2)+d|0;J[h+4>>2]=J[h+4>>2]|4;q=h-4|0;J[q>>2]=J[q>>2]|2;q=e-4|0;J[q>>2]=J[q>>2]|1;J[e+4>>2]=J[e+4>>2]|8;q=J[h>>2];if(!g){J[h>>2]=q|1088;g=J[e>>2]|272;break fa}J[h>>2]=q|64;g=J[e>>2]|16}q=32;h=128;break ea}q=544;h=2176}J[e>>2]=g;e=d-4|0;J[e>>2]=q|J[e>>2];J[d+4>>2]=J[d+4>>2]|h;e=J[d>>2]|4096;J[d>>2]=e}J[d>>2]=e&-16385;if((b|0)<2)break P;b=b-1|0;c=(x<<2)+c|0;d=d+y|0;e=J[d>>2];if(e&20480)break V;h=J[f+16>> -2]+(J[((D|e&255)<<2)+2730592>>2]<<2)|0;J[f+12>>2]=h;g=J[h>>2];h=J[g>>2];q=J[f+4>>2]-h|0;J[f+4>>2]=q;z=J[f>>2];ha:{if(h>>>0<=z>>>16>>>0){J[f>>2]=z-(h<<16);h=J[g+4>>2];if(q&32768)break ha;h=Kg(f);break ha}h=Jg(f)}if(h)break W;e=J[d>>2];break V}h=(e>>>4&255)<<2;e=J[f+16>>2]+(J[h+2735712>>2]<<2)|0;J[f+12>>2]=e;g=J[e>>2];e=J[g>>2];q=J[f+4>>2]-e|0;J[f+4>>2]=q;z=J[f>>2];ia:{if(e>>>0<=z>>>16>>>0){J[f>>2]=z-(e<<16);e=J[g+4>>2];if(q&32768)break ia;e=Kg(f);break ia}e=Jg(f)}e=(e|0)==J[h+2734688>>2];J[c>>2]=e? -G:M;h=(u<<2)+d|0;g=h-4|0;J[g>>2]=J[g>>2]|2;J[h+4>>2]=J[h+4>>2]|4;g=d+y|0;q=g-4|0;J[q>>2]=J[q>>2]|1;J[g+4>>2]=J[g+4>>2]|8;J[h>>2]=J[h>>2]|(e?64:1088);J[g>>2]=J[g>>2]|(e?16:272);h=d-4|0;J[h>>2]=J[h>>2]|(e?32:544);J[d+4>>2]=J[d+4>>2]|(e?128:2176);e=J[d>>2]|4096;J[d>>2]=e}J[d>>2]=e&-16385;if((b|0)<2)break P;b=b-1|0;c=(x<<2)+c|0;d=d+y|0;e=J[d>>2];if(e&20480)break T;h=J[f+16>>2]+(J[((D|e&255)<<2)+2730592>>2]<<2)|0;J[f+12>>2]=h;g=J[h>>2];h=J[g>>2];q=J[f+4>>2]-h|0;J[f+4>>2]=q;z=J[f>>2];ja:{if(h>>>0<=z>>> -16>>>0){J[f>>2]=z-(h<<16);h=J[g+4>>2];if(q&32768)break ja;h=Kg(f);break ja}h=Jg(f)}if(h)break U;e=J[d>>2];break T}h=(e>>>4&255)<<2;e=J[f+16>>2]+(J[h+2735712>>2]<<2)|0;J[f+12>>2]=e;g=J[e>>2];e=J[g>>2];q=J[f+4>>2]-e|0;J[f+4>>2]=q;z=J[f>>2];ka:{if(e>>>0<=z>>>16>>>0){J[f>>2]=z-(e<<16);e=J[g+4>>2];if(q&32768)break ka;e=Kg(f);break ka}e=Jg(f)}e=(e|0)==J[h+2734688>>2];J[c>>2]=e?G:M;h=(u<<2)+d|0;g=h-4|0;J[g>>2]=J[g>>2]|2;J[h+4>>2]=J[h+4>>2]|4;g=d+y|0;q=g-4|0;J[q>>2]=J[q>>2]|1;J[g+4>>2]=J[g+4>>2]|8;J[h>>2]= -J[h>>2]|(e?64:1088);J[g>>2]=J[g>>2]|(e?16:272);h=d-4|0;J[h>>2]=J[h>>2]|(e?32:544);J[d+4>>2]=J[d+4>>2]|(e?128:2176);e=J[d>>2]|4096;J[d>>2]=e}J[d>>2]=e&-16385;if((b|0)<2)break P;d=d+y|0;e=J[d>>2];if(e&20480)break Q;b=J[f+16>>2]+(J[((D|e&255)<<2)+2730592>>2]<<2)|0;J[f+12>>2]=b;h=J[b>>2];b=J[h>>2];g=J[f+4>>2]-b|0;J[f+4>>2]=g;q=J[f>>2];la:{if(b>>>0<=q>>>16>>>0){J[f>>2]=q-(b<<16);b=J[h+4>>2];if(g&32768)break la;b=Kg(f);break la}b=Jg(f)}if(!b)break R;c=(x<<2)+c|0}e=(e>>>4&255)<<2;b=J[f+16>>2]+(J[e+2735712>> -2]<<2)|0;J[f+12>>2]=b;h=J[b>>2];b=J[h>>2];g=J[f+4>>2]-b|0;J[f+4>>2]=g;q=J[f>>2];ma:{if(b>>>0<=q>>>16>>>0){J[f>>2]=q-(b<<16);b=J[h+4>>2];if(g&32768)break ma;b=Kg(f);break ma}b=Jg(f)}b=(b|0)==J[e+2734688>>2];J[c>>2]=b?G:M;c=(u<<2)+d|0;e=c-4|0;J[e>>2]=J[e>>2]|2;J[c+4>>2]=J[c+4>>2]|4;e=d+y|0;h=e-4|0;J[h>>2]=J[h>>2]|1;J[e+4>>2]=J[e+4>>2]|8;J[c>>2]=J[c>>2]|(b?64:1088);J[e>>2]=J[e>>2]|(b?16:272);c=d-4|0;J[c>>2]=J[c>>2]|(b?32:544);J[d+4>>2]=J[d+4>>2]|(b?128:2176);e=J[d>>2]|4096;J[d>>2]=e;break Q}e=J[d>>2]}J[d>> -2]=e&-16385}o=o+4|0;j=j+4|0;d=l-1|0;if((l|0)>1)continue;break}m=m+$|0;i=i+aa|0;s=s+4|0;if((p|0)>(s|0))continue;break}}i=1;if(!(X&32))break v;b=J[f+16>>2];J[f+12>>2]=b+72;d=J[b+72>>2];b=J[d>>2];m=J[f+4>>2]-b|0;J[f+4>>2]=m;j=J[f>>2];na:{if(b>>>0<=j>>>16>>>0){J[f>>2]=j-(b<<16);b=J[d+4>>2];if(m&32768)break na;b=Kg(f);break na}b=Jg(f)}m=J[J[f+12>>2]>>2];d=J[m>>2];j=J[f+4>>2]-d|0;J[f+4>>2]=j;c=J[f>>2];oa:{if(d>>>0<=c>>>16>>>0){J[f>>2]=c-(d<<16);d=J[m+4>>2];if(j&32768)break oa;d=Kg(f);break oa}d=Jg(f)}j= -J[J[f+12>>2]>>2];m=J[j>>2];c=J[f+4>>2]-m|0;J[f+4>>2]=c;d=d&1;e=b<<1&2;b=J[f>>2];pa:{if(m>>>0<=b>>>16>>>0){J[f>>2]=b-(m<<16);b=J[j+4>>2];if(c&32768)break pa;b=Kg(f);break pa}b=Jg(f)}m=d|e;j=J[J[f+12>>2]>>2];d=J[j>>2];c=J[f+4>>2]-d|0;J[f+4>>2]=c;e=J[f>>2];qa:{if(d>>>0<=e>>>16>>>0){J[f>>2]=e-(d<<16);d=J[j+4>>2];if(c&32768)break qa;d=Kg(f);break qa}d=Jg(f)}if((d&1|(b<<1&2|m<<2))==10)break v;hd(205594,0);break v}fa(203946,199119,282,212028);B()}e=J[r+36>>2];d=J[e+20>>2];c=J[r+40>>2];s=J[c+24>>2];o=J[c+ -20>>2];if(J[t+20>>2]==1){b=0;l=0;if((d|0)>=2){d=J[e+28>>2];l=J[d+4>>2]-J[d>>2]>>2}if((o|0)>=2){b=J[c+28>>2];b=J[b+4>>2]-J[b>>2]>>2}i=1;if((o|0)<=0|(s|0)<=0)break v;h=J[r+28>>2];d=1<>>1|0;j=m?0-d|0:-1;m=J[J[e+28>>2]+4>>2]+4|0;c=J[J[c+28>>2]>>2];g=b<<2;x=g<<2;k=l<<2;y=k<<2;while(1){b=s;n=m;e=c;while(1){i=J[n>>2];if((i&20480)==4096){i=J[h+16>>2]+(J[((i>>>2&2048|i&255)<<2)+2736736>>2]<<2)|0;J[h+12>>2]=i;l=J[i>>2];i=J[l>>2];f=J[h+4>>2]-i|0;J[h+4>>2]=f;p=J[h>>2];ra:{if(i>>>0<=p>>>16>>>0){J[h>>2]=p-(i<< -16);i=J[l+4>>2];if(f&32768)break ra;i=Kg(h);break ra}i=Jg(h)}i=i?d:j;f=0-i|0;l=i;i=J[e>>2];J[e>>2]=((i|0)<0?f:l)+i;J[n>>2]=J[n>>2]|8192}i=b;sa:{if(o>>>0<2)break sa;b=e+g|0;l=k+n|0;f=J[l>>2];if((f&20480)==4096){f=J[h+16>>2]+(J[((f>>>2&2048|f&255)<<2)+2736736>>2]<<2)|0;J[h+12>>2]=f;p=J[f>>2];f=J[p>>2];v=J[h+4>>2]-f|0;J[h+4>>2]=v;u=J[h>>2];ta:{if(f>>>0<=u>>>16>>>0){J[h>>2]=u-(f<<16);f=J[p+4>>2];if(v&32768)break ta;f=Kg(h);break ta}f=Jg(h)}f=f?d:j;u=0-f|0;p=f;f=J[b>>2];J[b>>2]=((f|0)<0?u:p)+f;J[l>>2]= -J[l>>2]|8192}if(o>>>0<3)break sa;b=b+g|0;l=k+l|0;f=J[l>>2];if((f&20480)==4096){f=J[h+16>>2]+(J[((f>>>2&2048|f&255)<<2)+2736736>>2]<<2)|0;J[h+12>>2]=f;p=J[f>>2];f=J[p>>2];v=J[h+4>>2]-f|0;J[h+4>>2]=v;u=J[h>>2];ua:{if(f>>>0<=u>>>16>>>0){J[h>>2]=u-(f<<16);f=J[p+4>>2];if(v&32768)break ua;f=Kg(h);break ua}f=Jg(h)}f=f?d:j;u=0-f|0;p=f;f=J[b>>2];J[b>>2]=((f|0)<0?u:p)+f;J[l>>2]=J[l>>2]|8192}if(o>>>0<4)break sa;l=k+l|0;f=J[l>>2];if((f&20480)!=4096)break sa;f=J[h+16>>2]+(J[((f>>>2&2048|f&255)<<2)+2736736>>2]<< -2)|0;J[h+12>>2]=f;p=J[f>>2];f=J[p>>2];v=J[h+4>>2]-f|0;J[h+4>>2]=v;u=b+g|0;b=J[h>>2];va:{if(f>>>0<=b>>>16>>>0){J[h>>2]=b-(f<<16);b=J[p+4>>2];if(v&32768)break va;b=Kg(h);break va}b=Jg(h)}b=b?d:j;p=0-b|0;f=b;b=J[u>>2];J[u>>2]=((b|0)<0?p:f)+b;J[l>>2]=J[l>>2]|8192}e=e+4|0;n=n+4|0;b=i-1|0;if((i|0)>1)continue;break}c=c+x|0;m=m+y|0;b=(o|0)>4;o=o-4|0;if(b)continue;break}i=1;break v}b=0;l=0;if((d|0)>=2){d=J[e+28>>2];l=J[d+4>>2]-J[d>>2]>>2}if((o|0)>=2){b=J[c+28>>2];b=J[b+4>>2]-J[b>>2]>>2}i=1;if((o|0)<=0|(s| -0)<=0)break v;d=J[r+32>>2];g=1<>>1|0;k=m?0-g|0:-1;m=J[J[e+28>>2]+4>>2]+4|0;h=J[J[c+28>>2]>>2];f=b<<2;y=f<<2;x=l<<2;p=x<<2;while(1){c=s;b=c;e=m;n=e;j=h;l=h;wa:{xa:{ya:{za:{Aa:{if(o>>>0>=2)while(1){if((J[e>>2]&20480)==4096){if(!(H[d+16|0]&1))break Aa;b=J[d+8>>2];n=b-1|0;J[d+8>>2]=n;Ba:{if((b|0)<=0){i=0;b=Bg(d);if((b|0)>=0)break Ba;break v}b=J[d+4>>2]>>>n&1}b=b?g:k;i=0-b|0;n=b;b=J[j>>2];J[j>>2]=((b|0)<0?i:n)+b;J[e>>2]=J[e>>2]|8192}b=c;n=f+j|0;l=e+x|0;if((J[l>>2]&20480)==4096){if(!(H[d+16|0]&1))break za; -c=J[d+8>>2];i=c-1|0;J[d+8>>2]=i;Ca:{if((c|0)<=0){i=0;c=Bg(d);if((c|0)>=0)break Ca;break v}c=J[d+4>>2]>>>i&1}c=c?g:k;u=0-c|0;i=c;c=J[n>>2];J[n>>2]=((c|0)<0?u:i)+c;J[l>>2]=J[l>>2]|8192}Da:{if(o>>>0<3)break Da;c=f+n|0;n=l+x|0;if((J[n>>2]&20480)==4096){if(!(H[d+16|0]&1))break ya;i=J[d+8>>2];l=i-1|0;J[d+8>>2]=l;Ea:{if((i|0)<=0){i=0;l=Bg(d);if((l|0)>=0)break Ea;break v}l=J[d+4>>2]>>>l&1}i=l?g:k;u=0-i|0;l=i;i=J[c>>2];J[c>>2]=((i|0)<0?u:l)+i;J[n>>2]=J[n>>2]|8192}if(o>>>0<4)break Da;n=n+x|0;if((J[n>>2]&20480)!= -4096)break Da;if(!(H[d+16|0]&1))break xa;i=J[d+8>>2];l=i-1|0;J[d+8>>2]=l;Fa:{if((i|0)<=0){i=0;l=Bg(d);if((l|0)>=0)break Fa;break v}l=J[d+4>>2]>>>l&1}i=c+f|0;c=J[i>>2];u=i;i=l?g:k;J[u>>2]=c+((c|0)<0?0-i|0:i);J[n>>2]=J[n>>2]|8192}j=j+4|0;e=e+4|0;c=b-1|0;if((b|0)>1)continue;break wa}while(1){if((J[n>>2]&20480)==4096){if(!(H[d+16|0]&1))break Aa;j=J[d+8>>2];c=j-1|0;J[d+8>>2]=c;Ga:{if((j|0)<=0){i=0;e=Bg(d);if((e|0)>=0)break Ga;break v}e=J[d+4>>2]>>>c&1}j=e?g:k;e=0-j|0;c=j;j=J[l>>2];J[l>>2]=((j|0)<0?e:c)+ -j;J[n>>2]=J[n>>2]|8192}l=l+4|0;n=n+4|0;j=(b|0)>1;b=b-1|0;if(j)continue;break}break wa}fa(205303,199119,720,212062);B()}fa(205303,199119,728,212062);B()}fa(205303,199119,736,212062);B()}fa(205303,199119,744,212062);B()}h=h+y|0;m=m+p|0;b=(o|0)>4;o=o-4|0;if(b)continue;break}i=1;break v}b=J[J[A+32>>2]+24>>2]+O|0;d=J[r+40>>2];o=J[d+20>>2];j=0;c=J[r+36>>2];if(J[c+20>>2]>=2){j=J[c+28>>2];j=J[j+4>>2]-J[j>>2]>>2}n=K[b+418|0];k=J[r+32>>2];s=J[d+24>>2];Ha:{if((o|0)>=2){b=1<>>1|b;b=J[d+28>>2];e=J[b+4>> -2]-J[b>>2]|0;h=e>>2;break Ha}i=1;if((o|0)!=1)break v;b=1<>>1|b;e=0;h=0}if((s|0)<=0){i=1;break v}x=0-g|0;v=n&8;n=J[J[c+28>>2]+4>>2]+4|0;m=J[J[d+28>>2]>>2];u=0-j<<2;G=e<<2;f=j<<2;M=f<<2;Ia:{while(1){b=s;d=n;j=m;while(1){e=b;b=J[d>>2];if(!(!(b&255)|b&20480)){Ja:{Ka:{La:{if(H[k+16|0]&1){b=J[k+8>>2];c=b-1|0;J[k+8>>2]=c;Ma:{if((b|0)<=0){i=0;b=Bg(k);if((b|0)>=0)break Ma;break v}b=J[k+4>>2]>>>c&1}if(!b)break Ja;if(!(H[k+16|0]&1))break e;b=J[k+8>>2];c=b-1|0;J[k+8>>2]=c;Na:{if((b|0)<=0){i=0;c=Bg(k); -if((c|0)>=0)break Na;break v}c=J[k+4>>2]>>>c&1}i=d+f|0;Oa:{if(v){J[i+4>>2]=J[i+4>>2]|8;b=i-4|0;J[b>>2]=J[b>>2]|1;b=J[i>>2];if(c){b=b|272;break La}b=b|16;break Oa}b=d+u|0;J[b+4>>2]=J[b+4>>2]|4;l=b-4|0;J[l>>2]=J[l>>2]|2;l=i-4|0;J[l>>2]=J[l>>2]|1;J[i+4>>2]=J[i+4>>2]|8;l=J[b>>2];if(c){J[b>>2]=l|1088;b=J[i>>2]|272;break La}J[b>>2]=l|64;b=J[i>>2]|16}y=128;l=32;break Ka}break e}y=2176;l=544}J[i>>2]=b;b=d-4|0;J[b>>2]=J[b>>2]|l;J[d+4>>2]=y|J[d+4>>2];J[d>>2]=J[d>>2]|4096;J[j>>2]=c?x:g}J[d>>2]=J[d>>2]|16384}Pa:{if(o>>> -0<2)break Pa;y=h<<2;p=y+j|0;l=d+f|0;b=J[l>>2];if(!(!(b&255)|b&20480)){if(!(H[k+16|0]&1))break d;b=J[k+8>>2];c=b-1|0;J[k+8>>2]=c;Qa:{if((b|0)<=0){i=0;c=Bg(k);if((c|0)>=0)break Qa;break v}c=J[k+4>>2]>>>c&1}if(c){if(!(H[k+16|0]&1))break d;b=J[k+8>>2];c=b-1|0;J[k+8>>2]=c;Ra:{if((b|0)<=0){i=0;c=Bg(k);if((c|0)>=0)break Ra;break v}c=J[k+4>>2]>>>c&1}J[d+4>>2]=J[d+4>>2]|4;b=d-4|0;J[b>>2]=J[b>>2]|2;b=f+l|0;i=b-4|0;J[i>>2]=J[i>>2]|1;J[b+4>>2]=J[b+4>>2]|8;J[d>>2]=J[d>>2]|(c?1088:64);J[b>>2]=J[b>>2]|(c?272:16); -b=l-4|0;J[b>>2]=J[b>>2]|(c?544:32);J[l+4>>2]=J[l+4>>2]|(c?2176:128);J[l>>2]=J[l>>2]|4096;J[p>>2]=c?x:g}J[l>>2]=J[l>>2]|16384}if(o>>>0<3)break Pa;p=p+y|0;c=f+l|0;b=J[c>>2];if(!(!(b&255)|b&20480)){if(!(H[k+16|0]&1))break c;b=J[k+8>>2];i=b-1|0;J[k+8>>2]=i;Sa:{if((b|0)<=0){i=0;b=Bg(k);if((b|0)>=0)break Sa;break v}b=J[k+4>>2]>>>i&1}if(b){if(!(H[k+16|0]&1))break c;b=J[k+8>>2];i=b-1|0;J[k+8>>2]=i;Ta:{if((b|0)<=0){i=0;b=Bg(k);if((b|0)>=0)break Ta;break v}b=J[k+4>>2]>>>i&1}J[l+4>>2]=J[l+4>>2]|4;i=l-4|0;J[i>> -2]=J[i>>2]|2;i=c+f|0;D=i-4|0;J[D>>2]=J[D>>2]|1;J[i+4>>2]=J[i+4>>2]|8;J[l>>2]=J[l>>2]|(b?1088:64);J[i>>2]=J[i>>2]|(b?272:16);i=c-4|0;J[i>>2]=J[i>>2]|(b?544:32);J[c+4>>2]=J[c+4>>2]|(b?2176:128);J[c>>2]=J[c>>2]|4096;J[p>>2]=b?x:g}J[c>>2]=J[c>>2]|16384}if(o>>>0<4)break Pa;l=c+f|0;b=J[l>>2];if(!(b&255)|b&20480)break Pa;if(!(H[k+16|0]&1))break b;b=J[k+8>>2];i=b-1|0;J[k+8>>2]=i;Ua:{if((b|0)<=0){i=0;b=Bg(k);if((b|0)>=0)break Ua;break v}b=J[k+4>>2]>>>i&1}if(b){if(!(H[k+16|0]&1))break Ia;b=J[k+8>>2];i=b-1| -0;J[k+8>>2]=i;Va:{if((b|0)<=0){i=0;b=Bg(k);if((b|0)>=0)break Va;break v}b=J[k+4>>2]>>>i&1}J[c+4>>2]=J[c+4>>2]|4;i=c-4|0;J[i>>2]=J[i>>2]|2;i=f+l|0;D=i-4|0;J[D>>2]=J[D>>2]|1;J[i+4>>2]=J[i+4>>2]|8;J[c>>2]=J[c>>2]|(b?1088:64);J[i>>2]=J[i>>2]|(b?272:16);c=l-4|0;J[c>>2]=J[c>>2]|(b?544:32);J[l+4>>2]=J[l+4>>2]|(b?2176:128);J[l>>2]=J[l>>2]|4096;J[p+y>>2]=b?x:g}J[l>>2]=J[l>>2]|16384}j=j+4|0;d=d+4|0;b=e-1|0;if((e|0)>1)continue;break}m=m+G|0;n=n+M|0;b=(o|0)>4;o=o-4|0;if(b)continue;break}i=1;break v}break b}if(K[(J[J[A+ -32>>2]+24>>2]+O|0)+418|0]&2)d9(J[r+28>>2]);if(i){W=W+1|0;if((W|0)>=J[t+12>>2])break t;continue}break}J[Q+4>>2]=J[t+20>>2];J[Q>>2]=_;hd(204497,Q);b=-1;break i}Wa:switch(J[t+20>>2]-1|0){default:fa(200858,199119,308,212028);B();case 1:d=K[(J[J[A+32>>2]+24>>2]+O|0)+418|0]<<27>>31;d=cE(J[r+32>>2],d&127,d&42);b=-1;if((d|0)<0)break i;if(d)hd(204865,0);wu(J[r+32>>2]);J[r+32>>2]=0;break;case 0:break Wa}J[r+12>>2]=J[t>>2];b=J[t+4>>2];d=J[t>>2];J[(b?b:Z)>>2]=d;J[(d?d:Z)+4>>2]=b;J[t>>2]=0;J[t+4>>2]=0;b=J[t+24>> -2];if(b)If(b);qc(t);t=J[r+12>>2];if(t)continue;break}}if(J[r+12>>2])break h}r=r+44|0;b=(V|0)>1;V=V-1|0;if(b)continue;break}}U=U+40|0;d=I-1|0;if((I|0)>1)continue;break}}E=E+32|0;d=N-1|0;if((N|0)>1)continue;break}}S=S+60|0;d=C-1|0;if((C|0)>1)continue;break}}R=R+32|0;b=(T|0)>1;T=T-1|0;if(b)continue;break}}b=0}bc=Q+16|0;break a}fa(204942,199119,332,212028);B()}fa(202223,199119,234,212028);B()}fa(199997,199119,218,212028);B()}fa(205303,199119,519,212047);B()}fa(205303,199119,528,212047);B()}fa(205303, -199119,537,212047);B()}fa(205303,199119,546,212047);B()}Xa:{if(b){j=-1;c=208050;break Xa}Ya:{Za:{_a:{c=J[a+56>>2];b=0;$a:{if((c|0)<=0)break $a;e=J[A+36>>2];while(1){j=J[e+20>>2];if((j|0)>0){N=J[J[A+32>>2]+24>>2]+P(Y,488)|0;n=J[e+24>>2];h=0;while(1){m=J[n+4>>2];ab:{if(!m)break ab;i=0;if(J[n>>2]<=0)break ab;while(1){o=J[m+4>>2];bb:{if(!o)break bb;r=J[m+28>>2];C=K[N+417|0]-r|0;cb:{if(!(r|C))break cb;j=J[o+20>>2];if((j|0)<=0)break cb;c=J[o+24>>2];if((c|0)<=0)break cb;I=1<>2];l=k^-1;b= -0;s=0;while(1){if((c|0)>0){d=J[o+28>>2];j=0;while(1){t=j<<2;f=b<<2;x=t+J[f+d>>2]|0;g=J[x>>2];c=g>>31;c=(c^g)-c|0;db:{if((c|0)>=(I|0)){c=c>>>r|0;J[x>>2]=(g|0)<0?0-c|0:c;break db}c=c<>2]}s=1;c=c&l}J[t+J[d+f>>2]>>2]=(g|0)<0?0-c|0:c}c=J[o+24>>2];j=j+1|0;if((c|0)>(j|0))continue;break}j=J[o+20>>2]}b=b+1|0;if((j|0)>(b|0))continue;break}}if(!J[A+48>>2])break bb;kE(J[m+4>>2],13);b=J[m+16>>2];if((b|0)<0)break _a;if((b|0)==8192)break bb;s=J[m+4>>2];j=J[s+20>>2];if((j| -0)<=0)break bb;c=J[s+24>>2];if((c|0)<=0)break bb;d=b;o=0;while(1){if((c|0)>0){r=J[J[s+28>>2]+(o<<2)>>2];j=0;while(1){b=r+(j<<2)|0;c=b;b=J[b>>2];g=b>>31;C=Dzb(b,g,d,0);J[c>>2]=b|g?(fc&8191)<<19|C>>>13:0;c=J[s+24>>2];j=j+1|0;if((c|0)>(j|0))continue;break}j=J[s+20>>2]}o=o+1|0;if((o|0)<(j|0))continue;break}}m=m+32|0;i=i+1|0;if((i|0)>2])continue;break}j=J[e+20>>2]}n=n+60|0;h=h+1|0;if((j|0)>(h|0))continue;break}c=J[a+56>>2]}e=e+32|0;Y=Y+1|0;if((Y|0)<(c|0))continue;break}b=0;if((c|0)<=0)break $a;j= -J[A+36>>2];c=0;while(1){d=J[j+16>>2];b=J[j+28>>2];m=J[b>>2];if((m|0)>0){n=J[d+4>>2];i=J[d+12>>2]-n|0;s=J[d+8>>2];r=J[d+16>>2]-s|0;e=J[d+28>>2];o=J[e>>2];n9(b,o,n,s,i,r,J[d+20>>2]>=2?J[e+4>>2]-o>>2:0,m-1|0)}j=j+32|0;c=c+1|0;b=J[a+56>>2];if((c|0)<(b|0))continue;break}b=(b|0)==3}eb:{fb:switch(K[J[A+32>>2]+16|0]-1|0){case 1:if(!b)break Za;d=J[A+36>>2];b=J[d+16>>2];m=J[d+80>>2];t=0;gb:{hb:{j=J[b+20>>2];c=J[d+48>>2];if((j|0)!=J[c+20>>2])break hb;d=J[b+24>>2];if((d|0)!=J[c+24>>2]|(j|0)!=J[m+20>>2]|(d|0)!= -J[m+24>>2])break hb;if(!((j|0)<=0|(d|0)<=0)){e=J[m+28>>2];o=J[c+28>>2];n=J[b+28>>2];m=d-1|0;r=d&1;while(1){b=t<<2;s=J[b+e>>2];h=J[b+o>>2];i=J[b+n>>2];if(r){c=J[s>>2];g=J[h>>2];b=J[i>>2]-(c+g>>2)|0;J[i>>2]=b+c;J[h>>2]=b;J[s>>2]=b+g;s=s+4|0;h=h+4|0;i=i+4|0;b=m}else b=d;if((d|0)!=1)while(1){g=J[s>>2];C=J[h>>2];c=J[i>>2]-(g+C>>2)|0;J[i>>2]=c+g;J[h>>2]=c;J[s>>2]=c+C;g=J[s+4>>2];C=J[h+4>>2];c=J[i+4>>2]-(g+C>>2)|0;J[i+4>>2]=c+g;J[h+4>>2]=c;J[s+4>>2]=c+C;s=s+8|0;h=h+8|0;i=i+8|0;c=(b|0)>2;b=b-2|0;if(c)continue; -break}t=t+1|0;if((j|0)!=(t|0))continue;break}}break gb}fa(197707,198563,145,211895);B()}break eb;case 0:break fb;default:break eb}if(!b)break Ya;d=J[A+36>>2];b=J[d+16>>2];e=0;ib:{jb:{i=J[b+20>>2];j=J[d+48>>2];m=J[d+80>>2];if(!((i|0)!=J[j+20>>2]|(i|0)!=J[m+20>>2])){d=J[b+24>>2];if((d|0)!=J[j+24>>2]|(d|0)!=J[m+24>>2])break jb;if(!((i|0)<=0|(d|0)<=0)){g=J[m+28>>2];C=J[j+28>>2];N=J[b+28>>2];while(1){b=e<<2;m=J[b+g>>2];j=J[b+C>>2];c=J[b+N>>2];b=d;while(1){o=J[j>>2];r=o>>31;h=J[c>>2];n=J[m>>2];s=n>>31; -I=Dzb(n,s,11485,0);J[c>>2]=((fc&8191)<<19|I>>>13)+h;n=Dzb(n,s,-5850,8191);s=fc;I=Dzb(o,r,-2819,8191);J[j>>2]=(((fc&8191)<<19|I>>>13)+h|0)+((s&8191)<<19|n>>>13);o=Dzb(o,r,14516,0);J[m>>2]=((fc&8191)<<19|o>>>13)+h;m=m+4|0;j=j+4|0;c=c+4|0;o=(b|0)>1;b=b-1|0;if(o)continue;break}e=e+1|0;if((i|0)!=(e|0))continue;break}}break ib}fa(199877,198563,229,211912);B()}fa(200705,198563,231,211912);B()}}e=J[a+56>>2];m=J[A+36>>2];kb:{if(J[A+48>>2]){t=0;if((e|0)<=0)break kb;d=m;while(1){b=J[d+16>>2];j=J[b+20>>2];lb:{if((j| -0)<=0)break lb;n=0;c=J[b+24>>2];if((c|0)<=0)break lb;while(1){if((c|0)>0){e=J[J[b+28>>2]+(n<<2)>>2];j=0;while(1){o=e+(j<<2)|0;c=J[o>>2];mb:{if((c|0)<0){c=c+4096&-8192;break mb}c=0-(4096-c&-8192)|0}J[o>>2]=c>>13;c=J[b+24>>2];j=j+1|0;if((c|0)>(j|0))continue;break}j=J[b+20>>2]}n=n+1|0;if((n|0)<(j|0))continue;break}e=J[a+56>>2]}d=d+32|0;t=t+1|0;if((t|0)<(e|0))continue;break}}t=0;if((e|0)<=0)break kb;s=J[a+88>>2];d=s;b=m;while(1){o=0;o=K[d+20|0]?o:1<>2]-1;i=J[b+16>>2];j=J[i+20>>2];nb:{if((j|0)<= -0)break nb;n=0;c=J[i+24>>2];if((c|0)<=0)break nb;while(1){if((c|0)>0){e=J[J[i+28>>2]+(n<<2)>>2];j=0;while(1){c=e+(j<<2)|0;J[c>>2]=J[c>>2]+o;c=J[i+24>>2];j=j+1|0;if((c|0)>(j|0))continue;break}j=J[i+20>>2]}n=n+1|0;if((n|0)<(j|0))continue;break}e=J[a+56>>2]}d=d+32|0;b=b+32|0;t=t+1|0;if((t|0)<(e|0))continue;break}t=0;if((e|0)<=0)break kb;while(1){b=J[s+16>>2];d=-1<>2];d=J[i+20>>2];ob:{pb:{if((d|0)>=2){b=J[i+28>>2];e=J[b+4>>2]-J[b>>2]>>2;break pb}if((d| -0)!=1)break ob}if(J[i+24>>2]<=0)break ob;o=J[J[i+28>>2]>>2];r=e<<2;while(1){n=d;b=J[i+24>>2];qb:{if((b|0)<=0)break qb;d=o;e=b;if(b&1){e=J[d>>2];d=j;rb:{if((e|0)>=(d|0)){d=c;if((e|0)<=(c|0))break rb}J[o>>2]=d}e=b-1|0;d=o+4|0}if((b|0)==1)break qb;while(1){b=j;h=J[d>>2];sb:{if((b|0)<=(h|0)){b=c;if((h|0)<=(b|0))break sb}J[d>>2]=b}b=j;h=J[d+4>>2];tb:{if((b|0)<=(h|0)){b=c;if((h|0)<=(b|0))break tb}J[d+4>>2]=b}d=d+8|0;b=(e|0)>2;e=e-2|0;if(b)continue;break}}d=n-1|0;o=o+r|0;if((n|0)>1)continue;break}}s=s+32| -0;m=m+32|0;t=t+1|0;b=J[a+56>>2];if((t|0)<(b|0))continue;break}if((b|0)>0){j=J[A+36>>2];c=J[a+88>>2];d=0;while(1){b=J[c>>2];e=J[j>>2]-(((b+J[a+4>>2]|0)-1>>>0)/(b>>>0)|0)|0;b=J[c+4>>2];m=J[j+4>>2]-(((b+J[a+8>>2]|0)-1>>>0)/(b>>>0)|0)|0;b=J[j+16>>2];if(gk(J[a>>2],d,e,m,J[b+24>>2],J[b+20>>2],b)){j=-4;c=208210;break Xa}c=c+32|0;j=j+32|0;d=d+1|0;if((d|0)>2])continue;break}}}return 0}fa(208504,201384,1777,211791);B()}fa(208129,201384,1072,211772);B()}fa(208129,201384,1077,211772);B()}hd(c,0);return j} -function Jya(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;var h=0,i=0,j=0,k=0,l=0;h=bc-240|0;bc=h;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!K[b+144|0]){a=Kc(h+176|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;break b}k=J[d>>2];if(J[b+4>>2]==1){a=Kc(h+176|0,J[682139],2374155,869,2402499,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;break b}i=Uk(a,2387615);J[h+232>>2]=0;J[h+236>>2]=J[682146];a=J[c>>2];k:{if(a){j=J[J[a>> -2]+28>>2];J[695492]=0;ca(j|0,h+176|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break k;e=Z()|0;break c}J[h+176>>2]=0}J[695492]=0;aa(4993,h+232|0,h+176|0)|0;a=J[695492];J[695492]=0;l:{if((a|0)!=1){a=J[h+176>>2];J[h+176>>2]=0;if(!a)break l;J[695492]=0;j=J[a+4>>2]-1|0;J[a+4>>2]=j;l=J[695492];J[695492]=0;if((l|0)!=1){if(j)break l;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break l}break a}e=Z()|0;vc(h+176|0);break c}a=J[h+232>>2];J[h+236>>2]=J[(a?a+12|0:2728584)>>2];J[695492]=0;j=fd(h+ -232|0,2404376,-1);a=J[695492];J[695492]=0;if((a|0)==1)break h;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{a=e|f;if(!(j|(a|0)!=1)){if(J[b+8>>2]){J[695492]=0;a=ja(5018,h+176|0,2387908,2374155,879,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break B;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}if(e){J[695492]=0;a=ja(5018,h+176|0,2388316,2374155,881,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;a=h+220|0;_(5296,a|0);c=J[695492];J[695492]=0;C:{D:{E:{if((c|0)!=1){J[695492]=0;da(5297,J[h+220>>2],k|0);c=J[695492];J[695492]=0;if((c|0)==1)break C;J[695492]=0;aa(4993,b+8|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break C;J[695492]=0;ga(5180,i|0,2388411,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break C;a=J[b+8>>2];if((J[a+8>>2]|J[a+12>>2])>=0)break D;J[695492]=0;a=ja(5018,h+176|0,2389976,2374155,889,2402499,0)|0;b=J[695492];J[695492]=0;if((b| -0)==1)break E;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break d}e=Z()|0;break c}e=Z()|0;break d}if(J[a+16>>2]>=50){J[695492]=0;a=ja(5018,h+176|0,2390242,2374155,892,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break z;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break d}a=J[h+220>>2];J[h+220>>2]=0;if(!a)break g;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break g;J[695492]=0;_(4987, -a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break a}e=Z()|0;break d}J[695492]=0;e=fd(h+232|0,2382374,-1);j=J[695492];J[695492]=0;if((j|0)==1)break h;if(!(e|(a|g)!=1)){J[695492]=0;ia(5304,h+228|0,b|0,k|0,-1);a=J[695492];J[695492]=0;F:{G:{H:{I:{J:{if((a|0)!=1){a=J[h+228>>2];if(!a)break H;J[695492]=0;b=J[a+148>>2];c=J[695492];J[695492]=0;K:{if((c|0)==1)break K;if(b&1)break J;J[695492]=0;b=J[a+148>>2];c=J[695492];J[695492]=0;if((c|0)==1)break K;if(b&2)break J;J[695492]=0;b=J[a+148>>2];c=J[695492]; -J[695492]=0;if((c|0)==1)break K;if(b&4)break J;J[695492]=0;_(5263,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break I}e=Z()|0;break e}e=Z()|0;break c}J[695492]=0;a=J[J[h+228>>2]+148>>2];b=J[695492];J[695492]=0;if((b|0)==1)break f;b=2;L:{if(a&2){J[695492]=0;a=pa(5213)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break L;break f}J[695492]=0;a=J[J[h+228>>2]+148>>2];b=J[695492];J[695492]=0;if((b|0)==1)break f;b=4;if(!(a&4))break I;J[695492]=0;a=pa(5213)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f}c=J[J[a>>2]+ -40>>2];J[695492]=0;ia(c|0,a|0,J[h+228>>2],b|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break f}J[695492]=0;a=aa(4991,h+176|0,J[h+228>>2]+72|0)|0;b=J[695492];J[695492]=0;M:{N:{O:{P:{if((b|0)!=1){J[695492]=0;b=h+212|0;da(5113,b|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break P;J[695492]=0;c=h+220|0;ca(5048,c|0,2390529,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break O;d=J[h+220>>2];d=J[(d?d+12|0:2728584)>>2];J[695492]=0;ga(5180,i|0,d|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break N;sc(c);sc(b);J[a+24>> -2]=2381060;J[a>>2]=2381028;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2381060;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}sc(a+8|0);break G}e=Z()|0;break e}e=Z()|0;ud(a);break e}e=Z()|0;break M}e=Z()|0;sc(h+220|0)}sc(h+212|0);ud(a);break e}J[695492]=0;ga(5180,i|0,2390682,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break F}a=J[h+228>>2];J[h+228>>2]=0;if(!a)break g;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]= -b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break g;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break a}e=Z()|0;break e}J[695492]=0;e=fd(h+232|0,2390804,-1);j=J[695492];J[695492]=0;if((j|0)==1)break h;if(!(a^1|(e|0)!=0)){if(J[b+24>>2]){J[695492]=0;a=ja(5018,h+176|0,2390968,2374155,928,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break y;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;a=h+176|0;_(5312,a|0);c=J[695492]; -J[695492]=0;Q:{if((c|0)!=1){J[695492]=0;ia(5313,J[h+176>>2],d|0,0,0);c=J[695492];J[695492]=0;if((c|0)==1)break Q;J[695492]=0;aa(4993,b+24|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Q;a=J[h+176>>2];b=J[a+40>>2];c=J[a+44>>2];a=J[a+16>>2];J[695492]=0;J[h>>2]=((a+c|0)-b|0)+1;ga(5180,i|0,2391570,h|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Q;a=J[h+176>>2];J[h+176>>2]=0;if(!a)break g;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break g;J[695492]=0;_(4987, -a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break a}e=Z()|0;break c}e=Z()|0;vc(h+176|0);break c}J[695492]=0;e=fd(h+232|0,2392457,-1);j=J[695492];J[695492]=0;if((j|0)==1)break h;if(!(a^1|(e|0)!=0)){if(J[b+20>>2]){J[695492]=0;a=ja(5018,h+176|0,2393464,2374155,941,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break x;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;a=$(4,108)|0;c=J[695492];J[695492]=0;R:{S:{if((c|0)==1)break S;J[695492]=0; -c=$(5314,a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break w;J[695492]=0;J[h+176>>2]=0;aa(4985,h+176|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break S;c=J[b+8>>2];T:{if(!c){a=J[h+176>>2];break T}a=J[h+176>>2];if(J[c+16>>2]>18)break T;H[a+104|0]=1}J[695492]=0;ia(5315,a|0,d|0,5316,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break R;J[695492]=0;aa(4993,b+20|0,h+176|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break R;c=J[h+176>>2];a=J[c+76>>2];c=J[c+72>>2];J[695492]=0;b=ga(5317,b|0,c|0,a|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break R;J[h+16>>2]=c;J[695492]=0;J[h+20>>2]=a;J[h+24>>2]=b;ga(5180,i|0,2393933,h+16|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break R;a=J[h+176>>2];J[h+176>>2]=0;if(!a)break g;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break g;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break a}e=Z()|0;break c}e=Z()|0;vc(h+176|0);break c}J[695492]=0;e=fd(h+232|0,2387072,-1);j=J[695492];J[695492]=0;if((j|0)==1)break h;U:{V:{W:{X:{if(!(a^ -1|(e|0)!=0)){if(J[b+20>>2]){J[695492]=0;a=ja(5018,h+176|0,2393464,2374155,958,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break v;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;a=J[b+148>>2];c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;a=a|2048;if((a|0)!=J[b+148>>2])J[b+148>>2]=a;a=J[695492];J[695492]=0;if((a|0)==1)break h;a=0;Y:{Z:{_:{$:{c=J[d>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break $; -a=J[d>>2]}J[695492]=0;J[h+172>>2]=a;a=h+176|0;da(5318,a|0,h+172|0);c=J[695492];J[695492]=0;if((c|0)==1)break _;J[695492]=0;aa(4993,b+20|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Z;a=J[h+176>>2];J[h+176>>2]=0;aa:{if(!a)break aa;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break aa;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[h+172>>2];J[h+172>>2]=0;ba:{if(!a)break ba;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492]; -J[695492]=0;if((d|0)==1)break a;if(c)break ba;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}c=J[b+20>>2];a=J[c+76>>2];e=J[c+72>>2];J[695492]=0;b=ga(5317,b|0,e|0,a|0)|0;c=J[695492];J[695492]=0;d=2394053;if((c|0)!=1)break X;break h}e=Z()|0;break c}e=Z()|0;break Y}e=Z()|0;vc(h+176|0)}vc(h+172|0);break c}J[695492]=0;e=fd(h+232|0,2394160,-1);j=J[695492];J[695492]=0;if((j|0)==1)break h;if(!(a^1|(e|0)!=0)){a=b+12|0;c=J[b+12>>2];if(!c){if(J[b+16>>2]){J[695492]=0;a=ja(5018,h+176|0,2394319, -2374155,972,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break u;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;da(5319,h+176|0,1);c=J[695492];J[695492]=0;ca:{da:{ea:{if((c|0)!=1){c=J[h+176>>2];e=J[d>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break ea;d=J[d>>2]}else d=0;J[h+168>>2]=d;d=J[J[c>>2]+40>>2];J[695492]=0;e=c;c=h+168|0;aa(d|0,e|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break da;vc(c);J[695492]= -0;f=h+176|0;aa(4993,a|0,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break ea;J[695492]=0;a=J[J[h+176>>2]+12>>2];if(a)a=J[a+4>>2];else a=0;c=J[695492];J[695492]=0;if((c|0)==1)break ea;J[695492]=0;c=J[J[h+176>>2]+12>>2];if(c)c=J[c+8>>2];else c=0;d=J[695492];J[695492]=0;if((d|0)==1)break ea;J[695492]=0;d=J[J[h+176>>2]+12>>2];if(d)d=J[d+4>>2];else d=0;e=J[695492];J[695492]=0;if((e|0)==1)break ea;J[695492]=0;e=J[J[h+176>>2]+12>>2];if(e)e=J[e+8>>2];else e=0;g=J[695492];J[695492]=0;if((g|0)==1)break ea;J[695492]= -0;b=ga(5317,b|0,d|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break ea;J[h+48>>2]=a;J[695492]=0;J[h+52>>2]=c;J[h+56>>2]=b;ga(5180,i|0,2394498,h+48|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break ea;vc(f);break g}e=Z()|0;break c}e=Z()|0;break ca}e=Z()|0;vc(h+168|0)}vc(h+176|0);break c}J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;fa:{ga:{ha:{if((c|0)!=1){a=J[a>>2];J[h+176>>2]=a;c=J[d>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break ha;c=J[d>>2]}else c= -0;J[h+164>>2]=c;c=J[J[a>>2]+40>>2];J[695492]=0;d=a;a=h+164|0;aa(c|0,d|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break ga;vc(a);a=J[h+176>>2];c=J[J[a>>2]+52>>2];J[695492]=0;d=$(c|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break ha;J[695492]=0;a=J[J[h+176>>2]+12>>2];if(a)a=J[a+4>>2];else a=0;c=J[695492];J[695492]=0;if((c|0)==1)break ha;J[695492]=0;c=J[J[h+176>>2]+12>>2];if(c)c=J[c+8>>2];else c=0;e=J[695492];J[695492]=0;if((e|0)==1)break ha;J[695492]=0;a=ga(5317,b|0,a|0,c|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break ha;J[h+64>>2]=d;J[695492]=0;J[h+68>>2]=a;ga(5180,i|0,2394668,h- -64|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break ha;vc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break fa}e=Z()|0;vc(h+164|0)}vc(h+176|0);break c}J[695492]=0;e=fd(h+232|0,2395560,-1);j=J[695492];J[695492]=0;if((j|0)==1)break h;if(!(!f|e)){if(J[b+28>>2]|J[b+32>>2]){J[695492]=0;a=ja(5018,h+176|0,2395664,2374155,995,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;da(5319,h+176|0,1);a=J[695492];J[695492]=0;ia:{ja:{ka:{la:{ma:{if((a|0)!=1){a=J[h+176>>2];c=J[d>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break ma;c=J[d>>2]}else c=0;J[h+160>>2]=c;c=J[J[a>>2]+40>>2];J[695492]=0;d=c;c=h+160|0;aa(d|0,a|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break la;vc(c);c=J[J[a>>2]+16>>2];J[695492]=0;d=c;c=h+220|0;da(d|0,c|0,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break ka;J[695492]= -0;aa(4993,b+28|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break ja;vc(c);J[695492]=0;c=J[a+12>>2];if(c)c=J[c+4>>2];else c=0;d=J[695492];J[695492]=0;if((d|0)==1)break ma;J[695492]=0;d=J[a+12>>2];if(d)d=J[d+8>>2];else d=0;e=J[695492];J[695492]=0;if((e|0)==1)break ma;J[695492]=0;e=J[a+12>>2];if(e)e=J[e+4>>2];else e=0;f=J[695492];J[695492]=0;if((f|0)==1)break ma;J[695492]=0;a=J[a+12>>2];if(a)a=J[a+8>>2];else a=0;f=J[695492];J[695492]=0;if((f|0)==1)break ma;J[695492]=0;a=ga(5317,b|0,e|0,a|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break ma;J[h+80>>2]=c;J[695492]=0;J[h+84>>2]=d;J[h+88>>2]=a;ga(5180,i|0,2395870,h+80|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break ma;vc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break ia}e=Z()|0;vc(h+160|0);break ia}e=Z()|0;break ia}e=Z()|0;vc(h+220|0)}vc(h+176|0);break c}J[695492]=0;e=fd(h+232|0,2396355,-1);f=J[695492];J[695492]=0;if((f|0)==1)break h;if(a^1|e)break U;if(J[b+12>>2]|J[b+16>>2]){J[695492]=0;a=ja(5018,h+176|0,2394319,2374155,1009,2402499,0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break s;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}if(!J[689883]){a=2396476;break i}J[695492]=0;c=J[b+148>>2];a=c&-129|128;if((a|0)!=(c|0))J[b+148>>2]=a;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;c=J[b+148>>2];a=c&-2049|2048;if((a|0)!=(c|0))J[b+148>>2]=a;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;c=J[b+148>>2];a=c&-4097|4096;if((a|0)!=(c|0))J[b+148>>2]=a;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;a= -h+176|0;da(J[689883],a|0,k|0);c=J[695492];J[695492]=0;if((c|0)==1)break W;J[695492]=0;aa(4993,b+16|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break V;vc(a);c=J[b+16>>2];a=L[c+8>>1];e=L[c+10>>1];J[695492]=0;b=ga(5317,b|0,e|0,a|0)|0;c=J[695492];J[695492]=0;d=2396424;if((c|0)==1)break h}J[h+32>>2]=e;J[695492]=0;J[h+36>>2]=a;J[h+40>>2]=b;ga(5180,i|0,d|0,h+32|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;break g}e=Z()|0;break c}e=Z()|0;vc(h+176|0);break c}J[695492]=0;e=fd(h+232|0,2386783,-1);f=J[695492]; -J[695492]=0;if((f|0)==1)break h;if(!(a^1|(e|0)!=0)){if(J[b+12>>2]|J[b+16>>2]){J[695492]=0;a=ja(5018,h+176|0,2394319,2374155,1029,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;c=J[b+148>>2];a=c&-2049|2048;if((a|0)!=(c|0))J[b+148>>2]=a;b=J[695492];J[695492]=0;a=2396929;if((b|0)!=1)break i;break h}J[695492]=0;e=fd(h+232|0,2398671,-1);f=J[695492];J[695492]=0;if((f|0)==1)break h;if(!(a^1|(e| -0)!=0)){a=2398734;if(!(J[b+28>>2]|J[b+32>>2]))break i;J[695492]=0;a=ja(5018,h+176|0,2395664,2374155,1054,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break q;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;e=fd(h+232|0,2398887,-1);f=J[695492];J[695492]=0;if((f|0)==1)break h;if(!(a^1|(e|0)!=0)){a=2399172;if(!J[b+12>>2])break i;J[695492]=0;a=ja(5018,h+176|0,2394319,2374155,1078,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break p;J[695492]= -0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;e=fd(h+232|0,2399228,-1);f=J[695492];J[695492]=0;if((f|0)==1)break h;if(!(a^1|(e|0)!=0)){a=2399258;if(!(J[b+28>>2]|J[b+32>>2]))break i;J[695492]=0;a=ja(5018,h+176|0,2395664,2374155,1086,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break o;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}J[695492]=0;e=fd(h+232|0,2399297,-1);f=J[695492];J[695492]=0;if((f|0)==1)break h; -if(!(a^1|(e|0)!=0)){if(J[b+28>>2]|J[b+32>>2]){J[695492]=0;a=ja(5018,h+176|0,2395664,2374155,1094,2402499,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}a=0;J[695492]=0;_(5325,h+176|0);c=J[695492];J[695492]=0;na:{oa:{pa:{if((c|0)!=1){e=J[h+176>>2];c=J[d>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break pa;a=J[d>>2]}J[695492]=0;J[h+156>>2]=a;a=h+156|0;da(5326,e|0,a|0);c=J[695492]; -J[695492]=0;if((c|0)==1)break oa;vc(a);J[695492]=0;a=b+32|0;b=h+176|0;aa(4993,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break pa;a=J[h+176>>2];c=J[a+24>>2];d=J[a+28>>2];e=J[a+56>>2];a=J[a+60>>2];J[695492]=0;J[h+96>>2]=(a-e|0)+1;J[h+100>>2]=(d-c|0)+1;ga(5180,i|0,2399318,h+96|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break pa;vc(b);break g}e=Z()|0;break c}e=Z()|0;break na}e=Z()|0;vc(h+156|0)}vc(h+176|0);break c}J[695492]=0;a=h+232|0;e=fd(a,2399975,-1);f=J[695492];J[695492]=0;if((f|0)==1)break h; -qa:{if(e){J[695492]=0;a=fd(a,2399989,-1);e=J[695492];J[695492]=0;if((e|0)==1)break h;if(a)break qa}if(!g)break qa;a=b+12|0;c=J[b+12>>2];if(!c){J[695492]=0;da(5319,h+176|0,1);c=J[695492];J[695492]=0;ra:{sa:{ta:{ua:{va:{if((c|0)!=1){c=J[h+176>>2];e=J[d>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break va;d=J[d>>2]}else d=0;J[h+152>>2]=d;d=J[J[c>>2]+40>>2];J[695492]=0;e=c;c=h+152|0;aa(d|0,e|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break ua;vc(c);J[695492]=0;c= -h+220|0;_(5296,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break ta;J[695492]=0;d=J[J[h+176>>2]+12>>2];if(d)d=J[d+4>>2];else d=0;e=J[695492];J[695492]=0;if((e|0)==1)break sa;J[J[h+220>>2]+8>>2]=d;J[695492]=0;d=J[J[h+176>>2]+12>>2];if(d)d=J[d+8>>2];else d=0;e=J[695492];J[695492]=0;if((e|0)==1)break sa;e=J[h+220>>2];J[e+20>>2]=100;J[e+12>>2]=d;J[695492]=0;g=h+176|0;aa(4993,a|0,g|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break sa;J[695492]=0;aa(4993,b+8|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break sa; -J[695492]=0;a=J[J[h+176>>2]+12>>2];if(a)a=J[a+4>>2];else a=0;d=J[695492];J[695492]=0;if((d|0)==1)break sa;J[695492]=0;d=J[J[h+176>>2]+12>>2];if(d)d=J[d+8>>2];else d=0;e=J[695492];J[695492]=0;if((e|0)==1)break sa;J[695492]=0;e=J[J[h+176>>2]+12>>2];if(e)e=J[e+4>>2];else e=0;f=J[695492];J[695492]=0;if((f|0)==1)break sa;J[695492]=0;f=J[J[h+176>>2]+12>>2];if(f)f=J[f+8>>2];else f=0;k=J[695492];J[695492]=0;if((k|0)==1)break sa;J[695492]=0;b=ga(5317,b|0,e|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break sa; -J[h+112>>2]=a;J[695492]=0;J[h+116>>2]=d;J[h+120>>2]=b;ga(5180,i|0,2400060,h+112|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break sa;vc(c);vc(g);break g}e=Z()|0;break c}e=Z()|0;break ra}e=Z()|0;vc(h+152|0);break ra}e=Z()|0;break ra}e=Z()|0;vc(h+220|0)}vc(h+176|0);break c}J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;wa:{xa:{ya:{if((c|0)!=1){a=J[a>>2];J[h+176>>2]=a;c=J[d>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break ya;c=J[d>>2]}else c=0;J[h+148>>2]= -c;c=J[J[a>>2]+40>>2];J[695492]=0;d=a;a=h+148|0;aa(c|0,d|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break xa;vc(a);a=J[h+176>>2];c=J[J[a>>2]+52>>2];J[695492]=0;d=$(c|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break ya;J[695492]=0;a=J[J[h+176>>2]+12>>2];if(a)a=J[a+4>>2];else a=0;c=J[695492];J[695492]=0;if((c|0)==1)break ya;J[695492]=0;c=J[J[h+176>>2]+12>>2];if(c)c=J[c+8>>2];else c=0;e=J[695492];J[695492]=0;if((e|0)==1)break ya;J[695492]=0;a=ga(5317,b|0,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)== -1)break ya;J[h+128>>2]=d;J[695492]=0;J[h+132>>2]=a;ga(5180,i|0,2400121,h+128|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break ya;vc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break wa}e=Z()|0;vc(h+148|0)}vc(h+176|0);break c}J[695492]=0;a=fd(h+232|0,2400157,-1);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(!a){J[695492]=0;a=h+176|0;da(5327,a|0,b+72|0);c=J[695492];J[695492]=0;za:{if((c|0)!=1){J[695492]=0;da(5328,J[h+176>>2],k|0);c=J[695492];J[695492]=0;if((c|0)==1)break za;J[695492]=0;aa(4993,b+48|0,a| -0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;J[695492]=0;ga(5180,i|0,2400162,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;vc(a);break g}e=Z()|0;break c}e=Z()|0;vc(h+176|0);break c}J[695492]=0;a=fd(h+232|0,2400208,-1);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(!a){J[695492]=0;_(5078,h+176|0);a=J[695492];J[695492]=0;Aa:{Ba:{Ca:{Da:{Ea:{if((a|0)!=1){J[695492]=0;a=J[h+176>>2];ga(5165,a|0,k|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ba;c=J[J[a>>2]+20>>2];J[695492]=0;ha(c|0,a|0,0,0, -0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ba;c=b+36|0;b=J[b+36>>2];if(!b){J[695492]=0;b=h+220|0;_(5078,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break Da;J[695492]=0;aa(4993,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Ca;vc(b);b=J[c>>2]}d=J[J[b>>2]+20>>2];J[695492]=0;ha(d|0,b|0,0,2,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ea;b=J[c>>2];J[695492]=0;ga(5165,b|0,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ea;J[695492]=0;ga(5180,i|0,2400234,0)|0;a=J[695492];J[695492]=0;if((a| -0)==1)break Ea;vc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break Aa}e=Z()|0;break Aa}e=Z()|0;vc(h+220|0);break Aa}e=Z()|0}vc(h+176|0);break c}J[695492]=0;a=CU(h+232|0);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(a){J[695492]=0;_(5078,h+176|0);a=J[695492];J[695492]=0;Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{if((a|0)!=1){J[695492]=0;a=J[h+176>>2];ga(5165,a|0,k|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break La;d=J[J[a>>2]+20>>2];J[695492]=0;ha(d|0,a|0,0,0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break La;d= -b+36|0;b=J[b+36>>2];if(!b){J[695492]=0;b=h+220|0;_(5078,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break Ja;J[695492]=0;aa(4993,d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ia;vc(b);b=J[d>>2]}e=J[J[b>>2]+20>>2];J[695492]=0;ha(e|0,b|0,0,2,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ka;J[695492]=0;e=h+220|0;da(5108,e|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break Ha;b=J[c>>2];c=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=J[h+220>>2];ca(5160,b|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break Ga; -J[695492]=0;ga(5330,b|0,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ga;J[695492]=0;_(5162,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break Ga;J[695492]=0;ga(5180,i|0,2400323,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ga;vc(e);vc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break Fa}e=Z()|0;break Fa}e=Z()|0;break Fa}e=Z()|0;vc(h+220|0);break Fa}e=Z()|0;break Fa}e=Z()|0;vc(h+220|0)}vc(h+176|0);break c}J[695492]=0;a=BU(h+232|0);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(a){J[695492]=0;_(5078, -h+176|0);a=J[695492];J[695492]=0;Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{if((a|0)!=1){J[695492]=0;a=J[h+176>>2];ga(5165,a|0,k|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Sa;d=J[J[a>>2]+20>>2];J[695492]=0;ha(d|0,a|0,0,0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Sa;d=b+40|0;b=J[b+40>>2];if(!b){J[695492]=0;b=h+220|0;_(5078,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break Qa;J[695492]=0;aa(4993,d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Pa;vc(b);b=J[d>>2]}e=J[J[b>>2]+20>>2];J[695492]=0;ha(e|0,b| -0,0,2,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ra;J[695492]=0;e=h+220|0;da(5108,e|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break Oa;b=J[c>>2];c=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=J[h+220>>2];ca(5160,b|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break Na;J[695492]=0;ga(5330,b|0,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Na;J[695492]=0;_(5162,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break Na;J[695492]=0;ga(5180,i|0,2400587,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Na;vc(e); -vc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break Ma}e=Z()|0;break Ma}e=Z()|0;break Ma}e=Z()|0;vc(h+220|0);break Ma}e=Z()|0;break Ma}e=Z()|0;vc(h+220|0)}vc(h+176|0);break c}J[695492]=0;a=AU(h+232|0);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(a){J[695492]=0;_(5078,h+176|0);a=J[695492];J[695492]=0;Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{if((a|0)!=1){J[695492]=0;a=J[h+176>>2];ga(5165,a|0,k|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Za;d=J[J[a>>2]+20>>2];J[695492]=0;ha(d|0,a|0,0,0,0)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break Za;d=b+44|0;b=J[b+44>>2];if(!b){J[695492]=0;b=h+220|0;_(5078,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break Xa;J[695492]=0;aa(4993,d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Wa;vc(b);b=J[d>>2]}e=J[J[b>>2]+20>>2];J[695492]=0;ha(e|0,b|0,0,2,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ya;J[695492]=0;e=h+220|0;da(5108,e|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break Va;b=J[c>>2];c=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=J[h+220>>2];ca(5160,b|0,c|0,0);c=J[695492];J[695492]= -0;if((c|0)==1)break Ua;J[695492]=0;ga(5330,b|0,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ua;J[695492]=0;_(5162,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break Ua;vc(e);vc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break Ta}e=Z()|0;break Ta}e=Z()|0;break Ta}e=Z()|0;vc(h+220|0);break Ta}e=Z()|0;break Ta}e=Z()|0;vc(h+220|0)}vc(h+176|0);break c}J[695492]=0;a=fd(h+232|0,2400610,-1);b=J[695492];J[695492]=0;if((b|0)==1)break h;if(a)break g;J[695492]=0;a=ja(5018,h+176|0,2400623,2374155,1244,2402499, -0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;e=Z()|0;Fc(a);break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break d}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;qc(a);break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}B()}J[695492]=0;ga(5180,i|0,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break g}e=Z()|0;break c}sc(h+ -232|0);bc=h+240|0;return}e=Z()|0}vc(h+228|0);break c}vc(h+220|0)}sc(h+232|0);sc(i);ba(e|0);B()}b=Z()|0;Fc(a);ba(b|0);B()}ea(0)|0;yc();B()}function uFa(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,C=0,D=0,E=0,F=0,G=0,M=0,P=0,R=0,S=0,T=Q(0),U=Q(0),V=0,W=0;e=bc-320|0;bc=e;J[e+312>>2]=0;J[e+304>>2]=0;J[e+308>>2]=0;J[695492]=0;v=e+292|0;k=v;J[k>>2]=0;J[k+4>>2]=0;H[k+8|0]=0;k=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((k| -0)!=1){J[695492]=0;w=e+280|0;k=w;J[k>>2]=0;J[k+4>>2]=0;H[k+8|0]=0;k=J[695492];J[695492]=0;if((k|0)!=1){J[e+276>>2]=0;J[695492]=0;u=e+264|0;k=u;J[k>>2]=0;J[k+4>>2]=0;H[k+8|0]=0;k=J[695492];J[695492]=0;if((k|0)!=1){J[695492]=0;t=e+252|0;k=t;J[k>>2]=0;J[k+4>>2]=0;H[k+8|0]=0;k=J[695492];J[695492]=0;if((k|0)!=1){J[695492]=0;k=Yj(b);o=J[695492];J[695492]=0;if((o|0)==1)break e;if(!k){p=10;k=0;o=0;break f}J[695492]=0;da(4810,e+120|0,b|0);k=J[695492];J[695492]=0;if((k|0)!=1){i=a+12|0;p=10;k=0;o=0;g:{while(1){g= -K[e+131|0];f=g<<24>>24;l=(f|0)<0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{h=J[e+124>>2];switch((l?h:g)|0){case 0:break j;case 7:break B;default:break A}}if(!gd(l?J[e+120>>2]:e+120|0,2367432,7))break z;h=J[e+124>>2];g=K[e+131|0];f=g}l=f<<24>>24<0;if(((l?h:g)|0)==7)break y;break l}J[695492]=0;da(4811,e+32|0,b|0);f=J[695492];J[695492]=0;if((f|0)==1)break x;if(H[e+315|0]<0)qc(J[e+304>>2]);J[e+312>>2]=J[e+40>>2];f=J[e+36>>2];J[e+304>>2]=J[e+32>>2];J[e+308>>2]=f;J[695492]=0;f=e+304| -0;da(4857,e+32|0,f|0);g=J[695492];J[695492]=0;C:{D:{E:{if((g|0)!=1){J[695492]=0;f=aa(3191,f|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break E;if(J[f>>2]!=46)break v;f=An(i,47);if((f|0)==-1)break D;J[695492]=0;ma(2797,e+240|0,i|0,0,f+1|0,e+224|0)|0;break C}h=Z()|0;break g}h=Z()|0;break n}if(H[a+23|0]>=0){J[e+248>>2]=J[i+8>>2];f=J[i+4>>2];J[e+240>>2]=J[i>>2];J[e+244>>2]=f;break w}f=J[a+16>>2];g=J[a+12>>2];J[695492]=0;ca(15,e+240|0,g|0,f|0)}f=J[695492];J[695492]=0;if((f|0)!=1)break w;h=Z()|0;break n}if(gd(l? -J[e+120>>2]:e+120|0,2367488,7)){h=J[e+124>>2];g=K[e+131|0];f=g;break l}J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;F:{G:{H:{I:{if((g|0)!=1){J[695492]=0;f=aa(4825,e+212|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break I;J[695492]=0;Qs(f,e+240|0);g=J[695492];J[695492]=0;if((g|0)==1)break H;Lc(f);if(H[e+43|0]<0)qc(J[e+32>>2]);J[695492]=0;da(4836,d|0,e+240|0);f=J[695492];J[695492]=0;if((f|0)==1)break F;F=1;break k}h=Z()|0;break g}h=Z()|0;break G}h=Z()|0;Lc(f)}if(H[e+43|0]>=0)break g; -qc(J[e+32>>2]);break g}h=Z()|0;break g}h=Z()|0;break g}l=H[e+315|0];n=(l|0)<0;f=H[e+251|0];x=(f|0)<0;J:{K:{q=x?J[e+244>>2]:f&255;G=n?J[e+308>>2]:l&255;h=q+G|0;L:{if(h>>>0>=1073741808){J[695492]=0;_(2793,e+224|0);a=J[695492];J[695492]=0;if((a|0)==1)break L;break m}if(h>>>0<=1){J[e+232>>2]=0;J[e+224>>2]=0;J[e+228>>2]=0;H[e+235|0]=h;g=e+224|0;break J}g=h|3;if(g>>>0<1073741823)break K;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break m}h=Z()|0;f=K[e+251|0];break t}J[695492]=0;M=g+1|0;g=$(4, -M<<2)|0;P=J[695492];J[695492]=0;if((P|0)==1)break u;J[e+228>>2]=h;J[e+224>>2]=g;J[e+232>>2]=M|-2147483648}h=g;g=q<<2;q=Zc(h,x?J[e+240>>2]:e+240|0,g)+g|0;g=J[e+304>>2];h=G<<2;V=Zc(q,n?g:e+304|0,h)+h|0,W=0,J[V>>2]=W;if((l|0)<0){qc(g);f=K[e+251|0]}J[e+312>>2]=J[e+232>>2];g=J[e+228>>2];J[e+304>>2]=J[e+224>>2];J[e+308>>2]=g;if(f<<24>>24>=0)break v;qc(J[e+240>>2])}f=J[a+24>>2];g=J[J[f>>2]+12>>2];J[695492]=0;ca(g|0,e+240|0,f|0,e+304|0);f=J[695492];J[695492]=0;if((f|0)==1)break s;if(H[e+315|0]<0)qc(J[e+304>> -2]);J[e+312>>2]=J[e+248>>2];f=J[e+244>>2];J[e+304>>2]=J[e+240>>2];J[e+308>>2]=f;J[695492]=0;n=e+240|0;da(4859,n|0,e+304|0);f=J[695492];J[695492]=0;if((f|0)==1)break r;g=K[e+251|0];h=g<<24>>24;l=(h|0)<0;f=J[e+244>>2];x=l?f:g;if(x){g=l?J[e+240>>2]:n;f=g+(x<<2)|0;while(1){h=J[g>>2];J[695492]=0;h=ks(h);l=J[695492];J[695492]=0;if((l|0)==1)break o;J[g>>2]=h;g=g+4|0;if((f|0)!=(g|0))continue;break}g=K[e+251|0];h=g;q=J[e+244>>2]}else q=f;f=h<<24>>24<0;if(((f?q:g)|0)!=5)break q;if(gd(f?J[e+240>>2]:e+240|0, -2367464,5))break q;g=K[e+43|0];f=g<<24>>24<0;h=f?J[e+36>>2]:g;if(h){g=f?J[e+32>>2]:e+32|0;f=g+(h<<2)|0;while(1){h=J[g>>2];J[695492]=0;h=ks(h);l=J[695492];J[695492]=0;if((l|0)==1)break o;J[g>>2]=h;g=g+4|0;if((f|0)!=(g|0))continue;break}}f=J[a+24>>2];g=J[a+28>>2];J[695492]=0;ia(4860,g|0,e+32|0,e+304|0,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break p;break o}h=Z()|0}if(f<<24>>24>=0)break n;qc(J[e+240>>2]);break n}h=Z()|0;break n}h=Z()|0;break n}f=J[a+24>>2];g=J[J[f>>2]+8>>2];J[695492]=0;f=$(g|0,f|0)| -0;g=J[695492];J[695492]=0;if((g|0)==1)break o;if((f|0)!=1)break p;J[695492]=0;f=J[689330];g=J[695492];J[695492]=0;if((g|0)==1)break o;if(!f)break p;J[e+224>>2]=0;f=J[a+24>>2];g=J[J[f>>2]+20>>2];J[695492]=0;h=g;g=e+304|0;ga(h|0,f|0,g|0,e+224|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break o;J[695492]=0;f=J[689330];h=J[695492];J[695492]=0;if((h|0)==1)break o;M:{if(!f)break M;J[695492]=0;f=J[689330];h=J[695492];J[695492]=0;if((h|0)==1)break o;h=J[e+224>>2];l=J[h+4>>2];h=J[h>>2];n=J[J[f>>2]+16>>2];J[695492]= -0;ma(n|0,f|0,g|0,h|0,l|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break M;break o}f=J[e+224>>2];if(!f)break p;N:{if(!K[f+8|0])break N;g=J[f>>2];if(!g)break N;qc(g)}qc(f)}J[695492]=0;da(4861,e+224|0,e+304|0);f=J[695492];J[695492]=0;if((f|0)!=1){if(H[e+315|0]<0)qc(J[e+304>>2]);J[e+312>>2]=J[e+232>>2];f=J[e+228>>2];J[e+304>>2]=J[e+224>>2];J[e+308>>2]=f;f=J[J[c>>2]+244>>2];J[695492]=0;aa(f|0,c|0,e+304|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break o;if(H[e+251|0]<0)qc(J[e+240>>2]);if(H[e+43|0]>=0)break k; -qc(J[e+32>>2]);break k}}h=Z()|0;if(H[e+251|0]>=0)break n;qc(J[e+240>>2])}if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}B()}O:{l=f<<24>>24<0;if(((l?h:g)|0)!=4)break O;if(gd(l?J[e+120>>2]:e+120|0,2367520,4)){h=J[e+124>>2];g=K[e+131|0];f=g;break O}J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;P:{if((g|0)!=1){J[695492]=0;ca(4862,v|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break P;if(H[e+43|0]>=0)break k;qc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+ -32>>2]);break g}Q:{l=f<<24>>24<0;if(((l?h:g)|0)!=4)break Q;if(gd(l?J[e+120>>2]:e+120|0,2367540,4)){h=J[e+124>>2];g=K[e+131|0];f=g;break Q}J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;R:{if((g|0)!=1){J[695492]=0;ca(4862,t|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break R;if(H[e+43|0]>=0)break k;qc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}S:{l=f<<24>>24<0;if(((l?h:g)|0)!=16)break S;if(gd(l?J[e+120>>2]:e+120|0,2367560,16)){h=J[e+124>> -2];g=K[e+131|0];f=g;break S}J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;T:{U:{V:{if((g|0)!=1){J[695492]=0;f=aa(4825,e+200|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break V;if(H[e+43|0]<0)qc(J[e+32>>2]);J[695492]=0;g=Fd(f,2367628);h=J[695492];J[695492]=0;if((h|0)==1)break T;if(!g)break U;m=1;Lc(f);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}J[695492]=0;g=Fd(f,2367696);h=J[695492];J[695492]=0;if((h|0)==1)break T;if(g){j=1;Lc(f);break k}J[695492]= -0;g=Fd(f,2367756);h=J[695492];J[695492]=0;if((h|0)==1)break T;m=g|m;j=g|j;Lc(f);break k}h=Z()|0;Lc(f);break g}W:{l=f<<24>>24<0;if(((l?h:g)|0)!=19)break W;if(gd(l?J[e+120>>2]:e+120|0,2367840,19)){h=J[e+124>>2];g=K[e+131|0];f=g;break W}J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;X:{if((g|0)!=1){J[695492]=0;p=+qa(4835,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break X;if(H[e+43|0]>=0)break k;qc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}Y:{l= -f<<24>>24<0;if(((l?h:g)|0)!=15)break Y;if(gd(l?J[e+120>>2]:e+120|0,2367920,15)){h=J[e+124>>2];g=K[e+131|0];f=g;break Y}J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;Z:{if((g|0)!=1){J[695492]=0;ca(4862,w|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break Z;if(H[e+43|0]>=0)break k;qc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}_:{l=f<<24>>24<0;if(((l?h:g)|0)!=13)break _;if(gd(l?J[e+120>>2]:e+120|0,2367984,13)){h=J[e+124>>2];g=K[e+131|0]; -f=g;break _}J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;$:{aa:{ba:{ca:{da:{ea:{fa:{if((g|0)!=1){J[695492]=0;f=aa(4825,e+188|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break fa;if(H[e+43|0]<0)qc(J[e+32>>2]);J[695492]=0;g=J[f+4>>2];h=J[695492];J[695492]=0;if((h|0)==1)break aa;if(!g)break ba;J[695492]=0;k=J[f>>2];ga:{if(K[f+8|0]){o=0;if(!k)break ga;k=J[k>>2]}o=k}k=J[695492];J[695492]=0;if((k|0)==1)break ea;J[695492]=0;o=aa(4863,e+176|0,o|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break ea; -J[695492]=0;H[e+32|0]=1;k=ga(4864,o|0,e+276|0,e+32|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break da;if(H[e+187|0]<0)qc(J[o>>2]);o=J[e+276>>2];if(o>>>0<2){o=k;Lc(f);break k}if(L[k>>1]!=123){o=k;Lc(f);break k}if(L[k+2>>1]==125)break ca;o=k;Lc(f);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}h=Z()|0;Lc(f);break g}h=Z()|0;if(H[e+187|0]>=0)break $;qc(J[o>>2]);Lc(f);break g}J[e+276>>2]=o-2;o=k+4|0}Lc(f);break k}h=Z()|0}Lc(f);break g}ha:{f=f<<24>>24<0;if(((f?h:g)|0)!=7)break ha; -if(gd(f?J[e+120>>2]:e+120|0,2368040,7))break ha;J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;ia:{if((g|0)!=1){J[695492]=0;r=+qa(4835,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break ia;if(H[e+43|0]>=0)break k;qc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}if(xj(2368072,e+120|0)){J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;ja:{if((g|0)!=1){J[695492]=0;C=+qa(4835,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break ja;if(H[e+ -43|0]>=0)break k;qc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}if(xj(2368104,e+120|0)){J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;ka:{la:{if((g|0)!=1){J[695492]=0;ca(4862,u|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break la;if(H[e+43|0]<0)qc(J[e+32>>2]);J[695492]=0;da(4811,e+32|0,b|0);f=J[695492];J[695492]=0;if((f|0)==1)break ka;if((D|0)<0)qc(E);D=H[e+43|0];E=J[e+32>>2];break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+ -32>>2]);break g}h=Z()|0;break g}if(xj(2368136,e+120|0)){J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;ma:{if((g|0)!=1){J[695492]=0;R=$(4812,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break ma;if(H[e+43|0]>=0)break k;qc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}if(!dl(e+120|0,2368176))break k;J[695492]=0;f=e+32|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;na:{if((g|0)!=1){J[695492]=0;S=$(4865,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break na; -if(H[e+43|0]>=0)break k;qc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;qc(J[e+32>>2]);break g}J[695492]=0;f=vi(b);g=J[695492];J[695492]=0;if((g|0)==1)break i;if(f)break h;f=K[e+131|0]}if(f<<24>>24>=0)break f;qc(J[e+120>>2]);break f}h=Z()|0;break g}J[695492]=0;da(4810,e+32|0,b|0);f=J[695492];J[695492]=0;if((f|0)!=1){if(H[e+131|0]<0)qc(J[e+120>>2]);J[e+128>>2]=J[e+40>>2];f=J[e+36>>2];J[e+120>>2]=J[e+32>>2];J[e+124>>2]=f;continue}break}h=Z()|0}if(H[e+131|0]>=0)break d;qc(J[e+ -120>>2]);break d}h=Z()|0;break d}h=Z()|0;f=0;break c}h=Z()|0;break b}h=Z()|0;Lc(v);break a}h=Z()|0;break a}J[695492]=0;Ri(b);f=J[695492];J[695492]=0;if((f|0)==1)break e;h=0;J[695492]=0;f=!J[t+4>>2];g=J[695492];J[695492]=0;oa:{if((g|0)==1)break oa;l=0;pa:{if(f)break pa;J[695492]=0;f=J[t+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break oa;qa:{if(!f)break qa;J[695492]=0;J[e+120>>2]=0;f=J[t>>2];if(K[t+8|0])f=J[f>>2];f=J[(J[e+120>>2]<<2)+f>>2];g=J[695492];J[695492]=0;if((g|0)!=1){if((f|0)!=123)break qa; -J[695492]=0;h=aa(4866,d|0,t|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break pa;break oa}h=Z()|0;break d}J[695492]=0;f=J[t>>2];ra:{if(K[t+8|0]){g=0;if(!f)break ra;f=J[f>>2]}g=f}f=J[695492];J[695492]=0;if((f|0)==1)break oa;J[695492]=0;s=O[d+48>>3];f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;O[e+120>>3]=s;h=aa(4868,g|0,e+120|0)|0;f=J[695492];J[695492]=0;l=1;if((f|0)!=1)break pa}h=Z()|0;break d}J[695492]=0;f=Gh(b);g=J[695492];J[695492]=0;if((g|0)==1)break oa;sa:{ta:{ua:{va:{wa:{xa:{ya:{if(!f){J[695492]= -0;f=e+240|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;g=J[695492];J[695492]=0;if((g|0)==1)break ya;J[695492]=0;i=Qg(b);g=J[695492];J[695492]=0;za:{Aa:{if((g|0)!=1){while(1){J[695492]=0;g=aa(4815,b|0,i|0)|0;n=J[695492];J[695492]=0;if((n|0)==1)break sa;if(!g)break za;J[695492]=0;g=e+120|0;da(4802,g|0,b|0);n=J[695492];J[695492]=0;Ba:{Ca:{Da:{Ea:{if((n|0)!=1){J[695492]=0;g=aa(4825,e+224|0,g|0)|0;n=J[695492];J[695492]=0;if((n|0)==1)break Ea;J[695492]=0;Xf(f,g);n=J[695492];J[695492]=0;if((n|0)==1)break Da;Lc(g); -if(H[e+131|0]<0)qc(J[e+120>>2]);J[695492]=0;g=Fd(f,2368220);n=J[695492];J[695492]=0;if((n|0)==1)break sa;if(!g)break Ba;J[695492]=0;ca(4838,b|0,w|0,0);g=J[695492];J[695492]=0;if((g|0)!=1)continue;break sa}h=Z()|0;Lc(f);break d}h=Z()|0;break Ca}h=Z()|0;Lc(g)}if(H[e+131|0]>=0)break Aa;qc(J[e+120>>2]);Lc(f);break d}J[695492]=0;g=Fd(f,2368312);n=J[695492];J[695492]=0;if((n|0)==1)break sa;if(g^1|h)continue;J[695492]=0;s=O[d+48>>3];g=J[695492];J[695492]=0;Fa:{if((g|0)==1)break Fa;J[695492]=0;O[e+120>>3]= -s;h=ga(4869,b|0,e+120|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Fa;l=1;continue}break}h=Z()|0;Lc(f);break d}h=Z()|0}Lc(f);break d}Lc(f)}Ga:{Ha:{if(!h)break Ha;b=J[J[h>>2]+8>>2];J[695492]=0;b=aa(b|0,h|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break oa;if(b)break Ga;if(!l)break Ha;gc[J[J[h>>2]+4>>2]](h)}if(k)qc(k);if(!F)break va;J[695492]=0;wv(d);a=J[695492];J[695492]=0;if((a|0)==1)break oa;break va}n=0;J[695492]=0;b=J[w+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break oa;Ia:{if(!b)break Ia; -J[695492]=0;b=J[w>>2];Ja:{if(K[w+8|0]){f=0;if(!b)break Ja;b=J[b>>2]}f=b}b=J[695492];J[695492]=0;if((b|0)==1)break oa;J[695492]=0;n=ga(4834,e|0,f|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break oa;if(!(p<5))break Ia;J[695492]=0;s=+qa(4870,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break xa;p=p*s}x=0;J[695492]=0;b=J[v+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break oa;if(b){J[695492]=0;b=J[v>>2];Ka:{if(K[v+8|0]){f=0;if(!b)break Ka;b=J[b>>2]}f=b}b=J[695492];J[695492]=0;if((b|0)==1)break oa;J[695492]= -0;x=ga(4833,e|0,f|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break oa}s=p*.75;O[e+120>>3]=s;b=J[J[c>>2]+252>>2];J[695492]=0;aa(b|0,c|0,e+120|0)|0;b=J[695492];J[695492]=0;La:{Ma:{Na:{Oa:{if((b|0)!=1){J[e+168>>2]=0;J[e+136>>2]=0;J[e+140>>2]=0;J[e+144>>2]=0;J[e+148>>2]=0;H[e+149|0]=0;H[e+150|0]=0;H[e+151|0]=0;H[e+152|0]=0;H[e+153|0]=0;H[e+154|0]=0;H[e+155|0]=0;H[e+156|0]=0;J[e+160>>2]=0;J[e+164>>2]=0;I[e+124>>1]=0;J[e+120>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+116>>2]=0;J[695492]=0;b=J[u+4>>2];f=J[695492]; -J[695492]=0;if((f|0)==1)break Oa;J[e+112>>2]=b;J[e+108>>2]=0;b=J[a+24>>2];f=J[J[b>>2]+12>>2];J[695492]=0;g=f;f=e+96|0;ca(g|0,f|0,b|0,e+304|0);b=J[695492];J[695492]=0;if((b|0)==1)break Na;J[695492]=0;b=J[689330];g=J[695492];J[695492]=0;if((g|0)==1)break La;Pa:{if(!b)break Pa;J[695492]=0;b=J[689330];g=J[695492];J[695492]=0;if((g|0)==1)break ua;g=J[J[b>>2]+24>>2];J[695492]=0;b=aa(g|0,b|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break ua;if(b)break Pa;Qa:{if(H[e+107|0]<0){J[e+100>>2]=0;b=J[e+96>>2]; -break Qa}H[e+107|0]=0;b=e+96|0}J[b>>2]=0}b=K[e+107|0];if(b<<24>>24<0?J[e+100>>2]:b)break Ma;break wa}h=Z()|0;break d}h=Z()|0;break ta}h=Z()|0;break ta}b=J[a+32>>2];J[e+16>>2]=0;O[e+32>>3]=Q(s);J[e+88>>2]=0;J[e+92>>2]=1079508992;J[e+80>>2]=0;J[e+84>>2]=1079508992;f=J[J[b>>2]+148>>2];J[695492]=0;ja(f|0,b|0,e+96|0,e+16|0,e+32|0,e+88|0,e+80|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break wa;break ua}break ua}h=Z()|0;break d}h=Z()|0;break d}b=J[a+32>>2];f=J[J[b>>2]+24>>2];J[695492]=0;b=$(f|0,b|0)|0;f=J[695492]; -J[695492]=0;if((f|0)==1)break ua;Ra:{if(!b){f=0;b=0;break Ra}f=J[J[b>>2]+48>>2];J[695492]=0;f=$(f|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ua;g=J[J[b>>2]+52>>2];J[695492]=0;g=$(g|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;f=(f^1)&m;b=0;if((g|j^-1)&1)break Ra;b=J[J[c>>2]+140>>2];J[695492]=0;aa(b|0,c|0,e+88|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;b=J[J[c>>2]+148>>2];J[695492]=0;aa(b|0,c|0,e+80|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;b=J[J[c>>2]+52>>2];J[695492]= -0;aa(b|0,c|0,e+88|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;b=J[J[c>>2]+60>>2];J[695492]=0;aa(b|0,c|0,e+80|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;J[e+32>>2]=-286331153;J[e+36>>2]=1070657262;b=J[J[c>>2]+68>>2];J[695492]=0;aa(b|0,c|0,e+32|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;b=1}g=b;z=p/100;Sa:{if(S&1){while(1){J[695492]=0;b=J[u>>2];Ta:{if(K[u+8|0]){j=0;if(!b)break Ta;b=J[b>>2]}j=b}b=J[695492];J[695492]=0;if((b|0)==1)break ua;J[e+32>>2]=J[e+276>>2];J[695492]=0;i=e+32| -0;b=va(4872,j|0,e+116|0,e+112|0,o|0,e+108|0,i|0,e+120|0)|0;m=J[695492];J[695492]=0;Ua:{Va:{if((m|0)!=1){if(!b)break Sa;b=J[a+32>>2];Wa:{if(K[e+153|0]){m=L[e+124>>1];J[e+32>>2]=1;j=J[J[b>>2]+40>>2];J[695492]=0;da(j|0,b|0,i|0);j=J[695492];J[695492]=0;if((j|0)==1)break ua;J[e+88>>2]=m;m=J[J[b>>2]+112>>2];J[695492]=0;ca(m|0,i|0,b|0,e+88|0);b=J[695492];J[695492]=0;if((b|0)!=1)break Wa;break ua}J[e+32>>2]=0;i=J[J[b>>2]+40>>2];J[695492]=0;j=i;i=e+32|0;da(j|0,b|0,i|0);m=J[695492];J[695492]=0;if((m|0)==1)break ua; -J[e+88>>2]=J[e+120>>2];m=J[J[b>>2]+112>>2];J[695492]=0;ca(m|0,i|0,b|0,e+88|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua}T=N[e+48>>2];b=J[a+32>>2];Xa:{if(K[e+153|0]){i=L[e+124>>1];J[e+32>>2]=1;m=J[J[b>>2]+40>>2];J[695492]=0;j=m;m=e+32|0;da(j|0,b|0,m|0);j=J[695492];J[695492]=0;if((j|0)==1)break ua;J[e+88>>2]=i;i=J[J[b>>2]+112>>2];J[695492]=0;ca(i|0,m|0,b|0,e+88|0);b=J[695492];J[695492]=0;if((b|0)!=1)break Xa;break ua}J[e+32>>2]=0;i=J[J[b>>2]+40>>2];J[695492]=0;j=i;i=e+32|0;da(j|0,b|0,i|0);m=J[695492]; -J[695492]=0;if((m|0)==1)break ua;J[e+88>>2]=J[e+120>>2];m=J[J[b>>2]+112>>2];J[695492]=0;ca(m|0,i|0,b|0,e+88|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua}U=N[e+52>>2];s=O[e+144>>3];b=K[e+155|0]|K[e+156|0];p=b?O[e+136>>3]*z+r:r;y=O[e+128>>3];i=K[e+154|0];if(f)break Va;break Ua}break ua}J[e+64>>2]=0;J[e+68>>2]=0;J[e+56>>2]=0;J[e+60>>2]=1072693248;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=-1047329136;J[e+44>>2]=1070633085;J[e+32>>2]=0;J[e+36>>2]=1072693248;J[695492]=0;O[e+72>>3]=p*-.25881904510252074;da(4855, -d|0,e+32|0);m=J[695492];J[695492]=0;if((m|0)!=1)break Ua;break ua}J[e+56>>2]=0;J[e+60>>2]=0;J[e+48>>2]=0;J[e+52>>2]=1072693248;J[e+40>>2]=0;J[e+44>>2]=-1074790400;J[e+32>>2]=0;J[e+36>>2]=0;J[695492]=0;A=p;p=+U;O[e+64>>3]=A+p;O[e+72>>3]=+T*.5+(b?C-s*z:C);da(4855,d|0,e+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua;Ya:{if(K[e+153|0]){J[e+28>>2]=J[e+120>>2];J[e+12>>2]=L[e+124>>1];J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e>>2]=0;J[e+4>>2]=0;b=J[J[c>>2]+296>> -2];J[695492]=0;va(b|0,c|0,e+28|0,e+12|0,e+88|0,e+80|0,e+16|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break Ya;break ua}J[e+28>>2]=J[e+120>>2];J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e>>2]=0;J[e+4>>2]=0;b=J[J[c>>2]+288>>2];J[695492]=0;ja(b|0,c|0,e+28|0,e+88|0,e+80|0,e+16|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break Ya;break ua}Za:{if(g){J[e+88>>2]=4;b=J[J[c>>2]+308>>2];J[695492]=0;j=b;b=e+88|0;aa(j|0,c|0,b|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break Za; -m=J[J[c>>2]+352>>2];J[695492]=0;$(m|0,c|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break ua;_a:{if(K[e+153|0]){J[e+28>>2]=J[e+120>>2];J[e+12>>2]=L[e+124>>1];J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e>>2]=0;J[e+4>>2]=0;m=J[J[c>>2]+368>>2];J[695492]=0;va(m|0,c|0,e+28|0,e+12|0,b|0,e+80|0,e+16|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break _a;break ua}J[e+28>>2]=J[e+120>>2];J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e>>2]=0; -J[e+4>>2]=0;b=J[J[c>>2]+360>>2];J[695492]=0;ja(b|0,c|0,e+28|0,e+88|0,e+80|0,e+16|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break _a;break ua}b=J[J[c>>2]+348>>2];J[695492]=0;aa(b|0,c|0,2368364)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;J[e+88>>2]=4;b=J[J[c>>2]+312>>2];J[695492]=0;aa(b|0,c|0,e+88|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;b=J[J[c>>2]+344>>2];J[695492]=0;$(b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua}J[695492]=0;_(4843,d|0);b=J[695492];J[695492]=0;if((b|0)== -1)break ua;if(f){J[695492]=0;_(4843,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua}r=r+(i?z*y:p);continue}break}break ua}m=R&1;while(1){J[695492]=0;b=J[u>>2];$a:{if(K[u+8|0]){j=0;if(!b)break $a;b=J[b>>2]}j=b}b=J[695492];J[695492]=0;if((b|0)==1)break ua;J[e+32>>2]=J[e+276>>2];J[695492]=0;i=e+32|0;b=va(4872,j|0,e+116|0,e+112|0,o|0,e+108|0,i|0,e+120|0)|0;j=J[695492];J[695492]=0;ab:{bb:{cb:{if((j|0)!=1){if(!b)break Sa;if(!K[e+154|0])break cb;p=z*O[e+128>>3];if(!m)break bb;b=J[a+32>>2];if(K[e+153|0]){j= -L[e+124>>1];J[e+32>>2]=1;q=J[J[b>>2]+40>>2];J[695492]=0;da(q|0,b|0,i|0);q=J[695492];J[695492]=0;if((q|0)==1)break ua;J[e+88>>2]=j;j=J[J[b>>2]+112>>2];J[695492]=0;ca(j|0,i|0,b|0,e+88|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua;s=+N[e+48>>2];break ab}J[e+32>>2]=0;i=J[J[b>>2]+40>>2];J[695492]=0;j=i;i=e+32|0;da(j|0,b|0,i|0);j=J[695492];J[695492]=0;if((j|0)==1)break ua;J[e+88>>2]=J[e+120>>2];j=J[J[b>>2]+112>>2];J[695492]=0;ca(j|0,i|0,b|0,e+88|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua;s=+N[e+ -48>>2];break ab}break ua}b=J[a+32>>2];if(K[e+153|0]){i=L[e+124>>1];J[e+32>>2]=1;j=J[J[b>>2]+40>>2];J[695492]=0;q=j;j=e+32|0;da(q|0,b|0,j|0);q=J[695492];J[695492]=0;if((q|0)==1)break ua;J[e+88>>2]=i;i=J[J[b>>2]+112>>2];J[695492]=0;ca(i|0,j|0,b|0,e+88|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua;p=+N[e+48>>2];break bb}J[e+32>>2]=0;i=J[J[b>>2]+40>>2];J[695492]=0;j=i;i=e+32|0;da(j|0,b|0,i|0);j=J[695492];J[695492]=0;if((j|0)==1)break ua;J[e+88>>2]=J[e+120>>2];j=J[J[b>>2]+112>>2];J[695492]=0;ca(j|0, -i|0,b|0,e+88|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua;p=+N[e+48>>2]}s=p}b=K[e+155|0]|K[e+156|0];i=!b;A=r-(m?s:0);r=A;if(b){r=O[e+136>>3];r=A+z*(m?-r:r)}y=i?C:C-O[e+144>>3]*z;db:{if(!f)break db;J[e+72>>2]=0;J[e+76>>2]=0;J[e+56>>2]=0;J[e+60>>2]=1072693248;J[e+48>>2]=-1047329136;J[e+52>>2]=-1076850563;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=1072693248;J[695492]=0;O[e+64>>3]=y*.25881904510252074;da(4855,d|0,e+32|0);b=J[695492];J[695492]=0;if((b|0)!=1)break db;break ua}eb:{if(K[e+153| -0]){J[e>>2]=J[e+120>>2];J[e+28>>2]=L[e+124>>1];O[e+32>>3]=r*25.4/96;O[e+88>>3]=y*25.4/96;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;b=J[J[c>>2]+296>>2];J[695492]=0;va(b|0,c|0,e|0,e+28|0,e+32|0,e+88|0,e+80|0,e+16|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break eb;break ua}J[e>>2]=0;b=J[J[c>>2]+16>>2];J[695492]=0;aa(b|0,c|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;fb:{if(J[e>>2]!=16)break fb;J[e+32>>2]=0;b=J[J[c>>2]+268>>2];J[695492]=0;aa(b|0,c|0,e+32|0)|0;b=J[695492];J[695492]=0; -if((b|0)!=1)break fb;break ua}J[e+28>>2]=J[e+120>>2];O[e+32>>3]=r*25.4/96;O[e+88>>3]=y*25.4/96;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;b=J[J[c>>2]+288>>2];J[695492]=0;ja(b|0,c|0,e+28|0,e+32|0,e+88|0,e+80|0,e+16|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break eb;break ua}gb:{if(!g)break gb;J[e+32>>2]=4;b=J[J[c>>2]+308>>2];J[695492]=0;i=b;b=e+32|0;aa(i|0,c|0,b|0)|0;i=J[695492];J[695492]=0;hb:{ib:{if((i|0)!=1){i=J[J[c>>2]+352>>2];J[695492]=0;$(i|0,c|0)|0;i=J[695492];J[695492]=0;if((i|0)== -1)break ua;if(!K[e+153|0])break ib;J[e>>2]=J[e+120>>2];J[e+28>>2]=L[e+124>>1];O[e+32>>3]=r*25.4/96;O[e+88>>3]=y*25.4/96;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;i=J[J[c>>2]+368>>2];J[695492]=0;va(i|0,c|0,e|0,e+28|0,b|0,e+88|0,e+80|0,e+16|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break hb;break ua}break ua}J[e>>2]=J[e+120>>2];O[e+32>>3]=r*25.4/96;O[e+88>>3]=y*25.4/96;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;b=J[J[c>>2]+360>>2];J[695492]=0;ja(b|0,c|0,e|0,e+32|0,e+88|0,e+80|0,e+ -16|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break hb;break ua}b=J[J[c>>2]+348>>2];J[695492]=0;aa(b|0,c|0,2368364)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ua;J[e+32>>2]=4;b=J[J[c>>2]+312>>2];J[695492]=0;aa(b|0,c|0,e+32|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[J[c>>2]+344>>2];J[695492]=0;$(b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break gb;break ua}break ua}if(f){J[695492]=0;_(4843,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua}r=A+(m?-(p-s):p);continue}}if(l)gc[J[J[h>>2]+4>>2]](h); -if(k)qc(k);if(x){J[695492]=0;_(4842,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break ua}if(n){J[695492]=0;_(4843,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break ua}if(F){J[695492]=0;wv(d);a=J[695492];J[695492]=0;if((a|0)==1)break ua}if(H[e+107|0]<0)qc(J[e+96>>2]);a=J[e+160>>2];if(!a)break va;J[e+164>>2]=a;qc(a)}Lc(t);Lc(u);Lc(w);Lc(v);if((D|0)<0)qc(E);if(H[e+315|0]<0)qc(J[e+304>>2]);bc=e+320|0;return}h=Z()|0;if(H[e+107|0]>=0)break ta;qc(J[e+96>>2])}a=J[e+160>>2];if(!a)break d;J[e+164>>2]=a;qc(a);break d}h= -Z()|0;Lc(f);break d}h=Z()|0;break d}h=Z()|0}Lc(t);f=(D|0)<0}Lc(u)}Lc(w);Lc(v);if(!f)break a;qc(E)}if(H[e+315|0]<0)qc(J[e+304>>2]);ba(h|0);B()}function Ika(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!J[a+8>>2]){c=rc(48);J[c+32>>2]=0;b=J[608882];J[c+24>>2]=J[608881];J[c+28>>2]=b;b=J[608880];J[c+16>>2]=J[608879];J[c+20>>2]=b;b=J[608878];J[c+8>>2]=J[608877];J[c+12>>2]=b;b=J[608876];J[c>>2]=J[608875];J[c+4>>2]=b;g=a+4|0;d=g;e=d;b:{c:{b=J[a+4>>2];d:{if(!b)break d;while(1){e=b;d=J[b+16>>2];if((d|0)>= -2){d=b;b=J[b>>2];if(b)continue;break d}if((d|0)==1)break c;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=1;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break b}qc(c)}c=rc(48);J[c+32>>2]=0;b=J[608891];J[c+24>>2]=J[608890];J[c+28>>2]=b;b=J[608889];J[c+16>>2]=J[608888];J[c+20>>2]=b;b=J[608887];J[c+8>>2]= -J[608886];J[c+12>>2]=b;b=J[608885];J[c>>2]=J[608884];J[c+4>>2]=b;e:{f:{d=g;e=d;b=J[e>>2];g:{if(!b)break g;while(1){e=b;d=J[b+16>>2];if((d|0)>=3){d=b;b=J[b>>2];if(b)continue;break g}if((d|0)==2)break f;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=2;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break e}qc(c)}c= -rc(32);J[c+28>>2]=0;J[c+24>>2]=J[608899];b=J[608898];J[c+16>>2]=J[608897];J[c+20>>2]=b;b=J[608896];J[c+8>>2]=J[608895];J[c+12>>2]=b;b=J[608894];J[c>>2]=J[608893];J[c+4>>2]=b;h:{i:{d=g;e=d;b=J[e>>2];j:{if(!b)break j;while(1){e=b;d=J[b+16>>2];if((d|0)>=4){d=b;b=J[b>>2];if(b)continue;break j}if((d|0)==3)break i;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=3;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640; -J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break h}qc(c)}c=rc(48);J[c+32>>2]=0;b=J[608908];J[c+24>>2]=J[608907];J[c+28>>2]=b;b=J[608906];J[c+16>>2]=J[608905];J[c+20>>2]=b;b=J[608904];J[c+8>>2]=J[608903];J[c+12>>2]=b;b=J[608902];J[c>>2]=J[608901];J[c+4>>2]=b;k:{l:{d=g;e=d;b=J[e>>2];m:{if(!b)break m;while(1){e=b;d=J[b+16>>2];if((d|0)>=5){d=b;b=J[b>>2];if(b)continue;break m}if((d|0)==4)break l;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]= -0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=4;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break k}qc(c)}c=rc(64);J[c+52>>2]=0;J[c+48>>2]=J[608922];b=J[608921];J[c+40>>2]=J[608920];J[c+44>>2]=b;b=J[608919];J[c+32>>2]=J[608918];J[c+36>>2]=b;b=J[608917];J[c+24>>2]=J[608916];J[c+28>>2]=b;b=J[608915];J[c+16>>2]=J[608914];J[c+20>>2]=b;b=J[608913];J[c+ -8>>2]=J[608912];J[c+12>>2]=b;b=J[608911];J[c>>2]=J[608910];J[c+4>>2]=b;n:{o:{d=g;e=d;b=J[e>>2];p:{if(!b)break p;while(1){e=b;d=J[b+16>>2];if((d|0)>=6){d=b;b=J[b>>2];if(b)continue;break p}if((d|0)==5)break o;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=5;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=13;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1; -break n}qc(c)}c=rc(32);J[c+24>>2]=0;b=J[608929];J[c+16>>2]=J[608928];J[c+20>>2]=b;b=J[608927];J[c+8>>2]=J[608926];J[c+12>>2]=b;b=J[608925];J[c>>2]=J[608924];J[c+4>>2]=b;q:{r:{d=g;e=d;b=J[e>>2];s:{if(!b)break s;while(1){e=b;d=J[b+16>>2];if((d|0)>=7){d=b;b=J[b>>2];if(b)continue;break s}if((d|0)==6)break r;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=6;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>> -2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break q}qc(c)}c=rc(64);J[c+52>>2]=0;J[c+48>>2]=J[608943];b=J[608942];J[c+40>>2]=J[608941];J[c+44>>2]=b;b=J[608940];J[c+32>>2]=J[608939];J[c+36>>2]=b;b=J[608938];J[c+24>>2]=J[608937];J[c+28>>2]=b;b=J[608936];J[c+16>>2]=J[608935];J[c+20>>2]=b;b=J[608934];J[c+8>>2]=J[608933];J[c+12>>2]=b;b=J[608932];J[c>>2]=J[608931];J[c+4>>2]=b;t:{u:{d=g;e=d;b=J[e>>2];v:{if(!b)break v;while(1){e=b;d=J[b+16>>2];if((d|0)>=8){d= -b;b=J[b>>2];if(b)continue;break v}if((d|0)==7)break u;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=7;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=13;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break t}qc(c)}c=rc(48);J[c+40>>2]=0;b=J[608954];J[c+32>>2]=J[608953];J[c+36>>2]=b;b=J[608952];J[c+24>>2]=J[608951];J[c+28>>2]=b;b=J[608950];J[c+16>>2]=J[608949]; -J[c+20>>2]=b;b=J[608948];J[c+8>>2]=J[608947];J[c+12>>2]=b;b=J[608946];J[c>>2]=J[608945];J[c+4>>2]=b;w:{x:{d=g;e=d;b=J[e>>2];y:{if(!b)break y;while(1){e=b;d=J[b+16>>2];if((d|0)>=9){d=b;b=J[b>>2];if(b)continue;break y}if((d|0)==8)break x;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=8;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=10;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>> -2],b);J[a+8>>2]=J[a+8>>2]+1;break w}qc(c)}c=rc(64);J[c+60>>2]=0;J[c+56>>2]=J[608970];b=J[608969];J[c+48>>2]=J[608968];J[c+52>>2]=b;b=J[608967];J[c+40>>2]=J[608966];J[c+44>>2]=b;b=J[608965];J[c+32>>2]=J[608964];J[c+36>>2]=b;b=J[608963];J[c+24>>2]=J[608962];J[c+28>>2]=b;b=J[608961];J[c+16>>2]=J[608960];J[c+20>>2]=b;b=J[608959];J[c+8>>2]=J[608958];J[c+12>>2]=b;b=J[608957];J[c>>2]=J[608956];J[c+4>>2]=b;z:{A:{d=g;e=d;b=J[e>>2];B:{if(!b)break B;while(1){e=b;d=J[b+16>>2];if((d|0)>=10){d=b;b=J[b>>2];if(b)continue; -break B}if((d|0)==9)break A;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=9;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=15;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break z}qc(c)}c=rc(48);J[c+36>>2]=0;J[c+32>>2]=J[608980];b=J[608979];J[c+24>>2]=J[608978];J[c+28>>2]=b;b=J[608977];J[c+16>>2]=J[608976];J[c+20>>2]=b;b=J[608975];J[c+8>>2]=J[608974]; -J[c+12>>2]=b;b=J[608973];J[c>>2]=J[608972];J[c+4>>2]=b;C:{D:{d=g;e=d;b=J[e>>2];E:{if(!b)break E;while(1){e=b;d=J[b+16>>2];if((d|0)>=11){d=b;b=J[b>>2];if(b)continue;break E}if((d|0)==10)break D;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=10;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break C}qc(c)}c= -rc(64);J[c+56>>2]=0;b=J[608995];J[c+48>>2]=J[608994];J[c+52>>2]=b;b=J[608993];J[c+40>>2]=J[608992];J[c+44>>2]=b;b=J[608991];J[c+32>>2]=J[608990];J[c+36>>2]=b;b=J[608989];J[c+24>>2]=J[608988];J[c+28>>2]=b;b=J[608987];J[c+16>>2]=J[608986];J[c+20>>2]=b;b=J[608985];J[c+8>>2]=J[608984];J[c+12>>2]=b;b=J[608983];J[c>>2]=J[608982];J[c+4>>2]=b;F:{G:{d=g;e=d;b=J[e>>2];H:{if(!b)break H;while(1){e=b;d=J[b+16>>2];if((d|0)>=12){d=b;b=J[b>>2];if(b)continue;break H}if((d|0)==11)break G;b=J[e+4>>2];if(b)continue; -break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=11;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=14;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break F}qc(c)}c=rc(64);J[c+48>>2]=0;b=J[609008];J[c+40>>2]=J[609007];J[c+44>>2]=b;b=J[609006];J[c+32>>2]=J[609005];J[c+36>>2]=b;b=J[609004];J[c+24>>2]=J[609003];J[c+28>>2]=b;b=J[609002];J[c+16>>2]=J[609001];J[c+20>>2]=b;b=J[609E3]; -J[c+8>>2]=J[608999];J[c+12>>2]=b;b=J[608998];J[c>>2]=J[608997];J[c+4>>2]=b;I:{J:{d=g;e=d;b=J[e>>2];K:{if(!b)break K;while(1){e=b;d=J[b+16>>2];if((d|0)>=13){d=b;b=J[b>>2];if(b)continue;break K}if((d|0)==12)break J;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=12;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=12;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+ -8>>2]+1;break I}qc(c)}c=rc(80);f=tc(c,2436040,68);J[f+68>>2]=0;L:{M:{d=g;e=d;b=J[e>>2];N:{if(!b)break N;while(1){e=b;d=J[b+16>>2];if((d|0)>=14){d=b;b=J[b>>2];if(b)continue;break N}if((d|0)==13)break M;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;J[b+16>>2]=13;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=17;J[b+28>>2]=-2147483628;J[b+20>>2]=f;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break L}qc(f)}c= -rc(32);J[c+24>>2]=0;b=J[609033];J[c+16>>2]=J[609032];J[c+20>>2]=b;b=J[609031];J[c+8>>2]=J[609030];J[c+12>>2]=b;b=J[609029];J[c>>2]=J[609028];J[c+4>>2]=b;O:{P:{d=g;e=d;b=J[e>>2];Q:{if(!b)break Q;while(1){e=b;d=J[b+16>>2];if((d|0)>=15){d=b;b=J[b>>2];if(b)continue;break Q}if((d|0)==14)break P;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=14;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>> -2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break O}qc(c)}c=rc(48);J[c+44>>2]=0;J[c+40>>2]=J[609045];b=J[609044];J[c+32>>2]=J[609043];J[c+36>>2]=b;b=J[609042];J[c+24>>2]=J[609041];J[c+28>>2]=b;b=J[609040];J[c+16>>2]=J[609039];J[c+20>>2]=b;b=J[609038];J[c+8>>2]=J[609037];J[c+12>>2]=b;b=J[609036];J[c>>2]=J[609035];J[c+4>>2]=b;R:{S:{d=g;e=d;b=J[e>>2];T:{if(!b)break T;while(1){e=b;d=J[b+16>>2];if((d|0)>=16){d=b;b=J[b>>2];if(b)continue;break T}if((d|0)==15)break S; -b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=15;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=11;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break R}qc(c)}c=rc(64);J[c+48>>2]=0;b=J[609058];J[c+40>>2]=J[609057];J[c+44>>2]=b;b=J[609056];J[c+32>>2]=J[609055];J[c+36>>2]=b;b=J[609054];J[c+24>>2]=J[609053];J[c+28>>2]=b;b=J[609052];J[c+16>>2]=J[609051]; -J[c+20>>2]=b;b=J[609050];J[c+8>>2]=J[609049];J[c+12>>2]=b;b=J[609048];J[c>>2]=J[609047];J[c+4>>2]=b;U:{V:{d=g;e=d;b=J[e>>2];W:{if(!b)break W;while(1){e=b;d=J[b+16>>2];if((d|0)>=17){d=b;b=J[b>>2];if(b)continue;break W}if((d|0)==16)break V;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=16;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=12;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+ -4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break U}qc(c)}c=rc(32);J[c+28>>2]=0;J[c+24>>2]=J[609066];b=J[609065];J[c+16>>2]=J[609064];J[c+20>>2]=b;b=J[609063];J[c+8>>2]=J[609062];J[c+12>>2]=b;b=J[609061];J[c>>2]=J[609060];J[c+4>>2]=b;X:{Y:{d=g;e=d;b=J[e>>2];Z:{if(!b)break Z;while(1){e=b;d=J[b+16>>2];if((d|0)>=18){d=b;b=J[b>>2];if(b)continue;break Z}if((d|0)==17)break Y;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=17;J[b+8>>2]=e;J[b>>2]= -0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break X}qc(c)}c=rc(32);J[c+24>>2]=0;b=J[608868];J[c+16>>2]=J[608867];J[c+20>>2]=b;b=J[608866];J[c+8>>2]=J[608865];J[c+12>>2]=b;b=J[608864];J[c>>2]=J[608863];J[c+4>>2]=b;_:{$:{e=g;b=J[e>>2];aa:{if(!b)break aa;while(1){e=b;d=J[b+16>>2];if((d|0)>=19){g=b;b=J[b>>2];if(b)continue;break aa}if((d|0)==18)break $;b=J[e+4>>2];if(b)continue;break}g=e+4|0}J[695492]= -0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b+16>>2]=18;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[g>>2]=b;d=J[J[a>>2]>>2];if(d){J[a>>2]=d;b=J[g>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break _}qc(c)}c=rc(32);J[c+20>>2]=0;J[c+16>>2]=J[609072];b=J[609071];J[c+8>>2]=J[609070];J[c+12>>2]=b;b=J[609069];J[c>>2]=J[609068];J[c+4>>2]=b;ba:{ca:{g=a+16|0;d=g;e=d;b=J[e>>2];da:{if(!b)break da;while(1){e=b;d=J[b+16>>2];if((d|0)>=2){d=b;b=J[b>>2];if(b)continue; -break da}if((d|0)==1)break ca;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=1;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ba}qc(c)}c=rc(32);J[c+20>>2]=0;J[c+16>>2]=J[609078];b=J[609077];J[c+8>>2]=J[609076];J[c+12>>2]=b;b=J[609075];J[c>>2]=J[609074];J[c+4>>2]=b;ea:{fa:{d=g;e=d;b=J[e>> -2];ga:{if(!b)break ga;while(1){e=b;d=J[b+16>>2];if((d|0)>=3){d=b;b=J[b>>2];if(b)continue;break ga}if((d|0)==2)break fa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=2;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ea}qc(c)}c=rc(32);J[c+28>>2]=0;J[c+24>>2]=J[609086];b=J[609085];J[c+16>>2]= -J[609084];J[c+20>>2]=b;b=J[609083];J[c+8>>2]=J[609082];J[c+12>>2]=b;b=J[609081];J[c>>2]=J[609080];J[c+4>>2]=b;ha:{ia:{d=g;e=d;b=J[e>>2];ja:{if(!b)break ja;while(1){e=b;d=J[b+16>>2];if((d|0)>=4){d=b;b=J[b>>2];if(b)continue;break ja}if((d|0)==3)break ia;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=3;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]= -e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ha}qc(c)}c=rc(48);J[c+32>>2]=0;b=J[608908];J[c+24>>2]=J[608907];J[c+28>>2]=b;b=J[608906];J[c+16>>2]=J[608905];J[c+20>>2]=b;b=J[608904];J[c+8>>2]=J[608903];J[c+12>>2]=b;b=J[608902];J[c>>2]=J[608901];J[c+4>>2]=b;ka:{la:{d=g;e=d;b=J[e>>2];ma:{if(!b)break ma;while(1){e=b;d=J[b+16>>2];if((d|0)>=5){d=b;b=J[b>>2];if(b)continue;break ma}if((d|0)==4)break la;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f| -0)==1)break a;J[b+16>>2]=4;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ka}qc(c)}c=rc(64);J[c+52>>2]=0;J[c+48>>2]=J[608922];b=J[608921];J[c+40>>2]=J[608920];J[c+44>>2]=b;b=J[608919];J[c+32>>2]=J[608918];J[c+36>>2]=b;b=J[608917];J[c+24>>2]=J[608916];J[c+28>>2]=b;b=J[608915];J[c+16>>2]=J[608914];J[c+20>>2]=b;b=J[608913];J[c+8>>2]=J[608912];J[c+12>>2]=b;b=J[608911]; -J[c>>2]=J[608910];J[c+4>>2]=b;na:{oa:{d=g;e=d;b=J[e>>2];pa:{if(!b)break pa;while(1){e=b;d=J[b+16>>2];if((d|0)>=6){d=b;b=J[b>>2];if(b)continue;break pa}if((d|0)==5)break oa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=5;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=13;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break na}qc(c)}c=rc(32);J[c+ -24>>2]=0;b=J[608929];J[c+16>>2]=J[608928];J[c+20>>2]=b;b=J[608927];J[c+8>>2]=J[608926];J[c+12>>2]=b;b=J[608925];J[c>>2]=J[608924];J[c+4>>2]=b;qa:{ra:{d=g;e=d;b=J[e>>2];sa:{if(!b)break sa;while(1){e=b;d=J[b+16>>2];if((d|0)>=7){d=b;b=J[b>>2];if(b)continue;break sa}if((d|0)==6)break ra;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=6;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+ -12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break qa}qc(c)}c=rc(48);J[c+44>>2]=0;J[c+40>>2]=J[609098];b=J[609097];J[c+32>>2]=J[609096];J[c+36>>2]=b;b=J[609095];J[c+24>>2]=J[609094];J[c+28>>2]=b;b=J[609093];J[c+16>>2]=J[609092];J[c+20>>2]=b;b=J[609091];J[c+8>>2]=J[609090];J[c+12>>2]=b;b=J[609089];J[c>>2]=J[609088];J[c+4>>2]=b;ta:{ua:{d=g;e=d;b=J[e>>2];va:{if(!b)break va;while(1){e=b;d=J[b+16>>2];if((d|0)>=8){d=b;b=J[b>>2];if(b)continue;break va}if((d|0)==7)break ua; -b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=7;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=11;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ta}qc(c)}c=rc(48);J[c+40>>2]=0;b=J[608954];J[c+32>>2]=J[608953];J[c+36>>2]=b;b=J[608952];J[c+24>>2]=J[608951];J[c+28>>2]=b;b=J[608950];J[c+16>>2]=J[608949];J[c+20>>2]=b;b=J[608948];J[c+8>>2]= -J[608947];J[c+12>>2]=b;b=J[608946];J[c>>2]=J[608945];J[c+4>>2]=b;wa:{xa:{d=g;e=d;b=J[e>>2];ya:{if(!b)break ya;while(1){e=b;d=J[b+16>>2];if((d|0)>=9){d=b;b=J[b>>2];if(b)continue;break ya}if((d|0)==8)break xa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=8;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=10;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+ -20>>2]+1;break wa}qc(c)}c=rc(64);J[c+60>>2]=0;J[c+56>>2]=J[608970];b=J[608969];J[c+48>>2]=J[608968];J[c+52>>2]=b;b=J[608967];J[c+40>>2]=J[608966];J[c+44>>2]=b;b=J[608965];J[c+32>>2]=J[608964];J[c+36>>2]=b;b=J[608963];J[c+24>>2]=J[608962];J[c+28>>2]=b;b=J[608961];J[c+16>>2]=J[608960];J[c+20>>2]=b;b=J[608959];J[c+8>>2]=J[608958];J[c+12>>2]=b;b=J[608957];J[c>>2]=J[608956];J[c+4>>2]=b;za:{Aa:{d=g;e=d;b=J[e>>2];Ba:{if(!b)break Ba;while(1){e=b;d=J[b+16>>2];if((d|0)>=10){d=b;b=J[b>>2];if(b)continue;break Ba}if((d| -0)==9)break Aa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=9;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=15;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break za}qc(c)}c=rc(48);J[c+36>>2]=0;J[c+32>>2]=J[608980];b=J[608979];J[c+24>>2]=J[608978];J[c+28>>2]=b;b=J[608977];J[c+16>>2]=J[608976];J[c+20>>2]=b;b=J[608975];J[c+8>>2]=J[608974]; -J[c+12>>2]=b;b=J[608973];J[c>>2]=J[608972];J[c+4>>2]=b;Ca:{Da:{d=g;e=d;b=J[e>>2];Ea:{if(!b)break Ea;while(1){e=b;d=J[b+16>>2];if((d|0)>=11){d=b;b=J[b>>2];if(b)continue;break Ea}if((d|0)==10)break Da;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=10;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+ -1;break Ca}qc(c)}c=rc(64);J[c+56>>2]=0;b=J[609113];J[c+48>>2]=J[609112];J[c+52>>2]=b;b=J[609111];J[c+40>>2]=J[609110];J[c+44>>2]=b;b=J[609109];J[c+32>>2]=J[609108];J[c+36>>2]=b;b=J[609107];J[c+24>>2]=J[609106];J[c+28>>2]=b;b=J[609105];J[c+16>>2]=J[609104];J[c+20>>2]=b;b=J[609103];J[c+8>>2]=J[609102];J[c+12>>2]=b;b=J[609101];J[c>>2]=J[609100];J[c+4>>2]=b;Fa:{Ga:{d=g;e=d;b=J[e>>2];Ha:{if(!b)break Ha;while(1){e=b;d=J[b+16>>2];if((d|0)>=12){d=b;b=J[b>>2];if(b)continue;break Ha}if((d|0)==11)break Ga;b= -J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=11;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=14;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Fa}qc(c)}c=rc(64);J[c+48>>2]=0;b=J[609008];J[c+40>>2]=J[609007];J[c+44>>2]=b;b=J[609006];J[c+32>>2]=J[609005];J[c+36>>2]=b;b=J[609004];J[c+24>>2]=J[609003];J[c+28>>2]=b;b=J[609002];J[c+16>>2]= -J[609001];J[c+20>>2]=b;b=J[609E3];J[c+8>>2]=J[608999];J[c+12>>2]=b;b=J[608998];J[c>>2]=J[608997];J[c+4>>2]=b;Ia:{Ja:{d=g;e=d;b=J[e>>2];Ka:{if(!b)break Ka;while(1){e=b;d=J[b+16>>2];if((d|0)>=13){d=b;b=J[b>>2];if(b)continue;break Ka}if((d|0)==12)break Ja;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=12;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=12;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>> -2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Ia}qc(c)}c=rc(80);f=tc(c,2436460,68);J[f+68>>2]=0;La:{Ma:{d=g;e=d;b=J[e>>2];Na:{if(!b)break Na;while(1){e=b;d=J[b+16>>2];if((d|0)>=14){d=b;b=J[b>>2];if(b)continue;break Na}if((d|0)==13)break Ma;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;J[b+16>>2]=13;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=17;J[b+28>>2]=-2147483628;J[b+20>>2]=f;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+ -12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break La}qc(f)}c=rc(32);J[c+24>>2]=0;b=J[609138];J[c+16>>2]=J[609137];J[c+20>>2]=b;b=J[609136];J[c+8>>2]=J[609135];J[c+12>>2]=b;b=J[609134];J[c>>2]=J[609133];J[c+4>>2]=b;Oa:{Pa:{d=g;e=d;b=J[e>>2];Qa:{if(!b)break Qa;while(1){e=b;d=J[b+16>>2];if((d|0)>=15){d=b;b=J[b>>2];if(b)continue;break Qa}if((d|0)==14)break Pa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=14;J[b+8>> -2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Oa}qc(c)}c=rc(48);J[c+44>>2]=0;J[c+40>>2]=J[609045];b=J[609044];J[c+32>>2]=J[609043];J[c+36>>2]=b;b=J[609042];J[c+24>>2]=J[609041];J[c+28>>2]=b;b=J[609040];J[c+16>>2]=J[609039];J[c+20>>2]=b;b=J[609038];J[c+8>>2]=J[609037];J[c+12>>2]=b;b=J[609036];J[c>>2]=J[609035];J[c+4>>2]=b;Ra:{Sa:{d=g;e=d;b=J[e>>2];Ta:{if(!b)break Ta; -while(1){e=b;d=J[b+16>>2];if((d|0)>=16){d=b;b=J[b>>2];if(b)continue;break Ta}if((d|0)==15)break Sa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=15;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=11;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Ra}qc(c)}c=rc(48);J[c+36>>2]=0;J[c+32>>2]=J[609148];b=J[609147];J[c+24>>2]=J[609146];J[c+28>> -2]=b;b=J[609145];J[c+16>>2]=J[609144];J[c+20>>2]=b;b=J[609143];J[c+8>>2]=J[609142];J[c+12>>2]=b;b=J[609141];J[c>>2]=J[609140];J[c+4>>2]=b;Ua:{Va:{d=g;e=d;b=J[e>>2];Wa:{if(!b)break Wa;while(1){e=b;d=J[b+16>>2];if((d|0)>=17){d=b;b=J[b>>2];if(b)continue;break Wa}if((d|0)==16)break Va;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=16;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+ -12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Ua}qc(c)}c=rc(32);J[c+28>>2]=0;J[c+24>>2]=J[609066];b=J[609065];J[c+16>>2]=J[609064];J[c+20>>2]=b;b=J[609063];J[c+8>>2]=J[609062];J[c+12>>2]=b;b=J[609061];J[c>>2]=J[609060];J[c+4>>2]=b;Xa:{Ya:{d=g;e=d;b=J[e>>2];Za:{if(!b)break Za;while(1){e=b;d=J[b+16>>2];if((d|0)>=18){d=b;b=J[b>>2];if(b)continue;break Za}if((d|0)==17)break Ya;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break a;J[b+16>>2]=17;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Xa}qc(c)}c=rc(32);J[c+24>>2]=0;b=J[608868];J[c+16>>2]=J[608867];J[c+20>>2]=b;b=J[608866];J[c+8>>2]=J[608865];J[c+12>>2]=b;b=J[608864];J[c>>2]=J[608863];J[c+4>>2]=b;_a:{e=g;b=J[e>>2];$a:{if(!b)break $a;while(1){e=b;d=J[b+16>>2];if((d|0)>=19){g=b;b=J[b>>2];if(b)continue;break $a}if((d| -0)==18)break _a;b=J[e+4>>2];if(b)continue;break}g=e+4|0}J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b+16>>2]=18;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[g>>2]=b;d=J[J[a+12>>2]>>2];if(d){J[a+12>>2]=d;b=J[g>>2]}Ic(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;return}qc(c)}return}a=Z()|0;qc(c);ba(a|0);B()}function Dva(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;d=bc-240|0;bc=d;if(!K[b+88|0]){o=b,p=gc[J[J[b>> -2]+36>>2]](b)|0,J[o+72>>2]=p;o=b,p=gc[J[J[b>>2]+44>>2]](b)|0,J[o+76>>2]=p;o=b,p=gc[J[J[b>>2]+40>>2]](b)|0,J[o+80>>2]=p;c=gc[J[J[b>>2]+48>>2]](b)|0;H[b+88|0]=1;J[b+84>>2]=c}a:{f=2412096;b:{if(J[b+76>>2]==J[b+72>>2])break b;f=2412128;if(J[b+84>>2]==J[b+80>>2])break b;e=J[b+44>>2];c=J[b+32>>2]-3|0;if(c>>>0>=4294967294){f=2412160;if((e|0)!=1)break b}if(c>>>0<=3){f=2412192;if(e-33>>>0<4294967266)break b}f=gc[J[J[b>>2]+68>>2]](b)|0}c:{d:{if(K[f|0]){b=Kc(d+212|0,f,2382933,266,2412214,0);J[695492]=0;_(5019, -b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;e=Z()|0;Fc(b);break d}J[d+212>>2]=0;c=J[682146];J[d+216>>2]=c;J[d+208>>2]=c;J[d+204>>2]=0;J[d+200>>2]=c;J[d+196>>2]=0;J[d+192>>2]=c;J[d+188>>2]=0;J[d+184>>2]=c;J[d+180>>2]=0;e=J[b+8>>2];e:{f:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+172|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break f;e=Z()|0;break e}J[d+172>>2]=0}J[695492]=0;aa(4993,d+180|0,d+172|0)|0;c=J[695492];J[695492]=0;g:{if((c|0)!=1){f=J[d+172>>2];J[d+172>>2]=0;if(!f)break g;J[695492]= -0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break g;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break g}break a}e=Z()|0;vc(d+172|0);break e}c=J[d+180>>2];J[d+184>>2]=J[(c?c+12|0:2728584)>>2];h:{i:{if(!c|J[c+8>>2]<=0)break i;j:{k:{e=K[J[c+12>>2]];if((e|0)==34){J[695492]=0;aa(5145,d+204|0,92)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k}J[695492]=0;aa(5145,d+204|0,e<<24>>24)|0;c=J[695492];J[695492]=0;f=1;if((c|0)==1)break k;e=J[d+180>>2];if(!e)break i;while(1){c= -J[e+8>>2];if((c|0)<=(f|0))break i;if((c|0)<(f|0)){J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break c;e=Z()|0;break h}e=K[J[e+12>>2]+f|0];if((e|0)==34){J[695492]=0;aa(5145,d+204|0,92)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j}J[695492]=0;aa(5145,d+204|0,e<<24>>24)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j;f=f+1|0;e=J[d+180>>2];if(e)continue;break}break i}e=Z()|0;break h}e=Z()|0;break h}l:{c=J[b+16>>2];if(!c|J[c+8>>2]<=0)break l;m:{n:{e=K[J[c+12>>2]];if((e|0)==34){J[695492]=0; -aa(5145,d+196|0,92)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n}J[695492]=0;aa(5145,d+196|0,e<<24>>24)|0;c=J[695492];J[695492]=0;f=1;if((c|0)==1)break n;e=J[b+16>>2];if(!e)break l;while(1){c=J[e+8>>2];if((c|0)<=(f|0))break l;if((c|0)<(f|0)){J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break c;e=Z()|0;break h}e=K[J[e+12>>2]+f|0];if((e|0)==34){J[695492]=0;aa(5145,d+196|0,92)|0;c=J[695492];J[695492]=0;if((c|0)==1)break m}J[695492]=0;aa(5145,d+196|0,e<<24>>24)|0;c=J[695492];J[695492]=0; -if((c|0)==1)break m;f=f+1|0;e=J[b+16>>2];if(e)continue;break}break l}e=Z()|0;break h}e=Z()|0;break h}o:{p:{c=J[b+24>>2];q:{if(!c|J[c+8>>2]<=0)break q;e=K[J[c+12>>2]];if((e|0)==34){J[695492]=0;aa(5145,d+188|0,92)|0;c=J[695492];J[695492]=0;if((c|0)==1)break p}J[695492]=0;aa(5145,d+188|0,e<<24>>24)|0;c=J[695492];J[695492]=0;f=1;if((c|0)==1)break p;e=J[b+24>>2];if(!e)break q;while(1){c=J[e+8>>2];if((c|0)<=(f|0))break q;if((c|0)<(f|0)){J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break c;e= -Z()|0;break h}e=K[J[e+12>>2]+f|0];if((e|0)==34){J[695492]=0;aa(5145,d+188|0,92)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o}J[695492]=0;aa(5145,d+188|0,e<<24>>24)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o;f=f+1|0;e=J[b+24>>2];if(e)continue;break}}J[d+172>>2]=0;J[d+176>>2]=J[682146];c=J[b+40>>2];J[695492]=0;J[d+56>>2]=c&255;J[d+52>>2]=c>>>8&255;J[d+48>>2]=c>>>16&255;ga(5180,d+172|0,2374687,d+48|0)|0;c=J[695492];J[695492]=0;r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{if((c| -0)==1)break fa;if(!K[2760140]){J[695492]=0;aa(5449,2760132,40)|0;c=J[695492];J[695492]=0;if((c|0)==1)break fa;H[2760140]=1}if(!K[2760152]){J[695492]=0;aa(5449,2760144,41)|0;c=J[695492];J[695492]=0;if((c|0)==1)break fa;H[2760152]=1}if(!K[2760164]){J[695492]=0;aa(5449,2760156,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break fa;H[2760164]=1}if(!K[2760176]){J[695492]=0;aa(5449,2760168,34)|0;c=J[695492];J[695492]=0;if((c|0)==1)break fa;H[2760176]=1}J[d+164>>2]=0;J[d+168>>2]=J[682146];switch(J[b+32>>2]){case 6:break _; -case 5:break $;case 4:break aa;case 3:break ba;case 2:break ca;case 1:break da;case 0:break ea;default:break Z}}e=Z()|0;break r}J[695492]=0;e=d+148|0;ca(5121,e|0,2760132,2411769);c=J[695492];J[695492]=0;ga:{if((c|0)!=1){J[695492]=0;ca(5122,d+156|0,e|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break ga;e=J[d+156>>2];ha:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+140|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ha;e=Z()|0;break u}J[d+140>>2]=0}J[695492]=0;aa(4993,d+164|0,d+140|0)|0;c=J[695492]; -J[695492]=0;if((c|0)!=1){f=J[d+140>>2];J[d+140>>2]=0;if(!f)break Y;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break Y;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Y}break a}e=Z()|0;vc(d+140|0);break u}e=Z()|0;break s}e=Z()|0;break t}J[695492]=0;e=d+148|0;ca(5121,e|0,2760132,2411774);c=J[695492];J[695492]=0;ia:{if((c|0)!=1){J[695492]=0;ca(5122,d+156|0,e|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break ia;e=J[d+156>>2];ja:{if(e){c=J[J[e>> -2]+28>>2];J[695492]=0;ca(c|0,d+140|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ja;e=Z()|0;break w}J[d+140>>2]=0}J[695492]=0;aa(4993,d+164|0,d+140|0)|0;c=J[695492];J[695492]=0;ka:{if((c|0)!=1){f=J[d+140>>2];J[d+140>>2]=0;if(!f)break ka;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break ka;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ka}break a}e=Z()|0;vc(d+140|0);break w}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2728584)>>2];sc(d+156|0); -sc(d+148|0);break X}e=Z()|0;break s}e=Z()|0;break v}J[695492]=0;e=d+132|0;ca(5121,e|0,2760132,2411778);c=J[695492];J[695492]=0;la:{ma:{na:{if((c|0)!=1){J[695492]=0;f=d+140|0;ca(5122,f|0,e|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break na;J[695492]=0;e=d+148|0;ca(5122,e|0,f|0,d+172|0);c=J[695492];J[695492]=0;if((c|0)==1)break ma;J[695492]=0;ca(5122,d+156|0,e|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break la;e=J[d+156>>2];oa:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+124|0,e|0,1);c= -J[695492];J[695492]=0;if((c|0)!=1)break oa;e=Z()|0;break A}J[d+124>>2]=0}J[695492]=0;aa(4993,d+164|0,d+124|0)|0;c=J[695492];J[695492]=0;pa:{if((c|0)!=1){f=J[d+124>>2];J[d+124>>2]=0;if(!f)break pa;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break pa;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break pa}break a}e=Z()|0;vc(d+124|0);break A}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2728584)>>2];sc(d+156|0);sc(d+148|0);sc(d+140|0);sc(d+132|0);break X}e= -Z()|0;break s}e=Z()|0;break x}e=Z()|0;break y}e=Z()|0;break z}J[695492]=0;e=d+132|0;ca(5121,e|0,2760132,2411785);c=J[695492];J[695492]=0;qa:{ra:{sa:{ta:{if((c|0)!=1){J[695492]=0;f=d+140|0;ca(5122,f|0,e|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break ta;c=J[b+44>>2];J[695492]=0;g=aa(5120,d+124|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break sa;J[695492]=0;e=d+148|0;ca(5122,e|0,f|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break ra;J[695492]=0;ca(5122,d+156|0,e|0,2760144);c=J[695492];J[695492]= -0;if((c|0)==1)break qa;e=J[d+156>>2];ua:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+116|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ua;e=Z()|0;break F}J[d+116>>2]=0}J[695492]=0;aa(4993,d+164|0,d+116|0)|0;c=J[695492];J[695492]=0;va:{if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break va;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break va;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break va}break a}e=Z()|0;vc(d+116|0);break F}c=J[d+164>> -2];J[d+168>>2]=J[(c?c+12|0:2728584)>>2];sc(d+156|0);sc(d+148|0);sc(g);sc(d+140|0);sc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break B}e=Z()|0;break C}e=Z()|0;break D}e=Z()|0;break E}J[695492]=0;e=d+132|0;ca(5121,e|0,2760132,2411795);c=J[695492];J[695492]=0;wa:{xa:{ya:{za:{if((c|0)!=1){J[695492]=0;f=d+140|0;ca(5122,f|0,e|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break za;c=J[b+44>>2];J[695492]=0;g=aa(5120,d+124|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break ya;J[695492]=0;e=d+148|0;ca(5122, -e|0,f|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break xa;J[695492]=0;ca(5122,d+156|0,e|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break wa;e=J[d+156>>2];Aa:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+116|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break Aa;e=Z()|0;break K}J[d+116>>2]=0}J[695492]=0;aa(4993,d+164|0,d+116|0)|0;c=J[695492];J[695492]=0;Ba:{if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break Ba;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break Ba; -J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Ba}break a}e=Z()|0;vc(d+116|0);break K}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2728584)>>2];sc(d+156|0);sc(d+148|0);sc(g);sc(d+140|0);sc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break G}e=Z()|0;break H}e=Z()|0;break I}e=Z()|0;break J}J[695492]=0;e=d+132|0;ca(5121,e|0,2760132,2411806);c=J[695492];J[695492]=0;Ca:{Da:{Ea:{Fa:{if((c|0)!=1){J[695492]=0;f=d+140|0;ca(5122,f|0,e|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break Fa;c=J[b+44>> -2];J[695492]=0;g=aa(5120,d+124|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ea;J[695492]=0;e=d+148|0;ca(5122,e|0,f|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break Da;J[695492]=0;ca(5122,d+156|0,e|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break Ca;e=J[d+156>>2];Ga:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+116|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break Ga;e=Z()|0;break P}J[d+116>>2]=0}J[695492]=0;aa(4993,d+164|0,d+116|0)|0;c=J[695492];J[695492]=0;Ha:{if((c|0)!=1){f=J[d+116>> -2];J[d+116>>2]=0;if(!f)break Ha;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break Ha;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Ha}break a}e=Z()|0;vc(d+116|0);break P}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2728584)>>2];sc(d+156|0);sc(d+148|0);sc(g);sc(d+140|0);sc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break L}e=Z()|0;break M}e=Z()|0;break N}e=Z()|0;break O}J[695492]=0;e=d+132|0;ca(5121,e|0,2760132,2411817);c=J[695492];J[695492]=0;Ia:{Ja:{Ka:{La:{if((c| -0)!=1){J[695492]=0;f=d+140|0;ca(5122,f|0,e|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break La;c=J[b+44>>2];J[695492]=0;g=aa(5120,d+124|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ka;J[695492]=0;e=d+148|0;ca(5122,e|0,f|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ja;J[695492]=0;ca(5122,d+156|0,e|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break Ia;e=J[d+156>>2];Ma:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+116|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break Ma;e=Z()|0;break U}J[d+ -116>>2]=0}J[695492]=0;aa(4993,d+164|0,d+116|0)|0;c=J[695492];J[695492]=0;Na:{if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break Na;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break Na;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Na}break a}e=Z()|0;vc(d+116|0);break U}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2728584)>>2];sc(d+156|0);sc(d+148|0);sc(g);sc(d+140|0);sc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break Q}e=Z()|0;break R}e=Z()|0;break S}e= -Z()|0;break T}J[695492]=0;e=d+148|0;ca(5121,e|0,2760132,2411774);c=J[695492];J[695492]=0;Oa:{if((c|0)!=1){J[695492]=0;ca(5122,d+156|0,e|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break Oa;e=J[d+156>>2];Pa:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+140|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break Pa;e=Z()|0;break W}J[d+140>>2]=0}J[695492]=0;aa(4993,d+164|0,d+140|0)|0;c=J[695492];J[695492]=0;Qa:{if((c|0)!=1){f=J[d+140>>2];J[d+140>>2]=0;if(!f)break Qa;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>> -2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break Qa;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Qa}break a}e=Z()|0;vc(d+140|0);break W}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2728584)>>2];sc(d+156|0);sc(d+148|0);break X}e=Z()|0;break s}e=Z()|0;break V}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2728584)>>2];sc(d+156|0);sc(d+148|0)}J[d+156>>2]=0;c=J[682146];J[d+160>>2]=c;Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{_a:{$a:{ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{ib:{e=J[b+48>>2];if((e|0)!=-1){J[d+ -32>>2]=2411841;J[695492]=0;J[d+44>>2]=e&255;J[d+36>>2]=e>>>16&255;J[d+40>>2]=e>>>8&255;ga(5180,d+156|0,2377422,d+32|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break ib;c=J[682146]}J[d+152>>2]=c;J[d+148>>2]=0;J[695492]=0;e=fd(d+196|0,2411852,-1);c=J[695492];J[695492]=0;jb:{kb:{lb:{mb:{nb:{if((c|0)!=1){if(e)break lb;J[695492]=0;e=d+132|0;ca(5122,e|0,2760168,d+204|0);c=J[695492];J[695492]=0;if((c|0)==1)break nb;J[695492]=0;ca(5122,d+140|0,e|0,2760168);c=J[695492];J[695492]=0;if((c|0)==1)break mb;e=J[d+ -140>>2];ob:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c|0,d+116|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ob;e=Z()|0;break Ua}J[d+116>>2]=0}J[695492]=0;aa(4993,d+148|0,d+116|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break kb;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break kb;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break kb}break a}e=Z()|0;vc(d+116|0);break Ua}e=Z()|0;break Sa}e=Z()|0;break Sa}e=Z()| -0;break Ta}J[695492]=0;e=d+60|0;ca(5121,e|0,2760132,2411848);c=J[695492];J[695492]=0;pb:{qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{if((c|0)!=1){J[695492]=0;f=d+68|0;ca(5122,f|0,e|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break xb;J[695492]=0;e=d+76|0;ca(5122,e|0,f|0,2760168);c=J[695492];J[695492]=0;if((c|0)==1)break wb;J[695492]=0;f=d+84|0;ca(5122,f|0,e|0,d+204|0);c=J[695492];J[695492]=0;if((c|0)==1)break vb;J[695492]=0;e=d+92|0;ca(5122,e|0,f|0,2760168);c=J[695492];J[695492]=0;if((c|0)==1)break ub;J[695492]= -0;f=d+100|0;ca(5122,f|0,e|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break tb;J[695492]=0;e=d+108|0;ca(5122,e|0,f|0,2760168);c=J[695492];J[695492]=0;if((c|0)==1)break sb;J[695492]=0;f=d+116|0;ca(5122,f|0,e|0,d+196|0);c=J[695492];J[695492]=0;if((c|0)==1)break rb;J[695492]=0;e=d+132|0;ca(5122,e|0,f|0,2760168);c=J[695492];J[695492]=0;if((c|0)==1)break qb;J[695492]=0;ca(5122,d+140|0,e|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break pb;e=J[d+140>>2];yb:{if(e){c=J[J[e>>2]+28>>2];J[695492]=0;ca(c| -0,d+236|0,e|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break yb;e=Z()|0;break cb}J[d+236>>2]=0}J[695492]=0;aa(4993,d+148|0,d+236|0)|0;c=J[695492];J[695492]=0;zb:{if((c|0)!=1){f=J[d+236>>2];J[d+236>>2]=0;if(!f)break zb;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[695492];J[695492]=0;if((c|0)!=1){if(e)break zb;J[695492]=0;_(4987,f|0);c=J[695492];J[695492]=0;if((c|0)!=1)break zb}break a}e=Z()|0;vc(d+236|0);break cb}c=J[d+148>>2];J[d+152>>2]=J[(c?c+12|0:2728584)>>2];sc(d+140|0);sc(d+132|0);sc(d+116|0);sc(d+ -108|0);sc(d+100|0);sc(d+92|0);sc(d+84|0);sc(d+76|0);sc(d+68|0);sc(d+60|0);break jb}e=Z()|0;break Sa}e=Z()|0;break Va}e=Z()|0;break Wa}e=Z()|0;break Xa}e=Z()|0;break Ya}e=Z()|0;break Za}e=Z()|0;break _a}e=Z()|0;break $a}e=Z()|0;break ab}e=Z()|0;break bb}c=J[d+148>>2];J[d+152>>2]=J[(c?c+12|0:2728584)>>2];sc(d+140|0);sc(d+132|0)}J[695492]=0;n=d+68|0;ca(5121,n|0,2760132,2411746);c=J[695492];J[695492]=0;Ab:{Bb:{Cb:{Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{Tb:{Ub:{Vb:{Wb:{Xb:{Yb:{Zb:{if((c| -0)!=1){J[695492]=0;j=d+76|0;ca(5122,j|0,n|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break Zb;J[695492]=0;h=d+84|0;ca(5122,h|0,j|0,d+148|0);c=J[695492];J[695492]=0;if((c|0)==1)break Yb;J[695492]=0;i=d+92|0;ca(5122,i|0,h|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break Xb;J[695492]=0;g=d+100|0;ca(5122,g|0,i|0,2760168);c=J[695492];J[695492]=0;if((c|0)==1)break Wb;J[695492]=0;f=d+108|0;ca(5122,f|0,g|0,d+188|0);c=J[695492];J[695492]=0;if((c|0)==1)break Vb;J[695492]=0;k=d+116|0;ca(5122,k|0,f|0, -2760168);c=J[695492];J[695492]=0;if((c|0)==1)break Ub;J[695492]=0;l=d+132|0;ca(5122,l|0,k|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break Tb;c=J[J[b>>2]+72>>2];J[695492]=0;e=d+60|0;da(c|0,e|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break Sb;J[695492]=0;m=d+140|0;ca(5122,m|0,l|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Rb;J[695492]=0;ca(5122,a|0,m|0,d+164|0);c=J[695492];J[695492]=0;if((c|0)==1)break Qb;sc(m);sc(e);sc(l);sc(k);sc(f);sc(g);sc(i);sc(h);sc(j);sc(n);if(K[b+36|0]){J[695492]= -0;ca(5122,k|0,2760156,2760132);c=J[695492];J[695492]=0;if((c|0)==1)break Gb;J[695492]=0;ca(5121,l|0,k|0,2411829);c=J[695492];J[695492]=0;if((c|0)==1)break Fb;J[695492]=0;ca(5122,m|0,l|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break Eb;J[695492]=0;aa(5170,a|0,m|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Db;sc(m);sc(l);sc(k)}J[d+140>>2]=0;J[d+144>>2]=J[682146];c=J[b+60>>2];J[695492]=0;J[d+24>>2]=c&255;J[d+20>>2]=c>>>8&255;J[d+16>>2]=c>>>16&255;ga(5180,d+140|0,2374687,d+16|0)|0;c=J[695492]; -J[695492]=0;if((c|0)!=1)break Ab;break fb}e=Z()|0;break Sa}e=Z()|0;break Hb}e=Z()|0;break Ib}e=Z()|0;break Jb}e=Z()|0;break Kb}e=Z()|0;break Lb}e=Z()|0;break Mb}e=Z()|0;break Nb}e=Z()|0;break Ob}e=Z()|0;break Pb}e=Z()|0;sc(d+140|0)}sc(d+60|0)}sc(d+132|0)}sc(d+116|0)}sc(d+108|0)}sc(d+100|0)}sc(d+92|0)}sc(d+84|0)}sc(d+76|0)}sc(d+68|0);break Sa}e=Z()|0;break db}e=Z()|0;break Bb}e=Z()|0;break Cb}e=Z()|0;sc(d+140|0)}sc(d+132|0)}sc(d+116|0);break db}if(K[b+56|0]){J[d+132>>2]=0;J[d+136>>2]=J[682146];_b:{$b:{c= -J[b+48>>2];if((c|0)==-1)break $b;J[695492]=0;J[d+8>>2]=c&255;J[d>>2]=c>>>16&255;J[d+4>>2]=c>>>8&255;ga(5180,d+132|0,2374687,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break $b;e=Z()|0;break _b}J[695492]=0;h=d+84|0;ca(5122,h|0,2760156,2760132);c=J[695492];J[695492]=0;if((c|0)!=1){J[695492]=0;i=d+92|0;ca(5121,i|0,h|0,2411904);c=J[695492];J[695492]=0;ac:{bc:{cc:{dc:{ec:{fc:{gc:{hc:{ic:{jc:{kc:{lc:{mc:{nc:{oc:{pc:{qc:{rc:{sc:{if((c|0)!=1){J[695492]=0;g=d+100|0;ca(5122,g|0,i|0,2760156);c=J[695492];J[695492]= -0;if((c|0)==1)break sc;J[695492]=0;f=d+108|0;ca(5122,f|0,g|0,d+140|0);c=J[695492];J[695492]=0;if((c|0)==1)break rc;J[695492]=0;e=d+116|0;ca(5122,e|0,f|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break qc;J[695492]=0;aa(5170,a|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break pc;sc(e);sc(f);sc(g);sc(i);sc(h);c=J[d+132>>2];if(!(!c|!J[c+8>>2])){J[695492]=0;ca(5122,h|0,2760156,2760132);c=J[695492];J[695492]=0;if((c|0)==1)break kc;J[695492]=0;ca(5121,i|0,h|0,2411896);c=J[695492];J[695492]=0;if((c| -0)==1)break jc;J[695492]=0;ca(5122,g|0,i|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break ic;J[695492]=0;ca(5122,f|0,g|0,d+132|0);c=J[695492];J[695492]=0;if((c|0)==1)break hc;J[695492]=0;ca(5122,e|0,f|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break gc;J[695492]=0;aa(5170,a|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break fc;sc(e);sc(f);sc(g);sc(i);sc(h)}if(K[b+57|0])break ac;break hb}e=Z()|0;break lc}e=Z()|0;break mc}e=Z()|0;break nc}e=Z()|0;break oc}e=Z()|0;sc(d+116|0)}sc(d+108|0)}sc(d+ -100|0)}sc(d+92|0)}sc(d+84|0);break _b}e=Z()|0;break _b}e=Z()|0;break bc}e=Z()|0;break cc}e=Z()|0;break dc}e=Z()|0;break ec}e=Z()|0;sc(d+116|0)}sc(d+108|0)}sc(d+100|0)}sc(d+92|0)}sc(d+84|0);break _b}J[695492]=0;f=d+100|0;ca(5122,f|0,2760156,2760132);b=J[695492];J[695492]=0;tc:{uc:{vc:{wc:{xc:{if((b|0)!=1){J[695492]=0;e=d+108|0;ca(5121,e|0,f|0,2411912);b=J[695492];J[695492]=0;if((b|0)==1)break xc;J[695492]=0;c=d+116|0;ca(5122,c|0,e|0,2760144);b=J[695492];J[695492]=0;if((b|0)==1)break wc;J[695492]=0; -aa(5170,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break vc;sc(c);sc(e);sc(f);break hb}e=Z()|0;break _b}e=Z()|0;break tc}e=Z()|0;break uc}e=Z()|0;sc(d+116|0)}sc(d+108|0)}sc(d+100|0);break _b}e=Z()|0}sc(d+132|0);break eb}yc:{if(K[b+64|0]){J[695492]=0;e=d+92|0;ca(5122,e|0,2760156,2760132);c=J[695492];J[695492]=0;if((c|0)==1)break yc;J[695492]=0;g=d+100|0;ca(5121,g|0,e|0,2411888);c=J[695492];J[695492]=0;zc:{Ac:{Bc:{Cc:{Dc:{Ec:{Fc:{Gc:{Hc:{Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{Yc:{if((c| -0)!=1){J[695492]=0;j=d+108|0;ca(5122,j|0,g|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break Yc;J[695492]=0;h=d+116|0;ca(5122,h|0,j|0,d+140|0);c=J[695492];J[695492]=0;if((c|0)==1)break Xc;J[695492]=0;i=d+132|0;ca(5122,i|0,h|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break Wc;J[695492]=0;aa(5170,a|0,i|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Vc;sc(i);sc(h);sc(j);sc(g);sc(e);J[695492]=0;ca(5122,e|0,2760156,2760132);c=J[695492];J[695492]=0;if((c|0)==1)break Qc;J[695492]=0;ca(5121,g|0,e| -0,2411882);c=J[695492];J[695492]=0;if((c|0)==1)break Pc;J[695492]=0;ca(5122,j|0,g|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break Oc;c=J[b+68>>2];J[695492]=0;f=aa(5120,d+84|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Nc;J[695492]=0;ca(5122,h|0,j|0,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break Mc;J[695492]=0;ca(5122,i|0,h|0,2760144);c=J[695492];J[695492]=0;if((c|0)==1)break Lc;J[695492]=0;aa(5170,a|0,i|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Kc;sc(i);sc(h);sc(f);sc(j);sc(g);sc(e); -if(!K[b+65|0])break gb;J[695492]=0;ca(5122,j|0,2760156,2760132);b=J[695492];J[695492]=0;if((b|0)==1)break Ec;J[695492]=0;ca(5121,h|0,j|0,2411876);b=J[695492];J[695492]=0;if((b|0)==1)break Dc;J[695492]=0;ca(5122,i|0,h|0,2760144);b=J[695492];J[695492]=0;if((b|0)==1)break Cc;J[695492]=0;aa(5170,a|0,i|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Bc;sc(i);sc(h);sc(j);break gb}e=Z()|0;break Rc}e=Z()|0;break Sc}e=Z()|0;break Tc}e=Z()|0;break Uc}e=Z()|0;sc(d+132|0)}sc(d+116|0)}sc(d+108|0)}sc(d+100|0)}sc(d+ -92|0);break eb}e=Z()|0;break eb}e=Z()|0;break Fc}e=Z()|0;break Gc}e=Z()|0;break Hc}e=Z()|0;break Ic}e=Z()|0;break Jc}e=Z()|0;sc(d+132|0)}sc(d+116|0)}sc(f)}sc(d+108|0)}sc(d+100|0)}sc(d+92|0);break eb}e=Z()|0;break eb}e=Z()|0;break zc}e=Z()|0;break Ac}e=Z()|0;sc(d+132|0)}sc(d+116|0)}sc(d+108|0);break eb}c=J[J[b>>2]+12>>2];J[695492]=0;e=$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break fb;Zc:{_c:{$c:{ad:{bd:{cd:{dd:{ed:{fd:{gd:{hd:{id:{jd:{kd:{if((e|0)==1){J[695492]=0;i=d+92|0;ca(5122,i|0,2760156, -2760132);c=J[695492];J[695492]=0;if((c|0)==1)break kd;J[695492]=0;g=d+100|0;ca(5121,g|0,i|0,2411868);c=J[695492];J[695492]=0;if((c|0)==1)break jd;J[695492]=0;f=d+108|0;ca(5122,f|0,g|0,2760156);c=J[695492];J[695492]=0;if((c|0)==1)break id;b=J[b+52>>2];J[695492]=0;h=aa(5120,d+84|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break hd;J[695492]=0;e=d+116|0;ca(5122,e|0,f|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1)break gd;J[695492]=0;c=d+132|0;ca(5122,c|0,e|0,2760144);b=J[695492];J[695492]=0;if((b|0)== -1)break fd;J[695492]=0;aa(5170,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ed;sc(c);sc(e);sc(h);sc(f);sc(g);sc(i)}b=J[d+156>>2];if(!b|!J[b+8>>2])break gb;J[695492]=0;c=d+132|0;ca(5122,c|0,2760156,d+156|0);b=J[695492];J[695492]=0;if((b|0)==1)break _c;J[695492]=0;aa(5170,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Zc;sc(c);break gb}e=Z()|0;break eb}e=Z()|0;break $c}e=Z()|0;break ad}e=Z()|0;break bd}e=Z()|0;break cd}e=Z()|0;break dd}e=Z()|0;sc(d+132|0)}sc(d+116|0)}sc(h)}sc(d+108|0)}sc(d+ -100|0)}sc(d+92|0);break eb}e=Z()|0;break eb}e=Z()|0;sc(d+132|0);break eb}e=Z()|0;break eb}e=Z()|0;break Ra}sc(d+132|0)}J[695492]=0;aa(5170,a|0,2760144)|0;b=J[695492];J[695492]=0;if((b|0)==1)break fb;sc(d+140|0);sc(d+148|0);sc(d+156|0);sc(d+164|0);sc(d+172|0);sc(d+180|0);sc(d+188|0);sc(d+196|0);sc(d+204|0);sc(d+212|0);bc=d+240|0;return}e=Z()|0}sc(d+140|0)}sc(a);break Sa}sc(d+140|0)}sc(d+132|0)}sc(d+116|0)}sc(d+108|0)}sc(d+100|0)}sc(d+92|0)}sc(d+84|0)}sc(d+76|0)}sc(d+68|0)}sc(d+60|0);break Sa}sc(d+ -140|0)}sc(d+132|0)}sc(d+148|0)}sc(d+156|0);break s}sc(d+156|0)}sc(d+148|0);break s}sc(d+156|0)}sc(d+148|0)}sc(g)}sc(d+140|0)}sc(d+132|0);break s}sc(d+156|0)}sc(d+148|0)}sc(g)}sc(d+140|0)}sc(d+132|0);break s}sc(d+156|0)}sc(d+148|0)}sc(g)}sc(d+140|0)}sc(d+132|0);break s}sc(d+156|0)}sc(d+148|0)}sc(g)}sc(d+140|0)}sc(d+132|0);break s}sc(d+156|0)}sc(d+148|0)}sc(d+140|0)}sc(d+132|0);break s}sc(d+156|0)}sc(d+148|0);break s}sc(d+156|0)}sc(d+148|0)}sc(d+164|0)}sc(d+172|0);break h}e=Z()|0;break h}e=Z()|0}}sc(d+ -180|0);sc(d+188|0);sc(d+196|0);sc(d+204|0);sc(d+212|0)}ba(e|0)}B()}ea(0)|0;yc();B()}function tFa(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,w=0,x=0,y=0,z=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0;e=bc-576|0;bc=e;J[e+412>>2]=0;J[e+408>>2]=255;H[e+407|0]=0;H[e+406|0]=0;H[e+405|0]=0;H[e+404|0]=0;p=e+392|0;f=p;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;J[695492]=0;s=e+380|0;f=s;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;f=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((f| -0)!=1){J[695492]=0;t=e+368|0;f=t;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;o=e+356|0;f=o;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;u=e+344|0;f=u;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;f=J[695492];J[695492]=0;if((f|0)!=1){l=J[J[a+36>>2]+4>>2];J[695492]=0;f=Yj(b);g=J[695492];J[695492]=0;if((g|0)==1)break g;if(!f){w=1;z=10;break h}J[695492]=0;da(4810,e+328|0,b|0);f=J[695492];J[695492]=0;if((f|0)!=1){I=e+444|0;L=e+496|0;m=e+104| -4;w=1;z=10;i:{j:{while(1){f=K[e+339|0];i=f<<24>>24;h=(i|0)<0;k:{l:{m:{n:{o:{p:{g=J[e+332>>2];j=h?g:f;if(j){q:{r:{s:{t:{if((j|0)==15){if(!gd(h?J[e+328>>2]:e+328|0,2367920,15))break t;g=J[e+332>>2];f=K[e+339|0];i=f}h=i<<24>>24<0;if(((h?g:f)|0)==4)break s;break r}J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;u:{if((g|0)!=1){J[695492]=0;ca(4862,t|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break u;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>= -0)break i;qc(J[e+416>>2]);break i}if(gd(h?J[e+328>>2]:e+328|0,2367520,4)){g=J[e+332>>2];f=K[e+339|0];i=f;break r}J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;v:{if((g|0)!=1){J[695492]=0;ca(4862,s|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break v;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}w:{h=i<<24>>24<0;if(((h?g:f)|0)!=7)break w;if(gd(h?J[e+328>>2]:e+328|0,2367488,7)){g=J[e+332>>2];f=K[e+339|0];i= -f;break w}J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;x:{y:{z:{A:{if((g|0)!=1){J[695492]=0;f=aa(4825,e+316|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break A;J[695492]=0;Qs(f,e+304|0);g=J[695492];J[695492]=0;if((g|0)==1)break z;Lc(f);if(H[e+427|0]<0)qc(J[e+416>>2]);J[695492]=0;da(4836,d|0,e+304|0);f=J[695492];J[695492]=0;if((f|0)==1)break x;M=1;break q}b=Z()|0;break i}b=Z()|0;break y}b=Z()|0;Lc(f)}if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}b=Z()|0;break i}B:{h=i<<24>>24< -0;if(((h?g:f)|0)!=6)break B;if(gd(h?J[e+328>>2]:e+328|0,2368368,6)){g=J[e+332>>2];f=K[e+339|0];i=f;break B}J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;C:{if((g|0)!=1){J[695492]=0;ca(4873,f|0,e+412|0,e+408|0);f=J[695492];J[695492]=0;if((f|0)==1)break C;if(H[e+427|0]<0)qc(J[e+416>>2]);y=1;break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}D:{h=i<<24>>24<0;if(((h?g:f)|0)!=15)break D;if(gd(h?J[e+328>>2]:e+328|0,2368396,15)){g=J[e+332>>2];f=K[e+339|0];i= -f;break D}J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;E:{if((g|0)!=1){J[695492]=0;w=+qa(4835,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break E;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}F:{h=i<<24>>24<0;if(((h?g:f)|0)!=15)break F;if(gd(h?J[e+328>>2]:e+328|0,2368460,15)){g=J[e+332>>2];f=K[e+339|0];i=f;break F}J[695492]=0;f=e+304|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;if((g|0)!=1){J[e+296>>2]=0;J[e+ -288>>2]=0;J[e+292>>2]=0;J[695492]=0;g=ga(4874,e+432|0,f|0,24)|0;f=J[695492];J[695492]=0;G:{if((f|0)!=1){J[e+424>>2]=0;J[e+416>>2]=0;J[e+420>>2]=0;while(1){J[695492]=0;f=ga(4875,g|0,e+416|0,32)|0;i=J[695492];J[695492]=0;H:{I:{J:{if((i|0)!=1){if(K[(f+J[J[f>>2]-12>>2]|0)+16|0]&5)break I;f=J[e+292>>2];if((f|0)!=J[e+296>>2]){if(H[e+427|0]>=0){i=J[e+420>>2];J[f>>2]=J[e+416>>2];J[f+4>>2]=i;J[f+8>>2]=J[e+424>>2];break H}J[695492]=0;ca(15,f|0,J[e+416>>2],J[e+420>>2]);i=J[695492];J[695492]=0;if((i|0)!=1)break H; -b=Z()|0;J[e+292>>2]=f;break J}J[695492]=0;da(2796,e+288|0,e+416|0);f=J[695492];J[695492]=0;if((f|0)!=1)continue}b=Z()|0}if(H[e+427|0]<0)qc(J[e+416>>2]);bA(g);break G}if(H[e+427|0]<0)qc(J[e+416>>2]);J[g>>2]=2369892;J[e+444>>2]=2369744;J[e+440>>2]=2369912;J[e+496>>2]=2369932;if(H[e+487|0]<0)qc(J[e+476>>2]);Nh(I);Uf(L);g=J[e+288>>2];f=J[e+292>>2]-g|0;i=(f|0)/12|0;K:{L:{M:{if((f|0)>0){J[695492]=0;x=$(27,i<<3)|0;f=J[695492];J[695492]=0;if((f|0)==1)break K;g=(i|0)<=1?1:i;f=0;while(1){q=J[e+288>>2];if((J[e+ -292>>2]-q|0)/12>>>0<=f>>>0){J[695492]=0;_(4876,e+288|0);a=J[695492];J[695492]=0;if((a|0)==1)break L;B()}J[695492]=0;k=+qa(4835,q+P(f,12)|0);q=J[695492];J[695492]=0;if((q|0)==1)break M;O[(f<<3)+x>>3]=k;f=f+1|0;if((g|0)!=(f|0))continue;break}q=i;g=J[e+288>>2]}if(g){f=g;i=J[e+292>>2];if((f|0)!=(i|0)){while(1){f=i-12|0;if(H[i-1|0]<0)qc(J[f>>2]);i=f;if((f|0)!=(g|0))continue;break}f=J[e+288>>2]}J[e+292>>2]=g;qc(f)}if(H[e+315|0]>=0)break q;qc(J[e+304>>2]);break q}b=Z()|0;break G}b=Z()|0;break G}b=Z()|0; -break G}J[e+292>>2]=f+12;continue}}b=Z()|0}sg(e+288|0);if(H[e+315|0]>=0)break i;qc(J[e+304>>2]);break i}b=Z()|0;break i}N:{h=i<<24>>24<0;if(((h?g:f)|0)!=16)break N;if(gd(h?J[e+328>>2]:e+328|0,2368524,16)){g=J[e+332>>2];f=K[e+339|0];i=f;break N}J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;O:{if((g|0)!=1){J[695492]=0;N=+qa(4835,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break O;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>> -2]);break i}P:{h=i<<24>>24<0;if(((h?g:f)|0)!=13)break P;if(gd(h?J[e+328>>2]:e+328|0,2368592,13)){g=J[e+332>>2];f=K[e+339|0];i=f;break P}J[695492]=0;f=e+416|0;da(3318,f|0,b|0);g=J[695492];J[695492]=0;Q:{if((g|0)!=1){J[695492]=0;f=$z(f);g=J[695492];J[695492]=0;if((g|0)==1)break Q;H[e+407|0]=f;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}R:{j=f;f=i<<24>>24<0;if(((f?g:j)|0)!=16)break R;if(gd(f?J[e+328>>2]:e+328|0,2368648,16))break R; -J[695492]=0;f=e+416|0;da(3318,f|0,b|0);g=J[695492];J[695492]=0;S:{if((g|0)!=1){J[695492]=0;f=$z(f);g=J[695492];J[695492]=0;if((g|0)==1)break S;H[e+405|0]=f;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}if(xj(2368716,e+328|0)){J[695492]=0;f=e+416|0;da(3318,f|0,b|0);g=J[695492];J[695492]=0;T:{if((g|0)!=1){J[695492]=0;f=$z(f);g=J[695492];J[695492]=0;if((g|0)==1)break T;H[e+406|0]=f;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b= -Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}if(xj(2368792,e+328|0)){J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;U:{V:{if((g|0)!=1){J[695492]=0;f=aa(4825,e+276|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break V;if(H[e+427|0]<0)qc(J[e+416>>2]);J[695492]=0;g=Fd(f,2368852);i=J[695492];J[695492]=0;if((i|0)==1)break j;if(!g)break U;H[e+404|0]=0;Lc(f);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}J[695492]=0;g=Fd(f,2368876); -i=J[695492];J[695492]=0;if((i|0)==1)break j;if(g){H[e+404|0]=1;Lc(f);break q}J[695492]=0;g=Fd(f,2368900);i=J[695492];J[695492]=0;if((i|0)==1)break j;if(g)H[e+404|0]=2;Lc(f);break q}if(xj(2368924,e+328|0)){J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;W:{if((g|0)!=1){J[695492]=0;z=+qa(4835,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break W;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}if(xj(2367540,e+328|0)){J[695492]= -0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;X:{if((g|0)!=1){J[695492]=0;ca(4862,p|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break X;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}if(xj(2368992,e+328|0)){J[695492]=0;f=e+416|0;da(4811,f|0,b|0);g=J[695492];J[695492]=0;Y:{if((g|0)!=1){J[695492]=0;ca(4862,o|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break Y;if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0; -break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}if(xj(2369012,e+328|0)){J[695492]=0;da(4811,e+416|0,b|0);f=J[695492];J[695492]=0;Z:{if((f|0)!=1){f=J[a+36>>2];g=J[f+4>>2];f=J[f>>2];_:{if(H[e+427|0]>=0){J[e+272>>2]=J[e+424>>2];i=J[e+420>>2];J[e+264>>2]=J[e+416>>2];J[e+268>>2]=i;break _}J[695492]=0;ca(15,e+264|0,J[e+416>>2],J[e+420>>2]);i=J[695492];J[695492]=0;if((i|0)==1)break Z}i=e+264|0;$:{if((f|0)==(g|0))break $;while(1){j=K[f+39|0];l=j<<24>>24<0;n=K[i+11|0];h=n<<24>>24<0;j=l?J[f+ -32>>2]:j;if((j|0)==((h?J[i+4>>2]:n)|0)){if(!j)break $;n=f+28|0;if(!gd(l?J[n>>2]:n,h?J[i>>2]:i,j))break $}f=f+40|0;if((g|0)!=(f|0))continue;break}f=g}l=f;if(H[e+275|0]<0)qc(J[e+264>>2]);if(H[e+427|0]>=0)break q;qc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;qc(J[e+416>>2]);break i}if(!xj(2369032,e+328|0))break q;f=J[J[c>>2]+400>>2];J[695492]=0;va(f|0,c|0,e+256|0,e+248|0,e+240|0,e+232|0,e+224|0,e+216|0)|0;f=J[695492];J[695492]=0;aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{if((f|0)!=1){J[695492]= -0;i=Qb(4878,e+212|0,+O[e+256>>3],+O[e+248>>3],+O[e+240>>3],+O[e+232>>3],+O[e+224>>3],+O[e+216>>3])|0;f=J[695492];J[695492]=0;if((f|0)==1)break ha;J[e+200>>2]=0;J[e+204>>2]=0;J[e+192>>2]=0;J[e+196>>2]=0;J[e+184>>2]=0;J[e+188>>2]=0;J[e+176>>2]=0;J[e+180>>2]=0;J[e+168>>2]=0;J[e+172>>2]=0;J[e+160>>2]=0;J[e+164>>2]=0;J[e+152>>2]=0;J[e+156>>2]=0;J[e+144>>2]=0;J[e+148>>2]=0;J[e+136>>2]=0;J[e+140>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+120>>2]=0;J[e+124>>2]=0;J[e+112>>2]=0;J[e+116>>2]=0;J[e+104>>2]=0;J[e+108>> -2]=0;J[695492]=0;g=aa(31,e+104|0,39181)|0;f=J[695492];J[695492]=0;if((f|0)==1)break ga;J[695492]=0;f=e+416|0;da(4879,f|0,o|0);h=J[695492];J[695492]=0;if((h|0)==1)break fa;h=bx(f,2369120,0);if((h|0)==-1)break aa;h=h+2|0;j=qj(f,44,h);if((j|0)==-1)break aa;J[695492]=0;f=ma(2797,e+92|0,f|0,h|0,j-h|0,e+304|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ea;J[695492]=0;k=+qa(4835,f|0);h=J[695492];J[695492]=0;if((h|0)==1)break da;O[e+200>>3]=k;if(H[e+103|0]<0)qc(J[f>>2]);h=e+416|0;f=j+1|0;j=qj(h,32,f);ia:{if((j| -0)==-1)break ia;J[695492]=0;f=ma(2797,e+80|0,h|0,f|0,j-f|0,e+304|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ca;J[695492]=0;k=+qa(4835,f|0);h=J[695492];J[695492]=0;if((h|0)==1)break ba;O[e+192>>3]=k;if(H[e+91|0]>=0)break ia;qc(J[f>>2])}J[695492]=0;je(i,e+200|0,e+192|0);f=J[695492];J[695492]=0;if((f|0)!=1)break aa;b=Z()|0;break n}b=Z()|0;break i}b=Z()|0;break i}b=Z()|0;Ed(i);break i}b=Z()|0;break m}b=Z()|0;break n}b=Z()|0;if(H[e+103|0]>=0)break n;qc(J[f>>2]);break n}b=Z()|0;break n}b=Z()|0;if(H[e+ -91|0]>=0)break n;qc(J[f>>2]);break n}f=-1;ja:{h=e+416|0;j=bx(h,2369132,0);if((j|0)==-1)break ja;f=j+2|0;j=qj(h,44,f);if((j|0)==-1)break ja;J[695492]=0;h=ma(2797,e+68|0,h|0,f|0,j-f|0,e+304|0)|0;n=J[695492];J[695492]=0;ka:{la:{ma:{if((n|0)!=1){J[695492]=0;k=+qa(4835,h|0);n=J[695492];J[695492]=0;if((n|0)==1)break ma;O[e+184>>3]=k;if(H[e+79|0]<0)qc(J[h>>2]);n=e+416|0;h=j+1|0;j=qj(n,32,h);na:{if((j|0)==-1)break na;J[695492]=0;h=ma(2797,e+56|0,n|0,h|0,j-h|0,e+304|0)|0;j=J[695492];J[695492]=0;if((j|0)== -1)break la;J[695492]=0;k=+qa(4835,h|0);j=J[695492];J[695492]=0;if((j|0)==1)break ka;O[e+176>>3]=k;if(H[e+67|0]>=0)break na;qc(J[h>>2])}J[695492]=0;je(i,e+184|0,e+176|0);h=J[695492];J[695492]=0;if((h|0)!=1)break ja;b=Z()|0;break n}b=Z()|0;break n}b=Z()|0;if(H[e+79|0]>=0)break n;qc(J[h>>2]);break n}b=Z()|0;break n}b=Z()|0;if(H[e+67|0]>=0)break n;qc(J[h>>2]);break n}oa:{h=e+416|0;f=bx(h,2369132,f);if((f|0)==-1)break oa;f=f+2|0;j=qj(h,44,f);if((j|0)==-1)break oa;J[695492]=0;f=ma(2797,e+44|0,h|0,f|0,j- -f|0,e+304|0)|0;h=J[695492];J[695492]=0;pa:{qa:{ra:{if((h|0)!=1){J[695492]=0;k=+qa(4835,f|0);h=J[695492];J[695492]=0;if((h|0)==1)break ra;O[e+168>>3]=k;if(H[e+55|0]<0)qc(J[f>>2]);h=e+416|0;f=j+1|0;j=qj(h,32,f);sa:{if((j|0)==-1)break sa;J[695492]=0;f=ma(2797,e+32|0,h|0,f|0,j-f|0,e+304|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break qa;J[695492]=0;k=+qa(4835,f|0);h=J[695492];J[695492]=0;if((h|0)==1)break pa;O[e+160>>3]=k;if(H[e+43|0]>=0)break sa;qc(J[f>>2])}J[695492]=0;je(i,e+168|0,e+160|0);f=J[695492]; -J[695492]=0;if((f|0)!=1)break oa;b=Z()|0;break n}b=Z()|0;break n}b=Z()|0;if(H[e+55|0]>=0)break n;qc(J[f>>2]);break n}b=Z()|0;break n}b=Z()|0;if(H[e+43|0]>=0)break n;qc(J[f>>2]);break n}C=O[e+184>>3];E=O[e+200>>3];r=E;f=C==r;F=O[e+168>>3];k=f?F:C;A(+r);h=v(1)|0;h=h&2147483647;if(!(v(0)|0)&(h|0)==2146435072|h>>>0<2146435072){A(+k);h=v(1)|0;j=v(0)|0;h=h&2147483647;k=(h|0)==2146435072&(j|0)!=0|h>>>0>2146435072?r:T(k,r)}O[e+128>>3]=k;D=O[e+176>>3];r=O[e+192>>3];h=D==r;G=O[e+160>>3];k=h?G:D;A(+r);j=v(1)| -0;j=j&2147483647;if(!(v(0)|0)&(j|0)==2146435072|j>>>0<2146435072){A(+k);j=v(1)|0;n=v(0)|0;j=j&2147483647;k=(j|0)==2146435072&(n|0)!=0|j>>>0>2146435072?r:T(k,r)}O[e+136>>3]=k;O[e+152>>3]=R(r-(f?D:G));O[e+144>>3]=R(E-(h?C:F));J[695492]=0;f=e+304|0;da(4811,f|0,b|0);h=J[695492];J[695492]=0;ta:{ua:{if((h|0)!=1){if(bx(f,2369144,0))break ua;J[695492]=0;j=f;f=H[e+315|0];h=(f|0)<0;ia(1626,e+288|0,(h?J[e+304>>2]:j)|0,(h?J[e+308>>2]:f&255)|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break p;if(H[e+115|0]<0)qc(J[g>> -2]);f=J[e+292>>2];J[g>>2]=J[e+288>>2];J[g+4>>2]=f;J[g+8>>2]=J[e+296>>2];J[695492]=0;da(4880,a|0,g|0);f=J[695492];J[695492]=0;if((f|0)!=1)break ta;b=Z()|0;break o}b=Z()|0;break n}f=e+304|0;h=qj(f,35,0);if((h|0)==-1)break ta;j=J[a+36>>2];J[695492]=0;f=ma(2797,e+20|0,f|0,h+1|0,-1,e+288|0)|0;h=J[695492];J[695492]=0;va:{wa:{xa:{if((h|0)!=1){J[695492]=0;h=xi(j+12|0,f);j=J[695492];J[695492]=0;if((j|0)==1)break xa;if(H[e+31|0]<0)qc(J[f>>2]);if((h|0)==(J[a+36>>2]+16|0))break ta;h=J[h+28>>2];J[695492]=0;f= -e+288|0;da(2667,f|0,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break wa;J[695492]=0;ga(4882,f|0,(H[e+299|0]<0?J[e+288>>2]:f)|0,35)|0;f=J[695492];J[695492]=0;if((f|0)==1)break va;f=K[e+295|0]|K[e+296|0]<<8|(K[e+297|0]<<16|K[e+298|0]<<24);j=J[e+292>>2];h=K[e+299|0];J[e+296>>2]=0;J[e+12>>2]=j;j=J[e+288>>2];J[e+288>>2]=0;J[e+292>>2]=0;H[e+15|0]=f;H[e+16|0]=f>>>8;H[e+17|0]=f>>>16;H[e+18|0]=f>>>24;ya:{if(H[e+115|0]>=0){J[g>>2]=j;f=K[e+15|0]|K[e+16|0]<<8|(K[e+17|0]<<16|K[e+18|0]<<24);H[m+3|0]=f;H[m+4|0]=f>>> -8;H[m+5|0]=f>>>16;H[m+6|0]=f>>>24;J[m>>2]=J[e+12>>2];H[e+115|0]=h;break ya}qc(J[g>>2]);n=H[e+299|0];J[g>>2]=j;f=K[e+15|0]|K[e+16|0]<<8|(K[e+17|0]<<16|K[e+18|0]<<24);H[m+3|0]=f;H[m+4|0]=f>>>8;H[m+5|0]=f>>>16;H[m+6|0]=f>>>24;J[m>>2]=J[e+12>>2];H[e+115|0]=h;if((n|0)>=0)break ya;qc(J[e+288>>2])}J[695492]=0;da(4880,a|0,g|0);f=J[695492];J[695492]=0;if((f|0)!=1)break ta;b=Z()|0;break o}b=Z()|0;break o}b=Z()|0;if(H[e+31|0]>=0)break o;qc(J[f>>2]);break o}b=Z()|0;break o}b=Z()|0;if(H[e+299|0]>=0)break o;qc(J[e+ -288>>2]);break o}if(H[e+315|0]<0)qc(J[e+304>>2]);if(H[e+427|0]<0)qc(J[e+416>>2]);if(H[e+115|0]<0)qc(J[g>>2]);Ed(i)}J[695492]=0;f=vi(b);g=J[695492];J[695492]=0;if((g|0)==1)break l;if(f)break k;i=K[e+339|0]}if(i<<24>>24>=0)break h;qc(J[e+328>>2]);break h}b=Z()|0}if(H[e+315|0]>=0)break n;qc(J[e+304>>2])}if(H[e+427|0]>=0)break m;qc(J[e+416>>2])}if(H[e+115|0]<0)qc(J[g>>2]);Ed(i);break i}b=Z()|0;break i}J[695492]=0;da(4810,e+416|0,b|0);f=J[695492];J[695492]=0;if((f|0)!=1){if(H[e+339|0]<0)qc(J[e+328>>2]); -J[e+336>>2]=J[e+424>>2];f=J[e+420>>2];J[e+328>>2]=J[e+416>>2];J[e+332>>2]=f;continue}break}b=Z()|0;break i}b=Z()|0;Lc(f)}if(H[e+339|0]>=0)break e;qc(J[e+328>>2]);break e}b=Z()|0;break e}b=Z()|0;break d}b=Z()|0;break c}b=Z()|0;break b}b=Z()|0;break a}J[695492]=0;Ri(b);f=J[695492];J[695492]=0;if((f|0)==1)break g;if(J[J[a+36>>2]+4>>2]==(l|0))break f;J[695492]=0;f=e+416|0;da(4879,f|0,o|0);g=J[695492];J[695492]=0;if((g|0)!=1){za:{Aa:{Ba:{g=qj(f,44,0);Ca:{if((g|0)==-1)break Ca;g=g+1|0;i=qj(f,32,g);if((i| -0)==-1)break Ca;J[695492]=0;f=ma(2797,e+328|0,f|0,g|0,i-g|0,e+304|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ba;J[695492]=0;k=+qa(4835,f|0);g=J[695492];J[695492]=0;if((g|0)==1)break Aa;O[l+8>>3]=k;if(H[f+11|0]>=0)break Ca;qc(J[f>>2])}if(H[e+427|0]>=0)break f;qc(J[e+416>>2]);break f}b=Z()|0;break za}b=Z()|0;if(H[f+11|0]>=0)break za;qc(J[f>>2])}if(H[e+427|0]>=0)break e;qc(J[e+416>>2]);break e}b=Z()|0;break e}b=Z()|0;break e}l=0;J[695492]=0;f=!J[p+4>>2];g=J[695492];J[695492]=0;Da:{if((g|0)==1)break Da; -g=0;Ea:{if(f)break Ea;J[695492]=0;f=J[p+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break Da;Fa:{if(!f)break Fa;J[695492]=0;J[e+416>>2]=0;f=J[p>>2];if(K[p+8|0])f=J[f>>2];f=J[(J[e+416>>2]<<2)+f>>2];g=J[695492];J[695492]=0;if((g|0)!=1){if((f|0)!=123)break Fa;g=0;J[695492]=0;l=aa(4866,d|0,p|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break Ea;break Da}b=Z()|0;break e}J[695492]=0;f=J[p>>2];Ga:{if(K[p+8|0]){g=0;if(!f)break Ga;f=J[f>>2]}g=f}f=J[695492];J[695492]=0;if((f|0)==1)break Da;J[695492]=0;k=O[d+48>> -3];f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;O[e+416>>3]=k;l=aa(4868,g|0,e+416|0)|0;f=J[695492];J[695492]=0;g=1;if((f|0)!=1)break Ea}b=Z()|0;break e}Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{if(!(y&1))break Na;J[e+416>>2]=J[e+412>>2]&16777215;f=J[J[c>>2]+52>>2];J[695492]=0;aa(f|0,c|0,e+416|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Ma;J[695492]=0;f=J[e+408>>2];k=O[d+48>>3];i=J[695492];J[695492]=0;if((i|0)!=1){k=k*+(f|0);Oa:{if(R(k)<2147483648){f=~~k;break Oa}f=-2147483648}J[e+416>>2]=f;f=J[J[c>>2]+60>> -2];J[695492]=0;aa(f|0,c|0,e+416|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break Na}b=Z()|0;break e}J[695492]=0;f=Gh(b);i=J[695492];J[695492]=0;if((i|0)==1)break Da;if(!f){J[695492]=0;f=e+416|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;i=J[695492];J[695492]=0;if((i|0)==1)break La;J[695492]=0;m=Qg(b);i=J[695492];J[695492]=0;Pa:{Qa:{if((i|0)!=1)while(1){J[695492]=0;i=aa(4815,b|0,m|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break Ha;if(!i)break Pa;J[695492]=0;i=e+288|0;da(4802,i|0,b|0);h=J[695492];J[695492]=0;Ra:{Sa:{Ta:{Ua:{if((h| -0)!=1){J[695492]=0;i=aa(4825,e+304|0,i|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break Ua;J[695492]=0;Xf(f,i);h=J[695492];J[695492]=0;if((h|0)==1)break Ta;Lc(i);if(H[e+299|0]<0)qc(J[e+288>>2]);J[695492]=0;i=Fd(f,2369164);h=J[695492];J[695492]=0;if((h|0)==1)break Ha;if(!i)break Ra;J[695492]=0;ca(4838,b|0,t|0,0);i=J[695492];J[695492]=0;if((i|0)!=1)continue;break Ha}b=Z()|0;Lc(f);break e}b=Z()|0;break Sa}b=Z()|0;Lc(i)}if(H[e+299|0]>=0)break Qa;qc(J[e+288>>2]);Lc(f);break e}J[695492]=0;i=Fd(f,2369248); -h=J[695492];J[695492]=0;if((h|0)==1)break Ha;if(i){J[695492]=0;da(4840,b|0,s|0);i=J[695492];J[695492]=0;if((i|0)!=1)continue;break Ha}J[695492]=0;i=Fd(f,2369288);h=J[695492];J[695492]=0;if((h|0)==1)break Ha;if(i&!l){J[695492]=0;k=O[d+48>>3];g=J[695492];J[695492]=0;Va:{if((g|0)==1)break Va;J[695492]=0;O[e+288>>3]=k;l=ga(4869,b|0,e+288|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Va;g=1;continue}b=Z()|0;Lc(f);break e}J[695492]=0;i=Fd(f,2369328);h=J[695492];J[695492]=0;if((h|0)==1)break Ha;if(!((i^ --1|y)&1)){J[695492]=0;y=ha(4883,e|0,b|0,c|0,d|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1)continue;b=Z()|0;Lc(f);break e}J[695492]=0;i=Fd(f,2369376);h=J[695492];J[695492]=0;if((h|0)==1)break Ha;if(!i)continue;J[695492]=0;i=J[o+4>>2];h=J[695492];J[695492]=0;if((h|0)==1)break Ha;if(i)continue;J[695492]=0;ia(4884,e|0,b|0,o|0,u|0);i=J[695492];J[695492]=0;if((i|0)!=1)continue;break Ha}b=Z()|0}Lc(f);break e}Lc(f)}i=0;Wa:{Xa:{Ya:{Za:{_a:{$a:{ab:{if(!l)break ab;b=J[J[l>>2]+12>>2];J[695492]=0;b=$(b|0,l|0)|0; -f=J[695492];J[695492]=0;if((f|0)==1)break Da;bb:{if(!b)break bb;b=J[a+24>>2];J[695492]=0;f=e+288|0;da(4807,f|0,a+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break $a;J[695492]=0;ca(4885,l|0,b|0,(H[e+299|0]<0?J[e+288>>2]:f)|0);a=J[695492];J[695492]=0;if((a|0)==1)break _a;if(H[e+299|0]>=0)break bb;qc(J[e+288>>2])}a=J[J[l>>2]+8>>2];J[695492]=0;i=aa(a|0,l|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Da;if(!g)break ab;gc[J[J[l>>2]+4>>2]](l)}J[695492]=0;a=J[t+4>>2];b=J[695492];J[695492]=0;if((b|0)== -1)break Da;l=0;if(a){J[695492]=0;a=J[t>>2];cb:{if(K[t+8|0]){b=0;if(!a)break cb;a=J[a>>2]}b=a}a=J[695492];J[695492]=0;if((a|0)==1)break Da;J[695492]=0;l=ga(4834,e|0,b|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Da}J[695492]=0;b=J[s+4>>2];a=J[695492];J[695492]=0;if((a|0)==1)break Da;a=0;if(b){J[695492]=0;a=J[s>>2];db:{if(K[s+8|0]){b=0;if(!a)break db;a=J[a>>2]}b=a}a=J[695492];J[695492]=0;if((a|0)==1)break Da;J[695492]=0;a=ga(4833,e|0,b|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Da}if(!x)break Xa; -eb:{if((q|0)<=0)break eb;b=0;if((q|0)!=1){g=q&-2;f=0;while(1){m=b<<3;h=m+x|0;O[h>>3]=w*O[h>>3]*25.4/96;m=(m|8)+x|0;O[m>>3]=w*O[m>>3]*25.4/96;b=b+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(q&1))break eb;b=(b<<3)+x|0;O[b>>3]=w*O[b>>3]*25.4/96}H[e+288|0]=5;b=J[J[c>>2]+76>>2];J[695492]=0;aa(b|0,c|0,e+288|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Za;b=J[J[c>>2]+128>>2];J[695492]=0;ga(b|0,c|0,x|0,q|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Da;O[e+288>>3]=N*w*25.4/96;b=J[J[c>>2]+108>>2]; -J[695492]=0;aa(b|0,c|0,e+288|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ya;b=J[J[c>>2]+84>>2];J[695492]=0;aa(b|0,c|0,e+407|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Da;b=J[J[c>>2]+92>>2];J[695492]=0;aa(b|0,c|0,e+407|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Da;qc(x);break Wa}b=Z()|0;break e}b=Z()|0;if(H[e+299|0]>=0)break e;qc(J[e+288>>2]);break e}b=Z()|0;break e}b=Z()|0;break e}H[e+288|0]=0;b=J[J[c>>2]+76>>2];J[695492]=0;aa(b|0,c|0,e+288|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Ka; -b=J[J[c>>2]+84>>2];J[695492]=0;aa(b|0,c|0,e+406|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Da;b=J[J[c>>2]+92>>2];J[695492]=0;aa(b|0,c|0,e+405|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Da}b=J[J[c>>2]+100>>2];J[695492]=0;aa(b|0,c|0,e+404|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Da;fb:{if(K[e+404|0])break fb;O[e+288>>3]=z*25.4/96;b=J[J[c>>2]+124>>2];J[695492]=0;aa(b|0,c|0,e+288|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break fb;b=Z()|0;break e}O[e+288>>3]=w*25.4/96;b=J[J[c>>2]+68>>2];J[695492]= -0;f=e+288|0;aa(b|0,c|0,f|0)|0;b=J[695492];J[695492]=0;gb:{hb:{ib:{if((b|0)!=1){J[e+288>>2]=4;b=J[J[c>>2]+308>>2];J[695492]=0;aa(b|0,c|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ib;b=J[J[c>>2]+352>>2];J[695492]=0;$(b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Da;J[695492]=0;b=J[o+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break Da;jb:{if(!b)break jb;J[695492]=0;J[e+288>>2]=0;b=J[o>>2];if(K[o+8|0])b=J[b>>2];b=J[(J[f>>2]<<2)+b>>2];f=J[695492];J[695492]=0;if((f|0)==1)break hb;if((b|0)!= -123)break jb;J[695492]=0;ia(4850,d|0,o|0,o|0,u|0);b=J[695492];J[695492]=0;if((b|0)==1)break Da}b=0;J[695492]=0;f=!J[u+4>>2];g=J[695492];J[695492]=0;kb:{if((g|0)==1)break kb;if(f)break gb;J[695492]=0;b=J[u>>2];lb:{if(K[u+8|0]){f=0;if(!b)break lb;b=J[b>>2]}f=b}b=J[695492];J[695492]=0;if((b|0)==1)break kb;J[695492]=0;b=ga(4834,e|0,f|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break gb}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}J[695492]=0;f=aa(4886,o|0,c|0)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break Ja;J[e+288>>2]=y&1|(i?f?256:512:0);f=J[J[c>>2]+348>>2];J[695492]=0;aa(f|0,c|0,e+288|0)|0;f=J[695492];J[695492]=0;mb:{nb:{if((f|0)!=1){J[e+288>>2]=4;f=J[J[c>>2]+312>>2];J[695492]=0;aa(f|0,c|0,e+288|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break nb;f=J[J[c>>2]+344>>2];J[695492]=0;$(f|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ia;if(!b)break mb;J[695492]=0;_(4843,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break mb;break Ia}b=Z()|0;break e}b=Z()|0;break e}if(l){J[695492]=0;_(4843, -d|0);b=J[695492];J[695492]=0;if((b|0)==1)break Ia}if(a){J[695492]=0;_(4842,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break Ia}if(M){J[695492]=0;wv(d);a=J[695492];J[695492]=0;if((a|0)==1)break Ia}Lc(u);Lc(o);Lc(t);Lc(s);Lc(p);bc=e+576|0;return}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;Lc(f);break e}b=Z()|0}Lc(u)}Lc(o)}Lc(t)}Lc(s)}Lc(p);ba(b|0);B()}function iU(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;c=J[a+8>>2];if(c)a:{if(!c)break a;c=J[a+12>>2];if(!(c&64))break a;if(c&4096){J[a+12>>2]=c&-4097;if(!(gc[J[a+536>>2]](a)|0))break a}if(!gf(a)|!(K[a+12|0]&8))break a;e=bc-784|0;bc=e;c=1;b:{if(!J[a+8>>2])break b;c:{c=J[a+12>>2];if(!(c&4096))break c;J[a+12>>2]=c&-4097;if(gc[J[a+536>>2]](a)|0)break c;Nc(J[a+628>>2],J[a>>2],72146,0);c=0;break b}gc[J[a+564>>2]](a);d:{d=J[a+12>>2];if(!(!(d&64)|J[a+608>>2]<=0)){if(!gf(a))break d;d=J[a+12>>2]}e:{if(!(d&512))break e;c=J[a+596>>2];if(!c)break e; -qc(c);J[a+608>>2]=0;J[a+596>>2]=0;J[a+600>>2]=0;d=J[a+12>>2]}J[a+12>>2]=d&-81;c=J[a+40>>2];c=(c>>>3&2)+((((c&2)+(c<<1&2)|0)+(c>>>1&2)|0)+(c>>>2&2)|0)|0;f=a+40|0;d=5;while(1){c=(J[f+(d>>>3&536870908)>>2]>>>d&(d|0)!=65)+c|0;b=d+1|0;if((b|0)!=128){c=c+(J[f+(b>>>3&536870908)>>2]>>>b&(b|0)!=65)|0;d=d+2|0;continue}break}r=c+J[a+236>>2]|0;s=P(r,12);q=zc(s);if(!q){Nc(J[a+628>>2],J[a>>2],73218,0);c=0;break b}f:{d=J[a+16>>2];if(!d){c=(gc[J[a+640>>2]](J[a+628>>2],0,2)|0)+1&-2;J[a+16>>2]=c;J[e+624>>2]=c;c=J[a+ -12>>2];if(c&128){Yo(e+624|0);c=J[a+12>>2]}g:{h:{if(c&8192){gc[J[a+640>>2]](J[a+628>>2],J[a+496>>2],0)|0;if((gc[J[a+636>>2]](J[a+628>>2],e+624|0,4)|0)!=4){c=J[a+628>>2];J[e+576>>2]=J[a>>2];Nc(c,94016,74514,e+576|0);break f}c=L[a+492>>1]-1|0;I[a+492>>1]=c;if(!(c&65535))break h;J[a+496>>2]=J[a+496>>2]+4;break g}d=J[a+460>>2];if(!d){J[a+460>>2]=J[a+16>>2];gc[J[a+640>>2]](J[a+628>>2],4,0)|0;if((gc[J[a+636>>2]](J[a+628>>2],e+624|0,4)|0)==4)break g;Nc(J[a+628>>2],J[a>>2],74944,0);break f}J[e+704>>2]=d;while(1){c= -70004;i:{j:{if((gc[J[a+640>>2]](J[a+628>>2],d,0)|0)!=J[e+704>>2])break j;b=e+592|0;if((gc[J[a+632>>2]](J[a+628>>2],b,2)|0)!=2)break j;if(K[a+12|0]&128){c=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=c}gc[J[a+640>>2]](J[a+628>>2],P(L[e+592>>1],12),1)|0;if((gc[J[a+632>>2]](J[a+628>>2],e+704|0,4)|0)==4)break i;c=70728}Nc(J[a+628>>2],94016,c,0);break f}if(K[a+12|0]&128)Yo(e+704|0);d=J[e+704>>2];if(d)continue;break}c=gc[J[a+640>>2]](J[a+628>>2],0,1)|0;gc[J[a+640>>2]](J[a+628>>2],c-4|0,0)|0;if((gc[J[a+636>>2]](J[a+ -628>>2],e+624|0,4)|0)==4)break g;Nc(J[a+628>>2],94016,71534,0);break f}J[a+12>>2]=J[a+12>>2]&-8193}d=J[a+16>>2]}c=(((s|2)+d|0)+(d&1)|0)+4|0;J[a+488>>2]=c;gc[J[a+640>>2]](J[a+628>>2],c,0)|0;I[a+476>>1]=L[a+476>>1]+1;Ne(e+592|0,f,16);c=J[e+592>>2];if(!(L[a+168>>1]|(c|0)>=0)){J[e+592>>2]=c&2147483647;r=r-1|0;s=s-12|0}u=J[a+660>>2];if((u|0)>0){w=a+144|0;x=a+140|0;y=a+132|0;z=a+128|0;A=a+216|0;v=e+706|0;c=q;while(1){o=J[J[a+656>>2]+(t<<2)>>2];n=L[o+12>>1];k:{l:{if((n|0)==65){f=J[a+236>>2];if((f|0)<=0)break k; -h=J[a+240>>2];k=0;i=0;d=0;if(f>>>0>=4){b=f&-4;p=0;while(1){i=J[h+P(d,12)>>2]==(o|0)|i|J[h+P(d|1,12)>>2]==(o|0)|J[h+P(d|2,12)>>2]==(o|0)|J[h+P(d|3,12)>>2]==(o|0);d=d+4|0;p=p+4|0;if((b|0)!=(p|0))continue;break}}b=f&3;if(b)while(1){i=J[h+P(d,12)>>2]==(o|0)|i;d=d+1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}if(i)break l;break k}if(!(J[(e+592|0)+(n>>>3&8188)>>2]>>>n&1))break k}m:{n:{o:{p:{q:{r:{s:switch(n-1|0){case 24:b=K[a+13|0]&4?324:273;if((b|0)!=J[o>>2])break k;I[c+2>>1]=4;I[c>>1]=b;b=J[a+180>>2];J[c+ -4>>2]=b;d=J[a+184>>2];if((b|0)!=1)break r;J[c+8>>2]=J[d>>2];break m;case 23:b=K[a+13|0]&4?325:279;if((b|0)!=J[o>>2])break k;I[c+2>>1]=4;I[c>>1]=b;b=J[a+180>>2];J[c+4>>2]=b;d=J[a+188>>2];if((b|0)==1){J[c+8>>2]=J[d>>2];break m}if(Pf(a,c,d))break m;break f;case 16:b=J[a+100>>2];J[c+4>>2]=1;I[c>>1]=278;if(b>>>0>=65536){I[c+2>>1]=4;J[c+8>>2]=b;break m}I[c+2>>1]=3;b=b&J[J[a+468>>2]+12>>2];if(L[a+456>>1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 25:J[c>>2]=196928;J[c+4>>2]=1<>1]; -b=J[a+488>>2];if(!Pf(a,c,J[a+152>>2]))break f;if(!Pf(a,c,J[a+156>>2]))break f;if(!Pf(a,c,J[a+160>>2]))break f;J[c+8>>2]=b;J[c+4>>2]=P(J[c+4>>2],3);break m;case 0:d=J[a+56>>2];J[c+4>>2]=1;I[c>>1]=256;t:{if(d>>>0>=65536){I[c+2>>1]=4;break t}I[c+2>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break t;d=d<>2]+12>>2]}J[c+8>>2]=d;d=J[a+60>>2];J[c+16>>2]=1;I[c+12>>1]=257;u:{if(d>>>0>=65536){I[c+14>>1]=4;break u}I[c+14>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break u;d=d<>2]+12>>2]}J[c+20>>2]=d;c=c+12|0;break m;case 1:d=J[a+68>>2];J[c+4>>2]=1;I[c>>1]=322;v:{if(d>>>0>=65536){I[c+2>>1]=4;break v}I[c+2>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break v;d=d<>2]+12>>2]}J[c+8>>2]=d;d=J[a+72>>2];J[c+16>>2]=1;I[c+12>>1]=323;w:{if(d>>>0>=65536){I[c+14>>1]=4;break w}I[c+14>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break w;d=d<>2]+12>>2]}J[c+20>>2]=d;c=c+12|0;break m;case 6:b=L[a+88>>1];J[c>>2]=196867;J[c+4>>2]=1;b=J[J[a+468>>2]+ -12>>2]&b;if(L[a+456>>1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 7:b=L[a+90>>1];J[c>>2]=196870;J[c+4>>2]=1;b=J[J[a+468>>2]+12>>2]&b;if(L[a+456>>1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 3:J[c>>2]=327966;J[c+4>>2]=1;if(!nq(a,c,x))break f;J[c+12>>2]=327967;J[c+16>>2]=1;c=c+12|0;if(nq(a,c,w))break m;break f;case 2:J[c>>2]=327962;J[c+4>>2]=1;if(!nq(a,c,z))break f;J[c+12>>2]=327963;J[c+16>>2]=1;c=c+12|0;if(nq(a,c,y))break m;break f;case 5:case 17:case 18:case 31:f=J[o>> -2];j=L[a+98>>1];x:{if(j>>>0>=11){d=zc(j<<1);if(d){J[e+496>>2]=e+624;ce(a,f,e+496|0);break x}Nc(J[a+628>>2],J[a>>2],77074,0);break f}J[e+512>>2]=e+624;ce(a,f,e+512|0);d=e+704|0;if(!j)break q}p=0;h=L[e+624>>1];k=0;if(j-1>>>0>=7){b=j&65528;l=0;while(1){n=k<<1;I[n+d>>1]=h;I[(n|2)+d>>1]=h;I[(n|4)+d>>1]=h;I[(n|6)+d>>1]=h;I[(n|8)+d>>1]=h;I[(n|10)+d>>1]=h;I[(n|12)+d>>1]=h;I[(n|14)+d>>1]=h;k=k+8|0;l=l+8|0;if((b|0)!=(l|0))continue;break}}b=j&7;if(b)while(1){I[(k<<1)+d>>1]=h;k=k+1|0;p=p+1|0;if((b|0)!=(p|0))continue; -break}J[c+4>>2]=j;I[c+2>>1]=3;I[c>>1]=f;y:{if(j>>>0<=2){b=L[d>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;h=1;if((j|0)!=2)break y;J[c+8>>2]=b|L[d+2>>1];break y}J[c+8>>2]=b;h=1;if((j|0)!=2)break y;J[c+8>>2]=b|L[d+2>>1]<<16;break y}h=Pf(a,c,d)}if((e+704|0)!=(d|0))qc(d);if(h)break m;break f;case 32:case 33:b=7;d=L[a+84>>1];d=(d>>>3|0)+((d&7)!=0)|0;z:{A:switch(L[a+86>>1]-1|0){case 2:b=(d|0)==4?11:12;break z;case 1:b=d>>>0<2?6:(d|0)==2?8:9;break z;case 0:break A;default:break z}b=d>>>0<=1?1:(d|0)== -2?3:4}n=J[o>>2];j=L[a+98>>1];if(j>>>0>=11){d=zc(j<<3);if(d){J[e+528>>2]=e+616;ce(a,n,e+528|0);break o}Nc(J[a+628>>2],J[a>>2],77529,0);break f}J[e+544>>2]=e+616;ce(a,n,e+544|0);d=e+624|0;if(j)break o;k=1;break n;case 22:case 36:case 38:b=J[o>>2];J[e+564>>2]=v;J[e+560>>2]=e+704;ce(a,b,e+560|0);J[c+4>>2]=2;I[c+2>>1]=3;I[c>>1]=b;b=L[e+704>>1];if(L[a+456>>1]==19789){J[c+8>>2]=L[e+706>>1]|b<<16;break m}J[c+8>>2]=b|L[e+706>>1]<<16;break m;case 45:J[c>>2]=131405;d=J[a+228>>2];J[c+4>>2]=d;f=J[a+232>>2];if(d>>> -0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(Pf(a,c,f))break m;break f;case 43:d=2<>1];B:{C:switch(L[a+98>>1]-L[a+168>>1]|0){default:b=3;if(g6(J[a+216>>2],J[a+224>>2],d))break B; -case 2:b=3;if(g6(J[a+216>>2],J[a+220>>2],d))break B;break;case 0:case 1:break C}b=1}J[c>>2]=196909;J[c+4>>2]=1<>1];f=J[a+488>>2];d=0;while(1){if(!Pf(a,c,J[(d<<2)+A>>2]))break f;d=d+1|0;if((b|0)!=(d|0))continue;break}J[c+8>>2]=f;J[c+4>>2]=P(b,J[c+4>>2]);break m;case 48:b=J[o>>2];I[c+2>>1]=4;I[c>>1]=b;d=L[a+196>>1];J[c+4>>2]=d;b=J[a+200>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];I[a+492>>1]=d;J[a+12>>2]=J[a+12>>2]|8192;break p}if(!Pf(a,c,b))break f;b=J[c+4>>2];if(!b)break m;I[a+492>>1]=b;J[a+12>>2]= -J[a+12>>2]|8192;if((b|0)==1)break p;J[a+496>>2]=J[c+8>>2];break m;default:break s}f=J[o>>2];if((f|0)==336){J[e+4>>2]=v;J[e>>2]=e+704;ce(a,336,e);J[c>>2]=196944;J[c+4>>2]=2;b=L[e+704>>1];if(L[a+456>>1]==19789){J[c+8>>2]=L[e+706>>1]|b<<16;break m}J[c+8>>2]=b|L[e+706>>1]<<16;break m}d=L[o+6>>1];I[e+616>>1]=d;I[c>>1]=f;b=J[o+8>>2];J[c+4>>2]=d;I[c+2>>1]=b;D:{E:switch(b-1|0){case 2:case 7:if(K[o+15|0]){F:{if((d|0)==65533){J[e+52>>2]=e+704;J[e+48>>2]=e+624;ce(a,f,e+48|0);b=J[e+624>>2];break F}J[e+68>>2]= -e+704;J[e+64>>2]=e+616;ce(a,f,e- -64|0);b=L[e+616>>1]}J[c+4>>2]=b;f=J[e+704>>2];if(b>>>0>2)break D;d=L[f>>1];if(L[a+456>>1]==19789){d=d<<16;J[c+8>>2]=d;if((b|0)!=2)break m;J[c+8>>2]=d|L[f+2>>1];break m}J[c+8>>2]=d;if((b|0)!=2)break m;J[c+8>>2]=d|L[f+2>>1]<<16;break m}if((d|0)==1){J[e+16>>2]=e+704;ce(a,f,e+16|0);d=L[c+2>>1]<<2;b=J[d+J[a+468>>2]>>2]&L[e+704>>1];if(L[a+456>>1]==19789)b=b<>2]>>2];J[c+8>>2]=b;break m}J[e+32>>2]=e+704;ce(a,f,e+32|0);f=J[e+704>>2];d=J[c+4>>2];if(d>>>0<=2){b= -L[f>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;if((d|0)!=2)break m;J[c+8>>2]=b|L[f+2>>1];break m}J[c+8>>2]=b;if((d|0)!=2)break m;J[c+8>>2]=b|L[f+2>>1]<<16;break m}if(Pf(a,c,f))break m;break f;case 3:case 8:case 12:if(K[o+15|0]){G:{if((d|0)==65533){J[e+116>>2]=e+704;J[e+112>>2]=e+624;ce(a,f,e+112|0);d=J[e+624>>2];break G}J[e+132>>2]=e+704;J[e+128>>2]=e+616;ce(a,f,e+128|0);d=L[e+616>>1]}J[c+4>>2]=d;b=J[e+704>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];break m}if(Pf(a,c,b))break m;break f}if((d|0)==1){J[e+ -80>>2]=c+8;ce(a,f,e+80|0);break m}J[e+96>>2]=e+704;ce(a,f,e+96|0);b=J[e+704>>2];if(J[c+4>>2]==1){J[c+8>>2]=J[b>>2];break m}if(Pf(a,c,b))break m;break f;case 4:case 9:if(K[o+15|0]){H:{if((d|0)==65533){J[e+180>>2]=e+704;J[e+176>>2]=e+624;ce(a,f,e+176|0);b=J[e+624>>2];break H}J[e+196>>2]=e+704;J[e+192>>2]=e+616;ce(a,f,e+192|0);b=L[e+616>>1]}J[c+4>>2]=b;if(nq(a,c,J[e+704>>2]))break m;break f}if((d|0)==1){b=e+704|0;J[e+144>>2]=b;ce(a,f,e+144|0);if(nq(a,c,b))break m;break f}J[e+160>>2]=e+704;ce(a,f,e+160| -0);if(nq(a,c,J[e+704>>2]))break m;break f;case 10:if(K[o+15|0]){I:{if((d|0)==65533){J[e+244>>2]=e+704;J[e+240>>2]=e+624;ce(a,f,e+240|0);d=J[e+624>>2];break I}J[e+260>>2]=e+704;J[e+256>>2]=e+616;ce(a,f,e+256|0);d=L[e+616>>1]}J[c+4>>2]=d;b=J[e+704>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];break m}if(Pf(a,c,b))break m;break f}if((d|0)==1){J[e+208>>2]=e+704;ce(a,f,e+208|0);if(J[c+4>>2]==1){J[c+8>>2]=J[e+704>>2];break m}if(Pf(a,c,e+704|0))break m;break f}J[e+224>>2]=e+704;ce(a,f,e+224|0);b=J[e+704>>2];if(J[c+ -4>>2]==1){J[c+8>>2]=J[b>>2];break m}if(Pf(a,c,b))break m;break f;case 11:if(K[o+15|0]){J:{if((d|0)==65533){J[e+308>>2]=e+704;J[e+304>>2]=e+624;ce(a,f,e+304|0);b=J[e+624>>2];break J}J[e+324>>2]=e+704;J[e+320>>2]=e+616;ce(a,f,e+320|0);b=L[e+616>>1]}J[c+4>>2]=b;if(Pf(a,c,J[e+704>>2]))break m;break f}if((d|0)==1){b=e+704|0;J[e+272>>2]=b;ce(a,f,e+272|0);if(Pf(a,c,b))break m;break f}J[e+288>>2]=e+704;ce(a,f,e+288|0);if(Pf(a,c,J[e+704>>2]))break m;break f;case 1:K:{if(K[o+15|0]){if((d|0)==65533){J[e+356>> -2]=e+704;J[e+352>>2]=e+624;ce(a,f,e+352|0);break K}J[e+372>>2]=e+704;J[e+368>>2]=e+616;ce(a,f,e+368|0);break K}J[e+336>>2]=e+704;ce(a,f,e+336|0)}f=J[e+704>>2];d=Qc(f)+1|0;J[c+4>>2]=d;if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b; -if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(Pf(a,c,f))break m;break f;case 0:case 5:if(K[o+15|0]){L:{if((d|0)==65533){J[e+420>>2]=e+704;J[e+416>>2]=e+624;ce(a,f,e+416|0);b=J[e+624>>2];break L}J[e+436>>2]=e+704;J[e+432>>2]=e+616;ce(a,f,e+432|0);b=L[e+616>>1]}J[c+4>>2]=b;f=J[e+704>>2];if(b>>>0<=4){d=H[f|0];if(L[a+456>>1]==19789){d=d<<24;J[c+8>>2]=d;if(b>>>0<2)break m;d=d|H[f+1|0]<<16;J[c+8>>2]=d;if((b|0)==2)break m;d=d|H[f+2|0]<<8;J[c+8>>2]=d;if((b|0)!=4)break m;J[c+8>>2]=d|H[f+3|0];break m}J[c+ -8>>2]=d;if(b>>>0<2)break m;d=d|H[f+1|0]<<8;J[c+8>>2]=d;if((b|0)==2)break m;d=d|H[f+2|0]<<16;J[c+8>>2]=d;if((b|0)!=4)break m;J[c+8>>2]=d|K[f+3|0]<<24;break m}if(Pf(a,c,f))break m;break f}if((d|0)==1){J[e+384>>2]=e+704;ce(a,f,e+384|0);d=J[c+4>>2];if(d>>>0<=4){b=H[e+704|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[e+705|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[e+706|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[e+707|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[e+ -705|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[e+706|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[e+707|0]<<24;break m}if(Pf(a,c,e+704|0))break m;break f}J[e+400>>2]=e+704;ce(a,f,e+400|0);f=J[e+704>>2];d=J[c+4>>2];if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)== -2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(Pf(a,c,f))break m;break f;case 6:break E;default:break m}M:{N:switch(d-65533|0){case 2:J[e+468>>2]=e+704;J[e+464>>2]=e+616;ce(a,f,e+464|0);d=L[e+616>>1];J[c+4>>2]=d;break M;case 0:J[e+484>>2]=e+704;J[e+480>>2]=e+624;ce(a,f,e+480|0);d=J[e+624>>2];J[c+4>>2]=d;break M;default:break N}J[e+448>>2]=e+704;ce(a,f,e+448|0);d=J[c+4>>2]}f=J[e+704>>2];if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b; -if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(Pf(a,c,f))break m;break f}if(!Pf(a,c,f))break f;break m}if(Pf(a,c,d))break m;break f}J[c+4>>2]=j;I[c+2>>1]=3;I[c>>1]=f;b=L[e+704>>1];J[c+8>>2]=L[a+456>>1]==19789?b<<16:b;break m}J[a+496>>2]=(J[a+ -16>>2]+(c-q|0)|0)+10;break m}k=0;g=O[e+616>>3];i=0;if(j-1>>>0>=7){f=j&65528;p=0;while(1){h=i<<3;O[h+d>>3]=g;O[(h|8)+d>>3]=g;O[(h|16)+d>>3]=g;O[(h|24)+d>>3]=g;O[(h|32)+d>>3]=g;O[(h|40)+d>>3]=g;O[(h|48)+d>>3]=g;O[(h|56)+d>>3]=g;i=i+8|0;p=p+8|0;if((f|0)!=(p|0))continue;break}}f=j&7;if(!f)break n;while(1){O[(i<<3)+d>>3]=g;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}k=0}h=e+704|0;O:{P:{if(P(b>>>0<=13?J[(b<<2)+91532>>2]:0,j)>>>0<81)break P;h=zc(P(b>>>0<=13?J[(b<<2)+91532>>2]:0,j));if(h)break P;p=0;Nc(J[a+ -628>>2],J[a>>2],78167,0);break O}J[c+4>>2]=j;I[c+2>>1]=b;I[c>>1]=n;p=0;Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:switch(b-1|0){case 10:if(k)break Y;k=0;i=0;if(j-1>>>0>=3){f=j&65532;l=0;while(1){N[(i<<2)+h>>2]=O[(i<<3)+d>>3];b=i|1;N[(b<<2)+h>>2]=O[(b<<3)+d>>3];b=i|2;N[(b<<2)+h>>2]=O[(b<<3)+d>>3];b=i|3;N[(b<<2)+h>>2]=O[(b<<3)+d>>3];i=i+4|0;l=l+4|0;if((f|0)!=(l|0))continue;break}}b=j&3;if(b)while(1){N[(i<<2)+h>>2]=O[(i<<3)+d>>3];i=i+1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}if((j|0)!=1)break Y;J[c+8>>2]=J[h>>2]; -break R;case 3:break S;case 7:break T;case 2:break U;case 5:break V;case 0:break W;case 11:break X;case 8:break Z;default:break Q}_:{if(k)break _;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<2)+h|0;g=O[(i<<3)+d>>3];$:{if(R(g)<2147483648){b=~~g;break $}b=-2147483648}J[f>>2]=b;f=i|1;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];aa:{if(R(g)<2147483648){b=~~g;break aa}b=-2147483648}J[m>>2]=b;f=i|2;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];ba:{if(R(g)<2147483648){b=~~g;break ba}b=-2147483648}J[m>>2]=b;f=i|3;m=(f<<2)+h|0;g= -O[(f<<3)+d>>3];ca:{if(R(g)<2147483648){b=~~g;break ca}b=-2147483648}J[m>>2]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=(i<<2)+h|0;g=O[(i<<3)+d>>3];da:{if(R(g)<2147483648){b=~~g;break da}b=-2147483648}J[j>>2]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}if(J[c+4>>2]!=1)break _;J[c+8>>2]=J[h>>2];break R}if(Pf(a,c,h))break R;break Q}if(Pf(a,c,h))break R;break Q}if(!Pf(a,c,d))break Q;break R}if(!k){k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=h+i|0;g=O[(i<<3)+d>>3]; -ea:{if(g<4294967296&g>=0){b=~~g>>>0;break ea}b=0}H[f|0]=b;f=i|1;m=f+h|0;g=O[(f<<3)+d>>3];fa:{if(g<4294967296&g>=0){b=~~g>>>0;break fa}b=0}H[m|0]=b;f=i|2;m=f+h|0;g=O[(f<<3)+d>>3];ga:{if(g<4294967296&g>=0){b=~~g>>>0;break ga}b=0}H[m|0]=b;f=i|3;m=f+h|0;g=O[(f<<3)+d>>3];ha:{if(g<4294967296&g>=0){b=~~g>>>0;break ha}b=0}H[m|0]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=h+i|0;g=O[(i<<3)+d>>3];ia:{if(g<4294967296&g>=0){b=~~g>>>0;break ia}b=0}H[j|0]=b;i=i+1|0;k=k+1|0;if((f|0)!= -(k|0))continue;break}j=J[c+4>>2]}if(j>>>0<=4){b=H[h|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<16;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<8;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|H[h+3|0];break R}J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<8;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<16;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|K[h+3|0]<<24;break R}if(Pf(a,c,h))break R;break Q}if(!k){k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=h+i|0;g=O[(i<< -3)+d>>3];ja:{if(R(g)<2147483648){b=~~g;break ja}b=-2147483648}H[f|0]=b;f=i|1;m=f+h|0;g=O[(f<<3)+d>>3];ka:{if(R(g)<2147483648){b=~~g;break ka}b=-2147483648}H[m|0]=b;f=i|2;m=f+h|0;g=O[(f<<3)+d>>3];la:{if(R(g)<2147483648){b=~~g;break la}b=-2147483648}H[m|0]=b;f=i|3;m=f+h|0;g=O[(f<<3)+d>>3];ma:{if(R(g)<2147483648){b=~~g;break ma}b=-2147483648}H[m|0]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=h+i|0;g=O[(i<<3)+d>>3];na:{if(R(g)<2147483648){b=~~g;break na}b=-2147483648}H[j|0]= -b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}j=J[c+4>>2]}if(j>>>0<=4){b=H[h|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<16;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<8;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|H[h+3|0];break R}J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<8;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<16;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|K[h+3|0]<<24;break R}if(Pf(a,c,h))break R;break Q}oa:{if(k)break oa;k=0;i=0;if(j-1>>>0>=3){n= -j&65532;l=0;while(1){f=(i<<1)+h|0;g=O[(i<<3)+d>>3];pa:{if(g<4294967296&g>=0){b=~~g>>>0;break pa}b=0}I[f>>1]=b;f=i|1;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];qa:{if(g<4294967296&g>=0){b=~~g>>>0;break qa}b=0}I[m>>1]=b;f=i|2;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];ra:{if(g<4294967296&g>=0){b=~~g>>>0;break ra}b=0}I[m>>1]=b;f=i|3;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];sa:{if(g<4294967296&g>=0){b=~~g>>>0;break sa}b=0}I[m>>1]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(!f)break oa;while(1){l=(i<<1)+h|0;g=O[(i<<3)+d>>3]; -ta:{if(g<4294967296&g>=0){b=~~g>>>0;break ta}b=0}I[l>>1]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}if(j>>>0<=2){b=L[h>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1];break R}J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1]<<16;break R}if(Pf(a,c,h))break R;break Q}ua:{if(k)break ua;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<1)+h|0;g=O[(i<<3)+d>>3];va:{if(R(g)<2147483648){b=~~g;break va}b=-2147483648}I[f>>1]=b;f=i|1;m=(f<<1)+h|0;g=O[(f<< -3)+d>>3];wa:{if(R(g)<2147483648){b=~~g;break wa}b=-2147483648}I[m>>1]=b;f=i|2;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];xa:{if(R(g)<2147483648){b=~~g;break xa}b=-2147483648}I[m>>1]=b;f=i|3;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];ya:{if(R(g)<2147483648){b=~~g;break ya}b=-2147483648}I[m>>1]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(!f)break ua;while(1){l=(i<<1)+h|0;g=O[(i<<3)+d>>3];za:{if(R(g)<2147483648){b=~~g;break za}b=-2147483648}I[l>>1]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}if(j>>>0<=2){b= -L[h>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1];break R}J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1]<<16;break R}if(Pf(a,c,h))break R;break Q}Aa:{if(k)break Aa;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<2)+h|0;g=O[(i<<3)+d>>3];Ba:{if(g<4294967296&g>=0){b=~~g>>>0;break Ba}b=0}J[f>>2]=b;f=i|1;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Ca:{if(g<4294967296&g>=0){b=~~g>>>0;break Ca}b=0}J[m>>2]=b;f=i|2;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Da:{if(g<4294967296&g>= -0){b=~~g>>>0;break Da}b=0}J[m>>2]=b;f=i|3;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Ea:{if(g<4294967296&g>=0){b=~~g>>>0;break Ea}b=0}J[m>>2]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=(i<<2)+h|0;g=O[(i<<3)+d>>3];Fa:{if(g<4294967296&g>=0){b=~~g>>>0;break Fa}b=0}J[j>>2]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}if(J[c+4>>2]!=1)break Aa;J[c+8>>2]=J[h>>2];break R}if(!Pf(a,c,h))break Q}p=1}if((e+704|0)==(h|0))break O;qc(h)}if((e+624|0)!=(d|0))qc(d);if(!p)break f}c=c+12|0;f=L[o+ -12>>1];if((f|0)==65)break k;d=(e+592|0)+(f>>>3&8188)|0;b=J[d>>2];B=d,C=Hzb(-2,f)&b,J[B>>2]=C}t=t+1|0;if((u|0)!=(t|0))continue;break}}I[e+624>>1]=r;J[e+704>>2]=J[a+20>>2];if(K[a+12|0]&128){if(r&65535){d=q;while(1){qs(d,2);Xo(d+4|0,2);d=d+12|0;c=L[e+624>>1]-1|0;I[e+624>>1]=c;if(c&65535)continue;break}}I[e+624>>1]=r;c=K[e+625|0];H[e+625|0]=K[e+624|0];H[e+624|0]=c;Yo(e+704|0)}gc[J[a+640>>2]](J[a+628>>2],J[a+16>>2],0)|0;if((gc[J[a+636>>2]](J[a+628>>2],e+624|0,2)|0)!=2){Nc(J[a+628>>2],J[a>>2],73423,0); -break f}if((gc[J[a+636>>2]](J[a+628>>2],q,s)|0)!=(s|0)){Nc(J[a+628>>2],J[a>>2],74073,0);break f}if((gc[J[a+636>>2]](J[a+628>>2],e+704|0,4)|0)!=4){Nc(J[a+628>>2],J[a>>2],71534,0);break f}tG(a);J[a+12>>2]=J[a+12>>2]&-9;gc[J[a+572>>2]](a);Mz(a);J[a+16>>2]=0;J[a+20>>2]=0;J[a+480>>2]=-1;J[a+484>>2]=0;J[a+472>>2]=-1;qc(q);c=1;break b}qc(q);c=0;break b}Nc(J[a+628>>2],J[a>>2],72552,0);c=0}bc=e+784|0;if(!c)break a}gc[J[a+572>>2]](a);tG(a);c=J[a+24>>2];if(c)qc(c);while(1){c=J[a+680>>2];if(c){J[a+680>>2]=J[c>> -2];qc(J[c+8>>2]);qc(c);continue}break}c=J[a+596>>2];if(!(!c|!(K[a+13|0]&2)))qc(c);if(K[a+13|0]&8)gc[J[a+624>>2]](J[a+628>>2],J[a+612>>2],J[a+616>>2]);c=J[a+660>>2];if(c){b=0;while(1){d=J[J[a+656>>2]+(b<<2)>>2];Ga:{if(L[d+12>>1]!=65)break Ga;q=J[d+16>>2];if(kd(69907,q,4))break Ga;qc(q);qc(d);c=J[a+660>>2]}b=b+1|0;if(b>>>0>>0)continue;break}qc(J[a+656>>2])}qc(a)}function DKa(a){a=a|0;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,G=0,H=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0;c=J[a+4>>2];gc[J[J[c>>2]+20>>2]](c);J[a+3460>>2]=0;J[a+3464>>2]=0;J[a+720>>2]=0;J[a+188>>2]=0;J[a+204>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;if(!NH(a,1)){J[a+8>>2]=1;J[a+3504>>2]=J[a+20>>2];return}o=J[a+188>>2];a:{if((o|0)==1){J[a+44>>2]=1;J[a+48>>2]=1;c=1;q=1;break a}c=J[a+48>>2];q=J[a+44>>2];if((o|0)<2)break a;j=1;d=o-1|0;u=d&1;if((o|0)!=2){C=d&-2;while(1){p=P(j,20)+a|0;l=J[p+68>>2];d=J[p+48>>2];c=(c| -0)<(d|0)?d:c;c=(c|0)<(l|0)?l:c;l=J[p- -64>>2];d=J[p+44>>2];d=(d|0)>(q|0)?d:q;q=(d|0)<(l|0)?l:d;j=j+2|0;b=b+2|0;if((C|0)!=(b|0))continue;break}}if(!u)break a;d=P(j,20)+a|0;b=J[d+48>>2];c=(b|0)>(c|0)?b:c;b=J[d+44>>2];q=(b|0)>(q|0)?b:q}d=c<<3;J[a+28>>2]=d;c=q<<3;J[a+24>>2]=c;if(J[a+192>>2]==-1){b=0;b:{if((o|0)!=3)break b;b=1;if(J[a+196>>2])break b;b=J[a+40>>2]!=82|J[a+60>>2]!=71|J[a+80>>2]!=66}J[a+192>>2]=b}c:{if(J[a+12>>2]?J[a+8>>2]:1){b=(c+J[a+16>>2]|0)-1|0;c=b-((b|0)%(c|0)|0)|0;J[a+32>>2]=c;b=(d+ -J[a+20>>2]|0)-1|0;b=b-((b|0)%(d|0)|0)|0;J[a+36>>2]=b;if((c|0)<=0|(b|0)<=0|c>>>0>2147483647/(c>>>0)>>>2>>>0)break c;j=0;if((o|0)>0)while(1){b=vd(P(J[a+36>>2],J[a+32>>2]),4);J[((j<<2)+a|0)+3480>>2]=b;wc(b,0,P(J[a+32>>2],J[a+36>>2])<<2);j=j+1|0;if((j|0)>2])continue;break}while(1){J[a+3524>>2]=0;J[a+3512>>2]=208;J[a+3508>>2]=J[a+204>>2];d=J[a+188>>2];d:{if((d|0)<=0)break d;j=0;if(d>>>0>=8){b=d&-8;q=0;while(1){c=a+40|0;J[(c+P(j,20)|0)+16>>2]=0;J[(c+P(j|1,20)|0)+16>>2]=0;J[(c+P(j|2,20)|0)+16>> -2]=0;J[(c+P(j|3,20)|0)+16>>2]=0;J[(c+P(j|4,20)|0)+16>>2]=0;J[(c+P(j|5,20)|0)+16>>2]=0;J[(c+P(j|6,20)|0)+16>>2]=0;J[(c+P(j|7,20)|0)+16>>2]=0;j=j+8|0;q=q+8|0;if((b|0)!=(q|0))continue;break}}c=0;b=d&7;if(!b)break d;while(1){J[(P(j,20)+a|0)+56>>2]=0;j=j+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}J[a+3516>>2]=0;c=0;y=0;f=bc-256|0;bc=f;B=a+120|0;e:{f:{g:{h:{i:{j:{k:{l:{b=J[a+188>>2];if((b|0)>0){u=J[a+720>>2];C=J[a+3460>>2];if(!(!J[a+8>>2]|J[a+176>>2]>0))break l;l=J[a+3464>>2];while(1){d=c<<2;if(J[d+B>> -2]){d=a+d|0;g=815044;if((C|0)<=J[d+140>>2]|(l|0)<=J[d+156>>2])break f}if((u|0)>2])break g;c=c+1|0;if((b|0)!=(c|0))continue;break}break k}if(J[a+136>>2]==1)break j;break i}while(1){d=c<<2;if(!((C|0)<=J[(a+d|0)+140>>2]?J[d+B>>2]:0)){if((u|0)>2])break g;c=c+1|0;if((b|0)!=(c|0))continue;break k}break}g=815044;break f}B=a+120|0;if(J[a+136>>2]!=1)break i;c=0;if((b|0)<=0)break j;while(1){if(J[(c<<2)+B>>2])break j;c=c+1|0;if((b|0)!=(c|0))continue;break}c=b}c=P(c,20)+ -a|0;D=J[a+28>>2]/J[c+48>>2]|0;d=J[a+24>>2]/J[c+44>>2]|0;break h}D=J[a+28>>2];d=J[a+24>>2]}g=J[a+20>>2];if((g|0)<=0)break e;c=J[a+16>>2];if((c|0)<=0)break e;u=d;k=a+40|0;while(1){if((c|0)>0){p=J[a+3508>>2];j=0;while(1){if(!(p|J[a+204>>2]<=0)){while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=255&(b|0)!=-1)continue;while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}if(!b)continue;break}g=815667;if((b|0)!=J[a+3512>>2])break f;J[a+3524>>2]=0;p=J[a+204>>2];J[a+3508>> -2]=p;b=b+1|0;J[a+3512>>2]=(b|0)==216?208:b;b=J[a+188>>2];m:{if((b|0)<=0)break m;g=0;c=0;if(b>>>0>=8){d=b&-8;t=0;while(1){J[(k+P(c,20)|0)+16>>2]=0;J[(k+P(c|1,20)|0)+16>>2]=0;J[(k+P(c|2,20)|0)+16>>2]=0;J[(k+P(c|3,20)|0)+16>>2]=0;J[(k+P(c|4,20)|0)+16>>2]=0;J[(k+P(c|5,20)|0)+16>>2]=0;J[(k+P(c|6,20)|0)+16>>2]=0;J[(k+P(c|7,20)|0)+16>>2]=0;c=c+8|0;t=t+8|0;if((d|0)!=(t|0))continue;break}}d=b&7;if(!d)break m;while(1){J[(P(c,20)+a|0)+56>>2]=0;c=c+1|0;g=g+1|0;if((d|0)!=(g|0))continue;break}}J[a+3516>>2]=0}v= -0;g=a;if((b|0)>0){while(1){c=v<<2;if(!(!J[c+B>>2]|(D|0)<=0|(u|0)<=0)){b=P(v,20)+a|0;R=J[a+24>>2]/J[b+44>>2]|0;E=J[a+28>>2]/J[b+48>>2]|0;w=(E|0)/8|0;F=b+56|0;G=a+c|0;L=G+3480|0;p=0;while(1){M=p+y|0;t=0;while(1){N=j+t<<2;b=J[a+32>>2];c=N+(J[L>>2]+(P(b,M)<<2)|0)|0;J[f>>2]=J[c>>2];J[f+4>>2]=J[c+4>>2];J[f+8>>2]=J[c+8>>2];J[f+12>>2]=J[c+12>>2];J[f+16>>2]=J[c+16>>2];J[f+20>>2]=J[c+20>>2];J[f+24>>2]=J[c+24>>2];J[f+28>>2]=J[c+28>>2];b=P(b,w)<<2;c=b+c|0;J[f+32>>2]=J[c>>2];J[f+36>>2]=J[c+4>>2];J[f+40>>2]=J[c+ -8>>2];J[f+44>>2]=J[c+12>>2];J[f+48>>2]=J[c+16>>2];J[f+52>>2]=J[c+20>>2];J[f+56>>2]=J[c+24>>2];J[f+60>>2]=J[c+28>>2];c=b+c|0;J[f+64>>2]=J[c>>2];J[f+68>>2]=J[c+4>>2];J[f+72>>2]=J[c+8>>2];J[f+76>>2]=J[c+12>>2];J[f+80>>2]=J[c+16>>2];J[f+84>>2]=J[c+20>>2];J[f+88>>2]=J[c+24>>2];J[f+92>>2]=J[c+28>>2];c=b+c|0;J[f+96>>2]=J[c>>2];J[f+100>>2]=J[c+4>>2];J[f+104>>2]=J[c+8>>2];J[f+108>>2]=J[c+12>>2];J[f+112>>2]=J[c+16>>2];J[f+116>>2]=J[c+20>>2];J[f+120>>2]=J[c+24>>2];J[f+124>>2]=J[c+28>>2];c=b+c|0;J[f+128>>2]= -J[c>>2];J[f+132>>2]=J[c+4>>2];J[f+136>>2]=J[c+8>>2];J[f+140>>2]=J[c+12>>2];J[f+144>>2]=J[c+16>>2];J[f+148>>2]=J[c+20>>2];J[f+152>>2]=J[c+24>>2];J[f+156>>2]=J[c+28>>2];c=b+c|0;J[f+160>>2]=J[c>>2];J[f+164>>2]=J[c+4>>2];J[f+168>>2]=J[c+8>>2];J[f+172>>2]=J[c+12>>2];J[f+176>>2]=J[c+16>>2];J[f+180>>2]=J[c+20>>2];J[f+184>>2]=J[c+24>>2];J[f+188>>2]=J[c+28>>2];c=b+c|0;J[f+192>>2]=J[c>>2];J[f+196>>2]=J[c+4>>2];J[f+200>>2]=J[c+8>>2];J[f+204>>2]=J[c+12>>2];J[f+208>>2]=J[c+16>>2];J[f+212>>2]=J[c+20>>2];J[f+216>> -2]=J[c+24>>2];J[f+220>>2]=J[c+28>>2];b=b+c|0;J[f+224>>2]=J[b>>2];J[f+228>>2]=J[b+4>>2];J[f+232>>2]=J[b+8>>2];J[f+236>>2]=J[b+12>>2];J[f+240>>2]=J[b+16>>2];J[f+244>>2]=J[b+20>>2];J[f+248>>2]=J[b+24>>2];J[f+252>>2]=J[b+28>>2];l=(P(J[G+156>>2],342)+a|0)+2092|0;b=(P(J[G+140>>2],342)+a|0)+724|0;n:{if(J[a+8>>2]){h=0;m=0;o:{p:{q:{c=J[a+172>>2];r:{if(c)break r;s:{if(!J[a+180>>2]){r=LH(a,b);if(r){b=0;if((r|0)==9999)break o;c=J[a+3524>>2];while(1){t:{if(c){b=J[a+3520>>2];c=c-1|0;break t}u:{b=J[a+4>>2];b=gc[J[J[b>> -2]+28>>2]](b)|0;if((b|0)!=255){if((b|0)!=-1)break u;break p}while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break u;break q}J[a+3520>>2]=b;c=7}J[a+3524>>2]=c;h=b>>>c&1|h<<1;m=m+1|0;if((r|0)!=(m|0))continue;break}b=0;r=(1<(h|0)?(-1<>2]+r|0;J[F>>2]=c;break s}b=J[a+3524>>2];v:{if(b){n=J[a+3520>>2];b=b-1|0;break v}b=J[a+4>>2];n=gc[J[J[b>>2]+28>>2]](b)|0;if((n|0)==-1){c=1;break s}w:{if((n|0)!=255)break w;while(1){b=J[a+ -4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}if(!b)break w;c=1;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,816157,0);break s}J[a+3520>>2]=n;b=7}J[a+3524>>2]=b;c=1;if(!(n>>>b&1))break r}J[f>>2]=J[f>>2]+(c<>2]);c=1}b=1;o=J[a+176>>2];if(!o)break o;x:{d=J[a+3516>>2];if((d|0)>0)break x;if((c|0)>(o|0))break o;while(1){y:{z:{b=LH(a,l);if((b|0)!=240){if((b|0)!=9999)break z;break p}h=0;b=c;n=J[a+176>>2];if((b|0)>(n|0))break y;while(1){o=f+(J[(b<<2)+2332064>>2]<<2)|0;A:{if(!J[o>>2]){h=h+1|0;break A}c= -J[a+3524>>2];B:{if(c){m=J[a+3520>>2];c=c-1|0;break B}C:{c=J[a+4>>2];m=gc[J[J[c>>2]+28>>2]](c)|0;if((m|0)!=255){if((m|0)!=-1)break C;break p}while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break C;break q}J[a+3520>>2]=m;c=7}J[a+3524>>2]=c;if(!(m>>>c&1))break A;d=J[a+184>>2];c=J[o>>2];if((c|0)>=0){J[o>>2]=c+(1<>2]=c+(-1<>2];if((h|0)>15)break y;d=(b|0)>=(n|0);b=c;if(!d)continue;break}break y}o=b>>>4|0;d=b&15;if(!d){h=0;J[a+3516>> -2]=0;if(b>>>0>=16){d=o>>>0<=1?1:o;b=J[a+3524>>2];i=0;while(1){D:{if(b){m=J[a+3520>>2];b=b-1|0;break D}E:{b=J[a+4>>2];m=gc[J[J[b>>2]+28>>2]](b)|0;if((m|0)!=255){if((m|0)!=-1)break E;break p}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}if(!b)break E;break q}J[a+3520>>2]=m;h=J[a+3516>>2];b=7}J[a+3524>>2]=b;h=m>>>b&1|h<<1;J[a+3516>>2]=h;i=i+1|0;if((d|0)!=(i|0))continue;break}}d=(1<>2]=d;b=a;if(J[b+176>>2]>=(c|0)){while(1){d=c;l=f+(J[(c<<2)+2332064>>2]<< -2)|0;F:{if(!J[l>>2])break F;c=J[a+3524>>2];G:{if(c){h=J[a+3520>>2];c=c-1|0;break G}H:{c=J[a+4>>2];h=gc[J[J[c>>2]+28>>2]](c)|0;if((h|0)!=255){if((h|0)!=-1)break H;break p}while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break H;break q}J[a+3520>>2]=h;c=7}J[a+3524>>2]=c;if(!(h>>>c&1))break F;c=J[l>>2];J[l>>2]=((c>>31|1)<>2])+c}c=d+1|0;if((d|0)>2])continue;break}d=J[a+3516>>2]}J[b+3516>>2]=d-1;b=1;break o}q=o&15;b=J[a+3524>>2];m=0;h=0;while(1){I:{if(b){n= -J[a+3520>>2];b=b-1|0;break I}J:{b=J[a+4>>2];n=gc[J[J[b>>2]+28>>2]](b)|0;if((n|0)!=255){if((n|0)!=-1)break J;break p}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}if(!b)break J;break q}J[a+3520>>2]=n;b=7}J[a+3524>>2]=b;h=n>>>b&1|h<<1;m=m+1|0;if((d|0)!=(m|0))continue;break}b=0;o=(1<(h|0)?-1<>2];K:{if((n|0)<(c|0))break K;while(1){b=c+1|0;r=J[(c<<2)+2332064>>2];h=f+(r<<2)|0;L:{if(!J[h>>2]){c=b;break L}d=(c|0)>=(n| -0);c=b;if(d)break L;while(1){c=J[a+3524>>2];M:{if(c){n=J[a+3520>>2];c=c-1|0;break M}N:{c=J[a+4>>2];n=gc[J[J[c>>2]+28>>2]](c)|0;if((n|0)!=255){if((n|0)!=-1)break N;break p}while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break N;break q}J[a+3520>>2]=n;c=7}J[a+3524>>2]=c;if(n>>>c&1){c=J[h>>2];J[h>>2]=((c>>31|1)<>2])+c}c=b+1|0;n=J[a+176>>2];r=J[(b<<2)+2332064>>2];h=f+(r<<2)|0;if(!J[h>>2])break L;d=(b|0)<(n|0);b=c;if(d)continue;break}}if(m>>>0>=q>>>0)break K; -m=m+1|0;if((c|0)<=(n|0))continue;break}}J[f+(r<<2)>>2]=o<>2];n=J[a+176>>2]}b=1;if((c|0)<=(n|0))continue;break}break o}b=a;if((c|0)<=(o|0)){while(1){d=c;l=f+(J[(c<<2)+2332064>>2]<<2)|0;O:{if(!J[l>>2])break O;c=J[a+3524>>2];P:{if(c){h=J[a+3520>>2];c=c-1|0;break P}Q:{c=J[a+4>>2];h=gc[J[J[c>>2]+28>>2]](c)|0;if((h|0)!=255){if((h|0)!=-1)break Q;break p}while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break Q;break q}J[a+3520>>2]=h;c=7}J[a+3524>>2]=c;if(!(h>>> -c&1))break O;c=J[l>>2];J[l>>2]=((c>>31|1)<>2])+c}c=d+1|0;if((d|0)>2])continue;break}d=J[a+3516>>2]}J[b+3516>>2]=d-1;b=1;break o}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,816157,0)}b=0}if(b)break n;break e}if(!pY(a,b,l,F,f))break e}b=N+(J[L>>2]+(P(M,J[a+32>>2])<<2)|0)|0;J[b>>2]=J[f>>2];J[b+4>>2]=J[f+4>>2];J[b+8>>2]=J[f+8>>2];J[b+12>>2]=J[f+12>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=J[f+20>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=J[f+28>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+32>>2];J[b+4>>2]=J[f+ -36>>2];J[b+8>>2]=J[f+40>>2];J[b+12>>2]=J[f+44>>2];J[b+16>>2]=J[f+48>>2];J[b+20>>2]=J[f+52>>2];J[b+24>>2]=J[f+56>>2];J[b+28>>2]=J[f+60>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+64>>2];J[b+4>>2]=J[f+68>>2];J[b+8>>2]=J[f+72>>2];J[b+12>>2]=J[f+76>>2];J[b+16>>2]=J[f+80>>2];J[b+20>>2]=J[f+84>>2];J[b+24>>2]=J[f+88>>2];J[b+28>>2]=J[f+92>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+96>>2];J[b+4>>2]=J[f+100>>2];J[b+8>>2]=J[f+104>>2];J[b+12>>2]=J[f+108>>2];J[b+16>>2]=J[f+112>>2];J[b+20>>2]=J[f+116>>2];J[b+24>> -2]=J[f+120>>2];J[b+28>>2]=J[f+124>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+128>>2];J[b+4>>2]=J[f+132>>2];J[b+8>>2]=J[f+136>>2];J[b+12>>2]=J[f+140>>2];J[b+16>>2]=J[f+144>>2];J[b+20>>2]=J[f+148>>2];J[b+24>>2]=J[f+152>>2];J[b+28>>2]=J[f+156>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+160>>2];J[b+4>>2]=J[f+164>>2];J[b+8>>2]=J[f+168>>2];J[b+12>>2]=J[f+172>>2];J[b+16>>2]=J[f+176>>2];J[b+20>>2]=J[f+180>>2];J[b+24>>2]=J[f+184>>2];J[b+28>>2]=J[f+188>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+192>>2];J[b+ -4>>2]=J[f+196>>2];J[b+8>>2]=J[f+200>>2];J[b+12>>2]=J[f+204>>2];J[b+16>>2]=J[f+208>>2];J[b+20>>2]=J[f+212>>2];J[b+24>>2]=J[f+216>>2];J[b+28>>2]=J[f+220>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+224>>2];J[b+4>>2]=J[f+228>>2];J[b+8>>2]=J[f+232>>2];J[b+12>>2]=J[f+236>>2];J[b+16>>2]=J[f+240>>2];J[b+20>>2]=J[f+244>>2];J[b+24>>2]=J[f+248>>2];J[b+28>>2]=J[f+252>>2];t=t+R|0;if((u|0)>(t|0))continue;break}p=p+E|0;if((D|0)>(p|0))continue;break}b=J[a+188>>2]}v=v+1|0;if((v|0)<(b|0))continue;break}c=J[a+3508>> -2]}else c=p;p=c-1|0;J[g+3508>>2]=p;c=J[a+16>>2];j=j+u|0;if((c|0)>(j|0))continue;break}g=J[a+20>>2]}y=y+D|0;if((y|0)<(g|0))continue;break}break e}g=815293}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,g,0)}bc=f+256|0;if(NH(a,0))continue;break}e=bc-320|0;bc=e;i=J[a+36>>2];R:{if((i|0)<=0)break R;b=J[a+32>>2];if((b|0)<=0)break R;while(1){if((b|0)>0){f=J[a+3488>>2];n=J[a+3484>>2];r=J[a+3480>>2];p=0;while(1){i=J[a+188>>2];if((i|0)>0){c=J[a+28>>2];g=J[a+24>>2];t=0;while(1){b=P(t,20)+a|0;O=(c|0)/J[b+48>>2]|0;x=(O|0)/8| -0;Q=(g|0)/J[b+44>>2]|0;l=(Q|0)/8|0;if(!((c|0)<=0|(g|0)<=0)){w=((J[b+52>>2]<<7)+a|0)+208|0;d=Q&-8;b=O&-8;B=(d|0)==16&(b|0)==16;D=(d|0)==8&(b|0)==8;F=((t<<2)+a|0)+3480|0;G=(O|0)<8|(Q|0)<8;z=l&-4;s=l&3;L=l-1|0;v=0;M=l<<3;R=P(l,12);E=l<<2;N=E<<2;q=P(l,20);o=P(l,24);u=P(l,28);while(1){if((g|0)>0){C=v+H|0;l=J[F>>2]+(p<<2)|0;y=0;while(1){c=J[a+32>>2];b=((P(c,C)<<2)+l|0)+(y<<2)|0;J[e+64>>2]=J[b>>2];J[e+68>>2]=J[b+4>>2];J[e+72>>2]=J[b+8>>2];J[e+76>>2]=J[b+12>>2];J[e+80>>2]=J[b+16>>2];J[e+84>>2]=J[b+20>>2]; -J[e+88>>2]=J[b+24>>2];J[e+92>>2]=J[b+28>>2];d=P(c,x)<<2;k=d+b|0;J[e+96>>2]=J[k>>2];J[e+100>>2]=J[k+4>>2];J[e+104>>2]=J[k+8>>2];J[e+108>>2]=J[k+12>>2];J[e+112>>2]=J[k+16>>2];J[e+116>>2]=J[k+20>>2];J[e+120>>2]=J[k+24>>2];J[e+124>>2]=J[k+28>>2];k=d+k|0;J[e+128>>2]=J[k>>2];J[e+132>>2]=J[k+4>>2];J[e+136>>2]=J[k+8>>2];J[e+140>>2]=J[k+12>>2];J[e+144>>2]=J[k+16>>2];J[e+148>>2]=J[k+20>>2];J[e+152>>2]=J[k+24>>2];J[e+156>>2]=J[k+28>>2];k=d+k|0;J[e+160>>2]=J[k>>2];J[e+164>>2]=J[k+4>>2];J[e+168>>2]=J[k+8>>2]; -J[e+172>>2]=J[k+12>>2];J[e+176>>2]=J[k+16>>2];J[e+180>>2]=J[k+20>>2];J[e+184>>2]=J[k+24>>2];J[e+188>>2]=J[k+28>>2];k=d+k|0;J[e+192>>2]=J[k>>2];J[e+196>>2]=J[k+4>>2];J[e+200>>2]=J[k+8>>2];J[e+204>>2]=J[k+12>>2];J[e+208>>2]=J[k+16>>2];J[e+212>>2]=J[k+20>>2];J[e+216>>2]=J[k+24>>2];J[e+220>>2]=J[k+28>>2];k=d+k|0;J[e+224>>2]=J[k>>2];J[e+228>>2]=J[k+4>>2];J[e+232>>2]=J[k+8>>2];J[e+236>>2]=J[k+12>>2];J[e+240>>2]=J[k+16>>2];J[e+244>>2]=J[k+20>>2];J[e+248>>2]=J[k+24>>2];J[e+252>>2]=J[k+28>>2];k=d+k|0;J[e+ -256>>2]=J[k>>2];J[e+260>>2]=J[k+4>>2];J[e+264>>2]=J[k+8>>2];J[e+268>>2]=J[k+12>>2];J[e+272>>2]=J[k+16>>2];J[e+276>>2]=J[k+20>>2];J[e+280>>2]=J[k+24>>2];J[e+284>>2]=J[k+28>>2];d=d+k|0;J[e+288>>2]=J[d>>2];J[e+292>>2]=J[d+4>>2];J[e+296>>2]=J[d+8>>2];J[e+300>>2]=J[d+12>>2];J[e+304>>2]=J[d+16>>2];J[e+308>>2]=J[d+20>>2];J[e+312>>2]=J[d+24>>2];J[e+316>>2]=J[d+28>>2];oY(w,e- -64|0,e);S:{if(D){J[b>>2]=K[e|0];J[b+4>>2]=K[e+1|0];J[b+8>>2]=K[e+2|0];J[b+12>>2]=K[e+3|0];J[b+16>>2]=K[e+4|0];J[b+20>>2]=K[e+5|0]; -J[b+24>>2]=K[e+6|0];J[b+28>>2]=K[e+7|0];b=(J[a+32>>2]<<2)+b|0;J[b>>2]=K[e+8|0];J[b+4>>2]=K[e+9|0];J[b+8>>2]=K[e+10|0];J[b+12>>2]=K[e+11|0];J[b+16>>2]=K[e+12|0];J[b+20>>2]=K[e+13|0];J[b+24>>2]=K[e+14|0];J[b+28>>2]=K[e+15|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+16|0];J[b+4>>2]=K[e+17|0];J[b+8>>2]=K[e+18|0];J[b+12>>2]=K[e+19|0];J[b+16>>2]=K[e+20|0];J[b+20>>2]=K[e+21|0];J[b+24>>2]=K[e+22|0];J[b+28>>2]=K[e+23|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+24|0];J[b+4>>2]=K[e+25|0];J[b+8>>2]=K[e+26|0];J[b+12>>2]=K[e+ -27|0];J[b+16>>2]=K[e+28|0];J[b+20>>2]=K[e+29|0];J[b+24>>2]=K[e+30|0];J[b+28>>2]=K[e+31|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+32|0];J[b+4>>2]=K[e+33|0];J[b+8>>2]=K[e+34|0];J[b+12>>2]=K[e+35|0];J[b+16>>2]=K[e+36|0];J[b+20>>2]=K[e+37|0];J[b+24>>2]=K[e+38|0];J[b+28>>2]=K[e+39|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+40|0];J[b+4>>2]=K[e+41|0];J[b+8>>2]=K[e+42|0];J[b+12>>2]=K[e+43|0];J[b+16>>2]=K[e+44|0];J[b+20>>2]=K[e+45|0];J[b+24>>2]=K[e+46|0];J[b+28>>2]=K[e+47|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+48|0];J[b+ -4>>2]=K[e+49|0];J[b+8>>2]=K[e+50|0];J[b+12>>2]=K[e+51|0];J[b+16>>2]=K[e+52|0];J[b+20>>2]=K[e+53|0];J[b+24>>2]=K[e+54|0];J[b+28>>2]=K[e+55|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+56|0];J[b+4>>2]=K[e+57|0];J[b+8>>2]=K[e+58|0];J[b+12>>2]=K[e+59|0];J[b+16>>2]=K[e+60|0];J[b+20>>2]=K[e+61|0];J[b+24>>2]=K[e+62|0];J[b+28>>2]=K[e+63|0];break S}if(!B){m=0;k=0;if(G)break S;while(1){I=e+m|0;c=b;d=0;while(1){i=0;g=0;j=0;A=L>>>0<3;if(!A)while(1){h=g<<2;J[h+c>>2]=K[I|0];J[(h|4)+c>>2]=K[I|0];J[(h|8)+c>>2]=K[I|0];J[(h| -12)+c>>2]=K[I|0];g=g+4|0;j=j+4|0;if((z|0)!=(j|0))continue;break}if(s)while(1){J[(g<<2)+c>>2]=K[I|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;d=d+1|0;if((x|0)!=(d|0))continue;break}c=b+E|0;h=e+(m|1)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<< -2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+M|0;h=e+(m|2)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+R|0;h=e+(m|3)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h| -0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+N|0;h=e+(m|4)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+ -32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+q|0;h=e+(m|5)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+o|0;h=e+(m|6)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+ -c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+u|0;h=e+(m|7)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue; -break}d=J[a+32>>2];c=(d<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}m=m+8|0;b=(P(d,x)<<2)+b|0;k=k+1|0;if((k|0)!=8)continue;break}break S}g=(c<<2)+b|0;c=0;i=0;while(1){d=K[c+e|0];J[g>>2]=d;J[g+4>>2]=d;J[b>>2]=d;J[b+4>>2]=d;d=K[e+(c|1)|0];J[g+8>>2]=d;J[g+12>>2]=d;J[b+8>>2]=d;J[b+12>>2]=d;d=K[e+(c|2)|0];J[g+16>>2]=d;J[g+20>>2]=d;J[b+16>>2]=d;J[b+20>>2]=d;d=K[e+(c|3)|0];J[g+24>>2]=d;J[g+28>>2]=d;J[b+24>>2]=d;J[b+28>>2]=d;d=K[e+(c|4)|0];J[g+32>>2]=d;J[g+36>>2]=d;J[b+32>>2]=d;J[b+36>>2]=d;d=K[e+(c|5)| -0];J[g+40>>2]=d;J[g+44>>2]=d;J[b+40>>2]=d;J[b+44>>2]=d;d=K[e+(c|6)|0];J[g+48>>2]=d;J[g+52>>2]=d;J[b+48>>2]=d;J[b+52>>2]=d;d=K[e+(c|7)|0];J[g+56>>2]=d;J[g+60>>2]=d;J[b+56>>2]=d;J[b+60>>2]=d;c=c+8|0;d=J[a+32>>2]<<3;g=d+g|0;b=b+d|0;d=i>>>0<14;i=i+2|0;if(d)continue;break}}g=J[a+24>>2];y=y+Q|0;if((g|0)>(y|0))continue;break}c=J[a+28>>2]}v=v+O|0;if((v|0)<(c|0))continue;break}i=J[a+188>>2]}t=t+1|0;if((t|0)<(i|0))continue;break}}T:{if(!J[a+192>>2])break T;U:switch(i-3|0){case 1:b=J[a+28>>2];if((b|0)<=0)break T; -j=0;c=J[a+24>>2];if((c|0)<=0)break T;while(1){if((c|0)>0){c=P(J[a+32>>2],j+H|0)+p<<2;b=c+r|0;i=c+n|0;g=c+f|0;h=0;while(1){c=J[i>>2];l=J[b>>2]<<16|32768;d=J[g>>2]-128|0;J[b>>2]=K[((l+P(d,91881)>>>16|0)+384&1023)+2758464|0]^255;c=c-128|0;J[i>>2]=K[(((l+P(c,67086311)|0)+P(d,67062062)>>>16|0)+384&1023)+2758464|0]^255;J[g>>2]=K[((l+P(c,116130)>>>16|0)+384&1023)+2758464|0]^255;g=g+4|0;i=i+4|0;b=b+4|0;c=J[a+24>>2];h=h+1|0;if((c|0)>(h|0))continue;break}b=J[a+28>>2]}j=j+1|0;if((j|0)<(b|0))continue;break}break T; -case 0:break U;default:break T}b=J[a+28>>2];if((b|0)<=0)break T;c=J[a+24>>2];j=0;while(1){if((c|0)>0){c=P(J[a+32>>2],j+H|0)+p<<2;b=c+r|0;i=c+n|0;g=c+f|0;h=0;while(1){c=J[i>>2];l=J[b>>2]<<16|32768;d=J[g>>2]-128|0;J[b>>2]=K[((l+P(d,91881)>>>16|0)+384&1023)+2758464|0];c=c-128|0;J[i>>2]=K[(((l+P(c,67086311)|0)+P(d,67062062)>>>16|0)+384&1023)+2758464|0];J[g>>2]=K[((l+P(c,116130)>>>16|0)+384&1023)+2758464|0];g=g+4|0;i=i+4|0;b=b+4|0;c=J[a+24>>2];h=h+1|0;if((c|0)>(h|0))continue;break}b=J[a+28>>2]}j=j+1|0; -if((j|0)<(b|0))continue;break}}b=J[a+32>>2];p=J[a+24>>2]+p|0;if((b|0)>(p|0))continue;break}i=J[a+36>>2]}H=J[a+28>>2]+H|0;if((H|0)<(i|0))continue;break}}bc=e+320|0;J[a+3504>>2]=0;J[a+3496>>2]=0;J[a+3500>>2]=0;return}if((o|0)!=J[a+136>>2]){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,814821,0);J[a+3504>>2]=J[a+20>>2];return}b=(c+J[a+16>>2]|0)-1|0;b=b-((b|0)%(c|0)|0)|0;J[a+32>>2]=b;b=vd(P(d,o),b);J[a+3476>>2]=b;J[a+3468>>2]=b;J[a+3472>>2]=b;J[a+3524>>2]=0;J[a+3512>>2]=208;J[a+3508>>2]=J[a+204>>2];J[a+3504>>2]=0-J[a+ -28>>2];c=J[a+188>>2];V:{if((c|0)<=0)break V;j=0;if(c>>>0>=8){b=c&-8;d=a+40|0;q=0;while(1){J[(d+P(j,20)|0)+16>>2]=0;J[(d+P(j|1,20)|0)+16>>2]=0;J[(d+P(j|2,20)|0)+16>>2]=0;J[(d+P(j|3,20)|0)+16>>2]=0;J[(d+P(j|4,20)|0)+16>>2]=0;J[(d+P(j|5,20)|0)+16>>2]=0;J[(d+P(j|6,20)|0)+16>>2]=0;J[(d+P(j|7,20)|0)+16>>2]=0;j=j+8|0;q=q+8|0;if((b|0)!=(q|0))continue;break}}b=c&7;if(!b)break V;c=0;while(1){J[(P(j,20)+a|0)+56>>2]=0;j=j+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}J[a+3516>>2]=0;return}xc(1,gc[J[J[a>>2]+52>> -2]](a)|0,814503,0);J[a+3504>>2]=J[a+20>>2]}function zk(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=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;s=bc-16|0;bc=s;y=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a;g=J[a+28>>2];if(!g|J[g>>2]!=(a|0))break a;f=J[g+4>>2];if(f-16180>>>0>31)break a;q=J[a+12>>2];if(!q)break a;d=J[a>>2];if(!(J[a+4>>2]?d:1))break a;if((f|0)==16191){J[g+4>>2]=16192;f=16192}P=b-5|0;Q=g+92|0; -A=g+756|0;B=g+116|0;E=g+88|0;C=g+112|0;z=g+1332|0;c=J[g+64>>2];i=J[g+60>>2];D=J[a+4>>2];j=D;n=J[a+16>>2];t=n;b:{c:{d:while(1){e:{e=-3;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:switch(f-16180|0){case 23:k=J[g+76>>2];break C;case 21:k=J[g+76>>2];break E;case 18:k=J[g+108>>2];break H;case 27:f=J[g+12>>2];break h;case 16:if(c>>>0>=14)break Q;if(!j)break e;e=c+ -8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0<=5)break R;d=f;j=k;c=e;break Q;case 9:if(c>>>0>=32)break Y;if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0<=23)break Z;d=e;j=f;break Y;case 1:if(c>>>0>=16)break ha;if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0<=7)break ia;d=f;j=k;c=e;break ha;case 8:break j;case 7:break k;case 6:break l;case 5:break m;case 24:break B;case 22:break D;case 20:break F;case 19:break G;case 30:break b;case 26:break N;case 25:break O;case 17:break P; -case 15:break S;case 14:break T;case 13:break U;case 29:break c;case 12:break V;case 11:break W;case 10:break X;case 4:break aa;case 3:break da;case 2:break ga;case 0:break ja;case 28:break g;default:break a}l=J[g+12>>2];if(!l)break M;ka:{if(c>>>0>=16){f=i;break ka}if(!j)break e;e=c+8|0;k=d+1|0;h=j-1|0;f=(K[d|0]<>>0>7){d=k;j=h;c=e;break ka}if(!h){d=k;j=0;i=f;c=e;e=o;break c}c=c+16|0;j=j-2|0;f=(K[d+1|0]<>2])J[g+40>>2]=15;i=0;e=$f(0,0,0);J[g+28>>2]=e;H[s+12|0]=f;H[s+13|0]=f>>>8;e=$f(e,s+12|0,2);J[g+4>>2]=16181;J[g+28>>2]=e;c=0;f=J[g+4>>2];continue}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;j=j-2|0;i=(K[d+1|0]<>2]=i;if((i&255)!=8){J[a+24>>2]=15043;J[g+4>>2]=16209;f=J[g+4>>2];continue}if(i&57344){J[a+24>>2]=3353;J[g+4>>2]=16209;f=J[g+4>>2];continue}e=J[g+36>>2];if(e)J[e>>2]=i>>>8&1;if(!(!(i&512)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=$f(J[g+ -28>>2],s+12|0,2),J[X+28>>2]=Y}J[g+4>>2]=16182;c=0;i=0;break fa}if(c>>>0>31)break ea}if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0>23){d=e;j=f;break ea}k=c+8|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+2|0;f=j-2|0;i=(K[d+1|0]<>>0>15){d=e;j=f;break ea}k=c+16|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+3|0;f=j-3|0;i=(K[d+2|0]<>>0>7){d=e;j=f;break ea}c=c+24|0;if(!f){d=e;break e}j=j-4|0;i=(K[d+3|0]<>2];if(e)J[e+4>>2]=i;if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4))){H[s+ -12|0]=i;H[s+13|0]=i>>>8;H[s+14|0]=i>>>16;H[s+15|0]=i>>>24;X=g,Y=$f(J[g+28>>2],s+12|0,4),J[X+28>>2]=Y}J[g+4>>2]=16183;c=0;i=0;break ca}if(c>>>0>15)break ba}if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0>7){d=e;j=f;break ba}c=c+8|0;if(!f){d=e;break e}j=j-2|0;i=(K[d+1|0]<>2];if(e){J[e+12>>2]=i>>>8;J[e+8>>2]=i&255}if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=$f(J[g+28>>2],s+12|0,2),J[X+28>>2]=Y}J[g+4>>2]=16184;f=0;c=0;i=0;e=J[g+20>>2];if(e& -1024)break $;break o}e=J[g+20>>2];if(!(e&1024)){f=c;break o}f=i;if(c>>>0>15)break _}if(!j){j=0;i=f;e=o;break c}k=d+1|0;h=j-1|0;i=(K[d|0]<>>0>7){d=k;j=h;break _}c=c+8|0;if(!h){d=k;break e}j=j-2|0;i=(K[d+1|0]<>2]=i;c=J[g+36>>2];if(c)J[c+20>>2]=i;c=0;if(!(!(e&512)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=$f(J[g+28>>2],s+12|0,2),J[X+28>>2]=Y}i=0;break n}k=c+8|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+2|0;f=j-2|0;i=(K[d+1|0]<>>0>15){d=e;j=f;break Y}k= -c+16|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+3|0;f=j-3|0;i=(K[d+2|0]<>>0>7){d=e;j=f;break Y}c=c+24|0;if(!f){d=e;break e}j=j-4|0;i=(K[d+3|0]<>>8&65280|i>>>24);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16190;i=0;c=0}if(!J[g+16>>2]){J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+64>>2]=c;J[g+60>>2]=i;y=2;break a}e=ho(0,0,0);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16191}if(P>>>0>=2)break V;e=o;break c}ma:{na:{if(!J[g+8>>2]){if(c>>>0<3)break na;break ma}J[g+ -4>>2]=16206;i=i>>>(c&7)|0;c=c&-8;f=J[g+4>>2];continue}if(!j)break e;j=j-1|0;i=(K[d|0]<>2]=i&1;f=16193;oa:{pa:{qa:switch((i>>>1&3)-1|0){case 0:J[g+80>>2]=762784;J[g+88>>2]=9;J[g+92>>2]=5;J[g+84>>2]=764832;J[g+4>>2]=16199;if((b|0)!=6)break oa;c=c-3|0;i=i>>>3|0;e=o;break c;case 1:f=16196;break pa;case 2:break qa;default:break pa}J[a+24>>2]=13770;f=16209}J[g+4>>2]=f}c=c-3|0;i=i>>>3|0;f=J[g+4>>2];continue}i=i>>>(c&7)|0;c=c&-8;ra:{if(c>>>0>31)break ra;if(!j)break e;e=c+8|0; -f=d+1|0;k=j-1|0;i=(K[d|0]<>>0>23){d=f;j=k;c=e;break ra}if(!k){d=f;j=0;c=e;e=o;break c}f=c+16|0;k=d+2|0;h=j-2|0;i=(K[d+1|0]<>>0>15){d=k;j=h;c=f;break ra}if(!h){d=k;j=0;c=f;e=o;break c}e=c+24|0;k=d+3|0;h=j-3|0;i=(K[d+2|0]<>>16|0)){J[a+24>>2]=4213;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16194;J[g+68>>2]=e;i=0;c=0;if((b|0)!=6)break T; -e=o;break c}J[g+4>>2]=16195}e=J[g+68>>2];if(e){e=e>>>0>>0?e:j;e=e>>>0>>0?e:n;if(!e){e=o;break c}f=tc(q,d,e);J[g+68>>2]=J[g+68>>2]-e;q=e+f|0;n=n-e|0;d=d+e|0;j=j-e|0;f=J[g+4>>2];continue}J[g+4>>2]=16191;f=J[g+4>>2];continue}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;j=j-2|0;i=(K[d+1|0]<>2]=e+257;f=i>>>5&31;J[g+104>>2]=f+1;h=(i>>>10&15)+4|0;J[g+96>>2]=h;c=c-14|0;i=i>>>14|0;if(!(f>>>0<30&e>>>0<=29)){J[a+24>>2]=4136;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16197; -f=0;J[g+108>>2]=0;break J}f=J[g+108>>2];h=J[g+96>>2];if(f>>>0>>0)break J;break I}if(!n)break A;H[q|0]=J[g+68>>2];J[g+4>>2]=16200;n=n-1|0;q=q+1|0;f=J[g+4>>2];continue}f=J[g+12>>2];if(!f){f=0;break K}sa:{if(c>>>0>31){k=d;break sa}if(!j)break e;e=c+8|0;k=d+1|0;h=j-1|0;i=(K[d|0]<>>0>23){j=h;c=e;break sa}if(!h){d=k;j=0;c=e;e=o;break c}h=c+16|0;k=d+2|0;l=j-2|0;i=(K[d+1|0]<>>0>15){j=l;c=h;break sa}if(!l){d=k;j=0;c=h;e=o;break c}e=c+24|0;k=d+3|0;l=j-3|0;i=(K[d+2|0]<>> -0>7){j=l;c=e;break sa}if(!l){d=k;j=0;c=e;e=o;break c}c=c+32|0;k=d+4|0;j=j-4|0;i=(K[d+3|0]<>2]=d+J[a+20>>2];J[g+32>>2]=d+J[g+32>>2];e=f&4;if(!(!e|(n|0)==(t|0))){e=q-d|0;f=J[g+28>>2];ta:{if(J[g+20>>2]){d=$f(f,e,d);break ta}d=ho(f,e,d)}J[g+28>>2]=d;J[a+48>>2]=d;f=J[g+12>>2];e=f&4}if(!e|J[g+28>>2]==((J[g+20>>2]?i:i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24))|0))break L;J[a+24>>2]=10408;J[g+4>>2]=16209;d=k;t=n;f=J[g+4>>2];continue}J[g+4>>2]=16192;break q}d=k;i=0;c=0;t=n}J[g+4>>2]=16207; -break h}while(1){if(c>>>0<=2){if(!j)break e;j=j-1|0;i=(K[d|0]<>2]=e;I[((L[(f<<1)+762736>>1]<<1)+g|0)+116>>1]=i&7;c=c-3|0;i=i>>>3|0;f=e;if((e|0)!=(h|0))continue;break}f=h}if(f>>>0<=18){k=0;e=f;o=3-e&3;if(o)while(1){I[((L[(e<<1)+762736>>1]<<1)+g|0)+116>>1]=0;e=e+1|0;k=k+1|0;if((o|0)!=(k|0))continue;break}if(f-16>>>0>=3)while(1){o=g+116|0;f=e<<1;I[o+(L[f+762736>>1]<<1)>>1]=0;I[o+(L[f+762738>>1]<<1)>>1]=0;I[o+(L[f+762740>>1]<<1)>>1]=0;I[o+(L[f+762742>>1]<<1)>>1]= -0;e=e+4|0;if((e|0)!=19)continue;break}J[g+108>>2]=19}J[g+88>>2]=7;J[g+80>>2]=z;J[g+112>>2]=z;k=0;o=cK(0,B,19,C,E,A);if(o){J[a+24>>2]=3328;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16198;J[g+108>>2]=0;o=0}w=J[g+100>>2];u=w+J[g+104>>2]|0;if(u>>>0>k>>>0){x=-1<>2]^-1;r=J[g+80>>2];while(1){m=c;f=j;e=d;ua:{va:{wa:{xa:{ya:{p=i&x;l=K[(r+(p<<2)|0)+1|0];za:{if(l>>>0<=c>>>0){h=c;break za}while(1){if(!f)break ya;l=K[e|0]<>>0> -h>>>0)continue;break}}c=L[(r+(p<<2)|0)+2>>1];if(c>>>0<=15){d=k+1|0;J[g+108>>2]=d;I[((k<<1)+g|0)+116>>1]=c;c=h-l|0;i=i>>>l|0;k=d;break ua}Aa:{Ba:{Ca:switch(c-16|0){case 0:d=l+2|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f-1|0;i=(K[e|0]<>>0>h>>>0)continue;break}c=h-l|0;h=i>>>l|0;if(!k){J[a+24>>2]=3731;J[g+4>>2]=16209;d=e;j=f;i=h;f=J[g+4>>2];continue d}c=c-2|0;i=h>>>2|0;l=(h&3)+3|0;j=L[((k<<1)+g|0)+114>>1];break Aa;case 1:d=l+3|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f- -1|0;i=(K[e|0]<>>0>h>>>0)continue;break}c=(h-l|0)-3|0;d=i>>>l|0;i=d>>>3|0;l=(d&7)+3|0;break Ba;default:break Ca}d=l+7|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f-1|0;i=(K[e|0]<>>0>h>>>0)continue;break}c=(h-l|0)-7|0;d=i>>>l|0;i=d>>>7|0;l=(d&127)+11|0}j=0}if(u>>>0>>0)break wa;h=0;m=l&3;if(!m)break xa;d=l;while(1){I[((k<<1)+g|0)+116>>1]=j;k=k+1|0;d=d-1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}break va}d=d+j|0;c=(j<<3)+c|0;break e}d=l;break va}J[a+ -24>>2]=3731;J[g+4>>2]=16209;d=e;j=f;f=J[g+4>>2];continue d}if(l>>>0>=4)while(1){h=(k<<1)+g|0;I[h+118>>1]=j;I[h+116>>1]=j;I[h+120>>1]=j;I[h+122>>1]=j;k=k+4|0;d=d-4|0;if(d)continue;break}J[g+108>>2]=k}d=e;j=f;if(k>>>0>>0)continue;break}}if(!L[g+628>>1]){J[a+24>>2]=10325;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+88>>2]=9;J[g+80>>2]=z;J[g+112>>2]=z;o=cK(1,B,w,C,E,A);if(o){J[a+24>>2]=3300;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+92>>2]=6;J[g+84>>2]=J[g+112>>2];o=cK(2,(J[g+100>>2]<<1)+B|0,J[g+104>>2], -C,Q,A);if(o){J[a+24>>2]=3378;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16199;o=0;if((b|0)!=6)break G;e=0;break c}J[g+4>>2]=16200}if(!(j>>>0<6|n>>>0<258)){J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+64>>2]=c;J[g+60>>2]=i;h=J[a+12>>2];e=J[a+16>>2];d=h+e|0;u=d+(t^-1)|0;l=J[a+28>>2];q=J[l+52>>2];R=(d+(q^-1)|0)-t|0;x=q&7;F=J[l+44>>2];S=q+F|0;w=d-257|0;T=(e-t|0)+h|0;j=J[a>>2];G=(j+J[a+4>>2]|0)-5|0;U=-1<>2]^-1;V=-1<>2]^-1;N=J[l+84>>2];O=J[l+80>>2];f=J[l+64>>2];n=J[l+60>>2];i= -J[l+56>>2];W=J[l+48>>2];while(1){if(f>>>0<=14){n=((K[j|0]<>>e|0;m=L[d+2>>1];Da:{Ea:{Fa:{c=K[d|0];if(!c)break Fa;Ga:{Ha:{Ia:{while(1){d=c&255;if(c&16){m=m&65535;d=d&15;Ja:{if(!d){e=j;c=n;break Ja}Ka:{if(d>>>0<=f>>>0){c=f;e=j;break Ka}c=f+8|0;n=(K[j|0]<>>d|0}if(f>>>0<=14){c=((K[e|0]<>> -d|0;d=L[j+2>>1];c=K[j|0];if(c&16)break Ia;while(1){if(!(c&64)){c=(((-1<>>d|0;d=L[c+2>>1];c=K[c|0];if(!(c&16))continue;break Ia}break}m=14625;j=e;break Ha}if(!(d&64)){d=(((-1<>>e|0;m=L[d+2>>1];c=K[d|0];if(!c)break Fa;continue}break}m=14597;e=16191;if(d&32)break Ga;break Ha}p=d&65535;c=c&15;La:{if(c>>>0<=f>>>0){d=f;j=e;break La}n=(K[e|0]<>>0<=d>>>0)break La;n=(K[e+1|0]<< -d)+n|0;d=f+16|0;j=e+2|0}e=(-1<>>c|0;Ma:{r=e+p|0;d=h-T|0;if(r>>>0>d>>>0){k=r-d|0;if(!(!J[l+7108>>2]|k>>>0<=W>>>0)){m=10470;break Ha}Na:{Oa:{if(!q){c=i+(F-k|0)|0;if(k>>>0>=m>>>0)break Na;p=(p+(e+u|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>>0<7)break Oa;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h= -h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}break Oa}if(k>>>0>q>>>0){c=i+(S-k|0)|0;k=k-q|0;if(k>>>0>=m>>>0)break Na;p=(p+(e+R|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>>0>=7)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}m=m-k|0;if(q>>>0>=m>>>0){c=i;break Na}e=0;d=q;c=i;if(x)while(1){H[h| -0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((x|0)!=(e|0))continue;break}if(q>>>0>=8)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}c=h-r|0;m=m-q|0;break Na}c=i+(q-k|0)|0;if(k>>>0>=m>>>0)break Na;p=(p+(e+u|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>>0<7)break Oa;while(1){H[h|0]= -K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}}c=h-r|0;m=m-k|0}Pa:{if(m>>>0<3)break Pa;d=0;e=m-3|0;k=((e>>>0)/3|0)+1&3;if(k)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];m=m-3|0;h=h+3|0;c=c+3|0;d=d+1|0;if((k|0)!=(d|0))continue;break}if(e>>>0<9)break Pa;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]= -K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];H[h+8|0]=K[c+8|0];H[h+9|0]=K[c+9|0];H[h+10|0]=K[c+10|0];H[h+11|0]=K[c+11|0];h=h+12|0;c=c+12|0;m=m-12|0;if(m>>>0>2)continue;break}}if(!m)break Ea;H[h|0]=K[c|0];if((m|0)!=1)break Ma;h=h+1|0;break Ea}e=h-r|0;while(1){d=h;c=e;H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];h=d+3|0;e=c+3|0;m=m-3|0;if(m>>>0>2)continue;break}if(!m)break Ea;H[d+3|0]=K[e|0];if((m|0)==1){h=d+4|0;break Ea}H[d+4|0]=K[c+4|0];h=d+5|0;break Ea}H[h+1|0]=K[c+1|0];h=h+2|0;break Ea}J[a+ -24>>2]=m;e=16209}J[l+4>>2]=e;break Da}H[h|0]=m;h=h+1|0}if(j>>>0>=G>>>0)break Da;if(h>>>0>>0)continue}break}J[a+12>>2]=h;d=j-(f>>>3|0)|0;J[a>>2]=d;J[a+16>>2]=(w-h|0)+257;J[a+4>>2]=(G-d|0)+5;d=f&7;J[l+64>>2]=d;J[l+60>>2]=(-1<>2];i=J[g+60>>2];j=J[a+4>>2];d=J[a>>2];n=J[a+16>>2];q=J[a+12>>2];if(J[g+4>>2]!=16191)break q;J[g+7112>>2]=-1;f=J[g+4>>2];continue}J[g+7112>>2]=0;k=c;f=j;e=d;r=J[g+80>>2];p=-1<>2]^-1;l=r+((p&i)<<2)|0;m=K[l+1|0];Qa:{if(m>>>0<=c>>>0){h=c;break Qa}while(1){if(!f)break t; -l=K[e|0]<>>0>h>>>0)continue;break}}c=m;p=L[l+2>>1];l=K[l|0];Ra:{if((l-1&255)>>>0>14){c=0;d=e;j=f;break Ra}j=f;d=e;k=h;r=r+(p<<2)|0;u=-1<>>c<<2)|0;m=K[p+1|0];Sa:{if(m+c>>>0<=h>>>0){l=h;break Sa}while(1){if(!j)break u;m=K[d|0]<>>c<<2)|0;m=K[p+1|0];if(k>>>0>>0)continue;break}}h=l-c|0;i=i>>>c|0;l=K[p|0];p=L[p+2>>1]}J[g+68>>2]=p&65535;J[g+7112>>2]=c+m;c=h-m| -0;i=i>>>m|0;e=l&255;if(!e){J[g+4>>2]=16205;f=J[g+4>>2];continue}if(e&32){J[g+4>>2]=16191;J[g+7112>>2]=-1;f=J[g+4>>2];continue}if(e&64){J[a+24>>2]=14597;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16201;k=e&15;J[g+76>>2]=k}l=d;h=j;Ta:{if(!k){e=J[g+68>>2];break Ta}e=d;f=c;if(c>>>0>>0)while(1){if(!j)break v;j=j-1|0;i=(K[e|0]<>>0>f>>>0)continue;break}J[g+7112>>2]=J[g+7112>>2]+k;e=J[g+68>>2]+((-1<>2]=e;c=f-k|0;i=i>>>k|0}J[g+4>>2]=16202;J[g+7116>> -2]=e}k=c;f=j;e=d;r=J[g+84>>2];p=-1<>2]^-1;l=r+((p&i)<<2)|0;m=K[l+1|0];Ua:{if(m>>>0<=c>>>0){h=c;break Ua}while(1){if(!f)break w;l=K[e|0]<>>0>h>>>0)continue;break}}p=L[l+2>>1];k=K[l|0];Va:{if(k>>>0>=16){d=e;j=f;l=m;e=J[g+7112>>2];break Va}j=f;d=e;c=h;r=r+(p<<2)|0;u=-1<>>m<<2)|0;l=K[p+1|0];Wa:{if(c>>>0>=m+l>>>0){k=c;break Wa}while(1){if(!j)break x;l=K[d|0]<>>m<<2)|0;l=K[p+1|0];if(c>>>0>>0)continue;break}}h=k-m|0;i=i>>>m|0;k=K[p|0];p=L[p+2>>1];e=J[g+7112>>2]+m|0}J[g+7112>>2]=e+l;c=h-l|0;i=i>>>l|0;if(k&64){J[a+24>>2]=14625;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16203;k=k&15;J[g+76>>2]=k;J[g+72>>2]=p&65535}l=d;h=j;if(k){e=d;f=c;if(c>>>0>>0)while(1){if(!j)break y;j=j-1|0;i=(K[e|0]<>>0>f>>>0)continue;break}J[g+7112>>2]=J[g+7112>>2]+k;J[g+72>>2]=J[g+72>>2]+((-1<>>k|0;c=f-k|0}J[g+4>>2]=16204}if(n)break z}n= -0;e=o;break c}e=J[g+72>>2];f=t-n|0;Xa:{if(e>>>0>f>>>0){e=e-f|0;if(!(!J[g+7108>>2]|e>>>0<=M[g+48>>2])){J[a+24>>2]=10470;J[g+4>>2]=16209;f=J[g+4>>2];continue}f=J[g+52>>2];Ya:{if(f>>>0>>0){e=e-f|0;f=J[g+56>>2]+(J[g+44>>2]-e|0)|0;break Ya}f=J[g+56>>2]+(f-e|0)|0}k=J[g+68>>2];e=e>>>0>>0?e:k;break Xa}f=q-e|0;k=J[g+68>>2];e=k}h=e>>>0>>0?e:n;J[g+68>>2]=k-h;l=h-1|0;k=0;m=h&7;if(!m)break s;e=h;while(1){H[q|0]=K[f|0];e=e-1|0;q=q+1|0;f=f+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}break r}d=h+l|0;c=(h<< -3)+c|0;break e}d=e+f|0;c=(f<<3)+h|0;break e}d=d+j|0;c=(j<<3)+c|0;break e}d=h+l|0;c=(h<<3)+c|0;break e}d=e+f|0;c=(f<<3)+h|0;break e}d=d+j|0;c=(j<<3)+c|0;break e}e=h}if(l>>>0>=7)while(1){H[q|0]=K[f|0];H[q+1|0]=K[f+1|0];H[q+2|0]=K[f+2|0];H[q+3|0]=K[f+3|0];H[q+4|0]=K[f+4|0];H[q+5|0]=K[f+5|0];H[q+6|0]=K[f+6|0];H[q+7|0]=K[f+7|0];q=q+8|0;f=f+8|0;e=e-8|0;if(e)continue;break}n=n-h|0;if(J[g+68>>2])break q;J[g+4>>2]=16200;f=J[g+4>>2];continue}f=J[g+4>>2];continue}j=0;d=e;c=h;e=o;break c}e=J[g+36>>2];if(e)J[e+ -16>>2]=0;c=f}J[g+4>>2]=16185}Za:{k=J[g+20>>2];if(!(k&1024))break Za;f=J[g+68>>2];e=f>>>0>>0?f:j;if(e){h=J[g+36>>2];_a:{if(!h)break _a;l=J[h+16>>2];if(!l)break _a;f=J[h+20>>2]-f|0;k=J[h+24>>2];tc(f+l|0,d,k>>>0>>0?k-f|0:e);k=J[g+20>>2]}if(!(!(k&512)|!(K[g+12|0]&4)))X=g,Y=$f(J[g+28>>2],d,e),J[X+28>>2]=Y;f=J[g+68>>2]-e|0;J[g+68>>2]=f;j=j-e|0;d=d+e|0}if(!f)break Za;e=o;break c}J[g+4>>2]=16186;J[g+68>>2]=0}$a:{if(K[g+21|0]&8){f=0;if(!j)break e;while(1){e=K[d+f|0];k=J[g+36>>2];ab:{if(!k)break ab; -h=J[k+28>>2];if(!h)break ab;l=J[k+32>>2];k=J[g+68>>2];if(l>>>0<=k>>>0)break ab;J[g+68>>2]=k+1;H[h+k|0]=e}f=f+1|0;if(j>>>0>f>>>0?e:0)continue;break}if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4)))X=g,Y=$f(J[g+28>>2],d,f),J[X+28>>2]=Y;d=d+f|0;j=j-f|0;if(!e)break $a;e=o;break c}e=J[g+36>>2];if(!e)break $a;J[e+28>>2]=0}J[g+4>>2]=16187;J[g+68>>2]=0}bb:{if(K[g+21|0]&16){f=0;if(!j)break e;while(1){e=K[d+f|0];k=J[g+36>>2];cb:{if(!k)break cb;h=J[k+36>>2];if(!h)break cb;l=J[k+40>>2];k=J[g+68>>2];if(l>>>0<=k>>>0)break cb; -J[g+68>>2]=k+1;H[h+k|0]=e}f=f+1|0;if(j>>>0>f>>>0?e:0)continue;break}if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4)))X=g,Y=$f(J[g+28>>2],d,f),J[X+28>>2]=Y;d=d+f|0;j=j-f|0;if(!e)break bb;e=o;break c}e=J[g+36>>2];if(!e)break bb;J[e+36>>2]=0}J[g+4>>2]=16188}h=J[g+20>>2];if(h&512){db:{if(c>>>0>15){f=d;break db}if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0>7){j=k;c=e;break db}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;f=d+2|0;j=j-2|0;i=(K[d+1|0]<>1]==(i|0))){J[a+24>> -2]=11216;J[g+4>>2]=16209;d=f;f=J[g+4>>2];continue}i=0;c=0;d=f}e=J[g+36>>2];if(e){J[e+48>>2]=1;J[e+44>>2]=h>>>9&1}e=$f(0,0,0);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16191;f=J[g+4>>2];continue}J[g+20>>2]=0;e=J[g+36>>2];if(e)J[e+48>>2]=-1;eb:{if(l&1)if(!(((f<<8&65280)+(f>>>8|0)>>>0)%31|0))break eb;J[a+24>>2]=10362;J[g+4>>2]=16209;i=f;f=J[g+4>>2];continue}if((f&15)!=8){J[a+24>>2]=15043;J[g+4>>2]=16209;i=f;f=J[g+4>>2];continue}i=f>>>4|0;h=i&15;k=h+8|0;l=h>>>0<=7;e=J[g+40>>2];if(!e){J[g+40>>2]=k;e=k}if(!(e>>> -0>=k>>>0&l)){c=c-4|0;J[a+24>>2]=13196;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+24>>2]=256<>2]=e;J[a+48>>2]=e;J[g+4>>2]=f&8192?16189:16191;c=0;f=J[g+4>>2];continue}if(!(!f|!J[g+20>>2])){fb:{if(c>>>0>31){f=d;break fb}if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0>23){j=k;c=e;break fb}if(!k){d=f;j=0;c=e;e=o;break c}k=c+16|0;f=d+2|0;h=j-2|0;i=(K[d+1|0]<>>0>15){j=h;c=k;break fb}if(!h){d=f;j=0;c=k;e=o;break c}e=c+24|0;f=d+3|0;h=j-3|0;i=(K[d+2|0]<< -k)+i|0;if(c>>>0>7){j=h;c=e;break fb}if(!h){d=f;j=0;c=e;e=o;break c}c=c+32|0;f=d+4|0;j=j-4|0;i=(K[d+3|0]<>2]!=(i|0))break f;i=0;c=0;d=f}J[g+4>>2]=16208}e=1;break c}J[a+24>>2]=10385;J[g+4>>2]=16209;d=f;f=J[g+4>>2];continue}break}j=0;e=o}J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+64>>2]=c;J[g+60>>2]=i;gb:{hb:{ib:{if(J[g+44>>2])break ib;if((n|0)==(t|0))break hb;d=J[g+4>>2];if(d>>>0>16208)break hb;if((b|0)!=4)break ib;if(d>>>0>16205)break hb}c=t-n|0;d=J[a+28>>2];j=J[d+56>>2]; -jb:{if(!j){o=1;j=gc[J[a+32>>2]](J[a+40>>2],1<>2],1)|0;J[d+56>>2]=j;if(!j)break jb}f=J[d+44>>2];if(!f){J[d+48>>2]=0;J[d+52>>2]=0;f=1<>2];J[d+44>>2]=f}kb:{if(c>>>0>=f>>>0){tc(j,q-f|0,f);J[d+52>>2]=0;break kb}k=f;f=J[d+52>>2];k=k-f|0;o=k>>>0>>0;j=f+j|0;f=o?k:c;tc(j,q-c|0,f);if(o){c=c-f|0;tc(J[d+56>>2],q-c|0,c);J[d+52>>2]=c;break kb}o=0;c=f+J[d+52>>2]|0;j=c;c=J[d+44>>2];J[d+52>>2]=(j|0)!=(c|0)?j:0;j=c;c=J[d+48>>2];if(j>>>0<=c>>>0)break jb;J[d+48>>2]=c+f;break jb}J[d+48>>2]=J[d+44>> -2];o=0}if(o)break gb;n=J[a+16>>2];j=J[a+4>>2]}J[a+8>>2]=J[a+8>>2]+(D-j|0);d=t-n|0;J[a+20>>2]=d+J[a+20>>2];J[g+32>>2]=d+J[g+32>>2];if(!(!(K[g+12|0]&4)|(n|0)==(t|0))){c=J[a+12>>2]-d|0;f=J[g+28>>2];lb:{if(J[g+20>>2]){d=$f(f,c,d);break lb}d=ho(f,c,d)}J[g+28>>2]=d;J[a+48>>2]=d}d=a;a=J[g+4>>2];J[d+44>>2]=((J[g+64>>2]+((J[g+8>>2]!=0)<<6)|0)+(((a|0)==16191)<<7)|0)+((a|0)==16199?256:((a|0)==16194)<<8);a=e?e:-5;y=(b|0)==4?a:(j|0)==(D|0)?(n|0)==(t|0)?a:e:e;break a}J[g+4>>2]=16210}y=-4}bc=s+16|0;return y}function lW(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=bc-224|0;bc=c;dH(a);J[a+24>>2]=b;f=Cp(c+212|0);d=J[a+24>>2];J[695492]=0;b=$(4,48)|0;e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((e|0)!=1){J[c+200>>2]=b;J[c+204>>2]=11;J[c+208>>2]=-2147483636;J[b+40>>2]=J[591107];e=J[591106];J[b+32>>2]=J[591105];J[b+36>>2]=e;e=J[591104];J[b+24>>2]=J[591103];J[b+28>>2]=e;e=J[591102];J[b+16>>2]=J[591101];J[b+20>>2]=e;e=J[591100];J[b+8>>2]=J[591099];J[b+12>>2]=e;e=J[591098];J[b>>2]=J[591097];J[b+ -4>>2]=e;J[b+44>>2]=0;J[695492]=0;b=c+56|0;ca(4801,b|0,d|0,c+200|0);d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;b=aa(3314,f|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;if(H[c+67|0]<0)qc(J[c+56>>2]);if(H[c+211|0]<0)qc(J[c+200>>2]);if(b)break e;break a}e=Z()|0;break d}e=Z()|0;break f}e=Z()|0;if(H[c+67|0]>=0)break f;qc(J[c+56>>2])}if(H[c+211|0]>=0)break d;qc(J[c+200>>2]);break d}J[695492]=0;b=$(3315,f|0)|0;d=J[695492];J[695492]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{if((d| -0)!=1){if(!b)break a;J[695492]=0;d=c+200|0;da(4802,d|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break D;e=K[c+211|0];b=e<<24>>24;b=(b|0)<0;if(((b?J[c+204>>2]:e)|0)!=13)break b;if(gd(b?J[c+200>>2]:d,2364436,13))break b;J[c+192>>2]=0;J[c+184>>2]=0;J[c+188>>2]=0;while(1){E:{J[695492]=0;b=$(3315,f|0)|0;d=J[695492];J[695492]=0;F:{if((d|0)!=1){if(!b)break E;J[695492]=0;da(4802,c+56|0,f|0);b=J[695492];J[695492]=0;if((b|0)!=1){if(H[c+211|0]<0)qc(J[c+200>>2]);d=c- -64|0;J[c+208>>2]=J[d>>2];b=J[c+60>>2];J[c+ -200>>2]=J[c+56>>2];J[c+204>>2]=b;e=H[c+211|0];b=(e|0)<0;if(((b?J[c+204>>2]:e&255)|0)!=12)continue;if(gd(b?J[c+200>>2]:c+200|0,2364492,12))continue;J[d>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;e=c+56|0;ca(4803,f|0,2364544,e|0);b=J[695492];J[695492]=0;if((b|0)!=1){g=1;d=K[c+67|0];b=d<<24>>24<0;d=b?J[c+60>>2]:d;if((d|0)<19)break F;e=b?J[c+56>>2]:e;i=e+(d<<2)|0;b=e;while(1){b=og(b,102,d-18|0);if(!b)break F;if(gd(b,2364564,19)){b=b+4|0;d=i-b>>2;if((d|0)>=19)continue;break F}break}if((b|0)==(i|0)|(b- -e|0)==-4)break F;d=K[c+67|0];b=d<<24>>24<0;d=b?J[c+60>>2]:d;G:{H:{if((d|0)<5)break H;e=b?J[c+56>>2]:c+56|0;i=e+(d<<2)|0;b=e;while(1){b=og(b,47,d-4|0);if(!b)break H;if(gd(b,2364644,5)){b=b+4|0;d=i-b>>2;if((d|0)>=5)continue;break H}break}if((b|0)==(i|0))break H;if((b-e|0)!=-4)break G}d=K[c+67|0];b=d<<24>>24<0;d=b?J[c+60>>2]:d;if((d|0)<6)break F;e=b?J[c+56>>2]:c+56|0;i=e+(d<<2)|0;b=e;while(1){b=og(b,47,d-5|0);if(!b)break F;if(gd(b,2364668,6)){b=b+4|0;d=i-b>>2;if((d|0)<6)break F;continue}break}if((b| -0)==(i|0)|(b-e|0)==-4)break F}g=0;J[695492]=0;ca(4803,f|0,2364696,c+184|0);b=J[695492];J[695492]=0;if((b|0)!=1)break F}e=Z()|0;if(H[c+67|0]>=0)break i;qc(J[c+56>>2]);break i}e=Z()|0;break i}e=Z()|0;break i}if(H[c+67|0]<0)qc(J[c+56>>2]);if(g)continue}break}J[695492]=0;d=c+184|0;_(4804,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break j;b=K[c+195|0];if(!(b<<24>>24<0?J[c+188>>2]:b))break c;J[695492]=0;_(4805,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break j;b=J[a+24>>2];J[695492]=0;b=aa(4806,b|0,d|0)|0; -e=J[695492];J[695492]=0;if((e|0)==1)break j;I:{if(b)break I;J[695492]=0;b=$(4,48)|0;e=J[695492];J[695492]=0;J:{K:{L:{if((e|0)!=1){J[c+168>>2]=b;J[c+172>>2]=11;J[c+176>>2]=-2147483636;J[b+40>>2]=J[591107];e=J[591106];J[b+32>>2]=J[591105];J[b+36>>2]=e;e=J[591104];J[b+24>>2]=J[591103];J[b+28>>2]=e;e=J[591102];J[b+16>>2]=J[591101];J[b+20>>2]=e;e=J[591100];J[b+8>>2]=J[591099];J[b+12>>2]=e;e=J[591098];J[b>>2]=J[591097];J[b+4>>2]=e;J[b+44>>2]=0;J[695492]=0;b=c+56|0;da(4807,b|0,c+168|0);e=J[695492];J[695492]= -0;if((e|0)==1)break L;J[695492]=0;e=b;g=d;b=K[c+195|0];d=b<<24>>24<0;b=ga(2794,e|0,(d?J[c+184>>2]:g)|0,(d?J[c+188>>2]:b)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break K;e=J[b>>2];J[c+156>>2]=J[b+4>>2];d=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[c+159|0]=d;H[c+160|0]=d>>>8;H[c+161|0]=d>>>16;H[c+162|0]=d>>>24;J[b>>2]=0;J[b+4>>2]=0;g=K[b+11|0];J[b+8>>2]=0;if(H[c+195|0]<0)qc(J[c+184>>2]);J[c+184>>2]=e;b=c+184|4;d=K[c+159|0]|K[c+160|0]<<8|(K[c+161|0]<<16|K[c+162|0]<<24);H[b+3|0]=d;H[b+4|0]= -d>>>8;H[b+5|0]=d>>>16;H[b+6|0]=d>>>24;J[b>>2]=J[c+156>>2];H[c+195|0]=g;if(H[c+67|0]<0)qc(J[c+56>>2]);if(H[c+179|0]<0)qc(J[c+168>>2]);b=J[a+24>>2];J[695492]=0;b=aa(4806,b|0,c+184|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;if(b)break I;break c}e=Z()|0;break i}e=Z()|0;break J}e=Z()|0;if(H[c+67|0]>=0)break J;qc(J[c+56>>2])}if(H[c+179|0]>=0)break i;qc(J[c+168>>2]);break i}b=J[a+24>>2];J[695492]=0;d=c+56|0;ca(4801,d|0,b|0,c+184|0);b=J[695492];J[695492]=0;M:{N:{O:{P:{Q:{if((b|0)!=1){J[695492]=0;b= -aa(3314,f|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Q;if(H[c+67|0]<0)qc(J[c+56>>2]);if(!b)break c;J[695492]=0;b=$(3315,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;if(!b)break c;J[695492]=0;da(4802,c+56|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break M;if(H[c+211|0]<0)qc(J[c+200>>2]);d=c- -64|0;J[c+208>>2]=J[d>>2];b=J[c+60>>2];J[c+200>>2]=J[c+56>>2];J[c+204>>2]=b;if(eB(2364724,c+200|0))break c;J[c+176>>2]=0;J[c+168>>2]=0;J[c+172>>2]=0;while(1){J[695492]=0;b=$(3315,f|0)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break N;if(!b)break O;J[695492]=0;da(4802,c+56|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break P;if(H[c+211|0]<0)qc(J[c+200>>2]);J[c+208>>2]=J[d>>2];b=J[c+60>>2];J[c+200>>2]=J[c+56>>2];J[c+204>>2]=b;e=H[c+211|0];b=(e|0)<0;if(((b?J[c+204>>2]:e&255)|0)!=17)continue;if(gd(b?J[c+200>>2]:c+200|0,2364812,17))continue;break}J[695492]=0;ca(4803,f|0,2364884,c+168|0);b=J[695492];J[695492]=0;if((b|0)!=1)break O;break l}e=Z()|0;break i}e=Z()|0;if(H[c+67|0]>=0)break i;qc(J[c+56>>2]);break i}e= -Z()|0;break k}J[695492]=0;b=c+168|0;_(4804,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break l;d=K[c+179|0];if(!(d<<24>>24<0?J[c+172>>2]:d))break m;d=J[a+24>>2];J[695492]=0;d=aa(4806,d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;R:{if(d)break R;J[695492]=0;d=c+56|0;da(4807,d|0,c+184|0);e=J[695492];J[695492]=0;S:{if((e|0)!=1){J[695492]=0;e=d;g=b;b=K[c+179|0];d=b<<24>>24<0;b=ga(2794,e|0,(d?J[c+168>>2]:g)|0,(d?J[c+172>>2]:b)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break S;e=J[b>>2];J[c+156>>2]= -J[b+4>>2];d=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[c+159|0]=d;H[c+160|0]=d>>>8;H[c+161|0]=d>>>16;H[c+162|0]=d>>>24;J[b>>2]=0;J[b+4>>2]=0;g=K[b+11|0];J[b+8>>2]=0;if(H[c+179|0]<0)qc(J[c+168>>2]);J[c+168>>2]=e;b=c+168|4;d=K[c+159|0]|K[c+160|0]<<8|(K[c+161|0]<<16|K[c+162|0]<<24);H[b+3|0]=d;H[b+4|0]=d>>>8;H[b+5|0]=d>>>16;H[b+6|0]=d>>>24;J[b>>2]=J[c+156>>2];H[c+179|0]=g;if(H[c+67|0]<0)qc(J[c+56>>2]);b=J[a+24>>2];J[695492]=0;b=aa(4806,b|0,c+168|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l; -if(b)break R;break m}e=Z()|0;break k}e=Z()|0;if(H[c+67|0]>=0)break k;qc(J[c+56>>2]);break k}J[695492]=0;b=c+156|0;d=c+168|0;da(4807,b|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break n;J[695492]=0;_(4805,f|0);e=J[695492];J[695492]=0;if((e|0)==1)break p;J[695492]=0;e=c+128|0;ca(4808,e|0,b|0,2364912);b=J[695492];J[695492]=0;if((b|0)==1)break q;J[695492]=0;b=c+112|0;da(2798,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break s;J[695492]=0;g=b;b=K[c+123|0];d=b<<24>>24<0;b=ga(2794,e|0,(d?J[c+112>>2]:g)| -0,(d?J[c+116>>2]:b)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;J[c- -64>>2]=J[b+8>>2];d=J[b+4>>2];J[c+56>>2]=J[b>>2];J[c+60>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;b=aa(2860,c+56|0,2364940)|0;d=J[695492];J[695492]=0;if((d|0)==1)break v;J[c+152>>2]=J[b+8>>2];d=J[b+4>>2];J[c+144>>2]=J[b>>2];J[c+148>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[c+67|0]<0)qc(J[c+56>>2]);if(H[c+123|0]<0)qc(J[c+112>>2]);if(H[c+139|0]<0)qc(J[c+128>>2]);J[c+136>>2]=0;J[c+128>>2]=0;J[c+132>>2]=0;b=J[a+24>> -2];d=J[J[b>>2]+32>>2];J[695492]=0;e=b;b=c+144|0;d=aa(d|0,e|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break x;T:{if(!d)break T;d=J[a+24>>2];J[695492]=0;e=c+56|0;ca(4801,e|0,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break y;J[695492]=0;b=aa(3314,f|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break z;d=0;U:{if(!b)break U;J[695492]=0;b=$(3315,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break z;if(!b)break U;J[695492]=0;b=c+112|0;da(4802,b|0,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break z;d=dl(b, -2364436);if(H[c+123|0]>=0)break U;qc(J[c+112>>2])}if(H[c+67|0]<0)qc(J[c+56>>2]);if(!d)break T;e=c- -64|0;while(1){J[695492]=0;b=$(3315,f|0)|0;d=J[695492];J[695492]=0;V:{W:{if((d|0)!=1){if(!b)break T;J[695492]=0;g=c+56|0;da(4802,g|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break W;b=0;i=K[c+67|0];d=i<<24>>24;j=(d|0)<0;if(((j?J[c+60>>2]:i)|0)==12){b=!gd(j?J[c+56>>2]:g,2364492,12);d=K[c+67|0]}if(d<<24>>24<0)qc(J[c+56>>2]);if(!b)continue;J[e>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;b=c+56|0;ca(4803, -f|0,2364544,b|0);d=J[695492];J[695492]=0;if((d|0)!=1){b=xj(2364964,b);if(!b)break V;J[695492]=0;ca(4803,f|0,2364696,c+128|0);d=J[695492];J[695492]=0;if((d|0)!=1)break V}e=Z()|0;if(H[c+67|0]>=0)break w;qc(J[c+56>>2]);break w}e=Z()|0;break w}e=Z()|0;break w}if(H[c+67|0]<0)qc(J[c+56>>2]);if(!b)continue;break}}J[c+120>>2]=0;J[c+112>>2]=0;J[c+116>>2]=0;b=H[c+139|0];if(!((b|0)<0?J[c+132>>2]:b&255))break C;b=J[a+24>>2];d=J[J[b>>2]+32>>2];J[695492]=0;e=d;d=c+128|0;b=aa(e|0,b|0,d|0)|0;e=J[695492];J[695492]= -0;if((e|0)==1)break B;X:{Y:{if(!b){b=J[a+24>>2];J[695492]=0;e=c+56|0;ca(4809,e|0,c+156|0,d|0);d=J[695492];J[695492]=0;Z:{_:{$:{if((d|0)!=1){d=J[J[b>>2]+32>>2];J[695492]=0;b=aa(d|0,b|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break $;if(H[c+67|0]<0)qc(J[c+56>>2]);if(!b)break Z;J[695492]=0;ca(4809,c+56|0,c+156|0,c+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break _;if(H[c+123|0]<0)qc(J[c+112>>2]);J[c+120>>2]=J[c- -64>>2];b=J[c+60>>2];J[c+112>>2]=J[c+56>>2];J[c+116>>2]=b;break C}e=Z()|0;break A}e=Z()| -0;if(H[c+67|0]>=0)break A;qc(J[c+56>>2]);break A}e=Z()|0;break A}J[695492]=0;b=c+56|0;da(4807,b|0,c+144|0);d=J[695492];J[695492]=0;if((d|0)==1)break Y;J[695492]=0;e=b;b=K[c+139|0];d=b<<24>>24<0;b=ga(2794,e|0,(d?J[c+128>>2]:c+128|0)|0,(d?J[c+132>>2]:b)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break X;e=J[b>>2];J[c+96>>2]=J[b+4>>2];d=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[c+99|0]=d;H[c+100|0]=d>>>8;H[c+101|0]=d>>>16;H[c+102|0]=d>>>24;J[b>>2]=0;J[b+4>>2]=0;g=K[b+11|0];J[b+8>>2]=0;if(H[c+ -139|0]<0)qc(J[c+128>>2]);J[c+128>>2]=e;b=c+128|4;d=K[c+99|0]|K[c+100|0]<<8|(K[c+101|0]<<16|K[c+102|0]<<24);H[b+3|0]=d;H[b+4|0]=d>>>8;H[b+5|0]=d>>>16;H[b+6|0]=d>>>24;J[b>>2]=J[c+96>>2];H[c+139|0]=g;if(H[c+67|0]<0)qc(J[c+56>>2]);b=J[a+24>>2];d=J[J[b>>2]+32>>2];J[695492]=0;b=aa(d|0,b|0,c+128|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break B;if(!b)break C}J[695492]=0;aa(2815,c+112|0,c+128|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break C;break B}e=Z()|0;break A}e=Z()|0;if(H[c+67|0]>=0)break A;qc(J[c+56>> -2]);break A}e=Z()|0;break k}e=Z()|0;break i}e=Z()|0;break d}e=Z()|0;break d}aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{b=K[c+123|0];if(!(b<<24>>24<0?J[c+116>>2]:b))break ia;J[695492]=0;_(4805,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break B;b=J[a+24>>2];J[695492]=0;e=c+56|0;ca(4801,e|0,b|0,c+112|0);b=J[695492];J[695492]=0;if((b|0)==1)break aa;d=0;J[695492]=0;b=aa(3314,f|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ba;ja:{if(!b)break ja;J[695492]=0;b=$(3315,f|0)|0;e=J[695492];J[695492]=0;if((e|0)== -1)break ba;if(!b)break ja;J[695492]=0;b=c+96|0;da(4802,b|0,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break ba;d=dl(b,2365200);if(H[c+107|0]>=0)break ja;qc(J[c+96>>2])}if(H[c+67|0]<0)qc(J[c+56>>2]);if(!d)break ia;ka:{la:{ma:while(1){J[695492]=0;b=$(3315,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break la;if(!b)break ia;J[695492]=0;b=c+56|0;da(4802,b|0,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break ca;d=0;na:{if(!xj(2365272,b))break na;J[695492]=0;b=$(3315,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break da; -if(!b)break na;J[695492]=0;b=c+96|0;da(4802,b|0,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break da;d=dl(b,2365376);if(H[c+107|0]>=0)break na;qc(J[c+96>>2])}if(H[c+67|0]<0)qc(J[c+56>>2]);if(!d)continue;oa:while(1){J[695492]=0;b=$(3315,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break ka;if(!b)continue ma;J[695492]=0;e=c+56|0;da(4802,e|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break ea;b=0;g=K[c+67|0];d=g<<24>>24;j=(d|0)<0;if(((j?J[c+60>>2]:g)|0)==12){b=!gd(j?J[c+56>>2]:e,2365440,12);d=K[c+67|0]}if(d<< -24>>24<0)qc(J[c+56>>2]);if(!b)continue;J[c+72>>2]=0;J[c+76>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;J[c+56>>2]=1;J[c+60>>2]=0;while(1){pa:{J[695492]=0;b=vi(f);d=J[695492];J[695492]=0;qa:{ra:{sa:{ta:{ua:{if((d|0)!=1){if(b){J[695492]=0;i=c+96|0;da(4810,i|0,f|0);b=J[695492];J[695492]=0;va:{wa:{xa:{if((b|0)!=1){J[695492]=0;da(4811,c+40|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break xa;d=K[c+107|0];e=d<<24>>24;g=(e|0)<0;ya:{b=J[c+100>>2];if(((g?b:d)|0)==12){if(!gd(g? -J[c+96>>2]:i,2365492,12))break ya;d=K[c+107|0];e=d;b=J[c+100>>2]}g=e<<24>>24<0;if(((g?b:d)|0)==11)break wa;break ra}J[695492]=0;b=$(4812,c+40|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break va;J[c+56>>2]=b;break qa}e=Z()|0;break fa}e=Z()|0;break ga}if(gd(g?J[c+96>>2]:c+96|0,2365544,11)){b=J[c+100>>2];d=K[c+107|0];e=d;break ra}J[695492]=0;b=H[c+51|0];d=(b|0)<0;ia(1626,c+24|0,(d?J[c+40>>2]:c+40|0)|0,(d?J[c+44>>2]:b&255)|0,0);b=J[695492];J[695492]=0;if((b|0)!=1){if(H[c+83|0]<0)qc(J[c+72>>2]);b=J[c+28>> -2];J[c+72>>2]=J[c+24>>2];J[c+76>>2]=b;J[c+80>>2]=J[c+32>>2];break qa}break ha}break ha}J[695492]=0;Ri(f);b=J[695492];J[695492]=0;if((b|0)==1)break sa;b=J[a+4>>2];if((b|0)!=J[a+8>>2]){d=J[c+60>>2];J[b>>2]=J[c+56>>2];J[b+4>>2]=d;d=c- -64|0;e=J[d+4>>2];J[b+8>>2]=J[d>>2];J[b+12>>2]=e;d=b+16|0;za:{Aa:{Ba:{if(H[c+83|0]>=0){e=J[c+76>>2];J[d>>2]=J[c+72>>2];J[d+4>>2]=e;J[d+8>>2]=J[c+80>>2];break Ba}J[695492]=0;ca(2672,d|0,J[c+72>>2],J[c+76>>2]);e=J[695492];J[695492]=0;if((e|0)==1)break Aa}e=b+28|0;if(H[c+ -95|0]>=0){d=J[c+88>>2];J[e>>2]=J[c+84>>2];J[e+4>>2]=d;J[e+8>>2]=J[c+92>>2];break ua}J[695492]=0;ca(15,e|0,J[c+84>>2],J[c+88>>2]);e=J[695492];J[695492]=0;if((e|0)!=1)break ua;e=Z()|0;if(H[b+27|0]>=0)break za;qc(J[d>>2]);J[a+4>>2]=b;break fa}e=Z()|0}J[a+4>>2]=b;break fa}J[695492]=0;da(4813,a|0,c+56|0);b=J[695492];J[695492]=0;if((b|0)==1)break sa;break ta}e=Z()|0;break fa}J[a+4>>2]=b+40}if(H[c+95|0]<0)qc(J[c+84>>2]);if(H[c+83|0]>=0)continue oa;qc(J[c+72>>2]);continue oa}e=Z()|0;break fa}g=b;b=e<<24>> -24<0;if(((b?g:d)|0)!=13)break qa;if(gd(b?J[c+96>>2]:c+96|0,2365592,13))break qa;b=c+40|0;d=qj(b,35,0);if((d|0)==-1)break qa;J[695492]=0;b=ma(2797,c+12|0,b|0,d+1|0,-1,c+24|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break pa;if(H[c+95|0]<0)qc(J[c+84>>2]);d=J[b+4>>2];J[c+84>>2]=J[b>>2];J[c+88>>2]=d;J[c+92>>2]=J[b+8>>2]}if(H[c+51|0]<0)qc(J[c+40>>2]);if(H[c+107|0]>=0)continue;qc(J[c+96>>2]);continue}break}break}break}break ha}e=Z()|0;break A}e=Z()|0;break A}J[695492]=0;_(4805,f|0);b=J[695492];J[695492]= -0;if((b|0)==1)break B;b=J[a+24>>2];J[695492]=0;d=c+56|0;ca(4801,d|0,b|0,c+168|0);b=J[695492];J[695492]=0;Ca:{Da:{Ea:{if((b|0)!=1){J[695492]=0;b=aa(3314,f|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Ea;if(H[c+67|0]<0)qc(J[c+56>>2]);if(!b)break Ca;J[695492]=0;b=$(3315,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break B;if(b)break Da;break Ca}e=Z()|0;break A}e=Z()|0;if(H[c+67|0]>=0)break A;qc(J[c+56>>2]);break A}J[695492]=0;da(4802,c+56|0,f|0);b=J[695492];J[695492]=0;Fa:{Ga:{Ha:{Ia:{Ja:{if((b| -0)!=1){if(H[c+211|0]<0)qc(J[c+200>>2]);e=c- -64|0;J[c+208>>2]=J[e>>2];b=J[c+60>>2];J[c+200>>2]=J[c+56>>2];J[c+204>>2]=b;if(eB(2365648,c+200|0))break Ca;J[c+104>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;m=a+40|0;n=a+28|0;i=a+12|0;g=0;Ka:{La:{while(1){Ma:{J[695492]=0;b=$(3315,f|0)|0;d=J[695492];J[695492]=0;Na:{Oa:{Pa:{if((d|0)!=1){if(!b)break Pa;J[695492]=0;da(4802,c+56|0,f|0);b=J[695492];J[695492]=0;Qa:{Ra:{Sa:{Ta:{if((b|0)!=1){if(H[c+211|0]<0)qc(J[c+200>>2]);J[c+208>>2]=J[e>>2];b=J[c+60>>2];J[c+200>>2]=J[c+ -56>>2];J[c+204>>2]=b;if(!xj(2365704,c+200|0))continue;J[695492]=0;ca(4803,f|0,2364884,c+96|0);b=J[695492];J[695492]=0;if((b|0)!=1){Ua:{if(H[c+107|0]>=0){J[c+48>>2]=J[c+104>>2];b=J[c+100>>2];J[c+40>>2]=J[c+96>>2];J[c+44>>2]=b;break Ua}J[695492]=0;ca(15,c+40|0,J[c+96>>2],J[c+100>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break Ta}J[695492]=0;b=c+40|0;_(4804,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break Sa;d=J[a+24>>2];J[695492]=0;b=aa(4806,d|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Sa;if(!b){J[695492]= -0;ca(4809,c+56|0,c+156|0,c+96|0);b=J[695492];J[695492]=0;if((b|0)==1)break Ra;if(H[c+51|0]<0)qc(J[c+40>>2]);J[c+48>>2]=J[e>>2];b=J[c+60>>2];J[c+40>>2]=J[c+56>>2];J[c+44>>2]=b;b=J[a+24>>2];J[695492]=0;b=aa(4806,b|0,c+40|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Sa;if(!b)break Na}J[695492]=0;b=x0(f);d=J[695492];J[695492]=0;if((d|0)==1)break Sa;if(b)break Oa;J[695492]=0;o=Qg(f);b=J[695492];J[695492]=0;if((b|0)!=1)break Qa;e=Z()|0;break Ga}e=Z()|0;break Fa}e=Z()|0;break Fa}e=Z()|0;break Fa}e=Z()| -0;break Ga}e=Z()|0;break Ga}Va:while(1){J[695492]=0;b=aa(4815,f|0,o|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Ha;if(!b)break Oa;J[695492]=0;h=c+56|0;da(4802,h|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break Ia;b=0;k=K[c+67|0];d=k<<24>>24;j=(d|0)<0;if(((j?J[c+60>>2]:k)|0)==23){b=!gd(j?J[c+56>>2]:h,2365752,23);d=K[c+67|0]}if(d<<24>>24<0)qc(J[c+56>>2]);if(!b)continue;J[695492]=0;p=Qg(f);b=J[695492];J[695492]=0;if((b|0)==1)break Ja;while(1){J[695492]=0;b=aa(4815,f|0,p|0)|0;d=J[695492];J[695492]= -0;Wa:{Xa:{Ya:{Za:{_a:{$a:{if((d|0)!=1){if(!b)continue Va;J[695492]=0;h=c+56|0;da(4802,h|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break $a;b=0;k=K[c+67|0];d=k<<24>>24;j=(d|0)<0;if(((j?J[c+60>>2]:k)|0)==10){b=!gd(j?J[c+56>>2]:h,2365848,10);d=K[c+67|0]}if(d<<24>>24<0)qc(J[c+56>>2]);if(!b)continue;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[695492]=0;ca(4803,f|0,2365892,c+24|0);b=J[695492];J[695492]=0;if((b|0)==1)break Ya;b=K[c+35|0];h=b<<24>>24<0;k=J[c+28>>2];if(!(h?k:b))break Wa;b=J[a+4>>2];d=J[a>>2]; -ab:{if(!h){J[c+8>>2]=J[c+32>>2];h=J[c+28>>2];J[c>>2]=J[c+24>>2];J[c+4>>2]=h;break ab}J[695492]=0;ca(15,c|0,J[c+24>>2],k|0);h=J[695492];J[695492]=0;if((h|0)==1)break _a}bb:{if((b|0)==(d|0))break bb;while(1){l=K[d+39|0];h=l<<24>>24<0;j=K[c+11|0];k=j<<24>>24<0;l=h?J[d+32>>2]:l;if((l|0)==((k?J[c+4>>2]:j)|0)){if(!l)break bb;j=d+28|0;if(!gd(h?J[j>>2]:j,k?J[c>>2]:c,l))break bb}d=d+40|0;if((b|0)!=(d|0))continue;break}d=b}if(H[c+11|0]<0)qc(J[c>>2]);if(J[a+4>>2]==(d|0))break Za;J[d+4>>2]=g;break Wa}e=Z()|0; -break Ga}e=Z()|0;break Ga}e=Z()|0;break Xa}cb:{db:{eb:{if(H[c+35|0]>=0){J[e>>2]=J[c+32>>2];b=J[c+28>>2];J[c+56>>2]=J[c+24>>2];J[c+60>>2]=b;break eb}J[695492]=0;ca(15,c+56|0,J[c+24>>2],J[c+28>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break db}J[c+68>>2]=g;J[695492]=0;b=Xe(i,c+220|0,c+56|0);d=J[695492];J[695492]=0;if((d|0)==1)break cb;if(!J[b>>2]){J[695492]=0;d=$(4,32)|0;h=J[695492];J[695492]=0;if((h|0)==1)break cb;h=J[c+60>>2];J[d+16>>2]=J[c+56>>2];J[d+20>>2]=h;J[d+24>>2]=J[e>>2];J[e>>2]=0;J[c+56>> -2]=0;J[c+60>>2]=0;J[d+28>>2]=J[c+68>>2];J[d+8>>2]=J[c+220>>2];J[d>>2]=0;J[d+4>>2]=0;J[b>>2]=d;h=J[J[i>>2]>>2];if(h){J[i>>2]=h;d=J[b>>2]}Ic(J[a+16>>2],d);J[a+20>>2]=J[a+20>>2]+1}if(H[c+67|0]>=0)break Wa;qc(J[c+56>>2]);break Wa}e=Z()|0;break Xa}e=Z()|0;if(H[c+67|0]>=0)break Xa;qc(J[c+56>>2]);break Xa}e=Z()|0}if(H[c+35|0]>=0)break Ga;qc(J[c+24>>2]);break Ga}if(H[c+35|0]>=0)continue;qc(J[c+24>>2]);continue}}}e=Z()|0;break Fa}if(H[c+107|0]<0)qc(J[c+96>>2]);break Ca}J[695492]=0;b=$(4,40)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break Ma;d=J[a+56>>2];h=J[a+24>>2];J[695492]=0;d=ja(4816,b|0,c+40|0,h|0,m|0,d|0,a|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break La;J[c+60>>2]=d;J[c+56>>2]=g;J[695492]=0;ca(4817,c+24|0,n|0,c+56|0);b=J[695492];J[695492]=0;if((b|0)==1)break Ka;g=g+1|0}if(H[c+51|0]>=0)continue;qc(J[c+40>>2]);continue}break}e=Z()|0;break Ga}e=Z()|0;qc(b);break Ga}e=Z()|0;break Ga}e=Z()|0;break A}e=Z()|0;break Ga}e=Z()|0;break Ga}e=Z()|0}if(H[c+51|0]>=0)break Fa;qc(J[c+40>>2])}if(H[c+107|0]>=0)break A; -qc(J[c+96>>2]);break A}if(H[c+123|0]<0)qc(J[c+112>>2]);if(H[c+139|0]<0)qc(J[c+128>>2]);if(H[c+155|0]<0)qc(J[c+144>>2]);if(H[c+167|0]>=0)break m;qc(J[c+156>>2]);break m}e=Z()|0;if(H[c+51|0]>=0)break ga;qc(J[c+40>>2])}if(H[c+107|0]>=0)break fa;qc(J[c+96>>2])}if(H[c+95|0]<0)qc(J[c+84>>2]);if(H[c+83|0]<0)qc(J[c+72>>2]);break A}e=Z()|0;break A}e=Z()|0;if(H[c+67|0]>=0)break A;qc(J[c+56>>2]);break A}e=Z()|0;break A}e=Z()|0;if(H[c+67|0]>=0)break A;qc(J[c+56>>2]);break A}e=Z()|0;break A}e=Z()|0}if(H[c+123| -0]>=0)break w;qc(J[c+112>>2]);break w}e=Z()|0;if(H[c+67|0]>=0)break w;qc(J[c+56>>2]);break w}e=Z()|0;break w}e=Z()|0}if(H[c+139|0]<0)qc(J[c+128>>2]);if(H[c+155|0]>=0)break o;qc(J[c+144>>2]);break o}e=Z()|0;if(H[c+67|0]>=0)break t;qc(J[c+56>>2]);break t}e=Z()|0}if(H[c+123|0]>=0)break r;qc(J[c+112>>2]);break r}e=Z()|0}if(H[c+139|0]>=0)break o;qc(J[c+128>>2]);break o}e=Z()|0;break o}e=Z()|0}if(H[c+167|0]>=0)break k;qc(J[c+156>>2]);break k}e=Z()|0;break k}if(H[c+179|0]>=0)break c;qc(J[c+168>>2]);break c}e= -Z()|0}if(H[c+179|0]>=0)break i;qc(J[c+168>>2]);break i}e=Z()|0}if(H[c+195|0]<0)qc(J[c+184>>2]);if(H[c+211|0]>=0)break d;qc(J[c+200>>2])}J[f>>2]=768024;a=J[f+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);ba(e|0);B()}if(H[c+195|0]>=0)break b;qc(J[c+184>>2])}if(H[c+211|0]>=0)break a;qc(J[c+200>>2])}J[f>>2]=768024;a=J[f+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);bc=c+224|0}function cB(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=bc-144|0;bc=e;f=bc-32|0;bc=f;H[a+72|0]=0; -J[a>>2]=839596;J[a+24>>2]=0;J[a+28>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[695492]=0;J[f+16>>2]=13;d=f+16|0;aa(3289,c|0,d|0)|0;g=J[695492];J[695492]=0;n=a+124|0;a:{b:{c:{d:{e:{if((g|0)==1)break e;J[a+32>>2]=J[f+24>>2];J[695492]=0;_(3205,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;d=ga(3291,c|0,815752,d|0)|0;g= -J[695492];J[695492]=0;if((g|0)==1)break e;if(J[d>>2]==1)J[a+28>>2]=J[f+24>>2];J[695492]=0;d=f+16|0;_(3205,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;g=$(3301,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;J[a+36>>2]=g-1;J[695492]=0;la(3302,c|0,a+40|0,a+48|0,a+56|0,a- -64|0);g=J[695492];J[695492]=0;if((g|0)==1)break e;g=J[b+28>>2];h=J[a+36>>2];J[695492]=0;g=aa(3280,g|0,h+1|0)|0;h=J[695492];J[695492]=0;f:{g:{h:{i:{if((h|0)!=1){g=J[g+12>>2];m=O[g+56>>3];O[a+8>>3]=m;t=O[g+32>>3]; -O[a+16>>3]=t;v=O[a+48>>3];O[a+48>>3]=m-O[a+64>>3];O[a+64>>3]=m-v;O[a+40>>3]=O[a+40>>3]-t;O[a+56>>3]=O[a+56>>3]-t;J[695492]=0;d=ga(3291,c|0,839655,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;if(J[d>>2]==3){J[a+24>>2]=J[a+24>>2]|1;J[695492]=0;g=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;d=aa(3187,g|0,J[f+24>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break h;g=J[d+4>>2];h=J[d>>2];J[695492]=0;ca(3281,f|0,h|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break g;if(H[a+111|0]< -0)qc(J[a+100>>2]);g=J[f+4>>2];J[a+100>>2]=J[f>>2];J[a+104>>2]=g;J[a+108>>2]=J[f+8>>2];qc(dd(d))}J[695492]=0;d=f+16|0;_(3205,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break c;J[695492]=0;d=ga(3291,c|0,782546,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;if(J[d>>2]==3)break f;break d}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;qc(g);break b}d=Z()|0;break b}J[a+24>>2]=J[a+24>>2]|2;J[695492]=0;g=$(4,12)|0;d=J[695492];J[695492]=0;j:{k:{if((d|0)!=1){J[695492]=0;d=aa(3187,g|0,J[f+24>>2])|0;h=J[695492];J[695492]= -0;if((h|0)==1)break k;g=J[d+4>>2];h=J[d>>2];J[695492]=0;ca(3281,f|0,h|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break j;if(H[a+99|0]<0)qc(J[a+88>>2]);g=J[f+4>>2];J[a+88>>2]=J[f>>2];J[a+92>>2]=g;J[a+96>>2]=J[f+8>>2];qc(dd(d));break d}d=Z()|0;break b}d=Z()|0;qc(g);break b}d=Z()|0;break b}d=Z()|0;break b}J[695492]=0;d=f+16|0;_(3205,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break c;J[695492]=0;d=ga(3291,c|0,839752,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;l:{if(J[d>>2]==7){J[f>>2]=13;H[a+72| -0]=0;J[a+24>>2]=J[a+24>>2]|4;J[695492]=0;d=ha(3203,J[f+24>>2],777246,f|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;m:{if(J[d>>2]!=4)break m;if(Ec(J[d+8>>2],816014))break m;H[a+72|0]=1}J[695492]=0;_(3205,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break l;J[a+80>>2]=0;J[a+84>>2]=0;J[695492]=0;d=ha(3203,J[f+24>>2],812380,f|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;if(J[d>>2]-3>>>0>=4294967294)O[a+80>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];J[695492]=0;_(3205,f|0);d=J[695492];J[695492]=0;if((d| -0)==1)break l}J[695492]=0;d=f+16|0;_(3205,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break c;J[695492]=0;d=ga(3291,c|0,816014,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;n:{o:{p:{q:{r:{s:{if(J[d>>2]!=6)break s;J[a+24>>2]=J[a+24>>2]|8;r=J[J[f+24>>2]+12>>2];if((r|0)<=0)break s;while(1){J[f>>2]=13;J[695492]=0;d=ha(3283,J[f+24>>2],k|0,f|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break q;m=0;m=J[d>>2]-3>>>0>=4294967294?J[f>>2]==1?+J[f+8>>2]:O[f+8>>3]:m;d=J[a+128>>2];j=J[a+132>>2];t:{if(d>>>0>> -0){O[d>>3]=m;J[a+128>>2]=d+8;break t}u:{v:{g=J[n>>2];q=d-g>>3;h=q+1|0;w:{if(h>>>0>=536870912){J[695492]=0;_(2399,n|0);b=J[695492];J[695492]=0;if((b|0)==1)break w;break n}j=j-g|0;o=j>>2;j=j>>>0>=2147483640?536870911:h>>>0>>0?o:h;if(!j){o=0;break u}if(j>>>0<536870912)break v;J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break n}d=Z()|0;break b}J[695492]=0;o=$(4,j<<3)|0;h=J[695492];J[695492]=0;if((h|0)==1)break q}h=(q<<3)+o|0;O[h>>3]=m;q=h+8|0;if((d|0)!=(g|0))while(1){h=h-8|0;d=d-8|0;O[h>> -3]=O[d>>3];if((d|0)!=(g|0))continue;break}J[a+132>>2]=(j<<3)+o;J[a+128>>2]=q;J[a+124>>2]=h;if(!g)break t;qc(g)}J[695492]=0;_(3205,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break r;k=k+1|0;if((r|0)!=(k|0))continue;break}}J[695492]=0;d=f+16|0;_(3205,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break c;J[a+136>>2]=0;J[695492]=0;g=ga(3291,c|0,839794,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break c;g=J[g>>2]==7;x:{if(!g){J[695492]=0;_(3205,d|0);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[695492]=0;d=ga(3291, -c|0,839816,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break c;if(J[d>>2]!=6|J[J[f+24>>2]+12>>2]<3)break x}J[695492]=0;d=ga(3303,g|0,f+16|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[a+136>>2]=d}J[695492]=0;_(3205,f+16|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;d=J[a+136>>2];if(!(!d|K[d|0]==5))J[a+24>>2]=J[a+24>>2]|16;J[695492]=0;d=ga(3291,c|0,839987,f+16|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;if(J[d>>2]==3)break p;break o}d=Z()|0;break b}d=Z()|0;break b}J[a+24>>2]=J[a+24>> -2]|32;J[695492]=0;g=$(4,12)|0;d=J[695492];J[695492]=0;y:{z:{if((d|0)!=1){J[695492]=0;d=aa(3187,g|0,J[f+24>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break z;g=J[d+4>>2];h=J[d>>2];J[695492]=0;ca(3281,f|0,h|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break y;if(H[a+123|0]<0)qc(J[a+112>>2]);g=J[f+4>>2];J[a+112>>2]=J[f>>2];J[a+116>>2]=g;J[a+120>>2]=J[f+8>>2];qc(dd(d));break o}d=Z()|0;break b}d=Z()|0;qc(g);break b}d=Z()|0;break b}J[695492]=0;d=f+16|0;_(3205,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break c; -J[695492]=0;d=ga(3291,c|0,811150,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;if(!(!J[J[f+24>>2]+16>>2]|J[d>>2]!=7))J[a+24>>2]=J[a+24>>2]|64;J[695492]=0;_(3205,f+16|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;bc=f+32|0;break a}B()}d=Z()|0;break b}d=Z()|0}b=J[n>>2];if(b){J[a+128>>2]=b;qc(b)}if(H[a+123|0]<0)qc(J[a+112>>2]);if(H[a+111|0]<0)qc(J[a+100>>2]);if(H[a+99|0]<0)qc(J[a+88>>2]);ba(d|0);B()}f=a;J[a+168>>2]=0;J[a+172>>2]=0;J[a>>2]=827432;J[a+176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>> -2]=0;r=a+192|0;a=r;J[a>>2]=0;J[a+4>>2]=0;J[f+200>>2]=0;J[f+204>>2]=0;J[f+208>>2]=0;J[f+212>>2]=0;o=wc(f+220|0,0,96);J[e+128>>2]=13;J[e+112>>2]=13;d=J[b+24>>2];J[695492]=0;a=e+128|0;aa(3289,c|0,a|0)|0;g=J[695492];J[695492]=0;n=f+204|0;q=f+180|0;u=f+168|0;A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{if((g|0)==1)break K;J[695492]=0;ha(3207,a|0,d|0,e+112|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break K;J[695492]=0;_(3205,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break K;J[f+156>>2]=0;J[f+160>>2]=0;J[f+164>>2]=0; -J[695492]=0;g=aa(3296,c|0,e+108|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break I;j=J[e+108>>2];if((j|0)<=0)break J;while(1){L:{p=J[J[g>>2]+(i<<2)>>2];a=J[f+172>>2];M:{if((a|0)!=J[f+176>>2]){O[a>>3]=O[p>>3];J[f+172>>2]=a+8;break M}N:{O:{k=J[u>>2];d=a-k|0;s=d>>3;h=s+1|0;P:{if(h>>>0>=536870912){J[695492]=0;_(2399,u|0);a=J[695492];J[695492]=0;if((a|0)==1)break P;break C}l=d>>2;l=d>>>0>=2147483640?536870911:h>>>0>>0?l:h;if(!l){h=0;break N}if(l>>>0<536870912)break O;J[695492]=0;ka(209);a=J[695492];J[695492]= -0;if((a|0)!=1)break C}a=Z()|0;break A}J[695492]=0;h=$(4,l<<3)|0;d=J[695492];J[695492]=0;if((d|0)==1)break L}d=(s<<3)+h|0;O[d>>3]=O[p>>3];p=d+8|0;if((a|0)!=(k|0))while(1){d=d-8|0;a=a-8|0;O[d>>3]=O[a>>3];if((a|0)!=(k|0))continue;break}J[f+176>>2]=(l<<3)+h;J[f+172>>2]=p;J[f+168>>2]=d;if(!k)break M;qc(k);j=J[e+108>>2]}i=i+1|0;if((j|0)>(i|0))continue;break J}break}a=Z()|0;break A}a=Z()|0;break A}a=0;d=J[g+8>>2];if((d|0)>0)while(1){i=J[J[g>>2]+(a<<2)>>2];if(i){qc(i);d=J[g+8>>2]}a=a+1|0;if((d|0)>(a|0))continue; -break}qc(dd(g));H[f+216|0]=0;J[695492]=0;a=ga(3291,c|0,812652,e+128|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break I;if(J[a>>2]==1)H[f+216|0]=J[e+136>>2];J[695492]=0;_(3205,e+128|0);a=J[695492];J[695492]=0;if((a|0)==1)break I;a=J[c+40>>2];H[f+140|0]=26;if(a>>>0<10)H[f+140|0]=K[a+841607|0];a=J[c+48>>2];J[f+4>>2]=0;J[f+144>>2]=a;J[695492]=0;la(3297,e+88|0,f|0,c|0,813045,0);a=J[695492];J[695492]=0;if((a|0)==1)break E;if(H[f+231|0]<0)qc(J[o>>2]);a=J[e+92>>2];J[o>>2]=J[e+88>>2];J[o+4>>2]=a;J[o+8>>2]=J[e+ -96>>2];J[695492]=0;la(3297,e+88|0,f|0,c|0,813376,1);a=J[695492];J[695492]=0;if((a|0)==1)break F;if(H[f+243|0]<0)qc(J[f+232>>2]);a=J[e+92>>2];J[f+232>>2]=J[e+88>>2];J[f+236>>2]=a;J[f+240>>2]=J[e+96>>2];J[695492]=0;a=ga(3291,c|0,808619,e+128|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break D;if(J[a>>2]!=4)break G;J[f+4>>2]=J[f+4>>2]|8;i=J[e+136>>2];a=Qc(i);if(a>>>0<2147483632)break H;J[695492]=0;_(1623,e+88|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;break B}a=Z()|0;break A}Q:{if(a>>>0<=10){H[e+99| -0]=a;d=e+88|0;break Q}J[695492]=0;g=(a|15)+1|0;d=$(4,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break B;J[e+88>>2]=d;J[e+92>>2]=a;J[e+96>>2]=g|-2147483648}w=Zc(d,i,a)+a|0,x=0,H[w|0]=x;H[f+217|0]=1;d=K[e+99|0];i=d<<24>>24;a=(i|0)<0;R:{if(((a?J[e+92>>2]:d)|0)!=1)break R;a=K[(a?J[e+88>>2]:e+88|0)|0]-78|0;d=a&255;if(d>>>0>=7|!(71>>>d&1))break R;d=(a&255)<<3;a=d&31;if((d&63)>>>0>=32)a=131072>>>a|0;else a=((1<>>a;H[f+217|0]=a}if((i|0)>=0)break G;qc(J[e+88>>2])}J[695492]=0;a=e+ -128|0;_(3205,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break D;J[695492]=0;J[e+88>>2]=13;d=ga(3291,c|0,804966,e+88|0)|0;i=J[695492];J[695492]=0;S:{if((i|0)==1)break S;T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{if(J[d>>2]==7){J[695492]=0;a=ha(3203,J[e+96>>2],814087,a|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break S;fa:{if(J[a>>2]!=6)break fa;J[f+4>>2]=J[f+4>>2]|32;k=J[J[e+136>>2]+12>>2];if((k|0)<=0)break fa;i=0;while(1){J[e+72>>2]=13;J[695492]=0;a=ha(3283,J[e+136>>2],i|0,e+72|0,0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break U;m=0;m=J[a>>2]-3>>>0>=4294967294?J[e+72>>2]==1?+J[e+80>>2]:O[e+80>>3]:m;a=J[f+184>>2];g=J[f+188>>2];ga:{if(a>>>0>>0){O[a>>3]=m;J[f+184>>2]=a+8;break ga}ha:{ia:{h=J[q>>2];l=a-h>>3;d=l+1|0;ja:{if(d>>>0>=536870912){J[695492]=0;_(2399,q|0);break ja}g=g-h|0;j=g>>2;j=g>>>0>=2147483640?536870911:d>>>0>>0?j:d;if(!j){g=0;break ha}if(j>>>0<536870912)break ia;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;break A}J[695492]=0;g=$(4,j<<3)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break U}d=(l<<3)+g|0;O[d>>3]=m;l=d+8|0;if((a|0)!=(h|0))while(1){d=d-8|0;a=a-8|0;O[d>>3]=O[a>>3];if((a|0)!=(h|0))continue;break}J[f+188>>2]=(j<<3)+g;J[f+184>>2]=l;J[f+180>>2]=d;if(!h)break ga;qc(h)}J[695492]=0;_(3205,e+72|0);a=J[695492];J[695492]=0;if((a|0)==1)break T;i=i+1|0;if((k|0)!=(i|0))continue;break}}J[695492]=0;a=e+128|0;_(3205,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break S;J[695492]=0;a=ha(3203,J[e+96>>2],814292,a|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break S; -if(J[a>>2]==1){J[f+4>>2]=J[f+4>>2]|64;J[f+148>>2]=J[e+136>>2]}J[695492]=0;a=e+128|0;_(3205,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break S;J[695492]=0;a=ha(3203,J[e+96>>2],814569,a|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break S;ka:{if(J[a>>2]!=6)break ka;J[f+4>>2]=J[f+4>>2]|128;k=J[J[e+136>>2]+12>>2];if((k|0)<=0)break ka;i=0;while(1){J[e+72>>2]=13;J[695492]=0;a=ha(3283,J[e+136>>2],i|0,e+72|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break da;m=0;m=J[a>>2]-3>>>0>=4294967294?J[e+72>>2]==1?+J[e+ -80>>2]:O[e+80>>3]:m;a=J[f+196>>2];g=J[f+200>>2];la:{if(a>>>0>>0){O[a>>3]=m;J[f+196>>2]=a+8;break la}ma:{na:{h=J[r>>2];l=a-h>>3;d=l+1|0;oa:{if(d>>>0>=536870912){J[695492]=0;_(2399,r|0);break oa}g=g-h|0;j=g>>2;j=g>>>0>=2147483640?536870911:d>>>0>>0?j:d;if(!j){g=0;break ma}if(j>>>0<536870912)break na;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;break A}J[695492]=0;g=$(4,j<<3)|0;d=J[695492];J[695492]=0;if((d|0)==1)break da}d=(l<<3)+g|0;O[d>>3]=m;l=d+8|0;if((a|0)!=(h|0))while(1){d= -d-8|0;a=a-8|0;O[d>>3]=O[a>>3];if((a|0)!=(h|0))continue;break}J[f+200>>2]=(j<<3)+g;J[f+196>>2]=l;J[f+192>>2]=d;if(!h)break la;qc(h)}J[695492]=0;_(3205,e+72|0);a=J[695492];J[695492]=0;if((a|0)==1)break ea;i=i+1|0;if((k|0)!=(i|0))continue;break}}J[695492]=0;_(3205,e+128|0);a=J[695492];J[695492]=0;if((a|0)==1)break S}J[695492]=0;_(3205,e+88|0);a=J[695492];J[695492]=0;if((a|0)==1)break S;J[695492]=0;a=e+128|0;d=ha(3203,J[e+120>>2],814903,a|0,0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break S;pa:{if(!d)break pa; -J[695492]=0;ca(3290,e+72|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break $;if(H[f+255|0]<0)qc(J[f+244>>2]);a=J[e+76>>2];J[f+244>>2]=J[e+72>>2];J[f+248>>2]=a;J[f+252>>2]=J[e+80>>2];a=K[f+255|0];if(!(a<<24>>24<0?J[f+248>>2]:a))break pa;J[f+4>>2]=J[f+4>>2]|256}J[695492]=0;a=e+128|0;_(3205,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break S;J[695492]=0;a=ga(3298,J[e+120>>2],775727,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break S;if(J[a>>2]==9){J[f+152>>2]=J[e+136>>2];J[f+4>>2]=J[f+4>>2]|131072}J[695492]= -0;_(3205,e+128|0);a=J[695492];J[695492]=0;if((a|0)==1)break S;J[695492]=0;la(3292,e+72|0,f|0,e+112|0,775062,18);a=J[695492];J[695492]=0;if((a|0)==1)break ba;if(H[f+267|0]<0)qc(J[f+256>>2]);a=J[e+76>>2];J[f+256>>2]=J[e+72>>2];J[f+260>>2]=a;J[f+264>>2]=J[e+80>>2];J[695492]=0;J[e+72>>2]=13;a=e+72|0;c=ga(3291,c|0,810164,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break W;if(J[c>>2]!=7)break X;I[e+56>>1]=65;J[695492]=0;H[e+67|0]=1;c=aa(3286,b|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Z;if(!c)break Y; -a=c+4|0;if((a|0)==(e+56|0))break _;i=K[e+67|0];d=i<<24>>24;if(H[c+15|0]<0)break ca;if((d|0)<0)break aa;d=J[e+60>>2];J[a>>2]=J[e+56>>2];J[a+4>>2]=d;J[a+8>>2]=J[e- -64>>2];break _}a=Z()|0;break A}a=Z()|0;break A}J[695492]=0;k=a;a=(d|0)<0;ga(3294,k|0,(a?J[e+56>>2]:e+56|0)|0,(a?J[e+60>>2]:i)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Z;break _}a=Z()|0;break A}J[695492]=0;ga(3295,a|0,J[e+56>>2],J[e+60>>2])|0;a=J[695492];J[695492]=0;if((a|0)!=1)break _;break Z}a=Z()|0;break A}a=J[f+208>>2];if((a|0)!= -J[f+212>>2]){J[a>>2]=c;J[f+208>>2]=a+4;break Y}h=J[n>>2];d=a-h|0;j=d>>2;i=j+1|0;if(i>>>0>=1073741824){J[695492]=0;_(3299,n|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;break Z}g=d>>1;i=d>>>0>=2147483644?1073741823:g>>>0>i>>>0?g:i;qa:{if(!i){g=0;break qa}if(i>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break C;break Z}J[695492]=0;g=$(4,i<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Z}d=(j<<2)+g|0;J[d>>2]=c;c=d+4|0;if((a|0)!=(h|0)){while(1){d=d-4|0;a=a-4|0;J[d>>2]= -J[a>>2];if((a|0)!=(h|0))continue;break}a=J[n>>2]}J[f+212>>2]=(i<<2)+g;J[f+208>>2]=c;J[f+204>>2]=d;if(!a)break Y;qc(a);break Y}a=Z()|0;if(H[e+67|0]>=0)break A;qc(J[e+56>>2]);break A}if(H[e+67|0]>=0)break X;qc(J[e+56>>2])}J[695492]=0;_(3205,e+72|0);a=J[695492];J[695492]=0;if((a|0)!=1)break V}a=Z()|0;break A}J[e+56>>2]=13;J[e+40>>2]=13;J[695492]=0;J[e+24>>2]=13;a=ha(3203,J[e+120>>2],775727,e+40|0,0)|0;c=J[695492];J[695492]=0;ra:{sa:{ta:{ua:{va:{wa:{if((c|0)!=1){j=0;p=J[a>>2];if((p|0)==7){J[695492]=0; -a=ha(3203,J[e+48>>2],815165,e+56|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break sa;j=J[a>>2]==7}J[695492]=0;a=e+56|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break sa;J[695492]=0;a=ha(3203,J[e+120>>2],815165,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break sa;xa:{if(J[a>>2]!=7)break xa;a=J[e+64>>2];if(J[a+16>>2]<=0)break xa;c=0;while(1){J[695492]=0;a=ga(3300,a|0,c|0,e+72|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break ta;ya:{if(J[a>>2]==7){J[695492]=0;d=J[J[J[e+64>>2]+4>>2]+(c<<5)>>2];a= -J[695492];J[695492]=0;if((a|0)==1)break ra;a=Qc(d);if(a>>>0>=2147483632){J[695492]=0;_(1623,e+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;break A}za:{if(a>>>0<=10){H[e+23|0]=a;i=e+12|0;break za}J[695492]=0;g=(a|15)+1|0;i=$(4,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ra;J[e+12>>2]=i;J[e+16>>2]=a;J[e+20>>2]=g|-2147483648}w=Zc(i,d,a)+a|0,x=0,H[w|0]=x;Aa:{Ba:{if(!j)break Ba;d=K[e+23|0];a=d<<24>>24<0;if(((a?J[e+16>>2]:d)|0)!=1)break Ba;a=K[(a?J[e+12>>2]:e+12|0)|0]-67&255;if(a>>>0>= -20)break Ba;g=0;if(524553>>>a&1)break Aa}J[695492]=0;i=aa(3286,b|0,e+72|0)|0;a=J[695492];J[695492]=0;Ca:{if((a|0)==1)break Ca;g=1;if(!i)break Aa;a=i+4|0;Da:{if((a|0)==(e+12|0))break Da;h=K[e+23|0];d=h<<24>>24;Ea:{if(H[i+15|0]>=0){if((d|0)<0)break Ea;d=J[e+16>>2];J[a>>2]=J[e+12>>2];J[a+4>>2]=d;J[a+8>>2]=J[e+20>>2];break Da}J[695492]=0;k=a;a=(d|0)<0;ga(3294,k|0,(a?J[e+12>>2]:e+12|0)|0,(a?J[e+16>>2]:h)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ca;break Da}J[695492]=0;ga(3295,a|0,J[e+12>>2],J[e+ -16>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break Ca}a=J[f+208>>2];if((a|0)!=J[f+212>>2]){J[a>>2]=i;J[f+208>>2]=a+4;break Aa}Fa:{Ga:{l=J[n>>2];d=a-l|0;s=d>>2;h=s+1|0;Ha:{if(h>>>0>=1073741824){J[695492]=0;_(3299,n|0);break Ha}k=d>>1;k=d>>>0>=2147483644?1073741823:h>>>0>>0?k:h;if(!k){h=0;break Fa}if(k>>>0<1073741824)break Ga;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break C;break Ca}J[695492]=0;h=$(4,k<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Ca}d=(s<<2)+h|0;J[d>>2]=i;i=d+ -4|0;if((a|0)!=(l|0)){while(1){d=d-4|0;a=a-4|0;J[d>>2]=J[a>>2];if((a|0)!=(l|0))continue;break}a=J[n>>2]}J[f+212>>2]=(k<<2)+h;J[f+208>>2]=i;J[f+204>>2]=d;if(!a)break Aa;qc(a);break Aa}a=Z()|0;if(H[e+23|0]>=0)break A;qc(J[e+12>>2]);break A}if(H[e+23|0]<0)qc(J[e+12>>2]);if(!g)break ya}J[695492]=0;_(3205,e+72|0);a=J[695492];J[695492]=0;if((a|0)==1)break ta}c=c+1|0;a=J[e+64>>2];if((c|0)>2])continue;break}}J[695492]=0;_(3205,e+56|0);a=J[695492];J[695492]=0;if((a|0)==1)break sa;Ia:{if((p|0)!=7|J[e+ -40>>2]!=7)break Ia;j=0;while(1){J[695492]=0;a=ha(3203,J[e+48>>2],815165,e+56|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break va;Ja:{if(J[a>>2]!=7)break Ja;d=0;a=J[e+64>>2];if(J[a+16>>2]<=0)break Ja;while(1){J[695492]=0;a=ga(3300,a|0,d|0,e+72|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break wa;Ka:{if(J[a>>2]==7){J[695492]=0;c=J[J[J[e+64>>2]+4>>2]+(d<<5)>>2];a=J[695492];J[695492]=0;if((a|0)==1)break ua;a=Qc(c);if(a>>>0>=2147483632){J[695492]=0;_(1623,e+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C; -a=Z()|0;break A}La:{if(a>>>0<=10){H[e+23|0]=a;i=e+12|0;break La}J[695492]=0;g=(a|15)+1|0;i=$(4,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ua;J[e+12>>2]=i;J[e+16>>2]=a;J[e+20>>2]=g|-2147483648}w=Zc(i,c,a)+a|0,x=0,H[w|0]=x;c=K[e+23|0];i=c<<24>>24;a=(i|0)<0;Ma:{Na:{Oa:switch((a?J[e+16>>2]:c)-1|0){case 1:g=0;a=(i|0)<0?J[e+12>>2]:e+12|0;c=K[a+1|0]<<8;if((K[a|0]|c)==28486)break Ma;a=c|K[a|0];if((a|0)==27714|(a|0)==20304|((a|0)==17232|(a|0)==22096))break Ma;if((a|0)!=18768)break Na;break Ma;case 0:break Oa; -default:break Na}a=K[(a?J[e+12>>2]:e+12|0)|0]-68&255;if(a>>>0>=21)break Na;g=0;if(1179651>>>a&1)break Ma}J[695492]=0;i=aa(3286,b|0,e+72|0)|0;a=J[695492];J[695492]=0;Pa:{if((a|0)==1)break Pa;g=1;if(!i)break Ma;a=i+4|0;Qa:{if((a|0)==(e+12|0))break Qa;h=K[e+23|0];c=h<<24>>24;Ra:{if(H[i+15|0]>=0){if((c|0)<0)break Ra;c=J[e+16>>2];J[a>>2]=J[e+12>>2];J[a+4>>2]=c;J[a+8>>2]=J[e+20>>2];break Qa}J[695492]=0;k=a;a=(c|0)<0;ga(3294,k|0,(a?J[e+12>>2]:e+12|0)|0,(a?J[e+16>>2]:h)|0)|0;a=J[695492];J[695492]=0;if((a| -0)==1)break Pa;break Qa}J[695492]=0;ga(3295,a|0,J[e+12>>2],J[e+16>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break Pa}a=J[f+208>>2];if((a|0)!=J[f+212>>2]){J[a>>2]=i;J[f+208>>2]=a+4;break Ma}Sa:{Ta:{l=J[n>>2];c=a-l|0;p=c>>2;h=p+1|0;Ua:{if(h>>>0>=1073741824){J[695492]=0;_(3299,n|0);break Ua}k=c>>1;k=c>>>0>=2147483644?1073741823:h>>>0>>0?k:h;if(!k){h=0;break Sa}if(k>>>0<1073741824)break Ta;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break C;break Pa}J[695492]=0;h=$(4,k<<2)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break Pa}c=(p<<2)+h|0;J[c>>2]=i;i=c+4|0;if((a|0)!=(l|0)){while(1){c=c-4|0;a=a-4|0;J[c>>2]=J[a>>2];if((a|0)!=(l|0))continue;break}a=J[n>>2]}J[f+212>>2]=(k<<2)+h;J[f+208>>2]=i;J[f+204>>2]=c;if(!a)break Ma;qc(a);break Ma}a=Z()|0;if(H[e+23|0]>=0)break A;qc(J[e+12>>2]);break A}if(H[e+23|0]<0)qc(J[e+12>>2]);if(!g)break Ka}J[695492]=0;_(3205,e+72|0);a=J[695492];J[695492]=0;if((a|0)==1)break wa}d=d+1|0;a=J[e+64>>2];if((d|0)>2])continue;break}}J[695492]=0;_(3205,e+56|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break va;J[695492]=0;ha(3203,J[e+48>>2],775727,e+24|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break va;J[695492]=0;_(3205,e+40|0);a=J[695492];J[695492]=0;if((a|0)==1)break va;a=J[e+36>>2];J[e+48>>2]=J[e+32>>2];J[e+52>>2]=a;c=J[e+28>>2];a=J[e+24>>2];J[e+40>>2]=a;J[e+44>>2]=c;if((a|0)!=7)break Ia;a=j>>>0<49;j=j+1|0;if(a)continue;break}}J[695492]=0;_(3205,e+40|0);a=J[695492];J[695492]=0;if((a|0)==1)break sa;J[695492]=0;_(3205,e+112|0);a=J[695492];J[695492]=0;if((a|0)==1)break sa; -bc=e+144|0;return f}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}a=Z()|0;break A}B()}a=Z()|0}if(H[f+315|0]<0)qc(J[f+304>>2]);if(H[f+303|0]<0)qc(J[f+292>>2]);if(H[f+291|0]<0)qc(J[f+280>>2]);if(H[f+279|0]<0)qc(J[f+268>>2]);if(H[f+267|0]<0)qc(J[f+256>>2]);if(H[f+255|0]<0)qc(J[f+244>>2]);if(H[f+243|0]<0)qc(J[f+232>>2]);if(H[f+231|0]<0)qc(J[o>>2]);b=J[n>>2]; -if(b){J[f+208>>2]=b;qc(b)}b=J[r>>2];if(b){J[f+196>>2]=b;qc(b)}b=J[q>>2];if(b){J[f+184>>2]=b;qc(b)}b=J[u>>2];if(b){J[f+172>>2]=b;qc(b)}pt(f);ba(a|0);B()}function Myb(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;o=bc-4112|0;bc=o;h=J[a+16>>2];a:{if((h|0)<2)break a;j=1;g=J[a+24>>2];k=J[g+4>>2];e=J[g>>2];f=J[e+28>>2];if(J[k+28>>2]!=(f|0)){e=1;break a}d=J[e+24>>2];e=1;while(1){if((d|0)!=J[k+24>>2])break a;j=j+1|0;e=(h|0)>(j|0);if((h|0)==(j|0))break a;k=J[g+ -(j<<2)>>2];if((f|0)==J[k+28>>2])continue;break}}b:{c:{d:{j=hq(1783636E3);e:{f:{if(!j)break f;J[j+20>>2]=218793738;g:{h:{i:{if(gq(j,b))break i;vh(j);j=hq(1718909296);if(!j)break f;J[j+20>>2]=1785737760;J[j+24>>2]=0;J[j+28>>2]=1;J[j+32>>2]=1785737760;if(gq(j,b))break i;vh(j);n=Fi(0,0);if(!n)break f;j=hq(1768449138);if(!j)break g;J[j+20>>2]=J[a+8>>2]-J[a>>2];J[j+24>>2]=J[a+12>>2]-J[a+4>>2];J[j+28>>2]=J[a+16>>2];k=255;if(!e){h=J[J[a+24>>2]>>2];k=J[h+28>>2]<<7&128|J[h+24>>2]-1&127}H[j+35|0]=0;H[j+33|0]= -7;H[j+34|0]=0;H[j+32|0]=k;if(gq(j,n))break i;vh(j);if(e){j=hq(1651532643);if(!j)break g;h=J[a+16>>2];J[j+20>>2]=h;h=zc(h);J[j+24>>2]=h;if(!h)break i;if(J[j+20>>2]){k=0;while(1){h=J[J[a+24>>2]+(k<<2)>>2];H[J[j+24>>2]+k|0]=J[h+24>>2]-1&127|J[h+28>>2]<<7;k=k+1|0;if(k>>>0>2])continue;break}}if(gq(j,n))break i;vh(j)}j=hq(1668246642);if(!j)break h;j:{k:{l:{m:{h=J[a+28>>2];e=(h|0)==769;n:{if(!(!(e|(h|0)==1281)&(h|0)!=1025)){H[j+20|0]=1;o:{if(!e){e=16;if((h|0)==1025)break o;if((h|0)!=1281)break m; -e=18;break o}e=17}H[j+21|0]=0;H[j+22|0]=0;J[j+24>>2]=e;break n}H[j+22|0]=0;I[j+20>>1]=2;k=$N(J[J[a+32>>2]+16>>2]);if(!k)break d;d=Fi(0,0);if(!d)break c;h=zc(P(J[J[k+112>>2]>>2],20));J[k+108>>2]=h;g=-1;p:{if(!h)break p;m=J[J[k+112>>2]>>2];J[k+104>>2]=m;h=P(m,12)+132|0;q:{r:{s:{if((m|0)>0){e=0;while(1){f=J[k+112>>2];if(J[f>>2]<=(e|0))break s;q=J[k+108>>2];f=J[f+8>>2]+(e<<3)|0;i=J[f>>2];f=J[f+4>>2];J[f>>2]=J[f>>2]+1;t:{u:{r=J[f+8>>2];if(J[r+12>>2]){l=P(e,20)+q|0;J[l>>2]=i;s=f+12|0;J[l+12>>2]=s;i=0;if(e)while(1){p= -P(i,20)+q|0;if(J[p+12>>2]==(s|0))break u;i=i+1|0;if((i|0)!=(e|0))continue;break}J[l+4>>2]=h;i=gc[J[r+16>>2]](f)|0;J[l+16>>2]=0;i=i+8|0;J[l+8>>2]=i;m=J[k+104>>2];if((m-1|0)>(e|0)){h=((h+i|0)+3|0)/4<<2;break t}h=h+i|0;break t}fa(201282,199159,385,206760);B()}J[l+4>>2]=J[p+4>>2];i=J[p+8>>2];J[l+16>>2]=p;J[l+8>>2]=i}i=J[f>>2];J[f>>2]=i-1;if((i|0)<=1){i=J[J[f+8>>2]>>2];if(i)gc[i|0](f);qc(f);m=J[k+104>>2]}e=e+1|0;if((m|0)>(e|0))continue;break}}J[k>>2]=h;i=J[d+8>>2];if(i&7)break p;v:{e=J[d+64>>2];if((e| -0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;w:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break w}if((Uc(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;x:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break x}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e| -0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;y:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break y}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;z:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break z}if((Uc(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;h=J[k+4>>2];e=J[d+64>> -2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;A:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break A}if((Uc(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;B:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break B}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+ -64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;C:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break C}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;D:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break D}if((Uc(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;h=J[k+8>> -2];e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;E:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break E}if((Uc(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;F:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break F}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p; -e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;G:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break G}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;H:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break H}if((Uc(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;h=J[k+ -12>>2];e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;I:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break I}if((Uc(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;J:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break J}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i& -7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;K:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break K}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;L:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break L}if((Uc(d,h&255)|0)==-1)break p}if(xh(d,4,J[k+16>>2], -0))break p;if(xh(d,4,J[k+20>>2],0))break p;e=J[d+8>>2];M:{if(e&7)break M;h=J[k+24>>2];N:{O:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;P:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break P}if((Uc(d,e&255)|0)==-1)break N}e=J[d+8>>2];if(e&7)break N;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break O}e=e|4;J[d+8>>2]=e;break M}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+ -1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break N}Uc(d,h&255)}e=J[d+8>>2]}Q:{if(e&7)break Q;h=J[k+28>>2];R:{S:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;T:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break T}if((Uc(d,e&255)|0)==-1)break R}e=J[d+8>>2];if(e&7)break R;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break S}e=e|4;J[d+8>>2]=e;break Q}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>> -2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break R}Uc(d,h&255)}e=J[d+8>>2]}U:{if(e&7)break U;h=J[k+32>>2];V:{W:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;X:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break X}if((Uc(d,e&255)|0)==-1)break V}e=J[d+8>>2];if(e&7)break V;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break W}e=e|4;J[d+8>>2]=e;break U}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e| -0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break V}Uc(d,h&255)}e=J[d+8>>2]}Y:{if(e&7)break Y;h=J[k+36>>2];Z:{_:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;$:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break $}if((Uc(d,e&255)|0)==-1)break Z}e=J[d+8>>2];if(e&7)break Z;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break _}e=e|4;J[d+8>>2]=e;break Y}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+ -28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break Z}Uc(d,h&255)}e=J[d+8>>2]}aa:{if(e&7)break aa;h=J[k+40>>2];ba:{ca:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;da:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break da}if((Uc(d,e&255)|0)==-1)break ba}e=J[d+8>>2];if(e&7)break ba;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break ca}e=e|4;J[d+8>>2]=e;break aa}J[d+4>>2]=J[d+ -4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break ba}Uc(d,h&255)}e=J[d+8>>2]}ea:{if(e&7)break ea;h=J[k+44>>2];fa:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;ga:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break ga}if((Uc(d,e&255)|0)==-1)break ea}e=J[d+8>>2];if(e&7)break ea;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break fa}J[d+8>>2]=e|4;break ea}J[d+ -4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break ea}Uc(d,h&255)}if(xh(d,4,J[k+48>>2],0))break p;if(xh(d,4,J[k+52>>2],0))break p;if(xh(d,4,J[k+56>>2],0))break p;if(xh(d,4,J[k+60>>2],0))break p;if(xh(d,4,J[k+64>>2],0))break p;if(xh(d,8,J[k+72>>2],J[k+76>>2]))break p;if(xh(d,4,J[k+80>>2],0))break p;e=J[d+8>>2];ha:{if(e&7)break ha;h=J[k+84>>2];ia:{ja:{f=J[d+64>>2];ka:{if((f|0)>=0&(f|0)<=J[d+60>>2])break ka;J[d+4>>2]=J[d+4>>2]| -32;e=J[d+28>>2];J[d+28>>2]=e-1;la:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h>>>24;break la}if((Uc(d,h>>>24|0)|0)==-1)break ia}e=J[d+8>>2];if(e&7)break ia;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break ka;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;ma:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break ma}if((Uc(d,e&255)|0)==-1)break ia}e=J[d+8>>2];if(e&7)break ia;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break ka;e=h>>> -8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;na:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break na}if((Uc(d,e&255)|0)==-1)break ia}e=J[d+8>>2];if(e&7)break ia;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break ja}e=e|4;J[d+8>>2]=e;break ha}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break ia}Uc(d,h&255)}e=J[d+8>>2]}oa:{if(e&7)break oa;h=J[k+88>>2];pa:{qa:{f=J[d+64>>2];ra:{if((f|0)>= -0&(f|0)<=J[d+60>>2])break ra;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;sa:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h>>>24;break sa}if((Uc(d,h>>>24|0)|0)==-1)break pa}e=J[d+8>>2];if(e&7)break pa;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break ra;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;ta:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break ta}if((Uc(d,e&255)|0)==-1)break pa}e=J[d+8>>2];if(e&7)break pa;f=J[d+64>> -2];if((f|0)>=0&(f|0)<=J[d+60>>2])break ra;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;ua:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break ua}if((Uc(d,e&255)|0)==-1)break pa}e=J[d+8>>2];if(e&7)break pa;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break qa}e=e|4;J[d+8>>2]=e;break oa}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break pa}Uc(d,h&255)}e=J[d+8>>2]}va:{if(e&7)break va; -h=J[k+92>>2];wa:{f=J[d+64>>2];xa:{if((f|0)>=0&(f|0)<=J[d+60>>2])break xa;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;ya:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h>>>24;break ya}if((Uc(d,h>>>24|0)|0)==-1)break va}e=J[d+8>>2];if(e&7)break va;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break xa;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;za:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break za}if((Uc(d,e&255)|0)==-1)break va}e= -J[d+8>>2];if(e&7)break va;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break xa;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;Aa:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break Aa}if((Uc(d,e&255)|0)==-1)break va}e=J[d+8>>2];if(e&7)break va;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break wa}J[d+8>>2]=e|4;break va}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break va}Uc(d,h&255)}if(xh(d, -4,J[k+96>>2],0))break p;if((ay(d,44)|0)!=44)break p;i=J[d+8>>2];if(i&7)break p;h=J[k+104>>2];e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;Ba:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break Ba}if((Uc(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;Ca:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f= -J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break Ca}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;Da:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break Da}if((Uc(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;Ea:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e= -J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break Ea}if((Uc(d,h&255)|0)==-1)break p}e=0;g=0;if(J[k+104>>2]<=0)break p;while(1){i=J[d+8>>2];if(i&7)break s;f=J[k+108>>2]+P(e,20)|0;h=J[f>>2];g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Fa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Fa}g=-1;if((Uc(d,i)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>16|0;J[d+ -4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ga:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ga}g=-1;if((Uc(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ha:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ha}g=-1;if((Uc(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v; -J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ia:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=h;break Ia}g=-1;if((Uc(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;h=J[f+4>>2];g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ja:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ja}g=-1;if((Uc(d,i)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<= -J[d+60>>2])break v;i=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ka:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ka}g=-1;if((Uc(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;La:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break La}g=-1;if((Uc(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>> -2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ma:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=h;break Ma}g=-1;if((Uc(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;h=J[f+8>>2];g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;f=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Na:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=f;break Na}g=-1;if((Uc(d,f)|0)==-1)break p}i=J[d+8>>2];if(i& -7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;f=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Oa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=f;break Oa}g=-1;if((Uc(d,f&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;f=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Pa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=f;break Pa}g=-1;if((Uc(d,f&255)|0)==-1)break p}i= -J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Qa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=h;break Qa}g=-1;if((Uc(d,h&255)|0)==-1)break p}e=e+1|0;h=J[k+104>>2];if((e|0)<(h|0))continue;break}g=0;if((h|0)<=0)break p;h=P(h,12)+132|0;e=0;while(1){m=J[k+108>>2]+P(e,20)|0;if(J[m+4>>2]!=(h|0))break r;if((e|0)<0)break s;g=J[k+112>>2];if(J[g>>2]<=(e|0))break s;l=J[(J[g+8>>2]+(e<<3)|0)+4>>2];J[l>> -2]=J[l>>2]+1;i=J[d+8>>2];if(i&7)break s;f=J[l+4>>2];g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=f>>>24|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ra:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ra}g=-1;if((Uc(d,i)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=f>>>16|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Sa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Sa}g= --1;if((Uc(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=f>>>8|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ta:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ta}g=-1;if((Uc(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ua:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=f; -break Ua}g=-1;if((Uc(d,f&255)|0)==-1)break p}if((ay(d,4)|0)!=4)break s;if(gc[J[J[l+8>>2]+12>>2]](l,d)|0)break s;g=J[l>>2];J[l>>2]=g-1;if((g|0)<=1){g=J[J[l+8>>2]>>2];if(g)gc[g|0](l);qc(l)}i=J[k+104>>2];g=e+1|0;g=(g|0)<(i|0)?i:g;f=g-1|0;h=J[m+8>>2]+h|0;Va:{while(1){if((e|0)==(f|0)){e=g;g=k;break Va}e=e+1|0;l=J[k+108>>2]+P(e,20)|0;if(J[l+16>>2])continue;break}g=l+4|0}f=J[g>>2];l=f-h|0;if((l|0)<0)break q;if((f|0)!=(h|0)){g=-1;if((ay(d,l)|0)!=(l|0))break p;i=J[k+104>>2];h=f}g=0;if((e|0)<(i|0))continue; -break}break p}J[d+8>>2]=i|4}g=-1;break p}fa(202225,199159,420,206760);B()}fa(202925,199159,437,206760);B()}if(g)break m;h=Zi(d);if((h|0)<0)break m;J[j+32>>2]=h;h=zc(h);J[j+28>>2]=h;if(!h)break b;yn(d);if((li(d,J[j+28>>2],J[j+32>>2])|0)!=J[j+32>>2])break m;If(d);ym(k)}if(gq(j,n))break i;vh(j);Wa:switch((J[a+28>>2]>>8)-3|0){case 1:h=J[a+24>>2];if(J[J[h>>2]+40>>2]|J[J[h+4>>2]+40>>2]!=1|J[J[h+8>>2]+40>>2]!=2)break k;break j;case 0:break l;case 2:break Wa;default:break m}h=J[a+24>>2];if(J[J[h>>2]+40>> -2]|J[J[h+4>>2]+40>>2]!=1|J[J[h+8>>2]+40>>2]!=2)break k;break j}ra();B()}if(!J[J[J[a+24>>2]>>2]+40>>2])break j}j=hq(1667523942);if(!j)break h;h=J[a+16>>2];J[j+20>>2]=h;f=zc(P(h,12));J[j+24>>2]=f;d=J[a+16>>2];if((d|0)>0){i=J[a+24>>2];l=J[a+28>>2];k=0;while(1){e=f+P(k,12)|0;J[e>>2]=k;m=J[J[i+(k<<2)>>2]+40>>2];h=65536;Xa:{if(m&32768)break Xa;g=65535;h=-65536;Ya:switch((l>>8)-3|0){case 0:g=1;h=0;default:h=h|g;break Xa;case 1:case 2:break Ya}g=m&32767;h=g>>>0<3;h=(h?g+1|0:65535)|(h?0:-65536)}J[e+8>>2]= -h&32767;J[e+4>>2]=h>>>16;k=k+1|0;if((d|0)!=(k|0))continue;break}}if(gq(j,n))break i;vh(j)}h=Zi(n);yn(n);j=hq(1785737832);if(!j)break h;J[j+12>>2]=h+8;if(gq(j,b))break i;vh(j);if(xn(b,n,h))break h;If(n);j=hq(1785737827);if(!j)break f;n=0;J[j+12>>2]=0;if(gq(j,b))break i;vh(j);J[o+4>>2]=J[b+60>>2];J[o>>2]=c?c:202512;c=o+16|0;Vf(c,201741,o);if(x9(a,b,c))break f;a=0;break e}vh(j)}if(!n)break f}If(n)}a=-1}bc=o+4112|0;return a|0}fa(197896,198961,229,207936);B()}fa(199987,198961,231,207936);B()}fa(200776, -198961,238,207936);B()}function OY(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,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,N=0,O=0,Q=0,R=0;J[a+72>>2]=0;a:{b:{c:{d:{while(1){b=J[a+56>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break d;b=J[a+56>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break d;b=J[a+56>>2];f=gc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break d;b=J[a+56>>2];h=gc[J[J[b>>2]+28>>2]](b)|0;if((h|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+4;b= -J[a+56>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;c=b>>>5|0;if((c|0)==7){c=J[a+56>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break b;k=J[a+56>>2];k=gc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break b;j=J[a+56>>2];j=gc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break b;i=J[a+56>>2];c=(j|(c<<16|b<<24|k<<8))&536870911;b=c+9>>>3|0;if((gc[J[J[i>>2]+48>>2]](i,b)|0)!=(b|0))break b}s=vd(c,4);b=h| -(e<<16|d<<24|f<<8);e:{if(b>>>0<=256){d=0;if(!c)break e;while(1){e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break c;J[a+68>>2]=J[a+68>>2]+1;J[(d<<2)+s>>2]=e;d=d+1|0;if((d|0)!=(c|0))continue;break}break e}if(b>>>0>=65537){d=0;if(!c)break e;while(1){e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break c;f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break c;h=J[a+56>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break c;k=J[a+56>>2];k=gc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break c; -J[a+68>>2]=J[a+68>>2]+4;J[(d<<2)+s>>2]=k|(f<<16|e<<24|h<<8);d=d+1|0;if((d|0)!=(c|0))continue;break}break e}d=0;if(!c)break e;while(1){e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break c;f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break c;J[a+68>>2]=J[a+68>>2]+2;J[(d<<2)+s>>2]=f|e<<8;d=d+1|0;if((d|0)!=(c|0))continue;break}}d=J[a+56>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;f:{if(g&64){if((d|0)==-1)break c;d=J[a+56>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+56>>2];if((gc[J[J[d>> -2]+28>>2]](d)|0)==-1)break c;e=4;d=J[a+56>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)!=-1)break f;break c}e=1;if((d|0)==-1)break c}J[a+68>>2]=J[a+68>>2]+e;d=J[a+56>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break c;d=J[a+56>>2];f=gc[J[J[d>>2]+28>>2]](d)|0;if((f|0)==-1)break c;d=J[a+56>>2];h=gc[J[J[d>>2]+28>>2]](d)|0;if((h|0)==-1)break c;d=J[a+56>>2];k=gc[J[J[d>>2]+28>>2]](d)|0;if((k|0)==-1)break c;J[a+68>>2]=J[a+68>>2]+4;g:{d=g&63;if(!(J[a+40>>2]|(g&60)!=4&d-20>>>0>23)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,777979, -0);break g}v=k|(f<<16|e<<24|h<<8);J[J[a+76>>2]+28>>2]=0;J[J[a+144>>2]+12>>2]=0;J[J[a+148>>2]+16>>2]=0;J[a+68>>2]=0;h:{i:{j:{k:{l:switch(d|0){case 4:$H(a,b,0,s,c);break i;case 6:$H(a,b,1,s,c);break i;case 7:$H(a,b,1,s,c);break i;case 16:c=bc-32|0;bc=c;m:{n:{o:{p:{g=J[a+56>>2];d=gc[J[J[g>>2]+28>>2]](g)|0;if((d|0)==-1)break p;J[a+68>>2]=J[a+68>>2]+1;g=J[a+56>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break p;J[a+68>>2]=J[a+68>>2]+1;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+ -68>>2]=J[a+68>>2]+1;f=J[a+56>>2];h=gc[J[J[f>>2]+28>>2]](f)|0;if((h|0)==-1)break p;f=J[a+56>>2];k=gc[J[J[f>>2]+28>>2]](f)|0;if((k|0)==-1)break p;f=J[a+56>>2];j=gc[J[J[f>>2]+28>>2]](f)|0;if((j|0)==-1)break p;f=J[a+56>>2];i=gc[J[J[f>>2]+28>>2]](f)|0;if((i|0)==-1)break p;J[a+68>>2]=J[a+68>>2]+4;if(!(e?g:0)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,796673,0);break o}f=d>>>1&3;q:{l=d&1;if(!l){m=J[(f<<2)+2305760>>2];d=J[a+80>>2];r:{if((m|0)==J[d+4>>2]){ti(d);break r}qc(dd(d));d=rc(8);J[695492]=0;m=aa(3443,d|0,1<< -m)|0;n=J[695492];J[695492]=0;if((n|0)==1)break q;J[a+80>>2]=m}Vm(J[a+76>>2])}J[c+20>>2]=-3;J[c>>2]=0;J[c+4>>2]=-1;J[c+24>>2]=2;J[c+28>>2]=-2;J[c+8>>2]=-2;J[c+12>>2]=-2;J[c+16>>2]=0-g;k=i|(k<<16|h<<24|j<<8);h=k+1|0;f=it(a,l,P(h,g),e,f,0,0,0,c+16|0,c,v-7|0);d=rc(16);J[d+8>>2]=h;J[d>>2]=2305616;J[d+4>>2]=b;J[695492]=0;b=aa(3376,h|0,4)|0;h=J[695492];J[695492]=0;if((h|0)==1)break n;J[d+12>>2]=b;b=0;l=0;while(1){h=aI(f,l,0,g,e);J[J[d+12>>2]+(b<<2)>>2]=h;l=g+l|0;b=b+1|0;if(k>>>0>=b>>>0)continue;break}gc[J[J[f>> -2]+4>>2]](f);id(J[a+48>>2],d);break o}break n}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781526,0)}bc=c+32|0;break m}a=Z()|0;qc(d);ba(a|0);B()}break i;case 20:_H(a,b,0,s,c);break i;case 22:_H(a,b,1,s,c);break i;case 23:_H(a,b,1,s,c);break i;case 36:ZH(a,b,0,v);break i;case 38:ZH(a,b,1,v);break k;case 39:ZH(a,b,1,v);break i;case 40:YH(a,b,0,s,c);break i;case 42:YH(a,b,1,s,c);break i;case 43:YH(a,b,1,s,c);break i;case 48:s:{t:{b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break t;c=J[a+56>>2];c=gc[J[J[c>> -2]+28>>2]](c)|0;if((c|0)==-1)break t;g=J[a+56>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break t;d=J[a+56>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+4;J[a+24>>2]=d|(c<<16|b<<24|g<<8);b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break t;c=J[a+56>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break t;g=J[a+56>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break t;d=J[a+56>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+4;J[a+28>>2]=d| -(c<<16|b<<24|g<<8);b=J[a+56>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+4;b=J[a+56>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;J[a+68>>2]= -J[a+68>>2]+4;b=J[a+56>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+1;b=J[a+56>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break t;b=J[a+56>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+2;u:{b=J[a+24>>2];v:{if(!b)break v;g=J[a+28>>2];if(!g)break v;if(b>>>0<=2147483647/(b>>>0)>>>0)break u}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,805750,0);break s}J[a+44>>2]=c>>>3&3;J[a+36>>2]=c>>>2&1;g=(g|0)==-1?(e|d<<8)&32767:g;J[a+32>>2]=g;c=rc(24);J[695492]=0;b=ha(3446, -c|0,0,b|0,g|0)|0;g=J[695492];J[695492]=0;w:{if((g|0)!=1){J[a+40>>2]=b;c=P(J[b+16>>2],J[b+12>>2]);b=J[b+20>>2];if(!J[a+36>>2])break w;wc(b,255,c);break s}break a}wc(b,0,c);break s}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781526,0)}break i;case 50:b=J[a+56>>2];Q=a,R=(gc[J[J[b>>2]+48>>2]](b,v)|0)+J[a+68>>2]|0,J[Q+68>>2]=R;break i;case 51:J[a+72>>2]=1;break i;case 52:b=J[a+56>>2];Q=a,R=(gc[J[J[b>>2]+48>>2]](b,v)|0)+J[a+68>>2]|0,J[Q+68>>2]=R;break i;case 53:d=b;l=0;x:{y:{b=J[a+56>>2];m=gc[J[J[b>>2]+28>>2]](b)|0; -if((m|0)==-1)break y;J[a+68>>2]=J[a+68>>2]+1;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break y;c=J[a+56>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break y;g=J[a+56>>2];e=gc[J[J[g>>2]+28>>2]](g)|0;if((e|0)==-1)break y;g=J[a+56>>2];f=gc[J[J[g>>2]+28>>2]](g)|0;if((f|0)==-1)break y;J[a+68>>2]=J[a+68>>2]+4;g=J[a+56>>2];h=gc[J[J[g>>2]+28>>2]](g)|0;if((h|0)==-1)break y;g=J[a+56>>2];n=gc[J[J[g>>2]+28>>2]](g)|0;if((n|0)==-1)break y;g=J[a+56>>2];o=gc[J[J[g>>2]+28>>2]](g)|0;if((o|0)==-1)break y; -g=J[a+56>>2];p=gc[J[J[g>>2]+28>>2]](g)|0;if((p|0)==-1)break y;J[a+68>>2]=J[a+68>>2]+4;g=J[a+144>>2];J[g+4>>2]=0;J[g+8>>2]=0;i=8;k=m>>>1&7;j=k+1|0;g=vd(8,16);c=f|(c<<16|b<<24|e<<8);n=p|(n<<16|h<<24|o<<8);if((c|0)<(n|0)){o=m>>>4&7;p=o+1|0;r=-2<>2]=b;h=J[a+144>>2];e=J[h+4>>2];f=J[h+8>>2];z:{if(f>>>0>k>>>0){f=f-j|0;J[h+8>>2]=f;e=y&e>>>f;break z}J[h+8>>2]=0;e=e&(-1<>>0>=8)while(1){q=J[h>>2];q=gc[J[J[q>> -2]+28>>2]](q)|0;J[h+12>>2]=J[h+12>>2]+1;e=q&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break z;q=J[h>>2];q=gc[J[J[q>>2]+28>>2]](q)|0;J[h+4>>2]=q;x=8-f|0;J[h+8>>2]=x;J[h+12>>2]=J[h+12>>2]+1;e=(-1<>>x|e<>2]=e;h=J[a+144>>2];e=J[h+4>>2];f=J[h+8>>2];A:{if(f>>>0>o>>>0){f=f-p|0;J[h+8>>2]=f;e=r&e>>>f;break A}J[h+8>>2]=0;e=e&(-1<>>0>=8)while(1){q=J[h>>2];q=gc[J[J[q>>2]+28>>2]](q)|0;J[h+12>>2]=J[h+12>>2]+1;e=q&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break A; -q=J[h>>2];q=gc[J[J[q>>2]+28>>2]](q)|0;J[h+4>>2]=q;x=8-f|0;J[h+8>>2]=x;J[h+12>>2]=J[h+12>>2]+1;e=(-1<>>x|e<>2]=e;l=l+1|0;b=(1<(b|0))continue;break}}h=m&1;b=(h+l|0)+3|0;if(b>>>0>i>>>0)g=Nd(g,b,16);J[(l<<4)+g>>2]=c-1;b=J[a+144>>2];c=J[b+8>>2];B:{if(c>>>0>k>>>0){c=c-j|0;J[b+8>>2]=c;e=(-2<>2]>>>c;break B}J[b+8>>2]=0;e=J[b+4>>2]&(-1<>>0>=8)while(1){c=J[b>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[b+12>>2]=J[b+12>>2]+1;e=c&255|e<<8;f=f-8|0;if(f>>> -0>7)continue;break}if(!f)break B;c=J[b>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[b+4>>2]=c;i=8-f|0;J[b+8>>2]=i;J[b+12>>2]=J[b+12>>2]+1;e=(-1<>>i|e<>2]=-3;J[b+4>>2]=e;i=l+1|0;J[(i<<4)+g>>2]=n;b=J[a+144>>2];c=J[b+8>>2];C:{if(c>>>0>k>>>0){c=c-j|0;J[b+8>>2]=c;e=(-2<>2]>>>c;break C}J[b+8>>2]=0;e=J[b+4>>2]&(-1<>>0>=8)while(1){c=J[b>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[b+12>>2]=J[b+12>>2]+1;e=c&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break C; -c=J[b>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[b+4>>2]=c;m=8-f|0;J[b+8>>2]=m;J[b+12>>2]=J[b+12>>2]+1;e=(-1<>>m|e<>2]=32;J[b+4>>2]=e;b=l+2|0;if(h){c=J[a+144>>2];J[(b<<4)+g>>2]=0;f=J[c+8>>2];D:{if(f>>>0>k>>>0){e=f-j|0;J[c+8>>2]=e;e=(-2<>2]>>>e;break D}J[c+8>>2]=0;e=J[c+4>>2]&(-1<>>0>=8)while(1){h=J[c>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;J[c+12>>2]=J[c+12>>2]+1;e=h&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break D;h=J[c>>2];h=gc[J[J[h>>2]+28>> -2]](h)|0;J[c+4>>2]=h;k=8-f|0;J[c+8>>2]=k;J[c+12>>2]=J[c+12>>2]+1;e=(-1<>>k|e<>2]=-2;J[b+4>>2]=e;b=l+3|0}c=(b<<4)+g|0;J[c+8>>2]=-1;J[c>>2]=0;J[c+4>>2]=0;bI(g,b);c=J[a+48>>2];b=rc(12);J[b+8>>2]=g;J[b>>2]=2305636;J[b+4>>2]=d;id(c,b);break x}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781526,0)}break i;case 62:b=J[a+56>>2];Q=a,R=(gc[J[J[b>>2]+48>>2]](b,v)|0)+J[a+68>>2]|0,J[Q+68>>2]=R;break i;case 0:break j;default:break l}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,779424,0);b=J[a+56>>2];if((gc[J[J[b>> -2]+48>>2]](b,v)|0)!=(v|0))break c}if((d|0)!=38)break i;if((v|0)==-1)break h;break i}k=b;e=c;n=0;u=0;F=0;j=bc-80|0;bc=j;E:{F:{G:{H:{I:{J:{b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;K:{if((b|0)==-1)break K;c=J[a+56>>2];l=gc[J[J[c>>2]+28>>2]](c)|0;if((l|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+2;D=b<<8|l;h=D>>>10&3;f=l&1;L:{if(f)break L;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if(!h){if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+64>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K; -J[a+68>>2]=J[a+68>>2]+1;J[j+48>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+68>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+52>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+72>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+56>>2]=b&128?b|-256:b;b=J[a+ -56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+76>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+60>>2]=b&128?b|-256:b;break L}if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+64>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+48>>2]=b&128?b|-256:b}q=D>>>12&1;x=l&2;if(!(q|!x)){b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+ -68>>2]=J[a+68>>2]+1;J[j+40>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+32>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+44>>2]=b&128?b|-256:b;b=J[a+56>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+36>>2]=b&128?b|-256:b}b=J[a+56>>2];G=gc[J[J[b>>2]+28>>2]](b)|0;if((G|0)==-1)break K;b=J[a+56>>2];I=gc[J[J[b>>2]+28>>2]](b)|0;if((I|0)==-1)break K; -b=J[a+56>>2];K=gc[J[J[b>>2]+28>>2]](b)|0;if((K|0)==-1)break K;b=J[a+56>>2];L=gc[J[J[b>>2]+28>>2]](b)|0;if((L|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+4;b=J[a+56>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break K;b=J[a+56>>2];i=gc[J[J[b>>2]+28>>2]](b)|0;if((i|0)==-1)break K;b=J[a+56>>2];m=gc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break K;b=J[a+56>>2];E=gc[J[J[b>>2]+28>>2]](b)|0;if((E|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+4;b=rc(16);J[695492]=0;p=$(3185,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break F; -M:{if(e)while(1){b=J[(n<<2)+s>>2];N:{O:{c=J[a+52>>2];o=J[c+8>>2];if((o|0)>0){r=J[c>>2];c=0;while(1){d=J[r+(c<<2)>>2];if((b|0)==J[d+4>>2])break O;c=c+1|0;if((o|0)!=(c|0))continue;break}}c=J[a+48>>2];o=J[c+8>>2];if((o|0)<=0)break N;r=J[c>>2];c=0;while(1){d=J[r+(c<<2)>>2];if((b|0)==J[d+4>>2])break O;c=c+1|0;if((o|0)!=(c|0))continue;break}break N}if((gc[J[J[d>>2]+8>>2]](d)|0)==1){b=J[d+8>>2];if((b|0)<0|(b^2147483647)>>>0>>0)break M;u=b+u|0;break N}if((gc[J[J[d>>2]+8>>2]](d)|0)!=3)break N;id(p,d)}n= -n+1|0;if((e|0)!=(n|0))continue;break}m=E|(i<<16|g<<24|m<<8);if((m|0)<0|(m^2147483647)>>>0>>0)break M;g=f;y=m+u|0;if(y>>>0>=2){c=y-1|0;g=0;while(1){g=g+1|0;b=c>>>0>1;c=c>>>1|0;if(b)continue;break}}o=vd(y,4);if(y)wc(o,0,y<<2);b=0;if(e){A=o+12|0;z=o+8|0;N=o+4|0;i=0;r=0;while(1){n=J[(r<<2)+s>>2];P:{Q:{c=J[a+52>>2];t=J[c+8>>2];if((t|0)>0){w=J[c>>2];d=0;while(1){c=J[w+(d<<2)>>2];if((n|0)==J[c+4>>2])break Q;d=d+1|0;if((t|0)!=(d|0))continue;break}}c=J[a+48>>2];t=J[c+8>>2];if((t|0)<=0)break P;w=J[c>>2]; -d=0;while(1){c=J[w+(d<<2)>>2];if((n|0)==J[c+4>>2])break Q;d=d+1|0;if((t|0)!=(d|0))continue;break}break P}if((gc[J[J[c>>2]+8>>2]](c)|0)!=1)break P;b=J[c+8>>2];R:{if(!b)break R;C=b&3;n=0;S:{if(b>>>0<4){d=0;break S}O=b&-4;d=0;b=0;while(1){t=i<<2;w=d<<2;J[t+o>>2]=J[w+J[c+12>>2]>>2];J[t+N>>2]=J[J[c+12>>2]+(w|4)>>2];J[t+z>>2]=J[J[c+12>>2]+(w|8)>>2];J[t+A>>2]=J[J[c+12>>2]+(w|12)>>2];d=d+4|0;i=i+4|0;b=b+4|0;if((O|0)!=(b|0))continue;break}}if(!C)break R;while(1){J[(i<<2)+o>>2]=J[J[c+12>>2]+(d<<2)>>2];d=d+ -1|0;i=i+1|0;n=n+1|0;if((C|0)!=(n|0))continue;break}}b=c}r=r+1|0;if((e|0)!=(r|0))continue;break}}w=0;t=0;r=0;T:{if(!f)break T;r=2717792;U:{V:{W:{c=l>>>2&3;switch(c|0){case 0:break U;case 1:break W;default:break V}}c=0;r=2717904;break U}if(!J[p+8>>2])break J;r=J[J[J[p>>2]>>2]+8>>2];c=1}t=2717504;X:{Y:switch(l>>>4&3){case 1:t=2717632;break X;case 0:break X;default:break Y}if(M[p+8>>2]<=c>>>0)break J;t=J[J[J[p>>2]+(c<<2)>>2]+8>>2];c=c+1|0}F=2717424;Z:{if(!(l&64)){w=2717424;break Z}if(M[p+8>>2]<=c>>>0)break J; -w=J[J[J[p>>2]+(c<<2)>>2]+8>>2];c=c+1|0}if(!(l&128))break T;if(c>>>0>=M[p+8>>2])break J;F=J[J[J[p>>2]+(c<<2)>>2]+8>>2]}d=D>>>8&1;qc(dd(p));_:{$:{aa:{if(!f){l=0;c=h;e=0;ba:{if(!d)break ba;e=0;if(!b)break ba;e=J[b+16>>2]}XH(a,c,e);NY(a,g);Vm(J[a+76>>2]);p=1;if(x)break aa;break _}c=J[a+144>>2];J[c+4>>2]=0;J[c+8>>2]=0;if(!x)break $}if(!(!d|!b)){MA(a,q,J[b+20>>2]);l=0;p=1;break _}l=0;MA(a,q,0);p=1;break _}p=0;l=vd(m,4)}if(m){C=(u<<2)+o|0;b=0;d=0;while(1){e=b;ca:{if(f){gi(J[a+144>>2],j+28|0,r);break ca}bj(J[a+ -76>>2],j+28|0,J[a+88>>2])}c=783425;da:{i=J[j+28>>2];if(!((i|0)<=0&0-i>>>0>=d>>>0|(i|0)>0&i>>>0>(d^-1)>>>0)){d=d+i|0;if(d>>>0<=1E5)break da;c=784332}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,c,0);break I}A=e>>>0>m>>>0?e:m;c=0;n=0;ea:{fa:{while(1){ga:{if(f){if(gi(J[a+144>>2],j+24|0,t))break ga;break fa}if(!bj(J[a+76>>2],j+24|0,J[a+92>>2]))break fa}i=J[j+24>>2];if(!((i|0)<=0&0-i>>>0>=c>>>0)){if((b|0)==(A|0)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,785208,0);if(m)break I;break H}c=c+i|0;if(c>>>0>=100001){xc(1,gc[J[J[a>> -2]+52>>2]](a)|0,786060,0);if(m)break I;break H}if(!p){J[(b<<2)+l>>2]=c;n=c+n|0;b=b+1|0;continue}if(x){ha:{ia:{if(f){if(!gi(J[a+144>>2],j+20|0,F))break ea;i=J[j+20>>2];if((i|0)!=1)break ha;i=Lv(J[a+144>>2],g);gi(J[a+144>>2],j+16|0,2720384);gi(J[a+144>>2],j+12|0,2720384);gi(J[a+144>>2],j+8|0,2717424);z=J[a+144>>2];J[z+4>>2]=0;J[z+8>>2]=0;Vm(J[a+76>>2]);break ia}if(!bj(J[a+76>>2],j+20|0,J[a+100>>2]))break ea;i=J[j+20>>2];if((i|0)!=1)break ha;i=RY(J[a+76>>2],g,J[a+140>>2]);bj(J[a+76>>2],j+16|0,J[a+120>> -2]);bj(J[a+76>>2],j+12|0,J[a+124>>2])}z=b+u|0;if(z>>>0<=i>>>0){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,786944,0);if(m)break I;break H}Q=(z<<2)+o|0,R=WH(a,c,d,q,0,J[(i<<2)+o>>2],J[j+16>>2],J[j+12>>2],j+40|0,j+32|0),J[Q>>2]=R;b=b+1|0;continue}z=b+u|0;Q=(z<<2)+o|0,R=VH(a,f,1,c,d,i,0,z,0,g,o,0,0,0,1,0,2718048,2718544,2719616,2720384,2720384,2720384,2720384,2717424,q,j+40|0,j+32|0),J[Q>>2]=R;b=b+1|0;continue}Q=C+(b<<2)|0,R=it(a,0,c,d,h,0,0,0,j- -64|0,j+48|0,0),J[Q>>2]=R;b=b+1|0;continue}break}xc(1,gc[J[J[a>>2]+ -52>>2]](a)|0,783425,0);if(m)break I;break H}if(p)break ea;if(!n){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,787824,0);if(m)break I;break H}gi(J[a+144>>2],j+8|0,w);c=J[a+144>>2];J[c+4>>2]=0;J[c+8>>2]=0;c=J[j+8>>2];ja:{if(!c){c=rc(24);J[695492]=0;i=ha(3446,c|0,0,n|0,d|0)|0;A=J[695492];J[695492]=0;if((A|0)!=1){c=P(n+7>>>3|0,d);J[j+8>>2]=c;n=J[a+56>>2];Q=a,R=(gc[J[J[n>>2]+40>>2]](n,J[i+20>>2],c)|0)+J[a+68>>2]|0,J[Q+68>>2]=R;break ja}break a}i=it(a,1,n,d,0,0,0,0,0,0,c)}c=0;if(b>>>0>e>>>0)while(1){A=e<<2;n=A+l|0;Q= -A+C|0,R=aI(i,c,0,J[n>>2],d),J[Q>>2]=R;c=J[n>>2]+c|0;e=e+1|0;if((e|0)!=(b|0))continue;break}if(!i)break ea;gc[J[J[i>>2]+4>>2]](i)}if(b>>>0>>0)continue;break}}c=0;b=rc(24);J[695492]=0;d=k;k=L|(I<<16|G<<24|K<<8);h=ga(3447,b|0,d|0,k|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break F;ka:{la:{if(y){g=0;b=1;n=0;while(1){ma:{if(f){gi(J[a+144>>2],j+4|0,2717424);break ma}bj(J[a+76>>2],j+4|0,J[a+96>>2])}d=b;b=J[j+4>>2];if(!(d|b)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,788784,0);gc[J[J[h>>2]+4>>2]](h);if(m)break I; -break H}d=b+g|0;if(d>>>0>y>>>0)break la;na:{if(!n){g=d;break na}if(k>>>0>>0)break la;p=0;d=c;if((b|0)<=0)break na;while(1){c=J[(g<<2)+o>>2];b=rc(24);J[b>>2]=2305576;J[b+4>>2]=0;r=J[c+8>>2];J[b+8>>2]=r;i=J[c+12>>2];J[b+12>>2]=i;e=J[c+16>>2];J[b+16>>2]=e;oa:{if(!((r|0)<=0|(i|0)<=0|(e|0)<=0))if(2147483646/(e>>>0)>>>0>i>>>0)break oa;J[b+12>>2]=-1;J[b+16>>2]=2;i=-1;e=2}J[695492]=0;e=P(e,i);i=$(3441,e+1|0)|0;r=J[695492];J[695492]=0;if((r|0)==1)break F;g=g+1|0;J[b+20>>2]=i;Q=tc(i,J[c+20>>2],e)+e|0, -R=0,H[Q|0]=R;J[J[h+12>>2]+(d<<2)>>2]=b;c=d+1|0;d=c;b=J[j+4>>2];p=p+1|0;if((b|0)>(p|0))continue;break}}n=n^1;if(g>>>0>>0)continue;break}}if((c|0)!=(k|0))break ka;pa:{if(!m)break pa;g=E&1;c=(u<<2)+o|0;b=0;if((m|0)!=1){f=m-g|0;e=0;while(1){k=b<<2;d=J[k+c>>2];if(d)gc[J[J[d>>2]+4>>2]](d);d=J[c+(k|4)>>2];if(d)gc[J[J[d>>2]+4>>2]](d);b=b+2|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}if(!g)break pa;b=J[c+(b<<2)>>2];if(!b)break pa;gc[J[J[b>>2]+4>>2]](b)}Gc(o);if(l)Gc(l);qa:{if((D&513)!=512)break qa;Q=h,R= -PA(J[a+80>>2]),J[Q+16>>2]=R;if(!x)break qa;Q=h,R=PA(J[a+84>>2]),J[Q+20>>2]=R}id(J[a+48>>2],h);b=1;break G}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,789572,0);gc[J[J[h>>2]+4>>2]](h);if(m)break I;break H}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,790396,0);gc[J[J[h>>2]+4>>2]](h);if(m)break I;break H}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,782436,0);qc(dd(p))}b=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781526,0);break G}l=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,791192,0);qc(dd(p));if(!m)break H}g=E&1;c=(u<<2)+o|0;b=0;if((m|0)!=1){e=m-g|0;i=0;while(1){f= -b<<2;d=J[f+c>>2];if(d)gc[J[J[d>>2]+4>>2]](d);d=J[c+(f|4)>>2];if(d)gc[J[J[d>>2]+4>>2]](d);b=b+2|0;i=i+2|0;if((e|0)!=(i|0))continue;break}}if(!g)break H;b=J[c+(b<<2)>>2];if(!b)break H;gc[J[J[b>>2]+4>>2]](b)}Gc(o);b=0;if(!l)break G;Gc(l)}bc=j+80|0;break E}a=Z()|0;qc(b);ba(a|0);B()}if(!b)break g}b=J[J[a+148>>2]+16>>2]+(J[J[a+144>>2]+12>>2]+(J[a+68>>2]+J[J[a+76>>2]+28>>2]|0)|0)|0;J[a+68>>2]=b;ra:{if(b>>>0<=v>>>0){b=v-b|0;if(b>>>0<65537)break ra}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,780473,0);break g}c=J[a+56>> -2];Q=a,R=(gc[J[J[c>>2]+48>>2]](c,b)|0)+J[a+68>>2]|0,J[Q+68>>2]=R}Gc(s);if(!J[a+72>>2])continue;break d}break}Gc(s)}return}Gc(s)}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781526,0);return}a=Z()|0;qc(c);ba(a|0);B()}function lJ(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;a:{if(J[a+292>>2])break a;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break a;Hd(a)}c=J[J[a+36>>2]+16>>2];b:{if(K[c|0]!=60)break b;b=K[c+1|0];if((b|0)!=63){if((b|0)!=33)break b;c:switch(K[c+2|0]-45|0){case 24:d:switch(K[c+ -3|0]-76|0){case 0:k=bc-16|0;bc=k;J[k+12>>2]=0;j=J[a+36>>2];c=J[j+16>>2];e:{if(K[c|0]!=60|K[c+1|0]!=33|(K[c+2|0]!=69|K[c+3|0]!=76))break e;if(K[c+4|0]!=69|K[c+5|0]!=77|(K[c+6|0]!=69|K[c+7|0]!=78))break e;if(K[c+8|0]!=84)break e;J[a+200>>2]=J[a+200>>2]+9;J[j+16>>2]=c+9;J[j+32>>2]=J[j+32>>2]+9;b=j;c=K[c+9|0];if((c|0)==37){Od(a);b=J[a+36>>2];c=K[J[b+16>>2]]}f:{if(c)break f;if((Cd(b)|0)>0)break f;ze(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0)){fe(a,65,37905);break e}Ud(a);g:{h:{h=Uh(a); -if(h)while(1){b=K[J[J[a+36>>2]+16>>2]];if(b){b=b-9|0;if(b>>>0>23)break h;if(1<>2]<2)break h;ze(a);continue}fe(a,68,31028);break e}fe(a,65,34372)}Ud(a);i:{j:{k:{l:{m:{n:{b=J[a+36>>2];c=J[b+16>>2];switch(K[c|0]-37|0){case 3:break j;case 0:break l;case 28:break m;case 32:break n;default:break k}}if(K[c+1|0]!=77|K[c+2|0]!=80|(K[c+3|0]!=84|K[c+4|0]!=89))break k;J[a+200>>2]=J[a+200>>2]+5;J[b+16>>2]=c+5;J[b+32>>2]=J[b+32>>2]+5;e=1;c=K[c+5|0];if((c|0)==37){Od(a);b=J[a+ -36>>2];c=K[J[b+16>>2]]}if(c)break i;if((Cd(b)|0)>0)break i;ze(a);break i}if(K[c+1|0]!=78|K[c+2|0]!=89)break k;J[a+200>>2]=J[a+200>>2]+3;J[b+16>>2]=c+3;J[b+32>>2]=J[b+32>>2]+3;e=2;c=K[c+3|0];if((c|0)==37){Od(a);b=J[a+36>>2];c=K[J[b+16>>2]]}if(c)break i;if((Cd(b)|0)>0)break i;ze(a);break i}if(J[a+96>>2]|J[a+40>>2]!=1)break k;fe(a,21,31647);break e}fe(a,54,35321);break e}c=0;i=J[J[a+36>>2]+56>>2];J[k+12>>2]=0;o:{if(K[J[J[a+36>>2]+16>>2]]!=40){Nf(a,54,35275,h);b=-1;break o}Qd(a);p:{if(J[a+292>>2])break p; -b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break p;Hd(a)}b=-1;if(J[a+172>>2]!=-1){Ud(a);q:{r:{b=J[a+36>>2];d=J[b+16>>2];if(K[d|0]!=35|K[d+1|0]!=80|(K[d+2|0]!=67|K[d+3|0]!=68))break r;if(K[d+4|0]!=65|K[d+5|0]!=84|K[d+6|0]!=65)break r;l=bc-32|0;bc=l;if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249))Hd(a);s:{t:{e=J[a+36>>2];b=J[e+16>>2];if(K[b|0]!=35|K[b+1|0]!=80|(K[b+2|0]!=67|K[b+3|0]!=68))break t;if(K[b+4|0]!=65|K[b+5|0]!=84|K[b+6|0]!=65)break t;J[a+200>>2]=J[a+200>>2]+7;J[e+16>>2]=b+7;J[e+32>>2]= -J[e+32>>2]+7;b=K[b+7|0];if((b|0)==37){Od(a);e=J[a+36>>2];b=K[J[e+16>>2]]}u:{if(b&255)break u;if((Cd(e)|0)>0)break u;ze(a)}Ud(a);c=J[a+36>>2];v:{if(J[a+292>>2])break v;b=J[c+16>>2];if((b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)break v;Pg(a);c=J[a+36>>2]}w:{x:{y:{z:{d=K[J[c+16>>2]];switch(d-40|0){case 0:break x;case 1:break z;default:break y}}if(!(!J[a+104>>2]|(i|0)==J[c+56>>2]))fm(a,90,30203,0,0);Qd(a);c=0;b=Yq(J[a+8>>2],0,1);if(!b)break s;if(K[J[J[a+36>>2]+16>>2]]!=42){c=b;break s}J[b+4>>2]=3;Qd(a); -c=b;break s}b=0;if((d|0)!=124)break w}c=0;b=Yq(J[a+8>>2],0,1);if(!b)break s}d=b;A:{while(1){B:{e=J[J[a+36>>2]+16>>2];c=K[e|0];if((c|0)!=124){if((c|0)!=41|K[e+1|0]!=42)break A;C:{if(!g)break C;c=Yq(J[a+8>>2],g,2);J[d+16>>2]=c;if(!c)break C;J[c+20>>2]=d}if(b)J[b+4>>2]=3;c=J[a+36>>2];if(!(!J[a+104>>2]|(i|0)==J[c+56>>2])){fm(a,90,30203,0,0);c=J[a+36>>2]}J[a+200>>2]=J[a+200>>2]+2;d=J[c+16>>2];J[c+16>>2]=d+2;J[c+32>>2]=J[c+32>>2]+2;d=K[d+2|0];if((d|0)==37){Od(a);c=J[a+36>>2];d=K[J[c+16>>2]]}if(!(d&255))break B; -c=b;break s}if(J[a+172>>2]==-1)break A;Qd(a);D:{E:{if(!g){c=0;e=Yq(J[a+8>>2],0,4);if(!e)break s;J[e+12>>2]=d;b=e;f=b;c=d;f=b;if(c)break E;break D}c=gc[J[659447]](28)|0;if(!c){J[l>>2]=17038;c=0;Cc(0,0,0,0,0,23,2,3,17038,0,0,0,32863,l);break s}J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=4;J[c+4>>2]=1;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;e=Yq(J[a+8>>2],g,2);J[c+12>>2]=e;if(e)J[e+20>>2]=c;J[d+16>>2]=c;e=d;f=c}J[c+20>>2]=e;e=b}Ud(a);g=Uh(a);if(!g){fe(a,68,35143);Vh(J[a+8>>2],f);c=0;break s}Ud(a);b=e;d=f;if(J[a+ -292>>2])continue;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)continue;Hd(a);continue}break}if((Cd(c)|0)>0){c=b;break s}ze(a);c=b;break s}Vh(J[a+8>>2],b);c=0;Pe(a,52,0);break s}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break s;J[a+84>>2]=69;J[l+16>>2]=15871;Cc(0,0,0,a,0,1,69,3,0,0,0,0,32890,l+16|0);J[a+12>>2]=0;if(J[a+288>>2])break s;J[a+212>>2]=1}bc=l+32|0;b=3;break q}c=mJ(a,i,1);b=4}Ud(a);J[k+12>>2]=c}}e=b}Ud(a);F:{if(K[J[J[a+36>>2]+16>>2]])break F;while(1){if(J[a+40>>2]<2)break F;ze(a);if(!K[J[J[a+36>> -2]+16>>2]])continue;break}}Ud(a);b=J[a+36>>2];if(K[J[b+16>>2]]!=62){Pe(a,73,0);b=J[k+12>>2];if(!b)break e;Vh(J[a+8>>2],b);break e}if((b|0)!=(j|0))fe(a,90,30274);Qd(a);G:{b=J[a>>2];if(J[a+212>>2]|!b)break G;b=J[b+36>>2];if(!b)break G;c=J[k+12>>2];if(!c){gc[b|0](J[a+4>>2],h,e,0);break e}J[c+20>>2]=0;gc[b|0](J[a+4>>2],h,e,c);if(J[c+20>>2])break e;Vh(J[a+8>>2],c);break e}b=J[k+12>>2];if(!b)break e;Vh(J[a+8>>2],b)}bc=k+16|0;break b;case 2:break d;default:break b}h=bc-16|0;bc=h;J[h+12>>2]=0;J[h+8>>2]=0; -c=J[a+36>>2];e=J[c+16>>2];H:{if(K[e|0]!=60|K[e+1|0]!=33|(K[e+2|0]!=69|K[e+3|0]!=78))break H;if(K[e+4|0]!=84|K[e+5|0]!=73|(K[e+6|0]!=84|K[e+7|0]!=89))break H;I:{if(J[a+292>>2]){b=c;break I}if((e-J[c+12>>2]|0)<501){b=c;break I}b=c;if((J[b+20>>2]-e|0)>499)break I;Pg(a);b=J[a+36>>2];e=J[b+16>>2]}J[a+200>>2]=J[a+200>>2]+8;J[b+16>>2]=e+8;J[b+32>>2]=J[b+32>>2]+8;d=K[e+8|0];if((d|0)==37){Od(a);b=J[a+36>>2];d=K[J[b+16>>2]]}J:{if(d&255)break J;if((Cd(b)|0)>0)break J;ze(a)}if(!Ud(a))fe(a,65,37838);i=K[J[J[a+ -36>>2]+16>>2]];K:{if((i|0)!=37)break K;Qd(a);if(Ud(a))break K;fe(a,65,38220)}g=Uh(a);if(!g){fe(a,68,34451);break H}if(zp(g,58))an(a,205,37428,g,0);if(!Ud(a))fe(a,65,34334);J[a+172>>2]=10;b=K[J[J[a+36>>2]+16>>2]];L:{M:{if((i|0)==37){N:switch(b-34|0){case 0:case 5:e=u$(a,h+8|0);if(!e)break M;b=J[a>>2];if(!b){b=0;break L}if(J[a+212>>2]){b=0;break L}b=J[b+24>>2];if(!b){b=0;break L}gc[b|0](J[a+4>>2],g,4,0,0,e);b=0;break L;default:break N}b=lB(a,h+12|0,1);f=J[h+12>>2];if(!(b|f)){f=0;Pe(a,84,0);break M}e= -0;if(!b){b=0;break L}j=Et(b);if(!j){xt(a,91,32811,b);break L}if(J[j+32>>2]){Pe(a,92,0);Xj(j);break L}d=J[a>>2];O:{if(J[a+212>>2]|!d)break O;d=J[d+24>>2];if(!d)break O;gc[d|0](J[a+4>>2],g,5,f,b,0)}Xj(j);break L}P:switch(b-34|0){case 0:case 5:e=u$(a,h+8|0);b=J[a>>2];Q:{if(J[a+212>>2]|!b)break Q;b=J[b+24>>2];if(!b)break Q;gc[b|0](J[a+4>>2],g,1,0,0,e)}b=J[a+8>>2];R:{if(b){if(!Eg(J[b+56>>2],2590)){b=0;break L}b=J[a+8>>2];if(b)break R}b=wp(2590);J[a+8>>2]=b;if(!b){ke(a,17086);break H}J[b+92>>2]=64}if(!J[b+ -44>>2]){b=GB(b,14318,0,0);J[J[a+8>>2]+44>>2]=b}RJ(a,g,1,0,0,e);b=0;break L;default:break P}b=lB(a,h+12|0,1);f=J[h+12>>2];S:{if(!(b|f)){Pe(a,84,0);break S}if(!b)break S;d=Et(b);if(!d){xt(a,91,32811,b);break S}if(J[d+32>>2])Pe(a,92,0);Xj(d)}e=K[J[J[a+36>>2]+16>>2]];d=e-9|0;if(!((1<>>0<=23:0)|(e|0)==62))fe(a,65,38128);Ud(a);T:{e=J[a+36>>2];d=J[e+16>>2];if(K[d|0]!=78|K[d+1|0]!=68|(K[d+2|0]!=65|K[d+3|0]!=84))break T;if(K[d+4|0]!=65)break T;J[a+200>>2]=J[a+200>>2]+5;J[e+16>>2]=d+5;J[e+32>> -2]=J[e+32>>2]+5;d=K[d+5|0];if((d|0)==37){Od(a);e=J[a+36>>2];d=K[J[e+16>>2]]}U:{if(d&255)break U;if((Cd(e)|0)>0)break U;ze(a)}d=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))fe(a,65,38098);Ud(a);j=Uh(a);e=0;d=J[a>>2];if(J[a+212>>2]|!d)break L;d=J[d+40>>2];if(!d)break L;gc[d|0](J[a+4>>2],g,f,b,j);break L}d=J[a>>2];V:{if(J[a+212>>2]|!d)break V;d=J[d+24>>2];if(!d)break V;gc[d|0](J[a+4>>2],g,2,f,b,0)}e=0;if(!J[a+16>>2])break L;d=J[a+8>>2];W:{if(d){if(!Eg(J[d+56>>2],2590))break L;e=J[a+8>>2]; -if(e)break W}e=wp(2590);J[a+8>>2]=e;if(!e){ke(a,17086);break H}J[e+92>>2]=64}if(!J[e+44>>2]){d=GB(e,14318,0,0);J[J[a+8>>2]+44>>2]=d}e=0;RJ(a,g,2,f,b,0);break L}b=0;e=0}if(J[a+172>>2]==-1)break H;Ud(a);d=J[a+36>>2];X:{if(K[J[d+16>>2]]!=62){Nf(a,37,35489,g);qp(a);break X}if((c|0)!=(d|0))fe(a,90,30071);Qd(a)}Y:{if(!J[h+8>>2])break Y;c=J[a>>2];Z:{_:{$:{if((i|0)==37){if(!c)break Z;c=J[c+96>>2];if(!c)break Z;c=gc[c|0](J[a+4>>2],g)|0;break $}aa:{if(!c)break aa;c=J[c+20>>2];if(!c)break aa;c=gc[c|0](J[a+4>> -2],g)|0;if(c)break _}if(J[a+4>>2]!=(a|0))break Z;c=KB(a,g)}if(!c)break Z}if(J[c+36>>2]){gc[J[659451]](J[h+8>>2]);break Y}J[c+36>>2]=J[h+8>>2];break Y}gc[J[659451]](J[h+8>>2])}if(e)gc[J[659451]](e);if(b)gc[J[659451]](b);if(!f)break H;gc[J[659451]](f)}bc=h+16|0;break b;case 20:m=bc-16|0;bc=m;j=J[a+36>>2];c=J[j+16>>2];ba:{if(K[c|0]!=60|K[c+1|0]!=33|(K[c+2|0]!=65|K[c+3|0]!=84))break ba;if(K[c+4|0]!=84|K[c+5|0]!=76|(K[c+6|0]!=73|K[c+7|0]!=83))break ba;if(K[c+8|0]!=84)break ba;J[a+200>>2]=J[a+200>>2]+9; -J[j+16>>2]=c+9;J[j+32>>2]=J[j+32>>2]+9;b=j;c=K[c+9|0];if((c|0)==37){Od(a);b=J[a+36>>2];c=K[J[b+16>>2]]}ca:{if(c&255)break ca;if((Cd(b)|0)>0)break ca;ze(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))fe(a,65,37871);Ud(a);k=Uh(a);if(!k){fe(a,68,31070);break ba}Ud(a);b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Hd(a);b=J[a+36>>2]}h=J[b+16>>2];da:{if(K[h|0]==62)break da;while(1){if(J[a+172>>2]==-1)break da;J[m+8>>2]=0;if(!(J[a+292>>2]|(J[b+20>>2]-h|0)>249))Hd(a);J[m+12>> -2]=0;l=Uh(a);if(!l){fe(a,68,34045);b=J[a+36>>2];break da}b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Hd(a);b=J[a+36>>2]}b=K[J[b+16>>2]]-9|0;if(!(1<>>0<=23:0)){fe(a,65,34638);b=J[a+36>>2];break da}Ud(a);i=bc-16|0;bc=i;ea:{if(J[a+292>>2])break ea;c=J[a+36>>2];b=J[c+16>>2];if((b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)break ea;Pg(a)}fa:{ga:{ha:{ia:{ja:{ka:{d=J[a+36>>2];b=J[d+16>>2];switch(K[b|0]-67|0){case 11:break ha;case 2:break ia;case 6:break ja;case 0:break ka;default:break ga}}if(K[b+ -1|0]!=68|K[b+2|0]!=65|(K[b+3|0]!=84|K[b+4|0]!=65))break ga;J[a+200>>2]=J[a+200>>2]+5;J[d+16>>2]=b+5;J[d+32>>2]=J[d+32>>2]+5;c=1;b=K[b+5|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Cd(d)|0)>0)break fa;ze(a);break fa}if(K[b+1|0]!=68)break ga;if(!(K[b+2|0]!=82|K[b+3|0]!=69|(K[b+4|0]!=70|K[b+5|0]!=83))){J[a+200>>2]=J[a+200>>2]+6;J[d+16>>2]=b+6;J[d+32>>2]=J[d+32>>2]+6;c=4;b=K[b+6|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Cd(d)|0)>0)break fa; -ze(a);break fa}if(!(K[b+2|0]!=82|K[b+3|0]!=69|K[b+4|0]!=70)){J[a+200>>2]=J[a+200>>2]+5;J[d+16>>2]=b+5;J[d+32>>2]=J[d+32>>2]+5;c=3;b=K[b+5|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Cd(d)|0)>0)break fa;ze(a);break fa}c=2;J[a+200>>2]=J[a+200>>2]+2;J[d+16>>2]=b+2;J[d+32>>2]=J[d+32>>2]+2;b=K[b+2|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Cd(d)|0)>0)break fa;while(1){b=J[a+40>>2];if((b|0)<2)break fa;la:{ma:{na:{if(!J[689531]){g=b-1|0;J[a+40>> -2]=g;d=J[a+48>>2];break na}J[i>>2]=b;d=0;gc[J[659549]](J[689514],36109,i);b=J[a+40>>2];if((b|0)<=0)break la;g=b-1|0;J[a+40>>2]=g;d=J[a+48>>2];f=0;e=0;if((b|0)==1)break ma}f=g;e=J[((b<<2)+d|0)-8>>2]}J[a+36>>2]=e;b=(f<<2)+d|0;d=J[b>>2];J[b>>2]=0}dh(d);b=J[a+36>>2];if(K[J[b+16>>2]])break fa;if((Cd(b)|0)<=0)continue;break}break fa}if(K[b+1|0]!=78)break ga;if(!(K[b+2|0]!=84|K[b+3|0]!=73|(K[b+4|0]!=84|K[b+5|0]!=89))){J[a+200>>2]=J[a+200>>2]+6;J[d+16>>2]=b+6;J[d+32>>2]=J[d+32>>2]+6;c=5;b=K[b+6|0];if((b| -0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Cd(d)|0)>0)break fa;ze(a);break fa}if(K[b+2|0]!=84|K[b+3|0]!=73|(K[b+4|0]!=84|K[b+5|0]!=73))break ga;if(K[b+6|0]!=69|K[b+7|0]!=83)break ga;J[a+200>>2]=J[a+200>>2]+8;J[d+16>>2]=b+8;J[d+32>>2]=J[d+32>>2]+8;c=6;b=K[b+8|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Cd(d)|0)>0)break fa;ze(a);break fa}if(K[b+1|0]!=77)break ga;oa:{if(K[b+2|0]!=84|K[b+3|0]!=79|(K[b+4|0]!=75|K[b+5|0]!=69))break oa;if(K[b+6|0]!=78| -K[b+7|0]!=83)break oa;c=8;J[a+200>>2]=J[a+200>>2]+8;J[d+16>>2]=b+8;J[d+32>>2]=J[d+32>>2]+8;b=K[b+8|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Cd(d)|0)>0)break fa;ze(a);break fa}if(K[b+2|0]!=84|K[b+3|0]!=79|(K[b+4|0]!=75|K[b+5|0]!=69))break ga;if(K[b+6|0]!=78)break ga;c=7;J[a+200>>2]=J[a+200>>2]+7;J[d+16>>2]=b+7;J[d+32>>2]=J[d+32>>2]+7;b=K[b+7|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Cd(d)|0)>0)break fa;ze(a);break fa}pa:{qa:{d=J[a+36>> -2];b=J[d+16>>2];if(K[b|0]!=78|K[b+1|0]!=79|(K[b+2|0]!=84|K[b+3|0]!=65))break qa;if(K[b+4|0]!=84|K[b+5|0]!=73|(K[b+6|0]!=79|K[b+7|0]!=78))break qa;J[a+200>>2]=J[a+200>>2]+8;J[d+16>>2]=b+8;J[d+32>>2]=J[d+32>>2]+8;b=K[b+8|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}ra:{if(b)break ra;if((Cd(d)|0)>0)break ra;ze(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0)){fe(a,65,37937);c=0;break pa}Ud(a);d=0;f=bc-48|0;bc=f;c=J[a+36>>2];b=J[c+16>>2];sa:{if(K[b|0]!=40){if(!(!J[a+212>>2]|J[a+172>> -2]!=-1)){c=0;break sa}J[a+84>>2]=48;J[f+32>>2]=13708;c=0;Cc(0,0,0,a,0,1,48,3,0,0,0,0,32890,f+32|0);J[a+12>>2]=0;if(J[a+288>>2])break sa;J[a+212>>2]=1;break sa}if(!(J[a+292>>2]|(b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499))Pg(a);b=0;ta:{ua:{while(1){Qd(a);Ud(a);e=Uh(a);if(!e)break ua;c=b;va:{if(b)while(1){if(Eg(e,J[c+4>>2])){fm(a,541,35535,e,0);if(wk(J[a+296>>2],e))break va;gc[J[659451]](e);break va}c=J[c>>2];if(c)continue;break}c=gc[J[659447]](8)|0;if(!c){J[f>>2]=17038;c=0;Cc(0,0,0,0,0,23,2,3,17038, -0,0,0,32863,f);vk(b);break sa}J[c>>2]=0;J[c+4>>2]=0;n=c,o=$e(e),J[n+4>>2]=o;wa:{if(!d){b=c;break wa}J[d>>2]=c}d=c}Ud(a);c=K[J[J[a+36>>2]+16>>2]];if((c|0)==124)continue;break}if((c|0)!=41){if(J[a+172>>2]==-1?J[a+212>>2]:0)break ta;J[a+84>>2]=49;J[f+16>>2]=6861;Cc(0,0,0,a,0,1,49,3,0,0,0,0,32890,f+16|0);J[a+12>>2]=0;if(J[a+288>>2])break ta;J[a+212>>2]=1;break ta}Qd(a);c=b;break sa}fe(a,68,33458)}vk(b);c=0}bc=f+48|0;J[m+12>>2]=c;c=c?10:0;break pa}d=0;f=bc+-64|0;bc=f;c=J[a+36>>2];b=J[c+16>>2];xa:{if(K[b| -0]!=40){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){b=0;break xa}J[a+84>>2]=50;J[f+48>>2]=6736;b=0;Cc(0,0,0,a,0,1,50,3,0,0,0,0,32890,f+48|0);J[a+12>>2]=0;if(J[a+288>>2])break xa;J[a+212>>2]=1;break xa}if(!(J[a+292>>2]|(b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499))Pg(a);b=0;ya:{while(1){Qd(a);Ud(a);e=v$(a);if(!e)break ya;c=b;za:{if(b)while(1){if(Eg(e,J[c+4>>2])){fm(a,541,35593,e,0);if(wk(J[a+296>>2],e))break za;gc[J[659451]](e);break za}c=J[c>>2];if(c)continue;break}c=gc[J[659447]](8)|0;Aa:{if(!c){J[f+32>>2]= -17038;Cc(0,0,0,0,0,23,2,3,17038,0,0,0,32863,f+32|0);break Aa}J[c>>2]=0;J[c+4>>2]=0;n=c,o=$e(e),J[n+4>>2]=o}if(!wk(J[a+296>>2],e))gc[J[659451]](e);if(!c){vk(b);b=0;break xa}Ba:{if(!d){b=c;break Ba}J[d>>2]=c}d=c}Ud(a);c=K[J[J[a+36>>2]+16>>2]];if((c|0)==124)continue;break}if((c|0)!=41){if(J[a+172>>2]==-1?J[a+212>>2]:0)break xa;J[a+84>>2]=51;J[f+16>>2]=6818;Cc(0,0,0,a,0,1,51,3,0,0,0,0,32890,f+16|0);J[a+12>>2]=0;if(J[a+288>>2])break xa;J[a+212>>2]=1;break xa}Qd(a);break xa}if(J[a+172>>2]==-1?J[a+212>> -2]:0)break xa;J[a+84>>2]=67;J[f>>2]=6778;Cc(0,0,0,a,0,1,67,3,0,0,0,0,32890,f);J[a+12>>2]=0;if(J[a+288>>2])break xa;J[a+212>>2]=1}bc=f- -64|0;J[m+12>>2]=b;c=b?9:0}}bc=i+16|0;f=c;Ca:{Da:{if((c|0)<=0)break Da;b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Hd(a);b=J[a+36>>2]}b=K[J[b+16>>2]]-9|0;if(!(1<>>0<=23:0)){fe(a,65,34196);b=J[m+12>>2];if(!b)break Da;vk(b);b=J[a+36>>2];break da}Ud(a);J[m+8>>2]=0;c=1;Ea:{Fa:{Ga:{Ha:{d=J[a+36>>2];b=J[d+16>>2];if(K[b|0]!=35)break Ha;Ia:switch(K[b+ -1|0]-70|0){case 12:if(K[b+2|0]!=69|K[b+3|0]!=81|(K[b+4|0]!=85|K[b+5|0]!=73))break Ha;if(K[b+6|0]!=82|K[b+7|0]!=69|K[b+8|0]!=68)break Ha;J[a+200>>2]=J[a+200>>2]+9;J[d+16>>2]=b+9;J[d+32>>2]=J[d+32>>2]+9;c=2;b=K[b+9|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break Ea;if((Cd(d)|0)>0)break Ea;ze(a);break Ea;case 3:if(K[b+2|0]!=77|K[b+3|0]!=80|(K[b+4|0]!=76|K[b+5|0]!=73))break Ha;if(K[b+6|0]!=69|K[b+7|0]!=68)break Ha;J[a+200>>2]=J[a+200>>2]+8;J[d+16>>2]=b+8;J[d+32>>2]=J[d+32>>2]+8;c=3; -b=K[b+8|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break Ea;if((Cd(d)|0)>0)break Ea;ze(a);break Ea;case 0:break Ia;default:break Ha}if(K[b+2|0]!=73|K[b+3|0]!=88|(K[b+4|0]!=69|K[b+5|0]!=68))break Ha;J[a+200>>2]=J[a+200>>2]+6;J[d+16>>2]=b+6;J[d+32>>2]=J[d+32>>2]+6;b=K[b+6|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}Ja:{if(b)break Ja;if((Cd(d)|0)>0)break Ja;ze(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))fe(a,65,38036);Ud(a);c=4;if(J[a+36>>2])break Ha;J[a+ -172>>2]=3;break Ga}b=oJ(a,0,0,0);J[a+172>>2]=3;if(b)break Fa}fe(a,J[a+84>>2],33019);break Ea}J[m+8>>2]=b}e=c;i=J[m+8>>2];if(!(!i|(f|0)==1)){b=i;g=b;while(1){c=b;b=b+1|0;d=K[c|0];if((d|0)==32)continue;break}while(1){Ka:{La:{Ma:{if((d|0)!=32){if(!d)break Ka;c=c+1|0;break Ma}while(1){b=d;d=32;if((b|0)==32){d=K[c+1|0];c=c+1|0;continue}break}if(!b)break La}H[g|0]=d;g=g+1|0}d=K[c|0];continue}break}H[g|0]=0}Na:{b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Hd(a);b=J[a+36>>2]}b=J[b+16>>2]; -d=K[b|0];c=d-9|0;if(!(c>>>0>23|!(1<>2]+16>>2];break Na}if((d|0)==62)break Na;fe(a,65,33800);if(i)gc[J[659451]](i);b=J[m+12>>2];if(!b)break Da;vk(b);b=J[a+36>>2];break da}if((b|0)!=(h|0))break Ca;Pe(a,1,33630);if(i)gc[J[659451]](i);b=J[m+12>>2];if(!b)break Da;vk(b)}b=J[a+36>>2];break da}Oa:{Pa:{b=J[a>>2];if(J[a+212>>2]|!b)break Pa;b=J[b+32>>2];if(!b)break Pa;gc[b|0](J[a+4>>2],k,l,f,e,i,J[m+12>>2]);break Oa}b=J[m+12>>2];if(!b)break Oa;vk(b)}b=J[a+324>>2];if(!(!b|!i|((e| -0)==3|(e|0)==2))){h=bc-16|0;bc=h;b=J[a+352>>2];Qa:{if(b)if(bn(b,k,l))break Qa;Ra:{if(!J[a+348>>2]){b=up(10,J[a+296>>2]);J[a+348>>2]=b;if(!b)break Ra}c=CJ(k,h+12|0);b=J[a+296>>2];Sa:{if(!c){d=le(b,k,-1);c=0;break Sa}d=le(b,c,-1);c=le(J[a+296>>2],k,J[h+12>>2])}Ta:{b=bn(J[a+348>>2],d,c);Ua:{if(!b){b=gc[J[659447]](108)|0;if(!b)break Ra;J[b>>2]=0;J[b+4>>2]=4;if((f0(J[a+348>>2],d,c,b)|0)>=0)break Ua;break Ta}e=J[b+4>>2];if((e|0)>J[b>>2])break Ua;b=gc[J[659452]](b,P(e,40)+28|0)|0;if(!b)break Ra;J[b+4>>2]= -J[b+4>>2]<<1;if((f0(J[a+348>>2],d,c,b)|0)<0)break Ta}d=CJ(l,h+12|0);c=J[a+296>>2];Va:{if(!d){d=le(c,l,-1);g=0;break Va}d=le(c,d,-1);g=le(J[a+296>>2],l,J[h+12>>2])}e=b+8|0;c=e+P(J[b>>2],20)|0;J[c>>2]=d;J[c+4>>2]=g;c=xk(i);J[h+12>>2]=c;g=le(J[a+296>>2],i,c);c=J[b>>2];d=e+P(c,20)|0;J[d+8>>2]=g;J[d+12>>2]=g+J[h+12>>2];J[d+16>>2]=J[a+96>>2]?10077:0;J[b>>2]=c+1;break Qa}gc[J[659451]](b)}ke(a,0)}bc=h+16|0;b=J[a+324>>2]}if(b)Wa:{Xa:{b=J[a+352>>2];if(!b){b=up(10,J[a+296>>2]);J[a+352>>2]=b;if(!b)break Xa}if(bn(b, -k,l))break Wa;KJ(J[a+352>>2],k,l,f);break Wa}ke(a,0)}if(i)gc[J[659451]](i);b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Hd(a);b=J[a+36>>2]}h=J[b+16>>2];if(K[h|0]!=62)continue;break}}if(K[J[b+16>>2]]!=62)break ba;if((b|0)!=(j|0))fm(a,90,30133,0,0);Qd(a)}bc=m+16|0;break b;case 33:f=bc-16|0;bc=f;c=J[a+36>>2];e=J[c+16>>2];Ya:{if(K[e|0]!=60|K[e+1|0]!=33|(K[e+2|0]!=78|K[e+3|0]!=79))break Ya;if(K[e+4|0]!=84|K[e+5|0]!=65|(K[e+6|0]!=84|K[e+7|0]!=73))break Ya;if(K[e+8|0]!=79|K[e+9|0]!=78)break Ya; -Za:{if(J[a+292>>2]){b=c;break Za}if((e-J[c+12>>2]|0)<501){b=c;break Za}b=c;if((J[b+20>>2]-e|0)>499)break Za;Pg(a);b=J[a+36>>2];e=J[b+16>>2]}J[a+200>>2]=J[a+200>>2]+10;J[b+16>>2]=e+10;J[b+32>>2]=J[b+32>>2]+10;d=K[e+10|0];if((d|0)==37){Od(a);b=J[a+36>>2];d=K[J[b+16>>2]]}_a:{if(d&255)break _a;if((Cd(b)|0)>0)break _a;ze(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0)){fe(a,65,37970);break Ya}Ud(a);e=Uh(a);if(!e){Pe(a,48,0);break Ya}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<= -23:0)){fe(a,65,37797);break Ya}if(zp(e,58))an(a,205,37475,e,0);Ud(a);d=lB(a,f+12|0,0);Ud(a);b=J[a+36>>2];$a:{if(K[J[b+16>>2]]==62){if((b|0)!=(c|0))fe(a,65,30337);Qd(a);b=J[a>>2];if(J[a+212>>2]|!b)break $a;b=J[b+28>>2];if(!b)break $a;gc[b|0](J[a+4>>2],e,J[f+12>>2],d);break $a}Pe(a,49,0)}if(d)gc[J[659451]](d);b=J[f+12>>2];if(!b)break Ya;gc[J[659451]](b)}bc=f+16|0;break b;case 0:break c;default:break b}wt(a);break b}vt(a)}if(J[a+172>>2]!=-1){ab:{if(J[a+96>>2])break ab;b=J[a+40>>2];if((b|0)==1){kB(a); -if(J[a+96>>2])break ab;b=J[a+40>>2]}if((b|0)<2)break ab;b=J[J[a+36>>2]+16>>2];if(K[b|0]!=60|K[b+1|0]!=33|K[b+2|0]!=91)break ab;kJ(a)}J[a+172>>2]=3}}function Fka(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;d=bc-288|0;bc=d;e=K[c+11|0];i=e<<24>>24;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0<1073741808){k:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break k}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+ -260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d+256|0,2437100)|0;e=J[695492];J[695492]=0;l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{if((e| -0)!=1){J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break Sa;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;Ta:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break Ta}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+260>>2]= -g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d+256|0,2437116)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Qa;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break Pa;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>> -0>=1073741808)break i;Ua:{if(g>>>0<=1){J[d+232>>2]=0;J[d+224>>2]=0;J[d+228>>2]=0;H[d+235|0]=g;e=d+224|0;f=d+228|0;break Ua}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+228>>2]=g;J[d+224>>2]=e;J[d+232>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d+224|0,2437140)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Na;J[d+248>>2]=J[f+8>>2];e=J[f+4>>2];J[d+240>>2]=J[f>>2];J[d+244>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2]; -f=J[c+4>>2];h=K[c+11|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+240|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ma;J[d+264>>2]=J[f+8>>2];e=J[f+4>>2];J[d+256>>2]=J[f>>2];J[d+260>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+256|0,2437180)|0;e=J[695492];J[695492]=0;if((e|0)==1)break La;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break Ka; -if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);if(H[d+251|0]<0)qc(J[d+240>>2]);if(H[d+235|0]<0)qc(J[d+224>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;Va:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break Va}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=32;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]= -0;f=aa(2860,d+256|0,2437224)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ga;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break Fa;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);j=(O[a+16>>3]-O[a+8>>3])*56.69291338582678;Wa:{if(R(j)<2147483648){e=~~j;break Wa}e=-2147483648}wg(b,e);Oc(b,2437256,-1);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+20|0;if(g>>> -0>=1073741808)break h;Xa:{if(g>>>0<=1){J[d+280>>2]=0;J[d+272>>2]=0;J[d+276>>2]=0;H[d+283|0]=g;e=d+272|0;break Xa}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+276>>2]=g;J[d+272>>2]=e;J[d+280>>2]=f|-2147483648}f=e;e=h<<2;k=tc(Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,2437268,80),l=0,J[k+80>>2]=l;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break Da;if(H[d+283|0]<0)qc(J[d+272>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+2|0;if(g>>>0>=1073741808)break a;Ya:{if(h>>>0>= -4294967294){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+264|0;break Ya}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+8|0}J[e>>2]=60;J[e+4>>2]=47;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d+256|0,2437116)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ca;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0, -d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break Ba;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;Za:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break Za}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860, -d+256|0,2437364)|0;e=J[695492];J[695492]=0;if((e|0)==1)break za;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break ya;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;_a:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break _a}e=g|3;if(e>>> -0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d+256|0,2437380)|0;e=J[695492];J[695492]=0;if((e|0)==1)break wa;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break va;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);e=K[c+ -11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break g;$a:{if(g>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=g;e=d;f=d+4|0;break $a}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+4>>2]=g;J[d>>2]=e;J[d+8>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d|0,2437404)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ta;J[d+24>>2]=J[f+8>>2];e=J[f+4>>2];J[d+16>>2]=J[f>>2];J[d+20>>2]=e;J[f>>2]=0;J[f+4>>2]=0; -J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+16|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break sa;J[d+40>>2]=J[f+8>>2];e=J[f+4>>2];J[d+32>>2]=J[f>>2];J[d+36>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+32|0,2437440)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ra;J[d+56>>2]=J[f+8>>2];e=J[f+4>>2];J[d+48>>2]=J[f>>2];J[d+52>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;f=J[a+80>>2];e=J[a+76>>2];h=K[a+87|0];J[695492]=0;g=e;i=a+ -76|0;e=h<<24>>24<0;f=ga(2794,d+48|0,(e?g:i)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break qa;J[d+72>>2]=J[f+8>>2];e=J[f+4>>2];J[d+64>>2]=J[f>>2];J[d+68>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d- -64|0,2437256)|0;e=J[695492];J[695492]=0;if((e|0)==1)break pa;J[d+88>>2]=J[f+8>>2];e=J[f+4>>2];J[d+80>>2]=J[f>>2];J[d+84>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+80|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break oa;J[d+104>>2]=J[f+8>>2];e=J[f+4>>2];J[d+96>>2]=J[f>>2];J[d+100>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+96|0,2437476)|0;e=J[695492];J[695492]=0;if((e|0)==1)break na;J[d+120>>2]=J[f+8>>2];e=J[f+4>>2];J[d+112>>2]=J[f>>2];J[d+116>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[a+76>>2];f=J[a+80>>2];h=K[a+87|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+112|0,(e?g:i)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ma;J[d+136>>2]=J[f+8>>2];e=J[f+ -4>>2];J[d+128>>2]=J[f>>2];J[d+132>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+128|0,2437256)|0;e=J[695492];J[695492]=0;if((e|0)==1)break la;J[d+152>>2]=J[f+8>>2];e=J[f+4>>2];J[d+144>>2]=J[f>>2];J[d+148>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+144|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ka;J[d+168>>2]=J[f+8>>2];e=J[f+4>>2];J[d+160>>2]=J[f>>2];J[d+164>>2]=e;J[f>>2]=0;J[f+4>>2]=0; -J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+160|0,2437512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ja;J[d+184>>2]=J[f+8>>2];e=J[f+4>>2];J[d+176>>2]=J[f>>2];J[d+180>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[a+76>>2];f=J[a+80>>2];h=K[a+87|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+176|0,(e?g:i)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ia;J[d+200>>2]=J[f+8>>2];e=J[f+4>>2];J[d+192>>2]=J[f>>2];J[d+196>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+192|0,2437256)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break ha;J[d+216>>2]=J[f+8>>2];e=J[f+4>>2];J[d+208>>2]=J[f>>2];J[d+212>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+208|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ga;J[d+232>>2]=J[f+8>>2];e=J[f+4>>2];J[d+224>>2]=J[f>>2];J[d+228>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+224|0,2437560)|0;e=J[695492];J[695492]=0;if((e|0)==1)break fa;J[d+248>>2]=J[f+8>>2];e=J[f+ -4>>2];J[d+240>>2]=J[f>>2];J[d+244>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[a+76>>2];f=J[a+80>>2];h=K[a+87|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+240|0,(e?g:i)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break ea;J[d+264>>2]=J[f+8>>2];e=J[f+4>>2];J[d+256>>2]=J[f>>2];J[d+260>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+256|0,2437584)|0;e=J[695492];J[695492]=0;if((e|0)==1)break da;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>> -2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break ca;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);if(H[d+251|0]<0)qc(J[d+240>>2]);if(H[d+235|0]<0)qc(J[d+224>>2]);if(H[d+219|0]<0)qc(J[d+208>>2]);if(H[d+203|0]<0)qc(J[d+192>>2]);if(H[d+187|0]<0)qc(J[d+176>>2]);if(H[d+171|0]<0)qc(J[d+160>>2]);if(H[d+155|0]<0)qc(J[d+144>>2]);if(H[d+139|0]<0)qc(J[d+128>>2]);if(H[d+123|0]<0)qc(J[d+112>>2]);if(H[d+107|0]<0)qc(J[d+96>>2]);if(H[d+91|0]<0)qc(J[d+80>> -2]);if(H[d+75|0]<0)qc(J[d+64>>2]);if(H[d+59|0]<0)qc(J[d+48>>2]);if(H[d+43|0]<0)qc(J[d+32>>2]);if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+11|0]<0)qc(J[d>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break f;ab:{if(g>>>0<=1){J[d+232>>2]=0;J[d+224>>2]=0;J[d+228>>2]=0;H[d+235|0]=g;e=d+224|0;f=d+228|0;break ab}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+228>>2]=g;J[d+224>>2]=e;J[d+232>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0, -l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d+224|0,2437604)|0;e=J[695492];J[695492]=0;if((e|0)==1)break M;J[d+248>>2]=J[f+8>>2];e=J[f+4>>2];J[d+240>>2]=J[f>>2];J[d+244>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[695492]=0;g=e;e=h<<24>>24<0;f=ga(2794,d+240|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break L;J[d+264>>2]=J[f+8>>2];e=J[f+4>>2];J[d+256>>2]=J[f>>2];J[d+260>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;f=aa(2860,d+256|0,2437624)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break K;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e|0)==1)break J;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);if(H[d+251|0]<0)qc(J[d+240>>2]);if(H[d+235|0]<0)qc(J[d+224>>2]);wg(b,J[a+88>>2]);Oc(b,2437584,-1);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+2|0;if(g>>>0>=1073741808)break a;bb:{if(h>>>0>=4294967294){J[d+264>>2]=0;J[d+256>> -2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+264|0;break bb}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+8|0}J[e>>2]=60;J[e+4>>2]=47;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d+256|0,2437380)|0;e=J[695492];J[695492]=0;if((e|0)==1)break F;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);e=J[695492];J[695492]=0;if((e| -0)==1)break E;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break e;cb:{if(g>>>0<=1){J[d+200>>2]=0;J[d+192>>2]=0;J[d+196>>2]=0;H[d+203|0]=g;e=d+192|0;f=d+196|0;break cb}e=g|3;if(e>>>0>=1073741823)break j;f=e+1|0;e=rc(f<<2);J[d+196>>2]=g;J[d+192>>2]=e;J[d+200>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=Zc(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[695492]=0;f=aa(2860,d+192|0,2437652)|0;e=J[695492];J[695492]= -0;if((e|0)==1)break C;J[d+216>>2]=J[f+8>>2];e=J[f+4>>2];J[d+208>>2]=J[f>>2];J[d+212>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;f=J[a+68>>2];e=J[a+64>>2];h=K[a+75|0];J[695492]=0;g=a- -64|0;a=h<<24>>24<0;e=ga(2794,d+208|0,(a?e:g)|0,(a?f:h)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break B;J[d+232>>2]=J[e+8>>2];a=J[e+4>>2];J[d+224>>2]=J[e>>2];J[d+228>>2]=a;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;e=aa(2860,d+224|0,2437352)|0;a=J[695492];J[695492]=0;if((a|0)==1)break A;J[d+248>>2]=J[e+8>>2];a=J[e+4>> -2];J[d+240>>2]=J[e>>2];J[d+244>>2]=a;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;a=J[c>>2];e=J[c+4>>2];f=K[c+11|0];J[695492]=0;g=a;a=f<<24>>24<0;e=ga(2794,d+240|0,(a?g:c)|0,(a?e:f)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break z;J[d+264>>2]=J[e+8>>2];a=J[e+4>>2];J[d+256>>2]=J[e>>2];J[d+260>>2]=a;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;e=aa(2860,d+256|0,2437752)|0;a=J[695492];J[695492]=0;if((a|0)==1)break y;J[d+280>>2]=J[e+8>>2];a=J[e+4>>2];J[d+272>>2]=J[e>>2];J[d+276>>2]=a;J[e>>2]=0;J[e+4>>2]=0;J[e+ -8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);a=J[695492];J[695492]=0;if((a|0)==1)break x;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);if(H[d+251|0]<0)qc(J[d+240>>2]);if(H[d+235|0]<0)qc(J[d+224>>2]);if(H[d+219|0]<0)qc(J[d+208>>2]);if(H[d+203|0]<0)qc(J[d+192>>2]);a=K[c+11|0];f=a<<24>>24;e=(f|0)<0?J[c+4>>2]:a;h=e+2|0;if(h>>>0>=1073741808)break a;db:{if(e>>>0>=4294967294){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=h;i=d+256|0;g=d+264|0;break db}a=h|3;if(a>>>0>=1073741823)break j; -a=a+1|0;i=rc(a<<2);J[d+260>>2]=h;J[d+256>>2]=i;J[d+264>>2]=a|-2147483648;g=i+8|0}J[i>>2]=60;J[i+4>>2]=47;a=e<<2;k=Zc(g,(f|0)<0?J[c>>2]:c,a)+a|0,l=0,J[k>>2]=l;J[695492]=0;e=aa(2860,d+256|0,2437364)|0;a=J[695492];J[695492]=0;if((a|0)==1)break r;J[d+280>>2]=J[e+8>>2];a=J[e+4>>2];J[d+272>>2]=J[e>>2];J[d+276>>2]=a;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);a=J[695492];J[695492]=0;if((a|0)==1)break q;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);a=K[c+11|0];f=a<< -24>>24;e=(f|0)<0?J[c+4>>2]:a;h=e+2|0;if(h>>>0>=1073741808)break a;eb:{if(e>>>0>=4294967294){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=h;i=d+256|0;g=d+264|0;break eb}a=h|3;if(a>>>0>=1073741823)break j;a=a+1|0;i=rc(a<<2);J[d+260>>2]=h;J[d+256>>2]=i;J[d+264>>2]=a|-2147483648;g=i+8|0}J[i>>2]=60;J[i+4>>2]=47;a=e<<2;k=Zc(g,(f|0)<0?J[c>>2]:c,a)+a|0,l=0,J[k>>2]=l;J[695492]=0;c=aa(2860,d+256|0,2437100)|0;a=J[695492];J[695492]=0;if((a|0)==1)break o;J[d+280>>2]=J[c+8>>2];a=J[c+4>>2];J[d+272>>2]=J[c>> -2];J[d+276>>2]=a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[695492]=0;da(6445,b|0,d+272|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;if(H[d+283|0]<0)qc(J[d+272>>2]);if(H[d+267|0]<0)qc(J[d+256>>2]);bc=d+288|0;return}c=Z()|0;break Ra}c=Z()|0;if(H[d+283|0]>=0)break Ra;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;break d}c=Z()|0;break Oa}c=Z()|0;if(H[d+283|0]>=0)break Oa;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;break d}c=Z()|0;break Ha}c=Z()|0;break Ia}c=Z()|0;break Ja}c=Z()|0;if(H[d+283|0]>=0)break Ja;qc(J[d+ -272>>2])}if(H[d+267|0]>=0)break Ia;qc(J[d+256>>2])}if(H[d+251|0]>=0)break Ha;qc(J[d+240>>2])}if(H[d+235|0]>=0)break l;break c}c=Z()|0;break Ea}c=Z()|0;if(H[d+283|0]>=0)break Ea;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;break d}c=Z()|0;if(H[d+283|0]>=0)break l;qc(J[d+272>>2]);break b}c=Z()|0;break Aa}c=Z()|0;if(H[d+283|0]>=0)break Aa;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;break d}c=Z()|0;break xa}c=Z()|0;if(H[d+283|0]>=0)break xa;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;break d}c=Z()|0;break ua}c= -Z()|0;if(H[d+283|0]>=0)break ua;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;break d}c=Z()|0;break N}c=Z()|0;break O}c=Z()|0;break P}c=Z()|0;break Q}c=Z()|0;break R}c=Z()|0;break S}c=Z()|0;break T}c=Z()|0;break U}c=Z()|0;break V}c=Z()|0;break W}c=Z()|0;break X}c=Z()|0;break Y}c=Z()|0;break Z}c=Z()|0;break _}c=Z()|0;break $}c=Z()|0;break aa}c=Z()|0;break ba}c=Z()|0;if(H[d+283|0]>=0)break ba;qc(J[d+272>>2])}if(H[d+267|0]>=0)break aa;qc(J[d+256>>2])}if(H[d+251|0]>=0)break $;qc(J[d+240>>2])}if(H[d+235|0]>= -0)break _;qc(J[d+224>>2])}if(H[d+219|0]>=0)break Z;qc(J[d+208>>2])}if(H[d+203|0]>=0)break Y;qc(J[d+192>>2])}if(H[d+187|0]>=0)break X;qc(J[d+176>>2])}if(H[d+171|0]>=0)break W;qc(J[d+160>>2])}if(H[d+155|0]>=0)break V;qc(J[d+144>>2])}if(H[d+139|0]>=0)break U;qc(J[d+128>>2])}if(H[d+123|0]>=0)break T;qc(J[d+112>>2])}if(H[d+107|0]>=0)break S;qc(J[d+96>>2])}if(H[d+91|0]>=0)break R;qc(J[d+80>>2])}if(H[d+75|0]>=0)break Q;qc(J[d+64>>2])}if(H[d+59|0]>=0)break P;qc(J[d+48>>2])}if(H[d+43|0]>=0)break O;qc(J[d+ -32>>2])}if(H[d+27|0]>=0)break N;qc(J[d+16>>2])}if(H[d+11|0]>=0)break l;qc(J[d>>2]);break b}c=Z()|0;break G}c=Z()|0;break H}c=Z()|0;break I}c=Z()|0;if(H[d+283|0]>=0)break I;qc(J[d+272>>2])}if(H[d+267|0]>=0)break H;qc(J[d+256>>2])}if(H[d+251|0]>=0)break G;qc(J[d+240>>2])}if(H[d+235|0]>=0)break l;break c}c=Z()|0;break D}c=Z()|0;if(H[d+283|0]>=0)break D;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;break d}c=Z()|0;break s}c=Z()|0;break t}c=Z()|0;break u}c=Z()|0;break v}c=Z()|0;break w}c=Z()|0;if(H[d+283|0]>= -0)break w;qc(J[d+272>>2])}if(H[d+267|0]>=0)break v;qc(J[d+256>>2])}if(H[d+251|0]>=0)break u;qc(J[d+240>>2])}if(H[d+235|0]>=0)break t;qc(J[d+224>>2])}if(H[d+219|0]>=0)break s;qc(J[d+208>>2])}if(H[d+203|0]>=0)break l;qc(J[d+192>>2]);break b}c=Z()|0;break p}c=Z()|0;if(H[d+283|0]>=0)break p;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;break d}c=Z()|0;break m}c=Z()|0;if(H[d+283|0]>=0)break m;qc(J[d+272>>2])}if(H[d+267|0]>=0)break l;qc(J[d+256>>2])}break b}break a}Sd();B()}Id(d+224|0);B()}Id(d+272|0);B()}Id(d); -B()}Id(d+224|0);B()}Id(d+192|0);B()}qc(J[d+256>>2]);break b}qc(J[d+224>>2])}ba(c|0);B()}Id(d+256|0);B()}function v_(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;f=rc(1160);J[695492]=0;J[f+8>>2]=a;J[f>>2]=2169420;J[f+16>>2]=0;J[f+12>>2]=b;J[f+4>>2]=a;a=J[695492];J[695492]=0;if((a|0)!=1){a=f;J[a+340>>2]=0;J[a+344>>2]=0;J[a+328>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a>>2]=2182468;J[a+352>>2]=1;m=a+352|0;b=J[a+12>>2];a:{if((b|0)<=0)break a;f= -J[a+8>>2];if(K[f|0]==1)break a;J[a+12>>2]=b-1;J[a+8>>2]=f+1}bw(a,Mf(a,2,m),a+28|0,m);bw(a,J[a+44>>2],a+48|0,m);bw(a,J[a- -64>>2],a+68|0,m);bw(a,J[a+84>>2],a+88|0,m);d=0;b:{if(!J[a+352>>2])break b;b=J[a+92>>2];J[a+348>>2]=(b|0)<1240?107:(b|0)<33900?1131:32768;b=0;if(J[a+32>>2]<=0){J[m>>2]=0;d=0;break b}f=J[a+40>>2];c=_m(a,J[a+28>>2]+3|0,J[a+36>>2],m);g=J[a+40>>2];d=J[a+36>>2];d=_m(a,(d+J[a+28>>2]|0)+3|0,d,m);c:{f=c+f|0;c=J[a+40>>2];if((f|0)<(c|0))break c;h=J[a+44>>2];if((h|0)<(f|0))break c;i=c;c=d+ -g|0;if((i|0)>=(c|0)|(c|0)>(h|0)|(c|0)<(f|0))break c;d:{if(!J[m>>2])break d;b=rc(8);g=J[a+8>>2];J[695492]=0;f=ga(3181,b|0,f+g|0,c-f|0)|0;c=J[695492];J[695492]=0;e:{f:{g:{if((c|0)!=1){J[a+20>>2]=f;J[a+128>>2]=-1;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+192>>2]=-755914244;J[a+196>>2]=1062232653;J[a+184>>2]=0;J[a+188>>2]=2;J[a+176>>2]=0;J[a+180>>2]=1078525952;J[a+168>>2]=0;J[a+172>>2]= --1067909120;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=-755914244;J[a+220>>2]=1062232653;wc(a+224|0,0,104);h:{if(J[a+52>>2]<=0){J[a+1144>>2]=0;J[a+352>>2]=0;break h}c=J[a+60>>2];f=a+352|0;g=_m(a,J[a+48>>2]+3|0,J[a+56>>2],f);b=J[a+56>>2];b=J[a+60>>2]+_m(a,(b+J[a+48>>2]|0)+3|0,b,f)|0;g=c+g|0;c=J[a+60>>2];i:{j:{if((g|0)<(c|0))break j;d=J[a- -64>>2];if((d|0)<(g|0)|(b|0)<=(c|0)|(b|0)>(d|0))break j;if((b|0)>=(g|0))break i}J[f>>2]=0}J[a+1144>>2]=0;k:{if((b|0)<=(g|0))break k;while(1){g=OI(a,g,f);if(!J[a+352>> -2])break k;c=J[a+1144>>2]-1|0;d=a+(c<<4)|0;if(!J[d+360>>2]){J[a+1144>>2]=c;c=J[d+368>>2];if(J[a+128>>2]<0)J[a+128>>2]=c;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:switch(c-3072|0){default:H:switch(c|0){case 0:d=0;I:{J:switch(J[a+360>>2]-1|0){case 0:J[a+132>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+132>>2]=e<-2E9?0:d?0:c;break l;case 2:break J;default:break I}c=J[a+372>>2];if(!c)break I;d=J[a+368>>2]/(c|0)|0}J[a+132>> -2]=d;break l;case 18:break p;case 17:break q;case 16:break r;case 15:break s;case 5:break u;case 13:break v;case 4:break D;case 3:break E;case 2:break F;case 1:break H;default:break l}d=0;K:{L:switch(J[a+360>>2]-1|0){case 0:J[a+136>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+136>>2]=e<-2E9?0:d?0:c;break l;case 2:break L;default:break K}c=J[a+372>>2];if(!c)break K;d=J[a+368>>2]/(c|0)|0}J[a+136>>2]=d;break l;case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 31:case 32:case 33:case 34:case 35:break l; -case 37:break m;case 36:break n;case 30:break o;case 8:break t;case 7:break w;case 6:break x;case 5:break y;case 4:break z;case 3:break A;case 2:break B;case 1:break C;case 0:break G}d=0;M:{N:switch(J[a+360>>2]-1|0){case 0:J[a+140>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+140>>2]=e<-2E9?0:d?0:c;break l;case 2:break N;default:break M}c=J[a+372>>2];if(!c)break M;d=J[a+368>>2]/(c|0)|0}J[a+140>>2]=d;break l}d=0;O:{P:switch(J[a+360>>2]-1|0){case 0:J[a+ -144>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+144>>2]=e<-2E9?0:d?0:c;break l;case 2:break P;default:break O}c=J[a+372>>2];if(!c)break O;d=J[a+368>>2]/(c|0)|0}J[a+144>>2]=d;break l}d=0;Q:{R:switch(J[a+360>>2]-1|0){case 0:J[a+148>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+148>>2]=e<-2E9?0:d?0:c;break l;case 2:break R;default:break Q}c=J[a+372>>2];if(!c)break Q;d=J[a+368>>2]/(c|0)|0}J[a+ -148>>2]=d;break l}d=0;S:{T:switch(J[a+360>>2]-1|0){case 0:J[a+152>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+152>>2]=e<-2E9?0:d?0:c;break l;case 2:break T;default:break S}c=J[a+372>>2];if(!c)break S;d=J[a+368>>2]/(c|0)|0}J[a+152>>2]=d;break l}d=0;U:{V:switch(J[a+360>>2]-1|0){case 0:J[a+156>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+156>>2]=e<-2E9?0:d?0:c;break l;case 2:break V;default:break U}c= -J[a+372>>2];if(!c)break U;d=J[a+368>>2]/(c|0)|0}J[a+156>>2]=d;break l}e=0;W:{X:switch(J[a+360>>2]-1|0){case 0:O[a+160>>3]=J[a+368>>2];break l;case 1:O[a+160>>3]=O[a+368>>3];break l;case 2:break X;default:break W}c=J[a+372>>2];if(!c)break W;e=+J[a+368>>2]/+(c|0)}O[a+160>>3]=e;break l}e=0;Y:{Z:switch(J[a+360>>2]-1|0){case 0:O[a+168>>3]=J[a+368>>2];break l;case 1:O[a+168>>3]=O[a+368>>3];break l;case 2:break Z;default:break Y}c=J[a+372>>2];if(!c)break Y;e=+J[a+368>>2]/+(c|0)}O[a+168>>3]=e;break l}e=0; -_:{$:switch(J[a+360>>2]-1|0){case 0:O[a+176>>3]=J[a+368>>2];break l;case 1:O[a+176>>3]=O[a+368>>3];break l;case 2:break $;default:break _}c=J[a+372>>2];if(!c)break _;e=+J[a+368>>2]/+(c|0)}O[a+176>>3]=e;break l}d=0;aa:{ba:switch(J[a+360>>2]-1|0){case 0:J[a+184>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+184>>2]=e<-2E9?0:d?0:c;break l;case 2:break ba;default:break aa}c=J[a+372>>2];if(!c)break aa;d=J[a+368>>2]/(c|0)|0}J[a+184>>2]=d;break l}d=0; -ca:{da:switch(J[a+360>>2]-1|0){case 0:J[a+188>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+188>>2]=e<-2E9?0:d?0:c;break l;case 2:break da;default:break ca}c=J[a+372>>2];if(!c)break ca;d=J[a+368>>2]/(c|0)|0}J[a+188>>2]=d;break l}l=0;e=0;ea:{fa:switch(J[a+360>>2]-1|0){case 0:e=+J[a+368>>2];break ea;case 1:e=O[a+368>>3];break ea;case 2:break fa;default:break ea}c=J[a+372>>2];if(!c)break ea;e=+J[a+368>>2]/+(c|0)}O[a+192>>3]=e;ga:{ha:switch(J[a+376>> -2]-1|0){case 0:l=+J[a+384>>2];break ga;case 1:l=O[a+384>>3];break ga;case 2:break ha;default:break ga}c=J[a+388>>2];if(!c)break ga;l=+J[a+384>>2]/+(c|0)}O[a+200>>3]=l;l=0;e=0;ia:{ja:switch(J[a+392>>2]-1|0){case 0:e=+J[a+400>>2];break ia;case 1:e=O[a+400>>3];break ia;case 2:break ja;default:break ia}c=J[a+404>>2];if(!c)break ia;e=+J[a+400>>2]/+(c|0)}O[a+208>>3]=e;ka:{la:switch(J[a+408>>2]-1|0){case 0:l=+J[a+416>>2];break ka;case 1:l=O[a+416>>3];break ka;case 2:break la;default:break ka}c=J[a+420>> -2];if(!c)break ka;l=+J[a+416>>2]/+(c|0)}O[a+216>>3]=l;l=0;e=0;ma:{na:switch(J[a+424>>2]-1|0){case 0:e=+J[a+432>>2];break ma;case 1:e=O[a+432>>3];break ma;case 2:break na;default:break ma}c=J[a+436>>2];if(!c)break ma;e=+J[a+432>>2]/+(c|0)}O[a+224>>3]=e;oa:{pa:switch(J[a+440>>2]-1|0){case 0:l=+J[a+448>>2];break oa;case 1:l=O[a+448>>3];break oa;case 2:break pa;default:break oa}c=J[a+452>>2];if(!c)break oa;l=+J[a+448>>2]/+(c|0)}J[a+240>>2]=1;O[a+232>>3]=l;break l}d=0;qa:{ra:switch(J[a+360>>2]-1|0){case 0:J[a+ -244>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+244>>2]=e<-2E9?0:d?0:c;break l;case 2:break ra;default:break qa}c=J[a+372>>2];if(!c)break qa;d=J[a+368>>2]/(c|0)|0}J[a+244>>2]=d;break l}l=0;e=0;sa:{ta:switch(J[a+360>>2]-1|0){case 0:e=+J[a+368>>2];break sa;case 1:e=O[a+368>>3];break sa;case 2:break ta;default:break sa}c=J[a+372>>2];if(!c)break sa;e=+J[a+368>>2]/+(c|0)}O[a+248>>3]=e;ua:{va:switch(J[a+376>>2]-1|0){case 0:l=+J[a+384>>2];break ua; -case 1:l=O[a+384>>3];break ua;case 2:break va;default:break ua}c=J[a+388>>2];if(!c)break ua;l=+J[a+384>>2]/+(c|0)}O[a+256>>3]=l;l=0;e=0;wa:{xa:switch(J[a+392>>2]-1|0){case 0:e=+J[a+400>>2];break wa;case 1:e=O[a+400>>3];break wa;case 2:break xa;default:break wa}c=J[a+404>>2];if(!c)break wa;e=+J[a+400>>2]/+(c|0)}O[a+264>>3]=e;ya:{za:switch(J[a+408>>2]-1|0){case 0:O[a+272>>3]=J[a+416>>2];break l;case 1:O[a+272>>3]=O[a+416>>3];break l;case 2:break za;default:break ya}c=J[a+420>>2];if(!c)break ya;l=+J[a+ -416>>2]/+(c|0)}O[a+272>>3]=l;break l}e=0;Aa:{Ba:switch(J[a+360>>2]-1|0){case 0:O[a+280>>3]=J[a+368>>2];break l;case 1:O[a+280>>3]=O[a+368>>3];break l;case 2:break Ba;default:break Aa}c=J[a+372>>2];if(!c)break Aa;e=+J[a+368>>2]/+(c|0)}O[a+280>>3]=e;break l}d=0;Ca:{Da:switch(J[a+360>>2]-1|0){case 0:J[a+288>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+288>>2]=e<-2E9?0:d?0:c;break l;case 2:break Da;default:break Ca}c=J[a+372>>2];if(!c)break Ca;d= -J[a+368>>2]/(c|0)|0}J[a+288>>2]=d;break l}d=0;Ea:{Fa:switch(J[a+360>>2]-1|0){case 0:J[a+292>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+292>>2]=e<-2E9?0:d?0:c;break l;case 2:break Fa;default:break Ea}c=J[a+372>>2];if(!c)break Ea;d=J[a+368>>2]/(c|0)|0}J[a+292>>2]=d;break l}d=0;Ga:{Ha:switch(J[a+360>>2]-1|0){case 0:J[a+296>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+296>>2]=e<-2E9?0:d?0: -c;break l;case 2:break Ha;default:break Ga}c=J[a+372>>2];if(!c)break Ga;d=J[a+368>>2]/(c|0)|0}J[a+296>>2]=d;break l}c=0;d=0;Ia:{Ja:switch(J[a+360>>2]-1|0){case 0:d=J[a+368>>2];break Ia;case 1:e=O[a+368>>3];h=e>2E9;if(R(e)<2147483648)d=~~e;else d=-2147483648;d=e<-2E9?0:h?0:d;break Ia;case 2:break Ja;default:break Ia}h=J[a+372>>2];if(!h)break Ia;d=J[a+368>>2]/(h|0)|0}J[a+300>>2]=d;Ka:{La:switch(J[a+376>>2]-1|0){case 0:J[a+304>>2]=J[a+384>>2];break l;case 1:e=O[a+384>>3];d=e>2E9;if(R(e)<2147483648)c= -~~e;else c=-2147483648;J[a+304>>2]=e<-2E9?0:d?0:c;break l;case 2:break La;default:break Ka}d=J[a+388>>2];if(!d)break Ka;c=J[a+384>>2]/(d|0)|0}J[a+304>>2]=c;break l}c=0;d=0;Ma:{Na:switch(J[a+360>>2]-1|0){case 0:d=J[a+368>>2];break Ma;case 1:e=O[a+368>>3];h=e>2E9;if(R(e)<2147483648)d=~~e;else d=-2147483648;d=e<-2E9?0:h?0:d;break Ma;case 2:break Na;default:break Ma}h=J[a+372>>2];if(!h)break Ma;d=J[a+368>>2]/(h|0)|0}J[a+308>>2]=d;Oa:{Pa:switch(J[a+376>>2]-1|0){case 0:c=J[a+384>>2];break Oa;case 1:e=O[a+ -384>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;c=e<-2E9?0:d?0:c;break Oa;case 2:break Pa;default:break Oa}d=J[a+388>>2];if(!d)break Oa;c=J[a+384>>2]/(d|0)|0}J[a+312>>2]=c;d=0;Qa:{Ra:switch(J[a+392>>2]-1|0){case 0:J[a+316>>2]=J[a+400>>2];break l;case 1:e=O[a+400>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+316>>2]=e<-2E9?0:d?0:c;break l;case 2:break Ra;default:break Qa}c=J[a+404>>2];if(!c)break Qa;d=J[a+400>>2]/(c|0)|0}J[a+316>>2]=d;break l}d=0;Sa:{Ta:switch(J[a+360>>2]- -1|0){case 0:J[a+320>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+320>>2]=e<-2E9?0:d?0:c;break l;case 2:break Ta;default:break Sa}c=J[a+372>>2];if(!c)break Sa;d=J[a+368>>2]/(c|0)|0}J[a+320>>2]=d;break l}d=0;Ua:{Va:switch(J[a+360>>2]-1|0){case 0:d=J[a+368>>2];break Ua;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;d=e<-2E9?0:d?0:c;break Ua;case 2:break Va;default:break Ua}c=J[a+372>>2];if(!c)break Ua;d=J[a+368>>2]/(c| -0)|0}J[a+324>>2]=d}J[a+1144>>2]=0}if((b|0)>(g|0))continue;break}}}if(J[a+128>>2]!=3102)break f;d=J[a+320>>2];if(d)break g;J[a+336>>2]=1;b=sk(592);J[a+328>>2]=b;J[b+552>>2]=0;J[b+556>>2]=0;J[b+544>>2]=-343597384;J[b+548>>2]=1068415057;J[b+536>>2]=0;J[b+528>>2]=0;J[b+532>>2]=0;J[b+520>>2]=0;J[b+512>>2]=0;J[b+408>>2]=0;J[b+304>>2]=0;J[b+288>>2]=0;J[b+272>>2]=7;J[b+276>>2]=1;J[b+264>>2]=1580547965;J[b+268>>2]=1067731386;J[b+256>>2]=0;J[b+212>>2]=0;J[b+152>>2]=0;J[b+108>>2]=0;J[b+48>>2]=0;J[b+560>>2]= -0;J[b+564>>2]=0;J[b+584>>2]=1;J[b+576>>2]=0;J[b+580>>2]=0;J[b+568>>2]=1;break e}a=Z()|0;qc(b);ba(a|0);B()}c=d+2|0;b=0;g=vf(a,d,m);Wa:{if(!g){f=c;break Wa}j=Mf(a,c,m);if(j-5>>>0<=4294967291)J[m>>2]=0;h=d+3|0;f=h+P(g+1|0,j)|0;c=f-1|0;if(!((f|0)<=J[a+12>>2]&(f|0)>0))J[m>>2]=0;f=_m(a,h+P(g,j)|0,j,m)+c|0;if((c|0)>(f|0)|J[a+12>>2]<(f|0))break c}if(!J[m>>2])break d;J[a+336>>2]=g;w=a,x=vd(g,592),J[w+328>>2]=x;if(J[a+336>>2]<=0)break e;q=(g|0)>0?g:0;r=d+3|0;while(1){if((b|0)==(q|0))break c;g=_m(a,r+P(b,j)| -0,j,m);h=b+1|0;d=_m(a,r+P(h,j)|0,j,m);g=c+g|0;if((c|0)>(g|0))break c;k=c+d|0;if((f|0)<(g|0)|(k|0)>(f|0)|((g|0)>(k|0)|(c|0)>=(k|0)))break c;d=0;if(!J[m>>2])break b;b=J[a+328>>2]+P(b,592)|0;i=0;l=0;s=0;t=0;u=0;v=0;e=0;J[a+1144>>2]=0;d=k-g|0;Xa:{if((d|0)<=0){QI(a,0,0,b);break Xa}k=d+g|0;d=a+352|0;Ya:{Za:{while(1){g=OI(a,g,d);if(!J[a+352>>2])break Ya;p=J[a+1144>>2];n=a+(p-1<<4)|0;if(!J[n+360>>2]){n=J[n+368>>2];_a:{if((n|0)!=3079){if((n|0)!=18)break _a;if((p|0)<=2){J[d>>2]=0;break Xa}d=0;g=0;$a:{ab:switch(J[a+ -360>>2]-1|0){case 0:g=J[a+368>>2];break $a;case 1:o=O[a+368>>3];k=o>2E9;if(R(o)<2147483648)g=~~o;else g=-2147483648;g=o<-2E9?0:k?0:g;break $a;case 2:break ab;default:break $a}k=J[a+372>>2];if(!k)break $a;g=J[a+368>>2]/(k|0)|0}bb:switch(J[a+376>>2]-1|0){case 0:d=J[a+384>>2];break Za;case 1:o=O[a+384>>3];k=o>2E9;if(R(o)<2147483648)d=~~o;else d=-2147483648;d=o<-2E9?0:k?0:d;break Za;case 2:break bb;default:break Za}k=J[a+388>>2];if(!k)break Za;d=J[a+384>>2]/(k|0)|0;break Za}u=0;l=0;cb:{db:switch(J[a+ -360>>2]-1|0){case 0:l=+J[a+368>>2];break cb;case 1:l=O[a+368>>3];break cb;case 2:break db;default:break cb}i=J[a+372>>2];if(!i)break cb;l=+J[a+368>>2]/+(i|0)}eb:{fb:switch(J[a+376>>2]-1|0){case 0:u=+J[a+384>>2];break eb;case 1:u=O[a+384>>3];break eb;case 2:break fb;default:break eb}i=J[a+388>>2];if(!i)break eb;u=+J[a+384>>2]/+(i|0)}v=0;s=0;gb:{hb:switch(J[a+392>>2]-1|0){case 0:s=+J[a+400>>2];break gb;case 1:s=O[a+400>>3];break gb;case 2:break hb;default:break gb}i=J[a+404>>2];if(!i)break gb;s=+J[a+ -400>>2]/+(i|0)}ib:{jb:switch(J[a+408>>2]-1|0){case 0:v=+J[a+416>>2];break ib;case 1:v=O[a+416>>3];break ib;case 2:break jb;default:break ib}i=J[a+420>>2];if(!i)break ib;v=+J[a+416>>2]/+(i|0)}e=0;t=0;kb:{lb:switch(J[a+424>>2]-1|0){case 0:t=+J[a+432>>2];break kb;case 1:t=O[a+432>>3];break kb;case 2:break lb;default:break kb}i=J[a+436>>2];if(!i)break kb;t=+J[a+432>>2]/+(i|0)}i=1;mb:switch(J[a+440>>2]-1|0){case 0:e=+J[a+448>>2];break _a;case 1:e=O[a+448>>3];break _a;case 2:break mb;default:break _a}p= -J[a+452>>2];if(!p)break _a;e=+J[a+448>>2]/+(p|0)}J[a+1144>>2]=0}if((g|0)<(k|0))continue;break}g=0;d=0}QI(a,d,g,b);if(!i)break Ya;J[b+48>>2]=1;O[b+40>>3]=e;O[b+32>>3]=t;O[b+24>>3]=v;O[b+16>>3]=s;O[b+8>>3]=u;O[b>>3]=l}}b=h;if((b|0)>2])continue;break}break e}J[a+336>>2]=1;b=sk(592);J[a+328>>2]=b;QI(a,J[a+304>>2],J[a+300>>2],b)}d=0;if(!J[m>>2])break b;b=0;f=J[a+296>>2];if((f|0)<=0)break c;bw(a,f,a+108|0,m);if(!J[a+352>>2])break d;J[a+332>>2]=J[a+112>>2];if(J[a+128>>2]==3102){c=0;w=a,x=sk(J[a+ -332>>2]),J[w+340>>2]=x;if(J[a+332>>2]>0)while(1){H[J[a+340>>2]+c|0]=0;c=c+1|0;if((c|0)>2])continue;break}c=J[a+324>>2];nb:{if(!c)break nb;i=a+352|0;g=Mf(a,c,i);if(!J[a+352>>2])break nb;f=c+1|0;ob:{pb:switch(g|0){case 0:c=J[a+332>>2];if(!((c|0)<=(f^2147483647)&(c|f)>=0&J[a+12>>2]>=(c+f|0)))break ob;if((c|0)<=0)break nb;c=0;while(1){g=K[(f+J[a+8>>2]|0)+c|0];if((g|0)>=J[a+336>>2])break ob;H[J[a+340>>2]+c|0]=g;c=c+1|0;if((c|0)>2])continue;break}break nb;case 3:break pb;default:break nb}k= -vf(a,f,i);f=vf(a,c+3|0,i);if((k|0)<=0)break nb;h=c+5|0;g=1;while(1){c=f;j=Mf(a,h,i);f=vf(a,h+1|0,i);if(!J[a+352>>2])break nb;if(J[a+332>>2]<(f|0)|(c|0)>(f|0)|(j|0)>=J[a+336>>2])break ob;d=g;qb:{if((c|0)>=(f|0))break qb;r=(c^-1)+f|0;g=0;q=f-c&3;if(q)while(1){H[J[a+340>>2]+c|0]=j;c=c+1|0;g=g+1|0;if((q|0)!=(g|0))continue;break}if(r>>>0<3)break qb;while(1){H[J[a+340>>2]+c|0]=j;H[(J[a+340>>2]+c|0)+1|0]=j;H[(J[a+340>>2]+c|0)+2|0]=j;H[(J[a+340>>2]+c|0)+3|0]=j;c=c+4|0;if((c|0)!=(f|0))continue;break}}h=h+ -3|0;g=d+1|0;if((d|0)!=(k|0))continue;break}break nb}J[i>>2]=0}if(!J[a+352>>2])break d}rb:{sb:{tb:switch(J[a+288>>2]){case 0:J[a+344>>2]=2641968;if(J[a+332>>2]<230)break sb;J[a+332>>2]=229;c=1;break rb;case 1:J[a+344>>2]=2642432;if(J[a+332>>2]<167)break sb;J[a+332>>2]=166;c=1;break rb;case 2:J[a+344>>2]=2642768;if(J[a+332>>2]<88)break sb;J[a+332>>2]=87;break sb;default:break tb}f=vd(J[a+332>>2],2);J[a+344>>2]=f;c=J[a+332>>2];if((c|0)>0)wc(f,0,c<<1);c=J[a+288>>2];f=c+1|0;ub:{vb:{wb:{xb:{yb:{zb:{Ab:{j= -a+352|0;switch(Mf(a,c,j)|0){case 0:break yb;case 1:break zb;case 2:break Ab;default:break vb}}h=1;if(J[a+332>>2]<=1)break vb;break wb}h=1;if(J[a+332>>2]<=1)break vb;break xb}if(J[a+332>>2]<2)break vb;h=1;while(1){c=vf(a,f,j);I[J[a+344>>2]+(h<<1)>>1]=c;if(!J[a+352>>2])break ub;f=f+2|0;h=h+1|0;if((h|0)>2])continue;break}break vb}while(1){d=vf(a,f,j);i=Mf(a,f+2|0,j);if(!J[a+352>>2])break ub;g=J[a+332>>2];Bb:{if((i|0)<0|(g|0)<=(h|0))break Bb;k=J[a+344>>2];c=0;while(1){I[k+(h<<1)>>1]=d;h=h+1| -0;g=J[a+332>>2];if((c|0)>=(i|0))break Bb;c=c+1|0;d=d+1|0;if((g|0)>(h|0))continue;break}}f=f+3|0;if((g|0)>(h|0))continue;break}break vb}while(1){d=vf(a,f,j);i=vf(a,f+2|0,j);if(!J[a+352>>2])break ub;g=J[a+332>>2];Cb:{if((i|0)<0|(g|0)<=(h|0))break Cb;k=J[a+344>>2];c=0;while(1){I[k+(h<<1)>>1]=d;h=h+1|0;g=J[a+332>>2];if((c|0)>=(i|0))break Cb;c=c+1|0;d=d+1|0;if((g|0)>(h|0))continue;break}}f=f+4|0;if((g|0)>(h|0))continue;break}}if(J[j>>2])break sb}Gc(J[a+344>>2]);J[a+344>>2]=0;c=0;break rb}c=1}if(!c)break c; -Db:switch(J[a+128>>2]-3092|0){default:f=0;h=0;k=bc-256|0;bc=k;d=2638352;Eb:{Fb:switch(J[a+292>>2]){default:w=a,x=vd(256,4),J[w+24>>2]=x;while(1){c=f<<2;J[c+J[a+24>>2]>>2]=0;J[J[a+24>>2]+(c|4)>>2]=0;J[J[a+24>>2]+(c|8)>>2]=0;J[J[a+24>>2]+(c|12)>>2]=0;f=f+4|0;if((f|0)!=256)continue;break}c=J[a+292>>2];j=a+352|0;r=Mf(a,c,j);if(!J[a+352>>2])break Eb;f=c+1|0;Gb:{Hb:switch(r&127){case 0:g=Mf(a,f,j);if(!J[a+352>>2])break Eb;f=c+2|0;c=J[a+332>>2];c=(c|0)>(g|0)?g+1|0:c;if((c|0)<2)break Gb;d=1;while(1){g=Mf(a, -f,j);if(!J[a+352>>2])break Eb;g=g<<2;h=J[g+J[a+24>>2]>>2];if(h)Gc(h);f=f+1|0;h=Md(PI(a,L[J[a+344>>2]+(d<<1)>>1],k,j));J[g+J[a+24>>2]>>2]=h;d=d+1|0;if((c|0)!=(d|0))continue;break}break Gb;case 1:break Hb;default:break Gb}q=Mf(a,f,j);if(!J[a+352>>2])break Eb;f=c+2|0;if((q|0)<=0)break Gb;d=1;while(1){g=c;c=f;f=Mf(a,c,j);p=Mf(a,g+3|0,j);if(!J[a+352>>2])break Eb;i=0;Ib:{if((p|0)<0)break Ib;g=J[a+332>>2];if((d|0)>=(g|0))break Ib;while(1){if((f|0)<=255){g=f<<2;n=J[g+J[a+24>>2]>>2];if(n)Gc(n);n=Md(PI(a,L[J[a+ -344>>2]+(d<<1)>>1],k,j));J[g+J[a+24>>2]>>2]=n;g=J[a+332>>2]}d=d+1|0;if((i|0)>=(p|0))break Ib;i=i+1|0;f=f+1|0;if((d|0)<(g|0))continue;break}}f=c+2|0;h=h+1|0;if((q|0)!=(h|0))continue;break}}if(!(r&128))break Eb;c=Mf(a,f,j);if(!J[a+352>>2]|(c|0)<=0)break Eb;d=f+1|0;f=0;while(1){g=Mf(a,d,j);if(!J[a+352>>2])break Eb;h=vf(a,d+1|0,j);if(!J[a+352>>2])break Eb;g=g<<2;i=J[g+J[a+24>>2]>>2];if(i)Gc(i);d=d+3|0;h=Md(PI(a,h,k,j));J[g+J[a+24>>2]>>2]=h;f=f+1|0;if((c|0)!=(f|0))continue;break}break Eb;case 1:d=2639376; -break;case 0:break Fb}J[a+24>>2]=d}bc=k+256|0;if(!J[a+352>>2])break d;break;case 0:case 10:break Db}b=J[m>>2]}d=b;break b}J[m>>2]=0;d=0}if(!d){gc[J[J[a>>2]+4>>2]](a);a=0}return a|0}a=Z()|0;qc(f);ba(a|0);B()}function Q2a(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;r=bc-16|0;bc=r;a:{b:{if(J[a+12>>2]==J[a+8>>2])break b;c:{if(!c)break c;d=J[b>>2];if(!d)break c;c=0;f=K[d+11|0];e=f<<24>>24<0;f=e?J[d+4>>2]:f;if(!f)break c;h= -e?J[d>>2]:d;d:{e:{if((f|0)<=0)break e;while(1){if(M[h+(c<<2)>>2]<129){c=c+1|0;if((f|0)!=(c|0))continue;break e}break}e=J[h>>2];d=0;f:{g:{if((f|0)>=2)while(1){c=1;g=J[P(d,20)+362112>>2];h:{if((e|0)!=J[g>>2])break h;while(1){l=c<<2;v=J[l+g>>2];if(!v|(v|0)!=J[h+l>>2])break h;c=c+1|0;if((f|0)!=(c|0))continue;break}if(!J[g+(f<<2)>>2])break g}d=d+1|0;if((d|0)!=93)continue;break c}f=f<<2;while(1){c=J[P(d,20)+362112>>2];if((e|0)==J[c>>2]&!J[c+f>>2])break g;c=d|1;if((c|0)==93)break c;h=J[P(c,20)+362112>>2]; -if((e|0)==J[h>>2]&!J[f+h>>2])break f;d=d+2|0;continue}}c=d}d=J[b+24>>2];if(d)d=J[d>>2]==1;else d=0;e=J[b+20>>2];if(e)d=J[e>>2]==1?d|2:d;i:{j:{k:{l:switch(d-1|0){case 0:d=362960;if((c|0)==42)break i;d=P(c,20)+362116|0;break i;case 1:f=P(c,20);e=J[f+362124>>2];if((e|0)!=-1)break k;d=362968;if((c|0)==42)break i;d=f+362116|0;break i;case 2:break l;default:break j}d=362968;if((c|0)==42)break i;c=P(c,20);e=J[c+362124>>2];if((e|0)!=-1)break k;d=c+362116|0;break i}c=P(e,68)+363984|0;break d}d=P(c,20)+362116| -0}c=J[d>>2];if((c|0)==-1)break c;c=P(c,68)+363984|0;break d}g=J[h>>2];d=J[(g<<2)+352544>>2];if((d|0)==-1)break c;l=(d|0)<=426?426:d;m:{if((f|0)>=2)while(1){c=1;v=J[P(d,20)+353568>>2];if((g|0)!=H[v|0])break c;e=d;n:{while(1){d=H[c+v|0];if(!d|(d|0)!=J[h+(c<<2)>>2])break n;c=c+1|0;if((f|0)!=(c|0))continue;break}if(K[f+v|0])break n;d=e;break m}d=e+1|0;if((e|0)!=(l|0))continue;break c}while(1){c=J[P(d,20)+353568>>2];if((g|0)!=H[c|0])break c;if(!K[c+f|0])break m;c=(d|0)==(l|0);d=d+1|0;if(!c)continue;break}break c}if((d| -0)==-1)break c;c=J[b+24>>2];if(c)c=J[c>>2]==1;else c=0;o:{e=J[b+20>>2];if(e)c=J[e>>2]==1?c|2:c;p:{q:switch(c-1|0){case 0:d=P(d,20);c=J[d+353576>>2];if((c|0)!=-1)break o;c=J[d+353584>>2];if((c|0)!=-1)break o;c=J[d+353572>>2];if((c|0)!=-1)break o;c=d+353580|0;break p;case 1:d=P(d,20);c=J[d+353580>>2];if((c|0)!=-1)break o;c=J[d+353584>>2];if((c|0)!=-1)break o;c=J[d+353572>>2];if((c|0)!=-1)break o;c=d+353576|0;break p;case 2:d=P(d,20);c=J[d+353584>>2];if((c|0)!=-1)break o;c=J[d+353580>>2];if((c|0)!=-1)break o; -c=J[d+353576>>2];if((c|0)!=-1)break o;c=d+353572|0;break p;default:break q}d=P(d,20);c=J[d+353572>>2];if((c|0)!=-1)break o;c=J[d+353576>>2];if((c|0)!=-1)break o;c=J[d+353580>>2];if((c|0)!=-1)break o;c=d+353584|0}c=J[c>>2];if((c|0)==-1)break c;c=P(c,68)+363984|0;break d}c=P(c,68)+363984|0}lo(b);e=J[c>>2];f=Qc(e);d=rc(12);J[695492]=0;ca(1618,d|0,e|0,f|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b>>2]=d;d=K[c+10|0];e=rc(4);J[e>>2]=(d|0)==1;J[b+28>>2]=e;d=rc(10);J[b+32>>2]=d;e=K[c+19|0]|K[c+20|0]<< -8;H[d+8|0]=e;H[d+9|0]=e>>>8;e=K[c+15|0]|K[c+16|0]<<8|(K[c+17|0]<<16|K[c+18|0]<<24);f=K[c+11|0]|K[c+12|0]<<8|(K[c+13|0]<<16|K[c+14|0]<<24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;d=J[c+24>>2];e=rc(4);J[e>>2]=d;J[b+36>>2]=e;d=J[c+28>>2];e=rc(4);J[e>>2]=d;J[b+40>>2]=e;d=J[c+32>>2];e=rc(4);J[e>>2]=d;J[b+44>>2]=e;d=J[c+36>>2];e=rc(4);J[e>>2]=d;J[b+48>>2]=e;d=J[c+40>>2];e=rc(4);J[e>>2]=d;J[b+52>>2]=e;d=J[c+44>>2];e=rc(4);J[e>>2]= -d;J[b+56>>2]=e;d=L[c+48>>1];e=rc(2);I[e>>1]=d;J[b+60>>2]=e;d=L[c+50>>1];e=rc(2);I[e>>1]=d;J[b+64>>2]=e;d=L[c+56>>1];e=rc(2);I[e>>1]=d;J[b+76>>2]=e;d=L[c+58>>1];e=rc(2);I[e>>1]=d;J[b+80>>2]=e;d=L[c+60>>1];e=rc(2);I[e>>1]=d;J[b+84>>2]=e;d=L[c+64>>1];e=rc(2);I[e>>1]=d;J[b+92>>2]=e;c=L[c+66>>1];d=rc(2);I[d>>1]=c;J[b+96>>2]=d}x=-1;while(1){r:{y=J[a+8>>2];if((y|0)!=J[a+12>>2]){while(1){s:{q=J[y>>2];c=J[b+100>>2];t:{u:{if(!c)break u;d=L[c>>1];if(!d)break u;c=L[q+112>>1];if(!c)break u;v:{w:switch(d-1|0){case 0:if((c| -0)!=2)break u;break t;case 1:if((c|0)==2)break t;if((c&12)==4)break v;break u;default:break w}if((c|0)==2)break t}if(c&526)break t}c=J[b+32>>2];if(c){e=0;f=K[q+52|0];d=K[c|0];if(!((f|0)==(d|0)|!d)){e=f-d|0;d=e>>31;e=P((d^e)-d|0,1E3)}f=K[q+53|0];d=K[c+1|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+54|0];d=K[c+2|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+55|0];d=K[c+3|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+56|0];d= -K[c+4|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+57|0];d=K[c+5|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+58|0];d=K[c+6|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+59|0];d=K[c+7|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+60|0];d=K[c+8|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}d=K[q+61|0];c=K[c+9|0];if((d|0)==(c|0)|!c)c=e;else{d=d-c|0;c=d>>31;c=P((c^d)-c|0,100)+e|0}}else c= -0;v=c;A=J[q+80>>2];c=J[b+72>>2];if(c)c=K[c|0];else c=3;w=c;c=J[b+28>>2];if(c){c=J[c>>2];d=J[q+48>>2];e=d?0:c?15E3:0;v=(d?c?e:350:e)+v|0}p=J[b>>2];x:{if(!p){h=0;break x}h=NK(q,p);n=J[q+116>>2];if((n|0)==J[q+120>>2])break x;while(1){e=K[p+11|0];f=e<<24>>24;i=J[p+4>>2];c=(f|0)<0;o=c?i:e;m=0;y:{if(!o)break y;j=K[n+11|0];d=j<<24>>24;l=J[n+4>>2];s=(d|0)<0;t=s?l:j;m=1E4;if(!t)break y;g=J[p>>2];if((o|0)==(t|0)){m=0;if(!gd(c?g:p,s?J[n>>2]:n,o))break y;g=J[p>>2];i=J[p+4>>2];l=J[n+4>>2];e=K[p+11|0];f=e;j=K[n+ -11|0];d=j}c=0;o=g;g=f<<24>>24<0;f=g?o:p;o=d<<24>>24<0;d=o?J[n>>2]:n;g=g?i:e;t=g<<2;l=o?l:j;s=l<<2;e=0;z:{while(1){A:{if((c|0)>=(l|0)){j=0;break A}o=(d+s|0)-(c<<2)|0;B:{while(1){j=J[d>>2];c=c+1|0;d=d+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;C:{if((e|0)>=(g|0))break C;o=(f+t|0)-(e<<2)|0;D:{while(1){i=J[f>>2];e=e+1|0;f=f+4|0;u=i-32|0;if(u>>>0>13|!(1<>> -0<26?i+32|0:i}if((j|0)!=(i|0))break z;if(j)continue;break}m=100;break y}d=Pw(n,p);m=d?700:1E3;if(!(i?j:0))break y;m=1E3;if(d)break y;f=K[p+11|0];d=f<<24>>24;l=K[n+11|0];e=l<<24>>24;d=(d|0)<0;g=d?J[p+4>>2]:f;e=(e|0)<0;l=e?J[n+4>>2]:l;m=1500;if(!(g|l))break y;c=0;f=e?J[n>>2]:n;d=d?J[p>>2]:p;t=g<<2;s=l<<2;e=0;while(1){E:{if((c|0)>=(l|0)){j=0;break E}o=(f+s|0)-(c<<2)|0;F:{while(1){j=J[f>>2];c=c+1|0;f=f+4|0;i=j-32|0;if(i>>>0>13|!(1<>> -0<26?j+32|0:j}i=0;G:{if((e|0)>=(g|0))break G;o=(d+t|0)-(e<<2)|0;H:{while(1){i=J[d>>2];e=e+1|0;d=d+4|0;u=i-32|0;if(u>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)==(i|0)?j:0)continue;break}m=(j|0)!=(i|0)?1E4:3E3}c=m;h=(c|0)<(h|0)?c:h;n=n+12|0;if((n|0)!=J[q+120>>2])continue;break}}p=J[b+4>>2];if(p){t=NK(q,p);n=J[q+116>>2];if((n|0)!=J[q+120>>2])while(1){e=K[p+11|0];f=e<<24>>24;i=J[p+4>>2];c=(f|0)<0;o=c?i:e;m=0;I:{if(!o)break I;j=K[n+11|0]; -d=j<<24>>24;l=J[n+4>>2];u=(d|0)<0;s=u?l:j;m=1E4;if(!s)break I;g=J[p>>2];if((o|0)==(s|0)){m=0;if(!gd(c?g:p,u?J[n>>2]:n,o))break I;g=J[p>>2];i=J[p+4>>2];l=J[n+4>>2];e=K[p+11|0];f=e;j=K[n+11|0];d=j}c=0;o=g;g=f<<24>>24<0;f=g?o:p;o=d<<24>>24<0;d=o?J[n>>2]:n;g=g?i:e;s=g<<2;l=o?l:j;u=l<<2;e=0;J:{while(1){K:{if((c|0)>=(l|0)){j=0;break K}o=(d+u|0)-(c<<2)|0;L:{while(1){j=J[d>>2];c=c+1|0;d=d+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i= -0;M:{if((e|0)>=(g|0))break M;o=(f+s|0)-(e<<2)|0;N:{while(1){i=J[f>>2];e=e+1|0;f=f+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)!=(i|0))break J;if(j)continue;break}m=100;break I}d=Pw(n,p);m=d?700:1E3;if(!(i?j:0))break I;m=1E3;if(d)break I;f=K[p+11|0];d=f<<24>>24;l=K[n+11|0];e=l<<24>>24;d=(d|0)<0;g=d?J[p+4>>2]:f;e=(e|0)<0;l=e?J[n+4>>2]:l;m=1500;if(!(g|l))break I;c=0;f=e?J[n>>2]:n;d=d?J[p>>2]:p;s=g<<2;u=l<<2;e=0;while(1){O:{if((c| -0)>=(l|0)){j=0;break O}o=(f+u|0)-(c<<2)|0;P:{while(1){j=J[f>>2];c=c+1|0;f=f+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;Q:{if((e|0)>=(g|0))break Q;o=(d+s|0)-(e<<2)|0;R:{while(1){i=J[d>>2];e=e+1|0;d=d+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)==(i|0)?j:0)continue;break}m=(j|0)!=(i|0)?1E4:3E3}c=m;t=(c|0)<(t|0)?c:t;n=n+12|0;if((n|0)!=J[q+120>> -2])continue;break}h=(h|0)>(t|0)?t:h}p=J[b+8>>2];if(p){t=NK(q,p);n=J[q+116>>2];if((n|0)!=J[q+120>>2])while(1){e=K[p+11|0];f=e<<24>>24;i=J[p+4>>2];c=(f|0)<0;o=c?i:e;m=0;S:{if(!o)break S;j=K[n+11|0];d=j<<24>>24;l=J[n+4>>2];u=(d|0)<0;s=u?l:j;m=1E4;if(!s)break S;g=J[p>>2];if((o|0)==(s|0)){m=0;if(!gd(c?g:p,u?J[n>>2]:n,o))break S;g=J[p>>2];i=J[p+4>>2];l=J[n+4>>2];e=K[p+11|0];f=e;j=K[n+11|0];d=j}c=0;o=g;g=f<<24>>24<0;f=g?o:p;o=d<<24>>24<0;d=o?J[n>>2]:n;g=g?i:e;s=g<<2;l=o?l:j;u=l<<2;e=0;T:{while(1){U:{if((c| -0)>=(l|0)){j=0;break U}o=(d+u|0)-(c<<2)|0;V:{while(1){j=J[d>>2];c=c+1|0;d=d+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;W:{if((e|0)>=(g|0))break W;o=(f+s|0)-(e<<2)|0;X:{while(1){i=J[f>>2];e=e+1|0;f=f+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)!=(i|0))break T;if(j)continue;break}m=100;break S}d=Pw(n,p);m=d?700:1E3;if(!(i?j:0))break S;m=1E3;if(d)break S; -f=K[p+11|0];d=f<<24>>24;l=K[n+11|0];e=l<<24>>24;d=(d|0)<0;g=d?J[p+4>>2]:f;e=(e|0)<0;l=e?J[n+4>>2]:l;m=1500;if(!(g|l))break S;c=0;f=e?J[n>>2]:n;d=d?J[p>>2]:p;s=g<<2;u=l<<2;e=0;while(1){Y:{if((c|0)>=(l|0)){j=0;break Y}o=(f+u|0)-(c<<2)|0;Z:{while(1){j=J[f>>2];c=c+1|0;f=f+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;_:{if((e|0)>=(g|0))break _;o=(d+s|0)-(e<<2)|0;$:{while(1){i=J[d>>2];e=e+1|0;d=d+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)==(i|0)?j:0)continue;break}m=(j|0)!=(i|0)?1E4:3E3}c=m;t=(c|0)<(t|0)?c:t;n=n+12|0;if((n|0)!=J[q+120>>2])continue;break}c=(t|0)<3E3?t+3E3|0:t;h=(c|0)<(h|0)?c:h}c=h+v|0;d=J[b+64>>2];if(d){e=L[q+90>>1]-L[d>>1]|0;d=e>>31;c=P((d^e)-d|0,50)+c|0}d=J[b+60>>2];if(d){e=L[q+88>>1]-L[d>>1]|0;d=e>>31;c=P((((d^e)-d&65535)>>>0)/10|0,3)+c|0}d=J[q+40>>2];f=0;e=J[b+20>>2];if(e)f=J[e>>2];e=J[q+44>>2];d=((d|0)!=(f|0))+c|0;c=J[b+ -24>>2];if(c)c=J[c>>2];else c=0;j=d+(((c|0)!=(e|0))<<2)|0;c=J[b+12>>2];aa:{if(c){f=I[q+92>>1];ba:{if(H[c+11|0]>=0){J[r+8>>2]=J[c+8>>2];d=J[c+4>>2];J[r>>2]=J[c>>2];J[r+4>>2]=d;break ba}Re(r,J[c>>2],J[c+4>>2])}e=0;g=K[r+11|0];c=g<<24>>24;h=(c|0)<0;d=J[r+4>>2];ca:{if(((h?d:g)|0)==3){if(!gd(h?J[r>>2]:r,350804,3))break ca;g=K[r+11|0];c=g;d=J[r+4>>2]}c=c<<24>>24;if((((c|0)<0?d:g)|0)==7)if(!gd((c|0)<0?J[r>>2]:r,350820,7))break ca;e=50;if(f>>>0<256)break ca;f=f>>8;g=K[r+11|0];c=g<<24>>24;h=(c|0)<0;da:{ea:{d= -J[r+4>>2];if(((h?d:g)|0)==5){if(!gd(h?J[r>>2]:r,350852,5))break ea;d=J[r+4>>2];g=K[r+11|0];c=g}h=c<<24>>24;if((((h|0)<0?d:g)|0)==5){if(!gd((h|0)<0?J[r>>2]:r,350876,5))break ea;g=K[r+11|0];c=g;d=J[r+4>>2]}c=c<<24>>24<0;if(((c?d:g)|0)!=6)break da;if(gd(c?J[r>>2]:r,350900,6)|(f|0)<9)break da;break ca}if((f|0)>8)break ca}g=K[r+11|0];c=g<<24>>24;h=(c|0)<0;fa:{ga:{d=J[r+4>>2];if(((h?d:g)|0)==10){if(!gd(h?J[r>>2]:r,350928,10))break ga;g=K[r+11|0];c=g;d=J[r+4>>2]}c=c<<24>>24;if((((c|0)<0?d:g)|0)!=6)break fa; -if(gd((c|0)<0?J[r>>2]:r,350972,6)|(f|0)>8)break fa;break ca}if((f|0)<9)break ca}e=0}j=e+j|0;if(H[r+11|0]>=0)break aa;qc(J[r>>2]);break aa}d=J[b+16>>2];if(!d)break aa;c=0;d=L[d>>1];ha:{if(d>>>0<256)break ha;c=50;e=I[q+92>>1];if(e>>>0<256)break ha;e=e>>8<9;d=d<<16>>24;if(!e&(d|0)<9)break ha;c=e?(d|0)>8?50:0:0}j=c+j|0}if((w|0)!=3){c=1;d=1;e=1;ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{f=((w|0)!=1?w:0)&255;switch(f-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:break ia; +-2;a=0;while(1){c=J[j>>2];J[j>>2]=(c^J[e>>2]^-1)&m|b&c;g=s<<2;c=g+j|0;d=J[c>>2];h=e;e=t<<2;h=h+e|0;J[c>>2]=(d^J[h>>2]^-1)&m|b&d;e=e+h|0;j=c+g|0;a=a+2|0;if((f|0)!=(a|0))continue;break}}if(!(r&1))break o;a=J[j>>2];J[j>>2]=(a^J[e>>2]^-1)&m|a&b;break o}J[B>>2]=f;md(J[655074],n,B)}fc=B+16|0}j=0}return j|0}function c8a(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,Q=0,R=0,T=0,U=0,V=0,W=0;z=fc-16|0;fc= +z;e=J[a>>2];c=a+12|0;f=g5(c);d=a+20|0;g=g5(d);m=a+84|0;_4(c,1,a+36|0,m,0);w=a+96|0;_4(d,2,a+48|0,w,g^(f^(e&-2)==2));Y4(a+60|0,J[a+84>>2],J[a+88>>2]);Y4(a+72|0,J[a+96>>2],J[a+100>>2]);i=fc+-64|0;fc=i;e=i+56|0;J[e>>2]=0;J[e+4>>2]=0;g=i+48|0;f=g;J[f>>2]=0;J[f+4>>2]=0;f=i+40|0;J[f>>2]=0;J[f+4>>2]=0;J[i+32>>2]=0;J[i+36>>2]=0;b=i+24|0;J[b>>2]=0;J[b+4>>2]=0;h=i+16|0;J[h>>2]=0;J[h+4>>2]=0;l=i+8|0;J[l>>2]=0;J[l+4>>2]=0;J[699344]=0;J[i>>2]=0;J[i+4>>2]=0;o=i+32|0;uD(c,o,f,g,e);c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((c| +0)==1)break e;J[699344]=0;uD(d,i,l,h,b);c=J[699344];J[699344]=0;if((c|0)==1)break e;k=O[i>>3];j=O[i+32>>3];if(!(k+O[i+16>>3]>j+-1E-12))break a;p=O[i+8>>3];q=O[i+40>>3];if(!(p+O[i+24>>3]>q+-1E-12)|!(k>3]+1E-12)|!(p>3]+1E-12))break a;h=0;b=fc-112|0;fc=b;T4(b+100|0,m);T4(b+88|0,w);m=J[b+104>>2];e=J[b+100>>2];w=m-e|0;f=J[b+88>>2];f:{if((w|0)!=(J[b+92>>2]-f|0))break f;if((e|0)==(m|0)){r=1;break f}g=e;while(1){r=J[g+4>>2];c=J[g>>2];l=r-c|0;d=J[f>>2];y=J[f+4>>2]-d|0;if((l|0)!=(y|0)){r= +0;break f}if((c|0)!=(r|0))while(1){if(O[c>>3]!=O[d>>3]){r=0;break f}d=d+8|0;c=c+8|0;if((r|0)!=(c|0))continue;break}r=(l|0)==(y|0);f=f+12|0;g=g+12|0;if((m|0)!=(g|0))continue;break}}J[b+84>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;H[b+68|0]=0;d=(w|0)/12|0;c=b+76|0;J[b+64>>2]=c;g:{h:{i:{if((e|0)!=(m|0)){j:{k:{l:{if(d>>>0>=357913942){J[699344]=0;$(2512,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;break h}J[699344]=0;c=_(4,w|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;J[b+80>>2]=c;J[b+76>>2]=c;J[699344]= +0;J[b+84>>2]=c+P(d,12);h=ha(2513,b+84|0,e|0,m|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break j;d=Z()|0;J[b+80>>2]=c;break k}d=Z()|0}cn(b- -64|0);break i}J[b+80>>2]=h}m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{if(r)break y;f=J[b+88>>2];e=J[b+92>>2];if((f|0)==(e|0))break y;while(1){g=J[b+80>>2];z:{if((g|0)!=J[b+84>>2]){J[g+8>>2]=0;J[g>>2]=0;J[g+4>>2]=0;A:{c=J[f+4>>2];d=J[f>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>3;if(d>>>0>=536870912){J[699344]=0;$(2494,g|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break A}J[699344]= +0;c=_(4,c|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break A;J[g+4>>2]=c;J[g>>2]=c;J[g+8>>2]=(d<<3)+c;d=J[f>>2];m=J[f+4>>2];if((d|0)!=(m|0))while(1){O[c>>3]=O[d>>3];c=c+8|0;d=d+8|0;if((m|0)!=(d|0))continue;break}J[g+4>>2]=c}J[b+80>>2]=g+12;break z}d=Z()|0;a=J[g>>2];if(a){J[g+4>>2]=a;uc(a)}J[b+80>>2]=g;break m}J[699344]=0;da(2514,b+76|0,f|0);c=J[699344];J[699344]=0;if((c|0)==1)break x;e=J[b+92>>2]}f=f+12|0;if((e|0)!=(f|0))continue;break}h=J[b+80>>2]}c=J[b+76>>2];l=J[b+100>>2];y=J[b+104>>2];e=0;J[b+72>> +2]=0;J[b+64>>2]=0;J[b+68>>2]=0;A=y-l|0;w=(A|0)/12|0;s=h-c|0;m=(s|0)/12|0;g=0;if((c|0)!=(h|0)){if(m>>>0>=1073741824){J[699344]=0;$(1589,b- -64|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break o}J[699344]=0;c=m<<2;g=_(4,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;J[b+64>>2]=g;e=c+g|0;J[b+72>>2]=e;Ac(g,0,c);J[b+68>>2]=e}B:{if((s|0)<=0)break B;f=(m|0)<=1?1:m;h=f&7;d=0;c=0;if(f>>>0>=8){x=f&2147483640;f=0;while(1){J[(c<<2)+g>>2]=c;t=c|1;J[(t<<2)+g>>2]=t;t=c|2;J[(t<<2)+g>>2]=t;t=c|3;J[(t<<2)+ +g>>2]=t;t=c|4;J[(t<<2)+g>>2]=t;t=c|5;J[(t<<2)+g>>2]=t;t=c|6;J[(t<<2)+g>>2]=t;t=c|7;J[(t<<2)+g>>2]=t;c=c+8|0;f=f+8|0;if((x|0)!=(f|0))continue;break}}if(!h)break B;while(1){J[(c<<2)+g>>2]=c;c=c+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}f=0;J[b+52>>2]=b+76;iM(g,e,b+52|0,(e|0)!=(g|0)?62-(S(e-g>>2)<<1)|0:0);J[b+60>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[o+8>>2]=0;J[o>>2]=0;J[o+4>>2]=0;H[b+40|0]=0;J[b+36>>2]=o;c=0;if((l|0)!=(y|0)){if(w>>>0>=357913942){J[699344]=0;$(2515,o|0);a=J[699344];J[699344]=0;if((a|0)!= +1)break h;break q}J[699344]=0;c=_(4,A|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;J[o>>2]=c;J[o+8>>2]=P(w,12)+c;d=A-12|0;d=(d-((d>>>0)%12|0)|0)+12|0;f=Ac(c,0,d)+d|0;J[o+4>>2]=f}if((s|0)<=0)break s;t=r?0:w;U=(m|0)<=1?1:m;V=!r;y=0;while(1){e=J[(y<<2)+g>>2];J[b+48>>2]=e;J[b+44>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;m=0;C:{E=J[b+76>>2];f=E+P(e,12)|0;c=J[f+4>>2];d=J[f>>2];if((c|0)==(d|0))break C;c=c-d|0;d=c>>3;if(d>>>0>=536870912){J[699344]=0;$(2494,b+36|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;d= +Z()|0;a=J[b+36>>2];if(!a)break r;J[b+40>>2]=a;uc(a);break r}J[699344]=0;m=_(4,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[b+36>>2]=m;J[b+44>>2]=(d<<3)+m;c=m;d=J[f>>2];f=J[f+4>>2];if((d|0)!=(f|0))while(1){O[c>>3]=O[d>>3];c=c+8|0;d=d+8|0;if((f|0)!=(d|0))continue;break}J[b+40>>2]=c;break C}d=Z()|0;break r}J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;A=(e|0)>=(w|0);D:{E:{F:{G:{H:{c=J[b+52>>2];h=J[b+56>>2];I:{if((c|0)==(h|0))break I;l=h-c|0;f=l>>2;J:{if((f|0)<=0)break J;k=O[m>>3]+-1E-7;d=0;while(1){s=d+f>> +1;x=k>O[J[E+P(J[(s<<2)+c>>2],12)>>2]+16>>3];d=x?s+1|0:d;f=x?f:s;if((d|0)<(f|0))continue;break}if(!d)break J;f=c;c=d<<2;d=f+c|0;cd(f,d,h-d|0);c=h-c|0;J[b+56>>2]=c;d=c;c=J[b+52>>2];l=d-c|0}if((l|0)<=0)break I;E=e-t|0;W=r|A;k=O[m+8>>3];j=O[m+24>>3];e=0;while(1){h=J[(e<<2)+c>>2];J[b+20>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;f=0;K:{L:{M:{N:{O:{P:{C=P(h,12);l=C+J[b+76>>2]|0;c=J[l+4>>2];d=J[l>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>3;if(d>>>0>=536870912){J[699344]=0;$(2494,b+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h; +d=Z()|0;a=J[b+12>>2];if(!a)break u;J[b+16>>2]=a;uc(a);break u}J[699344]=0;f=_(4,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break P;J[b+12>>2]=f;J[b+20>>2]=(d<<3)+f;c=f;d=J[l>>2];l=J[l+4>>2];if((d|0)!=(l|0))while(1){O[c>>3]=O[d>>3];c=c+8|0;d=d+8|0;if((l|0)!=(d|0))continue;break}J[b+16>>2]=c}d=(h|0)<(w|0);c=A|d&V;R=d&W;if(!(c?R:1))break M;if(!(j>=O[f+8>>3]+-1E-7)|!(k<=O[f+24>>3]+1E-7))break L;if(!c)break O;break N}d=Z()|0;break u}x=h-t|0;c=J[b+28>>2];l=J[b+32>>2];if(c>>>0>>0){J[c>>2]=x;J[b+28>>2]= +c+4;break N}Q:{R:{S:{h=J[b+24>>2];T=c-h>>2;d=T+1|0;T:{if(d>>>0>=1073741824){J[699344]=0;$(1589,b+24|0);break T}l=l-h|0;s=l>>1;l=l>>>0>=2147483644?1073741823:d>>>0>>0?s:d;if(!l){s=0;break R}if(l>>>0<1073741824)break S;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break h;d=Z()|0;uc(f);break u}J[699344]=0;s=_(4,l<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Q}d=(T<<2)+s|0;J[d>>2]=x;x=d+4|0;if((c|0)!=(h|0))while(1){d=d-4|0;c=c-4|0;J[d>>2]=J[c>>2];if((c|0)!=(h|0))continue;break}J[b+32>> +2]=(l<<2)+s;J[b+28>>2]=x;J[b+24>>2]=d;if(!h)break N;uc(h);break N}d=Z()|0;uc(f);break u}if(!R)break M;h=C+J[o>>2]|0;c=J[h+4>>2];if((c|0)!=J[h+8>>2]){J[c>>2]=E;J[h+4>>2]=c+4;break M}U:{V:{l=J[h>>2];d=c-l|0;C=d>>2;s=C+1|0;W:{if(s>>>0>=1073741824){J[699344]=0;$(1589,h|0);break W}x=d>>1;s=d>>>0>=2147483644?1073741823:s>>>0>>0?x:s;if(!s){x=0;break U}if(s>>>0<1073741824)break V;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break h;break H}J[699344]=0;x=_(4,s<<2)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break H}d=(C<<2)+x|0;J[d>>2]=E;C=d+4|0;if((c|0)!=(l|0))while(1){d=d-4|0;c=c-4|0;J[d>>2]=J[c>>2];if((c|0)!=(l|0))continue;break}J[h>>2]=d;J[h+4>>2]=C;J[h+8>>2]=(s<<2)+x;if(!l)break M;uc(l)}if(!f)break K}uc(f)}e=e+1|0;c=J[b+52>>2];if((e|0)>2]-c>>2)continue;break}}if(A)break E;e=J[b+104>>2];f=J[b+100>>2];h=J[b+88>>2];if((e-f|0)!=(J[b+92>>2]-h|0))break F;if((e|0)!=(f|0))while(1){l=J[f+4>>2];c=J[f>>2];d=J[h>>2];if((l-c|0)!=(J[h+4>>2]-d|0))break F;if((c|0)!=(l|0))while(1){if(O[c>>3]!=O[d>> +3])break F;d=d+8|0;c=c+8|0;if((l|0)!=(c|0))continue;break}h=h+12|0;f=f+12|0;if((e|0)!=(f|0))continue;break}c=J[b+28>>2];if((c|0)==J[b+32>>2])break G;J[c>>2]=J[b+48>>2];J[b+28>>2]=c+4;break F}d=Z()|0;if(!f)break u;uc(f);break u}e=J[b+24>>2];d=c-e|0;l=d>>2;f=l+1|0;if(f>>>0>=1073741824){J[699344]=0;$(1589,b+24|0);break v}h=d>>1;f=d>>>0>=2147483644?1073741823:f>>>0>>0?h:f;X:{if(!f){h=0;break X}if(f>>>0>=1073741824)break w;J[699344]=0;h=_(4,f<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break D}d=(l<< +2)+h|0;J[d>>2]=J[b+48>>2];l=d+4|0;if((c|0)!=(e|0))while(1){d=d-4|0;c=c-4|0;J[d>>2]=J[c>>2];if((c|0)!=(e|0))continue;break}J[b+32>>2]=(f<<2)+h;J[b+28>>2]=l;J[b+24>>2]=d;if(!e)break F;uc(e)}c=J[o>>2]+P(J[b+48>>2],12)|0;if((c|0)==(b+24|0))break E;J[699344]=0;ca(1607,c|0,J[b+24>>2],J[b+28>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break D}d=J[b+56>>2];e=J[b+52>>2];f=d-e|0;c=f>>2;Y:{if((d|0)!=(e|0)){Z:{if((c|0)<=0){d=0;break Z}k=O[m+16>>3];d=0;l=J[b+76>>2];while(1){f=c+d>>1;h=k>O[J[l+P(J[e+(f<<2)>>2],12)>> +2]+16>>3];c=h?c:f;d=h?f+1|0:d;if((c|0)>(d|0))continue;break}}J[699344]=0;ga(2516,b+52|0,e+(d<<2)|0,b+48|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break Y;d=Z()|0;break u}if((d|0)!=J[b+60>>2]){J[d>>2]=J[b+48>>2];J[b+56>>2]=d+4;break Y}e=f>>1;h=c+1|0;e=f>>>0>=2147483644?1073741823:e>>>0>h>>>0?e:h;if(e>>>0>1073741823)break w;J[699344]=0;f=e<<2;e=_(4,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break D;c=e+(c<<2)|0;J[c>>2]=J[b+48>>2];J[b+60>>2]=e+f;J[b+56>>2]=c+4;J[b+52>>2]=c;if(!d)break Y;uc(d)}c=J[b+24>> +2];if(c){J[b+28>>2]=c;uc(c)}if(m)uc(m);y=y+1|0;if((U|0)==(y|0))break t;continue}break}d=Z()|0;break u}d=Z()|0;break m}J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break h;d=Z()|0}a=J[b+24>>2];if(a){J[b+28>>2]=a;uc(a)}if(!m)break r;uc(m);break r}f=J[o+4>>2];c=J[o>>2]}_:{if((c|0)!=(f|0))while(1){d=J[c+4>>2];e=J[c>>2];J[699344]=0;DS(e,d,b+36|0);d=J[699344];J[699344]=0;if((d|0)==1)break _;c=c+12|0;if((f|0)!=(c|0))continue;break}c=J[b+52>>2];if(c){J[b+56>>2]=c;uc(c)}if(g)uc(g);e=J[b+76>>2]; +if(e){c=e;d=J[b+80>>2];if((c|0)!=(d|0)){while(1){c=d-12|0;f=J[c>>2];if(f){J[d-8>>2]=f;uc(f)}d=c;if((c|0)!=(e|0))continue;break}c=J[b+76>>2]}J[b+80>>2]=e;uc(c)}e=J[b+88>>2];if(e){c=e;d=J[b+92>>2];if((c|0)!=(d|0)){while(1){c=d-12|0;f=J[c>>2];if(f){J[d-8>>2]=f;uc(f)}d=c;if((c|0)!=(e|0))continue;break}c=J[b+88>>2]}J[b+92>>2]=e;uc(c)}e=J[b+100>>2];if(e){c=e;d=J[b+104>>2];if((c|0)!=(d|0)){while(1){c=d-12|0;f=J[c>>2];if(f){J[d-8>>2]=f;uc(f)}d=c;if((c|0)!=(e|0))continue;break}c=J[b+100>>2]}J[b+104>>2]=e; +uc(c)}fc=b+112|0;break g}d=Z()|0}jj(o);break p}d=Z()|0;cn(b+36|0)}a=J[b+52>>2];if(a){J[b+56>>2]=a;uc(a)}if(!g)break m;break n}d=Z()|0;g=J[b+64>>2];if(!g)break m;J[b+68>>2]=g}uc(g)}jj(b+76|0)}jj(b+88|0);jj(b+100|0);ba(d|0);B()}B()}if(J[a+88>>2]==J[a+84>>2])break b;g=0;$:{while(1){aa:{J[i+8>>2]=0;J[i>>2]=0;J[i+4>>2]=0;f=J[i+32>>2]+P(g,12)|0;c=J[f+4>>2];d=J[f>>2];if((c|0)!=(d|0)){c=c-d|0;if((c|0)<0){J[699344]=0;$(1589,i|0);a=J[699344];J[699344]=0;if((a|0)==1)break aa;B()}J[699344]=0;e=_(4,c|0)|0;c=J[699344]; +J[699344]=0;if((c|0)==1)break $;c=e;d=J[f>>2];f=J[f+4>>2];ba:{if((d|0)==(f|0))break ba;while(1){J[c>>2]=J[d>>2];c=c+4|0;d=d+4|0;if((f|0)!=(d|0))continue;break}if((c|0)==(e|0))break ba;d=c-e>>2;c=0;while(1){f=J[e+(c<<2)>>2];m=J[a+96>>2];b=J[a+84>>2];J[699344]=0;ca(2505,a|0,b+P(g,144)|0,m+P(f,144)|0);f=J[699344];J[699344]=0;if((f|0)==1)break d;c=c+1|0;if(d>>>0>c>>>0)continue;break}}uc(e)}g=g+1|0;if(g>>>0<(J[a+88>>2]-J[a+84>>2]|0)/144>>>0)continue;break b}break}c=Z()|0;a=J[i>>2];if(!a)break c;J[i+4>> +2]=a;uc(a);break c}c=Z()|0;break c}ea(0)|0;Bc();B()}c=Z()|0;uc(e)}jj(i+32|0);ba(c|0);B()}e=J[i+32>>2];if(!e)break a;c=e;d=J[i+36>>2];if((c|0)!=(d|0)){while(1){c=d-12|0;f=J[c>>2];if(f){J[d-8>>2]=f;uc(f)}d=c;if((c|0)!=(e|0))continue;break}c=J[i+32>>2]}J[i+36>>2]=e;uc(c)}fc=i- -64|0;ca:{da:{ea:{c=J[a+112>>2];d=J[a+108>>2];if((c|0)==(d|0))break ea;g=c-d>>3;if((g|0)>0)while(1){d=J[a+108>>2];f=n<<3;e=J[d+f>>2];J[z+8>>2]=J[e+228>>2];e=J[e+232>>2];J[z+12>>2]=e;c=c-d|0;if(e){J[e+4>>2]=J[e+4>>2]+1;d=J[a+108>> +2]}d=K[J[J[d+f>>2]+228>>2]+224|0];e=J[z+12>>2];J[z>>2]=J[z+8>>2];J[z+4>>2]=e;X4(a,z,d);d=J[a+112>>2];e=J[a+108>>2];fa:{if((c|0)!=(d-e|0)){c=d;break fa}c=e+f|0;f=c+8|0;if((f|0)!=(d|0)){while(1){m=J[f>>2];b=J[f+4>>2];J[f>>2]=0;J[f+4>>2]=0;e=J[c+4>>2];J[c>>2]=m;J[c+4>>2]=b;ga:{if(!e)break ga;m=J[e+4>>2];J[e+4>>2]=m-1;if(m)break ga;kc[J[J[e>>2]+8>>2]](e);Gc(e)}c=c+8|0;f=f+8|0;if((f|0)!=(d|0))continue;break}d=J[a+112>>2]}if((c|0)!=(d|0))while(1){d=d-8|0;e=J[d+4>>2];ha:{if(!e)break ha;f=J[e+4>>2];J[e+4>> +2]=f-1;if(f)break ha;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((c|0)!=(d|0))continue;break}J[a+112>>2]=c;n=n-1|0;g=g-1|0}n=n+1|0;if((n|0)<(g|0))continue;break}b=fc-736|0;fc=b;H[b+639|0]=0;H[b+640|0]=0;H[b+641|0]=0;H[b+642|0]=0;J[b+632>>2]=0;J[b+636>>2]=0;J[b+624>>2]=0;J[b+628>>2]=0;J[b+616>>2]=0;J[b+620>>2]=0;J[b+608>>2]=0;J[b+612>>2]=0;J[b+600>>2]=0;J[b+604>>2]=0;J[b+592>>2]=0;J[b+596>>2]=0;J[b+644>>2]=-1;Ac(b+648|0,0,67);J[b+720>>2]=0;J[b+724>>2]=0;J[b+716>>2]=-1;J[b+728>>2]=0;J[b+732>>2]=0;f=J[a+112>>2]- +J[a+108>>2]>>3;ia:{if((f|0)<=0)break ia;h=b+288|0;r=b+272|0;k=-1;ja:{while(1){m=f;f=f-1|0;n=f<<3;c=n+J[a+108>>2]|0;j=O[J[c>>2]+216>>3];O[b+584>>3]=j;O[b+576>>3]=j;H[b+551|0]=0;H[b+552|0]=0;H[b+553|0]=0;H[b+554|0]=0;J[b+544>>2]=0;J[b+548>>2]=0;J[b+536>>2]=0;J[b+540>>2]=0;J[b+528>>2]=0;J[b+532>>2]=0;J[b+520>>2]=0;J[b+524>>2]=0;J[b+512>>2]=0;J[b+516>>2]=0;J[b+504>>2]=0;J[b+508>>2]=0;J[b+556>>2]=-1;J[b+568>>2]=0;J[b+572>>2]=0;J[b+560>>2]=0;J[b+564>>2]=0;c=J[c>>2];c=J[(J[c+56>>2]==1?84:96)+a>>2]+P(J[c+ +52>>2],144)|0;O[b+360>>3]=O[c>>3];O[b+368>>3]=O[c+8>>3];O[b+376>>3]=O[c+16>>3];O[b+384>>3]=O[c+24>>3];O[b+392>>3]=O[c+32>>3];O[b+400>>3]=O[c+40>>3];d=J[c+60>>2];J[b+416>>2]=J[c+56>>2];J[b+420>>2]=d;d=J[c+52>>2];J[b+408>>2]=J[c+48>>2];J[b+412>>2]=d;J[b+424>>2]=J[c+64>>2];d=J[c+68>>2];J[b+428>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;O[b+432>>3]=O[c+72>>3];O[b+440>>3]=O[c+80>>3];O[b+448>>3]=O[c+88>>3];O[b+456>>3]=O[c+96>>3];O[b+464>>3]=O[c+104>>3];O[b+472>>3]=O[c+112>>3];d=J[c+132>>2];J[b+488>>2]=J[c+128>>2]; +J[b+492>>2]=d;d=J[c+124>>2];J[b+480>>2]=J[c+120>>2];J[b+484>>2]=d;J[b+496>>2]=J[c+136>>2];c=J[c+140>>2];J[b+500>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;H[b+263|0]=0;H[b+264|0]=0;H[b+265|0]=0;H[b+266|0]=0;J[b+256>>2]=0;J[b+260>>2]=0;J[b+248>>2]=0;J[b+252>>2]=0;J[b+240>>2]=0;J[b+244>>2]=0;J[b+232>>2]=0;J[b+236>>2]=0;J[b+224>>2]=0;J[b+228>>2]=0;J[b+216>>2]=0;J[b+220>>2]=0;J[b+268>>2]=-1;Ac(r,0,67);J[b+340>>2]=-1;J[b+352>>2]=0;J[b+356>>2]=0;J[b+344>>2]=0;J[b+348>>2]=0;ka:{la:{ma:{c=J[n+J[a+108>>2]>>2];if(!(J[c+ +52>>2]!=J[b+644>>2]|J[c+56>>2]!=J[b+648>>2]|J[c+124>>2]!=J[b+716>>2]))if(J[c+128>>2]==J[b+720>>2])break ma;O[b+592>>3]=O[c>>3];O[b+600>>3]=O[c+8>>3];O[b+608>>3]=O[c+16>>3];O[b+616>>3]=O[c+24>>3];O[b+624>>3]=O[c+32>>3];O[b+632>>3]=O[c+40>>3];d=J[c+60>>2];J[b+648>>2]=J[c+56>>2];J[b+652>>2]=d;d=J[c+52>>2];J[b+640>>2]=J[c+48>>2];J[b+644>>2]=d;d=J[c+64>>2];e=J[c+68>>2];if(e)J[e+4>>2]=J[e+4>>2]+1;J[b+656>>2]=d;d=J[b+660>>2];J[b+660>>2]=e;na:{if(!d)break na;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break na;kc[J[J[d>> +2]+8>>2]](d);Gc(d)}O[b+664>>3]=O[c+72>>3];O[b+672>>3]=O[c+80>>3];O[b+680>>3]=O[c+88>>3];O[b+688>>3]=O[c+96>>3];O[b+696>>3]=O[c+104>>3];O[b+704>>3]=O[c+112>>3];d=J[c+132>>2];J[b+720>>2]=J[c+128>>2];J[b+724>>2]=d;d=J[c+124>>2];J[b+712>>2]=J[c+120>>2];J[b+716>>2]=d;e=J[c+136>>2];d=J[c+140>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[b+728>>2]=e;c=J[b+732>>2];J[b+732>>2]=d;if(!c)break la;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break la;kc[J[J[c>>2]+8>>2]](c);Gc(c);break la}if(!(k>=1E-8))break la;p=j/k;O[b+576>>3]=p;break ka}p= +O[b+576>>3];j=O[b+584>>3]}k=j;oa:{pa:{if(p<1E-8){O[b+504>>3]=O[b+360>>3];O[b+512>>3]=O[b+368>>3];O[b+520>>3]=O[b+376>>3];O[b+528>>3]=O[b+384>>3];O[b+536>>3]=O[b+392>>3];O[b+544>>3]=O[b+400>>3];c=J[b+420>>2];J[b+560>>2]=J[b+416>>2];J[b+564>>2]=c;c=J[b+412>>2];J[b+552>>2]=J[b+408>>2];J[b+556>>2]=c;d=J[b+424>>2];c=J[b+428>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[b+568>>2]=d;e=J[b+572>>2];J[b+572>>2]=c;if(!e){i=0;break oa}c=J[e+4>>2];J[e+4>>2]=c-1;i=0;if(c)break pa;kc[J[J[e>>2]+8>>2]](e);Gc(e);break pa}if(p> +.99999999){O[b+504>>3]=O[b+432>>3];O[b+512>>3]=O[b+440>>3];O[b+520>>3]=O[b+448>>3];O[b+528>>3]=O[b+456>>3];O[b+536>>3]=O[b+464>>3];O[b+544>>3]=O[b+472>>3];c=J[b+492>>2];J[b+560>>2]=J[b+488>>2];J[b+564>>2]=c;c=J[b+484>>2];J[b+552>>2]=J[b+480>>2];J[b+556>>2]=c;d=J[b+496>>2];c=J[b+500>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[b+568>>2]=d;e=J[b+572>>2];J[b+572>>2]=c;if(!e){i=0;break oa}c=J[e+4>>2];J[e+4>>2]=c-1;i=0;if(c)break pa;kc[J[J[e>>2]+8>>2]](e);Gc(e);break pa}if(!K[b+480|0]){c=J[n+J[a+108>>2]>>2];J[b+64>> +2]=0;ah(b+72|0,c,b+584|0,b- -64|0);O[b+512>>3]=O[b+80>>3];O[b+504>>3]=O[b+72>>3];c=K[b+410|0];d=J[b+412>>2];e=J[b+416>>2];I[b+552>>1]=0;J[b+544>>2]=0;J[b+548>>2]=0;J[b+536>>2]=0;J[b+540>>2]=0;J[b+528>>2]=0;J[b+532>>2]=0;J[b+520>>2]=0;J[b+524>>2]=0;J[b+564>>2]=0;J[b+568>>2]=0;J[b+560>>2]=e;J[b+556>>2]=d+1;H[b+554|0]=c;c=J[b+572>>2];J[b+572>>2]=0;qa:{if(!c)break qa;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break qa;kc[J[J[c>>2]+8>>2]](c);Gc(c)}i=0;break pa}d=b+72|0;e=b+360|0;u=0;F=0;G=0;i=fc-16|0;fc=i;c=b+576| +0;j=O[c>>3];ra:{if(!(!(j>=1E-8)|!(j<=.99999999))){es(i+4|0,e,c);o=1;g=J[e+52>>2]+1|0;c=J[i+4>>2];p=O[c+80>>3];w=J[e+56>>2];l=K[e+50|0];v=O[c+72>>3];sa:{if(!K[e+120|0]){M=O[e+112>>3];D=O[e+104>>3];N=O[e+96>>3];Q=O[e+88>>3];j=O[e+80>>3];q=O[e+72>>3];o=0;L=0;break sa}u=O[c+88>>3];F=O[c+96>>3];G=O[c+104>>3];L=O[c+112>>3];H[e+120|0]=1;q=O[c+232>>3];j=O[e+80>>3];N=O[c+240>>3]-j;O[e+96>>3]=N;D=q;q=O[e+72>>3];Q=D-q;O[e+88>>3]=Q;D=O[c+248>>3];M=O[c+256>>3]-j;O[e+112>>3]=M;D=D-q;O[e+104>>3]=D;G=G-v;F=F-p;u= +u-v;L=L-p}O[d+72>>3]=q;J[d+60>>2]=0;J[d+64>>2]=0;J[d+56>>2]=w;J[d+52>>2]=g;H[d+50|0]=l;H[d+49|0]=0;H[d+48|0]=o;O[d+32>>3]=G;O[d+16>>3]=u;O[d+8>>3]=p;O[d>>3]=v;O[d+112>>3]=M;O[d+104>>3]=D;O[d+96>>3]=N;O[d+88>>3]=Q;O[d+80>>3]=j;J[d+68>>2]=0;O[d+40>>3]=L;O[d+24>>3]=F;g=J[e+132>>2];J[d+128>>2]=J[e+128>>2];J[d+132>>2]=g;g=J[e+124>>2];J[d+120>>2]=J[e+120>>2];J[d+124>>2]=g;J[d+136>>2]=J[e+136>>2];g=d;d=J[e+140>>2];J[g+140>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;d=J[i+8>>2];g=c;if((d|0)!=(c|0)){while(1){e=d;d=d- +144|0;g=J[d+140>>2];ta:{if(!g)break ta;o=J[g+4>>2];J[g+4>>2]=o-1;if(o)break ta;kc[J[J[g>>2]+8>>2]](g);Gc(g)}e=J[e-76>>2];ua:{if(!e)break ua;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break ua;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((c|0)!=(d|0))continue;break}g=J[i+4>>2]}J[i+8>>2]=c;uc(g);break ra}J[d>>2]=0;J[d+4>>2]=0;J[d+52>>2]=-1;H[d+47|0]=0;H[d+48|0]=0;H[d+49|0]=0;H[d+50|0]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;Ac(d+56|0, +0,67);J[d+128>>2]=0;J[d+132>>2]=0;J[d+124>>2]=-1;J[d+136>>2]=0;J[d+140>>2]=0}fc=i+16|0;O[b+216>>3]=O[b+72>>3];O[b+224>>3]=O[b+80>>3];O[b+232>>3]=O[b+88>>3];O[b+240>>3]=O[b+96>>3];O[b+248>>3]=O[b+104>>3];O[b+256>>3]=O[b+112>>3];c=J[b+132>>2];J[b+272>>2]=J[b+128>>2];J[b+276>>2]=c;c=J[b+124>>2];J[b+264>>2]=J[b+120>>2];J[b+268>>2]=c;J[b+280>>2]=J[b+136>>2];d=J[b+140>>2];J[b+136>>2]=0;J[b+140>>2]=0;c=J[b+284>>2];J[b+284>>2]=d;va:{if(!c)break va;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break va;kc[J[J[c>>2]+8>>2]](c); +Gc(c)}O[b+288>>3]=O[b+144>>3];O[b+296>>3]=O[b+152>>3];O[b+304>>3]=O[b+160>>3];O[b+312>>3]=O[b+168>>3];O[b+320>>3]=O[b+176>>3];O[b+328>>3]=O[b+184>>3];c=J[b+204>>2];J[b+344>>2]=J[b+200>>2];J[b+348>>2]=c;c=J[b+196>>2];J[b+336>>2]=J[b+192>>2];J[b+340>>2]=c;d=J[b+212>>2];c=J[b+208>>2];J[b+208>>2]=0;J[b+212>>2]=0;J[b+352>>2]=c;c=J[b+356>>2];J[b+356>>2]=d;wa:{if(!c)break wa;d=J[c+4>>2];J[c+4>>2]=d-1;if(!d){kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+212>>2];if(!c)break wa;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break wa; +kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+140>>2];xa:{if(!c)break xa;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break xa;kc[J[J[c>>2]+8>>2]](c);Gc(c)}O[b+504>>3]=O[b+216>>3];O[b+512>>3]=O[b+224>>3];O[b+520>>3]=O[b+232>>3];O[b+528>>3]=O[b+240>>3];O[b+536>>3]=O[b+248>>3];O[b+544>>3]=O[b+256>>3];c=J[b+276>>2];J[b+560>>2]=J[b+272>>2];J[b+564>>2]=c;c=J[b+268>>2];J[b+552>>2]=J[b+264>>2];J[b+556>>2]=c;d=J[b+280>>2];c=J[b+284>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[b+568>>2]=d;e=J[b+572>>2];J[b+572>>2]=c;if(!e){i=1;break oa}c=J[e+ +4>>2];J[e+4>>2]=c-1;i=1;if(c)break pa;kc[J[J[e>>2]+8>>2]](e);Gc(e)}d=J[b+568>>2];c=J[b+572>>2]}J[b+76>>2]=c;J[b+72>>2]=d;if(c)J[c+4>>2]=J[c+4>>2]+1;e=J[n+J[a+108>>2]>>2];g=J[e+228>>2];J[b+64>>2]=g;e=J[e+232>>2];J[b+68>>2]=e;ya:{za:{Aa:{Ba:{Ca:{if(!e){if(d)break Ca;break Aa}J[e+4>>2]=J[e+4>>2]+1;if(!d)break Ba}J[b+60>>2]=c;J[b+56>>2]=d;if(c)J[c+4>>2]=J[c+4>>2]+1;J[b+52>>2]=e;J[b+48>>2]=g;if(e)J[e+4>>2]=J[e+4>>2]+1;e=J[b+60>>2];J[b+24>>2]=J[b+56>>2];J[b+28>>2]=e;e=J[b+52>>2];J[b+16>>2]=J[b+48>>2];J[b+ +20>>2]=e;V4(b+24|0,b+16|0);if(c)J[c+4>>2]=J[c+4>>2]+1;while(1){J[b+40>>2]=J[d+228>>2];e=J[d+232>>2];J[b+44>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;J[b+32>>2]=J[b+72>>2];e=J[b+76>>2];J[b+36>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;e=c;c=J[b+44>>2];J[b+8>>2]=J[b+40>>2];J[b+12>>2]=c;c=J[b+36>>2];J[b>>2]=J[b+32>>2];J[b+4>>2]=c;V4(b+8|0,b);c=d;d=J[c+236>>2];c=J[c+240>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;Da:{if(!e)break Da;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break Da;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if(d)continue;break}if(!c)break ya; +d=J[c+4>>2];J[c+4>>2]=d-1;if(!d)break za;break ya}J[e+4>>2]=J[e+4>>2]+1}J[b+568>>2]=g;c=J[b+572>>2];J[b+572>>2]=e;if(!c)break ya;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break ya}kc[J[J[c>>2]+8>>2]](c);Gc(c)}J[699344]=0;ia(2508,a|0,b+504|0,h|0,i|0);c=J[699344];J[699344]=0;if((c|0)!=1){c=J[n+J[a+108>>2]>>2];O[c+144>>3]=O[b+504>>3];O[c+152>>3]=O[b+512>>3];O[c+160>>3]=O[b+520>>3];O[c+168>>3]=O[b+528>>3];O[c+176>>3]=O[b+536>>3];O[c+184>>3]=O[b+544>>3];d=J[b+564>>2];J[c+200>>2]=J[b+560>>2];J[c+204>>2]=d;d=J[b+556>> +2];J[c+192>>2]=J[b+552>>2];J[c+196>>2]=d;d=J[b+568>>2];e=J[b+572>>2];if(e)J[e+4>>2]=J[e+4>>2]+1;J[c+208>>2]=d;d=J[c+212>>2];J[c+212>>2]=e;Ea:{if(!d)break Ea;c=J[d+4>>2];J[d+4>>2]=c-1;if(c)break Ea;kc[J[J[d>>2]+8>>2]](d);Gc(d)}c=J[b+68>>2];Fa:{if(!c)break Fa;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break Fa;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+76>>2];Ga:{if(!c)break Ga;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break Ga;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+356>>2];Ha:{if(!c)break Ha;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break Ha; +kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+284>>2];Ia:{if(!c)break Ia;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break Ia;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+500>>2];Ja:{if(!c)break Ja;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break Ja;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+428>>2];Ka:{if(!c)break Ka;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break Ka;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+572>>2];La:{if(!c)break La;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break La;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((m|0)<=1)break ja;continue}break}a=Z()|0;je(b- -64|0);je(b+72| +0);nh(b+216|0);nh(b+360|0);bn(b+504|0);nh(b+592|0);ba(a|0);B()}c=J[b+732>>2];if(!c)break ia;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break ia;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+660>>2];Ma:{if(!c)break Ma;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break Ma;kc[J[J[c>>2]+8>>2]](c);Gc(c)}fc=b+736|0;d=J[a+112>>2];c=J[a+108>>2];if(!((d-c|0)!=16|!K[J[c>>2]+225|0])){nM(a);b=fc-224|0;fc=b;H[b+199|0]=0;H[b+200|0]=0;H[b+201|0]=0;H[b+202|0]=0;J[b+192>>2]=0;J[b+196>>2]=0;J[b+184>>2]=0;J[b+188>>2]=0;J[b+176>>2]=0;J[b+180>>2]=0;J[b+ +168>>2]=0;J[b+172>>2]=0;J[b+160>>2]=0;J[b+164>>2]=0;J[b+216>>2]=0;J[b+220>>2]=0;J[b+152>>2]=0;J[b+156>>2]=0;J[b+208>>2]=0;J[b+212>>2]=0;J[b+204>>2]=-1;H[b+127|0]=0;H[b+128|0]=0;H[b+129|0]=0;H[b+130|0]=0;J[b+120>>2]=0;J[b+124>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+136>>2]=0;J[b+140>>2]=0;J[b+132>>2]=-1;d=J[a+36>>2];f=J[a+40>>2];if((d|0)!=(f|0))while(1){Na:{if(J[d+64>> +2])break Na;O[b+152>>3]=O[d>>3];O[b+160>>3]=O[d+8>>3];O[b+168>>3]=O[d+16>>3];O[b+176>>3]=O[d+24>>3];O[b+184>>3]=O[d+32>>3];O[b+192>>3]=O[d+40>>3];c=J[d+60>>2];J[b+208>>2]=J[d+56>>2];J[b+212>>2]=c;c=J[d+52>>2];J[b+200>>2]=J[d+48>>2];J[b+204>>2]=c;e=J[d+68>>2];if(e)J[e+4>>2]=J[e+4>>2]+1;J[b+216>>2]=0;c=J[b+220>>2];J[b+220>>2]=e;if(!c)break Na;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break Na;kc[J[J[c>>2]+8>>2]](c);Gc(c)}d=d+72|0;if((f|0)!=(d|0))continue;break}d=J[a+48>>2];f=J[a+52>>2];if((d|0)!=(f|0))while(1){Oa:{if(J[d+ +64>>2])break Oa;O[b+80>>3]=O[d>>3];O[b+88>>3]=O[d+8>>3];O[b+96>>3]=O[d+16>>3];O[b+104>>3]=O[d+24>>3];O[b+112>>3]=O[d+32>>3];O[b+120>>3]=O[d+40>>3];c=J[d+60>>2];J[b+136>>2]=J[d+56>>2];J[b+140>>2]=c;c=J[d+52>>2];J[b+128>>2]=J[d+48>>2];J[b+132>>2]=c;e=J[d+68>>2];if(e)J[e+4>>2]=J[e+4>>2]+1;J[b+144>>2]=0;c=J[b+148>>2];J[b+148>>2]=e;if(!c)break Oa;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break Oa;kc[J[J[c>>2]+8>>2]](c);Gc(c)}d=d+72|0;if((f|0)!=(d|0))continue;break}Pa:{Qa:{Ra:{c=J[a>>2];Sa:{if((c|0)==1){if(J[b+212>> +2]==1){c=a+28|0;a=a+12|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break Sa}if(J[b+140>>2]==1){c=a+28|0;a=a+20|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break Sa}J[699344]=0;c=a+28|0;_(2510,c|0)|0;d=J[699344];J[699344]=0;Ta:{if((d|0)==1)break Ta;a=J[J[a+108>>2]>>2];k=O[a+152>>3];j=O[a+144>>3];J[699344]=0;wa(2325,c|0,+j,+k)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ta;J[699344]=0;_(2327,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Sa}d=Z()|0;break Qa}d=J[b+212>>2];if(!((d|0)!= +1|c)){c=a+28|0;a=a+20|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break Sa}g=J[b+140>>2];if(!((g|0)!=1|c)){c=a+28|0;a=a+12|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break Sa}if(!(g|(d|(c|0)!=2))){c=a+28|0;a=a+12|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break Sa}Ua:{d=a+36|0;c=c?(g|0)==1?d:a+48|0:d;f=J[c>>2];r=J[c+4>>2];if((f|0)==(r|0))break Ua;o=a+28|0;c=b- -64|0;i=1;Va:{while(1){Wa:{j=O[f>>3];d=J[J[a+108>>2]+((J[a>>2]!=0&J[b+140>>2]!=1)<<3)>>2];k=O[f+8>>3];Xa:{if(!(j==O[d+ +144>>3]&k==O[d+152>>3])){if(i){J[699344]=0;_(2510,o|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Va;k=O[f+8>>3];j=O[f>>3];i=0;J[699344]=0;wa(2325,o|0,+j,+k)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Va;break Xa}if(K[f+48|0]){p=O[f+24>>3];q=O[f+40>>3];u=O[f+16>>3];v=O[f+32>>3];i=0;J[699344]=0;Aa(2511,o|0,+(j+u),+(k+p),+(j+v),+(k+q),+j,+k)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Va;break Xa}i=0;J[699344]=0;wa(2326,o|0,+j,+k)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Va;break Xa}Ya:{if(K[f+ +48|0]){p=O[f+24>>3];q=O[f+40>>3];u=O[f+16>>3];v=O[f+32>>3];J[699344]=0;Aa(2511,o|0,+(j+u),+(k+p),+(j+v),+(k+q),+j,+k)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break Ya;break Va}J[699344]=0;wa(2326,o|0,+j,+k)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Va}e=J[J[a+108>>2]+8>>2];m=J[e+196>>2];Za:{_a:{$a:{ab:{if(J[e+200>>2]==1){d=J[a+36>>2];if((m|0)!=(((J[a+40>>2]-d|0)/72|0)-1|0))break $a;if(K[e+194|0])break ab;break _a}d=J[a+48>>2];if((m|0)!=(((J[a+52>>2]-d|0)/72|0)-1|0))break $a;if(!K[e+194|0])break _a}O[b+ +8>>3]=O[d>>3];O[b+16>>3]=O[d+8>>3];O[b+24>>3]=O[d+16>>3];O[b+32>>3]=O[d+24>>3];O[b+40>>3]=O[d+32>>3];O[b+48>>3]=O[d+40>>3];e=J[d+60>>2];J[b+64>>2]=J[d+56>>2];J[b+68>>2]=e;e=J[d+52>>2];J[b+56>>2]=J[d+48>>2];J[b+60>>2]=e;J[b+72>>2]=J[d+64>>2];d=J[d+68>>2];J[b+76>>2]=d;if(!d)break Za;J[d+4>>2]=J[d+4>>2]+1;break Za}d=P(m,72)+d|0;O[b+8>>3]=O[d+72>>3];O[b+16>>3]=O[d+80>>3];O[b+24>>3]=O[d+88>>3];O[b+32>>3]=O[d+96>>3];O[b+40>>3]=O[d+104>>3];O[b+48>>3]=O[d+112>>3];e=J[d+132>>2];J[b+64>>2]=J[d+128>>2];J[b+ +68>>2]=e;e=J[d+124>>2];J[b+56>>2]=J[d+120>>2];J[b+60>>2]=e;J[b+72>>2]=J[d+136>>2];d=J[d+140>>2];J[b+76>>2]=d;if(!d)break Za;J[d+4>>2]=J[d+4>>2]+1;break Za}H[b+55|0]=0;H[b+56|0]=0;H[b+57|0]=0;H[b+58|0]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+60>>2]=-1;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0}bb:{while(1){cb:{m=J[b+64>>2];e=J[b+60>>2];if(m|(e|0)!=-1|(O[b+8>>3]!=0|O[b+16>>3]!= +0))break cb;if(O[b+24>>3]!=0|O[b+32>>3]!=0|(O[b+40>>3]!=0|O[b+48>>3]!=0))break cb;d=K[b+56|0];break bb}d=K[b+56|0];n=J[J[a+108>>2]+((!J[a>>2]|J[b+140>>2]==1)<<3)>>2];if((e|0)==J[n+196>>2]&(m|0)==J[n+200>>2])break bb;db:{eb:{if(d&255){J[699344]=0;k=O[b+8>>3];j=O[b+16>>3];Aa(2511,o|0,+(O[b+24>>3]+k),+(O[b+32>>3]+j),+(k+O[b+40>>3]),+(j+O[b+48>>3]),+k,+j)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break eb;break db}J[699344]=0;wa(2326,o|0,+O[b+8>>3],+O[b+16>>3])|0;d=J[699344];J[699344]=0;if((d|0)==1)break db}e= +J[b+60>>2];fb:{gb:{hb:{ib:{if(J[b+64>>2]==1){d=J[a+36>>2];if((e|0)!=(((J[a+40>>2]-d|0)/72|0)-1|0))break hb;if(K[b+58|0])break ib;break gb}d=J[a+48>>2];if((e|0)!=(((J[a+52>>2]-d|0)/72|0)-1|0))break hb;if(!K[b+58|0])break gb}k=O[d+40>>3];v=O[d+24>>3];n=J[d+64>>2];e=J[d+56>>2];h=J[d+60>>2];m=J[d+52>>2];g=J[d+48>>2];p=O[d+32>>3];j=O[d+16>>3];q=O[d+8>>3];u=O[d>>3];d=J[d+68>>2];if(!d){d=0;break fb}J[d+4>>2]=J[d+4>>2]+1;break fb}d=P(e,72)+d|0;n=J[d+136>>2];e=J[d+128>>2];h=J[d+132>>2];m=J[d+124>>2];g=J[d+ +120>>2];k=O[d+112>>3];p=O[d+104>>3];v=O[d+96>>3];j=O[d+88>>3];q=O[d+80>>3];u=O[d+72>>3];d=J[d+140>>2];if(!d){d=0;break fb}J[d+4>>2]=J[d+4>>2]+1;break fb}g=g&-16777216;m=-1;n=0;u=0;e=0;h=0;q=0;j=0;v=0;p=0;k=0;d=0}J[b+72>>2]=n;J[b+64>>2]=e;J[b+68>>2]=h;J[b+60>>2]=m;J[b+56>>2]=g;O[b+48>>3]=k;O[b+40>>3]=p;O[b+32>>3]=v;O[b+24>>3]=j;O[b+16>>3]=q;O[b+8>>3]=u;e=J[b+76>>2];J[b+76>>2]=d;if(!e)continue;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)continue;kc[J[J[e>>2]+8>>2]](e);Gc(e);continue}break}break Wa}jb:{if(d&255){J[699344]= +0;k=O[b+8>>3];j=O[b+16>>3];Aa(2511,o|0,+(O[b+24>>3]+k),+(O[b+32>>3]+j),+(k+O[b+40>>3]),+(j+O[b+48>>3]),+k,+j)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break jb;break Wa}J[699344]=0;wa(2326,o|0,+O[b+8>>3],+O[b+16>>3])|0;d=J[699344];J[699344]=0;if((d|0)==1)break Wa}d=J[b+76>>2];if(!d)break Xa;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break Xa;kc[J[J[d>>2]+8>>2]](d);Gc(d)}f=f+72|0;if((r|0)!=(f|0))continue;break Ua}break}d=Z()|0;bn(b+8|0);break Qa}d=Z()|0;break Qa}if(!K[a+4|0]|!K[a+5|0])break Sa;c=J[(J[a>>2]?J[b+140>> +2]==1?36:48:36)+a>>2];k=O[c>>3];O[b+8>>3]=k;j=O[c+8>>3];O[b+16>>3]=j;p=O[c+16>>3];O[b+24>>3]=p;q=O[c+24>>3];O[b+32>>3]=q;u=O[c+32>>3];O[b+40>>3]=u;v=O[c+40>>3];O[b+48>>3]=v;e=J[c+60>>2];d=b- -64|0;J[d>>2]=J[c+56>>2];J[d+4>>2]=e;d=J[c+52>>2];J[b+56>>2]=J[c+48>>2];J[b+60>>2]=d;J[b+72>>2]=J[c+64>>2];c=J[c+68>>2];J[b+76>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;d=a+28|0;kb:{if(K[b+56|0]){J[699344]=0;Aa(2511,d|0,+(p+k),+(q+j),+(k+u),+(j+v),+k,+j)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break kb;break Ra}J[699344]= +0;wa(2326,d|0,+k,+j)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Ra}J[699344]=0;_(2327,a+28|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ra;if(!c)break Sa;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break Sa;kc[J[J[c>>2]+8>>2]](c);Gc(c)}a=J[b+148>>2];lb:{if(!a)break lb;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break lb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[b+220>>2];mb:{if(!a)break mb;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break mb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}fc=b+224|0;break Pa}d=Z()|0;bn(b+8|0)}bn(b+80|0);bn(b+152|0);ba(d|0);B()}break ca}if((c| +0)==(d|0))break ea;while(1){if(!K[J[c>>2]+224|0])break ea;c=c+8|0;if((d|0)!=(c|0))continue;break}break da}nM(a);mM(a);break ca}o=0;b=fc-80|0;fc=b;g=a;nb:{ob:{c=J[a+36>>2];d=J[a+40>>2];e=(c|0)==(d|0);if(!e){a=c;while(1){if(!J[a+64>>2])break ob;a=a+72|0;if((d|0)!=(a|0))continue;break}}a=J[g+48>>2];f=J[g+52>>2];if((a|0)!=(f|0))while(1){if(!J[a+64>>2])break ob;a=a+72|0;if((f|0)!=(a|0))continue;break}if(J[g>>2]==2)break nb;c=g+28|0;a=g+12|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break nb}pb:{qb:{rb:{if(e)break rb; +w=g+36|0;a=c;while(1){if(J[a+64>>2]){a=a+72|0;if((d|0)!=(a|0))continue;break rb}break}f=J[g+48>>2];n=J[g+52>>2];if((f|0)==(n|0))break pb;l=g+48|0;a=f;break qb}sb:switch(J[g>>2]){case 1:c=g+28|0;a=g+12|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break nb;case 0:break sb;default:break nb}c=g+28|0;a=g+20|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break nb}while(1){if(J[a+64>>2]){a=a+72|0;if((n|0)!=(a|0))continue;break pb}break}tb:{while(1){ub:{if(!J[c+64>>2]){d=0;J[b+8>>2]=0;a=J[g+72>> +2];e=J[g+76>>2];if((a|0)==(e|0))break ub;while(1){d=lM(b,2772320,c,a,b+8|0)+d|0;a=a+144|0;if((e|0)!=(a|0))continue;break}n=J[g+52>>2];f=J[g+48>>2];c=!(d&1);break tb}c=c+72|0;if((d|0)!=(c|0))continue}break}c=1}a=1;vb:{if((f|0)==(n|0))break vb;while(1){if(!J[f+64>>2]){d=0;J[b+8>>2]=0;a=J[g+60>>2];e=J[g+64>>2];if((a|0)==(e|0)){a=1;break vb}while(1){d=lM(b,2772320,f,a,b+8|0)+d|0;a=a+144|0;if((e|0)!=(a|0))continue;break}a=!(d&1);break vb}f=f+72|0;if((n|0)!=(f|0))continue;break}}wb:switch(J[g>>2]){case 1:nM(g); +mM(g);break nb;case 0:if((a&c)==1){mM(g);break nb}a=g+28|0;if(c){c=g+12|0;if((c|0)!=(a|0)){J[a+4>>2]=J[c+4>>2];J[c+4>>2]=0}break nb}c=g+20|0;if((c|0)!=(a|0)){J[a+4>>2]=J[c+4>>2];J[c+4>>2]=0}break nb;default:break wb}if((a&c)==1){c=g+28|0;a=g+12|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break nb}r=g+28|0;vD(r);xb:{i=J[g+(c?36:48)>>2];y=J[(c?w:l)+4>>2];if((i|0)==(y|0))break xb;m=b- -64|0;while(1){yb:{zb:{if(J[i+64>>2]|K[i+49|0])break zb;Yj(r,O[i>>3],O[i+8>>3]);c=J[i+52>>2];n=P(c,72);a=J[w>> +2];d=J[l>>2];e=J[i+56>>2];H[(n+((e|0)==1?a:d)|0)+49|0]=1;Ab:{Bb:{Cb:{Db:{Eb:{if((e|0)==1){if((c|0)==(((J[g+40>>2]-a|0)/72|0)-1|0))break Eb;d=a;break Bb}if((c|0)!=(((J[g+52>>2]-d|0)/72|0)-1|0))break Bb;a=d;if(!K[i+50|0])break Db;break Cb}if(K[i+50|0])break Cb}H[b+55|0]=0;H[b+56|0]=0;H[b+57|0]=0;H[b+58|0]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+60>>2]=-1;a=m;J[a+8>>2]=0;J[a+12>>2]= +0;J[a>>2]=0;J[a+4>>2]=0;break Ab}O[b+8>>3]=O[a>>3];O[b+16>>3]=O[a+8>>3];O[b+24>>3]=O[a+16>>3];O[b+32>>3]=O[a+24>>3];O[b+40>>3]=O[a+32>>3];O[b+48>>3]=O[a+40>>3];c=J[a+60>>2];J[b+64>>2]=J[a+56>>2];J[b+68>>2]=c;c=J[a+52>>2];J[b+56>>2]=J[a+48>>2];J[b+60>>2]=c;J[b+72>>2]=J[a+64>>2];a=J[a+68>>2];J[b+76>>2]=a;if(!a)break Ab;J[a+4>>2]=J[a+4>>2]+1;break Ab}a=d+n|0;O[b+8>>3]=O[a+72>>3];O[b+16>>3]=O[a+80>>3];O[b+24>>3]=O[a+88>>3];O[b+32>>3]=O[a+96>>3];O[b+40>>3]=O[a+104>>3];O[b+48>>3]=O[a+112>>3];c=J[a+132>> +2];J[b+64>>2]=J[a+128>>2];J[b+68>>2]=c;c=J[a+124>>2];J[b+56>>2]=J[a+120>>2];J[b+60>>2]=c;J[b+72>>2]=J[a+136>>2];a=J[a+140>>2];J[b+76>>2]=a;if(!a)break Ab;J[a+4>>2]=J[a+4>>2]+1}Fb:{while(1){Gb:{n=J[b+64>>2];d=J[b+60>>2];if(n|(d|0)!=-1|(O[b+8>>3]!=0|O[b+16>>3]!=0))break Gb;if(O[b+24>>3]!=0|O[b+32>>3]!=0|(O[b+40>>3]!=0|O[b+48>>3]!=0))break Gb;a=K[b+56|0];break Fb}a=K[b+56|0];if((d|0)==J[i+52>>2]&(n|0)==J[i+56>>2])break Fb;Hb:{Ib:{if(a&255){J[699344]=0;k=O[b+8>>3];j=O[b+16>>3];Aa(2511,r|0,+(O[b+24>>3]+ +k),+(O[b+32>>3]+j),+(k+O[b+40>>3]),+(j+O[b+48>>3]),+k,+j)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Ib;break Hb}J[699344]=0;wa(2326,r|0,+O[b+8>>3],+O[b+16>>3])|0;a=J[699344];J[699344]=0;if((a|0)==1)break Hb}h=P(d,72);a=J[w>>2];c=J[l>>2];H[(h+((n|0)==1?a:c)|0)+49|0]=1;Jb:{Kb:{Lb:{Mb:{e=J[b+72>>2];if(e){d=J[e+196>>2];Nb:{Ob:{if(J[e+200>>2]==1){if((d|0)==(((J[g+40>>2]-a|0)/72|0)-1|0))break Ob;c=a;break Lb}if((d|0)!=(((J[g+52>>2]-c|0)/72|0)-1|0))break Lb;a=c;if(!K[e+194|0])break Nb;break Mb}if(K[e+ +194|0])break Mb}o=o&-16777216;c=-1;n=0;k=0;e=0;h=0;v=0;p=0;j=0;q=0;u=0;d=0;break Kb}Pb:{Qb:{Rb:{Sb:{Tb:{if((n|0)==1){if((d|0)==(((J[g+40>>2]-a|0)/72|0)-1|0))break Tb;c=a;break Qb}if((d|0)!=(((J[g+52>>2]-c|0)/72|0)-1|0))break Qb;a=c;if(!K[b+58|0])break Sb;break Rb}if(K[b+58|0])break Rb}f=f&-16777216;c=-1;n=0;k=0;e=0;h=0;v=0;p=0;j=0;q=0;u=0;d=0;break Pb}u=O[a+40>>3];j=O[a+24>>3];n=J[a+64>>2];e=J[a+56>>2];h=J[a+60>>2];c=J[a+52>>2];f=J[a+48>>2];q=O[a+32>>3];p=O[a+16>>3];v=O[a+8>>3];k=O[a>>3];d=J[a+68>> +2];if(!d){d=0;break Pb}J[d+4>>2]=J[d+4>>2]+1;break Pb}a=c+h|0;n=J[a+136>>2];e=J[a+128>>2];h=J[a+132>>2];c=J[a+124>>2];f=J[a+120>>2];u=O[a+112>>3];q=O[a+104>>3];j=O[a+96>>3];p=O[a+88>>3];v=O[a+80>>3];k=O[a+72>>3];d=J[a+140>>2];if(!d){d=0;break Pb}J[d+4>>2]=J[d+4>>2]+1}J[b+72>>2]=n;J[b+64>>2]=e;J[b+68>>2]=h;J[b+60>>2]=c;J[b+56>>2]=f;break Jb}u=O[a+40>>3];j=O[a+24>>3];n=J[a+64>>2];e=J[a+56>>2];h=J[a+60>>2];c=J[a+52>>2];o=J[a+48>>2];q=O[a+32>>3];p=O[a+16>>3];v=O[a+8>>3];k=O[a>>3];d=J[a+68>>2];if(!d){d= +0;break Kb}J[d+4>>2]=J[d+4>>2]+1;break Kb}a=P(d,72)+c|0;n=J[a+136>>2];e=J[a+128>>2];h=J[a+132>>2];c=J[a+124>>2];o=J[a+120>>2];u=O[a+112>>3];q=O[a+104>>3];j=O[a+96>>3];p=O[a+88>>3];v=O[a+80>>3];k=O[a+72>>3];d=J[a+140>>2];if(!d){d=0;break Kb}J[d+4>>2]=J[d+4>>2]+1}J[b+72>>2]=n;J[b+64>>2]=e;J[b+68>>2]=h;J[b+60>>2]=c;J[b+56>>2]=o}O[b+48>>3]=u;O[b+40>>3]=q;O[b+32>>3]=j;O[b+24>>3]=p;O[b+16>>3]=v;O[b+8>>3]=k;a=J[b+76>>2];J[b+76>>2]=d;if(!a)continue;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)continue;kc[J[J[a>>2]+8>> +2]](a);Gc(a);continue}break}break yb}Ub:{if(a&255){J[699344]=0;k=O[b+8>>3];j=O[b+16>>3];Aa(2511,r|0,+(O[b+24>>3]+k),+(O[b+32>>3]+j),+(k+O[b+40>>3]),+(j+O[b+48>>3]),+k,+j)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Ub;break yb}J[699344]=0;wa(2326,r|0,+O[b+8>>3],+O[b+16>>3])|0;a=J[699344];J[699344]=0;if((a|0)==1)break yb}a=J[b+76>>2];if(!a)break zb;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break zb;kc[J[J[a>>2]+8>>2]](a);Gc(a)}i=i+72|0;if((y|0)!=(i|0))continue;break xb}break}a=Z()|0;bn(b+8|0);ba(a|0);B()}if(!K[g+ +4|0]|!K[g+5|0])break nb;Nx(r);break nb}Vb:switch(J[g>>2]){case 1:c=g+28|0;a=g+20|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}break nb;case 0:break Vb;default:break nb}c=g+28|0;a=g+12|0;if((c|0)!=(a|0)){J[c+4>>2]=J[a+4>>2];J[a+4>>2]=0}}fc=b+80|0}fc=z+16|0}function aCb(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,y=0,z=0,A=0,B=0;q=c&1;t=(d|0)/16<<4;c=a;if((d|0)>=16)while(1){eba(c,e,f,q);p=c;a:{if((e|0)<2)break a; +w=(e-q|0)+1>>1;j=(P(w,f)<<2)+p|0;h=j;if(q){i=J[h>>2];g=J[p>>2];g=vEb(g,g>>31,-25987,8191);J[h>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[p+4>>2];g=vEb(g,g>>31,-25987,8191);J[h+4>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[p+8>>2];g=vEb(g,g>>31,-25987,8191);J[h+8>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[p+12>>2];g=vEb(g,g>>31,-25987,8191);J[h+12>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[p+16>>2];g=vEb(g,g>>31,-25987,8191);J[h+16>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[p+20>>2];g= +vEb(g,g>>31,-25987,8191);J[h+20>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[p+24>>2];g=vEb(g,g>>31,-25987,8191);J[h+24>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[p+28>>2];g=vEb(g,g>>31,-25987,8191);J[h+28>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[p+32>>2];g=vEb(g,g>>31,-25987,8191);J[h+32>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[p+36>>2];g=vEb(g,g>>31,-25987,8191);J[h+36>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[p+40>>2];g=vEb(g,g>>31,-25987,8191);J[h+40>>2]=((jc&8191)<<19|g>>>13)+ +i;i=J[h+44>>2];g=J[p+44>>2];g=vEb(g,g>>31,-25987,8191);J[h+44>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[p+48>>2];g=vEb(g,g>>31,-25987,8191);J[h+48>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[p+52>>2];g=vEb(g,g>>31,-25987,8191);J[h+52>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[p+56>>2];g=vEb(g,g>>31,-25987,8191);J[h+56>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[p+60>>2];g=vEb(g,g>>31,-25987,8191);J[h+60>>2]=((jc&8191)<<19|g>>>13)+i;h=(f<<2)+h|0}u=e-w|0;r=e&1;x=(r|0)==(q|0);k=(u-q|0)-x| +0;b:{if((k|0)<=0){i=p;break b}m=f<<2;o=k;g=p;while(1){n=J[h>>2];i=g+m|0;l=J[i>>2]+J[g>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+4>>2];l=J[m+(g+4|0)>>2]+J[g+4>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+4>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+8>>2];l=J[m+(g+8|0)>>2]+J[g+8>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+8>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+12>>2];l=J[m+(g+12|0)>>2]+J[g+12>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+12>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+16>>2];l=J[m+(g+16|0)>>2]+J[g+ +16>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+16>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+20>>2];l=J[m+(g+20|0)>>2]+J[g+20>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+20>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+24>>2];l=J[m+(g+24|0)>>2]+J[g+24>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+24>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+28>>2];l=J[m+(g+28|0)>>2]+J[g+28>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+28>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+32>>2];l=J[m+(g+32|0)>>2]+J[g+32>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+32>>2]=((jc&8191)<<19|l>>>13)+ +n;n=J[h+36>>2];l=J[m+(g+36|0)>>2]+J[g+36>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+36>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+40>>2];l=J[m+(g+40|0)>>2]+J[g+40>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+40>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+44>>2];l=J[m+(g+44|0)>>2]+J[g+44>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+44>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+48>>2];l=J[m+(g+48|0)>>2]+J[g+48>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+48>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+52>>2];l=J[m+(g+52|0)>>2]+J[g+52>>2]|0;l=vEb(l,l>>31,-12993,8191); +J[h+52>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+56>>2];l=J[m+(g+56|0)>>2]+J[g+56>>2]|0;l=vEb(l,l>>31,-12993,8191);J[h+56>>2]=((jc&8191)<<19|l>>>13)+n;l=J[h+60>>2];g=J[m+(g+60|0)>>2]+J[g+60>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+60>>2]=((jc&8191)<<19|g>>>13)+l;h=h+m|0;l=o>>>0>1;o=o-1|0;g=i;if(l)continue;break}}r=(q|0)!=(r|0);if(!r){o=J[h>>2];g=J[i>>2];g=vEb(g,g>>31,-25987,8191);J[h>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+4>>2];g=J[i+4>>2];g=vEb(g,g>>31,-25987,8191);J[h+4>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+8>>2]; +g=J[i+8>>2];g=vEb(g,g>>31,-25987,8191);J[h+8>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+12>>2];g=J[i+12>>2];g=vEb(g,g>>31,-25987,8191);J[h+12>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+16>>2];g=J[i+16>>2];g=vEb(g,g>>31,-25987,8191);J[h+16>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+20>>2];g=J[i+20>>2];g=vEb(g,g>>31,-25987,8191);J[h+20>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+24>>2];g=J[i+24>>2];g=vEb(g,g>>31,-25987,8191);J[h+24>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+28>>2];g=J[i+28>>2];g=vEb(g,g>>31,-25987,8191);J[h+28>>2]=((jc&8191)<< +19|g>>>13)+o;o=J[h+32>>2];g=J[i+32>>2];g=vEb(g,g>>31,-25987,8191);J[h+32>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+36>>2];g=J[i+36>>2];g=vEb(g,g>>31,-25987,8191);J[h+36>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+40>>2];g=J[i+40>>2];g=vEb(g,g>>31,-25987,8191);J[h+40>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+44>>2];g=J[i+44>>2];g=vEb(g,g>>31,-25987,8191);J[h+44>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+48>>2];g=J[i+48>>2];g=vEb(g,g>>31,-25987,8191);J[h+48>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+52>>2];g=J[i+52>>2];g=vEb(g,g>>31,-25987, +8191);J[h+52>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+56>>2];g=J[i+56>>2];g=vEb(g,g>>31,-25987,8191);J[h+56>>2]=((jc&8191)<<19|g>>>13)+o;o=J[h+60>>2];g=J[i+60>>2];g=vEb(g,g>>31,-25987,8191);J[h+60>>2]=((jc&8191)<<19|g>>>13)+o}h=p;if(!q){i=J[h>>2];g=J[j>>2];g=vEb(g,g>>31,-868,8191);J[h>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[j+4>>2];g=vEb(g,g>>31,-868,8191);J[h+4>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[j+8>>2];g=vEb(g,g>>31,-868,8191);J[h+8>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[j+12>>2]; +g=vEb(g,g>>31,-868,8191);J[h+12>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[j+16>>2];g=vEb(g,g>>31,-868,8191);J[h+16>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[j+20>>2];g=vEb(g,g>>31,-868,8191);J[h+20>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[j+24>>2];g=vEb(g,g>>31,-868,8191);J[h+24>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[j+28>>2];g=vEb(g,g>>31,-868,8191);J[h+28>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[j+32>>2];g=vEb(g,g>>31,-868,8191);J[h+32>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+ +36>>2];g=J[j+36>>2];g=vEb(g,g>>31,-868,8191);J[h+36>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[j+40>>2];g=vEb(g,g>>31,-868,8191);J[h+40>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[j+44>>2];g=vEb(g,g>>31,-868,8191);J[h+44>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[j+48>>2];g=vEb(g,g>>31,-868,8191);J[h+48>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[j+52>>2];g=vEb(g,g>>31,-868,8191);J[h+52>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[j+56>>2];g=vEb(g,g>>31,-868,8191);J[h+56>>2]=((jc&8191)<< +19|g>>>13)+i;i=J[h+60>>2];g=J[j+60>>2];g=vEb(g,g>>31,-868,8191);J[h+60>>2]=((jc&8191)<<19|g>>>13)+i;h=(f<<2)+h|0}o=(w-!q|0)-r|0;c:{if((o|0)<=0){m=j;break c}l=f<<2;i=o;g=j;while(1){s=J[h>>2];m=g+l|0;n=J[m>>2]+J[g>>2]|0;n=vEb(n,n>>31,-434,8191);J[h>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+4>>2];n=J[l+(g+4|0)>>2]+J[g+4>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+4>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+8>>2];n=J[l+(g+8|0)>>2]+J[g+8>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+8>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+12>>2];n=J[l+(g+ +12|0)>>2]+J[g+12>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+12>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+16>>2];n=J[l+(g+16|0)>>2]+J[g+16>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+16>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+20>>2];n=J[l+(g+20|0)>>2]+J[g+20>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+20>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+24>>2];n=J[l+(g+24|0)>>2]+J[g+24>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+24>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+28>>2];n=J[l+(g+28|0)>>2]+J[g+28>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+28>>2]=((jc&8191)<<19|n>>> +13)+s;s=J[h+32>>2];n=J[l+(g+32|0)>>2]+J[g+32>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+32>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+36>>2];n=J[l+(g+36|0)>>2]+J[g+36>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+36>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+40>>2];n=J[l+(g+40|0)>>2]+J[g+40>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+40>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+44>>2];n=J[l+(g+44|0)>>2]+J[g+44>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+44>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+48>>2];n=J[l+(g+48|0)>>2]+J[g+48>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+ +48>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+52>>2];n=J[l+(g+52|0)>>2]+J[g+52>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+52>>2]=((jc&8191)<<19|n>>>13)+s;s=J[h+56>>2];n=J[l+(g+56|0)>>2]+J[g+56>>2]|0;n=vEb(n,n>>31,-434,8191);J[h+56>>2]=((jc&8191)<<19|n>>>13)+s;n=J[h+60>>2];g=J[l+(g+60|0)>>2]+J[g+60>>2]|0;g=vEb(g,g>>31,-434,8191);J[h+60>>2]=((jc&8191)<<19|g>>>13)+n;h=h+l|0;n=i>>>0>1;i=i-1|0;g=m;if(n)continue;break}}if(!x){i=J[h>>2];g=J[m>>2];g=vEb(g,g>>31,-868,8191);J[h>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[m+ +4>>2];g=vEb(g,g>>31,-868,8191);J[h+4>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[m+8>>2];g=vEb(g,g>>31,-868,8191);J[h+8>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[m+12>>2];g=vEb(g,g>>31,-868,8191);J[h+12>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[m+16>>2];g=vEb(g,g>>31,-868,8191);J[h+16>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[m+20>>2];g=vEb(g,g>>31,-868,8191);J[h+20>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[m+24>>2];g=vEb(g,g>>31,-868,8191);J[h+24>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+ +28>>2];g=J[m+28>>2];g=vEb(g,g>>31,-868,8191);J[h+28>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[m+32>>2];g=vEb(g,g>>31,-868,8191);J[h+32>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[m+36>>2];g=vEb(g,g>>31,-868,8191);J[h+36>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[m+40>>2];g=vEb(g,g>>31,-868,8191);J[h+40>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[m+44>>2];g=vEb(g,g>>31,-868,8191);J[h+44>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[m+48>>2];g=vEb(g,g>>31,-868,8191);J[h+48>>2]=((jc&8191)<< +19|g>>>13)+i;i=J[h+52>>2];g=J[m+52>>2];g=vEb(g,g>>31,-868,8191);J[h+52>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[m+56>>2];g=vEb(g,g>>31,-868,8191);J[h+56>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[m+60>>2];g=vEb(g,g>>31,-868,8191);J[h+60>>2]=((jc&8191)<<19|g>>>13)+i}h=j;if(q){i=J[h>>2];g=J[p>>2];g=vEb(g,g>>31,14465,0);J[h>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[p+4>>2];g=vEb(g,g>>31,14465,0);J[h+4>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[p+8>>2];g=vEb(g,g>>31,14465,0);J[h+8>>2]=((jc& +8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[p+12>>2];g=vEb(g,g>>31,14465,0);J[h+12>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[p+16>>2];g=vEb(g,g>>31,14465,0);J[h+16>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[p+20>>2];g=vEb(g,g>>31,14465,0);J[h+20>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[p+24>>2];g=vEb(g,g>>31,14465,0);J[h+24>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[p+28>>2];g=vEb(g,g>>31,14465,0);J[h+28>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[p+32>>2];g=vEb(g,g>>31,14465,0);J[h+32>> +2]=((jc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[p+36>>2];g=vEb(g,g>>31,14465,0);J[h+36>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[p+40>>2];g=vEb(g,g>>31,14465,0);J[h+40>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[p+44>>2];g=vEb(g,g>>31,14465,0);J[h+44>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[p+48>>2];g=vEb(g,g>>31,14465,0);J[h+48>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[p+52>>2];g=vEb(g,g>>31,14465,0);J[h+52>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[p+56>>2];g=vEb(g,g>>31,14465,0); +J[h+56>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[p+60>>2];g=vEb(g,g>>31,14465,0);J[h+60>>2]=((jc&8191)<<19|g>>>13)+i;h=(f<<2)+h|0}d:{if((k|0)<=0){i=p;break d}m=f<<2;g=p;while(1){n=J[h>>2];i=g+m|0;l=J[i>>2]+J[g>>2]|0;l=vEb(l,l>>31,7232,0);J[h>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+4>>2];l=J[m+(g+4|0)>>2]+J[g+4>>2]|0;l=vEb(l,l>>31,7232,0);J[h+4>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+8>>2];l=J[m+(g+8|0)>>2]+J[g+8>>2]|0;l=vEb(l,l>>31,7232,0);J[h+8>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+12>>2];l=J[m+(g+12|0)>> +2]+J[g+12>>2]|0;l=vEb(l,l>>31,7232,0);J[h+12>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+16>>2];l=J[m+(g+16|0)>>2]+J[g+16>>2]|0;l=vEb(l,l>>31,7232,0);J[h+16>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+20>>2];l=J[m+(g+20|0)>>2]+J[g+20>>2]|0;l=vEb(l,l>>31,7232,0);J[h+20>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+24>>2];l=J[m+(g+24|0)>>2]+J[g+24>>2]|0;l=vEb(l,l>>31,7232,0);J[h+24>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+28>>2];l=J[m+(g+28|0)>>2]+J[g+28>>2]|0;l=vEb(l,l>>31,7232,0);J[h+28>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+32>>2];l= +J[m+(g+32|0)>>2]+J[g+32>>2]|0;l=vEb(l,l>>31,7232,0);J[h+32>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+36>>2];l=J[m+(g+36|0)>>2]+J[g+36>>2]|0;l=vEb(l,l>>31,7232,0);J[h+36>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+40>>2];l=J[m+(g+40|0)>>2]+J[g+40>>2]|0;l=vEb(l,l>>31,7232,0);J[h+40>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+44>>2];l=J[m+(g+44|0)>>2]+J[g+44>>2]|0;l=vEb(l,l>>31,7232,0);J[h+44>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+48>>2];l=J[m+(g+48|0)>>2]+J[g+48>>2]|0;l=vEb(l,l>>31,7232,0);J[h+48>>2]=((jc&8191)<<19|l>>>13)+n;n= +J[h+52>>2];l=J[m+(g+52|0)>>2]+J[g+52>>2]|0;l=vEb(l,l>>31,7232,0);J[h+52>>2]=((jc&8191)<<19|l>>>13)+n;n=J[h+56>>2];l=J[m+(g+56|0)>>2]+J[g+56>>2]|0;l=vEb(l,l>>31,7232,0);J[h+56>>2]=((jc&8191)<<19|l>>>13)+n;l=J[h+60>>2];g=J[m+(g+60|0)>>2]+J[g+60>>2]|0;g=vEb(g,g>>31,7232,0);J[h+60>>2]=((jc&8191)<<19|g>>>13)+l;h=h+m|0;l=k>>>0>1;k=k-1|0;g=i;if(l)continue;break}}if(!r){k=J[h>>2];g=J[i>>2];g=vEb(g,g>>31,14465,0);J[h>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+4>>2];g=J[i+4>>2];g=vEb(g,g>>31,14465,0);J[h+4>>2]=((jc& +8191)<<19|g>>>13)+k;k=J[h+8>>2];g=J[i+8>>2];g=vEb(g,g>>31,14465,0);J[h+8>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+12>>2];g=J[i+12>>2];g=vEb(g,g>>31,14465,0);J[h+12>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+16>>2];g=J[i+16>>2];g=vEb(g,g>>31,14465,0);J[h+16>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+20>>2];g=J[i+20>>2];g=vEb(g,g>>31,14465,0);J[h+20>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+24>>2];g=J[i+24>>2];g=vEb(g,g>>31,14465,0);J[h+24>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+28>>2];g=J[i+28>>2];g=vEb(g,g>>31,14465,0);J[h+28>>2]= +((jc&8191)<<19|g>>>13)+k;k=J[h+32>>2];g=J[i+32>>2];g=vEb(g,g>>31,14465,0);J[h+32>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+36>>2];g=J[i+36>>2];g=vEb(g,g>>31,14465,0);J[h+36>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+40>>2];g=J[i+40>>2];g=vEb(g,g>>31,14465,0);J[h+40>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+44>>2];g=J[i+44>>2];g=vEb(g,g>>31,14465,0);J[h+44>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+48>>2];g=J[i+48>>2];g=vEb(g,g>>31,14465,0);J[h+48>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+52>>2];g=J[i+52>>2];g=vEb(g,g>>31,14465,0);J[h+ +52>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+56>>2];g=J[i+56>>2];g=vEb(g,g>>31,14465,0);J[h+56>>2]=((jc&8191)<<19|g>>>13)+k;k=J[h+60>>2];g=J[i+60>>2];g=vEb(g,g>>31,14465,0);J[h+60>>2]=((jc&8191)<<19|g>>>13)+k}h=p;if(!q){i=J[h>>2];g=J[j>>2];g=vEb(g,g>>31,7266,0);J[h>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[j+4>>2];g=vEb(g,g>>31,7266,0);J[h+4>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[j+8>>2];g=vEb(g,g>>31,7266,0);J[h+8>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+12>>2];g=J[j+12>>2];g=vEb(g,g>>31,7266,0);J[h+ +12>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[j+16>>2];g=vEb(g,g>>31,7266,0);J[h+16>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[j+20>>2];g=vEb(g,g>>31,7266,0);J[h+20>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[j+24>>2];g=vEb(g,g>>31,7266,0);J[h+24>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[j+28>>2];g=vEb(g,g>>31,7266,0);J[h+28>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[j+32>>2];g=vEb(g,g>>31,7266,0);J[h+32>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+36>>2];g=J[j+36>>2];g=vEb(g,g>>31,7266,0);J[h+ +36>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[j+40>>2];g=vEb(g,g>>31,7266,0);J[h+40>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[j+44>>2];g=vEb(g,g>>31,7266,0);J[h+44>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[j+48>>2];g=vEb(g,g>>31,7266,0);J[h+48>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[j+52>>2];g=vEb(g,g>>31,7266,0);J[h+52>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[j+56>>2];g=vEb(g,g>>31,7266,0);J[h+56>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+60>>2];g=J[j+60>>2];g=vEb(g,g>>31,7266,0);J[h+ +60>>2]=((jc&8191)<<19|g>>>13)+i;h=(f<<2)+h|0}e:{if((o|0)<=0){k=j;break e}i=f<<2;g=j;while(1){l=J[h>>2];k=g+i|0;m=J[k>>2]+J[g>>2]|0;m=vEb(m,m>>31,3633,0);J[h>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+4>>2];m=J[i+(g+4|0)>>2]+J[g+4>>2]|0;m=vEb(m,m>>31,3633,0);J[h+4>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+8>>2];m=J[i+(g+8|0)>>2]+J[g+8>>2]|0;m=vEb(m,m>>31,3633,0);J[h+8>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+12>>2];m=J[i+(g+12|0)>>2]+J[g+12>>2]|0;m=vEb(m,m>>31,3633,0);J[h+12>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+16>>2];m= +J[i+(g+16|0)>>2]+J[g+16>>2]|0;m=vEb(m,m>>31,3633,0);J[h+16>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+20>>2];m=J[i+(g+20|0)>>2]+J[g+20>>2]|0;m=vEb(m,m>>31,3633,0);J[h+20>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+24>>2];m=J[i+(g+24|0)>>2]+J[g+24>>2]|0;m=vEb(m,m>>31,3633,0);J[h+24>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+28>>2];m=J[i+(g+28|0)>>2]+J[g+28>>2]|0;m=vEb(m,m>>31,3633,0);J[h+28>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+32>>2];m=J[i+(g+32|0)>>2]+J[g+32>>2]|0;m=vEb(m,m>>31,3633,0);J[h+32>>2]=((jc&8191)<<19|m>>>13)+l;l= +J[h+36>>2];m=J[i+(g+36|0)>>2]+J[g+36>>2]|0;m=vEb(m,m>>31,3633,0);J[h+36>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+40>>2];m=J[i+(g+40|0)>>2]+J[g+40>>2]|0;m=vEb(m,m>>31,3633,0);J[h+40>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+44>>2];m=J[i+(g+44|0)>>2]+J[g+44>>2]|0;m=vEb(m,m>>31,3633,0);J[h+44>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+48>>2];m=J[i+(g+48|0)>>2]+J[g+48>>2]|0;m=vEb(m,m>>31,3633,0);J[h+48>>2]=((jc&8191)<<19|m>>>13)+l;l=J[h+52>>2];m=J[i+(g+52|0)>>2]+J[g+52>>2]|0;m=vEb(m,m>>31,3633,0);J[h+52>>2]=((jc&8191)<<19| +m>>>13)+l;l=J[h+56>>2];m=J[i+(g+56|0)>>2]+J[g+56>>2]|0;m=vEb(m,m>>31,3633,0);J[h+56>>2]=((jc&8191)<<19|m>>>13)+l;m=J[h+60>>2];g=J[i+(g+60|0)>>2]+J[g+60>>2]|0;g=vEb(g,g>>31,3633,0);J[h+60>>2]=((jc&8191)<<19|g>>>13)+m;h=h+i|0;m=o>>>0>1;o=o-1|0;g=k;if(m)continue;break}}if(!x){i=J[h>>2];g=J[k>>2];g=vEb(g,g>>31,7266,0);J[h>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+4>>2];g=J[k+4>>2];g=vEb(g,g>>31,7266,0);J[h+4>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+8>>2];g=J[k+8>>2];g=vEb(g,g>>31,7266,0);J[h+8>>2]=((jc&8191)<<19| +g>>>13)+i;i=J[h+12>>2];g=J[k+12>>2];g=vEb(g,g>>31,7266,0);J[h+12>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+16>>2];g=J[k+16>>2];g=vEb(g,g>>31,7266,0);J[h+16>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+20>>2];g=J[k+20>>2];g=vEb(g,g>>31,7266,0);J[h+20>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+24>>2];g=J[k+24>>2];g=vEb(g,g>>31,7266,0);J[h+24>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+28>>2];g=J[k+28>>2];g=vEb(g,g>>31,7266,0);J[h+28>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+32>>2];g=J[k+32>>2];g=vEb(g,g>>31,7266,0);J[h+32>>2]=((jc&8191)<< +19|g>>>13)+i;i=J[h+36>>2];g=J[k+36>>2];g=vEb(g,g>>31,7266,0);J[h+36>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+40>>2];g=J[k+40>>2];g=vEb(g,g>>31,7266,0);J[h+40>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+44>>2];g=J[k+44>>2];g=vEb(g,g>>31,7266,0);J[h+44>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+48>>2];g=J[k+48>>2];g=vEb(g,g>>31,7266,0);J[h+48>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+52>>2];g=J[k+52>>2];g=vEb(g,g>>31,7266,0);J[h+52>>2]=((jc&8191)<<19|g>>>13)+i;i=J[h+56>>2];g=J[k+56>>2];g=vEb(g,g>>31,7266,0);J[h+56>>2]=((jc&8191)<< +19|g>>>13)+i;i=J[h+60>>2];g=J[k+60>>2];g=vEb(g,g>>31,7266,0);J[h+60>>2]=((jc&8191)<<19|g>>>13)+i}if((w|0)>0){i=f<<2;while(1){g=J[p>>2];g=vEb(g,g>>31,6659,0);J[p>>2]=(jc&8191)<<19|g>>>13;g=J[p+4>>2];g=vEb(g,g>>31,6659,0);J[p+4>>2]=(jc&8191)<<19|g>>>13;g=J[p+8>>2];g=vEb(g,g>>31,6659,0);J[p+8>>2]=(jc&8191)<<19|g>>>13;g=J[p+12>>2];g=vEb(g,g>>31,6659,0);J[p+12>>2]=(jc&8191)<<19|g>>>13;g=J[p+16>>2];g=vEb(g,g>>31,6659,0);J[p+16>>2]=(jc&8191)<<19|g>>>13;g=J[p+20>>2];g=vEb(g,g>>31,6659,0);J[p+20>>2]=(jc&8191)<< +19|g>>>13;g=J[p+24>>2];g=vEb(g,g>>31,6659,0);J[p+24>>2]=(jc&8191)<<19|g>>>13;g=J[p+28>>2];g=vEb(g,g>>31,6659,0);J[p+28>>2]=(jc&8191)<<19|g>>>13;g=J[p+32>>2];g=vEb(g,g>>31,6659,0);J[p+32>>2]=(jc&8191)<<19|g>>>13;g=J[p+36>>2];g=vEb(g,g>>31,6659,0);J[p+36>>2]=(jc&8191)<<19|g>>>13;g=J[p+40>>2];g=vEb(g,g>>31,6659,0);J[p+40>>2]=(jc&8191)<<19|g>>>13;g=J[p+44>>2];g=vEb(g,g>>31,6659,0);J[p+44>>2]=(jc&8191)<<19|g>>>13;g=J[p+48>>2];g=vEb(g,g>>31,6659,0);J[p+48>>2]=(jc&8191)<<19|g>>>13;g=J[p+52>>2];g=vEb(g,g>> +31,6659,0);J[p+52>>2]=(jc&8191)<<19|g>>>13;g=J[p+56>>2];g=vEb(g,g>>31,6659,0);J[p+56>>2]=(jc&8191)<<19|g>>>13;g=J[p+60>>2];g=vEb(g,g>>31,6659,0);J[p+60>>2]=(jc&8191)<<19|g>>>13;p=i+p|0;g=w>>>0>1;w=w-1|0;if(g)continue;break}}if((u|0)<=0)break a;p=f<<2;while(1){g=J[j>>2];g=vEb(g,g>>31,5038,0);J[j>>2]=(jc&8191)<<19|g>>>13;g=J[j+4>>2];g=vEb(g,g>>31,5038,0);J[j+4>>2]=(jc&8191)<<19|g>>>13;g=J[j+8>>2];g=vEb(g,g>>31,5038,0);J[j+8>>2]=(jc&8191)<<19|g>>>13;g=J[j+12>>2];g=vEb(g,g>>31,5038,0);J[j+12>>2]=(jc& +8191)<<19|g>>>13;g=J[j+16>>2];g=vEb(g,g>>31,5038,0);J[j+16>>2]=(jc&8191)<<19|g>>>13;g=J[j+20>>2];g=vEb(g,g>>31,5038,0);J[j+20>>2]=(jc&8191)<<19|g>>>13;g=J[j+24>>2];g=vEb(g,g>>31,5038,0);J[j+24>>2]=(jc&8191)<<19|g>>>13;g=J[j+28>>2];g=vEb(g,g>>31,5038,0);J[j+28>>2]=(jc&8191)<<19|g>>>13;g=J[j+32>>2];g=vEb(g,g>>31,5038,0);J[j+32>>2]=(jc&8191)<<19|g>>>13;g=J[j+36>>2];g=vEb(g,g>>31,5038,0);J[j+36>>2]=(jc&8191)<<19|g>>>13;g=J[j+40>>2];g=vEb(g,g>>31,5038,0);J[j+40>>2]=(jc&8191)<<19|g>>>13;g=J[j+44>>2];g= +vEb(g,g>>31,5038,0);J[j+44>>2]=(jc&8191)<<19|g>>>13;g=J[j+48>>2];g=vEb(g,g>>31,5038,0);J[j+48>>2]=(jc&8191)<<19|g>>>13;g=J[j+52>>2];g=vEb(g,g>>31,5038,0);J[j+52>>2]=(jc&8191)<<19|g>>>13;g=J[j+56>>2];g=vEb(g,g>>31,5038,0);J[j+56>>2]=(jc&8191)<<19|g>>>13;g=J[j+60>>2];g=vEb(g,g>>31,5038,0);J[j+60>>2]=(jc&8191)<<19|g>>>13;j=j+p|0;g=u>>>0>1;u=u-1|0;if(g)continue;break}}c=c- -64|0;z=z+16|0;if((t|0)>(z|0))continue;break}if((d|0)>(t|0)){l=d-t|0;dba(c,e,l,f,q);g=c;t=q;c=0;u=0;f:{if((e|0)<2)break f;x=(e-q| +0)+1>>1;p=(P(x,f)<<2)+g|0;j=p;if(q){g:{if((l|0)<=0)break g;i=j;k=g;if(l-1>>>0>=3){h=l&-4;while(1){o=J[i>>2];j=J[k>>2];j=vEb(j,j>>31,-25987,8191);J[i>>2]=((jc&8191)<<19|j>>>13)+o;o=J[i+4>>2];j=J[k+4>>2];j=vEb(j,j>>31,-25987,8191);J[i+4>>2]=((jc&8191)<<19|j>>>13)+o;o=J[i+8>>2];j=J[k+8>>2];j=vEb(j,j>>31,-25987,8191);J[i+8>>2]=((jc&8191)<<19|j>>>13)+o;o=J[i+12>>2];j=J[k+12>>2];j=vEb(j,j>>31,-25987,8191);J[i+12>>2]=((jc&8191)<<19|j>>>13)+o;k=k+16|0;i=i+16|0;c=c+4|0;if((h|0)!=(c|0))continue;break}}h=l& +3;if(!h)break g;c=0;while(1){o=J[i>>2];j=J[k>>2];j=vEb(j,j>>31,-25987,8191);J[i>>2]=((jc&8191)<<19|j>>>13)+o;k=k+4|0;i=i+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}j=(f<<2)+p|0}w=e-x|0;r=e&1;n=(r|0)==(t|0);m=(w-t|0)-n|0;h:{i:{if((m|0)<=0){c=g;break i}if((l|0)<=0)break h;v=l&-2;s=l&1;h=f<<2;o=m;c=g;while(1){q=0;i=j;k=c;if((l|0)!=1)while(1){y=J[i>>2];u=J[h+k>>2]+J[k>>2]|0;u=vEb(u,u>>31,-12993,8191);J[i>>2]=((jc&8191)<<19|u>>>13)+y;y=J[i+4>>2];u=J[h+(k+4|0)>>2]+J[k+4>>2]|0;u=vEb(u,u>>31,-12993,8191); +J[i+4>>2]=((jc&8191)<<19|u>>>13)+y;i=i+8|0;k=k+8|0;q=q+2|0;if((v|0)!=(q|0))continue;break}if(s){q=J[i>>2];k=J[h+k>>2]+J[k>>2]|0;k=vEb(k,k>>31,-12993,8191);J[i>>2]=((jc&8191)<<19|k>>>13)+q}c=c+h|0;j=h+j|0;i=(o|0)>1;o=o-1|0;if(i)continue;break}}v=(l|0)>0;u=n&v;if(!u){u=0;break h}if(l-1>>>0>=3){h=l&-4;i=0;while(1){o=J[j>>2];k=J[c>>2];k=vEb(k,k>>31,-25987,8191);J[j>>2]=((jc&8191)<<19|k>>>13)+o;o=J[j+4>>2];k=J[c+4>>2];k=vEb(k,k>>31,-25987,8191);J[j+4>>2]=((jc&8191)<<19|k>>>13)+o;o=J[j+8>>2];k=J[c+8>>2]; +k=vEb(k,k>>31,-25987,8191);J[j+8>>2]=((jc&8191)<<19|k>>>13)+o;o=J[j+12>>2];k=J[c+12>>2];k=vEb(k,k>>31,-25987,8191);J[j+12>>2]=((jc&8191)<<19|k>>>13)+o;j=j+16|0;c=c+16|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}h=l&3;if(!h)break h;i=0;while(1){o=J[j>>2];k=J[c>>2];k=vEb(k,k>>31,-25987,8191);J[j>>2]=((jc&8191)<<19|k>>>13)+o;j=j+4|0;c=c+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}j=g;if(!t){j:{if(!v)break j;k=p;i=g;if(l-1>>>0>=3){h=l&-4;c=0;while(1){o=J[i>>2];j=J[k>>2];j=vEb(j,j>>31,-868,8191);J[i>>2]= +((jc&8191)<<19|j>>>13)+o;o=J[i+4>>2];j=J[k+4>>2];j=vEb(j,j>>31,-868,8191);J[i+4>>2]=((jc&8191)<<19|j>>>13)+o;o=J[i+8>>2];j=J[k+8>>2];j=vEb(j,j>>31,-868,8191);J[i+8>>2]=((jc&8191)<<19|j>>>13)+o;o=J[i+12>>2];j=J[k+12>>2];j=vEb(j,j>>31,-868,8191);J[i+12>>2]=((jc&8191)<<19|j>>>13)+o;k=k+16|0;i=i+16|0;c=c+4|0;if((h|0)!=(c|0))continue;break}}h=l&3;if(!h)break j;c=0;while(1){o=J[i>>2];j=J[k>>2];j=vEb(j,j>>31,-868,8191);J[i>>2]=((jc&8191)<<19|j>>>13)+o;k=k+4|0;i=i+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}j= +(f<<2)+g|0}k:{l:{m:{n:{o:{s=(r|0)!=(t|0);o=(x-!t|0)-s|0;p:{if((o|0)<=0){c=p;break p}if(!v)break o;z=l&-2;A=l&1;r=f<<2;h=o;c=p;while(1){q=0;i=c;k=j;if((l|0)!=1)while(1){B=J[k>>2];y=J[i+r>>2]+J[i>>2]|0;y=vEb(y,y>>31,-434,8191);J[k>>2]=((jc&8191)<<19|y>>>13)+B;B=J[k+4>>2];y=J[r+(i+4|0)>>2]+J[i+4>>2]|0;y=vEb(y,y>>31,-434,8191);J[k+4>>2]=((jc&8191)<<19|y>>>13)+B;i=i+8|0;k=k+8|0;q=q+2|0;if((z|0)!=(q|0))continue;break}if(A){q=J[k>>2];i=J[i+r>>2]+J[i>>2]|0;i=vEb(i,i>>31,-434,8191);J[k>>2]=((jc&8191)<<19| +i>>>13)+q}c=c+r|0;j=j+r|0;i=(h|0)>1;h=h-1|0;if(i)continue;break}}q=s&v;q:{if(!q)break q;if(l-1>>>0>=3){h=l&-4;i=0;while(1){r=J[j>>2];k=J[c>>2];k=vEb(k,k>>31,-868,8191);J[j>>2]=((jc&8191)<<19|k>>>13)+r;r=J[j+4>>2];k=J[c+4>>2];k=vEb(k,k>>31,-868,8191);J[j+4>>2]=((jc&8191)<<19|k>>>13)+r;r=J[j+8>>2];k=J[c+8>>2];k=vEb(k,k>>31,-868,8191);J[j+8>>2]=((jc&8191)<<19|k>>>13)+r;r=J[j+12>>2];k=J[c+12>>2];k=vEb(k,k>>31,-868,8191);J[j+12>>2]=((jc&8191)<<19|k>>>13)+r;c=c+16|0;j=j+16|0;i=i+4|0;if((h|0)!=(i|0))continue; +break}}h=l&3;if(!h)break q;i=0;while(1){r=J[j>>2];k=J[c>>2];k=vEb(k,k>>31,-868,8191);J[j>>2]=((jc&8191)<<19|k>>>13)+r;c=c+4|0;j=j+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if(!t){h=q;j=p;break m}h=0;if(!v)break n;i=p;k=g;if(l-1>>>0>=3){h=l&-4;c=0;while(1){r=J[i>>2];j=J[k>>2];j=vEb(j,j>>31,14465,0);J[i>>2]=((jc&8191)<<19|j>>>13)+r;r=J[i+4>>2];j=J[k+4>>2];j=vEb(j,j>>31,14465,0);J[i+4>>2]=((jc&8191)<<19|j>>>13)+r;r=J[i+8>>2];j=J[k+8>>2];j=vEb(j,j>>31,14465,0);J[i+8>>2]=((jc&8191)<<19|j>>>13)+r;r=J[i+ +12>>2];j=J[k+12>>2];j=vEb(j,j>>31,14465,0);J[i+12>>2]=((jc&8191)<<19|j>>>13)+r;k=k+16|0;i=i+16|0;c=c+4|0;if((h|0)!=(c|0))continue;break}}h=l&3;if(h){c=0;while(1){r=J[i>>2];j=J[k>>2];j=vEb(j,j>>31,14465,0);J[i>>2]=((jc&8191)<<19|j>>>13)+r;k=k+4|0;i=i+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}h=q;break n}h=0;if(t)break n;j=p;c=g;if((m|0)<=0)break k;break l}j=(f<<2)+p|0}if((m|0)<=0){c=g;break k}if(!v)break l;y=l&-2;z=l&1;r=f<<2;c=g;while(1){q=0;i=j;k=c;if((l|0)!=1)while(1){A=J[i>>2];n=J[k+r>>2]+J[k>> +2]|0;n=vEb(n,n>>31,7232,0);J[i>>2]=((jc&8191)<<19|n>>>13)+A;A=J[i+4>>2];n=J[r+(k+4|0)>>2]+J[k+4>>2]|0;n=vEb(n,n>>31,7232,0);J[i+4>>2]=((jc&8191)<<19|n>>>13)+A;i=i+8|0;k=k+8|0;q=q+2|0;if((y|0)!=(q|0))continue;break}if(z){q=J[i>>2];k=J[k+r>>2]+J[k>>2]|0;k=vEb(k,k>>31,7232,0);J[i>>2]=((jc&8191)<<19|k>>>13)+q}c=c+r|0;j=j+r|0;i=(m|0)>1;m=m-1|0;if(i)continue;break}break k}i=P((n?-1:0)+e-(t+x)|0,f)<<2;c=i+g|0;j=i+j|0}r:{if(!u)break r;if(l-1>>>0>=3){m=l&-4;i=0;while(1){q=J[j>>2];k=J[c>>2];k=vEb(k,k>>31,14465, +0);J[j>>2]=((jc&8191)<<19|k>>>13)+q;q=J[j+4>>2];k=J[c+4>>2];k=vEb(k,k>>31,14465,0);J[j+4>>2]=((jc&8191)<<19|k>>>13)+q;q=J[j+8>>2];k=J[c+8>>2];k=vEb(k,k>>31,14465,0);J[j+8>>2]=((jc&8191)<<19|k>>>13)+q;q=J[j+12>>2];k=J[c+12>>2];k=vEb(k,k>>31,14465,0);J[j+12>>2]=((jc&8191)<<19|k>>>13)+q;j=j+16|0;c=c+16|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}m=l&3;if(!m)break r;i=0;while(1){q=J[j>>2];k=J[c>>2];k=vEb(k,k>>31,14465,0);J[j>>2]=((jc&8191)<<19|k>>>13)+q;j=j+4|0;c=c+4|0;i=i+1|0;if((m|0)!=(i|0))continue; +break}}j=g;if(!t){s:{if(!v)break s;k=p;i=g;if(l-1>>>0>=3){m=l&-4;c=0;while(1){q=J[i>>2];j=J[k>>2];j=vEb(j,j>>31,7266,0);J[i>>2]=((jc&8191)<<19|j>>>13)+q;q=J[i+4>>2];j=J[k+4>>2];j=vEb(j,j>>31,7266,0);J[i+4>>2]=((jc&8191)<<19|j>>>13)+q;q=J[i+8>>2];j=J[k+8>>2];j=vEb(j,j>>31,7266,0);J[i+8>>2]=((jc&8191)<<19|j>>>13)+q;q=J[i+12>>2];j=J[k+12>>2];j=vEb(j,j>>31,7266,0);J[i+12>>2]=((jc&8191)<<19|j>>>13)+q;k=k+16|0;i=i+16|0;c=c+4|0;if((m|0)!=(c|0))continue;break}}m=l&3;if(!m)break s;c=0;while(1){q=J[i>>2];j= +J[k>>2];j=vEb(j,j>>31,7266,0);J[i>>2]=((jc&8191)<<19|j>>>13)+q;k=k+4|0;i=i+4|0;c=c+1|0;if((m|0)!=(c|0))continue;break}}j=(f<<2)+g|0}t:{if((o|0)<=0){c=p;break t}if(v){u=l&-2;r=l&1;m=f<<2;c=p;while(1){q=0;i=c;k=j;if((l|0)!=1)while(1){n=J[k>>2];t=J[i+m>>2]+J[i>>2]|0;t=vEb(t,t>>31,3633,0);J[k>>2]=((jc&8191)<<19|t>>>13)+n;n=J[k+4>>2];t=J[m+(i+4|0)>>2]+J[i+4>>2]|0;t=vEb(t,t>>31,3633,0);J[k+4>>2]=((jc&8191)<<19|t>>>13)+n;i=i+8|0;k=k+8|0;q=q+2|0;if((u|0)!=(q|0))continue;break}if(r){q=J[k>>2];i=J[i+m>>2]+ +J[i>>2]|0;i=vEb(i,i>>31,3633,0);J[k>>2]=((jc&8191)<<19|i>>>13)+q}c=c+m|0;j=j+m|0;i=(o|0)>1;o=o-1|0;if(i)continue;break}break t}c=P((x<<3)+((t?0:-1)+(s?-1:0)<<2)|0,f)+g|0;j=(P(f,o)<<2)+j|0}u:{if(!h)break u;if(l-1>>>0>=3){h=l&-4;i=0;while(1){o=J[j>>2];k=J[c>>2];k=vEb(k,k>>31,7266,0);J[j>>2]=((jc&8191)<<19|k>>>13)+o;o=J[j+4>>2];k=J[c+4>>2];k=vEb(k,k>>31,7266,0);J[j+4>>2]=((jc&8191)<<19|k>>>13)+o;o=J[j+8>>2];k=J[c+8>>2];k=vEb(k,k>>31,7266,0);J[j+8>>2]=((jc&8191)<<19|k>>>13)+o;o=J[j+12>>2];k=J[c+12>>2]; +k=vEb(k,k>>31,7266,0);J[j+12>>2]=((jc&8191)<<19|k>>>13)+o;c=c+16|0;j=j+16|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}h=l&3;if(!h)break u;i=0;while(1){o=J[j>>2];k=J[c>>2];k=vEb(k,k>>31,7266,0);J[j>>2]=((jc&8191)<<19|k>>>13)+o;c=c+4|0;j=j+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}}if((x|0)>0){if(!v)break f;h=l&-4;c=l&3;o=l-1>>>0<3;m=f<<2;while(1){k=0;i=g;if(!o)while(1){j=J[i>>2];j=vEb(j,j>>31,6659,0);J[i>>2]=(jc&8191)<<19|j>>>13;j=J[i+4>>2];j=vEb(j,j>>31,6659,0);J[i+4>>2]=(jc&8191)<<19|j>>>13;j=J[i+ +8>>2];j=vEb(j,j>>31,6659,0);J[i+8>>2]=(jc&8191)<<19|j>>>13;j=J[i+12>>2];j=vEb(j,j>>31,6659,0);J[i+12>>2]=(jc&8191)<<19|j>>>13;i=i+16|0;k=k+4|0;if((h|0)!=(k|0))continue;break}k=0;if(c)while(1){j=J[i>>2];j=vEb(j,j>>31,6659,0);J[i>>2]=(jc&8191)<<19|j>>>13;i=i+4|0;k=k+1|0;if((c|0)!=(k|0))continue;break}g=g+m|0;j=(x|0)>1;x=x-1|0;if(j)continue;break}}if(!v|(w|0)<=0)break f;j=l&-4;c=l&3;h=l-1>>>0<3;o=f<<2;while(1){k=0;i=p;if(!h)while(1){g=J[i>>2];g=vEb(g,g>>31,5038,0);J[i>>2]=(jc&8191)<<19|g>>>13;g=J[i+ +4>>2];g=vEb(g,g>>31,5038,0);J[i+4>>2]=(jc&8191)<<19|g>>>13;g=J[i+8>>2];g=vEb(g,g>>31,5038,0);J[i+8>>2]=(jc&8191)<<19|g>>>13;g=J[i+12>>2];g=vEb(g,g>>31,5038,0);J[i+12>>2]=(jc&8191)<<19|g>>>13;i=i+16|0;k=k+4|0;if((j|0)!=(k|0))continue;break}k=0;if(c)while(1){g=J[i>>2];g=vEb(g,g>>31,5038,0);J[i>>2]=(jc&8191)<<19|g>>>13;i=i+4|0;k=k+1|0;if((c|0)!=(k|0))continue;break}p=o+p|0;g=(w|0)>1;w=w-1|0;if(g)continue;break}}}if((e|0)>0){o=b&1;c=0;x=f<<2;while(1){cba(a,d,o);b=a;v:{if((d|0)<2)break v;i=(d-o|0)+1>> +1;p=(i<<2)+b|0;g=p;if(o){j=J[g>>2];f=J[b>>2];f=vEb(f,f>>31,-25987,8191);J[g>>2]=((jc&8191)<<19|f>>>13)+j;g=g+4|0}q=d&1;m=(q|0)==(o|0);l=m?-1:0;u=d-i|0;k=(u-o|0)-m|0;w:{if((k|0)<=0){f=b;break w}h=(d+l|0)+(i^-1)|0;x:{if(!(k&1)){j=k;f=b;break x}j=J[g>>2];f=J[b+4>>2]+J[b>>2]|0;f=vEb(f,f>>31,-12993,8191);J[g>>2]=((jc&8191)<<19|f>>>13)+j;g=g+4|0;j=k-1|0;f=b+4|0}if((h|0)==(o|0))break w;while(1){t=J[g>>2];h=J[f+4>>2]+J[f>>2]|0;h=vEb(h,h>>31,-12993,8191);J[g>>2]=((jc&8191)<<19|h>>>13)+t;t=J[g+4>>2];h=J[f+ +8>>2]+J[f+4>>2]|0;h=vEb(h,h>>31,-12993,8191);J[g+4>>2]=((jc&8191)<<19|h>>>13)+t;g=g+8|0;f=f+8|0;h=j-3|0;j=j-2|0;if(h>>>0<4294967294)continue;break}}q=(o|0)!=(q|0);if(!q){j=J[g>>2];f=J[f>>2];f=vEb(f,f>>31,-25987,8191);J[g>>2]=((jc&8191)<<19|f>>>13)+j}g=b;if(!o){j=J[g>>2];f=J[p>>2];f=vEb(f,f>>31,-868,8191);J[g>>2]=((jc&8191)<<19|f>>>13)+j;g=g+4|0}t=o?0:-1;w=q?-1:0;j=(i-!o|0)-q|0;y:{if((j|0)<=0){f=p;break y}v=w+(i+t|0)|0;z:{if(!(j&1)){h=j;f=p;break z}h=J[g>>2];f=J[p+4>>2]+J[p>>2]|0;f=vEb(f,f>>31,-434, +8191);J[g>>2]=((jc&8191)<<19|f>>>13)+h;g=g+4|0;h=j-1|0;f=p+4|0}if((v|0)==1)break y;while(1){r=J[g>>2];v=J[f+4>>2]+J[f>>2]|0;v=vEb(v,v>>31,-434,8191);J[g>>2]=((jc&8191)<<19|v>>>13)+r;r=J[g+4>>2];v=J[f+8>>2]+J[f+4>>2]|0;v=vEb(v,v>>31,-434,8191);J[g+4>>2]=((jc&8191)<<19|v>>>13)+r;g=g+8|0;f=f+8|0;v=h-3|0;h=h-2|0;if(v>>>0<4294967294)continue;break}}if(!m){h=J[g>>2];f=J[f>>2];f=vEb(f,f>>31,-868,8191);J[g>>2]=((jc&8191)<<19|f>>>13)+h}g=p;if(o){h=J[g>>2];f=J[b>>2];f=vEb(f,f>>31,14465,0);J[g>>2]=((jc&8191)<< +19|f>>>13)+h;g=g+4|0}A:{if((k|0)<=0){f=b;break A}h=(d+l|0)+(i^-1)|0;if(k&1){l=J[g>>2];f=J[b+4>>2]+J[b>>2]|0;f=vEb(f,f>>31,7232,0);J[g>>2]=((jc&8191)<<19|f>>>13)+l;g=g+4|0;k=k-1|0;f=b+4|0}else f=b;if((h|0)==(o|0))break A;while(1){l=J[g>>2];h=J[f+4>>2]+J[f>>2]|0;h=vEb(h,h>>31,7232,0);J[g>>2]=((jc&8191)<<19|h>>>13)+l;l=J[g+4>>2];h=J[f+8>>2]+J[f+4>>2]|0;h=vEb(h,h>>31,7232,0);J[g+4>>2]=((jc&8191)<<19|h>>>13)+l;g=g+8|0;f=f+8|0;h=k-3|0;k=k-2|0;if(h>>>0<4294967294)continue;break}}if(!q){k=J[g>>2];f=J[f>> +2];f=vEb(f,f>>31,14465,0);J[g>>2]=((jc&8191)<<19|f>>>13)+k}g=b;if(!o){k=J[g>>2];f=J[p>>2];f=vEb(f,f>>31,7266,0);J[g>>2]=((jc&8191)<<19|f>>>13)+k;g=g+4|0}B:{if((j|0)<=0){f=p;break B}k=w+(i+t|0)|0;if(j&1){h=J[g>>2];f=J[p+4>>2]+J[p>>2]|0;f=vEb(f,f>>31,3633,0);J[g>>2]=((jc&8191)<<19|f>>>13)+h;g=g+4|0;j=j-1|0;f=p+4|0}else f=p;if((k|0)==1)break B;while(1){h=J[g>>2];k=J[f+4>>2]+J[f>>2]|0;k=vEb(k,k>>31,3633,0);J[g>>2]=((jc&8191)<<19|k>>>13)+h;h=J[g+4>>2];k=J[f+8>>2]+J[f+4>>2]|0;k=vEb(k,k>>31,3633,0);J[g+ +4>>2]=((jc&8191)<<19|k>>>13)+h;g=g+8|0;f=f+8|0;k=j-3|0;j=j-2|0;if(k>>>0<4294967294)continue;break}}if(!m){j=J[g>>2];f=J[f>>2];f=vEb(f,f>>31,7266,0);J[g>>2]=((jc&8191)<<19|f>>>13)+j}C:{if((i|0)<=0)break C;k=i&3;D:{if(!k){g=i;break D}f=0;g=i;while(1){j=J[b>>2];j=vEb(j,j>>31,6659,0);J[b>>2]=(jc&8191)<<19|j>>>13;b=b+4|0;g=g-1|0;f=f+1|0;if((k|0)!=(f|0))continue;break}}if(i>>>0<=3)break C;while(1){f=J[b>>2];f=vEb(f,f>>31,6659,0);J[b>>2]=(jc&8191)<<19|f>>>13;f=J[b+4>>2];f=vEb(f,f>>31,6659,0);J[b+4>>2]=(jc& +8191)<<19|f>>>13;f=J[b+8>>2];f=vEb(f,f>>31,6659,0);J[b+8>>2]=(jc&8191)<<19|f>>>13;f=J[b+12>>2];f=vEb(f,f>>31,6659,0);J[b+12>>2]=(jc&8191)<<19|f>>>13;b=b+16|0;f=g-5|0;g=g-4|0;if(f>>>0<4294967294)continue;break}}if((u|0)<=0)break v;while(1){b=J[p>>2];b=vEb(b,b>>31,5038,0);J[p>>2]=(jc&8191)<<19|b>>>13;p=p+4|0;b=u>>>0>1;u=u-1|0;if(b)continue;break}}a=a+x|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}return 0}function Vu(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,u=0,v=0,w=0,x=0, +y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;k=fc-15984|0;fc=k;J[k+15976>>2]=g;J[k+15980>>2]=f;q=J[a+176>>2];j=q;p=J[J[j+536>>2]+544>>2];G=J[a+52>>2];C=J[a>>2];Ac(k+15824|0,0,128);J[k+15968>>2]=0;f=k+15808|0;J[f>>2]=0;J[f+4>>2]=0;f=k+15708|0;J[f>>2]=0;J[f+4>>2]=0;f=k+15716|0;J[f>>2]=0;J[f+4>>2]=0;J[k+15960>>2]=0;J[k+15964>>2]=0;J[k+15792>>2]=0;J[k+15796>>2]=0;J[k+15800>>2]=0;J[k+15804>>2]=0;J[k+15780>>2]=0;J[k+15784>>2]=0;J[k+15772>>2]=10;J[k+15776>>2]=0;J[k+15764>> +2]=20;J[k+15768>>2]=0;E=a+4|0;J[k+15760>>2]=E;J[k+15756>>2]=C;J[k+15748>>2]=0;J[k+15752>>2]=0;J[k+15740>>2]=10;J[k+15744>>2]=0;J[k+15732>>2]=20;J[k+15736>>2]=0;J[k+15728>>2]=E;J[k+15724>>2]=C;J[k+15700>>2]=0;J[k+15704>>2]=0;J[k+15696>>2]=E;Ac(k+15536|0,0,160);J[k+15540>>2]=10;J[k+15532>>2]=8;J[k+15528>>2]=E;J[k+15524>>2]=C;J[k+3916>>2]=c;J[k+3912>>2]=a;Ac(k+11668|0,0,3856);f=K[a+184|0];J[k+11672>>2]=G;H[k+11669|0]=f;N=k+15524|0;J[k+11664>>2]=N;O=k+11656|0;J[k+11660>>2]=O;J[k+11656>>2]=a;Ac(k+7800| +0,0,3856);J[k+7804>>2]=G;H[k+7801|0]=f;J[k+7796>>2]=N;J[k+7792>>2]=O;J[k+7788>>2]=a;Ac(k+3932|0,0,3856);J[k+3936>>2]=G;H[k+3933|0]=f;J[k+3928>>2]=N;J[k+3924>>2]=O;J[k+3920>>2]=a;J[k+15556>>2]=J[a+40>>2];L=48;f=J[a+48>>2];J[k+15564>>2]=G;J[k+15560>>2]=f;i=J[d>>2];f=J[d+4>>2];J[k+15596>>2]=a+240;J[k+15592>>2]=g;J[k+15568>>2]=i;J[k+15572>>2]=f;J[k+15588>>2]=k+15696;J[k+15584>>2]=k+15724;J[k+15580>>2]=k+15756;H[k+15578|0]=K[a+185|0];f=J[a+228>>2];J[k+15600>>2]=f;i=J[a+232>>2];J[k+15612>>2]=6554;J[k+15604>> +2]=i;H[k+15577|0]=0;H[k+15579|0]=1;g=f;f=f>>31;g=(g^f)-f|0;f=i>>31;f=(f^i)-f|0;J[k+15608>>2]=((f|0)<(g|0)?g:f)<<1;f=K[a+9|0];H[k+15791|0]=(f|0)!=0;J[h>>2]=J[J[j+536>>2]+540>>2]<<16;L=f?J[J[j+532>>2]+1556>>2]:L;J[k+40>>2]=0;g=k+40|0;f=he(C,20,g);a:{b:{c:{d:{if(!J[k+40>>2]){J[f+4>>2]=E;J[f>>2]=C;g=_c(C,8,0,L,0,g);J[f+8>>2]=g;if(!J[k+40>>2])break d;if(f)kc[J[C+8>>2]](C,f)}b=64;f=0;i=1;g=0;break c}J[f+16>>2]=L;J[f+12>>2]=g;J[k+40>>2]=0;g=_c(C,1,0,272,0,k+40|0);j=J[a+4>>2];if(J[k+40>>2]){i=0;if(j)break a; +b=64;break b}i=0;if(j)break a;Q=p<<16;S=k+3920|0;A=k+15700|0;p=J[b+4>>2];J[g>>2]=J[b>>2];J[g+4>>2]=p;p=J[b+12>>2];J[g+8>>2]=J[b+8>>2];J[g+12>>2]=p;F=a+92|0;T=k+52|0;U=k+15616|0;R=2E7;w=g;e:while(1){B=0;while(1){p=i;b=w+12|0;i=J[b>>2];n=J[w+8>>2];f:{if(i>>>0>=n>>>0){l=z?11:14;j=i;break f}j=i+1|0;J[b>>2]=j;g:{l=K[i|0];switch(l-11|0){case 0:case 3:break g;default:break f}}l=K[a+9|0]?0:l}u=K[a+8|0];if(u){o=l&254;h:{m=l>>>0>31;if(m|(l|0)==12|((o|0)==10|(l-13&255)>>>0<2))break h;if(p&255|(l&253)==1)break h; +J[f+12>>2]=J[f+8>>2];i=0;continue}i=(l|0)==12;D=i?D:D&255?m?D:0:D;x=m?x:i?x:(x|0)<=0?x:(o|0)==10?x:0}if(J[a+4>>2]){i=0;break a}R=R-1|0;if(!R){i=0;b=18;break b}i=p;i:{j:{k:{l:{m:{n:{o:{p:switch(l|0){case 15:if(!K[a+9|0])break m;if(K[a+93|0])break i;b=J[f+12>>2];if((b|0)==J[f+8>>2]){i=0;b=J[f+4>>2];if(!b|J[b>>2])break k;J[b>>2]=161;J[a+120>>2]=0;i=p;break j}if(J[b-4>>2]!=2){i=0;b=J[f+4>>2];if(!b|J[b>>2])break k;J[b>>2]=160;break k}b=b-8|0;J[f+12>>2]=b;i=J[b>>2];if((i|0)>=0)break k;break m;case 16:if(!K[a+ +9|0])break m;b=18;i=0;if(!J[a+96>>2])break c;q:{if(!(kc[J[J[a+548>>2]+12>>2]](F,J[a+120>>2],J[a+124>>2],J[a+128>>2])|0))break q;j=kc[J[J[a+548>>2]+16>>2]](F,J[a+120>>2],J[a+124>>2],J[a+128>>2])|0;if(!j)break q;b=j;break c}j=J[f+12>>2];r:{if((j|0)==J[f+8>>2]){l=0;b=J[f+4>>2];if(!b|J[b>>2])break r;J[b>>2]=161;break r}if(J[j-4>>2]!=2){l=0;b=J[f+4>>2];if(!b|J[b>>2])break r;J[b>>2]=160;break r}j=j-8|0;J[f+12>>2]=j;l=J[j>>2];if(L>>>0>>0)break c}n=0;j=J[f+12>>2];b=J[f+8>>2];i=j-b>>3;t=P(J[F+20>>2],l); +if(l){v=i-t|0;m=v+l|0;while(1){j=J[F+24>>2];o=J[f+12>>2]-b>>3;y=n+v|0;s:{if(o>>>0<=y>>>0){i=0;r=J[f+4>>2];if(!r|J[r>>2])break s;J[r>>2]=130;break s}r=(y<<3)+b|0;i=J[r>>2];t:switch(J[r+4>>2]-1|0){case 1:i=i<<16;break s;case 0:break t;default:break s}i=((i>>31)+i|0)- -8192>>14}r=1;if(M[F+20>>2]>=2){while(1){u=J[j+4>>2];b=J[f+8>>2];u:{if(J[f+12>>2]-b>>3>>>0<=m>>>0){b=0;o=J[f+4>>2];if(!o|J[o>>2])break u;J[o>>2]=130;break u}o=b+(m<<3)|0;b=J[o>>2];v:switch(J[o+4>>2]-1|0){case 1:b=b<<16;break u;case 0:break v; +default:break u}b=((b>>31)+b|0)- -8192>>14}m=m+1|0;j=j+4|0;i=Wc(u,b)+i|0;r=r+1|0;if(r>>>0>2])continue;break}b=J[f+8>>2];o=J[f+12>>2]-b>>3}w:{if(o>>>0>>0){i=J[f+4>>2];if(!i|J[i>>2])break w;J[i>>2]=130;break w}j=y<<3;J[j+b>>2]=i;b=J[f+8>>2];J[(j+b|0)+4>>2]=0}n=n+1|0;if((n|0)!=(l|0))continue;break}j=J[f+12>>2];i=j-b>>3}b=t-l|0;x:{if(i>>>0>>0){b=J[f+4>>2];if(!b|J[b>>2])break x;J[b>>2]=161;break x}J[f+12>>2]=j-(b<<3)}H[a+93|0]=1;i=p;continue;case 1:case 18:j=k+15756|0;m=k+15791|0;y:{if(!u){if(K[k+ +15700|0])break m;b=0;break y}b=J[J[q+32>>2]+4>>2]}TD(a,f,j,h,m,b);if(!K[q+548|0])break j;break l;case 3:case 23:j=k+15724|0;m=k+15791|0;z:{if(!u){if(K[k+15700|0])break m;b=0;break z}b=J[J[q+32>>2]>>2]}TD(a,f,j,h,m,b);if(K[q+548|0])break l;break j;case 4:i=J[f+12>>2];j=J[f+8>>2];if(!(K[k+15791|0]|i-j>>>0<16)){b=J[j>>2];A:{B:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break A;case 0:break B;default:break A}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+548|0])break l;C:{if((i|0)==(j|0)){i=0; +b=J[f+4>>2];if(!b|J[b>>2])break C;J[b>>2]=161;break C}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];D:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break C;case 0:break D;default:break C}i=((i>>31)+i|0)- -8192>>14}b=J[k+15976>>2]+i|0;J[k+15976>>2]=b;if(J[q+468>>2])break m;Uu(k+3912|0,J[k+15980>>2],b);break m;case 5:r=J[k+15976>>2];l=J[k+15980>>2];i=J[f+8>>2];b=J[f+12>>2];if((i|0)!=(b|0)){o=b-i>>3;i=0;while(1){n=J[f+8>>2];m=J[f+12>>2]-n>>3;E:{if(m>>>0<=i>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break E;J[j>>2]=130;break E}j=n+ +(i<<3)|0;b=J[j>>2];F:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break E;case 0:break F;default:break E}b=((b>>31)+b|0)- -8192>>14}l=b+l|0;b=i|1;G:{if(b>>>0>=m>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break G;J[j>>2]=130;break G}j=n+(b<<3)|0;b=J[j>>2];H:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break G;case 0:break H;default:break G}b=((b>>31)+b|0)- -8192>>14}r=b+r|0;is(k+3912|0,l,r);i=i+2|0;if(o>>>0>i>>>0)continue;break}i=J[f+8>>2]}J[k+15976>>2]=r;J[k+15980>>2]=l;J[f+12>>2]=i;i=p;continue;case 6:case 7:r=J[k+15976>> +2];s=J[k+15980>>2];i=J[f+8>>2];b=J[f+12>>2];if((i|0)!=(b|0)){b=b-i>>3;m=b>>>0<=1?1:b;b=(l|0)==6;l=0;while(1){i=J[f+8>>2];I:{if(J[f+12>>2]-i>>3>>>0<=l>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break I;J[j>>2]=130;break I}j=i+(l<<3)|0;i=J[j>>2];J:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break I;case 0:break J;default:break I}i=((i>>31)+i|0)- -8192>>14}j=b&255;s=(j?i:0)+s|0;r=(j?0:i)+r|0;is(k+3912|0,s,r);b=b^1;l=l+1|0;if((m|0)!=(l|0))continue;break}i=J[f+8>>2]}J[k+15976>>2]=r;J[k+15980>>2]=s;J[f+12>>2]=i;i=p;continue; +case 8:case 24:b=6;m=0;r=J[k+15976>>2];s=J[k+15980>>2];i=J[f+8>>2];u=J[f+12>>2]-i>>3;if(u>>>0>=6){while(1){i=m;m=b;y=J[f+8>>2];t=J[f+12>>2]-y>>3;K:{if(t>>>0<=i>>>0){j=0;b=J[f+4>>2];if(!b|J[b>>2])break K;J[b>>2]=130;break K}b=y+(i<<3)|0;j=J[b>>2];L:switch(J[b+4>>2]-1|0){case 1:j=j<<16;break K;case 0:break L;default:break K}j=((j>>31)+j|0)- -8192>>14}b=i|1;M:{if(b>>>0>=t>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break M;J[b>>2]=130;break M}b=y+(b<<3)|0;n=J[b>>2];N:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break M; +case 0:break N;default:break M}n=((n>>31)+n|0)- -8192>>14}b=i+2|0;O:{if(b>>>0>=t>>>0){o=0;b=J[f+4>>2];if(!b|J[b>>2])break O;J[b>>2]=130;break O}b=y+(b<<3)|0;o=J[b>>2];P:switch(J[b+4>>2]-1|0){case 1:o=o<<16;break O;case 0:break P;default:break O}o=((o>>31)+o|0)- -8192>>14}v=j+s|0;b=i+3|0;Q:{if(b>>>0>=t>>>0){s=0;b=J[f+4>>2];if(!b|J[b>>2])break Q;J[b>>2]=130;break Q}b=y+(b<<3)|0;s=J[b>>2];R:switch(J[b+4>>2]-1|0){case 1:s=s<<16;break Q;case 0:break R;default:break Q}s=((s>>31)+s|0)- -8192>>14}n=n+r|0; +o=o+v|0;b=i+4|0;S:{if(b>>>0>=t>>>0){r=0;b=J[f+4>>2];if(!b|J[b>>2])break S;J[b>>2]=130;break S}b=y+(b<<3)|0;r=J[b>>2];T:switch(J[b+4>>2]-1|0){case 1:r=r<<16;break S;case 0:break T;default:break S}r=((r>>31)+r|0)- -8192>>14}j=n+s|0;s=o+r|0;b=i+5|0;U:{if(b>>>0>=t>>>0){i=0;b=J[f+4>>2];if(!b|J[b>>2])break U;J[b>>2]=130;break U}b=y+(b<<3)|0;i=J[b>>2];V:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break U;case 0:break V;default:break U}i=((i>>31)+i|0)- -8192>>14}r=i+j|0;Cq(k+3912|0,v,n,o,j,s,r);b=m+6|0;if(u>>>0>= +b>>>0)continue;break}i=J[f+8>>2]}J[k+15976>>2]=r;J[k+15980>>2]=s;if((l|0)==24){o=J[f+12>>2]-i>>3;W:{if(o>>>0<=m>>>0){l=0;b=J[f+4>>2];if(!b|J[b>>2])break W;J[b>>2]=130;break W}b=(m<<3)+i|0;l=J[b>>2];X:switch(J[b+4>>2]-1|0){case 1:l=l<<16;break W;case 0:break X;default:break W}l=((l>>31)+l|0)- -8192>>14}j=l+s|0;J[k+15980>>2]=j;b=m|1;Y:{if(b>>>0>=o>>>0){i=0;b=J[f+4>>2];if(!b|J[b>>2])break Y;J[b>>2]=130;break Y}b=(b<<3)+i|0;i=J[b>>2];Z:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break Y;case 0:break Z;default:break Y}i= +((i>>31)+i|0)- -8192>>14}b=i+r|0;J[k+15976>>2]=b;is(k+3912|0,j,b);i=J[f+8>>2]}J[f+12>>2]=i;i=p;continue;case 9:if(!u)break m;if(K[k+15576|0]){H[k+15577|0]=1;b=k+3912|0;is(b,J[k+15648>>2],J[k+15652>>2]);if(K[k+15656|0])by(b,S,U,J[k+15624>>2],J[k+15628>>2],1);H[k+15656|0]=0;I[k+15576>>1]=0;H[k+15579|0]=1}H[k+15791|0]=1;i=p;break j;case 10:case 29:b=18;i=0;if((z|0)>16)break c;z=z+1|0;j=z;if(j>>>0>=17){J[a+4>>2]=130;j=0}m=j<<4;j=J[f+12>>2];_:{if((j|0)==J[f+8>>2]){r=0;j=J[f+4>>2];if(!j|J[j>>2])break _; +J[j>>2]=161;break _}if(J[j-4>>2]!=2){r=0;j=J[f+4>>2];if(!j|J[j>>2])break _;J[j>>2]=160;break _}j=j-8|0;J[f+12>>2]=j;r=J[j>>2]}w=g+m|0;$:{if(!u)break $;j=J[q+616>>2];if(!j)break $;j=Pi(r,j);if(!j){r=-1;break $}r=J[j>>2]}J[w>>2]=0;J[w+4>>2]=0;J[w+8>>2]=0;J[w+12>>2]=0;if((l|0)==29){j=J[q+568>>2]+r|0;if(j>>>0>=M[q+560>>2])break c;i=J[q+576>>2]+(j<<2)|0;b=J[i>>2];J[w+4>>2]=b;J[w+12>>2]=b;J[w+8>>2]=J[i+4>>2];i=p;continue}j=J[q+564>>2]+r|0;if(j>>>0>=M[q+556>>2])break c;j=j<<2;m=j+J[q+572>>2]|0;i=J[m>>2]; +J[w+4>>2]=i;aa:{if(K[q+48|0]){b=J[q+612>>2];if(b){if(!i){i=0;b=0;break aa}b=J[b+j>>2]+i|0;break aa}b=J[q+608>>2];i=((b|0)>0?b:0)+i|0;J[w+4>>2]=i;b=J[m+4>>2];break aa}b=J[m+4>>2]}J[w+12>>2]=i;J[w+8>>2]=b;i=p;continue;case 11:if((z|0)<=0)break i;z=z-1|0;b=z;if(b>>>0>=17){J[a+4>>2]=130;b=0}w=(b<<4)+g|0;continue;case 12:if(j>>>0>=n>>>0){b=J[w>>2];if(b){l=0;if(J[b>>2])break n;J[b>>2]=85}l=0;break n}J[b>>2]=j+1;ba:{ca:{da:{ea:{l=K[j|0];switch(l-8|0){case 29:break ba;case 28:break ca;case 27:break da;case 26:break ea; +case 0:case 5:case 11:case 17:case 23:case 24:break j;default:break n}}SD(f,k+15980|0,k+15976|0,k+3912|0,262044,0);continue}SD(f,k+15980|0,k+15976|0,k+3912|0,262056,0);break j}SD(f,k+15980|0,k+15976|0,k+3912|0,262068,0);continue}SD(f,k+15980|0,k+15976|0,k+3912|0,262080,1);continue;case 13:if(!u)break m;i=J[f+12>>2];j=J[f+8>>2];fa:{if((i|0)==(j|0)){l=0;b=J[f+4>>2];if(!b|J[b>>2])break fa;J[b>>2]=161;break fa}i=i-8|0;J[f+12>>2]=i;l=J[i>>2];ga:switch(J[i+4>>2]-1|0){case 1:l=l<<16;break fa;case 0:break ga; +default:break fa}l=((l>>31)+l|0)- -8192>>14}b=J[q+36>>2];J[b+4>>2]=0;J[b>>2]=l;ha:{if((i|0)==(j|0)){i=0;b=J[f+4>>2];if(!b|J[b>>2])break ha;J[b>>2]=161;break ha}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];ia:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break ha;case 0:break ia;default:break ha}i=((i>>31)+i|0)- -8192>>14}b=J[q+32>>2];J[b>>2]=J[b>>2]+i;H[k+15791|0]=1;if(K[q+47|0])break l;if(!(p&255)){i=0;break j}J[k+15980>>2]=J[k+15980>>2]+i;i=p;break j;case 14:if(!(!u|p&255)){Uu(k+3912|0,J[k+15980>>2],J[k+15976>>2]);J[k+ +15776>>2]=0;J[k+15744>>2]=0;J[A+16>>2]=0;J[A+20>>2]=0;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+4>>2]=0;J[k+15696>>2]=E;H[k+15701|0]=1;if((z|0)>0){i=z;ja:{if(!(i&1))break ja;i=i-1|0;if(z>>>0<18){b=i;break ja}b=0;if(J[a+4>>2])break ja;J[a+4>>2]=130}if((z|0)!=1)while(1){if(!(J[a+4>>2]|i>>>0<18))J[a+4>>2]=130;p=i-1|0;i=i-2|0;b=i;ka:{if(p>>>0<18)break ka;b=0;if(J[a+4>>2])break ka;J[a+4>>2]=130}if(p>>>0>1)continue;break}w=(b<<4)+g|0;z=0}J[w+12>>2]=J[w+4>>2];i=1;break j}b=J[f+12>>2]-J[f+8>>2]|0;la:{ma:{if((b| +0)!=8){if((b|0)!=40)break la;if(!K[k+15791|0])break ma;break la}if(K[k+15791|0])break la}V=h,W=fp(f,0)+Q|0,J[V>>2]=W}H[k+15791|0]=1;i=0;if(K[q+548|0]){b=0;break c}b=k+3912|0;if(K[b+11664|0]){H[b+11665|0]=1;is(b,J[b+11736>>2],J[b+11740>>2]);if(K[b+11744|0])by(b,b+8|0,b+11704|0,J[b+11712>>2],J[b+11716>>2],1);H[b+11744|0]=0;I[b+11664>>1]=0;H[b+11667|0]=1}if(K[a+9|0]){b=0;break c}if(K[a+8|0]){b=0;break c}if(J[f+12>>2]-J[f+8>>2]>>>0<9){b=0;break c}b=18;na:{if(e)break na;b=Ej(f);i=Ej(f);h=Ne(f);J[k+15976>> +2]=h;e=Ne(f);J[k+15980>>2]=e;p=k+40|0;b=d7(q,b,p);if(b)break na;b=h;h=k+12|0;Vu(a,p,c,d,1,e,b,h);e=k+44|0;kc[J[q+600>>2]](J[q+4>>2],e,J[k+48>>2]-J[k+44>>2]|0);b=d7(q,i,p);if(b)break na;b=0;Vu(a,p,c,d,1,0,0,h);kc[J[q+600>>2]](J[q+4>>2],e,J[k+48>>2]-J[k+44>>2]|0)}i=0;break c;case 19:case 20:if(K[k+15700|0]?J[f+12>>2]-J[f+8>>2]>>>0>=16:0)break m;i=0;TD(a,f,k+15724|0,h,k+15791|0,0);if(K[q+548|0]){b=0;break c}if((l|0)==19){j=J[k+15744>>2]+J[k+15776>>2]|0;if(j>>>0>=97){b=J[k+15696>>2];if(!b|J[b>>2])break m; +J[b>>2]=18;i=p;break j}J[k+15704>>2]=j;I[k+15700>>1]=257;J[k+15708>>2]=j+7>>>3;if(!j)break m;while(1){j=J[b>>2];oa:{if(j>>>0>2]){J[b>>2]=j+1;l=K[j|0];break oa}l=0;j=J[w>>2];if(!j|J[j>>2])break oa;J[j>>2]=85}H[(i+k|0)+15712|0]=l;i=i+1|0;if(i>>>0>2])continue;break}break m}Ac(T,0,3856);i=K[a+184|0];J[k+56>>2]=G;H[k+53|0]=i;J[k+48>>2]=N;J[k+44>>2]=O;J[k+40>>2]=a;J[k+32>>2]=0;J[k+36>>2]=0;J[k+24>>2]=0;J[k+28>>2]=0;J[k+16>>2]=0;J[k+20>>2]=0;J[k+12>>2]=E;j=J[k+15744>>2]+J[k+15776>>2]|0; +pa:{if(j>>>0>=97){if(J[a+4>>2])break pa;J[a+4>>2]=18;break pa}J[k+20>>2]=j;I[k+16>>1]=257;J[k+24>>2]=j+7>>>3;i=0;if(!j)break pa;while(1){j=J[b>>2];qa:{if(j>>>0>2]){J[b>>2]=j+1;l=K[j|0];break qa}l=0;j=J[w>>2];if(!j|J[j>>2])break qa;J[j>>2]=85}H[(i+k|0)+28|0]=l;i=i+1|0;if(i>>>0>2])continue;break}}ay(k+40|0,k+15756|0,k+15724|0,k+12|0,0,0);i=p;break j;case 21:j=J[f+12>>2];m=J[f+8>>2];if(!(K[k+15791|0]|j-m>>>0<24)){b=J[m>>2];ra:{sa:switch(J[m+4>>2]-1|0){case 1:b=b<<16;break ra;case 0:break sa; +default:break ra}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+548|0])break l;b=J[k+15976>>2];ta:{ua:{va:{if((j|0)==(m|0)){i=J[f+4>>2];if(!(!i|J[i>>2]))J[i>>2]=161;J[k+15976>>2]=b;s=J[k+15980>>2];break va}i=j-8|0;J[f+12>>2]=i;s=J[i>>2];wa:{xa:switch(J[i+4>>2]-1|0){case 0:s=((s>>31)+s|0)- -8192>>14;break wa;case 1:break xa;default:break wa}s=s<<16}b=b+s|0;J[k+15976>>2]=b;s=J[k+15980>>2];if((i|0)!=(m|0))break ua}i=0;j=J[f+4>>2];if(!j|J[j>>2])break ta;J[j>>2]=161;break ta}j=j-16|0;J[f+ +12>>2]=j;i=J[j>>2];ya:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break ta;case 0:break ya;default:break ta}i=((i>>31)+i|0)- -8192>>14}i=i+s|0;J[k+15980>>2]=i;if(J[q+468>>2])break m;Uu(k+3912|0,i,b);i=p;break j;case 22:i=J[f+12>>2];j=J[f+8>>2];if(!(K[k+15791|0]|i-j>>>0<16)){b=J[j>>2];za:{Aa:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break za;case 0:break Aa;default:break za}b=((b>>31)+b|0)- -8192>>14}J[h>>2]=b+Q}H[k+15791|0]=1;if(K[q+548|0])break l;Ba:{if((i|0)==(j|0)){i=0;b=J[f+4>>2];if(!b|J[b>>2])break Ba;J[b>> +2]=161;break Ba}b=i-8|0;J[f+12>>2]=b;i=J[b>>2];Ca:switch(J[b+4>>2]-1|0){case 1:i=i<<16;break Ba;case 0:break Ca;default:break Ba}i=((i>>31)+i|0)- -8192>>14}b=J[k+15980>>2]+i|0;J[k+15980>>2]=b;if(J[q+468>>2])break m;Uu(k+3912|0,b,J[k+15976>>2]);i=p;break j;case 25:i=0;r=J[k+15976>>2];l=J[k+15980>>2];t=J[f+12>>2]-J[f+8>>2]>>3;if(t>>>0<=6)break o;while(1){o=J[f+8>>2];m=J[f+12>>2]-o>>3;b=i;Da:{if(m>>>0<=b>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break Da;J[j>>2]=130;break Da}j=o+(b<<3)|0;i=J[j>>2];Ea:switch(J[j+ +4>>2]-1|0){case 1:i=i<<16;break Da;case 0:break Ea;default:break Da}i=((i>>31)+i|0)- -8192>>14}l=i+l|0;i=b|1;Fa:{if(i>>>0>=m>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break Fa;J[j>>2]=130;break Fa}j=o+(i<<3)|0;i=J[j>>2];Ga:switch(J[j+4>>2]-1|0){case 1:i=i<<16;break Fa;case 0:break Ga;default:break Fa}i=((i>>31)+i|0)- -8192>>14}r=i+r|0;is(k+3912|0,l,r);i=b+2|0;if(t>>>0>b+8>>>0)continue;break}break o;case 26:n=J[k+15976>>2];b=J[k+15980>>2];l=J[f+8>>2];u=J[f+12>>2]-l>>3;i=u&2;o=u&-3;if(i>>>0>>0){while(1){t= +J[f+8>>2];v=J[f+12>>2]-t>>3;if(u-i&1){Ha:{if(i>>>0>=v>>>0){s=0;j=J[f+4>>2];if(!j|J[j>>2])break Ha;J[j>>2]=130;break Ha}j=t+(i<<3)|0;s=J[j>>2];Ia:switch(J[j+4>>2]-1|0){case 1:s=s<<16;break Ha;case 0:break Ia;default:break Ha}s=((s>>31)+s|0)- -8192>>14}i=i+1|0;b=b+s|0}m=b;Ja:{if(i>>>0>=v>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Ja;J[j>>2]=130;break Ja}j=t+(i<<3)|0;b=J[j>>2];Ka:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Ja;case 0:break Ka;default:break Ja}b=((b>>31)+b|0)- -8192>>14}j=i+1|0;La:{if(j>>> +0>=v>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break La;J[l>>2]=130;break La}l=t+(j<<3)|0;j=J[l>>2];Ma:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break La;case 0:break Ma;default:break La}j=((j>>31)+j|0)- -8192>>14}r=b+n|0;b=i+2|0;Na:{if(b>>>0>=v>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break Na;J[b>>2]=130;break Na}b=t+(b<<3)|0;n=J[b>>2];Oa:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break Na;case 0:break Oa;default:break Na}n=((n>>31)+n|0)- -8192>>14}b=j+m|0;n=n+r|0;j=i+3|0;Pa:{if(j>>>0>=v>>>0){l=0;j=J[f+4>>2];if(!j|J[j>> +2])break Pa;J[j>>2]=130;break Pa}j=t+(j<<3)|0;l=J[j>>2];Qa:switch(J[j+4>>2]-1|0){case 1:l=l<<16;break Pa;case 0:break Qa;default:break Pa}l=((l>>31)+l|0)- -8192>>14}j=n;n=l+n|0;Cq(k+3912|0,m,r,b,j,b,n);i=i+4|0;if(o>>>0>i>>>0)continue;break}l=J[f+8>>2]}J[k+15976>>2]=n;J[k+15980>>2]=b;J[f+12>>2]=l;i=p;continue;case 27:n=J[k+15980>>2];b=J[k+15976>>2];l=J[f+8>>2];u=J[f+12>>2]-l>>3;i=u&2;o=u&-3;if(i>>>0>>0){while(1){t=J[f+8>>2];v=J[f+12>>2]-t>>3;if(u-i&1){Ra:{if(i>>>0>=v>>>0){s=0;j=J[f+4>>2];if(!j| +J[j>>2])break Ra;J[j>>2]=130;break Ra}j=t+(i<<3)|0;s=J[j>>2];Sa:switch(J[j+4>>2]-1|0){case 1:s=s<<16;break Ra;case 0:break Sa;default:break Ra}s=((s>>31)+s|0)- -8192>>14}i=i+1|0;b=b+s|0}m=b;Ta:{if(i>>>0>=v>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Ta;J[j>>2]=130;break Ta}j=t+(i<<3)|0;b=J[j>>2];Ua:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Ta;case 0:break Ua;default:break Ta}b=((b>>31)+b|0)- -8192>>14}j=i+1|0;Va:{if(j>>>0>=v>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break Va;J[l>>2]=130;break Va}l=t+(j<<3)| +0;j=J[l>>2];Wa:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break Va;case 0:break Wa;default:break Va}j=((j>>31)+j|0)- -8192>>14}r=b+n|0;b=i+2|0;Xa:{if(b>>>0>=v>>>0){b=0;l=J[f+4>>2];if(!l|J[l>>2])break Xa;J[l>>2]=130;break Xa}l=t+(b<<3)|0;b=J[l>>2];Ya:switch(J[l+4>>2]-1|0){case 1:b=b<<16;break Xa;case 0:break Ya;default:break Xa}b=((b>>31)+b|0)- -8192>>14}n=j+r|0;b=b+m|0;j=i+3|0;Za:{if(j>>>0>=v>>>0){l=0;j=J[f+4>>2];if(!j|J[j>>2])break Za;J[j>>2]=130;break Za}j=t+(j<<3)|0;l=J[j>>2];_a:switch(J[j+4>>2]-1|0){case 1:l= +l<<16;break Za;case 0:break _a;default:break Za}l=((l>>31)+l|0)- -8192>>14}j=n;n=l+n|0;Cq(k+3912|0,r,m,j,b,n,b);i=i+4|0;if(o>>>0>i>>>0)continue;break}l=J[f+8>>2]}J[k+15980>>2]=n;J[k+15976>>2]=b;J[f+12>>2]=l;i=p;continue;case 30:case 31:m=J[k+15976>>2];j=J[k+15980>>2];b=J[f+8>>2];o=J[f+12>>2]-b>>3;i=o&2;u=o&-3;if(i>>>0>>0){s=(l|0)==31;while(1){r=m;b=j;t=J[f+8>>2];v=J[f+12>>2]-t>>3;$a:{if(s){ab:{if(i>>>0>=v>>>0){m=0;j=J[f+4>>2];if(!j|J[j>>2])break ab;J[j>>2]=130;break ab}j=t+(i<<3)|0;m=J[j>>2];bb:switch(J[j+ +4>>2]-1|0){case 1:m=m<<16;break ab;case 0:break bb;default:break ab}m=((m>>31)+m|0)- -8192>>14}n=i+1|0;cb:{if(v>>>0<=n>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break cb;J[l>>2]=130;break cb}l=t+(n<<3)|0;j=J[l>>2];db:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break cb;case 0:break db;default:break cb}j=((j>>31)+j|0)- -8192>>14}l=i+2|0;eb:{if(l>>>0>=v>>>0){o=0;l=J[f+4>>2];if(!l|J[l>>2])break eb;J[l>>2]=130;break eb}l=t+(l<<3)|0;o=J[l>>2];fb:switch(J[l+4>>2]-1|0){case 1:o=o<<16;break eb;case 0:break fb;default:break eb}o= +((o>>31)+o|0)- -8192>>14}b=b+m|0;l=o+r|0;m=i+3|0;gb:{if(m>>>0>=v>>>0){m=0;o=J[f+4>>2];if(!o|J[o>>2])break gb;J[o>>2]=130;break gb}o=t+(m<<3)|0;m=J[o>>2];hb:switch(J[o+4>>2]-1|0){case 1:m=m<<16;break gb;case 0:break hb;default:break gb}m=((m>>31)+m|0)- -8192>>14}o=b+j|0;m=l+m|0;s=0;if((u-i|0)!=5){n=i;j=o;break $a}i=i+4|0;ib:{if(i>>>0>=v>>>0){i=0;j=J[f+4>>2];if(!j|J[j>>2])break ib;J[j>>2]=130;j=o;break $a}j=t+(i<<3)|0;i=J[j>>2];jb:switch(J[j+4>>2]-1|0){case 1:j=(i<<16)+o|0;break $a;case 0:break jb; +default:break ib}i=((i>>31)+i|0)- -8192>>14}j=i+o|0;break $a}kb:{if(i>>>0>=v>>>0){m=0;j=J[f+4>>2];if(!j|J[j>>2])break kb;J[j>>2]=130;break kb}j=t+(i<<3)|0;m=J[j>>2];lb:switch(J[j+4>>2]-1|0){case 1:m=m<<16;break kb;case 0:break lb;default:break kb}m=((m>>31)+m|0)- -8192>>14}n=i+1|0;mb:{if(v>>>0<=n>>>0){j=0;l=J[f+4>>2];if(!l|J[l>>2])break mb;J[l>>2]=130;break mb}l=t+(n<<3)|0;j=J[l>>2];nb:switch(J[l+4>>2]-1|0){case 1:j=j<<16;break mb;case 0:break nb;default:break mb}j=((j>>31)+j|0)- -8192>>14}l=i+2| +0;ob:{if(l>>>0>=v>>>0){l=0;o=J[f+4>>2];if(!o|J[o>>2])break ob;J[o>>2]=130;break ob}o=t+(l<<3)|0;l=J[o>>2];pb:switch(J[o+4>>2]-1|0){case 1:l=l<<16;break ob;case 0:break pb;default:break ob}l=((l>>31)+l|0)- -8192>>14}r=m+r|0;o=b+j|0;j=i+3|0;qb:{if(j>>>0>=v>>>0){m=0;j=J[f+4>>2];if(!j|J[j>>2])break qb;J[j>>2]=130;break qb}j=t+(j<<3)|0;m=J[j>>2];rb:switch(J[j+4>>2]-1|0){case 1:m=m<<16;break qb;case 0:break rb;default:break qb}m=((m>>31)+m|0)- -8192>>14}l=l+r|0;j=m+o|0;s=1;if((u-i|0)!=5){n=i;m=l;break $a}i= +i+4|0;sb:{if(i>>>0>=v>>>0){i=0;m=J[f+4>>2];if(!m|J[m>>2])break sb;J[m>>2]=130;break sb}m=t+(i<<3)|0;i=J[m>>2];tb:switch(J[m+4>>2]-1|0){case 1:i=i<<16;break sb;case 0:break tb;default:break sb}i=((i>>31)+i|0)- -8192>>14}m=i+l|0}Cq(k+3912|0,b,r,o,l,j,m);i=n+4|0;if(u>>>0>i>>>0)continue;break}b=J[f+8>>2]}J[k+15976>>2]=m;J[k+15980>>2]=j;J[f+12>>2]=b;i=p;continue;case 28:ub:{if(j>>>0>>0){i=j+1|0;J[b>>2]=i;l=K[j|0];break ub}l=0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=j}vb:{if(i>>>0>>0){J[b>>2]=i+1; +b=K[i|0];break vb}b=0;i=J[w>>2];if(!i|J[i>>2])break vb;J[i>>2]=85}i=J[f+12>>2];if((i|0)==(J[f+8>>2]+(J[f+16>>2]<<3)|0)){i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[i>>2]=(b<<16|l<<24)>>16;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;i=p;continue;case 0:case 2:case 17:break j;default:break p}if(l>>>0<=246){b=J[f+12>>2];if((b|0)==(J[f+8>>2]+(J[f+16>>2]<<3)|0)){b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[b>>2]=l-139;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;continue}if(l>>>0<= +250){wb:{if(j>>>0>>0){J[b>>2]=j+1;b=K[j|0];break wb}b=0;i=J[w>>2];if(!i|J[i>>2])break wb;J[i>>2]=85}i=J[f+12>>2];if((i|0)==(J[f+8>>2]+(J[f+16>>2]<<3)|0)){i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=130;continue}J[i>>2]=((l<<8)+b|0)-63124;b=J[f+12>>2];J[b+4>>2]=2;J[f+12>>2]=b+8;i=p;continue}if((l|0)!=255){xb:{if(j>>>0>>0){J[b>>2]=j+1;i=K[j|0];break xb}i=0;b=J[w>>2];if(!b|J[b>>2])break xb;J[b>>2]=85}Tu(f,64148-(l<<8|i)|0);i=p;continue}yb:{if(j>>>0>>0){i=j+1|0;J[b>>2]=i;r=K[j|0];break yb}r= +0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=j}zb:{if(i>>>0>>0){l=i+1|0;J[b>>2]=l;s=K[i|0];break zb}s=0;j=J[w>>2];if(!(!j|J[j>>2]))J[j>>2]=85;l=i}Ab:{if(l>>>0>>0){i=l+1|0;J[b>>2]=i;j=K[l|0];break Ab}j=0;i=J[w>>2];if(!(!i|J[i>>2]))J[i>>2]=85;i=l}Bb:{if(i>>>0>>0){J[b>>2]=i+1;i=K[i|0];break Bb}i=0;b=J[w>>2];if(!b|J[b>>2])break Bb;J[b>>2]=85}b=s<<16|r<<24|j<<8|i;if(u){Tu(f,b);D=b+32E3>>>0<64001?D:D&255?D:1;i=p;continue}Kg(f,b);i=p;continue}if(i>>>0>>0)while(1){s=J[f+8>>2];y=J[f+12>>2]-s>>3;Cb:{if(y>>> +0<=i>>>0){m=0;b=J[f+4>>2];if(!b|J[b>>2])break Cb;J[b>>2]=130;break Cb}b=s+(i<<3)|0;m=J[b>>2];Db:switch(J[b+4>>2]-1|0){case 1:m=m<<16;break Cb;case 0:break Db;default:break Cb}m=((m>>31)+m|0)- -8192>>14}b=i|1;Eb:{if(b>>>0>=y>>>0){j=0;b=J[f+4>>2];if(!b|J[b>>2])break Eb;J[b>>2]=130;break Eb}b=s+(b<<3)|0;j=J[b>>2];Fb:switch(J[b+4>>2]-1|0){case 1:j=j<<16;break Eb;case 0:break Fb;default:break Eb}j=((j>>31)+j|0)- -8192>>14}b=i+2|0;Gb:{if(b>>>0>=y>>>0){n=0;b=J[f+4>>2];if(!b|J[b>>2])break Gb;J[b>>2]=130; +break Gb}b=s+(b<<3)|0;n=J[b>>2];Hb:switch(J[b+4>>2]-1|0){case 1:n=n<<16;break Gb;case 0:break Hb;default:break Gb}n=((n>>31)+n|0)- -8192>>14}v=l+m|0;b=i+3|0;Ib:{if(b>>>0>=y>>>0){l=0;b=J[f+4>>2];if(!b|J[b>>2])break Ib;J[b>>2]=130;break Ib}b=s+(b<<3)|0;l=J[b>>2];Jb:switch(J[b+4>>2]-1|0){case 1:l=l<<16;break Ib;case 0:break Jb;default:break Ib}l=((l>>31)+l|0)- -8192>>14}u=j+r|0;o=n+v|0;b=i+4|0;Kb:{if(b>>>0>=y>>>0){r=0;b=J[f+4>>2];if(!b|J[b>>2])break Kb;J[b>>2]=130;break Kb}b=s+(b<<3)|0;r=J[b>>2];Lb:switch(J[b+ +4>>2]-1|0){case 1:r=r<<16;break Kb;case 0:break Lb;default:break Kb}r=((r>>31)+r|0)- -8192>>14}m=l+u|0;l=o+r|0;b=i+5|0;Mb:{if(b>>>0>=y>>>0){b=0;j=J[f+4>>2];if(!j|J[j>>2])break Mb;J[j>>2]=130;break Mb}j=s+(b<<3)|0;b=J[j>>2];Nb:switch(J[j+4>>2]-1|0){case 1:b=b<<16;break Mb;case 0:break Nb;default:break Mb}b=((b>>31)+b|0)- -8192>>14}r=b+m|0;Cq(k+3912|0,v,u,o,m,l,r);i=i+6|0;if(t>>>0>i>>>0)continue;break}J[k+15976>>2]=r;J[k+15980>>2]=l;J[f+12>>2]=J[f+8>>2];i=p;continue}if(K[a+9|0]|l>>>0>37)break m;if(!(!u| +(x|0)<=0|(l|0)==17)){x=0;i=p;break j}i=p;Ob:{Pb:{Qb:{Rb:switch(l-1|0){case 0:case 1:if(!u)break m;m=fp(f,0);o=fp(f,2);j=fp(f,4);i=fp(f,1);b=J[f+8>>2];Sb:{if(J[f+12>>2]-b>>>0<=15){b=J[f+4>>2];if(!b|J[b>>2])break Sb;J[b>>2]=130;break Sb}J[b+16>>2]=o-(i+m|0);J[J[f+8>>2]+20>>2]=0}i=fp(f,3);b=J[f+8>>2];Tb:{if(J[f+12>>2]-b>>>0<=31){b=J[f+4>>2];if(!b|J[b>>2])break Tb;J[b>>2]=130;break Tb}J[b+32>>2]=j-(i+o|0);J[J[f+8>>2]+36>>2]=0}TD(a,f,(l|0)==1?k+15724|0:k+15756|0,h,k+15791|0,J[J[q+32>>2]+(((l|0)!=1)<<2)>> +2]);i=p;if(K[q+548|0])break l;break j;case 2:b=Ne(f);Tu(f,(Ne(f)|0)!=0&(b|0)!=0);continue;case 3:Tu(f,(Ne(f)|Ne(f))!=0);continue;case 4:Tu(f,!Ne(f));continue;case 5:if(!u)break j;i=J[q+4>>2];b=18;o=Ej(f);m=Ej(f);z=Ne(f);h=Ne(f);A=Ne(f);Ub:{if(K[q+47|0]|e)break Ub;e=J[J[i+128>>2]+52>>2];Vb:{if(!J[q+580>>2]){if(!e)break Ub;l=J[J[q+32>>2]>>2];break Vb}l=J[J[q+32>>2]>>2];if(e)break Vb;m=c7(q,m);o=c7(q,o)}if((m|o)<0)break Ub;i=h+l|0;Wb:{if(K[q+46|0]){d=J[q+8>>2];c=J[J[d+156>>2]>>2];b=j8(c,2);if(b)break Ub; +e=J[c+88>>2];J[e+32>>2]=o;J[e+8>>2]=0;J[e+12>>2]=0;I[e+4>>1]=514;J[e>>2]=m;I[e+36>>1]=2;b=i-A|0;J[e+40>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[e+44>>2]=((z+(z>>31)|0)+32768&-65536)>>16;J[d+128>>2]=2;b=J[c+52>>2];J[d+72>>2]=1668246896;J[d+132>>2]=b;J[c+84>>2]=2;break Wb}b=J[q+12>>2];J[b+56>>2]=0;J[b+84>>2]=0;e=J[b+24>>2];if(e)e=e+(I[b+22>>1]<<3)|0;else e=0;J[b+60>>2]=e;h=b- -64|0;e=J[b+28>>2];if(e)e=e+I[b+22>>1]|0;else e=0;J[h>>2]=e;e=J[b+32>>2];if(e)e=e+(I[b+20>>1]<<1)|0;else e=0;J[b+68>>2]=e;if(K[b+ +16|0]){e=I[b+22>>1]<<3;J[b+76>>2]=e+J[b+40>>2];J[b+80>>2]=e+J[b+44>>2]}e=J[b+52>>2];if(e)e=e+(J[b+48>>2]<<5)|0;else e=0;J[b+88>>2]=e;e=k+40|0;b=b7(J[q+4>>2],m,e);if(b)break Ub;b=J[q+36>>2];j=J[b>>2];r=J[b+4>>2];b=J[q+32>>2];p=J[b>>2];n=J[b+4>>2];Vu(a,e,c,d,1,0,0,k+3908|0);e=J[J[J[q+4>>2]+128>>2]+52>>2];b=J[k+44>>2];J[k+16>>2]=J[k+48>>2]-b;J[k+12>>2]=b;if(e)kc[J[J[e>>2]+4>>2]](J[e+4>>2],k+12|0);e=J[q+32>>2];if(!K[k+15791|0]){n=J[e+4>>2];b=J[q+36>>2];j=J[b>>2];r=J[b+4>>2];p=J[e>>2]}J[e>>2]=0;J[e+4>> +2]=0;e=k+40|0;b=b7(J[q+4>>2],o,e);if(b)break Ub;Vu(a,e,c,d,1,i-A|0,z,k+3908|0);c=J[J[J[q+4>>2]+128>>2]+52>>2];b=J[k+44>>2];J[k+16>>2]=J[k+48>>2]-b;J[k+12>>2]=b;if(c)kc[J[J[c>>2]+4>>2]](J[c+4>>2],k+12|0);b=J[q+32>>2];J[b>>2]=p;J[b+4>>2]=n;b=J[q+36>>2];J[b>>2]=j;J[b+4>>2]=r}b=0}i=0;break c;case 6:if(!u)break m;b=Ne(f);J[J[q+36>>2]+4>>2]=b;b=Ne(f);J[J[q+36>>2]>>2]=b;i=Ne(f);b=Ne(f);j=J[q+32>>2];J[j>>2]=b+J[j>>2];J[j+4>>2]=i+J[j+4>>2];H[k+15791|0]=1;if(K[q+47|0])break l;if(!(p&255)){i=0;break j}J[k+15980>> +2]=b+J[k+15980>>2];J[k+15976>>2]=i+J[k+15976>>2];i=p;break j;case 8:b=Ne(f);if((b|0)==-2147483648){Kg(f,2147483647);continue}p=b;b=b>>31;Kg(f,(p^b)-b|0);continue;case 9:Kg(f,Ne(f)+Ne(f)|0);continue;case 10:b=Ne(f);Kg(f,Ne(f)-b|0);continue;case 11:Xb:{if(!(!u|!(D&255))){D=0;i=Ej(f);b=Ej(f);break Xb}i=Ne(f);b=Ne(f)}Kg(f,Cd(b,i));i=p;continue;case 13:b=Ne(f);if((b|0)==-2147483648){Kg(f,2147483647);continue}Kg(f,0-b|0);continue;case 14:Tu(f,(Ne(f)|0)==(Ne(f)|0));continue;case 15:if(!u)continue;m=Ej(f); +n=Ej(f);j=J[f+8>>2];Yb:switch(m|0){case 0:b=18;i=0;if((n|0)!=3|(!J[q+468>>2]|J[q+472>>2]!=7?p&255:0))break c;Kg(f,J[k+15980>>2]);Kg(f,J[k+15976>>2]);B=2;break Pb;case 1:if(n)break i;x=0;i=0;B=0;if(!(p&255))continue;Zb:{b=J[q+12>>2];if((I[b+22>>1]+I[b+58>>1]|0)+6>>>0<=M[b+4>>2])break Zb;if(!Hh(b,6,0))break Zb;b=0;break c}J[q+468>>2]=1;J[q+472>>2]=0;break Ob;case 2:b=18;if(n){i=0;break c}x=0;i=0;B=0;if(!(p&255))continue;if(!J[q+468>>2])break c;m=J[q+472>>2];J[q+472>>2]=m+1;i=p;if(m-1>>>0>5)continue; +j=J[q+12>>2];if((I[j+22>>1]+I[j+58>>1]|0)+1>>>0>M[j+4>>2]){i=0;if(Hh(j,1,0))break c}b=m<<1;b=(k+15792|0)+((m>>>0>3?b-6|0:b)<<2)|0;J[b-8>>2]=J[k+15980>>2];J[b-4>>2]=J[k+15976>>2];i=p;_b:switch(m-3|0){case 0:case 3:break _b;default:continue}Cq(k+3912|0,J[k+15792>>2],J[k+15796>>2],J[k+15800>>2],J[k+15804>>2],J[k+15808>>2],J[k+15812>>2]);continue e;case 3:B=1;if((n|0)!=1)break i;x=0;i=0;if(!(p&255))continue;J[k+15776>>2]=0;J[k+15744>>2]=0;J[A+16>>2]=0;J[A+20>>2]=0;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+ +4>>2]=0;H[k+15701|0]=1;J[k+15696>>2]=E;i=p;continue;case 12:case 13:J[f+12>>2]=j;break Ob;case 14:case 15:case 16:case 17:case 18:i=0;b=18;o=J[q+644>>2];if(!o)break c;B=(m+((m|0)==18)|0)-13|0;if((n|0)!=(P(B,J[o>>2])|0))break c;s=(J[f+12>>2]-j>>3)-n|0;l=B+s|0;m=0;while(1){b=fp(f,s);i=1;if(M[o>>2]>=2)while(1){b=Wc(fp(f,l),J[J[o+136>>2]+(i<<2)>>2])+b|0;l=l+1|0;i=i+1|0;if(i>>>0>2])continue;break}i=J[f+8>>2];$b:{if(J[f+12>>2]-i>>3>>>0>>0){b=J[f+4>>2];if(!b|J[b>>2])break $b;J[b>>2]=130;break $b}j= +i;i=s<<3;J[j+i>>2]=b;J[(i+J[f+8>>2]|0)+4>>2]=0}s=s+1|0;m=m+1|0;if((B|0)!=(m|0))continue;break}b=n-B|0;i=J[f+12>>2];if(b>>>0>i-J[f+8>>2]>>3>>>0){x=0;i=p;b=J[f+4>>2];if(!b|J[b>>2])continue;J[b>>2]=161;continue}J[f+12>>2]=i-(b<<3);break Pb;case 19:b=18;i=0;if((n|0)!=1)break c;l=J[q+644>>2];if(!l)break c;m=Ej(f);if((m|0)<0)break c;j=J[l>>2];if(M[q+652>>2]>>0)break c;xc(J[q+648>>2]+(m<<2)|0,J[l+136>>2],j<<2);break Ob;case 20:if((n|0)!=2)break i;Kg(f,Ne(f)+Ne(f)|0);break Qb;case 21:if((n|0)!=2)break i; +b=Ne(f);Kg(f,Ne(f)-b|0);break Qb;case 22:if((n|0)!=2)break i;b=Ne(f);Kg(f,Wc(Ne(f),b));break Qb;case 23:b=18;i=0;if((n|0)!=2)break c;m=Ne(f);j=Ne(f);if(!m)break c;Kg(f,Cd(j,m));break Qb;case 24:b=18;i=0;if(!J[q+644>>2]|(n|0)!=2)break c;j=Ej(f);if((j|0)<0|j>>>0>=M[q+652>>2])break c;b=Ne(f);J[J[q+648>>2]+(j<<2)>>2]=b;break Ob;case 25:b=18;i=0;if(!J[q+644>>2]|(n|0)!=1)break c;j=Ej(f);if((j|0)<0|j>>>0>=M[q+652>>2])break c;Kg(f,J[J[q+648>>2]+(j<<2)>>2]);break Qb;case 27:if((n|0)!=4)break i;i=Ne(f);b=Ne(f); +Kg(f,(V=Ne(f),W=Ne(f),X=(b|0)>(i|0),X?V:W));break Qb;case 28:if(n)break i;i=J[q+536>>2];j=J[i+648>>2];b=j<<13^j;b=b>>>17^b;J[i+648>>2]=b^b<<5;B=1;Kg(f,(j&65535)+1|0);break Pb;default:break Yb}i=0;if((m|n)<0){b=18;break c}x=(n|0)>=3?3:n;l=1;B=0;i=p;if((n|0)<=0)continue;p=(x|0)<=1?1:x;while(1){V=(k+15960|0)+(x-l<<2)|0,W=Ne(f),J[V>>2]=W;b=(l|0)==(p|0);l=l+1|0;if(!b)continue;break}continue;case 16:if(!u)continue;if((B|0)>0){B=B-1|0;continue}if(!x)break i;x=x-1|0;Kg(f,J[(k+15960|0)+(x<<2)>>2]);continue; +case 17:Ne(f);continue;case 19:p=Ej(f);b=Ne(f);if(p>>>0>31)continue;J[(k+15824|0)+(p<<2)>>2]=b;continue;case 20:b=Ej(f);if(b>>>0>31)continue;Kg(f,J[(k+15824|0)+(b<<2)>>2]);continue;case 21:i=Ne(f);b=Ne(f);Kg(f,(V=Ne(f),W=Ne(f),X=(b|0)>(i|0),X?V:W));i=p;continue;case 22:i=J[q+536>>2];j=J[i+648>>2];b=j<<13^j;b=b>>>17^b;J[i+648>>2]=b^b<<5;Kg(f,(j&65535)+1|0);i=p;continue;case 23:b=Ne(f);Kg(f,Wc(Ne(f),b));continue;case 25:b=Ne(f);ac:{if((b|0)<=0){i=0;break ac}l=b>>>(b>>>0>9)|0;while(1){i=l;l=(i+Cd(b, +i)|0)+1>>1;if((i|0)!=(l|0))continue;break}}Kg(f,i);i=p;continue;case 26:b=Ne(f);Kg(f,b);Kg(f,b);continue;case 27:i=Ne(f);b=Ne(f);Kg(f,i);Kg(f,b);i=p;continue;case 28:j=Ej(f);p=J[f+12>>2];b=J[f+8>>2];if((p|0)==(b|0))continue;b=p-b>>3;p=b-1|0;bc:{if((j|0)<0)break bc;p=0;if(b>>>0<=j>>>0)break bc;p=b+(j^-1)|0}Kg(f,fp(f,p));continue;case 29:b=Ej(f);l=0;t=Ej(f);cc:{if((t|0)<2)break cc;if(t>>>0>J[f+12>>2]-J[f+8>>2]>>3>>>0){b=J[f+4>>2];if(!b|J[b>>2])break cc;J[b>>2]=130;break cc}if((b|0)<0)m=0-((0-b>>>0)% +(t>>>0)|0)|0;else m=(b>>>0)%(t>>>0)|0;if(!m)break cc;u=0-t|0;j=0;r=2;b=-1;o=-1;while(1){v=J[f+8>>2];dc:{if((b|0)!=(o|0)){p=j;n=r;break dc}o=b+1|0;b=v+(o<<3)|0;p=J[b>>2];n=J[b+4>>2];b=o}b=b+m|0;b=((b|0)<(t|0)?t&b>>31:u)+b|0;v=v+(b<<3)|0;j=J[v>>2];r=J[v+4>>2];J[v>>2]=p;J[v+4>>2]=n;l=l+1|0;if((t|0)!=(l|0))continue;break}}continue;case 32:break Rb;default:break j}if(!u|!(p&255))break m;V=k,W=Ne(f),J[V+15976>>2]=W;V=k,W=Ne(f),J[V+15980>>2]=W;J[q+468>>2]=0;break j}B=1}x=0;i=p;continue}x=0;i=p;continue e}i= +p;break j}i=0;b=0;break c}J[a+120>>2]=i;i=p}J[f+12>>2]=J[f+8>>2];continue}break}break}b=18;i=0}if(J[a+4>>2])break a}J[a+4>>2]=b}a=k+15544|0;J[a>>2]=0;J[a+4>>2]=0;J[k+15536>>2]=0;c=J[k+15524>>2];b=k+15552|0;a=J[b>>2];if(a)kc[J[c+8>>2]](c,a);J[b>>2]=0;J[k+15744>>2]=0;J[k+15748>>2]=0;J[k+15736>>2]=0;b=J[k+15724>>2];a=J[k+15752>>2];if(a)kc[J[b+8>>2]](b,a);J[k+15752>>2]=0;J[k+15776>>2]=0;J[k+15780>>2]=0;J[k+15768>>2]=0;b=J[k+15756>>2];a=J[k+15784>>2];if(a)kc[J[b+8>>2]](b,a);J[k+15784>>2]=0;if(g)kc[J[C+ +8>>2]](C,g);if(!i){b=J[f>>2];a=J[f+8>>2];if(a)kc[J[b+8>>2]](b,a);J[f+8>>2]=0;if(f)kc[J[b+8>>2]](b,f)}fc=k+15984|0}function $Bb(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;if((e|0)>0){q=b&1;v=f<<2;b=a;while(1){i=b;g=0;a:{if((d|0)<2)break a;m=(d-q|0)+1>>1;b:{if((m|0)<=0)break b;l=b;h=m;k=h&3;if(k)while(1){j=J[l>>2];j=vEb(j,j>>31,10077,0);J[l>>2]=(jc&8191)<<19|j>>>13;l=l+4|0;h=h-1|0;g=g+1|0;if((k|0)!=(g|0))continue;break}if(m>>> +0<4)break b;while(1){g=J[l>>2];g=vEb(g,g>>31,10077,0);J[l>>2]=(jc&8191)<<19|g>>>13;g=J[l+4>>2];g=vEb(g,g>>31,10077,0);J[l+4>>2]=(jc&8191)<<19|g>>>13;g=J[l+8>>2];g=vEb(g,g>>31,10077,0);J[l+8>>2]=(jc&8191)<<19|g>>>13;g=J[l+12>>2];g=vEb(g,g>>31,10077,0);J[l+12>>2]=(jc&8191)<<19|g>>>13;l=l+16|0;g=h-5|0;h=h-4|0;if(g>>>0<4294967294)continue;break}}h=(m<<2)+i|0;k=d-m|0;if((k|0)>0){g=k;l=h;while(1){j=J[l>>2];j=vEb(j,j>>31,13318,0);J[l>>2]=(jc&8191)<<19|j>>>13;l=l+4|0;j=g>>>0>1;g=g-1|0;if(j)continue;break}}l= +i;if(!q){l=J[i>>2];g=J[h>>2];g=vEb(g,g>>31,7266,0);J[i>>2]=l-((jc&8191)<<19|g>>>13);l=i+4|0}o=q?0:-1;p=d&1;r=(p|0)!=(q|0);n=r?-1:0;t=(m-!q|0)-r|0;c:{if((t|0)<=0){g=h;break c}s=n+(m+o|0)|0;d:{if(!(t&1)){j=t;g=h;break d}j=J[l>>2];g=J[h+4>>2]+J[h>>2]|0;g=vEb(g,g>>31,3633,0);J[l>>2]=j-((jc&8191)<<19|g>>>13);l=l+4|0;j=t-1|0;g=h+4|0}if((s|0)==1)break c;while(1){u=J[l>>2];s=J[g+4>>2]+J[g>>2]|0;s=vEb(s,s>>31,3633,0);J[l>>2]=u-((jc&8191)<<19|s>>>13);u=J[l+4>>2];s=J[g+8>>2]+J[g+4>>2]|0;s=vEb(s,s>>31,3633,0); +J[l+4>>2]=u-((jc&8191)<<19|s>>>13);l=l+8|0;g=g+8|0;s=j-3|0;j=j-2|0;if(s>>>0<4294967294)continue;break}}s=(p|0)==(q|0);if(!s){j=J[l>>2];g=J[g>>2];g=vEb(g,g>>31,7266,0);J[l>>2]=j-((jc&8191)<<19|g>>>13)}l=h;if(q){l=J[h>>2];g=J[i>>2];g=vEb(g,g>>31,14465,0);J[h>>2]=l-((jc&8191)<<19|g>>>13);l=h+4|0}p=s?-1:0;j=(k-q|0)-s|0;e:{if((j|0)<=0){g=i;break e}u=(d+p|0)+(m^-1)|0;f:{if(!(j&1)){k=j;g=i;break f}k=J[l>>2];g=J[i+4>>2]+J[i>>2]|0;g=vEb(g,g>>31,7232,0);J[l>>2]=k-((jc&8191)<<19|g>>>13);l=l+4|0;k=j-1|0;g=i+ +4|0}if((q|0)==(u|0))break e;while(1){w=J[l>>2];u=J[g+4>>2]+J[g>>2]|0;u=vEb(u,u>>31,7232,0);J[l>>2]=w-((jc&8191)<<19|u>>>13);w=J[l+4>>2];u=J[g+8>>2]+J[g+4>>2]|0;u=vEb(u,u>>31,7232,0);J[l+4>>2]=w-((jc&8191)<<19|u>>>13);l=l+8|0;g=g+8|0;u=k-3|0;k=k-2|0;if(u>>>0<4294967294)continue;break}}if(!r){k=J[l>>2];g=J[g>>2];g=vEb(g,g>>31,14465,0);J[l>>2]=k-((jc&8191)<<19|g>>>13)}l=i;if(!q){l=J[i>>2];g=J[h>>2];g=vEb(g,g>>31,-868,8191);J[i>>2]=l-((jc&8191)<<19|g>>>13);l=i+4|0}g:{if((t|0)<=0){g=h;break g}k=n+(m+o| +0)|0;if(t&1){o=J[l>>2];g=J[h+4>>2]+J[h>>2]|0;g=vEb(g,g>>31,-434,8191);J[l>>2]=o-((jc&8191)<<19|g>>>13);l=l+4|0;t=t-1|0;g=h+4|0}else g=h;if((k|0)==1)break g;while(1){o=J[l>>2];k=J[g+4>>2]+J[g>>2]|0;k=vEb(k,k>>31,-434,8191);J[l>>2]=o-((jc&8191)<<19|k>>>13);o=J[l+4>>2];k=J[g+8>>2]+J[g+4>>2]|0;k=vEb(k,k>>31,-434,8191);J[l+4>>2]=o-((jc&8191)<<19|k>>>13);l=l+8|0;g=g+8|0;k=t-3|0;t=t-2|0;if(k>>>0<4294967294)continue;break}}if(!s){k=J[l>>2];g=J[g>>2];g=vEb(g,g>>31,-868,8191);J[l>>2]=k-((jc&8191)<<19|g>>>13)}if(q){l= +J[h>>2];g=J[i>>2];g=vEb(g,g>>31,-25987,8191);J[h>>2]=l-((jc&8191)<<19|g>>>13);h=h+4|0}h:{if((j|0)<=0)break h;if(j&1){l=J[h>>2];g=J[i+4>>2]+J[i>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h>>2]=l-((jc&8191)<<19|g>>>13);j=j-1|0;i=i+4|0;h=h+4|0}if((q|0)==((d+p|0)+(m^-1)|0))break h;while(1){l=J[h>>2];g=J[i+4>>2]+J[i>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h>>2]=l-((jc&8191)<<19|g>>>13);l=J[h+4>>2];g=J[i+8>>2]+J[i+4>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+4>>2]=l-((jc&8191)<<19|g>>>13);h=h+8|0;i=i+8|0;g=j-3|0;j=j-2|0; +if(g>>>0<4294967294)continue;break}}if(r)break a;g=J[h>>2];i=J[i>>2];i=vEb(i,i>>31,-25987,8191);J[h>>2]=g-((jc&8191)<<19|i>>>13)}bba(b,d,q);b=b+v|0;x=x+1|0;if((x|0)!=(e|0))continue;break}}l=c&1;q=(d|0)/16<<4;if((d|0)>=16){r=0;while(1){c=a;i:{if((e|0)<2)break i;i=(e-l|0)+1>>1;if((i|0)>0){j=f<<2;g=i;h=c;while(1){b=J[h>>2];b=vEb(b,b>>31,10077,0);J[h>>2]=(jc&8191)<<19|b>>>13;b=J[h+4>>2];b=vEb(b,b>>31,10077,0);J[h+4>>2]=(jc&8191)<<19|b>>>13;b=J[h+8>>2];b=vEb(b,b>>31,10077,0);J[h+8>>2]=(jc&8191)<<19|b>>> +13;b=J[h+12>>2];b=vEb(b,b>>31,10077,0);J[h+12>>2]=(jc&8191)<<19|b>>>13;b=J[h+16>>2];b=vEb(b,b>>31,10077,0);J[h+16>>2]=(jc&8191)<<19|b>>>13;b=J[h+20>>2];b=vEb(b,b>>31,10077,0);J[h+20>>2]=(jc&8191)<<19|b>>>13;b=J[h+24>>2];b=vEb(b,b>>31,10077,0);J[h+24>>2]=(jc&8191)<<19|b>>>13;b=J[h+28>>2];b=vEb(b,b>>31,10077,0);J[h+28>>2]=(jc&8191)<<19|b>>>13;b=J[h+32>>2];b=vEb(b,b>>31,10077,0);J[h+32>>2]=(jc&8191)<<19|b>>>13;b=J[h+36>>2];b=vEb(b,b>>31,10077,0);J[h+36>>2]=(jc&8191)<<19|b>>>13;b=J[h+40>>2];b=vEb(b,b>> +31,10077,0);J[h+40>>2]=(jc&8191)<<19|b>>>13;b=J[h+44>>2];b=vEb(b,b>>31,10077,0);J[h+44>>2]=(jc&8191)<<19|b>>>13;b=J[h+48>>2];b=vEb(b,b>>31,10077,0);J[h+48>>2]=(jc&8191)<<19|b>>>13;b=J[h+52>>2];b=vEb(b,b>>31,10077,0);J[h+52>>2]=(jc&8191)<<19|b>>>13;b=J[h+56>>2];b=vEb(b,b>>31,10077,0);J[h+56>>2]=(jc&8191)<<19|b>>>13;b=J[h+60>>2];b=vEb(b,b>>31,10077,0);J[h+60>>2]=(jc&8191)<<19|b>>>13;h=h+j|0;b=g>>>0>1;g=g-1|0;if(b)continue;break}}h=(P(f,i)<<2)+c|0;k=e-i|0;if((k|0)>0){t=f<<2;b=k;g=h;while(1){j=J[g>>2]; +j=vEb(j,j>>31,13318,0);J[g>>2]=(jc&8191)<<19|j>>>13;j=J[g+4>>2];j=vEb(j,j>>31,13318,0);J[g+4>>2]=(jc&8191)<<19|j>>>13;j=J[g+8>>2];j=vEb(j,j>>31,13318,0);J[g+8>>2]=(jc&8191)<<19|j>>>13;j=J[g+12>>2];j=vEb(j,j>>31,13318,0);J[g+12>>2]=(jc&8191)<<19|j>>>13;j=J[g+16>>2];j=vEb(j,j>>31,13318,0);J[g+16>>2]=(jc&8191)<<19|j>>>13;j=J[g+20>>2];j=vEb(j,j>>31,13318,0);J[g+20>>2]=(jc&8191)<<19|j>>>13;j=J[g+24>>2];j=vEb(j,j>>31,13318,0);J[g+24>>2]=(jc&8191)<<19|j>>>13;j=J[g+28>>2];j=vEb(j,j>>31,13318,0);J[g+28>>2]= +(jc&8191)<<19|j>>>13;j=J[g+32>>2];j=vEb(j,j>>31,13318,0);J[g+32>>2]=(jc&8191)<<19|j>>>13;j=J[g+36>>2];j=vEb(j,j>>31,13318,0);J[g+36>>2]=(jc&8191)<<19|j>>>13;j=J[g+40>>2];j=vEb(j,j>>31,13318,0);J[g+40>>2]=(jc&8191)<<19|j>>>13;j=J[g+44>>2];j=vEb(j,j>>31,13318,0);J[g+44>>2]=(jc&8191)<<19|j>>>13;j=J[g+48>>2];j=vEb(j,j>>31,13318,0);J[g+48>>2]=(jc&8191)<<19|j>>>13;j=J[g+52>>2];j=vEb(j,j>>31,13318,0);J[g+52>>2]=(jc&8191)<<19|j>>>13;j=J[g+56>>2];j=vEb(j,j>>31,13318,0);J[g+56>>2]=(jc&8191)<<19|j>>>13;j=J[g+ +60>>2];j=vEb(j,j>>31,13318,0);J[g+60>>2]=(jc&8191)<<19|j>>>13;g=g+t|0;j=b>>>0>1;b=b-1|0;if(j)continue;break}}g=c;if(!l){j=J[g>>2];b=J[h>>2];b=vEb(b,b>>31,7266,0);J[g>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+4>>2];b=J[h+4>>2];b=vEb(b,b>>31,7266,0);J[g+4>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+8>>2];b=J[h+8>>2];b=vEb(b,b>>31,7266,0);J[g+8>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+12>>2];b=J[h+12>>2];b=vEb(b,b>>31,7266,0);J[g+12>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+16>>2];b=J[h+16>>2];b=vEb(b,b>>31,7266,0);J[g+16>>2]=j- +((jc&8191)<<19|b>>>13);j=J[g+20>>2];b=J[h+20>>2];b=vEb(b,b>>31,7266,0);J[g+20>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+24>>2];b=J[h+24>>2];b=vEb(b,b>>31,7266,0);J[g+24>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+28>>2];b=J[h+28>>2];b=vEb(b,b>>31,7266,0);J[g+28>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+32>>2];b=J[h+32>>2];b=vEb(b,b>>31,7266,0);J[g+32>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+36>>2];b=J[h+36>>2];b=vEb(b,b>>31,7266,0);J[g+36>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+40>>2];b=J[h+40>>2];b=vEb(b,b>>31,7266,0);J[g+40>>2]= +j-((jc&8191)<<19|b>>>13);j=J[g+44>>2];b=J[h+44>>2];b=vEb(b,b>>31,7266,0);J[g+44>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+48>>2];b=J[h+48>>2];b=vEb(b,b>>31,7266,0);J[g+48>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+52>>2];b=J[h+52>>2];b=vEb(b,b>>31,7266,0);J[g+52>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+56>>2];b=J[h+56>>2];b=vEb(b,b>>31,7266,0);J[g+56>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+60>>2];b=J[h+60>>2];b=vEb(b,b>>31,7266,0);J[g+60>>2]=j-((jc&8191)<<19|b>>>13);g=(f<<2)+g|0}n=e&1;s=(n|0)!=(l|0);t=(i-!l|0)-s|0;j:{if((t| +0)<=0){i=h;break j}m=f<<2;j=t;b=h;while(1){p=J[g>>2];i=b+m|0;o=J[i>>2]+J[b>>2]|0;o=vEb(o,o>>31,3633,0);J[g>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+4>>2];o=J[m+(b+4|0)>>2]+J[b+4>>2]|0;o=vEb(o,o>>31,3633,0);J[g+4>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+8>>2];o=J[m+(b+8|0)>>2]+J[b+8>>2]|0;o=vEb(o,o>>31,3633,0);J[g+8>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+12>>2];o=J[m+(b+12|0)>>2]+J[b+12>>2]|0;o=vEb(o,o>>31,3633,0);J[g+12>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+16>>2];o=J[m+(b+16|0)>>2]+J[b+16>>2]|0;o=vEb(o,o>>31,3633, +0);J[g+16>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+20>>2];o=J[m+(b+20|0)>>2]+J[b+20>>2]|0;o=vEb(o,o>>31,3633,0);J[g+20>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+24>>2];o=J[m+(b+24|0)>>2]+J[b+24>>2]|0;o=vEb(o,o>>31,3633,0);J[g+24>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+28>>2];o=J[m+(b+28|0)>>2]+J[b+28>>2]|0;o=vEb(o,o>>31,3633,0);J[g+28>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+32>>2];o=J[m+(b+32|0)>>2]+J[b+32>>2]|0;o=vEb(o,o>>31,3633,0);J[g+32>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+36>>2];o=J[m+(b+36|0)>>2]+J[b+36>>2]|0;o=vEb(o, +o>>31,3633,0);J[g+36>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+40>>2];o=J[m+(b+40|0)>>2]+J[b+40>>2]|0;o=vEb(o,o>>31,3633,0);J[g+40>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+44>>2];o=J[m+(b+44|0)>>2]+J[b+44>>2]|0;o=vEb(o,o>>31,3633,0);J[g+44>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+48>>2];o=J[m+(b+48|0)>>2]+J[b+48>>2]|0;o=vEb(o,o>>31,3633,0);J[g+48>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+52>>2];o=J[m+(b+52|0)>>2]+J[b+52>>2]|0;o=vEb(o,o>>31,3633,0);J[g+52>>2]=p-((jc&8191)<<19|o>>>13);p=J[g+56>>2];o=J[m+(b+56|0)>>2]+J[b+56>> +2]|0;o=vEb(o,o>>31,3633,0);J[g+56>>2]=p-((jc&8191)<<19|o>>>13);o=J[g+60>>2];b=J[m+(b+60|0)>>2]+J[b+60>>2]|0;b=vEb(b,b>>31,3633,0);J[g+60>>2]=o-((jc&8191)<<19|b>>>13);g=g+m|0;o=j>>>0>1;j=j-1|0;b=i;if(o)continue;break}}o=(l|0)==(n|0);if(!o){j=J[g>>2];b=J[i>>2];b=vEb(b,b>>31,7266,0);J[g>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+4>>2];b=J[i+4>>2];b=vEb(b,b>>31,7266,0);J[g+4>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+8>>2];b=J[i+8>>2];b=vEb(b,b>>31,7266,0);J[g+8>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+12>>2];b=J[i+12>>2]; +b=vEb(b,b>>31,7266,0);J[g+12>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+16>>2];b=J[i+16>>2];b=vEb(b,b>>31,7266,0);J[g+16>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+20>>2];b=J[i+20>>2];b=vEb(b,b>>31,7266,0);J[g+20>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+24>>2];b=J[i+24>>2];b=vEb(b,b>>31,7266,0);J[g+24>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+28>>2];b=J[i+28>>2];b=vEb(b,b>>31,7266,0);J[g+28>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+32>>2];b=J[i+32>>2];b=vEb(b,b>>31,7266,0);J[g+32>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+36>>2];b=J[i+36>> +2];b=vEb(b,b>>31,7266,0);J[g+36>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+40>>2];b=J[i+40>>2];b=vEb(b,b>>31,7266,0);J[g+40>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+44>>2];b=J[i+44>>2];b=vEb(b,b>>31,7266,0);J[g+44>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+48>>2];b=J[i+48>>2];b=vEb(b,b>>31,7266,0);J[g+48>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+52>>2];b=J[i+52>>2];b=vEb(b,b>>31,7266,0);J[g+52>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+56>>2];b=J[i+56>>2];b=vEb(b,b>>31,7266,0);J[g+56>>2]=j-((jc&8191)<<19|b>>>13);j=J[g+60>>2];b=J[i+60>> +2];b=vEb(b,b>>31,7266,0);J[g+60>>2]=j-((jc&8191)<<19|b>>>13)}g=h;if(l){i=J[g>>2];b=J[c>>2];b=vEb(b,b>>31,14465,0);J[g>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+4>>2];b=J[c+4>>2];b=vEb(b,b>>31,14465,0);J[g+4>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+8>>2];b=J[c+8>>2];b=vEb(b,b>>31,14465,0);J[g+8>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+12>>2];b=J[c+12>>2];b=vEb(b,b>>31,14465,0);J[g+12>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+16>>2];b=J[c+16>>2];b=vEb(b,b>>31,14465,0);J[g+16>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+20>>2];b=J[c+20>> +2];b=vEb(b,b>>31,14465,0);J[g+20>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+24>>2];b=J[c+24>>2];b=vEb(b,b>>31,14465,0);J[g+24>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+28>>2];b=J[c+28>>2];b=vEb(b,b>>31,14465,0);J[g+28>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+32>>2];b=J[c+32>>2];b=vEb(b,b>>31,14465,0);J[g+32>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+36>>2];b=J[c+36>>2];b=vEb(b,b>>31,14465,0);J[g+36>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+40>>2];b=J[c+40>>2];b=vEb(b,b>>31,14465,0);J[g+40>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+44>>2];b= +J[c+44>>2];b=vEb(b,b>>31,14465,0);J[g+44>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+48>>2];b=J[c+48>>2];b=vEb(b,b>>31,14465,0);J[g+48>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+52>>2];b=J[c+52>>2];b=vEb(b,b>>31,14465,0);J[g+52>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+56>>2];b=J[c+56>>2];b=vEb(b,b>>31,14465,0);J[g+56>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+60>>2];b=J[c+60>>2];b=vEb(b,b>>31,14465,0);J[g+60>>2]=i-((jc&8191)<<19|b>>>13);g=(f<<2)+g|0}j=(k-l|0)-o|0;k:{if((j|0)<=0){k=c;break k}m=f<<2;i=j;b=c;while(1){p=J[g>>2];k= +b+m|0;n=J[k>>2]+J[b>>2]|0;n=vEb(n,n>>31,7232,0);J[g>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+4>>2];n=J[m+(b+4|0)>>2]+J[b+4>>2]|0;n=vEb(n,n>>31,7232,0);J[g+4>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+8>>2];n=J[m+(b+8|0)>>2]+J[b+8>>2]|0;n=vEb(n,n>>31,7232,0);J[g+8>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+12>>2];n=J[m+(b+12|0)>>2]+J[b+12>>2]|0;n=vEb(n,n>>31,7232,0);J[g+12>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+16>>2];n=J[m+(b+16|0)>>2]+J[b+16>>2]|0;n=vEb(n,n>>31,7232,0);J[g+16>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+20>>2];n=J[m+ +(b+20|0)>>2]+J[b+20>>2]|0;n=vEb(n,n>>31,7232,0);J[g+20>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+24>>2];n=J[m+(b+24|0)>>2]+J[b+24>>2]|0;n=vEb(n,n>>31,7232,0);J[g+24>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+28>>2];n=J[m+(b+28|0)>>2]+J[b+28>>2]|0;n=vEb(n,n>>31,7232,0);J[g+28>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+32>>2];n=J[m+(b+32|0)>>2]+J[b+32>>2]|0;n=vEb(n,n>>31,7232,0);J[g+32>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+36>>2];n=J[m+(b+36|0)>>2]+J[b+36>>2]|0;n=vEb(n,n>>31,7232,0);J[g+36>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+ +40>>2];n=J[m+(b+40|0)>>2]+J[b+40>>2]|0;n=vEb(n,n>>31,7232,0);J[g+40>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+44>>2];n=J[m+(b+44|0)>>2]+J[b+44>>2]|0;n=vEb(n,n>>31,7232,0);J[g+44>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+48>>2];n=J[m+(b+48|0)>>2]+J[b+48>>2]|0;n=vEb(n,n>>31,7232,0);J[g+48>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+52>>2];n=J[m+(b+52|0)>>2]+J[b+52>>2]|0;n=vEb(n,n>>31,7232,0);J[g+52>>2]=p-((jc&8191)<<19|n>>>13);p=J[g+56>>2];n=J[m+(b+56|0)>>2]+J[b+56>>2]|0;n=vEb(n,n>>31,7232,0);J[g+56>>2]=p-((jc&8191)<<19| +n>>>13);n=J[g+60>>2];b=J[m+(b+60|0)>>2]+J[b+60>>2]|0;b=vEb(b,b>>31,7232,0);J[g+60>>2]=n-((jc&8191)<<19|b>>>13);g=g+m|0;n=i>>>0>1;i=i-1|0;b=k;if(n)continue;break}}if(!s){i=J[g>>2];b=J[k>>2];b=vEb(b,b>>31,14465,0);J[g>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+4>>2];b=J[k+4>>2];b=vEb(b,b>>31,14465,0);J[g+4>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+8>>2];b=J[k+8>>2];b=vEb(b,b>>31,14465,0);J[g+8>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+12>>2];b=J[k+12>>2];b=vEb(b,b>>31,14465,0);J[g+12>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+16>> +2];b=J[k+16>>2];b=vEb(b,b>>31,14465,0);J[g+16>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+20>>2];b=J[k+20>>2];b=vEb(b,b>>31,14465,0);J[g+20>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+24>>2];b=J[k+24>>2];b=vEb(b,b>>31,14465,0);J[g+24>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+28>>2];b=J[k+28>>2];b=vEb(b,b>>31,14465,0);J[g+28>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+32>>2];b=J[k+32>>2];b=vEb(b,b>>31,14465,0);J[g+32>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+36>>2];b=J[k+36>>2];b=vEb(b,b>>31,14465,0);J[g+36>>2]=i-((jc&8191)<<19|b>>>13);i= +J[g+40>>2];b=J[k+40>>2];b=vEb(b,b>>31,14465,0);J[g+40>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+44>>2];b=J[k+44>>2];b=vEb(b,b>>31,14465,0);J[g+44>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+48>>2];b=J[k+48>>2];b=vEb(b,b>>31,14465,0);J[g+48>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+52>>2];b=J[k+52>>2];b=vEb(b,b>>31,14465,0);J[g+52>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+56>>2];b=J[k+56>>2];b=vEb(b,b>>31,14465,0);J[g+56>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+60>>2];b=J[k+60>>2];b=vEb(b,b>>31,14465,0);J[g+60>>2]=i-((jc&8191)<<19|b>>> +13)}g=c;if(!l){i=J[g>>2];b=J[h>>2];b=vEb(b,b>>31,-868,8191);J[g>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+4>>2];b=J[h+4>>2];b=vEb(b,b>>31,-868,8191);J[g+4>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+8>>2];b=J[h+8>>2];b=vEb(b,b>>31,-868,8191);J[g+8>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+12>>2];b=J[h+12>>2];b=vEb(b,b>>31,-868,8191);J[g+12>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+16>>2];b=J[h+16>>2];b=vEb(b,b>>31,-868,8191);J[g+16>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+20>>2];b=J[h+20>>2];b=vEb(b,b>>31,-868,8191);J[g+20>>2]=i-((jc& +8191)<<19|b>>>13);i=J[g+24>>2];b=J[h+24>>2];b=vEb(b,b>>31,-868,8191);J[g+24>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+28>>2];b=J[h+28>>2];b=vEb(b,b>>31,-868,8191);J[g+28>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+32>>2];b=J[h+32>>2];b=vEb(b,b>>31,-868,8191);J[g+32>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+36>>2];b=J[h+36>>2];b=vEb(b,b>>31,-868,8191);J[g+36>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+40>>2];b=J[h+40>>2];b=vEb(b,b>>31,-868,8191);J[g+40>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+44>>2];b=J[h+44>>2];b=vEb(b,b>>31,-868,8191); +J[g+44>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+48>>2];b=J[h+48>>2];b=vEb(b,b>>31,-868,8191);J[g+48>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+52>>2];b=J[h+52>>2];b=vEb(b,b>>31,-868,8191);J[g+52>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+56>>2];b=J[h+56>>2];b=vEb(b,b>>31,-868,8191);J[g+56>>2]=i-((jc&8191)<<19|b>>>13);i=J[g+60>>2];b=J[h+60>>2];b=vEb(b,b>>31,-868,8191);J[g+60>>2]=i-((jc&8191)<<19|b>>>13);g=(f<<2)+g|0}l:{if((t|0)<=0){i=h;break l}k=f<<2;b=h;while(1){n=J[g>>2];i=b+k|0;m=J[i>>2]+J[b>>2]|0;m=vEb(m,m>>31,-434, +8191);J[g>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+4>>2];m=J[k+(b+4|0)>>2]+J[b+4>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+4>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+8>>2];m=J[k+(b+8|0)>>2]+J[b+8>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+8>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+12>>2];m=J[k+(b+12|0)>>2]+J[b+12>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+12>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+16>>2];m=J[k+(b+16|0)>>2]+J[b+16>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+16>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+20>>2];m=J[k+(b+20|0)>>2]+J[b+20>>2]|0;m= +vEb(m,m>>31,-434,8191);J[g+20>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+24>>2];m=J[k+(b+24|0)>>2]+J[b+24>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+24>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+28>>2];m=J[k+(b+28|0)>>2]+J[b+28>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+28>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+32>>2];m=J[k+(b+32|0)>>2]+J[b+32>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+32>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+36>>2];m=J[k+(b+36|0)>>2]+J[b+36>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+36>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+40>>2];m=J[k+ +(b+40|0)>>2]+J[b+40>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+40>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+44>>2];m=J[k+(b+44|0)>>2]+J[b+44>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+44>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+48>>2];m=J[k+(b+48|0)>>2]+J[b+48>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+48>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+52>>2];m=J[k+(b+52|0)>>2]+J[b+52>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+52>>2]=n-((jc&8191)<<19|m>>>13);n=J[g+56>>2];m=J[k+(b+56|0)>>2]+J[b+56>>2]|0;m=vEb(m,m>>31,-434,8191);J[g+56>>2]=n-((jc&8191)<<19| +m>>>13);m=J[g+60>>2];b=J[k+(b+60|0)>>2]+J[b+60>>2]|0;b=vEb(b,b>>31,-434,8191);J[g+60>>2]=m-((jc&8191)<<19|b>>>13);g=g+k|0;m=t>>>0>1;t=t-1|0;b=i;if(m)continue;break}}if(!o){k=J[g>>2];b=J[i>>2];b=vEb(b,b>>31,-868,8191);J[g>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+4>>2];b=J[i+4>>2];b=vEb(b,b>>31,-868,8191);J[g+4>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+8>>2];b=J[i+8>>2];b=vEb(b,b>>31,-868,8191);J[g+8>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+12>>2];b=J[i+12>>2];b=vEb(b,b>>31,-868,8191);J[g+12>>2]=k-((jc&8191)<<19|b>>> +13);k=J[g+16>>2];b=J[i+16>>2];b=vEb(b,b>>31,-868,8191);J[g+16>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+20>>2];b=J[i+20>>2];b=vEb(b,b>>31,-868,8191);J[g+20>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+24>>2];b=J[i+24>>2];b=vEb(b,b>>31,-868,8191);J[g+24>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+28>>2];b=J[i+28>>2];b=vEb(b,b>>31,-868,8191);J[g+28>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+32>>2];b=J[i+32>>2];b=vEb(b,b>>31,-868,8191);J[g+32>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+36>>2];b=J[i+36>>2];b=vEb(b,b>>31,-868,8191);J[g+36>>2]= +k-((jc&8191)<<19|b>>>13);k=J[g+40>>2];b=J[i+40>>2];b=vEb(b,b>>31,-868,8191);J[g+40>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+44>>2];b=J[i+44>>2];b=vEb(b,b>>31,-868,8191);J[g+44>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+48>>2];b=J[i+48>>2];b=vEb(b,b>>31,-868,8191);J[g+48>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+52>>2];b=J[i+52>>2];b=vEb(b,b>>31,-868,8191);J[g+52>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+56>>2];b=J[i+56>>2];b=vEb(b,b>>31,-868,8191);J[g+56>>2]=k-((jc&8191)<<19|b>>>13);k=J[g+60>>2];b=J[i+60>>2];b=vEb(b,b>>31,-868, +8191);J[g+60>>2]=k-((jc&8191)<<19|b>>>13)}if(l){i=J[h>>2];b=J[c>>2];b=vEb(b,b>>31,-25987,8191);J[h>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+4>>2];b=J[c+4>>2];b=vEb(b,b>>31,-25987,8191);J[h+4>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+8>>2];b=J[c+8>>2];b=vEb(b,b>>31,-25987,8191);J[h+8>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+12>>2];b=J[c+12>>2];b=vEb(b,b>>31,-25987,8191);J[h+12>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+16>>2];b=J[c+16>>2];b=vEb(b,b>>31,-25987,8191);J[h+16>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+20>>2];b=J[c+20>> +2];b=vEb(b,b>>31,-25987,8191);J[h+20>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+24>>2];b=J[c+24>>2];b=vEb(b,b>>31,-25987,8191);J[h+24>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+28>>2];b=J[c+28>>2];b=vEb(b,b>>31,-25987,8191);J[h+28>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+32>>2];b=J[c+32>>2];b=vEb(b,b>>31,-25987,8191);J[h+32>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+36>>2];b=J[c+36>>2];b=vEb(b,b>>31,-25987,8191);J[h+36>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+40>>2];b=J[c+40>>2];b=vEb(b,b>>31,-25987,8191);J[h+40>>2]=i-((jc&8191)<<19| +b>>>13);i=J[h+44>>2];b=J[c+44>>2];b=vEb(b,b>>31,-25987,8191);J[h+44>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+48>>2];b=J[c+48>>2];b=vEb(b,b>>31,-25987,8191);J[h+48>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+52>>2];b=J[c+52>>2];b=vEb(b,b>>31,-25987,8191);J[h+52>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+56>>2];b=J[c+56>>2];b=vEb(b,b>>31,-25987,8191);J[h+56>>2]=i-((jc&8191)<<19|b>>>13);i=J[h+60>>2];b=J[c+60>>2];b=vEb(b,b>>31,-25987,8191);J[h+60>>2]=i-((jc&8191)<<19|b>>>13);h=(f<<2)+h|0}m:{if((j|0)<=0){b=c;break m}i=f<<2; +while(1){k=J[h>>2];b=c+i|0;g=J[b>>2]+J[c>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+4>>2];g=J[i+(c+4|0)>>2]+J[c+4>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+4>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+8>>2];g=J[i+(c+8|0)>>2]+J[c+8>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+8>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+12>>2];g=J[i+(c+12|0)>>2]+J[c+12>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+12>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+16>>2];g=J[i+(c+16|0)>>2]+J[c+16>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+16>> +2]=k-((jc&8191)<<19|g>>>13);k=J[h+20>>2];g=J[i+(c+20|0)>>2]+J[c+20>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+20>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+24>>2];g=J[i+(c+24|0)>>2]+J[c+24>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+24>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+28>>2];g=J[i+(c+28|0)>>2]+J[c+28>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+28>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+32>>2];g=J[i+(c+32|0)>>2]+J[c+32>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+32>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+36>>2];g=J[i+(c+36|0)>>2]+J[c+36>>2]| +0;g=vEb(g,g>>31,-12993,8191);J[h+36>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+40>>2];g=J[i+(c+40|0)>>2]+J[c+40>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+40>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+44>>2];g=J[i+(c+44|0)>>2]+J[c+44>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+44>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+48>>2];g=J[i+(c+48|0)>>2]+J[c+48>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+48>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+52>>2];g=J[i+(c+52|0)>>2]+J[c+52>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+52>>2]=k-((jc&8191)<<19|g>>>13);k=J[h+ +56>>2];g=J[i+(c+56|0)>>2]+J[c+56>>2]|0;g=vEb(g,g>>31,-12993,8191);J[h+56>>2]=k-((jc&8191)<<19|g>>>13);g=J[h+60>>2];c=J[i+(c+60|0)>>2]+J[c+60>>2]|0;c=vEb(c,c>>31,-12993,8191);J[h+60>>2]=g-((jc&8191)<<19|c>>>13);h=h+i|0;g=j>>>0>1;j=j-1|0;c=b;if(g)continue;break}}if(s)break i;i=J[h>>2];c=J[b>>2];c=vEb(c,c>>31,-25987,8191);J[h>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+4>>2];c=J[b+4>>2];c=vEb(c,c>>31,-25987,8191);J[h+4>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+8>>2];c=J[b+8>>2];c=vEb(c,c>>31,-25987,8191);J[h+8>>2]= +i-((jc&8191)<<19|c>>>13);i=J[h+12>>2];c=J[b+12>>2];c=vEb(c,c>>31,-25987,8191);J[h+12>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+16>>2];c=J[b+16>>2];c=vEb(c,c>>31,-25987,8191);J[h+16>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+20>>2];c=J[b+20>>2];c=vEb(c,c>>31,-25987,8191);J[h+20>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+24>>2];c=J[b+24>>2];c=vEb(c,c>>31,-25987,8191);J[h+24>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+28>>2];c=J[b+28>>2];c=vEb(c,c>>31,-25987,8191);J[h+28>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+32>>2];c=J[b+32>>2];c=vEb(c, +c>>31,-25987,8191);J[h+32>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+36>>2];c=J[b+36>>2];c=vEb(c,c>>31,-25987,8191);J[h+36>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+40>>2];c=J[b+40>>2];c=vEb(c,c>>31,-25987,8191);J[h+40>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+44>>2];c=J[b+44>>2];c=vEb(c,c>>31,-25987,8191);J[h+44>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+48>>2];c=J[b+48>>2];c=vEb(c,c>>31,-25987,8191);J[h+48>>2]=i-((jc&8191)<<19|c>>>13);i=J[h+52>>2];c=J[b+52>>2];c=vEb(c,c>>31,-25987,8191);J[h+52>>2]=i-((jc&8191)<<19|c>>>13);i= +J[h+56>>2];c=J[b+56>>2];c=vEb(c,c>>31,-25987,8191);J[h+56>>2]=i-((jc&8191)<<19|c>>>13);c=J[h+60>>2];b=J[b+60>>2];b=vEb(b,b>>31,-25987,8191);J[h+60>>2]=c-((jc&8191)<<19|b>>>13)}aba(a,e,f,l);a=a- -64|0;r=r+16|0;if((q|0)>(r|0))continue;break}}if((d|0)>(q|0)){c=a;q=d-q|0;k=f;t=l;n=0;m=e;n:{if((e|0)<2)break n;e=(e-l|0)+1>>1;if(!((e|0)<=0|(q|0)<=0)){l=q&-4;g=q&3;j=q-1>>>0<3;r=k<<2;i=e;b=c;while(1){h=0;d=b;if(!j)while(1){f=J[d>>2];f=vEb(f,f>>31,10077,0);J[d>>2]=(jc&8191)<<19|f>>>13;f=J[d+4>>2];f=vEb(f,f>> +31,10077,0);J[d+4>>2]=(jc&8191)<<19|f>>>13;f=J[d+8>>2];f=vEb(f,f>>31,10077,0);J[d+8>>2]=(jc&8191)<<19|f>>>13;f=J[d+12>>2];f=vEb(f,f>>31,10077,0);J[d+12>>2]=(jc&8191)<<19|f>>>13;d=d+16|0;h=h+4|0;if((l|0)!=(h|0))continue;break}h=0;if(g)while(1){f=J[d>>2];f=vEb(f,f>>31,10077,0);J[d>>2]=(jc&8191)<<19|f>>>13;d=d+4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}b=b+r|0;d=(i|0)>1;i=i-1|0;if(d)continue;break}}b=(P(e,k)<<2)+c|0;g=m-e|0;if(!((g|0)<=0|(q|0)<=0)){r=q&-4;l=q&3;s=q-1>>>0<3;o=k<<2;i=g;f=b;while(1){h= +0;d=f;if(!s)while(1){j=J[d>>2];j=vEb(j,j>>31,13318,0);J[d>>2]=(jc&8191)<<19|j>>>13;j=J[d+4>>2];j=vEb(j,j>>31,13318,0);J[d+4>>2]=(jc&8191)<<19|j>>>13;j=J[d+8>>2];j=vEb(j,j>>31,13318,0);J[d+8>>2]=(jc&8191)<<19|j>>>13;j=J[d+12>>2];j=vEb(j,j>>31,13318,0);J[d+12>>2]=(jc&8191)<<19|j>>>13;d=d+16|0;h=h+4|0;if((r|0)!=(h|0))continue;break}h=0;if(l)while(1){j=J[d>>2];j=vEb(j,j>>31,13318,0);J[d>>2]=(jc&8191)<<19|j>>>13;d=d+4|0;h=h+1|0;if((l|0)!=(h|0))continue;break}f=f+o|0;d=(i|0)>1;i=i-1|0;if(d)continue;break}}f= +c;if(!t){o:{if((q|0)<=0)break o;h=b;d=c;if(q-1>>>0>=3){i=q&-4;j=0;while(1){l=J[d>>2];f=J[h>>2];f=vEb(f,f>>31,7266,0);J[d>>2]=l-((jc&8191)<<19|f>>>13);l=J[d+4>>2];f=J[h+4>>2];f=vEb(f,f>>31,7266,0);J[d+4>>2]=l-((jc&8191)<<19|f>>>13);l=J[d+8>>2];f=J[h+8>>2];f=vEb(f,f>>31,7266,0);J[d+8>>2]=l-((jc&8191)<<19|f>>>13);l=J[d+12>>2];f=J[h+12>>2];f=vEb(f,f>>31,7266,0);J[d+12>>2]=l-((jc&8191)<<19|f>>>13);h=h+16|0;d=d+16|0;j=j+4|0;if((i|0)!=(j|0))continue;break}}i=q&3;if(!i)break o;j=0;while(1){l=J[d>>2];f=J[h>> +2];f=vEb(f,f>>31,7266,0);J[d>>2]=l-((jc&8191)<<19|f>>>13);h=h+4|0;d=d+4|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}f=(k<<2)+c|0}o=m&1;p=(o|0)!=(t|0);l=(e-!t|0)-p|0;p:{q:{if((l|0)<=0){e=b;break q}if((q|0)<=0){s=0;break p}n=q&-2;u=q&1;j=k<<2;i=l;e=b;while(1){r=0;d=e;h=f;if((q|0)!=1)while(1){v=J[h>>2];s=J[d+j>>2]+J[d>>2]|0;s=vEb(s,s>>31,3633,0);J[h>>2]=v-((jc&8191)<<19|s>>>13);v=J[h+4>>2];s=J[j+(d+4|0)>>2]+J[d+4>>2]|0;s=vEb(s,s>>31,3633,0);J[h+4>>2]=v-((jc&8191)<<19|s>>>13);d=d+8|0;h=h+8|0;r=r+2|0;if((n| +0)!=(r|0))continue;break}if(u){r=J[h>>2];d=J[d+j>>2]+J[d>>2]|0;d=vEb(d,d>>31,3633,0);J[h>>2]=r-((jc&8191)<<19|d>>>13)}e=e+j|0;f=f+j|0;d=(i|0)>1;i=i-1|0;if(d)continue;break}}s=(q|0)>0;n=p&s;if(!n){n=0;break p}if(q-1>>>0>=3){i=q&-4;d=0;while(1){j=J[f>>2];h=J[e>>2];h=vEb(h,h>>31,7266,0);J[f>>2]=j-((jc&8191)<<19|h>>>13);j=J[f+4>>2];h=J[e+4>>2];h=vEb(h,h>>31,7266,0);J[f+4>>2]=j-((jc&8191)<<19|h>>>13);j=J[f+8>>2];h=J[e+8>>2];h=vEb(h,h>>31,7266,0);J[f+8>>2]=j-((jc&8191)<<19|h>>>13);j=J[f+12>>2];h=J[e+12>> +2];h=vEb(h,h>>31,7266,0);J[f+12>>2]=j-((jc&8191)<<19|h>>>13);e=e+16|0;f=f+16|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}i=q&3;if(!i)break p;d=0;while(1){j=J[f>>2];h=J[e>>2];h=vEb(h,h>>31,7266,0);J[f>>2]=j-((jc&8191)<<19|h>>>13);e=e+4|0;f=f+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}f=b;if(t){r:{if(!s)break r;d=b;h=c;if(q-1>>>0>=3){f=q&-4;j=0;while(1){i=J[d>>2];e=J[h>>2];e=vEb(e,e>>31,14465,0);J[d>>2]=i-((jc&8191)<<19|e>>>13);i=J[d+4>>2];e=J[h+4>>2];e=vEb(e,e>>31,14465,0);J[d+4>>2]=i-((jc&8191)<<19| +e>>>13);i=J[d+8>>2];e=J[h+8>>2];e=vEb(e,e>>31,14465,0);J[d+8>>2]=i-((jc&8191)<<19|e>>>13);i=J[d+12>>2];e=J[h+12>>2];e=vEb(e,e>>31,14465,0);J[d+12>>2]=i-((jc&8191)<<19|e>>>13);h=h+16|0;d=d+16|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=q&3;if(!f)break r;j=0;while(1){i=J[d>>2];e=J[h>>2];e=vEb(e,e>>31,14465,0);J[d>>2]=i-((jc&8191)<<19|e>>>13);h=h+4|0;d=d+4|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}f=(k<<2)+b|0}s:{t:{u:{v:{p=(o|0)==(t|0);g=(g-t|0)-p|0;w:{if((g|0)<=0){e=c;break w}if(!s)break v;u=q&-2; +v=q&1;j=k<<2;i=g;e=c;while(1){r=0;d=f;h=e;if((q|0)!=1)while(1){w=J[d>>2];o=J[h+j>>2]+J[h>>2]|0;o=vEb(o,o>>31,7232,0);J[d>>2]=w-((jc&8191)<<19|o>>>13);w=J[d+4>>2];o=J[j+(h+4|0)>>2]+J[h+4>>2]|0;o=vEb(o,o>>31,7232,0);J[d+4>>2]=w-((jc&8191)<<19|o>>>13);d=d+8|0;h=h+8|0;r=r+2|0;if((u|0)!=(r|0))continue;break}if(v){r=J[d>>2];h=J[h+j>>2]+J[h>>2]|0;h=vEb(h,h>>31,7232,0);J[d>>2]=r-((jc&8191)<<19|h>>>13)}e=e+j|0;f=f+j|0;d=(i|0)>1;i=i-1|0;if(d)continue;break}}i=p&s;x:{if(!i)break x;if(q-1>>>0>=3){j=q&-4;d=0; +while(1){r=J[f>>2];h=J[e>>2];h=vEb(h,h>>31,14465,0);J[f>>2]=r-((jc&8191)<<19|h>>>13);r=J[f+4>>2];h=J[e+4>>2];h=vEb(h,h>>31,14465,0);J[f+4>>2]=r-((jc&8191)<<19|h>>>13);r=J[f+8>>2];h=J[e+8>>2];h=vEb(h,h>>31,14465,0);J[f+8>>2]=r-((jc&8191)<<19|h>>>13);r=J[f+12>>2];h=J[e+12>>2];h=vEb(h,h>>31,14465,0);J[f+12>>2]=r-((jc&8191)<<19|h>>>13);f=f+16|0;e=e+16|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}j=q&3;if(!j)break x;d=0;while(1){r=J[f>>2];h=J[e>>2];h=vEb(h,h>>31,14465,0);J[f>>2]=r-((jc&8191)<<19|h>>>13); +f=f+4|0;e=e+4|0;d=d+1|0;if((j|0)!=(d|0))continue;break}}if(!t)break u;f=i;i=c;break s}i=c;f=0;if(!t)break t;break s}f=0;if(!s)break t;h=b;d=c;if(q-1>>>0>=3){f=q&-4;j=0;while(1){r=J[d>>2];e=J[h>>2];e=vEb(e,e>>31,-868,8191);J[d>>2]=r-((jc&8191)<<19|e>>>13);r=J[d+4>>2];e=J[h+4>>2];e=vEb(e,e>>31,-868,8191);J[d+4>>2]=r-((jc&8191)<<19|e>>>13);r=J[d+8>>2];e=J[h+8>>2];e=vEb(e,e>>31,-868,8191);J[d+8>>2]=r-((jc&8191)<<19|e>>>13);r=J[d+12>>2];e=J[h+12>>2];e=vEb(e,e>>31,-868,8191);J[d+12>>2]=r-((jc&8191)<<19| +e>>>13);h=h+16|0;d=d+16|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=q&3;if(f){j=0;while(1){r=J[d>>2];e=J[h>>2];e=vEb(e,e>>31,-868,8191);J[d>>2]=r-((jc&8191)<<19|e>>>13);h=h+4|0;d=d+4|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}f=i}i=(k<<2)+c|0}y:{if((l|0)<=0){e=b;break y}p=q&-2;u=q&1;o=k<<2;e=b;while(1){j=l;z:{if(!s)break z;r=0;d=e;h=i;if((q|0)!=1)while(1){v=J[h>>2];l=J[d+o>>2]+J[d>>2]|0;l=vEb(l,l>>31,-434,8191);J[h>>2]=v-((jc&8191)<<19|l>>>13);v=J[h+4>>2];l=J[o+(d+4|0)>>2]+J[d+4>>2]|0;l=vEb(l,l>>31, +-434,8191);J[h+4>>2]=v-((jc&8191)<<19|l>>>13);d=d+8|0;h=h+8|0;r=r+2|0;if((p|0)!=(r|0))continue;break}if(!u)break z;l=J[h>>2];d=J[d+o>>2]+J[d>>2]|0;d=vEb(d,d>>31,-434,8191);J[h>>2]=l-((jc&8191)<<19|d>>>13)}l=j-1|0;e=e+o|0;i=i+o|0;if((j|0)>1)continue;break}}A:{if(!n)break A;if(q-1>>>0>=3){l=q&-4;d=0;while(1){j=J[i>>2];h=J[e>>2];h=vEb(h,h>>31,-868,8191);J[i>>2]=j-((jc&8191)<<19|h>>>13);j=J[i+4>>2];h=J[e+4>>2];h=vEb(h,h>>31,-868,8191);J[i+4>>2]=j-((jc&8191)<<19|h>>>13);j=J[i+8>>2];h=J[e+8>>2];h=vEb(h, +h>>31,-868,8191);J[i+8>>2]=j-((jc&8191)<<19|h>>>13);j=J[i+12>>2];h=J[e+12>>2];h=vEb(h,h>>31,-868,8191);J[i+12>>2]=j-((jc&8191)<<19|h>>>13);e=e+16|0;i=i+16|0;d=d+4|0;if((l|0)!=(d|0))continue;break}}l=q&3;if(!l)break A;d=0;while(1){j=J[i>>2];h=J[e>>2];h=vEb(h,h>>31,-868,8191);J[i>>2]=j-((jc&8191)<<19|h>>>13);e=e+4|0;i=i+4|0;d=d+1|0;if((l|0)!=(d|0))continue;break}}if(t){B:{if(!s)break B;d=b;h=c;if(q-1>>>0>=3){i=q&-4;j=0;while(1){l=J[d>>2];e=J[h>>2];e=vEb(e,e>>31,-25987,8191);J[d>>2]=l-((jc&8191)<<19| +e>>>13);l=J[d+4>>2];e=J[h+4>>2];e=vEb(e,e>>31,-25987,8191);J[d+4>>2]=l-((jc&8191)<<19|e>>>13);l=J[d+8>>2];e=J[h+8>>2];e=vEb(e,e>>31,-25987,8191);J[d+8>>2]=l-((jc&8191)<<19|e>>>13);l=J[d+12>>2];e=J[h+12>>2];e=vEb(e,e>>31,-25987,8191);J[d+12>>2]=l-((jc&8191)<<19|e>>>13);h=h+16|0;d=d+16|0;j=j+4|0;if((i|0)!=(j|0))continue;break}}i=q&3;if(!i)break B;j=0;while(1){l=J[d>>2];e=J[h>>2];e=vEb(e,e>>31,-25987,8191);J[d>>2]=l-((jc&8191)<<19|e>>>13);h=h+4|0;d=d+4|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}b=(k<< +2)+b|0}if((g|0)>0){l=q&-2;j=q&1;i=k<<2;while(1){e=g;C:{if(!s)break C;r=0;d=b;h=c;if((q|0)!=1)while(1){o=J[d>>2];g=J[h+i>>2]+J[h>>2]|0;g=vEb(g,g>>31,-12993,8191);J[d>>2]=o-((jc&8191)<<19|g>>>13);o=J[d+4>>2];g=J[i+(h+4|0)>>2]+J[h+4>>2]|0;g=vEb(g,g>>31,-12993,8191);J[d+4>>2]=o-((jc&8191)<<19|g>>>13);d=d+8|0;h=h+8|0;r=r+2|0;if((l|0)!=(r|0))continue;break}if(!j)break C;g=J[d>>2];h=J[h+i>>2]+J[h>>2]|0;h=vEb(h,h>>31,-12993,8191);J[d>>2]=g-((jc&8191)<<19|h>>>13)}g=e-1|0;c=c+i|0;b=b+i|0;if((e|0)>1)continue; +break}}if(!f)break n;if(q-1>>>0>=3){f=q&-4;d=0;while(1){h=J[b>>2];e=J[c>>2];e=vEb(e,e>>31,-25987,8191);J[b>>2]=h-((jc&8191)<<19|e>>>13);h=J[b+4>>2];e=J[c+4>>2];e=vEb(e,e>>31,-25987,8191);J[b+4>>2]=h-((jc&8191)<<19|e>>>13);h=J[b+8>>2];e=J[c+8>>2];e=vEb(e,e>>31,-25987,8191);J[b+8>>2]=h-((jc&8191)<<19|e>>>13);h=J[b+12>>2];e=J[c+12>>2];e=vEb(e,e>>31,-25987,8191);J[b+12>>2]=h-((jc&8191)<<19|e>>>13);b=b+16|0;c=c+16|0;d=d+4|0;if((f|0)!=(d|0))continue;break}}f=q&3;if(!f)break n;d=0;while(1){h=J[b>>2];e=J[c>> +2];e=vEb(e,e>>31,-25987,8191);J[b>>2]=h-((jc&8191)<<19|e>>>13);b=b+4|0;c=c+4|0;d=d+1|0;if((f|0)!=(d|0))continue;break}}$aa(a,m,q,k,t)}return 0}function lkb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=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=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0;h=fc-112|0;fc=h;d=J[b+96>>2];e=J[d+4>> +2];D=J[b+540>>2];a:{if(!D){D=go(e,239464);if(!D){f=11;break a}J[b+540>>2]=D;J[b+516>>2]=J[D>>2];d=J[b+96>>2]}ra=b,sa=al(d,240725,1),J[ra+544>>2]=sa;if(!J[b+548>>2])ra=b,sa=al(wh(e,240878),240956,0),J[ra+548>>2]=sa;if(!J[b+552>>2])ra=b,sa=al(wh(e,240878),241094,0),J[ra+552>>2]=sa;ja=J[a+28>>2];J[b+140>>2]=0;J[b+132>>2]=0;J[b+136>>2]=0;v=J[a+8>>2];d=Rf(a,h);f=J[h>>2];if(f)break a;ka=b+132|0;pa=h+96|0;while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((d|0)<=1954115632){if((d|0)<=131071){if((d|0)== +-1519689116|(d|0)==-1519619212)break o;f=2;if((d|0)==65536)break o;break a}if((d|0)<=1953658212){if((d|0)==131072)break o;f=2;if((d|0)==1330926671)break o;break a}if((d|0)==1953658213)break o;f=2;if((d|0)==1953784678)break o;break a}if((d|0)==2001684018)break m;if((d|0)==2001684038)break n;f=2;if((d|0)!=1954115633)break a}J[ka>>2]=1953784678;if((d|0)!=1953784678)break k;f=Te(a,325296,ka);J[h>>2]=f;if(f)break a;d=J[b+140>>2];if(d)break l;f=8;break a}f=yd(a,v);J[h>>2]=f;if(f)break a;t=J[a+28>>2];f= +Te(a,325312,h+40|0);J[h+16>>2]=f;if(f)break a;f=8;d=J[h+44>>2];if((d|0)==1953784678|(d|0)==2001684038)break a;d=J[h+48>>2];if((d|0)!=J[a+4>>2])break a;e=L[h+52>>1];if(!e|d>>>0<=P(e,20)+44>>>0)break a;e=e<<4|12;d=J[h+56>>2];if(e>>>0>=d>>>0|d&3)break a;d=J[h+68>>2];p:{if(!J[h+64>>2]){if(!(d|J[h+72>>2]))break p;break a}if(!d)break p;if(!J[h+72>>2])break a}if(!(J[h+80>>2]?J[h+76>>2]:1))break a;f=0;z=he(t,e,h+16|0);if(J[h+16>>2]){l=0;v=0;break d}l=he(t,40,h+16|0);if(J[h+16>>2]){v=0;break d}v=0;g=L[h+52>> +1];f=g;q:{if(!f){d=-1;break q}while(1){d=v;v=d+1|0;e=f>>>0>1;f=f>>>1|0;if(e)continue;break}}H[z|0]=K[h+47|0];H[z+1|0]=L[h+46>>1];H[z+2|0]=J[h+44>>2]>>>8;H[z+3|0]=J[h+44>>2];H[z+4|0]=K[h+53|0];f=K[h+52|0];e=g<<4;g=16<>>8;H[z+9|0]=d;H[z+8|0]=d>>>8;H[z+7|0]=g;H[z+6|0]=g>>>8;H[z+5|0]=f;f=0;d=h+16|0;v=_c(t,24,0,L[h+52>>1],0,d);if(J[h+16>>2])break d;f=_c(t,4,0,L[h+52>>1],0,d);if(J[h+16>>2])break d;d=af(a,P(L[h+52>>1],20));J[h+16>>2]=d;if(d)break d;e=0;d=0;if(L[h+52>>1])while(1){g= +P(d,24)+v|0;ra=g,sa=Fh(a),J[ra>>2]=sa;ra=g,sa=Fh(a),J[ra+4>>2]=sa;ra=g,sa=Fh(a),J[ra+8>>2]=sa;ra=g,sa=Fh(a),J[ra+12>>2]=sa;ra=g,sa=Fh(a),J[ra+16>>2]=sa;j=e;e=J[g>>2];if(j>>>0>=e>>>0){ve(a);J[h+16>>2]=8;break d}J[(d<<2)+f>>2]=g;d=d+1|0;if(d>>>0>1])continue;break}ve(a);vm(f,L[h+52>>1],4,1708);p=L[h+52>>1];g=p<<4|12;w=P(p,20)+44|0;r:{if(!p){d=g;break r}m=0;j=J[h+56>>2];e=J[h+48>>2];d=g;while(1){s:{k=J[(m<<2)+f>>2];t:{if(J[k+4>>2]!=(w|0))break t;i=J[k+8>>2];if(i>>>0>e>>>0|e-i>>>0>>0)break t; +s=J[k+12>>2];if(s>>>0>>0|j>>>0>>0)break t;if(j-s>>>0>=d>>>0)break s}J[h+16>>2]=8;break d}J[k+20>>2]=d;d=(s+3&-4)+d|0;w=(i+3&-4)+w|0;m=m+1|0;if((p|0)!=(m|0))continue;break}}u:{e=J[h+64>>2];if(!e)break u;if((e|0)==(w|0)){w=J[h+68>>2]+w|0;if(w>>>0<=M[h+48>>2])break u}J[h+16>>2]=8;break d}j=J[h+76>>2];if(!j){e=J[h+48>>2];break e}if((j|0)==(w+3&-4)){e=J[h+48>>2];w=j+J[h+80>>2]|0;if(e>>>0>=w>>>0)break e}J[h+16>>2]=8;break d}f=yd(a,v);J[h>>2]=f;if(f)break a;n=J[a+28>>2];J[h+32>>2]=0;J[h+36>>2]=0;J[h+ +24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+12>>2]=0;f=Te(a,325376,h+40|0);J[h+108>>2]=f;if(f)break a;f=8;if(J[h+44>>2]==2001684018)break a;j=J[h+48>>2];if((j|0)!=J[a+4>>2])break a;g=L[h+52>>1];if(!g|j>>>0<=P(g,20)+48>>>0)break a;w=J[h+68>>2];e=J[h+64>>2];v:{if(!e){d=J[h+72>>2]|w;w=0;if(!d)break v;break a}if(!w)break v;if(!J[h+72>>2])break a}if(j-e>>>0>>0|e>>>0>=j>>>0)break a;e=J[h+76>>2];if(e>>>0>=j>>>0)break a;d=J[h+80>>2];if(!(!d|(e|0)!=0)|d>>>0>j-e>>>0)break a;v=0;J[h+104>>2]=0;ea= +_c(n,32,0,g,0,h+108|0);if(J[h+108>>2]){z=0;w=0;break f}w=_c(n,4,0,L[h+52>>1],0,h+108|0);if(J[h+108>>2]){z=0;break f}z=0;l=0;m=0;f=0;if(L[h+52>>1])while(1){s=(l<<5)+ea|0;f=h+108|0;d=Rg(a,f);H[s|0]=d;if(J[h+108>>2])break f;e=d&63;w:{if((e|0)==63){v=Rf(a,f);J[s+4>>2]=v;if(J[h+108>>2]){v=0;break f}d=K[s|0];break w}v=J[(e<<2)+325440>>2];J[s+4>>2]=v}j=(v|0)!=1819239265;g=(v|0)!=1735162214;e=A6(a,s+8|0);J[h+108>>2]=e;v=0;if(e)break f;e=J[s+8>>2];J[s+12>>2]=e;x:{y:{f=d&255;g=g&j?f>>>0<64:f>>>0>63;if(!g){e= +A6(a,s+12|0);J[h+108>>2]=e;if(e)break f;f=J[s+12>>2];if(J[s+4>>2]==1819239265)break y;e=f}if((m^-1)>>>0>=e>>>0)break x;break g}e=0;if(f)break i}J[s+24>>2]=e;J[s+20>>2]=m;J[s+16>>2]=(d&192)>>>6|(g?0:256);J[(l<<2)+w>>2]=s;m=e+m|0;f=L[h+52>>1];l=l+1|0;if(f>>>0>l>>>0)continue;break}d=J[((f<<2)+w|0)-4>>2];e=J[d+24>>2];d=e+J[d+20>>2]|0;J[h+84>>2]=d;if(d>>>0>>0)break h;J[h+92>>2]=0;I[h+96>>1]=1;z:{if(J[h+44>>2]==1953784678){e=h+108|0;d=Rf(a,e);J[h+92>>2]=d;if(J[h+108>>2])break f;if((d|0)!=65536&(d|0)!= +131072)break h;d=Ru(a,pa);J[h+108>>2]=d;if(d)break f;d=L[h+96>>1];if(!d)break h;ra=h,sa=_c(n,12,0,d,0,e),J[ra+104>>2]=sa;if(J[h+108>>2])break f;f=0;if(!L[h+96>>1])break z;while(1){m=J[h+104>>2]+P(f,12)|0;d=Ru(a,m+4|0);J[h+108>>2]=d;if(d)break f;d=h+108|0;ra=m,sa=Rf(a,d),J[ra>>2]=sa;if(J[h+108>>2])break f;ra=m,sa=_c(n,2,0,L[m+4>>1],0,d),J[ra+8>>2]=sa;if(J[h+108>>2])break f;l=0;A:{if(!L[m+4>>1]){e=0;break A}e=0;d=0;while(1){g=Ru(a,h+6|0);J[h+108>>2]=g;if(g)break f;j=L[h+6>>1];if(j>>>0>=L[h+52>>1])break i; +I[J[m+8>>2]+(d<<1)>>1]=j;g=J[J[(j<<2)+w>>2]+4>>2];e=(g|0)==1735162214?j:e;l=(g|0)==1819239265?j:l;d=d+1|0;if(d>>>0>1])continue;break}}if((l-e|0)!=1|e>>>0>l>>>0?e|l:0)break i;f=f+1|0;if(f>>>0>1])continue;break}break z}J[h+104>>2]=0}d=J[a+8>>2];J[h+88>>2]=d;g=(d+J[h+60>>2]|0)+3|0;f=g&-4;e=J[h+48>>2];if(f>>>0>e>>>0)break h;d=J[h+64>>2];if(d){if((d|0)!=(f|0))break h;f=J[h+68>>2]+(g|3)&-4}d=J[h+76>>2];if(d){if((d|0)!=(f|0))break h;f=J[h+80>>2]+(f|3)&-4}if((e+3&-4)!=(f|0))break h;B:{ba=c>> +31;f=ba+((c^ba)-ba&65535)|0;fa=L[h+96>>1];if((f|0)<(fa|0))break B;f=0;if((c|0)<0)break B;J[h+108>>2]=6;break f}C:{if(!J[h+92>>2]){f=L[h+52>>1];break C}s=J[h+104>>2]+P(f,12)|0;i=_c(n,4,0,L[s+4>>1],0,h+108|0);if(J[h+108>>2])break f;j=L[s+4>>1];D:{if(!j)break D;f=0;if((j|0)!=1){g=j&65534;e=0;while(1){J[i+(f<<2)>>2]=J[(L[J[s+8>>2]+(f<<1)>>1]<<2)+w>>2];d=f|1;J[i+(d<<2)>>2]=J[(L[J[s+8>>2]+(d<<1)>>1]<<2)+w>>2];f=f+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(!(j&1))break D;J[i+(f<<2)>>2]=J[(L[J[s+8>>2]+ +(f<<1)>>1]<<2)+w>>2]}w=_c(n,4,L[h+52>>1],j,w,h+108|0);if(J[h+108>>2])break f;j=L[s+4>>1];E:{if(!j)break E;l=0;f=0;if(j>>>0>=4){g=j&65532;e=0;while(1){m=f<<2;J[m+w>>2]=J[i+m>>2];d=m|4;J[d+w>>2]=J[d+i>>2];d=m|8;J[d+w>>2]=J[d+i>>2];d=m|12;J[d+w>>2]=J[d+i>>2];f=f+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}e=j&3;if(!e)break E;while(1){d=f<<2;J[d+w>>2]=J[d+i>>2];f=f+1|0;l=l+1|0;if((e|0)!=(l|0))continue;break}}if(i)kc[J[n+8>>2]](n,i);J[h+44>>2]=J[s>>2];f=L[s+4>>1];I[h+52>>1]=f}e=(f&65535)<<4|12;J[h+8>> +2]=e;f=J[h+56>>2];if(f>>>0>e>>>0){d=J[h+48>>2];d=d>>>0>>6>>>0?d<<6:f;e=d>>>0>=67108864?67108864:d;J[h+8>>2]=e}d=h+108|0;l=he(n,e,d);J[h+12>>2]=l;if(J[h+108>>2])break f;v=he(n,40,d);if(J[h+108>>2])break f;H[l|0]=K[h+47|0];H[l+1|0]=L[h+46>>1];H[l+2|0]=J[h+44>>2]>>>8;H[l+3|0]=J[h+44>>2];j=L[h+52>>1];if(j){d=0;f=j;while(1){g=d;d=d+1|0;m=f>>>0>1;f=f>>>1|0;if(m)continue;break}H[l+4|0]=j>>>8;f=K[h+52|0];d=j<<4;j=16<>>8;H[l+9|0]=g;H[l+8|0]=g>>>8;H[l+7|0]=j;H[l+6|0]=j>>> +8;H[l+5|0]=f;d=L[h+52>>1]}else d=0;ra=h,sa=YM(l,12),J[ra+16>>2]=sa;vm(w,d,4,1709);d=J[h+84>>2];if(!d|d>>>0>e>>>0)break g;la=h+108|0;z=he(n,d,la);if(J[h+108>>2])break f;d=af(a,J[h+60>>2]);J[h+108>>2]=d;if(d)break f;J[h+108>>2]=7;ve(a);if(J[h+108>>2])break f;ma=J[h+84>>2];N=h+8|0;e=0;o=0;A=0;ca=0;da=0;i=fc-48|0;fc=i;J[i+16>>2]=0;d=J[h+12>>2];J[i+12>>2]=d;R=L[h+52>>1];s=R<<4|12;J[i+8>>2]=s;J[i>>2]=0;B=h+16|0;ga=J[B>>2];F:{G:{if(R){H:{while(1){l=J[(e<<2)+w>>2];if(J[l+4>>2]==1735162214)break H;e=e+1|0; +if((R|0)!=(e|0))continue;break}l=0}J[B+12>>2]=l;T=B+12|0;e=0;I:{while(1){f=J[(e<<2)+w>>2];if(J[f+4>>2]!=1819239265){e=e+1|0;if((R|0)!=(e|0))continue;break I}break}J[B+16>>2]=f;e=8;if(!l|(J[f+16>>2]^J[l+16>>2])&256)break F;e=B+16|0;break G}J[B+16>>2]=0;e=8;if(l)break F;e=B+16|0;break G}J[B+12>>2]=0;J[B+16>>2]=0;T=B+12|0;e=B+16|0}na=e;e=i+16|0;u=_c(n,1,0,16,0,e);J:{K:{if(J[i+16>>2])break K;o=he(n,40,e);if(J[i+16>>2])break K;J[o+32>>2]=0;J[o+8>>2]=0;J[o+4>>2]=ma;J[o>>2]=z;J[o+20>>2]=0;J[o+24>>2]=0;L:{M:{N:{if(!R)break N; +qa=z+8|0;ha=12;while(1){g=J[(da<<2)+w>>2];e=J[g+28>>2];f=J[g+16>>2];aa=J[g+8>>2];W=J[g+4>>2];j=J[g+24>>2];g=J[g+20>>2];l=yd(o,g);J[i+16>>2]=l;if(g+j>>>0>ma>>>0|l)break L;O:{P:{if((W|0)==1751672161){e=kg(o,34);J[i+44>>2]=e;if(e)break M;ca=ee(o,i+44|0);if(J[i+44>>2])break M;I[B+6>>1]=ca;if(!(f&256))break P;break M}I[B+6>>1]=ca;J[i+4>>2]=0;if(f&256){Q:{R:{S:{T:{U:{if((W|0)!=1819239265){if((W|0)==1752003704)break U;if((W|0)!=1735162214)break M;e=0;J[i+44>>2]=0;J[i+40>>2]=d;m=J[o+8>>2];J[i+36>>2]=s;k= +i+44|0;q=_c(n,12,0,7,0,k);if(J[i+44>>2])break S;d=kg(o,4);J[i+44>>2]=d;if(d)break S;Y=ee(o,k);if(J[i+44>>2])break S;ia=ee(o,k);l=0;r=0;C=0;if(J[i+44>>2])break R;I[B+4>>1]=Y;t=Y+1|0;V:{if(J[J[B+16>>2]+8>>2]!=t<<(ia?2:1)|M[J[T>>2]+12>>2]<36)break V;f=Rf(o,k);if(J[i+44>>2])break R;if(f>>>0>J[J[T>>2]+12>>2]-36>>>0)break V;J[q+8>>2]=f;d=m+36|0;J[q+4>>2]=d;J[q>>2]=d;j=Rf(o,k);if(J[i+44>>2])break R;f=f+36|0;if(j>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+20>>2]=j;d=f+m|0;J[q+16>>2]=d;J[q+12>>2]=d;g=Rf(o,k); +if(J[i+44>>2])break R;f=f+j|0;if(g>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+32>>2]=g;d=f+m|0;J[q+28>>2]=d;J[q+24>>2]=d;j=Rf(o,k);if(J[i+44>>2])break R;f=f+g|0;if(j>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+44>>2]=j;d=f+m|0;J[q+40>>2]=d;J[q+36>>2]=d;g=Rf(o,i+44|0);if(J[i+44>>2])break R;f=f+j|0;if(g>>>0>J[J[T>>2]+12>>2]-f>>>0)break V;J[q+56>>2]=g;d=f+m|0;J[q+52>>2]=d;J[q+48>>2]=d;j=Rf(o,i+44|0);if(J[i+44>>2])break R;g=f+g|0;if(j>>>0>J[J[T>>2]+12>>2]-g>>>0)break V;J[q+68>>2]=j;d=g+m|0;J[q- -64>>2]=d;J[q+ +60>>2]=d;f=Rf(o,i+44|0);if(J[i+44>>2])break R;d=g+j|0;if(f>>>0>J[J[T>>2]+12>>2]-d>>>0)break V;J[q+80>>2]=f;d=d+m|0;J[q+76>>2]=d;J[q+72>>2]=d;e=_c(n,4,0,t,0,k);if(J[i+44>>2])break S;oa=J[q+64>>2];J[q+64>>2]=oa+(Y+31>>>3&16380);r=_c(n,1,0,5120,0,k);if(J[i+44>>2])break R;ra=B,sa=_c(n,2,0,Y,0,k),J[ra+8>>2]=sa;if(J[i+44>>2])break R;d=5120;Z=0;l=s;W:{if(Y){while(1){J[i+32>>2]=0;I[i+30>>1]=0;f=yd(o,(Z>>>3|0)+oa|0);J[i+44>>2]=f;X:{Y:{if(f)break Y;j=i+44|0;g=Rg(o,j);if(J[i+44>>2])break Y;f=yd(o,J[q+4>>2]); +J[i+44>>2]=f;if(f)break Y;U=ee(o,j);if(J[i+44>>2])break Y;X=128>>>(Z&7)&g;J[q+4>>2]=J[q+4>>2]+2;Z:{if(U){if((U|0)==65535){H[i+22|0]=0;I[i+28>>1]=0;if(!X)break Y;g=0;j=fc-16|0;fc=j;k=J[q+52>>2];m=yd(o,k);J[j+12>>2]=m;_:{if(m)break _;l=32;while(1){if(l&32){l=ee(o,j+12|0);m=J[j+12>>2];if(m)break _;g=l>>>8&1|g;m=l&1?6:4;f=m+2|0;$:{if(l&8)break $;f=m+4|0;if(l&64)break $;f=m|l>>>4&8}m=kg(o,f);J[j+12>>2]=m;if(!m)continue;break _}break}J[i+24>>2]=J[o+8>>2]-k;H[i+22|0]=g;m=J[j+12>>2]}fc=j+16|0;if(m)break Y; +C=0;l=0;if(K[i+22|0]){f=yd(o,J[q+40>>2]);J[i+44>>2]=f;if(f)break Y;f=Ru(o,i+28|0);J[i+44>>2]=f;if(f)break Y;J[q+40>>2]=J[o+8>>2];l=L[i+28>>1]}f=(J[i+24>>2]+(l&65535)|0)+12|0;if(f>>>0>d>>>0){r=_c(n,1,d,f,r,i+44|0);if(J[i+44>>2])break Y;C=J[i+32>>2];d=f}f=r+C|0;H[f|0]=255;H[f+1|0]=255;g=J[i+32>>2]+2|0;J[i+32>>2]=g;f=yd(o,J[q+64>>2]);J[i+44>>2]=f;if(f)break Y;ra=i,sa=ee(o,i+44|0),I[ra+30>>1]=sa;if(J[i+44>>2])break Y;f=yd(o,J[q+64>>2]);J[i+44>>2]=f;if(f)break Y;f=zg(o,g+r|0,8);J[i+44>>2]=f;if(f)break Y; +J[q+64>>2]=J[q+64>>2]+8;g=J[i+32>>2]+8|0;J[i+32>>2]=g;f=yd(o,J[q+52>>2]);J[i+44>>2]=f;if(f)break Y;f=zg(o,g+r|0,J[i+24>>2]);J[i+44>>2]=f;if(f)break Y;f=J[i+24>>2];J[q+52>>2]=f+J[q+52>>2];C=f+J[i+32>>2]|0;J[i+32>>2]=C;if(!K[i+22|0])break Z;f=r+C|0;H[f|0]=K[i+29|0];H[f+1|0]=K[i+28|0];g=J[i+32>>2]+2|0;J[i+32>>2]=g;f=yd(o,J[q+76>>2]);J[i+44>>2]=f;if(f)break Y;f=zg(o,g+r|0,L[i+28>>1]);J[i+44>>2]=f;if(f)break Y;f=L[i+28>>1];J[q+76>>2]=f+J[q+76>>2];C=f+J[i+32>>2]|0;J[i+32>>2]=C;break Z}l=0;C=_c(n,2,0,U, +0,i+44|0);if(J[i+44>>2])break V;f=yd(o,J[q+16>>2]);J[i+44>>2]=f;j=0;m=0;if(f)break V;while(1){f=Ru(o,i+28|0);J[i+44>>2]=f;if(f)break V;f=L[i+28>>1];I[(j<<1)+C>>1]=f;E=f+m|0;if(E>>>0>>0)break V;m=E;j=j+1|0;if((U|0)!=(j|0))continue;break}J[q+16>>2]=J[o+8>>2];if(M[q+32>>2]>>0)break V;k=J[q+44>>2];g=J[q+40>>2];j=g-J[q+36>>2]|0;if(k>>>0>>0)break V;p=J[o>>2];f=J[q+28>>2];J[i+24>>2]=0;l=_c(n,12,0,m,0,i+44|0);if(J[i+44>>2])break V;y=f+p|0;F=g+p|0;f=0;_=0;G=0;V=0;g=0;$=8;A=k-j|0;aa:{if(A>>>0>> +0)break aa;if(m)while(1){j=K[y+V|0];O=j&127;k=1;ba:{if(O>>>0<84)break ba;k=2;if(O>>>0<120)break ba;k=O>>>0<124?3:4}g=k+f|0;if(A>>>0>>0|g>>>0>>0)break aa;S=j<<24>>24;ca:{if(O>>>0<=9){Q=0;f=K[f+F|0]|O<<7&1792;x=S&1?f:0-f|0;break ca}if(O>>>0<=19){x=0;f=K[f+F|0]|(O<<7)+768&1792;Q=S&1?f:0-f|0;break ca}if(O>>>0<=83){k=K[f+F|0];j=O-20|0;f=k&15|j<<2&48;x=S&2?f+1|0:f^-1;f=j&48|k>>>4;Q=S&1?f+1|0:f^-1;break ca}if(O>>>0<=119){p=f+F|0;k=O-84|0;j=((k&255)>>>0)/12|0;f=K[p|0]|j<<8;Q=S&1?f+1|0:f^-1;f=K[p+1| +0]|k+(j<<2)<<6&768;x=S&2?f+1|0:f^-1;break ca}k=f+F|0;if(O>>>0<=123){j=K[k+1|0];f=K[k|0]<<4|j>>>4;Q=S&1?f:0-f|0;f=K[k+2|0]|j<<8&3840;x=S&2?f:0-f|0;break ca}f=K[k+1|0]|K[k|0]<<8;Q=S&1?f:0-f|0;f=K[k+3|0]|K[k+2|0]<<8;x=S&2?f:0-f|0}if((G^2147483647)<(Q|0)&(G|0)>0|(G|0)<0&(-2147483648-G|0)>(Q|0)|((_^2147483647)<(x|0)&(_|0)>0|(_|0)<0&(-2147483648-_|0)>(x|0)))break aa;f=P(V,12)+l|0;H[f+8|0]=(S|0)>=0;_=x+_|0;J[f+4>>2]=_;G=G+Q|0;J[f>>2]=G;f=g;V=V+1|0;if((V|0)!=(m|0))continue;break}J[i+24>>2]=g;$=0}if($)break V; +J[q+28>>2]=J[q+28>>2]+m;f=J[q+40>>2]+J[i+24>>2]|0;J[q+40>>2]=f;f=yd(o,f);J[i+44>>2]=f;if(f)break V;f=Ru(o,i+22|0);J[i+44>>2]=f;if(f)break V;J[q+40>>2]=J[o+8>>2];if(m>>>0>134217727)break V;m=0;f=(L[i+22>>1]+(P(E,5)+(U<<1)|0)|0)+12|0;da:{if(f>>>0<=d>>>0){f=d;break da}r=_c(n,1,d,f,r,i+44|0);if(J[i+44>>2])break V;m=J[i+32>>2]}g=m+r|0;d=U<<8|U>>>8;H[g|0]=d;H[g+1|0]=d>>>8;g=J[i+32>>2]+2|0;J[i+32>>2]=g;ea:{if(X){d=yd(o,J[q+64>>2]);J[i+44>>2]=d;if(d)break V;ra=i,sa=ee(o,i+44|0),I[ra+30>>1]=sa;if(J[i+44>> +2])break V;d=yd(o,J[q+64>>2]);J[i+44>>2]=d;if(d)break V;d=zg(o,g+r|0,8);J[i+44>>2]=d;if(d)break V;J[q+64>>2]=J[q+64>>2]+8;break ea}g=0;d=0;m=0;F=0;fa:{if(!E){j=0;break fa}A=1;m=J[l+4>>2];d=J[l>>2];if((E|0)==1){j=m;g=d;break fa}g=E-1|0;p=g&1;ga:{if((E|0)==2){g=d;j=m;break ga}k=g&-2;g=d;j=m;while(1){x=P(A,12)+l|0;X=J[x+16>>2];$=J[x+4>>2];j=(j|0)<($|0)?$:j;j=(j|0)<(X|0)?X:j;y=J[x+12>>2];x=J[x>>2];g=(g|0)<(x|0)?x:g;g=(g|0)<(y|0)?y:g;m=(m|0)>($|0)?$:m;m=(m|0)>(X|0)?X:m;d=(d|0)>(x|0)?x:d;d=(d|0)>(y|0)? +y:d;A=A+2|0;F=F+2|0;if((k|0)!=(F|0))continue;break}}if(!p)break fa;k=P(A,12)+l|0;p=J[k+4>>2];j=(j|0)<(p|0)?p:j;k=J[k>>2];g=(g|0)<(k|0)?k:g;m=(m|0)>(p|0)?p:m;d=(d|0)>(k|0)?k:d}H[r+9|0]=j;H[r+7|0]=g;H[r+5|0]=m;H[r+3|0]=d;H[r+8|0]=j>>>8;H[r+6|0]=g>>>8;H[r+4|0]=m>>>8;H[r+2|0]=d>>>8;I[i+30>>1]=d}J[i+32>>2]=10;g=r+10|0;m=-1;j=0;while(1){d=g;m=L[(j<<1)+C>>1]+m|0;if((m|0)>65535)break V;k=m<<8|(m&65280)>>>8;H[d|0]=k;H[d+1|0]=k>>>8;J[i+32>>2]=J[i+32>>2]+2;g=d+2|0;j=j+1|0;if((U|0)!=(j|0))continue;break}j=L[i+ +22>>1];g=j<<8|j>>>8;H[d+2|0]=g;H[d+3|0]=g>>>8;g=J[i+32>>2]+2|0;J[i+32>>2]=g;d=yd(o,J[q+76>>2]);J[i+44>>2]=d;if(d)break V;d=zg(o,g+r|0,j);J[i+44>>2]=d;if(d)break V;d=L[i+22>>1];J[q+76>>2]=d+J[q+76>>2];J[i+32>>2]=d+J[i+32>>2];m=f;f=0;A=0;j=0;G=0;F=0;V=0;g=(d+(U<<1)|0)+12|0;ha:{ia:{ja:{if(E){y=r-1|0;x=255;while(1){k=P(V,12)+l|0;p=J[k+4>>2];d=K[k+8|0]!=0;k=J[k>>2];ka:{if((k|0)==(f|0)){d=d|16;break ka}f=k-f|0;if(f+255>>>0<=510){G=G+1|0;d=((f|0)>0?18:2)|d;break ka}G=G+2|0}la:{if((p|0)==(A|0)){d=d|32;break la}f= +p-A|0;if(f+255>>>0<=510){F=F+1|0;d=((f|0)>0?36:4)|d;break la}F=F+2|0}ma:{if(!((j&255)==255|(x&255)!=(d|0))){f=g+y|0;H[f|0]=K[f|0]|8;j=j+1|0;break ma}if(j&255){f=8;if(g>>>0>=m>>>0)break ha;H[g+r|0]=j;g=g+1|0}f=8;if(g>>>0>=m>>>0)break ha;H[g+r|0]=d;g=g+1|0;j=0}x=d;f=k;A=p;V=V+1|0;if((E|0)!=(V|0))continue;break}if(j&255){d=8;if(g>>>0>=m>>>0)break ia;H[g+r|0]=j;f=g+1|0}else f=g;d=8;g=F+G|0;if(g>>>0>>0)break ia;g=f+g|0;if(g>>>0>>0|g>>>0>m>>>0)break ia;g=f+G|0;if(!E)break ja;j=0;d=0;x=0;while(1){p= +d;A=P(x,12)+l|0;d=J[A+4>>2];k=j;j=J[A>>2];na:{if((k|0)==(j|0))break na;k=j-k|0;if(k+255>>>0<=510){A=k;k=k>>31;H[f+r|0]=(A^k)-k;f=f+1|0;break na}A=f+r|0;k=k<<8|(k&65280)>>>8;H[A|0]=k;H[A+1|0]=k>>>8;f=f+2|0}oa:{if((d|0)==(p|0))break oa;k=d-p|0;if(k+255>>>0<=510){p=k;k=k>>31;H[g+r|0]=(p^k)-k;g=g+1|0;break oa}p=g+r|0;k=k<<8|(k&65280)>>>8;H[p|0]=k;H[p+1|0]=k>>>8;g=g+2|0}x=x+1|0;if((E|0)!=(x|0))continue;break}break ja}d=8;if(g>>>0>m>>>0)break ia}J[i+32>>2]=g;d=0}f=d}if(f)break V;if(l)kc[J[n+8>>2]](n,l); +if(C)kc[J[n+8>>2]](n,C);C=J[i+32>>2];d=m;break Z}C=0;l=0;if(X)break V}J[(Z<<2)+e>>2]=J[i+36>>2]-s;g=i+40|0;f=i+36|0;if(w6(g,N,f,r,C,n))break Y;k=fc-16|0;fc=k;y=J[g>>2];j=J[f>>2];H[k+10|0]=0;I[k+8>>1]=0;A=8;pa:{if(j>>>0>4294967292)break pa;l=j+3&-4;qa:{if((j|0)==(l|0)){l=j;break qa}J[k+12>>2]=0;if(l>>>0>31457280)break pa;m=J[N>>2];if(m>>>0>>0){y=_c(n,1,m,l,y,k+12|0);if(J[k+12>>2])break pa;J[N>>2]=l}xc(j+y|0,k+8|0,l-j|0);if(J[k+12>>2])break pa}J[g>>2]=y;J[f>>2]=l;A=0}fc=k+16|0;if(!A)break X}C=0; +break W}ra=i,sa=J[i+4>>2]+YM(r,C)|0,J[ra+4>>2]=sa;if(U)I[J[B+8>>2]+(Z<<1)>>1]=L[i+30>>1];Z=Z+1|0;if((Z|0)!=(Y|0))continue;break}l=J[i+36>>2]}d=J[T>>2];f=l-J[d+28>>2]|0;J[d+8>>2]=f;J[J[na>>2]+28>>2]=l;J[(Y<<2)+e>>2]=f;C=0;d=0;m=0;y=0;x=fc-16|0;fc=x;J[x+8>>2]=0;k=J[i+36>>2];A=J[i+40>>2];E=t<<(ia?2:1);g=_c(n,1,0,E,0,x+8|0);ra:{if(J[x+8>>2])break ra;sa:{if(!t)break sa;ta:{if(ia){d=g;if((t|0)!=1){j=t&-2;while(1){f=m<<2;l=J[f+e>>2];l=l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24);H[d|0]=l;H[d+1|0]=l>>>8;H[d+2| +0]=l>>>16;H[d+3|0]=l>>>24;f=J[(f|4)+e>>2];f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;m=m+2|0;d=d+8|0;y=y+2|0;if((j|0)!=(y|0))continue;break}}if(!(t&1))break ta;f=J[(m<<2)+e>>2];f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;break ta}d=g;if(t>>>0>=4){j=t&-4;l=0;while(1){p=m<<2;f=J[p+e>>2];H[d+1|0]=f>>>1;H[d|0]=f>>>9;f=J[(p|4)+e>>2];H[d+3|0]=f>>>1;H[d+2|0]=f>>>9;f=J[(p|8)+e>>2];H[d+5|0]=f>>>1; +H[d+4|0]=f>>>9;f=J[(p|12)+e>>2];H[d+7|0]=f>>>1;H[d+6|0]=f>>>9;m=m+4|0;d=d+8|0;l=l+4|0;if((j|0)!=(l|0))continue;break}}j=t&3;if(!j)break ta;while(1){f=J[(m<<2)+e>>2];H[d+1|0]=f>>>1;H[d|0]=f>>>9;m=m+1|0;d=d+2|0;y=y+1|0;if((j|0)!=(y|0))continue;break}}d=0;f=E&-4;if(!f){m=0;break sa}m=0;while(1){m=(K[g+(d|3)|0]|(K[g+(d|1)|0]<<16|K[d+g|0]<<24|K[g+(d|2)|0]<<8))+m|0;d=d+4|0;if(f>>>0>d>>>0)continue;break}d=f}if((d|0)!=(E|0)){f=0;while(1){f=K[d+g|0]<<((d^-1)<<3)|f;d=d+1|0;if(E>>>0>d>>>0)continue;break}m=f+ +m|0}J[i>>2]=m;J[x+12>>2]=0;ua:{f=k+E|0;if(f>>>0>31457280)break ua;d=J[N>>2];if(d>>>0>>0){A=_c(n,1,d,f,A,x+12|0);if(J[x+12>>2])break ua;J[N>>2]=f}xc(k+A|0,g,E);if(J[x+12>>2])break ua;J[i+40>>2]=A;J[i+36>>2]=f;break ra}if(J[x+8>>2])break ra;J[x+8>>2]=8}if(g)kc[J[n+8>>2]](n,g);fc=x+16|0;if(!J[x+8>>2])break T}l=0}if(J[i+44>>2])break R;J[i+44>>2]=8;break R}J[i+4>>2]=J[i>>2];s=e;break O}e=ca;if(!A){l=0;k=fc-16|0;fc=k;d=8;va:{if(!R)break va;wa:{while(1){f=J[(l<<2)+w>>2];if(J[f+4>>2]==1835104368)break wa; +l=l+1|0;if((R|0)!=(l|0))continue;break}f=0}l=0;while(1){e=J[(l<<2)+w>>2];if(J[e+4>>2]!=1751474532){l=l+1|0;if((R|0)!=(l|0))continue;break va}break}if(!f|!J[B+16>>2])break va;d=yd(o,J[f+20>>2]);if(d)break va;d=kg(o,8);J[k+12>>2]=d;if(d)break va;f=k+12|0;m=ee(o,f);d=J[k+12>>2];if(d)break va;I[B+4>>1]=m;d=yd(o,J[e+20>>2]);J[k+12>>2]=d;if(d)break va;d=kg(o,50);J[k+12>>2]=d;if(d)break va;e=ee(o,f);d=J[k+12>>2];if(d)break va;ra=B,sa=_c(n,2,0,m,0,f),J[ra+8>>2]=sa;d=J[k+12>>2];if(d)break va;d=0;if(!m)break va; +d=e&65535;j=d?4:2;l=J[J[B+16>>2]+20>>2];f=0;if(!d)while(1){d=yd(o,l);J[k+12>>2]=d;if(d)break va;e=ee(o,k+12|0);d=J[k+12>>2];if(d)break va;d=yd(o,J[J[B+12>>2]+20>>2]+(e<<1)|0);J[k+12>>2]=d;if(d)break va;d=kg(o,2);J[k+12>>2]=d;if(d)break va;d=ee(o,k+12|0);I[J[B+8>>2]+(f<<1)>>1]=d;d=J[k+12>>2];if(d)break va;l=j+l|0;d=0;f=f+1|0;if((m|0)!=(f|0))continue;break va}while(1){d=yd(o,l);J[k+12>>2]=d;if(d)break va;g=k+12|0;e=Rf(o,g);d=J[k+12>>2];if(d)break va;d=yd(o,e+J[J[B+12>>2]+20>>2]|0);J[k+12>>2]=d;if(d)break va; +d=kg(o,2);J[k+12>>2]=d;if(d)break va;d=ee(o,g);I[J[B+8>>2]+(f<<1)>>1]=d;d=J[k+12>>2];if(d)break va;l=j+l|0;d=0;f=f+1|0;if((m|0)!=(f|0))continue;break}}fc=k+16|0;if(d)break M;e=L[B+6>>1]}p=L[B+4>>1];e=e&65535;k=J[B+8>>2];l=0;m=0;r=0;t=fc-16|0;fc=t;J[t+12>>2]=0;J[t+8>>2]=J[i+12>>2];J[t+4>>2]=J[i+8>>2];d=t+12|0;f=Rg(o,d);xa:{ya:{za:{if(!(f&3)|(J[t+12>>2]|f>>>0>3))break za;if(p>>>0<=(e-1&65535)>>>0)break ya;r=_c(n,2,0,e,0,d);if(J[t+12>>2])break za;m=_c(n,2,0,p,0,d);if(J[t+12>>2])break ya;g=f&2;f=f&1; +y=0;while(1){d=ee(o,t+12|0);if(J[t+12>>2])break ya;I[(y<<1)+r>>1]=d;y=y+1|0;if((e|0)!=(y|0))continue;break}Aa:{if(!f){while(1){d=ee(o,t+12|0);if(J[t+12>>2])break za;I[(l<<1)+m>>1]=d;l=l+1|0;if((e|0)!=(l|0))continue;break}break Aa}y=0;if(e-1>>>0>=3){f=e&65532;Q=0;while(1){j=l<<1;I[j+m>>1]=L[j+k>>1];d=j|2;I[d+m>>1]=L[d+k>>1];d=j|4;I[d+m>>1]=L[d+k>>1];d=j|6;I[d+m>>1]=L[d+k>>1];l=l+4|0;Q=Q+4|0;if((f|0)!=(Q|0))continue;break}}f=e&3;if(!f)break Aa;while(1){d=l<<1;I[d+m>>1]=L[d+k>>1];l=l+1|0;y=y+1|0;if((f| +0)!=(y|0))continue;break}}Ba:{if(e>>>0>=p>>>0)break Ba;if(!g){l=e;while(1){d=ee(o,t+12|0);if(J[t+12>>2])break za;I[(l<<1)+m>>1]=d;l=l+1|0;if((p|0)!=(l|0))continue;break}break Ba}j=p+(e^-1)|0;g=p-e&3;Ca:{if(!g){d=e;break Ca}l=0;d=e;while(1){f=d<<1;I[f+m>>1]=L[f+k>>1];d=d+1|0;l=l+1|0;if((g|0)!=(l|0))continue;break}}if(j>>>0<3)break Ba;while(1){g=d<<1;I[g+m>>1]=L[g+k>>1];f=g+2|0;I[f+m>>1]=L[f+k>>1];f=g+4|0;I[f+m>>1]=L[f+k>>1];f=g+6|0;I[f+m>>1]=L[f+k>>1];d=d+4|0;if((p|0)!=(d|0))continue;break}}y=0;j= +e+p<<1;l=_c(n,1,0,j,0,t+12|0);if(J[t+12>>2])break ya;g=p>>>0<=1?1:p;d=l;while(1){if(e>>>0>y>>>0){f=(y<<1)+r|0;H[d|0]=K[f+1|0];H[d+1|0]=K[f|0];d=d+2|0}f=(y<<1)+m|0;H[d|0]=K[f+1|0];H[d+1|0]=K[f|0];d=d+2|0;y=y+1|0;if((g|0)!=(y|0))continue;break}ra=i,sa=YM(l,j),J[ra+4>>2]=sa;if(w6(t+8|0,N,t+4|0,l,j,n))break ya;J[i+12>>2]=J[t+8>>2];J[i+8>>2]=J[t+4>>2];if(r)kc[J[n+8>>2]](n,r);if(m)kc[J[n+8>>2]](n,m);if(l)kc[J[n+8>>2]](n,l);d=J[t+12>>2];break xa}l=0}if(r)kc[J[n+8>>2]](n,r);if(m)kc[J[n+8>>2]](n,m);if(l)kc[J[n+ +8>>2]](n,l);d=J[t+12>>2];d=d?d:8}fc=t+16|0;if(d)break M;break O}f=J[na>>2];d=J[i+36>>2];J[f+8>>2]=d-J[f+28>>2];J[i+8>>2]=d;J[i+12>>2]=J[i+40>>2];if(q)kc[J[n+8>>2]](n,q);if(e)kc[J[n+8>>2]](n,e);l=0;break Q}l=0;r=0;C=0}J[i+12>>2]=J[i+40>>2];if(q)kc[J[n+8>>2]](n,q);if(e)kc[J[n+8>>2]](n,e)}if(C)kc[J[n+8>>2]](n,C);if(r)kc[J[n+8>>2]](n,r);if(l)kc[J[n+8>>2]](n,l);A=1;if(!J[i+44>>2])break O;break M}if((W|0)!=1751474532)break P;if(j>>>0<12)break M;e=g+qa|0;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0}g=g+z|0; +m=0;e=0;C=0;r=j&-4;if(r)while(1){C=(K[g+(e|3)|0]|(K[g+(e|1)|0]<<16|K[e+g|0]<<24|K[g+(e|2)|0]<<8))+C|0;e=e+4|0;if(r>>>0>e>>>0)continue;break}if((j|0)!=(r|0)){while(1){m=K[g+r|0]<<((r^-1)<<3)|m;r=r+1|0;if(j>>>0>r>>>0)continue;break}C=m+C|0}J[i+4>>2]=C;J[i+44>>2]=0;f=j+s|0;if(f>>>0>31457280)break M;e=J[N>>2];if(e>>>0>>0){d=_c(n,1,e,f,d,i+44|0);if(J[i+44>>2])break M;J[N>>2]=f}xc(d+s|0,g,j);J[i+12>>2]=d;J[i+8>>2]=f;if(J[i+44>>2])break M}p=J[i+4>>2];H[u+15|0]=aa;H[u+11|0]=s;H[u+7|0]=p;H[u+3|0]=W;H[u+ +14|0]=aa>>>8;H[u+13|0]=aa>>>16;H[u+12|0]=aa>>>24;H[u+10|0]=s>>>8;H[u+9|0]=s>>>16;H[u+8|0]=s>>>24;H[u+6|0]=p>>>8;H[u+5|0]=p>>>16;H[u+4|0]=p>>>24;H[u+2|0]=W>>>8;H[u+1|0]=W>>>16;H[u|0]=W>>>24;J[i+44>>2]=0;e=J[i+12>>2];f=ha+16|0;Da:{if(f>>>0>31457280){d=e;break Da}d=J[N>>2];Ea:{if(d>>>0>=f>>>0){d=e;break Ea}d=_c(n,1,d,f,e,i+44|0);if(J[i+44>>2]){d=e;break Da}J[N>>2]=f}g=K[u+4|0]|K[u+5|0]<<8|(K[u+6|0]<<16|K[u+7|0]<<24);j=d+ha|0;e=K[u|0]|K[u+1|0]<<8|(K[u+2|0]<<16|K[u+3|0]<<24);H[j|0]=e;H[j+1|0]=e>>>8;H[j+ +2|0]=e>>>16;H[j+3|0]=e>>>24;H[j+4|0]=g;H[j+5|0]=g>>>8;H[j+6|0]=g>>>16;H[j+7|0]=g>>>24;g=K[u+12|0]|K[u+13|0]<<8|(K[u+14|0]<<16|K[u+15|0]<<24);e=K[u+8|0]|K[u+9|0]<<8|(K[u+10|0]<<16|K[u+11|0]<<24);H[j+8|0]=e;H[j+9|0]=e>>>8;H[j+10|0]=e>>>16;H[j+11|0]=e>>>24;H[j+12|0]=g;H[j+13|0]=g>>>8;H[j+14|0]=g>>>16;H[j+15|0]=g>>>24;J[i+12>>2]=d;ha=f}k=K[u+12|0]|K[u+13|0]<<8|(K[u+14|0]<<16|K[u+15|0]<<24);l=K[u+8|0]|K[u+9|0]<<8|(K[u+10|0]<<16|K[u+11|0]<<24);m=K[u+4|0]|K[u+5|0]<<8|(K[u+6|0]<<16|K[u+7|0]<<24);j=K[u|0]| +K[u+1|0]<<8|(K[u+2|0]<<16|K[u+3|0]<<24);f=J[i+8>>2];H[i+42|0]=0;I[i+40>>1]=0;if(f>>>0>4294967292)break M;e=f+3&-4;Fa:{if((f|0)==(e|0)){e=f;break Fa}J[i+44>>2]=0;if(e>>>0>31457280)break M;g=J[N>>2];if(g>>>0>>0){d=_c(n,1,g,e,d,i+44|0);if(J[i+44>>2])break M;J[N>>2]=e}xc(d+f|0,i+40|0,e-f|0);if(J[i+44>>2])break M}J[i+12>>2]=d;J[i+8>>2]=e;if(s+aa>>>0>e>>>0)break M;ga=p+ga+((((m<<24|(m&65280)<<8|(m>>>8&65280|m>>>24))+(j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24))|0)+(l<<24|(l&65280)<<8|(l>>>8&65280|l>>>24))| +0)+(k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24)))|0;s=e;da=da+1|0;if((da|0)!=(R|0))continue;break}if(!R)break N;e=0;while(1){f=J[(e<<2)+w>>2];if(J[f+4>>2]!=1751474532){e=e+1|0;if((R|0)!=(e|0))continue;break N}break}J[B+20>>2]=f;if(M[f+8>>2]<12)break M;f=J[f+28>>2]+d|0;e=-1313820742-ga|0;e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[f+8|0]=e;H[f+9|0]=e>>>8;H[f+10|0]=e>>>16;H[f+11|0]=e>>>24;J[h+100>>2]=J[i+8>>2];J[h+12>>2]=d;break J}J[B+20>>2]=0}l=J[i+16>>2]}if(l)break K;J[i+16>>2]=8}J[h+12>>2]=J[i+12>>2]}if(u)kc[J[n+ +8>>2]](n,u);Ga:{if(!o)break Ga;d=J[o+24>>2];if(!d)break Ga;kc[d|0](o)}if(o)kc[J[n+8>>2]](n,o);e=J[i+16>>2]}fc=i+48|0;J[h+108>>2]=e;if(e)break f;f=J[h+12>>2];d=J[h+100>>2];e=J[h+8>>2];if(d>>>0>>0){f=_c(n,1,e,d,f,la);J[h+12>>2]=f;if(J[h+108>>2])break f;d=J[h+100>>2]}J[v+32>>2]=0;J[v+8>>2]=0;J[v+4>>2]=d;J[v>>2]=f;J[v+20>>2]=0;J[v+24>>2]=0;a=J[a+28>>2];J[v+24>>2]=1710;J[v+28>>2]=a;g8(J[b+104>>2],J[b+8>>2]>>>10&1);J[b+104>>2]=v;J[b+8>>2]=J[b+8>>2]&-1025;c=ba;break f}f=10;if(d>>>0>J[a+4>>2]>>>5>>>0)break a; +ra=b,sa=_c(ja,4,0,d,0,h),J[ra+144>>2]=sa;f=J[h>>2];if(f)break a;f=af(a,J[b+140>>2]<<2);J[h>>2]=f;if(f)break a;if(J[b+140>>2]>0){f=0;while(1){d=Fh(a);J[J[b+144>>2]+(f<<2)>>2]=d;f=f+1|0;if((f|0)>2])continue;break}}ve(a);f=J[h>>2];J[h+40>>2]=f;if(!f)break j;break a}J[b+136>>2]=65536;J[b+140>>2]=1;a=he(ja,4,h);J[b+144>>2]=a;f=J[h>>2];if(f)break a;J[a>>2]=v;J[h+40>>2]=0}k=J[b+104>>2];d=J[b+144>>2];a=c>>31;g=(a^c)-a|0;a=(g&65535)+a|0;if((a|0)>=J[b+140>>2]){f=6;if((c|0)>=0)break a;a=0}f=yd(k,J[d+ +(a<<2)>>2]);J[h+40>>2]=f;if(f)break a;f=kc[J[D+88>>2]](b,k)|0;J[h+40>>2]=f;if(f)break a;i=J[b+100>>2];Ha:{Ia:{if(kc[J[b+516>>2]](b,1719034226,k,h+16|0)|M[h+16>>2]<20)break Ia;d=h+40|0;D=Rf(k,d);if(J[h+40>>2])break Ia;v=ee(k,d);if(J[h+40>>2])break Ia;a=kg(k,2);J[h+40>>2]=a;if(a)break Ia;f=ee(k,d);if(J[h+40>>2])break Ia;s=ee(k,d);if(J[h+40>>2])break Ia;d=ee(k,d);if(J[h+40>>2])break Ia;l=ee(k,h+40|0);if(!J[h+40>>2])break Ha}D=0;v=0;f=0;s=0;d=0;l=0}w=0;a=0;Ja:{if((D|0)!=65536|(s|0)!=20|(!f|f>>>0>16382))break Ja; +e=f<<2;Ka:{if((e+4|0)!=(l|0)){if((e+6|0)!=(l|0))break Ja;if(d>>>0<=32511)break Ka;break Ja}if(d>>>0>32511)break Ja}if(M[h+16>>2]<(P(f,20)+v|0)+P(d,l)>>>0)break Ja;J[b+740>>2]=J[b+740>>2]|1;a=d}La:{if(!(H[b+740|0]&1)){e=0;break La}m=f<<2;d=h+40|0;e=he(i,m,d);if(J[h+40>>2])break La;w=he(i,m,d);if(J[h+40>>2])break La;j=(J[k+8>>2]+v|0)-16|0;if(f){D=j+8|0;v=0;d=e;while(1){ra=h,sa=YD(k,D,d,4),J[ra+40>>2]=sa;d=d+4|0;D=s+D|0;v=v+1|0;if((v|0)!=(f|0))continue;break}}Ma:{if(!a){D=0;break Ma}f=(j+P(f,s)|0)+4| +0;D=0;while(1){ra=h,sa=YD(k,f,w,m),J[ra+40>>2]=sa;if(!dd(e,w,m))break Ma;f=f+l|0;D=D+1|0;if((D|0)!=(a|0))continue;break}D=a}a=((a|0)==(D|0))+a|0}if(e)kc[J[i+8>>2]](i,e);if(w)kc[J[i+8>>2]](i,w);d=g>>>16|0;Na:{if(!(kc[J[b+516>>2]](b,1735162214,k,0)|0))break Na;if(!(kc[J[b+516>>2]](b,1128678962,k,0)|0))break Na;a=kc[J[b+516>>2]](b,1128678944,k,0)|0?a:0}Oa:{if(d>>>0>(a&65535)>>>0){if((c|0)>=0)break Oa;a=0}J[b+12>>2]=a<<16;J[b+4>>2]=c;J[b>>2]=J[b+140>>2];if(fa)J[b>>2]=fa;f=J[h+40>>2];break a}f=6;break a}J[h+ +108>>2]=8;break f}J[h+108>>2]=8;break f}J[h+108>>2]=8}if(ea)kc[J[n+8>>2]](n,ea);if(w)kc[J[n+8>>2]](n,w);if(z)kc[J[n+8>>2]](n,z);a=J[h+24>>2];if(a)kc[J[n+8>>2]](n,a);a=J[h+104>>2];if(a){f=0;if(L[h+96>>1]){while(1){d=J[a+8>>2];if(d)kc[J[n+8>>2]](n,d);J[a+8>>2]=0;a=a+12|0;f=f+1|0;if(f>>>0>1])continue;break}a=J[h+104>>2]}if(a)kc[J[n+8>>2]](n,a);J[h+104>>2]=0}if(!J[h+108>>2]){J[h>>2]=0;break b}a=J[h+12>>2];if(a)kc[J[n+8>>2]](n,a);if(v){Pa:{if(!v)break Pa;a=J[v+24>>2];if(!a)break Pa;kc[a|0](v)}if(v)kc[J[n+ +8>>2]](n,v)}f=J[h+108>>2];break c}if(!(J[h+56>>2]==(d|0)&(e|0)==(w|0))){J[h+16>>2]=8;break d}z=_c(t,1,g,d,z,h+16|0);if(J[h+16>>2])break d;if(L[h+52>>1]){d=z+12|0;e=0;while(1){p=P(e,24)+v|0;H[d|0]=K[p+3|0];H[d+1|0]=L[p+2>>1];H[d+2|0]=J[p>>2]>>>8;H[d+3|0]=J[p>>2];H[d+4|0]=K[p+19|0];H[d+5|0]=L[p+18>>1];H[d+6|0]=J[p+16>>2]>>>8;H[d+7|0]=J[p+16>>2];H[d+8|0]=K[p+23|0];H[d+9|0]=L[p+22>>1];H[d+10|0]=J[p+20>>2]>>>8;H[d+11|0]=J[p+20>>2];H[d+12|0]=K[p+15|0];H[d+13|0]=L[p+14>>1];H[d+14|0]=J[p+12>>2]>>>8;H[d+15| +0]=J[p+12>>2];g=yd(a,J[p+4>>2]);J[h+16>>2]=g;if(g)break d;g=af(a,J[p+8>>2]);J[h+16>>2]=g;if(g)break d;Qa:{s=J[p+8>>2];g=J[p+12>>2];if((s|0)==(g|0)){xc(J[p+20>>2]+z|0,J[a+32>>2],s);break Qa}J[h+108>>2]=g;i=h+108|0;j=J[a+32>>2];k=fc+-64|0;fc=k;m=6;g=J[p+20>>2]+z|0;Ra:{if(!i|(!g|!t))break Ra;J[k+20>>2]=g;J[k+12>>2]=s;J[k+8>>2]=j;g=J[i>>2];J[k+48>>2]=t;J[k+44>>2]=1658;J[k+40>>2]=1659;J[k+24>>2]=g;g=k+8|0;if(rL(g,47,239673))break Ra;j=Vk(g,4);Sa:{if((j|0)!=1){Jl(g);if(j)break Sa;m=10;break Ra}J[i>>2]= +J[k+28>>2];j=Jl(k+8|0)}m=0;g=j+5|0;if(g>>>0>2)break Ra;m=J[(g<<2)+259992>>2]}fc=k- -64|0;J[h+16>>2]=m;if(!m){if(J[h+108>>2]==J[p+12>>2])break Qa;J[h+16>>2]=8}ve(a);break d}ve(a);m=J[p+12>>2];j=J[p+20>>2];g=m+j|0;if(g&3)Ac(g+z|0,0,((m^-1)-j&3)+1|0);d=d+16|0;e=e+1|0;if(e>>>0>1])continue;break}}d=J[h+56>>2];J[l+32>>2]=0;J[l+8>>2]=0;J[l+4>>2]=d;J[l>>2]=z;J[l+20>>2]=0;J[l+24>>2]=0;a=J[a+28>>2];J[l+24>>2]=1711;J[l+28>>2]=a;g8(J[b+104>>2],J[b+8>>2]>>>10&1);J[b+104>>2]=l;J[b+8>>2]=J[b+8>>2]&-1025}if(v)kc[J[t+ +8>>2]](t,v);if(f)kc[J[t+8>>2]](t,f);if(!J[h+16>>2]){J[h>>2]=0;break b}if(z)kc[J[t+8>>2]](t,z);Ta:{if(!l)break Ta;a=J[l+24>>2];if(!a)break Ta;kc[a|0](l)}if(l)kc[J[t+8>>2]](t,l);f=J[h+16>>2]}J[h>>2]=f;if(f)break a}a=J[b+104>>2];v=J[a+8>>2];d=Rf(a,h);f=J[h>>2];if(!f)continue;break}}fc=h+112|0;return f|0}function yna(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;J[699344]=0;b=_(4,20)|0;c=J[699344];J[699344]=0;if((c|0)!=1)a:{I[b+8>>1]=0;J[b+4>>2]=a;J[b>>2]=a;J[b+12>>2]=0;J[b+16>>2]=127;J[a+ +8>>2]=1;J[a>>2]=b;J[a+4>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=256;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=128;J[c+16>>2]=255;J[b+4>>2]=c;J[a+8>>2]=2;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=512;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=256;J[b+16>>2]=383;J[c+4>>2]=b;J[a+8>>2]=3;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=768;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=384;J[c+16>>2]=591;J[b+ +4>>2]=c;J[a+8>>2]=4;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1024;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=592;J[b+16>>2]=687;J[c+4>>2]=b;J[a+8>>2]=5;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1024;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=7424;J[c+16>>2]=7551;J[b+4>>2]=c;J[a+8>>2]=6;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1024;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=7552;J[b+16>>2]= +7615;J[c+4>>2]=b;J[a+8>>2]=7;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1280;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=688;J[c+16>>2]=767;J[b+4>>2]=c;J[a+8>>2]=8;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1280;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=42752;J[b+16>>2]=42783;J[c+4>>2]=b;J[a+8>>2]=9;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1536;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=768; +J[c+16>>2]=879;J[b+4>>2]=c;J[a+8>>2]=10;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1536;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=7616;J[b+16>>2]=7679;J[c+4>>2]=b;J[a+8>>2]=11;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1792;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=880;J[c+16>>2]=1023;J[b+4>>2]=c;J[a+8>>2]=12;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2048;J[b+4>>2]=a;J[b>>2]=c;J[b+ +12>>2]=11392;J[b+16>>2]=11519;J[c+4>>2]=b;J[a+8>>2]=13;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2304;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1024;J[c+16>>2]=1279;J[b+4>>2]=c;J[a+8>>2]=14;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2304;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1280;J[b+16>>2]=1327;J[c+4>>2]=b;J[a+8>>2]=15;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2304;J[c+4>>2]= +a;J[c>>2]=b;J[c+12>>2]=11744;J[c+16>>2]=11775;J[b+4>>2]=c;J[a+8>>2]=16;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2304;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=42560;J[b+16>>2]=42655;J[c+4>>2]=b;J[a+8>>2]=17;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2560;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1328;J[c+16>>2]=1423;J[b+4>>2]=c;J[a+8>>2]=18;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>> +1]=2816;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1424;J[b+16>>2]=1535;J[c+4>>2]=b;J[a+8>>2]=19;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=3072;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=42240;J[c+16>>2]=42559;J[b+4>>2]=c;J[a+8>>2]=20;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3328;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1536;J[b+16>>2]=1791;J[c+4>>2]=b;J[a+8>>2]=21;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)== +1)break a;I[c+8>>1]=3328;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1872;J[c+16>>2]=1919;J[b+4>>2]=c;J[a+8>>2]=22;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3584;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1984;J[b+16>>2]=2047;J[c+4>>2]=b;J[a+8>>2]=23;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=3840;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=2304;J[c+16>>2]=2431;J[b+4>>2]=c;J[a+8>>2]=24;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break a;I[b+8>>1]=4096;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=2432;J[b+16>>2]=2559;J[c+4>>2]=b;J[a+8>>2]=25;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4352;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=2560;J[c+16>>2]=2687;J[b+4>>2]=c;J[a+8>>2]=26;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=4608;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=2688;J[b+16>>2]=2815;J[c+4>>2]=b;J[a+8>>2]=27;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4864;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=2816;J[c+16>>2]=2943;J[b+4>>2]=c;J[a+8>>2]=28;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=5120;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=2944;J[b+16>>2]=3071;J[c+4>>2]=b;J[a+8>>2]=29;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5376;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=3072;J[c+16>>2]=3199;J[b+4>>2]=c;J[a+8>>2]=30;J[a>>2]=c;J[699344]=0;b=_(4,20)| +0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=5632;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=3200;J[b+16>>2]=3327;J[c+4>>2]=b;J[a+8>>2]=31;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5888;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=3328;J[c+16>>2]=3455;J[b+4>>2]=c;J[a+8>>2]=32;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6144;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=3584;J[b+16>>2]=3711;J[c+4>>2]=b;J[a+8>>2]=33;J[a>>2]=b;J[699344]= +0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6400;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=3712;J[c+16>>2]=3839;J[b+4>>2]=c;J[a+8>>2]=34;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6656;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=4256;J[b+16>>2]=4351;J[c+4>>2]=b;J[a+8>>2]=35;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6656;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=11520;J[c+16>>2]=11567;J[b+4>>2]=c;J[a+8>>2]=36;J[a>> +2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6912;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=6912;J[b+16>>2]=7039;J[c+4>>2]=b;J[a+8>>2]=37;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7168;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=4352;J[c+16>>2]=4607;J[b+4>>2]=c;J[a+8>>2]=38;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=7424;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=7680;J[b+16>>2]=7935;J[c+4>>2]=b;J[a+ +8>>2]=39;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7424;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=11360;J[c+16>>2]=11391;J[b+4>>2]=c;J[a+8>>2]=40;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=7424;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=42784;J[b+16>>2]=43007;J[c+4>>2]=b;J[a+8>>2]=41;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7680;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=7936;J[c+16>>2]=8191; +J[b+4>>2]=c;J[a+8>>2]=42;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=7936;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=8192;J[b+16>>2]=8303;J[c+4>>2]=b;J[a+8>>2]=43;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7936;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=11776;J[c+16>>2]=11903;J[b+4>>2]=c;J[a+8>>2]=44;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=8304;J[b+ +16>>2]=8351;J[c+4>>2]=b;J[a+8>>2]=45;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=257;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8352;J[c+16>>2]=8399;J[b+4>>2]=c;J[a+8>>2]=46;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=513;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=8400;J[b+16>>2]=8447;J[c+4>>2]=b;J[a+8>>2]=47;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=769;J[c+4>>2]=a;J[c>>2]=b;J[c+12>> +2]=8448;J[c+16>>2]=8527;J[b+4>>2]=c;J[a+8>>2]=48;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1025;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=8528;J[b+16>>2]=8591;J[c+4>>2]=b;J[a+8>>2]=49;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1281;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8592;J[c+16>>2]=8703;J[b+4>>2]=c;J[a+8>>2]=50;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1281;J[b+4>>2]=a;J[b>> +2]=c;J[b+12>>2]=10224;J[b+16>>2]=10239;J[c+4>>2]=b;J[a+8>>2]=51;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1281;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=10496;J[c+16>>2]=10623;J[b+4>>2]=c;J[a+8>>2]=52;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1281;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11008;J[b+16>>2]=11263;J[c+4>>2]=b;J[a+8>>2]=53;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1537; +J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8704;J[c+16>>2]=8959;J[b+4>>2]=c;J[a+8>>2]=54;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1537;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=10752;J[b+16>>2]=11007;J[c+4>>2]=b;J[a+8>>2]=55;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1537;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=10176;J[c+16>>2]=10223;J[b+4>>2]=c;J[a+8>>2]=56;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a; +I[b+8>>1]=1537;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=10624;J[b+16>>2]=10751;J[c+4>>2]=b;J[a+8>>2]=57;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1793;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=8960;J[c+16>>2]=9215;J[b+4>>2]=c;J[a+8>>2]=58;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2049;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=9216;J[b+16>>2]=9279;J[c+4>>2]=b;J[a+8>>2]=59;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break a;I[c+8>>1]=2305;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=9280;J[c+16>>2]=9311;J[b+4>>2]=c;J[a+8>>2]=60;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2561;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=9312;J[b+16>>2]=9471;J[c+4>>2]=b;J[a+8>>2]=61;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2817;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=9472;J[c+16>>2]=9599;J[b+4>>2]=c;J[a+8>>2]=62;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break a;I[b+8>>1]=3073;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=9600;J[b+16>>2]=9631;J[c+4>>2]=b;J[a+8>>2]=63;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=3329;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=9632;J[c+16>>2]=9727;J[b+4>>2]=c;J[a+8>>2]=64;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3585;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=9728;J[b+16>>2]=9983;J[c+4>>2]=b;J[a+8>>2]=65;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=3841;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=9984;J[c+16>>2]=10175;J[b+4>>2]=c;J[a+8>>2]=66;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=4097;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12288;J[b+16>>2]=12351;J[c+4>>2]=b;J[a+8>>2]=67;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4353;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12352;J[c+16>>2]=12447;J[b+4>>2]=c;J[a+8>>2]=68;J[a>>2]=c;J[699344]=0;b=_(4, +20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=4609;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12448;J[b+16>>2]=12543;J[c+4>>2]=b;J[a+8>>2]=69;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4609;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12784;J[c+16>>2]=12799;J[b+4>>2]=c;J[a+8>>2]=70;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=4865;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12544;J[b+16>>2]=12591;J[c+4>>2]=b;J[a+8>>2]=71;J[a>>2]= +b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4865;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12704;J[c+16>>2]=12735;J[b+4>>2]=c;J[a+8>>2]=72;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=5121;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12592;J[b+16>>2]=12687;J[c+4>>2]=b;J[a+8>>2]=73;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5377;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=43072;J[c+16>>2]=43135;J[b+4>>2]=c; +J[a+8>>2]=74;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=5633;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12800;J[b+16>>2]=13055;J[c+4>>2]=b;J[a+8>>2]=75;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5889;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=13056;J[c+16>>2]=13311;J[b+4>>2]=c;J[a+8>>2]=76;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6145;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=44032;J[b+16>> +2]=55215;J[c+4>>2]=b;J[a+8>>2]=77;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6401;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65536;J[c+16>>2]=1114111;J[b+4>>2]=c;J[a+8>>2]=78;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6657;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=67840;J[b+16>>2]=67871;J[c+4>>2]=b;J[a+8>>2]=79;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6913;J[c+4>>2]=a;J[c>>2]=b;J[c+ +12>>2]=19968;J[c+16>>2]=40959;J[b+4>>2]=c;J[a+8>>2]=80;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6913;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11904;J[b+16>>2]=12031;J[c+4>>2]=b;J[a+8>>2]=81;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6913;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12032;J[c+16>>2]=12255;J[b+4>>2]=c;J[a+8>>2]=82;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6913;J[b+4>> +2]=a;J[b>>2]=c;J[b+12>>2]=12272;J[b+16>>2]=12287;J[c+4>>2]=b;J[a+8>>2]=83;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6913;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=13312;J[c+16>>2]=19903;J[b+4>>2]=c;J[a+8>>2]=84;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6913;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=12688;J[b+16>>2]=12703;J[c+4>>2]=b;J[a+8>>2]=85;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+ +8>>1]=6913;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=131072;J[c+16>>2]=173791;J[b+4>>2]=c;J[a+8>>2]=86;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=7169;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=57344;J[b+16>>2]=63743;J[c+4>>2]=b;J[a+8>>2]=87;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7425;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=12736;J[c+16>>2]=12783;J[b+4>>2]=c;J[a+8>>2]=88;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break a;I[b+8>>1]=7425;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=63744;J[b+16>>2]=64255;J[c+4>>2]=b;J[a+8>>2]=89;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7425;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=194560;J[c+16>>2]=195103;J[b+4>>2]=c;J[a+8>>2]=90;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=7681;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=64256;J[b+16>>2]=64335;J[c+4>>2]=b;J[a+8>>2]=91;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7937;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=64336;J[c+16>>2]=65023;J[b+4>>2]=c;J[a+8>>2]=92;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65056;J[b+16>>2]=65071;J[c+4>>2]=b;J[a+8>>2]=93;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=258;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65040;J[c+16>>2]=65055;J[b+4>>2]=c;J[a+8>>2]=94;J[a>>2]=c;J[699344]=0;b=_(4,20)| +0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=258;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65072;J[b+16>>2]=65103;J[c+4>>2]=b;J[a+8>>2]=95;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=514;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65104;J[c+16>>2]=65135;J[b+4>>2]=c;J[a+8>>2]=96;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=770;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65136;J[b+16>>2]=65279;J[c+4>>2]=b;J[a+8>>2]=97;J[a>>2]=b;J[699344]= +0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1026;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65280;J[c+16>>2]=65519;J[b+4>>2]=c;J[a+8>>2]=98;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1282;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65520;J[b+16>>2]=65535;J[c+4>>2]=b;J[a+8>>2]=99;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1538;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=3840;J[c+16>>2]=4095;J[b+4>>2]=c;J[a+8>>2]=100; +J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1794;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=1792;J[b+16>>2]=1871;J[c+4>>2]=b;J[a+8>>2]=101;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2050;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1920;J[c+16>>2]=1983;J[b+4>>2]=c;J[a+8>>2]=102;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2306;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=3456;J[b+16>>2]=3583;J[c+4>>2]= +b;J[a+8>>2]=103;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2562;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=4096;J[c+16>>2]=4255;J[b+4>>2]=c;J[a+8>>2]=104;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2818;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=4608;J[b+16>>2]=4991;J[c+4>>2]=b;J[a+8>>2]=105;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2818;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=4992;J[c+16>> +2]=5023;J[b+4>>2]=c;J[a+8>>2]=106;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2818;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11648;J[b+16>>2]=11743;J[c+4>>2]=b;J[a+8>>2]=107;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=3074;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=5024;J[c+16>>2]=5119;J[b+4>>2]=c;J[a+8>>2]=108;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3330;J[b+4>>2]=a;J[b>>2]=c;J[b+ +12>>2]=5120;J[b+16>>2]=5759;J[c+4>>2]=b;J[a+8>>2]=109;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=3586;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=5760;J[c+16>>2]=5791;J[b+4>>2]=c;J[a+8>>2]=110;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3842;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=5792;J[b+16>>2]=5887;J[c+4>>2]=b;J[a+8>>2]=111;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4098;J[c+4>>2]= +a;J[c>>2]=b;J[c+12>>2]=6016;J[c+16>>2]=6143;J[b+4>>2]=c;J[a+8>>2]=112;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=4098;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=6624;J[b+16>>2]=6655;J[c+4>>2]=b;J[a+8>>2]=113;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4354;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=6144;J[c+16>>2]=6319;J[b+4>>2]=c;J[a+8>>2]=114;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>> +1]=4610;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=10240;J[b+16>>2]=10495;J[c+4>>2]=b;J[a+8>>2]=115;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4866;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=40960;J[c+16>>2]=42127;J[b+4>>2]=c;J[a+8>>2]=116;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=4866;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=42128;J[b+16>>2]=42191;J[c+4>>2]=b;J[a+8>>2]=117;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break a;I[c+8>>1]=5122;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=5888;J[c+16>>2]=5919;J[b+4>>2]=c;J[a+8>>2]=118;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=5122;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=5920;J[b+16>>2]=5951;J[c+4>>2]=b;J[a+8>>2]=119;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5122;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=5952;J[c+16>>2]=5983;J[b+4>>2]=c;J[a+8>>2]=120;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=5122;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=5984;J[b+16>>2]=6015;J[c+4>>2]=b;J[a+8>>2]=121;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5378;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66304;J[c+16>>2]=66351;J[b+4>>2]=c;J[a+8>>2]=122;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=5634;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=66352;J[b+16>>2]=66383;J[c+4>>2]=b;J[a+8>>2]=123;J[a>>2]=b;J[699344]=0;c= +_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5890;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66560;J[c+16>>2]=66639;J[b+4>>2]=c;J[a+8>>2]=124;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6146;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=118784;J[b+16>>2]=119039;J[c+4>>2]=b;J[a+8>>2]=125;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6146;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=119040;J[c+16>>2]=119295;J[b+4>>2]=c;J[a+8>>2]= +126;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6146;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=119296;J[b+16>>2]=119375;J[c+4>>2]=b;J[a+8>>2]=127;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6402;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=119808;J[c+16>>2]=120831;J[b+4>>2]=c;J[a+8>>2]=128;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6658;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=983040;J[b+16>>2]= +1048573;J[c+4>>2]=b;J[a+8>>2]=129;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6658;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=1048576;J[c+16>>2]=1114109;J[b+4>>2]=c;J[a+8>>2]=130;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6914;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65024;J[b+16>>2]=65039;J[c+4>>2]=b;J[a+8>>2]=131;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6914;J[c+4>>2]=a;J[c>>2]= +b;J[c+12>>2]=917760;J[c+16>>2]=917999;J[b+4>>2]=c;J[a+8>>2]=132;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=7170;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=917504;J[b+16>>2]=917631;J[c+4>>2]=b;J[a+8>>2]=133;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7426;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=6400;J[c+16>>2]=6479;J[b+4>>2]=c;J[a+8>>2]=134;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]= +7682;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=6480;J[b+16>>2]=6527;J[c+4>>2]=b;J[a+8>>2]=135;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=7938;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=6528;J[c+16>>2]=6623;J[b+4>>2]=c;J[a+8>>2]=136;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=6656;J[b+16>>2]=6687;J[c+4>>2]=b;J[a+8>>2]=137;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a; +I[c+8>>1]=259;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=11264;J[c+16>>2]=11359;J[b+4>>2]=c;J[a+8>>2]=138;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=515;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=11568;J[b+16>>2]=11647;J[c+4>>2]=b;J[a+8>>2]=139;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=771;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=19904;J[c+16>>2]=19967;J[b+4>>2]=c;J[a+8>>2]=140;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0; +if((d|0)==1)break a;I[b+8>>1]=1027;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=43008;J[b+16>>2]=43055;J[c+4>>2]=b;J[a+8>>2]=141;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1283;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65536;J[c+16>>2]=65663;J[b+4>>2]=c;J[a+8>>2]=142;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1283;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65664;J[b+16>>2]=65791;J[c+4>>2]=b;J[a+8>>2]=143;J[a>>2]=b;J[699344]=0;c=_(4,20)|0; +d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1283;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=65792;J[c+16>>2]=65855;J[b+4>>2]=c;J[a+8>>2]=144;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=1539;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65856;J[b+16>>2]=65935;J[c+4>>2]=b;J[a+8>>2]=145;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=1795;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66432;J[c+16>>2]=66463;J[b+4>>2]=c;J[a+8>>2]=146;J[a>>2]=c; +J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2051;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=66464;J[b+16>>2]=66527;J[c+4>>2]=b;J[a+8>>2]=147;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2307;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66640;J[c+16>>2]=66687;J[b+4>>2]=c;J[a+8>>2]=148;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=2563;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=66688;J[b+16>>2]=66735;J[c+4>>2]=b; +J[a+8>>2]=149;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=2819;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=67584;J[c+16>>2]=67647;J[b+4>>2]=c;J[a+8>>2]=150;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3075;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=68096;J[b+16>>2]=68191;J[c+4>>2]=b;J[a+8>>2]=151;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=3331;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=119552;J[c+ +16>>2]=119647;J[b+4>>2]=c;J[a+8>>2]=152;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3587;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=73728;J[b+16>>2]=74751;J[c+4>>2]=b;J[a+8>>2]=153;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=3587;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=74752;J[c+16>>2]=74879;J[b+4>>2]=c;J[a+8>>2]=154;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=3843;J[b+4>>2]=a;J[b>>2]= +c;J[b+12>>2]=119648;J[b+16>>2]=119679;J[c+4>>2]=b;J[a+8>>2]=155;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4099;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=7040;J[c+16>>2]=7103;J[b+4>>2]=c;J[a+8>>2]=156;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=4355;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=7168;J[b+16>>2]=7247;J[c+4>>2]=b;J[a+8>>2]=157;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=4611; +J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=7248;J[c+16>>2]=7295;J[b+4>>2]=c;J[a+8>>2]=158;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=4867;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=43136;J[b+16>>2]=43231;J[c+4>>2]=b;J[a+8>>2]=159;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5123;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=43264;J[c+16>>2]=43311;J[b+4>>2]=c;J[a+8>>2]=160;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a; +I[b+8>>1]=5379;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=43312;J[b+16>>2]=43359;J[c+4>>2]=b;J[a+8>>2]=161;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=5635;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=43520;J[c+16>>2]=43615;J[b+4>>2]=c;J[a+8>>2]=162;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=5891;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=65936;J[b+16>>2]=65999;J[c+4>>2]=b;J[a+8>>2]=163;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break a;I[c+8>>1]=6147;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66E3;J[c+16>>2]=66047;J[b+4>>2]=c;J[a+8>>2]=164;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6403;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=66208;J[b+16>>2]=66271;J[c+4>>2]=b;J[a+8>>2]=165;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6403;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=66176;J[c+16>>2]=66207;J[b+4>>2]=c;J[a+8>>2]=166;J[a>>2]=c;J[699344]=0;b=_(4,20)|0; +d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6403;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=67872;J[b+16>>2]=67903;J[c+4>>2]=b;J[a+8>>2]=167;J[a>>2]=b;J[699344]=0;c=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[c+8>>1]=6659;J[c+4>>2]=a;J[c>>2]=b;J[c+12>>2]=127024;J[c+16>>2]=127135;J[b+4>>2]=c;J[a+8>>2]=168;J[a>>2]=c;J[699344]=0;b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;I[b+8>>1]=6659;J[b+4>>2]=a;J[b>>2]=c;J[b+12>>2]=126976;J[b+16>>2]=127023;J[c+4>>2]=b;J[a+8>>2]=169;J[a>>2]= +b;return a|0}b=Z()|0;Am(a);ba(b|0);B()}function Qaa(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,N=0,O=0,Q=0,R=0;r=kd(1,24);if(!r)return 0;H[r|0]=1;a:{e=kd(1,104);if(e){J[e>>2]=r;b:{c=kd(1,56);if(c){J[c>>2]=r;k=kd(1,1876);J[c+36>>2]=k;if(k)break b;uc(c)}J[r+20>>2]=1;TO(e);uc(r);return 0}J[e+4>>2]=c;J[r+8>>2]=c;J[r+16>>2]=e;J[r+4>>2]=3;if(b){k=kd(1,96);if(!k)break a;J[k+12>>2]=J[b>>2];J[k+16>> +2]=J[b+4>>2];J[k+20>>2]=J[b+8>>2];J[c+44>>2]=k}p=fc-32|0;fc=p;c:{b=e;c=a;if(!e|!c)break c;e=kc[J[J[c>>2]+36>>2]](c)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;k=kc[J[J[c>>2]+20>>2]](c,4)|0;d:{e:switch(a|0){case 1:a=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break d;a=kc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break d;a=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break d;case 0:break e;default:break d}a=kc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}if((k|0)!=1783636E3)break c;if((kc[J[J[c>>2]+20>>2]](c,4)|0)!=218793738)break c;if(((kc[J[J[c>>2]+36>> +2]](c)|0)-e|0)!=(a|0))break c;k=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;f:{g:switch(d|0){case 1:d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break f;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break f;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break f;case 0:break g;default:break f}e=kc[J[J[c>>2]+40>>2]](c)|0;d=e?e+8|0:0}if((a|0)!=1718909296)break c;O=b,Q=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+8>>2]=Q;e=kc[J[J[c>>2]+20>>2]](c,4)|0;a=(d-16|0)/4|0;J[b+16>>2]=a;J[b+12>>2]=e;O=b,Q=kd(1,a<< +2),J[O+20>>2]=Q;if((d|0)>=20)while(1){g=kc[J[J[c>>2]+20>>2]](c,4)|0;e=a-1|0;J[J[b+20>>2]+(e<<2)>>2]=g;g=(a|0)>1;a=e;if(g)continue;break}if(((kc[J[J[c>>2]+36>>2]](c)|0)-k|0)!=(d|0))break c;e=kc[J[J[c>>2]+36>>2]](c)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;h:{i:switch(a|0){case 1:a=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break h;a=kc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break h;a=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break h;case 0:break i;default:break h}a=kc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}g= +0;while(1){j:{k:{l:{m:{n:{o:{p:{q:{if((d|0)<=1836019557){if((d|0)==1718773093)break l;if((d|0)!=1835295092)break m;e=kc[J[J[c>>2]+36>>2]](c)|0;kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;k=kc[J[J[c>>2]+20>>2]](c,4)|0;switch(d|0){case 0:break p;case 1:break q;default:break o}}switch(d-1836019558|0){case 16:break k;case 0:break l;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break m;default:break n}}d=1;if(kc[J[J[c>>2]+20>> +2]](c,4)|0)break o;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break o;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break o}g=kc[J[J[c>>2]+40>>2]](c)|0;d=(g|0)>0?g+8|0:0}r:{if((k|0)==1785737827)break r;kc[J[J[c>>2]+24>>2]](c,d-8|0);if((kc[J[J[c>>2]+40>>2]](c)|0)<0)break c;kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;k=kc[J[J[c>>2]+20>>2]](c,4)|0;s:{t:switch(d|0){case 0:g=kc[J[J[c>>2]+40>>2]](c)|0;if((g|0)<=0)break c;d=g+8|0;break s;case 1:break t;default:break s}if(kc[J[J[c>>2]+20>>2]](c,4)|0)break c;d=kc[J[J[c>> +2]+20>>2]](c,4)|0;if(d)break s;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0}if((k|0)==1785737827)break r;while(1){kc[J[J[c>>2]+24>>2]](c,d-8|0);if((kc[J[J[c>>2]+40>>2]](c)|0)<0)break c;kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;k=kc[J[J[c>>2]+20>>2]](c,4)|0;u:{v:switch(d|0){case 1:if(kc[J[J[c>>2]+20>>2]](c,4)|0)break c;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break u;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break u;case 0:break v;default:break u}g=kc[J[J[c>>2]+40>>2]](c)|0;if((g|0)<=0)break c;d=g+8|0}if((k| +0)!=1785737827)continue;break}}kc[J[J[c>>2]+36>>2]](c)|0;g=UO(J[b+4>>2],c);if(!g)break c;Q=c,R=(a+e-kc[J[J[c>>2]+36>>2]](c)|0)-8|0,O=J[J[c>>2]+24>>2],kc[O](Q|0,R|0);if((kc[J[J[c>>2]+40>>2]](c)|0)>=0)break j;break c}if((d|0)==1936419184)break l}kc[J[J[c>>2]+24>>2]](c,a);if((kc[J[J[c>>2]+40>>2]](c)|0)<0)break c;break j}kc[J[J[c>>2]+24>>2]](c,a);if((kc[J[J[c>>2]+40>>2]](c)|0)>=0)break j;break c}J[p+28>>2]=e;J[p+16>>2]=e;J[p+24>>2]=1836019574;J[p+20>>2]=a;a=J[p+24>>2];J[p+8>>2]=J[p+20>>2];J[p+12>>2]= +a;B=g;k=b;w:{if(J[p+12>>2]!=1836019574)break w;a=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;x:{y:switch(d|0){case 1:d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break x;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break x;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break x;case 0:break y;default:break x}e=kc[J[J[c>>2]+40>>2]](c)|0;d=e?e+8|0:0}if((b|0)!=1836476516)break w;kc[J[J[c>>2]+20>>2]](c,4)|0;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+24>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+ +28>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+32>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+36>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+40>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+56>>2]=R;kc[J[J[c>>2]+24>>2]](c,10);O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+60>>2]=R;O=k- -64|0,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+68>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+72>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+76>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+ +80>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+84>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+88>>2]=R;O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+92>>2]=R;kc[J[J[c>>2]+24>>2]](c,24);O=k,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+96>>2]=R;if(((kc[J[J[c>>2]+36>>2]](c)|0)-a|0)!=(d|0))break w;f=1;O=k,R=kd(1,P(J[k+96>>2],384)-384|0),J[O+100>>2]=R;if(((kc[J[J[c>>2]+36>>2]](c)|0)-J[p+16>>2]|0)>=J[p+8>>2])break w;z:{while(1){e=J[k+100>>2]+P(y,384)|0;J[e>>2]=J[k>>2];a=kc[J[J[c>>2]+36>>2]](c)|0;f=kc[J[J[c>>2]+20>>2]](c, +4)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;A:{B:switch(f|0){case 1:f=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break A;f=kc[J[J[c>>2]+20>>2]](c,4)|0;if(f)break A;f=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break A;case 0:break B;default:break A}f=kc[J[J[c>>2]+40>>2]](c)|0;f=f?f+8|0:0}C:{if((b|0)!=1836475768){f=0;if((b|0)!=1953653099)break w;kc[J[J[c>>2]+28>>2]](c,a);C=kc[J[J[c>>2]+36>>2]](c)|0;t=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;D:{E:switch(t|0){case 1:t=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break D;t=kc[J[J[c>> +2]+20>>2]](c,4)|0;if(t)break D;t=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break D;case 0:break E;default:break D}b=kc[J[J[c>>2]+40>>2]](c)|0;t=b?b+8|0:0}if((a|0)!=1953653099)break w;a=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;F:{G:switch(d|0){case 1:d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break F;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break F;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break F;case 0:break G;default:break F}g=kc[J[J[c>>2]+40>>2]](c)|0;d=g?g+8|0:0}if((b|0)!=1953196132)break w; +if(kc[J[J[c>>2]+20>>2]](c,1)|0)break w;if((kc[J[J[c>>2]+20>>2]](c,3)|0)-1>>>0>3)break w;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+12>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+16>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+4>>2]=R;kc[J[J[c>>2]+24>>2]](c,4);O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+20>>2]=R;kc[J[J[c>>2]+24>>2]](c,8);O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+28>>2]=R;kc[J[J[c>>2]+20>>2]](c,2)|0;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+32>>2]=R;kc[J[J[c>>2]+24>>2]](c,2);O=e,R=kc[J[J[c>>2]+20>>2]](c, +4)|0,J[O+204>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+208>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+212>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+216>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+220>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+224>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+228>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+232>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+236>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+112>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+116>>2]=R;if(((kc[J[J[c>> +2]+36>>2]](c)|0)-a|0)!=(d|0))break w;D=kc[J[J[c>>2]+36>>2]](c)|0;u=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;H:{I:switch(u|0){case 1:u=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break H;u=kc[J[J[c>>2]+20>>2]](c,4)|0;if(u)break H;u=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break H;case 0:break I;default:break H}b=kc[J[J[c>>2]+40>>2]](c)|0;u=b?b+8|0:0}if((a|0)!=1835297121)break w;b=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;J:{K:switch(d|0){case 1:d=1;if(kc[J[J[c>> +2]+20>>2]](c,4)|0)break J;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break J;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break J;case 0:break K;default:break J}g=kc[J[J[c>>2]+40>>2]](c)|0;d=g?g+8|0:0}if(!((a|0)!=1835558002&(a|0)!=1835296868)){if(kc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break w;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+12>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+16>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+24>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+20>>2]=R;O=e,R=kc[J[J[c>> +2]+20>>2]](c,2)|0,J[O+36>>2]=R;kc[J[J[c>>2]+24>>2]](c,2);if(((kc[J[J[c>>2]+36>>2]](c)|0)-b|0)!=(d|0))break w}a=kc[J[J[c>>2]+36>>2]](c)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;g=kc[J[J[c>>2]+20>>2]](c,4)|0;L:{M:switch(b|0){case 1:b=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break L;b=kc[J[J[c>>2]+20>>2]](c,4)|0;if(b)break L;b=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break L;case 0:break M;default:break L}b=kc[J[J[c>>2]+40>>2]](c)|0;b=b?b+8|0:0}if((g|0)!=1751411826)break w;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(kc[J[J[c>> +2]+20>>2]](c,3)|0)break w;kc[J[J[c>>2]+24>>2]](c,4);O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+248>>2]=R;kc[J[J[c>>2]+24>>2]](c,12);g=b-32|0;J[e+252>>2]=g;O=e,R=kd(1,g),J[O+284>>2]=R;if((b|0)>=33)while(1){g=kc[J[J[c>>2]+20>>2]](c,1)|0;H[J[e+284>>2]+f|0]=g;f=f+1|0;if((f|0)>2])continue;break}if(((kc[J[J[c>>2]+36>>2]](c)|0)-a|0)!=(b|0))break z;E=kc[J[J[c>>2]+36>>2]](c)|0;v=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;N:{O:switch(v|0){case 1:v=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break N; +v=kc[J[J[c>>2]+20>>2]](c,4)|0;if(v)break N;v=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break N;case 0:break O;default:break N}b=kc[J[J[c>>2]+40>>2]](c)|0;v=b?b+8|0:0}if((a|0)!=1835626086)break z;kc[J[J[c>>2]+24>>2]](c,4);a=kc[J[J[c>>2]+20>>2]](c,4)|0;kc[J[J[c>>2]+24>>2]](c,-8);P:{if((a|0)!=1752000612){if((a|0)!=1936549988){if((a|0)!=1986881636)break z;a=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;Q:{R:switch(d|0){case 1:d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break Q;d= +kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break Q;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Q;case 0:break R;default:break Q}f=kc[J[J[c>>2]+40>>2]](c)|0;d=f?f+8|0:0}if((b|0)!=1986881636)break z;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break z;if((kc[J[J[c>>2]+20>>2]](c,3)|0)!=1)break z;f=0;J[e+8>>2]=0;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+64>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+68>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+72>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+76>>2]=R;if(((kc[J[J[c>>2]+36>>2]](c)|0)- +a|0)==(d|0))break P;break w}a=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;S:{T:switch(d|0){case 1:d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break S;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break S;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break S;case 0:break T;default:break S}f=kc[J[J[c>>2]+40>>2]](c)|0;d=f?f+8|0:0}if((b|0)!=1936549988)break z;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break z;J[e+8>>2]=1;f=0;b=kc[J[J[c>>2]+20>>2]](c,2)|0;J[e+184>> +2]=0;J[e+40>>2]=b;J[e+268>>2]=0;J[e+88>>2]=0;J[e+80>>2]=0;J[e+276>>2]=0;J[e+260>>2]=0;J[e+240>>2]=0;kc[J[J[c>>2]+24>>2]](c,2);if(((kc[J[J[c>>2]+36>>2]](c)|0)-a|0)==(d|0))break P;break w}a=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;U:{V:switch(d|0){case 1:d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break U;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break U;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break U;case 0:break V;default:break U}f=kc[J[J[c>>2]+40>>2]](c)|0;d=f?f+8|0:0}if((b| +0)!=1752000612)break z;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break z;J[e+8>>2]=2;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+44>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+48>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+52>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+56>>2]=R;f=0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;J[e+184>>2]=0;J[e+60>>2]=b;J[e+268>>2]=0;J[e+88>>2]=0;J[e+80>>2]=0;J[e+276>>2]=0;J[e+260>>2]=0;J[e+240>>2]=0;if(((kc[J[J[c>>2]+36>>2]](c)|0)-a|0)!=(d|0))break w}m=kc[J[J[c>> +2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;W:{X:switch(d|0){case 1:d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break W;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break W;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break W;case 0:break X;default:break W}b=kc[J[J[c>>2]+40>>2]](c)|0;d=b?b+8|0:0}if((a|0)!=1684631142)break z;l=kc[J[J[c>>2]+36>>2]](c)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;Y:{Z:switch(a|0){case 1:a=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break Y;a=kc[J[J[c>>2]+20>> +2]](c,4)|0;if(a)break Y;a=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Y;case 0:break Z;default:break Y}a=kc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}if((b|0)!=1685218662)break z;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break z;_:{if(kc[J[J[c>>2]+20>>2]](c,3)|0)break _;j=kc[J[J[c>>2]+20>>2]](c,4)|0;J[e+88>>2]=0;J[e+80>>2]=0;if((j|0)>0){g=0;while(1){kc[J[J[c>>2]+24>>2]](c,4);b=kc[J[J[c>>2]+20>>2]](c,4)|0;$:{if((b|0)!=1970433568){if((b|0)!=1970433056)break w;kc[J[J[c>>2]+24>>2]](c,-8);h=J[e+80>>2]+1|0;J[e+80>>2]=h;n=kc[J[J[c>> +2]+36>>2]](c)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;i=kc[J[J[c>>2]+20>>2]](c,4)|0;aa:{ba:switch(b|0){case 1:b=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break aa;b=kc[J[J[c>>2]+20>>2]](c,4)|0;if(b)break aa;b=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break aa;case 0:break ba;default:break aa}b=kc[J[J[c>>2]+40>>2]](c)|0;b=b?b+8|0:0}if((i|0)!=1970433056)break w;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break w;ca:{if((kc[J[J[c>>2]+20>>2]](c,3)|0)!=1){i=kc[J[J[c>>2]+20>>2]](c,4)|0;h=h<<4;J[h+J[e+84>>2]>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)| +0;J[(h+J[e+84>>2]|0)+4>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+84>>2]|0)+8>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+84>>2]|0)+12>>2]=i;break ca}J[e+80>>2]=J[e+80>>2]-1}if(((kc[J[J[c>>2]+36>>2]](c)|0)-n|0)==(b|0))break $;break w}kc[J[J[c>>2]+24>>2]](c,-8);h=J[e+88>>2]+1|0;J[e+88>>2]=h;n=kc[J[J[c>>2]+36>>2]](c)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;i=kc[J[J[c>>2]+20>>2]](c,4)|0;da:{ea:switch(b|0){case 1:b=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break da;b=kc[J[J[c>>2]+20>>2]](c,4)|0;if(b)break da;b=(kc[J[J[c>> +2]+40>>2]](c)|0)+12|0;break da;case 0:break ea;default:break da}b=kc[J[J[c>>2]+40>>2]](c)|0;b=b?b+8|0:0}if((i|0)!=1970433568)break w;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break w;if((kc[J[J[c>>2]+20>>2]](c,3)|0)!=1){i=kc[J[J[c>>2]+20>>2]](c,4)|0;h=h<<5;J[h+J[e+92>>2]>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+4>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+8>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+12>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+16>>2]=i;i=kc[J[J[c>> +2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+20>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+24>>2]=i;i=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(h+J[e+92>>2]|0)+28>>2]=i}if(((kc[J[J[c>>2]+36>>2]](c)|0)-n|0)!=(b|0))break w}g=g+1|0;if((j|0)!=(g|0))continue;break}}if(((kc[J[J[c>>2]+36>>2]](c)|0)-l|0)==(a|0))break _;break z}if(((kc[J[J[c>>2]+36>>2]](c)|0)-m|0)!=(d|0))break z;F=kc[J[J[c>>2]+36>>2]](c)|0;w=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;fa:{ga:switch(w|0){case 1:w=1;if(kc[J[J[c>>2]+20>> +2]](c,4)|0)break fa;w=kc[J[J[c>>2]+20>>2]](c,4)|0;if(w)break fa;w=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break fa;case 0:break ga;default:break fa}b=kc[J[J[c>>2]+40>>2]](c)|0;w=b?b+8|0:0}if((a|0)!=1937007212)break z;m=kc[J[J[c>>2]+36>>2]](c)|0;h=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;ha:{ia:switch(h|0){case 1:h=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break ha;h=kc[J[J[c>>2]+20>>2]](c,4)|0;if(h)break ha;h=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break ha;case 0:break ia;default:break ha}b=kc[J[J[c>> +2]+40>>2]](c)|0;h=b?b+8|0:0}if((a|0)!=1937011556)break z;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break z;g=kc[J[J[c>>2]+20>>2]](c,4)|0;ja:{ka:switch(J[e+8>>2]){case 0:if((g|0)<=0)break ja;l=e+288|0;n=0;while(1){j=kc[J[J[c>>2]+36>>2]](c)|0;b=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;la:{ma:switch(b|0){case 1:b=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break la;b=kc[J[J[c>>2]+20>>2]](c,4)|0;if(b)break la;b=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break la;case 0:break ma; +default:break la}b=kc[J[J[c>>2]+40>>2]](c)|0;b=b?b+8|0:0}if((a|0)!=1835692082)break w;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break w;kc[J[J[c>>2]+24>>2]](c,4);kc[J[J[c>>2]+24>>2]](c,2);kc[J[J[c>>2]+24>>2]](c,2);kc[J[J[c>>2]+24>>2]](c,4);kc[J[J[c>>2]+24>>2]](c,4);kc[J[J[c>>2]+24>>2]](c,4);O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+104>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+108>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+136>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+ +140>>2]=R;kc[J[J[c>>2]+24>>2]](c,4);kc[J[J[c>>2]+24>>2]](c,2);O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+144>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+148>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+152>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+156>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+160>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+164>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+168>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,4)|0,J[O+172>>2]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,2)|0,J[O+176>>2]=R;kc[J[J[c>> +2]+24>>2]](c,2);H[e+192|0]=0;H[e+180|0]=1;H[e+181|0]=0;H[e+182|0]=1;H[e+183|0]=0;if(!Taa(l,c))break w;O=e,R=kd(1,P(J[e+304>>2],12)),J[O+356>>2]=R;O=e,R=kd(1,4),J[O+352>>2]=R;J[e+184>>2]=0;H[e+192|0]=0;if(((kc[J[J[c>>2]+36>>2]](c)|0)-j|0)<(b|0))while(1){d=kc[J[J[c>>2]+36>>2]](c)|0;i=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;na:{oa:switch(i|0){case 1:if(kc[J[J[c>>2]+20>>2]](c,4)|0)break na;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break na;break;case 0:break oa;default:break na}kc[J[J[c>>2]+40>> +2]](c)|0}kc[J[J[c>>2]+28>>2]](c,d);pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{if((a|0)<=1785951585){za:switch(a-1785737840|0){case 8:break ua;case 0:break va;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break w;default:break za}if((a|0)!=1718183276)break w;a=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;i=kc[J[J[c>>2]+20>>2]](c,4)|0;switch(d|0){case 0:break xa;case 1:break ya;default:break wa}}if((a|0)==1785951586)break ta;if((a|0)!=1869768303)break w;a=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>> +2]+20>>2]](c,4)|0;i=kc[J[J[c>>2]+20>>2]](c,4)|0;switch(d|0){case 0:break ra;case 1:break sa;default:break qa}}d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break wa;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break wa;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break wa}d=kc[J[J[c>>2]+40>>2]](c)|0;d=d?d+8|0:0}if((i|0)!=1718183276)break w;O=e,R=kc[J[J[c>>2]+20>>2]](c,1)|0,H[O+180|0]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,1)|0,H[O+181|0]=R;if(((kc[J[J[c>>2]+36>>2]](c)|0)-a|0)==(d|0))break pa;break w}i=kc[J[J[c>>2]+36>>2]](c)|0;a=kc[J[J[c>> +2]+20>>2]](c,4)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;Aa:{Ba:switch(a|0){case 1:a=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break Aa;a=kc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break Aa;a=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Aa;case 0:break Ba;default:break Aa}a=kc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}if((d|0)!=1785737840)break w;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break w;d=(a-12|0)/4|0;J[e+184>>2]=d;O=e,R=kd(1,d<<2),J[O+188>>2]=R;d=0;if((a|0)>=16)while(1){o=kc[J[J[c>>2]+20>>2]](c,4)|0; +J[J[e+188>>2]+(d<<2)>>2]=o;d=d+1|0;if((d|0)>2])continue;break}if(((kc[J[J[c>>2]+36>>2]](c)|0)-i|0)==(a|0))break pa;break z}i=kc[J[J[c>>2]+36>>2]](c)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;Ca:{Da:switch(a|0){case 1:a=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break Ca;a=kc[J[J[c>>2]+20>>2]](c,4)|0;if(a)break Ca;a=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Ca;case 0:break Da;default:break Ca}a=kc[J[J[c>>2]+40>>2]](c)|0;a=a?a+8|0:0}if((d|0)!=1785737848)break w;d=a-8|0;H[e+192|0]=d; +o=d&255;O=e,R=kd(1,o),J[O+196>>2]=R;d=0;if(o)while(1){o=kc[J[J[c>>2]+20>>2]](c,1)|0;H[J[e+196>>2]+d|0]=o;d=d+1|0;if(d>>>0>2]+36>>2]](c)|0)-i|0)==(a|0))break pa;break z}a=kc[J[J[c>>2]+36>>2]](c)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;i=kc[J[J[c>>2]+20>>2]](c,4)|0;Ea:{Fa:switch(d|0){case 1:d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break Ea;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break Ea;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Ea;case 0:break Fa;default:break Ea}d=kc[J[J[c>>2]+ +40>>2]](c)|0;d=d?d+8|0:0}if((i|0)!=1785951586)break w;O=e,R=kc[J[J[c>>2]+20>>2]](c,1)|0,H[O+200|0]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,1)|0,H[O+201|0]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,1)|0,H[O+202|0]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,1)|0,H[O+203|0]=R;if(((kc[J[J[c>>2]+36>>2]](c)|0)-a|0)==(d|0))break pa;break w}d=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break qa;d=kc[J[J[c>>2]+20>>2]](c,4)|0;if(d)break qa;d=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break qa}d=kc[J[J[c>>2]+40>>2]](c)|0;d=d?d+8|0:0}if((i|0)!=1869768303)break w; +O=e,R=kc[J[J[c>>2]+20>>2]](c,1)|0,H[O+182|0]=R;O=e,R=kc[J[J[c>>2]+20>>2]](c,1)|0,H[O+183|0]=R;if(((kc[J[J[c>>2]+36>>2]](c)|0)-a|0)!=(d|0))break w}if(((kc[J[J[c>>2]+36>>2]](c)|0)-j|0)<(b|0))continue;break}n=n+1|0;if((g|0)!=(n|0))continue;break}break ja;case 1:case 2:break ka;default:break ja}R=c,Q=(kc[J[J[c>>2]+20>>2]](c,4)|0)-4|0,O=J[J[c>>2]+24>>2],kc[O](R|0,Q|0)}if(((kc[J[J[c>>2]+36>>2]](c)|0)-m|0)!=(h|0))break z;i=kc[J[J[c>>2]+36>>2]](c)|0;h=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c, +4)|0;Ga:{Ha:switch(h|0){case 1:h=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break Ga;h=kc[J[J[c>>2]+20>>2]](c,4)|0;if(h)break Ga;h=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Ga;case 0:break Ha;default:break Ga}b=kc[J[J[c>>2]+40>>2]](c)|0;h=b?b+8|0:0}if((a|0)!=1937011827)break z;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break w;a=kc[J[J[c>>2]+20>>2]](c,4)|0;J[e+260>>2]=a;O=e,Q=kd(1,a<<3),J[O+264>>2]=Q;Ia:{Ja:{if((a|0)>0){while(1){a=kc[J[J[c>>2]+20>>2]](c,4)|0;b=f<<3;J[b+J[e+264>>2]>> +2]=a;a=kc[J[J[c>>2]+20>>2]](c,4)|0;m=J[e+264>>2];J[(m+b|0)+4>>2]=a;f=f+1|0;l=J[e+260>>2];if((f|0)<(l|0))continue;break}J[e+240>>2]=0;if((l|0)<=0)break Ja;g=0;d=0;f=0;if(l>>>0>=4){j=l&-4;b=0;while(1){a=f<<3;d=J[m+(a|24)>>2]+(J[m+(a|16)>>2]+(J[m+(a|8)>>2]+(J[a+m>>2]+d|0)|0)|0)|0;f=f+4|0;b=b+4|0;if((j|0)!=(b|0))continue;break}}a=l&3;if(a)while(1){d=J[m+(f<<3)>>2]+d|0;f=f+1|0;g=g+1|0;if((a|0)!=(g|0))continue;break}J[e+240>>2]=d;d=kd(1,P(d,12));J[e+380>>2]=d;a=0;while(1){b=m+(a<<3)|0;n=J[b>>2];Ka:{if((n| +0)<=0)break Ka;j=J[b+4>>2];g=0;f=0;if(n>>>0>=8){o=n&-8;b=0;while(1){J[(d+P(f,12)|0)+8>>2]=j;J[(d+P(f|1,12)|0)+8>>2]=j;J[(d+P(f|2,12)|0)+8>>2]=j;J[(d+P(f|3,12)|0)+8>>2]=j;J[(d+P(f|4,12)|0)+8>>2]=j;J[(d+P(f|5,12)|0)+8>>2]=j;J[(d+P(f|6,12)|0)+8>>2]=j;J[(d+P(f|7,12)|0)+8>>2]=j;f=f+8|0;b=b+8|0;if((o|0)!=(b|0))continue;break}}b=n&7;if(!b)break Ka;while(1){J[(d+P(f,12)|0)+8>>2]=j;f=f+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}a=a+1|0;if((l|0)!=(a|0))continue;break}break Ia}J[e+240>>2]=0}O=e,Q=kd(1,0),J[O+ +380>>2]=Q}f=0;if(((kc[J[J[c>>2]+36>>2]](c)|0)-i|0)!=(h|0))break w;G=kc[J[J[c>>2]+36>>2]](c)|0;n=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;La:{Ma:switch(n|0){case 1:n=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break La;n=kc[J[J[c>>2]+20>>2]](c,4)|0;if(n)break La;n=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break La;case 0:break Ma;default:break La}b=kc[J[J[c>>2]+40>>2]](c)|0;n=b?b+8|0:0}if((a|0)!=1937011555)break w;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break w;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break w;m=kc[J[J[c>> +2]+20>>2]](c,4)|0;J[e+276>>2]=m;h=kd(1,P(m,12));J[e+280>>2]=h;Na:{Oa:{if((m|0)<=0)break Oa;while(1){b=kc[J[J[c>>2]+20>>2]](c,4)|0;a=P(f,12);J[a+J[e+280>>2]>>2]=b;b=kc[J[J[c>>2]+20>>2]](c,4)|0;J[(a+J[e+280>>2]|0)+4>>2]=b;b=kc[J[J[c>>2]+20>>2]](c,4)|0;h=J[e+280>>2];J[(a+h|0)+8>>2]=b;f=f+1|0;m=J[e+276>>2];if((f|0)<(m|0))continue;break}if((m|0)!=1)break Oa;d=J[h+4>>2];z=W(+M[e+240>>2]/+(d|0));Pa:{if(z<4294967296&z>=0){a=~~z>>>0;break Pa}a=0}J[e+268>>2]=a;h=kd(1,P(a,12));J[e+272>>2]=h;if(!a)break Na;g= +0;f=0;if(a>>>0>=8){j=a&-8;b=0;while(1){J[h+P(f,12)>>2]=d;J[h+P(f|1,12)>>2]=d;J[h+P(f|2,12)>>2]=d;J[h+P(f|3,12)>>2]=d;J[h+P(f|4,12)>>2]=d;J[h+P(f|5,12)>>2]=d;J[h+P(f|6,12)>>2]=d;J[h+P(f|7,12)>>2]=d;f=f+8|0;b=b+8|0;if((j|0)!=(b|0))continue;break}}a=a&7;if(!a)break Na;while(1){J[h+P(f,12)>>2]=d;f=f+1|0;g=g+1|0;if((a|0)!=(g|0))continue;break}break Na}j=kd(1,P(J[e+268>>2],12));J[e+272>>2]=j;x=m-1|0;o=0;l=0;if((m|0)>=2){I=j+36|0;L=j+24|0;N=j+12|0;b=J[h>>2];a=0;while(1){d=b;g=a;a=a+1|0;b=J[P(a,12)+h>>2]; +if((d|0)<(b|0)){f=d-1|0;i=J[(P(g,12)+h|0)+4>>2];g=0;q=b-1|0;q=(d|0)>(q|0)?d:q;s=q-d|0;A=s+1&3;if(A)while(1){J[j+P(f,12)>>2]=i;f=f+1|0;l=i+l|0;g=g+1|0;if((A|0)!=(g|0))continue;break}if(s>>>0>=3){s=i<<1;while(1){g=P(f,12);J[g+j>>2]=i;J[g+N>>2]=i;J[g+L>>2]=i;J[g+I>>2]=i;l=s+(l+s|0)|0;f=f+4|0;if((q|0)!=(f|0))continue;break}}o=(q+(o-d|0)|0)+1|0}if((a|0)!=(x|0))continue;break}}a=J[(P(x,12)+h|0)+4>>2];f=((J[e+240>>2]-l|0)/(a|0)|0)+o|0;J[e+268>>2]=f;b=J[(P(m,12)+h|0)-12>>2];l=b-1|0;Qa:{if(f>>>0<=l>>>0)break Qa; +d=0;b=f-b|0;g=b+1&7;if(g)while(1){J[j+P(l,12)>>2]=a;l=l+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(b>>>0<7)break Qa;g=j+84|0;d=j+72|0;h=j+60|0;m=j+48|0;i=j+36|0;x=j+24|0;q=j+12|0;while(1){b=P(l,12);J[b+j>>2]=a;J[b+q>>2]=a;J[b+x>>2]=a;J[b+i>>2]=a;J[b+m>>2]=a;J[b+h>>2]=a;J[b+d>>2]=a;J[b+g>>2]=a;l=l+8|0;if((f|0)!=(l|0))continue;break}}a=kd(1,P(f,12));if(!a)break Na;a=xc(a,j,P(o,12));if(j)uc(j);J[e+272>>2]=a}if(((kc[J[J[c>>2]+36>>2]](c)|0)-G|0)!=(n|0))break z;m=kc[J[J[c>>2]+36>>2]](c)|0;h=kc[J[J[c>> +2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;Ra:{Sa:switch(h|0){case 1:h=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break Ra;h=kc[J[J[c>>2]+20>>2]](c,4)|0;if(h)break Ra;h=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Ra;case 0:break Sa;default:break Ra}b=kc[J[J[c>>2]+40>>2]](c)|0;h=b?b+8|0:0}if((a|0)!=1937011578)break z;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break z;if(kc[J[J[c>>2]+20>>2]](c,3)|0)break z;a=kc[J[J[c>>2]+20>>2]](c,4)|0;Ta:{if(a){H[e+256|0]=1;j=J[e+240>>2];Ua:{if(!j)break Ua;d=J[e+380>>2];g=0;f=0;if(j>>> +0>=8){l=j&-8;b=0;while(1){J[d+P(f,12)>>2]=a;J[d+P(f|1,12)>>2]=a;J[d+P(f|2,12)>>2]=a;J[d+P(f|3,12)>>2]=a;J[d+P(f|4,12)>>2]=a;J[d+P(f|5,12)>>2]=a;J[d+P(f|6,12)>>2]=a;J[d+P(f|7,12)>>2]=a;f=f+8|0;b=b+8|0;if((l|0)!=(b|0))continue;break}}b=j&7;if(!b)break Ua;while(1){J[d+P(f,12)>>2]=a;f=f+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}kc[J[J[c>>2]+24>>2]](c,4);break Ta}f=0;H[e+256|0]=0;if(J[e+240>>2]!=(kc[J[J[c>>2]+20>>2]](c,4)|0))break w;if(!J[e+240>>2])break Ta;while(1){a=kc[J[J[c>>2]+20>>2]](c,4)|0;J[J[e+ +380>>2]+P(f,12)>>2]=a;f=f+1|0;if(f>>>0>2])continue;break}}if(((kc[J[J[c>>2]+36>>2]](c)|0)-m|0)!=(h|0))break z;i=kc[J[J[c>>2]+36>>2]](c)|0;m=kc[J[J[c>>2]+20>>2]](c,4)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;Va:{Wa:switch(m|0){case 1:m=1;if(kc[J[J[c>>2]+20>>2]](c,4)|0)break Va;m=kc[J[J[c>>2]+20>>2]](c,4)|0;if(m)break Va;m=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;break Va;case 0:break Wa;default:break Va}b=kc[J[J[c>>2]+40>>2]](c)|0;m=b?b+8|0:0}if((a|0)!=1937007471)break z;if(kc[J[J[c>>2]+20>>2]](c,1)|0)break z; +if(kc[J[J[c>>2]+20>>2]](c,3)|0)break z;a=kc[J[J[c>>2]+20>>2]](c,4)|0;if((a|0)!=J[e+268>>2])break z;Xa:{if(!a)break Xa;f=0;while(1){a=kc[J[J[c>>2]+20>>2]](c,4)|0;o=J[e+272>>2];J[(o+P(f,12)|0)+8>>2]=a;f=f+1|0;n=J[e+268>>2];if(f>>>0>>0)continue;break}if(!n)break Xa;h=0;while(1){a=o+P(h,12)|0;l=J[a>>2];Ya:{if((l|0)<=0)break Ya;g=J[a+8>>2];j=J[e+380>>2];b=0;f=0;d=0;if(l>>>0>=4){x=l&-4;a=0;while(1){q=j+P(f,12)|0;J[q+4>>2]=d+g;s=j+P(f|1,12)|0;d=J[q>>2]+d|0;J[s+4>>2]=d+g;q=j+P(f|2,12)|0;d=d+J[s>>2]|0; +J[q+4>>2]=d+g;s=j+P(f|3,12)|0;d=d+J[q>>2]|0;J[s+4>>2]=d+g;d=d+J[s>>2]|0;f=f+4|0;a=a+4|0;if((x|0)!=(a|0))continue;break}}a=l&3;if(!a)break Ya;while(1){l=j+P(f,12)|0;J[l+4>>2]=d+g;f=f+1|0;d=J[l>>2]+d|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}h=h+1|0;if((n|0)!=(h|0))continue;break}}if(((kc[J[J[c>>2]+36>>2]](c)|0)-i|0)!=(m|0))break z;if(((kc[J[J[c>>2]+36>>2]](c)|0)-F|0)!=(w|0))break z;if(((kc[J[J[c>>2]+36>>2]](c)|0)-E|0)!=(v|0))break z;if(((kc[J[J[c>>2]+36>>2]](c)|0)-D|0)!=(u|0))break z;f=0;if(((kc[J[J[c>> +2]+36>>2]](c)|0)-C|0)!=(t|0))break w;Za:switch(J[e+8>>2]){case 0:J[k+44>>2]=J[k+44>>2]+1;break C;case 1:J[k+48>>2]=J[k+48>>2]+1;break C;case 2:break Za;default:break C}J[k+52>>2]=J[k+52>>2]+1;break C}kc[J[J[c>>2]+28>>2]](c,a);kc[J[J[c>>2]+24>>2]](c,f);y=y-1|0}f=1;y=y+1|0;if(((kc[J[J[c>>2]+36>>2]](c)|0)-J[p+16>>2]|0)>2])continue;break}break w}f=0}f=f?B:0;break c}e=kc[J[J[c>>2]+36>>2]](c)|0;a=kc[J[J[c>>2]+20>>2]](c,4)|0;d=kc[J[J[c>>2]+20>>2]](c,4)|0;_a:switch(a|0){case 1:if(kc[J[J[c>>2]+20>> +2]](c,4)|0)break c;a=kc[J[J[c>>2]+20>>2]](c,4)|0;if(a)continue;a=(kc[J[J[c>>2]+40>>2]](c)|0)+12|0;continue;case 0:break _a;default:continue}a=kc[J[J[c>>2]+40>>2]](c)|0;if(!a)break c;a=a+8|0;continue}}fc=p+32|0;TO(J[r+16>>2])}uc(r);return f|0}J[r+20>>2]=1;TO(e);uc(r);return 0}function Ow(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,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,G=0,H=0,I=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,_=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,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0;if(c){ra=J[a+56>>2];za=J[a+60>>2];sa=J[a+48>>2];ya=J[a+52>>2];qa=J[a+40>>2];wa=J[a+44>>2];ka=J[a+32>>2];na=J[a+36>>2];ta=J[a+24>>2];Aa=J[a+28>>2];pa=J[a+16>>2];xa=J[a+20>>2];la=J[a+8>>2];ua=J[a+12>>2];ia=J[a>>2];ma=J[a+4>>2];while(1){j=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=j<<24|(j&65280)<<8;y=j&16711680;h=y<<24;y=y>>>8|0;r=j&-16777216;d=r>>>24|0;e=K[b+4|0]|K[b+ +5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);fa=h|r<<8|(((e&255)<<24|j>>>8)&-16777216|((e&16777215)<<8|j>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|y|g;d=0;d=e|(d|d);ja=d;e=d;d=AEb(ka,na,50);j=jc;d=AEb(ka,na,46)^d;y=jc^j;r=AEb(ka,na,23)^d;j=r+(ka&qa)|0;d=(na&wa)+(jc^y)|0;d=za+(j>>>0>>0?d+1|0:d)|0;j=j+ra|0;d=j>>>0>>0?d+1|0:d;y=(ka^-1)&sa;j=y+j|0;d=((na^-1)&ya)+d|0;d=(j>>>0>>0?d+1|0:d)+e|0;e=j+fa|0;d=(e>>>0>>0?d+1|0:d)+1116352408|0;e=e-685199838|0;d=e>>>0<3609767458?d+1|0:d;y=e;r=d;j=d;d=AEb(ia,ma, +36);g=jc;d=AEb(ia,ma,30)^d;h=jc^g;i=AEb(ia,ma,25)^d;g=i+(ia&(la^pa)^la&pa)|0;d=(ma&(ua^xa)^ua&xa)+(jc^h)|0;d=(g>>>0>>0?d+1|0:d)+j|0;f=e+g|0;d=f>>>0>>0?d+1|0:d;e=AEb(f,d,36);j=jc;L=d;e=AEb(f,d,30)^e;j=jc^j;g=(ia^la)&f^ia&la;e=g+(AEb(f,d,25)^e)|0;d=(jc^j)+((ma^ua)&d^ma&ua)|0;X=e;g=e>>>0>>0?d+1|0:d;j=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);ha=j<<24|(j&65280)<<8;h=j&16711680;N=h<<24;h=h>>>8|0;i=j&-16777216;d=i>>>24|0;e=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);ga=N|i<<8| +(((e&255)<<24|j>>>8)&-16777216|((e&16777215)<<8|j>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|h|ha;d=0;d=e|(d|d);ha=d;e=d;d=r+Aa|0;y=y+ta|0;d=y>>>0>>0?d+1|0:d;j=d;h=(y^-1)&qa;r=h+sa|0;d=((d^-1)&wa)+ya|0;d=h>>>0>r>>>0?d+1|0:d;h=y&ka;r=h+r|0;d=(j&na)+d|0;d=h>>>0>r>>>0?d+1|0:d;h=AEb(y,j,50);i=jc;h=AEb(y,j,46)^h;i=jc^i;h=AEb(y,j,23)^h;r=h+r|0;d=(jc^i)+d|0;d=(h>>>0>r>>>0?d+1|0:d)+e|0;e=r+ga|0;d=(e>>>0>>0?d+1|0:d)+1899447441|0;e=e+602891725|0;d=e>>>0<602891725?d+1|0:d;h=e;i=g;g=d;d=i+d|0;G=e+X|0;d= +G>>>0>>0?d+1|0:d;e=AEb(G,d,36);r=jc;z=d;e=AEb(G,d,30)^e;r=jc^r;i=(f^ia)&G^f&ia;e=i+(AEb(G,d,25)^e)|0;d=(jc^r)+((L^ma)&d^L&ma)|0;O=e;i=e>>>0>>0?d+1|0:d;r=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);F=r<<24|(r&65280)<<8;X=r&16711680;H=X<<24;X=X>>>8|0;N=r&-16777216;d=N>>>24|0;e=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);ba=H|N<<8|(((e&255)<<24|r>>>8)&-16777216|((e&16777215)<<8|r>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|X|F;d=0;d=e|(d|d);X=d;e=d;d=g+xa|0;g=h+pa|0;d=g>>>0>> +0?d+1|0:d;r=d;N=(g^-1)&ka;h=N+qa|0;d=((d^-1)&na)+wa|0;d=h>>>0>>0?d+1|0:d;N=g&y;h=N+h|0;d=(j&r)+d|0;d=h>>>0>>0?d+1|0:d;N=AEb(g,r,50);F=jc;N=AEb(g,r,46)^N;F=jc^F;N=AEb(g,r,23)^N;h=N+h|0;d=(jc^F)+d|0;d=(h>>>0>>0?d+1|0:d)+e|0;e=h;h=h+ba|0;d=e>>>0>h>>>0?d+1|0:d;e=h-330482897|0;F=e;s=d-((h>>>0<330482897)+1245643824|0)|0;d=s+i|0;H=e+O|0;d=H>>>0>>0?d+1|0:d;e=AEb(H,d,36);h=jc;B=d;e=AEb(H,d,30)^e;h=jc^h;i=(f^G)&H^f&G;e=i+(AEb(H,d,25)^e)|0;d=(jc^h)+((z^L)&d^z&L)|0;v=e;O=e>>>0>>0?d+1|0:d;h=K[b+ +24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);x=h<<24|(h&65280)<<8;i=h&16711680;m=i<<24;i=i>>>8|0;N=h&-16777216;d=N>>>24|0;e=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);ca=m|N<<8|(((e&255)<<24|h>>>8)&-16777216|((e&16777215)<<8|h>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|i|x;d=0;d=e|(d|d);N=d;e=d;d=s+ua|0;i=F+la|0;d=i>>>0>>0?d+1|0:d;h=d;s=(i^-1)&y;F=s+ka|0;d=((d^-1)&j)+na|0;d=s>>>0>F>>>0?d+1|0:d;s=g&i;F=s+F|0;d=(h&r)+d|0;d=s>>>0>F>>>0?d+1|0:d;s=AEb(i,h,50);x=jc;s=AEb(i,h,46)^s;x=jc^ +x;s=AEb(i,h,23)^s;F=s+F|0;d=(jc^x)+d|0;d=(s>>>0>F>>>0?d+1|0:d)+e|0;e=F;F=F+ca|0;d=e>>>0>F>>>0?d+1|0:d;e=F-2121671748|0;x=e;o=d-((F>>>0<2121671748)+373957722|0)|0;d=o+O|0;s=e+v|0;d=s>>>0>>0?d+1|0:d;e=AEb(s,d,36);F=jc;k=d;e=AEb(s,d,30)^e;F=jc^F;O=(G^H)&s^G&H;e=O+(AEb(s,d,25)^e)|0;d=(jc^F)+((z^B)&d^z&B)|0;l=e;O=e>>>0>>0?d+1|0:d;F=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);n=F<<24|(F&65280)<<8;v=F&16711680;$=v<<24;v=v>>>8|0;m=F&-16777216;d=m>>>24|0;e=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<< +16|K[b+39|0]<<24);$=$|m<<8|(((e&255)<<24|F>>>8)&-16777216|((e&16777215)<<8|F>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|v|n;d=0;d=e|(d|d);F=d;e=d;v=j;d=o+ma|0;x=x+ia|0;d=x>>>0>>0?d+1|0:d;j=d;t=y;y=x;m=(y^-1)&g;x=t+m|0;d=((d^-1)&r)+v|0;d=m>>>0>x>>>0?d+1|0:d;v=i&y;x=v+x|0;d=(h&j)+d|0;d=v>>>0>x>>>0?d+1|0:d;v=AEb(y,j,50);m=jc;v=AEb(y,j,46)^v;m=jc^m;v=AEb(y,j,23)^v;x=v+x|0;d=(jc^m)+d|0;d=(v>>>0>x>>>0?d+1|0:d)+e|0;e=x+$|0;d=(e>>>0>>0?d+1|0:d)+961987163|0;e=e-213338824|0;d=e>>>0<4081628472?d+1|0:d; +x=e;m=d;d=d+O|0;v=e+l|0;d=v>>>0>>0?d+1|0:d;e=AEb(v,d,36);O=jc;l=d;e=AEb(v,d,30)^e;O=jc^O;o=(s^H)&v^s&H;e=o+(AEb(v,d,25)^e)|0;d=(jc^O)+((k^B)&d^k&B)|0;U=e;o=e>>>0>>0?d+1|0:d;O=K[b+40|0]|K[b+41|0]<<8|(K[b+42|0]<<16|K[b+43|0]<<24);R=O<<24|(O&65280)<<8;n=O&16711680;P=n<<24;n=n>>>8|0;Y=O&-16777216;d=Y>>>24|0;e=K[b+44|0]|K[b+45|0]<<8|(K[b+46|0]<<16|K[b+47|0]<<24);da=P|Y<<8|(((e&255)<<24|O>>>8)&-16777216|((e&16777215)<<8|O>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|n|R;d=0;d=e|(d|d);O=d;e=d;n=r;d=m+ +L|0;f=f+x|0;d=f>>>0>>0?d+1|0:d;r=d;m=g;g=f;L=(g^-1)&i;f=m+L|0;d=((d^-1)&h)+n|0;d=f>>>0>>0?d+1|0:d;L=g&y;f=L+f|0;d=(j&r)+d|0;d=f>>>0>>0?d+1|0:d;L=AEb(g,r,50);x=jc;L=AEb(g,r,46)^L;x=jc^x;L=AEb(g,r,23)^L;f=L+f|0;d=(jc^x)+d|0;d=(f>>>0>>0?d+1|0:d)+e|0;e=f+da|0;d=(e>>>0>>0?d+1|0:d)+1508970993|0;e=e-1241133031|0;d=e>>>0<3053834265?d+1|0:d;x=e;f=o;o=d;d=f+d|0;m=e+U|0;d=m>>>0>>0?d+1|0:d;e=AEb(m,d,36);f=jc;n=d;e=AEb(m,d,30)^e;f=jc^f;L=(s^v)&m^s&v;e=L+(AEb(m,d,25)^e)|0;d=(jc^f)+((k^l)&d^k& +l)|0;R=e;Y=e>>>0>>0?d+1|0:d;f=K[b+48|0]|K[b+49|0]<<8|(K[b+50|0]<<16|K[b+51|0]<<24);P=f<<24|(f&65280)<<8;L=f&16711680;Q=L<<24;L=L>>>8|0;U=f&-16777216;d=U>>>24|0;e=K[b+52|0]|K[b+53|0]<<8|(K[b+54|0]<<16|K[b+55|0]<<24);ea=Q|U<<8|(((e&255)<<24|f>>>8)&-16777216|((e&16777215)<<8|f>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|L|P;d=0;d=e|(d|d);L=d;e=d;f=h;d=o+z|0;G=x+G|0;d=G>>>0>>0?d+1|0:d;h=d;t=i;i=G;z=(i^-1)&y;G=t+z|0;d=((d^-1)&j)+f|0;d=z>>>0>G>>>0?d+1|0:d;f=G;G=g&i;f=f+G|0;d=(h&r)+d|0;d=f>>>0>>0? +d+1|0:d;G=AEb(i,h,50);z=jc;G=AEb(i,h,46)^G;z=jc^z;G=AEb(i,h,23)^G;f=G+f|0;d=(jc^z)+d|0;d=(f>>>0>>0?d+1|0:d)+e|0;e=f+ea|0;P=(e>>>0>>0?d+1|0:d)-((e>>>0<1357295717)+1841331547|0)|0;d=P+Y|0;z=e-1357295717|0;x=z+R|0;d=z>>>0>x>>>0?d+1|0:d;e=AEb(x,d,36);f=jc;R=d;e=AEb(x,d,30)^e;f=jc^f;G=(m^v)&x^m&v;e=G+(AEb(x,d,25)^e)|0;d=(jc^f)+((l^n)&d^l&n)|0;Q=e;o=e>>>0>>0?d+1|0:d;f=K[b+56|0]|K[b+57|0]<<8|(K[b+58|0]<<16|K[b+59|0]<<24);U=f<<24|(f&65280)<<8;G=f&16711680;Z=G<<24;G=G>>>8|0;Y=f&-16777216;d=Y>>>24| +0;e=K[b+60|0]|K[b+61|0]<<8|(K[b+62|0]<<16|K[b+63|0]<<24);Y=Z|Y<<8|(((e&255)<<24|f>>>8)&-16777216|((e&16777215)<<8|f>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|G|U;d=0;d=e|(d|d);G=d;e=d;U=j;d=B+P|0;f=z+H|0;d=f>>>0>>0?d+1|0:d;j=d;H=(f^-1)&g;y=H+y|0;d=((d^-1)&r)+U|0;d=y>>>0>>0?d+1|0:d;H=f&i;y=H+y|0;d=(h&j)+d|0;d=y>>>0>>0?d+1|0:d;H=AEb(f,j,50);z=jc;H=AEb(f,j,46)^H;z=jc^z;H=AEb(f,j,23)^H;y=H+y|0;d=(jc^z)+d|0;d=(y>>>0>>0?d+1|0:d)+e|0;e=y+Y|0;Z=(e>>>0>>0?d+1|0:d)-((e>>>0<630357736)+1424204074| +0)|0;d=Z+o|0;z=e-630357736|0;B=z+Q|0;d=z>>>0>B>>>0?d+1|0:d;e=AEb(B,d,36);y=jc;P=d;e=AEb(B,d,30)^e;y=jc^y;H=(m^x)&B^m&x;e=H+(AEb(B,d,25)^e)|0;d=(jc^y)+((n^R)&d^n&R)|0;Q=e;o=e>>>0>>0?d+1|0:d;y=K[b+64|0]|K[b+65|0]<<8|(K[b+66|0]<<16|K[b+67|0]<<24);W=y<<24|(y&65280)<<8;H=y&16711680;S=H<<24;H=H>>>8|0;U=y&-16777216;d=U>>>24|0;e=K[b+68|0]|K[b+69|0]<<8|(K[b+70|0]<<16|K[b+71|0]<<24);U=S|U<<8|(((e&255)<<24|y>>>8)&-16777216|((e&16777215)<<8|y>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|H|W;d=0;d=e|(d|d);H=d; +e=d;y=g;d=k+Z|0;g=z;z=s+z|0;d=g>>>0>z>>>0?d+1|0:d;g=d;s=(z^-1)&i;y=s+y|0;d=((d^-1)&h)+r|0;d=y>>>0>>0?d+1|0:d;r=f&z;y=r+y|0;d=(g&j)+d|0;d=r>>>0>y>>>0?d+1|0:d;r=AEb(z,g,50);s=jc;r=AEb(z,g,46)^r;s=jc^s;r=AEb(z,g,23)^r;y=r+y|0;d=(jc^s)+d|0;d=(r>>>0>y>>>0?d+1|0:d)+e|0;e=y+U|0;W=(e>>>0>>0?d+1|0:d)-((e>>>0<1560083902)+670586215|0)|0;d=W+o|0;r=e-1560083902|0;o=r+Q|0;d=r>>>0>o>>>0?d+1|0:d;e=AEb(o,d,36);y=jc;Q=d;e=AEb(o,d,30)^e;y=jc^y;s=(x^B)&o^x&B;e=s+(AEb(o,d,25)^e)|0;d=(jc^y)+((P^R)&d^P&R)|0;S=e;k= +e>>>0>>0?d+1|0:d;y=K[b+72|0]|K[b+73|0]<<8|(K[b+74|0]<<16|K[b+75|0]<<24);D=y<<24|(y&65280)<<8;s=y&16711680;V=s<<24;s=s>>>8|0;Z=y&-16777216;d=Z>>>24|0;e=K[b+76|0]|K[b+77|0]<<8|(K[b+78|0]<<16|K[b+79|0]<<24);Z=V|Z<<8|(((e&255)<<24|y>>>8)&-16777216|((e&16777215)<<8|y>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|s|D;d=0;d=e|(d|d);y=d;e=d;s=h;d=l+W|0;h=r;r=r+v|0;d=h>>>0>r>>>0?d+1|0:d;h=d;l=i;i=r;v=(i^-1)&f;r=l+v|0;d=((d^-1)&j)+s|0;d=r>>>0>>0?d+1|0:d;s=i&z;r=s+r|0;d=(g&h)+d|0;d=r>>>0>>0?d+1|0:d;s=AEb(i, +h,50);v=jc;s=AEb(i,h,46)^s;v=jc^v;s=AEb(i,h,23)^s;r=s+r|0;d=(jc^v)+d|0;d=(r>>>0>>0?d+1|0:d)+e|0;e=r+Z|0;d=(e>>>0>>0?d+1|0:d)+310598401|0;e=e+1164996542|0;d=e>>>0<1164996542?d+1|0:d;s=e;v=d;d=d+k|0;l=e+S|0;d=l>>>0>>0?d+1|0:d;e=AEb(l,d,36);r=jc;p=d;e=AEb(l,d,30)^e;r=jc^r;k=(o^B)&l^o&B;e=k+(AEb(l,d,25)^e)|0;d=(jc^r)+((P^Q)&d^P&Q)|0;D=e;k=e>>>0>>0?d+1|0:d;r=K[b+80|0]|K[b+81|0]<<8|(K[b+82|0]<<16|K[b+83|0]<<24);V=r<<24|(r&65280)<<8;W=r&16711680;q=W<<24;W=W>>>8|0;S=r&-16777216;d=S>>>24|0;S=q| +S<<8;V=d|W|V;e=K[b+84|0]|K[b+85|0]<<8|(K[b+86|0]<<16|K[b+87|0]<<24);W=((e&255)<<24|r>>>8)&-16777216|((e&16777215)<<8|r>>>24)&16711680|(e>>>8&65280|e>>>24)|S;d=0;d=d|d|V;r=d;e=d;S=j;d=n+v|0;j=s;s=m+s|0;d=j>>>0>s>>>0?d+1|0:d;j=d;m=f;f=s;v=(f^-1)&z;s=m+v|0;d=((d^-1)&g)+S|0;d=s>>>0>>0?d+1|0:d;v=f&i;s=v+s|0;d=(h&j)+d|0;d=s>>>0>>0?d+1|0:d;v=AEb(f,j,50);m=jc;v=AEb(f,j,46)^v;m=jc^m;v=AEb(f,j,23)^v;s=v+s|0;d=(jc^m)+d|0;d=(s>>>0>>0?d+1|0:d)+e|0;e=s+W|0;d=(e>>>0>>0?d+1|0:d)+607225278|0;e=e+1323610764| +0;d=e>>>0<1323610764?d+1|0:d;v=e;m=d;d=d+k|0;q=e+D|0;d=q>>>0>>0?d+1|0:d;e=AEb(q,d,36);s=jc;I=d;e=AEb(q,d,30)^e;s=jc^s;k=(l^o)&q^l&o;e=k+(AEb(q,d,25)^e)|0;d=(jc^s)+((p^Q)&d^p&Q)|0;D=e;k=e>>>0>>0?d+1|0:d;s=K[b+88|0]|K[b+89|0]<<8|(K[b+90|0]<<16|K[b+91|0]<<24);V=s<<24|(s&65280)<<8;n=s&16711680;E=n<<24;n=n>>>8|0;S=s&-16777216;d=S>>>24|0;e=K[b+92|0]|K[b+93|0]<<8|(K[b+94|0]<<16|K[b+95|0]<<24);S=E|S<<8|(((e&255)<<24|s>>>8)&-16777216|((e&16777215)<<8|s>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|n|V;d= +0;d=e|(d|d);s=d;e=d;d=m+R|0;m=v+x|0;d=m>>>0>>0?d+1|0:d;v=d;x=(m^-1)&i;z=x+z|0;d=((d^-1)&h)+g|0;d=x>>>0>z>>>0?d+1|0:d;g=z;z=f&m;g=g+z|0;d=(j&v)+d|0;d=g>>>0>>0?d+1|0:d;z=AEb(m,v,50);x=jc;z=AEb(m,v,46)^z;x=jc^x;z=AEb(m,v,23)^z;g=z+g|0;d=(jc^x)+d|0;d=(g>>>0>>0?d+1|0:d)+e|0;e=g+S|0;d=(e>>>0>>0?d+1|0:d)+1426881987|0;e=e-704662302|0;d=e>>>0<3590304994?d+1|0:d;x=e;g=k;k=d;d=g+d|0;C=e+D|0;d=C>>>0>>0?d+1|0:d;e=AEb(C,d,36);g=jc;A=d;e=AEb(C,d,30)^e;g=jc^g;z=(l^q)&C^l&q;e=z+(AEb(C,d,25)^e)|0;d= +(jc^g)+((p^I)&d^p&I)|0;D=e;n=e>>>0>>0?d+1|0:d;g=K[b+96|0]|K[b+97|0]<<8|(K[b+98|0]<<16|K[b+99|0]<<24);V=g<<24|(g&65280)<<8;z=g&16711680;E=z<<24;z=z>>>8|0;R=g&-16777216;d=R>>>24|0;e=K[b+100|0]|K[b+101|0]<<8|(K[b+102|0]<<16|K[b+103|0]<<24);R=E|R<<8|(((e&255)<<24|g>>>8)&-16777216|((e&16777215)<<8|g>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|z|V;d=0;d=e|(d|d);z=d;e=d;g=h;d=k+P|0;x=x+B|0;d=x>>>0>>0?d+1|0:d;h=d;t=i;i=x;B=(i^-1)&f;x=t+B|0;d=((d^-1)&j)+g|0;d=x>>>0>>0?d+1|0:d;g=x;x=i&m;g=g+x|0;d=(h& +v)+d|0;d=g>>>0>>0?d+1|0:d;x=AEb(i,h,50);B=jc;x=AEb(i,h,46)^x;B=jc^B;x=AEb(i,h,23)^x;g=x+g|0;d=(jc^B)+d|0;d=(g>>>0>>0?d+1|0:d)+e|0;e=g+R|0;d=(e>>>0>>0?d+1|0:d)+1925078388|0;e=e-226784913|0;d=e>>>0<4068182383?d+1|0:d;B=e;g=n;n=d;d=g+d|0;k=e+D|0;d=k>>>0>>0?d+1|0:d;e=AEb(k,d,36);g=jc;D=d;e=AEb(k,d,30)^e;g=jc^g;x=(q^C)&k^q&C;e=x+(AEb(k,d,25)^e)|0;d=(jc^g)+((A^I)&d^A&I)|0;T=e;P=e>>>0>>0?d+1|0:d;g=K[b+104|0]|K[b+105|0]<<8|(K[b+106|0]<<16|K[b+107|0]<<24);E=g<<24|(g&65280)<<8;x=g&16711680;u= +x<<24;x=x>>>8|0;V=g&-16777216;d=V>>>24|0;e=K[b+108|0]|K[b+109|0]<<8|(K[b+110|0]<<16|K[b+111|0]<<24);V=u|V<<8|(((e&255)<<24|g>>>8)&-16777216|((e&16777215)<<8|g>>>24)&16711680|(e>>>8&65280|e>>>24));e=d|x|E;d=0;d=e|(d|d);x=d;g=d;E=j;d=n+Q|0;e=o+B|0;d=e>>>0>>0?d+1|0:d;j=d;B=(e^-1)&m;f=B+f|0;d=((d^-1)&v)+E|0;d=f>>>0>>0?d+1|0:d;B=e&i;f=B+f|0;d=(h&j)+d|0;d=f>>>0>>0?d+1|0:d;B=AEb(e,j,50);o=jc;B=AEb(e,j,46)^B;o=jc^o;B=AEb(e,j,23)^B;f=B+f|0;d=(jc^o)+d|0;d=(f>>>0>>0?d+1|0:d)+g|0;g=f+V|0;u=(g>>>0< +f>>>0?d+1|0:d)-((g>>>0<3303631183)+2132889089|0)|0;d=u+P|0;n=g+991336113|0;o=n+T|0;d=n>>>0>o>>>0?d+1|0:d;g=AEb(o,d,36);f=jc;E=d;g=AEb(o,d,30)^g;f=jc^f;B=(k^C)&o^k&C;g=B+(AEb(o,d,25)^g)|0;d=(jc^f)+((A^D)&d^A&D)|0;T=g;Q=g>>>0>>0?d+1|0:d;f=K[b+112|0]|K[b+113|0]<<8|(K[b+114|0]<<16|K[b+115|0]<<24);t=f<<24|(f&65280)<<8;B=f&16711680;_=B<<24;B=B>>>8|0;P=f&-16777216;d=P>>>24|0;g=K[b+116|0]|K[b+117|0]<<8|(K[b+118|0]<<16|K[b+119|0]<<24);P=_|P<<8|(((g&255)<<24|f>>>8)&-16777216|((g&16777215)<<8|f>>>24)&16711680| +(g>>>8&65280|g>>>24));g=d|B|t;d=0;d=g|(d|d);B=d;g=d;d=p+u|0;f=l+n|0;d=f>>>0>>0?d+1|0:d;l=d;t=m;m=f;n=(f^-1)&i;f=t+n|0;d=((d^-1)&h)+v|0;d=f>>>0>>0?d+1|0:d;v=e&m;f=v+f|0;d=(j&l)+d|0;d=f>>>0>>0?d+1|0:d;v=AEb(m,l,50);n=jc;v=AEb(m,l,46)^v;n=jc^n;v=AEb(m,l,23)^v;f=v+f|0;d=(jc^n)+d|0;d=(f>>>0>>0?d+1|0:d)+g|0;g=f+P|0;_=(g>>>0>>0?d+1|0:d)-((g>>>0<3661163979)+1680079192|0)|0;d=_+Q|0;p=g+633803317|0;n=p+T|0;d=p>>>0>n>>>0?d+1|0:d;g=AEb(n,d,36);f=jc;T=d;g=AEb(n,d,30)^g;f=jc^f;v=(k^o)&n^k&o;g=v+ +(AEb(n,d,25)^g)|0;d=(jc^f)+((D^E)&d^D&E)|0;va=g;u=g>>>0>>0?d+1|0:d;f=K[b+120|0]|K[b+121|0]<<8|(K[b+122|0]<<16|K[b+123|0]<<24);t=f<<24|(f&65280)<<8;v=f&16711680;w=v<<24;v=v>>>8|0;Q=f&-16777216;d=Q>>>24|0;g=K[b+124|0]|K[b+125|0]<<8|(K[b+126|0]<<16|K[b+127|0]<<24);Q=w|Q<<8|(((g&255)<<24|f>>>8)&-16777216|((g&16777215)<<8|f>>>24)&16711680|(g>>>8&65280|g>>>24));g=d|v|t;d=0;d=g|(d|d);v=d;f=d;t=h;d=I+_|0;g=p+q|0;d=g>>>0

      >>0?d+1|0:d;h=d;q=(g^-1)&e;i=q+i|0;d=((d^-1)&j)+t|0;d=i>>>0>>0?d+1|0:d;q=g&m; +i=q+i|0;d=(h&l)+d|0;d=i>>>0>>0?d+1|0:d;q=AEb(g,h,50);p=jc;q=AEb(g,h,46)^q;p=jc^p;q=AEb(g,h,23)^q;i=q+i|0;d=(jc^p)+d|0;d=(i>>>0>>0?d+1|0:d)+f|0;f=i+Q|0;d=f>>>0>>0?d+1|0:d;i=f-815192428|0;f=d-((f>>>0<815192428)+1046744715|0)|0;d=f+u|0;q=i+va|0;p=q>>>0>>0?d+1|0:d;d=f+A|0;f=i;i=i+C|0;f=f>>>0>i>>>0?d+1|0:d;va=16;while(1){_=va<<3;d=_+2213520|0;I=J[d>>2];A=J[d+4>>2];d=AEb(P,B,45);C=jc;d=AEb(P,B,3)^d;u=jc^C;t=((B&63)<<26|P>>>6)^d;C=t+Z|0;d=(B>>>6^u)+y|0;d=ja+(t>>>0>C>>>0?d+1|0:d)|0;t=fa;fa=C+ +fa|0;ja=t>>>0>fa>>>0?d+1|0:d;d=AEb(ga,ha,63);C=jc;u=((ha&127)<<25|ga>>>7)^(AEb(ga,ha,56)^d);fa=u+fa|0;d=(jc^C^ha>>>7)+ja|0;ja=u>>>0>fa>>>0?d+1|0:d;d=AEb(i,f,50);C=jc;d=AEb(i,f,46)^d;u=jc^C;t=AEb(i,f,23)^d;C=t+(g&i)|0;d=(f&h)+(jc^u)|0;d=j+(t>>>0>C>>>0?d+1|0:d)|0;j=e;e=e+C|0;d=j>>>0>e>>>0?d+1|0:d;j=(i^-1)&m;e=j+e|0;d=((f^-1)&l)+d|0;d=(e>>>0>>0?d+1|0:d)+ja|0;j=e;e=e+fa|0;d=(j>>>0>e>>>0?d+1|0:d)+A|0;j=e;e=e+I|0;j=j>>>0>e>>>0?d+1|0:d;d=AEb(q,p,36);C=jc;d=AEb(q,p,30)^d;I=jc^C;A=AEb(q,p,25)^d;C=A+(q& +(n^o)^n&o)|0;d=(p&(E^T)^E&T)+(jc^I)|0;d=(A>>>0>C>>>0?d+1|0:d)+j|0;t=C;C=e+C|0;d=t>>>0>C>>>0?d+1|0:d;I=AEb(C,d,36);A=jc;t=I;I=d;u=t^AEb(C,d,30);t=jc^A;A=AEb(C,d,25)^u;u=(n^q)&C^n&q;A=A+u|0;d=(jc^t)+((p^T)&d^p&T)|0;t=A;A=u>>>0>t>>>0?d+1|0:d;d=(_|8)+2213520|0;w=J[d>>2];M=J[d+4>>2];d=AEb(Q,v,45);u=jc;d=AEb(Q,v,3)^d;aa=jc^u;oa=((v&63)<<26|Q>>>6)^d;u=oa+W|0;d=(v>>>6^aa)+r|0;d=ha+(u>>>0>>0?d+1|0:d)|0;oa=ga;ga=u+ga|0;ha=oa>>>0>ga>>>0?d+1|0:d;d=AEb(ba,X,63);u=jc;aa=((X&127)<<25|ba>>>7)^(AEb(ba,X,56)^d); +ga=aa+ga|0;d=(jc^u^X>>>7)+ha|0;ha=ga>>>0>>0?d+1|0:d;d=l+ha|0;l=m;m=m+ga|0;d=(l>>>0>m>>>0?d+1|0:d)+M|0;l=m;m=m+w|0;d=l>>>0>m>>>0?d+1|0:d;l=m;m=d;d=j+D|0;j=e+k|0;d=j>>>0>>0?d+1|0:d;e=d;k=l;l=(j^-1)&g;k=k+l|0;d=((d^-1)&h)+m|0;d=k>>>0>>0?d+1|0:d;m=k;k=i&j;m=m+k|0;d=(e&f)+d|0;d=k>>>0>m>>>0?d+1|0:d;k=AEb(j,e,50);l=jc;k=AEb(j,e,46)^k;l=jc^l;k=AEb(j,e,23)^k;m=k+m|0;d=(jc^l)+d|0;k=k>>>0>m>>>0?d+1|0:d;d=k+A|0;l=m+t|0;d=l>>>0>>0?d+1|0:d;D=AEb(l,d,36);u=jc;A=d;D=AEb(l,d,30)^D;u=jc^u;t=(q^C)&l^q& +C;D=t+(AEb(l,d,25)^D)|0;d=(jc^u)+((p^I)&d^p&I)|0;u=D;D=u>>>0>>0?d+1|0:d;d=(_|16)+2213520|0;t=J[d>>2];w=J[d+4>>2];d=s+X|0;X=ba;ba=S+ba|0;X=X>>>0>ba>>>0?d+1|0:d;d=AEb(ca,N,63);M=jc;aa=((N&127)<<25|ca>>>7)^(AEb(ca,N,56)^d);ba=aa+ba|0;d=(jc^M^N>>>7)+X|0;X=ba>>>0>>0?d+1|0:d;d=AEb(fa,ja,45);M=jc;aa=((ja&63)<<26|fa>>>6)^(AEb(fa,ja,3)^d);ba=aa+ba|0;d=(jc^M^ja>>>6)+X|0;X=ba>>>0>>0?d+1|0:d;d=h+X|0;h=g;g=g+ba|0;d=(h>>>0>g>>>0?d+1|0:d)+w|0;h=g;g=g+t|0;d=h>>>0>g>>>0?d+1|0:d;t=g;h=d;d=k+E|0;g=m+o|0; +d=g>>>0>>0?d+1|0:d;m=d;o=(g^-1)&i;k=o+t|0;d=((d^-1)&f)+h|0;d=k>>>0>>0?d+1|0:d;h=k;k=g&j;h=h+k|0;d=(e&m)+d|0;d=h>>>0>>0?d+1|0:d;k=AEb(g,m,50);o=jc;k=AEb(g,m,46)^k;o=jc^o;k=AEb(g,m,23)^k;h=k+h|0;d=(jc^o)+d|0;k=h>>>0>>0?d+1|0:d;d=k+D|0;D=h+u|0;d=D>>>0>>0?d+1|0:d;o=AEb(D,d,36);E=jc;u=d;o=AEb(D,d,30)^o;E=jc^E;t=(l^C)&D^l&C;o=t+(AEb(D,d,25)^o)|0;d=(jc^E)+((A^I)&d^A&I)|0;E=o;o=o>>>0>>0?d+1|0:d;d=(_|24)+2213520|0;t=J[d>>2];w=J[d+4>>2];d=z+N|0;ca=R+ca|0;N=ca>>>0>>0?d+1|0:d;d=AEb($,F,63); +M=jc;aa=((F&127)<<25|$>>>7)^(AEb($,F,56)^d);ca=aa+ca|0;d=(jc^M^F>>>7)+N|0;N=ca>>>0>>0?d+1|0:d;d=AEb(ga,ha,45);M=jc;aa=((ha&63)<<26|ga>>>6)^(AEb(ga,ha,3)^d);ca=aa+ca|0;d=(jc^M^ha>>>6)+N|0;N=ca>>>0>>0?d+1|0:d;d=f+N|0;f=i;i=i+ca|0;d=(f>>>0>i>>>0?d+1|0:d)+w|0;f=i;i=i+t|0;d=f>>>0>i>>>0?d+1|0:d;t=i;f=d;d=k+T|0;h=h+n|0;d=h>>>0>>0?d+1|0:d;i=d;n=(h^-1)&j;k=n+t|0;d=((d^-1)&e)+f|0;d=k>>>0>>0?d+1|0:d;f=k;k=g&h;f=f+k|0;d=(i&m)+d|0;d=f>>>0>>0?d+1|0:d;k=AEb(h,i,50);n=jc;k=AEb(h,i,46)^k;n=jc^n;k= +AEb(h,i,23)^k;f=k+f|0;d=(jc^n)+d|0;k=f>>>0>>0?d+1|0:d;d=k+o|0;E=f+E|0;d=E>>>0>>0?d+1|0:d;o=AEb(E,d,36);n=jc;T=d;o=AEb(E,d,30)^o;n=jc^n;t=(l^D)&E^l&D;o=t+(AEb(E,d,25)^o)|0;d=(jc^n)+((u^A)&d^u&A)|0;d=o>>>0>>0?d+1|0:d;t=o;o=d;d=(_|32)+2213520|0;w=J[d>>2];M=J[d+4>>2];d=x+F|0;n=V+$|0;F=n>>>0<$>>>0?d+1|0:d;d=AEb(da,O,63);$=jc;aa=((O&127)<<25|da>>>7)^(AEb(da,O,56)^d);n=aa+n|0;d=(jc^$^O>>>7)+F|0;F=n>>>0>>0?d+1|0:d;d=AEb(ba,X,45);$=jc;d=AEb(ba,X,3)^d;aa=jc^$;oa=n;n=((X&63)<<26|ba>>>6)^d;$=oa+ +n|0;d=(X>>>6^aa)+F|0;F=n>>>0>$>>>0?d+1|0:d;d=F+e|0;e=j+$|0;d=(e>>>0<$>>>0?d+1|0:d)+M|0;j=e;e=e+w|0;d=j>>>0>e>>>0?d+1|0:d;n=e;j=d;d=k+p|0;e=f+q|0;d=e>>>0>>0?d+1|0:d;f=d;p=n;n=(e^-1)&g;k=p+n|0;d=((d^-1)&m)+j|0;d=k>>>0>>0?d+1|0:d;j=k;k=e&h;j=j+k|0;d=(f&i)+d|0;d=j>>>0>>0?d+1|0:d;k=AEb(e,f,50);n=jc;k=AEb(e,f,46)^k;n=jc^n;k=AEb(e,f,23)^k;j=k+j|0;d=(jc^n)+d|0;n=o;o=j>>>0>>0?d+1|0:d;d=n+o|0;k=j+t|0;d=k>>>0>>0?d+1|0:d;n=AEb(k,d,36);p=jc;q=d;n=AEb(k,d,30)^n;p=jc^p;t=(D^E)&k^D&E;n=t+(AEb(k,d, +25)^n)|0;d=(jc^p)+((u^T)&d^u&T)|0;d=n>>>0>>0?d+1|0:d;t=n;n=d;d=B+O|0;da=P+da|0;O=da>>>0

      >>0?d+1|0:d;d=AEb(ea,L,63);p=jc;w=((L&127)<<25|ea>>>7)^(AEb(ea,L,56)^d);da=w+da|0;d=(jc^p^L>>>7)+O|0;O=w>>>0>da>>>0?d+1|0:d;d=AEb(ca,N,45);p=jc;w=((N&63)<<26|ca>>>6)^(AEb(ca,N,3)^d);da=w+da|0;d=(jc^p^N>>>6)+O|0;d=w>>>0>da>>>0?d+1|0:d;w=(_|40)+2213520|0;M=J[w>>2];p=M+da|0;O=d;d=d+J[w+4>>2]|0;d=m+(p>>>0>>0?d+1|0:d)|0;m=g;g=g+p|0;d=m>>>0>g>>>0?d+1|0:d;p=g;g=d;d=o+I|0;m=j;j=j+C|0;d=m>>>0>j>>>0?d+1|0:d;m=d; +o=p;p=(j^-1)&h;o=o+p|0;d=((d^-1)&i)+g|0;d=o>>>0

      >>0?d+1|0:d;g=o;o=e&j;g=g+o|0;d=(f&m)+d|0;d=g>>>0>>0?d+1|0:d;o=AEb(j,m,50);p=jc;o=AEb(j,m,46)^o;p=jc^p;o=AEb(j,m,23)^o;g=o+g|0;d=(jc^p)+d|0;p=n;n=g>>>0>>0?d+1|0:d;d=p+n|0;o=g+t|0;d=o>>>0>>0?d+1|0:d;p=AEb(o,d,36);I=jc;C=d;p=AEb(o,d,30)^p;I=jc^I;t=(k^E)&o^k&E;p=t+(AEb(o,d,25)^p)|0;d=(jc^I)+((q^T)&d^q&T)|0;d=p>>>0>>0?d+1|0:d;t=p;p=d;d=v+L|0;ea=Q+ea|0;L=ea>>>0>>0?d+1|0:d;d=AEb(Y,G,63);I=jc;w=((G&127)<<25|Y>>>7)^(AEb(Y,G,56)^d);ea=w+ea|0; +d=(jc^I^G>>>7)+L|0;L=w>>>0>ea>>>0?d+1|0:d;d=AEb($,F,45);I=jc;w=((F&63)<<26|$>>>6)^(AEb($,F,3)^d);ea=w+ea|0;d=(jc^I^F>>>6)+L|0;d=w>>>0>ea>>>0?d+1|0:d;w=(_|48)+2213520|0;M=J[w>>2];I=M+ea|0;L=d;d=d+J[w+4>>2]|0;d=i+(I>>>0>>0?d+1|0:d)|0;i=h;h=h+I|0;d=i>>>0>h>>>0?d+1|0:d;I=h;i=d;d=n+A|0;h=g;g=g+l|0;d=h>>>0>g>>>0?d+1|0:d;h=d;n=(g^-1)&e;l=n+I|0;d=((d^-1)&f)+i|0;d=l>>>0>>0?d+1|0:d;i=l;l=g&j;i=i+l|0;d=(h&m)+d|0;d=i>>>0>>0?d+1|0:d;l=AEb(g,h,50);n=jc;l=AEb(g,h,46)^l;n=jc^n;l=AEb(g,h,23)^l;i=l+i|0;d= +(jc^n)+d|0;n=i>>>0>>0?d+1|0:d;d=n+p|0;l=i+t|0;d=l>>>0>>0?d+1|0:d;p=AEb(l,d,36);A=jc;I=d;p=AEb(l,d,30)^p;A=jc^A;t=(k^o)&l^k&o;p=t+(AEb(l,d,25)^p)|0;d=(jc^A)+((q^C)&d^q&C)|0;d=p>>>0>>0?d+1|0:d;t=p;p=d;d=AEb(U,H,63);A=jc;d=AEb(U,H,56)^d;w=jc^A;A=Y+(((H&127)<<25|U>>>7)^d)|0;d=G+(H>>>7^w)|0;d=ja+(A>>>0>>0?d+1|0:d)|0;Y=A+fa|0;G=Y>>>0>>0?d+1|0:d;d=AEb(da,O,45);A=jc;w=((O&63)<<26|da>>>6)^(AEb(da,O,3)^d);Y=w+Y|0;d=(jc^A^O>>>6)+G|0;d=w>>>0>Y>>>0?d+1|0:d;w=(_|56)+2213520|0;M=J[w>>2];A=M+Y|0; +G=d;d=d+J[w+4>>2]|0;d=f+(A>>>0>>0?d+1|0:d)|0;f=e;e=e+A|0;d=f>>>0>e>>>0?d+1|0:d;A=e;f=d;d=n+u|0;e=i+D|0;d=e>>>0>>0?d+1|0:d;i=d;D=(e^-1)&j;n=D+A|0;d=((d^-1)&m)+f|0;d=n>>>0>>0?d+1|0:d;f=n;n=e&g;f=f+n|0;d=(h&i)+d|0;d=f>>>0>>0?d+1|0:d;n=AEb(e,i,50);D=jc;n=AEb(e,i,46)^n;D=jc^D;n=AEb(e,i,23)^n;f=n+f|0;d=(jc^D)+d|0;D=p;p=f>>>0>>0?d+1|0:d;d=D+p|0;n=f+t|0;d=n>>>0>>0?d+1|0:d;D=AEb(n,d,36);A=jc;t=D;D=d;u=t^AEb(n,d,30);t=jc^A;A=AEb(n,d,25)^u;u=(l^o)&n^l&o;A=A+u|0;d=(jc^t)+((C^I)&d^C&I)|0;t=A; +A=u>>>0>t>>>0?d+1|0:d;d=AEb(Z,y,63);u=jc;d=AEb(Z,y,56)^d;w=jc^u;u=U+(((y&127)<<25|Z>>>7)^d)|0;d=H+(y>>>7^w)|0;d=ha+(u>>>0>>0?d+1|0:d)|0;U=u+ga|0;H=U>>>0>>0?d+1|0:d;d=AEb(ea,L,45);u=jc;w=((L&63)<<26|ea>>>6)^(AEb(ea,L,3)^d);U=w+U|0;d=(jc^u^L>>>6)+H|0;d=w>>>0>U>>>0?d+1|0:d;w=(_|64)+2213520|0;M=J[w>>2];u=M+U|0;H=d;d=d+J[w+4>>2]|0;d=m+(u>>>0>>0?d+1|0:d)|0;m=j;j=j+u|0;d=m>>>0>j>>>0?d+1|0:d;u=j;m=d;d=p+T|0;j=f+E|0;d=j>>>0>>0?d+1|0:d;f=d;E=(j^-1)&g;p=E+u|0;d=((d^-1)&h)+m|0;d=p>>>0>>0?d+1| +0:d;m=p;p=e&j;m=m+p|0;d=(f&i)+d|0;d=m>>>0

      >>0?d+1|0:d;p=AEb(j,f,50);E=jc;p=AEb(j,f,46)^p;E=jc^E;p=AEb(j,f,23)^p;m=p+m|0;d=(jc^E)+d|0;p=m>>>0

      >>0?d+1|0:d;d=p+A|0;E=m+t|0;d=E>>>0>>0?d+1|0:d;T=AEb(E,d,36);A=jc;t=T;T=d;u=t^AEb(E,d,30);t=jc^A;A=AEb(E,d,25)^u;u=(l^n)&E^l&n;A=A+u|0;d=(jc^t)+((D^I)&d^D&I)|0;t=A;A=u>>>0>t>>>0?d+1|0:d;d=AEb(W,r,63);u=jc;d=AEb(W,r,56)^d;w=jc^u;u=Z+(((r&127)<<25|W>>>7)^d)|0;d=y+(r>>>7^w)|0;d=X+(u>>>0>>0?d+1|0:d)|0;Z=u+ba|0;y=Z>>>0>>0?d+1|0:d;d=AEb(Y,G,45);u=jc; +w=((G&63)<<26|Y>>>6)^(AEb(Y,G,3)^d);Z=w+Z|0;d=(jc^u^G>>>6)+y|0;d=w>>>0>Z>>>0?d+1|0:d;w=(_|72)+2213520|0;M=J[w>>2];u=M+Z|0;y=d;d=d+J[w+4>>2]|0;d=h+(u>>>0>>0?d+1|0:d)|0;h=g;g=g+u|0;d=h>>>0>g>>>0?d+1|0:d;u=g;h=d;d=p+q|0;g=k+m|0;d=g>>>0>>0?d+1|0:d;m=d;q=(g^-1)&e;k=q+u|0;d=((d^-1)&i)+h|0;d=k>>>0>>0?d+1|0:d;h=k;k=g&j;h=h+k|0;d=(f&m)+d|0;d=h>>>0>>0?d+1|0:d;k=AEb(g,m,50);q=jc;k=AEb(g,m,46)^k;q=jc^q;k=AEb(g,m,23)^k;h=k+h|0;d=(jc^q)+d|0;k=h>>>0>>0?d+1|0:d;d=k+A|0;p=h+t|0;d=p>>>0>>0?d+1|0: +d;q=AEb(p,d,36);u=jc;A=d;q=AEb(p,d,30)^q;u=jc^u;t=(n^E)&p^n&E;q=t+(AEb(p,d,25)^q)|0;d=(jc^u)+((D^T)&d^D&T)|0;d=q>>>0>>0?d+1|0:d;t=q;q=d;d=AEb(S,s,63);u=jc;d=AEb(S,s,56)^d;w=jc^u;u=W+(((s&127)<<25|S>>>7)^d)|0;d=r+(s>>>7^w)|0;d=N+(u>>>0>>0?d+1|0:d)|0;W=u+ca|0;r=W>>>0>>0?d+1|0:d;d=AEb(U,H,45);u=jc;w=((H&63)<<26|U>>>6)^(AEb(U,H,3)^d);W=w+W|0;d=(jc^u^H>>>6)+r|0;d=w>>>0>W>>>0?d+1|0:d;w=(_|80)+2213520|0;M=J[w>>2];u=M+W|0;r=d;d=d+J[w+4>>2]|0;d=i+(u>>>0>>0?d+1|0:d)|0;i=e;e=e+u|0;d=i>>>0>e>>>0? +d+1|0:d;w=e;u=d;d=k+C|0;e=h+o|0;d=e>>>0>>0?d+1|0:d;i=d;k=(e^-1)&j;h=k+w|0;d=((d^-1)&f)+u|0;d=h>>>0>>0?d+1|0:d;k=e&g;h=k+h|0;d=(i&m)+d|0;d=h>>>0>>0?d+1|0:d;k=AEb(e,i,50);o=jc;k=AEb(e,i,46)^k;o=jc^o;k=AEb(e,i,23)^k;h=k+h|0;d=(jc^o)+d|0;k=h>>>0>>0?d+1|0:d;d=k+q|0;C=h+t|0;d=C>>>0>>0?d+1|0:d;o=AEb(C,d,36);q=jc;u=d;o=AEb(C,d,30)^o;q=jc^q;t=(p^E)&C^p&E;o=t+(AEb(C,d,25)^o)|0;d=(jc^q)+((A^T)&d^A&T)|0;d=o>>>0>>0?d+1|0:d;t=o;o=d;d=AEb(R,z,63);q=jc;d=AEb(R,z,56)^d;w=jc^q;q=S+(((z&127)<<25|R>>> +7)^d)|0;d=s+(z>>>7^w)|0;d=F+(q>>>0>>0?d+1|0:d)|0;S=q+$|0;s=S>>>0<$>>>0?d+1|0:d;d=AEb(Z,y,45);q=jc;w=((y&63)<<26|Z>>>6)^(AEb(Z,y,3)^d);S=w+S|0;d=(jc^q^y>>>6)+s|0;d=w>>>0>S>>>0?d+1|0:d;w=(_|88)+2213520|0;M=J[w>>2];q=M+S|0;s=d;d=d+J[w+4>>2]|0;d=f+(q>>>0>>0?d+1|0:d)|0;f=j;j=j+q|0;d=f>>>0>j>>>0?d+1|0:d;q=j;j=d;d=k+I|0;h=h+l|0;d=h>>>0>>0?d+1|0:d;f=d;l=(h^-1)&g;k=l+q|0;d=((d^-1)&m)+j|0;d=k>>>0>>0?d+1|0:d;j=k;k=e&h;j=j+k|0;d=(f&i)+d|0;d=j>>>0>>0?d+1|0:d;k=AEb(h,f,50);l=jc;k=AEb(h,f,46)^k;l= +jc^l;k=AEb(h,f,23)^k;j=k+j|0;d=(jc^l)+d|0;k=j>>>0>>0?d+1|0:d;d=k+o|0;I=j+t|0;d=I>>>0>>0?d+1|0:d;o=AEb(I,d,36);l=jc;t=d;o=AEb(I,d,30)^o;l=jc^l;q=(p^C)&I^p&C;o=q+(AEb(I,d,25)^o)|0;d=(jc^l)+((u^A)&d^u&A)|0;w=o;o=o>>>0>>0?d+1|0:d;d=AEb(V,x,63);l=jc;d=AEb(V,x,56)^d;q=jc^l;l=R+(((x&127)<<25|V>>>7)^d)|0;d=z+(x>>>7^q)|0;d=O+(l>>>0>>0?d+1|0:d)|0;l=l+da|0;z=l>>>0>>0?d+1|0:d;d=AEb(W,r,45);R=jc;d=AEb(W,r,3)^d;q=jc^R;R=l;l=((r&63)<<26|W>>>6)^d;R=R+l|0;d=(r>>>6^q)+z|0;d=l>>>0>R>>>0?d+1|0:d;q=(_| +96)+2213520|0;M=J[q>>2];l=M+R|0;z=d;d=d+J[q+4>>2]|0;d=m+(l>>>0>>0?d+1|0:d)|0;m=g;g=g+l|0;d=m>>>0>g>>>0?d+1|0:d;l=g;m=d;d=k+D|0;g=j+n|0;d=g>>>0>>0?d+1|0:d;q=d;k=(g^-1)&e;j=k+l|0;d=((d^-1)&i)+m|0;d=j>>>0>>0?d+1|0:d;m=g&h;j=m+j|0;d=(f&q)+d|0;d=j>>>0>>0?d+1|0:d;m=AEb(g,q,50);k=jc;m=AEb(g,q,46)^m;k=jc^k;m=AEb(g,q,23)^m;j=m+j|0;d=(jc^k)+d|0;m=j>>>0>>0?d+1|0:d;d=m+o|0;k=j+w|0;d=k>>>0>>0?d+1|0:d;o=AEb(k,d,36);l=jc;D=d;o=AEb(k,d,30)^o;l=jc^l;n=(C^I)&k^C&I;o=n+(AEb(k,d,25)^o)|0;d=(jc^l)+((u^ +t)&d^u&t)|0;d=n>>>0>o>>>0?d+1|0:d;n=o;o=d;d=AEb(P,B,63);l=jc;d=AEb(P,B,56)^d;w=jc^l;l=V+(((B&127)<<25|P>>>7)^d)|0;d=x+(B>>>7^w)|0;d=L+(l>>>0>>0?d+1|0:d)|0;l=l+ea|0;x=l>>>0>>0?d+1|0:d;d=AEb(S,s,45);V=jc;d=AEb(S,s,3)^d;w=jc^V;oa=l;l=((s&63)<<26|S>>>6)^d;V=oa+l|0;d=(s>>>6^w)+x|0;d=l>>>0>V>>>0?d+1|0:d;w=(_|104)+2213520|0;M=J[w>>2];l=M+V|0;x=d;d=d+J[w+4>>2]|0;d=i+(l>>>0>>0?d+1|0:d)|0;i=e;e=e+l|0;d=i>>>0>e>>>0?d+1|0:d;l=e;i=d;d=m+T|0;e=j+E|0;d=e>>>0>>0?d+1|0:d;j=d;m=l;l=(e^-1)&h;m=m+l|0;d= +((d^-1)&f)+i|0;d=l>>>0>m>>>0?d+1|0:d;i=m;m=e&g;i=i+m|0;d=(j&q)+d|0;d=i>>>0>>0?d+1|0:d;m=AEb(e,j,50);l=jc;m=AEb(e,j,46)^m;l=jc^l;m=AEb(e,j,23)^m;i=m+i|0;d=(jc^l)+d|0;m=i>>>0>>0?d+1|0:d;d=m+o|0;o=i+n|0;d=o>>>0>>0?d+1|0:d;l=AEb(o,d,36);n=jc;E=d;l=AEb(o,d,30)^l;n=jc^n;T=(k^I)&o^k&I;l=T+(AEb(o,d,25)^l)|0;d=(jc^n)+((t^D)&d^t&D)|0;d=l>>>0>>0?d+1|0:d;T=l;n=d;d=AEb(Q,v,63);l=jc;d=AEb(Q,v,56)^d;w=jc^l;l=P+(((v&127)<<25|Q>>>7)^d)|0;d=B+(v>>>7^w)|0;d=G+(l>>>0

      >>0?d+1|0:d)|0;l=l+Y|0;B=l>>>0>> +0?d+1|0:d;d=AEb(R,z,45);P=jc;d=AEb(R,z,3)^d;w=jc^P;oa=l;l=((z&63)<<26|R>>>6)^d;P=oa+l|0;d=(z>>>6^w)+B|0;d=l>>>0>P>>>0?d+1|0:d;w=(_|112)+2213520|0;M=J[w>>2];l=M+P|0;B=d;d=d+J[w+4>>2]|0;d=f+(l>>>0>>0?d+1|0:d)|0;f=h;h=h+l|0;d=f>>>0>h>>>0?d+1|0:d;f=h;h=d;d=m+A|0;m=i+p|0;d=m>>>0

      >>0?d+1|0:d;l=d;i=f;f=(m^-1)&g;i=i+f|0;d=((d^-1)&q)+h|0;d=f>>>0>i>>>0?d+1|0:d;h=i;i=e&m;h=h+i|0;d=(j&l)+d|0;d=h>>>0>>0?d+1|0:d;i=AEb(m,l,50);f=jc;i=AEb(m,l,46)^i;f=jc^f;i=AEb(m,l,23)^i;h=i+h|0;d=(jc^f)+d|0;i=h>>>0>> +0?d+1|0:d;d=i+n|0;n=h+T|0;d=n>>>0>>0?d+1|0:d;f=AEb(n,d,36);p=jc;T=d;f=AEb(n,d,30)^f;p=jc^p;A=(k^o)&n^k&o;f=A+(AEb(n,d,25)^f)|0;d=(jc^p)+((D^E)&d^D&E)|0;d=f>>>0>>0?d+1|0:d;A=f;f=d;d=AEb(fa,ja,63);p=jc;d=AEb(fa,ja,56)^d;w=jc^p;p=Q+(((ja&127)<<25|fa>>>7)^d)|0;d=v+(ja>>>7^w)|0;d=H+(p>>>0>>0?d+1|0:d)|0;Q=p+U|0;v=Q>>>0>>0?d+1|0:d;d=AEb(V,x,45);p=jc;w=((x&63)<<26|V>>>6)^(AEb(V,x,3)^d);Q=w+Q|0;d=(jc^p^x>>>6)+v|0;d=w>>>0>Q>>>0?d+1|0:d;_=(_|120)+2213520|0;w=J[_>>2];p=w+Q|0;v=d;d=d+J[_+4>>2]|0;d= +q+(p>>>0>>0?d+1|0:d)|0;q=g;g=g+p|0;d=q>>>0>g>>>0?d+1|0:d;p=g;q=d;d=i+u|0;g=h+C|0;d=g>>>0>>0?d+1|0:d;h=d;i=p;p=(g^-1)&e;i=i+p|0;d=((d^-1)&j)+q|0;d=i>>>0

      >>0?d+1|0:d;q=g&m;i=q+i|0;d=(h&l)+d|0;d=i>>>0>>0?d+1|0:d;q=AEb(g,h,50);p=jc;q=AEb(g,h,46)^q;p=jc^p;q=AEb(g,h,23)^q;i=q+i|0;d=(jc^p)+d|0;p=f;f=i>>>0>>0?d+1|0:d;d=p+f|0;q=i+A|0;p=q>>>0>>0?d+1|0:d;d=f+t|0;f=i;i=i+I|0;f=f>>>0>i>>>0?d+1|0:d;d=va>>>0<64;va=va+16|0;if(d)continue;break}d=j+za|0;j=ra;ra=e+ra|0;d=j>>>0>ra>>>0?d+1|0:d;za=d;J[a+ +56>>2]=ra;J[a+60>>2]=d;d=l+ya|0;e=sa;sa=m+sa|0;d=e>>>0>sa>>>0?d+1|0:d;ya=d;J[a+48>>2]=sa;J[a+52>>2]=d;d=h+wa|0;e=qa;qa=g+qa|0;d=e>>>0>qa>>>0?d+1|0:d;wa=d;J[a+40>>2]=qa;J[a+44>>2]=d;d=f+na|0;e=ka;ka=i+ka|0;d=e>>>0>ka>>>0?d+1|0:d;na=d;J[a+32>>2]=ka;J[a+36>>2]=d;d=D+Aa|0;e=ta;ta=k+ta|0;d=e>>>0>ta>>>0?d+1|0:d;Aa=d;J[a+24>>2]=ta;J[a+28>>2]=d;d=E+xa|0;e=pa;pa=o+pa|0;d=e>>>0>pa>>>0?d+1|0:d;xa=d;J[a+16>>2]=pa;J[a+20>>2]=d;d=T+ua|0;e=la;la=n+la|0;d=e>>>0>la>>>0?d+1|0:d;ua=d;J[a+8>>2]=la;J[a+12>>2]=d;d=p+ma| +0;e=ia;ia=q+ia|0;d=e>>>0>ia>>>0?d+1|0:d;ma=d;J[a>>2]=ia;J[a+4>>2]=d;b=b+128|0;c=c-1|0;if(c)continue;break}}}function gC(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;o=fc-32|0;fc=o;a:{if(!a){f=1;break a}f=J[a+84>>2];if(J[a+212>>2]==1?f:0)break a;b:{c:{f=J[a+172>>2];switch(f+1|0){case 0:break a;case 1:break c;default:break b}}ax(a)}if(!(d|(!b|(c|0)<=0))){s=K[(b+c|0)-1|0]==13;c=c-s|0}d:{while(1){e:{f:{g:{h:{i:{j:{k:{l:{if(!b|(c|0)<=0)break l;e=J[a+36>>2];if(!e)break l; +f=J[e>>2];if(!f)break l;if(J[a+172>>2]==-1)break k;g=vx(J[f+16>>2],e);e=J[a+36>>2];h=J[e+12>>2];i=J[e+16>>2];q=Li(J[J[e>>2]+16>>2]);e=J[a+36>>2];f=0;m:{if(J[a+172>>2]){n=c;break m}n=J[e>>2];if(!n){n=c;break m}l=J[n+12>>2];if(!l){n=c;break m}n=90;n:{if(uC(J[l>>2],22641))break n;if(uC(J[J[J[J[a+36>>2]>>2]+12>>2]>>2],22635))break n;o:{if(uC(J[J[J[J[a+36>>2]>>2]+12>>2]>>2],22871))break o;if(uC(J[J[J[J[a+36>>2]>>2]+12>>2]>>2],22760))break o;n=45;break n}n=180}e=J[a+36>>2];f=J[J[e>>2]+32>>2];f=n-(f>>>0< +n>>>0?f:0)|0;n=c>>>0>>0?c:f;f=c-f|0;f=c>>>0>=f>>>0?f:0}if((AC(J[e>>2],n,b)|0)>=0)break i;J[a+212>>2]=1;f=-1;J[a+172>>2]=-1;J[a+84>>2]=-1;c=J[a+36>>2];if(!c)break a;b=J[c+40>>2];if(b){kc[b|0](J[c+12>>2]);c=J[a+36>>2];J[c+40>>2]=0}J[c+12>>2]=39197;J[c+16>>2]=39197;break a}if(J[a+172>>2]==-1)break k;f=J[a+36>>2];if(!f){n=c;break g}e=J[f>>2];if(!e){n=c;break g}if(!J[e+12>>2])break k;g=J[e+16>>2];if(!g|!J[e+20>>2])break k;f=vx(g,f);g=J[a+36>>2];h=J[g+12>>2];g=J[g+16>>2];if((LC(e,d)|0)<0)break j;ux(J[e+ +16>>2],J[a+36>>2],f,g-h|0)}n=c;break h}kc[J[663297]](J[693366],32970,0);f=81;break a}c=J[a+36>>2];ux(J[J[c>>2]+16>>2],c,g,i-h|0);e=0;if(!f)break h;t=0;c=f;break f}c=J[a+36>>2];if(!c)break g;c=J[c>>2];if(!c)break g;r=Li(J[c+16>>2])}c=0;t=1;if(d){e=d;break f}if(r>>>0>15E6){e=d;break f}if(!q){e=d;break f}if(!r){e=d;break f}g=r-q|0;if((g|0)<0){e=d;break f}h=J[J[a+36>>2]+12>>2];if(!h){e=d;break f}p:{e=J[a+172>>2];if((e|0)==6|(e|0)==9)break p;f=J[a+292>>2];if((f|0)==2|(e|0)==8|((f|0)==5|(e|0)==3))break p; +if((f|0)==3)break p;e=d;break f}e=d;if(!Cg(h+q|0,62,g))break e}l=e;u=0;k=fc-240|0;fc=k;e=J[a+36>>2];q:{if(!e)break q;if((J[e+16>>2]-J[e+12>>2]|0)>=4097){_g(a);J[a+204>>2]=0}vK(a,k+232|0,k+228|0);if(J[a+172>>2]==-1)break q;while(1){if(J[a+212>>2]==1?J[a+84>>2]:0)break q;f=J[a+36>>2];g=J[f+16>>2];r:{if(K[g|0])break r;e=J[a+40>>2];if((e|0)<=1)break r;while(1){s:{t:{u:{if(!J[693384]){i=e-1|0;J[a+40>>2]=i;f=J[a+48>>2];break u}J[k+48>>2]=e;f=0;kc[J[663297]](J[693366],36125,k+48|0);e=J[a+40>>2];if((e|0)<= +0)break s;i=e-1|0;J[a+40>>2]=i;f=J[a+48>>2];h=0;g=0;if((e|0)==1)break t}h=J[((e<<2)+f|0)-8>>2];g=i}J[a+36>>2]=h;e=(g<<2)+f|0;f=J[e>>2];J[e>>2]=0}th(f);e=J[a+36>>2];v:{if(K[J[e+16>>2]])break v;if((Nd(e)|0)>0)break v;e=J[a+40>>2];if((e|0)>=2)continue}f=J[a+36>>2];g=J[f+16>>2];if(K[g|0])break r;e=J[a+40>>2];if((e|0)>1)continue;break}}e=J[f>>2];w:{if(!e){e=J[f+24>>2];break w}x:{if(!J[a+172>>2])break x;h=J[e+20>>2];if(!h)break x;g=-1;if(!(J[h+32>>2]|!h)){e=J[h+8>>2];if(!((e|0)==J[h+24>>2]|e>>>0>2147483646))J[h+ +24>>2]=e;g=J[h+20>>2];e=J[h+4>>2];if((g|0)==(e|0)|e>>>0>2147483646)e=g;else J[h+20>>2]=e;g=!e}f=J[a+36>>2];if(g)break x;f=vx(J[J[f>>2]+16>>2],f);e=J[a+36>>2];g=J[e+12>>2];h=J[e+16>>2];AC(J[e>>2],0,39197);e=J[a+36>>2];ux(J[J[e>>2]+16>>2],e,f,h-g|0);f=J[a+36>>2]}e=Li(J[J[f>>2]+16>>2]);f=J[a+36>>2];g=J[f+16>>2]}e=e-g|0;g=J[f+12>>2];m=e+g|0;if((m|0)<=0)break q;y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{e=J[a+172>>2];switch(e+1|0){case 0:break q; +case 6:break L;case 16:break M;case 3:break N;case 11:break O;case 12:break Q;case 13:break R;case 14:break S;case 17:break T;case 4:break Z;case 15:break _;case 5:break $;case 2:break aa;case 9:break ba;case 10:break ca;case 8:break da;case 7:break ea;case 1:break fa;default:break y}}if(!J[a+256>>2]){if(m>>>0<4)break q;e=J[f+16>>2];H[k+64|0]=K[e|0];H[k+65|0]=K[e+1|0];H[k+66|0]=K[e+2|0];H[k+67|0]=K[e+3|0];Sr(a,Vr(k- -64|0,4));e=J[a+172>>2];break y}if(m>>>0<2)break q;e=J[f+16>>2];h=K[e|0];if(!h){e= +J[a>>2];ga:{if(!e)break ga;e=J[e+44>>2];if(!e)break ga;kc[e|0](J[a+4>>2],2653308)}Xe(a,4,0);J[a+212>>2]=1;J[a+172>>2]=-1;e=J[a+36>>2];if(e){f=J[e+40>>2];if(f){kc[f|0](J[e+12>>2]);e=J[a+36>>2];J[e+40>>2]=0}J[e+12>>2]=39197;J[e+16>>2]=39197}e=J[a>>2];if(!e)break q;e=J[e+52>>2];if(!e)break q;kc[e|0](J[a+4>>2]);break q}if(!((h|0)!=60|K[e+1|0]!=63)){if(m>>>0<5)break q;if(!l){e=e-g|0;if((e|0)<0)break q;ha:{h=J[a+204>>2];h=(e|0)<(h|0)?h:e;i=J[f>>2];if(i){e=0;g=J[i+16>>2];if(!(!g|J[g+32>>2]))e=J[g>>2];g= +e;e=Li(J[J[f>>2]+16>>2])}else e=J[f+24>>2];e=e-1|0;if((h|0)<(e|0)){while(1){i=h+1|0;if(K[g+h|0]==63&K[i+g|0]==62)break ha;h=i;if((h|0)!=(e|0))continue;break}h=e}J[a+204>>2]=h;break q}J[a+204>>2]=0;if((J[f+12>>2]+(h-J[f+16>>2]|0)|0)<0)break q}e=J[a>>2];ia:{if(!e)break ia;e=J[e+44>>2];if(!e)break ia;kc[e|0](J[a+4>>2],2653308)}ja:{e=J[a+36>>2];f=J[e+16>>2];if(K[f+2|0]!=120|K[f+3|0]!=109|K[f+4|0]!=108)break ja;f=K[f+5|0]-9|0;if(f>>>0>23|!(1<>2]=-2;J[a+200>> +2]=J[a+200>>2]+5;f=J[e+16>>2];J[e+16>>2]=f+5;J[e+32>>2]=J[e+32>>2]+5;f=K[f+5|0];if((f|0)==37){Yd(a);e=J[a+36>>2];f=K[J[e+16>>2]]}ka:{if(f&255)break ka;if((Nd(e)|0)>0)break ka;while(1){e=J[a+40>>2];if((e|0)<2)break ka;la:{ma:{na:{if(!J[693384]){i=e-1|0;J[a+40>>2]=i;g=J[a+48>>2];break na}J[j+48>>2]=e;g=0;kc[J[663297]](J[693366],36125,j+48|0);e=J[a+40>>2];if((e|0)<=0)break la;i=e-1|0;J[a+40>>2]=i;g=J[a+48>>2];h=0;f=0;if((e|0)==1)break ma}h=i;f=J[((e<<2)+g|0)-8>>2]}J[a+36>>2]=f;e=(h<<2)+g|0;g=J[e>>2]; +J[e>>2]=0}th(g);e=J[a+36>>2];if(K[J[e+16>>2]])break ka;if((Nd(e)|0)<=0)continue;break}}e=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))oe(a,65,37712);be(a);e=x1(a);oa:{if(!e){if(J[a+172>>2]==-1?J[a+212>>2]:0)break oa;J[a+84>>2]=96;J[j+32>>2]=6920;Hc(0,0,0,a,0,1,96,3,0,0,0,0,32906,j+32|0);J[a+12>>2]=0;if(J[a+288>>2])break oa;J[a+212>>2]=1;break oa}pa:{if(Pg(e,28571))break pa;if(K[a+362|0]&2){Uf(a,108,37615,e);break pa}if(!(K[e|0]!=49|K[e+1|0]!=46)){Vo(a,97,37615,e);break pa}Uf(a,108,37615, +e)}f=J[a+20>>2];if(f)kc[J[663199]](f);J[a+20>>2]=e}f=J[a+36>>2];e=J[f+16>>2];g=K[e|0];h=g-9|0;qa:{if(!(1<>>0<=23:0)){if(!((g|0)!=63|K[e+1|0]!=62)){J[a+200>>2]=J[a+200>>2]+2;J[f+16>>2]=e+2;J[f+32>>2]=J[f+32>>2]+2;e=K[e+2|0];if((e|0)==37){Yd(a);f=J[a+36>>2];e=K[J[f+16>>2]]}if(e&255)break qa;if((Nd(f)|0)>0)break qa;He(a);break qa}oe(a,65,34174)}w1(a);if(J[a+84>>2]==32|J[a+172>>2]==-1)break qa;e=J[a+36>>2];ra:{if(!J[e+44>>2])break ra;f=J[e+16>>2];g=K[f|0];h=g-9|0;if(1<>>0<=23: +0)break ra;if(!((g|0)!=63|K[f+1|0]!=62)){J[a+200>>2]=J[a+200>>2]+2;J[e+16>>2]=f+2;J[e+32>>2]=J[e+32>>2]+2;f=K[f+2|0];if((f|0)==37){Yd(a);e=J[a+36>>2];f=K[J[e+16>>2]]}if(f&255)break qa;if((Nd(e)|0)>0)break qa;He(a);break qa}oe(a,65,34174)}sa:{if(J[a+292>>2])break sa;e=J[a+36>>2];if((J[e+20>>2]-J[e+16>>2]|0)>249)break sa;Rd(a)}be(a);be(a);ta:{ua:{e=J[a+36>>2];f=J[e+16>>2];va:{if(K[f|0]!=115|K[f+1|0]!=116|(K[f+2|0]!=97|K[f+3|0]!=110))break va;if(K[f+4|0]!=100|K[f+5|0]!=97|(K[f+6|0]!=108|K[f+7|0]!=111))break va; +if(K[f+8|0]!=110|K[f+9|0]!=101)break va;J[a+200>>2]=J[a+200>>2]+10;J[e+16>>2]=f+10;J[e+32>>2]=J[e+32>>2]+10;f=K[f+10|0];if((f|0)==37){Yd(a);e=J[a+36>>2];f=K[J[e+16>>2]]}wa:{if(f&255)break wa;if((Nd(e)|0)>0)break wa;He(a)}be(a);if(K[J[J[a+36>>2]+16>>2]]!=61){Xe(a,75,0);f=-2;break ta}Zd(a);be(a);xa:switch(K[J[J[a+36>>2]+16>>2]]-34|0){case 5:Zd(a);ya:{za:{Aa:{Ba:{e=J[a+36>>2];g=J[e+16>>2];switch(K[g|0]-110|0){case 11:break Aa;case 0:break Ba;default:break za}}if(K[g+1|0]!=111)break za;J[a+200>>2]=J[a+ +200>>2]+2;J[e+16>>2]=g+2;J[e+32>>2]=J[e+32>>2]+2;f=0;g=K[g+2|0];if((g|0)==37){Yd(a);e=J[a+36>>2];g=K[J[e+16>>2]]}if(g)break ya;if((Nd(e)|0)>0)break ya;He(a);break ya}if(K[g+1|0]!=101|K[g+2|0]!=115)break za;J[a+200>>2]=J[a+200>>2]+3;J[e+16>>2]=g+3;J[e+32>>2]=J[e+32>>2]+3;f=1;g=K[g+3|0];if((g|0)==37){Yd(a);e=J[a+36>>2];g=K[J[e+16>>2]]}if(g)break ya;if((Nd(e)|0)>0)break ya;He(a);break ya}Xe(a,78,0);f=-2}if(K[J[J[a+36>>2]+16>>2]]!=39)break ua;Zd(a);break ta;case 0:Zd(a);Ca:{Da:{Ea:{Fa:{e=J[a+36>>2];g= +J[e+16>>2];switch(K[g|0]-110|0){case 11:break Ea;case 0:break Fa;default:break Da}}if(K[g+1|0]!=111)break Da;J[a+200>>2]=J[a+200>>2]+2;J[e+16>>2]=g+2;J[e+32>>2]=J[e+32>>2]+2;f=0;g=K[g+2|0];if((g|0)==37){Yd(a);e=J[a+36>>2];g=K[J[e+16>>2]]}if(g)break Ca;if((Nd(e)|0)>0)break Ca;He(a);break Ca}if(K[g+1|0]!=101|K[g+2|0]!=115)break Da;J[a+200>>2]=J[a+200>>2]+3;J[e+16>>2]=g+3;J[e+32>>2]=J[e+32>>2]+3;f=1;g=K[g+3|0];if((g|0)==37){Yd(a);e=J[a+36>>2];g=K[J[e+16>>2]]}if(g)break Ca;if((Nd(e)|0)>0)break Ca;He(a); +break Ca}Xe(a,78,0);f=-2}if(K[J[J[a+36>>2]+16>>2]]!=34)break ua;Zd(a);break ta;default:break xa}Xe(a,33,0)}f=-2;break ta}Xe(a,34,0)}J[J[a+36>>2]+52>>2]=f;be(a);Ga:{Ha:{Ia:{Ja:{g=J[a+36>>2];e=J[g+16>>2];switch(K[e|0]-62|0){case 0:break Ia;case 1:break Ja;default:break Ha}}if(K[e+1|0]!=62)break Ha;J[a+200>>2]=J[a+200>>2]+2;J[g+16>>2]=e+2;J[g+32>>2]=J[g+32>>2]+2;e=K[e+2|0];if((e|0)==37){Yd(a);g=J[a+36>>2];e=K[J[g+16>>2]]}if(e&255)break qa;if((Nd(g)|0)>0)break qa;He(a);break qa}if(J[a+172>>2]==-1?J[a+ +212>>2]:0)break Ga;J[a+84>>2]=57;J[j+16>>2]=15925;Hc(0,0,0,a,0,1,57,3,0,0,0,0,32906,j+16|0);J[a+12>>2]=0;if(J[a+288>>2])break Ga;J[a+212>>2]=1;break Ga}Ka:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break Ka;J[a+84>>2]=57;J[j>>2]=15925;Hc(0,0,0,a,0,1,57,3,0,0,0,0,32906,j);J[a+12>>2]=0;if(J[a+288>>2])break Ka;J[a+212>>2]=1}f=J[a+36>>2];e=J[f+16>>2];while(1){g=K[e|0];if(!g|(g|0)==62)break Ga;e=e+1|0;J[f+16>>2]=e;continue}}Zd(a)}fc=j- -64|0;if(J[a+84>>2]==32){J[a+212>>2]=1;J[a+172>>2]=-1;e=J[a+36>>2];if(!e)break q; +f=J[e+40>>2];if(f){kc[f|0](J[e+12>>2]);e=J[a+36>>2];J[e+40>>2]=0}J[e+12>>2]=39197;J[e+16>>2]=39197;break q}e=J[a+36>>2];J[a+28>>2]=J[e+52>>2];La:{if(J[a+24>>2])break La;e=J[e+44>>2];if(!e)break La;v=a,w=ff(e),J[v+24>>2]=w}e=J[a>>2];Ma:{if(!e)break Ma;e=J[e+48>>2];if(J[a+212>>2]|!e)break Ma;kc[e|0](J[a+4>>2])}u=u+5|0;e=1;break z}v=a,w=GK(),J[v+20>>2]=w;e=J[a>>2];if(!e)break A;e=J[e+48>>2];if(J[a+212>>2]|!e)break A;kc[e|0](J[a+4>>2]);break A}e=J[a>>2];Na:{if(!e)break Na;e=J[e+44>>2];if(!e)break Na; +kc[e|0](J[a+4>>2],2653308)}e=GK();J[a+20>>2]=e;if(!e){se(a,0);e=J[a+172>>2];break y}e=J[a>>2];if(!e)break A;e=J[e+48>>2];if(J[a+212>>2]|!e)break A;kc[e|0](J[a+4>>2]);e=1;break z}J[k+64>>2]=0;J[k+224>>2]=0;h=J[a+328>>2];if(J[a+40>>2]==1&m>>>0<=1)break q;e=J[f+16>>2];if(K[e|0]!=60){J[a+84>>2]=4;J[k>>2]=1123;Hc(0,0,0,a,0,1,4,3,0,0,0,0,32906,k);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+12>>2]=0;e=J[a+36>>2];if(e){f=J[e+40>>2];if(f){kc[f|0](J[e+12>>2]);e=J[a+36>>2];J[e+40>>2]=0}J[e+12>>2]=39197;J[e+16>>2]=39197}e= +J[a>>2];if(!e)break q;e=J[e+52>>2];if(!e)break q;break B}Oa:{if(l)break Oa;if(J[a+292>>2]){if(e>>>0>2])break Oa;break q}if((gq(a,62,0,0)|0)<0)break q}e=J[a+236>>2];if(!e){e=J[a+240>>2];Pa:{if((e|0)>0){e=J[a+244>>2];f=0;break Pa}J[a+240>>2]=e<<1;e=kc[J[663200]](J[a+244>>2],e<<3)|0;if(!e)break W;J[a+244>>2]=e;f=J[a+236>>2]}J[(f<<2)+e>>2]=-1;f=J[a+236>>2];J[a+236>>2]=f+1;J[a+232>>2]=(f<<2)+e;break C}f=J[a+240>>2];g=J[J[a+232>>2]>>2];if((g|0)==-2){Qa:{if((e|0)<(f|0)){f=J[a+244>>2];break Qa}J[a+ +240>>2]=f<<1;f=kc[J[663200]](J[a+244>>2],f<<3)|0;if(!f)break X;J[a+244>>2]=f;e=J[a+236>>2]}J[(e<<2)+f>>2]=-1;e=J[a+236>>2];J[a+236>>2]=e+1;J[a+232>>2]=(e<<2)+f;break C}Ra:{if((e|0)<(f|0)){f=J[a+244>>2];break Ra}J[a+240>>2]=f<<1;f=kc[J[663200]](J[a+244>>2],f<<3)|0;if(!f)break Y;J[a+244>>2]=f;e=J[a+236>>2]}J[(e<<2)+f>>2]=g;e=J[a+236>>2];J[a+236>>2]=e+1;J[a+232>>2]=(e<<2)+f;break C}if(J[a+40>>2]==1&m>>>0<=1)break q;p=J[f+36>>2];j=J[f+16>>2];e=K[j+1|0];h=K[j|0];g=(h|0)!=60;if(!(g|(e|0)!=47)){e=9;break z}if(!((e| +0)!=63|g)){Sa:{if(l)break Sa;if((gq(a,63,62,0)|0)>=0)break Sa;J[a+292>>2]=2;break q}iu(a);break F}if(!((e|0)==33|g)){e=6;break z}Ta:{Ua:{Va:{i=(h|0)==60&(e|0)==33;Wa:{if(i){h=K[j+2|0];if((h|0)!=45)break Wa;if(K[j+3|0]!=45)break Ua;if(m>>>0<4)break q;J[f+16>>2]=j+4;e=gq(a,45,45,62);f=J[a+36>>2];J[f+16>>2]=J[f+16>>2]-4;if(!((e|0)>=0|l)){J[a+292>>2]=5;break q}ju(a);break F}if(g)break Va;if((e|0)!=33)break Ta;h=K[j+2|0]}if((h&255)!=91|K[j+3|0]!=67|(K[j+4|0]!=68|K[j+5|0]!=65))break Ua;if(K[j+6|0]!=84| +K[j+7|0]!=65|K[j+8|0]!=91)break Ua;J[a+200>>2]=J[a+200>>2]+9;J[f+16>>2]=j+9;J[f+32>>2]=J[f+32>>2]+9;e=K[j+9|0];if((e|0)==37){Yd(a);f=J[a+36>>2];e=K[J[f+16>>2]]}Xa:{if(e&255)break Xa;if((Nd(f)|0)>0)break Xa;He(a)}e=8;break z}if((h|0)!=38)break Ta;if(!l)if((gq(a,59,0,0)|0)<0)break q;n1(a);break E}if(m>>>0<9&i)break q}Ya:{if(m>>>0>299|l|J[a+40>>2]!=1)break Ya;if(J[a+292>>2]){if(j>>>0<=M[k+232>>2])break Ya;break q}if((gq(a,60,0,0)|0)<0)break q}J[a+204>>2]=0;q1(a);break E}if(m>>>0<2)break q;Za:{if(l)break Za; +if(J[a+292>>2]){e=J[k+228>>2];if(!e)break q;if(e>>>0>M[f+16>>2])break Za;break q}e=J[f+16>>2]-g|0;if((e|0)<0)break q;_a:{h=J[a+204>>2];e=(e|0)<(h|0)?h:e;h=J[f>>2];if(h){g=0;h=J[h+16>>2];if(!(!h|J[h+32>>2]))g=J[h>>2];h=Li(J[J[f>>2]+16>>2])}else h=J[f+24>>2];if((e|0)<(h|0)){while(1){if(K[e+g|0]==62)break _a;e=e+1|0;if((h|0)!=(e|0))continue;break}e=h}J[a+204>>2]=e;break q}J[a+204>>2]=0;if((J[f+12>>2]+(e-J[f+16>>2]|0)|0)<0)break q}$a:{if(J[a+324>>2]){e=J[a+344>>2]+P(J[a+188>>2],12)|0;e1(a,J[e-12>>2], +J[e-8>>2],0,J[e-4>>2],0);e=J[a+188>>2];if((e|0)<=0)break $a;g=e-1|0;J[a+188>>2]=g;f=J[a+196>>2];J[a+184>>2]=(e|0)!=1?J[(f+(e<<2)|0)-8>>2]:0;J[f+(g<<2)>>2]=0;break $a}i1(a,0)}if(J[a+172>>2]==-1)break q;if(J[a+188>>2])break P;e=14;break z}ab:{e=J[f+16>>2]-g|0;bb:{if((e|0)<0)break bb;j=a;cb:{h=J[a+204>>2];e=(e|0)<(h|0)?h:e;h=J[f>>2];if(h){g=0;h=J[h+16>>2];if(!(!h|J[h+32>>2]))g=J[h>>2];h=Li(J[J[f>>2]+16>>2])}else h=J[f+24>>2];h=h-2|0;if((e|0)<(h|0)){while(1){i=e;p=e+g|0;e=e+1|0;if(!(K[p|0]!=93|K[g+e| +0]!=93)&K[p+2|0]==62)break cb;if((e|0)!=(h|0))continue;break}e=h}J[j+204>>2]=e;break bb}J[a+204>>2]=0;e=J[f+12>>2]+(i-J[f+16>>2]|0)|0;if((e|0)>=0)break ab}if((m|0)<302)break q;f=J[a+36>>2];e=J[f+16>>2];l=a1(e,300,0);if((l|0)<0)break V;f=J[a>>2];db:{if(J[a+212>>2]|!f)break db;g=J[f+100>>2];if(!g){g=J[f+68>>2];if(!g)break db}kc[g|0](J[a+4>>2],e,l)}if(J[a+172>>2]==-1)break q;e=J[a+36>>2];eb:{if(!l){f=J[e+16>>2];break eb}h=J[e+32>>2];g=J[a+200>>2];f=J[e+16>>2];if((l|0)!=1){j=l&-2;i=0;while(1){fb:{if(K[f| +0]==10){J[e+28>>2]=J[e+28>>2]+1;h=1;break fb}h=h+1|0}J[e+32>>2]=h;J[a+200>>2]=g+1;J[e+16>>2]=f+1;if(K[f+1|0]!=10)h=h+1|0;else{J[e+28>>2]=J[e+28>>2]+1;h=1}J[e+32>>2]=h;g=g+2|0;J[a+200>>2]=g;f=f+2|0;J[e+16>>2]=f;i=i+2|0;if((j|0)!=(i|0))continue;break}}if(!(l&1))break eb;if(K[f|0]!=10)h=h+1|0;else{J[e+28>>2]=J[e+28>>2]+1;h=1}J[e+32>>2]=h;J[a+200>>2]=g+1;f=f+1|0;J[e+16>>2]=f}f=K[f|0];if((f|0)==37){Yd(a);e=J[a+36>>2];f=K[J[e+16>>2]]}gb:{if(f&255)break gb;if((Nd(e)|0)>0)break gb;He(a)}J[a+204>>2]=0;break q}h= +J[a+36>>2];f=J[h+16>>2];g=a1(f,e,1);if((g|0)!=(e|0)){e=f-g|0;J[h+16>>2]=e;break U}g=J[a>>2];hb:{if(!(!g|e)){g=J[g+100>>2];if(J[a+212>>2]|!g|(f-J[h+12>>2]|0)<9)break hb;if(ud(f-9|0,19951,9))break hb;kc[g|0](J[a+4>>2],39197,0);break hb}if(J[a+212>>2]|(!e|!g))break hb;h=J[g+100>>2];if(h){kc[h|0](J[a+4>>2],f,e);break hb}g=J[g+68>>2];if(!g)break hb;kc[g|0](J[a+4>>2],f,e)}if(J[a+172>>2]==-1)break q;e=e+2|0;i=(e|0)>0;j=i?e:0;g=J[a+200>>2];e=J[a+36>>2];h=J[e+32>>2];f=J[e+16>>2];if(i){m=j+1&-2;i=0;while(1){ib:{if(K[f| +0]==10){J[e+28>>2]=J[e+28>>2]+1;h=1;break ib}h=h+1|0}J[e+32>>2]=h;J[a+200>>2]=g+1;J[e+16>>2]=f+1;if(K[f+1|0]!=10)h=h+1|0;else{J[e+28>>2]=J[e+28>>2]+1;h=1}J[e+32>>2]=h;g=g+2|0;J[a+200>>2]=g;f=f+2|0;J[e+16>>2]=f;i=i+2|0;if((m|0)!=(i|0))continue;break}}if(!(j&1)){if(K[f|0]!=10)h=h+1|0;else{J[e+28>>2]=J[e+28>>2]+1;h=1}J[e+32>>2]=h;J[a+200>>2]=g+1;f=f+1|0;J[e+16>>2]=f}f=K[f|0];if((f|0)==37){Yd(a);e=J[a+36>>2];f=K[J[e+16>>2]]}jb:{if(f&255)break jb;if((Nd(e)|0)>0)break jb;He(a)}e=7;break G}be(a);h=J[a+36>> +2];e=J[h>>2];kb:{if(!e){f=J[h+24>>2];break kb}f=Li(J[e+16>>2]);h=J[a+36>>2]}g=J[h+12>>2];e=J[h+16>>2];i=g+(f-e|0)|0;if((i|0)<2)break q;j=K[e|0]!=60;f=K[e+1|0];if(!(j|(f|0)!=63)){lb:{if(l)break lb;e=e-g|0;mb:{if((e|0)<0)break mb;j=a;nb:{f=J[a+204>>2];f=(e|0)<(f|0)?f:e;i=J[h>>2];if(i){e=0;g=J[i+16>>2];if(!(!g|J[g+32>>2]))e=J[g>>2];g=e;e=Li(J[J[h>>2]+16>>2])}else e=J[h+24>>2];e=e-1|0;if((f|0)<(e|0)){while(1){i=f+1|0;if(K[f+g|0]==63&K[i+g|0]==62)break nb;f=i;if((f|0)!=(e|0))continue;break}f=e}J[j+204>> +2]=f;break mb}J[a+204>>2]=0;if((J[h+12>>2]+(f-J[h+16>>2]|0)|0)>=0)break lb}J[a+292>>2]=2;break q}iu(a);if(J[a+172>>2]==-1)break q;break H}if(!((f|0)!=33|j)){ob:{f=K[e+2|0];if((f|0)!=68){if((f|0)!=45|K[e+3|0]!=45)break ob;pb:{if(l)break pb;if((gq(a,45,45,62)|0)>=0)break pb;J[a+292>>2]=5;break q}ju(a);if(J[a+172>>2]!=-1)break H;break q}if(K[e+3|0]!=79|K[e+4|0]!=67|(K[e+5|0]!=84|K[e+6|0]!=89))break ob;if(K[e+7|0]!=80|K[e+8|0]!=69)break ob;qb:{if(l)break qb;if((gq(a,62,0,0)|0)>=0)break qb;J[a+292>>2]= +3;break q}J[a+292>>2]=0;J[a+216>>2]=1;J[a+204>>2]=0;j=fc-32|0;fc=j;J[j+28>>2]=0;J[a+200>>2]=J[a+200>>2]+9;e=J[a+36>>2];J[e+32>>2]=J[e+32>>2]+9;f=J[e+16>>2];J[e+16>>2]=f+9;f=K[f+9|0];if((f|0)==37){Yd(a);e=J[a+36>>2];f=K[J[e+16>>2]]}rb:{if(f&255)break rb;if((Nd(e)|0)>0)break rb;while(1){e=J[a+40>>2];if((e|0)<2)break rb;sb:{tb:{ub:{if(!J[693384]){h=e-1|0;J[a+40>>2]=h;g=J[a+48>>2];break ub}J[j+16>>2]=e;g=0;kc[J[663297]](J[693366],36125,j+16|0);e=J[a+40>>2];if((e|0)<=0)break sb;h=e-1|0;J[a+40>>2]=h;g= +J[a+48>>2];i=0;f=0;if((e|0)==1)break tb}i=J[((e<<2)+g|0)-8>>2];f=h}J[a+36>>2]=i;e=(f<<2)+g|0;g=J[e>>2];J[e>>2]=0}th(g);e=J[a+36>>2];if(K[J[e+16>>2]])break rb;if((Nd(e)|0)<=0)continue;break}}be(a);e=hi(a);if(!e)oe(a,68,38943);J[a+220>>2]=e;be(a);f=kC(a,j+28|0,1);g=J[j+28>>2];if(f|g)J[a+88>>2]=1;J[a+228>>2]=g;J[a+224>>2]=f;be(a);h=J[a>>2];vb:{if(!h)break vb;h=J[h>>2];if(J[a+212>>2]|!h)break vb;kc[h|0](J[a+4>>2],e,g,f)}wb:{if(J[a+172>>2]==-1)break wb;e=K[J[J[a+36>>2]+16>>2]];xb:{if((e|0)==62)break xb; +if((e|0)==91)break wb;J[a+84>>2]=61;J[j>>2]=16236;Hc(0,0,0,a,0,1,61,3,0,0,0,0,32906,j);J[a+12>>2]=0;if(J[a+288>>2])break xb;J[a+212>>2]=1}Zd(a)}fc=j+32|0;if(J[a+172>>2]==-1)break q;if(K[J[J[a+36>>2]+16>>2]]==91)break I;J[a+216>>2]=2;e=J[a>>2];yb:{if(J[a+212>>2]|!e)break yb;e=J[e+104>>2];if(!e)break yb;kc[e|0](J[a+4>>2],J[a+220>>2],J[a+228>>2],J[a+224>>2])}J[a+216>>2]=0;c1(a);e=4;break z}if(i>>>0<9)break q}J[a+292>>2]=6;J[a+172>>2]=6;vK(a,k+232|0,k+228|0);e=J[a+172>>2];break y}be(a);h=J[a+36>>2];e= +J[h>>2];zb:{if(!e){f=J[h+24>>2];break zb}f=Li(J[e+16>>2]);h=J[a+36>>2]}g=J[h+12>>2];e=J[h+16>>2];i=g+(f-e|0)|0;if((i|0)<2)break q;j=K[e|0]!=60;f=K[e+1|0];if(!(j|(f|0)!=63)){Ab:{if(l)break Ab;e=e-g|0;Bb:{if((e|0)<0)break Bb;Cb:{f=J[a+204>>2];f=(e|0)<(f|0)?f:e;i=J[h>>2];if(i){e=0;g=J[i+16>>2];if(!(!g|J[g+32>>2]))e=J[g>>2];g=e;e=Li(J[J[h>>2]+16>>2])}else e=J[h+24>>2];e=e-1|0;if((f|0)<(e|0)){while(1){i=f+1|0;if(K[f+g|0]==63&K[i+g|0]==62)break Cb;f=i;if((f|0)!=(e|0))continue;break}f=e}J[a+204>>2]=f;break Bb}J[a+ +204>>2]=0;if((J[h+12>>2]+(f-J[h+16>>2]|0)|0)>=0)break Ab}J[a+292>>2]=2;break q}iu(a);if(J[a+172>>2]==-1)break q;break J}if(!((f|0)!=33|j)){if(!(K[e+2|0]!=45|K[e+3|0]!=45)){Db:{if(l)break Db;if((gq(a,45,45,62)|0)>=0)break Db;J[a+292>>2]=5;break q}ju(a);if(J[a+172>>2]!=-1)break J;break q}if(i>>>0<4)break q}J[a+172>>2]=6;if(!J[a+292>>2])J[a+292>>2]=6;vK(a,k+232|0,k+228|0);break D}be(a);i=J[a+36>>2];e=J[i>>2];Eb:{if(!e){f=J[i+24>>2];break Eb}f=Li(J[e+16>>2]);i=J[a+36>>2]}e=J[i+16>>2];g=f-e|0;f=J[i+12>> +2];h=g+f|0;if((h|0)<2)break q;j=K[e|0]!=60;g=K[e+1|0];if(!(j|(g|0)!=63)){Fb:{if(l)break Fb;e=e-f|0;Gb:{if((e|0)<0)break Gb;Hb:{g=J[a+204>>2];g=(e|0)<(g|0)?g:e;h=J[i>>2];if(h){e=0;f=J[h+16>>2];if(!(!f|J[f+32>>2]))e=J[f>>2];f=e;e=Li(J[J[i>>2]+16>>2])}else e=J[i+24>>2];e=e-1|0;if((g|0)<(e|0)){while(1){h=g+1|0;if(K[f+g|0]==63&K[h+f|0]==62)break Hb;g=h;if((g|0)!=(e|0))continue;break}g=e}J[a+204>>2]=g;break Gb}J[a+204>>2]=0;if((J[i+12>>2]+(g-J[i+16>>2]|0)|0)>=0)break Fb}J[a+292>>2]=2;break q}iu(a);if(J[a+ +172>>2]==-1)break q;break K}if(!((g|0)!=33|j)){if(!(K[e+2|0]!=45|K[e+3|0]!=45)){Ib:{if(l)break Ib;e=e-f|0;Jb:{if((e|0)<0)break Jb;Kb:{g=J[a+204>>2];e=(e|0)<(g|0)?g:e;g=J[i>>2];if(g){f=0;g=J[g+16>>2];if(!(!g|J[g+32>>2]))f=J[g>>2];h=Li(J[J[i>>2]+16>>2])}else h=J[i+24>>2];g=h-2|0;if((e|0)<(g|0)){while(1){h=e;j=e+f|0;e=e+1|0;if(!(K[j|0]!=45|K[f+e|0]!=45)&K[j+2|0]==62)break Kb;if((e|0)!=(g|0))continue;break}e=g}J[a+204>>2]=e;break Jb}J[a+204>>2]=0;if((J[i+12>>2]+(h-J[i+16>>2]|0)|0)>=0)break Ib}J[a+292>> +2]=5;break q}ju(a);if(J[a+172>>2]!=-1)break K;break q}if(h>>>0<4)break q}Xe(a,5,0);iq(a);e=J[a>>2];if(!e)break q;e=J[e+52>>2];if(!e)break q;kc[e|0](J[a+4>>2]);break q}e=J[f+16>>2]-g|0;if((e|0)<0)break q;g=J[a+204>>2];h=0;f=J[J[f>>2]+16>>2];if(!(!f|J[f+32>>2]))h=J[f>>2];f=0;e=(e|0)<(g|0)?g:e;i=Li(J[J[J[a+36>>2]>>2]+16>>2]);Lb:{if(e>>>0>=i>>>0)break Lb;while(1){g=f;j=e+h|0;f=K[j|0];Mb:{m=g&255;if(m){f=(f|0)!=(m|0)?g:0;break Mb}Nb:{Ob:{if(!((f|0)!=60|i>>>0<=e+4>>>0)){if(K[j+1|0]!=33|K[j+2|0]!=45|K[j+ +3|0]!=45)break Ob;if(i>>>0<=e+3>>>0)break Lb;while(1){f=e;g=e+h|0;if(!(K[g|0]!=45|K[g+1|0]!=45)){e=e+2|0;if(K[h+e|0]==62)break Ob}e=f+1|0;if(i>>>0>f+4>>>0)continue;break}J[a+204>>2]=i-3;break q}Pb:switch(f-34|0){case 5:f=39;break Mb;case 0:break Mb;case 1:case 2:case 3:case 4:break Ob;default:break Pb}if((f|0)==93)break Nb}f=0;break Mb}g=e+1|0;if(i>>>0<=g>>>0)break Lb;f=0;if(K[g+h|0]==93){e=g;break Mb}j=i-e|0;f=1;while(1){g=K[g+h|0];m=g-9|0;if(!(m>>>0>23|!(1<>2]=0;j=fc-48|0;fc=j;e=K[J[J[a+36>>2]+16>>2]];Qb:{if((e|0)!=91)break Qb;J[a+172>>2]=3;Zd(a);f=J[a+36>>2];i=J[f+16>>2];Rb:{if(K[i|0]==93)break Rb;while(1){if(J[a+172>>2]==-1)break Rb;p=J[f+36>>2];be(a);zK(a);jC(a);f=J[a+36>>2];h=J[f+16>>2];Sb:{if(K[h|0])break Sb;e=J[a+40>>2];if((e|0)<=1)break Sb;while(1){Tb:{Ub:{Vb:{if(!J[693384]){h=e-1|0;J[a+40>>2]=h;f=J[a+48>>2];break Vb}J[j+32>>2]=e;f=0;kc[J[663297]](J[693366],36125,j+32|0);e=J[a+40>> +2];if((e|0)<=0)break Tb;h=e-1|0;J[a+40>>2]=h;f=J[a+48>>2];m=0;g=0;if((e|0)==1)break Ub}m=J[((e<<2)+f|0)-8>>2];g=h}J[a+36>>2]=m;e=(g<<2)+f|0;f=J[e>>2];J[e>>2]=0}th(f);e=J[a+36>>2];Wb:{if(K[J[e+16>>2]])break Wb;if((Nd(e)|0)>0)break Wb;e=J[a+40>>2];if((e|0)>=2)continue}f=J[a+36>>2];h=J[f+16>>2];if(K[h|0])break Sb;e=J[a+40>>2];if((e|0)>1)continue;break}}if(!((h|0)!=(i|0)|(p|0)!=J[f+36>>2])){if(J[a+172>>2]==-1?J[a+212>>2]:0)break Rb;J[a+84>>2]=1;J[j+20>>2]=33412;J[j+16>>2]=5012;Hc(0,0,0,a,0,1,1,3,33412, +0,0,0,32777,j+16|0);J[a+12>>2]=0;if(J[a+288>>2])break Rb;J[a+212>>2]=1;break Rb}i=J[f+16>>2];if(K[i|0]!=93)continue;break}}e=K[J[J[a+36>>2]+16>>2]];if((e|0)!=93)break Qb;Zd(a);be(a);e=K[J[J[a+36>>2]+16>>2]]}Xb:{if((e&255)!=62){if(J[a+172>>2]==-1?J[a+212>>2]:0)break Xb;J[a+84>>2]=61;J[j>>2]=16236;Hc(0,0,0,a,0,1,61,3,0,0,0,0,32906,j);J[a+12>>2]=0;if(J[a+288>>2])break Xb;J[a+212>>2]=1;break Xb}Zd(a)}fc=j+48|0;if(J[a+172>>2]==-1)break q;J[a+216>>2]=2;e=J[a>>2];Yb:{if(J[a+212>>2]|!e)break Yb;e=J[e+104>> +2];if(!e)break Yb;kc[e|0](J[a+4>>2],J[a+220>>2],J[a+228>>2],J[a+224>>2])}J[a+216>>2]=0;c1(a);if(J[a+172>>2]==-1)break q;J[a+204>>2]=0;e=4;break z}e=e+1|0;if(i>>>0>e>>>0)continue;break}e=f&255?0:e}J[a+204>>2]=e;break q}se(a,0);J[a+240>>2]=J[a+240>>2]/2;break C}se(a,0);J[a+240>>2]=J[a+240>>2]/2;break C}se(a,0);J[a+240>>2]=J[a+240>>2]/2;break C}e=e-l|0;J[f+16>>2]=e}f=K[e|0];g=K[e+1|0];h=K[e+2|0];J[k+44>>2]=K[e+3|0];J[k+40>>2]=h;J[k+36>>2]=g;J[k+32>>2]=f;e=k- -64|0;Wi(e,149,36527,k+32|0);tk(a,9,4560, +e);break q}kc[J[663297]](J[693366],36794,0);e=6;break z}kc[J[663297]](J[693366],36749,0);e=6;break z}kc[J[663297]](J[693366],37093,0);e=6;break z}kc[J[663297]](J[693366],37050,0)}e=7;break z}kc[J[663297]](J[693366],36707,0);break I}kc[J[663297]](J[693366],37017,0);e=7;break z}kc[J[663297]](J[693366],21416,0);break I}kc[J[663297]](J[693366],36563,0);e=7;break z}J[a+292>>2]=1;e=14;break z}J[a+292>>2]=1;e=4;break z}e=3;break z}J[a+292>>2]=1;e=1}J[a+172>>2]=e;J[a+204>>2]=0;break y}J[a+292>>2]=1;J[a+172>> +2]=7}h=J[a+36>>2];f=J[h+16>>2];Zb:{if(K[f|0])break Zb;e=J[a+40>>2];if((e|0)<=1)break Zb;while(1){_b:{$b:{ac:{if(!J[693384]){g=e-1|0;J[a+40>>2]=g;f=J[a+48>>2];break ac}J[k+16>>2]=e;f=0;kc[J[663297]](J[693366],36125,k+16|0);e=J[a+40>>2];if((e|0)<=0)break _b;g=e-1|0;J[a+40>>2]=g;f=J[a+48>>2];i=0;h=0;if((e|0)==1)break $b}i=J[((e<<2)+f|0)-8>>2];h=g}J[a+36>>2]=i;e=(h<<2)+f|0;f=J[e>>2];J[e>>2]=0}th(f);e=J[a+36>>2];bc:{if(K[J[e+16>>2]])break bc;if((Nd(e)|0)>0)break bc;e=J[a+40>>2];if((e|0)>=2)continue}h= +J[a+36>>2];f=J[h+16>>2];if(K[f|0])break Zb;e=J[a+40>>2];if((e|0)>1)continue;break}}if((f|0)!=(j|0)|(p|0)!=J[h+36>>2])break D;Xe(a,1,30835);iq(a);e=J[a+172>>2];break y}e=J[a+172>>2];break y}cc:{if(J[a+324>>2]){e=g1(a,k- -64|0,k+224|0,k+236|0);break cc}e=j1(a)}if(J[a+172>>2]==-1)break q;if(!e){e=J[a+236>>2];if((e|0)>0){g=e-1|0;J[a+236>>2]=g;f=J[a+244>>2];J[a+232>>2]=(e|0)==1?f:(f+(e<<2)|0)-8|0;J[f+(g<<2)>>2]=-1}iq(a);e=J[a>>2];if(!e)break q;e=J[e+52>>2];if(e)break B;break q}dc:{ec:{fc:{g=J[a+36>>2]; +f=J[g+16>>2];i=K[f|0]-47|0;if(i)if((i|0)==15)break fc;else break ec;if(K[f+1|0]!=62)break ec;J[a+200>>2]=J[a+200>>2]+2;J[g+16>>2]=f+2;J[g+32>>2]=J[g+32>>2]+2;f=K[f+2|0];if((f|0)==37){Yd(a);g=J[a+36>>2];f=K[J[g+16>>2]]}gc:{if(f&255)break gc;if((Nd(g)|0)>0)break gc;He(a)}f=J[a>>2];hc:{if(J[a+324>>2]){ic:{if(!f)break ic;f=J[f+120>>2];if(J[a+212>>2]|!f)break ic;kc[f|0](J[a+4>>2],e,J[k+64>>2],J[k+224>>2])}e=J[a+328>>2]-h|0;if((e|0)<=0)break hc;f1(a,e);break hc}if(!f)break hc;f=J[f+60>>2];if(J[a+212>>2]| +!f)break hc;kc[f|0](J[a+4>>2],e)}if(J[a+172>>2]==-1)break q;e=J[a+236>>2];if((e|0)>0){g=e-1|0;J[a+236>>2]=g;f=J[a+244>>2];J[a+232>>2]=(e|0)==1?f:(f+(e<<2)|0)-8|0;J[f+(g<<2)>>2]=-1}e=J[a+188>>2]?7:14;J[a+292>>2]=1;break z}Zd(a);break dc}Uf(a,73,32486,e);mC(a);f=J[a+236>>2];if((f|0)<=0)break dc;i=f-1|0;J[a+236>>2]=i;g=J[a+244>>2];J[a+232>>2]=(f|0)==1?g:(g+(f<<2)|0)-8|0;J[g+(i<<2)>>2]=-1}jc:{if(J[a+324>>2]){i=J[k+64>>2];j=J[k+224>>2];h=J[a+328>>2]-h|0;kc:{f=J[a+188>>2];g=J[a+192>>2];if((f|0)>=(g|0)){J[a+ +192>>2]=g<<1;f=kc[J[663200]](J[a+196>>2],g<<3)|0;if(!f)break kc;J[a+196>>2]=f;f=kc[J[663200]](J[a+344>>2],P(J[a+192>>2],12))|0;if(!f)break kc;J[a+344>>2]=f;f=J[a+188>>2]}J[J[a+196>>2]+(f<<2)>>2]=e;J[a+184>>2]=e;e=P(f,12);J[e+J[a+344>>2]>>2]=i;J[(e+J[a+344>>2]|0)+4>>2]=j;J[(e+J[a+344>>2]|0)+8>>2]=h;J[a+188>>2]=f+1;break jc}J[a+192>>2]=J[a+192>>2]/2;se(a,0);break jc}if(a)lc:{mc:{f=J[a+188>>2];g=J[a+192>>2];nc:{if((f|0)<(g|0)){g=J[a+196>>2];break nc}g=kc[J[663200]](J[a+196>>2],g<<3)|0;if(!g)break mc; +J[a+196>>2]=g;J[a+192>>2]=J[a+192>>2]<<1;f=J[a+188>>2]}J[(f<<2)+g>>2]=e;J[a+188>>2]=f+1;J[a+184>>2]=e;break lc}se(a,0)}}e=7;J[a+292>>2]=1;break z}kc[e|0](J[a+4>>2]);break q}e=1}J[a+172>>2]=e}if((e|0)!=-1)continue;break}}fc=k+240|0}if(J[a+172>>2]==-1)break d;e=J[a+36>>2];oc:{if(!e){e=0;break oc}f=J[e+16>>2];if((J[e+20>>2]-f|0)<=15E6&(f-J[e+12>>2]|0)<15000001|K[a+362|0]&8)break oc;J[a+84>>2]=1;J[o+20>>2]=5628;J[o+16>>2]=5012;e=0;Hc(0,0,0,a,0,1,1,3,5628,0,0,0,32777,o+16|0);J[a+212>>2]=1;J[a+172>>2]= +-1;J[a+12>>2]=0;f=J[a+36>>2];if(!f)break oc;e=J[f+40>>2];pc:{if(!e){e=f;break pc}kc[e|0](J[f+12>>2]);e=J[a+36>>2];J[e+40>>2]=0}J[e+12>>2]=39197;J[e+16>>2]=39197}f=J[a+84>>2];if(J[a+212>>2]==1?f:0)break a;if(!t){b=b+n|0;continue}break}qc:{if(!e|!s)break qc;b=J[e>>2];if(!b)break qc;c=vx(J[b+16>>2],e);b=J[a+36>>2];e=J[b+12>>2];f=J[b+16>>2];AC(J[b>>2],1,29832);b=J[a+36>>2];ux(J[J[b>>2]+16>>2],b,c,f-e|0)}if(d){c=J[a+36>>2];if(c){b=J[c>>2];rc:{if(!b){e=J[c+24>>2];break rc}e=Li(J[b+16>>2]);c=J[a+36>>2]}b= +(J[c+12>>2]+(e-J[c+16>>2]|0)|0)>0}else b=0;c=J[a+172>>2];d=c+1|0;if(!(!d|(d|0)==15)){Xe(a,5,0);c=J[a+172>>2]}if(b&(c|0)==14){J[a+84>>2]=5;J[o>>2]=2549;Hc(0,0,0,a,0,1,5,3,0,0,0,0,32906,o);J[a+12>>2]=0;if(!J[a+288>>2])J[a+212>>2]=1;c=J[a+172>>2]}sc:{if((c|0)==-1)break sc;b=J[a>>2];if(!b)break sc;b=J[b+52>>2];if(!b)break sc;kc[b|0](J[a+4>>2])}J[a+172>>2]=-1}f=0;if(J[a+12>>2])break a}f=J[a+84>>2]}fc=o+32|0;return f}function wba(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;A=b;Q=fc-16|0;fc=Q;a:{b:{c:{d:{e:{f:{g:{h:{T=J[a+56>>2];i:{if((T|0)>0){R=J[b+36>>2];while(1){d=J[R+20>>2];if((d|0)>0){S=J[R+24>>2];while(1){C=d;E=J[S+4>>2];j:{if(!E)break j;d=J[S>>2];if((d|0)<=0)break j;while(1){N=d;k:{if(!J[E+4>>2])break k;d=J[S+40>>2];if((d|0)<=0)break k;U=J[E>>2];while(1){I=d;r=J[U+28>>2];l:{if(!r)break l;V=J[U+24>>2];if((V|0)<=0)break l;while(1){b=J[A+36>> +2];m:{if(J[r+36>>2])break m;d=J[r+40>>2];d=Dk(J[d+20>>2]+2|0,J[d+24>>2]+2|0);J[r+36>>2]=d;if(d)break m;b=-1;break i}t=J[r+4>>2];n:{o:{if(!t)break o;Z=r+4|0;O=P(R-b>>5,488);while(1){if(J[t+36>>2]>16383)break o;b=J[t+24>>2];if(!b)break f;po(b);J[J[t+24>>2]+60>>2]=0;p:{q:switch(J[t+20>>2]-1|0){case 0:b=J[r+28>>2];if(!b){o=0;d=Dc(36);r:{if(d){J[d+20>>2]=19;J[d+24>>2]=0;m=Dc(76);J[d+16>>2]=m;if(m){J[d+12>>2]=m;if(J[d+24>>2]){gba(d);m=J[d+16>>2]}j=J[d+20>>2];if((j|0)<=0)break r;c=j&7;s:{if(!c){b=j;break s}b= +j;while(1){J[m>>2]=2647936;m=m+4|0;b=b-1|0;o=o+1|0;if((c|0)!=(o|0))continue;break}}if(j>>>0<8)break r;while(1){J[m+28>>2]=2647936;J[m+24>>2]=2647936;J[m+20>>2]=2647936;J[m+16>>2]=2647936;J[m+12>>2]=2647936;J[m+8>>2]=2647936;J[m+4>>2]=2647936;J[m>>2]=2647936;m=m+32|0;j=b-9|0;b=b-8|0;if(j>>>0<4294967294)continue;break}break r}uc(d)}d=0}J[r+28>>2]=d;b=-1;if(!d)break i;fba(d);b=J[r+28>>2]}J[b+24>>2]=J[t+24>>2];gba(J[r+28>>2]);break p;default:fa(200874,199135,231,212044);B();case 1:break q}if(J[r+32>> +2])break p;b=hF(J[t+24>>2],201319);J[r+32>>2]=b;if(!b)break g}t:{if(J[t+12>>2]<=0)break t;W=0;while(1){d=J[r+16>>2];n=J[E+20>>2];u:{if((d|0)<=(n|0))break u;b=K[(J[J[A+32>>2]+24>>2]+O|0)+417|0];if((b-n|0)<=(d|0)?b:0)break u;rd(203083,0);d=J[r+16>>2];n=J[E+20>>2]}b=J[t+8>>2]+W|0;m=(J[E+28>>2]+n|0)+((((b-J[r+24>>2]|0)+2|0)/3|0)+d^-1)|0;if((m|0)<0)break n;_=(b+2|0)%3|0;v:{w:{x:{y:{if(m>>>0<31){i=0;z:switch(_|0){case 1:break x;case 2:break y;case 0:break z;default:break v}if(J[t+20>>2]!=1)break w;b=J[J[A+ +32>>2]+24>>2]+O|0;c=J[r+40>>2];o=J[c+20>>2];j=0;n=J[r+36>>2];if(J[n+20>>2]>=2){d=J[n+28>>2];j=J[d+4>>2]-J[d>>2]>>2}s=K[b+418|0];g=J[E+8>>2];k=J[r+28>>2];d=J[c+24>>2];A:{if((o|0)>=2){b=1<>>1|b;b=J[c+28>>2];e=J[b+4>>2]-J[b>>2]|0;b=e>>2;break A}i=1;if((o|0)!=1)break v;b=1<>>1|b;e=0;b=0}i=1;if((d|0)<=0)break v;h=b;f=0-x|0;G=s&8;y=g<<8;m=J[J[n+28>>2]+4>>2]+4|0;s=J[J[c+28>>2]>>2];M=0-j<<2;D=e<<2;l=j<<2;X=l<<2;while(1){b=d;n=m;j=s;while(1){e=b;c=J[n>>2];b=c&255;if(!(!b|c&20480)){b=J[k+16>> +2]+(J[((b|y)<<2)+2745584>>2]<<2)|0;J[k+12>>2]=b;g=J[b>>2];b=J[g>>2];p=J[k+4>>2]-b|0;J[k+4>>2]=p;v=J[k>>2];B:{if(b>>>0<=v>>>16>>>0){J[k>>2]=v-(b<<16);b=J[g+4>>2];if(p&32768)break B;b=Vg(k);break B}b=Ug(k)}if(b){g=(c>>>4&255)<<2;b=J[k+16>>2]+(J[g+2750704>>2]<<2)|0;J[k+12>>2]=b;p=J[b>>2];c=J[p>>2];v=J[k+4>>2]-c|0;J[k+4>>2]=v;b=n+l|0;u=J[k>>2];C:{if(c>>>0<=u>>>16>>>0){J[k>>2]=u-(c<<16);c=J[p+4>>2];if(v&32768)break C;c=Vg(k);break C}c=Ug(k)}p=c^J[g+2749680>>2];D:{E:{F:{if(G){J[b+4>>2]=J[b+4>>2]|8;c=b- +4|0;J[c>>2]=J[c>>2]|1;c=J[b>>2];if(p){c=c|272;break E}c=c|16;break F}c=n+M|0;J[c+4>>2]=J[c+4>>2]|4;g=c-4|0;J[g>>2]=J[g>>2]|2;g=b-4|0;J[g>>2]=J[g>>2]|1;J[b+4>>2]=J[b+4>>2]|8;g=J[c>>2];if(p){J[c>>2]=g|1088;c=J[b>>2]|272;break E}J[c>>2]=g|64;c=J[b>>2]|16}v=128;g=32;break D}v=2176;g=544}J[b>>2]=c;b=n-4|0;J[b>>2]=J[b>>2]|g;J[n+4>>2]=v|J[n+4>>2];J[n>>2]=J[n>>2]|4096;J[j>>2]=p?f:x}J[n>>2]=J[n>>2]|16384}G:{if(o>>>0<2)break G;v=h<<2;p=v+j|0;b=n+l|0;g=J[b>>2];c=g&255;if(!(!c|g&20480)){c=J[k+16>>2]+(J[((c|y)<< +2)+2745584>>2]<<2)|0;J[k+12>>2]=c;u=J[c>>2];c=J[u>>2];w=J[k+4>>2]-c|0;J[k+4>>2]=w;q=J[k>>2];H:{if(c>>>0<=q>>>16>>>0){J[k>>2]=q-(c<<16);c=J[u+4>>2];if(w&32768)break H;c=Vg(k);break H}c=Ug(k)}if(c){u=(g>>>4&255)<<2;c=J[k+16>>2]+(J[u+2750704>>2]<<2)|0;J[k+12>>2]=c;g=J[c>>2];c=J[g>>2];w=J[k+4>>2]-c|0;J[k+4>>2]=w;q=J[k>>2];I:{if(c>>>0<=q>>>16>>>0){J[k>>2]=q-(c<<16);g=J[g+4>>2];if(w&32768)break I;g=Vg(k);break I}g=Ug(k)}u=J[u+2749680>>2];c=n-4|0;J[c>>2]=J[c>>2]|2;J[n+4>>2]=J[n+4>>2]|4;c=b+l|0;w=c-4|0;J[w>> +2]=J[w>>2]|1;J[c+4>>2]=J[c+4>>2]|8;g=(g|0)==(u|0);J[n>>2]=J[n>>2]|(g?64:1088);J[c>>2]=J[c>>2]|(g?16:272);c=b-4|0;J[c>>2]=J[c>>2]|(g?32:544);J[b+4>>2]=J[b+4>>2]|(g?128:2176);J[b>>2]=J[b>>2]|4096;J[p>>2]=g?x:f}J[b>>2]=J[b>>2]|16384}if(o>>>0<3)break G;u=p+v|0;c=b+l|0;p=J[c>>2];g=p&255;if(!(!g|p&20480)){g=J[k+16>>2]+(J[((g|y)<<2)+2745584>>2]<<2)|0;J[k+12>>2]=g;w=J[g>>2];g=J[w>>2];q=J[k+4>>2]-g|0;J[k+4>>2]=q;F=J[k>>2];J:{if(g>>>0<=F>>>16>>>0){J[k>>2]=F-(g<<16);g=J[w+4>>2];if(q&32768)break J;g=Vg(k);break J}g= +Ug(k)}if(g){w=(p>>>4&255)<<2;g=J[k+16>>2]+(J[w+2750704>>2]<<2)|0;J[k+12>>2]=g;p=J[g>>2];g=J[p>>2];q=J[k+4>>2]-g|0;J[k+4>>2]=q;F=J[k>>2];K:{if(g>>>0<=F>>>16>>>0){J[k>>2]=F-(g<<16);p=J[p+4>>2];if(q&32768)break K;p=Vg(k);break K}p=Ug(k)}w=J[w+2749680>>2];g=b-4|0;J[g>>2]=J[g>>2]|2;J[b+4>>2]=J[b+4>>2]|4;g=c+l|0;q=g-4|0;J[q>>2]=J[q>>2]|1;J[g+4>>2]=J[g+4>>2]|8;q=b;z=J[b>>2];b=(p|0)==(w|0);J[q>>2]=z|(b?64:1088);J[g>>2]=J[g>>2]|(b?16:272);g=c-4|0;J[g>>2]=J[g>>2]|(b?32:544);J[c+4>>2]=J[c+4>>2]|(b?128:2176); +J[c>>2]=J[c>>2]|4096;J[u>>2]=b?x:f}J[c>>2]=J[c>>2]|16384}if(o>>>0<4)break G;b=c+l|0;p=J[b>>2];g=p&255;if(!g|p&20480)break G;g=J[k+16>>2]+(J[((g|y)<<2)+2745584>>2]<<2)|0;J[k+12>>2]=g;w=J[g>>2];g=J[w>>2];q=J[k+4>>2]-g|0;J[k+4>>2]=q;F=J[k>>2];L:{if(g>>>0<=F>>>16>>>0){J[k>>2]=F-(g<<16);g=J[w+4>>2];if(q&32768)break L;g=Vg(k);break L}g=Ug(k)}if(g){v=u+v|0;u=(p>>>4&255)<<2;g=J[k+16>>2]+(J[u+2750704>>2]<<2)|0;J[k+12>>2]=g;p=J[g>>2];g=J[p>>2];w=J[k+4>>2]-g|0;J[k+4>>2]=w;q=J[k>>2];M:{if(g>>>0<=q>>>16>>>0){J[k>> +2]=q-(g<<16);p=J[p+4>>2];if(w&32768)break M;p=Vg(k);break M}p=Ug(k)}u=J[u+2749680>>2];g=c-4|0;J[g>>2]=J[g>>2]|2;J[c+4>>2]=J[c+4>>2]|4;g=b+l|0;w=g-4|0;J[w>>2]=J[w>>2]|1;J[g+4>>2]=J[g+4>>2]|8;q=c;w=J[c>>2];c=(p|0)==(u|0);J[q>>2]=w|(c?64:1088);J[g>>2]=J[g>>2]|(c?16:272);g=b-4|0;J[g>>2]=J[g>>2]|(c?32:544);J[b+4>>2]=J[b+4>>2]|(c?128:2176);J[b>>2]=J[b>>2]|4096;J[v>>2]=c?x:f}J[b>>2]=J[b>>2]|16384}j=j+4|0;n=n+4|0;b=e-1|0;if((e|0)>1)continue;break}s=s+D|0;m=m+X|0;b=(o|0)>4;o=o-4|0;if(b)continue;break}break v}fa(203349, +199135,261,212044);B()}if(J[t+20>>2]==1){j=J[J[A+32>>2]+24>>2]+O|0;b=J[r+40>>2];p=J[b+20>>2];v=0;d=J[r+36>>2];if(J[d+20>>2]>=2){c=J[d+28>>2];v=J[c+4>>2]-J[c>>2]>>2}X=K[j+418|0];j=J[E+8>>2];f=J[r+28>>2];k=J[b+24>>2];N:{O:{if((p|0)>=2){c=J[b+28>>2];o=J[c+4>>2]-J[c>>2]|0;x=o>>2;break O}o=0;x=0;if((p|0)!=1)break N}if((k|0)<=0)break N;F=X&8;u=0-v|0;m=1<>>1|m;M=0-G|0;D=j<<8;i=J[J[d+28>>2]+4>>2]+4|0;m=J[J[b+28>>2]>>2];s=0;$=o<<2;y=v<<2;aa=y<<2;while(1){b=p-s|0;w=(b|0)<4;n=w?b:4;d=k;o=m;j=i;while(1){l= +d;P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{e=J[j>>2];if(e&20735|w)break _;b=j+y|0;if(L[b>>1]&20735)break _;h=b+y|0;if(L[h>>1]&20735)break _;c=o;d=j;b=n;if(L[h+y>>1]&20735)break Z;b=J[f+16>>2];J[f+12>>2]=b;d=J[b>>2];b=J[d>>2];c=J[f+4>>2]-b|0;J[f+4>>2]=c;e=J[f>>2];$:{if(b>>>0<=e>>>16>>>0){J[f>>2]=e-(b<<16);b=J[d+4>>2];if(c&32768)break $;b=Vg(f);break $}b=Ug(f)}if(!b)break P;b=J[f+16>>2];J[f+12>>2]=b+72;d=J[b+72>>2];b=J[d>>2];c=J[f+4>>2]-b|0;J[f+4>>2]=c;e=J[f>>2];aa:{if(b>>>0<=e>>>16>>>0){J[f>>2]=e-(b<<16); +b=J[d+4>>2];if(c&32768)break aa;b=Vg(f);break aa}b=Ug(f)}c=J[J[f+12>>2]>>2];d=J[c>>2];e=J[f+4>>2]-d|0;J[f+4>>2]=e;h=J[f>>2];ba:{if(d>>>0<=h>>>16>>>0){J[f>>2]=h-(d<<16);d=J[c+4>>2];if(e&32768)break ba;d=Vg(f);break ba}d=Ug(f)}h=d|b<<1;b=n-h|0;c=(P(h,x)<<2)+o|0;d=(P(h,v)<<2)+j|0;e=J[d>>2];switch(h|0){case 3:break S;case 2:break U;case 1:break W;case 0:break Y;default:break Z}}c=o;d=j;b=n}if(e&20480)break X;h=J[f+16>>2]+(J[((D|e&255)<<2)+2745584>>2]<<2)|0;J[f+12>>2]=h;g=J[h>>2];h=J[g>>2];q=J[f+4>>2]- +h|0;J[f+4>>2]=q;z=J[f>>2];ca:{if(h>>>0<=z>>>16>>>0){J[f>>2]=z-(h<<16);h=J[g+4>>2];if(q&32768)break ca;h=Vg(f);break ca}h=Ug(f)}if(h)break Y;e=J[d>>2];break X}h=(e>>>4&255)<<2;e=J[f+16>>2]+(J[h+2750704>>2]<<2)|0;J[f+12>>2]=e;g=J[e>>2];e=J[g>>2];q=J[f+4>>2]-e|0;J[f+4>>2]=q;z=J[f>>2];da:{if(e>>>0<=z>>>16>>>0){J[f>>2]=z-(e<<16);e=J[g+4>>2];if(q&32768)break da;e=Vg(f);break da}e=Ug(f)}g=(e|0)==J[h+2749680>>2];J[c>>2]=g?G:M;e=d+y|0;ea:{fa:{ga:{if(F){J[e+4>>2]=J[e+4>>2]|8;h=e-4|0;J[h>>2]=J[h>>2]|1;h=J[e>> +2];if(!g){g=h|272;break fa}g=h|16;break ga}h=(u<<2)+d|0;J[h+4>>2]=J[h+4>>2]|4;q=h-4|0;J[q>>2]=J[q>>2]|2;q=e-4|0;J[q>>2]=J[q>>2]|1;J[e+4>>2]=J[e+4>>2]|8;q=J[h>>2];if(!g){J[h>>2]=q|1088;g=J[e>>2]|272;break fa}J[h>>2]=q|64;g=J[e>>2]|16}q=32;h=128;break ea}q=544;h=2176}J[e>>2]=g;e=d-4|0;J[e>>2]=q|J[e>>2];J[d+4>>2]=J[d+4>>2]|h;e=J[d>>2]|4096;J[d>>2]=e}J[d>>2]=e&-16385;if((b|0)<2)break P;b=b-1|0;c=(x<<2)+c|0;d=d+y|0;e=J[d>>2];if(e&20480)break V;h=J[f+16>>2]+(J[((D|e&255)<<2)+2745584>>2]<<2)|0;J[f+12>>2]= +h;g=J[h>>2];h=J[g>>2];q=J[f+4>>2]-h|0;J[f+4>>2]=q;z=J[f>>2];ha:{if(h>>>0<=z>>>16>>>0){J[f>>2]=z-(h<<16);h=J[g+4>>2];if(q&32768)break ha;h=Vg(f);break ha}h=Ug(f)}if(h)break W;e=J[d>>2];break V}h=(e>>>4&255)<<2;e=J[f+16>>2]+(J[h+2750704>>2]<<2)|0;J[f+12>>2]=e;g=J[e>>2];e=J[g>>2];q=J[f+4>>2]-e|0;J[f+4>>2]=q;z=J[f>>2];ia:{if(e>>>0<=z>>>16>>>0){J[f>>2]=z-(e<<16);e=J[g+4>>2];if(q&32768)break ia;e=Vg(f);break ia}e=Ug(f)}e=(e|0)==J[h+2749680>>2];J[c>>2]=e?G:M;h=(u<<2)+d|0;g=h-4|0;J[g>>2]=J[g>>2]|2;J[h+4>> +2]=J[h+4>>2]|4;g=d+y|0;q=g-4|0;J[q>>2]=J[q>>2]|1;J[g+4>>2]=J[g+4>>2]|8;J[h>>2]=J[h>>2]|(e?64:1088);J[g>>2]=J[g>>2]|(e?16:272);h=d-4|0;J[h>>2]=J[h>>2]|(e?32:544);J[d+4>>2]=J[d+4>>2]|(e?128:2176);e=J[d>>2]|4096;J[d>>2]=e}J[d>>2]=e&-16385;if((b|0)<2)break P;b=b-1|0;c=(x<<2)+c|0;d=d+y|0;e=J[d>>2];if(e&20480)break T;h=J[f+16>>2]+(J[((D|e&255)<<2)+2745584>>2]<<2)|0;J[f+12>>2]=h;g=J[h>>2];h=J[g>>2];q=J[f+4>>2]-h|0;J[f+4>>2]=q;z=J[f>>2];ja:{if(h>>>0<=z>>>16>>>0){J[f>>2]=z-(h<<16);h=J[g+4>>2];if(q&32768)break ja; +h=Vg(f);break ja}h=Ug(f)}if(h)break U;e=J[d>>2];break T}h=(e>>>4&255)<<2;e=J[f+16>>2]+(J[h+2750704>>2]<<2)|0;J[f+12>>2]=e;g=J[e>>2];e=J[g>>2];q=J[f+4>>2]-e|0;J[f+4>>2]=q;z=J[f>>2];ka:{if(e>>>0<=z>>>16>>>0){J[f>>2]=z-(e<<16);e=J[g+4>>2];if(q&32768)break ka;e=Vg(f);break ka}e=Ug(f)}e=(e|0)==J[h+2749680>>2];J[c>>2]=e?G:M;h=(u<<2)+d|0;g=h-4|0;J[g>>2]=J[g>>2]|2;J[h+4>>2]=J[h+4>>2]|4;g=d+y|0;q=g-4|0;J[q>>2]=J[q>>2]|1;J[g+4>>2]=J[g+4>>2]|8;J[h>>2]=J[h>>2]|(e?64:1088);J[g>>2]=J[g>>2]|(e?16:272);h=d-4|0;J[h>> +2]=J[h>>2]|(e?32:544);J[d+4>>2]=J[d+4>>2]|(e?128:2176);e=J[d>>2]|4096;J[d>>2]=e}J[d>>2]=e&-16385;if((b|0)<2)break P;d=d+y|0;e=J[d>>2];if(e&20480)break Q;b=J[f+16>>2]+(J[((D|e&255)<<2)+2745584>>2]<<2)|0;J[f+12>>2]=b;h=J[b>>2];b=J[h>>2];g=J[f+4>>2]-b|0;J[f+4>>2]=g;q=J[f>>2];la:{if(b>>>0<=q>>>16>>>0){J[f>>2]=q-(b<<16);b=J[h+4>>2];if(g&32768)break la;b=Vg(f);break la}b=Ug(f)}if(!b)break R;c=(x<<2)+c|0}e=(e>>>4&255)<<2;b=J[f+16>>2]+(J[e+2750704>>2]<<2)|0;J[f+12>>2]=b;h=J[b>>2];b=J[h>>2];g=J[f+4>>2]-b| +0;J[f+4>>2]=g;q=J[f>>2];ma:{if(b>>>0<=q>>>16>>>0){J[f>>2]=q-(b<<16);b=J[h+4>>2];if(g&32768)break ma;b=Vg(f);break ma}b=Ug(f)}b=(b|0)==J[e+2749680>>2];J[c>>2]=b?G:M;c=(u<<2)+d|0;e=c-4|0;J[e>>2]=J[e>>2]|2;J[c+4>>2]=J[c+4>>2]|4;e=d+y|0;h=e-4|0;J[h>>2]=J[h>>2]|1;J[e+4>>2]=J[e+4>>2]|8;J[c>>2]=J[c>>2]|(b?64:1088);J[e>>2]=J[e>>2]|(b?16:272);c=d-4|0;J[c>>2]=J[c>>2]|(b?32:544);J[d+4>>2]=J[d+4>>2]|(b?128:2176);e=J[d>>2]|4096;J[d>>2]=e;break Q}e=J[d>>2]}J[d>>2]=e&-16385}o=o+4|0;j=j+4|0;d=l-1|0;if((l|0)>1)continue; +break}m=m+$|0;i=i+aa|0;s=s+4|0;if((p|0)>(s|0))continue;break}}i=1;if(!(X&32))break v;b=J[f+16>>2];J[f+12>>2]=b+72;d=J[b+72>>2];b=J[d>>2];m=J[f+4>>2]-b|0;J[f+4>>2]=m;j=J[f>>2];na:{if(b>>>0<=j>>>16>>>0){J[f>>2]=j-(b<<16);b=J[d+4>>2];if(m&32768)break na;b=Vg(f);break na}b=Ug(f)}m=J[J[f+12>>2]>>2];d=J[m>>2];j=J[f+4>>2]-d|0;J[f+4>>2]=j;c=J[f>>2];oa:{if(d>>>0<=c>>>16>>>0){J[f>>2]=c-(d<<16);d=J[m+4>>2];if(j&32768)break oa;d=Vg(f);break oa}d=Ug(f)}j=J[J[f+12>>2]>>2];m=J[j>>2];c=J[f+4>>2]-m|0;J[f+4>>2]=c; +d=d&1;e=b<<1&2;b=J[f>>2];pa:{if(m>>>0<=b>>>16>>>0){J[f>>2]=b-(m<<16);b=J[j+4>>2];if(c&32768)break pa;b=Vg(f);break pa}b=Ug(f)}m=d|e;j=J[J[f+12>>2]>>2];d=J[j>>2];c=J[f+4>>2]-d|0;J[f+4>>2]=c;e=J[f>>2];qa:{if(d>>>0<=e>>>16>>>0){J[f>>2]=e-(d<<16);d=J[j+4>>2];if(c&32768)break qa;d=Vg(f);break qa}d=Ug(f)}if((d&1|(b<<1&2|m<<2))==10)break v;rd(205610,0);break v}fa(203962,199135,282,212044);B()}e=J[r+36>>2];d=J[e+20>>2];c=J[r+40>>2];s=J[c+24>>2];o=J[c+20>>2];if(J[t+20>>2]==1){b=0;l=0;if((d|0)>=2){d=J[e+28>> +2];l=J[d+4>>2]-J[d>>2]>>2}if((o|0)>=2){b=J[c+28>>2];b=J[b+4>>2]-J[b>>2]>>2}i=1;if((o|0)<=0|(s|0)<=0)break v;h=J[r+28>>2];d=1<>>1|0;j=m?0-d|0:-1;m=J[J[e+28>>2]+4>>2]+4|0;c=J[J[c+28>>2]>>2];g=b<<2;x=g<<2;k=l<<2;y=k<<2;while(1){b=s;n=m;e=c;while(1){i=J[n>>2];if((i&20480)==4096){i=J[h+16>>2]+(J[((i>>>2&2048|i&255)<<2)+2751728>>2]<<2)|0;J[h+12>>2]=i;l=J[i>>2];i=J[l>>2];f=J[h+4>>2]-i|0;J[h+4>>2]=f;p=J[h>>2];ra:{if(i>>>0<=p>>>16>>>0){J[h>>2]=p-(i<<16);i=J[l+4>>2];if(f&32768)break ra;i=Vg(h);break ra}i= +Ug(h)}i=i?d:j;f=0-i|0;l=i;i=J[e>>2];J[e>>2]=((i|0)<0?f:l)+i;J[n>>2]=J[n>>2]|8192}i=b;sa:{if(o>>>0<2)break sa;b=e+g|0;l=k+n|0;f=J[l>>2];if((f&20480)==4096){f=J[h+16>>2]+(J[((f>>>2&2048|f&255)<<2)+2751728>>2]<<2)|0;J[h+12>>2]=f;p=J[f>>2];f=J[p>>2];v=J[h+4>>2]-f|0;J[h+4>>2]=v;u=J[h>>2];ta:{if(f>>>0<=u>>>16>>>0){J[h>>2]=u-(f<<16);f=J[p+4>>2];if(v&32768)break ta;f=Vg(h);break ta}f=Ug(h)}f=f?d:j;u=0-f|0;p=f;f=J[b>>2];J[b>>2]=((f|0)<0?u:p)+f;J[l>>2]=J[l>>2]|8192}if(o>>>0<3)break sa;b=b+g|0;l=k+l|0;f=J[l>> +2];if((f&20480)==4096){f=J[h+16>>2]+(J[((f>>>2&2048|f&255)<<2)+2751728>>2]<<2)|0;J[h+12>>2]=f;p=J[f>>2];f=J[p>>2];v=J[h+4>>2]-f|0;J[h+4>>2]=v;u=J[h>>2];ua:{if(f>>>0<=u>>>16>>>0){J[h>>2]=u-(f<<16);f=J[p+4>>2];if(v&32768)break ua;f=Vg(h);break ua}f=Ug(h)}f=f?d:j;u=0-f|0;p=f;f=J[b>>2];J[b>>2]=((f|0)<0?u:p)+f;J[l>>2]=J[l>>2]|8192}if(o>>>0<4)break sa;l=k+l|0;f=J[l>>2];if((f&20480)!=4096)break sa;f=J[h+16>>2]+(J[((f>>>2&2048|f&255)<<2)+2751728>>2]<<2)|0;J[h+12>>2]=f;p=J[f>>2];f=J[p>>2];v=J[h+4>>2]-f|0; +J[h+4>>2]=v;u=b+g|0;b=J[h>>2];va:{if(f>>>0<=b>>>16>>>0){J[h>>2]=b-(f<<16);b=J[p+4>>2];if(v&32768)break va;b=Vg(h);break va}b=Ug(h)}b=b?d:j;p=0-b|0;f=b;b=J[u>>2];J[u>>2]=((b|0)<0?p:f)+b;J[l>>2]=J[l>>2]|8192}e=e+4|0;n=n+4|0;b=i-1|0;if((i|0)>1)continue;break}c=c+x|0;m=m+y|0;b=(o|0)>4;o=o-4|0;if(b)continue;break}i=1;break v}b=0;l=0;if((d|0)>=2){d=J[e+28>>2];l=J[d+4>>2]-J[d>>2]>>2}if((o|0)>=2){b=J[c+28>>2];b=J[b+4>>2]-J[b>>2]>>2}i=1;if((o|0)<=0|(s|0)<=0)break v;d=J[r+32>>2];g=1<>>1|0;k=m?0-g|0:-1;m= +J[J[e+28>>2]+4>>2]+4|0;h=J[J[c+28>>2]>>2];f=b<<2;y=f<<2;x=l<<2;p=x<<2;while(1){c=s;b=c;e=m;n=e;j=h;l=h;wa:{xa:{ya:{za:{Aa:{if(o>>>0>=2)while(1){if((J[e>>2]&20480)==4096){if(!(H[d+16|0]&1))break Aa;b=J[d+8>>2];n=b-1|0;J[d+8>>2]=n;Ba:{if((b|0)<=0){i=0;b=Ng(d);if((b|0)>=0)break Ba;break v}b=J[d+4>>2]>>>n&1}b=b?g:k;i=0-b|0;n=b;b=J[j>>2];J[j>>2]=((b|0)<0?i:n)+b;J[e>>2]=J[e>>2]|8192}b=c;n=f+j|0;l=e+x|0;if((J[l>>2]&20480)==4096){if(!(H[d+16|0]&1))break za;c=J[d+8>>2];i=c-1|0;J[d+8>>2]=i;Ca:{if((c|0)<=0){i= +0;c=Ng(d);if((c|0)>=0)break Ca;break v}c=J[d+4>>2]>>>i&1}c=c?g:k;u=0-c|0;i=c;c=J[n>>2];J[n>>2]=((c|0)<0?u:i)+c;J[l>>2]=J[l>>2]|8192}Da:{if(o>>>0<3)break Da;c=f+n|0;n=l+x|0;if((J[n>>2]&20480)==4096){if(!(H[d+16|0]&1))break ya;i=J[d+8>>2];l=i-1|0;J[d+8>>2]=l;Ea:{if((i|0)<=0){i=0;l=Ng(d);if((l|0)>=0)break Ea;break v}l=J[d+4>>2]>>>l&1}i=l?g:k;u=0-i|0;l=i;i=J[c>>2];J[c>>2]=((i|0)<0?u:l)+i;J[n>>2]=J[n>>2]|8192}if(o>>>0<4)break Da;n=n+x|0;if((J[n>>2]&20480)!=4096)break Da;if(!(H[d+16|0]&1))break xa;i=J[d+ +8>>2];l=i-1|0;J[d+8>>2]=l;Fa:{if((i|0)<=0){i=0;l=Ng(d);if((l|0)>=0)break Fa;break v}l=J[d+4>>2]>>>l&1}i=c+f|0;c=J[i>>2];u=i;i=l?g:k;J[u>>2]=c+((c|0)<0?0-i|0:i);J[n>>2]=J[n>>2]|8192}j=j+4|0;e=e+4|0;c=b-1|0;if((b|0)>1)continue;break wa}while(1){if((J[n>>2]&20480)==4096){if(!(H[d+16|0]&1))break Aa;j=J[d+8>>2];c=j-1|0;J[d+8>>2]=c;Ga:{if((j|0)<=0){i=0;e=Ng(d);if((e|0)>=0)break Ga;break v}e=J[d+4>>2]>>>c&1}j=e?g:k;e=0-j|0;c=j;j=J[l>>2];J[l>>2]=((j|0)<0?e:c)+j;J[n>>2]=J[n>>2]|8192}l=l+4|0;n=n+4|0;j=(b|0)> +1;b=b-1|0;if(j)continue;break}break wa}fa(205319,199135,720,212078);B()}fa(205319,199135,728,212078);B()}fa(205319,199135,736,212078);B()}fa(205319,199135,744,212078);B()}h=h+y|0;m=m+p|0;b=(o|0)>4;o=o-4|0;if(b)continue;break}i=1;break v}b=J[J[A+32>>2]+24>>2]+O|0;d=J[r+40>>2];o=J[d+20>>2];j=0;c=J[r+36>>2];if(J[c+20>>2]>=2){j=J[c+28>>2];j=J[j+4>>2]-J[j>>2]>>2}n=K[b+418|0];k=J[r+32>>2];s=J[d+24>>2];Ha:{if((o|0)>=2){b=1<>>1|b;b=J[d+28>>2];e=J[b+4>>2]-J[b>>2]|0;h=e>>2;break Ha}i=1;if((o|0)!=1)break v; +b=1<>>1|b;e=0;h=0}if((s|0)<=0){i=1;break v}x=0-g|0;v=n&8;n=J[J[c+28>>2]+4>>2]+4|0;m=J[J[d+28>>2]>>2];u=0-j<<2;G=e<<2;f=j<<2;M=f<<2;Ia:{while(1){b=s;d=n;j=m;while(1){e=b;b=J[d>>2];if(!(!(b&255)|b&20480)){Ja:{Ka:{La:{if(H[k+16|0]&1){b=J[k+8>>2];c=b-1|0;J[k+8>>2]=c;Ma:{if((b|0)<=0){i=0;b=Ng(k);if((b|0)>=0)break Ma;break v}b=J[k+4>>2]>>>c&1}if(!b)break Ja;if(!(H[k+16|0]&1))break e;b=J[k+8>>2];c=b-1|0;J[k+8>>2]=c;Na:{if((b|0)<=0){i=0;c=Ng(k);if((c|0)>=0)break Na;break v}c=J[k+4>>2]>>>c&1}i=d+f| +0;Oa:{if(v){J[i+4>>2]=J[i+4>>2]|8;b=i-4|0;J[b>>2]=J[b>>2]|1;b=J[i>>2];if(c){b=b|272;break La}b=b|16;break Oa}b=d+u|0;J[b+4>>2]=J[b+4>>2]|4;l=b-4|0;J[l>>2]=J[l>>2]|2;l=i-4|0;J[l>>2]=J[l>>2]|1;J[i+4>>2]=J[i+4>>2]|8;l=J[b>>2];if(c){J[b>>2]=l|1088;b=J[i>>2]|272;break La}J[b>>2]=l|64;b=J[i>>2]|16}y=128;l=32;break Ka}break e}y=2176;l=544}J[i>>2]=b;b=d-4|0;J[b>>2]=J[b>>2]|l;J[d+4>>2]=y|J[d+4>>2];J[d>>2]=J[d>>2]|4096;J[j>>2]=c?x:g}J[d>>2]=J[d>>2]|16384}Pa:{if(o>>>0<2)break Pa;y=h<<2;p=y+j|0;l=d+f|0;b=J[l>> +2];if(!(!(b&255)|b&20480)){if(!(H[k+16|0]&1))break d;b=J[k+8>>2];c=b-1|0;J[k+8>>2]=c;Qa:{if((b|0)<=0){i=0;c=Ng(k);if((c|0)>=0)break Qa;break v}c=J[k+4>>2]>>>c&1}if(c){if(!(H[k+16|0]&1))break d;b=J[k+8>>2];c=b-1|0;J[k+8>>2]=c;Ra:{if((b|0)<=0){i=0;c=Ng(k);if((c|0)>=0)break Ra;break v}c=J[k+4>>2]>>>c&1}J[d+4>>2]=J[d+4>>2]|4;b=d-4|0;J[b>>2]=J[b>>2]|2;b=f+l|0;i=b-4|0;J[i>>2]=J[i>>2]|1;J[b+4>>2]=J[b+4>>2]|8;J[d>>2]=J[d>>2]|(c?1088:64);J[b>>2]=J[b>>2]|(c?272:16);b=l-4|0;J[b>>2]=J[b>>2]|(c?544:32);J[l+4>> +2]=J[l+4>>2]|(c?2176:128);J[l>>2]=J[l>>2]|4096;J[p>>2]=c?x:g}J[l>>2]=J[l>>2]|16384}if(o>>>0<3)break Pa;p=p+y|0;c=f+l|0;b=J[c>>2];if(!(!(b&255)|b&20480)){if(!(H[k+16|0]&1))break c;b=J[k+8>>2];i=b-1|0;J[k+8>>2]=i;Sa:{if((b|0)<=0){i=0;b=Ng(k);if((b|0)>=0)break Sa;break v}b=J[k+4>>2]>>>i&1}if(b){if(!(H[k+16|0]&1))break c;b=J[k+8>>2];i=b-1|0;J[k+8>>2]=i;Ta:{if((b|0)<=0){i=0;b=Ng(k);if((b|0)>=0)break Ta;break v}b=J[k+4>>2]>>>i&1}J[l+4>>2]=J[l+4>>2]|4;i=l-4|0;J[i>>2]=J[i>>2]|2;i=c+f|0;D=i-4|0;J[D>>2]=J[D>> +2]|1;J[i+4>>2]=J[i+4>>2]|8;J[l>>2]=J[l>>2]|(b?1088:64);J[i>>2]=J[i>>2]|(b?272:16);i=c-4|0;J[i>>2]=J[i>>2]|(b?544:32);J[c+4>>2]=J[c+4>>2]|(b?2176:128);J[c>>2]=J[c>>2]|4096;J[p>>2]=b?x:g}J[c>>2]=J[c>>2]|16384}if(o>>>0<4)break Pa;l=c+f|0;b=J[l>>2];if(!(b&255)|b&20480)break Pa;if(!(H[k+16|0]&1))break b;b=J[k+8>>2];i=b-1|0;J[k+8>>2]=i;Ua:{if((b|0)<=0){i=0;b=Ng(k);if((b|0)>=0)break Ua;break v}b=J[k+4>>2]>>>i&1}if(b){if(!(H[k+16|0]&1))break Ia;b=J[k+8>>2];i=b-1|0;J[k+8>>2]=i;Va:{if((b|0)<=0){i=0;b=Ng(k); +if((b|0)>=0)break Va;break v}b=J[k+4>>2]>>>i&1}J[c+4>>2]=J[c+4>>2]|4;i=c-4|0;J[i>>2]=J[i>>2]|2;i=f+l|0;D=i-4|0;J[D>>2]=J[D>>2]|1;J[i+4>>2]=J[i+4>>2]|8;J[c>>2]=J[c>>2]|(b?1088:64);J[i>>2]=J[i>>2]|(b?272:16);c=l-4|0;J[c>>2]=J[c>>2]|(b?544:32);J[l+4>>2]=J[l+4>>2]|(b?2176:128);J[l>>2]=J[l>>2]|4096;J[p+y>>2]=b?x:g}J[l>>2]=J[l>>2]|16384}j=j+4|0;d=d+4|0;b=e-1|0;if((e|0)>1)continue;break}m=m+G|0;n=n+M|0;b=(o|0)>4;o=o-4|0;if(b)continue;break}i=1;break v}break b}if(K[(J[J[A+32>>2]+24>>2]+O|0)+418|0]&2)fba(J[r+ +28>>2]);if(i){W=W+1|0;if((W|0)>=J[t+12>>2])break t;continue}break}J[Q+4>>2]=J[t+20>>2];J[Q>>2]=_;rd(204513,Q);b=-1;break i}Wa:switch(J[t+20>>2]-1|0){default:fa(200874,199135,308,212044);B();case 1:d=K[(J[J[A+32>>2]+24>>2]+O|0)+418|0]<<27>>31;d=gF(J[r+32>>2],d&127,d&42);b=-1;if((d|0)<0)break i;if(d)rd(204881,0);lv(J[r+32>>2]);J[r+32>>2]=0;break;case 0:break Wa}J[r+12>>2]=J[t>>2];b=J[t+4>>2];d=J[t>>2];J[(b?b:Z)>>2]=d;J[(d?d:Z)+4>>2]=b;J[t>>2]=0;J[t+4>>2]=0;b=J[t+24>>2];if(b)Pf(b);uc(t);t=J[r+12>>2]; +if(t)continue;break}}if(J[r+12>>2])break h}r=r+44|0;b=(V|0)>1;V=V-1|0;if(b)continue;break}}U=U+40|0;d=I-1|0;if((I|0)>1)continue;break}}E=E+32|0;d=N-1|0;if((N|0)>1)continue;break}}S=S+60|0;d=C-1|0;if((C|0)>1)continue;break}}R=R+32|0;b=(T|0)>1;T=T-1|0;if(b)continue;break}}b=0}fc=Q+16|0;break a}fa(204958,199135,332,212044);B()}fa(202239,199135,234,212044);B()}fa(200013,199135,218,212044);B()}fa(205319,199135,519,212063);B()}fa(205319,199135,528,212063);B()}fa(205319,199135,537,212063);B()}fa(205319, +199135,546,212063);B()}Xa:{if(b){j=-1;c=208066;break Xa}Ya:{Za:{_a:{c=J[a+56>>2];b=0;$a:{if((c|0)<=0)break $a;e=J[A+36>>2];while(1){j=J[e+20>>2];if((j|0)>0){N=J[J[A+32>>2]+24>>2]+P(Y,488)|0;n=J[e+24>>2];h=0;while(1){m=J[n+4>>2];ab:{if(!m)break ab;i=0;if(J[n>>2]<=0)break ab;while(1){o=J[m+4>>2];bb:{if(!o)break bb;r=J[m+28>>2];C=K[N+417|0]-r|0;cb:{if(!(r|C))break cb;j=J[o+20>>2];if((j|0)<=0)break cb;c=J[o+24>>2];if((c|0)<=0)break cb;I=1<>2];l=k^-1;b=0;s=0;while(1){if((c|0)>0){d=J[o+ +28>>2];j=0;while(1){t=j<<2;f=b<<2;x=t+J[f+d>>2]|0;g=J[x>>2];c=g>>31;c=(c^g)-c|0;db:{if((c|0)>=(I|0)){c=c>>>r|0;J[x>>2]=(g|0)<0?0-c|0:c;break db}c=c<>2]}s=1;c=c&l}J[t+J[d+f>>2]>>2]=(g|0)<0?0-c|0:c}c=J[o+24>>2];j=j+1|0;if((c|0)>(j|0))continue;break}j=J[o+20>>2]}b=b+1|0;if((j|0)>(b|0))continue;break}}if(!J[A+48>>2])break bb;oF(J[m+4>>2],13);b=J[m+16>>2];if((b|0)<0)break _a;if((b|0)==8192)break bb;s=J[m+4>>2];j=J[s+20>>2];if((j|0)<=0)break bb;c=J[s+24>>2];if((c| +0)<=0)break bb;d=b;o=0;while(1){if((c|0)>0){r=J[J[s+28>>2]+(o<<2)>>2];j=0;while(1){b=r+(j<<2)|0;c=b;b=J[b>>2];g=b>>31;C=vEb(b,g,d,0);J[c>>2]=b|g?(jc&8191)<<19|C>>>13:0;c=J[s+24>>2];j=j+1|0;if((c|0)>(j|0))continue;break}j=J[s+20>>2]}o=o+1|0;if((o|0)<(j|0))continue;break}}m=m+32|0;i=i+1|0;if((i|0)>2])continue;break}j=J[e+20>>2]}n=n+60|0;h=h+1|0;if((j|0)>(h|0))continue;break}c=J[a+56>>2]}e=e+32|0;Y=Y+1|0;if((Y|0)<(c|0))continue;break}b=0;if((c|0)<=0)break $a;j=J[A+36>>2];c=0;while(1){d=J[j+16>> +2];b=J[j+28>>2];m=J[b>>2];if((m|0)>0){n=J[d+4>>2];i=J[d+12>>2]-n|0;s=J[d+8>>2];r=J[d+16>>2]-s|0;e=J[d+28>>2];o=J[e>>2];pba(b,o,n,s,i,r,J[d+20>>2]>=2?J[e+4>>2]-o>>2:0,m-1|0)}j=j+32|0;c=c+1|0;b=J[a+56>>2];if((c|0)<(b|0))continue;break}b=(b|0)==3}eb:{fb:switch(K[J[A+32>>2]+16|0]-1|0){case 1:if(!b)break Za;d=J[A+36>>2];b=J[d+16>>2];m=J[d+80>>2];t=0;gb:{hb:{j=J[b+20>>2];c=J[d+48>>2];if((j|0)!=J[c+20>>2])break hb;d=J[b+24>>2];if((d|0)!=J[c+24>>2]|(j|0)!=J[m+20>>2]|(d|0)!=J[m+24>>2])break hb;if(!((j|0)<= +0|(d|0)<=0)){e=J[m+28>>2];o=J[c+28>>2];n=J[b+28>>2];m=d-1|0;r=d&1;while(1){b=t<<2;s=J[b+e>>2];h=J[b+o>>2];i=J[b+n>>2];if(r){c=J[s>>2];g=J[h>>2];b=J[i>>2]-(c+g>>2)|0;J[i>>2]=b+c;J[h>>2]=b;J[s>>2]=b+g;s=s+4|0;h=h+4|0;i=i+4|0;b=m}else b=d;if((d|0)!=1)while(1){g=J[s>>2];C=J[h>>2];c=J[i>>2]-(g+C>>2)|0;J[i>>2]=c+g;J[h>>2]=c;J[s>>2]=c+C;g=J[s+4>>2];C=J[h+4>>2];c=J[i+4>>2]-(g+C>>2)|0;J[i+4>>2]=c+g;J[h+4>>2]=c;J[s+4>>2]=c+C;s=s+8|0;h=h+8|0;i=i+8|0;c=(b|0)>2;b=b-2|0;if(c)continue;break}t=t+1|0;if((j|0)!=(t| +0))continue;break}}break gb}fa(197723,198579,145,211911);B()}break eb;case 0:break fb;default:break eb}if(!b)break Ya;d=J[A+36>>2];b=J[d+16>>2];e=0;ib:{jb:{i=J[b+20>>2];j=J[d+48>>2];m=J[d+80>>2];if(!((i|0)!=J[j+20>>2]|(i|0)!=J[m+20>>2])){d=J[b+24>>2];if((d|0)!=J[j+24>>2]|(d|0)!=J[m+24>>2])break jb;if(!((i|0)<=0|(d|0)<=0)){g=J[m+28>>2];C=J[j+28>>2];N=J[b+28>>2];while(1){b=e<<2;m=J[b+g>>2];j=J[b+C>>2];c=J[b+N>>2];b=d;while(1){o=J[j>>2];r=o>>31;h=J[c>>2];n=J[m>>2];s=n>>31;I=vEb(n,s,11485,0);J[c>>2]= +((jc&8191)<<19|I>>>13)+h;n=vEb(n,s,-5850,8191);s=jc;I=vEb(o,r,-2819,8191);J[j>>2]=(((jc&8191)<<19|I>>>13)+h|0)+((s&8191)<<19|n>>>13);o=vEb(o,r,14516,0);J[m>>2]=((jc&8191)<<19|o>>>13)+h;m=m+4|0;j=j+4|0;c=c+4|0;o=(b|0)>1;b=b-1|0;if(o)continue;break}e=e+1|0;if((i|0)!=(e|0))continue;break}}break ib}fa(199893,198579,229,211928);B()}fa(200721,198579,231,211928);B()}}e=J[a+56>>2];m=J[A+36>>2];kb:{if(J[A+48>>2]){t=0;if((e|0)<=0)break kb;d=m;while(1){b=J[d+16>>2];j=J[b+20>>2];lb:{if((j|0)<=0)break lb;n=0; +c=J[b+24>>2];if((c|0)<=0)break lb;while(1){if((c|0)>0){e=J[J[b+28>>2]+(n<<2)>>2];j=0;while(1){o=e+(j<<2)|0;c=J[o>>2];mb:{if((c|0)<0){c=c+4096&-8192;break mb}c=0-(4096-c&-8192)|0}J[o>>2]=c>>13;c=J[b+24>>2];j=j+1|0;if((c|0)>(j|0))continue;break}j=J[b+20>>2]}n=n+1|0;if((n|0)<(j|0))continue;break}e=J[a+56>>2]}d=d+32|0;t=t+1|0;if((t|0)<(e|0))continue;break}}t=0;if((e|0)<=0)break kb;s=J[a+88>>2];d=s;b=m;while(1){o=0;o=K[d+20|0]?o:1<>2]-1;i=J[b+16>>2];j=J[i+20>>2];nb:{if((j|0)<=0)break nb;n=0;c= +J[i+24>>2];if((c|0)<=0)break nb;while(1){if((c|0)>0){e=J[J[i+28>>2]+(n<<2)>>2];j=0;while(1){c=e+(j<<2)|0;J[c>>2]=J[c>>2]+o;c=J[i+24>>2];j=j+1|0;if((c|0)>(j|0))continue;break}j=J[i+20>>2]}n=n+1|0;if((n|0)<(j|0))continue;break}e=J[a+56>>2]}d=d+32|0;b=b+32|0;t=t+1|0;if((t|0)<(e|0))continue;break}t=0;if((e|0)<=0)break kb;while(1){b=J[s+16>>2];d=-1<>2];d=J[i+20>>2];ob:{pb:{if((d|0)>=2){b=J[i+28>>2];e=J[b+4>>2]-J[b>>2]>>2;break pb}if((d|0)!=1)break ob}if(J[i+ +24>>2]<=0)break ob;o=J[J[i+28>>2]>>2];r=e<<2;while(1){n=d;b=J[i+24>>2];qb:{if((b|0)<=0)break qb;d=o;e=b;if(b&1){e=J[d>>2];d=j;rb:{if((e|0)>=(d|0)){d=c;if((e|0)<=(c|0))break rb}J[o>>2]=d}e=b-1|0;d=o+4|0}if((b|0)==1)break qb;while(1){b=j;h=J[d>>2];sb:{if((b|0)<=(h|0)){b=c;if((h|0)<=(b|0))break sb}J[d>>2]=b}b=j;h=J[d+4>>2];tb:{if((b|0)<=(h|0)){b=c;if((h|0)<=(b|0))break tb}J[d+4>>2]=b}d=d+8|0;b=(e|0)>2;e=e-2|0;if(b)continue;break}}d=n-1|0;o=o+r|0;if((n|0)>1)continue;break}}s=s+32|0;m=m+32|0;t=t+1|0;b= +J[a+56>>2];if((t|0)<(b|0))continue;break}if((b|0)>0){j=J[A+36>>2];c=J[a+88>>2];d=0;while(1){b=J[c>>2];e=J[j>>2]-(((b+J[a+4>>2]|0)-1>>>0)/(b>>>0)|0)|0;b=J[c+4>>2];m=J[j+4>>2]-(((b+J[a+8>>2]|0)-1>>>0)/(b>>>0)|0)|0;b=J[j+16>>2];if(Fk(J[a>>2],d,e,m,J[b+24>>2],J[b+20>>2],b)){j=-4;c=208226;break Xa}c=c+32|0;j=j+32|0;d=d+1|0;if((d|0)>2])continue;break}}}return 0}fa(208520,201400,1777,211807);B()}fa(208145,201400,1072,211788);B()}fa(208145,201400,1077,211788);B()}rd(c,0);return j}function jdb(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=Q(0),r=0,s=0,t=0,u=0,v=0,w=0,x=0;m=fc-48|0;fc=m;a:{b:{c:{d:{if(!b)break d;e:switch(J[b+4>>2]){case 0:J[m+8>>2]=-16777216;J[m+8>>2]=J[b+8>>2];b=J[m+8>>2];c=J[a+2944>>2];if((c|0)!=3){J[m+16>>2]=c;J[m+12>>2]=a+1616;J[m+20>>2]=m+12;c=J[a+1624>>2];J[m+36>>2]=J[a+1628>>2]-1;J[m+32>>2]=c-1;J[m+24>>2]=0;J[m+28>>2]=0;J[m+44>>2]=b;J[m+40>>2]=m+20;b=a+1704|0;e=m+40|0;f:{g:{c=J[a+1580>>2];if(!c)break g;h:{i:{j:{c=J[c+8>>2];switch(kc[J[J[c>> +2]+8>>2]](c)|0){case 2:break h;case 1:break i;case 0:break j;default:break g}}d=J[J[a+1580>>2]+8>>2]+44|0;c=fc+-64|0;fc=c;f=a+96|0;k:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);l:{if(!J[b+12>>2])break l;J[b+1176>>2]=J[b+84>>2];f=J[d+20>>2];g=J[b+80>>2];a=(J[b+88>>2]-g|0)+2|0;m:{if(a>>>0<=M[d+24>>2])break m;if(f)uc(f);J[d+24>>2]=a;f=vc(a>>>0>536870911?-1:a<<3);J[d+20>>2]=f;if((a|0)==J[d+16>>2])break m;h=J[d+12>>2];if(h){uc(h);f= +J[d+20>>2]}J[d+16>>2]=a;w=d,x=vc(a),J[w+12>>2]=x}J[d+28>>2]=f;J[d>>2]=g;J[d+4>>2]=2147483632;if(!yg(b,d))break l;a=e+4|0;while(1){_l(d,J[e>>2],a);if(yg(b,d))continue;break}}break k}if(!K[f+1469|0]){J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;la(2362,b|0,f|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a); +a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break k;uc(a);break k}J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2363,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2]; +if(!a)break k;uc(a)}break f}d=J[J[a+1580>>2]+8>>2]+44|0;c=fc+-64|0;fc=c;f=a+96|0;n:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);o:{if(!J[b+12>>2])break o;J[b+1176>>2]=J[b+84>>2];f=J[d+20>>2];g=J[b+80>>2];a=(J[b+88>>2]-g|0)+2|0;p:{if(a>>>0<=M[d+24>>2])break p;if(f)uc(f);J[d+24>>2]=a;f=vc(a>>>0>536870911?-1:a<<3);J[d+20>>2]=f;if((a|0)==J[d+16>>2])break p;h=J[d+12>>2];if(h){uc(h);f=J[d+20>>2]}J[d+16>>2]=a;w=d,x=vc(a),J[w+12>>2]=x}J[d+ +28>>2]=f;J[d>>2]=g;J[d+4>>2]=2147483632;if(!xg(b,d))break o;a=e+4|0;while(1){_l(d,J[e>>2],a);if(xg(b,d))continue;break}}break n}if(!K[f+1469|0]){J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;la(2364,b|0,f|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a); +a=J[c+40>>2];if(!a)break n;uc(a);break n}J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2365,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break n;uc(a)}break f}d=J[J[a+1580>>2]+ +8>>2]+44|0;c=fc+-64|0;fc=c;f=a+96|0;q:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);r:{if(!J[b+12>>2])break r;J[b+1176>>2]=J[b+84>>2];f=J[d+20>>2];g=J[b+80>>2];a=(J[b+88>>2]-g|0)+2|0;s:{if(a>>>0<=M[d+24>>2])break s;if(f)uc(f);J[d+24>>2]=a;f=vc(a>>>0>536870911?-1:a<<3);J[d+20>>2]=f;if((a|0)==J[d+16>>2])break s;h=J[d+12>>2];if(h){uc(h);f=J[d+20>>2]}J[d+16>>2]=a;w=d,x=vc(a),J[w+12>>2]=x}J[d+28>>2]=f;J[d>>2]=g;J[d+4>>2]=2147483632;if(!wg(b, +d))break r;a=e+4|0;while(1){_l(d,J[e>>2],a);if(wg(b,d))continue;break}}break q}if(!K[f+1469|0]){J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;la(2366,b|0,f|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break q;uc(a);break q}J[c+48>> +2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2367,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break q;uc(a)}break f}d=a+1672|0;c=fc+-64|0;fc=c;f=a+96|0;t:{if(!K[f+1468|0]){if(!(!K[b+ +1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);u:{if(!J[b+12>>2])break u;J[b+1176>>2]=J[b+84>>2];f=J[d+20>>2];g=J[b+80>>2];a=(J[b+88>>2]-g|0)+2|0;v:{if(a>>>0<=M[d+24>>2])break v;if(f)uc(f);J[d+24>>2]=a;f=vc(a>>>0>536870911?-1:a<<3);J[d+20>>2]=f;if((a|0)==J[d+16>>2])break v;h=J[d+12>>2];if(h){uc(h);f=J[d+20>>2]}J[d+16>>2]=a;w=d,x=vc(a),J[w+12>>2]=x}J[d+28>>2]=f;J[d>>2]=g;J[d+4>>2]=2147483632;if(!vg(b,d))break u;a=e+4|0;while(1){_l(d,J[e>>2],a);if(vg(b,d))continue; +break}}break t}if(!K[f+1469|0]){J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;la(2368,b|0,f|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break t;uc(a);break t}J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+ +44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2369,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break t;uc(a)}}fc=c- -64|0;break d}J[m+24>>2]=b;J[m+20>>2]=a+1640;b=a+1704|0;e=m+20|0;w:{x:{c=J[a+1580>>2];if(!c)break x;y:{z:{A:{c=J[c+8>>2];switch(kc[J[J[c>> +2]+8>>2]](c)|0){case 2:break y;case 1:break z;case 0:break A;default:break x}}d=J[J[a+1580>>2]+8>>2]+44|0;c=fc+-64|0;fc=c;f=a+96|0;B:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);C:{if(!J[b+12>>2])break C;J[b+1176>>2]=J[b+84>>2];f=J[d+20>>2];g=J[b+80>>2];a=(J[b+88>>2]-g|0)+2|0;D:{if(a>>>0<=M[d+24>>2])break D;if(f)uc(f);J[d+24>>2]=a;f=vc(a>>>0>536870911?-1:a<<3);J[d+20>>2]=f;if((a|0)==J[d+16>>2])break D;h=J[d+12>>2];if(h){uc(h);f= +J[d+20>>2]}J[d+16>>2]=a;w=d,x=vc(a),J[w+12>>2]=x}J[d+28>>2]=f;J[d>>2]=g;J[d+4>>2]=2147483632;if(!yg(b,d))break C;a=e+4|0;while(1){oh(d,J[e>>2],a);if(yg(b,d))continue;break}}break B}if(!K[f+1469|0]){J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;la(2370,b|0,f|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a); +a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break B;uc(a);break B}J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2371,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2]; +if(!a)break B;uc(a)}break w}d=J[J[a+1580>>2]+8>>2]+44|0;c=fc+-64|0;fc=c;f=a+96|0;E:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);F:{if(!J[b+12>>2])break F;J[b+1176>>2]=J[b+84>>2];f=J[d+20>>2];g=J[b+80>>2];a=(J[b+88>>2]-g|0)+2|0;G:{if(a>>>0<=M[d+24>>2])break G;if(f)uc(f);J[d+24>>2]=a;f=vc(a>>>0>536870911?-1:a<<3);J[d+20>>2]=f;if((a|0)==J[d+16>>2])break G;h=J[d+12>>2];if(h){uc(h);f=J[d+20>>2]}J[d+16>>2]=a;w=d,x=vc(a),J[w+12>>2]=x}J[d+ +28>>2]=f;J[d>>2]=g;J[d+4>>2]=2147483632;if(!xg(b,d))break F;a=e+4|0;while(1){oh(d,J[e>>2],a);if(xg(b,d))continue;break}}break E}if(!K[f+1469|0]){J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;la(2372,b|0,f|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a); +a=J[c+40>>2];if(!a)break E;uc(a);break E}J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2373,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break E;uc(a)}break w}d=J[J[a+1580>>2]+ +8>>2]+44|0;c=fc+-64|0;fc=c;f=a+96|0;H:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);I:{if(!J[b+12>>2])break I;J[b+1176>>2]=J[b+84>>2];f=J[d+20>>2];g=J[b+80>>2];a=(J[b+88>>2]-g|0)+2|0;J:{if(a>>>0<=M[d+24>>2])break J;if(f)uc(f);J[d+24>>2]=a;f=vc(a>>>0>536870911?-1:a<<3);J[d+20>>2]=f;if((a|0)==J[d+16>>2])break J;h=J[d+12>>2];if(h){uc(h);f=J[d+20>>2]}J[d+16>>2]=a;w=d,x=vc(a),J[w+12>>2]=x}J[d+28>>2]=f;J[d>>2]=g;J[d+4>>2]=2147483632;if(!wg(b, +d))break I;a=e+4|0;while(1){oh(d,J[e>>2],a);if(wg(b,d))continue;break}}break H}if(!K[f+1469|0]){J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;la(2374,b|0,f|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break H;uc(a);break H}J[c+48>> +2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2375,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break H;uc(a)}break w}d=a+1672|0;c=fc+-64|0;fc=c;f=a+96|0;K:{if(!K[f+1468|0]){if(!(!K[b+ +1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);L:{if(!J[b+12>>2])break L;J[b+1176>>2]=J[b+84>>2];f=J[d+20>>2];g=J[b+80>>2];a=(J[b+88>>2]-g|0)+2|0;M:{if(a>>>0<=M[d+24>>2])break M;if(f)uc(f);J[d+24>>2]=a;f=vc(a>>>0>536870911?-1:a<<3);J[d+20>>2]=f;if((a|0)==J[d+16>>2])break M;h=J[d+12>>2];if(h){uc(h);f=J[d+20>>2]}J[d+16>>2]=a;w=d,x=vc(a),J[w+12>>2]=x}J[d+28>>2]=f;J[d>>2]=g;J[d+4>>2]=2147483632;if(!vg(b,d))break L;a=e+4|0;while(1){oh(d,J[e>>2],a);if(vg(b,d))continue; +break}}break K}if(!K[f+1469|0]){J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;la(2376,b|0,f|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break K;uc(a);break K}J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+ +44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2377,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,c+32|0,c|0,d|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+20>>2];if(a)uc(a);a=J[c+8>>2];if(a)uc(a);a=J[c+52>>2];if(a)uc(a);a=J[c+40>>2];if(!a)break K;uc(a)}}fc=c- -64|0;break d;case 1:e=fc-224|0;fc=e;d=b+8|0;h=J[b+24>>2];u=h>>>16|0;f=J[b+20>>2];v=f>>>16|0;c=vc(256);N:{while(1){k=P(g,12);r=K[k+ +2771675|0];l=r<<24>>24<0;s=K[b+19|0];p=s<<24>>24<0;O:{r=l?J[k+2771668>>2]:r;if((r|0)!=((p?J[b+12>>2]:s)|0))break O;if(r){k=k+2771664|0;if(qd(l?J[k>>2]:k,p?J[d>>2]:d,r))break O}d=g<<6;break N}g=g+1|0;if((g|0)!=54)continue;break}d=0}f=v&255|(f<<16&16711680|f&-16711936);h=u&255|(h<<16&16711680|h&-16711936);g=0;b=c;while(1){k=K[(d+g|0)+344288|0]==1?h:f;H[b|0]=k;H[b+1|0]=k>>>8;H[b+2|0]=k>>>16;H[b+3|0]=k>>>24;k=K[(d+(g|3)|0)+344288|0]==1?h:f;H[b+12|0]=k;H[b+13|0]=k>>>8;H[b+14|0]=k>>>16;H[b+15|0]=k>>>24; +k=K[(d+(g|2)|0)+344288|0]==1?h:f;H[b+8|0]=k;H[b+9|0]=k>>>8;H[b+10|0]=k>>>16;H[b+11|0]=k>>>24;k=K[(d+(g|1)|0)+344288|0]==1?h:f;H[b+4|0]=k;H[b+5|0]=k>>>8;H[b+6|0]=k>>>16;H[b+7|0]=k>>>24;b=b+16|0;g=g+4|0;if((g|0)!=64)continue;break}b=J[a+52>>2];d=J[b+44>>2];J[e+216>>2]=J[b+40>>2];J[e+220>>2]=d;d=J[b+36>>2];J[e+208>>2]=J[b+32>>2];J[e+212>>2]=d;d=J[b+28>>2];J[e+200>>2]=J[b+24>>2];J[e+204>>2]=d;d=J[b+20>>2];J[e+192>>2]=J[b+16>>2];J[e+196>>2]=d;d=J[b+12>>2];J[e+184>>2]=J[b+8>>2];J[e+188>>2]=d;d=J[b+4>>2]; +J[e+176>>2]=J[b>>2];J[e+180>>2]=d;i=O[a+2920>>3];if(i>1){n=O[a+32>>3];j=O[a+24>>3]/i;O[e+176>>3]=j*O[e+176>>3];O[e+192>>3]=j*O[e+192>>3];O[e+208>>3]=j*O[e+208>>3];i=n/i;O[e+184>>3]=i*O[e+184>>3];O[e+200>>3]=i*O[e+200>>3];O[e+216>>3]=i*O[e+216>>3]}b=e+176|0;xq(b);J[e+168>>2]=0;J[e+172>>2]=0;J[e+124>>2]=b;J[e+120>>2]=32;J[e+112>>2]=8;J[e+116>>2]=8;J[e+104>>2]=c;J[e+108>>2]=c;J[e+100>>2]=e+104;J[e+92>>2]=1073741816;J[e+96>>2]=0;J[e+84>>2]=0;J[e+88>>2]=8;J[e+76>>2]=8;J[e+80>>2]=1073741816;J[e+64>>2]= +e+100;J[e+56>>2]=128;J[e+60>>2]=128;J[e+48>>2]=0;J[e+52>>2]=1071644672;J[e+40>>2]=0;J[e+44>>2]=1071644672;g=0;J[e+32>>2]=0;J[e+28>>2]=e+124;J[e+24>>2]=e- -64;J[e+12>>2]=a+1640;J[e+20>>2]=e+24;J[e+16>>2]=e+168;P:{i=O[a+2904>>3];Q:{if(!(R(i+-1)<1.1920928955078125E-7)){b=a+1836|0;while(1){h=b+(g<<2)|0;j=i*(+(g|0)/255);j=(j>1?1:j)*255+.5;R:{if(j<4294967296&j>=0){d=~~j>>>0;break R}d=0}J[h>>2]=d;d=g|1;h=b+(d<<2)|0;j=i*(+(d|0)/255);j=(j>1?1:j)*255+.5;S:{if(j<4294967296&j>=0){d=~~j>>>0;break S}d=0}J[h>>2]= +d;g=g+2|0;if((g|0)!=256)continue;break}g=0;J[699344]=0;ca(2303,a|0,a+1704|0,e+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break Q;a=a+1836|0;while(1){d=a+(g<<2)|0;i=+(g|0)/255*255+.5;T:{if(i<4294967296&i>=0){b=~~i>>>0;break T}b=0}J[d>>2]=b;b=g|1;d=a+(b<<2)|0;i=+(b|0)/255*255+.5;U:{if(i<4294967296&i>=0){b=~~i>>>0;break U}b=0}J[d>>2]=b;g=g+2|0;if((g|0)!=256)continue;break}break P}J[699344]=0;ca(2303,a|0,a+1704|0,e+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break P}a=Z()|0;b=J[e+168>>2];if(b)uc(b);ba(a| +0);B()}uc(c);a=J[e+168>>2];if(a)uc(a);fc=e+224|0;break d;case 2:c=J[b+8>>2];d=J[c+24>>2];if(!d)break d;e=J[c+12>>2];if(!e)break d;f=J[c+16>>2];if(!f)break d;g=J[c+20>>2];h=J[b+16>>2];c=Mx(m+20|0,b+20|0);V:{if((h|0)==4){b=K[b+72|0];J[699344]=0;ua(2300,a|0,c|0,d|0,e|0,f|0,g|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break V;break c}b=K[b+72|0];if(!K[a+2912|0]){J[699344]=0;Ha(2301,a|0,c|0,d|0,e|0,f|0,g|0,h|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break V}J[699344]=0;Ha(2302,a|0,c|0,d|0,e|0, +f|0,g|0,h|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break c}Jd(c);break d;case 4:d=fc-2752|0;fc=d;h=wk(d+2748|0);W:{X:{Y:{Z:{_:{$:{n=O[b+304>>3];o=O[b+288>>3];aa:{if(n-o>1.1920928955078125E-7){i=O[b+312>>3];j=O[b+296>>3];break aa}i=O[b+312>>3];j=O[b+296>>3];if(!(i-j>1.1920928955078125E-7))break $}O[d+2736>>3]=i;O[d+2728>>3]=n;O[d+2720>>3]=j;O[d+2712>>3]=o;J[699344]=0;Dj(h,a+56|0);e=J[699344];J[699344]=0;if((e|0)!=1){J[699344]=0;bs(h);e=J[699344];J[699344]=0;if((e|0)!=1)break _}c=Z()|0;break b}e= +J[a+1792>>2];g=J[a+1784>>2];if((e|0)<(g|0))break Z;k=J[a+1796>>2];l=J[a+1788>>2];if((k|0)<(l|0))break Z;O[d+2728>>3]=e|0;O[d+2712>>3]=g|0;O[d+2736>>3]=k|0;O[d+2720>>3]=l|0}J[d+56>>2]=0;J[d+60>>2]=0;e=d- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+104>>2]=0;J[d+108>>2]=1072693248;J[d+120>>2]=0;J[d+124>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[d+136>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+24>>2]=0;J[d+80>>2]=0;J[d+ +84>>2]=1072693248;J[699344]=0;q=N[b+284>>2];e=J[699344];J[699344]=0;if((e|0)==1)break X;O[d>>3]=q;e=J[h>>2];J[699344]=0;x5(d+24|0,d+2712|0,d,e);e=J[699344];J[699344]=0;if((e|0)==1)break X;J[699344]=0;e=J[b+272>>2];k=J[b+268>>2];g=J[699344];J[699344]=0;if((g|0)==1)break Y;g=0;ba:{ca:{da:{ea:{e=e-k>>3;if((e|0)>0){J[699344]=0;g=e>>>0>1073741823?-1:e<<2;f=_(27,g|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break Y;J[699344]=0;g=_(27,g|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break Y;while(1){J[699344]=0; +J[d>>2]=-16777216;k=J[b+268>>2]+(c<<3)|0;J[d>>2]=J[k>>2];l=c<<2;N[l+g>>2]=N[k+4>>2];k=J[699344];J[699344]=0;if((k|0)==1)break ea;k=f+l|0;l=J[d>>2];H[k|0]=l;H[k+1|0]=l>>>8;H[k+2|0]=l>>>16;H[k+3|0]=l>>>24;c=c+1|0;if((e|0)!=(c|0))continue;break}J[d+136>>2]=e;J[d+132>>2]=g;J[d+128>>2]=f}J[d+16>>2]=0;J[d+20>>2]=0;J[d>>2]=a+1640;J[d+8>>2]=d+24;J[d+4>>2]=d+16;i=O[a+2904>>3];if(R(i+-1)<1.1920928955078125E-7)break da;c=0;b=a+1836|0;while(1){k=b+(c<<2)|0;j=i*(+(c|0)/255);j=(j>1?1:j)*255+.5;fa:{if(j<4294967296& +j>=0){e=~~j>>>0;break fa}e=0}J[k>>2]=e;e=c|1;k=b+(e<<2)|0;j=i*(+(e|0)/255);j=(j>1?1:j)*255+.5;ga:{if(j<4294967296&j>=0){e=~~j>>>0;break ga}e=0}J[k>>2]=e;c=c+2|0;if((c|0)!=256)continue;break}c=0;J[699344]=0;ca(2320,a|0,a+1704|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break ca;a=a+1836|0;while(1){e=a+(c<<2)|0;i=+(c|0)/255*255+.5;ha:{if(i<4294967296&i>=0){b=~~i>>>0;break ha}b=0}J[e>>2]=b;b=c|1;e=a+(b<<2)|0;i=+(b|0)/255*255+.5;ia:{if(i<4294967296&i>=0){b=~~i>>>0;break ia}b=0}J[e>>2]=b;c=c+2|0;if((c| +0)!=256)continue;break}break ba}c=Z()|0;break b}J[699344]=0;ca(2320,a|0,a+1704|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1)break ba}c=Z()|0;a=J[d+16>>2];if(!a)break b;uc(a);break b}if(f)uc(f);if(g)uc(g);a=J[d+16>>2];if(!a)break Z;uc(a)}Jd(h);fc=d+2752|0;break W}c=Z()|0;break b}c=Z()|0;break b}break d;case 3:d=fc-2704|0;fc=d;h=wk(d+2700|0);ja:{ka:{la:{j=O[b+304>>3];n=O[b+288>>3];ma:{if(j-n>1.1920928955078125E-7){i=O[b+312>>3];o=O[b+296>>3];break ma}i=O[b+312>>3];o=O[b+296>>3];if(!(i-o>1.1920928955078125E-7))break la}J[699344]= +0;Dj(h,a+56|0);e=J[699344];J[699344]=0;if((e|0)!=1){J[699344]=0;bs(h);e=J[699344];J[699344]=0;if((e|0)!=1)break ka}c=Z()|0;break b}e=J[a+1792>>2];g=J[a+1784>>2];if((e|0)<(g|0))break ja;k=J[a+1796>>2];l=J[a+1788>>2];if((k|0)<(l|0))break ja;i=+(k|0);o=+(l|0);j=+(e|0);n=+(g|0)}J[d+120>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+32>>2]=0;e=J[h>>2];g=J[e+44>>2];J[d+104>>2]=J[e+40>>2];J[d+108>>2]=g;g=J[e+36>>2];J[d+96>>2]=J[e+32>>2];J[d+100>>2]=g;g=J[e+28>>2];J[d+88>>2]=J[e+24>>2];J[d+92>>2]=g;g=J[e+20>>2];J[d+ +80>>2]=J[e+16>>2];J[d+84>>2]=g;g=J[e+12>>2];J[d+72>>2]=J[e+8>>2];J[d+76>>2]=g;g=J[e+4>>2];e=J[e>>2];O[d+48>>3]=(o+i)*.5;J[d+64>>2]=e;J[d+68>>2]=g;O[d+40>>3]=(n+j)*.5;J[699344]=0;i=R(o-i);j=R(n-j);i=i>j?i:j;O[d+56>>3]=i>1.1920928955078125E-7?2/i:0;e=J[b+272>>2]-J[b+268>>2]>>3;g=J[699344];J[699344]=0;na:{oa:{pa:{qa:{ra:{if((g|0)==1)break ra;g=0;if((e|0)>0){J[699344]=0;g=e>>>0>1073741823?-1:e<<2;f=_(27,g|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break ra;J[699344]=0;g=_(27,g|0)|0;k=J[699344];J[699344]= +0;if((k|0)==1)break ra;while(1){J[699344]=0;J[d+12>>2]=-16777216;k=J[b+268>>2]+(c<<3)|0;J[d+12>>2]=J[k>>2];l=c<<2;N[l+g>>2]=N[k+4>>2];k=J[699344];J[699344]=0;if((k|0)==1)break qa;k=f+l|0;l=J[d+12>>2];H[k|0]=l;H[k+1|0]=l>>>8;H[k+2|0]=l>>>16;H[k+3|0]=l>>>24;c=c+1|0;if((e|0)!=(c|0))continue;break}J[d+120>>2]=e;J[d+116>>2]=g;J[d+112>>2]=f}J[d+24>>2]=0;J[d+28>>2]=0;J[d+12>>2]=a+1640;J[d+20>>2]=d+32;J[d+16>>2]=d+24;i=O[a+2904>>3];if(R(i+-1)<1.1920928955078125E-7)break pa;c=0;b=a+1836|0;while(1){k=b+(c<< +2)|0;j=i*(+(c|0)/255);j=(j>1?1:j)*255+.5;sa:{if(j<4294967296&j>=0){e=~~j>>>0;break sa}e=0}J[k>>2]=e;e=c|1;k=b+(e<<2)|0;j=i*(+(e|0)/255);j=(j>1?1:j)*255+.5;ta:{if(j<4294967296&j>=0){e=~~j>>>0;break ta}e=0}J[k>>2]=e;c=c+2|0;if((c|0)!=256)continue;break}c=0;J[699344]=0;ca(2321,a|0,a+1704|0,d+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break oa;a=a+1836|0;while(1){e=a+(c<<2)|0;i=+(c|0)/255*255+.5;ua:{if(i<4294967296&i>=0){b=~~i>>>0;break ua}b=0}J[e>>2]=b;b=c|1;e=a+(b<<2)|0;i=+(b|0)/255*255+.5;va:{if(i< +4294967296&i>=0){b=~~i>>>0;break va}b=0}J[e>>2]=b;c=c+2|0;if((c|0)!=256)continue;break}break na}c=Z()|0;break b}c=Z()|0;break b}J[699344]=0;ca(2321,a|0,a+1704|0,d+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break na}c=Z()|0;a=J[d+24>>2];if(!a)break b;uc(a);break b}if(f)uc(f);if(g)uc(g);a=J[d+24>>2];if(!a)break ja;uc(a)}Jd(h);fc=d+2704|0;break d;case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 100:break e;default:break d}e=fc-2992|0;fc=e;g=wk(e+2988|0);wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{j=O[b+ +304>>3];o=O[b+288>>3];Fa:{if(j-o>1.1920928955078125E-7){n=O[b+312>>3];i=O[b+296>>3];break Fa}n=O[b+312>>3];i=O[b+296>>3];if(!(n-i>1.1920928955078125E-7))break Ea}J[699344]=0;Dj(g,a+56|0);c=J[699344];J[699344]=0;if((c|0)==1)break ya;J[699344]=0;bs(g);c=J[699344];J[699344]=0;if((c|0)!=1)break Da;break ya}c=J[a+1792>>2];d=J[a+1784>>2];if((c|0)<(d|0))break Ca;h=J[a+1796>>2];l=J[a+1788>>2];if((h|0)<(l|0))break Ca;n=+(h|0);i=+(l|0);j=+(c|0);o=+(d|0)}J[699344]=0;c=J[b+4>>2];d=J[699344];J[699344]=0;if((d| +0)==1)break ya;J[699344]=0;d=b+8|0;ca(2322,a|0,c|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break ya;J[e+44>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;c=e- -64|0;J[c>>2]=0;J[c+4>>2]=1065353216;J[e+80>>2]=0;J[e+84>>2]=0;J[e+124>>2]=1;J[e+116>>2]=0;J[e+120>>2]=1;J[e+108>>2]=0;J[e+112>>2]=0;J[e+100>>2]=1056964608;J[e+104>>2]=1065353216;I[e+96>>1]=0;J[e+88>>2]=1065353216;J[e+92>>2]=1065353216;h=e+128|0;c=h;J[c>>2]=0;J[c+4>>2]=0;J[e+136>>2]=0;J[e+140>>2]=0;J[e+144>>2]=0;J[e+148>>2]=0;J[e+ +176>>2]=0;J[e+180>>2]=0;J[e+168>>2]=0;J[e+172>>2]=0;J[e+160>>2]=0;J[e+164>>2]=0;J[e+32>>2]=348856;J[e+36>>2]=0;J[e+40>>2]=0;J[699344]=0;c=_(4,24)|0;l=J[699344];J[699344]=0;if((l|0)==1){d=Z()|0;xk(h);break xa}h=c+24|0;J[e+180>>2]=h;J[e+172>>2]=c;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[e+176>>2]=h;Ac(e+188|0,0,88);J[e+296>>2]=0;J[e+300>>2]=0;J[e+288>>2]=0;J[e+292>>2]=0;J[e+312>>2]=0;J[e+316>>2]=0;J[e+320>>2]=0;J[e+324>>2]=0;J[e+2956>>2]=0;J[e+328>>2]=0;J[e+332>>2]= +1072693248;J[e+336>>2]=0;J[e+340>>2]=0;J[e+344>>2]=0;J[e+348>>2]=0;J[e+352>>2]=0;J[e+356>>2]=0;J[e+360>>2]=0;J[e+280>>2]=0;J[e+284>>2]=0;J[e+304>>2]=0;J[e+308>>2]=1072693248;J[e+2948>>2]=0;J[e+2952>>2]=0;c=J[g>>2];H[e+2945|0]=K[a+2912|0];h=J[c+12>>2];J[e+312>>2]=J[c+8>>2];J[e+316>>2]=h;h=J[c+20>>2];J[e+320>>2]=J[c+16>>2];J[e+324>>2]=h;h=J[c+28>>2];J[e+328>>2]=J[c+24>>2];J[e+332>>2]=h;h=J[c+36>>2];J[e+336>>2]=J[c+32>>2];J[e+340>>2]=h;h=J[c+44>>2];J[e+344>>2]=J[c+40>>2];J[e+348>>2]=h;h=J[c+4>>2];c= +J[c>>2];t=i-n;q=Q(R(Q(o-j)));q=R(t)>+q?Q(R(Q(t))):q;N[e+296>>2]=q>Q(1.1920928955078125E-7)?Q(Q(2)/q):Q(0);O[e+288>>3]=(i+n)*.5;J[e+304>>2]=c;J[e+308>>2]=h;N[e+368>>2]=j>o?j:o;N[e+376>>2]=i>2]=j>2]=i>n?n:i;O[e+280>>3]=(o+j)*.5;J[699344]=0;c=J[b+4>>2];h=J[699344];J[699344]=0;if((h|0)==1)break Aa;J[699344]=0;ca(2323,e+32|0,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break Aa;J[699344]=0;c=J[b+272>>2];h=J[b+268>>2];d=J[699344];J[699344]=0;if((d|0)==1)break Ba;d=0;Ga:{Ha:{Ia:{Ja:{h= +c-h>>3;if((h|0)>0){c=0;J[699344]=0;k=h>>>0>1073741823?-1:h<<2;f=_(27,k|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break Ba;J[699344]=0;k=_(27,k|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break Ba;while(1){J[699344]=0;J[e+12>>2]=-16777216;l=J[b+268>>2]+(c<<3)|0;J[e+12>>2]=J[l>>2];p=c<<2;N[p+k>>2]=N[l+4>>2];l=J[699344];J[699344]=0;if((l|0)==1)break Ja;l=f+p|0;p=J[e+12>>2];H[l|0]=p;H[l+1|0]=p>>>8;H[l+2|0]=p>>>16;H[l+3|0]=p>>>24;c=c+1|0;if((h|0)!=(c|0))continue;break}J[e+360>>2]=h;J[e+356>>2]=k;J[e+352>> +2]=f}J[e+24>>2]=0;J[e+28>>2]=0;J[e+12>>2]=a+1640;J[e+20>>2]=e+32;J[e+16>>2]=e+24;i=O[a+2904>>3];if(R(i+-1)<1.1920928955078125E-7)break Ia;b=a+1836|0;while(1){h=b+(d<<2)|0;j=i*(+(d|0)/255);j=(j>1?1:j)*255+.5;Ka:{if(j<4294967296&j>=0){c=~~j>>>0;break Ka}c=0}J[h>>2]=c;c=d|1;h=b+(c<<2)|0;j=i*(+(c|0)/255);j=(j>1?1:j)*255+.5;La:{if(j<4294967296&j>=0){c=~~j>>>0;break La}c=0}J[h>>2]=c;d=d+2|0;if((d|0)!=256)continue;break}d=0;J[699344]=0;ca(2324,a|0,a+1704|0,e+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break Ha; +a=a+1836|0;while(1){c=a+(d<<2)|0;i=+(d|0)/255*255+.5;Ma:{if(i<4294967296&i>=0){b=~~i>>>0;break Ma}b=0}J[c>>2]=b;b=d|1;c=a+(b<<2)|0;i=+(b|0)/255*255+.5;Na:{if(i<4294967296&i>=0){b=~~i>>>0;break Na}b=0}J[c>>2]=b;d=d+2|0;if((d|0)!=256)continue;break}break Ga}d=Z()|0;break za}J[699344]=0;ca(2324,a|0,a+1704|0,e+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Ga}d=Z()|0;a=J[e+24>>2];if(!a)break za;uc(a);break za}if(f)uc(f);if(k)uc(k);a=J[e+24>>2];if(a)uc(a);J[e+32>>2]=348856;a=J[e+2948>>2];if(a){c=J[e+ +2952>>2];d=a;if((c|0)!=(a|0)){while(1){b=c-12|0;d=J[b>>2];if(d){J[c-8>>2]=d;uc(d)}c=b;if((c|0)!=(a|0))continue;break}d=J[e+2948>>2]}J[e+2952>>2]=a;uc(d)}Se(e+120|0)}Jd(g);fc=e+2992|0;break wa}d=Z()|0;break za}d=Z()|0}w5(e+32|0);break xa}d=Z()|0}Jd(g);ba(d|0);B()}}fc=m+48|0;return}a=Z()|0;Jd(c);ba(a|0);B()}Jd(h);ba(c|0);B()}a=Z()|0;Kf(c);Kf(c+32|0);ba(a|0);B()}function KFa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;j=fc-128|0;fc=j;J[j+ +100>>2]=0;kc[J[J[b>>2]+16>>2]](b,j+100|0)|0;a:{b:{c:{d:{if(J[j+100>>2]==1){f=fc-192|0;fc=f;h=J[a+12>>2];if(!h){J[f+144>>2]=0;J[f+148>>2]=0;J[f+152>>2]=0;J[f+156>>2]=0}J[f+104>>2]=0;J[f+32>>2]=0;J[f+168>>2]=0;g=h;h=f+104|0;LA(g,d,h,f+32|0,f+168|0);q=25.4/+J[f+168>>2];O[f+152>>3]=q*+J[f+104>>2];O[f+144>>3]=q*+J[f+32>>2];J[f+104>>2]=1;d=b;kc[J[J[b>>2]+308>>2]](b,h)|0;b=f+140|0;J[b>>2]=0;e=J[e>>2];J[b>>2]=e;if(e)kc[J[J[e>>2]+8>>2]](e)|0;h=c;c=J[c>>2];J[699344]=0;c=_(5181,c|0)|0;e=J[699344];J[699344]= +0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((e|0)==1)break q;J[699344]=0;db(5180,a|0,d|0,b|0,+(25.4/+(c|0)),0);a=J[699344];J[699344]=0;if((a|0)==1)break q;mh(b);c=0;a=fc-16|0;fc=a;b=J[h>>2];r:{if(J[b+8>>2]){ti(a+12|0,b,b+8|0);break r}J[a+12>>2]=0;vd(a+12|0,0)}s:{b=J[a+12>>2];if(!b)break s;c=J[b+8>>2];J[699344]=0;J[a+12>>2]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break s;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break s}break a}fc=a+16|0;e=0;a=fc-16| +0;fc=a;b=J[h>>2];t:{if(J[b+8>>2]){ti(a+12|0,b,b+8|0);break t}J[a+12>>2]=0;vd(a+12|0,0)}u:{b=J[a+12>>2];if(!b)break u;e=J[b+12>>2];J[699344]=0;J[a+12>>2]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;k=J[699344];J[699344]=0;if((k|0)!=1){if(g)break u;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break u}break a}fc=a+16|0;b=e;q=O[f+144>>3]*72/25.4;q=+(e|0)/(q+q);u=O[f+152>>3]*72/25.4;u=+(c|0)/(u+u);q=q=2){c=(c|0)/(a|0)|0;b=(b|0)/(a|0)| +0}if(!iW(J[h>>2]))break p;e=vc(P(b,c)<<2);k=f+104|0;J[k+12>>2]=0;J[k+16>>2]=0;J[k+4>>2]=1;J[k+8>>2]=8;J[k>>2]=351116;J[k+20>>2]=0;J[k+24>>2]=0;H[k+28|0]=0;J[f+32>>2]=c;J[f+168>>2]=b;J[699344]=0;J[f+72>>2]=c<<2;a=f+32|0;yi(k,e,a,f+168|0,f+72|0,0);g=J[699344];J[699344]=0;if((g|0)==1)break g;J[f+44>>2]=b;J[f+40>>2]=c;J[f+32>>2]=0;J[f+36>>2]=0;h=J[h>>2];J[699344]=0;Ea(5174,f+8|0,h|0,a|0,a|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break g;if((b|0)>0){l=c&-2;m=c&1;while(1){g=0;a=b;b=a-1|0;h=J[f+8>>2];w:{if(b>>> +0>=L[h+8>>1])break w;i=J[h+16>>2];if(!i)break w;g=i+P(P(L[h+12>>1],b),3)|0}x:{if((c|0)<=0)break x;i=0;if((c|0)!=1)while(1){H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];h=K[g+2|0];H[e+3|0]=255;H[e+2|0]=h;H[e+4|0]=K[g+3|0];H[e+5|0]=K[g+4|0];h=K[g+5|0];H[e+7|0]=255;H[e+6|0]=h;g=g+6|0;e=e+8|0;i=i+2|0;if((l|0)!=(i|0))continue;break}if(!m)break x;H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];h=K[g+2|0];H[e+3|0]=255;H[e+2|0]=h;e=e+4|0}if((a|0)>1)continue;break}}J[f+168>>2]=0;J[f+172>>2]=0;J[f+72>>2]=0;J[f+76>>2]=0;a=J[J[d>>2]+376>> +2];J[699344]=0;ja(a|0,d|0,k|0,f+168|0,f+72|0,f+152|0,f+144|0)|0;a=J[699344];J[699344]=0;y:{if((a|0)!=1){a=J[f+8>>2];J[f+8>>2]=0;if(!a)break y;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break y;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break y}break a}e=Z()|0;zc(f+8|0);break f}If(k);break o}e=Z()|0;mh(b);break e}z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{if(hW(J[h>>2])){a=f+100|0;e=J[h>>2];Y:{if(J[e+8>>2]){oW(a, +e,e+8|0);break Y}J[a>>2]=0;vd(a,0)}a=J[f+100>>2];if(a){e=J[J[a>>2]+16>>2];J[699344]=0;da(e|0,f+8|0,a|0);a=J[699344];J[699344]=0;Z:{_:{$:{if((a|0)!=1){if(!J[f+8>>2])break z;J[699344]=0;l=f+104|0;J[l+12>>2]=0;J[l+16>>2]=0;J[l+4>>2]=1;J[l+8>>2]=8;J[l>>2]=351116;J[l+20>>2]=0;J[l+24>>2]=0;H[l+28|0]=0;a=J[699344];J[699344]=0;if((a|0)==1)break $;J[699344]=0;a=J[f+8>>2];J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break _;g=J[f+8>>2];J[f+96>>2]=g;m=L[g+10>>1];a=L[g+8>>1];J[699344]=0;e=_(27,P(a, +m)<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break Z;J[f+32>>2]=m;J[f+168>>2]=a;J[699344]=0;J[f+72>>2]=m<<2;yi(l,e,f+32|0,f+168|0,f+72|0,0);k=J[699344];J[699344]=0;if((k|0)==1)break Z;if(!a|!m)break W;o=m&65534;p=m&1;while(1){i=0;k=a-1|0;n=J[f+96>>2];g=0;aa:{if(k>>>0>=L[n+8>>1])break aa;s=J[n+16>>2];g=0;if(!s)break aa;g=s+P(P(k,L[n+12>>1]),3)|0}if((m|0)!=1)while(1){H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];n=K[g+2|0];H[e+3|0]=255;H[e+2|0]=n;H[e+4|0]=K[g+3|0];H[e+5|0]=K[g+4|0];n=K[g+5|0];H[e+7|0]=255;H[e+6| +0]=n;g=g+6|0;e=e+8|0;i=i+2|0;if((o|0)!=(i|0))continue;break}if(p){H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];g=K[g+2|0];H[e+3|0]=255;H[e+2|0]=g;e=e+4|0}g=(a|0)>1;a=k;if(g)continue;break}g=J[f+96>>2];J[f+96>>2]=0;if(!g)break D;break E}e=Z()|0;break h}e=Z()|0;break B}e=Z()|0;break C}e=Z()|0;zc(f+96|0);break C}a=J[h>>2];J[699344]=0;da(5182,f+8|0,a|0);a=J[699344];J[699344]=0;ba:{ca:{da:{if((a|0)!=1){if(!J[f+8>>2])break z;J[699344]=0;l=f+104|0;J[l+12>>2]=0;J[l+16>>2]=0;J[l+4>>2]=1;J[l+8>>2]=8;J[l>>2]=351116;J[l+ +20>>2]=0;J[l+24>>2]=0;H[l+28|0]=0;a=J[699344];J[699344]=0;if((a|0)==1)break da;J[699344]=0;a=J[f+8>>2];J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break ca;g=J[f+8>>2];J[f+92>>2]=g;m=L[g+10>>1];a=L[g+8>>1];J[699344]=0;e=_(27,P(a,m)<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break ba;J[f+32>>2]=m;J[f+168>>2]=a;J[699344]=0;J[f+72>>2]=m<<2;yi(l,e,f+32|0,f+168|0,f+72|0,0);k=J[699344];J[699344]=0;if((k|0)==1)break ba;if(!a|!m)break X;o=m&65534;p=m&1;while(1){i=0;k=a-1|0;n=J[f+92>>2];g=0;ea:{if(k>>> +0>=L[n+8>>1])break ea;s=J[n+16>>2];g=0;if(!s)break ea;g=s+P(P(k,L[n+12>>1]),3)|0}if((m|0)!=1)while(1){H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];n=K[g+2|0];H[e+3|0]=255;H[e+2|0]=n;H[e+4|0]=K[g+3|0];H[e+5|0]=K[g+4|0];n=K[g+5|0];H[e+7|0]=255;H[e+6|0]=n;g=g+6|0;e=e+8|0;i=i+2|0;if((o|0)!=(i|0))continue;break}if(p){H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];g=K[g+2|0];H[e+3|0]=255;H[e+2|0]=g;e=e+4|0}g=(a|0)>1;a=k;if(g)continue;break}g=J[f+92>>2];J[f+92>>2]=0;if(!g)break I;break J}e=Z()|0;break h}e=Z()|0;break G}e=Z()|0;break H}e= +Z()|0;zc(f+92|0);break H}if(jW(J[h>>2])){J[f+44>>2]=b;J[f+40>>2]=c;J[f+32>>2]=0;J[f+36>>2]=0;a=f+32|0;dW(f+72|0,J[h>>2],a,a,4);J[699344]=0;h=_(5183,f+8|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break L;J[699344]=0;a=ha(5184,h|0,c|0,b|0,1)|0;e=J[699344];J[699344]=0;fa:{ga:{ha:{ia:{ja:{if((e|0)!=1){if(!a)break ha;if((b|0)>0){a=0;while(1){ka:{e=J[f+72>>2];if(J[e+20>>2])break ka;J[699344]=0;$(5177,e|0);g=J[699344];J[699344]=0;if((g|0)!=1)break ka;e=Z()|0;break fa}g=L[e+14>>1];la:{if(L[e+8>>1]<=a>>>0){e= +L[e+12>>1];if(J[685890]<(e+g|0)){J[699344]=0;a=ja(5178,f+104|0,2393104,2393511,577,2393703,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ga;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;e=Z()|0;Kc(a);break fa}e=e+J[685889]|0;break la}e=L[e+12>>1]+(J[e+20>>2]+P(a,g)|0)|0}if((c|0)>0){k=(a^-1)+b|0;g=0;while(1){l=K[e|0];J[699344]=0;CM(h,g,k,l);l=J[699344];J[699344]=0;if((l|0)==1)break ja;e=e+1|0;g=g+1|0;if((g|0)!=(c|0))continue;break}}a=a+1|0;if((b|0)!=(a|0))continue;break}}J[f+ +164>>2]=c;J[f+100>>2]=b;J[f+104>>2]=0;J[f+108>>2]=0;J[699344]=0;J[f+168>>2]=0;J[f+172>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break ia;J[699344]=0;$(5187,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break ha}e=Z()|0;break fa}e=Z()|0;break fa}e=Z()|0;break fa}dn(h);a=J[f+72>>2];J[f+72>>2]=0;if(!a)break o;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break o;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break o}break a}e=Z()|0}dn(h);break K}J[f+180>>2]= +b;J[f+176>>2]=c;J[f+168>>2]=0;J[f+172>>2]=0;a=f+168|0;fW(f+164|0,J[h>>2],a,a,0);ma:{if(J[f+164>>2]){J[699344]=0;a=f+104|0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]=1;J[a+8>>2]=8;J[a>>2]=351116;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;b=J[699344];J[699344]=0;if((b|0)==1)break V;J[699344]=0;b=J[f+164>>2];J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;na:{if((b|0)!=1){g=J[f+164>>2];J[f+4>>2]=g;h=L[g+10>>1];c=L[g+8>>1];J[699344]=0;e=_(27,P(c,h)<<2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break na;J[f+32>>2]=h;J[f+ +72>>2]=c;J[699344]=0;J[f+8>>2]=h<<2;yi(a,e,f+32|0,f+72|0,f+8|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break na;if(!c|!h)break ma;l=h&65534;m=h&1;while(1){i=0;b=c-1|0;k=J[f+4>>2];g=0;oa:{if(b>>>0>=L[k+8>>1])break oa;n=J[k+16>>2];g=0;if(!n)break oa;g=n+P(P(b,L[k+12>>1]),3)|0}if((h|0)!=1)while(1){H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];k=K[g+2|0];H[e+3|0]=255;H[e+2|0]=k;H[e+4|0]=K[g+3|0];H[e+5|0]=K[g+4|0];k=K[g+5|0];H[e+7|0]=255;H[e+6|0]=k;g=g+6|0;e=e+8|0;i=i+2|0;if((l|0)!=(i|0))continue;break}if(m){H[e|0]= +K[g|0];H[e+1|0]=K[g+1|0];g=K[g+2|0];H[e+3|0]=255;H[e+2|0]=g;e=e+4|0}g=(c|0)>1;c=b;if(g)continue;break}g=J[f+4>>2];J[f+4>>2]=0;if(!g)break O;break P}e=Z()|0;If(a);break M}e=Z()|0;zc(f+4|0);If(a);break M}a=J[h>>2];J[699344]=0;e=a;a=f+168|0;ma(5176,f+8|0,e|0,a|0,a|0,4);a=J[699344];J[699344]=0;if((a|0)==1)break Q;a=J[f+8>>2];if(!a)break T;k=L[a+16>>1];if(k>>>0<=2){J[699344]=0;h=_(5183,f+72|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break S;J[699344]=0;a=ha(5184,h|0,c|0,b|0,1)|0;e=J[699344];J[699344]=0; +pa:{qa:{ra:{if((e|0)!=1){if(!a)break U;if((b|0)>0){a=0;while(1){sa:{e=J[f+8>>2];if(J[e+20>>2])break sa;J[699344]=0;$(5177,e|0);g=J[699344];J[699344]=0;if((g|0)!=1)break sa;e=Z()|0;dn(h);break R}g=L[e+14>>1];ta:{if(L[e+8>>1]<=a>>>0){e=L[e+12>>1];if(J[685890]<(e+g|0)){J[699344]=0;a=ja(5178,f+104|0,2393104,2393511,577,2393703,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break pa;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;e=Z()|0;Kc(a);dn(h);break R}e=e+J[685889]|0;break ta}e=L[e+ +12>>1]+(J[e+20>>2]+P(a,g)|0)|0}if((c|0)>0){k=(a^-1)+b|0;g=0;while(1){l=K[e|0];J[699344]=0;ha(5184,h|0,g|0,k|0,l|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break ra;e=e+1|0;g=g+1|0;if((g|0)!=(c|0))continue;break}}a=a+1|0;if((b|0)!=(a|0))continue;break}}J[f+100>>2]=c;J[f+68>>2]=b;J[f+104>>2]=0;J[f+108>>2]=0;J[699344]=0;J[f+32>>2]=0;J[f+36>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break qa;J[699344]=0;$(5187,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break U}e=Z()|0;dn(h);break R}e=Z()|0;dn(h);break R}e= +Z()|0;dn(h);break R}e=Z()|0;dn(h);break R}J[699344]=0;g=_(27,P(b,c)<<2)|0;a=J[699344];J[699344]=0;if((a|0)==1){e=Z()|0;break R}J[699344]=0;h=f+104|0;J[h+12>>2]=0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=351116;J[h+20>>2]=0;J[h+24>>2]=0;H[h+28|0]=0;a=J[699344];J[699344]=0;ua:{va:{wa:{xa:{ya:{if((a|0)!=1){J[f+32>>2]=c;J[f+72>>2]=b;J[699344]=0;J[f+100>>2]=c<<2;yi(h,g,f+32|0,f+72|0,f+100|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break ya;J[699344]=0;i=_(27,k<<2)|0;a=J[699344];J[699344]=0;if((a|0)== +1)break xa;a=-1;l=16711680;m=16711680/(k-1>>>0)|0;e=0;if((k|0)!=1){n=k&65534;a=0;while(1){o=e<<2;J[o+i>>2]=P(l>>>16&255,65793)|-16777216;l=l-m|0;J[i+(o|4)>>2]=P(l>>>16&255,65793)|-16777216;e=e+2|0;l=l-m|0;a=a+2|0;if((n|0)!=(a|0))continue;break}a=P(l>>>16&255,65793)|-16777216}if(k&1)J[i+(e<<2)>>2]=a;if((b|0)<=0)break va;n=c&-4;m=c&3;o=c>>>0<4;break wa}e=Z()|0;break R}e=Z()|0;break ua}e=Z()|0;break ua}while(1){a=b;za:{Aa:{Ba:{Ca:{e=J[f+8>>2];if(!J[e+20>>2]){J[699344]=0;$(5177,e|0);b=J[699344];J[699344]= +0;if((b|0)==1)break Ca}l=L[e+14>>1];b=a-1|0;Da:{if(b>>>0>=L[e+8>>1]){e=L[e+12>>1];if(J[685890]<(e+l|0)){J[699344]=0;a=ja(5178,f+32|0,2393104,2393511,577,2393703,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ba;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;e=Z()|0;Kc(a);break ua}e=e+J[685889]|0;break Da}e=L[e+12>>1]+(J[e+20>>2]+P(b,l)|0)|0}if((c|0)<=0)break za;l=0;if(o)break Aa;while(1){p=K[e|0];J[g>>2]=J[i+((k>>>0>p>>>0?p:0)<<2)>>2];p=K[e+1|0];J[g+4>>2]=J[i+((k>>>0>p>>>0?p: +0)<<2)>>2];p=K[e+2|0];J[g+8>>2]=J[i+((k>>>0>p>>>0?p:0)<<2)>>2];p=K[e+3|0];J[g+12>>2]=J[i+((k>>>0>p>>>0?p:0)<<2)>>2];e=e+4|0;g=g+16|0;l=l+4|0;if((n|0)!=(l|0))continue;break}break Aa}e=Z()|0;break ua}e=Z()|0;break ua}l=0;if(!m)break za;while(1){p=K[e|0];J[g>>2]=J[i+((k>>>0>p>>>0?p:0)<<2)>>2];e=e+1|0;g=g+4|0;l=l+1|0;if((m|0)!=(l|0))continue;break}}if((a|0)>=2)continue;break}}uc(i);J[f+32>>2]=0;J[f+36>>2]=0;J[f+72>>2]=0;J[f+76>>2]=0;a=J[J[d>>2]+376>>2];J[699344]=0;ja(a|0,d|0,h|0,f+32|0,f+72|0,f+152|0, +f+144|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){If(h);break T}e=Z()|0}If(h);break R}J[f+4>>2]=0;break P}J[f+92>>2]=0;break J}J[f+96>>2]=0;break E}e=Z()|0;break M}dn(h)}zc(f+8|0);break N}e=Z()|0}zc(f+8|0);break M}e=Z()|0;break M}J[699344]=0;b=J[g+4>>2]-1|0;J[g+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break O;J[699344]=0;$(5147,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[f+32>>2]=0;J[f+36>>2]=0;J[f+72>>2]=0;J[f+76>>2]=0;b=J[J[d>>2]+376>>2];J[699344]=0;ja(b|0,d|0,a|0,f+32|0,f+ +72|0,f+152|0,f+144|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){If(a);break N}e=Z()|0;If(a);break M}a=J[f+164>>2];J[f+164>>2]=0;if(!a)break o;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break o;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break o}break a}zc(f+164|0);break e}e=Z()|0}zc(f+72|0);break e}J[699344]=0;a=J[g+4>>2]-1|0;J[g+4>>2]=a;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(a)break I;J[699344]=0;$(5147,g|0);a=J[699344];J[699344]=0;if((a| +0)==1)break a}J[f+32>>2]=0;J[f+36>>2]=0;J[f+168>>2]=0;J[f+172>>2]=0;a=J[J[d>>2]+376>>2];J[699344]=0;ja(a|0,d|0,l|0,f+32|0,f+168|0,f+152|0,f+144|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break F;e=Z()|0}If(l)}zc(f+8|0);break h}If(l);a=J[f+8>>2];J[f+8>>2]=0;if(!a)break z;J[699344]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(e)break z;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;break z}J[699344]=0;a=J[g+4>>2]-1|0;J[g+4>>2]=a;e=J[699344];J[699344]= +0;if((e|0)==1)break a;if(a)break D;J[699344]=0;$(5147,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[f+32>>2]=0;J[f+36>>2]=0;J[f+168>>2]=0;J[f+172>>2]=0;a=J[J[d>>2]+376>>2];J[699344]=0;ja(a|0,d|0,l|0,f+32|0,f+168|0,f+152|0,f+144|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break A;e=Z()|0}If(l)}zc(f+8|0);break h}If(l);a=J[f+8>>2];J[f+8>>2]=0;if(!a)break z;J[699344]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break z;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a| +0)!=1)break z}break a}J[f+84>>2]=b;J[f+80>>2]=c;J[f+72>>2]=0;J[f+76>>2]=0;a=J[h>>2];J[699344]=0;e=f+68|0;da(5188,e|0,a|0);a=J[699344];J[699344]=0;Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{if((a|0)!=1){if(J[f+68>>2])break Ja;a=J[h>>2];J[699344]=0;g=f+32|0;l=a;a=f+72|0;Ea(5189,g|0,l|0,a|0,a|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break Ia;J[699344]=0;aa(5153,e|0,g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break La;a=J[f+32>>2];J[f+32>>2]=0;if(!a)break Ka;J[699344]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;g=J[699344];J[699344]= +0;if((g|0)!=1){if(e)break Ka;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Ka}break a}e=Z()|0;break h}e=Z()|0;zc(f+32|0);break i}if(!J[f+68>>2])break Ea}J[699344]=0;k=f+32|0;J[k+12>>2]=0;J[k+16>>2]=0;J[k+4>>2]=1;J[k+8>>2]=8;J[k>>2]=351116;J[k+20>>2]=0;J[k+24>>2]=0;H[k+28|0]=0;a=J[699344];J[699344]=0;Ma:{Na:{if((a|0)!=1){J[699344]=0;a=J[f+68>>2];J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break Na;g=J[f+68>>2];J[f+28>>2]=g;m=L[g+10>>1];a=L[g+8>>1];J[699344]=0;e=_(27, +P(a,m)<<2)|0;l=J[699344];J[699344]=0;if((l|0)==1)break Ma;J[f+168>>2]=m;J[f+8>>2]=a;J[699344]=0;J[f+164>>2]=m<<2;yi(k,e,f+168|0,f+8|0,f+164|0,0);l=J[699344];J[699344]=0;if((l|0)==1)break Ma;if(!a|!m)break Ha;o=m&65534;p=m&1;while(1){i=0;l=a-1|0;n=J[f+28>>2];g=0;Oa:{if(l>>>0>=L[n+8>>1])break Oa;s=J[n+16>>2];g=0;if(!s)break Oa;g=s+P(P(l,L[n+12>>1]),3)|0}if((m|0)!=1)while(1){H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];n=K[g+2|0];H[e+3|0]=255;H[e+2|0]=n;H[e+4|0]=K[g+3|0];H[e+5|0]=K[g+4|0];n=K[g+5|0];H[e+7|0]=255; +H[e+6|0]=n;g=g+6|0;e=e+8|0;i=i+2|0;if((o|0)!=(i|0))continue;break}if(p){H[e|0]=K[g|0];H[e+1|0]=K[g+1|0];g=K[g+2|0];H[e+3|0]=255;H[e+2|0]=g;e=e+4|0}g=(a|0)>1;a=l;if(g)continue;break}g=J[f+28>>2];J[f+28>>2]=0;if(!g)break Fa;break Ga}e=Z()|0;break i}e=Z()|0;If(k);break i}e=Z()|0;zc(f+28|0);If(k);break i}e=Z()|0;break i}J[f+28>>2]=0}J[699344]=0;a=J[g+4>>2]-1|0;J[g+4>>2]=a;e=J[699344];J[699344]=0;if((e|0)==1)break n;if(a)break Fa;J[699344]=0;$(5147,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break n}a=J[h>> +2];J[699344]=0;e=a;a=f+72|0;ma(5176,f+164|0,e|0,a|0,a|0,4);a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;h=_(5183,f+24|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;J[699344]=0;a=ha(5184,h|0,c|0,b|0,1)|0;e=J[699344];J[699344]=0;Pa:{Qa:{Ra:{Sa:{Ta:{Ua:{if((e|0)!=1){if(!a)break Sa;if((b|0)>0){a=0;while(1){Va:{e=J[f+164>>2];if(J[e+20>>2])break Va;J[699344]=0;$(5177,e|0);g=J[699344];J[699344]=0;if((g|0)!=1)break Va;e=Z()|0;break Qa}g=L[e+14>>1];Wa:{if(L[e+8>>1]<=a>>>0){e=L[e+12>>1];if(J[685890]< +(e+g|0)){J[699344]=0;a=ja(5178,f+168|0,2393104,2393511,577,2393703,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ra;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;e=Z()|0;Kc(a);break Qa}e=e+J[685889]|0;break Wa}e=L[e+12>>1]+(J[e+20>>2]+P(a,g)|0)|0}if((c|0)>0){l=(a^-1)+b|0;g=0;while(1){i=K[e|0];J[699344]=0;CM(h,g,l,i);i=J[699344];J[699344]=0;if((i|0)==1)break Ua;e=e+1|0;g=g+1|0;if((g|0)!=(c|0))continue;break}}a=a+1|0;if((b|0)!=(a|0))continue;break}}J[f+20>>2]=c;J[f+16>>2]=b;J[f+ +168>>2]=0;J[f+172>>2]=0;J[699344]=0;J[f+8>>2]=0;J[f+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break Ta;J[699344]=0;$(5187,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Sa}e=Z()|0;break Qa}e=Z()|0;break Qa}e=Z()|0;break Qa}dn(h);a=J[f+164>>2];J[f+164>>2]=0;if(!a)break Pa;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break Pa;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Pa}break a}e=Z()|0}dn(h);break k}If(k);a=J[f+68>>2];J[f+68>>2]=0;if(!a)break Ea; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break Ea;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[f+100>>2];J[f+100>>2]=0;if(!a)break o;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break o;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break o}break a}J[f+168>>2]=1;kc[J[J[d>>2]+312>>2]](d,f+168|0)|0;fc=f+192|0;break d}ea(0)|0;Bc()}B()}e=Z()|0}zc(f+164|0);If(k);break i}e=Z()|0; +If(k)}zc(f+68|0)}zc(f+100|0);break e}e=Z()|0}If(k)}ba(e|0);B()}p=kW(J[c>>2]);J[j+88>>2]=0;J[j+92>>2]=0;J[j+80>>2]=0;J[j+84>>2]=0;kc[J[J[b>>2]+40>>2]](b,j+88|0)|0;kc[J[J[b>>2]+44>>2]](b,j+80|0)|0;if(O[j+88>>3]<=0){J[j+88>>2]=0;J[j+92>>2]=1079115776}if(O[j+80>>3]<=0){J[j+80>>2]=0;J[j+84>>2]=1079115776}J[j+72>>2]=0;J[j+76>>2]=0;J[j+64>>2]=0;J[j+68>>2]=0;kc[J[J[b>>2]+32>>2]](b,j+72|0)|0;kc[J[J[b>>2]+24>>2]](b,j- -64|0)|0;q=O[j+72>>3];if(q<=0){J[j+72>>2]=0;J[j+76>>2]=1080623104;q=200}u=O[j+64>>3];if(u<= +0){J[j+64>>2]=0;J[j+68>>2]=1081262080;u=300}q=O[j+88>>3]*q/25.4;Xa:{if(R(q)<2147483648){k=~~q;break Xa}k=-2147483648}i=k<<2;d=i;q=O[j+80>>3]*u/25.4;Ya:{if(R(q)<2147483648){h=~~q;break Ya}h=-2147483648}d=vc(P(d,h));f=j+32|0;J[f+12>>2]=0;J[f+16>>2]=0;J[f+4>>2]=1;J[f+8>>2]=8;J[f>>2]=351116;J[f+20>>2]=0;J[f+24>>2]=0;H[f+28|0]=0;J[j+104>>2]=k;J[j+8>>2]=h;J[699344]=0;J[j+28>>2]=i;yi(f,d,j+104|0,j+8|0,j+28|0,0);i=J[699344];J[699344]=0;Za:{_a:{$a:{ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{ib:{jb:{kb:{lb:{mb:{nb:{ob:{pb:{if((i| +0)!=1){i=J[c>>2];J[699344]=0;i=_(5172,i|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break ab;if(!i){i=J[c>>2];J[699344]=0;i=_(5173,i|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break ab;if(!i)break ob}J[j+116>>2]=h;J[j+112>>2]=k;J[j+104>>2]=0;J[j+108>>2]=0;c=J[c>>2];J[699344]=0;g=c;c=j+104|0;Ea(5174,j+8|0,g|0,c|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break pb;if(!((h|0)<=0|(k|0)<=0)){m=k&-2;n=k&1;while(1){g=0;l=h-1|0;i=J[j+8>>2];c=0;qb:{if(l>>>0>=L[i+8>>1])break qb;o=J[i+16>>2];c=0;if(!o)break qb; +c=o+P(P(l,L[i+12>>1]),3)|0}if((k|0)!=1)while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];i=K[c+2|0];H[d+3|0]=255;H[d+2|0]=i;H[d+4|0]=K[c+3|0];H[d+5|0]=K[c+4|0];i=K[c+5|0];H[d+7|0]=255;H[d+6|0]=i;c=c+6|0;d=d+8|0;g=g+2|0;if((m|0)!=(g|0))continue;break}if(n){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];c=K[c+2|0];H[d+3|0]=255;H[d+2|0]=c;d=d+4|0}c=(h|0)>1;h=l;if(c)continue;break}}c=J[j+8>>2];J[j+8>>2]=0;if(!c)break cb;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h=J[699344];J[699344]=0;if((h|0)==1)break nb;if(d)break cb;J[699344]= +0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break nb;break cb}c=Z()|0;break b}c=Z()|0;break b}i=J[c>>2];J[699344]=0;i=_(5175,i|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break ab;if(!i)break mb;J[j+20>>2]=h;J[j+16>>2]=k;J[j+8>>2]=0;J[j+12>>2]=0;c=J[c>>2];J[699344]=0;i=c;c=j+8|0;ma(5176,j+28|0,i|0,c|0,c|0,4);c=J[699344];J[699344]=0;rb:{sb:{if((c|0)!=1){i=L[J[j+28>>2]+16>>1];J[699344]=0;m=_(27,i<<2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break eb;c=16711680;n=16711680/(i-1|0)|0;tb:{if(!i)break tb; +if((i|0)!=1){o=i&65534;while(1){s=g<<2;J[s+m>>2]=P(c>>>16&255,65793)|-16777216;c=c-n|0;J[m+(s|4)>>2]=P(c>>>16&255,65793)|-16777216;g=g+2|0;c=c-n|0;l=l+2|0;if((o|0)!=(l|0))continue;break}}if(!(i&1))break tb;J[m+(g<<2)>>2]=P(c>>>16&255,65793)|-16777216}if((h|0)<=0)break rb;o=k&-4;n=k&3;s=k>>>0<4;break sb}c=Z()|0;break b}while(1){l=h;ub:{vb:{wb:{xb:{c=J[j+28>>2];if(!J[c+20>>2]){J[699344]=0;$(5177,c|0);h=J[699344];J[699344]=0;if((h|0)==1)break xb}g=L[c+14>>1];h=l-1|0;yb:{if(h>>>0>=L[c+8>>1]){c=L[c+12>> +1];if(J[685890]<(c+g|0)){J[699344]=0;a=ja(5178,j+104|0,2393104,2393511,577,2393703,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break wb;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break lb;c=Z()|0;Kc(a);break db}c=c+J[685889]|0;break yb}c=L[c+12>>1]+(J[c+20>>2]+P(g,h)|0)|0}if((k|0)<=0)break ub;g=0;if(s)break vb;while(1){r=K[c|0];J[d>>2]=J[m+((i>>>0>r>>>0?r:0)<<2)>>2];r=K[c+1|0];J[d+4>>2]=J[m+((i>>>0>r>>>0?r:0)<<2)>>2];r=K[c+2|0];J[d+8>>2]=J[m+((i>>>0>r>>>0?r:0)<<2)>>2];r=K[c+3|0];J[d+ +12>>2]=J[m+((i>>>0>r>>>0?r:0)<<2)>>2];c=c+4|0;d=d+16|0;g=g+4|0;if((o|0)!=(g|0))continue;break}break vb}c=Z()|0;break db}c=Z()|0;break db}g=0;if(!n)break ub;while(1){r=K[c|0];J[d>>2]=J[m+((i>>>0>r>>>0?r:0)<<2)>>2];c=c+1|0;d=d+4|0;g=g+1|0;if((n|0)!=(g|0))continue;break}}if((l|0)>=2)continue;break}}uc(m);c=J[j+28>>2];J[j+28>>2]=0;if(!c)break cb;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h=J[699344];J[699344]=0;if((h|0)!=1){if(d)break cb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break cb}break a}ea(0)| +0;Bc();break lb}J[j+20>>2]=h;J[j+16>>2]=k;J[j+8>>2]=0;J[j+12>>2]=0;g=J[c>>2];J[699344]=0;i=g;g=j+8|0;Ea(5174,j+28|0,i|0,g|0,g|0,0);g=J[699344];J[699344]=0;zb:{if((g|0)!=1){g=J[j+28>>2];if(!g)break zb;if((h|0)<=0){J[j+28>>2]=0;c=1;break fb}c=1;if((k|0)<=0)break gb;m=k&-2;n=k&1;while(1){g=0;l=h-1|0;i=J[j+28>>2];c=0;Ab:{if(l>>>0>=L[i+8>>1])break Ab;o=J[i+16>>2];c=0;if(!o)break Ab;c=o+P(P(l,L[i+12>>1]),3)|0}if((k|0)!=1)while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];i=K[c+2|0];H[d+3|0]=255;H[d+2|0]=i;H[d+4| +0]=K[c+3|0];H[d+5|0]=K[c+4|0];i=K[c+5|0];H[d+7|0]=255;H[d+6|0]=i;c=c+6|0;d=d+8|0;g=g+2|0;if((m|0)!=(g|0))continue;break}if(n){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];c=K[c+2|0];H[d+3|0]=255;H[d+2|0]=c;d=d+4|0}c=1;g=(h|0)>1;h=l;if(g)continue;break}break gb}c=Z()|0;break b}c=J[c>>2];J[699344]=0;g=c;c=j+8|0;ma(5176,j+4|0,g|0,c|0,c|0,4);c=J[699344];J[699344]=0;if((c|0)==1)break kb;n=J[j+4>>2];if(n){i=L[n+16>>1];J[699344]=0;m=_(27,i<<2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break jb;c=16711680;o=16711680/(i-1| +0)|0;Bb:{if(!i)break Bb;g=0;if((i|0)!=1){s=i&65534;while(1){r=g<<2;J[r+m>>2]=P(c>>>16&255,65793)|-16777216;c=c-o|0;J[m+(r|4)>>2]=P(c>>>16&255,65793)|-16777216;g=g+2|0;c=c-o|0;l=l+2|0;if((s|0)!=(l|0))continue;break}}if(!(i&1))break Bb;J[m+(g<<2)>>2]=P(c>>>16&255,65793)|-16777216}if((h|0)>0){s=k&-4;o=k&3;r=k>>>0<4;while(1){l=h;Cb:{Db:{Eb:{Fb:{c=J[j+4>>2];if(!J[c+20>>2]){J[699344]=0;$(5177,c|0);h=J[699344];J[699344]=0;if((h|0)==1)break Fb}g=L[c+14>>1];h=l-1|0;Gb:{if(h>>>0>=L[c+8>>1]){c=L[c+12>>1];if(J[685890]< +(c+g|0)){J[699344]=0;a=ja(5178,j+104|0,2393104,2393511,577,2393703,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Eb;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break lb;c=Z()|0;Kc(a);break ib}c=c+J[685889]|0;break Gb}c=L[c+12>>1]+(J[c+20>>2]+P(g,h)|0)|0}if((k|0)<=0)break Cb;g=0;if(r)break Db;while(1){t=K[c|0];J[d>>2]=J[m+((i>>>0>t>>>0?t:0)<<2)>>2];t=K[c+1|0];J[d+4>>2]=J[m+((i>>>0>t>>>0?t:0)<<2)>>2];t=K[c+2|0];J[d+8>>2]=J[m+((i>>>0>t>>>0?t:0)<<2)>>2];t=K[c+3|0];J[d+12>>2]=J[m+((i>>> +0>t>>>0?t:0)<<2)>>2];c=c+4|0;d=d+16|0;g=g+4|0;if((s|0)!=(g|0))continue;break}break Db}c=Z()|0;break ib}c=Z()|0;break ib}g=0;if(!o)break Cb;while(1){t=K[c|0];J[d>>2]=J[m+((i>>>0>t>>>0?t:0)<<2)>>2];c=c+1|0;d=d+4|0;g=g+1|0;if((o|0)!=(g|0))continue;break}}if((l|0)>=2)continue;break}}uc(m)}c=(n|0)!=0;zc(j+4|0);break gb}B()}c=Z()|0;break hb}c=Z()|0}zc(j+4|0)}zc(j+28|0);break b}g=J[j+28>>2];J[j+28>>2]=0;if(!g)break bb}J[699344]=0;d=J[g+4>>2]-1|0;J[g+4>>2]=d;h=J[699344];J[699344]=0;if((h|0)!=1){if(d)break bb; +J[699344]=0;$(5147,g|0);d=J[699344];J[699344]=0;if((d|0)!=1)break bb}break a}c=Z()|0}zc(j+28|0);break b}c=1}J[j+104>>2]=1;d=J[J[b>>2]+308>>2];J[699344]=0;aa(d|0,b|0,j+104|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break $a;d=J[j+100>>2];if(!(1<>>0<=16:0)){J[699344]=0;d=aa(3261,j|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ab;J[699344]=0;db(5180,a|0,b|0,d|0,+(25.4/+(p|0)),0);a=J[699344];J[699344]=0;if((a|0)==1)break _a;mh(d)}if(!c)break Za;J[j+104>>2]=0;J[j+108>>2]=0;J[j+8>>2]=0;J[j+ +12>>2]=0;a=J[J[b>>2]+376>>2];J[699344]=0;ja(a|0,b|0,f|0,j+104|0,j+8|0,j+72|0,j- -64|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Za;c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;mh(d);break b}J[j+104>>2]=1;a=J[J[b>>2]+312>>2];J[699344]=0;aa(a|0,b|0,j+104|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;If(f)}fc=j+128|0;return}c=Z()|0}If(f);ba(c|0);B()}ea(0)|0;Bc();B()}function bBa(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;var h=0,i=0,j=0,k=0,l=0;h=fc-240|0;fc=h;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!K[b+ +144|0]){a=Qc(h+176|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;break b}k=J[d>>2];if(J[b+4>>2]==1){a=Qc(h+176|0,J[685887],2386059,869,2414403,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;break b}i=rl(a,2399519);J[h+232>>2]=0;J[h+236>>2]=J[685894];a=J[c>>2];k:{if(a){j=J[J[a>>2]+28>>2];J[699344]=0;ca(j|0,h+176|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break k;e=Z()|0;break c}J[h+176>>2]=0}J[699344]=0;aa(5153,h+232| +0,h+176|0)|0;a=J[699344];J[699344]=0;l:{if((a|0)!=1){a=J[h+176>>2];J[h+176>>2]=0;if(!a)break l;J[699344]=0;j=J[a+4>>2]-1|0;J[a+4>>2]=j;l=J[699344];J[699344]=0;if((l|0)!=1){if(j)break l;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break l}break a}e=Z()|0;zc(h+176|0);break c}a=J[h+232>>2];J[h+236>>2]=J[(a?a+12|0:2743576)>>2];J[699344]=0;j=pd(h+232|0,2416280,-1);a=J[699344];J[699344]=0;if((a|0)==1)break h;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{a=e|f;if(!(j|(a|0)!=1)){if(J[b+8>> +2]){J[699344]=0;a=ja(5178,h+176|0,2399812,2386059,879,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break B;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}if(e){J[699344]=0;a=ja(5178,h+176|0,2400220,2386059,881,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;a=h+220|0;$(5466,a|0);c=J[699344];J[699344]=0;C:{D:{E:{if((c|0)!=1){J[699344]=0;da(5467, +J[h+220>>2],k|0);c=J[699344];J[699344]=0;if((c|0)==1)break C;J[699344]=0;aa(5153,b+8|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break C;J[699344]=0;ga(5350,i|0,2400315,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break C;a=J[b+8>>2];if((J[a+8>>2]|J[a+12>>2])>=0)break D;J[699344]=0;a=ja(5178,h+176|0,2401880,2386059,889,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break E;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break d}e=Z()|0;break c}e=Z()|0;break d}if(J[a+ +16>>2]>=50){J[699344]=0;a=ja(5178,h+176|0,2402146,2386059,892,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break z;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break d}a=J[h+220>>2];J[h+220>>2]=0;if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break g;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g}break a}e=Z()|0;break d}J[699344]=0;e=pd(h+232|0,2394278,-1);j=J[699344];J[699344]=0;if((j|0)== +1)break h;if(!(e|(a|g)!=1)){J[699344]=0;ia(5474,h+228|0,b|0,k|0,-1);a=J[699344];J[699344]=0;F:{G:{H:{I:{J:{if((a|0)!=1){a=J[h+228>>2];if(!a)break H;J[699344]=0;b=J[a+148>>2];c=J[699344];J[699344]=0;K:{if((c|0)==1)break K;if(b&1)break J;J[699344]=0;b=J[a+148>>2];c=J[699344];J[699344]=0;if((c|0)==1)break K;if(b&2)break J;J[699344]=0;b=J[a+148>>2];c=J[699344];J[699344]=0;if((c|0)==1)break K;if(b&4)break J;J[699344]=0;$(5433,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break I}e=Z()|0;break e}e=Z()|0;break c}J[699344]= +0;a=J[J[h+228>>2]+148>>2];b=J[699344];J[699344]=0;if((b|0)==1)break f;b=2;L:{if(a&2){J[699344]=0;a=pa(5383)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break L;break f}J[699344]=0;a=J[J[h+228>>2]+148>>2];b=J[699344];J[699344]=0;if((b|0)==1)break f;b=4;if(!(a&4))break I;J[699344]=0;a=pa(5383)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f}c=J[J[a>>2]+40>>2];J[699344]=0;ia(c|0,a|0,J[h+228>>2],b|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break f}J[699344]=0;a=aa(5151,h+176|0,J[h+228>>2]+72|0)|0;b=J[699344];J[699344]= +0;M:{N:{O:{P:{if((b|0)!=1){J[699344]=0;b=h+212|0;da(5283,b|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break P;J[699344]=0;c=h+220|0;ca(5218,c|0,2402433,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break O;d=J[h+220>>2];d=J[(d?d+12|0:2743576)>>2];J[699344]=0;ga(5350,i|0,d|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break N;wc(c);wc(b);J[a+24>>2]=2392964;J[a>>2]=2392932;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2392964;b=J[a+20>>2];if(b){c=J[b+4>> +2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}wc(a+8|0);break G}e=Z()|0;break e}e=Z()|0;Ed(a);break e}e=Z()|0;break M}e=Z()|0;wc(h+220|0)}wc(h+212|0);Ed(a);break e}J[699344]=0;ga(5350,i|0,2402586,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break F}a=J[h+228>>2];J[h+228>>2]=0;if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break g;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g}break a}e=Z()|0;break e}J[699344]=0;e=pd(h+ +232|0,2402708,-1);j=J[699344];J[699344]=0;if((j|0)==1)break h;if(!(a^1|(e|0)!=0)){if(J[b+24>>2]){J[699344]=0;a=ja(5178,h+176|0,2402872,2386059,928,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break y;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;a=h+176|0;$(5482,a|0);c=J[699344];J[699344]=0;Q:{if((c|0)!=1){J[699344]=0;ia(5483,J[h+176>>2],d|0,0,0);c=J[699344];J[699344]=0;if((c|0)==1)break Q;J[699344]=0;aa(5153,b+24|0,a|0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break Q;a=J[h+176>>2];b=J[a+40>>2];c=J[a+44>>2];a=J[a+16>>2];J[699344]=0;J[h>>2]=((a+c|0)-b|0)+1;ga(5350,i|0,2403474,h|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Q;a=J[h+176>>2];J[h+176>>2]=0;if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break g;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g}break a}e=Z()|0;break c}e=Z()|0;zc(h+176|0);break c}J[699344]=0;e=pd(h+232|0,2404361,-1);j=J[699344];J[699344]=0;if((j| +0)==1)break h;if(!(a^1|(e|0)!=0)){if(J[b+20>>2]){J[699344]=0;a=ja(5178,h+176|0,2405368,2386059,941,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break x;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;a=_(4,108)|0;c=J[699344];J[699344]=0;R:{S:{if((c|0)==1)break S;J[699344]=0;c=_(5484,a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break w;J[699344]=0;J[h+176>>2]=0;aa(5145,h+176|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break S;c=J[b+8>>2];T:{if(!c){a= +J[h+176>>2];break T}a=J[h+176>>2];if(J[c+16>>2]>18)break T;H[a+104|0]=1}J[699344]=0;ia(5485,a|0,d|0,5486,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break R;J[699344]=0;aa(5153,b+20|0,h+176|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break R;c=J[h+176>>2];a=J[c+76>>2];c=J[c+72>>2];J[699344]=0;b=ga(5487,b|0,c|0,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break R;J[h+16>>2]=c;J[699344]=0;J[h+20>>2]=a;J[h+24>>2]=b;ga(5350,i|0,2405837,h+16|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break R;a=J[h+176>>2];J[h+176>> +2]=0;if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break g;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g}break a}e=Z()|0;break c}e=Z()|0;zc(h+176|0);break c}J[699344]=0;e=pd(h+232|0,2398976,-1);j=J[699344];J[699344]=0;if((j|0)==1)break h;U:{V:{W:{X:{if(!(a^1|(e|0)!=0)){if(J[b+20>>2]){J[699344]=0;a=ja(5178,h+176|0,2405368,2386059,958,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break v;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;a=J[b+148>>2];c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;a=a|2048;if((a|0)!=J[b+148>>2])J[b+148>>2]=a;a=J[699344];J[699344]=0;if((a|0)==1)break h;a=0;Y:{Z:{_:{$:{c=J[d>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break $;a=J[d>>2]}J[699344]=0;J[h+172>>2]=a;a=h+176|0;da(5488,a|0,h+172|0);c=J[699344];J[699344]=0;if((c|0)==1)break _;J[699344]=0;aa(5153,b+20|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)== +1)break Z;a=J[h+176>>2];J[h+176>>2]=0;aa:{if(!a)break aa;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break aa;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[h+172>>2];J[h+172>>2]=0;ba:{if(!a)break ba;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break ba;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}c=J[b+20>>2];a=J[c+76>>2];e=J[c+72>>2];J[699344]=0;b=ga(5487,b|0, +e|0,a|0)|0;c=J[699344];J[699344]=0;d=2405957;if((c|0)!=1)break X;break h}e=Z()|0;break c}e=Z()|0;break Y}e=Z()|0;zc(h+176|0)}zc(h+172|0);break c}J[699344]=0;e=pd(h+232|0,2406064,-1);j=J[699344];J[699344]=0;if((j|0)==1)break h;if(!(a^1|(e|0)!=0)){a=b+12|0;c=J[b+12>>2];if(!c){if(J[b+16>>2]){J[699344]=0;a=ja(5178,h+176|0,2406223,2386059,972,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;da(5489, +h+176|0,1);c=J[699344];J[699344]=0;ca:{da:{ea:{if((c|0)!=1){c=J[h+176>>2];e=J[d>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break ea;d=J[d>>2]}else d=0;J[h+168>>2]=d;d=J[J[c>>2]+40>>2];J[699344]=0;e=c;c=h+168|0;aa(d|0,e|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break da;zc(c);J[699344]=0;f=h+176|0;aa(5153,a|0,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ea;J[699344]=0;a=J[J[h+176>>2]+12>>2];if(a)a=J[a+4>>2];else a=0;c=J[699344];J[699344]=0;if((c|0)==1)break ea; +J[699344]=0;c=J[J[h+176>>2]+12>>2];if(c)c=J[c+8>>2];else c=0;d=J[699344];J[699344]=0;if((d|0)==1)break ea;J[699344]=0;d=J[J[h+176>>2]+12>>2];if(d)d=J[d+4>>2];else d=0;e=J[699344];J[699344]=0;if((e|0)==1)break ea;J[699344]=0;e=J[J[h+176>>2]+12>>2];if(e)e=J[e+8>>2];else e=0;g=J[699344];J[699344]=0;if((g|0)==1)break ea;J[699344]=0;b=ga(5487,b|0,d|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break ea;J[h+48>>2]=a;J[699344]=0;J[h+52>>2]=c;J[h+56>>2]=b;ga(5350,i|0,2406402,h+48|0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break ea;zc(f);break g}e=Z()|0;break c}e=Z()|0;break ca}e=Z()|0;zc(h+168|0)}zc(h+176|0);break c}J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;fa:{ga:{ha:{if((c|0)!=1){a=J[a>>2];J[h+176>>2]=a;c=J[d>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break ha;c=J[d>>2]}else c=0;J[h+164>>2]=c;c=J[J[a>>2]+40>>2];J[699344]=0;d=a;a=h+164|0;aa(c|0,d|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ga;zc(a);a=J[h+176>>2];c=J[J[a>>2]+52>>2];J[699344]= +0;d=_(c|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ha;J[699344]=0;a=J[J[h+176>>2]+12>>2];if(a)a=J[a+4>>2];else a=0;c=J[699344];J[699344]=0;if((c|0)==1)break ha;J[699344]=0;c=J[J[h+176>>2]+12>>2];if(c)c=J[c+8>>2];else c=0;e=J[699344];J[699344]=0;if((e|0)==1)break ha;J[699344]=0;a=ga(5487,b|0,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ha;J[h+64>>2]=d;J[699344]=0;J[h+68>>2]=a;ga(5350,i|0,2406572,h- -64|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ha;zc(h+176|0);break g}e=Z()|0;break c}e= +Z()|0;break fa}e=Z()|0;zc(h+164|0)}zc(h+176|0);break c}J[699344]=0;e=pd(h+232|0,2407464,-1);j=J[699344];J[699344]=0;if((j|0)==1)break h;if(!(!f|e)){if(J[b+28>>2]|J[b+32>>2]){J[699344]=0;a=ja(5178,h+176|0,2407568,2386059,995,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;da(5489,h+176|0,1);a=J[699344];J[699344]=0;ia:{ja:{ka:{la:{ma:{if((a|0)!=1){a=J[h+176>>2];c=J[d>>2];if(c){J[699344]=0; +J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break ma;c=J[d>>2]}else c=0;J[h+160>>2]=c;c=J[J[a>>2]+40>>2];J[699344]=0;d=c;c=h+160|0;aa(d|0,a|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break la;zc(c);c=J[J[a>>2]+16>>2];J[699344]=0;d=c;c=h+220|0;da(d|0,c|0,a|0);d=J[699344];J[699344]=0;if((d|0)==1)break ka;J[699344]=0;aa(5153,b+28|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break ja;zc(c);J[699344]=0;c=J[a+12>>2];if(c)c=J[c+4>>2];else c=0;d=J[699344];J[699344]=0;if((d|0)==1)break ma; +J[699344]=0;d=J[a+12>>2];if(d)d=J[d+8>>2];else d=0;e=J[699344];J[699344]=0;if((e|0)==1)break ma;J[699344]=0;e=J[a+12>>2];if(e)e=J[e+4>>2];else e=0;f=J[699344];J[699344]=0;if((f|0)==1)break ma;J[699344]=0;a=J[a+12>>2];if(a)a=J[a+8>>2];else a=0;f=J[699344];J[699344]=0;if((f|0)==1)break ma;J[699344]=0;a=ga(5487,b|0,e|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ma;J[h+80>>2]=c;J[699344]=0;J[h+84>>2]=d;J[h+88>>2]=a;ga(5350,i|0,2407774,h+80|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ma;zc(h+ +176|0);break g}e=Z()|0;break c}e=Z()|0;break ia}e=Z()|0;zc(h+160|0);break ia}e=Z()|0;break ia}e=Z()|0;zc(h+220|0)}zc(h+176|0);break c}J[699344]=0;e=pd(h+232|0,2408259,-1);f=J[699344];J[699344]=0;if((f|0)==1)break h;if(a^1|e)break U;if(J[b+12>>2]|J[b+16>>2]){J[699344]=0;a=ja(5178,h+176|0,2406223,2386059,1009,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break s;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}if(!J[693735]){a=2408380;break i}J[699344]=0; +c=J[b+148>>2];a=c&-129|128;if((a|0)!=(c|0))J[b+148>>2]=a;a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;c=J[b+148>>2];a=c&-2049|2048;if((a|0)!=(c|0))J[b+148>>2]=a;a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;c=J[b+148>>2];a=c&-4097|4096;if((a|0)!=(c|0))J[b+148>>2]=a;a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;a=h+176|0;da(J[693735],a|0,k|0);c=J[699344];J[699344]=0;if((c|0)==1)break W;J[699344]=0;aa(5153,b+16|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break V;zc(a); +c=J[b+16>>2];a=L[c+8>>1];e=L[c+10>>1];J[699344]=0;b=ga(5487,b|0,e|0,a|0)|0;c=J[699344];J[699344]=0;d=2408328;if((c|0)==1)break h}J[h+32>>2]=e;J[699344]=0;J[h+36>>2]=a;J[h+40>>2]=b;ga(5350,i|0,d|0,h+32|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;break g}e=Z()|0;break c}e=Z()|0;zc(h+176|0);break c}J[699344]=0;e=pd(h+232|0,2398687,-1);f=J[699344];J[699344]=0;if((f|0)==1)break h;if(!(a^1|(e|0)!=0)){if(J[b+12>>2]|J[b+16>>2]){J[699344]=0;a=ja(5178,h+176|0,2406223,2386059,1029,2414403,0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break r;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;c=J[b+148>>2];a=c&-2049|2048;if((a|0)!=(c|0))J[b+148>>2]=a;b=J[699344];J[699344]=0;a=2408833;if((b|0)!=1)break i;break h}J[699344]=0;e=pd(h+232|0,2410575,-1);f=J[699344];J[699344]=0;if((f|0)==1)break h;if(!(a^1|(e|0)!=0)){a=2410638;if(!(J[b+28>>2]|J[b+32>>2]))break i;J[699344]=0;a=ja(5178,h+176|0,2407568,2386059,1054,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q; +J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;e=pd(h+232|0,2410791,-1);f=J[699344];J[699344]=0;if((f|0)==1)break h;if(!(a^1|(e|0)!=0)){a=2411076;if(!J[b+12>>2])break i;J[699344]=0;a=ja(5178,h+176|0,2406223,2386059,1078,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break p;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;e=pd(h+232|0,2411132,-1);f=J[699344];J[699344]=0;if((f|0)==1)break h; +if(!(a^1|(e|0)!=0)){a=2411162;if(!(J[b+28>>2]|J[b+32>>2]))break i;J[699344]=0;a=ja(5178,h+176|0,2407568,2386059,1086,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break o;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}J[699344]=0;e=pd(h+232|0,2411201,-1);f=J[699344];J[699344]=0;if((f|0)==1)break h;if(!(a^1|(e|0)!=0)){if(J[b+28>>2]|J[b+32>>2]){J[699344]=0;a=ja(5178,h+176|0,2407568,2386059,1094,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;J[699344]= +0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}a=0;J[699344]=0;$(5495,h+176|0);c=J[699344];J[699344]=0;na:{oa:{pa:{if((c|0)!=1){e=J[h+176>>2];c=J[d>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break pa;a=J[d>>2]}J[699344]=0;J[h+156>>2]=a;a=h+156|0;da(5496,e|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break oa;zc(a);J[699344]=0;a=b+32|0;b=h+176|0;aa(5153,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break pa;a=J[h+176>>2];c=J[a+24>> +2];d=J[a+28>>2];e=J[a+56>>2];a=J[a+60>>2];J[699344]=0;J[h+96>>2]=(a-e|0)+1;J[h+100>>2]=(d-c|0)+1;ga(5350,i|0,2411222,h+96|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break pa;zc(b);break g}e=Z()|0;break c}e=Z()|0;break na}e=Z()|0;zc(h+156|0)}zc(h+176|0);break c}J[699344]=0;a=h+232|0;e=pd(a,2411879,-1);f=J[699344];J[699344]=0;if((f|0)==1)break h;qa:{if(e){J[699344]=0;a=pd(a,2411893,-1);e=J[699344];J[699344]=0;if((e|0)==1)break h;if(a)break qa}if(!g)break qa;a=b+12|0;c=J[b+12>>2];if(!c){J[699344]=0;da(5489, +h+176|0,1);c=J[699344];J[699344]=0;ra:{sa:{ta:{ua:{va:{if((c|0)!=1){c=J[h+176>>2];e=J[d>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break va;d=J[d>>2]}else d=0;J[h+152>>2]=d;d=J[J[c>>2]+40>>2];J[699344]=0;e=c;c=h+152|0;aa(d|0,e|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break ua;zc(c);J[699344]=0;c=h+220|0;$(5466,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break ta;J[699344]=0;d=J[J[h+176>>2]+12>>2];if(d)d=J[d+4>>2];else d=0;e=J[699344];J[699344]=0;if((e|0)==1)break sa; +J[J[h+220>>2]+8>>2]=d;J[699344]=0;d=J[J[h+176>>2]+12>>2];if(d)d=J[d+8>>2];else d=0;e=J[699344];J[699344]=0;if((e|0)==1)break sa;e=J[h+220>>2];J[e+20>>2]=100;J[e+12>>2]=d;J[699344]=0;g=h+176|0;aa(5153,a|0,g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break sa;J[699344]=0;aa(5153,b+8|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break sa;J[699344]=0;a=J[J[h+176>>2]+12>>2];if(a)a=J[a+4>>2];else a=0;d=J[699344];J[699344]=0;if((d|0)==1)break sa;J[699344]=0;d=J[J[h+176>>2]+12>>2];if(d)d=J[d+8>>2];else d=0; +e=J[699344];J[699344]=0;if((e|0)==1)break sa;J[699344]=0;e=J[J[h+176>>2]+12>>2];if(e)e=J[e+4>>2];else e=0;f=J[699344];J[699344]=0;if((f|0)==1)break sa;J[699344]=0;f=J[J[h+176>>2]+12>>2];if(f)f=J[f+8>>2];else f=0;k=J[699344];J[699344]=0;if((k|0)==1)break sa;J[699344]=0;b=ga(5487,b|0,e|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break sa;J[h+112>>2]=a;J[699344]=0;J[h+116>>2]=d;J[h+120>>2]=b;ga(5350,i|0,2411964,h+112|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break sa;zc(c);zc(g);break g}e=Z()|0;break c}e= +Z()|0;break ra}e=Z()|0;zc(h+152|0);break ra}e=Z()|0;break ra}e=Z()|0;zc(h+220|0)}zc(h+176|0);break c}J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;wa:{xa:{ya:{if((c|0)!=1){a=J[a>>2];J[h+176>>2]=a;c=J[d>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break ya;c=J[d>>2]}else c=0;J[h+148>>2]=c;c=J[J[a>>2]+40>>2];J[699344]=0;d=a;a=h+148|0;aa(c|0,d|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break xa;zc(a);a=J[h+176>>2];c=J[J[a>>2]+52>>2];J[699344]=0;d=_(c| +0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ya;J[699344]=0;a=J[J[h+176>>2]+12>>2];if(a)a=J[a+4>>2];else a=0;c=J[699344];J[699344]=0;if((c|0)==1)break ya;J[699344]=0;c=J[J[h+176>>2]+12>>2];if(c)c=J[c+8>>2];else c=0;e=J[699344];J[699344]=0;if((e|0)==1)break ya;J[699344]=0;a=ga(5487,b|0,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ya;J[h+128>>2]=d;J[699344]=0;J[h+132>>2]=a;ga(5350,i|0,2412025,h+128|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ya;zc(h+176|0);break g}e=Z()|0;break c}e= +Z()|0;break wa}e=Z()|0;zc(h+148|0)}zc(h+176|0);break c}J[699344]=0;a=pd(h+232|0,2412061,-1);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(!a){J[699344]=0;a=h+176|0;da(5497,a|0,b+72|0);c=J[699344];J[699344]=0;za:{if((c|0)!=1){J[699344]=0;da(5498,J[h+176>>2],k|0);c=J[699344];J[699344]=0;if((c|0)==1)break za;J[699344]=0;aa(5153,b+48|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break za;J[699344]=0;ga(5350,i|0,2412066,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break za;zc(a);break g}e=Z()|0;break c}e= +Z()|0;zc(h+176|0);break c}J[699344]=0;a=pd(h+232|0,2412112,-1);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(!a){J[699344]=0;$(5248,h+176|0);a=J[699344];J[699344]=0;Aa:{Ba:{Ca:{Da:{Ea:{if((a|0)!=1){J[699344]=0;a=J[h+176>>2];ga(5335,a|0,k|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ba;c=J[J[a>>2]+20>>2];J[699344]=0;ha(c|0,a|0,0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ba;c=b+36|0;b=J[b+36>>2];if(!b){J[699344]=0;b=h+220|0;$(5248,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break Da;J[699344]= +0;aa(5153,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Ca;zc(b);b=J[c>>2]}d=J[J[b>>2]+20>>2];J[699344]=0;ha(d|0,b|0,0,2,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ea;b=J[c>>2];J[699344]=0;ga(5335,b|0,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ea;J[699344]=0;ga(5350,i|0,2412138,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ea;zc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break Aa}e=Z()|0;break Aa}e=Z()|0;zc(h+220|0);break Aa}e=Z()|0}zc(h+176|0);break c}J[699344]=0;a=wW(h+232|0); +d=J[699344];J[699344]=0;if((d|0)==1)break h;if(a){J[699344]=0;$(5248,h+176|0);a=J[699344];J[699344]=0;Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{if((a|0)!=1){J[699344]=0;a=J[h+176>>2];ga(5335,a|0,k|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break La;d=J[J[a>>2]+20>>2];J[699344]=0;ha(d|0,a|0,0,0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break La;d=b+36|0;b=J[b+36>>2];if(!b){J[699344]=0;b=h+220|0;$(5248,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break Ja;J[699344]=0;aa(5153,d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break Ia;zc(b);b=J[d>>2]}e=J[J[b>>2]+20>>2];J[699344]=0;ha(e|0,b|0,0,2,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ka;J[699344]=0;e=h+220|0;da(5278,e|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break Ha;b=J[c>>2];c=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=J[h+220>>2];ca(5330,b|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break Ga;J[699344]=0;ga(5500,b|0,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ga;J[699344]=0;$(5332,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break Ga;J[699344]=0;ga(5350, +i|0,2412227,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ga;zc(e);zc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break Fa}e=Z()|0;break Fa}e=Z()|0;break Fa}e=Z()|0;zc(h+220|0);break Fa}e=Z()|0;break Fa}e=Z()|0;zc(h+220|0)}zc(h+176|0);break c}J[699344]=0;a=vW(h+232|0);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(a){J[699344]=0;$(5248,h+176|0);a=J[699344];J[699344]=0;Ma:{Na:{Oa:{Pa:{Qa:{Ra:{Sa:{if((a|0)!=1){J[699344]=0;a=J[h+176>>2];ga(5335,a|0,k|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Sa; +d=J[J[a>>2]+20>>2];J[699344]=0;ha(d|0,a|0,0,0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Sa;d=b+40|0;b=J[b+40>>2];if(!b){J[699344]=0;b=h+220|0;$(5248,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break Qa;J[699344]=0;aa(5153,d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Pa;zc(b);b=J[d>>2]}e=J[J[b>>2]+20>>2];J[699344]=0;ha(e|0,b|0,0,2,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ra;J[699344]=0;e=h+220|0;da(5278,e|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break Oa;b=J[c>>2];c=J[(b?b+12|0:2743576)>> +2];J[699344]=0;b=J[h+220>>2];ca(5330,b|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break Na;J[699344]=0;ga(5500,b|0,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Na;J[699344]=0;$(5332,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break Na;J[699344]=0;ga(5350,i|0,2412491,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Na;zc(e);zc(h+176|0);break g}e=Z()|0;break c}e=Z()|0;break Ma}e=Z()|0;break Ma}e=Z()|0;break Ma}e=Z()|0;zc(h+220|0);break Ma}e=Z()|0;break Ma}e=Z()|0;zc(h+220|0)}zc(h+176|0);break c}J[699344]= +0;a=uW(h+232|0);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(a){J[699344]=0;$(5248,h+176|0);a=J[699344];J[699344]=0;Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{if((a|0)!=1){J[699344]=0;a=J[h+176>>2];ga(5335,a|0,k|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Za;d=J[J[a>>2]+20>>2];J[699344]=0;ha(d|0,a|0,0,0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Za;d=b+44|0;b=J[b+44>>2];if(!b){J[699344]=0;b=h+220|0;$(5248,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break Xa;J[699344]=0;aa(5153,d|0,b|0)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break Wa;zc(b);b=J[d>>2]}e=J[J[b>>2]+20>>2];J[699344]=0;ha(e|0,b|0,0,2,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ya;J[699344]=0;e=h+220|0;da(5278,e|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break Va;b=J[c>>2];c=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=J[h+220>>2];ca(5330,b|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break Ua;J[699344]=0;ga(5500,b|0,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ua;J[699344]=0;$(5332,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break Ua;zc(e);zc(h+ +176|0);break g}e=Z()|0;break c}e=Z()|0;break Ta}e=Z()|0;break Ta}e=Z()|0;break Ta}e=Z()|0;zc(h+220|0);break Ta}e=Z()|0;break Ta}e=Z()|0;zc(h+220|0)}zc(h+176|0);break c}J[699344]=0;a=pd(h+232|0,2412514,-1);b=J[699344];J[699344]=0;if((b|0)==1)break h;if(a)break g;J[699344]=0;a=ja(5178,h+176|0,2412527,2386059,1244,2414403,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;e=Z()|0;Kc(a);break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break d}e= +Z()|0;break c}e=Z()|0;break c}e=Z()|0;uc(a);break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0;break c}B()}J[699344]=0;ga(5350,i|0,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break g}e=Z()|0;break c}wc(h+232|0);fc=h+240|0;return}e=Z()|0}zc(h+228|0);break c}zc(h+220|0)}wc(h+232|0);wc(i);ba(e|0);B()}b=Z()|0;Kc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function PHa(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,C=0,D=0,E=0,F=0,G=0,M=0,P=0,R=0,S=0,T=Q(0),U=Q(0),V=0,W=0;e=fc-320|0;fc=e;J[e+312>>2]=0;J[e+304>>2]=0;J[e+308>>2]=0;J[699344]=0;v=e+292|0;k=v;J[k>>2]=0;J[k+4>>2]=0;H[k+8|0]=0;k=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((k|0)!=1){J[699344]=0;w=e+280|0;k=w;J[k>>2]=0;J[k+4>>2]=0;H[k+8|0]=0;k=J[699344];J[699344]=0;if((k|0)!=1){J[e+276>>2]=0;J[699344]=0;u=e+264|0;k=u;J[k>>2]=0;J[k+4>>2]=0;H[k+8|0]=0;k=J[699344]; +J[699344]=0;if((k|0)!=1){J[699344]=0;t=e+252|0;k=t;J[k>>2]=0;J[k+4>>2]=0;H[k+8|0]=0;k=J[699344];J[699344]=0;if((k|0)!=1){J[699344]=0;k=vk(b);o=J[699344];J[699344]=0;if((o|0)==1)break e;if(!k){p=10;k=0;o=0;break f}J[699344]=0;da(4970,e+120|0,b|0);k=J[699344];J[699344]=0;if((k|0)!=1){i=a+12|0;p=10;k=0;o=0;g:{while(1){g=K[e+131|0];f=g<<24>>24;l=(f|0)<0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{h=J[e+124>>2];switch((l?h:g)|0){case 0:break j;case 7:break B;default:break A}}if(!qd(l? +J[e+120>>2]:e+120|0,2379336,7))break z;h=J[e+124>>2];g=K[e+131|0];f=g}l=f<<24>>24<0;if(((l?h:g)|0)==7)break y;break l}J[699344]=0;da(4971,e+32|0,b|0);f=J[699344];J[699344]=0;if((f|0)==1)break x;if(H[e+315|0]<0)uc(J[e+304>>2]);J[e+312>>2]=J[e+40>>2];f=J[e+36>>2];J[e+304>>2]=J[e+32>>2];J[e+308>>2]=f;J[699344]=0;f=e+304|0;da(5017,e+32|0,f|0);g=J[699344];J[699344]=0;C:{D:{E:{if((g|0)!=1){J[699344]=0;f=aa(3358,f|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break E;if(J[f>>2]!=46)break v;f=ro(i,47);if((f| +0)==-1)break D;J[699344]=0;na(2963,e+240|0,i|0,0,f+1|0,e+224|0)|0;break C}h=Z()|0;break g}h=Z()|0;break n}if(H[a+23|0]>=0){J[e+248>>2]=J[i+8>>2];f=J[i+4>>2];J[e+240>>2]=J[i>>2];J[e+244>>2]=f;break w}f=J[a+16>>2];g=J[a+12>>2];J[699344]=0;ca(15,e+240|0,g|0,f|0)}f=J[699344];J[699344]=0;if((f|0)!=1)break w;h=Z()|0;break n}if(qd(l?J[e+120>>2]:e+120|0,2379392,7)){h=J[e+124>>2];g=K[e+131|0];f=g;break l}J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;F:{G:{H:{I:{if((g|0)!=1){J[699344]=0;f=aa(4985, +e+212|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break I;J[699344]=0;Ft(f,e+240|0);g=J[699344];J[699344]=0;if((g|0)==1)break H;Rc(f);if(H[e+43|0]<0)uc(J[e+32>>2]);J[699344]=0;da(4996,d|0,e+240|0);f=J[699344];J[699344]=0;if((f|0)==1)break F;F=1;break k}h=Z()|0;break g}h=Z()|0;break G}h=Z()|0;Rc(f)}if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}h=Z()|0;break g}h=Z()|0;break g}l=H[e+315|0];n=(l|0)<0;f=H[e+251|0];x=(f|0)<0;J:{K:{q=x?J[e+244>>2]:f&255;G=n?J[e+308>>2]:l&255;h=q+G|0;L:{if(h>>>0>=1073741808){J[699344]= +0;$(2959,e+224|0);a=J[699344];J[699344]=0;if((a|0)==1)break L;break m}if(h>>>0<=1){J[e+232>>2]=0;J[e+224>>2]=0;J[e+228>>2]=0;H[e+235|0]=h;g=e+224|0;break J}g=h|3;if(g>>>0<1073741823)break K;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break m}h=Z()|0;f=K[e+251|0];break t}J[699344]=0;M=g+1|0;g=_(4,M<<2)|0;P=J[699344];J[699344]=0;if((P|0)==1)break u;J[e+228>>2]=h;J[e+224>>2]=g;J[e+232>>2]=M|-2147483648}h=g;g=q<<2;q=cd(h,x?J[e+240>>2]:e+240|0,g)+g|0;g=J[e+304>>2];h=G<<2;V=cd(q,n?g:e+304|0, +h)+h|0,W=0,J[V>>2]=W;if((l|0)<0){uc(g);f=K[e+251|0]}J[e+312>>2]=J[e+232>>2];g=J[e+228>>2];J[e+304>>2]=J[e+224>>2];J[e+308>>2]=g;if(f<<24>>24>=0)break v;uc(J[e+240>>2])}f=J[a+24>>2];g=J[J[f>>2]+12>>2];J[699344]=0;ca(g|0,e+240|0,f|0,e+304|0);f=J[699344];J[699344]=0;if((f|0)==1)break s;if(H[e+315|0]<0)uc(J[e+304>>2]);J[e+312>>2]=J[e+248>>2];f=J[e+244>>2];J[e+304>>2]=J[e+240>>2];J[e+308>>2]=f;J[699344]=0;n=e+240|0;da(5019,n|0,e+304|0);f=J[699344];J[699344]=0;if((f|0)==1)break r;g=K[e+251|0];h=g<<24>> +24;l=(h|0)<0;f=J[e+244>>2];x=l?f:g;if(x){g=l?J[e+240>>2]:n;f=g+(x<<2)|0;while(1){h=J[g>>2];J[699344]=0;h=$s(h);l=J[699344];J[699344]=0;if((l|0)==1)break o;J[g>>2]=h;g=g+4|0;if((f|0)!=(g|0))continue;break}g=K[e+251|0];h=g;q=J[e+244>>2]}else q=f;f=h<<24>>24<0;if(((f?q:g)|0)!=5)break q;if(qd(f?J[e+240>>2]:e+240|0,2379368,5))break q;g=K[e+43|0];f=g<<24>>24<0;h=f?J[e+36>>2]:g;if(h){g=f?J[e+32>>2]:e+32|0;f=g+(h<<2)|0;while(1){h=J[g>>2];J[699344]=0;h=$s(h);l=J[699344];J[699344]=0;if((l|0)==1)break o;J[g>> +2]=h;g=g+4|0;if((f|0)!=(g|0))continue;break}}f=J[a+24>>2];g=J[a+28>>2];J[699344]=0;ia(5020,g|0,e+32|0,e+304|0,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break p;break o}h=Z()|0}if(f<<24>>24>=0)break n;uc(J[e+240>>2]);break n}h=Z()|0;break n}h=Z()|0;break n}f=J[a+24>>2];g=J[J[f>>2]+8>>2];J[699344]=0;f=_(g|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break o;if((f|0)!=1)break p;J[699344]=0;f=J[693078];g=J[699344];J[699344]=0;if((g|0)==1)break o;if(!f)break p;J[e+224>>2]=0;f=J[a+24>>2];g=J[J[f>>2]+20>> +2];J[699344]=0;h=g;g=e+304|0;ga(h|0,f|0,g|0,e+224|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break o;J[699344]=0;f=J[693078];h=J[699344];J[699344]=0;if((h|0)==1)break o;M:{if(!f)break M;J[699344]=0;f=J[693078];h=J[699344];J[699344]=0;if((h|0)==1)break o;h=J[e+224>>2];l=J[h+4>>2];h=J[h>>2];n=J[J[f>>2]+16>>2];J[699344]=0;na(n|0,f|0,g|0,h|0,l|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break M;break o}f=J[e+224>>2];if(!f)break p;N:{if(!K[f+8|0])break N;g=J[f>>2];if(!g)break N;uc(g)}uc(f)}J[699344]=0;da(5021, +e+224|0,e+304|0);f=J[699344];J[699344]=0;if((f|0)!=1){if(H[e+315|0]<0)uc(J[e+304>>2]);J[e+312>>2]=J[e+232>>2];f=J[e+228>>2];J[e+304>>2]=J[e+224>>2];J[e+308>>2]=f;f=J[J[c>>2]+244>>2];J[699344]=0;aa(f|0,c|0,e+304|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break o;if(H[e+251|0]<0)uc(J[e+240>>2]);if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}}h=Z()|0;if(H[e+251|0]>=0)break n;uc(J[e+240>>2])}if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}B()}O:{l=f<<24>>24<0;if(((l?h:g)|0)!=4)break O;if(qd(l?J[e+120>>2]: +e+120|0,2379424,4)){h=J[e+124>>2];g=K[e+131|0];f=g;break O}J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;P:{if((g|0)!=1){J[699344]=0;ca(5022,v|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break P;if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}Q:{l=f<<24>>24<0;if(((l?h:g)|0)!=4)break Q;if(qd(l?J[e+120>>2]:e+120|0,2379444,4)){h=J[e+124>>2];g=K[e+131|0];f=g;break Q}J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344]; +J[699344]=0;R:{if((g|0)!=1){J[699344]=0;ca(5022,t|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break R;if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}S:{l=f<<24>>24<0;if(((l?h:g)|0)!=16)break S;if(qd(l?J[e+120>>2]:e+120|0,2379464,16)){h=J[e+124>>2];g=K[e+131|0];f=g;break S}J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;T:{U:{V:{if((g|0)!=1){J[699344]=0;f=aa(4985,e+200|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break V; +if(H[e+43|0]<0)uc(J[e+32>>2]);J[699344]=0;g=Qd(f,2379532);h=J[699344];J[699344]=0;if((h|0)==1)break T;if(!g)break U;m=1;Rc(f);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}J[699344]=0;g=Qd(f,2379600);h=J[699344];J[699344]=0;if((h|0)==1)break T;if(g){j=1;Rc(f);break k}J[699344]=0;g=Qd(f,2379660);h=J[699344];J[699344]=0;if((h|0)==1)break T;m=g|m;j=g|j;Rc(f);break k}h=Z()|0;Rc(f);break g}W:{l=f<<24>>24<0;if(((l?h:g)|0)!=19)break W;if(qd(l?J[e+120>>2]:e+120|0,2379744, +19)){h=J[e+124>>2];g=K[e+131|0];f=g;break W}J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;X:{if((g|0)!=1){J[699344]=0;p=+qa(4995,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break X;if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}Y:{l=f<<24>>24<0;if(((l?h:g)|0)!=15)break Y;if(qd(l?J[e+120>>2]:e+120|0,2379824,15)){h=J[e+124>>2];g=K[e+131|0];f=g;break Y}J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;Z:{if((g| +0)!=1){J[699344]=0;ca(5022,w|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break Z;if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}_:{l=f<<24>>24<0;if(((l?h:g)|0)!=13)break _;if(qd(l?J[e+120>>2]:e+120|0,2379888,13)){h=J[e+124>>2];g=K[e+131|0];f=g;break _}J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;$:{aa:{ba:{ca:{da:{ea:{fa:{if((g|0)!=1){J[699344]=0;f=aa(4985,e+188|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break fa; +if(H[e+43|0]<0)uc(J[e+32>>2]);J[699344]=0;g=J[f+4>>2];h=J[699344];J[699344]=0;if((h|0)==1)break aa;if(!g)break ba;J[699344]=0;k=J[f>>2];ga:{if(K[f+8|0]){o=0;if(!k)break ga;k=J[k>>2]}o=k}k=J[699344];J[699344]=0;if((k|0)==1)break ea;J[699344]=0;o=aa(5023,e+176|0,o|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break ea;J[699344]=0;H[e+32|0]=1;k=ga(5024,o|0,e+276|0,e+32|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break da;if(H[e+187|0]<0)uc(J[o>>2]);o=J[e+276>>2];if(o>>>0<2){o=k;Rc(f);break k}if(L[k>>1]!=123){o= +k;Rc(f);break k}if(L[k+2>>1]==125)break ca;o=k;Rc(f);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}h=Z()|0;Rc(f);break g}h=Z()|0;if(H[e+187|0]>=0)break $;uc(J[o>>2]);Rc(f);break g}J[e+276>>2]=o-2;o=k+4|0}Rc(f);break k}h=Z()|0}Rc(f);break g}ha:{f=f<<24>>24<0;if(((f?h:g)|0)!=7)break ha;if(qd(f?J[e+120>>2]:e+120|0,2379944,7))break ha;J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;ia:{if((g|0)!=1){J[699344]=0;r=+qa(4995,f|0);f=J[699344];J[699344]=0;if((f| +0)==1)break ia;if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}if(Uj(2379976,e+120|0)){J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;ja:{if((g|0)!=1){J[699344]=0;C=+qa(4995,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break ja;if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}if(Uj(2380008,e+120|0)){J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344]; +J[699344]=0;ka:{la:{if((g|0)!=1){J[699344]=0;ca(5022,u|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break la;if(H[e+43|0]<0)uc(J[e+32>>2]);J[699344]=0;da(4971,e+32|0,b|0);f=J[699344];J[699344]=0;if((f|0)==1)break ka;if((D|0)<0)uc(E);D=H[e+43|0];E=J[e+32>>2];break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}h=Z()|0;break g}if(Uj(2380040,e+120|0)){J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;ma:{if((g|0)!=1){J[699344]=0;R=_(4972,f|0)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break ma;if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}if(!Cl(e+120|0,2380080))break k;J[699344]=0;f=e+32|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;na:{if((g|0)!=1){J[699344]=0;S=_(5025,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break na;if(H[e+43|0]>=0)break k;uc(J[e+32>>2]);break k}h=Z()|0;break g}h=Z()|0;if(H[e+43|0]>=0)break g;uc(J[e+32>>2]);break g}J[699344]=0;f=Mi(b);g=J[699344];J[699344]=0;if((g|0)==1)break i; +if(f)break h;f=K[e+131|0]}if(f<<24>>24>=0)break f;uc(J[e+120>>2]);break f}h=Z()|0;break g}J[699344]=0;da(4970,e+32|0,b|0);f=J[699344];J[699344]=0;if((f|0)!=1){if(H[e+131|0]<0)uc(J[e+120>>2]);J[e+128>>2]=J[e+40>>2];f=J[e+36>>2];J[e+120>>2]=J[e+32>>2];J[e+124>>2]=f;continue}break}h=Z()|0}if(H[e+131|0]>=0)break d;uc(J[e+120>>2]);break d}h=Z()|0;break d}h=Z()|0;f=0;break c}h=Z()|0;break b}h=Z()|0;Rc(v);break a}h=Z()|0;break a}J[699344]=0;gj(b);f=J[699344];J[699344]=0;if((f|0)==1)break e;h=0;J[699344]= +0;f=!J[t+4>>2];g=J[699344];J[699344]=0;oa:{if((g|0)==1)break oa;l=0;pa:{if(f)break pa;J[699344]=0;f=J[t+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break oa;qa:{if(!f)break qa;J[699344]=0;J[e+120>>2]=0;f=J[t>>2];if(K[t+8|0])f=J[f>>2];f=J[(J[e+120>>2]<<2)+f>>2];g=J[699344];J[699344]=0;if((g|0)!=1){if((f|0)!=123)break qa;J[699344]=0;h=aa(5026,d|0,t|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break pa;break oa}h=Z()|0;break d}J[699344]=0;f=J[t>>2];ra:{if(K[t+8|0]){g=0;if(!f)break ra;f=J[f>>2]}g=f}f=J[699344]; +J[699344]=0;if((f|0)==1)break oa;J[699344]=0;s=O[d+48>>3];f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;O[e+120>>3]=s;h=aa(5028,g|0,e+120|0)|0;f=J[699344];J[699344]=0;l=1;if((f|0)!=1)break pa}h=Z()|0;break d}J[699344]=0;f=Th(b);g=J[699344];J[699344]=0;if((g|0)==1)break oa;sa:{ta:{ua:{va:{wa:{xa:{ya:{if(!f){J[699344]=0;f=e+240|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;g=J[699344];J[699344]=0;if((g|0)==1)break ya;J[699344]=0;i=$g(b);g=J[699344];J[699344]=0;za:{Aa:{if((g|0)!=1){while(1){J[699344]=0;g=aa(4975, +b|0,i|0)|0;n=J[699344];J[699344]=0;if((n|0)==1)break sa;if(!g)break za;J[699344]=0;g=e+120|0;da(4962,g|0,b|0);n=J[699344];J[699344]=0;Ba:{Ca:{Da:{Ea:{if((n|0)!=1){J[699344]=0;g=aa(4985,e+224|0,g|0)|0;n=J[699344];J[699344]=0;if((n|0)==1)break Ea;J[699344]=0;dg(f,g);n=J[699344];J[699344]=0;if((n|0)==1)break Da;Rc(g);if(H[e+131|0]<0)uc(J[e+120>>2]);J[699344]=0;g=Qd(f,2380124);n=J[699344];J[699344]=0;if((n|0)==1)break sa;if(!g)break Ba;J[699344]=0;ca(4998,b|0,w|0,0);g=J[699344];J[699344]=0;if((g|0)!= +1)continue;break sa}h=Z()|0;Rc(f);break d}h=Z()|0;break Ca}h=Z()|0;Rc(g)}if(H[e+131|0]>=0)break Aa;uc(J[e+120>>2]);Rc(f);break d}J[699344]=0;g=Qd(f,2380216);n=J[699344];J[699344]=0;if((n|0)==1)break sa;if(g^1|h)continue;J[699344]=0;s=O[d+48>>3];g=J[699344];J[699344]=0;Fa:{if((g|0)==1)break Fa;J[699344]=0;O[e+120>>3]=s;h=ga(5029,b|0,e+120|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Fa;l=1;continue}break}h=Z()|0;Rc(f);break d}h=Z()|0}Rc(f);break d}Rc(f)}Ga:{Ha:{if(!h)break Ha;b=J[J[h>>2]+8>>2]; +J[699344]=0;b=aa(b|0,h|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break oa;if(b)break Ga;if(!l)break Ha;kc[J[J[h>>2]+4>>2]](h)}if(k)uc(k);if(!F)break va;J[699344]=0;kw(d);a=J[699344];J[699344]=0;if((a|0)==1)break oa;break va}n=0;J[699344]=0;b=J[w+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break oa;Ia:{if(!b)break Ia;J[699344]=0;b=J[w>>2];Ja:{if(K[w+8|0]){f=0;if(!b)break Ja;b=J[b>>2]}f=b}b=J[699344];J[699344]=0;if((b|0)==1)break oa;J[699344]=0;n=ga(4994,e|0,f|0,d|0)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break oa;if(!(p<5))break Ia;J[699344]=0;s=+qa(5030,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break xa;p=p*s}x=0;J[699344]=0;b=J[v+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break oa;if(b){J[699344]=0;b=J[v>>2];Ka:{if(K[v+8|0]){f=0;if(!b)break Ka;b=J[b>>2]}f=b}b=J[699344];J[699344]=0;if((b|0)==1)break oa;J[699344]=0;x=ga(4993,e|0,f|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break oa}s=p*.75;O[e+120>>3]=s;b=J[J[c>>2]+252>>2];J[699344]=0;aa(b|0,c|0,e+120|0)|0;b=J[699344];J[699344]=0;La:{Ma:{Na:{Oa:{if((b| +0)!=1){J[e+168>>2]=0;J[e+136>>2]=0;J[e+140>>2]=0;J[e+144>>2]=0;J[e+148>>2]=0;H[e+149|0]=0;H[e+150|0]=0;H[e+151|0]=0;H[e+152|0]=0;H[e+153|0]=0;H[e+154|0]=0;H[e+155|0]=0;H[e+156|0]=0;J[e+160>>2]=0;J[e+164>>2]=0;I[e+124>>1]=0;J[e+120>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+116>>2]=0;J[699344]=0;b=J[u+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break Oa;J[e+112>>2]=b;J[e+108>>2]=0;b=J[a+24>>2];f=J[J[b>>2]+12>>2];J[699344]=0;g=f;f=e+96|0;ca(g|0,f|0,b|0,e+304|0);b=J[699344];J[699344]=0;if((b|0)==1)break Na; +J[699344]=0;b=J[693078];g=J[699344];J[699344]=0;if((g|0)==1)break La;Pa:{if(!b)break Pa;J[699344]=0;b=J[693078];g=J[699344];J[699344]=0;if((g|0)==1)break ua;g=J[J[b>>2]+24>>2];J[699344]=0;b=aa(g|0,b|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break ua;if(b)break Pa;Qa:{if(H[e+107|0]<0){J[e+100>>2]=0;b=J[e+96>>2];break Qa}H[e+107|0]=0;b=e+96|0}J[b>>2]=0}b=K[e+107|0];if(b<<24>>24<0?J[e+100>>2]:b)break Ma;break wa}h=Z()|0;break d}h=Z()|0;break ta}h=Z()|0;break ta}b=J[a+32>>2];J[e+16>>2]=0;O[e+32>>3]= +Q(s);J[e+88>>2]=0;J[e+92>>2]=1079508992;J[e+80>>2]=0;J[e+84>>2]=1079508992;f=J[J[b>>2]+148>>2];J[699344]=0;ja(f|0,b|0,e+96|0,e+16|0,e+32|0,e+88|0,e+80|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break wa;break ua}break ua}h=Z()|0;break d}h=Z()|0;break d}b=J[a+32>>2];f=J[J[b>>2]+24>>2];J[699344]=0;b=_(f|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break ua;Ra:{if(!b){f=0;b=0;break Ra}f=J[J[b>>2]+48>>2];J[699344]=0;f=_(f|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ua;g=J[J[b>>2]+52>>2];J[699344]= +0;g=_(g|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;f=(f^1)&m;b=0;if((g|j^-1)&1)break Ra;b=J[J[c>>2]+140>>2];J[699344]=0;aa(b|0,c|0,e+88|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;b=J[J[c>>2]+148>>2];J[699344]=0;aa(b|0,c|0,e+80|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;b=J[J[c>>2]+52>>2];J[699344]=0;aa(b|0,c|0,e+88|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;b=J[J[c>>2]+60>>2];J[699344]=0;aa(b|0,c|0,e+80|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;J[e+32>>2]=-286331153; +J[e+36>>2]=1070657262;b=J[J[c>>2]+68>>2];J[699344]=0;aa(b|0,c|0,e+32|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;b=1}g=b;z=p/100;Sa:{if(S&1){while(1){J[699344]=0;b=J[u>>2];Ta:{if(K[u+8|0]){j=0;if(!b)break Ta;b=J[b>>2]}j=b}b=J[699344];J[699344]=0;if((b|0)==1)break ua;J[e+32>>2]=J[e+276>>2];J[699344]=0;i=e+32|0;b=va(5032,j|0,e+116|0,e+112|0,o|0,e+108|0,i|0,e+120|0)|0;m=J[699344];J[699344]=0;Ua:{Va:{if((m|0)!=1){if(!b)break Sa;b=J[a+32>>2];Wa:{if(K[e+153|0]){m=L[e+124>>1];J[e+32>>2]=1;j=J[J[b>> +2]+40>>2];J[699344]=0;da(j|0,b|0,i|0);j=J[699344];J[699344]=0;if((j|0)==1)break ua;J[e+88>>2]=m;m=J[J[b>>2]+112>>2];J[699344]=0;ca(m|0,i|0,b|0,e+88|0);b=J[699344];J[699344]=0;if((b|0)!=1)break Wa;break ua}J[e+32>>2]=0;i=J[J[b>>2]+40>>2];J[699344]=0;j=i;i=e+32|0;da(j|0,b|0,i|0);m=J[699344];J[699344]=0;if((m|0)==1)break ua;J[e+88>>2]=J[e+120>>2];m=J[J[b>>2]+112>>2];J[699344]=0;ca(m|0,i|0,b|0,e+88|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua}T=N[e+48>>2];b=J[a+32>>2];Xa:{if(K[e+153|0]){i=L[e+124>> +1];J[e+32>>2]=1;m=J[J[b>>2]+40>>2];J[699344]=0;j=m;m=e+32|0;da(j|0,b|0,m|0);j=J[699344];J[699344]=0;if((j|0)==1)break ua;J[e+88>>2]=i;i=J[J[b>>2]+112>>2];J[699344]=0;ca(i|0,m|0,b|0,e+88|0);b=J[699344];J[699344]=0;if((b|0)!=1)break Xa;break ua}J[e+32>>2]=0;i=J[J[b>>2]+40>>2];J[699344]=0;j=i;i=e+32|0;da(j|0,b|0,i|0);m=J[699344];J[699344]=0;if((m|0)==1)break ua;J[e+88>>2]=J[e+120>>2];m=J[J[b>>2]+112>>2];J[699344]=0;ca(m|0,i|0,b|0,e+88|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua}U=N[e+52>>2];s=O[e+ +144>>3];b=K[e+155|0]|K[e+156|0];p=b?O[e+136>>3]*z+r:r;y=O[e+128>>3];i=K[e+154|0];if(f)break Va;break Ua}break ua}J[e+64>>2]=0;J[e+68>>2]=0;J[e+56>>2]=0;J[e+60>>2]=1072693248;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=-1047329136;J[e+44>>2]=1070633085;J[e+32>>2]=0;J[e+36>>2]=1072693248;J[699344]=0;O[e+72>>3]=p*-.25881904510252074;da(5015,d|0,e+32|0);m=J[699344];J[699344]=0;if((m|0)!=1)break Ua;break ua}J[e+56>>2]=0;J[e+60>>2]=0;J[e+48>>2]=0;J[e+52>>2]=1072693248;J[e+40>>2]=0;J[e+44>>2]=-1074790400;J[e+32>> +2]=0;J[e+36>>2]=0;J[699344]=0;A=p;p=+U;O[e+64>>3]=A+p;O[e+72>>3]=+T*.5+(b?C-s*z:C);da(5015,d|0,e+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua;Ya:{if(K[e+153|0]){J[e+28>>2]=J[e+120>>2];J[e+12>>2]=L[e+124>>1];J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e>>2]=0;J[e+4>>2]=0;b=J[J[c>>2]+296>>2];J[699344]=0;va(b|0,c|0,e+28|0,e+12|0,e+88|0,e+80|0,e+16|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break Ya;break ua}J[e+28>>2]=J[e+120>>2];J[e+88>>2]=0;J[e+92>>2]=0; +J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e>>2]=0;J[e+4>>2]=0;b=J[J[c>>2]+288>>2];J[699344]=0;ja(b|0,c|0,e+28|0,e+88|0,e+80|0,e+16|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break Ya;break ua}Za:{if(g){J[e+88>>2]=4;b=J[J[c>>2]+308>>2];J[699344]=0;j=b;b=e+88|0;aa(j|0,c|0,b|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break Za;m=J[J[c>>2]+352>>2];J[699344]=0;_(m|0,c|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break ua;_a:{if(K[e+153|0]){J[e+28>>2]=J[e+120>>2];J[e+12>>2]=L[e+124>>1];J[e+88>>2]= +0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e>>2]=0;J[e+4>>2]=0;m=J[J[c>>2]+368>>2];J[699344]=0;va(m|0,c|0,e+28|0,e+12|0,b|0,e+80|0,e+16|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break _a;break ua}J[e+28>>2]=J[e+120>>2];J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e>>2]=0;J[e+4>>2]=0;b=J[J[c>>2]+360>>2];J[699344]=0;ja(b|0,c|0,e+28|0,e+88|0,e+80|0,e+16|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break _a;break ua}b=J[J[c>>2]+348>>2];J[699344]= +0;aa(b|0,c|0,2380268)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;J[e+88>>2]=4;b=J[J[c>>2]+312>>2];J[699344]=0;aa(b|0,c|0,e+88|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;b=J[J[c>>2]+344>>2];J[699344]=0;_(b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua}J[699344]=0;$(5003,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua;if(f){J[699344]=0;$(5003,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua}r=r+(i?z*y:p);continue}break}break ua}m=R&1;while(1){J[699344]=0;b=J[u>>2];$a:{if(K[u+8| +0]){j=0;if(!b)break $a;b=J[b>>2]}j=b}b=J[699344];J[699344]=0;if((b|0)==1)break ua;J[e+32>>2]=J[e+276>>2];J[699344]=0;i=e+32|0;b=va(5032,j|0,e+116|0,e+112|0,o|0,e+108|0,i|0,e+120|0)|0;j=J[699344];J[699344]=0;ab:{bb:{cb:{if((j|0)!=1){if(!b)break Sa;if(!K[e+154|0])break cb;p=z*O[e+128>>3];if(!m)break bb;b=J[a+32>>2];if(K[e+153|0]){j=L[e+124>>1];J[e+32>>2]=1;q=J[J[b>>2]+40>>2];J[699344]=0;da(q|0,b|0,i|0);q=J[699344];J[699344]=0;if((q|0)==1)break ua;J[e+88>>2]=j;j=J[J[b>>2]+112>>2];J[699344]=0;ca(j|0, +i|0,b|0,e+88|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua;s=+N[e+48>>2];break ab}J[e+32>>2]=0;i=J[J[b>>2]+40>>2];J[699344]=0;j=i;i=e+32|0;da(j|0,b|0,i|0);j=J[699344];J[699344]=0;if((j|0)==1)break ua;J[e+88>>2]=J[e+120>>2];j=J[J[b>>2]+112>>2];J[699344]=0;ca(j|0,i|0,b|0,e+88|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua;s=+N[e+48>>2];break ab}break ua}b=J[a+32>>2];if(K[e+153|0]){i=L[e+124>>1];J[e+32>>2]=1;j=J[J[b>>2]+40>>2];J[699344]=0;q=j;j=e+32|0;da(q|0,b|0,j|0);q=J[699344];J[699344]=0;if((q| +0)==1)break ua;J[e+88>>2]=i;i=J[J[b>>2]+112>>2];J[699344]=0;ca(i|0,j|0,b|0,e+88|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua;p=+N[e+48>>2];break bb}J[e+32>>2]=0;i=J[J[b>>2]+40>>2];J[699344]=0;j=i;i=e+32|0;da(j|0,b|0,i|0);j=J[699344];J[699344]=0;if((j|0)==1)break ua;J[e+88>>2]=J[e+120>>2];j=J[J[b>>2]+112>>2];J[699344]=0;ca(j|0,i|0,b|0,e+88|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua;p=+N[e+48>>2]}s=p}b=K[e+155|0]|K[e+156|0];i=!b;A=r-(m?s:0);r=A;if(b){r=O[e+136>>3];r=A+z*(m?-r:r)}y=i?C:C-O[e+ +144>>3]*z;db:{if(!f)break db;J[e+72>>2]=0;J[e+76>>2]=0;J[e+56>>2]=0;J[e+60>>2]=1072693248;J[e+48>>2]=-1047329136;J[e+52>>2]=-1076850563;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=1072693248;J[699344]=0;O[e+64>>3]=y*.25881904510252074;da(5015,d|0,e+32|0);b=J[699344];J[699344]=0;if((b|0)!=1)break db;break ua}eb:{if(K[e+153|0]){J[e>>2]=J[e+120>>2];J[e+28>>2]=L[e+124>>1];O[e+32>>3]=r*25.4/96;O[e+88>>3]=y*25.4/96;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;b=J[J[c>>2]+296>>2];J[699344]= +0;va(b|0,c|0,e|0,e+28|0,e+32|0,e+88|0,e+80|0,e+16|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break eb;break ua}J[e>>2]=0;b=J[J[c>>2]+16>>2];J[699344]=0;aa(b|0,c|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;fb:{if(J[e>>2]!=16)break fb;J[e+32>>2]=0;b=J[J[c>>2]+268>>2];J[699344]=0;aa(b|0,c|0,e+32|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break fb;break ua}J[e+28>>2]=J[e+120>>2];O[e+32>>3]=r*25.4/96;O[e+88>>3]=y*25.4/96;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;b=J[J[c>>2]+288>>2];J[699344]= +0;ja(b|0,c|0,e+28|0,e+32|0,e+88|0,e+80|0,e+16|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break eb;break ua}gb:{if(!g)break gb;J[e+32>>2]=4;b=J[J[c>>2]+308>>2];J[699344]=0;i=b;b=e+32|0;aa(i|0,c|0,b|0)|0;i=J[699344];J[699344]=0;hb:{ib:{if((i|0)!=1){i=J[J[c>>2]+352>>2];J[699344]=0;_(i|0,c|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break ua;if(!K[e+153|0])break ib;J[e>>2]=J[e+120>>2];J[e+28>>2]=L[e+124>>1];O[e+32>>3]=r*25.4/96;O[e+88>>3]=y*25.4/96;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;i=J[J[c>> +2]+368>>2];J[699344]=0;va(i|0,c|0,e|0,e+28|0,b|0,e+88|0,e+80|0,e+16|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break hb;break ua}break ua}J[e>>2]=J[e+120>>2];O[e+32>>3]=r*25.4/96;O[e+88>>3]=y*25.4/96;J[e+80>>2]=0;J[e+84>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;b=J[J[c>>2]+360>>2];J[699344]=0;ja(b|0,c|0,e|0,e+32|0,e+88|0,e+80|0,e+16|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break hb;break ua}b=J[J[c>>2]+348>>2];J[699344]=0;aa(b|0,c|0,2380268)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ua;J[e+32>>2]=4;b=J[J[c>> +2]+312>>2];J[699344]=0;aa(b|0,c|0,e+32|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[J[c>>2]+344>>2];J[699344]=0;_(b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break gb;break ua}break ua}if(f){J[699344]=0;$(5003,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break ua}r=A+(m?-(p-s):p);continue}}if(l)kc[J[J[h>>2]+4>>2]](h);if(k)uc(k);if(x){J[699344]=0;$(5002,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break ua}if(n){J[699344]=0;$(5003,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break ua}if(F){J[699344]=0;kw(d); +a=J[699344];J[699344]=0;if((a|0)==1)break ua}if(H[e+107|0]<0)uc(J[e+96>>2]);a=J[e+160>>2];if(!a)break va;J[e+164>>2]=a;uc(a)}Rc(t);Rc(u);Rc(w);Rc(v);if((D|0)<0)uc(E);if(H[e+315|0]<0)uc(J[e+304>>2]);fc=e+320|0;return}h=Z()|0;if(H[e+107|0]>=0)break ta;uc(J[e+96>>2])}a=J[e+160>>2];if(!a)break d;J[e+164>>2]=a;uc(a);break d}h=Z()|0;Rc(f);break d}h=Z()|0;break d}h=Z()|0}Rc(t);f=(D|0)<0}Rc(u)}Rc(w);Rc(v);if(!f)break a;uc(E)}if(H[e+315|0]<0)uc(J[e+304>>2]);ba(h|0);B()}function Ema(a){a=a|0;var b=0,c=0,d= +0,e=0,f=0,g=0,h=0;a:{if(!J[a+8>>2]){c=vc(48);J[c+32>>2]=0;b=J[611995];J[c+24>>2]=J[611994];J[c+28>>2]=b;b=J[611993];J[c+16>>2]=J[611992];J[c+20>>2]=b;b=J[611991];J[c+8>>2]=J[611990];J[c+12>>2]=b;b=J[611989];J[c>>2]=J[611988];J[c+4>>2]=b;g=a+4|0;d=g;e=d;b:{c:{b=J[a+4>>2];d:{if(!b)break d;while(1){e=b;d=J[b+16>>2];if((d|0)>=2){d=b;b=J[b>>2];if(b)continue;break d}if((d|0)==1)break c;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]= +1;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break b}uc(c)}c=vc(48);J[c+32>>2]=0;b=J[612004];J[c+24>>2]=J[612003];J[c+28>>2]=b;b=J[612002];J[c+16>>2]=J[612001];J[c+20>>2]=b;b=J[612E3];J[c+8>>2]=J[611999];J[c+12>>2]=b;b=J[611998];J[c>>2]=J[611997];J[c+4>>2]=b;e:{f:{d=g;e=d;b=J[e>>2];g:{if(!b)break g;while(1){e=b;d=J[b+16>>2];if((d|0)>=3){d=b;b=J[b>>2];if(b)continue;break g}if((d| +0)==2)break f;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=2;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break e}uc(c)}c=vc(32);J[c+28>>2]=0;J[c+24>>2]=J[612012];b=J[612011];J[c+16>>2]=J[612010];J[c+20>>2]=b;b=J[612009];J[c+8>>2]=J[612008];J[c+12>>2]=b;b=J[612007];J[c>>2]=J[612006];J[c+4>>2]=b;h:{i:{d= +g;e=d;b=J[e>>2];j:{if(!b)break j;while(1){e=b;d=J[b+16>>2];if((d|0)>=4){d=b;b=J[b>>2];if(b)continue;break j}if((d|0)==3)break i;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=3;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break h}uc(c)}c=vc(48);J[c+32>>2]=0;b=J[612021];J[c+24>>2]=J[612020];J[c+28>>2]= +b;b=J[612019];J[c+16>>2]=J[612018];J[c+20>>2]=b;b=J[612017];J[c+8>>2]=J[612016];J[c+12>>2]=b;b=J[612015];J[c>>2]=J[612014];J[c+4>>2]=b;k:{l:{d=g;e=d;b=J[e>>2];m:{if(!b)break m;while(1){e=b;d=J[b+16>>2];if((d|0)>=5){d=b;b=J[b>>2];if(b)continue;break m}if((d|0)==4)break l;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=4;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2]; +if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break k}uc(c)}c=vc(64);J[c+52>>2]=0;J[c+48>>2]=J[612035];b=J[612034];J[c+40>>2]=J[612033];J[c+44>>2]=b;b=J[612032];J[c+32>>2]=J[612031];J[c+36>>2]=b;b=J[612030];J[c+24>>2]=J[612029];J[c+28>>2]=b;b=J[612028];J[c+16>>2]=J[612027];J[c+20>>2]=b;b=J[612026];J[c+8>>2]=J[612025];J[c+12>>2]=b;b=J[612024];J[c>>2]=J[612023];J[c+4>>2]=b;n:{o:{d=g;e=d;b=J[e>>2];p:{if(!b)break p;while(1){e=b;d=J[b+16>>2];if((d|0)>=6){d=b;b=J[b>>2];if(b)continue;break p}if((d| +0)==5)break o;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=5;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=13;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break n}uc(c)}c=vc(32);J[c+24>>2]=0;b=J[612042];J[c+16>>2]=J[612041];J[c+20>>2]=b;b=J[612040];J[c+8>>2]=J[612039];J[c+12>>2]=b;b=J[612038];J[c>>2]=J[612037];J[c+4>>2]=b;q:{r:{d=g;e=d;b=J[e>>2]; +s:{if(!b)break s;while(1){e=b;d=J[b+16>>2];if((d|0)>=7){d=b;b=J[b>>2];if(b)continue;break s}if((d|0)==6)break r;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=6;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break q}uc(c)}c=vc(64);J[c+52>>2]=0;J[c+48>>2]=J[612056];b=J[612055];J[c+40>>2]=J[612054];J[c+44>> +2]=b;b=J[612053];J[c+32>>2]=J[612052];J[c+36>>2]=b;b=J[612051];J[c+24>>2]=J[612050];J[c+28>>2]=b;b=J[612049];J[c+16>>2]=J[612048];J[c+20>>2]=b;b=J[612047];J[c+8>>2]=J[612046];J[c+12>>2]=b;b=J[612045];J[c>>2]=J[612044];J[c+4>>2]=b;t:{u:{d=g;e=d;b=J[e>>2];v:{if(!b)break v;while(1){e=b;d=J[b+16>>2];if((d|0)>=8){d=b;b=J[b>>2];if(b)continue;break v}if((d|0)==7)break u;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=7;J[b+8>>2]=e;J[b>> +2]=0;J[b+4>>2]=0;J[b+24>>2]=13;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break t}uc(c)}c=vc(48);J[c+40>>2]=0;b=J[612067];J[c+32>>2]=J[612066];J[c+36>>2]=b;b=J[612065];J[c+24>>2]=J[612064];J[c+28>>2]=b;b=J[612063];J[c+16>>2]=J[612062];J[c+20>>2]=b;b=J[612061];J[c+8>>2]=J[612060];J[c+12>>2]=b;b=J[612059];J[c>>2]=J[612058];J[c+4>>2]=b;w:{x:{d=g;e=d;b=J[e>>2];y:{if(!b)break y;while(1){e=b;d=J[b+16>>2];if((d|0)>=9){d=b; +b=J[b>>2];if(b)continue;break y}if((d|0)==8)break x;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=8;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=10;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break w}uc(c)}c=vc(64);J[c+60>>2]=0;J[c+56>>2]=J[612083];b=J[612082];J[c+48>>2]=J[612081];J[c+52>>2]=b;b=J[612080];J[c+40>>2]=J[612079];J[c+44>>2]=b;b=J[612078]; +J[c+32>>2]=J[612077];J[c+36>>2]=b;b=J[612076];J[c+24>>2]=J[612075];J[c+28>>2]=b;b=J[612074];J[c+16>>2]=J[612073];J[c+20>>2]=b;b=J[612072];J[c+8>>2]=J[612071];J[c+12>>2]=b;b=J[612070];J[c>>2]=J[612069];J[c+4>>2]=b;z:{A:{d=g;e=d;b=J[e>>2];B:{if(!b)break B;while(1){e=b;d=J[b+16>>2];if((d|0)>=10){d=b;b=J[b>>2];if(b)continue;break B}if((d|0)==9)break A;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=9;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]= +0;J[b+24>>2]=15;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break z}uc(c)}c=vc(48);J[c+36>>2]=0;J[c+32>>2]=J[612093];b=J[612092];J[c+24>>2]=J[612091];J[c+28>>2]=b;b=J[612090];J[c+16>>2]=J[612089];J[c+20>>2]=b;b=J[612088];J[c+8>>2]=J[612087];J[c+12>>2]=b;b=J[612086];J[c>>2]=J[612085];J[c+4>>2]=b;C:{D:{d=g;e=d;b=J[e>>2];E:{if(!b)break E;while(1){e=b;d=J[b+16>>2];if((d|0)>=11){d=b;b=J[b>>2];if(b)continue;break E}if((d| +0)==10)break D;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=10;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break C}uc(c)}c=vc(64);J[c+56>>2]=0;b=J[612108];J[c+48>>2]=J[612107];J[c+52>>2]=b;b=J[612106];J[c+40>>2]=J[612105];J[c+44>>2]=b;b=J[612104];J[c+32>>2]=J[612103];J[c+36>>2]=b;b=J[612102];J[c+24>> +2]=J[612101];J[c+28>>2]=b;b=J[612100];J[c+16>>2]=J[612099];J[c+20>>2]=b;b=J[612098];J[c+8>>2]=J[612097];J[c+12>>2]=b;b=J[612096];J[c>>2]=J[612095];J[c+4>>2]=b;F:{G:{d=g;e=d;b=J[e>>2];H:{if(!b)break H;while(1){e=b;d=J[b+16>>2];if((d|0)>=12){d=b;b=J[b>>2];if(b)continue;break H}if((d|0)==11)break G;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=11;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=14;J[b+28>>2]=-2147483632;J[b+20>>2]= +c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break F}uc(c)}c=vc(64);J[c+48>>2]=0;b=J[612121];J[c+40>>2]=J[612120];J[c+44>>2]=b;b=J[612119];J[c+32>>2]=J[612118];J[c+36>>2]=b;b=J[612117];J[c+24>>2]=J[612116];J[c+28>>2]=b;b=J[612115];J[c+16>>2]=J[612114];J[c+20>>2]=b;b=J[612113];J[c+8>>2]=J[612112];J[c+12>>2]=b;b=J[612111];J[c>>2]=J[612110];J[c+4>>2]=b;I:{J:{d=g;e=d;b=J[e>>2];K:{if(!b)break K;while(1){e=b;d=J[b+16>>2];if((d|0)>=13){d=b;b=J[b>>2];if(b)continue; +break K}if((d|0)==12)break J;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=12;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=12;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break I}uc(c)}c=vc(80);f=xc(c,2448492,68);J[f+68>>2]=0;L:{M:{d=g;e=d;b=J[e>>2];N:{if(!b)break N;while(1){e=b;d=J[b+16>>2];if((d|0)>=14){d=b;b=J[b>>2];if(b)continue;break N}if((d| +0)==13)break M;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;J[b+16>>2]=13;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=17;J[b+28>>2]=-2147483628;J[b+20>>2]=f;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break L}uc(f)}c=vc(32);J[c+24>>2]=0;b=J[612146];J[c+16>>2]=J[612145];J[c+20>>2]=b;b=J[612144];J[c+8>>2]=J[612143];J[c+12>>2]=b;b=J[612142];J[c>>2]=J[612141];J[c+4>>2]=b;O:{P:{d=g;e=d;b=J[e>> +2];Q:{if(!b)break Q;while(1){e=b;d=J[b+16>>2];if((d|0)>=15){d=b;b=J[b>>2];if(b)continue;break Q}if((d|0)==14)break P;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=14;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break O}uc(c)}c=vc(48);J[c+44>>2]=0;J[c+40>>2]=J[612158];b=J[612157];J[c+32>>2]=J[612156]; +J[c+36>>2]=b;b=J[612155];J[c+24>>2]=J[612154];J[c+28>>2]=b;b=J[612153];J[c+16>>2]=J[612152];J[c+20>>2]=b;b=J[612151];J[c+8>>2]=J[612150];J[c+12>>2]=b;b=J[612149];J[c>>2]=J[612148];J[c+4>>2]=b;R:{S:{d=g;e=d;b=J[e>>2];T:{if(!b)break T;while(1){e=b;d=J[b+16>>2];if((d|0)>=16){d=b;b=J[b>>2];if(b)continue;break T}if((d|0)==15)break S;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=15;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=11;J[b+ +28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break R}uc(c)}c=vc(64);J[c+48>>2]=0;b=J[612171];J[c+40>>2]=J[612170];J[c+44>>2]=b;b=J[612169];J[c+32>>2]=J[612168];J[c+36>>2]=b;b=J[612167];J[c+24>>2]=J[612166];J[c+28>>2]=b;b=J[612165];J[c+16>>2]=J[612164];J[c+20>>2]=b;b=J[612163];J[c+8>>2]=J[612162];J[c+12>>2]=b;b=J[612161];J[c>>2]=J[612160];J[c+4>>2]=b;U:{V:{d=g;e=d;b=J[e>>2];W:{if(!b)break W;while(1){e=b;d=J[b+16>>2];if((d| +0)>=17){d=b;b=J[b>>2];if(b)continue;break W}if((d|0)==16)break V;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=16;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=12;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break U}uc(c)}c=vc(32);J[c+28>>2]=0;J[c+24>>2]=J[612179];b=J[612178];J[c+16>>2]=J[612177];J[c+20>>2]=b;b=J[612176];J[c+8>>2]=J[612175];J[c+12>> +2]=b;b=J[612174];J[c>>2]=J[612173];J[c+4>>2]=b;X:{Y:{d=g;e=d;b=J[e>>2];Z:{if(!b)break Z;while(1){e=b;d=J[b+16>>2];if((d|0)>=18){d=b;b=J[b>>2];if(b)continue;break Z}if((d|0)==17)break Y;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=17;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break X}uc(c)}c=vc(32); +J[c+24>>2]=0;b=J[611981];J[c+16>>2]=J[611980];J[c+20>>2]=b;b=J[611979];J[c+8>>2]=J[611978];J[c+12>>2]=b;b=J[611977];J[c>>2]=J[611976];J[c+4>>2]=b;_:{$:{e=g;b=J[e>>2];aa:{if(!b)break aa;while(1){e=b;d=J[b+16>>2];if((d|0)>=19){g=b;b=J[b>>2];if(b)continue;break aa}if((d|0)==18)break $;b=J[e+4>>2];if(b)continue;break}g=e+4|0}J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b+16>>2]=18;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[g>>2]=b;d=J[J[a>> +2]>>2];if(d){J[a>>2]=d;b=J[g>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break _}uc(c)}c=vc(32);J[c+20>>2]=0;J[c+16>>2]=J[612185];b=J[612184];J[c+8>>2]=J[612183];J[c+12>>2]=b;b=J[612182];J[c>>2]=J[612181];J[c+4>>2]=b;ba:{ca:{g=a+16|0;d=g;e=d;b=J[e>>2];da:{if(!b)break da;while(1){e=b;d=J[b+16>>2];if((d|0)>=2){d=b;b=J[b>>2];if(b)continue;break da}if((d|0)==1)break ca;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=1;J[b+8>>2]=e;J[b>> +2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ba}uc(c)}c=vc(32);J[c+20>>2]=0;J[c+16>>2]=J[612191];b=J[612190];J[c+8>>2]=J[612189];J[c+12>>2]=b;b=J[612188];J[c>>2]=J[612187];J[c+4>>2]=b;ea:{fa:{d=g;e=d;b=J[e>>2];ga:{if(!b)break ga;while(1){e=b;d=J[b+16>>2];if((d|0)>=3){d=b;b=J[b>>2];if(b)continue;break ga}if((d|0)==2)break fa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]= +0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=2;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ea}uc(c)}c=vc(32);J[c+28>>2]=0;J[c+24>>2]=J[612199];b=J[612198];J[c+16>>2]=J[612197];J[c+20>>2]=b;b=J[612196];J[c+8>>2]=J[612195];J[c+12>>2]=b;b=J[612194];J[c>>2]=J[612193];J[c+4>>2]=b;ha:{ia:{d=g;e=d;b=J[e>>2];ja:{if(!b)break ja;while(1){e=b; +d=J[b+16>>2];if((d|0)>=4){d=b;b=J[b>>2];if(b)continue;break ja}if((d|0)==3)break ia;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=3;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ha}uc(c)}c=vc(48);J[c+32>>2]=0;b=J[612021];J[c+24>>2]=J[612020];J[c+28>>2]=b;b=J[612019];J[c+16>>2]=J[612018]; +J[c+20>>2]=b;b=J[612017];J[c+8>>2]=J[612016];J[c+12>>2]=b;b=J[612015];J[c>>2]=J[612014];J[c+4>>2]=b;ka:{la:{d=g;e=d;b=J[e>>2];ma:{if(!b)break ma;while(1){e=b;d=J[b+16>>2];if((d|0)>=5){d=b;b=J[b>>2];if(b)continue;break ma}if((d|0)==4)break la;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=4;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>> +2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ka}uc(c)}c=vc(64);J[c+52>>2]=0;J[c+48>>2]=J[612035];b=J[612034];J[c+40>>2]=J[612033];J[c+44>>2]=b;b=J[612032];J[c+32>>2]=J[612031];J[c+36>>2]=b;b=J[612030];J[c+24>>2]=J[612029];J[c+28>>2]=b;b=J[612028];J[c+16>>2]=J[612027];J[c+20>>2]=b;b=J[612026];J[c+8>>2]=J[612025];J[c+12>>2]=b;b=J[612024];J[c>>2]=J[612023];J[c+4>>2]=b;na:{oa:{d=g;e=d;b=J[e>>2];pa:{if(!b)break pa;while(1){e=b;d=J[b+16>>2];if((d|0)>=6){d=b;b=J[b>>2];if(b)continue;break pa}if((d|0)== +5)break oa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=5;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=13;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break na}uc(c)}c=vc(32);J[c+24>>2]=0;b=J[612042];J[c+16>>2]=J[612041];J[c+20>>2]=b;b=J[612040];J[c+8>>2]=J[612039];J[c+12>>2]=b;b=J[612038];J[c>>2]=J[612037];J[c+4>>2]=b;qa:{ra:{d=g;e=d; +b=J[e>>2];sa:{if(!b)break sa;while(1){e=b;d=J[b+16>>2];if((d|0)>=7){d=b;b=J[b>>2];if(b)continue;break sa}if((d|0)==6)break ra;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=6;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break qa}uc(c)}c=vc(48);J[c+44>>2]=0;J[c+40>>2]=J[612211];b=J[612210];J[c+ +32>>2]=J[612209];J[c+36>>2]=b;b=J[612208];J[c+24>>2]=J[612207];J[c+28>>2]=b;b=J[612206];J[c+16>>2]=J[612205];J[c+20>>2]=b;b=J[612204];J[c+8>>2]=J[612203];J[c+12>>2]=b;b=J[612202];J[c>>2]=J[612201];J[c+4>>2]=b;ta:{ua:{d=g;e=d;b=J[e>>2];va:{if(!b)break va;while(1){e=b;d=J[b+16>>2];if((d|0)>=8){d=b;b=J[b>>2];if(b)continue;break va}if((d|0)==7)break ua;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=7;J[b+8>>2]=e;J[b>>2]=0;J[b+4>> +2]=0;J[b+24>>2]=11;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break ta}uc(c)}c=vc(48);J[c+40>>2]=0;b=J[612067];J[c+32>>2]=J[612066];J[c+36>>2]=b;b=J[612065];J[c+24>>2]=J[612064];J[c+28>>2]=b;b=J[612063];J[c+16>>2]=J[612062];J[c+20>>2]=b;b=J[612061];J[c+8>>2]=J[612060];J[c+12>>2]=b;b=J[612059];J[c>>2]=J[612058];J[c+4>>2]=b;wa:{xa:{d=g;e=d;b=J[e>>2];ya:{if(!b)break ya;while(1){e=b;d=J[b+16>>2];if((d|0)>=9){d= +b;b=J[b>>2];if(b)continue;break ya}if((d|0)==8)break xa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=8;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=10;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break wa}uc(c)}c=vc(64);J[c+60>>2]=0;J[c+56>>2]=J[612083];b=J[612082];J[c+48>>2]=J[612081];J[c+52>>2]=b;b=J[612080];J[c+40>>2]=J[612079];J[c+ +44>>2]=b;b=J[612078];J[c+32>>2]=J[612077];J[c+36>>2]=b;b=J[612076];J[c+24>>2]=J[612075];J[c+28>>2]=b;b=J[612074];J[c+16>>2]=J[612073];J[c+20>>2]=b;b=J[612072];J[c+8>>2]=J[612071];J[c+12>>2]=b;b=J[612070];J[c>>2]=J[612069];J[c+4>>2]=b;za:{Aa:{d=g;e=d;b=J[e>>2];Ba:{if(!b)break Ba;while(1){e=b;d=J[b+16>>2];if((d|0)>=10){d=b;b=J[b>>2];if(b)continue;break Ba}if((d|0)==9)break Aa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=9;J[b+ +8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=15;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break za}uc(c)}c=vc(48);J[c+36>>2]=0;J[c+32>>2]=J[612093];b=J[612092];J[c+24>>2]=J[612091];J[c+28>>2]=b;b=J[612090];J[c+16>>2]=J[612089];J[c+20>>2]=b;b=J[612088];J[c+8>>2]=J[612087];J[c+12>>2]=b;b=J[612086];J[c>>2]=J[612085];J[c+4>>2]=b;Ca:{Da:{d=g;e=d;b=J[e>>2];Ea:{if(!b)break Ea;while(1){e=b;d=J[b+16>>2];if((d|0)>=11){d= +b;b=J[b>>2];if(b)continue;break Ea}if((d|0)==10)break Da;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=10;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Ca}uc(c)}c=vc(64);J[c+56>>2]=0;b=J[612226];J[c+48>>2]=J[612225];J[c+52>>2]=b;b=J[612224];J[c+40>>2]=J[612223];J[c+44>>2]=b;b=J[612222]; +J[c+32>>2]=J[612221];J[c+36>>2]=b;b=J[612220];J[c+24>>2]=J[612219];J[c+28>>2]=b;b=J[612218];J[c+16>>2]=J[612217];J[c+20>>2]=b;b=J[612216];J[c+8>>2]=J[612215];J[c+12>>2]=b;b=J[612214];J[c>>2]=J[612213];J[c+4>>2]=b;Fa:{Ga:{d=g;e=d;b=J[e>>2];Ha:{if(!b)break Ha;while(1){e=b;d=J[b+16>>2];if((d|0)>=12){d=b;b=J[b>>2];if(b)continue;break Ha}if((d|0)==11)break Ga;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=11;J[b+8>>2]=e;J[b>>2]=0; +J[b+4>>2]=0;J[b+24>>2]=14;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Fa}uc(c)}c=vc(64);J[c+48>>2]=0;b=J[612121];J[c+40>>2]=J[612120];J[c+44>>2]=b;b=J[612119];J[c+32>>2]=J[612118];J[c+36>>2]=b;b=J[612117];J[c+24>>2]=J[612116];J[c+28>>2]=b;b=J[612115];J[c+16>>2]=J[612114];J[c+20>>2]=b;b=J[612113];J[c+8>>2]=J[612112];J[c+12>>2]=b;b=J[612111];J[c>>2]=J[612110];J[c+4>>2]=b;Ia:{Ja:{d=g;e=d;b=J[e>>2];Ka:{if(!b)break Ka; +while(1){e=b;d=J[b+16>>2];if((d|0)>=13){d=b;b=J[b>>2];if(b)continue;break Ka}if((d|0)==12)break Ja;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=12;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=12;J[b+28>>2]=-2147483632;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Ia}uc(c)}c=vc(80);f=xc(c,2448912,68);J[f+68>>2]=0;La:{Ma:{d=g;e=d;b=J[e>>2];Na:{if(!b)break Na; +while(1){e=b;d=J[b+16>>2];if((d|0)>=14){d=b;b=J[b>>2];if(b)continue;break Na}if((d|0)==13)break Ma;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;J[b+16>>2]=13;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=17;J[b+28>>2]=-2147483628;J[b+20>>2]=f;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break La}uc(f)}c=vc(32);J[c+24>>2]=0;b=J[612251];J[c+16>>2]=J[612250];J[c+20>>2]=b;b=J[612249];J[c+ +8>>2]=J[612248];J[c+12>>2]=b;b=J[612247];J[c>>2]=J[612246];J[c+4>>2]=b;Oa:{Pa:{d=g;e=d;b=J[e>>2];Qa:{if(!b)break Qa;while(1){e=b;d=J[b+16>>2];if((d|0)>=15){d=b;b=J[b>>2];if(b)continue;break Qa}if((d|0)==14)break Pa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=14;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>> +2]=J[a+20>>2]+1;break Oa}uc(c)}c=vc(48);J[c+44>>2]=0;J[c+40>>2]=J[612158];b=J[612157];J[c+32>>2]=J[612156];J[c+36>>2]=b;b=J[612155];J[c+24>>2]=J[612154];J[c+28>>2]=b;b=J[612153];J[c+16>>2]=J[612152];J[c+20>>2]=b;b=J[612151];J[c+8>>2]=J[612150];J[c+12>>2]=b;b=J[612149];J[c>>2]=J[612148];J[c+4>>2]=b;Ra:{Sa:{d=g;e=d;b=J[e>>2];Ta:{if(!b)break Ta;while(1){e=b;d=J[b+16>>2];if((d|0)>=16){d=b;b=J[b>>2];if(b)continue;break Ta}if((d|0)==15)break Sa;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4, +32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=15;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=11;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Ra}uc(c)}c=vc(48);J[c+36>>2]=0;J[c+32>>2]=J[612261];b=J[612260];J[c+24>>2]=J[612259];J[c+28>>2]=b;b=J[612258];J[c+16>>2]=J[612257];J[c+20>>2]=b;b=J[612256];J[c+8>>2]=J[612255];J[c+12>>2]=b;b=J[612254];J[c>>2]=J[612253];J[c+4>>2]=b;Ua:{Va:{d=g;e=d;b= +J[e>>2];Wa:{if(!b)break Wa;while(1){e=b;d=J[b+16>>2];if((d|0)>=17){d=b;b=J[b>>2];if(b)continue;break Wa}if((d|0)==16)break Va;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=16;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Ua}uc(c)}c=vc(32);J[c+28>>2]=0;J[c+24>>2]=J[612179];b=J[612178];J[c+ +16>>2]=J[612177];J[c+20>>2]=b;b=J[612176];J[c+8>>2]=J[612175];J[c+12>>2]=b;b=J[612174];J[c>>2]=J[612173];J[c+4>>2]=b;Xa:{Ya:{d=g;e=d;b=J[e>>2];Za:{if(!b)break Za;while(1){e=b;d=J[b+16>>2];if((d|0)>=18){d=b;b=J[b>>2];if(b)continue;break Za}if((d|0)==17)break Ya;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=17;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a+12>>2]>>2];if(e){J[a+ +12>>2]=e;b=J[d>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;break Xa}uc(c)}c=vc(32);J[c+24>>2]=0;b=J[611981];J[c+16>>2]=J[611980];J[c+20>>2]=b;b=J[611979];J[c+8>>2]=J[611978];J[c+12>>2]=b;b=J[611977];J[c>>2]=J[611976];J[c+4>>2]=b;_a:{e=g;b=J[e>>2];$a:{if(!b)break $a;while(1){e=b;d=J[b+16>>2];if((d|0)>=19){g=b;b=J[b>>2];if(b)continue;break $a}if((d|0)==18)break _a;b=J[e+4>>2];if(b)continue;break}g=e+4|0}J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b+16>>2]=18;J[b+8>>2]=e;J[b>> +2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[g>>2]=b;d=J[J[a+12>>2]>>2];if(d){J[a+12>>2]=d;b=J[g>>2]}Oc(J[a+16>>2],b);J[a+20>>2]=J[a+20>>2]+1;return}uc(c)}return}a=Z()|0;uc(c);ba(a|0);B()}function Lxa(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;d=fc-240|0;fc=d;if(!K[b+88|0]){o=b,p=kc[J[J[b>>2]+36>>2]](b)|0,J[o+72>>2]=p;o=b,p=kc[J[J[b>>2]+44>>2]](b)|0,J[o+76>>2]=p;o=b,p=kc[J[J[b>>2]+40>>2]](b)|0,J[o+80>>2]=p;c=kc[J[J[b>>2]+48>>2]](b)|0;H[b+88| +0]=1;J[b+84>>2]=c}a:{f=2424E3;b:{if(J[b+76>>2]==J[b+72>>2])break b;f=2424032;if(J[b+84>>2]==J[b+80>>2])break b;e=J[b+44>>2];c=J[b+32>>2]-3|0;if(c>>>0>=4294967294){f=2424064;if((e|0)!=1)break b}if(c>>>0<=3){f=2424096;if(e-33>>>0<4294967266)break b}f=kc[J[J[b>>2]+68>>2]](b)|0}c:{d:{if(K[f|0]){b=Qc(d+212|0,f,2394837,266,2424118,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;e=Z()|0;Kc(b);break d}J[d+212>>2]=0;c=J[685894];J[d+216>>2]=c;J[d+208>>2]=c;J[d+204>>2]=0;J[d+200>>2]=c; +J[d+196>>2]=0;J[d+192>>2]=c;J[d+188>>2]=0;J[d+184>>2]=c;J[d+180>>2]=0;e=J[b+8>>2];e:{f:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+172|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break f;e=Z()|0;break e}J[d+172>>2]=0}J[699344]=0;aa(5153,d+180|0,d+172|0)|0;c=J[699344];J[699344]=0;g:{if((c|0)!=1){f=J[d+172>>2];J[d+172>>2]=0;if(!f)break g;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break g;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break g}break a}e= +Z()|0;zc(d+172|0);break e}c=J[d+180>>2];J[d+184>>2]=J[(c?c+12|0:2743576)>>2];h:{i:{if(!c|J[c+8>>2]<=0)break i;j:{k:{e=K[J[c+12>>2]];if((e|0)==34){J[699344]=0;aa(5315,d+204|0,92)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k}J[699344]=0;aa(5315,d+204|0,e<<24>>24)|0;c=J[699344];J[699344]=0;f=1;if((c|0)==1)break k;e=J[d+180>>2];if(!e)break i;while(1){c=J[e+8>>2];if((c|0)<=(f|0))break i;if((c|0)<(f|0)){J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)break c;e=Z()|0;break h}e=K[J[e+12>>2]+f|0]; +if((e|0)==34){J[699344]=0;aa(5315,d+204|0,92)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j}J[699344]=0;aa(5315,d+204|0,e<<24>>24)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;f=f+1|0;e=J[d+180>>2];if(e)continue;break}break i}e=Z()|0;break h}e=Z()|0;break h}l:{c=J[b+16>>2];if(!c|J[c+8>>2]<=0)break l;m:{n:{e=K[J[c+12>>2]];if((e|0)==34){J[699344]=0;aa(5315,d+196|0,92)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n}J[699344]=0;aa(5315,d+196|0,e<<24>>24)|0;c=J[699344];J[699344]=0;f=1;if((c|0)==1)break n; +e=J[b+16>>2];if(!e)break l;while(1){c=J[e+8>>2];if((c|0)<=(f|0))break l;if((c|0)<(f|0)){J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)break c;e=Z()|0;break h}e=K[J[e+12>>2]+f|0];if((e|0)==34){J[699344]=0;aa(5315,d+196|0,92)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m}J[699344]=0;aa(5315,d+196|0,e<<24>>24)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;f=f+1|0;e=J[b+16>>2];if(e)continue;break}break l}e=Z()|0;break h}e=Z()|0;break h}o:{p:{c=J[b+24>>2];q:{if(!c|J[c+8>>2]<=0)break q;e=K[J[c+ +12>>2]];if((e|0)==34){J[699344]=0;aa(5315,d+188|0,92)|0;c=J[699344];J[699344]=0;if((c|0)==1)break p}J[699344]=0;aa(5315,d+188|0,e<<24>>24)|0;c=J[699344];J[699344]=0;f=1;if((c|0)==1)break p;e=J[b+24>>2];if(!e)break q;while(1){c=J[e+8>>2];if((c|0)<=(f|0))break q;if((c|0)<(f|0)){J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)break c;e=Z()|0;break h}e=K[J[e+12>>2]+f|0];if((e|0)==34){J[699344]=0;aa(5315,d+188|0,92)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o}J[699344]=0;aa(5315,d+188|0,e<< +24>>24)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;f=f+1|0;e=J[b+24>>2];if(e)continue;break}}J[d+172>>2]=0;J[d+176>>2]=J[685894];c=J[b+40>>2];J[699344]=0;J[d+56>>2]=c&255;J[d+52>>2]=c>>>8&255;J[d+48>>2]=c>>>16&255;ga(5350,d+172|0,2386591,d+48|0)|0;c=J[699344];J[699344]=0;r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{if((c|0)==1)break fa;if(!K[2775548]){J[699344]=0;aa(5620,2775540,40)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break fa;H[2775548]=1}if(!K[2775560]){J[699344]=0;aa(5620,2775552,41)|0;c=J[699344];J[699344]=0;if((c|0)==1)break fa;H[2775560]=1}if(!K[2775572]){J[699344]=0;aa(5620,2775564,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break fa;H[2775572]=1}if(!K[2775584]){J[699344]=0;aa(5620,2775576,34)|0;c=J[699344];J[699344]=0;if((c|0)==1)break fa;H[2775584]=1}J[d+164>>2]=0;J[d+168>>2]=J[685894];switch(J[b+32>>2]){case 6:break _;case 5:break $;case 4:break aa;case 3:break ba;case 2:break ca;case 1:break da; +case 0:break ea;default:break Z}}e=Z()|0;break r}J[699344]=0;e=d+148|0;ca(5291,e|0,2775540,2423673);c=J[699344];J[699344]=0;ga:{if((c|0)!=1){J[699344]=0;ca(5292,d+156|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break ga;e=J[d+156>>2];ha:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+140|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ha;e=Z()|0;break u}J[d+140>>2]=0}J[699344]=0;aa(5153,d+164|0,d+140|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){f=J[d+140>>2];J[d+140>>2]=0;if(!f)break Y;J[699344]= +0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break Y;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break Y}break a}e=Z()|0;zc(d+140|0);break u}e=Z()|0;break s}e=Z()|0;break t}J[699344]=0;e=d+148|0;ca(5291,e|0,2775540,2423678);c=J[699344];J[699344]=0;ia:{if((c|0)!=1){J[699344]=0;ca(5292,d+156|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break ia;e=J[d+156>>2];ja:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+140|0,e|0,1);c=J[699344];J[699344]=0;if((c| +0)!=1)break ja;e=Z()|0;break w}J[d+140>>2]=0}J[699344]=0;aa(5153,d+164|0,d+140|0)|0;c=J[699344];J[699344]=0;ka:{if((c|0)!=1){f=J[d+140>>2];J[d+140>>2]=0;if(!f)break ka;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break ka;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ka}break a}e=Z()|0;zc(d+140|0);break w}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2743576)>>2];wc(d+156|0);wc(d+148|0);break X}e=Z()|0;break s}e=Z()|0;break v}J[699344]=0;e=d+132|0; +ca(5291,e|0,2775540,2423682);c=J[699344];J[699344]=0;la:{ma:{na:{if((c|0)!=1){J[699344]=0;f=d+140|0;ca(5292,f|0,e|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break na;J[699344]=0;e=d+148|0;ca(5292,e|0,f|0,d+172|0);c=J[699344];J[699344]=0;if((c|0)==1)break ma;J[699344]=0;ca(5292,d+156|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break la;e=J[d+156>>2];oa:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+124|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break oa;e=Z()|0;break A}J[d+124>>2]=0}J[699344]= +0;aa(5153,d+164|0,d+124|0)|0;c=J[699344];J[699344]=0;pa:{if((c|0)!=1){f=J[d+124>>2];J[d+124>>2]=0;if(!f)break pa;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break pa;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break pa}break a}e=Z()|0;zc(d+124|0);break A}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2743576)>>2];wc(d+156|0);wc(d+148|0);wc(d+140|0);wc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break x}e=Z()|0;break y}e=Z()|0;break z}J[699344]=0;e=d+132|0; +ca(5291,e|0,2775540,2423689);c=J[699344];J[699344]=0;qa:{ra:{sa:{ta:{if((c|0)!=1){J[699344]=0;f=d+140|0;ca(5292,f|0,e|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break ta;c=J[b+44>>2];J[699344]=0;g=aa(5290,d+124|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break sa;J[699344]=0;e=d+148|0;ca(5292,e|0,f|0,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break ra;J[699344]=0;ca(5292,d+156|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break qa;e=J[d+156>>2];ua:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c| +0,d+116|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ua;e=Z()|0;break F}J[d+116>>2]=0}J[699344]=0;aa(5153,d+164|0,d+116|0)|0;c=J[699344];J[699344]=0;va:{if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break va;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break va;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break va}break a}e=Z()|0;zc(d+116|0);break F}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2743576)>>2];wc(d+156|0);wc(d+148|0);wc(g);wc(d+140| +0);wc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break B}e=Z()|0;break C}e=Z()|0;break D}e=Z()|0;break E}J[699344]=0;e=d+132|0;ca(5291,e|0,2775540,2423699);c=J[699344];J[699344]=0;wa:{xa:{ya:{za:{if((c|0)!=1){J[699344]=0;f=d+140|0;ca(5292,f|0,e|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break za;c=J[b+44>>2];J[699344]=0;g=aa(5290,d+124|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ya;J[699344]=0;e=d+148|0;ca(5292,e|0,f|0,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break xa;J[699344]=0;ca(5292, +d+156|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break wa;e=J[d+156>>2];Aa:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+116|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break Aa;e=Z()|0;break K}J[d+116>>2]=0}J[699344]=0;aa(5153,d+164|0,d+116|0)|0;c=J[699344];J[699344]=0;Ba:{if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break Ba;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break Ba;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break Ba}break a}e= +Z()|0;zc(d+116|0);break K}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2743576)>>2];wc(d+156|0);wc(d+148|0);wc(g);wc(d+140|0);wc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break G}e=Z()|0;break H}e=Z()|0;break I}e=Z()|0;break J}J[699344]=0;e=d+132|0;ca(5291,e|0,2775540,2423710);c=J[699344];J[699344]=0;Ca:{Da:{Ea:{Fa:{if((c|0)!=1){J[699344]=0;f=d+140|0;ca(5292,f|0,e|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break Fa;c=J[b+44>>2];J[699344]=0;g=aa(5290,d+124|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ea; +J[699344]=0;e=d+148|0;ca(5292,e|0,f|0,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break Da;J[699344]=0;ca(5292,d+156|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break Ca;e=J[d+156>>2];Ga:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+116|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break Ga;e=Z()|0;break P}J[d+116>>2]=0}J[699344]=0;aa(5153,d+164|0,d+116|0)|0;c=J[699344];J[699344]=0;Ha:{if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break Ha;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344]; +J[699344]=0;if((c|0)!=1){if(e)break Ha;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break Ha}break a}e=Z()|0;zc(d+116|0);break P}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2743576)>>2];wc(d+156|0);wc(d+148|0);wc(g);wc(d+140|0);wc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break L}e=Z()|0;break M}e=Z()|0;break N}e=Z()|0;break O}J[699344]=0;e=d+132|0;ca(5291,e|0,2775540,2423721);c=J[699344];J[699344]=0;Ia:{Ja:{Ka:{La:{if((c|0)!=1){J[699344]=0;f=d+140|0;ca(5292,f|0,e|0,2775564);c=J[699344];J[699344]= +0;if((c|0)==1)break La;c=J[b+44>>2];J[699344]=0;g=aa(5290,d+124|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ka;J[699344]=0;e=d+148|0;ca(5292,e|0,f|0,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ja;J[699344]=0;ca(5292,d+156|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break Ia;e=J[d+156>>2];Ma:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+116|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break Ma;e=Z()|0;break U}J[d+116>>2]=0}J[699344]=0;aa(5153,d+164|0,d+116|0)|0;c=J[699344];J[699344]= +0;Na:{if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break Na;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break Na;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break Na}break a}e=Z()|0;zc(d+116|0);break U}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2743576)>>2];wc(d+156|0);wc(d+148|0);wc(g);wc(d+140|0);wc(d+132|0);break X}e=Z()|0;break s}e=Z()|0;break Q}e=Z()|0;break R}e=Z()|0;break S}e=Z()|0;break T}J[699344]=0;e=d+148|0;ca(5291,e|0,2775540,2423678); +c=J[699344];J[699344]=0;Oa:{if((c|0)!=1){J[699344]=0;ca(5292,d+156|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break Oa;e=J[d+156>>2];Pa:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+140|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break Pa;e=Z()|0;break W}J[d+140>>2]=0}J[699344]=0;aa(5153,d+164|0,d+140|0)|0;c=J[699344];J[699344]=0;Qa:{if((c|0)!=1){f=J[d+140>>2];J[d+140>>2]=0;if(!f)break Qa;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break Qa;J[699344]= +0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break Qa}break a}e=Z()|0;zc(d+140|0);break W}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2743576)>>2];wc(d+156|0);wc(d+148|0);break X}e=Z()|0;break s}e=Z()|0;break V}c=J[d+164>>2];J[d+168>>2]=J[(c?c+12|0:2743576)>>2];wc(d+156|0);wc(d+148|0)}J[d+156>>2]=0;c=J[685894];J[d+160>>2]=c;Ra:{Sa:{Ta:{Ua:{Va:{Wa:{Xa:{Ya:{Za:{_a:{$a:{ab:{bb:{cb:{db:{eb:{fb:{gb:{hb:{ib:{e=J[b+48>>2];if((e|0)!=-1){J[d+32>>2]=2423745;J[699344]=0;J[d+44>>2]=e&255;J[d+36>>2]=e>>>16&255; +J[d+40>>2]=e>>>8&255;ga(5350,d+156|0,2389326,d+32|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ib;c=J[685894]}J[d+152>>2]=c;J[d+148>>2]=0;J[699344]=0;e=pd(d+196|0,2423756,-1);c=J[699344];J[699344]=0;jb:{kb:{lb:{mb:{nb:{if((c|0)!=1){if(e)break lb;J[699344]=0;e=d+132|0;ca(5292,e|0,2775576,d+204|0);c=J[699344];J[699344]=0;if((c|0)==1)break nb;J[699344]=0;ca(5292,d+140|0,e|0,2775576);c=J[699344];J[699344]=0;if((c|0)==1)break mb;e=J[d+140>>2];ob:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+116|0,e| +0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ob;e=Z()|0;break Ua}J[d+116>>2]=0}J[699344]=0;aa(5153,d+148|0,d+116|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){f=J[d+116>>2];J[d+116>>2]=0;if(!f)break kb;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break kb;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break kb}break a}e=Z()|0;zc(d+116|0);break Ua}e=Z()|0;break Sa}e=Z()|0;break Sa}e=Z()|0;break Ta}J[699344]=0;e=d+60|0;ca(5291,e|0,2775540,2423752);c=J[699344]; +J[699344]=0;pb:{qb:{rb:{sb:{tb:{ub:{vb:{wb:{xb:{if((c|0)!=1){J[699344]=0;f=d+68|0;ca(5292,f|0,e|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break xb;J[699344]=0;e=d+76|0;ca(5292,e|0,f|0,2775576);c=J[699344];J[699344]=0;if((c|0)==1)break wb;J[699344]=0;f=d+84|0;ca(5292,f|0,e|0,d+204|0);c=J[699344];J[699344]=0;if((c|0)==1)break vb;J[699344]=0;e=d+92|0;ca(5292,e|0,f|0,2775576);c=J[699344];J[699344]=0;if((c|0)==1)break ub;J[699344]=0;f=d+100|0;ca(5292,f|0,e|0,2775564);c=J[699344];J[699344]=0;if((c| +0)==1)break tb;J[699344]=0;e=d+108|0;ca(5292,e|0,f|0,2775576);c=J[699344];J[699344]=0;if((c|0)==1)break sb;J[699344]=0;f=d+116|0;ca(5292,f|0,e|0,d+196|0);c=J[699344];J[699344]=0;if((c|0)==1)break rb;J[699344]=0;e=d+132|0;ca(5292,e|0,f|0,2775576);c=J[699344];J[699344]=0;if((c|0)==1)break qb;J[699344]=0;ca(5292,d+140|0,e|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break pb;e=J[d+140>>2];yb:{if(e){c=J[J[e>>2]+28>>2];J[699344]=0;ca(c|0,d+236|0,e|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break yb;e= +Z()|0;break cb}J[d+236>>2]=0}J[699344]=0;aa(5153,d+148|0,d+236|0)|0;c=J[699344];J[699344]=0;zb:{if((c|0)!=1){f=J[d+236>>2];J[d+236>>2]=0;if(!f)break zb;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;c=J[699344];J[699344]=0;if((c|0)!=1){if(e)break zb;J[699344]=0;$(5147,f|0);c=J[699344];J[699344]=0;if((c|0)!=1)break zb}break a}e=Z()|0;zc(d+236|0);break cb}c=J[d+148>>2];J[d+152>>2]=J[(c?c+12|0:2743576)>>2];wc(d+140|0);wc(d+132|0);wc(d+116|0);wc(d+108|0);wc(d+100|0);wc(d+92|0);wc(d+84|0);wc(d+76|0);wc(d+68| +0);wc(d+60|0);break jb}e=Z()|0;break Sa}e=Z()|0;break Va}e=Z()|0;break Wa}e=Z()|0;break Xa}e=Z()|0;break Ya}e=Z()|0;break Za}e=Z()|0;break _a}e=Z()|0;break $a}e=Z()|0;break ab}e=Z()|0;break bb}c=J[d+148>>2];J[d+152>>2]=J[(c?c+12|0:2743576)>>2];wc(d+140|0);wc(d+132|0)}J[699344]=0;n=d+68|0;ca(5291,n|0,2775540,2423650);c=J[699344];J[699344]=0;Ab:{Bb:{Cb:{Db:{Eb:{Fb:{Gb:{Hb:{Ib:{Jb:{Kb:{Lb:{Mb:{Nb:{Ob:{Pb:{Qb:{Rb:{Sb:{Tb:{Ub:{Vb:{Wb:{Xb:{Yb:{Zb:{if((c|0)!=1){J[699344]=0;j=d+76|0;ca(5292,j|0,n|0,2775564); +c=J[699344];J[699344]=0;if((c|0)==1)break Zb;J[699344]=0;h=d+84|0;ca(5292,h|0,j|0,d+148|0);c=J[699344];J[699344]=0;if((c|0)==1)break Yb;J[699344]=0;i=d+92|0;ca(5292,i|0,h|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break Xb;J[699344]=0;g=d+100|0;ca(5292,g|0,i|0,2775576);c=J[699344];J[699344]=0;if((c|0)==1)break Wb;J[699344]=0;f=d+108|0;ca(5292,f|0,g|0,d+188|0);c=J[699344];J[699344]=0;if((c|0)==1)break Vb;J[699344]=0;k=d+116|0;ca(5292,k|0,f|0,2775576);c=J[699344];J[699344]=0;if((c|0)==1)break Ub; +J[699344]=0;l=d+132|0;ca(5292,l|0,k|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break Tb;c=J[J[b>>2]+72>>2];J[699344]=0;e=d+60|0;da(c|0,e|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break Sb;J[699344]=0;m=d+140|0;ca(5292,m|0,l|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Rb;J[699344]=0;ca(5292,a|0,m|0,d+164|0);c=J[699344];J[699344]=0;if((c|0)==1)break Qb;wc(m);wc(e);wc(l);wc(k);wc(f);wc(g);wc(i);wc(h);wc(j);wc(n);if(K[b+36|0]){J[699344]=0;ca(5292,k|0,2775564,2775540);c=J[699344];J[699344]=0; +if((c|0)==1)break Gb;J[699344]=0;ca(5291,l|0,k|0,2423733);c=J[699344];J[699344]=0;if((c|0)==1)break Fb;J[699344]=0;ca(5292,m|0,l|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break Eb;J[699344]=0;aa(5340,a|0,m|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Db;wc(m);wc(l);wc(k)}J[d+140>>2]=0;J[d+144>>2]=J[685894];c=J[b+60>>2];J[699344]=0;J[d+24>>2]=c&255;J[d+20>>2]=c>>>8&255;J[d+16>>2]=c>>>16&255;ga(5350,d+140|0,2386591,d+16|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break Ab;break fb}e=Z()|0;break Sa}e= +Z()|0;break Hb}e=Z()|0;break Ib}e=Z()|0;break Jb}e=Z()|0;break Kb}e=Z()|0;break Lb}e=Z()|0;break Mb}e=Z()|0;break Nb}e=Z()|0;break Ob}e=Z()|0;break Pb}e=Z()|0;wc(d+140|0)}wc(d+60|0)}wc(d+132|0)}wc(d+116|0)}wc(d+108|0)}wc(d+100|0)}wc(d+92|0)}wc(d+84|0)}wc(d+76|0)}wc(d+68|0);break Sa}e=Z()|0;break db}e=Z()|0;break Bb}e=Z()|0;break Cb}e=Z()|0;wc(d+140|0)}wc(d+132|0)}wc(d+116|0);break db}if(K[b+56|0]){J[d+132>>2]=0;J[d+136>>2]=J[685894];_b:{$b:{c=J[b+48>>2];if((c|0)==-1)break $b;J[699344]=0;J[d+8>>2]= +c&255;J[d>>2]=c>>>16&255;J[d+4>>2]=c>>>8&255;ga(5350,d+132|0,2386591,d|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break $b;e=Z()|0;break _b}J[699344]=0;h=d+84|0;ca(5292,h|0,2775564,2775540);c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]=0;i=d+92|0;ca(5291,i|0,h|0,2423808);c=J[699344];J[699344]=0;ac:{bc:{cc:{dc:{ec:{fc:{gc:{hc:{ic:{jc:{kc:{lc:{mc:{nc:{oc:{pc:{qc:{rc:{sc:{if((c|0)!=1){J[699344]=0;g=d+100|0;ca(5292,g|0,i|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break sc;J[699344]=0;f=d+108|0;ca(5292, +f|0,g|0,d+140|0);c=J[699344];J[699344]=0;if((c|0)==1)break rc;J[699344]=0;e=d+116|0;ca(5292,e|0,f|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break qc;J[699344]=0;aa(5340,a|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break pc;wc(e);wc(f);wc(g);wc(i);wc(h);c=J[d+132>>2];if(!(!c|!J[c+8>>2])){J[699344]=0;ca(5292,h|0,2775564,2775540);c=J[699344];J[699344]=0;if((c|0)==1)break kc;J[699344]=0;ca(5291,i|0,h|0,2423800);c=J[699344];J[699344]=0;if((c|0)==1)break jc;J[699344]=0;ca(5292,g|0,i|0,2775564);c= +J[699344];J[699344]=0;if((c|0)==1)break ic;J[699344]=0;ca(5292,f|0,g|0,d+132|0);c=J[699344];J[699344]=0;if((c|0)==1)break hc;J[699344]=0;ca(5292,e|0,f|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break gc;J[699344]=0;aa(5340,a|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break fc;wc(e);wc(f);wc(g);wc(i);wc(h)}if(K[b+57|0])break ac;break hb}e=Z()|0;break lc}e=Z()|0;break mc}e=Z()|0;break nc}e=Z()|0;break oc}e=Z()|0;wc(d+116|0)}wc(d+108|0)}wc(d+100|0)}wc(d+92|0)}wc(d+84|0);break _b}e=Z()|0;break _b}e= +Z()|0;break bc}e=Z()|0;break cc}e=Z()|0;break dc}e=Z()|0;break ec}e=Z()|0;wc(d+116|0)}wc(d+108|0)}wc(d+100|0)}wc(d+92|0)}wc(d+84|0);break _b}J[699344]=0;f=d+100|0;ca(5292,f|0,2775564,2775540);b=J[699344];J[699344]=0;tc:{uc:{vc:{wc:{xc:{if((b|0)!=1){J[699344]=0;e=d+108|0;ca(5291,e|0,f|0,2423816);b=J[699344];J[699344]=0;if((b|0)==1)break xc;J[699344]=0;c=d+116|0;ca(5292,c|0,e|0,2775552);b=J[699344];J[699344]=0;if((b|0)==1)break wc;J[699344]=0;aa(5340,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break vc; +wc(c);wc(e);wc(f);break hb}e=Z()|0;break _b}e=Z()|0;break tc}e=Z()|0;break uc}e=Z()|0;wc(d+116|0)}wc(d+108|0)}wc(d+100|0);break _b}e=Z()|0}wc(d+132|0);break eb}yc:{if(K[b+64|0]){J[699344]=0;e=d+92|0;ca(5292,e|0,2775564,2775540);c=J[699344];J[699344]=0;if((c|0)==1)break yc;J[699344]=0;g=d+100|0;ca(5291,g|0,e|0,2423792);c=J[699344];J[699344]=0;zc:{Ac:{Bc:{Cc:{Dc:{Ec:{Fc:{Gc:{Hc:{Ic:{Jc:{Kc:{Lc:{Mc:{Nc:{Oc:{Pc:{Qc:{Rc:{Sc:{Tc:{Uc:{Vc:{Wc:{Xc:{Yc:{if((c|0)!=1){J[699344]=0;j=d+108|0;ca(5292,j|0,g|0,2775564); +c=J[699344];J[699344]=0;if((c|0)==1)break Yc;J[699344]=0;h=d+116|0;ca(5292,h|0,j|0,d+140|0);c=J[699344];J[699344]=0;if((c|0)==1)break Xc;J[699344]=0;i=d+132|0;ca(5292,i|0,h|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break Wc;J[699344]=0;aa(5340,a|0,i|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Vc;wc(i);wc(h);wc(j);wc(g);wc(e);J[699344]=0;ca(5292,e|0,2775564,2775540);c=J[699344];J[699344]=0;if((c|0)==1)break Qc;J[699344]=0;ca(5291,g|0,e|0,2423786);c=J[699344];J[699344]=0;if((c|0)==1)break Pc; +J[699344]=0;ca(5292,j|0,g|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break Oc;c=J[b+68>>2];J[699344]=0;f=aa(5290,d+84|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Nc;J[699344]=0;ca(5292,h|0,j|0,f|0);c=J[699344];J[699344]=0;if((c|0)==1)break Mc;J[699344]=0;ca(5292,i|0,h|0,2775552);c=J[699344];J[699344]=0;if((c|0)==1)break Lc;J[699344]=0;aa(5340,a|0,i|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Kc;wc(i);wc(h);wc(f);wc(j);wc(g);wc(e);if(!K[b+65|0])break gb;J[699344]=0;ca(5292,j|0,2775564, +2775540);b=J[699344];J[699344]=0;if((b|0)==1)break Ec;J[699344]=0;ca(5291,h|0,j|0,2423780);b=J[699344];J[699344]=0;if((b|0)==1)break Dc;J[699344]=0;ca(5292,i|0,h|0,2775552);b=J[699344];J[699344]=0;if((b|0)==1)break Cc;J[699344]=0;aa(5340,a|0,i|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Bc;wc(i);wc(h);wc(j);break gb}e=Z()|0;break Rc}e=Z()|0;break Sc}e=Z()|0;break Tc}e=Z()|0;break Uc}e=Z()|0;wc(d+132|0)}wc(d+116|0)}wc(d+108|0)}wc(d+100|0)}wc(d+92|0);break eb}e=Z()|0;break eb}e=Z()|0;break Fc}e= +Z()|0;break Gc}e=Z()|0;break Hc}e=Z()|0;break Ic}e=Z()|0;break Jc}e=Z()|0;wc(d+132|0)}wc(d+116|0)}wc(f)}wc(d+108|0)}wc(d+100|0)}wc(d+92|0);break eb}e=Z()|0;break eb}e=Z()|0;break zc}e=Z()|0;break Ac}e=Z()|0;wc(d+132|0)}wc(d+116|0)}wc(d+108|0);break eb}c=J[J[b>>2]+12>>2];J[699344]=0;e=_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break fb;Zc:{_c:{$c:{ad:{bd:{cd:{dd:{ed:{fd:{gd:{hd:{id:{jd:{kd:{if((e|0)==1){J[699344]=0;i=d+92|0;ca(5292,i|0,2775564,2775540);c=J[699344];J[699344]=0;if((c|0)==1)break kd; +J[699344]=0;g=d+100|0;ca(5291,g|0,i|0,2423772);c=J[699344];J[699344]=0;if((c|0)==1)break jd;J[699344]=0;f=d+108|0;ca(5292,f|0,g|0,2775564);c=J[699344];J[699344]=0;if((c|0)==1)break id;b=J[b+52>>2];J[699344]=0;h=aa(5290,d+84|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break hd;J[699344]=0;e=d+116|0;ca(5292,e|0,f|0,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break gd;J[699344]=0;c=d+132|0;ca(5292,c|0,e|0,2775552);b=J[699344];J[699344]=0;if((b|0)==1)break fd;J[699344]=0;aa(5340,a|0,c|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break ed;wc(c);wc(e);wc(h);wc(f);wc(g);wc(i)}b=J[d+156>>2];if(!b|!J[b+8>>2])break gb;J[699344]=0;c=d+132|0;ca(5292,c|0,2775564,d+156|0);b=J[699344];J[699344]=0;if((b|0)==1)break _c;J[699344]=0;aa(5340,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Zc;wc(c);break gb}e=Z()|0;break eb}e=Z()|0;break $c}e=Z()|0;break ad}e=Z()|0;break bd}e=Z()|0;break cd}e=Z()|0;break dd}e=Z()|0;wc(d+132|0)}wc(d+116|0)}wc(h)}wc(d+108|0)}wc(d+100|0)}wc(d+92|0);break eb}e=Z()|0;break eb}e=Z()| +0;wc(d+132|0);break eb}e=Z()|0;break eb}e=Z()|0;break Ra}wc(d+132|0)}J[699344]=0;aa(5340,a|0,2775552)|0;b=J[699344];J[699344]=0;if((b|0)==1)break fb;wc(d+140|0);wc(d+148|0);wc(d+156|0);wc(d+164|0);wc(d+172|0);wc(d+180|0);wc(d+188|0);wc(d+196|0);wc(d+204|0);wc(d+212|0);fc=d+240|0;return}e=Z()|0}wc(d+140|0)}wc(a);break Sa}wc(d+140|0)}wc(d+132|0)}wc(d+116|0)}wc(d+108|0)}wc(d+100|0)}wc(d+92|0)}wc(d+84|0)}wc(d+76|0)}wc(d+68|0)}wc(d+60|0);break Sa}wc(d+140|0)}wc(d+132|0)}wc(d+148|0)}wc(d+156|0);break s}wc(d+ +156|0)}wc(d+148|0);break s}wc(d+156|0)}wc(d+148|0)}wc(g)}wc(d+140|0)}wc(d+132|0);break s}wc(d+156|0)}wc(d+148|0)}wc(g)}wc(d+140|0)}wc(d+132|0);break s}wc(d+156|0)}wc(d+148|0)}wc(g)}wc(d+140|0)}wc(d+132|0);break s}wc(d+156|0)}wc(d+148|0)}wc(g)}wc(d+140|0)}wc(d+132|0);break s}wc(d+156|0)}wc(d+148|0)}wc(d+140|0)}wc(d+132|0);break s}wc(d+156|0)}wc(d+148|0);break s}wc(d+156|0)}wc(d+148|0)}wc(d+164|0)}wc(d+172|0);break h}e=Z()|0;break h}e=Z()|0}}wc(d+180|0);wc(d+188|0);wc(d+196|0);wc(d+204|0);wc(d+212| +0)}ba(e|0)}B()}ea(0)|0;Bc();B()}function OHa(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,w=0,x=0,y=0,z=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0;e=fc-576|0;fc=e;J[e+412>>2]=0;J[e+408>>2]=255;H[e+407|0]=0;H[e+406|0]=0;H[e+405|0]=0;H[e+404|0]=0;p=e+392|0;f=p;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;J[699344]=0;s=e+380|0;f=s;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;f=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((f|0)!=1){J[699344]=0;t=e+368|0;f=t;J[f>>2]= +0;J[f+4>>2]=0;H[f+8|0]=0;f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;o=e+356|0;f=o;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;u=e+344|0;f=u;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;f=J[699344];J[699344]=0;if((f|0)!=1){l=J[J[a+36>>2]+4>>2];J[699344]=0;f=vk(b);g=J[699344];J[699344]=0;if((g|0)==1)break g;if(!f){w=1;z=10;break h}J[699344]=0;da(4970,e+328|0,b|0);f=J[699344];J[699344]=0;if((f|0)!=1){I=e+444|0;L=e+496|0;m=e+104|4;w=1;z=10;i:{j:{while(1){f=K[e+339|0];i= +f<<24>>24;h=(i|0)<0;k:{l:{m:{n:{o:{p:{g=J[e+332>>2];j=h?g:f;if(j){q:{r:{s:{t:{if((j|0)==15){if(!qd(h?J[e+328>>2]:e+328|0,2379824,15))break t;g=J[e+332>>2];f=K[e+339|0];i=f}h=i<<24>>24<0;if(((h?g:f)|0)==4)break s;break r}J[699344]=0;f=e+416|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;u:{if((g|0)!=1){J[699344]=0;ca(5022,t|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break u;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}if(qd(h? +J[e+328>>2]:e+328|0,2379424,4)){g=J[e+332>>2];f=K[e+339|0];i=f;break r}J[699344]=0;f=e+416|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;v:{if((g|0)!=1){J[699344]=0;ca(5022,s|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break v;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}w:{h=i<<24>>24<0;if(((h?g:f)|0)!=7)break w;if(qd(h?J[e+328>>2]:e+328|0,2379392,7)){g=J[e+332>>2];f=K[e+339|0];i=f;break w}J[699344]=0;f=e+416|0;da(4971,f| +0,b|0);g=J[699344];J[699344]=0;x:{y:{z:{A:{if((g|0)!=1){J[699344]=0;f=aa(4985,e+316|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break A;J[699344]=0;Ft(f,e+304|0);g=J[699344];J[699344]=0;if((g|0)==1)break z;Rc(f);if(H[e+427|0]<0)uc(J[e+416>>2]);J[699344]=0;da(4996,d|0,e+304|0);f=J[699344];J[699344]=0;if((f|0)==1)break x;M=1;break q}b=Z()|0;break i}b=Z()|0;break y}b=Z()|0;Rc(f)}if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}b=Z()|0;break i}B:{h=i<<24>>24<0;if(((h?g:f)|0)!=6)break B;if(qd(h?J[e+328>> +2]:e+328|0,2380272,6)){g=J[e+332>>2];f=K[e+339|0];i=f;break B}J[699344]=0;f=e+416|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;C:{if((g|0)!=1){J[699344]=0;ca(5033,f|0,e+412|0,e+408|0);f=J[699344];J[699344]=0;if((f|0)==1)break C;if(H[e+427|0]<0)uc(J[e+416>>2]);y=1;break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}D:{h=i<<24>>24<0;if(((h?g:f)|0)!=15)break D;if(qd(h?J[e+328>>2]:e+328|0,2380300,15)){g=J[e+332>>2];f=K[e+339|0];i=f;break D}J[699344]=0;f=e+416|0;da(4971,f|0, +b|0);g=J[699344];J[699344]=0;E:{if((g|0)!=1){J[699344]=0;w=+qa(4995,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break E;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}F:{h=i<<24>>24<0;if(((h?g:f)|0)!=15)break F;if(qd(h?J[e+328>>2]:e+328|0,2380364,15)){g=J[e+332>>2];f=K[e+339|0];i=f;break F}J[699344]=0;f=e+304|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;if((g|0)!=1){J[e+296>>2]=0;J[e+288>>2]=0;J[e+292>>2]=0;J[699344]=0;g=ga(5034, +e+432|0,f|0,24)|0;f=J[699344];J[699344]=0;G:{if((f|0)!=1){J[e+424>>2]=0;J[e+416>>2]=0;J[e+420>>2]=0;while(1){J[699344]=0;f=ga(5035,g|0,e+416|0,32)|0;i=J[699344];J[699344]=0;H:{I:{J:{if((i|0)!=1){if(K[(f+J[J[f>>2]-12>>2]|0)+16|0]&5)break I;f=J[e+292>>2];if((f|0)!=J[e+296>>2]){if(H[e+427|0]>=0){i=J[e+420>>2];J[f>>2]=J[e+416>>2];J[f+4>>2]=i;J[f+8>>2]=J[e+424>>2];break H}J[699344]=0;ca(15,f|0,J[e+416>>2],J[e+420>>2]);i=J[699344];J[699344]=0;if((i|0)!=1)break H;b=Z()|0;J[e+292>>2]=f;break J}J[699344]= +0;da(2962,e+288|0,e+416|0);f=J[699344];J[699344]=0;if((f|0)!=1)continue}b=Z()|0}if(H[e+427|0]<0)uc(J[e+416>>2]);ZA(g);break G}if(H[e+427|0]<0)uc(J[e+416>>2]);J[g>>2]=2381796;J[e+444>>2]=2381648;J[e+440>>2]=2381816;J[e+496>>2]=2381836;if(H[e+487|0]<0)uc(J[e+476>>2]);ai(I);bg(L);g=J[e+288>>2];f=J[e+292>>2]-g|0;i=(f|0)/12|0;K:{L:{M:{if((f|0)>0){J[699344]=0;x=_(27,i<<3)|0;f=J[699344];J[699344]=0;if((f|0)==1)break K;g=(i|0)<=1?1:i;f=0;while(1){q=J[e+288>>2];if((J[e+292>>2]-q|0)/12>>>0<=f>>>0){J[699344]= +0;$(5036,e+288|0);a=J[699344];J[699344]=0;if((a|0)==1)break L;B()}J[699344]=0;k=+qa(4995,q+P(f,12)|0);q=J[699344];J[699344]=0;if((q|0)==1)break M;O[(f<<3)+x>>3]=k;f=f+1|0;if((g|0)!=(f|0))continue;break}q=i;g=J[e+288>>2]}if(g){f=g;i=J[e+292>>2];if((f|0)!=(i|0)){while(1){f=i-12|0;if(H[i-1|0]<0)uc(J[f>>2]);i=f;if((f|0)!=(g|0))continue;break}f=J[e+288>>2]}J[e+292>>2]=g;uc(f)}if(H[e+315|0]>=0)break q;uc(J[e+304>>2]);break q}b=Z()|0;break G}b=Z()|0;break G}b=Z()|0;break G}J[e+292>>2]=f+12;continue}}b=Z()| +0}Ag(e+288|0);if(H[e+315|0]>=0)break i;uc(J[e+304>>2]);break i}b=Z()|0;break i}N:{h=i<<24>>24<0;if(((h?g:f)|0)!=16)break N;if(qd(h?J[e+328>>2]:e+328|0,2380428,16)){g=J[e+332>>2];f=K[e+339|0];i=f;break N}J[699344]=0;f=e+416|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;O:{if((g|0)!=1){J[699344]=0;N=+qa(4995,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break O;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}P:{h=i<<24>>24<0;if(((h?g: +f)|0)!=13)break P;if(qd(h?J[e+328>>2]:e+328|0,2380496,13)){g=J[e+332>>2];f=K[e+339|0];i=f;break P}J[699344]=0;f=e+416|0;da(3473,f|0,b|0);g=J[699344];J[699344]=0;Q:{if((g|0)!=1){J[699344]=0;f=WA(f);g=J[699344];J[699344]=0;if((g|0)==1)break Q;H[e+407|0]=f;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}R:{j=f;f=i<<24>>24<0;if(((f?g:j)|0)!=16)break R;if(qd(f?J[e+328>>2]:e+328|0,2380552,16))break R;J[699344]=0;f=e+416|0;da(3473, +f|0,b|0);g=J[699344];J[699344]=0;S:{if((g|0)!=1){J[699344]=0;f=WA(f);g=J[699344];J[699344]=0;if((g|0)==1)break S;H[e+405|0]=f;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}if(Uj(2380620,e+328|0)){J[699344]=0;f=e+416|0;da(3473,f|0,b|0);g=J[699344];J[699344]=0;T:{if((g|0)!=1){J[699344]=0;f=WA(f);g=J[699344];J[699344]=0;if((g|0)==1)break T;H[e+406|0]=f;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0; +if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}if(Uj(2380696,e+328|0)){J[699344]=0;f=e+416|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;U:{V:{if((g|0)!=1){J[699344]=0;f=aa(4985,e+276|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break V;if(H[e+427|0]<0)uc(J[e+416>>2]);J[699344]=0;g=Qd(f,2380756);i=J[699344];J[699344]=0;if((i|0)==1)break j;if(!g)break U;H[e+404|0]=0;Rc(f);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}J[699344]=0;g=Qd(f,2380780);i=J[699344];J[699344]= +0;if((i|0)==1)break j;if(g){H[e+404|0]=1;Rc(f);break q}J[699344]=0;g=Qd(f,2380804);i=J[699344];J[699344]=0;if((i|0)==1)break j;if(g)H[e+404|0]=2;Rc(f);break q}if(Uj(2380828,e+328|0)){J[699344]=0;f=e+416|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;W:{if((g|0)!=1){J[699344]=0;z=+qa(4995,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break W;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}if(Uj(2379444,e+328|0)){J[699344]=0;f=e+416|0; +da(4971,f|0,b|0);g=J[699344];J[699344]=0;X:{if((g|0)!=1){J[699344]=0;ca(5022,p|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break X;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}if(Uj(2380896,e+328|0)){J[699344]=0;f=e+416|0;da(4971,f|0,b|0);g=J[699344];J[699344]=0;Y:{if((g|0)!=1){J[699344]=0;ca(5022,o|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break Y;if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()| +0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}if(Uj(2380916,e+328|0)){J[699344]=0;da(4971,e+416|0,b|0);f=J[699344];J[699344]=0;Z:{if((f|0)!=1){f=J[a+36>>2];g=J[f+4>>2];f=J[f>>2];_:{if(H[e+427|0]>=0){J[e+272>>2]=J[e+424>>2];i=J[e+420>>2];J[e+264>>2]=J[e+416>>2];J[e+268>>2]=i;break _}J[699344]=0;ca(15,e+264|0,J[e+416>>2],J[e+420>>2]);i=J[699344];J[699344]=0;if((i|0)==1)break Z}i=e+264|0;$:{if((f|0)==(g|0))break $;while(1){j=K[f+39|0];l=j<<24>>24<0;n=K[i+11|0];h=n<<24>>24<0;j=l?J[f+32>>2]:j;if((j| +0)==((h?J[i+4>>2]:n)|0)){if(!j)break $;n=f+28|0;if(!qd(l?J[n>>2]:n,h?J[i>>2]:i,j))break $}f=f+40|0;if((g|0)!=(f|0))continue;break}f=g}l=f;if(H[e+275|0]<0)uc(J[e+264>>2]);if(H[e+427|0]>=0)break q;uc(J[e+416>>2]);break q}b=Z()|0;break i}b=Z()|0;if(H[e+427|0]>=0)break i;uc(J[e+416>>2]);break i}if(!Uj(2380936,e+328|0))break q;f=J[J[c>>2]+400>>2];J[699344]=0;va(f|0,c|0,e+256|0,e+248|0,e+240|0,e+232|0,e+224|0,e+216|0)|0;f=J[699344];J[699344]=0;aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{if((f|0)!=1){J[699344]=0;i= +Aa(5038,e+212|0,+O[e+256>>3],+O[e+248>>3],+O[e+240>>3],+O[e+232>>3],+O[e+224>>3],+O[e+216>>3])|0;f=J[699344];J[699344]=0;if((f|0)==1)break ha;J[e+200>>2]=0;J[e+204>>2]=0;J[e+192>>2]=0;J[e+196>>2]=0;J[e+184>>2]=0;J[e+188>>2]=0;J[e+176>>2]=0;J[e+180>>2]=0;J[e+168>>2]=0;J[e+172>>2]=0;J[e+160>>2]=0;J[e+164>>2]=0;J[e+152>>2]=0;J[e+156>>2]=0;J[e+144>>2]=0;J[e+148>>2]=0;J[e+136>>2]=0;J[e+140>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+120>>2]=0;J[e+124>>2]=0;J[e+112>>2]=0;J[e+116>>2]=0;J[e+104>>2]=0;J[e+108>> +2]=0;J[699344]=0;g=aa(31,e+104|0,39197)|0;f=J[699344];J[699344]=0;if((f|0)==1)break ga;J[699344]=0;f=e+416|0;da(5039,f|0,o|0);h=J[699344];J[699344]=0;if((h|0)==1)break fa;h=YA(f,2381024,0);if((h|0)==-1)break aa;h=h+2|0;j=Ci(f,44,h);if((j|0)==-1)break aa;J[699344]=0;f=na(2963,e+92|0,f|0,h|0,j-h|0,e+304|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break ea;J[699344]=0;k=+qa(4995,f|0);h=J[699344];J[699344]=0;if((h|0)==1)break da;O[e+200>>3]=k;if(H[e+103|0]<0)uc(J[f>>2]);h=e+416|0;f=j+1|0;j=Ci(h,32,f);ia:{if((j| +0)==-1)break ia;J[699344]=0;f=na(2963,e+80|0,h|0,f|0,j-f|0,e+304|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break ca;J[699344]=0;k=+qa(4995,f|0);h=J[699344];J[699344]=0;if((h|0)==1)break ba;O[e+192>>3]=k;if(H[e+91|0]>=0)break ia;uc(J[f>>2])}J[699344]=0;ce(i,e+200|0,e+192|0);f=J[699344];J[699344]=0;if((f|0)!=1)break aa;b=Z()|0;break n}b=Z()|0;break i}b=Z()|0;break i}b=Z()|0;Jd(i);break i}b=Z()|0;break m}b=Z()|0;break n}b=Z()|0;if(H[e+103|0]>=0)break n;uc(J[f>>2]);break n}b=Z()|0;break n}b=Z()|0;if(H[e+ +91|0]>=0)break n;uc(J[f>>2]);break n}f=-1;ja:{h=e+416|0;j=YA(h,2381036,0);if((j|0)==-1)break ja;f=j+2|0;j=Ci(h,44,f);if((j|0)==-1)break ja;J[699344]=0;h=na(2963,e+68|0,h|0,f|0,j-f|0,e+304|0)|0;n=J[699344];J[699344]=0;ka:{la:{ma:{if((n|0)!=1){J[699344]=0;k=+qa(4995,h|0);n=J[699344];J[699344]=0;if((n|0)==1)break ma;O[e+184>>3]=k;if(H[e+79|0]<0)uc(J[h>>2]);n=e+416|0;h=j+1|0;j=Ci(n,32,h);na:{if((j|0)==-1)break na;J[699344]=0;h=na(2963,e+56|0,n|0,h|0,j-h|0,e+304|0)|0;j=J[699344];J[699344]=0;if((j|0)== +1)break la;J[699344]=0;k=+qa(4995,h|0);j=J[699344];J[699344]=0;if((j|0)==1)break ka;O[e+176>>3]=k;if(H[e+67|0]>=0)break na;uc(J[h>>2])}J[699344]=0;ce(i,e+184|0,e+176|0);h=J[699344];J[699344]=0;if((h|0)!=1)break ja;b=Z()|0;break n}b=Z()|0;break n}b=Z()|0;if(H[e+79|0]>=0)break n;uc(J[h>>2]);break n}b=Z()|0;break n}b=Z()|0;if(H[e+67|0]>=0)break n;uc(J[h>>2]);break n}oa:{h=e+416|0;f=YA(h,2381036,f);if((f|0)==-1)break oa;f=f+2|0;j=Ci(h,44,f);if((j|0)==-1)break oa;J[699344]=0;f=na(2963,e+44|0,h|0,f|0,j- +f|0,e+304|0)|0;h=J[699344];J[699344]=0;pa:{qa:{ra:{if((h|0)!=1){J[699344]=0;k=+qa(4995,f|0);h=J[699344];J[699344]=0;if((h|0)==1)break ra;O[e+168>>3]=k;if(H[e+55|0]<0)uc(J[f>>2]);h=e+416|0;f=j+1|0;j=Ci(h,32,f);sa:{if((j|0)==-1)break sa;J[699344]=0;f=na(2963,e+32|0,h|0,f|0,j-f|0,e+304|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break qa;J[699344]=0;k=+qa(4995,f|0);h=J[699344];J[699344]=0;if((h|0)==1)break pa;O[e+160>>3]=k;if(H[e+43|0]>=0)break sa;uc(J[f>>2])}J[699344]=0;ce(i,e+168|0,e+160|0);f=J[699344]; +J[699344]=0;if((f|0)!=1)break oa;b=Z()|0;break n}b=Z()|0;break n}b=Z()|0;if(H[e+55|0]>=0)break n;uc(J[f>>2]);break n}b=Z()|0;break n}b=Z()|0;if(H[e+43|0]>=0)break n;uc(J[f>>2]);break n}C=O[e+184>>3];E=O[e+200>>3];r=E;f=C==r;F=O[e+168>>3];k=f?F:C;A(+r);h=v(1)|0;h=h&2147483647;if(!(v(0)|0)&(h|0)==2146435072|h>>>0<2146435072){A(+k);h=v(1)|0;j=v(0)|0;h=h&2147483647;k=(h|0)==2146435072&(j|0)!=0|h>>>0>2146435072?r:T(k,r)}O[e+128>>3]=k;D=O[e+176>>3];r=O[e+192>>3];h=D==r;G=O[e+160>>3];k=h?G:D;A(+r);j=v(1)| +0;j=j&2147483647;if(!(v(0)|0)&(j|0)==2146435072|j>>>0<2146435072){A(+k);j=v(1)|0;n=v(0)|0;j=j&2147483647;k=(j|0)==2146435072&(n|0)!=0|j>>>0>2146435072?r:T(k,r)}O[e+136>>3]=k;O[e+152>>3]=R(r-(f?D:G));O[e+144>>3]=R(E-(h?C:F));J[699344]=0;f=e+304|0;da(4971,f|0,b|0);h=J[699344];J[699344]=0;ta:{ua:{if((h|0)!=1){if(YA(f,2381048,0))break ua;J[699344]=0;j=f;f=H[e+315|0];h=(f|0)<0;ia(1626,e+288|0,(h?J[e+304>>2]:j)|0,(h?J[e+308>>2]:f&255)|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break p;if(H[e+115|0]<0)uc(J[g>> +2]);f=J[e+292>>2];J[g>>2]=J[e+288>>2];J[g+4>>2]=f;J[g+8>>2]=J[e+296>>2];J[699344]=0;da(5040,a|0,g|0);f=J[699344];J[699344]=0;if((f|0)!=1)break ta;b=Z()|0;break o}b=Z()|0;break n}f=e+304|0;h=Ci(f,35,0);if((h|0)==-1)break ta;j=J[a+36>>2];J[699344]=0;f=na(2963,e+20|0,f|0,h+1|0,-1,e+288|0)|0;h=J[699344];J[699344]=0;va:{wa:{xa:{if((h|0)!=1){J[699344]=0;h=mj(j+12|0,f);j=J[699344];J[699344]=0;if((j|0)==1)break xa;if(H[e+31|0]<0)uc(J[f>>2]);if((h|0)==(J[a+36>>2]+16|0))break ta;h=J[h+28>>2];J[699344]=0;f= +e+288|0;da(2833,f|0,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break wa;J[699344]=0;ga(5042,f|0,(H[e+299|0]<0?J[e+288>>2]:f)|0,35)|0;f=J[699344];J[699344]=0;if((f|0)==1)break va;f=K[e+295|0]|K[e+296|0]<<8|(K[e+297|0]<<16|K[e+298|0]<<24);j=J[e+292>>2];h=K[e+299|0];J[e+296>>2]=0;J[e+12>>2]=j;j=J[e+288>>2];J[e+288>>2]=0;J[e+292>>2]=0;H[e+15|0]=f;H[e+16|0]=f>>>8;H[e+17|0]=f>>>16;H[e+18|0]=f>>>24;ya:{if(H[e+115|0]>=0){J[g>>2]=j;f=K[e+15|0]|K[e+16|0]<<8|(K[e+17|0]<<16|K[e+18|0]<<24);H[m+3|0]=f;H[m+4|0]=f>>> +8;H[m+5|0]=f>>>16;H[m+6|0]=f>>>24;J[m>>2]=J[e+12>>2];H[e+115|0]=h;break ya}uc(J[g>>2]);n=H[e+299|0];J[g>>2]=j;f=K[e+15|0]|K[e+16|0]<<8|(K[e+17|0]<<16|K[e+18|0]<<24);H[m+3|0]=f;H[m+4|0]=f>>>8;H[m+5|0]=f>>>16;H[m+6|0]=f>>>24;J[m>>2]=J[e+12>>2];H[e+115|0]=h;if((n|0)>=0)break ya;uc(J[e+288>>2])}J[699344]=0;da(5040,a|0,g|0);f=J[699344];J[699344]=0;if((f|0)!=1)break ta;b=Z()|0;break o}b=Z()|0;break o}b=Z()|0;if(H[e+31|0]>=0)break o;uc(J[f>>2]);break o}b=Z()|0;break o}b=Z()|0;if(H[e+299|0]>=0)break o;uc(J[e+ +288>>2]);break o}if(H[e+315|0]<0)uc(J[e+304>>2]);if(H[e+427|0]<0)uc(J[e+416>>2]);if(H[e+115|0]<0)uc(J[g>>2]);Jd(i)}J[699344]=0;f=Mi(b);g=J[699344];J[699344]=0;if((g|0)==1)break l;if(f)break k;i=K[e+339|0]}if(i<<24>>24>=0)break h;uc(J[e+328>>2]);break h}b=Z()|0}if(H[e+315|0]>=0)break n;uc(J[e+304>>2])}if(H[e+427|0]>=0)break m;uc(J[e+416>>2])}if(H[e+115|0]<0)uc(J[g>>2]);Jd(i);break i}b=Z()|0;break i}J[699344]=0;da(4970,e+416|0,b|0);f=J[699344];J[699344]=0;if((f|0)!=1){if(H[e+339|0]<0)uc(J[e+328>>2]); +J[e+336>>2]=J[e+424>>2];f=J[e+420>>2];J[e+328>>2]=J[e+416>>2];J[e+332>>2]=f;continue}break}b=Z()|0;break i}b=Z()|0;Rc(f)}if(H[e+339|0]>=0)break e;uc(J[e+328>>2]);break e}b=Z()|0;break e}b=Z()|0;break d}b=Z()|0;break c}b=Z()|0;break b}b=Z()|0;break a}J[699344]=0;gj(b);f=J[699344];J[699344]=0;if((f|0)==1)break g;if(J[J[a+36>>2]+4>>2]==(l|0))break f;J[699344]=0;f=e+416|0;da(5039,f|0,o|0);g=J[699344];J[699344]=0;if((g|0)!=1){za:{Aa:{Ba:{g=Ci(f,44,0);Ca:{if((g|0)==-1)break Ca;g=g+1|0;i=Ci(f,32,g);if((i| +0)==-1)break Ca;J[699344]=0;f=na(2963,e+328|0,f|0,g|0,i-g|0,e+304|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ba;J[699344]=0;k=+qa(4995,f|0);g=J[699344];J[699344]=0;if((g|0)==1)break Aa;O[l+8>>3]=k;if(H[f+11|0]>=0)break Ca;uc(J[f>>2])}if(H[e+427|0]>=0)break f;uc(J[e+416>>2]);break f}b=Z()|0;break za}b=Z()|0;if(H[f+11|0]>=0)break za;uc(J[f>>2])}if(H[e+427|0]>=0)break e;uc(J[e+416>>2]);break e}b=Z()|0;break e}b=Z()|0;break e}l=0;J[699344]=0;f=!J[p+4>>2];g=J[699344];J[699344]=0;Da:{if((g|0)==1)break Da; +g=0;Ea:{if(f)break Ea;J[699344]=0;f=J[p+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break Da;Fa:{if(!f)break Fa;J[699344]=0;J[e+416>>2]=0;f=J[p>>2];if(K[p+8|0])f=J[f>>2];f=J[(J[e+416>>2]<<2)+f>>2];g=J[699344];J[699344]=0;if((g|0)!=1){if((f|0)!=123)break Fa;g=0;J[699344]=0;l=aa(5026,d|0,p|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break Ea;break Da}b=Z()|0;break e}J[699344]=0;f=J[p>>2];Ga:{if(K[p+8|0]){g=0;if(!f)break Ga;f=J[f>>2]}g=f}f=J[699344];J[699344]=0;if((f|0)==1)break Da;J[699344]=0;k=O[d+48>> +3];f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;O[e+416>>3]=k;l=aa(5028,g|0,e+416|0)|0;f=J[699344];J[699344]=0;g=1;if((f|0)!=1)break Ea}b=Z()|0;break e}Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{if(!(y&1))break Na;J[e+416>>2]=J[e+412>>2]&16777215;f=J[J[c>>2]+52>>2];J[699344]=0;aa(f|0,c|0,e+416|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Ma;J[699344]=0;f=J[e+408>>2];k=O[d+48>>3];i=J[699344];J[699344]=0;if((i|0)!=1){k=k*+(f|0);Oa:{if(R(k)<2147483648){f=~~k;break Oa}f=-2147483648}J[e+416>>2]=f;f=J[J[c>>2]+60>> +2];J[699344]=0;aa(f|0,c|0,e+416|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break Na}b=Z()|0;break e}J[699344]=0;f=Th(b);i=J[699344];J[699344]=0;if((i|0)==1)break Da;if(!f){J[699344]=0;f=e+416|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;i=J[699344];J[699344]=0;if((i|0)==1)break La;J[699344]=0;m=$g(b);i=J[699344];J[699344]=0;Pa:{Qa:{if((i|0)!=1)while(1){J[699344]=0;i=aa(4975,b|0,m|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break Ha;if(!i)break Pa;J[699344]=0;i=e+288|0;da(4962,i|0,b|0);h=J[699344];J[699344]=0;Ra:{Sa:{Ta:{Ua:{if((h| +0)!=1){J[699344]=0;i=aa(4985,e+304|0,i|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break Ua;J[699344]=0;dg(f,i);h=J[699344];J[699344]=0;if((h|0)==1)break Ta;Rc(i);if(H[e+299|0]<0)uc(J[e+288>>2]);J[699344]=0;i=Qd(f,2381068);h=J[699344];J[699344]=0;if((h|0)==1)break Ha;if(!i)break Ra;J[699344]=0;ca(4998,b|0,t|0,0);i=J[699344];J[699344]=0;if((i|0)!=1)continue;break Ha}b=Z()|0;Rc(f);break e}b=Z()|0;break Sa}b=Z()|0;Rc(i)}if(H[e+299|0]>=0)break Qa;uc(J[e+288>>2]);Rc(f);break e}J[699344]=0;i=Qd(f,2381152); +h=J[699344];J[699344]=0;if((h|0)==1)break Ha;if(i){J[699344]=0;da(5E3,b|0,s|0);i=J[699344];J[699344]=0;if((i|0)!=1)continue;break Ha}J[699344]=0;i=Qd(f,2381192);h=J[699344];J[699344]=0;if((h|0)==1)break Ha;if(i&!l){J[699344]=0;k=O[d+48>>3];g=J[699344];J[699344]=0;Va:{if((g|0)==1)break Va;J[699344]=0;O[e+288>>3]=k;l=ga(5029,b|0,e+288|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Va;g=1;continue}b=Z()|0;Rc(f);break e}J[699344]=0;i=Qd(f,2381232);h=J[699344];J[699344]=0;if((h|0)==1)break Ha;if(!((i^ +-1|y)&1)){J[699344]=0;y=ha(5043,e|0,b|0,c|0,d|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1)continue;b=Z()|0;Rc(f);break e}J[699344]=0;i=Qd(f,2381280);h=J[699344];J[699344]=0;if((h|0)==1)break Ha;if(!i)continue;J[699344]=0;i=J[o+4>>2];h=J[699344];J[699344]=0;if((h|0)==1)break Ha;if(i)continue;J[699344]=0;ia(5044,e|0,b|0,o|0,u|0);i=J[699344];J[699344]=0;if((i|0)!=1)continue;break Ha}b=Z()|0}Rc(f);break e}Rc(f)}i=0;Wa:{Xa:{Ya:{Za:{_a:{$a:{ab:{if(!l)break ab;b=J[J[l>>2]+12>>2];J[699344]=0;b=_(b|0,l|0)|0; +f=J[699344];J[699344]=0;if((f|0)==1)break Da;bb:{if(!b)break bb;b=J[a+24>>2];J[699344]=0;f=e+288|0;da(4967,f|0,a+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break $a;J[699344]=0;ca(5045,l|0,b|0,(H[e+299|0]<0?J[e+288>>2]:f)|0);a=J[699344];J[699344]=0;if((a|0)==1)break _a;if(H[e+299|0]>=0)break bb;uc(J[e+288>>2])}a=J[J[l>>2]+8>>2];J[699344]=0;i=aa(a|0,l|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Da;if(!g)break ab;kc[J[J[l>>2]+4>>2]](l)}J[699344]=0;a=J[t+4>>2];b=J[699344];J[699344]=0;if((b|0)== +1)break Da;l=0;if(a){J[699344]=0;a=J[t>>2];cb:{if(K[t+8|0]){b=0;if(!a)break cb;a=J[a>>2]}b=a}a=J[699344];J[699344]=0;if((a|0)==1)break Da;J[699344]=0;l=ga(4994,e|0,b|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Da}J[699344]=0;b=J[s+4>>2];a=J[699344];J[699344]=0;if((a|0)==1)break Da;a=0;if(b){J[699344]=0;a=J[s>>2];db:{if(K[s+8|0]){b=0;if(!a)break db;a=J[a>>2]}b=a}a=J[699344];J[699344]=0;if((a|0)==1)break Da;J[699344]=0;a=ga(4993,e|0,b|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Da}if(!x)break Xa; +eb:{if((q|0)<=0)break eb;b=0;if((q|0)!=1){g=q&-2;f=0;while(1){m=b<<3;h=m+x|0;O[h>>3]=w*O[h>>3]*25.4/96;m=(m|8)+x|0;O[m>>3]=w*O[m>>3]*25.4/96;b=b+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(q&1))break eb;b=(b<<3)+x|0;O[b>>3]=w*O[b>>3]*25.4/96}H[e+288|0]=5;b=J[J[c>>2]+76>>2];J[699344]=0;aa(b|0,c|0,e+288|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Za;b=J[J[c>>2]+128>>2];J[699344]=0;ga(b|0,c|0,x|0,q|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Da;O[e+288>>3]=N*w*25.4/96;b=J[J[c>>2]+108>>2]; +J[699344]=0;aa(b|0,c|0,e+288|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ya;b=J[J[c>>2]+84>>2];J[699344]=0;aa(b|0,c|0,e+407|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Da;b=J[J[c>>2]+92>>2];J[699344]=0;aa(b|0,c|0,e+407|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Da;uc(x);break Wa}b=Z()|0;break e}b=Z()|0;if(H[e+299|0]>=0)break e;uc(J[e+288>>2]);break e}b=Z()|0;break e}b=Z()|0;break e}H[e+288|0]=0;b=J[J[c>>2]+76>>2];J[699344]=0;aa(b|0,c|0,e+288|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Ka; +b=J[J[c>>2]+84>>2];J[699344]=0;aa(b|0,c|0,e+406|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Da;b=J[J[c>>2]+92>>2];J[699344]=0;aa(b|0,c|0,e+405|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Da}b=J[J[c>>2]+100>>2];J[699344]=0;aa(b|0,c|0,e+404|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Da;fb:{if(K[e+404|0])break fb;O[e+288>>3]=z*25.4/96;b=J[J[c>>2]+124>>2];J[699344]=0;aa(b|0,c|0,e+288|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break fb;b=Z()|0;break e}O[e+288>>3]=w*25.4/96;b=J[J[c>>2]+68>>2];J[699344]= +0;f=e+288|0;aa(b|0,c|0,f|0)|0;b=J[699344];J[699344]=0;gb:{hb:{ib:{if((b|0)!=1){J[e+288>>2]=4;b=J[J[c>>2]+308>>2];J[699344]=0;aa(b|0,c|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ib;b=J[J[c>>2]+352>>2];J[699344]=0;_(b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Da;J[699344]=0;b=J[o+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break Da;jb:{if(!b)break jb;J[699344]=0;J[e+288>>2]=0;b=J[o>>2];if(K[o+8|0])b=J[b>>2];b=J[(J[f>>2]<<2)+b>>2];f=J[699344];J[699344]=0;if((f|0)==1)break hb;if((b|0)!= +123)break jb;J[699344]=0;ia(5010,d|0,o|0,o|0,u|0);b=J[699344];J[699344]=0;if((b|0)==1)break Da}b=0;J[699344]=0;f=!J[u+4>>2];g=J[699344];J[699344]=0;kb:{if((g|0)==1)break kb;if(f)break gb;J[699344]=0;b=J[u>>2];lb:{if(K[u+8|0]){f=0;if(!b)break lb;b=J[b>>2]}f=b}b=J[699344];J[699344]=0;if((b|0)==1)break kb;J[699344]=0;b=ga(4994,e|0,f|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break gb}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}J[699344]=0;f=aa(5046,o|0,c|0)|0;g=J[699344];J[699344]= +0;if((g|0)==1)break Ja;J[e+288>>2]=y&1|(i?f?256:512:0);f=J[J[c>>2]+348>>2];J[699344]=0;aa(f|0,c|0,e+288|0)|0;f=J[699344];J[699344]=0;mb:{nb:{if((f|0)!=1){J[e+288>>2]=4;f=J[J[c>>2]+312>>2];J[699344]=0;aa(f|0,c|0,e+288|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break nb;f=J[J[c>>2]+344>>2];J[699344]=0;_(f|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ia;if(!b)break mb;J[699344]=0;$(5003,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break mb;break Ia}b=Z()|0;break e}b=Z()|0;break e}if(l){J[699344]=0;$(5003, +d|0);b=J[699344];J[699344]=0;if((b|0)==1)break Ia}if(a){J[699344]=0;$(5002,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break Ia}if(M){J[699344]=0;kw(d);a=J[699344];J[699344]=0;if((a|0)==1)break Ia}Rc(u);Rc(o);Rc(t);Rc(s);Rc(p);fc=e+576|0;return}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;break e}b=Z()|0;Rc(f);break e}b=Z()|0}Rc(u)}Rc(o)}Rc(t)}Rc(s)}Rc(p);ba(b|0);B()}function f0(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0,I=0,M=0,N=0,P=0,Q=0,R=0,S=0;x=fc-16|0;fc=x;J[x>>2]=13;jf(a+24|0,J[J[a>>2]+24>>2],x,0);a:{b:{if(J[x>>2]==8)break b;b=J[a+16>>2];if(!b)break b;if(!Dd(b,793295)){e=fc-192|0;fc=e;J[e+176>>2]=13;J[e+160>>2]=13;J[e+144>>2]=13;J[e+128>>2]=13;J[e+112>>2]=13;c:{b=J[a+8>>2];if((b|0)<0){J[e+176>>2]=5;break c}wl(J[a+4>>2],b,J[a+12>>2],e+176|0,0);if(J[e+176>>2]!=7)break c;n=vc(8);J[699344]=0;c=_(3351,n|0)|0;b=J[699344];J[699344]=0;d:{e:{f:{g:{if((b|0)!=1){J[a+40>>2]=c; +b=e+128|0;if(J[Ec(J[e+184>>2],797418,b,0)>>2]-3>>>0>=4294967294){Af(e+160|0,J[J[a>>2]+24>>2]);c=Id(797975);b=Pe(b,e+112|0);de(J[e+168>>2],c,b);od(J[a+40>>2],798988)}yc(e+128|0);if(J[a+84>>2]){TJ(a,e+104|0);b=J[a+84>>2];e0(a,b+24|0,J[b+56>>2])}n=0;b=e+128|0;if(J[Ec(J[e+184>>2],799787,b,0)>>2]==6)n=Ki(a,b);g=e+128|0;yc(g);h:{i:{j:{if(J[Ec(J[e+184>>2],800447,g,0)>>2]!=6)break j;b=J[e+136>>2];if(J[b+12>>2]!=4)break j;r=e+112|0;if(J[Sc(b,0,r,0)>>2]-3>>>0<4294967294)break g;F=O[e+120>>3];p=J[e+120>>2]; +q=J[e+112>>2];yc(r);if(J[Sc(J[e+136>>2],1,r,0)>>2]-3>>>0<4294967294)break f;u=O[e+120>>3];D=J[e+120>>2];m=J[e+112>>2];yc(r);if(J[Sc(J[e+136>>2],2,r,0)>>2]-3>>>0<4294967294)break e;h=O[e+120>>3];d=J[e+120>>2];i=J[e+112>>2];yc(r);if(J[Sc(J[e+136>>2],3,r,0)>>2]-3>>>0>=4294967294){j=O[e+120>>3];f=J[e+120>>2];c=J[e+112>>2];yc(r);yc(g);k:{if(J[Ec(J[e+184>>2],801139,g,0)>>2]!=6)break k;b=J[e+136>>2];if(J[b+12>>2]!=2)break k;o=d0(Sc(b,0,r,0));yc(r);k=d0(Sc(J[e+136>>2],1,r,0));yc(r)}b=e+128|0;yc(b);if(J[Ec(J[e+ +184>>2],801940,b,0)>>2]-3>>>0>=4294967294)E=J[e+128>>2]==1?+J[e+136>>2]:O[e+136>>3];b=e+128|0;yc(b);if(J[Ec(J[e+184>>2],802702,b,0)>>2]-3>>>0>=4294967294)l=J[e+128>>2]==1?+J[e+136>>2]:O[e+136>>3];b=e+128|0;yc(b);if(J[Ec(J[e+184>>2],803271,b,0)>>2]-3>>>0>=4294967294)G=J[e+128>>2]==1?+J[e+136>>2]:O[e+136>>3];yc(e+128|0);s=(i|0)==1?+(d|0):h;h=O[a+48>>3];y=s-h;z=((q|0)==1?+(p|0):F)-h;s=y-z;h=O[a+56>>3];A=((c|0)==1?+(f|0):j)-h;C=((m|0)==1?+(D|0):u)-h;v=A-C;h=Y(s*s+v*v);if(h>0){s=s/h;v=v/h}if(E!=0)break i; +h=0;break h}yc(e+112|0);yc(e+128|0);break c}yc(e+128|0);break c}t=l*v;j=E*v;h=G*v;I=h+y;y=j+I;P=t+y;M=h+z;z=j+M;Q=t+z;l=-l*s;j=-E*s;h=-G*s;N=h+A;A=j+N;t=l+A;w=h+C;C=j+w;h=l+C}j=O[e+104>>3];l=j;l:{m:switch(o|0){case 1:l=j*6;break l;case 2:l=j*6;break l;case 3:l=j*6;break l;case 5:l=j*8.660254037844387;break l;case 7:l=j*8.660254037844387;break l;case 8:l=j*8.660254037844387;break l;case 0:case 4:case 6:case 9:break m;default:break l}l=0}F=l*v;u=l*s;l=j;n:{o:switch(k|0){case 1:l=j*6;break n;case 2:l= +j*6;break n;case 3:l=j*6;break n;case 5:l=j*8.660254037844387;break n;case 7:l=j*8.660254037844387;break n;case 8:l=j*8.660254037844387;break n;case 0:case 4:case 6:case 9:break o;default:break n}l=0}if(E!=0){b=J[a+40>>2];O[e+88>>3]=h;O[e+80>>3]=Q;O[e+72>>3]=w;O[e+64>>3]=M;ed(b,804163,e- -64|0);b=J[a+40>>2];O[e+56>>3]=t;O[e+48>>3]=P;O[e+40>>3]=N;O[e+32>>3]=I;ed(b,804163,e+32|0)}b=J[a+40>>2];t=-v;O[e+24>>3]=l*t+A;h=-s;O[e+16>>3]=l*h+y;O[e+8>>3]=F+C;O[e>>3]=u+z;ed(b,804163,e);od(J[a+40>>2],804881); +b=J[a+84>>2];if(!(!b|J[b>>2]!=1))od(J[a+40>>2],805522);c0(a,o,z,C,s,v,j,n);c0(a,k,y,A,h,t,j,n);Af(e+144|0,J[J[a>>2]+24>>2]);b=Id(805774);J[e+136>>2]=J[J[a+40>>2]>>2];J[e+128>>2]=1;f=e+128|0;de(J[e+152>>2],b,f);b=Id(776736);J[e+128>>2]=4;R=e,S=Id(806135),J[R+136>>2]=S;de(J[e+152>>2],b,f);Po(f,J[J[a>>2]+24>>2]);J[e+120>>2]=0;J[e+124>>2]=0;J[e+112>>2]=2;c=e+112|0;hg(J[e+136>>2],c);J[e+120>>2]=0;J[e+124>>2]=0;J[e+112>>2]=2;hg(J[e+136>>2],c);j=O[a+48>>3];h=O[a+64>>3];J[e+112>>2]=2;O[e+120>>3]=h-j;hg(J[e+ +136>>2],c);j=O[a+56>>3];h=O[a+72>>3];J[e+112>>2]=2;O[e+120>>3]=h-j;hg(J[e+136>>2],c);b=Id(806488);de(J[e+152>>2],b,f);if(J[e+160>>2]==7){Af(f,J[J[a>>2]+24>>2]);Af(c,J[J[a>>2]+24>>2]);b=Id(807175);de(J[e+120>>2],b,e+160|0);b=Id(807566);de(J[e+136>>2],b,c);b=Id(807885);de(J[e+152>>2],b,f)}n=vc(48);b=J[a+40>>2];c=J[b>>2];b=J[b+4>>2];J[699344]=0;c=Ln(n,b,0,c,e+144|0);b=J[699344];J[699344]=0;if((b|0)!=1){a=a+24|0;yc(a);J[a+8>>2]=c;J[a>>2]=8;break c}break d}break d}yc(e+112|0);yc(e+128|0);break c}yc(e+ +112|0);yc(e+128|0);break c}yc(e+112|0);yc(e+128|0);break c}a=Z()|0;uc(n);ba(a|0);B()}yc(e+176|0);fc=e+192|0;break b}if(!Dd(J[a+16>>2],794033)){d=fc-128|0;fc=d;J[d+112>>2]=13;J[d+96>>2]=13;J[d+80>>2]=13;J[d+64>>2]=13;J[d+48>>2]=13;b=J[a+8>>2];p:{if((b|0)<0){J[d+112>>2]=5;break p}wl(J[a+4>>2],b,J[a+12>>2],d+112|0,0);if(J[d+112>>2]!=7)break p;m=vc(8);J[699344]=0;c=_(3351,m|0)|0;b=J[699344];J[699344]=0;q:{r:{s:{if((b|0)!=1){J[a+40>>2]=c;b=d- -64|0;if(J[Ec(J[d+120>>2],797418,b,0)>>2]-3>>>0>=4294967294){Af(d+ +96|0,J[J[a>>2]+24>>2]);c=Id(797975);b=Pe(b,d+48|0);de(J[d+104>>2],c,b);od(J[a+40>>2],798988)}yc(d- -64|0);if(J[a+84>>2]){TJ(a,d+40|0);b=J[a+84>>2];e0(a,b+24|0,J[b+56>>2])}if(J[Ec(J[d+120>>2],808278,d- -64|0,0)>>2]!=6)break s;b=J[d+72>>2];t:{if(J[b+12>>2]<2)break t;c=b;b=d+48|0;if(J[Sc(c,0,b,0)>>2]-3>>>0<4294967294)break q;l=O[d+56>>3];i=J[d+56>>2];n=J[d+48>>2];yc(b);if(J[Sc(J[d+72>>2],1,b,0)>>2]-3>>>0<4294967294)break r;f=J[d+48>>2];c=J[d+56>>2];j=O[d+56>>3];yc(b);b=J[a+40>>2];h=O[a+48>>3];O[d+24>> +3]=((f|0)==1?+(c|0):j)-O[a+56>>3];O[d+16>>3]=((n|0)==1?+(i|0):l)-h;ed(b,808963,d+16|0);q=3;n=J[d+72>>2];if(J[n+12>>2]<=3)break t;m=2;while(1){b=d+48|0;if(J[Sc(n,m,b,0)>>2]-3>>>0<=4294967293)break q;l=O[d+56>>3];i=J[d+56>>2];n=J[d+48>>2];yc(b);if(J[Sc(J[d+72>>2],q,b,0)>>2]-3>>>0<=4294967293)break r;f=J[d+48>>2];c=J[d+56>>2];j=O[d+56>>3];yc(b);b=J[a+40>>2];h=O[a+48>>3];O[d+8>>3]=((f|0)==1?+(c|0):j)-O[a+56>>3];O[d>>3]=((n|0)==1?+(i|0):l)-h;ed(b,809321,d);m=m+2|0;q=m|1;n=J[d+72>>2];if((q|0)>2])continue; +break}}od(J[a+40>>2],804881);f=d- -64|0;yc(f);Af(d+80|0,J[J[a>>2]+24>>2]);b=Id(805774);J[d+72>>2]=J[J[a+40>>2]>>2];J[d+64>>2]=1;de(J[d+88>>2],b,f);b=Id(776736);J[d+64>>2]=4;R=d,S=Id(806135),J[R+72>>2]=S;de(J[d+88>>2],b,f);Po(f,J[J[a>>2]+24>>2]);J[d+56>>2]=0;J[d+60>>2]=0;J[d+48>>2]=2;c=d+48|0;hg(J[d+72>>2],c);J[d+56>>2]=0;J[d+60>>2]=0;J[d+48>>2]=2;hg(J[d+72>>2],c);j=O[a+48>>3];h=O[a+64>>3];J[d+48>>2]=2;O[d+56>>3]=h-j;hg(J[d+72>>2],c);j=O[a+56>>3];h=O[a+72>>3];J[d+48>>2]=2;O[d+56>>3]=h-j;hg(J[d+72>> +2],c);b=Id(806488);de(J[d+88>>2],b,f);if(J[d+96>>2]==7){Af(f,J[J[a>>2]+24>>2]);Af(c,J[J[a>>2]+24>>2]);b=Id(807175);de(J[d+56>>2],b,d+96|0);b=Id(807566);de(J[d+72>>2],b,c);b=Id(807885);de(J[d+88>>2],b,f)}m=vc(48);b=J[a+40>>2];c=J[b>>2];b=J[b+4>>2];J[699344]=0;c=Ln(m,b,0,c,d+80|0);b=J[699344];J[699344]=0;if((b|0)!=1){a=a+24|0;yc(a);J[a+8>>2]=c;J[a>>2]=8;break p}break a}break a}yc(d- -64|0);break p}yc(d+48|0);yc(d- -64|0);break p}yc(d+48|0);yc(d- -64|0)}yc(d+112|0);fc=d+128|0;break b}if(!Dd(J[a+16>> +2],794672)){d=fc-112|0;fc=d;J[d+96>>2]=13;J[d+80>>2]=13;J[d+64>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;b=J[a+8>>2];u:{if((b|0)<0){J[d+96>>2]=5;break u}wl(J[a+4>>2],b,J[a+12>>2],d+96|0,0);if(J[d+96>>2]!=7)break u;m=vc(8);J[699344]=0;c=_(3351,m|0)|0;b=J[699344];J[699344]=0;v:{w:{x:{if((b|0)!=1){J[a+40>>2]=c;b=d+48|0;if(J[Ec(J[d+104>>2],797418,b,0)>>2]-3>>>0>=4294967294){Af(d+80|0,J[J[a>>2]+24>>2]);c=Id(797975);b=Pe(b,d+32|0);de(J[d+88>>2],c,b);od(J[a+40>>2],798988)}b=d+48|0;yc(b);y:{if(J[Ec(J[d+104>>2], +799787,b,0)>>2]==6)if(Ki(a,b))break y;yc(d+48|0);break u}b=d+48|0;yc(b);if(J[Ec(J[d+104>>2],808278,b,0)>>2]!=6)break x;b=J[d+56>>2];z:{if(J[b+12>>2]<2)break z;c=b;b=d+32|0;if(J[Sc(c,0,b,0)>>2]-3>>>0<4294967294)break v;l=O[d+40>>3];i=J[d+40>>2];n=J[d+32>>2];yc(b);if(J[Sc(J[d+56>>2],1,b,0)>>2]-3>>>0<4294967294)break w;f=J[d+32>>2];c=J[d+40>>2];j=O[d+40>>3];yc(b);b=J[a+40>>2];h=O[a+48>>3];O[d+24>>3]=((f|0)==1?+(c|0):j)-O[a+56>>3];O[d+16>>3]=((n|0)==1?+(i|0):l)-h;ed(b,808963,d+16|0);q=3;n=J[d+56>>2]; +if(J[n+12>>2]<=3)break z;m=2;while(1){b=d+32|0;if(J[Sc(n,m,b,0)>>2]-3>>>0<=4294967293)break v;l=O[d+40>>3];i=J[d+40>>2];n=J[d+32>>2];yc(b);if(J[Sc(J[d+56>>2],q,b,0)>>2]-3>>>0<=4294967293)break w;f=J[d+32>>2];c=J[d+40>>2];j=O[d+40>>3];yc(b);b=J[a+40>>2];h=O[a+48>>3];O[d+8>>3]=((f|0)==1?+(c|0):j)-O[a+56>>3];O[d>>3]=((n|0)==1?+(i|0):l)-h;ed(b,809321,d);m=m+2|0;q=m|1;n=J[d+56>>2];if((q|0)>2])continue;break}}od(J[a+40>>2],809635);f=d+48|0;yc(f);Af(d- -64|0,J[J[a>>2]+24>>2]);b=Id(805774);J[d+56>> +2]=J[J[a+40>>2]>>2];J[d+48>>2]=1;de(J[d+72>>2],b,f);b=Id(776736);J[d+48>>2]=4;R=d,S=Id(806135),J[R+56>>2]=S;de(J[d+72>>2],b,f);Po(f,J[J[a>>2]+24>>2]);J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2;c=d+32|0;hg(J[d+56>>2],c);J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2;hg(J[d+56>>2],c);j=O[a+48>>3];h=O[a+64>>3];J[d+32>>2]=2;O[d+40>>3]=h-j;hg(J[d+56>>2],c);j=O[a+56>>3];h=O[a+72>>3];J[d+32>>2]=2;O[d+40>>3]=h-j;hg(J[d+56>>2],c);b=Id(806488);de(J[d+72>>2],b,f);if(J[d+80>>2]==7){Af(f,J[J[a>>2]+24>>2]);Af(c,J[J[a>>2]+ +24>>2]);b=Id(807175);de(J[d+40>>2],b,d+80|0);b=Id(807566);de(J[d+56>>2],b,c);b=Id(807885);de(J[d+72>>2],b,f)}m=vc(48);b=J[a+40>>2];c=J[b>>2];b=J[b+4>>2];J[699344]=0;c=Ln(m,b,0,c,d- -64|0);b=J[699344];J[699344]=0;if((b|0)!=1){a=a+24|0;yc(a);J[a+8>>2]=c;J[a>>2]=8;break u}break a}break a}yc(d+48|0);break u}yc(d+32|0);yc(d+48|0);break u}yc(d+32|0);yc(d+48|0)}yc(d+96|0);fc=d+112|0;break b}if(!Dd(J[a+16>>2],795225)){g=fc-192|0;fc=g;J[g+176>>2]=13;J[g+160>>2]=13;J[g+144>>2]=13;J[g+128>>2]=13;J[g+112>>2]= +13;J[g+96>>2]=13;J[g+80>>2]=13;J[g+64>>2]=13;J[g+48>>2]=13;A:{b=J[a+8>>2];B:{if((b|0)<0){J[g+176>>2]=5;break B}wl(J[a+4>>2],b,J[a+12>>2],g+176|0,0);if(J[g+176>>2]!=7)break B;m=vc(8);J[699344]=0;c=_(3351,m|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+40>>2]=c;b=g+128|0;if(J[Ec(J[g+184>>2],797418,b,0)>>2]-3>>>0>=4294967294){Af(g+160|0,J[J[a>>2]+24>>2]);c=Id(797975);b=Pe(b,g+112|0);de(J[g+168>>2],c,b);od(J[a+40>>2],798988)}b=g+128|0;yc(b);C:{if(J[Ec(J[g+184>>2],809760,b,0)>>2]==3){b=J[g+136>> +2];m=vc(8);J[699344]=0;n=aa(3350,m|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break C;break A}m=vc(8);J[699344]=0;n=_(3351,m|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break C;break a}b=g+128|0;yc(b);d=J[Ec(J[g+184>>2],810388,b,0)>>2];f=J[g+136>>2];yc(b);D:{if(J[Ec(J[g+184>>2],810786,b,0)>>2]==3){b=J[g+136>>2];m=vc(8);J[699344]=0;q=aa(3350,m|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break D;break A}m=vc(8);J[699344]=0;q=_(3351,m|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break D;break a}i=g+128| +0;yc(i);c=J[Ec(J[g+184>>2],810995,i,0)>>2];b=J[g+136>>2];yc(i);i=a;m=(d|0)==1?f:0;D=(c|0)==1?b:0;p=fc-128|0;fc=p;E:{F:{b=n;G:{if(J[b>>2]<2)break G;a=J[b+4>>2];if(K[a|0]!=254|K[a+1|0]!=255)break G;k=vc(8);J[699344]=0;b=_(3351,k|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break F;if(J[n>>2]<4)break G;c=2;k=3;while(1){a=J[n+4>>2];if(K[a+c|0])a=63;else a=K[a+k|0];Kd(b,a<<24>>24);c=c+2|0;k=c|1;if((k|0)>2])continue;break}}a=-1;c=-1;H:{I:{if(!q)break I;k=vc(16);J[699344]=0;o=_(3352,k|0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break F;k=J[q>>2];if((k|0)>0){c=0;while(1){J:{if((c|0)>=(k|0))break J;while(1){k=J[q>>2];a=H[J[q+4>>2]+c|0];if(a>>>0<=255)a=K[a+2318736|0]==1;else a=0;if(!a)break J;c=c+1|0;if((k|0)>(c|0))continue;break}}a=c;if((k|0)>(a|0)){while(1){a=a+1|0;if((a|0)>2]){f=H[J[q+4>>2]+a|0];if(f>>>0<=255)f=K[f+2318736|0]==1;else f=0;if(!f)continue}break}k=vc(8);J[699344]=0;f=ha(3454,k|0,q|0,c|0,a-c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break F;sd(o,f);k=J[q>>2];c=a}if((c|0)<(k|0))continue; +break}}if(J[o+8>>2]<3){a=-1;c=-1;break I}a=-1;c=Dd(J[J[o>>2]+8>>2],840907)?-1:0;K:{if(J[o+8>>2]<4)break K;c=Dd(J[J[o>>2]+12>>2],840907)?c:1;if(J[o+8>>2]<5)break K;c=Dd(J[J[o>>2]+16>>2],840907)?c:2;k=6;if(J[o+8>>2]<6)break K;c=Dd(J[J[o>>2]+20>>2],840907)?c:3;if(J[o+8>>2]<=6)break K;while(1){f=k<<2;L:{if(!Dd(J[f+J[o>>2]>>2],840907)){c=k-2|0;break L}a=Dd(J[f+J[o>>2]>>2],841048)?a:k-6|0}k=k+1|0;if((k|0)>2])continue;break}}if((c|0)<0)break I;d=c<<2;f=J[d+J[o>>2]>>2];Rh(f);od(f,841177);w=qg(J[J[(d+ +J[o>>2]|0)+4>>2]+4>>2]);f=1;break H}Cc(1,-1,841363,0);k=vc(8);J[699344]=0;d=aa(3349,k|0,841177)|0;f=J[699344];J[699344]=0;if((f|0)==1)break F;sd(o,d);k=vc(8);J[699344]=0;d=aa(3349,k|0,841612)|0;f=J[699344];J[699344]=0;if((f|0)==1)break F;sd(o,d);k=vc(8);J[699344]=0;d=aa(3349,k|0,840907)|0;f=J[699344];J[699344]=0;if((f|0)==1)break F;sd(o,d);f=0}od(J[i+40>>2],841757);M:{N:{if((D|0)!=270){if((D|0)!=180){if((D|0)!=90)break N;d=J[i+40>>2];O[p+80>>3]=O[i+64>>3]-O[i+48>>3];ed(d,841958,p+80|0);u=O[i+72>> +3]-O[i+56>>3];j=O[i+64>>3];d=i+48|0;break M}d=J[i+40>>2];j=O[i+48>>3];h=O[i+64>>3];O[p+104>>3]=O[i+72>>3]-O[i+56>>3];O[p+96>>3]=h-j;ed(d,842097,p+96|0);j=O[i+72>>3];u=O[i+64>>3]-j;d=i+56|0;break M}d=J[i+40>>2];O[p+112>>3]=O[i+72>>3]-O[i+56>>3];ed(d,842266,p+112|0);u=O[i+72>>3]-O[i+56>>3];j=O[i+64>>3];d=i+48|0;break M}u=O[i+64>>3]-O[i+48>>3];j=O[i+72>>3];d=i+56|0}h=O[d>>3];od(J[i+40>>2],842500);if(J[b>>2]>0){k=0;while(1){l=.5;d=J[(K[J[n+4>>2]+k|0]<<2)+2710720>>2];O:{if(!d)break O;if(!du(J[664518], +d,p+126|0))break O;l=+L[p+126>>1]}t=t+l;k=k+1|0;if((k|0)>2])continue;break}}l=j-h;P:{if(w!=0)break P;j=(u+-0)/t;h=l+-0;w=V(j>2]+(c<<2)|0)+4>>2];Rh(c);O[p+64>>3]=w;ed(c,842504,p- -64|0)}h=t*w;Q:{R:switch(m-1|0){default:h=2;break Q;case 0:h=(u-h)*.5;break Q;case 1:break R}h=u+-0+-2-h}j=l*.5+w*-.4;k=0;if((a|0)>=0){f=a<<2;c=J[(f+J[o>>2]|0)+16>>2];Rh(c);O[p+48>>3]=h;ed(c,842504,p+48|0);c=J[(f+J[o>>2]|0)+20>>2];Rh(c);O[p+32>>3]=j;ed(c,842504,p+32|0)}if(J[o+8>>2]>0)while(1){Kd(Qh(J[i+ +40>>2],J[J[o>>2]+(k<<2)>>2]),32);k=k+1|0;if((k|0)>2])continue;break}if((a|0)<0){a=J[i+40>>2];O[p+24>>3]=j;O[p+16>>3]=h;ed(a,842726,p+16|0)}Kd(J[i+40>>2],40);if(J[b>>2]>0){k=0;while(1){f=K[J[b+4>>2]+k|0];c=f<<24>>24;S:{if(!((f|0)!=92&f-40>>>0>=2)){Kd(J[i+40>>2],92);Kd(J[i+40>>2],c);break S}a=J[i+40>>2];if((c|0)<=31){J[p>>2]=f;ed(a,842754,p);break S}Kd(a,c)}k=k+1|0;if((k|0)>2])continue;break}}od(J[i+40>>2],843065);od(J[i+40>>2],843215);od(J[i+40>>2],843337);c=J[o+8>>2];if((c|0)>0){k=0;while(1){a= +J[J[o>>2]+(k<<2)>>2];if(a){uc(Zc(a));c=J[o+8>>2]}k=k+1|0;if((k|0)<(c|0))continue;break}}uc(ld(o));if((b|0)!=(n|0))uc(Zc(b));fc=p+128|0;break E}a=Z()|0;uc(k);ba(a|0);B()}uc(Zc(n));uc(Zc(q));a=J[i+84>>2];if(!(!a|O[a+8>>3]==0)){TJ(i,g+40|0);a=J[i+40>>2];j=O[i+56>>3];h=O[i+72>>3];l=O[g+40>>3];O[g+16>>3]=O[i+64>>3]-O[i+48>>3]-l;O[g+24>>3]=h-j-l;h=l*.5;O[g>>3]=h;O[g+8>>3]=h;ed(a,836858,g)}Af(g+144|0,J[J[i>>2]+24>>2]);a=Id(805774);J[g+136>>2]=J[J[i+40>>2]>>2];J[g+128>>2]=1;b=g+128|0;de(J[g+152>>2],a,b); +a=Id(776736);J[g+128>>2]=4;R=g,S=Id(806135),J[R+136>>2]=S;de(J[g+152>>2],a,b);Po(b,J[J[i>>2]+24>>2]);J[g+120>>2]=0;J[g+124>>2]=0;J[g+112>>2]=2;a=g+112|0;hg(J[g+136>>2],a);J[g+120>>2]=0;J[g+124>>2]=0;J[g+112>>2]=2;hg(J[g+136>>2],a);j=O[i+48>>3];h=O[i+64>>3];J[g+112>>2]=2;O[g+120>>3]=h-j;hg(J[g+136>>2],a);j=O[i+56>>3];h=O[i+72>>3];J[g+112>>2]=2;O[g+120>>3]=h-j;hg(J[g+136>>2],a);a=Id(806488);de(J[g+152>>2],a,b);Af(g+96|0,J[J[i>>2]+24>>2]);c=g+48|0;Af(c,J[J[i>>2]+24>>2]);a=Id(837139);J[g+128>>2]=4;R= +g,S=Id(811338),J[R+136>>2]=S;de(J[g+56>>2],a,b);a=Id(776736);J[g+128>>2]=4;R=g,S=Id(811944),J[R+136>>2]=S;de(J[g+56>>2],a,b);a=Id(812077);J[g+128>>2]=4;R=g,S=Id(812604),J[R+136>>2]=S;de(J[g+56>>2],a,b);a=Id(812845);J[g+128>>2]=4;R=g,S=Id(813233),J[R+136>>2]=S;de(J[g+56>>2],a,b);b=g- -64|0;Af(b,J[J[i>>2]+24>>2]);a=Id(813436);de(J[g+72>>2],a,c);a=Id(811338);de(J[g+104>>2],a,b);if(J[g+160>>2]==7){b=g+80|0;Af(b,J[J[i>>2]+24>>2]);a=Id(807175);de(J[g+88>>2],a,g+160|0);a=Id(807566);de(J[g+104>>2],a,b)}a= +Id(807885);de(J[g+152>>2],a,g+96|0);m=vc(48);a=J[i+40>>2];b=J[a>>2];a=J[a+4>>2];J[699344]=0;b=Ln(m,a,0,b,g+144|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=i+24|0;yc(a);J[a+8>>2]=b;J[a>>2]=8}yc(g+176|0);fc=g+192|0;break b}break a}if(Dd(J[a+16>>2],796010))break b;b=fc-96|0;fc=b;J[b+80>>2]=13;J[b+64>>2]=13;J[b+48>>2]=13;J[b+32>>2]=13;J[b+16>>2]=13;J[b>>2]=13;T:{U:{c=J[a+8>>2];V:{if((c|0)<0){J[b+80>>2]=5;break V}wl(J[a+4>>2],c,J[a+12>>2],b+80|0,0);if(J[b+80>>2]!=7)break V;if(J[Ec(J[b+88>>2],813912, +b- -64|0,0)>>2]==4)break U}yc(b+80|0);yc(b- -64|0);break T}m=vc(8);J[699344]=0;f=_(3351,m|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+40>>2]=f;W:{if(J[b+64>>2]!=4)break W;c=J[b+72>>2];if(!Ic(c,814130)){O[a+56>>3]=O[a+72>>3]+-19;O[a+64>>3]=O[a+48>>3]+19;c=b+16|0;X:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break X;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],814831);break W}if(!Ic(c,815301)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+20;od(f,815580);break W}if(!Ic(c,815981)){O[a+ +56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+20;Af(b+32|0,J[J[a>>2]+24>>2]);c=b+16|0;Ec(J[b+88>>2],797418,c,0);f=Id(797975);Y:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(c,b);break Y}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);f=Id(797418);Z:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(b+16|0,b);break Z}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);c=b+16|0;yc(c);od(J[a+40>>2],816169);_:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break _;od(J[a+ +40>>2],814428)}yc(b+16|0);od(J[a+40>>2],816524);break W}if(!Ic(c,817032)){O[a+56>>3]=O[a+72>>3]+-24;O[a+64>>3]=O[a+48>>3]+24;Af(b+32|0,J[J[a>>2]+24>>2]);c=b+16|0;Ec(J[b+88>>2],797418,c,0);f=Id(797975);$:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(c,b);break $}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);f=Id(797418);aa:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(b+16|0,b);break aa}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);c=b+16|0;yc(c);od(J[a+ +40>>2],817504);ba:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break ba;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],817999);break W}if(!Ic(c,818699)){O[a+56>>3]=O[a+72>>3]+-19;O[a+64>>3]=O[a+48>>3]+19;c=b+16|0;ca:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break ca;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],819094);break W}if(!Ic(c,819526)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+20;Af(b+32|0,J[J[a>>2]+24>>2]);c=b+16|0;Ec(J[b+88>>2],797418,c,0);f=Id(797975);da:{if(J[b+16>> +2]-3>>>0>=4294967294){c=Pe(c,b);break da}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);f=Id(797418);ea:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(b+16|0,b);break ea}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);c=b+16|0;yc(c);od(J[a+40>>2],819818);fa:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break fa;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],820168);break W}if(!Ic(c,820949)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+20;Af(b+ +32|0,J[J[a>>2]+24>>2]);c=b+16|0;Ec(J[b+88>>2],797418,c,0);f=Id(797975);ga:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(c,b);break ga}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);f=Id(797418);ha:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(b+16|0,b);break ha}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);c=b+16|0;yc(c);od(J[a+40>>2],821356);ia:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break ia;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],821786); +break W}if(!Ic(c,822774)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+17;od(f,823210);c=b+16|0;ja:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break ja;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],823502);break W}if(!Ic(c,823711)){O[a+56>>3]=O[a+72>>3]+-18;O[a+64>>3]=O[a+48>>3]+13;Af(b+32|0,J[J[a>>2]+24>>2]);c=b+16|0;Ec(J[b+88>>2],797418,c,0);f=Id(797975);ka:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(c,b);break ka}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);f= +Id(797418);la:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(b+16|0,b);break la}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);c=b+16|0;yc(c);od(J[a+40>>2],824059);ma:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break ma;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],824686);break W}if(!Ic(c,825534)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+13;c=b+16|0;na:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break na;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],825887); +break W}if(!Ic(c,827286)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+18;c=b+16|0;oa:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break oa;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],827607);break W}if(!Ic(c,828225)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+20;Af(b+32|0,J[J[a>>2]+24>>2]);c=b+16|0;Ec(J[b+88>>2],797418,c,0);f=Id(797975);pa:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(c,b);break pa}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);f=Id(797418);qa:{if(J[b+ +16>>2]-3>>>0>=4294967294){c=Pe(b+16|0,b);break qa}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);c=b+16|0;yc(c);od(J[a+40>>2],828525);ra:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break ra;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],828946);break W}if(!Ic(c,829802)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+20;Af(b+32|0,J[J[a>>2]+24>>2]);c=b+16|0;Ec(J[b+88>>2],797418,c,0);f=Id(797975);sa:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(c,b);break sa}J[b+8>>2]=858993459; +J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);f=Id(797418);ta:{if(J[b+16>>2]-3>>>0>=4294967294){c=Pe(b+16|0,b);break ta}J[b+8>>2]=858993459;J[b+12>>2]=1071854387;J[b>>2]=2;c=b}de(J[b+40>>2],f,c);c=b+16|0;yc(c);od(J[a+40>>2],830099);ua:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break ua;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],830613);break W}if(!Ic(c,831149)){O[a+56>>3]=O[a+72>>3]+-17;O[a+64>>3]=O[a+48>>3]+20;c=b+16|0;va:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break va; +od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],831435);break W}if(!Ic(c,831712)){O[a+56>>3]=O[a+72>>3]+-19;O[a+64>>3]=O[a+48>>3]+20;c=b+16|0;wa:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break wa;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],832132);break W}if(!Ic(c,832460)){O[a+56>>3]=O[a+72>>3]+-20;O[a+64>>3]=O[a+48>>3]+17;c=b+16|0;xa:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break xa;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],832881);break W}if(Ic(c,833165))break W;O[a+56>> +3]=O[a+72>>3]+-17;O[a+64>>3]=O[a+48>>3]+17;c=b+16|0;ya:{if(J[Ec(J[b+88>>2],789310,c,0)>>2]==6)if(Ki(a,c))break ya;od(J[a+40>>2],814428)}yc(b+16|0);od(J[a+40>>2],833468)}yc(b+80|0);yc(b- -64|0);Af(b+48|0,J[J[a>>2]+24>>2]);c=Id(805774);J[b+24>>2]=J[J[a+40>>2]>>2];J[b+16>>2]=1;f=b+16|0;de(J[b+56>>2],c,f);c=Id(776736);J[b+16>>2]=4;R=b,S=Id(806135),J[R+24>>2]=S;de(J[b+56>>2],c,f);Po(f,J[J[a>>2]+24>>2]);J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2;hg(J[b+24>>2],b);J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2;hg(J[b+24>>2], +b);j=O[a+48>>3];h=O[a+64>>3];J[b>>2]=2;O[b+8>>3]=h-j;hg(J[b+24>>2],b);j=O[a+56>>3];h=O[a+72>>3];J[b>>2]=2;O[b+8>>3]=h-j;hg(J[b+24>>2],b);c=Id(806488);de(J[b+56>>2],c,f);if(J[b+32>>2]==7){Af(f,J[J[a>>2]+24>>2]);Af(b,J[J[a>>2]+24>>2]);c=Id(807175);de(J[b+8>>2],c,b+32|0);c=Id(807566);de(J[b+24>>2],c,b);c=Id(807885);de(J[b+56>>2],c,f)}m=vc(48);c=J[a+40>>2];f=J[c>>2];c=J[c+4>>2];J[699344]=0;f=Ln(m,c,0,f,b+48|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;a=a+24|0;yc(a);J[a+8>>2]=f;J[a>>2]=8}fc=b+96|0}yc(x); +fc=x+16|0;return}a=Z()|0;uc(m);ba(a|0);B()}function MW(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;c=J[a+8>>2];if(c)a:{if(!c)break a;c=J[a+12>>2];if(!(c&64))break a;if(c&4096){J[a+12>>2]=c&-4097;if(!(kc[J[a+536>>2]](a)|0))break a}if(!pf(a)|!(K[a+12|0]&8))break a;e=fc-784|0;fc=e;c=1;b:{if(!J[a+8>>2])break b;c:{c=J[a+12>>2];if(!(c&4096))break c;J[a+12>>2]=c&-4097;if(kc[J[a+536>>2]](a)|0)break c;Uc(J[a+628>>2],J[a>>2],72162,0); +c=0;break b}kc[J[a+564>>2]](a);d:{d=J[a+12>>2];if(!(!(d&64)|J[a+608>>2]<=0)){if(!pf(a))break d;d=J[a+12>>2]}e:{if(!(d&512))break e;c=J[a+596>>2];if(!c)break e;uc(c);J[a+608>>2]=0;J[a+596>>2]=0;J[a+600>>2]=0;d=J[a+12>>2]}J[a+12>>2]=d&-81;c=J[a+40>>2];c=(c>>>3&2)+((((c&2)+(c<<1&2)|0)+(c>>>1&2)|0)+(c>>>2&2)|0)|0;f=a+40|0;d=5;while(1){c=(J[f+(d>>>3&536870908)>>2]>>>d&(d|0)!=65)+c|0;b=d+1|0;if((b|0)!=128){c=c+(J[f+(b>>>3&536870908)>>2]>>>b&(b|0)!=65)|0;d=d+2|0;continue}break}r=c+J[a+236>>2]|0;s=P(r,12); +q=Dc(s);if(!q){Uc(J[a+628>>2],J[a>>2],73234,0);c=0;break b}f:{d=J[a+16>>2];if(!d){c=(kc[J[a+640>>2]](J[a+628>>2],0,2)|0)+1&-2;J[a+16>>2]=c;J[e+624>>2]=c;c=J[a+12>>2];if(c&128){Rp(e+624|0);c=J[a+12>>2]}g:{h:{if(c&8192){kc[J[a+640>>2]](J[a+628>>2],J[a+496>>2],0)|0;if((kc[J[a+636>>2]](J[a+628>>2],e+624|0,4)|0)!=4){c=J[a+628>>2];J[e+576>>2]=J[a>>2];Uc(c,94032,74530,e+576|0);break f}c=L[a+492>>1]-1|0;I[a+492>>1]=c;if(!(c&65535))break h;J[a+496>>2]=J[a+496>>2]+4;break g}d=J[a+460>>2];if(!d){J[a+460>>2]= +J[a+16>>2];kc[J[a+640>>2]](J[a+628>>2],4,0)|0;if((kc[J[a+636>>2]](J[a+628>>2],e+624|0,4)|0)==4)break g;Uc(J[a+628>>2],J[a>>2],74960,0);break f}J[e+704>>2]=d;while(1){c=70020;i:{j:{if((kc[J[a+640>>2]](J[a+628>>2],d,0)|0)!=J[e+704>>2])break j;b=e+592|0;if((kc[J[a+632>>2]](J[a+628>>2],b,2)|0)!=2)break j;if(K[a+12|0]&128){c=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=c}kc[J[a+640>>2]](J[a+628>>2],P(L[e+592>>1],12),1)|0;if((kc[J[a+632>>2]](J[a+628>>2],e+704|0,4)|0)==4)break i;c=70744}Uc(J[a+628>>2],94032,c,0);break f}if(K[a+ +12|0]&128)Rp(e+704|0);d=J[e+704>>2];if(d)continue;break}c=kc[J[a+640>>2]](J[a+628>>2],0,1)|0;kc[J[a+640>>2]](J[a+628>>2],c-4|0,0)|0;if((kc[J[a+636>>2]](J[a+628>>2],e+624|0,4)|0)==4)break g;Uc(J[a+628>>2],94032,71550,0);break f}J[a+12>>2]=J[a+12>>2]&-8193}d=J[a+16>>2]}c=(((s|2)+d|0)+(d&1)|0)+4|0;J[a+488>>2]=c;kc[J[a+640>>2]](J[a+628>>2],c,0)|0;I[a+476>>1]=L[a+476>>1]+1;Ue(e+592|0,f,16);c=J[e+592>>2];if(!(L[a+168>>1]|(c|0)>=0)){J[e+592>>2]=c&2147483647;r=r-1|0;s=s-12|0}u=J[a+660>>2];if((u|0)>0){w=a+ +144|0;x=a+140|0;y=a+132|0;z=a+128|0;A=a+216|0;v=e+706|0;c=q;while(1){o=J[J[a+656>>2]+(t<<2)>>2];n=L[o+12>>1];k:{l:{if((n|0)==65){f=J[a+236>>2];if((f|0)<=0)break k;h=J[a+240>>2];k=0;i=0;d=0;if(f>>>0>=4){b=f&-4;p=0;while(1){i=J[h+P(d,12)>>2]==(o|0)|i|J[h+P(d|1,12)>>2]==(o|0)|J[h+P(d|2,12)>>2]==(o|0)|J[h+P(d|3,12)>>2]==(o|0);d=d+4|0;p=p+4|0;if((b|0)!=(p|0))continue;break}}b=f&3;if(b)while(1){i=J[h+P(d,12)>>2]==(o|0)|i;d=d+1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}if(i)break l;break k}if(!(J[(e+592| +0)+(n>>>3&8188)>>2]>>>n&1))break k}m:{n:{o:{p:{q:{r:{s:switch(n-1|0){case 24:b=K[a+13|0]&4?324:273;if((b|0)!=J[o>>2])break k;I[c+2>>1]=4;I[c>>1]=b;b=J[a+180>>2];J[c+4>>2]=b;d=J[a+184>>2];if((b|0)!=1)break r;J[c+8>>2]=J[d>>2];break m;case 23:b=K[a+13|0]&4?325:279;if((b|0)!=J[o>>2])break k;I[c+2>>1]=4;I[c>>1]=b;b=J[a+180>>2];J[c+4>>2]=b;d=J[a+188>>2];if((b|0)==1){J[c+8>>2]=J[d>>2];break m}if(Yf(a,c,d))break m;break f;case 16:b=J[a+100>>2];J[c+4>>2]=1;I[c>>1]=278;if(b>>>0>=65536){I[c+2>>1]=4;J[c+8>> +2]=b;break m}I[c+2>>1]=3;b=b&J[J[a+468>>2]+12>>2];if(L[a+456>>1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 25:J[c>>2]=196928;J[c+4>>2]=1<>1];b=J[a+488>>2];if(!Yf(a,c,J[a+152>>2]))break f;if(!Yf(a,c,J[a+156>>2]))break f;if(!Yf(a,c,J[a+160>>2]))break f;J[c+8>>2]=b;J[c+4>>2]=P(J[c+4>>2],3);break m;case 0:d=J[a+56>>2];J[c+4>>2]=1;I[c>>1]=256;t:{if(d>>>0>=65536){I[c+2>>1]=4;break t}I[c+2>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break t;d=d<>2]+12>>2]}J[c+ +8>>2]=d;d=J[a+60>>2];J[c+16>>2]=1;I[c+12>>1]=257;u:{if(d>>>0>=65536){I[c+14>>1]=4;break u}I[c+14>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break u;d=d<>2]+12>>2]}J[c+20>>2]=d;c=c+12|0;break m;case 1:d=J[a+68>>2];J[c+4>>2]=1;I[c>>1]=322;v:{if(d>>>0>=65536){I[c+2>>1]=4;break v}I[c+2>>1]=3;d=J[J[a+468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break v;d=d<>2]+12>>2]}J[c+8>>2]=d;d=J[a+72>>2];J[c+16>>2]=1;I[c+12>>1]=323;w:{if(d>>>0>=65536){I[c+14>>1]=4;break w}I[c+14>>1]=3;d=J[J[a+ +468>>2]+12>>2]&d;if(L[a+456>>1]!=19789)break w;d=d<>2]+12>>2]}J[c+20>>2]=d;c=c+12|0;break m;case 6:b=L[a+88>>1];J[c>>2]=196867;J[c+4>>2]=1;b=J[J[a+468>>2]+12>>2]&b;if(L[a+456>>1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 7:b=L[a+90>>1];J[c>>2]=196870;J[c+4>>2]=1;b=J[J[a+468>>2]+12>>2]&b;if(L[a+456>>1]==19789)b=b<>2]+12>>2];J[c+8>>2]=b;break m;case 3:J[c>>2]=327966;J[c+4>>2]=1;if(!er(a,c,x))break f;J[c+12>>2]=327967;J[c+16>>2]=1;c=c+12|0;if(er(a,c,w))break m;break f; +case 2:J[c>>2]=327962;J[c+4>>2]=1;if(!er(a,c,z))break f;J[c+12>>2]=327963;J[c+16>>2]=1;c=c+12|0;if(er(a,c,y))break m;break f;case 5:case 17:case 18:case 31:f=J[o>>2];j=L[a+98>>1];x:{if(j>>>0>=11){d=Dc(j<<1);if(d){J[e+496>>2]=e+624;ne(a,f,e+496|0);break x}Uc(J[a+628>>2],J[a>>2],77090,0);break f}J[e+512>>2]=e+624;ne(a,f,e+512|0);d=e+704|0;if(!j)break q}p=0;h=L[e+624>>1];k=0;if(j-1>>>0>=7){b=j&65528;l=0;while(1){n=k<<1;I[n+d>>1]=h;I[(n|2)+d>>1]=h;I[(n|4)+d>>1]=h;I[(n|6)+d>>1]=h;I[(n|8)+d>>1]=h;I[(n| +10)+d>>1]=h;I[(n|12)+d>>1]=h;I[(n|14)+d>>1]=h;k=k+8|0;l=l+8|0;if((b|0)!=(l|0))continue;break}}b=j&7;if(b)while(1){I[(k<<1)+d>>1]=h;k=k+1|0;p=p+1|0;if((b|0)!=(p|0))continue;break}J[c+4>>2]=j;I[c+2>>1]=3;I[c>>1]=f;y:{if(j>>>0<=2){b=L[d>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;h=1;if((j|0)!=2)break y;J[c+8>>2]=b|L[d+2>>1];break y}J[c+8>>2]=b;h=1;if((j|0)!=2)break y;J[c+8>>2]=b|L[d+2>>1]<<16;break y}h=Yf(a,c,d)}if((e+704|0)!=(d|0))uc(d);if(h)break m;break f;case 32:case 33:b=7;d=L[a+84>>1];d=(d>>> +3|0)+((d&7)!=0)|0;z:{A:switch(L[a+86>>1]-1|0){case 2:b=(d|0)==4?11:12;break z;case 1:b=d>>>0<2?6:(d|0)==2?8:9;break z;case 0:break A;default:break z}b=d>>>0<=1?1:(d|0)==2?3:4}n=J[o>>2];j=L[a+98>>1];if(j>>>0>=11){d=Dc(j<<3);if(d){J[e+528>>2]=e+616;ne(a,n,e+528|0);break o}Uc(J[a+628>>2],J[a>>2],77545,0);break f}J[e+544>>2]=e+616;ne(a,n,e+544|0);d=e+624|0;if(j)break o;k=1;break n;case 22:case 36:case 38:b=J[o>>2];J[e+564>>2]=v;J[e+560>>2]=e+704;ne(a,b,e+560|0);J[c+4>>2]=2;I[c+2>>1]=3;I[c>>1]=b;b=L[e+ +704>>1];if(L[a+456>>1]==19789){J[c+8>>2]=L[e+706>>1]|b<<16;break m}J[c+8>>2]=b|L[e+706>>1]<<16;break m;case 45:J[c>>2]=131405;d=J[a+228>>2];J[c+4>>2]=d;f=J[a+232>>2];if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m; +J[c+8>>2]=b|K[f+3|0]<<24;break m}if(Yf(a,c,f))break m;break f;case 43:d=2<>1];B:{C:switch(L[a+98>>1]-L[a+168>>1]|0){default:b=3;if(h8(J[a+216>>2],J[a+224>>2],d))break B;case 2:b=3;if(h8(J[a+216>>2],J[a+220>>2],d))break B;break;case 0:case 1:break C}b=1}J[c>>2]=196909;J[c+4>>2]=1<>1];f=J[a+488>>2];d=0;while(1){if(!Yf(a,c,J[(d<<2)+A>>2]))break f;d=d+1|0;if((b|0)!=(d|0))continue;break}J[c+8>>2]=f;J[c+4>>2]=P(b,J[c+4>>2]);break m;case 48:b=J[o>>2];I[c+2>>1]=4;I[c>>1]=b;d=L[a+196>>1];J[c+ +4>>2]=d;b=J[a+200>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];I[a+492>>1]=d;J[a+12>>2]=J[a+12>>2]|8192;break p}if(!Yf(a,c,b))break f;b=J[c+4>>2];if(!b)break m;I[a+492>>1]=b;J[a+12>>2]=J[a+12>>2]|8192;if((b|0)==1)break p;J[a+496>>2]=J[c+8>>2];break m;default:break s}f=J[o>>2];if((f|0)==336){J[e+4>>2]=v;J[e>>2]=e+704;ne(a,336,e);J[c>>2]=196944;J[c+4>>2]=2;b=L[e+704>>1];if(L[a+456>>1]==19789){J[c+8>>2]=L[e+706>>1]|b<<16;break m}J[c+8>>2]=b|L[e+706>>1]<<16;break m}d=L[o+6>>1];I[e+616>>1]=d;I[c>>1]=f;b=J[o+8>> +2];J[c+4>>2]=d;I[c+2>>1]=b;D:{E:switch(b-1|0){case 2:case 7:if(K[o+15|0]){F:{if((d|0)==65533){J[e+52>>2]=e+704;J[e+48>>2]=e+624;ne(a,f,e+48|0);b=J[e+624>>2];break F}J[e+68>>2]=e+704;J[e+64>>2]=e+616;ne(a,f,e- -64|0);b=L[e+616>>1]}J[c+4>>2]=b;f=J[e+704>>2];if(b>>>0>2)break D;d=L[f>>1];if(L[a+456>>1]==19789){d=d<<16;J[c+8>>2]=d;if((b|0)!=2)break m;J[c+8>>2]=d|L[f+2>>1];break m}J[c+8>>2]=d;if((b|0)!=2)break m;J[c+8>>2]=d|L[f+2>>1]<<16;break m}if((d|0)==1){J[e+16>>2]=e+704;ne(a,f,e+16|0);d=L[c+2>>1]<< +2;b=J[d+J[a+468>>2]>>2]&L[e+704>>1];if(L[a+456>>1]==19789)b=b<>2]>>2];J[c+8>>2]=b;break m}J[e+32>>2]=e+704;ne(a,f,e+32|0);f=J[e+704>>2];d=J[c+4>>2];if(d>>>0<=2){b=L[f>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;if((d|0)!=2)break m;J[c+8>>2]=b|L[f+2>>1];break m}J[c+8>>2]=b;if((d|0)!=2)break m;J[c+8>>2]=b|L[f+2>>1]<<16;break m}if(Yf(a,c,f))break m;break f;case 3:case 8:case 12:if(K[o+15|0]){G:{if((d|0)==65533){J[e+116>>2]=e+704;J[e+112>>2]=e+624;ne(a,f,e+112|0);d=J[e+624>>2];break G}J[e+ +132>>2]=e+704;J[e+128>>2]=e+616;ne(a,f,e+128|0);d=L[e+616>>1]}J[c+4>>2]=d;b=J[e+704>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];break m}if(Yf(a,c,b))break m;break f}if((d|0)==1){J[e+80>>2]=c+8;ne(a,f,e+80|0);break m}J[e+96>>2]=e+704;ne(a,f,e+96|0);b=J[e+704>>2];if(J[c+4>>2]==1){J[c+8>>2]=J[b>>2];break m}if(Yf(a,c,b))break m;break f;case 4:case 9:if(K[o+15|0]){H:{if((d|0)==65533){J[e+180>>2]=e+704;J[e+176>>2]=e+624;ne(a,f,e+176|0);b=J[e+624>>2];break H}J[e+196>>2]=e+704;J[e+192>>2]=e+616;ne(a,f,e+192|0);b= +L[e+616>>1]}J[c+4>>2]=b;if(er(a,c,J[e+704>>2]))break m;break f}if((d|0)==1){b=e+704|0;J[e+144>>2]=b;ne(a,f,e+144|0);if(er(a,c,b))break m;break f}J[e+160>>2]=e+704;ne(a,f,e+160|0);if(er(a,c,J[e+704>>2]))break m;break f;case 10:if(K[o+15|0]){I:{if((d|0)==65533){J[e+244>>2]=e+704;J[e+240>>2]=e+624;ne(a,f,e+240|0);d=J[e+624>>2];break I}J[e+260>>2]=e+704;J[e+256>>2]=e+616;ne(a,f,e+256|0);d=L[e+616>>1]}J[c+4>>2]=d;b=J[e+704>>2];if((d|0)==1){J[c+8>>2]=J[b>>2];break m}if(Yf(a,c,b))break m;break f}if((d|0)== +1){J[e+208>>2]=e+704;ne(a,f,e+208|0);if(J[c+4>>2]==1){J[c+8>>2]=J[e+704>>2];break m}if(Yf(a,c,e+704|0))break m;break f}J[e+224>>2]=e+704;ne(a,f,e+224|0);b=J[e+704>>2];if(J[c+4>>2]==1){J[c+8>>2]=J[b>>2];break m}if(Yf(a,c,b))break m;break f;case 11:if(K[o+15|0]){J:{if((d|0)==65533){J[e+308>>2]=e+704;J[e+304>>2]=e+624;ne(a,f,e+304|0);b=J[e+624>>2];break J}J[e+324>>2]=e+704;J[e+320>>2]=e+616;ne(a,f,e+320|0);b=L[e+616>>1]}J[c+4>>2]=b;if(Yf(a,c,J[e+704>>2]))break m;break f}if((d|0)==1){b=e+704|0;J[e+272>> +2]=b;ne(a,f,e+272|0);if(Yf(a,c,b))break m;break f}J[e+288>>2]=e+704;ne(a,f,e+288|0);if(Yf(a,c,J[e+704>>2]))break m;break f;case 1:K:{if(K[o+15|0]){if((d|0)==65533){J[e+356>>2]=e+704;J[e+352>>2]=e+624;ne(a,f,e+352|0);break K}J[e+372>>2]=e+704;J[e+368>>2]=e+616;ne(a,f,e+368|0);break K}J[e+336>>2]=e+704;ne(a,f,e+336|0)}f=J[e+704>>2];d=Yc(f)+1|0;J[c+4>>2]=d;if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<< +8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(Yf(a,c,f))break m;break f;case 0:case 5:if(K[o+15|0]){L:{if((d|0)==65533){J[e+420>>2]=e+704;J[e+416>>2]=e+624;ne(a,f,e+416|0);b=J[e+624>>2];break L}J[e+436>>2]=e+704;J[e+432>>2]=e+616;ne(a,f,e+432|0);b=L[e+616>>1]}J[c+4>>2]=b;f=J[e+704>>2];if(b>>>0<=4){d=H[f|0];if(L[a+456>> +1]==19789){d=d<<24;J[c+8>>2]=d;if(b>>>0<2)break m;d=d|H[f+1|0]<<16;J[c+8>>2]=d;if((b|0)==2)break m;d=d|H[f+2|0]<<8;J[c+8>>2]=d;if((b|0)!=4)break m;J[c+8>>2]=d|H[f+3|0];break m}J[c+8>>2]=d;if(b>>>0<2)break m;d=d|H[f+1|0]<<8;J[c+8>>2]=d;if((b|0)==2)break m;d=d|H[f+2|0]<<16;J[c+8>>2]=d;if((b|0)!=4)break m;J[c+8>>2]=d|K[f+3|0]<<24;break m}if(Yf(a,c,f))break m;break f}if((d|0)==1){J[e+384>>2]=e+704;ne(a,f,e+384|0);d=J[c+4>>2];if(d>>>0<=4){b=H[e+704|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>> +0<2)break m;b=b|H[e+705|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[e+706|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[e+707|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[e+705|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[e+706|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[e+707|0]<<24;break m}if(Yf(a,c,e+704|0))break m;break f}J[e+400>>2]=e+704;ne(a,f,e+400|0);f=J[e+704>>2];d=J[c+4>>2];if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<< +16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(Yf(a,c,f))break m;break f;case 6:break E;default:break m}M:{N:switch(d-65533|0){case 2:J[e+468>>2]=e+704;J[e+464>>2]=e+616;ne(a,f,e+464|0);d=L[e+616>>1];J[c+4>>2]=d;break M;case 0:J[e+484>>2]=e+704;J[e+480>>2]=e+624;ne(a,f,e+ +480|0);d=J[e+624>>2];J[c+4>>2]=d;break M;default:break N}J[e+448>>2]=e+704;ne(a,f,e+448|0);d=J[c+4>>2]}f=J[e+704>>2];if(d>>>0<=4){b=H[f|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<16;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<8;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|H[f+3|0];break m}J[c+8>>2]=b;if(d>>>0<2)break m;b=b|H[f+1|0]<<8;J[c+8>>2]=b;if((d|0)==2)break m;b=b|H[f+2|0]<<16;J[c+8>>2]=b;if((d|0)!=4)break m;J[c+8>>2]=b|K[f+3|0]<<24;break m}if(Yf(a,c,f))break m; +break f}if(!Yf(a,c,f))break f;break m}if(Yf(a,c,d))break m;break f}J[c+4>>2]=j;I[c+2>>1]=3;I[c>>1]=f;b=L[e+704>>1];J[c+8>>2]=L[a+456>>1]==19789?b<<16:b;break m}J[a+496>>2]=(J[a+16>>2]+(c-q|0)|0)+10;break m}k=0;g=O[e+616>>3];i=0;if(j-1>>>0>=7){f=j&65528;p=0;while(1){h=i<<3;O[h+d>>3]=g;O[(h|8)+d>>3]=g;O[(h|16)+d>>3]=g;O[(h|24)+d>>3]=g;O[(h|32)+d>>3]=g;O[(h|40)+d>>3]=g;O[(h|48)+d>>3]=g;O[(h|56)+d>>3]=g;i=i+8|0;p=p+8|0;if((f|0)!=(p|0))continue;break}}f=j&7;if(!f)break n;while(1){O[(i<<3)+d>>3]=g;i=i+ +1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}k=0}h=e+704|0;O:{P:{if(P(b>>>0<=13?J[(b<<2)+91548>>2]:0,j)>>>0<81)break P;h=Dc(P(b>>>0<=13?J[(b<<2)+91548>>2]:0,j));if(h)break P;p=0;Uc(J[a+628>>2],J[a>>2],78183,0);break O}J[c+4>>2]=j;I[c+2>>1]=b;I[c>>1]=n;p=0;Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:switch(b-1|0){case 10:if(k)break Y;k=0;i=0;if(j-1>>>0>=3){f=j&65532;l=0;while(1){N[(i<<2)+h>>2]=O[(i<<3)+d>>3];b=i|1;N[(b<<2)+h>>2]=O[(b<<3)+d>>3];b=i|2;N[(b<<2)+h>>2]=O[(b<<3)+d>>3];b=i|3;N[(b<<2)+h>>2]=O[(b<<3)+d>>3]; +i=i+4|0;l=l+4|0;if((f|0)!=(l|0))continue;break}}b=j&3;if(b)while(1){N[(i<<2)+h>>2]=O[(i<<3)+d>>3];i=i+1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}if((j|0)!=1)break Y;J[c+8>>2]=J[h>>2];break R;case 3:break S;case 7:break T;case 2:break U;case 5:break V;case 0:break W;case 11:break X;case 8:break Z;default:break Q}_:{if(k)break _;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<2)+h|0;g=O[(i<<3)+d>>3];$:{if(R(g)<2147483648){b=~~g;break $}b=-2147483648}J[f>>2]=b;f=i|1;m=(f<<2)+h|0;g=O[(f<<3)+d>>3]; +aa:{if(R(g)<2147483648){b=~~g;break aa}b=-2147483648}J[m>>2]=b;f=i|2;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];ba:{if(R(g)<2147483648){b=~~g;break ba}b=-2147483648}J[m>>2]=b;f=i|3;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];ca:{if(R(g)<2147483648){b=~~g;break ca}b=-2147483648}J[m>>2]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=(i<<2)+h|0;g=O[(i<<3)+d>>3];da:{if(R(g)<2147483648){b=~~g;break da}b=-2147483648}J[j>>2]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}if(J[c+4>>2]!=1)break _;J[c+8>>2]= +J[h>>2];break R}if(Yf(a,c,h))break R;break Q}if(Yf(a,c,h))break R;break Q}if(!Yf(a,c,d))break Q;break R}if(!k){k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=h+i|0;g=O[(i<<3)+d>>3];ea:{if(g<4294967296&g>=0){b=~~g>>>0;break ea}b=0}H[f|0]=b;f=i|1;m=f+h|0;g=O[(f<<3)+d>>3];fa:{if(g<4294967296&g>=0){b=~~g>>>0;break fa}b=0}H[m|0]=b;f=i|2;m=f+h|0;g=O[(f<<3)+d>>3];ga:{if(g<4294967296&g>=0){b=~~g>>>0;break ga}b=0}H[m|0]=b;f=i|3;m=f+h|0;g=O[(f<<3)+d>>3];ha:{if(g<4294967296&g>=0){b=~~g>>>0;break ha}b=0}H[m| +0]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=h+i|0;g=O[(i<<3)+d>>3];ia:{if(g<4294967296&g>=0){b=~~g>>>0;break ia}b=0}H[j|0]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}j=J[c+4>>2]}if(j>>>0<=4){b=H[h|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<16;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<8;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|H[h+3|0];break R}J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<8;J[c+8>>2]=b;if((j|0)==2)break R; +b=b|H[h+2|0]<<16;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|K[h+3|0]<<24;break R}if(Yf(a,c,h))break R;break Q}if(!k){k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=h+i|0;g=O[(i<<3)+d>>3];ja:{if(R(g)<2147483648){b=~~g;break ja}b=-2147483648}H[f|0]=b;f=i|1;m=f+h|0;g=O[(f<<3)+d>>3];ka:{if(R(g)<2147483648){b=~~g;break ka}b=-2147483648}H[m|0]=b;f=i|2;m=f+h|0;g=O[(f<<3)+d>>3];la:{if(R(g)<2147483648){b=~~g;break la}b=-2147483648}H[m|0]=b;f=i|3;m=f+h|0;g=O[(f<<3)+d>>3];ma:{if(R(g)<2147483648){b=~~g;break ma}b= +-2147483648}H[m|0]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=h+i|0;g=O[(i<<3)+d>>3];na:{if(R(g)<2147483648){b=~~g;break na}b=-2147483648}H[j|0]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}j=J[c+4>>2]}if(j>>>0<=4){b=H[h|0];if(L[a+456>>1]==19789){b=b<<24;J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<16;J[c+8>>2]=b;if((j|0)==2)break R;b=b|H[h+2|0]<<8;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|H[h+3|0];break R}J[c+8>>2]=b;if(j>>>0<2)break R;b=b|H[h+1|0]<<8;J[c+8>>2]= +b;if((j|0)==2)break R;b=b|H[h+2|0]<<16;J[c+8>>2]=b;if((j|0)!=4)break R;J[c+8>>2]=b|K[h+3|0]<<24;break R}if(Yf(a,c,h))break R;break Q}oa:{if(k)break oa;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<1)+h|0;g=O[(i<<3)+d>>3];pa:{if(g<4294967296&g>=0){b=~~g>>>0;break pa}b=0}I[f>>1]=b;f=i|1;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];qa:{if(g<4294967296&g>=0){b=~~g>>>0;break qa}b=0}I[m>>1]=b;f=i|2;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];ra:{if(g<4294967296&g>=0){b=~~g>>>0;break ra}b=0}I[m>>1]=b;f=i|3;m=(f<<1)+h|0;g=O[(f<< +3)+d>>3];sa:{if(g<4294967296&g>=0){b=~~g>>>0;break sa}b=0}I[m>>1]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(!f)break oa;while(1){l=(i<<1)+h|0;g=O[(i<<3)+d>>3];ta:{if(g<4294967296&g>=0){b=~~g>>>0;break ta}b=0}I[l>>1]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}if(j>>>0<=2){b=L[h>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1];break R}J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1]<<16;break R}if(Yf(a,c,h))break R;break Q}ua:{if(k)break ua; +k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<1)+h|0;g=O[(i<<3)+d>>3];va:{if(R(g)<2147483648){b=~~g;break va}b=-2147483648}I[f>>1]=b;f=i|1;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];wa:{if(R(g)<2147483648){b=~~g;break wa}b=-2147483648}I[m>>1]=b;f=i|2;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];xa:{if(R(g)<2147483648){b=~~g;break xa}b=-2147483648}I[m>>1]=b;f=i|3;m=(f<<1)+h|0;g=O[(f<<3)+d>>3];ya:{if(R(g)<2147483648){b=~~g;break ya}b=-2147483648}I[m>>1]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(!f)break ua; +while(1){l=(i<<1)+h|0;g=O[(i<<3)+d>>3];za:{if(R(g)<2147483648){b=~~g;break za}b=-2147483648}I[l>>1]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}if(j>>>0<=2){b=L[h>>1];if(L[a+456>>1]==19789){b=b<<16;J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1];break R}J[c+8>>2]=b;if((j|0)!=2)break R;J[c+8>>2]=b|L[h+2>>1]<<16;break R}if(Yf(a,c,h))break R;break Q}Aa:{if(k)break Aa;k=0;i=0;if(j-1>>>0>=3){n=j&65532;l=0;while(1){f=(i<<2)+h|0;g=O[(i<<3)+d>>3];Ba:{if(g<4294967296&g>=0){b=~~g>>>0;break Ba}b= +0}J[f>>2]=b;f=i|1;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Ca:{if(g<4294967296&g>=0){b=~~g>>>0;break Ca}b=0}J[m>>2]=b;f=i|2;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Da:{if(g<4294967296&g>=0){b=~~g>>>0;break Da}b=0}J[m>>2]=b;f=i|3;m=(f<<2)+h|0;g=O[(f<<3)+d>>3];Ea:{if(g<4294967296&g>=0){b=~~g>>>0;break Ea}b=0}J[m>>2]=b;i=i+4|0;l=l+4|0;if((n|0)!=(l|0))continue;break}}f=j&3;if(f)while(1){j=(i<<2)+h|0;g=O[(i<<3)+d>>3];Fa:{if(g<4294967296&g>=0){b=~~g>>>0;break Fa}b=0}J[j>>2]=b;i=i+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}if(J[c+ +4>>2]!=1)break Aa;J[c+8>>2]=J[h>>2];break R}if(!Yf(a,c,h))break Q}p=1}if((e+704|0)==(h|0))break O;uc(h)}if((e+624|0)!=(d|0))uc(d);if(!p)break f}c=c+12|0;f=L[o+12>>1];if((f|0)==65)break k;d=(e+592|0)+(f>>>3&8188)|0;b=J[d>>2];B=d,C=zEb(-2,f)&b,J[B>>2]=C}t=t+1|0;if((u|0)!=(t|0))continue;break}}I[e+624>>1]=r;J[e+704>>2]=J[a+20>>2];if(K[a+12|0]&128){if(r&65535){d=q;while(1){jt(d,2);Pp(d+4|0,2);d=d+12|0;c=L[e+624>>1]-1|0;I[e+624>>1]=c;if(c&65535)continue;break}}I[e+624>>1]=r;c=K[e+625|0];H[e+625|0]=K[e+ +624|0];H[e+624|0]=c;Rp(e+704|0)}kc[J[a+640>>2]](J[a+628>>2],J[a+16>>2],0)|0;if((kc[J[a+636>>2]](J[a+628>>2],e+624|0,2)|0)!=2){Uc(J[a+628>>2],J[a>>2],73439,0);break f}if((kc[J[a+636>>2]](J[a+628>>2],q,s)|0)!=(s|0)){Uc(J[a+628>>2],J[a>>2],74089,0);break f}if((kc[J[a+636>>2]](J[a+628>>2],e+704|0,4)|0)!=4){Uc(J[a+628>>2],J[a>>2],71550,0);break f}MH(a);J[a+12>>2]=J[a+12>>2]&-9;kc[J[a+572>>2]](a);KA(a);J[a+16>>2]=0;J[a+20>>2]=0;J[a+480>>2]=-1;J[a+484>>2]=0;J[a+472>>2]=-1;uc(q);c=1;break b}uc(q);c=0;break b}Uc(J[a+ +628>>2],J[a>>2],72568,0);c=0}fc=e+784|0;if(!c)break a}kc[J[a+572>>2]](a);MH(a);c=J[a+24>>2];if(c)uc(c);while(1){c=J[a+680>>2];if(c){J[a+680>>2]=J[c>>2];uc(J[c+8>>2]);uc(c);continue}break}c=J[a+596>>2];if(!(!c|!(K[a+13|0]&2)))uc(c);if(K[a+13|0]&8)kc[J[a+624>>2]](J[a+628>>2],J[a+612>>2],J[a+616>>2]);c=J[a+660>>2];if(c){b=0;while(1){d=J[J[a+656>>2]+(b<<2)>>2];Ga:{if(L[d+12>>1]!=65)break Ga;q=J[d+16>>2];if(ud(69923,q,4))break Ga;uc(q);uc(d);c=J[a+660>>2]}b=b+1|0;if(b>>>0>>0)continue;break}uc(J[a+656>> +2])}uc(a)}function $B(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=fc-144|0;fc=e;h=fc-32|0;fc=h;H[a+80|0]=0;J[a>>2]=851700;J[a+32>>2]=0;J[a+4>>2]=0;f=Ac(a+88|0,0,72);J[699344]=0;J[h+16>>2]=13;d=h+16|0;aa(3488,c|0,d|0)|0;g=J[699344];J[699344]=0;o=a+144|0;a:{b:{c:{d:{e:{if((g|0)==1)break e;J[a+36>>2]=J[h+24>>2];J[699344]=0;$(3370,d|0);g=J[699344];J[699344]=0;if((g|0)==1)break e;J[699344]=0;d=ga(3490,c|0,808021,d|0)|0;g=J[699344];J[699344]=0;if((g| +0)==1)break e;if(J[d>>2]==1)J[a+32>>2]=J[h+24>>2];J[699344]=0;g=h+16|0;$(3370,g|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;d=_(3498,c|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break e;j=d-1|0;J[a+40>>2]=d>>>0>=j>>>0?j:0;J[699344]=0;ma(3499,c|0,a+48|0,a+56|0,a- -64|0,a+72|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;d=J[b+28>>2];j=J[a+40>>2];J[699344]=0;d=aa(3446,d|0,j+1|0)|0;j=J[699344];J[699344]=0;f:{g:{h:{i:{if((j|0)!=1){d=J[d+12>>2];m=O[d+56>>3];O[a+16>>3]=m;t=O[d+32>>3];O[a+24>> +3]=t;v=O[a+56>>3];O[a+56>>3]=m-O[a+72>>3];O[a+72>>3]=m-v;O[a+48>>3]=O[a+48>>3]-t;O[a+64>>3]=O[a+64>>3]-t;J[699344]=0;d=ga(3490,c|0,851745,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;if(J[d>>2]==3){J[a+4>>2]=J[a+4>>2]|1;J[699344]=0;g=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;d=aa(3354,g|0,J[h+24>>2])|0;j=J[699344];J[699344]=0;if((j|0)==1)break h;g=J[d+4>>2];j=J[d>>2];J[699344]=0;ca(3447,h|0,j|0,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break g;if(H[a+119|0]<0)uc(J[a+108>> +2]);g=J[h+4>>2];J[a+108>>2]=J[h>>2];J[a+112>>2]=g;J[a+116>>2]=J[h+8>>2];uc(ld(d))}J[699344]=0;d=h+16|0;$(3370,d|0);g=J[699344];J[699344]=0;if((g|0)==1)break c;J[699344]=0;d=ga(3490,c|0,784290,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;if(J[d>>2]==3)break f;break d}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;uc(g);break b}d=Z()|0;break b}J[a+4>>2]=J[a+4>>2]|2;J[699344]=0;g=_(4,12)|0;d=J[699344];J[699344]=0;j:{k:{if((d|0)!=1){J[699344]=0;d=aa(3354,g|0,J[h+24>>2])|0;j=J[699344];J[699344]=0;if((j| +0)==1)break k;g=J[d+4>>2];j=J[d>>2];J[699344]=0;ca(3447,h|0,j|0,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break j;if(H[a+107|0]<0)uc(J[a+96>>2]);g=J[h+4>>2];J[a+96>>2]=J[h>>2];J[a+100>>2]=g;J[a+104>>2]=J[h+8>>2];uc(ld(d));break d}d=Z()|0;break b}d=Z()|0;uc(g);break b}d=Z()|0;break b}d=Z()|0;break b}J[699344]=0;d=h+16|0;$(3370,d|0);g=J[699344];J[699344]=0;if((g|0)==1)break c;J[699344]=0;d=ga(3490,c|0,851898,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;l:{if(J[d>>2]==7){J[h>>2]=13;H[a+80|0]=0; +J[a+4>>2]=J[a+4>>2]|4;J[699344]=0;d=ha(3368,J[h+24>>2],778990,h|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;m:{if(J[d>>2]!=4)break m;if(Ic(J[d+8>>2],828360))break m;H[a+80|0]=1}J[699344]=0;$(3370,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;J[f>>2]=0;J[f+4>>2]=0;J[699344]=0;d=ha(3368,J[h+24>>2],821242,h|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;if(J[d>>2]-3>>>0>=4294967294)O[f>>3]=J[h>>2]==1?+J[h+8>>2]:O[h+8>>3];J[699344]=0;$(3370,h|0);f=J[699344];J[699344]=0;if((f|0)==1)break l}J[699344]= +0;f=h+16|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;f=ga(3490,c|0,828360,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;n:{o:{p:{q:{r:{s:{if(J[f>>2]!=6)break s;J[a+4>>2]=J[a+4>>2]|8;r=J[J[h+24>>2]+12>>2];if((r|0)<=0)break s;j=0;while(1){J[h>>2]=13;J[699344]=0;f=ha(3449,J[h+24>>2],j|0,h|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;m=0;m=J[f>>2]-3>>>0>=4294967294?J[h>>2]==1?+J[h+8>>2]:O[h+8>>3]:m;d=J[a+148>>2];n=J[a+152>>2];t:{if(d>>>0>>0){O[d>>3]=m;J[a+148>> +2]=d+8;break t}u:{v:{f=J[o>>2];q=d-f>>3;g=q+1|0;w:{if(g>>>0>=536870912){J[699344]=0;$(2494,o|0);b=J[699344];J[699344]=0;if((b|0)==1)break w;break n}n=n-f|0;k=n>>2;n=n>>>0>=2147483640?536870911:g>>>0>>0?k:g;if(!n){k=0;break u}if(n>>>0<536870912)break v;J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break n}d=Z()|0;break b}J[699344]=0;k=_(4,n<<3)|0;g=J[699344];J[699344]=0;if((g|0)==1)break q}g=(q<<3)+k|0;O[g>>3]=m;q=g+8|0;if((d|0)!=(f|0))while(1){g=g-8|0;d=d-8|0;O[g>>3]=O[d>>3];if((d|0)!= +(f|0))continue;break}J[a+152>>2]=(n<<3)+k;J[a+148>>2]=q;J[a+144>>2]=g;if(!f)break t;uc(f)}J[699344]=0;$(3370,h|0);f=J[699344];J[699344]=0;if((f|0)==1)break r;j=j+1|0;if((r|0)!=(j|0))continue;break}}J[699344]=0;f=h+16|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[a+156>>2]=0;J[699344]=0;d=ga(3490,c|0,852007,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;d=J[d>>2]==7;x:{if(!d){J[699344]=0;$(3370,f|0);g=J[699344];J[699344]=0;if((g|0)==1)break c;J[699344]=0;f=ga(3490,c|0,852047,f|0)| +0;g=J[699344];J[699344]=0;if((g|0)==1)break c;if(J[f>>2]!=6|J[J[h+24>>2]+12>>2]<3)break x}J[699344]=0;f=ga(3500,d|0,h+16|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;J[a+156>>2]=f}J[699344]=0;$(3370,h+16|0);f=J[699344];J[699344]=0;if((f|0)==1)break c;f=J[a+156>>2];if(!(!f|K[f|0]==5))J[a+4>>2]=J[a+4>>2]|16;J[699344]=0;f=ga(3490,c|0,852131,h+16|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(J[f>>2]==3)break p;break o}d=Z()|0;break b}d=Z()|0;break b}J[a+4>>2]=J[a+4>>2]|32;J[699344]=0;g= +_(4,12)|0;f=J[699344];J[699344]=0;y:{z:{if((f|0)!=1){J[699344]=0;f=aa(3354,g|0,J[h+24>>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break z;d=J[f+4>>2];g=J[f>>2];J[699344]=0;ca(3447,h|0,g|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break y;if(H[a+131|0]<0)uc(J[a+120>>2]);d=J[h+4>>2];J[a+120>>2]=J[h>>2];J[a+124>>2]=d;J[a+128>>2]=J[h+8>>2];uc(ld(f));break o}d=Z()|0;break b}d=Z()|0;uc(g);break b}d=Z()|0;break b}J[699344]=0;f=h+16|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;f=ga(3490, +c|0,807124,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!(!J[J[h+24>>2]+16>>2]|J[f>>2]!=7))J[a+4>>2]=J[a+4>>2]|64;J[699344]=0;f=h+16|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;f=ga(3490,c|0,852295,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;A:{if(J[f>>2]!=3)break A;J[a+4>>2]=J[a+4>>2]|128;J[699344]=0;g=_(4,12)|0;f=J[699344];J[699344]=0;B:{C:{if((f|0)!=1){J[699344]=0;f=aa(3354,g|0,J[h+24>>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break C;d=J[f+4>>2];g=J[f>> +2];J[699344]=0;ca(3447,h|0,g|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break B;if(H[a+143|0]<0)uc(J[a+132>>2]);d=J[h+4>>2];J[a+132>>2]=J[h>>2];J[a+136>>2]=d;J[a+140>>2]=J[h+8>>2];uc(ld(f));break A}d=Z()|0;break b}d=Z()|0;uc(g);break b}d=Z()|0;break b}J[699344]=0;$(3370,h+16|0);f=J[699344];J[699344]=0;if((f|0)==1)break c;fc=h+32|0;break a}B()}d=Z()|0;break b}d=Z()|0}b=J[o>>2];if(b){J[a+148>>2]=b;uc(b)}if(H[a+143|0]<0)uc(J[a+132>>2]);if(H[a+131|0]<0)uc(J[a+120>>2]);if(H[a+119|0]<0)uc(J[a+108>>2]); +if(H[a+107|0]<0)uc(J[a+96>>2]);ba(d|0);B()}f=a;J[a+192>>2]=0;J[a+196>>2]=0;J[a>>2]=837768;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;r=a+216|0;a=r;J[a>>2]=0;J[a+4>>2]=0;J[f+224>>2]=0;J[f+228>>2]=0;J[f+232>>2]=0;J[f+236>>2]=0;n=Ac(f+244|0,0,96);J[e+128>>2]=13;J[e+112>>2]=13;d=J[b+24>>2];J[699344]=0;a=e+128|0;aa(3488,c|0,a|0)|0;h=J[699344];J[699344]=0;o=f+228|0;q=f+204|0;u=f+192|0;D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{if((h|0)==1)break N;J[699344]=0;ha(3372,a|0,d|0,e+112|0,0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break N;J[699344]=0;$(3370,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break N;J[f+176>>2]=0;J[f+184>>2]=0;J[f+188>>2]=0;J[699344]=0;h=aa(3493,c|0,e+108|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break L;j=J[e+108>>2];if((j|0)<=0)break M;while(1){O:{p=J[J[h>>2]+(i<<2)>>2];a=J[f+196>>2];P:{if((a|0)!=J[f+200>>2]){O[a>>3]=O[p>>3];J[f+196>>2]=a+8;break P}Q:{R:{k=J[u>>2];d=a-k|0;s=d>>3;g=s+1|0;S:{if(g>>>0>=536870912){J[699344]=0;$(2494,u|0);a=J[699344];J[699344]=0;if((a|0)==1)break S; +break F}l=d>>2;l=d>>>0>=2147483640?536870911:g>>>0>>0?l:g;if(!l){g=0;break Q}if(l>>>0<536870912)break R;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break F}a=Z()|0;break D}J[699344]=0;g=_(4,l<<3)|0;d=J[699344];J[699344]=0;if((d|0)==1)break O}d=(s<<3)+g|0;O[d>>3]=O[p>>3];p=d+8|0;if((a|0)!=(k|0))while(1){d=d-8|0;a=a-8|0;O[d>>3]=O[a>>3];if((a|0)!=(k|0))continue;break}J[f+200>>2]=(l<<3)+g;J[f+196>>2]=p;J[f+192>>2]=d;if(!k)break P;uc(k);j=J[e+108>>2]}i=i+1|0;if((j|0)>(i|0))continue;break M}break}a= +Z()|0;break D}a=Z()|0;break D}a=0;d=J[h+8>>2];if((d|0)>0)while(1){i=J[J[h>>2]+(a<<2)>>2];if(i){uc(i);d=J[h+8>>2]}a=a+1|0;if((d|0)>(a|0))continue;break}uc(ld(h));H[f+240|0]=0;J[699344]=0;a=ga(3490,c|0,822633,e+128|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break L;if(J[a>>2]==1)H[f+240|0]=J[e+136>>2];J[699344]=0;$(3370,e+128|0);a=J[699344];J[699344]=0;if((a|0)==1)break L;a=J[c+40>>2];H[f+160|0]=26;if(a>>>0<10)H[f+160|0]=K[a+853833|0];a=J[c+48>>2];J[f+8>>2]=0;J[f+164>>2]=a;J[699344]=0;ma(3494,e+88|0, +f|0,c|0,822888,0);a=J[699344];J[699344]=0;if((a|0)==1)break H;if(H[f+255|0]<0)uc(J[n>>2]);a=J[e+92>>2];J[n>>2]=J[e+88>>2];J[n+4>>2]=a;J[n+8>>2]=J[e+96>>2];J[699344]=0;ma(3494,e+88|0,f|0,c|0,823157,1);a=J[699344];J[699344]=0;if((a|0)==1)break I;if(H[f+267|0]<0)uc(J[f+256>>2]);a=J[e+92>>2];J[f+256>>2]=J[e+88>>2];J[f+260>>2]=a;J[f+264>>2]=J[e+96>>2];J[699344]=0;a=ga(3490,c|0,816151,e+128|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break G;if(J[a>>2]!=4)break J;J[f+8>>2]=J[f+8>>2]|8;h=J[e+136>>2];a=Yc(h); +if(a>>>0<2147483632)break K;J[699344]=0;$(3030,e+88|0);a=J[699344];J[699344]=0;if((a|0)!=1)break F;break E}a=Z()|0;break D}T:{if(a>>>0<=10){H[e+99|0]=a;d=e+88|0;break T}J[699344]=0;i=(a|15)+1|0;d=_(4,i|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break E;J[e+88>>2]=d;J[e+92>>2]=a;J[e+96>>2]=i|-2147483648}w=cd(d,h,a)+a|0,x=0,H[w|0]=x;H[f+241|0]=1;d=K[e+99|0];h=d<<24>>24;a=(h|0)<0;U:{if(((a?J[e+92>>2]:d)|0)!=1)break U;a=K[(a?J[e+88>>2]:e+88|0)|0]-78|0;d=a&255;if(d>>>0>=7|!(71>>>d&1))break U;d=(a&255)<< +3;a=d&31;if((d&63)>>>0>=32)a=131072>>>a|0;else a=((1<>>a;H[f+241|0]=a}if((h|0)>=0)break J;uc(J[e+88>>2])}J[699344]=0;a=e+128|0;$(3370,a|0);d=J[699344];J[699344]=0;if((d|0)==1)break G;J[699344]=0;J[e+88>>2]=13;d=ga(3490,c|0,813605,e+88|0)|0;h=J[699344];J[699344]=0;V:{if((h|0)==1)break V;W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{if(J[d>>2]==7){J[699344]=0;a=ha(3368,J[e+96>>2],823972,a|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break V;ia:{if(J[a>>2]!=6)break ia;J[f+ +8>>2]=J[f+8>>2]|32;k=J[J[e+136>>2]+12>>2];if((k|0)<=0)break ia;i=0;while(1){J[e+72>>2]=13;J[699344]=0;a=ha(3449,J[e+136>>2],i|0,e+72|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break X;m=0;m=J[a>>2]-3>>>0>=4294967294?J[e+72>>2]==1?+J[e+80>>2]:O[e+80>>3]:m;a=J[f+208>>2];h=J[f+212>>2];ja:{if(a>>>0>>0){O[a>>3]=m;J[f+208>>2]=a+8;break ja}ka:{la:{g=J[q>>2];l=a-g>>3;d=l+1|0;ma:{if(d>>>0>=536870912){J[699344]=0;$(2494,q|0);break ma}h=h-g|0;j=h>>2;j=h>>>0>=2147483640?536870911:d>>>0>>0?j:d;if(!j){h= +0;break ka}if(j>>>0<536870912)break la;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break F;a=Z()|0;break D}J[699344]=0;h=_(4,j<<3)|0;d=J[699344];J[699344]=0;if((d|0)==1)break X}d=(l<<3)+h|0;O[d>>3]=m;l=d+8|0;if((a|0)!=(g|0))while(1){d=d-8|0;a=a-8|0;O[d>>3]=O[a>>3];if((a|0)!=(g|0))continue;break}J[f+212>>2]=(j<<3)+h;J[f+208>>2]=l;J[f+204>>2]=d;if(!g)break ja;uc(g)}J[699344]=0;$(3370,e+72|0);a=J[699344];J[699344]=0;if((a|0)==1)break W;i=i+1|0;if((k|0)!=(i|0))continue;break}}J[699344]=0; +a=e+128|0;$(3370,a|0);d=J[699344];J[699344]=0;if((d|0)==1)break V;J[699344]=0;a=ha(3368,J[e+96>>2],825256,a|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break V;if(J[a>>2]==1){J[f+8>>2]=J[f+8>>2]|64;J[f+168>>2]=J[e+136>>2]}J[699344]=0;a=e+128|0;$(3370,a|0);d=J[699344];J[699344]=0;if((d|0)==1)break V;J[699344]=0;a=ha(3368,J[e+96>>2],825645,a|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break V;na:{if(J[a>>2]!=6)break na;J[f+8>>2]=J[f+8>>2]|128;k=J[J[e+136>>2]+12>>2];if((k|0)<=0)break na;i=0;while(1){J[e+ +72>>2]=13;J[699344]=0;a=ha(3449,J[e+136>>2],i|0,e+72|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break ga;m=0;m=J[a>>2]-3>>>0>=4294967294?J[e+72>>2]==1?+J[e+80>>2]:O[e+80>>3]:m;a=J[f+220>>2];h=J[f+224>>2];oa:{if(a>>>0>>0){O[a>>3]=m;J[f+220>>2]=a+8;break oa}pa:{qa:{g=J[r>>2];l=a-g>>3;d=l+1|0;ra:{if(d>>>0>=536870912){J[699344]=0;$(2494,r|0);break ra}h=h-g|0;j=h>>2;j=h>>>0>=2147483640?536870911:d>>>0>>0?j:d;if(!j){h=0;break pa}if(j>>>0<536870912)break qa;J[699344]=0;ka(209)}a=J[699344];J[699344]= +0;if((a|0)!=1)break F;a=Z()|0;break D}J[699344]=0;h=_(4,j<<3)|0;d=J[699344];J[699344]=0;if((d|0)==1)break ga}d=(l<<3)+h|0;O[d>>3]=m;l=d+8|0;if((a|0)!=(g|0))while(1){d=d-8|0;a=a-8|0;O[d>>3]=O[a>>3];if((a|0)!=(g|0))continue;break}J[f+224>>2]=(j<<3)+h;J[f+220>>2]=l;J[f+216>>2]=d;if(!g)break oa;uc(g)}J[699344]=0;$(3370,e+72|0);a=J[699344];J[699344]=0;if((a|0)==1)break ha;i=i+1|0;if((k|0)!=(i|0))continue;break}}J[699344]=0;$(3370,e+128|0);a=J[699344];J[699344]=0;if((a|0)==1)break V}J[699344]=0;$(3370, +e+88|0);a=J[699344];J[699344]=0;if((a|0)==1)break V;J[699344]=0;a=e+128|0;d=ha(3368,J[e+120>>2],825884,a|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break V;sa:{if(!d)break sa;J[699344]=0;ca(3489,e+72|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break ca;if(H[f+279|0]<0)uc(J[f+268>>2]);a=J[e+76>>2];J[f+268>>2]=J[e+72>>2];J[f+272>>2]=a;J[f+276>>2]=J[e+80>>2];a=K[f+279|0];if(!(a<<24>>24<0?J[f+272>>2]:a))break sa;J[f+8>>2]=J[f+8>>2]|256}J[699344]=0;a=e+128|0;$(3370,a|0);d=J[699344];J[699344]=0;if((d| +0)==1)break V;J[699344]=0;a=ga(3495,J[e+120>>2],777471,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break V;if(J[a>>2]==9){J[f+172>>2]=J[e+136>>2];J[f+8>>2]=J[f+8>>2]|131072}J[699344]=0;$(3370,e+128|0);a=J[699344];J[699344]=0;if((a|0)==1)break V;J[699344]=0;ma(3491,e+72|0,f|0,e+112|0,776806,18);a=J[699344];J[699344]=0;if((a|0)==1)break ea;if(H[f+291|0]<0)uc(J[f+280>>2]);a=J[e+76>>2];J[f+280>>2]=J[e+72>>2];J[f+284>>2]=a;J[f+288>>2]=J[e+80>>2];J[699344]=0;J[e+72>>2]=13;a=e+72|0;c=ga(3490,c|0,818771,a| +0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Z;if(J[c>>2]!=7)break _;I[e+56>>1]=65;J[699344]=0;H[e+67|0]=1;c=aa(3452,b|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break aa;if(!c)break $;a=c+4|0;if((a|0)==(e+56|0))break ba;h=K[e+67|0];d=h<<24>>24;if(H[c+15|0]<0)break fa;if((d|0)<0)break da;d=J[e+60>>2];J[a>>2]=J[e+56>>2];J[a+4>>2]=d;J[a+8>>2]=J[e- -64>>2];break ba}a=Z()|0;break D}a=Z()|0;break D}J[699344]=0;k=a;a=(d|0)<0;ga(3483,k|0,(a?J[e+56>>2]:e+56|0)|0,(a?J[e+60>>2]:h)|0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break aa;break ba}a=Z()|0;break D}J[699344]=0;ga(3484,a|0,J[e+56>>2],J[e+60>>2])|0;a=J[699344];J[699344]=0;if((a|0)!=1)break ba;break aa}a=Z()|0;break D}a=J[f+232>>2];if((a|0)!=J[f+236>>2]){J[a>>2]=c;J[f+232>>2]=a+4;break $}g=J[o>>2];d=a-g|0;j=d>>2;h=j+1|0;if(h>>>0>=1073741824){J[699344]=0;$(3496,o|0);a=J[699344];J[699344]=0;if((a|0)!=1)break F;break aa}i=d>>1;i=d>>>0>=2147483644?1073741823:h>>>0>>0?i:h;ta:{if(!i){h=0;break ta}if(i>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344]; +J[699344]=0;if((a|0)!=1)break F;break aa}J[699344]=0;h=_(4,i<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break aa}d=(j<<2)+h|0;J[d>>2]=c;c=d+4|0;if((a|0)!=(g|0)){while(1){d=d-4|0;a=a-4|0;J[d>>2]=J[a>>2];if((a|0)!=(g|0))continue;break}a=J[o>>2]}J[f+236>>2]=(i<<2)+h;J[f+232>>2]=c;J[f+228>>2]=d;if(!a)break $;uc(a);break $}a=Z()|0;if(H[e+67|0]>=0)break D;uc(J[e+56>>2]);break D}if(H[e+67|0]>=0)break _;uc(J[e+56>>2])}J[699344]=0;$(3370,e+72|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Y}a=Z()|0;break D}J[e+ +56>>2]=13;J[e+40>>2]=13;J[699344]=0;J[e+24>>2]=13;a=ha(3368,J[e+120>>2],777471,e+40|0,0)|0;c=J[699344];J[699344]=0;ua:{va:{wa:{xa:{ya:{za:{if((c|0)!=1){j=0;p=J[a>>2];if((p|0)==7){J[699344]=0;a=ha(3368,J[e+48>>2],827383,e+56|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break va;j=J[a>>2]==7}J[699344]=0;a=e+56|0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break va;J[699344]=0;a=ha(3368,J[e+120>>2],827383,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break va;Aa:{if(J[a>>2]!=7)break Aa;a=J[e+64>>2]; +if(J[a+16>>2]<=0)break Aa;c=0;while(1){J[699344]=0;a=ga(3497,a|0,c|0,e+72|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break wa;Ba:{if(J[a>>2]==7){J[699344]=0;d=J[J[J[e+64>>2]+4>>2]+(c<<5)>>2];a=J[699344];J[699344]=0;if((a|0)==1)break ua;a=Yc(d);if(a>>>0>=2147483632){J[699344]=0;$(3030,e+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break F;a=Z()|0;break D}Ca:{if(a>>>0<=10){H[e+23|0]=a;i=e+12|0;break Ca}J[699344]=0;h=(a|15)+1|0;i=_(4,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ua;J[e+12>>2]=i;J[e+16>> +2]=a;J[e+20>>2]=h|-2147483648}w=cd(i,d,a)+a|0,x=0,H[w|0]=x;Da:{Ea:{if(!j)break Ea;d=K[e+23|0];a=d<<24>>24<0;if(((a?J[e+16>>2]:d)|0)!=1)break Ea;a=K[(a?J[e+12>>2]:e+12|0)|0]-67&255;if(a>>>0>=20)break Ea;h=0;if(524553>>>a&1)break Da}J[699344]=0;i=aa(3452,b|0,e+72|0)|0;a=J[699344];J[699344]=0;Fa:{if((a|0)==1)break Fa;h=1;if(!i)break Da;a=i+4|0;Ga:{if((a|0)==(e+12|0))break Ga;g=K[e+23|0];d=g<<24>>24;Ha:{if(H[i+15|0]>=0){if((d|0)<0)break Ha;d=J[e+16>>2];J[a>>2]=J[e+12>>2];J[a+4>>2]=d;J[a+8>>2]=J[e+20>> +2];break Ga}J[699344]=0;k=a;a=(d|0)<0;ga(3483,k|0,(a?J[e+12>>2]:e+12|0)|0,(a?J[e+16>>2]:g)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fa;break Ga}J[699344]=0;ga(3484,a|0,J[e+12>>2],J[e+16>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break Fa}a=J[f+232>>2];if((a|0)!=J[f+236>>2]){J[a>>2]=i;J[f+232>>2]=a+4;break Da}Ia:{Ja:{l=J[o>>2];d=a-l|0;s=d>>2;g=s+1|0;Ka:{if(g>>>0>=1073741824){J[699344]=0;$(3496,o|0);break Ka}k=d>>1;k=d>>>0>=2147483644?1073741823:g>>>0>>0?k:g;if(!k){g=0;break Ia}if(k>>>0<1073741824)break Ja; +J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break F;break Fa}J[699344]=0;g=_(4,k<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Fa}d=(s<<2)+g|0;J[d>>2]=i;i=d+4|0;if((a|0)!=(l|0)){while(1){d=d-4|0;a=a-4|0;J[d>>2]=J[a>>2];if((a|0)!=(l|0))continue;break}a=J[o>>2]}J[f+236>>2]=(k<<2)+g;J[f+232>>2]=i;J[f+228>>2]=d;if(!a)break Da;uc(a);break Da}a=Z()|0;if(H[e+23|0]>=0)break D;uc(J[e+12>>2]);break D}if(H[e+23|0]<0)uc(J[e+12>>2]);if(!h)break Ba}J[699344]=0;$(3370,e+72|0);a=J[699344];J[699344]= +0;if((a|0)==1)break wa}c=c+1|0;a=J[e+64>>2];if((c|0)>2])continue;break}}J[699344]=0;$(3370,e+56|0);a=J[699344];J[699344]=0;if((a|0)==1)break va;La:{if((p|0)!=7|J[e+40>>2]!=7)break La;j=0;while(1){J[699344]=0;a=ha(3368,J[e+48>>2],827383,e+56|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ya;Ma:{if(J[a>>2]!=7)break Ma;d=0;a=J[e+64>>2];if(J[a+16>>2]<=0)break Ma;while(1){J[699344]=0;a=ga(3497,a|0,d|0,e+72|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break za;Na:{if(J[a>>2]==7){J[699344]=0;c=J[J[J[e+ +64>>2]+4>>2]+(d<<5)>>2];a=J[699344];J[699344]=0;if((a|0)==1)break xa;a=Yc(c);if(a>>>0>=2147483632){J[699344]=0;$(3030,e+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break F;a=Z()|0;break D}Oa:{if(a>>>0<=10){H[e+23|0]=a;i=e+12|0;break Oa}J[699344]=0;h=(a|15)+1|0;i=_(4,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break xa;J[e+12>>2]=i;J[e+16>>2]=a;J[e+20>>2]=h|-2147483648}w=cd(i,c,a)+a|0,x=0,H[w|0]=x;c=K[e+23|0];i=c<<24>>24;a=(i|0)<0;Pa:{Qa:{Ra:switch((a?J[e+16>>2]:c)-1|0){case 1:h=0;a=(i|0)<0?J[e+12>>2]: +e+12|0;c=K[a+1|0]<<8;if((K[a|0]|c)==28486)break Pa;a=c|K[a|0];if((a|0)==27714|(a|0)==20304|((a|0)==17232|(a|0)==22096))break Pa;if((a|0)!=18768)break Qa;break Pa;case 0:break Ra;default:break Qa}a=K[(a?J[e+12>>2]:e+12|0)|0]-68&255;if(a>>>0>=21)break Qa;h=0;if(1179651>>>a&1)break Pa}J[699344]=0;i=aa(3452,b|0,e+72|0)|0;a=J[699344];J[699344]=0;Sa:{if((a|0)==1)break Sa;h=1;if(!i)break Pa;a=i+4|0;Ta:{if((a|0)==(e+12|0))break Ta;g=K[e+23|0];c=g<<24>>24;Ua:{if(H[i+15|0]>=0){if((c|0)<0)break Ua;c=J[e+16>> +2];J[a>>2]=J[e+12>>2];J[a+4>>2]=c;J[a+8>>2]=J[e+20>>2];break Ta}J[699344]=0;k=a;a=(c|0)<0;ga(3483,k|0,(a?J[e+12>>2]:e+12|0)|0,(a?J[e+16>>2]:g)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Sa;break Ta}J[699344]=0;ga(3484,a|0,J[e+12>>2],J[e+16>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break Sa}a=J[f+232>>2];if((a|0)!=J[f+236>>2]){J[a>>2]=i;J[f+232>>2]=a+4;break Pa}Va:{Wa:{l=J[o>>2];c=a-l|0;p=c>>2;g=p+1|0;Xa:{if(g>>>0>=1073741824){J[699344]=0;$(3496,o|0);break Xa}k=c>>1;k=c>>>0>=2147483644?1073741823: +g>>>0>>0?k:g;if(!k){g=0;break Va}if(k>>>0<1073741824)break Wa;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break F;break Sa}J[699344]=0;g=_(4,k<<2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Sa}c=(p<<2)+g|0;J[c>>2]=i;i=c+4|0;if((a|0)!=(l|0)){while(1){c=c-4|0;a=a-4|0;J[c>>2]=J[a>>2];if((a|0)!=(l|0))continue;break}a=J[o>>2]}J[f+236>>2]=(k<<2)+g;J[f+232>>2]=i;J[f+228>>2]=c;if(!a)break Pa;uc(a);break Pa}a=Z()|0;if(H[e+23|0]>=0)break D;uc(J[e+12>>2]);break D}if(H[e+23|0]<0)uc(J[e+12>>2]); +if(!h)break Na}J[699344]=0;$(3370,e+72|0);a=J[699344];J[699344]=0;if((a|0)==1)break za}d=d+1|0;a=J[e+64>>2];if((d|0)>2])continue;break}}J[699344]=0;$(3370,e+56|0);a=J[699344];J[699344]=0;if((a|0)==1)break ya;J[699344]=0;ha(3368,J[e+48>>2],777471,e+24|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ya;J[699344]=0;$(3370,e+40|0);a=J[699344];J[699344]=0;if((a|0)==1)break ya;a=J[e+36>>2];J[e+48>>2]=J[e+32>>2];J[e+52>>2]=a;c=J[e+28>>2];a=J[e+24>>2];J[e+40>>2]=a;J[e+44>>2]=c;if((a|0)!=7)break La; +a=j>>>0<49;j=j+1|0;if(a)continue;break}}J[699344]=0;$(3370,e+40|0);a=J[699344];J[699344]=0;if((a|0)==1)break va;J[699344]=0;$(3370,e+112|0);a=J[699344];J[699344]=0;if((a|0)==1)break va;fc=e+144|0;return f}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0;break D}B()}a=Z()|0}if(H[f+339|0]<0)uc(J[f+328>>2]);if(H[f+327|0]<0)uc(J[f+316>>2]);if(H[f+315|0]< +0)uc(J[f+304>>2]);if(H[f+303|0]<0)uc(J[f+292>>2]);if(H[f+291|0]<0)uc(J[f+280>>2]);if(H[f+279|0]<0)uc(J[f+268>>2]);if(H[f+267|0]<0)uc(J[f+256>>2]);if(H[f+255|0]<0)uc(J[n>>2]);b=J[o>>2];if(b){J[f+232>>2]=b;uc(b)}b=J[r>>2];if(b){J[f+220>>2]=b;uc(b)}b=J[q>>2];if(b){J[f+208>>2]=b;uc(b)}b=J[u>>2];if(b){J[f+196>>2]=b;uc(b)}eu(f);ba(a|0);B()}function WMa(a){a=a|0;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,G=0,H=0,I=0,L=0, +M=0,N=0,O=0,Q=0,R=0;c=J[a+4>>2];kc[J[J[c>>2]+20>>2]](c);J[a+3460>>2]=0;J[a+3464>>2]=0;J[a+720>>2]=0;J[a+188>>2]=0;J[a+204>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;if(!YI(a,1)){J[a+8>>2]=1;J[a+3504>>2]=J[a+20>>2];return}o=J[a+188>>2];a:{if((o|0)==1){J[a+44>>2]=1;J[a+48>>2]=1;c=1;q=1;break a}c=J[a+48>>2];q=J[a+44>>2];if((o|0)<2)break a;j=1;d=o-1|0;u=d&1;if((o|0)!=2){C=d&-2;while(1){p=P(j,20)+a|0;l=J[p+68>>2];d=J[p+48>>2];c=(c|0)<(d|0)?d:c;c=(c|0)<(l|0)?l: +c;l=J[p- -64>>2];d=J[p+44>>2];d=(d|0)>(q|0)?d:q;q=(d|0)<(l|0)?l:d;j=j+2|0;b=b+2|0;if((C|0)!=(b|0))continue;break}}if(!u)break a;d=P(j,20)+a|0;b=J[d+48>>2];c=(b|0)>(c|0)?b:c;b=J[d+44>>2];q=(b|0)>(q|0)?b:q}d=c<<3;J[a+28>>2]=d;c=q<<3;J[a+24>>2]=c;if(J[a+192>>2]==-1){b=0;b:{if((o|0)!=3)break b;b=1;if(J[a+196>>2])break b;b=J[a+40>>2]!=82|J[a+60>>2]!=71|J[a+80>>2]!=66}J[a+192>>2]=b}c:{if(J[a+12>>2]?J[a+8>>2]:1){b=(c+J[a+16>>2]|0)-1|0;c=b-((b|0)%(c|0)|0)|0;J[a+32>>2]=c;b=(d+J[a+20>>2]|0)-1|0;b=b-((b|0)% +(d|0)|0)|0;J[a+36>>2]=b;if((c|0)<=0|(b|0)<=0|c>>>0>2147483647/(c>>>0)>>>2>>>0)break c;j=0;if((o|0)>0)while(1){b=Gd(P(J[a+36>>2],J[a+32>>2]),4);J[((j<<2)+a|0)+3480>>2]=b;Ac(b,0,P(J[a+32>>2],J[a+36>>2])<<2);j=j+1|0;if((j|0)>2])continue;break}while(1){J[a+3524>>2]=0;J[a+3512>>2]=208;J[a+3508>>2]=J[a+204>>2];d=J[a+188>>2];d:{if((d|0)<=0)break d;j=0;if(d>>>0>=8){b=d&-8;q=0;while(1){c=a+40|0;J[(c+P(j,20)|0)+16>>2]=0;J[(c+P(j|1,20)|0)+16>>2]=0;J[(c+P(j|2,20)|0)+16>>2]=0;J[(c+P(j|3,20)|0)+16>>2]= +0;J[(c+P(j|4,20)|0)+16>>2]=0;J[(c+P(j|5,20)|0)+16>>2]=0;J[(c+P(j|6,20)|0)+16>>2]=0;J[(c+P(j|7,20)|0)+16>>2]=0;j=j+8|0;q=q+8|0;if((b|0)!=(q|0))continue;break}}c=0;b=d&7;if(!b)break d;while(1){J[(P(j,20)+a|0)+56>>2]=0;j=j+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}J[a+3516>>2]=0;c=0;y=0;f=fc-256|0;fc=f;B=a+120|0;e:{f:{g:{h:{i:{j:{k:{l:{b=J[a+188>>2];if((b|0)>0){u=J[a+720>>2];C=J[a+3460>>2];if(!(!J[a+8>>2]|J[a+176>>2]>0))break l;l=J[a+3464>>2];while(1){d=c<<2;if(J[d+B>>2]){d=a+d|0;g=817908;if((C|0)<= +J[d+140>>2]|(l|0)<=J[d+156>>2])break f}if((u|0)>2])break g;c=c+1|0;if((b|0)!=(c|0))continue;break}break k}if(J[a+136>>2]==1)break j;break i}while(1){d=c<<2;if(!((C|0)<=J[(a+d|0)+140>>2]?J[d+B>>2]:0)){if((u|0)>2])break g;c=c+1|0;if((b|0)!=(c|0))continue;break k}break}g=817908;break f}B=a+120|0;if(J[a+136>>2]!=1)break i;c=0;if((b|0)<=0)break j;while(1){if(J[(c<<2)+B>>2])break j;c=c+1|0;if((b|0)!=(c|0))continue;break}c=b}c=P(c,20)+a|0;D=J[a+28>>2]/J[c+48>>2]|0; +d=J[a+24>>2]/J[c+44>>2]|0;break h}D=J[a+28>>2];d=J[a+24>>2]}g=J[a+20>>2];if((g|0)<=0)break e;c=J[a+16>>2];if((c|0)<=0)break e;u=d;k=a+40|0;while(1){if((c|0)>0){p=J[a+3508>>2];j=0;while(1){if(!(p|J[a+204>>2]<=0)){while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=255&(b|0)!=-1)continue;while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}if(!b)continue;break}g=819031;if((b|0)!=J[a+3512>>2])break f;J[a+3524>>2]=0;p=J[a+204>>2];J[a+3508>>2]=p;b=b+1|0;J[a+3512>>2]=(b| +0)==216?208:b;b=J[a+188>>2];m:{if((b|0)<=0)break m;g=0;c=0;if(b>>>0>=8){d=b&-8;t=0;while(1){J[(k+P(c,20)|0)+16>>2]=0;J[(k+P(c|1,20)|0)+16>>2]=0;J[(k+P(c|2,20)|0)+16>>2]=0;J[(k+P(c|3,20)|0)+16>>2]=0;J[(k+P(c|4,20)|0)+16>>2]=0;J[(k+P(c|5,20)|0)+16>>2]=0;J[(k+P(c|6,20)|0)+16>>2]=0;J[(k+P(c|7,20)|0)+16>>2]=0;c=c+8|0;t=t+8|0;if((d|0)!=(t|0))continue;break}}d=b&7;if(!d)break m;while(1){J[(P(c,20)+a|0)+56>>2]=0;c=c+1|0;g=g+1|0;if((d|0)!=(g|0))continue;break}}J[a+3516>>2]=0}v=0;g=a;if((b|0)>0){while(1){c= +v<<2;if(!(!J[c+B>>2]|(D|0)<=0|(u|0)<=0)){b=P(v,20)+a|0;R=J[a+24>>2]/J[b+44>>2]|0;E=J[a+28>>2]/J[b+48>>2]|0;w=(E|0)/8|0;F=b+56|0;G=a+c|0;L=G+3480|0;p=0;while(1){M=p+y|0;t=0;while(1){N=j+t<<2;b=J[a+32>>2];c=N+(J[L>>2]+(P(b,M)<<2)|0)|0;J[f>>2]=J[c>>2];J[f+4>>2]=J[c+4>>2];J[f+8>>2]=J[c+8>>2];J[f+12>>2]=J[c+12>>2];J[f+16>>2]=J[c+16>>2];J[f+20>>2]=J[c+20>>2];J[f+24>>2]=J[c+24>>2];J[f+28>>2]=J[c+28>>2];b=P(b,w)<<2;c=b+c|0;J[f+32>>2]=J[c>>2];J[f+36>>2]=J[c+4>>2];J[f+40>>2]=J[c+8>>2];J[f+44>>2]=J[c+12>>2]; +J[f+48>>2]=J[c+16>>2];J[f+52>>2]=J[c+20>>2];J[f+56>>2]=J[c+24>>2];J[f+60>>2]=J[c+28>>2];c=b+c|0;J[f+64>>2]=J[c>>2];J[f+68>>2]=J[c+4>>2];J[f+72>>2]=J[c+8>>2];J[f+76>>2]=J[c+12>>2];J[f+80>>2]=J[c+16>>2];J[f+84>>2]=J[c+20>>2];J[f+88>>2]=J[c+24>>2];J[f+92>>2]=J[c+28>>2];c=b+c|0;J[f+96>>2]=J[c>>2];J[f+100>>2]=J[c+4>>2];J[f+104>>2]=J[c+8>>2];J[f+108>>2]=J[c+12>>2];J[f+112>>2]=J[c+16>>2];J[f+116>>2]=J[c+20>>2];J[f+120>>2]=J[c+24>>2];J[f+124>>2]=J[c+28>>2];c=b+c|0;J[f+128>>2]=J[c>>2];J[f+132>>2]=J[c+4>>2]; +J[f+136>>2]=J[c+8>>2];J[f+140>>2]=J[c+12>>2];J[f+144>>2]=J[c+16>>2];J[f+148>>2]=J[c+20>>2];J[f+152>>2]=J[c+24>>2];J[f+156>>2]=J[c+28>>2];c=b+c|0;J[f+160>>2]=J[c>>2];J[f+164>>2]=J[c+4>>2];J[f+168>>2]=J[c+8>>2];J[f+172>>2]=J[c+12>>2];J[f+176>>2]=J[c+16>>2];J[f+180>>2]=J[c+20>>2];J[f+184>>2]=J[c+24>>2];J[f+188>>2]=J[c+28>>2];c=b+c|0;J[f+192>>2]=J[c>>2];J[f+196>>2]=J[c+4>>2];J[f+200>>2]=J[c+8>>2];J[f+204>>2]=J[c+12>>2];J[f+208>>2]=J[c+16>>2];J[f+212>>2]=J[c+20>>2];J[f+216>>2]=J[c+24>>2];J[f+220>>2]=J[c+ +28>>2];b=b+c|0;J[f+224>>2]=J[b>>2];J[f+228>>2]=J[b+4>>2];J[f+232>>2]=J[b+8>>2];J[f+236>>2]=J[b+12>>2];J[f+240>>2]=J[b+16>>2];J[f+244>>2]=J[b+20>>2];J[f+248>>2]=J[b+24>>2];J[f+252>>2]=J[b+28>>2];l=(P(J[G+156>>2],342)+a|0)+2092|0;b=(P(J[G+140>>2],342)+a|0)+724|0;n:{if(J[a+8>>2]){h=0;m=0;o:{p:{q:{c=J[a+172>>2];r:{if(c)break r;s:{if(!J[a+180>>2]){r=WI(a,b);if(r){b=0;if((r|0)==9999)break o;c=J[a+3524>>2];while(1){t:{if(c){b=J[a+3520>>2];c=c-1|0;break t}u:{b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b| +0)!=255){if((b|0)!=-1)break u;break p}while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break u;break q}J[a+3520>>2]=b;c=7}J[a+3524>>2]=c;h=b>>>c&1|h<<1;m=m+1|0;if((r|0)!=(m|0))continue;break}b=0;r=(1<(h|0)?(-1<>2]+r|0;J[F>>2]=c;break s}b=J[a+3524>>2];v:{if(b){n=J[a+3520>>2];b=b-1|0;break v}b=J[a+4>>2];n=kc[J[J[b>>2]+28>>2]](b)|0;if((n|0)==-1){c=1;break s}w:{if((n|0)!=255)break w;while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+ +28>>2]](b)|0;if((b|0)==255)continue;break}if(!b)break w;c=1;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,819751,0);break s}J[a+3520>>2]=n;b=7}J[a+3524>>2]=b;c=1;if(!(n>>>b&1))break r}J[f>>2]=J[f>>2]+(c<>2]);c=1}b=1;o=J[a+176>>2];if(!o)break o;x:{d=J[a+3516>>2];if((d|0)>0)break x;if((c|0)>(o|0))break o;while(1){y:{z:{b=WI(a,l);if((b|0)!=240){if((b|0)!=9999)break z;break p}h=0;b=c;n=J[a+176>>2];if((b|0)>(n|0))break y;while(1){o=f+(J[(b<<2)+2343952>>2]<<2)|0;A:{if(!J[o>>2]){h=h+1|0;break A}c=J[a+3524>>2]; +B:{if(c){m=J[a+3520>>2];c=c-1|0;break B}C:{c=J[a+4>>2];m=kc[J[J[c>>2]+28>>2]](c)|0;if((m|0)!=255){if((m|0)!=-1)break C;break p}while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break C;break q}J[a+3520>>2]=m;c=7}J[a+3524>>2]=c;if(!(m>>>c&1))break A;d=J[a+184>>2];c=J[o>>2];if((c|0)>=0){J[o>>2]=c+(1<>2]=c+(-1<>2];if((h|0)>15)break y;d=(b|0)>=(n|0);b=c;if(!d)continue;break}break y}o=b>>>4|0;d=b&15;if(!d){h=0;J[a+3516>>2]=0;if(b>>> +0>=16){d=o>>>0<=1?1:o;b=J[a+3524>>2];i=0;while(1){D:{if(b){m=J[a+3520>>2];b=b-1|0;break D}E:{b=J[a+4>>2];m=kc[J[J[b>>2]+28>>2]](b)|0;if((m|0)!=255){if((m|0)!=-1)break E;break p}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}if(!b)break E;break q}J[a+3520>>2]=m;h=J[a+3516>>2];b=7}J[a+3524>>2]=b;h=m>>>b&1|h<<1;J[a+3516>>2]=h;i=i+1|0;if((d|0)!=(i|0))continue;break}}d=(1<>2]=d;b=a;if(J[b+176>>2]>=(c|0)){while(1){d=c;l=f+(J[(c<<2)+2343952>>2]<<2)|0;F:{if(!J[l>> +2])break F;c=J[a+3524>>2];G:{if(c){h=J[a+3520>>2];c=c-1|0;break G}H:{c=J[a+4>>2];h=kc[J[J[c>>2]+28>>2]](c)|0;if((h|0)!=255){if((h|0)!=-1)break H;break p}while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break H;break q}J[a+3520>>2]=h;c=7}J[a+3524>>2]=c;if(!(h>>>c&1))break F;c=J[l>>2];J[l>>2]=((c>>31|1)<>2])+c}c=d+1|0;if((d|0)>2])continue;break}d=J[a+3516>>2]}J[b+3516>>2]=d-1;b=1;break o}q=o&15;b=J[a+3524>>2];m=0;h=0;while(1){I:{if(b){n=J[a+3520>> +2];b=b-1|0;break I}J:{b=J[a+4>>2];n=kc[J[J[b>>2]+28>>2]](b)|0;if((n|0)!=255){if((n|0)!=-1)break J;break p}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}if(!b)break J;break q}J[a+3520>>2]=n;b=7}J[a+3524>>2]=b;h=n>>>b&1|h<<1;m=m+1|0;if((d|0)!=(m|0))continue;break}b=0;o=(1<(h|0)?-1<>2];K:{if((n|0)<(c|0))break K;while(1){b=c+1|0;r=J[(c<<2)+2343952>>2];h=f+(r<<2)|0;L:{if(!J[h>>2]){c=b;break L}d=(c|0)>=(n|0);c=b;if(d)break L; +while(1){c=J[a+3524>>2];M:{if(c){n=J[a+3520>>2];c=c-1|0;break M}N:{c=J[a+4>>2];n=kc[J[J[c>>2]+28>>2]](c)|0;if((n|0)!=255){if((n|0)!=-1)break N;break p}while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break N;break q}J[a+3520>>2]=n;c=7}J[a+3524>>2]=c;if(n>>>c&1){c=J[h>>2];J[h>>2]=((c>>31|1)<>2])+c}c=b+1|0;n=J[a+176>>2];r=J[(b<<2)+2343952>>2];h=f+(r<<2)|0;if(!J[h>>2])break L;d=(b|0)<(n|0);b=c;if(d)continue;break}}if(m>>>0>=q>>>0)break K;m=m+1|0;if((c|0)<= +(n|0))continue;break}}J[f+(r<<2)>>2]=o<>2];n=J[a+176>>2]}b=1;if((c|0)<=(n|0))continue;break}break o}b=a;if((c|0)<=(o|0)){while(1){d=c;l=f+(J[(c<<2)+2343952>>2]<<2)|0;O:{if(!J[l>>2])break O;c=J[a+3524>>2];P:{if(c){h=J[a+3520>>2];c=c-1|0;break P}Q:{c=J[a+4>>2];h=kc[J[J[c>>2]+28>>2]](c)|0;if((h|0)!=255){if((h|0)!=-1)break Q;break p}while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break Q;break q}J[a+3520>>2]=h;c=7}J[a+3524>>2]=c;if(!(h>>>c&1))break O;c=J[l>> +2];J[l>>2]=((c>>31|1)<>2])+c}c=d+1|0;if((d|0)>2])continue;break}d=J[a+3516>>2]}J[b+3516>>2]=d-1;b=1;break o}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,819751,0)}b=0}if(b)break n;break e}if(!m_(a,b,l,F,f))break e}b=N+(J[L>>2]+(P(M,J[a+32>>2])<<2)|0)|0;J[b>>2]=J[f>>2];J[b+4>>2]=J[f+4>>2];J[b+8>>2]=J[f+8>>2];J[b+12>>2]=J[f+12>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=J[f+20>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=J[f+28>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+32>>2];J[b+4>>2]=J[f+36>>2];J[b+8>>2]=J[f+ +40>>2];J[b+12>>2]=J[f+44>>2];J[b+16>>2]=J[f+48>>2];J[b+20>>2]=J[f+52>>2];J[b+24>>2]=J[f+56>>2];J[b+28>>2]=J[f+60>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+64>>2];J[b+4>>2]=J[f+68>>2];J[b+8>>2]=J[f+72>>2];J[b+12>>2]=J[f+76>>2];J[b+16>>2]=J[f+80>>2];J[b+20>>2]=J[f+84>>2];J[b+24>>2]=J[f+88>>2];J[b+28>>2]=J[f+92>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+96>>2];J[b+4>>2]=J[f+100>>2];J[b+8>>2]=J[f+104>>2];J[b+12>>2]=J[f+108>>2];J[b+16>>2]=J[f+112>>2];J[b+20>>2]=J[f+116>>2];J[b+24>>2]=J[f+120>>2];J[b+ +28>>2]=J[f+124>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+128>>2];J[b+4>>2]=J[f+132>>2];J[b+8>>2]=J[f+136>>2];J[b+12>>2]=J[f+140>>2];J[b+16>>2]=J[f+144>>2];J[b+20>>2]=J[f+148>>2];J[b+24>>2]=J[f+152>>2];J[b+28>>2]=J[f+156>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+160>>2];J[b+4>>2]=J[f+164>>2];J[b+8>>2]=J[f+168>>2];J[b+12>>2]=J[f+172>>2];J[b+16>>2]=J[f+176>>2];J[b+20>>2]=J[f+180>>2];J[b+24>>2]=J[f+184>>2];J[b+28>>2]=J[f+188>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+192>>2];J[b+4>>2]=J[f+196>>2];J[b+ +8>>2]=J[f+200>>2];J[b+12>>2]=J[f+204>>2];J[b+16>>2]=J[f+208>>2];J[b+20>>2]=J[f+212>>2];J[b+24>>2]=J[f+216>>2];J[b+28>>2]=J[f+220>>2];b=b+(P(w,J[a+32>>2])<<2)|0;J[b>>2]=J[f+224>>2];J[b+4>>2]=J[f+228>>2];J[b+8>>2]=J[f+232>>2];J[b+12>>2]=J[f+236>>2];J[b+16>>2]=J[f+240>>2];J[b+20>>2]=J[f+244>>2];J[b+24>>2]=J[f+248>>2];J[b+28>>2]=J[f+252>>2];t=t+R|0;if((u|0)>(t|0))continue;break}p=p+E|0;if((D|0)>(p|0))continue;break}b=J[a+188>>2]}v=v+1|0;if((v|0)<(b|0))continue;break}c=J[a+3508>>2]}else c=p;p=c-1|0;J[g+ +3508>>2]=p;c=J[a+16>>2];j=j+u|0;if((c|0)>(j|0))continue;break}g=J[a+20>>2]}y=y+D|0;if((y|0)<(g|0))continue;break}break e}g=818657}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,g,0)}fc=f+256|0;if(YI(a,0))continue;break}e=fc-320|0;fc=e;i=J[a+36>>2];R:{if((i|0)<=0)break R;b=J[a+32>>2];if((b|0)<=0)break R;while(1){if((b|0)>0){f=J[a+3488>>2];n=J[a+3484>>2];r=J[a+3480>>2];p=0;while(1){i=J[a+188>>2];if((i|0)>0){c=J[a+28>>2];g=J[a+24>>2];t=0;while(1){b=P(t,20)+a|0;O=(c|0)/J[b+48>>2]|0;x=(O|0)/8|0;Q=(g|0)/J[b+44>>2]|0;l= +(Q|0)/8|0;if(!((c|0)<=0|(g|0)<=0)){w=((J[b+52>>2]<<7)+a|0)+208|0;d=Q&-8;b=O&-8;B=(d|0)==16&(b|0)==16;D=(d|0)==8&(b|0)==8;F=((t<<2)+a|0)+3480|0;G=(O|0)<8|(Q|0)<8;z=l&-4;s=l&3;L=l-1|0;v=0;M=l<<3;R=P(l,12);E=l<<2;N=E<<2;q=P(l,20);o=P(l,24);u=P(l,28);while(1){if((g|0)>0){C=v+H|0;l=J[F>>2]+(p<<2)|0;y=0;while(1){c=J[a+32>>2];b=((P(c,C)<<2)+l|0)+(y<<2)|0;J[e+64>>2]=J[b>>2];J[e+68>>2]=J[b+4>>2];J[e+72>>2]=J[b+8>>2];J[e+76>>2]=J[b+12>>2];J[e+80>>2]=J[b+16>>2];J[e+84>>2]=J[b+20>>2];J[e+88>>2]=J[b+24>>2];J[e+ +92>>2]=J[b+28>>2];d=P(c,x)<<2;k=d+b|0;J[e+96>>2]=J[k>>2];J[e+100>>2]=J[k+4>>2];J[e+104>>2]=J[k+8>>2];J[e+108>>2]=J[k+12>>2];J[e+112>>2]=J[k+16>>2];J[e+116>>2]=J[k+20>>2];J[e+120>>2]=J[k+24>>2];J[e+124>>2]=J[k+28>>2];k=d+k|0;J[e+128>>2]=J[k>>2];J[e+132>>2]=J[k+4>>2];J[e+136>>2]=J[k+8>>2];J[e+140>>2]=J[k+12>>2];J[e+144>>2]=J[k+16>>2];J[e+148>>2]=J[k+20>>2];J[e+152>>2]=J[k+24>>2];J[e+156>>2]=J[k+28>>2];k=d+k|0;J[e+160>>2]=J[k>>2];J[e+164>>2]=J[k+4>>2];J[e+168>>2]=J[k+8>>2];J[e+172>>2]=J[k+12>>2];J[e+ +176>>2]=J[k+16>>2];J[e+180>>2]=J[k+20>>2];J[e+184>>2]=J[k+24>>2];J[e+188>>2]=J[k+28>>2];k=d+k|0;J[e+192>>2]=J[k>>2];J[e+196>>2]=J[k+4>>2];J[e+200>>2]=J[k+8>>2];J[e+204>>2]=J[k+12>>2];J[e+208>>2]=J[k+16>>2];J[e+212>>2]=J[k+20>>2];J[e+216>>2]=J[k+24>>2];J[e+220>>2]=J[k+28>>2];k=d+k|0;J[e+224>>2]=J[k>>2];J[e+228>>2]=J[k+4>>2];J[e+232>>2]=J[k+8>>2];J[e+236>>2]=J[k+12>>2];J[e+240>>2]=J[k+16>>2];J[e+244>>2]=J[k+20>>2];J[e+248>>2]=J[k+24>>2];J[e+252>>2]=J[k+28>>2];k=d+k|0;J[e+256>>2]=J[k>>2];J[e+260>>2]= +J[k+4>>2];J[e+264>>2]=J[k+8>>2];J[e+268>>2]=J[k+12>>2];J[e+272>>2]=J[k+16>>2];J[e+276>>2]=J[k+20>>2];J[e+280>>2]=J[k+24>>2];J[e+284>>2]=J[k+28>>2];d=d+k|0;J[e+288>>2]=J[d>>2];J[e+292>>2]=J[d+4>>2];J[e+296>>2]=J[d+8>>2];J[e+300>>2]=J[d+12>>2];J[e+304>>2]=J[d+16>>2];J[e+308>>2]=J[d+20>>2];J[e+312>>2]=J[d+24>>2];J[e+316>>2]=J[d+28>>2];l_(w,e- -64|0,e);S:{if(D){J[b>>2]=K[e|0];J[b+4>>2]=K[e+1|0];J[b+8>>2]=K[e+2|0];J[b+12>>2]=K[e+3|0];J[b+16>>2]=K[e+4|0];J[b+20>>2]=K[e+5|0];J[b+24>>2]=K[e+6|0];J[b+28>> +2]=K[e+7|0];b=(J[a+32>>2]<<2)+b|0;J[b>>2]=K[e+8|0];J[b+4>>2]=K[e+9|0];J[b+8>>2]=K[e+10|0];J[b+12>>2]=K[e+11|0];J[b+16>>2]=K[e+12|0];J[b+20>>2]=K[e+13|0];J[b+24>>2]=K[e+14|0];J[b+28>>2]=K[e+15|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+16|0];J[b+4>>2]=K[e+17|0];J[b+8>>2]=K[e+18|0];J[b+12>>2]=K[e+19|0];J[b+16>>2]=K[e+20|0];J[b+20>>2]=K[e+21|0];J[b+24>>2]=K[e+22|0];J[b+28>>2]=K[e+23|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+24|0];J[b+4>>2]=K[e+25|0];J[b+8>>2]=K[e+26|0];J[b+12>>2]=K[e+27|0];J[b+16>>2]=K[e+28|0]; +J[b+20>>2]=K[e+29|0];J[b+24>>2]=K[e+30|0];J[b+28>>2]=K[e+31|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+32|0];J[b+4>>2]=K[e+33|0];J[b+8>>2]=K[e+34|0];J[b+12>>2]=K[e+35|0];J[b+16>>2]=K[e+36|0];J[b+20>>2]=K[e+37|0];J[b+24>>2]=K[e+38|0];J[b+28>>2]=K[e+39|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+40|0];J[b+4>>2]=K[e+41|0];J[b+8>>2]=K[e+42|0];J[b+12>>2]=K[e+43|0];J[b+16>>2]=K[e+44|0];J[b+20>>2]=K[e+45|0];J[b+24>>2]=K[e+46|0];J[b+28>>2]=K[e+47|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+48|0];J[b+4>>2]=K[e+49|0];J[b+8>>2]= +K[e+50|0];J[b+12>>2]=K[e+51|0];J[b+16>>2]=K[e+52|0];J[b+20>>2]=K[e+53|0];J[b+24>>2]=K[e+54|0];J[b+28>>2]=K[e+55|0];b=b+(J[a+32>>2]<<2)|0;J[b>>2]=K[e+56|0];J[b+4>>2]=K[e+57|0];J[b+8>>2]=K[e+58|0];J[b+12>>2]=K[e+59|0];J[b+16>>2]=K[e+60|0];J[b+20>>2]=K[e+61|0];J[b+24>>2]=K[e+62|0];J[b+28>>2]=K[e+63|0];break S}if(!B){m=0;k=0;if(G)break S;while(1){I=e+m|0;c=b;d=0;while(1){i=0;g=0;j=0;A=L>>>0<3;if(!A)while(1){h=g<<2;J[h+c>>2]=K[I|0];J[(h|4)+c>>2]=K[I|0];J[(h|8)+c>>2]=K[I|0];J[(h|12)+c>>2]=K[I|0];g=g+4| +0;j=j+4|0;if((z|0)!=(j|0))continue;break}if(s)while(1){J[(g<<2)+c>>2]=K[I|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;d=d+1|0;if((x|0)!=(d|0))continue;break}c=b+E|0;h=e+(m|1)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!= +(j|0))continue;break}c=b+M|0;h=e+(m|2)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+R|0;h=e+(m|3)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h| +0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+N|0;h=e+(m|4)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+ +1|0;if((x|0)!=(j|0))continue;break}c=b+q|0;h=e+(m|5)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+o|0;h=e+(m|6)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d| +12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}c=(J[a+32>>2]<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}c=b+u|0;h=e+(m|7)|0;j=0;while(1){g=0;i=0;if(!A)while(1){d=g<<2;J[d+c>>2]=K[h|0];J[(d|4)+c>>2]=K[h|0];J[(d|8)+c>>2]=K[h|0];J[(d|12)+c>>2]=K[h|0];g=g+4|0;i=i+4|0;if((z|0)!=(i|0))continue;break}i=0;if(s)while(1){J[(g<<2)+c>>2]=K[h|0];g=g+1|0;i=i+1|0;if((s|0)!=(i|0))continue;break}d=J[a+32>>2]; +c=(d<<2)+c|0;j=j+1|0;if((x|0)!=(j|0))continue;break}m=m+8|0;b=(P(d,x)<<2)+b|0;k=k+1|0;if((k|0)!=8)continue;break}break S}g=(c<<2)+b|0;c=0;i=0;while(1){d=K[c+e|0];J[g>>2]=d;J[g+4>>2]=d;J[b>>2]=d;J[b+4>>2]=d;d=K[e+(c|1)|0];J[g+8>>2]=d;J[g+12>>2]=d;J[b+8>>2]=d;J[b+12>>2]=d;d=K[e+(c|2)|0];J[g+16>>2]=d;J[g+20>>2]=d;J[b+16>>2]=d;J[b+20>>2]=d;d=K[e+(c|3)|0];J[g+24>>2]=d;J[g+28>>2]=d;J[b+24>>2]=d;J[b+28>>2]=d;d=K[e+(c|4)|0];J[g+32>>2]=d;J[g+36>>2]=d;J[b+32>>2]=d;J[b+36>>2]=d;d=K[e+(c|5)|0];J[g+40>>2]=d;J[g+ +44>>2]=d;J[b+40>>2]=d;J[b+44>>2]=d;d=K[e+(c|6)|0];J[g+48>>2]=d;J[g+52>>2]=d;J[b+48>>2]=d;J[b+52>>2]=d;d=K[e+(c|7)|0];J[g+56>>2]=d;J[g+60>>2]=d;J[b+56>>2]=d;J[b+60>>2]=d;c=c+8|0;d=J[a+32>>2]<<3;g=d+g|0;b=b+d|0;d=i>>>0<14;i=i+2|0;if(d)continue;break}}g=J[a+24>>2];y=y+Q|0;if((g|0)>(y|0))continue;break}c=J[a+28>>2]}v=v+O|0;if((v|0)<(c|0))continue;break}i=J[a+188>>2]}t=t+1|0;if((t|0)<(i|0))continue;break}}T:{if(!J[a+192>>2])break T;U:switch(i-3|0){case 1:b=J[a+28>>2];if((b|0)<=0)break T;j=0;c=J[a+24>> +2];if((c|0)<=0)break T;while(1){if((c|0)>0){c=P(J[a+32>>2],j+H|0)+p<<2;b=c+r|0;i=c+n|0;g=c+f|0;h=0;while(1){c=J[i>>2];l=J[b>>2]<<16|32768;d=J[g>>2]-128|0;J[b>>2]=K[((l+P(d,91881)>>>16|0)+384&1023)+2773872|0]^255;c=c-128|0;J[i>>2]=K[(((l+P(c,67086311)|0)+P(d,67062062)>>>16|0)+384&1023)+2773872|0]^255;J[g>>2]=K[((l+P(c,116130)>>>16|0)+384&1023)+2773872|0]^255;g=g+4|0;i=i+4|0;b=b+4|0;c=J[a+24>>2];h=h+1|0;if((c|0)>(h|0))continue;break}b=J[a+28>>2]}j=j+1|0;if((j|0)<(b|0))continue;break}break T;case 0:break U; +default:break T}b=J[a+28>>2];if((b|0)<=0)break T;c=J[a+24>>2];j=0;while(1){if((c|0)>0){c=P(J[a+32>>2],j+H|0)+p<<2;b=c+r|0;i=c+n|0;g=c+f|0;h=0;while(1){c=J[i>>2];l=J[b>>2]<<16|32768;d=J[g>>2]-128|0;J[b>>2]=K[((l+P(d,91881)>>>16|0)+384&1023)+2773872|0];c=c-128|0;J[i>>2]=K[(((l+P(c,67086311)|0)+P(d,67062062)>>>16|0)+384&1023)+2773872|0];J[g>>2]=K[((l+P(c,116130)>>>16|0)+384&1023)+2773872|0];g=g+4|0;i=i+4|0;b=b+4|0;c=J[a+24>>2];h=h+1|0;if((c|0)>(h|0))continue;break}b=J[a+28>>2]}j=j+1|0;if((j|0)<(b|0))continue; +break}}b=J[a+32>>2];p=J[a+24>>2]+p|0;if((b|0)>(p|0))continue;break}i=J[a+36>>2]}H=J[a+28>>2]+H|0;if((H|0)<(i|0))continue;break}}fc=e+320|0;J[a+3504>>2]=0;J[a+3496>>2]=0;J[a+3500>>2]=0;return}if((o|0)!=J[a+136>>2]){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,817405,0);J[a+3504>>2]=J[a+20>>2];return}b=(c+J[a+16>>2]|0)-1|0;b=b-((b|0)%(c|0)|0)|0;J[a+32>>2]=b;b=Gd(P(d,o),b);J[a+3476>>2]=b;J[a+3468>>2]=b;J[a+3472>>2]=b;J[a+3524>>2]=0;J[a+3512>>2]=208;J[a+3508>>2]=J[a+204>>2];J[a+3504>>2]=0-J[a+28>>2];c=J[a+188>>2]; +V:{if((c|0)<=0)break V;j=0;if(c>>>0>=8){b=c&-8;d=a+40|0;q=0;while(1){J[(d+P(j,20)|0)+16>>2]=0;J[(d+P(j|1,20)|0)+16>>2]=0;J[(d+P(j|2,20)|0)+16>>2]=0;J[(d+P(j|3,20)|0)+16>>2]=0;J[(d+P(j|4,20)|0)+16>>2]=0;J[(d+P(j|5,20)|0)+16>>2]=0;J[(d+P(j|6,20)|0)+16>>2]=0;J[(d+P(j|7,20)|0)+16>>2]=0;j=j+8|0;q=q+8|0;if((b|0)!=(q|0))continue;break}}b=c&7;if(!b)break V;c=0;while(1){J[(P(j,20)+a|0)+56>>2]=0;j=j+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}J[a+3516>>2]=0;return}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,817115,0);J[a+ +3504>>2]=J[a+20>>2]}function Vk(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=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;s=fc-16|0;fc=s;y=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a;g=J[a+28>>2];if(!g|J[g>>2]!=(a|0))break a;f=J[g+4>>2];if(f-16180>>>0>31)break a;q=J[a+12>>2];if(!q)break a;d=J[a>>2];if(!(J[a+4>>2]?d:1))break a;if((f|0)==16191){J[g+4>>2]=16192;f=16192}P=b-5|0;Q=g+92|0;A=g+756|0;B=g+116|0;E= +g+88|0;C=g+112|0;z=g+1332|0;c=J[g+64>>2];i=J[g+60>>2];D=J[a+4>>2];j=D;n=J[a+16>>2];t=n;b:{c:{d:while(1){e:{e=-3;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:switch(f-16180|0){case 23:k=J[g+76>>2];break C;case 21:k=J[g+76>>2];break E;case 18:k=J[g+108>>2];break H;case 27:f=J[g+12>>2];break h;case 16:if(c>>>0>=14)break Q;if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i= +(K[d|0]<>>0<=5)break R;d=f;j=k;c=e;break Q;case 9:if(c>>>0>=32)break Y;if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0<=23)break Z;d=e;j=f;break Y;case 1:if(c>>>0>=16)break ha;if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0<=7)break ia;d=f;j=k;c=e;break ha;case 8:break j;case 7:break k;case 6:break l;case 5:break m;case 24:break B;case 22:break D;case 20:break F;case 19:break G;case 30:break b;case 26:break N;case 25:break O;case 17:break P;case 15:break S;case 14:break T; +case 13:break U;case 29:break c;case 12:break V;case 11:break W;case 10:break X;case 4:break aa;case 3:break da;case 2:break ga;case 0:break ja;case 28:break g;default:break a}l=J[g+12>>2];if(!l)break M;ka:{if(c>>>0>=16){f=i;break ka}if(!j)break e;e=c+8|0;k=d+1|0;h=j-1|0;f=(K[d|0]<>>0>7){d=k;j=h;c=e;break ka}if(!h){d=k;j=0;i=f;c=e;e=o;break c}c=c+16|0;j=j-2|0;f=(K[d+1|0]<>2])J[g+40>>2]=15;i=0;e=ig(0,0,0);J[g+28>>2]=e;H[s+12|0]=f;H[s+13|0]=f>>>8;e=ig(e,s+12|0,2);J[g+4>>2]=16181;J[g+28>>2]=e;c=0;f=J[g+4>>2];continue}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;j=j-2|0;i=(K[d+1|0]<>2]=i;if((i&255)!=8){J[a+24>>2]=15059;J[g+4>>2]=16209;f=J[g+4>>2];continue}if(i&57344){J[a+24>>2]=3353;J[g+4>>2]=16209;f=J[g+4>>2];continue}e=J[g+36>>2];if(e)J[e>>2]=i>>>8&1;if(!(!(i&512)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=ig(J[g+28>>2],s+12|0,2),J[X+28>> +2]=Y}J[g+4>>2]=16182;c=0;i=0;break fa}if(c>>>0>31)break ea}if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0>23){d=e;j=f;break ea}k=c+8|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+2|0;f=j-2|0;i=(K[d+1|0]<>>0>15){d=e;j=f;break ea}k=c+16|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+3|0;f=j-3|0;i=(K[d+2|0]<>>0>7){d=e;j=f;break ea}c=c+24|0;if(!f){d=e;break e}j=j-4|0;i=(K[d+3|0]<>2];if(e)J[e+4>>2]=i;if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>> +8;H[s+14|0]=i>>>16;H[s+15|0]=i>>>24;X=g,Y=ig(J[g+28>>2],s+12|0,4),J[X+28>>2]=Y}J[g+4>>2]=16183;c=0;i=0;break ca}if(c>>>0>15)break ba}if(!j)break e;e=d+1|0;f=j-1|0;i=(K[d|0]<>>0>7){d=e;j=f;break ba}c=c+8|0;if(!f){d=e;break e}j=j-2|0;i=(K[d+1|0]<>2];if(e){J[e+12>>2]=i>>>8;J[e+8>>2]=i&255}if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=ig(J[g+28>>2],s+12|0,2),J[X+28>>2]=Y}J[g+4>>2]=16184;f=0;c=0;i=0;e=J[g+20>>2];if(e&1024)break $;break o}e= +J[g+20>>2];if(!(e&1024)){f=c;break o}f=i;if(c>>>0>15)break _}if(!j){j=0;i=f;e=o;break c}k=d+1|0;h=j-1|0;i=(K[d|0]<>>0>7){d=k;j=h;break _}c=c+8|0;if(!h){d=k;break e}j=j-2|0;i=(K[d+1|0]<>2]=i;c=J[g+36>>2];if(c)J[c+20>>2]=i;c=0;if(!(!(e&512)|!(K[g+12|0]&4))){H[s+12|0]=i;H[s+13|0]=i>>>8;X=g,Y=ig(J[g+28>>2],s+12|0,2),J[X+28>>2]=Y}i=0;break n}k=c+8|0;if(!f){d=e;j=0;c=k;e=o;break c}e=d+2|0;f=j-2|0;i=(K[d+1|0]<>>0>15){d=e;j=f;break Y}k=c+16|0;if(!f){d=e;j= +0;c=k;e=o;break c}e=d+3|0;f=j-3|0;i=(K[d+2|0]<>>0>7){d=e;j=f;break Y}c=c+24|0;if(!f){d=e;break e}j=j-4|0;i=(K[d+3|0]<>>8&65280|i>>>24);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16190;i=0;c=0}if(!J[g+16>>2]){J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+64>>2]=c;J[g+60>>2]=i;y=2;break a}e=Zo(0,0,0);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16191}if(P>>>0>=2)break V;e=o;break c}ma:{na:{if(!J[g+8>>2]){if(c>>>0<3)break na;break ma}J[g+4>>2]=16206;i=i>>>(c& +7)|0;c=c&-8;f=J[g+4>>2];continue}if(!j)break e;j=j-1|0;i=(K[d|0]<>2]=i&1;f=16193;oa:{pa:{qa:switch((i>>>1&3)-1|0){case 0:J[g+80>>2]=764528;J[g+88>>2]=9;J[g+92>>2]=5;J[g+84>>2]=766576;J[g+4>>2]=16199;if((b|0)!=6)break oa;c=c-3|0;i=i>>>3|0;e=o;break c;case 1:f=16196;break pa;case 2:break qa;default:break pa}J[a+24>>2]=13786;f=16209}J[g+4>>2]=f}c=c-3|0;i=i>>>3|0;f=J[g+4>>2];continue}i=i>>>(c&7)|0;c=c&-8;ra:{if(c>>>0>31)break ra;if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d| +0]<>>0>23){d=f;j=k;c=e;break ra}if(!k){d=f;j=0;c=e;e=o;break c}f=c+16|0;k=d+2|0;h=j-2|0;i=(K[d+1|0]<>>0>15){d=k;j=h;c=f;break ra}if(!h){d=k;j=0;c=f;e=o;break c}e=c+24|0;k=d+3|0;h=j-3|0;i=(K[d+2|0]<>>16|0)){J[a+24>>2]=4213;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16194;J[g+68>>2]=e;i=0;c=0;if((b|0)!=6)break T;e=o;break c}J[g+4>>2]= +16195}e=J[g+68>>2];if(e){e=e>>>0>>0?e:j;e=e>>>0>>0?e:n;if(!e){e=o;break c}f=xc(q,d,e);J[g+68>>2]=J[g+68>>2]-e;q=e+f|0;n=n-e|0;d=d+e|0;j=j-e|0;f=J[g+4>>2];continue}J[g+4>>2]=16191;f=J[g+4>>2];continue}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;j=j-2|0;i=(K[d+1|0]<>2]=e+257;f=i>>>5&31;J[g+104>>2]=f+1;h=(i>>>10&15)+4|0;J[g+96>>2]=h;c=c-14|0;i=i>>>14|0;if(!(f>>>0<30&e>>>0<=29)){J[a+24>>2]=4136;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16197;f=0;J[g+108>>2]=0;break J}f= +J[g+108>>2];h=J[g+96>>2];if(f>>>0>>0)break J;break I}if(!n)break A;H[q|0]=J[g+68>>2];J[g+4>>2]=16200;n=n-1|0;q=q+1|0;f=J[g+4>>2];continue}f=J[g+12>>2];if(!f){f=0;break K}sa:{if(c>>>0>31){k=d;break sa}if(!j)break e;e=c+8|0;k=d+1|0;h=j-1|0;i=(K[d|0]<>>0>23){j=h;c=e;break sa}if(!h){d=k;j=0;c=e;e=o;break c}h=c+16|0;k=d+2|0;l=j-2|0;i=(K[d+1|0]<>>0>15){j=l;c=h;break sa}if(!l){d=k;j=0;c=h;e=o;break c}e=c+24|0;k=d+3|0;l=j-3|0;i=(K[d+2|0]<>>0>7){j=l;c=e;break sa}if(!l){d= +k;j=0;c=e;e=o;break c}c=c+32|0;k=d+4|0;j=j-4|0;i=(K[d+3|0]<>2]=d+J[a+20>>2];J[g+32>>2]=d+J[g+32>>2];e=f&4;if(!(!e|(n|0)==(t|0))){e=q-d|0;f=J[g+28>>2];ta:{if(J[g+20>>2]){d=ig(f,e,d);break ta}d=Zo(f,e,d)}J[g+28>>2]=d;J[a+48>>2]=d;f=J[g+12>>2];e=f&4}if(!e|J[g+28>>2]==((J[g+20>>2]?i:i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24))|0))break L;J[a+24>>2]=10424;J[g+4>>2]=16209;d=k;t=n;f=J[g+4>>2];continue}J[g+4>>2]=16192;break q}d=k;i=0;c=0;t=n}J[g+4>>2]=16207;break h}while(1){if(c>>>0<=2){if(!j)break e; +j=j-1|0;i=(K[d|0]<>2]=e;I[((L[(f<<1)+764480>>1]<<1)+g|0)+116>>1]=i&7;c=c-3|0;i=i>>>3|0;f=e;if((e|0)!=(h|0))continue;break}f=h}if(f>>>0<=18){k=0;e=f;o=3-e&3;if(o)while(1){I[((L[(e<<1)+764480>>1]<<1)+g|0)+116>>1]=0;e=e+1|0;k=k+1|0;if((o|0)!=(k|0))continue;break}if(f-16>>>0>=3)while(1){o=g+116|0;f=e<<1;I[o+(L[f+764480>>1]<<1)>>1]=0;I[o+(L[f+764482>>1]<<1)>>1]=0;I[o+(L[f+764484>>1]<<1)>>1]=0;I[o+(L[f+764486>>1]<<1)>>1]=0;e=e+4|0;if((e|0)!=19)continue;break}J[g+ +108>>2]=19}J[g+88>>2]=7;J[g+80>>2]=z;J[g+112>>2]=z;k=0;o=qL(0,B,19,C,E,A);if(o){J[a+24>>2]=3328;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16198;J[g+108>>2]=0;o=0}w=J[g+100>>2];u=w+J[g+104>>2]|0;if(u>>>0>k>>>0){x=-1<>2]^-1;r=J[g+80>>2];while(1){m=c;f=j;e=d;ua:{va:{wa:{xa:{ya:{p=i&x;l=K[(r+(p<<2)|0)+1|0];za:{if(l>>>0<=c>>>0){h=c;break za}while(1){if(!f)break ya;l=K[e|0]<>>0>h>>>0)continue;break}}c=L[(r+(p<<2)|0)+2>> +1];if(c>>>0<=15){d=k+1|0;J[g+108>>2]=d;I[((k<<1)+g|0)+116>>1]=c;c=h-l|0;i=i>>>l|0;k=d;break ua}Aa:{Ba:{Ca:switch(c-16|0){case 0:d=l+2|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f-1|0;i=(K[e|0]<>>0>h>>>0)continue;break}c=h-l|0;h=i>>>l|0;if(!k){J[a+24>>2]=3731;J[g+4>>2]=16209;d=e;j=f;i=h;f=J[g+4>>2];continue d}c=c-2|0;i=h>>>2|0;l=(h&3)+3|0;j=L[((k<<1)+g|0)+114>>1];break Aa;case 1:d=l+3|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f-1|0;i=(K[e|0]<>> +0>h>>>0)continue;break}c=(h-l|0)-3|0;d=i>>>l|0;i=d>>>3|0;l=(d&7)+3|0;break Ba;default:break Ca}d=l+7|0;if(d>>>0>h>>>0)while(1){if(!f)break p;f=f-1|0;i=(K[e|0]<>>0>h>>>0)continue;break}c=(h-l|0)-7|0;d=i>>>l|0;i=d>>>7|0;l=(d&127)+11|0}j=0}if(u>>>0>>0)break wa;h=0;m=l&3;if(!m)break xa;d=l;while(1){I[((k<<1)+g|0)+116>>1]=j;k=k+1|0;d=d-1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}break va}d=d+j|0;c=(j<<3)+c|0;break e}d=l;break va}J[a+24>>2]=3731;J[g+4>>2]=16209;d=e;j=f; +f=J[g+4>>2];continue d}if(l>>>0>=4)while(1){h=(k<<1)+g|0;I[h+118>>1]=j;I[h+116>>1]=j;I[h+120>>1]=j;I[h+122>>1]=j;k=k+4|0;d=d-4|0;if(d)continue;break}J[g+108>>2]=k}d=e;j=f;if(k>>>0>>0)continue;break}}if(!L[g+628>>1]){J[a+24>>2]=10341;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+88>>2]=9;J[g+80>>2]=z;J[g+112>>2]=z;o=qL(1,B,w,C,E,A);if(o){J[a+24>>2]=3300;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+92>>2]=6;J[g+84>>2]=J[g+112>>2];o=qL(2,(J[g+100>>2]<<1)+B|0,J[g+104>>2],C,Q,A);if(o){J[a+24>>2]=3378;J[g+4>> +2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16199;o=0;if((b|0)!=6)break G;e=0;break c}J[g+4>>2]=16200}if(!(j>>>0<6|n>>>0<258)){J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+64>>2]=c;J[g+60>>2]=i;h=J[a+12>>2];e=J[a+16>>2];d=h+e|0;u=d+(t^-1)|0;l=J[a+28>>2];q=J[l+52>>2];R=(d+(q^-1)|0)-t|0;x=q&7;F=J[l+44>>2];S=q+F|0;w=d-257|0;T=(e-t|0)+h|0;j=J[a>>2];G=(j+J[a+4>>2]|0)-5|0;U=-1<>2]^-1;V=-1<>2]^-1;N=J[l+84>>2];O=J[l+80>>2];f=J[l+64>>2];n=J[l+60>>2];i=J[l+56>>2];W=J[l+48>>2];while(1){if(f>>> +0<=14){n=((K[j|0]<>>e|0;m=L[d+2>>1];Da:{Ea:{Fa:{c=K[d|0];if(!c)break Fa;Ga:{Ha:{Ia:{while(1){d=c&255;if(c&16){m=m&65535;d=d&15;Ja:{if(!d){e=j;c=n;break Ja}Ka:{if(d>>>0<=f>>>0){c=f;e=j;break Ka}c=f+8|0;n=(K[j|0]<>>d|0}if(f>>>0<=14){c=((K[e|0]<>>d|0;d=L[j+2>>1];c=K[j|0];if(c&16)break Ia; +while(1){if(!(c&64)){c=(((-1<>>d|0;d=L[c+2>>1];c=K[c|0];if(!(c&16))continue;break Ia}break}m=14641;j=e;break Ha}if(!(d&64)){d=(((-1<>>e|0;m=L[d+2>>1];c=K[d|0];if(!c)break Fa;continue}break}m=14613;e=16191;if(d&32)break Ga;break Ha}p=d&65535;c=c&15;La:{if(c>>>0<=f>>>0){d=f;j=e;break La}n=(K[e|0]<>>0<=d>>>0)break La;n=(K[e+1|0]<>>c|0;Ma:{r=e+p|0;d=h-T|0;if(r>>>0>d>>>0){k=r-d|0;if(!(!J[l+7108>>2]|k>>>0<=W>>>0)){m=10486;break Ha}Na:{Oa:{if(!q){c=i+(F-k|0)|0;if(k>>>0>=m>>>0)break Na;p=(p+(e+u|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>>0<7)break Oa;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}break Oa}if(k>>> +0>q>>>0){c=i+(S-k|0)|0;k=k-q|0;if(k>>>0>=m>>>0)break Na;p=(p+(e+R|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>>0>=7)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}m=m-k|0;if(q>>>0>=m>>>0){c=i;break Na}e=0;d=q;c=i;if(x)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((x| +0)!=(e|0))continue;break}if(q>>>0>=8)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}c=h-r|0;m=m-q|0;break Na}c=i+(q-k|0)|0;if(k>>>0>=m>>>0)break Na;p=(p+(e+u|0)|0)-h|0;e=0;d=k;v=d&7;if(v)while(1){H[h|0]=K[c|0];d=d-1|0;h=h+1|0;c=c+1|0;e=e+1|0;if((v|0)!=(e|0))continue;break}if(p>>>0<7)break Oa;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+ +3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;d=d-8|0;if(d)continue;break}}c=h-r|0;m=m-k|0}Pa:{if(m>>>0<3)break Pa;d=0;e=m-3|0;k=((e>>>0)/3|0)+1&3;if(k)while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];m=m-3|0;h=h+3|0;c=c+3|0;d=d+1|0;if((k|0)!=(d|0))continue;break}if(e>>>0<9)break Pa;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];H[h+ +8|0]=K[c+8|0];H[h+9|0]=K[c+9|0];H[h+10|0]=K[c+10|0];H[h+11|0]=K[c+11|0];h=h+12|0;c=c+12|0;m=m-12|0;if(m>>>0>2)continue;break}}if(!m)break Ea;H[h|0]=K[c|0];if((m|0)!=1)break Ma;h=h+1|0;break Ea}e=h-r|0;while(1){d=h;c=e;H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];h=d+3|0;e=c+3|0;m=m-3|0;if(m>>>0>2)continue;break}if(!m)break Ea;H[d+3|0]=K[e|0];if((m|0)==1){h=d+4|0;break Ea}H[d+4|0]=K[c+4|0];h=d+5|0;break Ea}H[h+1|0]=K[c+1|0];h=h+2|0;break Ea}J[a+24>>2]=m;e=16209}J[l+4>>2]=e;break Da}H[h|0]=m;h= +h+1|0}if(j>>>0>=G>>>0)break Da;if(h>>>0>>0)continue}break}J[a+12>>2]=h;d=j-(f>>>3|0)|0;J[a>>2]=d;J[a+16>>2]=(w-h|0)+257;J[a+4>>2]=(G-d|0)+5;d=f&7;J[l+64>>2]=d;J[l+60>>2]=(-1<>2];i=J[g+60>>2];j=J[a+4>>2];d=J[a>>2];n=J[a+16>>2];q=J[a+12>>2];if(J[g+4>>2]!=16191)break q;J[g+7112>>2]=-1;f=J[g+4>>2];continue}J[g+7112>>2]=0;k=c;f=j;e=d;r=J[g+80>>2];p=-1<>2]^-1;l=r+((p&i)<<2)|0;m=K[l+1|0];Qa:{if(m>>>0<=c>>>0){h=c;break Qa}while(1){if(!f)break t;l=K[e|0]<>>0>h>>>0)continue;break}}c=m;p=L[l+2>>1];l=K[l|0];Ra:{if((l-1&255)>>>0>14){c=0;d=e;j=f;break Ra}j=f;d=e;k=h;r=r+(p<<2)|0;u=-1<>>c<<2)|0;m=K[p+1|0];Sa:{if(m+c>>>0<=h>>>0){l=h;break Sa}while(1){if(!j)break u;m=K[d|0]<>>c<<2)|0;m=K[p+1|0];if(k>>>0>>0)continue;break}}h=l-c|0;i=i>>>c|0;l=K[p|0];p=L[p+2>>1]}J[g+68>>2]=p&65535;J[g+7112>>2]=c+m;c=h-m|0;i=i>>>m|0;e=l&255;if(!e){J[g+4>> +2]=16205;f=J[g+4>>2];continue}if(e&32){J[g+4>>2]=16191;J[g+7112>>2]=-1;f=J[g+4>>2];continue}if(e&64){J[a+24>>2]=14613;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16201;k=e&15;J[g+76>>2]=k}l=d;h=j;Ta:{if(!k){e=J[g+68>>2];break Ta}e=d;f=c;if(c>>>0>>0)while(1){if(!j)break v;j=j-1|0;i=(K[e|0]<>>0>f>>>0)continue;break}J[g+7112>>2]=J[g+7112>>2]+k;e=J[g+68>>2]+((-1<>2]=e;c=f-k|0;i=i>>>k|0}J[g+4>>2]=16202;J[g+7116>>2]=e}k=c;f=j;e=d;r=J[g+84>>2];p= +-1<>2]^-1;l=r+((p&i)<<2)|0;m=K[l+1|0];Ua:{if(m>>>0<=c>>>0){h=c;break Ua}while(1){if(!f)break w;l=K[e|0]<>>0>h>>>0)continue;break}}p=L[l+2>>1];k=K[l|0];Va:{if(k>>>0>=16){d=e;j=f;l=m;e=J[g+7112>>2];break Va}j=f;d=e;c=h;r=r+(p<<2)|0;u=-1<>>m<<2)|0;l=K[p+1|0];Wa:{if(c>>>0>=m+l>>>0){k=c;break Wa}while(1){if(!j)break x;l=K[d|0]<>>m<<2)|0;l=K[p+1|0];if(c>>> +0>>0)continue;break}}h=k-m|0;i=i>>>m|0;k=K[p|0];p=L[p+2>>1];e=J[g+7112>>2]+m|0}J[g+7112>>2]=e+l;c=h-l|0;i=i>>>l|0;if(k&64){J[a+24>>2]=14641;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+4>>2]=16203;k=k&15;J[g+76>>2]=k;J[g+72>>2]=p&65535}l=d;h=j;if(k){e=d;f=c;if(c>>>0>>0)while(1){if(!j)break y;j=j-1|0;i=(K[e|0]<>>0>f>>>0)continue;break}J[g+7112>>2]=J[g+7112>>2]+k;J[g+72>>2]=J[g+72>>2]+((-1<>>k|0;c=f-k|0}J[g+4>>2]=16204}if(n)break z}n=0;e=o;break c}e= +J[g+72>>2];f=t-n|0;Xa:{if(e>>>0>f>>>0){e=e-f|0;if(!(!J[g+7108>>2]|e>>>0<=M[g+48>>2])){J[a+24>>2]=10486;J[g+4>>2]=16209;f=J[g+4>>2];continue}f=J[g+52>>2];Ya:{if(f>>>0>>0){e=e-f|0;f=J[g+56>>2]+(J[g+44>>2]-e|0)|0;break Ya}f=J[g+56>>2]+(f-e|0)|0}k=J[g+68>>2];e=e>>>0>>0?e:k;break Xa}f=q-e|0;k=J[g+68>>2];e=k}h=e>>>0>>0?e:n;J[g+68>>2]=k-h;l=h-1|0;k=0;m=h&7;if(!m)break s;e=h;while(1){H[q|0]=K[f|0];e=e-1|0;q=q+1|0;f=f+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}break r}d=h+l|0;c=(h<<3)+c|0;break e}d= +e+f|0;c=(f<<3)+h|0;break e}d=d+j|0;c=(j<<3)+c|0;break e}d=h+l|0;c=(h<<3)+c|0;break e}d=e+f|0;c=(f<<3)+h|0;break e}d=d+j|0;c=(j<<3)+c|0;break e}e=h}if(l>>>0>=7)while(1){H[q|0]=K[f|0];H[q+1|0]=K[f+1|0];H[q+2|0]=K[f+2|0];H[q+3|0]=K[f+3|0];H[q+4|0]=K[f+4|0];H[q+5|0]=K[f+5|0];H[q+6|0]=K[f+6|0];H[q+7|0]=K[f+7|0];q=q+8|0;f=f+8|0;e=e-8|0;if(e)continue;break}n=n-h|0;if(J[g+68>>2])break q;J[g+4>>2]=16200;f=J[g+4>>2];continue}f=J[g+4>>2];continue}j=0;d=e;c=h;e=o;break c}e=J[g+36>>2];if(e)J[e+16>>2]=0;c=f}J[g+ +4>>2]=16185}Za:{k=J[g+20>>2];if(!(k&1024))break Za;f=J[g+68>>2];e=f>>>0>>0?f:j;if(e){h=J[g+36>>2];_a:{if(!h)break _a;l=J[h+16>>2];if(!l)break _a;f=J[h+20>>2]-f|0;k=J[h+24>>2];xc(f+l|0,d,k>>>0>>0?k-f|0:e);k=J[g+20>>2]}if(!(!(k&512)|!(K[g+12|0]&4)))X=g,Y=ig(J[g+28>>2],d,e),J[X+28>>2]=Y;f=J[g+68>>2]-e|0;J[g+68>>2]=f;j=j-e|0;d=d+e|0}if(!f)break Za;e=o;break c}J[g+4>>2]=16186;J[g+68>>2]=0}$a:{if(K[g+21|0]&8){f=0;if(!j)break e;while(1){e=K[d+f|0];k=J[g+36>>2];ab:{if(!k)break ab;h=J[k+28>>2];if(!h)break ab; +l=J[k+32>>2];k=J[g+68>>2];if(l>>>0<=k>>>0)break ab;J[g+68>>2]=k+1;H[h+k|0]=e}f=f+1|0;if(j>>>0>f>>>0?e:0)continue;break}if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4)))X=g,Y=ig(J[g+28>>2],d,f),J[X+28>>2]=Y;d=d+f|0;j=j-f|0;if(!e)break $a;e=o;break c}e=J[g+36>>2];if(!e)break $a;J[e+28>>2]=0}J[g+4>>2]=16187;J[g+68>>2]=0}bb:{if(K[g+21|0]&16){f=0;if(!j)break e;while(1){e=K[d+f|0];k=J[g+36>>2];cb:{if(!k)break cb;h=J[k+36>>2];if(!h)break cb;l=J[k+40>>2];k=J[g+68>>2];if(l>>>0<=k>>>0)break cb;J[g+68>>2]=k+1;H[h+k|0]=e}f= +f+1|0;if(j>>>0>f>>>0?e:0)continue;break}if(!(!(K[g+21|0]&2)|!(K[g+12|0]&4)))X=g,Y=ig(J[g+28>>2],d,f),J[X+28>>2]=Y;d=d+f|0;j=j-f|0;if(!e)break bb;e=o;break c}e=J[g+36>>2];if(!e)break bb;J[e+36>>2]=0}J[g+4>>2]=16188}h=J[g+20>>2];if(h&512){db:{if(c>>>0>15){f=d;break db}if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0>7){j=k;c=e;break db}if(!k){d=f;j=0;c=e;e=o;break c}c=c+16|0;f=d+2|0;j=j-2|0;i=(K[d+1|0]<>1]==(i|0))){J[a+24>>2]=11232;J[g+4>>2]=16209; +d=f;f=J[g+4>>2];continue}i=0;c=0;d=f}e=J[g+36>>2];if(e){J[e+48>>2]=1;J[e+44>>2]=h>>>9&1}e=ig(0,0,0);J[g+28>>2]=e;J[a+48>>2]=e;J[g+4>>2]=16191;f=J[g+4>>2];continue}J[g+20>>2]=0;e=J[g+36>>2];if(e)J[e+48>>2]=-1;eb:{if(l&1)if(!(((f<<8&65280)+(f>>>8|0)>>>0)%31|0))break eb;J[a+24>>2]=10378;J[g+4>>2]=16209;i=f;f=J[g+4>>2];continue}if((f&15)!=8){J[a+24>>2]=15059;J[g+4>>2]=16209;i=f;f=J[g+4>>2];continue}i=f>>>4|0;h=i&15;k=h+8|0;l=h>>>0<=7;e=J[g+40>>2];if(!e){J[g+40>>2]=k;e=k}if(!(e>>>0>=k>>>0&l)){c=c-4|0; +J[a+24>>2]=13212;J[g+4>>2]=16209;f=J[g+4>>2];continue}J[g+24>>2]=256<>2]=e;J[a+48>>2]=e;J[g+4>>2]=f&8192?16189:16191;c=0;f=J[g+4>>2];continue}if(!(!f|!J[g+20>>2])){fb:{if(c>>>0>31){f=d;break fb}if(!j)break e;e=c+8|0;f=d+1|0;k=j-1|0;i=(K[d|0]<>>0>23){j=k;c=e;break fb}if(!k){d=f;j=0;c=e;e=o;break c}k=c+16|0;f=d+2|0;h=j-2|0;i=(K[d+1|0]<>>0>15){j=h;c=k;break fb}if(!h){d=f;j=0;c=k;e=o;break c}e=c+24|0;f=d+3|0;h=j-3|0;i=(K[d+2|0]<>>0>7){j= +h;c=e;break fb}if(!h){d=f;j=0;c=e;e=o;break c}c=c+32|0;f=d+4|0;j=j-4|0;i=(K[d+3|0]<>2]!=(i|0))break f;i=0;c=0;d=f}J[g+4>>2]=16208}e=1;break c}J[a+24>>2]=10401;J[g+4>>2]=16209;d=f;f=J[g+4>>2];continue}break}j=0;e=o}J[a+16>>2]=n;J[a+12>>2]=q;J[a+4>>2]=j;J[a>>2]=d;J[g+64>>2]=c;J[g+60>>2]=i;gb:{hb:{ib:{if(J[g+44>>2])break ib;if((n|0)==(t|0))break hb;d=J[g+4>>2];if(d>>>0>16208)break hb;if((b|0)!=4)break ib;if(d>>>0>16205)break hb}c=t-n|0;d=J[a+28>>2];j=J[d+56>>2];jb:{if(!j){o=1;j=kc[J[a+ +32>>2]](J[a+40>>2],1<>2],1)|0;J[d+56>>2]=j;if(!j)break jb}f=J[d+44>>2];if(!f){J[d+48>>2]=0;J[d+52>>2]=0;f=1<>2];J[d+44>>2]=f}kb:{if(c>>>0>=f>>>0){xc(j,q-f|0,f);J[d+52>>2]=0;break kb}k=f;f=J[d+52>>2];k=k-f|0;o=k>>>0>>0;j=f+j|0;f=o?k:c;xc(j,q-c|0,f);if(o){c=c-f|0;xc(J[d+56>>2],q-c|0,c);J[d+52>>2]=c;break kb}o=0;c=f+J[d+52>>2]|0;j=c;c=J[d+44>>2];J[d+52>>2]=(j|0)!=(c|0)?j:0;j=c;c=J[d+48>>2];if(j>>>0<=c>>>0)break jb;J[d+48>>2]=c+f;break jb}J[d+48>>2]=J[d+44>>2];o=0}if(o)break gb;n=J[a+ +16>>2];j=J[a+4>>2]}J[a+8>>2]=J[a+8>>2]+(D-j|0);d=t-n|0;J[a+20>>2]=d+J[a+20>>2];J[g+32>>2]=d+J[g+32>>2];if(!(!(K[g+12|0]&4)|(n|0)==(t|0))){c=J[a+12>>2]-d|0;f=J[g+28>>2];lb:{if(J[g+20>>2]){d=ig(f,c,d);break lb}d=Zo(f,c,d)}J[g+28>>2]=d;J[a+48>>2]=d}d=a;a=J[g+4>>2];J[d+44>>2]=((J[g+64>>2]+((J[g+8>>2]!=0)<<6)|0)+(((a|0)==16191)<<7)|0)+((a|0)==16199?256:((a|0)==16194)<<8);a=e?e:-5;y=(b|0)==4?a:(j|0)==(D|0)?(n|0)==(t|0)?a:e:e;break a}J[g+4>>2]=16210}y=-4}fc=s+16|0;return y}function $X(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=fc-224|0;fc=c;sI(a);J[a+24>>2]=b;f=uq(c+212|0);d=J[a+24>>2];J[699344]=0;b=_(4,48)|0;e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((e|0)!=1){J[c+200>>2]=b;J[c+204>>2]=11;J[c+208>>2]=-2147483636;J[b+40>>2]=J[594083];e=J[594082];J[b+32>>2]=J[594081];J[b+36>>2]=e;e=J[594080];J[b+24>>2]=J[594079];J[b+28>>2]=e;e=J[594078];J[b+16>>2]=J[594077];J[b+20>>2]=e;e=J[594076];J[b+8>>2]=J[594075];J[b+12>>2]=e;e=J[594074];J[b>>2]=J[594073];J[b+4>>2]=e;J[b+44>>2]= +0;J[699344]=0;b=c+56|0;ca(4961,b|0,d|0,c+200|0);d=J[699344];J[699344]=0;if((d|0)==1)break h;J[699344]=0;b=aa(3469,f|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;if(H[c+67|0]<0)uc(J[c+56>>2]);if(H[c+211|0]<0)uc(J[c+200>>2]);if(b)break e;break a}e=Z()|0;break d}e=Z()|0;break f}e=Z()|0;if(H[c+67|0]>=0)break f;uc(J[c+56>>2])}if(H[c+211|0]>=0)break d;uc(J[c+200>>2]);break d}J[699344]=0;b=_(3470,f|0)|0;d=J[699344];J[699344]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{if((d| +0)!=1){if(!b)break a;J[699344]=0;d=c+200|0;da(4962,d|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break D;e=K[c+211|0];b=e<<24>>24;b=(b|0)<0;if(((b?J[c+204>>2]:e)|0)!=13)break b;if(qd(b?J[c+200>>2]:d,2376340,13))break b;J[c+192>>2]=0;J[c+184>>2]=0;J[c+188>>2]=0;while(1){E:{J[699344]=0;b=_(3470,f|0)|0;d=J[699344];J[699344]=0;F:{if((d|0)!=1){if(!b)break E;J[699344]=0;da(4962,c+56|0,f|0);b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+211|0]<0)uc(J[c+200>>2]);d=c- -64|0;J[c+208>>2]=J[d>>2];b=J[c+60>>2];J[c+ +200>>2]=J[c+56>>2];J[c+204>>2]=b;e=H[c+211|0];b=(e|0)<0;if(((b?J[c+204>>2]:e&255)|0)!=12)continue;if(qd(b?J[c+200>>2]:c+200|0,2376396,12))continue;J[d>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[699344]=0;e=c+56|0;ca(4963,f|0,2376448,e|0);b=J[699344];J[699344]=0;if((b|0)!=1){g=1;d=K[c+67|0];b=d<<24>>24<0;d=b?J[c+60>>2]:d;if((d|0)<19)break F;e=b?J[c+56>>2]:e;i=e+(d<<2)|0;b=e;while(1){b=og(b,102,d-18|0);if(!b)break F;if(qd(b,2376468,19)){b=b+4|0;d=i-b>>2;if((d|0)>=19)continue;break F}break}if((b|0)==(i|0)|(b- +e|0)==-4)break F;d=K[c+67|0];b=d<<24>>24<0;d=b?J[c+60>>2]:d;G:{H:{if((d|0)<5)break H;e=b?J[c+56>>2]:c+56|0;i=e+(d<<2)|0;b=e;while(1){b=og(b,47,d-4|0);if(!b)break H;if(qd(b,2376548,5)){b=b+4|0;d=i-b>>2;if((d|0)>=5)continue;break H}break}if((b|0)==(i|0))break H;if((b-e|0)!=-4)break G}d=K[c+67|0];b=d<<24>>24<0;d=b?J[c+60>>2]:d;if((d|0)<6)break F;e=b?J[c+56>>2]:c+56|0;i=e+(d<<2)|0;b=e;while(1){b=og(b,47,d-5|0);if(!b)break F;if(qd(b,2376572,6)){b=b+4|0;d=i-b>>2;if((d|0)<6)break F;continue}break}if((b| +0)==(i|0)|(b-e|0)==-4)break F}g=0;J[699344]=0;ca(4963,f|0,2376600,c+184|0);b=J[699344];J[699344]=0;if((b|0)!=1)break F}e=Z()|0;if(H[c+67|0]>=0)break i;uc(J[c+56>>2]);break i}e=Z()|0;break i}e=Z()|0;break i}if(H[c+67|0]<0)uc(J[c+56>>2]);if(g)continue}break}J[699344]=0;d=c+184|0;$(4964,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break j;b=K[c+195|0];if(!(b<<24>>24<0?J[c+188>>2]:b))break c;J[699344]=0;$(4965,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break j;b=J[a+24>>2];J[699344]=0;b=aa(4966,b|0,d|0)|0; +e=J[699344];J[699344]=0;if((e|0)==1)break j;I:{if(b)break I;J[699344]=0;b=_(4,48)|0;e=J[699344];J[699344]=0;J:{K:{L:{if((e|0)!=1){J[c+168>>2]=b;J[c+172>>2]=11;J[c+176>>2]=-2147483636;J[b+40>>2]=J[594083];e=J[594082];J[b+32>>2]=J[594081];J[b+36>>2]=e;e=J[594080];J[b+24>>2]=J[594079];J[b+28>>2]=e;e=J[594078];J[b+16>>2]=J[594077];J[b+20>>2]=e;e=J[594076];J[b+8>>2]=J[594075];J[b+12>>2]=e;e=J[594074];J[b>>2]=J[594073];J[b+4>>2]=e;J[b+44>>2]=0;J[699344]=0;b=c+56|0;da(4967,b|0,c+168|0);e=J[699344];J[699344]= +0;if((e|0)==1)break L;J[699344]=0;e=b;g=d;b=K[c+195|0];d=b<<24>>24<0;b=ga(2960,e|0,(d?J[c+184>>2]:g)|0,(d?J[c+188>>2]:b)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break K;e=J[b>>2];J[c+156>>2]=J[b+4>>2];d=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[c+159|0]=d;H[c+160|0]=d>>>8;H[c+161|0]=d>>>16;H[c+162|0]=d>>>24;J[b>>2]=0;J[b+4>>2]=0;g=K[b+11|0];J[b+8>>2]=0;if(H[c+195|0]<0)uc(J[c+184>>2]);J[c+184>>2]=e;b=c+184|4;d=K[c+159|0]|K[c+160|0]<<8|(K[c+161|0]<<16|K[c+162|0]<<24);H[b+3|0]=d;H[b+4|0]= +d>>>8;H[b+5|0]=d>>>16;H[b+6|0]=d>>>24;J[b>>2]=J[c+156>>2];H[c+195|0]=g;if(H[c+67|0]<0)uc(J[c+56>>2]);if(H[c+179|0]<0)uc(J[c+168>>2]);b=J[a+24>>2];J[699344]=0;b=aa(4966,b|0,c+184|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;if(b)break I;break c}e=Z()|0;break i}e=Z()|0;break J}e=Z()|0;if(H[c+67|0]>=0)break J;uc(J[c+56>>2])}if(H[c+179|0]>=0)break i;uc(J[c+168>>2]);break i}b=J[a+24>>2];J[699344]=0;d=c+56|0;ca(4961,d|0,b|0,c+184|0);b=J[699344];J[699344]=0;M:{N:{O:{P:{Q:{if((b|0)!=1){J[699344]=0;b= +aa(3469,f|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Q;if(H[c+67|0]<0)uc(J[c+56>>2]);if(!b)break c;J[699344]=0;b=_(3470,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;if(!b)break c;J[699344]=0;da(4962,c+56|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break M;if(H[c+211|0]<0)uc(J[c+200>>2]);d=c- -64|0;J[c+208>>2]=J[d>>2];b=J[c+60>>2];J[c+200>>2]=J[c+56>>2];J[c+204>>2]=b;if(dC(2376628,c+200|0))break c;J[c+176>>2]=0;J[c+168>>2]=0;J[c+172>>2]=0;while(1){J[699344]=0;b=_(3470,f|0)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break N;if(!b)break O;J[699344]=0;da(4962,c+56|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break P;if(H[c+211|0]<0)uc(J[c+200>>2]);J[c+208>>2]=J[d>>2];b=J[c+60>>2];J[c+200>>2]=J[c+56>>2];J[c+204>>2]=b;e=H[c+211|0];b=(e|0)<0;if(((b?J[c+204>>2]:e&255)|0)!=17)continue;if(qd(b?J[c+200>>2]:c+200|0,2376716,17))continue;break}J[699344]=0;ca(4963,f|0,2376788,c+168|0);b=J[699344];J[699344]=0;if((b|0)!=1)break O;break l}e=Z()|0;break i}e=Z()|0;if(H[c+67|0]>=0)break i;uc(J[c+56>>2]);break i}e= +Z()|0;break k}J[699344]=0;b=c+168|0;$(4964,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;d=K[c+179|0];if(!(d<<24>>24<0?J[c+172>>2]:d))break m;d=J[a+24>>2];J[699344]=0;d=aa(4966,d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;R:{if(d)break R;J[699344]=0;d=c+56|0;da(4967,d|0,c+184|0);e=J[699344];J[699344]=0;S:{if((e|0)!=1){J[699344]=0;e=d;g=b;b=K[c+179|0];d=b<<24>>24<0;b=ga(2960,e|0,(d?J[c+168>>2]:g)|0,(d?J[c+172>>2]:b)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break S;e=J[b>>2];J[c+156>>2]= +J[b+4>>2];d=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[c+159|0]=d;H[c+160|0]=d>>>8;H[c+161|0]=d>>>16;H[c+162|0]=d>>>24;J[b>>2]=0;J[b+4>>2]=0;g=K[b+11|0];J[b+8>>2]=0;if(H[c+179|0]<0)uc(J[c+168>>2]);J[c+168>>2]=e;b=c+168|4;d=K[c+159|0]|K[c+160|0]<<8|(K[c+161|0]<<16|K[c+162|0]<<24);H[b+3|0]=d;H[b+4|0]=d>>>8;H[b+5|0]=d>>>16;H[b+6|0]=d>>>24;J[b>>2]=J[c+156>>2];H[c+179|0]=g;if(H[c+67|0]<0)uc(J[c+56>>2]);b=J[a+24>>2];J[699344]=0;b=aa(4966,b|0,c+168|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l; +if(b)break R;break m}e=Z()|0;break k}e=Z()|0;if(H[c+67|0]>=0)break k;uc(J[c+56>>2]);break k}J[699344]=0;b=c+156|0;d=c+168|0;da(4967,b|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break n;J[699344]=0;$(4965,f|0);e=J[699344];J[699344]=0;if((e|0)==1)break p;J[699344]=0;e=c+128|0;ca(4968,e|0,b|0,2376816);b=J[699344];J[699344]=0;if((b|0)==1)break q;J[699344]=0;b=c+112|0;da(2964,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break s;J[699344]=0;g=b;b=K[c+123|0];d=b<<24>>24<0;b=ga(2960,e|0,(d?J[c+112>>2]:g)| +0,(d?J[c+116>>2]:b)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;J[c- -64>>2]=J[b+8>>2];d=J[b+4>>2];J[c+56>>2]=J[b>>2];J[c+60>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[699344]=0;b=aa(3026,c+56|0,2376844)|0;d=J[699344];J[699344]=0;if((d|0)==1)break v;J[c+152>>2]=J[b+8>>2];d=J[b+4>>2];J[c+144>>2]=J[b>>2];J[c+148>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[c+67|0]<0)uc(J[c+56>>2]);if(H[c+123|0]<0)uc(J[c+112>>2]);if(H[c+139|0]<0)uc(J[c+128>>2]);J[c+136>>2]=0;J[c+128>>2]=0;J[c+132>>2]=0;b=J[a+24>> +2];d=J[J[b>>2]+32>>2];J[699344]=0;e=b;b=c+144|0;d=aa(d|0,e|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break x;T:{if(!d)break T;d=J[a+24>>2];J[699344]=0;e=c+56|0;ca(4961,e|0,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break y;J[699344]=0;b=aa(3469,f|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break z;d=0;U:{if(!b)break U;J[699344]=0;b=_(3470,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break z;if(!b)break U;J[699344]=0;b=c+112|0;da(4962,b|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break z;d=Cl(b, +2376340);if(H[c+123|0]>=0)break U;uc(J[c+112>>2])}if(H[c+67|0]<0)uc(J[c+56>>2]);if(!d)break T;e=c- -64|0;while(1){J[699344]=0;b=_(3470,f|0)|0;d=J[699344];J[699344]=0;V:{W:{if((d|0)!=1){if(!b)break T;J[699344]=0;g=c+56|0;da(4962,g|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break W;b=0;i=K[c+67|0];d=i<<24>>24;j=(d|0)<0;if(((j?J[c+60>>2]:i)|0)==12){b=!qd(j?J[c+56>>2]:g,2376396,12);d=K[c+67|0]}if(d<<24>>24<0)uc(J[c+56>>2]);if(!b)continue;J[e>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[699344]=0;b=c+56|0;ca(4963, +f|0,2376448,b|0);d=J[699344];J[699344]=0;if((d|0)!=1){b=Uj(2376868,b);if(!b)break V;J[699344]=0;ca(4963,f|0,2376600,c+128|0);d=J[699344];J[699344]=0;if((d|0)!=1)break V}e=Z()|0;if(H[c+67|0]>=0)break w;uc(J[c+56>>2]);break w}e=Z()|0;break w}e=Z()|0;break w}if(H[c+67|0]<0)uc(J[c+56>>2]);if(!b)continue;break}}J[c+120>>2]=0;J[c+112>>2]=0;J[c+116>>2]=0;b=H[c+139|0];if(!((b|0)<0?J[c+132>>2]:b&255))break C;b=J[a+24>>2];d=J[J[b>>2]+32>>2];J[699344]=0;e=d;d=c+128|0;b=aa(e|0,b|0,d|0)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break B;X:{Y:{if(!b){b=J[a+24>>2];J[699344]=0;e=c+56|0;ca(4969,e|0,c+156|0,d|0);d=J[699344];J[699344]=0;Z:{_:{$:{if((d|0)!=1){d=J[J[b>>2]+32>>2];J[699344]=0;b=aa(d|0,b|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break $;if(H[c+67|0]<0)uc(J[c+56>>2]);if(!b)break Z;J[699344]=0;ca(4969,c+56|0,c+156|0,c+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break _;if(H[c+123|0]<0)uc(J[c+112>>2]);J[c+120>>2]=J[c- -64>>2];b=J[c+60>>2];J[c+112>>2]=J[c+56>>2];J[c+116>>2]=b;break C}e=Z()|0;break A}e=Z()| +0;if(H[c+67|0]>=0)break A;uc(J[c+56>>2]);break A}e=Z()|0;break A}J[699344]=0;b=c+56|0;da(4967,b|0,c+144|0);d=J[699344];J[699344]=0;if((d|0)==1)break Y;J[699344]=0;e=b;b=K[c+139|0];d=b<<24>>24<0;b=ga(2960,e|0,(d?J[c+128>>2]:c+128|0)|0,(d?J[c+132>>2]:b)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break X;e=J[b>>2];J[c+96>>2]=J[b+4>>2];d=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[c+99|0]=d;H[c+100|0]=d>>>8;H[c+101|0]=d>>>16;H[c+102|0]=d>>>24;J[b>>2]=0;J[b+4>>2]=0;g=K[b+11|0];J[b+8>>2]=0;if(H[c+ +139|0]<0)uc(J[c+128>>2]);J[c+128>>2]=e;b=c+128|4;d=K[c+99|0]|K[c+100|0]<<8|(K[c+101|0]<<16|K[c+102|0]<<24);H[b+3|0]=d;H[b+4|0]=d>>>8;H[b+5|0]=d>>>16;H[b+6|0]=d>>>24;J[b>>2]=J[c+96>>2];H[c+139|0]=g;if(H[c+67|0]<0)uc(J[c+56>>2]);b=J[a+24>>2];d=J[J[b>>2]+32>>2];J[699344]=0;b=aa(d|0,b|0,c+128|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break B;if(!b)break C}J[699344]=0;aa(2981,c+112|0,c+128|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break C;break B}e=Z()|0;break A}e=Z()|0;if(H[c+67|0]>=0)break A;uc(J[c+56>> +2]);break A}e=Z()|0;break k}e=Z()|0;break i}e=Z()|0;break d}e=Z()|0;break d}aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{b=K[c+123|0];if(!(b<<24>>24<0?J[c+116>>2]:b))break ia;J[699344]=0;$(4965,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break B;b=J[a+24>>2];J[699344]=0;e=c+56|0;ca(4961,e|0,b|0,c+112|0);b=J[699344];J[699344]=0;if((b|0)==1)break aa;d=0;J[699344]=0;b=aa(3469,f|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ba;ja:{if(!b)break ja;J[699344]=0;b=_(3470,f|0)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break ba;if(!b)break ja;J[699344]=0;b=c+96|0;da(4962,b|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break ba;d=Cl(b,2377104);if(H[c+107|0]>=0)break ja;uc(J[c+96>>2])}if(H[c+67|0]<0)uc(J[c+56>>2]);if(!d)break ia;ka:{la:{ma:while(1){J[699344]=0;b=_(3470,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break la;if(!b)break ia;J[699344]=0;b=c+56|0;da(4962,b|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break ca;d=0;na:{if(!Uj(2377176,b))break na;J[699344]=0;b=_(3470,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break da; +if(!b)break na;J[699344]=0;b=c+96|0;da(4962,b|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break da;d=Cl(b,2377280);if(H[c+107|0]>=0)break na;uc(J[c+96>>2])}if(H[c+67|0]<0)uc(J[c+56>>2]);if(!d)continue;oa:while(1){J[699344]=0;b=_(3470,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break ka;if(!b)continue ma;J[699344]=0;e=c+56|0;da(4962,e|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break ea;b=0;g=K[c+67|0];d=g<<24>>24;j=(d|0)<0;if(((j?J[c+60>>2]:g)|0)==12){b=!qd(j?J[c+56>>2]:e,2377344,12);d=K[c+67|0]}if(d<< +24>>24<0)uc(J[c+56>>2]);if(!b)continue;J[c+72>>2]=0;J[c+76>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;J[c+56>>2]=1;J[c+60>>2]=0;while(1){pa:{J[699344]=0;b=Mi(f);d=J[699344];J[699344]=0;qa:{ra:{sa:{ta:{ua:{if((d|0)!=1){if(b){J[699344]=0;i=c+96|0;da(4970,i|0,f|0);b=J[699344];J[699344]=0;va:{wa:{xa:{if((b|0)!=1){J[699344]=0;da(4971,c+40|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break xa;d=K[c+107|0];e=d<<24>>24;g=(e|0)<0;ya:{b=J[c+100>>2];if(((g?b:d)|0)==12){if(!qd(g? +J[c+96>>2]:i,2377396,12))break ya;d=K[c+107|0];e=d;b=J[c+100>>2]}g=e<<24>>24<0;if(((g?b:d)|0)==11)break wa;break ra}J[699344]=0;b=_(4972,c+40|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break va;J[c+56>>2]=b;break qa}e=Z()|0;break fa}e=Z()|0;break ga}if(qd(g?J[c+96>>2]:c+96|0,2377448,11)){b=J[c+100>>2];d=K[c+107|0];e=d;break ra}J[699344]=0;b=H[c+51|0];d=(b|0)<0;ia(1626,c+24|0,(d?J[c+40>>2]:c+40|0)|0,(d?J[c+44>>2]:b&255)|0,0);b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+83|0]<0)uc(J[c+72>>2]);b=J[c+28>> +2];J[c+72>>2]=J[c+24>>2];J[c+76>>2]=b;J[c+80>>2]=J[c+32>>2];break qa}break ha}break ha}J[699344]=0;gj(f);b=J[699344];J[699344]=0;if((b|0)==1)break sa;b=J[a+4>>2];if((b|0)!=J[a+8>>2]){d=J[c+60>>2];J[b>>2]=J[c+56>>2];J[b+4>>2]=d;d=c- -64|0;e=J[d+4>>2];J[b+8>>2]=J[d>>2];J[b+12>>2]=e;d=b+16|0;za:{Aa:{Ba:{if(H[c+83|0]>=0){e=J[c+76>>2];J[d>>2]=J[c+72>>2];J[d+4>>2]=e;J[d+8>>2]=J[c+80>>2];break Ba}J[699344]=0;ca(2838,d|0,J[c+72>>2],J[c+76>>2]);e=J[699344];J[699344]=0;if((e|0)==1)break Aa}e=b+28|0;if(H[c+ +95|0]>=0){d=J[c+88>>2];J[e>>2]=J[c+84>>2];J[e+4>>2]=d;J[e+8>>2]=J[c+92>>2];break ua}J[699344]=0;ca(15,e|0,J[c+84>>2],J[c+88>>2]);e=J[699344];J[699344]=0;if((e|0)!=1)break ua;e=Z()|0;if(H[b+27|0]>=0)break za;uc(J[d>>2]);J[a+4>>2]=b;break fa}e=Z()|0}J[a+4>>2]=b;break fa}J[699344]=0;da(4973,a|0,c+56|0);b=J[699344];J[699344]=0;if((b|0)==1)break sa;break ta}e=Z()|0;break fa}J[a+4>>2]=b+40}if(H[c+95|0]<0)uc(J[c+84>>2]);if(H[c+83|0]>=0)continue oa;uc(J[c+72>>2]);continue oa}e=Z()|0;break fa}g=b;b=e<<24>> +24<0;if(((b?g:d)|0)!=13)break qa;if(qd(b?J[c+96>>2]:c+96|0,2377496,13))break qa;b=c+40|0;d=Ci(b,35,0);if((d|0)==-1)break qa;J[699344]=0;b=na(2963,c+12|0,b|0,d+1|0,-1,c+24|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break pa;if(H[c+95|0]<0)uc(J[c+84>>2]);d=J[b+4>>2];J[c+84>>2]=J[b>>2];J[c+88>>2]=d;J[c+92>>2]=J[b+8>>2]}if(H[c+51|0]<0)uc(J[c+40>>2]);if(H[c+107|0]>=0)continue;uc(J[c+96>>2]);continue}break}break}break}break ha}e=Z()|0;break A}e=Z()|0;break A}J[699344]=0;$(4965,f|0);b=J[699344];J[699344]= +0;if((b|0)==1)break B;b=J[a+24>>2];J[699344]=0;d=c+56|0;ca(4961,d|0,b|0,c+168|0);b=J[699344];J[699344]=0;Ca:{Da:{Ea:{if((b|0)!=1){J[699344]=0;b=aa(3469,f|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Ea;if(H[c+67|0]<0)uc(J[c+56>>2]);if(!b)break Ca;J[699344]=0;b=_(3470,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break B;if(b)break Da;break Ca}e=Z()|0;break A}e=Z()|0;if(H[c+67|0]>=0)break A;uc(J[c+56>>2]);break A}J[699344]=0;da(4962,c+56|0,f|0);b=J[699344];J[699344]=0;Fa:{Ga:{Ha:{Ia:{Ja:{if((b| +0)!=1){if(H[c+211|0]<0)uc(J[c+200>>2]);e=c- -64|0;J[c+208>>2]=J[e>>2];b=J[c+60>>2];J[c+200>>2]=J[c+56>>2];J[c+204>>2]=b;if(dC(2377552,c+200|0))break Ca;J[c+104>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;m=a+40|0;n=a+28|0;i=a+12|0;g=0;Ka:{La:{while(1){Ma:{J[699344]=0;b=_(3470,f|0)|0;d=J[699344];J[699344]=0;Na:{Oa:{Pa:{if((d|0)!=1){if(!b)break Pa;J[699344]=0;da(4962,c+56|0,f|0);b=J[699344];J[699344]=0;Qa:{Ra:{Sa:{Ta:{if((b|0)!=1){if(H[c+211|0]<0)uc(J[c+200>>2]);J[c+208>>2]=J[e>>2];b=J[c+60>>2];J[c+200>>2]=J[c+ +56>>2];J[c+204>>2]=b;if(!Uj(2377608,c+200|0))continue;J[699344]=0;ca(4963,f|0,2376788,c+96|0);b=J[699344];J[699344]=0;if((b|0)!=1){Ua:{if(H[c+107|0]>=0){J[c+48>>2]=J[c+104>>2];b=J[c+100>>2];J[c+40>>2]=J[c+96>>2];J[c+44>>2]=b;break Ua}J[699344]=0;ca(15,c+40|0,J[c+96>>2],J[c+100>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break Ta}J[699344]=0;b=c+40|0;$(4964,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break Sa;d=J[a+24>>2];J[699344]=0;b=aa(4966,d|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Sa;if(!b){J[699344]= +0;ca(4969,c+56|0,c+156|0,c+96|0);b=J[699344];J[699344]=0;if((b|0)==1)break Ra;if(H[c+51|0]<0)uc(J[c+40>>2]);J[c+48>>2]=J[e>>2];b=J[c+60>>2];J[c+40>>2]=J[c+56>>2];J[c+44>>2]=b;b=J[a+24>>2];J[699344]=0;b=aa(4966,b|0,c+40|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Sa;if(!b)break Na}J[699344]=0;b=w2(f);d=J[699344];J[699344]=0;if((d|0)==1)break Sa;if(b)break Oa;J[699344]=0;o=$g(f);b=J[699344];J[699344]=0;if((b|0)!=1)break Qa;e=Z()|0;break Ga}e=Z()|0;break Fa}e=Z()|0;break Fa}e=Z()|0;break Fa}e=Z()| +0;break Ga}e=Z()|0;break Ga}Va:while(1){J[699344]=0;b=aa(4975,f|0,o|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Ha;if(!b)break Oa;J[699344]=0;h=c+56|0;da(4962,h|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break Ia;b=0;k=K[c+67|0];d=k<<24>>24;j=(d|0)<0;if(((j?J[c+60>>2]:k)|0)==23){b=!qd(j?J[c+56>>2]:h,2377656,23);d=K[c+67|0]}if(d<<24>>24<0)uc(J[c+56>>2]);if(!b)continue;J[699344]=0;p=$g(f);b=J[699344];J[699344]=0;if((b|0)==1)break Ja;while(1){J[699344]=0;b=aa(4975,f|0,p|0)|0;d=J[699344];J[699344]= +0;Wa:{Xa:{Ya:{Za:{_a:{$a:{if((d|0)!=1){if(!b)continue Va;J[699344]=0;h=c+56|0;da(4962,h|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break $a;b=0;k=K[c+67|0];d=k<<24>>24;j=(d|0)<0;if(((j?J[c+60>>2]:k)|0)==10){b=!qd(j?J[c+56>>2]:h,2377752,10);d=K[c+67|0]}if(d<<24>>24<0)uc(J[c+56>>2]);if(!b)continue;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;ca(4963,f|0,2377796,c+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break Ya;b=K[c+35|0];h=b<<24>>24<0;k=J[c+28>>2];if(!(h?k:b))break Wa;b=J[a+4>>2];d=J[a>>2]; +ab:{if(!h){J[c+8>>2]=J[c+32>>2];h=J[c+28>>2];J[c>>2]=J[c+24>>2];J[c+4>>2]=h;break ab}J[699344]=0;ca(15,c|0,J[c+24>>2],k|0);h=J[699344];J[699344]=0;if((h|0)==1)break _a}bb:{if((b|0)==(d|0))break bb;while(1){l=K[d+39|0];h=l<<24>>24<0;j=K[c+11|0];k=j<<24>>24<0;l=h?J[d+32>>2]:l;if((l|0)==((k?J[c+4>>2]:j)|0)){if(!l)break bb;j=d+28|0;if(!qd(h?J[j>>2]:j,k?J[c>>2]:c,l))break bb}d=d+40|0;if((b|0)!=(d|0))continue;break}d=b}if(H[c+11|0]<0)uc(J[c>>2]);if(J[a+4>>2]==(d|0))break Za;J[d+4>>2]=g;break Wa}e=Z()|0; +break Ga}e=Z()|0;break Ga}e=Z()|0;break Xa}cb:{db:{eb:{if(H[c+35|0]>=0){J[e>>2]=J[c+32>>2];b=J[c+28>>2];J[c+56>>2]=J[c+24>>2];J[c+60>>2]=b;break eb}J[699344]=0;ca(15,c+56|0,J[c+24>>2],J[c+28>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break db}J[c+68>>2]=g;J[699344]=0;b=Ye(i,c+220|0,c+56|0);d=J[699344];J[699344]=0;if((d|0)==1)break cb;if(!J[b>>2]){J[699344]=0;d=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break cb;h=J[c+60>>2];J[d+16>>2]=J[c+56>>2];J[d+20>>2]=h;J[d+24>>2]=J[e>>2];J[e>>2]=0;J[c+56>> +2]=0;J[c+60>>2]=0;J[d+28>>2]=J[c+68>>2];J[d+8>>2]=J[c+220>>2];J[d>>2]=0;J[d+4>>2]=0;J[b>>2]=d;h=J[J[i>>2]>>2];if(h){J[i>>2]=h;d=J[b>>2]}Oc(J[a+16>>2],d);J[a+20>>2]=J[a+20>>2]+1}if(H[c+67|0]>=0)break Wa;uc(J[c+56>>2]);break Wa}e=Z()|0;break Xa}e=Z()|0;if(H[c+67|0]>=0)break Xa;uc(J[c+56>>2]);break Xa}e=Z()|0}if(H[c+35|0]>=0)break Ga;uc(J[c+24>>2]);break Ga}if(H[c+35|0]>=0)continue;uc(J[c+24>>2]);continue}}}e=Z()|0;break Fa}if(H[c+107|0]<0)uc(J[c+96>>2]);break Ca}J[699344]=0;b=_(4,40)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break Ma;d=J[a+56>>2];h=J[a+24>>2];J[699344]=0;d=ja(4976,b|0,c+40|0,h|0,m|0,d|0,a|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break La;J[c+60>>2]=d;J[c+56>>2]=g;J[699344]=0;ca(4977,c+24|0,n|0,c+56|0);b=J[699344];J[699344]=0;if((b|0)==1)break Ka;g=g+1|0}if(H[c+51|0]>=0)continue;uc(J[c+40>>2]);continue}break}e=Z()|0;break Ga}e=Z()|0;uc(b);break Ga}e=Z()|0;break Ga}e=Z()|0;break A}e=Z()|0;break Ga}e=Z()|0;break Ga}e=Z()|0}if(H[c+51|0]>=0)break Fa;uc(J[c+40>>2])}if(H[c+107|0]>=0)break A; +uc(J[c+96>>2]);break A}if(H[c+123|0]<0)uc(J[c+112>>2]);if(H[c+139|0]<0)uc(J[c+128>>2]);if(H[c+155|0]<0)uc(J[c+144>>2]);if(H[c+167|0]>=0)break m;uc(J[c+156>>2]);break m}e=Z()|0;if(H[c+51|0]>=0)break ga;uc(J[c+40>>2])}if(H[c+107|0]>=0)break fa;uc(J[c+96>>2])}if(H[c+95|0]<0)uc(J[c+84>>2]);if(H[c+83|0]<0)uc(J[c+72>>2]);break A}e=Z()|0;break A}e=Z()|0;if(H[c+67|0]>=0)break A;uc(J[c+56>>2]);break A}e=Z()|0;break A}e=Z()|0;if(H[c+67|0]>=0)break A;uc(J[c+56>>2]);break A}e=Z()|0;break A}e=Z()|0}if(H[c+123| +0]>=0)break w;uc(J[c+112>>2]);break w}e=Z()|0;if(H[c+67|0]>=0)break w;uc(J[c+56>>2]);break w}e=Z()|0;break w}e=Z()|0}if(H[c+139|0]<0)uc(J[c+128>>2]);if(H[c+155|0]>=0)break o;uc(J[c+144>>2]);break o}e=Z()|0;if(H[c+67|0]>=0)break t;uc(J[c+56>>2]);break t}e=Z()|0}if(H[c+123|0]>=0)break r;uc(J[c+112>>2]);break r}e=Z()|0}if(H[c+139|0]>=0)break o;uc(J[c+128>>2]);break o}e=Z()|0;break o}e=Z()|0}if(H[c+167|0]>=0)break k;uc(J[c+156>>2]);break k}e=Z()|0;break k}if(H[c+179|0]>=0)break c;uc(J[c+168>>2]);break c}e= +Z()|0}if(H[c+179|0]>=0)break i;uc(J[c+168>>2]);break i}e=Z()|0}if(H[c+195|0]<0)uc(J[c+184>>2]);if(H[c+211|0]>=0)break d;uc(J[c+200>>2])}J[f>>2]=769768;a=J[f+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);ba(e|0);B()}if(H[c+195|0]>=0)break b;uc(J[c+184>>2])}if(H[c+211|0]>=0)break a;uc(J[c+200>>2])}J[f>>2]=769768;a=J[f+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);fc=c+224|0}function EDb(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;o=fc-4112|0;fc=o;h=J[a+16>>2];a:{if((h|0)<2)break a; +j=1;g=J[a+24>>2];k=J[g+4>>2];e=J[g>>2];f=J[e+28>>2];if(J[k+28>>2]!=(f|0)){e=1;break a}d=J[e+24>>2];e=1;while(1){if((d|0)!=J[k+24>>2])break a;j=j+1|0;e=(h|0)>(j|0);if((h|0)==(j|0))break a;k=J[g+(j<<2)>>2];if((f|0)==J[k+28>>2])continue;break}}b:{c:{d:{j=_q(1783636E3);e:{f:{if(!j)break f;J[j+20>>2]=218793738;g:{h:{i:{if(Zq(j,b))break i;Jh(j);j=_q(1718909296);if(!j)break f;J[j+20>>2]=1785737760;J[j+24>>2]=0;J[j+28>>2]=1;J[j+32>>2]=1785737760;if(Zq(j,b))break i;Jh(j);n=Vi(0,0);if(!n)break f;j=_q(1768449138); +if(!j)break g;J[j+20>>2]=J[a+8>>2]-J[a>>2];J[j+24>>2]=J[a+12>>2]-J[a+4>>2];J[j+28>>2]=J[a+16>>2];k=255;if(!e){h=J[J[a+24>>2]>>2];k=J[h+28>>2]<<7&128|J[h+24>>2]-1&127}H[j+35|0]=0;H[j+33|0]=7;H[j+34|0]=0;H[j+32|0]=k;if(Zq(j,n))break i;Jh(j);if(e){j=_q(1651532643);if(!j)break g;h=J[a+16>>2];J[j+20>>2]=h;h=Dc(h);J[j+24>>2]=h;if(!h)break i;if(J[j+20>>2]){k=0;while(1){h=J[J[a+24>>2]+(k<<2)>>2];H[J[j+24>>2]+k|0]=J[h+24>>2]-1&127|J[h+28>>2]<<7;k=k+1|0;if(k>>>0>2])continue;break}}if(Zq(j,n))break i; +Jh(j)}j=_q(1668246642);if(!j)break h;j:{k:{l:{m:{h=J[a+28>>2];e=(h|0)==769;n:{if(!(!(e|(h|0)==1281)&(h|0)!=1025)){H[j+20|0]=1;o:{if(!e){e=16;if((h|0)==1025)break o;if((h|0)!=1281)break m;e=18;break o}e=17}H[j+21|0]=0;H[j+22|0]=0;J[j+24>>2]=e;break n}H[j+22|0]=0;I[j+20>>1]=2;k=tP(J[J[a+32>>2]+16>>2]);if(!k)break d;d=Vi(0,0);if(!d)break c;h=Dc(P(J[J[k+112>>2]>>2],20));J[k+108>>2]=h;g=-1;p:{if(!h)break p;m=J[J[k+112>>2]>>2];J[k+104>>2]=m;h=P(m,12)+132|0;q:{r:{s:{if((m|0)>0){e=0;while(1){f=J[k+112>>2]; +if(J[f>>2]<=(e|0))break s;q=J[k+108>>2];f=J[f+8>>2]+(e<<3)|0;i=J[f>>2];f=J[f+4>>2];J[f>>2]=J[f>>2]+1;t:{u:{r=J[f+8>>2];if(J[r+12>>2]){l=P(e,20)+q|0;J[l>>2]=i;s=f+12|0;J[l+12>>2]=s;i=0;if(e)while(1){p=P(i,20)+q|0;if(J[p+12>>2]==(s|0))break u;i=i+1|0;if((i|0)!=(e|0))continue;break}J[l+4>>2]=h;i=kc[J[r+16>>2]](f)|0;J[l+16>>2]=0;i=i+8|0;J[l+8>>2]=i;m=J[k+104>>2];if((m-1|0)>(e|0)){h=((h+i|0)+3|0)/4<<2;break t}h=h+i|0;break t}fa(201298,199175,385,206776);B()}J[l+4>>2]=J[p+4>>2];i=J[p+8>>2];J[l+16>>2]=p; +J[l+8>>2]=i}i=J[f>>2];J[f>>2]=i-1;if((i|0)<=1){i=J[J[f+8>>2]>>2];if(i)kc[i|0](f);uc(f);m=J[k+104>>2]}e=e+1|0;if((m|0)>(e|0))continue;break}}J[k>>2]=h;i=J[d+8>>2];if(i&7)break p;v:{e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;w:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break w}if((bd(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>16|0;J[d+4>>2]= +J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;x:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break x}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;y:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break y}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+ +4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;z:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break z}if((bd(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;h=J[k+4>>2];e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;A:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break A}if((bd(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>16| +0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;B:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break B}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;C:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break C}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;J[d+ +4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;D:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break D}if((bd(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;h=J[k+8>>2];e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;E:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break E}if((bd(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v; +e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;F:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break F}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;G:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break G}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v; +J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;H:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break H}if((bd(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;h=J[k+12>>2];e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;I:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break I}if((bd(d,e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v; +e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;J:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break J}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;K:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break K}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v; +J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;L:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break L}if((bd(d,h&255)|0)==-1)break p}if(Lh(d,4,J[k+16>>2],0))break p;if(Lh(d,4,J[k+20>>2],0))break p;e=J[d+8>>2];M:{if(e&7)break M;h=J[k+24>>2];N:{O:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;P:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break P}if((bd(d,e&255)|0)==-1)break N}e= +J[d+8>>2];if(e&7)break N;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break O}e=e|4;J[d+8>>2]=e;break M}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break N}bd(d,h&255)}e=J[d+8>>2]}Q:{if(e&7)break Q;h=J[k+28>>2];R:{S:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;T:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break T}if((bd(d,e&255)| +0)==-1)break R}e=J[d+8>>2];if(e&7)break R;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break S}e=e|4;J[d+8>>2]=e;break Q}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break R}bd(d,h&255)}e=J[d+8>>2]}U:{if(e&7)break U;h=J[k+32>>2];V:{W:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;X:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break X}if((bd(d, +e&255)|0)==-1)break V}e=J[d+8>>2];if(e&7)break V;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break W}e=e|4;J[d+8>>2]=e;break U}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break V}bd(d,h&255)}e=J[d+8>>2]}Y:{if(e&7)break Y;h=J[k+36>>2];Z:{_:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;$:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e; +break $}if((bd(d,e&255)|0)==-1)break Z}e=J[d+8>>2];if(e&7)break Z;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break _}e=e|4;J[d+8>>2]=e;break Y}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break Z}bd(d,h&255)}e=J[d+8>>2]}aa:{if(e&7)break aa;h=J[k+40>>2];ba:{ca:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;da:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+ +24>>2]=f+1;H[f|0]=e;break da}if((bd(d,e&255)|0)==-1)break ba}e=J[d+8>>2];if(e&7)break ba;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break ca}e=e|4;J[d+8>>2]=e;break aa}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break ba}bd(d,h&255)}e=J[d+8>>2]}ea:{if(e&7)break ea;h=J[k+44>>2];fa:{f=J[d+64>>2];if(!((f|0)>=0&(f|0)<=J[d+60>>2])){e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;ga:{if((f|0)>0){J[d+60>>2]=J[d+60>> +2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break ga}if((bd(d,e&255)|0)==-1)break ea}e=J[d+8>>2];if(e&7)break ea;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break fa}J[d+8>>2]=e|4;break ea}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break ea}bd(d,h&255)}if(Lh(d,4,J[k+48>>2],0))break p;if(Lh(d,4,J[k+52>>2],0))break p;if(Lh(d,4,J[k+56>>2],0))break p;if(Lh(d,4,J[k+60>>2],0))break p;if(Lh(d,4,J[k+64>>2],0))break p;if(Lh(d,8,J[k+ +72>>2],J[k+76>>2]))break p;if(Lh(d,4,J[k+80>>2],0))break p;e=J[d+8>>2];ha:{if(e&7)break ha;h=J[k+84>>2];ia:{ja:{f=J[d+64>>2];ka:{if((f|0)>=0&(f|0)<=J[d+60>>2])break ka;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;la:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h>>>24;break la}if((bd(d,h>>>24|0)|0)==-1)break ia}e=J[d+8>>2];if(e&7)break ia;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break ka;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;ma:{if((f|0)>0){J[d+ +60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break ma}if((bd(d,e&255)|0)==-1)break ia}e=J[d+8>>2];if(e&7)break ia;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break ka;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;na:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break na}if((bd(d,e&255)|0)==-1)break ia}e=J[d+8>>2];if(e&7)break ia;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break ja}e=e|4;J[d+8>>2]=e;break ha}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+ +28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break ia}bd(d,h&255)}e=J[d+8>>2]}oa:{if(e&7)break oa;h=J[k+88>>2];pa:{qa:{f=J[d+64>>2];ra:{if((f|0)>=0&(f|0)<=J[d+60>>2])break ra;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;sa:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h>>>24;break sa}if((bd(d,h>>>24|0)|0)==-1)break pa}e=J[d+8>>2];if(e&7)break pa;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break ra;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]| +32;f=J[d+28>>2];J[d+28>>2]=f-1;ta:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break ta}if((bd(d,e&255)|0)==-1)break pa}e=J[d+8>>2];if(e&7)break pa;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break ra;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;ua:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break ua}if((bd(d,e&255)|0)==-1)break pa}e=J[d+8>>2];if(e&7)break pa;f=J[d+64>>2];if((f|0)<0|(f|0)>J[d+60>>2])break qa}e=e|4;J[d+8>>2]= +e;break oa}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break pa}bd(d,h&255)}e=J[d+8>>2]}va:{if(e&7)break va;h=J[k+92>>2];wa:{f=J[d+64>>2];xa:{if((f|0)>=0&(f|0)<=J[d+60>>2])break xa;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;ya:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h>>>24;break ya}if((bd(d,h>>>24|0)|0)==-1)break va}e=J[d+8>>2];if(e&7)break va;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+ +60>>2])break xa;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;za:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break za}if((bd(d,e&255)|0)==-1)break va}e=J[d+8>>2];if(e&7)break va;f=J[d+64>>2];if((f|0)>=0&(f|0)<=J[d+60>>2])break xa;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;Aa:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break Aa}if((bd(d,e&255)|0)==-1)break va}e=J[d+8>>2];if(e&7)break va;f=J[d+64>>2];if((f| +0)<0|(f|0)>J[d+60>>2])break wa}J[d+8>>2]=e|4;break va}J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break va}bd(d,h&255)}if(Lh(d,4,J[k+96>>2],0))break p;if((Ty(d,44)|0)!=44)break p;i=J[d+8>>2];if(i&7)break p;h=J[k+104>>2];e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;Ba:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break Ba}if((bd(d, +e)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;Ca:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break Ca}if((bd(d,e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;e=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;f=J[d+28>>2];J[d+28>>2]=f-1;Da:{if((f|0)>0){J[d+60>>2]=J[d+60>>2]+1;f=J[d+24>>2];J[d+24>>2]=f+1;H[f|0]=e;break Da}if((bd(d, +e&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break p;e=J[d+64>>2];if((e|0)>=0&(e|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;Ea:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=h;break Ea}if((bd(d,h&255)|0)==-1)break p}e=0;g=0;if(J[k+104>>2]<=0)break p;while(1){i=J[d+8>>2];if(i&7)break s;f=J[k+108>>2]+P(e,20)|0;h=J[f>>2];g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Fa:{if((g|0)>0){J[d+ +60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Fa}g=-1;if((bd(d,i)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ga:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ga}g=-1;if((bd(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ha:{if((g| +0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ha}g=-1;if((bd(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ia:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=h;break Ia}g=-1;if((bd(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;h=J[f+4>>2];g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>24|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+ +28>>2]=g-1;Ja:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ja}g=-1;if((bd(d,i)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ka:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ka}g=-1;if((bd(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32; +g=J[d+28>>2];J[d+28>>2]=g-1;La:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break La}g=-1;if((bd(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ma:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=h;break Ma}g=-1;if((bd(d,h&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;h=J[f+8>>2];g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;f=h>>>24|0; +J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Na:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=f;break Na}g=-1;if((bd(d,f)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;f=h>>>16|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Oa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=f;break Oa}g=-1;if((bd(d,f&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v; +f=h>>>8|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Pa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=f;break Pa}g=-1;if((bd(d,f&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Qa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=h;break Qa}g=-1;if((bd(d,h&255)|0)==-1)break p}e=e+1|0;h=J[k+104>>2];if((e|0)<(h|0))continue;break}g=0;if((h|0)<=0)break p; +h=P(h,12)+132|0;e=0;while(1){m=J[k+108>>2]+P(e,20)|0;if(J[m+4>>2]!=(h|0))break r;if((e|0)<0)break s;g=J[k+112>>2];if(J[g>>2]<=(e|0))break s;l=J[(J[g+8>>2]+(e<<3)|0)+4>>2];J[l>>2]=J[l>>2]+1;i=J[d+8>>2];if(i&7)break s;f=J[l+4>>2];g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=f>>>24|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ra:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ra}g=-1;if((bd(d,i)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g| +0)>=0&(g|0)<=J[d+60>>2])break v;i=f>>>16|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Sa:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Sa}g=-1;if((bd(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s;g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;i=f>>>8|0;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ta:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=i;break Ta}g=-1;if((bd(d,i&255)|0)==-1)break p}i=J[d+8>>2];if(i&7)break s; +g=J[d+64>>2];if((g|0)>=0&(g|0)<=J[d+60>>2])break v;J[d+4>>2]=J[d+4>>2]|32;g=J[d+28>>2];J[d+28>>2]=g-1;Ua:{if((g|0)>0){J[d+60>>2]=J[d+60>>2]+1;g=J[d+24>>2];J[d+24>>2]=g+1;H[g|0]=f;break Ua}g=-1;if((bd(d,f&255)|0)==-1)break p}if((Ty(d,4)|0)!=4)break s;if(kc[J[J[l+8>>2]+12>>2]](l,d)|0)break s;g=J[l>>2];J[l>>2]=g-1;if((g|0)<=1){g=J[J[l+8>>2]>>2];if(g)kc[g|0](l);uc(l)}i=J[k+104>>2];g=e+1|0;g=(g|0)<(i|0)?i:g;f=g-1|0;h=J[m+8>>2]+h|0;Va:{while(1){if((e|0)==(f|0)){e=g;g=k;break Va}e=e+1|0;l=J[k+108>>2]+P(e, +20)|0;if(J[l+16>>2])continue;break}g=l+4|0}f=J[g>>2];l=f-h|0;if((l|0)<0)break q;if((f|0)!=(h|0)){g=-1;if((Ty(d,l)|0)!=(l|0))break p;i=J[k+104>>2];h=f}g=0;if((e|0)<(i|0))continue;break}break p}J[d+8>>2]=i|4}g=-1;break p}fa(202241,199175,420,206776);B()}fa(202941,199175,437,206776);B()}if(g)break m;h=tj(d);if((h|0)<0)break m;J[j+32>>2]=h;h=Dc(h);J[j+28>>2]=h;if(!h)break b;po(d);if((Ai(d,J[j+28>>2],J[j+32>>2])|0)!=J[j+32>>2])break m;Pf(d);pn(k)}if(Zq(j,n))break i;Jh(j);Wa:switch((J[a+28>>2]>>8)-3|0){case 1:h= +J[a+24>>2];if(J[J[h>>2]+40>>2]|J[J[h+4>>2]+40>>2]!=1|J[J[h+8>>2]+40>>2]!=2)break k;break j;case 0:break l;case 2:break Wa;default:break m}h=J[a+24>>2];if(J[J[h>>2]+40>>2]|J[J[h+4>>2]+40>>2]!=1|J[J[h+8>>2]+40>>2]!=2)break k;break j}ra();B()}if(!J[J[J[a+24>>2]>>2]+40>>2])break j}j=_q(1667523942);if(!j)break h;h=J[a+16>>2];J[j+20>>2]=h;f=Dc(P(h,12));J[j+24>>2]=f;d=J[a+16>>2];if((d|0)>0){i=J[a+24>>2];l=J[a+28>>2];k=0;while(1){e=f+P(k,12)|0;J[e>>2]=k;m=J[J[i+(k<<2)>>2]+40>>2];h=65536;Xa:{if(m&32768)break Xa; +g=65535;h=-65536;Ya:switch((l>>8)-3|0){case 0:g=1;h=0;default:h=h|g;break Xa;case 1:case 2:break Ya}g=m&32767;h=g>>>0<3;h=(h?g+1|0:65535)|(h?0:-65536)}J[e+8>>2]=h&32767;J[e+4>>2]=h>>>16;k=k+1|0;if((d|0)!=(k|0))continue;break}}if(Zq(j,n))break i;Jh(j)}h=tj(n);po(n);j=_q(1785737832);if(!j)break h;J[j+12>>2]=h+8;if(Zq(j,b))break i;Jh(j);if(oo(b,n,h))break h;Pf(n);j=_q(1785737827);if(!j)break f;n=0;J[j+12>>2]=0;if(Zq(j,b))break i;Jh(j);J[o+4>>2]=J[b+60>>2];J[o>>2]=c?c:202528;c=o+16|0;cg(c,201757,o);if(zba(a, +b,c))break f;a=0;break e}Jh(j)}if(!n)break f}Pf(n)}a=-1}fc=o+4112|0;return a|0}fa(197912,198977,229,207952);B()}fa(200003,198977,231,207952);B()}fa(200792,198977,238,207952);B()}function Q_(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,C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,N=0,O=0,Q=0,R=0;J[a+72>>2]=0;a:{b:{c:{d:{while(1){b=J[a+56>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break d;b=J[a+56>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break d; +b=J[a+56>>2];f=kc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break d;b=J[a+56>>2];h=kc[J[J[b>>2]+28>>2]](b)|0;if((h|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+4;b=J[a+56>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;c=b>>>5|0;if((c|0)==7){c=J[a+56>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break b;k=J[a+56>>2];k=kc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break b;j=J[a+56>>2];j=kc[J[J[j>>2]+28>>2]](j)| +0;if((j|0)==-1)break b;i=J[a+56>>2];c=(j|(c<<16|b<<24|k<<8))&536870911;b=c+9>>>3|0;if((kc[J[J[i>>2]+48>>2]](i,b)|0)!=(b|0))break b}s=Gd(c,4);b=h|(e<<16|d<<24|f<<8);e:{if(b>>>0<=256){d=0;if(!c)break e;while(1){e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break c;J[a+68>>2]=J[a+68>>2]+1;J[(d<<2)+s>>2]=e;d=d+1|0;if((d|0)!=(c|0))continue;break}break e}if(b>>>0>=65537){d=0;if(!c)break e;while(1){e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break c;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)| +0;if((f|0)==-1)break c;h=J[a+56>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break c;k=J[a+56>>2];k=kc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break c;J[a+68>>2]=J[a+68>>2]+4;J[(d<<2)+s>>2]=k|(f<<16|e<<24|h<<8);d=d+1|0;if((d|0)!=(c|0))continue;break}break e}d=0;if(!c)break e;while(1){e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break c;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break c;J[a+68>>2]=J[a+68>>2]+2;J[(d<<2)+s>>2]=f|e<<8;d=d+1|0;if((d|0)!=(c|0))continue;break}}d=J[a+56>> +2];d=kc[J[J[d>>2]+28>>2]](d)|0;f:{if(g&64){if((d|0)==-1)break c;d=J[a+56>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+56>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;e=4;d=J[a+56>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)!=-1)break f;break c}e=1;if((d|0)==-1)break c}J[a+68>>2]=J[a+68>>2]+e;d=J[a+56>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break c;d=J[a+56>>2];f=kc[J[J[d>>2]+28>>2]](d)|0;if((f|0)==-1)break c;d=J[a+56>>2];h=kc[J[J[d>>2]+28>>2]](d)|0;if((h|0)==-1)break c;d=J[a+56>>2];k=kc[J[J[d>> +2]+28>>2]](d)|0;if((k|0)==-1)break c;J[a+68>>2]=J[a+68>>2]+4;g:{d=g&63;if(!(J[a+40>>2]|(g&60)!=4&d-20>>>0>23)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,779723,0);break g}v=k|(f<<16|e<<24|h<<8);J[J[a+76>>2]+28>>2]=0;J[J[a+144>>2]+12>>2]=0;J[J[a+148>>2]+16>>2]=0;J[a+68>>2]=0;h:{i:{j:{k:{l:switch(d|0){case 4:mJ(a,b,0,s,c);break i;case 6:mJ(a,b,1,s,c);break i;case 7:mJ(a,b,1,s,c);break i;case 16:c=fc-32|0;fc=c;m:{n:{o:{p:{g=J[a+56>>2];d=kc[J[J[g>>2]+28>>2]](g)|0;if((d|0)==-1)break p;J[a+68>>2]=J[a+68>>2]+1;g=J[a+ +56>>2];g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break p;J[a+68>>2]=J[a+68>>2]+1;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break p;J[a+68>>2]=J[a+68>>2]+1;f=J[a+56>>2];h=kc[J[J[f>>2]+28>>2]](f)|0;if((h|0)==-1)break p;f=J[a+56>>2];k=kc[J[J[f>>2]+28>>2]](f)|0;if((k|0)==-1)break p;f=J[a+56>>2];j=kc[J[J[f>>2]+28>>2]](f)|0;if((j|0)==-1)break p;f=J[a+56>>2];i=kc[J[J[f>>2]+28>>2]](f)|0;if((i|0)==-1)break p;J[a+68>>2]=J[a+68>>2]+4;if(!(e?g:0)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,798421,0);break o}f= +d>>>1&3;q:{l=d&1;if(!l){m=J[(f<<2)+2317648>>2];d=J[a+80>>2];r:{if((m|0)==J[d+4>>2]){Ji(d);break r}uc(ld(d));d=vc(8);J[699344]=0;m=aa(3618,d|0,1<>2]=m}Nn(J[a+76>>2])}J[c+20>>2]=-3;J[c>>2]=0;J[c+4>>2]=-1;J[c+24>>2]=2;J[c+28>>2]=-2;J[c+8>>2]=-2;J[c+12>>2]=-2;J[c+16>>2]=0-g;k=i|(k<<16|h<<24|j<<8);h=k+1|0;f=Zt(a,l,P(h,g),e,f,0,0,0,c+16|0,c,v-7|0);d=vc(16);J[d+8>>2]=h;J[d>>2]=2317504;J[d+4>>2]=b;J[699344]=0;b=aa(3551,h|0,4)|0;h=J[699344];J[699344]= +0;if((h|0)==1)break n;J[d+12>>2]=b;b=0;l=0;while(1){h=nJ(f,l,0,g,e);J[J[d+12>>2]+(b<<2)>>2]=h;l=g+l|0;b=b+1|0;if(k>>>0>=b>>>0)continue;break}kc[J[J[f>>2]+4>>2]](f);sd(J[a+48>>2],d);break o}break n}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783270,0)}fc=c+32|0;break m}a=Z()|0;uc(d);ba(a|0);B()}break i;case 20:lJ(a,b,0,s,c);break i;case 22:lJ(a,b,1,s,c);break i;case 23:lJ(a,b,1,s,c);break i;case 36:kJ(a,b,0,v);break i;case 38:kJ(a,b,1,v);break k;case 39:kJ(a,b,1,v);break i;case 40:jJ(a,b,0,s,c);break i;case 42:jJ(a, +b,1,s,c);break i;case 43:jJ(a,b,1,s,c);break i;case 48:s:{t:{b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break t;c=J[a+56>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break t;g=J[a+56>>2];g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break t;d=J[a+56>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+4;J[a+24>>2]=d|(c<<16|b<<24|g<<8);b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break t;c=J[a+56>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break t;g=J[a+56>>2]; +g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break t;d=J[a+56>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+4;J[a+28>>2]=d|(c<<16|b<<24|g<<8);b=J[a+56>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+4;b=J[a+56>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((kc[J[J[b>>2]+ +28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;b=J[a+56>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+4;b=J[a+56>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+1;b=J[a+56>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break t;b=J[a+56>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break t;J[a+68>>2]=J[a+68>>2]+2;u:{b=J[a+24>>2];v:{if(!b)break v;g=J[a+28>>2];if(!g)break v;if(b>>>0<=2147483647/(b>>>0)>>>0)break u}Cc(1, +kc[J[J[a>>2]+52>>2]](a)|0,807484,0);break s}J[a+44>>2]=c>>>3&3;J[a+36>>2]=c>>>2&1;g=(g|0)==-1?(e|d<<8)&32767:g;J[a+32>>2]=g;c=vc(24);J[699344]=0;b=ha(3621,c|0,0,b|0,g|0)|0;g=J[699344];J[699344]=0;w:{if((g|0)!=1){J[a+40>>2]=b;c=P(J[b+16>>2],J[b+12>>2]);b=J[b+20>>2];if(!J[a+36>>2])break w;Ac(b,255,c);break s}break a}Ac(b,0,c);break s}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783270,0)}break i;case 50:b=J[a+56>>2];Q=a,R=(kc[J[J[b>>2]+48>>2]](b,v)|0)+J[a+68>>2]|0,J[Q+68>>2]=R;break i;case 51:J[a+72>>2]=1;break i; +case 52:b=J[a+56>>2];Q=a,R=(kc[J[J[b>>2]+48>>2]](b,v)|0)+J[a+68>>2]|0,J[Q+68>>2]=R;break i;case 53:d=b;l=0;x:{y:{b=J[a+56>>2];m=kc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break y;J[a+68>>2]=J[a+68>>2]+1;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break y;c=J[a+56>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break y;g=J[a+56>>2];e=kc[J[J[g>>2]+28>>2]](g)|0;if((e|0)==-1)break y;g=J[a+56>>2];f=kc[J[J[g>>2]+28>>2]](g)|0;if((f|0)==-1)break y;J[a+68>>2]=J[a+68>>2]+4;g=J[a+56>>2];h=kc[J[J[g>>2]+28>> +2]](g)|0;if((h|0)==-1)break y;g=J[a+56>>2];n=kc[J[J[g>>2]+28>>2]](g)|0;if((n|0)==-1)break y;g=J[a+56>>2];o=kc[J[J[g>>2]+28>>2]](g)|0;if((o|0)==-1)break y;g=J[a+56>>2];p=kc[J[J[g>>2]+28>>2]](g)|0;if((p|0)==-1)break y;J[a+68>>2]=J[a+68>>2]+4;g=J[a+144>>2];J[g+4>>2]=0;J[g+8>>2]=0;i=8;k=m>>>1&7;j=k+1|0;g=Gd(8,16);c=f|(c<<16|b<<24|e<<8);n=p|(n<<16|h<<24|o<<8);if((c|0)<(n|0)){o=m>>>4&7;p=o+1|0;r=-2<>2]=b;h=J[a+144>>2];e= +J[h+4>>2];f=J[h+8>>2];z:{if(f>>>0>k>>>0){f=f-j|0;J[h+8>>2]=f;e=y&e>>>f;break z}J[h+8>>2]=0;e=e&(-1<>>0>=8)while(1){q=J[h>>2];q=kc[J[J[q>>2]+28>>2]](q)|0;J[h+12>>2]=J[h+12>>2]+1;e=q&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break z;q=J[h>>2];q=kc[J[J[q>>2]+28>>2]](q)|0;J[h+4>>2]=q;x=8-f|0;J[h+8>>2]=x;J[h+12>>2]=J[h+12>>2]+1;e=(-1<>>x|e<>2]=e;h=J[a+144>>2];e=J[h+4>>2];f=J[h+8>>2];A:{if(f>>>0>o>>>0){f=f-p|0;J[h+8>>2]=f;e=r&e>>>f;break A}J[h+8>>2]=0;e=e&(-1<< +f^-1);f=p-f|0;if(f>>>0>=8)while(1){q=J[h>>2];q=kc[J[J[q>>2]+28>>2]](q)|0;J[h+12>>2]=J[h+12>>2]+1;e=q&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break A;q=J[h>>2];q=kc[J[J[q>>2]+28>>2]](q)|0;J[h+4>>2]=q;x=8-f|0;J[h+8>>2]=x;J[h+12>>2]=J[h+12>>2]+1;e=(-1<>>x|e<>2]=e;l=l+1|0;b=(1<(b|0))continue;break}}h=m&1;b=(h+l|0)+3|0;if(b>>>0>i>>>0)g=Wd(g,b,16);J[(l<<4)+g>>2]=c-1;b=J[a+144>>2];c=J[b+8>>2];B:{if(c>>>0>k>>>0){c=c-j|0;J[b+8>>2]=c;e=(-2<>2]>>>c;break B}J[b+ +8>>2]=0;e=J[b+4>>2]&(-1<>>0>=8)while(1){c=J[b>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[b+12>>2]=J[b+12>>2]+1;e=c&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break B;c=J[b>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[b+4>>2]=c;i=8-f|0;J[b+8>>2]=i;J[b+12>>2]=J[b+12>>2]+1;e=(-1<>>i|e<>2]=-3;J[b+4>>2]=e;i=l+1|0;J[(i<<4)+g>>2]=n;b=J[a+144>>2];c=J[b+8>>2];C:{if(c>>>0>k>>>0){c=c-j|0;J[b+8>>2]=c;e=(-2<>2]>>>c;break C}J[b+8>>2]=0;e=J[b+4>>2]&(-1<>>0>=8)while(1){c=J[b>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[b+12>>2]=J[b+12>>2]+1;e=c&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break C;c=J[b>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[b+4>>2]=c;m=8-f|0;J[b+8>>2]=m;J[b+12>>2]=J[b+12>>2]+1;e=(-1<>>m|e<>2]=32;J[b+4>>2]=e;b=l+2|0;if(h){c=J[a+144>>2];J[(b<<4)+g>>2]=0;f=J[c+8>>2];D:{if(f>>>0>k>>>0){e=f-j|0;J[c+8>>2]=e;e=(-2<>2]>>>e;break D}J[c+8>>2]=0;e=J[c+4>>2]&(-1<>>0>=8)while(1){h= +J[c>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;J[c+12>>2]=J[c+12>>2]+1;e=h&255|e<<8;f=f-8|0;if(f>>>0>7)continue;break}if(!f)break D;h=J[c>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;J[c+4>>2]=h;k=8-f|0;J[c+8>>2]=k;J[c+12>>2]=J[c+12>>2]+1;e=(-1<>>k|e<>2]=-2;J[b+4>>2]=e;b=l+3|0}c=(b<<4)+g|0;J[c+8>>2]=-1;J[c>>2]=0;J[c+4>>2]=0;oJ(g,b);c=J[a+48>>2];b=vc(12);J[b+8>>2]=g;J[b>>2]=2317524;J[b+4>>2]=d;sd(c,b);break x}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783270,0)}break i;case 62:b=J[a+56>>2];Q=a,R=(kc[J[J[b>> +2]+48>>2]](b,v)|0)+J[a+68>>2]|0,J[Q+68>>2]=R;break i;case 0:break j;default:break l}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,781168,0);b=J[a+56>>2];if((kc[J[J[b>>2]+48>>2]](b,v)|0)!=(v|0))break c}if((d|0)!=38)break i;if((v|0)==-1)break h;break i}k=b;e=c;n=0;u=0;F=0;j=fc-80|0;fc=j;E:{F:{G:{H:{I:{J:{b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;K:{if((b|0)==-1)break K;c=J[a+56>>2];l=kc[J[J[c>>2]+28>>2]](c)|0;if((l|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+2;D=b<<8|l;h=D>>>10&3;f=l&1;L:{if(f)break L;b=J[a+56>>2];b=kc[J[J[b>> +2]+28>>2]](b)|0;if(!h){if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+64>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+48>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+68>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+52>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]= +J[a+68>>2]+1;J[j+72>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+56>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+76>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+60>>2]=b&128?b|-256:b;break L}if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+64>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b| +0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+48>>2]=b&128?b|-256:b}q=D>>>12&1;x=l&2;if(!(q|!x)){b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+40>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+32>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+1;J[j+44>>2]=b&128?b|-256:b;b=J[a+56>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break K;J[a+68>>2]= +J[a+68>>2]+1;J[j+36>>2]=b&128?b|-256:b}b=J[a+56>>2];G=kc[J[J[b>>2]+28>>2]](b)|0;if((G|0)==-1)break K;b=J[a+56>>2];I=kc[J[J[b>>2]+28>>2]](b)|0;if((I|0)==-1)break K;b=J[a+56>>2];K=kc[J[J[b>>2]+28>>2]](b)|0;if((K|0)==-1)break K;b=J[a+56>>2];L=kc[J[J[b>>2]+28>>2]](b)|0;if((L|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+4;b=J[a+56>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break K;b=J[a+56>>2];i=kc[J[J[b>>2]+28>>2]](b)|0;if((i|0)==-1)break K;b=J[a+56>>2];m=kc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break K;b=J[a+ +56>>2];E=kc[J[J[b>>2]+28>>2]](b)|0;if((E|0)==-1)break K;J[a+68>>2]=J[a+68>>2]+4;b=vc(16);J[699344]=0;p=_(3352,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break F;M:{if(e)while(1){b=J[(n<<2)+s>>2];N:{O:{c=J[a+52>>2];o=J[c+8>>2];if((o|0)>0){r=J[c>>2];c=0;while(1){d=J[r+(c<<2)>>2];if((b|0)==J[d+4>>2])break O;c=c+1|0;if((o|0)!=(c|0))continue;break}}c=J[a+48>>2];o=J[c+8>>2];if((o|0)<=0)break N;r=J[c>>2];c=0;while(1){d=J[r+(c<<2)>>2];if((b|0)==J[d+4>>2])break O;c=c+1|0;if((o|0)!=(c|0))continue;break}break N}if((kc[J[J[d>> +2]+8>>2]](d)|0)==1){b=J[d+8>>2];if((b|0)<0|(b^2147483647)>>>0>>0)break M;u=b+u|0;break N}if((kc[J[J[d>>2]+8>>2]](d)|0)!=3)break N;sd(p,d)}n=n+1|0;if((e|0)!=(n|0))continue;break}m=E|(i<<16|g<<24|m<<8);if((m|0)<0|(m^2147483647)>>>0>>0)break M;g=f;y=m+u|0;if(y>>>0>=2){c=y-1|0;g=0;while(1){g=g+1|0;b=c>>>0>1;c=c>>>1|0;if(b)continue;break}}o=Gd(y,4);if(y)Ac(o,0,y<<2);b=0;if(e){A=o+12|0;z=o+8|0;N=o+4|0;i=0;r=0;while(1){n=J[(r<<2)+s>>2];P:{Q:{c=J[a+52>>2];t=J[c+8>>2];if((t|0)>0){w=J[c>>2];d=0;while(1){c= +J[w+(d<<2)>>2];if((n|0)==J[c+4>>2])break Q;d=d+1|0;if((t|0)!=(d|0))continue;break}}c=J[a+48>>2];t=J[c+8>>2];if((t|0)<=0)break P;w=J[c>>2];d=0;while(1){c=J[w+(d<<2)>>2];if((n|0)==J[c+4>>2])break Q;d=d+1|0;if((t|0)!=(d|0))continue;break}break P}if((kc[J[J[c>>2]+8>>2]](c)|0)!=1)break P;b=J[c+8>>2];R:{if(!b)break R;C=b&3;n=0;S:{if(b>>>0<4){d=0;break S}O=b&-4;d=0;b=0;while(1){t=i<<2;w=d<<2;J[t+o>>2]=J[w+J[c+12>>2]>>2];J[t+N>>2]=J[J[c+12>>2]+(w|4)>>2];J[t+z>>2]=J[J[c+12>>2]+(w|8)>>2];J[t+A>>2]=J[J[c+12>> +2]+(w|12)>>2];d=d+4|0;i=i+4|0;b=b+4|0;if((O|0)!=(b|0))continue;break}}if(!C)break R;while(1){J[(i<<2)+o>>2]=J[J[c+12>>2]+(d<<2)>>2];d=d+1|0;i=i+1|0;n=n+1|0;if((C|0)!=(n|0))continue;break}}b=c}r=r+1|0;if((e|0)!=(r|0))continue;break}}w=0;t=0;r=0;T:{if(!f)break T;r=2732784;U:{V:{W:{c=l>>>2&3;switch(c|0){case 0:break U;case 1:break W;default:break V}}c=0;r=2732896;break U}if(!J[p+8>>2])break J;r=J[J[J[p>>2]>>2]+8>>2];c=1}t=2732496;X:{Y:switch(l>>>4&3){case 1:t=2732624;break X;case 0:break X;default:break Y}if(M[p+ +8>>2]<=c>>>0)break J;t=J[J[J[p>>2]+(c<<2)>>2]+8>>2];c=c+1|0}F=2732416;Z:{if(!(l&64)){w=2732416;break Z}if(M[p+8>>2]<=c>>>0)break J;w=J[J[J[p>>2]+(c<<2)>>2]+8>>2];c=c+1|0}if(!(l&128))break T;if(c>>>0>=M[p+8>>2])break J;F=J[J[J[p>>2]+(c<<2)>>2]+8>>2]}d=D>>>8&1;uc(ld(p));_:{$:{aa:{if(!f){l=0;c=h;e=0;ba:{if(!d)break ba;e=0;if(!b)break ba;e=J[b+16>>2]}iJ(a,c,e);O_(a,g);Nn(J[a+76>>2]);p=1;if(x)break aa;break _}c=J[a+144>>2];J[c+4>>2]=0;J[c+8>>2]=0;if(!x)break $}if(!(!d|!b)){KB(a,q,J[b+20>>2]);l=0;p=1;break _}l= +0;KB(a,q,0);p=1;break _}p=0;l=Gd(m,4)}if(m){C=(u<<2)+o|0;b=0;d=0;while(1){e=b;ca:{if(f){vi(J[a+144>>2],j+28|0,r);break ca}yj(J[a+76>>2],j+28|0,J[a+88>>2])}c=785169;da:{i=J[j+28>>2];if(!((i|0)<=0&0-i>>>0>=d>>>0|(i|0)>0&i>>>0>(d^-1)>>>0)){d=d+i|0;if(d>>>0<=1E5)break da;c=786076}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,c,0);break I}A=e>>>0>m>>>0?e:m;c=0;n=0;ea:{fa:{while(1){ga:{if(f){if(vi(J[a+144>>2],j+24|0,t))break ga;break fa}if(!yj(J[a+76>>2],j+24|0,J[a+92>>2]))break fa}i=J[j+24>>2];if(!((i|0)<=0&0-i>>>0>= +c>>>0)){if((b|0)==(A|0)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,786952,0);if(m)break I;break H}c=c+i|0;if(c>>>0>=100001){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,787804,0);if(m)break I;break H}if(!p){J[(b<<2)+l>>2]=c;n=c+n|0;b=b+1|0;continue}if(x){ha:{ia:{if(f){if(!vi(J[a+144>>2],j+20|0,F))break ea;i=J[j+20>>2];if((i|0)!=1)break ha;i=Aw(J[a+144>>2],g);vi(J[a+144>>2],j+16|0,2735376);vi(J[a+144>>2],j+12|0,2735376);vi(J[a+144>>2],j+8|0,2732416);z=J[a+144>>2];J[z+4>>2]=0;J[z+8>>2]=0;Nn(J[a+76>>2]);break ia}if(!yj(J[a+ +76>>2],j+20|0,J[a+100>>2]))break ea;i=J[j+20>>2];if((i|0)!=1)break ha;i=U_(J[a+76>>2],g,J[a+140>>2]);yj(J[a+76>>2],j+16|0,J[a+120>>2]);yj(J[a+76>>2],j+12|0,J[a+124>>2])}z=b+u|0;if(z>>>0<=i>>>0){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,788688,0);if(m)break I;break H}Q=(z<<2)+o|0,R=hJ(a,c,d,q,0,J[(i<<2)+o>>2],J[j+16>>2],J[j+12>>2],j+40|0,j+32|0),J[Q>>2]=R;b=b+1|0;continue}z=b+u|0;Q=(z<<2)+o|0,R=gJ(a,f,1,c,d,i,0,z,0,g,o,0,0,0,1,0,2733040,2733536,2734608,2735376,2735376,2735376,2735376,2732416,q,j+40|0,j+32|0), +J[Q>>2]=R;b=b+1|0;continue}Q=C+(b<<2)|0,R=Zt(a,0,c,d,h,0,0,0,j- -64|0,j+48|0,0),J[Q>>2]=R;b=b+1|0;continue}break}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,785169,0);if(m)break I;break H}if(p)break ea;if(!n){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,789568,0);if(m)break I;break H}vi(J[a+144>>2],j+8|0,w);c=J[a+144>>2];J[c+4>>2]=0;J[c+8>>2]=0;c=J[j+8>>2];ja:{if(!c){c=vc(24);J[699344]=0;i=ha(3621,c|0,0,n|0,d|0)|0;A=J[699344];J[699344]=0;if((A|0)!=1){c=P(n+7>>>3|0,d);J[j+8>>2]=c;n=J[a+56>>2];Q=a,R=(kc[J[J[n>>2]+40>>2]](n,J[i+ +20>>2],c)|0)+J[a+68>>2]|0,J[Q+68>>2]=R;break ja}break a}i=Zt(a,1,n,d,0,0,0,0,0,0,c)}c=0;if(b>>>0>e>>>0)while(1){A=e<<2;n=A+l|0;Q=A+C|0,R=nJ(i,c,0,J[n>>2],d),J[Q>>2]=R;c=J[n>>2]+c|0;e=e+1|0;if((e|0)!=(b|0))continue;break}if(!i)break ea;kc[J[J[i>>2]+4>>2]](i)}if(b>>>0>>0)continue;break}}c=0;b=vc(24);J[699344]=0;d=k;k=L|(I<<16|G<<24|K<<8);h=ga(3622,b|0,d|0,k|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break F;ka:{la:{if(y){g=0;b=1;n=0;while(1){ma:{if(f){vi(J[a+144>>2],j+4|0,2732416);break ma}yj(J[a+ +76>>2],j+4|0,J[a+96>>2])}d=b;b=J[j+4>>2];if(!(d|b)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,790528,0);kc[J[J[h>>2]+4>>2]](h);if(m)break I;break H}d=b+g|0;if(d>>>0>y>>>0)break la;na:{if(!n){g=d;break na}if(k>>>0>>0)break la;p=0;d=c;if((b|0)<=0)break na;while(1){c=J[(g<<2)+o>>2];b=vc(24);J[b>>2]=2317464;J[b+4>>2]=0;r=J[c+8>>2];J[b+8>>2]=r;i=J[c+12>>2];J[b+12>>2]=i;e=J[c+16>>2];J[b+16>>2]=e;oa:{if(!((r|0)<=0|(i|0)<=0|(e|0)<=0))if(2147483646/(e>>>0)>>>0>i>>>0)break oa;J[b+12>>2]=-1;J[b+16>>2]=2;i=-1;e=2}J[699344]= +0;e=P(e,i);i=_(3616,e+1|0)|0;r=J[699344];J[699344]=0;if((r|0)==1)break F;g=g+1|0;J[b+20>>2]=i;Q=xc(i,J[c+20>>2],e)+e|0,R=0,H[Q|0]=R;J[J[h+12>>2]+(d<<2)>>2]=b;c=d+1|0;d=c;b=J[j+4>>2];p=p+1|0;if((b|0)>(p|0))continue;break}}n=n^1;if(g>>>0>>0)continue;break}}if((c|0)!=(k|0))break ka;pa:{if(!m)break pa;g=E&1;c=(u<<2)+o|0;b=0;if((m|0)!=1){f=m-g|0;e=0;while(1){k=b<<2;d=J[k+c>>2];if(d)kc[J[J[d>>2]+4>>2]](d);d=J[c+(k|4)>>2];if(d)kc[J[J[d>>2]+4>>2]](d);b=b+2|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}if(!g)break pa; +b=J[c+(b<<2)>>2];if(!b)break pa;kc[J[J[b>>2]+4>>2]](b)}Mc(o);if(l)Mc(l);qa:{if((D&513)!=512)break qa;Q=h,R=NB(J[a+80>>2]),J[Q+16>>2]=R;if(!x)break qa;Q=h,R=NB(J[a+84>>2]),J[Q+20>>2]=R}sd(J[a+48>>2],h);b=1;break G}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,791316,0);kc[J[J[h>>2]+4>>2]](h);if(m)break I;break H}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,792140,0);kc[J[J[h>>2]+4>>2]](h);if(m)break I;break H}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,784180,0);uc(ld(p))}b=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783270,0);break G}l=0;Cc(1,kc[J[J[a>> +2]+52>>2]](a)|0,792936,0);uc(ld(p));if(!m)break H}g=E&1;c=(u<<2)+o|0;b=0;if((m|0)!=1){e=m-g|0;i=0;while(1){f=b<<2;d=J[f+c>>2];if(d)kc[J[J[d>>2]+4>>2]](d);d=J[c+(f|4)>>2];if(d)kc[J[J[d>>2]+4>>2]](d);b=b+2|0;i=i+2|0;if((e|0)!=(i|0))continue;break}}if(!g)break H;b=J[c+(b<<2)>>2];if(!b)break H;kc[J[J[b>>2]+4>>2]](b)}Mc(o);b=0;if(!l)break G;Mc(l)}fc=j+80|0;break E}a=Z()|0;uc(b);ba(a|0);B()}if(!b)break g}b=J[J[a+148>>2]+16>>2]+(J[J[a+144>>2]+12>>2]+(J[a+68>>2]+J[J[a+76>>2]+28>>2]|0)|0)|0;J[a+68>>2]=b;ra:{if(b>>> +0<=v>>>0){b=v-b|0;if(b>>>0<65537)break ra}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,782217,0);break g}c=J[a+56>>2];Q=a,R=(kc[J[J[c>>2]+48>>2]](c,b)|0)+J[a+68>>2]|0,J[Q+68>>2]=R}Mc(s);if(!J[a+72>>2])continue;break d}break}Mc(s)}return}Mc(s)}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783270,0);return}a=Z()|0;uc(c);ba(a|0);B()}function zK(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;a:{if(J[a+292>>2])break a;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break a;Rd(a)}c=J[J[a+36>>2]+16>>2];b:{if(K[c|0]!=60)break b; +b=K[c+1|0];if((b|0)!=63){if((b|0)!=33)break b;c:switch(K[c+2|0]-45|0){case 24:d:switch(K[c+3|0]-76|0){case 0:k=fc-16|0;fc=k;J[k+12>>2]=0;j=J[a+36>>2];c=J[j+16>>2];e:{if(K[c|0]!=60|K[c+1|0]!=33|(K[c+2|0]!=69|K[c+3|0]!=76))break e;if(K[c+4|0]!=69|K[c+5|0]!=77|(K[c+6|0]!=69|K[c+7|0]!=78))break e;if(K[c+8|0]!=84)break e;J[a+200>>2]=J[a+200>>2]+9;J[j+16>>2]=c+9;J[j+32>>2]=J[j+32>>2]+9;b=j;c=K[c+9|0];if((c|0)==37){Yd(a);b=J[a+36>>2];c=K[J[b+16>>2]]}f:{if(c)break f;if((Nd(b)|0)>0)break f;He(a)}b=K[J[J[a+ +36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0)){oe(a,65,37921);break e}be(a);g:{h:{h=hi(a);if(h)while(1){b=K[J[J[a+36>>2]+16>>2]];if(b){b=b-9|0;if(b>>>0>23)break h;if(1<>2]<2)break h;He(a);continue}oe(a,68,31044);break e}oe(a,65,34388)}be(a);i:{j:{k:{l:{m:{n:{b=J[a+36>>2];c=J[b+16>>2];switch(K[c|0]-37|0){case 3:break j;case 0:break l;case 28:break m;case 32:break n;default:break k}}if(K[c+1|0]!=77|K[c+2|0]!=80|(K[c+3|0]!=84|K[c+4|0]!=89))break k;J[a+200>>2]= +J[a+200>>2]+5;J[b+16>>2]=c+5;J[b+32>>2]=J[b+32>>2]+5;e=1;c=K[c+5|0];if((c|0)==37){Yd(a);b=J[a+36>>2];c=K[J[b+16>>2]]}if(c)break i;if((Nd(b)|0)>0)break i;He(a);break i}if(K[c+1|0]!=78|K[c+2|0]!=89)break k;J[a+200>>2]=J[a+200>>2]+3;J[b+16>>2]=c+3;J[b+32>>2]=J[b+32>>2]+3;e=2;c=K[c+3|0];if((c|0)==37){Yd(a);b=J[a+36>>2];c=K[J[b+16>>2]]}if(c)break i;if((Nd(b)|0)>0)break i;He(a);break i}if(J[a+96>>2]|J[a+40>>2]!=1)break k;oe(a,21,31663);break e}oe(a,54,35337);break e}c=0;i=J[J[a+36>>2]+56>>2];J[k+12>>2]= +0;o:{if(K[J[J[a+36>>2]+16>>2]]!=40){Uf(a,54,35291,h);b=-1;break o}Zd(a);p:{if(J[a+292>>2])break p;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break p;Rd(a)}b=-1;if(J[a+172>>2]!=-1){be(a);q:{r:{b=J[a+36>>2];d=J[b+16>>2];if(K[d|0]!=35|K[d+1|0]!=80|(K[d+2|0]!=67|K[d+3|0]!=68))break r;if(K[d+4|0]!=65|K[d+5|0]!=84|K[d+6|0]!=65)break r;l=fc-32|0;fc=l;if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249))Rd(a);s:{t:{e=J[a+36>>2];b=J[e+16>>2];if(K[b|0]!=35|K[b+1|0]!=80|(K[b+2|0]!=67|K[b+3|0]!=68))break t;if(K[b+ +4|0]!=65|K[b+5|0]!=84|K[b+6|0]!=65)break t;J[a+200>>2]=J[a+200>>2]+7;J[e+16>>2]=b+7;J[e+32>>2]=J[e+32>>2]+7;b=K[b+7|0];if((b|0)==37){Yd(a);e=J[a+36>>2];b=K[J[e+16>>2]]}u:{if(b&255)break u;if((Nd(e)|0)>0)break u;He(a)}be(a);c=J[a+36>>2];v:{if(J[a+292>>2])break v;b=J[c+16>>2];if((b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)break v;_g(a);c=J[a+36>>2]}w:{x:{y:{z:{d=K[J[c+16>>2]];switch(d-40|0){case 0:break x;case 1:break z;default:break y}}if(!(!J[a+104>>2]|(i|0)==J[c+56>>2]))Um(a,90,30219,0,0);Zd(a);c= +0;b=Lr(J[a+8>>2],0,1);if(!b)break s;if(K[J[J[a+36>>2]+16>>2]]!=42){c=b;break s}J[b+4>>2]=3;Zd(a);c=b;break s}b=0;if((d|0)!=124)break w}c=0;b=Lr(J[a+8>>2],0,1);if(!b)break s}d=b;A:{while(1){B:{e=J[J[a+36>>2]+16>>2];c=K[e|0];if((c|0)!=124){if((c|0)!=41|K[e+1|0]!=42)break A;C:{if(!g)break C;c=Lr(J[a+8>>2],g,2);J[d+16>>2]=c;if(!c)break C;J[c+20>>2]=d}if(b)J[b+4>>2]=3;c=J[a+36>>2];if(!(!J[a+104>>2]|(i|0)==J[c+56>>2])){Um(a,90,30219,0,0);c=J[a+36>>2]}J[a+200>>2]=J[a+200>>2]+2;d=J[c+16>>2];J[c+16>>2]=d+ +2;J[c+32>>2]=J[c+32>>2]+2;d=K[d+2|0];if((d|0)==37){Yd(a);c=J[a+36>>2];d=K[J[c+16>>2]]}if(!(d&255))break B;c=b;break s}if(J[a+172>>2]==-1)break A;Zd(a);D:{E:{if(!g){c=0;e=Lr(J[a+8>>2],0,4);if(!e)break s;J[e+12>>2]=d;b=e;f=b;c=d;f=b;if(c)break E;break D}c=kc[J[663195]](28)|0;if(!c){J[l>>2]=17054;c=0;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,l);break s}J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=4;J[c+4>>2]=1;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;e=Lr(J[a+8>>2],g,2);J[c+12>>2]=e;if(e)J[e+20>>2]=c;J[d+16>>2]=c;e=d; +f=c}J[c+20>>2]=e;e=b}be(a);g=hi(a);if(!g){oe(a,68,35159);ii(J[a+8>>2],f);c=0;break s}be(a);b=e;d=f;if(J[a+292>>2])continue;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)continue;Rd(a);continue}break}if((Nd(c)|0)>0){c=b;break s}He(a);c=b;break s}ii(J[a+8>>2],b);c=0;Xe(a,52,0);break s}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break s;J[a+84>>2]=69;J[l+16>>2]=15887;Hc(0,0,0,a,0,1,69,3,0,0,0,0,32906,l+16|0);J[a+12>>2]=0;if(J[a+288>>2])break s;J[a+212>>2]=1}fc=l+32|0;b=3;break q}c=AK(a,i,1);b=4}be(a);J[k+12>> +2]=c}}e=b}be(a);F:{if(K[J[J[a+36>>2]+16>>2]])break F;while(1){if(J[a+40>>2]<2)break F;He(a);if(!K[J[J[a+36>>2]+16>>2]])continue;break}}be(a);b=J[a+36>>2];if(K[J[b+16>>2]]!=62){Xe(a,73,0);b=J[k+12>>2];if(!b)break e;ii(J[a+8>>2],b);break e}if((b|0)!=(j|0))oe(a,90,30290);Zd(a);G:{b=J[a>>2];if(J[a+212>>2]|!b)break G;b=J[b+36>>2];if(!b)break G;c=J[k+12>>2];if(!c){kc[b|0](J[a+4>>2],h,e,0);break e}J[c+20>>2]=0;kc[b|0](J[a+4>>2],h,e,c);if(J[c+20>>2])break e;ii(J[a+8>>2],c);break e}b=J[k+12>>2];if(!b)break e; +ii(J[a+8>>2],b)}fc=k+16|0;break b;case 2:break d;default:break b}h=fc-16|0;fc=h;J[h+12>>2]=0;J[h+8>>2]=0;c=J[a+36>>2];e=J[c+16>>2];H:{if(K[e|0]!=60|K[e+1|0]!=33|(K[e+2|0]!=69|K[e+3|0]!=78))break H;if(K[e+4|0]!=84|K[e+5|0]!=73|(K[e+6|0]!=84|K[e+7|0]!=89))break H;I:{if(J[a+292>>2]){b=c;break I}if((e-J[c+12>>2]|0)<501){b=c;break I}b=c;if((J[b+20>>2]-e|0)>499)break I;_g(a);b=J[a+36>>2];e=J[b+16>>2]}J[a+200>>2]=J[a+200>>2]+8;J[b+16>>2]=e+8;J[b+32>>2]=J[b+32>>2]+8;d=K[e+8|0];if((d|0)==37){Yd(a);b=J[a+36>> +2];d=K[J[b+16>>2]]}J:{if(d&255)break J;if((Nd(b)|0)>0)break J;He(a)}if(!be(a))oe(a,65,37854);i=K[J[J[a+36>>2]+16>>2]];K:{if((i|0)!=37)break K;Zd(a);if(be(a))break K;oe(a,65,38236)}g=hi(a);if(!g){oe(a,68,34467);break H}if(rq(g,58))Sn(a,205,37444,g,0);if(!be(a))oe(a,65,34350);J[a+172>>2]=10;b=K[J[J[a+36>>2]+16>>2]];L:{M:{if((i|0)==37){N:switch(b-34|0){case 0:case 5:e=u1(a,h+8|0);if(!e)break M;b=J[a>>2];if(!b){b=0;break L}if(J[a+212>>2]){b=0;break L}b=J[b+24>>2];if(!b){b=0;break L}kc[b|0](J[a+4>>2], +g,4,0,0,e);b=0;break L;default:break N}b=kC(a,h+12|0,1);f=J[h+12>>2];if(!(b|f)){f=0;Xe(a,84,0);break M}e=0;if(!b){b=0;break L}j=ru(b);if(!j){ku(a,91,32827,b);break L}if(J[j+32>>2]){Xe(a,92,0);uk(j);break L}d=J[a>>2];O:{if(J[a+212>>2]|!d)break O;d=J[d+24>>2];if(!d)break O;kc[d|0](J[a+4>>2],g,5,f,b,0)}uk(j);break L}P:switch(b-34|0){case 0:case 5:e=u1(a,h+8|0);b=J[a>>2];Q:{if(J[a+212>>2]|!b)break Q;b=J[b+24>>2];if(!b)break Q;kc[b|0](J[a+4>>2],g,1,0,0,e)}b=J[a+8>>2];R:{if(b){if(!Pg(J[b+56>>2],2590)){b= +0;break L}b=J[a+8>>2];if(b)break R}b=oq(2590);J[a+8>>2]=b;if(!b){se(a,17102);break H}J[b+92>>2]=64}if(!J[b+44>>2]){b=FC(b,14334,0,0);J[J[a+8>>2]+44>>2]=b}cL(a,g,1,0,0,e);b=0;break L;default:break P}b=kC(a,h+12|0,1);f=J[h+12>>2];S:{if(!(b|f)){Xe(a,84,0);break S}if(!b)break S;d=ru(b);if(!d){ku(a,91,32827,b);break S}if(J[d+32>>2])Xe(a,92,0);uk(d)}e=K[J[J[a+36>>2]+16>>2]];d=e-9|0;if(!((1<>>0<=23:0)|(e|0)==62))oe(a,65,38144);be(a);T:{e=J[a+36>>2];d=J[e+16>>2];if(K[d|0]!=78|K[d+1|0]!=68|(K[d+ +2|0]!=65|K[d+3|0]!=84))break T;if(K[d+4|0]!=65)break T;J[a+200>>2]=J[a+200>>2]+5;J[e+16>>2]=d+5;J[e+32>>2]=J[e+32>>2]+5;d=K[d+5|0];if((d|0)==37){Yd(a);e=J[a+36>>2];d=K[J[e+16>>2]]}U:{if(d&255)break U;if((Nd(e)|0)>0)break U;He(a)}d=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))oe(a,65,38114);be(a);j=hi(a);e=0;d=J[a>>2];if(J[a+212>>2]|!d)break L;d=J[d+40>>2];if(!d)break L;kc[d|0](J[a+4>>2],g,f,b,j);break L}d=J[a>>2];V:{if(J[a+212>>2]|!d)break V;d=J[d+24>>2];if(!d)break V;kc[d|0](J[a+4>> +2],g,2,f,b,0)}e=0;if(!J[a+16>>2])break L;d=J[a+8>>2];W:{if(d){if(!Pg(J[d+56>>2],2590))break L;e=J[a+8>>2];if(e)break W}e=oq(2590);J[a+8>>2]=e;if(!e){se(a,17102);break H}J[e+92>>2]=64}if(!J[e+44>>2]){d=FC(e,14334,0,0);J[J[a+8>>2]+44>>2]=d}e=0;cL(a,g,2,f,b,0);break L}b=0;e=0}if(J[a+172>>2]==-1)break H;be(a);d=J[a+36>>2];X:{if(K[J[d+16>>2]]!=62){Uf(a,37,35505,g);iq(a);break X}if((c|0)!=(d|0))oe(a,90,30087);Zd(a)}Y:{if(!J[h+8>>2])break Y;c=J[a>>2];Z:{_:{$:{if((i|0)==37){if(!c)break Z;c=J[c+96>>2];if(!c)break Z; +c=kc[c|0](J[a+4>>2],g)|0;break $}aa:{if(!c)break aa;c=J[c+20>>2];if(!c)break aa;c=kc[c|0](J[a+4>>2],g)|0;if(c)break _}if(J[a+4>>2]!=(a|0))break Z;c=JC(a,g)}if(!c)break Z}if(J[c+36>>2]){kc[J[663199]](J[h+8>>2]);break Y}J[c+36>>2]=J[h+8>>2];break Y}kc[J[663199]](J[h+8>>2])}if(e)kc[J[663199]](e);if(b)kc[J[663199]](b);if(!f)break H;kc[J[663199]](f)}fc=h+16|0;break b;case 20:m=fc-16|0;fc=m;j=J[a+36>>2];c=J[j+16>>2];ba:{if(K[c|0]!=60|K[c+1|0]!=33|(K[c+2|0]!=65|K[c+3|0]!=84))break ba;if(K[c+4|0]!=84|K[c+ +5|0]!=76|(K[c+6|0]!=73|K[c+7|0]!=83))break ba;if(K[c+8|0]!=84)break ba;J[a+200>>2]=J[a+200>>2]+9;J[j+16>>2]=c+9;J[j+32>>2]=J[j+32>>2]+9;b=j;c=K[c+9|0];if((c|0)==37){Yd(a);b=J[a+36>>2];c=K[J[b+16>>2]]}ca:{if(c&255)break ca;if((Nd(b)|0)>0)break ca;He(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))oe(a,65,37887);be(a);k=hi(a);if(!k){oe(a,68,31086);break ba}be(a);b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Rd(a);b=J[a+36>>2]}h=J[b+16>>2];da:{if(K[h|0]==62)break da;while(1){if(J[a+ +172>>2]==-1)break da;J[m+8>>2]=0;if(!(J[a+292>>2]|(J[b+20>>2]-h|0)>249))Rd(a);J[m+12>>2]=0;l=hi(a);if(!l){oe(a,68,34061);b=J[a+36>>2];break da}b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Rd(a);b=J[a+36>>2]}b=K[J[b+16>>2]]-9|0;if(!(1<>>0<=23:0)){oe(a,65,34654);b=J[a+36>>2];break da}be(a);i=fc-16|0;fc=i;ea:{if(J[a+292>>2])break ea;c=J[a+36>>2];b=J[c+16>>2];if((b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)break ea;_g(a)}fa:{ga:{ha:{ia:{ja:{ka:{d=J[a+36>>2];b=J[d+16>>2];switch(K[b| +0]-67|0){case 11:break ha;case 2:break ia;case 6:break ja;case 0:break ka;default:break ga}}if(K[b+1|0]!=68|K[b+2|0]!=65|(K[b+3|0]!=84|K[b+4|0]!=65))break ga;J[a+200>>2]=J[a+200>>2]+5;J[d+16>>2]=b+5;J[d+32>>2]=J[d+32>>2]+5;c=1;b=K[b+5|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Nd(d)|0)>0)break fa;He(a);break fa}if(K[b+1|0]!=68)break ga;if(!(K[b+2|0]!=82|K[b+3|0]!=69|(K[b+4|0]!=70|K[b+5|0]!=83))){J[a+200>>2]=J[a+200>>2]+6;J[d+16>>2]=b+6;J[d+32>>2]=J[d+32>>2]+6;c=4;b= +K[b+6|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Nd(d)|0)>0)break fa;He(a);break fa}if(!(K[b+2|0]!=82|K[b+3|0]!=69|K[b+4|0]!=70)){J[a+200>>2]=J[a+200>>2]+5;J[d+16>>2]=b+5;J[d+32>>2]=J[d+32>>2]+5;c=3;b=K[b+5|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Nd(d)|0)>0)break fa;He(a);break fa}c=2;J[a+200>>2]=J[a+200>>2]+2;J[d+16>>2]=b+2;J[d+32>>2]=J[d+32>>2]+2;b=K[b+2|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Nd(d)| +0)>0)break fa;while(1){b=J[a+40>>2];if((b|0)<2)break fa;la:{ma:{na:{if(!J[693384]){g=b-1|0;J[a+40>>2]=g;d=J[a+48>>2];break na}J[i>>2]=b;d=0;kc[J[663297]](J[693366],36125,i);b=J[a+40>>2];if((b|0)<=0)break la;g=b-1|0;J[a+40>>2]=g;d=J[a+48>>2];f=0;e=0;if((b|0)==1)break ma}f=g;e=J[((b<<2)+d|0)-8>>2]}J[a+36>>2]=e;b=(f<<2)+d|0;d=J[b>>2];J[b>>2]=0}th(d);b=J[a+36>>2];if(K[J[b+16>>2]])break fa;if((Nd(b)|0)<=0)continue;break}break fa}if(K[b+1|0]!=78)break ga;if(!(K[b+2|0]!=84|K[b+3|0]!=73|(K[b+4|0]!=84|K[b+ +5|0]!=89))){J[a+200>>2]=J[a+200>>2]+6;J[d+16>>2]=b+6;J[d+32>>2]=J[d+32>>2]+6;c=5;b=K[b+6|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Nd(d)|0)>0)break fa;He(a);break fa}if(K[b+2|0]!=84|K[b+3|0]!=73|(K[b+4|0]!=84|K[b+5|0]!=73))break ga;if(K[b+6|0]!=69|K[b+7|0]!=83)break ga;J[a+200>>2]=J[a+200>>2]+8;J[d+16>>2]=b+8;J[d+32>>2]=J[d+32>>2]+8;c=6;b=K[b+8|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Nd(d)|0)>0)break fa;He(a);break fa}if(K[b+1|0]!= +77)break ga;oa:{if(K[b+2|0]!=84|K[b+3|0]!=79|(K[b+4|0]!=75|K[b+5|0]!=69))break oa;if(K[b+6|0]!=78|K[b+7|0]!=83)break oa;c=8;J[a+200>>2]=J[a+200>>2]+8;J[d+16>>2]=b+8;J[d+32>>2]=J[d+32>>2]+8;b=K[b+8|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Nd(d)|0)>0)break fa;He(a);break fa}if(K[b+2|0]!=84|K[b+3|0]!=79|(K[b+4|0]!=75|K[b+5|0]!=69))break ga;if(K[b+6|0]!=78)break ga;c=7;J[a+200>>2]=J[a+200>>2]+7;J[d+16>>2]=b+7;J[d+32>>2]=J[d+32>>2]+7;b=K[b+7|0];if((b|0)==37){Yd(a);d=J[a+ +36>>2];b=K[J[d+16>>2]]}if(b&255)break fa;if((Nd(d)|0)>0)break fa;He(a);break fa}pa:{qa:{d=J[a+36>>2];b=J[d+16>>2];if(K[b|0]!=78|K[b+1|0]!=79|(K[b+2|0]!=84|K[b+3|0]!=65))break qa;if(K[b+4|0]!=84|K[b+5|0]!=73|(K[b+6|0]!=79|K[b+7|0]!=78))break qa;J[a+200>>2]=J[a+200>>2]+8;J[d+16>>2]=b+8;J[d+32>>2]=J[d+32>>2]+8;b=K[b+8|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}ra:{if(b)break ra;if((Nd(d)|0)>0)break ra;He(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0)){oe(a,65,37953);c=0;break pa}be(a); +d=0;f=fc-48|0;fc=f;c=J[a+36>>2];b=J[c+16>>2];sa:{if(K[b|0]!=40){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break sa}J[a+84>>2]=48;J[f+32>>2]=13724;c=0;Hc(0,0,0,a,0,1,48,3,0,0,0,0,32906,f+32|0);J[a+12>>2]=0;if(J[a+288>>2])break sa;J[a+212>>2]=1;break sa}if(!(J[a+292>>2]|(b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499))_g(a);b=0;ta:{ua:{while(1){Zd(a);be(a);e=hi(a);if(!e)break ua;c=b;va:{if(b)while(1){if(Pg(e,J[c+4>>2])){Um(a,541,35551,e,0);if(Sk(J[a+296>>2],e))break va;kc[J[663199]](e);break va}c=J[c>>2];if(c)continue; +break}c=kc[J[663195]](8)|0;if(!c){J[f>>2]=17054;c=0;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,f);Rk(b);break sa}J[c>>2]=0;J[c+4>>2]=0;n=c,o=ff(e),J[n+4>>2]=o;wa:{if(!d){b=c;break wa}J[d>>2]=c}d=c}be(a);c=K[J[J[a+36>>2]+16>>2]];if((c|0)==124)continue;break}if((c|0)!=41){if(J[a+172>>2]==-1?J[a+212>>2]:0)break ta;J[a+84>>2]=49;J[f+16>>2]=6861;Hc(0,0,0,a,0,1,49,3,0,0,0,0,32906,f+16|0);J[a+12>>2]=0;if(J[a+288>>2])break ta;J[a+212>>2]=1;break ta}Zd(a);c=b;break sa}oe(a,68,33474)}Rk(b);c=0}fc=f+48|0;J[m+12>> +2]=c;c=c?10:0;break pa}d=0;f=fc+-64|0;fc=f;c=J[a+36>>2];b=J[c+16>>2];xa:{if(K[b|0]!=40){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){b=0;break xa}J[a+84>>2]=50;J[f+48>>2]=6736;b=0;Hc(0,0,0,a,0,1,50,3,0,0,0,0,32906,f+48|0);J[a+12>>2]=0;if(J[a+288>>2])break xa;J[a+212>>2]=1;break xa}if(!(J[a+292>>2]|(b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499))_g(a);b=0;ya:{while(1){Zd(a);be(a);e=v1(a);if(!e)break ya;c=b;za:{if(b)while(1){if(Pg(e,J[c+4>>2])){Um(a,541,35609,e,0);if(Sk(J[a+296>>2],e))break za;kc[J[663199]](e);break za}c= +J[c>>2];if(c)continue;break}c=kc[J[663195]](8)|0;Aa:{if(!c){J[f+32>>2]=17054;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,f+32|0);break Aa}J[c>>2]=0;J[c+4>>2]=0;n=c,o=ff(e),J[n+4>>2]=o}if(!Sk(J[a+296>>2],e))kc[J[663199]](e);if(!c){Rk(b);b=0;break xa}Ba:{if(!d){b=c;break Ba}J[d>>2]=c}d=c}be(a);c=K[J[J[a+36>>2]+16>>2]];if((c|0)==124)continue;break}if((c|0)!=41){if(J[a+172>>2]==-1?J[a+212>>2]:0)break xa;J[a+84>>2]=51;J[f+16>>2]=6818;Hc(0,0,0,a,0,1,51,3,0,0,0,0,32906,f+16|0);J[a+12>>2]=0;if(J[a+288>>2])break xa; +J[a+212>>2]=1;break xa}Zd(a);break xa}if(J[a+172>>2]==-1?J[a+212>>2]:0)break xa;J[a+84>>2]=67;J[f>>2]=6778;Hc(0,0,0,a,0,1,67,3,0,0,0,0,32906,f);J[a+12>>2]=0;if(J[a+288>>2])break xa;J[a+212>>2]=1}fc=f- -64|0;J[m+12>>2]=b;c=b?9:0}}fc=i+16|0;f=c;Ca:{Da:{if((c|0)<=0)break Da;b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Rd(a);b=J[a+36>>2]}b=K[J[b+16>>2]]-9|0;if(!(1<>>0<=23:0)){oe(a,65,34212);b=J[m+12>>2];if(!b)break Da;Rk(b);b=J[a+36>>2];break da}be(a);J[m+8>>2]=0;c=1;Ea:{Fa:{Ga:{Ha:{d= +J[a+36>>2];b=J[d+16>>2];if(K[b|0]!=35)break Ha;Ia:switch(K[b+1|0]-70|0){case 12:if(K[b+2|0]!=69|K[b+3|0]!=81|(K[b+4|0]!=85|K[b+5|0]!=73))break Ha;if(K[b+6|0]!=82|K[b+7|0]!=69|K[b+8|0]!=68)break Ha;J[a+200>>2]=J[a+200>>2]+9;J[d+16>>2]=b+9;J[d+32>>2]=J[d+32>>2]+9;c=2;b=K[b+9|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break Ea;if((Nd(d)|0)>0)break Ea;He(a);break Ea;case 3:if(K[b+2|0]!=77|K[b+3|0]!=80|(K[b+4|0]!=76|K[b+5|0]!=73))break Ha;if(K[b+6|0]!=69|K[b+7|0]!=68)break Ha;J[a+200>> +2]=J[a+200>>2]+8;J[d+16>>2]=b+8;J[d+32>>2]=J[d+32>>2]+8;c=3;b=K[b+8|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break Ea;if((Nd(d)|0)>0)break Ea;He(a);break Ea;case 0:break Ia;default:break Ha}if(K[b+2|0]!=73|K[b+3|0]!=88|(K[b+4|0]!=69|K[b+5|0]!=68))break Ha;J[a+200>>2]=J[a+200>>2]+6;J[d+16>>2]=b+6;J[d+32>>2]=J[d+32>>2]+6;b=K[b+6|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}Ja:{if(b)break Ja;if((Nd(d)|0)>0)break Ja;He(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<= +23:0))oe(a,65,38052);be(a);c=4;if(J[a+36>>2])break Ha;J[a+172>>2]=3;break Ga}b=BK(a,0,0,0);J[a+172>>2]=3;if(b)break Fa}oe(a,J[a+84>>2],33035);break Ea}J[m+8>>2]=b}e=c;i=J[m+8>>2];if(!(!i|(f|0)==1)){b=i;g=b;while(1){c=b;b=b+1|0;d=K[c|0];if((d|0)==32)continue;break}while(1){Ka:{La:{Ma:{if((d|0)!=32){if(!d)break Ka;c=c+1|0;break Ma}while(1){b=d;d=32;if((b|0)==32){d=K[c+1|0];c=c+1|0;continue}break}if(!b)break La}H[g|0]=d;g=g+1|0}d=K[c|0];continue}break}H[g|0]=0}Na:{b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+ +20>>2]-J[b+16>>2]|0)>249)){Rd(a);b=J[a+36>>2]}b=J[b+16>>2];d=K[b|0];c=d-9|0;if(!(c>>>0>23|!(1<>2]+16>>2];break Na}if((d|0)==62)break Na;oe(a,65,33816);if(i)kc[J[663199]](i);b=J[m+12>>2];if(!b)break Da;Rk(b);b=J[a+36>>2];break da}if((b|0)!=(h|0))break Ca;Xe(a,1,33646);if(i)kc[J[663199]](i);b=J[m+12>>2];if(!b)break Da;Rk(b)}b=J[a+36>>2];break da}Oa:{Pa:{b=J[a>>2];if(J[a+212>>2]|!b)break Pa;b=J[b+32>>2];if(!b)break Pa;kc[b|0](J[a+4>>2],k,l,f,e,i,J[m+12>>2]);break Oa}b= +J[m+12>>2];if(!b)break Oa;Rk(b)}b=J[a+324>>2];if(!(!b|!i|((e|0)==3|(e|0)==2))){h=fc-16|0;fc=h;b=J[a+352>>2];Qa:{if(b)if(Un(b,k,l))break Qa;Ra:{if(!J[a+348>>2]){b=mq(10,J[a+296>>2]);J[a+348>>2]=b;if(!b)break Ra}c=PK(k,h+12|0);b=J[a+296>>2];Sa:{if(!c){d=te(b,k,-1);c=0;break Sa}d=te(b,c,-1);c=te(J[a+296>>2],k,J[h+12>>2])}Ta:{b=Un(J[a+348>>2],d,c);Ua:{if(!b){b=kc[J[663195]](108)|0;if(!b)break Ra;J[b>>2]=0;J[b+4>>2]=4;if((f2(J[a+348>>2],d,c,b)|0)>=0)break Ua;break Ta}e=J[b+4>>2];if((e|0)>J[b>>2])break Ua; +b=kc[J[663200]](b,P(e,40)+28|0)|0;if(!b)break Ra;J[b+4>>2]=J[b+4>>2]<<1;if((f2(J[a+348>>2],d,c,b)|0)<0)break Ta}d=PK(l,h+12|0);c=J[a+296>>2];Va:{if(!d){d=te(c,l,-1);g=0;break Va}d=te(c,d,-1);g=te(J[a+296>>2],l,J[h+12>>2])}e=b+8|0;c=e+P(J[b>>2],20)|0;J[c>>2]=d;J[c+4>>2]=g;c=Tk(i);J[h+12>>2]=c;g=te(J[a+296>>2],i,c);c=J[b>>2];d=e+P(c,20)|0;J[d+8>>2]=g;J[d+12>>2]=g+J[h+12>>2];J[d+16>>2]=J[a+96>>2]?10093:0;J[b>>2]=c+1;break Qa}kc[J[663199]](b)}se(a,0)}fc=h+16|0;b=J[a+324>>2]}if(b)Wa:{Xa:{b=J[a+352>>2]; +if(!b){b=mq(10,J[a+296>>2]);J[a+352>>2]=b;if(!b)break Xa}if(Un(b,k,l))break Wa;VK(J[a+352>>2],k,l,f);break Wa}se(a,0)}if(i)kc[J[663199]](i);b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Rd(a);b=J[a+36>>2]}h=J[b+16>>2];if(K[h|0]!=62)continue;break}}if(K[J[b+16>>2]]!=62)break ba;if((b|0)!=(j|0))Um(a,90,30149,0,0);Zd(a)}fc=m+16|0;break b;case 33:f=fc-16|0;fc=f;c=J[a+36>>2];e=J[c+16>>2];Ya:{if(K[e|0]!=60|K[e+1|0]!=33|(K[e+2|0]!=78|K[e+3|0]!=79))break Ya;if(K[e+4|0]!=84|K[e+5|0]!=65|(K[e+ +6|0]!=84|K[e+7|0]!=73))break Ya;if(K[e+8|0]!=79|K[e+9|0]!=78)break Ya;Za:{if(J[a+292>>2]){b=c;break Za}if((e-J[c+12>>2]|0)<501){b=c;break Za}b=c;if((J[b+20>>2]-e|0)>499)break Za;_g(a);b=J[a+36>>2];e=J[b+16>>2]}J[a+200>>2]=J[a+200>>2]+10;J[b+16>>2]=e+10;J[b+32>>2]=J[b+32>>2]+10;d=K[e+10|0];if((d|0)==37){Yd(a);b=J[a+36>>2];d=K[J[b+16>>2]]}_a:{if(d&255)break _a;if((Nd(b)|0)>0)break _a;He(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0)){oe(a,65,37986);break Ya}be(a);e=hi(a);if(!e){Xe(a, +48,0);break Ya}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0)){oe(a,65,37813);break Ya}if(rq(e,58))Sn(a,205,37491,e,0);be(a);d=kC(a,f+12|0,0);be(a);b=J[a+36>>2];$a:{if(K[J[b+16>>2]]==62){if((b|0)!=(c|0))oe(a,65,30353);Zd(a);b=J[a>>2];if(J[a+212>>2]|!b)break $a;b=J[b+28>>2];if(!b)break $a;kc[b|0](J[a+4>>2],e,J[f+12>>2],d);break $a}Xe(a,49,0)}if(d)kc[J[663199]](d);b=J[f+12>>2];if(!b)break Ya;kc[J[663199]](b)}fc=f+16|0;break b;case 0:break c;default:break b}ju(a);break b}iu(a)}if(J[a+172>> +2]!=-1){ab:{if(J[a+96>>2])break ab;b=J[a+40>>2];if((b|0)==1){jC(a);if(J[a+96>>2])break ab;b=J[a+40>>2]}if((b|0)<2)break ab;b=J[J[a+36>>2]+16>>2];if(K[b|0]!=60|K[b+1|0]!=33|K[b+2|0]!=91)break ab;yK(a)}J[a+172>>2]=3}}function t0(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;f=vc(1160);J[699344]=0;J[f+8>>2]=a;J[f>>2]=2181644;J[f+16>>2]=0;J[f+12>>2]=b;J[f+4>>2]=a;a=J[699344];J[699344]=0;if((a|0)!=1){a=f;J[a+340>>2]=0;J[a+344>>2]=0;J[a+328>> +2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a>>2]=2194356;J[a+352>>2]=1;m=a+352|0;b=J[a+12>>2];a:{if((b|0)<=0)break a;f=J[a+8>>2];if(K[f|0]==1)break a;J[a+12>>2]=b-1;J[a+8>>2]=f+1}Rw(a,Tf(a,2,m),a+28|0,m);Rw(a,J[a+44>>2],a+48|0,m);Rw(a,J[a- -64>>2],a+68|0,m);Rw(a,J[a+84>>2],a+88|0,m);d=0;b:{if(!J[a+352>>2])break b;b=J[a+92>>2];J[a+348>>2]=(b|0)<1240?107:(b|0)<33900?1131:32768;b=0;if(J[a+32>>2]<=0){J[m>>2]=0;d=0;break b}f=J[a+40>>2];c=Rn(a,J[a+28>>2]+3|0,J[a+36>>2],m);g=J[a+40>>2];d=J[a+36>>2];d=Rn(a,(d+J[a+ +28>>2]|0)+3|0,d,m);c:{f=c+f|0;c=J[a+40>>2];if((f|0)<(c|0))break c;h=J[a+44>>2];if((h|0)<(f|0))break c;i=c;c=d+g|0;if((i|0)>=(c|0)|(c|0)>(h|0)|(c|0)<(f|0))break c;d:{if(!J[m>>2])break d;b=vc(8);g=J[a+8>>2];J[699344]=0;f=ga(3348,b|0,f+g|0,c-f|0)|0;c=J[699344];J[699344]=0;e:{f:{g:{if((c|0)!=1){J[a+20>>2]=f;J[a+128>>2]=-1;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+192>>2]=-755914244;J[a+ +196>>2]=1062232653;J[a+184>>2]=0;J[a+188>>2]=2;J[a+176>>2]=0;J[a+180>>2]=1078525952;J[a+168>>2]=0;J[a+172>>2]=-1067909120;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=-755914244;J[a+220>>2]=1062232653;Ac(a+224|0,0,104);h:{if(J[a+52>>2]<=0){J[a+1144>>2]=0;J[a+352>>2]=0;break h}c=J[a+60>>2];f=a+352|0;g=Rn(a,J[a+48>>2]+3|0,J[a+56>>2],f);b=J[a+56>>2];b=J[a+60>>2]+Rn(a,(b+J[a+48>>2]|0)+3|0,b,f)|0;g=c+g|0;c=J[a+60>>2];i:{j:{if((g|0)<(c|0))break j;d=J[a- -64>>2];if((d|0)<(g|0)|(b|0)<=(c|0)|(b|0)>(d|0))break j; +if((b|0)>=(g|0))break i}J[f>>2]=0}J[a+1144>>2]=0;k:{if((b|0)<=(g|0))break k;while(1){g=bK(a,g,f);if(!J[a+352>>2])break k;c=J[a+1144>>2]-1|0;d=a+(c<<4)|0;if(!J[d+360>>2]){J[a+1144>>2]=c;c=J[d+368>>2];if(J[a+128>>2]<0)J[a+128>>2]=c;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:switch(c-3072|0){default:H:switch(c|0){case 0:d=0;I:{J:switch(J[a+360>>2]-1|0){case 0:J[a+132>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+132>>2]=e<-2E9? +0:d?0:c;break l;case 2:break J;default:break I}c=J[a+372>>2];if(!c)break I;d=J[a+368>>2]/(c|0)|0}J[a+132>>2]=d;break l;case 18:break p;case 17:break q;case 16:break r;case 15:break s;case 5:break u;case 13:break v;case 4:break D;case 3:break E;case 2:break F;case 1:break H;default:break l}d=0;K:{L:switch(J[a+360>>2]-1|0){case 0:J[a+136>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+136>>2]=e<-2E9?0:d?0:c;break l;case 2:break L;default:break K}c= +J[a+372>>2];if(!c)break K;d=J[a+368>>2]/(c|0)|0}J[a+136>>2]=d;break l;case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 31:case 32:case 33:case 34:case 35:break l;case 37:break m;case 36:break n;case 30:break o;case 8:break t;case 7:break w;case 6:break x;case 5:break y;case 4:break z;case 3:break A;case 2:break B;case 1:break C;case 0:break G}d=0;M:{N:switch(J[a+360>>2]-1|0){case 0:J[a+ +140>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+140>>2]=e<-2E9?0:d?0:c;break l;case 2:break N;default:break M}c=J[a+372>>2];if(!c)break M;d=J[a+368>>2]/(c|0)|0}J[a+140>>2]=d;break l}d=0;O:{P:switch(J[a+360>>2]-1|0){case 0:J[a+144>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+144>>2]=e<-2E9?0:d?0:c;break l;case 2:break P;default:break O}c=J[a+372>>2];if(!c)break O;d=J[a+368>>2]/(c|0)|0}J[a+ +144>>2]=d;break l}d=0;Q:{R:switch(J[a+360>>2]-1|0){case 0:J[a+148>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+148>>2]=e<-2E9?0:d?0:c;break l;case 2:break R;default:break Q}c=J[a+372>>2];if(!c)break Q;d=J[a+368>>2]/(c|0)|0}J[a+148>>2]=d;break l}d=0;S:{T:switch(J[a+360>>2]-1|0){case 0:J[a+152>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+152>>2]=e<-2E9?0:d?0:c;break l;case 2:break T;default:break S}c= +J[a+372>>2];if(!c)break S;d=J[a+368>>2]/(c|0)|0}J[a+152>>2]=d;break l}d=0;U:{V:switch(J[a+360>>2]-1|0){case 0:J[a+156>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+156>>2]=e<-2E9?0:d?0:c;break l;case 2:break V;default:break U}c=J[a+372>>2];if(!c)break U;d=J[a+368>>2]/(c|0)|0}J[a+156>>2]=d;break l}e=0;W:{X:switch(J[a+360>>2]-1|0){case 0:O[a+160>>3]=J[a+368>>2];break l;case 1:O[a+160>>3]=O[a+368>>3];break l;case 2:break X;default:break W}c=J[a+ +372>>2];if(!c)break W;e=+J[a+368>>2]/+(c|0)}O[a+160>>3]=e;break l}e=0;Y:{Z:switch(J[a+360>>2]-1|0){case 0:O[a+168>>3]=J[a+368>>2];break l;case 1:O[a+168>>3]=O[a+368>>3];break l;case 2:break Z;default:break Y}c=J[a+372>>2];if(!c)break Y;e=+J[a+368>>2]/+(c|0)}O[a+168>>3]=e;break l}e=0;_:{$:switch(J[a+360>>2]-1|0){case 0:O[a+176>>3]=J[a+368>>2];break l;case 1:O[a+176>>3]=O[a+368>>3];break l;case 2:break $;default:break _}c=J[a+372>>2];if(!c)break _;e=+J[a+368>>2]/+(c|0)}O[a+176>>3]=e;break l}d=0;aa:{ba:switch(J[a+ +360>>2]-1|0){case 0:J[a+184>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+184>>2]=e<-2E9?0:d?0:c;break l;case 2:break ba;default:break aa}c=J[a+372>>2];if(!c)break aa;d=J[a+368>>2]/(c|0)|0}J[a+184>>2]=d;break l}d=0;ca:{da:switch(J[a+360>>2]-1|0){case 0:J[a+188>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+188>>2]=e<-2E9?0:d?0:c;break l;case 2:break da;default:break ca}c=J[a+372>>2];if(!c)break ca; +d=J[a+368>>2]/(c|0)|0}J[a+188>>2]=d;break l}l=0;e=0;ea:{fa:switch(J[a+360>>2]-1|0){case 0:e=+J[a+368>>2];break ea;case 1:e=O[a+368>>3];break ea;case 2:break fa;default:break ea}c=J[a+372>>2];if(!c)break ea;e=+J[a+368>>2]/+(c|0)}O[a+192>>3]=e;ga:{ha:switch(J[a+376>>2]-1|0){case 0:l=+J[a+384>>2];break ga;case 1:l=O[a+384>>3];break ga;case 2:break ha;default:break ga}c=J[a+388>>2];if(!c)break ga;l=+J[a+384>>2]/+(c|0)}O[a+200>>3]=l;l=0;e=0;ia:{ja:switch(J[a+392>>2]-1|0){case 0:e=+J[a+400>>2];break ia; +case 1:e=O[a+400>>3];break ia;case 2:break ja;default:break ia}c=J[a+404>>2];if(!c)break ia;e=+J[a+400>>2]/+(c|0)}O[a+208>>3]=e;ka:{la:switch(J[a+408>>2]-1|0){case 0:l=+J[a+416>>2];break ka;case 1:l=O[a+416>>3];break ka;case 2:break la;default:break ka}c=J[a+420>>2];if(!c)break ka;l=+J[a+416>>2]/+(c|0)}O[a+216>>3]=l;l=0;e=0;ma:{na:switch(J[a+424>>2]-1|0){case 0:e=+J[a+432>>2];break ma;case 1:e=O[a+432>>3];break ma;case 2:break na;default:break ma}c=J[a+436>>2];if(!c)break ma;e=+J[a+432>>2]/+(c|0)}O[a+ +224>>3]=e;oa:{pa:switch(J[a+440>>2]-1|0){case 0:l=+J[a+448>>2];break oa;case 1:l=O[a+448>>3];break oa;case 2:break pa;default:break oa}c=J[a+452>>2];if(!c)break oa;l=+J[a+448>>2]/+(c|0)}J[a+240>>2]=1;O[a+232>>3]=l;break l}d=0;qa:{ra:switch(J[a+360>>2]-1|0){case 0:J[a+244>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+244>>2]=e<-2E9?0:d?0:c;break l;case 2:break ra;default:break qa}c=J[a+372>>2];if(!c)break qa;d=J[a+368>>2]/(c|0)|0}J[a+244>>2]=d; +break l}l=0;e=0;sa:{ta:switch(J[a+360>>2]-1|0){case 0:e=+J[a+368>>2];break sa;case 1:e=O[a+368>>3];break sa;case 2:break ta;default:break sa}c=J[a+372>>2];if(!c)break sa;e=+J[a+368>>2]/+(c|0)}O[a+248>>3]=e;ua:{va:switch(J[a+376>>2]-1|0){case 0:l=+J[a+384>>2];break ua;case 1:l=O[a+384>>3];break ua;case 2:break va;default:break ua}c=J[a+388>>2];if(!c)break ua;l=+J[a+384>>2]/+(c|0)}O[a+256>>3]=l;l=0;e=0;wa:{xa:switch(J[a+392>>2]-1|0){case 0:e=+J[a+400>>2];break wa;case 1:e=O[a+400>>3];break wa;case 2:break xa; +default:break wa}c=J[a+404>>2];if(!c)break wa;e=+J[a+400>>2]/+(c|0)}O[a+264>>3]=e;ya:{za:switch(J[a+408>>2]-1|0){case 0:O[a+272>>3]=J[a+416>>2];break l;case 1:O[a+272>>3]=O[a+416>>3];break l;case 2:break za;default:break ya}c=J[a+420>>2];if(!c)break ya;l=+J[a+416>>2]/+(c|0)}O[a+272>>3]=l;break l}e=0;Aa:{Ba:switch(J[a+360>>2]-1|0){case 0:O[a+280>>3]=J[a+368>>2];break l;case 1:O[a+280>>3]=O[a+368>>3];break l;case 2:break Ba;default:break Aa}c=J[a+372>>2];if(!c)break Aa;e=+J[a+368>>2]/+(c|0)}O[a+280>> +3]=e;break l}d=0;Ca:{Da:switch(J[a+360>>2]-1|0){case 0:J[a+288>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+288>>2]=e<-2E9?0:d?0:c;break l;case 2:break Da;default:break Ca}c=J[a+372>>2];if(!c)break Ca;d=J[a+368>>2]/(c|0)|0}J[a+288>>2]=d;break l}d=0;Ea:{Fa:switch(J[a+360>>2]-1|0){case 0:J[a+292>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+292>>2]=e<-2E9?0:d?0:c;break l;case 2:break Fa;default:break Ea}c= +J[a+372>>2];if(!c)break Ea;d=J[a+368>>2]/(c|0)|0}J[a+292>>2]=d;break l}d=0;Ga:{Ha:switch(J[a+360>>2]-1|0){case 0:J[a+296>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+296>>2]=e<-2E9?0:d?0:c;break l;case 2:break Ha;default:break Ga}c=J[a+372>>2];if(!c)break Ga;d=J[a+368>>2]/(c|0)|0}J[a+296>>2]=d;break l}c=0;d=0;Ia:{Ja:switch(J[a+360>>2]-1|0){case 0:d=J[a+368>>2];break Ia;case 1:e=O[a+368>>3];h=e>2E9;if(R(e)<2147483648)d=~~e;else d=-2147483648; +d=e<-2E9?0:h?0:d;break Ia;case 2:break Ja;default:break Ia}h=J[a+372>>2];if(!h)break Ia;d=J[a+368>>2]/(h|0)|0}J[a+300>>2]=d;Ka:{La:switch(J[a+376>>2]-1|0){case 0:J[a+304>>2]=J[a+384>>2];break l;case 1:e=O[a+384>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+304>>2]=e<-2E9?0:d?0:c;break l;case 2:break La;default:break Ka}d=J[a+388>>2];if(!d)break Ka;c=J[a+384>>2]/(d|0)|0}J[a+304>>2]=c;break l}c=0;d=0;Ma:{Na:switch(J[a+360>>2]-1|0){case 0:d=J[a+368>>2];break Ma;case 1:e=O[a+368>>3];h=e> +2E9;if(R(e)<2147483648)d=~~e;else d=-2147483648;d=e<-2E9?0:h?0:d;break Ma;case 2:break Na;default:break Ma}h=J[a+372>>2];if(!h)break Ma;d=J[a+368>>2]/(h|0)|0}J[a+308>>2]=d;Oa:{Pa:switch(J[a+376>>2]-1|0){case 0:c=J[a+384>>2];break Oa;case 1:e=O[a+384>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;c=e<-2E9?0:d?0:c;break Oa;case 2:break Pa;default:break Oa}d=J[a+388>>2];if(!d)break Oa;c=J[a+384>>2]/(d|0)|0}J[a+312>>2]=c;d=0;Qa:{Ra:switch(J[a+392>>2]-1|0){case 0:J[a+316>>2]=J[a+400>>2];break l; +case 1:e=O[a+400>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+316>>2]=e<-2E9?0:d?0:c;break l;case 2:break Ra;default:break Qa}c=J[a+404>>2];if(!c)break Qa;d=J[a+400>>2]/(c|0)|0}J[a+316>>2]=d;break l}d=0;Sa:{Ta:switch(J[a+360>>2]-1|0){case 0:J[a+320>>2]=J[a+368>>2];break l;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;J[a+320>>2]=e<-2E9?0:d?0:c;break l;case 2:break Ta;default:break Sa}c=J[a+372>>2];if(!c)break Sa;d=J[a+368>>2]/(c|0)|0}J[a+320>>2]=d;break l}d= +0;Ua:{Va:switch(J[a+360>>2]-1|0){case 0:d=J[a+368>>2];break Ua;case 1:e=O[a+368>>3];d=e>2E9;if(R(e)<2147483648)c=~~e;else c=-2147483648;d=e<-2E9?0:d?0:c;break Ua;case 2:break Va;default:break Ua}c=J[a+372>>2];if(!c)break Ua;d=J[a+368>>2]/(c|0)|0}J[a+324>>2]=d}J[a+1144>>2]=0}if((b|0)>(g|0))continue;break}}}if(J[a+128>>2]!=3102)break f;d=J[a+320>>2];if(d)break g;J[a+336>>2]=1;b=Pk(592);J[a+328>>2]=b;J[b+552>>2]=0;J[b+556>>2]=0;J[b+544>>2]=-343597384;J[b+548>>2]=1068415057;J[b+536>>2]=0;J[b+528>>2]= +0;J[b+532>>2]=0;J[b+520>>2]=0;J[b+512>>2]=0;J[b+408>>2]=0;J[b+304>>2]=0;J[b+288>>2]=0;J[b+272>>2]=7;J[b+276>>2]=1;J[b+264>>2]=1580547965;J[b+268>>2]=1067731386;J[b+256>>2]=0;J[b+212>>2]=0;J[b+152>>2]=0;J[b+108>>2]=0;J[b+48>>2]=0;J[b+560>>2]=0;J[b+564>>2]=0;J[b+584>>2]=1;J[b+576>>2]=0;J[b+580>>2]=0;J[b+568>>2]=1;break e}a=Z()|0;uc(b);ba(a|0);B()}c=d+2|0;b=0;g=Ef(a,d,m);Wa:{if(!g){f=c;break Wa}j=Tf(a,c,m);if(j-5>>>0<=4294967291)J[m>>2]=0;h=d+3|0;f=h+P(g+1|0,j)|0;c=f-1|0;if(!((f|0)<=J[a+12>>2]&(f|0)> +0))J[m>>2]=0;f=Rn(a,h+P(g,j)|0,j,m)+c|0;if((c|0)>(f|0)|J[a+12>>2]<(f|0))break c}if(!J[m>>2])break d;J[a+336>>2]=g;w=a,x=Gd(g,592),J[w+328>>2]=x;if(J[a+336>>2]<=0)break e;q=(g|0)>0?g:0;r=d+3|0;while(1){if((b|0)==(q|0))break c;g=Rn(a,r+P(b,j)|0,j,m);h=b+1|0;d=Rn(a,r+P(h,j)|0,j,m);g=c+g|0;if((c|0)>(g|0))break c;k=c+d|0;if((f|0)<(g|0)|(k|0)>(f|0)|((g|0)>(k|0)|(c|0)>=(k|0)))break c;d=0;if(!J[m>>2])break b;b=J[a+328>>2]+P(b,592)|0;i=0;l=0;s=0;t=0;u=0;v=0;e=0;J[a+1144>>2]=0;d=k-g|0;Xa:{if((d|0)<=0){dK(a, +0,0,b);break Xa}k=d+g|0;d=a+352|0;Ya:{Za:{while(1){g=bK(a,g,d);if(!J[a+352>>2])break Ya;p=J[a+1144>>2];n=a+(p-1<<4)|0;if(!J[n+360>>2]){n=J[n+368>>2];_a:{if((n|0)!=3079){if((n|0)!=18)break _a;if((p|0)<=2){J[d>>2]=0;break Xa}d=0;g=0;$a:{ab:switch(J[a+360>>2]-1|0){case 0:g=J[a+368>>2];break $a;case 1:o=O[a+368>>3];k=o>2E9;if(R(o)<2147483648)g=~~o;else g=-2147483648;g=o<-2E9?0:k?0:g;break $a;case 2:break ab;default:break $a}k=J[a+372>>2];if(!k)break $a;g=J[a+368>>2]/(k|0)|0}bb:switch(J[a+376>>2]-1|0){case 0:d= +J[a+384>>2];break Za;case 1:o=O[a+384>>3];k=o>2E9;if(R(o)<2147483648)d=~~o;else d=-2147483648;d=o<-2E9?0:k?0:d;break Za;case 2:break bb;default:break Za}k=J[a+388>>2];if(!k)break Za;d=J[a+384>>2]/(k|0)|0;break Za}u=0;l=0;cb:{db:switch(J[a+360>>2]-1|0){case 0:l=+J[a+368>>2];break cb;case 1:l=O[a+368>>3];break cb;case 2:break db;default:break cb}i=J[a+372>>2];if(!i)break cb;l=+J[a+368>>2]/+(i|0)}eb:{fb:switch(J[a+376>>2]-1|0){case 0:u=+J[a+384>>2];break eb;case 1:u=O[a+384>>3];break eb;case 2:break fb; +default:break eb}i=J[a+388>>2];if(!i)break eb;u=+J[a+384>>2]/+(i|0)}v=0;s=0;gb:{hb:switch(J[a+392>>2]-1|0){case 0:s=+J[a+400>>2];break gb;case 1:s=O[a+400>>3];break gb;case 2:break hb;default:break gb}i=J[a+404>>2];if(!i)break gb;s=+J[a+400>>2]/+(i|0)}ib:{jb:switch(J[a+408>>2]-1|0){case 0:v=+J[a+416>>2];break ib;case 1:v=O[a+416>>3];break ib;case 2:break jb;default:break ib}i=J[a+420>>2];if(!i)break ib;v=+J[a+416>>2]/+(i|0)}e=0;t=0;kb:{lb:switch(J[a+424>>2]-1|0){case 0:t=+J[a+432>>2];break kb;case 1:t= +O[a+432>>3];break kb;case 2:break lb;default:break kb}i=J[a+436>>2];if(!i)break kb;t=+J[a+432>>2]/+(i|0)}i=1;mb:switch(J[a+440>>2]-1|0){case 0:e=+J[a+448>>2];break _a;case 1:e=O[a+448>>3];break _a;case 2:break mb;default:break _a}p=J[a+452>>2];if(!p)break _a;e=+J[a+448>>2]/+(p|0)}J[a+1144>>2]=0}if((g|0)<(k|0))continue;break}g=0;d=0}dK(a,d,g,b);if(!i)break Ya;J[b+48>>2]=1;O[b+40>>3]=e;O[b+32>>3]=t;O[b+24>>3]=v;O[b+16>>3]=s;O[b+8>>3]=u;O[b>>3]=l}}b=h;if((b|0)>2])continue;break}break e}J[a+ +336>>2]=1;b=Pk(592);J[a+328>>2]=b;dK(a,J[a+304>>2],J[a+300>>2],b)}d=0;if(!J[m>>2])break b;b=0;f=J[a+296>>2];if((f|0)<=0)break c;Rw(a,f,a+108|0,m);if(!J[a+352>>2])break d;J[a+332>>2]=J[a+112>>2];if(J[a+128>>2]==3102){c=0;w=a,x=Pk(J[a+332>>2]),J[w+340>>2]=x;if(J[a+332>>2]>0)while(1){H[J[a+340>>2]+c|0]=0;c=c+1|0;if((c|0)>2])continue;break}c=J[a+324>>2];nb:{if(!c)break nb;i=a+352|0;g=Tf(a,c,i);if(!J[a+352>>2])break nb;f=c+1|0;ob:{pb:switch(g|0){case 0:c=J[a+332>>2];if(!((c|0)<=(f^2147483647)& +(c|f)>=0&J[a+12>>2]>=(c+f|0)))break ob;if((c|0)<=0)break nb;c=0;while(1){g=K[(f+J[a+8>>2]|0)+c|0];if((g|0)>=J[a+336>>2])break ob;H[J[a+340>>2]+c|0]=g;c=c+1|0;if((c|0)>2])continue;break}break nb;case 3:break pb;default:break nb}k=Ef(a,f,i);f=Ef(a,c+3|0,i);if((k|0)<=0)break nb;h=c+5|0;g=1;while(1){c=f;j=Tf(a,h,i);f=Ef(a,h+1|0,i);if(!J[a+352>>2])break nb;if(J[a+332>>2]<(f|0)|(c|0)>(f|0)|(j|0)>=J[a+336>>2])break ob;d=g;qb:{if((c|0)>=(f|0))break qb;r=(c^-1)+f|0;g=0;q=f-c&3;if(q)while(1){H[J[a+ +340>>2]+c|0]=j;c=c+1|0;g=g+1|0;if((q|0)!=(g|0))continue;break}if(r>>>0<3)break qb;while(1){H[J[a+340>>2]+c|0]=j;H[(J[a+340>>2]+c|0)+1|0]=j;H[(J[a+340>>2]+c|0)+2|0]=j;H[(J[a+340>>2]+c|0)+3|0]=j;c=c+4|0;if((c|0)!=(f|0))continue;break}}h=h+3|0;g=d+1|0;if((d|0)!=(k|0))continue;break}break nb}J[i>>2]=0}if(!J[a+352>>2])break d}rb:{sb:{tb:switch(J[a+288>>2]){case 0:J[a+344>>2]=2656960;if(J[a+332>>2]<230)break sb;J[a+332>>2]=229;c=1;break rb;case 1:J[a+344>>2]=2657424;if(J[a+332>>2]<167)break sb;J[a+332>> +2]=166;c=1;break rb;case 2:J[a+344>>2]=2657760;if(J[a+332>>2]<88)break sb;J[a+332>>2]=87;break sb;default:break tb}f=Gd(J[a+332>>2],2);J[a+344>>2]=f;c=J[a+332>>2];if((c|0)>0)Ac(f,0,c<<1);c=J[a+288>>2];f=c+1|0;ub:{vb:{wb:{xb:{yb:{zb:{Ab:{j=a+352|0;switch(Tf(a,c,j)|0){case 0:break yb;case 1:break zb;case 2:break Ab;default:break vb}}h=1;if(J[a+332>>2]<=1)break vb;break wb}h=1;if(J[a+332>>2]<=1)break vb;break xb}if(J[a+332>>2]<2)break vb;h=1;while(1){c=Ef(a,f,j);I[J[a+344>>2]+(h<<1)>>1]=c;if(!J[a+352>> +2])break ub;f=f+2|0;h=h+1|0;if((h|0)>2])continue;break}break vb}while(1){d=Ef(a,f,j);i=Tf(a,f+2|0,j);if(!J[a+352>>2])break ub;g=J[a+332>>2];Bb:{if((i|0)<0|(g|0)<=(h|0))break Bb;k=J[a+344>>2];c=0;while(1){I[k+(h<<1)>>1]=d;h=h+1|0;g=J[a+332>>2];if((c|0)>=(i|0))break Bb;c=c+1|0;d=d+1|0;if((g|0)>(h|0))continue;break}}f=f+3|0;if((g|0)>(h|0))continue;break}break vb}while(1){d=Ef(a,f,j);i=Ef(a,f+2|0,j);if(!J[a+352>>2])break ub;g=J[a+332>>2];Cb:{if((i|0)<0|(g|0)<=(h|0))break Cb;k=J[a+344>>2];c=0; +while(1){I[k+(h<<1)>>1]=d;h=h+1|0;g=J[a+332>>2];if((c|0)>=(i|0))break Cb;c=c+1|0;d=d+1|0;if((g|0)>(h|0))continue;break}}f=f+4|0;if((g|0)>(h|0))continue;break}}if(J[j>>2])break sb}Mc(J[a+344>>2]);J[a+344>>2]=0;c=0;break rb}c=1}if(!c)break c;Db:switch(J[a+128>>2]-3092|0){default:f=0;h=0;k=fc-256|0;fc=k;d=2653344;Eb:{Fb:switch(J[a+292>>2]){default:w=a,x=Gd(256,4),J[w+24>>2]=x;while(1){c=f<<2;J[c+J[a+24>>2]>>2]=0;J[J[a+24>>2]+(c|4)>>2]=0;J[J[a+24>>2]+(c|8)>>2]=0;J[J[a+24>>2]+(c|12)>>2]=0;f=f+4|0;if((f| +0)!=256)continue;break}c=J[a+292>>2];j=a+352|0;r=Tf(a,c,j);if(!J[a+352>>2])break Eb;f=c+1|0;Gb:{Hb:switch(r&127){case 0:g=Tf(a,f,j);if(!J[a+352>>2])break Eb;f=c+2|0;c=J[a+332>>2];c=(c|0)>(g|0)?g+1|0:c;if((c|0)<2)break Gb;d=1;while(1){g=Tf(a,f,j);if(!J[a+352>>2])break Eb;g=g<<2;h=J[g+J[a+24>>2]>>2];if(h)Mc(h);f=f+1|0;h=Id(cK(a,L[J[a+344>>2]+(d<<1)>>1],k,j));J[g+J[a+24>>2]>>2]=h;d=d+1|0;if((c|0)!=(d|0))continue;break}break Gb;case 1:break Hb;default:break Gb}q=Tf(a,f,j);if(!J[a+352>>2])break Eb;f=c+ +2|0;if((q|0)<=0)break Gb;d=1;while(1){g=c;c=f;f=Tf(a,c,j);p=Tf(a,g+3|0,j);if(!J[a+352>>2])break Eb;i=0;Ib:{if((p|0)<0)break Ib;g=J[a+332>>2];if((d|0)>=(g|0))break Ib;while(1){if((f|0)<=255){g=f<<2;n=J[g+J[a+24>>2]>>2];if(n)Mc(n);n=Id(cK(a,L[J[a+344>>2]+(d<<1)>>1],k,j));J[g+J[a+24>>2]>>2]=n;g=J[a+332>>2]}d=d+1|0;if((i|0)>=(p|0))break Ib;i=i+1|0;f=f+1|0;if((d|0)<(g|0))continue;break}}f=c+2|0;h=h+1|0;if((q|0)!=(h|0))continue;break}}if(!(r&128))break Eb;c=Tf(a,f,j);if(!J[a+352>>2]|(c|0)<=0)break Eb;d= +f+1|0;f=0;while(1){g=Tf(a,d,j);if(!J[a+352>>2])break Eb;h=Ef(a,d+1|0,j);if(!J[a+352>>2])break Eb;g=g<<2;i=J[g+J[a+24>>2]>>2];if(i)Mc(i);d=d+3|0;h=Id(cK(a,h,k,j));J[g+J[a+24>>2]>>2]=h;f=f+1|0;if((c|0)!=(f|0))continue;break}break Eb;case 1:d=2654368;break;case 0:break Fb}J[a+24>>2]=d}fc=k+256|0;if(!J[a+352>>2])break d;break;case 0:case 10:break Db}b=J[m>>2]}d=b;break b}J[m>>2]=0;d=0}if(!d){kc[J[J[a>>2]+4>>2]](a);a=0}return a|0}a=Z()|0;uc(f);ba(a|0);B()}function Cma(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;d=fc-288|0;fc=d;e=K[c+11|0];i=e<<24>>24;a:{b:{c:{d:{e:{f:{g:{h:{i:{h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0<1073741808){j:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break j}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026,d+256|0,2449552)|0;e=J[699344];J[699344]=0;k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{if((e| +0)!=1){J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break Ma;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;Na:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break Na}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+260>>2]= +g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026,d+256|0,2449568)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ka;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break Ja;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>> +0>=1073741808)break h;Oa:{if(g>>>0<=1){J[d+232>>2]=0;J[d+224>>2]=0;J[d+228>>2]=0;H[d+235|0]=g;e=d+224|0;f=d+228|0;break Oa}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+228>>2]=g;J[d+224>>2]=e;J[d+232>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026,d+224|0,2449592)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ha;J[d+248>>2]=J[f+8>>2];e=J[f+4>>2];J[d+240>>2]=J[f>>2];J[d+244>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2]; +f=J[c+4>>2];h=K[c+11|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+240|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ga;J[d+264>>2]=J[f+8>>2];e=J[f+4>>2];J[d+256>>2]=J[f>>2];J[d+260>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+256|0,2449632)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Fa;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break Ea; +if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);if(H[d+251|0]<0)uc(J[d+240>>2]);if(H[d+235|0]<0)uc(J[d+224>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;Pa:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break Pa}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=32;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]= +0;f=aa(3026,d+256|0,2449676)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Aa;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break za;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);j=(O[a+16>>3]-O[a+8>>3])*56.69291338582678;Qa:{if(R(j)<2147483648){e=~~j;break Qa}e=-2147483648}jh(b,e);Tc(b,2449708,-1);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+20|0;if(g>>> +0>=1073741808)break g;Ra:{if(g>>>0<=1){J[d+280>>2]=0;J[d+272>>2]=0;J[d+276>>2]=0;H[d+283|0]=g;e=d+272|0;break Ra}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+276>>2]=g;J[d+272>>2]=e;J[d+280>>2]=f|-2147483648}f=e;e=h<<2;k=xc(cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,2449720,80),l=0,J[k+80>>2]=l;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break xa;if(H[d+283|0]<0)uc(J[d+272>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+2|0;if(g>>>0>=1073741808)break a;Sa:{if(h>>>0>= +4294967294){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+264|0;break Sa}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+8|0}J[e>>2]=60;J[e+4>>2]=47;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026,d+256|0,2449568)|0;e=J[699344];J[699344]=0;if((e|0)==1)break wa;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0, +d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break va;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;Ta:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break Ta}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026, +d+256|0,2449804)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ta;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break sa;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;Ua:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break Ua}e=g|3;if(e>>> +0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026,d+256|0,2449820)|0;e=J[699344];J[699344]=0;if((e|0)==1)break qa;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break pa;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);e=K[c+ +11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break f;Va:{if(g>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=g;e=d;f=d+4|0;break Va}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+4>>2]=g;J[d>>2]=e;J[d+8>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026,d|0,2449844)|0;e=J[699344];J[699344]=0;if((e|0)==1)break na;J[d+24>>2]=J[f+8>>2];e=J[f+4>>2];J[d+16>>2]=J[f>>2];J[d+20>>2]=e;J[f>>2]=0;J[f+4>>2]=0; +J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+16|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ma;J[d+40>>2]=J[f+8>>2];e=J[f+4>>2];J[d+32>>2]=J[f>>2];J[d+36>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+32|0,2449880)|0;e=J[699344];J[699344]=0;if((e|0)==1)break la;J[d+56>>2]=J[f+8>>2];e=J[f+4>>2];J[d+48>>2]=J[f>>2];J[d+52>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;f=J[a+76>>2];e=J[a+72>>2];h=K[a+83|0];J[699344]=0;g=e;i=a+ +72|0;e=h<<24>>24<0;f=ga(2960,d+48|0,(e?g:i)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ka;J[d+72>>2]=J[f+8>>2];e=J[f+4>>2];J[d+64>>2]=J[f>>2];J[d+68>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d- -64|0,2449708)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ja;J[d+88>>2]=J[f+8>>2];e=J[f+4>>2];J[d+80>>2]=J[f>>2];J[d+84>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+80|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break ia;J[d+104>>2]=J[f+8>>2];e=J[f+4>>2];J[d+96>>2]=J[f>>2];J[d+100>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+96|0,2449916)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ha;J[d+120>>2]=J[f+8>>2];e=J[f+4>>2];J[d+112>>2]=J[f>>2];J[d+116>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[a+72>>2];f=J[a+76>>2];h=K[a+83|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+112|0,(e?g:i)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ga;J[d+136>>2]=J[f+8>>2];e=J[f+ +4>>2];J[d+128>>2]=J[f>>2];J[d+132>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+128|0,2449708)|0;e=J[699344];J[699344]=0;if((e|0)==1)break fa;J[d+152>>2]=J[f+8>>2];e=J[f+4>>2];J[d+144>>2]=J[f>>2];J[d+148>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+144|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ea;J[d+168>>2]=J[f+8>>2];e=J[f+4>>2];J[d+160>>2]=J[f>>2];J[d+164>>2]=e;J[f>>2]=0;J[f+4>>2]=0; +J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+160|0,2449952)|0;e=J[699344];J[699344]=0;if((e|0)==1)break da;J[d+184>>2]=J[f+8>>2];e=J[f+4>>2];J[d+176>>2]=J[f>>2];J[d+180>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[a+72>>2];f=J[a+76>>2];h=K[a+83|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+176|0,(e?g:i)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ca;J[d+200>>2]=J[f+8>>2];e=J[f+4>>2];J[d+192>>2]=J[f>>2];J[d+196>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+192|0,2449708)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break ba;J[d+216>>2]=J[f+8>>2];e=J[f+4>>2];J[d+208>>2]=J[f>>2];J[d+212>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+208|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break aa;J[d+232>>2]=J[f+8>>2];e=J[f+4>>2];J[d+224>>2]=J[f>>2];J[d+228>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+224|0,245E4)|0;e=J[699344];J[699344]=0;if((e|0)==1)break $;J[d+248>>2]=J[f+8>>2];e=J[f+4>> +2];J[d+240>>2]=J[f>>2];J[d+244>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[a+72>>2];f=J[a+76>>2];h=K[a+83|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+240|0,(e?g:i)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break _;J[d+264>>2]=J[f+8>>2];e=J[f+4>>2];J[d+256>>2]=J[f>>2];J[d+260>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+256|0,2450024)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Z;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0; +J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break Y;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);if(H[d+251|0]<0)uc(J[d+240>>2]);if(H[d+235|0]<0)uc(J[d+224>>2]);if(H[d+219|0]<0)uc(J[d+208>>2]);if(H[d+203|0]<0)uc(J[d+192>>2]);if(H[d+187|0]<0)uc(J[d+176>>2]);if(H[d+171|0]<0)uc(J[d+160>>2]);if(H[d+155|0]<0)uc(J[d+144>>2]);if(H[d+139|0]<0)uc(J[d+128>>2]);if(H[d+123|0]<0)uc(J[d+112>>2]);if(H[d+107|0]<0)uc(J[d+96>>2]);if(H[d+91|0]<0)uc(J[d+80>>2]); +if(H[d+75|0]<0)uc(J[d+64>>2]);if(H[d+59|0]<0)uc(J[d+48>>2]);if(H[d+43|0]<0)uc(J[d+32>>2]);if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+11|0]<0)uc(J[d>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break e;Wa:{if(g>>>0<=1){J[d+232>>2]=0;J[d+224>>2]=0;J[d+228>>2]=0;H[d+235|0]=g;e=d+224|0;f=d+228|0;break Wa}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+228>>2]=g;J[d+224>>2]=e;J[d+232>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0, +J[k>>2]=l;J[699344]=0;f=aa(3026,d+224|0,2450044)|0;e=J[699344];J[699344]=0;if((e|0)==1)break G;J[d+248>>2]=J[f+8>>2];e=J[f+4>>2];J[d+240>>2]=J[f>>2];J[d+244>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;e=J[c>>2];f=J[c+4>>2];h=K[c+11|0];J[699344]=0;g=e;e=h<<24>>24<0;f=ga(2960,d+240|0,(e?g:c)|0,(e?f:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break F;J[d+264>>2]=J[f+8>>2];e=J[f+4>>2];J[d+256>>2]=J[f>>2];J[d+260>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;f=aa(3026,d+256|0,2450064)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break E;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break D;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);if(H[d+251|0]<0)uc(J[d+240>>2]);if(H[d+235|0]<0)uc(J[d+224>>2]);jh(b,J[a+84>>2]);Tc(b,2450024,-1);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+2|0;if(g>>>0>=1073741808)break a;Xa:{if(h>>>0>=4294967294){J[d+264>>2]=0;J[d+256>> +2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+264|0;break Xa}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+8|0}J[e>>2]=60;J[e+4>>2]=47;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026,d+256|0,2449820)|0;e=J[699344];J[699344]=0;if((e|0)==1)break z;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e| +0)==1)break y;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);e=K[c+11|0];i=e<<24>>24;h=(i|0)<0?J[c+4>>2]:e;g=h+1|0;if(g>>>0>=1073741808)break a;Ya:{if(g>>>0<=1){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=g;e=d+256|0;f=d+260|0;break Ya}e=g|3;if(e>>>0>=1073741823)break i;f=e+1|0;e=vc(f<<2);J[d+260>>2]=g;J[d+256>>2]=e;J[d+264>>2]=f|-2147483648;f=e+4|0}J[e>>2]=60;e=h<<2;k=cd(f,(i|0)<0?J[c>>2]:c,e)+e|0,l=0,J[k>>2]=l;J[699344]=0;f=aa(3026,d+256|0,2450092)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break w;J[d+280>>2]=J[f+8>>2];e=J[f+4>>2];J[d+272>>2]=J[f>>2];J[d+276>>2]=e;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);e=J[699344];J[699344]=0;if((e|0)==1)break v;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);xo(b,a+60|0);a=K[c+11|0];f=a<<24>>24;e=(f|0)<0?J[c+4>>2]:a;h=e+2|0;if(h>>>0>=1073741808)break a;Za:{if(e>>>0>=4294967294){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=h;i=d+256|0;g=d+264|0;break Za}a=h|3;if(a>>>0>=1073741823)break i; +a=a+1|0;i=vc(a<<2);J[d+260>>2]=h;J[d+256>>2]=i;J[d+264>>2]=a|-2147483648;g=i+8|0}J[i>>2]=60;J[i+4>>2]=47;a=e<<2;k=cd(g,(f|0)<0?J[c>>2]:c,a)+a|0,l=0,J[k>>2]=l;J[699344]=0;e=aa(3026,d+256|0,2450192)|0;a=J[699344];J[699344]=0;if((a|0)==1)break t;J[d+280>>2]=J[e+8>>2];a=J[e+4>>2];J[d+272>>2]=J[e>>2];J[d+276>>2]=a;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);a=J[699344];J[699344]=0;if((a|0)==1)break s;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);a=K[c+11|0];f=a<< +24>>24;e=(f|0)<0?J[c+4>>2]:a;h=e+2|0;if(h>>>0>=1073741808)break a;_a:{if(e>>>0>=4294967294){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=h;i=d+256|0;g=d+264|0;break _a}a=h|3;if(a>>>0>=1073741823)break i;a=a+1|0;i=vc(a<<2);J[d+260>>2]=h;J[d+256>>2]=i;J[d+264>>2]=a|-2147483648;g=i+8|0}J[i>>2]=60;J[i+4>>2]=47;a=e<<2;k=cd(g,(f|0)<0?J[c>>2]:c,a)+a|0,l=0,J[k>>2]=l;J[699344]=0;e=aa(3026,d+256|0,2449804)|0;a=J[699344];J[699344]=0;if((a|0)==1)break q;J[d+280>>2]=J[e+8>>2];a=J[e+4>>2];J[d+272>>2]=J[e>> +2];J[d+276>>2]=a;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);a=J[699344];J[699344]=0;if((a|0)==1)break p;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);a=K[c+11|0];f=a<<24>>24;e=(f|0)<0?J[c+4>>2]:a;h=e+2|0;if(h>>>0>=1073741808)break a;$a:{if(e>>>0>=4294967294){J[d+264>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;H[d+267|0]=h;i=d+256|0;g=d+264|0;break $a}a=h|3;if(a>>>0>=1073741823)break i;a=a+1|0;i=vc(a<<2);J[d+260>>2]=h;J[d+256>>2]=i;J[d+264>>2]=a|-2147483648;g=i+8|0}J[i>> +2]=60;J[i+4>>2]=47;a=e<<2;k=cd(g,(f|0)<0?J[c>>2]:c,a)+a|0,l=0,J[k>>2]=l;J[699344]=0;c=aa(3026,d+256|0,2449552)|0;a=J[699344];J[699344]=0;if((a|0)==1)break n;J[d+280>>2]=J[c+8>>2];a=J[c+4>>2];J[d+272>>2]=J[c>>2];J[d+276>>2]=a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[699344]=0;da(6657,b|0,d+272|0);a=J[699344];J[699344]=0;if((a|0)==1)break m;if(H[d+283|0]<0)uc(J[d+272>>2]);if(H[d+267|0]<0)uc(J[d+256>>2]);fc=d+288|0;return}c=Z()|0;break La}c=Z()|0;if(H[d+283|0]>=0)break La;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k; +break d}c=Z()|0;break Ia}c=Z()|0;if(H[d+283|0]>=0)break Ia;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;break Ba}c=Z()|0;break Ca}c=Z()|0;break Da}c=Z()|0;if(H[d+283|0]>=0)break Da;uc(J[d+272>>2])}if(H[d+267|0]>=0)break Ca;uc(J[d+256>>2])}if(H[d+251|0]>=0)break Ba;uc(J[d+240>>2])}if(H[d+235|0]>=0)break k;break c}c=Z()|0;break ya}c=Z()|0;if(H[d+283|0]>=0)break ya;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;if(H[d+283|0]>=0)break k;uc(J[d+272>>2]);break b}c=Z()|0;break ua}c= +Z()|0;if(H[d+283|0]>=0)break ua;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;break ra}c=Z()|0;if(H[d+283|0]>=0)break ra;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;break oa}c=Z()|0;if(H[d+283|0]>=0)break oa;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;break H}c=Z()|0;break I}c=Z()|0;break J}c=Z()|0;break K}c=Z()|0;break L}c=Z()|0;break M}c=Z()|0;break N}c=Z()|0;break O}c=Z()|0;break P}c=Z()|0;break Q}c=Z()|0;break R}c=Z()|0;break S}c=Z()|0;break T}c=Z()|0;break U}c= +Z()|0;break V}c=Z()|0;break W}c=Z()|0;break X}c=Z()|0;if(H[d+283|0]>=0)break X;uc(J[d+272>>2])}if(H[d+267|0]>=0)break W;uc(J[d+256>>2])}if(H[d+251|0]>=0)break V;uc(J[d+240>>2])}if(H[d+235|0]>=0)break U;uc(J[d+224>>2])}if(H[d+219|0]>=0)break T;uc(J[d+208>>2])}if(H[d+203|0]>=0)break S;uc(J[d+192>>2])}if(H[d+187|0]>=0)break R;uc(J[d+176>>2])}if(H[d+171|0]>=0)break Q;uc(J[d+160>>2])}if(H[d+155|0]>=0)break P;uc(J[d+144>>2])}if(H[d+139|0]>=0)break O;uc(J[d+128>>2])}if(H[d+123|0]>=0)break N;uc(J[d+112>> +2])}if(H[d+107|0]>=0)break M;uc(J[d+96>>2])}if(H[d+91|0]>=0)break L;uc(J[d+80>>2])}if(H[d+75|0]>=0)break K;uc(J[d+64>>2])}if(H[d+59|0]>=0)break J;uc(J[d+48>>2])}if(H[d+43|0]>=0)break I;uc(J[d+32>>2])}if(H[d+27|0]>=0)break H;uc(J[d+16>>2])}if(H[d+11|0]>=0)break k;uc(J[d>>2]);break b}c=Z()|0;break A}c=Z()|0;break B}c=Z()|0;break C}c=Z()|0;if(H[d+283|0]>=0)break C;uc(J[d+272>>2])}if(H[d+267|0]>=0)break B;uc(J[d+256>>2])}if(H[d+251|0]>=0)break A;uc(J[d+240>>2])}if(H[d+235|0]>=0)break k;break c}c=Z()| +0;break x}c=Z()|0;if(H[d+283|0]>=0)break x;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;break u}c=Z()|0;if(H[d+283|0]>=0)break u;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;break r}c=Z()|0;if(H[d+283|0]>=0)break r;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;break o}c=Z()|0;if(H[d+283|0]>=0)break o;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;break d}c=Z()|0;break l}c=Z()|0;if(H[d+283|0]>=0)break l;uc(J[d+272>>2])}if(H[d+267|0]>=0)break k;uc(J[d+256>>2])}break b}break a}Pd(); +B()}_d(d+224|0);B()}_d(d+272|0);B()}_d(d);B()}_d(d+224|0);B()}uc(J[d+256>>2]);break b}uc(J[d+224>>2])}ba(c|0);B()}_d(d+256|0);B()}function K4a(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;r=fc-16|0;fc=r;a:{b:{if(J[a+12>>2]==J[a+8>>2])break b;c:{if(!c)break c;d=J[b>>2];if(!d)break c;c=0;f=K[d+11|0];e=f<<24>>24<0;f=e?J[d+4>>2]:f;if(!f)break c;h=e?J[d>>2]:d;d:{e:{if((f|0)<=0)break e;while(1){if(M[h+(c<<2)>>2]<129){c=c+1| +0;if((f|0)!=(c|0))continue;break e}break}e=J[h>>2];d=0;f:{g:{if((f|0)>=2)while(1){c=1;g=J[P(d,20)+363856>>2];h:{if((e|0)!=J[g>>2])break h;while(1){l=c<<2;v=J[l+g>>2];if(!v|(v|0)!=J[h+l>>2])break h;c=c+1|0;if((f|0)!=(c|0))continue;break}if(!J[g+(f<<2)>>2])break g}d=d+1|0;if((d|0)!=93)continue;break c}f=f<<2;while(1){c=J[P(d,20)+363856>>2];if((e|0)==J[c>>2]&!J[c+f>>2])break g;c=d|1;if((c|0)==93)break c;h=J[P(c,20)+363856>>2];if((e|0)==J[h>>2]&!J[f+h>>2])break f;d=d+2|0;continue}}c=d}d=J[b+24>>2];if(d)d= +J[d>>2]==1;else d=0;e=J[b+20>>2];if(e)d=J[e>>2]==1?d|2:d;i:{j:{k:{l:switch(d-1|0){case 0:d=364704;if((c|0)==42)break i;d=P(c,20)+363860|0;break i;case 1:f=P(c,20);e=J[f+363868>>2];if((e|0)!=-1)break k;d=364712;if((c|0)==42)break i;d=f+363860|0;break i;case 2:break l;default:break j}d=364712;if((c|0)==42)break i;c=P(c,20);e=J[c+363868>>2];if((e|0)!=-1)break k;d=c+363860|0;break i}c=P(e,68)+365728|0;break d}d=P(c,20)+363860|0}c=J[d>>2];if((c|0)==-1)break c;c=P(c,68)+365728|0;break d}g=J[h>>2];d=J[(g<< +2)+354288>>2];if((d|0)==-1)break c;l=(d|0)<=426?426:d;m:{if((f|0)>=2)while(1){c=1;v=J[P(d,20)+355312>>2];if((g|0)!=H[v|0])break c;e=d;n:{while(1){d=H[c+v|0];if(!d|(d|0)!=J[h+(c<<2)>>2])break n;c=c+1|0;if((f|0)!=(c|0))continue;break}if(K[f+v|0])break n;d=e;break m}d=e+1|0;if((e|0)!=(l|0))continue;break c}while(1){c=J[P(d,20)+355312>>2];if((g|0)!=H[c|0])break c;if(!K[c+f|0])break m;c=(d|0)==(l|0);d=d+1|0;if(!c)continue;break}break c}if((d|0)==-1)break c;c=J[b+24>>2];if(c)c=J[c>>2]==1;else c=0;o:{e= +J[b+20>>2];if(e)c=J[e>>2]==1?c|2:c;p:{q:switch(c-1|0){case 0:d=P(d,20);c=J[d+355320>>2];if((c|0)!=-1)break o;c=J[d+355328>>2];if((c|0)!=-1)break o;c=J[d+355316>>2];if((c|0)!=-1)break o;c=d+355324|0;break p;case 1:d=P(d,20);c=J[d+355324>>2];if((c|0)!=-1)break o;c=J[d+355328>>2];if((c|0)!=-1)break o;c=J[d+355316>>2];if((c|0)!=-1)break o;c=d+355320|0;break p;case 2:d=P(d,20);c=J[d+355328>>2];if((c|0)!=-1)break o;c=J[d+355324>>2];if((c|0)!=-1)break o;c=J[d+355320>>2];if((c|0)!=-1)break o;c=d+355316|0; +break p;default:break q}d=P(d,20);c=J[d+355316>>2];if((c|0)!=-1)break o;c=J[d+355320>>2];if((c|0)!=-1)break o;c=J[d+355324>>2];if((c|0)!=-1)break o;c=d+355328|0}c=J[c>>2];if((c|0)==-1)break c;c=P(c,68)+365728|0;break d}c=P(c,68)+365728|0}bp(b);e=J[c>>2];f=Yc(e);d=vc(12);J[699344]=0;ca(1618,d|0,e|0,f|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b>>2]=d;d=K[c+10|0];e=vc(4);J[e>>2]=(d|0)==1;J[b+28>>2]=e;d=vc(10);J[b+32>>2]=d;e=K[c+19|0]|K[c+20|0]<<8;H[d+8|0]=e;H[d+9|0]=e>>>8;e=K[c+15|0]|K[c+16|0]<< +8|(K[c+17|0]<<16|K[c+18|0]<<24);f=K[c+11|0]|K[c+12|0]<<8|(K[c+13|0]<<16|K[c+14|0]<<24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;d=J[c+24>>2];e=vc(4);J[e>>2]=d;J[b+36>>2]=e;d=J[c+28>>2];e=vc(4);J[e>>2]=d;J[b+40>>2]=e;d=J[c+32>>2];e=vc(4);J[e>>2]=d;J[b+44>>2]=e;d=J[c+36>>2];e=vc(4);J[e>>2]=d;J[b+48>>2]=e;d=J[c+40>>2];e=vc(4);J[e>>2]=d;J[b+52>>2]=e;d=J[c+44>>2];e=vc(4);J[e>>2]=d;J[b+56>>2]=e;d=L[c+48>>1];e=vc(2);I[e>>1]=d;J[b+60>> +2]=e;d=L[c+50>>1];e=vc(2);I[e>>1]=d;J[b+64>>2]=e;d=L[c+56>>1];e=vc(2);I[e>>1]=d;J[b+76>>2]=e;d=L[c+58>>1];e=vc(2);I[e>>1]=d;J[b+80>>2]=e;d=L[c+60>>1];e=vc(2);I[e>>1]=d;J[b+84>>2]=e;d=L[c+64>>1];e=vc(2);I[e>>1]=d;J[b+92>>2]=e;c=L[c+66>>1];d=vc(2);I[d>>1]=c;J[b+96>>2]=d}x=-1;while(1){r:{y=J[a+8>>2];if((y|0)!=J[a+12>>2]){while(1){s:{q=J[y>>2];c=J[b+100>>2];t:{u:{if(!c)break u;d=L[c>>1];if(!d)break u;c=L[q+112>>1];if(!c)break u;v:{w:switch(d-1|0){case 0:if((c|0)!=2)break u;break t;case 1:if((c|0)==2)break t; +if((c&12)==4)break v;break u;default:break w}if((c|0)==2)break t}if(c&526)break t}c=J[b+32>>2];if(c){e=0;f=K[q+52|0];d=K[c|0];if(!((f|0)==(d|0)|!d)){e=f-d|0;d=e>>31;e=P((d^e)-d|0,1E3)}f=K[q+53|0];d=K[c+1|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+54|0];d=K[c+2|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+55|0];d=K[c+3|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+56|0];d=K[c+4|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31; +e=P((d^f)-d|0,100)+e|0}f=K[q+57|0];d=K[c+5|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+58|0];d=K[c+6|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+59|0];d=K[c+7|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}f=K[q+60|0];d=K[c+8|0];if(!((f|0)==(d|0)|!d)){f=f-d|0;d=f>>31;e=P((d^f)-d|0,100)+e|0}d=K[q+61|0];c=K[c+9|0];if((d|0)==(c|0)|!c)c=e;else{d=d-c|0;c=d>>31;c=P((c^d)-c|0,100)+e|0}}else c=0;v=c;A=J[q+80>>2];c=J[b+72>>2];if(c)c=K[c| +0];else c=3;w=c;c=J[b+28>>2];if(c){c=J[c>>2];d=J[q+48>>2];e=d?0:c?15E3:0;v=(d?c?e:350:e)+v|0}p=J[b>>2];x:{if(!p){h=0;break x}h=_L(q,p);n=J[q+116>>2];if((n|0)==J[q+120>>2])break x;while(1){e=K[p+11|0];f=e<<24>>24;i=J[p+4>>2];c=(f|0)<0;o=c?i:e;m=0;y:{if(!o)break y;j=K[n+11|0];d=j<<24>>24;l=J[n+4>>2];s=(d|0)<0;t=s?l:j;m=1E4;if(!t)break y;g=J[p>>2];if((o|0)==(t|0)){m=0;if(!qd(c?g:p,s?J[n>>2]:n,o))break y;g=J[p>>2];i=J[p+4>>2];l=J[n+4>>2];e=K[p+11|0];f=e;j=K[n+11|0];d=j}c=0;o=g;g=f<<24>>24<0;f=g?o:p;o= +d<<24>>24<0;d=o?J[n>>2]:n;g=g?i:e;t=g<<2;l=o?l:j;s=l<<2;e=0;z:{while(1){A:{if((c|0)>=(l|0)){j=0;break A}o=(d+s|0)-(c<<2)|0;B:{while(1){j=J[d>>2];c=c+1|0;d=d+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;C:{if((e|0)>=(g|0))break C;o=(f+t|0)-(e<<2)|0;D:{while(1){i=J[f>>2];e=e+1|0;f=f+4|0;u=i-32|0;if(u>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)!=(i|0))break z;if(j)continue; +break}m=100;break y}d=Ex(n,p);m=d?700:1E3;if(!(i?j:0))break y;m=1E3;if(d)break y;f=K[p+11|0];d=f<<24>>24;l=K[n+11|0];e=l<<24>>24;d=(d|0)<0;g=d?J[p+4>>2]:f;e=(e|0)<0;l=e?J[n+4>>2]:l;m=1500;if(!(g|l))break y;c=0;f=e?J[n>>2]:n;d=d?J[p>>2]:p;t=g<<2;s=l<<2;e=0;while(1){E:{if((c|0)>=(l|0)){j=0;break E}o=(f+s|0)-(c<<2)|0;F:{while(1){j=J[f>>2];c=c+1|0;f=f+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;G:{if((e|0)>=(g|0))break G;o=(d+ +t|0)-(e<<2)|0;H:{while(1){i=J[d>>2];e=e+1|0;d=d+4|0;u=i-32|0;if(u>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)==(i|0)?j:0)continue;break}m=(j|0)!=(i|0)?1E4:3E3}c=m;h=(c|0)<(h|0)?c:h;n=n+12|0;if((n|0)!=J[q+120>>2])continue;break}}p=J[b+4>>2];if(p){t=_L(q,p);n=J[q+116>>2];if((n|0)!=J[q+120>>2])while(1){e=K[p+11|0];f=e<<24>>24;i=J[p+4>>2];c=(f|0)<0;o=c?i:e;m=0;I:{if(!o)break I;j=K[n+11|0];d=j<<24>>24;l=J[n+4>>2];u=(d|0)<0;s=u?l:j;m=1E4;if(!s)break I; +g=J[p>>2];if((o|0)==(s|0)){m=0;if(!qd(c?g:p,u?J[n>>2]:n,o))break I;g=J[p>>2];i=J[p+4>>2];l=J[n+4>>2];e=K[p+11|0];f=e;j=K[n+11|0];d=j}c=0;o=g;g=f<<24>>24<0;f=g?o:p;o=d<<24>>24<0;d=o?J[n>>2]:n;g=g?i:e;s=g<<2;l=o?l:j;u=l<<2;e=0;J:{while(1){K:{if((c|0)>=(l|0)){j=0;break K}o=(d+u|0)-(c<<2)|0;L:{while(1){j=J[d>>2];c=c+1|0;d=d+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;M:{if((e|0)>=(g|0))break M;o=(f+s|0)-(e<<2)|0;N:{while(1){i= +J[f>>2];e=e+1|0;f=f+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)!=(i|0))break J;if(j)continue;break}m=100;break I}d=Ex(n,p);m=d?700:1E3;if(!(i?j:0))break I;m=1E3;if(d)break I;f=K[p+11|0];d=f<<24>>24;l=K[n+11|0];e=l<<24>>24;d=(d|0)<0;g=d?J[p+4>>2]:f;e=(e|0)<0;l=e?J[n+4>>2]:l;m=1500;if(!(g|l))break I;c=0;f=e?J[n>>2]:n;d=d?J[p>>2]:p;s=g<<2;u=l<<2;e=0;while(1){O:{if((c|0)>=(l|0)){j=0;break O}o=(f+u|0)-(c<<2)|0;P:{while(1){j= +J[f>>2];c=c+1|0;f=f+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;Q:{if((e|0)>=(g|0))break Q;o=(d+s|0)-(e<<2)|0;R:{while(1){i=J[d>>2];e=e+1|0;d=d+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)==(i|0)?j:0)continue;break}m=(j|0)!=(i|0)?1E4:3E3}c=m;t=(c|0)<(t|0)?c:t;n=n+12|0;if((n|0)!=J[q+120>>2])continue;break}h=(h|0)>(t|0)?t:h}p=J[b+8>>2];if(p){t= +_L(q,p);n=J[q+116>>2];if((n|0)!=J[q+120>>2])while(1){e=K[p+11|0];f=e<<24>>24;i=J[p+4>>2];c=(f|0)<0;o=c?i:e;m=0;S:{if(!o)break S;j=K[n+11|0];d=j<<24>>24;l=J[n+4>>2];u=(d|0)<0;s=u?l:j;m=1E4;if(!s)break S;g=J[p>>2];if((o|0)==(s|0)){m=0;if(!qd(c?g:p,u?J[n>>2]:n,o))break S;g=J[p>>2];i=J[p+4>>2];l=J[n+4>>2];e=K[p+11|0];f=e;j=K[n+11|0];d=j}c=0;o=g;g=f<<24>>24<0;f=g?o:p;o=d<<24>>24<0;d=o?J[n>>2]:n;g=g?i:e;s=g<<2;l=o?l:j;u=l<<2;e=0;T:{while(1){U:{if((c|0)>=(l|0)){j=0;break U}o=(d+u|0)-(c<<2)|0;V:{while(1){j= +J[d>>2];c=c+1|0;d=d+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;W:{if((e|0)>=(g|0))break W;o=(f+s|0)-(e<<2)|0;X:{while(1){i=J[f>>2];e=e+1|0;f=f+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)!=(i|0))break T;if(j)continue;break}m=100;break S}d=Ex(n,p);m=d?700:1E3;if(!(i?j:0))break S;m=1E3;if(d)break S;f=K[p+11|0];d=f<<24>>24;l=K[n+11|0];e=l<<24>> +24;d=(d|0)<0;g=d?J[p+4>>2]:f;e=(e|0)<0;l=e?J[n+4>>2]:l;m=1500;if(!(g|l))break S;c=0;f=e?J[n>>2]:n;d=d?J[p>>2]:p;s=g<<2;u=l<<2;e=0;while(1){Y:{if((c|0)>=(l|0)){j=0;break Y}o=(f+u|0)-(c<<2)|0;Z:{while(1){j=J[f>>2];c=c+1|0;f=f+4|0;i=j-32|0;if(i>>>0>13|!(1<>>0<26?j+32|0:j}i=0;_:{if((e|0)>=(g|0))break _;o=(d+s|0)-(e<<2)|0;$:{while(1){i=J[d>>2];e=e+1|0;d=d+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((j|0)==(i|0)?j:0)continue;break}m=(j|0)!=(i|0)?1E4:3E3}c=m;t=(c|0)<(t|0)?c:t;n=n+12|0;if((n|0)!=J[q+120>>2])continue;break}c=(t|0)<3E3?t+3E3|0:t;h=(c|0)<(h|0)?c:h}c=h+v|0;d=J[b+64>>2];if(d){e=L[q+90>>1]-L[d>>1]|0;d=e>>31;c=P((d^e)-d|0,50)+c|0}d=J[b+60>>2];if(d){e=L[q+88>>1]-L[d>>1]|0;d=e>>31;c=P((((d^e)-d&65535)>>>0)/10|0,3)+c|0}d=J[q+40>>2];f=0;e=J[b+20>>2];if(e)f=J[e>>2];e=J[q+44>>2];d=((d|0)!=(f|0))+c|0;c=J[b+24>>2];if(c)c=J[c>>2];else c=0;j=d+(((c|0)!=(e| +0))<<2)|0;c=J[b+12>>2];aa:{if(c){f=I[q+92>>1];ba:{if(H[c+11|0]>=0){J[r+8>>2]=J[c+8>>2];d=J[c+4>>2];J[r>>2]=J[c>>2];J[r+4>>2]=d;break ba}Ve(r,J[c>>2],J[c+4>>2])}e=0;g=K[r+11|0];c=g<<24>>24;h=(c|0)<0;d=J[r+4>>2];ca:{if(((h?d:g)|0)==3){if(!qd(h?J[r>>2]:r,352560,3))break ca;g=K[r+11|0];c=g;d=J[r+4>>2]}c=c<<24>>24;if((((c|0)<0?d:g)|0)==7)if(!qd((c|0)<0?J[r>>2]:r,352576,7))break ca;e=50;if(f>>>0<256)break ca;f=f>>8;g=K[r+11|0];c=g<<24>>24;h=(c|0)<0;da:{ea:{d=J[r+4>>2];if(((h?d:g)|0)==5){if(!qd(h?J[r>>2]: +r,352608,5))break ea;d=J[r+4>>2];g=K[r+11|0];c=g}h=c<<24>>24;if((((h|0)<0?d:g)|0)==5){if(!qd((h|0)<0?J[r>>2]:r,352632,5))break ea;g=K[r+11|0];c=g;d=J[r+4>>2]}c=c<<24>>24<0;if(((c?d:g)|0)!=6)break da;if(qd(c?J[r>>2]:r,352656,6)|(f|0)<9)break da;break ca}if((f|0)>8)break ca}g=K[r+11|0];c=g<<24>>24;h=(c|0)<0;fa:{ga:{d=J[r+4>>2];if(((h?d:g)|0)==10){if(!qd(h?J[r>>2]:r,352684,10))break ga;g=K[r+11|0];c=g;d=J[r+4>>2]}c=c<<24>>24;if((((c|0)<0?d:g)|0)!=6)break fa;if(qd((c|0)<0?J[r>>2]:r,352728,6)|(f|0)>8)break fa; +break ca}if((f|0)<9)break ca}e=0}j=e+j|0;if(H[r+11|0]>=0)break aa;uc(J[r>>2]);break aa}d=J[b+16>>2];if(!d)break aa;c=0;d=L[d>>1];ha:{if(d>>>0<256)break ha;c=50;e=I[q+92>>1];if(e>>>0<256)break ha;e=e>>8<9;d=d<<16>>24;if(!e&(d|0)<9)break ha;c=e?(d|0)>8?50:0:0}j=c+j|0}if((w|0)!=3){c=1;d=1;e=1;ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{f=((w|0)!=1?w:0)&255;switch(f-128|0){case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:break ia; case 110:break ja;case 127:break la;case 2:break na;case 8:break oa;case 1:break pa;case 6:break qa;case 0:break ra;case 94:break sa;case 35:break ta;case 58:break ua;case 50:break va;case 49:break wa;case 34:break xa;case 33:break ya;case 76:break za;default:break Aa}}if((f|0)==2)break ma;if((f|0)!=77)break ia;e=29;break ka}e=2;break ja}e=3;break ja}e=4;break ja}e=5;break ja}e=6;break ja}e=7;break ja}e=8;break ka}e=16;break ka}e=17;break ka}e=18;break ka}e=19;break ka}e=20;break ka}e=21;break ka}e= 31;break ka}e=30}d=0}f=e&7;if(!d){d=e&24;e=0;while(1){c=c<<8;e=e+8|0;if((d|0)!=(e|0))continue;break}}e=0;if(!f)break ia;while(1){c=c<<1;e=e+1|0;if((f|0)!=(e|0))continue;break}}c=c&A?0:65E3}else c=0;c=c+j|0;d=J[b+76>>2];if(d){d=I[d>>1];f=I[q+100>>1];Ba:{if(!f){g=4E3;if(d)break Ba}e=f-d|0;d=e>>31;g=(d^e)-d<<2}c=g+c|0}d=J[b+80>>2];if(d){d=I[d>>1];f=I[q+102>>1];Ca:{if(!f){g=100;if(d)break Ca}e=f-d|0;d=e>>31;g=(((d^e)-d&65535)>>>0)/10|0}c=g+c|0}d=J[b+84>>2];if(d){d=I[d>>1];f=I[q+104>>1];Da:{if(!f){g=100; if(d)break Da}e=f-d|0;d=e>>31;g=(((d^e)-d&65535)>>>0)/10|0}c=g+c|0}d=J[b+88>>2];if(d){d=I[d>>1];f=I[q+106>>1];Ea:{if(!f){g=100;if(d)break Ea}e=f-d|0;d=e>>31;g=(((d^e)-d&65535)>>>0)/10|0}c=g+c|0}d=J[b+92>>2];if(d){d=I[d>>1];f=I[q+108>>1];Fa:{if(!f){g=50;if(d)break Fa}e=f-d|0;d=e>>31;g=(((d^e)-d&65535)>>>0)/20|0}c=g+c|0}d=J[b+96>>2];if(d){d=I[d>>1];f=I[q+110>>1];Ga:{if(!f){g=50;if(d)break Ga}e=f-d|0;d=e>>31;g=(((d^e)-d&65535)>>>0)/20|0}c=g+c|0}d=(c|0)<(x|0);e=(x|0)<0;x=e?c:d?c:x;z=e?q:d?q:z;if(!c)break s}y= -y+4|0;if((y|0)!=J[a+12>>2])continue}break}if(!x)break r}if(k)break r;c=J[b>>2];if(!c)break r;l=0;h=bc-16|0;bc=h;Ha:{if(H[c+11|0]>=0){J[h+8>>2]=J[c+8>>2];d=J[c+4>>2];J[h>>2]=J[c>>2];J[h+4>>2]=d;break Ha}Re(h,J[c>>2],J[c+4>>2])}c=J[h>>2];k=K[h+11|0];f=k<<24>>24;g=(f|0)<0;d=J[h+4>>2];e=g?d:k;if((e|0)>0){c=g?c:h;k=0;if((e|0)!=1){f=e&-2;d=0;while(1){g=k<<2;v=g+c|0;w=J[v>>2];if(w-65>>>0<=25)J[v>>2]=w+32;g=c+(g|4)|0;v=J[g>>2];if(v-65>>>0<=25)J[g>>2]=v+32;k=k+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}Ia:{if(!(e& -1))break Ia;c=c+(k<<2)|0;d=J[c>>2];if(d-65>>>0>25)break Ia;J[c>>2]=d+32}d=J[h+4>>2];k=K[h+11|0];f=k;c=J[h>>2]}e=0;Ja:{Ka:{g=d;d=f<<24>>24<0;k=d?g:k;La:{Ma:{if((k|0)<4)break Ma;d=d?c:h;f=d+(k<<2)|0;c=d;Na:{while(1){c=og(c,98,k-3|0);if(!c)break Na;if(gd(c,413428,4)){c=c+4|0;k=f-c>>2;if((k|0)>=4)continue;break Na}break}if((c|0)==(f|0)|(c-d|0)==-4)break Ma;Oa:{Pa:{while(1){d=K[h+11|0];c=d<<24>>24<0;d=c?J[h+4>>2]:d;if(d>>>0>>0)break Pa;g=d<<2;d=c?J[h>>2]:h;e=g+d|0;k=d+(l<<2)|0;c=e-k>>2;if((c|0)<4)break Pa; -while(1){c=og(k,98,c-3|0);if(!c)break Pa;if(gd(c,413428,4)){k=c+4|0;c=e-k>>2;if((c|0)>=4)continue;break Pa}break}if((c|0)==(e|0))break Pa;c=c-d|0;if((c|0)==-4)break Pa;l=c>>2;c=K[h+11|0];if(l>>>0>(c<<24>>24<0?J[h+4>>2]:c)>>>0){J[695492]=0;_(2804,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break Oa;break Ka}J[695492]=0;ca(2805,h|0,l|0,4);c=J[695492];J[695492]=0;if((c|0)!=1)continue;break}k=Z()|0;break La}e=1;l=J[b+20>>2];if(l)break Ma;l=0;J[695492]=0;c=$(4,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break Oa; -J[c>>2]=1;J[b+20>>2]=c;break Ma}k=Z()|0;break La}}Qa:{d=K[h+11|0];c=d<<24>>24<0;Ra:{Sa:{Ta:{k=c?J[h+4>>2]:d;Ua:{Va:{if((k|0)<6)break Va;d=c?J[h>>2]:h;f=d+(k<<2)|0;c=d;while(1){c=og(c,105,k-5|0);if(!c)break Va;if(gd(c,413448,6)){c=c+4|0;k=f-c>>2;if((k|0)>=6)continue;break Va}break}if((c|0)==(f|0))break Va;if((c-d|0)!=-4)break Ua}d=K[h+11|0];c=d<<24>>24<0;k=c?J[h+4>>2]:d;if((k|0)<7)break Ta;d=c?J[h>>2]:h;f=d+(k<<2)|0;c=d;while(1){c=og(c,111,k-6|0);if(!c)break Ta;if(gd(c,413476,7)){c=c+4|0;k=f-c>>2; -if((k|0)>=7)continue;break Ta}break}if((c|0)==(f|0)|(c-d|0)==-4)break Ta}k=0;Wa:{Xa:{Ya:{Za:{while(1){d=K[h+11|0];c=d<<24>>24<0;d=c?J[h+4>>2]:d;if(d>>>0>>0)break Za;g=d<<2;d=c?J[h>>2]:h;e=g+d|0;k=d+(k<<2)|0;c=e-k>>2;if((c|0)<6)break Za;while(1){c=og(k,105,c-5|0);if(!c)break Za;if(gd(c,413448,6)){k=c+4|0;c=e-k>>2;if((c|0)>5)continue;break Za}break}if((c|0)==(e|0))break Za;c=c-d|0;if((c|0)==-4)break Za;k=c>>2;c=K[h+11|0];if(k>>>0>(c<<24>>24<0?J[h+4>>2]:c)>>>0)break Ya;J[695492]=0;ca(2805,h|0,k|0, -6);c=J[695492];J[695492]=0;if((c|0)!=1)continue;break}k=Z()|0;break La}k=-1;while(1){d=K[h+11|0];c=d<<24>>24<0;d=c?J[h+4>>2]:d;if(d>>>0>>0)break Xa;g=d<<2;d=c?J[h>>2]:h;e=g+d|0;k=d+(k<<2)|0;c=e-k>>2;if((c|0)<7)break Xa;while(1){c=og(k,111,c-6|0);if(!c)break Xa;if(gd(c,413476,7)){k=c+4|0;c=e-k>>2;if((c|0)>=7)continue;break Xa}break}if((c|0)==(e|0))break Xa;c=c-d|0;if((c|0)==-4)break Xa;k=c>>2;c=K[h+11|0];if(k>>>0>(c<<24>>24<0?J[h+4>>2]:c)>>>0)break Ya;J[695492]=0;ca(2805,h|0,k|0,7);c=J[695492]; -J[695492]=0;if((c|0)!=1)continue;break}k=Z()|0;break La}J[695492]=0;_(2804,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break Ka;break Wa}c=J[b+24>>2];if(c)break Sa;c=0;J[695492]=0;d=$(4,4)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Wa;J[d>>2]=1;J[b+24>>2]=d;break Sa}k=Z()|0;break La}c=0;if(!e)break Ra}J[695492]=0;d=$(4,12)|0;e=J[695492];J[695492]=0;_a:{if((e|0)!=1){J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=J[b>>2];J[695492]=0;e=$(4,12)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break _a}k=Z()|0;break La}$a:{if(H[h+ -11|0]>=0){f=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=f;J[e+8>>2]=J[h+8>>2];break $a}J[695492]=0;ca(15,e|0,J[h>>2],J[h+4>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break Qa}J[b>>2]=e;J[d+8>>2]=c;J[d+4>>2]=l;c=d}if(H[h+11|0]<0)qc(J[h>>2]);bc=h+16|0;break Ja}k=Z()|0;qc(e)}if(H[h+11|0]<0)qc(J[h>>2]);ba(k|0);B()}B()}k=c;if(c)continue;break b}break}if(!k)break b;a=J[b>>2];if(a){if(H[a+11|0]<0)qc(J[a>>2]);qc(a)}J[b>>2]=J[k>>2];a=J[k+4>>2];c=J[b+20>>2];if((a|0)!=(c|0)){if(c){qc(c);a=J[k+4>>2]}J[b+20>>2]=a}a=J[k+ -8>>2];c=J[b+24>>2];if((a|0)!=(c|0)){if(c){qc(c);a=J[k+8>>2]}J[b+24>>2]=a}qc(k)}bc=r+16|0;return z|0}a=Z()|0;qc(d);ba(a|0);B()}function aBa(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;d=bc-224|0;bc=d;l=d+204|0;LG(l,J[a+8>>2],1);J[695492]=0;f=J[c+24>>2];J[d+200>>2]=c;J[d+196>>2]=f;f=J[695492];J[695492]=0;a:{b:{c:{if((f|0)!=1){J[d+192>>2]=0;J[d+184>>2]=0;J[d+188>>2]=0;J[d+176>>2]=0;J[d+180>>2]=0;J[d+168>>2]=0;J[d+172>>2]=0;J[695492]=0;n=aa(5080,d+168|0,2389436)|0;f=J[695492]; -J[695492]=0;if((f|0)!=1){d:{e:{if(!J[d+196>>2])break e;e=J[d+212>>2];J[d+196>>2]=e;J[d+200>>2]=l;if(!e)break e;while(1){J[d+160>>2]=e;f=J[d+200>>2];J[d+164>>2]=f;f:{g:{h:{i:{g=f;f=d+204|0;if((g|0)!=(f|0)){J[695492]=0;da(5073,d+160|0,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;break b}j:{f=J[e+8>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break j;f=J[e+8>>2]}else f=0;J[695492]=0;J[d+128>>2]=f;h=f+36|0;f=kf(h);e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]= -0;e=J[J[c+12>>2]+((f>>>0)%M[c+8>>2]<<2)>>2];j=J[695492];J[695492]=0;if((j|0)==1)break h;if(e)while(1){if((f|0)==J[e+12>>2]){J[695492]=0;j=ga(5117,e+16|0,h|0,-1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;if(!j)break g}e=J[e+8>>2];if(e)continue;break}J[695492]=0;e=J[d+128>>2];h=J[e+20>>2];f=e+36|0;k:{if(!h)break k;f=J[h+8>>2]?e+20|0:f}e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;g=kf(f);e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;e=J[J[c+12>>2]+((g>>>0)%M[c+8>>2]<<2)>>2]; -h=J[695492];J[695492]=0;if((h|0)==1)break h;h=0;j=1;if(!e)break f;while(1){if((g|0)==J[e+12>>2]){J[695492]=0;i=ga(5117,e+16|0,f|0,-1)|0;k=J[695492];J[695492]=0;if((k|0)==1)break h;if(!i)break g}e=J[e+8>>2];if(e)continue;break}break f}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;vc(d+128|0);break d}h=1;j=0}l:{f=J[d+128>>2];if(!f)break l;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break l;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break l}break a}m:{if(!j)break m; -f=J[d+196>>2];if(!f)break m;e=J[f>>2];J[d+196>>2]=e;if(e)continue}break}j=0;if(!h)break e;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{while(1){J[d+152>>2]=0;J[d+144>>2]=0;J[d+148>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[695492]=0;j=aa(5080,d+128|0,2388756)|0;f=J[695492];J[695492]=0;G:{H:{I:{J:{if((f|0)!=1){e=J[d+212>>2];J[d+196>>2]=e;J[d+200>>2]=d+204;K:{if(!e){J[d+196>>2]=0;break K}while(1){J[d+120>>2]=e;f=J[d+200>>2];J[d+124>>2]=f;g=f;f=d+204|0;if((g|0)!=(f|0)){J[695492]= -0;da(5073,d+120|0,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Bd(j);break d}f=J[e+8>>2];J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break F;f=J[e+8>>2];J[d+104>>2]=f;J[695492]=0;e=d+16|0;da(5154,e|0,f|0);h=J[695492];J[695492]=0;if((h|0)==1)break J;J[695492]=0;h=aa(5139,j|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break I;J[h+24>>2]=0;sc(e);J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(!e){J[695492]=0;_(4987,f|0);f=J[695492]; -J[695492]=0;if((f|0)==1)break a}f=J[d+196>>2];if(f){e=J[f>>2];J[d+196>>2]=e;if(e)continue}break}e=J[d+212>>2];J[d+196>>2]=e;J[d+200>>2]=d+204;h=0;if(e)break G}Bd(j);j=1;break e}a=Z()|0;break d}a=Z()|0;break H}a=Z()|0;sc(d+16|0)}vc(d+104|0);Bd(j);break d}L:{while(1){J[d+112>>2]=e;f=J[d+200>>2];J[d+116>>2]=f;g=f;f=d+204|0;if((g|0)!=(f|0)){J[695492]=0;da(5073,d+112|0,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Bd(j);break d}f=J[e+8>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[695492]; -J[695492]=0;if((f|0)==1)break x;f=J[e+8>>2]}else f=0;J[695492]=0;e=d+16|0;da(5154,e|0,f|0);g=J[695492];J[695492]=0;if((g|0)==1)break y;J[695492]=0;g=kf(e);e=J[695492];J[695492]=0;if((e|0)==1)break z;J[695492]=0;e=J[J[c+12>>2]+((g>>>0)%M[c+8>>2]<<2)>>2];i=J[695492];J[695492]=0;if((i|0)==1)break z;M:{N:{O:{P:{Q:{R:{S:{if(!e)break S;while(1){T:{if((g|0)==J[e+12>>2]){J[695492]=0;i=ga(5117,e+16|0,d+16|0,-1)|0;k=J[695492];J[695492]=0;if((k|0)==1)break L;if(!i)break T}e=J[e+8>>2];if(e)continue;break S}break}h= -0;J[d+104>>2]=0;J[d+108>>2]=J[682146];U:while(1){V:{W:{X:{e=J[d+16>>2];if(!e)break X;J[695492]=0;e=ga(5142,e|0,46,0)|0;g=J[695492];J[695492]=0;Y:{Z:{_:{$:{aa:{ba:{if((g|0)!=1){if((e|0)<=0)break X;J[695492]=0;g=d+72|0;i=d+16|0;ia(5143,g|0,i|0,0,e|0);k=J[695492];J[695492]=0;if((k|0)==1)break ba;J[695492]=0;k=d+80|0;ca(5121,k|0,g|0,2378526);g=J[695492];J[695492]=0;if((g|0)==1)break aa;J[695492]=0;h=h+1|0;g=aa(5120,d- -64|0,h|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break $;J[695492]=0;m=d+88|0;ca(5122, -m|0,k|0,g|0);k=J[695492];J[695492]=0;if((k|0)==1)break _;J[695492]=0;k=d+56|0;ia(5143,k|0,i|0,e|0,-1);e=J[695492];J[695492]=0;if((e|0)==1)break Z;J[695492]=0;ca(5122,d+96|0,m|0,k|0);e=J[695492];J[695492]=0;if((e|0)==1)break Y;e=J[d+96>>2];ca:{if(e){i=J[J[e>>2]+28>>2];J[695492]=0;ca(i|0,d+220|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break ca;a=Z()|0;break w}J[d+220>>2]=0}J[695492]=0;aa(4993,d+104|0,d+220|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){e=J[d+220>>2];J[d+220>>2]=0;if(!e)break W;J[695492]= -0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;k=J[695492];J[695492]=0;if((k|0)!=1){if(i)break W;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break W}break a}a=Z()|0;vc(d+220|0);break w}a=Z()|0;break q}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}J[695492]=0;e=d+88|0;ca(5121,e|0,d+16|0,2378526);g=J[695492];J[695492]=0;da:{ea:{if((g|0)!=1){J[695492]=0;h=h+1|0;g=aa(5120,d+48|0,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break ea;J[695492]=0;ca(5122,d+ -96|0,e|0,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break da;e=J[d+96>>2];fa:{if(e){i=J[J[e>>2]+28>>2];J[695492]=0;ca(i|0,d+80|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break fa;a=Z()|0;break C}J[d+80>>2]=0}J[695492]=0;aa(4993,d+104|0,d+80|0)|0;e=J[695492];J[695492]=0;ga:{if((e|0)!=1){e=J[d+80>>2];J[d+80>>2]=0;if(!e)break ga;J[695492]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;k=J[695492];J[695492]=0;if((k|0)!=1){if(i)break ga;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break ga}break a}a=Z()| -0;vc(d+80|0);break C}e=J[d+104>>2];J[d+108>>2]=J[(e?e+12|0:2728584)>>2];sc(d+96|0);sc(g);sc(d+88|0);break V}a=Z()|0;break q}a=Z()|0;break A}a=Z()|0;break B}e=J[d+104>>2];J[d+108>>2]=J[(e?e+12|0:2728584)>>2];sc(d+96|0);sc(d+56|0);sc(d+88|0);sc(g);sc(d+80|0);sc(d+72|0)}J[695492]=0;g=kf(d+104|0);e=J[695492];J[695492]=0;if((e|0)==1)break Q;J[695492]=0;e=J[J[c+12>>2]+((g>>>0)%M[c+8>>2]<<2)>>2];i=J[695492];J[695492]=0;if((i|0)==1)break Q;if(e)while(1){if((g|0)==J[e+12>>2]){J[695492]=0;i=ga(5117,e+16|0, -d+104|0,-1)|0;k=J[695492];J[695492]=0;if((k|0)==1)break R;if(!i)continue U}e=J[e+8>>2];if(e)continue;break}J[695492]=0;g=kf(d+104|0);e=J[695492];J[695492]=0;if((e|0)==1)break O;J[695492]=0;e=J[J[j+12>>2]+((g>>>0)%M[j+8>>2]<<2)>>2];i=J[695492];J[695492]=0;if((i|0)==1)break O;if(e)while(1){if((g|0)==J[e+12>>2]){J[695492]=0;i=ga(5117,e+16|0,d+104|0,-1)|0;k=J[695492];J[695492]=0;if((k|0)==1)break P;if(!i)continue U}e=J[e+8>>2];if(e)continue;break}break}e=J[a+8>>2];J[695492]=0;g=e;e=d+104|0;ca(5155,g| -0,f+36|0,e|0);h=J[695492];J[695492]=0;if((h|0)==1)break N;sc(e);h=1}sc(d+16|0);J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break M;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break M}break a}a=Z()|0;break q}a=Z()|0;break q}a=Z()|0;break q}a=Z()|0;break q}a=Z()|0;break q}f=J[d+196>>2];if(f){e=J[f>>2];J[d+196>>2]=e;if(e)continue}break}Bd(j);j=1;if(!(h&1))break e;e=J[a+8>>2];J[695492]=0;f=d+16|0;ca(5156,f|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)== -1)break E;J[695492]=0;aa(5072,d+204|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break D;$c(f);continue}break}a=Z()|0;break p}a=Z()|0;break n}a=Z()|0;break d}a=Z()|0;$c(d+16|0);break d}sc(d+96|0)}sc(g)}sc(d+88|0);break q}a=Z()|0;break p}a=Z()|0;break o}a=Z()|0;Bd(j);break d}sc(d+96|0)}sc(d+56|0)}sc(d+88|0)}sc(g)}sc(d+80|0)}sc(d+72|0)}sc(d+104|0)}sc(d+16|0)}if(!f)break n;J[695492]=0;b=J[f+4>>2]-1|0;J[f+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break n;J[695492]=0;_(4987,f|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break n}break a}Bd(j);break d}J[d+200>>2]=l;e=J[d+212>>2];J[d+196>>2]=e;ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{if(!e)break ya;f=a+16|0;while(1){J[d+40>>2]=e;c=J[d+200>>2];J[d+44>>2]=c;g=c;c=d+204|0;if((g|0)!=(c|0)){J[695492]=0;da(5073,d+40|0,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;break d}za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{c=J[e+8>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0; -if((c|0)==1)break Qa;c=J[e+8>>2]}else c=0;J[d+88>>2]=c;J[c+8>>2]=-1;J[695492]=0;h=c+36|0;c=kf(h);e=J[695492];J[695492]=0;if((e|0)==1)break La;J[695492]=0;e=J[J[f+12>>2]+((c>>>0)%M[f+8>>2]<<2)>>2];g=J[695492];J[695492]=0;if((g|0)==1)break La;if(e)while(1){if((c|0)==J[e+12>>2]){J[695492]=0;g=ga(5117,e+16|0,h|0,-1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break xa;if(!g)break Ma}e=J[e+8>>2];if(e)continue;break}J[d+108>>2]=f;J[d+104>>2]=0;J[695492]=0;ca(5048,d+96|0,2379178,J[d+88>>2]+36|0);a=J[695492];J[695492]= -0;if((a|0)==1)break Pa;a=J[d+96>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;b=ja(5018,d+16|0,a|0,2374282,360,2389206,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Oa;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break Na}a=Z()|0;break d}a=Z()|0;break ka}a=Z()|0}sc(d+96|0);break ka}J[d+108>>2]=f;J[d+104>>2]=e;c=f;if(j){J[695492]=0;_(5078,d+16|0);e=J[695492];J[695492]=0;if((e|0)==1)break Ka;e=J[d+104>>2];if(!(J[d+108>>2]==(c|0)?e:0)){J[695492]=0;da(5073,d+104|0,c| -0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;break Ba}c=J[e+24>>2];J[695492]=0;e=d+80|0;da(5151,e|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ja;J[695492]=0;da(5108,d+96|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ia;c=J[d+80>>2];J[d+80>>2]=0;Ra:{if(!c)break Ra;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break Ra;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;da(5108,d+80|0,d+16|0);c=J[695492];J[695492]= -0;if((c|0)==1)break Ha;c=J[a+8>>2];J[695492]=0;ia(5157,J[d+96>>2],J[d+80>>2],c|0,n|0);c=J[695492];J[695492]=0;if((c|0)==1)break Ga;c=J[d+80>>2];J[d+80>>2]=0;Sa:{if(!c)break Sa;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break Sa;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[d+96>>2];J[d+96>>2]=0;Ta:{if(!c)break Ta;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break Ta;J[695492]=0;_(4987, -c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[d+16>>2];e=J[J[c>>2]+20>>2];J[695492]=0;ha(e|0,c|0,0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ea;J[695492]=0;da(5158,d+96|0,d+16|0);c=J[695492];J[695492]=0;if((c|0)==1)break Da;c=J[d+104>>2];if(!((f|0)==J[d+108>>2]?c:0)){J[695492]=0;da(5073,d+104|0,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break Ca}J[695492]=0;aa(4993,c+24|0,d+96|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ca;c=J[d+96>>2];J[d+96>>2]=0;Ua:{if(!c)break Ua;J[695492]= -0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break Ua;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[d+16>>2];J[d+16>>2]=0;Va:{if(!c)break Va;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break Va;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}e=J[d+104>>2];c=J[d+108>>2]}if(!e|(c|0)!=(f|0))break Aa;c=J[e+24>>2];J[695492]=0;e=Ls(c);c=J[695492];J[695492]=0;if((c|0)!=1)break za}a= -Z()|0;break ka}a=Z()|0;break ka}a=Z()|0;break Ba}a=Z()|0;vc(d+80|0);break Ba}a=Z()|0;break Fa}a=Z()|0;vc(d+80|0)}vc(d+96|0);break Ba}a=Z()|0;break Ba}a=Z()|0;break Ba}a=Z()|0;vc(d+96|0)}vc(d+16|0);break ka}J[695492]=0;da(5073,d+104|0,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;break ka}c=J[d+88>>2];J[c+12>>2]=e;if(!e){J[695492]=0;b=ja(5018,d+16|0,2379394,2374282,375,2389206,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break pa;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b; -a=Z()|0;Fc(b);break ka}J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(!e){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[d+196>>2];if(!c)break ya;e=J[c>>2];J[d+196>>2]=e;if(e)continue;break}}J[695492]=0;c=d+104|0;_(5078,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break wa;J[695492]=0;da(5108,d+96|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break va;J[695492]=0;c=J[d+96>>2];ca(5160,c|0,2379920,1);f=J[695492];J[695492]=0;if((f|0)==1)break ja; -J[695492]=0;ca(5160,c|0,2380305,0);f=J[695492];J[695492]=0;if((f|0)==1)break ja;f=J[a+8>>2];J[695492]=0;J[d+16>>2]=0;e=d+16|0;aa(4985,e|0,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ua;J[695492]=0;ca(5161,f|0,e|0,j|0);f=J[695492];J[695492]=0;if((f|0)==1)break ta;f=J[d+16>>2];J[d+16>>2]=0;Wa:{if(!f)break Wa;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break Wa;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}J[695492]=0;_(5162,c|0); -f=J[695492];J[695492]=0;if((f|0)==1)break ja;if(!J[a+12>>2])break qa;J[695492]=0;ca(5160,c|0,2380752,0);f=J[695492];J[695492]=0;if((f|0)==1)break ja;f=J[a+12>>2];J[695492]=0;J[d+16>>2]=0;e=d+16|0;aa(4985,e|0,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break sa;J[695492]=0;da(5163,f|0,e|0);f=J[695492];J[695492]=0;if((f|0)==1)break ra;f=J[d+16>>2];J[d+16>>2]=0;Xa:{if(!f)break Xa;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break Xa;J[695492]=0;_(4987,f|0); -f=J[695492];J[695492]=0;if((f|0)==1)break a}J[695492]=0;_(5162,c|0);f=J[695492];J[695492]=0;if((f|0)!=1)break qa;break ja}a=Z()|0;break ka}a=Z()|0;break d}a=Z()|0;break ha}a=Z()|0;break ia}a=Z()|0;vc(d+16|0);break ia}a=Z()|0;break ia}a=Z()|0;vc(d+16|0);break ia}J[695492]=0;_(5162,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break ja;f=J[J[c>>2]+16>>2];J[695492]=0;c=$(f|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break oa;J[d+200>>2]=l;e=J[d+212>>2];J[d+196>>2]=e;if(e)while(1){f=J[e+8>>2];c=(c&1)+c|0; -J[f+8>>2]=c;c=c+J[f+12>>2]|0;e=J[e>>2];if(e)continue;break}J[d+196>>2]=0;J[695492]=0;da(5108,d+88|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break na;J[695492]=0;b=J[d+88>>2];ca(5160,b|0,2379920,1);c=J[695492];J[695492]=0;if((c|0)==1)break ma;J[695492]=0;ca(5160,b|0,2380305,0);c=J[695492];J[695492]=0;if((c|0)==1)break ma;c=J[a+8>>2];J[695492]=0;J[d+16>>2]=0;f=d+16|0;aa(4985,f|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[695492]=0;ca(5161,c|0,f|0,j|0);c=J[695492];J[695492]=0;Ya:{Za:{_a:{if((c|0)!= -1){c=J[d+16>>2];J[d+16>>2]=0;$a:{if(!c)break $a;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(f)break $a;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;_(5162,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break ma;if(!J[a+12>>2])break Ya;J[695492]=0;ca(5160,b|0,2380752,0);c=J[695492];J[695492]=0;if((c|0)==1)break ma;c=J[a+12>>2];J[695492]=0;J[d+16>>2]=0;f=d+16|0;aa(4985,f|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break _a;J[695492]= -0;da(5163,c|0,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break Za;c=J[d+16>>2];J[d+16>>2]=0;ab:{if(!c)break ab;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(f)break ab;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;_(5162,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Ya;break ma}a=Z()|0;vc(d+16|0);break la}a=Z()|0;break la}a=Z()|0;vc(d+16|0);break la}J[d+200>>2]=l;c=J[d+212>>2];J[d+196>>2]=c;bb:{cb:{db:{eb:{fb:{if(!c)break fb; -while(1){J[d+8>>2]=c;f=J[d+200>>2];J[d+12>>2]=f;e=f;f=d+204|0;if((e|0)!=(f|0)){J[695492]=0;da(5073,d+8|0,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;break la}c=J[c+8>>2];J[695492]=0;ca(5164,d+80|0,a|0,c+36|0);c=J[695492];J[695492]=0;gb:{hb:{ib:{jb:{kb:{if((c|0)!=1){J[695492]=0;da(5151,d+72|0,J[d+80>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break kb;c=J[J[b>>2]+16>>2];J[695492]=0;c=$(c|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break eb;lb:{if(!(c&1))break lb;J[695492]=0;J[d+16>>2]=0; -aa(4985,d+16|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break jb;J[695492]=0;da(5134,J[d+16>>2],0);c=J[695492];J[695492]=0;if((c|0)==1)break ib;c=J[d+16>>2];J[d+16>>2]=0;if(!c)break lb;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(f)break lb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;c=J[d+72>>2];J[d+16>>2]=0;aa(4985,d+16|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break eb;J[695492]=0;ga(5165,J[d+16>>2],c|0,0)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break hb;c=J[d+16>>2];J[d+16>>2]=0;if(!c)break gb;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)!=1){if(f)break gb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break gb}break a}a=Z()|0;break la}a=Z()|0;break cb}a=Z()|0;break db}a=Z()|0;vc(d+16|0);break db}a=Z()|0;vc(d+16|0);break db}c=J[d+72>>2];J[d+72>>2]=0;mb:{if(!c)break mb;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(f)break mb;J[695492]= -0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[d+80>>2];J[d+80>>2]=0;nb:{if(!c)break nb;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(f)break nb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[d+196>>2];if(!c)break fb;c=J[c>>2];J[d+196>>2]=c;if(c)continue;break}}J[695492]=0;_(5162,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break ma;a=J[J[b>>2]+24>>2];J[695492]=0;_(a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break ma;a= -J[d+88>>2];J[d+88>>2]=0;if(!a)break bb;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break bb;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break bb}break a}a=Z()|0}vc(d+72|0)}vc(d+80|0);break la}a=J[d+96>>2];J[d+96>>2]=0;ob:{if(!a)break ob;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break ob;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[d+104>>2];J[d+104>>2]=0;pb:{if(!a)break pb; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break pb;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}Bd(n);$c(d+204|0);bc=d+224|0;return}a=Z()|0;break la}a=Z()|0;break ka}a=Z()|0;break ia}a=Z()|0;break ia}a=Z()|0}vc(d+88|0);break ia}vc(d+88|0);break d}a=Z()|0}vc(d+96|0)}vc(d+104|0)}Bd(n);break c}a=Z()|0;break c}a=Z()|0}$c(d+204|0);ba(a|0);B()}B()}ea(0)|0;yc();B()}function TR(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;f=bc-784|0;bc=f;J[f+700>>2]=0;c=J[a+20>>2];J[a+16>>2]=c;a:{if(!c)break a;i=J[a+24>>2];b:{e=L[a+32>>1];if(!e)break b;if(!i){i=0;break b}while(1){if((c|0)!=J[(b<<2)+i>>2]){b=b+1|0;if((e|0)!=(b|0))continue;break b}break}break a}b=e+1|0;I[a+32>>1]=b;b=b&65535;if((b|0)>J[a+28>>2]){i=ST(a,i,b,8,82584);if(!i)break a;J[a+24>>2]=i;b=L[a+32>>1];J[a+28>>2]=b<<1}J[((b<<2)+i|0)-4>>2]=c;gc[J[a+572>>2]](a);I[a+476>>1]=L[a+476>>1]+1;c=J[a+20>>2];b=bc-80|0;bc=b;c:{if(f+700|0){J[a+16>>2]=c; -c=a+20|0;if(c)J[c>>2]=0;d:{e:{f:{if(!(K[a+13|0]&8)){if((gc[J[a+640>>2]](J[a+628>>2],J[a+16>>2],0)|0)!=J[a+16>>2]){c=J[a+628>>2];J[b+32>>2]=J[a>>2];Nc(c,92208,87205,b+32|0);break d}if((gc[J[a+632>>2]](J[a+628>>2],b+78|0,2)|0)!=2){c=J[a+628>>2];J[b+16>>2]=J[a>>2];Nc(c,92208,87353,b+16|0);break d}if(K[a+12|0]&128){e=K[b+79|0];H[b+79|0]=K[b+78|0];H[b+78|0]=e}e=Sg(a,L[b+78>>1],12,87508);if(!e)break d;if((gc[J[a+632>>2]](J[a+628>>2],e,P(L[b+78>>1],12))|0)!=(P(L[b+78>>1],12)|0)){c=J[a+628>>2];J[b>>2]=J[a>> -2];Nc(c,92208,87652,b);qc(e);break d}if(!c)break e;gc[J[a+632>>2]](J[a+628>>2],c,4)|0;break f}g:{e=J[a+616>>2];if(e>>>0>=2){l=J[a+16>>2];if(l>>>0<=e-2>>>0)break g}c=J[a+628>>2];J[b+48>>2]=J[a>>2];Nc(c,92208,87353,b+48|0);break d}e=b+78|0;Ne(e,l+J[a+612>>2]|0,2);if(K[a+12|0]&128){j=K[e+1|0];H[e+1|0]=K[e|0];H[e|0]=j}e=Sg(a,L[b+78>>1],12,87508);if(!e)break d;j=P(L[b+78>>1],12);l=l+2|0;if(M[a+616>>2]>>0){c=J[a+628>>2];J[b+64>>2]=J[a>>2];Nc(c,92208,87810,b- -64|0);qc(e);break d}Ne(e,l+J[a+612>>2]| -0,j);if(!c)break e;g=l+P(L[b+78>>1],12)|0;if(M[a+616>>2]>>0)break f;Ne(c,g+J[a+612>>2]|0,4)}if(!(K[a+12|0]&128))break e;Yo(c)}J[f+700>>2]=e;g=L[b+78>>1]}bc=b+80|0;break c}fa(86945,87126,1108,92208);B()}l=g;if(!g){b=J[a+628>>2];c=J[a>>2];J[f+4>>2]=J[a+20>>2];J[f>>2]=c;Nc(b,72848,69128,f);break a}J[a+12>>2]=J[a+12>>2]&-65;tG(a);Mz(a);J[f+688>>2]=1;$d(a,284,f+688|0);m=a+40|0;b=J[f+700>>2];e=l;h:{while(1){if(K[a+12|0]&128){qs(b,2);Xo(b+4|0,2)}if(L[b>>1]==277){if(!Xy(a,b))break h;I[b>>1]=0}b=b+12| -0;c=(e|0)>1;e=e-1|0;if(c)continue;break}k=J[f+700>>2];b=g;while(1){j=b;c=L[k>>1];i:{if(!c)break i;e=J[a+660>>2];b=e>>>0>d>>>0?d:0;if(c>>>0>2]+(b<<2)>>2]>>2]){b=0;if(!o){c=J[a+628>>2];J[f+672>>2]=J[a>>2];ae(c,72848,70103,f+672|0);e=J[a+660>>2]}o=1}j:{if(b>>>0>=e>>>0)break j;c=L[k>>1];n=J[a+656>>2];k:{while(1){i=J[n+(b<<2)>>2];d=J[i>>2];if(d>>>0>=c>>>0)break k;b=b+1|0;if((e|0)!=(b|0))continue;break}d=e;h=1;break i}if((c|0)!=(d|0))break j;if(!L[i+12>>1]){d=b;I[k>>1]=0;break i}p=L[k+2>>1]; -l:{while(1){d=b;q=J[i+8>>2];if((p|0)==(q&65535)|b>>>0>=e>>>0|!q)break l;b=b+1|0;if(e>>>0>b>>>0){i=J[n+(b<<2)>>2];if(J[i>>2]==(c|0))continue}break}c=J[a+628>>2];e=J[a>>2];J[f+664>>2]=J[J[n+(d<<2)>>2]+16>>2];J[f+660>>2]=p;J[f+656>>2]=e;ae(c,72848,70849,f+656|0);d=b;I[k>>1]=0;break i}e=L[i+4>>1];b=e<<16>>16;m:{n:{o:switch(e-65533|0){case 1:b=L[a+98>>1];break;case 0:case 2:break n;default:break o}e=J[k+4>>2];if(e>>>0>>0)break m;if(b>>>0>=e>>>0)break n;e=J[a+628>>2];n=J[a>>2];c=J[Lf(a,c)+16>>2];p=J[k+ -4>>2];J[f+648>>2]=b;J[f+644>>2]=p;J[f+640>>2]=c;ae(e,n,82923,f+640|0);c=L[k>>1]}p:{q:{r:{s:{t:{b=c&65535;switch(b-256|0){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:case 21:case 24:case 25:case 26:case 27:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:break i; -case 17:case 23:case 68:case 69:break q;case 3:break r;case 0:case 1:case 22:case 28:case 66:case 67:case 82:break s;default:break t}}if(b-32997>>>0>=2)break i}if(!Xy(a,k))break h;break p}if(J[k+4>>2]==1){c=L[k+2>>1];b=J[k+8>>2];if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(c<<2)>>2]|0;b=J[J[a+468>>2]+(c<<2)>>2]&b;J[f+692>>2]=b;J[f+592>>2]=b&65535;if($d(a,259,f+592|0))break i;break h}if(L[k+2>>1]==4){if(!NR(a,k,f+692|0))break h;b=L[k>>1];J[f+608>>2]=L[f+692>>1];if($d(a,b,f+608|0))break p;break h}if(!MR(a, -k,f+698|0))break h;b=L[k>>1];J[f+624>>2]=L[f+698>>1];if($d(a,b,f+624|0))break p;break h}b=L[i+12>>1];c=m+(b>>>3&8188)|0;J[c>>2]=J[c>>2]|1<>1]=0;break i}e=J[a+628>>2];i=J[a>>2];c=J[Lf(a,c)+16>>2];n=J[k+4>>2];J[f+584>>2]=b;J[f+580>>2]=n;J[f+576>>2]=c;ae(e,i,82715,f+576|0);I[k>>1]=0;break i}d=b;h=1}k=k+12|0;b=j-1|0;if((j|0)>1)continue;break}if(h){h=J[f+700>>2];e=g;b=0;while(1){j=e;c=L[h>>1];u:{if(!c)break u;e=J[a+660>>2];b=e>>>0>b>>>0&c>>>0>=M[J[J[a+656>>2]+(b<<2)>>2]>>2]?b:0;v:{w:{x:{if(b>>> -0>=e>>>0)break x;i=J[a+656>>2];y:{while(1){d=J[J[(b<<2)+i>>2]>>2];if(d>>>0>=c>>>0)break y;b=b+1|0;if((e|0)!=(b|0))continue;break}b=e;break x}if((c|0)==(d|0))break w}e=J[a+628>>2];d=J[a>>2];J[f+568>>2]=c;J[f+564>>2]=c;J[f+560>>2]=d;ae(e,72848,71730,f+560|0);k=L[h>>1];i=L[h+2>>1];e=0;d=bc-16|0;bc=d;c=zc(20);z:{if(!c)break z;Hg(c,0,20);J[c+12>>2]=16842817;J[c+8>>2]=i;J[c+4>>2]=-131075;J[c>>2]=k;i=zc(32);J[c+16>>2]=i;if(!i){qc(c);break z}J[d>>2]=k;Vf(i,78526,d);e=c}bc=d+16|0;A:{if(Jm(a,e,1)){i=J[a+656>> -2];e=J[a+660>>2];if(e)break A;e=0;b=0;break w}c=J[a+628>>2];e=L[h>>1];J[f+532>>2]=e;J[f+528>>2]=e;ae(c,72848,72223,f+528|0);break v}c=L[h>>1];b=0;while(1){if(c>>>0<=M[J[(b<<2)+i>>2]>>2])break w;b=b+1|0;if((e|0)!=(b|0))continue;break}b=e}d=J[(b<<2)+i>>2];k=L[h+2>>1];while(1){c=b;d=J[d+8>>2];if((k|0)==(d&65535)|!d|b>>>0>=e>>>0)break u;b=b+1|0;if(e>>>0>b>>>0){d=J[(b<<2)+i>>2];if(J[d>>2]==L[h>>1])continue}break}e=J[a+628>>2];d=J[a>>2];J[f+552>>2]=J[J[(c<<2)+i>>2]+16>>2];J[f+548>>2]=k;J[f+544>>2]=d;ae(e, -72848,70849,f+544|0)}I[h>>1]=0}h=h+12|0;e=j-1|0;if((j|0)>1)continue;break}}B:{if(L[a+88>>1]!=6|L[a+138>>1]!=2)break B;e=0;i=J[f+700>>2];b=i;while(1){if(L[b>>1]!=273){b=b+12|0;e=e+1|0;if(l>>>0>(e&65535)>>>0)continue;break B}break}if(J[b+4>>2]!=1)break B;b=0;while(1){if(L[i>>1]!=279){i=i+12|0;b=b+1|0;if(l>>>0>(b&65535)>>>0)continue;break B}break}if(J[i+4>>2]!=1)break B;I[a+138>>1]=1;ae(J[a+628>>2],72848,72866,0)}b=J[m>>2];if(!(b&2)){b=J[a+628>>2];a=J[a>>2];J[f+20>>2]=73503;J[f+16>>2]=a;Nc(b,92192,82462, -f+16|0);break h}C:{if(!(b&4)){b=kT(a);J[a+68>>2]=J[a+56>>2];J[a+72>>2]=J[a+100>>2];J[a+76>>2]=J[a- -64>>2];c=J[a+12>>2]&-1025;break C}b=bT(a);c=J[a+12>>2]|1024}J[a+12>>2]=c;J[a+180>>2]=b;if(!b){b=J[a+628>>2];a=J[a>>2];J[f+36>>2]=c&1024?74501:74868;J[f+32>>2]=a;Nc(b,72848,74142,f+32|0);break h}J[a+176>>2]=b;if(L[a+138>>1]==2)J[a+176>>2]=(b>>>0)/L[a+98>>1];D:{E:{F:{e=J[m>>2];if(!(e&33554432)){c=c&1024;if(c|((b|0)!=1|L[a+88>>1]!=6))break F;J[m>>2]=e|33554432}p=a+184|0;n=a+188|0;e=J[f+700>>2];while(1){k= +y+4|0;if((y|0)!=J[a+12>>2])continue}break}if(!x)break r}if(k)break r;c=J[b>>2];if(!c)break r;l=0;h=fc-16|0;fc=h;Ha:{if(H[c+11|0]>=0){J[h+8>>2]=J[c+8>>2];d=J[c+4>>2];J[h>>2]=J[c>>2];J[h+4>>2]=d;break Ha}Ve(h,J[c>>2],J[c+4>>2])}c=J[h>>2];k=K[h+11|0];f=k<<24>>24;g=(f|0)<0;d=J[h+4>>2];e=g?d:k;if((e|0)>0){c=g?c:h;k=0;if((e|0)!=1){f=e&-2;d=0;while(1){g=k<<2;v=g+c|0;w=J[v>>2];if(w-65>>>0<=25)J[v>>2]=w+32;g=c+(g|4)|0;v=J[g>>2];if(v-65>>>0<=25)J[g>>2]=v+32;k=k+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}Ia:{if(!(e& +1))break Ia;c=c+(k<<2)|0;d=J[c>>2];if(d-65>>>0>25)break Ia;J[c>>2]=d+32}d=J[h+4>>2];k=K[h+11|0];f=k;c=J[h>>2]}e=0;Ja:{Ka:{g=d;d=f<<24>>24<0;k=d?g:k;La:{Ma:{if((k|0)<4)break Ma;d=d?c:h;f=d+(k<<2)|0;c=d;Na:{while(1){c=og(c,98,k-3|0);if(!c)break Na;if(qd(c,415172,4)){c=c+4|0;k=f-c>>2;if((k|0)>=4)continue;break Na}break}if((c|0)==(f|0)|(c-d|0)==-4)break Ma;Oa:{Pa:{while(1){d=K[h+11|0];c=d<<24>>24<0;d=c?J[h+4>>2]:d;if(d>>>0>>0)break Pa;g=d<<2;d=c?J[h>>2]:h;e=g+d|0;k=d+(l<<2)|0;c=e-k>>2;if((c|0)<4)break Pa; +while(1){c=og(k,98,c-3|0);if(!c)break Pa;if(qd(c,415172,4)){k=c+4|0;c=e-k>>2;if((c|0)>=4)continue;break Pa}break}if((c|0)==(e|0))break Pa;c=c-d|0;if((c|0)==-4)break Pa;l=c>>2;c=K[h+11|0];if(l>>>0>(c<<24>>24<0?J[h+4>>2]:c)>>>0){J[699344]=0;$(2970,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break Oa;break Ka}J[699344]=0;ca(2971,h|0,l|0,4);c=J[699344];J[699344]=0;if((c|0)!=1)continue;break}k=Z()|0;break La}e=1;l=J[b+20>>2];if(l)break Ma;l=0;J[699344]=0;c=_(4,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break Oa; +J[c>>2]=1;J[b+20>>2]=c;break Ma}k=Z()|0;break La}}Qa:{d=K[h+11|0];c=d<<24>>24<0;Ra:{Sa:{Ta:{k=c?J[h+4>>2]:d;Ua:{Va:{if((k|0)<6)break Va;d=c?J[h>>2]:h;f=d+(k<<2)|0;c=d;while(1){c=og(c,105,k-5|0);if(!c)break Va;if(qd(c,415192,6)){c=c+4|0;k=f-c>>2;if((k|0)>=6)continue;break Va}break}if((c|0)==(f|0))break Va;if((c-d|0)!=-4)break Ua}d=K[h+11|0];c=d<<24>>24<0;k=c?J[h+4>>2]:d;if((k|0)<7)break Ta;d=c?J[h>>2]:h;f=d+(k<<2)|0;c=d;while(1){c=og(c,111,k-6|0);if(!c)break Ta;if(qd(c,415220,7)){c=c+4|0;k=f-c>>2; +if((k|0)>=7)continue;break Ta}break}if((c|0)==(f|0)|(c-d|0)==-4)break Ta}k=0;Wa:{Xa:{Ya:{Za:{while(1){d=K[h+11|0];c=d<<24>>24<0;d=c?J[h+4>>2]:d;if(d>>>0>>0)break Za;g=d<<2;d=c?J[h>>2]:h;e=g+d|0;k=d+(k<<2)|0;c=e-k>>2;if((c|0)<6)break Za;while(1){c=og(k,105,c-5|0);if(!c)break Za;if(qd(c,415192,6)){k=c+4|0;c=e-k>>2;if((c|0)>5)continue;break Za}break}if((c|0)==(e|0))break Za;c=c-d|0;if((c|0)==-4)break Za;k=c>>2;c=K[h+11|0];if(k>>>0>(c<<24>>24<0?J[h+4>>2]:c)>>>0)break Ya;J[699344]=0;ca(2971,h|0,k|0, +6);c=J[699344];J[699344]=0;if((c|0)!=1)continue;break}k=Z()|0;break La}k=-1;while(1){d=K[h+11|0];c=d<<24>>24<0;d=c?J[h+4>>2]:d;if(d>>>0>>0)break Xa;g=d<<2;d=c?J[h>>2]:h;e=g+d|0;k=d+(k<<2)|0;c=e-k>>2;if((c|0)<7)break Xa;while(1){c=og(k,111,c-6|0);if(!c)break Xa;if(qd(c,415220,7)){k=c+4|0;c=e-k>>2;if((c|0)>=7)continue;break Xa}break}if((c|0)==(e|0))break Xa;c=c-d|0;if((c|0)==-4)break Xa;k=c>>2;c=K[h+11|0];if(k>>>0>(c<<24>>24<0?J[h+4>>2]:c)>>>0)break Ya;J[699344]=0;ca(2971,h|0,k|0,7);c=J[699344]; +J[699344]=0;if((c|0)!=1)continue;break}k=Z()|0;break La}J[699344]=0;$(2970,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Ka;break Wa}c=J[b+24>>2];if(c)break Sa;c=0;J[699344]=0;d=_(4,4)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Wa;J[d>>2]=1;J[b+24>>2]=d;break Sa}k=Z()|0;break La}c=0;if(!e)break Ra}J[699344]=0;d=_(4,12)|0;e=J[699344];J[699344]=0;_a:{if((e|0)!=1){J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=J[b>>2];J[699344]=0;e=_(4,12)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break _a}k=Z()|0;break La}$a:{if(H[h+ +11|0]>=0){f=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=f;J[e+8>>2]=J[h+8>>2];break $a}J[699344]=0;ca(15,e|0,J[h>>2],J[h+4>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break Qa}J[b>>2]=e;J[d+8>>2]=c;J[d+4>>2]=l;c=d}if(H[h+11|0]<0)uc(J[h>>2]);fc=h+16|0;break Ja}k=Z()|0;uc(e)}if(H[h+11|0]<0)uc(J[h>>2]);ba(k|0);B()}B()}k=c;if(c)continue;break b}break}if(!k)break b;a=J[b>>2];if(a){if(H[a+11|0]<0)uc(J[a>>2]);uc(a)}J[b>>2]=J[k>>2];a=J[k+4>>2];c=J[b+20>>2];if((a|0)!=(c|0)){if(c){uc(c);a=J[k+4>>2]}J[b+20>>2]=a}a=J[k+ +8>>2];c=J[b+24>>2];if((a|0)!=(c|0)){if(c){uc(c);a=J[k+8>>2]}J[b+24>>2]=a}uc(k)}fc=r+16|0;return z|0}a=Z()|0;uc(d);ba(a|0);B()}function lDa(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;d=fc-224|0;fc=d;l=d+204|0;YH(l,J[a+8>>2],1);J[699344]=0;f=J[c+24>>2];J[d+200>>2]=c;J[d+196>>2]=f;f=J[699344];J[699344]=0;a:{b:{c:{if((f|0)!=1){J[d+192>>2]=0;J[d+184>>2]=0;J[d+188>>2]=0;J[d+176>>2]=0;J[d+180>>2]=0;J[d+168>>2]=0;J[d+172>>2]=0;J[699344]=0;n=aa(5250,d+168|0,2401340)|0;f=J[699344]; +J[699344]=0;if((f|0)!=1){d:{e:{if(!J[d+196>>2])break e;e=J[d+212>>2];J[d+196>>2]=e;J[d+200>>2]=l;if(!e)break e;while(1){J[d+160>>2]=e;f=J[d+200>>2];J[d+164>>2]=f;f:{g:{h:{i:{g=f;f=d+204|0;if((g|0)!=(f|0)){J[699344]=0;da(5243,d+160|0,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;break b}j:{f=J[e+8>>2];if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break j;f=J[e+8>>2]}else f=0;J[699344]=0;J[d+128>>2]=f;h=f+36|0;f=rf(h);e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]= +0;e=J[J[c+12>>2]+((f>>>0)%M[c+8>>2]<<2)>>2];j=J[699344];J[699344]=0;if((j|0)==1)break h;if(e)while(1){if((f|0)==J[e+12>>2]){J[699344]=0;j=ga(5287,e+16|0,h|0,-1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;if(!j)break g}e=J[e+8>>2];if(e)continue;break}J[699344]=0;e=J[d+128>>2];h=J[e+20>>2];f=e+36|0;k:{if(!h)break k;f=J[h+8>>2]?e+20|0:f}e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;g=rf(f);e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;e=J[J[c+12>>2]+((g>>>0)%M[c+8>>2]<<2)>>2]; +h=J[699344];J[699344]=0;if((h|0)==1)break h;h=0;j=1;if(!e)break f;while(1){if((g|0)==J[e+12>>2]){J[699344]=0;i=ga(5287,e+16|0,f|0,-1)|0;k=J[699344];J[699344]=0;if((k|0)==1)break h;if(!i)break g}e=J[e+8>>2];if(e)continue;break}break f}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;zc(d+128|0);break d}h=1;j=0}l:{f=J[d+128>>2];if(!f)break l;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break l;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break l}break a}m:{if(!j)break m; +f=J[d+196>>2];if(!f)break m;e=J[f>>2];J[d+196>>2]=e;if(e)continue}break}j=0;if(!h)break e;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{while(1){J[d+152>>2]=0;J[d+144>>2]=0;J[d+148>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[699344]=0;j=aa(5250,d+128|0,2400660)|0;f=J[699344];J[699344]=0;G:{H:{I:{J:{if((f|0)!=1){e=J[d+212>>2];J[d+196>>2]=e;J[d+200>>2]=d+204;K:{if(!e){J[d+196>>2]=0;break K}while(1){J[d+120>>2]=e;f=J[d+200>>2];J[d+124>>2]=f;g=f;f=d+204|0;if((g|0)!=(f|0)){J[699344]= +0;da(5243,d+120|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Md(j);break d}f=J[e+8>>2];J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break F;f=J[e+8>>2];J[d+104>>2]=f;J[699344]=0;e=d+16|0;da(5324,e|0,f|0);h=J[699344];J[699344]=0;if((h|0)==1)break J;J[699344]=0;h=aa(5309,j|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break I;J[h+24>>2]=0;wc(e);J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(!e){J[699344]=0;$(5147,f|0);f=J[699344]; +J[699344]=0;if((f|0)==1)break a}f=J[d+196>>2];if(f){e=J[f>>2];J[d+196>>2]=e;if(e)continue}break}e=J[d+212>>2];J[d+196>>2]=e;J[d+200>>2]=d+204;h=0;if(e)break G}Md(j);j=1;break e}a=Z()|0;break d}a=Z()|0;break H}a=Z()|0;wc(d+16|0)}zc(d+104|0);Md(j);break d}L:{while(1){J[d+112>>2]=e;f=J[d+200>>2];J[d+116>>2]=f;g=f;f=d+204|0;if((g|0)!=(f|0)){J[699344]=0;da(5243,d+112|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Md(j);break d}f=J[e+8>>2];if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[699344]; +J[699344]=0;if((f|0)==1)break x;f=J[e+8>>2]}else f=0;J[699344]=0;e=d+16|0;da(5324,e|0,f|0);g=J[699344];J[699344]=0;if((g|0)==1)break y;J[699344]=0;g=rf(e);e=J[699344];J[699344]=0;if((e|0)==1)break z;J[699344]=0;e=J[J[c+12>>2]+((g>>>0)%M[c+8>>2]<<2)>>2];i=J[699344];J[699344]=0;if((i|0)==1)break z;M:{N:{O:{P:{Q:{R:{S:{if(!e)break S;while(1){T:{if((g|0)==J[e+12>>2]){J[699344]=0;i=ga(5287,e+16|0,d+16|0,-1)|0;k=J[699344];J[699344]=0;if((k|0)==1)break L;if(!i)break T}e=J[e+8>>2];if(e)continue;break S}break}h= +0;J[d+104>>2]=0;J[d+108>>2]=J[685894];U:while(1){V:{W:{X:{e=J[d+16>>2];if(!e)break X;J[699344]=0;e=ga(5312,e|0,46,0)|0;g=J[699344];J[699344]=0;Y:{Z:{_:{$:{aa:{ba:{if((g|0)!=1){if((e|0)<=0)break X;J[699344]=0;g=d+72|0;i=d+16|0;ia(5313,g|0,i|0,0,e|0);k=J[699344];J[699344]=0;if((k|0)==1)break ba;J[699344]=0;k=d+80|0;ca(5291,k|0,g|0,2390430);g=J[699344];J[699344]=0;if((g|0)==1)break aa;J[699344]=0;h=h+1|0;g=aa(5290,d- -64|0,h|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break $;J[699344]=0;m=d+88|0;ca(5292, +m|0,k|0,g|0);k=J[699344];J[699344]=0;if((k|0)==1)break _;J[699344]=0;k=d+56|0;ia(5313,k|0,i|0,e|0,-1);e=J[699344];J[699344]=0;if((e|0)==1)break Z;J[699344]=0;ca(5292,d+96|0,m|0,k|0);e=J[699344];J[699344]=0;if((e|0)==1)break Y;e=J[d+96>>2];ca:{if(e){i=J[J[e>>2]+28>>2];J[699344]=0;ca(i|0,d+220|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break ca;a=Z()|0;break w}J[d+220>>2]=0}J[699344]=0;aa(5153,d+104|0,d+220|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){e=J[d+220>>2];J[d+220>>2]=0;if(!e)break W;J[699344]= +0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;k=J[699344];J[699344]=0;if((k|0)!=1){if(i)break W;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break W}break a}a=Z()|0;zc(d+220|0);break w}a=Z()|0;break q}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}J[699344]=0;e=d+88|0;ca(5291,e|0,d+16|0,2390430);g=J[699344];J[699344]=0;da:{ea:{if((g|0)!=1){J[699344]=0;h=h+1|0;g=aa(5290,d+48|0,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break ea;J[699344]=0;ca(5292,d+ +96|0,e|0,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break da;e=J[d+96>>2];fa:{if(e){i=J[J[e>>2]+28>>2];J[699344]=0;ca(i|0,d+80|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break fa;a=Z()|0;break C}J[d+80>>2]=0}J[699344]=0;aa(5153,d+104|0,d+80|0)|0;e=J[699344];J[699344]=0;ga:{if((e|0)!=1){e=J[d+80>>2];J[d+80>>2]=0;if(!e)break ga;J[699344]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;k=J[699344];J[699344]=0;if((k|0)!=1){if(i)break ga;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break ga}break a}a=Z()| +0;zc(d+80|0);break C}e=J[d+104>>2];J[d+108>>2]=J[(e?e+12|0:2743576)>>2];wc(d+96|0);wc(g);wc(d+88|0);break V}a=Z()|0;break q}a=Z()|0;break A}a=Z()|0;break B}e=J[d+104>>2];J[d+108>>2]=J[(e?e+12|0:2743576)>>2];wc(d+96|0);wc(d+56|0);wc(d+88|0);wc(g);wc(d+80|0);wc(d+72|0)}J[699344]=0;g=rf(d+104|0);e=J[699344];J[699344]=0;if((e|0)==1)break Q;J[699344]=0;e=J[J[c+12>>2]+((g>>>0)%M[c+8>>2]<<2)>>2];i=J[699344];J[699344]=0;if((i|0)==1)break Q;if(e)while(1){if((g|0)==J[e+12>>2]){J[699344]=0;i=ga(5287,e+16|0, +d+104|0,-1)|0;k=J[699344];J[699344]=0;if((k|0)==1)break R;if(!i)continue U}e=J[e+8>>2];if(e)continue;break}J[699344]=0;g=rf(d+104|0);e=J[699344];J[699344]=0;if((e|0)==1)break O;J[699344]=0;e=J[J[j+12>>2]+((g>>>0)%M[j+8>>2]<<2)>>2];i=J[699344];J[699344]=0;if((i|0)==1)break O;if(e)while(1){if((g|0)==J[e+12>>2]){J[699344]=0;i=ga(5287,e+16|0,d+104|0,-1)|0;k=J[699344];J[699344]=0;if((k|0)==1)break P;if(!i)continue U}e=J[e+8>>2];if(e)continue;break}break}e=J[a+8>>2];J[699344]=0;g=e;e=d+104|0;ca(5325,g| +0,f+36|0,e|0);h=J[699344];J[699344]=0;if((h|0)==1)break N;wc(e);h=1}wc(d+16|0);J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break M;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break M}break a}a=Z()|0;break q}a=Z()|0;break q}a=Z()|0;break q}a=Z()|0;break q}a=Z()|0;break q}f=J[d+196>>2];if(f){e=J[f>>2];J[d+196>>2]=e;if(e)continue}break}Md(j);j=1;if(!(h&1))break e;e=J[a+8>>2];J[699344]=0;f=d+16|0;ca(5326,f|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)== +1)break E;J[699344]=0;aa(5242,d+204|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break D;id(f);continue}break}a=Z()|0;break p}a=Z()|0;break n}a=Z()|0;break d}a=Z()|0;id(d+16|0);break d}wc(d+96|0)}wc(g)}wc(d+88|0);break q}a=Z()|0;break p}a=Z()|0;break o}a=Z()|0;Md(j);break d}wc(d+96|0)}wc(d+56|0)}wc(d+88|0)}wc(g)}wc(d+80|0)}wc(d+72|0)}wc(d+104|0)}wc(d+16|0)}if(!f)break n;J[699344]=0;b=J[f+4>>2]-1|0;J[f+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break n;J[699344]=0;$(5147,f|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break n}break a}Md(j);break d}J[d+200>>2]=l;e=J[d+212>>2];J[d+196>>2]=e;ha:{ia:{ja:{ka:{la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{if(!e)break ya;f=a+16|0;while(1){J[d+40>>2]=e;c=J[d+200>>2];J[d+44>>2]=c;g=c;c=d+204|0;if((g|0)!=(c|0)){J[699344]=0;da(5243,d+40|0,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;break d}za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{Ga:{Ha:{Ia:{Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{Qa:{c=J[e+8>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0; +if((c|0)==1)break Qa;c=J[e+8>>2]}else c=0;J[d+88>>2]=c;J[c+8>>2]=-1;J[699344]=0;h=c+36|0;c=rf(h);e=J[699344];J[699344]=0;if((e|0)==1)break La;J[699344]=0;e=J[J[f+12>>2]+((c>>>0)%M[f+8>>2]<<2)>>2];g=J[699344];J[699344]=0;if((g|0)==1)break La;if(e)while(1){if((c|0)==J[e+12>>2]){J[699344]=0;g=ga(5287,e+16|0,h|0,-1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break xa;if(!g)break Ma}e=J[e+8>>2];if(e)continue;break}J[d+108>>2]=f;J[d+104>>2]=0;J[699344]=0;ca(5218,d+96|0,2391082,J[d+88>>2]+36|0);a=J[699344];J[699344]= +0;if((a|0)==1)break Pa;a=J[d+96>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;b=ja(5178,d+16|0,a|0,2386186,360,2401110,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Oa;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break Na}a=Z()|0;break d}a=Z()|0;break ka}a=Z()|0}wc(d+96|0);break ka}J[d+108>>2]=f;J[d+104>>2]=e;c=f;if(j){J[699344]=0;$(5248,d+16|0);e=J[699344];J[699344]=0;if((e|0)==1)break Ka;e=J[d+104>>2];if(!(J[d+108>>2]==(c|0)?e:0)){J[699344]=0;da(5243,d+104|0,c| +0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;break Ba}c=J[e+24>>2];J[699344]=0;e=d+80|0;da(5321,e|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ja;J[699344]=0;da(5278,d+96|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ia;c=J[d+80>>2];J[d+80>>2]=0;Ra:{if(!c)break Ra;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break Ra;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;da(5278,d+80|0,d+16|0);c=J[699344];J[699344]= +0;if((c|0)==1)break Ha;c=J[a+8>>2];J[699344]=0;ia(5327,J[d+96>>2],J[d+80>>2],c|0,n|0);c=J[699344];J[699344]=0;if((c|0)==1)break Ga;c=J[d+80>>2];J[d+80>>2]=0;Sa:{if(!c)break Sa;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break Sa;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[d+96>>2];J[d+96>>2]=0;Ta:{if(!c)break Ta;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break Ta;J[699344]=0;$(5147, +c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[d+16>>2];e=J[J[c>>2]+20>>2];J[699344]=0;ha(e|0,c|0,0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ea;J[699344]=0;da(5328,d+96|0,d+16|0);c=J[699344];J[699344]=0;if((c|0)==1)break Da;c=J[d+104>>2];if(!((f|0)==J[d+108>>2]?c:0)){J[699344]=0;da(5243,d+104|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break Ca}J[699344]=0;aa(5153,c+24|0,d+96|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ca;c=J[d+96>>2];J[d+96>>2]=0;Ua:{if(!c)break Ua;J[699344]= +0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break Ua;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[d+16>>2];J[d+16>>2]=0;Va:{if(!c)break Va;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break Va;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}e=J[d+104>>2];c=J[d+108>>2]}if(!e|(c|0)!=(f|0))break Aa;c=J[e+24>>2];J[699344]=0;e=At(c);c=J[699344];J[699344]=0;if((c|0)!=1)break za}a= +Z()|0;break ka}a=Z()|0;break ka}a=Z()|0;break Ba}a=Z()|0;zc(d+80|0);break Ba}a=Z()|0;break Fa}a=Z()|0;zc(d+80|0)}zc(d+96|0);break Ba}a=Z()|0;break Ba}a=Z()|0;break Ba}a=Z()|0;zc(d+96|0)}zc(d+16|0);break ka}J[699344]=0;da(5243,d+104|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;break ka}c=J[d+88>>2];J[c+12>>2]=e;if(!e){J[699344]=0;b=ja(5178,d+16|0,2391298,2386186,375,2401110,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break pa;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b; +a=Z()|0;Kc(b);break ka}J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(!e){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[d+196>>2];if(!c)break ya;e=J[c>>2];J[d+196>>2]=e;if(e)continue;break}}J[699344]=0;c=d+104|0;$(5248,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break wa;J[699344]=0;da(5278,d+96|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break va;J[699344]=0;c=J[d+96>>2];ca(5330,c|0,2391824,1);f=J[699344];J[699344]=0;if((f|0)==1)break ja; +J[699344]=0;ca(5330,c|0,2392209,0);f=J[699344];J[699344]=0;if((f|0)==1)break ja;f=J[a+8>>2];J[699344]=0;J[d+16>>2]=0;e=d+16|0;aa(5145,e|0,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break ua;J[699344]=0;ca(5331,f|0,e|0,j|0);f=J[699344];J[699344]=0;if((f|0)==1)break ta;f=J[d+16>>2];J[d+16>>2]=0;Wa:{if(!f)break Wa;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break Wa;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}J[699344]=0;$(5332,c|0); +f=J[699344];J[699344]=0;if((f|0)==1)break ja;if(!J[a+12>>2])break qa;J[699344]=0;ca(5330,c|0,2392656,0);f=J[699344];J[699344]=0;if((f|0)==1)break ja;f=J[a+12>>2];J[699344]=0;J[d+16>>2]=0;e=d+16|0;aa(5145,e|0,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break sa;J[699344]=0;da(5333,f|0,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break ra;f=J[d+16>>2];J[d+16>>2]=0;Xa:{if(!f)break Xa;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break Xa;J[699344]=0;$(5147,f|0); +f=J[699344];J[699344]=0;if((f|0)==1)break a}J[699344]=0;$(5332,c|0);f=J[699344];J[699344]=0;if((f|0)!=1)break qa;break ja}a=Z()|0;break ka}a=Z()|0;break d}a=Z()|0;break ha}a=Z()|0;break ia}a=Z()|0;zc(d+16|0);break ia}a=Z()|0;break ia}a=Z()|0;zc(d+16|0);break ia}J[699344]=0;$(5332,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break ja;f=J[J[c>>2]+16>>2];J[699344]=0;c=_(f|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break oa;J[d+200>>2]=l;e=J[d+212>>2];J[d+196>>2]=e;if(e)while(1){f=J[e+8>>2];c=(c&1)+c|0; +J[f+8>>2]=c;c=c+J[f+12>>2]|0;e=J[e>>2];if(e)continue;break}J[d+196>>2]=0;J[699344]=0;da(5278,d+88|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break na;J[699344]=0;b=J[d+88>>2];ca(5330,b|0,2391824,1);c=J[699344];J[699344]=0;if((c|0)==1)break ma;J[699344]=0;ca(5330,b|0,2392209,0);c=J[699344];J[699344]=0;if((c|0)==1)break ma;c=J[a+8>>2];J[699344]=0;J[d+16>>2]=0;f=d+16|0;aa(5145,f|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[699344]=0;ca(5331,c|0,f|0,j|0);c=J[699344];J[699344]=0;Ya:{Za:{_a:{if((c|0)!= +1){c=J[d+16>>2];J[d+16>>2]=0;$a:{if(!c)break $a;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(f)break $a;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;$(5332,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break ma;if(!J[a+12>>2])break Ya;J[699344]=0;ca(5330,b|0,2392656,0);c=J[699344];J[699344]=0;if((c|0)==1)break ma;c=J[a+12>>2];J[699344]=0;J[d+16>>2]=0;f=d+16|0;aa(5145,f|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break _a;J[699344]= +0;da(5333,c|0,f|0);c=J[699344];J[699344]=0;if((c|0)==1)break Za;c=J[d+16>>2];J[d+16>>2]=0;ab:{if(!c)break ab;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(f)break ab;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;$(5332,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break Ya;break ma}a=Z()|0;zc(d+16|0);break la}a=Z()|0;break la}a=Z()|0;zc(d+16|0);break la}J[d+200>>2]=l;c=J[d+212>>2];J[d+196>>2]=c;bb:{cb:{db:{eb:{fb:{if(!c)break fb; +while(1){J[d+8>>2]=c;f=J[d+200>>2];J[d+12>>2]=f;e=f;f=d+204|0;if((e|0)!=(f|0)){J[699344]=0;da(5243,d+8|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;break la}c=J[c+8>>2];J[699344]=0;ca(5334,d+80|0,a|0,c+36|0);c=J[699344];J[699344]=0;gb:{hb:{ib:{jb:{kb:{if((c|0)!=1){J[699344]=0;da(5321,d+72|0,J[d+80>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break kb;c=J[J[b>>2]+16>>2];J[699344]=0;c=_(c|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break eb;lb:{if(!(c&1))break lb;J[699344]=0;J[d+16>>2]=0; +aa(5145,d+16|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break jb;J[699344]=0;da(5304,J[d+16>>2],0);c=J[699344];J[699344]=0;if((c|0)==1)break ib;c=J[d+16>>2];J[d+16>>2]=0;if(!c)break lb;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(f)break lb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;c=J[d+72>>2];J[d+16>>2]=0;aa(5145,d+16|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break eb;J[699344]=0;ga(5335,J[d+16>>2],c|0,0)|0;c=J[699344]; +J[699344]=0;if((c|0)==1)break hb;c=J[d+16>>2];J[d+16>>2]=0;if(!c)break gb;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)!=1){if(f)break gb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break gb}break a}a=Z()|0;break la}a=Z()|0;break cb}a=Z()|0;break db}a=Z()|0;zc(d+16|0);break db}a=Z()|0;zc(d+16|0);break db}c=J[d+72>>2];J[d+72>>2]=0;mb:{if(!c)break mb;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(f)break mb;J[699344]= +0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[d+80>>2];J[d+80>>2]=0;nb:{if(!c)break nb;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(f)break nb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[d+196>>2];if(!c)break fb;c=J[c>>2];J[d+196>>2]=c;if(c)continue;break}}J[699344]=0;$(5332,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break ma;a=J[J[b>>2]+24>>2];J[699344]=0;$(a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break ma;a= +J[d+88>>2];J[d+88>>2]=0;if(!a)break bb;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break bb;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break bb}break a}a=Z()|0}zc(d+72|0)}zc(d+80|0);break la}a=J[d+96>>2];J[d+96>>2]=0;ob:{if(!a)break ob;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break ob;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[d+104>>2];J[d+104>>2]=0;pb:{if(!a)break pb; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break pb;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}Md(n);id(d+204|0);fc=d+224|0;return}a=Z()|0;break la}a=Z()|0;break ka}a=Z()|0;break ia}a=Z()|0;break ia}a=Z()|0}zc(d+88|0);break ia}zc(d+88|0);break d}a=Z()|0}zc(d+96|0)}zc(d+104|0)}Md(n);break c}a=Z()|0;break c}a=Z()|0}id(d+204|0);ba(a|0);B()}B()}ea(0)|0;Bc();B()}function CU(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;f=fc-784|0;fc=f;J[f+700>>2]=0;c=J[a+20>>2];J[a+16>>2]=c;a:{if(!c)break a;i=J[a+24>>2];b:{e=L[a+32>>1];if(!e)break b;if(!i){i=0;break b}while(1){if((c|0)!=J[(b<<2)+i>>2]){b=b+1|0;if((e|0)!=(b|0))continue;break b}break}break a}b=e+1|0;I[a+32>>1]=b;b=b&65535;if((b|0)>J[a+28>>2]){i=pW(a,i,b,8,82600);if(!i)break a;J[a+24>>2]=i;b=L[a+32>>1];J[a+28>>2]=b<<1}J[((b<<2)+i|0)-4>>2]=c;kc[J[a+572>>2]](a);I[a+476>>1]=L[a+476>>1]+1;c=J[a+20>>2];b=fc-80|0;fc=b;c:{if(f+700|0){J[a+16>>2]=c; +c=a+20|0;if(c)J[c>>2]=0;d:{e:{f:{if(!(K[a+13|0]&8)){if((kc[J[a+640>>2]](J[a+628>>2],J[a+16>>2],0)|0)!=J[a+16>>2]){c=J[a+628>>2];J[b+32>>2]=J[a>>2];Uc(c,92224,87221,b+32|0);break d}if((kc[J[a+632>>2]](J[a+628>>2],b+78|0,2)|0)!=2){c=J[a+628>>2];J[b+16>>2]=J[a>>2];Uc(c,92224,87369,b+16|0);break d}if(K[a+12|0]&128){e=K[b+79|0];H[b+79|0]=K[b+78|0];H[b+78|0]=e}e=bh(a,L[b+78>>1],12,87524);if(!e)break d;if((kc[J[a+632>>2]](J[a+628>>2],e,P(L[b+78>>1],12))|0)!=(P(L[b+78>>1],12)|0)){c=J[a+628>>2];J[b>>2]=J[a>> +2];Uc(c,92224,87668,b);uc(e);break d}if(!c)break e;kc[J[a+632>>2]](J[a+628>>2],c,4)|0;break f}g:{e=J[a+616>>2];if(e>>>0>=2){l=J[a+16>>2];if(l>>>0<=e-2>>>0)break g}c=J[a+628>>2];J[b+48>>2]=J[a>>2];Uc(c,92224,87369,b+48|0);break d}e=b+78|0;Ue(e,l+J[a+612>>2]|0,2);if(K[a+12|0]&128){j=K[e+1|0];H[e+1|0]=K[e|0];H[e|0]=j}e=bh(a,L[b+78>>1],12,87524);if(!e)break d;j=P(L[b+78>>1],12);l=l+2|0;if(M[a+616>>2]>>0){c=J[a+628>>2];J[b+64>>2]=J[a>>2];Uc(c,92224,87826,b- -64|0);uc(e);break d}Ue(e,l+J[a+612>>2]| +0,j);if(!c)break e;g=l+P(L[b+78>>1],12)|0;if(M[a+616>>2]>>0)break f;Ue(c,g+J[a+612>>2]|0,4)}if(!(K[a+12|0]&128))break e;Rp(c)}J[f+700>>2]=e;g=L[b+78>>1]}fc=b+80|0;break c}fa(86961,87142,1108,92224);B()}l=g;if(!g){b=J[a+628>>2];c=J[a>>2];J[f+4>>2]=J[a+20>>2];J[f>>2]=c;Uc(b,72864,69144,f);break a}J[a+12>>2]=J[a+12>>2]&-65;MH(a);KA(a);J[f+688>>2]=1;ke(a,284,f+688|0);m=a+40|0;b=J[f+700>>2];e=l;h:{while(1){if(K[a+12|0]&128){jt(b,2);Pp(b+4|0,2)}if(L[b>>1]==277){if(!aA(a,b))break h;I[b>>1]=0}b=b+12| +0;c=(e|0)>1;e=e-1|0;if(c)continue;break}k=J[f+700>>2];b=g;while(1){j=b;c=L[k>>1];i:{if(!c)break i;e=J[a+660>>2];b=e>>>0>d>>>0?d:0;if(c>>>0>2]+(b<<2)>>2]>>2]){b=0;if(!o){c=J[a+628>>2];J[f+672>>2]=J[a>>2];le(c,72864,70119,f+672|0);e=J[a+660>>2]}o=1}j:{if(b>>>0>=e>>>0)break j;c=L[k>>1];n=J[a+656>>2];k:{while(1){i=J[n+(b<<2)>>2];d=J[i>>2];if(d>>>0>=c>>>0)break k;b=b+1|0;if((e|0)!=(b|0))continue;break}d=e;h=1;break i}if((c|0)!=(d|0))break j;if(!L[i+12>>1]){d=b;I[k>>1]=0;break i}p=L[k+2>>1]; +l:{while(1){d=b;q=J[i+8>>2];if((p|0)==(q&65535)|b>>>0>=e>>>0|!q)break l;b=b+1|0;if(e>>>0>b>>>0){i=J[n+(b<<2)>>2];if(J[i>>2]==(c|0))continue}break}c=J[a+628>>2];e=J[a>>2];J[f+664>>2]=J[J[n+(d<<2)>>2]+16>>2];J[f+660>>2]=p;J[f+656>>2]=e;le(c,72864,70865,f+656|0);d=b;I[k>>1]=0;break i}e=L[i+4>>1];b=e<<16>>16;m:{n:{o:switch(e-65533|0){case 1:b=L[a+98>>1];break;case 0:case 2:break n;default:break o}e=J[k+4>>2];if(e>>>0>>0)break m;if(b>>>0>=e>>>0)break n;e=J[a+628>>2];n=J[a>>2];c=J[Sf(a,c)+16>>2];p=J[k+ +4>>2];J[f+648>>2]=b;J[f+644>>2]=p;J[f+640>>2]=c;le(e,n,82939,f+640|0);c=L[k>>1]}p:{q:{r:{s:{t:{b=c&65535;switch(b-256|0){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:case 21:case 24:case 25:case 26:case 27:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:break i; +case 17:case 23:case 68:case 69:break q;case 3:break r;case 0:case 1:case 22:case 28:case 66:case 67:case 82:break s;default:break t}}if(b-32997>>>0>=2)break i}if(!aA(a,k))break h;break p}if(J[k+4>>2]==1){c=L[k+2>>1];b=J[k+8>>2];if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(c<<2)>>2]|0;b=J[J[a+468>>2]+(c<<2)>>2]&b;J[f+692>>2]=b;J[f+592>>2]=b&65535;if(ke(a,259,f+592|0))break i;break h}if(L[k+2>>1]==4){if(!zU(a,k,f+692|0))break h;b=L[k>>1];J[f+608>>2]=L[f+692>>1];if(ke(a,b,f+608|0))break p;break h}if(!xU(a, +k,f+698|0))break h;b=L[k>>1];J[f+624>>2]=L[f+698>>1];if(ke(a,b,f+624|0))break p;break h}b=L[i+12>>1];c=m+(b>>>3&8188)|0;J[c>>2]=J[c>>2]|1<>1]=0;break i}e=J[a+628>>2];i=J[a>>2];c=J[Sf(a,c)+16>>2];n=J[k+4>>2];J[f+584>>2]=b;J[f+580>>2]=n;J[f+576>>2]=c;le(e,i,82731,f+576|0);I[k>>1]=0;break i}d=b;h=1}k=k+12|0;b=j-1|0;if((j|0)>1)continue;break}if(h){h=J[f+700>>2];e=g;b=0;while(1){j=e;c=L[h>>1];u:{if(!c)break u;e=J[a+660>>2];b=e>>>0>b>>>0&c>>>0>=M[J[J[a+656>>2]+(b<<2)>>2]>>2]?b:0;v:{w:{x:{if(b>>> +0>=e>>>0)break x;i=J[a+656>>2];y:{while(1){d=J[J[(b<<2)+i>>2]>>2];if(d>>>0>=c>>>0)break y;b=b+1|0;if((e|0)!=(b|0))continue;break}b=e;break x}if((c|0)==(d|0))break w}e=J[a+628>>2];d=J[a>>2];J[f+568>>2]=c;J[f+564>>2]=c;J[f+560>>2]=d;le(e,72864,71746,f+560|0);k=L[h>>1];i=L[h+2>>1];e=0;d=fc-16|0;fc=d;c=Dc(20);z:{if(!c)break z;Sg(c,0,20);J[c+12>>2]=16842817;J[c+8>>2]=i;J[c+4>>2]=-131075;J[c>>2]=k;i=Dc(32);J[c+16>>2]=i;if(!i){uc(c);break z}J[d>>2]=k;cg(i,78542,d);e=c}fc=d+16|0;A:{if(Bn(a,e,1)){i=J[a+656>> +2];e=J[a+660>>2];if(e)break A;e=0;b=0;break w}c=J[a+628>>2];e=L[h>>1];J[f+532>>2]=e;J[f+528>>2]=e;le(c,72864,72239,f+528|0);break v}c=L[h>>1];b=0;while(1){if(c>>>0<=M[J[(b<<2)+i>>2]>>2])break w;b=b+1|0;if((e|0)!=(b|0))continue;break}b=e}d=J[(b<<2)+i>>2];k=L[h+2>>1];while(1){c=b;d=J[d+8>>2];if((k|0)==(d&65535)|!d|b>>>0>=e>>>0)break u;b=b+1|0;if(e>>>0>b>>>0){d=J[(b<<2)+i>>2];if(J[d>>2]==L[h>>1])continue}break}e=J[a+628>>2];d=J[a>>2];J[f+552>>2]=J[J[(c<<2)+i>>2]+16>>2];J[f+548>>2]=k;J[f+544>>2]=d;le(e, +72864,70865,f+544|0)}I[h>>1]=0}h=h+12|0;e=j-1|0;if((j|0)>1)continue;break}}B:{if(L[a+88>>1]!=6|L[a+138>>1]!=2)break B;e=0;i=J[f+700>>2];b=i;while(1){if(L[b>>1]!=273){b=b+12|0;e=e+1|0;if(l>>>0>(e&65535)>>>0)continue;break B}break}if(J[b+4>>2]!=1)break B;b=0;while(1){if(L[i>>1]!=279){i=i+12|0;b=b+1|0;if(l>>>0>(b&65535)>>>0)continue;break B}break}if(J[i+4>>2]!=1)break B;I[a+138>>1]=1;le(J[a+628>>2],72864,72882,0)}b=J[m>>2];if(!(b&2)){b=J[a+628>>2];a=J[a>>2];J[f+20>>2]=73519;J[f+16>>2]=a;Uc(b,92208,82478, +f+16|0);break h}C:{if(!(b&4)){b=sV(a);J[a+68>>2]=J[a+56>>2];J[a+72>>2]=J[a+100>>2];J[a+76>>2]=J[a- -64>>2];c=J[a+12>>2]&-1025;break C}b=kV(a);c=J[a+12>>2]|1024}J[a+12>>2]=c;J[a+180>>2]=b;if(!b){b=J[a+628>>2];a=J[a>>2];J[f+36>>2]=c&1024?74517:74884;J[f+32>>2]=a;Uc(b,72864,74158,f+32|0);break h}J[a+176>>2]=b;if(L[a+138>>1]==2)J[a+176>>2]=(b>>>0)/L[a+98>>1];D:{E:{F:{e=J[m>>2];if(!(e&33554432)){c=c&1024;if(c|((b|0)!=1|L[a+88>>1]!=6))break F;J[m>>2]=e|33554432}p=a+184|0;n=a+188|0;e=J[f+700>>2];while(1){k= g;G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{g=L[e>>1];R:{if(g>>>0<=529)switch(g-255|0){case 1:case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 19:case 20:case 21:case 22:case 23:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 67:case 68:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 82:case 83:break I; -case 0:break K;case 42:case 66:case 81:break M;case 46:case 65:break N;case 24:case 70:break O;case 18:case 69:break P;case 85:case 86:break Q;case 3:case 25:case 26:case 84:break R;default:break J}S:switch(g-530|0){case 1:break I;case 2:break L;case 0:break M;default:break S}if((g|0)!=32996)break I}if(J[e+4>>2]==1){c=L[e+2>>1];b=J[e+8>>2];if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(c<<2)>>2]|0;b=J[J[a+468>>2]+(c<<2)>>2]&b;J[f+692>>2]=b;J[f+256>>2]=b&65535;if($d(a,g,f+256|0))break G;break h}if(!((g| -0)!=258|L[e+2>>1]!=4)){if(!NR(a,e,f+692|0))break h;b=L[e>>1];J[f+272>>2]=L[f+692>>1];if($d(a,b,f+272|0))break G;break h}if(!MR(a,e,f+698|0))break h;b=L[e>>1];J[f+288>>2]=L[f+698>>1];if($d(a,b,f+288|0))break G;break h}c=J[e+4>>2];i=L[a+98>>1];if(c>>>0>>0)break E;if(c>>>0>i>>>0){b=J[a+628>>2];c=J[a>>2];d=J[Lf(a,g)+16>>2];g=J[e+4>>2];J[f+376>>2]=i;J[f+372>>2]=g;J[f+368>>2]=d;ae(b,c,82923,f+368|0);c=J[e+4>>2]}b=f+704|0;if(c>>>0>=11){b=Sg(a,c,8,88439);if(!b)break h}T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{c= -L[e+2>>1];switch(c-1|0){case 11:break W;case 10:break Y;case 4:case 9:break Z;case 3:case 8:break _;case 2:case 7:break $;case 0:case 5:break aa;default:break X}}if(!zF(a,e,b))break U;j=J[e+4>>2];g=j-1|0;if(L[e+2>>1]==1){if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=K[b+c|0];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=K[b+c|0];d=c-1|0;O[(d<<3)+b>>3]=K[b+d|0];d=c-2|0;O[(d<<3)+b>>3]=K[b+d|0];d=c-3|0;O[(d<<3)+b>>3]=K[b+d|0];c=c-4|0;if(d)continue; +case 0:break K;case 42:case 66:case 81:break M;case 46:case 65:break N;case 24:case 70:break O;case 18:case 69:break P;case 85:case 86:break Q;case 3:case 25:case 26:case 84:break R;default:break J}S:switch(g-530|0){case 1:break I;case 2:break L;case 0:break M;default:break S}if((g|0)!=32996)break I}if(J[e+4>>2]==1){c=L[e+2>>1];b=J[e+8>>2];if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(c<<2)>>2]|0;b=J[J[a+468>>2]+(c<<2)>>2]&b;J[f+692>>2]=b;J[f+256>>2]=b&65535;if(ke(a,g,f+256|0))break G;break h}if(!((g| +0)!=258|L[e+2>>1]!=4)){if(!zU(a,e,f+692|0))break h;b=L[e>>1];J[f+272>>2]=L[f+692>>1];if(ke(a,b,f+272|0))break G;break h}if(!xU(a,e,f+698|0))break h;b=L[e>>1];J[f+288>>2]=L[f+698>>1];if(ke(a,b,f+288|0))break G;break h}c=J[e+4>>2];i=L[a+98>>1];if(c>>>0>>0)break E;if(c>>>0>i>>>0){b=J[a+628>>2];c=J[a>>2];d=J[Sf(a,g)+16>>2];g=J[e+4>>2];J[f+376>>2]=i;J[f+372>>2]=g;J[f+368>>2]=d;le(b,c,82939,f+368|0);c=J[e+4>>2]}b=f+704|0;if(c>>>0>=11){b=bh(a,c,8,88455);if(!b)break h}T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{c= +L[e+2>>1];switch(c-1|0){case 11:break W;case 10:break Y;case 4:case 9:break Z;case 3:case 8:break _;case 2:case 7:break $;case 0:case 5:break aa;default:break X}}if(!_G(a,e,b))break U;j=J[e+4>>2];g=j-1|0;if(L[e+2>>1]==1){if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=K[b+c|0];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=K[b+c|0];d=c-1|0;O[(d<<3)+b>>3]=K[b+d|0];d=c-2|0;O[(d<<3)+b>>3]=K[b+d|0];d=c-3|0;O[(d<<3)+b>>3]=K[b+d|0];c=c-4|0;if(d)continue; break}break V}if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=H[b+c|0];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=H[b+c|0];d=c-1|0;O[(d<<3)+b>>3]=H[b+d|0];d=c-2|0;O[(d<<3)+b>>3]=H[b+d|0];d=c-3|0;O[(d<<3)+b>>3]=H[b+d|0];c=c-4|0;if(d)continue;break}break V}ba:{ca:{da:{c=J[e+4>>2];if(c>>>0<=2){if(L[a+456>>1]==19789){j=0;ea:switch(c-1|0){case 0:d=J[e+8>>2]>>>16|0;break ca;case 1:break ea;default:break ba}d=J[e+8>>2];I[b+2>>1]=d;d=d>>>16|0;break ca}j= -0;fa:switch(c-1|0){case 0:break da;case 1:break fa;default:break ba}d=J[e+8>>2];I[b+2>>1]=d>>>16;break ca}if(!Oh(a,e,b))break U;j=J[e+4>>2];break ba}d=J[e+8>>2]}I[b>>1]=d;j=c}g=j-1|0;if(L[e+2>>1]==3){if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=L[(c<<1)+b>>1];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=L[(c<<1)+b>>1];d=c-1|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];d=c-2|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];d=c-3|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];c=c-4| -0;if(d)continue;break}break V}if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=I[(c<<1)+b>>1];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=I[(c<<1)+b>>1];d=c-1|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];d=c-2|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];d=c-3|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];c=c-4|0;if(d)continue;break}break V}ga:{if(J[e+4>>2]==1){J[b>>2]=J[e+8>>2];break ga}if(!Oh(a,e,b))break U;c=L[e+2>>1]}j=J[e+4>>2];g=j-1|0;if((c&65535)==4){if((g|0)<0)break V;d= +0;fa:switch(c-1|0){case 0:break da;case 1:break fa;default:break ba}d=J[e+8>>2];I[b+2>>1]=d>>>16;break ca}if(!ci(a,e,b))break U;j=J[e+4>>2];break ba}d=J[e+8>>2]}I[b>>1]=d;j=c}g=j-1|0;if(L[e+2>>1]==3){if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=L[(c<<1)+b>>1];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=L[(c<<1)+b>>1];d=c-1|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];d=c-2|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];d=c-3|0;O[(d<<3)+b>>3]=L[(d<<1)+b>>1];c=c-4| +0;if(d)continue;break}break V}if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=I[(c<<1)+b>>1];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=I[(c<<1)+b>>1];d=c-1|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];d=c-2|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];d=c-3|0;O[(d<<3)+b>>3]=I[(d<<1)+b>>1];c=c-4|0;if(d)continue;break}break V}ga:{if(J[e+4>>2]==1){J[b>>2]=J[e+8>>2];break ga}if(!ci(a,e,b))break U;c=L[e+2>>1]}j=J[e+4>>2];g=j-1|0;if((c&65535)==4){if((g|0)<0)break V;d= 0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=M[(c<<2)+b>>2];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=M[(c<<2)+b>>2];d=c-1|0;O[(d<<3)+b>>3]=M[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=M[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=M[(d<<2)+b>>2];c=c-4|0;if(d)continue;break}break V}if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=J[(c<<2)+b>>2];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=J[(c<<2)+b>>2];d=c-1|0; -O[(d<<3)+b>>3]=J[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=J[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=J[(d<<2)+b>>2];c=c-4|0;if(d)continue;break}break V}if(!CR(a,e,b))break U;j=J[e+4>>2];g=j-1|0;if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];d=c-1|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];c=c-4|0;if(d)continue; -break}break V}ha:{if(J[e+4>>2]==1){N[b>>2]=N[e+8>>2];h=0;j=1;break ha}if(!Oh(a,e,b))break U;j=J[e+4>>2];h=j-1|0;if((h|0)<0)break V}d=0;c=h;g=c+1&3;if(g)while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];c=c-1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(h>>>0<3)break V;while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];d=c-1|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];c=c-4|0;if(d)continue;break}break V}d=J[a+628>>2];g=J[a>>2];s=f,t=J[Lf(a,L[e>>1])+16>>2],J[s+ -340>>2]=t;J[f+336>>2]=c;Nc(d,g,88685,f+336|0);break U}if(!Oh(a,e,b))break U;j=J[e+4>>2]}r=O[b>>3];d=0;c=(i|0)>(j|0)?j:i;if((c|0)<2)break T;c=c&65535;g=c>>>0<=2?2:c;c=1;while(1){if(O[(c<<3)+b>>3]==r){c=c+1|0;if((g|0)!=(c|0))continue;break T}break}c=J[a+628>>2];d=J[a>>2];s=f,t=J[Lf(a,L[e>>1])+16>>2],J[s+352>>2]=t;Nc(c,d,88529,f+352|0)}d=1;r=0}if((f+704|0)!=(b|0))qc(b);if(d)break h;b=L[e>>1];O[f+320>>3]=r;if($d(a,b,f+320|0))break G;break h}if(xR(a,e,J[a+180>>2],p))break G;break h}if(xR(a,e,J[a+180>> -2],n))break G;break h}h=L[a+84>>1];c=1<>2]=c;b=J[e+4>>2];ia:{if((b|0)==(c|0)&(g|0)!=320)break ia;d=3<>>0>b>>>0)break H;c=b;if(d>>>0>=b>>>0)break ia;b=J[a+628>>2];c=J[a>>2];g=J[Lf(a,g)+16>>2];j=J[e+4>>2];J[f+424>>2]=d;J[f+420>>2]=j;J[f+416>>2]=g;ae(b,c,82923,f+416|0);c=J[e+4>>2]}h=2<>2]=h;b=Sg(a,c,2,76591);if(!b)break G;if(Oh(a,e,b)){if(J[e+4>>2]==1<>1]){J[f+692>>2]=0;h=0}c=L[e>>1];J[f+384>>2]=b;J[f+392>>2]=b+(h<<1);J[f+388>>2]=b+h;$d(a,c,f+384|0)}qc(b);break G}b= -J[e+4>>2];if(b>>>0>=3){b=J[a+628>>2];c=J[a>>2];d=J[Lf(a,g)+16>>2];J[f+436>>2]=J[e+4>>2];J[f+432>>2]=d;ae(b,c,88091,f+432|0);break G}ja:switch(L[e+2>>1]-1|0){case 0:case 5:if(!zF(a,e,f+704|0))break G;b=L[e>>1];J[f+448>>2]=K[f+704|0];J[f+452>>2]=K[f+705|0];$d(a,b,f+448|0);break G;case 2:case 7:break ja;default:break G}ka:{if(L[a+456>>1]==19789){h=0;d=0;la:switch(b-1|0){case 0:d=J[e+8>>2]>>>16|0;break ka;case 1:break la;default:break ka}h=J[e+8>>2];d=h>>>16|0;break ka}h=0;d=0;ma:{na:switch(b-1|0){case 0:c= -L[e+8>>1];h=0;break ma;case 1:break na;default:break ka}c=J[e+8>>2];h=c>>>16|0}d=c&65535}J[f+464>>2]=d;J[f+468>>2]=h&65535;$d(a,g,f+464|0);break G}if(L[e+2>>1]==5){Xy(a,e);break G}c=Sg(a,J[e+4>>2],4,92272);if(!c)break G;oa:{pa:{if(J[e+4>>2]==1){J[c>>2]=J[e+8>>2];break pa}if(!Oh(a,e,c))break oa}d=Sg(a,J[e+4>>2],4,92272);if(!d)break oa;h=J[e+4>>2];qa:{if(!h)break qa;j=0;b=0;if(h>>>0>=4){i=h&-4;o=0;while(1){g=b<<2;N[g+d>>2]=M[c+g>>2];q=g|4;N[q+d>>2]=M[c+q>>2];q=g|8;N[q+d>>2]=M[c+q>>2];g=g|12;N[g+d>> -2]=M[c+g>>2];b=b+4|0;o=o+4|0;if((i|0)!=(o|0))continue;break}}g=h&3;if(!g)break qa;while(1){h=b<<2;N[h+d>>2]=M[c+h>>2];b=b+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}}b=L[e>>1];J[f+480>>2]=d;$d(a,b,f+480|0);qc(d)}qc(c);break G}J[f+692>>2]=0;d=L[e+2>>1];b=J[e+8>>2];c=1;if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(d<<2)>>2]|0;ra:switch((J[J[a+468>>2]+(d<<2)>>2]&b)-2|0){case 1:c=2;break;case 0:break ra;default:break G}J[f+496>>2]=c;J[f+692>>2]=c;$d(a,254,f+496|0);break G}if(!g)break G}Xy(a,e);break G}b= -J[a+628>>2];c=J[a>>2];g=J[Lf(a,g)+16>>2];h=J[e+4>>2];J[f+408>>2]=d;J[f+404>>2]=h;J[f+400>>2]=g;ae(b,c,82715,f+400|0)}e=e+12|0;g=k-1|0;if((k|0)>1)continue;break}sa:{if(L[a+88>>1]!=6)break sa;ta:{if(!(H[m+1|0]&1)){ae(J[a+628>>2],72848,77147,0);J[f+240>>2]=6;if($d(a,262,f+240|0))break ta;break h}if(L[a+90>>1]!=2)break ta;I[a+90>>1]=6;ae(J[a+628>>2],72848,77960,0)}b=J[m>>2];if(!(b&64)){ae(J[a+628>>2],72848,78441,0);J[f+224>>2]=8;if(!$d(a,258,f+224|0))break h;b=J[m>>2]}if(b&65536)break sa;ua:switch(L[a+ -90>>1]){case 2:case 6:ae(J[a+628>>2],72848,78933,0);J[f+192>>2]=3;if($d(a,277,f+192|0))break sa;break h;case 0:case 1:break ua;default:break sa}ae(J[a+628>>2],72848,79351,0);J[f+208>>2]=1;if(!$d(a,277,f+208|0))break h}if(!(K[m+3|0]&4|L[a+90>>1]!=3)){b=J[a+628>>2];a=J[a>>2];J[f+52>>2]=79543;J[f+48>>2]=a;Nc(b,92192,82462,f+48|0);break h}b=L[a+88>>1];va:{if((b|0)==6)break va;if(!(H[m+3|0]&1)){wa:{xa:switch(L[a+138>>1]-1|0){case 1:if(J[a+180>>2]==L[a+98>>1])break wa;break D;case 0:break xa;default:break wa}if(M[a+ -180>>2]>1)break D}b=J[a+628>>2];c=J[a>>2];s=f,t=J[Lf(a,279)+16>>2],J[s+132>>2]=t;J[f+128>>2]=c;ae(b,72848,80115,f+128|0);if((sF(a,J[f+700>>2],l)|0)>=0)break va;break h}ya:{if(!J[J[p>>2]>>2]|J[a+180>>2]!=1)break ya;c=J[J[n>>2]>>2];za:{if(!c)break za;if((b|0)==1)if(c>>>0>(gc[J[a+648>>2]](J[a+628>>2])|0)-J[J[a+184>>2]>>2]>>>0)break za;if(J[a+8>>2]|L[a+88>>1]!=1)break ya;if(M[J[a+188>>2]>>2]>=P(_i(a),J[a+60>>2])>>>0)break ya}b=J[a+628>>2];c=J[a>>2];s=f,t=J[Lf(a,279)+16>>2],J[s+180>>2]=t;J[f+176>>2]=c; -ae(b,72848,80603,f+176|0);if((sF(a,J[f+700>>2],l)|0)>=0)break va;break h}if(L[a+138>>1]!=1|M[a+180>>2]<3|L[a+88>>1]!=1)break va;b=J[n>>2];c=J[b+4>>2];if(!c)break va;b=J[b>>2];if(!b|(b|0)==(c|0))break va;b=J[a+628>>2];c=J[a>>2];s=f,t=J[Lf(a,279)+16>>2],J[s+164>>2]=t;J[f+160>>2]=c;ae(b,72848,80866,f+160|0);if((sF(a,J[f+700>>2],l)|0)<0)break h}b=J[f+700>>2];if(b){qc(b);J[f+700>>2]=0}e=J[m>>2];if(!(e&524288))I[a+106>>1]=-1<>1]^-1;c=J[a+180>>2];Aa:{if(c>>>0<2)break Aa;J[a+192>>2]=1;d=J[a+184>> -2];b=1;while(1){g=d+(b<<2)|0;if(M[g-4>>2]<=M[g>>2]){b=b+1|0;if((c|0)!=(b|0))continue;break Aa}break}J[a+192>>2]=0}if(!(e&128)){J[f+112>>2]=1;$d(a,259,f+112|0);c=J[a+180>>2]}if(!((c|0)!=1|L[a+88>>1]!=1|(J[a+12>>2]&33792)!=32768)){h=0;m=0;i=bc-16|0;bc=i;j=J[J[a+184>>2]>>2];c=J[J[a+188>>2]>>2];k=1;b=$S(a,1);Ba:{if((b|0)<=8192){if((b|0)<=0)break Ba;k=8192/((b&65535)>>>0)|0;b=P(k,b)}if(M[a+100>>2]<=k>>>0|0-b>>>0<=c>>>0)break Ba;d=c-1|0;e=d+b|0;if(e>>>0>>0)break Ba;g=(e>>>0)/(b>>>0)|0;e=Sg(a,g,4,89024); -d=Sg(a,g,4,89158);if(!(!e|!d)){l=g>>>0<=1?1:g;n=l&1;if(g>>>0>=2){p=l&-2;while(1){o=h<<2;l=b>>>0>>0?b:c;J[o+e>>2]=l;J[d+o>>2]=j;o=o|4;c=c-l|0;b=c>>>0>l>>>0?l:c;J[o+e>>2]=b;l=j+l|0;J[d+o>>2]=l;c=c-b|0;j=b+l|0;h=h+2|0;m=m+2|0;if((p|0)!=(m|0))continue;break}}if(n){h=h<<2;J[h+e>>2]=b>>>0>>0?b:c;J[d+h>>2]=j}J[a+176>>2]=g;J[a+180>>2]=g;J[i>>2]=k;$d(a,278,i);qc(J[a+188>>2]);qc(J[a+184>>2]);J[a+192>>2]=1;J[a+184>>2]=d;J[a+188>>2]=e;break Ba}if(e)qc(e);if(!d)break Ba;qc(d)}bc=i+16|0}J[a+508>>2]=-1;J[a+ -500>>2]=-1;J[a+504>>2]=-1;J[a+480>>2]=-1;J[a+472>>2]=-1;b=_i(a);J[a+588>>2]=b;if(!b){b=J[a+628>>2];J[f+64>>2]=J[a>>2];Nc(b,72848,81169,f- -64|0);h=0;break a}if(K[a+13|0]&4){b=Ol(a);J[a+508>>2]=b;h=1;if(b)break a;b=J[a+628>>2];J[f+96>>2]=J[a>>2];Nc(b,72848,81540,f+96|0);h=0;break a}h=1;if(ys(a))break a;b=J[a+628>>2];J[f+80>>2]=J[a>>2];Nc(b,72848,81786,f+80|0);h=0;break a}b=J[a+628>>2];a=J[a>>2];J[f+516>>2]=c?75391:75842;J[f+512>>2]=a;Nc(b,92192,82462,f+512|0);break h}b=J[a+628>>2];c=J[a>>2];a=J[Lf(a, -g)+16>>2];e=J[e+4>>2];J[f+312>>2]=i;J[f+308>>2]=e;J[f+304>>2]=a;ae(b,c,82715,f+304|0);break h}b=J[a+628>>2];a=J[a>>2];J[f+148>>2]=79858;J[f+144>>2]=a;Nc(b,92192,82462,f+144|0)}h=0;a=J[f+700>>2];if(!a)break a;qc(a)}bc=f+784|0;return h}function it(a,b,c,d,e,f,g,h,i,j,k){var 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,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0;C=bc-160|0;bc=C;z=rc(24);J[z+12>>2]=d;J[z+8>>2]=c;J[z>>2]=2305576;J[z+4>>2]=0;l=c+7>>3;J[z+16>>2]=l;a:{if(!((c|0)<=0| -(d|0)<=0|(l|0)<=0)){n=d;if(n>>>0<2147483646/(l>>>0)>>>0)break a}J[z+12>>2]=-1;J[z+16>>2]=2;n=-1;l=2}J[695492]=0;s=P(l,n);n=$(3441,s+1|0)|0;l=J[695492];J[695492]=0;b:{c:{if((l|0)!=1){J[z+20>>2]=n;H[n+s|0]=0;wc(n,0,s);if(!b)break c;b=J[a+148>>2];J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((c|0)>=2147483645){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,801945,0);c=-4}e=vd(c+1|0,4);i=vd(c+3|0,4);J[e>>2]=c;if((d|0)>0){s=e-4|0;t=i+4|0;while(1){l=0;n=J[e>>2];if((n|0)<(c|0))while(1){J[i+(l<<2)>>2]=n;l=l+1|0;n=J[e+(l<<2)>> -2];if((n|0)<(c|0))continue;break}b=i+(l<<2)|0;J[b>>2]=c;J[b+8>>2]=c;J[b+4>>2]=c;v=0;J[e>>2]=0;l=0;q=e;p=0;n=0;j=0;if((c|0)>0){while(1){d:{e:{f:{b=J[a+148>>2];h=J[b+8>>2];g:{if(!h){h=8;f=J[b>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;J[b+8>>2]=8;f=f&255;J[b+4>>2]=f;J[b+12>>2]=J[b+12>>2]+1;J[b+16>>2]=J[b+16>>2]+1;m=f>>>1|0;break g}f=J[b+4>>2];m=f>>>h-7&127;if(h>>>0>=7)break g;m=f<<7-h&127;o=I[(m<<2)+2297120>>1];if((o|0)>=0&(h|0)>=(o|0))break f;g=J[b>>2];f=gc[J[J[g>>2]+28>>2]](g)&255|f<<8;J[b+4>>2]=f;g=J[b+8>> -2];h=g+8|0;J[b+8>>2]=h;J[b+12>>2]=J[b+12>>2]+1;J[b+16>>2]=J[b+16>>2]+1;m=f>>>g+1&127}o=I[(m<<2)+2297120>>1];if((o|0)>=0)break f;b=J[b>>2];xc(1,gc[J[J[b>>2]+52>>2]](b)|0,774823,0);break e}J[b+8>>2]=h-(o&65535);h:{i:{j:switch(I[(m<<2)+2297122>>1]+1|0){case 1:f=n+2|0;g=t+(n<<2)|0;b=J[g>>2];if((b|0)>J[q>>2]){j=((j&1)!=(p|0))+j|0;h=e+(j<<2)|0;if((b|0)>(c|0)){l=gc[J[J[a>>2]+52>>2]](a)|0;J[C>>2]=b;xc(1,l,806291,C);b=c}J[h>>2]=b;b=J[g>>2]}n=(b|0)<(c|0)?f:n;break d;case 2:g=0;if(p){while(1){f=J[a+148>>2]; -h=J[f+8>>2];if(!h){b=J[f>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[f+8>>2]=8;J[f+4>>2]=b&255;J[f+12>>2]=J[f+12>>2]+1;J[f+16>>2]=J[f+16>>2]+1;h=8}k:{l:{while(1){m:{n:{o:{p:{q:{if(h>>>0>=10){m=J[f+4>>2];o=h-6|0;if(m>>>o&63)break q;b=(((h>>>0<14?m<<13-h:m>>>h-13|0)&127)<<2)+2302496|0;break m}m=J[f+4>>2];if(h>>>0<7)break p;o=h-6|0}if(!(m>>>o&3)|m>>>h-4&15)break o;b=(((h>>>0<13?m<<12-h:m>>>h-12|0)&255)<<2)+2303264|0;break m}b=m<<6-h;break n}b=m>>>o|0}b=((b&63)<<2)+2305056|0}l=I[b>>1];if((l|0)>0&(h|0)>=(l|0))break l; -if(h>>>0<=12){b=J[f>>2];R=f,S=gc[J[J[b>>2]+28>>2]](b)&255|m<<8,J[R+4>>2]=S;h=J[f+8>>2]+8|0;J[f+8>>2]=h;J[f+12>>2]=J[f+12>>2]+1;J[f+16>>2]=J[f+16>>2]+1;continue}break}b=J[f>>2];xc(1,gc[J[J[b>>2]+52>>2]](b)|0,776977,0);J[f+8>>2]=J[f+8>>2]-1;g=g+1|0;break k}J[f+8>>2]=h-l;b=I[b+2>>1];g=b+g|0;if((b|0)>63)continue}break}u=0;while(1){l=J[a+148>>2];h=J[l+8>>2];if(!h){b=J[l>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[l+8>>2]=8;J[l+4>>2]=b&255;J[l+12>>2]=J[l+12>>2]+1;J[l+16>>2]=J[l+16>>2]+1;h=8}while(1){r:{s:{t:{if(h>>> -0>=11){m=J[l+4>>2];if(m>>>h-7&127)break t;b=(((h>>>0<13?m<<12-h:m>>>h-12|0)&31)<<2)+2298144|0;break r}m=J[l+4>>2];if((h|0)==10)break t;b=m<<9-h;break s}b=m>>>h-9|0}b=((b&511)<<2)+2298400|0}f=I[b>>1];if(!((f|0)>0&(f|0)<=(h|0))){if(h>>>0>11){h=775892;break i}b=J[l>>2];R=l,S=gc[J[J[b>>2]+28>>2]](b)&255|m<<8,J[R+4>>2]=S;h=J[l+8>>2]+8|0;J[l+8>>2]=h;J[l+12>>2]=J[l+12>>2]+1;J[l+16>>2]=J[l+16>>2]+1;continue}break}J[l+8>>2]=h-f;b=I[b+2>>1];u=b+u|0;if((b|0)>63)continue;break}break h}while(1){f=J[a+148>>2]; -h=J[f+8>>2];if(!h){b=J[f>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[f+8>>2]=8;J[f+4>>2]=b&255;J[f+12>>2]=J[f+12>>2]+1;J[f+16>>2]=J[f+16>>2]+1;h=8}u:{v:{while(1){w:{x:{y:{if(h>>>0>=11){m=J[f+4>>2];if(m>>>h-7&127)break y;b=(((h>>>0<13?m<<12-h:m>>>h-12|0)&31)<<2)+2298144|0;break w}m=J[f+4>>2];if((h|0)==10)break y;b=m<<9-h;break x}b=m>>>h-9|0}b=((b&511)<<2)+2298400|0}l=I[b>>1];if((l|0)>0&(h|0)>=(l|0))break v;if(h>>>0<=11){b=J[f>>2];R=f,S=gc[J[J[b>>2]+28>>2]](b)&255|m<<8,J[R+4>>2]=S;h=J[f+8>>2]+8|0;J[f+8>>2]=h; -J[f+12>>2]=J[f+12>>2]+1;J[f+16>>2]=J[f+16>>2]+1;continue}break}b=J[f>>2];xc(1,gc[J[J[b>>2]+52>>2]](b)|0,775892,0);J[f+8>>2]=J[f+8>>2]-1;g=g+1|0;break u}J[f+8>>2]=h-l;b=I[b+2>>1];g=b+g|0;if((b|0)>63)continue}break}u=0;while(1){l=J[a+148>>2];h=J[l+8>>2];if(!h){b=J[l>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[l+8>>2]=8;J[l+4>>2]=b&255;J[l+12>>2]=J[l+12>>2]+1;J[l+16>>2]=J[l+16>>2]+1;h=8}while(1){z:{A:{B:{C:{D:{if(h>>>0>=10){m=J[l+4>>2];o=h-6|0;if(m>>>o&63)break D;b=(((h>>>0<14?m<<13-h:m>>>h-13|0)&127)<<2)+2302496| -0;break z}m=J[l+4>>2];if(h>>>0<7)break C;o=h-6|0}if(!(m>>>o&3)|m>>>h-4&15)break B;b=(((h>>>0<13?m<<12-h:m>>>h-12|0)&255)<<2)+2303264|0;break z}b=m<<6-h;break A}b=m>>>o|0}b=((b&63)<<2)+2305056|0}f=I[b>>1];if(!((f|0)>0&(f|0)<=(h|0))){if(h>>>0>12){h=776977;break i}b=J[l>>2];R=l,S=gc[J[J[b>>2]+28>>2]](b)&255|m<<8,J[R+4>>2]=S;h=J[l+8>>2]+8|0;J[l+8>>2]=h;J[l+12>>2]=J[l+12>>2]+1;J[l+16>>2]=J[l+16>>2]+1;continue}break}J[l+8>>2]=h-f;b=I[b+2>>1];u=b+u|0;if((b|0)>63)continue;break}break h;case 8:h=J[i+(n<<2)>> -2]+3|0;E:{if((h|0)<=J[q>>2]){h=J[e+(j<<2)>>2];break E}if((c|0)<(h|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+48>>2]=h;xc(1,b,806291,C+48|0);h=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=n+1|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 6:h=J[i+(n<<2)>>2]+2|0;F:{if((h|0)<=J[q>>2]){h=J[e+(j<<2)>>2];break F}if((c|0)<(h|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+64>>2]=h;xc(1,b,806291,C- -64|0);h=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d; -l=n+1|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 4:b=J[i+(n<<2)>>2];G:{if((b|0)>2]){h=J[e+(j<<2)>>2];break G}h=b+1|0;if((b|0)>=(c|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+80>>2]=h;xc(1,b,806291,C+80|0);h=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=n+1|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 3:h=J[i+(n<<2)>>2];H:{if((h|0)<=J[q>>2]){h=J[e+(j<<2)>>2];break H}if((c|0)<(h|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+ -96>>2]=h;xc(1,b,806291,C+96|0);h=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=n+1|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 9:b=J[i+(n<<2)>>2];h=b-3|0;f=J[q>>2];I:{J:{if((h|0)>(f|0)){if((c|0)<(h|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+112>>2]=h;xc(1,b,806291,C+112|0);h=c}j=((j&1)!=(p|0))+j|0;break J}if((f|0)<=(h|0)){h=J[e+(j<<2)>>2];break I}if((b|0)<=2){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,806659,0);h=0}if((j|0)<=0)break J;while(1){if(J[s+(j<<2)>> -2]<(h|0))break J;b=(j|0)>1;j=j-1|0;if(b)continue;break}j=0}J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=((n|0)<=0?1:-1)+n|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 7:b=J[i+(n<<2)>>2];h=b-2|0;f=J[q>>2];K:{L:{if((h|0)>(f|0)){if((c|0)<(h|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+128>>2]=h;xc(1,b,806291,C+128|0);h=c}j=((j&1)!=(p|0))+j|0;break L}if((f|0)<=(h|0)){h=J[e+(j<<2)>>2];break K}if((b|0)<=1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,806659,0);h=0}if((j|0)<=0)break L;while(1){if(J[s+ -(j<<2)>>2]<(h|0))break L;b=(j|0)>1;j=j-1|0;if(b)continue;break}j=0}J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=((n|0)<=0?1:-1)+n|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 5:b=J[i+(n<<2)>>2];h=b-1|0;f=J[q>>2];M:{N:{if((h|0)>(f|0)){if((c|0)<(h|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+144>>2]=h;xc(1,b,806291,C+144|0);h=c}j=((j&1)!=(p|0))+j|0;break N}if((b|0)>(f|0)){h=J[e+(j<<2)>>2];break M}if((b|0)<=0){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,806659,0);h=0}if((j|0)<=0)break N; -while(1){if(J[s+(j<<2)>>2]<(h|0))break N;b=(j|0)>1;j=j-1|0;if(b)continue;break}j=0}J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=((n|0)<=0?1:-1)+n|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 0:break e;default:break j}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,802765,0);if(J[q>>2]>=(c|0))break d;b=j&1;J[(e+(j<<2)|0)+(b<<2)>>2]=c;j=b+j|0;break d}b=J[l>>2];xc(1,gc[J[J[b>>2]+52>>2]](b)|0,h,0);J[l+8>>2]=J[l+8>>2]-1;u=u+1|0}O:{if((g|0)<=0){m=J[e+(j<<2)>>2];break O}m=J[q>>2]+g|0;if((m| -0)>(c|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+32>>2]=m;xc(1,b,806291,C+32|0);m=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=m}if(!((c|0)<=(m|0)|(u|0)<=0)){m=m+u|0;if((m|0)>(c|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[C+16>>2]=m;xc(1,b,806291,C+16|0);m=c}j=((j&1^p)!=1)+j|0;J[e+(j<<2)>>2]=m}while(1){b=n;f=J[i+(b<<2)>>2];if((f|0)>=(c|0))break d;n=b+2|0;if((f|0)<=(m|0))continue;break}n=b;break d}if(J[q>>2]>=(c|0))break d;b=j&1;J[(e+(j<<2)|0)+(b<<2)>>2]=c;j=b+j|0}q=e+(j<<2)|0;if(J[q>>2]<(c|0))continue;break}l=J[e>>2]}P:{if((c| -0)<=(l|0))break P;while(1){b=e+(v<<2|4)|0;n=J[b>>2];if((n|0)>(l|0)){f=J[z+20>>2]+P(J[z+16>>2],r)|0;while(1){g=f+(l>>3)|0;H[g|0]=K[g|0]|1<<((l^-1)&7);l=l+1|0;n=J[b>>2];if((l|0)<(n|0))continue;break}}if((c|0)<=(n|0))break P;v=v+2|0;l=J[e+(v<<2)>>2];if((l|0)<(c|0))continue;break}}r=r+1|0;if((r|0)!=(d|0))continue;break}}b=J[a+148>>2];Q:{if((k|0)>=0){a=J[b>>2];a=gc[J[J[a>>2]+48>>2]](a,k-J[b+12>>2]|0)|0;J[b+12>>2]=a+J[b+12>>2];J[b+16>>2]=a+J[b+16>>2];break Q}c=J[b+8>>2];R:{if(c>>>0>=24){n=J[b+4>>2];break R}n= -J[b+4>>2];while(1){c=J[b>>2];n=gc[J[J[c>>2]+28>>2]](c)&255|n<<8;J[b+4>>2]=n;c=J[b+8>>2]+8|0;J[b+8>>2]=c;J[b+12>>2]=J[b+12>>2]+1;J[b+16>>2]=J[b+16>>2]+1;if(c>>>0<24)continue;break}}if((n>>>c-24&16777215)==4097)break Q;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,803349,0)}Gc(i);Gc(e);break b}a=Z()|0;qc(z);ba(a|0);B()}O=!f|e>>>0>3?O:J[(e<<2)+2305960>>2];if((d|0)<=0)break b;n=0;while(1){S:{T:{U:{V:{W:{X:{Y:{Z:{if(f){if(he(J[a+76>>2],O,J[a+80>>2])?!N:N)break Z;N=0}switch(e|0){case 3:break V;case 2:break W;case 1:break X; -case 0:break Y;default:break S}}N=1;if(!n)break S;k=J[z+20>>2];b=J[z+16>>2];tc(k+P(b,n)|0,k+P(b,n-1|0)|0,b);break S}D=J[z+20>>2];E=J[z+16>>2];k=D+P(E,n)|0;l=K[k|0];_:{if(!n){s=0;w=0;o=0;b=0;break _}b=D+P(E,n-1|0)|0;w=b+1|0;o=K[b|0]<<8;s=0;b=0;if((n|0)==1)break _;b=D+P(E,n-2|0)|0;s=b+1|0;b=K[b|0]<<8}A=k+1|0;m=l<<8;$:{l=J[i>>2];if(l+8>>>0>16)break $;t=J[i+4>>2];if(t+8>>>0>16)break $;u=J[i+8>>2];if(u+8>>>0>16)break $;x=J[i+12>>2];if(x+8>>>0>16)break $;y=0;r=J[j>>2];aa:{if((r|0)>0){F=0;q=0;break aa}F= +O[(d<<3)+b>>3]=J[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=J[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=J[(d<<2)+b>>2];c=c-4|0;if(d)continue;break}break V}if(!oU(a,e,b))break U;j=J[e+4>>2];g=j-1|0;if((g|0)<0)break V;d=0;c=g;h=j&3;if(h)while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(g>>>0<3)break V;while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];d=c-1|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];c=c-4|0;if(d)continue; +break}break V}ha:{if(J[e+4>>2]==1){N[b>>2]=N[e+8>>2];h=0;j=1;break ha}if(!ci(a,e,b))break U;j=J[e+4>>2];h=j-1|0;if((h|0)<0)break V}d=0;c=h;g=c+1&3;if(g)while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];c=c-1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(h>>>0<3)break V;while(1){O[(c<<3)+b>>3]=N[(c<<2)+b>>2];d=c-1|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-2|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];d=c-3|0;O[(d<<3)+b>>3]=N[(d<<2)+b>>2];c=c-4|0;if(d)continue;break}break V}d=J[a+628>>2];g=J[a>>2];s=f,t=J[Sf(a,L[e>>1])+16>>2],J[s+ +340>>2]=t;J[f+336>>2]=c;Uc(d,g,88701,f+336|0);break U}if(!ci(a,e,b))break U;j=J[e+4>>2]}r=O[b>>3];d=0;c=(i|0)>(j|0)?j:i;if((c|0)<2)break T;c=c&65535;g=c>>>0<=2?2:c;c=1;while(1){if(O[(c<<3)+b>>3]==r){c=c+1|0;if((g|0)!=(c|0))continue;break T}break}c=J[a+628>>2];d=J[a>>2];s=f,t=J[Sf(a,L[e>>1])+16>>2],J[s+352>>2]=t;Uc(c,d,88545,f+352|0)}d=1;r=0}if((f+704|0)!=(b|0))uc(b);if(d)break h;b=L[e>>1];O[f+320>>3]=r;if(ke(a,b,f+320|0))break G;break h}if(iU(a,e,J[a+180>>2],p))break G;break h}if(iU(a,e,J[a+180>> +2],n))break G;break h}h=L[a+84>>1];c=1<>2]=c;b=J[e+4>>2];ia:{if((b|0)==(c|0)&(g|0)!=320)break ia;d=3<>>0>b>>>0)break H;c=b;if(d>>>0>=b>>>0)break ia;b=J[a+628>>2];c=J[a>>2];g=J[Sf(a,g)+16>>2];j=J[e+4>>2];J[f+424>>2]=d;J[f+420>>2]=j;J[f+416>>2]=g;le(b,c,82939,f+416|0);c=J[e+4>>2]}h=2<>2]=h;b=bh(a,c,2,76607);if(!b)break G;if(ci(a,e,b)){if(J[e+4>>2]==1<>1]){J[f+692>>2]=0;h=0}c=L[e>>1];J[f+384>>2]=b;J[f+392>>2]=b+(h<<1);J[f+388>>2]=b+h;ke(a,c,f+384|0)}uc(b);break G}b= +J[e+4>>2];if(b>>>0>=3){b=J[a+628>>2];c=J[a>>2];d=J[Sf(a,g)+16>>2];J[f+436>>2]=J[e+4>>2];J[f+432>>2]=d;le(b,c,88107,f+432|0);break G}ja:switch(L[e+2>>1]-1|0){case 0:case 5:if(!_G(a,e,f+704|0))break G;b=L[e>>1];J[f+448>>2]=K[f+704|0];J[f+452>>2]=K[f+705|0];ke(a,b,f+448|0);break G;case 2:case 7:break ja;default:break G}ka:{if(L[a+456>>1]==19789){h=0;d=0;la:switch(b-1|0){case 0:d=J[e+8>>2]>>>16|0;break ka;case 1:break la;default:break ka}h=J[e+8>>2];d=h>>>16|0;break ka}h=0;d=0;ma:{na:switch(b-1|0){case 0:c= +L[e+8>>1];h=0;break ma;case 1:break na;default:break ka}c=J[e+8>>2];h=c>>>16|0}d=c&65535}J[f+464>>2]=d;J[f+468>>2]=h&65535;ke(a,g,f+464|0);break G}if(L[e+2>>1]==5){aA(a,e);break G}c=bh(a,J[e+4>>2],4,92288);if(!c)break G;oa:{pa:{if(J[e+4>>2]==1){J[c>>2]=J[e+8>>2];break pa}if(!ci(a,e,c))break oa}d=bh(a,J[e+4>>2],4,92288);if(!d)break oa;h=J[e+4>>2];qa:{if(!h)break qa;j=0;b=0;if(h>>>0>=4){i=h&-4;o=0;while(1){g=b<<2;N[g+d>>2]=M[c+g>>2];q=g|4;N[q+d>>2]=M[c+q>>2];q=g|8;N[q+d>>2]=M[c+q>>2];g=g|12;N[g+d>> +2]=M[c+g>>2];b=b+4|0;o=o+4|0;if((i|0)!=(o|0))continue;break}}g=h&3;if(!g)break qa;while(1){h=b<<2;N[h+d>>2]=M[c+h>>2];b=b+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}}b=L[e>>1];J[f+480>>2]=d;ke(a,b,f+480|0);uc(d)}uc(c);break G}J[f+692>>2]=0;d=L[e+2>>1];b=J[e+8>>2];c=1;if(L[a+456>>1]==19789)b=b>>>J[J[a+464>>2]+(d<<2)>>2]|0;ra:switch((J[J[a+468>>2]+(d<<2)>>2]&b)-2|0){case 1:c=2;break;case 0:break ra;default:break G}J[f+496>>2]=c;J[f+692>>2]=c;ke(a,254,f+496|0);break G}if(!g)break G}aA(a,e);break G}b= +J[a+628>>2];c=J[a>>2];g=J[Sf(a,g)+16>>2];h=J[e+4>>2];J[f+408>>2]=d;J[f+404>>2]=h;J[f+400>>2]=g;le(b,c,82731,f+400|0)}e=e+12|0;g=k-1|0;if((k|0)>1)continue;break}sa:{if(L[a+88>>1]!=6)break sa;ta:{if(!(H[m+1|0]&1)){le(J[a+628>>2],72864,77163,0);J[f+240>>2]=6;if(ke(a,262,f+240|0))break ta;break h}if(L[a+90>>1]!=2)break ta;I[a+90>>1]=6;le(J[a+628>>2],72864,77976,0)}b=J[m>>2];if(!(b&64)){le(J[a+628>>2],72864,78457,0);J[f+224>>2]=8;if(!ke(a,258,f+224|0))break h;b=J[m>>2]}if(b&65536)break sa;ua:switch(L[a+ +90>>1]){case 2:case 6:le(J[a+628>>2],72864,78949,0);J[f+192>>2]=3;if(ke(a,277,f+192|0))break sa;break h;case 0:case 1:break ua;default:break sa}le(J[a+628>>2],72864,79367,0);J[f+208>>2]=1;if(!ke(a,277,f+208|0))break h}if(!(K[m+3|0]&4|L[a+90>>1]!=3)){b=J[a+628>>2];a=J[a>>2];J[f+52>>2]=79559;J[f+48>>2]=a;Uc(b,92208,82478,f+48|0);break h}b=L[a+88>>1];va:{if((b|0)==6)break va;if(!(H[m+3|0]&1)){wa:{xa:switch(L[a+138>>1]-1|0){case 1:if(J[a+180>>2]==L[a+98>>1])break wa;break D;case 0:break xa;default:break wa}if(M[a+ +180>>2]>1)break D}b=J[a+628>>2];c=J[a>>2];s=f,t=J[Sf(a,279)+16>>2],J[s+132>>2]=t;J[f+128>>2]=c;le(b,72864,80131,f+128|0);if((YG(a,J[f+700>>2],l)|0)>=0)break va;break h}ya:{if(!J[J[p>>2]>>2]|J[a+180>>2]!=1)break ya;c=J[J[n>>2]>>2];za:{if(!c)break za;if((b|0)==1)if(c>>>0>(kc[J[a+648>>2]](J[a+628>>2])|0)-J[J[a+184>>2]>>2]>>>0)break za;if(J[a+8>>2]|L[a+88>>1]!=1)break ya;if(M[J[a+188>>2]>>2]>=P(wj(a),J[a+60>>2])>>>0)break ya}b=J[a+628>>2];c=J[a>>2];s=f,t=J[Sf(a,279)+16>>2],J[s+180>>2]=t;J[f+176>>2]=c; +le(b,72864,80619,f+176|0);if((YG(a,J[f+700>>2],l)|0)>=0)break va;break h}if(L[a+138>>1]!=1|M[a+180>>2]<3|L[a+88>>1]!=1)break va;b=J[n>>2];c=J[b+4>>2];if(!c)break va;b=J[b>>2];if(!b|(b|0)==(c|0))break va;b=J[a+628>>2];c=J[a>>2];s=f,t=J[Sf(a,279)+16>>2],J[s+164>>2]=t;J[f+160>>2]=c;le(b,72864,80882,f+160|0);if((YG(a,J[f+700>>2],l)|0)<0)break h}b=J[f+700>>2];if(b){uc(b);J[f+700>>2]=0}e=J[m>>2];if(!(e&524288))I[a+106>>1]=-1<>1]^-1;c=J[a+180>>2];Aa:{if(c>>>0<2)break Aa;J[a+192>>2]=1;d=J[a+184>> +2];b=1;while(1){g=d+(b<<2)|0;if(M[g-4>>2]<=M[g>>2]){b=b+1|0;if((c|0)!=(b|0))continue;break Aa}break}J[a+192>>2]=0}if(!(e&128)){J[f+112>>2]=1;ke(a,259,f+112|0);c=J[a+180>>2]}if(!((c|0)!=1|L[a+88>>1]!=1|(J[a+12>>2]&33792)!=32768)){h=0;m=0;i=fc-16|0;fc=i;j=J[J[a+184>>2]>>2];c=J[J[a+188>>2]>>2];k=1;b=hV(a,1);Ba:{if((b|0)<=8192){if((b|0)<=0)break Ba;k=8192/((b&65535)>>>0)|0;b=P(k,b)}if(M[a+100>>2]<=k>>>0|0-b>>>0<=c>>>0)break Ba;d=c-1|0;e=d+b|0;if(e>>>0>>0)break Ba;g=(e>>>0)/(b>>>0)|0;e=bh(a,g,4,89040); +d=bh(a,g,4,89174);if(!(!e|!d)){l=g>>>0<=1?1:g;n=l&1;if(g>>>0>=2){p=l&-2;while(1){o=h<<2;l=b>>>0>>0?b:c;J[o+e>>2]=l;J[d+o>>2]=j;o=o|4;c=c-l|0;b=c>>>0>l>>>0?l:c;J[o+e>>2]=b;l=j+l|0;J[d+o>>2]=l;c=c-b|0;j=b+l|0;h=h+2|0;m=m+2|0;if((p|0)!=(m|0))continue;break}}if(n){h=h<<2;J[h+e>>2]=b>>>0>>0?b:c;J[d+h>>2]=j}J[a+176>>2]=g;J[a+180>>2]=g;J[i>>2]=k;ke(a,278,i);uc(J[a+188>>2]);uc(J[a+184>>2]);J[a+192>>2]=1;J[a+184>>2]=d;J[a+188>>2]=e;break Ba}if(e)uc(e);if(!d)break Ba;uc(d)}fc=i+16|0}J[a+508>>2]=-1;J[a+ +500>>2]=-1;J[a+504>>2]=-1;J[a+480>>2]=-1;J[a+472>>2]=-1;b=wj(a);J[a+588>>2]=b;if(!b){b=J[a+628>>2];J[f+64>>2]=J[a>>2];Uc(b,72864,81185,f- -64|0);h=0;break a}if(K[a+13|0]&4){b=Dm(a);J[a+508>>2]=b;h=1;if(b)break a;b=J[a+628>>2];J[f+96>>2]=J[a>>2];Uc(b,72864,81556,f+96|0);h=0;break a}h=1;if(ot(a))break a;b=J[a+628>>2];J[f+80>>2]=J[a>>2];Uc(b,72864,81802,f+80|0);h=0;break a}b=J[a+628>>2];a=J[a>>2];J[f+516>>2]=c?75407:75858;J[f+512>>2]=a;Uc(b,92208,82478,f+512|0);break h}b=J[a+628>>2];c=J[a>>2];a=J[Sf(a, +g)+16>>2];e=J[e+4>>2];J[f+312>>2]=i;J[f+308>>2]=e;J[f+304>>2]=a;le(b,c,82731,f+304|0);break h}b=J[a+628>>2];a=J[a>>2];J[f+148>>2]=79874;J[f+144>>2]=a;Uc(b,92208,82478,f+144|0)}h=0;a=J[f+700>>2];if(!a)break a;uc(a)}fc=f+784|0;return h}function Zt(a,b,c,d,e,f,g,h,i,j,k){var 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,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0;C=fc-160|0;fc=C;z=vc(24);J[z+12>>2]=d;J[z+8>>2]=c;J[z>>2]=2317464;J[z+4>>2]=0;l=c+7>>3;J[z+16>>2]=l;a:{if(!((c|0)<=0| +(d|0)<=0|(l|0)<=0)){n=d;if(n>>>0<2147483646/(l>>>0)>>>0)break a}J[z+12>>2]=-1;J[z+16>>2]=2;n=-1;l=2}J[699344]=0;s=P(l,n);n=_(3616,s+1|0)|0;l=J[699344];J[699344]=0;b:{c:{if((l|0)!=1){J[z+20>>2]=n;H[n+s|0]=0;Ac(n,0,s);if(!b)break c;b=J[a+148>>2];J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((c|0)>=2147483645){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,803637,0);c=-4}e=Gd(c+1|0,4);i=Gd(c+3|0,4);J[e>>2]=c;if((d|0)>0){s=e-4|0;t=i+4|0;while(1){l=0;n=J[e>>2];if((n|0)<(c|0))while(1){J[i+(l<<2)>>2]=n;l=l+1|0;n=J[e+(l<<2)>> +2];if((n|0)<(c|0))continue;break}b=i+(l<<2)|0;J[b>>2]=c;J[b+8>>2]=c;J[b+4>>2]=c;v=0;J[e>>2]=0;l=0;q=e;p=0;n=0;j=0;if((c|0)>0){while(1){d:{e:{f:{b=J[a+148>>2];h=J[b+8>>2];g:{if(!h){h=8;f=J[b>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;J[b+8>>2]=8;f=f&255;J[b+4>>2]=f;J[b+12>>2]=J[b+12>>2]+1;J[b+16>>2]=J[b+16>>2]+1;m=f>>>1|0;break g}f=J[b+4>>2];m=f>>>h-7&127;if(h>>>0>=7)break g;m=f<<7-h&127;o=I[(m<<2)+2309008>>1];if((o|0)>=0&(h|0)>=(o|0))break f;g=J[b>>2];f=kc[J[J[g>>2]+28>>2]](g)&255|f<<8;J[b+4>>2]=f;g=J[b+8>> +2];h=g+8|0;J[b+8>>2]=h;J[b+12>>2]=J[b+12>>2]+1;J[b+16>>2]=J[b+16>>2]+1;m=f>>>g+1&127}o=I[(m<<2)+2309008>>1];if((o|0)>=0)break f;b=J[b>>2];Cc(1,kc[J[J[b>>2]+52>>2]](b)|0,776567,0);break e}J[b+8>>2]=h-(o&65535);h:{i:{j:switch(I[(m<<2)+2309010>>1]+1|0){case 1:f=n+2|0;g=t+(n<<2)|0;b=J[g>>2];if((b|0)>J[q>>2]){j=((j&1)!=(p|0))+j|0;h=e+(j<<2)|0;if((b|0)>(c|0)){l=kc[J[J[a>>2]+52>>2]](a)|0;J[C>>2]=b;Cc(1,l,808031,C);b=c}J[h>>2]=b;b=J[g>>2]}n=(b|0)<(c|0)?f:n;break d;case 2:g=0;if(p){while(1){f=J[a+148>>2]; +h=J[f+8>>2];if(!h){b=J[f>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[f+8>>2]=8;J[f+4>>2]=b&255;J[f+12>>2]=J[f+12>>2]+1;J[f+16>>2]=J[f+16>>2]+1;h=8}k:{l:{while(1){m:{n:{o:{p:{q:{if(h>>>0>=10){m=J[f+4>>2];o=h-6|0;if(m>>>o&63)break q;b=(((h>>>0<14?m<<13-h:m>>>h-13|0)&127)<<2)+2314384|0;break m}m=J[f+4>>2];if(h>>>0<7)break p;o=h-6|0}if(!(m>>>o&3)|m>>>h-4&15)break o;b=(((h>>>0<13?m<<12-h:m>>>h-12|0)&255)<<2)+2315152|0;break m}b=m<<6-h;break n}b=m>>>o|0}b=((b&63)<<2)+2316944|0}l=I[b>>1];if((l|0)>0&(h|0)>=(l|0))break l; +if(h>>>0<=12){b=J[f>>2];R=f,S=kc[J[J[b>>2]+28>>2]](b)&255|m<<8,J[R+4>>2]=S;h=J[f+8>>2]+8|0;J[f+8>>2]=h;J[f+12>>2]=J[f+12>>2]+1;J[f+16>>2]=J[f+16>>2]+1;continue}break}b=J[f>>2];Cc(1,kc[J[J[b>>2]+52>>2]](b)|0,778721,0);J[f+8>>2]=J[f+8>>2]-1;g=g+1|0;break k}J[f+8>>2]=h-l;b=I[b+2>>1];g=b+g|0;if((b|0)>63)continue}break}u=0;while(1){l=J[a+148>>2];h=J[l+8>>2];if(!h){b=J[l>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[l+8>>2]=8;J[l+4>>2]=b&255;J[l+12>>2]=J[l+12>>2]+1;J[l+16>>2]=J[l+16>>2]+1;h=8}while(1){r:{s:{t:{if(h>>> +0>=11){m=J[l+4>>2];if(m>>>h-7&127)break t;b=(((h>>>0<13?m<<12-h:m>>>h-12|0)&31)<<2)+2310032|0;break r}m=J[l+4>>2];if((h|0)==10)break t;b=m<<9-h;break s}b=m>>>h-9|0}b=((b&511)<<2)+2310288|0}f=I[b>>1];if(!((f|0)>0&(f|0)<=(h|0))){if(h>>>0>11){h=777636;break i}b=J[l>>2];R=l,S=kc[J[J[b>>2]+28>>2]](b)&255|m<<8,J[R+4>>2]=S;h=J[l+8>>2]+8|0;J[l+8>>2]=h;J[l+12>>2]=J[l+12>>2]+1;J[l+16>>2]=J[l+16>>2]+1;continue}break}J[l+8>>2]=h-f;b=I[b+2>>1];u=b+u|0;if((b|0)>63)continue;break}break h}while(1){f=J[a+148>>2]; +h=J[f+8>>2];if(!h){b=J[f>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[f+8>>2]=8;J[f+4>>2]=b&255;J[f+12>>2]=J[f+12>>2]+1;J[f+16>>2]=J[f+16>>2]+1;h=8}u:{v:{while(1){w:{x:{y:{if(h>>>0>=11){m=J[f+4>>2];if(m>>>h-7&127)break y;b=(((h>>>0<13?m<<12-h:m>>>h-12|0)&31)<<2)+2310032|0;break w}m=J[f+4>>2];if((h|0)==10)break y;b=m<<9-h;break x}b=m>>>h-9|0}b=((b&511)<<2)+2310288|0}l=I[b>>1];if((l|0)>0&(h|0)>=(l|0))break v;if(h>>>0<=11){b=J[f>>2];R=f,S=kc[J[J[b>>2]+28>>2]](b)&255|m<<8,J[R+4>>2]=S;h=J[f+8>>2]+8|0;J[f+8>>2]=h; +J[f+12>>2]=J[f+12>>2]+1;J[f+16>>2]=J[f+16>>2]+1;continue}break}b=J[f>>2];Cc(1,kc[J[J[b>>2]+52>>2]](b)|0,777636,0);J[f+8>>2]=J[f+8>>2]-1;g=g+1|0;break u}J[f+8>>2]=h-l;b=I[b+2>>1];g=b+g|0;if((b|0)>63)continue}break}u=0;while(1){l=J[a+148>>2];h=J[l+8>>2];if(!h){b=J[l>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[l+8>>2]=8;J[l+4>>2]=b&255;J[l+12>>2]=J[l+12>>2]+1;J[l+16>>2]=J[l+16>>2]+1;h=8}while(1){z:{A:{B:{C:{D:{if(h>>>0>=10){m=J[l+4>>2];o=h-6|0;if(m>>>o&63)break D;b=(((h>>>0<14?m<<13-h:m>>>h-13|0)&127)<<2)+2314384| +0;break z}m=J[l+4>>2];if(h>>>0<7)break C;o=h-6|0}if(!(m>>>o&3)|m>>>h-4&15)break B;b=(((h>>>0<13?m<<12-h:m>>>h-12|0)&255)<<2)+2315152|0;break z}b=m<<6-h;break A}b=m>>>o|0}b=((b&63)<<2)+2316944|0}f=I[b>>1];if(!((f|0)>0&(f|0)<=(h|0))){if(h>>>0>12){h=778721;break i}b=J[l>>2];R=l,S=kc[J[J[b>>2]+28>>2]](b)&255|m<<8,J[R+4>>2]=S;h=J[l+8>>2]+8|0;J[l+8>>2]=h;J[l+12>>2]=J[l+12>>2]+1;J[l+16>>2]=J[l+16>>2]+1;continue}break}J[l+8>>2]=h-f;b=I[b+2>>1];u=b+u|0;if((b|0)>63)continue;break}break h;case 8:h=J[i+(n<<2)>> +2]+3|0;E:{if((h|0)<=J[q>>2]){h=J[e+(j<<2)>>2];break E}if((c|0)<(h|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+48>>2]=h;Cc(1,b,808031,C+48|0);h=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=n+1|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 6:h=J[i+(n<<2)>>2]+2|0;F:{if((h|0)<=J[q>>2]){h=J[e+(j<<2)>>2];break F}if((c|0)<(h|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+64>>2]=h;Cc(1,b,808031,C- -64|0);h=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d; +l=n+1|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 4:b=J[i+(n<<2)>>2];G:{if((b|0)>2]){h=J[e+(j<<2)>>2];break G}h=b+1|0;if((b|0)>=(c|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+80>>2]=h;Cc(1,b,808031,C+80|0);h=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=n+1|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 3:h=J[i+(n<<2)>>2];H:{if((h|0)<=J[q>>2]){h=J[e+(j<<2)>>2];break H}if((c|0)<(h|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+ +96>>2]=h;Cc(1,b,808031,C+96|0);h=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=n+1|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 9:b=J[i+(n<<2)>>2];h=b-3|0;f=J[q>>2];I:{J:{if((h|0)>(f|0)){if((c|0)<(h|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+112>>2]=h;Cc(1,b,808031,C+112|0);h=c}j=((j&1)!=(p|0))+j|0;break J}if((f|0)<=(h|0)){h=J[e+(j<<2)>>2];break I}if((b|0)<=2){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,808408,0);h=0}if((j|0)<=0)break J;while(1){if(J[s+(j<<2)>> +2]<(h|0))break J;b=(j|0)>1;j=j-1|0;if(b)continue;break}j=0}J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=((n|0)<=0?1:-1)+n|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 7:b=J[i+(n<<2)>>2];h=b-2|0;f=J[q>>2];K:{L:{if((h|0)>(f|0)){if((c|0)<(h|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+128>>2]=h;Cc(1,b,808031,C+128|0);h=c}j=((j&1)!=(p|0))+j|0;break L}if((f|0)<=(h|0)){h=J[e+(j<<2)>>2];break K}if((b|0)<=1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,808408,0);h=0}if((j|0)<=0)break L;while(1){if(J[s+ +(j<<2)>>2]<(h|0))break L;b=(j|0)>1;j=j-1|0;if(b)continue;break}j=0}J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=((n|0)<=0?1:-1)+n|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 5:b=J[i+(n<<2)>>2];h=b-1|0;f=J[q>>2];M:{N:{if((h|0)>(f|0)){if((c|0)<(h|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+144>>2]=h;Cc(1,b,808031,C+144|0);h=c}j=((j&1)!=(p|0))+j|0;break N}if((b|0)>(f|0)){h=J[e+(j<<2)>>2];break M}if((b|0)<=0){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,808408,0);h=0}if((j|0)<=0)break N; +while(1){if(J[s+(j<<2)>>2]<(h|0))break N;b=(j|0)>1;j=j-1|0;if(b)continue;break}j=0}J[e+(j<<2)>>2]=h}p=p^1;if((c|0)<=(h|0))break d;l=((n|0)<=0?1:-1)+n|0;while(1){n=l;l=l+2|0;if(J[i+(n<<2)>>2]<=(h|0))continue;break}break d;case 0:break e;default:break j}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,804497,0);if(J[q>>2]>=(c|0))break d;b=j&1;J[(e+(j<<2)|0)+(b<<2)>>2]=c;j=b+j|0;break d}b=J[l>>2];Cc(1,kc[J[J[b>>2]+52>>2]](b)|0,h,0);J[l+8>>2]=J[l+8>>2]-1;u=u+1|0}O:{if((g|0)<=0){m=J[e+(j<<2)>>2];break O}m=J[q>>2]+g|0;if((m| +0)>(c|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+32>>2]=m;Cc(1,b,808031,C+32|0);m=c}j=((j&1)!=(p|0))+j|0;J[e+(j<<2)>>2]=m}if(!((c|0)<=(m|0)|(u|0)<=0)){m=m+u|0;if((m|0)>(c|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[C+16>>2]=m;Cc(1,b,808031,C+16|0);m=c}j=((j&1^p)!=1)+j|0;J[e+(j<<2)>>2]=m}while(1){b=n;f=J[i+(b<<2)>>2];if((f|0)>=(c|0))break d;n=b+2|0;if((f|0)<=(m|0))continue;break}n=b;break d}if(J[q>>2]>=(c|0))break d;b=j&1;J[(e+(j<<2)|0)+(b<<2)>>2]=c;j=b+j|0}q=e+(j<<2)|0;if(J[q>>2]<(c|0))continue;break}l=J[e>>2]}P:{if((c| +0)<=(l|0))break P;while(1){b=e+(v<<2|4)|0;n=J[b>>2];if((n|0)>(l|0)){f=J[z+20>>2]+P(J[z+16>>2],r)|0;while(1){g=f+(l>>3)|0;H[g|0]=K[g|0]|1<<((l^-1)&7);l=l+1|0;n=J[b>>2];if((l|0)<(n|0))continue;break}}if((c|0)<=(n|0))break P;v=v+2|0;l=J[e+(v<<2)>>2];if((l|0)<(c|0))continue;break}}r=r+1|0;if((r|0)!=(d|0))continue;break}}b=J[a+148>>2];Q:{if((k|0)>=0){a=J[b>>2];a=kc[J[J[a>>2]+48>>2]](a,k-J[b+12>>2]|0)|0;J[b+12>>2]=a+J[b+12>>2];J[b+16>>2]=a+J[b+16>>2];break Q}c=J[b+8>>2];R:{if(c>>>0>=24){n=J[b+4>>2];break R}n= +J[b+4>>2];while(1){c=J[b>>2];n=kc[J[J[c>>2]+28>>2]](c)&255|n<<8;J[b+4>>2]=n;c=J[b+8>>2]+8|0;J[b+8>>2]=c;J[b+12>>2]=J[b+12>>2]+1;J[b+16>>2]=J[b+16>>2]+1;if(c>>>0<24)continue;break}}if((n>>>c-24&16777215)==4097)break Q;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,805078,0)}Mc(i);Mc(e);break b}a=Z()|0;uc(z);ba(a|0);B()}O=!f|e>>>0>3?O:J[(e<<2)+2317848>>2];if((d|0)<=0)break b;n=0;while(1){S:{T:{U:{V:{W:{X:{Y:{Z:{if(f){if(qe(J[a+76>>2],O,J[a+80>>2])?!N:N)break Z;N=0}switch(e|0){case 3:break V;case 2:break W;case 1:break X; +case 0:break Y;default:break S}}N=1;if(!n)break S;k=J[z+20>>2];b=J[z+16>>2];xc(k+P(b,n)|0,k+P(b,n-1|0)|0,b);break S}D=J[z+20>>2];E=J[z+16>>2];k=D+P(E,n)|0;l=K[k|0];_:{if(!n){s=0;w=0;o=0;b=0;break _}b=D+P(E,n-1|0)|0;w=b+1|0;o=K[b|0]<<8;s=0;b=0;if((n|0)==1)break _;b=D+P(E,n-2|0)|0;s=b+1|0;b=K[b|0]<<8}A=k+1|0;m=l<<8;$:{l=J[i>>2];if(l+8>>>0>16)break $;t=J[i+4>>2];if(t+8>>>0>16)break $;u=J[i+8>>2];if(u+8>>>0>16)break $;x=J[i+12>>2];if(x+8>>>0>16)break $;y=0;r=J[j>>2];aa:{if((r|0)>0){F=0;q=0;break aa}F= 0;r=n+r|0;q=0;if((r|0)<0)break aa;r=D+P(r,E)|0;F=r+1|0;q=K[r|0]<<8}p=J[j+4>>2];r=0;ba:{if((p|0)>0)break ba;p=n+p|0;r=0;if((p|0)<0)break ba;r=D+P(p,E)|0;y=r+1|0;r=K[r|0]<<8}M=0;v=J[j+8>>2];ca:{if((v|0)>0){G=0;p=0;break ca}G=0;v=n+v|0;p=0;if((v|0)<0)break ca;p=D+P(v,E)|0;G=p+1|0;p=K[p|0]<<8}L=J[j+12>>2];v=0;da:{if((L|0)>0)break da;L=n+L|0;v=0;if((L|0)<0)break da;v=D+P(E,L)|0;M=v+1|0;v=K[v|0]<<8}if((c|0)<=0)break S;E=15-l|0;D=15-t|0;L=15-u|0;Q=15-x|0;x=0;l=0;while(1){x=x+8|0;ea:{if((x|0)>=(c|0))break ea; -t=0;if(s){b=K[s|0]|b;s=s+1|0}else s=0;if(w){o=K[w|0]|o;t=w+1|0}u=0;if(F){q=K[F|0]|q;F=F+1|0}else F=0;if(y){u=y+1|0;r=K[y|0]|r}if(G){p=K[G|0]|p;G=G+1|0}else G=0;y=A+1|0;m=K[A|0]|m;if(!M){w=t;A=y;y=u;M=0;break ea}v=K[M|0]|v;w=t;A=y;y=u;M=M+1|0}fa:{if((c|0)<=(l|0))break fa;u=128;t=0;while(1){ga:{if(!(!g|(l|0)<0|(J[h+8>>2]<=(l|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(l>>>3)|0]>>>((l^-1)&7)&1)break ga;if(!he(J[a+76>>2],v>>>Q&1|(p>>>L<<1&2|(r>>>D<<2&4|(q>>>E<<3&8|(m>>>12&240|(o>>>5&7936| +t=0;if(s){b=K[s|0]|b;s=s+1|0}else s=0;if(w){o=K[w|0]|o;t=w+1|0}u=0;if(F){q=K[F|0]|q;F=F+1|0}else F=0;if(y){u=y+1|0;r=K[y|0]|r}if(G){p=K[G|0]|p;G=G+1|0}else G=0;y=A+1|0;m=K[A|0]|m;if(!M){w=t;A=y;y=u;M=0;break ea}v=K[M|0]|v;w=t;A=y;y=u;M=M+1|0}fa:{if((c|0)<=(l|0))break fa;u=128;t=0;while(1){ga:{if(!(!g|(l|0)<0|(J[h+8>>2]<=(l|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(l>>>3)|0]>>>((l^-1)&7)&1)break ga;if(!qe(J[a+76>>2],v>>>Q&1|(p>>>L<<1&2|(r>>>D<<2&4|(q>>>E<<3&8|(m>>>12&240|(o>>>5&7936| b>>>1&57344))))),J[a+80>>2]))break ga;H[k|0]=K[k|0]|u;v=J[j+12>>2]?v:v|32768;p=J[j+8>>2]?p:p|32768;r=J[j+4>>2]?r:r|32768;q=J[j>>2]?q:q|32768;m=m|32768}l=l+1|0;v=v<<1;p=p<<1;r=r<<1;q=q<<1;m=m<<1;o=o<<1;b=b<<1;if(t>>>0>6)break fa;t=t+1|0;u=(u&254)>>>1|0;if((c|0)>(l|0))continue;break}}k=k+1|0;if((c|0)>(x|0))continue;break}break S}x=0;l=0;if((c|0)<=0)break S;while(1){x=x+8|0;if((x|0)<(c|0)){if(s){b=K[s|0]|b;s=s+1|0}else s=0;m=K[A|0]|m;A=A+1|0;if(w){o=K[w|0]|o;w=w+1|0}else w=0}u=128;q=0;ha:{if((c|0)<= (l|0))break ha;while(1){r=0;t=J[i>>2]+l|0;ia:{if((t|0)<0)break ia;y=J[j>>2]+n|0;if((y|0)<0|(t|0)>=J[z+8>>2]|(y|0)>=J[z+12>>2])break ia;r=K[D+P(y,E)+(t>>>3)|0]>>>((t^-1)&7)&1}p=0;v=0;t=J[i+4>>2]+l|0;ja:{if((t|0)<0)break ja;y=J[j+4>>2]+n|0;if((y|0)<0|(t|0)>=J[z+8>>2]|(y|0)>=J[z+12>>2])break ja;v=K[D+P(y,E)+(t>>>3)|0]>>>((t^-1)&7)&1}t=J[i+8>>2]+l|0;ka:{if((t|0)<0)break ka;y=J[j+8>>2]+n|0;if((y|0)<0|(t|0)>=J[z+8>>2]|(y|0)>=J[z+12>>2])break ka;p=K[D+P(y,E)+(t>>>3)|0]>>>((t^-1)&7)&1}t=0;y=J[i+12>>2]+l| -0;la:{if((y|0)<0)break la;F=J[j+12>>2]+n|0;if((F|0)<0|(y|0)>=J[z+8>>2]|(F|0)>=J[z+12>>2])break la;t=K[D+P(E,F)+(y>>>3)|0]>>>((y^-1)&7)&1}ma:{if(!(!g|(l|0)<0|(J[h+8>>2]<=(l|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(l>>>3)|0]>>>((l^-1)&7)&1)break ma;if(!he(J[a+76>>2],m>>>12&240|(b>>>1&57344|o>>>5&7936)|r<<3|v<<2|p<<1|t,J[a+80>>2]))break ma;H[k|0]=K[k|0]|u;m=m|32768}l=l+1|0;m=m<<1;o=o<<1;b=b<<1;if(q>>>0>6)break ha;q=q+1|0;u=(u&254)>>>1|0;if((c|0)>(l|0))continue;break}}k=k+1|0;if((c|0)> +0;la:{if((y|0)<0)break la;F=J[j+12>>2]+n|0;if((F|0)<0|(y|0)>=J[z+8>>2]|(F|0)>=J[z+12>>2])break la;t=K[D+P(E,F)+(y>>>3)|0]>>>((y^-1)&7)&1}ma:{if(!(!g|(l|0)<0|(J[h+8>>2]<=(l|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(l>>>3)|0]>>>((l^-1)&7)&1)break ma;if(!qe(J[a+76>>2],m>>>12&240|(b>>>1&57344|o>>>5&7936)|r<<3|v<<2|p<<1|t,J[a+80>>2]))break ma;H[k|0]=K[k|0]|u;m=m|32768}l=l+1|0;m=m<<1;o=o<<1;b=b<<1;if(q>>>0>6)break ha;q=q+1|0;u=(u&254)>>>1|0;if((c|0)>(l|0))continue;break}}k=k+1|0;if((c|0)> (x|0))continue;break}break S}A=J[z+20>>2];w=J[z+16>>2];v=A+P(w,n)|0;l=K[v|0];na:{if(!n){k=0;s=0;b=0;m=0;break na}b=A+P(w,n-1|0)|0;s=b+1|0;b=K[b|0]<<8;k=0;m=0;if((n|0)==1)break na;m=A+P(w,n-2|0)|0;k=m+1|0;m=K[m|0]<<8}t=v+1|0;l=l<<8;r=J[i>>2];if(r+8>>>0<17)break T;x=0;o=0;if((c|0)<=0)break S;while(1){x=x+8|0;if((x|0)<(c|0)){if(k){m=K[k|0]|m;k=k+1|0}else k=0;l=K[t|0]|l;t=t+1|0;if(s){b=K[s|0]|b;s=s+1|0}else s=0}p=128;q=0;oa:{if((c|0)<=(o|0))break oa;while(1){r=0;u=J[i>>2]+o|0;pa:{if((u|0)<0)break pa; -y=J[j>>2]+n|0;if((y|0)<0|(u|0)>=J[z+8>>2]|(y|0)>=J[z+12>>2])break pa;r=K[A+P(w,y)+(u>>>3)|0]>>>((u^-1)&7)&1}qa:{if(!(!g|(o|0)<0|(J[h+8>>2]<=(o|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(o>>>3)|0]>>>((o^-1)&7)&1)break qa;if(!he(J[a+76>>2],l>>>15&14|(b>>>9&496|m>>>4&7680)|r,J[a+80>>2]))break qa;H[v|0]=K[v|0]|p;l=l|32768}o=o+1|0;l=l<<1;b=b<<1;m=m<<1;if(q>>>0>6)break oa;q=q+1|0;p=(p&254)>>>1|0;if((c|0)>(o|0))continue;break}}v=v+1|0;if((c|0)>(x|0))continue;break}break S}A=J[z+20>>2];w=J[z+ +y=J[j>>2]+n|0;if((y|0)<0|(u|0)>=J[z+8>>2]|(y|0)>=J[z+12>>2])break pa;r=K[A+P(w,y)+(u>>>3)|0]>>>((u^-1)&7)&1}qa:{if(!(!g|(o|0)<0|(J[h+8>>2]<=(o|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(o>>>3)|0]>>>((o^-1)&7)&1)break qa;if(!qe(J[a+76>>2],l>>>15&14|(b>>>9&496|m>>>4&7680)|r,J[a+80>>2]))break qa;H[v|0]=K[v|0]|p;l=l|32768}o=o+1|0;l=l<<1;b=b<<1;m=m<<1;if(q>>>0>6)break oa;q=q+1|0;p=(p&254)>>>1|0;if((c|0)>(o|0))continue;break}}v=v+1|0;if((c|0)>(x|0))continue;break}break S}A=J[z+20>>2];w=J[z+ 16>>2];v=A+P(w,n)|0;l=K[v|0];ra:{if(!n){k=0;s=0;b=0;m=0;break ra}b=A+P(w,n-1|0)|0;s=b+1|0;b=K[b|0]<<8;k=0;m=0;if((n|0)==1)break ra;m=A+P(w,n-2|0)|0;k=m+1|0;m=K[m|0]<<8}t=v+1|0;l=l<<8;r=J[i>>2];if(r+8>>>0<17)break U;x=0;o=0;if((c|0)<=0)break S;while(1){x=x+8|0;if((x|0)<(c|0)){if(k){m=K[k|0]|m;k=k+1|0}else k=0;l=K[t|0]|l;t=t+1|0;if(s){b=K[s|0]|b;s=s+1|0}else s=0}p=128;q=0;sa:{if((c|0)<=(o|0))break sa;while(1){r=0;u=J[i>>2]+o|0;ta:{if((u|0)<0)break ta;y=J[j>>2]+n|0;if((y|0)<0|(u|0)>=J[z+8>>2]|(y|0)>= -J[z+12>>2])break ta;r=K[A+P(w,y)+(u>>>3)|0]>>>((u^-1)&7)&1}ua:{if(!(!g|(o|0)<0|(J[h+8>>2]<=(o|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(o>>>3)|0]>>>((o^-1)&7)&1)break ua;if(!he(J[a+76>>2],l>>>15&6|(b>>>11&120|m>>>7&896)|r,J[a+80>>2]))break ua;H[v|0]=K[v|0]|p;l=l|32768}o=o+1|0;l=l<<1;b=b<<1;m=m<<1;if(q>>>0>6)break sa;q=q+1|0;p=(p&254)>>>1|0;if((c|0)>(o|0))continue;break}}v=v+1|0;if((c|0)>(x|0))continue;break}break S}A=J[z+20>>2];w=J[z+16>>2];p=A+P(w,n)|0;b=K[p|0];va:{if(!n){u=0;m=0;break va}k= +J[z+12>>2])break ta;r=K[A+P(w,y)+(u>>>3)|0]>>>((u^-1)&7)&1}ua:{if(!(!g|(o|0)<0|(J[h+8>>2]<=(o|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(o>>>3)|0]>>>((o^-1)&7)&1)break ua;if(!qe(J[a+76>>2],l>>>15&6|(b>>>11&120|m>>>7&896)|r,J[a+80>>2]))break ua;H[v|0]=K[v|0]|p;l=l|32768}o=o+1|0;l=l<<1;b=b<<1;m=m<<1;if(q>>>0>6)break sa;q=q+1|0;p=(p&254)>>>1|0;if((c|0)>(o|0))continue;break}}v=v+1|0;if((c|0)>(x|0))continue;break}break S}A=J[z+20>>2];w=J[z+16>>2];p=A+P(w,n)|0;b=K[p|0];va:{if(!n){u=0;m=0;break va}k= A+P(w,n-1|0)|0;u=k+1|0;m=K[k|0]<<8}k=p+1|0;l=b<<8;r=J[i>>2];if(r+8>>>0>=17){s=0;b=0;if((c|0)<=0)break S;while(1){s=s+8|0;if((s|0)<(c|0)){if(u){m=K[u|0]|m;u=u+1|0}else u=0;l=K[k|0]|l;k=k+1|0}r=128;o=0;wa:{if((b|0)>=(c|0))break wa;while(1){q=0;t=J[i>>2]+b|0;xa:{if((t|0)<0)break xa;y=J[j>>2]+n|0;if((y|0)<0|(t|0)>=J[z+8>>2]|(y|0)>=J[z+12>>2])break xa;q=K[A+P(w,y)+(t>>>3)|0]>>>((t^-1)&7)&1}ya:{if(!(!g|(b|0)<0|(J[h+8>>2]<=(b|0)|J[h+12>>2]<=(n|0))))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(b>>>3)|0]>>>((b^-1)&7)& -1)break ya;if(!he(J[a+76>>2],l>>>15&30|m>>>9&992|q,J[a+80>>2]))break ya;H[p|0]=K[p|0]|r;l=l|32768}b=b+1|0;l=l<<1;m=m<<1;if(o>>>0>6)break wa;o=o+1|0;r=(r&254)>>>1|0;if((b|0)<(c|0))continue;break}}p=p+1|0;if((c|0)>(s|0))continue;break}break S}t=0;o=J[j>>2];za:{if((o|0)>0){s=0;b=0;break za}s=0;o=n+o|0;b=0;if((o|0)<0)break za;b=A+P(o,w)|0;s=b+1|0;b=K[b|0]<<8}if((c|0)<=0)break S;w=15-r|0;o=0;while(1){t=t+8|0;Aa:{if((t|0)>=(c|0))break Aa;if(u){m=K[u|0]|m;u=u+1|0}else u=0;r=k+1|0;l=K[k|0]|l;if(!s){k=r;s= -0;break Aa}b=K[s|0]|b;k=r;s=s+1|0}Ba:{if((c|0)<=(o|0))break Ba;r=128;q=0;if(!g)while(1){o=o+1|0;if(he(J[a+76>>2],b>>>w&1|(l>>>15&30|m>>>9&992),J[a+80>>2])){H[p|0]=K[p|0]|r;l=l|32768;b=J[j>>2]?b:b|32768}b=b<<1;l=l<<1;m=m<<1;if(q>>>0>6)break Ba;q=q+1|0;r=(r&254)>>>1|0;if((c|0)>(o|0))continue;break Ba}while(1){Ca:{if(!((o|0)<0|J[h+8>>2]<=(o|0)|J[h+12>>2]<=(n|0)))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(o>>>3)|0]>>>((o^-1)&7)&1)break Ca;if(!he(J[a+76>>2],b>>>w&1|(l>>>15&30|m>>>9&992),J[a+80>>2]))break Ca;H[p| +1)break ya;if(!qe(J[a+76>>2],l>>>15&30|m>>>9&992|q,J[a+80>>2]))break ya;H[p|0]=K[p|0]|r;l=l|32768}b=b+1|0;l=l<<1;m=m<<1;if(o>>>0>6)break wa;o=o+1|0;r=(r&254)>>>1|0;if((b|0)<(c|0))continue;break}}p=p+1|0;if((c|0)>(s|0))continue;break}break S}t=0;o=J[j>>2];za:{if((o|0)>0){s=0;b=0;break za}s=0;o=n+o|0;b=0;if((o|0)<0)break za;b=A+P(o,w)|0;s=b+1|0;b=K[b|0]<<8}if((c|0)<=0)break S;w=15-r|0;o=0;while(1){t=t+8|0;Aa:{if((t|0)>=(c|0))break Aa;if(u){m=K[u|0]|m;u=u+1|0}else u=0;r=k+1|0;l=K[k|0]|l;if(!s){k=r;s= +0;break Aa}b=K[s|0]|b;k=r;s=s+1|0}Ba:{if((c|0)<=(o|0))break Ba;r=128;q=0;if(!g)while(1){o=o+1|0;if(qe(J[a+76>>2],b>>>w&1|(l>>>15&30|m>>>9&992),J[a+80>>2])){H[p|0]=K[p|0]|r;l=l|32768;b=J[j>>2]?b:b|32768}b=b<<1;l=l<<1;m=m<<1;if(q>>>0>6)break Ba;q=q+1|0;r=(r&254)>>>1|0;if((c|0)>(o|0))continue;break Ba}while(1){Ca:{if(!((o|0)<0|J[h+8>>2]<=(o|0)|J[h+12>>2]<=(n|0)))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(o>>>3)|0]>>>((o^-1)&7)&1)break Ca;if(!qe(J[a+76>>2],b>>>w&1|(l>>>15&30|m>>>9&992),J[a+80>>2]))break Ca;H[p| 0]=K[p|0]|r;b=J[j>>2]?b:b|32768;l=l|32768}o=o+1|0;b=b<<1;l=l<<1;m=m<<1;if(q>>>0>6)break Ba;q=q+1|0;r=(r&254)>>>1|0;if((c|0)>(o|0))continue;break}}p=p+1|0;if((c|0)>(t|0))continue;break}break S}u=0;q=J[j>>2];Da:{if((q|0)>0){x=0;o=0;break Da}x=0;q=n+q|0;o=0;if((q|0)<0)break Da;w=A+P(q,w)|0;x=w+1|0;o=K[w|0]<<8}if((c|0)<=0)break S;A=15-r|0;q=0;while(1){u=u+8|0;Ea:{if((u|0)>=(c|0))break Ea;r=0;if(k){m=K[k|0]|m;k=k+1|0}else k=0;if(s){r=s+1|0;b=K[s|0]|b}w=t+1|0;l=K[t|0]|l;if(!x){x=0;s=r;t=w;break Ea}o=K[x| -0]|o;s=r;t=w;x=x+1|0}Fa:{if((c|0)<=(q|0))break Fa;p=128;r=0;if(!g)while(1){if(he(J[a+76>>2],o>>>A&1|(l>>>15&6|(b>>>11&120|m>>>7&896)),J[a+80>>2])){H[v|0]=K[v|0]|p;o=J[j>>2]?o:o|32768;l=l|32768}q=q+1|0;o=o<<1;l=l<<1;b=b<<1;m=m<<1;if(r>>>0>6)break Fa;r=r+1|0;p=(p&254)>>>1|0;if((c|0)>(q|0))continue;break Fa}while(1){Ga:{if(!((q|0)<0|J[h+8>>2]<=(q|0)|J[h+12>>2]<=(n|0)))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(q>>>3)|0]>>>((q^-1)&7)&1)break Ga;if(!he(J[a+76>>2],o>>>A&1|(l>>>15&6|(b>>>11&120|m>>>7&896)),J[a+80>> +0]|o;s=r;t=w;x=x+1|0}Fa:{if((c|0)<=(q|0))break Fa;p=128;r=0;if(!g)while(1){if(qe(J[a+76>>2],o>>>A&1|(l>>>15&6|(b>>>11&120|m>>>7&896)),J[a+80>>2])){H[v|0]=K[v|0]|p;o=J[j>>2]?o:o|32768;l=l|32768}q=q+1|0;o=o<<1;l=l<<1;b=b<<1;m=m<<1;if(r>>>0>6)break Fa;r=r+1|0;p=(p&254)>>>1|0;if((c|0)>(q|0))continue;break Fa}while(1){Ga:{if(!((q|0)<0|J[h+8>>2]<=(q|0)|J[h+12>>2]<=(n|0)))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(q>>>3)|0]>>>((q^-1)&7)&1)break Ga;if(!qe(J[a+76>>2],o>>>A&1|(l>>>15&6|(b>>>11&120|m>>>7&896)),J[a+80>> 2]))break Ga;H[v|0]=K[v|0]|p;o=J[j>>2]?o:o|32768;l=l|32768}q=q+1|0;o=o<<1;l=l<<1;b=b<<1;m=m<<1;if(r>>>0>6)break Fa;r=r+1|0;p=(p&254)>>>1|0;if((c|0)>(q|0))continue;break}}v=v+1|0;if((c|0)>(u|0))continue;break}break S}u=0;q=J[j>>2];Ha:{if((q|0)>0){x=0;o=0;break Ha}x=0;q=n+q|0;o=0;if((q|0)<0)break Ha;w=A+P(q,w)|0;x=w+1|0;o=K[w|0]<<8}if((c|0)<=0)break S;A=15-r|0;q=0;while(1){u=u+8|0;Ia:{if((u|0)>=(c|0))break Ia;r=0;if(k){m=K[k|0]|m;k=k+1|0}else k=0;if(s){r=s+1|0;b=K[s|0]|b}w=t+1|0;l=K[t|0]|l;if(!x){x= -0;s=r;t=w;break Ia}o=K[x|0]|o;s=r;t=w;x=x+1|0}Ja:{if((c|0)<=(q|0))break Ja;p=128;r=0;if(!g)while(1){if(he(J[a+76>>2],o>>>A&1|(l>>>15&14|(b>>>9&496|m>>>4&7680)),J[a+80>>2])){H[v|0]=K[v|0]|p;o=J[j>>2]?o:o|32768;l=l|32768}q=q+1|0;o=o<<1;l=l<<1;b=b<<1;m=m<<1;if(r>>>0>6)break Ja;r=r+1|0;p=(p&254)>>>1|0;if((c|0)>(q|0))continue;break Ja}while(1){Ka:{if(!((q|0)<0|J[h+8>>2]<=(q|0)|J[h+12>>2]<=(n|0)))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(q>>>3)|0]>>>((q^-1)&7)&1)break Ka;if(!he(J[a+76>>2],o>>>A&1|(l>>>15&14|(b>>> -9&496|m>>>4&7680)),J[a+80>>2]))break Ka;H[v|0]=K[v|0]|p;o=J[j>>2]?o:o|32768;l=l|32768}q=q+1|0;o=o<<1;l=l<<1;b=b<<1;m=m<<1;if(r>>>0>6)break Ja;r=r+1|0;p=(p&254)>>>1|0;if((c|0)>(q|0))continue;break}}v=v+1|0;if((c|0)>(u|0))continue;break}}n=n+1|0;if((n|0)!=(d|0))continue;break}}bc=C+160|0;return z}function tXa(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;g=bc-192|0;bc=g;a:{if(H[e+11|0]<0){J[e+4>>2]=0;h=J[e>>2];break a}H[e+11|0]=0;h=e}J[h>>2]=0; -b:{if(H[f+11|0]<0){J[f+4>>2]=0;h=J[f>>2];break b}H[f+11|0]=0;h=f}J[h>>2]=0;J[g+188>>2]=0;i=J[d+12>>2];h=J[d+8>>2];J[g+8>>2]=h;J[g+12>>2]=i;J[g+176>>2]=h;J[g+180>>2]=i;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{i=g+8|0;k=bc-32|0;bc=k;j=rc(4);J[695492]=0;m=aa(3196,j|0,c+12|0)|0;h=J[695492];J[695492]=0;r:{s:{t:{u:{v:{if((h|0)!=1){w:{j=J[c+4>>2];x:{if(!j)break x;l=c+4|0;h=l;while(1){n=op(j+16|0,i);h=n?h:j;j=J[(n?j+4|0:j)>>2];if(j)continue;break}if((h|0)==(l|0))break x;if(!op(i,h+16|0))break w}J[g+188>> -2]=0;break v}j=J[h+24>>2];J[g+188>>2]=j;if(!j)break v;h=1;if(K[j+48|0])break u;while(1){l=bc-32|0;bc=l;J[l+16>>2]=0;J[l+20>>2]=0;J[l+24>>2]=1E7;n=bc-16|0;bc=n;i=28;y:{if((l|0)==-16)break y;o=J[l+24>>2];if(o>>>0>999999999)break y;j=J[l+16>>2];p=J[l+20>>2];if((p|0)<0)break y;q=(+(j>>>0)+ +(p|0)*4294967296)*1E3+ +(o|0)/1E6;r=+Xa();while(1){if(+Xa()-r>>0>=4294963201)J[694731]=0-i;bc=l+32|0;if(!K[J[g+188>>2]+48|0])continue;break}break u}h=Z()|0;qc(j);break s}h= -J[i>>2];j=J[i+4>>2];H[k+23|0]=0;i=k;J[i+24>>2]=h;J[i+28>>2]=j;J[i+12>>2]=0;J[695492]=0;J[i>>2]=h;J[i+4>>2]=j;j=va(3197,c|0,i|0,i+12|0,0,0,0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break t;J[g+188>>2]=j;h=0;if(H[i+23|0]<0){qc(J[i+12>>2]);j=J[g+188>>2]}H[j+48|0]=0}qc(C2(m));bc=k+32|0;break r}h=Z()|0;if(H[k+23|0]>=0)break s;qc(J[k+12>>2]);ba(h|0);B()}ba(h|0);B()}z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{if(!h){i=J[d+20>>2];if((i|0)==4){H[J[g+188>>2]+48|0]=1;break p}J[g+160>>2]=0;H[g+171|0]=0;h=J[d+16>>2];J[695492]= -0;k=g+148|0;da(3206,k|0,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break J;K:{h=K[g+159|0];if(h<<24>>24<0?J[g+152>>2]:h)break K;J[695492]=0;ga(2226,k|0,806016,9)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break K;c=Z()|0;break d}H[g+133|0]=0;H[g+134|0]=0;H[g+135|0]=0;H[g+136|0]=0;H[g+137|0]=0;H[g+138|0]=0;H[g+139|0]=0;H[g+140|0]=0;J[g+128>>2]=0;J[g+132>>2]=0;k=J[d+36>>2];h=J[d+32>>2];if((h|0)>=0){J[g+120>>2]=0;J[g+112>>2]=0;J[g+116>>2]=0;c=J[d+20>>2]-1|0;if(!(c>>>0>=11|!(2039>>>c&1))){J[695492]=0;c=c<<2; -ga(2226,g+112|0,J[c+827052>>2],J[c+827096>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break f}J[695492]=0;c=J[689330];j=J[695492];J[695492]=0;if((j|0)==1)break f;if(c){J[695492]=0;c=J[689330];j=J[695492];J[695492]=0;if((j|0)==1)break f;j=J[J[c>>2]+28>>2];J[695492]=0;da(j|0,g+16|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;if(H[g+171|0]<0)qc(J[g+160>>2]);J[g+168>>2]=J[g+24>>2];c=J[g+20>>2];J[g+160>>2]=J[g+16>>2];J[g+164>>2]=c}J[g+28>>2]=k;J[g+24>>2]=h;J[g+16>>2]=9;J[695492]=0;J[g+96>>2]=13;c= -g+16|0;h=a;a=g+96|0;ha(3207,c|0,h|0,a|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break f;J[695492]=0;_(3205,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;if(J[g+96>>2]!=8){c=0;J[695492]=0;_(3205,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;H[J[g+188>>2]+48|0]=1;break B}a=J[g+104>>2];c=J[J[a>>2]+20>>2];J[695492]=0;_(c|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;a=$(27,65535)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;h=J[g+104>>2];k=J[J[h>>2]+28>>2];c=0;J[695492]=0;j=$(k| -0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break f;L:{if((j|0)!=-1){h=65535;while(1){if((c|0)>=(h|0)){J[695492]=0;k=h<<1;l=$(27,k|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break L;h=tc(l,a,h);qc(a);a=h;h=k}H[a+c|0]=j;k=J[g+104>>2];j=J[J[k>>2]+28>>2];J[695492]=0;j=$(j|0,k|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break L;c=c+1|0;if((j|0)!=-1)continue;break}}J[g+136>>2]=0;J[g+132>>2]=c;J[g+128>>2]=a;J[695492]=0;a=J[689330];c=J[695492];J[695492]=0;if((c|0)==1)break f;c=J[J[a>>2]+16>>2];J[695492]=0;h= -a;a=g+160|0;ma(c|0,h|0,a|0,J[g+128>>2],J[g+132>>2],1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;c=J[g+104>>2];h=J[J[c>>2]+24>>2];J[695492]=0;_(h|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;_(3205,g+96|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;M:{if((a|0)==(e|0))break M;c=K[g+171|0];a=c<<24>>24;if(H[e+11|0]>=0){if((a|0)>=0){a=J[g+164>>2];J[e>>2]=J[g+160>>2];J[e+4>>2]=a;J[e+8>>2]=J[g+168>>2];break M}J[695492]=0;ga(1630,e|0,J[g+160>>2],J[g+164>>2])|0;a=J[695492];J[695492]= -0;if((a|0)!=1)break M;break f}J[695492]=0;a=(a|0)<0;ga(1629,e|0,(a?J[g+160>>2]:g+160|0)|0,(a?J[g+164>>2]:c)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f}J[g+92>>2]=0;J[g+56>>2]=0;J[g+60>>2]=1076101120;J[g+80>>2]=0;J[g+84>>2]=1079115776;J[g+72>>2]=0;J[g+76>>2]=1079115776;a=J[J[b>>2]+148>>2];J[695492]=0;a=ja(a|0,b|0,e|0,g+92|0,g+56|0,g+80|0,g+72|0)|0;c=J[695492];J[695492]=0;N:{if((c|0)!=1){if(a)break N;H[J[g+188>>2]+48|0]=1;c=0;break B}break f}a=J[J[b>>2]+160>>2];J[695492]=0;h=g+56|0;da(a|0,h|0, -b|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;c=K[g+67|0];j=c<<24>>24;O:{P:{Q:{R:{a=J[g+60>>2];k=(j|0)<0;if(((k?a:c)|0)==8){if(!gd(k?J[g+56>>2]:h,826696,8))break R;c=K[g+67|0];j=c;a=J[g+60>>2]}h=a;a=j<<24>>24<0;if(((a?h:c)|0)!=6)break Q;if(gd(a?J[g+56>>2]:g+56|0,809536,6))break Q;a=i-3>>>0<4294967294?1:i;break C}a=i-3|0;if(a>>>0<9)break P;break D}c=g+56|0;a=(i|0)!=11?i-10>>>0<4294967293?7:i:i;if(xj(809908,c))break C;a=i;if(!xj(810268,c))break C;a=a-2|0;if(a>>>0<10)break O;break E}if(!(461>>>a& -1))break D;a=J[(a<<2)+827140>>2];break C}if(!(979>>>a&1))break E;a=J[(a<<2)+827176>>2];break C}break f}k=H[g+159|0];J[g+16>>2]=g+128;h=g+20|0;S:{T:{U:{V:{if((k|0)>=0){k=J[g+152>>2];J[h>>2]=J[g+148>>2];J[h+4>>2]=k;J[h+8>>2]=J[g+156>>2];break V}J[695492]=0;ca(15,h|0,J[g+148>>2],J[g+152>>2]);k=J[695492];J[695492]=0;if((k|0)==1)break U}J[g+96>>2]=0;J[695492]=0;J[g+112>>2]=0;k=ga(3208,h|0,g+96|0,g+112|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break T;W:{if(!k)break W;j=J[g+96>>2];if(!j)break W;l=J[g+112>> -2];h=J[g+16>>2];H[h+12|0]=1;J[h+8>>2]=0;J[h+4>>2]=l;J[h>>2]=j}if(H[g+31|0]<0)qc(J[g+20>>2]);if(!k)break S;X:{if((g+148|0)==(e|0))break X;c=K[g+159|0];a=c<<24>>24;if(H[e+11|0]>=0){if((a|0)>=0){a=J[g+152>>2];J[e>>2]=J[g+148>>2];J[e+4>>2]=a;J[e+8>>2]=J[g+156>>2];break X}J[695492]=0;ga(1630,e|0,J[g+148>>2],J[g+152>>2])|0;a=J[695492];J[695492]=0;if((a|0)!=1)break X;break F}J[695492]=0;a=(a|0)<0;ga(1629,e|0,(a?J[g+148>>2]:g+148|0)|0,(a?J[g+152>>2]:c)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break F}j=0; -J[695492]=0;a=J[689330];c=J[695492];J[695492]=0;if((c|0)==1)break F;c=J[J[a>>2]+16>>2];J[695492]=0;ma(c|0,a|0,e|0,J[g+128>>2],J[g+132>>2],1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break F;break A}c=Z()|0;break e}c=Z()|0;if(H[g+31|0]>=0)break e;qc(J[g+20>>2]);break e}J[695492]=0;h=ga(3209,d|0,a|0,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break F;if(h){J[695492]=0;h=ga(3209,d|0,a|0,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break I;h=J[h+16>>2];J[695492]=0;da(3206,g+16|0,h|0);h=J[695492];J[695492]=0;if((h| -0)==1)break I;if(H[e+11|0]<0)qc(J[e>>2]);J[e+8>>2]=J[g+24>>2];h=J[g+20>>2];J[e>>2]=J[g+16>>2];J[e+4>>2]=h;j=0;h=H[e+11|0];if((h|0)<0?J[e+4>>2]:h&255)break A}J[695492]=0;a=ha(3210,a|0,b|0,d|0,g+148|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break G;if(!a)break H;h=a+12|0;if(!eB(793364,h))break H;J[695492]=0;aa(2815,e|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break G;h=J[J[d>>2]+8>>2];J[695492]=0;h=$(h|0,d|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break G;J[695492]=0;aa(2815,e|0,a|0)|0;i=J[695492]; -J[695492]=0;if((i|0)==1)break G;Y:{i=K[e+11|0];if(!(i<<24>>24<0?J[e+4>>2]:i))break Y;i=J[a+44>>2];a=J[a+40>>2];J[695492]=0;ia(3211,g+16|0,e|0,a|0,i|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[e+11|0]<0)qc(J[e>>2]);a=J[g+20>>2];J[e>>2]=J[g+16>>2];J[e+4>>2]=a;J[e+8>>2]=J[g+24>>2];a=K[e+11|0];if(a<<24>>24<0?J[e+4>>2]:a)break Y;a=J[d+8>>2];b=J[d+12>>2];J[695492]=0;J[g+48>>2]=a;J[g+52>>2]=b;J[g>>2]=a;J[g+4>>2]=b;gJ(c,g);a=J[695492];J[695492]=0;if((a|0)==1)break G;break z}c=Z()|0;break e}J[695492]=0;da(3213, -g+128|0,e|0);a=J[695492];J[695492]=0;j=1;if((a|0)==1)break G;i=h?10:5;break A}a=J[g+188>>2];if(!a)break p;b=a+8|0;Z:{if((b|0)==(e|0))break Z;d=K[a+19|0];c=d<<24>>24;if(H[e+11|0]>=0){if((c|0)>=0){c=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=c;J[e+8>>2]=J[b+8>>2];break Z}yf(e,J[a+8>>2],J[a+12>>2]);break Z}h=b;b=(c|0)<0;Df(e,b?J[a+8>>2]:h,b?J[a+12>>2]:d)}b=a+20|0;if((b|0)==(f|0))break p;d=K[a+31|0];c=d<<24>>24;if(H[f+11|0]>=0){if((c|0)>=0){a=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=a;J[f+8>>2]=J[b+8>>2];break p}yf(f, -J[a+20>>2],J[a+24>>2]);break p}e=b;b=(c|0)<0;Df(f,b?J[a+20>>2]:e,b?J[a+24>>2]:d);break p}c=Z()|0;break c}c=Z()|0;break e}H[J[g+188>>2]+48|0]=1;break z}c=Z()|0;break e}c=Z()|0;break e}a=2;if((i&-5)==1)break C;a=(i|0)==7?8:i;break C}a=3;if(i-1>>>0<2)break C;a=i-7>>>0<2?9:i}i=a;if(H[g+67|0]<0)qc(J[g+56>>2]);c=1}if(H[g+123|0]<0)qc(J[g+112>>2]);j=0;if(!c)break z}h=0;J[695492]=0;J[g+56>>2]=0;a=aa(3214,3215,g+128|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;J[g+136>>2]=0;_:{$:{aa:{ba:switch(i-1|0){case 0:case 1:case 2:if((a| -0)==4){J[695492]=0;a=ha(3216,J[g+128>>2],J[g+132>>2],0,0)|0;b=J[695492];J[695492]=0;ca:{if((b|0)==1)break ca;if(!a)break aa;J[695492]=0;h=aa(3217,d|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ca;J[g+56>>2]=256;gc[J[J[a>>2]+4>>2]](a);break _}c=Z()|0;break e}a=K[e+11|0];if(!(a<<24>>24<0?J[e+4>>2]:a))break _;c=ik(d,2205604,2205628);if(!c|!b)break _;J[g+80>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;J[g+96>>2]=0;J[g+100>>2]=1079115776;J[g+112>>2]=0;J[g+116>>2]=1079115776;a=J[J[b>>2]+148>>2];J[695492]= -0;ja(a|0,b|0,e|0,g+80|0,g+16|0,g+96|0,g+112|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break o;a=zc(1024);if(!a)break _;i=c+164|0;J[g+56>>2]=256;c=0;da:{ea:{while(1){h=c<<2;k=h+a|0;J[k>>2]=0;h=J[h+i>>2];if(h){j=Qc(h);J[695492]=0;l=g+16|0;ia(3204,l|0,h|0,j|0,1);h=J[695492];J[695492]=0;if((h|0)==1)break ea;h=J[J[b>>2]+168>>2];J[695492]=0;h=aa(h|0,b|0,l|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break da;if(H[g+27|0]<0)qc(J[g+16>>2]);J[k>>2]=h&65535}c=c+1|0;if((c|0)!=256)continue;break}h=a;break _}c=Z()| -0;break e}c=Z()|0;if(H[g+27|0]>=0)break e;qc(J[g+16>>2]);break e;case 4:case 5:if((a|0)==1){c=ik(d,2205604,2205628);if(!eB(793364,e)|!c|(!J[c+1448>>2]|!b))break _;J[g+80>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;J[g+96>>2]=0;J[g+100>>2]=1079115776;J[g+112>>2]=0;J[g+116>>2]=1079115776;a=J[J[b>>2]+148>>2];J[695492]=0;ja(a|0,b|0,e|0,g+80|0,g+16|0,g+96|0,g+112|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break n;a=zc(1024);if(!a)break _;i=c+164|0;J[g+56>>2]=256;c=0;fa:{ga:{while(1){h=c<<2;k=h+a|0;J[k>>2]= -0;h=J[h+i>>2];if(h){j=Qc(h);J[695492]=0;l=g+16|0;ia(3204,l|0,h|0,j|0,1);h=J[695492];J[695492]=0;if((h|0)==1)break ga;h=J[J[b>>2]+168>>2];J[695492]=0;h=aa(h|0,b|0,l|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break fa;if(H[g+27|0]<0)qc(J[g+16>>2]);J[k>>2]=h&65535}c=c+1|0;if((c|0)!=256)continue;break}h=a;break _}c=Z()|0;break e}c=Z()|0;if(H[g+27|0]>=0)break e;qc(J[g+16>>2]);break e}J[695492]=0;a=ha(3216,J[g+128>>2],J[g+132>>2],0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;if(a){J[695492]=0;h=aa(3217, -d|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break q;J[g+56>>2]=256;gc[J[J[a>>2]+4>>2]](a);break _}J[g+56>>2]=0;J[g+80>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1076101120;J[g+96>>2]=0;J[g+100>>2]=1079115776;J[g+112>>2]=0;J[g+116>>2]=1079115776;a=J[J[b>>2]+148>>2];J[695492]=0;a=ja(a|0,b|0,e|0,g+80|0,g+16|0,g+96|0,g+112|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break m;if(!a)break _;J[g+56>>2]=256;h=zc(1024);c=0;while(1){ha:{J[g+16>>2]=c;a=J[J[b>>2]+172>>2];J[695492]=0;a=aa(a|0,b|0,g+16|0)|0;i=J[695492];J[695492]= -0;if((i|0)==1)break ha;J[(c<<2)+h>>2]=a;c=c+1|0;if((c|0)>2])continue;break _}break}c=Z()|0;break e;case 9:case 10:break $;case 6:case 7:break aa;case 8:break ba;default:break _}a=ik(d,2205604,2205656);if(!(!a|j|!J[a+216>>2])){a=J[a+220>>2];J[g+56>>2]=a;if(!a)break _;if(a>>>0>1073741822)break aa;a=a<<2;h=zc(a);if(!h)break aa;tc(h,J[d+216>>2],a);break _}J[695492]=0;a=ha(3216,J[g+128>>2],J[g+132>>2],0,0)|0;b=J[695492];J[695492]=0;ia:{ja:{if((b|0)!=1){if(!a)break aa;if(!J[a+64>>2])break ja;J[695492]= -0;h=aa(3218,a|0,g+56|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break ia}c=Z()|0;break e}J[g+56>>2]=0}gc[J[J[a>>2]+4>>2]](a);break _}h=0;J[g+56>>2]=0;break _}J[g+56>>2]=0;a=K[e+11|0];if(!(!(a<<24>>24<0?J[e+4>>2]:a)|j^1)){J[695492]=0;a=J[d+168>>2];if(a){J[a+24>>2]=J[a+24>>2]+1;b=J[d+168>>2]}else b=0;a=J[695492];J[695492]=0;ka:{la:{if((a|0)==1)break la;if(!b)break _;J[695492]=0;k=ha(3216,J[g+128>>2],J[g+132>>2],0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break la;ma:{if(!k)break ma;J[g+104>>2]=0;J[g+96>> -2]=0;J[g+100>>2]=0;c=0;j=0;i=0;a=0;na:{while(1){J[695492]=0;h=J[k+32>>2];l=J[695492];J[695492]=0;if((l|0)==1)break ka;oa:{if((a|0)>=(h|0)){if((i|0)!=(j|0))break oa;h=0;break na}J[695492]=0;h=J[J[k+28>>2]+P(a,20)>>2];l=J[695492];J[695492]=0;if((l|0)==1)break ka;pa:{qa:{if((h|0)==3){J[695492]=0;h=J[(J[k+28>>2]+P(a,20)|0)+4>>2];l=J[695492];J[695492]=0;if((l|0)==1)break ka;if((h|0)==1)break qa}J[695492]=0;h=J[J[k+28>>2]+P(a,20)>>2];l=J[695492];J[695492]=0;if((l|0)==1)break ka;if(h)break pa}if((c|0)!= -(i|0)){J[i>>2]=a;i=i+4|0;J[g+100>>2]=i;a=a+1|0;continue}l=J[g+96>>2];h=c-l|0;j=h>>2;i=j+1|0;if(i>>>0>=1073741824){J[695492]=0;_(1589,g+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;break g}m=h>>1;m=h>>>0>=2147483644?1073741823:i>>>0>>0?m:i;ra:{if(!m){h=0;break ra}if(m>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break g;break h}J[695492]=0;h=$(4,m<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break ka}j=(j<<2)+h|0;J[j>>2]=a;i=j+4|0;if((c|0)!=(l|0))while(1){j=j-4|0;c= -c-4|0;J[j>>2]=J[c>>2];if((c|0)!=(l|0))continue;break}c=(m<<2)+h|0;J[g+104>>2]=c;J[g+100>>2]=i;J[g+96>>2]=j;if(l)qc(l)}a=a+1|0;continue}break}a=J[b+8>>2];J[g+56>>2]=a;sa:{if(a-1>>>0<=1073741821){h=zc(a<<2);break sa}h=0;if((a|0)<=0)break na}a=i-j|0;l=a>>2;m=a>>>0>4;i=0;while(1){J[695492]=0;a=al(b,i,g+16|0,8);c=J[695492];J[695492]=0;if((c|0)==1)break h;ta:{if((a|0)>0){a=J[j>>2];J[695492]=0;c=$n(k,a,J[g+16>>2]);a=J[695492];J[695492]=0;if((a|0)==1)break h;n=(i<<2)+h|0;J[n>>2]=c;a=1;if(!m)break ta;while(1){if(c)break ta; -c=J[(a<<2)+j>>2];J[695492]=0;c=$n(k,c,J[g+16>>2]);o=J[695492];J[695492]=0;if((o|0)!=1){J[n>>2]=c;a=a+1|0;if(l>>>0>a>>>0)continue;break ta}break}break h}J[(i<<2)+h>>2]=0}i=i+1|0;if((i|0)>2])continue;break}}gc[J[J[k>>2]+4>>2]](k);if(!j)break ma;J[g+100>>2]=j;qc(j)}J[695492]=0;_(3225,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break _}c=Z()|0;break e}break h}b=J[d+216>>2];if(!b)break _;a=J[d+220>>2];J[g+56>>2]=a;if(a-1>>>0>1073741821)break _;a=a<<2;c=zc(a);if(!c)break _;h=tc(c,b,a)}a=J[J[d>>2]+ -8>>2];J[695492]=0;a=$(a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;ua:{if(a){c=0;J[695492]=0;a=J[d+168>>2];if(a){J[a+24>>2]=J[a+24>>2]+1;b=J[d+168>>2]}else b=0;a=J[695492];J[695492]=0;if((a|0)!=1){if(!b){j=0;break ua}j=J[b+8>>2];a=0;va:{if(j-1>>>0>1073741821)break va;d=zc(j<<2);a=0;if(!d)break va;while(1){J[695492]=0;a=al(b,c,g+16|0,2);i=J[695492];J[695492]=0;if((i|0)==1)break l;J[d+(c<<2)>>2]=a?L[g+16>>1]:0;c=c+1|0;if((j|0)!=(c|0))continue;break}a=d}c=a;J[695492]=0;_(3225,b|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break ua}c=Z()|0;break e}c=0;J[695492]=0;a=J[d+1444>>2];J[a+24>>2]=J[a+24>>2]+1;d=J[d+1444>>2];a=J[695492];J[695492]=0;if((a|0)==1)break k;if(!d){j=0;break ua}j=J[d+8>>2];a=0;wa:{if(j-1>>>0>1073741821)break wa;b=zc(j<<2);a=0;if(!b)break wa;while(1){J[695492]=0;J[g+16>>2]=0;a=al(d,c,g+16|0,1);i=J[695492];J[695492]=0;if((i|0)==1)break j;J[b+(c<<2)>>2]=a?L[g+16>>1]:c;c=c+1|0;if((j|0)!=(c|0))continue;break}a=b}c=a;J[695492]=0;_(3225,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break k}xa:{if((g+ -148|0)==(f|0))break xa;b=K[f+11|0];a=b<<24>>24;if((a|0)<0?J[f+4>>2]:b)break xa;d=K[g+159|0];b=d<<24>>24;if((a|0)>=0){if((b|0)>=0){a=J[g+152>>2];J[f>>2]=J[g+148>>2];J[f+4>>2]=a;J[f+8>>2]=J[g+156>>2];break xa}J[695492]=0;ga(1630,f|0,J[g+148>>2],J[g+152>>2])|0;a=J[695492];J[695492]=0;if((a|0)!=1)break xa;break i}J[695492]=0;a=(b|0)<0;ga(1629,f|0,(a?J[g+148>>2]:g+148|0)|0,(a?J[g+152>>2]:d)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i}ya:{a=K[f+11|0];if((a<<24>>24<0?J[f+4>>2]:a)>>>0<8)break ya;J[695492]= -0;a=aa(3191,f|0,6)|0;b=J[695492];J[695492]=0;za:{if((b|0)!=1){if(J[a>>2]!=43)break ya;J[695492]=0;a=aa(3191,f|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;if(J[a>>2]-65>>>0>=26)break ya;J[695492]=0;a=aa(3191,f|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;if(J[a>>2]-65>>>0>25)break ya;J[695492]=0;a=aa(3191,f|0,2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;if(J[a>>2]-65>>>0>25)break ya;J[695492]=0;a=aa(3191,f|0,3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;if(J[a>>2]-65>>>0>25)break ya; -J[695492]=0;a=aa(3191,f|0,4)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;if(J[a>>2]-65>>>0>25)break ya;J[695492]=0;a=aa(3191,f|0,5)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;if(J[a>>2]-65>>>0>25)break ya;J[695492]=0;ca(2805,f|0,0,7);a=J[695492];J[695492]=0;if((a|0)!=1)break ya}c=Z()|0;break e}c=Z()|0;break e}a=J[g+188>>2];b=a+8|0;Aa:{if((b|0)==(e|0))break Aa;i=K[e+11|0];d=i<<24>>24;if(H[a+19|0]>=0){if((d|0)>=0){d=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=d;J[b+8>>2]=J[e+8>>2];break Aa}d=J[e+4>> -2];e=J[e>>2];J[695492]=0;ga(1630,b|0,e|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;break Aa}k=J[e>>2];l=J[e+4>>2];J[695492]=0;m=b;b=(d|0)<0;ga(1629,m|0,(b?k:e)|0,(b?l:i)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i}b=a+20|0;Ba:{if((b|0)==(f|0))break Ba;e=K[f+11|0];d=e<<24>>24;if(H[a+31|0]>=0){if((d|0)>=0){d=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=d;J[b+8>>2]=J[f+8>>2];break Ba}d=J[f+4>>2];e=J[f>>2];J[695492]=0;ga(1630,b|0,e|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;break Ba}i= -J[f>>2];k=J[f+4>>2];J[695492]=0;l=b;b=(d|0)<0;ga(1629,l|0,(b?i:f)|0,(b?k:e)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i}J[a+36>>2]=c;J[a+32>>2]=h;b=J[g+56>>2];H[a+48|0]=1;J[a+44>>2]=j;J[a+40>>2]=b}a=J[g+128>>2];if(!(K[g+140|0]|!a))qc(a);if(H[g+159|0]<0)qc(J[g+148>>2]);if(H[g+171|0]>=0)break p;qc(J[g+160>>2]);break p}c=Z()|0;break e}bc=g+192|0;return}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;a=J[g+96>>2];if(!a)break e; -J[g+100>>2]=a;qc(a);break e}B()}c=Z()|0;if(H[g+123|0]>=0)break e;qc(J[g+112>>2])}a=J[g+128>>2];if(K[g+140|0]|!a)break d;qc(a)}if(H[g+159|0]>=0)break c;qc(J[g+148>>2])}if(H[g+171|0]<0)qc(J[g+160>>2]);ba(c|0);B()}function B8a(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=Q(0),t=0,u=0,v=0,w=0,x=0,y=0,z=0;m=bc-48|0;bc=m;a:{b:{c:{d:{if(!b)break d;e:switch(J[b+4>>2]){case 0:J[m+8>>2]=-16777216;J[m+8>>2]=J[b+8>>2];b=J[m+8>>2];c=J[a+2936>>2];if((c|0)!=3){J[m+16>>2]= -c;J[m+12>>2]=a+1612;J[m+20>>2]=m+12;c=J[a+1620>>2];J[m+36>>2]=J[a+1624>>2]-1;J[m+32>>2]=c-1;J[m+24>>2]=0;J[m+28>>2]=0;J[m+44>>2]=b;J[m+40>>2]=m+20;h=m+40|0;c=bc-128|0;bc=c;f:{g:{h:{b=a+96|0;i:{if(!K[b+1468|0]){b=a+1668|0;a=a+1700|0;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);j:{if(!J[a+12>>2])break j;J[a+1176>>2]=J[a+84>>2];l=J[b+20>>2];d=J[a+80>>2];f=(J[a+88>>2]-d|0)+2|0;k:{if(f>>>0<=M[b+24>>2])break k;if(l)qc(l);J[b+24>>2]=f;l=rc(f>>>0>536870911? --1:f<<3);J[b+20>>2]=l;if((f|0)==J[b+16>>2])break k;g=J[b+12>>2];if(g){qc(g);l=J[b+20>>2]}J[b+16>>2]=f;y=b,z=rc(f),J[y+12>>2]=z}J[b+28>>2]=l;J[b>>2]=d;J[b+4>>2]=2147483632;if(!lg(a,b))break j;g=h+4|0;while(1){f=J[h>>2];l=J[b+20>>2];p=J[b+28>>2]-l>>3;e=J[b+8>>2];while(1){d=I[l+8>>1];k=I[l+10>>1];l:{if((k|0)>0){x3(f,d,e,k,g,J[l+12>>2]);break l}if((e|0)>2]|(e|0)>J[f+16>>2])break l;k=d+(k^-1)|0;q=(d|0)<(k|0)?d:k;r=J[f+12>>2];if((q|0)>(r|0))break l;d=(d|0)>(k|0)?d:k;k=J[f+4>>2];if((d|0)<(k|0))break l; -v=J[f>>2];t=J[v>>2];u=J[t+4>>2];x=K[J[l+12>>2]];d=(d|0)<(r|0)?d:r;r=(k|0)<(q|0)?q:k;q=(d-r|0)+1|0;d=J[t+16>>2];m:{n:{if((d|0)>=0){d=P(d,e);break n}d=P(d,e);k=0;if((u-J[t>>2]|0)<(0-d|0))break m}k=d+u|0}d=k+(r<<2)|0;while(1){k=K[g+3|0];gc[J[(J[v+4>>2]<<2)+2637648>>2]](d,P(k,K[g|0])+255>>>8|0,P(k,K[g+1|0])+255>>>8|0,P(k,K[g+2|0])+255>>>8|0,k,x);d=d+4|0;q=q-1|0;if(q)continue;break}}l=l+8|0;p=p-1|0;if(p)continue;break}if(lg(a,b))continue;break}}break i}if(!K[b+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+ -120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2302,a+1700|0,b|0,c- -64|0,c+32|0,c+96|0,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a= -J[c+104>>2];if(!a)break i;qc(a);break i}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;b=J[a+1560>>2];J[695492]=0;oa(2303,a+1700|0,(((b|0)==1?1216: -1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break i;qc(a)}bc=c+128|0;break f}a=Z()|0;break b}a=Z()|0;ee(c);break b}break d}J[m+24>>2]=b;J[m+20>>2]=a+1636;d=m+20|0;c=bc-128|0;bc=c;o:{p:{q:{b=a+96|0;r:{if(!K[b+1468|0]){b=a+1668|0;a=a+1700|0;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+ -1172>>2]=3}Pd(a);s:{if(!J[a+12>>2])break s;J[a+1176>>2]=J[a+84>>2];l=J[b+20>>2];g=J[a+80>>2];f=(J[a+88>>2]-g|0)+2|0;t:{if(f>>>0<=M[b+24>>2])break t;if(l)qc(l);J[b+24>>2]=f;l=rc(f>>>0>536870911?-1:f<<3);J[b+20>>2]=l;if((f|0)==J[b+16>>2])break t;e=J[b+12>>2];if(e){qc(e);l=J[b+20>>2]}J[b+16>>2]=f;y=b,z=rc(f),J[y+12>>2]=z}J[b+28>>2]=l;J[b>>2]=g;J[b+4>>2]=2147483632;if(!lg(a,b))break s;f=d+4|0;while(1){u3(b,J[d>>2],f);if(lg(a,b))continue;break}}break r}if(!K[b+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+ -120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2304,a+1700|0,b|0,c- -64|0,c+32|0,c+96|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break q;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a= -J[c+104>>2];if(!a)break r;qc(a);break r}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;b=J[a+1560>>2];J[695492]=0;oa(2305,a+1700|0,(((b|0)==1?1216: -1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break p;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break r;qc(a)}bc=c+128|0;break o}a=Z()|0;break b}a=Z()|0;ee(c);break b}break d;case 1:c=bc-224|0;bc=c;d=b+8|0;e=J[b+24>>2];r=e>>>16|0;l=J[b+20>>2];t=l>>>16|0;f=rc(256);u:{while(1){h=P(g,12);q=K[h+2756683|0];k=q<<24>>24<0;u=K[b+19|0];p=u<<24>>24<0;v:{q=k?J[h+2756676>>2]:q; -if((q|0)!=((p?J[b+12>>2]:u)|0))break v;if(q){h=h+2756672|0;if(gd(k?J[h>>2]:h,p?J[d>>2]:d,q))break v}d=g<<6;break u}g=g+1|0;if((g|0)!=54)continue;break}d=0}l=t&255|(l<<16&16711680|l&-16711936);e=r&255|(e<<16&16711680|e&-16711936);g=0;b=f;while(1){h=K[(d+g|0)+344176|0]==1?e:l;H[b|0]=h;H[b+1|0]=h>>>8;H[b+2|0]=h>>>16;H[b+3|0]=h>>>24;h=K[(d+(g|3)|0)+344176|0]==1?e:l;H[b+12|0]=h;H[b+13|0]=h>>>8;H[b+14|0]=h>>>16;H[b+15|0]=h>>>24;h=K[(d+(g|2)|0)+344176|0]==1?e:l;H[b+8|0]=h;H[b+9|0]=h>>>8;H[b+10|0]=h>>>16; -H[b+11|0]=h>>>24;h=K[(d+(g|1)|0)+344176|0]==1?e:l;H[b+4|0]=h;H[b+5|0]=h>>>8;H[b+6|0]=h>>>16;H[b+7|0]=h>>>24;b=b+16|0;g=g+4|0;if((g|0)!=64)continue;break}b=J[a+52>>2];d=J[b+44>>2];J[c+216>>2]=J[b+40>>2];J[c+220>>2]=d;d=J[b+36>>2];J[c+208>>2]=J[b+32>>2];J[c+212>>2]=d;d=J[b+28>>2];J[c+200>>2]=J[b+24>>2];J[c+204>>2]=d;d=J[b+20>>2];J[c+192>>2]=J[b+16>>2];J[c+196>>2]=d;d=J[b+12>>2];J[c+184>>2]=J[b+8>>2];J[c+188>>2]=d;d=J[b+4>>2];J[c+176>>2]=J[b>>2];J[c+180>>2]=d;i=O[a+2912>>3];if(i>1){n=O[a+32>>3];j=O[a+ -24>>3]/i;O[c+176>>3]=j*O[c+176>>3];O[c+192>>3]=j*O[c+192>>3];O[c+208>>3]=j*O[c+208>>3];i=n/i;O[c+184>>3]=i*O[c+184>>3];O[c+200>>3]=i*O[c+200>>3];O[c+216>>3]=i*O[c+216>>3]}d=c+176|0;Fp(d);J[c+168>>2]=0;J[c+172>>2]=0;J[c+124>>2]=d;J[c+120>>2]=32;J[c+112>>2]=8;J[c+116>>2]=8;J[c+104>>2]=f;J[c+108>>2]=f;J[c+100>>2]=c+104;J[c+92>>2]=1073741816;J[c+96>>2]=0;J[c+84>>2]=0;J[c+88>>2]=8;J[c+76>>2]=8;J[c+80>>2]=1073741816;J[c+64>>2]=c+100;J[c+56>>2]=128;J[c+60>>2]=128;J[c+48>>2]=0;J[c+52>>2]=1071644672;J[c+40>> -2]=0;J[c+44>>2]=1071644672;g=0;J[c+32>>2]=0;J[c+28>>2]=c+124;J[c+24>>2]=c- -64;J[c+12>>2]=a+1636;J[c+20>>2]=c+24;J[c+16>>2]=c+168;w:{i=O[a+2896>>3];x:{if(!(R(i+-1)<1.1920928955078125E-7)){b=a+1832|0;while(1){e=b+(g<<2)|0;j=i*(+(g|0)/255);j=(j>1?1:j)*255+.5;y:{if(j<4294967296&j>=0){d=~~j>>>0;break y}d=0}J[e>>2]=d;d=g|1;e=b+(d<<2)|0;j=i*(+(d|0)/255);j=(j>1?1:j)*255+.5;z:{if(j<4294967296&j>=0){d=~~j>>>0;break z}d=0}J[e>>2]=d;g=g+2|0;if((g|0)!=256)continue;break}g=0;J[695492]=0;da(2306,a|0,c+12|0);b= -J[695492];J[695492]=0;if((b|0)==1)break x;a=a+1832|0;while(1){d=a+(g<<2)|0;i=+(g|0)/255*255+.5;A:{if(i<4294967296&i>=0){b=~~i>>>0;break A}b=0}J[d>>2]=b;b=g|1;d=a+(b<<2)|0;i=+(b|0)/255*255+.5;B:{if(i<4294967296&i>=0){b=~~i>>>0;break B}b=0}J[d>>2]=b;g=g+2|0;if((g|0)!=256)continue;break}break w}J[695492]=0;da(2306,a|0,c+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break w}a=Z()|0;b=J[c+168>>2];if(b)qc(b);ba(a|0);B()}qc(f);a=J[c+168>>2];if(a)qc(a);bc=c+224|0;break d;case 2:c=J[b+8>>2];f=J[c+24>>2];if(!f)break d; -d=J[c+12>>2];if(!d)break d;g=J[c+16>>2];if(!g)break d;l=J[c+20>>2];e=J[b+16>>2];c=Vw(m+20|0,b+20|0);C:{if((e|0)==4){b=K[b+72|0];J[695492]=0;ua(2299,a|0,c|0,f|0,d|0,g|0,l|0,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;break c}b=K[b+72|0];if(!K[a+2904|0]){J[695492]=0;Ca(2300,a|0,c|0,f|0,d|0,g|0,l|0,e|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break C}J[695492]=0;Ca(2301,a|0,c|0,f|0,d|0,g|0,l|0,e|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}Ed(c);break d;case 4:c=bc-2752|0;bc=c;d=nl(c+ -2748|0);D:{E:{F:{G:{H:{I:{n=O[b+304>>3];o=O[b+288>>3];J:{if(n-o>1.1920928955078125E-7){i=O[b+312>>3];j=O[b+296>>3];break J}i=O[b+312>>3];j=O[b+296>>3];if(!(i-j>1.1920928955078125E-7))break I}O[c+2736>>3]=i;O[c+2728>>3]=n;O[c+2720>>3]=j;O[c+2712>>3]=o;J[695492]=0;Bj(d,a+56|0);g=J[695492];J[695492]=0;if((g|0)!=1){J[695492]=0;nr(d);g=J[695492];J[695492]=0;if((g|0)!=1)break H}f=Z()|0;break a}g=J[a+1788>>2];e=J[a+1780>>2];if((g|0)<(e|0))break G;h=J[a+1792>>2];k=J[a+1784>>2];if((h|0)<(k|0))break G;O[c+ -2728>>3]=g|0;O[c+2712>>3]=e|0;O[c+2736>>3]=h|0;O[c+2720>>3]=k|0}J[c+56>>2]=0;J[c+60>>2]=0;g=c- -64|0;J[g>>2]=0;J[g+4>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;J[c+112>>2]=0;J[c+116>>2]=0;J[c+104>>2]=0;J[c+108>>2]=1072693248;J[c+120>>2]=0;J[c+124>>2]=0;J[c+128>>2]=0;J[c+132>>2]=0;J[c+136>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+24>>2]=0;J[c+80>>2]=0;J[c+84>>2]=1072693248;J[695492]=0;s=N[b+284>>2];g=J[695492];J[695492]=0;if((g|0)==1)break E;O[c>>3]=s;g=J[d>>2]; -J[695492]=0;B3(c+24|0,c+2712|0,c,g);g=J[695492];J[695492]=0;if((g|0)==1)break E;J[695492]=0;e=J[b+272>>2];h=J[b+268>>2];g=J[695492];J[695492]=0;if((g|0)==1)break F;g=0;K:{L:{M:{N:{e=e-h>>3;if((e|0)>0){J[695492]=0;g=e>>>0>1073741823?-1:e<<2;l=$(27,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break F;J[695492]=0;g=$(27,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break F;while(1){J[695492]=0;J[c>>2]=-16777216;h=J[b+268>>2]+(f<<3)|0;J[c>>2]=J[h>>2];k=f<<2;N[k+g>>2]=N[h+4>>2];h=J[695492];J[695492]=0;if((h| -0)==1)break N;h=k+l|0;k=J[c>>2];H[h|0]=k;H[h+1|0]=k>>>8;H[h+2|0]=k>>>16;H[h+3|0]=k>>>24;f=f+1|0;if((e|0)!=(f|0))continue;break}J[c+136>>2]=e;J[c+132>>2]=g;J[c+128>>2]=l}J[c+16>>2]=0;J[c+20>>2]=0;J[c>>2]=a+1636;J[c+8>>2]=c+24;J[c+4>>2]=c+16;i=O[a+2896>>3];if(R(i+-1)<1.1920928955078125E-7)break M;f=0;b=a+1832|0;while(1){h=b+(f<<2)|0;j=i*(+(f|0)/255);j=(j>1?1:j)*255+.5;O:{if(j<4294967296&j>=0){e=~~j>>>0;break O}e=0}J[h>>2]=e;e=f|1;h=b+(e<<2)|0;j=i*(+(e|0)/255);j=(j>1?1:j)*255+.5;P:{if(j<4294967296&j>= -0){e=~~j>>>0;break P}e=0}J[h>>2]=e;f=f+2|0;if((f|0)!=256)continue;break}f=0;J[695492]=0;da(2323,a|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break L;a=a+1832|0;while(1){e=a+(f<<2)|0;i=+(f|0)/255*255+.5;Q:{if(i<4294967296&i>=0){b=~~i>>>0;break Q}b=0}J[e>>2]=b;b=f|1;e=a+(b<<2)|0;i=+(b|0)/255*255+.5;R:{if(i<4294967296&i>=0){b=~~i>>>0;break R}b=0}J[e>>2]=b;f=f+2|0;if((f|0)!=256)continue;break}break K}f=Z()|0;break a}J[695492]=0;da(2323,a|0,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break K}f=Z()|0;a=J[c+ -16>>2];if(!a)break a;qc(a);break a}if(l)qc(l);if(g)qc(g);a=J[c+16>>2];if(!a)break G;qc(a)}Ed(d);bc=c+2752|0;break D}f=Z()|0;break a}f=Z()|0;break a}break d;case 3:c=bc-2704|0;bc=c;d=nl(c+2700|0);S:{T:{U:{j=O[b+304>>3];n=O[b+288>>3];V:{if(j-n>1.1920928955078125E-7){i=O[b+312>>3];o=O[b+296>>3];break V}i=O[b+312>>3];o=O[b+296>>3];if(!(i-o>1.1920928955078125E-7))break U}J[695492]=0;Bj(d,a+56|0);g=J[695492];J[695492]=0;if((g|0)!=1){J[695492]=0;nr(d);g=J[695492];J[695492]=0;if((g|0)!=1)break T}f=Z()|0; -break a}g=J[a+1788>>2];e=J[a+1780>>2];if((g|0)<(e|0))break S;h=J[a+1792>>2];k=J[a+1784>>2];if((h|0)<(k|0))break S;i=+(h|0);o=+(k|0);j=+(g|0);n=+(e|0)}J[c+120>>2]=0;J[c+112>>2]=0;J[c+116>>2]=0;J[c+32>>2]=0;g=J[d>>2];e=J[g+44>>2];J[c+104>>2]=J[g+40>>2];J[c+108>>2]=e;e=J[g+36>>2];J[c+96>>2]=J[g+32>>2];J[c+100>>2]=e;e=J[g+28>>2];J[c+88>>2]=J[g+24>>2];J[c+92>>2]=e;e=J[g+20>>2];J[c+80>>2]=J[g+16>>2];J[c+84>>2]=e;e=J[g+12>>2];J[c+72>>2]=J[g+8>>2];J[c+76>>2]=e;e=J[g+4>>2];g=J[g>>2];O[c+48>>3]=(o+i)*.5;J[c+ -64>>2]=g;J[c+68>>2]=e;O[c+40>>3]=(n+j)*.5;J[695492]=0;i=R(o-i);j=R(n-j);i=i>j?i:j;O[c+56>>3]=i>1.1920928955078125E-7?2/i:0;e=J[b+272>>2]-J[b+268>>2]>>3;g=J[695492];J[695492]=0;W:{X:{Y:{Z:{_:{if((g|0)==1)break _;g=0;if((e|0)>0){J[695492]=0;g=e>>>0>1073741823?-1:e<<2;l=$(27,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break _;J[695492]=0;g=$(27,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break _;while(1){J[695492]=0;J[c+12>>2]=-16777216;h=J[b+268>>2]+(f<<3)|0;J[c+12>>2]=J[h>>2];k=f<<2;N[k+g>>2]=N[h+4>> -2];h=J[695492];J[695492]=0;if((h|0)==1)break Z;h=k+l|0;k=J[c+12>>2];H[h|0]=k;H[h+1|0]=k>>>8;H[h+2|0]=k>>>16;H[h+3|0]=k>>>24;f=f+1|0;if((e|0)!=(f|0))continue;break}J[c+120>>2]=e;J[c+116>>2]=g;J[c+112>>2]=l}J[c+24>>2]=0;J[c+28>>2]=0;J[c+12>>2]=a+1636;J[c+20>>2]=c+32;J[c+16>>2]=c+24;i=O[a+2896>>3];if(R(i+-1)<1.1920928955078125E-7)break Y;f=0;b=a+1832|0;while(1){h=b+(f<<2)|0;j=i*(+(f|0)/255);j=(j>1?1:j)*255+.5;$:{if(j<4294967296&j>=0){e=~~j>>>0;break $}e=0}J[h>>2]=e;e=f|1;h=b+(e<<2)|0;j=i*(+(e|0)/255); -j=(j>1?1:j)*255+.5;aa:{if(j<4294967296&j>=0){e=~~j>>>0;break aa}e=0}J[h>>2]=e;f=f+2|0;if((f|0)!=256)continue;break}f=0;J[695492]=0;da(2324,a|0,c+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break X;a=a+1832|0;while(1){e=a+(f<<2)|0;i=+(f|0)/255*255+.5;ba:{if(i<4294967296&i>=0){b=~~i>>>0;break ba}b=0}J[e>>2]=b;b=f|1;e=a+(b<<2)|0;i=+(b|0)/255*255+.5;ca:{if(i<4294967296&i>=0){b=~~i>>>0;break ca}b=0}J[e>>2]=b;f=f+2|0;if((f|0)!=256)continue;break}break W}f=Z()|0;break a}f=Z()|0;break a}J[695492]=0;da(2324, -a|0,c+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break W}f=Z()|0;a=J[c+24>>2];if(!a)break a;qc(a);break a}if(l)qc(l);if(g)qc(g);a=J[c+24>>2];if(!a)break S;qc(a)}Ed(d);bc=c+2704|0;break d;case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 100:break e;default:break d}d=bc-2992|0;bc=d;g=nl(d+2988|0);da:{ea:{fa:{ga:{ha:{ia:{ja:{ka:{la:{j=O[b+304>>3];o=O[b+288>>3];ma:{if(j-o>1.1920928955078125E-7){n=O[b+312>>3];i=O[b+296>>3];break ma}n=O[b+312>>3];i=O[b+296>>3];if(!(n-i>1.1920928955078125E-7))break la}J[695492]= -0;Bj(g,a+56|0);c=J[695492];J[695492]=0;if((c|0)==1)break fa;J[695492]=0;nr(g);c=J[695492];J[695492]=0;if((c|0)!=1)break ka;break fa}c=J[a+1788>>2];f=J[a+1780>>2];if((c|0)<(f|0))break ja;e=J[a+1792>>2];k=J[a+1784>>2];if((e|0)<(k|0))break ja;n=+(e|0);i=+(k|0);j=+(c|0);o=+(f|0)}J[695492]=0;c=J[b+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break fa;J[695492]=0;f=b+8|0;ca(2325,a|0,c|0,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break fa;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;c=d- -64| -0;J[c>>2]=0;J[c+4>>2]=1065353216;J[d+80>>2]=0;J[d+84>>2]=0;J[d+124>>2]=1;J[d+116>>2]=0;J[d+120>>2]=1;J[d+108>>2]=0;J[d+112>>2]=0;J[d+100>>2]=1056964608;J[d+104>>2]=1065353216;I[d+96>>1]=0;J[d+88>>2]=1065353216;J[d+92>>2]=1065353216;e=d+128|0;c=e;J[c>>2]=0;J[c+4>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+144>>2]=0;J[d+148>>2]=0;J[d+176>>2]=0;J[d+180>>2]=0;J[d+168>>2]=0;J[d+172>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;J[d+32>>2]=348744;J[d+36>>2]=0;J[d+40>>2]=0;J[695492]=0;c=$(4,24)|0;k=J[695492];J[695492]=0;if((k| -0)==1){c=Z()|0;$j(e);break ea}e=c+24|0;J[d+180>>2]=e;J[d+172>>2]=c;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[d+176>>2]=e;wc(d+188|0,0,88);J[d+296>>2]=0;J[d+300>>2]=0;J[d+288>>2]=0;J[d+292>>2]=0;J[d+312>>2]=0;J[d+316>>2]=0;J[d+320>>2]=0;J[d+324>>2]=0;J[d+2956>>2]=0;J[d+328>>2]=0;J[d+332>>2]=1072693248;J[d+336>>2]=0;J[d+340>>2]=0;J[d+344>>2]=0;J[d+348>>2]=0;J[d+352>>2]=0;J[d+356>>2]=0;J[d+360>>2]=0;J[d+280>>2]=0;J[d+284>>2]=0;J[d+304>>2]=0;J[d+308>>2]=1072693248;J[d+ -2948>>2]=0;J[d+2952>>2]=0;c=J[g>>2];H[d+2945|0]=K[a+2904|0];e=J[c+12>>2];J[d+312>>2]=J[c+8>>2];J[d+316>>2]=e;e=J[c+20>>2];J[d+320>>2]=J[c+16>>2];J[d+324>>2]=e;e=J[c+28>>2];J[d+328>>2]=J[c+24>>2];J[d+332>>2]=e;e=J[c+36>>2];J[d+336>>2]=J[c+32>>2];J[d+340>>2]=e;e=J[c+44>>2];J[d+344>>2]=J[c+40>>2];J[d+348>>2]=e;e=J[c+4>>2];c=J[c>>2];w=i-n;s=Q(R(Q(o-j)));s=R(w)>+s?Q(R(Q(w))):s;N[d+296>>2]=s>Q(1.1920928955078125E-7)?Q(Q(2)/s):Q(0);O[d+288>>3]=(i+n)*.5;J[d+304>>2]=c;J[d+308>>2]=e;N[d+368>>2]=j>o?j:o;N[d+ -376>>2]=i>2]=j>2]=i>n?n:i;O[d+280>>3]=(o+j)*.5;J[695492]=0;c=J[b+4>>2];e=J[695492];J[695492]=0;if((e|0)==1)break ha;J[695492]=0;ca(2326,d+32|0,f|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break ha;J[695492]=0;f=J[b+272>>2];e=J[b+268>>2];c=J[695492];J[695492]=0;if((c|0)==1)break ia;c=0;na:{oa:{pa:{qa:{e=f-e>>3;if((e|0)>0){f=0;J[695492]=0;h=e>>>0>1073741823?-1:e<<2;l=$(27,h|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break ia;J[695492]=0;h=$(27,h|0)|0;k=J[695492];J[695492]= -0;if((k|0)==1)break ia;while(1){J[695492]=0;J[d+12>>2]=-16777216;k=J[b+268>>2]+(f<<3)|0;J[d+12>>2]=J[k>>2];p=f<<2;N[p+h>>2]=N[k+4>>2];k=J[695492];J[695492]=0;if((k|0)==1)break qa;k=l+p|0;p=J[d+12>>2];H[k|0]=p;H[k+1|0]=p>>>8;H[k+2|0]=p>>>16;H[k+3|0]=p>>>24;f=f+1|0;if((e|0)!=(f|0))continue;break}J[d+360>>2]=e;J[d+356>>2]=h;J[d+352>>2]=l}J[d+24>>2]=0;J[d+28>>2]=0;J[d+12>>2]=a+1636;J[d+20>>2]=d+32;J[d+16>>2]=d+24;i=O[a+2896>>3];if(R(i+-1)<1.1920928955078125E-7)break pa;b=a+1832|0;while(1){e=b+(c<<2)| -0;j=i*(+(c|0)/255);j=(j>1?1:j)*255+.5;ra:{if(j<4294967296&j>=0){f=~~j>>>0;break ra}f=0}J[e>>2]=f;f=c|1;e=b+(f<<2)|0;j=i*(+(f|0)/255);j=(j>1?1:j)*255+.5;sa:{if(j<4294967296&j>=0){f=~~j>>>0;break sa}f=0}J[e>>2]=f;c=c+2|0;if((c|0)!=256)continue;break}c=0;J[695492]=0;da(2327,a|0,d+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break oa;a=a+1832|0;while(1){f=a+(c<<2)|0;i=+(c|0)/255*255+.5;ta:{if(i<4294967296&i>=0){b=~~i>>>0;break ta}b=0}J[f>>2]=b;b=c|1;f=a+(b<<2)|0;i=+(b|0)/255*255+.5;ua:{if(i<4294967296&i>= -0){b=~~i>>>0;break ua}b=0}J[f>>2]=b;c=c+2|0;if((c|0)!=256)continue;break}break na}c=Z()|0;break ga}J[695492]=0;da(2327,a|0,d+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break na}c=Z()|0;a=J[d+24>>2];if(!a)break ga;qc(a);break ga}if(l)qc(l);if(h)qc(h);a=J[d+24>>2];if(a)qc(a);J[d+32>>2]=348744;a=J[d+2948>>2];if(a){f=J[d+2952>>2];c=a;if((f|0)!=(c|0)){while(1){b=f-12|0;c=J[b>>2];if(c){J[f-8>>2]=c;qc(c)}f=b;if((b|0)!=(a|0))continue;break}c=J[d+2948>>2]}J[d+2952>>2]=a;qc(c)}Qe(d+120|0)}Ed(g);bc=d+2992|0; -break da}c=Z()|0;break ga}c=Z()|0}A3(d+32|0);break ea}c=Z()|0}Ed(g);ba(c|0);B()}}bc=m+48|0;return}a=Z()|0;Ed(c);ba(a|0);B()}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}Ed(d);ba(f|0);B()}function Pza(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,y=0,z=0;o=bc-16|0;bc=o;a:{b:{c:{if(!a)break c;if(!(J[a+344>>2]|K[a+399|0])){if(!(K[a+201|0]&4))break b;g=J[a+320>>2];c=P(K[a+403|0],K[a+406|0]);d:{if(c>>>0>=8){g=P(g,c>>>3|0);break d}g=P(c,g)+ -7>>>3|0}H[a+408|0]=c;H[a+409|0]=K[a+404|0];g=g+1|0;c=_g(a,g);J[a+356>>2]=c;H[c|0]=0;c=K[a+400|0];if(c&16){c=_g(a,J[a+336>>2]+1|0);J[a+360>>2]=c;H[c|0]=1;c=K[a+400|0]}e:{if((c&255)>>>0<32)break e;y=a,z=Hv(a,g),J[y+352>>2]=z;c=K[a+400|0];if(c&32){c=_g(a,J[a+336>>2]+1|0);J[a+364>>2]=c;H[c|0]=2;c=K[a+400|0]}if(c&64){c=_g(a,J[a+336>>2]+1|0);J[a+368>>2]=c;H[c|0]=3;c=K[a+400|0]}if(c<<24>>24>=0)break e;c=_g(a,J[a+336>>2]+1|0);J[a+372>>2]=c;H[c|0]=4}f:{g:{if(K[a+398|0]){c=J[a+324>>2];if(!(K[a+208|0]&2)){J[a+ -328>>2]=c+7>>>3;c=J[a+320>>2]+7>>>3|0;break f}J[a+328>>2]=c;break g}J[a+328>>2]=J[a+324>>2]}c=J[a+320>>2]}J[a+332>>2]=c;vU(a,1);c=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=c}h:{if(!K[a+398|0]|!(K[a+208|0]&2))break h;i:switch(K[a+399|0]){case 0:if(!(K[a+344|0]&7))break h;Nn(a);break c;case 1:if(!(K[a+344|0]&7)&M[a+320>>2]>4)break h;Nn(a);break c;case 2:if((J[a+344>>2]&7)==4)break h;Nn(a);break c;case 3:if(!(K[a+344|0]&3)&M[a+320>>2]>2)break h;Nn(a);break c;case 4:if((J[a+344>>2]&3)==2)break h; -Nn(a);break c;case 5:if(!(H[a+344|0]&1)&M[a+320>>2]>1)break h;Nn(a);break c;case 6:break i;default:break h}if(H[a+344|0]&1)break h;Nn(a);break c}H[o+12|0]=K[a+401|0];c=J[a+332>>2];J[o+4>>2]=c;g=K[a+406|0];H[o+14|0]=g;d=K[a+403|0];H[o+13|0]=d;g=P(d,g);H[o+15|0]=g;g=g&255;j:{if(g>>>0>=8){c=P(c,g>>>3|0);break j}c=P(c,g)+7>>>3|0}J[o+8>>2]=c;tc(J[a+356>>2]+1|0,b,c);k:{if(!K[a+398|0])break k;j=K[a+399|0];if(!(K[a+208|0]&2)|j>>>0>5)break k;b=J[a+356>>2]+1|0;if(j>>>0<=5){f=J[o+4>>2];l:{m:{n:{o:{p:{q:{r:{c= -K[o+15|0];switch(c-1|0){case 3:break p;case 1:break q;case 0:break r;default:break o}}g=K[j+68997|0];if(f>>>0<=g>>>0)break l;h=K[j+69004|0];c=b;e=g;while(1){d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<7&128;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<6&64|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<5&32|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<4&16|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<3&8|d;e=e+h|0;if(e>>>0>= -f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<2&4|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<1&2|d;e=e+h|0;if(e>>>0>=f>>>0)break m;H[c|0]=K[b+(e>>>3|0)|0]>>>((e^-1)&7)&1|d;c=c+1|0;e=e+h|0;if(f>>>0>e>>>0)continue;break}break l}g=K[j+68997|0];if(f>>>0<=g>>>0)break l;h=K[j+69004|0];c=b;e=g;while(1){d=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)<<6&192;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)<<4&48|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>2|0)|0]>>>((e^-1)<< -1&6)<<2&12|d;e=e+h|0;if(e>>>0>=f>>>0)break m;H[c|0]=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)&3|d;c=c+1|0;e=e+h|0;if(f>>>0>e>>>0)continue;break}break l}g=K[j+68997|0];if(f>>>0<=g>>>0)break l;e=K[j+69004|0];d=g;c=b;while(1){h=K[b+(d>>>1|0)|0]>>>((d^-1)<<2&4)<<4;d=d+e|0;if(d>>>0>=f>>>0)break n;H[c|0]=h|K[b+(d>>>1|0)|0]>>>((d^-1)<<2&4)&15;c=c+1|0;d=d+e|0;if(f>>>0>d>>>0)continue;break}break l}g=K[j+68997|0];if(f>>>0<=g>>>0)break l;e=c>>>3|0;h=K[j+69004|0];c=g;d=b;while(1){k=b+P(c,e)|0;if((k|0)!=(d|0))tc(d,k,e); -d=d+e|0;c=c+h|0;if(f>>>0>c>>>0)continue;break}break l}d=h&240}H[c|0]=d}b=K[j+69004|0];b=((b+J[o+4>>2]|0)+(g^-1)>>>0)/(b>>>0)|0;J[o+4>>2]=b;c=K[o+15|0];s:{if(c>>>0>=8){b=P(b,c>>>3|0);break s}b=P(b,c)+7>>>3|0}J[o+8>>2]=b}if(J[o+4>>2])break k;Nn(a);break c}b=J[a+208>>2];if(b){g=o+4|0;t:{if(!a)break t;u:{if(!(b&1048576))break u;c=J[a+188>>2];if(!c)break u;gc[c|0](a,g,J[a+356>>2]+1|0);b=J[a+208>>2]}v:{if(!(b&32768))break v;if(K[a+401|0]&5){Yc(a,57945);b=J[a+208>>2]&-32769;J[a+208>>2]=b;break v}eH(g,J[a+ -356>>2]+1|0,(J[a+204>>2]^-1)>>>7&1);b=J[a+208>>2]}if(b&65536){oW(g,J[a+356>>2]+1|0);b=J[a+208>>2]}if(b&4){b=J[a+356>>2]+1|0;j=K[a+402|0];e=0;c=0;if(!(K[g+9|0]!=8|K[g+10|0]!=1)){w:{x:{y:switch(j-1|0){case 0:f=J[g>>2];if(!f)break w;c=b;while(1){d=(K[b|0]!=0)<<7;if((f|0)==(e+1|0)){b=c;break x}d=(K[b+1|0]!=0)<<6|d;if((f|0)==(e+2|0)){b=c;break x}d=(K[b+2|0]!=0)<<5|d;if((f|0)==(e+3|0)){b=c;break x}d=(K[b+3|0]!=0)<<4|d;if((f|0)==(e+4|0)){b=c;break x}d=(K[b+4|0]!=0)<<3|d;if((f|0)==(e+5|0)){b=c;break x}d= +0;s=r;t=w;break Ia}o=K[x|0]|o;s=r;t=w;x=x+1|0}Ja:{if((c|0)<=(q|0))break Ja;p=128;r=0;if(!g)while(1){if(qe(J[a+76>>2],o>>>A&1|(l>>>15&14|(b>>>9&496|m>>>4&7680)),J[a+80>>2])){H[v|0]=K[v|0]|p;o=J[j>>2]?o:o|32768;l=l|32768}q=q+1|0;o=o<<1;l=l<<1;b=b<<1;m=m<<1;if(r>>>0>6)break Ja;r=r+1|0;p=(p&254)>>>1|0;if((c|0)>(q|0))continue;break Ja}while(1){Ka:{if(!((q|0)<0|J[h+8>>2]<=(q|0)|J[h+12>>2]<=(n|0)))if(K[J[h+20>>2]+P(J[h+16>>2],n)+(q>>>3)|0]>>>((q^-1)&7)&1)break Ka;if(!qe(J[a+76>>2],o>>>A&1|(l>>>15&14|(b>>> +9&496|m>>>4&7680)),J[a+80>>2]))break Ka;H[v|0]=K[v|0]|p;o=J[j>>2]?o:o|32768;l=l|32768}q=q+1|0;o=o<<1;l=l<<1;b=b<<1;m=m<<1;if(r>>>0>6)break Ja;r=r+1|0;p=(p&254)>>>1|0;if((c|0)>(q|0))continue;break}}v=v+1|0;if((c|0)>(u|0))continue;break}}n=n+1|0;if((n|0)!=(d|0))continue;break}}fc=C+160|0;return z}function mZa(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;g=fc-192|0;fc=g;a:{if(H[e+11|0]<0){J[e+4>>2]=0;h=J[e>>2];break a}H[e+11|0]=0;h=e}J[h>>2]=0; +b:{if(H[f+11|0]<0){J[f+4>>2]=0;h=J[f>>2];break b}H[f+11|0]=0;h=f}J[h>>2]=0;J[g+188>>2]=0;i=J[d+12>>2];h=J[d+8>>2];J[g+8>>2]=h;J[g+12>>2]=i;J[g+176>>2]=h;J[g+180>>2]=i;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{j=g+8|0;k=fc-32|0;fc=k;i=vc(4);J[699344]=0;m=aa(3363,i|0,c+12|0)|0;h=J[699344];J[699344]=0;r:{s:{t:{u:{v:{if((h|0)!=1){w:{i=J[c+4>>2];x:{if(!i)break x;l=c+4|0;h=l;while(1){n=fq(i+16|0,j);h=n?h:i;i=J[(n?i+4|0:i)>>2];if(i)continue;break}if((h|0)==(l|0))break x;if(!fq(j,h+16|0))break w}J[g+188>> +2]=0;break v}i=J[h+24>>2];J[g+188>>2]=i;if(!i)break v;h=1;if(K[i+40|0])break u;while(1){l=fc-32|0;fc=l;J[l+16>>2]=0;J[l+20>>2]=0;J[l+24>>2]=1E7;n=fc-16|0;fc=n;j=28;y:{if((l|0)==-16)break y;o=J[l+24>>2];if(o>>>0>999999999)break y;i=J[l+16>>2];p=J[l+20>>2];if((p|0)<0)break y;q=(+(i>>>0)+ +(p|0)*4294967296)*1E3+ +(o|0)/1E6;r=+Ya();while(1){if(+Ya()-r>>0>=4294963201)J[698583]=0-i;fc=l+32|0;if(!K[J[g+188>>2]+40|0])continue;break}break u}h=Z()|0;uc(i);break s}h= +J[j>>2];j=J[j+4>>2];i=k;J[i+24>>2]=h;J[i+28>>2]=j;J[i+16>>2]=0;J[699344]=0;J[i>>2]=h;J[i+4>>2]=j;J[i+8>>2]=0;J[i+12>>2]=0;j=va(3364,c|0,i|0,i+8|0,0,0,0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break t;J[g+188>>2]=j;h=0;if(H[i+19|0]<0){uc(J[i+8>>2]);j=J[g+188>>2]}H[j+40|0]=0}uc(B4(m));fc=k+32|0;break r}h=Z()|0;if(H[k+19|0]>=0)break s;uc(J[k+8>>2]);ba(h|0);B()}ba(h|0);B()}z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{if(!h){i=J[d+20>>2];if((i|0)==4){H[J[g+188>>2]+40|0]=1;break p}J[g+160>>2]=0;H[g+171|0]=0;h=J[d+ +16>>2];J[699344]=0;k=g+148|0;da(3371,k|0,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break J;K:{h=K[g+159|0];if(h<<24>>24<0?J[g+152>>2]:h)break K;J[699344]=0;ga(2227,k|0,807756,9)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break K;c=Z()|0;break d}H[g+133|0]=0;H[g+134|0]=0;H[g+135|0]=0;H[g+136|0]=0;H[g+137|0]=0;H[g+138|0]=0;H[g+139|0]=0;H[g+140|0]=0;J[g+128>>2]=0;J[g+132>>2]=0;k=J[d+36>>2];h=J[d+32>>2];if((h|0)>=0){J[g+120>>2]=0;J[g+112>>2]=0;J[g+116>>2]=0;c=J[d+20>>2]-1|0;if(!(c>>>0>=11|!(2039>>>c&1))){J[699344]= +0;c=c<<2;ga(2227,g+112|0,J[c+837388>>2],J[c+837432>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break f}J[699344]=0;c=J[693078];j=J[699344];J[699344]=0;if((j|0)==1)break f;if(c){J[699344]=0;c=J[693078];j=J[699344];J[699344]=0;if((j|0)==1)break f;j=J[J[c>>2]+28>>2];J[699344]=0;da(j|0,g+16|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;if(H[g+171|0]<0)uc(J[g+160>>2]);J[g+168>>2]=J[g+24>>2];c=J[g+20>>2];J[g+160>>2]=J[g+16>>2];J[g+164>>2]=c}J[g+28>>2]=k;J[g+24>>2]=h;J[g+16>>2]=9;J[699344]=0;J[g+96>> +2]=13;c=g+16|0;h=a;a=g+96|0;ha(3372,c|0,h|0,a|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break f;J[699344]=0;$(3370,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;if(J[g+96>>2]!=8){c=0;J[699344]=0;$(3370,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;H[J[g+188>>2]+40|0]=1;break B}a=J[g+104>>2];c=J[J[a>>2]+20>>2];J[699344]=0;$(c|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;a=_(27,65535)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;h=J[g+104>>2];k=J[J[h>>2]+28>>2];c=0;J[699344]= +0;j=_(k|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break f;L:{if((j|0)!=-1){h=65535;while(1){if((c|0)>=(h|0)){J[699344]=0;k=h<<1;l=_(27,k|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break L;h=xc(l,a,h);uc(a);a=h;h=k}H[a+c|0]=j;k=J[g+104>>2];j=J[J[k>>2]+28>>2];J[699344]=0;j=_(j|0,k|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break L;c=c+1|0;if((j|0)!=-1)continue;break}}J[g+136>>2]=0;J[g+132>>2]=c;J[g+128>>2]=a;J[699344]=0;a=J[693078];c=J[699344];J[699344]=0;if((c|0)==1)break f;c=J[J[a>>2]+16>>2];J[699344]= +0;h=a;a=g+160|0;na(c|0,h|0,a|0,J[g+128>>2],J[g+132>>2],1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;c=J[g+104>>2];h=J[J[c>>2]+24>>2];J[699344]=0;$(h|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;$(3370,g+96|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;M:{if((a|0)==(e|0))break M;c=K[g+171|0];a=c<<24>>24;if(H[e+11|0]>=0){if((a|0)>=0){a=J[g+164>>2];J[e>>2]=J[g+160>>2];J[e+4>>2]=a;J[e+8>>2]=J[g+168>>2];break M}J[699344]=0;ga(1631,e|0,J[g+160>>2],J[g+164>>2])|0;a=J[699344];J[699344]= +0;if((a|0)!=1)break M;break f}J[699344]=0;a=(a|0)<0;ga(1630,e|0,(a?J[g+160>>2]:g+160|0)|0,(a?J[g+164>>2]:c)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f}J[g+92>>2]=0;J[g+56>>2]=0;J[g+60>>2]=1076101120;J[g+80>>2]=0;J[g+84>>2]=1079115776;J[g+72>>2]=0;J[g+76>>2]=1079115776;a=J[J[b>>2]+148>>2];J[699344]=0;a=ja(a|0,b|0,e|0,g+92|0,g+56|0,g+80|0,g+72|0)|0;c=J[699344];J[699344]=0;N:{if((c|0)!=1){if(a)break N;H[J[g+188>>2]+40|0]=1;c=0;break B}break f}a=J[J[b>>2]+160>>2];J[699344]=0;h=g+56|0;da(a|0,h|0, +b|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;c=K[g+67|0];j=c<<24>>24;O:{P:{Q:{R:{a=J[g+60>>2];k=(j|0)<0;if(((k?a:c)|0)==8){if(!qd(k?J[g+56>>2]:h,836992,8))break R;c=K[g+67|0];j=c;a=J[g+60>>2]}h=a;a=j<<24>>24<0;if(((a?h:c)|0)!=6)break Q;if(qd(a?J[g+56>>2]:g+56|0,811304,6))break Q;a=i-3>>>0<4294967294?1:i;break C}a=i-3|0;if(a>>>0<9)break P;break D}c=g+56|0;a=(i|0)!=11?i-10>>>0<4294967293?7:i:i;if(Uj(811684,c))break C;a=i;if(!Uj(812052,c))break C;a=a-2|0;if(a>>>0<10)break O;break E}if(!(461>>>a& +1))break D;a=J[(a<<2)+837476>>2];break C}if(!(979>>>a&1))break E;a=J[(a<<2)+837512>>2];break C}break f}k=H[g+159|0];J[g+16>>2]=g+128;h=g+20|0;S:{T:{U:{V:{if((k|0)>=0){k=J[g+152>>2];J[h>>2]=J[g+148>>2];J[h+4>>2]=k;J[h+8>>2]=J[g+156>>2];break V}J[699344]=0;ca(15,h|0,J[g+148>>2],J[g+152>>2]);k=J[699344];J[699344]=0;if((k|0)==1)break U}J[g+96>>2]=0;J[699344]=0;J[g+112>>2]=0;k=ga(3373,h|0,g+96|0,g+112|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break T;W:{if(!k)break W;j=J[g+96>>2];if(!j)break W;l=J[g+112>> +2];h=J[g+16>>2];H[h+12|0]=1;J[h+8>>2]=0;J[h+4>>2]=l;J[h>>2]=j}if(H[g+31|0]<0)uc(J[g+20>>2]);if(!k)break S;X:{if((g+148|0)==(e|0))break X;c=K[g+159|0];a=c<<24>>24;if(H[e+11|0]>=0){if((a|0)>=0){a=J[g+152>>2];J[e>>2]=J[g+148>>2];J[e+4>>2]=a;J[e+8>>2]=J[g+156>>2];break X}J[699344]=0;ga(1631,e|0,J[g+148>>2],J[g+152>>2])|0;a=J[699344];J[699344]=0;if((a|0)!=1)break X;break F}J[699344]=0;a=(a|0)<0;ga(1630,e|0,(a?J[g+148>>2]:g+148|0)|0,(a?J[g+152>>2]:c)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break F}j=0; +J[699344]=0;a=J[693078];c=J[699344];J[699344]=0;if((c|0)==1)break F;c=J[J[a>>2]+16>>2];J[699344]=0;na(c|0,a|0,e|0,J[g+128>>2],J[g+132>>2],1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break F;break A}c=Z()|0;break e}c=Z()|0;if(H[g+31|0]>=0)break e;uc(J[g+20>>2]);break e}J[699344]=0;h=ga(3374,d|0,a|0,0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break F;if(h){J[699344]=0;h=ga(3374,d|0,a|0,0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break I;h=J[h+16>>2];J[699344]=0;da(3371,g+16|0,h|0);h=J[699344];J[699344]=0;if((h| +0)==1)break I;if(H[e+11|0]<0)uc(J[e>>2]);J[e+8>>2]=J[g+24>>2];h=J[g+20>>2];J[e>>2]=J[g+16>>2];J[e+4>>2]=h;j=0;h=H[e+11|0];if((h|0)<0?J[e+4>>2]:h&255)break A}J[699344]=0;a=ha(3375,a|0,b|0,d|0,g+148|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break G;if(!a)break H;h=a+12|0;if(!dC(807368,h))break H;J[699344]=0;aa(2981,e|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break G;h=J[J[d>>2]+8>>2];J[699344]=0;h=_(h|0,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break G;J[699344]=0;aa(2981,e|0,a|0)|0;i=J[699344]; +J[699344]=0;if((i|0)==1)break G;Y:{i=K[e+11|0];if(!(i<<24>>24<0?J[e+4>>2]:i))break Y;i=J[a+44>>2];a=J[a+40>>2];J[699344]=0;ia(3376,g+16|0,e|0,a|0,i|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[e+11|0]<0)uc(J[e>>2]);a=J[g+20>>2];J[e>>2]=J[g+16>>2];J[e+4>>2]=a;J[e+8>>2]=J[g+24>>2];a=K[e+11|0];if(a<<24>>24<0?J[e+4>>2]:a)break Y;a=J[d+8>>2];b=J[d+12>>2];J[699344]=0;J[g+48>>2]=a;J[g+52>>2]=b;J[g>>2]=a;J[g+4>>2]=b;uK(c,g);a=J[699344];J[699344]=0;if((a|0)==1)break G;break z}c=Z()|0;break e}J[699344]=0;da(3378, +g+128|0,e|0);a=J[699344];J[699344]=0;j=1;if((a|0)==1)break G;i=h?10:5;break A}a=J[g+188>>2];if(!a)break p;Z:{if((a|0)==(e|0))break Z;c=K[a+11|0];b=c<<24>>24;if(H[e+11|0]>=0){if((b|0)>=0){b=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=b;J[e+8>>2]=J[a+8>>2];break Z}Gf(e,J[a>>2],J[a+4>>2]);break Z}b=(b|0)<0;Lf(e,b?J[a>>2]:a,b?J[a+4>>2]:c)}b=a+12|0;if((b|0)==(f|0))break p;d=K[a+23|0];c=d<<24>>24;if(H[f+11|0]>=0){if((c|0)>=0){a=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=a;J[f+8>>2]=J[b+8>>2];break p}Gf(f,J[a+12>>2],J[a+ +16>>2]);break p}e=b;b=(c|0)<0;Lf(f,b?J[a+12>>2]:e,b?J[a+16>>2]:d);break p}c=Z()|0;break c}c=Z()|0;break e}H[J[g+188>>2]+40|0]=1;break z}c=Z()|0;break e}c=Z()|0;break e}a=2;if((i&-5)==1)break C;a=(i|0)==7?8:i;break C}a=3;if(i-1>>>0<2)break C;a=i-7>>>0<2?9:i}i=a;if(H[g+67|0]<0)uc(J[g+56>>2]);c=1}if(H[g+123|0]<0)uc(J[g+112>>2]);j=0;if(!c)break z}h=0;J[699344]=0;J[g+56>>2]=0;a=aa(3379,3380,g+128|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break q;J[g+136>>2]=0;_:{$:{aa:{ba:switch(i-1|0){case 0:case 1:case 2:if((a| +0)==4){J[699344]=0;a=ha(3381,J[g+128>>2],J[g+132>>2],0,0)|0;b=J[699344];J[699344]=0;ca:{if((b|0)==1)break ca;if(!a)break aa;J[699344]=0;h=aa(3382,d|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ca;J[g+56>>2]=256;kc[J[J[a>>2]+4>>2]](a);break _}c=Z()|0;break e}a=K[e+11|0];if(!(a<<24>>24<0?J[e+4>>2]:a))break _;c=pm(d,2217492,2217516);if(!c|!b)break _;J[g+80>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;J[g+96>>2]=0;J[g+100>>2]=1079115776;J[g+112>>2]=0;J[g+116>>2]=1079115776;a=J[J[b>>2]+148>>2];J[699344]= +0;ja(a|0,b|0,e|0,g+80|0,g+16|0,g+96|0,g+112|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break o;a=Dc(1024);if(!a)break _;i=c+164|0;J[g+56>>2]=256;c=0;da:{ea:{while(1){h=c<<2;k=h+a|0;J[k>>2]=0;h=J[h+i>>2];if(h){j=Yc(h);J[699344]=0;l=g+16|0;ia(3369,l|0,h|0,j|0,1);h=J[699344];J[699344]=0;if((h|0)==1)break ea;h=J[J[b>>2]+168>>2];J[699344]=0;h=aa(h|0,b|0,l|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break da;if(H[g+27|0]<0)uc(J[g+16>>2]);J[k>>2]=h&65535}c=c+1|0;if((c|0)!=256)continue;break}h=a;break _}c=Z()| +0;break e}c=Z()|0;if(H[g+27|0]>=0)break e;uc(J[g+16>>2]);break e;case 4:case 5:if((a|0)==1){c=pm(d,2217492,2217516);if(!dC(807368,e)|!c|(!J[c+1448>>2]|!b))break _;J[g+80>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;J[g+96>>2]=0;J[g+100>>2]=1079115776;J[g+112>>2]=0;J[g+116>>2]=1079115776;a=J[J[b>>2]+148>>2];J[699344]=0;ja(a|0,b|0,e|0,g+80|0,g+16|0,g+96|0,g+112|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break n;a=Dc(1024);if(!a)break _;i=c+164|0;J[g+56>>2]=256;c=0;fa:{ga:{while(1){h=c<<2;k=h+a|0;J[k>>2]= +0;h=J[h+i>>2];if(h){j=Yc(h);J[699344]=0;l=g+16|0;ia(3369,l|0,h|0,j|0,1);h=J[699344];J[699344]=0;if((h|0)==1)break ga;h=J[J[b>>2]+168>>2];J[699344]=0;h=aa(h|0,b|0,l|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break fa;if(H[g+27|0]<0)uc(J[g+16>>2]);J[k>>2]=h&65535}c=c+1|0;if((c|0)!=256)continue;break}h=a;break _}c=Z()|0;break e}c=Z()|0;if(H[g+27|0]>=0)break e;uc(J[g+16>>2]);break e}J[699344]=0;a=ha(3381,J[g+128>>2],J[g+132>>2],0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break q;if(a){J[699344]=0;h=aa(3382, +d|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q;J[g+56>>2]=256;kc[J[J[a>>2]+4>>2]](a);break _}J[g+56>>2]=0;J[g+80>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1076101120;J[g+96>>2]=0;J[g+100>>2]=1079115776;J[g+112>>2]=0;J[g+116>>2]=1079115776;a=J[J[b>>2]+148>>2];J[699344]=0;a=ja(a|0,b|0,e|0,g+80|0,g+16|0,g+96|0,g+112|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;if(!a)break _;J[g+56>>2]=256;h=Dc(1024);c=0;while(1){ha:{J[g+16>>2]=c;a=J[J[b>>2]+172>>2];J[699344]=0;a=aa(a|0,b|0,g+16|0)|0;i=J[699344];J[699344]= +0;if((i|0)==1)break ha;J[(c<<2)+h>>2]=a;c=c+1|0;if((c|0)>2])continue;break _}break}c=Z()|0;break e;case 9:case 10:break $;case 6:case 7:break aa;case 8:break ba;default:break _}a=pm(d,2217492,2217544);if(!(!a|j|!J[a+216>>2])){a=J[a+220>>2];J[g+56>>2]=a;if(!a)break _;if(a>>>0>1073741822)break aa;a=a<<2;h=Dc(a);if(!h)break aa;xc(h,J[d+216>>2],a);break _}J[699344]=0;a=ha(3381,J[g+128>>2],J[g+132>>2],0,0)|0;b=J[699344];J[699344]=0;ia:{ja:{if((b|0)!=1){if(!a)break aa;if(!J[a+64>>2])break ja;J[699344]= +0;h=aa(3383,a|0,g+56|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break ia}c=Z()|0;break e}J[g+56>>2]=0}kc[J[J[a>>2]+4>>2]](a);break _}h=0;J[g+56>>2]=0;break _}J[g+56>>2]=0;a=K[e+11|0];if(!(!(a<<24>>24<0?J[e+4>>2]:a)|j^1)){J[699344]=0;a=J[d+168>>2];if(a){J[a+24>>2]=J[a+24>>2]+1;b=J[d+168>>2]}else b=0;a=J[699344];J[699344]=0;ka:{la:{if((a|0)==1)break la;if(!b)break _;J[699344]=0;k=ha(3381,J[g+128>>2],J[g+132>>2],0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break la;ma:{if(!k)break ma;J[g+104>>2]=0;J[g+96>> +2]=0;J[g+100>>2]=0;c=0;j=0;i=0;a=0;na:{while(1){J[699344]=0;h=J[k+32>>2];l=J[699344];J[699344]=0;if((l|0)==1)break ka;oa:{if((a|0)>=(h|0)){if((i|0)!=(j|0))break oa;h=0;break na}J[699344]=0;h=J[J[k+28>>2]+P(a,20)>>2];l=J[699344];J[699344]=0;if((l|0)==1)break ka;pa:{qa:{if((h|0)==3){J[699344]=0;h=J[(J[k+28>>2]+P(a,20)|0)+4>>2];l=J[699344];J[699344]=0;if((l|0)==1)break ka;if((h|0)==1)break qa}J[699344]=0;h=J[J[k+28>>2]+P(a,20)>>2];l=J[699344];J[699344]=0;if((l|0)==1)break ka;if(h)break pa}if((c|0)!= +(i|0)){J[i>>2]=a;i=i+4|0;J[g+100>>2]=i;a=a+1|0;continue}l=J[g+96>>2];h=c-l|0;j=h>>2;i=j+1|0;if(i>>>0>=1073741824){J[699344]=0;$(1589,g+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;break g}m=h>>1;m=h>>>0>=2147483644?1073741823:i>>>0>>0?m:i;ra:{if(!m){h=0;break ra}if(m>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break g;break h}J[699344]=0;h=_(4,m<<2)|0;i=J[699344];J[699344]=0;if((i|0)==1)break ka}j=(j<<2)+h|0;J[j>>2]=a;i=j+4|0;if((c|0)!=(l|0))while(1){j=j-4|0;c= +c-4|0;J[j>>2]=J[c>>2];if((c|0)!=(l|0))continue;break}c=(m<<2)+h|0;J[g+104>>2]=c;J[g+100>>2]=i;J[g+96>>2]=j;if(l)uc(l)}a=a+1|0;continue}break}a=J[b+8>>2];J[g+56>>2]=a;sa:{if(a-1>>>0<=1073741821){h=Dc(a<<2);break sa}h=0;if((a|0)<=0)break na}a=i-j|0;l=a>>2;m=a>>>0>4;i=0;while(1){J[699344]=0;a=Al(b,i,g+16|0,8);c=J[699344];J[699344]=0;if((c|0)==1)break h;ta:{if((a|0)>0){a=J[j>>2];J[699344]=0;c=So(k,a,J[g+16>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break h;n=(i<<2)+h|0;J[n>>2]=c;a=1;if(!m)break ta;while(1){if(c)break ta; +c=J[(a<<2)+j>>2];J[699344]=0;c=So(k,c,J[g+16>>2]);o=J[699344];J[699344]=0;if((o|0)!=1){J[n>>2]=c;a=a+1|0;if(l>>>0>a>>>0)continue;break ta}break}break h}J[(i<<2)+h>>2]=0}i=i+1|0;if((i|0)>2])continue;break}}kc[J[J[k>>2]+4>>2]](k);if(!j)break ma;J[g+100>>2]=j;uc(j)}J[699344]=0;$(3390,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break _}c=Z()|0;break e}break h}b=J[d+216>>2];if(!b)break _;a=J[d+220>>2];J[g+56>>2]=a;if(a-1>>>0>1073741821)break _;a=a<<2;c=Dc(a);if(!c)break _;h=xc(c,b,a)}a=J[J[d>>2]+ +8>>2];J[699344]=0;a=_(a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;ua:{if(a){c=0;J[699344]=0;a=J[d+168>>2];if(a){J[a+24>>2]=J[a+24>>2]+1;d=J[d+168>>2]}else d=0;a=J[699344];J[699344]=0;if((a|0)!=1){if(!d){a=0;break ua}a=J[d+8>>2];b=0;va:{if(a-1>>>0>1073741821)break va;i=Dc(a<<2);b=0;if(!i)break va;while(1){J[699344]=0;b=Al(d,c,g+16|0,2);k=J[699344];J[699344]=0;if((k|0)==1)break l;J[i+(c<<2)>>2]=b?L[g+16>>1]:0;c=c+1|0;if((c|0)!=(a|0))continue;break}b=i}c=b;J[699344]=0;$(3390,d|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break ua}c=Z()|0;break e}c=0;J[699344]=0;a=J[d+1444>>2];J[a+24>>2]=J[a+24>>2]+1;i=J[d+1444>>2];a=J[699344];J[699344]=0;if((a|0)==1)break k;if(!i){a=0;break ua}a=J[i+8>>2];b=0;wa:{if(a-1>>>0>1073741821)break wa;d=Dc(a<<2);b=0;if(!d)break wa;while(1){J[699344]=0;J[g+16>>2]=0;b=Al(i,c,g+16|0,1);k=J[699344];J[699344]=0;if((k|0)==1)break j;J[d+(c<<2)>>2]=b?L[g+16>>1]:c;c=c+1|0;if((c|0)!=(a|0))continue;break}b=d}c=b;J[699344]=0;$(3390,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break k}xa:{if((g+ +148|0)==(f|0))break xa;d=K[f+11|0];b=d<<24>>24;if((b|0)<0?J[f+4>>2]:d)break xa;i=K[g+159|0];d=i<<24>>24;if((b|0)>=0){if((d|0)>=0){b=J[g+152>>2];J[f>>2]=J[g+148>>2];J[f+4>>2]=b;J[f+8>>2]=J[g+156>>2];break xa}J[699344]=0;ga(1631,f|0,J[g+148>>2],J[g+152>>2])|0;b=J[699344];J[699344]=0;if((b|0)!=1)break xa;break i}J[699344]=0;b=(d|0)<0;ga(1630,f|0,(b?J[g+148>>2]:g+148|0)|0,(b?J[g+152>>2]:i)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i}ya:{b=K[f+11|0];if((b<<24>>24<0?J[f+4>>2]:b)>>>0<8)break ya;J[699344]= +0;b=aa(3358,f|0,6)|0;d=J[699344];J[699344]=0;za:{if((d|0)!=1){if(J[b>>2]!=43)break ya;J[699344]=0;b=aa(3358,f|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break za;if(J[b>>2]-65>>>0>=26)break ya;J[699344]=0;b=aa(3358,f|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break za;if(J[b>>2]-65>>>0>25)break ya;J[699344]=0;b=aa(3358,f|0,2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break za;if(J[b>>2]-65>>>0>25)break ya;J[699344]=0;b=aa(3358,f|0,3)|0;d=J[699344];J[699344]=0;if((d|0)==1)break za;if(J[b>>2]-65>>>0>25)break ya; +J[699344]=0;b=aa(3358,f|0,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break za;if(J[b>>2]-65>>>0>25)break ya;J[699344]=0;b=aa(3358,f|0,5)|0;d=J[699344];J[699344]=0;if((d|0)==1)break za;if(J[b>>2]-65>>>0>25)break ya;J[699344]=0;ca(2971,f|0,0,7);b=J[699344];J[699344]=0;if((b|0)!=1)break ya}c=Z()|0;break e}c=Z()|0;break e}b=J[g+188>>2];Aa:{if((b|0)==(e|0))break Aa;i=K[e+11|0];d=i<<24>>24;if(H[b+11|0]>=0){if((d|0)>=0){d=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=d;J[b+8>>2]=J[e+8>>2];break Aa}d=J[e+4>>2];e=J[e>> +2];J[699344]=0;ga(1631,b|0,e|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;break Aa}k=J[e>>2];j=J[e+4>>2];J[699344]=0;d=(d|0)<0;ga(1630,b|0,(d?k:e)|0,(d?j:i)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i}d=b+12|0;Ba:{if((d|0)==(f|0))break Ba;i=K[f+11|0];e=i<<24>>24;if(H[b+23|0]>=0){if((e|0)>=0){e=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=e;J[d+8>>2]=J[f+8>>2];break Ba}e=J[f+4>>2];f=J[f>>2];J[699344]=0;ga(1631,d|0,f|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;break Ba}k=J[f>>2];j=J[f+ +4>>2];J[699344]=0;l=d;d=(e|0)<0;ga(1630,l|0,(d?k:f)|0,(d?j:i)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i}J[b+28>>2]=c;J[b+24>>2]=h;c=J[g+56>>2];H[b+40|0]=1;J[b+36>>2]=a;J[b+32>>2]=c}a=J[g+128>>2];if(!(K[g+140|0]|!a))uc(a);if(H[g+159|0]<0)uc(J[g+148>>2]);if(H[g+171|0]>=0)break p;uc(J[g+160>>2]);break p}c=Z()|0;break e}fc=g+192|0;return}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;break e}c=Z()|0;a=J[g+96>>2];if(!a)break e;J[g+100>>2]= +a;uc(a);break e}B()}c=Z()|0;if(H[g+123|0]>=0)break e;uc(J[g+112>>2])}a=J[g+128>>2];if(K[g+140|0]|!a)break d;uc(a)}if(H[g+159|0]>=0)break c;uc(J[g+148>>2])}if(H[g+171|0]<0)uc(J[g+160>>2]);ba(c|0);B()}function GEa(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,y=0,z=0;o=fc-16|0;fc=o;a:{b:{c:{if(!a)break c;if(!(J[a+344>>2]|K[a+399|0])){if(!(K[a+201|0]&4))break b;g=J[a+320>>2];c=P(K[a+403|0],K[a+406|0]);d:{if(c>>>0>=8){g=P(g,c>>>3|0);break d}g= +P(c,g)+7>>>3|0}H[a+408|0]=c;H[a+409|0]=K[a+404|0];g=g+1|0;c=lh(a,g);J[a+356>>2]=c;H[c|0]=0;c=K[a+400|0];if(c&16){c=lh(a,J[a+336>>2]+1|0);J[a+360>>2]=c;H[c|0]=1;c=K[a+400|0]}e:{if((c&255)>>>0<32)break e;y=a,z=zw(a,g),J[y+352>>2]=z;c=K[a+400|0];if(c&32){c=lh(a,J[a+336>>2]+1|0);J[a+364>>2]=c;H[c|0]=2;c=K[a+400|0]}if(c&64){c=lh(a,J[a+336>>2]+1|0);J[a+368>>2]=c;H[c|0]=3;c=K[a+400|0]}if(c<<24>>24>=0)break e;c=lh(a,J[a+336>>2]+1|0);J[a+372>>2]=c;H[c|0]=4}f:{g:{if(K[a+398|0]){c=J[a+324>>2];if(!(K[a+208|0]& +2)){J[a+328>>2]=c+7>>>3;c=J[a+320>>2]+7>>>3|0;break f}J[a+328>>2]=c;break g}J[a+328>>2]=J[a+324>>2]}c=J[a+320>>2]}J[a+332>>2]=c;ZW(a,1);c=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=c}h:{if(!K[a+398|0]|!(K[a+208|0]&2))break h;i:switch(K[a+399|0]){case 0:if(!(K[a+344|0]&7))break h;Go(a);break c;case 1:if(!(K[a+344|0]&7)&M[a+320>>2]>4)break h;Go(a);break c;case 2:if((J[a+344>>2]&7)==4)break h;Go(a);break c;case 3:if(!(K[a+344|0]&3)&M[a+320>>2]>2)break h;Go(a);break c;case 4:if((J[a+344>>2]&3)== +2)break h;Go(a);break c;case 5:if(!(H[a+344|0]&1)&M[a+320>>2]>1)break h;Go(a);break c;case 6:break i;default:break h}if(H[a+344|0]&1)break h;Go(a);break c}H[o+12|0]=K[a+401|0];c=J[a+332>>2];J[o+4>>2]=c;g=K[a+406|0];H[o+14|0]=g;d=K[a+403|0];H[o+13|0]=d;g=P(d,g);H[o+15|0]=g;g=g&255;j:{if(g>>>0>=8){c=P(c,g>>>3|0);break j}c=P(c,g)+7>>>3|0}J[o+8>>2]=c;xc(J[a+356>>2]+1|0,b,c);k:{if(!K[a+398|0])break k;j=K[a+399|0];if(!(K[a+208|0]&2)|j>>>0>5)break k;b=J[a+356>>2]+1|0;if(j>>>0<=5){f=J[o+4>>2];l:{m:{n:{o:{p:{q:{r:{c= +K[o+15|0];switch(c-1|0){case 3:break p;case 1:break q;case 0:break r;default:break o}}g=K[j+69013|0];if(f>>>0<=g>>>0)break l;h=K[j+69020|0];c=b;e=g;while(1){d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<7&128;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<6&64|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<5&32|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<4&16|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<3&8|d;e=e+h|0;if(e>>>0>= +f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<2&4|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>3|0)|0]>>>((e^-1)&7)<<1&2|d;e=e+h|0;if(e>>>0>=f>>>0)break m;H[c|0]=K[b+(e>>>3|0)|0]>>>((e^-1)&7)&1|d;c=c+1|0;e=e+h|0;if(f>>>0>e>>>0)continue;break}break l}g=K[j+69013|0];if(f>>>0<=g>>>0)break l;h=K[j+69020|0];c=b;e=g;while(1){d=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)<<6&192;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)<<4&48|d;e=e+h|0;if(e>>>0>=f>>>0)break m;d=K[b+(e>>>2|0)|0]>>>((e^-1)<< +1&6)<<2&12|d;e=e+h|0;if(e>>>0>=f>>>0)break m;H[c|0]=K[b+(e>>>2|0)|0]>>>((e^-1)<<1&6)&3|d;c=c+1|0;e=e+h|0;if(f>>>0>e>>>0)continue;break}break l}g=K[j+69013|0];if(f>>>0<=g>>>0)break l;e=K[j+69020|0];d=g;c=b;while(1){h=K[b+(d>>>1|0)|0]>>>((d^-1)<<2&4)<<4;d=d+e|0;if(d>>>0>=f>>>0)break n;H[c|0]=h|K[b+(d>>>1|0)|0]>>>((d^-1)<<2&4)&15;c=c+1|0;d=d+e|0;if(f>>>0>d>>>0)continue;break}break l}g=K[j+69013|0];if(f>>>0<=g>>>0)break l;e=c>>>3|0;h=K[j+69020|0];c=g;d=b;while(1){k=b+P(c,e)|0;if((k|0)!=(d|0))xc(d,k,e); +d=d+e|0;c=c+h|0;if(f>>>0>c>>>0)continue;break}break l}d=h&240}H[c|0]=d}b=K[j+69020|0];b=((b+J[o+4>>2]|0)+(g^-1)>>>0)/(b>>>0)|0;J[o+4>>2]=b;c=K[o+15|0];s:{if(c>>>0>=8){b=P(b,c>>>3|0);break s}b=P(b,c)+7>>>3|0}J[o+8>>2]=b}if(J[o+4>>2])break k;Go(a);break c}b=J[a+208>>2];if(b){g=o+4|0;t:{if(!a)break t;u:{if(!(b&1048576))break u;c=J[a+188>>2];if(!c)break u;kc[c|0](a,g,J[a+356>>2]+1|0);b=J[a+208>>2]}v:{if(!(b&32768))break v;if(K[a+401|0]&5){fd(a,57961);b=J[a+208>>2]&-32769;J[a+208>>2]=b;break v}zI(g,J[a+ +356>>2]+1|0,(J[a+204>>2]^-1)>>>7&1);b=J[a+208>>2]}if(b&65536){lZ(g,J[a+356>>2]+1|0);b=J[a+208>>2]}if(b&4){b=J[a+356>>2]+1|0;j=K[a+402|0];e=0;c=0;if(!(K[g+9|0]!=8|K[g+10|0]!=1)){w:{x:{y:switch(j-1|0){case 0:f=J[g>>2];if(!f)break w;c=b;while(1){d=(K[b|0]!=0)<<7;if((f|0)==(e+1|0)){b=c;break x}d=(K[b+1|0]!=0)<<6|d;if((f|0)==(e+2|0)){b=c;break x}d=(K[b+2|0]!=0)<<5|d;if((f|0)==(e+3|0)){b=c;break x}d=(K[b+3|0]!=0)<<4|d;if((f|0)==(e+4|0)){b=c;break x}d=(K[b+4|0]!=0)<<3|d;if((f|0)==(e+5|0)){b=c;break x}d= (K[b+5|0]!=0)<<2|d;if((f|0)==(e+6|0)){b=c;break x}d=(K[b+6|0]!=0)<<1|d;if((f|0)==(e|7)){b=c;break x}H[c|0]=K[b+7|0]!=0|d;c=c+1|0;b=b+8|0;e=e+8|0;if((f|0)!=(e|0))continue;break}break w;case 1:f=J[g>>2];if(!f)break w;e=b;while(1){z:{d=K[e|0]<<6;if((f|0)==(c+1|0))break z;d=K[e+1|0]<<4&48|d;if((f|0)==(c+2|0))break z;d=K[e+2|0]<<2&12|d;if((f|0)==(c|3))break z;H[b|0]=K[e+3|0]&3|d;e=e+4|0;b=b+1|0;c=c+4|0;if((f|0)!=(c|0))continue;break w}break}d=d&255;break x;case 3:break y;default:break w}c=J[g>>2];if(!c)break w; -d=b;while(1){A:{f=K[d|0]<<4;if((c|0)==(e|1))break A;H[b|0]=f|K[d+1|0]&15;d=d+2|0;b=b+1|0;e=e+2|0;if((c|0)!=(e|0))continue;break w}break}d=f&255}H[b|0]=d}H[g+9|0]=j;c=P(j,K[g+10|0]);H[g+11|0]=c;b=J[g>>2];c=c&255;B:{if(c>>>0>=8){b=P(b,c>>>3|0);break B}b=P(b,c)+7>>>3|0}J[g+4>>2]=b}b=J[a+208>>2]}if(b&16){qW(g,J[a+356>>2]+1|0);b=J[a+208>>2]}if(b&8){d=J[a+356>>2]+1|0;j=bc-32|0;bc=j;f=K[g+8|0];C:{if((f|0)==3)break C;b=K[g+9|0];D:{if(f&2){h=K[a+497|0];c=K[a+498|0];J[j+4>>2]=c;J[j+20>>2]=b-c;c=K[a+499|0]; +d=b;while(1){A:{f=K[d|0]<<4;if((c|0)==(e|1))break A;H[b|0]=f|K[d+1|0]&15;d=d+2|0;b=b+1|0;e=e+2|0;if((c|0)!=(e|0))continue;break w}break}d=f&255}H[b|0]=d}H[g+9|0]=j;c=P(j,K[g+10|0]);H[g+11|0]=c;b=J[g>>2];c=c&255;B:{if(c>>>0>=8){b=P(b,c>>>3|0);break B}b=P(b,c)+7>>>3|0}J[g+4>>2]=b}b=J[a+208>>2]}if(b&16){pZ(g,J[a+356>>2]+1|0);b=J[a+208>>2]}if(b&8){d=J[a+356>>2]+1|0;j=fc-32|0;fc=j;f=K[g+8|0];C:{if((f|0)==3)break C;b=K[g+9|0];D:{if(f&2){h=K[a+497|0];c=K[a+498|0];J[j+4>>2]=c;J[j+20>>2]=b-c;c=K[a+499|0]; J[j+8>>2]=c;J[j+24>>2]=b-c;c=3;break D}h=K[a+500|0];c=1}J[j>>2]=h;e=b-h|0;J[j+16>>2]=e;if(f&4){f=c<<2;k=K[a+501|0];J[(f|j)>>2]=k;J[(f|j+16)>>2]=b-k;c=c+1|0}E:{if(b>>>0<=7){c=J[g+4>>2];if(!c)break C;if(!b)break E;f=K[a+500|0];k=(b|0)!=4?255:(f|0)==3?17:255;m=(b|0)==2?(f|0)==1?85:k:k;n=(e|0)<=0;k=0;while(1){i=K[d|0];b=e;f=0;if(!n)while(1){f=i<0)continue;break}H[d|0]=m&i>>>0-b|f;d=d+1|0;k=k+1|0;if((c|0)!=(k|0))continue;break}break C}e=P(J[g>>2],c);if((b|0)==8){if(!e)break C;k=0; while(1){h=K[d|0];H[d|0]=0;f=(k>>>0)%(c>>>0)<<2;b=J[f+(j+16|0)>>2];i=J[f+j>>2];if((b|0)>(0-i|0)){f=0;if((b|0)>0)while(1){f=h<0)continue;break}H[d|0]=h>>>0-b|f}d=d+1|0;k=k+1|0;if((e|0)!=(k|0))continue;break}break C}if(!e)break C;h=0;while(1){f=0;k=0;i=(h>>>0)%(c>>>0)<<2;b=J[i+(j+16|0)>>2];i=J[i+j>>2];if((b|0)>(0-i|0)){k=K[d+1|0]|K[d|0]<<8;while(1){m=(b|0)>0;f=(m?k<>>0-b|0)|f;b=b-i|0;if(m)continue;break}k=(f&65280)>>>8|0}H[d+1|0]=f;H[d|0]=k;d=d+2|0;h=h+1|0;if((e|0)!=(h|0))continue; -break}break C}wc(d,0,c)}bc=j+32|0;b=J[a+208>>2]}if(b&131072){b=J[a+356>>2]+1|0;F:{G:switch(K[g+8|0]-4|0){case 2:d=J[g>>2];if(K[g+9|0]==8){if(!d)break F;if((d|0)!=1){e=d&-2;c=0;while(1){f=K[b|0];H[b|0]=K[b+1|0];j=K[b+2|0]|K[b+3|0]<<8;H[b+1|0]=j;H[b+2|0]=j>>>8;H[b+3|0]=f;f=K[b+4|0];H[b+4|0]=K[b+5|0];j=K[b+6|0]|K[b+7|0]<<8;H[b+5|0]=j;H[b+6|0]=j>>>8;H[b+7|0]=f;b=b+8|0;c=c+2|0;if((e|0)!=(c|0))continue;break}}if(!(d&1))break F;c=K[b|0];H[b|0]=K[b+1|0];d=K[b+2|0]|K[b+3|0]<<8;H[b+1|0]=d;H[b+2|0]=d>>>8;H[b+ +break}break C}Ac(d,0,c)}fc=j+32|0;b=J[a+208>>2]}if(b&131072){b=J[a+356>>2]+1|0;F:{G:switch(K[g+8|0]-4|0){case 2:d=J[g>>2];if(K[g+9|0]==8){if(!d)break F;if((d|0)!=1){e=d&-2;c=0;while(1){f=K[b|0];H[b|0]=K[b+1|0];j=K[b+2|0]|K[b+3|0]<<8;H[b+1|0]=j;H[b+2|0]=j>>>8;H[b+3|0]=f;f=K[b+4|0];H[b+4|0]=K[b+5|0];j=K[b+6|0]|K[b+7|0]<<8;H[b+5|0]=j;H[b+6|0]=j>>>8;H[b+7|0]=f;b=b+8|0;c=c+2|0;if((e|0)!=(c|0))continue;break}}if(!(d&1))break F;c=K[b|0];H[b|0]=K[b+1|0];d=K[b+2|0]|K[b+3|0]<<8;H[b+1|0]=d;H[b+2|0]=d>>>8;H[b+ 3|0]=c;break F}if(!d)break F;c=0;while(1){e=K[b|0]|K[b+1|0]<<8;H[b|0]=K[b+2|0];f=K[b+3|0]|K[b+4|0]<<8;H[b+3|0]=K[b+5|0];H[b+1|0]=f;H[b+2|0]=f>>>8;f=K[b+6|0]|K[b+7|0]<<8;H[b+4|0]=f;H[b+5|0]=f>>>8;H[b+6|0]=e;H[b+7|0]=e>>>8;b=b+8|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break F;case 0:break G;default:break F}d=J[g>>2];if(K[g+9|0]==8){if(!d)break F;if(d>>>0>=4){e=d&-4;c=0;while(1){f=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=f;f=K[b+2|0];H[b+2|0]=K[b+3|0];H[b+3|0]=f;f=K[b+4|0];H[b+4|0]=K[b+5|0];H[b+5|0]=f;f=K[b+ -6|0];H[b+6|0]=K[b+7|0];H[b+7|0]=f;b=b+8|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break F;c=0;while(1){e=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=e;b=b+2|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break F}if(!d)break F;if((d|0)!=1){f=d&-2;c=0;while(1){e=Hzb(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24),16);H[b|0]=e;H[b+1|0]=e>>>8;H[b+2|0]=e>>>16;H[b+3|0]=e>>>24;e=Hzb(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24),16);H[b+4|0]=e;H[b+5|0]=e>>>8;H[b+6|0]=e>>>16;H[b+7|0]=e>>>24;b=b+8|0;c=c+2|0;if((f| -0)!=(c|0))continue;break}}if(!(d&1))break F;c=Hzb(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24),16);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24}b=J[a+208>>2]}H:{if(!(b&524288))break H;b=J[a+356>>2]+1|0;I:switch(K[g+8|0]-4|0){case 2:d=J[g>>2];if(K[g+9|0]==8){if(!d)break H;if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+3|0]=K[b+3|0]^-1;H[b+7|0]=K[b+7|0]^-1;H[b+11|0]=K[b+11|0]^-1;H[b+15|0]=K[b+15|0]^-1;b=b+16|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+3|0]=K[b+ +6|0];H[b+6|0]=K[b+7|0];H[b+7|0]=f;b=b+8|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break F;c=0;while(1){e=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=e;b=b+2|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break F}if(!d)break F;if((d|0)!=1){f=d&-2;c=0;while(1){e=zEb(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24),16);H[b|0]=e;H[b+1|0]=e>>>8;H[b+2|0]=e>>>16;H[b+3|0]=e>>>24;e=zEb(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24),16);H[b+4|0]=e;H[b+5|0]=e>>>8;H[b+6|0]=e>>>16;H[b+7|0]=e>>>24;b=b+8|0;c=c+2|0;if((f| +0)!=(c|0))continue;break}}if(!(d&1))break F;c=zEb(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24),16);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24}b=J[a+208>>2]}H:{if(!(b&524288))break H;b=J[a+356>>2]+1|0;I:switch(K[g+8|0]-4|0){case 2:d=J[g>>2];if(K[g+9|0]==8){if(!d)break H;if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+3|0]=K[b+3|0]^-1;H[b+7|0]=K[b+7|0]^-1;H[b+11|0]=K[b+11|0]^-1;H[b+15|0]=K[b+15|0]^-1;b=b+16|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+3|0]=K[b+ 3|0]^-1;b=b+4|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break H}if(!d)break H;if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+6|0]=K[b+6|0]^-1;H[b+7|0]=K[b+7|0]^-1;H[b+14|0]=K[b+14|0]^-1;H[b+15|0]=K[b+15|0]^-1;H[b+22|0]=K[b+22|0]^-1;H[b+23|0]=K[b+23|0]^-1;H[b+30|0]=K[b+30|0]^-1;H[b+31|0]=K[b+31|0]^-1;b=b+32|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+6|0]=K[b+6|0]^-1;H[b+7|0]=K[b+7|0]^-1;b=b+8|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break H;case 0:break I;default:break H}d= J[g>>2];if(K[g+9|0]==8){if(!d)break H;if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+1|0]=K[b+1|0]^-1;H[b+3|0]=K[b+3|0]^-1;H[b+5|0]=K[b+5|0]^-1;H[b+7|0]=K[b+7|0]^-1;b=b+8|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+1|0]=K[b+1|0]^-1;b=b+2|0;c=c+1|0;if((d|0)!=(c|0))continue;break}break H}if(!d)break H;if(d>>>0>=4){e=d&-4;c=0;while(1){H[b+2|0]=K[b+2|0]^-1;H[b+3|0]=K[b+3|0]^-1;H[b+6|0]=K[b+6|0]^-1;H[b+7|0]=K[b+7|0]^-1;H[b+10|0]=K[b+10|0]^-1;H[b+11|0]=K[b+11|0]^-1;H[b+14|0]=K[b+ -14|0]^-1;H[b+15|0]=K[b+15|0]^-1;b=b+16|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+2|0]=K[b+2|0]^-1;H[b+3|0]=K[b+3|0]^-1;b=b+4|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}b=J[a+208>>2];if(b&1){mW(g,J[a+356>>2]+1|0);b=J[a+208>>2]}if(!(b&32))break t;rW(g,J[a+356>>2]+1|0)}}b=K[o+15|0];if((b|0)!=K[a+404|0]|(b|0)!=K[a+409|0])break a;if(!(!(K[a+660|0]&4)|K[a+664|0]!=64)){b=J[a+356>>2]+1|0;d=K[o+12|0];J:{if(!(d&2))break J;c=J[o+4>>2];K:switch(K[o+13|0]-8|0){case 0:g=3;L:switch(d- +14|0]^-1;H[b+15|0]=K[b+15|0]^-1;b=b+16|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}d=d&3;if(!d)break H;c=0;while(1){H[b+2|0]=K[b+2|0]^-1;H[b+3|0]=K[b+3|0]^-1;b=b+4|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}b=J[a+208>>2];if(b&1){hZ(g,J[a+356>>2]+1|0);b=J[a+208>>2]}if(!(b&32))break t;wZ(g,J[a+356>>2]+1|0)}}b=K[o+15|0];if((b|0)!=K[a+404|0]|(b|0)!=K[a+409|0])break a;if(!(!(K[a+660|0]&4)|K[a+664|0]!=64)){b=J[a+356>>2]+1|0;d=K[o+12|0];J:{if(!(d&2))break J;c=J[o+4>>2];K:switch(K[o+13|0]-8|0){case 0:g=3;L:switch(d- 2|0){case 4:g=4;break;case 0:break L;default:break J}if(!c)break J;if((c|0)!=1){f=c&-2;d=0;while(1){e=K[b+1|0];H[b|0]=K[b|0]-e;H[b+2|0]=K[b+2|0]-e;b=b+g|0;e=K[b+1|0];H[b+2|0]=K[b+2|0]-e;H[b|0]=K[b|0]-e;b=b+g|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}if(!(c&1))break J;c=K[b+1|0];H[b|0]=K[b|0]-c;H[b+2|0]=K[b+2|0]-c;break J;case 8:break K;default:break J}e=6;M:switch(d-2|0){case 4:e=8;break;case 0:break M;default:break J}if(!c)break J;g=0;while(1){d=K[b+3|0]|K[b+2|0]<<8;f=(K[b+5|0]|K[b+4|0]<<8)-d|0; H[b+5|0]=f;d=(K[b+1|0]|K[b|0]<<8)-d|0;H[b+1|0]=d;H[b+4|0]=f>>>8;H[b|0]=d>>>8;b=b+e|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}}b=0;c=0;i=0;n=K[o+15|0];g=n+7|0;k=a;e=J[a+356>>2];m=J[o+8>>2];r=K[a+400|0];t=r<<24>>24;d=2147483647;N:{if(!(r&8)|(r|0)==8)break N;if(!m){d=0;break N}h=e;d=0;if(m>>>0>=4){a=m&-4;while(1){j=d;d=H[h+1|0];f=d&255;j=j+((d|0)<0?256-f|0:f)|0;d=H[h+2|0];f=d&255;j=j+((d|0)<0?256-f|0:f)|0;d=H[h+3|0];f=d&255;j=j+((d|0)<0?256-f|0:f)|0;d=H[h+4|0];f=d&255;d=j+((d|0)<0?256-f|0:f)|0;h=h+4| 0;b=b+4|0;if((a|0)!=(b|0))continue;break}}a=m&3;if(!a)break N;while(1){j=d;b=H[h+1|0];d=b&255;d=j+((b|0)<0?256-d|0:d)|0;h=h+1|0;c=c+1|0;if((a|0)!=(c|0))continue;break}}q=g>>>3|0;j=J[k+352>>2];O:{P:{Q:{R:{if((t|0)==16){b=e+1|0;h=J[k+360>>2]+1|0;if(!n){a=0;c=b;break Q}a=q>>>0<=1?1:q;g=a&7;if(n>>>0<57){c=b;break R}f=a&56;c=b;while(1){H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];H[h+3|0]=K[c+3|0];H[h+4|0]=K[c+4|0];H[h+5|0]=K[c+5|0];H[h+6|0]=K[c+6|0];H[h+7|0]=K[c+7|0];h=h+8|0;c=c+8|0;i=i+8|0;if((f| @@ -4792,254 +5040,288 @@ a=g;break da}v=f&62;i=0;a=g;l=0;while(1){r=K[a|0]-(K[c|0]>>>1|0)|0;H[b|0]=r;s=K[ a=a+2|0;h=h+2|0;b=b+2|0;g=g+2|0;if((m|0)!=(g|0))continue;break}}h=J[f>>2]}fa:{ga:{ha:{if((t|0)==-128){d=j+1|0;a=e+1|0;h=J[k+372>>2]+1|0;if(!n){f=0;c=a;b=d;break ga}f=q>>>0<=1?1:q;g=f&3;if(n>>>0<25){b=d;c=a;break ha}e=f&60;i=0;b=d;c=a;while(1){H[h|0]=K[c|0]-K[b|0];H[h+1|0]=K[c+1|0]-K[b+1|0];H[h+2|0]=K[c+2|0]-K[b+2|0];H[h+3|0]=K[c+3|0]-K[b+3|0];h=h+4|0;b=b+4|0;c=c+4|0;i=i+4|0;if((e|0)!=(i|0))continue;break}break ha}if((t|0)>=0)break V;g=j+1|0;f=e+1|0;c=J[k+372>>2]+1|0;ia:{if(!n){i=0;b=f;a=g;l=0;break ia}l= q>>>0<=1?1:q;q=l&1;ja:{if(n>>>0<9){i=0;a=g;b=f;break ja}n=l&62;i=0;a=g;b=f;s=0;while(1){e=K[b|0]-K[a|0]|0;H[c|0]=e;j=K[b+1|0]-K[a+1|0]|0;H[c+1|0]=j;p=i;i=e&255;i=p+(e<<24>>24<0?256-i|0:i)|0;e=j&255;i=i+(j<<24>>24<0?256-e|0:e)|0;c=c+2|0;a=a+2|0;b=b+2|0;s=s+2|0;if((n|0)!=(s|0))continue;break}}if(!q)break ia;e=K[b|0]-K[a|0]|0;H[c|0]=e;j=e&255;i=(e<<24>>24<0?256-j|0:j)+i|0;c=c+1|0;a=a+1|0;b=b+1|0}ka:{if(m>>>0<=l>>>0)break ka;while(1){t=K[f|0];e=K[g|0];j=t-e|0;n=j>>31;s=K[a|0];q=s-e|0;u=q+j|0;r=u>>31; p=e;e=(j^n)-n|0;j=(r^u)-r|0;n=e>>>0>j>>>0?p:s;p=j;j=q>>31;j=(j^q)-j|0;e=K[b|0]-(e>>>0>>0?n:p>>>0>>0?n:t)|0;H[c|0]=e;j=e&255;i=(e<<24>>24<0?256-j|0:j)+i|0;if(i>>>0>d>>>0)break ka;a=a+1|0;g=g+1|0;f=f+1|0;b=b+1|0;c=c+1|0;l=l+1|0;if(m>>>0>l>>>0)continue;break}}if(d>>>0<=i>>>0)break V;g=k+372|0;break fa}if(!g)break ga;i=0;while(1){H[h|0]=K[c|0]-K[b|0];h=h+1|0;b=b+1|0;c=c+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}g=k+372|0;if(f>>>0>=m>>>0)break fa;while(1){l=K[a|0];e=K[d|0];j=l-e|0;i=j>>31;r=K[b| -0];n=r-e|0;t=n+j|0;q=t>>31;p=e;e=(i^j)-i|0;j=(q^t)-q|0;i=e>>>0>j>>>0?p:r;p=j;j=n>>31;j=(j^n)-j|0;H[h|0]=K[c|0]-(e>>>0>>0?i:p>>>0>>0?i:l);h=h+1|0;c=c+1|0;a=a+1|0;d=d+1|0;b=b+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}h=J[g>>2]}a=J[o+8>>2];J[k+216>>2]=0;J[k+212>>2]=h;b=k+212|0;c=a+1|0;h=0;la:{ma:{while(1){if(!h){J[k+216>>2]=c;c=0}if(Ak(b,0)){a=J[k+236>>2];if(a)break ma;Ad(k,63394);B()}if(!J[k+228>>2]){Qh(k,1229209940,J[k+268>>2],J[k+272>>2]);a=J[k+272>>2];J[k+224>>2]=J[k+268>>2];J[k+228>>2]= -a;J[k+200>>2]=J[k+200>>2]|4}h=J[k+216>>2];if(h|c)continue;break}a=J[k+352>>2];if(a){b=J[k+356>>2];J[k+356>>2]=a;J[k+352>>2]=b}Nn(k);a=J[k+452>>2]+1|0;J[k+452>>2]=a;if(a>>>0>J[k+448>>2]-1>>>0)na:{if(!k|M[k+344>>2]>=M[k+328>>2])break na;oa:{b=k+212|0;if(Ak(b,2))break oa;while(1){a=J[k+228>>2];if(!a){yU(k,J[k+268>>2],J[k+272>>2]);if(!Ak(b,2))continue;break oa}break}b=J[k+272>>2];if((b|0)!=(a|0))yU(k,J[k+268>>2],b-a|0);J[k+452>>2]=0;a=J[k+444>>2];if(a)gc[a|0](k);break na}a=J[k+236>>2];if(!a){Ad(k,59146); -B()}Ad(k,a);B()}break la}Ad(k,a);B()}a=J[k+524>>2];if(!a)break c;gc[a|0](k,J[k+344>>2],K[k+399|0])}bc=o+16|0;return}Ad(a,58668);B()}Ad(a,58898);B()}function tX(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,w=0,x=0,y=0,z=0;d=bc-176|0;bc=d;a:{b:{c=J[a>>2];if(!(!c|!J[c+28>>2])){n=1E3;f=zc(1E3);H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;H[f+4|0]=0;H[f+5|0]=0;H[f+6|0]=0;H[f+7|0]=0;o=8;j=f+8|0;c=J[c+28>>2];t=J[c+132>>2];if(t){J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]= -0;J[695492]=0;w=J[J[t+32>>2]+8>>2];c=J[695492];J[695492]=0;c:{d:{e:{if((c|0)!=1){if((w|0)>0)break e;break c}e=Z()|0;break d}p=a+36|0;s=a+32|0;k=(b&2)>>>1|0;f:{g:{h:{i:{j:{k:{l:{while(1){m:{J[695492]=0;h=J[J[J[t+32>>2]>>2]+(m<<2)>>2];c=J[695492];J[695492]=0;n:{o:{p:{q:{r:{s:{t:{if((c|0)!=1){if(!h)break n;J[695492]=0;J[d+144>>2]=0;J[d+148>>2]=0;ca(3549,h|0,d+8|0,d+144|0);c=J[695492];J[695492]=0;if((c|0)==1)break t;c=J[d+8>>2];u:{v:{e=J[d+48>>2];g=J[d+52>>2];if((e|0)==(g|0))break v;while(1){if((c|0)== -J[e>>2])break v;e=e+4|0;if((g|0)!=(e|0))continue;break}break u}if((e|0)!=(g|0))break n}J[d+128>>2]=13;J[d+112>>2]=13;J[d+96>>2]=13;w:{x:{y:{z:{if((c|0)>=0){J[695492]=0;c=ga(3291,h|0,833709,d+128|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;A:{if(J[c>>2]!=7)break A;J[695492]=0;c=ha(3203,J[d+136>>2],775722,d+112|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;if(J[c>>2]!=7)break A;e=0;g=J[d+120>>2];if(J[g+16>>2]<=0)break A;while(1){J[695492]=0;c=ga(3346,g|0,e|0,d+96|0)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break f;if(J[c>>2]==9){c=J[d+108>>2];J[d+32>>2]=J[d+104>>2];J[d+36>>2]=c;J[695492]=0;c=J[d+36>>2];g=J[d+12>>2];i=J[d+32>>2];l=J[d+8>>2];r=J[695492];J[695492]=0;if((r|0)==1)break h;if((c|0)==(g|0)&(i|0)==(l|0))break z}J[695492]=0;_(3205,d+96|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;e=e+1|0;g=J[d+120>>2];if((e|0)>2])continue;break}}J[695492]=0;c=d+128|0;_(3205,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break s;J[695492]=0;e=d+112|0;_(3205,e|0);g=J[695492];J[695492]=0;if((g| -0)==1)break s;B:{C:{if(J[t+8>>2]!=7)break C;g=J[t+16>>2];J[695492]=0;c=ha(3203,g|0,833709,c|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i;if(J[c>>2]!=7)break C;J[695492]=0;c=ha(3203,J[d+136>>2],775722,e|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;if(J[c>>2]!=7)break C;e=0;g=J[d+120>>2];if(J[g+16>>2]<=0)break C;while(1){J[695492]=0;c=ga(3346,g|0,e|0,d+96|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break g;if(J[c>>2]==9){c=J[d+108>>2];J[d+32>>2]=J[d+104>>2];J[d+36>>2]=c;J[695492]=0;c=J[d+36>> -2];g=J[d+12>>2];i=J[d+32>>2];l=J[d+8>>2];r=J[695492];J[695492]=0;if((r|0)==1)break B;if((c|0)==(g|0)&(i|0)==(l|0))break z}J[695492]=0;_(3205,d+96|0);c=J[695492];J[695492]=0;if((c|0)==1)break g;e=e+1|0;g=J[d+120>>2];if((e|0)>2])continue;break}}g=0;J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+168>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;e=0;break x}e=Z()|0;break d}J[695492]=0;c=d+128|0;_(3205,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break s;J[695492]=0;e=d+112|0;_(3205,e|0);g=J[695492];J[695492]=0;if((g| -0)==1)break s;J[695492]=0;g=d+96|0;_(3205,g|0);i=J[695492];J[695492]=0;if((i|0)==1)break s;J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;i=J[a>>2];J[695492]=0;e=ja(3551,i|0,h|0,c|0,e|0,g|0,d+32|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=0;D:{if(!e)break D;E:{F:{e=J[d+48>>2];g=J[d+52>>2];if((e|0)==(g|0))break F;i=J[d+104>>2];while(1){if((i|0)==J[e>>2])break F;e=e+4|0;if((g|0)!=(e|0))continue;break}break E}if((e|0)!=(g|0))break D}c=k}if(H[d+43|0]<0)qc(J[d+32>>2]);g=0;J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]= -0;J[d+168>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;e=0;if(c)break y;break x}e=Z()|0;if(H[d+43|0]>=0)break d;qc(J[d+32>>2]);break d}J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+168>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0}H[d+64|0]=0;H[d+20|0]=0;c=J[a+20>>2];e=J[a+16>>2];g=J[a>>2];J[695492]=0;l=c;c=d+32|0;Oa(3347,d+80|0,g|0,e|0,l|0,d+112|0,d+96|0,b|0,c|0,c|0,d- -64|0,d+20|0);c=J[695492];J[695492]=0;if((c|0)==1)break w;if(H[d+171|0]<0)qc(J[d+160>>2]);J[d+168>>2]=J[d+88>>2];c=J[d+84>>2];J[d+160>>2]=J[d+80>>2];J[d+164>> -2]=c;g=J[d+36>>2];e=K[d+43|0]}c=e<<24>>24<0;e=c?g:e&255;if(!e){c=f;break o}J[695492]=0;g=d+80|0;ca(1618,g|0,(c?J[d+32>>2]:d+32|0)|0,e|0);c=J[695492];J[695492]=0;G:{H:{if((c|0)!=1){J[695492]=0;c=xi(s,g);e=J[695492];J[695492]=0;if((e|0)==1)break G;if((c|0)!=(p|0)){c=f;break p}c=K[d+43|0];e=c<<24>>24<0;g=e?J[d+32>>2]:d+32|0;i=e?J[d+36>>2]:c;r=i+4|0;I:{if(!f){o=0;n=r>>>0<=1E3?1E3:r;j=zc(n);c=j;break I}c=o+r|0;if(c>>>0<=n>>>0){c=f;break I}while(1){n=n<<1;if(c>>>0>n>>>0)continue;break}c=Vd(f,n);if(!c){c= -zc(n);tc(c,f,o);qc(f)}j=c+o|0}H[j|0]=i;H[j+1|0]=i>>>8;H[j+2|0]=i>>>16;H[j+3|0]=i>>>24;v=tc(j+4|0,g,i);q=J[d+104>>2];e=J[d+52>>2];g=J[d+56>>2];J:{if(e>>>0>>0){J[e>>2]=q;J[d+52>>2]=e+4;break J}K:{L:{l=J[d+48>>2];x=e-l>>2;f=x+1|0;M:{if(f>>>0>=1073741824){J[695492]=0;_(1589,d+48|0);a=J[695492];J[695492]=0;if((a|0)==1)break M;break m}g=g-l|0;j=g>>1;j=g>>>0>=2147483644?1073741823:f>>>0>>0?j:f;if(!j){f=0;break K}if(j>>>0<1073741824)break L;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break m}e= -Z()|0;break q}J[695492]=0;f=$(4,j<<2)|0;g=J[695492];J[695492]=0;if((g|0)==1)break H}g=(x<<2)+f|0;J[g>>2]=q;q=g+4|0;if((e|0)!=(l|0))while(1){g=g-4|0;e=e-4|0;J[g>>2]=J[e>>2];if((e|0)!=(l|0))continue;break}J[d+56>>2]=(j<<2)+f;J[d+52>>2]=q;J[d+48>>2]=g;if(!l)break J;qc(l)}J[695492]=0;f=d+80|0;J[d+20>>2]=f;oa(3344,d- -64|0,s|0,f|0,841606,d+20|0,d+156|0);f=J[695492];J[695492]=0;if((f|0)==1)break r;u=u+1|0;o=o+r|0;j=i+v|0;g=J[d+64>>2];f=g+28|0;if((f|0)==(d+160|0))break p;i=K[d+171|0];e=i<<24>>24;if(H[g+ -39|0]>=0){if((e|0)>=0){e=J[d+164>>2];J[f>>2]=J[d+160>>2];J[f+4>>2]=e;J[f+8>>2]=J[d+168>>2];break p}J[695492]=0;ga(1630,f|0,J[d+160>>2],J[d+164>>2])|0;f=J[695492];J[695492]=0;if((f|0)!=1)break p;break r}J[695492]=0;l=f;f=(e|0)<0;ga(1629,l|0,(f?J[d+160>>2]:d+160|0)|0,(f?J[d+164>>2]:i)|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break p;break r}e=Z()|0;break j}e=Z()|0;break q}c=f;e=Z()|0;break q}e=Z()|0;break j}e=Z()|0;break d}e=Z()|0;break d}e=Z()|0;break d}e=Z()|0}if(H[d+91|0]<0)qc(J[d+80>>2]);f=c;break j}if(H[d+ -91|0]>=0)break o;qc(J[d+80>>2])}J[695492]=0;_(3205,d+128|0);f=J[695492];J[695492]=0;if((f|0)==1)break l;J[695492]=0;_(3205,d+112|0);f=J[695492];J[695492]=0;if((f|0)==1)break l;J[695492]=0;_(3205,d+96|0);f=J[695492];J[695492]=0;if((f|0)==1)break l;N:{if(J[h+40>>2]){f=c;break N}J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;f=J[a>>2];J[695492]=0;f=ja(3551,f|0,h|0,d+128|0,d+112|0,d+96|0,d+80|0)|0;e=J[695492];J[695492]=0;O:{P:{Q:{R:{S:{T:{if((e|0)!=1)U:{if(!f)break P;V:{W:{e=J[d+48>>2];f=J[d+52>>2];if((e|0)== -(f|0))break W;h=J[d+104>>2];while(1){if((h|0)==J[e>>2])break W;e=e+4|0;if((f|0)!=(e|0))continue;break}break V}if((e|0)!=(f|0))break P}H[d+79|0]=0;H[d+78|0]=0;f=J[a+20>>2];e=J[a+16>>2];h=J[a>>2];J[695492]=0;l=f;f=d+32|0;Oa(3347,d- -64|0,h|0,e|0,l|0,d+112|0,d+96|0,b|0,f|0,f|0,d+79|0,d+78|0);f=J[695492];J[695492]=0;X:{Y:{if((f|0)!=1){if(H[d+171|0]<0)qc(J[d+160>>2]);J[d+168>>2]=J[d+72>>2];f=J[d+68>>2];J[d+160>>2]=J[d+64>>2];J[d+164>>2]=f;J[695492]=0;f=d- -64|0;e=H[d+43|0];h=(e|0)<0;ca(1618,f|0,(h?J[d+ -32>>2]:d+32|0)|0,(h?J[d+36>>2]:e&255)|0);e=J[695492];J[695492]=0;if((e|0)==1)break U;J[695492]=0;f=xi(s,f);e=J[695492];J[695492]=0;if((e|0)==1)break X;if((f|0)!=(p|0)){f=c;break Q}f=K[d+43|0];e=f<<24>>24<0;g=e?J[d+32>>2]:d+32|0;h=e?J[d+36>>2]:f;i=h+4|0;Z:{if(!c){o=0;n=i>>>0<=1E3?1E3:i;j=zc(n);f=j;break Z}f=i+o|0;if(f>>>0<=n>>>0){f=c;break Z}while(1){n=n<<1;if(f>>>0>n>>>0)continue;break}f=Vd(c,n);if(!f){f=zc(n);tc(f,c,o);qc(c)}j=f+o|0}H[j|0]=h;H[j+1|0]=h>>>8;H[j+2|0]=h>>>16;H[j+3|0]=h>>>24;q=tc(j+ -4|0,g,h);j=J[d+104>>2];e=J[d+52>>2];l=J[d+56>>2];_:{if(e>>>0>>0){J[e>>2]=j;J[d+52>>2]=e+4;break _}$:{aa:{c=J[d+48>>2];v=e-c>>2;g=v+1|0;ba:{if(g>>>0>=1073741824){J[695492]=0;_(1589,d+48|0);break ba}l=l-c|0;r=l>>1;l=l>>>0>=2147483644?1073741823:g>>>0>>0?r:g;if(!l){r=0;break $}if(l>>>0<1073741824)break aa;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break m;e=Z()|0;break S}J[695492]=0;r=$(4,l<<2)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Y}g=(v<<2)+r|0;J[g>>2]=j;j=g+4|0;if((c|0)!= -(e|0))while(1){g=g-4|0;e=e-4|0;J[g>>2]=J[e>>2];if((c|0)!=(e|0))continue;break}J[d+56>>2]=(l<<2)+r;J[d+52>>2]=j;J[d+48>>2]=g;if(!c)break _;qc(c)}J[695492]=0;c=d- -64|0;J[d+156>>2]=c;oa(3344,d+20|0,s|0,c|0,841606,d+156|0,d+155|0);c=J[695492];J[695492]=0;if((c|0)==1)break T;u=u+1|0;o=i+o|0;j=h+q|0;h=J[d+20>>2];c=h+28|0;if((c|0)==(d+160|0))break Q;g=K[d+171|0];e=g<<24>>24;if(H[h+39|0]>=0){if((e|0)>=0){e=J[d+164>>2];J[c>>2]=J[d+160>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+168>>2];break Q}J[695492]=0;ga(1630,c|0, -J[d+160>>2],J[d+164>>2])|0;c=J[695492];J[695492]=0;if((c|0)!=1)break Q;break T}J[695492]=0;h=c;c=(e|0)<0;ga(1629,h|0,(c?J[d+160>>2]:d+160|0)|0,(c?J[d+164>>2]:g)|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break Q;break T}break U}e=Z()|0;break S}f=c;e=Z()|0;break S}e=Z()|0;f=c;break R}e=Z()|0}if(H[d+75|0]>=0)break R;qc(J[d+64>>2])}if(H[d+91|0]>=0)break j;qc(J[d+80>>2]);break j}if(H[d+75|0]>=0)break O;qc(J[d+64>>2]);break O}f=c}if(H[d+91|0]>=0)break N;qc(J[d+80>>2])}J[695492]=0;_(3205,d+128|0);c=J[695492]; -J[695492]=0;if((c|0)==1)break k;J[695492]=0;_(3205,d+112|0);c=J[695492];J[695492]=0;if((c|0)==1)break k;J[695492]=0;_(3205,d+96|0);c=J[695492];J[695492]=0;if((c|0)==1)break k;if(H[d+171|0]<0)qc(J[d+160>>2]);if(H[d+43|0]>=0)break n;qc(J[d+32>>2])}m=m+1|0;if((w|0)!=(m|0))continue;break c}break}B()}f=c}e=Z()|0}if(H[d+171|0]<0)qc(J[d+160>>2]);if(H[d+43|0]>=0)break d;qc(J[d+32>>2]);break d}e=Z()|0;break d}e=Z()|0;break d}e=Z()|0;break d}e=Z()|0}a=J[d+48>>2];if(!a)break a;J[d+52>>2]=a;qc(a);break a}c=J[d+ -48>>2];if(c){J[d+52>>2]=c;qc(c)}c=J[J[a>>2]+28>>2]}v=J[c+20>>2];if((v|0)>0){l=a+36|0;w=d+12|0;r=0;while(1){c=J[J[a>>2]+28>>2];J[695492]=0;r=r+1|0;c=aa(3280,c|0,r|0)|0;e=J[695492];J[695492]=0;ca:{da:{ea:{fa:{if((e|0)!=1){if(!c)break ca;J[d+128>>2]=13;e=J[c+4>>2];J[695492]=0;k=c+16|0;c=d+128|0;e=ha(3207,k|0,e|0,c|0,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break b;if(J[e>>2]!=6){J[695492]=0;_(3205,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ca;break b}t=0;x=J[J[d+136>>2]+12>>2];if((x|0)<=0)break da; -while(1){J[d+112>>2]=13;J[695492]=0;c=d+112|0;e=ha(3283,J[d+136>>2],t|0,c|0,0)|0;k=J[695492];J[695492]=0;ga:{ha:{if((k|0)!=1){if(J[e>>2]==7)break ha;J[695492]=0;_(3205,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ga}e=Z()|0;break a}J[d+96>>2]=13;J[d+88>>2]=0;J[695492]=0;J[d+80>>2]=0;J[d+84>>2]=0;c=ha(3203,J[d+120>>2],839365,d+96|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break fa;if(J[c>>2]==4){J[695492]=0;aa(2808,d+80|0,J[d+104>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break fa}J[695492]=0;_(3205, -d+96|0);c=J[695492];J[695492]=0;if((c|0)==1)break fa;e=K[d+91|0];c=e<<24>>24<0;ia:{ja:{if(((c?J[d+84>>2]:e)|0)==8){c=c?J[d+80>>2]:d+80|0;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==1701147206&(K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))==1954047316)break ja}J[695492]=0;_(3205,d+112|0);c=J[695492];J[695492]=0;if((c|0)==1)break fa;break ia}J[d+48>>2]=13;J[695492]=0;c=d+48|0;e=ha(3203,J[d+120>>2],839511,c|0,0)|0;k=J[695492];J[695492]=0;ka:{la:{if((k|0)==1)break la;if(J[e>>2]==3)break ka; -J[695492]=0;_(3205,d+112|0);e=J[695492];J[695492]=0;if((e|0)==1)break la;J[695492]=0;_(3205,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ia}e=Z()|0;break ea}J[695492]=0;k=$(4,12)|0;c=J[695492];J[695492]=0;ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{if((c|0)!=1){J[695492]=0;c=aa(3187,k|0,J[d+56>>2])|0;e=J[695492];J[695492]=0;if((e|0)==1)break ya;e=J[c+4>>2];k=J[c>>2];J[695492]=0;h=d- -64|0;ca(3281,h|0,k|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break xa;qc(dd(c));J[695492]=0;_(3205,d+48| -0);c=J[695492];J[695492]=0;if((c|0)==1)break wa;J[d+32>>2]=13;J[695492]=0;c=d+32|0;ga(3331,J[d+136>>2],t|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break va;J[695492]=0;e=d+20|0;da(3312,e|0,h|0);k=J[695492];J[695492]=0;if((k|0)==1)break ua;k=J[a+20>>2];h=J[a+16>>2];g=J[a>>2];J[695492]=0;ua(3553,d+8|0,g|0,c|0,h|0,k|0,e|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break ta;g=J[d+8>>2];if((w|0)!=(g|0))break sa;break ra}e=Z()|0;break ea}e=Z()|0;qc(k);break ea}e=Z()|0;break ea}e=Z()|0;break na}e=Z()|0; -break na}e=Z()|0;break na}e=Z()|0;k=f;break oa}while(1){za:{h=g+16|0;e=J[l>>2];Aa:{Ba:{if(!e)break Ba;i=l;while(1){m=K[g+27|0];c=m<<24>>24<0;p=K[e+27|0];k=p<<24>>24<0;s=c?J[g+20>>2]:m;p=k?J[e+20>>2]:p;q=s>>>0

      >>0;m=q?s:p;Ca:{if(m){m=gd(k?J[e+16>>2]:e+16|0,c?J[g+16>>2]:h,m);if(m)break Ca}m=p>>>0>>0?-1:q}c=(m|0)<0;i=c?i:e;c=J[(c?e+4|0:e)>>2];e=c;if(c)continue;break}if((i|0)==(l|0))break Ba;k=K[i+27|0];c=k<<24>>24<0;m=K[g+27|0];e=m<<24>>24<0;Da:{k=c?J[i+20>>2]:k;m=e?J[g+20>>2]:m;s=k>>>0>>0?k: -m;if(s){c=gd(e?J[h>>2]:h,c?J[i+16>>2]:i+16|0,s);if(c)break Da}if(k>>>0>m>>>0)break Ba;break Aa}if((c|0)>=0)break Aa}e=J[g+20>>2];k=J[g+16>>2];c=K[g+27|0];J[695492]=0;i=d+160|0;y=k;k=c<<24>>24<0;ia(1626,i|0,(k?y:h)|0,(k?e:c)|0,0);c=J[695492];J[695492]=0;Ea:{Fa:{Ga:{if((c|0)!=1){c=K[d+171|0];e=c<<24>>24<0;i=e?J[d+160>>2]:i;m=e?J[d+164>>2]:c;s=m+4|0;Ha:{if(!f){o=0;n=s>>>0<=1E3?1E3:s;j=zc(n);k=j;break Ha}c=o+s|0;if(c>>>0<=n>>>0){k=f;break Ha}while(1){n=n<<1;if(c>>>0>n>>>0)continue;break}k=Vd(f,n);if(!k){k= -zc(n);tc(k,f,o);qc(f)}j=k+o|0}H[j|0]=m;H[j+1|0]=m>>>8;H[j+2|0]=m>>>16;H[j+3|0]=m>>>24;y=tc(j+4|0,i,m);if(H[d+171|0]<0)qc(J[d+160>>2]);f=l;e=f;c=J[e>>2];if(!c)break Fa;while(1){i=c+16|0;e=c;p=K[c+27|0];c=p<<24>>24<0;q=K[g+27|0];j=q<<24>>24<0;Ia:{Ja:{Ka:{p=c?J[e+20>>2]:p;q=j?J[g+20>>2]:q;z=q>>>0>p>>>0?p:q;if(z){c=gd(j?J[h>>2]:h,c?J[e+16>>2]:i,z);if(c)break Ka}if(q>>>0

      >>0)break Ja;break Ia}if((c|0)>=0)break Ia}f=e;c=J[e>>2];if(c)continue;break Fa}p=K[g+27|0];c=p<<24>>24<0;q=K[e+27|0];j=q<<24>>24< -0;La:{Ma:{p=c?J[g+20>>2]:p;q=j?J[e+20>>2]:q;z=q>>>0>p>>>0?p:q;if(z){c=gd(j?J[i>>2]:i,c?J[g+16>>2]:h,z);if(c)break Ma}if(q>>>0

      >>0)break La;break Ga}if((c|0)>=0)break Ga}f=e+4|0;c=J[e+4>>2];if(c)continue;break}break Fa}break qa}i=J[f>>2];if(i)break Ea}J[695492]=0;i=$(4,40)|0;c=J[695492];J[695492]=0;if((c|0)==1)break za;J[d+164>>2]=l;J[d+160>>2]=i;c=i+16|0;H[d+168|0]=0;Na:{if(H[g+27|0]>=0){j=J[h+4>>2];J[c>>2]=J[h>>2];J[c+4>>2]=j;J[c+8>>2]=J[h+8>>2];break Na}h=J[g+20>>2];j=J[g+16>>2];J[695492]=0;ca(15, -c|0,j|0,h|0);c=J[695492];J[695492]=0;if((c|0)!=1)break Na;e=Z()|0;C_(d+160|0);break pa}J[i+8>>2]=e;J[i>>2]=0;J[i+4>>2]=0;J[i+36>>2]=0;J[i+28>>2]=0;J[i+32>>2]=0;J[f>>2]=i;h=i;c=J[J[a+32>>2]>>2];if(c){J[a+32>>2]=c;h=J[f>>2]}j=J[l>>2];f=(j|0)==(h|0);H[h+12|0]=f;Oa:{if(f)break Oa;while(1){c=J[h+8>>2];if(K[c+12|0])break Oa;Pa:{e=J[c+8>>2];f=J[e>>2];if((f|0)==(c|0)){f=J[e+4>>2];if(!(!f|K[f+12|0]))break Pa;Qa:{if(J[c>>2]==(h|0)){h=c;break Qa}h=J[c+4>>2];j=J[h>>2];J[c+4>>2]=j;f=c;if(j){J[j+8>>2]=c;e=J[c+ -8>>2];f=J[e>>2]}J[h+8>>2]=e;J[((c|0)==(f|0)?e:e+4|0)>>2]=h;J[h>>2]=c;J[c+8>>2]=h;e=J[h+8>>2];c=J[e>>2]}H[h+12|0]=1;H[e+12|0]=0;f=J[c+4>>2];J[e>>2]=f;if(f)J[f+8>>2]=e;f=J[e+8>>2];J[c+8>>2]=f;J[f+((J[f>>2]!=(e|0))<<2)>>2]=c;J[c+4>>2]=e;J[e+8>>2]=c;break Oa}if(!(K[f+12|0]|!f))break Pa;Ra:{if(J[c>>2]!=(h|0)){h=c;break Ra}f=J[h+4>>2];J[c>>2]=f;if(f){J[f+8>>2]=c;e=J[c+8>>2]}J[h+8>>2]=e;J[(J[e>>2]==(c|0)?e:e+4|0)>>2]=h;J[h+4>>2]=c;J[c+8>>2]=h;e=J[h+8>>2]}H[h+12|0]=1;H[e+12|0]=0;f=J[e+4>>2];c=J[f>>2];J[e+ -4>>2]=c;if(c)J[c+8>>2]=e;c=J[e+8>>2];J[f+8>>2]=c;J[c+((J[c>>2]!=(e|0))<<2)>>2]=f;J[f>>2]=e;J[e+8>>2]=f;break Oa}H[c+12|0]=1;H[e+12|0]=(e|0)==(j|0);H[f+12|0]=1;h=e;if((e|0)!=(j|0))continue;break}}J[a+40>>2]=J[a+40>>2]+1}o=o+s|0;j=m+y|0;u=u+1|0;Sa:{if((g|0)==(i|0))break Sa;c=g+28|0;f=i+28|0;h=K[g+39|0];e=h<<24>>24;if(H[i+39|0]>=0){if((e|0)>=0){e=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=e;J[f+8>>2]=J[c+8>>2];break Sa}c=J[g+32>>2];e=J[g+28>>2];J[695492]=0;ga(1630,f|0,e|0,c|0)|0;f=J[695492];J[695492]=0;if((f| -0)!=1)break Sa;break za}i=J[g+32>>2];m=J[g+28>>2];J[695492]=0;y=f;f=(e|0)<0;ga(1629,y|0,(f?m:c)|0,(f?i:h)|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break za}f=k}c=J[g+4>>2];Ta:{if(c)while(1){e=c;c=J[c>>2];if(c)continue;break Ta}while(1){e=J[g+8>>2];c=J[e>>2]!=(g|0);g=e;if(c)continue;break}}g=e;if((e|0)!=(w|0))continue;break ra}break}e=Z()|0;break pa}J[695492]=0;_(3205,d+32|0);c=J[695492];J[695492]=0;Ua:{if((c|0)!=1){g=0;c=J[d+20>>2];h=J[d+24>>2];if((c|0)!=(h|0))break Ua;break ma}break qa}while(1){k= -g<<2;e=J[k+c>>2];if(e){if(H[e+83|0]<0)qc(J[e+72>>2]);if(H[e+71|0]<0)qc(J[e+60>>2]);if(H[e+59|0]<0)qc(J[e+48>>2]);qc(e);J[k+J[d+20>>2]>>2]=0;h=J[d+24>>2];c=J[d+20>>2]}g=g+1|0;if(g>>>0>2>>>0)continue;break}break ma}e=Z()|0;k=f}cl(d+8|0,J[d+12>>2])}a=J[d+20>>2];if(a){J[d+24>>2]=a;qc(a)}f=k}if(H[d+75|0]>=0)break ea;qc(J[d+64>>2]);break ea}cl(d+8|0,J[d+12>>2]);c=J[d+20>>2];if(c){J[d+24>>2]=c;qc(c)}if(H[d+75|0]>=0)break ia;qc(J[d+64>>2])}if(H[d+91|0]>=0)break ga;qc(J[d+80>>2])}t=t+1|0;if((x|0)!=(t| -0))continue;break}break da}e=Z()|0;break a}e=Z()|0}if(H[d+91|0]>=0)break a;qc(J[d+80>>2]);break a}J[695492]=0;_(3205,d+128|0);c=J[695492];J[695492]=0;if((c|0)==1)break b}if((r|0)!=(v|0))continue;break}}if(o>>>0>=5){H[f+4|0]=u;H[f+5|0]=u>>>8;H[f+6|0]=u>>>16;H[f+7|0]=u>>>24}H[f|0]=o;H[f+1|0]=o>>>8;H[f+2|0]=o>>>16;H[f+3|0]=o>>>24}bc=d+176|0;return f}e=Z()|0}if(f)qc(f);ba(e|0);B()}function Jkb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;t=bc-16|0;bc=t;f=11;k=J[J[b+96>>2]+4>>2];o=pn(k,239693);a:{if(!o)break a;y=Dk(J[b+96>>2],241589,1);D=pn(k,241698);g=pn(k,241796);if(!g)break a;J[b+556>>2]=g;E=Dk(J[b+96>>2],241283,1);f=nd(a,0);if(f)break a;C=gc[J[o+4>>2]](a,b,c,d,e)|0;b:{if(!C){f=2;if(J[b+148>>2]!=1330926671)break a;f=0;if((c|0)<0)break a;g=0;c:{if(!(gc[J[b+516>>2]](b,1751474532,a,0)|0)){f=gc[J[o+8>>2]](a,b,c,d,e)|0;if(!f)break c;break a}f=gc[J[o+32>>2]](b,a)|0;if(f)break a;g=1}f=gc[J[b+ -516>>2]](b,1128678962,a,0)|0;J[t+12>>2]=f;if(!f){e=1;H[b+732|0]=1;break b}if((f&255)!=142)break a;e=0;f=gc[J[b+516>>2]](b,1128678944,a,0)|0;J[t+12>>2]=f;if(!f)break b;break a}e=0;f=nd(a,0);if(f)break a;J[t+12>>2]=0;g=1}z=J[b+100>>2];m=Zd(z,3136,t+12|0);f=J[t+12>>2];if(f)break a;J[b+712>>2]=m;o=b;b=g;l=bc-80|0;bc=l;q=J[a+28>>2];j=wc(m,0,3136);J[l+72>>2]=0;d=l- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[l+56>>2]=0;J[l+60>>2]=0;J[l+48>>2]=0;J[l+52>>2]=0;J[l+40>>2]=0;J[l+44>>2]=0;s=J[a+8>>2];H[j+32|0]=e;J[j+8>>2]= -q;J[j+4>>2]=a;J[j>>2]=k;J[j+12>>2]=s;d=Me(a,258320,j);J[l+76>>2]=d;d:{if(d)break d;e:{if(e){if(!(K[j+24|0]==2&K[j+26|0]>4)){J[l+76>>2]=2;break d}F=j,G=Wd(a,l+76|0),J[F+28>>2]=G;if(J[l+76>>2])break d;d=K[j+26|0];break e}f=Gg(a,l+76|0);if(J[l+76>>2])break d;f:{if(K[j+24|0]!=1)break f;d=K[j+26|0];if(d>>>0<4)break f;if(f>>>0<5)break e}J[l+76>>2]=2;break d}d=nd(a,d+s|0);J[l+76>>2]=d;if(d){if(!b)break d;J[l+76>>2]=2;break d}g:{if(e){J[j+1240>>2]=0;J[j+1244>>2]=0;J[j+1272>>2]=0;d=j+1264|0;J[d>>2]=0;J[d+ -4>>2]=0;f=j+1256|0;J[f>>2]=0;J[f+4>>2]=0;f=j+1248|0;J[f>>2]=0;J[f+4>>2]=0;J[j+1260>>2]=J[a+8>>2];f=d;d=J[j+28>>2];J[f>>2]=d;d=bg(a,d);J[l+76>>2]=d;if(d)break d;d=Qp(j+108|0,a,1,1);J[l+76>>2]=d;if(d)break d;break g}d=Qp(j+36|0,a,0,0);J[l+76>>2]=d;if(d){if(!b)break d;J[l+76>>2]=2;break d}d=J[j+48>>2];if(!(d>>>0<2|d>>>0<=M[j+60>>2])){J[l+76>>2]=b?2:3;break d}d=Qp(j+1240|0,a,0,0);J[l+76>>2]=d;if(d)break d;d=l+40|0;f=Qp(d,a,1,0);J[l+76>>2]=f;if(f)break d;f=Qp(j+108|0,a,1,0);J[l+76>>2]=f;if(f)break d;d= -kM(d,j+1360|0,j+1364|0,j+1368|0);J[l+76>>2]=d;if(d)break d;if(M[j+48>>2]<=M[j+1252>>2])break g;J[l+76>>2]=3;break d}J[j+1356>>2]=J[l+52>>2];h:{i:{if(b){A=c&65535;d=J[j+48>>2];if(A>>>0>>0|(c|0)<=0)break i;J[l+76>>2]=6;break d}if(M[j+48>>2]<2)break h;J[l+76>>2]=3;break d}J[j+16>>2]=d}if((c|0)<0)break d;d=n6(j+1372|0,j+1240|0,A,a,s,e?12288:4096,j,o);J[l+76>>2]=d;if(d)break d;d=nd(a,s+J[j+1484>>2]|0);J[l+76>>2]=d;if(d)break d;d=Qp(j+1204|0,a,0,e);J[l+76>>2]=d;if(d)break d;j:{if(!(!e&J[j+1504>>2]== -65535)){f=j+3112|0;d=bc-16|0;bc=d;k=J[a+28>>2];g=J[j+1552>>2];k:{l:{if(!g)break l;g=nd(a,g+s|0);J[d+12>>2]=g;if(g)break k;g=bg(a,2);J[d+12>>2]=g;if(g)break k;p=J[a+8>>2];g=Wd(a,d+12|0);if(J[d+12>>2])break k;if((g|0)!=1){J[d+12>>2]=3;break k}h=d+12|0;n=Kf(a,h);if(J[d+12>>2])break k;r=Wd(a,h);J[f>>2]=r;if(J[d+12>>2])break k;g=0;i=Sc(k,4,0,r,0,h);if(J[d+12>>2])break k;if(J[f>>2])while(1){F=(g<<2)+i|0,G=Kf(a,d+12|0),J[F>>2]=G;if(J[d+12>>2])break k;g=g+1|0;if(g>>>0>2])continue;break}g=nd(a,n+p|0); -J[d+12>>2]=g;if(g)break k;g=d+12|0;F=f,G=Wd(a,g),I[F+8>>1]=G;if(J[d+12>>2])break k;h=Wd(a,g);J[f+12>>2]=h;if(J[d+12>>2])break k;F=f,G=Sc(k,4,0,h,0,g),J[F+16>>2]=G;if(J[d+12>>2])break k;if(J[f+12>>2]){h=L[f+8>>1];n=0;while(1){r=J[f+16>>2]+(n<<2)|0;F=r,G=Sc(k,12,0,h,0,d+12|0),J[F>>2]=G;if(J[d+12>>2])break k;h=0;if(L[f+8>>1]){g=0;while(1){h=J[r>>2];u=Wd(a,d+12|0);if(J[d+12>>2])break k;v=Wd(a,d+12|0);if(J[d+12>>2])break k;x=Wd(a,d+12|0);if(J[d+12>>2])break k;h=P(g,12)+h|0;J[h>>2]=u<<16>>16<<2;J[h+8>> -2]=x<<16>>16<<2;J[h+4>>2]=v<<16>>16<<2;g=g+1|0;h=L[f+8>>1];if(g>>>0>>0)continue;break}}n=n+1|0;if(n>>>0>2])continue;break}}h=0;F=f,G=Sc(k,8,0,J[f>>2],0,d+12|0),J[F+4>>2]=G;if(J[d+12>>2])break k;if(!J[f>>2])break l;while(1){g=J[f+4>>2];n=nd(a,p+J[(h<<2)+i>>2]|0);J[d+12>>2]=n;if(n)break k;n=bg(a,4);J[d+12>>2]=n;if(n)break k;n=(h<<3)+g|0;g=d+12|0;r=Wd(a,g);J[n>>2]=r;if(J[d+12>>2])break k;F=n,G=Sc(k,4,0,r,0,g),J[F+4>>2]=G;if(J[d+12>>2])break k;if(J[n>>2]){g=0;while(1){r=Wd(a,d+12|0);J[J[n+ -4>>2]+(g<<2)>>2]=r;if(J[d+12>>2])break k;g=g+1|0;if(g>>>0>2])continue;break}}h=h+1|0;if(h>>>0>2])continue;break}}J[d+12>>2]=0}if(i)gc[J[k+8>>2]](k,i);if(J[d+12>>2]){w6(f,k);f=J[d+12>>2]}else f=0;bc=d+16|0;J[l+76>>2]=f;if(f)break d;d=nd(a,s+J[j+1536>>2]|0);J[l+76>>2]=d;if(d)break d;d=Qp(l+4|0,a,0,e);J[l+76>>2]=d;if(d)break d;f=J[l+16>>2];m:{if(f>>>0>256)break m;J[j+2024>>2]=f;d=0;f=Sc(q,652,0,f,0,l+76|0);if(J[l+76>>2])break m;g=J[l+16>>2];n:{if(!g)break n;if(g>>>0>=4){k=g&-4;i=j+2028|0;while(1){J[i+ -(d<<2)>>2]=f+P(d,652);h=d|1;J[i+(h<<2)>>2]=f+P(h,652);h=d|2;J[i+(h<<2)>>2]=f+P(h,652);h=d|3;J[i+(h<<2)>>2]=f+P(h,652);d=d+4|0;w=w+4|0;if((k|0)!=(w|0))continue;break}}i=g&3;if(i)while(1){J[(j+(d<<2)|0)+2028>>2]=f+P(d,652);d=d+1|0;B=B+1|0;if((i|0)!=(B|0))continue;break}if(!g){d=0;break n}f=e?16384:4096;d=0;while(1){g=n6(J[(j+(d<<2)|0)+2028>>2],l+4|0,d,a,s,f,j,o);J[l+76>>2]=g;if(g)break m;d=d+1|0;g=J[l+16>>2];if(d>>>0>>0)continue;break}d=g>>>0>1}if(d?0:e)break m;i=j+3052|0;f=J[j+1216>>2];g=bc-16| -0;bc=g;d=nd(a,s+J[j+1540>>2]|0);J[g+12>>2]=d;o:{if(d)break o;k=Gg(a,g+12|0);d=J[g+12>>2];if(d)break o;J[i+20>>2]=0;H[i|0]=k;d=3;p:switch(k&255){case 3:f=Wd(a,g+12|0);d=J[g+12>>2];if(d)break o;d=3;if(!f)break o;f=P(f,3)+2|0;break;case 0:break p;default:break o}J[i+12>>2]=f;d=yi(a,f,i+8|0)}bc=g+16|0;J[l+76>>2]=d}d=l+4|0;f=J[d>>2];if(f){g=d+32|0;i=J[f+28>>2];if(J[d+32>>2])Sf(f,g);f=J[d+28>>2];if(f)gc[J[i+8>>2]](i,f);J[g>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]= -0;J[d>>2]=0;J[d+4>>2]=0}if(!J[l+76>>2])break j;break d}J[j+2024>>2]=0}if(!J[j+1484>>2]){J[l+76>>2]=3;break d}J[j+20>>2]=J[j+1216>>2];d=kM(j+108|0,j+1352|0,0,0);J[l+76>>2]=d;if(d)break d;q:{if(e)break q;d=J[j+20>>2];if(!d)break q;g=j+1180|0;f=J[j+1476>>2];q=(b|0)!=0&J[j+1504>>2]!=65535;k=bc-16|0;bc=k;n=J[a+28>>2];J[k+8>>2]=0;r:{s:{t:{u:{if(f>>>0>=3){f=f+s|0;J[g+4>>2]=f;f=nd(a,f);J[k+8>>2]=f;if(f)break s;f=k+8|0;F=g,G=Gg(a,f)&255,J[F>>2]=G;if(J[k+8>>2])break s;f=Sc(n,2,0,d,0,f);J[g+8>>2]=f;if(J[k+8>> -2])break s;I[f>>1]=0;v:switch(J[g>>2]){case 0:f=1;i=Ue(a,(d<<1)-2|0);J[k+8>>2]=i;if(i)break s;if(d>>>0>=2)while(1){i=mf(a);I[J[g+8>>2]+(f<<1)>>1]=i;f=f+1|0;if((d|0)!=(f|0))continue;break}ne(a);break u;case 1:case 2:f=1;if(d>>>0<=1)break u;while(1){i=Wd(a,k+8|0);if(J[k+8>>2])break s;w:{if(J[g>>2]==2){h=Wd(a,k+8|0);if(!J[k+8>>2])break w;break s}h=Gg(a,k+8|0);if(J[k+8>>2])break s;h=h&255}x:{if(d>>>0<=f>>>0)break x;p=(h^65535)>>>0>>0?i^65535:h;r=J[g+8>>2];h=0;while(1){I[r+(f<<1)>>1]=i;f=f+1|0;if(d>>> -0<=f>>>0)break x;i=i+1|0;u=h>>>0

      >>0;h=h+1|0;if(u)continue;break}}if(d>>>0>f>>>0)continue;break}break u;default:break v}J[k+8>>2]=3;break s}J[g+4>>2]=f;y:switch(f|0){case 0:if(d>>>0>=230){J[k+8>>2]=3;break s}f=Sc(n,2,0,d,0,k+8|0);J[g+8>>2]=f;if(J[k+8>>2])break s;tc(f,258352,d<<1);break u;case 1:if(d>>>0>=167){J[k+8>>2]=3;break s}f=Sc(n,2,0,d,0,k+8|0);J[g+8>>2]=f;if(J[k+8>>2])break s;tc(f,258816,d<<1);break u;case 2:break y;default:break t}if(d>>>0>=88){J[k+8>>2]=3;break s}f=Sc(n,2,0,d,0,k+8|0); -J[g+8>>2]=f;if(J[k+8>>2])break s;tc(f,259152,d<<1)}z:{if(!q){f=J[k+8>>2];break z}f=0;J[k+12>>2]=0;A:{if(J[g+16>>2])break A;i=0;if(d){r=d&3;q=J[g+8>>2];u=0;B:{if(d>>>0<4){h=0;break B}v=d&-4;h=0;while(1){p=f<<1;x=L[q+(p|6)>>1];w=L[q+(p|4)>>1];B=L[q+(p|2)>>1];p=L[q+p>>1];h=h&65535;h=h>>>0

      >>0?p:h;h=h>>>0>>0?B:h;h=h>>>0>>0?w:h;h=h>>>0>>0?x:h;f=f+4|0;i=i+4|0;if((v|0)!=(i|0))continue;break}}if(r)while(1){i=L[q+(f<<1)>>1];h=h&65535;h=h>>>0>>0?i:h;f=f+1|0;u=u+1|0;if((r|0)!=(u|0))continue;break}i= -h&65535}h=Sc(n,2,0,i+1|0,0,k+12|0);J[g+12>>2]=h;f=J[k+12>>2];if(f)break A;C:{if((d|0)<=0)break C;q=J[g+8>>2];f=d;r=d&3;if(r){p=0;while(1){f=f-1|0;I[h+(L[q+(f<<1)>>1]<<1)>>1]=f;p=p+1|0;if((r|0)!=(p|0))continue;break}}if(d>>>0<4)break C;while(1){p=f-1|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;p=f-2|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;p=f-3|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;f=f-4|0;I[h+(L[q+(f<<1)>>1]<<1)>>1]=f;if(p>>>0>1)continue;break}}J[g+20>>2]=d;J[g+16>>2]=i;f=0}J[k+8>>2]=f}if(f)break s;d=0;break r}J[k+8>>2]=3}d= -J[g+8>>2];if(d)gc[J[n+8>>2]](n,d);J[g+8>>2]=0;d=J[g+12>>2];if(d)gc[J[n+8>>2]](n,d);J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;d=J[k+8>>2]}bc=k+16|0;J[l+76>>2]=d;if(d)break d;if(J[j+1504>>2]!=65535)break q;n=j+144|0;k=J[j+20>>2];h=a;d=J[j+1480>>2];p=0;q=bc-16|0;bc=q;a=3;D:{if(!J[g+8>>2])break D;f=wc(n+12|0,0,1024);if(d>>>0>=2){a=d+s|0;J[n+4>>2]=a;a=nd(h,a);J[q+8>>2]=a;if(a)break D;F=n,G=Gg(h,q+8|0)&255,J[F>>2]=G;a=J[q+8>>2];if(a)break D;f=Gg(h,q+8|0);a=J[q+8>>2];if(a)break D;s=f&255;a=3;E:{F:switch(J[n>> -2]&127){case 0:J[n+8>>2]=s+1;a=Ue(h,s);J[q+8>>2]=a;if(a)break D;G:{if(!f)break G;a=1;d=J[h+32>>2];if((f|0)!=1){p=s&254;f=0;while(1){if(a>>>0>>0){i=n+(K[d|0]<<1)|0;I[i+524>>1]=a;I[i+12>>1]=L[J[g+8>>2]+(a<<1)>>1]}i=a+1|0;if(i>>>0>>0){r=n+(K[d+1|0]<<1)|0;I[r+524>>1]=i;I[r+12>>1]=L[J[g+8>>2]+(i<<1)>>1]}d=d+2|0;a=a+2|0;f=f+2|0;if((p|0)!=(f|0))continue;break}}if(!(s&1)|a>>>0>=k>>>0)break G;d=n+(K[d|0]<<1)|0;I[d+524>>1]=a;I[d+12>>1]=L[J[g+8>>2]+(a<<1)>>1]}ne(h);break E;case 1:break F;default:break D}J[n+ -8>>2]=0;if(!f)break E;f=1;while(1){d=f;v=Gg(h,q+8|0);a=J[q+8>>2];if(a)break D;r=Gg(h,q+8|0);a=J[q+8>>2];if(a)break D;u=r&255;a=u+1|0;i=J[n+8>>2];if(u>>>0>=i>>>0){J[n+8>>2]=a;i=a}f=a+d|0;H:{if(f>>>0<=d>>>0)break H;a=v&255;if(!(u&1)){if(d>>>0>>0){u=n+(a<<1)|0;I[u+524>>1]=d;I[u+12>>1]=L[J[g+8>>2]+(d<<1)>>1]}d=d+1|0;a=a+1|0}if(!r)break H;while(1){if(!(a>>>0>255|d>>>0>=k>>>0)){r=n+(a<<1)|0;I[r+524>>1]=d;I[r+12>>1]=L[J[g+8>>2]+(d<<1)>>1]}r=d+1|0;I:{if(r>>>0>=k>>>0)break I;u=a+1|0;if(u>>>0>255)break I; -u=n+(u<<1)|0;I[u+524>>1]=r;I[u+12>>1]=L[J[g+8>>2]+(r<<1)>>1]}a=a+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}p=p+1|0;if((s|0)!=(p|0))continue;break}if(i>>>0<257)break E;J[n+8>>2]=256}if(!(K[n|0]&128)){a=J[q+8>>2];break D}d=Gg(h,q+8|0);a=J[q+8>>2];if(a|!d)break D;i=d&255;d=0;while(1){f=q+8|0;s=Gg(h,f);a=J[q+8>>2];if(a)break D;f=Wd(h,f);a=J[q+8>>2];if(a)break D;s=n+((s&255)<<1)|0;I[s+12>>1]=f;J:{if(!k)break J;p=J[g+8>>2];a=0;while(1){if((f|0)==L[p+(a<<1)>>1]){I[s+524>>1]=a;break J}a=a+1|0;if((k|0)!= -(a|0))continue;break}}a=0;d=d+1|0;if((i|0)!=(d|0))continue;break}break D}K:{L:switch(d|0){case 0:tc(f,255552,512);break K;case 1:break L;default:break D}tc(f,259328,512)}J[n+8>>2]=0;a=J[h+28>>2];J[q+12>>2]=0;d=J[g+16>>2];if(!d){d=0;i=a;if(k){r=k&3;s=J[g+8>>2];M:{if(k>>>0<4){h=0;a=0;break M}u=k&-4;h=0;a=0;f=0;while(1){p=a<<1;v=L[s+(p|6)>>1];x=L[s+(p|4)>>1];w=L[s+(p|2)>>1];p=L[p+s>>1];h=h&65535;h=h>>>0

      >>0?p:h;h=h>>>0>>0?w:h;h=h>>>0>>0?x:h;h=h>>>0>>0?v:h;a=a+4|0;f=f+4|0;if((u|0)!=(f|0))continue; -break}}if(r)while(1){f=L[s+(a<<1)>>1];h=h&65535;h=f>>>0>h>>>0?f:h;a=a+1|0;d=d+1|0;if((r|0)!=(d|0))continue;break}d=h&65535}i=Sc(i,2,0,d+1|0,0,q+12|0);J[g+12>>2]=i;a=J[q+12>>2];if(a)break D;N:{if((k|0)<=0)break N;h=J[g+8>>2];a=k;s=a&3;if(s){f=0;while(1){a=a-1|0;I[i+(L[h+(a<<1)>>1]<<1)>>1]=a;f=f+1|0;if((s|0)!=(f|0))continue;break}}if(k>>>0<4)break N;while(1){f=a-1|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;f=a-2|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;f=a-3|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;a=a-4|0;I[i+(L[h+(a<<1)>>1]<< -1)>>1]=a;if(f>>>0>1)continue;break}}J[g+20>>2]=k;J[g+16>>2]=d}a=0;while(1){O:{P:{f=n+(a<<1)|0;i=L[f+12>>1];if(!i|d>>>0>>0)break P;i=L[J[g+12>>2]+(i<<1)>>1];if(!i)break P;I[f+524>>1]=i;a=a+1|0;J[n+8>>2]=a;break O}I[f+524>>1]=0;I[f+12>>1]=0;a=a+1|0}if((a|0)!=256)continue;break}a=0}bc=q+16|0;J[l+76>>2]=a;if(a)break d}F=j,G=y6(j,A),J[F+1348>>2]=G}a=J[l+40>>2];if(a){d=J[a+28>>2];if(J[l+72>>2])Sf(a,l+72|0);a=J[l+68>>2];if(a)gc[J[d+8>>2]](d,a)}bc=l+80|0;f=J[l+76>>2];J[t+12>>2]=f;if(f)break a;if((c|0)< -0){J[o>>2]=J[m+16>>2];f=0;break a}J[m+3088>>2]=E;J[m+3084>>2]=y;J[m+3080>>2]=D;k=c&65535;J[o+4>>2]=k;J[o+16>>2]=J[m+20>>2];if(J[m+1504>>2]==65535){f=11;if(!y)break a}Q:{if(!(J[o+8>>2]&256)|c>>>0<65536)break Q;d=J[o+548>>2];if(!d)break Q;a=J[o+552>>2];f=gc[J[d+28>>2]](o,c>>>16|0)|0;J[t+12>>2]=f;if(f)break a;if(!a)break Q;gc[J[a+28>>2]](o)}if(!K[m+1436|0])J[m+1440>>2]=b?1E3:L[o+68>>1];f=J[m+1432>>2];if(!f)f=J[m+1428>>2];c=m+1448|0;a=f>>31;a=(a^f)-a|0;if((a|0)==65536)a=J[m+1448>>2];else{F=m,G=td(J[m+ -1440>>2],a),J[F+1440>>2]=G;F=m,G=td(J[m+1420>>2],a),J[F+1420>>2]=G;d=m+1428|0;F=d,G=td(J[d>>2],a),J[F>>2]=G;d=m+1424|0;F=d,G=td(J[d>>2],a),J[F>>2]=G;F=m,G=td(J[m+1432>>2],a),J[F+1432>>2]=G;F=m,G=td(J[m+1444>>2],a),J[F+1444>>2]=G;a=td(J[m+1448>>2],a)}J[c>>2]=a>>16;J[m+1444>>2]=I[m+1446>>1];a=J[m+2024>>2];if(a){f=m+1420|0;while(1){a=a-1|0;d=J[((a<<2)+m|0)+2028>>2];R:{if(K[d+64|0]){if(!K[m+1436|0])break R;c=1;g=J[m+1440>>2];if(g>>>0>=2){c=J[d+68>>2];c=c>>>0<=1?1:c>>>0>g>>>0?g:c}g=d+48|0;if(!(!f|!g)){h= -J[f>>2];j=J[g>>2];i=c<<16;l=Dd(h,j,i);n=J[f+4>>2];q=J[g+8>>2];s=Dd(n,q,i);r=h;h=J[g+4>>2];p=Dd(r,h,i);r=n;n=J[g+12>>2];A=Dd(r,n,i);y=J[f+8>>2];r=Dd(y,j,i);j=J[f+12>>2];F=g,G=r+Dd(j,q,i)|0,J[F+8>>2]=G;J[g+4>>2]=p+A;J[g>>2]=l+s;F=g,G=Dd(y,h,i)+Dd(j,n,i)|0,J[F+12>>2]=G}if(!(!f|(d|0)==-72)){i=J[f+8>>2];h=J[f+12>>2];j=J[d+72>>2];g=c<<16;n=Dd(j,J[f>>2],g);l=J[d+76>>2];F=d,G=n+Dd(l,J[f+4>>2],g)|0,J[F+72>>2]=G;F=d,G=Dd(j,i,g)+Dd(l,h,g)|0,J[F+76>>2]=G}F=d,G=Dd(J[d+68>>2],J[m+1440>>2],c),J[F+68>>2]=G;break R}c= -J[f+4>>2];J[d+48>>2]=J[f>>2];J[d+52>>2]=c;c=J[f+12>>2];J[d+56>>2]=J[f+8>>2];J[d+60>>2]=c;c=J[m+1448>>2];J[d+72>>2]=J[m+1444>>2];J[d+76>>2]=c;J[d+68>>2]=J[m+1440>>2]}c=J[d+60>>2];if(!c)c=J[d+56>>2];g=c;c=c>>31;c=(g^c)-c|0;if((c|0)==65536)c=J[d+76>>2];else{F=d,G=td(J[d+68>>2],c),J[F+68>>2]=G;F=d,G=td(J[d+48>>2],c),J[F+48>>2]=G;F=d,G=td(J[d+56>>2],c),J[F+56>>2]=G;F=d,G=td(J[d+52>>2],c),J[F+52>>2]=G;F=d,G=td(J[d+60>>2],c),J[F+60>>2]=G;F=d,G=td(J[d+72>>2],c),J[F+72>>2]=G;c=td(J[d+76>>2],c)}J[d+76>>2]= -c>>16;J[d+72>>2]=I[d+74>>1];if(a)continue;break}}g=J[m+1504>>2];if(b){J[o>>2]=J[m+16>>2];if((g|0)!=65535)a=J[m+1196>>2]+1|0;else a=J[m+1216>>2];J[o+16>>2]=a;J[o+52>>2]=I[m+1458>>1];a=I[m+1462>>1];J[o+56>>2]=a;J[o+60>>2]=J[m+1464>>2]+65535>>16;c=J[m+1468>>2]+65535>>16;J[o- -64>>2]=c;d=J[m+1440>>2];I[o+72>>1]=a;I[o+70>>1]=c;I[o+68>>1]=d;a=c-a|0;c=(P(d&65535,12)>>>0)/10|0;I[o+74>>1]=(a|0)>c<<16>>16?a:c;I[o+80>>1]=L[m+1406>>1];I[o+82>>1]=L[m+1410>>1];a=J[m+1388>>2];S:{if(!a)break S;a=gD(m,a);if(!a)break S; -F=o,G=ak(z,a,t),J[F+20>>2]=G}T:{U:{V:{if(!J[o+20>>2]){d=y6(m,k);J[o+20>>2]=d;if(!d)break V;a=Qc(d);W:{if((a|0)<6)break W;f=d+7|0;c=a+1|0;while(1){if(K[d+6|0]!=43|(K[d+5|0]-91&255)>>>0<230|((K[d+4|0]-91&255)>>>0<230|(K[d+3|0]-91&255)>>>0<230))break W;if((K[d+2|0]-91&255)>>>0<230|(K[d+1|0]-91&255)>>>0<230|(K[d|0]-91&255)>>>0<230)break W;a=c-7|0;if((c|0)>=8)Zc(d,f,a);g=(c|0)>13;c=a;if(g)continue;break}}if(!J[o+20>>2])break V}g=gD(m,J[m+1384>>2]);if(!g)break U;a=J[o+20>>2];if(!a)break U;f=K[g|0];if(!f)break U; -while(1){X:{Y:{d=f&255;c=d-32|0;if(!((c|0)!=13?c:0)){if((d|0)==K[a|0])break Y;break X}c=a;f=K[a|0];if((d|0)==(f|0))break Y;while(1){Z:{_:{a=f&255;switch(a-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break U;case 0:case 13:break _;default:break Z}}f=K[c+1|0];a=c+1|0;c=a;if((d|0)!=(f|0))continue;break Y}break}if(a)break U;f=ak(z,g,t);if(!f)break U;d=J[o+20>>2];g=Qc(d);c=Qc(f);$:{if((g|0)<=(c|0))break $;a=1;if((c|0)>0)while(1){if(K[d+(g-a|0)|0]!=K[(c- -a|0)+f|0])break $;i=(a|0)==(c|0);a=a+1|0;if(!i)continue;break}a=g+(c^-1)|0;if((a|0)<=0)break $;while(1){c=a+d|0;g=K[c|0];i=g-32|0;if(!((1<>>0<=13:0)|(g|0)==95)){H[c+1|0]=0;break $}c=(a|0)>1;a=a-1|0;if(c)continue;break}}break T}a=a+1|0}f=K[g+1|0];g=g+1|0;if(f)continue;break}break U}a=gD(m,J[m+1544>>2]);if(!a)break U;F=o,G=ak(z,a,t),J[F+20>>2]=G}f=ak(z,241923,t)}J[o+24>>2]=f;a=C?2065:2073;J[o+8>>2]=J[o+8>>2]|(K[m+1396|0]?a|4:a);f=J[m+1400>>2]!=0;a=gD(m,J[m+1392>>2]);aa:{if(!a)break aa;if(Ec(a, -242077))if(Ec(a,242158))break aa;f=f|2}ba:{if(f&2)break ba;a=J[o+24>>2];if(!a)break ba;if(kd(a,242077,4))if(kd(a,242158,5))break ba;f=f|2}J[o+12>>2]=f;g=J[m+1504>>2]}ca:{if(!((g|0)!=65535|e)){J[o+8>>2]=J[o+8>>2]|512;e=b;break ca}e=b;if(!b|(g|0)==65535)break ca;J[o+8>>2]=J[o+8>>2]|4096;e=1}a=J[o+36>>2];da:{ea:{if(a){b=J[o+40>>2];f=0;while(1){fa:{ga:{c=J[b+(f<<2)>>2];switch(L[c+8>>1]){case 0:break ea;case 3:break ga;default:break fa}}if(L[c+10>>1]==1)break ea}f=f+1|0;if((a|0)!=(f|0))continue;break}}if((g| -0)!=65535&e)break da;J[t>>2]=o;J[t+4>>2]=1970170211;J[t+8>>2]=65539;b=Ek(255156,0,t,0);J[t+12>>2]=b;ha:{if(!b)break ha;b=b&255;if((b|0)==163)break ha;if((b|0)!=7)break da}J[t+12>>2]=0;if(J[o+92>>2]|(a|0)==J[o+36>>2])break ea;J[o+92>>2]=J[J[o+40>>2]+(a<<2)>>2]}if(!J[m+152>>2])break da;I[t+8>>1]=7;J[t>>2]=o;b=1094995778;f=0;ia:{ja:switch(J[m+148>>2]){case 1:b=1094992453;f=1;break ia;case 0:break ia;default:break ja}b=1094992451;f=2}J[t+4>>2]=b;I[t+10>>1]=f;F=t,G=Ek(255116,0,t,0),J[F+12>>2]=G}f=J[t+ -12>>2]}bc=t+16|0;return f|0}function MQa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i=bc-1152|0;bc=i;j=J[g>>2];l=J[g+4>>2];g=J[d>>2];o=J[d+4>>2];J[a+156>>2]=0;J[a>>2]=2205444;d=rc(8);J[695492]=0;c=aa(3182,d|0,c|0)|0;p=J[695492];J[695492]=0;if((p|0)==1){a=Z()|0;qc(d);ba(a|0);B()}J[a+32>>2]=j;J[a+36>>2]=l;J[a+20>>2]=f;J[a+16>>2]=e;J[a+8>>2]=g;J[a+12>>2]=o;J[a+4>>2]=c;J[a+152>>2]=0;J[a+28>>2]=0;J[a+3528>>2]=13;J[a+3512>>2]=13;J[a>>2]=2205536; -J[i+56>>2]=13;J[i+40>>2]=13;J[i+24>>2]=13;J[a+160>>2]=0;J[a+1444>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if(!e)break s;J[695492]=0;d=$(4,8)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;J[695492]=0;c=aa(3183,d|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break q;g=J[c>>2];if((g|0)>0){e=0;while(1){t:{if(K[J[c+4>>2]+e|0]==32){J[695492]=0;ga(3397,c|0,e|0,1)|0;d=J[695492];J[695492]=0;if((d|0)!=1){g=J[c>>2];break t}e=Z()|0;break a}e=e+1|0}if((e|0)<(g|0))continue;break}}g=65;e=0; -while(1){d=(e+g|0)/2|0;f=J[(d<<3)+2710640>>2];J[695492]=0;f=sd(c,f);j=J[695492];J[695492]=0;if((j|0)==1)break k;f=(f|0)>=0;g=f?g:d;e=f?d:e;if((g-e|0)>1)continue;break}d=(e<<3)+2710640|0;e=J[d>>2];J[695492]=0;e=sd(c,e);f=J[695492];J[695492]=0;if((f|0)==1)break l;if(!e)J[a+160>>2]=d;qc(Rc(c));d=J[a+160>>2];if(!d)break s;g=0;d=J[d+4>>2];c=2642944;u:{if(!Ec(d,J[660736]))break u;if(!Ec(d,J[660743])){g=1;c=2642972;break u}if(!Ec(d,J[660750])){g=2;c=2643E3;break u}if(!Ec(d,J[660757])){g=3;c=2643028;break u}if(!Ec(d, -J[660764])){g=4;c=2643056;break u}if(!Ec(d,J[660771])){g=5;c=2643084;break u}if(!Ec(d,J[660778])){g=6;c=2643112;break u}if(!Ec(d,J[660785])){g=7;c=2643140;break u}if(!Ec(d,J[660792])){g=8;c=2643168;break u}if(!Ec(d,J[660799])){g=9;c=2643196;break u}if(!Ec(d,J[660806])){g=10;c=2643224;break u}if(!Ec(d,J[660813])){g=11;c=2643252;break u}if(!Ec(d,J[660820])){g=12;c=2643280;break u}if(Ec(d,J[660827]))break s;g=13;c=2643308}d=P(g,28)+2642944|0;O[a+120>>3]=I[d+8>>1];k=+I[d+10>>1]*.001;O[a+128>>3]=k;e=I[d+ -12>>1];O[a+144>>3]=k;O[a+136>>3]=+(e|0)*.001;O[a+88>>3]=+I[d+14>>1]*.001;O[a+96>>3]=+I[d+16>>1]*.001;O[a+104>>3]=+I[d+18>>1]*.001;O[a+112>>3]=+I[d+20>>1]*.001;break r}J[a+144>>2]=0;J[a+148>>2]=1072168960;J[a+136>>2]=0;J[a+140>>2]=-1076887552;J[a+128>>2]=0;J[a+132>>2]=1072168960;J[a+120>>2]=0;J[a+124>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;c=0;m=1}J[695492]=0;ca(3398,a|0,a|0,h|0);d=J[695492];J[695492]=0;if((d|0)==1)break l; -if(!m){k=+I[c+10>>1]*.001;O[a+128>>3]=k;d=I[c+12>>1];O[a+144>>3]=k;O[a+136>>3]=+(d|0)*.001;O[a+88>>3]=+I[c+14>>1]*.001;O[a+96>>3]=+I[c+16>>1]*.001;O[a+104>>3]=+I[c+18>>1]*.001;O[a+112>>3]=+I[c+20>>1]*.001}J[a+40>>2]=0;J[a+44>>2]=1072693248;J[a+48>>2]=0;J[a+52>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=1072693248;J[a+56>>2]=0;J[a+60>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[695492]=0;d=ha(3203,h|0,805167,i+56|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;v:{if(J[d>>2]!=6)break v;d= -J[i+64>>2];if(J[d+12>>2]<=0)break v;J[695492]=0;d=ha(3283,d|0,0,i+40|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+40>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;d=i+40|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<2)break v;J[695492]=0;d=ha(3283,e|0,1,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+48>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;d=i+40|0;_(3205,d|0); -e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<3)break v;J[695492]=0;d=ha(3283,e|0,2,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+56>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;d=i+40|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<4)break v;J[695492]=0;d=ha(3283,e|0,3,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+64>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+ -48>>3];J[695492]=0;d=i+40|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<5)break v;J[695492]=0;d=ha(3283,e|0,4,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+72>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;d=i+40|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<6)break v;J[695492]=0;d=ha(3283,e|0,5,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+ -80>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;_(3205,i+40|0);d=J[695492];J[695492]=0;if((d|0)==1)break j}J[695492]=0;d=i+56|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break l;w:{if(J[a+20>>2]!=4)break w;J[695492]=0;d=ha(3203,h|0,801056,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;x:{if(J[d>>2]!=6)break x;d=J[i+64>>2];if(J[d+12>>2]<=0)break x;J[695492]=0;d=ha(3283,d|0,0,i+40|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;if(J[d>>2]-3>>>0>=4294967294)O[a+88>>3]=J[i+40>> -2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;d=i+40|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[i+64>>2];if(J[e+12>>2]<2)break x;J[695492]=0;d=ha(3283,e|0,1,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;if(J[d>>2]-3>>>0>=4294967294)O[a+96>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;d=i+40|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[i+64>>2];if(J[e+12>>2]<3)break x;J[695492]=0;d=ha(3283,e|0,2,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;if(J[d>> -2]-3>>>0>=4294967294)O[a+104>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;d=i+40|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[i+64>>2];if(J[e+12>>2]<4)break x;J[695492]=0;d=ha(3283,e|0,3,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;if(J[d>>2]-3>>>0>=4294967294)O[a+112>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[695492]=0;_(3205,i+40|0);d=J[695492];J[695492]=0;if((d|0)==1)break i}J[695492]=0;_(3205,i+56|0);d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;d=a+ -3512|0;e=ha(3203,h|0,805703,d|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;if(J[e>>2]!=7){J[695492]=0;ia(3399,1,-1,806056,0);e=J[695492];J[695492]=0;if((e|0)==1)break l;J[695492]=0;_(3205,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break l}J[695492]=0;d=a+3528|0;e=ha(3203,h|0,806528,d|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;if(J[e>>2]==7)break w;J[695492]=0;_(3205,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break l}f=0;J[a+1456>>2]=0;J[a+1448>>2]=0;J[a+1452>>2]=0;J[695492]=0;ha(3203,h| -0,807094,i+56|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;y:{z:switch(J[i+56>>2]-4|0){case 3:J[695492]=0;ha(3203,J[i+64>>2],807443,i+40|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;A:{if(J[i+40>>2]!=4)break A;d=J[i+48>>2];if(!Ec(d,807744)){J[a+1448>>2]=1;J[a+1452>>2]=1;f=2693680;break A}if(!Ec(d,808057)){J[a+1448>>2]=1;f=2694704;break A}if(Ec(d,808450))break A;J[a+1448>>2]=1;f=2695728}J[695492]=0;_(3205,i+40|0);d=J[695492];J[695492]=0;if((d|0)!=1)break y;break l;case 0:break z;default:break y}d= -J[i+64>>2];if(!Ec(d,807744)){J[a+1448>>2]=1;J[a+1452>>2]=1;f=2693680;break y}if(!Ec(d,808057)){J[a+1448>>2]=1;f=2694704;break y}if(Ec(d,808450))break y;J[a+1448>>2]=1;f=2695728}e=J[a+20>>2];d=J[a+32>>2];if(!((e|0)!=1|(d|0)<0)){J[695492]=0;d=ga(3400,a|0,b|0,i+1148|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;if(!d)break n;J[695492]=0;j=aa(3401,d|0,J[i+1148>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;B:{if(!j)break B;J[695492]=0;b=$(3402,j|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l; -if(b){b=J[a+28>>2];if(b)qc(Rc(b));J[695492]=0;b=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;J[695492]=0;e=$(3402,j|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break p;J[695492]=0;e=aa(3182,b|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break p;J[a+28>>2]=e}if(f)break B;J[695492]=0;f=$(3403,j|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[a+1456>>2]=1}b=0;J[695492]=0;Gc(d);d=J[695492];J[695492]=0;if((d|0)==1)break l;break m}j=0;if((e|0)!=2){b=0;break m}if((d|0)<0){b=0;break m}J[695492]=0; -d=ga(3400,a|0,b|0,i+1148|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;if(!d)break n;J[695492]=0;b=aa(3404,d|0,J[i+1148>>2])|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;C:{if(!b)break C;J[695492]=0;e=J[b+20>>2];if(e)e=J[e+4>>2];else e=0;g=J[695492];J[695492]=0;if((g|0)==1)break l;if(e){e=J[a+28>>2];if(e)qc(Rc(e));J[695492]=0;g=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;J[695492]=0;e=J[b+20>>2];if(e)e=J[e+4>>2];else e=0;j=J[695492];J[695492]=0;if((j|0)==1)break o;J[695492]=0;e=aa(3182, -g|0,e|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break o;J[a+28>>2]=e}if(f)break C;J[695492]=0;f=J[b+24>>2];e=J[695492];J[695492]=0;if((e|0)==1)break l;J[a+1456>>2]=1}j=0;J[695492]=0;Gc(d);d=J[695492];J[695492]=0;if((d|0)==1)break l;break m}e=Z()|0;qc(d);break a}e=Z()|0;qc(b);break a}e=Z()|0;qc(g);break a}j=0;b=0}D:{if(f)break D;if(!(J[a+32>>2]>=0|m)){f=J[c+4>>2];J[a+1448>>2]=1;break D}f=J[a+20>>2]==5?2695728:2696752}e=0;while(1){g=e<<2;d=g+a|0;g=f+g|0;J[d+164>>2]=J[g>>2];l=K[a+1456|0];H[(a+e|0)+1188| -0]=l;if(!(!l|!J[d+164>>2])){g=J[g>>2];J[695492]=0;g=$(3407,g|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break h;J[d+164>>2]=g}e=e+1|0;if((e|0)!=256)continue;break}if(!(!J[a+1456>>2]|(J[a+20>>2]!=2|J[a+32>>2]<0))){e=0;while(1){d=e<<2;f=d+a|0;E:{if(J[f+164>>2])break E;d=J[d+2696752>>2];if(!d)break E;J[f+164>>2]=d;H[(a+e|0)+1188|0]=0}d=e|1;f=d<<2;g=f+a|0;F:{if(J[g+164>>2])break F;f=J[f+2696752>>2];if(!f)break F;J[g+164>>2]=f;H[(a+d|0)+1188|0]=0}e=e+2|0;if((e|0)!=256)continue;break}}if(J[i+56>>2]==7){J[695492]= -0;ha(3203,J[i+64>>2],808766,i+40|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;G:{if(J[i+40>>2]!=6)break G;J[a+1448>>2]=1;d=J[i+48>>2];if(J[d+12>>2]<=0)break G;e=0;g=0;while(1){J[695492]=0;ha(3283,d|0,e|0,i+24|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;H:{I:switch(J[i+24>>2]-1|0){case 0:g=J[i+32>>2];break H;case 3:if(g>>>0<=255){d=(a+g|0)+1188|0;if(K[d|0]){f=J[((g<<2)+a|0)+164>>2];J[695492]=0;Gc(f);f=J[695492];J[695492]=0;if((f|0)==1)break g}J[695492]=0;f=$(3407,J[i+32>>2])|0;l=J[695492]; -J[695492]=0;if((l|0)==1)break g;J[((g<<2)+a|0)+164>>2]=f;H[d|0]=1}g=g+1|0;break H;default:break I}J[695492]=0;d=J[(J[i+24>>2]<<2)+2720608>>2];f=J[695492];J[695492]=0;if((f|0)==1)break g;J[i+16>>2]=d;J[695492]=0;ia(3399,1,-1,809323,i+16|0);d=J[695492];J[695492]=0;if((d|0)==1)break g}J[695492]=0;_(3205,i+24|0);d=J[695492];J[695492]=0;if((d|0)==1)break g;e=e+1|0;d=J[i+48>>2];if((e|0)>2])continue;break}}J[695492]=0;_(3205,i+40|0);d=J[695492];J[695492]=0;if((d|0)==1)break l}J[695492]=0;_(3205, -i+56|0);d=J[695492];J[695492]=0;if((d|0)==1)break l;if(j)gc[J[J[j>>2]+4>>2]](j);if(b)gc[J[J[b>>2]+4>>2]](b);b=0;j=0;e=0;while(1){f=e<<2;d=J[(f+a|0)+164>>2];J:{if(d){J[695492]=0;g=RA(J[689612],d);l=J[695492];J[695492]=0;if((l|0)==1)break f;J[f+(i+112|0)>>2]=g;if(g)break J;if(!Ec(d,826498))break J;j=1;K:{L:switch(Qc(d)-2|0){case 1:if((K[d|0]|32)-97>>>0>=26)break J;f=K[d+1|0];if(!(f-48>>>0<10|(f|32)-97>>>0<6))break J;d=K[d+2|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break J;if(((f&223)-65&255)>>>0<6|((d& -223)-65&255)>>>0<6)break K;break J;case 0:break L;default:break J}f=K[d|0];if(!(f-48>>>0<10|(f|32)-97>>>0<6))break J;d=K[d+1|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break J;if(((f&223)-65&255)>>>0<6)break K;if(((d&223)-65&255)>>>0>5)break J}b=1;break J}J[f+(i+112|0)>>2]=0}e=e+1|0;if((e|0)!=256)continue;break}J[a+1460>>2]=0;M:{if(!j)break M;J[695492]=0;d=J[J[689612]+376>>2];e=J[695492];J[695492]=0;if((e|0)==1)break l;if(d){e=0;while(1){d=e<<2;g=J[(d+a|0)+164>>2];N:{if(!g)break N;f=d+(i+112|0)|0;if(J[f>> -2])break N;if(!Ec(g,826498))break N;d=Qc(g);J[i+1144>>2]=-1;O:{P:{Q:{R:{S:{if(!(!b|(d|0)!=3)){if((K[g|0]|32)-97>>>0>=26)break S;j=K[g+1|0];if(!(j-48>>>0<10|(j|32)-97>>>0<6))break S;j=K[g+2|0];if(!(j-48>>>0<10|(j|32)-97>>>0<6))break S;g=g+1|0;break Q}if(!(!b|(d|0)!=2)){d=K[g|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;d=K[g+1|0];if(d-48>>>0<10|(d|32)-97>>>0<6)break Q;break P}T:{if((d|0)<2|b|((d|0)>4|K[g|0]-48>>>0>9))break T;if(K[g+1|0]-48>>>0>9)break T;g=Zf(g);J[i+1144>>2]=g;break O}if(d-3>>>0>2)break R}if(K[g+ -1|0]-48>>>0>9|K[g+2|0]-48>>>0>9)break R;g=Zf(g+1|0);J[i+1144>>2]=g;break O}if(d-4>>>0<=2){if(K[g+2|0]-48>>>0>9|K[g+3|0]-48>>>0>9)break P;g=Zf(g+2|0);J[i+1144>>2]=g;break O}if(K[g|0]!=117|(d|0)<7|(K[g+1|0]!=110|K[g+2|0]!=105))break P;d=K[g+3|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;d=K[g+4|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;d=K[g+5|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;d=K[g+6|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;g=g+3|0}J[i>>2]=i+1144;Og(g,826734,i)}g=J[i+1144>>2]}if(g>>> -0>65535)break N;J[f>>2]=g;J[a+1460>>2]=1}e=e+1|0;if((e|0)!=256)continue;break}break M}e=0;J[695492]=0;b=J[J[689612]+380>>2];d=J[695492];J[695492]=0;if((d|0)==1)break l;if(!b)break M;while(1){b=(i+112|0)+(e<<2)|0;if(!J[b>>2])J[b>>2]=e;b=e|1;d=(i+112|0)+(b<<2)|0;if(!J[d>>2])J[d>>2]=b;b=e|2;d=(i+112|0)+(b<<2)|0;if(!J[d>>2])J[d>>2]=b;b=e|3;d=(i+112|0)+(b<<2)|0;if(!J[d>>2])J[d>>2]=b;e=e+4|0;if((e|0)!=256)continue;break}}J[695492]=0;d=i+112|0;b=$(3412,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l; -J[a+1444>>2]=b;J[695492]=0;ha(3413,a|0,h|0,8,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;b=J[a+16>>2];U:{if(!b)break U;J[695492]=0;b=aa(3414,J[689612],b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;if(!b)break U;e=0;wc(d,0,1024);J[695492]=0;d=$(3412,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;while(1){f=J[a+1444>>2];J[695492]=0;g=f;f=i+80|0;g=al(g,e,f,8);j=J[695492];J[695492]=0;if((j|0)==1)break e;V:{if((g|0)<=0)break V;J[695492]=0;g=al(b,J[i+80>>2],f,8);j=J[695492];J[695492]=0; -if((j|0)==1)break e;if((g|0)<=0)break V;J[695492]=0;ia(3415,d|0,e|0,f|0,g|0);f=J[695492];J[695492]=0;if((f|0)==1)break e}e=e+1|0;if((e|0)!=256)continue;break}J[695492]=0;_(3225,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break l;b=J[a+1444>>2];if(b){e=J[b>>2];if(e)qc(Rc(e));e=J[b+4>>2];J[695492]=0;Gc(e);e=J[695492];J[695492]=0;W:{X:{if((e|0)==1)break X;e=J[b+12>>2];J[695492]=0;Gc(e);e=J[695492];J[695492]=0;if((e|0)==1)break X;break W}ea(0)|0;yc();B()}qc(b)}J[a+1444>>2]=d}k=O[a+120>>3]*.001;d=0;b=a+1464| -0;while(1){e=d<<3;O[e+b>>3]=k;O[b+(e|8)>>3]=k;O[b+(e|16)>>3]=k;O[b+(e|24)>>3]=k;O[b+(e|32)>>3]=k;O[b+(e|40)>>3]=k;O[b+(e|48)>>3]=k;O[b+(e|56)>>3]=k;d=d+8|0;if((d|0)!=256)continue;break}J[695492]=0;b=i+56|0;ha(3203,h|0,809570,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;e=J[i+64>>2];f=J[i+56>>2];_(3205,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;ha(3203,h|0,810087,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;d=J[i+64>>2];g=J[i+56>>2];_(3205, -b|0);j=J[695492];J[695492]=0;if((j|0)==1)break l;k=O[a+40>>3];j=J[a+20>>2];J[695492]=0;ha(3203,h|0,810304,b|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;Y:{if(J[i+56>>2]==6){J[a+24>>2]=J[a+24>>2]|1;c=(g|0)!=1?255:d>>>0>=255?255:d;b=(f|0)==1?e:0;b=b>>>0<=255?b:0;d=J[J[i+64>>2]+12>>2];c=(d|0)>(c-b|0)?c:(b+d|0)-1|0;if((b|0)>(c|0))break Y;k=(j|0)==4?k:.001;d=((b<<3)+a|0)+1464|0;e=b;while(1){J[695492]=0;ha(3283,J[i+64>>2],e-b|0,i+40|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;f=J[i+40>>2]; -Z:{if(f-3>>>0<4294967294)break Z;n=k*((f|0)==1?+J[i+48>>2]:O[i+48>>3]);O[((e<<3)+a|0)+1464>>3]=n;if(!(R(n-O[d>>3])>1E-5))break Z;J[a+24>>2]=J[a+24>>2]&-2}J[695492]=0;_(3205,i+40|0);f=J[695492];J[695492]=0;if((f|0)==1)break b;f=(c|0)==(e|0);e=e+1|0;if(!f)continue;break}break Y}if(!m){b=J[c+24>>2];J[695492]=0;b=ot(b,810810,i+78|0);d=J[695492];J[695492]=0;if((d|0)==1)break l;if(b)O[a+1720>>3]=+L[i+78>>1]*.001;e=0;while(1){b=J[((e<<2)+a|0)+164>>2];_:{if(!b)break _;d=J[c+24>>2];J[695492]=0;b=ot(d,b,i+ -78|0);d=J[695492];J[695492]=0;if((d|0)==1)break d;if(!b)break _;O[((e<<3)+a|0)+1464>>3]=+L[i+78>>1]*.001}e=e+1|0;if((e|0)!=256)continue;break}break Y}b=J[a+24>>2];b=J[((b>>>6&1|b>>>17&2|(b&1?0:b&2?8:4))<<2)+2643344>>2];c=J[b+24>>2];J[695492]=0;c=ot(c,810810,i+78|0);d=J[695492];J[695492]=0;if((d|0)==1)break l;if(c)O[a+1720>>3]=+L[i+78>>1]*.001;e=0;while(1){c=J[((e<<2)+a|0)+164>>2];$:{if(!c)break $;d=J[b+24>>2];J[695492]=0;c=ot(d,c,i+78|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;if(!c)break $;O[((e<< -3)+a|0)+1464>>3]=+L[i+78>>1]*.001}e=e+1|0;if((e|0)!=256)continue;break}}J[695492]=0;_(3205,i+56|0);b=J[695492];J[695492]=0;if((b|0)==1)break l;J[a+156>>2]=1;bc=i+1152|0;return a|0}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0}oI(a);ba(e|0);B()}function Bpa(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;d=bc-208|0;bc=d;a:{b:{c:{d:{e:{f:{if(!J[a+4>>2]){a=Kc(d+ -184|0,2374706,2375163,193,2424848,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);ba(b|0);B()}J[d+176>>2]=0;J[d+180>>2]=0;J[d+168>>2]=0;J[d+172>>2]=0;i=d+168|0;J[i>>2]=2386024;J[i+4>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0;J[d+160>>2]=0;J[d+164>>2]=J[682146];c=J[J[b>>2]+36>>2];J[695492]=0;la(c|0,d+152|0,b|0,0,60,0);c=J[695492];J[695492]=0;g:{h:{i:{j:{k:{if((c|0)!=1){k=J[b+28>>2];c=J[d+152>>2];if(!c)break g;J[695492]=0;e=ga(5416,c|0,0,-1)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break k;c=J[d+152>>2];if(c)c=J[c+8>>2];else c=0;if((c|0)==(e|0))break g;J[695492]=0;ca(5048,d+144|0,2376226,d+152|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;a=J[d+144>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,d+184|0,a|0,2375163,200,2424848,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);break h}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break c}b=Z()|0}sc(d+144|0);break c}J[d+144>>2]=0;J[d+148>>2]= -J[682146];l=a+8|0;j=a+16|0;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{while(1){m=k+1|0;x:{y:{z:{while(1){c=J[J[b>>2]+36>>2];J[695492]=0;la(c|0,d+184|0,b|0,0,62,1);c=J[695492];J[695492]=0;A:{if((c|0)!=1){c=J[d+184>>2];B:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+136|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break B;b=Z()|0;break e}J[d+136>>2]=0}J[695492]=0;aa(4993,d+160|0,d+136|0)|0;c=J[695492];J[695492]=0;C:{if((c|0)!=1){c=J[d+136>>2];J[d+136>>2]=0;if(!c)break C;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>> -2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break C;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break C}break a}b=Z()|0;vc(d+136|0);break e}c=J[d+160>>2];J[d+164>>2]=J[(c?c+12|0:2728584)>>2];D:{if(!c){sc(d+184|0);break D}c=J[c+8>>2];sc(d+184|0);if(c)break A}sc(d+144|0);sc(d+152|0);sc(d+160|0);$c(i);bc=d+208|0;return}b=Z()|0;break d}h=J[d+160>>2];E:{F:{G:{H:{g=c-1|0;I:{J:{if(g){f=g;f=!h|(c|0)>0?f:f+J[h+8>>2]|0;if(!h|(f|0)<0|J[h+8>>2]<(f|0))break G;e=J[h+12>>2];break J}if(!h)break I; -f=0;e=J[h+12>>2]}if(K[e+f|0]==62)break H}J[695492]=0;ca(5048,d+136|0,2376944,d+160|0);a=J[695492];J[695492]=0;K:{L:{if((a|0)!=1){a=J[d+136>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,d+184|0,a|0,2375163,207,2424848,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break L;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);break K}b=Z()|0;break d}b=Z()|0}sc(d+136|0);break d}h=J[h+8>>2];if((h|0)<=0)break G;M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{f=H[e+1|0];switch(f-47|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break U; -case 0:break W;case 16:break X;default:break V}}Y:{Z:{while(1){_:{$:{aa:{ba:{ca:{da:{ea:{if((c|0)>=4){J[695492]=0;e=d+184|0;ia(5143,e|0,d+160|0,c-2|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break ea;J[695492]=0;c=fd(e,2377388,-1);f=J[695492];J[695492]=0;if((f|0)==1)break da;sc(e);if(!c)break Y}c=J[J[b>>2]+36>>2];J[695492]=0;la(c|0,d+136|0,b|0,0,62,1);c=J[695492];J[695492]=0;if((c|0)==1)break ca;c=J[d+136>>2];if(J[c+8>>2]?c:0)break _;J[695492]=0;ca(5048,d+128|0,2378187,d+160|0);a=J[695492];J[695492]= -0;if((a|0)==1)break ba;a=J[d+128>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,d+184|0,a|0,2375163,218,2424848,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break aa;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);break $}b=Z()|0;break d}b=Z()|0;sc(d+184|0);break d}b=Z()|0;break d}b=Z()|0;break Z}b=Z()|0}sc(d+128|0);break Z}J[695492]=0;c=aa(5170,d+160|0,d+136|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){c=J[c>>2];if(c)c=J[c+8>>2];else c=0;sc(d+136|0);continue}break}b= -Z()|0}sc(d+136|0);break d}J[695492]=0;ia(5143,d+184|0,d+160|0,2,-1);c=J[695492];J[695492]=0;if((c|0)==1)break l;c=J[d+184>>2];c=J[(c?c+12|0:2728584)>>2];while(1){e=c;c=c+1|0;f=H[e|0];if((f|0)==32|f-9>>>0<5)continue;break}c=e;while(1){fa:{ga:{ha:{g=f&255;switch(g-47|0){case 0:case 15:break fa;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break ga;default:break ha}}if(!g)break fa}f=f<<24>>24;if((f|0)==32|f-9>>>0<5)break fa;f=K[c+1|0];c=c+1|0; -continue}break}J[695492]=0;f=ga(5169,d+120|0,e|0,c-e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break n;J[695492]=0;e=d+136|0;da(5138,e|0,f|0);g=J[695492];J[695492]=0;if((g|0)!=1){J[695492]=0;g=fd(e,2378350,-1);h=J[695492];J[695492]=0;if((h|0)==1)break p;sc(e);ia:{if(g)break ia;J[695492]=0;ca(5538,c|0,j|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;c=J[j+24>>2];J[e+4>>2]=j;J[e>>2]=c;c=J[695492];J[695492]=0;if((c|0)==1)break s;c=J[d+136>>2];if(!c)break ia;while(1){if(J[d+140>>2]!=(j|0)){J[695492]= -0;da(5073,d+136|0,j|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;b=Z()|0;break o}J[695492]=0;c=fd(c+16|0,2379001,-1);e=J[695492];J[695492]=0;if((e|0)==1)break r;if(!c){c=J[d+136>>2];if(!(J[d+140>>2]==(j|0)?c:0)){J[695492]=0;da(5073,d+136|0,j|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;b=Z()|0;break o}J[695492]=0;e=d+128|0;da(5541,e|0,c+24|0);c=J[695492];J[695492]=0;ja:{ka:{if((c|0)!=1){J[695492]=0;c=ga(5117,e|0,d+144|0,-1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break u;if(!c)break ja;c=J[d+128>> -2];la:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+104|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break la;break u}J[d+104>>2]=0}J[695492]=0;aa(4993,d+144|0,d+104|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[d+104>>2];J[d+104>>2]=0;if(!c)break ka;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break ka;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ka}break a}b=Z()|0;vc(d+104|0);break t}b=Z()|0;break o}c=J[d+144>>2];J[d+148>>2]=J[(c?c+12|0: -2728584)>>2];J[695492]=0;da(5542,b|0,d+144|0);c=J[695492];J[695492]=0;if((c|0)==1)break u}sc(d+128|0)}c=J[d+136>>2];if(!c)break ia;c=J[c>>2];J[d+136>>2]=c;if(c)continue;break}}sc(f);sc(d+184|0);break E}b=Z()|0;break o}J[695492]=0;ia(5143,d+184|0,d+160|0,2,-1);c=J[695492];J[695492]=0;ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{if((c|0)!=1){c=J[d+184>>2];c=J[(c?c+12|0:2728584)>>2];while(1){e=c;c=c+1|0;f=H[e|0];if((f|0)==32|f-9>>>0<5)continue;break}c=e;while(1){Ga:{Ha:{Ia:{g= -f&255;switch(g-47|0){case 0:case 15:break Ga;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break Ha;default:break Ia}}if(!g)break Ga}f=f<<24>>24;if((f|0)==32|f-9>>>0<5)break Ga;f=K[c+1|0];c=c+1|0;continue}break}J[695492]=0;c=ga(5169,d+112|0,e|0,c-e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Fa;sc(d+184|0);e=J[i+12>>2];J[d+140>>2]=i;J[d+136>>2]=e;if(!e)break ma;e=J[e+8>>2];J[695492]=0;e=ga(5117,e+8|0,c|0,-1)|0;f=J[695492];J[695492]=0;if((f| -0)==1)break na;if(!e)break oa;a=J[d+136>>2];J[d+80>>2]=a;b=J[d+140>>2];J[d+84>>2]=b;if(!((b|0)==(i|0)?a:0)){J[695492]=0;da(5073,d+80|0,i|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;break N}a=J[a+8>>2];J[695492]=0;ca(5048,d+88|0,2380490,a+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break N;a=J[d+136>>2];J[d+56>>2]=a;b=J[d+140>>2];J[d+60>>2]=b;if(!((b|0)==(i|0)?a:0)){J[695492]=0;da(5073,d+56|0,i|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;break P}a=J[J[a+8>>2]+96>>2];J[695492]=0;a=aa(5120,d- -64| -0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break P;J[695492]=0;b=d+72|0;ca(5048,b|0,2381015,a|0);e=J[695492];J[695492]=0;if((e|0)==1)break Ea;J[695492]=0;e=d+96|0;ca(5122,e|0,d+88|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break Da;J[695492]=0;b=d+48|0;ca(5048,b|0,2381015,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break Ca;J[695492]=0;f=d+104|0;ca(5122,f|0,e|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break Ba;J[695492]=0;e=aa(5120,d+32|0,k+1|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Aa;J[695492]= -0;b=d+40|0;ca(5048,b|0,2381015,e|0);g=J[695492];J[695492]=0;if((g|0)==1)break za;J[695492]=0;ca(5122,d+128|0,f|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break ya;b=J[d+128>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;f=ja(5018,d+184|0,b|0,2375163,271,2424848,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break xa;J[695492]=0;_(5019,f|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(f);break wa}b=Z()|0;break d}b=Z()|0;sc(d+184|0);break d}b=Z()|0;break pa}b=Z()|0;break qa}b=Z()|0;break ra}b=Z()|0; -break sa}b=Z()|0;break ta}b=Z()|0;break ua}b=Z()|0;break va}b=Z()|0}sc(d+128|0)}sc(d+40|0)}sc(e)}sc(d+104|0)}sc(d+48|0)}sc(d+96|0)}sc(d+72|0)}sc(a);break O}J[695492]=0;da(5065,i|0,d+136|0);e=J[695492];J[695492]=0;if((e|0)!=1)break T}b=Z()|0;sc(c);break d}J[695492]=0;a=ja(5018,d+184|0,2381182,2375163,276,2424848,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);sc(c);break d}b=Z()|0;sc(c);break d}if((f|0)==33)break M}f=J[i+12>> -2];J[d+128>>2]=0;Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{if(f){J[695492]=0;e=$(4,100)|0;h=J[695492];J[695492]=0;Qa:{Ra:{Sa:{if((h|0)==1)break Sa;J[695492]=0;h=d+184|0;ia(5143,h|0,d+160|0,1,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break Ra;g=J[d+184>>2];g=J[(g?g+12|0:2728584)>>2];J[695492]=0;g=aa(5543,e|0,g|0)|0;n=J[695492];J[695492]=0;if((n|0)==1){b=Z()|0;sc(h);qc(e);break Q}J[695492]=0;aa(4985,d+128|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ja;sc(d+184|0);f=J[f+8>>2];e=J[d+128>>2];if(e){J[695492]=0; -J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break Sa;e=J[d+128>>2]}else e=0;J[695492]=0;J[d+28>>2]=e;da(5544,f|0,d+28|0);e=J[695492];J[695492]=0;if((e|0)==1)break Qa;e=J[d+28>>2];J[d+28>>2]=0;Ta:{if(!e)break Ta;J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break Ta;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}e=J[d+160>>2];f=c-2|0;Ua:{Va:{if(f){f=!e|(c|0)>1?f:J[e+8>>2]+f|0;if(!e|(f|0)<0|J[e+8>>2]<(f|0))break R;c=J[e+12>> -2];break Va}if(!e)break Ua;f=0;c=J[e+12>>2]}if(K[c+f|0]==47)break Pa}J[695492]=0;c=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Sa;J[c>>2]=0;J[c+4>>2]=0;e=J[d+128>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break Sa;e=J[d+128>>2]}else e=0;J[c+8>>2]=e;J[695492]=0;of(i,c);c=J[695492];J[695492]=0;if((c|0)!=1)break Pa}b=Z()|0;break Q}b=Z()|0;qc(e);break Q}b=Z()|0;vc(d+28|0);break Q}f=c-2|0;Wa:{if(!f){f=0;break Wa}if((c|0)<=1){f=f+h|0;if((f|0)<0)break R}if(f>>> -0>h>>>0)break R}if(K[e+f|0]==47)break Ka;J[695492]=0;ia(5143,d+184|0,d+160|0,1,-1);c=J[695492];J[695492]=0;if((c|0)==1)break Oa;c=J[d+184>>2];c=J[(c?c+12|0:2728584)>>2];while(1){e=c;c=c+1|0;f=H[e|0];if((f|0)==32|f-9>>>0<5)continue;break}c=e;while(1){Xa:{Ya:{Za:{g=f&255;switch(g-47|0){case 0:case 15:break Xa;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break Ya;default:break Za}}if(!g)break Xa}f=f<<24>>24;if((f|0)==32|f-9>>>0<5)break Xa;f=K[c+ -1|0];c=c+1|0;continue}break}J[695492]=0;e=ga(5169,d+20|0,e|0,c-e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Na;f=J[e>>2];_a:{if(f){g=J[J[f>>2]+28>>2];J[695492]=0;ca(g|0,d+136|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break _a;b=Z()|0;sc(e);break La}J[d+136>>2]=0}J[695492]=0;aa(4993,l|0,d+136|0)|0;f=J[695492];J[695492]=0;$a:{if((f|0)!=1){f=J[d+136>>2];J[d+136>>2]=0;if(!f)break $a;J[695492]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break $a;J[695492]=0;_(4987,f| -0);f=J[695492];J[695492]=0;if((f|0)!=1)break $a}break a}b=Z()|0;vc(d+136|0);sc(e);break La}f=J[a+8>>2];J[a+12>>2]=J[(f?f+12|0:2728584)>>2];sc(e);J[695492]=0;ca(5538,c|0,j|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break Ma;J[695492]=0;aa(4985,d+128|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Ma;J[695492]=0;c=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Ma;J[c>>2]=0;J[c+4>>2]=0;e=J[d+128>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break Ma;e=J[d+128>> -2]}else e=0;J[c+8>>2]=e;J[695492]=0;of(i,c);c=J[695492];J[695492]=0;if((c|0)==1)break Ma;sc(d+184|0)}c=J[d+128>>2];J[c+96>>2]=m;J[695492]=0;J[d+128>>2]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break E;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break E}break a}b=Z()|0;break Q}b=Z()|0;break La}b=Z()|0}sc(d+184|0);break Q}J[695492]=0;a=ja(5018,d+184|0,2381425,2375163,302,2424848,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break S;J[695492]=0;_(5019,a|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);break Q}b=Z()|0;sc(d+184|0);break Q}sc(c);break E}b=Z()|0;break Q}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break f;b=Z()|0}vc(d+128|0);break d}b=Z()|0}sc(d+88|0);sc(c);break d}b=Z()|0;sc(c);break d}if(h>>>0<2)break G;if(K[e+2|0]!=45)break E;if(h>>>0>2)break F}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break f;b=Z()|0;break d}if(K[e+3|0]!=45)break E;ab:{while(1){bb:{cb:{db:{eb:{fb:{gb:{hb:{if((c|0)>=7){J[695492]= -0;e=d+184|0;ia(5143,e|0,d+160|0,c-3|0,-1);c=J[695492];J[695492]=0;if((c|0)==1)break hb;J[695492]=0;c=fd(e,2379543,-1);f=J[695492];J[695492]=0;if((f|0)==1)break gb;sc(e);if(!c)break E}c=J[J[b>>2]+36>>2];J[695492]=0;la(c|0,d+136|0,b|0,0,62,1);c=J[695492];J[695492]=0;if((c|0)==1)break fb;c=J[d+136>>2];if(J[c+8>>2]?c:0)break bb;J[d+128>>2]=0;J[d+132>>2]=J[682146];a=J[d+160>>2];J[d>>2]=J[(a?a+12|0:2728584)>>2];J[695492]=0;ga(5180,d+128|0,2379718,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break eb;a=J[d+ -128>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,d+184|0,a|0,2375163,254,2424848,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break db;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);break cb}b=Z()|0;break d}b=Z()|0;sc(d+184|0);break d}b=Z()|0;break d}b=Z()|0;break cb}b=Z()|0}sc(d+128|0);break ab}J[695492]=0;c=aa(5170,d+160|0,d+136|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){c=J[c>>2];if(c)c=J[c+8>>2];else c=0;sc(d+136|0);continue}break}b=Z()|0}sc(d+136|0);break d}c= -J[J[b>>2]+36>>2];J[695492]=0;la(c|0,d+184|0,b|0,0,60,0);c=J[695492];J[695492]=0;if((c|0)==1)break z;c=J[d+184>>2];ib:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+136|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break ib;b=Z()|0;break v}J[d+136>>2]=0}J[695492]=0;aa(4993,d+152|0,d+136|0)|0;c=J[695492];J[695492]=0;jb:{if((c|0)!=1){c=J[d+136>>2];J[d+136>>2]=0;if(!c)break jb;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break jb;J[695492]=0;_(4987,c|0);c=J[695492]; -J[695492]=0;if((c|0)!=1)break jb}break a}b=Z()|0;vc(d+136|0);break v}c=J[d+152>>2];J[d+156>>2]=J[(c?c+12|0:2728584)>>2];if(!c){sc(d+184|0);continue}c=K[J[c+12>>2]];f=d+184|0;sc(f);if(!c)continue;break}k=J[b+28>>2];c=J[i+12>>2];if(!c)break x;e=J[c+8>>2];J[d+12>>2]=0;J[d+16>>2]=J[682146];kb:{c=J[d+152>>2];lb:{mb:{if(c){g=J[J[c>>2]+28>>2];J[695492]=0;ca(g|0,f|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break mb;b=Z()|0;break lb}J[d+184>>2]=0}J[695492]=0;aa(4993,d+12|0,d+184|0)|0;c=J[695492];J[695492]= -0;if((c|0)!=1){c=J[d+184>>2];J[d+184>>2]=0;if(!c)break kb;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break kb;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break kb}break a}b=Z()|0;vc(d+184|0)}sc(d+12|0);break d}c=J[d+12>>2];J[d+16>>2]=J[(c?c+12|0:2728584)>>2];c=J[e+52>>2];J[695492]=0;e=c?c+12|0:e+60|0;c=d+12|0;aa(5170,e|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break y;sc(c);continue}b=Z()|0;break d}b=Z()|0;sc(d+12|0);break d}c=J[d+152>>2]; -if(!c)continue;J[695492]=0;e=ga(5416,c|0,0,-1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break w;c=J[d+152>>2];if(c)c=J[c+8>>2];else c=0;if((c|0)==(e|0))continue;break}J[695492]=0;ca(5048,d+136|0,2376226,d+152|0);a=J[695492];J[695492]=0;nb:{ob:{if((a|0)!=1){a=J[d+136>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,d+184|0,a|0,2375163,317,2424848,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ob;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);break nb}b=Z()|0;break d}b= -Z()|0}sc(d+136|0);break d}b=Z()|0;break d}sc(d+184|0);break d}b=Z()|0}sc(d+128|0);break o}b=Z()|0;break o}b=Z()|0;break o}b=Z()|0;break o}b=Z()|0;sc(d+136|0)}sc(f);break m}b=Z()|0}sc(d+184|0);break d}b=Z()|0;break d}B()}sc(d+184|0)}sc(d+144|0)}sc(d+152|0)}sc(d+160|0);$c(i);ba(b|0);B()}ea(0)|0;yc();B()}function HI(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,r=0,s=0,t=0,u=0,v=0,w=0,y=0,A=0;i=bc-80|0;bc=i;s=vd(8,8);w=8;while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{d= -b;g=K[d|0];switch(g-123|0){case 1:break B;case 2:break Y;case 0:break Z;default:break X}}g=K[b+1|0];if((g|0)==123){b=b+2|0;g=J[a>>2];if((g|0)==2147483647){Th(776382);g=J[a>>2]}kh(a,g+1|0);g=J[a>>2];J[a>>2]=g+1;H[g+J[a+4>>2]|0]=123;H[J[a+4>>2]+J[a>>2]|0]=0;continue}if((g-48&255)>>>0>9)break W;h=b+2|0;g=(g<<24>>24)-48|0;d=K[b+2|0];if((d-48&255)>>>0<=9)while(1){g=(P(g,10)+(d&255)|0)-48|0;d=K[h+1|0];h=h+1|0;if((d-48&255)>>>0<10)continue;break}if((d&255)!=58)break W;n=K[h+1|0];m=(n|0)!=45;d=m?h+1|0:h+ -2|0;b=0;o=K[(m?1:2)+h|0];h=o;if((h-48&255)>>>0<=9)while(1){b=(P(b,10)+(h&255)|0)-48|0;h=K[d+1|0];d=d+1|0;if((h-48&255)>>>0<10)continue;break}j=(b|0)>0;_:{if((h&255)!=46){p=0;break _}h=K[d+1|0];p=0;d=d+1|0;if((h-48&255)>>>0>9)break _;while(1){p=(P(p,10)+(h&255)|0)-48|0;h=K[d+1|0];d=d+1|0;if((h-48&255)>>>0<10)continue;break}}k=(n|0)==45;l=j?b:0;h=0;while(1){j=J[(h<<2)+2182528>>2];b=Qc(j);if(kd(d,j,b)){h=h+1|0;if((h|0)!=30)continue;break W}break}j=b+d|0;if(K[j|0]!=125|(g|0)>(t|0))break W;if((g|0)==(t| -0)){if((t|0)==(w|0)){w=w<<1;s=Nd(s,w,8)}$:{aa:{ba:switch(h|0){case 0:case 1:case 2:case 3:case 29:J[(t<<3)+s>>2]=J[c>>2];break aa;case 4:case 5:case 6:case 7:J[(t<<3)+s>>2]=J[c>>2];break aa;case 8:case 9:case 10:case 11:J[(t<<3)+s>>2]=J[c>>2];break aa;case 12:case 13:case 14:case 15:J[(t<<3)+s>>2]=J[c>>2];break aa;case 16:case 17:case 18:case 19:b=c+7&-8;c=J[b+4>>2];d=(t<<3)+s|0;J[d>>2]=J[b>>2];J[d+4>>2]=c;c=b+8|0;break $;case 20:case 21:case 22:case 23:b=c+7&-8;c=J[b+4>>2];d=(t<<3)+s|0;J[d>>2]=J[b>> -2];J[d+4>>2]=c;c=b+8|0;break $;case 24:case 25:b=c+7&-8;O[(t<<3)+s>>3]=O[b>>3];c=b+8|0;break $;case 26:H[(t<<3)+s|0]=J[c>>2];break aa;case 27:J[(t<<3)+s>>2]=J[c>>2];break aa;case 28:break ba;default:break $}J[(t<<3)+s>>2]=J[c>>2]}c=c+4|0}t=t+1|0}b=j+1|0;g=(g<<3)+s|0;j=J[g+4>>2];g=J[g>>2];ca:switch(h|0){case 0:e=g>>31;p=e>>>31|0;if(!g)break V;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){k=e;d=d-1|0;j=Fzb(f,e,10,0);h=fc;y=i+d|0,A=K[(f-Dzb(j,h,10,0)|0)+2182656|0],H[y|0]=A;if(d>>> -0<=p>>>0)break f;m=f;v=f-10|0;f=j;e=h;j=k-(m>>>0<10)|0;if((j|0)==-1&v>>>0<4294967277|(j|0)!=-1)continue;break}break f;case 1:e=g>>31;k=e>>>31|0;if(!g)break U;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2182656|0];if(d>>>0<=k>>>0)break g;h=f-16|0;m=e-(f>>>0<16)|0;j=e;e=e>>>4|0;f=(j&15)<<28|f>>>4;if((m|0)==-1&h>>>0<4294967265|(m|0)!=-1)continue;break}break g;case 2:e=g>>31;k=e>>>31|0;if(!g)break T;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e| -0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2182656|0];if(d>>>0<=k>>>0)break h;j=f-8|0;m=e-(f>>>0<8)|0;f=(e&7)<<29|f>>>3;e=e>>>3|0;if((m|0)==-1&j>>>0<4294967281|(m|0)!=-1)continue;break}break h;case 3:e=g>>31;k=e>>>31|0;if(!g)break S;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2182656|0];if(d>>>0<=k>>>0)break i;j=f;h=f-2|0;m=e-(f>>>0<2)|0;f=e;e=e>>>1|0;f=(f&1)<<31|j>>>1;if((m|0)==-1&h>>>0<4294967293|(m|0)!=-1)continue;break}break i;case 4:if(!g)break R; -f=g;e=0;d=65;while(1){k=f;f=Fzb(f,e,10,0);j=fc;m=k-Dzb(f,j,10,0)|0;g=e;h=d-1|0;H[i+h|0]=K[m+2182656|0];if(d>>>0<2)break j;d=h;e=j;if(!g&k>>>0>9|g)continue;break}break j;case 5:if(!g)break Q;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2182656|0];j=!e&f>>>0>15|(e|0)!=0;g=e;e=e>>>4|0;f=(g&15)<<28|f>>>4;if(j)continue;break}break k;case 6:if(!g)break P;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2182656|0];j=!e&f>>>0>7|(e|0)!=0;g=e;e=e>>>3|0;f=(g&7)<<29|f>>>3;if(j)continue;break}break l;case 7:if(!g)break O; -f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2182656|0];j=!e&f>>>0>1|(e|0)!=0;g=e;e=e>>>1|0;f=(g&1)<<31|f>>>1;if(j)continue;break}break m;case 8:e=g>>31;p=e>>>31|0;if(!g)break N;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){k=e;d=d-1|0;j=Fzb(f,e,10,0);h=fc;y=i+d|0,A=K[(f-Dzb(j,h,10,0)|0)+2182656|0],H[y|0]=A;if(d>>>0<=p>>>0)break n;m=f;v=f-10|0;f=j;e=h;j=k-(m>>>0<10)|0;if((j|0)==-1&v>>>0<4294967277|(j|0)!=-1)continue;break}break n;case 9:e=g>>31;k=e>>>31|0;if(!g)break M;d= -e;e=d>>31;j=e^g;f=j-e|0;e=(d^e)-((e>>>0>j>>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2182656|0];if(d>>>0<=k>>>0)break o;j=f;h=f-16|0;m=e-(f>>>0<16)|0;f=e;e=e>>>4|0;f=(f&15)<<28|j>>>4;if((m|0)==-1&h>>>0<4294967265|(m|0)!=-1)continue;break}break o;case 10:e=g>>31;k=e>>>31|0;if(!g)break L;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2182656|0];if(d>>>0<=k>>>0)break p;h=f-8|0;m=e-(f>>>0<8)|0;j=e;e=e>>>3|0;f=(j&7)<<29|f>>>3;if((m|0)==-1&h>>>0< -4294967281|(m|0)!=-1)continue;break}break p;case 11:e=g>>31;k=e>>>31|0;if(!g)break K;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2182656|0];if(d>>>0<=k>>>0)break q;j=f-2|0;m=e-(f>>>0<2)|0;f=(e&1)<<31|f>>>1;e=e>>>1|0;if((m|0)==-1&j>>>0<4294967293|(m|0)!=-1)continue;break}break q;case 12:if(!g)break J;f=g;e=0;d=65;while(1){k=f;f=Fzb(f,e,10,0);j=fc;m=k-Dzb(f,j,10,0)|0;g=e;h=d-1|0;H[i+h|0]=K[m+2182656|0];if(d>>>0<2)break r;d=h;e=j;if(!g&k>>>0>9|g)continue; -break}break r;case 13:if(!g)break I;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2182656|0];j=!e&f>>>0>15|(e|0)!=0;g=e;e=e>>>4|0;f=(g&15)<<28|f>>>4;if(j)continue;break}break s;case 14:if(!g)break H;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2182656|0];j=!e&f>>>0>7|(e|0)!=0;g=e;e=e>>>3|0;f=(g&7)<<29|f>>>3;if(j)continue;break}break t;case 15:if(!g)break G;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2182656|0];j=!e&f>>>0>1|(e|0)!=0;g=e;e=e>>>1|0;f=(g&1)<<31|f>>>1;if(j)continue;break}break u; -case 16:p=j>>>31|0;e=g;g=j;if(!(e|g))break F;f=e;e=g>>31;d=e;h=f^d;f=h-d|0;e=(d^g)-((d>>>0>h>>>0)+d|0)|0;d=65;while(1){k=e;d=d-1|0;g=Fzb(f,e,10,0);h=fc;y=i+d|0,A=K[(f-Dzb(g,h,10,0)|0)+2182656|0],H[y|0]=A;if(d>>>0<=p>>>0)break v;m=f;v=f-10|0;f=g;e=h;g=k-(m>>>0<10)|0;if((g|0)==-1&v>>>0<4294967277|(g|0)!=-1)continue;break}break v;case 17:k=j>>>31|0;f=g;e=j;if(!(f|e))break E;h=f;f=e>>31;g=f;d=h^f;f=d-f|0;e=(e^g)-((d>>>0>>0)+g|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2182656|0];if(d>>>0<=k>>>0)break w; -h=f-16|0;m=e-(f>>>0<16)|0;g=e;e=e>>>4|0;f=(g&15)<<28|f>>>4;if((m|0)==-1&h>>>0<4294967265|(m|0)!=-1)continue;break}break w;case 18:k=j>>>31|0;f=g;e=j;if(!(f|e))break D;g=f;f=e>>31;d=f;h=g^d;f=h-d|0;e=(e^d)-((d>>>0>h>>>0)+d|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2182656|0];if(d>>>0<=k>>>0)break x;h=f-8|0;m=e-(f>>>0<8)|0;g=e;e=e>>>3|0;f=(g&7)<<29|f>>>3;if((m|0)==-1&h>>>0<4294967281|(m|0)!=-1)continue;break}break x;case 19:k=j>>>31|0;f=g;e=j;if(!(f|e))break C;h=f;f=e>>31;g=f;d=h^f;f=d-f|0;e=(e^g)- -((d>>>0>>0)+g|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2182656|0];if(d>>>0<=k>>>0)break y;g=f;h=f-2|0;m=e-(f>>>0<2)|0;f=e;e=e>>>1|0;f=(f&1)<<31|g>>>1;if((m|0)==-1&h>>>0<4294967293|(m|0)!=-1)continue;break}break y;case 20:d=65;f=g;e=j;da:{if(!(f|e)){H[i+64|0]=48;h=64;break da}while(1){k=f;f=Fzb(f,e,10,0);j=fc;m=k-Dzb(f,j,10,0)|0;g=e;h=d-1|0;H[i+h|0]=K[m+2182656|0];if(d>>>0<2)break da;d=h;e=j;if(!g&k>>>0>9|g)continue;break}}if(!((o|0)!=48|(h|0)<=0|(65-h|0)>=(l|0))){f=(h+l|0)-66|0;e=h-1|0;f=e>>> -0>f>>>0?f:e;h=e-f|0;wc(i+h|0,48,f+1|0)}f=65-h|0;e=i+h|0;if((n|0)==45)break e;break d;case 21:d=65;f=g;e=j;ea:{if(!(f|e)){H[i+64|0]=48;d=64;break ea}while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2182656|0];j=!e&f>>>0>15|(e|0)!=0;g=e;e=e>>>4|0;f=(g&15)<<28|f>>>4;if(j)continue;break}}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d;case 22:d=65;f=g;e=j;fa:{if(!(f|e)){H[i+64|0]=48;d=64;break fa}while(1){d= -d-1|0;H[i+d|0]=K[(f&7)+2182656|0];j=!e&f>>>0>7|(e|0)!=0;g=e;e=e>>>3|0;f=(g&7)<<29|f>>>3;if(j)continue;break}}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d;case 23:d=65;f=g;e=j;ga:{if(!(f|e)){H[i+64|0]=48;d=64;break ga}while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2182656|0];j=!e&f>>>0>1|(e|0)!=0;g=e;e=e>>>1|0;f=(g&1)<<31|f>>>1;if(j)continue;break}}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66| -0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d;case 24:f=65;k=0;x(0,g|0);x(1,j|0);u=+z();q=V((u<0?-u:u)*We(10,+(p|0))+.5);r=q;ha:{if((p|0)>0){while(1){e=f;f=e-1|0;j=f+i|0;r=V((q+.5)*.1);q=V(r*-10+q+.5);ia:{if(R(q)<2147483648){g=~~q;break ia}g=-2147483648}H[j|0]=g+48;d=1;k=k+1|0;if((k|0)<(p|0)){q=r;if(e>>>0>2)continue}break}if(e>>>0<3)break ha}d=f-1|0;H[i+d|0]=46}h=d;ja:{if(d>>>0<2)break ja;while(1){h=d-1|0;f=i+h|0;q=V((r+.5)*.1);r=V(q*-10+r+.5); -ka:{if(R(r)<2147483648){e=~~r;break ka}e=-2147483648}H[f|0]=e+48;if(d>>>0<3)break ja;d=h;r=q;if(q!=0)continue;break}}if(u<0){h=h-1|0;H[i+h|0]=45}f=65-h|0;e=i+h|0;if((n|0)==45)break e;break d;case 25:d=65;f=0;k=0;x(0,g|0);x(1,j|0);u=+z();q=V((u<0?-u:u)*We(10,+(p|0))+.5);r=q;la:{if((p|0)>0){while(1){r=V((q+.5)*.1);q=V(r*-10+q+.5);ma:{if(R(q)<2147483648){e=~~q;break ma}e=-2147483648}g=e|k;if(g){d=d-1|0;H[i+d|0]=e+48;k=1}else k=0;f=f+1|0;if((p|0)>(f|0)){q=r;if((d|0)>1)continue}break}if(!(!g|(d|0)<2)){d= -d-1|0;H[i+d|0]=46}if((d|0)<2)break la}h=d;while(1){d=h-1|0;f=i+d|0;q=V((r+.5)*.1);r=V(q*-10+r+.5);na:{if(R(r)<2147483648){e=~~r;break na}e=-2147483648}H[f|0]=e+48;if(h>>>0<3)break la;h=d;r=q;if(q!=0)continue;break}}if(u<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d;case 26:H[i|0]=g;e=i;f=1;if((n|0)==45)break d;break c;case 27:if(!g)break A;f=Qc(g);if((n|0)!=45){e=g;break e}e=g;break d;case 28:if(!g)break A;f=J[g>>2];e=J[g+4>>2];if((n|0)!=45)break e;break d;case 29:break ca; -default:break z}e=i;f=0;l=g;if((n|0)==45)break c;break d}b=K[b+1|0]==125?b+2|0:b+1|0;g=J[a>>2];if((g|0)==2147483647){Th(776382);g=J[a>>2]}kh(a,g+1|0);g=J[a>>2];J[a>>2]=g+1;H[g+J[a+4>>2]|0]=125;H[J[a+4>>2]+J[a>>2]|0]=0;continue}if(g)break B}Gc(s);bc=i+80|0;return a}H[i+64|0]=48;d=64;break f}H[i+64|0]=48;d=64;break g}H[i+64|0]=48;d=64;break h}H[i+64|0]=48;d=64;break i}H[i+64|0]=48;h=64;break j}H[i+64|0]=48;d=64;break k}H[i+64|0]=48;d=64;break l}H[i+64|0]=48;d=64;break m}H[i+64|0]=48;d=64;break n}H[i+ -64|0]=48;d=64;break o}H[i+64|0]=48;d=64;break p}H[i+64|0]=48;d=64;break q}H[i+64|0]=48;h=64;break r}H[i+64|0]=48;d=64;break s}H[i+64|0]=48;d=64;break t}H[i+64|0]=48;d=64;break u}H[i+64|0]=48;d=64;break v}H[i+64|0]=48;d=64;break w}H[i+64|0]=48;d=64;break x}H[i+64|0]=48;d=64;break y}while(1){oa:{g=K[d+1|0];d=d+1|0;pa:switch(g-123|0){case 1:continue;case 0:case 2:break oa;default:break pa}if(g)continue}break}g=d-b|0;qa:{if((g|0)>=0){h=J[a>>2];if((h|0)<=(g^2147483647))break qa}Th(776382);h=J[a>>2]}kh(a, -g+h|0);tc(J[a+4>>2]+J[a>>2]|0,b,g);g=g+J[a>>2]|0;J[a>>2]=g;b=d;H[g+J[a+4>>2]|0]=0;continue}e=777621;f=6;k=m}if(k)break e;break d}if(!((o|0)!=48|(d|0)<=(k|0)|(65-d|0)>=(l-k|0))){e=(((j>>31)+l|0)+d|0)-66|0;f=d-1|0;g=f-k|0;e=e>>>0>>0?e:g;d=f-e|0;wc(i+d|0,48,e+1|0)}if((j|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=(k|0)|(65-d|0)>=(l-k|0))){e=(((j>>31)+l|0)+d|0)-66|0;f=d-1|0;g=f-k|0;e=e>>>0>>0?e:g;d=f-e|0;wc(i+d|0,48,e+1|0)}if((j|0)<0){d=d-1|0;H[i+ -d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=(k|0)|(65-d|0)>=(l-k|0))){e=(((j>>31)+l|0)+d|0)-66|0;f=d-1|0;g=f-k|0;e=e>>>0>>0?e:g;d=f-e|0;wc(i+d|0,48,e+1|0)}if((j|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=(p|0)|(65-d|0)>=(l-p|0))){e=(((j>>31)+l|0)+d|0)-66|0;f=d-1|0;g=f-p|0;e=e>>>0>>0?e:g;d=f-e|0;wc(i+d|0,48,e+1|0)}if((j|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<= -0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(h|0)<=0|(65-h|0)>=(l|0))){f=(h+l|0)-66| -0;e=h-1|0;f=e>>>0>f>>>0?f:e;h=e-f|0;wc(i+h|0,48,f+1|0)}f=65-h|0;e=i+h|0;if((n|0)==45)break e;break d}ra:{if((o|0)!=48|(d|0)<=(k|0))break ra;e=l-k|0;if((e|0)<=(65-d|0))break ra;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;wc(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}sa:{if((o|0)!=48|(d|0)<=(k|0))break sa;e=l-k|0;if((e|0)<=(65-d|0))break sa;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;wc(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0; -H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}ta:{if((o|0)!=48|(d|0)<=(k|0))break ta;e=l-k|0;if((e|0)<=(65-d|0))break ta;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;wc(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}ua:{if((o|0)!=48|(d|0)<=(p|0))break ua;e=l-p|0;if((e|0)<=(65-d|0))break ua;e=(d+e|0)-66|0;f=d-1|0;j=f-p|0;e=e>>>0>>0?e:j;d=f-e|0;wc(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e; -break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;wc(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(h|0)<=0|(65- -h|0)>=(l|0))){f=(h+l|0)-66|0;e=h-1|0;f=e>>>0>f>>>0?f:e;h=e-f|0;wc(i+h|0,48,f+1|0)}f=65-h|0;e=i+h|0;if((n|0)==45)break e;break d}va:{if((o|0)!=48|(d|0)<=(k|0))break va;e=l-k|0;if((e|0)<=(65-d|0))break va;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;wc(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}wa:{if((o|0)!=48|(d|0)<=(k|0))break wa;e=l-k|0;if((e|0)<=(65-d|0))break wa;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;wc(i+d|0,48, -e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}xa:{if((o|0)!=48|(d|0)<=(k|0))break xa;e=l-k|0;if((e|0)<=(65-d|0))break xa;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;wc(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}ya:{if((o|0)!=48|(d|0)<=(p|0))break ya;e=l-p|0;if((e|0)<=(65-d|0))break ya;e=(d+e|0)-66|0;f=d-1|0;j=f-p|0;e=e>>>0>>0?e:j;d=f-e|0;wc(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65- -d|0;e=d+i|0;if((n|0)!=45)break d}if((f|0)>=0)break c;break b}h=f;if((l|0)>(f|0))while(1){g=J[a>>2];if((g|0)==2147483647){Th(776382);g=J[a>>2]}kh(a,g+1|0);g=J[a>>2];J[a>>2]=g+1;H[g+J[a+4>>2]|0]=32;H[J[a+4>>2]+J[a>>2]|0]=0;h=h+1|0;if((l|0)!=(h|0))continue;break}za:{if((f|0)>=0){d=J[a>>2];if((d|0)<=(f^2147483647))break za}Th(776382);d=J[a>>2]}kh(a,d+f|0);tc(J[a+4>>2]+J[a>>2]|0,e,f);g=J[a>>2]+f|0;J[a>>2]=g;H[g+J[a+4>>2]|0]=0;continue}d=J[a>>2];if((d|0)<=(f^2147483647))break a}Th(776382);d=J[a>>2]}kh(a, -d+f|0);tc(J[a+4>>2]+J[a>>2]|0,e,f);g=J[a>>2]+f|0;J[a>>2]=g;H[g+J[a+4>>2]|0]=0;h=f;if((l|0)<=(f|0))continue;while(1){g=J[a>>2];if((g|0)==2147483647){Th(776382);g=J[a>>2]}kh(a,g+1|0);g=J[a>>2];J[a>>2]=g+1;H[g+J[a+4>>2]|0]=32;H[J[a+4>>2]+J[a>>2]|0]=0;h=h+1|0;if((l|0)!=(h|0))continue;break}continue}}function Cxb(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0;m=bc-2784|0;bc=m;a:{n=J[a+52>> -2];if(!n){e=-1;break a}b:{c:{d:{e:{f:{g:{if(!J[n+40>>2]){f=J[n+32>>2];if((J[f>>2]&3)!=3){e=-1;break a}c=J[f+20>>2];h:{if(!c)break h;e=J[f+24>>2];b=c;while(1){d=J[e+12>>2];i:{if(K[e+9|0]!=1){if((d|0)>=(P(K[e+5|0],3)-2|0))break i;e=-1;break a}if((d|0)==1)break i;e=-1;break a}e=e+488|0;b=b-1|0;if(b)continue;break}if((c|0)<=0)break h;b=J[f+24>>2];while(1){if(!(H[b+4|0]&1))wc(b+419|0,15,66);j:{if(K[b+9|0]!=1)break j;d=K[b+5|0];if(!d)break j;c=J[b+16>>2];if(c>>>0>65535)break g;if(d>>>0<2)break j;g=b+16| -0;i=P(d,3);l=c&2047;d=c>>>11|0;e=1;while(1){c=d+((e+2>>>0)/3|0)|0;if(c>>>0>31)break g;J[g+(e<<2)>>2]=l|c<<11&63488;c=e+3|0;e=e+1|0;if((c|0)!=(i|0))continue;break}}b=b+488|0;t=t+1|0;if((t|0)>2])continue;break}f=J[n+32>>2]}J[n+48>>2]=K[f+16|0]==1;if(J[a+56>>2]>0){r=J[n+36>>2];C=J[a+88>>2];while(1){p=J[J[n+32>>2]+24>>2]+P(G,488)|0;if(!K[p+8|0])J[n+48>>2]=1;b=K[p+5|0];J[r+20>>2]=b;b=zc(P(b,60));J[r+24>>2]=b;if(!b)break c;f=J[C>>2];c=f-1|0;d=J[C+4>>2];b=d-1|0;b=Io((c+J[n+4>>2]>>>0)/(f>>>0)|0,(b+ -J[n+8>>2]>>>0)/(d>>>0)|0,(c+J[n+12>>2]>>>0)/(f>>>0)|0,(b+J[n+16>>2]>>>0)/(d>>>0)|0);J[r+16>>2]=b;if(!b)break c;b=MN(K[p+8|0],J[r+20>>2]-1|0);J[r+28>>2]=b;if(!b)break c;c=b;b=J[r+16>>2];LN(c,J[b+4>>2],J[b+8>>2],J[b+12>>2],J[b+16>>2],m+224|0);e=J[r+20>>2];if((e|0)>0){k=J[r+24>>2];x=0;while(1){J[k+4>>2]=0;c=(x^-1)+e|0;b=-1<>2]>>>c|0;J[k+8>>2]=h;g=b+J[r+4>>2]>>>c|0;J[k+12>>2]=g;i=b+J[r+8>>2]>>>c|0;J[k+16>>2]=i;f=b+J[r+12>>2]>>>c|0;J[k+20>>2]=f;b=p+x|0;e=K[b+419|0];J[k+24>>2]=e;j=K[b+452| -0];J[k+28>>2]=j;b=-1<>>e|0;J[k+32>>2]=c;b=-1<>>j|0;J[k+36>>2]=b;J[k+40>>2]=P(b,c);k:{if(!(h>>>0>>0&f>>>0>g>>>0)){J[k+40>>2]=0;J[k+4>>2]=0;J[k+32>>2]=0;J[k+36>>2]=0;break k}if(x){j=j-1|0;e=e-1|0;I=I+1>>>1|0;l=l+1>>>1|0;d=d+1>>>1|0;c=3}else c=1;J[k+48>>2]=j;J[k+44>>2]=e;b=K[p+6|0];J[k+52>>2]=(b|0)>(e|0)?e:b;b=K[p+7|0];J[k>>2]=c;J[k+56>>2]=(b|0)>(j|0)?j:b;q=zc(c<<5);J[k+4>>2]=q;if(!q)break c;if(J[k>>2]<=0)break k;O=P(x,3)-2|0;D=0;while(1){c= -x?D+O|0:0;i=(m+224|0)+P(c,40)|0;b=J[i+16>>2];J[q+8>>2]=b;J[q+12>>2]=J[(p+(c<<2)|0)+16>>2];f=eE(K[p+8|0],x,b);J[q+24>>2]=f;b=J[q+12>>2];c=b<<2&8188|8192;b=b>>11;f=(f+J[C+16>>2]|0)-b|0;J[q+16>>2]=(f|0)<0?c>>>0-f|0:c<>2]=b;f=K[p+417|0];J[q>>2]=0;J[q+4>>2]=0;J[q+28>>2]=(b+f|0)>31?32-c|0:f;l:{if(J[i>>2]==J[i+8>>2]|J[i+4>>2]==J[i+12>>2])break l;b=Io(0,0,0,0);J[q+4>>2]=b;if(!b)break c;Zx(b,J[r+16>>2],J[i+20>>2],J[i+24>>2],J[i+28>>2],J[i+32>>2]);f=J[q+4>>2];c=J[i>>2];J[f+ -4>>2]=c;b=J[(i|4)>>2];J[f+8>>2]=b;J[f+12>>2]=c+J[f+24>>2];J[f+16>>2]=b+J[f+20>>2];b=J[k+40>>2];if(!b)break f;e=zc(P(b,40));J[q>>2]=e;if(!e)break c;E=J[k+40>>2];if((E|0)<=0)break l;h=J[k+44>>2];f=l;c=d;while(1){i=J[k+48>>2];g=J[q+4>>2];b=J[g+4>>2];w=b>>>0>>0?c:b;J[e>>2]=w;b=J[g+8>>2];u=b>>>0>>0?f:b;J[e+4>>2]=u;M=(1<>2];h=b>>>0>M>>>0?M:b;J[e+8>>2]=h;i=(1<>2];g=b>>>0>i>>>0?i:b;J[e+12>>2]=g;m:{if(!(h>>>0<=w>>>0|g>>>0<=u>>>0)){v=J[k+52>>2];i=J[k+56>>2];b=-1<>>i|0;J[e+20>>2]=g;b=-1<>>v|0;J[e+16>>2]=i;b=P(g,i);J[e+24>>2]=b;if((b|0)<=0)break e;b=uu(i,g);J[e+32>>2]=b;if(!b)break c;b=uu(J[e+16>>2],J[e+20>>2]);J[e+36>>2]=b;if(!b)break c;j=zc(P(J[e+24>>2],44));J[e+28>>2]=j;if(!j)break c;t=J[e+24>>2];if((t|0)<=0)break m;A=J[k+52>>2];i=f;b=c;while(1){h=(1<>2];v=g>>>0>h>>>0?h:g;g=J[e>>2];w=b>>>0>g>>>0?b:g;n:{if(v>>>0<=w>>>0)break n;u=(1<>2])+i|0;g=J[e+12>>2];u=g>>>0>u>>>0?u:g;g=J[e+ -4>>2];g=g>>>0>>0?i:g;if(u>>>0<=g>>>0)break n;J[j+28>>2]=0;J[j+32>>2]=0;J[j+20>>2]=3;J[j+24>>2]=-1;J[j>>2]=0;J[j+4>>2]=0;J[j+36>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;J[j+16>>2]=0;h=Io(0,0,0,0);J[j+40>>2]=h;if(!h)break c;Zx(h,J[q+4>>2],w,g,v,u);t=t-1|0;j=j+44|0;A=J[k+52>>2];h=(1<>>0>>0)b=h;else{i=(1<>2])+i|0;b=c}if((t|0)>0)continue;break}break m}J[e+36>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0}h=J[k+44>>2];c=(1<>>0<=c>>>0){f=(1<>2])+f|0;c=d}e=e+40|0;b=(E|0)>1;E=E-1|0; -if(b)continue;break}}q=q+32|0;D=D+1|0;if((D|0)>2])continue;break}}k=k+60|0;e=J[r+20>>2];x=x+1|0;if((e|0)>(x|0))continue;break}}C=C+32|0;r=r+32|0;G=G+1|0;if((G|0)>2])continue;break}}h=0;g=k9();b=0;o:{if(!g)break o;b=J[a+56>>2];J[g+8>>2]=b;d=zc(b<<4);J[g+12>>2]=d;p:{if(!d)break p;q:{r:{i=J[g+8>>2];if((i|0)<=0)break r;c=d;if(i>>>0>=8){f=i&-8;b=0;while(1){J[c+4>>2]=0;J[c+116>>2]=0;J[c+100>>2]=0;J[c+84>>2]=0;J[c+68>>2]=0;J[c+52>>2]=0;J[c+36>>2]=0;J[c+20>>2]=0;c=c+128|0;b=b+8|0;if((f|0)!=(b| -0))continue;break}}f=i&7;if(f){b=0;while(1){J[c+4>>2]=0;c=c+16|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if((i|0)<=0)break r;e=J[n+36>>2];while(1){b=J[e+20>>2];J[d>>2]=b;b=zc(P(b,20));J[d+4>>2]=b;if(!b)break p;i=J[d>>2];l=(i|0)<=0;s:{if(l)break s;c=b;if(i>>>0>=8){f=i&-8;j=0;while(1){J[c+4>>2]=0;J[c+144>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+84>>2]=0;J[c- -64>>2]=0;J[c+44>>2]=0;J[c+24>>2]=0;c=c+160|0;j=j+8|0;if((f|0)!=(j|0))continue;break}}j=0;f=i&7;if(f)while(1){J[c+4>>2]=0;c=c+20|0;j=j+1|0;if((f| -0)!=(j|0))continue;break}if(l)break s;c=J[e+24>>2];i=0;while(1){f=J[c+40>>2];J[b>>2]=f;f=zc(f<<2);J[b+4>>2]=f;if(!f)break p;c=c+60|0;b=b+20|0;i=i+1|0;if((i|0)>2])continue;break}}d=d+16|0;e=e+32|0;i=J[g+8>>2];h=h+1|0;if((i|0)>(h|0))continue;break}h=J[n+36>>2];b=0;J[g+4>>2]=0;if((i|0)<=0)break q;l=J[g+12>>2];e=J[a+88>>2];f=0;while(1){J[l+8>>2]=J[e>>2];J[l+12>>2]=J[e+4>>2];c=J[l>>2];if((c|0)>0){j=J[l+4>>2];i=J[h+24>>2];d=0;while(1){J[j+8>>2]=J[i+24>>2];J[j+12>>2]=J[i+28>>2];if(J[j>>2]>0){c=J[j+ +0];n=r-e|0;t=n+j|0;q=t>>31;p=e;e=(i^j)-i|0;j=(q^t)-q|0;i=e>>>0>j>>>0?p:r;p=j;j=n>>31;j=(j^n)-j|0;H[h|0]=K[c|0]-(e>>>0>>0?i:p>>>0>>0?i:l);h=h+1|0;c=c+1|0;a=a+1|0;d=d+1|0;b=b+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}h=J[g>>2]}a=J[o+8>>2];J[k+216>>2]=0;J[k+212>>2]=h;b=k+212|0;c=a+1|0;h=0;la:{ma:{while(1){if(!h){J[k+216>>2]=c;c=0}if(Wk(b,0)){a=J[k+236>>2];if(a)break ma;Ld(k,63410);B()}if(!J[k+228>>2]){di(k,1229209940,J[k+268>>2],J[k+272>>2]);a=J[k+272>>2];J[k+224>>2]=J[k+268>>2];J[k+228>>2]= +a;J[k+200>>2]=J[k+200>>2]|4}h=J[k+216>>2];if(h|c)continue;break}a=J[k+352>>2];if(a){b=J[k+356>>2];J[k+356>>2]=a;J[k+352>>2]=b}Go(k);a=J[k+452>>2]+1|0;J[k+452>>2]=a;if(a>>>0>J[k+448>>2]-1>>>0)na:{if(!k|M[k+344>>2]>=M[k+328>>2])break na;oa:{b=k+212|0;if(Wk(b,2))break oa;while(1){a=J[k+228>>2];if(!a){bX(k,J[k+268>>2],J[k+272>>2]);if(!Wk(b,2))continue;break oa}break}b=J[k+272>>2];if((b|0)!=(a|0))bX(k,J[k+268>>2],b-a|0);J[k+452>>2]=0;a=J[k+444>>2];if(a)kc[a|0](k);break na}a=J[k+236>>2];if(!a){Ld(k,59162); +B()}Ld(k,a);B()}break la}Ld(k,a);B()}a=J[k+524>>2];if(!a)break c;kc[a|0](k,J[k+344>>2],K[k+399|0])}fc=o+16|0;return}Ld(a,58684);B()}Ld(a,58914);B()}function _Ya(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,u=0,v=0,w=0,x=0,y=0,z=Q(0),A=0,C=Q(0),D=Q(0),E=Q(0);o=fc-496|0;fc=o;a:{b:{c:{d:{e:{f:switch(J[c+4>>2]-1|0){case 0:q=O[c+248>>3];r=O[c+232>>3];x=O[c+208>>3];y=O[c+200>>3];f=O[c+216>>3];s=O[c+184>>3];t=O[c+192>>3];i=O[c+256>>3]+(s*O[c+224>>3]+t* +O[c+240>>3]);O[b+608>>3]=i;f=q+(s*f+t*r);O[b+600>>3]=f;d=J[b+596>>2];O[d+16>>3]=i;O[d+8>>3]=f;J[d>>2]=1;q=O[c+248>>3];r=O[c+232>>3];f=O[c+216>>3];i=O[c+256>>3]+(y*O[c+224>>3]+t*O[c+240>>3]);O[b+608>>3]=i;f=q+(y*f+t*r);O[b+600>>3]=f;re(J[b+596>>2],f,i);q=O[c+248>>3];r=O[c+232>>3];f=O[c+216>>3];i=O[c+256>>3]+(y*O[c+224>>3]+x*O[c+240>>3]);O[b+608>>3]=i;f=q+(y*f+x*r);O[b+600>>3]=f;re(J[b+596>>2],f,i);q=O[c+248>>3];r=O[c+232>>3];f=O[c+216>>3];i=O[c+256>>3]+(s*O[c+224>>3]+x*O[c+240>>3]);O[b+608>>3]=i;f= +q+(s*f+x*r);O[b+600>>3]=f;re(J[b+596>>2],f,i);gg(J[b+596>>2]);d=J[b+596>>2];e=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];d=J[e+12>>2]<<3;O[b+600>>3]=O[(d+J[e>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[e+4>>2]|0)-8>>3];p=fc-400|0;fc=p;g:{h:{i:{j:{if(!K[a+229|0]){rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);f=O[b+392>>3];d=J[a+104>>2];kc[J[J[d>>2]+132>>2]](d,p+396|0)|0;d=J[a+104>>2];kc[J[J[d>>2]+136>>2]](d,837284)|0;t=O[c+208>>3];q=O[c+200>>3];r=O[c+192>>3];i=O[c+184>>3];v=vc(24);N[v>>2]=O[c+216>>3]/72*25.4;N[v+4>>2]=O[c+ +224>>3]/72*25.4;N[v+8>>2]=O[c+232>>3]/72*25.4;N[v+12>>2]=O[c+240>>3]/72*25.4;N[v+16>>2]=O[c+248>>3]/72*25.4;N[v+20>>2]=O[c+256>>3]/72*25.4;J[p+156>>2]=0;J[p+148>>2]=0;J[p+152>>2]=0;J[699344]=0;l=_(4,24)|0;d=J[699344];J[699344]=0;e=(d|0)==1;f=f*255;k:{if(R(f)<2147483648){d=~~f;break k}d=-2147483648}if(e)break j;J[p+148>>2]=l;h=l+24|0;J[p+156>>2]=h;e=J[v+20>>2];J[l+16>>2]=J[v+16>>2];J[l+20>>2]=e;e=J[v+12>>2];J[l+8>>2]=J[v+8>>2];J[l+12>>2]=e;e=J[v+4>>2];J[l>>2]=J[v>>2];J[l+4>>2]=e;J[699344]=0;J[p+152>> +2]=h;Mb(3397,p+160|0,Q(Q(i)),Q(Q(q)),Q(Q(r)),Q(Q(t)),p+148|0);e=J[699344];J[699344]=0;l:{if((e|0)!=1){e=J[p+148>>2];if(e){J[p+152>>2]=e;uc(e)}e=J[p+248>>2];if(e){f=+(e>>>0);E=Q((t-r)/f);C=Q((q-i)/f);u=J[c+8>>2];while(1){f=+z;m=P(w,12);h=0;D=Q(0);while(1){J[699344]=0;l=p+20|0;Sb(3398,c|0,+D,+f,l|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[J[u>>2]+20>>2];J[699344]=0;ia(e|0,u|0,l|0,p+8|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break i;g=J[p+16>>2];l=J[p+12>>2];e=J[p+8>>2];k=J[m+J[p+252>>2]>>2]+ +(h<<2)|0;H[k+3|0]=d;H[k+2|0]=P(e,255)+32768>>>16;H[k+1|0]=P(l,255)+32768>>>16;H[k|0]=P(g,255)+32768>>>16;D=Q(D+C);h=h+1|0;e=J[p+248>>2];if(h>>>0>>0)continue;break}z=Q(z+E);w=w+1|0;if(e>>>0>w>>>0)continue;break}}d=J[a+104>>2];c=J[J[d>>2]+456>>2];J[699344]=0;da(c|0,d|0,p+160|0);c=J[699344];J[699344]=0;if((c|0)!=1)break l;break i}a=Z()|0;b=J[p+148>>2];if(!b)break h;J[p+152>>2]=b;uc(b);break h}d=J[a+104>>2];c=J[J[d>>2]+348>>2];J[699344]=0;aa(c|0,d|0,837256)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i; +d=J[a+104>>2];J[p+20>>2]=4;c=J[J[d>>2]+312>>2];J[699344]=0;aa(c|0,d|0,p+20|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;c=J[a+104>>2];a=J[J[c>>2]+136>>2];J[699344]=0;aa(a|0,c|0,p+396|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;$(3399,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;Se(p+240|0);uc(v)}fc=p+400|0;break g}a=Z()|0;break h}a=Z()|0;Se(p+240|0)}uc(v);break a}break e;case 1:Cw(b,o+488|0,o+472|0,o+480|0,o+464|0);i=O[o+488>>3];f=O[o+472>>3];O[b+608>>3]=f;O[b+600>>3]=i;d= +J[b+596>>2];O[d+16>>3]=f;O[d+8>>3]=i;J[d>>2]=1;i=O[o+488>>3];f=O[o+464>>3];O[b+608>>3]=f;O[b+600>>3]=i;re(J[b+596>>2],i,f);i=O[o+480>>3];f=O[o+464>>3];O[b+608>>3]=f;O[b+600>>3]=i;re(J[b+596>>2],i,f);i=O[o+480>>3];f=O[o+472>>3];O[b+608>>3]=f;O[b+600>>3]=i;re(J[b+596>>2],i,f);gg(J[b+596>>2]);d=J[b+596>>2];e=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];d=J[e+12>>2]<<3;O[b+600>>3]=O[(d+J[e>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[e+4>>2]|0)-8>>3];e=fc-384|0;fc=e;if(!K[a+229|0]){d=J[a+104>>2];kc[J[J[d>>2]+132>>2]](d, +e+380|0)|0;rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);q=O[b+392>>3];d=J[a+104>>2];kc[J[J[d>>2]+136>>2]](d,837288)|0;s=O[c+216>>3];t=O[c+224>>3];r=O[c+200>>3];i=O[c+208>>3];f=O[c+184>>3];N[e+20>>2]=O[c+192>>3]/72*25.4;N[e+16>>2]=f/72*25.4;N[e+8>>2]=i/72*25.4;N[e+4>>2]=r/72*25.4;z=Q(s);C=Q(t);m=J[c+364>>2]!=0;l=J[c+368>>2]!=0;u=fc-32|0;fc=u;g=e+144|0;d=g;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=1065353216;J[d+32>>2]=0;J[d+36>>2]=0;J[d+76>>2]=0;J[d+80>>2]=1;J[d+68>>2]=0;J[d+72>>2]=0;J[d+60>>2]=1056964608; +J[d+64>>2]=1065353216;I[d+56>>1]=0;J[d+48>>2]=1065353216;J[d+52>>2]=1065353216;J[d+8>>2]=0;J[d+12>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+84>>2]=1;h=d+88|0;d=h;J[d>>2]=0;J[d+4>>2]=0;J[g+96>>2]=0;J[g+100>>2]=0;J[g+104>>2]=0;J[g+108>>2]=0;J[g+120>>2]=0;J[g+124>>2]=0;J[g+128>>2]=0;J[g+132>>2]=0;J[g+136>>2]=0;J[g+140>>2]=0;J[699344]=0;k=_(4,24)|0;d=J[699344];J[699344]=0;if((d|0)==1){a=Z()|0;xk(h);break a}d=k+24|0;J[g+140>>2]=d;J[g+132>>2]=k;J[k+16>>2]=0;J[k+20>>2]=0;J[k+8>>2]=0;J[k+12>>2]=0;J[k>>2]=0;J[k+ +4>>2]=0;J[g+136>>2]=d;Ac(g+148|0,0,88);J[g+80>>2]=1;J[g+84>>2]=1;N[g+76>>2]=l>>>0;N[g+72>>2]=m>>>0;J[699344]=0;k=Pa(3409,u|0,256,Q(z),Q(C))|0;d=J[699344];J[699344]=0;m:{if((d|0)!=1){J[g+88>>2]=J[k>>2];l=J[g+92>>2];if(l){h=J[g+96>>2];d=l;if((h|0)!=(d|0)){while(1){d=h-12|0;m=J[d>>2];if(m){J[h-8>>2]=m;uc(m)}h=d;if((d|0)!=(l|0))continue;break}d=J[g+92>>2]}J[g+96>>2]=l;uc(d);J[g+100>>2]=0;J[g+92>>2]=0;J[g+96>>2]=0}J[g+92>>2]=J[k+4>>2];J[g+96>>2]=J[k+8>>2];J[g+100>>2]=J[k+12>>2];d=J[k+20>>2];J[g+104>>2]= +J[k+16>>2];J[g+108>>2]=d;d=J[k+28>>2];J[g+112>>2]=J[k+24>>2];J[g+116>>2]=d;H[g+144|0]=1;d=J[e+20>>2];J[g+148>>2]=J[e+16>>2];J[g+152>>2]=d;d=J[e+8>>2];J[g+156>>2]=J[e+4>>2];J[g+160>>2]=d;fc=u+32|0;break m}break b}d=J[e+232>>2];if(d){C=Q((t-s)/+(d>>>0));u=J[c+8>>2];f=q*255;n:{if(R(f)<2147483648){d=~~f;break n}d=-2147483648}while(1){J[699344]=0;l=e+16|0;kb(3400,c|0,+z,l|0);h=J[699344];J[699344]=0;if((h|0)==1)break c;h=J[J[u>>2]+20>>2];J[699344]=0;ia(h|0,u|0,l|0,e+4|0,0);h=J[699344];J[699344]=0;if((h| +0)==1)break c;h=J[J[u>>2]+16>>2];J[699344]=0;ia(h|0,u|0,l|0,e|0,0);h=J[699344];J[699344]=0;if((h|0)==1)break c;g=J[e+12>>2];l=J[e+8>>2];h=J[e+4>>2];m=J[J[e+236>>2]>>2]+(w<<2)|0;H[m+3|0]=d;H[m+2|0]=P(h,255)+32768>>>16;H[m+1|0]=P(l,255)+32768>>>16;H[m|0]=P(g,255)+32768>>>16;z=Q(z+C);w=w+1|0;if(w>>>0>2])continue;break}}d=J[a+104>>2];c=J[J[d>>2]+456>>2];J[699344]=0;da(c|0,d|0,e+144|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;d=J[a+104>>2];c=J[J[d>>2]+348>>2];J[699344]=0;aa(c|0,d|0,837256)| +0;c=J[699344];J[699344]=0;if((c|0)==1)break c;d=J[a+104>>2];J[e+16>>2]=4;c=J[J[d>>2]+312>>2];J[699344]=0;aa(c|0,d|0,e+16|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[a+104>>2];a=J[J[c>>2]+136>>2];J[699344]=0;aa(a|0,c|0,e+380|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;$(3399,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;Se(e+224|0)}fc=e+384|0;break e;case 2:x=O[c+208>>3];y=O[c+184>>3];i=O[c+224>>3];f=O[c+200>>3];i=f>3];t=O[c+192>>3];q=f+(s>3]=q;r=f+(x>3]=r;d=J[b+596>>2];O[d+16>>3]=q;O[d+8>>3]=r;J[d>>2]=1;f=i+i;i=f+(s>t?s:t);O[b+608>>3]=i;O[b+600>>3]=r;re(J[b+596>>2],r,i);O[b+608>>3]=i;f=f+(x>y?x:y);O[b+600>>3]=f;re(J[b+596>>2],f,i);O[b+608>>3]=q;O[b+600>>3]=f;re(J[b+596>>2],f,q);gg(J[b+596>>2]);d=J[b+596>>2];e=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];d=J[e+12>>2]<<3;O[b+600>>3]=O[(d+J[e>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[e+4>>2]|0)-8>>3];e=fc-384|0;fc=e;if(!K[a+229|0]){rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);s=O[b+ +392>>3];d=J[a+104>>2];kc[J[J[d>>2]+132>>2]](d,e+380|0)|0;d=J[a+104>>2];kc[J[J[d>>2]+136>>2]](d,837292)|0;x=O[c+232>>3];y=O[c+240>>3];t=O[c+200>>3];q=O[c+224>>3];r=O[c+208>>3];i=O[c+216>>3];f=O[c+184>>3];N[e+20>>2]=O[c+192>>3]/72*25.4;N[e+16>>2]=f/72*25.4;N[e+8>>2]=i/72*25.4;N[e+4>>2]=r/72*25.4;D=Q(t/72*25.4);E=Q(q/72*25.4);z=Q(x);C=Q(y);m=J[c+380>>2]!=0;l=J[c+384>>2]!=0;u=fc-32|0;fc=u;g=e+144|0;d=g;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=1065353216;J[d+32>>2]=0;J[d+36>>2]=0;J[d+76>>2]=0;J[d+ +80>>2]=1;J[d+68>>2]=0;J[d+72>>2]=0;J[d+60>>2]=1056964608;J[d+64>>2]=1065353216;I[d+56>>1]=0;J[d+48>>2]=1065353216;J[d+52>>2]=1065353216;J[d+8>>2]=0;J[d+12>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+84>>2]=1;h=d+88|0;d=h;J[d>>2]=0;J[d+4>>2]=0;J[g+96>>2]=0;J[g+100>>2]=0;J[g+104>>2]=0;J[g+108>>2]=0;J[g+120>>2]=0;J[g+124>>2]=0;J[g+128>>2]=0;J[g+132>>2]=0;J[g+136>>2]=0;J[g+140>>2]=0;J[699344]=0;k=_(4,24)|0;d=J[699344];J[699344]=0;if((d|0)==1){a=Z()|0;xk(h);break a}d=k+24|0;J[g+140>>2]=d;J[g+132>>2]=k;J[k+16>> +2]=0;J[k+20>>2]=0;J[k+8>>2]=0;J[k+12>>2]=0;J[k>>2]=0;J[k+4>>2]=0;J[g+136>>2]=d;Ac(g+148|0,0,88);J[g+80>>2]=1;J[g+84>>2]=1;N[g+76>>2]=l>>>0;N[g+72>>2]=m>>>0;J[699344]=0;k=Pa(3409,u|0,256,Q(z),Q(C))|0;d=J[699344];J[699344]=0;o:{if((d|0)!=1){J[g+88>>2]=J[k>>2];l=J[g+92>>2];if(l){h=J[g+96>>2];d=l;if((h|0)!=(d|0)){while(1){d=h-12|0;m=J[d>>2];if(m){J[h-8>>2]=m;uc(m)}h=d;if((d|0)!=(l|0))continue;break}d=J[g+92>>2]}J[g+96>>2]=l;uc(d);J[g+100>>2]=0;J[g+92>>2]=0;J[g+96>>2]=0}J[g+92>>2]=J[k+4>>2];J[g+96>>2]= +J[k+8>>2];J[g+100>>2]=J[k+12>>2];d=J[k+20>>2];J[g+104>>2]=J[k+16>>2];J[g+108>>2]=d;d=J[k+28>>2];J[g+112>>2]=J[k+24>>2];J[g+116>>2]=d;d=J[e+20>>2];J[g>>2]=J[e+16>>2];J[g+4>>2]=d;h=J[e+8>>2];d=J[e+4>>2];N[g+20>>2]=E;N[g+16>>2]=D;J[g+8>>2]=d;J[g+12>>2]=h;fc=u+32|0;break o}break b}d=J[e+232>>2];if(d){C=Q((y-x)/+(d>>>0));u=J[c+8>>2];f=s*255;p:{if(R(f)<2147483648){h=~~f;break p}h=-2147483648}d=0;while(1){J[699344]=0;g=e+16|0;kb(3401,c|0,+z,g|0);l=J[699344];J[699344]=0;if((l|0)==1)break c;l=J[J[u>>2]+20>> +2];J[699344]=0;ia(l|0,u|0,g|0,e+4|0,0);l=J[699344];J[699344]=0;if((l|0)==1)break c;m=J[e+12>>2];g=J[e+8>>2];l=J[e+4>>2];k=J[J[e+236>>2]>>2]+(d<<2)|0;H[k+3|0]=h;H[k+2|0]=P(l,255)+32768>>>16;H[k+1|0]=P(g,255)+32768>>>16;H[k|0]=P(m,255)+32768>>>16;z=Q(z+C);d=d+1|0;if(d>>>0>2])continue;break}}d=J[a+104>>2];c=J[J[d>>2]+456>>2];J[699344]=0;da(c|0,d|0,e+144|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;d=J[a+104>>2];c=J[J[d>>2]+348>>2];J[699344]=0;aa(c|0,d|0,837256)|0;c=J[699344];J[699344]=0;if((c| +0)==1)break c;d=J[a+104>>2];J[e+16>>2]=4;c=J[J[d>>2]+312>>2];J[699344]=0;aa(c|0,d|0,e+16|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[a+104>>2];a=J[J[c>>2]+136>>2];J[699344]=0;aa(a|0,c|0,e+380|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;$(3399,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;Se(e+224|0)}fc=e+384|0;break e;case 3:case 4:e=1;g=J[c+192>>2];if((g|0)<=0)break d;q:{while(1){d=J[c+324>>2];d=d>>>0>536870911?-1:d<<3;w=vc(d);k=vc(d);u=vc(d);e$(c,v,o+456|0,o+432|0,w, +o+448|0,o+424|0,k,o+440|0,o+416|0,u);l=o+288|0;$t(c,w,l);h=o+160|0;$t(c,k,h);e=o+32|0;$t(c,u,e);_f(b);i=O[o+456>>3];f=O[o+432>>3];O[b+608>>3]=f;O[b+600>>3]=i;d=J[b+596>>2];O[d+16>>3]=f;O[d+8>>3]=i;J[d>>2]=1;i=O[o+448>>3];f=O[o+424>>3];O[b+608>>3]=f;O[b+600>>3]=i;re(J[b+596>>2],i,f);i=O[o+440>>3];f=O[o+416>>3];O[b+608>>3]=f;O[b+600>>3]=i;re(J[b+596>>2],i,f);gg(J[b+596>>2]);d=J[b+596>>2];m=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];d=J[m+12>>2]<<3;O[b+600>>3]=O[(d+J[m>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[m+ +4>>2]|0)-8>>3];m=vc(12);J[o+20>>2]=m;d=m+12|0;J[o+28>>2]=d;J[m+8>>2]=e;J[m+4>>2]=h;J[m>>2]=l;J[o+24>>2]=d;J[699344]=0;s=O[o+456>>3];t=O[o+432>>3];q=O[o+448>>3];r=O[o+424>>3];i=O[o+440>>3];f=O[o+416>>3];e=_(4,24)|0;d=J[699344];J[699344]=0;if((d|0)==1){b=Z()|0;break q}J[o+8>>2]=e;d=e+24|0;J[o+16>>2]=d;N[e+20>>2]=f;N[e+16>>2]=i;N[e+12>>2]=r;N[e+8>>2]=q;N[e+4>>2]=t;N[e>>2]=s;J[699344]=0;J[o+12>>2]=d;ha(3396,a|0,b|0,o+20|0,o+8|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){uc(e);uc(m);uc(w);uc(k);uc(u);e=1; +v=v+1|0;if((g|0)!=(v|0))continue;break d}break}b=Z()|0;uc(e)}uc(m);ba(b|0);B();case 5:case 6:break f;default:break d}u=J[c+184>>2];e=J[a+104>>2];l=pm(e,340388,340400);if(l){kc[J[J[l>>2]+600>>2]](l,0);g=l;e=J[a+104>>2]}J[o+288>>2]=20480;kc[J[J[e>>2]+308>>2]](e,o+288|0)|0;if((u|0)>0)while(1){d=J[c+180>>2];_f(b);j=P(v,1280)+d|0;i=O[j>>3];f=O[j+128>>3];O[b+608>>3]=f;O[b+600>>3]=i;d=J[b+596>>2];O[d+16>>3]=f;O[d+8>>3]=i;J[d>>2]=1;t=O[j+144>>3];q=O[j+16>>3];r=O[j+136>>3];i=O[j+8>>3];s=O[j+24>>3];f=O[j+152>> +3];O[b+608>>3]=f;O[b+600>>3]=s;Nm(J[b+596>>2],i,r,q,t,s,f);t=O[j+216>>3];q=O[j+88>>3];r=O[j+184>>3];i=O[j+56>>3];s=O[j+120>>3];f=O[j+248>>3];O[b+608>>3]=f;O[b+600>>3]=s;Nm(J[b+596>>2],i,r,q,t,s,f);t=O[j+232>>3];q=O[j+104>>3];r=O[j+240>>3];i=O[j+112>>3];s=O[j+96>>3];f=O[j+224>>3];O[b+608>>3]=f;O[b+600>>3]=s;Nm(J[b+596>>2],i,r,q,t,s,f);t=O[j+160>>3];q=O[j+32>>3];r=O[j+192>>3];i=O[j+64>>3];s=O[j>>3];f=O[j+128>>3];O[b+608>>3]=f;O[b+600>>3]=s;Nm(J[b+596>>2],i,r,q,t,s,f);gg(J[b+596>>2]);d=J[b+596>>2];e= +J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];d=J[e+12>>2]<<3;O[b+600>>3]=O[(d+J[e>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[e+4>>2]|0)-8>>3];n=fc-288|0;fc=n;r:{s:{t:{u:{v:{w:{x:{if(K[a+229|0])break x;rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);f=O[b+392>>3];d=J[a+104>>2];kc[J[J[d>>2]+132>>2]](d,n+284|0)|0;d=J[a+104>>2];kc[J[J[d>>2]+136>>2]](d,837300)|0;e=vc(32);J[n+12>>2]=e;d=e+32|0;J[n+20>>2]=d;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[699344]=0;J[n+16>>2]=d; +k=ga(3405,n+272|0,4,n+12|0)|0;d=J[699344];J[699344]=0;e=(d|0)==1;f=f*255;y:{if(R(f)<2147483648){d=~~f;break y}d=-2147483648}z:{if(!e){e=J[n+12>>2];if(e){J[n+16>>2]=e;uc(e)}f=O[j>>3];e=J[k>>2];h=J[e>>2];N[h+4>>2]=O[j+128>>3]/72*25.4;N[h>>2]=f/72*25.4;f=O[j+8>>3];N[h+12>>2]=O[j+136>>3]/72*25.4;N[h+8>>2]=f/72*25.4;f=O[j+16>>3];N[h+20>>2]=O[j+144>>3]/72*25.4;N[h+16>>2]=f/72*25.4;f=O[j+24>>3];N[h+28>>2]=O[j+152>>3]/72*25.4;N[h+24>>2]=f/72*25.4;f=O[j+32>>3];h=J[e+12>>2];N[h+4>>2]=O[j+160>>3]/72*25.4;N[h>> +2]=f/72*25.4;f=O[j+40>>3];N[h+12>>2]=O[j+168>>3]/72*25.4;N[h+8>>2]=f/72*25.4;f=O[j+48>>3];N[h+20>>2]=O[j+176>>3]/72*25.4;N[h+16>>2]=f/72*25.4;f=O[j+56>>3];N[h+28>>2]=O[j+184>>3]/72*25.4;N[h+24>>2]=f/72*25.4;f=O[j+64>>3];h=J[e+24>>2];N[h+4>>2]=O[j+192>>3]/72*25.4;N[h>>2]=f/72*25.4;f=O[j+72>>3];N[h+12>>2]=O[j+200>>3]/72*25.4;N[h+8>>2]=f/72*25.4;f=O[j+80>>3];N[h+20>>2]=O[j+208>>3]/72*25.4;N[h+16>>2]=f/72*25.4;f=O[j+88>>3];N[h+28>>2]=O[j+216>>3]/72*25.4;N[h+24>>2]=f/72*25.4;f=O[j+96>>3];e=J[e+36>>2]; +N[e+4>>2]=O[j+224>>3]/72*25.4;N[e>>2]=f/72*25.4;f=O[j+104>>3];N[e+12>>2]=O[j+232>>3]/72*25.4;N[e+8>>2]=f/72*25.4;f=O[j+112>>3];N[e+20>>2]=O[j+240>>3]/72*25.4;N[e+16>>2]=f/72*25.4;f=O[j+120>>3];N[e+28>>2]=O[j+248>>3]/72*25.4;N[e+24>>2]=f/72*25.4;J[699344]=0;h=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break z;e=Z()|0;break t}e=Z()|0;a=J[n+12>>2];if(!a)break s;J[n+16>>2]=a;uc(a);ba(e|0);B()}J[699344]=0;J[n+12>>2]=h;e=h+8|0;J[n+20>>2]=e;J[n+16>>2]=e;A=ga(2354,n+260|0,2,n+12|0)|0;e=J[699344];J[699344]= +0;A:{B:{C:{if((e|0)!=1){e=J[n+12>>2];if(e){J[n+16>>2]=e;uc(e)}p=J[c+8>>2];J[699344]=0;w=n+12|0;ca(3406,c|0,j+256|0,w|0);e=J[699344];J[699344]=0;if((e|0)==1)break C;e=J[J[p>>2]+20>>2];J[699344]=0;m=n+248|0;ia(e|0,p|0,w|0,m|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break B;e=J[J[A>>2]>>2];h=d<<24;d=h|(P(J[n+256>>2],255)+32768>>>16&255|(P(J[n+248>>2],255)+32768&16711680|P(J[n+252>>2],255)+32768>>>8&65280));H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=d>>>16;H[e+3|0]=d>>>24;J[699344]=0;ca(3406,c|0,j+512|0,w|0);d= +J[699344];J[699344]=0;if((d|0)==1)break C;d=J[J[p>>2]+20>>2];J[699344]=0;ia(d|0,p|0,w|0,m|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break B;e=J[J[A>>2]+12>>2];d=h|(P(J[n+256>>2],255)+32768>>>16&255|(P(J[n+248>>2],255)+32768&16711680|P(J[n+252>>2],255)+32768>>>8&65280));H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=d>>>16;H[e+3|0]=d>>>24;J[699344]=0;ca(3406,c|0,j+768|0,w|0);d=J[699344];J[699344]=0;if((d|0)==1)break C;d=J[J[p>>2]+20>>2];J[699344]=0;ia(d|0,p|0,w|0,m|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break B; +e=J[J[A>>2]>>2];d=h|(P(J[n+256>>2],255)+32768>>>16&255|(P(J[n+248>>2],255)+32768&16711680|P(J[n+252>>2],255)+32768>>>8&65280));H[e+4|0]=d;H[e+5|0]=d>>>8;H[e+6|0]=d>>>16;H[e+7|0]=d>>>24;J[699344]=0;ca(3406,c|0,j+1024|0,w|0);d=J[699344];J[699344]=0;if((d|0)==1)break C;d=J[J[p>>2]+20>>2];J[699344]=0;ia(d|0,p|0,w|0,m|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break B;e=J[J[A>>2]+12>>2];d=h|(P(J[n+256>>2],255)+32768>>>16&255|(P(J[n+248>>2],255)+32768&16711680|P(J[n+252>>2],255)+32768>>>8&65280));H[e+4|0]= +d;H[e+5|0]=d>>>8;H[e+6|0]=d>>>16;H[e+7|0]=d>>>24;J[699344]=0;J[n+256>>2]=0;J[n+248>>2]=0;J[n+252>>2]=0;gb(3407,w|0,k|0,m|0,A|0,0,Q(Q(0)),Q(Q(1)));d=J[699344];J[699344]=0;if((d|0)==1)break w;h=J[n+248>>2];if(h){e=h;d=J[n+252>>2];if((e|0)!=(d|0)){while(1){e=d-12|0;m=J[e>>2];if(m){J[d-8>>2]=m;uc(m)}d=e;if((d|0)!=(h|0))continue;break}e=J[n+248>>2]}J[n+252>>2]=h;uc(e)}e=J[a+104>>2];d=J[J[e>>2]+456>>2];J[699344]=0;da(d|0,e|0,n+12|0);d=J[699344];J[699344]=0;if((d|0)==1)break v;e=J[a+104>>2];d=J[J[e>>2]+ +348>>2];J[699344]=0;aa(d|0,e|0,837256)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break A;break v}e=Z()|0;a=J[n+12>>2];if(!a)break t;J[n+16>>2]=a;uc(a);break t}e=Z()|0;break u}e=Z()|0;break u}e=J[a+104>>2];J[n+248>>2]=4;d=J[J[e>>2]+312>>2];J[699344]=0;aa(d|0,e|0,n+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break v;e=J[a+104>>2];d=J[J[e>>2]+136>>2];J[699344]=0;aa(d|0,e|0,n+284|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break v;J[699344]=0;$(3399,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break v;Se(n+92| +0);h=J[A>>2];if(h){e=h;d=J[A+4>>2];if((e|0)!=(d|0)){while(1){e=d-12|0;m=J[e>>2];if(m){J[d-8>>2]=m;uc(m)}d=e;if((d|0)!=(h|0))continue;break}e=J[A>>2]}J[A+4>>2]=h;uc(e)}h=J[k>>2];if(!h)break x;e=h;d=J[k+4>>2];if((e|0)!=(d|0)){while(1){e=d-12|0;m=J[e>>2];if(m){J[d-8>>2]=m;uc(m)}d=e;if((d|0)!=(h|0))continue;break}e=J[k>>2]}J[k+4>>2]=h;uc(e)}fc=n+288|0;break r}e=Z()|0;jj(n+248|0);break u}e=Z()|0;Se(n+92|0)}jj(A)}jj(k)}ba(e|0);B()}v=v+1|0;if((u|0)!=(v|0))continue;break}if(l)kc[J[J[g>>2]+600>>2]](g,J[a+ +224>>2]);a=J[a+104>>2];J[o+288>>2]=20480;kc[J[J[a>>2]+312>>2]](a,o+288|0)|0}e=1}fc=o+496|0;return e|0}a=Z()|0;Se(e+224|0);break a}a=Z()|0;Se(g+80|0)}ba(a|0);B()}function zpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;t=fc-16|0;fc=t;f=11;k=J[J[b+96>>2]+4>>2];o=go(k,239709);a:{if(!o)break a;y=al(J[b+96>>2],241605,1);D=go(k,241714);g=go(k,241812);if(!g)break a;J[b+556>>2]=g;E=al(J[b+96>> +2],241299,1);f=yd(a,0);if(f)break a;C=kc[J[o+4>>2]](a,b,c,d,e)|0;b:{if(!C){f=2;if(J[b+148>>2]!=1330926671)break a;f=0;if((c|0)<0)break a;g=0;c:{if(!(kc[J[b+516>>2]](b,1751474532,a,0)|0)){f=kc[J[o+8>>2]](a,b,c,d,e)|0;if(!f)break c;break a}f=kc[J[o+32>>2]](b,a)|0;if(f)break a;g=1}f=kc[J[b+516>>2]](b,1128678962,a,0)|0;J[t+12>>2]=f;if(!f){e=1;H[b+732|0]=1;break b}if((f&255)!=142)break a;e=0;f=kc[J[b+516>>2]](b,1128678944,a,0)|0;J[t+12>>2]=f;if(!f)break b;break a}e=0;f=yd(a,0);if(f)break a;J[t+12>>2]= +0;g=1}z=J[b+100>>2];m=he(z,3136,t+12|0);f=J[t+12>>2];if(f)break a;J[b+712>>2]=m;o=b;b=g;l=fc-80|0;fc=l;q=J[a+28>>2];j=Ac(m,0,3136);J[l+72>>2]=0;d=l- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[l+56>>2]=0;J[l+60>>2]=0;J[l+48>>2]=0;J[l+52>>2]=0;J[l+40>>2]=0;J[l+44>>2]=0;s=J[a+8>>2];H[j+32|0]=e;J[j+8>>2]=q;J[j+4>>2]=a;J[j>>2]=k;J[j+12>>2]=s;d=Te(a,258336,j);J[l+76>>2]=d;d:{if(d)break d;e:{if(e){if(!(K[j+24|0]==2&K[j+26|0]>4)){J[l+76>>2]=2;break d}F=j,G=ee(a,l+76|0),J[F+28>>2]=G;if(J[l+76>>2])break d;d=K[j+26|0];break e}f= +Rg(a,l+76|0);if(J[l+76>>2])break d;f:{if(K[j+24|0]!=1)break f;d=K[j+26|0];if(d>>>0<4)break f;if(f>>>0<5)break e}J[l+76>>2]=2;break d}d=yd(a,d+s|0);J[l+76>>2]=d;if(d){if(!b)break d;J[l+76>>2]=2;break d}g:{if(e){J[j+1240>>2]=0;J[j+1244>>2]=0;J[j+1272>>2]=0;d=j+1264|0;J[d>>2]=0;J[d+4>>2]=0;f=j+1256|0;J[f>>2]=0;J[f+4>>2]=0;f=j+1248|0;J[f>>2]=0;J[f+4>>2]=0;J[j+1260>>2]=J[a+8>>2];f=d;d=J[j+28>>2];J[f>>2]=d;d=kg(a,d);J[l+76>>2]=d;if(d)break d;d=Iq(j+108|0,a,1,1);J[l+76>>2]=d;if(d)break d;break g}d=Iq(j+ +36|0,a,0,0);J[l+76>>2]=d;if(d){if(!b)break d;J[l+76>>2]=2;break d}d=J[j+48>>2];if(!(d>>>0<2|d>>>0<=M[j+60>>2])){J[l+76>>2]=b?2:3;break d}d=Iq(j+1240|0,a,0,0);J[l+76>>2]=d;if(d)break d;d=l+40|0;f=Iq(d,a,1,0);J[l+76>>2]=f;if(f)break d;f=Iq(j+108|0,a,1,0);J[l+76>>2]=f;if(f)break d;d=GN(d,j+1360|0,j+1364|0,j+1368|0);J[l+76>>2]=d;if(d)break d;if(M[j+48>>2]<=M[j+1252>>2])break g;J[l+76>>2]=3;break d}J[j+1356>>2]=J[l+52>>2];h:{i:{if(b){A=c&65535;d=J[j+48>>2];if(A>>>0>>0|(c|0)<=0)break i;J[l+76>>2]=6; +break d}if(M[j+48>>2]<2)break h;J[l+76>>2]=3;break d}J[j+16>>2]=d}if((c|0)<0)break d;d=o8(j+1372|0,j+1240|0,A,a,s,e?12288:4096,j,o);J[l+76>>2]=d;if(d)break d;d=yd(a,s+J[j+1484>>2]|0);J[l+76>>2]=d;if(d)break d;d=Iq(j+1204|0,a,0,e);J[l+76>>2]=d;if(d)break d;j:{if(!(!e&J[j+1504>>2]==65535)){f=j+3112|0;d=fc-16|0;fc=d;k=J[a+28>>2];g=J[j+1552>>2];k:{l:{if(!g)break l;g=yd(a,g+s|0);J[d+12>>2]=g;if(g)break k;g=kg(a,2);J[d+12>>2]=g;if(g)break k;p=J[a+8>>2];g=ee(a,d+12|0);if(J[d+12>>2])break k;if((g|0)!=1){J[d+ +12>>2]=3;break k}h=d+12|0;n=Rf(a,h);if(J[d+12>>2])break k;r=ee(a,h);J[f>>2]=r;if(J[d+12>>2])break k;g=0;i=_c(k,4,0,r,0,h);if(J[d+12>>2])break k;if(J[f>>2])while(1){F=(g<<2)+i|0,G=Rf(a,d+12|0),J[F>>2]=G;if(J[d+12>>2])break k;g=g+1|0;if(g>>>0>2])continue;break}g=yd(a,n+p|0);J[d+12>>2]=g;if(g)break k;g=d+12|0;F=f,G=ee(a,g),I[F+8>>1]=G;if(J[d+12>>2])break k;h=ee(a,g);J[f+12>>2]=h;if(J[d+12>>2])break k;F=f,G=_c(k,4,0,h,0,g),J[F+16>>2]=G;if(J[d+12>>2])break k;if(J[f+12>>2]){h=L[f+8>>1];n=0;while(1){r= +J[f+16>>2]+(n<<2)|0;F=r,G=_c(k,12,0,h,0,d+12|0),J[F>>2]=G;if(J[d+12>>2])break k;h=0;if(L[f+8>>1]){g=0;while(1){h=J[r>>2];u=ee(a,d+12|0);if(J[d+12>>2])break k;v=ee(a,d+12|0);if(J[d+12>>2])break k;x=ee(a,d+12|0);if(J[d+12>>2])break k;h=P(g,12)+h|0;J[h>>2]=u<<16>>16<<2;J[h+8>>2]=x<<16>>16<<2;J[h+4>>2]=v<<16>>16<<2;g=g+1|0;h=L[f+8>>1];if(g>>>0>>0)continue;break}}n=n+1|0;if(n>>>0>2])continue;break}}h=0;F=f,G=_c(k,8,0,J[f>>2],0,d+12|0),J[F+4>>2]=G;if(J[d+12>>2])break k;if(!J[f>>2])break l;while(1){g= +J[f+4>>2];n=yd(a,p+J[(h<<2)+i>>2]|0);J[d+12>>2]=n;if(n)break k;n=kg(a,4);J[d+12>>2]=n;if(n)break k;n=(h<<3)+g|0;g=d+12|0;r=ee(a,g);J[n>>2]=r;if(J[d+12>>2])break k;F=n,G=_c(k,4,0,r,0,g),J[F+4>>2]=G;if(J[d+12>>2])break k;if(J[n>>2]){g=0;while(1){r=ee(a,d+12|0);J[J[n+4>>2]+(g<<2)>>2]=r;if(J[d+12>>2])break k;g=g+1|0;if(g>>>0>2])continue;break}}h=h+1|0;if(h>>>0>2])continue;break}}J[d+12>>2]=0}if(i)kc[J[k+8>>2]](k,i);if(J[d+12>>2]){x8(f,k);f=J[d+12>>2]}else f=0;fc=d+16|0;J[l+76>>2]=f;if(f)break d; +d=yd(a,s+J[j+1536>>2]|0);J[l+76>>2]=d;if(d)break d;d=Iq(l+4|0,a,0,e);J[l+76>>2]=d;if(d)break d;f=J[l+16>>2];m:{if(f>>>0>256)break m;J[j+2024>>2]=f;d=0;f=_c(q,652,0,f,0,l+76|0);if(J[l+76>>2])break m;g=J[l+16>>2];n:{if(!g)break n;if(g>>>0>=4){k=g&-4;i=j+2028|0;while(1){J[i+(d<<2)>>2]=f+P(d,652);h=d|1;J[i+(h<<2)>>2]=f+P(h,652);h=d|2;J[i+(h<<2)>>2]=f+P(h,652);h=d|3;J[i+(h<<2)>>2]=f+P(h,652);d=d+4|0;w=w+4|0;if((k|0)!=(w|0))continue;break}}i=g&3;if(i)while(1){J[(j+(d<<2)|0)+2028>>2]=f+P(d,652);d=d+1|0; +B=B+1|0;if((i|0)!=(B|0))continue;break}if(!g){d=0;break n}f=e?16384:4096;d=0;while(1){g=o8(J[(j+(d<<2)|0)+2028>>2],l+4|0,d,a,s,f,j,o);J[l+76>>2]=g;if(g)break m;d=d+1|0;g=J[l+16>>2];if(d>>>0>>0)continue;break}d=g>>>0>1}if(d?0:e)break m;i=j+3052|0;f=J[j+1216>>2];g=fc-16|0;fc=g;d=yd(a,s+J[j+1540>>2]|0);J[g+12>>2]=d;o:{if(d)break o;k=Rg(a,g+12|0);d=J[g+12>>2];if(d)break o;J[i+20>>2]=0;H[i|0]=k;d=3;p:switch(k&255){case 3:f=ee(a,g+12|0);d=J[g+12>>2];if(d)break o;d=3;if(!f)break o;f=P(f,3)+2|0;break; +case 0:break p;default:break o}J[i+12>>2]=f;d=Oi(a,f,i+8|0)}fc=g+16|0;J[l+76>>2]=d}d=l+4|0;f=J[d>>2];if(f){g=d+32|0;i=J[f+28>>2];if(J[d+32>>2])$f(f,g);f=J[d+28>>2];if(f)kc[J[i+8>>2]](i,f);J[g>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0}if(!J[l+76>>2])break j;break d}J[j+2024>>2]=0}if(!J[j+1484>>2]){J[l+76>>2]=3;break d}J[j+20>>2]=J[j+1216>>2];d=GN(j+108|0,j+1352|0,0,0);J[l+76>>2]=d;if(d)break d;q:{if(e)break q;d=J[j+20>>2];if(!d)break q; +g=j+1180|0;f=J[j+1476>>2];q=(b|0)!=0&J[j+1504>>2]!=65535;k=fc-16|0;fc=k;n=J[a+28>>2];J[k+8>>2]=0;r:{s:{t:{u:{if(f>>>0>=3){f=f+s|0;J[g+4>>2]=f;f=yd(a,f);J[k+8>>2]=f;if(f)break s;f=k+8|0;F=g,G=Rg(a,f)&255,J[F>>2]=G;if(J[k+8>>2])break s;f=_c(n,2,0,d,0,f);J[g+8>>2]=f;if(J[k+8>>2])break s;I[f>>1]=0;v:switch(J[g>>2]){case 0:f=1;i=af(a,(d<<1)-2|0);J[k+8>>2]=i;if(i)break s;if(d>>>0>=2)while(1){i=tf(a);I[J[g+8>>2]+(f<<1)>>1]=i;f=f+1|0;if((d|0)!=(f|0))continue;break}ve(a);break u;case 1:case 2:f=1;if(d>>>0<= +1)break u;while(1){i=ee(a,k+8|0);if(J[k+8>>2])break s;w:{if(J[g>>2]==2){h=ee(a,k+8|0);if(!J[k+8>>2])break w;break s}h=Rg(a,k+8|0);if(J[k+8>>2])break s;h=h&255}x:{if(d>>>0<=f>>>0)break x;p=(h^65535)>>>0>>0?i^65535:h;r=J[g+8>>2];h=0;while(1){I[r+(f<<1)>>1]=i;f=f+1|0;if(d>>>0<=f>>>0)break x;i=i+1|0;u=h>>>0

      >>0;h=h+1|0;if(u)continue;break}}if(d>>>0>f>>>0)continue;break}break u;default:break v}J[k+8>>2]=3;break s}J[g+4>>2]=f;y:switch(f|0){case 0:if(d>>>0>=230){J[k+8>>2]=3;break s}f=_c(n,2,0,d,0,k+ +8|0);J[g+8>>2]=f;if(J[k+8>>2])break s;xc(f,258368,d<<1);break u;case 1:if(d>>>0>=167){J[k+8>>2]=3;break s}f=_c(n,2,0,d,0,k+8|0);J[g+8>>2]=f;if(J[k+8>>2])break s;xc(f,258832,d<<1);break u;case 2:break y;default:break t}if(d>>>0>=88){J[k+8>>2]=3;break s}f=_c(n,2,0,d,0,k+8|0);J[g+8>>2]=f;if(J[k+8>>2])break s;xc(f,259168,d<<1)}z:{if(!q){f=J[k+8>>2];break z}f=0;J[k+12>>2]=0;A:{if(J[g+16>>2])break A;i=0;if(d){r=d&3;q=J[g+8>>2];u=0;B:{if(d>>>0<4){h=0;break B}v=d&-4;h=0;while(1){p=f<<1;x=L[q+(p|6)>>1];w= +L[q+(p|4)>>1];B=L[q+(p|2)>>1];p=L[q+p>>1];h=h&65535;h=h>>>0

      >>0?p:h;h=h>>>0>>0?B:h;h=h>>>0>>0?w:h;h=h>>>0>>0?x:h;f=f+4|0;i=i+4|0;if((v|0)!=(i|0))continue;break}}if(r)while(1){i=L[q+(f<<1)>>1];h=h&65535;h=h>>>0>>0?i:h;f=f+1|0;u=u+1|0;if((r|0)!=(u|0))continue;break}i=h&65535}h=_c(n,2,0,i+1|0,0,k+12|0);J[g+12>>2]=h;f=J[k+12>>2];if(f)break A;C:{if((d|0)<=0)break C;q=J[g+8>>2];f=d;r=d&3;if(r){p=0;while(1){f=f-1|0;I[h+(L[q+(f<<1)>>1]<<1)>>1]=f;p=p+1|0;if((r|0)!=(p|0))continue;break}}if(d>>> +0<4)break C;while(1){p=f-1|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;p=f-2|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;p=f-3|0;I[h+(L[q+(p<<1)>>1]<<1)>>1]=p;f=f-4|0;I[h+(L[q+(f<<1)>>1]<<1)>>1]=f;if(p>>>0>1)continue;break}}J[g+20>>2]=d;J[g+16>>2]=i;f=0}J[k+8>>2]=f}if(f)break s;d=0;break r}J[k+8>>2]=3}d=J[g+8>>2];if(d)kc[J[n+8>>2]](n,d);J[g+8>>2]=0;d=J[g+12>>2];if(d)kc[J[n+8>>2]](n,d);J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;d=J[k+8>>2]}fc=k+16|0;J[l+76>>2]=d;if(d)break d;if(J[j+1504>>2]!=65535)break q;n=j+144|0;k= +J[j+20>>2];h=a;d=J[j+1480>>2];p=0;q=fc-16|0;fc=q;a=3;D:{if(!J[g+8>>2])break D;f=Ac(n+12|0,0,1024);if(d>>>0>=2){a=d+s|0;J[n+4>>2]=a;a=yd(h,a);J[q+8>>2]=a;if(a)break D;F=n,G=Rg(h,q+8|0)&255,J[F>>2]=G;a=J[q+8>>2];if(a)break D;f=Rg(h,q+8|0);a=J[q+8>>2];if(a)break D;s=f&255;a=3;E:{F:switch(J[n>>2]&127){case 0:J[n+8>>2]=s+1;a=af(h,s);J[q+8>>2]=a;if(a)break D;G:{if(!f)break G;a=1;d=J[h+32>>2];if((f|0)!=1){p=s&254;f=0;while(1){if(a>>>0>>0){i=n+(K[d|0]<<1)|0;I[i+524>>1]=a;I[i+12>>1]=L[J[g+8>>2]+(a<<1)>> +1]}i=a+1|0;if(i>>>0>>0){r=n+(K[d+1|0]<<1)|0;I[r+524>>1]=i;I[r+12>>1]=L[J[g+8>>2]+(i<<1)>>1]}d=d+2|0;a=a+2|0;f=f+2|0;if((p|0)!=(f|0))continue;break}}if(!(s&1)|a>>>0>=k>>>0)break G;d=n+(K[d|0]<<1)|0;I[d+524>>1]=a;I[d+12>>1]=L[J[g+8>>2]+(a<<1)>>1]}ve(h);break E;case 1:break F;default:break D}J[n+8>>2]=0;if(!f)break E;f=1;while(1){d=f;v=Rg(h,q+8|0);a=J[q+8>>2];if(a)break D;r=Rg(h,q+8|0);a=J[q+8>>2];if(a)break D;u=r&255;a=u+1|0;i=J[n+8>>2];if(u>>>0>=i>>>0){J[n+8>>2]=a;i=a}f=a+d|0;H:{if(f>>>0<=d>>>0)break H; +a=v&255;if(!(u&1)){if(d>>>0>>0){u=n+(a<<1)|0;I[u+524>>1]=d;I[u+12>>1]=L[J[g+8>>2]+(d<<1)>>1]}d=d+1|0;a=a+1|0}if(!r)break H;while(1){if(!(a>>>0>255|d>>>0>=k>>>0)){r=n+(a<<1)|0;I[r+524>>1]=d;I[r+12>>1]=L[J[g+8>>2]+(d<<1)>>1]}r=d+1|0;I:{if(r>>>0>=k>>>0)break I;u=a+1|0;if(u>>>0>255)break I;u=n+(u<<1)|0;I[u+524>>1]=r;I[u+12>>1]=L[J[g+8>>2]+(r<<1)>>1]}a=a+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}p=p+1|0;if((s|0)!=(p|0))continue;break}if(i>>>0<257)break E;J[n+8>>2]=256}if(!(K[n|0]&128)){a=J[q+8>>2]; +break D}d=Rg(h,q+8|0);a=J[q+8>>2];if(a|!d)break D;i=d&255;d=0;while(1){f=q+8|0;s=Rg(h,f);a=J[q+8>>2];if(a)break D;f=ee(h,f);a=J[q+8>>2];if(a)break D;s=n+((s&255)<<1)|0;I[s+12>>1]=f;J:{if(!k)break J;p=J[g+8>>2];a=0;while(1){if((f|0)==L[p+(a<<1)>>1]){I[s+524>>1]=a;break J}a=a+1|0;if((k|0)!=(a|0))continue;break}}a=0;d=d+1|0;if((i|0)!=(d|0))continue;break}break D}K:{L:switch(d|0){case 0:xc(f,255568,512);break K;case 1:break L;default:break D}xc(f,259344,512)}J[n+8>>2]=0;a=J[h+28>>2];J[q+12>>2]=0;d=J[g+ +16>>2];if(!d){d=0;i=a;if(k){r=k&3;s=J[g+8>>2];M:{if(k>>>0<4){h=0;a=0;break M}u=k&-4;h=0;a=0;f=0;while(1){p=a<<1;v=L[s+(p|6)>>1];x=L[s+(p|4)>>1];w=L[s+(p|2)>>1];p=L[p+s>>1];h=h&65535;h=h>>>0

      >>0?p:h;h=h>>>0>>0?w:h;h=h>>>0>>0?x:h;h=h>>>0>>0?v:h;a=a+4|0;f=f+4|0;if((u|0)!=(f|0))continue;break}}if(r)while(1){f=L[s+(a<<1)>>1];h=h&65535;h=f>>>0>h>>>0?f:h;a=a+1|0;d=d+1|0;if((r|0)!=(d|0))continue;break}d=h&65535}i=_c(i,2,0,d+1|0,0,q+12|0);J[g+12>>2]=i;a=J[q+12>>2];if(a)break D;N:{if((k|0)<=0)break N; +h=J[g+8>>2];a=k;s=a&3;if(s){f=0;while(1){a=a-1|0;I[i+(L[h+(a<<1)>>1]<<1)>>1]=a;f=f+1|0;if((s|0)!=(f|0))continue;break}}if(k>>>0<4)break N;while(1){f=a-1|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;f=a-2|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;f=a-3|0;I[i+(L[h+(f<<1)>>1]<<1)>>1]=f;a=a-4|0;I[i+(L[h+(a<<1)>>1]<<1)>>1]=a;if(f>>>0>1)continue;break}}J[g+20>>2]=k;J[g+16>>2]=d}a=0;while(1){O:{P:{f=n+(a<<1)|0;i=L[f+12>>1];if(!i|d>>>0>>0)break P;i=L[J[g+12>>2]+(i<<1)>>1];if(!i)break P;I[f+524>>1]=i;a=a+1|0;J[n+8>>2]=a;break O}I[f+ +524>>1]=0;I[f+12>>1]=0;a=a+1|0}if((a|0)!=256)continue;break}a=0}fc=q+16|0;J[l+76>>2]=a;if(a)break d}F=j,G=z8(j,A),J[F+1348>>2]=G}a=J[l+40>>2];if(a){d=J[a+28>>2];if(J[l+72>>2])$f(a,l+72|0);a=J[l+68>>2];if(a)kc[J[d+8>>2]](d,a)}fc=l+80|0;f=J[l+76>>2];J[t+12>>2]=f;if(f)break a;if((c|0)<0){J[o>>2]=J[m+16>>2];f=0;break a}J[m+3088>>2]=E;J[m+3084>>2]=y;J[m+3080>>2]=D;k=c&65535;J[o+4>>2]=k;J[o+16>>2]=J[m+20>>2];if(J[m+1504>>2]==65535){f=11;if(!y)break a}Q:{if(!(J[o+8>>2]&256)|c>>>0<65536)break Q;d=J[o+548>> +2];if(!d)break Q;a=J[o+552>>2];f=kc[J[d+28>>2]](o,c>>>16|0)|0;J[t+12>>2]=f;if(f)break a;if(!a)break Q;kc[J[a+28>>2]](o)}if(!K[m+1436|0])J[m+1440>>2]=b?1E3:L[o+68>>1];f=J[m+1432>>2];if(!f)f=J[m+1428>>2];c=m+1448|0;a=f>>31;a=(a^f)-a|0;if((a|0)==65536)a=J[m+1448>>2];else{F=m,G=Cd(J[m+1440>>2],a),J[F+1440>>2]=G;F=m,G=Cd(J[m+1420>>2],a),J[F+1420>>2]=G;d=m+1428|0;F=d,G=Cd(J[d>>2],a),J[F>>2]=G;d=m+1424|0;F=d,G=Cd(J[d>>2],a),J[F>>2]=G;F=m,G=Cd(J[m+1432>>2],a),J[F+1432>>2]=G;F=m,G=Cd(J[m+1444>>2],a),J[F+1444>> +2]=G;a=Cd(J[m+1448>>2],a)}J[c>>2]=a>>16;J[m+1444>>2]=I[m+1446>>1];a=J[m+2024>>2];if(a){f=m+1420|0;while(1){a=a-1|0;d=J[((a<<2)+m|0)+2028>>2];R:{if(K[d+64|0]){if(!K[m+1436|0])break R;c=1;g=J[m+1440>>2];if(g>>>0>=2){c=J[d+68>>2];c=c>>>0<=1?1:c>>>0>g>>>0?g:c}g=d+48|0;if(!(!f|!g)){h=J[f>>2];j=J[g>>2];i=c<<16;l=Od(h,j,i);n=J[f+4>>2];q=J[g+8>>2];s=Od(n,q,i);r=h;h=J[g+4>>2];p=Od(r,h,i);r=n;n=J[g+12>>2];A=Od(r,n,i);y=J[f+8>>2];r=Od(y,j,i);j=J[f+12>>2];F=g,G=r+Od(j,q,i)|0,J[F+8>>2]=G;J[g+4>>2]=p+A;J[g>>2]= +l+s;F=g,G=Od(y,h,i)+Od(j,n,i)|0,J[F+12>>2]=G}if(!(!f|(d|0)==-72)){i=J[f+8>>2];h=J[f+12>>2];j=J[d+72>>2];g=c<<16;n=Od(j,J[f>>2],g);l=J[d+76>>2];F=d,G=n+Od(l,J[f+4>>2],g)|0,J[F+72>>2]=G;F=d,G=Od(j,i,g)+Od(l,h,g)|0,J[F+76>>2]=G}F=d,G=Od(J[d+68>>2],J[m+1440>>2],c),J[F+68>>2]=G;break R}c=J[f+4>>2];J[d+48>>2]=J[f>>2];J[d+52>>2]=c;c=J[f+12>>2];J[d+56>>2]=J[f+8>>2];J[d+60>>2]=c;c=J[m+1448>>2];J[d+72>>2]=J[m+1444>>2];J[d+76>>2]=c;J[d+68>>2]=J[m+1440>>2]}c=J[d+60>>2];if(!c)c=J[d+56>>2];g=c;c=c>>31;c=(g^c)- +c|0;if((c|0)==65536)c=J[d+76>>2];else{F=d,G=Cd(J[d+68>>2],c),J[F+68>>2]=G;F=d,G=Cd(J[d+48>>2],c),J[F+48>>2]=G;F=d,G=Cd(J[d+56>>2],c),J[F+56>>2]=G;F=d,G=Cd(J[d+52>>2],c),J[F+52>>2]=G;F=d,G=Cd(J[d+60>>2],c),J[F+60>>2]=G;F=d,G=Cd(J[d+72>>2],c),J[F+72>>2]=G;c=Cd(J[d+76>>2],c)}J[d+76>>2]=c>>16;J[d+72>>2]=I[d+74>>1];if(a)continue;break}}g=J[m+1504>>2];if(b){J[o>>2]=J[m+16>>2];if((g|0)!=65535)a=J[m+1196>>2]+1|0;else a=J[m+1216>>2];J[o+16>>2]=a;J[o+52>>2]=I[m+1458>>1];a=I[m+1462>>1];J[o+56>>2]=a;J[o+60>> +2]=J[m+1464>>2]+65535>>16;c=J[m+1468>>2]+65535>>16;J[o- -64>>2]=c;d=J[m+1440>>2];I[o+72>>1]=a;I[o+70>>1]=c;I[o+68>>1]=d;a=c-a|0;c=(P(d&65535,12)>>>0)/10|0;I[o+74>>1]=(a|0)>c<<16>>16?a:c;I[o+80>>1]=L[m+1406>>1];I[o+82>>1]=L[m+1410>>1];a=J[m+1388>>2];S:{if(!a)break S;a=lE(m,a);if(!a)break S;F=o,G=zk(z,a,t),J[F+20>>2]=G}T:{U:{V:{if(!J[o+20>>2]){d=z8(m,k);J[o+20>>2]=d;if(!d)break V;a=Yc(d);W:{if((a|0)<6)break W;f=d+7|0;c=a+1|0;while(1){if(K[d+6|0]!=43|(K[d+5|0]-91&255)>>>0<230|((K[d+4|0]-91&255)>>>0< +230|(K[d+3|0]-91&255)>>>0<230))break W;if((K[d+2|0]-91&255)>>>0<230|(K[d+1|0]-91&255)>>>0<230|(K[d|0]-91&255)>>>0<230)break W;a=c-7|0;if((c|0)>=8)cd(d,f,a);g=(c|0)>13;c=a;if(g)continue;break}}if(!J[o+20>>2])break V}g=lE(m,J[m+1384>>2]);if(!g)break U;a=J[o+20>>2];if(!a)break U;f=K[g|0];if(!f)break U;while(1){X:{Y:{d=f&255;c=d-32|0;if(!((c|0)!=13?c:0)){if((d|0)==K[a|0])break Y;break X}c=a;f=K[a|0];if((d|0)==(f|0))break Y;while(1){Z:{_:{a=f&255;switch(a-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break U; +case 0:case 13:break _;default:break Z}}f=K[c+1|0];a=c+1|0;c=a;if((d|0)!=(f|0))continue;break Y}break}if(a)break U;f=zk(z,g,t);if(!f)break U;d=J[o+20>>2];g=Yc(d);c=Yc(f);$:{if((g|0)<=(c|0))break $;a=1;if((c|0)>0)while(1){if(K[d+(g-a|0)|0]!=K[(c-a|0)+f|0])break $;i=(a|0)==(c|0);a=a+1|0;if(!i)continue;break}a=g+(c^-1)|0;if((a|0)<=0)break $;while(1){c=a+d|0;g=K[c|0];i=g-32|0;if(!((1<>>0<=13:0)|(g|0)==95)){H[c+1|0]=0;break $}c=(a|0)>1;a=a-1|0;if(c)continue;break}}break T}a=a+1|0}f=K[g+1|0]; +g=g+1|0;if(f)continue;break}break U}a=lE(m,J[m+1544>>2]);if(!a)break U;F=o,G=zk(z,a,t),J[F+20>>2]=G}f=zk(z,241939,t)}J[o+24>>2]=f;a=C?2065:2073;J[o+8>>2]=J[o+8>>2]|(K[m+1396|0]?a|4:a);f=J[m+1400>>2]!=0;a=lE(m,J[m+1392>>2]);aa:{if(!a)break aa;if(Ic(a,242093))if(Ic(a,242174))break aa;f=f|2}ba:{if(f&2)break ba;a=J[o+24>>2];if(!a)break ba;if(ud(a,242093,4))if(ud(a,242174,5))break ba;f=f|2}J[o+12>>2]=f;g=J[m+1504>>2]}ca:{if(!((g|0)!=65535|e)){J[o+8>>2]=J[o+8>>2]|512;e=b;break ca}e=b;if(!b|(g|0)==65535)break ca; +J[o+8>>2]=J[o+8>>2]|4096;e=1}a=J[o+36>>2];da:{ea:{if(a){b=J[o+40>>2];f=0;while(1){fa:{ga:{c=J[b+(f<<2)>>2];switch(L[c+8>>1]){case 0:break ea;case 3:break ga;default:break fa}}if(L[c+10>>1]==1)break ea}f=f+1|0;if((a|0)!=(f|0))continue;break}}if((g|0)!=65535&e)break da;J[t>>2]=o;J[t+4>>2]=1970170211;J[t+8>>2]=65539;b=bl(255172,0,t,0);J[t+12>>2]=b;ha:{if(!b)break ha;b=b&255;if((b|0)==163)break ha;if((b|0)!=7)break da}J[t+12>>2]=0;if(J[o+92>>2]|(a|0)==J[o+36>>2])break ea;J[o+92>>2]=J[J[o+40>>2]+(a<<2)>> +2]}if(!J[m+152>>2])break da;I[t+8>>1]=7;J[t>>2]=o;b=1094995778;f=0;ia:{ja:switch(J[m+148>>2]){case 1:b=1094992453;f=1;break ia;case 0:break ia;default:break ja}b=1094992451;f=2}J[t+4>>2]=b;I[t+10>>1]=f;F=t,G=bl(255132,0,t,0),J[F+12>>2]=G}f=J[t+12>>2]}fc=t+16|0;return f|0}function TSa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i=fc-1152|0;fc=i;j=J[g>>2];l=J[g+4>>2];g=J[d>>2];o=J[d+4>>2];J[a+156>>2]=0;J[a>>2]=2217332;d=vc(8);J[699344]=0;c=aa(3349, +d|0,c|0)|0;p=J[699344];J[699344]=0;if((p|0)==1){a=Z()|0;uc(d);ba(a|0);B()}J[a+32>>2]=j;J[a+36>>2]=l;J[a+20>>2]=f;J[a+16>>2]=e;J[a+8>>2]=g;J[a+12>>2]=o;J[a+4>>2]=c;J[a+152>>2]=0;J[a+28>>2]=0;J[a+3528>>2]=13;J[a+3512>>2]=13;J[a>>2]=2217424;J[i+56>>2]=13;J[i+40>>2]=13;J[i+24>>2]=13;J[a+160>>2]=0;J[a+1444>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if(!e)break s;J[699344]=0;d=_(4,8)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;J[699344]=0;c=aa(3350,d|0,e|0)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break q;g=J[c>>2];if((g|0)>0){e=0;while(1){t:{if(K[J[c+4>>2]+e|0]==32){J[699344]=0;ga(3572,c|0,e|0,1)|0;d=J[699344];J[699344]=0;if((d|0)!=1){g=J[c>>2];break t}e=Z()|0;break a}e=e+1|0}if((e|0)<(g|0))continue;break}}g=65;e=0;while(1){d=(e+g|0)/2|0;f=J[(d<<3)+2725632>>2];J[699344]=0;f=Dd(c,f);j=J[699344];J[699344]=0;if((j|0)==1)break k;f=(f|0)>=0;g=f?g:d;e=f?d:e;if((g-e|0)>1)continue;break}d=(e<<3)+2725632|0;e=J[d>>2];J[699344]=0;e=Dd(c,e);f=J[699344];J[699344]=0;if((f|0)==1)break l;if(!e)J[a+ +160>>2]=d;uc(Zc(c));d=J[a+160>>2];if(!d)break s;g=0;d=J[d+4>>2];c=2657936;u:{if(!Ic(d,J[664484]))break u;if(!Ic(d,J[664491])){g=1;c=2657964;break u}if(!Ic(d,J[664498])){g=2;c=2657992;break u}if(!Ic(d,J[664505])){g=3;c=2658020;break u}if(!Ic(d,J[664512])){g=4;c=2658048;break u}if(!Ic(d,J[664519])){g=5;c=2658076;break u}if(!Ic(d,J[664526])){g=6;c=2658104;break u}if(!Ic(d,J[664533])){g=7;c=2658132;break u}if(!Ic(d,J[664540])){g=8;c=2658160;break u}if(!Ic(d,J[664547])){g=9;c=2658188;break u}if(!Ic(d, +J[664554])){g=10;c=2658216;break u}if(!Ic(d,J[664561])){g=11;c=2658244;break u}if(!Ic(d,J[664568])){g=12;c=2658272;break u}if(Ic(d,J[664575]))break s;g=13;c=2658300}d=P(g,28)+2657936|0;O[a+120>>3]=I[d+8>>1];k=+I[d+10>>1]*.001;O[a+128>>3]=k;e=I[d+12>>1];O[a+144>>3]=k;O[a+136>>3]=+(e|0)*.001;O[a+88>>3]=+I[d+14>>1]*.001;O[a+96>>3]=+I[d+16>>1]*.001;O[a+104>>3]=+I[d+18>>1]*.001;O[a+112>>3]=+I[d+20>>1]*.001;break r}J[a+144>>2]=0;J[a+148>>2]=1072168960;J[a+136>>2]=0;J[a+140>>2]=-1076887552;J[a+128>>2]=0; +J[a+132>>2]=1072168960;J[a+120>>2]=0;J[a+124>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;c=0;m=1}J[699344]=0;ca(3573,a|0,a|0,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;if(!m){k=+I[c+10>>1]*.001;O[a+128>>3]=k;d=I[c+12>>1];O[a+144>>3]=k;O[a+136>>3]=+(d|0)*.001;O[a+88>>3]=+I[c+14>>1]*.001;O[a+96>>3]=+I[c+16>>1]*.001;O[a+104>>3]=+I[c+18>>1]*.001;O[a+112>>3]=+I[c+20>>1]*.001}J[a+40>>2]=0;J[a+44>>2]=1072693248;J[a+48>>2]=0;J[a+ +52>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=1072693248;J[a+56>>2]=0;J[a+60>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[699344]=0;d=ha(3368,h|0,806924,i+56|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;v:{if(J[d>>2]!=6)break v;d=J[i+64>>2];if(J[d+12>>2]<=0)break v;J[699344]=0;d=ha(3449,d|0,0,i+40|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+40>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;d=i+40|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e| +0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<2)break v;J[699344]=0;d=ha(3449,e|0,1,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+48>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;d=i+40|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<3)break v;J[699344]=0;d=ha(3449,e|0,2,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+56>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;d=i+40|0; +$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<4)break v;J[699344]=0;d=ha(3449,e|0,3,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+64>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;d=i+40|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<5)break v;J[699344]=0;d=ha(3449,e|0,4,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+72>>3]=J[i+40>>2]==1?+J[i+ +48>>2]:O[i+48>>3];J[699344]=0;d=i+40|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break j;e=J[i+64>>2];if(J[e+12>>2]<6)break v;J[699344]=0;d=ha(3449,e|0,5,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;if(J[d>>2]-3>>>0>=4294967294)O[a+80>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;$(3370,i+40|0);d=J[699344];J[699344]=0;if((d|0)==1)break j}J[699344]=0;d=i+56|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break l;w:{if(J[a+20>>2]!=4)break w;J[699344]=0;d=ha(3368,h|0,802792,d| +0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;x:{if(J[d>>2]!=6)break x;d=J[i+64>>2];if(J[d+12>>2]<=0)break x;J[699344]=0;d=ha(3449,d|0,0,i+40|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;if(J[d>>2]-3>>>0>=4294967294)O[a+88>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;d=i+40|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[i+64>>2];if(J[e+12>>2]<2)break x;J[699344]=0;d=ha(3449,e|0,1,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;if(J[d>>2]-3>>>0>=4294967294)O[a+ +96>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;d=i+40|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[i+64>>2];if(J[e+12>>2]<3)break x;J[699344]=0;d=ha(3449,e|0,2,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;if(J[d>>2]-3>>>0>=4294967294)O[a+104>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;d=i+40|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[i+64>>2];if(J[e+12>>2]<4)break x;J[699344]=0;d=ha(3449,e|0,3,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break i;if(J[d>>2]-3>>>0>=4294967294)O[a+112>>3]=J[i+40>>2]==1?+J[i+48>>2]:O[i+48>>3];J[699344]=0;$(3370,i+40|0);d=J[699344];J[699344]=0;if((d|0)==1)break i}J[699344]=0;$(3370,i+56|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;d=a+3512|0;e=ha(3368,h|0,807437,d|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;if(J[e>>2]!=7){J[699344]=0;ia(3574,1,-1,807796,0);e=J[699344];J[699344]=0;if((e|0)==1)break l;J[699344]=0;$(3370,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break l}J[699344]=0; +d=a+3528|0;e=ha(3368,h|0,808268,d|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;if(J[e>>2]==7)break w;J[699344]=0;$(3370,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break l}f=0;J[a+1456>>2]=0;J[a+1448>>2]=0;J[a+1452>>2]=0;J[699344]=0;ha(3368,h|0,808826,i+56|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;y:{z:switch(J[i+56>>2]-4|0){case 3:J[699344]=0;ha(3368,J[i+64>>2],809189,i+40|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;A:{if(J[i+40>>2]!=4)break A;d=J[i+48>>2];if(!Ic(d,809504)){J[a+ +1448>>2]=1;J[a+1452>>2]=1;f=2708672;break A}if(!Ic(d,809825)){J[a+1448>>2]=1;f=2709696;break A}if(Ic(d,810230))break A;J[a+1448>>2]=1;f=2710720}J[699344]=0;$(3370,i+40|0);d=J[699344];J[699344]=0;if((d|0)!=1)break y;break l;case 0:break z;default:break y}d=J[i+64>>2];if(!Ic(d,809504)){J[a+1448>>2]=1;J[a+1452>>2]=1;f=2708672;break y}if(!Ic(d,809825)){J[a+1448>>2]=1;f=2709696;break y}if(Ic(d,810230))break y;J[a+1448>>2]=1;f=2710720}e=J[a+20>>2];d=J[a+32>>2];if(!((e|0)!=1|(d|0)<0)){J[699344]=0;d=ga(3575, +a|0,b|0,i+1148|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;if(!d)break n;J[699344]=0;j=aa(3576,d|0,J[i+1148>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;B:{if(!j)break B;J[699344]=0;b=_(3577,j|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;if(b){b=J[a+28>>2];if(b)uc(Zc(b));J[699344]=0;b=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;J[699344]=0;e=_(3577,j|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break p;J[699344]=0;e=aa(3349,b|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break p; +J[a+28>>2]=e}if(f)break B;J[699344]=0;f=_(3578,j|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[a+1456>>2]=1}b=0;J[699344]=0;Mc(d);d=J[699344];J[699344]=0;if((d|0)==1)break l;break m}j=0;if((e|0)!=2){b=0;break m}if((d|0)<0){b=0;break m}J[699344]=0;d=ga(3575,a|0,b|0,i+1148|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;if(!d)break n;J[699344]=0;b=aa(3579,d|0,J[i+1148>>2])|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;C:{if(!b)break C;J[699344]=0;e=J[b+20>>2];if(e)e=J[e+4>>2];else e=0;g=J[699344]; +J[699344]=0;if((g|0)==1)break l;if(e){e=J[a+28>>2];if(e)uc(Zc(e));J[699344]=0;g=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;J[699344]=0;e=J[b+20>>2];if(e)e=J[e+4>>2];else e=0;j=J[699344];J[699344]=0;if((j|0)==1)break o;J[699344]=0;e=aa(3349,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break o;J[a+28>>2]=e}if(f)break C;J[699344]=0;f=J[b+24>>2];e=J[699344];J[699344]=0;if((e|0)==1)break l;J[a+1456>>2]=1}j=0;J[699344]=0;Mc(d);d=J[699344];J[699344]=0;if((d|0)==1)break l;break m}e=Z()|0;uc(d); +break a}e=Z()|0;uc(b);break a}e=Z()|0;uc(g);break a}j=0;b=0}D:{if(f)break D;if(!(J[a+32>>2]>=0|m)){f=J[c+4>>2];J[a+1448>>2]=1;break D}f=J[a+20>>2]==5?2710720:2711744}e=0;while(1){g=e<<2;d=g+a|0;g=f+g|0;J[d+164>>2]=J[g>>2];l=K[a+1456|0];H[(a+e|0)+1188|0]=l;if(!(!l|!J[d+164>>2])){g=J[g>>2];J[699344]=0;g=_(3582,g|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break h;J[d+164>>2]=g}e=e+1|0;if((e|0)!=256)continue;break}if(!(!J[a+1456>>2]|(J[a+20>>2]!=2|J[a+32>>2]<0))){e=0;while(1){d=e<<2;f=d+a|0;E:{if(J[f+164>> +2])break E;d=J[d+2711744>>2];if(!d)break E;J[f+164>>2]=d;H[(a+e|0)+1188|0]=0}d=e|1;f=d<<2;g=f+a|0;F:{if(J[g+164>>2])break F;f=J[f+2711744>>2];if(!f)break F;J[g+164>>2]=f;H[(a+d|0)+1188|0]=0}e=e+2|0;if((e|0)!=256)continue;break}}if(J[i+56>>2]==7){J[699344]=0;ha(3368,J[i+64>>2],810546,i+40|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;G:{if(J[i+40>>2]!=6)break G;J[a+1448>>2]=1;d=J[i+48>>2];if(J[d+12>>2]<=0)break G;e=0;g=0;while(1){J[699344]=0;ha(3449,d|0,e|0,i+24|0,0)|0;d=J[699344];J[699344]=0; +if((d|0)==1)break g;H:{I:switch(J[i+24>>2]-1|0){case 0:g=J[i+32>>2];break H;case 3:if(g>>>0<=255){d=(a+g|0)+1188|0;if(K[d|0]){f=J[((g<<2)+a|0)+164>>2];J[699344]=0;Mc(f);f=J[699344];J[699344]=0;if((f|0)==1)break g}J[699344]=0;f=_(3582,J[i+32>>2])|0;l=J[699344];J[699344]=0;if((l|0)==1)break g;J[((g<<2)+a|0)+164>>2]=f;H[d|0]=1}g=g+1|0;break H;default:break I}J[699344]=0;d=J[(J[i+24>>2]<<2)+2735600>>2];f=J[699344];J[699344]=0;if((f|0)==1)break g;J[i+16>>2]=d;J[699344]=0;ia(3574,1,-1,811130,i+16|0);d= +J[699344];J[699344]=0;if((d|0)==1)break g}J[699344]=0;$(3370,i+24|0);d=J[699344];J[699344]=0;if((d|0)==1)break g;e=e+1|0;d=J[i+48>>2];if((e|0)>2])continue;break}}J[699344]=0;$(3370,i+40|0);d=J[699344];J[699344]=0;if((d|0)==1)break l}J[699344]=0;$(3370,i+56|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;if(j)kc[J[J[j>>2]+4>>2]](j);if(b)kc[J[J[b>>2]+4>>2]](b);b=0;j=0;e=0;while(1){f=e<<2;d=J[(f+a|0)+164>>2];J:{if(d){J[699344]=0;g=PB(J[693464],d);l=J[699344];J[699344]=0;if((l|0)==1)break f;J[f+ +(i+112|0)>>2]=g;if(g)break J;if(!Ic(d,836754))break J;j=1;K:{L:switch(Yc(d)-2|0){case 1:if((K[d|0]|32)-97>>>0>=26)break J;f=K[d+1|0];if(!(f-48>>>0<10|(f|32)-97>>>0<6))break J;d=K[d+2|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break J;if(((f&223)-65&255)>>>0<6|((d&223)-65&255)>>>0<6)break K;break J;case 0:break L;default:break J}f=K[d|0];if(!(f-48>>>0<10|(f|32)-97>>>0<6))break J;d=K[d+1|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break J;if(((f&223)-65&255)>>>0<6)break K;if(((d&223)-65&255)>>>0>5)break J}b=1;break J}J[f+ +(i+112|0)>>2]=0}e=e+1|0;if((e|0)!=256)continue;break}J[a+1460>>2]=0;M:{if(!j)break M;J[699344]=0;d=J[J[693464]+376>>2];e=J[699344];J[699344]=0;if((e|0)==1)break l;if(d){e=0;while(1){d=e<<2;g=J[(d+a|0)+164>>2];N:{if(!g)break N;f=d+(i+112|0)|0;if(J[f>>2])break N;if(!Ic(g,836754))break N;d=Yc(g);J[i+1144>>2]=-1;O:{P:{Q:{R:{S:{if(!(!b|(d|0)!=3)){if((K[g|0]|32)-97>>>0>=26)break S;j=K[g+1|0];if(!(j-48>>>0<10|(j|32)-97>>>0<6))break S;j=K[g+2|0];if(!(j-48>>>0<10|(j|32)-97>>>0<6))break S;g=g+1|0;break Q}if(!(!b| +(d|0)!=2)){d=K[g|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;d=K[g+1|0];if(d-48>>>0<10|(d|32)-97>>>0<6)break Q;break P}T:{if((d|0)<2|b|((d|0)>4|K[g|0]-48>>>0>9))break T;if(K[g+1|0]-48>>>0>9)break T;g=fg(g);J[i+1144>>2]=g;break O}if(d-3>>>0>2)break R}if(K[g+1|0]-48>>>0>9|K[g+2|0]-48>>>0>9)break R;g=fg(g+1|0);J[i+1144>>2]=g;break O}if(d-4>>>0<=2){if(K[g+2|0]-48>>>0>9|K[g+3|0]-48>>>0>9)break P;g=fg(g+2|0);J[i+1144>>2]=g;break O}if(K[g|0]!=117|(d|0)<7|(K[g+1|0]!=110|K[g+2|0]!=105))break P;d=K[g+3|0]; +if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;d=K[g+4|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;d=K[g+5|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;d=K[g+6|0];if(!(d-48>>>0<10|(d|32)-97>>>0<6))break P;g=g+3|0}J[i>>2]=i+1144;Zg(g,837030,i)}g=J[i+1144>>2]}if(g>>>0>65535)break N;J[f>>2]=g;J[a+1460>>2]=1}e=e+1|0;if((e|0)!=256)continue;break}break M}e=0;J[699344]=0;b=J[J[693464]+380>>2];d=J[699344];J[699344]=0;if((d|0)==1)break l;if(!b)break M;while(1){b=(i+112|0)+(e<<2)|0;if(!J[b>>2])J[b>>2]=e;b=e|1; +d=(i+112|0)+(b<<2)|0;if(!J[d>>2])J[d>>2]=b;b=e|2;d=(i+112|0)+(b<<2)|0;if(!J[d>>2])J[d>>2]=b;b=e|3;d=(i+112|0)+(b<<2)|0;if(!J[d>>2])J[d>>2]=b;e=e+4|0;if((e|0)!=256)continue;break}}J[699344]=0;d=i+112|0;b=_(3587,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;J[a+1444>>2]=b;J[699344]=0;ha(3588,a|0,h|0,8,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;b=J[a+16>>2];U:{if(!b)break U;J[699344]=0;b=aa(3589,J[693464],b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;if(!b)break U;e=0;Ac(d,0,1024); +J[699344]=0;d=_(3587,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;while(1){f=J[a+1444>>2];J[699344]=0;g=f;f=i+80|0;g=Al(g,e,f,8);j=J[699344];J[699344]=0;if((j|0)==1)break e;V:{if((g|0)<=0)break V;J[699344]=0;g=Al(b,J[i+80>>2],f,8);j=J[699344];J[699344]=0;if((j|0)==1)break e;if((g|0)<=0)break V;J[699344]=0;ia(3590,d|0,e|0,f|0,g|0);f=J[699344];J[699344]=0;if((f|0)==1)break e}e=e+1|0;if((e|0)!=256)continue;break}J[699344]=0;$(3390,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break l;b=J[a+1444>>2]; +if(b){e=J[b>>2];if(e)uc(Zc(e));e=J[b+4>>2];J[699344]=0;Mc(e);e=J[699344];J[699344]=0;W:{X:{if((e|0)==1)break X;e=J[b+12>>2];J[699344]=0;Mc(e);e=J[699344];J[699344]=0;if((e|0)==1)break X;break W}ea(0)|0;Bc();B()}uc(b)}J[a+1444>>2]=d}k=O[a+120>>3]*.001;d=0;b=a+1464|0;while(1){e=d<<3;O[e+b>>3]=k;O[b+(e|8)>>3]=k;O[b+(e|16)>>3]=k;O[b+(e|24)>>3]=k;O[b+(e|32)>>3]=k;O[b+(e|40)>>3]=k;O[b+(e|48)>>3]=k;O[b+(e|56)>>3]=k;d=d+8|0;if((d|0)!=256)continue;break}J[699344]=0;b=i+56|0;ha(3368,h|0,811343,b|0,0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break l;J[699344]=0;e=J[i+64>>2];f=J[i+56>>2];$(3370,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;ha(3368,h|0,811854,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;d=J[i+64>>2];g=J[i+56>>2];$(3370,b|0);j=J[699344];J[699344]=0;if((j|0)==1)break l;k=O[a+40>>3];j=J[a+20>>2];J[699344]=0;ha(3368,h|0,812097,b|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;Y:{if(J[i+56>>2]==6){J[a+24>>2]=J[a+24>>2]|1;c=(g|0)!=1?255:d>>>0>=255?255:d;b=(f|0)==1? +e:0;b=b>>>0<=255?b:0;d=J[J[i+64>>2]+12>>2];c=(d|0)>(c-b|0)?c:(b+d|0)-1|0;if((b|0)>(c|0))break Y;k=(j|0)==4?k:.001;d=((b<<3)+a|0)+1464|0;e=b;while(1){J[699344]=0;ha(3449,J[i+64>>2],e-b|0,i+40|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;f=J[i+40>>2];Z:{if(f-3>>>0<4294967294)break Z;n=k*((f|0)==1?+J[i+48>>2]:O[i+48>>3]);O[((e<<3)+a|0)+1464>>3]=n;if(!(R(n-O[d>>3])>1E-5))break Z;J[a+24>>2]=J[a+24>>2]&-2}J[699344]=0;$(3370,i+40|0);f=J[699344];J[699344]=0;if((f|0)==1)break b;f=(c|0)==(e|0);e=e+1| +0;if(!f)continue;break}break Y}if(!m){b=J[c+24>>2];J[699344]=0;b=du(b,812590,i+78|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;if(b)O[a+1720>>3]=+L[i+78>>1]*.001;e=0;while(1){b=J[((e<<2)+a|0)+164>>2];_:{if(!b)break _;d=J[c+24>>2];J[699344]=0;b=du(d,b,i+78|0);d=J[699344];J[699344]=0;if((d|0)==1)break d;if(!b)break _;O[((e<<3)+a|0)+1464>>3]=+L[i+78>>1]*.001}e=e+1|0;if((e|0)!=256)continue;break}break Y}b=J[a+24>>2];b=J[((b>>>6&1|b>>>17&2|(b&1?0:b&2?8:4))<<2)+2658336>>2];c=J[b+24>>2];J[699344]=0;c= +du(c,812590,i+78|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;if(c)O[a+1720>>3]=+L[i+78>>1]*.001;e=0;while(1){c=J[((e<<2)+a|0)+164>>2];$:{if(!c)break $;d=J[b+24>>2];J[699344]=0;c=du(d,c,i+78|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!c)break $;O[((e<<3)+a|0)+1464>>3]=+L[i+78>>1]*.001}e=e+1|0;if((e|0)!=256)continue;break}}J[699344]=0;$(3370,i+56|0);b=J[699344];J[699344]=0;if((b|0)==1)break l;J[a+156>>2]=1;fc=i+1152|0;return a|0}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e= +Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0}CJ(a);ba(e|0);B()}function Rra(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;d=fc-208|0;fc=d;a:{b:{c:{d:{e:{f:{if(!J[a+4>>2]){a=Qc(d+184|0,2386610,2387067,193,2436752,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);ba(b|0);B()}J[d+176>>2]=0;J[d+180>>2]=0;J[d+168>>2]=0;J[d+172>>2]=0;i=d+168|0;J[i>>2]=2397928;J[i+4>>2]=0;J[i+8>>2]=0;J[i+12>> +2]=0;J[d+160>>2]=0;J[d+164>>2]=J[685894];c=J[J[b>>2]+36>>2];J[699344]=0;ma(c|0,d+152|0,b|0,0,60,0);c=J[699344];J[699344]=0;g:{h:{i:{j:{k:{if((c|0)!=1){k=J[b+28>>2];c=J[d+152>>2];if(!c)break g;J[699344]=0;e=ga(5587,c|0,0,-1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;c=J[d+152>>2];if(c)c=J[c+8>>2];else c=0;if((c|0)==(e|0))break g;J[699344]=0;ca(5218,d+144|0,2388130,d+152|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;a=J[d+144>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,d+184|0,a|0,2387067, +200,2436752,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);break h}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break c}b=Z()|0}wc(d+144|0);break c}J[d+144>>2]=0;J[d+148>>2]=J[685894];l=a+8|0;j=a+16|0;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{while(1){m=k+1|0;x:{y:{z:{while(1){c=J[J[b>>2]+36>>2];J[699344]=0;ma(c|0,d+184|0,b|0,0,62,1);c=J[699344];J[699344]=0;A:{if((c|0)!=1){c=J[d+184>>2];B:{if(c){e=J[J[c>>2]+28>>2];J[699344]= +0;ca(e|0,d+136|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break B;b=Z()|0;break e}J[d+136>>2]=0}J[699344]=0;aa(5153,d+160|0,d+136|0)|0;c=J[699344];J[699344]=0;C:{if((c|0)!=1){c=J[d+136>>2];J[d+136>>2]=0;if(!c)break C;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break C;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break C}break a}b=Z()|0;zc(d+136|0);break e}c=J[d+160>>2];J[d+164>>2]=J[(c?c+12|0:2743576)>>2];D:{if(!c){wc(d+184|0);break D}c=J[c+8>> +2];wc(d+184|0);if(c)break A}wc(d+144|0);wc(d+152|0);wc(d+160|0);id(i);fc=d+208|0;return}b=Z()|0;break d}h=J[d+160>>2];E:{F:{G:{H:{g=c-1|0;I:{J:{if(g){f=g;f=!h|(c|0)>0?f:f+J[h+8>>2]|0;if(!h|(f|0)<0|J[h+8>>2]<(f|0))break G;e=J[h+12>>2];break J}if(!h)break I;f=0;e=J[h+12>>2]}if(K[e+f|0]==62)break H}J[699344]=0;ca(5218,d+136|0,2388848,d+160|0);a=J[699344];J[699344]=0;K:{L:{if((a|0)!=1){a=J[d+136>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,d+184|0,a|0,2387067,207,2436752,0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break L;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);break K}b=Z()|0;break d}b=Z()|0}wc(d+136|0);break d}h=J[h+8>>2];if((h|0)<=0)break G;M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{f=H[e+1|0];switch(f-47|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break U;case 0:break W;case 16:break X;default:break V}}Y:{Z:{while(1){_:{$:{aa:{ba:{ca:{da:{ea:{if((c|0)>=4){J[699344]=0;e=d+184|0;ia(5313, +e|0,d+160|0,c-2|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break ea;J[699344]=0;c=pd(e,2389292,-1);f=J[699344];J[699344]=0;if((f|0)==1)break da;wc(e);if(!c)break Y}c=J[J[b>>2]+36>>2];J[699344]=0;ma(c|0,d+136|0,b|0,0,62,1);c=J[699344];J[699344]=0;if((c|0)==1)break ca;c=J[d+136>>2];if(J[c+8>>2]?c:0)break _;J[699344]=0;ca(5218,d+128|0,2390091,d+160|0);a=J[699344];J[699344]=0;if((a|0)==1)break ba;a=J[d+128>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,d+184|0,a|0,2387067,218,2436752,0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break aa;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);break $}b=Z()|0;break d}b=Z()|0;wc(d+184|0);break d}b=Z()|0;break d}b=Z()|0;break Z}b=Z()|0}wc(d+128|0);break Z}J[699344]=0;c=aa(5340,d+160|0,d+136|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){c=J[c>>2];if(c)c=J[c+8>>2];else c=0;wc(d+136|0);continue}break}b=Z()|0}wc(d+136|0);break d}J[699344]=0;ia(5313,d+184|0,d+160|0,2,-1);c=J[699344];J[699344]=0;if((c|0)==1)break l;c=J[d+184>>2];c=J[(c? +c+12|0:2743576)>>2];while(1){e=c;c=c+1|0;f=H[e|0];if((f|0)==32|f-9>>>0<5)continue;break}c=e;while(1){fa:{ga:{ha:{g=f&255;switch(g-47|0){case 0:case 15:break fa;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break ga;default:break ha}}if(!g)break fa}f=f<<24>>24;if((f|0)==32|f-9>>>0<5)break fa;f=K[c+1|0];c=c+1|0;continue}break}J[699344]=0;f=ga(5339,d+120|0,e|0,c-e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break n;J[699344]=0;e=d+136|0;da(5308,e| +0,f|0);g=J[699344];J[699344]=0;if((g|0)!=1){J[699344]=0;g=pd(e,2390254,-1);h=J[699344];J[699344]=0;if((h|0)==1)break p;wc(e);ia:{if(g)break ia;J[699344]=0;ca(5709,c|0,j|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break q;J[699344]=0;c=J[j+24>>2];J[e+4>>2]=j;J[e>>2]=c;c=J[699344];J[699344]=0;if((c|0)==1)break s;c=J[d+136>>2];if(!c)break ia;while(1){if(J[d+140>>2]!=(j|0)){J[699344]=0;da(5243,d+136|0,j|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f;b=Z()|0;break o}J[699344]=0;c=pd(c+16|0,2390905,-1);e= +J[699344];J[699344]=0;if((e|0)==1)break r;if(!c){c=J[d+136>>2];if(!(J[d+140>>2]==(j|0)?c:0)){J[699344]=0;da(5243,d+136|0,j|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f;b=Z()|0;break o}J[699344]=0;e=d+128|0;da(5712,e|0,c+24|0);c=J[699344];J[699344]=0;ja:{ka:{if((c|0)!=1){J[699344]=0;c=ga(5287,e|0,d+144|0,-1)|0;e=J[699344];J[699344]=0;if((e|0)==1)break u;if(!c)break ja;c=J[d+128>>2];la:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+104|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break la;break u}J[d+ +104>>2]=0}J[699344]=0;aa(5153,d+144|0,d+104|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[d+104>>2];J[d+104>>2]=0;if(!c)break ka;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break ka;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ka}break a}b=Z()|0;zc(d+104|0);break t}b=Z()|0;break o}c=J[d+144>>2];J[d+148>>2]=J[(c?c+12|0:2743576)>>2];J[699344]=0;da(5713,b|0,d+144|0);c=J[699344];J[699344]=0;if((c|0)==1)break u}wc(d+128|0)}c=J[d+136>>2];if(!c)break ia; +c=J[c>>2];J[d+136>>2]=c;if(c)continue;break}}wc(f);wc(d+184|0);break E}b=Z()|0;break o}J[699344]=0;ia(5313,d+184|0,d+160|0,2,-1);c=J[699344];J[699344]=0;ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{Fa:{if((c|0)!=1){c=J[d+184>>2];c=J[(c?c+12|0:2743576)>>2];while(1){e=c;c=c+1|0;f=H[e|0];if((f|0)==32|f-9>>>0<5)continue;break}c=e;while(1){Ga:{Ha:{Ia:{g=f&255;switch(g-47|0){case 0:case 15:break Ga;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break Ha; +default:break Ia}}if(!g)break Ga}f=f<<24>>24;if((f|0)==32|f-9>>>0<5)break Ga;f=K[c+1|0];c=c+1|0;continue}break}J[699344]=0;c=ga(5339,d+112|0,e|0,c-e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Fa;wc(d+184|0);e=J[i+12>>2];J[d+140>>2]=i;J[d+136>>2]=e;if(!e)break ma;e=J[e+8>>2];J[699344]=0;e=ga(5287,e+8|0,c|0,-1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break na;if(!e)break oa;a=J[d+136>>2];J[d+80>>2]=a;b=J[d+140>>2];J[d+84>>2]=b;if(!((b|0)==(i|0)?a:0)){J[699344]=0;da(5243,d+80|0,i|0);a=J[699344];J[699344]= +0;if((a|0)!=1)break f;break N}a=J[a+8>>2];J[699344]=0;ca(5218,d+88|0,2392394,a+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break N;a=J[d+136>>2];J[d+56>>2]=a;b=J[d+140>>2];J[d+60>>2]=b;if(!((b|0)==(i|0)?a:0)){J[699344]=0;da(5243,d+56|0,i|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f;break P}a=J[J[a+8>>2]+96>>2];J[699344]=0;a=aa(5290,d- -64|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break P;J[699344]=0;b=d+72|0;ca(5218,b|0,2392919,a|0);e=J[699344];J[699344]=0;if((e|0)==1)break Ea;J[699344]=0;e=d+96| +0;ca(5292,e|0,d+88|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break Da;J[699344]=0;b=d+48|0;ca(5218,b|0,2392919,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break Ca;J[699344]=0;f=d+104|0;ca(5292,f|0,e|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break Ba;J[699344]=0;e=aa(5290,d+32|0,k+1|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Aa;J[699344]=0;b=d+40|0;ca(5218,b|0,2392919,e|0);g=J[699344];J[699344]=0;if((g|0)==1)break za;J[699344]=0;ca(5292,d+128|0,f|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break ya; +b=J[d+128>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;f=ja(5178,d+184|0,b|0,2387067,271,2436752,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break xa;J[699344]=0;$(5179,f|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(f);break wa}b=Z()|0;break d}b=Z()|0;wc(d+184|0);break d}b=Z()|0;break pa}b=Z()|0;break qa}b=Z()|0;break ra}b=Z()|0;break sa}b=Z()|0;break ta}b=Z()|0;break ua}b=Z()|0;break va}b=Z()|0}wc(d+128|0)}wc(d+40|0)}wc(e)}wc(d+104|0)}wc(d+48|0)}wc(d+96|0)}wc(d+72|0)}wc(a);break O}J[699344]= +0;da(5235,i|0,d+136|0);e=J[699344];J[699344]=0;if((e|0)!=1)break T}b=Z()|0;wc(c);break d}J[699344]=0;a=ja(5178,d+184|0,2393086,2387067,276,2436752,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);wc(c);break d}b=Z()|0;wc(c);break d}if((f|0)==33)break M}f=J[i+12>>2];J[d+128>>2]=0;Ja:{Ka:{La:{Ma:{Na:{Oa:{Pa:{if(f){J[699344]=0;e=_(4,100)|0;h=J[699344];J[699344]=0;Qa:{Ra:{Sa:{if((h|0)==1)break Sa;J[699344]=0;h=d+184|0;ia(5313, +h|0,d+160|0,1,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break Ra;g=J[d+184>>2];g=J[(g?g+12|0:2743576)>>2];J[699344]=0;g=aa(5714,e|0,g|0)|0;n=J[699344];J[699344]=0;if((n|0)==1){b=Z()|0;wc(h);uc(e);break Q}J[699344]=0;aa(5145,d+128|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ja;wc(d+184|0);f=J[f+8>>2];e=J[d+128>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break Sa;e=J[d+128>>2]}else e=0;J[699344]=0;J[d+28>>2]=e;da(5715,f|0,d+28|0);e=J[699344];J[699344]=0;if((e| +0)==1)break Qa;e=J[d+28>>2];J[d+28>>2]=0;Ta:{if(!e)break Ta;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break Ta;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}e=J[d+160>>2];f=c-2|0;Ua:{Va:{if(f){f=!e|(c|0)>1?f:J[e+8>>2]+f|0;if(!e|(f|0)<0|J[e+8>>2]<(f|0))break R;c=J[e+12>>2];break Va}if(!e)break Ua;f=0;c=J[e+12>>2]}if(K[c+f|0]==47)break Pa}J[699344]=0;c=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Sa;J[c>>2]=0;J[c+4>>2]=0;e= +J[d+128>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break Sa;e=J[d+128>>2]}else e=0;J[c+8>>2]=e;J[699344]=0;vf(i,c);c=J[699344];J[699344]=0;if((c|0)!=1)break Pa}b=Z()|0;break Q}b=Z()|0;uc(e);break Q}b=Z()|0;zc(d+28|0);break Q}f=c-2|0;Wa:{if(!f){f=0;break Wa}if((c|0)<=1){f=f+h|0;if((f|0)<0)break R}if(f>>>0>h>>>0)break R}if(K[e+f|0]==47)break Ka;J[699344]=0;ia(5313,d+184|0,d+160|0,1,-1);c=J[699344];J[699344]=0;if((c|0)==1)break Oa;c=J[d+184>>2];c=J[(c?c+12|0:2743576)>> +2];while(1){e=c;c=c+1|0;f=H[e|0];if((f|0)==32|f-9>>>0<5)continue;break}c=e;while(1){Xa:{Ya:{Za:{g=f&255;switch(g-47|0){case 0:case 15:break Xa;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break Ya;default:break Za}}if(!g)break Xa}f=f<<24>>24;if((f|0)==32|f-9>>>0<5)break Xa;f=K[c+1|0];c=c+1|0;continue}break}J[699344]=0;e=ga(5339,d+20|0,e|0,c-e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Na;f=J[e>>2];_a:{if(f){g=J[J[f>>2]+28>>2];J[699344]= +0;ca(g|0,d+136|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break _a;b=Z()|0;wc(e);break La}J[d+136>>2]=0}J[699344]=0;aa(5153,l|0,d+136|0)|0;f=J[699344];J[699344]=0;$a:{if((f|0)!=1){f=J[d+136>>2];J[d+136>>2]=0;if(!f)break $a;J[699344]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break $a;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break $a}break a}b=Z()|0;zc(d+136|0);wc(e);break La}f=J[a+8>>2];J[a+12>>2]=J[(f?f+12|0:2743576)>>2];wc(e);J[699344]=0;ca(5709, +c|0,j|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break Ma;J[699344]=0;aa(5145,d+128|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Ma;J[699344]=0;c=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Ma;J[c>>2]=0;J[c+4>>2]=0;e=J[d+128>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break Ma;e=J[d+128>>2]}else e=0;J[c+8>>2]=e;J[699344]=0;vf(i,c);c=J[699344];J[699344]=0;if((c|0)==1)break Ma;wc(d+184|0)}c=J[d+128>>2];J[c+96>>2]=m;J[699344]=0;J[d+128>>2]=0;e=J[c+4>>2]- +1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break E;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break E}break a}b=Z()|0;break Q}b=Z()|0;break La}b=Z()|0}wc(d+184|0);break Q}J[699344]=0;a=ja(5178,d+184|0,2393329,2387067,302,2436752,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break S;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);break Q}b=Z()|0;wc(d+184|0);break Q}wc(c);break E}b=Z()|0;break Q}J[699344]=0;ka(5289);a=J[699344];J[699344]= +0;if((a|0)!=1)break f;b=Z()|0}zc(d+128|0);break d}b=Z()|0}wc(d+88|0);wc(c);break d}b=Z()|0;wc(c);break d}if(h>>>0<2)break G;if(K[e+2|0]!=45)break E;if(h>>>0>2)break F}J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)break f;b=Z()|0;break d}if(K[e+3|0]!=45)break E;ab:{while(1){bb:{cb:{db:{eb:{fb:{gb:{hb:{if((c|0)>=7){J[699344]=0;e=d+184|0;ia(5313,e|0,d+160|0,c-3|0,-1);c=J[699344];J[699344]=0;if((c|0)==1)break hb;J[699344]=0;c=pd(e,2391447,-1);f=J[699344];J[699344]=0;if((f|0)==1)break gb;wc(e); +if(!c)break E}c=J[J[b>>2]+36>>2];J[699344]=0;ma(c|0,d+136|0,b|0,0,62,1);c=J[699344];J[699344]=0;if((c|0)==1)break fb;c=J[d+136>>2];if(J[c+8>>2]?c:0)break bb;J[d+128>>2]=0;J[d+132>>2]=J[685894];a=J[d+160>>2];J[d>>2]=J[(a?a+12|0:2743576)>>2];J[699344]=0;ga(5350,d+128|0,2391622,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break eb;a=J[d+128>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,d+184|0,a|0,2387067,254,2436752,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break db;J[699344]=0;$(5179,a|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);break cb}b=Z()|0;break d}b=Z()|0;wc(d+184|0);break d}b=Z()|0;break d}b=Z()|0;break cb}b=Z()|0}wc(d+128|0);break ab}J[699344]=0;c=aa(5340,d+160|0,d+136|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){c=J[c>>2];if(c)c=J[c+8>>2];else c=0;wc(d+136|0);continue}break}b=Z()|0}wc(d+136|0);break d}c=J[J[b>>2]+36>>2];J[699344]=0;ma(c|0,d+184|0,b|0,0,60,0);c=J[699344];J[699344]=0;if((c|0)==1)break z;c=J[d+184>>2];ib:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+136|0, +c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break ib;b=Z()|0;break v}J[d+136>>2]=0}J[699344]=0;aa(5153,d+152|0,d+136|0)|0;c=J[699344];J[699344]=0;jb:{if((c|0)!=1){c=J[d+136>>2];J[d+136>>2]=0;if(!c)break jb;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break jb;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break jb}break a}b=Z()|0;zc(d+136|0);break v}c=J[d+152>>2];J[d+156>>2]=J[(c?c+12|0:2743576)>>2];if(!c){wc(d+184|0);continue}c=K[J[c+12>>2]];f=d+184| +0;wc(f);if(!c)continue;break}k=J[b+28>>2];c=J[i+12>>2];if(!c)break x;e=J[c+8>>2];J[d+12>>2]=0;J[d+16>>2]=J[685894];kb:{c=J[d+152>>2];lb:{mb:{if(c){g=J[J[c>>2]+28>>2];J[699344]=0;ca(g|0,f|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break mb;b=Z()|0;break lb}J[d+184>>2]=0}J[699344]=0;aa(5153,d+12|0,d+184|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[d+184>>2];J[d+184>>2]=0;if(!c)break kb;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break kb;J[699344]=0;$(5147,c| +0);c=J[699344];J[699344]=0;if((c|0)!=1)break kb}break a}b=Z()|0;zc(d+184|0)}wc(d+12|0);break d}c=J[d+12>>2];J[d+16>>2]=J[(c?c+12|0:2743576)>>2];c=J[e+52>>2];J[699344]=0;e=c?c+12|0:e+60|0;c=d+12|0;aa(5340,e|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break y;wc(c);continue}b=Z()|0;break d}b=Z()|0;wc(d+12|0);break d}c=J[d+152>>2];if(!c)continue;J[699344]=0;e=ga(5587,c|0,0,-1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break w;c=J[d+152>>2];if(c)c=J[c+8>>2];else c=0;if((c|0)==(e|0))continue;break}J[699344]= +0;ca(5218,d+136|0,2388130,d+152|0);a=J[699344];J[699344]=0;nb:{ob:{if((a|0)!=1){a=J[d+136>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,d+184|0,a|0,2387067,317,2436752,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ob;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);break nb}b=Z()|0;break d}b=Z()|0}wc(d+136|0);break d}b=Z()|0;break d}wc(d+184|0);break d}b=Z()|0}wc(d+128|0);break o}b=Z()|0;break o}b=Z()|0;break o}b=Z()|0;break o}b=Z()|0;wc(d+136|0)}wc(f);break m}b= +Z()|0}wc(d+184|0);break d}b=Z()|0;break d}B()}wc(d+184|0)}wc(d+144|0)}wc(d+152|0)}wc(d+160|0);id(i);ba(b|0);B()}ea(0)|0;Bc();B()}function _7a(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0,M=0,N=0,P=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0;d=fc-1456|0;fc=d;j=O[b+72>>3];G=O[b>>3];a:{b:{if(!K[b+120|0]){J[699344]=0;y=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[y+24>>3]=j;O[y+16>>3]=j;O[y+8>> +3]=G;O[y>>3]=G;h=O[b+80>>3];g=O[b+8>>3];J[699344]=0;C=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[C>>3]=g;j=h;v=g;break b}h=O[b+104>>3];g=O[b+88>>3];J[699344]=0;y=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[y+24>>3]=j;O[y>>3]=G;O[y+16>>3]=j+h;O[y+8>>3]=j+g;h=O[b+112>>3];g=O[b+96>>3];j=O[b+80>>3];v=O[b+8>>3];J[699344]=0;C=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[C>>3]=v;g=j+g;h=j+h}O[C+24>>3]=j;O[C+16>>3]=h;O[C+8>>3]=g;j=O[c+72>>3];H=O[c>>3];c:{if(!K[c+120|0]){J[699344]= +0;z=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[z+24>>3]=j;O[z+16>>3]=j;O[z+8>>3]=H;O[z>>3]=H;h=O[c+80>>3];g=O[c+8>>3];J[699344]=0;F=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[F>>3]=g;j=h;t=g;break c}h=O[c+104>>3];g=O[c+88>>3];J[699344]=0;z=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[z+24>>3]=j;O[z>>3]=H;O[z+16>>3]=j+h;O[z+8>>3]=j+g;h=O[c+112>>3];g=O[c+96>>3];j=O[c+80>>3];t=O[c+8>>3];J[699344]=0;F=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[F>>3]=t; +g=j+g;h=j+h}O[F+24>>3]=j;O[F+16>>3]=h;O[F+8>>3]=g;d:{e:{f:{g:{h:{i:{j:{Q=O[C+24>>3];S=O[C+16>>3];n=Q>3];k=v>T?T:v;M=(k>n?n:k)+-1E-7;n=ht?g:t;k:{if(!(M<(k>3];V=O[y+16>>3];n=U>V?U:V;u=O[y+8>>3];k=u>G?u:G;M=(k>3];o=O[z+16>>3];n=l>3];k=q(k>n?n:k)))break k;n=Un?n:k)+-1E-7;n=l>o?l:o;k=q>H?q:H;if(!(M<(kS?Q:S;v=vj?j:h;g=gv?k:v)+1E-7>(g> +h?h:g)))break k;m=d+1444|0;x=fc-288|0;fc=x;l=O[c>>3];o=O[c+72>>3];k=O[c+80>>3];v=O[c+8>>3];f=b;q=O[b>>3];n=O[b+72>>3];t=O[b+80>>3];j=O[b+8>>3];E=K[c+120|0];l:{m:{n:{o:{i=K[b+120|0];p:{if(!i){J[699344]=0;r=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;O[r+24>>3]=n;O[r+16>>3]=n;O[r+8>>3]=q;O[r>>3]=q;J[699344]=0;A=_(4,32)|0;b=J[699344];J[699344]=0;h=j;g=t;if((b|0)!=1)break p;break m}h=O[f+104>>3];g=O[f+88>>3];J[699344]=0;r=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;O[r+24>>3]=n;O[r>> +3]=q;O[r+16>>3]=n+h;O[r+8>>3]=n+g;g=O[f+112>>3];h=O[f+96>>3];J[699344]=0;A=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;h=t+h;g=t+g}O[A+24>>3]=t;O[A+16>>3]=g;O[A+8>>3]=h;O[A>>3]=j;q:{if(!E){J[699344]=0;b=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;O[b+24>>3]=o;O[b+16>>3]=o;O[b+8>>3]=l;O[b>>3]=l;J[699344]=0;s=_(4,32)|0;e=J[699344];J[699344]=0;h=v;g=k;if((e|0)!=1)break q;break m}h=O[c+104>>3];g=O[c+88>>3];J[699344]=0;b=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;O[b+24>> +3]=o;O[b>>3]=l;O[b+16>>3]=o+h;O[b+8>>3]=o+g;g=O[c+112>>3];h=O[c+96>>3];J[699344]=0;s=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;h=k+h;g=k+g}O[s+24>>3]=k;O[s+16>>3]=g;O[s+8>>3]=h;O[s>>3]=v;g=n-q;h=g*g;g=t-j;t=h+g*g;g=o-l;h=g*g;g=k-v;e=t>3]-q;I=e?r:b;N=e?A:s;s=i|E;r:{s:{P=e?b:r;l=O[P+24>>3]-o;t:{if(l==0){g=O[I+24>>3];b=u>0;t=b?g-o:o-g;g=R(b?k:o-h);break t}h=O[N+24>>3];g=h-q;e=l<0;t=e?g:q-h;v=(O[I+24>>3]-o)*u-l*g;h=l*l;g=u*u;j=l>3];g=h-q;g=R(b?e?g:q-h:(k*u-l*g)/j)}if(!(!(g<1E-7)|!(R(t)<1E-7))){h=O[P+8>>3];k=h-o;u:{if(l==0){g=O[I+16>>3];b=u>0;v=b?g-o:o-g;g=O[I+8>>3];t=R(b?g-o:o-g);g=O[P+16>>3];j=R(b?g-o:o-g);g=R(b?k:o-h);break u}h=O[N+16>>3];g=h-q;e=l<0;v=e?g:q-h;j=(O[I+16>>3]-o)*u-l*g;h=l*l;g=u*u;n=l>3];g=h-q;t=R(b?e?g:q-h:((O[I+8>>3]-o)*u-l*g)/n);h=O[W+16>>3];g=h-q;j=R(b?e?g:q-h:((O[P+16>>3]-o)*u-l*g)/n);h=O[W+8>>3];g=h-q;g=R(b?e?g: +q-h:(k*u-l*g)/n)}if(!(t<1E-7)|!(g<1E-7)|(!(s&255)|!(j<1E-7)))break s;e=1;if(R(v)<1E-7)break r;break s}if(s&255)break s;J[m+8>>2]=0;J[m>>2]=0;J[m+4>>2]=0;break n}if((!i|0)!=(!E|0))break o;e=!(s&255)}L=c+72|0;E=f+72|0;J[m+8>>2]=0;J[m>>2]=0;J[m+4>>2]=0;A=0;v:{while(1){b=A>>>1|0;w:{x:{if(!(A&1)){j=an(f,(b|0)==1?L:c);if(j==-1)break w;g=+(b|0);break x}g=an(c,(b|0)==1?E:f);if(g==-1)break w;j=+(b|0)}r=J[m+4>>2];D=J[m>>2];y:{if((r|0)==(D|0)){if((D|0)!=J[m+8>>2]){O[D+8>>3]=g;O[D>>3]=j;J[m+4>>2]=D+16;break w}J[699344]= +0;i=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;O[i+8>>3]=g;O[i>>3]=j;b=i+16|0;J[m+8>>2]=b;J[m+4>>2]=b;J[m>>2]=i;if(D)break y;break w}if(!(R(j-O[D>>3])>1E-8)|!(R(g-O[D+8>>3])>1E-8))break w;if(J[m+8>>2]!=(r|0)){O[r+8>>3]=g;O[r>>3]=j;J[m+4>>2]=r+16;break w}w=r-D|0;i=w>>4;s=i+1|0;if(s>>>0>=268435456){J[699344]=0;$(2501,m|0);a=J[699344];J[699344]=0;if((a|0)==1)break m;break v}b=w>>3;X=w>>>0>=2147483632?268435455:b>>>0>s>>>0?b:s;z:{if(!X){w=0;break z}if(X>>>0>=268435456){J[699344]=0;ka(209); +a=J[699344];J[699344]=0;if((a|0)!=1)break v;break m}J[699344]=0;w=_(4,X<<4)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m}i=(i<<4)+w|0;O[i+8>>3]=g;O[i>>3]=j;b=i;while(1){r=r-16|0;s=J[r+4>>2];b=b-16|0;J[b>>2]=J[r>>2];J[b+4>>2]=s;s=J[r+12>>2];J[b+8>>2]=J[r+8>>2];J[b+12>>2]=s;if((r|0)!=(D|0))continue;break}J[m>>2]=b;J[m+4>>2]=i+16;J[m+8>>2]=(X<<4)+w}uc(D)}if(A>>>0<=2){A=A+1|0;if(J[m+4>>2]-J[m>>2]>>>0<32)continue}break}b=J[m>>2];if((J[m+4>>2]-b|0)!=32){J[m+4>>2]=b;break n}if(e)break n;oM(x+144|0,f,O[b>> +3],O[b+16>>3]);b=J[m>>2];oM(x,c,O[b+8>>3],O[b+24>>3]);A:{if(!(R(O[x+104>>3]-O[x+248>>3])>1E-7|R(O[x+112>>3]-O[x+256>>3])>1E-7|R(O[x+88>>3]-O[x+232>>3])>1E-7))if(!(R(O[x+96>>3]-O[x+240>>3])>1E-7))break A;J[m+4>>2]=J[m>>2]}e=J[x+140>>2];B:{if(!e)break B;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break B;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=J[x+68>>2];C:{if(!e)break C;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break C;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=J[x+284>>2];D:{if(!e)break D;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break D;kc[J[J[e>>2]+ +8>>2]](e);Gc(e)}e=J[x+212>>2];if(!e)break n;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break n;kc[J[J[e>>2]+8>>2]](e);Gc(e);break n}B()}J[m+8>>2]=0;J[m>>2]=0;J[m+4>>2]=0}uc(N);uc(I);uc(W);uc(P);fc=x+288|0;break l}ea(0)|0;Bc();B()}E:{if(J[d+1444>>2]!=J[d+1448>>2]){L=d+1272|0;E=d+1200|0;s=d+1416|0;i=d+1344|0;b=1;while(1){O[d+1296>>3]=O[f>>3];O[d+1304>>3]=O[f+8>>3];O[d+1312>>3]=O[f+16>>3];O[d+1320>>3]=O[f+24>>3];O[d+1328>>3]=O[f+32>>3];O[d+1336>>3]=O[f+40>>3];e=J[f+60>>2];J[i+8>>2]=J[f+56>>2];J[i+12>>2]=e;e=J[f+ +52>>2];J[i>>2]=J[f+48>>2];J[i+4>>2]=e;J[d+1360>>2]=J[f+64>>2];e=J[f+68>>2];J[d+1364>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;O[d+1368>>3]=O[f+72>>3];O[d+1376>>3]=O[f+80>>3];O[d+1384>>3]=O[f+88>>3];O[d+1392>>3]=O[f+96>>3];O[d+1400>>3]=O[f+104>>3];O[d+1408>>3]=O[f+112>>3];e=J[f+132>>2];J[s+8>>2]=J[f+128>>2];J[s+12>>2]=e;e=J[f+124>>2];J[s>>2]=J[f+120>>2];J[s+4>>2]=e;J[d+1432>>2]=J[f+136>>2];e=J[f+140>>2];J[d+1436>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;O[d+1152>>3]=O[c>>3];O[d+1160>>3]=O[c+8>>3];O[d+1168>>3]=O[c+16>> +3];O[d+1176>>3]=O[c+24>>3];O[d+1184>>3]=O[c+32>>3];O[d+1192>>3]=O[c+40>>3];e=J[c+60>>2];J[E+8>>2]=J[c+56>>2];J[E+12>>2]=e;e=J[c+52>>2];J[E>>2]=J[c+48>>2];J[E+4>>2]=e;J[d+1216>>2]=J[c+64>>2];e=J[c+68>>2];J[d+1220>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;O[d+1224>>3]=O[c+72>>3];O[d+1232>>3]=O[c+80>>3];O[d+1240>>3]=O[c+88>>3];O[d+1248>>3]=O[c+96>>3];O[d+1256>>3]=O[c+104>>3];O[d+1264>>3]=O[c+112>>3];e=J[c+132>>2];J[L+8>>2]=J[c+128>>2];J[L+12>>2]=e;e=J[c+124>>2];J[L>>2]=J[c+120>>2];J[L+4>>2]=e;J[d+1288>>2]=J[c+ +136>>2];w=J[c+140>>2];J[d+1292>>2]=w;if(w)J[w+4>>2]=J[w+4>>2]+1;e=J[d+1444>>2]+(p<<4)|0;h=O[e+8>>3];g=O[e>>3];J[699344]=0;Ca(2518,a|0,d+1296|0,d+1152|0,+g,+h,1,1,0);e=J[699344];J[699344]=0;if((e|0)==1)break j;F:{if(!w)break F;e=J[w+4>>2];J[w+4>>2]=e-1;if(e)break F;kc[J[J[w>>2]+8>>2]](w);Gc(w)}p=J[d+1220>>2];G:{if(!p)break G;e=J[p+4>>2];J[p+4>>2]=e-1;if(e)break G;kc[J[J[p>>2]+8>>2]](p);Gc(p)}p=J[d+1436>>2];H:{if(!p)break H;e=J[p+4>>2];J[p+4>>2]=e-1;if(e)break H;kc[J[J[p>>2]+8>>2]](p);Gc(p)}p=J[d+1364>> +2];I:{if(!p)break I;e=J[p+4>>2];J[p+4>>2]=e-1;if(e)break I;kc[J[J[p>>2]+8>>2]](p);Gc(p)}p=1;e=b;b=0;if(e)continue;break}break E}e=K[f+120|0];b=K[c+120|0];p=!e&(b|0)!=0;i=J[a+112>>2]-J[a+108>>2]>>3;J:{K:{if(!(b|e)){J[699344]=0;ca(2519,a|0,(p?c:f)|0,(p?f:c)|0);b=J[699344];J[699344]=0;if((b|0)!=1)break K;break e}L:{if(!(b?e:0)){J[699344]=0;ia(2520,a|0,(p?c:f)|0,(p?f:c)|0,p|0);break L}J[699344]=0;Ga(2521,a|0,f|0,c|0,f|0,c|0,p|0,0,0,0,1,0,1)|0}b=J[699344];J[699344]=0;if((b|0)==1)break e;if((i|0)==J[a+ +112>>2]-J[a+108>>2]>>3)break J;break E}e=J[a+112>>2];b=J[a+108>>2];if((i|0)!=e-b>>3|(b|0)!=(e|0))break E}g=an(c,f);M:{if(g==-1)break M;O[d+1008>>3]=O[f>>3];O[d+1016>>3]=O[f+8>>3];O[d+1024>>3]=O[f+16>>3];O[d+1032>>3]=O[f+24>>3];O[d+1040>>3]=O[f+32>>3];O[d+1048>>3]=O[f+40>>3];b=J[f+60>>2];e=d+1064|0;J[e>>2]=J[f+56>>2];J[e+4>>2]=b;b=J[f+52>>2];J[d+1056>>2]=J[f+48>>2];J[d+1060>>2]=b;J[d+1072>>2]=J[f+64>>2];b=J[f+68>>2];J[d+1076>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+1080>>3]=O[f+72>>3];O[d+1088>>3]=O[f+ +80>>3];O[d+1096>>3]=O[f+88>>3];O[d+1104>>3]=O[f+96>>3];O[d+1112>>3]=O[f+104>>3];O[d+1120>>3]=O[f+112>>3];b=J[f+124>>2];e=d+1128|0;J[e>>2]=J[f+120>>2];J[e+4>>2]=b;b=J[f+132>>2];e=d+1136|0;J[e>>2]=J[f+128>>2];J[e+4>>2]=b;J[d+1144>>2]=J[f+136>>2];b=J[f+140>>2];J[d+1148>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+864>>3]=O[c>>3];O[d+872>>3]=O[c+8>>3];O[d+880>>3]=O[c+16>>3];O[d+888>>3]=O[c+24>>3];O[d+896>>3]=O[c+32>>3];O[d+904>>3]=O[c+40>>3];b=J[c+60>>2];J[d+920>>2]=J[c+56>>2];J[d+924>>2]=b;b=J[c+52>>2];J[d+ +912>>2]=J[c+48>>2];J[d+916>>2]=b;J[d+928>>2]=J[c+64>>2];b=J[c+68>>2];J[d+932>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+936>>3]=O[c+72>>3];O[d+944>>3]=O[c+80>>3];O[d+952>>3]=O[c+88>>3];O[d+960>>3]=O[c+96>>3];O[d+968>>3]=O[c+104>>3];O[d+976>>3]=O[c+112>>3];b=J[c+124>>2];J[d+984>>2]=J[c+120>>2];J[d+988>>2]=b;b=J[c+132>>2];J[d+992>>2]=J[c+128>>2];J[d+996>>2]=b;J[d+1E3>>2]=J[c+136>>2];i=J[c+140>>2];J[d+1004>>2]=i;if(i)J[i+4>>2]=J[i+4>>2]+1;e=J[a+112>>2];b=J[a+108>>2];J[699344]=0;Ca(2518,a|0,d+1008|0,d+864| +0,0,+g,(b|0)==(e|0)|0,0,1);b=J[699344];J[699344]=0;if((b|0)==1)break i;N:{if(!i)break N;b=J[i+4>>2];J[i+4>>2]=b-1;if(b)break N;kc[J[J[i>>2]+8>>2]](i);Gc(i)}e=J[d+932>>2];O:{if(!e)break O;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break O;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=J[d+1148>>2];P:{if(!e)break P;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break P;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=J[d+1076>>2];if(!e)break M;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break M;kc[J[J[e>>2]+8>>2]](e);Gc(e)}g=an(c,f+72|0);Q:{if(g==-1)break Q;O[d+720>>3]=O[f>> +3];O[d+728>>3]=O[f+8>>3];O[d+736>>3]=O[f+16>>3];O[d+744>>3]=O[f+24>>3];O[d+752>>3]=O[f+32>>3];O[d+760>>3]=O[f+40>>3];b=J[f+60>>2];J[d+776>>2]=J[f+56>>2];J[d+780>>2]=b;b=J[f+52>>2];J[d+768>>2]=J[f+48>>2];J[d+772>>2]=b;J[d+784>>2]=J[f+64>>2];b=J[f+68>>2];J[d+788>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+792>>3]=O[f+72>>3];O[d+800>>3]=O[f+80>>3];O[d+808>>3]=O[f+88>>3];O[d+816>>3]=O[f+96>>3];O[d+824>>3]=O[f+104>>3];O[d+832>>3]=O[f+112>>3];b=J[f+124>>2];J[d+840>>2]=J[f+120>>2];J[d+844>>2]=b;b=J[f+132>>2];J[d+ +848>>2]=J[f+128>>2];J[d+852>>2]=b;J[d+856>>2]=J[f+136>>2];b=J[f+140>>2];J[d+860>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+576>>3]=O[c>>3];O[d+584>>3]=O[c+8>>3];O[d+592>>3]=O[c+16>>3];O[d+600>>3]=O[c+24>>3];O[d+608>>3]=O[c+32>>3];O[d+616>>3]=O[c+40>>3];b=J[c+60>>2];J[d+632>>2]=J[c+56>>2];J[d+636>>2]=b;b=J[c+52>>2];J[d+624>>2]=J[c+48>>2];J[d+628>>2]=b;J[d+640>>2]=J[c+64>>2];b=J[c+68>>2];J[d+644>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+648>>3]=O[c+72>>3];O[d+656>>3]=O[c+80>>3];O[d+664>>3]=O[c+88>>3];O[d+672>> +3]=O[c+96>>3];O[d+680>>3]=O[c+104>>3];O[d+688>>3]=O[c+112>>3];b=J[c+124>>2];J[d+696>>2]=J[c+120>>2];J[d+700>>2]=b;b=J[c+132>>2];J[d+704>>2]=J[c+128>>2];J[d+708>>2]=b;J[d+712>>2]=J[c+136>>2];i=J[c+140>>2];J[d+716>>2]=i;if(i)J[i+4>>2]=J[i+4>>2]+1;e=J[a+112>>2];b=J[a+108>>2];J[699344]=0;Ca(2518,a|0,d+720|0,d+576|0,1,+g,(b|0)==(e|0)|0,0,1);b=J[699344];J[699344]=0;if((b|0)==1)break h;R:{if(!i)break R;b=J[i+4>>2];J[i+4>>2]=b-1;if(b)break R;kc[J[J[i>>2]+8>>2]](i);Gc(i)}e=J[d+644>>2];S:{if(!e)break S;b=J[e+ +4>>2];J[e+4>>2]=b-1;if(b)break S;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=J[d+860>>2];T:{if(!e)break T;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break T;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=J[d+788>>2];if(!e)break Q;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break Q;kc[J[J[e>>2]+8>>2]](e);Gc(e)}g=an(f,c);U:{if(g==-1)break U;O[d+432>>3]=O[f>>3];O[d+440>>3]=O[f+8>>3];O[d+448>>3]=O[f+16>>3];O[d+456>>3]=O[f+24>>3];O[d+464>>3]=O[f+32>>3];O[d+472>>3]=O[f+40>>3];b=J[f+60>>2];J[d+488>>2]=J[f+56>>2];J[d+492>>2]=b;b=J[f+52>>2];J[d+480>>2]=J[f+48>> +2];J[d+484>>2]=b;J[d+496>>2]=J[f+64>>2];b=J[f+68>>2];J[d+500>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+504>>3]=O[f+72>>3];O[d+512>>3]=O[f+80>>3];O[d+520>>3]=O[f+88>>3];O[d+528>>3]=O[f+96>>3];O[d+536>>3]=O[f+104>>3];O[d+544>>3]=O[f+112>>3];b=J[f+124>>2];J[d+552>>2]=J[f+120>>2];J[d+556>>2]=b;b=J[f+132>>2];J[d+560>>2]=J[f+128>>2];J[d+564>>2]=b;J[d+568>>2]=J[f+136>>2];b=J[f+140>>2];J[d+572>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+288>>3]=O[c>>3];O[d+296>>3]=O[c+8>>3];O[d+304>>3]=O[c+16>>3];O[d+312>>3]=O[c+24>> +3];O[d+320>>3]=O[c+32>>3];O[d+328>>3]=O[c+40>>3];b=J[c+60>>2];J[d+344>>2]=J[c+56>>2];J[d+348>>2]=b;b=J[c+52>>2];J[d+336>>2]=J[c+48>>2];J[d+340>>2]=b;J[d+352>>2]=J[c+64>>2];b=J[c+68>>2];J[d+356>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+360>>3]=O[c+72>>3];O[d+368>>3]=O[c+80>>3];O[d+376>>3]=O[c+88>>3];O[d+384>>3]=O[c+96>>3];O[d+392>>3]=O[c+104>>3];O[d+400>>3]=O[c+112>>3];b=J[c+124>>2];J[d+408>>2]=J[c+120>>2];J[d+412>>2]=b;b=J[c+132>>2];J[d+416>>2]=J[c+128>>2];J[d+420>>2]=b;J[d+424>>2]=J[c+136>>2];i=J[c+140>> +2];J[d+428>>2]=i;if(i)J[i+4>>2]=J[i+4>>2]+1;e=J[a+112>>2];b=J[a+108>>2];J[699344]=0;Ca(2518,a|0,d+432|0,d+288|0,+g,0,(b|0)==(e|0)|0,0,1);b=J[699344];J[699344]=0;if((b|0)==1)break g;V:{if(!i)break V;b=J[i+4>>2];J[i+4>>2]=b-1;if(b)break V;kc[J[J[i>>2]+8>>2]](i);Gc(i)}e=J[d+356>>2];W:{if(!e)break W;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break W;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=J[d+572>>2];X:{if(!e)break X;b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break X;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=J[d+500>>2];if(!e)break U;b=J[e+4>> +2];J[e+4>>2]=b-1;if(b)break U;kc[J[J[e>>2]+8>>2]](e);Gc(e)}g=an(f,c+72|0);if(g==-1)break E;O[d+144>>3]=O[f>>3];O[d+152>>3]=O[f+8>>3];O[d+160>>3]=O[f+16>>3];O[d+168>>3]=O[f+24>>3];O[d+176>>3]=O[f+32>>3];O[d+184>>3]=O[f+40>>3];b=J[f+60>>2];J[d+200>>2]=J[f+56>>2];J[d+204>>2]=b;b=J[f+52>>2];J[d+192>>2]=J[f+48>>2];J[d+196>>2]=b;J[d+208>>2]=J[f+64>>2];b=J[f+68>>2];J[d+212>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d+216>>3]=O[f+72>>3];O[d+224>>3]=O[f+80>>3];O[d+232>>3]=O[f+88>>3];O[d+240>>3]=O[f+96>>3];O[d+248>> +3]=O[f+104>>3];O[d+256>>3]=O[f+112>>3];b=J[f+124>>2];J[d+264>>2]=J[f+120>>2];J[d+268>>2]=b;b=J[f+132>>2];J[d+272>>2]=J[f+128>>2];J[d+276>>2]=b;J[d+280>>2]=J[f+136>>2];b=J[f+140>>2];J[d+284>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[d>>3]=O[c>>3];O[d+8>>3]=O[c+8>>3];O[d+16>>3]=O[c+16>>3];O[d+24>>3]=O[c+24>>3];O[d+32>>3]=O[c+32>>3];O[d+40>>3]=O[c+40>>3];b=J[c+60>>2];J[d+56>>2]=J[c+56>>2];J[d+60>>2]=b;b=J[c+52>>2];J[d+48>>2]=J[c+48>>2];J[d+52>>2]=b;J[d+64>>2]=J[c+64>>2];b=J[c+68>>2];J[d+68>>2]=b;if(b)J[b+4>> +2]=J[b+4>>2]+1;O[d+72>>3]=O[c+72>>3];O[d+80>>3]=O[c+80>>3];O[d+88>>3]=O[c+88>>3];O[d+96>>3]=O[c+96>>3];O[d+104>>3]=O[c+104>>3];O[d+112>>3]=O[c+112>>3];b=J[c+124>>2];J[d+120>>2]=J[c+120>>2];J[d+124>>2]=b;b=J[c+132>>2];J[d+128>>2]=J[c+128>>2];J[d+132>>2]=b;J[d+136>>2]=J[c+136>>2];e=J[c+140>>2];J[d+140>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;c=J[a+112>>2];b=J[a+108>>2];J[699344]=0;Ca(2518,a|0,d+144|0,d|0,+g,1,(b|0)==(c|0)|0,0,1);a=J[699344];J[699344]=0;if((a|0)==1)break f;Y:{if(!e)break Y;a=J[e+4>>2];J[e+4>> +2]=a-1;if(a)break Y;kc[J[J[e>>2]+8>>2]](e);Gc(e)}b=J[d+68>>2];Z:{if(!b)break Z;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break Z;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[d+284>>2];_:{if(!b)break _;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break _;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[d+212>>2];if(!b)break E;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break E;kc[J[J[b>>2]+8>>2]](b);Gc(b)}a=J[d+1444>>2];if(!a)break k;J[d+1448>>2]=a;uc(a)}uc(F);uc(z);uc(C);uc(y);fc=d+1456|0;return}b=Z()|0;nh(d+1152|0);nh(d+1296|0);break d}b=Z()|0;nh(d+864|0);nh(d+ +1008|0);break d}b=Z()|0;nh(d+576|0);nh(d+720|0);break d}b=Z()|0;nh(d+288|0);nh(d+432|0);break d}b=Z()|0;nh(d);nh(d+144|0);break d}b=Z()|0}a=J[d+1444>>2];if(a){J[d+1448>>2]=a;uc(a)}uc(F);uc(z);uc(C);uc(y);ba(b|0);B()}ea(0)|0;Bc();B()}function WJ(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,r=0,s=0,t=0,u=0,v=0,w=0,y=0,A=0;i=fc-80|0;fc=i;s=Gd(8,8);w=8;while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{d= +b;g=K[d|0];switch(g-123|0){case 1:break B;case 2:break Y;case 0:break Z;default:break X}}g=K[b+1|0];if((g|0)==123){b=b+2|0;g=J[a>>2];if((g|0)==2147483647){gi(778126);g=J[a>>2]}Bh(a,g+1|0);g=J[a>>2];J[a>>2]=g+1;H[g+J[a+4>>2]|0]=123;H[J[a+4>>2]+J[a>>2]|0]=0;continue}if((g-48&255)>>>0>9)break W;h=b+2|0;g=(g<<24>>24)-48|0;d=K[b+2|0];if((d-48&255)>>>0<=9)while(1){g=(P(g,10)+(d&255)|0)-48|0;d=K[h+1|0];h=h+1|0;if((d-48&255)>>>0<10)continue;break}if((d&255)!=58)break W;n=K[h+1|0];m=(n|0)!=45;d=m?h+1|0:h+ +2|0;b=0;o=K[(m?1:2)+h|0];h=o;if((h-48&255)>>>0<=9)while(1){b=(P(b,10)+(h&255)|0)-48|0;h=K[d+1|0];d=d+1|0;if((h-48&255)>>>0<10)continue;break}j=(b|0)>0;_:{if((h&255)!=46){p=0;break _}h=K[d+1|0];p=0;d=d+1|0;if((h-48&255)>>>0>9)break _;while(1){p=(P(p,10)+(h&255)|0)-48|0;h=K[d+1|0];d=d+1|0;if((h-48&255)>>>0<10)continue;break}}k=(n|0)==45;l=j?b:0;h=0;while(1){j=J[(h<<2)+2194416>>2];b=Yc(j);if(ud(d,j,b)){h=h+1|0;if((h|0)!=30)continue;break W}break}j=b+d|0;if(K[j|0]!=125|(g|0)>(t|0))break W;if((g|0)==(t| +0)){if((t|0)==(w|0)){w=w<<1;s=Wd(s,w,8)}$:{aa:{ba:switch(h|0){case 0:case 1:case 2:case 3:case 29:J[(t<<3)+s>>2]=J[c>>2];break aa;case 4:case 5:case 6:case 7:J[(t<<3)+s>>2]=J[c>>2];break aa;case 8:case 9:case 10:case 11:J[(t<<3)+s>>2]=J[c>>2];break aa;case 12:case 13:case 14:case 15:J[(t<<3)+s>>2]=J[c>>2];break aa;case 16:case 17:case 18:case 19:b=c+7&-8;c=J[b+4>>2];d=(t<<3)+s|0;J[d>>2]=J[b>>2];J[d+4>>2]=c;c=b+8|0;break $;case 20:case 21:case 22:case 23:b=c+7&-8;c=J[b+4>>2];d=(t<<3)+s|0;J[d>>2]=J[b>> +2];J[d+4>>2]=c;c=b+8|0;break $;case 24:case 25:b=c+7&-8;O[(t<<3)+s>>3]=O[b>>3];c=b+8|0;break $;case 26:H[(t<<3)+s|0]=J[c>>2];break aa;case 27:J[(t<<3)+s>>2]=J[c>>2];break aa;case 28:break ba;default:break $}J[(t<<3)+s>>2]=J[c>>2]}c=c+4|0}t=t+1|0}b=j+1|0;g=(g<<3)+s|0;j=J[g+4>>2];g=J[g>>2];ca:switch(h|0){case 0:e=g>>31;p=e>>>31|0;if(!g)break V;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){k=e;d=d-1|0;j=xEb(f,e,10,0);h=jc;y=i+d|0,A=K[(f-vEb(j,h,10,0)|0)+2194544|0],H[y|0]=A;if(d>>> +0<=p>>>0)break f;m=f;v=f-10|0;f=j;e=h;j=k-(m>>>0<10)|0;if((j|0)==-1&v>>>0<4294967277|(j|0)!=-1)continue;break}break f;case 1:e=g>>31;k=e>>>31|0;if(!g)break U;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2194544|0];if(d>>>0<=k>>>0)break g;h=f-16|0;m=e-(f>>>0<16)|0;j=e;e=e>>>4|0;f=(j&15)<<28|f>>>4;if((m|0)==-1&h>>>0<4294967265|(m|0)!=-1)continue;break}break g;case 2:e=g>>31;k=e>>>31|0;if(!g)break T;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e| +0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2194544|0];if(d>>>0<=k>>>0)break h;j=f-8|0;m=e-(f>>>0<8)|0;f=(e&7)<<29|f>>>3;e=e>>>3|0;if((m|0)==-1&j>>>0<4294967281|(m|0)!=-1)continue;break}break h;case 3:e=g>>31;k=e>>>31|0;if(!g)break S;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2194544|0];if(d>>>0<=k>>>0)break i;j=f;h=f-2|0;m=e-(f>>>0<2)|0;f=e;e=e>>>1|0;f=(f&1)<<31|j>>>1;if((m|0)==-1&h>>>0<4294967293|(m|0)!=-1)continue;break}break i;case 4:if(!g)break R; +f=g;e=0;d=65;while(1){k=f;f=xEb(f,e,10,0);j=jc;m=k-vEb(f,j,10,0)|0;g=e;h=d-1|0;H[i+h|0]=K[m+2194544|0];if(d>>>0<2)break j;d=h;e=j;if(!g&k>>>0>9|g)continue;break}break j;case 5:if(!g)break Q;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2194544|0];j=!e&f>>>0>15|(e|0)!=0;g=e;e=e>>>4|0;f=(g&15)<<28|f>>>4;if(j)continue;break}break k;case 6:if(!g)break P;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2194544|0];j=!e&f>>>0>7|(e|0)!=0;g=e;e=e>>>3|0;f=(g&7)<<29|f>>>3;if(j)continue;break}break l;case 7:if(!g)break O; +f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2194544|0];j=!e&f>>>0>1|(e|0)!=0;g=e;e=e>>>1|0;f=(g&1)<<31|f>>>1;if(j)continue;break}break m;case 8:e=g>>31;p=e>>>31|0;if(!g)break N;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){k=e;d=d-1|0;j=xEb(f,e,10,0);h=jc;y=i+d|0,A=K[(f-vEb(j,h,10,0)|0)+2194544|0],H[y|0]=A;if(d>>>0<=p>>>0)break n;m=f;v=f-10|0;f=j;e=h;j=k-(m>>>0<10)|0;if((j|0)==-1&v>>>0<4294967277|(j|0)!=-1)continue;break}break n;case 9:e=g>>31;k=e>>>31|0;if(!g)break M;d= +e;e=d>>31;j=e^g;f=j-e|0;e=(d^e)-((e>>>0>j>>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2194544|0];if(d>>>0<=k>>>0)break o;j=f;h=f-16|0;m=e-(f>>>0<16)|0;f=e;e=e>>>4|0;f=(f&15)<<28|j>>>4;if((m|0)==-1&h>>>0<4294967265|(m|0)!=-1)continue;break}break o;case 10:e=g>>31;k=e>>>31|0;if(!g)break L;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2194544|0];if(d>>>0<=k>>>0)break p;h=f-8|0;m=e-(f>>>0<8)|0;j=e;e=e>>>3|0;f=(j&7)<<29|f>>>3;if((m|0)==-1&h>>>0< +4294967281|(m|0)!=-1)continue;break}break p;case 11:e=g>>31;k=e>>>31|0;if(!g)break K;h=e;e=e>>31;d=e^g;f=d-e|0;e=(e^h)-((d>>>0>>0)+e|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2194544|0];if(d>>>0<=k>>>0)break q;j=f-2|0;m=e-(f>>>0<2)|0;f=(e&1)<<31|f>>>1;e=e>>>1|0;if((m|0)==-1&j>>>0<4294967293|(m|0)!=-1)continue;break}break q;case 12:if(!g)break J;f=g;e=0;d=65;while(1){k=f;f=xEb(f,e,10,0);j=jc;m=k-vEb(f,j,10,0)|0;g=e;h=d-1|0;H[i+h|0]=K[m+2194544|0];if(d>>>0<2)break r;d=h;e=j;if(!g&k>>>0>9|g)continue; +break}break r;case 13:if(!g)break I;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2194544|0];j=!e&f>>>0>15|(e|0)!=0;g=e;e=e>>>4|0;f=(g&15)<<28|f>>>4;if(j)continue;break}break s;case 14:if(!g)break H;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2194544|0];j=!e&f>>>0>7|(e|0)!=0;g=e;e=e>>>3|0;f=(g&7)<<29|f>>>3;if(j)continue;break}break t;case 15:if(!g)break G;f=g;e=0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2194544|0];j=!e&f>>>0>1|(e|0)!=0;g=e;e=e>>>1|0;f=(g&1)<<31|f>>>1;if(j)continue;break}break u; +case 16:p=j>>>31|0;e=g;g=j;if(!(e|g))break F;f=e;e=g>>31;d=e;h=f^d;f=h-d|0;e=(d^g)-((d>>>0>h>>>0)+d|0)|0;d=65;while(1){k=e;d=d-1|0;g=xEb(f,e,10,0);h=jc;y=i+d|0,A=K[(f-vEb(g,h,10,0)|0)+2194544|0],H[y|0]=A;if(d>>>0<=p>>>0)break v;m=f;v=f-10|0;f=g;e=h;g=k-(m>>>0<10)|0;if((g|0)==-1&v>>>0<4294967277|(g|0)!=-1)continue;break}break v;case 17:k=j>>>31|0;f=g;e=j;if(!(f|e))break E;h=f;f=e>>31;g=f;d=h^f;f=d-f|0;e=(e^g)-((d>>>0>>0)+g|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2194544|0];if(d>>>0<=k>>>0)break w; +h=f-16|0;m=e-(f>>>0<16)|0;g=e;e=e>>>4|0;f=(g&15)<<28|f>>>4;if((m|0)==-1&h>>>0<4294967265|(m|0)!=-1)continue;break}break w;case 18:k=j>>>31|0;f=g;e=j;if(!(f|e))break D;g=f;f=e>>31;d=f;h=g^d;f=h-d|0;e=(e^d)-((d>>>0>h>>>0)+d|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&7)+2194544|0];if(d>>>0<=k>>>0)break x;h=f-8|0;m=e-(f>>>0<8)|0;g=e;e=e>>>3|0;f=(g&7)<<29|f>>>3;if((m|0)==-1&h>>>0<4294967281|(m|0)!=-1)continue;break}break x;case 19:k=j>>>31|0;f=g;e=j;if(!(f|e))break C;h=f;f=e>>31;g=f;d=h^f;f=d-f|0;e=(e^g)- +((d>>>0>>0)+g|0)|0;d=65;while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2194544|0];if(d>>>0<=k>>>0)break y;g=f;h=f-2|0;m=e-(f>>>0<2)|0;f=e;e=e>>>1|0;f=(f&1)<<31|g>>>1;if((m|0)==-1&h>>>0<4294967293|(m|0)!=-1)continue;break}break y;case 20:d=65;f=g;e=j;da:{if(!(f|e)){H[i+64|0]=48;h=64;break da}while(1){k=f;f=xEb(f,e,10,0);j=jc;m=k-vEb(f,j,10,0)|0;g=e;h=d-1|0;H[i+h|0]=K[m+2194544|0];if(d>>>0<2)break da;d=h;e=j;if(!g&k>>>0>9|g)continue;break}}if(!((o|0)!=48|(h|0)<=0|(65-h|0)>=(l|0))){f=(h+l|0)-66|0;e=h-1|0;f=e>>> +0>f>>>0?f:e;h=e-f|0;Ac(i+h|0,48,f+1|0)}f=65-h|0;e=i+h|0;if((n|0)==45)break e;break d;case 21:d=65;f=g;e=j;ea:{if(!(f|e)){H[i+64|0]=48;d=64;break ea}while(1){d=d-1|0;H[i+d|0]=K[(f&15)+2194544|0];j=!e&f>>>0>15|(e|0)!=0;g=e;e=e>>>4|0;f=(g&15)<<28|f>>>4;if(j)continue;break}}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d;case 22:d=65;f=g;e=j;fa:{if(!(f|e)){H[i+64|0]=48;d=64;break fa}while(1){d= +d-1|0;H[i+d|0]=K[(f&7)+2194544|0];j=!e&f>>>0>7|(e|0)!=0;g=e;e=e>>>3|0;f=(g&7)<<29|f>>>3;if(j)continue;break}}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d;case 23:d=65;f=g;e=j;ga:{if(!(f|e)){H[i+64|0]=48;d=64;break ga}while(1){d=d-1|0;H[i+d|0]=K[(f&1)+2194544|0];j=!e&f>>>0>1|(e|0)!=0;g=e;e=e>>>1|0;f=(g&1)<<31|f>>>1;if(j)continue;break}}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66| +0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d;case 24:f=65;k=0;x(0,g|0);x(1,j|0);u=+z();q=V((u<0?-u:u)*_e(10,+(p|0))+.5);r=q;ha:{if((p|0)>0){while(1){e=f;f=e-1|0;j=f+i|0;r=V((q+.5)*.1);q=V(r*-10+q+.5);ia:{if(R(q)<2147483648){g=~~q;break ia}g=-2147483648}H[j|0]=g+48;d=1;k=k+1|0;if((k|0)<(p|0)){q=r;if(e>>>0>2)continue}break}if(e>>>0<3)break ha}d=f-1|0;H[i+d|0]=46}h=d;ja:{if(d>>>0<2)break ja;while(1){h=d-1|0;f=i+h|0;q=V((r+.5)*.1);r=V(q*-10+r+.5); +ka:{if(R(r)<2147483648){e=~~r;break ka}e=-2147483648}H[f|0]=e+48;if(d>>>0<3)break ja;d=h;r=q;if(q!=0)continue;break}}if(u<0){h=h-1|0;H[i+h|0]=45}f=65-h|0;e=i+h|0;if((n|0)==45)break e;break d;case 25:d=65;f=0;k=0;x(0,g|0);x(1,j|0);u=+z();q=V((u<0?-u:u)*_e(10,+(p|0))+.5);r=q;la:{if((p|0)>0){while(1){r=V((q+.5)*.1);q=V(r*-10+q+.5);ma:{if(R(q)<2147483648){e=~~q;break ma}e=-2147483648}g=e|k;if(g){d=d-1|0;H[i+d|0]=e+48;k=1}else k=0;f=f+1|0;if((p|0)>(f|0)){q=r;if((d|0)>1)continue}break}if(!(!g|(d|0)<2)){d= +d-1|0;H[i+d|0]=46}if((d|0)<2)break la}h=d;while(1){d=h-1|0;f=i+d|0;q=V((r+.5)*.1);r=V(q*-10+r+.5);na:{if(R(r)<2147483648){e=~~r;break na}e=-2147483648}H[f|0]=e+48;if(h>>>0<3)break la;h=d;r=q;if(q!=0)continue;break}}if(u<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d;case 26:H[i|0]=g;e=i;f=1;if((n|0)==45)break d;break c;case 27:if(!g)break A;f=Yc(g);if((n|0)!=45){e=g;break e}e=g;break d;case 28:if(!g)break A;f=J[g>>2];e=J[g+4>>2];if((n|0)!=45)break e;break d;case 29:break ca; +default:break z}e=i;f=0;l=g;if((n|0)==45)break c;break d}b=K[b+1|0]==125?b+2|0:b+1|0;g=J[a>>2];if((g|0)==2147483647){gi(778126);g=J[a>>2]}Bh(a,g+1|0);g=J[a>>2];J[a>>2]=g+1;H[g+J[a+4>>2]|0]=125;H[J[a+4>>2]+J[a>>2]|0]=0;continue}if(g)break B}Mc(s);fc=i+80|0;return a}H[i+64|0]=48;d=64;break f}H[i+64|0]=48;d=64;break g}H[i+64|0]=48;d=64;break h}H[i+64|0]=48;d=64;break i}H[i+64|0]=48;h=64;break j}H[i+64|0]=48;d=64;break k}H[i+64|0]=48;d=64;break l}H[i+64|0]=48;d=64;break m}H[i+64|0]=48;d=64;break n}H[i+ +64|0]=48;d=64;break o}H[i+64|0]=48;d=64;break p}H[i+64|0]=48;d=64;break q}H[i+64|0]=48;h=64;break r}H[i+64|0]=48;d=64;break s}H[i+64|0]=48;d=64;break t}H[i+64|0]=48;d=64;break u}H[i+64|0]=48;d=64;break v}H[i+64|0]=48;d=64;break w}H[i+64|0]=48;d=64;break x}H[i+64|0]=48;d=64;break y}while(1){oa:{g=K[d+1|0];d=d+1|0;pa:switch(g-123|0){case 1:continue;case 0:case 2:break oa;default:break pa}if(g)continue}break}g=d-b|0;qa:{if((g|0)>=0){h=J[a>>2];if((h|0)<=(g^2147483647))break qa}gi(778126);h=J[a>>2]}Bh(a, +g+h|0);xc(J[a+4>>2]+J[a>>2]|0,b,g);g=g+J[a>>2]|0;J[a>>2]=g;b=d;H[g+J[a+4>>2]|0]=0;continue}e=779365;f=6;k=m}if(k)break e;break d}if(!((o|0)!=48|(d|0)<=(k|0)|(65-d|0)>=(l-k|0))){e=(((j>>31)+l|0)+d|0)-66|0;f=d-1|0;g=f-k|0;e=e>>>0>>0?e:g;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((j|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=(k|0)|(65-d|0)>=(l-k|0))){e=(((j>>31)+l|0)+d|0)-66|0;f=d-1|0;g=f-k|0;e=e>>>0>>0?e:g;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((j|0)<0){d=d-1|0;H[i+ +d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=(k|0)|(65-d|0)>=(l-k|0))){e=(((j>>31)+l|0)+d|0)-66|0;f=d-1|0;g=f-k|0;e=e>>>0>>0?e:g;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((j|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=(p|0)|(65-d|0)>=(l-p|0))){e=(((j>>31)+l|0)+d|0)-66|0;f=d-1|0;g=f-p|0;e=e>>>0>>0?e:g;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((j|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<= +0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(h|0)<=0|(65-h|0)>=(l|0))){f=(h+l|0)-66| +0;e=h-1|0;f=e>>>0>f>>>0?f:e;h=e-f|0;Ac(i+h|0,48,f+1|0)}f=65-h|0;e=i+h|0;if((n|0)==45)break e;break d}ra:{if((o|0)!=48|(d|0)<=(k|0))break ra;e=l-k|0;if((e|0)<=(65-d|0))break ra;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}sa:{if((o|0)!=48|(d|0)<=(k|0))break sa;e=l-k|0;if((e|0)<=(65-d|0))break sa;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0; +H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}ta:{if((o|0)!=48|(d|0)<=(k|0))break ta;e=l-k|0;if((e|0)<=(65-d|0))break ta;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}ua:{if((o|0)!=48|(d|0)<=(p|0))break ua;e=l-p|0;if((e|0)<=(65-d|0))break ua;e=(d+e|0)-66|0;f=d-1|0;j=f-p|0;e=e>>>0>>0?e:j;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e; +break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(d|0)<=0|(65-d|0)>=(l|0))){f=(d+l|0)-66|0;e=d-1|0;f=e>>>0>f>>>0?f:e;d=e-f|0;Ac(i+d|0,48,f+1|0)}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}if(!((o|0)!=48|(h|0)<=0|(65- +h|0)>=(l|0))){f=(h+l|0)-66|0;e=h-1|0;f=e>>>0>f>>>0?f:e;h=e-f|0;Ac(i+h|0,48,f+1|0)}f=65-h|0;e=i+h|0;if((n|0)==45)break e;break d}va:{if((o|0)!=48|(d|0)<=(k|0))break va;e=l-k|0;if((e|0)<=(65-d|0))break va;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}wa:{if((o|0)!=48|(d|0)<=(k|0))break wa;e=l-k|0;if((e|0)<=(65-d|0))break wa;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;Ac(i+d|0,48, +e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}xa:{if((o|0)!=48|(d|0)<=(k|0))break xa;e=l-k|0;if((e|0)<=(65-d|0))break xa;e=(d+e|0)-66|0;f=d-1|0;j=f-k|0;e=e>>>0>>0?e:j;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65-d|0;e=d+i|0;if((n|0)==45)break e;break d}ya:{if((o|0)!=48|(d|0)<=(p|0))break ya;e=l-p|0;if((e|0)<=(65-d|0))break ya;e=(d+e|0)-66|0;f=d-1|0;j=f-p|0;e=e>>>0>>0?e:j;d=f-e|0;Ac(i+d|0,48,e+1|0)}if((g|0)<0){d=d-1|0;H[i+d|0]=45}f=65- +d|0;e=d+i|0;if((n|0)!=45)break d}if((f|0)>=0)break c;break b}h=f;if((l|0)>(f|0))while(1){g=J[a>>2];if((g|0)==2147483647){gi(778126);g=J[a>>2]}Bh(a,g+1|0);g=J[a>>2];J[a>>2]=g+1;H[g+J[a+4>>2]|0]=32;H[J[a+4>>2]+J[a>>2]|0]=0;h=h+1|0;if((l|0)!=(h|0))continue;break}za:{if((f|0)>=0){d=J[a>>2];if((d|0)<=(f^2147483647))break za}gi(778126);d=J[a>>2]}Bh(a,d+f|0);xc(J[a+4>>2]+J[a>>2]|0,e,f);g=J[a>>2]+f|0;J[a>>2]=g;H[g+J[a+4>>2]|0]=0;continue}d=J[a>>2];if((d|0)<=(f^2147483647))break a}gi(778126);d=J[a>>2]}Bh(a, +d+f|0);xc(J[a+4>>2]+J[a>>2]|0,e,f);g=J[a>>2]+f|0;J[a>>2]=g;H[g+J[a+4>>2]|0]=0;h=f;if((l|0)<=(f|0))continue;while(1){g=J[a>>2];if((g|0)==2147483647){gi(778126);g=J[a>>2]}Bh(a,g+1|0);g=J[a>>2];J[a>>2]=g+1;H[g+J[a+4>>2]|0]=32;H[J[a+4>>2]+J[a>>2]|0]=0;h=h+1|0;if((l|0)!=(h|0))continue;break}continue}}function uCb(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0;m=fc-2784|0;fc=m;a:{n=J[a+52>> +2];if(!n){e=-1;break a}b:{c:{d:{e:{f:{g:{if(!J[n+40>>2]){f=J[n+32>>2];if((J[f>>2]&3)!=3){e=-1;break a}c=J[f+20>>2];h:{if(!c)break h;e=J[f+24>>2];b=c;while(1){d=J[e+12>>2];i:{if(K[e+9|0]!=1){if((d|0)>=(P(K[e+5|0],3)-2|0))break i;e=-1;break a}if((d|0)==1)break i;e=-1;break a}e=e+488|0;b=b-1|0;if(b)continue;break}if((c|0)<=0)break h;b=J[f+24>>2];while(1){if(!(H[b+4|0]&1))Ac(b+419|0,15,66);j:{if(K[b+9|0]!=1)break j;d=K[b+5|0];if(!d)break j;c=J[b+16>>2];if(c>>>0>65535)break g;if(d>>>0<2)break j;g=b+16| +0;i=P(d,3);l=c&2047;d=c>>>11|0;e=1;while(1){c=d+((e+2>>>0)/3|0)|0;if(c>>>0>31)break g;J[g+(e<<2)>>2]=l|c<<11&63488;c=e+3|0;e=e+1|0;if((c|0)!=(i|0))continue;break}}b=b+488|0;t=t+1|0;if((t|0)>2])continue;break}f=J[n+32>>2]}J[n+48>>2]=K[f+16|0]==1;if(J[a+56>>2]>0){r=J[n+36>>2];C=J[a+88>>2];while(1){p=J[J[n+32>>2]+24>>2]+P(G,488)|0;if(!K[p+8|0])J[n+48>>2]=1;b=K[p+5|0];J[r+20>>2]=b;b=Dc(P(b,60));J[r+24>>2]=b;if(!b)break c;f=J[C>>2];c=f-1|0;d=J[C+4>>2];b=d-1|0;b=yp((c+J[n+4>>2]>>>0)/(f>>>0)|0,(b+ +J[n+8>>2]>>>0)/(d>>>0)|0,(c+J[n+12>>2]>>>0)/(f>>>0)|0,(b+J[n+16>>2]>>>0)/(d>>>0)|0);J[r+16>>2]=b;if(!b)break c;b=eP(K[p+8|0],J[r+20>>2]-1|0);J[r+28>>2]=b;if(!b)break c;c=b;b=J[r+16>>2];dP(c,J[b+4>>2],J[b+8>>2],J[b+12>>2],J[b+16>>2],m+224|0);e=J[r+20>>2];if((e|0)>0){k=J[r+24>>2];x=0;while(1){J[k+4>>2]=0;c=(x^-1)+e|0;b=-1<>2]>>>c|0;J[k+8>>2]=h;g=b+J[r+4>>2]>>>c|0;J[k+12>>2]=g;i=b+J[r+8>>2]>>>c|0;J[k+16>>2]=i;f=b+J[r+12>>2]>>>c|0;J[k+20>>2]=f;b=p+x|0;e=K[b+419|0];J[k+24>>2]=e;j=K[b+452| +0];J[k+28>>2]=j;b=-1<>>e|0;J[k+32>>2]=c;b=-1<>>j|0;J[k+36>>2]=b;J[k+40>>2]=P(b,c);k:{if(!(h>>>0>>0&f>>>0>g>>>0)){J[k+40>>2]=0;J[k+4>>2]=0;J[k+32>>2]=0;J[k+36>>2]=0;break k}if(x){j=j-1|0;e=e-1|0;I=I+1>>>1|0;l=l+1>>>1|0;d=d+1>>>1|0;c=3}else c=1;J[k+48>>2]=j;J[k+44>>2]=e;b=K[p+6|0];J[k+52>>2]=(b|0)>(e|0)?e:b;b=K[p+7|0];J[k>>2]=c;J[k+56>>2]=(b|0)>(j|0)?j:b;q=Dc(c<<5);J[k+4>>2]=q;if(!q)break c;if(J[k>>2]<=0)break k;O=P(x,3)-2|0;D=0;while(1){c= +x?D+O|0:0;i=(m+224|0)+P(c,40)|0;b=J[i+16>>2];J[q+8>>2]=b;J[q+12>>2]=J[(p+(c<<2)|0)+16>>2];f=iF(K[p+8|0],x,b);J[q+24>>2]=f;b=J[q+12>>2];c=b<<2&8188|8192;b=b>>11;f=(f+J[C+16>>2]|0)-b|0;J[q+16>>2]=(f|0)<0?c>>>0-f|0:c<>2]=b;f=K[p+417|0];J[q>>2]=0;J[q+4>>2]=0;J[q+28>>2]=(b+f|0)>31?32-c|0:f;l:{if(J[i>>2]==J[i+8>>2]|J[i+4>>2]==J[i+12>>2])break l;b=yp(0,0,0,0);J[q+4>>2]=b;if(!b)break c;Qy(b,J[r+16>>2],J[i+20>>2],J[i+24>>2],J[i+28>>2],J[i+32>>2]);f=J[q+4>>2];c=J[i>>2];J[f+ +4>>2]=c;b=J[(i|4)>>2];J[f+8>>2]=b;J[f+12>>2]=c+J[f+24>>2];J[f+16>>2]=b+J[f+20>>2];b=J[k+40>>2];if(!b)break f;e=Dc(P(b,40));J[q>>2]=e;if(!e)break c;E=J[k+40>>2];if((E|0)<=0)break l;h=J[k+44>>2];f=l;c=d;while(1){i=J[k+48>>2];g=J[q+4>>2];b=J[g+4>>2];w=b>>>0>>0?c:b;J[e>>2]=w;b=J[g+8>>2];u=b>>>0>>0?f:b;J[e+4>>2]=u;M=(1<>2];h=b>>>0>M>>>0?M:b;J[e+8>>2]=h;i=(1<>2];g=b>>>0>i>>>0?i:b;J[e+12>>2]=g;m:{if(!(h>>>0<=w>>>0|g>>>0<=u>>>0)){v=J[k+52>>2];i=J[k+56>>2];b=-1<>>i|0;J[e+20>>2]=g;b=-1<>>v|0;J[e+16>>2]=i;b=P(g,i);J[e+24>>2]=b;if((b|0)<=0)break e;b=jv(i,g);J[e+32>>2]=b;if(!b)break c;b=jv(J[e+16>>2],J[e+20>>2]);J[e+36>>2]=b;if(!b)break c;j=Dc(P(J[e+24>>2],44));J[e+28>>2]=j;if(!j)break c;t=J[e+24>>2];if((t|0)<=0)break m;A=J[k+52>>2];i=f;b=c;while(1){h=(1<>2];v=g>>>0>h>>>0?h:g;g=J[e>>2];w=b>>>0>g>>>0?b:g;n:{if(v>>>0<=w>>>0)break n;u=(1<>2])+i|0;g=J[e+12>>2];u=g>>>0>u>>>0?u:g;g=J[e+ +4>>2];g=g>>>0>>0?i:g;if(u>>>0<=g>>>0)break n;J[j+28>>2]=0;J[j+32>>2]=0;J[j+20>>2]=3;J[j+24>>2]=-1;J[j>>2]=0;J[j+4>>2]=0;J[j+36>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;J[j+16>>2]=0;h=yp(0,0,0,0);J[j+40>>2]=h;if(!h)break c;Qy(h,J[q+4>>2],w,g,v,u);t=t-1|0;j=j+44|0;A=J[k+52>>2];h=(1<>>0>>0)b=h;else{i=(1<>2])+i|0;b=c}if((t|0)>0)continue;break}break m}J[e+36>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0}h=J[k+44>>2];c=(1<>>0<=c>>>0){f=(1<>2])+f|0;c=d}e=e+40|0;b=(E|0)>1;E=E-1|0; +if(b)continue;break}}q=q+32|0;D=D+1|0;if((D|0)>2])continue;break}}k=k+60|0;e=J[r+20>>2];x=x+1|0;if((e|0)>(x|0))continue;break}}C=C+32|0;r=r+32|0;G=G+1|0;if((G|0)>2])continue;break}}h=0;g=mba();b=0;o:{if(!g)break o;b=J[a+56>>2];J[g+8>>2]=b;d=Dc(b<<4);J[g+12>>2]=d;p:{if(!d)break p;q:{r:{i=J[g+8>>2];if((i|0)<=0)break r;c=d;if(i>>>0>=8){f=i&-8;b=0;while(1){J[c+4>>2]=0;J[c+116>>2]=0;J[c+100>>2]=0;J[c+84>>2]=0;J[c+68>>2]=0;J[c+52>>2]=0;J[c+36>>2]=0;J[c+20>>2]=0;c=c+128|0;b=b+8|0;if((f|0)!= +(b|0))continue;break}}f=i&7;if(f){b=0;while(1){J[c+4>>2]=0;c=c+16|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if((i|0)<=0)break r;e=J[n+36>>2];while(1){b=J[e+20>>2];J[d>>2]=b;b=Dc(P(b,20));J[d+4>>2]=b;if(!b)break p;i=J[d>>2];l=(i|0)<=0;s:{if(l)break s;c=b;if(i>>>0>=8){f=i&-8;j=0;while(1){J[c+4>>2]=0;J[c+144>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+84>>2]=0;J[c- -64>>2]=0;J[c+44>>2]=0;J[c+24>>2]=0;c=c+160|0;j=j+8|0;if((f|0)!=(j|0))continue;break}}j=0;f=i&7;if(f)while(1){J[c+4>>2]=0;c=c+20|0;j=j+1|0;if((f| +0)!=(j|0))continue;break}if(l)break s;c=J[e+24>>2];i=0;while(1){f=J[c+40>>2];J[b>>2]=f;f=Dc(f<<2);J[b+4>>2]=f;if(!f)break p;c=c+60|0;b=b+20|0;i=i+1|0;if((i|0)>2])continue;break}}d=d+16|0;e=e+32|0;i=J[g+8>>2];h=h+1|0;if((i|0)>(h|0))continue;break}h=J[n+36>>2];b=0;J[g+4>>2]=0;if((i|0)<=0)break q;l=J[g+12>>2];e=J[a+88>>2];f=0;while(1){J[l+8>>2]=J[e>>2];J[l+12>>2]=J[e+4>>2];c=J[l>>2];if((c|0)>0){j=J[l+4>>2];i=J[h+24>>2];d=0;while(1){J[j+8>>2]=J[i+24>>2];J[j+12>>2]=J[i+28>>2];if(J[j>>2]>0){c=J[j+ 4>>2];b=0;while(1){J[c>>2]=0;c=c+4|0;b=b+1|0;if((b|0)>2])continue;break}c=J[l>>2]}J[j+16>>2]=J[i+32>>2];i=i+60|0;j=j+20|0;d=d+1|0;if((d|0)<(c|0))continue;break}b=J[g+4>>2]}c=J[h+20>>2];if((c|0)>(b|0)){J[g+4>>2]=c;b=c}e=e+32|0;l=l+16|0;h=h+32|0;i=J[g+8>>2];f=f+1|0;if((i|0)>(f|0))continue;break}break q}b=0;J[g+4>>2]=0}f=J[n+32>>2];d=J[f+12>>2];J[g>>2]=d;J[g+56>>2]=J[n+4>>2];J[g+60>>2]=J[n+8>>2];J[g+64>>2]=J[n+12>>2];c=J[n+16>>2];J[g+16>>2]=0;J[g+20>>2]=0;J[g+68>>2]=c;J[g+24>>2]=0;J[g+28>>2]=0; -J[g+32>>2]=0;J[g+36>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;J[g+96>>2]=-1;c=K[f+8|0];J[g+88>>2]=i;J[g+84>>2]=0;H[g+80|0]=c;J[g+92>>2]=d;H[g+82|0]=b;H[g+81|0]=0;H[g+101|0]=0;J[g+72>>2]=0;b=g;break o}aE(g);b=0}J[n+52>>2]=b;if(!b)break c;if(J[J[J[n+32>>2]+4>>2]>>2]>0){e=0;while(1){l=IN(J[J[J[J[n+32>>2]+4>>2]+8>>2]+(e<<2)>>2]);if(!l)break d;i=0;h=J[J[n+52>>2]+76>>2];g=J[h>>2];c=g;b=J[h+4>>2];t:{u:{if((c|0)<(b|0))break u;c=b+128|0;b=Kh(J[h+8>>2],c<<2);if(!b)break t;J[h+8>>2]=b;J[h+4>> -2]=c;c=J[h>>2];if((g|0)>=(c|0))break u;d=c;f=c-g&3;if(f)while(1){b=J[h+8>>2]+(d<<2)|0;J[b>>2]=J[b-4>>2];d=d-1|0;i=i+1|0;if((f|0)!=(i|0))continue;break}if((g^-1)+c>>>0<3)break u;while(1){f=d<<2;b=f+J[h+8>>2]|0;J[b>>2]=J[b-4>>2];b=f+J[h+8>>2]|0;J[b-4>>2]=J[b-8>>2];b=f+J[h+8>>2]|0;J[b-8>>2]=J[b-12>>2];b=f+J[h+8>>2]|0;J[b-12>>2]=J[b-16>>2];d=d-4|0;if((g|0)<(d|0))continue;break}}J[J[h+8>>2]+(g<<2)>>2]=l;J[h>>2]=c+1}e=e+1|0;if((e|0)>2]+4>>2]>>2])continue;break}}h9(J[n+52>>2])}g=J[a+96>>2];if(g){i= -J[g>>2];if((i|0)<=0)break b;e=1;l=J[J[g+8>>2]>>2];v:{if((i|0)==1)break v;c=i-1|0;f=c&3;k=0;b=0;if(i-2>>>0>=3){d=c&-4;h=0;while(1){p=b<<2;b=J[g+8>>2];c=e<<2;J[p+b>>2]=J[c+b>>2];b=J[g+8>>2];j=b+c|0;p=b;b=c+4|0;J[j>>2]=J[p+b>>2];p=b;b=J[g+8>>2];j=p+b|0;p=b;b=c+8|0;J[j>>2]=J[p+b>>2];c=J[g+8>>2];p=c+b|0;b=e+3|0;J[p>>2]=J[c+(b<<2)>>2];e=e+4|0;h=h+4|0;if((d|0)!=(h|0))continue;break}}if(!f)break v;while(1){c=J[g+8>>2];d=c+(b<<2)|0;b=e;J[d>>2]=J[c+(b<<2)>>2];e=b+1|0;k=k+1|0;if((f|0)!=(k|0))continue;break}}e= --1;J[g>>2]=i-1;J[n+24>>2]=l;if(!l)break a}if(J[n+20>>2]){w:{e=J[n+24>>2];if(e)break w;e=Fi(0,0);J[n+24>>2]=e;if(e)break w;e=-1;break a}b=Zi(e);e=0;Mg(J[n+24>>2],0,2);k=J[n+24>>2];d=J[n+20>>2];if(J[d>>2]>0){x:{while(1){c=J[J[d+8>>2]+(e<<2)>>2];if((Ko(k,J[c+8>>2],J[c+4>>2])|0)==J[c+4>>2]){e=e+1|0;if((e|0)>2])continue;break x}break}e=-1;break a}k=J[n+24>>2]}e=0;Mg(k,b,0);d=J[n+20>>2];if(J[d>>2]>0)while(1){c=J[J[d+8>>2]+(e<<2)>>2];b=J[c+8>>2];if(b)qc(b);qc(c);e=e+1|0;if((e|0)>2])continue;break}b= -J[d+8>>2];if(b)qc(b);qc(d);J[n+20>>2]=0}y:{if(J[682644]<10)break y;b=J[a+44>>2];if((b|0)<=0)break y;e=J[a+56>>2];if((e|0)<=0)break y;v=J[651370];f=J[a+48>>2];r=0;while(1){if((e|0)>0){c=J[f+36>>2];q=0;while(1){if(J[c+20>>2]>0){t=J[c+24>>2];i=0;while(1){J[m+208>>2]=i;cd(v,207479,m+208|0);g=J[t+16>>2];l=J[t+8>>2];d=J[t+20>>2];b=J[t+12>>2];J[m+196>>2]=d-b;J[m+192>>2]=g-l;J[m+188>>2]=d;J[m+184>>2]=g;J[m+180>>2]=b;J[m+176>>2]=l;cd(v,207559,m+176|0);if(J[t>>2]>0){b=J[t+4>>2];l=0;while(1){J[m+160>>2]=l;cd(v, -208781,m+160|0);d=J[b+4>>2];e=J[d+12>>2];h=J[d+4>>2];g=J[d+16>>2];d=J[d+8>>2];J[m+148>>2]=g-d;J[m+144>>2]=e-h;J[m+140>>2]=g;J[m+136>>2]=e;J[m+132>>2]=d;J[m+128>>2]=h;cd(v,207559,m+128|0);if(J[t+40>>2]>0){e=J[b>>2];A=0;while(1){J[m+112>>2]=A;cd(v,207745,m+112|0);u=J[e+8>>2];h=J[e>>2];g=J[e+12>>2];d=J[e+4>>2];J[m+100>>2]=g-d;J[m+96>>2]=u-h;J[m+92>>2]=g;J[m+88>>2]=u;J[m+84>>2]=d;J[m+80>>2]=h;cd(v,207559,m+80|0);if(J[e+24>>2]>0){k=J[e+28>>2];h=0;while(1){J[m+64>>2]=h;cd(v,208030,m- -64|0);d=J[k+40>>2]; -w=J[d+12>>2];u=J[d+4>>2];g=J[d+16>>2];d=J[d+8>>2];J[m+52>>2]=g-d;J[m+48>>2]=w-u;J[m+44>>2]=g;J[m+40>>2]=w;J[m+36>>2]=d;J[m+32>>2]=u;cd(v,207559,m+32|0);k=k+44|0;h=h+1|0;if((h|0)>2])continue;break}}e=e+40|0;A=A+1|0;if((A|0)>2])continue;break}}b=b+32|0;l=l+1|0;if((l|0)>2])continue;break}}t=t+60|0;i=i+1|0;if((i|0)>2])continue;break}e=J[a+56>>2]}c=c+32|0;q=q+1|0;if((q|0)<(e|0))continue;break}b=J[a+44>>2]}f=f+56|0;r=r+1|0;if((r|0)<(b|0))continue;break}}b=J[n+24>>2];y=J[a+60>> -2];L=b?b:y;s=bc+-64|0;bc=s;u=J[a+52>>2];z=J[u+52>>2];while(1){z:{A:{B:{C:{D:{b=J[u+24>>2];if(b){if(J[b+28>>2]>0)break D;if((jd(b,0)|0)!=-1)break D}if(Lg(y,s+60|0))break C;if((Ij(y,K[s+60|0])|0)==-1)break C;if((Ij(y,J[s+60>>2]>>>8|0)|0)==-1)break C;b=J[s+60>>2];if((b&-128)!=65408|b-65425>>>0<2)break D;if((b|0)!=65424){j=-1;if((b|0)!=65497)break z}j=0;break z}j=KN(z);if(j)break z;b=J[a+72>>2];if(!((b|0)<0|(b|0)>J[a+76>>2])){j=0;hd(198386,0);break z}E:{if(J[682644]>0){if(!K[z+101|0])break E;l=J[y+60>> -2];f=J[z+24>>2];d=J[z+28>>2];c=K[J[z+72>>2]];b=J[z+36>>2];J[s+48>>2]=J[z+32>>2];J[s+52>>2]=b;J[s+36>>2]=c;J[s+40>>2]=f;J[s+44>>2]=d;J[s+32>>2]=l;hd(199507,s+32|0)}if(K[z+101|0]){A=J[a+68>>2];k=J[z+36>>2];C=J[z+32>>2];I=J[z+28>>2];t=J[z+24>>2];D=J[a+52>>2];E=J[D+32>>2];d=J[E+24>>2];F:{if(!(K[E+17|0]&2))break F;if(Lg(y,s+60|0))break F;if((Ij(y,K[s+60|0])|0)==-1)break F;if((Ij(y,J[s+60>>2]>>>8|0)|0)==-1)break F;b=J[s+60>>2];if((b&-128)!=65408|(b|0)!=65425)break F;j=-1;c=SN(y,J[a+104>>2]);if(!c)break z; -b=J[c>>2];Ci(c);if((b|0)==65425)break F;hd(201762,0);break z}e=J[L+60>>2];j=-1;o=dE(L,202088);if(!o)break z;if(H[o+16|0]&1){c=J[o+8>>2];b=c-1|0;J[o+8>>2]=b;G:{if((c|0)>0){h=J[o+4>>2]>>>b&1;break G}h=Bg(o);if((h|0)<0)break z}if(!h)break B;G=J[(J[D+36>>2]+(t<<5)|0)+24>>2]+P(I,60)|0;f=J[G>>2];H:{if((f|0)<=0){r=0;break H}g=k+1|0;M=d+P(t,488)|0;q=J[G+4>>2];r=0;O=0;while(1){I:{if(!J[q+4>>2])break I;N=J[q>>2]+P(C,40)|0;h=J[N+28>>2];if(!h|J[N+24>>2]<=0)break I;x=0;while(1){J:{K:{L:{M:{N:{O:{P:{if(!J[h>>2]){b= -J[N+32>>2];d=FN(b,J[b+12>>2]+(x<<4)|0,g,o);if((d|0)<0)break z;break P}if(!(H[o+16|0]&1))break O;c=J[o+8>>2];b=c-1|0;J[o+8>>2]=b;if((c|0)>0){d=J[o+4>>2]>>>b&1;break P}d=Bg(o);if((d|0)<0)break z}if(!d)break J;if(!J[h>>2]){d=1;b=J[N+36>>2];c=J[b+12>>2]+(x<<4)|0;f=FN(b,c,1,o);if((f|0)<0)break z;while(1){if(!f){d=d+1|0;f=FN(J[N+36>>2],c,d,o);if((f|0)>=0)continue;break z}break}b=d-1|0;J[h+16>>2]=b;J[h+24>>2]=P(b,3)}if(!(H[o+16|0]&1))break N;c=J[o+8>>2];b=c-1|0;J[o+8>>2]=b;if((c|0)>0)b=J[o+4>>2]>>>b&1;else b= -Bg(o);Q:{if((b|0)>0){if(!(H[o+16|0]&1))break M;c=J[o+8>>2];b=c-1|0;J[o+8>>2]=b;if((c|0)>0)b=J[o+4>>2]>>>b&1;else b=Bg(o);if((b|0)>0){b=bE(o,2);if((b|0)==3){b=bE(o,5);if((b|0)==31){b=bE(o,7);c=(b|0)<0?b:b+37|0;break Q}c=(b|0)<0?b:b+6|0;break Q}c=(b|0)<0?b:b+3|0;break Q}c=2;if(b)break z;break L}c=b>>>0<=1?1:b}if((c|0)<0)break z;if(c)break L;c=0;break K}fa(202816,200800,258,212374);B()}fa(205303,200800,133,212392);B()}fa(205303,200800,134,212392);B()}R:{if(H[o+16|0]&1){b=J[h+12>>2];f=0;while(1){l=J[o+ -8>>2];d=l-1|0;J[o+8>>2]=d;S:{if((l|0)>0){d=J[o+4>>2]>>>d&1;break S}d=Bg(o);if((d|0)<0)break z}if(K[o|0]&2)break z;if(!d)break R;f=f+1|0;if(H[o+16|0]&1)continue;break}}fa(205303,200800,114,212412);B()}J[h+20>>2]=J[h+20>>2]+f;if((c|0)<=0)break K;v=h+4|0;F=0;d=c;while(1){i=J[h+24>>2];w=J[h>>2]+(i+F|0)|0;l=K[M+418|0];f=l&1;T:{U:{p=1;V:{if(l>>>2&1)break V;p=94;if(!f)break V;p=(i-w|0)+10|0;if((w|0)<(i+10|0))break V;f=(w|0)%3|0;if(f>>>0>=3)break U;p=J[(f<<2)+211848>>2]}f=1E4-w|0;f=(f|0)>(p|0)?p:f;break T}fa(198111, -198921,130,211806);B()}i=(k|0)>=(A|0);if(!(b|i)){b=zc(40);if(b){J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=-1;J[b>>2]=0;J[b+4>>2]=0;J[b+36>>2]=-1;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0}if(!b)break z;W:{X:{p=J[h+8>>2];if(!p){J[b>>2]=0;J[b+4>>2]=0;J[v>>2]=b;break X}l=J[p>>2];J[b>>2]=l;J[b+4>>2]=p;J[p>>2]=b;if(!l)break X;J[l+4>>2]=b;break W}J[v+4>>2]=b}if(!J[h+12>>2])J[h+12>>2]=b;J[b+8>>2]=w;l=q9(w,J[h+24>>2],H[M+418|0]&1);J[b+16>>2]=f;J[b+20>>2]=l}l=(d|0)<(f|0)?d:f;f=bE(o,J[h+20>>2]+dq(l)|0); -if((f|0)<0)break z;d=d-l|0;if(!i){J[b+36>>2]=k;J[b+28>>2]=f;J[b+12>>2]=l+J[b+12>>2];b=J[b>>2]}F=l+F|0;r=f+r|0;if((d|0)>0)continue;break}}J[h>>2]=J[h>>2]+c}h=h+44|0;x=x+1|0;if((x|0)>2])continue;break}f=J[G>>2]}q=q+32|0;O=O+1|0;if((O|0)<(f|0))continue;break}}cE(o,0,0);break A}fa(202816,200800,227,212374);B()}fa(200015,200800,454,212355);B()}fa(200015,200800,451,212355);B()}j=-1;break z}r=0;if(!cE(o,127,0))break A;hd(203616,0);break z}wu(o);b=J[L+60>>2];if(J[682644]>=5){J[s+20>>2]=r;J[s+16>> -2]=b-e;hd(204177,s+16|0)}Y:{if(!(K[E+17|0]&4))break Y;if(Lg(L,s+60|0))break Y;if((Ij(L,K[s+60|0])|0)==-1)break Y;if((Ij(L,J[s+60>>2]>>>8|0)|0)==-1)break Y;b=J[s+60>>2];if((b&-128)!=65408|(b|0)!=65426)break Y;c=SN(L,J[a+104>>2]);if(!c){hd(204373,0);break z}b=J[c>>2];Ci(c);if((b|0)==65426)break Y;hd(204753,0);break z}if(J[682644]>0){J[s>>2]=J[y+60>>2];hd(205158,s)}Z:{if((k|0)<(A|0)){e=J[(J[D+36>>2]+(t<<5)|0)+24>>2]+P(I,60)|0;h=J[e>>2];if((h|0)<=0)break Z;F=J[e+4>>2];b=0;i=P(C,40);while(1){_:{if(!J[F+ -4>>2])break _;g=i+J[F>>2]|0;f=J[g+28>>2];if(!f)break _;d=J[g+24>>2];if((d|0)<=0)break _;q=0;while(1){c=J[f+12>>2];if(c){while(1){h=J[c+24>>2];if(!h){h=Fi(0,0);J[c+24>>2]=h;if(!h)break z}d=J[c+28>>2];if((d|0)>0){if((xn(h,y,d)|0)<0)break z;J[c+28>>2]=0}l=J[c+16>>2];d=J[c+12>>2];c=J[c>>2];if((d|0)>=(l|0))J[f+12>>2]=c;if(c)continue;break}d=J[g+24>>2]}f=f+44|0;q=q+1|0;if((q|0)<(d|0))continue;break}h=J[e>>2]}F=F+32|0;b=b+1|0;if((h|0)>(b|0))continue;break}break Z}if((Bu(y,r)|0)!=(r|0))break z}J[a+76>>2]= -J[a+76>>2]+1;continue}break}bc=s- -64|0;if(j){hd(205628,0);e=-1;break a}c=J[a+100>>2];$:{if((c|0)<=0)break $;b=J[J[a+60>>2]+60>>2];if((b|0)<(c|0)){j=c-b|0;J[m>>2]=j;hd(205832,m);while(1){if(!j)break $;d=J[a+60>>2];c=J[d+8>>2];aa:{if(c&7)break aa;b=J[d+64>>2];if(!((b|0)<0|(b|0)>J[d+60>>2])){J[d+8>>2]=c|4;break aa}b=J[d+28>>2];J[d+28>>2]=b-1;j=j-1|0;ba:{if((b|0)<=0){b=jd(d,1);break ba}J[d+60>>2]=J[d+60>>2]+1;b=J[d+24>>2];J[d+24>>2]=b+1;b=K[b|0]}if((b|0)!=-1)continue}break}hd(206055,0);e=-1;break a}if((b| -0)<=(c|0))break $;J[m+16>>2]=b-c;hd(206214,m+16|0)}b=J[n+44>>2];j=J[n+40>>2];if(!((b|0)<=0|(j|0)!=(b-1|0))){e=-1;if(u9(a,n))break a;t9(a,n);j=J[n+40>>2]}e=0;J[a+52>>2]=0;J[n+40>>2]=j+1;J[a+84>>2]=8;break a}fa(206812,201384,1597,211741);B()}fa(206990,201384,798,211755);B()}fa(207188,201384,829,211755);B()}fa(207327,201384,901,211755);B()}e=-1;break a}ra();B()}bc=m+2784|0;return e|0}function BJa(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0,M=0;v=J[a+108>>2];if(v)a:{d=J[a+116>>2];x=J[a+104>>2];u=bc-48|0;bc=u;b:{c:{w=QA(J[689612]);if(w){s=Rh(w,32,u+40|0,8);d:{e:switch(J[J[689612]+204>>2]){case 0:n=Rh(w,10,u+16|0,16);break d;case 1:n=u+16|0;a=Rh(w,13,n,16);n=Rh(w,10,a+n|0,16-a|0)+a|0;break d;case 2:break e;default:break d}n=Rh(w,13,u+16|0,16)}F=Rh(w,12,u+8|0,8);G=J[J[689612]+208>>2];f:{g:switch(J[d>>2]){case 0:if(J[d+52>>2])c=KH(d,J[d+204>>2]);t=u+40|0;m=u+16|0;f=Gv(d,J[d+204>>2]);i=1;a=J[d+ -204>>2];if(J[a+8>>2]>0){while(1){e=J[J[a>>2]+(b<<2)>>2];if(Zk(J[e>>2]))e=1;else e=ok(J[e>>2])?-1:0;g=e+g|0;b=b+1|0;if((b|0)>2])continue;break}i=(g^-1)>>>31|0;a=J[d+204>>2]}h:{a=CA(d,a);if(!a){Un(d,J[d+204>>2],f);break h}g=rc(16);J[695492]=0;e=$(3185,g|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)i:{BA(d,a,e,i);qc(Vn(a));Un(d,J[d+204>>2],f);if(J[d+24>>2]){JH(d,f);IH(d,e)}if(c){j:{if(J[c+8>>2]<=0)break j;id(e,HH(c));a=J[c+8>>2];if((a|0)<=0)break j;b=0;while(1){d=J[J[c>>2]+(b<<2)>>2];if(d){qc(d); -a=J[c+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}qc(dd(c))}c=0;k:{if(J[e+8>>2]<=0)break k;while(1){o=0;C=J[J[e>>2]+(c<<2)>>2];b=J[C>>2];if(J[b+8>>2]>0)while(1){a=0;l:{p=J[J[b>>2]+(o<<2)>>2];b=J[p>>2];r=J[b+8>>2];if((r|0)<=0)break l;while(1){m:{f=J[J[b>>2]+(a<<2)>>2];b=J[f+60>>2];y=J[f+56>>2];g=rc(8);J[695492]=0;d=$(3184,g|0)|0;z=J[695492];J[695492]=0;if((z|0)==1)break m;a=a+1|0;Fv(J[f+48>>2],y-((b|0)!=0&(r|0)>(a|0))|0,w,i,d);if(!(J[f+60>>2]|J[J[p>>2]+8>>2]<=(a|0)))cf(d,t,s);gc[x|0](v,J[d+4>>2], -J[d>>2]);qc(Rc(d));b=J[p>>2];r=J[b+8>>2];if((r|0)>(a|0))continue;break l}break}break i}gc[x|0](v,m,n);o=o+1|0;b=J[C>>2];if((o|0)>2])continue;break}gc[x|0](v,m,n);b=J[e+8>>2];c=c+1|0;if((b|0)>(c|0))continue;break}a=0;if((b|0)<=0)break k;while(1){d=J[J[e>>2]+(a<<2)>>2];if(d){qc(Lq(d));b=J[e+8>>2]}a=a+1|0;if((b|0)>(a|0))continue;break}}qc(dd(e));break h}a=Z()|0;qc(g);ba(a|0);B()}break f;case 1:case 4:if(J[d+52>>2])o=KH(d,J[d+204>>2]);H=u+40|0;t=u+16|0;g=Gv(d,J[d+204>>2]);C=1;a=J[d+204>>2];if(J[a+ -8>>2]>0){while(1){c=J[J[a>>2]+(b<<2)>>2];if(Zk(J[c>>2]))c=1;else c=ok(J[c>>2])?-1:0;i=c+i|0;b=b+1|0;if((b|0)>2])continue;break}C=(i^-1)>>>31|0;a=J[d+204>>2]}n:{a=CA(d,a);if(!a){Un(d,J[d+204>>2],g);break n}c=rc(16);J[695492]=0;f=$(3185,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)o:{BA(d,a,f,1);qc(Vn(a));Un(d,J[d+204>>2],g);if(J[d+24>>2]){JH(d,g);IH(d,f)}c=d;z=bc-16|0;bc=z;y=QA(J[689612]);if(y){b=J[f+8>>2];if((b|0)>0)while(1){d=J[J[f>>2]+(e<<2)>>2];J[d+48>>2]=0;J[d+52>>2]=0;i=0;r=J[d>>2];m=J[r+ -8>>2];if((m|0)>0){p=0;while(1){g=0;D=J[J[r>>2]+(p<<2)>>2];m=J[D>>2];b=J[m+8>>2];if((b|0)>0){while(1){a=J[J[m>>2]+(g<<2)>>2];p:{if(J[y+8>>2]){i=J[a+56>>2];J[a+68>>2]=i;break p}i=0;J[a+68>>2]=0;if(J[a+56>>2]<=0)break p;b=0;while(1){i=Rh(y,J[J[a+48>>2]+(b<<2)>>2],z+8|0,8)+J[a+68>>2]|0;J[a+68>>2]=i;b=b+1|0;if((b|0)>2])continue;break}}q:{r:{h=O[c+8>>3];if(h>0){h=(O[a+8>>3]-O[d+8>>3])/h;if(!(R(h)<2147483648))break r;b=~~h;break q}h=O[a+40>>3];b=0;if(R(h)<.001)break q;h=(O[a+8>>3]-O[d+8>>3])/(h* -.33);if(!(R(h)<2147483648))break r;b=~~h;break q}b=-2147483648}J[a+64>>2]=b;a=b+i|0;if((a|0)>J[d+48>>2])J[d+48>>2]=a;m=J[D>>2];b=J[m+8>>2];g=g+1|0;if((b|0)>(g|0))continue;break}r=J[d>>2];i=J[d+52>>2]}i=b+i|0;J[d+52>>2]=i;m=J[r+8>>2];p=p+1|0;if((m|0)>(p|0))continue;break}b=J[f+8>>2]}J[d+52>>2]=(i+m|0)-1;e=e+1|0;if((e|0)<(b|0))continue;break}Tn(y)}bc=z+16|0;b=0;g=0;a=J[c>>2];d=f;bl(d,3489);j=(a|0)==4?.05:0;i=J[d+8>>2];s:{if((i|0)<=0)break s;f=J[d>>2];h=O[c+8>>3];if(h==0){while(1){m=J[f+(b<<2)>>2];J[m+ +J[g+32>>2]=0;J[g+36>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;J[g+96>>2]=-1;c=K[f+8|0];J[g+88>>2]=i;J[g+84>>2]=0;H[g+80|0]=c;J[g+92>>2]=d;H[g+82|0]=b;H[g+81|0]=0;H[g+101|0]=0;J[g+72>>2]=0;b=g;break o}eF(g);b=0}J[n+52>>2]=b;if(!b)break c;if(J[J[J[n+32>>2]+4>>2]>>2]>0){e=0;while(1){l=aP(J[J[J[J[n+32>>2]+4>>2]+8>>2]+(e<<2)>>2]);if(!l)break d;i=0;h=J[J[n+52>>2]+76>>2];g=J[h>>2];c=g;b=J[h+4>>2];t:{u:{if((c|0)<(b|0))break u;c=b+128|0;b=Yh(J[h+8>>2],c<<2);if(!b)break t;J[h+8>>2]=b;J[h+4>> +2]=c;c=J[h>>2];if((g|0)>=(c|0))break u;d=c;f=c-g&3;if(f)while(1){b=J[h+8>>2]+(d<<2)|0;J[b>>2]=J[b-4>>2];d=d-1|0;i=i+1|0;if((f|0)!=(i|0))continue;break}if((g^-1)+c>>>0<3)break u;while(1){f=d<<2;b=f+J[h+8>>2]|0;J[b>>2]=J[b-4>>2];b=f+J[h+8>>2]|0;J[b-4>>2]=J[b-8>>2];b=f+J[h+8>>2]|0;J[b-8>>2]=J[b-12>>2];b=f+J[h+8>>2]|0;J[b-12>>2]=J[b-16>>2];d=d-4|0;if((g|0)<(d|0))continue;break}}J[J[h+8>>2]+(g<<2)>>2]=l;J[h>>2]=c+1}e=e+1|0;if((e|0)>2]+4>>2]>>2])continue;break}}jba(J[n+52>>2])}g=J[a+96>>2]; +if(g){i=J[g>>2];if((i|0)<=0)break b;e=1;l=J[J[g+8>>2]>>2];v:{if((i|0)==1)break v;c=i-1|0;f=c&3;k=0;b=0;if(i-2>>>0>=3){d=c&-4;h=0;while(1){p=b<<2;b=J[g+8>>2];c=e<<2;J[p+b>>2]=J[c+b>>2];b=J[g+8>>2];j=b+c|0;p=b;b=c+4|0;J[j>>2]=J[p+b>>2];p=b;b=J[g+8>>2];j=p+b|0;p=b;b=c+8|0;J[j>>2]=J[p+b>>2];c=J[g+8>>2];p=c+b|0;b=e+3|0;J[p>>2]=J[c+(b<<2)>>2];e=e+4|0;h=h+4|0;if((d|0)!=(h|0))continue;break}}if(!f)break v;while(1){c=J[g+8>>2];d=c+(b<<2)|0;b=e;J[d>>2]=J[c+(b<<2)>>2];e=b+1|0;k=k+1|0;if((f|0)!=(k|0))continue; +break}}e=-1;J[g>>2]=i-1;J[n+24>>2]=l;if(!l)break a}if(J[n+20>>2]){w:{e=J[n+24>>2];if(e)break w;e=Vi(0,0);J[n+24>>2]=e;if(e)break w;e=-1;break a}b=tj(e);e=0;Xg(J[n+24>>2],0,2);k=J[n+24>>2];d=J[n+20>>2];if(J[d>>2]>0){x:{while(1){c=J[J[d+8>>2]+(e<<2)>>2];if((Ap(k,J[c+8>>2],J[c+4>>2])|0)==J[c+4>>2]){e=e+1|0;if((e|0)>2])continue;break x}break}e=-1;break a}k=J[n+24>>2]}e=0;Xg(k,b,0);d=J[n+20>>2];if(J[d>>2]>0)while(1){c=J[J[d+8>>2]+(e<<2)>>2];b=J[c+8>>2];if(b)uc(b);uc(c);e=e+1|0;if((e|0)>2])continue; +break}b=J[d+8>>2];if(b)uc(b);uc(d);J[n+20>>2]=0}y:{if(J[686392]<10)break y;b=J[a+44>>2];if((b|0)<=0)break y;e=J[a+56>>2];if((e|0)<=0)break y;v=J[655074];f=J[a+48>>2];r=0;while(1){if((e|0)>0){c=J[f+36>>2];q=0;while(1){if(J[c+20>>2]>0){t=J[c+24>>2];i=0;while(1){J[m+208>>2]=i;md(v,207495,m+208|0);g=J[t+16>>2];l=J[t+8>>2];d=J[t+20>>2];b=J[t+12>>2];J[m+196>>2]=d-b;J[m+192>>2]=g-l;J[m+188>>2]=d;J[m+184>>2]=g;J[m+180>>2]=b;J[m+176>>2]=l;md(v,207575,m+176|0);if(J[t>>2]>0){b=J[t+4>>2];l=0;while(1){J[m+160>> +2]=l;md(v,208797,m+160|0);d=J[b+4>>2];e=J[d+12>>2];h=J[d+4>>2];g=J[d+16>>2];d=J[d+8>>2];J[m+148>>2]=g-d;J[m+144>>2]=e-h;J[m+140>>2]=g;J[m+136>>2]=e;J[m+132>>2]=d;J[m+128>>2]=h;md(v,207575,m+128|0);if(J[t+40>>2]>0){e=J[b>>2];A=0;while(1){J[m+112>>2]=A;md(v,207761,m+112|0);u=J[e+8>>2];h=J[e>>2];g=J[e+12>>2];d=J[e+4>>2];J[m+100>>2]=g-d;J[m+96>>2]=u-h;J[m+92>>2]=g;J[m+88>>2]=u;J[m+84>>2]=d;J[m+80>>2]=h;md(v,207575,m+80|0);if(J[e+24>>2]>0){k=J[e+28>>2];h=0;while(1){J[m+64>>2]=h;md(v,208046,m- -64|0);d= +J[k+40>>2];w=J[d+12>>2];u=J[d+4>>2];g=J[d+16>>2];d=J[d+8>>2];J[m+52>>2]=g-d;J[m+48>>2]=w-u;J[m+44>>2]=g;J[m+40>>2]=w;J[m+36>>2]=d;J[m+32>>2]=u;md(v,207575,m+32|0);k=k+44|0;h=h+1|0;if((h|0)>2])continue;break}}e=e+40|0;A=A+1|0;if((A|0)>2])continue;break}}b=b+32|0;l=l+1|0;if((l|0)>2])continue;break}}t=t+60|0;i=i+1|0;if((i|0)>2])continue;break}e=J[a+56>>2]}c=c+32|0;q=q+1|0;if((q|0)<(e|0))continue;break}b=J[a+44>>2]}f=f+56|0;r=r+1|0;if((r|0)<(b|0))continue;break}}b=J[n+24>> +2];y=J[a+60>>2];L=b?b:y;s=fc+-64|0;fc=s;u=J[a+52>>2];z=J[u+52>>2];while(1){z:{A:{B:{C:{D:{b=J[u+24>>2];if(b){if(J[b+28>>2]>0)break D;if((td(b,0)|0)!=-1)break D}if(Wg(y,s+60|0))break C;if((dk(y,K[s+60|0])|0)==-1)break C;if((dk(y,J[s+60>>2]>>>8|0)|0)==-1)break C;b=J[s+60>>2];if((b&-128)!=65408|b-65425>>>0<2)break D;if((b|0)!=65424){j=-1;if((b|0)!=65497)break z}j=0;break z}j=cP(z);if(j)break z;b=J[a+72>>2];if(!((b|0)<0|(b|0)>J[a+76>>2])){j=0;rd(198402,0);break z}E:{if(J[686392]>0){if(!K[z+101|0])break E; +l=J[y+60>>2];f=J[z+24>>2];d=J[z+28>>2];c=K[J[z+72>>2]];b=J[z+36>>2];J[s+48>>2]=J[z+32>>2];J[s+52>>2]=b;J[s+36>>2]=c;J[s+40>>2]=f;J[s+44>>2]=d;J[s+32>>2]=l;rd(199523,s+32|0)}if(K[z+101|0]){A=J[a+68>>2];k=J[z+36>>2];C=J[z+32>>2];I=J[z+28>>2];t=J[z+24>>2];D=J[a+52>>2];E=J[D+32>>2];d=J[E+24>>2];F:{if(!(K[E+17|0]&2))break F;if(Wg(y,s+60|0))break F;if((dk(y,K[s+60|0])|0)==-1)break F;if((dk(y,J[s+60>>2]>>>8|0)|0)==-1)break F;b=J[s+60>>2];if((b&-128)!=65408|(b|0)!=65425)break F;j=-1;c=kP(y,J[a+104>>2]);if(!c)break z; +b=J[c>>2];Si(c);if((b|0)==65425)break F;rd(201778,0);break z}e=J[L+60>>2];j=-1;o=hF(L,202104);if(!o)break z;if(H[o+16|0]&1){c=J[o+8>>2];b=c-1|0;J[o+8>>2]=b;G:{if((c|0)>0){h=J[o+4>>2]>>>b&1;break G}h=Ng(o);if((h|0)<0)break z}if(!h)break B;G=J[(J[D+36>>2]+(t<<5)|0)+24>>2]+P(I,60)|0;f=J[G>>2];H:{if((f|0)<=0){r=0;break H}g=k+1|0;M=d+P(t,488)|0;q=J[G+4>>2];r=0;O=0;while(1){I:{if(!J[q+4>>2])break I;N=J[q>>2]+P(C,40)|0;h=J[N+28>>2];if(!h|J[N+24>>2]<=0)break I;x=0;while(1){J:{K:{L:{M:{N:{O:{P:{if(!J[h>>2]){b= +J[N+32>>2];d=ZO(b,J[b+12>>2]+(x<<4)|0,g,o);if((d|0)<0)break z;break P}if(!(H[o+16|0]&1))break O;c=J[o+8>>2];b=c-1|0;J[o+8>>2]=b;if((c|0)>0){d=J[o+4>>2]>>>b&1;break P}d=Ng(o);if((d|0)<0)break z}if(!d)break J;if(!J[h>>2]){d=1;b=J[N+36>>2];c=J[b+12>>2]+(x<<4)|0;f=ZO(b,c,1,o);if((f|0)<0)break z;while(1){if(!f){d=d+1|0;f=ZO(J[N+36>>2],c,d,o);if((f|0)>=0)continue;break z}break}b=d-1|0;J[h+16>>2]=b;J[h+24>>2]=P(b,3)}if(!(H[o+16|0]&1))break N;c=J[o+8>>2];b=c-1|0;J[o+8>>2]=b;if((c|0)>0)b=J[o+4>>2]>>>b&1;else b= +Ng(o);Q:{if((b|0)>0){if(!(H[o+16|0]&1))break M;c=J[o+8>>2];b=c-1|0;J[o+8>>2]=b;if((c|0)>0)b=J[o+4>>2]>>>b&1;else b=Ng(o);if((b|0)>0){b=fF(o,2);if((b|0)==3){b=fF(o,5);if((b|0)==31){b=fF(o,7);c=(b|0)<0?b:b+37|0;break Q}c=(b|0)<0?b:b+6|0;break Q}c=(b|0)<0?b:b+3|0;break Q}c=2;if(b)break z;break L}c=b>>>0<=1?1:b}if((c|0)<0)break z;if(c)break L;c=0;break K}fa(202832,200816,258,212390);B()}fa(205319,200816,133,212408);B()}fa(205319,200816,134,212408);B()}R:{if(H[o+16|0]&1){b=J[h+12>>2];f=0;while(1){l=J[o+ +8>>2];d=l-1|0;J[o+8>>2]=d;S:{if((l|0)>0){d=J[o+4>>2]>>>d&1;break S}d=Ng(o);if((d|0)<0)break z}if(K[o|0]&2)break z;if(!d)break R;f=f+1|0;if(H[o+16|0]&1)continue;break}}fa(205319,200816,114,212428);B()}J[h+20>>2]=J[h+20>>2]+f;if((c|0)<=0)break K;v=h+4|0;F=0;d=c;while(1){i=J[h+24>>2];w=J[h>>2]+(i+F|0)|0;l=K[M+418|0];f=l&1;T:{U:{p=1;V:{if(l>>>2&1)break V;p=94;if(!f)break V;p=(i-w|0)+10|0;if((w|0)<(i+10|0))break V;f=(w|0)%3|0;if(f>>>0>=3)break U;p=J[(f<<2)+211864>>2]}f=1E4-w|0;f=(f|0)>(p|0)?p:f;break T}fa(198127, +198937,130,211822);B()}i=(k|0)>=(A|0);if(!(b|i)){b=Dc(40);if(b){J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=-1;J[b>>2]=0;J[b+4>>2]=0;J[b+36>>2]=-1;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0}if(!b)break z;W:{X:{p=J[h+8>>2];if(!p){J[b>>2]=0;J[b+4>>2]=0;J[v>>2]=b;break X}l=J[p>>2];J[b>>2]=l;J[b+4>>2]=p;J[p>>2]=b;if(!l)break X;J[l+4>>2]=b;break W}J[v+4>>2]=b}if(!J[h+12>>2])J[h+12>>2]=b;J[b+8>>2]=w;l=sba(w,J[h+24>>2],H[M+418|0]&1);J[b+16>>2]=f;J[b+20>>2]=l}l=(d|0)<(f|0)?d:f;f=fF(o,J[h+20>>2]+Wq(l)|0); +if((f|0)<0)break z;d=d-l|0;if(!i){J[b+36>>2]=k;J[b+28>>2]=f;J[b+12>>2]=l+J[b+12>>2];b=J[b>>2]}F=l+F|0;r=f+r|0;if((d|0)>0)continue;break}}J[h>>2]=J[h>>2]+c}h=h+44|0;x=x+1|0;if((x|0)>2])continue;break}f=J[G>>2]}q=q+32|0;O=O+1|0;if((O|0)<(f|0))continue;break}}gF(o,0,0);break A}fa(202832,200816,227,212390);B()}fa(200031,200816,454,212371);B()}fa(200031,200816,451,212371);B()}j=-1;break z}r=0;if(!gF(o,127,0))break A;rd(203632,0);break z}lv(o);b=J[L+60>>2];if(J[686392]>=5){J[s+20>>2]=r;J[s+16>> +2]=b-e;rd(204193,s+16|0)}Y:{if(!(K[E+17|0]&4))break Y;if(Wg(L,s+60|0))break Y;if((dk(L,K[s+60|0])|0)==-1)break Y;if((dk(L,J[s+60>>2]>>>8|0)|0)==-1)break Y;b=J[s+60>>2];if((b&-128)!=65408|(b|0)!=65426)break Y;c=kP(L,J[a+104>>2]);if(!c){rd(204389,0);break z}b=J[c>>2];Si(c);if((b|0)==65426)break Y;rd(204769,0);break z}if(J[686392]>0){J[s>>2]=J[y+60>>2];rd(205174,s)}Z:{if((k|0)<(A|0)){e=J[(J[D+36>>2]+(t<<5)|0)+24>>2]+P(I,60)|0;h=J[e>>2];if((h|0)<=0)break Z;F=J[e+4>>2];b=0;i=P(C,40);while(1){_:{if(!J[F+ +4>>2])break _;g=i+J[F>>2]|0;f=J[g+28>>2];if(!f)break _;d=J[g+24>>2];if((d|0)<=0)break _;q=0;while(1){c=J[f+12>>2];if(c){while(1){h=J[c+24>>2];if(!h){h=Vi(0,0);J[c+24>>2]=h;if(!h)break z}d=J[c+28>>2];if((d|0)>0){if((oo(h,y,d)|0)<0)break z;J[c+28>>2]=0}l=J[c+16>>2];d=J[c+12>>2];c=J[c>>2];if((d|0)>=(l|0))J[f+12>>2]=c;if(c)continue;break}d=J[g+24>>2]}f=f+44|0;q=q+1|0;if((q|0)<(d|0))continue;break}h=J[e>>2]}F=F+32|0;b=b+1|0;if((h|0)>(b|0))continue;break}break Z}if((qv(y,r)|0)!=(r|0))break z}J[a+76>>2]= +J[a+76>>2]+1;continue}break}fc=s- -64|0;if(j){rd(205644,0);e=-1;break a}c=J[a+100>>2];$:{if((c|0)<=0)break $;b=J[J[a+60>>2]+60>>2];if((b|0)<(c|0)){j=c-b|0;J[m>>2]=j;rd(205848,m);while(1){if(!j)break $;d=J[a+60>>2];c=J[d+8>>2];aa:{if(c&7)break aa;b=J[d+64>>2];if(!((b|0)<0|(b|0)>J[d+60>>2])){J[d+8>>2]=c|4;break aa}b=J[d+28>>2];J[d+28>>2]=b-1;j=j-1|0;ba:{if((b|0)<=0){b=td(d,1);break ba}J[d+60>>2]=J[d+60>>2]+1;b=J[d+24>>2];J[d+24>>2]=b+1;b=K[b|0]}if((b|0)!=-1)continue}break}rd(206071,0);e=-1;break a}if((b| +0)<=(c|0))break $;J[m+16>>2]=b-c;rd(206230,m+16|0)}b=J[n+44>>2];j=J[n+40>>2];if(!((b|0)<=0|(j|0)!=(b-1|0))){e=-1;if(wba(a,n))break a;vba(a,n);j=J[n+40>>2]}e=0;J[a+52>>2]=0;J[n+40>>2]=j+1;J[a+84>>2]=8;break a}fa(206828,201400,1597,211757);B()}fa(207006,201400,798,211771);B()}fa(207204,201400,829,211771);B()}fa(207343,201400,901,211771);B()}e=-1;break a}ra();B()}fc=m+2784|0;return e|0}function ULa(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0,M=0;v=J[a+108>>2];if(v)a:{d=J[a+116>>2];x=J[a+104>>2];u=fc-48|0;fc=u;b:{c:{w=OB(J[693464]);if(w){s=ei(w,32,u+40|0,8);d:{e:switch(J[J[693464]+204>>2]){case 0:n=ei(w,10,u+16|0,16);break d;case 1:n=u+16|0;a=ei(w,13,n,16);n=ei(w,10,a+n|0,16-a|0)+a|0;break d;case 2:break e;default:break d}n=ei(w,13,u+16|0,16)}F=ei(w,12,u+8|0,8);G=J[J[693464]+208>>2];f:{g:switch(J[d>>2]){case 0:if(J[d+52>>2])c=VI(d,J[d+204>>2]);t=u+40|0;m=u+16|0;f=uw(d,J[d+204>>2]);i=1;a=J[d+ +204>>2];if(J[a+8>>2]>0){while(1){e=J[J[a>>2]+(b<<2)>>2];if(xl(J[e>>2]))e=1;else e=Lk(J[e>>2])?-1:0;g=e+g|0;b=b+1|0;if((b|0)>2])continue;break}i=(g^-1)>>>31|0;a=J[d+204>>2]}h:{a=BB(d,a);if(!a){No(d,J[d+204>>2],f);break h}g=vc(16);J[699344]=0;e=_(3352,g|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)i:{AB(d,a,e,i);uc(Oo(a));No(d,J[d+204>>2],f);if(J[d+24>>2]){UI(d,f);TI(d,e)}if(c){j:{if(J[c+8>>2]<=0)break j;sd(e,RI(c));a=J[c+8>>2];if((a|0)<=0)break j;b=0;while(1){d=J[J[c>>2]+(b<<2)>>2];if(d){uc(d); +a=J[c+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}uc(ld(c))}c=0;k:{if(J[e+8>>2]<=0)break k;while(1){o=0;C=J[J[e>>2]+(c<<2)>>2];b=J[C>>2];if(J[b+8>>2]>0)while(1){a=0;l:{p=J[J[b>>2]+(o<<2)>>2];b=J[p>>2];r=J[b+8>>2];if((r|0)<=0)break l;while(1){m:{f=J[J[b>>2]+(a<<2)>>2];b=J[f+60>>2];y=J[f+56>>2];g=vc(8);J[699344]=0;d=_(3351,g|0)|0;z=J[699344];J[699344]=0;if((z|0)==1)break m;a=a+1|0;tw(J[f+48>>2],y-((b|0)!=0&(r|0)>(a|0))|0,w,i,d);if(!(J[f+60>>2]|J[J[p>>2]+8>>2]<=(a|0)))kf(d,t,s);kc[x|0](v,J[d+4>>2], +J[d>>2]);uc(Zc(d));b=J[p>>2];r=J[b+8>>2];if((r|0)>(a|0))continue;break l}break}break i}kc[x|0](v,m,n);o=o+1|0;b=J[C>>2];if((o|0)>2])continue;break}kc[x|0](v,m,n);b=J[e+8>>2];c=c+1|0;if((b|0)>(c|0))continue;break}a=0;if((b|0)<=0)break k;while(1){d=J[J[e>>2]+(a<<2)>>2];if(d){uc(yr(d));b=J[e+8>>2]}a=a+1|0;if((b|0)>(a|0))continue;break}}uc(ld(e));break h}a=Z()|0;uc(g);ba(a|0);B()}break f;case 1:case 4:if(J[d+52>>2])o=VI(d,J[d+204>>2]);H=u+40|0;t=u+16|0;g=uw(d,J[d+204>>2]);C=1;a=J[d+204>>2];if(J[a+ +8>>2]>0){while(1){c=J[J[a>>2]+(b<<2)>>2];if(xl(J[c>>2]))c=1;else c=Lk(J[c>>2])?-1:0;i=c+i|0;b=b+1|0;if((b|0)>2])continue;break}C=(i^-1)>>>31|0;a=J[d+204>>2]}n:{a=BB(d,a);if(!a){No(d,J[d+204>>2],g);break n}c=vc(16);J[699344]=0;f=_(3352,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)o:{AB(d,a,f,1);uc(Oo(a));No(d,J[d+204>>2],g);if(J[d+24>>2]){UI(d,g);TI(d,f)}c=d;z=fc-16|0;fc=z;y=OB(J[693464]);if(y){b=J[f+8>>2];if((b|0)>0)while(1){d=J[J[f>>2]+(e<<2)>>2];J[d+48>>2]=0;J[d+52>>2]=0;i=0;r=J[d>>2];m=J[r+ +8>>2];if((m|0)>0){p=0;while(1){g=0;D=J[J[r>>2]+(p<<2)>>2];m=J[D>>2];b=J[m+8>>2];if((b|0)>0){while(1){a=J[J[m>>2]+(g<<2)>>2];p:{if(J[y+8>>2]){i=J[a+56>>2];J[a+68>>2]=i;break p}i=0;J[a+68>>2]=0;if(J[a+56>>2]<=0)break p;b=0;while(1){i=ei(y,J[J[a+48>>2]+(b<<2)>>2],z+8|0,8)+J[a+68>>2]|0;J[a+68>>2]=i;b=b+1|0;if((b|0)>2])continue;break}}q:{r:{h=O[c+8>>3];if(h>0){h=(O[a+8>>3]-O[d+8>>3])/h;if(!(R(h)<2147483648))break r;b=~~h;break q}h=O[a+40>>3];b=0;if(R(h)<.001)break q;h=(O[a+8>>3]-O[d+8>>3])/(h* +.33);if(!(R(h)<2147483648))break r;b=~~h;break q}b=-2147483648}J[a+64>>2]=b;a=b+i|0;if((a|0)>J[d+48>>2])J[d+48>>2]=a;m=J[D>>2];b=J[m+8>>2];g=g+1|0;if((b|0)>(g|0))continue;break}r=J[d>>2];i=J[d+52>>2]}i=b+i|0;J[d+52>>2]=i;m=J[r+8>>2];p=p+1|0;if((m|0)>(p|0))continue;break}b=J[f+8>>2]}J[d+52>>2]=(i+m|0)-1;e=e+1|0;if((e|0)<(b|0))continue;break}Mo(y)}fc=z+16|0;b=0;g=0;a=J[c>>2];d=f;Bl(d,3664);j=(a|0)==4?.05:0;i=J[d+8>>2];s:{if((i|0)<=0)break s;f=J[d>>2];h=O[c+8>>3];if(h==0){while(1){m=J[f+(b<<2)>>2];J[m+ 40>>2]=0;if(b){l=O[m+8>>3];c=0;g=0;while(1){e=J[f+(g<<2)>>2];k=O[e+16>>3];h=k-l;t:{u:{if(h>3])){a=(J[e+40>>2]+J[e+48>>2]|0)+2|0;if((c|0)<(a|0))break u;break t}a=J[e+40>>2];k=O[m+32>>3];q=O[e+32>>3];A=k>3];q=O[e+24>>3];k=A-(k>q?k:q);if(!(!(k>0)|!(h>2]+a|0;if((c|0)<(a|0))break u;break t}if((a|0)<=(c|0))break t}J[m+40>>2]=a;c=a}g=g+1|0;if((g|0)!=(b|0))continue;break}}b=b+1|0;if((i|0)!=(b|0))continue;break}break s}a=0;if((i|0)!=1){e=i&-2;while(1){b=a<<2;m=J[b+ -f>>2];l=O[m+8>>3]/h;v:{if(R(l)<2147483648){c=~~l;break v}c=-2147483648}J[m+40>>2]=c;b=J[f+(b|4)>>2];l=O[b+8>>3]/h;w:{if(R(l)<2147483648){c=~~l;break w}c=-2147483648}J[b+40>>2]=c;a=a+2|0;g=g+2|0;if((e|0)!=(g|0))continue;break}}if(!(i&1))break s;c=J[f+(a<<2)>>2];h=O[c+8>>3]/h;x:{if(R(h)<2147483648){a=~~h;break x}a=-2147483648}J[c+40>>2]=a}bl(d,3490);p=J[d+8>>2];e=0;y:{if((p|0)<=0)break y;m=J[d>>2];b=0;e=0;while(1){i=J[m+(b<<2)>>2];J[i+44>>2]=0;c=0;if(b){l=O[i+24>>3];g=0;while(1){f=J[m+(g<<2)>>2];k= -O[f+32>>3];h=k-l;z:{A:{if(h>3])){a=J[f+52>>2]+J[f+44>>2]|0;if((a|0)<(c|0))break z;a=a+1|0;break A}a=J[f+44>>2];k=O[i+16>>3];q=O[f+16>>3];A=k>3];q=O[f+8>>3];k=A-(k>q?k:q);if(!(!(k>0)|!(h>2]+a|0;if((c|0)<(a|0))break A;break z}if((a|0)<=(c|0))break z}J[i+44>>2]=a;c=a}g=g+1|0;if((g|0)!=(b|0))continue;break}}a=J[i+52>>2]+c|0;e=(a|0)>(e|0)?a:e;b=b+1|0;if((p|0)!=(b|0))continue;break}}f=vd(e,4);m=vd(e,4);B:{if(!e)break B;c=0;b=0;if(e>>>0>=4){g=e&2147483644;i=0;while(1){a= -b<<2;J[a+f>>2]=0;J[a+m>>2]=0;p=a|4;J[p+f>>2]=0;J[m+p>>2]=0;p=a|8;J[p+f>>2]=0;J[m+p>>2]=0;a=a|12;J[a+f>>2]=0;J[a+m>>2]=0;b=b+4|0;i=i+4|0;if((g|0)!=(i|0))continue;break}}a=e&3;if(!a)break B;while(1){g=b<<2;J[g+f>>2]=0;J[g+m>>2]=0;b=b+1|0;c=c+1|0;if((a|0)!=(c|0))continue;break}}bl(d,3480);C:{b=J[d+8>>2];if((b|0)>0)while(1){r=J[J[d>>2]+(E<<2)>>2];a=J[r>>2];D:{if(J[a+8>>2]<=0)break D;i=J[r+44>>2];if((e|0)<=(i|0))break D;p=0;while(1){g=0;z=J[J[a>>2]+(p<<2)>>2];b=J[z>>2];if(J[b+8>>2]>0){while(1){b=J[J[b>> -2]+(g<<2)>>2];D=i<<2;y=f+D|0;a=J[y>>2];if(!a){c=rc(8);J[695492]=0;a=$(3184,c|0)|0;I=J[695492];J[695492]=0;if((I|0)==1)break C;J[y>>2]=a}c=m+D|0;if(J[c>>2]<(J[b+64>>2]+J[r+40>>2]|0)){while(1){cf(J[y>>2],H,s);a=J[c>>2]+1|0;J[c>>2]=a;if((a|0)<(J[b+64>>2]+J[r+40>>2]|0))continue;break}a=J[y>>2]}Fv(J[b+48>>2],J[b+56>>2],w,C,a);J[c>>2]=J[c>>2]+J[b+68>>2];g=g+1|0;b=J[z>>2];i=i+1|0;if((g|0)>2]&(e|0)>(i|0))continue;break}a=J[r>>2]}p=p+1|0;c=J[a+8>>2];if((p|0)<(c|0)){i=((c|0)>(p|0))+i|0;if((e|0)>(i|0))continue}break}b= -J[d+8>>2]}E=E+1|0;if((E|0)<(b|0))continue;break}if(e){b=0;while(1){c=f+(b<<2)|0;a=J[c>>2];E:{if(!a)break E;gc[x|0](v,J[a+4>>2],J[a>>2]);a=J[c>>2];if(!a)break E;qc(Rc(a))}gc[x|0](v,t,n);b=b+1|0;if((e|0)!=(b|0))continue;break}}Gc(f);Gc(m);a=J[d+8>>2];if((a|0)>0){b=0;while(1){c=J[J[d>>2]+(b<<2)>>2];if(c){qc(Lq(c));a=J[d+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}qc(dd(d));if(o){F:{if(J[o+8>>2]<=0)break F;s=HH(o);gc[x|0](v,t,n);f=J[s>>2];c=J[f+8>>2];if((c|0)>0){e=0;while(1){a=0;G:{g=J[J[f>>2]+(e<<2)>> -2];b=J[g>>2];if(J[b+8>>2]<=0)break G;H:{while(1){b=J[J[b>>2]+(a<<2)>>2];c=rc(8);J[695492]=0;d=$(3184,c|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break H;Fv(J[b+48>>2],J[b+56>>2],w,C,d);cf(d,t,n);gc[x|0](v,J[d+4>>2],J[d>>2]);qc(Rc(d));a=a+1|0;b=J[g>>2];if((a|0)>2])continue;break}c=J[f+8>>2];break G}break o}if((c-1|0)>(e|0)){gc[x|0](v,t,n);c=J[f+8>>2]}e=e+1|0;if((e|0)<(c|0))continue;break}}qc(Lq(s));a=J[o+8>>2];if((a|0)<=0)break F;b=0;while(1){d=J[J[o>>2]+(b<<2)>>2];if(d){qc(d);a=J[o+8>>2]}b= -b+1|0;if((b|0)<(a|0))continue;break}}qc(dd(o))}break n}}break c}break f;case 2:C=u+40|0;m=u+16|0;e=Gv(d,J[d+204>>2]);i=1;a=J[d+204>>2];if(J[a+8>>2]>0){while(1){f=J[J[a>>2]+(b<<2)>>2];if(Zk(J[f>>2]))f=1;else f=ok(J[f>>2])?-1:0;c=f+c|0;b=b+1|0;if((b|0)>2])continue;break}i=(c^-1)>>>31|0;a=J[d+204>>2]}I:{a=CA(d,a);if(!a){Un(d,J[d+204>>2],e);break I}b=rc(16);J[695492]=0;f=$(3185,b|0)|0;c=J[695492];J[695492]=0;J:{if((c|0)!=1)K:{cY(d,a,f);qc(Vn(a));Un(d,J[d+204>>2],e);b=0;r=bc-16|0;bc=r;a=rc(16); -J[695492]=0;o=$(3185,a|0)|0;d=J[695492];J[695492]=0;L:{if((d|0)!=1){if(J[f+8>>2]>0)while(1){KI(o,J[J[J[f>>2]+(b<<2)>>2]>>2]);b=b+1|0;if((b|0)>2])continue;break}bl(o,3491);if(J[o+8>>2]>0){j=O[J[J[o>>2]>>2]+8>>3];b=0;while(1){d=J[J[o>>2]+(b<<2)>>2];M:{if(J[w+8>>2]){J[d+68>>2]=J[d+56>>2];break M}J[d+68>>2]=0;if(J[d+56>>2]<=0)break M;a=0;while(1){L=d,M=Rh(w,J[J[d+48>>2]+(a<<2)>>2],r+8|0,8)+J[d+68>>2]|0,J[L+68>>2]=M;a=a+1|0;if((a|0)>2])continue;break}}N:{if(!b){l=O[d+8>>3];a=0;h=j;break N}l= +f>>2];l=O[m+8>>3]/h;v:{if(R(l)<2147483648){c=~~l;break v}c=-2147483648}J[m+40>>2]=c;b=J[f+(b|4)>>2];l=O[b+8>>3]/h;w:{if(R(l)<2147483648){c=~~l;break w}c=-2147483648}J[b+40>>2]=c;a=a+2|0;g=g+2|0;if((e|0)!=(g|0))continue;break}}if(!(i&1))break s;c=J[f+(a<<2)>>2];h=O[c+8>>3]/h;x:{if(R(h)<2147483648){a=~~h;break x}a=-2147483648}J[c+40>>2]=a}Bl(d,3665);p=J[d+8>>2];e=0;y:{if((p|0)<=0)break y;m=J[d>>2];b=0;e=0;while(1){i=J[m+(b<<2)>>2];J[i+44>>2]=0;c=0;if(b){l=O[i+24>>3];g=0;while(1){f=J[m+(g<<2)>>2];k= +O[f+32>>3];h=k-l;z:{A:{if(h>3])){a=J[f+52>>2]+J[f+44>>2]|0;if((a|0)<(c|0))break z;a=a+1|0;break A}a=J[f+44>>2];k=O[i+16>>3];q=O[f+16>>3];A=k>3];q=O[f+8>>3];k=A-(k>q?k:q);if(!(!(k>0)|!(h>2]+a|0;if((c|0)<(a|0))break A;break z}if((a|0)<=(c|0))break z}J[i+44>>2]=a;c=a}g=g+1|0;if((g|0)!=(b|0))continue;break}}a=J[i+52>>2]+c|0;e=(a|0)>(e|0)?a:e;b=b+1|0;if((p|0)!=(b|0))continue;break}}f=Gd(e,4);m=Gd(e,4);B:{if(!e)break B;c=0;b=0;if(e>>>0>=4){g=e&2147483644;i=0;while(1){a= +b<<2;J[a+f>>2]=0;J[a+m>>2]=0;p=a|4;J[p+f>>2]=0;J[m+p>>2]=0;p=a|8;J[p+f>>2]=0;J[m+p>>2]=0;a=a|12;J[a+f>>2]=0;J[a+m>>2]=0;b=b+4|0;i=i+4|0;if((g|0)!=(i|0))continue;break}}a=e&3;if(!a)break B;while(1){g=b<<2;J[g+f>>2]=0;J[g+m>>2]=0;b=b+1|0;c=c+1|0;if((a|0)!=(c|0))continue;break}}Bl(d,3655);C:{b=J[d+8>>2];if((b|0)>0)while(1){r=J[J[d>>2]+(E<<2)>>2];a=J[r>>2];D:{if(J[a+8>>2]<=0)break D;i=J[r+44>>2];if((e|0)<=(i|0))break D;p=0;while(1){g=0;z=J[J[a>>2]+(p<<2)>>2];b=J[z>>2];if(J[b+8>>2]>0){while(1){b=J[J[b>> +2]+(g<<2)>>2];D=i<<2;y=f+D|0;a=J[y>>2];if(!a){c=vc(8);J[699344]=0;a=_(3351,c|0)|0;I=J[699344];J[699344]=0;if((I|0)==1)break C;J[y>>2]=a}c=m+D|0;if(J[c>>2]<(J[b+64>>2]+J[r+40>>2]|0)){while(1){kf(J[y>>2],H,s);a=J[c>>2]+1|0;J[c>>2]=a;if((a|0)<(J[b+64>>2]+J[r+40>>2]|0))continue;break}a=J[y>>2]}tw(J[b+48>>2],J[b+56>>2],w,C,a);J[c>>2]=J[c>>2]+J[b+68>>2];g=g+1|0;b=J[z>>2];i=i+1|0;if((g|0)>2]&(e|0)>(i|0))continue;break}a=J[r>>2]}p=p+1|0;c=J[a+8>>2];if((p|0)<(c|0)){i=((c|0)>(p|0))+i|0;if((e|0)>(i|0))continue}break}b= +J[d+8>>2]}E=E+1|0;if((E|0)<(b|0))continue;break}if(e){b=0;while(1){c=f+(b<<2)|0;a=J[c>>2];E:{if(!a)break E;kc[x|0](v,J[a+4>>2],J[a>>2]);a=J[c>>2];if(!a)break E;uc(Zc(a))}kc[x|0](v,t,n);b=b+1|0;if((e|0)!=(b|0))continue;break}}Mc(f);Mc(m);a=J[d+8>>2];if((a|0)>0){b=0;while(1){c=J[J[d>>2]+(b<<2)>>2];if(c){uc(yr(c));a=J[d+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}uc(ld(d));if(o){F:{if(J[o+8>>2]<=0)break F;s=RI(o);kc[x|0](v,t,n);f=J[s>>2];c=J[f+8>>2];if((c|0)>0){e=0;while(1){a=0;G:{g=J[J[f>>2]+(e<<2)>> +2];b=J[g>>2];if(J[b+8>>2]<=0)break G;H:{while(1){b=J[J[b>>2]+(a<<2)>>2];c=vc(8);J[699344]=0;d=_(3351,c|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break H;tw(J[b+48>>2],J[b+56>>2],w,C,d);kf(d,t,n);kc[x|0](v,J[d+4>>2],J[d>>2]);uc(Zc(d));a=a+1|0;b=J[g>>2];if((a|0)>2])continue;break}c=J[f+8>>2];break G}break o}if((c-1|0)>(e|0)){kc[x|0](v,t,n);c=J[f+8>>2]}e=e+1|0;if((e|0)<(c|0))continue;break}}uc(yr(s));a=J[o+8>>2];if((a|0)<=0)break F;b=0;while(1){d=J[J[o>>2]+(b<<2)>>2];if(d){uc(d);a=J[o+8>>2]}b= +b+1|0;if((b|0)<(a|0))continue;break}}uc(ld(o))}break n}}break c}break f;case 2:C=u+40|0;m=u+16|0;e=uw(d,J[d+204>>2]);i=1;a=J[d+204>>2];if(J[a+8>>2]>0){while(1){f=J[J[a>>2]+(b<<2)>>2];if(xl(J[f>>2]))f=1;else f=Lk(J[f>>2])?-1:0;c=f+c|0;b=b+1|0;if((b|0)>2])continue;break}i=(c^-1)>>>31|0;a=J[d+204>>2]}I:{a=BB(d,a);if(!a){No(d,J[d+204>>2],e);break I}b=vc(16);J[699344]=0;f=_(3352,b|0)|0;c=J[699344];J[699344]=0;J:{if((c|0)!=1)K:{$Z(d,a,f);uc(Oo(a));No(d,J[d+204>>2],e);b=0;r=fc-16|0;fc=r;a=vc(16); +J[699344]=0;o=_(3352,a|0)|0;d=J[699344];J[699344]=0;L:{if((d|0)!=1){if(J[f+8>>2]>0)while(1){ZJ(o,J[J[J[f>>2]+(b<<2)>>2]>>2]);b=b+1|0;if((b|0)>2])continue;break}Bl(o,3666);if(J[o+8>>2]>0){j=O[J[J[o>>2]>>2]+8>>3];b=0;while(1){d=J[J[o>>2]+(b<<2)>>2];M:{if(J[w+8>>2]){J[d+68>>2]=J[d+56>>2];break M}J[d+68>>2]=0;if(J[d+56>>2]<=0)break M;a=0;while(1){L=d,M=ei(w,J[J[d+48>>2]+(a<<2)>>2],r+8|0,8)+J[d+68>>2]|0,J[L+68>>2]=M;a=a+1|0;if((a|0)>2])continue;break}}N:{if(!b){l=O[d+8>>3];a=0;h=j;break N}l= O[d+8>>3];c=J[o>>2];a=0;h=j;e=0;if((b|0)!=1){y=b&2147483646;p=0;while(1){z=e<<2;t=J[z+c>>2];k=O[t+16>>3];if(k>2]+J[t+64>>2]|0;a=(a|0)<(t|0)?t:a}t=J[c+(z|4)>>2];k=O[t+16>>3];if(k>2]+J[t+64>>2]|0;a=(a|0)<(t|0)?t:a}e=e+2|0;p=p+2|0;if((y|0)!=(p|0))continue;break}}if(!(b&1))break N;c=J[c+(e<<2)>>2];k=O[c+16>>3];if(!(k>2]+J[c+64>>2]|0;a=(a|0)<(c|0)?c:a;h=h>3]*.5)+.5;O:{if(R(l)<2147483648){a=~~l;break O}a=-2147483648}J[d+ -64>>2]=c+((a|0)<=0?h>j?1:a:a);b=b+1|0;if((b|0)>2])continue;break}}qc(dd(o));bc=r+16|0;break L}break b}P:{if(J[f+8>>2]<=0)break P;while(1){e=J[J[f>>2]+(g<<2)>>2];b=rc(8);J[695492]=0;d=$(3184,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break K;b=0;c=0;a=J[e>>2];if(J[a+8>>2]>0)while(1){a=J[J[a>>2]+(c<<2)>>2];if(J[a+64>>2]>(b|0))while(1){cf(d,C,s);b=b+1|0;if((b|0)>2])continue;break}Fv(J[a+48>>2],J[a+56>>2],w,i,d);b=J[a+68>>2]+b|0;c=c+1|0;a=J[e>>2];if((c|0)>2])continue;break}gc[x| -0](v,J[d+4>>2],J[d>>2]);qc(Rc(d));gc[x|0](v,m,n);b=J[f+8>>2];g=g+1|0;if(!((b|0)<=(g|0)|!(O[e+24>>3]>2]+(g<<2)>>2]+8>>3]-O[e+16>>3]))){gc[x|0](v,m,n);b=J[f+8>>2]}if((b|0)>(g|0))continue;break}g=0;if((b|0)<=0)break P;while(1){i=J[J[f>>2]+(g<<2)>>2];if(i){c=0;s=J[i>>2];b=J[s+8>>2];if((b|0)>0)while(1){d=J[J[s>>2]+(c<<2)>>2];if(d){a=0;b=J[d>>2];e=J[b+8>>2];if((e|0)>0)while(1){n=J[J[b>>2]+(a<<2)>>2];if(n){e=J[n+32>>2];J[695492]=0;Gc(e);e=J[695492];J[695492]=0;if((e|0)==1)break J;e=J[n+40>>2];J[695492]= -0;Gc(e);e=J[695492];J[695492]=0;if((e|0)==1)break J;e=J[n+36>>2];J[695492]=0;Gc(e);e=J[695492];J[695492]=0;if((e|0)==1)break J;qc(n);e=J[b+8>>2]}a=a+1|0;if((e|0)>(a|0))continue;break}qc(dd(b));a=J[d+48>>2];J[695492]=0;Gc(a);a=J[695492];J[695492]=0;if((a|0)==1)break J;a=J[d+52>>2];J[695492]=0;Gc(a);a=J[695492];J[695492]=0;if((a|0)==1)break J;qc(d);b=J[s+8>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}qc(dd(s));qc(i);b=J[f+8>>2]}g=g+1|0;if((g|0)<(b|0))continue;break}}qc(dd(f));break I}a=Z()|0;qc(b);ba(a| -0);B()}ea(0)|0;yc();B()}break f;case 3:c=J[d+204>>2];Q:{if(J[c+8>>2]<=0){i=1;break Q}while(1){a=J[J[c>>2]+(m<<2)>>2];if(Zk(J[a>>2]))a=1;else a=ok(J[a>>2])?-1:0;b=a+b|0;m=m+1|0;if((m|0)>2])continue;break}i=(b|0)>=0;c=J[d+204>>2];e=J[c+8>>2];if((e|0)<=0)break Q;h=O[d+120>>3];j=O[d+112>>3];f=J[c>>2];b=0;while(1){R:{S:{T:{U:{a=J[f+(b<<2)>>2];switch(K[a+88|0]-1|0){case 2:break S;case 1:break T;case 0:break U;default:break R}}l=O[a+32>>3];O[a+32>>3]=O[a+40>>3];k=O[a+16>>3];O[a+16>>3]=O[a+24>>3]; -O[a+40>>3]=j-k;O[a+24>>3]=j-l;break R}l=O[a+32>>3];O[a+32>>3]=j-O[a+16>>3];O[a+16>>3]=j-l;l=O[a+40>>3];O[a+40>>3]=h-O[a+24>>3];O[a+24>>3]=h-l;break R}l=O[a+40>>3];O[a+40>>3]=O[a+32>>3];k=O[a+24>>3];O[a+24>>3]=O[a+16>>3];O[a+32>>3]=h-k;O[a+16>>3]=h-l}b=b+1|0;if((e|0)!=(b|0))continue;break}}e=bY(d,c);a=J[d+204>>2];c=J[a+8>>2];if((c|0)>0){h=O[d+120>>3];j=O[d+112>>3];f=J[a>>2];b=0;while(1){V:{W:{X:{Y:{a=J[f+(b<<2)>>2];switch(K[a+88|0]-1|0){case 2:break W;case 1:break X;case 0:break Y;default:break V}}l= -O[a+40>>3];O[a+40>>3]=O[a+32>>3];k=O[a+24>>3];O[a+24>>3]=O[a+16>>3];O[a+32>>3]=j-k;O[a+16>>3]=j-l;break V}l=O[a+32>>3];O[a+32>>3]=j-O[a+16>>3];O[a+16>>3]=j-l;l=O[a+40>>3];O[a+40>>3]=h-O[a+24>>3];O[a+24>>3]=h-l;break V}l=O[a+32>>3];O[a+32>>3]=O[a+40>>3];k=O[a+16>>3];O[a+16>>3]=O[a+24>>3];O[a+40>>3]=h-k;O[a+24>>3]=h-l}b=b+1|0;if((c|0)!=(b|0))continue;break}}f=u+16|0;aY(d,e);m=J[e+8>>2];Z:{if((m|0)<=0)break Z;while(1){o=0;s=J[J[e>>2]+(g<<2)>>2];c=J[s>>2];if(J[c+8>>2]>0){while(1){b=0;p=J[J[c>>2]+(o<< -2)>>2];m=J[p>>2];if(J[m+8>>2]>0){while(1){d=J[J[m>>2]+(b<<2)>>2];c=rc(8);J[695492]=0;a=$(3184,c|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break c;Fv(J[d+48>>2],J[d+56>>2],w,i,a);gc[x|0](v,J[a+4>>2],J[a>>2]);qc(Rc(a));gc[x|0](v,f,n);b=b+1|0;m=J[p>>2];if((b|0)>2])continue;break}c=J[s>>2]}o=o+1|0;if((o|0)>2])continue;break}m=J[e+8>>2]}g=g+1|0;if((g|0)<(m|0))continue;break}b=0;if((m|0)<=0)break Z;while(1){a=J[J[e>>2]+(b<<2)>>2];if(a){qc(Lq(a));m=J[e+8>>2]}b=b+1|0;if((m|0)>(b|0))continue; -break}}qc(dd(e));break f;case 5:m=u+40|0;p=u+16|0;f=n;n=0;b=bc-16|0;bc=b;r=Gv(d,J[d+204>>2]);bl(J[d+204>>2],3481);bl(J[d+204>>2],3482);e=J[d+204>>2];h=O[d+8>>3];_:{if(h>0)break _;h=O[d+112>>3];c=J[e+8>>2];if((c|0)<=0)break _;g=J[e>>2];while(1){a=n;n=a+1|0;if((c|0)>(n|0)){i=J[g+(a<<2)>>2];j=O[i+40>>3];l=O[i+24>>3];k=j-l;l=k*0+l;k=k*-.35+j;a=n;while(1){o=J[g+(a<<2)>>2];j=O[o+40>>3];q=O[o+24>>3];A=j-q;if(!(!(k>A*0+q)|!(l>3]-O[i+16>>3]);h=j>.01?h>j?j:h:h}a=a+1|0;if((c|0)!=(a|0))continue; +64>>2]=c+((a|0)<=0?h>j?1:a:a);b=b+1|0;if((b|0)>2])continue;break}}uc(ld(o));fc=r+16|0;break L}break b}P:{if(J[f+8>>2]<=0)break P;while(1){e=J[J[f>>2]+(g<<2)>>2];b=vc(8);J[699344]=0;d=_(3351,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break K;b=0;c=0;a=J[e>>2];if(J[a+8>>2]>0)while(1){a=J[J[a>>2]+(c<<2)>>2];if(J[a+64>>2]>(b|0))while(1){kf(d,C,s);b=b+1|0;if((b|0)>2])continue;break}tw(J[a+48>>2],J[a+56>>2],w,i,d);b=J[a+68>>2]+b|0;c=c+1|0;a=J[e>>2];if((c|0)>2])continue;break}kc[x| +0](v,J[d+4>>2],J[d>>2]);uc(Zc(d));kc[x|0](v,m,n);b=J[f+8>>2];g=g+1|0;if(!((b|0)<=(g|0)|!(O[e+24>>3]>2]+(g<<2)>>2]+8>>3]-O[e+16>>3]))){kc[x|0](v,m,n);b=J[f+8>>2]}if((b|0)>(g|0))continue;break}g=0;if((b|0)<=0)break P;while(1){i=J[J[f>>2]+(g<<2)>>2];if(i){c=0;s=J[i>>2];b=J[s+8>>2];if((b|0)>0)while(1){d=J[J[s>>2]+(c<<2)>>2];if(d){a=0;b=J[d>>2];e=J[b+8>>2];if((e|0)>0)while(1){n=J[J[b>>2]+(a<<2)>>2];if(n){e=J[n+32>>2];J[699344]=0;Mc(e);e=J[699344];J[699344]=0;if((e|0)==1)break J;e=J[n+40>>2];J[699344]= +0;Mc(e);e=J[699344];J[699344]=0;if((e|0)==1)break J;e=J[n+36>>2];J[699344]=0;Mc(e);e=J[699344];J[699344]=0;if((e|0)==1)break J;uc(n);e=J[b+8>>2]}a=a+1|0;if((e|0)>(a|0))continue;break}uc(ld(b));a=J[d+48>>2];J[699344]=0;Mc(a);a=J[699344];J[699344]=0;if((a|0)==1)break J;a=J[d+52>>2];J[699344]=0;Mc(a);a=J[699344];J[699344]=0;if((a|0)==1)break J;uc(d);b=J[s+8>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}uc(ld(s));uc(i);b=J[f+8>>2]}g=g+1|0;if((g|0)<(b|0))continue;break}}uc(ld(f));break I}a=Z()|0;uc(b);ba(a| +0);B()}ea(0)|0;Bc();B()}break f;case 3:c=J[d+204>>2];Q:{if(J[c+8>>2]<=0){i=1;break Q}while(1){a=J[J[c>>2]+(m<<2)>>2];if(xl(J[a>>2]))a=1;else a=Lk(J[a>>2])?-1:0;b=a+b|0;m=m+1|0;if((m|0)>2])continue;break}i=(b|0)>=0;c=J[d+204>>2];e=J[c+8>>2];if((e|0)<=0)break Q;h=O[d+120>>3];j=O[d+112>>3];f=J[c>>2];b=0;while(1){R:{S:{T:{U:{a=J[f+(b<<2)>>2];switch(K[a+88|0]-1|0){case 2:break S;case 1:break T;case 0:break U;default:break R}}l=O[a+32>>3];O[a+32>>3]=O[a+40>>3];k=O[a+16>>3];O[a+16>>3]=O[a+24>>3]; +O[a+40>>3]=j-k;O[a+24>>3]=j-l;break R}l=O[a+32>>3];O[a+32>>3]=j-O[a+16>>3];O[a+16>>3]=j-l;l=O[a+40>>3];O[a+40>>3]=h-O[a+24>>3];O[a+24>>3]=h-l;break R}l=O[a+40>>3];O[a+40>>3]=O[a+32>>3];k=O[a+24>>3];O[a+24>>3]=O[a+16>>3];O[a+32>>3]=h-k;O[a+16>>3]=h-l}b=b+1|0;if((e|0)!=(b|0))continue;break}}e=_Z(d,c);a=J[d+204>>2];c=J[a+8>>2];if((c|0)>0){h=O[d+120>>3];j=O[d+112>>3];f=J[a>>2];b=0;while(1){V:{W:{X:{Y:{a=J[f+(b<<2)>>2];switch(K[a+88|0]-1|0){case 2:break W;case 1:break X;case 0:break Y;default:break V}}l= +O[a+40>>3];O[a+40>>3]=O[a+32>>3];k=O[a+24>>3];O[a+24>>3]=O[a+16>>3];O[a+32>>3]=j-k;O[a+16>>3]=j-l;break V}l=O[a+32>>3];O[a+32>>3]=j-O[a+16>>3];O[a+16>>3]=j-l;l=O[a+40>>3];O[a+40>>3]=h-O[a+24>>3];O[a+24>>3]=h-l;break V}l=O[a+32>>3];O[a+32>>3]=O[a+40>>3];k=O[a+16>>3];O[a+16>>3]=O[a+24>>3];O[a+40>>3]=h-k;O[a+24>>3]=h-l}b=b+1|0;if((c|0)!=(b|0))continue;break}}f=u+16|0;ZZ(d,e);m=J[e+8>>2];Z:{if((m|0)<=0)break Z;while(1){o=0;s=J[J[e>>2]+(g<<2)>>2];c=J[s>>2];if(J[c+8>>2]>0){while(1){b=0;p=J[J[c>>2]+(o<< +2)>>2];m=J[p>>2];if(J[m+8>>2]>0){while(1){d=J[J[m>>2]+(b<<2)>>2];c=vc(8);J[699344]=0;a=_(3351,c|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break c;tw(J[d+48>>2],J[d+56>>2],w,i,a);kc[x|0](v,J[a+4>>2],J[a>>2]);uc(Zc(a));kc[x|0](v,f,n);b=b+1|0;m=J[p>>2];if((b|0)>2])continue;break}c=J[s>>2]}o=o+1|0;if((o|0)>2])continue;break}m=J[e+8>>2]}g=g+1|0;if((g|0)<(m|0))continue;break}b=0;if((m|0)<=0)break Z;while(1){a=J[J[e>>2]+(b<<2)>>2];if(a){uc(yr(a));m=J[e+8>>2]}b=b+1|0;if((m|0)>(b|0))continue; +break}}uc(ld(e));break f;case 5:m=u+40|0;p=u+16|0;f=n;n=0;b=fc-16|0;fc=b;r=uw(d,J[d+204>>2]);Bl(J[d+204>>2],3656);Bl(J[d+204>>2],3657);e=J[d+204>>2];h=O[d+8>>3];_:{if(h>0)break _;h=O[d+112>>3];c=J[e+8>>2];if((c|0)<=0)break _;g=J[e>>2];while(1){a=n;n=a+1|0;if((c|0)>(n|0)){i=J[g+(a<<2)>>2];j=O[i+40>>3];l=O[i+24>>3];k=j-l;l=k*0+l;k=k*-.35+j;a=n;while(1){o=J[g+(a<<2)>>2];j=O[o+40>>3];q=O[o+24>>3];A=j-q;if(!(!(k>A*0+q)|!(l>3]-O[i+16>>3]);h=j>.01?h>j?j:h:h}a=a+1|0;if((c|0)!=(a|0))continue; break}}if((c|0)!=(n|0))continue;break}}$:{aa:{ba:{k=O[d+16>>3];if(k>0){c=J[e+8>>2];break ba}k=O[d+120>>3];c=J[e+8>>2];if((c|0)<=0)break ba;g=J[e>>2];a=0;while(1){n=a+1|0;ca:{if((n|0)>=(c|0)){l=0;a=n;break ca}a=J[g+(a<<2)>>2];j=O[a+40>>3];q=O[a+24>>3];A=(j-q)*-.35+j;l=0;a=n;while(1){n=a<<2;a=a+1|0;n=J[g+n>>2];j=O[n+24>>3];l=A<(O[n+40>>3]-j)*0+j?j-q:l;if(l!=0)break ca;if((a|0)<(c|0))continue;break}}k=l>0?l>2]>> -2]+24>>3];q=l/k+.5;da:{if(R(q)<2147483648){a=~~q;break da}a=-2147483648}l=j+(l-+(a|0)*k)}if(l>3]){q=h*-.5;o=0;while(1){a=rc(16);J[695492]=0;n=$(3185,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;a=J[d+204>>2];ea:{if(J[a+8>>2]<=(o|0))break ea;j=k+l;while(1){a=J[J[a>>2]+(o<<2)>>2];if(!(j>O[a+24>>3]))break ea;id(n,a);o=o+1|0;a=J[d+204>>2];if((o|0)>2])continue;break}}bl(n,3481);if(J[n+8>>2]){j=O[J[J[n>>2]>>2]+16>>3];A=j/h+.5;fa:{if(R(A)<2147483648){a=~~A;break fa}a=-2147483648}j= -q+(j-+(a|0)*h)}else j=0;a=rc(8);J[695492]=0;e=$(3184,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;a=0;if(J[n+8>>2]>0)while(1){c=J[J[n>>2]+(a<<2)>>2];ga:{if(O[c+16>>3]>2],g,8);cf(e,g,c);a=a+1|0;break ga}cf(e,m,s);c=s}j=+((J[w+8>>2]?1:c)|0)*h+j;if(J[n+8>>2]>(a|0))continue;break}cf(e,p,f);gc[x|0](v,J[e+4>>2],J[e>>2]);qc(Rc(e));qc(dd(n));l=k+l;if(l>3])continue;break}e=J[d+204>>2]}Un(d,e,r);bc=b+16|0;break f;case 6:break g;default:break f}b=u+40|0;f=u+16|0;g=bc- -16|0;bc=g;c=rc(8);J[695492]=0;a=$(3184,c|0)|0;e=J[695492];J[695492]=0;ha:{if((e|0)!=1){c=J[d+204>>2];if(J[c+8>>2]>0)while(1){e=g+8|0;c=J[J[c>>2]+(o<<2)>>2];cf(a,e,Rh(w,J[c>>2],e,8));o=o+1|0;e=J[d+204>>2];ia:{if((o|0)>2]){e=J[J[e>>2]+(o<<2)>>2];i=K[e+88|0];if((i|0)!=K[c+88|0]){cf(a,f,n);break ia}h=O[c+56>>3];j=h*.5;ja:switch(i-1|0){default:ka:{if(!(j>3]-O[c+24>>3]))){j=O[e+16>>3]-O[c+32>>3];if(!(jh*.15|K[c+92|0]))break ia;cf(a,b,s);break ia; -case 0:la:{if(!(j>3]-O[e+32>>3]))){j=O[e+24>>3]-O[c+40>>3];if(!(jh*.15|K[c+92|0]))break ia;cf(a,b,s);break ia;case 1:ma:{if(!(j>3]-O[e+40>>3]))){j=O[c+16>>3]-O[e+32>>3];if(!(jh*.15|K[c+92|0]))break ia;cf(a,b,s);break ia;case 2:break ja}na:{if(!(j>3]-O[c+16>>3]))){j=O[c+24>>3]-O[e+40>>3];if(!(jh*.15|K[c+92|0]))break ia;cf(a,b,s);break ia}cf(a, -f,n)}c=J[a>>2];if((c|0)>=1001){gc[x|0](v,J[a+4>>2],c);Eh(a)}c=J[d+204>>2];if(J[c+8>>2]>(o|0))continue;break}d=J[a>>2];if((d|0)>0)gc[x|0](v,J[a+4>>2],d);qc(Rc(a));bc=g+16|0;break ha}break c}}if(G)gc[x|0](v,u+8|0,F);Tn(w)}bc=u+48|0;break a}a=Z()|0;qc(c);ba(a|0);B()}d=Z()|0;qc(a);ba(d|0);B()}}function FA(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;a:{if(J[a+34092>>2]){b=J[a+34068>>2];if((b|0)!=J[682100])Gc(b);J[a+34068>>2]= -0;b=J[a+34076>>2];if((b|0)!=J[682136])Gc(b);J[a+34076>>2]=0;f=J[a+32792>>2];b:{c:{d:{if((f|0)>=3){b=J[a+32788>>2];break d}while(1){f=-1;b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break c;d=J[a+32792>>2];f=d+8|0;J[a+32792>>2]=f;c=J[a+34108>>2];e=J[a+34104>>2]+1|0;c=e?c:c+1|0;J[a+34104>>2]=e;J[a+34108>>2]=c;b=J[a+32788>>2]|(b&255)<>2]=b;if((d|0)<-5)continue;break}}J[a+32792>>2]=f-3;J[a+32788>>2]=b>>3;f=b&7;if(!(b&1))break b}J[a+34096>>2]=1}e:{f:{g:{if(f>>>0<=1){J[a+34084>>2]= -0;b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break g;J[a+34088>>2]=b&255;b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break g;J[a+34088>>2]=J[a+34088>>2]|b<<8&65280;b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break g;d=J[a+4>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break g;if((L[a+34088>>1]^(d<<8&65280|b&255))!=65535)xc(1,gc[J[J[a>>2]+52>>2]](a)|0,823167,0);J[a+32788>>2]=0;J[a+32792>>2]=0;h=J[a+34108>>2];b=J[a+34104>>2]+4|0;h=b>>>0<4?h+1|0:h;J[a+34104>>2]=b;J[a+34108>> -2]=h;J[a+34092>>2]=0;f=1;break e}h:switch((f>>1)-1|0){case 0:J[a+34084>>2]=1;J[a+34068>>2]=J[682100];J[a+34072>>2]=J[682101];J[a+34076>>2]=J[682136];J[a+34080>>2]=J[682137];J[a+34092>>2]=0;f=1;break e;case 1:break h;default:break g}f=1;J[a+34084>>2]=1;D=bc-80|0;bc=D;i:{j:{e=J[a+32792>>2];k:{if((e|0)>=5){g=J[a+32788>>2];break k}while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break j;b=J[a+32792>>2];e=b+8|0;J[a+32792>>2]=e;c=J[a+34108>>2];g=J[a+34104>>2]+1|0;c=g?c:c+1|0;J[a+34104>>2]= -g;J[a+34108>>2]=c;g=J[a+32788>>2]|(d&255)<>2]=g;if((b|0)<-3)continue;break}}h=e-5|0;J[a+32792>>2]=h;b=g>>5;J[a+32788>>2]=b;if(e>>>0<=9)while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break j;d=J[a+32792>>2];h=d+8|0;J[a+32792>>2]=h;c=J[a+34108>>2];e=J[a+34104>>2]+1|0;c=e?c:c+1|0;J[a+34104>>2]=e;J[a+34108>>2]=c;b=J[a+32788>>2]|(b&255)<>2]=b;if((d|0)<-3)continue;break}e=h-5|0;J[a+32792>>2]=e;k=b>>5;J[a+32788>>2]=k;if(h>>>0<=8)while(1){d=J[a+4>>2];c=gc[J[J[d>>2]+ -28>>2]](d)|0;if((c|0)==-1)break j;d=J[a+32792>>2];e=d+8|0;J[a+32792>>2]=e;h=J[a+34108>>2];i=J[a+34104>>2]+1|0;h=i?h:h+1|0;J[a+34104>>2]=i;J[a+34108>>2]=h;k=J[a+32788>>2]|(c&255)<>2]=k;if((d|0)<-4)continue;break}e=e-4|0;J[a+32792>>2]=e;c=k>>4;J[a+32788>>2]=c;v=b&31;if(v>>>0>29)break j;u=g&31;t=u+257|0;g=0;i=wc(D,0,76);d=(k&15)+3|0;while(1){if((e|0)<=2)while(1){b=J[a+4>>2];h=gc[J[J[b>>2]+28>>2]](b)|0;if((h|0)==-1)break j;b=J[a+32792>>2];e=b+8|0;J[a+32792>>2]=e;c=J[a+34108>>2];k=J[a+34104>> -2]+1|0;c=k?c:c+1|0;J[a+34104>>2]=k;J[a+34108>>2]=c;c=J[a+32788>>2]|(h&255)<>2]=c;if((b|0)<-5)continue;break}e=e-3|0;J[a+32792>>2]=e;b=c>>3;J[a+32788>>2]=b;J[i+(J[(g<<2)+2725776>>2]<<2)>>2]=c&7;h=(d|0)!=(g|0);c=b;g=g+1|0;if(h)continue;break}k=1;b=J[i+72>>2];d=J[i+68>>2];c=J[i+64>>2];e=J[i+60>>2];g=J[i+56>>2];h=J[i+52>>2];j=J[i+48>>2];l=J[i+44>>2];n=J[i+40>>2];r=J[i+36>>2];q=J[i+32>>2];s=J[i+28>>2];w=J[i+24>>2];x=J[i+20>>2];y=J[i+16>>2];z=J[i+12>>2];A=J[i+8>>2];B=J[i+4>>2];C=J[i>>2];C= -(C|0)>0?C:0;B=(B|0)>(C|0)?B:C;A=(A|0)>(B|0)?A:B;z=(z|0)>(A|0)?z:A;y=(y|0)>(z|0)?y:z;x=(x|0)>(y|0)?x:y;w=(w|0)>(x|0)?w:x;s=(s|0)>(w|0)?s:w;q=(q|0)>(s|0)?q:s;r=(q|0)<(r|0)?r:q;n=(n|0)>(r|0)?n:r;l=(l|0)>(n|0)?l:n;j=(j|0)>(l|0)?j:l;h=(h|0)>(j|0)?h:j;g=(g|0)>(h|0)?g:h;e=(e|0)>(g|0)?e:g;c=(c|0)>(e|0)?c:e;d=(d|0)>(c|0)?d:c;l=(b|0)>(d|0)?b:d;n=1<0){j=2;d=0;while(1){s=k&-4;q=k&3;h=0;while(1){if(J[i+(h<<2)>>2]==(k|0)){e=0;b=d;c=0;g=0;if(m>>>0>=3)while(1){c= -b>>>3&1|(b>>>2&1|(b&2|(b<<2&4|c<<3)))<<1;b=b>>4;g=g+4|0;if((s|0)!=(g|0))continue;break}if(q)while(1){c=b&1|c<<1;b=b>>1;e=e+1|0;if((q|0)!=(e|0))continue;break}if((c|0)<(n|0))while(1){b=(c<<2)+r|0;I[b+2>>1]=h;I[b>>1]=k;c=c+j|0;if((n|0)>(c|0))continue;break}d=d+1|0}h=h+1|0;if((h|0)!=19)continue;break}m=m+1|0;j=j<<1;d=d<<1;b=(k|0)!=(l|0);k=k+1|0;if(b)continue;break}}m=a+32796|0;k=-1<>2];l:{if((l|0)<=(e|0))break l;while(1){b=J[a+4>>2];h=gc[J[J[b>>2]+28>> -2]](b)|0;b=J[a+32792>>2];if((h|0)==-1){e=b;break l}e=b+8|0;J[a+32792>>2]=e;c=J[a+34108>>2];j=J[a+34104>>2]+1|0;c=j?c:c+1|0;J[a+34104>>2]=j;J[a+34108>>2]=c;J[a+32788>>2]=J[a+32788>>2]|(h&255)<>2];j=((h&k)<<2)+r|0;c=L[j>>1];if(!c|(c|0)>(e|0))break j;b=e-c|0;J[a+32792>>2]=b;c=h>>c;J[a+32788>>2]=c;m:{n:{o:{p:{q:{e=L[j+2>>1];switch(e-16|0){case 2:break o;case 1:break p;case 0:break q;default:break n}}if((b|0)<=1)while(1){b=J[a+4>>2];c=gc[J[J[b>> +2]+24>>3];q=l/k+.5;da:{if(R(q)<2147483648){a=~~q;break da}a=-2147483648}l=j+(l-+(a|0)*k)}if(l>3]){q=h*-.5;o=0;while(1){a=vc(16);J[699344]=0;n=_(3352,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;a=J[d+204>>2];ea:{if(J[a+8>>2]<=(o|0))break ea;j=k+l;while(1){a=J[J[a>>2]+(o<<2)>>2];if(!(j>O[a+24>>3]))break ea;sd(n,a);o=o+1|0;a=J[d+204>>2];if((o|0)>2])continue;break}}Bl(n,3656);if(J[n+8>>2]){j=O[J[J[n>>2]>>2]+16>>3];A=j/h+.5;fa:{if(R(A)<2147483648){a=~~A;break fa}a=-2147483648}j= +q+(j-+(a|0)*h)}else j=0;a=vc(8);J[699344]=0;e=_(3351,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;a=0;if(J[n+8>>2]>0)while(1){c=J[J[n>>2]+(a<<2)>>2];ga:{if(O[c+16>>3]>2],g,8);kf(e,g,c);a=a+1|0;break ga}kf(e,m,s);c=s}j=+((J[w+8>>2]?1:c)|0)*h+j;if(J[n+8>>2]>(a|0))continue;break}kf(e,p,f);kc[x|0](v,J[e+4>>2],J[e>>2]);uc(Zc(e));uc(ld(n));l=k+l;if(l>3])continue;break}e=J[d+204>>2]}No(d,e,r);fc=b+16|0;break f;case 6:break g;default:break f}b=u+40|0;f=u+16|0;g=fc- +16|0;fc=g;c=vc(8);J[699344]=0;a=_(3351,c|0)|0;e=J[699344];J[699344]=0;ha:{if((e|0)!=1){c=J[d+204>>2];if(J[c+8>>2]>0)while(1){e=g+8|0;c=J[J[c>>2]+(o<<2)>>2];kf(a,e,ei(w,J[c>>2],e,8));o=o+1|0;e=J[d+204>>2];ia:{if((o|0)>2]){e=J[J[e>>2]+(o<<2)>>2];i=K[e+88|0];if((i|0)!=K[c+88|0]){kf(a,f,n);break ia}h=O[c+56>>3];j=h*.5;ja:switch(i-1|0){default:ka:{if(!(j>3]-O[c+24>>3]))){j=O[e+16>>3]-O[c+32>>3];if(!(jh*.15|K[c+92|0]))break ia;kf(a,b,s);break ia; +case 0:la:{if(!(j>3]-O[e+32>>3]))){j=O[e+24>>3]-O[c+40>>3];if(!(jh*.15|K[c+92|0]))break ia;kf(a,b,s);break ia;case 1:ma:{if(!(j>3]-O[e+40>>3]))){j=O[c+16>>3]-O[e+32>>3];if(!(jh*.15|K[c+92|0]))break ia;kf(a,b,s);break ia;case 2:break ja}na:{if(!(j>3]-O[c+16>>3]))){j=O[c+24>>3]-O[e+40>>3];if(!(jh*.15|K[c+92|0]))break ia;kf(a,b,s);break ia}kf(a, +f,n)}c=J[a>>2];if((c|0)>=1001){kc[x|0](v,J[a+4>>2],c);Rh(a)}c=J[d+204>>2];if(J[c+8>>2]>(o|0))continue;break}d=J[a>>2];if((d|0)>0)kc[x|0](v,J[a+4>>2],d);uc(Zc(a));fc=g+16|0;break ha}break c}}if(G)kc[x|0](v,u+8|0,F);Mo(w)}fc=u+48|0;break a}a=Z()|0;uc(c);ba(a|0);B()}d=Z()|0;uc(a);ba(d|0);B()}}function EB(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;a:{if(J[a+34092>>2]){b=J[a+34068>>2];if((b|0)!=J[685848])Mc(b);J[a+34068>>2]= +0;b=J[a+34076>>2];if((b|0)!=J[685884])Mc(b);J[a+34076>>2]=0;f=J[a+32792>>2];b:{c:{d:{if((f|0)>=3){b=J[a+32788>>2];break d}while(1){f=-1;b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break c;d=J[a+32792>>2];f=d+8|0;J[a+32792>>2]=f;c=J[a+34108>>2];e=J[a+34104>>2]+1|0;c=e?c:c+1|0;J[a+34104>>2]=e;J[a+34108>>2]=c;b=J[a+32788>>2]|(b&255)<>2]=b;if((d|0)<-5)continue;break}}J[a+32792>>2]=f-3;J[a+32788>>2]=b>>3;f=b&7;if(!(b&1))break b}J[a+34096>>2]=1}e:{f:{g:{if(f>>>0<=1){J[a+34084>>2]= +0;b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break g;J[a+34088>>2]=b&255;b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break g;J[a+34088>>2]=J[a+34088>>2]|b<<8&65280;b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break g;d=J[a+4>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break g;if((L[a+34088>>1]^(d<<8&65280|b&255))!=65535)Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,833241,0);J[a+32788>>2]=0;J[a+32792>>2]=0;h=J[a+34108>>2];b=J[a+34104>>2]+4|0;h=b>>>0<4?h+1|0:h;J[a+34104>>2]=b;J[a+34108>> +2]=h;J[a+34092>>2]=0;f=1;break e}h:switch((f>>1)-1|0){case 0:J[a+34084>>2]=1;J[a+34068>>2]=J[685848];J[a+34072>>2]=J[685849];J[a+34076>>2]=J[685884];J[a+34080>>2]=J[685885];J[a+34092>>2]=0;f=1;break e;case 1:break h;default:break g}f=1;J[a+34084>>2]=1;D=fc-80|0;fc=D;i:{j:{e=J[a+32792>>2];k:{if((e|0)>=5){g=J[a+32788>>2];break k}while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break j;b=J[a+32792>>2];e=b+8|0;J[a+32792>>2]=e;c=J[a+34108>>2];g=J[a+34104>>2]+1|0;c=g?c:c+1|0;J[a+34104>>2]= +g;J[a+34108>>2]=c;g=J[a+32788>>2]|(d&255)<>2]=g;if((b|0)<-3)continue;break}}h=e-5|0;J[a+32792>>2]=h;b=g>>5;J[a+32788>>2]=b;if(e>>>0<=9)while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break j;d=J[a+32792>>2];h=d+8|0;J[a+32792>>2]=h;c=J[a+34108>>2];e=J[a+34104>>2]+1|0;c=e?c:c+1|0;J[a+34104>>2]=e;J[a+34108>>2]=c;b=J[a+32788>>2]|(b&255)<>2]=b;if((d|0)<-3)continue;break}e=h-5|0;J[a+32792>>2]=e;k=b>>5;J[a+32788>>2]=k;if(h>>>0<=8)while(1){d=J[a+4>>2];c=kc[J[J[d>>2]+ +28>>2]](d)|0;if((c|0)==-1)break j;d=J[a+32792>>2];e=d+8|0;J[a+32792>>2]=e;h=J[a+34108>>2];i=J[a+34104>>2]+1|0;h=i?h:h+1|0;J[a+34104>>2]=i;J[a+34108>>2]=h;k=J[a+32788>>2]|(c&255)<>2]=k;if((d|0)<-4)continue;break}e=e-4|0;J[a+32792>>2]=e;c=k>>4;J[a+32788>>2]=c;v=b&31;if(v>>>0>29)break j;u=g&31;t=u+257|0;g=0;i=Ac(D,0,76);d=(k&15)+3|0;while(1){if((e|0)<=2)while(1){b=J[a+4>>2];h=kc[J[J[b>>2]+28>>2]](b)|0;if((h|0)==-1)break j;b=J[a+32792>>2];e=b+8|0;J[a+32792>>2]=e;c=J[a+34108>>2];k=J[a+34104>> +2]+1|0;c=k?c:c+1|0;J[a+34104>>2]=k;J[a+34108>>2]=c;c=J[a+32788>>2]|(h&255)<>2]=c;if((b|0)<-5)continue;break}e=e-3|0;J[a+32792>>2]=e;b=c>>3;J[a+32788>>2]=b;J[i+(J[(g<<2)+2740768>>2]<<2)>>2]=c&7;h=(d|0)!=(g|0);c=b;g=g+1|0;if(h)continue;break}k=1;b=J[i+72>>2];d=J[i+68>>2];c=J[i+64>>2];e=J[i+60>>2];g=J[i+56>>2];h=J[i+52>>2];j=J[i+48>>2];l=J[i+44>>2];n=J[i+40>>2];r=J[i+36>>2];q=J[i+32>>2];s=J[i+28>>2];w=J[i+24>>2];x=J[i+20>>2];y=J[i+16>>2];z=J[i+12>>2];A=J[i+8>>2];B=J[i+4>>2];C=J[i>>2];C= +(C|0)>0?C:0;B=(B|0)>(C|0)?B:C;A=(A|0)>(B|0)?A:B;z=(z|0)>(A|0)?z:A;y=(y|0)>(z|0)?y:z;x=(x|0)>(y|0)?x:y;w=(w|0)>(x|0)?w:x;s=(s|0)>(w|0)?s:w;q=(q|0)>(s|0)?q:s;r=(q|0)<(r|0)?r:q;n=(n|0)>(r|0)?n:r;l=(l|0)>(n|0)?l:n;j=(j|0)>(l|0)?j:l;h=(h|0)>(j|0)?h:j;g=(g|0)>(h|0)?g:h;e=(e|0)>(g|0)?e:g;c=(c|0)>(e|0)?c:e;d=(d|0)>(c|0)?d:c;l=(b|0)>(d|0)?b:d;n=1<0){j=2;d=0;while(1){s=k&-4;q=k&3;h=0;while(1){if(J[i+(h<<2)>>2]==(k|0)){e=0;b=d;c=0;g=0;if(m>>>0>=3)while(1){c= +b>>>3&1|(b>>>2&1|(b&2|(b<<2&4|c<<3)))<<1;b=b>>4;g=g+4|0;if((s|0)!=(g|0))continue;break}if(q)while(1){c=b&1|c<<1;b=b>>1;e=e+1|0;if((q|0)!=(e|0))continue;break}if((c|0)<(n|0))while(1){b=(c<<2)+r|0;I[b+2>>1]=h;I[b>>1]=k;c=c+j|0;if((n|0)>(c|0))continue;break}d=d+1|0}h=h+1|0;if((h|0)!=19)continue;break}m=m+1|0;j=j<<1;d=d<<1;b=(k|0)!=(l|0);k=k+1|0;if(b)continue;break}}m=a+32796|0;k=-1<>2];l:{if((l|0)<=(e|0))break l;while(1){b=J[a+4>>2];h=kc[J[J[b>>2]+28>> +2]](b)|0;b=J[a+32792>>2];if((h|0)==-1){e=b;break l}e=b+8|0;J[a+32792>>2]=e;c=J[a+34108>>2];j=J[a+34104>>2]+1|0;c=j?c:c+1|0;J[a+34104>>2]=j;J[a+34108>>2]=c;J[a+32788>>2]=J[a+32788>>2]|(h&255)<>2];j=((h&k)<<2)+r|0;c=L[j>>1];if(!c|(c|0)>(e|0))break j;b=e-c|0;J[a+32792>>2]=b;c=h>>c;J[a+32788>>2]=c;m:{n:{o:{p:{q:{e=L[j+2>>1];switch(e-16|0){case 2:break o;case 1:break p;case 0:break q;default:break n}}if((b|0)<=1)while(1){b=J[a+4>>2];c=kc[J[J[b>> 2]+28>>2]](b)|0;if((c|0)==-1)break j;e=J[a+32792>>2];b=e+8|0;J[a+32792>>2]=b;h=J[a+34108>>2];j=J[a+34104>>2]+1|0;h=j?h:h+1|0;J[a+34104>>2]=j;J[a+34108>>2]=h;c=J[a+32788>>2]|(c&255)<>2]=c;if((e|0)<-6)continue;break}J[a+32792>>2]=b-2;J[a+32788>>2]=c>>2;c=c&3;if((d|0)<((c+g|0)+3|0))break j;b=(g<<2)+a|0;J[b+32800>>2]=i;J[b+32796>>2]=i;J[b+32804>>2]=i;b=g+3|0;if(!c)break m;J[((b<<2)+a|0)+32796>>2]=i;b=g+4|0;if((c|0)==1)break m;J[((b<<2)+a|0)+32796>>2]=i;b=g+5|0;if(c-3>>>0>4294967293)break m; -J[((b<<2)+a|0)+32796>>2]=i;b=g+6|0;break m}if((b|0)<=2)while(1){b=J[a+4>>2];i=gc[J[J[b>>2]+28>>2]](b)|0;if((i|0)==-1)break j;e=J[a+32792>>2];b=e+8|0;J[a+32792>>2]=b;c=J[a+34108>>2];h=J[a+34104>>2]+1|0;c=h?c:c+1|0;J[a+34104>>2]=h;J[a+34108>>2]=c;c=J[a+32788>>2]|(i&255)<>2]=c;if((e|0)<-5)continue;break}J[a+32792>>2]=b-3;J[a+32788>>2]=c>>3;c=c&7;b=(c+g|0)+3|0;if((b|0)>(d|0))break j;i=0;wc(m+(g<<2)|0,0,(c<<2)+12|0);break m}if((b|0)<=6)while(1){b=J[a+4>>2];i=gc[J[J[b>>2]+28>>2]](b)|0;if((i| -0)==-1)break j;e=J[a+32792>>2];b=e+8|0;J[a+32792>>2]=b;c=J[a+34108>>2];h=J[a+34104>>2]+1|0;c=h?c:c+1|0;J[a+34104>>2]=h;J[a+34108>>2]=c;c=J[a+32788>>2]|(i&255)<>2]=c;if((e|0)<-1)continue;break}J[a+32792>>2]=b-7;J[a+32788>>2]=c>>7;c=c&127;b=(c+g|0)+11|0;if((b|0)>(d|0))break j;i=0;wc(m+(g<<2)|0,0,(c<<2)+44|0);break m}J[((g<<2)+a|0)+32796>>2]=e;i=e;b=g+1|0}g=b;if((d|0)>(b|0))continue;break}b=0;J[a+34072>>2]=0;h=t&316;i=t&3;c=0;g=0;while(1){e=c<<2;d=J[e+m>>2];if((d|0)>(b|0)){J[a+34072>>2]= -d;b=d}d=J[m+(e|4)>>2];if((d|0)>(b|0)){J[a+34072>>2]=d;b=d}d=J[m+(e|8)>>2];if((d|0)>(b|0)){J[a+34072>>2]=d;b=d}d=J[m+(e|12)>>2];if((d|0)>(b|0)){J[a+34072>>2]=d;b=d}c=c+4|0;g=g+4|0;if((h|0)!=(g|0))continue;break}if(i){e=0;while(1){d=J[m+(c<<2)>>2];if((d|0)>(b|0)){J[a+34072>>2]=d;b=d}c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}k=1;i=1<>2]=n;if((b|0)!=31)wc(n,0,((i|0)<=1?1:i)<<2);u=J[a+34072>>2];if((u|0)>0){j=2;l=0;d=0;while(1){s=k&-4;q=k&3;h=0;while(1){if(J[m+(h<<2)>>2]==(k| +J[((b<<2)+a|0)+32796>>2]=i;b=g+6|0;break m}if((b|0)<=2)while(1){b=J[a+4>>2];i=kc[J[J[b>>2]+28>>2]](b)|0;if((i|0)==-1)break j;e=J[a+32792>>2];b=e+8|0;J[a+32792>>2]=b;c=J[a+34108>>2];h=J[a+34104>>2]+1|0;c=h?c:c+1|0;J[a+34104>>2]=h;J[a+34108>>2]=c;c=J[a+32788>>2]|(i&255)<>2]=c;if((e|0)<-5)continue;break}J[a+32792>>2]=b-3;J[a+32788>>2]=c>>3;c=c&7;b=(c+g|0)+3|0;if((b|0)>(d|0))break j;i=0;Ac(m+(g<<2)|0,0,(c<<2)+12|0);break m}if((b|0)<=6)while(1){b=J[a+4>>2];i=kc[J[J[b>>2]+28>>2]](b)|0;if((i| +0)==-1)break j;e=J[a+32792>>2];b=e+8|0;J[a+32792>>2]=b;c=J[a+34108>>2];h=J[a+34104>>2]+1|0;c=h?c:c+1|0;J[a+34104>>2]=h;J[a+34108>>2]=c;c=J[a+32788>>2]|(i&255)<>2]=c;if((e|0)<-1)continue;break}J[a+32792>>2]=b-7;J[a+32788>>2]=c>>7;c=c&127;b=(c+g|0)+11|0;if((b|0)>(d|0))break j;i=0;Ac(m+(g<<2)|0,0,(c<<2)+44|0);break m}J[((g<<2)+a|0)+32796>>2]=e;i=e;b=g+1|0}g=b;if((d|0)>(b|0))continue;break}b=0;J[a+34072>>2]=0;h=t&316;i=t&3;c=0;g=0;while(1){e=c<<2;d=J[e+m>>2];if((d|0)>(b|0)){J[a+34072>>2]= +d;b=d}d=J[m+(e|4)>>2];if((d|0)>(b|0)){J[a+34072>>2]=d;b=d}d=J[m+(e|8)>>2];if((d|0)>(b|0)){J[a+34072>>2]=d;b=d}d=J[m+(e|12)>>2];if((d|0)>(b|0)){J[a+34072>>2]=d;b=d}c=c+4|0;g=g+4|0;if((h|0)!=(g|0))continue;break}if(i){e=0;while(1){d=J[m+(c<<2)>>2];if((d|0)>(b|0)){J[a+34072>>2]=d;b=d}c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}k=1;i=1<>2]=n;if((b|0)!=31)Ac(n,0,((i|0)<=1?1:i)<<2);u=J[a+34072>>2];if((u|0)>0){j=2;l=0;d=0;while(1){s=k&-4;q=k&3;h=0;while(1){if(J[m+(h<<2)>>2]==(k| 0)){e=0;b=d;c=0;g=0;if(l>>>0>=3)while(1){c=b>>>3&1|(b>>>2&1|(b&2|(b<<2&4|c<<3)))<<1;b=b>>4;g=g+4|0;if((s|0)!=(g|0))continue;break}if(q)while(1){c=b&1|c<<1;b=b>>1;e=e+1|0;if((q|0)!=(e|0))continue;break}if((c|0)<(i|0))while(1){b=n+(c<<2)|0;I[b+2>>1]=h;I[b>>1]=k;c=c+j|0;if((i|0)>(c|0))continue;break}d=d+1|0}h=h+1|0;if((t|0)!=(h|0))continue;break}l=l+1|0;j=j<<1;d=d<<1;b=(k|0)!=(u|0);k=k+1|0;if(b)continue;break}}g=0;J[a+34080>>2]=0;d=v+1|0;i=d&3;k=m+(t<<2)|0;b=0;c=0;if(v>>>0>=3){j=d&60;h=0;while(1){e= -c<<2;d=J[e+k>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}d=J[k+(e|4)>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}d=J[k+(e|8)>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}d=J[k+(e|12)>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}c=c+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}if(i)while(1){d=J[k+(c<<2)>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}c=c+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}h=1;l=1<>2]=t;if((b|0)!=31)wc(t,0,((l|0)<=1?1:l)<<2);q=J[a+34080>>2];if((q|0)<=0)break i;i=2;m=0;d=0;while(1){u= -h&-4;n=h&3;j=0;while(1){if(J[k+(j<<2)>>2]==(h|0)){e=0;b=d;c=0;g=0;if(m>>>0>=3)while(1){c=b>>>3&1|(b>>>2&1|(b&2|(b<<2&4|c<<3)))<<1;b=b>>4;g=g+4|0;if((u|0)!=(g|0))continue;break}if(n)while(1){c=b&1|c<<1;b=b>>1;e=e+1|0;if((n|0)!=(e|0))continue;break}if((c|0)<(l|0))while(1){b=t+(c<<2)|0;I[b+2>>1]=j;I[b>>1]=h;c=c+i|0;if((l|0)>(c|0))continue;break}d=d+1|0}b=(j|0)==(v|0);j=j+1|0;if(!b)continue;break}m=m+1|0;i=i<<1;d=d<<1;b=(h|0)==(q|0);h=h+1|0;if(!b)continue;break}h=1;break i}h=0;xc(1,gc[J[J[a>>2]+52>>2]](a)| -0,823647,0)}Gc(r);bc=D+80|0;b=0;if(h)break f}f=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,823311,0);J[a+34096>>2]=1;b=1}J[a+34092>>2]=b}if(!f)break a}r:{s:{if(J[a+34084>>2]){b=J[a+32792>>2];d=J[a+34072>>2];t:{if((b|0)>=(d|0))break t;while(1){b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;f=J[a+32792>>2];d=J[a+34072>>2];if((c|0)==-1){b=f;break t}b=f+8|0;J[a+32792>>2]=b;h=J[a+34108>>2];e=J[a+34104>>2]+1|0;h=e?h:h+1|0;J[a+34104>>2]=e;J[a+34108>>2]=h;J[a+32788>>2]=J[a+32788>>2]|(c&255)<>2];c=J[a+32788>>2];e=c&(-1<>1];if(!d|(b|0)<(d|0))break r;f=b-d|0;J[a+32792>>2]=f;d=c>>d;J[a+32788>>2]=d;b=L[(g+(e<<2)|0)+2>>1];if(b>>>0<=255){H[(J[a+32780>>2]+a|0)+12|0]=b;o=1;J[a+32784>>2]=1;break s}if((b|0)==256){o=0;J[a+32784>>2]=0;J[a+34092>>2]=1;break s}e=b-257<<3;i=J[e+2725856>>2];u:{if((i|0)<=0){b=d;break u}if((f|0)<(i|0))while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break r;d=J[a+32792>>2];f=d+8|0;J[a+32792>>2]=f;c=J[a+ -34108>>2];g=J[a+34104>>2]+1|0;c=g?c:c+1|0;J[a+34104>>2]=g;J[a+34108>>2]=c;d=J[a+32788>>2]|(b&255)<>2]=d;if((f|0)<(i|0))continue;break}f=f-i|0;J[a+32792>>2]=f;b=d>>i;J[a+32788>>2]=b;i=(-1<>2];e=J[a+34080>>2];v:{if((e|0)<=(f|0))break v;while(1){b=J[a+4>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;b=J[a+32788>>2];d=J[a+32792>>2];e=J[a+34080>>2];if((g|0)==-1){f=d;break v}f=d+8|0;J[a+32792>>2]=f;c=J[a+34108>>2];h=J[a+34104>>2]+1|0;c=h?c:c+1|0;J[a+34104>>2]=h;J[a+34108>>2]=c;b=(g& -255)<>2]=b;if((f|0)<(e|0))continue;break}}if(!f)break r;c=(-1<>2];d=L[(c<<2)+e>>1];if(!d|(d|0)>(f|0))break r;f=f-d|0;J[a+32792>>2]=f;b=b>>d;J[a+32788>>2]=b;d=L[(e+(c<<2)|0)+2>>1]<<3;c=J[d+2726112>>2];if((c|0)>0){if((c|0)>(f|0))while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break r;e=J[a+32792>>2];f=e+8|0;J[a+32792>>2]=f;h=J[a+34108>>2];g=J[a+34104>>2]+1|0;h=g?h:h+1|0;J[a+34104>>2]=g;J[a+34108>>2]=h;b=J[a+32788>>2]|(b&255)<>2]=b;if((c| -0)>(f|0))continue;break}J[a+32792>>2]=f-c;J[a+32788>>2]=b>>c;c=(-1<>2];k=f-(J[d+2726116>>2]+c|0)|0;b=k&32767;d=o+b|0;c=f+o|0;w:{if((c|0)<=32768){if((d|0)<=32768){if((o|0)<=0)break w;e=0;d=0;if(o-1>>>0>=3){g=o&-4;c=a+12|0;i=0;while(1){H[c+(d+f|0)|0]=K[c+(b+d|0)|0];n=d|1;H[c+(n+f|0)|0]=K[c+(b+n|0)|0];n=d|2;H[c+(n+f|0)|0]=K[c+(b+n|0)|0];n=d|3;H[c+(n+f|0)|0]=K[c+(b+n|0)|0];d=d+4|0;i=i+4|0;if((g|0)!=(i|0))continue;break}}g=o&3;if(!g)break w;c=a+12|0;while(1){H[c+(d+f|0)|0]= +c<<2;d=J[e+k>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}d=J[k+(e|4)>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}d=J[k+(e|8)>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}d=J[k+(e|12)>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}c=c+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}if(i)while(1){d=J[k+(c<<2)>>2];if((d|0)>(b|0)){J[a+34080>>2]=d;b=d}c=c+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}h=1;l=1<>2]=t;if((b|0)!=31)Ac(t,0,((l|0)<=1?1:l)<<2);q=J[a+34080>>2];if((q|0)<=0)break i;i=2;m=0;d=0;while(1){u= +h&-4;n=h&3;j=0;while(1){if(J[k+(j<<2)>>2]==(h|0)){e=0;b=d;c=0;g=0;if(m>>>0>=3)while(1){c=b>>>3&1|(b>>>2&1|(b&2|(b<<2&4|c<<3)))<<1;b=b>>4;g=g+4|0;if((u|0)!=(g|0))continue;break}if(n)while(1){c=b&1|c<<1;b=b>>1;e=e+1|0;if((n|0)!=(e|0))continue;break}if((c|0)<(l|0))while(1){b=t+(c<<2)|0;I[b+2>>1]=j;I[b>>1]=h;c=c+i|0;if((l|0)>(c|0))continue;break}d=d+1|0}b=(j|0)==(v|0);j=j+1|0;if(!b)continue;break}m=m+1|0;i=i<<1;d=d<<1;b=(h|0)==(q|0);h=h+1|0;if(!b)continue;break}h=1;break i}h=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)| +0,833835,0)}Mc(r);fc=D+80|0;b=0;if(h)break f}f=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,833366,0);J[a+34096>>2]=1;b=1}J[a+34092>>2]=b}if(!f)break a}r:{s:{if(J[a+34084>>2]){b=J[a+32792>>2];d=J[a+34072>>2];t:{if((b|0)>=(d|0))break t;while(1){b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;f=J[a+32792>>2];d=J[a+34072>>2];if((c|0)==-1){b=f;break t}b=f+8|0;J[a+32792>>2]=b;h=J[a+34108>>2];e=J[a+34104>>2]+1|0;h=e?h:h+1|0;J[a+34104>>2]=e;J[a+34108>>2]=h;J[a+32788>>2]=J[a+32788>>2]|(c&255)<>2];c=J[a+32788>>2];e=c&(-1<>1];if(!d|(b|0)<(d|0))break r;f=b-d|0;J[a+32792>>2]=f;d=c>>d;J[a+32788>>2]=d;b=L[(g+(e<<2)|0)+2>>1];if(b>>>0<=255){H[(J[a+32780>>2]+a|0)+12|0]=b;o=1;J[a+32784>>2]=1;break s}if((b|0)==256){o=0;J[a+32784>>2]=0;J[a+34092>>2]=1;break s}e=b-257<<3;i=J[e+2740848>>2];u:{if((i|0)<=0){b=d;break u}if((f|0)<(i|0))while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break r;d=J[a+32792>>2];f=d+8|0;J[a+32792>>2]=f;c=J[a+ +34108>>2];g=J[a+34104>>2]+1|0;c=g?c:c+1|0;J[a+34104>>2]=g;J[a+34108>>2]=c;d=J[a+32788>>2]|(b&255)<>2]=d;if((f|0)<(i|0))continue;break}f=f-i|0;J[a+32792>>2]=f;b=d>>i;J[a+32788>>2]=b;i=(-1<>2];e=J[a+34080>>2];v:{if((e|0)<=(f|0))break v;while(1){b=J[a+4>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;b=J[a+32788>>2];d=J[a+32792>>2];e=J[a+34080>>2];if((g|0)==-1){f=d;break v}f=d+8|0;J[a+32792>>2]=f;c=J[a+34108>>2];h=J[a+34104>>2]+1|0;c=h?c:c+1|0;J[a+34104>>2]=h;J[a+34108>>2]=c;b=(g& +255)<>2]=b;if((f|0)<(e|0))continue;break}}if(!f)break r;c=(-1<>2];d=L[(c<<2)+e>>1];if(!d|(d|0)>(f|0))break r;f=f-d|0;J[a+32792>>2]=f;b=b>>d;J[a+32788>>2]=b;d=L[(e+(c<<2)|0)+2>>1]<<3;c=J[d+2741104>>2];if((c|0)>0){if((c|0)>(f|0))while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break r;e=J[a+32792>>2];f=e+8|0;J[a+32792>>2]=f;h=J[a+34108>>2];g=J[a+34104>>2]+1|0;h=g?h:h+1|0;J[a+34104>>2]=g;J[a+34108>>2]=h;b=J[a+32788>>2]|(b&255)<>2]=b;if((c| +0)>(f|0))continue;break}J[a+32792>>2]=f-c;J[a+32788>>2]=b>>c;c=(-1<>2];k=f-(J[d+2741108>>2]+c|0)|0;b=k&32767;d=o+b|0;c=f+o|0;w:{if((c|0)<=32768){if((d|0)<=32768){if((o|0)<=0)break w;e=0;d=0;if(o-1>>>0>=3){g=o&-4;c=a+12|0;i=0;while(1){H[c+(d+f|0)|0]=K[c+(b+d|0)|0];n=d|1;H[c+(n+f|0)|0]=K[c+(b+n|0)|0];n=d|2;H[c+(n+f|0)|0]=K[c+(b+n|0)|0];n=d|3;H[c+(n+f|0)|0]=K[c+(b+n|0)|0];d=d+4|0;i=i+4|0;if((g|0)!=(i|0))continue;break}}g=o&3;if(!g)break w;c=a+12|0;while(1){H[c+(d+f|0)|0]= K[c+(b+d|0)|0];d=d+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}break w}g=32768-b|0;h=g&3;e=0;d=0;if((b^32767)>>>0>=3){k=g&65532;c=a+12|0;while(1){H[c+(d+f|0)|0]=K[c+(b+d|0)|0];j=d|1;H[c+(j+f|0)|0]=K[c+(b+j|0)|0];j=d|2;H[c+(j+f|0)|0]=K[c+(b+j|0)|0];j=d|3;H[c+(j+f|0)|0]=K[c+(b+j|0)|0];d=d+4|0;p=p+4|0;if((k|0)!=(p|0))continue;break}}if(h){c=a+12|0;while(1){H[c+(d+f|0)|0]=K[c+(b+d|0)|0];d=d+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}h=o-g|0;if((h|0)<=0)break w;d=f+g|0;c=0;f=0;if((b+(i+n|0)|0)-32769>>> 0>=3){g=h&-4;b=a+12|0;e=0;while(1){H[b+(d+f|0)|0]=K[b+f|0];i=f|1;H[b+(i+d|0)|0]=K[b+i|0];i=f|2;H[b+(i+d|0)|0]=K[b+i|0];i=f|3;H[b+(i+d|0)|0]=K[b+i|0];f=f+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}e=h&3;if(!e)break w;b=a+12|0;while(1){H[b+(d+f|0)|0]=K[b+f|0];f=f+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}break w}if((d|0)<=32768){g=32768-f|0;h=o-g|0;x:{if((f|0)>32767)break x;c=(g|0)<=1?1:g;k=c&3;e=0;d=0;if(c>>>0>=4){j=c&2147483644;c=a+12|0;while(1){H[c+(d+f|0)|0]=K[c+(b+d|0)|0];m=d|1;H[c+(m+f|0)|0]= K[c+(b+m|0)|0];m=d|2;H[c+(m+f|0)|0]=K[c+(b+m|0)|0];m=d|3;H[c+(m+f|0)|0]=K[c+(b+m|0)|0];d=d+4|0;p=p+4|0;if((j|0)!=(p|0))continue;break}}if(!k)break x;c=a+12|0;while(1){H[c+(d+f|0)|0]=K[c+(b+d|0)|0];d=d+1|0;e=e+1|0;if((k|0)!=(e|0))continue;break}}if((h|0)<=0)break w;g=b+g|0;c=0;b=0;if((f+(i+n|0)|0)-32769>>>0>=3){f=h&-4;d=a+12|0;e=0;while(1){H[b+d|0]=K[d+(b+g|0)|0];i=b|1;H[i+d|0]=K[d+(g+i|0)|0];i=b|2;H[i+d|0]=K[d+(g+i|0)|0];i=b|3;H[i+d|0]=K[d+(g+i|0)|0];b=b+4|0;e=e+4|0;if((f|0)!=(e|0))continue;break}}f= @@ -5048,411 +5330,408 @@ h&3;if(!f)break w;d=a+12|0;while(1){H[b+d|0]=K[d+(b+g|0)|0];b=b+1|0;c=c+1|0;if(( c=0;while(1){H[b+(f+e|0)|0]=K[b+f|0];i=f|1;H[b+(i+e|0)|0]=K[b+i|0];i=f|2;H[b+(i+e|0)|0]=K[b+i|0];i=f|3;H[b+(i+e|0)|0]=K[b+i|0];f=f+4|0;c=c+4|0;if((g|0)!=(c|0))continue;break}}c=k&3;if(!c)break w;b=a+12|0;while(1){H[b+(f+e|0)|0]=K[b+f|0];f=f+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break w}g=32768-b|0;h=g&3;d=0;if((b^32767)>>>0>=3){j=g&65532;e=a+12|0;c=0;while(1){H[e+(d+f|0)|0]=K[e+(b+d|0)|0];m=d|1;H[e+(m+f|0)|0]=K[e+(b+m|0)|0];m=d|2;H[e+(m+f|0)|0]=K[e+(b+m|0)|0];m=d|3;H[e+(m+f|0)|0]=K[e+(b+m|0)| 0];d=d+4|0;c=c+4|0;if((j|0)!=(c|0))continue;break}}if(h){c=a+12|0;while(1){H[c+(d+f|0)|0]=K[c+(b+d|0)|0];d=d+1|0;p=p+1|0;if((h|0)!=(p|0))continue;break}}j=k|-32768;e=b-f|0;k=j+(o-e|0)|0;A:{if((e|0)<=0)break A;h=f+g|0;c=0;d=0;if(b+(f^-1)>>>0>=3){p=e&-4;g=a+12|0;m=0;while(1){H[g+(d+h|0)|0]=K[d+g|0];l=d|1;H[g+(l+h|0)|0]=K[g+l|0];l=d|2;H[g+(l+h|0)|0]=K[g+l|0];l=d|3;H[g+(l+h|0)|0]=K[g+l|0];d=d+4|0;m=m+4|0;if((p|0)!=(m|0))continue;break}}p=e&3;if(!p)break A;g=a+12|0;while(1){H[g+(d+h|0)|0]=K[d+g|0];d=d+ 1|0;c=c+1|0;if((p|0)!=(c|0))continue;break}}if((k|0)<=0)break w;c=0;d=0;if((j+(f+(i+n|0)|0)|0)+(b^-1)>>>0>=3){g=k&-4;f=a+12|0;b=0;while(1){H[d+f|0]=K[f+(d+e|0)|0];i=d|1;H[i+f|0]=K[f+(e+i|0)|0];i=d|2;H[i+f|0]=K[f+(e+i|0)|0];i=d|3;H[i+f|0]=K[f+(e+i|0)|0];d=d+4|0;b=b+4|0;if((g|0)!=(b|0))continue;break}}f=k&3;if(!f)break w;b=a+12|0;while(1){H[b+d|0]=K[b+(d+e|0)|0];d=d+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}J[a+32784>>2]=o;break s}b=J[a+34088>>2];d=(b|0)>=32768?32768:b;B:{if((b|0)<=0)break B;b=(d| -0)<=1?1:d;f=J[a+32780>>2];while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1){J[a+34092>>2]=1;J[a+34096>>2]=1;break B}H[(a+f|0)+12|0]=c;f=f+1&32767;o=o+1|0;if((b|0)!=(o|0))continue;break}o=b}J[a+32784>>2]=o;b=J[a+34088>>2];J[a+34088>>2]=b-d;if((b|0)==(d|0))J[a+34092>>2]=1;c=J[a+34108>>2];b=o+J[a+34104>>2]|0;c=b>>>0>>0?c+1|0:c;J[a+34104>>2]=b;J[a+34108>>2]=c}c=J[a+34116>>2]+(o>>31)|0;b=o+J[a+34112>>2]|0;c=b>>>0>>0?c+1|0:c;J[a+34112>>2]=b;J[a+34116>>2]=c;if(!c&b>>>0<100000001)break a; -o=809154;f=J[a+34104>>2];d=J[a+34108>>2];b=Fzb(b,c,250,0);c=fc;if((c|0)==(d|0)&b>>>0<=f>>>0|d>>>0>c>>>0)break a}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,o,0);J[a+34092>>2]=1;J[a+34096>>2]=1;J[a+32784>>2]=0}}function NEa(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;d=bc-176|0;bc=d;e=d+152|0;y0(e,a);J[695492]=0;k=aa(4825,d+164|0,e|0)|0;e=J[695492];J[695492]=0;a:{if((e|0)!=1){if(H[d+163|0]<0)qc(J[d+152>>2]);J[695492]=0;e=Fd(k,2370504);f=J[695492];J[695492]=0; -b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{if((f|0)==1)break H;if(e){J[d+48>>2]=0;J[d+32>>2]=255;J[695492]=0;J[d+64>>2]=0;J[d+68>>2]=1072693248;e=Bp(a);f=J[695492];J[695492]=0;if((f|0)==1)break c;I:{J:{K:{L:{if((e|0)<=0)break L;J[695492]=0;e=Yj(a);f=J[695492];J[695492]=0;if((f|0)==1)break c;if(!e)break L;J[695492]=0;e=d+140|0;da(4810,e|0,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break d;J[695492]=0;e=aa(4825,d+152|0,e|0)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break e;if(H[d+151|0]<0)qc(J[d+140>>2]);M:{N:{O:{P:{while(1){J[695492]=0;f=J[e+4>>2];h=J[695492];J[695492]=0;if((h|0)==1)break K;if(!f)break M;J[695492]=0;f=Fd(e,2370880);h=J[695492];J[695492]=0;if((h|0)==1)break K;Q:{if(f){J[695492]=0;f=d+128|0;da(4811,f|0,a|0);h=J[695492];J[695492]=0;R:{S:{T:{if((h|0)!=1){J[695492]=0;f=aa(4825,d+140|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break T;J[695492]=0;ca(4946,f|0,d+48|0,d+32|0);h=J[695492];J[695492]=0;if((h|0)==1)break S;Lc(f);if(H[d+139| -0]>=0)break Q;qc(J[d+128>>2]);break Q}a=Z()|0;Lc(e);break b}a=Z()|0;break R}a=Z()|0;Lc(f)}if(H[d+139|0]>=0)break J;qc(J[d+128>>2]);Lc(e);break b}J[695492]=0;f=Fd(e,2370904);h=J[695492];J[695492]=0;if((h|0)==1)break K;if(f){J[695492]=0;f=d+128|0;da(4811,f|0,a|0);h=J[695492];J[695492]=0;U:{V:{W:{if((h|0)!=1){J[695492]=0;f=aa(4825,d+116|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break W;J[695492]=0;Qs(f,d- -64|0);h=J[695492];J[695492]=0;if((h|0)==1)break V;Lc(f);if(H[d+139|0]>=0)break Q;qc(J[d+128>> -2]);break Q}a=Z()|0;Lc(e);break b}a=Z()|0;break U}a=Z()|0;Lc(f)}if(H[d+139|0]>=0)break J;qc(J[d+128>>2]);Lc(e);break b}J[695492]=0;f=Fd(e,2370936);h=J[695492];J[695492]=0;if((h|0)==1)break K;if(!c|f^1)break Q;J[695492]=0;f=d+128|0;da(4811,f|0,a|0);h=J[695492];J[695492]=0;X:{if((h|0)!=1){J[695492]=0;ca(4862,c|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break X;if(H[d+139|0]>=0)break Q;qc(J[d+128>>2]);break Q}a=Z()|0;Lc(e);break b}a=Z()|0;if(H[d+139|0]>=0)break J;qc(J[d+128>>2]);Lc(e);break b}J[695492]= -0;f=vi(a);h=J[695492];J[695492]=0;if((h|0)==1)break K;if(!f)break M;J[695492]=0;f=d+128|0;da(4810,f|0,a|0);h=J[695492];J[695492]=0;if((h|0)!=1){J[695492]=0;f=aa(4825,d+104|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break P;J[695492]=0;Xf(e,f);h=J[695492];J[695492]=0;if((h|0)==1)break O;Lc(f);if(H[d+139|0]>=0)continue;qc(J[d+128>>2]);continue}break}a=Z()|0;Lc(e);break b}a=Z()|0;break N}a=Z()|0;Lc(f)}if(H[d+139|0]>=0)break J;qc(J[d+128>>2]);Lc(e);break b}J[695492]=0;Ri(a);a=J[695492];J[695492]=0; -if((a|0)==1)break f;Lc(e)}J[695492]=0;e=$(4,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;l=O[b>>3];m=O[d+64>>3];a=J[d+32>>2];J[e+4>>2]=J[d+48>>2];J[e>>2]=2371520;l=m*(l*+(a|0));if(!(R(l)<2147483648))break I;J[e+8>>2]=~~l;break u}a=Z()|0}Lc(e);break b}J[e+8>>2]=-2147483648;break u}J[695492]=0;e=Fd(k,2370568);f=J[695492];J[695492]=0;if((f|0)==1)break H;if(e){e=0;J[695492]=0;b=Bp(a);f=J[695492];J[695492]=0;if((f|0)==1)break H;if((b|0)<=0)break u;J[695492]=0;b=Yj(a);f=J[695492];J[695492]=0;if((f| -0)==1)break H;if(!b)break u;J[695492]=0;b=d+140|0;da(4810,b|0,a|0);e=J[695492];J[695492]=0;if((e|0)==1)break g;J[695492]=0;b=aa(4825,d+152|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;if(H[d+151|0]<0)qc(J[d+140>>2]);e=0;Y:{Z:{_:{$:{aa:{ba:{while(1){J[695492]=0;f=J[b+4>>2];h=J[695492];J[695492]=0;if((h|0)==1)break Z;if(!f)break _;J[695492]=0;f=Fd(b,2370960);h=J[695492];J[695492]=0;if((h|0)==1)break Z;ca:{da:{ea:{if(f){J[695492]=0;e=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Z;J[695492]= -0;g=d+140|0;da(4811,g|0,a|0);f=J[695492];J[695492]=0;fa:{if((f|0)!=1){j=J[d+140>>2];n=H[d+151|0];J[e>>2]=2371600;J[695492]=0;f=e+4|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;h=J[695492];J[695492]=0;if((h|0)==1)break fa;J[695492]=0;h=e+20|0;J[h>>2]=0;J[h+4>>2]=0;H[h+8|0]=0;i=J[695492];J[695492]=0;if((i|0)==1)break ea;J[695492]=0;ia(4847,f|0,((n|0)<0?j:g)|0,1,-1);g=J[695492];J[695492]=0;if((g|0)==1){a=Z()|0;Lc(h);Lc(f);break da}J[e+16>>2]=0;if(H[d+151|0]>=0)break ca;qc(J[d+140>>2]);break ca}a=Z()|0;qc(e);Lc(b); -break b}a=Z()|0;break da}J[695492]=0;f=Fd(b,2370936);h=J[695492];J[695492]=0;if((h|0)==1)break Z;if(!c|f^1)break ca;J[695492]=0;f=d+140|0;da(4811,f|0,a|0);h=J[695492];J[695492]=0;ga:{if((h|0)!=1){J[695492]=0;ca(4862,c|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break ga;if(H[d+151|0]>=0)break ca;qc(J[d+140>>2]);break ca}a=Z()|0;Lc(b);break b}a=Z()|0;if(H[d+151|0]>=0)break Y;qc(J[d+140>>2]);Lc(b);break b}a=Z()|0;Lc(f)}if(H[d+151|0]<0)qc(J[d+140>>2]);qc(e);Lc(b);break b}J[695492]=0;f=vi(a);h=J[695492]; -J[695492]=0;if((h|0)==1)break Z;if(!f)break _;J[695492]=0;f=d+140|0;da(4810,f|0,a|0);h=J[695492];J[695492]=0;if((h|0)!=1){J[695492]=0;f=aa(4825,d+128|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ba;J[695492]=0;Xf(b,f);h=J[695492];J[695492]=0;if((h|0)==1)break aa;Lc(f);if(H[d+151|0]>=0)continue;qc(J[d+140>>2]);continue}break}a=Z()|0;Lc(b);break b}a=Z()|0;break $}a=Z()|0;Lc(f)}if(H[d+151|0]>=0)break Y;qc(J[d+140>>2]);Lc(b);break b}J[695492]=0;Ri(a);a=J[695492];J[695492]=0;if((a|0)==1)break i; -Lc(b);break u}a=Z()|0}Lc(b);break b}J[695492]=0;e=Fd(k,2370612);f=J[695492];J[695492]=0;if((f|0)==1)break H;if(!e){e=0;J[695492]=0;f=Fd(k,2370692);h=J[695492];J[695492]=0;if((h|0)==1)break H;if(!f)break u}J[695492]=0;h=Fd(k,2370612);e=J[695492];J[695492]=0;if((e|0)==1)break j;if(!h)break G;J[d+64>>2]=0;J[d+68>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+32>>2]=0;J[d+36>>2]=1072693248;J[695492]=0;J[d+16>>2]=0;J[d+20>>2]=1072693248;e=Bp(a);f=J[695492];J[695492]=0;if((f|0)==1)break k;l=1;ha:{ia:{ja:{if((e|0)<= -0)break ja;J[695492]=0;e=Yj(a);f=J[695492];J[695492]=0;if((f|0)==1)break k;if(!e)break ja;J[695492]=0;e=d+140|0;da(4810,e|0,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break l;J[695492]=0;f=aa(4825,d+152|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break m;if(H[d+151|0]<0)qc(J[d+140>>2]);ka:{la:{ma:{na:{while(1){J[695492]=0;e=J[f+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break ia;if(!e)break ka;J[695492]=0;e=Fd(f,2371008);g=J[695492];J[695492]=0;if((g|0)==1)break ia;oa:{if(e){J[695492]=0;e=d+128|0;da(4811, -e|0,a|0);g=J[695492];J[695492]=0;pa:{qa:{ra:{if((g|0)!=1){J[695492]=0;e=aa(4825,d+140|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ra;J[695492]=0;ca(4947,e|0,d- -64|0,d+48|0);g=J[695492];J[695492]=0;if((g|0)==1)break qa;Lc(e);if(H[d+139|0]>=0)break oa;qc(J[d+128>>2]);break oa}a=Z()|0;Lc(f);break b}a=Z()|0;break pa}a=Z()|0;Lc(e)}if(H[d+139|0]>=0)break ha;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;e=Fd(f,2371052);g=J[695492];J[695492]=0;if((g|0)==1)break ia;if(e){J[695492]=0;e=d+128|0;da(4811, -e|0,a|0);g=J[695492];J[695492]=0;sa:{ta:{ua:{if((g|0)!=1){J[695492]=0;e=aa(4825,d+116|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break ua;J[695492]=0;ca(4947,e|0,d+32|0,d+16|0);g=J[695492];J[695492]=0;if((g|0)==1)break ta;Lc(e);if(H[d+139|0]>=0)break oa;qc(J[d+128>>2]);break oa}a=Z()|0;Lc(f);break b}a=Z()|0;break sa}a=Z()|0;Lc(e)}if(H[d+139|0]>=0)break ha;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;e=Fd(f,2370904);g=J[695492];J[695492]=0;if((g|0)==1)break ia;if(e){J[695492]=0;g=d+128|0;da(4811,g| -0,a|0);e=J[695492];J[695492]=0;if((e|0)!=1){j=K[d+139|0];e=j<<24>>24;va:{if((e|0)<0?J[d+132>>2]:j){J[695492]=0;l=+qa(4835,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break va;e=H[d+139|0]}if(e<<24>>24>=0)break oa;qc(J[d+128>>2]);break oa}a=Z()|0;if(H[d+139|0]>=0)break ha;qc(J[d+128>>2]);Lc(f);break b}a=Z()|0;Lc(f);break b}J[695492]=0;e=Fd(f,2370936);g=J[695492];J[695492]=0;if((g|0)==1)break ia;if(!c|e^1)break oa;J[695492]=0;e=d+128|0;da(4811,e|0,a|0);g=J[695492];J[695492]=0;wa:{if((g|0)!=1){J[695492]= -0;ca(4862,c|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)==1)break wa;if(H[d+139|0]>=0)break oa;qc(J[d+128>>2]);break oa}a=Z()|0;Lc(f);break b}a=Z()|0;if(H[d+139|0]>=0)break ha;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;e=vi(a);g=J[695492];J[695492]=0;if((g|0)==1)break ia;if(!e)break ka;J[695492]=0;e=d+128|0;da(4810,e|0,a|0);g=J[695492];J[695492]=0;if((g|0)!=1){J[695492]=0;e=aa(4825,d+104|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break na;J[695492]=0;Xf(f,e);g=J[695492];J[695492]=0;if((g|0)==1)break ma; -Lc(e);if(H[d+139|0]>=0)continue;qc(J[d+128>>2]);continue}break}a=Z()|0;Lc(f);break b}a=Z()|0;break la}a=Z()|0;Lc(e)}if(H[d+139|0]>=0)break ha;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;Ri(a);c=J[695492];J[695492]=0;if((c|0)==1)break n;Lc(f)}J[695492]=0;f=$(4,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;m=O[d+64>>3];o=O[d+48>>3];p=O[d+32>>3];q=O[d+16>>3];J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=2371656;break F}a=Z()|0}Lc(f);break b}a=Z()|0;break b}J[d+32>>2]=0;J[d+36>>2]=0;J[d+16>>2]=0;J[d+ -20>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[695492]=0;J[d+80>>2]=0;J[d+84>>2]=0;e=Bp(a);f=J[695492];J[695492]=0;if((f|0)==1)break o;l=1;xa:{if((e|0)<=0)break xa;J[695492]=0;e=Yj(a);f=J[695492];J[695492]=0;if((f|0)==1)break o;if(!e)break xa;J[695492]=0;e=d+140|0;da(4810,e|0,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break p;J[695492]=0;f=aa(4825,d+152|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break q;if(H[d+151|0]<0)qc(J[d+140>>2]);ya:{za:{Aa:{Ba:{while(1){J[695492]= -0;e=J[f+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break E;if(!e)break ya;J[695492]=0;e=Fd(f,2371088);g=J[695492];J[695492]=0;if((g|0)==1)break E;Ca:{if(e){J[695492]=0;e=d+128|0;da(4811,e|0,a|0);g=J[695492];J[695492]=0;Da:{Ea:{Fa:{if((g|0)!=1){J[695492]=0;e=aa(4825,d+140|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Fa;J[695492]=0;ca(4947,e|0,d+32|0,d+16|0);g=J[695492];J[695492]=0;if((g|0)==1)break Ea;Lc(e);if(H[d+139|0]>=0)break Ca;qc(J[d+128>>2]);break Ca}a=Z()|0;Lc(f);break b}a=Z()|0;break Da}a= -Z()|0;Lc(e)}if(H[d+139|0]>=0)break D;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;e=Fd(f,2371116);g=J[695492];J[695492]=0;if((g|0)==1)break E;if(e){J[695492]=0;e=d+128|0;da(4811,e|0,a|0);g=J[695492];J[695492]=0;Ga:{Ha:{Ia:{if((g|0)!=1){J[695492]=0;e=aa(4825,d+116|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ia;J[695492]=0;ca(4947,e|0,d+88|0,d+80|0);g=J[695492];J[695492]=0;if((g|0)==1)break Ha;Lc(e);if(H[d+139|0]>=0)break Ca;qc(J[d+128>>2]);break Ca}a=Z()|0;Lc(f);break b}a=Z()|0;break Ga}a=Z()| -0;Lc(e)}if(H[d+139|0]>=0)break D;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;e=Fd(f,2370904);g=J[695492];J[695492]=0;if((g|0)==1)break E;if(e){J[695492]=0;g=d+128|0;da(4811,g|0,a|0);e=J[695492];J[695492]=0;if((e|0)!=1){j=K[d+139|0];e=j<<24>>24;Ja:{if((e|0)<0?J[d+132>>2]:j){J[695492]=0;l=+qa(4835,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break Ja;e=H[d+139|0]}if(e<<24>>24>=0)break Ca;qc(J[d+128>>2]);break Ca}a=Z()|0;if(H[d+139|0]>=0)break D;qc(J[d+128>>2]);Lc(f);break b}a=Z()|0;Lc(f);break b}J[695492]= -0;e=Fd(f,2371176);g=J[695492];J[695492]=0;if((g|0)==1)break E;if(e){J[695492]=0;e=d+128|0;da(4811,e|0,a|0);g=J[695492];J[695492]=0;Ka:{La:{Ma:{if((g|0)!=1){J[695492]=0;e=aa(4825,d+104|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ma;J[695492]=0;Qs(e,d);g=J[695492];J[695492]=0;if((g|0)==1)break La;Lc(e);if(H[d+139|0]>=0)break Ca;qc(J[d+128>>2]);break Ca}a=Z()|0;Lc(f);break b}a=Z()|0;break Ka}a=Z()|0;Lc(e)}if(H[d+139|0]>=0)break D;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;e=Fd(f,2371208);g=J[695492]; -J[695492]=0;if((g|0)==1)break E;if(e){J[695492]=0;e=d+128|0;da(4811,e|0,a|0);g=J[695492];J[695492]=0;Na:{Oa:{Pa:{if((g|0)!=1){J[695492]=0;e=aa(4825,d- -64|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Pa;J[695492]=0;Qs(e,d+96|0);g=J[695492];J[695492]=0;if((g|0)==1)break Oa;Lc(e);if(H[d+139|0]>=0)break Ca;qc(J[d+128>>2]);break Ca}a=Z()|0;Lc(f);break b}a=Z()|0;break Na}a=Z()|0;Lc(e)}if(H[d+139|0]>=0)break D;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;e=Fd(f,2370936);g=J[695492];J[695492]=0;if((g| -0)==1)break E;if(!c|e^1)break Ca;J[695492]=0;e=d+128|0;da(4811,e|0,a|0);g=J[695492];J[695492]=0;Qa:{if((g|0)!=1){J[695492]=0;ca(4862,c|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)==1)break Qa;if(H[d+139|0]>=0)break Ca;qc(J[d+128>>2]);break Ca}a=Z()|0;Lc(f);break b}a=Z()|0;if(H[d+139|0]>=0)break D;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;e=vi(a);g=J[695492];J[695492]=0;if((g|0)==1)break E;if(!e)break ya;J[695492]=0;e=d+128|0;da(4810,e|0,a|0);g=J[695492];J[695492]=0;if((g|0)!=1){J[695492]=0;e=aa(4825, -d+48|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Ba;J[695492]=0;Xf(f,e);g=J[695492];J[695492]=0;if((g|0)==1)break Aa;Lc(e);if(H[d+139|0]>=0)continue;qc(J[d+128>>2]);continue}break}a=Z()|0;Lc(f);break b}a=Z()|0;break za}a=Z()|0;Lc(e)}if(H[d+139|0]>=0)break D;qc(J[d+128>>2]);Lc(f);break b}J[695492]=0;Ri(a);c=J[695492];J[695492]=0;if((c|0)==1)break r;Lc(f)}J[695492]=0;f=$(4,64)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o;m=O[d+32>>3];o=O[d+16>>3];p=O[d+88>>3];q=O[d+80>>3];s=O[d>>3];t=O[d+96>> -3];J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=2371756;O[f+56>>3]=t*25.4/96;O[f+48>>3]=s*25.4/96}O[f+40>>3]=q*25.4/96;O[f+32>>3]=p*25.4/96;O[f+24>>3]=o*25.4/96;O[f+16>>3]=m*25.4/96;J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[695492]=0;J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;c=Gh(a);e=J[695492];J[695492]=0;if((e|0)==1)break v;if(c)break w;J[695492]=0;e=Qg(a);c=J[695492];J[695492]=0;if((c|0)==1)break B;while(1){J[695492]=0;c=aa(4815,a|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break C;if(!c)break w; -J[695492]=0;da(4802,d|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break A;J[695492]=0;c=aa(4825,d+16|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break z;J[695492]=0;Xf(k,c);g=J[695492];J[695492]=0;if((g|0)==1)break y;Lc(c);if(H[d+11|0]<0)qc(J[d>>2]);J[695492]=0;c=Fd(k,2371240);g=J[695492];J[695492]=0;if((g|0)==1)break C;if(!(c&h)){J[695492]=0;c=Fd(k,2371376);g=J[695492];J[695492]=0;if((g|0)==1)break C;if(h|c^1)continue}m=O[b>>3];J[695492]=0;O[d>>3]=l*m;ia(4948,a|0,d+128|0,d+32|0,d|0);c=J[695492]; -J[695492]=0;if((c|0)!=1)continue;break}a=Z()|0;break s}a=Z()|0}Lc(f);break b}a=Z()|0;break s}a=Z()|0;break s}a=Z()|0;break s}a=Z()|0;break x}a=Z()|0;Lc(c)}if(H[d+11|0]>=0)break s;qc(J[d>>2]);break s}e=J[d+32>>2];a=J[d+36>>2]-e>>3;j=J[d+128>>2];b=J[d+132>>2]-j>>2;b=a>>>0>>0?a:b;Ra:{Sa:{if((b|0)>0){J[695492]=0;h=$(27,b<<2)|0;a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;break s}J[695492]=0;g=$(27,b<<3)|0;a=J[695492];J[695492]=0;if((a|0)==1)break t;a=0;if((b|0)!=1){n=b&-2;c=0;while(1){i=a<<2;J[i+h>> -2]=J[j+i>>2];i=a<<3;O[i+g>>3]=O[e+i>>3];i=a|1;r=i<<2;J[h+r>>2]=J[j+r>>2];i=i<<3;O[i+g>>3]=O[e+i>>3];a=a+2|0;c=c+2|0;if((n|0)!=(c|0))continue;break}}if(b&1){c=a<<2;J[c+h>>2]=J[c+j>>2];a=a<<3;O[a+g>>3]=O[a+e>>3]}J[f+12>>2]=b;J[f+8>>2]=g;J[f+4>>2]=h;break Sa}gc[J[J[f>>2]+4>>2]](f);e=J[d+32>>2];if(!e)break Ra}J[d+36>>2]=e;qc(e)}a=J[d+128>>2];if(a){J[d+132>>2]=a;qc(a)}e=(b|0)>0?f:0;break u}a=Z()|0;break s}Lc(k);bc=d+176|0;return e|0}a=Z()|0}b=J[d+32>>2];if(b){J[d+36>>2]=b;qc(b)}b=J[d+128>>2];if(!b)break b; -J[d+132>>2]=b;qc(b);break b}a=Z()|0;Lc(f);break b}a=Z()|0;if(H[d+151|0]>=0)break b;qc(J[d+140>>2]);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;Lc(f);break b}a=Z()|0;if(H[d+151|0]>=0)break b;qc(J[d+140>>2]);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;Lc(b);break b}a=Z()|0;if(H[d+151|0]>=0)break b;qc(J[d+140>>2]);break b}a=Z()|0;break b}a=Z()|0;Lc(e);break b}a=Z()|0;if(H[d+151|0]>=0)break b;qc(J[d+140>>2]);break b}a=Z()|0;break b}a=Z()|0}Lc(k);break a}a=Z()|0;if(H[d+163|0]>= -0)break a;qc(J[d+152>>2]);ba(a|0);B()}ba(a|0);B()}function l_(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0,I=0,M=0,N=0,P=0,Q=0,R=0,S=0;x=bc-16|0;bc=x;J[x>>2]=13;hf(a+24|0,J[J[a>>2]+24>>2],x,0);a:{b:{if(J[x>>2]==8)break b;b=J[a+16>>2];if(!b)break b;if(!sd(b,791551)){e=bc-192|0;bc=e;J[e+176>>2]=13;J[e+160>>2]=13;J[e+144>>2]=13;J[e+128>>2]=13;J[e+112>>2]=13;c:{b=J[a+8>>2];if((b|0)<0){J[e+176>>2]=5;break c}Tm(J[a+ -4>>2],b,J[a+12>>2],e+176|0,0);if(J[e+176>>2]!=7)break c;m=rc(8);J[695492]=0;d=$(3184,m|0)|0;b=J[695492];J[695492]=0;d:{e:{f:{g:{if((b|0)!=1){J[a+40>>2]=d;b=e+128|0;if(J[Bc(J[e+184>>2],794809,b,0)>>2]-3>>>0>=4294967294){ig(e+160|0,J[J[a>>2]+24>>2]);d=Md(795345);b=Ef(b,e+112|0);De(J[e+168>>2],d,b);od(J[a+40>>2],796535)}d=e+128|0;uc(d);DI(a,e+104|0);b=J[a+84>>2];k_(a,b+24|0,J[b+56>>2]);if(J[Bc(J[e+184>>2],797235,d,0)>>2]==6)q=j_(a,d);f=e+128|0;uc(f);h:{i:{j:{if(J[Bc(J[e+184>>2],798033,f,0)>>2]!=6)break j; -b=J[e+136>>2];if(J[b+12>>2]!=4)break j;r=e+112|0;if(J[Mc(b,0,r,0)>>2]-3>>>0<4294967294)break g;F=O[e+120>>3];k=J[e+120>>2];p=J[e+112>>2];uc(r);if(J[Mc(J[e+136>>2],1,r,0)>>2]-3>>>0<4294967294)break f;u=O[e+120>>3];D=J[e+120>>2];n=J[e+112>>2];uc(r);if(J[Mc(J[e+136>>2],2,r,0)>>2]-3>>>0<4294967294)break e;h=O[e+120>>3];c=J[e+120>>2];g=J[e+112>>2];uc(r);if(J[Mc(J[e+136>>2],3,r,0)>>2]-3>>>0>=4294967294){j=O[e+120>>3];i=J[e+120>>2];d=J[e+112>>2];uc(r);uc(f);m=0;k:{if(J[Bc(J[e+184>>2],798698,f,0)>>2]!=6)break k; -b=J[e+136>>2];if(J[b+12>>2]!=2)break k;m=i_(Mc(b,0,r,0));uc(r);o=i_(Mc(J[e+136>>2],1,r,0));uc(r)}b=e+128|0;uc(b);if(J[Bc(J[e+184>>2],799386,b,0)>>2]-3>>>0>=4294967294)E=J[e+128>>2]==1?+J[e+136>>2]:O[e+136>>3];b=e+128|0;uc(b);if(J[Bc(J[e+184>>2],800203,b,0)>>2]-3>>>0>=4294967294)l=J[e+128>>2]==1?+J[e+136>>2]:O[e+136>>3];b=e+128|0;uc(b);if(J[Bc(J[e+184>>2],800692,b,0)>>2]-3>>>0>=4294967294)G=J[e+128>>2]==1?+J[e+136>>2]:O[e+136>>3];uc(e+128|0);s=(g|0)==1?+(c|0):h;h=O[a+48>>3];y=s-h;z=((p|0)==1?+(k|0): -F)-h;s=y-z;h=O[a+56>>3];A=((d|0)==1?+(i|0):j)-h;C=((n|0)==1?+(D|0):u)-h;v=A-C;h=Y(s*s+v*v);if(h>0){s=s/h;v=v/h}if(E!=0)break i;h=0;break h}uc(e+112|0);uc(e+128|0);break c}uc(e+128|0);break c}t=l*v;j=E*v;h=G*v;I=h+y;y=j+I;P=t+y;M=h+z;z=j+M;Q=t+z;l=-l*s;j=-E*s;h=-G*s;N=h+A;A=j+N;t=l+A;w=h+C;C=j+w;h=l+C}j=O[e+104>>3];l=j;l:{m:switch(m|0){case 1:l=j*6;break l;case 2:l=j*6;break l;case 3:l=j*6;break l;case 5:l=j*8.660254037844387;break l;case 7:l=j*8.660254037844387;break l;case 8:l=j*8.660254037844387; -break l;case 0:case 4:case 6:case 9:break m;default:break l}l=0}F=l*v;u=l*s;l=j;n:{o:switch(o|0){case 1:l=j*6;break n;case 2:l=j*6;break n;case 3:l=j*6;break n;case 5:l=j*8.660254037844387;break n;case 7:l=j*8.660254037844387;break n;case 8:l=j*8.660254037844387;break n;case 0:case 4:case 6:case 9:break o;default:break n}l=0}if(E!=0){b=J[a+40>>2];O[e+88>>3]=h;O[e+80>>3]=Q;O[e+72>>3]=w;O[e+64>>3]=M;Xc(b,801650,e- -64|0);b=J[a+40>>2];O[e+56>>3]=t;O[e+48>>3]=P;O[e+40>>3]=N;O[e+32>>3]=I;Xc(b,801650,e+ -32|0)}b=J[a+40>>2];t=-v;O[e+24>>3]=l*t+A;h=-s;O[e+16>>3]=l*h+y;O[e+8>>3]=F+C;O[e>>3]=u+z;Xc(b,801650,e);od(J[a+40>>2],802489);if(J[J[a+84>>2]>>2]==1)od(J[a+40>>2],803130);h_(a,m,z,C,s,v,j,q);h_(a,o,y,A,h,t,j,q);ig(e+144|0,J[J[a>>2]+24>>2]);b=Md(803275);J[e+136>>2]=J[J[a+40>>2]>>2];J[e+128>>2]=1;i=e+128|0;De(J[e+152>>2],b,i);b=Md(774992);J[e+128>>2]=4;R=e,S=Md(803973),J[R+136>>2]=S;De(J[e+152>>2],b,i);gp(i,J[J[a>>2]+24>>2]);J[e+120>>2]=0;J[e+124>>2]=0;J[e+112>>2]=2;d=e+112|0;Dg(J[e+136>>2],d);J[e+ -120>>2]=0;J[e+124>>2]=0;J[e+112>>2]=2;Dg(J[e+136>>2],d);j=O[a+48>>3];h=O[a+64>>3];J[e+112>>2]=2;O[e+120>>3]=h-j;Dg(J[e+136>>2],d);j=O[a+56>>3];h=O[a+72>>3];J[e+112>>2]=2;O[e+120>>3]=h-j;Dg(J[e+136>>2],d);b=Md(804314);De(J[e+152>>2],b,i);if(J[e+160>>2]==7){ig(i,J[J[a>>2]+24>>2]);ig(d,J[J[a>>2]+24>>2]);b=Md(804978);De(J[e+120>>2],b,e+160|0);b=Md(805354);De(J[e+136>>2],b,d);b=Md(805693);De(J[e+152>>2],b,i)}m=rc(48);b=J[a+40>>2];d=J[b>>2];b=J[b+4>>2];J[695492]=0;d=Wn(m,b,0,d,e+144|0);b=J[695492];J[695492]= -0;if((b|0)!=1){a=a+24|0;uc(a);J[a+8>>2]=d;J[a>>2]=8;break c}break d}break d}uc(e+112|0);uc(e+128|0);break c}uc(e+112|0);uc(e+128|0);break c}uc(e+112|0);uc(e+128|0);break c}a=Z()|0;qc(m);ba(a|0);B()}uc(e+176|0);bc=e+192|0;break b}if(!sd(J[a+16>>2],792289)){c=bc-128|0;bc=c;J[c+112>>2]=13;J[c+96>>2]=13;J[c+80>>2]=13;J[c+64>>2]=13;J[c+48>>2]=13;b=J[a+8>>2];p:{if((b|0)<0){J[c+112>>2]=5;break p}Tm(J[a+4>>2],b,J[a+12>>2],c+112|0,0);if(J[c+112>>2]!=7)break p;n=rc(8);J[695492]=0;d=$(3184,n|0)|0;b=J[695492]; -J[695492]=0;q:{r:{s:{if((b|0)!=1){J[a+40>>2]=d;b=c- -64|0;if(J[Bc(J[c+120>>2],794809,b,0)>>2]-3>>>0>=4294967294){ig(c+96|0,J[J[a>>2]+24>>2]);d=Md(795345);b=Ef(b,c+48|0);De(J[c+104>>2],d,b);od(J[a+40>>2],796535)}d=c- -64|0;uc(d);DI(a,c+40|0);b=J[a+84>>2];k_(a,b+24|0,J[b+56>>2]);if(J[Bc(J[c+120>>2],806145,d,0)>>2]!=6)break s;b=J[c+72>>2];t:{if(J[b+12>>2]<2)break t;d=b;b=c+48|0;if(J[Mc(d,0,b,0)>>2]-3>>>0<4294967294)break q;l=O[c+56>>3];g=J[c+56>>2];m=J[c+48>>2];uc(b);if(J[Mc(J[c+72>>2],1,b,0)>>2]-3>>> -0<4294967294)break r;i=J[c+48>>2];d=J[c+56>>2];j=O[c+56>>3];uc(b);b=J[a+40>>2];h=O[a+48>>3];O[c+24>>3]=((i|0)==1?+(d|0):j)-O[a+56>>3];O[c+16>>3]=((m|0)==1?+(g|0):l)-h;Xc(b,806781,c+16|0);q=3;m=J[c+72>>2];if(J[m+12>>2]<=3)break t;n=2;while(1){b=c+48|0;if(J[Mc(m,n,b,0)>>2]-3>>>0<=4294967293)break q;l=O[c+56>>3];g=J[c+56>>2];m=J[c+48>>2];uc(b);if(J[Mc(J[c+72>>2],q,b,0)>>2]-3>>>0<=4294967293)break r;i=J[c+48>>2];d=J[c+56>>2];j=O[c+56>>3];uc(b);b=J[a+40>>2];h=O[a+48>>3];O[c+8>>3]=((i|0)==1?+(d|0):j)-O[a+ -56>>3];O[c>>3]=((m|0)==1?+(g|0):l)-h;Xc(b,807228,c);n=n+2|0;q=n|1;m=J[c+72>>2];if((q|0)>2])continue;break}}od(J[a+40>>2],802489);i=c- -64|0;uc(i);ig(c+80|0,J[J[a>>2]+24>>2]);b=Md(803275);J[c+72>>2]=J[J[a+40>>2]>>2];J[c+64>>2]=1;De(J[c+88>>2],b,i);b=Md(774992);J[c+64>>2]=4;R=c,S=Md(803973),J[R+72>>2]=S;De(J[c+88>>2],b,i);gp(i,J[J[a>>2]+24>>2]);J[c+56>>2]=0;J[c+60>>2]=0;J[c+48>>2]=2;d=c+48|0;Dg(J[c+72>>2],d);J[c+56>>2]=0;J[c+60>>2]=0;J[c+48>>2]=2;Dg(J[c+72>>2],d);j=O[a+48>>3];h=O[a+64>>3];J[c+ -48>>2]=2;O[c+56>>3]=h-j;Dg(J[c+72>>2],d);j=O[a+56>>3];h=O[a+72>>3];J[c+48>>2]=2;O[c+56>>3]=h-j;Dg(J[c+72>>2],d);b=Md(804314);De(J[c+88>>2],b,i);if(J[c+96>>2]==7){ig(i,J[J[a>>2]+24>>2]);ig(d,J[J[a>>2]+24>>2]);b=Md(804978);De(J[c+56>>2],b,c+96|0);b=Md(805354);De(J[c+72>>2],b,d);b=Md(805693);De(J[c+88>>2],b,i)}n=rc(48);b=J[a+40>>2];d=J[b>>2];b=J[b+4>>2];J[695492]=0;d=Wn(n,b,0,d,c+80|0);b=J[695492];J[695492]=0;if((b|0)!=1){a=a+24|0;uc(a);J[a+8>>2]=d;J[a>>2]=8;break p}break a}break a}uc(c- -64|0);break p}uc(c+ -48|0);uc(c- -64|0);break p}uc(c+48|0);uc(c- -64|0)}uc(c+112|0);bc=c+128|0;break b}if(!sd(J[a+16>>2],792928)){c=bc-112|0;bc=c;J[c+96>>2]=13;J[c+80>>2]=13;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;b=J[a+8>>2];u:{if((b|0)<0){J[c+96>>2]=5;break u}Tm(J[a+4>>2],b,J[a+12>>2],c+96|0,0);if(J[c+96>>2]!=7)break u;n=rc(8);J[695492]=0;d=$(3184,n|0)|0;b=J[695492];J[695492]=0;v:{w:{x:{if((b|0)!=1){J[a+40>>2]=d;b=c+48|0;if(J[Bc(J[c+104>>2],794809,b,0)>>2]-3>>>0>=4294967294){ig(c+80|0,J[J[a>>2]+24>>2]);d=Md(795345); -b=Ef(b,c+32|0);De(J[c+88>>2],d,b);od(J[a+40>>2],796535)}b=c+48|0;uc(b);y:{if(J[Bc(J[c+104>>2],797235,b,0)>>2]==6)if(j_(a,b))break y;uc(c+48|0);break u}b=c+48|0;uc(b);if(J[Bc(J[c+104>>2],806145,b,0)>>2]!=6)break x;b=J[c+56>>2];z:{if(J[b+12>>2]<2)break z;d=b;b=c+32|0;if(J[Mc(d,0,b,0)>>2]-3>>>0<4294967294)break v;l=O[c+40>>3];g=J[c+40>>2];m=J[c+32>>2];uc(b);if(J[Mc(J[c+56>>2],1,b,0)>>2]-3>>>0<4294967294)break w;i=J[c+32>>2];d=J[c+40>>2];j=O[c+40>>3];uc(b);b=J[a+40>>2];h=O[a+48>>3];O[c+24>>3]=((i|0)== -1?+(d|0):j)-O[a+56>>3];O[c+16>>3]=((m|0)==1?+(g|0):l)-h;Xc(b,806781,c+16|0);q=3;m=J[c+56>>2];if(J[m+12>>2]<=3)break z;n=2;while(1){b=c+32|0;if(J[Mc(m,n,b,0)>>2]-3>>>0<=4294967293)break v;l=O[c+40>>3];g=J[c+40>>2];m=J[c+32>>2];uc(b);if(J[Mc(J[c+56>>2],q,b,0)>>2]-3>>>0<=4294967293)break w;i=J[c+32>>2];d=J[c+40>>2];j=O[c+40>>3];uc(b);b=J[a+40>>2];h=O[a+48>>3];O[c+8>>3]=((i|0)==1?+(d|0):j)-O[a+56>>3];O[c>>3]=((m|0)==1?+(g|0):l)-h;Xc(b,807228,c);n=n+2|0;q=n|1;m=J[c+56>>2];if((q|0)>2])continue; -break}}od(J[a+40>>2],807599);i=c+48|0;uc(i);ig(c- -64|0,J[J[a>>2]+24>>2]);b=Md(803275);J[c+56>>2]=J[J[a+40>>2]>>2];J[c+48>>2]=1;De(J[c+72>>2],b,i);b=Md(774992);J[c+48>>2]=4;R=c,S=Md(803973),J[R+56>>2]=S;De(J[c+72>>2],b,i);gp(i,J[J[a>>2]+24>>2]);J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2;d=c+32|0;Dg(J[c+56>>2],d);J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2;Dg(J[c+56>>2],d);j=O[a+48>>3];h=O[a+64>>3];J[c+32>>2]=2;O[c+40>>3]=h-j;Dg(J[c+56>>2],d);j=O[a+56>>3];h=O[a+72>>3];J[c+32>>2]=2;O[c+40>>3]=h-j;Dg(J[c+56>> -2],d);b=Md(804314);De(J[c+72>>2],b,i);if(J[c+80>>2]==7){ig(i,J[J[a>>2]+24>>2]);ig(d,J[J[a>>2]+24>>2]);b=Md(804978);De(J[c+40>>2],b,c+80|0);b=Md(805354);De(J[c+56>>2],b,d);b=Md(805693);De(J[c+72>>2],b,i)}n=rc(48);b=J[a+40>>2];d=J[b>>2];b=J[b+4>>2];J[695492]=0;d=Wn(n,b,0,d,c- -64|0);b=J[695492];J[695492]=0;if((b|0)!=1){a=a+24|0;uc(a);J[a+8>>2]=d;J[a>>2]=8;break u}break a}break a}uc(c+48|0);break u}uc(c+32|0);uc(c+48|0);break u}uc(c+32|0);uc(c+48|0)}uc(c+96|0);bc=c+112|0;break b}if(sd(J[a+16>>2],793461))break b; -f=bc-192|0;bc=f;J[f+176>>2]=13;J[f+160>>2]=13;J[f+144>>2]=13;J[f+128>>2]=13;J[f+112>>2]=13;J[f+96>>2]=13;J[f+80>>2]=13;J[f+64>>2]=13;J[f+48>>2]=13;b=J[a+8>>2];A:{if((b|0)<0){J[f+176>>2]=5;break A}Tm(J[a+4>>2],b,J[a+12>>2],f+176|0,0);if(J[f+176>>2]!=7)break A;n=rc(8);J[695492]=0;d=$(3184,n|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+40>>2]=d;b=f+128|0;if(J[Bc(J[f+184>>2],794809,b,0)>>2]-3>>>0>=4294967294){ig(f+160|0,J[J[a>>2]+24>>2]);d=Md(795345);b=Ef(b,f+112|0);De(J[f+168>>2],d,b);od(J[a+ -40>>2],796535)}b=f+128|0;uc(b);B:{if(J[Bc(J[f+184>>2],807669,b,0)>>2]==3){b=J[f+136>>2];n=rc(8);J[695492]=0;m=aa(3183,n|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break B;break a}n=rc(8);J[695492]=0;m=$(3184,n|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break B;break a}b=f+128|0;uc(b);c=J[Bc(J[f+184>>2],808138,b,0)>>2];i=J[f+136>>2];uc(b);C:{if(J[Bc(J[f+184>>2],808661,b,0)>>2]==3){b=J[f+136>>2];n=rc(8);J[695492]=0;q=aa(3183,n|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break C;break a}n=rc(8);J[695492]= -0;q=$(3184,n|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break C;break a}g=f+128|0;uc(g);d=J[Bc(J[f+184>>2],808850,g,0)>>2];b=J[f+136>>2];uc(g);g=a;n=(c|0)==1?i:0;D=(d|0)==1?b:0;p=bc-128|0;bc=p;D:{E:{b=m;F:{if(J[b>>2]<2)break F;a=J[b+4>>2];if(K[a|0]!=254|K[a+1|0]!=255)break F;k=rc(8);J[695492]=0;b=$(3184,k|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break E;if(J[m>>2]<4)break F;d=2;k=3;while(1){a=J[m+4>>2];if(K[a+d|0])a=63;else a=K[a+k|0];zd(b,a<<24>>24);d=d+2|0;k=d|1;if((k|0)>2])continue;break}}a= --1;d=-1;G:{H:{if(!q)break H;k=rc(16);J[695492]=0;o=$(3185,k|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break E;k=J[q>>2];if((k|0)>0){d=0;while(1){I:{if((d|0)>=(k|0))break I;while(1){k=J[q>>2];a=H[J[q+4>>2]+d|0];if(a>>>0<=255)a=K[a+2306848|0]==1;else a=0;if(!a)break I;d=d+1|0;if((k|0)>(d|0))continue;break}}a=d;if((k|0)>(a|0)){while(1){a=a+1|0;if((a|0)>2]){i=H[J[q+4>>2]+a|0];if(i>>>0<=255)i=K[i+2306848|0]==1;else i=0;if(!i)continue}break}k=rc(8);J[695492]=0;i=ha(3288,k|0,q|0,d|0,a-d|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break E;id(o,i);k=J[q>>2];d=a}if((d|0)<(k|0))continue;break}}if(J[o+8>>2]<3){a=-1;d=-1;break H}a=-1;d=sd(J[J[o>>2]+8>>2],819313)?-1:0;J:{if(J[o+8>>2]<4)break J;d=sd(J[J[o>>2]+12>>2],819313)?d:1;if(J[o+8>>2]<5)break J;d=sd(J[J[o>>2]+16>>2],819313)?d:2;k=6;if(J[o+8>>2]<6)break J;d=sd(J[J[o>>2]+20>>2],819313)?d:3;if(J[o+8>>2]<=6)break J;while(1){i=k<<2;K:{if(!sd(J[i+J[o>>2]>>2],819313)){d=k-2|0;break K}a=sd(J[i+J[o>>2]>>2],819512)?a:k-6|0}k=k+1|0;if((k|0)>2])continue;break}}if((d| -0)<0)break H;c=d<<2;i=J[c+J[o>>2]>>2];Eh(i);od(i,819758);w=Wf(J[J[(c+J[o>>2]|0)+4>>2]+4>>2]);i=1;break G}xc(1,-1,820018,0);k=rc(8);J[695492]=0;c=aa(3182,k|0,819758)|0;i=J[695492];J[695492]=0;if((i|0)==1)break E;id(o,c);k=rc(8);J[695492]=0;c=aa(3182,k|0,820356)|0;i=J[695492];J[695492]=0;if((i|0)==1)break E;id(o,c);k=rc(8);J[695492]=0;c=aa(3182,k|0,819313)|0;i=J[695492];J[695492]=0;if((i|0)==1)break E;id(o,c);i=0}od(J[g+40>>2],820552);L:{M:{if((D|0)!=270){if((D|0)!=180){if((D|0)!=90)break M;c=J[g+40>> -2];O[p+80>>3]=O[g+64>>3]-O[g+48>>3];Xc(c,820786,p+80|0);u=O[g+72>>3]-O[g+56>>3];j=O[g+64>>3];c=g+48|0;break L}c=J[g+40>>2];j=O[g+48>>3];h=O[g+64>>3];O[p+104>>3]=O[g+72>>3]-O[g+56>>3];O[p+96>>3]=h-j;Xc(c,821014,p+96|0);j=O[g+72>>3];u=O[g+64>>3]-j;c=g+56|0;break L}c=J[g+40>>2];O[p+112>>3]=O[g+72>>3]-O[g+56>>3];Xc(c,821320,p+112|0);u=O[g+72>>3]-O[g+56>>3];j=O[g+64>>3];c=g+48|0;break L}u=O[g+64>>3]-O[g+48>>3];j=O[g+72>>3];c=g+56|0}h=O[c>>3];od(J[g+40>>2],821610);if(J[b>>2]>0){k=0;while(1){l=.5;c=J[(K[J[m+ -4>>2]+k|0]<<2)+2695728>>2];N:{if(!c)break N;if(!ot(J[660770],c,p+126|0))break N;l=+L[p+126>>1]}t=t+l;k=k+1|0;if((k|0)>2])continue;break}}l=j-h;O:{if(w!=0)break O;j=(u+-0)/t;h=l+-0;w=V(j>2]+(d<<2)|0)+4>>2];Eh(d);O[p+64>>3]=w;Xc(d,821636,p- -64|0)}h=t*w;P:{Q:switch(n-1|0){default:h=2;break P;case 0:h=(u-h)*.5;break P;case 1:break Q}h=u+-0+-2-h}j=l*.5+w*-.4;k=0;if((a|0)>=0){i=a<<2;d=J[(i+J[o>>2]|0)+16>>2];Eh(d);O[p+48>>3]=h;Xc(d,821636,p+48|0);d=J[(i+J[o>>2]|0)+20>> -2];Eh(d);O[p+32>>3]=j;Xc(d,821636,p+32|0)}if(J[o+8>>2]>0)while(1){zd(Dh(J[g+40>>2],J[J[o>>2]+(k<<2)>>2]),32);k=k+1|0;if((k|0)>2])continue;break}if((a|0)<0){a=J[g+40>>2];O[p+24>>3]=j;O[p+16>>3]=h;Xc(a,822084,p+16|0)}zd(J[g+40>>2],40);if(J[b>>2]>0){k=0;while(1){i=K[J[b+4>>2]+k|0];d=i<<24>>24;R:{if(!((i|0)!=92&i-40>>>0>=2)){zd(J[g+40>>2],92);zd(J[g+40>>2],d);break R}a=J[g+40>>2];if((d|0)<=31){J[p>>2]=i;Xc(a,822168,p);break R}zd(a,d)}k=k+1|0;if((k|0)>2])continue;break}}od(J[g+40>>2],822746); -od(J[g+40>>2],823046);od(J[g+40>>2],823264);d=J[o+8>>2];if((d|0)>0){k=0;while(1){a=J[J[o>>2]+(k<<2)>>2];if(a){qc(Rc(a));d=J[o+8>>2]}k=k+1|0;if((k|0)<(d|0))continue;break}}qc(dd(o));if((b|0)!=(m|0))qc(Rc(b));bc=p+128|0;break D}a=Z()|0;qc(k);ba(a|0);B()}qc(Rc(m));qc(Rc(q));if(O[J[g+84>>2]+8>>3]!=0){DI(g,f+40|0);a=J[g+40>>2];j=O[g+56>>3];h=O[g+72>>3];l=O[f+40>>3];O[f+16>>3]=O[g+64>>3]-O[g+48>>3]-l;O[f+24>>3]=h-j-l;h=l*.5;O[f>>3]=h;O[f+8>>3]=h;Xc(a,809414,f)}ig(f+144|0,J[J[g>>2]+24>>2]);a=Md(803275); -J[f+136>>2]=J[J[g+40>>2]>>2];J[f+128>>2]=1;b=f+128|0;De(J[f+152>>2],a,b);a=Md(774992);J[f+128>>2]=4;R=f,S=Md(803973),J[R+136>>2]=S;De(J[f+152>>2],a,b);gp(b,J[J[g>>2]+24>>2]);J[f+120>>2]=0;J[f+124>>2]=0;J[f+112>>2]=2;a=f+112|0;Dg(J[f+136>>2],a);J[f+120>>2]=0;J[f+124>>2]=0;J[f+112>>2]=2;Dg(J[f+136>>2],a);j=O[g+48>>3];h=O[g+64>>3];J[f+112>>2]=2;O[f+120>>3]=h-j;Dg(J[f+136>>2],a);j=O[g+56>>3];h=O[g+72>>3];J[f+112>>2]=2;O[f+120>>3]=h-j;Dg(J[f+136>>2],a);a=Md(804314);De(J[f+152>>2],a,b);ig(f+96|0,J[J[g>> -2]+24>>2]);d=f+48|0;ig(d,J[J[g>>2]+24>>2]);a=Md(826506);J[f+128>>2]=4;R=f,S=Md(826737),J[R+136>>2]=S;De(J[f+56>>2],a,b);a=Md(774992);J[f+128>>2]=4;R=f,S=Md(809753),J[R+136>>2]=S;De(J[f+56>>2],a,b);a=Md(809994);J[f+128>>2]=4;R=f,S=Md(810459),J[R+136>>2]=S;De(J[f+56>>2],a,b);a=Md(810728);J[f+128>>2]=4;R=f,S=Md(811053),J[R+136>>2]=S;De(J[f+56>>2],a,b);b=f- -64|0;ig(b,J[J[g>>2]+24>>2]);a=Md(811295);De(J[f+72>>2],a,d);a=Md(826737);De(J[f+104>>2],a,b);if(J[f+160>>2]==7){b=f+80|0;ig(b,J[J[g>>2]+24>>2]); -a=Md(804978);De(J[f+88>>2],a,f+160|0);a=Md(805354);De(J[f+104>>2],a,b)}a=Md(805693);De(J[f+152>>2],a,f+96|0);n=rc(48);a=J[g+40>>2];b=J[a>>2];a=J[a+4>>2];J[695492]=0;b=Wn(n,a,0,b,f+144|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;a=g+24|0;uc(a);J[a+8>>2]=b;J[a>>2]=8}uc(f+176|0);bc=f+192|0}uc(x);bc=x+16|0;return}a=Z()|0;qc(n);ba(a|0);B()}function u5a(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;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;a:switch(a|0){case 0:j=c;if(!(!K[b+ -1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);m=J[b+12>>2];b:{c:{if(m){a=J[b+84>>2];J[b+1212>>2]=a;J[j+120>>2]=0;l=J[j+60>>2];break c}J[j+120>>2]=0;if(!J[j+60>>2])break b;a=J[b+84>>2];l=1}k=J[j+116>>2];o=J[j+112>>2];n=J[j+108>>2];p=J[j+104>>2];c=J[b+92>>2];h=J[b+88>>2];i=J[b+80>>2];d:{if(!(!m|!l)){a=(a|0)<(n|0)?a:n;i=(i|0)<(p|0)?i:p;c=(c|0)>(k|0)?c:k;h=(h|0)>(o|0)?h:o;break d}if(m)break d;c=k;h=o;a=n;i=p;if(!l)break b}if((h|0)<(i|0)|(a|0)>(c|0))break b;a=J[g+ -20>>2]-1|0;if((a|0)>=0)while(1){c=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(c)qc(c);c=(a|0)>0;a=a-1|0;if(c)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;a=J[f+20>>2];c=(h-i|0)+3|0;e:{if(c>>>0<=M[f+24>>2])break e;if(a)qc(a);J[f+24>>2]=c;a=rc(c>>>0>536870911?-1:c<<3);J[f+20>>2]=a;if((c|0)==J[f+12>>2])break e;h=J[f+8>>2];if(h){qc(h);a=J[f+20>>2]}J[f+12>>2]= -c;s=f,t=rc(c),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];c=0;I[a+2>>1]=0;a=0;if(m){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;f:{if(h>>>0<=M[d+24>>2])break f;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break f;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=rc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=yd(b,d)}if(l){c=J[e+20>>2];h=(J[j+112>>2]-J[j+104>>2]|0)+3|0;g:{if(h>>>0<=M[e+24>> -2])break g;if(c)qc(c);J[e+24>>2]=h;c=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=c;if((h|0)==J[e+12>>2])break g;i=J[e+8>>2];if(i){qc(i);c=J[e+20>>2]}J[e+12>>2]=h;s=e,t=rc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=c;J[e+16>>2]=J[e+8>>2];I[c+2>>1]=0;c=de(j,e)}if((a|c)!=1)break b;while(1){h=a&1;h:{i:{if(!(!h|!(c&1))){a=J[d+4>>2];c=J[e+4>>2];if((a|0)==(c|0)){G2(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(g,f)}a=yd(b,d);break i}if((a|0)<(c|0)){Jf(d,f,g);a=yd(b,d);h=1;break h}Jf(e,f,g);a=1;break i}a= -0;if(h){Jf(d,f,g);a=yd(b,d)}h=0;if(!(c&1))break h;Jf(e,f,g)}h=de(j,e)}c=h;if(h|a)continue;break}}return;case 1:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);j:{if(!J[b+12>>2])break j;a=J[b+84>>2];J[b+1212>>2]=a;J[c+120>>2]=0;if(!J[c+60>>2])break j;h=J[b+88>>2];i=J[c+112>>2];h=(h|0)<(i|0)?h:i;i=J[b+80>>2];j=J[c+104>>2];i=(j|0)<(i|0)?i:j;if((h|0)<(i|0))break j;j=J[c+108>>2];l=(a|0)>(j|0)?a:j;a=J[b+92>>2];j=J[c+116>>2];if((l|0)>(((a|0)<(j|0)?a:j)|0))break j; -a=J[f+20>>2];h=(h-i|0)+3|0;k:{if(h>>>0<=M[f+24>>2])break k;if(a)qc(a);J[f+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[f+20>>2]=a;if((h|0)==J[f+12>>2])break k;i=J[f+8>>2];if(i){qc(i);a=J[f+20>>2]}J[f+12>>2]=h;s=f,t=rc(h),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];I[a+2>>1]=0;a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;l:{if(h>>>0<=M[d+24>>2])break l;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break l;i=J[d+8>>2];if(i){qc(i);a=J[d+20>> -2]}J[d+12>>2]=h;s=d,t=rc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=J[e+20>>2];h=(J[c+112>>2]-J[c+104>>2]|0)+3|0;m:{if(h>>>0<=M[e+24>>2])break m;if(a)qc(a);J[e+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=a;if((h|0)==J[e+12>>2])break m;i=J[e+8>>2];if(i){qc(i);a=J[e+20>>2]}J[e+12>>2]=h;s=e,t=rc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=a;J[e+16>>2]=J[e+8>>2];I[a+2>>1]=0;if(!yd(b,d))break j;if(!de(c,e))break j;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){h=J[(J[J[g+ -32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(h)qc(h);h=(a|0)>0;a=a-1|0;if(h)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;while(1){if(J[d+4>>2]>2]){if(yd(b,d))continue;break j}while(1){a=J[e+4>>2];h=J[d+4>>2];if((a|0)<(h|0)){if(de(c,e))continue;break j}break}if((a|0)!=(h|0))continue;Of(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(g,f)}if(!yd(b,d))break j; -if(de(c,e))continue;break}}return;case 2:j=c;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);m=J[b+12>>2];n:{o:{if(m){a=J[b+84>>2];J[b+1212>>2]=a;J[j+120>>2]=0;l=J[j+60>>2];break o}J[j+120>>2]=0;if(!J[j+60>>2])break n;a=J[b+84>>2];l=1}k=J[j+116>>2];o=J[j+112>>2];n=J[j+108>>2];p=J[j+104>>2];c=J[b+92>>2];h=J[b+88>>2];i=J[b+80>>2];p:{if(!(!m|!l)){a=(a|0)<(n|0)?a:n;i=(i|0)<(p|0)?i:p;c=(c|0)>(k|0)?c:k;h=(h|0)>(o|0)?h:o;break p}if(m)break p;c=k;h=o;a=n;i= -p;if(!l)break n}if((h|0)<(i|0)|(a|0)>(c|0))break n;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){c=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(c)qc(c);c=(a|0)>0;a=a-1|0;if(c)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;a=J[f+20>>2];c=(h-i|0)+3|0;q:{if(c>>>0<=M[f+24>>2])break q;if(a)qc(a);J[f+24>>2]=c;a=rc(c>>>0>536870911?-1:c<<3);J[f+20>>2]=a;if((c|0)==J[f+12>>2])break q; -h=J[f+8>>2];if(h){qc(h);a=J[f+20>>2]}J[f+12>>2]=c;s=f,t=rc(c),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];c=0;I[a+2>>1]=0;a=0;if(m){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;r:{if(h>>>0<=M[d+24>>2])break r;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break r;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=rc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=yd(b,d)}if(l){c=J[e+20>>2];h=(J[j+ -112>>2]-J[j+104>>2]|0)+3|0;s:{if(h>>>0<=M[e+24>>2])break s;if(c)qc(c);J[e+24>>2]=h;c=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=c;if((h|0)==J[e+12>>2])break s;i=J[e+8>>2];if(i){qc(i);c=J[e+20>>2]}J[e+12>>2]=h;s=e,t=rc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=c;J[e+16>>2]=J[e+8>>2];I[c+2>>1]=0;c=de(j,e)}if((a|c)!=1)break n;while(1){h=a&1;t:{u:{if(!(!h|!(c&1))){a=J[d+4>>2];c=J[e+4>>2];if((a|0)==(c|0)){F2(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(g,f)}a=yd(b,d);break u}if((a|0)<(c|0)){Jf(d, -f,g);a=yd(b,d);h=1;break t}Jf(e,f,g);a=1;break u}a=0;if(h){Jf(d,f,g);a=yd(b,d)}h=0;if(!(c&1))break t;Jf(e,f,g)}h=de(j,e)}c=h;if(h|a)continue;break}}return;case 3:j=c;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);m=J[b+12>>2];v:{w:{if(m){a=J[b+84>>2];J[b+1212>>2]=a;J[j+120>>2]=0;l=J[j+60>>2];break w}J[j+120>>2]=0;if(!J[j+60>>2])break v;a=J[b+84>>2];l=1}k=J[j+116>>2];o=J[j+112>>2];n=J[j+108>>2];p=J[j+104>>2];c=J[b+92>>2];h=J[b+88>>2];i=J[b+80>>2];x:{if(!(!m| -!l)){a=(a|0)<(n|0)?a:n;i=(i|0)<(p|0)?i:p;c=(c|0)>(k|0)?c:k;h=(h|0)>(o|0)?h:o;break x}if(m)break x;c=k;h=o;a=n;i=p;if(!l)break v}if((h|0)<(i|0)|(a|0)>(c|0))break v;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){c=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(c)qc(c);c=(a|0)>0;a=a-1|0;if(c)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;a=J[f+20>>2];c=(h-i|0)+3|0;y:{if(c>>> -0<=M[f+24>>2])break y;if(a)qc(a);J[f+24>>2]=c;a=rc(c>>>0>536870911?-1:c<<3);J[f+20>>2]=a;if((c|0)==J[f+12>>2])break y;h=J[f+8>>2];if(h){qc(h);a=J[f+20>>2]}J[f+12>>2]=c;s=f,t=rc(c),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];c=0;I[a+2>>1]=0;a=0;if(m){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;z:{if(h>>>0<=M[d+24>>2])break z;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break z;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=rc(h), -J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=yd(b,d)}if(l){c=J[e+20>>2];h=(J[j+112>>2]-J[j+104>>2]|0)+3|0;A:{if(h>>>0<=M[e+24>>2])break A;if(c)qc(c);J[e+24>>2]=h;c=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=c;if((h|0)==J[e+12>>2])break A;i=J[e+8>>2];if(i){qc(i);c=J[e+20>>2]}J[e+12>>2]=h;s=e,t=rc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=c;J[e+16>>2]=J[e+8>>2];I[c+2>>1]=0;c=de(j,e)}if((a|c)!=1)break v;while(1){h=a&1;B:{C:{if(!(!h|!(c&1))){a=J[d+4>>2];c=J[e+4>>2];if((a| -0)==(c|0)){E2(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(g,f)}a=yd(b,d);break C}if((a|0)<(c|0)){Jf(d,f,g);a=yd(b,d);h=1;break B}Jf(e,f,g);a=1;break C}a=0;if(h){Jf(d,f,g);a=yd(b,d)}h=0;if(!(c&1))break B;Jf(e,f,g)}h=de(j,e)}c=h;if(h|a)continue;break}}return;case 4:j=c;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);m=J[b+12>>2];D:{E:{if(m){a=J[b+84>>2];J[b+1212>>2]=a;J[j+120>>2]=0;l=J[j+60>>2];break E}J[j+120>>2]=0;if(!J[j+60>>2])break D; -a=J[b+84>>2];l=1}k=J[j+116>>2];o=J[j+112>>2];n=J[j+108>>2];p=J[j+104>>2];c=J[b+92>>2];h=J[b+88>>2];i=J[b+80>>2];F:{if(!(!m|!l)){a=(a|0)<(n|0)?a:n;i=(i|0)<(p|0)?i:p;c=(c|0)>(k|0)?c:k;h=(h|0)>(o|0)?h:o;break F}if(m)break F;c=k;h=o;a=n;i=p;if(!l)break D}if((h|0)<(i|0)|(a|0)>(c|0))break D;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){c=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(c)qc(c);c=(a|0)>0;a=a-1|0;if(c)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647; -J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;a=J[f+20>>2];c=(h-i|0)+3|0;G:{if(c>>>0<=M[f+24>>2])break G;if(a)qc(a);J[f+24>>2]=c;a=rc(c>>>0>536870911?-1:c<<3);J[f+20>>2]=a;if((c|0)==J[f+12>>2])break G;h=J[f+8>>2];if(h){qc(h);a=J[f+20>>2]}J[f+12>>2]=c;s=f,t=rc(c),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];c=0;I[a+2>>1]=0;a=0;if(m){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;H:{if(h>>>0<=M[d+24>>2])break H;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>> -0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break H;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=rc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=yd(b,d)}if(l){c=J[e+20>>2];h=(J[j+112>>2]-J[j+104>>2]|0)+3|0;I:{if(h>>>0<=M[e+24>>2])break I;if(c)qc(c);J[e+24>>2]=h;c=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=c;if((h|0)==J[e+12>>2])break I;i=J[e+8>>2];if(i){qc(i);c=J[e+20>>2]}J[e+12>>2]=h;s=e,t=rc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=c;J[e+ -16>>2]=J[e+8>>2];I[c+2>>1]=0;c=de(j,e)}if((a|c)!=1)break D;while(1){h=a&1;J:{K:{if(!(!h|!(c&1))){a=J[d+4>>2];c=J[e+4>>2];if((a|0)==(c|0)){D2(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(g,f)}a=yd(b,d);break K}if((a|0)<(c|0)){Jf(d,f,g);a=yd(b,d);h=1;break J}Jf(e,f,g);a=1;break K}a=0;if(h){Jf(d,f,g);a=yd(b,d)}h=0;if(!(c&1))break J;Jf(e,f,g)}h=de(j,e)}c=h;if(h|a)continue;break}}return;case 5:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b); -L:{if(!J[b+12>>2])break L;J[b+1212>>2]=J[b+84>>2];J[c+120>>2]=0;j=J[c+60>>2];a=J[f+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;M:{if(h>>>0<=M[f+24>>2])break M;if(a)qc(a);J[f+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[f+20>>2]=a;if((h|0)==J[f+12>>2])break M;l=J[f+8>>2];if(l){qc(l);a=J[f+20>>2]}J[f+12>>2]=h;s=f,t=rc(h),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];I[a+2>>1]=0;a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;N:{if(h>>>0<=M[d+24>>2])break N;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0> -536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break N;l=J[d+8>>2];if(l){qc(l);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=rc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=J[e+20>>2];h=(J[c+112>>2]-J[c+104>>2]|0)+3|0;O:{if(h>>>0<=M[e+24>>2])break O;if(a)qc(a);J[e+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=a;if((h|0)==J[e+12>>2])break O;l=J[e+8>>2];if(l){qc(l);a=J[e+20>>2]}J[e+12>>2]=h;s=e,t=rc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=a;J[e+16>>2]=J[e+8>>2]; -I[a+2>>1]=0;if(!yd(b,d))break L;if(j)i=de(c,e);a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){h=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(h)qc(h);h=(a|0)>0;a=a-1|0;if(h)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;while(1){a=0;P:{Q:{if(!(i&1))break Q;R:{while(1){h=J[e+4>>2];i=J[d+4>>2];if((h|0)<(i|0)){j=2147483632;J[e>>2]=2147483632;n=J[e+8>>2];J[e+16>>2]=n;h=J[e+ -20>>2];J[e+28>>2]=h;I[h+2>>1]=0;a=J[c+120>>2];while(1){l=a;r=J[c+60>>2];if(r>>>0<=a>>>0)break R;p=J[J[c+72>>2]+(a>>>6&67108860)>>2]+P(a&255,12)|0;i=J[p+8>>2];m=J[p+4>>2];while(1){q=J[J[c+52>>2]+(i>>>8&16777212)>>2]+P(i&1023,12)|0;k=J[q+8>>2];S:{if((k|0)>=0){a=0;if(k>>>0>=M[c>>2])break S;a=J[J[c+12>>2]+(k>>>10&4194300)>>2]+(k&4095)|0;break S}k=k^-1;a=0;if(k>>>0>=M[c+20>>2])break S;a=J[(J[J[c+32>>2]+(k>>>4&268435452)>>2]+((k&63)<<3)|0)+4>>2]}o=J[q>>2];i=i+1|0;k=J[q+4>>2];T:{if((k|0)<0){a=K[a|0];U:{V:{if((o| -0)!=(j+1|0))break V;j=I[h+2>>1];if((a|0)!=K[J[h+4>>2]]|(j|0)>=0)break V;I[h+2>>1]=j+k;break U}H[n|0]=a;a=J[e+28>>2];h=a+8|0;J[e+28>>2]=h;j=J[e+16>>2];n=j+1|0;J[e+16>>2]=n;I[a+10>>1]=k;I[a+8>>1]=o;J[a+12>>2]=j}j=o+(k^-1)|0;break T}tc(n,a,k);a=J[e+28>>2];W:{X:{if((o|0)!=(J[e>>2]+1|0))break X;h=I[a+2>>1];if((h|0)<=0)break X;I[a+2>>1]=h+k;j=J[e+16>>2];h=a;break W}h=a+8|0;J[e+28>>2]=h;j=J[e+16>>2];I[a+10>>1]=k;I[a+8>>1]=o;J[a+12>>2]=j}n=j+k|0;J[e+16>>2]=n;j=(k+o|0)-1|0}J[e>>2]=j;m=m-1|0;if(m)continue; -break}a=J[c+120>>2]+1|0;J[c+120>>2]=a;if(J[e+20>>2]==(h|0))continue;break}J[e+4>>2]=J[p>>2];if(l>>>0>>0)continue;break R}break}a=1;if((h|0)!=(i|0))break Q;UK(d,e,f);i=1;if(J[f+28>>2]==J[f+20>>2])break P;J[f+4>>2]=J[d+4>>2];Cj(g,f);break P}a=0}i=a;Jf(d,f,g)}if(yd(b,d))continue;break}}return;case 6:J[c+120>>2]=0;Y:{if(!J[c+60>>2])break Y;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);i=J[b+12>>2];if(i)J[b+1212>>2]=J[b+84>>2];a=J[f+20>>2];h=(J[c+112>> -2]-J[c+104>>2]|0)+3|0;Z:{if(h>>>0<=M[f+24>>2])break Z;if(a)qc(a);J[f+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[f+20>>2]=a;if((h|0)==J[f+12>>2])break Z;j=J[f+8>>2];if(j){qc(j);a=J[f+20>>2]}J[f+12>>2]=h;s=f,t=rc(h),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];I[a+2>>1]=0;a=J[e+20>>2];h=(J[c+112>>2]-J[c+104>>2]|0)+3|0;_:{if(h>>>0<=M[e+24>>2])break _;if(a)qc(a);J[e+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=a;if((h|0)==J[e+12>>2])break _;j=J[e+8>>2];if(j){qc(j);a=J[e+20>>2]}J[e+ -12>>2]=h;s=e,t=rc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=a;J[e+16>>2]=J[e+8>>2];I[a+2>>1]=0;a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;$:{if(h>>>0<=M[d+24>>2])break $;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break $;j=J[d+8>>2];if(j){qc(j);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=rc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];h=0;I[a+2>>1]=0;if(!de(c,e))break Y;if(i)h=yd(b,d);a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){i=J[(J[J[g+32>> -2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(i)qc(i);i=(a|0)>0;a=a-1|0;if(i)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;while(1){a=h&1;h=0;aa:{ba:{if(!a)break ba;while(1){a=J[d+4>>2];i=J[e+4>>2];if((a|0)<(i|0)){if(yd(b,d))continue;break ba}break}h=1;if((a|0)!=(i|0))break ba;UK(e,d,f);if(J[f+28>>2]==J[f+20>>2])break aa;J[f+4>>2]=J[e+4>>2];Cj(g,f);break aa}Jf(e,f,g)}if(de(c, -e))continue;break}}break;default:break a}}function Plb(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0;y=f>>>0<=2?J[(f<<2)+231676>>2]:y;if(J[a+20>>2])a=0;else{f=J[J[J[a>>2]+16>>2]+40>>2];if(f){q=b;F=(d|0)!=0;C=e;a=0;g=bc-256|0;bc=g;b=J[f>>2];a:{if(!b)break a;b=J[b+28>>2];if(!b)break a;z=J[b+132>>2];if(!z)break a;a=zc(1E3);H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;J[695492]= -0;J[g+252>>2]=0;J[g+244>>2]=0;J[g+248>>2]=0;D=J[J[z+32>>2]+8>>2];b=J[695492];J[695492]=0;b:{c:{if((b|0)!=1){d=4;if((D|0)<=0)break b;j=a+4|0;G=c+1|0;h=1E3;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{while(1){A:{J[695492]=0;u=J[J[J[z+32>>2]>>2]+(t<<2)>>2];b=J[695492];J[695492]=0;B:{C:{D:{if((b|0)==1)break D;J[695492]=0;b=$(3301,u|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break D;if(!((t|0)==(C|0)|(C|0)<0)|(J[u+40>>2]|(b|0)!=(G|0)))break B;J[695492]=0;J[g+224>>2]=13;b=g+224|0; -c=ga(3291,u|0,839749,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){if(J[c>>2]==7)break C;J[695492]=0;_(3205,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break B}h=Z()|0;break c}h=Z()|0;break c}J[695492]=0;s=$(4,12)|0;b=J[695492];J[695492]=0;if((b|0)==1)break y;J[s+8>>2]=839984;J[s+4>>2]=839837;J[s>>2]=839797;o=0;p=-1;c=1;v=0;while(1){e=J[(v<<2)+s>>2];E:{if(y)if(Ec(y,e))break E;F:{G:{H:{b=Qc(e);if(b>>>0>=2147483632){J[695492]=0;_(1623,g+212|0);b=J[695492];J[695492]=0;if((b|0)==1)break H;break d}I:{J:{if(b>>> -0<=10){H[g+223|0]=b;i=g+212|0;break J}J[695492]=0;f=(b|15)+1|0;i=$(4,f|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break I;J[g+212>>2]=i;J[g+216>>2]=b;J[g+220>>2]=f|-2147483648}N=Zc(i,e,b)+b|0,O=0,H[N|0]=O;J[695492]=0;J[g+192>>2]=13;b=g+192|0;e=ha(3203,J[g+232>>2],(H[g+223|0]<0?J[g+212>>2]:g+212|0)|0,b|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){if(J[e>>2]==8)break G;J[695492]=0;_(3205,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break F}h=Z()|0;b=a;break f}h=Z()|0;break e}h=Z()|0;break e}K:{if(!(c&1)){b= -a;break K}J[695492]=0;J[g+176>>2]=13;aa(3289,u|0,g+176|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=a;break g}c=J[g+184>>2];L:{if(!a){h=1E3;d=0;j=zc(1E3);b=j;break L}b=d+4|0;if(b>>>0<=h>>>0){b=a;break L}while(1){h=h<<1;if(b>>>0>h>>>0)continue;break}b=Vd(a,h);if(!b){b=zc(h);tc(b,a,d);qc(a)}j=b+d|0}H[j|0]=c;H[j+1|0]=c>>>8;H[j+2|0]=c>>>16;H[j+3|0]=c>>>24;J[695492]=0;_(3205,g+176|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;p=d+4|0;M:{if(!b){h=1E3;e=zc(1E3);b=e;a=0;break M}a=d+8|0;if(a>>>0<=h>>>0){e= -j+4|0;a=p;break M}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}a=Vd(b,h);if(a){e=a+p|0;b=a;a=p;break M}a=tc(zc(h),b,p);qc(b);e=a+p|0;b=a;a=p}H[e|0]=o;H[e+1|0]=o>>>8;H[e+2|0]=o>>>16;H[e+3|0]=o>>>24;d=a+4|0;j=e+4|0}J[g+176>>2]=13;J[g+160>>2]=13;J[g+144>>2]=13;a=J[g+200>>2];c=J[J[a>>2]+76>>2];J[695492]=0;a=$(c|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;a=ha(3203,a|0,783512,g+176|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;N:{O:{P:{if(J[a>>2]!=7)break P;J[695492]=0;a=ha(3203, -J[g+184>>2],778057,g+160|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;if(J[a>>2]!=7)break P;a=J[g+168>>2];if(J[a+16>>2]!=1)break P;J[695492]=0;a=ga(3300,a|0,0,g+144|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;if(J[a>>2]==8)break O}J[695492]=0;_(3205,g+192|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;_(3205,g+176|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;_(3205,g+160|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;_(3205,g+144|0);a=J[695492];J[695492]= -0;if((a|0)==1)break h;a=b;break N}J[695492]=0;_(3205,g+192|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;_(3205,g+176|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;a=J[g+152>>2];c=J[J[a>>2]+76>>2];J[695492]=0;i=$(c|0,a|0)|0;a=J[695492];J[695492]=0;Q:{if((a|0)!=1){J[g+128>>2]=13;J[695492]=0;J[g+112>>2]=13;a=ha(3203,i|0,833741,g+128|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;R:{if(J[a>>2]!=4)break R;if(Ec(J[a+8>>2],778057))break R;J[695492]=0;a=ha(3203,i|0,839365,g+112|0,0)|0; -c=J[695492];J[695492]=0;if((c|0)==1)break i;if(J[a>>2]!=4)break R;if(!Ec(J[a+8>>2],840093))break Q}J[695492]=0;_(3205,g+128|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;J[695492]=0;_(3205,g+112|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;J[695492]=0;_(3205,g+160|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;J[695492]=0;_(3205,g+144|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;a=b;break N}h=Z()|0;break f}J[695492]=0;_(3205,g+128|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;J[695492]=0;_(3205, -g+112|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;a=K[g+223|0];c=a<<24>>24<0;f=c?J[g+212>>2]:g+212|0;a=c?J[g+216>>2]:a;e=a+4|0;S:{if(!b){d=0;h=e>>>0<=1E3?1E3:e;j=zc(h);c=j;break S}c=d+e|0;if(c>>>0<=h>>>0){c=b;break S}while(1){h=h<<1;if(c>>>0>h>>>0)continue;break}c=Vd(b,h);if(!c){c=zc(h);tc(c,b,d);qc(b)}j=c+d|0}H[j|0]=a;H[j+1|0]=a>>>8;H[j+2|0]=a>>>16;H[j+3|0]=a>>>24;b=tc(j+4|0,f,a);J[695492]=0;J[g+96>>2]=13;ga(3346,J[g+168>>2],0,g+96|0)|0;f=J[695492];J[695492]=0;T:{U:{if((f|0)!=1){l=J[g+104>>2]; -V:{if(!c){h=1E3;d=0;e=zc(1E3);c=e;break V}d=d+e|0;e=d+4|0;if(e>>>0<=h>>>0){e=a+b|0;break V}while(1){h=h<<1;if(e>>>0>h>>>0)continue;break}a=Vd(c,h);if(a){e=a+d|0;c=a;break V}a=tc(zc(h),c,d);qc(c);e=a+d|0;c=a}H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=l>>>16;H[e+3|0]=l>>>24;J[695492]=0;_(3205,g+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;_(3205,g+160|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;j=d+4|0;f=e+4|0;a=J[g+244>>2];e=a;W:{b=J[g+248>>2];n=(a|0)==(b|0);if(n)break W;while(1){if((l|0)== -J[e>>2])break W;e=e+4|0;if((e|0)!=(b|0))continue;break}break U}if((b|0)==(e|0))break U;J[695492]=0;_(3205,g+144|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;X:{if(!c){h=1E3;j=0;f=zc(1E3);a=f;break X}a=d+5|0;if(a>>>0<=h>>>0){a=c;break X}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}a=Vd(c,h);if(!a){a=zc(h);tc(a,c,j);qc(c)}f=a+j|0}H[f|0]=0;d=j+1|0;j=f+1|0;break T}h=Z()|0;break j}Y:{if(J[g+252>>2]!=(b|0)){J[b>>2]=l;J[g+248>>2]=b+4;break Y}Z:{_:{e=b-a|0;r=e>>2;k=r+1|0;$:{if(k>>>0>=1073741824){J[695492]= -0;_(1589,g+244|0);break $}m=e>>1;k=e>>>0>=2147483644?1073741823:k>>>0>>0?m:k;if(!k){m=0;break Z}if(k>>>0<1073741824)break _;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break d;h=Z()|0;break j}J[695492]=0;m=$(4,k<<2)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k}e=(r<<2)+m|0;J[e>>2]=l;l=e+4|0;if(!n)while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((a|0)!=(b|0))continue;break}J[g+252>>2]=(k<<2)+m;J[g+248>>2]=l;J[g+244>>2]=e;if(!a)break Y;qc(a)}aa:{if(!c){h=1E3;j=0;f=zc(1E3);d=f;break aa}a= -d+5|0;if(a>>>0<=h>>>0){d=c;break aa}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}d=Vd(c,h);if(!d){d=zc(h);tc(d,c,j);qc(c)}f=d+j|0}H[f|0]=1;J[g+80>>2]=13;J[695492]=0;J[g+64>>2]=13;a=ha(3203,i|0,840151,g+80|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;c=0;l=0;ba:{if(J[a>>2]!=1)break ba;J[695492]=0;a=ha(3203,i|0,840194,g- -64|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;l=0;if(J[a>>2]!=1)break ba;c=J[g+88>>2];l=J[g+72>>2]}ca:{da:{ea:{fa:{if(!d){h=1E3;e=0;b=zc(1E3);a=b;break fa}ga:{m=j+5| -0;if(m>>>0>h>>>0){e=j+1|0;while(1){h=h<<1;if(m>>>0>h>>>0)continue;break}a=Vd(d,h);if(!a)break ga;d=a;b=a+e|0;H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;break ea}b=f+1|0;H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;break ea}a=zc(h);b=tc(a,d,e);qc(d);b=b+e|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;if(!a)break da;m=e+4|0;d=a}a=m+4|0;if(a>>>0<=h>>>0){e=b+4|0;break ca}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}a=Vd(d,h);if(a){e=a+m|0;d=a;break ca}a=tc(zc(h),d, -m);qc(d);e=a+m|0;d=a;break ca}h=1E3;m=0;e=zc(1E3);d=e}H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=l>>>16;H[e+3|0]=l>>>24;J[695492]=0;_(3205,g+80|0);a=J[695492];J[695492]=0;if((a|0)==1)break l;J[695492]=0;_(3205,g- -64|0);a=J[695492];J[695492]=0;if((a|0)==1)break l;j=m+4|0;k=e+4|0;ha:{ia:{ja:{ka:{la:{if(F){J[695492]=0;J[g+48>>2]=13;a=g+48|0;b=ha(3203,i|0,841398,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;c=J[b>>2];J[695492]=0;e=J[g+56>>2];_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break n;J[695492]= -0;b=ha(3203,i|0,841528,a|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break n;f=J[b>>2];J[695492]=0;l=J[g+56>>2];_(3205,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;a=J[g+152>>2];b=J[J[a>>2]+72>>2];J[695492]=0;a=$(b|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break la;b=J[J[a>>2]+20>>2];J[695492]=0;_(b|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break la;b=ik(a,2332884,2332988);i=J[J[a>>2]+12>>2];J[695492]=0;i=$(i|0,a|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break o;c=(f|0)==1?l:(c|0)==1?e:0;l= -!b|(i|0)!=10;ma:{if(!l){a=J[b+40>>2];b=J[b+36>>2]==(a+c|0);c=b?c:0;f=b?a:0;break ma}J[695492]=0;f=$(27,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break o;i=0;e=f;if((c|0)<=0)break ma;while(1){b=J[J[a>>2]+28>>2];J[695492]=0;b=$(b|0,a|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break ka;H[e|0]=b;e=e+1|0;i=i+1|0;if((i|0)!=(c|0))continue;break}}J[g+24>>2]=0;J[695492]=0;J[g+12>>2]=0;ma(3556,f|0,c|0,g+24|0,g+12|0,2)|0;a=J[695492];J[695492]=0;if((a|0)==1)break ja;b=J[g+12>>2];c=b+4|0;e=J[g+24>>2];na:{if(!d){j= -0;h=c>>>0<=1E3?1E3:c;k=zc(h);a=k;break na}a=c+j|0;if(a>>>0<=h>>>0){a=d;break na}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}a=Vd(d,h);if(!a){a=zc(h);tc(a,d,j);qc(d)}k=a+j|0}H[k|0]=b;H[k+1|0]=b>>>8;H[k+2|0]=b>>>16;H[k+3|0]=b>>>24;e=tc(k+4|0,e,b);if(!(!l|!f))qc(f);d=J[g+24>>2];if(d)qc(d);d=c+j|0;j=b+e|0;break T}J[695492]=0;a=P(c,l);f=$(27,a<<2)|0;b=J[695492];J[695492]=0;oa:{pa:{qa:{if((b|0)!=1){ra:{if(!a)break ra;e=f;if(a>>>0>=8){n=a&-8;b=0;while(1){J[e+28>>2]=q;J[e+24>>2]=q;J[e+20>>2]=q;J[e+16>> -2]=q;J[e+12>>2]=q;J[e+8>>2]=q;J[e+4>>2]=q;J[e>>2]=q;e=e+32|0;b=b+8|0;if((n|0)!=(b|0))continue;break}}b=0;a=a&7;if(!a)break ra;while(1){J[e>>2]=q;e=e+4|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}J[g+44>>2]=0;J[g+40>>2]=0;a=J[g+152>>2];b=J[J[a>>2]+84>>2];J[695492]=0;ca(b|0,a|0,g+44|0,g+40|0);a=J[695492];J[695492]=0;if((a|0)==1)break qa;if(J[g+44>>2])break oa;J[695492]=0;J[g+48>>2]=13;a=g+48|0;b=ha(3203,i|0,2169585,a|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break p;if(J[b>>2]!=5)break pa;J[695492]= -0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break p;J[695492]=0;ha(3203,i|0,2169730,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break pa;break p}h=Z()|0;break m}h=Z()|0;break m}J[695492]=0;J[g+44>>2]=J[g+48>>2]!=1?8:J[g+56>>2];_(3205,g+48|0);a=J[695492];J[695492]=0;if((a|0)==1)break p}J[695492]=0;J[g+48>>2]=13;a=g+48|0;b=ha(3203,i|0,2169769,a|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break q;if(J[b>>2]==5){J[695492]=0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break q;J[695492]=0;ha(3203, -i|0,2169843,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break q}sa:{if(J[g+48>>2]!=5){J[695492]=0;e=aa(3557,g+48|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break q;break sa}e=0;a=J[g+40>>2]-1|0;if(a>>>0>2)break sa;J[695492]=0;e=$(3558,a<<1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break q}J[695492]=0;_(3205,g+48|0);a=J[695492];J[695492]=0;if((a|0)==1)break q;J[695492]=0;J[g+24>>2]=13;a=g+24|0;b=ha(3203,i|0,2169932,a|0,0)|0;n=J[695492];J[695492]=0;ta:{ua:{if((n|0)==1)break ua;if(J[b>>2]!=5)break ta; -J[695492]=0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break ua;J[695492]=0;ha(3203,i|0,786713,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break ta}h=Z()|0;break m}J[695492]=0;b=$(4,800)|0;a=J[695492];J[695492]=0;if((a|0)==1)break r;J[695492]=0;i=g+24|0;a=ma(3270,b|0,J[g+44>>2],i|0,e|0,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;J[695492]=0;_(3205,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break r;J[695492]=0;b=$(4,36)|0;e=J[695492];J[695492]=0;if((e|0)==1)break t;e=J[a+4>>2];i=J[a+8>>2]; -J[695492]=0;n=ma(3265,b|0,J[g+152>>2],c|0,i|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break u;J[695492]=0;_(3266,n|0);b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;r=J[n+8>>2];b=J[695492];J[695492]=0;if((b|0)==1)break v;J[695492]=0;b=J[n+16>>2];e=J[695492];J[695492]=0;if((e|0)==1)break w;J[695492]=0;e=$(3561,a|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break x;b=(b|0)/(r|0)|0;if((l|0)>0){w=(b|0)<(c|0)?b:c;E=c<<2;x=0;I=e-1|0;while(1){J[695492]=0;b=$(3267,n|0)|0;c=J[695492];J[695492]=0;va:{wa:{xa:{if((c| -0)!=1){e=f+P(x,E)|0;if(!b)break wa;if((w|0)<=0)break va;i=0;ya:switch(I|0){case 1:A=J[a+28>>2];L=J[a+24>>2];M=J[a+20>>2];c=0;while(1){i=J[(K[b|0]<<2)+M>>2];i=(i|0)>=65536?65536:i;H[e|0]=P((i|0)>0?i:0,255)+32768>>>16;i=J[(K[b+1|0]<<2)+L>>2];i=(i|0)>=65536?65536:i;H[e+1|0]=P((i|0)>0?i:0,255)+32768>>>16;i=J[A+(K[b+2|0]<<2)>>2];H[e+3|0]=255;i=(i|0)>=65536?65536:i;H[e+2|0]=P((i|0)>0?i:0,255)+32768>>>16;e=e+4|0;b=b+r|0;c=c+1|0;if((w|0)!=(c|0))continue;break}break va;case 0:break ya;default:break xa}A=J[a+ -20>>2];c=0;while(1){i=J[A+(K[b|0]<<2)>>2];H[e+3|0]=255;i=(i|0)>=65536?65536:i;i=P((i|0)>0?i:0,255)+32768>>>16|0;H[e+1|0]=i;H[e+2|0]=i;H[e|0]=i;e=e+4|0;b=b+r|0;c=c+1|0;if((w|0)!=(c|0))continue;break}break va}h=Z()|0;break m}while(1){za:{J[695492]=0;ia(3272,a|0,b|0,g+12|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break za;H[e|0]=P(J[g+12>>2],255)+32768>>>16;H[e+1|0]=P(J[g+16>>2],255)+32768>>>16;H[e+2|0]=P(J[g+20>>2],255)+32768>>>16;H[e+3|0]=255;e=e+4|0;b=b+r|0;i=i+1|0;if((w|0)!=(i|0))continue;break va}break}h= -Z()|0;break m}wc(e,0,E)}x=x+1|0;if((l|0)!=(x|0))continue;break}}qc($k(a));Aa:{Ba:{if(!d){h=1E3;j=0;k=zc(1E3);a=k;break Ba}b=m+8|0;if(h>>>0>=b>>>0){a=d;H[k|0]=f;H[k+1|0]=f>>>8;H[k+2|0]=f>>>16;H[k+3|0]=f>>>24;break Aa}while(1){h=h<<1;if(h>>>0>>0)continue;break}a=Vd(d,h);if(a){k=a+j|0;H[k|0]=f;H[k+1|0]=f>>>8;H[k+2|0]=f>>>16;H[k+3|0]=f>>>24;break Aa}a=zc(h);b=tc(a,d,j);qc(d);k=b+j|0}H[k|0]=f;H[k+1|0]=f>>>8;H[k+2|0]=f>>>16;H[k+3|0]=f>>>24;if(!a)break ia;b=j+4|0}c=b+4|0;if(c>>>0<=h>>>0){e=k+4|0;break ha}while(1){h= -h<<1;if(c>>>0>h>>>0)continue;break}c=Vd(a,h);if(c){e=b+c|0;a=c;break ha}c=tc(zc(h),a,b);qc(a);e=b+c|0;a=c;break ha}h=Z()|0;break m}h=Z()|0;break m}h=Z()|0;break m}h=1E3;b=0;e=zc(1E3);a=e}H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0;J[695492]=0;_(3205,g+144|0);c=J[695492];J[695492]=0;if((c|0)==1)break A;d=b+4|0;j=e+4|0}o=o+1|0}c=0}if(H[g+223|0]>=0)break E;qc(J[g+212>>2])}b=v>>>0<2;v=v+1|0;if(b)continue;break}J[695492]=0;_(3205,g+224|0);b=J[695492];J[695492]=0;if((b|0)==1)break z;if(!((p|0)<=0|d>>>0<= -p>>>0)){b=a+p|0;H[b|0]=o;H[b+1|0]=o>>>8;H[b+2|0]=o>>>16;H[b+3|0]=o>>>24}qc(s)}t=t+1|0;if((D|0)!=(t|0))continue;break b}break}h=Z()|0;d=a;break m}h=Z()|0;break e}h=Z()|0;break c}h=Z()|0;break m}h=Z()|0;break m}h=Z()|0;break m}h=Z()|0;qc(b);break m}h=Z()|0;break m}h=Z()|0;qc(b);break m}h=Z()|0;break m}h=Z()|0;break m}h=Z()|0;break m}h=Z()|0;break m}h=Z()|0}c=d;break j}c=d;h=Z()|0;break j}h=Z()|0}b=c;break f}h=Z()|0;break f}h=Z()|0;break f}h=Z()|0}if(H[g+223|0]<0)qc(J[g+212>>2]);a=b}qc(s);break c}B()}h= -Z()|0}b=J[g+244>>2];if(b){J[g+248>>2]=b;qc(b)}if(a)qc(a);ba(h|0);B()}H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;b=J[g+244>>2];if(!b)break a;qc(b)}bc=g+256|0}else a=0}return a|0}function oz(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,u=0,v=0,w=0,x=0,y=Q(0);k=bc-96|0;bc=k;j=O[e>>3];O[k+72>>3]=j;n=O[f>>3];O[k+64>>3]=n;O[k+56>>3]=j+1;O[k+48>>3]=n;je(J[a+184>>2],k+72|0,k- -64|0);je(J[a+184>>2],k+56|0,k+48|0);l=O[k+64>>3];p=O[k+48>>3];n=l-p;j=O[k+72>>3];r=j;s=O[k+56>> -3];q=j-s;t=R(q);if(!(t<.001)){u=n/q;r=l-u*j}n=Y(q*q+n*n);q=n==0?1:n;x=a+32|0;a:{b:{e=J[a+124>>2];if(e){f=t<.001;i=K[a+112|0];c:{if(!(i?f:0)){if(!(R(r-O[a+88>>3])<.001)|(!(R(u-O[a+80>>3])<.001)|(f|i)))break c;break b}if(R(r-O[a+88>>3])<.001)break b}$F(a);l=O[k+64>>3];j=O[k+72>>3];e=J[a+124>>2];if(e)break b;s=O[k+56>>3];p=O[k+48>>3]}O[a+88>>3]=r;O[a+80>>3]=u;H[a+112|0]=t<.001;O[a+56>>3]=l;O[a+48>>3]=j;O[a+72>>3]=l;O[a- -64>>3]=j;O[a+104>>3]=(p-l)/q;O[a+96>>3]=(s-j)/q;n=0;break a}n=0;d:{e:{p=j-O[a- -64>> -3];if(!(p*O[a+96>>3]>=0))break e;s=l-O[a+72>>3];if(!(s*O[a+104>>3]>=0))break e;n=Y(p*p+s*s);f=(J[a+116>>2]+(e<<5)|0)-16|0;if(!(n>O[f>>3]+.5))break d;e=cT(x);j=O[f>>3];O[e+8>>3]=j;J[e>>2]=65535;J[e+4>>2]=65535;O[e+16>>3]=n-j;j=O[f>>3];m=J[a+220>>2];i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=rc(1E3);J[a+192>>2]=i;e=1E3}f=J[a+200>>2];m=m+f|0;f:{if(e>>>0>m>>>0){e=i;break f}while(1){e=e<<1;if(m>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);f=tc(e,i,f);qc(i);J[a+192>>2]=f;f=J[a+200>>2]}n= -n-j;H[e+f|0]=0;J[a+200>>2]=J[a+200>>2]+J[a+220>>2];l=O[k+64>>3];j=O[k+72>>3];break d}$F(a);H[a+112|0]=t<.001;j=O[k+72>>3];O[a+48>>3]=j;l=O[k+64>>3];O[a+88>>3]=r;O[a+80>>3]=u;O[a+56>>3]=l;O[a+96>>3]=(O[k+56>>3]-j)/q;O[a+104>>3]=(O[k+48>>3]-l)/q}O[a+72>>3]=l;O[a+64>>3]=j}f=J[a+184>>2];i=J[a+188>>2];J[k+80>>2]=-755914244;J[k+84>>2]=1062232653;v=1;e=5;w=J2(i,f,k+80|0,1);m=w^1|g;o=J[a+220>>2];f=J[a+172>>2];g=J[a+180>>2];if(J[f+12>>2]==J[g+12>>2]){v=J[f+20>>2]!=J[g+20>>2];e=v?5:0}g=w?e:e+17|0;g=m?g+13| -0:g;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}i=J[a+200>>2];o=o+i|0;g:{if(e>>>0>o>>>0){e=f;break g}while(1){e=e<<1;if(o>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);i=tc(e,f,i);qc(f);J[a+192>>2]=i;i=J[a+200>>2]}H[e+i|0]=g;J[a+200>>2]=J[a+200>>2]+J[a+220>>2];l=O[h+912>>3];e=J[J[a+184>>2]>>2];r=O[e>>3];u=O[e+8>>3];j=Y(r*r+u*u);t=O[e+16>>3];p=O[e+24>>3];s=Y(t*t+p*p);j=j10)&(!(l>10)|!(j<.1)))){p=p/j;t=t/j;u=u/j;r=r/j;l=l*j}if(m){g=J[a+ -220>>2];f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}i=J[a+200>>2];g=g+i|0;h:{if(e>>>0>g>>>0){e=f;break h}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,f,i);qc(f);J[a+192>>2]=g;i=J[a+200>>2]}H[e+i|0]=41;i=J[a+200>>2]+J[a+220>>2]|0;J[a+200>>2]=i;g=J[h+904>>2];o=J[a+216>>2]+i|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}i:{if(o>>>0>>0){e=f;break i}while(1){e=e<<1;if(o>>>0>=e>>>0)continue; -break}J[a+204>>2]=e;e=rc(e);i=tc(e,f,i);qc(f);J[a+192>>2]=i;i=J[a+200>>2]}e=e+i|0;H[e|0]=g;H[e+1|0]=g>>>8;H[e+2|0]=g>>>16;H[e+3|0]=g>>>24;i=J[a+200>>2]+4|0;J[a+200>>2]=i;e=J[h+824>>2];f=J[e+40>>2]!=0;f=(J[e+44>>2]?f|2:f)|K[e+48|0]<<2|K[e+49|0]<<7;g=J[a+216>>2]+i|0;h=J[a+192>>2];if(h)e=J[a+204>>2];else{J[a+204>>2]=1E3;h=rc(1E3);J[a+192>>2]=h;e=1E3}j:{if(g>>>0>>0){e=h;break j}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,h,i);qc(h);J[a+192>>2]=g;i=J[a+200>>2]}e=e+i| -0;H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;h=J[a+200>>2]+4|0;J[a+200>>2]=h;f=J[a+216>>2]+h|0;i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=rc(1E3);J[a+192>>2]=i;e=1E3}k:{if(f>>>0>>0){e=i;break k}while(1){e=e<<1;if(f>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);f=tc(e,i,h);qc(i);J[a+192>>2]=f;h=J[a+200>>2]}e=e+h|0;j=l*1E4;l:{if(R(j)<2147483648){f=~~j;break l}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;J[a+200>>2]=J[a+200>>2]+4}if(!w){e=J[a+188>> -2];O[k+80>>3]=O[J[J[a+184>>2]>>2]>>3];O[k+40>>3]=O[J[J[a+184>>2]>>2]+8>>3];O[k+32>>3]=O[J[J[a+184>>2]>>2]+16>>3];O[k+24>>3]=O[J[J[a+184>>2]>>2]+24>>3];O[k+16>>3]=O[J[J[a+188>>2]>>2]+32>>3];O[k+8>>3]=O[J[J[a+188>>2]>>2]+40>>3];mo(e,k+80|0,k+40|0,k+32|0,k+24|0,k+16|0,k+8|0);H[a+128|0]=1;O[a+136>>3]=O[J[J[a+184>>2]>>2]>>3];O[a+152>>3]=O[J[J[a+184>>2]>>2]+16>>3];O[a+160>>3]=O[J[J[a+184>>2]>>2]+8>>3];O[a+144>>3]=O[J[J[a+184>>2]>>2]+24>>3];g=J[a+220>>2];f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]= -1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}h=J[a+200>>2];g=g+h|0;m:{if(e>>>0>g>>>0){e=f;break m}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,f,h);qc(f);J[a+192>>2]=g;h=J[a+200>>2]}H[e+h|0]=161;h=J[a+200>>2]+J[a+220>>2]|0;J[a+200>>2]=h;g=J[a+216>>2]+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}n:{if(g>>>0>>0){e=f;break n}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,f,h);qc(f);J[a+192>>2]=g;h=J[a+200>> -2]}e=e+h|0;j=r*1E4;o:{if(R(j)<2147483648){f=~~j;break o}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;h=J[a+200>>2]+4|0;J[a+200>>2]=h;g=J[a+216>>2]+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}p:{if(g>>>0>>0){e=f;break p}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,f,h);qc(f);J[a+192>>2]=g;h=J[a+200>>2]}e=e+h|0;j=u*1E4;q:{if(R(j)<2147483648){f=~~j;break q}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+ -2|0]=f>>>16;H[e+3|0]=f>>>24;h=J[a+200>>2]+4|0;J[a+200>>2]=h;g=J[a+216>>2]+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}r:{if(g>>>0>>0){e=f;break r}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,f,h);qc(f);J[a+192>>2]=g;h=J[a+200>>2]}e=e+h|0;j=t*1E4;s:{if(R(j)<2147483648){f=~~j;break s}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;h=J[a+200>>2]+4|0;J[a+200>>2]=h;g=J[a+216>>2]+h|0;f=J[a+192>>2];if(f)e= -J[a+204>>2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}t:{if(g>>>0>>0){e=f;break t}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,f,h);qc(f);J[a+192>>2]=g;h=J[a+200>>2]}e=e+h|0;j=p*1E4;u:{if(R(j)<2147483648){f=~~j;break u}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;J[a+200>>2]=J[a+200>>2]+4}if(v){e=J[a+180>>2];f=J[a+172>>2];J[e+12>>2]=J[f+12>>2];J[e+20>>2]=J[f+20>>2];g=J[a+220>>2];f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3; -f=rc(1E3);J[a+192>>2]=f;e=1E3}h=J[a+200>>2];g=g+h|0;v:{if(e>>>0>g>>>0){e=f;break v}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,f,h);qc(f);J[a+192>>2]=g;h=J[a+200>>2]}H[e+h|0]=22;e=J[a+220>>2];h=e+J[a+200>>2]|0;J[a+200>>2]=h;f=J[J[a+172>>2]+12>>2];g=e+h|0;i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=rc(1E3);J[a+192>>2]=i;e=1E3}w:{if(g>>>0>>0){e=i;break w}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,i,h);qc(i);J[a+192>>2]= -g;h=J[a+200>>2]}H[e+h|0]=f;e=J[a+220>>2];h=e+J[a+200>>2]|0;J[a+200>>2]=h;g=f>>>8|0;v=e+h|0;i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=rc(1E3);J[a+192>>2]=i;e=1E3}x:{if(v>>>0>>0){e=i;break x}while(1){e=e<<1;if(v>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);h=tc(e,i,h);qc(i);J[a+192>>2]=h;h=J[a+200>>2]}H[e+h|0]=g;e=J[a+220>>2];h=e+J[a+200>>2]|0;J[a+200>>2]=h;f=f>>>16|0;g=e+h|0;i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=rc(1E3);J[a+192>>2]=i;e=1E3}y:{if(g>>>0>>0){e= -i;break y}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);g=tc(e,i,h);qc(i);J[a+192>>2]=g;h=J[a+200>>2]}H[e+h|0]=f;e=J[a+220>>2];h=e+J[a+200>>2]|0;J[a+200>>2]=h;g=J[J[a+172>>2]+20>>2];i=e+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}z:{if(i>>>0>>0){e=f;break z}while(1){e=e<<1;if(i>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);h=tc(e,f,h);qc(f);J[a+192>>2]=h;h=J[a+200>>2]}H[e+h|0]=g;J[a+200>>2]=J[a+200>>2]+J[a+220>>2]}v=J[d>>2];if(m)A:{d= -bc-48|0;bc=d;J[d+44>>2]=0;f=J[a+16>>2];e=K[f+15|0];B:{C:{D:{E:{F:{if(!(e<<24>>24<0?J[f+8>>2]:e)){e=K[f+27|0];h=e<<24>>24;i=(h|0)<0?J[f+20>>2]:e;g=i+12|0;if(g>>>0>=1073741808)break E;G:{if(g>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=g;e=d;break G}e=g|3;if(e>>>0>=1073741823)break D;m=e+1|0;e=rc(m<<2);J[d+4>>2]=g;J[d>>2]=e;J[d+8>>2]=m|-2147483648}g=e;e=i<<2;e=Zc(g,(h|0)<0?J[f+16>>2]:f+16|0,e)+e|0;J[e+48>>2]=0;g=J[606922];J[e+40>>2]=J[606921];J[e+44>>2]=g;g=J[606920];J[e+32>>2]=J[606919];J[e+ -36>>2]=g;g=J[606918];J[e+24>>2]=J[606917];J[e+28>>2]=g;g=J[606916];J[e+16>>2]=J[606915];J[e+20>>2]=g;g=J[606914];J[e+8>>2]=J[606913];J[e+12>>2]=g;g=J[606912];J[e>>2]=J[606911];J[e+4>>2]=g;e=K[f+49|0];g=K[f+48|0];h=J[f+44>>2];f=J[f+40>>2];J[695492]=0;i=d+20|0;f=(f|0)!=0;da(6088,i|0,g<<2|(h?f|2:f)|e<<7);e=J[695492];J[695492]=0;H:{I:{J:{K:{L:{M:{N:{if((e|0)!=1){J[695492]=0;e=K[d+31|0];f=e<<24>>24<0;e=ga(2794,d|0,(f?J[d+20>>2]:i)|0,(f?J[d+24>>2]:e)|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break N;J[d+ -40>>2]=J[e+8>>2];f=J[e+4>>2];J[d+32>>2]=J[e>>2];J[d+36>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;if(H[d+31|0]<0)qc(J[d+20>>2]);if(H[d+11|0]<0)qc(J[d>>2]);J[695492]=0;i=a+20|0;e=xi(i,d+32|0);f=J[695492];J[695492]=0;if((f|0)==1)break I;if((e|0)==(a+24|0))break K;f=J[a+4>>2];e=J[a+16>>2];g=J[e+40>>2]!=0;J[d>>2]=(J[e+44>>2]?g|2:g)|K[e+48|0]<<2|K[e+49|0]<<7;g=J[J[f>>2]+144>>2];J[695492]=0;ja(g|0,f|0,e+16|0,e+32|0,d|0,2427696,2427696)|0;e=J[695492];J[695492]=0;if((e|0)==1)break L;e=J[a+4>>2];f=J[J[e>>2]+ -76>>2];J[695492]=0;_(f|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break L;e=J[a+4>>2];f=J[J[e>>2]+48>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break L;f=J[a+4>>2];g=J[J[f>>2]+52>>2];J[695492]=0;f=$(g|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break L;g=J[a+4>>2];h=J[J[g>>2]+56>>2];J[695492]=0;g=$(h|0,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break L;h=J[a+4>>2];i=J[J[h>>2]+44>>2];J[695492]=0;h=$(i|0,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break L;i=h;h=h>>31;I[a+14>> -1]=(i^h)-h;h=g;g=g>>31;I[a+12>>1]=(h^g)-g;g=f;f=f>>31;I[a+10>>1]=(g^f)-f;f=e;e=e>>31;I[a+8>>1]=(f^e)-e;break J}a=Z()|0;break M}a=Z()|0;if(H[d+31|0]>=0)break M;qc(J[d+20>>2])}if(H[d+11|0]>=0)break C;break B}a=Z()|0;break H}f=J[a+4>>2];e=J[a+16>>2];g=J[e+40>>2]!=0;J[d>>2]=(J[e+44>>2]?g|2:g)|K[e+48|0]<<2|K[e+49|0]<<7;g=J[J[f>>2]+144>>2];J[695492]=0;ja(g|0,f|0,e+16|0,e+32|0,d|0,2427696,2427696)|0;e=J[695492];J[695492]=0;O:{P:{Q:{if((e|0)==1)break Q;e=J[a+4>>2];f=J[J[e>>2]+76>>2];J[695492]=0;_(f|0,e|0); -e=J[695492];J[695492]=0;if((e|0)==1)break Q;e=J[a+4>>2];f=J[J[e>>2]+48>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Q;f=J[a+4>>2];g=J[J[f>>2]+52>>2];J[695492]=0;f=$(g|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Q;g=J[a+4>>2];h=J[J[g>>2]+56>>2];J[695492]=0;h=$(h|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Q;g=J[a+4>>2];m=J[J[g>>2]+44>>2];J[695492]=0;g=$(m|0,g|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break Q;o=g;g=g>>31;g=(o^g)-g|0;I[a+14>>1]=g;o=h;h=h>>31; -h=(o^h)-h|0;I[a+12>>1]=h;o=f;f=f>>31;f=(o^f)-f|0;I[a+10>>1]=f;o=e;e=e>>31;e=(o^e)-e|0;I[a+8>>1]=e;R:{if(H[d+43|0]>=0){J[d+8>>2]=J[d+40>>2];m=J[d+36>>2];J[d>>2]=J[d+32>>2];J[d+4>>2]=m;break R}J[695492]=0;ca(15,d|0,J[d+32>>2],J[d+36>>2]);e=J[695492];J[695492]=0;if((e|0)==1)break P;g=L[a+14>>1];h=L[a+12>>1];f=L[a+10>>1];e=L[a+8>>1]}I[d+18>>1]=g;I[d+16>>1]=h;I[d+14>>1]=f;I[d+12>>1]=e;J[695492]=0;f=Xe(i,d+20|0,d);e=J[695492];J[695492]=0;if((e|0)==1)break O;if(!J[f>>2]){J[695492]=0;e=$(4,36)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break O;g=J[d+4>>2];J[e+16>>2]=J[d>>2];J[e+20>>2]=g;J[e+24>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;I[e+28>>1]=L[d+12>>1];I[e+30>>1]=L[d+14>>1];I[e+32>>1]=L[d+16>>1];I[e+34>>1]=L[d+18>>1];J[e+8>>2]=J[d+20>>2];J[e>>2]=0;J[e+4>>2]=0;J[f>>2]=e;g=J[J[i>>2]>>2];if(g){J[i>>2]=g;e=J[f>>2]}Ic(J[a+24>>2],e);J[a+28>>2]=J[a+28>>2]+1}if(H[d+11|0]>=0)break J;qc(J[d>>2]);break J}a=Z()|0;break H}a=Z()|0;break H}a=Z()|0;if(H[d+11|0]>=0)break H;qc(J[d>>2]);break H}if(H[d+43|0]>=0)break F; -qc(J[d+32>>2]);break F}a=Z()|0}if(H[d+43|0]>=0)break C;qc(J[d+32>>2]);break C}m=a+20|0;w=xi(m,f+4|0);if((w|0)!=(a+24|0)){e=J[a+4>>2];f=J[a+16>>2];gc[J[J[e>>2]+148>>2]](e,f+4|0,d+44|0,f+32|0,2427696,2427696)|0;e=J[a+4>>2];gc[J[J[e>>2]+76>>2]](e);e=J[a+4>>2];e=gc[J[J[e>>2]+48>>2]](e)|0;f=J[a+4>>2];f=gc[J[J[f>>2]+52>>2]](f)|0;g=J[a+4>>2];g=gc[J[J[g>>2]+56>>2]](g)|0;h=J[a+4>>2];h=gc[J[J[h>>2]+44>>2]](h)|0;i=g;g=g>>31;I[a+12>>1]=(i^g)-g;g=f;f=f>>31;I[a+10>>1]=(g^f)-f;f=e;e=e>>31;I[a+8>>1]=(f^e)-e;e=h>> -31;I[a+14>>1]=(e^h)-e;break F}e=J[a+4>>2];f=J[a+16>>2];gc[J[J[e>>2]+148>>2]](e,f+4|0,d+44|0,f+32|0,2427696,2427696)|0;e=J[a+4>>2];gc[J[J[e>>2]+76>>2]](e);e=J[a+4>>2];e=gc[J[J[e>>2]+48>>2]](e)|0;f=J[a+4>>2];f=gc[J[J[f>>2]+52>>2]](f)|0;g=J[a+4>>2];g=gc[J[J[g>>2]+56>>2]](g)|0;h=J[a+4>>2];i=gc[J[J[h>>2]+44>>2]](h)|0;h=g;g=g>>31;g=(h^g)-g|0;I[a+12>>1]=g;h=f;f=f>>31;h=(h^f)-f|0;I[a+10>>1]=h;f=e;e=e>>31;f=(f^e)-e|0;I[a+8>>1]=f;e=i>>31;e=(e^i)-e|0;I[a+14>>1]=e;i=J[a+16>>2];S:{if(H[i+15|0]>=0){J[d+8>>2]=J[i+ -12>>2];o=J[i+8>>2];J[d>>2]=J[i+4>>2];J[d+4>>2]=o;break S}Re(d,J[i+4>>2],J[i+8>>2]);e=L[a+14>>1];g=L[a+12>>1];h=L[a+10>>1];f=L[a+8>>1]}I[d+18>>1]=e;I[d+16>>1]=g;I[d+14>>1]=h;I[d+12>>1]=f;J[695492]=0;e=Xe(m,d+32|0,d);f=J[695492];J[695492]=0;T:{if((f|0)==1)break T;if(!J[e>>2]){J[695492]=0;f=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break T;g=J[d+4>>2];J[f+16>>2]=J[d>>2];J[f+20>>2]=g;J[f+24>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;I[f+28>>1]=L[d+12>>1];I[f+30>>1]=L[d+14>>1];I[f+32>>1]=L[d+ -16>>1];I[f+34>>1]=L[d+18>>1];J[f+8>>2]=J[d+32>>2];J[f>>2]=0;J[f+4>>2]=0;J[e>>2]=f;g=J[J[m>>2]>>2];if(g){J[m>>2]=g;f=J[e>>2]}Ic(J[w>>2],f);J[a+28>>2]=J[a+28>>2]+1}if(H[d+11|0]>=0)break F;qc(J[d>>2]);break F}a=Z()|0;if(H[d+11|0]>=0)break C;break B}bc=d+48|0;break A}Id(d);B()}Sd();B()}ba(a|0);B()}qc(J[d>>2]);ba(a|0);B()}l=O[J[a+16>>2]+32>>3]*25.4/+(P(L[a+14>>1],72)|0);j=q*(l*+L[a+10>>1]);l=q*(l*+L[a+8>>1]);if(l>O[a+32>>3])O[x>>3]=l;if(j>O[a+40>>3])O[a+40>>3]=j;U:{if(c){J[k+80>>2]=1;d=J[a+4>>2];gc[J[J[d>> -2]+40>>2]](d,k+80|0);d=c;break U}J[k+80>>2]=0;d=J[a+4>>2];gc[J[J[d>>2]+40>>2]](d,k+80|0);d=b}if((v|0)>0){i=v-1|0;l=0;g=0;while(1){j=0;e=J[a+4>>2];if(e){J[k+80>>2]=1;J[k+40>>2]=0;J[k+32>>2]=0;f=k+80|0;gc[J[J[e>>2]+92>>2]](e,d+(g<<2)|0,f,k+40|0,k+32|0)|0;e=J[a+4>>2];gc[J[J[e>>2]+120>>2]](f,e);y=Q(N[k+84>>2]-N[k+80>>2]);j=+y;j=(y>2]=J[f+b>>2];f=c?J[c+f>>2]:65535;O[e+8>>3]=n;J[e+4>>2]=f;O[e+16>>3]=q*j;if(g){m=J[a+220>>2];f=J[a+192>>2];if(f)e=J[a+204>> -2];else{J[a+204>>2]=1E3;f=rc(1E3);J[a+192>>2]=f;e=1E3}h=J[a+200>>2];m=m+h|0;V:{if(e>>>0>m>>>0){e=f;break V}while(1){e=e<<1;if(m>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=rc(e);h=tc(e,f,h);qc(f);J[a+192>>2]=h;h=J[a+200>>2]}H[e+h|0]=0;J[a+200>>2]=J[a+200>>2]+J[a+220>>2]}l=l+(g?n:-0);if((g|0)==(i|0)){O[a+64>>3]=l*O[a+96>>3]+O[a+64>>3];O[a+72>>3]=l*O[a+104>>3]+O[a+72>>3]}n=j;g=g+1|0;if((v|0)!=(g|0))continue;break}}bc=k+96|0}function ZSa(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;j=bc+-64|0;bc=j;J[a+160>>2]=13;J[a+136>>2]=13;J[a+112>>2]=13;J[a+96>>2]=13;J[a+80>>2]=13;J[a+64>>2]=13;J[a+40>>2]=13;J[a+24>>2]=13;J[j+48>>2]=13;J[j+32>>2]=13;J[j+16>>2]=13;J[a>>2]=b;J[a+176>>2]=1;b=J[b+24>>2];J[a+152>>2]=0;J[a+156>>2]=0;J[a+132>>2]=0;J[a+56>>2]=0;J[a+4>>2]=b;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;Tm(b,J[b+20>>2],J[b+24>>2],j+48|0,0);a:{b:{c:{b=J[j+48>>2];if((b|0)!=7){J[j>>2]=J[(b<<2)+2720608>>2];xc(1,-1,778792,j);break c}b=bc-80|0;bc=b;J[b+64>>2]= -13;J[b+48>>2]=13;J[b+32>>2]=13;c=b- -64|0;d:{if(J[Ce(J[j+56>>2],798286,c)>>2]!=9){J[b+16>>2]=J[(J[c>>2]<<2)+2720608>>2];xc(1,-1,799419,b+16|0);uc(c);break d}d=b- -64|0;c=b+48|0;if(J[hf(d,J[a+4>>2],c,0)>>2]!=7){J[b>>2]=J[(J[c>>2]<<2)+2720608>>2];xc(1,-1,800238,b);uc(c);uc(d);break d}e:{if(J[Bc(J[b+56>>2],800446,b+32|0,0)>>2]==1){c=J[b+40>>2];J[a+20>>2]=c;if((c|0)<50001?c:0)break e;q=a,r=d_(a,b+48|0),J[q+20>>2]=r;break e}J[a+20>>2]=1}uc(b+32|0);e=J[a+20>>2];if((e|0)<0){xc(1,-1,801065,0);uc(b+48|0); -uc(b- -64|0);J[a+20>>2]=0;break d}d=rc(24);i=J[b+72>>2];f=J[b+76>>2];c=0;J[d+20>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+8>>2]=e;J[d>>2]=i;J[d+4>>2]=f;J[a+8>>2]=d;uc(b+48|0);uc(b- -64|0);q=a,r=Nd(J[a+12>>2],J[a+20>>2],4),J[q+12>>2]=r;q=a,r=Nd(J[a+16>>2],J[a+20>>2],8),J[q+16>>2]=r;f=1;d=J[a+20>>2];if((d|0)<=0)break d;if((d|0)!=1){e=d&-2;while(1){J[J[a+12>>2]+(c<<2)>>2]=0;i=J[a+16>>2]+(c<<3)|0;J[i>>2]=-1;J[i+4>>2]=-1;i=c|1;J[J[a+12>>2]+(i<<2)>>2]=0;i=J[a+16>>2]+(i<<3)|0;J[i>>2]=-1;J[i+4>>2]=-1;c=c+2|0;h= -h+2|0;if((e|0)!=(h|0))continue;break}}if(!(d&1))break d;J[J[a+12>>2]+(c<<2)>>2]=0;c=J[a+16>>2]+(c<<3)|0;J[c>>2]=-1;J[c+4>>2]=-1}bc=b+80|0;if(!f)break c;b=a+40|0;Bc(J[j+56>>2],779306,a+24|0,0);f:{if(J[Bc(J[j+56>>2],780419,j+32|0,0)>>2]==7){Bc(J[j+40>>2],779306,b,0);break f}J[b>>2]=5}b=j+32|0;uc(b);if(J[Bc(J[j+56>>2],782040,b,0)>>2]==7){if(J[Bc(J[j+40>>2],782728,j+16|0,0)>>2]==3){c=J[j+24>>2];b=rc(8);J[695492]=0;c=aa(3183,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+56>>2]=c}uc(j+16|0)}uc(j+ -32|0);b=J[a+56>>2];g:{if(b){if(J[b>>2])break g;qc(Rc(b))}h:{b=J[J[a>>2]>>2];if(b){c=J[b+4>>2];d=ls(c,47);b=rc(8);i:{if(d){J[695492]=0;ga(3181,b|0,c|0,d-c|0)|0;break i}J[695492]=0;$(3184,b|0)|0}c=J[695492];J[695492]=0;if((c|0)==1)break a;d=0;h=0;i=bc-4112|0;bc=i;c=J[b+4>>2];e=K[c|0];j:{if((e|0)==47)break j;k:{if((e|0)==126){d=K[c+1|0];if((d|0)==47|J[b>>2]==1)break k;e=c+1|0;c=e;while(1){if(!(!d|(d|0)==47)){d=K[c+1|0];c=c+1|0;continue}break}c=c-e|0;c=(c|0)>=4096?4096:c;q=qd(i,e,c)+c|0,r=0,H[q|0]=r; -J[694731]=44;break j}if(!HR(i,4097))break j;c=J[b>>2];if((c|0)==2147483647){Th(778829);c=J[b>>2]}kh(b,c+1|0);e=J[b>>2];l:{if((e|0)<0)break l;c=e+1|0;h=c&3;if(h)while(1){f=J[b+4>>2]+c|0;H[f|0]=K[f-1|0];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(e>>>0<3)break l;while(1){d=J[b+4>>2]+c|0;H[d|0]=K[d-1|0];d=J[b+4>>2]+c|0;H[d-1|0]=K[d-2|0];d=J[b+4>>2]+c|0;H[d-2|0]=K[d-3|0];d=J[b+4>>2]+c|0;H[d-3|0]=K[d-4|0];c=c-4|0;if((c|0)>0)continue;break}}H[J[b+4>>2]]=47;J[b>>2]=J[b>>2]+1;GI(b,i);break j}dm(b,0, -1);f=NI();e=J[f>>2];c=J[b>>2];if((e^2147483647)<(c|0)){Th(778829);c=J[b>>2]}kh(b,c+e|0);c=J[b>>2];m:{if((c|0)<0)break m;d=c;g=c+1&3;if(g)while(1){k=J[b+4>>2]+c|0;H[k+e|0]=K[k|0];c=c-1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}if(d>>>0<3)break m;while(1){d=J[b+4>>2]+c|0;H[d+e|0]=K[d|0];d=(J[b+4>>2]+c|0)-1|0;H[d+e|0]=K[d|0];d=(J[b+4>>2]+c|0)-2|0;H[d+e|0]=K[d|0];d=c-3|0;h=d+J[b+4>>2]|0;H[h+e|0]=K[h|0];c=c-4|0;if((d|0)>0)continue;break}}tc(J[b+4>>2],J[f+4>>2],e);J[b>>2]=e+J[b>>2];qc(Rc(f))}bc=i+4112|0; -J[a+56>>2]=b;if(K[J[b+4>>2]]!=47)break h;GI(b,783479);break g}b=rc(8);J[695492]=0;c=aa(3182,b|0,784977)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+56>>2]=c;break g}break a}GI(b,784977)}Bc(J[j+56>>2],785552,a- -64|0,0);Bc(J[j+56>>2],786185,a+80|0,0);Bc(J[j+56>>2],787128,a+96|0,0);o=a+112|0;Bc(J[j+56>>2],788074,o,0);p=j+32|0;q=a,r=!J[Bc(J[j+56>>2],788985,p,0)>>2]&J[j+40>>2]!=0,J[q+128>>2]=r;uc(p);b=J[a>>2];k=0;g=bc-112|0;bc=g;J[g+96>>2]=13;J[g+80>>2]=13;J[g+64>>2]=13;J[g+48>>2]=13;J[g+32>>2]=13;J[g+ -16>>2]=13;J[g>>2]=13;n:{o:{p:{q:{r:{s:{t:{if(J[o>>2]==7){e=rc(48);J[e>>2]=b;J[e+8>>2]=13;J[695492]=0;aa(3282,o|0,e+8|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break q;J[e+24>>2]=0;J[695492]=0;b=$(4,16)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[e+28>>2]=c;J[695492]=0;b=$(4,16)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1){h=Z()|0;qc(b);break p}J[e+36>>2]=0;J[e+40>> -2]=0;J[e+32>>2]=c;u:{if(J[Bc(J[o+8>>2],775328,g+80|0,0)>>2]==5)break u;h=0;m=bc-16|0;bc=m;i=bc-4112|0;bc=i;c=rc(8);J[695492]=0;d=$(3184,c|0)|0;b=J[695492];J[695492]=0;v:{w:{x:{if((b|0)!=1){y:switch(J[g+80>>2]-6|0){case 0:b=J[g+88>>2];if(J[b+12>>2]>=2)break x;break v;case 2:break y;default:break w}b=J[g+88>>2];gc[J[J[b>>2]+20>>2]](b);b=J[g+88>>2];b=gc[J[J[b>>2]+40>>2]](b,i+16|0,4096)|0;if((b|0)<=0)break v;while(1){c=i+16|0;cf(d,c,b);b=J[g+88>>2];b=gc[J[J[b>>2]+40>>2]](b,c,4096)|0;if((b|0)>0)continue; -break}break v}break o}c=1;while(1){J[i>>2]=13;if(J[Mc(b,c,i,0)>>2]!=8){xc(1,-1,779628,0);uc(i);qc(Rc(d));d=0;break v}b=J[i+8>>2];gc[J[J[b>>2]+20>>2]](b);b=J[i+8>>2];b=gc[J[J[b>>2]+40>>2]](b,i+16|0,4096)|0;if((b|0)>0)while(1){f=i+16|0;cf(d,f,b);b=J[i+8>>2];b=gc[J[J[b>>2]+40>>2]](b,f,4096)|0;if((b|0)>0)continue;break}uc(i);c=c+2|0;b=J[g+88>>2];if((c|0)>2])continue;break}break v}xc(1,-1,780617,0);d=0}c=d;bc=i+4112|0;z:{A:{i=c;B:{if(!c)break B;b=J[c+4>>2];c=J[c>>2];d=rc(40);J[d+4>>2]=0;J[d+8>> -2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d>>2]=2335856;J[d+12>>2]=0;J[d+16>>2]=0;J[d+32>>2]=b;f=b+c|0;J[d+36>>2]=f;C:{if((c|0)<=0)break C;while(1){c=K[b|0]-9|0;if(c>>>0>23|!(1<>2]=b;if((b|0)!=(f|0))continue;break}}D:{c=J[d+36>>2];b=J[d+32>>2];if((c-b|0)<5)break D;if(kd(b,778292,5))break D;b=b+5|0;J[d+32>>2]=b;E:{if(b>>>0>=c>>>0)break E;while(1){f=K[b|0]-9|0;if(f>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}F:{G:{H:{if((c- -b|0)<7)break H;if(kd(b,779348,7))break H;b=b+7|0;J[d+32>>2]=b;I:{if(b>>>0>=c>>>0)break I;while(1){f=K[b|0]-9|0;if(f>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}if(K[b|0]!=61|(c-b|0)<=0)break H;b=b+1|0;J[d+32>>2]=b;J:{if(b>>>0>=c>>>0)break J;while(1){f=K[b|0]-9|0;if(f>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}}f=yH(d);break G}c=rc(8);J[695492]=0;f=aa(3182,c|0,782124)|0;b=J[695492];J[695492]=0;if((b|0)==1)break F}b= -J[d+32>>2];c=J[d+36>>2];K:{if(b>>>0>=c>>>0)break K;while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}L:{if((c-b|0)<8)break L;if(kd(b,782689,8))break L;b=b+8|0;J[d+32>>2]=b;M:{if(b>>>0>=c>>>0)break M;while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}if(K[b|0]!=61|(c-b|0)<=0)break L;b=b+1|0;J[d+32>>2]=b;N:{if(b>>>0>=c>>>0)break N;while(1){k=K[b|0]-9|0;if(k>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}}k=yH(d);b=J[d+32>>2];c=J[d+36>>2]}O:{if(b>>>0>=c>>>0)break O;while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}P:{if((c-b|0)<10)break P;if(kd(b,783687,10))break P;b=b+10|0;J[d+32>>2]=b;Q:{if(b>>>0>=c>>>0)break Q;while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}if(K[b|0]!=61|(c-b|0)<=0)break P;b=b+1|0;J[d+32>>2]=b;R:{if(b>>> -0>=c>>>0)break R;while(1){n=K[b|0]-9|0;if(n>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}}b=yH(d);c=sd(b,784440);qc(Rc(b));n=!c;b=J[d+32>>2];c=J[d+36>>2]}S:{if(b>>>0>=c>>>0)break S;while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}T:{if((c-b|0)<2)break T;if(kd(b,785835,2))break T;J[d+32>>2]=b+2}b=rc(32);J[b+4>>2]=0;J[b+8>>2]=0;H[b+28|0]=n;J[b+24>>2]=k;J[b+20>>2]=f;J[b>>2]=2336440;J[b+12>>2]=0;J[b+ -16>>2]=0;gc[J[J[d>>2]+48>>2]](d,b);break D}break o}while(1){U:{c=J[d+36>>2];b=J[d+32>>2];f=c-b|0;V:{if((f|0)>=4){if(kd(b,795677,4))break V;xA(d,d);continue}if((f|0)<2)break U}if(kd(b,793947,2))break U;wA(d,d);continue}W:{if(b>>>0>=c>>>0)break W;c=K[b|0]-9|0;if(c>>>0>23|!(1<>2]=b+1;continue}break}k=0;b=J[d+36>>2];c=J[d+32>>2];X:{if((b-c|0)<9)break X;if(kd(c,786703,9))break X;c=c+9|0;J[d+32>>2]=c;Y:{if(b>>>0<=c>>>0)break Y;while(1){f=K[c|0]-9|0;if(f>>>0>23|!(1<>2]=c;if((b|0)!=(c|0))continue;break}}n=vA(d);c=J[d+32>>2];b=J[d+36>>2];Z:{if(c>>>0>=b>>>0)break Z;while(1){f=K[c|0]-9|0;if(f>>>0>23|!(1<>2]=c;if((b|0)!=(c|0))continue;break}c=b}_:{if(b>>>0<=c>>>0)break _;while(1){f=c;c=c+1|0;J[d+32>>2]=c;f=K[f|0];$:{aa:{ba:{ca:{da:{ea:{fa:switch(k|0){case 0:switch(f-34|0){case 28:break _;case 0:case 5:break ca;case 1:case 2:case 3:case 4:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:break da; -default:break ea}case 1:k=(f|0)!=0;break $;case 2:ga:switch(f-34|0){case 1:case 2:case 3:case 4:break aa;case 0:case 5:break ga;default:break ba}k=3;break $;case 3:break fa;default:break $}k=f?3:2;break $}k=2;if((f|0)==91)break $}k=0;break $}k=1;break $}k=0;if((f|0)==93)break $}k=2}if(b>>>0>c>>>0)continue;break}}b=rc(24);J[b+4>>2]=0;J[b+8>>2]=0;J[b+20>>2]=n;J[b>>2]=2336504;J[b+12>>2]=0;J[b+16>>2]=0;gc[J[J[d>>2]+48>>2]](d,b)}while(1){ha:{f=J[d+36>>2];b=J[d+32>>2];c=f-b|0;ia:{if((c|0)>=4){if(kd(b,795677, -4))break ia;xA(d,d);continue}if((c|0)<2)break ha}if(kd(b,793947,2))break ha;wA(d,d);continue}ja:{if(b>>>0>=f>>>0)break ja;f=K[b|0]-9|0;if(f>>>0>23|!(1<>2]=b+1;continue}break}if(!(K[b|0]!=60|(c|0)<=0))JX(d,d);while(1){ka:{c=J[d+36>>2];b=J[d+32>>2];f=c-b|0;la:{if((f|0)>=4){if(kd(b,795677,4))break la;xA(d,d);continue}if((f|0)<2)break ka}if(kd(b,793947,2))break ka;wA(d,d);continue}ma:{if(b>>>0>=c>>>0)break ma;c=K[b|0]-9|0;if(c>>>0>23|!(1<>2]=b+1; -continue}break}b=d;na:{if(J[b+28>>2])break na;gc[J[J[b>>2]+4>>2]](b);b=0}qc(Rc(i));if(!b){xc(1,-1,774755,0);break B}h=rc(8);J[h>>2]=2335752;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;oa:{pa:{qa:{if((d|0)!=1){J[695492]=0;d=aa(3365,c|0,0)|0;i=J[695492];J[695492]=0;if((i|0)==1){a=Z()|0;qc(c);break A}J[h+4>>2]=d;i=J[b+28>>2];if(!i)break oa;c=rc(16);J[695492]=0;d=aa(3365,c|0,1)|0;f=J[695492];J[695492]=0;if((f|0)!=1){c=si(i,781488);if(c)CH(h,c,0,d);c=si(J[b+28>>2],775747);if(c)break qa;c=0;break pa}a= -Z()|0;h=c;break A}a=Z()|0;break A}c=si(c,777225)}i=si(J[b+28>>2],778339);if(i)PX(h,i,0,0,0,0,0,c,d);c=m+12|0;LI(d,c);if(Oi(d,c,m+8|0,m+4|0))while(1){c=J[m+4>>2];if(c)qc(Rc(c));if(Oi(d,m+12|0,m+8|0,m+4|0))continue;break}qc(Fh(d))}gc[J[J[b>>2]+4>>2]](b)}bc=m+16|0;break z}qc(h);ba(a|0);B()}J[e+36>>2]=h;if(J[a+128>>2])break u;J[e+40>>2]=1}uc(g+80|0);if(!J[Bc(J[o+8>>2],775760,g+16|0,0)>>2])J[e+24>>2]=J[g+24>>2];b=g+16|0;uc(b);q_(e,a);if(J[Bc(J[o+8>>2],776762,b,0)>>2]!=6)break t;b=0;h=J[g+24>>2];if(J[h+ -12>>2]>0)while(1){jg(h,b,g);aB(e,g);uc(g);b=b+1|0;h=J[g+24>>2];if((b|0)>2])continue;break}uc(g+16|0);if(J[a+20>>2]<=0)break r;b=1;while(1){c=b;b=Ni(a,b);ra:{if(J[hf(b+16|0,J[b+4>>2],g- -64|0,0)>>2]!=6)break ra;n=0;b=J[g+72>>2];if(J[b+12>>2]<=0)break ra;while(1){sa:{if(J[jg(b,n,g+48|0)>>2]!=9)break sa;ta:{ua:{b=J[e+32>>2];d=J[b+8>>2];if((d|0)<=0){b=0;break ua}i=J[b>>2];b=0;f=J[g+60>>2];k=J[g+56>>2];while(1){h=J[i+(b<<2)>>2];if(!(J[h+8>>2]!=9|(k|0)!=J[h+16>>2])&(f|0)==J[h+20>>2])break ua;b= -b+1|0;if((d|0)!=(b|0))continue;break}break ta}if((b|0)!=(d|0))break sa}b=g+48|0;hf(b,J[J[e>>2]+24>>2],g+32|0,0);if(J[g+32>>2]==7){d=Bc(J[g+40>>2],779620,g+16|0,0);va:{if(J[d>>2]!=4)break va;if(Ec(J[d+8>>2],780354))break va;aB(e,b)}uc(g+16|0)}uc(g+32|0)}uc(g+48|0);n=n+1|0;b=J[g+72>>2];if((n|0)>2])continue;break}}b=c+1|0;uc(g- -64|0);if((c|0)>2])continue;break}break r}h=Z()|0;qc(b);break p}c=g+96|0;ig(c,J[b+24>>2]);e=rc(48);J[e>>2]=b;J[e+8>>2]=13;J[695492]=0;aa(3282,c|0,e+8|0)|0;b=J[695492]; -J[695492]=0;wa:{xa:{if((b|0)==1)break xa;J[e+24>>2]=0;J[695492]=0;b=$(4,16)|0;c=J[695492];J[695492]=0;if((c|0)==1)break xa;J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break wa;J[e+28>>2]=c;J[695492]=0;b=$(4,16)|0;c=J[695492];J[695492]=0;if((c|0)==1)break xa;J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1){h=Z()|0;qc(b);break p}J[e+36>>2]=0;J[e+40>>2]=0;J[e+32>>2]=c;uc(g+96|0);q_(e,a);if(J[a+20>>2]>0){b=1;while(1){c=b;b=Ni(a,b);ya:{if(J[hf(b+16|0,J[b+4>>2],g- -64| -0,0)>>2]!=6)break ya;b=0;h=J[g+72>>2];if(J[h+12>>2]<=0)break ya;while(1){d=g+48|0;if(J[jg(h,b,d)>>2]==9){hf(d,J[J[e>>2]+24>>2],g+32|0,0);if(J[g+32>>2]==7){h=Bc(J[g+40>>2],779620,g+16|0,0);za:{if(J[h>>2]!=4)break za;if(Ec(J[h+8>>2],780354))break za;aB(e,d)}uc(g+16|0)}uc(g+32|0)}uc(g+48|0);b=b+1|0;h=J[g+72>>2];if((b|0)>2])continue;break}}b=c+1|0;uc(g- -64|0);if((c|0)>2])continue;break}}if(J[J[e+32>>2]+8>>2])break r;break s}h=Z()|0;break p}h=Z()|0;qc(b);break p}if(J[g+16>>2]!=5)xc(1, --1,778348,0);uc(g+16|0)}qc(p_(e));e=0}bc=g+112|0;break n}h=Z()|0}qc(e);ba(h|0);B()}a=Z()|0;qc(c);ba(a|0);B()}J[a+132>>2]=e;Bc(J[j+56>>2],789703,a+136|0,0);c=J[j+56>>2];b=bc-32|0;bc=b;J[b+16>>2]=13;J[b>>2]=13;if(J[Bc(c,780419,b+16|0,0)>>2]==7){if(J[Bc(J[b+24>>2],806514,b,0)>>2]==7)c_(a,b);uc(b)}d=b+16|0;uc(d);e=wc(sk(J[J[a+4>>2]+16>>2]+1|0),0,J[J[a+4>>2]+16>>2]+1|0);b_(a,Ce(c,798286,d),e);uc(d);Gc(e);bc=b+32|0;Ce(J[j+56>>2],790513,a+160|0);if(J[Bc(J[j+56>>2],791285,p,0)>>2]==7)Aa:{b=rc(16);J[695492]= -0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+156>>2]=c;a_(a,p);b=J[a+156>>2];c=J[b+8>>2];if(!c){qc(dd(b));J[a+156>>2]=0;break Aa}e=J[b>>2];b=J[e>>2];Ba:{if((c|0)<2)break Ba;d=c-1|0;h=d&3;Ca:{if(c-2>>>0<3){d=1;break Ca}i=e+12|0;f=e+8|0;g=e+4|0;k=d&-4;c=0;d=1;while(1){l=b;b=d<<2;m=J[b+e>>2];J[l+4>>2]=J[m>>2]-1;l=m;m=J[b+g>>2];J[l+4>>2]=J[m>>2]-1;l=m;m=J[b+f>>2];J[l+4>>2]=J[m>>2]-1;b=J[b+i>>2];J[m+4>>2]=J[b>>2]-1;d=d+4|0;c=c+4|0;if((k|0)!=(c|0))continue;break}}if(!h)break Ba;f=0;c=b;while(1){b= -J[e+(d<<2)>>2];J[c+4>>2]=J[b>>2]-1;d=d+1|0;c=b;f=f+1|0;if((h|0)!=(f|0))continue;break}}J[b+4>>2]=J[a+20>>2];break Aa}break a}uc(j+32|0);uc(j+48|0);break b}uc(j+48|0);J[a+176>>2]=0;J[a+40>>2]=5;J[a+24>>2]=5}bc=j- -64|0;return a|0}a=Z()|0;qc(b);ba(a|0);B()}function oF(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,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0;q=bc-48|0;bc=q;a:{if(c>>>0<=2){c=c<<2;A=J[c+2607788>>2];B=J[c+2607776>>2];while(1){c=J[b+4>>2];b:{if((c|0)!=J[b+104>> -2]){J[b+4>>2]=c+1;c=K[c|0];break b}c=nf(b)}if((c|0)==32|c-9>>>0<5)continue;break}t=1;c:{d:switch(c-43|0){case 0:case 2:break d;default:break c}t=(c|0)==45?-1:1;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break c}c=nf(b)}e:{f:{while(1){if(H[g+1164|0]==(c|32)){g:{if(g>>>0>6)break g;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break g}c=nf(b)}g=g+1|0;if((g|0)!=8)continue;break f}break}if((g|0)!=3){f=(g|0)==8;if(f)break f;if(!d|g>>>0<4)break e;if(f)break f}c=J[b+116>>2];if((c| -0)>=0|(c|0)>0)J[b+4>>2]=J[b+4>>2]-1;if(!d|g>>>0<4)break f;c=(c|0)<0;while(1){if(!c)J[b+4>>2]=J[b+4>>2]-1;g=g-1|0;if(g>>>0>3)continue;break}}k=bc-16|0;bc=k;j=(C(Q(Q(t|0)*Q(Infinity))),v(2));b=j&2147483647;h:{if(b-8388608>>>0<=2130706431){c=b;b=b>>>7|0;c=c<<25;d=b+1065353216|0;break h}c=j<<25;d=j>>>7|2147418112;if(b>>>0>=2139095040)break h;c=0;d=0;if(!b)break h;c=b;b=S(b);qi(k,c,0,0,0,b+81|0);i=J[k>>2];h=J[k+4>>2];c=J[k+8>>2];d=J[k+12>>2]^65536|16265-b<<16}J[q>>2]=i;J[q+4>>2]=h;J[q+8>>2]=c;J[q+12>> -2]=j&-2147483648|d;bc=k+16|0;i=J[q+8>>2];h=J[q+12>>2];j=J[q>>2];l=J[q+4>>2];break a}i:{j:{k:{if(g)break k;g=0;while(1){if(H[g+7263|0]!=(c|32))break k;l:{if(g>>>0>1)break l;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break l}c=nf(b)}g=g+1|0;if((g|0)!=3)continue;break}break j}m:switch(g|0){case 0:n:{if((c|0)!=48)break n;g=J[b+4>>2];o:{if((g|0)!=J[b+104>>2]){J[b+4>>2]=g+1;g=K[g|0];break o}g=nf(b)}if((g&-33)==88){f=bc-432|0;bc=f;c=J[b+4>>2];p:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c| -0];break p}g=nf(b)}q:{r:{while(1){if((g|0)!=48)s:{if((g|0)!=46)break q;c=J[b+4>>2];if((c|0)==J[b+104>>2])break s;J[b+4>>2]=c+1;g=K[c|0];break r}else{c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0]}else g=nf(b);D=1;continue}break}g=nf(b)}p=1;if((g|0)!=48)break q;while(1){c=r;r=c-1|0;s=s-!c|0;c=J[b+4>>2];t:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0];break t}g=nf(b)}if((g|0)==48)continue;break}D=1}l=1073676288;while(1){u:{c=g|32;v:{w:{u=g-48|0;if(u>>>0<10)break w;E=(g|0)!=46;if(E&c-97>>> -0>5)break u;if(E)break w;if(p)break u;p=1;r=i;s=h;break v}c=(g|0)>57?c-87|0:u;x:{if((h|0)<=0&i>>>0<=7|(h|0)<0){m=c+(m<<4)|0;break x}if(!h&i>>>0<=28){Nj(f+48|0,c);Qf(f+32|0,y,z,j,l,0,0,0,1073414144);y=J[f+32>>2];z=J[f+36>>2];j=J[f+40>>2];l=J[f+44>>2];Qf(f+16|0,J[f+48>>2],J[f+52>>2],J[f+56>>2],J[f+60>>2],y,z,j,l);rj(f,J[f+16>>2],J[f+20>>2],J[f+24>>2],J[f+28>>2],k,o,w,x);w=J[f+8>>2];x=J[f+12>>2];k=J[f>>2];o=J[f+4>>2];break x}if(F|!c)break x;Qf(f+80|0,y,z,j,l,0,0,0,1073610752);rj(f- -64|0,J[f+80>>2], -J[f+84>>2],J[f+88>>2],J[f+92>>2],k,o,w,x);w=J[f+72>>2];x=J[f+76>>2];F=1;k=J[f+64>>2];o=J[f+68>>2]}i=i+1|0;h=i?h:h+1|0;D=1}c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0]}else g=nf(b);continue}break}y:{if(!D){c=J[b+116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;z:{A:{if(c){c=J[b+4>>2];J[b+4>>2]=c-1;if(!d)break A;J[b+4>>2]=c-2;if(!p)break z;J[b+4>>2]=c-3;break z}if(d)break z}lk(b,0,0)}Hl(f+96|0,+(t|0)*0);k=J[f+96>>2];o=J[f+100>>2];c=J[f+108>>2];b=J[f+104>>2];break y}if((h|0)<=0&i>>>0<=7|(h|0)<0){j= -i;l=h;while(1){m=m<<4;j=j+1|0;l=j?l:l+1|0;if((j|0)!=8|l)continue;break}}B:{C:{D:{if((g&-33)==80){j=oR(b,d);c=fc;l=c;if(j|(c|0)!=-2147483648)break B;if(d){c=J[b+116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;if(c)break D;break C}k=0;o=0;lk(b,0,0);c=0;b=0;break y}j=0;l=0;if(J[b+116>>2]<0)break B}J[b+4>>2]=J[b+4>>2]-1}j=0;l=0}if(!m){Hl(f+112|0,+(t|0)*0);k=J[f+112>>2];o=J[f+116>>2];c=J[f+124>>2];b=J[f+120>>2];break y}b=p?r:i;d=j+(b<<2)|0;b=l+((p?s:h)<<2|b>>>30)|0;i=d-32|0;c=0-A|0;h=(d>>>0>>0?b+1|0:b)-(d>>> -0<32)|0;b=h;if((b|0)>0)b=1;else b=c>>>0>>0&(b|0)>=0;if(b){J[694731]=68;Nj(f+160|0,t);Qf(f+144|0,J[f+160>>2],J[f+164>>2],J[f+168>>2],J[f+172>>2],-1,-1,-1,2147418111);Qf(f+128|0,J[f+144>>2],J[f+148>>2],J[f+152>>2],J[f+156>>2],-1,-1,-1,2147418111);k=J[f+128>>2];o=J[f+132>>2];c=J[f+140>>2];b=J[f+136>>2];break y}b=A-226|0;c=b>>31;if((h|0)>=(c|0)&b>>>0<=i>>>0|(c|0)<(h|0)){if((m|0)>=0)while(1){rj(f+416|0,k,o,w,x,0,0,0,-1073807360);b=bR(k,o,w,x,1073610752);c=(b|0)>=0;b=c;rj(f+400|0,k,o,w,x,b?J[f+416>> -2]:k,b?J[f+420>>2]:o,b?J[f+424>>2]:w,b?J[f+428>>2]:x);b=i;i=b-1|0;h=h-!b|0;w=J[f+408>>2];x=J[f+412>>2];k=J[f+400>>2];o=J[f+404>>2];m=c|m<<1;if((m|0)>=0)continue;break}h=h-((A>>31)+(i>>>0>>0)|0)|0;b=(i-A|0)+32|0;h=b>>>0<32?h+1|0:h;c=b>>>0>>0&(h|0)<=0|(h|0)<0?(b|0)>0?b:0:B;E:{if((c|0)>=113){Nj(f+384|0,t);r=J[f+392>>2];s=J[f+396>>2];y=J[f+384>>2];z=J[f+388>>2];j=0;b=0;break E}Hl(f+352|0,To(1,144-c|0));Nj(f+336|0,t);y=J[f+336>>2];z=J[f+340>>2];r=J[f+344>>2];s=J[f+348>>2];rR(f+368|0,J[f+352>>2], -J[f+356>>2],J[f+360>>2],J[f+364>>2],y,z,r,s);n=J[f+376>>2];e=J[f+380>>2];j=J[f+372>>2];b=J[f+368>>2]}d=!(m&1)&((sq(k,o,w,x,0,0,0,0)|0)!=0&(c|0)<32);hs(f+320|0,d+m|0);Qf(f+304|0,y,z,r,s,J[f+320>>2],J[f+324>>2],J[f+328>>2],J[f+332>>2]);c=b;rj(f+272|0,J[f+304>>2],J[f+308>>2],J[f+312>>2],J[f+316>>2],b,j,n,e);b=d;Qf(f+288|0,y,z,r,s,b?0:k,b?0:o,b?0:w,b?0:x);rj(f+256|0,J[f+288>>2],J[f+292>>2],J[f+296>>2],J[f+300>>2],J[f+272>>2],J[f+276>>2],J[f+280>>2],J[f+284>>2]);hF(f+240|0,J[f+256>>2],J[f+260>>2],J[f+ -264>>2],J[f+268>>2],c,j,n,e);b=J[f+240>>2];d=J[f+244>>2];c=J[f+248>>2];j=J[f+252>>2];if(!sq(b,d,c,j,0,0,0,0))J[694731]=68;qR(f+224|0,b,d,c,j,i);k=J[f+224>>2];o=J[f+228>>2];c=J[f+236>>2];b=J[f+232>>2];break y}J[694731]=68;Nj(f+208|0,t);Qf(f+192|0,J[f+208>>2],J[f+212>>2],J[f+216>>2],J[f+220>>2],0,0,0,65536);Qf(f+176|0,J[f+192>>2],J[f+196>>2],J[f+200>>2],J[f+204>>2],0,0,0,65536);k=J[f+176>>2];o=J[f+180>>2];c=J[f+188>>2];b=J[f+184>>2]}J[q+16>>2]=k;J[q+20>>2]=o;J[q+24>>2]=b;J[q+28>>2]=c;bc=f+432|0;i=J[q+ -24>>2];h=J[q+28>>2];j=J[q+16>>2];l=J[q+20>>2];break a}if(J[b+116>>2]<0)break n;J[b+4>>2]=J[b+4>>2]-1}g=b;m=c;f=d;d=0;e=bc-8976|0;bc=e;F=0-A|0;E=F-B|0;F:{G:{while(1){if((m|0)!=48)H:{if((m|0)!=46)break F;b=J[g+4>>2];if((b|0)==J[g+104>>2])break H;J[g+4>>2]=b+1;m=K[b|0];break G}else{b=J[g+4>>2];if((b|0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0]}else m=nf(g);d=1;continue}break}m=nf(g)}D=1;if((m|0)!=48)break F;while(1){b=i;i=b-1|0;h=h-!b|0;b=J[g+4>>2];I:{if((b|0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0];break I}m= -nf(g)}if((m|0)==48)continue;break}d=1}J[e+784>>2]=0;J:{K:{b=(m|0)==46;c=m-48|0;L:{M:{N:{if(b|c>>>0<=9)while(1){O:{if(b&1){if(!D){i=j;h=l;D=1;break O}b=!d;break N}j=j+1|0;l=j?l:l+1|0;if((p|0)<=2044){u=(m|0)==48?u:j;b=(e+784|0)+(p<<2)|0;if(n)c=(P(J[b>>2],10)+m|0)-48|0;J[b>>2]=c;d=1;c=n+1|0;b=(c|0)==9;n=b?0:c;p=b+p|0;break O}if((m|0)==48)break O;J[e+8960>>2]=J[e+8960>>2]|1;u=18396}b=J[g+4>>2];P:{if((b|0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0];break P}m=nf(g)}b=(m|0)==46;c=m-48|0;if(b|c>>>0<10)continue; -break}i=D?i:j;h=D?h:l;if(!(!d|(m&-33)!=69)){k=oR(g,f);b=fc;o=b;Q:{if(k|(b|0)!=-2147483648)break Q;if(!f)break L;k=0;o=0;if(J[g+116>>2]<0)break Q;J[g+4>>2]=J[g+4>>2]-1}h=h+o|0;i=i+k|0;h=i>>>0>>0?h+1|0:h;break K}b=!d;if((m|0)<0)break M}if(J[g+116>>2]<0)break M;J[g+4>>2]=J[g+4>>2]-1}if(!b)break K;J[694731]=28}lk(g,0,0);i=0;h=0;c=0;b=0;break J}b=J[e+784>>2];if(!b){Hl(e,+(t|0)*0);i=J[e+8>>2];h=J[e+12>>2];c=J[e+4>>2];b=J[e>>2];break J}if(!(j>>>0>9&(l|0)>=0|(l|0)>0|((i|0)!=(j|0)|(h|0)!=(l|0))|(b>>>B| -0?(B|0)<=30:0))){Nj(e+48|0,t);hs(e+32|0,b);Qf(e+16|0,J[e+48>>2],J[e+52>>2],J[e+56>>2],J[e+60>>2],J[e+32>>2],J[e+36>>2],J[e+40>>2],J[e+44>>2]);i=J[e+24>>2];h=J[e+28>>2];c=J[e+20>>2];b=J[e+16>>2];break J}b=F>>>1|0;if(b>>>0>>0&(h|0)>=0|(h|0)>0){J[694731]=68;Nj(e+96|0,t);Qf(e+80|0,J[e+96>>2],J[e+100>>2],J[e+104>>2],J[e+108>>2],-1,-1,-1,2147418111);Qf(e- -64|0,J[e+80>>2],J[e+84>>2],J[e+88>>2],J[e+92>>2],-1,-1,-1,2147418111);i=J[e+72>>2];h=J[e+76>>2];c=J[e+68>>2];b=J[e+64>>2];break J}b=A-226|0;c=i>>> -0>>0;b=b>>31;if(c&(h|0)<=(b|0)|(b|0)>(h|0)){J[694731]=68;Nj(e+144|0,t);Qf(e+128|0,J[e+144>>2],J[e+148>>2],J[e+152>>2],J[e+156>>2],0,0,0,65536);Qf(e+112|0,J[e+128>>2],J[e+132>>2],J[e+136>>2],J[e+140>>2],0,0,0,65536);i=J[e+120>>2];h=J[e+124>>2];c=J[e+116>>2];b=J[e+112>>2];break J}if(n){if((n|0)<=8){b=(e+784|0)+(p<<2)|0;g=J[b>>2];while(1){g=P(g,10);n=n+1|0;if((n|0)!=9)continue;break}J[b>>2]=g}p=p+1|0}n=i;R:{if((i|0)<(u|0)|(u|0)>=9|(i|0)>17)break R;if((i|0)==9){Nj(e+192|0,t);hs(e+176|0,J[e+784>>2]); -Qf(e+160|0,J[e+192>>2],J[e+196>>2],J[e+200>>2],J[e+204>>2],J[e+176>>2],J[e+180>>2],J[e+184>>2],J[e+188>>2]);i=J[e+168>>2];h=J[e+172>>2];c=J[e+164>>2];b=J[e+160>>2];break J}if((n|0)<=8){Nj(e+272|0,t);hs(e+256|0,J[e+784>>2]);Qf(e+240|0,J[e+272>>2],J[e+276>>2],J[e+280>>2],J[e+284>>2],J[e+256>>2],J[e+260>>2],J[e+264>>2],J[e+268>>2]);Nj(e+224|0,J[(0-n<<2)+2607776>>2]);aR(e+208|0,J[e+240>>2],J[e+244>>2],J[e+248>>2],J[e+252>>2],J[e+224>>2],J[e+228>>2],J[e+232>>2],J[e+236>>2]);i=J[e+216>>2];h=J[e+220>>2]; -c=J[e+212>>2];b=J[e+208>>2];break J}b=(P(n,-3)+B|0)+27|0;c=J[e+784>>2];if(c>>>b|0?(b|0)<=30:0)break R;Nj(e+352|0,t);hs(e+336|0,c);Qf(e+320|0,J[e+352>>2],J[e+356>>2],J[e+360>>2],J[e+364>>2],J[e+336>>2],J[e+340>>2],J[e+344>>2],J[e+348>>2]);Nj(e+304|0,J[(n<<2)+2607704>>2]);Qf(e+288|0,J[e+320>>2],J[e+324>>2],J[e+328>>2],J[e+332>>2],J[e+304>>2],J[e+308>>2],J[e+312>>2],J[e+316>>2]);i=J[e+296>>2];h=J[e+300>>2];c=J[e+292>>2];b=J[e+288>>2];break J}while(1){b=p;p=b-1|0;if(!J[(e+784|0)+(p<<2)>>2])continue;break}u= -0;d=(n|0)%9|0;S:{if(!d){c=0;break S}c=0;d=(n|0)<0?d+9|0:d;T:{if(!b){b=0;break T}i=J[(0-d<<2)+2607776>>2];k=1E9/(i|0)|0;m=0;g=0;while(1){j=m;h=e+784|0;l=h+(g<<2)|0;m=J[l>>2];p=(m>>>0)/(i>>>0)|0;j=j+p|0;J[l>>2]=j;j=!j&(c|0)==(g|0);c=j?c+1&2047:c;n=j?n-9|0:n;m=P(k,m-P(i,p)|0);g=g+1|0;if((g|0)!=(b|0))continue;break}if(!m)break T;J[h+(b<<2)>>2]=m;b=b+1|0}n=(n-d|0)+9|0}while(1){g=(e+784|0)+(c<<2)|0;m=(n|0)<36;U:{while(1){if(!m&((n|0)!=36|M[g>>2]>=10384593))break U;p=b+2047|0;d=0;while(1){j=b;k=p&2047;p= -(e+784|0)+(k<<2)|0;b=J[p>>2];l=b>>>3|0;b=b<<29;i=b+d|0;h=b>>>0>i>>>0?l+1|0:l;if(!h&i>>>0<1000000001)d=0;else{b=i;d=Fzb(b,h,1E9,0);i=b-Dzb(d,fc,1E9,0)|0}J[p>>2]=i;b=(c|0)==(k|0)?j:i?j:k;i=j-1&2047;b=(i|0)!=(k|0)?j:b;p=k-1|0;if((c|0)!=(k|0))continue;break}u=u-29|0;b=j;if(!d)continue;break}c=c-1&2047;if((c|0)==(b|0)){g=(b+2046&2047)<<2;b=e+784|0;j=g+b|0;J[j>>2]=J[j>>2]|J[b+(i<<2)>>2];b=i}n=n+9|0;J[(e+784|0)+(c<<2)>>2]=d;continue}break}V:{W:while(1){i=b+1&2047;k=(e+784|0)+((b-1&2047)<<2)|0;while(1){j= -(n|0)>45?9:1;X:{while(1){d=c;g=0;Y:{while(1){Z:{c=d+g&2047;if((c|0)==(b|0))break Z;c=J[(e+784|0)+(c<<2)>>2];h=J[(g<<2)+2607728>>2];if(c>>>0>>0)break Z;if(c>>>0>h>>>0)break Y;g=g+1|0;if((g|0)!=4)continue}break}if((n|0)!=36)break Y;i=0;h=0;g=0;j=0;l=0;while(1){c=d+g&2047;if((c|0)==(b|0)){b=b+1&2047;J[((b<<2)+e|0)+780>>2]=0}hs(e+768|0,J[(e+784|0)+(c<<2)>>2]);Qf(e+752|0,i,h,j,l,0,0,1342177280,1075633366);rj(e+736|0,J[e+752>>2],J[e+756>>2],J[e+760>>2],J[e+764>>2],J[e+768>>2],J[e+772>>2],J[e+776>>2], -J[e+780>>2]);j=J[e+744>>2];l=J[e+748>>2];i=J[e+736>>2];h=J[e+740>>2];g=g+1|0;if((g|0)!=4)continue;break}Nj(e+720|0,t);Qf(e+704|0,i,h,j,l,J[e+720>>2],J[e+724>>2],J[e+728>>2],J[e+732>>2]);j=J[e+712>>2];l=J[e+716>>2];i=0;h=0;k=J[e+704>>2];o=J[e+708>>2];p=u+113|0;g=p-A|0;m=(g|0)<(B|0);c=m?(g|0)>0?g:0:B;if((c|0)<=112)break X;break V}u=j+u|0;c=b;if((b|0)==(d|0))continue;break}l=1E9>>>j|0;m=-1<>2];h=h+(f>>>j|0)|0;J[g>>2]=h;h=!h&(c|0)==(d|0);c=h?c+1& -2047:c;n=h?n-9|0:n;g=P(l,f&m);d=d+1&2047;if((d|0)!=(b|0))continue;break}if(!g)continue;if((c|0)!=(i|0)){J[p+(b<<2)>>2]=g;b=i;continue W}J[k>>2]=J[k>>2]|1;continue}break}break}Hl(e+656|0,To(1,225-c|0));rR(e+688|0,J[e+656>>2],J[e+660>>2],J[e+664>>2],J[e+668>>2],k,o,j,l);y=J[e+696>>2];z=J[e+700>>2];w=J[e+688>>2];x=J[e+692>>2];Hl(e+640|0,To(1,113-c|0));pR(e+672|0,k,o,j,l,J[e+640>>2],J[e+644>>2],J[e+648>>2],J[e+652>>2]);i=J[e+672>>2];h=J[e+676>>2];r=J[e+680>>2];s=J[e+684>>2];hF(e+624|0,k,o,j,l,i,h,r,s); -rj(e+608|0,w,x,y,z,J[e+624>>2],J[e+628>>2],J[e+632>>2],J[e+636>>2]);j=J[e+616>>2];l=J[e+620>>2];k=J[e+608>>2];o=J[e+612>>2]}n=d+4&2047;_:{if((n|0)==(b|0))break _;n=J[(e+784|0)+(n<<2)>>2];$:{if(n>>>0<=499999999){if(!n&(d+5&2047)==(b|0))break $;Hl(e+496|0,+(t|0)*.25);rj(e+480|0,i,h,r,s,J[e+496>>2],J[e+500>>2],J[e+504>>2],J[e+508>>2]);r=J[e+488>>2];s=J[e+492>>2];i=J[e+480>>2];h=J[e+484>>2];break $}if((n|0)!=5E8){Hl(e+592|0,+(t|0)*.75);rj(e+576|0,i,h,r,s,J[e+592>>2],J[e+596>>2],J[e+600>>2],J[e+604>>2]); -r=J[e+584>>2];s=J[e+588>>2];i=J[e+576>>2];h=J[e+580>>2];break $}G=+(t|0);if((d+5&2047)==(b|0)){Hl(e+528|0,G*.5);rj(e+512|0,i,h,r,s,J[e+528>>2],J[e+532>>2],J[e+536>>2],J[e+540>>2]);r=J[e+520>>2];s=J[e+524>>2];i=J[e+512>>2];h=J[e+516>>2];break $}Hl(e+560|0,G*.75);rj(e+544|0,i,h,r,s,J[e+560>>2],J[e+564>>2],J[e+568>>2],J[e+572>>2]);r=J[e+552>>2];s=J[e+556>>2];i=J[e+544>>2];h=J[e+548>>2]}if((c|0)>111)break _;pR(e+464|0,i,h,r,s,0,0,0,1073676288);if(sq(J[e+464>>2],J[e+468>>2],J[e+472>>2],J[e+476>>2],0,0, -0,0))break _;rj(e+448|0,i,h,r,s,0,0,0,1073676288);r=J[e+456>>2];s=J[e+460>>2];i=J[e+448>>2];h=J[e+452>>2]}rj(e+432|0,k,o,j,l,i,h,r,s);hF(e+416|0,J[e+432>>2],J[e+436>>2],J[e+440>>2],J[e+444>>2],w,x,y,z);j=J[e+424>>2];l=J[e+428>>2];k=J[e+416>>2];o=J[e+420>>2];aa:{if((E-2|0)>=(p&2147483647))break aa;J[e+408>>2]=j;J[e+412>>2]=l&2147483647;J[e+400>>2]=k;J[e+404>>2]=o;Qf(e+384|0,k,o,j,l,0,0,0,1073610752);d=bR(J[e+400>>2],J[e+404>>2],J[e+408>>2],J[e+412>>2],1081081856);b=(d|0)>=0;j=b?J[e+392>>2]:j;l=b?J[e+ -396>>2]:l;k=b?J[e+384>>2]:k;o=b?J[e+388>>2]:o;i=sq(i,h,r,s,0,0,0,0);u=b+u|0;if((u+110|0)<=(E|0))if(!(m&((c|0)!=(g|0)|(d|0)<0)&(i|0)!=0))break aa;J[694731]=68}qR(e+368|0,k,o,j,l,u);i=J[e+376>>2];h=J[e+380>>2];c=J[e+372>>2];b=J[e+368>>2]}J[q+40>>2]=i;J[q+44>>2]=h;J[q+32>>2]=b;J[q+36>>2]=c;bc=e+8976|0;i=J[q+40>>2];h=J[q+44>>2];j=J[q+32>>2];l=J[q+36>>2];break a;case 3:break j;default:break m}c=J[b+116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;if(c)J[b+4>>2]=J[b+4>>2]-1;break i}ba:{c=J[b+4>>2];ca:{if((c|0)!= -J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break ca}c=nf(b)}if((c|0)==40){g=1;break ba}h=2147450880;if(J[b+116>>2]<0)break a;J[b+4>>2]=J[b+4>>2]-1;break a}while(1){da:{c=J[b+4>>2];ea:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break ea}c=nf(b)}if(!(c-48>>>0<10|c-65>>>0<26|(c|0)==95))if(c-97>>>0>=26)break da;g=g+1|0;continue}break}h=2147450880;if((c|0)==41)break a;c=J[b+116>>2];if((c|0)>=0|(c|0)>0)J[b+4>>2]=J[b+4>>2]-1;fa:{if(d){if(g)break fa;break a}break i}while(1){if((c|0)>0|(c|0)>=0)J[b+4>>2]=J[b+ -4>>2]-1;g=g-1|0;if(g)continue;break}break a}J[694731]=28;lk(b,0,0)}h=0}J[a>>2]=j;J[a+4>>2]=l;J[a+8>>2]=i;J[a+12>>2]=h;bc=q+48|0}function Iza(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-112|0;bc=d;i=di();b=d+108|0;Nm(b,J[a+44>>2]);J[695492]=0;da(5108,d+104|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if((b|0)!=1){J[695492]=0;f=J[d+104>>2];J[d+96>>2]=0;J[d+100>>2]=J[682146];b=ha(5109,f|0,d+96|0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f; -if(b)break u;J[695492]=0;b=ja(5018,d+60|0,J[682138],2373496,336,2401584,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break t;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break v;break b}a=Z()|0;break c}a=Z()|0;Fc(b);break d}if((b|0)<0){J[695492]=0;b=ja(5018,d+60|0,2379803,2373496,338,2401584,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break s;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break d}if(b>>>0<=7){J[695492]=0;b=ja(5018,d+60|0,2380188,2373496, -340,2401584,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break r;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break d}J[695492]=0;b=d+96|0;c=fd(b,2380742,-1);e=J[695492];J[695492]=0;if((e|0)==1)break f;if(!c){J[695492]=0;ha(5109,f|0,b|0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;b=fd(b,2381335,-1);c=J[695492];J[695492]=0;if((c|0)==1)break f;if(!b){J[695492]=0;b=$(4,136)|0;c=J[695492];J[695492]=0;w:{x:{y:{z:{A:{B:{if((c|0)==1)break B;J[695492]=0; -c=$(5149,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break q;J[695492]=0;J[d+60>>2]=0;b=d+60|0;aa(4985,b|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break B;J[695492]=0;aa(4993,a+48|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;b=J[d+60>>2];J[d+60>>2]=0;C:{if(!b)break C;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break C;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+48>>2];J[695492]=0;J[d+60>>2]=0;c=d+60|0;aa(4985,c|0, -f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break z;J[695492]=0;da(5216,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break y;b=J[d+60>>2];J[d+60>>2]=0;D:{if(!b)break D;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break D;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;_(5162,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;c=J[a+48>>2];if(J[c+16>>2]){b=J[c+20>>2];c=c+12|0;J[d+64>>2]=c;J[d+60>>2]=b;if(!b){J[695492]=0;da(5073, -d+60|0,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break f}b=J[b+8>>2];if(b)break x}b=3;break w}a=Z()|0;break d}a=Z()|0;vc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;vc(d+60|0);break d}b=J[b+8>>2]?3:4}J[a+56>>2]=b;J[695492]=0;Zg(a+92|0,0,0,3,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2];J[695492]=0;ia(b|0,i|0,a|0,3,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;_(5214,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;b=d+96|0;c=ha(5109,f|0,b|0,0,0)|0;e= -J[695492];J[695492]=0;if((e|0)==1)break f;if(!c)break o;J[695492]=0;b=fd(b,2381699,-1);c=J[695492];J[695492]=0;if((c|0)==1)break f;if(b)break o;J[695492]=0;b=d+60|0;_(5217,b|0);c=J[695492];J[695492]=0;E:{F:{G:{if((c|0)!=1){J[695492]=0;aa(4993,a+52|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break G;b=J[d+60>>2];J[d+60>>2]=0;H:{if(!b)break H;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break H;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b= -J[a+52>>2];J[695492]=0;J[d+60>>2]=0;c=d+60|0;aa(4985,c|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break F;J[695492]=0;da(5218,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break E;b=J[d+60>>2];J[d+60>>2]=0;I:{if(!b)break I;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break I;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;_(5162,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;break o}a=Z()|0;break d}a=Z()|0;vc(d+60|0);break d}a= -Z()|0;break d}a=Z()|0;vc(d+60|0);break d}J[695492]=0;b=fd(d+96|0,2382167,-1);c=J[695492];J[695492]=0;if((c|0)==1)break f;if(!b){J[a+56>>2]=1;J[695492]=0;Zg(a+92|0,0,0,1,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2];J[695492]=0;ia(b|0,i|0,a|0,1,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;_(5214,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break o;break f}J[695492]=0;b=ja(5018,d+60|0,2382284,2373496,385,2401584,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break p;J[695492]= -0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break d}J[a+56>>2]=5;J[695492]=0;Zg(a+92|0,0,0,1,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2];J[695492]=0;ia(b|0,i|0,a|0,1,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;_(5214,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;break n}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;qc(b);break d}a=Z()|0;break d}if(J[a+56>>2]==1){J[695492]=0;b=d+60|0;_(5219,b|0);c=J[695492];J[695492]=0;J:{if((c| -0)!=1){J[695492]=0;aa(4993,a+108|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;K:{if(!b)break K;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break K;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+108>>2];J[695492]=0;J[d+60>>2]=0;aa(4985,d+60|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[695492]=0;da(5220,b|0,J[d+60>>2]);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;L:{if(!b)break L; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break L;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;_(5162,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;while(1){J[695492]=0;b=ha(5109,f|0,d+96|0,d+12|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(!b){J[695492]=0;b=ja(5018,d+60|0,2386509,2373496,403,2401584,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b; -a=Z()|0;Fc(b);break d}a=Z()|0;break d}J[695492]=0;b=d+96|0;c=fd(b,2386874,-1);e=J[695492];J[695492]=0;if((e|0)==1)break e;M:{N:{if(!c)break N;J[695492]=0;c=fd(b,2387166,-1);e=J[695492];J[695492]=0;if((e|0)==1)break e;if(!c)break N;J[695492]=0;c=fd(b,2387371,-1);b=J[695492];J[695492]=0;if((b|0)==1)break e;b=0;if(c)break M}b=J[d+12>>2]}J[695492]=0;_(5162,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;if(!b)continue;break}break J}a=Z()|0;vc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;vc(d+60|0);break d}a= -Z()|0;break d}e=0;c=J[a+108>>2];O:{if(((J[c+56>>2]-J[c+52>>2]|0)+1|0)<=0)break O;P:{Q:{while(1){J[695492]=0;ca(5221,d+60|0,c|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break Q;c=J[d+60>>2];J[d+60>>2]=0;R:{if(!c)break R;J[695492]=0;h=J[c+4>>2]-1|0;J[c+4>>2]=h;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(h)break R;J[695492]=0;_(4987,c|0);h=J[695492];J[695492]=0;if((h|0)==1)break a}if((b|0)!=J[c+20>>2]){e=e+1|0;c=J[a+108>>2];if((e|0)>=((J[c+56>>2]-J[c+52>>2]|0)+1|0))break O;continue}break}b=J[c+8>> -2];S:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+60|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break S;a=Z()|0;break d}J[d+60>>2]=0}J[695492]=0;aa(4993,a+116|0,d+60|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break P;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break P;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break P}break a}a=Z()|0;vc(d+60|0);break d}a=Z()|0;break d}b=J[a+116>>2];J[a+120>>2]=J[(b?b+12|0:2728584)>> -2]}b=J[a+116>>2];if(!(J[b+8>>2]?b:0)){J[695492]=0;b=ja(5018,d+60|0,2386509,2373496,425,2401584,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break d}J[695492]=0;Zg(a+92|0,0,0,2,0);b=J[695492];J[695492]=0;if((b|0)==1)break g;b=J[J[i>>2]+44>>2];J[695492]=0;ia(b|0,i|0,a|0,2,0);b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;_(5214,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break g}while(1){T:{J[695492]=0;b=d+96| -0;c=ha(5109,f|0,b|0,0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break T;if(!c)break n;J[695492]=0;b=fd(b,2381699,-1);c=J[695492];J[695492]=0;if((c|0)==1)break T;if(!b){J[695492]=0;b=d+60|0;_(5217,b|0);c=J[695492];J[695492]=0;U:{V:{W:{if((c|0)!=1){J[695492]=0;aa(4993,a+52|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break W;b=J[d+60>>2];J[d+60>>2]=0;X:{if(!b)break X;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break X;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]= -0;if((b|0)==1)break a}b=J[a+52>>2];J[695492]=0;J[d+60>>2]=0;c=d+60|0;aa(4985,c|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break V;J[695492]=0;da(5218,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break U;b=J[d+60>>2];J[d+60>>2]=0;Y:{if(!b)break Y;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break Y;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;_(5162,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;break n}a=Z()|0;break d}a= -Z()|0;vc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;vc(d+60|0);break d}J[695492]=0;_(5162,f|0);b=J[695492];J[695492]=0;if((b|0)!=1)continue}break}a=Z()|0;break d}Z:switch(J[a+56>>2]-1|0){case 0:case 4:J[695492]=0;b=d+60|0;ia(5222,b|0,a|0,-1,0);f=J[695492];J[695492]=0;_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{if((f|0)!=1){J[695492]=0;f=a+124|0;aa(4993,f|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ha;b=J[d+60>>2];J[d+60>>2]=0;ia:{if(!b)break ia;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]= -0;if((e|0)==1)break a;if(c)break ia;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[f>>2];ja:{if(!b)break ja;J[695492]=0;c=d+60|0;da(5223,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break ga;J[695492]=0;aa(4993,a+112|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break fa;b=J[d+60>>2];J[d+60>>2]=0;if(!b)break ja;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break ja;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]= -0;aa(4985,f|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[a+56>>2];if(J[a+112>>2])break $;e=a+112|0;if((b|0)!=1)break aa;J[695492]=0;f=aa(4989,d+12|0,2387600)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ea;J[695492]=0;b=ga(5173,d+60|0,f|0,a+8|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break da;J[695492]=0;c=$(4,128)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ca;J[695492]=0;h=aa(5224,c|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;J[695492]=0;J[d+48>>2]=0;c=d+48|0;aa(4985,c|0,h|0)|0; -h=J[695492];J[695492]=0;if((h|0)==1)break ca;J[695492]=0;aa(4993,e|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break ba;c=J[d+48>>2];J[d+48>>2]=0;ka:{if(!c)break ka;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break ka;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[b+24>>2]=2381060;J[b>>2]=2381028;c=J[b+28>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[b+28>>2]=0}J[b+16>>2]=2381060;c=J[b+20>>2];if(c){e=J[c+4>> -2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[b+20>>2]=0}sc(b+8|0);sc(f);b=J[a+116>>2];b=J[(b?b+12|0:2728584)>>2];f=J[a+112>>2];J[695492]=0;ca(5225,f|0,-1,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;break _}a=Z()|0;break d}a=Z()|0;vc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;vc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;sc(f);break d}a=Z()|0;break h}a=Z()|0;vc(d+48|0);break h}J[695492]=0;f=aa(4989,d+48|0,2387600)|0;b=J[695492];J[695492]=0;la:{ma:{na:{oa:{pa:{qa:{if((b|0)!=1){J[695492]=0;b=d+12| -0;h=a+8|0;da(5226,b|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break qa;J[695492]=0;b=ga(5173,d+60|0,f|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break pa;J[695492]=0;c=$(4,128)|0;g=J[695492];J[695492]=0;if((g|0)==1)break oa;J[695492]=0;g=aa(5224,c|0,b|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break k;J[695492]=0;J[d+56>>2]=0;c=d+56|0;aa(4985,c|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break oa;J[695492]=0;aa(4993,e|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break na;c=J[d+56>>2];J[d+56>>2]= -0;ra:{if(!c)break ra;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(g)break ra;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[b+24>>2]=2381060;J[b>>2]=2381028;c=J[b+28>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)gc[J[J[c>>2]+4>>2]](c);J[b+28>>2]=0}J[b+16>>2]=2381060;c=J[b+20>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)gc[J[J[c>>2]+4>>2]](c);J[b+20>>2]=0}sc(b+8|0);J[d+36>>2]=2381060;J[d+12>>2]=2381028;b=J[d+40>>2];if(b){c=J[b+4>>2]-1|0; -J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[d+40>>2]=0}J[d+28>>2]=2381060;b=J[d+32>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[d+32>>2]=0}sc(d+20|0);sc(f);b=J[e>>2];J[695492]=0;f=d+12|0;da(5113,f|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break ma;c=J[d+12>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;ca(5225,b|0,-1,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break la;sc(f);break _}a=Z()|0;break d}a=Z()|0;sc(f);break d}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;vc(d+56|0);break j}a= -Z()|0;break d}a=Z()|0;sc(d+12|0);break d}if((b|0)!=5)break _;J[a+56>>2]=2}J[695492]=0;Zg(a+92|0,0,0,4,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2];J[695492]=0;ia(b|0,i|0,a|0,4,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;_(5214,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;break;default:break Z}J[695492]=0;Zg(a+92|0,0,0,8,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2];J[695492]=0;ia(b|0,i|0,a|0,8,0);b=J[695492];J[695492]=0;if((b|0)==1)break f; -J[695492]=0;_(5214,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;Zg(a+96|0,0,0,2,0);a=J[695492];J[695492]=0;if((a|0)==1)break f;sc(d+96|0);a=J[d+104>>2];J[d+104>>2]=0;sa:{if(!a)break sa;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(b)break sa;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[d+108>>2];J[d+108>>2]=0;ta:{if(!a)break ta;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(b)break ta; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+112|0;return}a=Z()|0;break d}a=Z()|0;qc(c);break h}a=Z()|0;qc(c)}ud(b)}ud(d+12|0);sc(f);break d}ud(b);sc(f);break d}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0}sc(d+96|0);vc(d+104|0)}vc(d+108|0);ba(a|0);B()}B()}ea(0)|0;yc();B()}function Ura(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=Q(0),l=0,m=0,n=Q(0),o=0,p=0,q=0,r=0,s=0,t=0,u=0;i=bc-3088|0;bc=i;gc[J[J[a>>2]+48>>2]](a);g=J[a+12>>2];if(g)qc(jv(g));g=J[a+16>>2]; -if(g)qc(jv(g));g=J[a+20>>2];if(g)qc(jv(g));J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;m=L[b+10>>1];p=L[b+8>>1];e=P(m,p);u=ch(i+4|0,i+12|0,e,1);J[695492]=0;h=$(4,32)|0;g=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((g|0)!=1){J[695492]=0;f=ga(5501,h|0,m|0,p|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[a+12>>2]=f;if(d>>>0<4){d=d<<2;J[a+36>>2]=J[d+2415932>>2];J[a+40>>2]=J[d+2415916>>2]}d=0;g=J[c>>2];r=0;f:{if(!g)break f;if(!J[g+20>>2]){J[695492]=0;_(5017,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break b}c= -L[g+12>>1];t=L[g+14>>1];g:{if(!L[g+8>>1]){if(J[682142]>=(c+t|0))break g;J[695492]=0;b=ja(5018,i+2064|0,2380285,2380614,577,2381799,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=Z()|0;Fc(b);break a}r=c+J[g+20>>2]|0;break f}r=c+J[682141]|0}g=L[b+8>>1]?J[b+16>>2]:0;l=L[b+12>>1];c=J[i+12>>2];while(1){q=d<<2;h=q+(i+1040|0)|0;n=Q(d<<16);k=Q(n*Q(.6086959838867188));h:{if(Q(R(k))>2]=j; -h=q+(i+2064|0)|0;k=Q(n*Q(.3043479919433594));i:{if(Q(R(k))>2]=j;h=q+(i+16|0)|0;k=Q(n*Q(.08695600181818008));j:{if(Q(R(k))>2]=j;d=d+1|0;if((d|0)!=256)continue;break}break c}a=Z()|0;break a}a=Z()|0;qc(h);break a}B()}q=(m|0)!=0&(p|0)!=0;if(q){l=P(l,3);while(1){j=0;h=c;d=g;while(1){H[h|0]=(J[(i+16|0)+(K[d|0]<<2)>>2]+(J[(i+2064|0)+(K[d+2|0]<<2)>>2]+J[(i+1040|0)+(K[d+1|0]<<2)>>2]|0)|0)+32768>>>16^128;h=h+1|0; -d=d+3|0;j=j+1|0;if((j|0)!=(m|0))continue;break}c=c+m|0;g=g+l|0;o=o+1|0;if((p|0)!=(o|0))continue;break}c=J[i+12>>2]}if(!(!e|J[a+36>>2]>=0)){d=c+e|0;while(1){H[c|0]=K[c|0]^-1;c=c+1|0;if(d>>>0>c>>>0)continue;break}c=J[i+12>>2]}J[695492]=0;la(5502,f|0,c|0,m|0,r|0,t|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;k:{l:{m:{n:{if(J[a+36>>2]<0)break n;J[695492]=0;d=$(4,32)|0;c=J[695492];J[695492]=0;o:{p:{q:{if((c|0)!=1){J[695492]=0;e=ga(5501,d|0,m|0,p|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;J[a+16>> -2]=e;J[695492]=0;d=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;J[695492]=0;f=ga(5501,d|0,m|0,p|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break p;J[a+20>>2]=f;d=0;o=L[b+8>>1]?J[b+16>>2]:0;h=L[b+12>>1];g=J[i+12>>2];while(1){s=d<<2;c=s+(i+1040|0)|0;n=Q(d<<16);k=Q(n*Q(-.3478260040283203));r:{if(Q(R(k))>2]=j;c=s+(i+2064|0)|0;k=Q(n*Q(-.17391300201416016));s:{if(Q(R(k))>2]=j;c=s+(i+16|0)|0;k=Q(n*Q(.5217390060424805)); -t:{if(Q(R(k))>2]=j;d=d+1|0;if((d|0)!=256)continue;break}break o}a=Z()|0;break a}a=Z()|0;qc(d);break a}a=Z()|0;qc(d);break a}if(q){c=0;s=P(h,3);while(1){j=0;h=g;d=o;while(1){l=(J[(i+16|0)+(K[d|0]<<2)>>2]+(J[(i+2064|0)+(K[d+2|0]<<2)>>2]+J[(i+1040|0)+(K[d+1|0]<<2)>>2]|0)|0)+32768>>16;l=(l|0)>=127?127:l;H[h|0]=(l|0)<=-128?-128:l;h=h+1|0;d=d+3|0;j=j+1|0;if((j|0)!=(m|0))continue;break}g=g+m|0;o=o+s|0;c=c+1|0;if((p|0)!=(c|0))continue;break}g=J[i+12>>2]}d=0; -J[695492]=0;la(5502,e|0,g|0,m|0,r|0,t|0);c=J[695492];J[695492]=0;if((c|0)==1)break k;o=L[b+8>>1]?J[b+16>>2]:0;h=L[b+12>>1];g=J[i+12>>2];while(1){l=d<<2;b=l+(i+1040|0)|0;n=Q(d<<16);k=Q(n*Q(-.40579700469970703));u:{if(Q(R(k))>2]=c;b=l+(i+2064|0)|0;k=Q(n*Q(.46376800537109375));v:{if(Q(R(k))>2]=c;b=l+(i+16|0)|0;k=Q(n*Q(-.05797100067138672));w:{if(Q(R(k))>2]=c; -d=d+1|0;if((d|0)!=256)continue;break}if(q){c=0;l=P(h,3);while(1){j=0;h=g;d=o;while(1){b=(J[(i+16|0)+(K[d|0]<<2)>>2]+(J[(i+2064|0)+(K[d+2|0]<<2)>>2]+J[(i+1040|0)+(K[d+1|0]<<2)>>2]|0)|0)+32768>>16;b=(b|0)>=127?127:b;H[h|0]=(b|0)<=-128?-128:b;h=h+1|0;d=d+3|0;j=j+1|0;if((j|0)!=(m|0))continue;break}g=g+m|0;o=l+o|0;c=c+1|0;if((p|0)!=(c|0))continue;break}g=J[i+12>>2]}J[695492]=0;la(5502,f|0,g|0,m|0,r|0,t|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;if(!J[a+40>>2])break n;if(J[e+20>>2]>0){h=0;while(1){a= -J[e>>2];J[695492]=0;b=h<<4;a=J[(b+a|0)+4>>2];if(a)J[a>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+4>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+8>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+16>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l; -a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+20>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+24>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+28>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+32>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+36>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l; -a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+40>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+44>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+48>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+52>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+56>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l; -a=J[e>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+60>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+4>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+8>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l; -a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+16>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+20>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+24>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+28>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+32>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l; -a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+36>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+40>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+44>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+48>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+52>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l; -a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+56>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+60>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+4>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+8>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l; -a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+16>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+20>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+24>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+28>>2]=0;a=J[695492];J[695492]=0;if((a| -0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+32>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+36>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+40>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+44>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+48>>2]=0;a=J[695492];J[695492]= -0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+52>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+56>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[e>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+60>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break l;h=h+1|0;if((h|0)>2])continue;break}}if(J[f+20>>2]<=0)break n;h=0;while(1){a=J[f>>2];J[695492]=0;b=h<<4;a=J[(b+a|0)+4>>2];if(a)J[a>>2]=0;a=J[695492];J[695492]=0;if((a| -0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+4>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+8>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+16>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+20>>2]=0;a=J[695492];J[695492]=0; -if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+24>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+28>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+32>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+36>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+40>>2]=0;a=J[695492];J[695492]= -0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+44>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+48>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+52>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+56>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+4>>2];if(a)J[a+60>>2]=0;a=J[695492];J[695492]= -0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+4>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+8>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+16>>2]=0;a=J[695492];J[695492]= -0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+20>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+24>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+28>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+32>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+36>>2]=0;a=J[695492];J[695492]= -0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+40>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+44>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+48>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+52>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+56>>2]=0;a=J[695492];J[695492]= -0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+8>>2];if(a)J[a+60>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+4>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+8>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+12>>2]=0;a=J[695492];J[695492]= -0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+16>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+20>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+24>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+28>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+32>>2]=0;a=J[695492]; -J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+36>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+40>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+44>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+48>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+52>>2]= -0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+56>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f>>2];J[695492]=0;a=J[(a+b|0)+12>>2];if(a)J[a+60>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break m;h=h+1|0;if((h|0)>2])continue;break}}_c(u);bc=i+3088|0;return}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0}_c(u);ba(a|0);B()}function z3(a,b){var c=0,d=Q(0),e=Q(0),f=Q(0),g=Q(0),h=0,i=0,j=Q(0),k=Q(0),l=0,m=0,n=0,o=Q(0),p=Q(0),q=Q(0), -r=Q(0),s=0,t=Q(0),u=Q(0),v=0,w=Q(0),x=Q(0),y=Q(0),z=Q(0),A=Q(0),C=Q(0),D=0,E=0,F=0,G=0,I=Q(0),L=0,M=Q(0),O=Q(0),S=Q(0),T=Q(0),U=Q(0);m=bc-48|0;bc=m;J[a+2928>>2]=4;a:{if(b)b:{h=bc-32|0;bc=h;J[h+20>>2]=0;J[h+12>>2]=0;J[h+16>>2]=0;H[h+28|0]=0;b=h+12|0;J[h+24>>2]=b;c:{d:{e:{i=J[a+212>>2];n=a+208|0;l=J[n>>2];c=i-l|0;s=(c|0)/12|0;if(s>>>0>=357913942){J[695492]=0;_(2380,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;B()}J[695492]=0;c=$(4,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[h+16>>2]=c; -J[h+12>>2]=c;J[695492]=0;J[h+20>>2]=c+P(s,12);b=ha(2262,h+20|0,l|0,i|0,c|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1)break c;b=Z()|0;J[h+16>>2]=c;break d}b=Z()|0}no(h+24|0);break a}J[h+16>>2]=b;b=J[h+12>>2];c=J[b+36>>2];d=N[c+28>>2];i=J[b>>2];g=N[i+28>>2];j=N[i+12>>2];l=J[b+12>>2];k=N[l+28>>2];f=N[c+12>>2];e=N[c+4>>2];r=N[l+4>>2];u=N[i+4>>2];t=Q(N[i+24>>2]+N[c>>2]);N[l+8>>2]=Q(Q(Q(Q(Q(Q(N[i+8>>2]+N[l>>2])*Q(6))-Q(N[i>>2]*Q(4)))-Q(t+t))+Q(Q(N[c+8>>2]+N[l+24>>2])*Q(3)))-N[c+24>>2])*Q(.1111111119389534); -g=Q(g+e);N[l+12>>2]=Q(Q(Q(Q(Q(Q(j+r)*Q(6))-Q(u*Q(4)))-Q(g+g))+Q(Q(f+k)*Q(3)))-d)*Q(.1111111119389534);c=J[b+36>>2];d=N[c+20>>2];g=N[c+28>>2];i=J[b>>2];j=N[i+28>>2];l=J[b+12>>2];k=N[l+28>>2];f=N[i+20>>2];e=N[c+4>>2];r=N[l+4>>2];u=N[i+4>>2];t=Q(N[i>>2]+N[c+24>>2]);N[l+16>>2]=Q(Q(Q(Q(Q(Q(N[i+16>>2]+N[l+24>>2])*Q(6))-Q(N[i+24>>2]*Q(4)))-Q(t+t))+Q(Q(N[c+16>>2]+N[l>>2])*Q(3)))-N[c>>2])*Q(.1111111119389534);g=Q(u+g);N[l+20>>2]=Q(Q(Q(Q(Q(Q(f+k)*Q(6))-Q(j*Q(4)))-Q(g+g))+Q(Q(d+r)*Q(3)))-e)*Q(.1111111119389534); -c=J[b>>2];d=N[c+28>>2];i=J[b+36>>2];g=N[i+28>>2];j=N[i+12>>2];l=J[b+24>>2];k=N[l+28>>2];f=N[c+12>>2];e=N[c+4>>2];r=N[l+4>>2];u=N[i+4>>2];t=Q(N[i+24>>2]+N[c>>2]);N[l+8>>2]=Q(Q(Q(Q(Q(Q(N[i+8>>2]+N[l>>2])*Q(6))-Q(N[i>>2]*Q(4)))-Q(t+t))+Q(Q(N[c+8>>2]+N[l+24>>2])*Q(3)))-N[c+24>>2])*Q(.1111111119389534);g=Q(g+e);N[l+12>>2]=Q(Q(Q(Q(Q(Q(j+r)*Q(6))-Q(u*Q(4)))-Q(g+g))+Q(Q(f+k)*Q(3)))-d)*Q(.1111111119389534);c=J[b>>2];d=N[c+20>>2];g=N[c+28>>2];i=J[b+36>>2];j=N[i+28>>2];l=J[b+24>>2];k=N[l+28>>2];f=N[i+20>>2]; -e=N[c+4>>2];r=N[l+4>>2];u=N[i+4>>2];t=Q(N[i>>2]+N[c+24>>2]);N[l+16>>2]=Q(Q(Q(Q(Q(Q(N[i+16>>2]+N[l+24>>2])*Q(6))-Q(N[i+24>>2]*Q(4)))-Q(t+t))+Q(Q(N[c+16>>2]+N[l>>2])*Q(3)))-N[c>>2])*Q(.1111111119389534);g=Q(u+g);N[l+20>>2]=Q(Q(Q(Q(Q(Q(f+k)*Q(6))-Q(j*Q(4)))-Q(g+g))+Q(Q(d+r)*Q(3)))-e)*Q(.1111111119389534);f:{if((n|0)!=(h+12|0)){J[695492]=0;ca(2384,n|0,b|0,J[h+16>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break f}c=J[h+12>>2];if(c){b=J[h+16>>2];i=c;if((b|0)!=(c|0)){while(1){i=b-12|0;l=J[i>>2];if(l){J[b- -8>>2]=l;qc(l)}b=i;if((c|0)!=(b|0))continue;break}i=J[h+12>>2]}J[h+16>>2]=c;qc(i)}bc=h+32|0;break b}a=Z()|0;ol(h+12|0);ba(a|0);B()}l=J[a+208>>2];b=J[l+36>>2];d=N[b+28>>2];g=N[b+20>>2];j=N[b+12>>2];k=N[b+4>>2];c=J[l+24>>2];f=N[c+28>>2];e=N[c+20>>2];r=N[c+12>>2];u=N[c+4>>2];i=J[l+12>>2];t=N[i+28>>2];w=N[i+20>>2];x=N[i+12>>2];y=N[i+4>>2];h=J[l>>2];z=N[h+28>>2];A=N[h+20>>2];C=N[h+12>>2];q=N[h+4>>2];o=qo?e:o;o=f> -o?f:o;o=k>o?k:o;o=j>o?j:o;o=g>o?g:o;C=q>C?C:q;A=Ak?k:f;j=jo?d:o)-(d>2];g=N[b+16>>2];j=N[b+8>>2];k=N[b>>2];f=N[c+24>>2];e=N[c+16>>2];r=N[c+8>>2];u=N[c>>2];t=N[i+24>>2];w=N[i+16>>2];x=N[i+8>>2];y=N[i>>2];z=N[h+24>>2];A=N[h+16>>2];C=N[h+8>>2];q=N[h>>2];p=qp?r:p;p=e>p?e:p;p=f>p?f: -p;p=k>p?k:p;p=j>p?j:p;p=g>p?g:p;C=q>C?C:q;A=Ak?k:f;j=jp?d:p)-(dQ(1)?d:Q(1);g:{if(d=Q(0)){i=~~d>>>0;break g}i=0}J[a+2948>>2]=i;j=Q(0);h=J[a+2928>>2];h:{if(!h){g=Q(0);break h}c=0;g=Q(0);while(1){d=N[(c<<2)+349208>>2];n=J[l+P(c,12)>>2];b=0;while(1){s=n+(b<<3)|0;k=N[(b<<2)+349208>>2];g=Q(g+Q(Q(d*N[s+4>>2])*k));j=Q(j+Q(Q(d*N[s>>2])* -k));b=b+1|0;if((h|0)!=(b|0))continue;break}c=c+1|0;if((h|0)!=(c|0))continue;break}}N[a+2944>>2]=g;N[a+2940>>2]=g;N[a+2936>>2]=j;N[a+2932>>2]=j;J[m+32>>2]=0;J[m+24>>2]=0;J[m+28>>2]=0;i:{j:{k:{l:{m:{n:{if(i){if(i>>>0>=1073741824){J[695492]=0;_(2265,m+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;break j}J[695492]=0;c=i<<2;b=$(4,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break n;J[m+24>>2]=b;h=b+c|0;J[m+32>>2]=h;wc(b,0,c);J[m+28>>2]=h}J[695492]=0;h=ga(2376,m+36|0,i|0,m+24|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break m;i=J[a+2916>>2];if(i){b=i;c=J[a+2920>>2];if((b|0)!=(c|0)){while(1){b=c-12|0;l=J[b>>2];if(l){J[c-8>>2]=l;qc(l)}c=b;if((c|0)!=(i|0))continue;break}b=J[a+2916>>2]}J[a+2920>>2]=i;qc(b);J[a+2924>>2]=0;J[a+2916>>2]=0;J[a+2920>>2]=0}J[a+2916>>2]=J[h>>2];J[a+2920>>2]=J[h+4>>2];J[a+2924>>2]=J[h+8>>2];J[h+8>>2]=0;J[h>>2]=0;J[h+4>>2]=0;b=J[m+24>>2];if(b){J[m+28>>2]=b;qc(b)}d=N[a+2944>>2];k=N[a+2936>>2];c=J[a+208>>2];b=J[c>>2];f=N[b>>2];if(k>2]=f;k=f}j=N[a+2932>>2];e=N[b+4>> -2];if(e>d){N[a+2944>>2]=e;d=e}g=N[a+2940>>2];if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+8>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+12>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+16>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+20>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+24>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+28>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}b= -J[c+12>>2];f=N[b>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+4>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+8>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+12>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+16>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+20>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+24>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+28>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f> -2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}b=J[c+24>>2];f=N[b>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+4>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+8>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+12>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+16>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+20>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+24>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+28>>2];if(e> -d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}b=J[c+36>>2];f=N[b>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+4>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+8>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+12>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}f=N[b+16>>2];if(f>k){N[a+2936>>2]=f;k=f}e=N[b+20>>2];if(e>d){N[a+2944>>2]=e;d=e}if(f>2]=f;j=f}if(g>e){N[a+2940>>2]=e;g=e}e=k;k=N[b+24>>2]; -if(e>2]=k;e=d;d=N[b+28>>2];if(e>2]=d;if(j>k)N[a+2932>>2]=k;if(d>2]=d;d=Q(N[a+336>>2]-N[a+332>>2]);g=Q(N[a+344>>2]-N[a+340>>2]);d=d>g?d:g;if(!(Q(R(d))>2];if(!a)break a;J[m+28>>2]=a;qc(a);break a}b=Z()|0;a=J[m+24>>2];if(!a)break a;J[m+28>>2]=a;qc(a);break a}b=-2147483648}b=(b|0)<=1?1:b;J[a+2948>>2]=b;J[m+20>>2]=0;J[m+12>>2]=0;J[m+16>>2]=0;o:{if(b>>>0<=1073741823){J[695492]=0;i=b<<2;c=$(4,i|0)|0;h=J[695492];J[695492]= -0;if((h|0)==1)break o;J[m+12>>2]=c;h=c+i|0;J[m+20>>2]=h;wc(c,0,i);J[695492]=0;J[m+16>>2]=h;h=ga(2376,m+24|0,b|0,m+12|0)|0;b=J[695492];J[695492]=0;p:{q:{r:{if((b|0)!=1){i=J[a+2916>>2];if(i){b=i;c=J[a+2920>>2];if((b|0)!=(c|0)){while(1){b=c-12|0;l=J[b>>2];if(l){J[c-8>>2]=l;qc(l)}c=b;if((c|0)!=(i|0))continue;break}b=J[a+2916>>2]}J[a+2920>>2]=i;qc(b);J[a+2924>>2]=0;J[a+2916>>2]=0;J[a+2920>>2]=0}J[a+2916>>2]=J[h>>2];J[a+2920>>2]=J[h+4>>2];J[a+2924>>2]=J[h+8>>2];J[h+8>>2]=0;J[h>>2]=0;J[h+4>>2]=0;b=J[m+12>> -2];if(b){J[m+16>>2]=b;qc(b)}c=J[a+2948>>2];J[m+20>>2]=0;J[m+12>>2]=0;J[m+16>>2]=0;b=c+1|0;if(b){s:{t:{if(b>>>0>=536870912){J[695492]=0;_(2377,m+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break j;break t}J[695492]=0;i=b<<3;b=$(4,i|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break s}b=Z()|0;break i}J[m+12>>2]=b;h=b+i|0;J[m+20>>2]=h;wc(b,0,i);J[m+16>>2]=h;if(!c)break q}I=Q(Q(1)/Q(c>>>0));S=Q(I*Q(.5));f=Q(0);u:{while(1){J[m+8>>2]=0;J[m>>2]=0;J[m+4>>2]=0;v:{b=c+1|0;if(!b)break v;if(b>>>0>=536870912){J[695492]= -0;_(2377,m|0);a=J[695492];J[695492]=0;if((a|0)!=1)break j;b=Z()|0;a=J[m>>2];if(!a)break u;J[m+4>>2]=a;qc(a);break u}J[695492]=0;i=b<<3;b=$(4,i|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){J[m>>2]=b;h=b+i|0;J[m+8>>2]=h;wc(b,0,i);J[m+4>>2]=h;break v}b=Z()|0;break u}e=Q(I+f);u=Q(e*Q(e*e));d=Q(S+f);t=Q(d*Q(d*d));g=Q(Q(1)-e);w=Q(g*Q(g*g));j=Q(e*Q(3));x=Q(g*Q(g*j));y=Q(g*Q(e*j));g=Q(Q(1)-d);z=Q(g*Q(g*g));j=Q(d*Q(3));A=Q(g*Q(g*j));C=Q(g*Q(d*j));T=Q(Q(1)-f);r=Q(0);G=0;while(1){w:{if(!(G?L:0)){n=J[a+2928>>2]; -x:{if(!n){j=Q(0);g=Q(0);break x}d=Q(S+r);k=Q(d*Q(d*d));g=Q(Q(1)-d);q=Q(g*Q(g*g));j=Q(d*Q(3));o=Q(g*Q(g*j));p=Q(g*Q(d*j));l=J[a+208>>2];j=Q(0);i=0;g=Q(0);while(1){s=J[l+P(i,12)>>2];b=0;while(1){h=s+(b<<3)|0;d=z;y:{z:switch(i-1|0){case 0:d=A;break y;case 1:d=C;break y;case 2:break z;default:break y}d=t}M=Q(d*N[h>>2]);O=Q(d*N[h+4>>2]);d=q;A:{B:switch(b-1|0){case 0:d=o;break A;case 1:d=p;break A;case 2:break B;default:break A}d=k}g=Q(g+Q(O*d));j=Q(j+Q(M*d));b=b+1|0;if((n|0)!=(b|0))continue;break}i=i+ -1|0;if((i|0)!=(n|0))continue;break}}d=N[a+2940>>2];k=Q(g-d);g=Q(c-1|0);d=Q(Q(k*g)/Q(N[a+2944>>2]-d));C:{if(Q(R(d))>2];d=Q(Q(Q(j-d)*g)/Q(N[a+2936>>2]-d));if(Q(R(d))>2]+(G<<3)|0;h=J[b+4>>2];n=J[a+2928>>2];l=J[b>>2]}k=Q(I+r);D:{if(!n){j=Q(0);g=Q(0);break D}d=Q(Q(1)-k);q=Q(d*Q(d*d));g=Q(k*Q(3));o=Q(d*Q(d*g));p=Q(d*Q(k*g));M=Q(k*Q(k*k));E=J[a+208>>2];j=Q(0);i=0;g=Q(0);while(1){D=J[E+P(i, -12)>>2];b=0;while(1){s=D+(b<<3)|0;d=w;E:{F:switch(i-1|0){case 0:d=x;break E;case 1:d=y;break E;case 2:break F;default:break E}d=u}O=Q(d*N[s>>2]);U=Q(d*N[s+4>>2]);d=q;G:{H:switch(b-1|0){case 0:d=o;break G;case 1:d=p;break G;case 2:break H;default:break G}d=M}g=Q(g+Q(U*d));j=Q(j+Q(O*d));b=b+1|0;if((n|0)!=(b|0))continue;break}i=i+1|0;if((i|0)!=(n|0))continue;break}}q=N[a+2936>>2];d=N[a+2932>>2];G=G+1|0;i=J[m>>2]+(G<<3)|0;p=g;g=N[a+2940>>2];o=Q(c-1|0);g=Q(Q(Q(p-g)*o)/Q(N[a+2944>>2]-g));I:{if(Q(R(g))< -Q(2147483648)){b=~~g;break I}b=-2147483648}J[i+4>>2]=b;c=i;d=Q(Q(Q(j-d)*o)/Q(q-d));J:{if(Q(R(d))>2]=i;d=Q(T*r);D=J[a+220>>2];n=J[D+12>>2];s=K[n|0]|K[n+1|0]<<8|(K[n+2|0]<<16|K[n+3|0]<<24);g=Q(d*Q(s>>>24>>>0));K:{if(Q(R(g))>>0>=255?255:c;v=(c|0)<0;g=Q(f*r);E=K[n+4|0]|K[n+5|0]<<8|(K[n+6|0]<<16|K[n+7|0]<<24);j=Q(g*Q(E>>>24>>>0));L:{if(Q(R(j))=0?c>>>0>=255? -255:c:0)+(v?0:F)|0;v=v>>>0>=255?255:v;r=Q(Q(1)-r);j=Q(f*r);n=J[D>>2];D=K[n+4|0]|K[n+5|0]<<8|(K[n+6|0]<<16|K[n+7|0]<<24);q=Q(j*Q(D>>>24>>>0));M:{if(Q(R(q))=0?c>>>0>=255?255:c:0)|0;c=v>>>0>=255?255:v;r=Q(T*r);F=K[n|0]|K[n+1|0]<<8|(K[n+2|0]<<16|K[n+3|0]<<24);q=Q(r*Q(F>>>24>>>0));N:{if(Q(R(q))=0?n>>>0>=255?255:n:0)|0;n=(n>>>0>=255?255:n)<<24;q=Q(d*Q((s>>>16&255)>>>0));O:{if(Q(R(q))=0?c>>>0>=255?255:c:0;q=Q(g*Q((E>>>16&255)>>>0));P:{if(Q(R(q))=0?c>>>0>=255?255:c:0)|0;v=c>>>0>=255?255:c;q=Q(j*Q((D>>>16&255)>>>0));Q:{if(Q(R(q))=0?c>>>0>=255?255:c:0)|0;v=c>>>0>=255?255:c;q=Q(r*Q((F>>>16&255)>>>0));R:{if(Q(R(q))=0?c>>>0>=255?255:c:0)|0;n=n|(v>>>0>=255?255:v)<<16;q=Q(d*Q((s>>>8&255)>>> -0));S:{if(Q(R(q))=0?c>>>0>=255?255:c:0;q=Q(g*Q((E>>>8&255)>>>0));T:{if(Q(R(q))=0?c>>>0>=255?255:c:0)|0;v=c>>>0>=255?255:c;q=Q(j*Q((D>>>8&255)>>>0));U:{if(Q(R(q))=0?c>>>0>=255?255:c:0)|0;v=c>>>0>=255?255:c;q=Q(r*Q((F>>>8&255)>>>0));V:{if(Q(R(q))=0?c>>>0>=255?255:c:0)|0;n=n|(c>>>0>=255? -255:c)<<8;d=Q(d*Q((s&255)>>>0));W:{if(Q(R(d))=0?c>>>0>=255?255:c:0;d=Q(g*Q((E&255)>>>0));X:{if(Q(R(d))=0?c>>>0>=255?255:c:0)|0;s=c>>>0>=255?255:c;d=Q(j*Q((D&255)>>>0));Y:{if(Q(R(d))=0?c>>>0>=255?255:c:0)|0;s=c>>>0>=255?255:c;d=Q(r*Q((F&255)>>>0));Z:{if(Q(R(d))=0?c>>>0>=255?255:c:0)|0; -s=n|(c>>>0>=255?255:c);c=(b|0)<(h|0);E=c?h:b;c=c?b:h;D=(E-c|0)+1&1;b=(i|0)<(l|0);F=b?l:i;n=b?i:l;i=c+1|0;while(1){b=c;_:{if(!D)break _;b=i;h=J[a+2948>>2];if(h>>>0<=n>>>0|c>>>0>=h>>>0)break _;h=J[J[a+2916>>2]+P(n,12)>>2]+(c<<2)|0;H[h|0]=s;H[h+1|0]=s>>>8;H[h+2|0]=s>>>16;H[h+3|0]=s>>>24}if((c|0)!=(E|0))while(1){h=J[a+2948>>2];if(!(h>>>0<=n>>>0|b>>>0>=h>>>0)){h=J[J[a+2916>>2]+P(n,12)>>2]+(b<<2)|0;H[h|0]=s;H[h+1|0]=s>>>8;H[h+2|0]=s>>>16;H[h+3|0]=s>>>24}l=J[a+2948>>2];h=b+1|0;if(!(l>>>0<=n>>>0|l>>>0<=h>>> -0)){l=J[J[a+2916>>2]+P(n,12)>>2]+(h<<2)|0;H[l|0]=s;H[l+1|0]=s>>>8;H[l+2|0]=s>>>16;H[l+3|0]=s>>>24}b=b+2|0;if((h|0)!=(E|0))continue;break}b=(n|0)==(F|0);n=n+1|0;if(!b)continue;break}r=k;c=J[a+2948>>2];if(G>>>0>>0)continue;break}J[695492]=0;ca(2378,m+12|0,J[m>>2],J[m+4>>2]);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[m>>2];if(b)qc(b);f=e;c=J[a+2948>>2];L=L+1|0;if(c>>>0<=L>>>0)break r;continue}break}b=Z()|0;a=J[m>>2];if(!a)break u;qc(a)}break i}b=Z()|0;break i}b=J[m+12>>2];if(!b)break p}J[m+16>>2]=b; -qc(b)}bc=m+48|0;return}J[695492]=0;_(2265,m+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break j}b=Z()|0;break i}B()}a=J[m+12>>2];if(!a)break a;J[m+16>>2]=a;qc(a)}ba(b|0);B()}function Xs(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,O=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,ga=0,ha=0,ia=0,ja=0,ka=Q(0);r=bc-80|0;bc=r;J[r+40>>2]=65424; -a:{b:{c:{d:{if(j){if(k){u=P(J[a+108>>2],J[a+104>>2]);n=J[a+8>>2];if((n|0)!=8){j=0;if((n|0)!=256)break a;J[r+40>>2]=65497;break d}if(H[a+68|0]&1)break d;p=u&-2;z=u&1;s=r+77|0;C=r+76|0;y=r+72|0;n=65424;e:{f:{while(1){g:{if((n|0)==65427)break g;while(1){if(!(Yk(j)|fc)){J[a+8>>2]=64;break g}if((fi(j,J[a+16>>2],2,k)|0)!=2){Hc(k,1,2346745,0);j=0;break a}ld(J[a+16>>2],r+36|0,2);n=J[r+36>>2];if(n>>>0<=1){Hc(k,1,2346829,0);j=0;break a}h:{if(J[r+40>>2]==32896){if(!(Yk(j)|fc))break h;n=J[r+36>>2]}q=J[a+8>>2]; -if(q&16)J[a+24>>2]=(J[a+24>>2]-n|0)-2;o=n-2|0;J[r+36>>2]=o;l=2352768;t=J[r+40>>2];while(1){n=l;m=J[l>>2];if(m){l=l+12|0;if((m|0)!=(t|0))continue}break}if(!(q&J[n+4>>2])){Hc(k,1,2346855,0);j=0;break a}i:{if(M[a+20>>2]>=o>>>0){l=J[a+16>>2];break i}l=Yk(j);q=fc;if((q|0)<0)l=1;else l=l>>>0>>0&(q|0)<=0;if(l){Hc(k,1,2346975,0);j=0;break a}l=Tg(J[a+16>>2],J[r+36>>2]);if(!l){qc(J[a+16>>2]);J[a+16>>2]=0;J[a+20>>2]=0;Hc(k,1,2347020,0);j=0;break a}J[a+16>>2]=l;o=J[r+36>>2];J[a+20>>2]=o}l=fi(j,l,o,k);if((l| -0)!=J[r+36>>2]){Hc(k,1,2346745,0);j=0;break a}n=J[n+8>>2];if(!n){Hc(k,1,2347170,0);j=0;break a}if(!(gc[n|0](a,J[a+16>>2],l,k)|0)){J[r+32>>2]=J[r+40>>2];Hc(k,1,2347199,r+32|0);j=0;break a}n=J[r+36>>2];if(!iX(J[a+192>>2],J[a+188>>2],m,(J[j+56>>2]-n|0)-4|0,0,n+4|0)){Hc(k,1,2347364,0);j=0;break a}j:{if((m|0)!=65424)break j;n=(J[j+56>>2]-J[r+36>>2]|0)-4|0;l=J[a+48>>2];m=J[a+52>>2];if((m|0)>0)l=1;else l=(m|0)>=0&l>>>0>=n>>>0;if(l)break j;J[a+48>>2]=n;J[a+52>>2]=0}if(K[a+68|0]&4){if((pA(j,J[a+24>>2],k)| -0)!=J[a+24>>2]|fc){Hc(k,1,2346745,0);j=0;break a}J[r+40>>2]=65427;break g}if((fi(j,J[a+16>>2],2,k)|0)!=2){Hc(k,1,2346745,0);j=0;break a}ld(J[a+16>>2],r+40|0,2);if(J[r+40>>2]!=65427)continue;break g}break}J[a+8>>2]=64}k:{if(!(Yk(j)|fc)&J[a+8>>2]==64)break k;l:{m:{n=K[a+68|0];if(!(n&4)){l=J[a+192>>2];m=J[a+156>>2];n:{o:{if(J[a+56>>2]){n=Yk(j);break o}n=J[a+24>>2];if(n>>>0<2)break n}n=n-2|0;J[a+24>>2]=n}l=P(l,5644)+m|0;x=l+5600|0;t=l+5596|0;if(!n)break m;l=Yk(j);m=fc;if((m|0)<0)l=1;else l=l>>>0>> -0&(m|0)<=0;if(l){Hc(k,1,2357666,0);j=0;break a}l=J[a+24>>2];if(l>>>0>=4294967294){Hc(k,1,2357721,0);j=0;break a}m=J[t>>2];p:{if(m){q=J[x>>2];if(q>>>0>-3-l>>>0){Hc(k,1,2357808,0);j=0;break a}l=Tg(m,(l+q|0)+2|0);if(l){J[t>>2]=l;break m}qc(J[t>>2]);J[t>>2]=0;break p}l=_e(l+2|0);J[t>>2]=l;if(l)break m}Hc(k,1,2357909,0);j=0;break a}J[a+8>>2]=8;H[a+68|0]=n&250;break l}q:{v=J[a+188>>2];if(!v)break q;w=J[j+56>>2];m=w-2|0;q=J[j+60>>2];D=q-(w>>>0<2)|0;E=J[a+192>>2];l=J[v+40>>2]+P(E,40)|0;l=J[l+16>>2]+P(J[l+ -12>>2],24)|0;o=m;J[l+8>>2]=m;J[l+12>>2]=D;m=q;G=J[a+24>>2];w=G+w|0;J[l+16>>2]=w;J[l+20>>2]=w>>>0>>0?m+1|0:m;if(iX(E,v,65427,o,D,J[a+24>>2]+2|0))break q;Hc(k,1,2347364,0);j=0;break a}l=J[a+24>>2];r:{if(!n){n=0;break r}n=fi(j,J[t>>2]+J[x>>2]|0,l,k);l=J[a+24>>2]}J[a+8>>2]=(l|0)==(n|0)?8:64;J[x>>2]=J[x>>2]+n;n=K[a+68|0];if((n&9)!=1)break l;H[a+68|0]=n|8;if(J[j+28>>2]==4642)break l;l=J[j+60>>2];q=l;n=J[j+56>>2];if((l&n)==-1)break l;t=J[a+192>>2];s:{while(1){l=0;m=r+70|0;if((fi(j,m,2,k)|0)!=2)break s; -ld(m,r- -64|0,2);if(J[r+64>>2]!=65424)break s;o=2346745;if((fi(j,m,2,k)|0)!=2)break c;ld(m,r+60|0,2);if(J[r+60>>2]!=10){o=2346829;break c}J[r+60>>2]=8;m=fi(j,r+70|0,8,k);if((m|0)!=J[r+60>>2])break c;if((m|0)!=8){o=2353037;break c}ld(r+70|0,r+56|0,2);ld(y,r+52|0,4);ld(C,r+48|0,1);ld(s,r+44|0,1);if((t|0)!=J[r+56>>2]){m=J[r+52>>2];if(m>>>0<14)break s;m=m-12|0;J[r+52>>2]=m;m=pA(j,m,k);if(!fc&J[r+52>>2]==(m|0))continue;break s}break}l=J[r+48>>2]==J[r+44>>2]}if((q|0)<0){fa(2340951,2338843,644,2342466); -B()}if(!(gc[J[j+44>>2]](j,n,q,k)|0))break b;if(!l)break l;H[a+68|0]=K[a+68|0]&238|16;t:{if(!u)break t;m=J[a+156>>2];n=0;l=0;if((u|0)!=1)while(1){q=m+P(n,5644)|0;o=J[q+5592>>2];if(o)J[q+5592>>2]=o+1;q=m+P(n|1,5644)|0;o=J[q+5592>>2];if(o)J[q+5592>>2]=o+1;n=n+2|0;l=l+2|0;if((p|0)!=(l|0))continue;break}if(!z)break t;n=m+P(n,5644)|0;l=J[n+5592>>2];if(!l)break t;J[n+5592>>2]=l+1}Hc(k,2,2347565,0)}if(H[a+68|0]&1)break k;if((fi(j,J[a+16>>2],2,k)|0)!=2){if(!(!u|(u|0)!=(J[a+192>>2]+1|0))){j=J[a+156>>2];n=0; -while(1){l=j+P(n,5644)|0;if(!(J[l+5588>>2]|J[l+5592>>2]))break e;n=n+1|0;if((u|0)!=(n|0))continue;break}}Hc(k,1,2346745,0);j=0;break a}ld(J[a+16>>2],r+40|0,2);n=J[r+40>>2];if(H[a+68|0]&1)break f;if((n|0)!=65497)continue;break f}break}n=J[r+40>>2]}if(J[a+8>>2]==256|(n|0)!=65497)break d;J[a+8>>2]=256;J[a+192>>2]=0;break d}J[r+16>>2]=n;Hc(k,4,2347667,r+16|0);J[a+192>>2]=n;J[r+40>>2]=65497;J[a+8>>2]=256;break d}fa(2346590,2346358,9402,2346720);B()}fa(2346550,2346358,9400,2346720);B()}m=J[a+156>>2];n= -J[a+192>>2];u:{v:{w:{if(H[a+68|0]&1)break w;x:{y:{if(n>>>0>=u>>>0)break y;j=m+P(n,5644)|0;while(1){if(J[j+5596>>2])break y;n=n+1|0;J[a+192>>2]=n;j=j+5644|0;if((n|0)!=(u|0))continue;break}break x}if((n|0)!=(u|0))break w}J[i>>2]=0;break v}if(!m)break u;z:{A:{q=m+P(n,5644)|0;j=q;if(J[j+5172>>2])a=2357961;else{if(!(K[j+5640|0]&2))break z;u=j+5172|0;t=J[q+5160>>2];B:{if(!t){o=0;break B}l=J[q+5164>>2];y=0;o=0;j=0;if(t>>>0>=4){v=t&-4;w=0;while(1){x=j<<3;o=J[(l+(x|24)|0)+4>>2]+(J[(l+(x|16)|0)+4>>2]+(J[(l+ -(x|8)|0)+4>>2]+(J[(l+x|0)+4>>2]+o|0)|0)|0)|0;j=j+4|0;w=w+4|0;if((v|0)!=(w|0))continue;break}}t=t&3;if(!t)break B;while(1){o=J[(l+(j<<3)|0)+4>>2]+o|0;j=j+1|0;y=y+1|0;if((t|0)!=(y|0))continue;break}}j=_e(o);J[u>>2]=j;if(j)break A;a=2356778}Hc(k,1,a,0);Hc(k,1,2347764,0);j=0;break a}m=m+P(n,5644)|0;J[m+5180>>2]=o;t=m+5164|0;o=J[m+5164>>2];q=q+5160|0;j=J[q>>2];if(j){l=0;n=0;while(1){x=n<<3;w=x+o|0;v=J[w>>2];if(v){tc(J[u>>2]+l|0,v,J[w+4>>2]);j=x+J[t>>2]|0;w=J[j+4>>2];qc(J[j>>2]);o=J[t>>2];j=x+o|0;J[j>> -2]=0;J[j+4>>2]=0;l=l+w|0;j=J[q>>2]}n=n+1|0;if(n>>>0>>0)continue;break}}J[q>>2]=0;qc(o);J[t>>2]=0;J[m+5168>>2]=J[u>>2];J[m+5176>>2]=J[m+5180>>2]}n=J[a+196>>2];S=J[n+28>>2];l=J[a+192>>2];O=J[(J[S+76>>2]+P(l,5644)|0)+5584>>2];j=J[n+24>>2];U=J[j+24>>2];q=J[S+24>>2];m=(l>>>0)/(q>>>0)|0;I=J[J[n+20>>2]>>2];l=l-P(m,q)|0;q=J[S+12>>2];n=J[S+4>>2]+P(l,q)|0;l=J[j>>2];l=l>>>0>>0?n:l;J[I>>2]=l;q=n+q|0;n=n>>>0>q>>>0?-1:q;q=J[j+8>>2];n=n>>>0>>0?n:q;J[I+8>>2]=n;C:{D:{if(!((l|0)<(n|0)&(l|0)>=0)){Hc(k,1,2339951, -0);break D}n=J[I+20>>2];q=J[S+16>>2];l=J[S+8>>2]+P(q,m)|0;m=J[j+4>>2];m=l>>>0>m>>>0?l:m;J[I+4>>2]=m;q=l+q|0;l=l>>>0>q>>>0?-1:q;j=J[j+12>>2];j=j>>>0>l>>>0?l:j;J[I+12>>2]=j;if(!((j|0)>(m|0)&(m|0)>=0)){Hc(k,1,2340412,0);break D}E:{if(J[O+4>>2]){if(J[I+16>>2])break E;j=1;break C}Hc(k,1,2341118,0);break D}F:{G:{H:{while(1){J[U+36>>2]=0;j=J[U>>2];if(!j)break H;q=j>>31;l=j;t=l-1|0;m=J[I>>2];o=m;j=t+m|0;w=q-!l|0;m=w+(m>>31)|0;ia=n,ja=Ezb(j,j>>>0>>0?m+1|0:m,l,q),J[ia>>2]=ja;j=J[U+4>>2];if(!j)break H;o= -j-1|0;m=J[I+4>>2];v=m;x=o+m|0;u=j>>31;p=u-!j|0;m=p+(m>>31)|0;ia=n,ja=Ezb(x,v>>>0>x>>>0?m+1|0:m,j,u),J[ia+4>>2]=ja;m=J[I+8>>2];x=m;t=m+t|0;m=(m>>31)+w|0;ia=n,ja=Ezb(t,t>>>0>>0?m+1|0:m,l,q),J[ia+8>>2]=ja;m=J[I+12>>2];J[n+16>>2]=$;l=p+(m>>31)|0;m=m+o|0;l=m>>>0>>0?l+1|0:l;ia=n,ja=Ezb(m,l,j,u),J[ia+12>>2]=ja;j=J[O+4>>2];J[n+20>>2]=j;l=J[S+80>>2];J[n+24>>2]=j>>>0>>0?1:j-l|0;qc(J[n+52>>2]);J[n+68>>2]=0;J[n+60>>2]=0;J[n+64>>2]=0;J[n+52>>2]=0;J[n+56>>2]=0;j=P(j,152);l=J[n+28>>2];I:{if(!l){l=_e(j); -J[n+28>>2]=l;if(!l)break D;J[n+32>>2]=j;wc(l,0,j);break I}if(j>>>0<=M[n+32>>2])break I;l=Tg(l,j);if(!l){Hc(k,1,2341366,0);qc(J[n+28>>2]);J[n+28>>2]=0;J[n+32>>2]=0;break D}J[n+28>>2]=l;m=l;l=J[n+32>>2];wc(m+l|0,0,j-l|0);J[n+32>>2]=j}j=J[n+20>>2];if(j){Y=O+28|0;q=J[n+28>>2];V=0;while(1){t=j-1|0;l=t&31;if((t&63)>>>0>=32){m=-1<>>32-l;l=-1<>2];l=x+o|0;w=m^-1;m=w+(o>>31)|0;m=l>>>0>>0?m+1|0:m;o=l;l=t&31;if((t&63)>>>0>=32)s=m>>l;else s=((1<>>l;J[q>>2]=s;m=J[n+4>>2];o=m;l=m+x|0;m=(m>>31)+w|0;m=l>>>0>>0?m+1|0:m;o=l;l=t&31;if((t&63)>>>0>=32)C=m>>l;else C=((1<>>l;J[q+4>>2]=C;l=J[n+8>>2];o=l;m=l+x|0;l=(l>>31)+w|0;l=m>>>0>>0?l+1|0:l;u=m;o=t&31;if((t&63)>>>0>=32)o=l>>o;else o=((1<>>o;J[q+8>>2]=o;m=J[n+12>>2];u=m;l=m+x|0;m=(m>>31)+w|0;m=l>>>0>>0?m+1|0:m;p=l;u=t&31;if((t&63)>>>0>=32)u=m>>u;else u=((1<>>u;J[q+12>>2]=u;y=(V<<2)+O|0;D=J[y+812>>2];m=D&31;if((D&63)>>>0>=32){l=1<>>32-m}E=p;z=l;m=o;l=m>>31;v=m+E|0;m=l+z|0;m=(o>>>0>v>>>0?m+1|0:m)-!v|0;v=v-1|0;l=D&31;if((D&63)>>>0>=32)l=m>>l;else l=((1<>>l;z=l<>2];l=y&31;if((y&63)>>>0>=32){m=-1<>>32-l;l=-1<>31;p=l;v=l+v|0;l=m+E|0;l=p>>>0>v>>>0?l+1|0:l;m=y&31;if((y&63)>>>0>=32)l=l>>m;else l=((1<>>m;l=l<>y:0;J[q+20>>2]=u;X=s&-1<>D:0;J[q+16>>2]=l;J:{if(!l)break J;Dzb(l,0,u,0);if(!fc)break J;break G}Z=P(l,u);if(Z>>>0>=107374183)break G;T=P(Z,40);if(V){y=y-1|0;D=D-1|0;m=W>>31;l=W+1|0;W=((l?m:m+1|0)&1)<<31|l>>>1;m=X>>31;l=X+1|0;X=((l?m:m+1|0)&1)<<31|l>>>1;l=3}else l=1;J[q+24>>2]=l;o=q+28|0;v=j;m=j&31;if((j&63)>>>0>=32){l=1<>>32-m}aa=j;u=l;j=J[O+12>>2];E=j>>>0>>0?j:y;j=E&31;if((E&63)>>>0>=32){m=-1<>>32-j;j=-1<>2];G=j>>>0>>0?j:D; -j=G&31;if((G&63)>>>0>=32){l=-1<>>32-j;j=-1<>2];m=l;j=l+x|0;l=(l>>31)+w|0;l=j>>>0>>0?l+1|0:l;m=j;j=t&31;if((t&63)>>>0>=32)A=l>>j;else A=((1<>>j;l=J[n>>2];j=l+x|0;m=(l>>31)+w|0;m=j>>>0>>0?m+1|0:m;l=j;j=t&31;if((t&63)>>>0>=32)m=m>>j;else m=((1<>>j;j=0;z=w;p=x;s=p;C=w;l=t;break K}j=_+1|0;l=j>>>1|0;p=t&31;if((t&63)>>>0>=32){m=l<>>32-p;l=l<>>0>s>>>0?m+1|0:m;l=J[n+4>>2];z=l;p=l+s|0;C=m;l=m+(l>>31)|0;l=p>>>0>>0?l+1|0:l;m=v&31;if((v&63)>>>0>=32)A=l>>m;else A=((1<>>m;l=j&1;p=t&31;if((t&63)>>>0>=32){m=l<>>32-p;l=l<>2];L=m;F=m+p|0;z=p>>>0>>0?l+1|0:l;m=z+(m>>31)|0;m=F>>>0>>0?m+1|0:m;l=v&31;if((v&63)>>>0>=32)m=m>>l;else m=((1<>>l;l=v}F=l;L=J[n+8>>2];R=L>>31;l=J[n+12>>2];J[o+4>>2]=A;J[o>>2]=m;J[o+16>>2]=j;m=(l>>31)+C|0; -C=l;l=l+s|0;m=C>>>0>l>>>0?m+1|0:m;s=l;l=F&31;if((F&63)>>>0>=32)l=m>>l;else l=((1<>>l;J[o+12>>2]=l;l=z+R|0;m=p+L|0;l=m>>>0>>0?l+1|0:l;p=m;m=F&31;if((F&63)>>>0>=32)l=l>>m;else l=((1<>>m;J[o+8>>2]=l;l=0;l=!J[O+20>>2]|!j?l:(j|0)==3?2:1;j=J[Y+4>>2];ia=o,ka=Q(Pu((J[U+24>>2]+l|0)-J[Y>>2]|0)*(+(j|0)*4.8828125E-4+1)),N[ia+32>>2]=ka;J[o+28>>2]=(J[Y>>2]+J[O+804>>2]|0)-1;j=J[o+20>>2];L:{M:{if(!(j|!Z)){j=_e(T);J[o+20>>2]=j;if(!j){Hc(k,1,2342224,0);break D}wc(j,0,T);J[o+24>> -2]=T;break M}if(T>>>0>M[o+24>>2]){j=Tg(j,T);if(!j){Hc(k,1,2342224,0);qc(J[o+20>>2]);J[o+20>>2]=0;J[o+24>>2]=0;break D}J[o+20>>2]=j;l=j;j=J[o+24>>2];wc(l+j|0,0,T-j|0);J[o+24>>2]=T}if(!Z)break L}j=J[o+20>>2];z=0;while(1){m=J[q+16>>2];l=(z>>>0)/(m>>>0)|0;m=z-P(l,m)|0;p=(m<>2];C=(p|0)>(s|0)?p:s;J[j>>2]=C;p=(l<>2];F=(p|0)>(s|0)?p:s;J[j+4>>2]=F;m=(m+1<>2];p=(m|0)<(p|0)?m:p;J[j+8>>2]=p;l=(l+1<>2];s=(l|0)<(m|0)?l:m;J[j+12>>2]=s;m=(p>>31)+ea|0; -l=p+da|0;m=l>>>0

      >>0?m+1|0:m;C=C>>G;p=l;l=G&31;if((G&63)>>>0>=32)l=m>>l;else l=((1<>>l;p=l-C<>G;J[j+16>>2]=p;l=(s>>31)+ca|0;m=s+ba|0;l=m>>>0>>0?l+1|0:l;F=F>>E;s=m;m=E&31;if((E&63)>>>0>=32)l=l>>m;else l=((1<>>m;l=l-F<>E;J[j+20>>2]=l;m=P(l,p);Dzb(m,0,60,0);if(fc){Hc(k,1,2342646,0);break D}l=P(m,60);p=J[j+24>>2];N:{O:{if(!(p|!m)){p=_e(l);J[j+24>>2]=p;if(!p)break D;wc(p,0,l);p=j+28|0;break O}if(l>>>0<=M[j+28>>2])break N;p=Tg(p,l);if(!p){qc(J[j+24>>2]);J[j+ -24>>2]=0;J[j+28>>2]=0;Hc(k,1,2343011,0);break D}J[j+24>>2]=p;s=p;p=J[j+28>>2];wc(s+p|0,0,l-p|0);p=j+28|0}J[p>>2]=l}l=J[j+20>>2];p=J[j+16>>2];s=J[j+32>>2];P:{if(!s){l=yW(p,l,k);break P}l=wW(s,p,l,k)}J[j+32>>2]=l;l=J[j+20>>2];p=J[j+16>>2];s=J[j+36>>2];Q:{if(!s){l=yW(p,l,k);break Q}l=wW(s,p,l,k)}J[j+36>>2]=l;if(m){p=0;while(1){R=J[j+16>>2];L=(p>>>0)/(R>>>0)|0;l=J[j+24>>2]+P(p,60)|0;A=J[l>>2];R:{if(A){ga=J[l+52>>2];ha=J[l+4>>2];s=J[l+44>>2];qc(J[l+56>>2]);J[l+56>>2]=0;J[l+48>>2]=0;J[l+52>>2]=0;J[l+40>> -2]=0;J[l+44>>2]=0;J[l+32>>2]=0;J[l+36>>2]=0;J[l+24>>2]=0;J[l+28>>2]=0;J[l+16>>2]=0;J[l+20>>2]=0;J[l+8>>2]=0;J[l+12>>2]=0;J[l>>2]=A;J[l+44>>2]=s;if(s)wc(A,0,P(s,24));J[l+4>>2]=ha;J[l+52>>2]=ga;break R}s=ye(10,24);J[l>>2]=s;if(!s)break D;J[l+44>>2]=10}s=(p-P(L,R)|0)+C|0;A=s<>2];J[l+8>>2]=(A|0)>(R|0)?A:R;L=F+L|0;A=L<>2];J[l+12>>2]=(A|0)>(R|0)?A:R;s=s+1<>2];J[l+16>>2]=(s|0)<(A|0)?s:A;A=l;l=L+1<>2];J[A+20>>2]=(l|0)<(s|0)?l:s;p=p+1|0;if((m|0)!=(p|0))continue;break}}j= -j+40|0;z=z+1|0;if((z|0)!=(Z|0))continue;break}}Y=Y+8|0;o=o+36|0;_=_+1|0;if(_>>>0>2])continue;break}q=q+152|0;j=t;V=V+1|0;if(V>>>0>2])continue;break}}U=U+52|0;n=n+76|0;O=O+1080|0;$=$+1|0;if($>>>0>2])continue;break}j=1;break C}fa(2343351,2343469,162,2351917);B()}Hc(k,1,2338255,0);break D}Hc(k,1,2341782,0)}j=0}if(!j){Hc(k,1,2347790,0);j=0;break a}j=J[a+192>>2];J[r+4>>2]=P(J[a+104>>2],J[a+108>>2]);J[r>>2]=j+1;Hc(k,4,2347866,r);J[b>>2]=J[a+192>>2];J[i>>2]=1;if(c){b=zW(J[a+196>> -2],0);J[c>>2]=b;j=0;if((b|0)==-1)break a}b=J[J[J[a+196>>2]+20>>2]>>2];J[d>>2]=J[b>>2];J[e>>2]=J[b+4>>2];J[f>>2]=J[b+8>>2];J[g>>2]=J[b+12>>2];J[h>>2]=J[b+16>>2];J[a+8>>2]=J[a+8>>2]|128}j=1;break a}fa(2346637,2346358,4117,2357943);B()}Hc(k,1,o,0)}Hc(k,1,2347400,0);j=0}bc=r+80|0;return j|0}function mYa(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;c=J[a+20>>2];if((c|0)!=100){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;gc[J[J[a>>2]>>2]](a)}if(b)IJ(a,0); -gc[J[J[a>>2]+16>>2]](a);gc[J[J[a+24>>2]+8>>2]](a);m=bc-2608|0;bc=m;k=gc[J[J[a+4>>2]>>2]](a,1,36)|0;J[a+388>>2]=k;J[k+16>>2]=0;J[k+8>>2]=403;J[k+4>>2]=404;J[k>>2]=405;if(!(M[a+32>>2]<16777216&M[a+28>>2]<=16777215)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;gc[J[J[a>>2]>>2]](a)}c=J[a+56>>2];b=J[a+376>>2];d=P(b,J[a+60>>2]);a:{if(c>>>0>=d>>>0){J[a+276>>2]=1;J[a+280>>2]=1;J[a+64>>2]=P(b,J[a+28>>2]);J[a+68>>2]=P(b,J[a+32>>2]);break a}b:{if(d>>>0<=c<<1>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+1|0)/2;b=(P(J[a+376>> -2],J[a+32>>2])+1|0)/2|0;J[a+276>>2]=2;J[a+280>>2]=2;break b}if(d>>>0<=P(c,3)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+2|0)/3;b=(P(J[a+376>>2],J[a+32>>2])+2|0)/3|0;J[a+276>>2]=3;J[a+280>>2]=3;break b}if(d>>>0<=c<<2>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+3|0)/4;b=(P(J[a+376>>2],J[a+32>>2])+3|0)/4|0;J[a+276>>2]=4;J[a+280>>2]=4;break b}if(d>>>0<=P(c,5)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+4|0)/5;b=(P(J[a+376>>2],J[a+32>>2])+4|0)/5|0;J[a+276>>2]=5;J[a+280>>2]=5;break b}if(d>>>0<=P(c,6)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+ -5|0)/6;b=(P(J[a+376>>2],J[a+32>>2])+5|0)/6|0;J[a+276>>2]=6;J[a+280>>2]=6;break b}if(d>>>0<=P(c,7)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+6|0)/7;b=(P(J[a+376>>2],J[a+32>>2])+6|0)/7|0;J[a+276>>2]=7;J[a+280>>2]=7;break b}if(d>>>0<=c<<3>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+7|0)/8;b=(P(J[a+376>>2],J[a+32>>2])+7|0)/8|0;J[a+276>>2]=8;J[a+280>>2]=8;break b}if(d>>>0<=P(c,9)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+8|0)/9;b=(P(J[a+376>>2],J[a+32>>2])+8|0)/9|0;J[a+276>>2]=9;J[a+280>>2]=9;break b}if(d>>>0<=P(c,10)>>>0){J[a+64>> -2]=(P(b,J[a+28>>2])+9|0)/10;b=(P(J[a+376>>2],J[a+32>>2])+9|0)/10|0;J[a+276>>2]=10;J[a+280>>2]=10;break b}if(d>>>0<=P(c,11)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+10|0)/11;b=(P(J[a+376>>2],J[a+32>>2])+10|0)/11|0;J[a+276>>2]=11;J[a+280>>2]=11;break b}if(d>>>0<=P(c,12)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+11|0)/12;b=(P(J[a+376>>2],J[a+32>>2])+11|0)/12|0;J[a+276>>2]=12;J[a+280>>2]=12;break b}if(d>>>0<=P(c,13)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+12|0)/13;b=(P(J[a+376>>2],J[a+32>>2])+12|0)/13|0;J[a+276>>2]=13;J[a+280>> -2]=13;break b}if(d>>>0<=P(c,14)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+13|0)/14;b=(P(J[a+376>>2],J[a+32>>2])+13|0)/14|0;J[a+276>>2]=14;J[a+280>>2]=14;break b}b=P(b,J[a+28>>2]);if(d>>>0<=P(c,15)>>>0){J[a+64>>2]=(b+14|0)/15;b=(P(J[a+376>>2],J[a+32>>2])+14|0)/15|0;J[a+276>>2]=15;J[a+280>>2]=15;break b}J[a+64>>2]=(b+15|0)/16;b=(P(J[a+376>>2],J[a+32>>2])+15|0)/16|0;J[a+276>>2]=16;J[a+280>>2]=16;J[a+68>>2]=b;break a}J[a+68>>2]=b}b=J[a+376>>2];if(b-17>>>0<=4294967279){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=7;J[J[a>> -2]+28>>2]=J[a+376>>2];gc[J[J[a>>2]>>2]](a);b=J[a+376>>2]}c=b-2|0;if(c>>>0<=5)d=J[(c<<2)+57412>>2];else d=53264;J[a+380>>2]=d;J[a+384>>2]=(b|0)>=8?63:P(b,b)-1|0;b=J[a+68>>2];c:{if(!(!b|!J[a+64>>2]|J[a+76>>2]<=0))if(J[a+36>>2]>0)break c;b=J[a>>2];J[b+20>>2]=33;gc[J[b>>2]](a);b=J[a+68>>2]}if(!(J[a+64>>2]<65501&(b|0)<=65500)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;gc[J[J[a>>2]>>2]](a)}b=J[a+72>>2];if((b|0)!=8){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=16;gc[J[J[a>>2]>>2]](a)}f=J[a+76>>2];if((f|0)>=11){b=J[a>> -2];J[b+24>>2]=f;J[b+20>>2]=27;J[J[a>>2]+28>>2]=10;gc[J[J[a>>2]>>2]](a);f=J[a+76>>2]}J[a+268>>2]=1;J[a+272>>2]=1;e=1;d:{if((f|0)<=0)break d;b=J[a+84>>2];g=1;while(1){c=J[b+8>>2];e:{if(c-5>>>0>=4294967292){d=J[b+12>>2];if(d-5>>>0>4294967291)break e}c=J[a>>2];J[c+20>>2]=19;gc[J[c>>2]](a);f=J[a+76>>2];d=J[b+12>>2];e=J[a+272>>2];c=J[b+8>>2];g=J[a+268>>2]}e=(d|0)<(e|0)?e:d;J[a+272>>2]=e;g=(c|0)<(g|0)?g:c;J[a+268>>2]=g;b=b+88|0;h=h+1|0;if((h|0)<(f|0))continue;break}if((f|0)<=0)break d;b=J[a+84>>2];g=0;while(1){J[b+ -4>>2]=g;d=J[a+276>>2];h=J[a+224>>2]?8:4;f:{if((d|0)>(h|0)){c=d;break f}f=J[a+268>>2];j=J[b+8>>2];if((f|0)%(j<<1)|0){c=d;break f}e=2;while(1){c=P(d,e);if((h|0)<(c|0))break f;e=e<<1;if(!((f|0)%(P(j,e)|0)|0))continue;break}}J[b+36>>2]=c;f=J[a+280>>2];g:{if((f|0)>(h|0)){d=f;break g}j=J[a+272>>2];n=J[b+12>>2];if((j|0)%(n<<1)|0){d=f;break g}e=2;while(1){d=P(e,f);if((h|0)<(d|0))break g;e=e<<1;if(!((j|0)%(P(n,e)|0)|0))continue;break}}J[b+40>>2]=d;f=d<<1;h:{if((f|0)<(c|0)){J[b+36>>2]=f;break h}c=c<<1;if((c| -0)>=(d|0))break h;J[b+40>>2]=c}c=P(J[a+376>>2],J[a+268>>2]);J[b+28>>2]=((c+P(J[b+8>>2],J[a+64>>2])|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+272>>2]);J[b+32>>2]=((c+P(J[b+12>>2],J[a+68>>2])|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+268>>2]);J[b+44>>2]=((c+P(J[b+36>>2],P(J[b+8>>2],J[a+64>>2]))|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+272>>2]);c=((c+P(J[b+40>>2],P(J[b+12>>2],J[a+68>>2]))|0)-1|0)/(c|0)|0;J[b+52>>2]=1;J[b+48>>2]=c;b=b+88|0;g=g+1|0;if((g|0)>2])continue;break}e=J[a+272>>2]}b=P(J[a+376>>2],e);J[a+284>> -2]=((b+J[a+68>>2]|0)-1|0)/(b|0);g=J[a+204>>2];i:{j:{if(g){if(J[a+200>>2]<=0){b=J[a>>2];J[b+20>>2]=20;J[b+24>>2]=0;gc[J[J[a>>2]>>2]](a);g=J[a+204>>2]}k:{if(!(!J[g+20>>2]&J[g+24>>2]==63)){b=1;J[a+264>>2]=1;e=J[a+76>>2];if((e|0)<=0)break k;wc(m,255,e<<8);break k}b=0;J[a+264>>2]=0;e=J[a+76>>2];if((e|0)<=0)break k;wc(m+2560|0,0,e<<2)}if(J[a+200>>2]>0){b=1;while(1){d=b;l:{m:{n=J[g>>2];if(n-5>>>0>4294967291)break m;b=J[a>>2];J[b+24>>2]=n;J[b+20>>2]=27;J[J[a>>2]+28>>2]=4;gc[J[J[a>>2]>>2]](a);if((n|0)>0)break m; -e=0;break l}b=J[g+4>>2];if(!((b|0)>=0&(b|0)>2])){b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=20;gc[J[J[a>>2]>>2]](a)}b=1;e=1;if((n|0)==1)break l;while(1){f=(b<<2)+g|0;c=J[f+4>>2];if(!((c|0)>=0&(c|0)>2])){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=20;gc[J[J[a>>2]>>2]](a)}if((c|0)<=J[f>>2]){c=J[a>>2];J[c+24>>2]=d;J[c+20>>2]=20;gc[J[J[a>>2]>>2]](a)}e=1;b=b+1|0;if((n|0)!=(b|0))continue;break}}h=J[g+32>>2];j=J[g+24>>2];f=J[g+20>>2];q=J[g+28>>2];n:{if(J[a+264>>2]){o:{p:{if((f|0)>(j|0)|f>>>0>63|((j|0)>63|q>>> -0>10))break p;if((h|0)<0)break p;if((h|0)<11)break o}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;gc[J[J[a>>2]>>2]](a)}q:{r:{if(!f){if(j)break r;break q}if((n|0)==1)break q}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;gc[J[J[a>>2]>>2]](a)}if(!e)break n;c=f+1|0;p=(j-f|0)+1|0;s=p&1;t=(h|0)==(q-1|0);o=0;while(1){e=m+(J[((o<<2)+g|0)+4>>2]<<8)|0;if(!(!f|J[e>>2]>=0)){b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;gc[J[J[a>>2]>>2]](a)}s:{if((f|0)>(j|0))break s;b=f;if(!q){if(!t){if(s){b=e+(b<<2)|0;if(J[b>>2]>=0){i=J[a>>2];J[i+24>> -2]=d;J[i+20>>2]=18;gc[J[J[a>>2]>>2]](a)}J[b>>2]=h;b=c}if((p|0)==1)break s;while(1){i=e+(b<<2)|0;if(J[i>>2]>=0){l=J[a>>2];J[l+24>>2]=d;J[l+20>>2]=18;gc[J[J[a>>2]>>2]](a)}J[i>>2]=h;i=b+1|0;l=e+(i<<2)|0;if(J[l>>2]>=0){r=J[a>>2];J[r+24>>2]=d;J[r+20>>2]=18;gc[J[J[a>>2]>>2]](a)}J[l>>2]=h;b=b+2|0;if((j|0)!=(i|0))continue;break}break s}if(s){b=e+(b<<2)|0;if(J[b>>2]>0){i=J[a>>2];J[i+24>>2]=d;J[i+20>>2]=18;gc[J[J[a>>2]>>2]](a)}J[b>>2]=h;b=c}if((p|0)==1)break s;while(1){i=e+(b<<2)|0;if(J[i>>2]>0){l=J[a>>2]; -J[l+24>>2]=d;J[l+20>>2]=18;gc[J[J[a>>2]>>2]](a)}J[i>>2]=h;i=b+1|0;l=e+(i<<2)|0;if(J[l>>2]>0){r=J[a>>2];J[r+24>>2]=d;J[r+20>>2]=18;gc[J[J[a>>2]>>2]](a)}J[l>>2]=h;b=b+2|0;if((j|0)!=(i|0))continue;break}break s}while(1){i=e+(b<<2)|0;l=J[i>>2];if(!(t&((l|0)==(q|0)&(l|0)>=0))){l=J[a>>2];J[l+24>>2]=d;J[l+20>>2]=18;gc[J[J[a>>2]>>2]](a)}J[i>>2]=h;i=(b|0)!=(j|0);b=b+1|0;if(i)continue;break}}o=o+1|0;if((n|0)!=(o|0))continue;break}break n}if(f|q|(j|0)!=63|h){b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;gc[J[J[a>>2]>> -2]](a)}b=0;if(!e)break n;while(1){c=(m+2560|0)+(J[((b<<2)+g|0)+4>>2]<<2)|0;if(J[c>>2]){f=J[a>>2];J[f+24>>2]=d;J[f+20>>2]=20;gc[J[J[a>>2]>>2]](a)}J[c>>2]=1;b=b+1|0;if((n|0)!=(b|0))continue;break}}b=d+1|0;g=g+36|0;if((d|0)>2])continue;break}e=J[a+76>>2];b=J[a+264>>2]}t:{if(b){b=0;if((e|0)<=0)break t;while(1){if(J[m+(b<<8)>>2]<0){c=J[a>>2];J[c+20>>2]=46;gc[J[c>>2]](a);e=J[a+76>>2]}b=b+1|0;if((e|0)>(b|0))continue;break}break t}b=0;if((e|0)<=0)break t;while(1){if(!J[(m+2560|0)+(b<<2)>>2]){c=J[a>> -2];J[c+20>>2]=46;gc[J[c>>2]](a);e=J[a+76>>2]}b=b+1|0;if((e|0)>(b|0))continue;break}}if(J[a+376>>2]>7)break i;e=0;if(J[a+200>>2]<=0){b=0;break j}f=J[a+204>>2];b=0;while(1){if((b|0)!=(e|0)){d=f+P(e,36)|0;g=J[d+4>>2];c=f+P(b,36)|0;J[c>>2]=J[d>>2];J[c+4>>2]=g;J[c+32>>2]=J[d+32>>2];g=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=g;g=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=g;g=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=g}d=J[a+384>>2];c=f+P(b,36)|0;if((d|0)>=J[c+20>>2]){if((d|0)>2])J[c+24>>2]= -d;b=b+1|0}e=e+1|0;if((e|0)>2])continue;break}break j}J[a+264>>2]=0;b=1}J[a+200>>2]=b}if(!(J[a+212>>2]|!J[a+264>>2]&J[a+376>>2]>7))J[a+216>>2]=1;J[k+20>>2]=0;b=J[a+216>>2];J[k+24>>2]=0;J[k+32>>2]=0;d=J[a+200>>2]<<1;u:{if(b)break u;d=J[a+200>>2]}J[k+28>>2]=d;bc=m+2608|0;if(!J[a+208>>2]){b=gc[J[J[a+4>>2]>>2]](a,1,12)|0;J[a+408>>2]=b;J[b>>2]=406;v:{w:{x:switch(J[a+40>>2]-1|0){case 0:if(J[a+36>>2]!=1)break w;break v;case 1:case 2:if(J[a+36>>2]!=3)break w;break v;case 3:case 4:if(J[a+36>>2]!=4)break w; -break v;default:break x}if(J[a+36>>2]>0)break v}c=J[a>>2];J[c+20>>2]=10;gc[J[c>>2]](a)}y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{c=J[a+80>>2];switch(c-1|0){case 4:break D;case 3:break E;case 2:break F;case 1:break G;case 0:break H;default:break C}}if(J[a+76>>2]!=1){c=J[a>>2];J[c+20>>2]=11;gc[J[c>>2]](a)}I:switch(J[a+40>>2]-1|0){case 0:J[b+4>>2]=407;break y;case 1:J[b+4>>2]=408;break B;case 2:J[b+4>>2]=407;break y;default:break I}break A}if(J[a+76>>2]!=3){c=J[a>>2];J[c+20>>2]=11;gc[J[c>>2]](a)}if(J[a+40>>2]== -2)break z;break A}if(J[a+76>>2]!=3){c=J[a>>2];J[c+20>>2]=11;gc[J[c>>2]](a)}J:switch(J[a+40>>2]-2|0){case 0:J[b+4>>2]=411;break B;case 1:break z;default:break J}break A}if(J[a+76>>2]!=4){c=J[a>>2];J[c+20>>2]=11;gc[J[c>>2]](a)}if(J[a+40>>2]==4)break z;break A}if(J[a+76>>2]!=4){c=J[a>>2];J[c+20>>2]=11;gc[J[c>>2]](a)}K:switch(J[a+40>>2]-4|0){case 0:J[b+4>>2]=412;break B;case 1:break z;default:break K}break A}if(!((c|0)==J[a+40>>2]&J[a+76>>2]==J[a+36>>2])){c=J[a>>2];J[c+20>>2]=28;gc[J[c>>2]](a)}J[b+4>> -2]=410;break y}J[b>>2]=409;break y}b=J[a>>2];J[b+20>>2]=28;gc[J[b>>2]](a);break y}J[b+4>>2]=410}h=0;b=gc[J[J[a+4>>2]>>2]](a,1,112)|0;J[a+412>>2]=b;J[b+8>>2]=0;J[b+4>>2]=420;J[b>>2]=421;if(J[a+220>>2]){c=J[a>>2];J[c+20>>2]=26;gc[J[c>>2]](a)}L:{if(J[a+76>>2]<=0)break L;d=J[a+84>>2];k=1;while(1){f=J[a+272>>2];g=J[a+268>>2];j=J[a+276>>2];m=J[d+36>>2];n=J[d+8>>2];c=b+(h<<2)|0;e=(P(J[d+40>>2],J[d+12>>2])|0)/J[a+280>>2]|0;J[c+52>>2]=e;j=(P(m,n)|0)/(j|0)|0;M:{if(!((j|0)!=(g|0)|(e|0)!=(f|0))){if(J[a+228>> -2]){J[c+12>>2]=422;J[b+8>>2]=1;break M}J[c+12>>2]=423;break M}m=(g|0)!=j<<1;if(!(m|(e|0)!=(f|0))){J[c+12>>2]=424;k=0;break M}if(!((f|0)!=e<<1|m)){if(J[a+228>>2]){J[c+12>>2]=425;J[b+8>>2]=1;break M}J[c+12>>2]=426;break M}N:{i=g;g=(g|0)/(j|0)|0;if(i-P(g,j)|0)break N;i=f;f=(f|0)/(e|0)|0;if(i-P(f,e)|0)break N;J[c+12>>2]=427;c=b+h|0;H[c+102|0]=f;H[c+92|0]=g;k=0;break M}c=J[a>>2];J[c+20>>2]=39;gc[J[c>>2]](a)}d=d+88|0;h=h+1|0;if((h|0)>2])continue;break}if(k|!J[a+228>>2])break L;b=J[a>>2];J[b+20>> -2]=101;gc[J[b+4>>2]](a,0)}c=0;d=0;k=0;e=gc[J[J[a+4>>2]>>2]](a,1,64)|0;J[a+396>>2]=e;J[e>>2]=428;O:{if(J[J[a+412>>2]+8>>2]){J[e+4>>2]=429;b=J[a+272>>2];d=gc[J[J[a+4>>2]>>2]](a,1,P(P(b,J[a+76>>2]),20))|0;if(J[a+76>>2]<=0)break O;m=P(b,5);g=b<<2;n=P(b,12);q=P(b,3);f=J[a+84>>2];if((b|0)<=0){while(1){u=e+(c<<2)|0,v=tc(d+g|0,gc[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[f+28>>2]))|0)/J[f+8>>2]|0,q)|0,n),J[u+8>>2]=v;f=f+88|0;d=(m<<2)+d|0;c=c+1|0;if((c|0)>2])continue;break}break O}s=b& --2;t=b&1;i=b<<3;while(1){h=gc[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[f+28>>2]))|0)/J[f+8>>2]|0,q)|0;l=tc(d+g|0,h,n);j=h+i|0;c=0;o=0;if((b|0)!=1)while(1){p=c<<2;J[p+d>>2]=J[j+p>>2];J[(c+g<<2)+d>>2]=J[h+p>>2];r=c|1;p=r<<2;J[p+d>>2]=J[j+p>>2];J[(g+r<<2)+d>>2]=J[h+p>>2];c=c+2|0;o=o+2|0;if((s|0)!=(o|0))continue;break}if(t){o=c<<2;J[o+d>>2]=J[j+o>>2];J[(c+g<<2)+d>>2]=J[h+o>>2]}J[(e+(k<<2)|0)+8>>2]=l;f=f+88|0;d=(m<<2)+d|0;k=k+1|0;if((k|0)>2])continue;break}break O}J[e+4>>2]=430;if(J[a+ -76>>2]<=0)break O;c=J[a+84>>2];while(1){u=e+(d<<2)|0,v=gc[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[c+28>>2]))|0)/J[c+8>>2]|0,J[a+272>>2])|0,J[u+8>>2]=v;c=c+88|0;d=d+1|0;if((d|0)>2])continue;break}}}b=gc[J[J[a+4>>2]>>2]](a,1,156)|0;J[a+416>>2]=b;J[b+84>>2]=0;J[b+88>>2]=0;J[b>>2]=431;J[b+92>>2]=0;J[b+96>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+152>>2]=0;P:{if(J[a+212>>2]){b=gc[J[J[a+4>>2]>>2]](a,1,208)|0;J[a+420>>2]=b;J[b+8>>2]=468;J[b>>2]=469;wc(b+76|0,0,128);H[b+204| -0]=113;break P}b=gc[J[J[a+4>>2]>>2]](a,1,140)|0;J[a+420>>2]=b;J[b+44>>2]=0;J[b+48>>2]=0;J[b>>2]=475;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;if(J[a+264>>2])J[b+136>>2]=0}c=J[a+216>>2]!=0|J[a+200>>2]>1;d=0;b=gc[J[J[a+4>>2]>>2]](a,1,104)|0;J[a+400>>2]=b;J[b>>2]=484;Q:{if(c){if(J[a+76>>2]<=0)break Q;c=J[a+84>>2];while(1){f=J[c+8>>2];k=(f+J[c+28>>2]|0)-1|0;g=k- -((k|0)%(f|0)|0)|0;f=J[c+12>>2];k=(f+J[c+32>>2]|0)-1|0;u=(b+(d<<2)|0)- -64|0,v=gc[J[J[a+4>>2]+20>>2]](a,1,0,g,k-((k|0)%(f|0)|0)|0,f)|0,J[u>>2]=v;c=c+88|0;d=d+1|0;if((d|0)>2])continue;break}break Q}c=gc[J[J[a+4>>2]+4>>2]](a,1,1280)|0;J[b+64>>2]=0;J[b+24>>2]=c;J[b+60>>2]=c+1152;J[b+56>>2]=c+1024;J[b+52>>2]=c+896;J[b+48>>2]=c+768;J[b+44>>2]=c+640;J[b+40>>2]=c+512;J[b+36>>2]=c+384;J[b+32>>2]=c+256;J[b+28>>2]=c+128}c=0;d=gc[J[J[a+4>>2]>>2]](a,1,64)|0;J[a+392>>2]=d;J[d>>2]=488;if(!(J[a+208>>2]|J[a+ -76>>2]<=0)){b=J[a+84>>2];while(1){u=d+(c<<2)|0,v=gc[J[J[a+4>>2]+8>>2]](a,1,P(J[b+36>>2],J[b+28>>2]),P(J[b+40>>2],J[b+12>>2]))|0,J[u+24>>2]=v;b=b+88|0;c=c+1|0;if((c|0)>2])continue;break}}R_(a);gc[J[J[a+4>>2]+24>>2]](a);gc[J[J[a+404>>2]>>2]](a);gc[J[J[a+388>>2]>>2]](a);J[a+260>>2]=0;J[a+20>>2]=J[a+208>>2]?102:101}function YCa(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,y=0,z=0,A=0,C=0,D=0,E=0;E=bc-32|0;bc=E;a:{b:{c=J[a>>2];c:{if((c| -0)<=0){b=Kc(E+8|0,2377309,2373971,649,2384288,0);break c}if(K[(c+J[a+4>>2]|0)-1|0]){b=Kc(E+8|0,2376679,2373971,650,2384288,0);break c}d:{if(c>>>0>=32769){j=bc-48|0;bc=j;k=ch(j+36|0,j+44|0,65536,4);i=wc(J[j+44>>2],0,262144);r=J[a+4>>2];if(J[a>>2]>=2){l=K[r|0];while(1){c=(l&255)<<10;f=f+1|0;l=K[r+f|0];c=i+(c|l<<2)|0;J[c>>2]=J[c>>2]+1;if((J[a>>2]-1|0)>(f|0))continue;break}}d=i+16|0;g=i+12|0;f=i+8|0;h=i+4|0;m=J[i>>2];l=1;while(1){e=m;m=l<<2;c=m+i|0;e=e+J[c>>2]|0;J[c>>2]=e;c=h+m|0;e=e+J[c>>2]|0;J[c>>2]= -e;c=f+m|0;e=e+J[c>>2]|0;J[c>>2]=e;c=g+m|0;e=e+J[c>>2]|0;J[c>>2]=e;c=d+m|0;m=e+J[c>>2]|0;J[c>>2]=m;l=l+5|0;if((l|0)!=65536)continue;break}d=J[a>>2];e:{if((d|0)<3)break e;c=J[a+20>>2];m=K[r|0];f=0;while(1){h=c+(f<<2)|0;g=(m&255)<<10;f=f+1|0;m=K[r+f|0];J[h>>2]=J[i+(g|m<<2)>>2];d=J[a>>2];h=d-2|0;if((h|0)>(f|0))continue;break}if((d|0)<3)break e;c=d-3|0;m=K[h+r|0];e=J[a+8>>2];if(d&1){f=m<<2;m=K[c+r|0];h=i+(f|m<<10)|0;f=J[h>>2];J[h>>2]=f-1;J[e+(f<<2)>>2]=c;f=d-4|0}else f=c;if(c)while(1){h=K[f+r|0];c=i+(h<< -10|(m&255)<<2)|0;g=J[c>>2];J[c>>2]=g-1;J[e+(g<<2)>>2]=f;g=f-1|0;m=K[g+r|0];c=i+(m<<10|h<<2)|0;h=J[c>>2];J[c>>2]=h-1;J[e+(h<<2)>>2]=g;f=f-2|0;if(g)continue;break}d=J[a>>2]}f=d-1|0;if(K[f+r|0]){J[695492]=0;b=ja(5018,j+12|0,2376679,2373971,631,2384261,0)|0;a=J[695492];J[695492]=0;f:{g:{if((a|0)!=1){J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;B()}l=Z()|0;break f}l=Z()|0;Fc(b)}_c(k);ba(l|0);B()}c=K[(d+r|0)-2|0];h=J[a+8>>2];J[h>>2]=f;c=i+(c<<10)|0;J[h+(J[c>>2]<<2)>>2]=J[a>>2]-2; -h=J[a+20>>2];J[(h+(J[a>>2]<<2)|0)-4>>2]=0;J[(h+(J[a>>2]<<2)|0)-8>>2]=J[c>>2];J[h+(J[a>>2]<<2)>>2]=-1;_c(k);bc=j+48|0;r=2;break d}c=0;g=bc-2048|0;bc=g;wc(g+1024|0,0,1024);r=wc(g,0,1024);m=J[a>>2];l=m-1|0;g=1;h:{if((m|0)<=1)break h;j=J[a+4>>2];if(m-2>>>0>=3){k=l&-4;while(1){e=r+(K[c+j|0]<<2)|0;J[e>>2]=J[e>>2]+1;e=r+(K[j+(c|1)|0]<<2)|0;J[e>>2]=J[e>>2]+1;e=r+(K[j+(c|2)|0]<<2)|0;J[e>>2]=J[e>>2]+1;e=r+(K[j+(c|3)|0]<<2)|0;J[e>>2]=J[e>>2]+1;c=c+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}e=l&3;if(!e)break h; -while(1){d=r+(K[c+j|0]<<2)|0;J[d>>2]=J[d>>2]+1;c=c+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}while(1){d=h<<2;f=r+1024|0;J[d+f>>2]=g;c=d+r|0;g=J[c>>2]+g|0;J[c>>2]=g-1;c=d|4;J[c+f>>2]=g;c=c+r|0;g=g+J[c>>2]|0;J[c>>2]=g-1;h=h+2|0;if((h|0)!=256)continue;break}k=J[a+8>>2];i:{if((m|0)<=1){c=J[a+20>>2];break i}c=J[a+20>>2];d=J[a+4>>2];h=0;while(1){g=d+h|0;f=(r+1024|0)+(K[g|0]<<2)|0;e=J[f>>2];J[f>>2]=e+1;J[k+(e<<2)>>2]=h;J[(h<<2)+c>>2]=J[r+(K[g|0]<<2)>>2];h=h+1|0;l=J[a>>2]-1|0;if((h|0)<(l|0))continue;break}}J[k>> -2]=l;J[((J[a>>2]<<2)+c|0)-4>>2]=0;J[(J[a>>2]<<2)+c>>2]=-1;bc=r+2048|0;r=1}d=J[a>>2];if((d|0)>0){c=0;while(1){u=J[J[a+20>>2]+(J[J[a+8>>2]+(c<<2)>>2]<<2)>>2];if((u|0)>(c|0)){h=0;p=bc-6176|0;bc=p;J[p+4128>>2]=c;J[p+2080>>2]=u;J[p+32>>2]=r;f=1;while(1){c=h<<2;x=c+(p+2080|0)|0;d=J[x>>2];v=c+(p+4128|0)|0;l=J[v>>2];y=c+(p+32|0)|0;j=J[y>>2];j:{if((j|0)>=8){if((d|0)<(l|0)){f=h;break j}k=J[a+8>>2];e=J[a+20>>2];g=0;f=d-l|0;c=f+1&3;if(c)while(1){J[e+(J[k+(l<<2)>>2]<<2)>>2]=d;l=l+1|0;g=g+1|0;if((c|0)!=(g|0))continue; -break}if(f>>>0<3){f=h;break j}g=k+8|0;f=k+4|0;while(1){c=l<<2;J[e+(J[c+k>>2]<<2)>>2]=d;J[e+(J[c+f>>2]<<2)>>2]=d;J[e+(J[c+g>>2]<<2)>>2]=d;c=l+3|0;J[e+(J[k+(c<<2)>>2]<<2)>>2]=d;l=l+4|0;if((c|0)!=(d|0))continue;break}f=h;break j}k:{if((d-l|0)<=9){if((d|0)<=(l|0))break k;z=J[a+8>>2];x=z+4|0;f=l;while(1){c=f;f=c+1|0;w=J[z+(f<<2)>>2];l:{if((c|0)<(l|0))break l;m=j+w|0;while(1){k=c;v=z+(c<<2)|0;y=J[v>>2];c=y+j|0;q=J[a+4>>2];e=m;g=j;m:{n:{while(1){if((g|0)>7)break n;t=c+q|0;n=K[t|0];o=e+q|0;i=K[o|0];if((n| -0)!=(i|0)){if(i>>>0>>0)break m;c=k;break l}g=g+2|0;e=e+2|0;c=c+2|0;n=K[t+1|0];i=K[o+1|0];if((n|0)==(i|0))continue;break}if(i>>>0>>0)break m;c=k;break l}g=J[a>>2];if(!((g|0)<=(c|0)|(e|0)>=(g|0))){c=k;break l}if((c|0)<(e|0))break m;c=k;break l}J[v+4>>2]=y;c=k-1|0;if((k|0)>(l|0))continue;break}}J[x+(c<<2)>>2]=w;if((d|0)!=(f|0))continue;break}break k}t=j+J[a+4>>2]|0;z=Wz(a,t,l,d);s=J[a+8>>2];c=l;while(1){k=c;if((z|0)==K[t+J[s+(c<<2)>>2]|0]){c=c+1|0;if((d|0)>(k|0))continue}break}c=d;while(1){m=c; -if((c|0)>(k|0)){c=c-1|0;if((z|0)==K[t+J[s+(m<<2)>>2]|0])continue}break}e=k;c=m;while(1){o:{if((c|0)<(e|0))break o;g=c+1|0;while(1){o=s+(e<<2)|0;n=J[o>>2];i=K[n+t|0];if(i>>>0>z>>>0)break o;if((i|0)==(z|0)){i=s+(k<<2)|0;J[o>>2]=J[i>>2];J[i>>2]=n;k=k+1|0}i=(c|0)!=(e|0);e=e+1|0;if(i)continue;break}e=g}g=c;p:{if((c|0)<(e|0))break p;while(1){n=s+(c<<2)|0;i=J[n>>2];g=K[i+t|0];if(g>>>0>>0){g=c;break p}if((g|0)==(z|0)){g=s+(m<<2)|0;J[n>>2]=J[g>>2];J[g>>2]=i;m=m-1|0}i=(c|0)>(e|0);g=c-1|0;c=g;if(i)continue; -break}}if((e|0)<=(g|0)){c=s+(e<<2)|0;i=J[c>>2];o=c;c=s+(g<<2)|0;J[o>>2]=J[c>>2];J[c>>2]=i;c=g;continue}break}c=k-l|0;w=e-k|0;i=(c|0)<(w|0)?c:w;q:{if((i|0)<=0)break q;c=e-i|0;r:{if(!(i&1)){k=i;e=l;break r}e=s+(l<<2)|0;k=J[e>>2];o=e;e=s+(c<<2)|0;J[o>>2]=J[e>>2];J[e>>2]=k;c=c+1|0;k=i-1|0;e=l+1|0}if((i|0)==1)break q;q=s+4|0;while(1){t=e<<2;i=t+s|0;n=J[i>>2];D=i;o=c<<2;i=o+s|0;J[D>>2]=J[i>>2];J[i>>2]=n;i=q+t|0;n=J[i>>2];D=i;i=q+o|0;J[D>>2]=J[i>>2];J[i>>2]=n;c=c+2|0;e=e+2|0;i=k-3|0;k=k-2|0;if(i>>>0<4294967294)continue; -break}}c=d-m|0;n=m-g|0;k=(c|0)<(n|0)?c:n;s:{if((k|0)<=0)break s;c=d-k|0;if(k&1){c=c+1|0;e=s+(c<<2)|0;m=J[e>>2];i=e;g=g+1|0;e=s+(g<<2)|0;J[i>>2]=J[e>>2];J[e>>2]=m;e=k-1|0}else e=k;if((k|0)==1)break s;i=s+4|0;while(1){k=i+(c<<2)|0;m=J[k>>2];o=k;k=i+(g<<2)|0;J[o>>2]=J[k>>2];J[k>>2]=m;c=c+2|0;k=s+(c<<2)|0;m=J[k>>2];o=k;g=g+2|0;k=s+(g<<2)|0;J[o>>2]=J[k>>2];J[k>>2]=m;k=e-3|0;e=e-2|0;if(k>>>0<4294967294)continue;break}}t:{if(f>>>0>=510){b=Kc(p+8|0,2376027,2373971,523,2384221,0);J[695492]=0;_(5019,b|0);a= -J[695492];J[695492]=0;if((a|0)!=1)break t;break a}g=l+w|0;c=g;i=d-n|0;u:{if((c|0)>(i|0)|z)break u;k=J[a>>2]-1|0;v:{while(1){e=s+(c<<2)|0;m=J[e>>2];if((k|0)==(m+j|0))break v;e=(c|0)>=(i|0);c=c+1|0;if(!e)continue;break}c=g;break u}c=s+(g<<2)|0;J[e>>2]=J[c>>2];J[c>>2]=m;J[J[a+20>>2]+(m<<2)>>2]=g;c=g+1|0}w:{if((c|0)<(i|0)){J[v>>2]=c;J[x>>2]=i;J[y>>2]=j+1;break w}if((c|0)==(i|0))J[J[a+20>>2]+(J[s+(i<<2)>>2]<<2)>>2]=i;f=h}h=g-1|0;x:{if((h|0)>(l|0)){c=f<<2;J[c+(p+2080|0)>>2]=h;J[c+(p+4128|0)>>2]=l;J[c+(p+ -32|0)>>2]=j;f=f+1|0;break x}if((h|0)!=(l|0))break x;J[J[a+20>>2]+(J[s+(l<<2)>>2]<<2)>>2]=l}h=i+1|0;if((h|0)<(d|0)){c=f<<2;J[c+(p+2080|0)>>2]=d;J[c+(p+4128|0)>>2]=h;J[c+(p+32|0)>>2]=j;f=f+1|0;break j}if((d|0)!=(h|0))break j;J[J[a+20>>2]+(J[s+(d<<2)>>2]<<2)>>2]=d;break j}B()}if((d|0)<(l|0)){f=h;break j}x=J[a+20>>2];v=J[a+8>>2];while(1){m=d;c=J[v+(d<<2)>>2];J[x+(c<<2)>>2]=d;d=d-1|0;y:{if((l|0)>=(m|0))break y;k=c+j|0;while(1){f=d;t=J[v+(d<<2)>>2];c=t+j|0;y=J[a+4>>2];e=k;g=j;z:{A:{while(1){if((g|0)>7)break A; -o=e+y|0;i=K[o|0];n=c+y|0;d=K[n|0];if((i|0)!=(d|0)){if(d>>>0>=i>>>0)break z;d=f;break y}g=g+2|0;c=c+2|0;e=e+2|0;i=K[o+1|0];d=K[n+1|0];if((i|0)==(d|0))continue;break}if(d>>>0>=i>>>0)break z;d=f;break y}g=J[a>>2];if(!((g|0)<=(e|0)|(c|0)>=(g|0))|(c|0)<=(e|0))break z;d=f;break y}J[x+(t<<2)>>2]=m;d=f-1|0;if((f|0)>(l|0))continue;break}}if((d|0)>=(l|0))continue;break}f=h}h=f-1|0;if((f|0)>0)continue;break}bc=p+6176|0;d=J[a>>2]}c=u+1|0;if((d|0)>(c|0))continue;break}}m=8;while(1){if(J[a>>2]>0){r=m<<1;e=0;u= -0;z=0;while(1){p=J[a+20>>2];w=J[a+8>>2];c=J[w+(e<<2)>>2];A=J[p+((c&16777215)<<2)>>2];B:{if((A|0)==(e|0)){A=(c>>>24|0)+e|0;break B}C:{x=A-e|0;if((x|0)<=9){if((e|0)>=(A|0))break C;y=w+4|0;q=m<<2;v=q+p|0;h=e;while(1){c=h;h=c+1|0;d=J[w+(h<<2)>>2];D:{if((c|0)<(e|0))break D;while(1){g=d;f=c;t=w+(c<<2)|0;o=J[t>>2];c=o;E:{while(1){l=J[v+(c<<2)>>2];k=J[v+(g<<2)>>2];if((l|0)!=(k|0)){if((k|0)<(l|0))break E;c=f;break D}n=c+r|0;i=p+(n<<2)|0;l=J[i>>2];j=g+r|0;k=p+(j<<2)|0;c=J[k>>2];if((l|0)!=(c|0)){if((c|0)<(l| -0))break E;c=f;break D}g=J[i+q>>2];c=J[k+q>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}i=n+r|0;l=p+(i<<2)|0;g=J[l>>2];j=j+r|0;k=p+(j<<2)|0;c=J[k>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}g=J[l+q>>2];c=J[k+q>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}i=i+r|0;l=p+(i<<2)|0;g=J[l>>2];j=j+r|0;k=p+(j<<2)|0;c=J[k>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}g=J[l+q>>2];c=J[k+q>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}c=i+r|0;l=J[p+(c<<2)>> -2];g=j+r|0;k=J[p+(g<<2)>>2];if((l|0)==(k|0))continue;break}if((k|0)<(l|0))break E;c=f;break D}J[t+4>>2]=o;c=f-1|0;if((e|0)<(f|0))continue;break}}J[y+(c<<2)>>2]=d;if((h|0)!=(A|0))continue;break}break C}h=e-1|0;if((h|0)>(u|0))while(1){c=h-u|0;c=(c|0)>=255?255:c;H[(w+(u<<2)|0)+3|0]=c;u=(c+u|0)+1|0;if((h|0)>(u|0))continue;break}z=z+1|0;k=0;C=bc-4128|0;bc=C;J[C+2080>>2]=e;J[C+32>>2]=A;l=1;F:{G:{while(1){c=k<<2;y=c+(C+32|0)|0;i=J[y>>2];g=J[c+(C+2080|0)>>2];H:{if((i-g|0)<=9){if((g|0)<(i|0)){s=m<<1;w=J[a+ -8>>2];x=w+4|0;p=J[a+20>>2];u=m<<2;q=p+u|0;h=g;while(1){c=h;h=c+1|0;e=J[w+(h<<2)>>2];I:{if((c|0)<(g|0))break I;while(1){d=e;f=c;v=w+(c<<2)|0;y=J[v>>2];c=y;J:{while(1){j=J[q+(c<<2)>>2];l=J[q+(d<<2)>>2];if((j|0)!=(l|0)){if((j|0)>(l|0))break J;c=f;break I}t=c+s|0;o=p+(t<<2)|0;j=J[o>>2];n=d+s|0;l=p+(n<<2)|0;c=J[l>>2];if((j|0)!=(c|0)){if((c|0)<(j|0))break J;c=f;break I}d=J[u+o>>2];c=J[l+u>>2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}o=s+t|0;j=p+(o<<2)|0;d=J[j>>2];n=n+s|0;l=p+(n<<2)|0;c=J[l>> -2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}d=J[j+u>>2];c=J[l+u>>2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}o=s+o|0;j=p+(o<<2)|0;d=J[j>>2];n=n+s|0;l=p+(n<<2)|0;c=J[l>>2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}d=J[j+u>>2];c=J[l+u>>2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}c=s+o|0;j=J[p+(c<<2)>>2];d=n+s|0;l=J[p+(d<<2)>>2];if((j|0)==(l|0))continue;break}if((j|0)>(l|0))break J;c=f;break I}J[v+4>>2]=y;c=f-1|0;if((f|0)>(g|0))continue;break}}J[x+(c<<2)>>2]= -e;if((h|0)!=(i|0))continue;break}}K:{if((g|0)>(i|0))break K;e=J[a+8>>2];d=J[a+20>>2];f=i-g|0;h=f+1&3;if(h){c=0;while(1){J[d+(J[e+(g<<2)>>2]<<2)>>2]=g;g=g+1|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}if(f>>>0<3)break K;while(1){J[d+(J[e+(g<<2)>>2]<<2)>>2]=g;c=g+1|0;J[d+(J[e+(c<<2)>>2]<<2)>>2]=c;c=g+2|0;J[d+(J[e+(c<<2)>>2]<<2)>>2]=c;c=g+3|0;J[d+(J[e+(c<<2)>>2]<<2)>>2]=c;g=g+4|0;if((c|0)!=(i|0))continue;break}}break H}t=J[a+20>>2]+(m<<2)|0;v=Xz(a,t,g,i);q=J[a+8>>2];c=g;while(1){d=c;if((c|0)<(i|0)){c= -c+1|0;if((v|0)==J[t+(J[q+(d<<2)>>2]<<2)>>2])continue}break}c=i;while(1){e=c;if((c|0)>(d|0)){c=c-1|0;if((v|0)==J[t+(J[q+(e<<2)>>2]<<2)>>2])continue}break}f=d;c=e;while(1){L:{if((c|0)<(f|0))break L;h=c+1|0;while(1){o=q+(f<<2)|0;n=J[o>>2];j=J[t+(n<<2)>>2];if((j|0)>(v|0))break L;if((j|0)==(v|0)){j=q+(d<<2)|0;J[o>>2]=J[j>>2];J[j>>2]=n;d=d+1|0}j=(c|0)!=(f|0);f=f+1|0;if(j)continue;break}f=h}h=c;M:{if((c|0)<(f|0))break M;while(1){n=q+(c<<2)|0;j=J[n>>2];h=J[t+(j<<2)>>2];if((h|0)<(v|0)){h=c;break M}if((h|0)== -(v|0)){h=q+(e<<2)|0;J[n>>2]=J[h>>2];J[h>>2]=j;e=e-1|0}j=(c|0)>(f|0);h=c-1|0;c=h;if(j)continue;break}}if((f|0)<=(h|0)){c=q+(f<<2)|0;j=J[c>>2];o=c;c=q+(h<<2)|0;J[o>>2]=J[c>>2];J[c>>2]=j;c=h;continue}break}c=d-g|0;x=f-d|0;j=(c|0)<(x|0)?c:x;N:{if((j|0)<=0)break N;c=f-j|0;O:{if(!(j&1)){d=j;f=g;break O}f=q+(g<<2)|0;d=J[f>>2];o=f;f=q+(c<<2)|0;J[o>>2]=J[f>>2];J[f>>2]=d;c=c+1|0;d=j-1|0;f=g+1|0}if((j|0)==1)break N;v=q+4|0;while(1){t=f<<2;j=t+q|0;n=J[j>>2];D=j;o=c<<2;j=o+q|0;J[D>>2]=J[j>>2];J[j>>2]=n;j=v+t| -0;n=J[j>>2];D=j;j=v+o|0;J[D>>2]=J[j>>2];J[j>>2]=n;c=c+2|0;f=f+2|0;j=d-3|0;d=d-2|0;if(j>>>0<4294967294)continue;break}}c=i-e|0;n=e-h|0;d=(c|0)<(n|0)?c:n;P:{if((d|0)<=0)break P;c=i-d|0;if(d&1){c=c+1|0;f=q+(c<<2)|0;e=J[f>>2];j=f;h=h+1|0;f=q+(h<<2)|0;J[j>>2]=J[f>>2];J[f>>2]=e;f=d-1|0}else f=d;if((d|0)==1)break P;j=q+4|0;while(1){d=j+(c<<2)|0;e=J[d>>2];o=d;d=j+(h<<2)|0;J[o>>2]=J[d>>2];J[d>>2]=e;c=c+2|0;d=q+(c<<2)|0;e=J[d>>2];o=d;h=h+2|0;d=q+(h<<2)|0;J[o>>2]=J[d>>2];J[d>>2]=e;d=f-3|0;f=f-2|0;if(d>>>0<4294967294)continue; -break}}Q:{if(l>>>0<=510){h=g+x|0;e=i-n|0;if((h|0)<=(e|0)){d=J[a+20>>2];c=h;while(1){J[d+(J[q+(c<<2)>>2]<<2)>>2]=e;f=(c|0)<(e|0);c=c+1|0;if(f)continue;break}}if((x|0)>0){d=h-1|0;f=J[a+20>>2];c=g;while(1){J[f+(J[q+(c<<2)>>2]<<2)>>2]=d;c=c+1|0;if((h|0)>(c|0))continue;break}J[y>>2]=d;k=(d|0)>(g|0)?l:k}if((n|0)>0)break Q;break H}b=Kc(C+8|0,2375387,2373971,347,2384181,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break G;break a}c=k<<2;J[c+(C+32|0)>>2]=i;f=c+(C+2080|0)|0;c=e+1|0;J[f>>2]= -c;k=((c|0)<(i|0))+k|0}l=k;k=l-1|0;if((l|0)>0)continue;break}bc=C+4128|0;break F}B()}u=A+1|0;break B}if((e|0)>(A|0))break B;d=0;c=x+1&3;if(c)while(1){J[p+(J[w+(e<<2)>>2]<<2)>>2]=e;e=e+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}if(x>>>0<3)break B;while(1){J[p+(J[w+(e<<2)>>2]<<2)>>2]=e;c=e+1|0;J[p+(J[w+(c<<2)>>2]<<2)>>2]=c;c=e+2|0;J[p+(J[w+(c<<2)>>2]<<2)>>2]=c;c=e+3|0;J[p+(J[w+(c<<2)>>2]<<2)>>2]=c;e=e+4|0;if((c|0)!=(A|0))continue;break}}e=A+1|0;if((e|0)>2])continue;break}if((u|0)<(A|0)){h=J[a+8>> -2];while(1){c=A-u|0;c=(c|0)>=255?255:c;H[(h+(u<<2)|0)+3|0]=c;u=(c+u|0)+1|0;if((A|0)>(u|0))continue;break}}m=r;if(z)continue}break}J[b>>2]=-1;d=J[a>>2];R:{if((d|0)<=0)break R;f=J[a+20>>2];h=J[a+4>>2];c=0;while(1){J[f+(c<<2)>>2]=K[c+h|0];c=c+1|0;d=J[a>>2];if((c|0)<(d|0))continue;break}c=0;if((d|0)<=0)break R;while(1){h=J[J[a+8>>2]+(c<<2)>>2]&16777215;S:{if(h){H[J[a+4>>2]+c|0]=J[(J[a+20>>2]+(h<<2)|0)-4>>2];break S}H[J[a+4>>2]+c|0]=0;J[b>>2]=c}c=c+1|0;d=J[a>>2];if((c|0)<(d|0))continue;break}}a=J[b>>2]; -if((a|0)>=0&(a|0)<(d|0))break b;b=Kc(E+8|0,2377952,2373971,740,2384288,0)}J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;Fc(b);ba(a|0)}B()}bc=E+32|0;return}a=Z()|0;Fc(b);ba(a|0);B()}function Ak(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;e=-2;a:{b:{c:{d:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break d;d=J[a+28>>2];if(!d|J[d>>2]!=(a|0))break d;e:{f:{c=J[d+4>>2];switch(c-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break d; -case 0:case 12:case 16:case 34:case 46:case 56:break e;default:break f}}if((c|0)==666)break e;if((c|0)!=42)break d}if(b>>>0>5)break d;g:{h:{if(!J[a+12>>2])break h;f=J[a+4>>2];if(J[a>>2]?0:f)break h;if((b|0)==4|(c|0)!=666)break g}J[a+24>>2]=J[191992];return-2}if(!J[a+16>>2])break b;e=J[d+40>>2];J[d+40>>2]=b;i:{if(J[d+20>>2]){Hh(d);g=J[d+20>>2];c=J[a+16>>2];e=c>>>0>g>>>0?g:c;j:{if(!e)break j;tc(J[a+12>>2],J[d+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[d+16>>2]=e+J[d+16>>2];J[a+20>>2]=e+J[a+20>>2];c=J[a+16>> +0)<=1?1:d;f=J[a+32780>>2];while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1){J[a+34092>>2]=1;J[a+34096>>2]=1;break B}H[(a+f|0)+12|0]=c;f=f+1&32767;o=o+1|0;if((b|0)!=(o|0))continue;break}o=b}J[a+32784>>2]=o;b=J[a+34088>>2];J[a+34088>>2]=b-d;if((b|0)==(d|0))J[a+34092>>2]=1;c=J[a+34108>>2];b=o+J[a+34104>>2]|0;c=b>>>0>>0?c+1|0:c;J[a+34104>>2]=b;J[a+34108>>2]=c}c=J[a+34116>>2]+(o>>31)|0;b=o+J[a+34112>>2]|0;c=b>>>0>>0?c+1|0:c;J[a+34112>>2]=b;J[a+34116>>2]=c;if(!c&b>>>0<500000001)break a; +o=810946;f=J[a+34104>>2];d=J[a+34108>>2];b=xEb(b,c,250,0);c=jc;if((c|0)==(d|0)&b>>>0<=f>>>0|d>>>0>c>>>0)break a}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,o,0);J[a+34092>>2]=1;J[a+34096>>2]=1;J[a+32784>>2]=0}}function gHa(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;d=fc-176|0;fc=d;e=d+152|0;x2(e,a);J[699344]=0;k=aa(4985,d+164|0,e|0)|0;e=J[699344];J[699344]=0;a:{if((e|0)!=1){if(H[d+163|0]<0)uc(J[d+152>>2]);J[699344]=0;e=Qd(k,2382408);f=J[699344];J[699344]=0; +b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{if((f|0)==1)break H;if(e){J[d+48>>2]=0;J[d+32>>2]=255;J[699344]=0;J[d+64>>2]=0;J[d+68>>2]=1072693248;e=tq(a);f=J[699344];J[699344]=0;if((f|0)==1)break c;I:{J:{K:{L:{if((e|0)<=0)break L;J[699344]=0;e=vk(a);f=J[699344];J[699344]=0;if((f|0)==1)break c;if(!e)break L;J[699344]=0;e=d+140|0;da(4970,e|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break d;J[699344]=0;e=aa(4985,d+152|0,e|0)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break e;if(H[d+151|0]<0)uc(J[d+140>>2]);M:{N:{O:{P:{while(1){J[699344]=0;f=J[e+4>>2];h=J[699344];J[699344]=0;if((h|0)==1)break K;if(!f)break M;J[699344]=0;f=Qd(e,2382784);h=J[699344];J[699344]=0;if((h|0)==1)break K;Q:{if(f){J[699344]=0;f=d+128|0;da(4971,f|0,a|0);h=J[699344];J[699344]=0;R:{S:{T:{if((h|0)!=1){J[699344]=0;f=aa(4985,d+140|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break T;J[699344]=0;ca(5106,f|0,d+48|0,d+32|0);h=J[699344];J[699344]=0;if((h|0)==1)break S;Rc(f);if(H[d+139| +0]>=0)break Q;uc(J[d+128>>2]);break Q}a=Z()|0;Rc(e);break b}a=Z()|0;break R}a=Z()|0;Rc(f)}if(H[d+139|0]>=0)break J;uc(J[d+128>>2]);Rc(e);break b}J[699344]=0;f=Qd(e,2382808);h=J[699344];J[699344]=0;if((h|0)==1)break K;if(f){J[699344]=0;f=d+128|0;da(4971,f|0,a|0);h=J[699344];J[699344]=0;U:{V:{W:{if((h|0)!=1){J[699344]=0;f=aa(4985,d+116|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break W;J[699344]=0;Ft(f,d- -64|0);h=J[699344];J[699344]=0;if((h|0)==1)break V;Rc(f);if(H[d+139|0]>=0)break Q;uc(J[d+128>> +2]);break Q}a=Z()|0;Rc(e);break b}a=Z()|0;break U}a=Z()|0;Rc(f)}if(H[d+139|0]>=0)break J;uc(J[d+128>>2]);Rc(e);break b}J[699344]=0;f=Qd(e,2382840);h=J[699344];J[699344]=0;if((h|0)==1)break K;if(!c|f^1)break Q;J[699344]=0;f=d+128|0;da(4971,f|0,a|0);h=J[699344];J[699344]=0;X:{if((h|0)!=1){J[699344]=0;ca(5022,c|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break X;if(H[d+139|0]>=0)break Q;uc(J[d+128>>2]);break Q}a=Z()|0;Rc(e);break b}a=Z()|0;if(H[d+139|0]>=0)break J;uc(J[d+128>>2]);Rc(e);break b}J[699344]= +0;f=Mi(a);h=J[699344];J[699344]=0;if((h|0)==1)break K;if(!f)break M;J[699344]=0;f=d+128|0;da(4970,f|0,a|0);h=J[699344];J[699344]=0;if((h|0)!=1){J[699344]=0;f=aa(4985,d+104|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break P;J[699344]=0;dg(e,f);h=J[699344];J[699344]=0;if((h|0)==1)break O;Rc(f);if(H[d+139|0]>=0)continue;uc(J[d+128>>2]);continue}break}a=Z()|0;Rc(e);break b}a=Z()|0;break N}a=Z()|0;Rc(f)}if(H[d+139|0]>=0)break J;uc(J[d+128>>2]);Rc(e);break b}J[699344]=0;gj(a);a=J[699344];J[699344]=0; +if((a|0)==1)break f;Rc(e)}J[699344]=0;e=_(4,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;l=O[b>>3];m=O[d+64>>3];a=J[d+32>>2];J[e+4>>2]=J[d+48>>2];J[e>>2]=2383424;l=m*(l*+(a|0));if(!(R(l)<2147483648))break I;J[e+8>>2]=~~l;break u}a=Z()|0}Rc(e);break b}J[e+8>>2]=-2147483648;break u}J[699344]=0;e=Qd(k,2382472);f=J[699344];J[699344]=0;if((f|0)==1)break H;if(e){e=0;J[699344]=0;b=tq(a);f=J[699344];J[699344]=0;if((f|0)==1)break H;if((b|0)<=0)break u;J[699344]=0;b=vk(a);f=J[699344];J[699344]=0;if((f| +0)==1)break H;if(!b)break u;J[699344]=0;b=d+140|0;da(4970,b|0,a|0);e=J[699344];J[699344]=0;if((e|0)==1)break g;J[699344]=0;b=aa(4985,d+152|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;if(H[d+151|0]<0)uc(J[d+140>>2]);e=0;Y:{Z:{_:{$:{aa:{ba:{while(1){J[699344]=0;f=J[b+4>>2];h=J[699344];J[699344]=0;if((h|0)==1)break Z;if(!f)break _;J[699344]=0;f=Qd(b,2382864);h=J[699344];J[699344]=0;if((h|0)==1)break Z;ca:{da:{ea:{if(f){J[699344]=0;e=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Z;J[699344]= +0;g=d+140|0;da(4971,g|0,a|0);f=J[699344];J[699344]=0;fa:{if((f|0)!=1){j=J[d+140>>2];n=H[d+151|0];J[e>>2]=2383504;J[699344]=0;f=e+4|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;h=J[699344];J[699344]=0;if((h|0)==1)break fa;J[699344]=0;h=e+20|0;J[h>>2]=0;J[h+4>>2]=0;H[h+8|0]=0;i=J[699344];J[699344]=0;if((i|0)==1)break ea;J[699344]=0;ia(5007,f|0,((n|0)<0?j:g)|0,1,-1);g=J[699344];J[699344]=0;if((g|0)==1){a=Z()|0;Rc(h);Rc(f);break da}J[e+16>>2]=0;if(H[d+151|0]>=0)break ca;uc(J[d+140>>2]);break ca}a=Z()|0;uc(e);Rc(b); +break b}a=Z()|0;break da}J[699344]=0;f=Qd(b,2382840);h=J[699344];J[699344]=0;if((h|0)==1)break Z;if(!c|f^1)break ca;J[699344]=0;f=d+140|0;da(4971,f|0,a|0);h=J[699344];J[699344]=0;ga:{if((h|0)!=1){J[699344]=0;ca(5022,c|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break ga;if(H[d+151|0]>=0)break ca;uc(J[d+140>>2]);break ca}a=Z()|0;Rc(b);break b}a=Z()|0;if(H[d+151|0]>=0)break Y;uc(J[d+140>>2]);Rc(b);break b}a=Z()|0;Rc(f)}if(H[d+151|0]<0)uc(J[d+140>>2]);uc(e);Rc(b);break b}J[699344]=0;f=Mi(a);h=J[699344]; +J[699344]=0;if((h|0)==1)break Z;if(!f)break _;J[699344]=0;f=d+140|0;da(4970,f|0,a|0);h=J[699344];J[699344]=0;if((h|0)!=1){J[699344]=0;f=aa(4985,d+128|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break ba;J[699344]=0;dg(b,f);h=J[699344];J[699344]=0;if((h|0)==1)break aa;Rc(f);if(H[d+151|0]>=0)continue;uc(J[d+140>>2]);continue}break}a=Z()|0;Rc(b);break b}a=Z()|0;break $}a=Z()|0;Rc(f)}if(H[d+151|0]>=0)break Y;uc(J[d+140>>2]);Rc(b);break b}J[699344]=0;gj(a);a=J[699344];J[699344]=0;if((a|0)==1)break i; +Rc(b);break u}a=Z()|0}Rc(b);break b}J[699344]=0;e=Qd(k,2382516);f=J[699344];J[699344]=0;if((f|0)==1)break H;if(!e){e=0;J[699344]=0;f=Qd(k,2382596);h=J[699344];J[699344]=0;if((h|0)==1)break H;if(!f)break u}J[699344]=0;h=Qd(k,2382516);e=J[699344];J[699344]=0;if((e|0)==1)break j;if(!h)break G;J[d+64>>2]=0;J[d+68>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+32>>2]=0;J[d+36>>2]=1072693248;J[699344]=0;J[d+16>>2]=0;J[d+20>>2]=1072693248;e=tq(a);f=J[699344];J[699344]=0;if((f|0)==1)break k;l=1;ha:{ia:{ja:{if((e|0)<= +0)break ja;J[699344]=0;e=vk(a);f=J[699344];J[699344]=0;if((f|0)==1)break k;if(!e)break ja;J[699344]=0;e=d+140|0;da(4970,e|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break l;J[699344]=0;f=aa(4985,d+152|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;if(H[d+151|0]<0)uc(J[d+140>>2]);ka:{la:{ma:{na:{while(1){J[699344]=0;e=J[f+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break ia;if(!e)break ka;J[699344]=0;e=Qd(f,2382912);g=J[699344];J[699344]=0;if((g|0)==1)break ia;oa:{if(e){J[699344]=0;e=d+128|0;da(4971, +e|0,a|0);g=J[699344];J[699344]=0;pa:{qa:{ra:{if((g|0)!=1){J[699344]=0;e=aa(4985,d+140|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ra;J[699344]=0;ca(5107,e|0,d- -64|0,d+48|0);g=J[699344];J[699344]=0;if((g|0)==1)break qa;Rc(e);if(H[d+139|0]>=0)break oa;uc(J[d+128>>2]);break oa}a=Z()|0;Rc(f);break b}a=Z()|0;break pa}a=Z()|0;Rc(e)}if(H[d+139|0]>=0)break ha;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;e=Qd(f,2382956);g=J[699344];J[699344]=0;if((g|0)==1)break ia;if(e){J[699344]=0;e=d+128|0;da(4971, +e|0,a|0);g=J[699344];J[699344]=0;sa:{ta:{ua:{if((g|0)!=1){J[699344]=0;e=aa(4985,d+116|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ua;J[699344]=0;ca(5107,e|0,d+32|0,d+16|0);g=J[699344];J[699344]=0;if((g|0)==1)break ta;Rc(e);if(H[d+139|0]>=0)break oa;uc(J[d+128>>2]);break oa}a=Z()|0;Rc(f);break b}a=Z()|0;break sa}a=Z()|0;Rc(e)}if(H[d+139|0]>=0)break ha;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;e=Qd(f,2382808);g=J[699344];J[699344]=0;if((g|0)==1)break ia;if(e){J[699344]=0;g=d+128|0;da(4971,g| +0,a|0);e=J[699344];J[699344]=0;if((e|0)!=1){j=K[d+139|0];e=j<<24>>24;va:{if((e|0)<0?J[d+132>>2]:j){J[699344]=0;l=+qa(4995,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break va;e=H[d+139|0]}if(e<<24>>24>=0)break oa;uc(J[d+128>>2]);break oa}a=Z()|0;if(H[d+139|0]>=0)break ha;uc(J[d+128>>2]);Rc(f);break b}a=Z()|0;Rc(f);break b}J[699344]=0;e=Qd(f,2382840);g=J[699344];J[699344]=0;if((g|0)==1)break ia;if(!c|e^1)break oa;J[699344]=0;e=d+128|0;da(4971,e|0,a|0);g=J[699344];J[699344]=0;wa:{if((g|0)!=1){J[699344]= +0;ca(5022,c|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)==1)break wa;if(H[d+139|0]>=0)break oa;uc(J[d+128>>2]);break oa}a=Z()|0;Rc(f);break b}a=Z()|0;if(H[d+139|0]>=0)break ha;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;e=Mi(a);g=J[699344];J[699344]=0;if((g|0)==1)break ia;if(!e)break ka;J[699344]=0;e=d+128|0;da(4970,e|0,a|0);g=J[699344];J[699344]=0;if((g|0)!=1){J[699344]=0;e=aa(4985,d+104|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break na;J[699344]=0;dg(f,e);g=J[699344];J[699344]=0;if((g|0)==1)break ma; +Rc(e);if(H[d+139|0]>=0)continue;uc(J[d+128>>2]);continue}break}a=Z()|0;Rc(f);break b}a=Z()|0;break la}a=Z()|0;Rc(e)}if(H[d+139|0]>=0)break ha;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;gj(a);c=J[699344];J[699344]=0;if((c|0)==1)break n;Rc(f)}J[699344]=0;f=_(4,48)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;m=O[d+64>>3];o=O[d+48>>3];p=O[d+32>>3];q=O[d+16>>3];J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=2383560;break F}a=Z()|0}Rc(f);break b}a=Z()|0;break b}J[d+32>>2]=0;J[d+36>>2]=0;J[d+16>>2]=0;J[d+ +20>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[699344]=0;J[d+80>>2]=0;J[d+84>>2]=0;e=tq(a);f=J[699344];J[699344]=0;if((f|0)==1)break o;l=1;xa:{if((e|0)<=0)break xa;J[699344]=0;e=vk(a);f=J[699344];J[699344]=0;if((f|0)==1)break o;if(!e)break xa;J[699344]=0;e=d+140|0;da(4970,e|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break p;J[699344]=0;f=aa(4985,d+152|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break q;if(H[d+151|0]<0)uc(J[d+140>>2]);ya:{za:{Aa:{Ba:{while(1){J[699344]= +0;e=J[f+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break E;if(!e)break ya;J[699344]=0;e=Qd(f,2382992);g=J[699344];J[699344]=0;if((g|0)==1)break E;Ca:{if(e){J[699344]=0;e=d+128|0;da(4971,e|0,a|0);g=J[699344];J[699344]=0;Da:{Ea:{Fa:{if((g|0)!=1){J[699344]=0;e=aa(4985,d+140|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Fa;J[699344]=0;ca(5107,e|0,d+32|0,d+16|0);g=J[699344];J[699344]=0;if((g|0)==1)break Ea;Rc(e);if(H[d+139|0]>=0)break Ca;uc(J[d+128>>2]);break Ca}a=Z()|0;Rc(f);break b}a=Z()|0;break Da}a= +Z()|0;Rc(e)}if(H[d+139|0]>=0)break D;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;e=Qd(f,2383020);g=J[699344];J[699344]=0;if((g|0)==1)break E;if(e){J[699344]=0;e=d+128|0;da(4971,e|0,a|0);g=J[699344];J[699344]=0;Ga:{Ha:{Ia:{if((g|0)!=1){J[699344]=0;e=aa(4985,d+116|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ia;J[699344]=0;ca(5107,e|0,d+88|0,d+80|0);g=J[699344];J[699344]=0;if((g|0)==1)break Ha;Rc(e);if(H[d+139|0]>=0)break Ca;uc(J[d+128>>2]);break Ca}a=Z()|0;Rc(f);break b}a=Z()|0;break Ga}a=Z()| +0;Rc(e)}if(H[d+139|0]>=0)break D;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;e=Qd(f,2382808);g=J[699344];J[699344]=0;if((g|0)==1)break E;if(e){J[699344]=0;g=d+128|0;da(4971,g|0,a|0);e=J[699344];J[699344]=0;if((e|0)!=1){j=K[d+139|0];e=j<<24>>24;Ja:{if((e|0)<0?J[d+132>>2]:j){J[699344]=0;l=+qa(4995,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break Ja;e=H[d+139|0]}if(e<<24>>24>=0)break Ca;uc(J[d+128>>2]);break Ca}a=Z()|0;if(H[d+139|0]>=0)break D;uc(J[d+128>>2]);Rc(f);break b}a=Z()|0;Rc(f);break b}J[699344]= +0;e=Qd(f,2383080);g=J[699344];J[699344]=0;if((g|0)==1)break E;if(e){J[699344]=0;e=d+128|0;da(4971,e|0,a|0);g=J[699344];J[699344]=0;Ka:{La:{Ma:{if((g|0)!=1){J[699344]=0;e=aa(4985,d+104|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ma;J[699344]=0;Ft(e,d);g=J[699344];J[699344]=0;if((g|0)==1)break La;Rc(e);if(H[d+139|0]>=0)break Ca;uc(J[d+128>>2]);break Ca}a=Z()|0;Rc(f);break b}a=Z()|0;break Ka}a=Z()|0;Rc(e)}if(H[d+139|0]>=0)break D;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;e=Qd(f,2383112);g=J[699344]; +J[699344]=0;if((g|0)==1)break E;if(e){J[699344]=0;e=d+128|0;da(4971,e|0,a|0);g=J[699344];J[699344]=0;Na:{Oa:{Pa:{if((g|0)!=1){J[699344]=0;e=aa(4985,d- -64|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Pa;J[699344]=0;Ft(e,d+96|0);g=J[699344];J[699344]=0;if((g|0)==1)break Oa;Rc(e);if(H[d+139|0]>=0)break Ca;uc(J[d+128>>2]);break Ca}a=Z()|0;Rc(f);break b}a=Z()|0;break Na}a=Z()|0;Rc(e)}if(H[d+139|0]>=0)break D;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;e=Qd(f,2382840);g=J[699344];J[699344]=0;if((g| +0)==1)break E;if(!c|e^1)break Ca;J[699344]=0;e=d+128|0;da(4971,e|0,a|0);g=J[699344];J[699344]=0;Qa:{if((g|0)!=1){J[699344]=0;ca(5022,c|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)==1)break Qa;if(H[d+139|0]>=0)break Ca;uc(J[d+128>>2]);break Ca}a=Z()|0;Rc(f);break b}a=Z()|0;if(H[d+139|0]>=0)break D;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;e=Mi(a);g=J[699344];J[699344]=0;if((g|0)==1)break E;if(!e)break ya;J[699344]=0;e=d+128|0;da(4970,e|0,a|0);g=J[699344];J[699344]=0;if((g|0)!=1){J[699344]=0;e=aa(4985, +d+48|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ba;J[699344]=0;dg(f,e);g=J[699344];J[699344]=0;if((g|0)==1)break Aa;Rc(e);if(H[d+139|0]>=0)continue;uc(J[d+128>>2]);continue}break}a=Z()|0;Rc(f);break b}a=Z()|0;break za}a=Z()|0;Rc(e)}if(H[d+139|0]>=0)break D;uc(J[d+128>>2]);Rc(f);break b}J[699344]=0;gj(a);c=J[699344];J[699344]=0;if((c|0)==1)break r;Rc(f)}J[699344]=0;f=_(4,64)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;m=O[d+32>>3];o=O[d+16>>3];p=O[d+88>>3];q=O[d+80>>3];s=O[d>>3];t=O[d+96>> +3];J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=2383660;O[f+56>>3]=t*25.4/96;O[f+48>>3]=s*25.4/96}O[f+40>>3]=q*25.4/96;O[f+32>>3]=p*25.4/96;O[f+24>>3]=o*25.4/96;O[f+16>>3]=m*25.4/96;J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[699344]=0;J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;c=Th(a);e=J[699344];J[699344]=0;if((e|0)==1)break v;if(c)break w;J[699344]=0;e=$g(a);c=J[699344];J[699344]=0;if((c|0)==1)break B;while(1){J[699344]=0;c=aa(4975,a|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break C;if(!c)break w; +J[699344]=0;da(4962,d|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break A;J[699344]=0;c=aa(4985,d+16|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break z;J[699344]=0;dg(k,c);g=J[699344];J[699344]=0;if((g|0)==1)break y;Rc(c);if(H[d+11|0]<0)uc(J[d>>2]);J[699344]=0;c=Qd(k,2383144);g=J[699344];J[699344]=0;if((g|0)==1)break C;if(!(c&h)){J[699344]=0;c=Qd(k,2383280);g=J[699344];J[699344]=0;if((g|0)==1)break C;if(h|c^1)continue}m=O[b>>3];J[699344]=0;O[d>>3]=l*m;ia(5108,a|0,d+128|0,d+32|0,d|0);c=J[699344]; +J[699344]=0;if((c|0)!=1)continue;break}a=Z()|0;break s}a=Z()|0}Rc(f);break b}a=Z()|0;break s}a=Z()|0;break s}a=Z()|0;break s}a=Z()|0;break x}a=Z()|0;Rc(c)}if(H[d+11|0]>=0)break s;uc(J[d>>2]);break s}e=J[d+32>>2];a=J[d+36>>2]-e>>3;j=J[d+128>>2];b=J[d+132>>2]-j>>2;b=a>>>0>>0?a:b;Ra:{Sa:{if((b|0)>0){J[699344]=0;h=_(27,b<<2)|0;a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;break s}J[699344]=0;g=_(27,b<<3)|0;a=J[699344];J[699344]=0;if((a|0)==1)break t;a=0;if((b|0)!=1){n=b&-2;c=0;while(1){i=a<<2;J[i+h>> +2]=J[j+i>>2];i=a<<3;O[i+g>>3]=O[e+i>>3];i=a|1;r=i<<2;J[h+r>>2]=J[j+r>>2];i=i<<3;O[i+g>>3]=O[e+i>>3];a=a+2|0;c=c+2|0;if((n|0)!=(c|0))continue;break}}if(b&1){c=a<<2;J[c+h>>2]=J[c+j>>2];a=a<<3;O[a+g>>3]=O[a+e>>3]}J[f+12>>2]=b;J[f+8>>2]=g;J[f+4>>2]=h;break Sa}kc[J[J[f>>2]+4>>2]](f);e=J[d+32>>2];if(!e)break Ra}J[d+36>>2]=e;uc(e)}a=J[d+128>>2];if(a){J[d+132>>2]=a;uc(a)}e=(b|0)>0?f:0;break u}a=Z()|0;break s}Rc(k);fc=d+176|0;return e|0}a=Z()|0}b=J[d+32>>2];if(b){J[d+36>>2]=b;uc(b)}b=J[d+128>>2];if(!b)break b; +J[d+132>>2]=b;uc(b);break b}a=Z()|0;Rc(f);break b}a=Z()|0;if(H[d+151|0]>=0)break b;uc(J[d+140>>2]);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;Rc(f);break b}a=Z()|0;if(H[d+151|0]>=0)break b;uc(J[d+140>>2]);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;Rc(b);break b}a=Z()|0;if(H[d+151|0]>=0)break b;uc(J[d+140>>2]);break b}a=Z()|0;break b}a=Z()|0;Rc(e);break b}a=Z()|0;if(H[d+151|0]>=0)break b;uc(J[d+140>>2]);break b}a=Z()|0;break b}a=Z()|0}Rc(k);break a}a=Z()|0;if(H[d+163|0]>= +0)break a;uc(J[d+152>>2]);ba(a|0);B()}ba(a|0);B()}function u7a(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;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;a:switch(a|0){case 0:j=c;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);m=J[b+12>>2];b:{c:{if(m){a=J[b+84>>2];J[b+1212>>2]=a;J[j+120>>2]=0;l=J[j+60>>2];break c}J[j+120>>2]=0;if(!J[j+60>>2])break b;a=J[b+84>>2];l=1}k=J[j+116>>2];o=J[j+112>>2];n=J[j+108>>2];p=J[j+104>>2];c=J[b+ +92>>2];h=J[b+88>>2];i=J[b+80>>2];d:{if(!(!m|!l)){a=(a|0)<(n|0)?a:n;i=(i|0)<(p|0)?i:p;c=(c|0)>(k|0)?c:k;h=(h|0)>(o|0)?h:o;break d}if(m)break d;c=k;h=o;a=n;i=p;if(!l)break b}if((h|0)<(i|0)|(a|0)>(c|0))break b;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){c=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(c)uc(c);c=(a|0)>0;a=a-1|0;if(c)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+ +40>>2]=0;a=J[f+20>>2];c=(h-i|0)+3|0;e:{if(c>>>0<=M[f+24>>2])break e;if(a)uc(a);J[f+24>>2]=c;a=vc(c>>>0>536870911?-1:c<<3);J[f+20>>2]=a;if((c|0)==J[f+12>>2])break e;h=J[f+8>>2];if(h){uc(h);a=J[f+20>>2]}J[f+12>>2]=c;s=f,t=vc(c),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];c=0;I[a+2>>1]=0;a=0;if(m){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;f:{if(h>>>0<=M[d+24>>2])break f;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break f;i=J[d+8>>2]; +if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=vc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=Xc(b,d)}if(l){c=J[e+20>>2];h=(J[j+112>>2]-J[j+104>>2]|0)+3|0;g:{if(h>>>0<=M[e+24>>2])break g;if(c)uc(c);J[e+24>>2]=h;c=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=c;if((h|0)==J[e+12>>2])break g;i=J[e+8>>2];if(i){uc(i);c=J[e+20>>2]}J[e+12>>2]=h;s=e,t=vc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=c;J[e+16>>2]=J[e+8>>2];I[c+2>>1]=0;c=$c(j,e)}if((a|c)!=1)break b;while(1){h=a&1; +h:{i:{if(!(!h|!(c&1))){a=J[d+4>>2];c=J[e+4>>2];if((a|0)==(c|0)){G4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(g,f)}a=Xc(b,d);break i}if((a|0)<(c|0)){Qf(d,f,g);a=Xc(b,d);h=1;break h}Qf(e,f,g);a=1;break i}a=0;if(h){Qf(d,f,g);a=Xc(b,d)}h=0;if(!(c&1))break h;Qf(e,f,g)}h=$c(j,e)}c=h;if(h|a)continue;break}}return;case 1:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);j:{if(!J[b+12>>2])break j;a=J[b+84>>2];J[b+1212>>2]=a;J[c+120>>2]=0;if(!J[c+ +60>>2])break j;h=J[b+88>>2];i=J[c+112>>2];h=(h|0)<(i|0)?h:i;i=J[b+80>>2];j=J[c+104>>2];i=(j|0)<(i|0)?i:j;if((h|0)<(i|0))break j;j=J[c+108>>2];l=(a|0)>(j|0)?a:j;a=J[b+92>>2];j=J[c+116>>2];if((l|0)>(((a|0)<(j|0)?a:j)|0))break j;a=J[f+20>>2];h=(h-i|0)+3|0;k:{if(h>>>0<=M[f+24>>2])break k;if(a)uc(a);J[f+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[f+20>>2]=a;if((h|0)==J[f+12>>2])break k;i=J[f+8>>2];if(i){uc(i);a=J[f+20>>2]}J[f+12>>2]=h;s=f,t=vc(h),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+ +8>>2];I[a+2>>1]=0;a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;l:{if(h>>>0<=M[d+24>>2])break l;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break l;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=vc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=J[e+20>>2];h=(J[c+112>>2]-J[c+104>>2]|0)+3|0;m:{if(h>>>0<=M[e+24>>2])break m;if(a)uc(a);J[e+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=a;if((h|0)==J[e+12>>2])break m; +i=J[e+8>>2];if(i){uc(i);a=J[e+20>>2]}J[e+12>>2]=h;s=e,t=vc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=a;J[e+16>>2]=J[e+8>>2];I[a+2>>1]=0;if(!Xc(b,d))break j;if(!$c(c,e))break j;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){h=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(h)uc(h);h=(a|0)>0;a=a-1|0;if(h)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;while(1){if(J[d+4>> +2]>2]){if(Xc(b,d))continue;break j}while(1){a=J[e+4>>2];h=J[d+4>>2];if((a|0)<(h|0)){if($c(c,e))continue;break j}break}if((a|0)!=(h|0))continue;F4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(g,f)}if(!Xc(b,d))break j;if($c(c,e))continue;break}}return;case 2:j=c;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);m=J[b+12>>2];n:{o:{if(m){a=J[b+84>>2];J[b+1212>>2]=a;J[j+120>>2]=0;l=J[j+60>>2];break o}J[j+120>>2]=0;if(!J[j+60>>2])break n; +a=J[b+84>>2];l=1}k=J[j+116>>2];o=J[j+112>>2];n=J[j+108>>2];p=J[j+104>>2];c=J[b+92>>2];h=J[b+88>>2];i=J[b+80>>2];p:{if(!(!m|!l)){a=(a|0)<(n|0)?a:n;i=(i|0)<(p|0)?i:p;c=(c|0)>(k|0)?c:k;h=(h|0)>(o|0)?h:o;break p}if(m)break p;c=k;h=o;a=n;i=p;if(!l)break n}if((h|0)<(i|0)|(a|0)>(c|0))break n;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){c=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(c)uc(c);c=(a|0)>0;a=a-1|0;if(c)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647; +J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;a=J[f+20>>2];c=(h-i|0)+3|0;q:{if(c>>>0<=M[f+24>>2])break q;if(a)uc(a);J[f+24>>2]=c;a=vc(c>>>0>536870911?-1:c<<3);J[f+20>>2]=a;if((c|0)==J[f+12>>2])break q;h=J[f+8>>2];if(h){uc(h);a=J[f+20>>2]}J[f+12>>2]=c;s=f,t=vc(c),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];c=0;I[a+2>>1]=0;a=0;if(m){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;r:{if(h>>>0<=M[d+24>>2])break r;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>> +0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break r;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=vc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=Xc(b,d)}if(l){c=J[e+20>>2];h=(J[j+112>>2]-J[j+104>>2]|0)+3|0;s:{if(h>>>0<=M[e+24>>2])break s;if(c)uc(c);J[e+24>>2]=h;c=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=c;if((h|0)==J[e+12>>2])break s;i=J[e+8>>2];if(i){uc(i);c=J[e+20>>2]}J[e+12>>2]=h;s=e,t=vc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=c;J[e+ +16>>2]=J[e+8>>2];I[c+2>>1]=0;c=$c(j,e)}if((a|c)!=1)break n;while(1){h=a&1;t:{u:{if(!(!h|!(c&1))){a=J[d+4>>2];c=J[e+4>>2];if((a|0)==(c|0)){E4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(g,f)}a=Xc(b,d);break u}if((a|0)<(c|0)){Qf(d,f,g);a=Xc(b,d);h=1;break t}Qf(e,f,g);a=1;break u}a=0;if(h){Qf(d,f,g);a=Xc(b,d)}h=0;if(!(c&1))break t;Qf(e,f,g)}h=$c(j,e)}c=h;if(h|a)continue;break}}return;case 3:j=c;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b); +m=J[b+12>>2];v:{w:{if(m){a=J[b+84>>2];J[b+1212>>2]=a;J[j+120>>2]=0;l=J[j+60>>2];break w}J[j+120>>2]=0;if(!J[j+60>>2])break v;a=J[b+84>>2];l=1}k=J[j+116>>2];o=J[j+112>>2];n=J[j+108>>2];p=J[j+104>>2];c=J[b+92>>2];h=J[b+88>>2];i=J[b+80>>2];x:{if(!(!m|!l)){a=(a|0)<(n|0)?a:n;i=(i|0)<(p|0)?i:p;c=(c|0)>(k|0)?c:k;h=(h|0)>(o|0)?h:o;break x}if(m)break x;c=k;h=o;a=n;i=p;if(!l)break v}if((h|0)<(i|0)|(a|0)>(c|0))break v;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){c=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)| +0)+4>>2];if(c)uc(c);c=(a|0)>0;a=a-1|0;if(c)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;a=J[f+20>>2];c=(h-i|0)+3|0;y:{if(c>>>0<=M[f+24>>2])break y;if(a)uc(a);J[f+24>>2]=c;a=vc(c>>>0>536870911?-1:c<<3);J[f+20>>2]=a;if((c|0)==J[f+12>>2])break y;h=J[f+8>>2];if(h){uc(h);a=J[f+20>>2]}J[f+12>>2]=c;s=f,t=vc(c),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];c=0; +I[a+2>>1]=0;a=0;if(m){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;z:{if(h>>>0<=M[d+24>>2])break z;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break z;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=vc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=Xc(b,d)}if(l){c=J[e+20>>2];h=(J[j+112>>2]-J[j+104>>2]|0)+3|0;A:{if(h>>>0<=M[e+24>>2])break A;if(c)uc(c);J[e+24>>2]=h;c=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=c;if((h| +0)==J[e+12>>2])break A;i=J[e+8>>2];if(i){uc(i);c=J[e+20>>2]}J[e+12>>2]=h;s=e,t=vc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=c;J[e+16>>2]=J[e+8>>2];I[c+2>>1]=0;c=$c(j,e)}if((a|c)!=1)break v;while(1){h=a&1;B:{C:{if(!(!h|!(c&1))){a=J[d+4>>2];c=J[e+4>>2];if((a|0)==(c|0)){D4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(g,f)}a=Xc(b,d);break C}if((a|0)<(c|0)){Qf(d,f,g);a=Xc(b,d);h=1;break B}Qf(e,f,g);a=1;break C}a=0;if(h){Qf(d,f,g);a=Xc(b,d)}h=0;if(!(c&1))break B;Qf(e,f,g)}h=$c(j,e)}c=h;if(h| +a)continue;break}}return;case 4:j=c;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);m=J[b+12>>2];D:{E:{if(m){a=J[b+84>>2];J[b+1212>>2]=a;J[j+120>>2]=0;l=J[j+60>>2];break E}J[j+120>>2]=0;if(!J[j+60>>2])break D;a=J[b+84>>2];l=1}k=J[j+116>>2];o=J[j+112>>2];n=J[j+108>>2];p=J[j+104>>2];c=J[b+92>>2];h=J[b+88>>2];i=J[b+80>>2];F:{if(!(!m|!l)){a=(a|0)<(n|0)?a:n;i=(i|0)<(p|0)?i:p;c=(c|0)>(k|0)?c:k;h=(h|0)>(o|0)?h:o;break F}if(m)break F;c=k;h=o;a=n;i=p;if(!l)break D}if((h| +0)<(i|0)|(a|0)>(c|0))break D;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){c=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(c)uc(c);c=(a|0)>0;a=a-1|0;if(c)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;a=J[f+20>>2];c=(h-i|0)+3|0;G:{if(c>>>0<=M[f+24>>2])break G;if(a)uc(a);J[f+24>>2]=c;a=vc(c>>>0>536870911?-1:c<<3);J[f+20>>2]=a;if((c|0)==J[f+12>>2])break G;h=J[f+8>>2]; +if(h){uc(h);a=J[f+20>>2]}J[f+12>>2]=c;s=f,t=vc(c),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];c=0;I[a+2>>1]=0;a=0;if(m){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;H:{if(h>>>0<=M[d+24>>2])break H;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break H;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=vc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=Xc(b,d)}if(l){c=J[e+20>>2];h=(J[j+112>>2]-J[j+ +104>>2]|0)+3|0;I:{if(h>>>0<=M[e+24>>2])break I;if(c)uc(c);J[e+24>>2]=h;c=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=c;if((h|0)==J[e+12>>2])break I;i=J[e+8>>2];if(i){uc(i);c=J[e+20>>2]}J[e+12>>2]=h;s=e,t=vc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=c;J[e+16>>2]=J[e+8>>2];I[c+2>>1]=0;c=$c(j,e)}if((a|c)!=1)break D;while(1){h=a&1;J:{K:{if(!(!h|!(c&1))){a=J[d+4>>2];c=J[e+4>>2];if((a|0)==(c|0)){C4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(g,f)}a=Xc(b,d);break K}if((a|0)<(c|0)){Qf(d,f,g);a= +Xc(b,d);h=1;break J}Qf(e,f,g);a=1;break K}a=0;if(h){Qf(d,f,g);a=Xc(b,d)}h=0;if(!(c&1))break J;Qf(e,f,g)}h=$c(j,e)}c=h;if(h|a)continue;break}}return;case 5:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);L:{if(!J[b+12>>2])break L;J[b+1212>>2]=J[b+84>>2];J[c+120>>2]=0;j=J[c+60>>2];a=J[f+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;M:{if(h>>>0<=M[f+24>>2])break M;if(a)uc(a);J[f+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[f+20>>2]=a;if((h|0)==J[f+12>>2])break M; +l=J[f+8>>2];if(l){uc(l);a=J[f+20>>2]}J[f+12>>2]=h;s=f,t=vc(h),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];I[a+2>>1]=0;a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;N:{if(h>>>0<=M[d+24>>2])break N;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break N;l=J[d+8>>2];if(l){uc(l);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=vc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=J[e+20>>2];h=(J[c+112>>2]-J[c+104>>2]|0)+3|0;O:{if(h>>> +0<=M[e+24>>2])break O;if(a)uc(a);J[e+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=a;if((h|0)==J[e+12>>2])break O;l=J[e+8>>2];if(l){uc(l);a=J[e+20>>2]}J[e+12>>2]=h;s=e,t=vc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=a;J[e+16>>2]=J[e+8>>2];I[a+2>>1]=0;if(!Xc(b,d))break L;if(j)i=$c(c,e);a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){h=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(h)uc(h);h=(a|0)>0;a=a-1|0;if(h)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]= +-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>>2]=0;while(1){a=0;P:{Q:{if(!(i&1))break Q;R:{while(1){h=J[e+4>>2];i=J[d+4>>2];if((h|0)<(i|0)){j=2147483632;J[e>>2]=2147483632;n=J[e+8>>2];J[e+16>>2]=n;h=J[e+20>>2];J[e+28>>2]=h;I[h+2>>1]=0;a=J[c+120>>2];while(1){l=a;r=J[c+60>>2];if(r>>>0<=a>>>0)break R;p=J[J[c+72>>2]+(a>>>6&67108860)>>2]+P(a&255,12)|0;i=J[p+8>>2];m=J[p+4>>2];while(1){q=J[J[c+52>>2]+(i>>>8&16777212)>>2]+P(i&1023,12)|0;k=J[q+8>>2];S:{if((k|0)>= +0){a=0;if(k>>>0>=M[c>>2])break S;a=J[J[c+12>>2]+(k>>>10&4194300)>>2]+(k&4095)|0;break S}k=k^-1;a=0;if(k>>>0>=M[c+20>>2])break S;a=J[(J[J[c+32>>2]+(k>>>4&268435452)>>2]+((k&63)<<3)|0)+4>>2]}o=J[q>>2];i=i+1|0;k=J[q+4>>2];T:{if((k|0)<0){a=K[a|0];U:{V:{if((o|0)!=(j+1|0))break V;j=I[h+2>>1];if((a|0)!=K[J[h+4>>2]]|(j|0)>=0)break V;I[h+2>>1]=j+k;break U}H[n|0]=a;a=J[e+28>>2];h=a+8|0;J[e+28>>2]=h;j=J[e+16>>2];n=j+1|0;J[e+16>>2]=n;I[a+10>>1]=k;I[a+8>>1]=o;J[a+12>>2]=j}j=o+(k^-1)|0;break T}xc(n,a,k);a=J[e+ +28>>2];W:{X:{if((o|0)!=(J[e>>2]+1|0))break X;h=I[a+2>>1];if((h|0)<=0)break X;I[a+2>>1]=h+k;j=J[e+16>>2];h=a;break W}h=a+8|0;J[e+28>>2]=h;j=J[e+16>>2];I[a+10>>1]=k;I[a+8>>1]=o;J[a+12>>2]=j}n=j+k|0;J[e+16>>2]=n;j=(k+o|0)-1|0}J[e>>2]=j;m=m-1|0;if(m)continue;break}a=J[c+120>>2]+1|0;J[c+120>>2]=a;if(J[e+20>>2]==(h|0))continue;break}J[e+4>>2]=J[p>>2];if(l>>>0>>0)continue;break R}break}a=1;if((h|0)!=(i|0))break Q;fM(d,e,f);i=1;if(J[f+28>>2]==J[f+20>>2])break P;J[f+4>>2]=J[d+4>>2];Zj(g,f);break P}a=0}i= +a;Qf(d,f,g)}if(Xc(b,d))continue;break}}return;case 6:J[c+120>>2]=0;Y:{if(!J[c+60>>2])break Y;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);i=J[b+12>>2];if(i)J[b+1212>>2]=J[b+84>>2];a=J[f+20>>2];h=(J[c+112>>2]-J[c+104>>2]|0)+3|0;Z:{if(h>>>0<=M[f+24>>2])break Z;if(a)uc(a);J[f+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[f+20>>2]=a;if((h|0)==J[f+12>>2])break Z;j=J[f+8>>2];if(j){uc(j);a=J[f+20>>2]}J[f+12>>2]=h;s=f,t=vc(h),J[s+8>>2]=t}J[f>>2]=2147483632;J[f+ +28>>2]=a;J[f+16>>2]=J[f+8>>2];I[a+2>>1]=0;a=J[e+20>>2];h=(J[c+112>>2]-J[c+104>>2]|0)+3|0;_:{if(h>>>0<=M[e+24>>2])break _;if(a)uc(a);J[e+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=a;if((h|0)==J[e+12>>2])break _;j=J[e+8>>2];if(j){uc(j);a=J[e+20>>2]}J[e+12>>2]=h;s=e,t=vc(h),J[s+8>>2]=t}J[e>>2]=2147483632;J[e+28>>2]=a;J[e+16>>2]=J[e+8>>2];I[a+2>>1]=0;a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;$:{if(h>>>0<=M[d+24>>2])break $;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h| +0)==J[d+12>>2])break $;j=J[d+8>>2];if(j){uc(j);a=J[d+20>>2]}J[d+12>>2]=h;s=d,t=vc(h),J[s+8>>2]=t}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];h=0;I[a+2>>1]=0;if(!$c(c,e))break Y;if(i)h=Xc(b,d);a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){i=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(i)uc(i);i=(a|0)>0;a=a-1|0;if(i)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+40>> +2]=0;while(1){a=h&1;h=0;aa:{ba:{if(!a)break ba;while(1){a=J[d+4>>2];i=J[e+4>>2];if((a|0)<(i|0)){if(Xc(b,d))continue;break ba}break}h=1;if((a|0)!=(i|0))break ba;fM(e,d,f);if(J[f+28>>2]==J[f+20>>2])break aa;J[f+4>>2]=J[e+4>>2];Zj(g,f);break aa}Qf(e,f,g)}if($c(c,e))continue;break}}break;default:break a}}function Hqb(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0;if(J[a+20>> +2])a=0;else a:{n=J[a+16>>2];f=f>>>0<=2?J[(f<<2)+231692>>2]:0;a=0;n=J[J[n+16>>2]+40>>2];if(!n)break a;A=f;q=b;F=(d|0)!=0;C=e;g=fc-256|0;fc=g;b=J[n>>2];b:{if(!b)break b;b=J[b+28>>2];if(!b)break b;y=J[b+132>>2];if(!y)break b;a=Dc(1E3);H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;J[699344]=0;J[g+252>>2]=0;J[g+244>>2]=0;J[g+248>>2]=0;D=J[J[y+32>>2]+8>>2];b=J[699344];J[699344]=0;c:{d:{if((b|0)!=1){d=4;if((D|0)<=0)break c;j=a+4|0;G=c+1|0;h=1E3;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{while(1){B:{J[699344]= +0;u=J[J[J[y+32>>2]>>2]+(t<<2)>>2];b=J[699344];J[699344]=0;C:{D:{E:{if((b|0)==1)break E;J[699344]=0;b=_(3498,u|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break E;if(!((t|0)==(C|0)|(C|0)<0)|(J[u+40>>2]|(b|0)!=(G|0)))break C;J[699344]=0;J[g+224>>2]=13;b=g+224|0;c=ga(3490,u|0,851508,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){if(J[c>>2]==7)break D;J[699344]=0;$(3370,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break C}h=Z()|0;break d}h=Z()|0;break d}J[699344]=0;s=_(4,12)|0;b=J[699344];J[699344]=0;if((b|0)== +1)break z;J[s+8>>2]=851628;J[s+4>>2]=2181710;J[s>>2]=851561;p=0;n=-1;c=1;v=0;while(1){e=J[(v<<2)+s>>2];F:{if(A)if(Ic(A,e))break F;G:{H:{I:{b=Yc(e);if(b>>>0>=2147483632){J[699344]=0;$(3030,g+212|0);b=J[699344];J[699344]=0;if((b|0)==1)break I;break e}J:{K:{if(b>>>0<=10){H[g+223|0]=b;i=g+212|0;break K}J[699344]=0;f=(b|15)+1|0;i=_(4,f|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break J;J[g+212>>2]=i;J[g+216>>2]=b;J[g+220>>2]=f|-2147483648}N=cd(i,e,b)+b|0,O=0,H[N|0]=O;J[699344]=0;J[g+192>>2]=13;b=g+192|0; +e=ha(3368,J[g+232>>2],(H[g+223|0]<0?J[g+212>>2]:g+212|0)|0,b|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){if(J[e>>2]==8)break H;J[699344]=0;$(3370,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break G}h=Z()|0;b=a;break g}h=Z()|0;break f}h=Z()|0;break f}L:{if(!(c&1)){b=a;break L}J[699344]=0;J[g+176>>2]=13;aa(3488,u|0,g+176|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=a;break h}c=J[g+184>>2];M:{if(!a){h=1E3;d=0;j=Dc(1E3);b=j;break M}b=d+4|0;if(b>>>0<=h>>>0){b=a;break M}while(1){h=h<<1;if(b>>>0>h>>>0)continue; +break}b=fe(a,h);if(!b){b=Dc(h);xc(b,a,d);uc(a)}j=b+d|0}H[j|0]=c;H[j+1|0]=c>>>8;H[j+2|0]=c>>>16;H[j+3|0]=c>>>24;J[699344]=0;$(3370,g+176|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;n=d+4|0;N:{if(!b){h=1E3;e=Dc(1E3);b=e;a=0;break N}a=d+8|0;if(a>>>0<=h>>>0){e=j+4|0;a=n;break N}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}a=fe(b,h);if(a){e=a+n|0;b=a;a=n;break N}a=xc(Dc(h),b,n);uc(b);e=a+n|0;b=a;a=n}H[e|0]=p;H[e+1|0]=p>>>8;H[e+2|0]=p>>>16;H[e+3|0]=p>>>24;d=a+4|0;j=e+4|0}J[g+176>>2]=13;J[g+160>>2]= +13;J[g+144>>2]=13;a=J[g+200>>2];c=J[J[a>>2]+76>>2];J[699344]=0;a=_(c|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;J[699344]=0;a=ha(3368,a|0,785256,g+176|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;O:{P:{Q:{if(J[a>>2]!=7)break Q;J[699344]=0;a=ha(3368,J[g+184>>2],779801,g+160|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;if(J[a>>2]!=7)break Q;a=J[g+168>>2];if(J[a+16>>2]!=1)break Q;J[699344]=0;a=ga(3497,a|0,0,g+144|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;if(J[a>>2]==8)break P}J[699344]= +0;$(3370,g+192|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;$(3370,g+176|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;$(3370,g+160|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;$(3370,g+144|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;a=b;break O}J[699344]=0;$(3370,g+192|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;$(3370,g+176|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;a=J[g+152>>2];c=J[J[a>>2]+76>>2];J[699344]=0;i=_(c|0,a|0)|0;a=J[699344]; +J[699344]=0;R:{if((a|0)!=1){J[g+128>>2]=13;J[699344]=0;J[g+112>>2]=13;a=ha(3368,i|0,844567,g+128|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;S:{if(J[a>>2]!=4)break S;if(Ic(J[a+8>>2],779801))break S;J[699344]=0;a=ha(3368,i|0,851676,g+112|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;if(J[a>>2]!=4)break S;if(!Ic(J[a+8>>2],851739))break R}J[699344]=0;$(3370,g+128|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;$(3370,g+112|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]= +0;$(3370,g+160|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;$(3370,g+144|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;a=b;break O}h=Z()|0;break g}J[699344]=0;$(3370,g+128|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;$(3370,g+112|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;a=K[g+223|0];c=a<<24>>24<0;f=c?J[g+212>>2]:g+212|0;a=c?J[g+216>>2]:a;e=a+4|0;T:{if(!b){d=0;h=e>>>0<=1E3?1E3:e;j=Dc(h);c=j;break T}c=d+e|0;if(c>>>0<=h>>>0){c=b;break T}while(1){h=h<<1;if(c>>>0>h>>> +0)continue;break}c=fe(b,h);if(!c){c=Dc(h);xc(c,b,d);uc(b)}j=c+d|0}H[j|0]=a;H[j+1|0]=a>>>8;H[j+2|0]=a>>>16;H[j+3|0]=a>>>24;b=xc(j+4|0,f,a);J[699344]=0;J[g+96>>2]=13;ga(3487,J[g+168>>2],0,g+96|0)|0;f=J[699344];J[699344]=0;U:{V:{if((f|0)!=1){l=J[g+104>>2];W:{if(!c){h=1E3;d=0;e=Dc(1E3);c=e;break W}d=d+e|0;e=d+4|0;if(e>>>0<=h>>>0){e=a+b|0;break W}while(1){h=h<<1;if(e>>>0>h>>>0)continue;break}a=fe(c,h);if(a){e=a+d|0;c=a;break W}a=xc(Dc(h),c,d);uc(c);e=a+d|0;c=a}H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=l>>>16;H[e+ +3|0]=l>>>24;J[699344]=0;$(3370,g+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;J[699344]=0;$(3370,g+160|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;j=d+4|0;f=e+4|0;a=J[g+244>>2];e=a;X:{b=J[g+248>>2];o=(a|0)==(b|0);if(o)break X;while(1){if((l|0)==J[e>>2])break X;e=e+4|0;if((e|0)!=(b|0))continue;break}break V}if((b|0)==(e|0))break V;J[699344]=0;$(3370,g+144|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;Y:{if(!c){h=1E3;j=0;f=Dc(1E3);a=f;break Y}a=d+5|0;if(a>>>0<=h>>>0){a=c;break Y}while(1){h= +h<<1;if(a>>>0>h>>>0)continue;break}a=fe(c,h);if(!a){a=Dc(h);xc(a,c,j);uc(c)}f=a+j|0}H[f|0]=0;d=j+1|0;j=f+1|0;break U}h=Z()|0;break k}Z:{if(J[g+252>>2]!=(b|0)){J[b>>2]=l;J[g+248>>2]=b+4;break Z}_:{$:{e=b-a|0;r=e>>2;k=r+1|0;aa:{if(k>>>0>=1073741824){J[699344]=0;$(1589,g+244|0);break aa}m=e>>1;k=e>>>0>=2147483644?1073741823:k>>>0>>0?m:k;if(!k){m=0;break _}if(k>>>0<1073741824)break $;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break e;h=Z()|0;break k}J[699344]=0;m=_(4,k<<2)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break l}e=(r<<2)+m|0;J[e>>2]=l;l=e+4|0;if(!o)while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((a|0)!=(b|0))continue;break}J[g+252>>2]=(k<<2)+m;J[g+248>>2]=l;J[g+244>>2]=e;if(!a)break Z;uc(a)}ba:{if(!c){h=1E3;j=0;f=Dc(1E3);d=f;break ba}a=d+5|0;if(a>>>0<=h>>>0){d=c;break ba}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}d=fe(c,h);if(!d){d=Dc(h);xc(d,c,j);uc(c)}f=d+j|0}H[f|0]=1;J[g+80>>2]=13;J[699344]=0;J[g+64>>2]=13;a=ha(3368,i|0,851886,g+80|0,0)|0;b=J[699344];J[699344]=0;if((b|0)== +1)break m;c=0;l=0;ca:{if(J[a>>2]!=1)break ca;J[699344]=0;a=ha(3368,i|0,851969,g- -64|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;l=0;if(J[a>>2]!=1)break ca;c=J[g+88>>2];l=J[g+72>>2]}da:{ea:{fa:{ga:{if(!d){h=1E3;e=0;b=Dc(1E3);a=b;break ga}ha:{m=j+5|0;if(m>>>0>h>>>0){e=j+1|0;while(1){h=h<<1;if(m>>>0>h>>>0)continue;break}a=fe(d,h);if(!a)break ha;d=a;b=a+e|0;H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;break fa}b=f+1|0;H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;break fa}a= +Dc(h);b=xc(a,d,e);uc(d);b=b+e|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;if(!a)break ea;m=e+4|0;d=a}a=m+4|0;if(a>>>0<=h>>>0){e=b+4|0;break da}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}a=fe(d,h);if(a){e=a+m|0;d=a;break da}a=xc(Dc(h),d,m);uc(d);e=a+m|0;d=a;break da}h=1E3;m=0;e=Dc(1E3);d=e}H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=l>>>16;H[e+3|0]=l>>>24;J[699344]=0;$(3370,g+80|0);a=J[699344];J[699344]=0;if((a|0)==1)break m;J[699344]=0;$(3370,g- -64|0);a=J[699344];J[699344]=0;if((a|0)==1)break m; +j=m+4|0;k=e+4|0;ia:{ja:{ka:{la:{ma:{if(F){J[699344]=0;J[g+48>>2]=13;a=g+48|0;b=ha(3368,i|0,852069,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;c=J[b>>2];J[699344]=0;e=J[g+56>>2];$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break o;J[699344]=0;b=ha(3368,i|0,852133,a|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break o;f=J[b>>2];J[699344]=0;l=J[g+56>>2];$(3370,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break o;a=J[g+152>>2];b=J[J[a>>2]+72>>2];J[699344]=0;a=_(b|0,a|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break ma;b=J[J[a>>2]+20>>2];J[699344]=0;$(b|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break ma;b=pm(a,2344772,2344876);i=J[J[a>>2]+12>>2];J[699344]=0;i=_(i|0,a|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break p;c=(f|0)==1?l:(c|0)==1?e:0;l=!b|(i|0)!=10;na:{if(!l){a=J[b+40>>2];b=J[b+36>>2]==(a+c|0);c=b?c:0;f=b?a:0;break na}J[699344]=0;f=_(27,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break p;i=0;e=f;if((c|0)<=0)break na;while(1){b=J[J[a>>2]+28>>2];J[699344]=0;b=_(b|0,a|0)|0;m=J[699344]; +J[699344]=0;if((m|0)==1)break la;H[e|0]=b;e=e+1|0;i=i+1|0;if((i|0)!=(c|0))continue;break}}J[g+24>>2]=0;J[699344]=0;J[g+12>>2]=0;na(3728,f|0,c|0,g+24|0,g+12|0,2)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ka;b=J[g+12>>2];c=b+4|0;e=J[g+24>>2];oa:{if(!d){j=0;h=c>>>0<=1E3?1E3:c;k=Dc(h);a=k;break oa}a=c+j|0;if(a>>>0<=h>>>0){a=d;break oa}while(1){h=h<<1;if(a>>>0>h>>>0)continue;break}a=fe(d,h);if(!a){a=Dc(h);xc(a,d,j);uc(d)}k=a+j|0}H[k|0]=b;H[k+1|0]=b>>>8;H[k+2|0]=b>>>16;H[k+3|0]=b>>>24;e=xc(k+4|0,e,b); +if(!(!l|!f))uc(f);d=J[g+24>>2];if(d)uc(d);d=c+j|0;j=b+e|0;break U}J[699344]=0;a=P(c,l);f=_(27,a<<2)|0;b=J[699344];J[699344]=0;pa:{qa:{ra:{if((b|0)!=1){sa:{if(!a)break sa;e=f;if(a>>>0>=8){o=a&-8;b=0;while(1){J[e+28>>2]=q;J[e+24>>2]=q;J[e+20>>2]=q;J[e+16>>2]=q;J[e+12>>2]=q;J[e+8>>2]=q;J[e+4>>2]=q;J[e>>2]=q;e=e+32|0;b=b+8|0;if((o|0)!=(b|0))continue;break}}b=0;a=a&7;if(!a)break sa;while(1){J[e>>2]=q;e=e+4|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}J[g+44>>2]=0;J[g+40>>2]=0;a=J[g+152>>2];b=J[J[a>>2]+84>> +2];J[699344]=0;ca(b|0,a|0,g+44|0,g+40|0);a=J[699344];J[699344]=0;if((a|0)==1)break ra;if(J[g+44>>2])break pa;J[699344]=0;J[g+48>>2]=13;a=g+48|0;b=ha(3368,i|0,852252,a|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break q;if(J[b>>2]!=5)break qa;J[699344]=0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break q;J[699344]=0;ha(3368,i|0,852404,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break qa;break q}h=Z()|0;break n}h=Z()|0;break n}J[699344]=0;J[g+44>>2]=J[g+48>>2]!=1?8:J[g+56>>2];$(3370,g+48|0);a= +J[699344];J[699344]=0;if((a|0)==1)break q}J[699344]=0;J[g+48>>2]=13;a=g+48|0;b=ha(3368,i|0,852520,a|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break r;if(J[b>>2]==5){J[699344]=0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break r;J[699344]=0;ha(3368,i|0,852644,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break r}ta:{if(J[g+48>>2]!=5){J[699344]=0;e=aa(3729,g+48|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break r;break ta}e=0;a=J[g+40>>2]-1|0;if(a>>>0>2)break ta;J[699344]=0;e=_(3730,a<<1)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break r}J[699344]=0;$(3370,g+48|0);a=J[699344];J[699344]=0;if((a|0)==1)break r;J[699344]=0;J[g+24>>2]=13;a=g+24|0;b=ha(3368,i|0,853734,a|0,0)|0;o=J[699344];J[699344]=0;ua:{va:{if((o|0)==1)break va;if(J[b>>2]!=5)break ua;J[699344]=0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break va;J[699344]=0;ha(3368,i|0,788457,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break ua}h=Z()|0;break n}J[699344]=0;b=_(4,800)|0;a=J[699344];J[699344]=0;if((a|0)==1)break s;J[699344]=0;i=g+24| +0;a=na(3436,b|0,J[g+44>>2],i|0,e|0,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break t;J[699344]=0;$(3370,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break s;J[699344]=0;b=_(4,36)|0;e=J[699344];J[699344]=0;if((e|0)==1)break u;e=J[a+4>>2];i=J[a+8>>2];J[699344]=0;o=na(3426,b|0,J[g+152>>2],c|0,i|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break v;J[699344]=0;$(3427,o|0);b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;r=J[o+8>>2];b=J[699344];J[699344]=0;if((b|0)==1)break w;J[699344]=0;b=J[o+16>>2]; +e=J[699344];J[699344]=0;if((e|0)==1)break x;J[699344]=0;e=_(3432,a|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break y;b=(b|0)/(r|0)|0;if((l|0)>0){w=(b|0)<(c|0)?b:c;E=c<<2;x=0;I=e-1|0;while(1){J[699344]=0;b=_(3428,o|0)|0;c=J[699344];J[699344]=0;wa:{xa:{ya:{if((c|0)!=1){e=f+P(x,E)|0;if(!b)break xa;if((w|0)<=0)break wa;i=0;za:switch(I|0){case 1:z=J[a+28>>2];L=J[a+24>>2];M=J[a+20>>2];c=0;while(1){i=J[(K[b|0]<<2)+M>>2];i=(i|0)>=65536?65536:i;H[e|0]=P((i|0)>0?i:0,255)+32768>>>16;i=J[(K[b+1|0]<<2)+L>>2];i= +(i|0)>=65536?65536:i;H[e+1|0]=P((i|0)>0?i:0,255)+32768>>>16;i=J[z+(K[b+2|0]<<2)>>2];H[e+3|0]=255;i=(i|0)>=65536?65536:i;H[e+2|0]=P((i|0)>0?i:0,255)+32768>>>16;e=e+4|0;b=b+r|0;c=c+1|0;if((w|0)!=(c|0))continue;break}break wa;case 0:break za;default:break ya}z=J[a+20>>2];c=0;while(1){i=J[z+(K[b|0]<<2)>>2];H[e+3|0]=255;i=(i|0)>=65536?65536:i;i=P((i|0)>0?i:0,255)+32768>>>16|0;H[e+1|0]=i;H[e+2|0]=i;H[e|0]=i;e=e+4|0;b=b+r|0;c=c+1|0;if((w|0)!=(c|0))continue;break}break wa}h=Z()|0;break n}while(1){Aa:{J[699344]= +0;ia(3433,a|0,b|0,g+12|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break Aa;H[e|0]=P(J[g+12>>2],255)+32768>>>16;H[e+1|0]=P(J[g+16>>2],255)+32768>>>16;H[e+2|0]=P(J[g+20>>2],255)+32768>>>16;H[e+3|0]=255;e=e+4|0;b=b+r|0;i=i+1|0;if((w|0)!=(i|0))continue;break wa}break}h=Z()|0;break n}Ac(e,0,E)}x=x+1|0;if((l|0)!=(x|0))continue;break}}uc(zl(a));Ba:{Ca:{if(!d){h=1E3;j=0;k=Dc(1E3);a=k;break Ca}b=m+8|0;if(h>>>0>=b>>>0){a=d;H[k|0]=f;H[k+1|0]=f>>>8;H[k+2|0]=f>>>16;H[k+3|0]=f>>>24;break Ba}while(1){h=h<<1;if(h>>> +0>>0)continue;break}a=fe(d,h);if(a){k=a+j|0;H[k|0]=f;H[k+1|0]=f>>>8;H[k+2|0]=f>>>16;H[k+3|0]=f>>>24;break Ba}a=Dc(h);b=xc(a,d,j);uc(d);k=b+j|0}H[k|0]=f;H[k+1|0]=f>>>8;H[k+2|0]=f>>>16;H[k+3|0]=f>>>24;if(!a)break ja;b=j+4|0}c=b+4|0;if(c>>>0<=h>>>0){e=k+4|0;break ia}while(1){h=h<<1;if(c>>>0>h>>>0)continue;break}c=fe(a,h);if(c){e=b+c|0;a=c;break ia}c=xc(Dc(h),a,b);uc(a);e=b+c|0;a=c;break ia}h=Z()|0;break n}h=Z()|0;break n}h=Z()|0;break n}h=1E3;b=0;e=Dc(1E3);a=e}H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3| +0]=0;J[699344]=0;$(3370,g+144|0);c=J[699344];J[699344]=0;if((c|0)==1)break B;d=b+4|0;j=e+4|0}p=p+1|0}c=0}if(H[g+223|0]>=0)break F;uc(J[g+212>>2])}b=v>>>0<2;v=v+1|0;if(b)continue;break}J[699344]=0;$(3370,g+224|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;if(!((n|0)<=0|d>>>0<=n>>>0)){b=a+n|0;H[b|0]=p;H[b+1|0]=p>>>8;H[b+2|0]=p>>>16;H[b+3|0]=p>>>24}uc(s)}t=t+1|0;if((D|0)!=(t|0))continue;break c}break}h=Z()|0;d=a;break n}h=Z()|0;break f}h=Z()|0;break d}h=Z()|0;break n}h=Z()|0;break n}h=Z()|0;break n}h= +Z()|0;uc(b);break n}h=Z()|0;break n}h=Z()|0;uc(b);break n}h=Z()|0;break n}h=Z()|0;break n}h=Z()|0;break n}h=Z()|0;break n}h=Z()|0}c=d;break k}c=d;h=Z()|0;break k}h=Z()|0}b=c;break g}h=Z()|0;break g}h=Z()|0;break g}h=Z()|0}if(H[g+223|0]<0)uc(J[g+212>>2]);a=b}uc(s);break d}B()}h=Z()|0}b=J[g+244>>2];if(b){J[g+248>>2]=b;uc(b)}if(a)uc(a);ba(h|0);B()}H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;b=J[g+244>>2];if(!b)break b;uc(b)}fc=g+256|0}return a|0}function jA(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,u=0,v=0,w=0,x=0,y=Q(0);k=fc-96|0;fc=k;j=O[e>>3];O[k+72>>3]=j;n=O[f>>3];O[k+64>>3]=n;O[k+56>>3]=j+1;O[k+48>>3]=n;ce(J[a+184>>2],k+72|0,k- -64|0);ce(J[a+184>>2],k+56|0,k+48|0);l=O[k+64>>3];p=O[k+48>>3];n=l-p;j=O[k+72>>3];r=j;s=O[k+56>>3];q=j-s;t=R(q);if(!(t<.001)){u=n/q;r=l-u*j}n=Y(q*q+n*n);q=n==0?1:n;x=a+32|0;a:{b:{e=J[a+124>>2];if(e){f=t<.001;i=K[a+112|0];c:{if(!(i?f:0)){if(!(R(r-O[a+88>>3])<.001)|(!(R(u-O[a+80>>3])<.001)|(f|i)))break c;break b}if(R(r-O[a+88>> +3])<.001)break b}qH(a);l=O[k+64>>3];j=O[k+72>>3];e=J[a+124>>2];if(e)break b;s=O[k+56>>3];p=O[k+48>>3]}O[a+88>>3]=r;O[a+80>>3]=u;H[a+112|0]=t<.001;O[a+56>>3]=l;O[a+48>>3]=j;O[a+72>>3]=l;O[a- -64>>3]=j;O[a+104>>3]=(p-l)/q;O[a+96>>3]=(s-j)/q;n=0;break a}n=0;d:{e:{p=j-O[a- -64>>3];if(!(p*O[a+96>>3]>=0))break e;s=l-O[a+72>>3];if(!(s*O[a+104>>3]>=0))break e;n=Y(p*p+s*s);f=(J[a+116>>2]+(e<<5)|0)-16|0;if(!(n>O[f>>3]+.5))break d;e=TU(x);j=O[f>>3];O[e+8>>3]=j;J[e>>2]=65535;J[e+4>>2]=65535;O[e+16>>3]=n-j;j= +O[f>>3];m=J[a+220>>2];i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=vc(1E3);J[a+192>>2]=i;e=1E3}f=J[a+200>>2];m=m+f|0;f:{if(e>>>0>m>>>0){e=i;break f}while(1){e=e<<1;if(m>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);f=xc(e,i,f);uc(i);J[a+192>>2]=f;f=J[a+200>>2]}n=n-j;H[e+f|0]=0;J[a+200>>2]=J[a+200>>2]+J[a+220>>2];l=O[k+64>>3];j=O[k+72>>3];break d}qH(a);H[a+112|0]=t<.001;j=O[k+72>>3];O[a+48>>3]=j;l=O[k+64>>3];O[a+88>>3]=r;O[a+80>>3]=u;O[a+56>>3]=l;O[a+96>>3]=(O[k+56>>3]-j)/q;O[a+104>>3]= +(O[k+48>>3]-l)/q}O[a+72>>3]=l;O[a+64>>3]=j}f=J[a+184>>2];i=J[a+188>>2];J[k+80>>2]=-755914244;J[k+84>>2]=1062232653;v=1;e=5;w=J4(i,f,k+80|0,1);m=w^1|g;o=J[a+220>>2];f=J[a+172>>2];g=J[a+180>>2];if(J[f+12>>2]==J[g+12>>2]){v=J[f+20>>2]!=J[g+20>>2];e=v?5:0}g=w?e:e+17|0;g=m?g+13|0:g;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}i=J[a+200>>2];o=o+i|0;g:{if(e>>>0>o>>>0){e=f;break g}while(1){e=e<<1;if(o>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);i=xc(e,f,i);uc(f); +J[a+192>>2]=i;i=J[a+200>>2]}H[e+i|0]=g;J[a+200>>2]=J[a+200>>2]+J[a+220>>2];l=O[h+912>>3];e=J[J[a+184>>2]>>2];r=O[e>>3];u=O[e+8>>3];j=Y(r*r+u*u);t=O[e+16>>3];p=O[e+24>>3];s=Y(t*t+p*p);j=j10)&(!(l>10)|!(j<.1)))){p=p/j;t=t/j;u=u/j;r=r/j;l=l*j}if(m){g=J[a+220>>2];f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}i=J[a+200>>2];g=g+i|0;h:{if(e>>>0>g>>>0){e=f;break h}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,f,i);uc(f); +J[a+192>>2]=g;i=J[a+200>>2]}H[e+i|0]=41;i=J[a+200>>2]+J[a+220>>2]|0;J[a+200>>2]=i;g=J[h+904>>2];o=J[a+216>>2]+i|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}i:{if(o>>>0>>0){e=f;break i}while(1){e=e<<1;if(o>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);i=xc(e,f,i);uc(f);J[a+192>>2]=i;i=J[a+200>>2]}e=e+i|0;H[e|0]=g;H[e+1|0]=g>>>8;H[e+2|0]=g>>>16;H[e+3|0]=g>>>24;i=J[a+200>>2]+4|0;J[a+200>>2]=i;e=J[h+824>>2];f=J[e+40>>2]!=0;f=(J[e+44>>2]?f|2:f)|K[e+48|0]<< +2|K[e+49|0]<<7;g=J[a+216>>2]+i|0;h=J[a+192>>2];if(h)e=J[a+204>>2];else{J[a+204>>2]=1E3;h=vc(1E3);J[a+192>>2]=h;e=1E3}j:{if(g>>>0>>0){e=h;break j}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,h,i);uc(h);J[a+192>>2]=g;i=J[a+200>>2]}e=e+i|0;H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;h=J[a+200>>2]+4|0;J[a+200>>2]=h;f=J[a+216>>2]+h|0;i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=vc(1E3);J[a+192>>2]=i;e=1E3}k:{if(f>>>0>>0){e=i;break k}while(1){e= +e<<1;if(f>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);f=xc(e,i,h);uc(i);J[a+192>>2]=f;h=J[a+200>>2]}e=e+h|0;j=l*1E4;l:{if(R(j)<2147483648){f=~~j;break l}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;J[a+200>>2]=J[a+200>>2]+4}if(!w){e=J[a+188>>2];O[k+80>>3]=O[J[J[a+184>>2]>>2]>>3];O[k+40>>3]=O[J[J[a+184>>2]>>2]+8>>3];O[k+32>>3]=O[J[J[a+184>>2]>>2]+16>>3];O[k+24>>3]=O[J[J[a+184>>2]>>2]+24>>3];O[k+16>>3]=O[J[J[a+188>>2]>>2]+32>>3];O[k+8>>3]=O[J[J[a+188>>2]>>2]+40>>3];dp(e, +k+80|0,k+40|0,k+32|0,k+24|0,k+16|0,k+8|0);H[a+128|0]=1;O[a+136>>3]=O[J[J[a+184>>2]>>2]>>3];O[a+152>>3]=O[J[J[a+184>>2]>>2]+16>>3];O[a+160>>3]=O[J[J[a+184>>2]>>2]+8>>3];O[a+144>>3]=O[J[J[a+184>>2]>>2]+24>>3];g=J[a+220>>2];f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}h=J[a+200>>2];g=g+h|0;m:{if(e>>>0>g>>>0){e=f;break m}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,f,h);uc(f);J[a+192>>2]=g;h=J[a+200>>2]}H[e+h|0]=161;h=J[a+200>>2]+J[a+ +220>>2]|0;J[a+200>>2]=h;g=J[a+216>>2]+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}n:{if(g>>>0>>0){e=f;break n}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,f,h);uc(f);J[a+192>>2]=g;h=J[a+200>>2]}e=e+h|0;j=r*1E4;o:{if(R(j)<2147483648){f=~~j;break o}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;h=J[a+200>>2]+4|0;J[a+200>>2]=h;g=J[a+216>>2]+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f= +vc(1E3);J[a+192>>2]=f;e=1E3}p:{if(g>>>0>>0){e=f;break p}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,f,h);uc(f);J[a+192>>2]=g;h=J[a+200>>2]}e=e+h|0;j=u*1E4;q:{if(R(j)<2147483648){f=~~j;break q}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;h=J[a+200>>2]+4|0;J[a+200>>2]=h;g=J[a+216>>2]+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}r:{if(g>>>0>>0){e=f;break r}while(1){e=e<<1;if(g>>>0>=e>>>0)continue; +break}J[a+204>>2]=e;e=vc(e);g=xc(e,f,h);uc(f);J[a+192>>2]=g;h=J[a+200>>2]}e=e+h|0;j=t*1E4;s:{if(R(j)<2147483648){f=~~j;break s}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;h=J[a+200>>2]+4|0;J[a+200>>2]=h;g=J[a+216>>2]+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}t:{if(g>>>0>>0){e=f;break t}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,f,h);uc(f);J[a+192>>2]=g;h=J[a+200>>2]}e=e+h|0;j=p*1E4;u:{if(R(j)< +2147483648){f=~~j;break u}f=-2147483648}H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;J[a+200>>2]=J[a+200>>2]+4}if(v){e=J[a+180>>2];f=J[a+172>>2];J[e+12>>2]=J[f+12>>2];J[e+20>>2]=J[f+20>>2];g=J[a+220>>2];f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}h=J[a+200>>2];g=g+h|0;v:{if(e>>>0>g>>>0){e=f;break v}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,f,h);uc(f);J[a+192>>2]=g;h=J[a+200>>2]}H[e+h|0]=22;e=J[a+220>>2];h=e+J[a+200>> +2]|0;J[a+200>>2]=h;f=J[J[a+172>>2]+12>>2];g=e+h|0;i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=vc(1E3);J[a+192>>2]=i;e=1E3}w:{if(g>>>0>>0){e=i;break w}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,i,h);uc(i);J[a+192>>2]=g;h=J[a+200>>2]}H[e+h|0]=f;e=J[a+220>>2];h=e+J[a+200>>2]|0;J[a+200>>2]=h;g=f>>>8|0;v=e+h|0;i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=vc(1E3);J[a+192>>2]=i;e=1E3}x:{if(v>>>0>>0){e=i;break x}while(1){e=e<<1;if(v>>>0>=e>>>0)continue; +break}J[a+204>>2]=e;e=vc(e);h=xc(e,i,h);uc(i);J[a+192>>2]=h;h=J[a+200>>2]}H[e+h|0]=g;e=J[a+220>>2];h=e+J[a+200>>2]|0;J[a+200>>2]=h;f=f>>>16|0;g=e+h|0;i=J[a+192>>2];if(i)e=J[a+204>>2];else{J[a+204>>2]=1E3;i=vc(1E3);J[a+192>>2]=i;e=1E3}y:{if(g>>>0>>0){e=i;break y}while(1){e=e<<1;if(g>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);g=xc(e,i,h);uc(i);J[a+192>>2]=g;h=J[a+200>>2]}H[e+h|0]=f;e=J[a+220>>2];h=e+J[a+200>>2]|0;J[a+200>>2]=h;g=J[J[a+172>>2]+20>>2];i=e+h|0;f=J[a+192>>2];if(f)e=J[a+204>>2]; +else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}z:{if(i>>>0>>0){e=f;break z}while(1){e=e<<1;if(i>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);h=xc(e,f,h);uc(f);J[a+192>>2]=h;h=J[a+200>>2]}H[e+h|0]=g;J[a+200>>2]=J[a+200>>2]+J[a+220>>2]}v=J[d>>2];if(m)A:{d=fc-48|0;fc=d;J[d+44>>2]=0;f=J[a+16>>2];e=K[f+15|0];B:{C:{D:{E:{F:{if(!(e<<24>>24<0?J[f+8>>2]:e)){e=K[f+27|0];h=e<<24>>24;i=(h|0)<0?J[f+20>>2]:e;g=i+12|0;if(g>>>0>=1073741808)break E;G:{if(g>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11| +0]=g;e=d;break G}e=g|3;if(e>>>0>=1073741823)break D;m=e+1|0;e=vc(m<<2);J[d+4>>2]=g;J[d>>2]=e;J[d+8>>2]=m|-2147483648}g=e;e=i<<2;e=cd(g,(h|0)<0?J[f+16>>2]:f+16|0,e)+e|0;J[e+48>>2]=0;g=J[609900];J[e+40>>2]=J[609899];J[e+44>>2]=g;g=J[609898];J[e+32>>2]=J[609897];J[e+36>>2]=g;g=J[609896];J[e+24>>2]=J[609895];J[e+28>>2]=g;g=J[609894];J[e+16>>2]=J[609893];J[e+20>>2]=g;g=J[609892];J[e+8>>2]=J[609891];J[e+12>>2]=g;g=J[609890];J[e>>2]=J[609889];J[e+4>>2]=g;e=K[f+49|0];g=K[f+48|0];h=J[f+44>>2];f=J[f+40>>2]; +J[699344]=0;i=d+20|0;f=(f|0)!=0;da(6259,i|0,g<<2|(h?f|2:f)|e<<7);e=J[699344];J[699344]=0;H:{I:{J:{K:{L:{M:{N:{if((e|0)!=1){J[699344]=0;e=K[d+31|0];f=e<<24>>24<0;e=ga(2960,d|0,(f?J[d+20>>2]:i)|0,(f?J[d+24>>2]:e)|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break N;J[d+40>>2]=J[e+8>>2];f=J[e+4>>2];J[d+32>>2]=J[e>>2];J[d+36>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;if(H[d+31|0]<0)uc(J[d+20>>2]);if(H[d+11|0]<0)uc(J[d>>2]);J[699344]=0;i=a+20|0;e=mj(i,d+32|0);f=J[699344];J[699344]=0;if((f|0)==1)break I;if((e| +0)==(a+24|0))break K;f=J[a+4>>2];e=J[a+16>>2];g=J[e+40>>2]!=0;J[d>>2]=(J[e+44>>2]?g|2:g)|K[e+48|0]<<2|K[e+49|0]<<7;g=J[J[f>>2]+144>>2];J[699344]=0;ja(g|0,f|0,e+16|0,e+32|0,d|0,2439608,2439608)|0;e=J[699344];J[699344]=0;if((e|0)==1)break L;e=J[a+4>>2];f=J[J[e>>2]+76>>2];J[699344]=0;$(f|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break L;e=J[a+4>>2];f=J[J[e>>2]+48>>2];J[699344]=0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break L;f=J[a+4>>2];g=J[J[f>>2]+52>>2];J[699344]=0;f=_(g|0,f|0)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break L;g=J[a+4>>2];h=J[J[g>>2]+56>>2];J[699344]=0;g=_(h|0,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break L;h=J[a+4>>2];i=J[J[h>>2]+44>>2];J[699344]=0;h=_(i|0,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break L;i=h;h=h>>31;I[a+14>>1]=(i^h)-h;h=g;g=g>>31;I[a+12>>1]=(h^g)-g;g=f;f=f>>31;I[a+10>>1]=(g^f)-f;f=e;e=e>>31;I[a+8>>1]=(f^e)-e;break J}a=Z()|0;break M}a=Z()|0;if(H[d+31|0]>=0)break M;uc(J[d+20>>2])}if(H[d+11|0]>=0)break C;break B}a=Z()|0;break H}f=J[a+4>>2];e=J[a+16>>2]; +g=J[e+40>>2]!=0;J[d>>2]=(J[e+44>>2]?g|2:g)|K[e+48|0]<<2|K[e+49|0]<<7;g=J[J[f>>2]+144>>2];J[699344]=0;ja(g|0,f|0,e+16|0,e+32|0,d|0,2439608,2439608)|0;e=J[699344];J[699344]=0;O:{P:{Q:{if((e|0)==1)break Q;e=J[a+4>>2];f=J[J[e>>2]+76>>2];J[699344]=0;$(f|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break Q;e=J[a+4>>2];f=J[J[e>>2]+48>>2];J[699344]=0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Q;f=J[a+4>>2];g=J[J[f>>2]+52>>2];J[699344]=0;f=_(g|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Q; +g=J[a+4>>2];h=J[J[g>>2]+56>>2];J[699344]=0;h=_(h|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Q;g=J[a+4>>2];m=J[J[g>>2]+44>>2];J[699344]=0;g=_(m|0,g|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break Q;o=g;g=g>>31;g=(o^g)-g|0;I[a+14>>1]=g;o=h;h=h>>31;h=(o^h)-h|0;I[a+12>>1]=h;o=f;f=f>>31;f=(o^f)-f|0;I[a+10>>1]=f;o=e;e=e>>31;e=(o^e)-e|0;I[a+8>>1]=e;R:{if(H[d+43|0]>=0){J[d+8>>2]=J[d+40>>2];m=J[d+36>>2];J[d>>2]=J[d+32>>2];J[d+4>>2]=m;break R}J[699344]=0;ca(15,d|0,J[d+32>>2],J[d+36>>2]);e=J[699344]; +J[699344]=0;if((e|0)==1)break P;g=L[a+14>>1];h=L[a+12>>1];f=L[a+10>>1];e=L[a+8>>1]}I[d+18>>1]=g;I[d+16>>1]=h;I[d+14>>1]=f;I[d+12>>1]=e;J[699344]=0;f=Ye(i,d+20|0,d);e=J[699344];J[699344]=0;if((e|0)==1)break O;if(!J[f>>2]){J[699344]=0;e=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break O;g=J[d+4>>2];J[e+16>>2]=J[d>>2];J[e+20>>2]=g;J[e+24>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;I[e+28>>1]=L[d+12>>1];I[e+30>>1]=L[d+14>>1];I[e+32>>1]=L[d+16>>1];I[e+34>>1]=L[d+18>>1];J[e+8>>2]=J[d+20>>2];J[e>> +2]=0;J[e+4>>2]=0;J[f>>2]=e;g=J[J[i>>2]>>2];if(g){J[i>>2]=g;e=J[f>>2]}Oc(J[a+24>>2],e);J[a+28>>2]=J[a+28>>2]+1}if(H[d+11|0]>=0)break J;uc(J[d>>2]);break J}a=Z()|0;break H}a=Z()|0;break H}a=Z()|0;if(H[d+11|0]>=0)break H;uc(J[d>>2]);break H}if(H[d+43|0]>=0)break F;uc(J[d+32>>2]);break F}a=Z()|0}if(H[d+43|0]>=0)break C;uc(J[d+32>>2]);break C}m=a+20|0;w=mj(m,f+4|0);if((w|0)!=(a+24|0)){e=J[a+4>>2];f=J[a+16>>2];kc[J[J[e>>2]+148>>2]](e,f+4|0,d+44|0,f+32|0,2439608,2439608)|0;e=J[a+4>>2];kc[J[J[e>>2]+76>>2]](e); +e=J[a+4>>2];e=kc[J[J[e>>2]+48>>2]](e)|0;f=J[a+4>>2];f=kc[J[J[f>>2]+52>>2]](f)|0;g=J[a+4>>2];g=kc[J[J[g>>2]+56>>2]](g)|0;h=J[a+4>>2];h=kc[J[J[h>>2]+44>>2]](h)|0;i=g;g=g>>31;I[a+12>>1]=(i^g)-g;g=f;f=f>>31;I[a+10>>1]=(g^f)-f;f=e;e=e>>31;I[a+8>>1]=(f^e)-e;e=h>>31;I[a+14>>1]=(e^h)-e;break F}e=J[a+4>>2];f=J[a+16>>2];kc[J[J[e>>2]+148>>2]](e,f+4|0,d+44|0,f+32|0,2439608,2439608)|0;e=J[a+4>>2];kc[J[J[e>>2]+76>>2]](e);e=J[a+4>>2];e=kc[J[J[e>>2]+48>>2]](e)|0;f=J[a+4>>2];f=kc[J[J[f>>2]+52>>2]](f)|0;g=J[a+4>>2]; +g=kc[J[J[g>>2]+56>>2]](g)|0;h=J[a+4>>2];i=kc[J[J[h>>2]+44>>2]](h)|0;h=g;g=g>>31;g=(h^g)-g|0;I[a+12>>1]=g;h=f;f=f>>31;h=(h^f)-f|0;I[a+10>>1]=h;f=e;e=e>>31;f=(f^e)-e|0;I[a+8>>1]=f;e=i>>31;e=(e^i)-e|0;I[a+14>>1]=e;i=J[a+16>>2];S:{if(H[i+15|0]>=0){J[d+8>>2]=J[i+12>>2];o=J[i+8>>2];J[d>>2]=J[i+4>>2];J[d+4>>2]=o;break S}Ve(d,J[i+4>>2],J[i+8>>2]);e=L[a+14>>1];g=L[a+12>>1];h=L[a+10>>1];f=L[a+8>>1]}I[d+18>>1]=e;I[d+16>>1]=g;I[d+14>>1]=h;I[d+12>>1]=f;J[699344]=0;e=Ye(m,d+32|0,d);f=J[699344];J[699344]=0;T:{if((f| +0)==1)break T;if(!J[e>>2]){J[699344]=0;f=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break T;g=J[d+4>>2];J[f+16>>2]=J[d>>2];J[f+20>>2]=g;J[f+24>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;I[f+28>>1]=L[d+12>>1];I[f+30>>1]=L[d+14>>1];I[f+32>>1]=L[d+16>>1];I[f+34>>1]=L[d+18>>1];J[f+8>>2]=J[d+32>>2];J[f>>2]=0;J[f+4>>2]=0;J[e>>2]=f;g=J[J[m>>2]>>2];if(g){J[m>>2]=g;f=J[e>>2]}Oc(J[w>>2],f);J[a+28>>2]=J[a+28>>2]+1}if(H[d+11|0]>=0)break F;uc(J[d>>2]);break F}a=Z()|0;if(H[d+11|0]>=0)break C;break B}fc= +d+48|0;break A}_d(d);B()}Pd();B()}ba(a|0);B()}uc(J[d>>2]);ba(a|0);B()}l=O[J[a+16>>2]+32>>3]*25.4/+(P(L[a+14>>1],72)|0);j=q*(l*+L[a+10>>1]);l=q*(l*+L[a+8>>1]);if(l>O[a+32>>3])O[x>>3]=l;if(j>O[a+40>>3])O[a+40>>3]=j;U:{if(c){J[k+80>>2]=1;d=J[a+4>>2];kc[J[J[d>>2]+40>>2]](d,k+80|0);d=c;break U}J[k+80>>2]=0;d=J[a+4>>2];kc[J[J[d>>2]+40>>2]](d,k+80|0);d=b}if((v|0)>0){i=v-1|0;l=0;g=0;while(1){j=0;e=J[a+4>>2];if(e){J[k+80>>2]=1;J[k+40>>2]=0;J[k+32>>2]=0;f=k+80|0;kc[J[J[e>>2]+92>>2]](e,d+(g<<2)|0,f,k+40|0,k+ +32|0)|0;e=J[a+4>>2];kc[J[J[e>>2]+120>>2]](f,e);y=Q(N[k+84>>2]-N[k+80>>2]);j=+y;j=(y>2]=J[f+b>>2];f=c?J[c+f>>2]:65535;O[e+8>>3]=n;J[e+4>>2]=f;O[e+16>>3]=q*j;if(g){m=J[a+220>>2];f=J[a+192>>2];if(f)e=J[a+204>>2];else{J[a+204>>2]=1E3;f=vc(1E3);J[a+192>>2]=f;e=1E3}h=J[a+200>>2];m=m+h|0;V:{if(e>>>0>m>>>0){e=f;break V}while(1){e=e<<1;if(m>>>0>=e>>>0)continue;break}J[a+204>>2]=e;e=vc(e);h=xc(e,f,h);uc(f);J[a+192>>2]=h;h=J[a+200>>2]}H[e+h|0]=0;J[a+200>>2]= +J[a+200>>2]+J[a+220>>2]}l=l+(g?n:-0);if((g|0)==(i|0)){O[a+64>>3]=l*O[a+96>>3]+O[a+64>>3];O[a+72>>3]=l*O[a+104>>3]+O[a+72>>3]}n=j;g=g+1|0;if((v|0)!=(g|0))continue;break}}fc=k+96|0}function K0(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;f=fc-176|0;fc=f;J[a+4>>2]=0;J[a+8>>2]=0;q=a+4|0;J[a>>2]=q;J[f+148>>2]=0;J[f+140>>2]=0;J[f+144>>2]=0;a:{b:{c:{d:{e:{f:{g:{r=J[J[b+28>>2]+132>>2];h:{if(!r)break h;J[699344]=0;t=J[J[r+32>>2]+8>>2]; +e=J[699344];J[699344]=0;if((e|0)==1)break f;if((t|0)<=0)break h;while(1){J[699344]=0;j=J[J[J[r+32>>2]>>2]+(i<<2)>>2];e=J[699344];J[699344]=0;i:{j:{if((e|0)!=1){if(!j)break i;J[699344]=0;J[f+8>>2]=0;J[f+12>>2]=0;ca(3457,j|0,f+20|0,f+8|0);e=J[699344];J[699344]=0;k:{l:{m:{n:{if((e|0)!=1){J[f+120>>2]=13;h=J[f+20>>2];if((h|0)>=0)break m;J[f+104>>2]=0;J[f+96>>2]=0;J[f+100>>2]=0;J[699344]=0;e=f+120|0;g=ha(3458,b|0,j|0,e|0,f+96|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break l;J[699344]=0;$(3370,e|0); +e=J[699344];J[699344]=0;if((e|0)!=1)break n}e=Z()|0;if(H[f+107|0]>=0)break b;uc(J[f+96>>2]);break b}e=Z()|0;break b}if(H[f+107|0]>=0)break i;uc(J[f+96>>2]);break i}J[f+132>>2]=J[f+24>>2];J[f+128>>2]=h;J[f+120>>2]=9;break k}if(H[f+107|0]<0)uc(J[f+96>>2]);h=J[f+128>>2]}o:{g=J[f+140>>2];e=J[f+144>>2];if((g|0)==(e|0))break o;while(1){if(J[g>>2]==(h|0))break o;g=g+4|0;if((e|0)!=(g|0))continue;break}break j}if((e|0)==(g|0))break j;J[699344]=0;$(3370,f+120|0);e=J[699344];J[699344]=0;if((e|0)!=1)break i; +e=Z()|0;break b}e=Z()|0;break b}J[f+104>>2]=0;J[f+96>>2]=0;J[f+100>>2]=0;J[f+88>>2]=0;J[f+80>>2]=0;J[f+84>>2]=0;J[f+72>>2]=0;J[f+64>>2]=0;J[f+68>>2]=0;H[f+119|0]=0;H[f+118|0]=0;J[699344]=0;Ja(3459,f+32|0,b|0,c|0,d|0,f+120|0,f+96|0,f+80|0,f+119|0,f+118|0);e=J[699344];J[699344]=0;p:{q:{r:{if((e|0)!=1){if(H[f+75|0]<0)uc(J[f+64>>2]);J[f+72>>2]=J[f+40>>2];e=J[f+36>>2];J[f+64>>2]=J[f+32>>2];J[f+68>>2]=e;e=H[f+91|0];if((e|0)<0?J[f+84>>2]:e&255)break p;g=K[f+107|0];e=g<<24>>24<0;g=e?J[f+100>>2]:g;s:{if(!g)break s; +J[699344]=0;h=f+32|0;ca(1618,h|0,(e?J[f+96>>2]:f+96|0)|0,g|0);e=J[699344];J[699344]=0;t:{u:{v:{if((e|0)!=1){J[699344]=0;e=mj(a,h);g=J[699344];J[699344]=0;if((g|0)==1)break d;if((e|0)!=(q|0))break t;l=J[f+128>>2];g=J[f+144>>2];k=J[f+148>>2];w:{if(g>>>0>>0){J[g>>2]=l;J[f+144>>2]=g+4;break w}h=J[f+140>>2];m=g-h>>2;e=m+1|0;if(e>>>0>=1073741824){J[699344]=0;$(1589,f+140|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;break a}k=k-h|0;n=k>>1;k=k>>>0>=2147483644?1073741823:e>>>0>>0?n:e;x:{if(!k){n=0; +break x}if(k>>>0>=1073741824){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break d}J[699344]=0;n=_(4,k<<2)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d}e=(m<<2)+n|0;J[e>>2]=l;l=e+4|0;if((g|0)!=(h|0))while(1){e=e-4|0;g=g-4|0;J[e>>2]=J[g>>2];if((g|0)!=(h|0))continue;break}J[f+148>>2]=(k<<2)+n;J[f+144>>2]=l;J[f+140>>2]=e;if(!h)break w;uc(h)}J[699344]=0;e=f+32|0;J[f+52>>2]=e;la(3461,f+160|0,a|0,e|0,853832,f+52|0,f+156|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;h=J[f+160>>2];e= +h+28|0;if((e|0)==(f- -64|0))break t;k=K[f+75|0];g=k<<24>>24;if(H[h+39|0]<0)break v;if((g|0)<0)break u;g=J[f+68>>2];J[e>>2]=J[f+64>>2];J[e+4>>2]=g;J[e+8>>2]=J[f+72>>2];break t}e=Z()|0;break c}J[699344]=0;h=e;e=(g|0)<0;ga(1630,h|0,(e?J[f+64>>2]:f- -64|0)|0,(e?J[f+68>>2]:k)|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break t;break d}J[699344]=0;ga(1631,e|0,J[f+64>>2],J[f+68>>2])|0;e=J[699344];J[699344]=0;if((e|0)==1)break d}if(H[f+43|0]>=0)break s;uc(J[f+32>>2])}J[699344]=0;g=f+120|0;$(3370,g|0);e=J[699344]; +J[699344]=0;if((e|0)==1)break g;if(J[j+40>>2]|J[f+20>>2]<0)break p;J[f+40>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[699344]=0;e=ha(3458,b|0,j|0,g|0,f+32|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){y:{if(!e)break y;z:{A:{g=J[f+140>>2];e=J[f+144>>2];if((g|0)==(e|0))break A;j=J[f+128>>2];while(1){if((j|0)==J[g>>2])break A;g=g+4|0;if((e|0)!=(g|0))continue;break}break z}if((e|0)!=(g|0))break y}H[f+117|0]=0;H[f+116|0]=0;J[699344]=0;Ja(3459,f+160|0,b|0,c|0,d|0,f+120|0,f+96|0,f+80|0,f+117|0,f+116|0);e=J[699344];J[699344]= +0;B:{C:{D:{E:{if((e|0)!=1){if(H[f+75|0]<0)uc(J[f+64>>2]);J[f+72>>2]=J[f+168>>2];e=J[f+164>>2];J[f+64>>2]=J[f+160>>2];J[f+68>>2]=e;J[699344]=0;e=f+160|0;g=H[f+107|0];j=(g|0)<0;ca(1618,e|0,(j?J[f+96>>2]:f+96|0)|0,(j?J[f+100>>2]:g&255)|0);g=J[699344];J[699344]=0;if((g|0)==1)break E;g=K[f+91|0];if(g<<24>>24<0?J[f+84>>2]:g)break B;J[699344]=0;e=mj(a,e);g=J[699344];J[699344]=0;if((g|0)==1)break r;if((e|0)!=(q|0))break B;k=J[f+128>>2];g=J[f+144>>2];h=J[f+148>>2];F:{if(g>>>0>>0){J[g>>2]=k;J[f+144>>2]= +g+4;break F}G:{H:{j=J[f+140>>2];l=g-j>>2;e=l+1|0;I:{if(e>>>0>=1073741824){J[699344]=0;$(1589,f+140|0);break I}h=h-j|0;n=h>>1;h=h>>>0>=2147483644?1073741823:e>>>0>>0?n:e;if(!h){n=0;break G}if(h>>>0<1073741824)break H;J[699344]=0;ka(209)}b=J[699344];J[699344]=0;if((b|0)!=1)break a;break r}J[699344]=0;n=_(4,h<<2)|0;e=J[699344];J[699344]=0;if((e|0)==1)break r}e=(l<<2)+n|0;J[e>>2]=k;k=e+4|0;if((g|0)!=(j|0))while(1){e=e-4|0;g=g-4|0;J[e>>2]=J[g>>2];if((g|0)!=(j|0))continue;break}J[f+148>>2]=(h<<2)+n; +J[f+144>>2]=k;J[f+140>>2]=e;if(!j)break F;uc(j)}J[699344]=0;e=f+160|0;J[f+156>>2]=e;la(3461,f+52|0,a|0,e|0,853832,f+156|0,f+155|0);e=J[699344];J[699344]=0;if((e|0)==1)break r;j=J[f+52>>2];e=j+28|0;if((e|0)==(f- -64|0))break B;h=K[f+75|0];g=h<<24>>24;if(H[j+39|0]<0)break D;if((g|0)<0)break C;g=J[f+68>>2];J[e>>2]=J[f+64>>2];J[e+4>>2]=g;J[e+8>>2]=J[f+72>>2];break B}e=Z()|0;break q}e=Z()|0;break q}J[699344]=0;j=e;e=(g|0)<0;ga(1630,j|0,(e?J[f+64>>2]:f- -64|0)|0,(e?J[f+68>>2]:h)|0)|0;e=J[699344];J[699344]= +0;if((e|0)!=1)break B;break r}J[699344]=0;ga(1631,e|0,J[f+64>>2],J[f+68>>2])|0;e=J[699344];J[699344]=0;if((e|0)==1)break r}if(H[f+171|0]>=0)break y;uc(J[f+160>>2])}if(H[f+43|0]>=0)break p;uc(J[f+32>>2]);break p}e=Z()|0;break q}e=Z()|0;break c}e=Z()|0;if(H[f+171|0]>=0)break q;uc(J[f+160>>2])}if(H[f+43|0]>=0)break c;uc(J[f+32>>2]);break c}J[699344]=0;$(3370,f+120|0);e=J[699344];J[699344]=0;if((e|0)==1)break g;if(H[f+75|0]<0)uc(J[f+64>>2]);if(H[f+91|0]<0)uc(J[f+80>>2]);if(H[f+107|0]>=0)break i;uc(J[f+ +96>>2])}i=i+1|0;if((t|0)!=(i|0))continue;break}}w=J[J[b+28>>2]+20>>2];if((w|0)<=0)break e;t=f+12|0;r=0;while(1){J:{e=J[b+28>>2];J[699344]=0;r=r+1|0;e=aa(3446,e|0,r|0)|0;g=J[699344];J[699344]=0;K:{L:{M:{N:{if((g|0)!=1){if(!e)break K;J[f+120>>2]=13;g=J[e+4>>2];J[699344]=0;e=ha(3372,e+16|0,g|0,f+120|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break J;if(J[e>>2]!=6)break L;n=0;x=J[J[f+128>>2]+12>>2];if((x|0)<=0)break L;while(1){J[f+96>>2]=13;J[699344]=0;e=f+96|0;g=ha(3449,J[f+128>>2],n|0,e|0,0)|0;i=J[699344]; +J[699344]=0;O:{P:{if((i|0)!=1){if(J[g>>2]==7)break P;J[699344]=0;$(3370,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break O}e=Z()|0;break b}J[f+80>>2]=13;J[699344]=0;e=ha(3368,J[f+104>>2],805801,f+80|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break M;Q:{if(J[e>>2]==4)if(!Ic(J[e+8>>2],806062))break Q;J[699344]=0;$(3370,f+80|0);e=J[699344];J[699344]=0;if((e|0)==1)break M;J[699344]=0;$(3370,f+96|0);e=J[699344];J[699344]=0;if((e|0)!=1)break O;break M}J[699344]=0;$(3370,f+80|0);e=J[699344];J[699344]=0;if((e| +0)==1)break M;J[f+64>>2]=13;J[699344]=0;e=f- -64|0;g=ha(3368,J[f+104>>2],806726,e|0,0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break N;R:{S:{T:{U:{V:{W:{X:{if(J[g>>2]!=3){J[699344]=0;$(3370,e|0);g=J[699344];J[699344]=0;if((g|0)==1)break N;J[699344]=0;g=ha(3368,J[f+104>>2],807124,e|0,0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break N;Y:{Z:{_:{$:{if(J[g>>2]!=5)break $;J[699344]=0;e=ha(3368,J[f+104>>2],784290,e|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break N;if(!J[J[f+72>>2]>>2]|J[e>>2]!=3)break $;J[f+ +20>>2]=0;J[f+8>>2]=0;J[699344]=0;h=_(4,48)|0;e=J[699344];J[699344]=0;if((e|0)==1)break X;J[f+32>>2]=h;J[f+36>>2]=9;J[f+40>>2]=-2147483636;l=J[199777];J[h+32>>2]=l;g=J[199776];m=g;e=J[199775];J[h+24>>2]=e;J[h+28>>2]=g;i=J[199774];o=i;g=J[199773];J[h+16>>2]=g;J[h+20>>2]=i;j=J[199772];p=j;i=J[199771];J[h+8>>2]=i;J[h+12>>2]=j;k=J[199770];v=k;j=J[199769];J[h>>2]=j;J[h+4>>2]=k;J[h+36>>2]=0;J[699344]=0;h=J[693078];k=J[699344];J[699344]=0;aa:{ba:{if((k|0)==1)break ba;if(!h)break aa;k=J[J[h>>2]+24>>2];J[699344]= +0;s=k;k=f+32|0;u=aa(s|0,h|0,k|0)|0;s=J[699344];J[699344]=0;if((s|0)==1)break ba;if(u)break aa;J[699344]=0;u=ga(3373,k|0,f+20|0,f+8|0)|0;s=J[699344];J[699344]=0;if((s|0)==1)break ba;if(!u)break aa;u=J[J[h>>2]+16>>2];J[699344]=0;na(u|0,h|0,k|0,J[f+20>>2],J[f+8>>2],0)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break aa}e=Z()|0;break Y}J[699344]=0;h=_(4,48)|0;k=J[699344];J[699344]=0;if((k|0)==1)break _;J[f+160>>2]=h;J[f+164>>2]=9;J[f+168>>2]=-2147483636;J[h+32>>2]=l;J[h+24>>2]=e;J[h+28>>2]=m;J[h+16>>2]=g; +J[h+20>>2]=o;J[h+8>>2]=i;J[h+12>>2]=p;J[h>>2]=j;J[h+4>>2]=v;J[h+36>>2]=0;J[699344]=0;i=Ye(a,f+52|0,f+160|0);e=J[699344];J[699344]=0;if((e|0)==1)break Z;g=J[i>>2];if(!g){J[699344]=0;g=_(4,40)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Z;e=J[f+164>>2];J[g+16>>2]=J[f+160>>2];J[g+20>>2]=e;J[g+24>>2]=J[f+168>>2];J[f+168>>2]=0;J[f+160>>2]=0;J[f+164>>2]=0;J[g+36>>2]=0;J[g+28>>2]=0;J[g+32>>2]=0;J[g+8>>2]=J[f+52>>2];J[g>>2]=0;J[g+4>>2]=0;J[i>>2]=g;e=g;j=J[J[a>>2]>>2];if(j){J[a>>2]=j;e=J[i>>2]}Oc(J[a+4>>2], +e);J[a+8>>2]=J[a+8>>2]+1}J[699344]=0;ga(2227,g+28|0,799076,9)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Z;if(H[f+171|0]<0)uc(J[f+160>>2]);if(H[f+43|0]>=0)break $;uc(J[f+32>>2])}J[699344]=0;$(3370,f+96|0);e=J[699344];J[699344]=0;if((e|0)==1)break N;J[699344]=0;$(3370,f- -64|0);e=J[699344];J[699344]=0;if((e|0)!=1)break O;break N}e=Z()|0;break Y}e=Z()|0;if(H[f+171|0]>=0)break Y;uc(J[f+160>>2])}if(H[f+43|0]>=0)break b;uc(J[f+32>>2]);break b}J[699344]=0;$(3370,f+96|0);e=J[699344];J[699344]=0;if((e|0)== +1)break N;J[699344]=0;g=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break W;J[699344]=0;e=aa(3354,g|0,J[f+72>>2])|0;i=J[699344];J[699344]=0;ca:{da:{ea:{fa:{ga:{ha:{if((i|0)!=1){g=J[e+4>>2];i=J[e>>2];J[699344]=0;j=f+52|0;ca(3447,j|0,i|0,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break ha;uc(ld(e));J[699344]=0;$(3370,f- -64|0);e=J[699344];J[699344]=0;if((e|0)==1)break ga;J[f+32>>2]=13;J[699344]=0;e=f+32|0;ga(3463,J[f+128>>2],n|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break fa;J[699344]=0;g=f+20| +0;da(3464,g|0,j|0);i=J[699344];J[699344]=0;if((i|0)==1)break ea;J[699344]=0;la(3465,f+8|0,b|0,c|0,d|0,e|0,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break da;h=J[f+8>>2];if((t|0)!=(h|0))break ca;break V}e=Z()|0;uc(g);break b}e=Z()|0;break b}e=Z()|0;break S}e=Z()|0;break S}e=Z()|0;break S}e=Z()|0;break T}while(1){i=h+16|0;ia:{j=q;e=j;g=J[e>>2];ja:{ka:{la:{if(!g)break la;k=e;while(1){l=K[h+27|0];e=l<<24>>24<0;m=K[g+27|0];j=m<<24>>24<0;l=e?J[h+20>>2]:l;m=j?J[g+20>>2]:m;o=l>>>0>>0;p=o?l:m;ma:{if(p){e= +qd(j?J[g+16>>2]:g+16|0,e?J[h+16>>2]:i,p);if(e)break ma}e=l>>>0>m>>>0?-1:o}e=(e|0)<0;k=e?k:g;e=J[(e?g+4|0:g)>>2];g=e;if(e)continue;break}na:{if((k|0)==(q|0))break na;j=K[k+27|0];e=j<<24>>24<0;l=K[h+27|0];g=l<<24>>24<0;oa:{j=e?J[k+20>>2]:j;l=g?J[h+20>>2]:l;m=j>>>0>>0?j:l;if(m){e=qd(g?J[i>>2]:i,e?J[k+16>>2]:k+16|0,m);if(e)break oa}if(j>>>0>l>>>0)break na;break ia}if((e|0)>=0)break ia}j=q;e=j;g=J[e>>2];if(!g)break la;while(1){e=g;k=e+16|0;o=K[e+27|0];l=o<<24>>24<0;p=K[h+27|0];m=p<<24>>24<0;pa:{qa:{ra:{o= +l?J[e+20>>2]:o;p=m?J[h+20>>2]:p;v=o>>>0

      >>0?o:p;if(v){g=qd(m?J[i>>2]:i,l?J[e+16>>2]:k,v);if(g)break ra}if(o>>>0>p>>>0)break qa;break pa}if((g|0)>=0)break pa}j=e;g=J[e>>2];if(g)continue;break la}m=K[h+27|0];g=m<<24>>24<0;o=K[e+27|0];l=o<<24>>24<0;sa:{ta:{ua:{m=g?J[h+20>>2]:m;o=l?J[e+20>>2]:o;p=m>>>0>>0?m:o;if(p){g=qd(l?J[k>>2]:k,g?J[h+16>>2]:i,p);if(g)break ua}if(m>>>0>o>>>0)break ta;break sa}if((g|0)>=0)break sa}j=e+4|0;g=J[e+4>>2];if(g)continue;break la}break}k=J[j>>2];if(k)break ka}J[699344]= +0;k=_(4,40)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ja;J[f+164>>2]=q;J[f+160>>2]=k;g=k+16|0;H[f+168|0]=0;va:{if(H[h+27|0]>=0){l=J[i+4>>2];J[g>>2]=J[i>>2];J[g+4>>2]=l;J[g+8>>2]=J[i+8>>2];break va}i=J[h+20>>2];l=J[h+16>>2];J[699344]=0;ca(15,g|0,l|0,i|0);g=J[699344];J[699344]=0;if((g|0)!=1)break va;e=Z()|0;mK(f+160|0);break U}J[k+8>>2]=e;J[k>>2]=0;J[k+4>>2]=0;J[k+36>>2]=0;J[k+28>>2]=0;J[k+32>>2]=0;J[j>>2]=k;i=k;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;i=J[j>>2]}l=J[q>>2];e=(l|0)==(i|0);H[i+12|0]=e;wa:{if(e)break wa; +while(1){e=J[i+8>>2];if(K[e+12|0])break wa;xa:{g=J[e+8>>2];j=J[g>>2];if((j|0)==(e|0)){j=J[g+4>>2];if(!(!j|K[j+12|0]))break xa;ya:{if(J[e>>2]==(i|0)){i=e;break ya}i=J[e+4>>2];l=J[i>>2];J[e+4>>2]=l;j=e;if(l){J[l+8>>2]=e;g=J[e+8>>2];j=J[g>>2]}J[i+8>>2]=g;J[((e|0)==(j|0)?g:g+4|0)>>2]=i;J[i>>2]=e;J[e+8>>2]=i;g=J[i+8>>2];e=J[g>>2]}H[i+12|0]=1;H[g+12|0]=0;i=J[e+4>>2];J[g>>2]=i;if(i)J[i+8>>2]=g;i=J[g+8>>2];J[e+8>>2]=i;J[i+((J[i>>2]!=(g|0))<<2)>>2]=e;J[e+4>>2]=g;J[g+8>>2]=e;break wa}if(!(K[j+12|0]|!j))break xa; +za:{if(J[e>>2]!=(i|0)){i=e;break za}j=J[i+4>>2];J[e>>2]=j;if(j){J[j+8>>2]=e;g=J[e+8>>2]}J[i+8>>2]=g;J[(J[g>>2]==(e|0)?g:g+4|0)>>2]=i;J[i+4>>2]=e;J[e+8>>2]=i;g=J[i+8>>2]}H[i+12|0]=1;H[g+12|0]=0;e=J[g+4>>2];i=J[e>>2];J[g+4>>2]=i;if(i)J[i+8>>2]=g;i=J[g+8>>2];J[e+8>>2]=i;J[i+((J[i>>2]!=(g|0))<<2)>>2]=e;J[e>>2]=g;J[g+8>>2]=e;break wa}H[e+12|0]=1;H[g+12|0]=(g|0)==(l|0);H[j+12|0]=1;i=g;if((g|0)!=(l|0))continue;break}}J[a+8>>2]=J[a+8>>2]+1}if((h|0)==(k|0))break ia;g=h+28|0;e=k+28|0;j=K[h+39|0];i=j<<24>>24; +Aa:{if(H[k+39|0]>=0){if((i|0)<0)break Aa;i=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=i;J[e+8>>2]=J[g+8>>2];break ia}k=J[h+32>>2];l=J[h+28>>2];J[699344]=0;s=e;e=(i|0)<0;ga(1630,s|0,(e?l:g)|0,(e?k:j)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break ja;break ia}g=J[h+32>>2];i=J[h+28>>2];J[699344]=0;ga(1631,e|0,i|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break ia}e=Z()|0;break U}e=J[h+4>>2];Ba:{if(e)while(1){g=e;e=J[e>>2];if(e)continue;break Ba}while(1){g=J[h+8>>2];e=J[g>>2]!=(h|0);h=g;if(e)continue;break}}h= +g;if((g|0)!=(t|0))continue;break}break V}e=Z()|0;break b}e=Z()|0;break b}J[699344]=0;$(3370,f+32|0);e=J[699344];J[699344]=0;if((e|0)!=1){h=0;e=J[f+20>>2];i=J[f+24>>2];if((e|0)==(i|0))break R;while(1){j=h<<2;g=J[j+e>>2];if(g){if(H[g+83|0]<0)uc(J[g+72>>2]);if(H[g+71|0]<0)uc(J[g+60>>2]);if(H[g+59|0]<0)uc(J[g+48>>2]);uc(g);J[j+J[f+20>>2]>>2]=0;i=J[f+24>>2];e=J[f+20>>2]}h=h+1|0;if(h>>>0>2>>>0)continue;break}break R}e=Z()|0}dj(f+8|0,J[f+12>>2])}b=J[f+20>>2];if(!b)break S;J[f+24>>2]=b;uc(b)}if(H[f+ +63|0]>=0)break b;uc(J[f+52>>2]);break b}dj(f+8|0,J[f+12>>2]);e=J[f+20>>2];if(e){J[f+24>>2]=e;uc(e)}if(H[f+63|0]>=0)break O;uc(J[f+52>>2])}n=n+1|0;if((x|0)!=(n|0))continue;break}break L}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;break b}J[699344]=0;$(3370,f+120|0);e=J[699344];J[699344]=0;if((e|0)==1)break J}if((r|0)!=(w|0))continue;break e}break}e=Z()|0;break b}e=Z()|0;break c}e=Z()|0;break b}a=J[f+140>>2];if(a){J[f+144>>2]=a;uc(a)}fc=f+176|0;return}e=Z()|0;if(H[f+43|0]>=0)break c;uc(J[f+32>>2])}if(H[f+ +75|0]<0)uc(J[f+64>>2]);if(H[f+91|0]<0)uc(J[f+80>>2]);if(H[f+107|0]>=0)break b;uc(J[f+96>>2])}b=J[f+140>>2];if(b){J[f+144>>2]=b;uc(b)}dj(a,J[a+4>>2]);ba(e|0);B()}B()}function mVa(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;j=fc+-64|0;fc=j;J[a+160>>2]=13;J[a+136>>2]=13;J[a+112>>2]=13;J[a+96>>2]=13;J[a+80>>2]=13;J[a+64>>2]=13;J[a+40>>2]=13;J[a+24>>2]=13;J[j+48>>2]=13;J[j+32>>2]=13;J[j+16>>2]=13;J[a>>2]=b;J[a+176>>2]=1;b=J[b+24>>2];J[a+152>>2]=0;J[a+156>>2]=0; +J[a+132>>2]=0;J[a+56>>2]=0;J[a+4>>2]=b;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;wl(b,J[b+20>>2],J[b+24>>2],j+48|0,0);a:{b:{c:{b=J[j+48>>2];if((b|0)!=7){J[j>>2]=J[(b<<2)+2735600>>2];Cc(1,-1,780536,j);break c}b=fc-80|0;fc=b;J[b+64>>2]=13;J[b+48>>2]=13;J[b+32>>2]=13;c=b- -64|0;d:{if(J[Ke(J[j+56>>2],800025,c)>>2]!=9){J[b+16>>2]=J[(J[c>>2]<<2)+2735600>>2];Cc(1,-1,801155,b+16|0);yc(c);break d}d=b- -64|0;c=b+48|0;if(J[jf(d,J[a+4>>2],c,0)>>2]!=7){J[b>>2]=J[(J[c>>2]<<2)+2735600>>2];Cc(1,-1,801974, +b);yc(c);yc(d);break d}e:{if(J[Ec(J[b+56>>2],802182,b+32|0,0)>>2]==1){c=J[b+40>>2];J[a+20>>2]=c;if((c|0)<50001?c:0)break e;q=a,r=_$(a,b+48|0),J[q+20>>2]=r;break e}J[a+20>>2]=1}yc(b+32|0);e=J[a+20>>2];if((e|0)<0){Cc(1,-1,802801,0);yc(b+48|0);yc(b- -64|0);J[a+20>>2]=0;break d}d=vc(24);i=J[b+72>>2];f=J[b+76>>2];c=0;J[d+20>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+8>>2]=e;J[d>>2]=i;J[d+4>>2]=f;J[a+8>>2]=d;yc(b+48|0);yc(b- -64|0);q=a,r=Wd(J[a+12>>2],J[a+20>>2],4),J[q+12>>2]=r;q=a,r=Wd(J[a+16>>2],J[a+20>>2], +8),J[q+16>>2]=r;f=1;d=J[a+20>>2];if((d|0)<=0)break d;if((d|0)!=1){e=d&-2;while(1){J[J[a+12>>2]+(c<<2)>>2]=0;i=J[a+16>>2]+(c<<3)|0;J[i>>2]=-1;J[i+4>>2]=-1;i=c|1;J[J[a+12>>2]+(i<<2)>>2]=0;i=J[a+16>>2]+(i<<3)|0;J[i>>2]=-1;J[i+4>>2]=-1;c=c+2|0;h=h+2|0;if((e|0)!=(h|0))continue;break}}if(!(d&1))break d;J[J[a+12>>2]+(c<<2)>>2]=0;c=J[a+16>>2]+(c<<3)|0;J[c>>2]=-1;J[c+4>>2]=-1}fc=b+80|0;if(!f)break c;b=a+40|0;Ec(J[j+56>>2],781050,a+24|0,0);f:{if(J[Ec(J[j+56>>2],782163,j+32|0,0)>>2]==7){Ec(J[j+40>>2],781050, +b,0);break f}J[b>>2]=5}b=j+32|0;yc(b);if(J[Ec(J[j+56>>2],783784,b,0)>>2]==7){if(J[Ec(J[j+40>>2],784472,j+16|0,0)>>2]==3){c=J[j+24>>2];b=vc(8);J[699344]=0;c=aa(3350,b|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+56>>2]=c}yc(j+16|0)}yc(j+32|0);b=J[a+56>>2];g:{if(b){if(J[b>>2])break g;uc(Zc(b))}h:{b=J[J[a>>2]>>2];if(b){c=J[b+4>>2];d=at(c,47);b=vc(8);i:{if(d){J[699344]=0;ga(3348,b|0,c|0,d-c|0)|0;break i}J[699344]=0;_(3351,b|0)|0}c=J[699344];J[699344]=0;if((c|0)==1)break a;d=0;h=0;i=fc-4112| +0;fc=i;c=J[b+4>>2];e=K[c|0];j:{if((e|0)==47)break j;k:{if((e|0)==126){d=K[c+1|0];if((d|0)==47|J[b>>2]==1)break k;e=c+1|0;c=e;while(1){if(!(!d|(d|0)==47)){d=K[c+1|0];c=c+1|0;continue}break}c=c-e|0;c=(c|0)>=4096?4096:c;q=Ad(i,e,c)+c|0,r=0,H[q|0]=r;J[698583]=44;break j}if(!jT(i,4097))break j;c=J[b>>2];if((c|0)==2147483647){gi(780573);c=J[b>>2]}Bh(b,c+1|0);e=J[b>>2];l:{if((e|0)<0)break l;c=e+1|0;h=c&3;if(h)while(1){f=J[b+4>>2]+c|0;H[f|0]=K[f-1|0];c=c-1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(e>>> +0<3)break l;while(1){d=J[b+4>>2]+c|0;H[d|0]=K[d-1|0];d=J[b+4>>2]+c|0;H[d-1|0]=K[d-2|0];d=J[b+4>>2]+c|0;H[d-2|0]=K[d-3|0];d=J[b+4>>2]+c|0;H[d-3|0]=K[d-4|0];c=c-4|0;if((c|0)>0)continue;break}}H[J[b+4>>2]]=47;J[b>>2]=J[b>>2]+1;VJ(b,i);break j}Sm(b,0,1);f=aK();e=J[f>>2];c=J[b>>2];if((e^2147483647)<(c|0)){gi(780573);c=J[b>>2]}Bh(b,c+e|0);c=J[b>>2];m:{if((c|0)<0)break m;d=c;g=c+1&3;if(g)while(1){k=J[b+4>>2]+c|0;H[k+e|0]=K[k|0];c=c-1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}if(d>>>0<3)break m;while(1){d= +J[b+4>>2]+c|0;H[d+e|0]=K[d|0];d=(J[b+4>>2]+c|0)-1|0;H[d+e|0]=K[d|0];d=(J[b+4>>2]+c|0)-2|0;H[d+e|0]=K[d|0];d=c-3|0;h=d+J[b+4>>2]|0;H[h+e|0]=K[h|0];c=c-4|0;if((d|0)>0)continue;break}}xc(J[b+4>>2],J[f+4>>2],e);J[b>>2]=e+J[b>>2];uc(Zc(f))}fc=i+4112|0;J[a+56>>2]=b;if(K[J[b+4>>2]]!=47)break h;VJ(b,785223);break g}b=vc(8);J[699344]=0;c=aa(3349,b|0,786721)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+56>>2]=c;break g}break a}VJ(b,786721)}Ec(J[j+56>>2],787296,a- -64|0,0);Ec(J[j+56>>2],787929,a+80|0,0);Ec(J[j+ +56>>2],788872,a+96|0,0);o=a+112|0;Ec(J[j+56>>2],789818,o,0);p=j+32|0;q=a,r=!J[Ec(J[j+56>>2],790729,p,0)>>2]&J[j+40>>2]!=0,J[q+128>>2]=r;yc(p);b=J[a>>2];k=0;g=fc-112|0;fc=g;J[g+96>>2]=13;J[g+80>>2]=13;J[g+64>>2]=13;J[g+48>>2]=13;J[g+32>>2]=13;J[g+16>>2]=13;J[g>>2]=13;n:{o:{p:{q:{r:{s:{t:{if(J[o>>2]==7){e=vc(48);J[e>>2]=b;J[e+8>>2]=13;J[699344]=0;aa(3448,o|0,e+8|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q;J[e+24>>2]=0;J[699344]=0;b=_(4,16)|0;c=J[699344];J[699344]=0;if((c|0)==1)break q;J[699344]= +0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[e+28>>2]=c;J[699344]=0;b=_(4,16)|0;c=J[699344];J[699344]=0;if((c|0)==1)break q;J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1){h=Z()|0;uc(b);break p}J[e+36>>2]=0;J[e+40>>2]=0;J[e+32>>2]=c;u:{if(J[Ec(J[o+8>>2],777072,g+80|0,0)>>2]==5)break u;h=0;m=fc-16|0;fc=m;i=fc-4112|0;fc=i;c=vc(8);J[699344]=0;d=_(3351,c|0)|0;b=J[699344];J[699344]=0;v:{w:{x:{if((b|0)!=1){y:switch(J[g+80>>2]-6|0){case 0:b=J[g+88>>2];if(J[b+12>>2]>=2)break x; +break v;case 2:break y;default:break w}b=J[g+88>>2];kc[J[J[b>>2]+20>>2]](b);b=J[g+88>>2];b=kc[J[J[b>>2]+40>>2]](b,i+16|0,4096)|0;if((b|0)<=0)break v;while(1){c=i+16|0;kf(d,c,b);b=J[g+88>>2];b=kc[J[J[b>>2]+40>>2]](b,c,4096)|0;if((b|0)>0)continue;break}break v}break o}c=1;while(1){J[i>>2]=13;if(J[Sc(b,c,i,0)>>2]!=8){Cc(1,-1,781372,0);yc(i);uc(Zc(d));d=0;break v}b=J[i+8>>2];kc[J[J[b>>2]+20>>2]](b);b=J[i+8>>2];b=kc[J[J[b>>2]+40>>2]](b,i+16|0,4096)|0;if((b|0)>0)while(1){f=i+16|0;kf(d,f,b);b=J[i+8>>2]; +b=kc[J[J[b>>2]+40>>2]](b,f,4096)|0;if((b|0)>0)continue;break}yc(i);c=c+2|0;b=J[g+88>>2];if((c|0)>2])continue;break}break v}Cc(1,-1,782361,0);d=0}c=d;fc=i+4112|0;z:{A:{i=c;B:{if(!c)break B;b=J[c+4>>2];c=J[c>>2];d=vc(40);J[d+4>>2]=0;J[d+8>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d>>2]=2347744;J[d+12>>2]=0;J[d+16>>2]=0;J[d+32>>2]=b;f=b+c|0;J[d+36>>2]=f;C:{if((c|0)<=0)break C;while(1){c=K[b|0]-9|0;if(c>>>0>23|!(1<>2]=b;if((b|0)!=(f|0))continue;break}}D:{c= +J[d+36>>2];b=J[d+32>>2];if((c-b|0)<5)break D;if(ud(b,780036,5))break D;b=b+5|0;J[d+32>>2]=b;E:{if(b>>>0>=c>>>0)break E;while(1){f=K[b|0]-9|0;if(f>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}F:{G:{H:{if((c-b|0)<7)break H;if(ud(b,781092,7))break H;b=b+7|0;J[d+32>>2]=b;I:{if(b>>>0>=c>>>0)break I;while(1){f=K[b|0]-9|0;if(f>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}if(K[b|0]!=61|(c-b|0)<=0)break H;b=b+1|0;J[d+32>>2]= +b;J:{if(b>>>0>=c>>>0)break J;while(1){f=K[b|0]-9|0;if(f>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}}f=HI(d);break G}c=vc(8);J[699344]=0;f=aa(3349,c|0,783868)|0;b=J[699344];J[699344]=0;if((b|0)==1)break F}b=J[d+32>>2];c=J[d+36>>2];K:{if(b>>>0>=c>>>0)break K;while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}L:{if((c-b|0)<8)break L;if(ud(b,784433,8))break L;b=b+8|0;J[d+32>>2]=b;M:{if(b>>>0>=c>>>0)break M; +while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}if(K[b|0]!=61|(c-b|0)<=0)break L;b=b+1|0;J[d+32>>2]=b;N:{if(b>>>0>=c>>>0)break N;while(1){k=K[b|0]-9|0;if(k>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}}k=HI(d);b=J[d+32>>2];c=J[d+36>>2]}O:{if(b>>>0>=c>>>0)break O;while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}P:{if((c-b|0)<10)break P; +if(ud(b,785431,10))break P;b=b+10|0;J[d+32>>2]=b;Q:{if(b>>>0>=c>>>0)break Q;while(1){l=K[b|0]-9|0;if(l>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}if(K[b|0]!=61|(c-b|0)<=0)break P;b=b+1|0;J[d+32>>2]=b;R:{if(b>>>0>=c>>>0)break R;while(1){n=K[b|0]-9|0;if(n>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}}b=HI(d);c=Dd(b,786184);uc(Zc(b));n=!c;b=J[d+32>>2];c=J[d+36>>2]}S:{if(b>>>0>=c>>>0)break S;while(1){l=K[b|0]-9|0;if(l>>> +0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}T:{if((c-b|0)<2)break T;if(ud(b,787579,2))break T;J[d+32>>2]=b+2}b=vc(32);J[b+4>>2]=0;J[b+8>>2]=0;H[b+28|0]=n;J[b+24>>2]=k;J[b+20>>2]=f;J[b>>2]=2348328;J[b+12>>2]=0;J[b+16>>2]=0;kc[J[J[d>>2]+48>>2]](d,b);break D}break o}while(1){U:{c=J[d+36>>2];b=J[d+32>>2];f=c-b|0;V:{if((f|0)>=4){if(ud(b,797427,4))break V;vB(d,d);continue}if((f|0)<2)break U}if(ud(b,795726,2))break U;uB(d,d);continue}W:{if(b>>>0>=c>>>0)break W;c= +K[b|0]-9|0;if(c>>>0>23|!(1<>2]=b+1;continue}break}k=0;b=J[d+36>>2];c=J[d+32>>2];X:{if((b-c|0)<9)break X;if(ud(c,788447,9))break X;c=c+9|0;J[d+32>>2]=c;Y:{if(b>>>0<=c>>>0)break Y;while(1){f=K[c|0]-9|0;if(f>>>0>23|!(1<>2]=c;if((b|0)!=(c|0))continue;break}}n=tB(d);c=J[d+32>>2];b=J[d+36>>2];Z:{if(c>>>0>=b>>>0)break Z;while(1){f=K[c|0]-9|0;if(f>>>0>23|!(1<>2]=c;if((b|0)!=(c|0))continue;break}c=b}_:{if(b>>> +0<=c>>>0)break _;while(1){f=c;c=c+1|0;J[d+32>>2]=c;f=K[f|0];$:{aa:{ba:{ca:{da:{ea:{fa:switch(k|0){case 0:switch(f-34|0){case 28:break _;case 0:case 5:break ca;case 1:case 2:case 3:case 4:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:break da;default:break ea}case 1:k=(f|0)!=0;break $;case 2:ga:switch(f-34|0){case 1:case 2:case 3:case 4:break aa;case 0:case 5:break ga;default:break ba}k= +3;break $;case 3:break fa;default:break $}k=f?3:2;break $}k=2;if((f|0)==91)break $}k=0;break $}k=1;break $}k=0;if((f|0)==93)break $}k=2}if(b>>>0>c>>>0)continue;break}}b=vc(24);J[b+4>>2]=0;J[b+8>>2]=0;J[b+20>>2]=n;J[b>>2]=2348392;J[b+12>>2]=0;J[b+16>>2]=0;kc[J[J[d>>2]+48>>2]](d,b)}while(1){ha:{f=J[d+36>>2];b=J[d+32>>2];c=f-b|0;ia:{if((c|0)>=4){if(ud(b,797427,4))break ia;vB(d,d);continue}if((c|0)<2)break ha}if(ud(b,795726,2))break ha;uB(d,d);continue}ja:{if(b>>>0>=f>>>0)break ja;f=K[b|0]-9|0;if(f>>> +0>23|!(1<>2]=b+1;continue}break}if(!(K[b|0]!=60|(c|0)<=0))HZ(d,d);while(1){ka:{c=J[d+36>>2];b=J[d+32>>2];f=c-b|0;la:{if((f|0)>=4){if(ud(b,797427,4))break la;vB(d,d);continue}if((f|0)<2)break ka}if(ud(b,795726,2))break ka;uB(d,d);continue}ma:{if(b>>>0>=c>>>0)break ma;c=K[b|0]-9|0;if(c>>>0>23|!(1<>2]=b+1;continue}break}b=d;na:{if(J[b+28>>2])break na;kc[J[J[b>>2]+4>>2]](b);b=0}uc(Zc(i));if(!b){Cc(1,-1,776499,0);break B}h=vc(8);J[h>>2]=2347640;J[699344]= +0;c=_(4,16)|0;d=J[699344];J[699344]=0;oa:{pa:{qa:{if((d|0)!=1){J[699344]=0;d=aa(3539,c|0,0)|0;i=J[699344];J[699344]=0;if((i|0)==1){a=Z()|0;uc(c);break A}J[h+4>>2]=d;i=J[b+28>>2];if(!i)break oa;c=vc(16);J[699344]=0;d=aa(3539,c|0,1)|0;f=J[699344];J[699344]=0;if((f|0)!=1){c=Ii(i,783232);if(c)MI(h,c,0,d);c=Ii(J[b+28>>2],777491);if(c)break qa;c=0;break pa}a=Z()|0;h=c;break A}a=Z()|0;break A}c=Ii(c,778969)}i=Ii(J[b+28>>2],780083);if(i)NZ(h,i,0,0,0,0,0,c,d);c=m+12|0;_J(d,c);if(cj(d,c,m+8|0,m+4|0))while(1){c= +J[m+4>>2];if(c)uc(Zc(c));if(cj(d,m+12|0,m+8|0,m+4|0))continue;break}uc(Sh(d))}kc[J[J[b>>2]+4>>2]](b)}fc=m+16|0;break z}uc(h);ba(a|0);B()}J[e+36>>2]=h;if(J[a+128>>2])break u;J[e+40>>2]=1}yc(g+80|0);if(!J[Ec(J[o+8>>2],777504,g+16|0,0)>>2])J[e+24>>2]=J[g+24>>2];b=g+16|0;yc(b);m0(e,a);if(J[Ec(J[o+8>>2],778506,b,0)>>2]!=6)break t;b=0;h=J[g+24>>2];if(J[h+12>>2]>0)while(1){tg(h,b,g);YB(e,g);yc(g);b=b+1|0;h=J[g+24>>2];if((b|0)>2])continue;break}yc(g+16|0);if(J[a+20>>2]<=0)break r;b=1;while(1){c=b; +b=bj(a,b);ra:{if(J[jf(b+16|0,J[b+4>>2],g- -64|0,0)>>2]!=6)break ra;n=0;b=J[g+72>>2];if(J[b+12>>2]<=0)break ra;while(1){sa:{if(J[tg(b,n,g+48|0)>>2]!=9)break sa;ta:{ua:{b=J[e+32>>2];d=J[b+8>>2];if((d|0)<=0){b=0;break ua}i=J[b>>2];b=0;f=J[g+60>>2];k=J[g+56>>2];while(1){h=J[i+(b<<2)>>2];if(!(J[h+8>>2]!=9|(k|0)!=J[h+16>>2])&(f|0)==J[h+20>>2])break ua;b=b+1|0;if((d|0)!=(b|0))continue;break}break ta}if((b|0)!=(d|0))break sa}b=g+48|0;jf(b,J[J[e>>2]+24>>2],g+32|0,0);if(J[g+32>>2]==7){d=Ec(J[g+40>>2],781364, +g+16|0,0);va:{if(J[d>>2]!=4)break va;if(Ic(J[d+8>>2],782098))break va;YB(e,b)}yc(g+16|0)}yc(g+32|0)}yc(g+48|0);n=n+1|0;b=J[g+72>>2];if((n|0)>2])continue;break}}b=c+1|0;yc(g- -64|0);if((c|0)>2])continue;break}break r}h=Z()|0;uc(b);break p}c=g+96|0;Af(c,J[b+24>>2]);e=vc(48);J[e>>2]=b;J[e+8>>2]=13;J[699344]=0;aa(3448,c|0,e+8|0)|0;b=J[699344];J[699344]=0;wa:{xa:{if((b|0)==1)break xa;J[e+24>>2]=0;J[699344]=0;b=_(4,16)|0;c=J[699344];J[699344]=0;if((c|0)==1)break xa;J[699344]=0;c=_(3352, +b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break wa;J[e+28>>2]=c;J[699344]=0;b=_(4,16)|0;c=J[699344];J[699344]=0;if((c|0)==1)break xa;J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1){h=Z()|0;uc(b);break p}J[e+36>>2]=0;J[e+40>>2]=0;J[e+32>>2]=c;yc(g+96|0);m0(e,a);if(J[a+20>>2]>0){b=1;while(1){c=b;b=bj(a,b);ya:{if(J[jf(b+16|0,J[b+4>>2],g- -64|0,0)>>2]!=6)break ya;b=0;h=J[g+72>>2];if(J[h+12>>2]<=0)break ya;while(1){d=g+48|0;if(J[tg(h,b,d)>>2]==9){jf(d,J[J[e>>2]+24>>2],g+32|0,0);if(J[g+ +32>>2]==7){h=Ec(J[g+40>>2],781364,g+16|0,0);za:{if(J[h>>2]!=4)break za;if(Ic(J[h+8>>2],782098))break za;YB(e,d)}yc(g+16|0)}yc(g+32|0)}yc(g+48|0);b=b+1|0;h=J[g+72>>2];if((b|0)>2])continue;break}}b=c+1|0;yc(g- -64|0);if((c|0)>2])continue;break}}if(J[J[e+32>>2]+8>>2])break r;break s}h=Z()|0;break p}h=Z()|0;uc(b);break p}if(J[g+16>>2]!=5)Cc(1,-1,780092,0);yc(g+16|0)}uc(l0(e));e=0}fc=g+112|0;break n}h=Z()|0}uc(e);ba(h|0);B()}a=Z()|0;uc(c);ba(a|0);B()}J[a+132>>2]=e;Ec(J[j+56>>2],791447, +a+136|0,0);c=J[j+56>>2];b=fc-32|0;fc=b;J[b+16>>2]=13;J[b>>2]=13;if(J[Ec(c,782163,b+16|0,0)>>2]==7){if(J[Ec(J[b+24>>2],808254,b,0)>>2]==7)Z$(a,b);yc(b)}d=b+16|0;yc(d);e=Ac(Pk(J[J[a+4>>2]+16>>2]+1|0),0,J[J[a+4>>2]+16>>2]+1|0);Y$(a,Ke(c,800025,d),e);yc(d);Mc(e);fc=b+32|0;Ke(J[j+56>>2],792257,a+160|0);if(J[Ec(J[j+56>>2],793029,p,0)>>2]==7)Aa:{b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+156>>2]=c;X$(a,p);b=J[a+156>>2];c=J[b+8>>2];if(!c){uc(ld(b));J[a+156>>2]=0;break Aa}e= +J[b>>2];b=J[e>>2];Ba:{if((c|0)<2)break Ba;d=c-1|0;h=d&3;Ca:{if(c-2>>>0<3){d=1;break Ca}i=e+12|0;f=e+8|0;g=e+4|0;k=d&-4;c=0;d=1;while(1){l=b;b=d<<2;m=J[b+e>>2];J[l+4>>2]=J[m>>2]-1;l=m;m=J[b+g>>2];J[l+4>>2]=J[m>>2]-1;l=m;m=J[b+f>>2];J[l+4>>2]=J[m>>2]-1;b=J[b+i>>2];J[m+4>>2]=J[b>>2]-1;d=d+4|0;c=c+4|0;if((k|0)!=(c|0))continue;break}}if(!h)break Ba;f=0;c=b;while(1){b=J[e+(d<<2)>>2];J[c+4>>2]=J[b>>2]-1;d=d+1|0;c=b;f=f+1|0;if((h|0)!=(f|0))continue;break}}J[b+4>>2]=J[a+20>>2];break Aa}break a}yc(j+32|0); +yc(j+48|0);break b}yc(j+48|0);J[a+176>>2]=0;J[a+40>>2]=5;J[a+24>>2]=5}fc=j- -64|0;return a|0}a=Z()|0;uc(b);ba(a|0);B()}function yG(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,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0;q=fc-48|0;fc=q;a:{if(c>>>0<=2){c=c<<2;A=J[c+2622604>>2];B=J[c+2622592>>2];while(1){c=J[b+4>>2];b:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break b}c=uf(b)}if((c|0)==32|c-9>>>0<5)continue;break}t=1;c:{d:switch(c-43|0){case 0:case 2:break d;default:break c}t= +(c|0)==45?-1:1;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break c}c=uf(b)}e:{f:{while(1){if(H[g+1164|0]==(c|32)){g:{if(g>>>0>6)break g;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break g}c=uf(b)}g=g+1|0;if((g|0)!=8)continue;break f}break}if((g|0)!=3){f=(g|0)==8;if(f)break f;if(!d|g>>>0<4)break e;if(f)break f}c=J[b+116>>2];if((c|0)>=0|(c|0)>0)J[b+4>>2]=J[b+4>>2]-1;if(!d|g>>>0<4)break f;c=(c|0)<0;while(1){if(!c)J[b+4>>2]=J[b+4>>2]-1;g=g-1|0;if(g>>>0>3)continue;break}}k= +fc-16|0;fc=k;j=(C(Q(Q(t|0)*Q(Infinity))),v(2));b=j&2147483647;h:{if(b-8388608>>>0<=2130706431){c=b;b=b>>>7|0;c=c<<25;d=b+1065353216|0;break h}c=j<<25;d=j>>>7|2147418112;if(b>>>0>=2139095040)break h;c=0;d=0;if(!b)break h;c=b;b=S(b);Gi(k,c,0,0,0,b+81|0);i=J[k>>2];h=J[k+4>>2];c=J[k+8>>2];d=J[k+12>>2]^65536|16265-b<<16}J[q>>2]=i;J[q+4>>2]=h;J[q+8>>2]=c;J[q+12>>2]=j&-2147483648|d;fc=k+16|0;i=J[q+8>>2];h=J[q+12>>2];j=J[q>>2];l=J[q+4>>2];break a}i:{j:{k:{if(g)break k;g=0;while(1){if(H[g+7263|0]!=(c|32))break k; +l:{if(g>>>0>1)break l;c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break l}c=uf(b)}g=g+1|0;if((g|0)!=3)continue;break}break j}m:switch(g|0){case 0:n:{if((c|0)!=48)break n;g=J[b+4>>2];o:{if((g|0)!=J[b+104>>2]){J[b+4>>2]=g+1;g=K[g|0];break o}g=uf(b)}if((g&-33)==88){f=fc-432|0;fc=f;c=J[b+4>>2];p:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0];break p}g=uf(b)}q:{r:{while(1){if((g|0)!=48)s:{if((g|0)!=46)break q;c=J[b+4>>2];if((c|0)==J[b+104>>2])break s;J[b+4>>2]=c+1;g=K[c|0];break r}else{c= +J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0]}else g=uf(b);D=1;continue}break}g=uf(b)}p=1;if((g|0)!=48)break q;while(1){c=r;r=c-1|0;s=s-!c|0;c=J[b+4>>2];t:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;g=K[c|0];break t}g=uf(b)}if((g|0)==48)continue;break}D=1}l=1073676288;while(1){u:{c=g|32;v:{w:{u=g-48|0;if(u>>>0<10)break w;E=(g|0)!=46;if(E&c-97>>>0>5)break u;if(E)break w;if(p)break u;p=1;r=i;s=h;break v}c=(g|0)>57?c-87|0:u;x:{if((h|0)<=0&i>>>0<=7|(h|0)<0){m=c+(m<<4)|0;break x}if(!h&i>>>0<=28){ik(f+ +48|0,c);Zf(f+32|0,y,z,j,l,0,0,0,1073414144);y=J[f+32>>2];z=J[f+36>>2];j=J[f+40>>2];l=J[f+44>>2];Zf(f+16|0,J[f+48>>2],J[f+52>>2],J[f+56>>2],J[f+60>>2],y,z,j,l);Nj(f,J[f+16>>2],J[f+20>>2],J[f+24>>2],J[f+28>>2],k,o,w,x);w=J[f+8>>2];x=J[f+12>>2];k=J[f>>2];o=J[f+4>>2];break x}if(F|!c)break x;Zf(f+80|0,y,z,j,l,0,0,0,1073610752);Nj(f- -64|0,J[f+80>>2],J[f+84>>2],J[f+88>>2],J[f+92>>2],k,o,w,x);w=J[f+72>>2];x=J[f+76>>2];F=1;k=J[f+64>>2];o=J[f+68>>2]}i=i+1|0;h=i?h:h+1|0;D=1}c=J[b+4>>2];if((c|0)!=J[b+104>>2]){J[b+ +4>>2]=c+1;g=K[c|0]}else g=uf(b);continue}break}y:{if(!D){c=J[b+116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;z:{A:{if(c){c=J[b+4>>2];J[b+4>>2]=c-1;if(!d)break A;J[b+4>>2]=c-2;if(!p)break z;J[b+4>>2]=c-3;break z}if(d)break z}Jk(b,0,0)}sm(f+96|0,+(t|0)*0);k=J[f+96>>2];o=J[f+100>>2];c=J[f+108>>2];b=J[f+104>>2];break y}if((h|0)<=0&i>>>0<=7|(h|0)<0){j=i;l=h;while(1){m=m<<4;j=j+1|0;l=j?l:l+1|0;if((j|0)!=8|l)continue;break}}B:{C:{D:{if((g&-33)==80){j=SS(b,d);c=jc;l=c;if(j|(c|0)!=-2147483648)break B;if(d){c=J[b+ +116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;if(c)break D;break C}k=0;o=0;Jk(b,0,0);c=0;b=0;break y}j=0;l=0;if(J[b+116>>2]<0)break B}J[b+4>>2]=J[b+4>>2]-1}j=0;l=0}if(!m){sm(f+112|0,+(t|0)*0);k=J[f+112>>2];o=J[f+116>>2];c=J[f+124>>2];b=J[f+120>>2];break y}b=p?r:i;d=j+(b<<2)|0;b=l+((p?s:h)<<2|b>>>30)|0;i=d-32|0;c=0-A|0;h=(d>>>0>>0?b+1|0:b)-(d>>>0<32)|0;b=h;if((b|0)>0)b=1;else b=c>>>0>>0&(b|0)>=0;if(b){J[698583]=68;ik(f+160|0,t);Zf(f+144|0,J[f+160>>2],J[f+164>>2],J[f+168>>2],J[f+172>>2],-1,-1,-1,2147418111); +Zf(f+128|0,J[f+144>>2],J[f+148>>2],J[f+152>>2],J[f+156>>2],-1,-1,-1,2147418111);k=J[f+128>>2];o=J[f+132>>2];c=J[f+140>>2];b=J[f+136>>2];break y}b=A-226|0;c=b>>31;if((h|0)>=(c|0)&b>>>0<=i>>>0|(c|0)<(h|0)){if((m|0)>=0)while(1){Nj(f+416|0,k,o,w,x,0,0,0,-1073807360);b=GS(k,o,w,x,1073610752);c=(b|0)>=0;b=c;Nj(f+400|0,k,o,w,x,b?J[f+416>>2]:k,b?J[f+420>>2]:o,b?J[f+424>>2]:w,b?J[f+428>>2]:x);b=i;i=b-1|0;h=h-!b|0;w=J[f+408>>2];x=J[f+412>>2];k=J[f+400>>2];o=J[f+404>>2];m=c|m<<1;if((m|0)>=0)continue;break}h= +h-((A>>31)+(i>>>0>>0)|0)|0;b=(i-A|0)+32|0;h=b>>>0<32?h+1|0:h;c=b>>>0>>0&(h|0)<=0|(h|0)<0?(b|0)>0?b:0:B;E:{if((c|0)>=113){ik(f+384|0,t);r=J[f+392>>2];s=J[f+396>>2];y=J[f+384>>2];z=J[f+388>>2];j=0;b=0;break E}sm(f+352|0,Kp(1,144-c|0));ik(f+336|0,t);y=J[f+336>>2];z=J[f+340>>2];r=J[f+344>>2];s=J[f+348>>2];VS(f+368|0,J[f+352>>2],J[f+356>>2],J[f+360>>2],J[f+364>>2],y,z,r,s);n=J[f+376>>2];e=J[f+380>>2];j=J[f+372>>2];b=J[f+368>>2]}d=!(m&1)&((ir(k,o,w,x,0,0,0,0)|0)!=0&(c|0)<32);Ys(f+320|0,d+m|0);Zf(f+ +304|0,y,z,r,s,J[f+320>>2],J[f+324>>2],J[f+328>>2],J[f+332>>2]);c=b;Nj(f+272|0,J[f+304>>2],J[f+308>>2],J[f+312>>2],J[f+316>>2],b,j,n,e);b=d;Zf(f+288|0,y,z,r,s,b?0:k,b?0:o,b?0:w,b?0:x);Nj(f+256|0,J[f+288>>2],J[f+292>>2],J[f+296>>2],J[f+300>>2],J[f+272>>2],J[f+276>>2],J[f+280>>2],J[f+284>>2]);rG(f+240|0,J[f+256>>2],J[f+260>>2],J[f+264>>2],J[f+268>>2],c,j,n,e);b=J[f+240>>2];d=J[f+244>>2];c=J[f+248>>2];j=J[f+252>>2];if(!ir(b,d,c,j,0,0,0,0))J[698583]=68;US(f+224|0,b,d,c,j,i);k=J[f+224>>2];o=J[f+228>>2]; +c=J[f+236>>2];b=J[f+232>>2];break y}J[698583]=68;ik(f+208|0,t);Zf(f+192|0,J[f+208>>2],J[f+212>>2],J[f+216>>2],J[f+220>>2],0,0,0,65536);Zf(f+176|0,J[f+192>>2],J[f+196>>2],J[f+200>>2],J[f+204>>2],0,0,0,65536);k=J[f+176>>2];o=J[f+180>>2];c=J[f+188>>2];b=J[f+184>>2]}J[q+16>>2]=k;J[q+20>>2]=o;J[q+24>>2]=b;J[q+28>>2]=c;fc=f+432|0;i=J[q+24>>2];h=J[q+28>>2];j=J[q+16>>2];l=J[q+20>>2];break a}if(J[b+116>>2]<0)break n;J[b+4>>2]=J[b+4>>2]-1}g=b;m=c;f=d;d=0;e=fc-8976|0;fc=e;F=0-A|0;E=F-B|0;F:{G:{while(1){if((m| +0)!=48)H:{if((m|0)!=46)break F;b=J[g+4>>2];if((b|0)==J[g+104>>2])break H;J[g+4>>2]=b+1;m=K[b|0];break G}else{b=J[g+4>>2];if((b|0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0]}else m=uf(g);d=1;continue}break}m=uf(g)}D=1;if((m|0)!=48)break F;while(1){b=i;i=b-1|0;h=h-!b|0;b=J[g+4>>2];I:{if((b|0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0];break I}m=uf(g)}if((m|0)==48)continue;break}d=1}J[e+784>>2]=0;J:{K:{b=(m|0)==46;c=m-48|0;L:{M:{N:{if(b|c>>>0<=9)while(1){O:{if(b&1){if(!D){i=j;h=l;D=1;break O}b=!d;break N}j=j+1| +0;l=j?l:l+1|0;if((p|0)<=2044){u=(m|0)==48?u:j;b=(e+784|0)+(p<<2)|0;if(n)c=(P(J[b>>2],10)+m|0)-48|0;J[b>>2]=c;d=1;c=n+1|0;b=(c|0)==9;n=b?0:c;p=b+p|0;break O}if((m|0)==48)break O;J[e+8960>>2]=J[e+8960>>2]|1;u=18396}b=J[g+4>>2];P:{if((b|0)!=J[g+104>>2]){J[g+4>>2]=b+1;m=K[b|0];break P}m=uf(g)}b=(m|0)==46;c=m-48|0;if(b|c>>>0<10)continue;break}i=D?i:j;h=D?h:l;if(!(!d|(m&-33)!=69)){k=SS(g,f);b=jc;o=b;Q:{if(k|(b|0)!=-2147483648)break Q;if(!f)break L;k=0;o=0;if(J[g+116>>2]<0)break Q;J[g+4>>2]=J[g+4>>2]-1}h= +h+o|0;i=i+k|0;h=i>>>0>>0?h+1|0:h;break K}b=!d;if((m|0)<0)break M}if(J[g+116>>2]<0)break M;J[g+4>>2]=J[g+4>>2]-1}if(!b)break K;J[698583]=28}Jk(g,0,0);i=0;h=0;c=0;b=0;break J}b=J[e+784>>2];if(!b){sm(e,+(t|0)*0);i=J[e+8>>2];h=J[e+12>>2];c=J[e+4>>2];b=J[e>>2];break J}if(!(j>>>0>9&(l|0)>=0|(l|0)>0|((i|0)!=(j|0)|(h|0)!=(l|0))|(b>>>B|0?(B|0)<=30:0))){ik(e+48|0,t);Ys(e+32|0,b);Zf(e+16|0,J[e+48>>2],J[e+52>>2],J[e+56>>2],J[e+60>>2],J[e+32>>2],J[e+36>>2],J[e+40>>2],J[e+44>>2]);i=J[e+24>>2];h=J[e+28>>2];c= +J[e+20>>2];b=J[e+16>>2];break J}b=F>>>1|0;if(b>>>0>>0&(h|0)>=0|(h|0)>0){J[698583]=68;ik(e+96|0,t);Zf(e+80|0,J[e+96>>2],J[e+100>>2],J[e+104>>2],J[e+108>>2],-1,-1,-1,2147418111);Zf(e- -64|0,J[e+80>>2],J[e+84>>2],J[e+88>>2],J[e+92>>2],-1,-1,-1,2147418111);i=J[e+72>>2];h=J[e+76>>2];c=J[e+68>>2];b=J[e+64>>2];break J}b=A-226|0;c=i>>>0>>0;b=b>>31;if(c&(h|0)<=(b|0)|(b|0)>(h|0)){J[698583]=68;ik(e+144|0,t);Zf(e+128|0,J[e+144>>2],J[e+148>>2],J[e+152>>2],J[e+156>>2],0,0,0,65536);Zf(e+112|0,J[e+128>>2], +J[e+132>>2],J[e+136>>2],J[e+140>>2],0,0,0,65536);i=J[e+120>>2];h=J[e+124>>2];c=J[e+116>>2];b=J[e+112>>2];break J}if(n){if((n|0)<=8){b=(e+784|0)+(p<<2)|0;g=J[b>>2];while(1){g=P(g,10);n=n+1|0;if((n|0)!=9)continue;break}J[b>>2]=g}p=p+1|0}n=i;R:{if((i|0)<(u|0)|(u|0)>=9|(i|0)>17)break R;if((i|0)==9){ik(e+192|0,t);Ys(e+176|0,J[e+784>>2]);Zf(e+160|0,J[e+192>>2],J[e+196>>2],J[e+200>>2],J[e+204>>2],J[e+176>>2],J[e+180>>2],J[e+184>>2],J[e+188>>2]);i=J[e+168>>2];h=J[e+172>>2];c=J[e+164>>2];b=J[e+160>>2];break J}if((n| +0)<=8){ik(e+272|0,t);Ys(e+256|0,J[e+784>>2]);Zf(e+240|0,J[e+272>>2],J[e+276>>2],J[e+280>>2],J[e+284>>2],J[e+256>>2],J[e+260>>2],J[e+264>>2],J[e+268>>2]);ik(e+224|0,J[(0-n<<2)+2622592>>2]);FS(e+208|0,J[e+240>>2],J[e+244>>2],J[e+248>>2],J[e+252>>2],J[e+224>>2],J[e+228>>2],J[e+232>>2],J[e+236>>2]);i=J[e+216>>2];h=J[e+220>>2];c=J[e+212>>2];b=J[e+208>>2];break J}b=(P(n,-3)+B|0)+27|0;c=J[e+784>>2];if(c>>>b|0?(b|0)<=30:0)break R;ik(e+352|0,t);Ys(e+336|0,c);Zf(e+320|0,J[e+352>>2],J[e+356>>2],J[e+360>>2], +J[e+364>>2],J[e+336>>2],J[e+340>>2],J[e+344>>2],J[e+348>>2]);ik(e+304|0,J[(n<<2)+2622520>>2]);Zf(e+288|0,J[e+320>>2],J[e+324>>2],J[e+328>>2],J[e+332>>2],J[e+304>>2],J[e+308>>2],J[e+312>>2],J[e+316>>2]);i=J[e+296>>2];h=J[e+300>>2];c=J[e+292>>2];b=J[e+288>>2];break J}while(1){b=p;p=b-1|0;if(!J[(e+784|0)+(p<<2)>>2])continue;break}u=0;d=(n|0)%9|0;S:{if(!d){c=0;break S}c=0;d=(n|0)<0?d+9|0:d;T:{if(!b){b=0;break T}i=J[(0-d<<2)+2622592>>2];k=1E9/(i|0)|0;m=0;g=0;while(1){j=m;h=e+784|0;l=h+(g<<2)|0;m=J[l>> +2];p=(m>>>0)/(i>>>0)|0;j=j+p|0;J[l>>2]=j;j=!j&(c|0)==(g|0);c=j?c+1&2047:c;n=j?n-9|0:n;m=P(k,m-P(i,p)|0);g=g+1|0;if((g|0)!=(b|0))continue;break}if(!m)break T;J[h+(b<<2)>>2]=m;b=b+1|0}n=(n-d|0)+9|0}while(1){g=(e+784|0)+(c<<2)|0;m=(n|0)<36;U:{while(1){if(!m&((n|0)!=36|M[g>>2]>=10384593))break U;p=b+2047|0;d=0;while(1){j=b;k=p&2047;p=(e+784|0)+(k<<2)|0;b=J[p>>2];l=b>>>3|0;b=b<<29;i=b+d|0;h=b>>>0>i>>>0?l+1|0:l;if(!h&i>>>0<1000000001)d=0;else{b=i;d=xEb(b,h,1E9,0);i=b-vEb(d,jc,1E9,0)|0}J[p>>2]=i;b=(c|0)== +(k|0)?j:i?j:k;i=j-1&2047;b=(i|0)!=(k|0)?j:b;p=k-1|0;if((c|0)!=(k|0))continue;break}u=u-29|0;b=j;if(!d)continue;break}c=c-1&2047;if((c|0)==(b|0)){g=(b+2046&2047)<<2;b=e+784|0;j=g+b|0;J[j>>2]=J[j>>2]|J[b+(i<<2)>>2];b=i}n=n+9|0;J[(e+784|0)+(c<<2)>>2]=d;continue}break}V:{W:while(1){i=b+1&2047;k=(e+784|0)+((b-1&2047)<<2)|0;while(1){j=(n|0)>45?9:1;X:{while(1){d=c;g=0;Y:{while(1){Z:{c=d+g&2047;if((c|0)==(b|0))break Z;c=J[(e+784|0)+(c<<2)>>2];h=J[(g<<2)+2622544>>2];if(c>>>0>>0)break Z;if(c>>>0>h>>>0)break Y; +g=g+1|0;if((g|0)!=4)continue}break}if((n|0)!=36)break Y;i=0;h=0;g=0;j=0;l=0;while(1){c=d+g&2047;if((c|0)==(b|0)){b=b+1&2047;J[((b<<2)+e|0)+780>>2]=0}Ys(e+768|0,J[(e+784|0)+(c<<2)>>2]);Zf(e+752|0,i,h,j,l,0,0,1342177280,1075633366);Nj(e+736|0,J[e+752>>2],J[e+756>>2],J[e+760>>2],J[e+764>>2],J[e+768>>2],J[e+772>>2],J[e+776>>2],J[e+780>>2]);j=J[e+744>>2];l=J[e+748>>2];i=J[e+736>>2];h=J[e+740>>2];g=g+1|0;if((g|0)!=4)continue;break}ik(e+720|0,t);Zf(e+704|0,i,h,j,l,J[e+720>>2],J[e+724>>2],J[e+728>>2],J[e+ +732>>2]);j=J[e+712>>2];l=J[e+716>>2];i=0;h=0;k=J[e+704>>2];o=J[e+708>>2];p=u+113|0;g=p-A|0;m=(g|0)<(B|0);c=m?(g|0)>0?g:0:B;if((c|0)<=112)break X;break V}u=j+u|0;c=b;if((b|0)==(d|0))continue;break}l=1E9>>>j|0;m=-1<>2];h=h+(f>>>j|0)|0;J[g>>2]=h;h=!h&(c|0)==(d|0);c=h?c+1&2047:c;n=h?n-9|0:n;g=P(l,f&m);d=d+1&2047;if((d|0)!=(b|0))continue;break}if(!g)continue;if((c|0)!=(i|0)){J[p+(b<<2)>>2]=g;b=i;continue W}J[k>>2]=J[k>>2]|1;continue}break}break}sm(e+ +656|0,Kp(1,225-c|0));VS(e+688|0,J[e+656>>2],J[e+660>>2],J[e+664>>2],J[e+668>>2],k,o,j,l);y=J[e+696>>2];z=J[e+700>>2];w=J[e+688>>2];x=J[e+692>>2];sm(e+640|0,Kp(1,113-c|0));TS(e+672|0,k,o,j,l,J[e+640>>2],J[e+644>>2],J[e+648>>2],J[e+652>>2]);i=J[e+672>>2];h=J[e+676>>2];r=J[e+680>>2];s=J[e+684>>2];rG(e+624|0,k,o,j,l,i,h,r,s);Nj(e+608|0,w,x,y,z,J[e+624>>2],J[e+628>>2],J[e+632>>2],J[e+636>>2]);j=J[e+616>>2];l=J[e+620>>2];k=J[e+608>>2];o=J[e+612>>2]}n=d+4&2047;_:{if((n|0)==(b|0))break _;n=J[(e+784|0)+(n<< +2)>>2];$:{if(n>>>0<=499999999){if(!n&(d+5&2047)==(b|0))break $;sm(e+496|0,+(t|0)*.25);Nj(e+480|0,i,h,r,s,J[e+496>>2],J[e+500>>2],J[e+504>>2],J[e+508>>2]);r=J[e+488>>2];s=J[e+492>>2];i=J[e+480>>2];h=J[e+484>>2];break $}if((n|0)!=5E8){sm(e+592|0,+(t|0)*.75);Nj(e+576|0,i,h,r,s,J[e+592>>2],J[e+596>>2],J[e+600>>2],J[e+604>>2]);r=J[e+584>>2];s=J[e+588>>2];i=J[e+576>>2];h=J[e+580>>2];break $}G=+(t|0);if((d+5&2047)==(b|0)){sm(e+528|0,G*.5);Nj(e+512|0,i,h,r,s,J[e+528>>2],J[e+532>>2],J[e+536>>2],J[e+540>>2]); +r=J[e+520>>2];s=J[e+524>>2];i=J[e+512>>2];h=J[e+516>>2];break $}sm(e+560|0,G*.75);Nj(e+544|0,i,h,r,s,J[e+560>>2],J[e+564>>2],J[e+568>>2],J[e+572>>2]);r=J[e+552>>2];s=J[e+556>>2];i=J[e+544>>2];h=J[e+548>>2]}if((c|0)>111)break _;TS(e+464|0,i,h,r,s,0,0,0,1073676288);if(ir(J[e+464>>2],J[e+468>>2],J[e+472>>2],J[e+476>>2],0,0,0,0))break _;Nj(e+448|0,i,h,r,s,0,0,0,1073676288);r=J[e+456>>2];s=J[e+460>>2];i=J[e+448>>2];h=J[e+452>>2]}Nj(e+432|0,k,o,j,l,i,h,r,s);rG(e+416|0,J[e+432>>2],J[e+436>>2],J[e+440>>2], +J[e+444>>2],w,x,y,z);j=J[e+424>>2];l=J[e+428>>2];k=J[e+416>>2];o=J[e+420>>2];aa:{if((E-2|0)>=(p&2147483647))break aa;J[e+408>>2]=j;J[e+412>>2]=l&2147483647;J[e+400>>2]=k;J[e+404>>2]=o;Zf(e+384|0,k,o,j,l,0,0,0,1073610752);d=GS(J[e+400>>2],J[e+404>>2],J[e+408>>2],J[e+412>>2],1081081856);b=(d|0)>=0;j=b?J[e+392>>2]:j;l=b?J[e+396>>2]:l;k=b?J[e+384>>2]:k;o=b?J[e+388>>2]:o;i=ir(i,h,r,s,0,0,0,0);u=b+u|0;if((u+110|0)<=(E|0))if(!(m&((c|0)!=(g|0)|(d|0)<0)&(i|0)!=0))break aa;J[698583]=68}US(e+368|0,k,o,j,l,u); +i=J[e+376>>2];h=J[e+380>>2];c=J[e+372>>2];b=J[e+368>>2]}J[q+40>>2]=i;J[q+44>>2]=h;J[q+32>>2]=b;J[q+36>>2]=c;fc=e+8976|0;i=J[q+40>>2];h=J[q+44>>2];j=J[q+32>>2];l=J[q+36>>2];break a;case 3:break j;default:break m}c=J[b+116>>2];if((c|0)>0)c=1;else c=(c|0)>=0;if(c)J[b+4>>2]=J[b+4>>2]-1;break i}ba:{c=J[b+4>>2];ca:{if((c|0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break ca}c=uf(b)}if((c|0)==40){g=1;break ba}h=2147450880;if(J[b+116>>2]<0)break a;J[b+4>>2]=J[b+4>>2]-1;break a}while(1){da:{c=J[b+4>>2];ea:{if((c| +0)!=J[b+104>>2]){J[b+4>>2]=c+1;c=K[c|0];break ea}c=uf(b)}if(!(c-48>>>0<10|c-65>>>0<26|(c|0)==95))if(c-97>>>0>=26)break da;g=g+1|0;continue}break}h=2147450880;if((c|0)==41)break a;c=J[b+116>>2];if((c|0)>=0|(c|0)>0)J[b+4>>2]=J[b+4>>2]-1;fa:{if(d){if(g)break fa;break a}break i}while(1){if((c|0)>0|(c|0)>=0)J[b+4>>2]=J[b+4>>2]-1;g=g-1|0;if(g)continue;break}break a}J[698583]=28;Jk(b,0,0)}h=0}J[a>>2]=j;J[a+4>>2]=l;J[a+8>>2]=i;J[a+12>>2]=h;fc=q+48|0}function XBa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i= +0,j=0;d=fc-112|0;fc=d;i=si();b=d+108|0;Fn(b,J[a+44>>2]);J[699344]=0;da(5278,d+104|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if((b|0)!=1){J[699344]=0;f=J[d+104>>2];J[d+96>>2]=0;J[d+100>>2]=J[685894];b=ha(5279,f|0,d+96|0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;if(b)break u;J[699344]=0;b=ja(5178,d+60|0,J[685886],2385400,336,2413488,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break t;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)== +1)break v;break b}a=Z()|0;break c}a=Z()|0;Kc(b);break d}if((b|0)<0){J[699344]=0;b=ja(5178,d+60|0,2391707,2385400,338,2413488,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break s;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break d}if(b>>>0<=7){J[699344]=0;b=ja(5178,d+60|0,2392092,2385400,340,2413488,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break r;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break d}J[699344]=0;b=d+96|0;c=pd(b, +2392646,-1);e=J[699344];J[699344]=0;if((e|0)==1)break f;if(!c){J[699344]=0;ha(5279,f|0,b|0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;b=pd(b,2393239,-1);c=J[699344];J[699344]=0;if((c|0)==1)break f;if(!b){J[699344]=0;b=_(4,136)|0;c=J[699344];J[699344]=0;w:{x:{y:{z:{A:{B:{if((c|0)==1)break B;J[699344]=0;c=_(5319,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break q;J[699344]=0;J[d+60>>2]=0;b=d+60|0;aa(5145,b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break B;J[699344]=0;aa(5153,a+ +48|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A;b=J[d+60>>2];J[d+60>>2]=0;C:{if(!b)break C;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break C;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+48>>2];J[699344]=0;J[d+60>>2]=0;c=d+60|0;aa(5145,c|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break z;J[699344]=0;da(5386,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break y;b=J[d+60>>2];J[d+60>>2]=0;D:{if(!b)break D;J[699344]=0; +c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break D;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;$(5332,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;c=J[a+48>>2];if(J[c+16>>2]){b=J[c+20>>2];c=c+12|0;J[d+64>>2]=c;J[d+60>>2]=b;if(!b){J[699344]=0;da(5243,d+60|0,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break f}b=J[b+8>>2];if(b)break x}b=3;break w}a=Z()|0;break d}a=Z()|0;zc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;zc(d+60|0); +break d}b=J[b+8>>2]?3:4}J[a+56>>2]=b;J[699344]=0;kh(a+92|0,0,0,3,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2];J[699344]=0;ia(b|0,i|0,a|0,3,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;$(5384,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;b=d+96|0;c=ha(5279,f|0,b|0,0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;if(!c)break o;J[699344]=0;b=pd(b,2393603,-1);c=J[699344];J[699344]=0;if((c|0)==1)break f;if(b)break o;J[699344]=0;b=d+60|0;$(5387,b|0);c= +J[699344];J[699344]=0;E:{F:{G:{if((c|0)!=1){J[699344]=0;aa(5153,a+52|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break G;b=J[d+60>>2];J[d+60>>2]=0;H:{if(!b)break H;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break H;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+52>>2];J[699344]=0;J[d+60>>2]=0;c=d+60|0;aa(5145,c|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break F;J[699344]=0;da(5388,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)== +1)break E;b=J[d+60>>2];J[d+60>>2]=0;I:{if(!b)break I;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break I;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;$(5332,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;break o}a=Z()|0;break d}a=Z()|0;zc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;zc(d+60|0);break d}J[699344]=0;b=pd(d+96|0,2394071,-1);c=J[699344];J[699344]=0;if((c|0)==1)break f;if(!b){J[a+56>>2]=1;J[699344]=0;kh(a+92|0, +0,0,1,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2];J[699344]=0;ia(b|0,i|0,a|0,1,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;$(5384,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break o;break f}J[699344]=0;b=ja(5178,d+60|0,2394188,2385400,385,2413488,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break d}J[a+56>>2]=5;J[699344]=0;kh(a+92|0,0,0,1,0);b=J[699344];J[699344]=0;if((b|0)==1)break f; +b=J[J[i>>2]+44>>2];J[699344]=0;ia(b|0,i|0,a|0,1,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;$(5384,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;break n}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;uc(b);break d}a=Z()|0;break d}if(J[a+56>>2]==1){J[699344]=0;b=d+60|0;$(5389,b|0);c=J[699344];J[699344]=0;J:{if((c|0)!=1){J[699344]=0;aa(5153,a+108|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;K:{if(!b)break K;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]= +c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break K;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+108>>2];J[699344]=0;J[d+60>>2]=0;aa(5145,d+60|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]=0;da(5390,b|0,J[d+60>>2]);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;L:{if(!b)break L;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break L;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]= +0;$(5332,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;while(1){J[699344]=0;b=ha(5279,f|0,d+96|0,d+12|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(!b){J[699344]=0;b=ja(5178,d+60|0,2398413,2385400,403,2413488,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break d}a=Z()|0;break d}J[699344]=0;b=d+96|0;c=pd(b,2398778,-1);e=J[699344];J[699344]=0;if((e|0)==1)break e;M:{N:{if(!c)break N;J[699344]=0;c=pd(b,2399070,-1); +e=J[699344];J[699344]=0;if((e|0)==1)break e;if(!c)break N;J[699344]=0;c=pd(b,2399275,-1);b=J[699344];J[699344]=0;if((b|0)==1)break e;b=0;if(c)break M}b=J[d+12>>2]}J[699344]=0;$(5332,f|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;if(!b)continue;break}break J}a=Z()|0;zc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;zc(d+60|0);break d}a=Z()|0;break d}e=0;c=J[a+108>>2];O:{if(((J[c+56>>2]-J[c+52>>2]|0)+1|0)<=0)break O;P:{Q:{while(1){J[699344]=0;ca(5391,d+60|0,c|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break Q; +c=J[d+60>>2];J[d+60>>2]=0;R:{if(!c)break R;J[699344]=0;h=J[c+4>>2]-1|0;J[c+4>>2]=h;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(h)break R;J[699344]=0;$(5147,c|0);h=J[699344];J[699344]=0;if((h|0)==1)break a}if((b|0)!=J[c+20>>2]){e=e+1|0;c=J[a+108>>2];if((e|0)>=((J[c+56>>2]-J[c+52>>2]|0)+1|0))break O;continue}break}b=J[c+8>>2];S:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+60|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break S;a=Z()|0;break d}J[d+60>>2]=0}J[699344]=0;aa(5153,a+116|0,d+60|0)|0; +b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break P;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break P;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break P}break a}a=Z()|0;zc(d+60|0);break d}a=Z()|0;break d}b=J[a+116>>2];J[a+120>>2]=J[(b?b+12|0:2743576)>>2]}b=J[a+116>>2];if(!(J[b+8>>2]?b:0)){J[699344]=0;b=ja(5178,d+60|0,2398413,2385400,425,2413488,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break m;J[699344]=0;$(5179,b|0); +a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break d}J[699344]=0;kh(a+92|0,0,0,2,0);b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[J[i>>2]+44>>2];J[699344]=0;ia(b|0,i|0,a|0,2,0);b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;$(5384,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}while(1){T:{J[699344]=0;b=d+96|0;c=ha(5279,f|0,b|0,0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break T;if(!c)break n;J[699344]=0;b=pd(b,2393603,-1);c=J[699344];J[699344]=0;if((c|0)==1)break T;if(!b){J[699344]= +0;b=d+60|0;$(5387,b|0);c=J[699344];J[699344]=0;U:{V:{W:{if((c|0)!=1){J[699344]=0;aa(5153,a+52|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break W;b=J[d+60>>2];J[d+60>>2]=0;X:{if(!b)break X;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break X;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+52>>2];J[699344]=0;J[d+60>>2]=0;c=d+60|0;aa(5145,c|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break V;J[699344]=0;da(5388,b|0,c|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break U;b=J[d+60>>2];J[d+60>>2]=0;Y:{if(!b)break Y;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break Y;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;$(5332,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;break n}a=Z()|0;break d}a=Z()|0;zc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;zc(d+60|0);break d}J[699344]=0;$(5332,f|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue}break}a=Z()|0;break d}Z:switch(J[a+ +56>>2]-1|0){case 0:case 4:J[699344]=0;b=d+60|0;ia(5392,b|0,a|0,-1,0);f=J[699344];J[699344]=0;_:{$:{aa:{ba:{ca:{da:{ea:{fa:{ga:{ha:{if((f|0)!=1){J[699344]=0;f=a+124|0;aa(5153,f|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ha;b=J[d+60>>2];J[d+60>>2]=0;ia:{if(!b)break ia;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break ia;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[f>>2];ja:{if(!b)break ja;J[699344]=0;c=d+60|0;da(5393,c| +0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break ga;J[699344]=0;aa(5153,a+112|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break fa;b=J[d+60>>2];J[d+60>>2]=0;if(!b)break ja;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break ja;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;aa(5145,f|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[a+56>>2];if(J[a+112>>2])break $;e=a+112|0;if((b|0)!=1)break aa;J[699344]=0;f=aa(5149, +d+12|0,2399504)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ea;J[699344]=0;b=ga(5343,d+60|0,f|0,a+8|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break da;J[699344]=0;c=_(4,128)|0;h=J[699344];J[699344]=0;if((h|0)==1)break ca;J[699344]=0;h=aa(5394,c|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;J[699344]=0;J[d+48>>2]=0;c=d+48|0;aa(5145,c|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break ca;J[699344]=0;aa(5153,e|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ba;c=J[d+48>>2];J[d+48>>2]=0;ka:{if(!c)break ka; +J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break ka;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[b+24>>2]=2392964;J[b>>2]=2392932;c=J[b+28>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[b+28>>2]=0}J[b+16>>2]=2392964;c=J[b+20>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[b+20>>2]=0}wc(b+8|0);wc(f);b=J[a+116>>2];b=J[(b?b+12|0:2743576)>>2];f=J[a+112>>2];J[699344]=0;ca(5395,f|0,-1,b|0); +b=J[699344];J[699344]=0;if((b|0)==1)break f;break _}a=Z()|0;break d}a=Z()|0;zc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;zc(d+60|0);break d}a=Z()|0;break d}a=Z()|0;wc(f);break d}a=Z()|0;break h}a=Z()|0;zc(d+48|0);break h}J[699344]=0;f=aa(5149,d+48|0,2399504)|0;b=J[699344];J[699344]=0;la:{ma:{na:{oa:{pa:{qa:{if((b|0)!=1){J[699344]=0;b=d+12|0;h=a+8|0;da(5396,b|0,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break qa;J[699344]=0;b=ga(5343,d+60|0,f|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break pa;J[699344]= +0;c=_(4,128)|0;g=J[699344];J[699344]=0;if((g|0)==1)break oa;J[699344]=0;g=aa(5394,c|0,b|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break k;J[699344]=0;J[d+56>>2]=0;c=d+56|0;aa(5145,c|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break oa;J[699344]=0;aa(5153,e|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break na;c=J[d+56>>2];J[d+56>>2]=0;ra:{if(!c)break ra;J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(g)break ra;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0; +if((c|0)==1)break a}J[b+24>>2]=2392964;J[b>>2]=2392932;c=J[b+28>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)kc[J[J[c>>2]+4>>2]](c);J[b+28>>2]=0}J[b+16>>2]=2392964;c=J[b+20>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)kc[J[J[c>>2]+4>>2]](c);J[b+20>>2]=0}wc(b+8|0);J[d+36>>2]=2392964;J[d+12>>2]=2392932;b=J[d+40>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[d+40>>2]=0}J[d+28>>2]=2392964;b=J[d+32>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[d+32>>2]=0}wc(d+ +20|0);wc(f);b=J[e>>2];J[699344]=0;f=d+12|0;da(5283,f|0,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break ma;c=J[d+12>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;ca(5395,b|0,-1,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break la;wc(f);break _}a=Z()|0;break d}a=Z()|0;wc(f);break d}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;zc(d+56|0);break j}a=Z()|0;break d}a=Z()|0;wc(d+12|0);break d}if((b|0)!=5)break _;J[a+56>>2]=2}J[699344]=0;kh(a+92|0,0,0,4,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2]; +J[699344]=0;ia(b|0,i|0,a|0,4,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;$(5384,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;break;default:break Z}J[699344]=0;kh(a+92|0,0,0,8,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[J[i>>2]+44>>2];J[699344]=0;ia(b|0,i|0,a|0,8,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;$(5384,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;kh(a+96|0,0,0,2,0);a=J[699344];J[699344]=0;if((a|0)==1)break f;wc(d+96|0);a=J[d+104>> +2];J[d+104>>2]=0;sa:{if(!a)break sa;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(b)break sa;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[d+108>>2];J[d+108>>2]=0;ta:{if(!a)break ta;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(b)break ta;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+112|0;return}a=Z()|0;break d}a=Z()|0;uc(c);break h}a=Z()|0;uc(c)}Ed(b)}Ed(d+12|0); +wc(f);break d}Ed(b);wc(f);break d}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0}wc(d+96|0);zc(d+104|0)}zc(d+108|0);ba(a|0);B()}B()}ea(0)|0;Bc();B()}function $ta(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=Q(0),l=0,m=0,n=Q(0),o=0,p=0,q=0,r=0,s=0,t=0,u=0;i=fc-3088|0;fc=i;kc[J[J[a>>2]+48>>2]](a);g=J[a+12>>2];if(g)uc(_v(g));g=J[a+16>>2];if(g)uc(_v(g));g=J[a+20>>2];if(g)uc(_v(g));J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;m=L[b+10>>1];p=L[b+8>>1];e=P(m,p);u=sh(i+4|0,i+12|0,e,1);J[699344]=0;h= +_(4,32)|0;g=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((g|0)!=1){J[699344]=0;f=ga(5672,h|0,m|0,p|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;J[a+12>>2]=f;if(d>>>0<4){d=d<<2;J[a+36>>2]=J[d+2427836>>2];J[a+40>>2]=J[d+2427820>>2]}d=0;g=J[c>>2];r=0;f:{if(!g)break f;if(!J[g+20>>2]){J[699344]=0;$(5177,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break b}c=L[g+12>>1];t=L[g+14>>1];g:{if(!L[g+8>>1]){if(J[685890]>=(c+t|0))break g;J[699344]=0;b=ja(5178,i+2064|0,2392189,2392518,577,2393703,0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break b;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break a}r=c+J[g+20>>2]|0;break f}r=c+J[685889]|0}g=L[b+8>>1]?J[b+16>>2]:0;l=L[b+12>>1];c=J[i+12>>2];while(1){q=d<<2;h=q+(i+1040|0)|0;n=Q(d<<16);k=Q(n*Q(.6086959838867188));h:{if(Q(R(k))>2]=j;h=q+(i+2064|0)|0;k=Q(n*Q(.3043479919433594));i:{if(Q(R(k))>2]=j;h=q+(i+16|0)|0;k=Q(n*Q(.08695600181818008));j:{if(Q(R(k))< +Q(2147483648)){j=~~k;break j}j=-2147483648}J[h>>2]=j;d=d+1|0;if((d|0)!=256)continue;break}break c}a=Z()|0;break a}a=Z()|0;uc(h);break a}B()}q=(m|0)!=0&(p|0)!=0;if(q){l=P(l,3);while(1){j=0;h=c;d=g;while(1){H[h|0]=(J[(i+16|0)+(K[d|0]<<2)>>2]+(J[(i+2064|0)+(K[d+2|0]<<2)>>2]+J[(i+1040|0)+(K[d+1|0]<<2)>>2]|0)|0)+32768>>>16^128;h=h+1|0;d=d+3|0;j=j+1|0;if((j|0)!=(m|0))continue;break}c=c+m|0;g=g+l|0;o=o+1|0;if((p|0)!=(o|0))continue;break}c=J[i+12>>2]}if(!(!e|J[a+36>>2]>=0)){d=c+e|0;while(1){H[c|0]=K[c|0]^ +-1;c=c+1|0;if(d>>>0>c>>>0)continue;break}c=J[i+12>>2]}J[699344]=0;ma(5673,f|0,c|0,m|0,r|0,t|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;k:{l:{m:{n:{if(J[a+36>>2]<0)break n;J[699344]=0;d=_(4,32)|0;c=J[699344];J[699344]=0;o:{p:{q:{if((c|0)!=1){J[699344]=0;e=ga(5672,d|0,m|0,p|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break q;J[a+16>>2]=e;J[699344]=0;d=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;J[699344]=0;f=ga(5672,d|0,m|0,p|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break p;J[a+20>>2]=f; +d=0;o=L[b+8>>1]?J[b+16>>2]:0;h=L[b+12>>1];g=J[i+12>>2];while(1){s=d<<2;c=s+(i+1040|0)|0;n=Q(d<<16);k=Q(n*Q(-.3478260040283203));r:{if(Q(R(k))>2]=j;c=s+(i+2064|0)|0;k=Q(n*Q(-.17391300201416016));s:{if(Q(R(k))>2]=j;c=s+(i+16|0)|0;k=Q(n*Q(.5217390060424805));t:{if(Q(R(k))>2]=j;d=d+1|0;if((d|0)!=256)continue;break}break o}a=Z()|0;break a}a=Z()|0;uc(d);break a}a= +Z()|0;uc(d);break a}if(q){c=0;s=P(h,3);while(1){j=0;h=g;d=o;while(1){l=(J[(i+16|0)+(K[d|0]<<2)>>2]+(J[(i+2064|0)+(K[d+2|0]<<2)>>2]+J[(i+1040|0)+(K[d+1|0]<<2)>>2]|0)|0)+32768>>16;l=(l|0)>=127?127:l;H[h|0]=(l|0)<=-128?-128:l;h=h+1|0;d=d+3|0;j=j+1|0;if((j|0)!=(m|0))continue;break}g=g+m|0;o=o+s|0;c=c+1|0;if((p|0)!=(c|0))continue;break}g=J[i+12>>2]}d=0;J[699344]=0;ma(5673,e|0,g|0,m|0,r|0,t|0);c=J[699344];J[699344]=0;if((c|0)==1)break k;o=L[b+8>>1]?J[b+16>>2]:0;h=L[b+12>>1];g=J[i+12>>2];while(1){l=d<<2; +b=l+(i+1040|0)|0;n=Q(d<<16);k=Q(n*Q(-.40579700469970703));u:{if(Q(R(k))>2]=c;b=l+(i+2064|0)|0;k=Q(n*Q(.46376800537109375));v:{if(Q(R(k))>2]=c;b=l+(i+16|0)|0;k=Q(n*Q(-.05797100067138672));w:{if(Q(R(k))>2]=c;d=d+1|0;if((d|0)!=256)continue;break}if(q){c=0;l=P(h,3);while(1){j=0;h=g;d=o;while(1){b=(J[(i+16|0)+(K[d|0]<<2)>>2]+(J[(i+2064|0)+(K[d+2|0]<<2)>>2]+J[(i+ +1040|0)+(K[d+1|0]<<2)>>2]|0)|0)+32768>>16;b=(b|0)>=127?127:b;H[h|0]=(b|0)<=-128?-128:b;h=h+1|0;d=d+3|0;j=j+1|0;if((j|0)!=(m|0))continue;break}g=g+m|0;o=l+o|0;c=c+1|0;if((p|0)!=(c|0))continue;break}g=J[i+12>>2]}J[699344]=0;ma(5673,f|0,g|0,m|0,r|0,t|0);b=J[699344];J[699344]=0;if((b|0)==1)break k;if(!J[a+40>>2])break n;if(J[e+20>>2]>0){h=0;while(1){a=J[e>>2];J[699344]=0;b=h<<4;a=J[(b+a|0)+4>>2];if(a)J[a>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+ +4>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+8>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+16>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+20>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+ +24>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+28>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+32>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+36>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+40>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2]; +if(a)J[a+44>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+48>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+52>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+56>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+60>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b| +0)+8>>2];if(a)J[a>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+4>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+8>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+16>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+ +b|0)+8>>2];if(a)J[a+20>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+24>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+28>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+32>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+36>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]= +0;a=J[(a+b|0)+8>>2];if(a)J[a+40>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+44>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+48>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+52>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+56>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]= +0;a=J[(a+b|0)+8>>2];if(a)J[a+60>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+4>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+8>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]= +0;a=J[(a+b|0)+12>>2];if(a)J[a+16>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+20>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+24>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+28>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+32>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>> +2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+36>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+40>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+44>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+48>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+52>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l; +a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+56>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[e>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+60>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break l;h=h+1|0;if((h|0)>2])continue;break}}if(J[f+20>>2]<=0)break n;h=0;while(1){a=J[f>>2];J[699344]=0;b=h<<4;a=J[(b+a|0)+4>>2];if(a)J[a>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+4>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>> +2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+8>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+16>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+20>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+24>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m; +a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+28>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+32>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+36>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+40>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+44>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m; +a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+48>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+52>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+56>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+4>>2];if(a)J[a+60>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m; +a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+4>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+8>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+16>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+20>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m; +a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+24>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+28>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+32>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+36>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+40>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m; +a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+44>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+48>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+52>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+56>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+8>>2];if(a)J[a+60>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m; +a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+4>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+8>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+16>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m; +a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+20>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+24>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+28>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+32>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+36>>2]=0;a=J[699344];J[699344]=0;if((a| +0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+40>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+44>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+48>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+52>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+56>>2]=0;a=J[699344];J[699344]= +0;if((a|0)==1)break m;a=J[f>>2];J[699344]=0;a=J[(a+b|0)+12>>2];if(a)J[a+60>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break m;h=h+1|0;if((h|0)>2])continue;break}}hd(u);fc=i+3088|0;return}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0}hd(u);ba(a|0);B()}function j8a(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;a:{b:{c:{k=O[b>>3];i=O[a>>3];j=O[d>>3];m=k-(i+i+j)/3;l=O[c>>3];n=l-(j+j+i)/3;d:{if(m*n<0){d=J[e+8>>2];b=J[e>>2];e:{if(d-b>>>0>47)break e; +a=J[e+4>>2];c=vc(48);d=c+48|0;g=c+(a-b|0)|0;c=g;if((a|0)!=(b|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(b|0))continue;break}J[e+8>>2]=d;J[e+4>>2]=g;J[e>>2]=c;if(!b)break e;uc(b);d=J[e+8>>2]}a=J[e+4>>2];f:{if((a|0)!=(d|0)){O[a+8>>3]=i;J[a>>2]=0;J[a+4>>2]=0;b=a+16|0;J[e+4>>2]=b;a=d;break f}g=J[e>>2];a=d-g|0;c=a>>4;b=c+1|0;if(b>>>0>=268435456)break c;h=a>>3;a=a>>>0>=2147483632?268435455:b>>>0>>0?h:b;if(a>>>0>=268435456)break b;a=a<<4;b=vc(a);c=b+(c<<4)|0;O[c+8>>3]= +i;J[c>>2]=0;J[c+4>>2]=0;a=a+b|0;b=c+16|0;if((d|0)!=(g|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((d|0)!=(g|0))continue;break}J[e+8>>2]=a;J[e+4>>2]=b;J[e>>2]=c;if(!g)break f;uc(g);a=J[e+8>>2];b=J[e+4>>2]}g:{if((a|0)!=(b|0)){O[b+8>>3]=k;J[b>>2]=1431655765;J[b+4>>2]=1070945621;b=b+16|0;J[e+4>>2]=b;d=a;break g}g=J[e>>2];b=a-g|0;d=b>>4;c=d+1|0;if(c>>>0>=268435456)break c;h=b>>3;b=b>>>0>=2147483632?268435455:c>>>0>>0?h:c;if(b>>>0>=268435456)break b;c=d<<4;b=b<<4;d=vc(b);c=c+ +d|0;O[c+8>>3]=k;J[c>>2]=1431655765;J[c+4>>2]=1070945621;d=b+d|0;b=c+16|0;if((a|0)!=(g|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(g|0))continue;break}J[e+8>>2]=d;J[e+4>>2]=b;J[e>>2]=c;if(!g)break g;uc(g);d=J[e+8>>2];b=J[e+4>>2]}h:{if((b|0)!=(d|0)){O[b+8>>3]=j;J[b>>2]=0;J[b+4>>2]=1072693248;J[e+4>>2]=b+16;break h}b=J[e>>2];a=d-b|0;g=a>>4;c=g+1|0;if(c>>>0>=268435456)break c;h=a>>3;a=a>>>0>=2147483632?268435455:c>>>0>>0?h:c;if(a>>>0>=268435456)break b;h=g<<4;c=a<< +4;g=vc(c);a=h+g|0;O[a+8>>3]=j;J[a>>2]=0;J[a+4>>2]=1072693248;h=a+16|0;if((b|0)!=(d|0))while(1){a=a-16|0;d=d-16|0;O[a>>3]=O[d>>3];O[a+8>>3]=O[d+8>>3];if((b|0)!=(d|0))continue;break}J[e+8>>2]=c+g;J[e+4>>2]=h;J[e>>2]=a;if(!b)break h;uc(b)}d=J[f+8>>2];b=J[f>>2];i:{if(d-b>>>0>47)break i;a=J[f+4>>2];c=vc(48);d=c+48|0;g=c+(a-b|0)|0;c=g;if((a|0)!=(b|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(b|0))continue;break}J[f+8>>2]=d;J[f+4>>2]=g;J[f>>2]=c;if(!b)break i;uc(b);d=J[f+ +8>>2]}a=J[f+4>>2];j:{if((a|0)!=(d|0)){O[a+8>>3]=i;J[a>>2]=0;J[a+4>>2]=0;b=a+16|0;J[f+4>>2]=b;a=d;break j}g=J[f>>2];a=d-g|0;c=a>>4;b=c+1|0;if(b>>>0>=268435456)break a;h=a>>3;a=a>>>0>=2147483632?268435455:b>>>0>>0?h:b;if(a>>>0>=268435456)break b;a=a<<4;b=vc(a);c=b+(c<<4)|0;O[c+8>>3]=i;J[c>>2]=0;J[c+4>>2]=0;a=a+b|0;b=c+16|0;if((d|0)!=(g|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((d|0)!=(g|0))continue;break}J[f+8>>2]=a;J[f+4>>2]=b;J[f>>2]=c;if(!g)break j;uc(g);a=J[f+8>>2]; +b=J[f+4>>2]}k:{if((a|0)!=(b|0)){O[b+8>>3]=l;J[b>>2]=1431655765;J[b+4>>2]=1071994197;b=b+16|0;J[f+4>>2]=b;d=a;break k}g=J[f>>2];b=a-g|0;d=b>>4;c=d+1|0;if(c>>>0>=268435456)break a;h=b>>3;b=b>>>0>=2147483632?268435455:c>>>0>>0?h:c;if(b>>>0>=268435456)break b;c=d<<4;b=b<<4;d=vc(b);c=c+d|0;O[c+8>>3]=l;J[c>>2]=1431655765;J[c+4>>2]=1071994197;d=b+d|0;b=c+16|0;if((a|0)!=(g|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(g|0))continue;break}J[f+8>>2]=d;J[f+4>>2]=b;J[f>>2]=c; +if(!g)break k;uc(g);d=J[f+8>>2];b=J[f+4>>2]}if((b|0)!=(d|0)){O[b+8>>3]=j;J[b>>2]=0;J[b+4>>2]=1072693248;J[f+4>>2]=b+16;break d}b=J[f>>2];a=d-b|0;g=a>>4;c=g+1|0;if(c>>>0>=268435456)break a;h=a>>3;a=a>>>0>=2147483632?268435455:c>>>0>>0?h:c;if(a>>>0>=268435456)break b;h=g<<4;c=a<<4;g=vc(c);a=h+g|0;O[a+8>>3]=j;J[a>>2]=0;J[a+4>>2]=1072693248;h=a+16|0;if((b|0)!=(d|0))while(1){a=a-16|0;d=d-16|0;O[a>>3]=O[d>>3];O[a+8>>3]=O[d+8>>3];if((b|0)!=(d|0))continue;break}J[f+8>>2]=c+g;J[f+4>>2]=h;J[f>>2]=a;if(!b)break d; +uc(b);break d}o=m/n;if(o>=2){d=J[e+8>>2];b=J[e>>2];l:{if(d-b>>>0>47)break l;a=J[e+4>>2];c=vc(48);d=c+48|0;g=c+(a-b|0)|0;c=g;if((a|0)!=(b|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(b|0))continue;break}J[e+8>>2]=d;J[e+4>>2]=g;J[e>>2]=c;if(!b)break l;uc(b);d=J[e+8>>2]}a=J[e+4>>2];m:{if((a|0)!=(d|0)){O[a+8>>3]=i;J[a>>2]=0;J[a+4>>2]=0;b=a+16|0;J[e+4>>2]=b;a=d;break m}g=J[e>>2];a=d-g|0;c=a>>4;b=c+1|0;if(b>>>0>=268435456)break c;h=a>>3;a=a>>>0>=2147483632?268435455:b>>> +0>>0?h:b;if(a>>>0>=268435456)break b;a=a<<4;b=vc(a);c=b+(c<<4)|0;O[c+8>>3]=i;J[c>>2]=0;J[c+4>>2]=0;a=a+b|0;b=c+16|0;if((d|0)!=(g|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((d|0)!=(g|0))continue;break}J[e+8>>2]=a;J[e+4>>2]=b;J[e>>2]=c;if(!g)break m;uc(g);a=J[e+8>>2];b=J[e+4>>2]}n:{if((a|0)!=(b|0)){O[b+8>>3]=k;J[b>>2]=1431655765;J[b+4>>2]=1070945621;b=b+16|0;J[e+4>>2]=b;d=a;break n}g=J[e>>2];b=a-g|0;d=b>>4;c=d+1|0;if(c>>>0>=268435456)break c;h=b>>3;b=b>>>0>=2147483632?268435455: +c>>>0>>0?h:c;if(b>>>0>=268435456)break b;c=d<<4;b=b<<4;d=vc(b);c=c+d|0;O[c+8>>3]=k;J[c>>2]=1431655765;J[c+4>>2]=1070945621;d=b+d|0;b=c+16|0;if((a|0)!=(g|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(g|0))continue;break}J[e+8>>2]=d;J[e+4>>2]=b;J[e>>2]=c;if(!g)break n;uc(g);d=J[e+8>>2];b=J[e+4>>2]}o:{if((b|0)!=(d|0)){O[b+8>>3]=j;J[b>>2]=0;J[b+4>>2]=1072693248;J[e+4>>2]=b+16;break o}b=J[e>>2];a=d-b|0;g=a>>4;c=g+1|0;if(c>>>0>=268435456)break c;h=a>>3;a=a>>>0>=2147483632? +268435455:c>>>0>>0?h:c;if(a>>>0>=268435456)break b;h=g<<4;c=a<<4;g=vc(c);a=h+g|0;O[a+8>>3]=j;J[a>>2]=0;J[a+4>>2]=1072693248;h=a+16|0;if((b|0)!=(d|0))while(1){a=a-16|0;d=d-16|0;O[a>>3]=O[d>>3];O[a+8>>3]=O[d+8>>3];if((b|0)!=(d|0))continue;break}J[e+8>>2]=c+g;J[e+4>>2]=h;J[e>>2]=a;if(!b)break o;uc(b)}d=J[f+8>>2];b=J[f>>2];p:{if(d-b>>>0>31)break p;a=J[f+4>>2];c=vc(32);d=c+32|0;g=c+(a-b|0)|0;c=g;if((a|0)!=(b|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(b|0))continue; +break}J[f+8>>2]=d;J[f+4>>2]=g;J[f>>2]=c;if(!b)break p;uc(b);d=J[f+8>>2]}a=J[f+4>>2];q:{if((a|0)!=(d|0)){O[a+8>>3]=i;J[a>>2]=0;J[a+4>>2]=0;b=a+16|0;J[f+4>>2]=b;a=d;break q}g=J[f>>2];a=d-g|0;c=a>>4;b=c+1|0;if(b>>>0>=268435456)break a;h=a>>3;a=a>>>0>=2147483632?268435455:b>>>0>>0?h:b;if(a>>>0>=268435456)break b;a=a<<4;b=vc(a);c=b+(c<<4)|0;O[c+8>>3]=i;J[c>>2]=0;J[c+4>>2]=0;a=a+b|0;b=c+16|0;if((d|0)!=(g|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((d|0)!=(g|0))continue;break}J[f+ +8>>2]=a;J[f+4>>2]=b;J[f>>2]=c;if(!g)break q;uc(g);a=J[f+8>>2];b=J[f+4>>2]}if((a|0)!=(b|0)){O[b+8>>3]=j;J[b>>2]=0;J[b+4>>2]=1072693248;J[f+4>>2]=b+16;break d}b=J[f>>2];c=a-b|0;g=c>>4;d=g+1|0;if(d>>>0>=268435456)break a;h=c>>3;c=c>>>0>=2147483632?268435455:d>>>0>>0?h:d;if(c>>>0>=268435456)break b;d=g<<4;c=c<<4;g=vc(c);d=d+g|0;O[d+8>>3]=j;J[d>>2]=0;J[d+4>>2]=1072693248;h=d+16|0;if((a|0)!=(b|0))while(1){d=d-16|0;a=a-16|0;O[d>>3]=O[a>>3];O[d+8>>3]=O[a+8>>3];if((a|0)!=(b|0))continue;break}J[f+8>>2]= +c+g;J[f+4>>2]=h;J[f>>2]=d;if(!b)break d;uc(b);break d}a=J[e+8>>2];b=J[e>>2];c=a-b|0;if(o<=.5){r:{if(c>>>0>47)break r;d=J[e+4>>2];c=vc(48);a=c+48|0;g=c+(d-b|0)|0;c=g;if((b|0)!=(d|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((b|0)!=(d|0))continue;break}J[e+8>>2]=a;J[e+4>>2]=g;J[e>>2]=c;if(!b)break r;uc(b);a=J[e+8>>2]}b=J[e+4>>2];s:{if((b|0)!=(a|0)){O[b+8>>3]=i;J[b>>2]=0;J[b+4>>2]=0;b=b+16|0;J[e+4>>2]=b;d=a;break s}g=J[e>>2];b=a-g|0;d=b>>4;c=d+1|0;if(c>>>0>=268435456)break c; +h=b>>3;b=b>>>0>=2147483632?268435455:c>>>0>>0?h:c;if(b>>>0>=268435456)break b;c=d<<4;b=b<<4;d=vc(b);c=c+d|0;O[c+8>>3]=i;J[c>>2]=0;J[c+4>>2]=0;d=b+d|0;b=c+16|0;if((a|0)!=(g|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(g|0))continue;break}J[e+8>>2]=d;J[e+4>>2]=b;J[e>>2]=c;if(!g)break s;uc(g);d=J[e+8>>2];b=J[e+4>>2]}t:{if((b|0)!=(d|0)){O[b+8>>3]=l;J[b>>2]=1431655765;J[b+4>>2]=1071994197;b=b+16|0;J[e+4>>2]=b;a=d;break t}g=J[e>>2];a=d-g|0;c=a>>4;b=c+1|0;if(b>>>0>=268435456)break c; +h=a>>3;a=a>>>0>=2147483632?268435455:b>>>0>>0?h:b;if(a>>>0>=268435456)break b;a=a<<4;b=vc(a);c=b+(c<<4)|0;O[c+8>>3]=l;J[c>>2]=1431655765;J[c+4>>2]=1071994197;a=a+b|0;b=c+16|0;if((d|0)!=(g|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((d|0)!=(g|0))continue;break}J[e+8>>2]=a;J[e+4>>2]=b;J[e>>2]=c;if(!g)break t;uc(g);a=J[e+8>>2];b=J[e+4>>2]}u:{if((a|0)!=(b|0)){O[b+8>>3]=j;J[b>>2]=0;J[b+4>>2]=1072693248;J[e+4>>2]=b+16;break u}b=J[e>>2];c=a-b|0;g=c>>4;d=g+1|0;if(d>>>0>=268435456)break c; +h=c>>3;c=c>>>0>=2147483632?268435455:d>>>0>>0?h:d;if(c>>>0>=268435456)break b;d=g<<4;c=c<<4;g=vc(c);d=d+g|0;O[d+8>>3]=j;J[d>>2]=0;J[d+4>>2]=1072693248;h=d+16|0;if((a|0)!=(b|0))while(1){d=d-16|0;a=a-16|0;O[d>>3]=O[a>>3];O[d+8>>3]=O[a+8>>3];if((a|0)!=(b|0))continue;break}J[e+8>>2]=c+g;J[e+4>>2]=h;J[e>>2]=d;if(!b)break u;uc(b)}d=J[f+8>>2];b=J[f>>2];v:{if(d-b>>>0>31)break v;a=J[f+4>>2];c=vc(32);d=c+32|0;g=c+(a-b|0)|0;c=g;if((a|0)!=(b|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3]; +if((a|0)!=(b|0))continue;break}J[f+8>>2]=d;J[f+4>>2]=g;J[f>>2]=c;if(!b)break v;uc(b);d=J[f+8>>2]}a=J[f+4>>2];w:{if((a|0)!=(d|0)){O[a+8>>3]=i;J[a>>2]=0;J[a+4>>2]=0;b=a+16|0;J[f+4>>2]=b;a=d;break w}g=J[f>>2];a=d-g|0;c=a>>4;b=c+1|0;if(b>>>0>=268435456)break a;h=a>>3;a=a>>>0>=2147483632?268435455:b>>>0>>0?h:b;if(a>>>0>=268435456)break b;a=a<<4;b=vc(a);c=b+(c<<4)|0;O[c+8>>3]=i;J[c>>2]=0;J[c+4>>2]=0;a=a+b|0;b=c+16|0;if((d|0)!=(g|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((d| +0)!=(g|0))continue;break}J[f+8>>2]=a;J[f+4>>2]=b;J[f>>2]=c;if(!g)break w;uc(g);a=J[f+8>>2];b=J[f+4>>2]}if((a|0)!=(b|0)){O[b+8>>3]=j;J[b>>2]=0;J[b+4>>2]=1072693248;J[f+4>>2]=b+16;break d}b=J[f>>2];c=a-b|0;g=c>>4;d=g+1|0;if(d>>>0>=268435456)break a;h=c>>3;c=c>>>0>=2147483632?268435455:d>>>0>>0?h:d;if(c>>>0>=268435456)break b;d=g<<4;c=c<<4;g=vc(c);d=d+g|0;O[d+8>>3]=j;J[d>>2]=0;J[d+4>>2]=1072693248;h=d+16|0;if((a|0)!=(b|0))while(1){d=d-16|0;a=a-16|0;O[d>>3]=O[a>>3];O[d+8>>3]=O[a+8>>3];if((a|0)!=(b| +0))continue;break}J[f+8>>2]=c+g;J[f+4>>2]=h;J[f>>2]=d;if(!b)break d;uc(b);break d}x:{if(c>>>0>63)break x;d=J[e+4>>2];c=vc(64);a=c- -64|0;g=c+(d-b|0)|0;c=g;if((b|0)!=(d|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((b|0)!=(d|0))continue;break}J[e+8>>2]=a;J[e+4>>2]=g;J[e>>2]=c;if(!b)break x;uc(b);a=J[e+8>>2]}b=J[e+4>>2];y:{if((b|0)!=(a|0)){O[b+8>>3]=i;J[b>>2]=0;J[b+4>>2]=0;b=b+16|0;J[e+4>>2]=b;d=a;break y}g=J[e>>2];b=a-g|0;d=b>>4;c=d+1|0;if(c>>>0>=268435456)break c;h=b>>3;b=b>>> +0>=2147483632?268435455:c>>>0>>0?h:c;if(b>>>0>=268435456)break b;c=d<<4;b=b<<4;d=vc(b);c=c+d|0;O[c+8>>3]=i;J[c>>2]=0;J[c+4>>2]=0;d=b+d|0;b=c+16|0;if((a|0)!=(g|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(g|0))continue;break}J[e+8>>2]=d;J[e+4>>2]=b;J[e>>2]=c;if(!g)break y;uc(g);d=J[e+8>>2];b=J[e+4>>2]}z:{if((b|0)!=(d|0)){O[b+8>>3]=k;J[b>>2]=1431655765;J[b+4>>2]=1070945621;b=b+16|0;J[e+4>>2]=b;a=d;break z}g=J[e>>2];a=d-g|0;c=a>>4;b=c+1|0;if(b>>>0>=268435456)break c; +h=a>>3;a=a>>>0>=2147483632?268435455:b>>>0>>0?h:b;if(a>>>0>=268435456)break b;a=a<<4;b=vc(a);c=b+(c<<4)|0;O[c+8>>3]=k;J[c>>2]=1431655765;J[c+4>>2]=1070945621;a=a+b|0;b=c+16|0;if((d|0)!=(g|0))while(1){c=c-16|0;d=d-16|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((d|0)!=(g|0))continue;break}J[e+8>>2]=a;J[e+4>>2]=b;J[e>>2]=c;if(!g)break z;uc(g);a=J[e+8>>2];b=J[e+4>>2]}A:{if((a|0)!=(b|0)){O[b+8>>3]=l;J[b>>2]=1431655765;J[b+4>>2]=1071994197;b=b+16|0;J[e+4>>2]=b;d=a;break A}g=J[e>>2];b=a-g|0;d=b>>4;c=d+1| +0;if(c>>>0>=268435456)break c;h=b>>3;b=b>>>0>=2147483632?268435455:c>>>0>>0?h:c;if(b>>>0>=268435456)break b;c=d<<4;b=b<<4;d=vc(b);c=c+d|0;O[c+8>>3]=l;J[c>>2]=1431655765;J[c+4>>2]=1071994197;d=b+d|0;b=c+16|0;if((a|0)!=(g|0))while(1){c=c-16|0;a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(g|0))continue;break}J[e+8>>2]=d;J[e+4>>2]=b;J[e>>2]=c;if(!g)break A;uc(g);d=J[e+8>>2];b=J[e+4>>2]}B:{if((b|0)!=(d|0)){O[b+8>>3]=j;J[b>>2]=0;J[b+4>>2]=1072693248;J[e+4>>2]=b+16;break B}b=J[e>>2];a=d-b|0; +g=a>>4;c=g+1|0;if(c>>>0>=268435456)break c;h=a>>3;a=a>>>0>=2147483632?268435455:c>>>0>>0?h:c;if(a>>>0>=268435456)break b;h=g<<4;c=a<<4;g=vc(c);a=h+g|0;O[a+8>>3]=j;J[a>>2]=0;J[a+4>>2]=1072693248;h=a+16|0;if((b|0)!=(d|0))while(1){a=a-16|0;d=d-16|0;O[a>>3]=O[d>>3];O[a+8>>3]=O[d+8>>3];if((b|0)!=(d|0))continue;break}J[e+8>>2]=c+g;J[e+4>>2]=h;J[e>>2]=a;if(!b)break B;uc(b)}d=J[f+8>>2];b=J[f>>2];C:{if(d-b>>>0>31)break C;a=J[f+4>>2];c=vc(32);d=c+32|0;g=c+(a-b|0)|0;c=g;if((a|0)!=(b|0))while(1){c=c-16|0; +a=a-16|0;O[c>>3]=O[a>>3];O[c+8>>3]=O[a+8>>3];if((a|0)!=(b|0))continue;break}J[f+8>>2]=d;J[f+4>>2]=g;J[f>>2]=c;if(!b)break C;uc(b);d=J[f+8>>2]}a=J[f+4>>2];D:{if((a|0)!=(d|0)){O[a+8>>3]=i;J[a>>2]=0;J[a+4>>2]=0;b=a+16|0;J[f+4>>2]=b;a=d;break D}g=J[f>>2];a=d-g|0;c=a>>4;b=c+1|0;if(b>>>0>=268435456)break a;h=a>>3;a=a>>>0>=2147483632?268435455:b>>>0>>0?h:b;if(a>>>0>=268435456)break b;a=a<<4;b=vc(a);c=b+(c<<4)|0;O[c+8>>3]=i;J[c>>2]=0;J[c+4>>2]=0;a=a+b|0;b=c+16|0;if((d|0)!=(g|0))while(1){c=c-16|0;d=d-16| +0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];if((d|0)!=(g|0))continue;break}J[f+8>>2]=a;J[f+4>>2]=b;J[f>>2]=c;if(!g)break D;uc(g);a=J[f+8>>2];b=J[f+4>>2]}if((a|0)!=(b|0)){O[b+8>>3]=j;J[b>>2]=0;J[b+4>>2]=1072693248;J[f+4>>2]=b+16;break d}b=J[f>>2];c=a-b|0;g=c>>4;d=g+1|0;if(d>>>0>=268435456)break a;h=c>>3;c=c>>>0>=2147483632?268435455:d>>>0>>0?h:d;if(c>>>0>=268435456)break b;d=g<<4;c=c<<4;g=vc(c);d=d+g|0;O[d+8>>3]=j;J[d>>2]=0;J[d+4>>2]=1072693248;h=d+16|0;if((a|0)!=(b|0))while(1){d=d-16|0;a=a-16|0;O[d>> +3]=O[a>>3];O[d+8>>3]=O[a+8>>3];if((a|0)!=(b|0))continue;break}J[f+8>>2]=c+g;J[f+4>>2]=h;J[f>>2]=d;if(!b)break d;uc(b)}if(m<0|n<0){a=J[e>>2];J[e>>2]=J[f>>2];J[f>>2]=a;a=J[e+4>>2];J[e+4>>2]=J[f+4>>2];J[f+4>>2]=a;a=J[e+8>>2];J[e+8>>2]=J[f+8>>2];J[f+8>>2]=a}return}Fg(e);B()}Pd();B()}Fg(f);B()}function Lt(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,O=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,ga=0,ha=0,ia=0,ja=0,ka=Q(0);r=fc-80|0;fc=r;J[r+40>>2]=65424;a:{b:{c:{d:{if(j){if(k){u=P(J[a+108>>2],J[a+104>>2]);n=J[a+8>>2];if((n|0)!=8){j=0;if((n|0)!=256)break a;J[r+40>>2]=65497;break d}if(H[a+68|0]&1)break d;p=u&-2;z=u&1;s=r+77|0;C=r+76|0;y=r+72|0;n=65424;e:{f:{while(1){g:{if((n|0)==65427)break g;while(1){if(!(vl(j)|jc)){J[a+8>>2]=64;break g}if((ui(j,J[a+16>>2],2,k)|0)!=2){Nc(k,1,2358649,0);j=0;break a}wd(J[a+16>>2],r+36|0,2);n=J[r+36>> +2];if(n>>>0<=1){Nc(k,1,2358733,0);j=0;break a}h:{if(J[r+40>>2]==32896){if(!(vl(j)|jc))break h;n=J[r+36>>2]}q=J[a+8>>2];if(q&16)J[a+24>>2]=(J[a+24>>2]-n|0)-2;o=n-2|0;J[r+36>>2]=o;l=2364672;t=J[r+40>>2];while(1){n=l;m=J[l>>2];if(m){l=l+12|0;if((m|0)!=(t|0))continue}break}if(!(q&J[n+4>>2])){Nc(k,1,2358759,0);j=0;break a}i:{if(M[a+20>>2]>=o>>>0){l=J[a+16>>2];break i}l=vl(j);q=jc;if((q|0)<0)l=1;else l=l>>>0>>0&(q|0)<=0;if(l){Nc(k,1,2358879,0);j=0;break a}l=ch(J[a+16>>2],J[r+36>>2]);if(!l){uc(J[a+16>> +2]);J[a+16>>2]=0;J[a+20>>2]=0;Nc(k,1,2358924,0);j=0;break a}J[a+16>>2]=l;o=J[r+36>>2];J[a+20>>2]=o}l=ui(j,l,o,k);if((l|0)!=J[r+36>>2]){Nc(k,1,2358649,0);j=0;break a}n=J[n+8>>2];if(!n){Nc(k,1,2359074,0);j=0;break a}if(!(kc[n|0](a,J[a+16>>2],l,k)|0)){J[r+32>>2]=J[r+40>>2];Nc(k,1,2359103,r+32|0);j=0;break a}n=J[r+36>>2];if(!eZ(J[a+192>>2],J[a+188>>2],m,(J[j+56>>2]-n|0)-4|0,0,n+4|0)){Nc(k,1,2359268,0);j=0;break a}j:{if((m|0)!=65424)break j;n=(J[j+56>>2]-J[r+36>>2]|0)-4|0;l=J[a+48>>2];m=J[a+52>>2];if((m| +0)>0)l=1;else l=(m|0)>=0&l>>>0>=n>>>0;if(l)break j;J[a+48>>2]=n;J[a+52>>2]=0}if(K[a+68|0]&4){if((kB(j,J[a+24>>2],k)|0)!=J[a+24>>2]|jc){Nc(k,1,2358649,0);j=0;break a}J[r+40>>2]=65427;break g}if((ui(j,J[a+16>>2],2,k)|0)!=2){Nc(k,1,2358649,0);j=0;break a}wd(J[a+16>>2],r+40|0,2);if(J[r+40>>2]!=65427)continue;break g}break}J[a+8>>2]=64}k:{if(!(vl(j)|jc)&J[a+8>>2]==64)break k;l:{m:{n=K[a+68|0];if(!(n&4)){l=J[a+192>>2];m=J[a+156>>2];n:{o:{if(J[a+56>>2]){n=vl(j);break o}n=J[a+24>>2];if(n>>>0<2)break n}n= +n-2|0;J[a+24>>2]=n}l=P(l,5644)+m|0;x=l+5600|0;t=l+5596|0;if(!n)break m;l=vl(j);m=jc;if((m|0)<0)l=1;else l=l>>>0>>0&(m|0)<=0;if(l){Nc(k,1,2369570,0);j=0;break a}l=J[a+24>>2];if(l>>>0>=4294967294){Nc(k,1,2369625,0);j=0;break a}m=J[t>>2];p:{if(m){q=J[x>>2];if(q>>>0>-3-l>>>0){Nc(k,1,2369712,0);j=0;break a}l=ch(m,(l+q|0)+2|0);if(l){J[t>>2]=l;break m}uc(J[t>>2]);J[t>>2]=0;break p}l=ef(l+2|0);J[t>>2]=l;if(l)break m}Nc(k,1,2369813,0);j=0;break a}J[a+8>>2]=8;H[a+68|0]=n&250;break l}q:{v=J[a+188>>2];if(!v)break q; +w=J[j+56>>2];m=w-2|0;q=J[j+60>>2];D=q-(w>>>0<2)|0;E=J[a+192>>2];l=J[v+40>>2]+P(E,40)|0;l=J[l+16>>2]+P(J[l+12>>2],24)|0;o=m;J[l+8>>2]=m;J[l+12>>2]=D;m=q;G=J[a+24>>2];w=G+w|0;J[l+16>>2]=w;J[l+20>>2]=w>>>0>>0?m+1|0:m;if(eZ(E,v,65427,o,D,J[a+24>>2]+2|0))break q;Nc(k,1,2359268,0);j=0;break a}l=J[a+24>>2];r:{if(!n){n=0;break r}n=ui(j,J[t>>2]+J[x>>2]|0,l,k);l=J[a+24>>2]}J[a+8>>2]=(l|0)==(n|0)?8:64;J[x>>2]=J[x>>2]+n;n=K[a+68|0];if((n&9)!=1)break l;H[a+68|0]=n|8;if(J[j+28>>2]==4802)break l;l=J[j+60>>2]; +q=l;n=J[j+56>>2];if((l&n)==-1)break l;t=J[a+192>>2];s:{while(1){l=0;m=r+70|0;if((ui(j,m,2,k)|0)!=2)break s;wd(m,r- -64|0,2);if(J[r+64>>2]!=65424)break s;o=2358649;if((ui(j,m,2,k)|0)!=2)break c;wd(m,r+60|0,2);if(J[r+60>>2]!=10){o=2358733;break c}J[r+60>>2]=8;m=ui(j,r+70|0,8,k);if((m|0)!=J[r+60>>2])break c;if((m|0)!=8){o=2364941;break c}wd(r+70|0,r+56|0,2);wd(y,r+52|0,4);wd(C,r+48|0,1);wd(s,r+44|0,1);if((t|0)!=J[r+56>>2]){m=J[r+52>>2];if(m>>>0<14)break s;m=m-12|0;J[r+52>>2]=m;m=kB(j,m,k);if(!jc&J[r+ +52>>2]==(m|0))continue;break s}break}l=J[r+48>>2]==J[r+44>>2]}if((q|0)<0){fa(2352847,2350739,644,2354362);B()}if(!(kc[J[j+44>>2]](j,n,q,k)|0))break b;if(!l)break l;H[a+68|0]=K[a+68|0]&238|16;t:{if(!u)break t;m=J[a+156>>2];n=0;l=0;if((u|0)!=1)while(1){q=m+P(n,5644)|0;o=J[q+5592>>2];if(o)J[q+5592>>2]=o+1;q=m+P(n|1,5644)|0;o=J[q+5592>>2];if(o)J[q+5592>>2]=o+1;n=n+2|0;l=l+2|0;if((p|0)!=(l|0))continue;break}if(!z)break t;n=m+P(n,5644)|0;l=J[n+5592>>2];if(!l)break t;J[n+5592>>2]=l+1}Nc(k,2,2359469,0)}if(H[a+ +68|0]&1)break k;if((ui(j,J[a+16>>2],2,k)|0)!=2){if(!(!u|(u|0)!=(J[a+192>>2]+1|0))){j=J[a+156>>2];n=0;while(1){l=j+P(n,5644)|0;if(!(J[l+5588>>2]|J[l+5592>>2]))break e;n=n+1|0;if((u|0)!=(n|0))continue;break}}Nc(k,1,2358649,0);j=0;break a}wd(J[a+16>>2],r+40|0,2);n=J[r+40>>2];if(H[a+68|0]&1)break f;if((n|0)!=65497)continue;break f}break}n=J[r+40>>2]}if(J[a+8>>2]==256|(n|0)!=65497)break d;J[a+8>>2]=256;J[a+192>>2]=0;break d}J[r+16>>2]=n;Nc(k,4,2359571,r+16|0);J[a+192>>2]=n;J[r+40>>2]=65497;J[a+8>>2]=256; +break d}fa(2358486,2358254,9402,2358624);B()}fa(2358446,2358254,9400,2358624);B()}m=J[a+156>>2];n=J[a+192>>2];u:{v:{w:{if(H[a+68|0]&1)break w;x:{y:{if(n>>>0>=u>>>0)break y;j=m+P(n,5644)|0;while(1){if(J[j+5596>>2])break y;n=n+1|0;J[a+192>>2]=n;j=j+5644|0;if((n|0)!=(u|0))continue;break}break x}if((n|0)!=(u|0))break w}J[i>>2]=0;break v}if(!m)break u;z:{A:{q=m+P(n,5644)|0;j=q;if(J[j+5172>>2])a=2369865;else{if(!(K[j+5640|0]&2))break z;u=j+5172|0;t=J[q+5160>>2];B:{if(!t){o=0;break B}l=J[q+5164>>2];y=0; +o=0;j=0;if(t>>>0>=4){v=t&-4;w=0;while(1){x=j<<3;o=J[(l+(x|24)|0)+4>>2]+(J[(l+(x|16)|0)+4>>2]+(J[(l+(x|8)|0)+4>>2]+(J[(l+x|0)+4>>2]+o|0)|0)|0)|0;j=j+4|0;w=w+4|0;if((v|0)!=(w|0))continue;break}}t=t&3;if(!t)break B;while(1){o=J[(l+(j<<3)|0)+4>>2]+o|0;j=j+1|0;y=y+1|0;if((t|0)!=(y|0))continue;break}}j=ef(o);J[u>>2]=j;if(j)break A;a=2368682}Nc(k,1,a,0);Nc(k,1,2359668,0);j=0;break a}m=m+P(n,5644)|0;J[m+5180>>2]=o;t=m+5164|0;o=J[m+5164>>2];q=q+5160|0;j=J[q>>2];if(j){l=0;n=0;while(1){x=n<<3;w=x+o|0;v=J[w>> +2];if(v){xc(J[u>>2]+l|0,v,J[w+4>>2]);j=x+J[t>>2]|0;w=J[j+4>>2];uc(J[j>>2]);o=J[t>>2];j=x+o|0;J[j>>2]=0;J[j+4>>2]=0;l=l+w|0;j=J[q>>2]}n=n+1|0;if(n>>>0>>0)continue;break}}J[q>>2]=0;uc(o);J[t>>2]=0;J[m+5168>>2]=J[u>>2];J[m+5176>>2]=J[m+5180>>2]}n=J[a+196>>2];S=J[n+28>>2];l=J[a+192>>2];O=J[(J[S+76>>2]+P(l,5644)|0)+5584>>2];j=J[n+24>>2];U=J[j+24>>2];q=J[S+24>>2];m=(l>>>0)/(q>>>0)|0;I=J[J[n+20>>2]>>2];l=l-P(m,q)|0;q=J[S+12>>2];n=J[S+4>>2]+P(l,q)|0;l=J[j>>2];l=l>>>0>>0?n:l;J[I>>2]=l;q=n+q|0;n=n>>> +0>q>>>0?-1:q;q=J[j+8>>2];n=n>>>0>>0?n:q;J[I+8>>2]=n;C:{D:{if(!((l|0)<(n|0)&(l|0)>=0)){Nc(k,1,2351847,0);break D}n=J[I+20>>2];q=J[S+16>>2];l=J[S+8>>2]+P(q,m)|0;m=J[j+4>>2];m=l>>>0>m>>>0?l:m;J[I+4>>2]=m;q=l+q|0;l=l>>>0>q>>>0?-1:q;j=J[j+12>>2];j=j>>>0>l>>>0?l:j;J[I+12>>2]=j;if(!((j|0)>(m|0)&(m|0)>=0)){Nc(k,1,2352308,0);break D}E:{if(J[O+4>>2]){if(J[I+16>>2])break E;j=1;break C}Nc(k,1,2353014,0);break D}F:{G:{H:{while(1){J[U+36>>2]=0;j=J[U>>2];if(!j)break H;q=j>>31;l=j;t=l-1|0;m=J[I>>2];o=m;j=t+m| +0;w=q-!l|0;m=w+(m>>31)|0;ia=n,ja=wEb(j,j>>>0>>0?m+1|0:m,l,q),J[ia>>2]=ja;j=J[U+4>>2];if(!j)break H;o=j-1|0;m=J[I+4>>2];v=m;x=o+m|0;u=j>>31;p=u-!j|0;m=p+(m>>31)|0;ia=n,ja=wEb(x,v>>>0>x>>>0?m+1|0:m,j,u),J[ia+4>>2]=ja;m=J[I+8>>2];x=m;t=m+t|0;m=(m>>31)+w|0;ia=n,ja=wEb(t,t>>>0>>0?m+1|0:m,l,q),J[ia+8>>2]=ja;m=J[I+12>>2];J[n+16>>2]=$;l=p+(m>>31)|0;m=m+o|0;l=m>>>0>>0?l+1|0:l;ia=n,ja=wEb(m,l,j,u),J[ia+12>>2]=ja;j=J[O+4>>2];J[n+20>>2]=j;l=J[S+80>>2];J[n+24>>2]=j>>>0>>0?1:j-l|0;uc(J[n+52>>2]);J[n+ +68>>2]=0;J[n+60>>2]=0;J[n+64>>2]=0;J[n+52>>2]=0;J[n+56>>2]=0;j=P(j,152);l=J[n+28>>2];I:{if(!l){l=ef(j);J[n+28>>2]=l;if(!l)break D;J[n+32>>2]=j;Ac(l,0,j);break I}if(j>>>0<=M[n+32>>2])break I;l=ch(l,j);if(!l){Nc(k,1,2353262,0);uc(J[n+28>>2]);J[n+28>>2]=0;J[n+32>>2]=0;break D}J[n+28>>2]=l;m=l;l=J[n+32>>2];Ac(m+l|0,0,j-l|0);J[n+32>>2]=j}j=J[n+20>>2];if(j){Y=O+28|0;q=J[n+28>>2];V=0;while(1){t=j-1|0;l=t&31;if((t&63)>>>0>=32){m=-1<>>32-l;l=-1<>2];l=x+o|0;w= +m^-1;m=w+(o>>31)|0;m=l>>>0>>0?m+1|0:m;o=l;l=t&31;if((t&63)>>>0>=32)s=m>>l;else s=((1<>>l;J[q>>2]=s;m=J[n+4>>2];o=m;l=m+x|0;m=(m>>31)+w|0;m=l>>>0>>0?m+1|0:m;o=l;l=t&31;if((t&63)>>>0>=32)C=m>>l;else C=((1<>>l;J[q+4>>2]=C;l=J[n+8>>2];o=l;m=l+x|0;l=(l>>31)+w|0;l=m>>>0>>0?l+1|0:l;u=m;o=t&31;if((t&63)>>>0>=32)o=l>>o;else o=((1<>>o;J[q+8>>2]=o;m=J[n+12>>2];u=m;l=m+x|0;m=(m>>31)+w|0;m=l>>>0>>0?m+1|0:m;p=l;u=t&31;if((t&63)>>>0>=32)u=m>>u;else u= +((1<>>u;J[q+12>>2]=u;y=(V<<2)+O|0;D=J[y+812>>2];m=D&31;if((D&63)>>>0>=32){l=1<>>32-m}E=p;z=l;m=o;l=m>>31;v=m+E|0;m=l+z|0;m=(o>>>0>v>>>0?m+1|0:m)-!v|0;v=v-1|0;l=D&31;if((D&63)>>>0>=32)l=m>>l;else l=((1<>>l;z=l<>2];l=y&31;if((y&63)>>>0>=32){m=-1<>>32-l;l=-1<>31;p=l;v=l+v|0;l=m+E|0;l=p>>>0>v>>>0?l+1|0:l;m=y&31;if((y&63)>>>0>=32)l=l>>m;else l=((1<>>m;l=l<>y:0;J[q+20>>2]=u;X=s&-1<>D:0;J[q+16>>2]=l;J:{if(!l)break J;vEb(l,0,u,0);if(!jc)break J;break G}Z=P(l,u);if(Z>>>0>=107374183)break G;T=P(Z,40);if(V){y=y-1|0;D=D-1|0;m=W>>31;l=W+1|0;W=((l?m:m+1|0)&1)<<31|l>>>1;m=X>>31;l=X+1|0;X=((l?m:m+1|0)&1)<<31|l>>>1;l=3}else l=1;J[q+24>>2]=l;o=q+28|0;v=j;m=j&31;if((j&63)>>>0>=32){l=1<>>32-m}aa=j;u=l;j=J[O+12>>2];E=j>>>0>>0?j:y;j=E&31;if((E& +63)>>>0>=32){m=-1<>>32-j;j=-1<>2];G=j>>>0>>0?j:D;j=G&31;if((G&63)>>>0>=32){l=-1<>>32-j;j=-1<>2];m=l;j=l+x|0;l=(l>>31)+w|0;l=j>>>0>>0?l+1|0:l;m=j;j=t&31;if((t&63)>>>0>=32)A=l>>j;else A=((1<>>j;l=J[n>>2];j=l+x|0;m=(l>>31)+w|0;m=j>>>0>>0?m+1|0:m;l=j;j=t&31;if((t&63)>>>0>=32)m=m>>j;else m=((1<>>j;j=0;z=w;p=x;s=p;C=w;l=t; +break K}j=_+1|0;l=j>>>1|0;p=t&31;if((t&63)>>>0>=32){m=l<>>32-p;l=l<>>0>s>>>0?m+1|0:m;l=J[n+4>>2];z=l;p=l+s|0;C=m;l=m+(l>>31)|0;l=p>>>0>>0?l+1|0:l;m=v&31;if((v&63)>>>0>=32)A=l>>m;else A=((1<>>m;l=j&1;p=t&31;if((t&63)>>>0>=32){m=l<>>32-p;l=l<>2];L=m;F=m+p|0;z=p>>>0>>0?l+1|0:l;m=z+(m>>31)|0;m=F>>>0>>0?m+1|0:m;l=v&31;if((v&63)>>>0>=32)m=m>>l;else m=((1<< +l)-1&m)<<32-l|F>>>l;l=v}F=l;L=J[n+8>>2];R=L>>31;l=J[n+12>>2];J[o+4>>2]=A;J[o>>2]=m;J[o+16>>2]=j;m=(l>>31)+C|0;C=l;l=l+s|0;m=C>>>0>l>>>0?m+1|0:m;s=l;l=F&31;if((F&63)>>>0>=32)l=m>>l;else l=((1<>>l;J[o+12>>2]=l;l=z+R|0;m=p+L|0;l=m>>>0>>0?l+1|0:l;p=m;m=F&31;if((F&63)>>>0>=32)l=l>>m;else l=((1<>>m;J[o+8>>2]=l;l=0;l=!J[O+20>>2]|!j?l:(j|0)==3?2:1;j=J[Y+4>>2];ia=o,ka=Q(Dv((J[U+24>>2]+l|0)-J[Y>>2]|0)*(+(j|0)*4.8828125E-4+1)),N[ia+32>>2]=ka;J[o+28>>2]=(J[Y>>2]+J[O+804>> +2]|0)-1;j=J[o+20>>2];L:{M:{if(!(j|!Z)){j=ef(T);J[o+20>>2]=j;if(!j){Nc(k,1,2354120,0);break D}Ac(j,0,T);J[o+24>>2]=T;break M}if(T>>>0>M[o+24>>2]){j=ch(j,T);if(!j){Nc(k,1,2354120,0);uc(J[o+20>>2]);J[o+20>>2]=0;J[o+24>>2]=0;break D}J[o+20>>2]=j;l=j;j=J[o+24>>2];Ac(l+j|0,0,T-j|0);J[o+24>>2]=T}if(!Z)break L}j=J[o+20>>2];z=0;while(1){m=J[q+16>>2];l=(z>>>0)/(m>>>0)|0;m=z-P(l,m)|0;p=(m<>2];C=(p|0)>(s|0)?p:s;J[j>>2]=C;p=(l<>2];F=(p|0)>(s|0)?p:s;J[j+4>>2]=F;m=(m+1<>2];p=(m|0)<(p|0)?m:p;J[j+8>>2]=p;l=(l+1<>2];s=(l|0)<(m|0)?l:m;J[j+12>>2]=s;m=(p>>31)+ea|0;l=p+da|0;m=l>>>0

      >>0?m+1|0:m;C=C>>G;p=l;l=G&31;if((G&63)>>>0>=32)l=m>>l;else l=((1<>>l;p=l-C<>G;J[j+16>>2]=p;l=(s>>31)+ca|0;m=s+ba|0;l=m>>>0>>0?l+1|0:l;F=F>>E;s=m;m=E&31;if((E&63)>>>0>=32)l=l>>m;else l=((1<>>m;l=l-F<>E;J[j+20>>2]=l;m=P(l,p);vEb(m,0,60,0);if(jc){Nc(k,1,2354542,0);break D}l=P(m,60);p=J[j+24>>2];N:{O:{if(!(p|!m)){p=ef(l);J[j+24>>2]= +p;if(!p)break D;Ac(p,0,l);p=j+28|0;break O}if(l>>>0<=M[j+28>>2])break N;p=ch(p,l);if(!p){uc(J[j+24>>2]);J[j+24>>2]=0;J[j+28>>2]=0;Nc(k,1,2354907,0);break D}J[j+24>>2]=p;s=p;p=J[j+28>>2];Ac(s+p|0,0,l-p|0);p=j+28|0}J[p>>2]=l}l=J[j+20>>2];p=J[j+16>>2];s=J[j+32>>2];P:{if(!s){l=nY(p,l,k);break P}l=lY(s,p,l,k)}J[j+32>>2]=l;l=J[j+20>>2];p=J[j+16>>2];s=J[j+36>>2];Q:{if(!s){l=nY(p,l,k);break Q}l=lY(s,p,l,k)}J[j+36>>2]=l;if(m){p=0;while(1){R=J[j+16>>2];L=(p>>>0)/(R>>>0)|0;l=J[j+24>>2]+P(p,60)|0;A=J[l>>2];R:{if(A){ga= +J[l+52>>2];ha=J[l+4>>2];s=J[l+44>>2];uc(J[l+56>>2]);J[l+56>>2]=0;J[l+48>>2]=0;J[l+52>>2]=0;J[l+40>>2]=0;J[l+44>>2]=0;J[l+32>>2]=0;J[l+36>>2]=0;J[l+24>>2]=0;J[l+28>>2]=0;J[l+16>>2]=0;J[l+20>>2]=0;J[l+8>>2]=0;J[l+12>>2]=0;J[l>>2]=A;J[l+44>>2]=s;if(s)Ac(A,0,P(s,24));J[l+4>>2]=ha;J[l+52>>2]=ga;break R}s=Ge(10,24);J[l>>2]=s;if(!s)break D;J[l+44>>2]=10}s=(p-P(L,R)|0)+C|0;A=s<>2];J[l+8>>2]=(A|0)>(R|0)?A:R;L=F+L|0;A=L<>2];J[l+12>>2]=(A|0)>(R|0)?A:R;s=s+1<>2];J[l+16>>2]=(s|0)< +(A|0)?s:A;A=l;l=L+1<>2];J[A+20>>2]=(l|0)<(s|0)?l:s;p=p+1|0;if((m|0)!=(p|0))continue;break}}j=j+40|0;z=z+1|0;if((z|0)!=(Z|0))continue;break}}Y=Y+8|0;o=o+36|0;_=_+1|0;if(_>>>0>2])continue;break}q=q+152|0;j=t;V=V+1|0;if(V>>>0>2])continue;break}}U=U+52|0;n=n+76|0;O=O+1080|0;$=$+1|0;if($>>>0>2])continue;break}j=1;break C}fa(2355247,2355365,162,2363821);B()}Nc(k,1,2350151,0);break D}Nc(k,1,2353678,0)}j=0}if(!j){Nc(k,1,2359694,0);j=0;break a}j=J[a+192>>2];J[r+4>>2]=P(J[a+ +104>>2],J[a+108>>2]);J[r>>2]=j+1;Nc(k,4,2359770,r);J[b>>2]=J[a+192>>2];J[i>>2]=1;if(c){b=oY(J[a+196>>2],0);J[c>>2]=b;j=0;if((b|0)==-1)break a}b=J[J[J[a+196>>2]+20>>2]>>2];J[d>>2]=J[b>>2];J[e>>2]=J[b+4>>2];J[f>>2]=J[b+8>>2];J[g>>2]=J[b+12>>2];J[h>>2]=J[b+16>>2];J[a+8>>2]=J[a+8>>2]|128}j=1;break a}fa(2358533,2358254,4117,2369847);B()}Nc(k,1,o,0)}Nc(k,1,2359304,0);j=0}fc=r+80|0;return j|0}function t$a(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;c=J[a+20>>2];if((c|0)!=100){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;kc[J[J[a>>2]>>2]](a)}if(b)pL(a,0);kc[J[J[a>>2]+16>>2]](a);kc[J[J[a+24>>2]+8>>2]](a);m=fc-2608|0;fc=m;k=kc[J[J[a+4>>2]>>2]](a,1,36)|0;J[a+388>>2]=k;J[k+16>>2]=0;J[k+8>>2]=403;J[k+4>>2]=404;J[k>>2]=405;if(!(M[a+32>>2]<16777216&M[a+28>>2]<=16777215)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;kc[J[J[a>>2]>>2]](a)}c=J[a+56>>2];b=J[a+376>>2];d=P(b,J[a+60>>2]);a:{if(c>>>0>=d>>>0){J[a+276>>2]=1;J[a+280>>2]=1;J[a+64>>2]=P(b,J[a+28>>2]);J[a+ +68>>2]=P(b,J[a+32>>2]);break a}b:{if(d>>>0<=c<<1>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+1|0)/2;b=(P(J[a+376>>2],J[a+32>>2])+1|0)/2|0;J[a+276>>2]=2;J[a+280>>2]=2;break b}if(d>>>0<=P(c,3)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+2|0)/3;b=(P(J[a+376>>2],J[a+32>>2])+2|0)/3|0;J[a+276>>2]=3;J[a+280>>2]=3;break b}if(d>>>0<=c<<2>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+3|0)/4;b=(P(J[a+376>>2],J[a+32>>2])+3|0)/4|0;J[a+276>>2]=4;J[a+280>>2]=4;break b}if(d>>>0<=P(c,5)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+4|0)/5;b=(P(J[a+376>>2],J[a+ +32>>2])+4|0)/5|0;J[a+276>>2]=5;J[a+280>>2]=5;break b}if(d>>>0<=P(c,6)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+5|0)/6;b=(P(J[a+376>>2],J[a+32>>2])+5|0)/6|0;J[a+276>>2]=6;J[a+280>>2]=6;break b}if(d>>>0<=P(c,7)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+6|0)/7;b=(P(J[a+376>>2],J[a+32>>2])+6|0)/7|0;J[a+276>>2]=7;J[a+280>>2]=7;break b}if(d>>>0<=c<<3>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+7|0)/8;b=(P(J[a+376>>2],J[a+32>>2])+7|0)/8|0;J[a+276>>2]=8;J[a+280>>2]=8;break b}if(d>>>0<=P(c,9)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+8|0)/9; +b=(P(J[a+376>>2],J[a+32>>2])+8|0)/9|0;J[a+276>>2]=9;J[a+280>>2]=9;break b}if(d>>>0<=P(c,10)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+9|0)/10;b=(P(J[a+376>>2],J[a+32>>2])+9|0)/10|0;J[a+276>>2]=10;J[a+280>>2]=10;break b}if(d>>>0<=P(c,11)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+10|0)/11;b=(P(J[a+376>>2],J[a+32>>2])+10|0)/11|0;J[a+276>>2]=11;J[a+280>>2]=11;break b}if(d>>>0<=P(c,12)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+11|0)/12;b=(P(J[a+376>>2],J[a+32>>2])+11|0)/12|0;J[a+276>>2]=12;J[a+280>>2]=12;break b}if(d>>>0<=P(c,13)>>> +0){J[a+64>>2]=(P(b,J[a+28>>2])+12|0)/13;b=(P(J[a+376>>2],J[a+32>>2])+12|0)/13|0;J[a+276>>2]=13;J[a+280>>2]=13;break b}if(d>>>0<=P(c,14)>>>0){J[a+64>>2]=(P(b,J[a+28>>2])+13|0)/14;b=(P(J[a+376>>2],J[a+32>>2])+13|0)/14|0;J[a+276>>2]=14;J[a+280>>2]=14;break b}b=P(b,J[a+28>>2]);if(d>>>0<=P(c,15)>>>0){J[a+64>>2]=(b+14|0)/15;b=(P(J[a+376>>2],J[a+32>>2])+14|0)/15|0;J[a+276>>2]=15;J[a+280>>2]=15;break b}J[a+64>>2]=(b+15|0)/16;b=(P(J[a+376>>2],J[a+32>>2])+15|0)/16|0;J[a+276>>2]=16;J[a+280>>2]=16;J[a+68>>2]= +b;break a}J[a+68>>2]=b}b=J[a+376>>2];if(b-17>>>0<=4294967279){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=7;J[J[a>>2]+28>>2]=J[a+376>>2];kc[J[J[a>>2]>>2]](a);b=J[a+376>>2]}c=b-2|0;if(c>>>0<=5)d=J[(c<<2)+57428>>2];else d=53280;J[a+380>>2]=d;J[a+384>>2]=(b|0)>=8?63:P(b,b)-1|0;b=J[a+68>>2];c:{if(!(!b|!J[a+64>>2]|J[a+76>>2]<=0))if(J[a+36>>2]>0)break c;b=J[a>>2];J[b+20>>2]=33;kc[J[b>>2]](a);b=J[a+68>>2]}if(!(J[a+64>>2]<65501&(b|0)<=65500)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;kc[J[J[a>>2]>>2]](a)}b=J[a+72>> +2];if((b|0)!=8){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=16;kc[J[J[a>>2]>>2]](a)}f=J[a+76>>2];if((f|0)>=11){b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=27;J[J[a>>2]+28>>2]=10;kc[J[J[a>>2]>>2]](a);f=J[a+76>>2]}J[a+268>>2]=1;J[a+272>>2]=1;e=1;d:{if((f|0)<=0)break d;b=J[a+84>>2];g=1;while(1){c=J[b+8>>2];e:{if(c-5>>>0>=4294967292){d=J[b+12>>2];if(d-5>>>0>4294967291)break e}c=J[a>>2];J[c+20>>2]=19;kc[J[c>>2]](a);f=J[a+76>>2];d=J[b+12>>2];e=J[a+272>>2];c=J[b+8>>2];g=J[a+268>>2]}e=(d|0)<(e|0)?e:d;J[a+272>>2]=e;g=(c|0)<(g| +0)?g:c;J[a+268>>2]=g;b=b+88|0;h=h+1|0;if((h|0)<(f|0))continue;break}if((f|0)<=0)break d;b=J[a+84>>2];g=0;while(1){J[b+4>>2]=g;d=J[a+276>>2];h=J[a+224>>2]?8:4;f:{if((d|0)>(h|0)){c=d;break f}f=J[a+268>>2];j=J[b+8>>2];if((f|0)%(j<<1)|0){c=d;break f}e=2;while(1){c=P(d,e);if((h|0)<(c|0))break f;e=e<<1;if(!((f|0)%(P(j,e)|0)|0))continue;break}}J[b+36>>2]=c;f=J[a+280>>2];g:{if((f|0)>(h|0)){d=f;break g}j=J[a+272>>2];n=J[b+12>>2];if((j|0)%(n<<1)|0){d=f;break g}e=2;while(1){d=P(e,f);if((h|0)<(d|0))break g;e= +e<<1;if(!((j|0)%(P(n,e)|0)|0))continue;break}}J[b+40>>2]=d;f=d<<1;h:{if((f|0)<(c|0)){J[b+36>>2]=f;break h}c=c<<1;if((c|0)>=(d|0))break h;J[b+40>>2]=c}c=P(J[a+376>>2],J[a+268>>2]);J[b+28>>2]=((c+P(J[b+8>>2],J[a+64>>2])|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+272>>2]);J[b+32>>2]=((c+P(J[b+12>>2],J[a+68>>2])|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+268>>2]);J[b+44>>2]=((c+P(J[b+36>>2],P(J[b+8>>2],J[a+64>>2]))|0)-1|0)/(c|0);c=P(J[a+376>>2],J[a+272>>2]);c=((c+P(J[b+40>>2],P(J[b+12>>2],J[a+68>>2]))|0)-1|0)/(c|0)|0; +J[b+52>>2]=1;J[b+48>>2]=c;b=b+88|0;g=g+1|0;if((g|0)>2])continue;break}e=J[a+272>>2]}b=P(J[a+376>>2],e);J[a+284>>2]=((b+J[a+68>>2]|0)-1|0)/(b|0);g=J[a+204>>2];i:{j:{if(g){if(J[a+200>>2]<=0){b=J[a>>2];J[b+20>>2]=20;J[b+24>>2]=0;kc[J[J[a>>2]>>2]](a);g=J[a+204>>2]}k:{if(!(!J[g+20>>2]&J[g+24>>2]==63)){b=1;J[a+264>>2]=1;e=J[a+76>>2];if((e|0)<=0)break k;Ac(m,255,e<<8);break k}b=0;J[a+264>>2]=0;e=J[a+76>>2];if((e|0)<=0)break k;Ac(m+2560|0,0,e<<2)}if(J[a+200>>2]>0){b=1;while(1){d=b;l:{m:{n=J[g>>2]; +if(n-5>>>0>4294967291)break m;b=J[a>>2];J[b+24>>2]=n;J[b+20>>2]=27;J[J[a>>2]+28>>2]=4;kc[J[J[a>>2]>>2]](a);if((n|0)>0)break m;e=0;break l}b=J[g+4>>2];if(!((b|0)>=0&(b|0)>2])){b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=20;kc[J[J[a>>2]>>2]](a)}b=1;e=1;if((n|0)==1)break l;while(1){f=(b<<2)+g|0;c=J[f+4>>2];if(!((c|0)>=0&(c|0)>2])){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=20;kc[J[J[a>>2]>>2]](a)}if((c|0)<=J[f>>2]){c=J[a>>2];J[c+24>>2]=d;J[c+20>>2]=20;kc[J[J[a>>2]>>2]](a)}e=1;b=b+1|0;if((n|0)!=(b|0))continue; +break}}h=J[g+32>>2];j=J[g+24>>2];f=J[g+20>>2];q=J[g+28>>2];n:{if(J[a+264>>2]){o:{p:{if((f|0)>(j|0)|f>>>0>63|((j|0)>63|q>>>0>10))break p;if((h|0)<0)break p;if((h|0)<11)break o}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;kc[J[J[a>>2]>>2]](a)}q:{r:{if(!f){if(j)break r;break q}if((n|0)==1)break q}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;kc[J[J[a>>2]>>2]](a)}if(!e)break n;c=f+1|0;p=(j-f|0)+1|0;s=p&1;t=(h|0)==(q-1|0);o=0;while(1){e=m+(J[((o<<2)+g|0)+4>>2]<<8)|0;if(!(!f|J[e>>2]>=0)){b=J[a>>2];J[b+24>>2]=d;J[b+20>> +2]=18;kc[J[J[a>>2]>>2]](a)}s:{if((f|0)>(j|0))break s;b=f;if(!q){if(!t){if(s){b=e+(b<<2)|0;if(J[b>>2]>=0){i=J[a>>2];J[i+24>>2]=d;J[i+20>>2]=18;kc[J[J[a>>2]>>2]](a)}J[b>>2]=h;b=c}if((p|0)==1)break s;while(1){i=e+(b<<2)|0;if(J[i>>2]>=0){l=J[a>>2];J[l+24>>2]=d;J[l+20>>2]=18;kc[J[J[a>>2]>>2]](a)}J[i>>2]=h;i=b+1|0;l=e+(i<<2)|0;if(J[l>>2]>=0){r=J[a>>2];J[r+24>>2]=d;J[r+20>>2]=18;kc[J[J[a>>2]>>2]](a)}J[l>>2]=h;b=b+2|0;if((j|0)!=(i|0))continue;break}break s}if(s){b=e+(b<<2)|0;if(J[b>>2]>0){i=J[a>>2];J[i+24>> +2]=d;J[i+20>>2]=18;kc[J[J[a>>2]>>2]](a)}J[b>>2]=h;b=c}if((p|0)==1)break s;while(1){i=e+(b<<2)|0;if(J[i>>2]>0){l=J[a>>2];J[l+24>>2]=d;J[l+20>>2]=18;kc[J[J[a>>2]>>2]](a)}J[i>>2]=h;i=b+1|0;l=e+(i<<2)|0;if(J[l>>2]>0){r=J[a>>2];J[r+24>>2]=d;J[r+20>>2]=18;kc[J[J[a>>2]>>2]](a)}J[l>>2]=h;b=b+2|0;if((j|0)!=(i|0))continue;break}break s}while(1){i=e+(b<<2)|0;l=J[i>>2];if(!(t&((l|0)==(q|0)&(l|0)>=0))){l=J[a>>2];J[l+24>>2]=d;J[l+20>>2]=18;kc[J[J[a>>2]>>2]](a)}J[i>>2]=h;i=(b|0)!=(j|0);b=b+1|0;if(i)continue;break}}o= +o+1|0;if((n|0)!=(o|0))continue;break}break n}if(f|q|(j|0)!=63|h){b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=18;kc[J[J[a>>2]>>2]](a)}b=0;if(!e)break n;while(1){c=(m+2560|0)+(J[((b<<2)+g|0)+4>>2]<<2)|0;if(J[c>>2]){f=J[a>>2];J[f+24>>2]=d;J[f+20>>2]=20;kc[J[J[a>>2]>>2]](a)}J[c>>2]=1;b=b+1|0;if((n|0)!=(b|0))continue;break}}b=d+1|0;g=g+36|0;if((d|0)>2])continue;break}e=J[a+76>>2];b=J[a+264>>2]}t:{if(b){b=0;if((e|0)<=0)break t;while(1){if(J[m+(b<<8)>>2]<0){c=J[a>>2];J[c+20>>2]=46;kc[J[c>>2]](a);e=J[a+76>> +2]}b=b+1|0;if((e|0)>(b|0))continue;break}break t}b=0;if((e|0)<=0)break t;while(1){if(!J[(m+2560|0)+(b<<2)>>2]){c=J[a>>2];J[c+20>>2]=46;kc[J[c>>2]](a);e=J[a+76>>2]}b=b+1|0;if((e|0)>(b|0))continue;break}}if(J[a+376>>2]>7)break i;e=0;if(J[a+200>>2]<=0){b=0;break j}f=J[a+204>>2];b=0;while(1){if((b|0)!=(e|0)){d=f+P(e,36)|0;g=J[d+4>>2];c=f+P(b,36)|0;J[c>>2]=J[d>>2];J[c+4>>2]=g;J[c+32>>2]=J[d+32>>2];g=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=g;g=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=g;g=J[d+12>> +2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=g}d=J[a+384>>2];c=f+P(b,36)|0;if((d|0)>=J[c+20>>2]){if((d|0)>2])J[c+24>>2]=d;b=b+1|0}e=e+1|0;if((e|0)>2])continue;break}break j}J[a+264>>2]=0;b=1}J[a+200>>2]=b}if(!(J[a+212>>2]|!J[a+264>>2]&J[a+376>>2]>7))J[a+216>>2]=1;J[k+20>>2]=0;b=J[a+216>>2];J[k+24>>2]=0;J[k+32>>2]=0;d=J[a+200>>2]<<1;u:{if(b)break u;d=J[a+200>>2]}J[k+28>>2]=d;fc=m+2608|0;if(!J[a+208>>2]){b=kc[J[J[a+4>>2]>>2]](a,1,12)|0;J[a+408>>2]=b;J[b>>2]=406;v:{w:{x:switch(J[a+40>>2]-1|0){case 0:if(J[a+ +36>>2]!=1)break w;break v;case 1:case 2:if(J[a+36>>2]!=3)break w;break v;case 3:case 4:if(J[a+36>>2]!=4)break w;break v;default:break x}if(J[a+36>>2]>0)break v}c=J[a>>2];J[c+20>>2]=10;kc[J[c>>2]](a)}y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{c=J[a+80>>2];switch(c-1|0){case 4:break D;case 3:break E;case 2:break F;case 1:break G;case 0:break H;default:break C}}if(J[a+76>>2]!=1){c=J[a>>2];J[c+20>>2]=11;kc[J[c>>2]](a)}I:switch(J[a+40>>2]-1|0){case 0:J[b+4>>2]=407;break y;case 1:J[b+4>>2]=408;break B;case 2:J[b+4>> +2]=407;break y;default:break I}break A}if(J[a+76>>2]!=3){c=J[a>>2];J[c+20>>2]=11;kc[J[c>>2]](a)}if(J[a+40>>2]==2)break z;break A}if(J[a+76>>2]!=3){c=J[a>>2];J[c+20>>2]=11;kc[J[c>>2]](a)}J:switch(J[a+40>>2]-2|0){case 0:J[b+4>>2]=411;break B;case 1:break z;default:break J}break A}if(J[a+76>>2]!=4){c=J[a>>2];J[c+20>>2]=11;kc[J[c>>2]](a)}if(J[a+40>>2]==4)break z;break A}if(J[a+76>>2]!=4){c=J[a>>2];J[c+20>>2]=11;kc[J[c>>2]](a)}K:switch(J[a+40>>2]-4|0){case 0:J[b+4>>2]=412;break B;case 1:break z;default:break K}break A}if(!((c| +0)==J[a+40>>2]&J[a+76>>2]==J[a+36>>2])){c=J[a>>2];J[c+20>>2]=28;kc[J[c>>2]](a)}J[b+4>>2]=410;break y}J[b>>2]=409;break y}b=J[a>>2];J[b+20>>2]=28;kc[J[b>>2]](a);break y}J[b+4>>2]=410}h=0;b=kc[J[J[a+4>>2]>>2]](a,1,112)|0;J[a+412>>2]=b;J[b+8>>2]=0;J[b+4>>2]=420;J[b>>2]=421;if(J[a+220>>2]){c=J[a>>2];J[c+20>>2]=26;kc[J[c>>2]](a)}L:{if(J[a+76>>2]<=0)break L;d=J[a+84>>2];k=1;while(1){f=J[a+272>>2];g=J[a+268>>2];j=J[a+276>>2];m=J[d+36>>2];n=J[d+8>>2];c=b+(h<<2)|0;e=(P(J[d+40>>2],J[d+12>>2])|0)/J[a+280>>2]| +0;J[c+52>>2]=e;j=(P(m,n)|0)/(j|0)|0;M:{if(!((j|0)!=(g|0)|(e|0)!=(f|0))){if(J[a+228>>2]){J[c+12>>2]=422;J[b+8>>2]=1;break M}J[c+12>>2]=423;break M}m=(g|0)!=j<<1;if(!(m|(e|0)!=(f|0))){J[c+12>>2]=424;k=0;break M}if(!((f|0)!=e<<1|m)){if(J[a+228>>2]){J[c+12>>2]=425;J[b+8>>2]=1;break M}J[c+12>>2]=426;break M}N:{i=g;g=(g|0)/(j|0)|0;if(i-P(g,j)|0)break N;i=f;f=(f|0)/(e|0)|0;if(i-P(f,e)|0)break N;J[c+12>>2]=427;c=b+h|0;H[c+102|0]=f;H[c+92|0]=g;k=0;break M}c=J[a>>2];J[c+20>>2]=39;kc[J[c>>2]](a)}d=d+88|0;h= +h+1|0;if((h|0)>2])continue;break}if(k|!J[a+228>>2])break L;b=J[a>>2];J[b+20>>2]=101;kc[J[b+4>>2]](a,0)}c=0;d=0;k=0;e=kc[J[J[a+4>>2]>>2]](a,1,64)|0;J[a+396>>2]=e;J[e>>2]=428;O:{if(J[J[a+412>>2]+8>>2]){J[e+4>>2]=429;b=J[a+272>>2];d=kc[J[J[a+4>>2]>>2]](a,1,P(P(b,J[a+76>>2]),20))|0;if(J[a+76>>2]<=0)break O;m=P(b,5);g=b<<2;n=P(b,12);q=P(b,3);f=J[a+84>>2];if((b|0)<=0){while(1){u=e+(c<<2)|0,v=xc(d+g|0,kc[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[f+28>>2]))|0)/J[f+8>>2]|0,q)|0,n),J[u+ +8>>2]=v;f=f+88|0;d=(m<<2)+d|0;c=c+1|0;if((c|0)>2])continue;break}break O}s=b&-2;t=b&1;i=b<<3;while(1){h=kc[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[f+28>>2]))|0)/J[f+8>>2]|0,q)|0;l=xc(d+g|0,h,n);j=h+i|0;c=0;o=0;if((b|0)!=1)while(1){p=c<<2;J[p+d>>2]=J[j+p>>2];J[(c+g<<2)+d>>2]=J[h+p>>2];r=c|1;p=r<<2;J[p+d>>2]=J[j+p>>2];J[(g+r<<2)+d>>2]=J[h+p>>2];c=c+2|0;o=o+2|0;if((s|0)!=(o|0))continue;break}if(t){o=c<<2;J[o+d>>2]=J[j+o>>2];J[(c+g<<2)+d>>2]=J[h+o>>2]}J[(e+(k<<2)|0)+8>>2]=l;f=f+ +88|0;d=(m<<2)+d|0;k=k+1|0;if((k|0)>2])continue;break}break O}J[e+4>>2]=430;if(J[a+76>>2]<=0)break O;c=J[a+84>>2];while(1){u=e+(d<<2)|0,v=kc[J[J[a+4>>2]+8>>2]](a,1,(P(J[a+268>>2],P(J[a+276>>2],J[c+28>>2]))|0)/J[c+8>>2]|0,J[a+272>>2])|0,J[u+8>>2]=v;c=c+88|0;d=d+1|0;if((d|0)>2])continue;break}}}b=kc[J[J[a+4>>2]>>2]](a,1,156)|0;J[a+416>>2]=b;J[b+84>>2]=0;J[b+88>>2]=0;J[b>>2]=431;J[b+92>>2]=0;J[b+96>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+152>>2]=0;P:{if(J[a+212>>2]){b=kc[J[J[a+ +4>>2]>>2]](a,1,208)|0;J[a+420>>2]=b;J[b+8>>2]=468;J[b>>2]=469;Ac(b+76|0,0,128);H[b+204|0]=113;break P}b=kc[J[J[a+4>>2]>>2]](a,1,140)|0;J[a+420>>2]=b;J[b+44>>2]=0;J[b+48>>2]=0;J[b>>2]=475;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;if(J[a+264>>2])J[b+136>>2]=0}c=J[a+216>>2]!=0|J[a+200>>2]>1;d=0;b=kc[J[J[a+4>>2]>>2]](a,1,104)|0;J[a+400>>2]=b;J[b>>2]=484;Q:{if(c){if(J[a+ +76>>2]<=0)break Q;c=J[a+84>>2];while(1){f=J[c+8>>2];k=(f+J[c+28>>2]|0)-1|0;g=k-((k|0)%(f|0)|0)|0;f=J[c+12>>2];k=(f+J[c+32>>2]|0)-1|0;u=(b+(d<<2)|0)- -64|0,v=kc[J[J[a+4>>2]+20>>2]](a,1,0,g,k-((k|0)%(f|0)|0)|0,f)|0,J[u>>2]=v;c=c+88|0;d=d+1|0;if((d|0)>2])continue;break}break Q}c=kc[J[J[a+4>>2]+4>>2]](a,1,1280)|0;J[b+64>>2]=0;J[b+24>>2]=c;J[b+60>>2]=c+1152;J[b+56>>2]=c+1024;J[b+52>>2]=c+896;J[b+48>>2]=c+768;J[b+44>>2]=c+640;J[b+40>>2]=c+512;J[b+36>>2]=c+384;J[b+32>>2]=c+256;J[b+28>>2]=c+128}c= +0;d=kc[J[J[a+4>>2]>>2]](a,1,64)|0;J[a+392>>2]=d;J[d>>2]=488;if(!(J[a+208>>2]|J[a+76>>2]<=0)){b=J[a+84>>2];while(1){u=d+(c<<2)|0,v=kc[J[J[a+4>>2]+8>>2]](a,1,P(J[b+36>>2],J[b+28>>2]),P(J[b+40>>2],J[b+12>>2]))|0,J[u+24>>2]=v;b=b+88|0;c=c+1|0;if((c|0)>2])continue;break}}$1(a);kc[J[J[a+4>>2]+24>>2]](a);kc[J[J[a+404>>2]>>2]](a);kc[J[J[a+388>>2]>>2]](a);J[a+260>>2]=0;J[a+20>>2]=J[a+208>>2]?102:101}function nFa(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,y=0,z=0,A=0,C=0,D=0,E=0;E=fc-32|0;fc=E;a:{b:{c=J[a>>2];c:{if((c|0)<=0){b=Qc(E+8|0,2389213,2385875,649,2396192,0);break c}if(K[(c+J[a+4>>2]|0)-1|0]){b=Qc(E+8|0,2388583,2385875,650,2396192,0);break c}d:{if(c>>>0>=32769){j=fc-48|0;fc=j;k=sh(j+36|0,j+44|0,65536,4);i=Ac(J[j+44>>2],0,262144);r=J[a+4>>2];if(J[a>>2]>=2){l=K[r|0];while(1){c=(l&255)<<10;f=f+1|0;l=K[r+f|0];c=i+(c|l<<2)|0;J[c>>2]=J[c>>2]+1;if((J[a>>2]-1|0)>(f|0))continue;break}}d=i+16|0;g=i+12|0;f=i+8|0;h=i+4|0;m=J[i>>2]; +l=1;while(1){e=m;m=l<<2;c=m+i|0;e=e+J[c>>2]|0;J[c>>2]=e;c=h+m|0;e=e+J[c>>2]|0;J[c>>2]=e;c=f+m|0;e=e+J[c>>2]|0;J[c>>2]=e;c=g+m|0;e=e+J[c>>2]|0;J[c>>2]=e;c=d+m|0;m=e+J[c>>2]|0;J[c>>2]=m;l=l+5|0;if((l|0)!=65536)continue;break}d=J[a>>2];e:{if((d|0)<3)break e;c=J[a+20>>2];m=K[r|0];f=0;while(1){h=c+(f<<2)|0;g=(m&255)<<10;f=f+1|0;m=K[r+f|0];J[h>>2]=J[i+(g|m<<2)>>2];d=J[a>>2];h=d-2|0;if((h|0)>(f|0))continue;break}if((d|0)<3)break e;c=d-3|0;m=K[h+r|0];e=J[a+8>>2];if(d&1){f=m<<2;m=K[c+r|0];h=i+(f|m<<10)|0; +f=J[h>>2];J[h>>2]=f-1;J[e+(f<<2)>>2]=c;f=d-4|0}else f=c;if(c)while(1){h=K[f+r|0];c=i+(h<<10|(m&255)<<2)|0;g=J[c>>2];J[c>>2]=g-1;J[e+(g<<2)>>2]=f;g=f-1|0;m=K[g+r|0];c=i+(m<<10|h<<2)|0;h=J[c>>2];J[c>>2]=h-1;J[e+(h<<2)>>2]=g;f=f-2|0;if(g)continue;break}d=J[a>>2]}f=d-1|0;if(K[f+r|0]){J[699344]=0;b=ja(5178,j+12|0,2388583,2385875,631,2396165,0)|0;a=J[699344];J[699344]=0;f:{g:{if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;B()}l=Z()|0;break f}l=Z()|0;Kc(b)}hd(k);ba(l|0); +B()}c=K[(d+r|0)-2|0];h=J[a+8>>2];J[h>>2]=f;c=i+(c<<10)|0;J[h+(J[c>>2]<<2)>>2]=J[a>>2]-2;h=J[a+20>>2];J[(h+(J[a>>2]<<2)|0)-4>>2]=0;J[(h+(J[a>>2]<<2)|0)-8>>2]=J[c>>2];J[h+(J[a>>2]<<2)>>2]=-1;hd(k);fc=j+48|0;r=2;break d}c=0;g=fc-2048|0;fc=g;Ac(g+1024|0,0,1024);r=Ac(g,0,1024);m=J[a>>2];l=m-1|0;g=1;h:{if((m|0)<=1)break h;j=J[a+4>>2];if(m-2>>>0>=3){k=l&-4;while(1){e=r+(K[c+j|0]<<2)|0;J[e>>2]=J[e>>2]+1;e=r+(K[j+(c|1)|0]<<2)|0;J[e>>2]=J[e>>2]+1;e=r+(K[j+(c|2)|0]<<2)|0;J[e>>2]=J[e>>2]+1;e=r+(K[j+(c|3)|0]<< +2)|0;J[e>>2]=J[e>>2]+1;c=c+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}e=l&3;if(!e)break h;while(1){d=r+(K[c+j|0]<<2)|0;J[d>>2]=J[d>>2]+1;c=c+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}while(1){d=h<<2;f=r+1024|0;J[d+f>>2]=g;c=d+r|0;g=J[c>>2]+g|0;J[c>>2]=g-1;c=d|4;J[c+f>>2]=g;c=c+r|0;g=g+J[c>>2]|0;J[c>>2]=g-1;h=h+2|0;if((h|0)!=256)continue;break}k=J[a+8>>2];i:{if((m|0)<=1){c=J[a+20>>2];break i}c=J[a+20>>2];d=J[a+4>>2];h=0;while(1){g=d+h|0;f=(r+1024|0)+(K[g|0]<<2)|0;e=J[f>>2];J[f>>2]=e+1;J[k+(e<<2)>> +2]=h;J[(h<<2)+c>>2]=J[r+(K[g|0]<<2)>>2];h=h+1|0;l=J[a>>2]-1|0;if((h|0)<(l|0))continue;break}}J[k>>2]=l;J[((J[a>>2]<<2)+c|0)-4>>2]=0;J[(J[a>>2]<<2)+c>>2]=-1;fc=r+2048|0;r=1}d=J[a>>2];if((d|0)>0){c=0;while(1){u=J[J[a+20>>2]+(J[J[a+8>>2]+(c<<2)>>2]<<2)>>2];if((u|0)>(c|0)){h=0;p=fc-6176|0;fc=p;J[p+4128>>2]=c;J[p+2080>>2]=u;J[p+32>>2]=r;f=1;while(1){c=h<<2;x=c+(p+2080|0)|0;d=J[x>>2];v=c+(p+4128|0)|0;l=J[v>>2];y=c+(p+32|0)|0;j=J[y>>2];j:{if((j|0)>=8){if((d|0)<(l|0)){f=h;break j}k=J[a+8>>2];e=J[a+20>>2]; +g=0;f=d-l|0;c=f+1&3;if(c)while(1){J[e+(J[k+(l<<2)>>2]<<2)>>2]=d;l=l+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}if(f>>>0<3){f=h;break j}g=k+8|0;f=k+4|0;while(1){c=l<<2;J[e+(J[c+k>>2]<<2)>>2]=d;J[e+(J[c+f>>2]<<2)>>2]=d;J[e+(J[c+g>>2]<<2)>>2]=d;c=l+3|0;J[e+(J[k+(c<<2)>>2]<<2)>>2]=d;l=l+4|0;if((c|0)!=(d|0))continue;break}f=h;break j}k:{if((d-l|0)<=9){if((d|0)<=(l|0))break k;z=J[a+8>>2];x=z+4|0;f=l;while(1){c=f;f=c+1|0;w=J[z+(f<<2)>>2];l:{if((c|0)<(l|0))break l;m=j+w|0;while(1){k=c;v=z+(c<<2)|0;y=J[v>> +2];c=y+j|0;q=J[a+4>>2];e=m;g=j;m:{n:{while(1){if((g|0)>7)break n;t=c+q|0;n=K[t|0];o=e+q|0;i=K[o|0];if((n|0)!=(i|0)){if(i>>>0>>0)break m;c=k;break l}g=g+2|0;e=e+2|0;c=c+2|0;n=K[t+1|0];i=K[o+1|0];if((n|0)==(i|0))continue;break}if(i>>>0>>0)break m;c=k;break l}g=J[a>>2];if(!((g|0)<=(c|0)|(e|0)>=(g|0))){c=k;break l}if((c|0)<(e|0))break m;c=k;break l}J[v+4>>2]=y;c=k-1|0;if((k|0)>(l|0))continue;break}}J[x+(c<<2)>>2]=w;if((d|0)!=(f|0))continue;break}break k}t=j+J[a+4>>2]|0;z=SA(a,t,l,d);s=J[a+8>>2]; +c=l;while(1){k=c;if((z|0)==K[t+J[s+(c<<2)>>2]|0]){c=c+1|0;if((d|0)>(k|0))continue}break}c=d;while(1){m=c;if((c|0)>(k|0)){c=c-1|0;if((z|0)==K[t+J[s+(m<<2)>>2]|0])continue}break}e=k;c=m;while(1){o:{if((c|0)<(e|0))break o;g=c+1|0;while(1){o=s+(e<<2)|0;n=J[o>>2];i=K[n+t|0];if(i>>>0>z>>>0)break o;if((i|0)==(z|0)){i=s+(k<<2)|0;J[o>>2]=J[i>>2];J[i>>2]=n;k=k+1|0}i=(c|0)!=(e|0);e=e+1|0;if(i)continue;break}e=g}g=c;p:{if((c|0)<(e|0))break p;while(1){n=s+(c<<2)|0;i=J[n>>2];g=K[i+t|0];if(g>>>0>>0){g=c;break p}if((g| +0)==(z|0)){g=s+(m<<2)|0;J[n>>2]=J[g>>2];J[g>>2]=i;m=m-1|0}i=(c|0)>(e|0);g=c-1|0;c=g;if(i)continue;break}}if((e|0)<=(g|0)){c=s+(e<<2)|0;i=J[c>>2];o=c;c=s+(g<<2)|0;J[o>>2]=J[c>>2];J[c>>2]=i;c=g;continue}break}c=k-l|0;w=e-k|0;i=(c|0)<(w|0)?c:w;q:{if((i|0)<=0)break q;c=e-i|0;r:{if(!(i&1)){k=i;e=l;break r}e=s+(l<<2)|0;k=J[e>>2];o=e;e=s+(c<<2)|0;J[o>>2]=J[e>>2];J[e>>2]=k;c=c+1|0;k=i-1|0;e=l+1|0}if((i|0)==1)break q;q=s+4|0;while(1){t=e<<2;i=t+s|0;n=J[i>>2];D=i;o=c<<2;i=o+s|0;J[D>>2]=J[i>>2];J[i>>2]=n;i= +q+t|0;n=J[i>>2];D=i;i=q+o|0;J[D>>2]=J[i>>2];J[i>>2]=n;c=c+2|0;e=e+2|0;i=k-3|0;k=k-2|0;if(i>>>0<4294967294)continue;break}}c=d-m|0;n=m-g|0;k=(c|0)<(n|0)?c:n;s:{if((k|0)<=0)break s;c=d-k|0;if(k&1){c=c+1|0;e=s+(c<<2)|0;m=J[e>>2];i=e;g=g+1|0;e=s+(g<<2)|0;J[i>>2]=J[e>>2];J[e>>2]=m;e=k-1|0}else e=k;if((k|0)==1)break s;i=s+4|0;while(1){k=i+(c<<2)|0;m=J[k>>2];o=k;k=i+(g<<2)|0;J[o>>2]=J[k>>2];J[k>>2]=m;c=c+2|0;k=s+(c<<2)|0;m=J[k>>2];o=k;g=g+2|0;k=s+(g<<2)|0;J[o>>2]=J[k>>2];J[k>>2]=m;k=e-3|0;e=e-2|0;if(k>>> +0<4294967294)continue;break}}t:{if(f>>>0>=510){b=Qc(p+8|0,2387931,2385875,523,2396125,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break t;break a}g=l+w|0;c=g;i=d-n|0;u:{if((c|0)>(i|0)|z)break u;k=J[a>>2]-1|0;v:{while(1){e=s+(c<<2)|0;m=J[e>>2];if((k|0)==(m+j|0))break v;e=(c|0)>=(i|0);c=c+1|0;if(!e)continue;break}c=g;break u}c=s+(g<<2)|0;J[e>>2]=J[c>>2];J[c>>2]=m;J[J[a+20>>2]+(m<<2)>>2]=g;c=g+1|0}w:{if((c|0)<(i|0)){J[v>>2]=c;J[x>>2]=i;J[y>>2]=j+1;break w}if((c|0)==(i|0))J[J[a+20>> +2]+(J[s+(i<<2)>>2]<<2)>>2]=i;f=h}h=g-1|0;x:{if((h|0)>(l|0)){c=f<<2;J[c+(p+2080|0)>>2]=h;J[c+(p+4128|0)>>2]=l;J[c+(p+32|0)>>2]=j;f=f+1|0;break x}if((h|0)!=(l|0))break x;J[J[a+20>>2]+(J[s+(l<<2)>>2]<<2)>>2]=l}h=i+1|0;if((h|0)<(d|0)){c=f<<2;J[c+(p+2080|0)>>2]=d;J[c+(p+4128|0)>>2]=h;J[c+(p+32|0)>>2]=j;f=f+1|0;break j}if((d|0)!=(h|0))break j;J[J[a+20>>2]+(J[s+(d<<2)>>2]<<2)>>2]=d;break j}B()}if((d|0)<(l|0)){f=h;break j}x=J[a+20>>2];v=J[a+8>>2];while(1){m=d;c=J[v+(d<<2)>>2];J[x+(c<<2)>>2]=d;d=d-1|0;y:{if((l| +0)>=(m|0))break y;k=c+j|0;while(1){f=d;t=J[v+(d<<2)>>2];c=t+j|0;y=J[a+4>>2];e=k;g=j;z:{A:{while(1){if((g|0)>7)break A;o=e+y|0;i=K[o|0];n=c+y|0;d=K[n|0];if((i|0)!=(d|0)){if(d>>>0>=i>>>0)break z;d=f;break y}g=g+2|0;c=c+2|0;e=e+2|0;i=K[o+1|0];d=K[n+1|0];if((i|0)==(d|0))continue;break}if(d>>>0>=i>>>0)break z;d=f;break y}g=J[a>>2];if(!((g|0)<=(e|0)|(c|0)>=(g|0))|(c|0)<=(e|0))break z;d=f;break y}J[x+(t<<2)>>2]=m;d=f-1|0;if((f|0)>(l|0))continue;break}}if((d|0)>=(l|0))continue;break}f=h}h=f-1|0;if((f|0)> +0)continue;break}fc=p+6176|0;d=J[a>>2]}c=u+1|0;if((d|0)>(c|0))continue;break}}m=8;while(1){if(J[a>>2]>0){r=m<<1;e=0;u=0;z=0;while(1){p=J[a+20>>2];w=J[a+8>>2];c=J[w+(e<<2)>>2];A=J[p+((c&16777215)<<2)>>2];B:{if((A|0)==(e|0)){A=(c>>>24|0)+e|0;break B}C:{x=A-e|0;if((x|0)<=9){if((e|0)>=(A|0))break C;y=w+4|0;q=m<<2;v=q+p|0;h=e;while(1){c=h;h=c+1|0;d=J[w+(h<<2)>>2];D:{if((c|0)<(e|0))break D;while(1){g=d;f=c;t=w+(c<<2)|0;o=J[t>>2];c=o;E:{while(1){l=J[v+(c<<2)>>2];k=J[v+(g<<2)>>2];if((l|0)!=(k|0)){if((k|0)< +(l|0))break E;c=f;break D}n=c+r|0;i=p+(n<<2)|0;l=J[i>>2];j=g+r|0;k=p+(j<<2)|0;c=J[k>>2];if((l|0)!=(c|0)){if((c|0)<(l|0))break E;c=f;break D}g=J[i+q>>2];c=J[k+q>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}i=n+r|0;l=p+(i<<2)|0;g=J[l>>2];j=j+r|0;k=p+(j<<2)|0;c=J[k>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}g=J[l+q>>2];c=J[k+q>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}i=i+r|0;l=p+(i<<2)|0;g=J[l>>2];j=j+r|0;k=p+(j<<2)|0;c=J[k>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E; +c=f;break D}g=J[l+q>>2];c=J[k+q>>2];if((g|0)!=(c|0)){if((c|0)<(g|0))break E;c=f;break D}c=i+r|0;l=J[p+(c<<2)>>2];g=j+r|0;k=J[p+(g<<2)>>2];if((l|0)==(k|0))continue;break}if((k|0)<(l|0))break E;c=f;break D}J[t+4>>2]=o;c=f-1|0;if((e|0)<(f|0))continue;break}}J[y+(c<<2)>>2]=d;if((h|0)!=(A|0))continue;break}break C}h=e-1|0;if((h|0)>(u|0))while(1){c=h-u|0;c=(c|0)>=255?255:c;H[(w+(u<<2)|0)+3|0]=c;u=(c+u|0)+1|0;if((h|0)>(u|0))continue;break}z=z+1|0;k=0;C=fc-4128|0;fc=C;J[C+2080>>2]=e;J[C+32>>2]=A;l=1;F:{G:{while(1){c= +k<<2;y=c+(C+32|0)|0;i=J[y>>2];g=J[c+(C+2080|0)>>2];H:{if((i-g|0)<=9){if((g|0)<(i|0)){s=m<<1;w=J[a+8>>2];x=w+4|0;p=J[a+20>>2];u=m<<2;q=p+u|0;h=g;while(1){c=h;h=c+1|0;e=J[w+(h<<2)>>2];I:{if((c|0)<(g|0))break I;while(1){d=e;f=c;v=w+(c<<2)|0;y=J[v>>2];c=y;J:{while(1){j=J[q+(c<<2)>>2];l=J[q+(d<<2)>>2];if((j|0)!=(l|0)){if((j|0)>(l|0))break J;c=f;break I}t=c+s|0;o=p+(t<<2)|0;j=J[o>>2];n=d+s|0;l=p+(n<<2)|0;c=J[l>>2];if((j|0)!=(c|0)){if((c|0)<(j|0))break J;c=f;break I}d=J[u+o>>2];c=J[l+u>>2];if((d|0)!=(c| +0)){if((c|0)<(d|0))break J;c=f;break I}o=s+t|0;j=p+(o<<2)|0;d=J[j>>2];n=n+s|0;l=p+(n<<2)|0;c=J[l>>2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}d=J[j+u>>2];c=J[l+u>>2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}o=s+o|0;j=p+(o<<2)|0;d=J[j>>2];n=n+s|0;l=p+(n<<2)|0;c=J[l>>2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}d=J[j+u>>2];c=J[l+u>>2];if((d|0)!=(c|0)){if((c|0)<(d|0))break J;c=f;break I}c=s+o|0;j=J[p+(c<<2)>>2];d=n+s|0;l=J[p+(d<<2)>>2];if((j|0)==(l|0))continue;break}if((j| +0)>(l|0))break J;c=f;break I}J[v+4>>2]=y;c=f-1|0;if((f|0)>(g|0))continue;break}}J[x+(c<<2)>>2]=e;if((h|0)!=(i|0))continue;break}}K:{if((g|0)>(i|0))break K;e=J[a+8>>2];d=J[a+20>>2];f=i-g|0;h=f+1&3;if(h){c=0;while(1){J[d+(J[e+(g<<2)>>2]<<2)>>2]=g;g=g+1|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}if(f>>>0<3)break K;while(1){J[d+(J[e+(g<<2)>>2]<<2)>>2]=g;c=g+1|0;J[d+(J[e+(c<<2)>>2]<<2)>>2]=c;c=g+2|0;J[d+(J[e+(c<<2)>>2]<<2)>>2]=c;c=g+3|0;J[d+(J[e+(c<<2)>>2]<<2)>>2]=c;g=g+4|0;if((c|0)!=(i|0))continue;break}}break H}t= +J[a+20>>2]+(m<<2)|0;v=TA(a,t,g,i);q=J[a+8>>2];c=g;while(1){d=c;if((c|0)<(i|0)){c=c+1|0;if((v|0)==J[t+(J[q+(d<<2)>>2]<<2)>>2])continue}break}c=i;while(1){e=c;if((c|0)>(d|0)){c=c-1|0;if((v|0)==J[t+(J[q+(e<<2)>>2]<<2)>>2])continue}break}f=d;c=e;while(1){L:{if((c|0)<(f|0))break L;h=c+1|0;while(1){o=q+(f<<2)|0;n=J[o>>2];j=J[t+(n<<2)>>2];if((j|0)>(v|0))break L;if((j|0)==(v|0)){j=q+(d<<2)|0;J[o>>2]=J[j>>2];J[j>>2]=n;d=d+1|0}j=(c|0)!=(f|0);f=f+1|0;if(j)continue;break}f=h}h=c;M:{if((c|0)<(f|0))break M;while(1){n= +q+(c<<2)|0;j=J[n>>2];h=J[t+(j<<2)>>2];if((h|0)<(v|0)){h=c;break M}if((h|0)==(v|0)){h=q+(e<<2)|0;J[n>>2]=J[h>>2];J[h>>2]=j;e=e-1|0}j=(c|0)>(f|0);h=c-1|0;c=h;if(j)continue;break}}if((f|0)<=(h|0)){c=q+(f<<2)|0;j=J[c>>2];o=c;c=q+(h<<2)|0;J[o>>2]=J[c>>2];J[c>>2]=j;c=h;continue}break}c=d-g|0;x=f-d|0;j=(c|0)<(x|0)?c:x;N:{if((j|0)<=0)break N;c=f-j|0;O:{if(!(j&1)){d=j;f=g;break O}f=q+(g<<2)|0;d=J[f>>2];o=f;f=q+(c<<2)|0;J[o>>2]=J[f>>2];J[f>>2]=d;c=c+1|0;d=j-1|0;f=g+1|0}if((j|0)==1)break N;v=q+4|0;while(1){t= +f<<2;j=t+q|0;n=J[j>>2];D=j;o=c<<2;j=o+q|0;J[D>>2]=J[j>>2];J[j>>2]=n;j=v+t|0;n=J[j>>2];D=j;j=v+o|0;J[D>>2]=J[j>>2];J[j>>2]=n;c=c+2|0;f=f+2|0;j=d-3|0;d=d-2|0;if(j>>>0<4294967294)continue;break}}c=i-e|0;n=e-h|0;d=(c|0)<(n|0)?c:n;P:{if((d|0)<=0)break P;c=i-d|0;if(d&1){c=c+1|0;f=q+(c<<2)|0;e=J[f>>2];j=f;h=h+1|0;f=q+(h<<2)|0;J[j>>2]=J[f>>2];J[f>>2]=e;f=d-1|0}else f=d;if((d|0)==1)break P;j=q+4|0;while(1){d=j+(c<<2)|0;e=J[d>>2];o=d;d=j+(h<<2)|0;J[o>>2]=J[d>>2];J[d>>2]=e;c=c+2|0;d=q+(c<<2)|0;e=J[d>>2];o=d; +h=h+2|0;d=q+(h<<2)|0;J[o>>2]=J[d>>2];J[d>>2]=e;d=f-3|0;f=f-2|0;if(d>>>0<4294967294)continue;break}}Q:{if(l>>>0<=510){h=g+x|0;e=i-n|0;if((h|0)<=(e|0)){d=J[a+20>>2];c=h;while(1){J[d+(J[q+(c<<2)>>2]<<2)>>2]=e;f=(c|0)<(e|0);c=c+1|0;if(f)continue;break}}if((x|0)>0){d=h-1|0;f=J[a+20>>2];c=g;while(1){J[f+(J[q+(c<<2)>>2]<<2)>>2]=d;c=c+1|0;if((h|0)>(c|0))continue;break}J[y>>2]=d;k=(d|0)>(g|0)?l:k}if((n|0)>0)break Q;break H}b=Qc(C+8|0,2387291,2385875,347,2396085,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]= +0;if((a|0)!=1)break G;break a}c=k<<2;J[c+(C+32|0)>>2]=i;f=c+(C+2080|0)|0;c=e+1|0;J[f>>2]=c;k=((c|0)<(i|0))+k|0}l=k;k=l-1|0;if((l|0)>0)continue;break}fc=C+4128|0;break F}B()}u=A+1|0;break B}if((e|0)>(A|0))break B;d=0;c=x+1&3;if(c)while(1){J[p+(J[w+(e<<2)>>2]<<2)>>2]=e;e=e+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}if(x>>>0<3)break B;while(1){J[p+(J[w+(e<<2)>>2]<<2)>>2]=e;c=e+1|0;J[p+(J[w+(c<<2)>>2]<<2)>>2]=c;c=e+2|0;J[p+(J[w+(c<<2)>>2]<<2)>>2]=c;c=e+3|0;J[p+(J[w+(c<<2)>>2]<<2)>>2]=c;e=e+4|0;if((c| +0)!=(A|0))continue;break}}e=A+1|0;if((e|0)>2])continue;break}if((u|0)<(A|0)){h=J[a+8>>2];while(1){c=A-u|0;c=(c|0)>=255?255:c;H[(h+(u<<2)|0)+3|0]=c;u=(c+u|0)+1|0;if((A|0)>(u|0))continue;break}}m=r;if(z)continue}break}J[b>>2]=-1;d=J[a>>2];R:{if((d|0)<=0)break R;f=J[a+20>>2];h=J[a+4>>2];c=0;while(1){J[f+(c<<2)>>2]=K[c+h|0];c=c+1|0;d=J[a>>2];if((c|0)<(d|0))continue;break}c=0;if((d|0)<=0)break R;while(1){h=J[J[a+8>>2]+(c<<2)>>2]&16777215;S:{if(h){H[J[a+4>>2]+c|0]=J[(J[a+20>>2]+(h<<2)|0)-4>>2];break S}H[J[a+ +4>>2]+c|0]=0;J[b>>2]=c}c=c+1|0;d=J[a>>2];if((c|0)<(d|0))continue;break}}a=J[b>>2];if((a|0)>=0&(a|0)<(d|0))break b;b=Qc(E+8|0,2389856,2385875,740,2396192,0)}J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;Kc(b);ba(a|0)}B()}fc=E+32|0;return}a=Z()|0;Kc(b);ba(a|0);B()}function Wk(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;e=-2;a:{b:{c:{d:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break d;d=J[a+28>>2];if(!d|J[d>>2]!=(a|0))break d;e:{f:{c=J[d+4>>2];switch(c-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break d; +case 0:case 12:case 16:case 34:case 46:case 56:break e;default:break f}}if((c|0)==666)break e;if((c|0)!=42)break d}if(b>>>0>5)break d;g:{h:{if(!J[a+12>>2])break h;f=J[a+4>>2];if(J[a>>2]?0:f)break h;if((b|0)==4|(c|0)!=666)break g}J[a+24>>2]=J[192428];return-2}if(!J[a+16>>2])break b;e=J[d+40>>2];J[d+40>>2]=b;i:{if(J[d+20>>2]){Uh(d);g=J[d+20>>2];c=J[a+16>>2];e=c>>>0>g>>>0?g:c;j:{if(!e)break j;xc(J[a+12>>2],J[d+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[d+16>>2]=e+J[d+16>>2];J[a+20>>2]=e+J[a+20>>2];c=J[a+16>> 2]-e|0;J[a+16>>2]=c;f=J[d+20>>2];g=f-e|0;J[d+20>>2]=g;if((e|0)!=(f|0))break j;J[d+16>>2]=J[d+8>>2]}if(c){c=J[d+4>>2];break i}break a}if((b|0)==4|f|((b<<1)+(b>>>0>4?-9:0)|0)>((e<<1)+((e|0)>4?-9:0)|0))break i;break b}k:{l:{m:{n:{if((c|0)!=42){if((c|0)!=666)break n;if(!J[a+4>>2])break m;break b}f=(J[d+48>>2]<<12)-30720|0;e=0;o:{if(J[d+136>>2]>1)break o;c=J[d+132>>2];if((c|0)<2)break o;e=64;if(c>>>0<6)break o;e=(c|0)==6?128:192}J[d+20>>2]=g+1;c=e|f;c=J[d+108>>2]?c|32:c;H[J[d+8>>2]+g|0]=c>>>8;e=J[d+20>> -2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=(c|(c>>>0)%31)^31;if(J[d+108>>2]){c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>24;e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>16;c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c}l=a,m=ho(0,0,0),J[l+48>>2]=m;J[d+4>>2]=113;It(a);if(J[d+20>>2])break a;c=J[d+4>>2]}p:{q:{r:{s:{t:{u:{if((c|0)==57){l=a,m=$f(0,0,0),J[l+48>>2]=m;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=31;c=J[d+20>>2]; +2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=(c|(c>>>0)%31)^31;if(J[d+108>>2]){c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>24;e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>16;c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c}l=a,m=Zo(0,0,0),J[l+48>>2]=m;J[d+4>>2]=113;vu(a);if(J[d+20>>2])break a;c=J[d+4>>2]}p:{q:{r:{s:{t:{u:{if((c|0)==57){l=a,m=ig(0,0,0),J[l+48>>2]=m;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=31;c=J[d+20>>2]; J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=139;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=8;c=J[d+28>>2];if(c)break u;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=0;e=2;c=J[d+132>>2];if((c|0)!=9)e=(c|0)<2?4:(J[d+136>>2]>1)<<2;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=3;J[d+ -4>>2]=113;It(a);if(J[d+20>>2])break a;c=J[d+4>>2]}switch(c-69|0){case 34:break q;case 22:break r;case 4:break s;case 0:break t;default:break p}}f=J[c+36>>2];g=J[c+28>>2];h=J[c+16>>2];j=J[c+44>>2];c=J[c>>2];i=J[d+20>>2];J[d+20>>2]=i+1;e=2;H[i+J[d+8>>2]|0]=((j|0)!=0)<<1|(c|0)!=0|((h|0)!=0)<<2|((g|0)!=0)<<3|((f|0)!=0)<<4;c=J[J[d+28>>2]+4>>2];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c;c=J[J[d+28>>2]+4>>2];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c>>>8;c=L[J[d+28>>2]+6>>1];f=J[d+20>>2];J[d+20>> -2]=f+1;H[f+J[d+8>>2]|0]=c;c=K[J[d+28>>2]+7|0];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c;c=J[d+132>>2];if((c|0)!=9)e=(c|0)<2?4:(J[d+136>>2]>1)<<2;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[J[d+28>>2]+12>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c;c=J[d+28>>2];if(J[c+16>>2]){c=J[c+20>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c;c=J[J[d+28>>2]+20>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;c=J[d+28>>2]}if(J[c+44>>2])l=a,m=$f(J[a+48>>2],J[d+8>>2],J[d+20>>2]),J[l+48>> -2]=m;J[d+4>>2]=69;J[d+32>>2]=0}f=J[d+28>>2];c=J[f+16>>2];if(c){h=J[d+12>>2];e=J[d+20>>2];g=J[d+32>>2];f=L[f+20>>1]-g|0;if(h>>>0>>0){c=c+g|0;g=h-e|0;tc(J[d+8>>2]+e|0,c,g);c=J[d+12>>2];J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|c>>>0<=e>>>0))l=a,m=$f(J[a+48>>2],J[d+8>>2]+e|0,c-e|0),J[l+48>>2]=m;J[d+32>>2]=g+J[d+32>>2];c=J[a+28>>2];Hh(c);e=J[c+20>>2];h=J[a+16>>2];e=e>>>0>>0?e:h;v:{if(!e)break v;tc(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+20>>2];J[a+ -16>>2]=J[a+16>>2]-e;h=J[c+20>>2];J[c+20>>2]=h-e;if((e|0)!=(h|0))break v;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break c;f=f-g|0;g=J[d+12>>2];if(f>>>0>g>>>0)while(1){tc(J[d+8>>2],J[J[d+28>>2]+16>>2]+J[d+32>>2]|0,g);c=J[d+12>>2];J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|!c))l=a,m=$f(J[a+48>>2],J[d+8>>2],c),J[l+48>>2]=m;J[d+32>>2]=J[d+32>>2]+g;c=J[a+28>>2];Hh(c);e=J[c+20>>2];h=J[a+16>>2];e=e>>>0>>0?e:h;w:{if(!e)break w;tc(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]= -e+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-e;h=J[c+20>>2];J[c+20>>2]=h-e;if((e|0)!=(h|0))break w;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break c;f=f-g|0;g=J[d+12>>2];if(f>>>0>g>>>0)continue;break}g=J[d+32>>2];e=0;c=J[J[d+28>>2]+16>>2]}tc(J[d+8>>2]+e|0,c+g|0,f);c=J[d+20>>2]+f|0;J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|c>>>0<=e>>>0))l=a,m=$f(J[a+48>>2],J[d+8>>2]+e|0,c-e|0),J[l+48>>2]=m;J[d+32>>2]=0}J[d+4>>2]=73}if(J[J[d+28>>2]+28>>2]){f=J[d+20>>2];while(1){c=J[d+28>>2];e=J[d+20>>2];if((e|0)==J[d+12>>2]){if(!(!J[c+ -44>>2]|e>>>0<=f>>>0))l=a,m=$f(J[a+48>>2],J[d+8>>2]+f|0,e-f|0),J[l+48>>2]=m;c=J[a+28>>2];Hh(c);e=J[c+20>>2];f=J[a+16>>2];e=e>>>0>>0?e:f;x:{if(!e)break x;tc(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-e;f=J[c+20>>2];J[c+20>>2]=f-e;if((e|0)!=(f|0))break x;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break a;f=0;e=0;c=J[d+28>>2]}c=J[c+28>>2];g=J[d+32>>2];J[d+32>>2]=g+1;c=K[c+g|0];J[d+20>>2]=e+1;H[J[d+8>>2]+e|0]=c;if(c)continue;break}y:{if(!J[J[d+ -28>>2]+44>>2])break y;c=J[d+20>>2];if(c>>>0<=f>>>0)break y;l=a,m=$f(J[a+48>>2],J[d+8>>2]+f|0,c-f|0),J[l+48>>2]=m}J[d+32>>2]=0}J[d+4>>2]=91}z:{if(!J[J[d+28>>2]+36>>2])break z;f=J[d+20>>2];while(1){c=J[d+28>>2];e=J[d+20>>2];if((e|0)==J[d+12>>2]){if(!(!J[c+44>>2]|e>>>0<=f>>>0))l=a,m=$f(J[a+48>>2],J[d+8>>2]+f|0,e-f|0),J[l+48>>2]=m;c=J[a+28>>2];Hh(c);e=J[c+20>>2];f=J[a+16>>2];e=e>>>0>>0?e:f;A:{if(!e)break A;tc(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+ -20>>2];J[a+16>>2]=J[a+16>>2]-e;f=J[c+20>>2];J[c+20>>2]=f-e;if((e|0)!=(f|0))break A;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break a;f=0;e=0;c=J[d+28>>2]}c=J[c+36>>2];g=J[d+32>>2];J[d+32>>2]=g+1;c=K[c+g|0];J[d+20>>2]=e+1;H[J[d+8>>2]+e|0]=c;if(c)continue;break}if(!J[J[d+28>>2]+44>>2])break z;c=J[d+20>>2];if(c>>>0<=f>>>0)break z;l=a,m=$f(J[a+48>>2],J[d+8>>2]+f|0,c-f|0),J[l+48>>2]=m}J[d+4>>2]=103}if(J[J[d+28>>2]+44>>2]){e=J[d+20>>2];if(M[d+12>>2]>>0){It(a);if(J[d+20>>2])break a;e=0}c=J[a+48>>2];J[d+20>> -2]=e+1;H[J[d+8>>2]+e|0]=c;c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;l=a,m=$f(0,0,0),J[l+48>>2]=m}J[d+4>>2]=113;It(a);if(!J[d+20>>2])break p;break a}if(J[a+4>>2])break l}if(J[d+116>>2])break l;if(!b)return 0;if(J[d+4>>2]==666)break k}c=J[d+132>>2];B:{if(!c){c=G0(d,b);break B}C:switch(J[d+136>>2]-2|0){case 0:D:{E:{while(1){F:{if(J[d+116>>2])break F;SB(d);if(J[d+116>>2])break F;if(b)break E;c=0;break D}J[d+96>>2]=0;c=K[J[d+56>>2]+J[d+108>>2]|0];e=J[d+5792>>2];I[J[d+5796>>2]+(e<< -1)>>1]=0;J[d+5792>>2]=e+1;H[e+J[d+5784>>2]|0]=c;c=(c<<2)+d|0;I[c+148>>1]=L[c+148>>1]+1;J[d+116>>2]=J[d+116>>2]-1;f=J[d+108>>2]+1|0;J[d+108>>2]=f;if(J[d+5792>>2]!=(J[d+5788>>2]-1|0))continue;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;yk(d,e,f-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Hh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;G:{if(!f)break G;tc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>> -2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break G;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])continue;break}c=0;break D}J[d+5812>>2]=0;if((b|0)==4){c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;yk(d,e,J[d+108>>2]-c|0,1);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Hh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;H:{if(!f)break H;tc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break H; -J[e+16>>2]=J[e+8>>2]}c=J[J[d>>2]+16>>2]?3:2;break D}I:{if(!J[d+5792>>2])break I;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;yk(d,e,J[d+108>>2]-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Hh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;J:{if(!f)break J;tc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break J;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])break I;c=0;break D}c= -1}break B;case 1:K:{L:{while(1){M:{N:{O:{f=J[d+116>>2];P:{if(f>>>0>=259){J[d+96>>2]=0;j=J[d+108>>2];break P}SB(d);f=J[d+116>>2];c=0;if(!(f>>>0>=259|b))break K;if(!f)break L;J[d+96>>2]=0;j=J[d+108>>2];if(f>>>0<3)break O}if(!j)break O;h=J[d+56>>2]+j|0;g=K[h-1|0];if((g|0)!=K[h|0]|(g|0)!=K[h+1|0]|(g|0)!=K[h+2|0])break O;k=h+258|0;i=2;Q:{R:{S:{T:{U:{V:{W:{while(1){c=h+i|0;if((g|0)!=K[c+1|0])break R;if((g|0)!=K[c+2|0])break S;if((g|0)!=K[c+3|0])break T;if((g|0)!=K[c+4|0])break U;if((g|0)!=K[c+5|0])break V; -if((g|0)!=K[c+6|0])break W;if((g|0)==K[c+7|0]){c=i>>>0>249;i=i+8|0;e=h+i|0;if(c)break Q;if((g|0)==K[e|0])continue;break Q}break}e=c+7|0;break Q}e=c+6|0;break Q}e=c+5|0;break Q}e=c+4|0;break Q}e=c+3|0;break Q}e=c+2|0;break Q}e=c+1|0}c=(e-k|0)+258|0;e=c>>>0>>0?c:f;J[d+96>>2]=e;c=J[d+5792>>2];if(e>>>0<3)break N;I[J[d+5796>>2]+(c<<1)>>1]=1;J[d+5792>>2]=c+1;f=c+J[d+5784>>2]|0;c=e-3|0;H[f|0]=c;c=((K[(c&255)+765728|0]<<2)+d|0)+1176|0;I[c>>1]=L[c>>1]+1;c=((K[765216]<<2)+d|0)+2440|0;I[c>>1]=L[c>>1]+1;c= -J[d+96>>2];J[d+96>>2]=0;J[d+116>>2]=J[d+116>>2]-c;f=c+J[d+108>>2]|0;J[d+108>>2]=f;break M}c=J[d+5792>>2]}e=K[J[d+56>>2]+j|0];I[J[d+5796>>2]+(c<<1)>>1]=0;J[d+5792>>2]=c+1;H[c+J[d+5784>>2]|0]=e;c=(e<<2)+d|0;I[c+148>>1]=L[c+148>>1]+1;J[d+116>>2]=J[d+116>>2]-1;f=J[d+108>>2]+1|0;J[d+108>>2]=f}if(J[d+5792>>2]!=(J[d+5788>>2]-1|0))continue;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;yk(d,e,f-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Hh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;X:{if(!f)break X; -tc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break X;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])continue;break}c=0;break K}J[d+5812>>2]=0;if((b|0)==4){c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;yk(d,e,J[d+108>>2]-c|0,1);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Hh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;Y:{if(!f)break Y;tc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]= -f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break Y;J[e+16>>2]=J[e+8>>2]}c=J[J[d>>2]+16>>2]?3:2;break K}Z:{if(!J[d+5792>>2])break Z;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;yk(d,e,J[d+108>>2]-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Hh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;_:{if(!f)break _;tc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>> -2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break _;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])break Z;c=0;break K}c=1}break B;default:break C}c=gc[J[P(c,12)+762616>>2]](d,b)|0}if((c&-2)==2)J[d+4>>2]=666;if(!(c&-3)){e=0;if(J[a+16>>2])break d;break a}if((c|0)!=1)break k;$:{aa:switch(b-1|0){case 0:c=J[d+5820>>2];e=L[d+5816>>1]|2<>1]=e;ba:{if((c|0)>=14){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=K[d+5817|0];c=J[d+5820>> +4>>2]=113;vu(a);if(J[d+20>>2])break a;c=J[d+4>>2]}switch(c-69|0){case 34:break q;case 22:break r;case 4:break s;case 0:break t;default:break p}}f=J[c+36>>2];g=J[c+28>>2];h=J[c+16>>2];j=J[c+44>>2];c=J[c>>2];i=J[d+20>>2];J[d+20>>2]=i+1;e=2;H[i+J[d+8>>2]|0]=((j|0)!=0)<<1|(c|0)!=0|((h|0)!=0)<<2|((g|0)!=0)<<3|((f|0)!=0)<<4;c=J[J[d+28>>2]+4>>2];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c;c=J[J[d+28>>2]+4>>2];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c>>>8;c=L[J[d+28>>2]+6>>1];f=J[d+20>>2];J[d+20>> +2]=f+1;H[f+J[d+8>>2]|0]=c;c=K[J[d+28>>2]+7|0];f=J[d+20>>2];J[d+20>>2]=f+1;H[f+J[d+8>>2]|0]=c;c=J[d+132>>2];if((c|0)!=9)e=(c|0)<2?4:(J[d+136>>2]>1)<<2;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[J[d+28>>2]+12>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c;c=J[d+28>>2];if(J[c+16>>2]){c=J[c+20>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c;c=J[J[d+28>>2]+20>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;c=J[d+28>>2]}if(J[c+44>>2])l=a,m=ig(J[a+48>>2],J[d+8>>2],J[d+20>>2]),J[l+48>> +2]=m;J[d+4>>2]=69;J[d+32>>2]=0}f=J[d+28>>2];c=J[f+16>>2];if(c){h=J[d+12>>2];e=J[d+20>>2];g=J[d+32>>2];f=L[f+20>>1]-g|0;if(h>>>0>>0){c=c+g|0;g=h-e|0;xc(J[d+8>>2]+e|0,c,g);c=J[d+12>>2];J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|c>>>0<=e>>>0))l=a,m=ig(J[a+48>>2],J[d+8>>2]+e|0,c-e|0),J[l+48>>2]=m;J[d+32>>2]=g+J[d+32>>2];c=J[a+28>>2];Uh(c);e=J[c+20>>2];h=J[a+16>>2];e=e>>>0>>0?e:h;v:{if(!e)break v;xc(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+20>>2];J[a+ +16>>2]=J[a+16>>2]-e;h=J[c+20>>2];J[c+20>>2]=h-e;if((e|0)!=(h|0))break v;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break c;f=f-g|0;g=J[d+12>>2];if(f>>>0>g>>>0)while(1){xc(J[d+8>>2],J[J[d+28>>2]+16>>2]+J[d+32>>2]|0,g);c=J[d+12>>2];J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|!c))l=a,m=ig(J[a+48>>2],J[d+8>>2],c),J[l+48>>2]=m;J[d+32>>2]=J[d+32>>2]+g;c=J[a+28>>2];Uh(c);e=J[c+20>>2];h=J[a+16>>2];e=e>>>0>>0?e:h;w:{if(!e)break w;xc(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]= +e+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-e;h=J[c+20>>2];J[c+20>>2]=h-e;if((e|0)!=(h|0))break w;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break c;f=f-g|0;g=J[d+12>>2];if(f>>>0>g>>>0)continue;break}g=J[d+32>>2];e=0;c=J[J[d+28>>2]+16>>2]}xc(J[d+8>>2]+e|0,c+g|0,f);c=J[d+20>>2]+f|0;J[d+20>>2]=c;if(!(!J[J[d+28>>2]+44>>2]|c>>>0<=e>>>0))l=a,m=ig(J[a+48>>2],J[d+8>>2]+e|0,c-e|0),J[l+48>>2]=m;J[d+32>>2]=0}J[d+4>>2]=73}if(J[J[d+28>>2]+28>>2]){f=J[d+20>>2];while(1){c=J[d+28>>2];e=J[d+20>>2];if((e|0)==J[d+12>>2]){if(!(!J[c+ +44>>2]|e>>>0<=f>>>0))l=a,m=ig(J[a+48>>2],J[d+8>>2]+f|0,e-f|0),J[l+48>>2]=m;c=J[a+28>>2];Uh(c);e=J[c+20>>2];f=J[a+16>>2];e=e>>>0>>0?e:f;x:{if(!e)break x;xc(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-e;f=J[c+20>>2];J[c+20>>2]=f-e;if((e|0)!=(f|0))break x;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break a;f=0;e=0;c=J[d+28>>2]}c=J[c+28>>2];g=J[d+32>>2];J[d+32>>2]=g+1;c=K[c+g|0];J[d+20>>2]=e+1;H[J[d+8>>2]+e|0]=c;if(c)continue;break}y:{if(!J[J[d+ +28>>2]+44>>2])break y;c=J[d+20>>2];if(c>>>0<=f>>>0)break y;l=a,m=ig(J[a+48>>2],J[d+8>>2]+f|0,c-f|0),J[l+48>>2]=m}J[d+32>>2]=0}J[d+4>>2]=91}z:{if(!J[J[d+28>>2]+36>>2])break z;f=J[d+20>>2];while(1){c=J[d+28>>2];e=J[d+20>>2];if((e|0)==J[d+12>>2]){if(!(!J[c+44>>2]|e>>>0<=f>>>0))l=a,m=ig(J[a+48>>2],J[d+8>>2]+f|0,e-f|0),J[l+48>>2]=m;c=J[a+28>>2];Uh(c);e=J[c+20>>2];f=J[a+16>>2];e=e>>>0>>0?e:f;A:{if(!e)break A;xc(J[a+12>>2],J[c+16>>2],e);J[a+12>>2]=e+J[a+12>>2];J[c+16>>2]=e+J[c+16>>2];J[a+20>>2]=e+J[a+ +20>>2];J[a+16>>2]=J[a+16>>2]-e;f=J[c+20>>2];J[c+20>>2]=f-e;if((e|0)!=(f|0))break A;J[c+16>>2]=J[c+8>>2]}if(J[d+20>>2])break a;f=0;e=0;c=J[d+28>>2]}c=J[c+36>>2];g=J[d+32>>2];J[d+32>>2]=g+1;c=K[c+g|0];J[d+20>>2]=e+1;H[J[d+8>>2]+e|0]=c;if(c)continue;break}if(!J[J[d+28>>2]+44>>2])break z;c=J[d+20>>2];if(c>>>0<=f>>>0)break z;l=a,m=ig(J[a+48>>2],J[d+8>>2]+f|0,c-f|0),J[l+48>>2]=m}J[d+4>>2]=103}if(J[J[d+28>>2]+44>>2]){e=J[d+20>>2];if(M[d+12>>2]>>0){vu(a);if(J[d+20>>2])break a;e=0}c=J[a+48>>2];J[d+20>> +2]=e+1;H[J[d+8>>2]+e|0]=c;c=J[a+48>>2];e=J[d+20>>2];J[d+20>>2]=e+1;H[e+J[d+8>>2]|0]=c>>>8;l=a,m=ig(0,0,0),J[l+48>>2]=m}J[d+4>>2]=113;vu(a);if(!J[d+20>>2])break p;break a}if(J[a+4>>2])break l}if(J[d+116>>2])break l;if(!b)return 0;if(J[d+4>>2]==666)break k}c=J[d+132>>2];B:{if(!c){c=F2(d,b);break B}C:switch(J[d+136>>2]-2|0){case 0:D:{E:{while(1){F:{if(J[d+116>>2])break F;SC(d);if(J[d+116>>2])break F;if(b)break E;c=0;break D}J[d+96>>2]=0;c=K[J[d+56>>2]+J[d+108>>2]|0];e=J[d+5792>>2];I[J[d+5796>>2]+(e<< +1)>>1]=0;J[d+5792>>2]=e+1;H[e+J[d+5784>>2]|0]=c;c=(c<<2)+d|0;I[c+148>>1]=L[c+148>>1]+1;J[d+116>>2]=J[d+116>>2]-1;f=J[d+108>>2]+1|0;J[d+108>>2]=f;if(J[d+5792>>2]!=(J[d+5788>>2]-1|0))continue;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Uk(d,e,f-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Uh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;G:{if(!f)break G;xc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>> +2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break G;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])continue;break}c=0;break D}J[d+5812>>2]=0;if((b|0)==4){c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Uk(d,e,J[d+108>>2]-c|0,1);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Uh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;H:{if(!f)break H;xc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break H; +J[e+16>>2]=J[e+8>>2]}c=J[J[d>>2]+16>>2]?3:2;break D}I:{if(!J[d+5792>>2])break I;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Uk(d,e,J[d+108>>2]-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Uh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;J:{if(!f)break J;xc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break J;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])break I;c=0;break D}c= +1}break B;case 1:K:{L:{while(1){M:{N:{O:{f=J[d+116>>2];P:{if(f>>>0>=259){J[d+96>>2]=0;j=J[d+108>>2];break P}SC(d);f=J[d+116>>2];c=0;if(!(f>>>0>=259|b))break K;if(!f)break L;J[d+96>>2]=0;j=J[d+108>>2];if(f>>>0<3)break O}if(!j)break O;h=J[d+56>>2]+j|0;g=K[h-1|0];if((g|0)!=K[h|0]|(g|0)!=K[h+1|0]|(g|0)!=K[h+2|0])break O;k=h+258|0;i=2;Q:{R:{S:{T:{U:{V:{W:{while(1){c=h+i|0;if((g|0)!=K[c+1|0])break R;if((g|0)!=K[c+2|0])break S;if((g|0)!=K[c+3|0])break T;if((g|0)!=K[c+4|0])break U;if((g|0)!=K[c+5|0])break V; +if((g|0)!=K[c+6|0])break W;if((g|0)==K[c+7|0]){c=i>>>0>249;i=i+8|0;e=h+i|0;if(c)break Q;if((g|0)==K[e|0])continue;break Q}break}e=c+7|0;break Q}e=c+6|0;break Q}e=c+5|0;break Q}e=c+4|0;break Q}e=c+3|0;break Q}e=c+2|0;break Q}e=c+1|0}c=(e-k|0)+258|0;e=c>>>0>>0?c:f;J[d+96>>2]=e;c=J[d+5792>>2];if(e>>>0<3)break N;I[J[d+5796>>2]+(c<<1)>>1]=1;J[d+5792>>2]=c+1;f=c+J[d+5784>>2]|0;c=e-3|0;H[f|0]=c;c=((K[(c&255)+767472|0]<<2)+d|0)+1176|0;I[c>>1]=L[c>>1]+1;c=((K[766960]<<2)+d|0)+2440|0;I[c>>1]=L[c>>1]+1;c= +J[d+96>>2];J[d+96>>2]=0;J[d+116>>2]=J[d+116>>2]-c;f=c+J[d+108>>2]|0;J[d+108>>2]=f;break M}c=J[d+5792>>2]}e=K[J[d+56>>2]+j|0];I[J[d+5796>>2]+(c<<1)>>1]=0;J[d+5792>>2]=c+1;H[c+J[d+5784>>2]|0]=e;c=(e<<2)+d|0;I[c+148>>1]=L[c+148>>1]+1;J[d+116>>2]=J[d+116>>2]-1;f=J[d+108>>2]+1|0;J[d+108>>2]=f}if(J[d+5792>>2]!=(J[d+5788>>2]-1|0))continue;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Uk(d,e,f-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Uh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;X:{if(!f)break X; +xc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break X;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])continue;break}c=0;break K}J[d+5812>>2]=0;if((b|0)==4){c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Uk(d,e,J[d+108>>2]-c|0,1);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Uh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;Y:{if(!f)break Y;xc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]= +f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>>2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break Y;J[e+16>>2]=J[e+8>>2]}c=J[J[d>>2]+16>>2]?3:2;break K}Z:{if(!J[d+5792>>2])break Z;c=J[d+92>>2];if((c|0)>=0)e=c+J[d+56>>2]|0;else e=0;Uk(d,e,J[d+108>>2]-c|0,0);J[d+92>>2]=J[d+108>>2];c=J[d>>2];e=J[c+28>>2];Uh(e);f=J[e+20>>2];g=J[c+16>>2];f=f>>>0>>0?f:g;_:{if(!f)break _;xc(J[c+12>>2],J[e+16>>2],f);J[c+12>>2]=f+J[c+12>>2];J[e+16>>2]=f+J[e+16>>2];J[c+20>>2]=f+J[c+20>> +2];J[c+16>>2]=J[c+16>>2]-f;c=J[e+20>>2];J[e+20>>2]=c-f;if((c|0)!=(f|0))break _;J[e+16>>2]=J[e+8>>2]}if(J[J[d>>2]+16>>2])break Z;c=0;break K}c=1}break B;default:break C}c=kc[J[P(c,12)+764360>>2]](d,b)|0}if((c&-2)==2)J[d+4>>2]=666;if(!(c&-3)){e=0;if(J[a+16>>2])break d;break a}if((c|0)!=1)break k;$:{aa:switch(b-1|0){case 0:c=J[d+5820>>2];e=L[d+5816>>1]|2<>1]=e;ba:{if((c|0)>=14){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=K[d+5817|0];c=J[d+5820>> 2];e=2>>>16-c|0;I[d+5816>>1]=e;c=c-13|0;break ba}c=c+3|0}J[d+5820>>2]=c;ca:{if((c|0)>=10){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=K[d+5817|0];e=0;I[d+5816>>1]=0;c=J[d+5820>>2]-9|0;break ca}c=c+7|0}J[d+5820>>2]=c;da:{ea:{if((c|0)==16){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=K[d+5817|0];I[d+5816>>1]=0;c=0;break ea}if((c|0)<8)break da;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=e;I[d+5816>>1]=K[d+ -5817|0];c=J[d+5820>>2]-8|0}J[d+5820>>2]=c}break $;case 4:break $;default:break aa}RB(d,0,0,0);if((b|0)!=3)break $;c=(J[d+76>>2]<<1)-2|0;e=J[d+68>>2];I[c+e>>1]=0;wc(e,0,c);if(J[d+116>>2])break $;J[d+5812>>2]=0;J[d+92>>2]=0;J[d+108>>2]=0}It(a);if(J[a+16>>2])break k;break a}e=0;if((b|0)!=4)break d;e=1;c=J[d+24>>2];if((c|0)<=0)break d;b=J[a+48>>2];fa:{if((c|0)==2){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=J[a+48>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>8;b=L[a+50>>1];c=J[d+20>>2];J[d+ +5817|0];c=J[d+5820>>2]-8|0}J[d+5820>>2]=c}break $;case 4:break $;default:break aa}RC(d,0,0,0);if((b|0)!=3)break $;c=(J[d+76>>2]<<1)-2|0;e=J[d+68>>2];I[c+e>>1]=0;Ac(e,0,c);if(J[d+116>>2])break $;J[d+5812>>2]=0;J[d+92>>2]=0;J[d+108>>2]=0}vu(a);if(J[a+16>>2])break k;break a}e=0;if((b|0)!=4)break d;e=1;c=J[d+24>>2];if((c|0)<=0)break d;b=J[a+48>>2];fa:{if((c|0)==2){c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=J[a+48>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>8;b=L[a+50>>1];c=J[d+20>>2];J[d+ 20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=K[a+51|0];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=J[a+8>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=J[a+8>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>8;b=L[a+10>>1];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b;b=K[a+11|0];break fa}c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>24;c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>16;b=J[a+48>>2];c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]|0]=b>>>8}c=J[d+20>>2];J[d+20>>2]=c+1;H[c+J[d+8>>2]| -0]=b;It(a);a=J[d+24>>2];if((a|0)>0)J[d+24>>2]=0-a;e=!J[d+20>>2]}return e}J[d+40>>2]=-1;return 0}J[a+24>>2]=J[191995];return-5}J[d+40>>2]=-1;return 0}function h1(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;d=bc-16|0;bc=d;o=J[a+4>>2];a:{if(J[o+180>>2]>=0){r=bc-48|0;bc=r;J[r+12>>2]=0;n=J[J[o+24>>2]+224>>2];c=J[o+180>>2];f=o+184|0;s=H[o+253|0];l=J[a+8>>2];i=mK(n,c,f,s,l,J[a+12>>2]-l>>1,r+12|0,H[o+35|0], -H[a+2|0]);b:{if((i|0)>=2){i=i-2|0;c:{if((i|0)>=(s|0)){J[a+8>>2]=(i-s<<1)+l;c=0;break c}c=s-i|0;if((c|0)>0)Zc(f,f+(i<<1)|0,c<<1);n=J[J[o+24>>2]+224>>2];c=0-c|0}J[o+180>>2]=-1;H[o+253|0]=c;c=J[r+12>>2];l=c>>>24&31;d:{if(l>>>0<=3){s=r+16|1;n=s;e:switch(l-1|0){case 2:H[r+17|0]=c>>>16;n=r+16|2;case 1:H[n|0]=c>>>8;n=n+1|0;break;case 0:break e;default:break d}H[n|0]=c;break d}s=(J[n+32>>2]+n|0)+(c&16777215)|0}h=a+24|0;k=a+16|0;i=J[a+20>>2];c=J[o+52>>2];f:{if(!c)break f;n=1;g:{if((l|0)==1){f=15;if((c|0)> -1)break g}n=2;if(l>>>0<2)break f;f=14;if((c|0)!=1)break f}J[o+52>>2]=n;H[r+16|0]=f;c=r+16|1;if((c|0)!=(s|0))tc(c,s,l);l=l+1|0;s=r+16|0}hi(o,s,l,k,i,h,-1,b);break b}if((i|0)<0){k=-2-i|0;h:{if((k|0)<=(s|0))break h;f=i+s|0;c=2-f&3;if(c){i=0;while(1){I[((s<<1)+o|0)+184>>1]=L[l>>1];s=s+1|0;l=l+2|0;i=i+1|0;if((c|0)!=(i|0))continue;break}}if(f+5>>>0<3)break h;while(1){c=(s<<1)+o|0;I[c+184>>1]=L[l>>1];I[c+186>>1]=L[l+2>>1];I[c+188>>1]=L[l+4>>1];I[c+190>>1]=L[l+6>>1];l=l+8|0;s=s+4|0;if((k|0)!=(s|0))continue; -break}}J[a+8>>2]=l;H[o+253|0]=k;break b}if((i|0)==1)H[o+67|0]=1;J[o+180>>2]=-1;J[o+56>>2]=c;H[o+253|0]=0-s;J[b>>2]=10}bc=r+48|0;if(H[o+253|0]<0|J[b>>2]>0)break a}l=J[o+24>>2];D=K[l+201|0];i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{x=K[l+200|0];switch(x|0){case 1:break w;case 0:break x;default:break v}}if(D&2)break v;if(!(D&1)){v=J[a+4>>2];g=J[a+8>>2];J[d+12>>2]=g;l=J[a+12>>2];i=J[a+16>>2];J[d+8>>2]=i;c=J[a+20>>2];J[d+4>>2]=J[a+24>>2];f=l-g>>1;c=c-i|0;f=(c|0)>(f|0)?f:c;h=J[v+56>>2];m=h?-1:0;c= +0]=b;vu(a);a=J[d+24>>2];if((a|0)>0)J[d+24>>2]=0-a;e=!J[d+20>>2]}return e}J[d+40>>2]=-1;return 0}J[a+24>>2]=J[192431];return-5}J[d+40>>2]=-1;return 0}function f3(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;d=fc-16|0;fc=d;o=J[a+4>>2];a:{if(J[o+180>>2]>=0){r=fc-48|0;fc=r;J[r+12>>2]=0;n=J[J[o+24>>2]+224>>2];c=J[o+180>>2];f=o+184|0;s=H[o+253|0];l=J[a+8>>2];i=AL(n,c,f,s,l,J[a+12>>2]-l>>1,r+12|0,H[o+35|0], +H[a+2|0]);b:{if((i|0)>=2){i=i-2|0;c:{if((i|0)>=(s|0)){J[a+8>>2]=(i-s<<1)+l;c=0;break c}c=s-i|0;if((c|0)>0)cd(f,f+(i<<1)|0,c<<1);n=J[J[o+24>>2]+224>>2];c=0-c|0}J[o+180>>2]=-1;H[o+253|0]=c;c=J[r+12>>2];l=c>>>24&31;d:{if(l>>>0<=3){s=r+16|1;n=s;e:switch(l-1|0){case 2:H[r+17|0]=c>>>16;n=r+16|2;case 1:H[n|0]=c>>>8;n=n+1|0;break;case 0:break e;default:break d}H[n|0]=c;break d}s=(J[n+32>>2]+n|0)+(c&16777215)|0}h=a+24|0;k=a+16|0;i=J[a+20>>2];c=J[o+52>>2];f:{if(!c)break f;n=1;g:{if((l|0)==1){f=15;if((c|0)> +1)break g}n=2;if(l>>>0<2)break f;f=14;if((c|0)!=1)break f}J[o+52>>2]=n;H[r+16|0]=f;c=r+16|1;if((c|0)!=(s|0))xc(c,s,l);l=l+1|0;s=r+16|0}wi(o,s,l,k,i,h,-1,b);break b}if((i|0)<0){k=-2-i|0;h:{if((k|0)<=(s|0))break h;f=i+s|0;c=2-f&3;if(c){i=0;while(1){I[((s<<1)+o|0)+184>>1]=L[l>>1];s=s+1|0;l=l+2|0;i=i+1|0;if((c|0)!=(i|0))continue;break}}if(f+5>>>0<3)break h;while(1){c=(s<<1)+o|0;I[c+184>>1]=L[l>>1];I[c+186>>1]=L[l+2>>1];I[c+188>>1]=L[l+4>>1];I[c+190>>1]=L[l+6>>1];l=l+8|0;s=s+4|0;if((k|0)!=(s|0))continue; +break}}J[a+8>>2]=l;H[o+253|0]=k;break b}if((i|0)==1)H[o+67|0]=1;J[o+180>>2]=-1;J[o+56>>2]=c;H[o+253|0]=0-s;J[b>>2]=10}fc=r+48|0;if(H[o+253|0]<0|J[b>>2]>0)break a}l=J[o+24>>2];D=K[l+201|0];i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{x=K[l+200|0];switch(x|0){case 1:break w;case 0:break x;default:break v}}if(D&2)break v;if(!(D&1)){v=J[a+4>>2];g=J[a+8>>2];J[d+12>>2]=g;l=J[a+12>>2];i=J[a+16>>2];J[d+8>>2]=i;c=J[a+20>>2];J[d+4>>2]=J[a+24>>2];f=l-g>>1;c=c-i|0;f=(c|0)>(f|0)?f:c;h=J[v+56>>2];m=h?-1:0;c= J[v+24>>2];r=J[c+208>>2];n=J[c+52>>2];k=J[c+(K[v+28|0]&16?192:188)>>2];q=K[v+35|0];if(h){e=g;if((f|0)>0)break u}break n}r=J[a+12>>2];f=J[a+8>>2];n=J[a+4>>2];i=J[a+16>>2];J[d+8>>2]=i;g=J[a+20>>2];J[d+4>>2]=J[a+24>>2];h=J[n+56>>2];c=h?-1:0;k=K[n+35|0]?2048:3072;t=J[n+24>>2];q=H[t+201|0]&1;e=J[t+52>>2];t=J[t+(K[n+28|0]&16?192:188)>>2];j=g-i|0;if((j|0)>0?h:0)break t;g=0;break o}if(!K[l+202|0])break v;l=J[a+4>>2];q=J[l+24>>2];r=K[q+201|0];n=J[a+12>>2];h=J[a+8>>2];i=J[a+16>>2];J[d+8>>2]=i;c=J[a+20>>2]; J[d+4>>2]=J[a+24>>2];f=J[l+56>>2];g=f?-1:0;e=J[q+208>>2];t=J[q+56>>2];k=J[q+52>>2];q=J[q+(K[l+28|0]&16?192:188)>>2];j=c-i|0;if((j|0)>0?f:0)break s;break p}e=J[a+8>>2];J[d+12>>2]=e;A=J[a+12>>2];k=J[a+16>>2];J[d+8>>2]=k;i=J[a+20>>2];p=J[a+24>>2];J[d+4>>2]=p;E=K[l+202|0]?J[l+56>>2]:E;n=J[o+28>>2];f=n&16?192:188;if((x|0)==12){c=J[o+52>>2];q=c>>>0<=1?1:c}c=f+l|0;h=J[o+56>>2];r=-1;y:{if(n&4096){w=10;F=4325376;B=65;y=2;z=10;C=2;break y}if(n&8192){z=40;w=41;y=1;C=1;break y}C=1;f=n&16384;y=f?2:1;z=26;w=f? 26:15;B=n<<17>>31&113;if(f){F=7340032;C=2;break y}z=14}f=i-k|0;G=J[l+52>>2];v=J[l+208>>2];u=J[c>>2];k=h?-1:0;z:{if(!h){i=0;break z}i=0;j=k;t=q;if((f|0)>0)break r}c=0;break q}j=1;break n}g=1;break o}p=1;break p}c=1}while(1){A:{B:{C:{D:{E:{F:{G:{if(!c){if(e>>>0>=A>>>0){c=f;break l}c=f>>31&f;s=15;if((f|0)<=0)break m;n=e+2|0;J[d+12>>2]=n;m=m+1|0;h=L[e>>1];H:{if(h>>>0>127){j=k;break H}if(!(v>>>(h>>>2)&1)){j=k;break H}j=J[d+8>>2];J[d+8>>2]=j+1;H[j|0]=h;h=0;j=J[d+4>>2];I:{if(!j){p=0;j=k;break I}p=j+4|0; @@ -5463,584 +5742,681 @@ z<<24|F|e;c=4;break C}e=L[(((h&63)<<1)+u|0)+(k<<1)>>1];if(e>>>0>=256)break D;g=i J[((h>>>2&252)+G|0)+(L[(h>>10<<1)+G>>1]<<2)>>2];V:{W:{X:{Y:{Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:switch(x-1|0){default:if((x|0)==219)break ba;case 3:case 4:case 5:case 6:case 9:case 10:k=h&15;c=0;break ea;case 0:k=h&15;e=L[((k|c<<4&1048560)<<1)+u>>1];g=e>>>0<256?1:2;break W;case 2:break $;case 1:break aa;case 11:break fa;case 8:break Z;case 7:break _}J[o+52>>2]=t;k=h&15;e=L[((k|c<<4&1048560)<<1)+u>>1];if(e>>>0>255)break ca;if(c>>>(k|16)&1|e)break da}e=0;g=0;break W}if((t|0)<2)break Y;q=1;ga:switch(y-1| 0){case 0:e=w<<8|e;g=2;break V;case 1:break ga;default:break V}e=B<<8|w<<16|e;g=3;break V}q=2;if((t|0)==2){g=2;break V}ha:switch(C-1|0){case 0:e=z<<16|e;g=3;break V;case 1:break ha;default:break V}e=z<<24|F|e;g=4;break V}g=0;k=h&15;e=L[((k|c<<4&1048560)<<1)+u>>1];if(e>>>0<256){c=0;e=0;break W}g=2;break W}k=h&15;g=P(k|c<<4&1048560,3)+u|0;e=K[g+1|0]<<8|K[g|0]<<16|K[g+2|0];if(e>>>0<256)break Y;g=e>>>0<65536?2:3;break W}k=h&15;e=J[((k|c<<4&1048560)<<2)+u>>2];if(e>>>0<256)break Y;g=2;if(e>>>0<65536)break W; g=e>>>0<16777216?3:4;break W}g=1;k=h&15;e=L[((k|c<<4&1048560)<<1)+u>>1];if(e>>>0<256)break W;if(e<<16>>16>=0){e=e|9338880;g=3;break W}g=e&128;e=g?e:e|9371776;g=g?2:3;break W}k=h&15;g=P(k|c<<4&1048560,3)+u|0;q=K[g|0];i=K[g+1|0];e=q<<16|K[g+2|0]|i<<8;if(e>>>0>=256)break X}g=1;break W}g=2;if(e>>>0<65536)break W;if(q<<24>>24>=0){e=e|-1904214016;g=4;break W}g=i<<24>>24>=0;e=g?e|-1895792640:e;g=g?4:3}q=t}if(c>>>(k|16)&1){c=g;break C}if(!(K[o+35|0]|h-57344>>>0<6400)&h-983040>>>0>131071)break F;c=g;if(e)break C}J[a+ -8>>2]=n;h=Mt(o,J[J[o+24>>2]+224>>2],h,d+12|0,A,d+8|0,J[d+8>>2]+f|0,d+4|0,j,H[a+2|0],b);q=J[o+52>>2];if(J[b>>2]>0){c=f;break l}p=J[d+4>>2];r=p?j:r;e=J[d+12>>2];m=(e-J[a+8>>2]>>1)+m|0;k=p?m:j;f=J[a+20>>2]-J[d+8>>2]|0;i=g;break A}e=w<<8|e}c=2}if((c|0)<=(f|0)){ia:{if(!p){p=0;ja:switch(c-1|0){case 3:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>24;case 2:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>16;case 1:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>8;break;case 0:break ja;default:break ia}i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]= +8>>2]=n;h=zu(o,J[J[o+24>>2]+224>>2],h,d+12|0,A,d+8|0,J[d+8>>2]+f|0,d+4|0,j,H[a+2|0],b);q=J[o+52>>2];if(J[b>>2]>0){c=f;break l}p=J[d+4>>2];r=p?j:r;e=J[d+12>>2];m=(e-J[a+8>>2]>>1)+m|0;k=p?m:j;f=J[a+20>>2]-J[d+8>>2]|0;i=g;break A}e=w<<8|e}c=2}if((c|0)<=(f|0)){ia:{if(!p){p=0;ja:switch(c-1|0){case 3:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>24;case 2:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>16;case 1:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>8;break;case 0:break ja;default:break ia}i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]= e;p=J[d+4>>2];break ia}ka:switch(c-1|0){case 3:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>24;i=J[d+4>>2];J[d+4>>2]=i+4;J[i>>2]=j;case 2:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>16;i=J[d+4>>2];J[d+4>>2]=i+4;J[i>>2]=j;case 1:i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e>>>8;i=J[d+4>>2];J[d+4>>2]=i+4;J[i>>2]=j;break;case 0:break ka;default:break ia}i=J[d+8>>2];J[d+8>>2]=i+1;H[i|0]=e;i=J[d+4>>2];p=i+4|0;J[d+4>>2]=p;J[i>>2]=j}k=p?m:j;r=p?j:r;f=f-c|0;h=0;e=J[d+12>>2];i=c;break A}h=o+76|0;la:{ma:{na:{oa:{g=c-f|0;switch(g-1| 0){case 0:break ma;case 1:break na;case 2:break oa;default:break la}}H[o+76|0]=e>>>16;h=o+77|0}H[h|0]=e>>>8;h=h+1|0}H[h|0]=e}H[o+63|0]=g;i=e>>>(g<<3)|0;h=0;s=15;c=0;pa:{qa:{ra:switch(f-1|0){case 0:break pa;case 1:break qa;case 2:break ra;default:break m}g=J[d+8>>2];J[d+8>>2]=g+1;H[g|0]=i>>>16;g=J[d+4>>2];if(!g)break qa;J[d+4>>2]=g+4;J[g>>2]=j}g=J[d+8>>2];J[d+8>>2]=g+1;H[g|0]=i>>>8;g=J[d+4>>2];if(!g)break pa;J[d+4>>2]=g+4;J[g>>2]=j}g=J[d+8>>2];J[d+8>>2]=g+1;H[g|0]=i;g=J[d+4>>2];if(g){J[d+4>>2]=g+4; J[g>>2]=j}break m}s=12;c=f;break m}c=0;continue}}while(1){sa:{ta:{ua:{va:{wa:{xa:{ya:{za:{Aa:{Ba:{Ca:{Da:{Ea:{if(!p){if(h>>>0>=n>>>0)break j;if((j|0)<=0)break k;c=h+2|0;J[d+12>>2]=c;m=m+1|0;f=L[h>>1];if(!(f>>>0>127)){if(!(e>>>(f>>>2)&1)){h=c;break Ca}c=J[d+8>>2];J[d+8>>2]=c+1;H[c|0]=f;c=J[d+4>>2];if(c){J[d+4>>2]=c+4;J[c>>2]=g;g=m}f=0;h=J[d+12>>2];if(n>>>0<=h>>>0)break j;Fa:{while(1){if((j|0)<2){f=0;break k}j=j-1|0;J[d+12>>2]=h+2;m=m+1|0;f=L[h>>1];if(f>>>0>127)break Fa;if(!(e>>>(f>>>2)&1))break Da; c=J[d+8>>2];J[d+8>>2]=c+1;H[c|0]=f;c=J[d+4>>2];if(c){J[d+4>>2]=c+4;J[c>>2]=g;g=m}h=J[d+12>>2];if(n>>>0>h>>>0)continue;break}f=0;break j}c=h+2|0}h=c;if(f>>>0<55296)break Ca;if(r&2|(f&63488)!=55296)break Ea;if(f&1024)break Aa;p=1;continue}if(h>>>0>=n>>>0)break j;c=L[h>>1];if((c&64512)!=56320)break Ba;h=h+2|0;J[d+12>>2]=h;m=m+1|0;f=(c+(f<<10)|0)-56613888|0;if(!(r&1))break xa}c=f&15;i=J[(k+(f>>>2&252)|0)+(L[k+(f>>10<<1)>>1]<<2)>>2];p=L[q+((c|i<<4&1048560)<<1)>>1];if(i>>>(c|16)&1)break ya;if(K[l+35|0]| -f-57344>>>0<6400)break za;if(!(p&65535)|f-983040>>>0>131071)break xa;break ya}h=h+2|0}p=L[(q+((f&63)<<1)|0)+(L[t+(f>>>5&2046)>>1]<<1)>>1];if(p)break ya;break xa}J[b>>2]=12;break j}J[b>>2]=12;break j}if(!(p&65535))break xa}if((p&65535)>>>0>255)break wa;c=J[d+8>>2];J[d+8>>2]=c+1;H[c|0]=p;h=-1;f=J[d+4>>2];if(!f)break ua;p=f+4|0;h=-1;break va}J[a+8>>2]=h;f=Mt(l,J[J[l+24>>2]+224>>2],f,d+12|0,n,d+8|0,J[d+8>>2]+j|0,d+4|0,g,H[a+2|0],b);h=J[d+12>>2];if(J[b>>2]>0)break j;j=J[a+20>>2]-J[d+8>>2]|0;m=(h-J[a+8>> +f-57344>>>0<6400)break za;if(!(p&65535)|f-983040>>>0>131071)break xa;break ya}h=h+2|0}p=L[(q+((f&63)<<1)|0)+(L[t+(f>>>5&2046)>>1]<<1)>>1];if(p)break ya;break xa}J[b>>2]=12;break j}J[b>>2]=12;break j}if(!(p&65535))break xa}if((p&65535)>>>0>255)break wa;c=J[d+8>>2];J[d+8>>2]=c+1;H[c|0]=p;h=-1;f=J[d+4>>2];if(!f)break ua;p=f+4|0;h=-1;break va}J[a+8>>2]=h;f=zu(l,J[J[l+24>>2]+224>>2],f,d+12|0,n,d+8|0,J[d+8>>2]+j|0,d+4|0,g,H[a+2|0],b);h=J[d+12>>2];if(J[b>>2]>0)break j;j=J[a+20>>2]-J[d+8>>2]|0;m=(h-J[a+8>> 2]>>1)+m|0;g=m;break sa}c=J[d+8>>2];J[d+8>>2]=c+1;H[c|0]=p>>>8;if(j>>>0<2)break ta;c=J[d+8>>2];J[d+8>>2]=c+1;H[c|0]=p;h=-2;c=J[d+4>>2];if(!c)break ua;J[c>>2]=g;p=c+8|0;f=c+4|0;h=-2}J[d+4>>2]=p;J[f>>2]=g}j=h+j|0;f=0;h=J[d+12>>2];g=m;break sa}c=J[d+4>>2];if(c){J[d+4>>2]=c+4;J[c>>2]=g}H[l+63|0]=1;H[l+76|0]=p;J[b>>2]=15;f=0;h=J[d+12>>2];break j}p=0;continue}}while(1){Ga:{Ha:{Ia:{Ja:{Ka:{La:{if(!g){if(f>>>0>=r>>>0)break Ha;g=15;if((j|0)<=0)break Ia;g=f+2|0;J[d+12>>2]=g;m=m+1|0;h=L[f>>1];if((h&63488)!= -55296){f=J[d+8>>2];break La}if(h&1024)break Ja;f=g;g=1;continue}if(f>>>0>=r>>>0)break Ha;i=L[f>>1];g=12;if((i&64512)!=56320)break Ia;g=f+2|0;J[d+12>>2]=g;m=m+1|0;h=(i+(h<<10)|0)-56613888|0;f=J[d+8>>2];if(!q)break Ka}i=L[(t+((h&15)<<1)|0)+(L[(e+(h>>>3&126)|0)+(L[e+(h>>10<<1)>>1]<<1)>>1]<<1)>>1];if(i>>>0>>0)break Ka;J[d+8>>2]=f+1;H[f|0]=i;g=J[d+4>>2];if(g){J[d+4>>2]=g+4;J[g>>2]=c}j=j-1|0;h=0;f=J[d+12>>2];c=m;break Ga}J[a+8>>2]=g;h=Mt(n,J[J[n+24>>2]+224>>2],h,d+12|0,r,d+8|0,f+j|0,d+4|0,c,H[a+2|0], +55296){f=J[d+8>>2];break La}if(h&1024)break Ja;f=g;g=1;continue}if(f>>>0>=r>>>0)break Ha;i=L[f>>1];g=12;if((i&64512)!=56320)break Ia;g=f+2|0;J[d+12>>2]=g;m=m+1|0;h=(i+(h<<10)|0)-56613888|0;f=J[d+8>>2];if(!q)break Ka}i=L[(t+((h&15)<<1)|0)+(L[(e+(h>>>3&126)|0)+(L[e+(h>>10<<1)>>1]<<1)>>1]<<1)>>1];if(i>>>0>>0)break Ka;J[d+8>>2]=f+1;H[f|0]=i;g=J[d+4>>2];if(g){J[d+4>>2]=g+4;J[g>>2]=c}j=j-1|0;h=0;f=J[d+12>>2];c=m;break Ga}J[a+8>>2]=g;h=zu(n,J[J[n+24>>2]+224>>2],h,d+12|0,r,d+8|0,f+j|0,d+4|0,c,H[a+2|0], b);f=J[d+12>>2];if(J[b>>2]>0)break Ha;j=J[a+20>>2]-J[d+8>>2]|0;c=(f-J[a+8>>2]>>1)+m|0;m=c;break Ga}f=g;g=12}J[b>>2]=g}J[n+56>>2]=h;J[a+8>>2]=f;J[a+16>>2]=J[d+8>>2];J[a+24>>2]=J[d+4>>2];break a}g=0;continue}}Ma:while(1){Na:{if(!j){if((f|0)<=0){e=g;break i}t=q?2048:3072;while(1){c=J[d+12>>2];J[d+12>>2]=c+2;Oa:{h=L[c>>1];if(!(h>>>0>127|!(r>>>(h>>>2)&1))){c=J[d+8>>2];J[d+8>>2]=c+1;H[c|0]=h;break Oa}i=L[(k+((h&15)<<1)|0)+(L[(n+(h>>>3&126)|0)+(L[n+(h>>>9&126)>>1]<<1)>>1]<<1)>>1];if(i>>>0>=t>>>0){c=J[d+ 8>>2];J[d+8>>2]=c+1;H[c|0]=i;break Oa}e=c+2|0;if((h&63488)!=55296)break Na;if(!(h&1024)){j=1;continue Ma}J[b>>2]=12;break i}c=(f|0)>1;f=f-1|0;if(c)continue;break}h=0;e=J[d+12>>2];break i}Pa:{if(e>>>0>>0){c=L[e>>1];if((c&64512)==56320)break Pa;J[b>>2]=12;break i}if(!K[a+2|0])break i;J[b>>2]=11;break i}e=e+2|0;J[d+12>>2]=e;h=(c+(h<<10)|0)-56613888|0}c=h>>>0<65536?1:2;f=J[d+4>>2];if(f){p=(e-g>>1)-c|0;if((p|0)>0)while(1){J[f>>2]=m;f=f+4|0;m=m+1|0;g=p>>>0>1;p=p-1|0;if(g)continue;break}J[d+4>>2]=f}h= -Mt(v,J[J[v+24>>2]+224>>2],h,d+12|0,l,d+8|0,J[a+20>>2],d+4|0,m,H[a+2|0],b);g=J[d+12>>2];m=(c+m|0)+(g-e>>1)|0;if(J[b>>2]>0){e=g;break i}else{f=l-g>>1;c=J[a+20>>2]-J[d+8>>2]|0;f=(c|0)>(f|0)?f:c;j=0;continue}}}J[b>>2]=s}Qa:{if((x|0)!=12|J[b>>2]>0|(q|0)!=2)break Qa;if(!K[a+2|0]){q=2;break Qa}if(M[d+12>>2]>>0){q=2;break Qa}q=2;if(h)break Qa;if((c|0)>0){g=J[d+8>>2];J[d+8>>2]=g+1;H[g|0]=w;Ra:{if((y|0)!=2)break Ra;if(c>>>0<=1){H[o+63|0]=1;H[o+76|0]=B;J[b>>2]=15;break Ra}b=J[d+8>>2];J[d+8>>2]=b+1;H[b|0]= +zu(v,J[J[v+24>>2]+224>>2],h,d+12|0,l,d+8|0,J[a+20>>2],d+4|0,m,H[a+2|0],b);g=J[d+12>>2];m=(c+m|0)+(g-e>>1)|0;if(J[b>>2]>0){e=g;break i}else{f=l-g>>1;c=J[a+20>>2]-J[d+8>>2]|0;f=(c|0)>(f|0)?f:c;j=0;continue}}}J[b>>2]=s}Qa:{if((x|0)!=12|J[b>>2]>0|(q|0)!=2)break Qa;if(!K[a+2|0]){q=2;break Qa}if(M[d+12>>2]>>0){q=2;break Qa}q=2;if(h)break Qa;if((c|0)>0){g=J[d+8>>2];J[d+8>>2]=g+1;H[g|0]=w;Ra:{if((y|0)!=2)break Ra;if(c>>>0<=1){H[o+63|0]=1;H[o+76|0]=B;J[b>>2]=15;break Ra}b=J[d+8>>2];J[d+8>>2]=b+1;H[b|0]= B}q=1;b=J[d+4>>2];if(!b)break Qa;J[d+4>>2]=b+4;J[b>>2]=r;break Qa}H[o+76|0]=w;if((y|0)==2)H[o+77|0]=B;H[o+63|0]=y;J[b>>2]=15;q=1}J[o+52>>2]=q;J[o+56>>2]=h;J[a+8>>2]=J[d+12>>2];J[a+16>>2]=J[d+8>>2];J[a+24>>2]=J[d+4>>2];break a}J[b>>2]=15}J[l+56>>2]=f;J[a+8>>2]=h;J[a+16>>2]=J[d+8>>2];J[a+24>>2]=J[d+4>>2];break a}f=0;j=J[b>>2];if(!((j|0)>0|e>>>0>=l>>>0|M[d+8>>2]>2])){j=15;J[b>>2]=15}b=J[d+4>>2];Sa:{if(!b)break Sa;if((e|0)==(g|0)){f=b;break Sa}f=e-g>>1;c=(j|0)==11;j=f-c|0;if(!j){f=b;break Sa}g= -0;i=(f+(c?-1:0)|0)-1|0;c=j&7;Ta:{if(!c){f=b;break Ta}f=b;while(1){J[f>>2]=m;j=j-1|0;f=f+4|0;m=m+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}if(i>>>0<7)break Sa;while(1){J[f>>2]=m;J[f+28>>2]=m+7;J[f+24>>2]=m+6;J[f+20>>2]=m+5;J[f+16>>2]=m+4;J[f+12>>2]=m+3;J[f+8>>2]=m+2;J[f+4>>2]=m+1;f=f+32|0;m=m+8|0;j=j-8|0;if(j)continue;break}}J[v+56>>2]=h;J[a+8>>2]=e;b=J[d+8>>2];J[a+24>>2]=f;J[a+16>>2]=b}bc=d+16|0}function kab(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,y=0,z=0,A=0,C=0;l=bc-80|0;bc=l;a:{b:{c:{d:{if(!J[a+16>>2]){b=1;break d}m=J[b>>2];c=m&65280;b=(c|0)!=256;e:{if(b&(c|0)!=512)break e;H[J[J[a+20>>2]+4>>2]+24|0]=b;f:{g:{if(J[a+96>>2]==3008){d=(J[a+140>>2]-1>>>0>1)<<2;h:{b=J[a+668>>2];i:{if(b){f=gc[J[J[b>>2]+20>>2]](b,a+124|0)|0;b=rc(80);c=J[J[f>>2]+16>>2];J[695492]=0;c=$(c|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[695492]=0;c=ga(2223,b|0,c|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break i}break a}c=J[a+116>>2];if(c){b= -rc(80);J[695492]=0;c=ga(2223,b|0,c|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break i;break a}b=0;e=K[a+135|0];c=e<<24>>24<0;f=c?J[a+128>>2]:e;if((f|0)<5){f=0;break f}i=a+124|0;e=c?J[i>>2]:i;g=e+(f<<2)|0;c=e;j:{while(1){c=og(c,100,f-4|0);if(!c){f=0;break f}if(!gd(c,340180,5))break j;c=c+4|0;f=g-c>>2;if((f|0)>=5)continue;break}f=0;break f}if((c|0)==(g|0)){f=0;break f}f=0;if((c|0)!=(e|0))break f;g=bx(i,340204,0);b=l+68|0;k:{c=K[a+135|0];f=c<<24>>24<0;e=f?J[a+124>>2]:i;i=e+((f?J[a+128>>2]:c)<<2)|0; -f=i-e>>2;if(f>>>0<2147483632){l:{if(f>>>0<=10){H[b+11|0]=f;c=b;break l}k=(f|15)+1|0;c=rc(k);J[b+8>>2]=k|-2147483648;J[b>>2]=c;J[b+4>>2]=f}if((e|0)!=(i|0))while(1){H[c|0]=J[e>>2];c=c+1|0;e=e+4|0;if((i|0)!=(e|0))continue;break}H[c|0]=0;break k}Id(b);B()}c=jy(b,44,0);J[695492]=0;ga(2229,b|0,0,c+1|0)|0;c=J[695492];J[695492]=0;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{if((c|0)!=1){e=J[b+4>>2];c=K[b+11|0];J[695492]=0;f=J[695492];J[695492]=0;if((f|0)==1)break h;J[695492]=0;c=c<<24>>24<0?e:c;J[l+64>>2]=c;f=$(27,c- --64|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break w;e=J[b>>2];i=J[b+4>>2];c=K[b+11|0];J[695492]=0;k=e;e=c<<24>>24<0;c=GK(e?k:b,e?i:c,f,l- -64|0);e=J[695492];J[695492]=0;if((e|0)==1)break w;if((c|0)!=1)break n;J[695492]=0;e=l+16|0;c=e;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break v;if((g| -0)==-1)break s;h=Y(+(J[l+64>>2]>>2));x:{if(R(h)<2147483648){c=~~h;break x}c=-2147483648}J[l+12>>2]=c;J[695492]=0;H[l+8|0]=1;H[e+40|0]=K[l+8|0];c=J[695492];J[695492]=0;if((c|0)==1)break u;J[695492]=0;J[e+16>>2]=f;c=J[695492];J[695492]=0;if((c|0)==1)break t;J[695492]=0;J[e+4>>2]=J[l+12>>2];c=J[695492];J[695492]=0;if((c|0)==1)break t;J[695492]=0;J[e+8>>2]=J[l+12>>2];c=J[695492];J[695492]=0;if((c|0)==1)break t;J[695492]=0;J[l+8>>2]=J[l+12>>2]<<2;J[e+12>>2]=J[l+8>>2];c=J[695492];J[695492]=0;if((c|0)!= -1)break r;a=Z()|0;Ng(e);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;Ng(e);break b}a=Z()|0;Ng(e);break b}J[695492]=0;H[l+12|0]=0;H[e+40|0]=K[l+12|0];c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ha(2238,e|0,f|0,J[l+64>>2],0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break p;qc(f)}J[695492]=0;c=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break o;break c}a=Z()|0;Ng(e);break b}a=Z()|0;Ng(e);break b}J[695492]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+4>>2]=1;J[c+8>>2]=8;J[c>>2]=349684; -J[c+20>>2]=0;J[c+24>>2]=0;H[c+28|0]=0;f=J[695492];J[695492]=0;y:{z:{A:{B:{if((f|0)!=1){J[695492]=0;f=J[e+16>>2];i=J[695492];J[695492]=0;if((i|0)==1)break c;J[695492]=0;i=J[e+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break B;J[l+12>>2]=i;J[695492]=0;i=J[e+8>>2];g=J[695492];J[695492]=0;if((g|0)==1)break A;J[l+8>>2]=i;J[695492]=0;i=J[e+12>>2];g=J[695492];J[695492]=0;if((g|0)==1)break z;J[695492]=0;J[l+4>>2]=i;nm(c,f,l+12|0,l+8|0,l+4|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break z;J[695492]=0;J[e>>2]= -0;J[e+4>>2]=0;H[e+40|0]=0;J[e+32>>2]=0;J[e+36>>2]=-1074790400;H[e+21|0]=0;H[e+22|0]=0;H[e+23|0]=0;H[e+24|0]=0;H[e+25|0]=0;H[e+26|0]=0;H[e+27|0]=0;H[e+28|0]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[695492]=0;f=$(4,80)|0;i=J[695492];J[695492]=0;if((i|0)==1)break c;J[695492]=0;c=ga(2223,f|0,c|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break y;J[c+12>>2]=1;Ng(e);break m}a=Z()|0;qc(c);Ng(e);break b}a=Z()|0;Ng(e);break b}a=Z()|0;Ng(e);break b}a= -Z()|0;Ng(e);break b}a=Z()|0;qc(f);Ng(e);break b}qc(f);c=0}if(H[b+11|0]<0)qc(J[b>>2]);f=0;b=0;if(!c)break f}sC(c,a+120|0);H[c+72|0]=J[a+136>>2];if(J[a+144>>2]==1)break g;b=c;break f}a=Z()|0;break b}b=DC(a,a+88|0);break f}H[c+32|0]=1;h=+N[a+148>>2];O[c+40>>3]=h;j=+N[a+152>>2];O[c+48>>3]=j;O[c+56>>3]=h+ +N[a+156>>2];O[c- -64>>3]=j+ +N[a+160>>2];b=c}I3(J[a+16>>2],b,J[a+20>>2]);if(b)gc[J[J[b>>2]+4>>2]](b);if(!f)break e;gc[J[J[f>>2]+12>>2]](f)|0}b=0;if(!(m&1))break d;m=J[a+16>>2];c=bc-1040|0;bc=c;C:{D:{E:{F:{G:{f= -J[a+20>>2];if(!(!f|(a|0)==-24)){e=a;H[m+1796|0]=0;d=m+1772|0;J[d>>2]=0;J[d+4>>2]=0;d=m+1764|0;J[d>>2]=2147483647;J[d+4>>2]=2147483647;d=m+1756|0;J[d>>2]=0;J[d+4>>2]=0;d=m+1748|0;J[d>>2]=2147483647;J[d+4>>2]=2147483647;d=m+1708|0;J[d>>2]=0;J[d+4>>2]=0;J[m+2872>>2]=0;d=m+1788|0;J[d>>2]=-2147483647;J[d+4>>2]=-2147483647;d=m+1780|0;J[d>>2]=2147483647;J[d+4>>2]=2147483647;v=2;a=H[a+51|0];if(a>>>0<=3)v=J[(a<<2)+349192>>2];s=K[e+49|0];h=O[e+40>>3];H:{if(K[m+2892|0]|!K[m+2940|0])break H;a=J[m+56>>2];if(h== -0){d=J[a+44>>2];J[c+624>>2]=J[a+40>>2];J[c+628>>2]=d;d=J[a+36>>2];J[c+616>>2]=J[a+32>>2];J[c+620>>2]=d;d=J[a+28>>2];J[c+608>>2]=J[a+24>>2];J[c+612>>2]=d;d=J[a+20>>2];J[c+600>>2]=J[a+16>>2];J[c+604>>2]=d;d=J[a+12>>2];J[c+592>>2]=J[a+8>>2];J[c+596>>2]=d;d=J[a+4>>2];J[c+584>>2]=J[a>>2];J[c+588>>2]=d;a=Fp(c+584|0);h=R(O[a+8>>3]*.72+O[a+24>>3]*.72);j=R(O[a>>3]*.72+O[a+16>>3]*.72);h=h>3]*O[a+24>>3]-O[a+16>>3]*O[a+8>>3]));if(j==0)break H;j=1/j;if(!(j>h))break H;h=j}t=O[e+80>>3]; -d=J[f+4>>2];a=0;J[c+1032>>2]=0;f=c+1024|0;J[f>>2]=0;J[f+4>>2]=0;J[c+1016>>2]=0;J[c+1020>>2]=0;if(J[d>>2]){g=0;while(1){i=g&255;f=g>>>6&67108860;z=K[i+J[f+J[d+16>>2]>>2]|0];f=J[f+J[d+12>>2]>>2]+(i<<4)|0;j=O[f+8>>3];o=O[f>>3];f=J[c+1020>>2];n=a>>>8|0;if(f>>>0<=n>>>0){i=J[c+1024>>2];I:{if(n>>>0>>0){k=J[c+1028>>2];break I}k=(i<<1)+512|0;k=rc(k>>>0>1073741823?-1:k<<2);q=i<<2;u=(k+q|0)+1024|0;p=J[c+1028>>2];if(p){tc(k,p,q);tc(u,J[c+1032>>2],q);qc(p);f=J[c+1020>>2];i=J[c+1024>>2];a=J[c+1016>>2]}J[c+1032>> -2]=u;J[c+1028>>2]=k;J[c+1024>>2]=i+256}i=n<<2;A=i+k|0,C=rc(4352),J[A>>2]=C;J[i+J[c+1032>>2]>>2]=J[i+J[c+1028>>2]>>2]+4096;J[c+1020>>2]=f+1}f=n<<2;i=J[f+J[c+1028>>2]>>2];H[J[f+J[c+1032>>2]>>2]+(a&255)|0]=z;a=(a<<4&4080)+i|0;O[a+8>>3]=j;O[a>>3]=o;a=J[c+1016>>2]+1|0;J[c+1016>>2]=a;g=g+1|0;if(g>>>0>2])continue;break}}J[c+1036>>2]=J[d+20>>2];J:{if(!K[m+2892|0]){d=J[m+56>>2];j=O[d>>3]*O[d+24>>3]-O[d+16>>3]*O[d+8>>3];f=0;if(!(R(j)<1E-4))break J;if(a){g=0;f=J[c+1028>>2];i=J[c+1032>>2];while(1){n=g&255; -k=g>>>8<<2;if(K[n+J[k+i>>2]|0]-1>>>0<=13){o=O[d+32>>3];r=O[d>>3];w=O[d+16>>3];k=J[f+k>>2];q=k+(g<<4&4080)|0;k=k+(n<<4)|0;x=O[k>>3];y=O[k+8>>3];O[q+8>>3]=O[d+40>>3]+(x*O[d+8>>3]+y*O[d+24>>3]);O[q>>3]=o+(x*r+y*w)}g=g+1|0;if((g|0)!=(a|0))continue;break}}h=h*Y(j)}f=1}J[c+600>>2]=0;J[c+604>>2]=0;J[c+608>>2]=0;J[c+612>>2]=0;J[c+752>>2]=0;J[c+756>>2]=0;J[c+736>>2]=0;J[c+740>>2]=1072693248;J[c+616>>2]=0;J[c+620>>2]=1072693248;J[c+760>>2]=0;J[c+764>>2]=0;J[c+768>>2]=0;J[c+772>>2]=0;J[c+776>>2]=0;J[c+968>> -2]=0;J[c+972>>2]=0;J[c+952>>2]=0;J[c+956>>2]=1072693248;J[c+800>>2]=0;J[c+804>>2]=1072693248;J[c+780>>2]=64;J[c+784>>2]=1;J[c+976>>2]=0;J[c+980>>2]=0;J[c+984>>2]=0;J[c+988>>2]=0;J[c+992>>2]=0;J[c+996>>2]=0;J[c+1E3>>2]=0;J[c+592>>2]=0;J[c+596>>2]=0;J[c+792>>2]=0;J[c+796>>2]=0;J[c+584>>2]=c+1016;J[c+1004>>2]=64;J[c+1008>>2]=1;J[695492]=0;O[c+616>>3]=25;a=J[695492];J[695492]=0;if((a|0)==1)break E;J[695492]=0;J[c+736>>2]=0;J[c+740>>2]=1077477376;O[c+800>>3]=25;a=J[695492];J[695492]=0;if((a|0)==1)break E; -i=f;J[c+1008>>2]=0;J[c+784>>2]=0;J[c+952>>2]=0;J[c+956>>2]=1077477376;a=K[e+48|0];K:{if((a|0)!=5)break K;a=0;f=J[e+56>>2];if(!f)break K;d=J[e+52>>2];if(!d|(f|0)<=0)break K;while(1){if(R(O[d+(a<<3)>>3])>1E-4){a=5;break K}a=a+1|0;if((f|0)!=(a|0))continue;break}a=0}L:{M:{N:{O:{P:{if(!i){f=J[m+56>>2];break P}J[695492]=0;f=$(4,48)|0;d=J[695492];J[695492]=0;if((d|0)==1)break O;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=1072693248;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=1072693248;J[f+16>>2]= -0;J[f+20>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0}n=m+1700|0;s=s?(s|0)==1?1:2:0;if(!a){J[695492]=0;J[c+192>>2]=c+584;a=KK(c+200|0);d=J[695492];J[695492]=0;Q:{if((d|0)!=1){J[c+264>>2]=3;J[c+260>>2]=v;J[c+256>>2]=s;O[c+232>>3]=t;J[c+348>>2]=0;h=h*.5;O[a>>3]=h;a=h<0;J[c+224>>2]=a?-1:1;O[c+208>>3]=a?-h:h;J[c+248>>2]=0;J[c+252>>2]=1077477376;O[c+216>>3]=h*9.765625E-4;J[695492]=0;J[c+12>>2]=f;J[c+8>>2]=c+192;ca(2294,n|0,c+8|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break Q;d=J[c+296>>2];if(d){a=d-1|0;J[c+296>>2]= -a;g=J[c+304>>2]+(d<<2)|0;while(1){g=g-4|0;d=J[g>>2];if(d){qc(d);a=J[c+296>>2]}d=a;a=d-1|0;J[c+296>>2]=a;if(d)continue;break}}a=J[c+304>>2];if(a)qc(a);d=J[c+276>>2];if(d){a=d-1|0;J[c+276>>2]=a;g=J[c+284>>2]+(d<<2)|0;while(1){g=g-4|0;d=J[g>>2];if(d){qc(d);a=J[c+276>>2]}d=a;a=d-1|0;J[c+276>>2]=a;if(d)continue;break}}a=J[c+284>>2];if(!a)break L;qc(a);break L}a=Z()|0;break D}a=Z()|0;H3(c+192|0);break D}J[695492]=0;J[c+192>>2]=c+584;d=P1(c+200|0);g=J[695492];J[695492]=0;R:{S:{T:{U:{V:{W:{X:{Y:{if((g|0)!= -1){J[c+556>>2]=0;J[695492]=0;J[c+8>>2]=c+192;q=KK(c+16|0);g=J[695492];J[695492]=0;if((g|0)==1)break Y;J[c+164>>2]=0;j=h;switch(a-1|0){case 1:break T;case 3:break V;case 2:break W;case 0:break X;default:break S}}a=Z()|0;break D}a=Z()|0;break M}j=h*3;break T}j=h*3;break U}J[695492]=0;lr(d,h*3,h);a=J[695492];J[695492]=0;if((a|0)==1)break N}J[695492]=0;lr(d,j,h);a=J[695492];J[695492]=0;j=h;if((a|0)==1)break N}J[695492]=0;lr(d,j,h);a=J[695492];J[695492]=0;if((a|0)!=1)break R;break N}g=J[e+56>>2];u=(g| -0)/2|0;k=J[e+52>>2];j=O[e+64>>3];Z:{if((g|0)<2)break Z;o=O[k+8>>3];r=O[k>>3];J[695492]=0;lr(d,r,o);p=J[695492];J[695492]=0;a=1;if((p|0)==1)break N;if((g&-2)==2)break Z;while(1){p=k+(a<<4)|0;o=O[p>>3];r=O[p+8>>3];J[695492]=0;lr(d,o,r);p=J[695492];J[695492]=0;if((p|0)==1)break N;a=a+1|0;if((u|0)!=(a|0))continue;break}}if((g&-2147483647)==1){o=O[(k+(g<<3)|0)-8>>3];J[695492]=0;lr(d,o,0);a=J[695492];J[695492]=0;if((a|0)==1)break N}J[695492]=0;O1(d,j);a=J[695492];J[695492]=0;if((a|0)==1)break N}d=K[m+2892| -0];a=J[m+44>>2];j=O[a+24>>3];o=O[a>>3];r=O[a+16>>3];w=O[a+8>>3];J[c+76>>2]=v;J[c+72>>2]=s;O[c+48>>3]=t;j=1/Y(R(o*j-r*w));t=h>3]=h;O[c+32>>3]=h*9.765625E-4;a=h<0;J[c+40>>2]=a?-1:1;O[c+24>>3]=a?-h:h;J[695492]=0;J[c+4>>2]=f;J[c>>2]=c+8;ca(2298,n|0,c|0,0);a=J[695492];J[695492]=0;if((a|0)!=1){d=J[c+112>>2];if(d){a=d-1|0;J[c+112>>2]=a;g=J[c+120>>2]+(d<<2)|0;while(1){g=g-4|0;d=J[g>>2];if(d){qc(d);a=J[c+112>>2]}d=a;a=d-1|0;J[c+112>>2]=a;if(d)continue;break}}a=J[c+120>>2];if(a)qc(a); -d=J[c+92>>2];if(d){a=d-1|0;J[c+92>>2]=a;g=J[c+100>>2]+(d<<2)|0;while(1){g=g-4|0;d=J[g>>2];if(d){qc(d);a=J[c+92>>2]}d=a;a=d-1|0;J[c+92>>2]=a;if(d)continue;break}}a=J[c+100>>2];if(a)qc(a);d=J[c+524>>2];if(d){a=d-1|0;J[c+524>>2]=a;g=J[c+532>>2]+(d<<2)|0;while(1){g=g-4|0;d=J[g>>2];if(d){qc(d);a=J[c+524>>2]}d=a;a=d-1|0;J[c+524>>2]=a;if(d)continue;break}}a=J[c+532>>2];if(!a)break L;qc(a);break L}break N}a=Z()|0;break D}a=Z()|0;H3(c+8|0)}l=J[c+524>>2];if(l){b=l-1|0;J[c+524>>2]=b;e=J[c+532>>2]+(l<<2)|0;while(1){e= -e-4|0;l=J[e>>2];if(l){qc(l);b=J[c+524>>2]}l=b;b=l-1|0;J[c+524>>2]=b;if(l)continue;break}}b=J[c+532>>2];if(b)qc(b);break D}h=O[m+2896>>3]*+J[e+32>>2];_:{if(h<4294967296&h>=0){a=~~h>>>0;break _}a=0}d=J[e+28>>2];if(K[m+2904|0])g=d<<16&16711680|(d>>>16&255|(d&65280|a<<24));else g=d|a<<24;a=0;J[695492]=0;d=c+192|0;J[d+8>>2]=g;J[d>>2]=349232;J[d+4>>2]=0;g=J[695492];J[695492]=0;if((g|0)==1)break G;J[m+2856>>2]=0;h=O[e+688>>3];if(h>=0){g=m+1832|0;while(1){n=g+(a<<2)|0;j=h>+(a|0)/255?.5:255.5;$:{if(j<4294967296& -j>=0){k=~~j>>>0;break $}k=0}J[n>>2]=k;k=a|1;n=g+(k<<2)|0;j=h>+(k|0)/255?.5:255.5;aa:{if(j<4294967296&j>=0){k=~~j>>>0;break aa}k=0}J[n>>2]=k;a=a+2|0;if((a|0)!=256)continue;break}}a=0;J[695492]=0;da(2290,m|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break F;if(O[e+688>>3]>=0){e=m+1832|0;while(1){g=e+(a<<2)|0;h=+(a|0)/255*255+.5;ba:{if(h<4294967296&h>=0){d=~~h>>>0;break ba}d=0}J[g>>2]=d;d=a|1;g=e+(d<<2)|0;h=+(d|0)/255*255+.5;ca:{if(h<4294967296&h>=0){d=~~h>>>0;break ca}d=0}J[g>>2]=d;a=a+2|0;if((a|0)!= -256)continue;break}}if(i&(f|0)!=0)qc(f);e=J[c+992>>2];if(e){a=e-1|0;J[c+992>>2]=a;g=J[c+1E3>>2]+(e<<2)|0;while(1){g=g-4|0;e=J[g>>2];if(e){qc(e);a=J[c+992>>2]}e=a;a=e-1|0;J[c+992>>2]=a;if(e)continue;break}}a=J[c+1E3>>2];if(a)qc(a);e=J[c+768>>2];if(e){a=e-1|0;J[c+768>>2]=a;g=J[c+776>>2]+(e<<2)|0;while(1){g=g-4|0;e=J[g>>2];if(e){qc(e);a=J[c+768>>2]}e=a;a=e-1|0;J[c+768>>2]=a;if(e)continue;break}}a=J[c+776>>2];if(a)qc(a);e=J[c+1020>>2];da:{if(!e)break da;a=e-1|0;J[c+1020>>2]=a;g=J[c+1028>>2]+(e<<2)|0; -while(1){g=g-4|0;e=J[g>>2];if(e){qc(e);a=J[c+1020>>2]}e=a;a=e-1|0;J[c+1020>>2]=a;if(e)continue;break}a=J[c+1028>>2];if(!a)break da;qc(a)}}bc=c+1040|0;break C}a=Z()|0;break D}a=Z()|0;break D}a=Z()|0}yC(c+584|0);G3(c+1016|0);ba(a|0);B()}}bc=l+80|0;return b|0}a=Z()|0;Ng(e)}if(H[b+11|0]<0)qc(J[b>>2]);ba(a|0);B()}a=Z()|0;qc(b);ba(a|0);B()}function teb(a){a=a|0;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;r=bc-256|0;bc=r;b=J[a+436>> -2];while(1){a:{b:{if(b)break b;if(!J[J[a+460>>2]+12>>2]){h=J[a+24>>2];b=J[h+4>>2];if(!b){if(!(gc[J[h+12>>2]](a)|0)){b=0;break a}b=J[h+4>>2]}c=J[h>>2];g=K[c|0];m=b-1|0;if(m)c=c+1|0;else{if(!(gc[J[h+12>>2]](a)|0)){b=0;break a}m=J[h+4>>2];c=J[h>>2]}i=c+1|0;b=K[c|0];if(!((g|0)==255&(b|0)==216)){c=J[a>>2];J[c+24>>2]=g;J[c+20>>2]=55;J[J[a>>2]+28>>2]=b;gc[J[J[a>>2]>>2]](a)}J[a+436>>2]=b;J[h+4>>2]=m-1;J[h>>2]=i;break b}if(!BL(a)){b=0;break a}b=J[a+436>>2]}c:{d:{e:{f:{g:{h:{i:{j:{k:{l:switch(b-1|0){case 215:c= -J[a>>2];J[c+20>>2]=104;gc[J[c+4>>2]](a,1);b=J[a+460>>2];if(J[b+12>>2]){c=J[a>>2];J[c+20>>2]=63;gc[J[c>>2]](a);b=J[a+460>>2]}H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;H[a+239|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+242|0]=0;H[a+243|0]=0;H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+256|0]=1;H[a+257|0]=1;H[a+258|0]=1;H[a+259|0]=1;H[a+260|0]=1;H[a+261|0]=1;H[a+262|0]=1;H[a+263|0]=1;H[a+248|0]=1;H[a+249|0]=1;H[a+250|0]=1;H[a+251|0]=1;H[a+252|0]=1; -H[a+253|0]=1;H[a+254|0]=1;H[a+255|0]=1;H[a+272|0]=5;H[a+273|0]=5;H[a+274|0]=5;H[a+275|0]=5;H[a+276|0]=5;H[a+277|0]=5;H[a+278|0]=5;H[a+279|0]=5;H[a+264|0]=5;H[a+265|0]=5;H[a+266|0]=5;H[a+267|0]=5;H[a+268|0]=5;H[a+269|0]=5;H[a+270|0]=5;H[a+271|0]=5;J[a+304>>2]=0;J[a+40>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;H[a+300|0]=0;J[a+292>>2]=65537;J[a+296>>2]=0;H[a+290|0]=0;I[a+288>>1]=257;J[b+12>>2]=1;break c;case 192:b=0;if(gx(a,0,0,0))break c;break a;case 193:b=0;if(gx(a,0,1,0))break c;break a;case 200:b=0;if(gx(a, -0,0,1))break c;break a;case 201:b=0;if(gx(a,0,1,1))break c;break a;case 194:case 196:case 197:case 198:case 199:case 202:case 204:case 205:case 206:c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=62;gc[J[J[a>>2]>>2]](a);break c;case 217:l=J[a+24>>2];b=J[l+4>>2];d=J[l>>2];if(!J[J[a+460>>2]+16>>2]){c=J[a>>2];J[c+20>>2]=64;gc[J[c>>2]](a)}if(!b){if(!(gc[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}g=K[d|0];e=b-1|0;if(e)c=d+1|0;else{if(!(gc[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}i=K[c|0];e=e-1| -0;if(e)c=c+1|0;else{if(!(gc[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}b=J[a>>2];k=K[c|0];J[b+24>>2]=k;J[b+20>>2]=105;n=1;gc[J[J[a>>2]+4>>2]](a,1);m:{n:{o:{if(((k<<1)+6|0)!=(i|g<<8)|k>>>0>4)break o;if(k){J[a+336>>2]=k;d=c+1|0;b=e-1|0;break n}if(!J[a+224>>2])break o;J[a+336>>2]=k;d=c+1|0;b=e-1|0;break m}b=J[a>>2];J[b+20>>2]=12;gc[J[b>>2]](a);J[a+336>>2]=k;d=c+1|0;b=e-1|0;if(!k)break m}n=0;while(1){if(!b){if(!(gc[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}o=K[d|0];j=b-1|0;if(j)i= -d+1|0;else{if(!(gc[J[l+12>>2]](a)|0)){b=0;break a}j=J[l+4>>2];i=J[l>>2]}b=J[a+216>>2];h=K[i|0];g=J[a+36>>2];p:{if((g|0)>0){c=P(g,88)+b|0;d=0;while(1){if((o|0)==J[b>>2])break p;b=b+88|0;d=d+1|0;if((g|0)!=(d|0))continue;break}b=c}c=J[a>>2];J[c+24>>2]=o;J[c+20>>2]=4;gc[J[J[a>>2]>>2]](a)}J[((n<<2)+a|0)+340>>2]=b;J[b+24>>2]=h&15;J[b+20>>2]=h>>>4;g=J[a>>2];J[g+24>>2]=o;J[g+28>>2]=J[b+20>>2];c=J[b+24>>2];J[g+20>>2]=106;J[g+32>>2]=c;gc[J[g+4>>2]](a,1);d=i+1|0;b=j-1|0;n=n+1|0;if((k|0)!=(n|0))continue;break}n= -0}if(!b){if(!(gc[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}J[a+408>>2]=K[d|0];e=b-1|0;if(e)c=d+1|0;else{if(!(gc[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}J[a+412>>2]=K[c|0];m=e-1|0;if(m)c=c+1|0;else{if(!(gc[J[l+12>>2]](a)|0)){b=0;break a}m=J[l+4>>2];c=J[l>>2]}b=K[c|0];J[a+420>>2]=b&15;J[a+416>>2]=b>>>4;i=J[a>>2];J[i+24>>2]=J[a+408>>2];J[i+28>>2]=J[a+412>>2];J[i+32>>2]=J[a+416>>2];J[i+36>>2]=J[a+420>>2];J[i+20>>2]=107;b=1;gc[J[i+4>>2]](a,1);J[J[a+460>>2]+20>>2]=0;if(!n)J[a+144>> -2]=J[a+144>>2]+1;J[l+4>>2]=m-1;J[l>>2]=c+1;J[a+436>>2]=0;break a;case 216:c=J[a>>2];J[c+20>>2]=87;gc[J[c+4>>2]](a,1);J[a+436>>2]=0;b=2;break a;case 203:j=J[a+24>>2];b=J[j+4>>2];if(!b){if(!(gc[J[j+12>>2]](a)|0)){b=0;break a}b=J[j+4>>2]}i=J[j>>2];c=K[i|0];d=b-1|0;if(d)b=i+1|0;else{if(!(gc[J[j+12>>2]](a)|0)){b=0;break a}d=J[j+4>>2];b=J[j>>2]}e=b+1|0;d=d-1|0;c=K[b|0]|c<<8;b=c-2|0;if(c>>>0>=3)while(1){i=b;if(!d){if(!(gc[J[j+12>>2]](a)|0)){b=0;break a}d=J[j+4>>2];e=J[j>>2]}g=K[e|0];o=d-1|0;if(o)c=e+1|0; -else{if(!(gc[J[j+12>>2]](a)|0)){b=0;break a}o=J[j+4>>2];c=J[j>>2]}h=K[c|0];b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=81;J[J[a>>2]+28>>2]=h;gc[J[J[a>>2]+4>>2]](a,1);q:{r:{s:{if(g>>>0>=32){b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=29;gc[J[J[a>>2]>>2]](a);break s}if(g>>>0<16)break r}H[(a+g|0)+248|0]=h;break q}b=a+g|0;g=h>>>4|0;H[b+248|0]=g;d=b;b=h&15;H[d+232|0]=b;if(b>>>0<=g>>>0)break q;b=J[a>>2];J[b+24>>2]=h;J[b+20>>2]=30;gc[J[J[a>>2]>>2]](a)}e=c+1|0;d=o-1|0;b=i-2|0;if(i>>>0>2)continue;break}if(b){c=J[a>>2];J[c+20>> -2]=12;gc[J[c>>2]](a)}J[j+4>>2]=d;J[j>>2]=e;break c;case 195:f=J[a+24>>2];b=J[f+4>>2];if(!b){if(!(gc[J[f+12>>2]](a)|0))break k;b=J[f+4>>2]}i=J[f>>2];c=K[i|0];b=b-1|0;if(b)i=i+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;b=J[f+4>>2];i=J[f>>2]}d=i+1|0;b=b-1|0;c=K[i|0]|c<<8;n=c-2|0;if(c>>>0>=19)while(1){if(!b){if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f>>2];b=J[f+4>>2]}c=J[a>>2];p=K[d|0];J[c+24>>2]=p;J[c+20>>2]=82;gc[J[J[a>>2]+4>>2]](a,1);e=b-1|0;if(e)c=d+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;e=J[f+4>> -2];c=J[f>>2]}s=K[c|0];d=e-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}t=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}u=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}v=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}w=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}x=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+ -12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}y=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}z=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}A=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}B=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}C=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}l= -K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}m=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}k=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}o=K[c|0];e=d-1|0;if(e)c=c+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break k;e=J[f+4>>2];c=J[f>>2]}j=K[c|0];b=J[a>>2];J[b+24>>2]=s;J[b+20>>2]=88;J[b+52>>2]=z;J[b+48>>2]=y;J[b+44>>2]=x;J[b+40>>2]=w;J[b+36>>2]=v;J[b+32>>2]=u;J[b+28>>2]=t;gc[J[b+ -4>>2]](a,2);b=J[a>>2];J[b+24>>2]=A;J[b+20>>2]=88;J[b+52>>2]=j;J[b+48>>2]=o;J[b+44>>2]=k;J[b+40>>2]=m;J[b+36>>2]=l;J[b+32>>2]=C;J[b+28>>2]=B;gc[J[b+4>>2]](a,2);d=c+1|0;b=e-1|0;q=((((((((((((v+(u+(s+t|0)|0)|0)+w|0)+x|0)+y|0)+z|0)+A|0)+B|0)+C|0)+l|0)+m|0)+k|0)+o|0)+j|0;g=n-17|0;t:{u:{if(!(q>>>0<=256&g>>>0>=q>>>0)){c=J[a>>2];J[c+20>>2]=9;gc[J[c>>2]](a);break u}if(!q)break t}e=0;while(1){if(!b){if(!(gc[J[f+12>>2]](a)|0))break k;d=J[f>>2];b=J[f+4>>2]}H[e+r|0]=K[d|0];d=d+1|0;b=b-1|0;e=e+1|0;if(q>>>0>e>>> -0)continue;break}}i=p-16|0;c=p&16;h=c?((i<<2)+a|0)+196|0:((p<<2)+a|0)+180|0;i=c?i:p;if(i>>>0>=4){c=J[a>>2];J[c+24>>2]=i;J[c+20>>2]=31;gc[J[J[a>>2]>>2]](a)}n=g-q|0;e=J[h>>2];if(!e){e=gc[J[J[a+4>>2]>>2]](a,0,280)|0;J[e+276>>2]=0;J[h>>2]=e}H[e+16|0]=j;H[e+15|0]=o;H[e+14|0]=k;H[e+13|0]=m;H[e+12|0]=l;H[e+11|0]=C;H[e+10|0]=B;H[e+9|0]=A;H[e+8|0]=z;H[e+7|0]=y;H[e+6|0]=x;H[e+5|0]=w;H[e+4|0]=v;H[e+3|0]=u;H[e+2|0]=t;H[e+1|0]=s;H[e|0]=0;tc(J[h>>2]+17|0,r,256);if((n|0)>16)continue;break}if(n){c=J[a>>2];J[c+20>> -2]=12;gc[J[c>>2]](a)}J[f+4>>2]=b;J[f>>2]=d;break c;case 220:break d;case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:break e;case 253:break f;case 0:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:break g;case 219:break h;case 191:break j;case 218:break l;default:break i}k=J[a+24>>2];b=J[k+4>>2];if(!b){if(!(gc[J[k+12>>2]](a)|0)){b=0;break a}b=J[k+4>>2]}i=J[k>>2];c=K[i|0];d=b-1|0; -if(d)b=i+1|0;else{if(!(gc[J[k+12>>2]](a)|0)){b=0;break a}d=J[k+4>>2];b=J[k>>2]}n=b+1|0;m=d-1|0;c=K[b|0]|c<<8;d=c-2|0;if(c>>>0>=3)while(1){if(!m){if(!(gc[J[k+12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}g=K[n|0];c=J[a>>2];J[c+20>>2]=83;b=g&15;J[c+24>>2]=b;J[J[a>>2]+28>>2]=g>>>4;gc[J[J[a>>2]+4>>2]](a,1);if(b>>>0>=4){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=32;gc[J[J[a>>2]>>2]](a)}c=(b<<2)+a|0;b=J[c+164>>2];if(!b){b=gc[J[J[a+4>>2]>>2]](a,0,132)|0;J[b+128>>2]=0;J[c+164>>2]=b}i=d-1|0;v:{w:{x:{h=g>>>0<16; -y:{z:{if(!h){if(d>>>0>128){o=53264;c=64;break y}I[b+120>>1]=1;I[b+122>>1]=1;I[b+124>>1]=1;I[b+126>>1]=1;I[b+112>>1]=1;I[b+114>>1]=1;I[b+116>>1]=1;I[b+118>>1]=1;I[b+104>>1]=1;I[b+106>>1]=1;I[b+108>>1]=1;I[b+110>>1]=1;I[b+96>>1]=1;I[b+98>>1]=1;I[b+100>>1]=1;I[b+102>>1]=1;I[b+88>>1]=1;I[b+90>>1]=1;I[b+92>>1]=1;I[b+94>>1]=1;I[b+80>>1]=1;I[b+82>>1]=1;I[b+84>>1]=1;I[b+86>>1]=1;I[b+72>>1]=1;I[b+74>>1]=1;I[b+76>>1]=1;I[b+78>>1]=1;I[b+64>>1]=1;I[b+66>>1]=1;I[b+68>>1]=1;I[b+70>>1]=1;I[b+56>>1]=1;I[b+58>>1]= -1;I[b+60>>1]=1;I[b+62>>1]=1;I[b+48>>1]=1;I[b+50>>1]=1;I[b+52>>1]=1;I[b+54>>1]=1;I[b+40>>1]=1;I[b+42>>1]=1;I[b+44>>1]=1;I[b+46>>1]=1;I[b+32>>1]=1;I[b+34>>1]=1;I[b+36>>1]=1;I[b+38>>1]=1;I[b+24>>1]=1;I[b+26>>1]=1;I[b+28>>1]=1;I[b+30>>1]=1;I[b+16>>1]=1;I[b+18>>1]=1;I[b+20>>1]=1;I[b+22>>1]=1;I[b+8>>1]=1;I[b+10>>1]=1;I[b+12>>1]=1;I[b+14>>1]=1;I[b>>1]=1;I[b+2>>1]=1;I[b+4>>1]=1;I[b+6>>1]=1;c=i>>>1|0;break z}c=64;o=53264;if(d>>>0>64)break y;I[b+120>>1]=1;I[b+122>>1]=1;I[b+124>>1]=1;I[b+126>>1]=1;I[b+112>> -1]=1;I[b+114>>1]=1;I[b+116>>1]=1;I[b+118>>1]=1;I[b+104>>1]=1;I[b+106>>1]=1;I[b+108>>1]=1;I[b+110>>1]=1;I[b+96>>1]=1;I[b+98>>1]=1;I[b+100>>1]=1;I[b+102>>1]=1;I[b+88>>1]=1;I[b+90>>1]=1;I[b+92>>1]=1;I[b+94>>1]=1;I[b+80>>1]=1;I[b+82>>1]=1;I[b+84>>1]=1;I[b+86>>1]=1;I[b+72>>1]=1;I[b+74>>1]=1;I[b+76>>1]=1;I[b+78>>1]=1;I[b+64>>1]=1;I[b+66>>1]=1;I[b+68>>1]=1;I[b+70>>1]=1;I[b+56>>1]=1;I[b+58>>1]=1;I[b+60>>1]=1;I[b+62>>1]=1;I[b+48>>1]=1;I[b+50>>1]=1;I[b+52>>1]=1;I[b+54>>1]=1;I[b+40>>1]=1;I[b+42>>1]=1;I[b+44>> -1]=1;I[b+46>>1]=1;I[b+32>>1]=1;I[b+34>>1]=1;I[b+36>>1]=1;I[b+38>>1]=1;I[b+24>>1]=1;I[b+26>>1]=1;I[b+28>>1]=1;I[b+30>>1]=1;I[b+16>>1]=1;I[b+18>>1]=1;I[b+20>>1]=1;I[b+22>>1]=1;I[b+8>>1]=1;I[b+10>>1]=1;I[b+12>>1]=1;I[b+14>>1]=1;I[b>>1]=1;I[b+2>>1]=1;I[b+4>>1]=1;I[b+6>>1]=1;c=i}o=54480;A:switch(c-4|0){case 5:o=54368;break y;case 12:o=54240;break y;case 21:o=54064;break y;case 32:o=53856;break y;case 0:break y;case 45:break A;default:break x}o=53584}n=n+1|0;m=m-1|0;break w}n=n+1|0;m=m-1|0;o=53264;if(c)break w; -c=0;break v}d=0;if(g>>>0<=15)while(1){if(!m){if(!(gc[J[k+12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}I[(J[(d<<2)+o>>2]<<1)+b>>1]=K[n|0];n=n+1|0;m=m-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break v}while(1){if(!m){if(!(gc[J[k+12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}g=K[n|0];m=m-1|0;if(m)j=n+1|0;else{if(!(gc[J[k+12>>2]](a)|0)){b=0;break a}m=J[k+4>>2];j=J[k>>2]}I[(J[(d<<2)+o>>2]<<1)+b>>1]=K[j|0]|g<<8;n=j+1|0;m=m-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}o=0;if(J[J[a>>2]+104>>2]>=2)while(1){j= -J[a>>2];g=o<<1;J[j+24>>2]=L[g+b>>1];J[j+28>>2]=L[(g|2)+b>>1];J[j+32>>2]=L[(g|4)+b>>1];J[j+36>>2]=L[(g|6)+b>>1];J[j+40>>2]=L[(g|8)+b>>1];J[j+44>>2]=L[(g|10)+b>>1];J[j+48>>2]=L[(g|12)+b>>1];g=L[(g|14)+b>>1];J[j+20>>2]=95;J[j+52>>2]=g;gc[J[j+4>>2]](a,2);g=o>>>0<56;o=o+8|0;if(g)continue;break}d=i-((h?0:c)+c|0)|0;if((d|0)>0)continue;break}if(d){c=J[a>>2];J[c+20>>2]=12;gc[J[c>>2]](a)}J[k+4>>2]=m;J[k>>2]=n;break c}b=0;break a}b=0;if(gx(a,1,0,0))break c;break a}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=70;gc[J[J[a>> -2]>>2]](a);break c}h=J[a+24>>2];d=J[h+4>>2];if(!d){if(!(gc[J[h+12>>2]](a)|0)){b=0;break a}d=J[h+4>>2]}c=J[h>>2];i=K[c|0];e=d-1|0;if(e)g=c+1|0;else{if(!(gc[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];g=J[h>>2]}b=K[g|0];c=J[a>>2];J[c+20>>2]=93;J[c+24>>2]=J[a+436>>2];b=b|i<<8;c=b-2|0;J[J[a>>2]+28>>2]=c;gc[J[J[a>>2]+4>>2]](a,1);J[h+4>>2]=e-1;J[h>>2]=g+1;if(b>>>0<3)break c;gc[J[J[a+24>>2]+16>>2]](a,c);break c}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=94;gc[J[J[a>>2]+4>>2]](a,1);break c}if(gc[J[J[a+460>>2]+28>> -2]](a)|0)break c;b=0;break a}if(gc[J[(J[a+460>>2]+(b<<2)|0)-864>>2]](a)|0)break c;b=0;break a}h=J[a+24>>2];d=J[h+4>>2];if(!d){if(!(gc[J[h+12>>2]](a)|0)){b=0;break a}d=J[h+4>>2]}c=J[h>>2];b=K[c|0];e=d-1|0;if(e)c=c+1|0;else{if(!(gc[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];c=J[h>>2]}if((K[c|0]|b<<8)!=4){b=J[a>>2];J[b+20>>2]=12;gc[J[b>>2]](a)}e=e-1|0;if(e)c=c+1|0;else{if(!(gc[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];c=J[h>>2]}i=K[c|0];e=e-1|0;if(e)g=c+1|0;else{if(!(gc[J[h+12>>2]](a)|0)){b=0;break a}e= -J[h+4>>2];g=J[h>>2]}b=K[g|0];c=J[a>>2];J[c+20>>2]=84;j=c;c=b|i<<8;J[j+24>>2]=c;gc[J[J[a>>2]+4>>2]](a,1);J[a+280>>2]=c;J[h+4>>2]=e-1;J[h>>2]=g+1}b=0;J[a+436>>2]=0;continue}break}bc=r+256|0;return b|0}function gZ(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,$=0;e=bc-1952|0;bc=e;J[e+16>>2]=13;J[e>>2]=13;h=820396;a:{b:{c:{d:{e:{f:{g:{g=e+16|0;if(J[Bc(b,820298,g, -0)>>2]!=1)break g;h=820630;r=J[e+24>>2];if(r-33>>>0<4294967264)break g;uc(g);h=821092;if(J[Bc(b,820852,g,0)>>2]!=1)break g;h=821407;w=J[e+24>>2];if(w-17>>>0<4294967280)break g;uc(g);h=821880;if(J[Bc(b,821711,g,0)>>2]!=1)break g;h=822234;A=J[e+24>>2];if(A-9>>>0<4294967289)break g;uc(g);h=823488;if(J[Bc(b,823405,g,0)>>2]!=6)break g;g=J[e+24>>2];if(J[g+12>>2]<6)break g;f=Mc(g,0,e,0);C=O[f+8>>3];v=J[f+8>>2];D=J[f>>2];uc(e);f=Mc(J[e+24>>2],1,e,0);E=O[f+8>>3];z=J[f+8>>2];H=J[f>>2];uc(e);F=Pu(r);f=Mc(J[e+ -24>>2],2,e,0);I=J[f>>2];x=O[f+8>>3];K=J[f+8>>2];uc(e);f=Mc(J[e+24>>2],3,e,0);i=J[f>>2];s=O[f+8>>3];l=J[f+8>>2];uc(e);f=J[e+24>>2];h:{if(J[f+12>>2]<6)break h;t=+(-1<>2]==1?+J[f+8>>2]:O[f+8>>3];O[G+(e+1568|0)>>3]=p;uc(e);f=Mc(J[e+24>>2],j,e,0);g=J[f>>2];n=O[f+8>>3];f=J[f+8>>2];uc(e);O[G+(e+1312|0)>>3]=(((g|0)==1?+(f|0):n)-p)/t;m=h+1|0;if(h>>>0>30)break h;h=m;g=h<<1;j=g+5|0;f=J[e+24>>2];if((j|0)>2])continue;break}}f=e+16|0;uc(f);if(J[Bc(b, -818578,f,0)>>2]==5)break d;if(J[e+16>>2]!=6)break e;y=J[J[e+24>>2]+12>>2];if((y|0)>32)break f;h=0;if((y|0)<=0)break d;while(1){Mc(J[e+24>>2],h,e,0);f=Sh(e,1,1,0);J[(e+1824|0)+(h<<2)>>2]=f;if(!f){uc(e+16|0);uc(e);f=0;break c}uc(e);h=h+1|0;if((y|0)!=(h|0))continue;break}break d}xc(1,-1,h,0);uc(e+16|0);break c}f=0;xc(1,-1,818908,0);break c}f=0;y=1;g=e+16|0;h=Sh(g,1,-1,0);J[e+1824>>2]=h;if(h)break d;uc(g);break c}uc(e+16|0);k=rc(12);J[k>>2]=c;f=J[J[c>>2]+20>>2];J[695492]=0;_(f|0,c|0);c=J[695492];J[695492]= -0;if((c|0)==1)break b;u=(i|0)==1?+(l|0):s;s=(I|0)==1?+(K|0):x;n=F+-1;t=(u-s)/n;p=(D|0)==1?+(v|0):C;n=(((H|0)==1?+(z|0):E)-p)/n;J[k+4>>2]=0;G=0-A|0;H=-1<>2]=0;f=A;g=G;j=0;j:{k:{if(I)break k;while(1){h=J[k>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;J[k+4>>2]=h;if((h|0)==-1)break i;if(f>>>0<=7){g=8-f|0;j=c<>g;c=h;break k}c=c<<8|h;g=(f|0)>8;f=f-8|0;if(g)continue;break}break j}J[k+8>>2]=g;h=c;c=j}l:{m:{v=c&3;if(!(o|!v)){f=0;xc(1,-1,823904,0);b= -J[k>>2];a=J[J[b>>2]+24>>2];J[695492]=0;_(a|0,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break a}i=K?v?8:12:v?12:16;l=v?2:4;d=0;while(1){g=J[k+8>>2];n:{if((r|0)<=(g|0)){g=g-r|0;c=D&h>>g;J[k+8>>2]=g;break n}o:{if((g|0)<=0){c=0;f=r;break o}J[k+8>>2]=0;f=r-g|0;c=(-1<>2];h=gc[J[J[h>>2]+28>>2]](h)|0;J[k+4>>2]=h;if((h|0)==-1)break i;if(f>>>0<=7){g=8-f|0;c=c<>g;J[k+8>>2]=g;break n}c=c<<8|h;g=(f|0)>8;f=f-8|0;if(g)continue;break}g=J[k+8>>2]}p:{q:{if((g| -0)>=(r|0)){j=g-r|0;g=D&h>>j;break q}r:{if((g|0)<=0){f=r;g=0;break r}J[k+8>>2]=0;f=r-g|0;g=(-1<>2];h=gc[J[J[h>>2]+28>>2]](h)|0;J[k+4>>2]=h;if((h|0)==-1)break i;if(f>>>0<=7){j=8-f|0;g=g<>j;break q}g=g<<8|h;j=(f|0)>8;f=f-8|0;if(j)continue;break}break p}J[k+8>>2]=j}f=d<<3;O[f+(e+1056|0)>>3]=t*+(g>>>0)+s;O[f+(e+1184|0)>>3]=n*+(c>>>0)+p;d=d+1|0;if((i|0)!=(d|0))continue;break}break l}qc(k);if(!q)break c;Gc(q);break c}d=0;if(m)while(1){j=0;while(1){c=J[k+8>> -2];s:{if((c|0)>=(w|0)){f=c-w|0;c=H&h>>f;J[k+8>>2]=f;break s}t:{if((c|0)<=0){f=w;c=0;break t}J[k+8>>2]=0;f=w-c|0;c=(-1<>2];h=gc[J[J[h>>2]+28>>2]](h)|0;J[k+4>>2]=h;if((h|0)==-1)break i;if(f>>>0<=7){c=c<>f;J[k+8>>2]=f;break s}c=c<<8|h;g=(f|0)>8;f=f-8|0;if(g)continue;break}}f=j<<3;O[f+((e+32|0)+(d<<8)|0)>>3]=O[f+(e+1312|0)>>3]*+(c>>>0)+O[f+(e+1568|0)>>3];j=j+1|0;if((m|0)!=(j|0))continue;break}d=d+1|0;if((l|0)!=(d|0))continue;break}if((o|0)== -(z|0)){z=o?o<<1:16;q=Nd(q,z,1280)}d=P(o,1280)+q|0;u:{if((a|0)==6){v:switch(v-1|0){default:O[d>>3]=O[e+1184>>3];O[d+128>>3]=O[e+1056>>3];O[d+8>>3]=O[e+1192>>3];O[d+136>>3]=O[e+1064>>3];O[d+16>>3]=O[e+1200>>3];O[d+144>>3]=O[e+1072>>3];O[d+24>>3]=O[e+1208>>3];O[d+152>>3]=O[e+1080>>3];O[d+56>>3]=O[e+1216>>3];O[d+184>>3]=O[e+1088>>3];O[d+88>>3]=O[e+1224>>3];O[d+216>>3]=O[e+1096>>3];O[d+120>>3]=O[e+1232>>3];O[d+248>>3]=O[e+1104>>3];O[d+112>>3]=O[e+1240>>3];O[d+240>>3]=O[e+1112>>3];O[d+104>>3]=O[e+1248>> -3];O[d+232>>3]=O[e+1120>>3];O[d+96>>3]=O[e+1256>>3];O[d+224>>3]=O[e+1128>>3];O[d+64>>3]=O[e+1264>>3];O[d+192>>3]=O[e+1136>>3];O[d+32>>3]=O[e+1272>>3];O[d+160>>3]=O[e+1144>>3];if(!m)break u;h=d+768|0;f=d+256|0;g=0;while(1){l=g<<3;c=l+f|0;j=l+(e+32|0)|0;O[c>>3]=O[j>>3];O[c+256>>3]=O[j+256>>3];O[(d+l|0)+1024>>3]=O[j+512>>3];O[h+l>>3]=O[j+768>>3];g=g+1|0;if((m|0)!=(g|0))continue;break}break u;case 0:c=d-1280|0;O[d>>3]=O[c+24>>3];O[d+128>>3]=O[c+152>>3];O[d+8>>3]=O[c+56>>3];O[d+136>>3]=O[c+184>>3];O[d+ -16>>3]=O[c+88>>3];O[d+144>>3]=O[c+216>>3];O[d+24>>3]=O[c+120>>3];O[d+152>>3]=O[c+248>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];if(!m)break u;l=d+ -768|0;j=d+256|0;g=P(o-1|0,1280)+q|0;h=g+256|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[(h+i|0)+256>>3];O[f+256>>3]=O[(g+i|0)+1024>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u;case 1:c=d-1280|0;O[d>>3]=O[c+120>>3];O[d+128>>3]=O[c+248>>3];O[d+8>>3]=O[c+112>>3];O[d+136>>3]=O[c+240>>3];O[d+16>>3]=O[c+104>>3];O[d+144>>3]=O[c+232>>3];O[d+24>>3]=O[c+96>>3];O[d+152>>3]=O[c+224>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]= -O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];if(!m)break u;l=d+768|0;j=d+256|0;g=P(o-1|0,1280)+q|0;h=g+768|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[(g+i|0)+1024>>3];O[f+256>>3]=O[h+i>>3];f=i+(e+32|0)|0;O[(d+i|0)+ -1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u;case 2:break v}c=d-1280|0;O[d>>3]=O[c+96>>3];O[d+128>>3]=O[c+224>>3];O[d+8>>3]=O[c+64>>3];O[d+136>>3]=O[c+192>>3];O[d+16>>3]=O[c+32>>3];O[d+144>>3]=O[c+160>>3];O[d+24>>3]=O[c>>3];O[d+152>>3]=O[c+128>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+ -1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];if(!m)break u;l=d+768|0;j=d+256|0;c=P(o-1|0,1280)+q|0;g=c+768|0;h=c+256|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[g+i>>3];O[f+256>>3]=O[h+i>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u}w:switch(v-1|0){default:O[d>>3]=O[e+1184>>3];O[d+128>>3]=O[e+1056>> -3];O[d+8>>3]=O[e+1192>>3];O[d+136>>3]=O[e+1064>>3];O[d+16>>3]=O[e+1200>>3];O[d+144>>3]=O[e+1072>>3];O[d+24>>3]=O[e+1208>>3];O[d+152>>3]=O[e+1080>>3];O[d+56>>3]=O[e+1216>>3];O[d+184>>3]=O[e+1088>>3];O[d+88>>3]=O[e+1224>>3];O[d+216>>3]=O[e+1096>>3];O[d+120>>3]=O[e+1232>>3];O[d+248>>3]=O[e+1104>>3];O[d+112>>3]=O[e+1240>>3];O[d+240>>3]=O[e+1112>>3];O[d+104>>3]=O[e+1248>>3];O[d+232>>3]=O[e+1120>>3];O[d+96>>3]=O[e+1256>>3];O[d+224>>3]=O[e+1128>>3];O[d+64>>3]=O[e+1264>>3];O[d+192>>3]=O[e+1136>>3];O[d+32>> -3]=O[e+1272>>3];O[d+160>>3]=O[e+1144>>3];O[d+40>>3]=O[e+1280>>3];O[d+168>>3]=O[e+1152>>3];O[d+48>>3]=O[e+1288>>3];O[d+176>>3]=O[e+1160>>3];O[d+80>>3]=O[e+1296>>3];O[d+208>>3]=O[e+1168>>3];O[d+72>>3]=O[e+1304>>3];O[d+200>>3]=O[e+1176>>3];if(!m)break u;h=d+768|0;f=d+256|0;g=0;while(1){l=g<<3;c=l+f|0;j=l+(e+32|0)|0;O[c>>3]=O[j>>3];O[c+256>>3]=O[j+256>>3];O[(d+l|0)+1024>>3]=O[j+512>>3];O[h+l>>3]=O[j+768>>3];g=g+1|0;if((m|0)!=(g|0))continue;break}break u;case 0:c=d-1280|0;O[d>>3]=O[c+24>>3];O[d+128>>3]= -O[c+152>>3];O[d+8>>3]=O[c+56>>3];O[d+136>>3]=O[c+184>>3];O[d+16>>3]=O[c+88>>3];O[d+144>>3]=O[c+216>>3];O[d+24>>3]=O[c+120>>3];O[d+152>>3]=O[c+248>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>> -3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];O[d+40>>3]=O[e+1248>>3];O[d+168>>3]=O[e+1120>>3];O[d+48>>3]=O[e+1256>>3];O[d+176>>3]=O[e+1128>>3];O[d+80>>3]=O[e+1264>>3];O[d+208>>3]=O[e+1136>>3];O[d+72>>3]=O[e+1272>>3];O[d+200>>3]=O[e+1144>>3];if(!m)break u;l=d+768|0;j=d+256|0;g=P(o-1|0,1280)+q|0;h=g+256|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[(h+i|0)+256>>3];O[f+256>>3]=O[(g+i|0)+1024>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u;case 1:c= -d-1280|0;O[d>>3]=O[c+120>>3];O[d+128>>3]=O[c+248>>3];O[d+8>>3]=O[c+112>>3];O[d+136>>3]=O[c+240>>3];O[d+16>>3]=O[c+104>>3];O[d+144>>3]=O[c+232>>3];O[d+24>>3]=O[c+96>>3];O[d+152>>3]=O[c+224>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+ -1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];O[d+40>>3]=O[e+1248>>3];O[d+168>>3]=O[e+1120>>3];O[d+48>>3]=O[e+1256>>3];O[d+176>>3]=O[e+1128>>3];O[d+80>>3]=O[e+1264>>3];O[d+208>>3]=O[e+1136>>3];O[d+72>>3]=O[e+1272>>3];O[d+200>>3]=O[e+1144>>3];if(!m)break u;l=d+768|0;j=d+256|0;g=P(o-1|0,1280)+q|0;h=g+768|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[(g+i|0)+1024>>3];O[f+256>>3]=O[h+i>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!= -(c|0))continue;break}break u;case 2:break w}c=d-1280|0;O[d>>3]=O[c+96>>3];O[d+128>>3]=O[c+224>>3];O[d+8>>3]=O[c+64>>3];O[d+136>>3]=O[c+192>>3];O[d+16>>3]=O[c+32>>3];O[d+144>>3]=O[c+160>>3];O[d+24>>3]=O[c>>3];O[d+152>>3]=O[c+128>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>> -3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];O[d+40>>3]=O[e+1248>>3];O[d+168>>3]=O[e+1120>>3];O[d+48>>3]=O[e+1256>>3];O[d+176>>3]=O[e+1128>>3];O[d+80>>3]=O[e+1264>>3];O[d+208>>3]=O[e+1136>>3];O[d+72>>3]=O[e+1272>>3];O[d+200>>3]=O[e+1144>>3];if(!m)break u;l=d+768|0;j=d+256|0;c=P(o-1|0,1280)+q|0;g=c+768|0;h=c+256|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[g+i>>3];O[f+256>>3]=O[h+i>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>> -3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}}J[k+4>>2]=0;o=o+1|0;continue}break}f=0;J[k+8>>2]=0;h=J[k>>2];c=J[J[h>>2]+24>>2];J[695492]=0;_(c|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(k);if(!(!o|(a|0)!=6))while(1){c=P(f,1280)+q|0;V=O[c+104>>3];x=O[c+56>>3];L=O[c+24>>3];M=O[c+96>>3];W=(L+M)*-2;N=O[c>>3];s=O[c+8>>3];p=O[c+32>>3];Q=O[c+120>>3];O[c+40>>3]=((V+x)*3+(W+(N*-4+(s+p)*6))-Q)/9;X=O[c+232>>3];t=O[c+184>>3];R=O[c+152>>3];S=O[c+224>>3];Y=(R+S)*-2;T=O[c+128>>3];$= -O[c+136>>3];n=O[c+160>>3];U=O[c+248>>3];O[c+168>>3]=((X+t)*3+(Y+(T*-4+($+n)*6))-U)/9;C=O[c+112>>3];u=(p+C)*3;p=(N+Q)*-2;E=O[c+16>>3];O[c+48>>3]=(u+(p+(L*-4+(x+E)*6))-M)/9;F=O[c+240>>3];u=(n+F)*3;n=(T+U)*-2;x=O[c+144>>3];O[c+176>>3]=(u+(n+(R*-4+(t+x)*6))-S)/9;u=s;s=O[c+88>>3];t=O[c+64>>3];O[c+72>>3]=((u+s)*3+(p+(M*-4+(V+t)*6))-L)/9;p=O[c+216>>3];u=n;n=O[c+192>>3];O[c+200>>3]=(($+p)*3+(u+(S*-4+(X+n)*6))-R)/9;O[c+80>>3]=((E+t)*3+(W+(Q*-4+(C+s)*6))-N)/9;O[c+208>>3]=((x+n)*3+(Y+(U*-4+(F+p)*6))-T)/9;f= -f+1|0;if((o|0)!=(f|0))continue;break}c=rc(328);J[c+8>>2]=0;J[c+4>>2]=a;J[c+320>>2]=y;J[c+316>>2]=m;J[c+184>>2]=o;J[c+180>>2]=q;J[c>>2]=2206448;if((y|0)>0)tc(c+188|0,e+1824|0,y<<2);x:{if(Pv(c,b)){b=0;if(J[c+320>>2]>0)break x;f=c;break c}gc[J[J[c>>2]+4>>2]](c);f=0;break c}y:{while(1){a=J[c+8>>2];if(J[J[(c+(b<<2)|0)+188>>2]+8>>2]!=(gc[J[J[a>>2]+28>>2]](a)|0))break y;b=b+1|0;if((b|0)>2])continue;break}f=c;break c}f=0;xc(1,-1,819212,0);gc[J[J[c>>2]+4>>2]](c)}bc=e+1952|0;return f}a=Z()|0;qc(k); -ba(a|0);B()}ea(0)|0;yc();B()}function LQa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;i=bc-176|0;bc=i;b=J[g>>2];j=J[g+4>>2];g=J[d>>2];k=J[d+4>>2];J[a+156>>2]=0;J[a>>2]=2205444;d=rc(8);J[695492]=0;c=aa(3182,d|0,c|0)|0;l=J[695492];J[695492]=0;if((l|0)==1){a=Z()|0;qc(d);ba(a|0);B()}J[a+32>>2]=b;J[a+36>>2]=j;J[a+20>>2]=f;J[a+16>>2]=e;J[a+8>>2]=g;J[a+12>>2]=k;J[a+4>>2]=c;J[a+152>>2]=0;J[a+28>>2]=0;J[a>>2]=2205568;J[i+160>>2]=13;J[i+144>>2]=13;J[i+128>>2]=13;J[i+ -112>>2]=13;J[i+96>>2]=13;J[i+80>>2]=13;J[i+64>>2]=13;J[a+160>>2]=0;J[a+164>>2]=0;J[a+144>>2]=1717986918;J[a+148>>2]=1072588390;J[a+136>>2]=1717986918;J[a+140>>2]=-1076468122;J[a+128>>2]=1717986918;J[a+132>>2]=1072588390;J[a+120>>2]=0;J[a+124>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+192>>2]=-1030792151;J[a+196>>2]=1072441589;J[a+184>>2]=0;J[a+188>>2]=-1074790400;J[a+176>>2]=0;J[a+180>>2]=1072693248; -J[a+168>>2]=0;J[a+172>>2]=1;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0;J[695492]=0;b=ha(3203,h|0,785310,i+144|0,0)|0;c=J[695492];J[695492]=0;a:{b:{if((c|0)==1)break b;c:{d:{e:{f:{g:{h:{i:{if(J[b>>2]==6){b=J[i+152>>2];if(J[b+12>>2])break i}J[695492]=0;ia(3399,1,-1,811966,0);b=J[695492];J[695492]=0;h=i+144|0;if((b|0)!=1)break h;break b}J[695492]=0;b=ha(3283,b|0,0,i+160|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;g=812233;j:{k:{l:{if(J[b>>2]!=7)break l;J[695492]=0;b=i+144|0;_(3205, -b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;c=J[i+168>>2];ca(3398,a|0,a|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;b=ha(3203,c|0,812531,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;g=812856;if(J[b>>2]!=7)break l;J[695492]=0;d=i+128|0;ha(3203,J[i+152>>2],813208,d|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;e=i+112|0;ha(3203,J[i+152>>2],813573,e|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;if(!(J[i+128>>2]==3&J[i+112>>2]==3)){J[695492]= -0;ia(3399,1,-1,813777,0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;break j}J[695492]=0;b=J[i+136>>2];d=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;b=aa(3183,d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){b=Z()|0;qc(d);break a}J[695492]=0;b=aa(3417,b|0,45)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;b=aa(3418,b|0,J[i+120>>2])| -0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a+160>>2]=b;J[695492]=0;_(3205,i+112|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,i+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,i+144|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+224>>2]=0;J[695492]=0;b=ha(3413,a|0,h|0,16,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a+168>>2]=b;m:{if(b)break m;J[a+172>>2]=0;b=J[a+160>>2];J[695492]=0;b=sd(b,814012);d=J[695492];J[695492]=0;if((d|0)==1)break b; -n:{if(b){b=J[a+160>>2];J[695492]=0;b=sd(b,814282);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(b)break n}J[695492]=0;b=pa(3419)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a+168>>2]=b;break m}b=J[a+160>>2];J[695492]=0;b=aa(3420,J[689612],b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a+168>>2]=b;if(b){J[a+224>>2]=1;break m}J[i+16>>2]=J[a+160>>2];J[695492]=0;ia(3399,1,-1,814598,i+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;b=pa(3419)|0;d=J[695492];J[695492]=0;if((d|0)== -1)break b;J[a+168>>2]=b}b=J[a+16>>2];o:{if(!b)break o;J[695492]=0;b=aa(3414,J[689612],b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!b)break o;d=J[a+168>>2];if(d){if(J[d+4>>2]){if(J[d+8>>2]){g=0;while(1){J[695492]=0;e=d;d=i+32|0;e=al(e,g,d,8);f=J[695492];J[695492]=0;if((f|0)==1)break f;p:{if((e|0)<=0)break p;J[695492]=0;e=al(b,J[i+32>>2],d,8);f=J[695492];J[695492]=0;if((f|0)==1)break f;if((e|0)<=0)break p;f=J[a+168>>2];J[695492]=0;ia(3415,f|0,g|0,d|0,e|0);d=J[695492];J[695492]=0;if((d|0)== -1)break f}g=g+1|0;d=J[a+168>>2];if(g>>>0>2])continue;break}}J[695492]=0;_(3225,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;break o}J[695492]=0;_(3225,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b}J[a+168>>2]=b}J[695492]=0;b=ha(3203,h|0,807094,i+144|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;g=814724;if(J[b>>2]!=5)break k}J[695492]=0;ia(3399,1,-1,g|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break b;break j}b=J[a+160>>2];J[695492]=0;b=ga(3421,0,b|0,i+144|0)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break b;J[a+164>>2]=b;if(!b)break j;b=0;q:{if(J[i+144>>2]!=4)break q;b=0;if(Ec(J[i+152>>2],815154))break q;b=J[a+160>>2];J[695492]=0;b=sd(b,814012);d=J[695492];J[695492]=0;if((d|0)==1)break b;b=!b}J[a+232>>2]=b;J[695492]=0;b=i+144|0;_(3205,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a+228>>2]=0;J[695492]=0;ha(3203,c|0,815335,b|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;r:{s:{t:switch(J[i+144>>2]-4|0){case 4:J[a+220>>2]=0;J[695492]=0;e=64;b=aa(3376,64,4)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break b;J[a+216>>2]=b;b=J[i+152>>2];d=J[J[b>>2]+20>>2];J[695492]=0;_(d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;while(1){b=J[i+152>>2];d=J[J[b>>2]+28>>2];J[695492]=0;b=$(d|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;u:{if((b|0)==-1)break u;d=J[i+152>>2];f=J[J[d>>2]+28>>2];J[695492]=0;d=$(f|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;if((d|0)==-1)break u;h=J[a+216>>2];g=J[a+220>>2];if((g|0)==(e|0)){J[695492]=0;e=e<<1;h=ga(3422,h|0,e|0,4)|0;f=J[695492]; -J[695492]=0;if((f|0)==1)break e;J[a+216>>2]=h;g=J[a+220>>2]}J[a+220>>2]=g+1;J[(g<<2)+h>>2]=d+(b<<8);continue}break}b=J[i+152>>2];d=J[J[b>>2]+24>>2];J[695492]=0;_(d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+232>>2]=0;break r;case 1:break r;case 0:break t;default:break s}if(Ec(J[i+152>>2],815500))break s;J[a+228>>2]=1;break r}J[695492]=0;ia(3399,1,-1,815850,0);b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;b=i+144|0;_(3205,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]= -0;b=ha(3203,c|0,816191,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(J[b>>2]==1)O[a+176>>3]=+J[i+152>>2]*.001;J[695492]=0;b=i+144|0;_(3205,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;b=ha(3203,c|0,816359,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;v:{if(J[b>>2]!=6)break v;f=0;e=0;while(1){h=e+1|0;b=J[i+152>>2];if((h|0)>=J[b+12>>2])break v;J[695492]=0;ha(3283,b|0,e|0,i+128|0,0)|0;b=J[695492];J[695492]=0;w:{if((b|0)==1)break w;J[695492]=0;ha(3283,J[i+152>>2],h|0, -i+112|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break w;x:{y:{if(J[i+128>>2]!=1)break y;z:switch(J[i+112>>2]-1|0){case 0:d=e+2|0;b=J[i+152>>2];if((d|0)>=J[b+12>>2])break y;J[695492]=0;b=ha(3283,b|0,d|0,i+96|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break w;A:{if(J[b>>2]-3>>>0>=4294967294){h=J[a+200>>2];g=J[a+204>>2];if((g|0)==(f|0)){J[695492]=0;f=f+16|0;h=ga(3422,h|0,f|0,16)|0;b=J[695492];J[695492]=0;if((b|0)==1)break w;J[a+200>>2]=h;g=J[a+204>>2]}b=(g<<4)+h|0;J[b>>2]=J[i+136>>2];J[b+4>>2]=J[i+ -120>>2];O[b+8>>3]=(J[i+96>>2]==1?+J[i+104>>2]:O[i+104>>3])*.001;J[a+204>>2]=g+1;break A}J[695492]=0;ia(3399,1,-1,816497,0);b=J[695492];J[695492]=0;if((b|0)==1)break w}J[695492]=0;_(3205,i+96|0);b=J[695492];J[695492]=0;if((b|0)==1)break w;h=e+3|0;break x;case 5:break z;default:break y}g=J[i+120>>2];b=J[g+12>>2];d=b+J[a+204>>2]|0;if((d|0)>(f|0)){b=J[a+200>>2];J[695492]=0;f=d+15&-16;b=ga(3422,b|0,f|0,16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break w;J[a+200>>2]=b;g=J[i+120>>2];b=J[g+12>>2]}if((b|0)> -0){h=0;d=J[i+136>>2];while(1){J[695492]=0;b=ha(3283,g|0,h|0,i+96|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;B:{if(J[b>>2]-3>>>0>=4294967294){g=J[a+204>>2];b=J[a+200>>2]+(g<<4)|0;J[b+4>>2]=d;J[b>>2]=d;O[b+8>>3]=(J[i+96>>2]==1?+J[i+104>>2]:O[i+104>>3])*.001;J[a+204>>2]=g+1;d=d+1|0;break B}J[695492]=0;ia(3399,1,-1,816497,0);b=J[695492];J[695492]=0;if((b|0)==1)break d}J[695492]=0;_(3205,i+96|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;h=h+1|0;g=J[i+120>>2];if((h|0)>2])continue;break}}h= -e+2|0;break x}J[695492]=0;ia(3399,1,-1,816497,0);b=J[695492];J[695492]=0;if((b|0)==1)break w}J[695492]=0;_(3205,i+112|0);b=J[695492];J[695492]=0;if((b|0)==1)break w;J[695492]=0;_(3205,i+128|0);b=J[695492];J[695492]=0;e=h;if((b|0)!=1)continue}break}b=Z()|0;break a}J[695492]=0;b=i+144|0;_(3205,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;b=ha(3203,c|0,816915,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;C:{if(J[b>>2]!=6)break C;b=J[i+152>>2];if(J[b+12>>2]!=2)break C;J[695492]= -0;b=ha(3283,b|0,0,i+128|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(J[b>>2]-3>>>0>=4294967294)O[a+192>>3]=(J[i+128>>2]==1?+J[i+136>>2]:O[i+136>>3])*.001;J[695492]=0;b=i+128|0;_(3205,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;b=ha(3283,J[i+152>>2],1,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(J[b>>2]-3>>>0>=4294967294)O[a+184>>3]=(J[i+128>>2]==1?+J[i+136>>2]:O[i+136>>3])*.001;J[695492]=0;_(3205,i+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0; -b=i+144|0;_(3205,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;b=ha(3203,c|0,817177,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;D:{if(J[b>>2]!=6)break D;c=0;f=0;while(1){h=f+1|0;b=J[i+152>>2];if((h|0)>=J[b+12>>2])break D;J[695492]=0;ha(3283,b|0,f|0,i+128|0,0)|0;b=J[695492];J[695492]=0;E:{if((b|0)==1)break E;J[695492]=0;ha(3283,J[i+152>>2],h|0,i+112|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E;F:{G:{if(J[i+128>>2]!=1)break G;H:switch(J[i+112>>2]-1|0){case 0:d=f+4|0;b= -J[i+152>>2];if((d|0)>=J[b+12>>2])break G;J[695492]=0;b=ha(3283,b|0,f+2|0,i+96|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break E;I:{J:{if(J[b>>2]-3>>>0<4294967294)break J;J[695492]=0;b=ha(3283,J[i+152>>2],f+3|0,i+80|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break E;if(J[b>>2]-3>>>0<4294967294)break J;J[695492]=0;b=ha(3283,J[i+152>>2],d|0,i- -64|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break E;if(J[b>>2]-3>>>0<4294967294)break J;h=J[a+208>>2];g=J[a+212>>2];if((g|0)==(c|0)){J[695492]=0;c=c+16|0; -h=ga(3422,h|0,c|0,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E;J[a+208>>2]=h;g=J[a+212>>2]}b=(g<<5)+h|0;J[b>>2]=J[i+136>>2];J[b+4>>2]=J[i+120>>2];O[b+8>>3]=(J[i+96>>2]==1?+J[i+104>>2]:O[i+104>>3])*.001;O[b+16>>3]=(J[i+80>>2]==1?+J[i+88>>2]:O[i+88>>3])*.001;O[b+24>>3]=(J[i+64>>2]==1?+J[i+72>>2]:O[i+72>>3])*.001;J[a+212>>2]=g+1;break I}J[695492]=0;ia(3399,1,-1,817318,0);b=J[695492];J[695492]=0;if((b|0)==1)break E}J[695492]=0;_(3205,i- -64|0);b=J[695492];J[695492]=0;if((b|0)==1)break E;J[695492]= -0;_(3205,i+80|0);b=J[695492];J[695492]=0;if((b|0)==1)break E;J[695492]=0;_(3205,i+96|0);b=J[695492];J[695492]=0;if((b|0)==1)break E;h=f+5|0;break F;case 5:break H;default:break G}d=J[i+120>>2];b=J[d+12>>2];e=J[a+212>>2]+((b|0)/3|0)|0;if((e|0)>(c|0)){b=J[a+208>>2];J[695492]=0;c=e+15&-16;b=ga(3422,b|0,c|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break E;J[a+208>>2]=b;d=J[i+120>>2];b=J[d+12>>2]}if((b|0)>=3){h=0;g=2;e=J[i+136>>2];while(1){J[695492]=0;b=ha(3283,d|0,h|0,i+96|0,0)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break c;K:{L:{if(J[b>>2]-3>>>0<4294967294)break L;J[695492]=0;b=ha(3283,J[i+120>>2],h+1|0,i+80|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;if(J[b>>2]-3>>>0<4294967294)break L;J[695492]=0;b=ha(3283,J[i+120>>2],g|0,i- -64|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;if(J[b>>2]-3>>>0<4294967294)break L;d=J[a+212>>2];b=J[a+208>>2]+(d<<5)|0;J[b+4>>2]=e;J[b>>2]=e;O[b+8>>3]=(J[i+96>>2]==1?+J[i+104>>2]:O[i+104>>3])*.001;O[b+16>>3]=(J[i+80>>2]==1?+J[i+88>>2]:O[i+88>>3])*.001;O[b+ -24>>3]=(J[i+64>>2]==1?+J[i+72>>2]:O[i+72>>3])*.001;J[a+212>>2]=d+1;e=e+1|0;break K}J[695492]=0;ia(3399,1,-1,817318,0);b=J[695492];J[695492]=0;if((b|0)==1)break c}J[695492]=0;_(3205,i- -64|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;_(3205,i+80|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;_(3205,i+96|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;g=h+5|0;h=h+3|0;d=J[i+120>>2];if(J[d+12>>2]>(g|0))continue;break}}h=f+2|0;break F}J[695492]=0;ia(3399,1,-1,817318,0);b=J[695492]; -J[695492]=0;if((b|0)==1)break E}J[695492]=0;_(3205,i+112|0);b=J[695492];J[695492]=0;if((b|0)==1)break E;J[695492]=0;_(3205,i+128|0);b=J[695492];J[695492]=0;f=h;if((b|0)!=1)continue}break}b=Z()|0;break a}J[695492]=0;_(3205,i+144|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,i+160|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+156>>2]=1;break g}J[695492]=0;_(3205,i+144|0);b=J[695492];J[695492]=0;h=i+160|0;if((b|0)==1)break b}J[695492]=0;_(3205,h|0);b=J[695492];J[695492]=0;if((b| -0)==1)break b;J[i>>2]=J[a+16>>2];J[695492]=0;ia(3399,1,-1,817714,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}bc=i+176|0;return a|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0}oI(a);ba(b|0);B()}function LU(a){a=a|0;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=bc-1136|0;bc=d;a:{j=J[a+156>>2];if(j){k=a+148|0;l=d+1112|0;while(1){b=J[j+8>>2];J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((b|0)!=1){f=J[j+8>> -2];J[d+1100>>2]=f;g=0;b=J[f+24>>2];if(!b)break d;J[695492]=0;c=J[b+148>>2];b=J[695492];J[695492]=0;if((b|0)==1)break o;if(!(c&16))break d;h=f+24|0;c=J[h>>2];b=J[c+108>>2];J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break o;b=J[c+108>>2];J[695492]=0;J[d+48>>2]=b;da(5151,d+1096|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break n;e=J[d+48>>2];J[d+48>>2]=0;p:{if(!e)break p;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break p;J[695492]= -0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;da(5108,d+1092|0,d+1096|0);b=J[695492];J[695492]=0;if((b|0)==1)break m;J[695492]=0;i=J[d+1092>>2];J[d+1084>>2]=0;J[d+1088>>2]=J[682146];e=d+1084|0;c=ha(5109,i|0,e|0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;q:{if(!c)break q;J[695492]=0;c=fd(e,2391642,-1);b=J[695492];J[695492]=0;if((b|0)==1)break h;if(c)break q;e=0;if(J[f+20>>2]>0)break l;break j}J[695492]=0;c=ja(5018,d+48|0,2392522,2373496,1146,2401750,0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break h;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;break i}ba(Z()|0);B()}f=ea(2411712)|0;g=cc;break e}f=ea(2411712)|0;g=cc;vc(d+48|0);break e}f=ea(2411712)|0;g=cc;break f}while(1){J[695492]=0;c=ha(5109,i|0,d+1084|0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;if(!c){J[695492]=0;c=ja(5018,d+48|0,2392522,2373496,1150,2401750,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break i;f=ea(2411712)| -0;g=cc;Fc(c);break g}J[695492]=0;_(5162,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;e=e+1|0;if((e|0)>2])continue;break}break j}f=ea(2411712)|0;g=cc;Fc(c);break g}J[695492]=0;e=d+1084|0;c=ha(5109,i|0,e|0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;r:{if(c){J[695492]=0;c=fd(e,2393559,-1);b=J[695492];J[695492]=0;if((b|0)==1)break h;if(!c)break r}J[695492]=0;c=ja(5018,d+48|0,2392522,2373496,1154,2401750,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;_(5019,c|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break i;f=ea(2411712)|0;g=cc;Fc(c);break g}while(1){b=J[J[i>>2]+8>>2];J[695492]=0;c=d+48|0;e=ga(b|0,i|0,c|0,1024)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;if(e){b=J[f+12>>2];J[695492]=0;ca(5258,b|0,c|0,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;continue}break}b=J[f+12>>2];J[695492]=0;_(5232,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;s:{t:{if(J[a+100>>2]){J[d+1128>>2]=0;b=d+1120|0;J[b>>2]=0;J[b+4>>2]=0;J[l>>2]=0;J[l+4>>2]=0;J[d+1104>>2]=0;J[d+1108>>2]=0;J[695492]= -0;c=aa(5080,d+1104|0,2401340)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;b=J[a+100>>2];J[695492]=0;ca(5259,h|0,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break t;Bd(c)}J[695492]=0;aa(4985,h|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;aa(4985,f+16|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;sc(d+1084|0);e=J[d+1092>>2];J[d+1092>>2]=0;u:{if(!e)break u;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break u;J[695492]=0;_(4987,e|0); -b=J[695492];J[695492]=0;if((b|0)==1)break a}e=J[d+1096>>2];J[d+1096>>2]=0;v:{if(!e)break v;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break s;if(c)break v;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break s}g=1;break d}f=ea(2411712)|0;g=cc;Bd(c);break g}break a}B()}f=ea(2411712)|0;g=cc}sc(d+1084|0);vc(d+1092|0)}vc(d+1096|0)}if((sa(2411712)|0)!=(g|0))break c;c=na(f|0)|0;J[695492]=0;e=aa(4989,d+40|0,2393984)|0;b=J[695492];J[695492]=0;w:{x:{y:{z:{A:{if((b| -0)!=1){J[695492]=0;c=J[c+4>>2];b=J[695492];J[695492]=0;if((b|0)==1)break A;J[695492]=0;aa(5185,e|0,(c?c:2377794)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;J[695492]=0;c=pa(5213)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;b=J[J[c>>2]+20>>2];J[695492]=0;ga(b|0,c|0,a|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;f=J[d+1100>>2];b=J[f+8>>2];J[695492]=0;c=d+48|0;ia(5222,c|0,a|0,b|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break z;J[695492]=0;aa(4993,f+16|0,c|0)|0;b=J[695492];J[695492]=0; -if((b|0)==1)break y;vc(c);J[695492]=0;aa(4985,f+24|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;b=J[f+12>>2];J[695492]=0;_(5232,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break A;sc(e);J[695492]=0;ka(4893);b=J[695492];J[695492]=0;g=1;if((b|0)!=1)break d;f=Z()|0;break c}f=Z()|0;break w}f=Z()|0;break x}f=Z()|0;break x}f=Z()|0;vc(d+48|0)}sc(e)}J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break c;break a}B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{b=J[f+16>>2];if(!b)break T; -J[695492]=0;c=J[b+148>>2];b=J[695492];J[695492]=0;U:{if((b|0)==1)break U;if(c&1)break T;h=f+16|0;b=J[h>>2];J[695492]=0;c=J[b+148>>2];b=J[695492];J[695492]=0;if((b|0)==1)break U;if(c&2){J[695492]=0;c=$(5254,20)|0;b=J[695492];J[695492]=0;if((b|0)==1)break U;J[695492]=0;e=$(5255,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){f=ea(2411712)|0;g=cc;Tl(c);break C}J[695492]=0;J[d+1096>>2]=0;c=d+1096|0;aa(4985,c|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break U;J[695492]=0;da(5256,J[d+1096>>2],h|0);b=J[695492]; -J[695492]=0;if((b|0)==1){f=ea(2411712)|0;g=cc;vc(c);break C}J[695492]=0;$(5001,J[d+1096>>2])|0;b=J[695492];J[695492]=0;V:{W:{X:{Y:{Z:{_:{if((b|0)==1)break _;J[695492]=0;c=$(5260,J[d+1096>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break _;$:{if(!c){g=160;break $}J[695492]=0;g=$(5260,J[d+1096>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break _}J[695492]=0;c=$(5007,J[d+1096>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break _;aa:{if(!c){f=160;break aa}J[695492]=0;f=$(5007,J[d+1096>>2])|0;b=J[695492];J[695492]= -0;if((b|0)==1)break _}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=160;J[d+60>>2]=(P(f,160)|0)/(g|0);J[695492]=0;h=d+1092|0;c=d+48|0;Ha(5014,h|0,J[d+1096>>2],c|0,c|0,2.200000047683716);b=J[695492];J[695492]=0;if((b|0)==1)break _;f=J[d+1092>>2];if(f)break P;J[695492]=0;la(5016,d+1084|0,J[d+1096>>2],c|0,c|0,4);b=J[695492];J[695492]=0;if((b|0)==1)break O;c=J[d+1084>>2];if(!c)break Y;J[695492]=0;i=$(4,24)|0;b=J[695492];J[695492]=0;if((b|0)==1)break X;J[695492]=0;e=aa(5261,i|0,c|0)|0;b=J[695492];J[695492]=0;if((b| -0)==1)break V;J[695492]=0;J[d+36>>2]=0;c=d+36|0;aa(4985,c|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break X;J[695492]=0;aa(4993,h|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Z;e=J[d+36>>2];J[d+36>>2]=0;if(!e)break Q;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break Q;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;break Q}f=ea(2411712)|0;g=cc;break D}f=ea(2411712)|0;g=cc;vc(d+36|0);break R}J[695492]=0;i=J[d+60>>2];h=J[d+52>> -2];e=J[d+56>>2];c=J[d+48>>2];m=$(4,24)|0;b=J[695492];J[695492]=0;if((b|0)==1)break X;J[695492]=0;e=ha(5262,m|0,i-h|0,e-c|0,2412852)|0;b=J[695492];J[695492]=0;if((b|0)==1)break S;J[695492]=0;J[d+36>>2]=0;c=d+36|0;aa(4985,c|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break X;J[695492]=0;aa(4993,d+1092|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break W;e=J[d+36>>2];J[d+36>>2]=0;if(!e)break Q;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)!=1){if(c)break Q;J[695492]=0;_(4987, -e|0);b=J[695492];J[695492]=0;if((b|0)!=1)break Q}break a}f=ea(2411712)|0;g=cc;break R}f=ea(2411712)|0;g=cc;vc(d+36|0);break R}f=ea(2411712)|0;g=cc;qc(i);break R}b=J[h>>2];J[695492]=0;c=J[b+148>>2];b=J[695492];J[695492]=0;if((b|0)==1)break U;if(c&4){J[695492]=0;aa(4985,f+24|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break U;J[695492]=0;f=J[d+1100>>2];aa(4985,f+16|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break U;b=J[f+12>>2];J[695492]=0;_(5232,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break U;break B}b= -J[h>>2];J[695492]=0;_(5263,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break T}f=ea(2411712)|0;g=cc;break C}if(g)break B;j=J[j>>2];break b}f=ea(2411712)|0;g=cc;qc(m)}vc(d+1084|0);break E}e=J[d+1084>>2];J[d+1084>>2]=0;ba:{if(!e)break ba;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)!=1){if(c)break ba;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)!=1)break ba}break a}f=J[d+1092>>2]}J[d+32>>2]=0;J[695492]=0;c=d+32|0;aa(4985,c|0,0)|0;b=J[695492];J[695492]=0;if((b|0)== -1)break O;J[695492]=0;ia(5264,d+36|0,f|0,c|0,2);b=J[695492];J[695492]=0;if((b|0)==1)break N;e=J[d+32>>2];J[d+32>>2]=0;ca:{if(!e)break ca;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break ca;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;_(5078,d+28|0);b=J[695492];J[695492]=0;if((b|0)==1)break M;J[695492]=0;b=d+16|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break K;J[b>>2]=97;J[d+20>>2]=0;J[d+ -24>>2]=0;e=J[d+36>>2];c=J[d+28>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break K;c=J[d+28>>2]}else c=0;J[d+12>>2]=c;c=J[J[e>>2]+32>>2];J[695492]=0;ga(c|0,e|0,d+12|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break L;e=J[d+12>>2];J[d+12>>2]=0;da:{if(!e)break da;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break da;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;da(5266,d+1084|0,J[d+28>> -2]);b=J[695492];J[695492]=0;if((b|0)==1)break K;f=J[d+1100>>2];i=J[f+12>>2];g=J[d+1088>>2];if(J[g+4>>2]>=2){J[695492]=0;c=$(4,52)|0;b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;g=aa(5267,c|0,g|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break I;J[g+4>>2]=J[g+4>>2]+1;c=J[d+1088>>2];ea:{if(!c)break ea;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break ea;gc[J[J[c>>2]+4>>2]](c)}J[d+1088>>2]=g}h=J[g+20>>2];e=J[g+24>>2];c=J[g+12>>2];b=J[g+8>>2];J[695492]=0;ca(5258,i|0,b-c|0,(e-h|0)+1|0);b=J[695492];J[695492]= -0;if((b|0)==1)break J;b=J[f+12>>2];J[695492]=0;_(5232,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;aa(4985,f+24|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;aa(4985,f+16|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break J;J[d+1084>>2]=2381060;c=J[d+1088>>2];fa:{if(!c)break fa;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break fa;gc[J[J[c>>2]+4>>2]](c)}e=J[d+28>>2];J[d+28>>2]=0;ga:{if(!e)break ga;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a; -if(c)break ga;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}e=J[d+36>>2];J[d+36>>2]=0;ha:{if(!e)break ha;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break ha;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}e=J[d+1092>>2];J[d+1092>>2]=0;ia:{if(!e)break ia;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break ia;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}e= -J[d+1096>>2];J[d+1096>>2]=0;if(!e)break B;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)!=1){if(c)break B;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)!=1)break B}break a}f=ea(2411712)|0;g=cc;break E}f=ea(2411712)|0;g=cc;vc(d+32|0);break E}f=ea(2411712)|0;g=cc;break F}f=ea(2411712)|0;g=cc;vc(d+12|0);break G}f=ea(2411712)|0;g=cc;break G}f=ea(2411712)|0;g=cc;break H}f=ea(2411712)|0;g=cc;qc(c)}J[d+1084>>2]=2381060;c=J[d+1088>>2];if(!c)break G;b=J[c+4>>2]-1|0;J[c+ -4>>2]=b;if(b)break G;gc[J[J[c>>2]+4>>2]](c)}vc(d+28|0)}vc(d+36|0)}vc(d+1092|0)}vc(d+1096|0)}if((sa(2411712)|0)!=(g|0))break c;c=na(f|0)|0;J[695492]=0;e=aa(4989,d+4|0,2394091)|0;b=J[695492];J[695492]=0;ja:{ka:{if((b|0)!=1){J[695492]=0;c=J[c+4>>2];b=J[695492];J[695492]=0;if((b|0)==1)break ka;J[695492]=0;aa(5185,e|0,(c?c:2377794)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ka;J[695492]=0;c=pa(5213)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ka;b=J[J[c>>2]+20>>2];J[695492]=0;ga(b|0,c|0,a|0,e|0)|0; -b=J[695492];J[695492]=0;if((b|0)==1)break ka;J[695492]=0;f=J[d+1100>>2];aa(4985,f+16|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ka;J[695492]=0;aa(4985,f+24|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ka;b=J[f+12>>2];J[695492]=0;_(5232,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break ka;sc(e);J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break B;f=Z()|0;break c}f=Z()|0;break ja}f=Z()|0;sc(e)}J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break a;break c}J[d+52>>2]=k;J[d+ -48>>2]=j;j=J[j>>2];J[695492]=0;da(5065,k|0,d+48|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;f=Z()|0}vc(d+1100|0);ba(f|0);B()}J[695492]=0;J[d+1100>>2]=0;c=J[f+4>>2]-1|0;J[f+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(!c){J[695492]=0;_(4987,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(j)continue;break}}bc=d+1136|0;return}ea(0)|0;yc();B()}function Jxa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+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;f=bc-160|0;bc=f;a:{b:{if(!b)break b; -h=a+8|0;c:{if(J[a+8>>2]){ei(f+124|0,a,h);break c}J[f+124>>2]=0;md(f+124|0,0)}d:{e:{f:{if(J[h>>2]){J[695492]=0;ca(5350,f+136|0,a|0,h|0);g=J[695492];J[695492]=0;if((g|0)!=1)break f;break e}J[695492]=0;J[f+136>>2]=0;aa(4985,f+136|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e}g=J[f+136>>2];g:{if(!g)break g;k=J[g+8>>2];J[695492]=0;J[f+136>>2]=0;m=J[g+4>>2]-1|0;J[g+4>>2]=m;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(m)break g;J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break a}h:{i:{if(J[h>> -2]){J[695492]=0;ca(5350,f+136|0,a|0,h|0);g=J[695492];J[695492]=0;if((g|0)!=1)break i;break h}J[695492]=0;J[f+136>>2]=0;aa(4985,f+136|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h}j:{g=J[f+136>>2];if(!g)break j;n=J[g+12>>2];J[695492]=0;J[f+136>>2]=0;m=J[g+4>>2]-1|0;J[g+4>>2]=m;i=J[695492];J[695492]=0;k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{if((i|0)==1)break D;if(!m){J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break D}if((k|0)<=0|(n|0)<=0)break j;if(!J[f+124>> -2])break b;E:{if(J[h>>2]){J[695492]=0;ca(5353,f+120|0,a|0,h|0);g=J[695492];J[695492]=0;if((g|0)!=1)break E;break k}J[695492]=0;J[f+120>>2]=0;aa(4985,f+120|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break k}F:{if(J[h>>2]){J[695492]=0;ca(5354,f+116|0,a|0,h|0);g=J[695492];J[695492]=0;if((g|0)!=1)break F;break m}J[695492]=0;J[f+116>>2]=0;aa(4985,f+116|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break m}G:{if(J[h>>2]){J[695492]=0;ca(5355,f+112|0,a|0,h|0);h=J[695492];J[695492]=0;if((h|0)!=1)break G;break o}J[695492]= -0;J[f+112>>2]=0;aa(4985,f+112|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break o}r=1;H:{if(!(e>0))break H;r=.1;e=e/O[J[f+124>>2]+24>>3];if(e<.1)break H;r=e;if(!(e>10))break H;r=10}J[f+104>>2]=0;J[f+108>>2]=0;J[f+96>>2]=0;J[f+100>>2]=0;J[695492]=0;m=f+96|0;J[m>>2]=2385932;J[m+4>>2]=0;J[m+8>>2]=0;J[m+12>>2]=0;h=J[695492];J[695492]=0;I:{if((h|0)!=1){J[f+92>>2]=0;h=J[f+120>>2];if(!h)break p;if(J[h+72>>2]!=(k|0))break q;if((n|0)==J[h+76>>2])break I;break q}a=Z()|0;break r}i=J[c+4>>2];j=J[c+12>>2];l=J[c>> -2];o=J[c+8>>2];J[695492]=0;g=f+136|0;ia(5371,g|0,j-i|0,o-l|0,0);i=J[695492];J[695492]=0;J:{K:{L:{M:{if((i|0)!=1){J[695492]=0;aa(4993,f+92|0,g|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break M;vc(g);J[695492]=0;t=P(d,d)+1|0;da(5372,J[f+92>>2],t|0);g=J[695492];J[695492]=0;if((g|0)==1)break t;i=J[c>>2];l=J[c+4>>2];J[f+68>>2]=0;j=J[h+100>>2];g=J[h+96>>2];if(((j-g|0)+1|0)>0){q=P(d,l);p=P(d,i);i=0;while(1){if((i|0)>(j|0)|(g|0)>(i|0))break L;l=J[h+84>>2]+(i-J[h+88>>2]<<3)|0;g=J[l+4>>2];J[695492]=0;o=aa(5373, -h|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break K;j=J[o+4>>2];N:{if(!j)break N;i=L[l>>1];if((i|0)>(P(J[c+8>>2],d)|0))break N;g=L[l+2>>1];if((L[j+10>>1]+i|0)<(P(J[c>>2],d)|0)|(g|0)>(P(J[c+12>>2],d)|0)|(L[j+8>>1]+g|0)<(P(J[c+4>>2],d)|0))break N;if(J[f+112>>2]){J[695492]=0;da(5374,m|0,f+68|0);g=J[695492];J[695492]=0;if((g|0)==1)break K;i=L[l>>1];j=J[o+4>>2];g=L[l+2>>1]}J[695492]=0;la(5375,J[f+92>>2],j|0,i-p|0,g-q|0,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break K}i=J[f+68>>2]+1|0;J[f+68>>2]=i;j= -J[h+100>>2];g=J[h+96>>2];if(((j-g|0)+1|0)>(i|0))continue;break}}o=J[f+92>>2];if(o)break J;j=0;break p}a=Z()|0;break s}a=Z()|0;vc(f+136|0);break s}J[695492]=0;b=ja(5018,f+136|0,2390329,2390580,619,2404824,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);break s}a=Z()|0;break s}a=Z()|0;break s}if(!J[f+112>>2])break A;j=0;J[695492]=0;ia(5376,b|0,o|0,0,0);a=J[695492];J[695492]=0;if((a|0)==1)break B;n=J[f+120>>2];l=J[f+112>>2]; -if((J[n+100>>2]-J[n+96>>2]|0)!=(J[l+28>>2]-J[l+24>>2]|0))break q;a=J[l+56>>2];h=J[l+60>>2];J[695492]=0;a=h-a|0;i=ha(5198,f+68|0,2405176,0,a|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break w;q=a+1|0;if((q|0)>0){a=0;while(1){if(!(J[i+16>>2]<=(a|0)&J[i+20>>2]>=(a|0))){J[695492]=0;b=ja(5018,f+136|0,2390329,2390580,619,2405196,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break u;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);xd(i);break s}if(!(J[l+56>>2]<=(a|0)&J[l+60>>2]>= -(a|0))){J[695492]=0;b=ja(5018,f+136|0,2390329,2390580,632,2404894,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break u;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);xd(i);break s}h=J[i+4>>2]+P(a-J[i+8>>2]|0,3)|0;g=J[l+44>>2]+(a-J[l+48>>2]<<2)|0;H[h|0]=K[g|0];H[h+1|0]=K[g+1|0];H[h+2|0]=K[g+2|0];a=a+1|0;if((q|0)!=(a|0))continue;break}}a=J[i+4>>2];h=J[i+8>>2];J[695492]=0;Db(5377,+r,a+P(h,-3)|0,q|0);a=J[695492];J[695492]=0;O:{P:{Q:{if((a|0)!=1){R:{if(J[m+4>>2]>0){u=d-1| -0;while(1){a=J[m+8>>2];J[f+64>>2]=m;J[f+60>>2]=a;J[f+56>>2]=m;J[f+52>>2]=a;if(!a){J[695492]=0;da(5073,f+52|0,m|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;break v}a=J[a+8>>2];if(!((a|0)>=J[l+24>>2]&(a|0)<=J[l+28>>2])){J[695492]=0;b=ja(5018,f+136|0,2390329,2390580,619,2405264,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break v;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);xd(i);break s}o=I[J[l+12>>2]+(a-J[l+16>>2]<<1)>>1];if((o|0)>=(q|0)){J[695492]=0;b=ja(5018,f+ -136|0,2382123,2379760,910,2404732,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Q;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);xd(i);break s}J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[695492]=0;h=f+32|0;J[h>>2]=2385932;J[h+4>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break x;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;g=0;a=0;k=0;p=0;j=J[f+60>>2];if(j){while(1){J[f+8>>2]=j;a=J[f+64>>2];J[f+12>>2]=a;if((a|0)!=(m|0)){J[695492]= -0;da(5073,f+8|0,m|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;$c(h);xd(i);break s}k=J[j+8>>2];if(!((k|0)>=J[n+96>>2]&(k|0)<=J[n+100>>2])){J[695492]=0;b=ja(5018,f+136|0,2390329,2390580,619,2404824,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break y;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);$c(h);xd(i);break s}a=g;p=J[n+84>>2]+(k-J[n+88>>2]<<3)|0;g=L[p>>1];if(a>>>0<=g>>>0){if(!((k|0)<=J[l+28>>2]&(k|0)>=J[l+24>>2])){J[695492]=0;b=ja(5018,f+136|0,2390329, -2390580,619,2405264,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break y;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);$c(h);xd(i);break s}S:{if(L[J[l+12>>2]+(k-J[l+16>>2]<<1)>>1]==(o&65535)){a=J[p+4>>2];J[695492]=0;j=aa(5373,n|0,a|0)|0;a=J[695492];J[695492]=0;T:{if((a|0)!=1){a=L[p+2>>1];j=J[j+4>>2];k=L[j+8>>1];s=L[j+10>>1];j=L[p>>1];J[f+144>>2]=s+j;J[f+140>>2]=a;J[f+136>>2]=j;J[695492]=0;J[f+148>>2]=a+k;a=f+16|0;PT(a,a,f+136|0);a=J[695492];J[695492]=0;if((a|0)==1)break T; -J[695492]=0;J[f+128>>2]=0;J[f+132>>2]=0;ia(5379,h|0,f+128|0,m|0,f+60|0);a=J[695492];J[695492]=0;if((a|0)==1)break T;j=J[f+60>>2];break S}a=Z()|0;$c(h);xd(i);break s}a=Z()|0;$c(h);xd(i);break s}j=J[j>>2];J[f+60>>2]=j}if(j)continue}break}g=J[f+28>>2];k=J[f+20>>2];p=J[f+16>>2];a=J[f+24>>2]}J[695492]=0;J[f+20>>2]=(k|0)/(d|0);J[f+16>>2]=(p|0)/(d|0);J[f+28>>2]=(g+u|0)/(d|0);J[f+24>>2]=(a+u|0)/(d|0);a=f+16|0;Ds(a,a,c);a=J[695492];J[695492]=0;if((a|0)==1)break R;J[695492]=0;a=f+92|0;aa(4985,a|0,0)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break R;J[695492]=0;j=J[f+28>>2];k=J[f+20>>2];p=J[f+24>>2];s=J[f+16>>2];g=$(4,72)|0;v=J[695492];J[695492]=0;U:{V:{W:{X:{Y:{Z:{if((v|0)==1)break Z;J[695492]=0;j=ha(5381,g|0,j-k|0,p-s|0,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break P;J[695492]=0;J[f+136>>2]=0;g=f+136|0;aa(4985,g|0,j|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break Z;J[695492]=0;aa(4993,a|0,g|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break Y;a=J[f+136>>2];J[f+136>>2]=0;_:{if(!a)break _;J[695492]=0;g=J[a+4>>2]-1| -0;J[a+4>>2]=g;j=J[695492];J[695492]=0;if((j|0)==1)break O;if(g)break _;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break O}J[695492]=0;da(5372,J[f+92>>2],t|0);a=J[695492];J[695492]=0;if((a|0)==1)break R;a=J[f+40>>2];J[f+60>>2]=a;g=J[f+20>>2];j=J[f+16>>2];J[f+64>>2]=f+32;$:{if(!a)break $;g=P(d,g);j=P(d,j);while(1){J[f>>2]=a;k=J[f+64>>2];J[f+4>>2]=k;if((h|0)!=(k|0)){J[695492]=0;da(5073,f|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;$c(h);xd(i);break s}a=J[a+8>>2];if(!((a| -0)>=J[n+96>>2]&(a|0)<=J[n+100>>2])){J[695492]=0;b=ja(5018,f+136|0,2390329,2390580,619,2404824,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break W;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);$c(h);xd(i);break s}a=J[n+84>>2]+(a-J[n+88>>2]<<3)|0;k=J[a+4>>2];J[695492]=0;k=aa(5373,n|0,k|0)|0;p=J[695492];J[695492]=0;if((p|0)==1)break V;p=L[a>>1];a=L[a+2>>1];k=J[k+4>>2];J[695492]=0;la(5375,J[f+92>>2],k|0,p-j|0,a-g|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break V;a=J[f+ -60>>2];if(!a)break $;a=J[a>>2];J[f+60>>2]=a;if(a)continue;break}}if((o|0)<=J[i+20>>2]&(o|0)>=J[i+16>>2])break U;J[695492]=0;b=ja(5018,f+136|0,2390329,2390580,619,2405196,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break X;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C;a=Z()|0;Fc(b);$c(h);xd(i);break s}a=Z()|0;$c(h);xd(i);break s}a=Z()|0;vc(f+136|0);$c(h);xd(i);break s}a=Z()|0;$c(h);xd(i);break s}a=Z()|0;$c(h);xd(i);break s}a=Z()|0;$c(h);xd(i);break s}a=J[i+4>>2];g=J[i+8>>2];j=J[c>> -2];k=J[c+4>>2];J[695492]=0;la(5382,b|0,J[f+92>>2],J[f+16>>2]-j|0,J[f+20>>2]-k|0,a+P(o-g|0,3)|0);a=J[695492];J[695492]=0;if((a|0)==1)break z;$c(h);if(J[m+4>>2]>0)continue;break}}xd(i);j=1;break q}a=Z()|0;$c(h);xd(i);break s}a=Z()|0;xd(i);break s}a=Z()|0;xd(i);break s}a=Z()|0;qc(g);$c(h);xd(i);break s}break a}ea(0)|0;yc()}B()}a=Z()|0;break s}j=0;i=J[f+116>>2];if(!i)break q;g=n;l=L[i+10>>1];n=L[i+8>>1];h=Is(k,g,l,n);if(h-13>>>0<4294967284)break q;g=1;g=(d|0)<(h|0)?(h|0)/(d|0)|0:g;d=P(g,d);if((d|0)== -(h|0)){J[695492]=0;bb(5383,b|0,o|0,i|0,g|0,c|0,+r);a=J[695492];J[695492]=0;j=1;if((a|0)!=1)break q;a=Z()|0;break s}i=((d+P(h,n)|0)-1|0)/(d|0)|0;j=((d+P(h,l)|0)-1|0)/(d|0)|0;J[f+32>>2]=0;aa:{ba:{if(!K[2759548]){J[695492]=0;J[689886]=0;aa(4985,2759544,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break ba;H[2759548]=1}ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{k=J[689886];if(!k|J[689884]!=(a|0)|(J[f+116>>2]!=J[689885]|(j|0)!=L[k+10>>1]))break ja;if((i|0)!=L[k+8>>1])break ja;J[695492]=0;aa(4993,f+32|0,2759544)|0;d= -J[695492];J[695492]=0;if((d|0)!=1)break ia;break ba}J[695492]=0;o=f+16|0;la(5361,o|0,l|0,n|0,j|0,i|0);k=J[695492];J[695492]=0;if((k|0)==1)break ca;J[695492]=0;k=J[f+16>>2];ca(5362,k|0,h|0,d|0);q=J[695492];J[695492]=0;if((q|0)==1)break ha;J[695492]=0;ca(5363,k|0,h|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break ha;J[695492]=0;d=f+136|0;_(5359,d|0);h=J[695492];J[695492]=0;if((h|0)==1)break ga;J[695492]=0;aa(4993,f+32|0,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break fa;vc(d);J[f+148>>2]=n;J[f+144>> -2]=l;J[f+136>>2]=0;J[f+140>>2]=0;J[695492]=0;J[f+80>>2]=i;J[f+76>>2]=j;J[f+68>>2]=0;J[f+72>>2]=0;la(5365,k|0,d|0,J[f+116>>2],f+68|0,J[f+32>>2]);d=J[695492];J[695492]=0;if((d|0)==1)break ea;vc(o)}J[695492]=0;bb(5383,b|0,J[f+92>>2],J[f+32>>2],g|0,c|0,+r);b=J[695492];J[695492]=0;if((b|0)==1)break ba;J[689884]=a;J[689885]=J[f+116>>2];J[695492]=0;a=f+32|0;aa(4993,2759544,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ba;vc(a);j=1;break q}a=Z()|0;break da}a=Z()|0;break da}a=Z()|0;vc(f+136|0);break da}a= -Z()|0}vc(f+16|0);break aa}a=Z()|0;break aa}a=Z()|0}vc(f+32|0);break s}a=Z()|0;$c(h);xd(i);break s}a=Z()|0;$c(h);xd(i);break s}a=Z()|0;xd(i);break s}a=Z()|0;break s}a=Z()|0;xd(i);break s}a=Z()|0;xd(i);break s}a=Z()|0}vc(f+92|0);$c(m)}vc(f+112|0);break n}a=J[f+92>>2];J[f+92>>2]=0;if(!a)break p;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break p;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break p}break a}$c(m);a=J[f+112>>2];J[f+112>>2]=0;ka:{if(!a)break ka; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break ka;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break ka}break a}a=J[f+116>>2];J[f+116>>2]=0;la:{ma:{if(!a)break ma;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break la;if(b)break ma;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break la}a=J[f+120>>2];J[f+120>>2]=0;if(!a)break j;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!= -1){if(b)break j;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break j}break a}break a}a=Z()|0}vc(f+116|0);break l}a=Z()|0}vc(f+120|0);break d}a=Z()|0;break d}a=J[f+124>>2];J[f+124>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}a=Z()|0;break d}a=Z()|0}vc(f+124|0);ba(a|0);B()}bc=f+160|0;return j|0}ea(0)|0;yc();B()}function am(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;j=bc-32|0;bc=j;J[j+16>>2]=13;a:{if((b|0)>=9){xc(1,-1,774561,0);break a}b:{c:switch(J[a>>2]-4|0){case 0:d:{a=J[a+8>>2];if(Ec(a,775663))if(Ec(a,777517))break d;c=rc(12);J[c>>2]=2205736;J[c+4>>2]=15;J[c+8>>2]=0;break a}e:{if(Ec(a,778754))if(Ec(a,780008))break e;c=rc(12);J[c>>2]=2205840;J[c+4>>2]=15;J[c+8>>2]=0;break a}f:{if(Ec(a,780993))if(Ec(a,782031))break f;c=rc(12);J[c>>2]=2205944;J[c+4>>2]=15;J[c+8>>2]=0;break a}if(!Ec(a,782623)){c=rc(16);J[c+ -12>>2]=0;J[c>>2]=2206256;J[c+4>>2]=15;J[c+8>>2]=0;break a}J[j>>2]=a;xc(1,-1,784147,j);break a;case 2:break c;default:break b}d=J[a+8>>2];if(J[d+12>>2]<=0)break b;Mc(d,0,j+16|0,0);g:{h:{if(J[j+16>>2]!=4)break h;i:{d=J[j+24>>2];if(Ec(d,775663))if(Ec(d,777517))break i;c=rc(12);J[c>>2]=2205736;J[c+4>>2]=15;J[c+8>>2]=0;break g}j:{if(Ec(d,778754))if(Ec(d,780008))break j;c=rc(12);J[c>>2]=2205840;J[c+4>>2]=15;J[c+8>>2]=0;break g}k:{if(Ec(d,780993))if(Ec(d,782031))break k;c=rc(12);J[c>>2]=2205944;J[c+4>>2]= -15;J[c+8>>2]=0;break g}if(!Ec(d,784405)){c=J[a+8>>2];b=0;a=bc-48|0;bc=a;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;l:{if(J[c+12>>2]<=1){xc(1,-1,792953,0);break l}d=c;c=a+32|0;Mc(d,1,c,0);if(J[a+32>>2]!=7){xc(1,-1,792953,0);uc(c);break l}b=rc(72);J[b+32>>2]=0;J[b+36>>2]=1072693248;J[b>>2]=2205788;J[b+4>>2]=15;J[b+8>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+40>>2]=0;J[b+44>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+64>>2]=0;J[b+68>>2]=1072693248;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0; -m:{if(J[Bc(J[a+40>>2],793470,a+16|0,0)>>2]!=6)break m;c=J[a+24>>2];if(J[c+12>>2]!=3)break m;Mc(c,0,a,0);O[b+16>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],1,a,0);O[b+24>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],2,a,0);O[b+32>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a)}c=a+16|0;uc(c);n:{if(J[Bc(J[a+40>>2],794254,c,0)>>2]!=6)break n;c=J[a+24>>2];if(J[c+12>>2]!=3)break n;Mc(c,0,a,0);O[b+40>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],1,a,0);O[b+48>>3]=J[a>>2]==1?+J[a+ -8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],2,a,0);O[b+56>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a)}c=a+16|0;uc(c);if(J[Bc(J[a+40>>2],795339,c,0)>>2]-3>>>0>=4294967294)O[b+64>>3]=J[a+16>>2]==1?+J[a+24>>2]:O[a+24>>3];uc(a+16|0);uc(a+32|0)}bc=a+48|0;c=b;break g}if(!Ec(d,785828)){c=J[a+8>>2];b=0;a=bc-48|0;bc=a;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;o:{if(J[c+12>>2]<=1){xc(1,-1,796183,0);break o}d=c;c=a+32|0;Mc(d,1,c,0);if(J[a+32>>2]!=7){xc(1,-1,796183,0);uc(c);break o}b=rc(160);J[b+32>>2]=0;J[b+36>>2]=1072693248; -J[b>>2]=2205892;J[b+4>>2]=15;J[b+8>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+40>>2]=0;J[b+44>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+80>>2]=0;J[b+84>>2]=1072693248;J[b+72>>2]=0;J[b+76>>2]=1072693248;J[b+88>>2]=0;J[b+92>>2]=1072693248;J[b+64>>2]=0;J[b+68>>2]=1072693248;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+128>>2]=0;J[b+132>>2]=0;J[b+120>>2]=0;J[b+124>>2]=1072693248;J[b+136>>2]=0;J[b+140>>2]= -0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+152>>2]=0;J[b+156>>2]=1072693248;p:{if(J[Bc(J[a+40>>2],793470,a+16|0,0)>>2]!=6)break p;c=J[a+24>>2];if(J[c+12>>2]!=3)break p;Mc(c,0,a,0);O[b+16>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],1,a,0);O[b+24>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],2,a,0);O[b+32>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a)}c=a+16|0;uc(c);q:{if(J[Bc(J[a+40>>2],794254,c,0)>>2]!=6)break q;c=J[a+24>>2];if(J[c+12>>2]!=3)break q;Mc(c,0,a,0);O[b+40>>3]=J[a>>2]==1?+J[a+ -8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],1,a,0);O[b+48>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],2,a,0);O[b+56>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a)}c=a+16|0;uc(c);r:{if(J[Bc(J[a+40>>2],795339,c,0)>>2]!=6)break r;c=J[a+24>>2];if(J[c+12>>2]!=3)break r;Mc(c,0,a,0);O[b+64>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],1,a,0);O[b+72>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],2,a,0);O[b+80>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a)}c=a+16|0;uc(c);s:{if(J[Bc(J[a+40>>2], -796652,c,0)>>2]!=6)break s;c=J[a+24>>2];if(J[c+12>>2]!=9)break s;Mc(c,0,a,0);O[b+88>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],1,a,0);O[b+96>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],2,a,0);O[b+104>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],3,a,0);O[b+112>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],4,a,0);O[b+120>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],5,a,0);O[b+128>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],6,a,0); -O[b+136>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],7,a,0);O[b+144>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],8,a,0);O[b+152>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a)}uc(a+16|0);uc(a+32|0)}bc=a+48|0;c=b;break g}if(!Ec(d,786435)){c=J[a+8>>2];b=0;a=bc-48|0;bc=a;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;t:{if(J[c+12>>2]<=1){xc(1,-1,797741,0);break t}d=c;c=a+32|0;Mc(d,1,c,0);if(J[a+32>>2]!=7){xc(1,-1,797741,0);uc(c);break t}b=rc(120);J[b+32>>2]=0;J[b+36>>2]=1072693248;J[b>>2]=2205996; -J[b+4>>2]=15;J[b+8>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+40>>2]=0;J[b+44>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+80>>2]=0;J[b+84>>2]=-1067909120;J[b+88>>2]=0;J[b+92>>2]=1079574528;J[b+64>>2]=0;J[b+68>>2]=-1067909120;J[b+72>>2]=0;J[b+76>>2]=1079574528;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;m=1;u:{if(J[Bc(J[a+40>>2],793470,a+16|0,0)>>2]!=6){k=1;l=1;break u}k=1;l=1;c=J[a+24>>2];if(J[c+12>>2]!=3)break u;Mc(c,0,a,0);l=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];O[b+16>>3]=l;uc(a);Mc(J[a+24>> -2],1,a,0);k=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];O[b+24>>3]=k;uc(a);Mc(J[a+24>>2],2,a,0);m=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];O[b+32>>3]=m;uc(a)}c=a+16|0;uc(c);v:{if(J[Bc(J[a+40>>2],794254,c,0)>>2]!=6)break v;c=J[a+24>>2];if(J[c+12>>2]!=3)break v;Mc(c,0,a,0);O[b+40>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],1,a,0);O[b+48>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],2,a,0);O[b+56>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a)}c=a+16|0;uc(c);w:{if(J[Bc(J[a+40>>2],798398,c,0)>>2]!=6)break w; -c=J[a+24>>2];if(J[c+12>>2]!=4)break w;Mc(c,0,a,0);O[b+64>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],1,a,0);O[b+72>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],2,a,0);O[b+80>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a);Mc(J[a+24>>2],3,a,0);O[b+88>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(a)}uc(a+16|0);uc(a+32|0);O[b+112>>3]=1/(m*1.057229+(l*.055643+k*-.204026));O[b+104>>3]=1/(m*.041556+(l*-.969265+k*1.876011));O[b+96>>3]=1/(m*-.498531+(l*3.240449+k*-1.537136))}bc=a+48|0;c=b;break g}if(!Ec(d, -787264)){d=J[a+8>>2];e=bc+-64|0;bc=e;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;x:{if(J[d+12>>2]<=1){xc(1,-1,799098,0);break x}f=e+48|0;jg(d,1,f);a=J[e+56>>2];g=J[e+60>>2];i=J[e+48>>2];uc(f);Mc(d,1,f,0);if(J[e+48>>2]!=8){xc(1,-1,800283,0);uc(f);break x}d=J[e+56>>2];f=gc[J[J[d>>2]+76>>2]](d)|0;d=e+32|0;if(J[Bc(f,800696,d,0)>>2]!=1){xc(1,-1,801610,0);uc(d);uc(e+48|0);break x}d=J[e+40>>2];uc(e+32|0);if((d|0)>=5){J[e>>2]=d;xc(1,-1,801853,e);d=4}c=e+32|0;y:{if(J[Bc(f,802670,c,0)>>2]!=5){b=am(c,b+1|0);if(b)break y}z:switch(d- -1|0){case 2:b=rc(12);J[b>>2]=2205840;J[b+4>>2]=15;J[b+8>>2]=0;break y;case 3:b=rc(12);J[b>>2]=2205944;J[b+4>>2]=15;J[b+8>>2]=0;break y;default:c=0;xc(1,-1,803390,0);uc(e+32|0);uc(e+48|0);break x;case 0:break z}b=rc(12);J[b>>2]=2205736;J[b+4>>2]=15;J[b+8>>2]=0}h=e+32|0;uc(h);c=rc(96);J[c+16>>2]=b;J[c+12>>2]=d;J[c>>2]=2206048;J[c+4>>2]=15;J[c+8>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+56>>2]=0;J[c+60>>2]=1072693248;b=a;a=(i|0)==9;J[c+88>>2]=a?b:0;J[c+92>>2]=a?g:0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+ -44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+80>>2]=0;J[c+84>>2]=1072693248;J[c+72>>2]=0;J[c+76>>2]=1072693248;a=c- -64|0;J[a>>2]=0;J[a+4>>2]=1072693248;if(!(J[Bc(f,798398,h,0)>>2]!=6|J[J[e+40>>2]+12>>2]!=d<<1|(d|0)<=0)){b=0;while(1){f=b<<1;a=e+16|0;Mc(J[e+40>>2],f,a,0);g=(b<<3)+c|0;O[g+24>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3];uc(a);Mc(J[e+40>>2],f|1,a,0);O[g+56>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3];uc(a);b=b+1|0;if((d|0)!=(b|0))continue;break}}uc(e+32|0);uc(e+48|0)}bc=e- -64|0;break g}A:{if(Ec(d, -788139))if(Ec(d,789399))break A;e=J[a+8>>2];d=bc-16|0;bc=d;J[d>>2]=13;B:{C:{D:{if(J[e+12>>2]!=4){xc(1,-1,804066,0);break D}Mc(e,1,d,0);b=am(d,b+1|0);E:{if(!b){xc(1,-1,804570,0);break E}uc(d);if(J[Mc(e,2,d,0)>>2]!=1){xc(1,-1,804992,0);gc[J[J[b>>2]+4>>2]](b);break E}a=J[d+8>>2];if(a>>>0>=256){xc(1,-1,805441,0);gc[J[J[b>>2]+4>>2]](b);break E}uc(d);c=rc(24);J[c+16>>2]=a;J[c+12>>2]=b;J[c>>2]=2206100;J[c+4>>2]=15;J[c+8>>2]=0;f=J[J[b>>2]+28>>2];J[695492]=0;f=$(f|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)== -1)break C;J[695492]=0;i=a+1|0;f=aa(3376,P(i,f)|0,1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break C;J[c+20>>2]=f;J[c+4>>2]=J[J[c+12>>2]+4>>2];g=0;Mc(e,3,d,0);f=gc[J[J[b>>2]+28>>2]](b)|0;F:{G:switch(J[d>>2]-3|0){case 5:b=J[d+8>>2];gc[J[J[b>>2]+20>>2]](b);if((f|0)>0)while(1){i=P(f,g);b=g-1|0;e=0;H:{if(g){while(1){h=J[d+8>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1){xc(1,-1,805872,0);J[c+16>>2]=b;a=b}H[(i+J[c+20>>2]|0)+e|0]=h;e=e+1|0;if((f|0)!=(e|0))continue;break}break H}while(1){h=J[d+8>>2];h=gc[J[J[h>> -2]+28>>2]](h)|0;if((h|0)!=-1){H[(i+J[c+20>>2]|0)+e|0]=h;e=e+1|0;if((f|0)!=(e|0))continue;break H}break}xc(1,-1,805872,0);J[c+16>>2]=b;break F}g=g+1|0;if((g|0)<=(a|0))continue;break}a=J[d+8>>2];gc[J[J[a>>2]+24>>2]](a);uc(d);break D;default:xc(1,-1,806726,0);break F;case 0:break G}e=J[d+8>>2];if(J[e>>2]<(P(f,i)|0)){xc(1,-1,806329,0);e=J[d+8>>2];b=J[e>>2]/(f|0)|0;a=b-1|0;J[c+16>>2]=a;if((b|0)<=0)break F}if((f|0)>0){o=f&-4;n=f&3;b=J[e+4>>2];p=f>>>0<4;while(1){g=P(f,h);e=0;i=0;if(!p)while(1){H[(g+J[c+ -20>>2]|0)+e|0]=K[b|0];H[(g+J[c+20>>2]|0)+(e|1)|0]=K[b+1|0];H[(g+J[c+20>>2]|0)+(e|2)|0]=K[b+2|0];H[(g+J[c+20>>2]|0)+(e|3)|0]=K[b+3|0];e=e+4|0;b=b+4|0;i=i+4|0;if((o|0)!=(i|0))continue;break}i=0;if(n)while(1){H[(g+J[c+20>>2]|0)+e|0]=K[b|0];e=e+1|0;b=b+1|0;i=i+1|0;if((n|0)!=(i|0))continue;break}e=(a|0)==(h|0);h=h+1|0;if(!e)continue;break}}uc(d);break D}gc[J[J[c>>2]+4>>2]](c)}uc(d);c=0}bc=d+16|0;break B}a=Z()|0;qc(c);ba(a|0);B()}break g}if(!Ec(d,789799)){c=J[a+8>>2];a=bc-32|0;bc=a;J[a+16>>2]=13;J[a>>2]= -13;I:{J:{K:{if(J[c+12>>2]!=4){b=0;xc(1,-1,808924,0);break K}L:{if(J[Mc(c,1,a+16|0,0)>>2]!=4){xc(1,-1,809380,0);break L}d=rc(8);J[695492]=0;e=aa(3182,d|0,J[a+24>>2])|0;f=J[695492];J[695492]=0;if((f|0)==1)break J;d=a+16|0;uc(d);Mc(c,2,d,0);M:{if(J[a+16>>2]!=8)break M;f=J[a+24>>2];if(J[Bc(gc[J[J[f>>2]+76>>2]](f)|0,802670,a,0)>>2]==5)break M;uc(d);d=J[a+12>>2];J[a+24>>2]=J[a+8>>2];J[a+28>>2]=d;d=J[a+4>>2];J[a+16>>2]=J[a>>2];J[a+20>>2]=d}b=am(a+16|0,b+1|0);N:{if(!b){xc(1,-1,826542,0);break N}d=a+16|0; -uc(d);Mc(c,3,d,0);c=Sh(d,1,gc[J[J[b>>2]+28>>2]](b)|0,0);if(c){uc(d);d=rc(28);J[695492]=0;b=pZ(d,e,b,c);c=J[695492];J[695492]=0;if((c|0)!=1)break K;break J}gc[J[J[b>>2]+4>>2]](b)}qc(Rc(e))}uc(a+16|0);b=0}bc=a+32|0;break I}a=Z()|0;qc(d);ba(a|0);B()}c=b;break g}if(!Ec(d,790806)){f=J[a+8>>2];d=0;c=bc-192|0;bc=c;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;O:{P:{Q:{if((J[f+12>>2]&-2)!=4){xc(1,-1,826840,0);break Q}R:{if(J[Mc(f,1,c+32|0,0)>>2]!=6){xc(1,-1,809759,0);break R}a=J[J[c+40>>2]+12>>2];S:{T:{if((a| -0)>=33){J[c+4>>2]=32;J[c>>2]=a;xc(1,-1,810016,c);a=32;break T}if((a|0)<=0)break S}while(1){e=c+16|0;if(J[Mc(J[c+40>>2],d,e,0)>>2]!=4){xc(1,-1,809759,0);uc(e);break R}e=rc(8);J[695492]=0;g=aa(3182,e|0,J[c+24>>2])|0;i=J[695492];J[695492]=0;if((i|0)==1)break P;J[(c- -64|0)+(d<<2)>>2]=g;e=1;uc(c+16|0);d=d+1|0;if((d|0)!=(a|0))continue;break}}d=c+32|0;uc(d);Mc(f,2,d,0);U:{if(J[c+32>>2]!=8)break U;g=J[c+40>>2];if(J[Bc(gc[J[J[g>>2]+76>>2]](g)|0,802670,c+16|0,0)>>2]==5)break U;uc(d);d=J[c+28>>2];J[c+40>>2]= -J[c+24>>2];J[c+44>>2]=d;d=J[c+20>>2];J[c+32>>2]=J[c+16>>2];J[c+36>>2]=d}b=am(c+32|0,b+1|0);V:{if(!b){xc(1,-1,810491,0);break V}d=c+32|0;uc(d);Mc(f,3,d,0);g=Sh(d,a,gc[J[J[b>>2]+28>>2]](b)|0,0);if(g){uc(d);W:{if(J[f+12>>2]==5){Mc(f,4,c+48|0,0);break W}J[c+48>>2]=5}e=rc(176);J[695492]=0;d=a;a=c+48|0;d=ja(3425,e|0,d|0,c- -64|0,b|0,g|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){uc(a);break Q}break P}gc[J[J[b>>2]+4>>2]](b)}if(!e)break R;d=0;while(1){b=J[(c- -64|0)+(d<<2)>>2];if(b)qc(Rc(b));d=d+1|0;if((d| -0)!=(a|0))continue;break}}uc(c+32|0);d=0}bc=c+192|0;c=d;break O}a=Z()|0;qc(e);ba(a|0);B()}break g}if(Ec(d,782623))break h;d=J[a+8>>2];a=bc-16|0;bc=a;J[a>>2]=13;X:{Y:switch(J[d+12>>2]-1|0){default:xc(1,-1,810792,0);break X;case 1:Mc(d,1,a,0);e=am(a,b+1|0);if(!e){xc(1,-1,811157,0);uc(a);break X}uc(a);break;case 0:break Y}c=rc(16);J[c+12>>2]=e;J[c>>2]=2206256;J[c+4>>2]=15;J[c+8>>2]=0}bc=a+16|0;break g}xc(1,-1,791568,0)}uc(j+16|0);break a}xc(1,-1,792025,0)}bc=j+32|0;return c|0}function QH(a){var b=0, -c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=bc-192|0;bc=h;c=0;a:{if(J[a+40>>2])break a;J[a+76>>2]=0;e=J[a+60>>2];b:{if(J[a+44>>2]){d=J[a+64>>2];b=J[e>>2];f=J[a+20>>2];if((b|0)<(f|0))while(1){J[d+(c<<2)>>2]=b;c=c+1|0;b=J[e+(c<<2)>>2];f=J[a+20>>2];if((b|0)<(f|0))continue;break}c=d+(c<<2)|0;J[c>>2]=f;b=J[a+20>>2];J[c+8>>2]=b;J[c+4>>2]=b;J[e>>2]=0;J[a+72>>2]=0;if(J[e>>2]>=J[a+20>>2])break b;c=0;while(1){f=bc-16|0;bc=f;c:{d:{if(!J[a+28>>2]){d=J[a+56>>2];b=1;while(1){e:{f:{if((b|0)<=(d|0)){e=J[a+52>>2];break f}while(1){d= -J[a+4>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1){d=J[a+56>>2];if(!d){e=-1;break d}g=J[a+52>>2]<>2]+8|0;J[a+56>>2]=d;e=e+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)>(d|0))continue;break}}g=e>>>d-b|0}e=-1;g=-1>>>32-b&g;if((g&65535)==65535)break d;e=g<<16>>16<<7-b;if(I[(e<<2)+2297632>>1]==(b|0)){b=d-b|0;J[a+56>>2]=(b|0)>0?b:0;b=L[(e<<2)+2297634>>1];break c}b=b+1|0;if((b|0)!=8)continue;break}break d}b=J[a+56>>2];g:{h:{if((b|0)>=7){d=J[a+52>>2];break h}while(1){b=J[a+4>>2];d=gc[J[J[b>> -2]+28>>2]](b)|0;if((d|0)==-1){b=J[a+56>>2];if(!b){e=-1;break d}e=J[a+52>>2]<<7-b;break g}e=J[a+56>>2];b=e+8|0;J[a+56>>2]=b;d=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=d;if((e|0)<-1)continue;break}}e=d>>>b-7|0}e=e&127;d=e<<2;g=I[d+2297632>>1];if((g|0)<=0)break d;b=b-(g&65535)|0;J[a+56>>2]=(b|0)>0?b:0;b=L[d+2297634>>1];break c}b=gc[J[J[a>>2]+52>>2]](a)|0;J[f>>2]=e;xc(1,b,811362,f);J[a+80>>2]=J[a+80>>2]+1;b=65535}bc=f+16|0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{b=b<<16>>16;switch(b+1|0){case 0:break k;case 5:break l; -case 7:break m;case 9:break n;case 3:break o;case 4:break p;case 6:break q;case 8:break r;case 2:break s;case 1:break t;default:break j}}g=c+2|0;e=c+1<<2;b=J[e+J[a+64>>2]>>2];f=J[a+60>>2];d=J[a+72>>2];if((b|0)>J[f+(d<<2)>>2]){if(J[a+20>>2]<(b|0)){d=gc[J[J[a>>2]+52>>2]](a)|0;J[h+32>>2]=b;xc(1,d,825596,h+32|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+72>>2];b=J[a+20>>2]}if((d&1)!=(i|0)){d=d+1|0;J[a+72>>2]=d}f=J[a+60>>2];J[f+(d<<2)>>2]=b;b=J[e+J[a+64>>2]>>2]}c=(b|0)>2]?g:c;break i}b=0;d=0; -e=0;u:{if(i){while(1){e=PH(a);d=e+d|0;if((e|0)>63)continue;break}while(1){e=OH(a);b=e+b|0;if((e|0)>63)continue;break}break u}while(1){d=OH(a);e=d+e|0;if((d|0)>63)continue;break}while(1){d=PH(a);b=d+b|0;if((d|0)>63)continue;break}d=e}f=J[a+60>>2];g=J[a+72>>2];e=J[f+(g<<2)>>2];if((d|0)>0){d=d+e|0;if((d|0)>J[a+20>>2]){e=gc[J[J[a>>2]+52>>2]](a)|0;J[h+64>>2]=d;xc(1,e,825596,h- -64|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;g=J[a+72>>2];d=J[a+20>>2]}if((g&1)!=(i|0)){g=g+1|0;J[a+72>>2]=g}f=J[a+60>>2];J[f+(g<< -2)>>2]=d;g=J[a+72>>2];e=J[(g<<2)+f>>2]}d=J[a+20>>2];if(!((b|0)<=0|(e|0)>=(d|0))){b=b+e|0;if((d|0)<(b|0)){d=gc[J[J[a>>2]+52>>2]](a)|0;J[h+48>>2]=b;xc(1,d,825596,h+48|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;g=J[a+72>>2];b=J[a+20>>2]}if((g&1^i)!=1){g=g+1|0;J[a+72>>2]=g}f=J[a+60>>2];J[f+(g<<2)>>2]=b;e=J[(J[a+72>>2]<<2)+f>>2];d=J[a+20>>2]}g=J[a+64>>2];while(1){b=c;j=J[g+(b<<2)>>2];if((j|0)>(e|0))break i;c=b+2|0;if((d|0)>(j|0))continue;break}c=b;break i}f=J[a+60>>2];b=J[a+72>>2];d=J[f+(b<<2)>>2];e=J[J[a+ -64>>2]+(c<<2)>>2]+3|0;if((d|0)<(e|0)){if(J[a+20>>2]<(e|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[h+80>>2]=e;xc(1,b,825596,h+80|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;e=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=e;d=J[(J[a+72>>2]<<2)+f>>2]}i=i^1;if(J[a+20>>2]<=(d|0))break i;b=c+1|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if(J[e+(c<<2)>>2]<=(d|0))continue;break}break i}f=J[a+60>>2];b=J[a+72>>2];d=J[f+(b<<2)>>2];e=J[J[a+64>>2]+(c<<2)>>2]+2|0;if((d|0)<(e|0)){if(J[a+20>> -2]<(e|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[h+96>>2]=e;xc(1,b,825596,h+96|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;e=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=e;d=J[(J[a+72>>2]<<2)+f>>2]}i=i^1;if(J[a+20>>2]<=(d|0))break i;b=c+1|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if(J[e+(c<<2)>>2]<=(d|0))continue;break}break i}f=J[a+60>>2];b=J[a+72>>2];d=J[f+(b<<2)>>2];e=J[J[a+64>>2]+(c<<2)>>2];if((d|0)<=(e|0)){d=e+1|0;if((e|0)>=J[a+20>>2]){b=gc[J[J[a>>2]+52>>2]](a)|0;J[h+ -112>>2]=d;xc(1,b,825596,h+112|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=d;d=J[(J[a+72>>2]<<2)+f>>2]}i=i^1;if(J[a+20>>2]<=(d|0))break i;b=c+1|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if(J[e+(c<<2)>>2]<=(d|0))continue;break}break i}f=J[a+60>>2];b=J[a+72>>2];d=J[f+(b<<2)>>2];e=J[J[a+64>>2]+(c<<2)>>2];if((d|0)<(e|0)){if(J[a+20>>2]<(e|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[h+128>>2]=e;xc(1,b,825596,h+128|0);J[a+76>>2]=1;J[a+ -80>>2]=J[a+80>>2]+1;e=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=e;d=J[(J[a+72>>2]<<2)+f>>2]}i=i^1;if(J[a+20>>2]<=(d|0))break i;b=c+1|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if(J[e+(c<<2)>>2]<=(d|0))continue;break}break i}e=J[J[a+64>>2]+(c<<2)>>2];d=e-3|0;f=J[a+60>>2];b=J[a+72>>2];g=J[f+(b<<2)>>2];v:{if((d|0)>(g|0)){if(J[a+20>>2]<(d|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[h+144>>2]=d;xc(1,b,825596,h+144|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+20>>2];b=J[a+ -72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=d;break v}if((d|0)>=(g|0))break v;if((e|0)<=2){d=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,825762,0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;f=J[a+60>>2];b=J[a+72>>2]}w:{if((b|0)<=0)break w;g=f-4|0;while(1){if(J[g+(b<<2)>>2]<(d|0))break w;e=b-1|0;J[a+72>>2]=e;j=(b|0)>1;b=e;if(j)continue;break}b=0}J[(b<<2)+f>>2]=d}i=i^1;d=J[(J[a+72>>2]<<2)+f>>2];if((d|0)>=J[a+20>>2])break i;b=((c|0)<=0?1:-1)+c|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if((d|0)>= -J[e+(c<<2)>>2])continue;break}break i}e=J[J[a+64>>2]+(c<<2)>>2];d=e-2|0;f=J[a+60>>2];b=J[a+72>>2];g=J[f+(b<<2)>>2];x:{if((d|0)>(g|0)){if(J[a+20>>2]<(d|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[h+160>>2]=d;xc(1,b,825596,h+160|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=d;break x}if((d|0)>=(g|0))break x;if((e|0)<=1){d=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,825762,0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;f=J[a+60>>2];b=J[a+72>> -2]}y:{if((b|0)<=0)break y;g=f-4|0;while(1){if(J[g+(b<<2)>>2]<(d|0))break y;e=b-1|0;J[a+72>>2]=e;j=(b|0)>1;b=e;if(j)continue;break}b=0}J[(b<<2)+f>>2]=d}i=i^1;d=J[(J[a+72>>2]<<2)+f>>2];if((d|0)>=J[a+20>>2])break i;b=((c|0)<=0?1:-1)+c|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if((d|0)>=J[e+(c<<2)>>2])continue;break}break i}e=J[J[a+64>>2]+(c<<2)>>2];d=e-1|0;f=J[a+60>>2];b=J[a+72>>2];g=J[f+(b<<2)>>2];z:{if((d|0)>(g|0)){if(J[a+20>>2]<(d|0)){b=gc[J[J[a>>2]+52>>2]](a)|0;J[h+176>>2]=d;xc(1,b,825596,h+176|0);J[a+ -76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=d;break z}if((e|0)>(g|0))break z;if((e|0)<=0){d=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,825762,0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;f=J[a+60>>2];b=J[a+72>>2]}A:{if((b|0)<=0)break A;g=f-4|0;while(1){if(J[g+(b<<2)>>2]<(d|0))break A;e=b-1|0;J[a+72>>2]=e;j=(b|0)>1;b=e;if(j)continue;break}b=0}J[(b<<2)+f>>2]=d}i=i^1;d=J[(J[a+72>>2]<<2)+f>>2];if((d|0)>=J[a+20>>2])break i;b=((c|0)<=0?1: --1)+c|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if((d|0)>=J[e+(c<<2)>>2])continue;break}break i}d=J[a+20>>2];f=J[a+60>>2];b=J[a+72>>2];if((d|0)>J[f+(b<<2)>>2]){if(b&1){b=b+1|0;J[a+72>>2]=b}J[(b<<2)+f>>2]=d}J[a+76>>2]=1;break i}d=gc[J[J[a>>2]+52>>2]](a)|0;J[h+16>>2]=b;xc(1,d,810314,h+16|0);d=J[a+20>>2];f=J[a+60>>2];b=J[a+72>>2];if((d|0)>J[f+(b<<2)>>2]){if(b&1){b=b+1|0;J[a+72>>2]=b}J[(b<<2)+f>>2]=d}J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1}if(J[(J[a+72>>2]<<2)+f>>2]>2])continue;break}break b}J[e>>2]=0; -J[a+72>>2]=0;if(J[e>>2]>=J[a+20>>2])break b;while(1){c=0;B:{if(d)while(1){b=PH(a);c=b+c|0;if((b|0)>63)continue;break B}while(1){b=OH(a);c=b+c|0;if((b|0)>63)continue;break}}e=J[a+72>>2];b=J[J[a+60>>2]+(e<<2)>>2];if((c|0)>0){c=b+c|0;if((c|0)>J[a+20>>2]){b=gc[J[J[a>>2]+52>>2]](a)|0;J[h>>2]=c;xc(1,b,825596,h);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;e=J[a+72>>2];c=J[a+20>>2]}if((e&1)!=(d|0)){e=e+1|0;J[a+72>>2]=e}b=J[a+60>>2];J[b+(e<<2)>>2]=c;b=J[b+(J[a+72>>2]<<2)>>2]}d=d^1;if(J[a+20>>2]>(b|0))continue;break}}C:{D:{if(!(J[a+ -28>>2]|J[a+48>>2]!=(J[a+24>>2]-1|0))){J[a+40>>2]=1;break D}if(!(J[a+16>>2]?J[a+12>>2]:1))break D;E:{F:{G:{c=J[a+56>>2];H:{I:{if((c|0)>=12){b=J[a+52>>2];break I}while(1){c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break G;b=J[a+52>>2]<<12-c;break H}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}b=b&4095;if(J[a+12>>2])break F;if(b)break E;while(1){b=(c|0)<=1?1:c;c=b-1|0;J[a+56>>2]=c;J:{K:{if(b>>>0>=13){b=J[a+ -52>>2];break K}while(1){c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break D;b=J[a+52>>2]<<12-c;break J}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}b=b&4095;if(!b)continue;break}break E}if(!J[a+12>>2])break D;c=0;b=-1}L:while(1){M:switch(b+1|0){case 0:case 2:break E;default:break M}b=(c|0)<=1?1:c;c=b-1|0;J[a+56>>2]=c;N:{if(b>>>0>=13){b=J[a+52>>2];break N}while(1){c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b| -0)==-1){b=-1;c=0;d=J[a+56>>2];if(!d)continue L;b=J[a+52>>2]<<12-d&4095;c=d;continue L}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12&4095;continue}}e=1;if((b|0)!=1)break D;c=((c|0)<=12?12:c)-12|0;J[a+56>>2]=c;break C}c=J[a+56>>2];if(J[a+16>>2]){c=c&-8;J[a+56>>2]=c}e=0}O:{P:{if((c|0)>0)break P;while(1){c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(c)break P;J[a+40>>2]=1;c=0;break O}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c; -J[a+52>>2]=b+(J[a+52>>2]<<8);if((d|0)<-7)continue;break}}if(J[a+40>>2]|J[a+8>>2]<=0)break O;Q:{R:{if((c|0)>0){b=J[a+52>>2];break R}while(1){c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c){c=0;b=65535;break Q}b=J[a+52>>2]<<1-c&1;break Q}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<-7)continue;break}}b=b>>>c-1&1}J[a+44>>2]=!b;c=((c|0)<=1?1:c)-1|0;J[a+56>>2]=c}S:{T:{U:{V:{W:{X:{Y:{if(!J[a+16>>2]|(J[a+12>>2]|!J[a+28>>2]))break Y;Z:{_:{if((c|0)>= -24){b=J[a+52>>2];break _}while(1){c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break X;b=J[a+52>>2]<<24-c;break Z}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<16)continue;break}}b=b>>>c-24|0}if((b&65535)!=4097)break Y;c=((c|0)<=12?12:c)-12|0;J[a+56>>2]=c;e=1}if(!e|!J[a+28>>2])break W;if((c|0)<12)break V;b=J[a+52>>2];break U}c=0;if(J[a+28>>2]!=0&e)break V}if(!J[a+76>>2]|!J[a+12>>2])break S;$:{while(1){aa:{ba:{if((c|0)>=13){b=J[a+52>>2];break ba}while(1){c= -J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break $;b=J[a+52>>2]<<13-c;break aa}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<5)continue;break}}b=b>>>c-13|0}if((b&8190)!=2){c=((c|0)<=1?1:c)-1|0;J[a+56>>2]=c;continue}break}J[a+56>>2]=((c|0)<=12?12:c)-12;if(J[a+8>>2]<=0)break S;J[a+44>>2]=(b^-1)&1;J[a+56>>2]=((c|0)<=13?13:c)-13;break S}J[a+40>>2]=1;c=0;break a}while(1){c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break S; -b=J[a+52>>2]<<12-c;break T}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}if((b&4095)!=1)break S;c=(c|0)<=12?12:c;b=c-12|0;J[a+56>>2]=b;ca:{if(J[a+8>>2]<=0)break ca;da:{if(b){c=c-13|0;J[a+56>>2]=c;break da}while(1){ea:{c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;c=J[a+56>>2];if((b|0)==-1){d=c;break ea}d=c+8|0;J[a+56>>2]=d;J[a+52>>2]=b+(J[a+52>>2]<<8);if((c|0)<-7)continue}break}c=((d|0)<=1?1:d)-1|0;J[a+56>>2]=c;if(J[a+8>>2]<=0)break ca}e=0; -while(1){fa:{ga:{ha:{ia:{if(c>>>0>=12){b=J[a+52>>2];break ia}while(1){c=J[a+4>>2];b=gc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break ga;b=J[a+52>>2]<<12-c;break ha}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}if((b&4095)==1)break fa}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,810676,0);J[a+80>>2]=J[a+80>>2]+1;c=J[a+56>>2]}c=((c|0)<=12?12:c)-12|0;J[a+56>>2]=c;if(J[a+8>>2]>0){ja:{if(c)break ja;while(1){c=J[a+4>>2];d=gc[J[J[c>>2]+28>> -2]](c)|0;b=J[a+56>>2];if((d|0)==-1){c=b;break ja}c=b+8|0;J[a+56>>2]=c;J[a+52>>2]=d+(J[a+52>>2]<<8);if((b|0)<-7)continue;break}}c=((c|0)<=1?1:c)-1|0;J[a+56>>2]=c}e=e+1|0;if((e|0)!=4)continue;break}}J[a+40>>2]=1}if(J[a+80>>2]>=1001){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,811082,0);J[a+40>>2]=1;c=0;break a}J[a+68>>2]=0;c=J[J[a+60>>2]>>2];J[a+48>>2]=J[a+48>>2]+1;J[a+72>>2]=(c|0)<=0;c=1}bc=h+192|0;return c}function g$(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0;i=bc-160|0;bc=i;e=J[a+36>>2];m=J[e+16>>2];f=0;a:{if(K[m|0]!=60)break a;C=J[a+328>>2];s=J[a+304>>2];o=J[a+300>>2];J[e+16>>2]=m+1;J[e+32>>2]=J[e+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(!K[m+1|0]){Cd(e);e=J[a+36>>2]}y=a+320|0;b:{while(1){c:{if(J[a+292>>2])break c;f=J[e+16>>2];if((f-J[e+12>>2]|0)<501|(J[e+20>>2]-f|0)>499)break c;Pg(a);e=J[a+36>>2]}D=J[e+32>>2];r=J[e+28>>2];f=J[e+16>>2];u=J[e+12>>2];J[a+328>>2]=C;v=J[a+40>>2];m=iJ(a,i+156|0);d:{if(!m){fe(a,68,34419);break d}e= -J[a+36>>2];t=f-u|0;J[d>>2]=J[e+16>>2]-(t+J[e+12>>2]|0);Ud(a);e=J[a+36>>2];if(!(J[a+292>>2]|(J[e+20>>2]-J[e+16>>2]|0)>249)){Hd(a);e=J[a+36>>2]}e:{if((u|0)!=J[e+12>>2])break e;A=0;n=0;p=0;w=0;if((v|0)!=J[a+40>>2])break e;while(1){f:{g:{B=J[e+16>>2];h=K[B|0];f=h-47|0;if(f)if((f|0)==15)break b;else break g;if(K[B+1|0]!=62)break f;break b}if((h|0)==13|(h-9&255)>>>0<2)break f;if(h>>>0<32)break b}if(J[a+172>>2]==-1)break b;z=J[e+36>>2];J[i+148>>2]=-1;J[i+144>>2]=0;f=J[i+156>>2];if(!(J[a+292>>2]|(J[e+20>> -2]-B|0)>249))Hd(a);h:{i:{j:{k:{l:{m:{l=iJ(a,i+152|0);if(!l){if(J[a+172>>2]==-1?J[a+212>>2]:0)break i;J[a+84>>2]=68;J[i+80>>2]=34608;f=0;Cc(0,0,0,a,0,1,68,3,0,0,0,0,4607,i+80|0);J[a+12>>2]=0;if(!J[a+288>>2])break m;l=0;break h}j=J[a+352>>2];if(j){k=J[i+152>>2];h=l;e=f;q=e;n:{o:{if(!j|!m)break o;g=P(K[(e?e:m)|0],30);if(e){f=K[e|0];if(f)while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[e+1|0];e=e+1|0;if(f)continue;break}g=((g<<5)+(g>>>3|0)|0)+58^g}f=K[m|0];if(f){e=m;while(1){g=((f<<24>>24)+(g>>>3|0)| -0)+(g<<5)^g;f=K[e+1|0];e=e+1|0;if(f)continue;break}}g=(g<<5)+(g>>>3|0)^g;if(k){f=K[k|0];if(f){e=k;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[e+1|0];e=e+1|0;if(f)continue;break}}g=((g<<5)+(g>>>3|0)|0)+58^g}p:{if(!h)break p;f=K[h|0];if(!f)break p;e=h;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[e+1|0];e=e+1|0;if(f)continue;break}}f=J[j>>2];e=(((g<<5)+(g>>>3|0)^g)>>>0)%M[j+4>>2]|0;if(!J[(f+P(e,24)|0)+20>>2]|!f)break o;x=f+P(e,24)|0;while(1){g=J[x+4>>2];q:{r:{if(!q){if((g|0)==(m|0))break r; -f=m;if(!g)break q;while(1){e=K[f|0];if((e|0)!=K[g|0])break q;g=g+1|0;f=f+1|0;if(e)continue;break}break r}if(!g)break q;f=K[q|0];e=q;while(1){j=g;f=f&255;if((f|0)!=K[g|0])break q;g=g+1|0;if(f){e=e+1|0;f=K[e|0];if(f)continue}break}if(K[g|0]!=58)break q;g=j+2|0;f=m;while(1){e=K[f|0];if((e|0)!=K[g|0])break q;g=g+1|0;f=f+1|0;if(e)continue;break}}g=J[x+8>>2];s:{if(!k){if((g|0)==(h|0))break s;if(!h)break q;f=h;if(!g)break q;while(1){e=K[f|0];if((e|0)!=K[g|0])break q;g=g+1|0;f=f+1|0;if(e)continue;break}break s}if(!h| -!g)break q;f=K[k|0];e=k;while(1){j=g;f=f&255;if((f|0)!=K[g|0])break q;g=g+1|0;if(f){e=e+1|0;f=K[e|0];if(f)continue}break}if(K[g|0]!=58)break q;g=j+2|0;f=h;while(1){e=K[f|0];if((e|0)!=K[g|0])break q;g=g+1|0;f=f+1|0;if(e)continue;break}}if(J[x+12>>2])break q;e=J[x+16>>2];break n}x=J[x>>2];if(x)continue;break}}e=0}e=(e|0)!=0}else e=0;Ud(a);if(K[J[J[a+36>>2]+16>>2]]==61){Qd(a);Ud(a);f=oJ(a,i+148|0,i+144|0,e);t:{if(!e|!J[i+144>>2])break t;if(!f){f=0;break t}j=J[i+148>>2];if((j|0)<=0)break t;k=0;e=f;g= -K[e|0];if((g|0)==32)while(1){k=k+1|0;g=K[e+1|0];e=e+1|0;if((g|0)==32)continue;break}u:{v:{while(1){h=g&255;if((h|0)!=32){if(!h)break v;g=K[e+1|0];e=e+1|0;continue}g=K[e+1|0];e=e+1|0;if((g|32)!=32)continue;break}h=il(f+k|0,(j-k|0)+1|0);k=h;if(!h){ke(a,0);break t}while(1){e=k;k=e+1|0;g=K[e|0];if((g|0)==32)continue;break}k=h;while(1){j=g&255;w:{if((j|0)!=32){if(!j)break u;e=e+1|0;j=g;break w}while(1){j=32;q=g&255;if((q|0)==32){g=K[e+1|0];e=e+1|0;continue}break}if(!q)continue}H[k|0]=j;k=k+1|0;g=K[e|0]; -continue}}if(!k)break t;e=j-k|0;J[i+148>>2]=e;Zc(f,f+k|0,e+1|0);break t}H[k|0]=0;E=i,F=Qc(h),J[E+148>>2]=F;if((f|0)==(h|0))break t;gc[J[659451]](f);f=h}J[a+172>>2]=7;if(J[i+152>>2]!=J[a+312>>2])break h;e=0;if(!J[a+268>>2])break j;if(!Eg(l,13011))break j;e=il(f,J[i+148>>2]);if(A$(e)|(J[a+172>>2]==-1?J[a+212>>2]:0))break j;h=J[a>>2];if(h)break l;g=0;h=0;break k}if(J[a+172>>2]==-1?J[a+212>>2]:0)break i;J[a+84>>2]=41;J[i+128>>2]=l;f=0;Cc(0,0,0,a,0,1,41,3,l,0,0,0,32505,i+128|0);J[a+12>>2]=0;if(!J[a+288>> -2])break m;l=0;break h}J[a+212>>2]=1;l=0;break h}g=J[h+84>>2];h=J[h+108>>2]==-554844497?J[h+124>>2]:0}k=J[a+4>>2];J[i+116>>2]=0;J[i+112>>2]=e;Cc(h,g,k,a,0,1,98,1,e,0,0,0,32828,i+112|0)}x:{if(!Eg(l,14964))break x;e=il(f,J[i+148>>2]);if(Eg(e,2769)){J[J[a+232>>2]>>2]=0;break x}if(Eg(e,13252)){J[J[a+232>>2]>>2]=1;break x}if(J[a+172>>2]==-1?J[a+212>>2]:0)break x;h=J[a>>2];y:{if(!h){j=0;h=0;break y}j=J[h+84>>2];h=J[h+108>>2]==-554844497?J[h+124>>2]:0}g=J[a+4>>2];J[i+100>>2]=0;J[i+96>>2]=e;Cc(h,j,g,a,0, -1,102,1,e,0,0,0,35396,i+96|0)}if(!e)break h;gc[J[659451]](e);break h}f=0;l=0}z:{if(!((u|0)==J[J[a+36>>2]+12>>2]&(v|0)==J[a+40>>2])){if(!f|!J[i+144>>2])break z;gc[J[659451]](f);break z}A:{B:{C:{D:{E:{if(!(!l|!f)){g=J[i+148>>2];if((g|0)<0){g=xk(f);J[i+148>>2]=g}h=J[i+152>>2];e=J[a+316>>2];if(!(h|(e|0)!=(l|0))){j=le(J[a+296>>2],f,g);if(!j){ke(a,13678);if(!J[i+144>>2])break d;gc[J[659451]](f);break d}F:{G:{if(!K[j|0])break G;e=Et(j);H:{if(!e){if(J[a+172>>2]==-1?J[a+212>>2]:0)break H;J[a+84>>2]=99;J[i+ -68>>2]=0;J[i+72>>2]=0;J[i+64>>2]=j;Cc(0,0,0,a,0,3,99,2,j,0,0,0,36877,i- -64|0);J[a+356>>2]=0;break H}if(!J[e>>2])d$(a,33980,j,0);Xj(e)}if((j|0)==J[y>>2]){if(J[a+312>>2]==(l|0))break F;an(a,200,34826,0,0);break F}if(J[i+148>>2]!=29)break G;if(!Eg(j,28577))break G;an(a,200,33544,0,0);break F}I:{if((n|0)<=0)break I;k=J[a+328>>2];g=J[a+336>>2];e=1;while(1){if(J[g+(k-(e<<1)<<2)>>2]){h=(e|0)==(n|0);e=e+1|0;if(!h)continue;break I}break}jJ(a,0,l);break F}n=((lw(a,0,j)|0)>0)+n|0}if(J[i+144>>2])gc[J[659451]](f); -J:{K:{L:{e=J[J[a+36>>2]+16>>2];switch(K[e|0]-9|0){case 0:case 1:case 4:case 23:break J;case 38:break L;case 53:break b;default:break K}}if(K[e+1|0]==62)break b}fe(a,65,32926);break b}Ud(a);e=J[a+36>>2];if((u|0)!=J[e+12>>2])break z;if((v|0)==J[a+40>>2])continue;break z}if((e|0)==(h|0)){j=le(J[a+296>>2],f,g);e=J[a+320>>2];M:{if(J[a+312>>2]==(l|0)){if((e|0)==(j|0))break M;an(a,200,36823,0,0);break M}if((e|0)==(j|0)){an(a,200,30590,0,0);break M}if(J[a+316>>2]==(l|0)){an(a,200,33497,0,0);break M}N:{if(J[i+ -148>>2]!=29)break N;if(!Eg(j,28577))break N;an(a,200,33544,0,0);break M}if(!(K[j|0]?j:0)){an(a,200,35097,l,0);break M}e=Et(j);O:{if(!e){an(a,99,36909,l,j);break O}if(!(J[e>>2]|!J[a+268>>2]))d$(a,34011,l,j);Xj(e)}P:{if((n|0)<=0)break P;k=J[a+328>>2];g=J[a+336>>2];e=1;while(1){if(J[g+(k-(e<<1)<<2)>>2]!=(l|0)){h=(e|0)==(n|0);e=e+1|0;if(!h)continue;break P}break}jJ(a,J[i+152>>2],l);break M}n=((lw(a,l,j)|0)>0)+n|0}if(J[i+144>>2])gc[J[659451]](f);Q:{R:{S:{e=J[J[a+36>>2]+16>>2];switch(K[e|0]-9|0){case 0:case 1:case 4:case 23:break Q; -case 38:break S;case 53:break b;default:break R}}if(K[e+1|0]==62)break b}fe(a,65,32926);break b}Ud(a);e=J[a+36>>2];if((u|0)!=J[e+12>>2])break z;if((v|0)==J[a+40>>2])continue;break z}h=p+5|0;if((h|0)<=(s|0)?o:0)break B;g=J[a+300>>2];if(!g){e=gc[J[659447]](220)|0;if(!e)break E;J[a+300>>2]=e;g=gc[J[659447]](44)|0;if(!g)break E;e=55;J[a+304>>2]=55;J[a+340>>2]=g;break C}e=J[a+304>>2];k=p+10|0;if((e|0)<(k|0)){e=gc[J[659452]](g,k<<3)|0;if(!e)break E;J[a+300>>2]=e;e=k<<1;g=gc[J[659452]](J[a+340>>2],(e|0)/ -5<<2)|0;if(!g)break E;J[a+304>>2]=e;J[a+340>>2]=g}if((e|0)>=0)break C;break D}e=1;if(!f)break A;e=0;if(K[J[i+148>>2]+f|0])break A;gc[J[659451]](f);e=0;break A}ke(a,0)}e=0;if(K[J[i+148>>2]+f|0])break A;gc[J[659451]](f);e=0;break A}o=J[a+300>>2];s=e}g=J[i+144>>2];J[J[a+340>>2]+(w<<2)>>2]=g;k=(p<<2)+o|0;J[k>>2]=l;e=J[i+152>>2];J[k+12>>2]=f;J[k+8>>2]=0;J[k+4>>2]=e;J[k+16>>2]=J[i+148>>2]+f;A=g?1:A;w=w+1|0;p=h;e=0}T:{if(J[a+292>>2])break T;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)>249)break T;Hd(a)}if(J[a+ -172>>2]==-1)break b;h=J[a+36>>2];if((u|0)!=J[h+12>>2]|(v|0)!=J[a+40>>2])break z;f=e;U:{V:{W:{e=J[h+16>>2];switch(K[e|0]-9|0){case 0:case 1:case 4:case 23:break U;case 38:break W;case 53:break b;default:break V}}if(K[e+1|0]==62)break b}fe(a,65,32926);break b}Ud(a);e=J[a+36>>2];if(!(J[e+36>>2]!=(z|0)|!(f&(!l&J[e+16>>2]==(B|0))))){Pe(a,1,31850);break b}if(!(J[a+292>>2]|(J[e+20>>2]-J[e+16>>2]|0)>249)){Hd(a);e=J[a+36>>2]}if((u|0)!=J[e+12>>2])break z;if((v|0)==J[a+40>>2])continue}break}if(!A|(w|0)<=0)break e; -e=0;g=3;while(1){X:{if(!J[J[a+340>>2]+(e<<2)>>2])break X;f=J[(g<<2)+o>>2];if(!f)break X;gc[J[659451]](f)}g=g+5|0;e=e+1|0;if((w|0)!=(e|0))continue;break}}if((v|0)!=J[a+40>>2]){fe(a,90,30459);break d}e=J[a+36>>2];J[e+32>>2]=D;J[e+28>>2]=r;J[e+16>>2]=J[e+12>>2]+t;if(J[a+12>>2]==1)continue}break}f=0;break a}z=0;Y:{Z:{_:{d=J[a+348>>2];$:{if(!d)break $;q=bn(d,m,J[i+156>>2]);if(!q|J[q>>2]<=0)break $;l=0;while(1){t=q+P(l,20)|0;r=J[t+8>>2];f=J[t+12>>2];J[i+152>>2]=f;d=J[a+316>>2];aa:{if(!(f|(d|0)!=(r|0))){if((n| -0)>0){h=J[a+328>>2];f=J[a+336>>2];e=1;while(1){if(!J[f+(h-(e<<1)<<2)>>2])break aa;d=(e|0)==(n|0);e=e+1|0;if(!d)continue;break}}f=J[y>>2];ba:{if(!J[a+312>>2])break ba;e=J[a+328>>2];while(1){d=e;f=0;if((e|0)<2)break ba;f=J[a+336>>2];e=e-2|0;if(J[f+(e<<2)>>2])continue;break}d=J[(f+(d<<2)|0)-4>>2];f=K[d|0]?d:0}d=J[t+16>>2];if((f|0)==(d|0))break aa;n=((lw(a,0,d)|0)>0)+n|0;break aa}ca:{da:{ea:{if((d|0)!=(f|0)){e=0;if((p|0)>0)while(1){d=(e<<2)+o|0;if((r|0)==J[d>>2]&(f|0)==J[d+4>>2])break aa;e=e+5|0;if((p| -0)>(e|0))continue;break}h=p+5|0;if((h|0)<=(s|0)?o:0)break ca;d=J[a+300>>2];if(d)break ea;d=gc[J[659447]](220)|0;if(!d)break _;J[a+300>>2]=d;d=gc[J[659447]](44)|0;if(!d)break _;s=55;J[a+304>>2]=55;J[a+340>>2]=d;break da}if((n|0)>0){h=J[a+328>>2];f=J[a+336>>2];e=1;while(1){if((r|0)==J[f+(h-(e<<1)<<2)>>2])break aa;d=(e|0)==(n|0);e=e+1|0;if(!d)continue;break}}f=J[y>>2];fa:{if((r|0)==J[a+312>>2])break fa;e=J[a+328>>2];while(1){d=e;f=0;if((e|0)<2)break fa;f=J[a+336>>2];e=e-2|0;if((r|0)!=J[f+(e<<2)>>2])continue; -break}d=J[(f+(d<<2)|0)-4>>2];f=d;if(r)break fa;f=K[d|0]?d:0}if((f|0)==J[q+16>>2])break aa;n=((lw(a,r,J[t+16>>2])|0)>0)+n|0;break aa}s=J[a+304>>2];e=p+10|0;if((s|0)<(e|0)){d=gc[J[659452]](d,e<<3)|0;if(!d)break _;J[a+300>>2]=d;s=e<<1;d=gc[J[659452]](J[a+340>>2],(s|0)/5<<2)|0;if(!d)break _;J[a+304>>2]=s;J[a+340>>2]=d}f=0;if((s|0)<0)break a}o=J[a+300>>2]}j=(p<<2)+o|0;J[j>>2]=r;g=J[i+152>>2];J[j+4>>2]=g;k=0;ga:{if(!g)break ga;if((g|0)!=J[a+312>>2]){e=J[a+328>>2];while(1){d=e;if((e|0)<2)break ga;f=J[a+ -336>>2];e=e-2|0;if((g|0)!=J[f+(e<<2)>>2])continue;break}d=(f+(d<<2)|0)-4|0}else d=y;k=J[d>>2]}J[(p+2<<2)+o>>2]=k;J[j+12>>2]=J[t+16>>2];J[j+16>>2]=J[t+20>>2];if(!(!J[t+24>>2]|J[a+28>>2]!=1))fm(a,538,31533,r,m);z=z+1|0;p=h}l=l+1|0;if((l|0)>2])continue;break}}if((p|0)>0){g=0;while(1){j=0;k=(g<<2)+o|0;h=J[k+4>>2];if(h){ha:{ia:{if((h|0)!=J[a+312>>2]){e=J[a+328>>2];while(1){d=e;if((e|0)<2)break ia;f=J[a+336>>2];e=e-2|0;if((h|0)!=J[f+(e<<2)>>2])continue;break}d=(f+(d<<2)|0)-4|0}else d=y;j=J[d>>2];if(j)break ha}d= -J[k>>2];if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){j=0;break ha}J[a+84>>2]=201;J[i+56>>2]=m;J[i+52>>2]=d;J[i+48>>2]=h;j=0;Cc(0,0,0,a,0,3,201,2,h,d,m,0,35856,i+48|0);J[a+356>>2]=0}J[k+8>>2]=j}ja:{if(!g)break ja;f=J[k>>2];e=0;ka:{if(!j)while(1){d=(e<<2)+o|0;if((f|0)==J[d>>2]){l=J[k+4>>2];if((l|0)==J[d+4>>2])break ka}e=e+5|0;if(g>>>0>e>>>0)continue;break ja}while(1){la:{d=(e<<2)+o|0;if((f|0)!=J[d>>2])break la;l=J[k+4>>2];if((l|0)==J[d+4>>2])break ka;if(J[d+8>>2]!=(j|0))break la;if(a){if(J[a+172>>2]==-1?J[a+ -212>>2]:0)break ja;J[a+84>>2]=203;J[i+40>>2]=0;J[i+36>>2]=j;J[i+32>>2]=f;Cc(0,0,0,a,0,3,203,2,f,j,0,0,35735,i+32|0);J[a+356>>2]=0;break ja}J[i+24>>2]=0;J[i+20>>2]=j;J[i+16>>2]=f;Cc(0,0,0,0,0,3,203,2,f,j,0,0,35735,i+16|0);break ja}e=e+5|0;if(g>>>0>e>>>0)continue;break}break ja}jJ(a,l,f)}g=g+5|0;if((p|0)>(g|0))continue;break}}h=J[i+156>>2];if((h|0)==J[a+312>>2]){e=J[y>>2];break Z}e=J[a+328>>2];while(1){d=e;if((e|0)<2){e=0;break Z}f=J[a+336>>2];e=d-2|0;if((h|0)!=J[f+(e<<2)>>2])continue;break}e=J[(f+ -(d<<2)|0)-4>>2];if(h)break Z;e=K[e|0]?e:0;break Y}ke(a,0);f=0;break a}if(e|!h)break Y;if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){e=0;break Y}J[a+84>>2]=201;e=0;J[i+8>>2]=0;J[i+4>>2]=m;J[i>>2]=h;Cc(0,0,0,a,0,3,201,2,h,m,0,0,35814,i);J[a+356>>2]=0}J[b>>2]=h;J[c>>2]=e;b=J[a>>2];ma:{if(!b)break ma;c=J[b+116>>2];if(J[a+212>>2]|!c)break ma;b=J[a+4>>2];if((n|0)>0){gc[c|0](b,m,h,e,n,J[a+336>>2]+(J[a+328>>2]-(n<<1)<<2)|0,(p|0)/5|0,z,o);break ma}gc[c|0](b,m,h,e,0,0,(p|0)/5|0,z,o)}f=m;if(!A)break a;if((w|0)<=0)break a; -e=0;g=3;while(1){na:{if(!J[J[a+340>>2]+(e<<2)>>2])break na;b=J[(g<<2)+o>>2];if(!b)break na;gc[J[659451]](b)}g=g+5|0;e=e+1|0;if((w|0)!=(e|0))continue;break}f=m}bc=i+160|0;return f}function pcb(a){a=a|0;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;a:{b:{c:{d:{e:{f:{g:{c=J[a+20>>2];switch(c-202|0){case 2:break c;case 1:break f;case 0:break g;default:break e}}m=gc[J[J[a+4>>2]>>2]](a,1,28)|0;J[a+440>>2]=m;J[m+8>>2]=0;J[m+4>>2]=293;J[m>>2]=294;W3(a);b=gc[J[J[a+ -4>>2]>>2]](a,1,1408)|0;d=b+256|0;J[a+332>>2]=d;c=wc(b,0,256);while(1){H[e+d|0]=e;b=e|1;H[b+d|0]=b;b=e|2;H[b+d|0]=b;b=e|3;H[b+d|0]=b;b=e|4;H[b+d|0]=b;b=e|5;H[b+d|0]=b;b=e|6;H[b+d|0]=b;b=e|7;H[b+d|0]=b;e=e+8|0;if((e|0)!=256)continue;break}wc(c+512|0,255,384);wc(c+896|0,0,384);tc(c+1280|0,J[a+332>>2],128);J[m+12>>2]=0;b=V3(a);J[m+20>>2]=0;J[m+24>>2]=0;J[m+16>>2]=b;h:{if(!J[a+84>>2]){J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;break h}if(!J[a+64>>2]){J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0}if(J[a+68>> -2]){b=J[a>>2];J[b+20>>2]=48;gc[J[b>>2]](a)}i:{if(J[a+120>>2]!=3){J[a+136>>2]=0;J[a+108>>2]=0;J[a+100>>2]=1;J[a+104>>2]=0;break i}if(J[a+136>>2]){J[a+104>>2]=1;break i}if(J[a+92>>2]){J[a+108>>2]=1;break i}J[a+100>>2]=1}if(J[a+100>>2]){b=gc[J[J[a+4>>2]>>2]](a,1,88)|0;J[a+480>>2]=b;J[b+68>>2]=0;J[b+12>>2]=314;J[b+8>>2]=315;J[b>>2]=316;J[b+52>>2]=0;if(J[a+120>>2]>=5){b=J[a>>2];J[b+20>>2]=57;J[b+24>>2]=4;gc[J[J[a>>2]>>2]](a)}k=J[a+96>>2];if((k|0)>=257){b=J[a>>2];J[b+20>>2]=59;J[b+24>>2]=256;gc[J[J[a>> -2]>>2]](a);k=J[a+96>>2]}j=J[a+120>>2];j:{if((j|0)>=2){b=j-1|0;c=b&-8;e=b&7;b=j-2>>>0<7;d=1;while(1){g=0;h=d;d=d+1|0;i=d;if(!b)while(1){i=P(P(P(P(P(P(P(P(d,i),d),d),d),d),d),d),d);g=g+8|0;if((c|0)!=(g|0))continue;break}g=0;if(e)while(1){i=P(d,i);g=g+1|0;if((e|0)!=(g|0))continue;break}if((i|0)<=(k|0))continue;break}break j}h=(k|0)<=1?1:k;i=h+1|0}n=J[a+480>>2];c=1;if(h>>>0<=1){b=J[a>>2];J[b+24>>2]=i;J[b+20>>2]=58;gc[J[J[a>>2]>>2]](a)}k:{if((j|0)<=0)break k;f=n+32|0;l=j&3;d=0;l:{if(j>>>0<4){i=0;break l}e= -j&-4;i=0;b=0;while(1){g=i<<2;J[g+f>>2]=h;J[f+(g|4)>>2]=h;J[f+(g|8)>>2]=h;J[f+(g|12)>>2]=h;i=i+4|0;c=P(P(P(P(c,h),h),h),h);b=b+4|0;if((e|0)!=(b|0))continue;break}}if(l)while(1){J[f+(i<<2)>>2]=h;i=i+1|0;c=P(c,h);d=d+1|0;if((l|0)!=(d|0))continue;break}l=j-1|0;m:{if(J[a+44>>2]!=2){b=J[f>>2];g=b+1|0;d=P(g,(c|0)/(b|0)|0);if((k|0)<(d|0))break k;i=0;b=f;break m}e=n+36|0;b=J[e>>2];g=b+1|0;d=P(g,(c|0)/(b|0)|0);if((k|0)<(d|0))break k;i=0;b=e;while(1){c=d;J[b>>2]=g;if((i|0)!=(l|0)){i=i+1|0;b=f+(J[(i<<2)+54832>> -2]<<2)|0;h=J[b>>2];g=h+1|0;d=P(g,(c|0)/(h|0)|0);if((k|0)>=(d|0))continue}i=0;b=e;d=J[b>>2];g=d+1|0;d=P(g,(c|0)/(d|0)|0);if((k|0)>=(d|0))continue;break}break k}while(1){c=d;J[b>>2]=g;if((i|0)!=(l|0)){i=i+1|0;b=f+(i<<2)|0;e=J[b>>2];g=e+1|0;d=P(g,(c|0)/(e|0)|0);if((k|0)>=(d|0))continue}i=0;b=f;e=J[b>>2];g=e+1|0;d=P(g,(c|0)/(e|0)|0);if((k|0)>=(d|0))continue;break}}b=J[a+120>>2];e=J[a>>2];J[e+24>>2]=c;n:{if((b|0)==3){J[e+28>>2]=J[n+32>>2];J[e+32>>2]=J[n+36>>2];J[e+36>>2]=J[n+40>>2];i=96;b=e;break n}i= -97;b=J[a>>2]}J[e+20>>2]=i;gc[J[b+4>>2]](a,1);t=gc[J[J[a+4>>2]+8>>2]](a,1,c,J[a+120>>2])|0;d=J[a+120>>2];if((d|0)>0){e=c;while(1){f=e;b=s<<2;r=J[(b+n|0)+32>>2];e=(e|0)/(r|0)|0;if(!((r|0)<=0|(e|0)<=0)){o=b+t|0;k=r-1|0;j=k>>>1|0;g=e&-4;u=e&3;p=0;l=e>>>0<4;while(1){i=P(e,p);if((i|0)<(c|0)){q=(j+P(p,255)|0)/(k|0)|0;while(1){b=0;d=0;h=0;if(!l)while(1){H[(J[o>>2]+i|0)+d|0]=q;H[(J[o>>2]+i|0)+(d|1)|0]=q;H[(J[o>>2]+i|0)+(d|2)|0]=q;H[(J[o>>2]+i|0)+(d|3)|0]=q;d=d+4|0;h=h+4|0;if((g|0)!=(h|0))continue;break}if(u)while(1){H[(J[o>> -2]+i|0)+d|0]=q;d=d+1|0;b=b+1|0;if((u|0)!=(b|0))continue;break}i=f+i|0;if((i|0)<(c|0))continue;break}}p=p+1|0;if((r|0)!=(p|0))continue;break}d=J[a+120>>2]}s=s+1|0;if((s|0)<(d|0))continue;break}}J[n+20>>2]=c;J[n+16>>2]=t;w3(a);if(!(J[a+88>>2]!=2|J[a+120>>2]<=0)){c=(J[a+112>>2]<<1)+4|0;b=J[a+480>>2];d=0;while(1){v=b+(d<<2)|0,w=gc[J[J[a+4>>2]+4>>2]](a,1,c)|0,J[v+68>>2]=w;d=d+1|0;if((d|0)>2])continue;break}}J[m+20>>2]=J[a+480>>2]}if(!(J[a+108>>2]|J[a+104>>2]))break h;d=0;f=gc[J[J[a+4>>2]>>2]](a, -1,44)|0;J[a+480>>2]=f;J[f+40>>2]=0;J[f+32>>2]=0;J[f+12>>2]=322;J[f>>2]=323;if(J[a+120>>2]!=3){b=J[a>>2];J[b+20>>2]=48;gc[J[b>>2]](a)}v=f,w=gc[J[J[a+4>>2]>>2]](a,1,128)|0,J[v+24>>2]=w;while(1){b=gc[J[J[a+4>>2]+4>>2]](a,1,4096)|0;c=d<<2;J[c+J[f+24>>2]>>2]=b;b=gc[J[J[a+4>>2]+4>>2]](a,1,4096)|0;J[J[f+24>>2]+(c|4)>>2]=b;d=d+2|0;if((d|0)!=32)continue;break}J[f+28>>2]=1;o:{if(J[a+108>>2]){d=8;c=58;e=J[a+96>>2];p:{if((e|0)>=8){if(e>>>0<257)break p;d=256;c=59}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=c;gc[J[J[a>> -2]>>2]](a)}b=gc[J[J[a+4>>2]+8>>2]](a,1,e,3)|0;J[f+20>>2]=e;J[f+16>>2]=b;break o}J[f+16>>2]=0}if(J[a+88>>2]){J[a+88>>2]=2;v=f,w=gc[J[J[a+4>>2]+4>>2]](a,1,P(J[a+112>>2],6)+12|0)|0,J[v+32>>2]=w;X2(a)}J[m+24>>2]=J[a+480>>2]}if(!J[a+68>>2]){q:{if(J[m+16>>2]){g=0;c=gc[J[J[a+4>>2]>>2]](a,1,48)|0;J[a+472>>2]=c;J[c+8>>2]=0;J[c>>2]=329;b=P(J[a+120>>2],J[a+112>>2]);J[c+40>>2]=b;r:{if(J[a+316>>2]==2){J[c+12>>2]=330;J[c+4>>2]=331;g=gc[J[J[a+4>>2]+4>>2]](a,1,b)|0;break r}J[c+12>>2]=332;J[c+4>>2]=333}J[c+32>>2]= -g;b=J[a+472>>2];v=b,w=gc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;v=b,w=gc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+20>>2]=w;v=b,w=gc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+24>>2]=w;d=gc[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+28>>2]=d;e=J[b+24>>2];c=J[b+20>>2];b=J[b+16>>2];g=0;h=-128;while(1){f=g<<2;J[f+b>>2]=P(h,91881)+32768>>16;J[c+f>>2]=P(h,116130)+32768>>16;J[e+f>>2]=P(h,-46802);J[d+f>>2]=P(h,-22554)+32768;h=h+1|0;g=g+1|0;if((g|0)!=256)continue;break}break q}c=gc[J[J[a+4>>2]>>2]](a,1,24)|0;J[a+476>>2]=c;J[c>>2]= -334;s:{t:{u:switch(J[a+40>>2]-1|0){case 0:if(J[a+36>>2]!=1)break t;break s;case 1:case 2:if(J[a+36>>2]!=3)break t;break s;case 3:case 4:if(J[a+36>>2]!=4)break t;break s;default:break u}if(J[a+36>>2]>0)break s}b=J[a>>2];J[b+20>>2]=11;gc[J[b>>2]](a)}v:{w:{x:{y:{z:{b=J[a+44>>2];switch(b-1|0){case 3:break x;case 1:break y;case 0:break z;default:break w}}J[a+120>>2]=1;A:switch(J[a+40>>2]-1|0){case 0:case 2:J[c+4>>2]=335;c=J[a+36>>2];if((c|0)<2)break v;b=c-1|0;d=b&7;e=J[a+216>>2];h=1;if(c-2>>>0>=7){b=b& --8;c=0;while(1){f=e+P(h,88)|0;J[f+52>>2]=0;J[f+140>>2]=0;J[f+228>>2]=0;J[f+316>>2]=0;J[f+404>>2]=0;J[f+492>>2]=0;J[f+580>>2]=0;J[f+668>>2]=0;h=h+8|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}if(!d)break v;g=0;while(1){J[(e+P(h,88)|0)+52>>2]=0;h=h+1|0;g=g+1|0;if((d|0)!=(g|0))continue;break}break v;default:break A}b=J[a>>2];J[b+20>>2]=28;gc[J[b>>2]](a);break v}J[a+120>>2]=3;B:switch(J[a+40>>2]-1|0){case 2:J[c+4>>2]=336;b=J[a+476>>2];v=b,w=gc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+8>>2]=w;v=b,w=gc[J[J[a+4>> -2]>>2]](a,1,1024)|0,J[v+12>>2]=w;v=b,w=gc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;d=gc[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+20>>2]=d;e=J[b+16>>2];c=J[b+12>>2];b=J[b+8>>2];h=0;g=-128;while(1){f=h<<2;J[f+b>>2]=P(g,91881)+32768>>16;J[c+f>>2]=P(g,116130)+32768>>16;J[e+f>>2]=P(g,-46802);J[d+f>>2]=P(g,-22554)+32768;g=g+1|0;h=h+1|0;if((h|0)!=256)continue;break}break v;case 0:J[c+4>>2]=337;break v;case 1:J[c+4>>2]=338;break v;default:break B}b=J[a>>2];J[b+20>>2]=28;gc[J[b>>2]](a);break v}J[a+120>>2]=4;C:switch(J[a+ -40>>2]-4|0){case 1:J[c+4>>2]=339;b=J[a+476>>2];v=b,w=gc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+8>>2]=w;v=b,w=gc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+12>>2]=w;v=b,w=gc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;d=gc[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+20>>2]=d;e=J[b+16>>2];c=J[b+12>>2];b=J[b+8>>2];h=0;g=-128;while(1){f=h<<2;J[f+b>>2]=P(g,91881)+32768>>16;J[c+f>>2]=P(g,116130)+32768>>16;J[e+f>>2]=P(g,-46802);J[d+f>>2]=P(g,-22554)+32768;g=g+1|0;h=h+1|0;if((h|0)!=256)continue;break}break v;case 0:J[c+4>>2]=338;break v; -default:break C}b=J[a>>2];J[b+20>>2]=28;gc[J[b>>2]](a);break v}if((b|0)==J[a+40>>2]){J[a+120>>2]=J[a+36>>2];J[c+4>>2]=338;break v}b=J[a>>2];J[b+20>>2]=28;gc[J[b>>2]](a)}J[a+124>>2]=J[a+84>>2]?1:J[a+120>>2];d=0;g=gc[J[J[a+4>>2]>>2]](a,1,160)|0;J[a+472>>2]=g;J[g+8>>2]=0;J[g+4>>2]=340;J[g>>2]=341;if(J[a+304>>2]){b=J[a>>2];J[b+20>>2]=26;gc[J[b>>2]](a)}if(J[a+36>>2]>0){k=J[a+216>>2];while(1){l=J[a+316>>2];f=J[a+312>>2];e=J[a+320>>2];c=J[k+36>>2];b=J[k+8>>2];j=g+(d<<2)|0;h=(P(J[k+40>>2],J[k+12>>2])|0)/ -J[a+324>>2]|0;J[j+100>>2]=h;c=(P(b,c)|0)/(e|0)|0;D:{if(!J[k+52>>2]){J[j+52>>2]=342;break D}if(!((c|0)!=(f|0)|(h|0)!=(l|0))){J[j+52>>2]=343;break D}b=(f|0)!=c<<1;E:{if(!(b|(h|0)!=(l|0))){J[j+52>>2]=344;break E}if(!((l|0)!=h<<1|b)){J[j+52>>2]=345;break E}F:{e=(f|0)/(c|0)|0;if(f-P(e,c)|0)break F;c=(l|0)/(h|0)|0;if(l-P(c,h)|0)break F;J[j+52>>2]=346;b=d+g|0;H[b+150|0]=c;H[b+140|0]=e;break E}b=J[a>>2];J[b+20>>2]=39;gc[J[b>>2]](a)}c=J[a+312>>2];b=(c+J[a+112>>2]|0)-1|0;v=j,w=gc[J[J[a+4>>2]+8>>2]](a,1,b-((b| -0)%(c|0)|0)|0,J[a+316>>2])|0,J[v+12>>2]=w}k=k+88|0;d=d+1|0;if((d|0)>2])continue;break}}}b=J[a+108>>2];f=gc[J[J[a+4>>2]>>2]](a,1,28)|0;J[a+452>>2]=f;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=347;if(J[a+84>>2])G:{d=J[a+316>>2];J[f+16>>2]=d;e=P(J[a+120>>2],J[a+112>>2]);c=J[a+4>>2];if(b){b=(d+J[a+116>>2]|0)-1|0;v=f,w=gc[J[c+16>>2]](a,1,0,e,b-((b|0)%(d|0)|0)|0,J[f+16>>2])|0,J[v+8>>2]=w;break G}v=f,w=gc[J[c+8>>2]](a,1,e,d)|0,J[v+12>>2]=w}}e=0;c=gc[J[J[a+4>>2]>>2]](a,1,84)|0;J[a+468>>2]=c;J[c>>2]=351;if(J[a+ -36>>2]>0){d=J[a+216>>2];while(1){b=gc[J[J[a+4>>2]>>2]](a,1,256)|0;J[d+84>>2]=b;wc(b,0,256);J[(c+(e<<2)|0)+44>>2]=-1;d=d+88|0;e=e+1|0;if((e|0)>2])continue;break}}H:{if(J[a+228>>2]){c=0;b=gc[J[J[a+4>>2]>>2]](a,1,188)|0;J[a+464>>2]=b;J[b>>2]=383;wc(b+56|0,0,128);H[b+184|0]=113;I:{if(!J[a+224>>2])break I;b=gc[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<8)|0;J[a+160>>2]=b;if(J[a+36>>2]<=0)break I;while(1){b=wc(b,255,256)+256|0;c=c+1|0;if((c|0)>2])continue;break}}break H}c=0;e=gc[J[J[a+4>>2]>>2]](a, -1,216)|0;J[a+464>>2]=e;J[e>>2]=389;J:{if(!J[a+224>>2]){J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;b=e- -64|0;J[b>>2]=0;J[b+4>>2]=0;break J}b=gc[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<8)|0;J[a+160>>2]=b;if(J[a+36>>2]>0)while(1){b=wc(b,255,256)+256|0;c=c+1|0;if((c|0)>2])continue;break}J[e+52>>2]=0;J[e+56>>2]=0;J[e+44>>2]=0;J[e+48>>2]=0}}b=J[J[a+456>>2]+16>>2]?1:J[a+64>>2]!=0;e=0;f=gc[J[J[a+4>>2]>>2]](a,1,116)|0;J[a+448>>2]=f;J[f+112>>2]=0;J[f+8>>2]=396;J[f>>2]=397; -K:{if(b){if(J[a+36>>2]>0){d=J[a+216>>2];while(1){c=J[d+8>>2];b=(c+J[d+28>>2]|0)-1|0;h=b-((b|0)%(c|0)|0)|0;c=J[d+12>>2];b=(c+J[d+32>>2]|0)-1|0;v=f+(e<<2)|0,w=gc[J[J[a+4>>2]+20>>2]](a,1,1,h,b-((b|0)%(c|0)|0)|0,J[a+224>>2]?P(c,3):c)|0,J[v+72>>2]=w;d=d+88|0;e=e+1|0;if((e|0)>2])continue;break}}J[f+12>>2]=398;J[f+4>>2]=399;J[f+16>>2]=f+72;break K}b=gc[J[J[a+4>>2]+4>>2]](a,1,1280)|0;J[f+32>>2]=b;J[f+12>>2]=400;J[f+4>>2]=401;J[f+68>>2]=b+1152;J[f- -64>>2]=b+1024;J[f+60>>2]=b+896;J[f+56>>2]=b+768; -J[f+52>>2]=b+640;J[f+48>>2]=b+512;J[f+44>>2]=b+384;J[f+40>>2]=b+256;J[f+36>>2]=b+128;J[f+16>>2]=0}if(!J[a+68>>2]){e=0;g=gc[J[J[a+4>>2]>>2]](a,1,80)|0;J[a+444>>2]=g;J[g>>2]=299;d=J[a+324>>2];L:{if(J[J[a+472>>2]+8>>2]){if((d|0)<=1){b=J[a>>2];J[b+20>>2]=48;gc[J[b>>2]](a);d=J[a+324>>2]}j=J[a+444>>2];b=gc[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<3)|0;J[j+56>>2]=b;c=J[a+36>>2];J[j+60>>2]=b+(c<<2);if((c|0)>0){l=d+4|0;b=J[a+216>>2];while(1){h=(P(J[b+40>>2],J[b+12>>2])|0)/J[a+324>>2]|0;f=P(h,l);c=gc[J[J[a+4>>2]>> -2]](a,1,f<<3)|0;d=e<<2;c=c+(h<<2)|0;J[d+J[j+56>>2]>>2]=c;J[d+J[j+60>>2]>>2]=c+(f<<2);b=b+88|0;c=J[a+36>>2];e=e+1|0;if((c|0)>(e|0))continue;break}}d=J[a+324>>2]+2|0;break L}c=J[a+36>>2]}if((c|0)>0){b=J[a+216>>2];e=0;while(1){v=g+(e<<2)|0,w=gc[J[J[a+4>>2]+8>>2]](a,1,P(J[b+36>>2],J[b+28>>2]),P((P(J[b+40>>2],J[b+12>>2])|0)/J[a+324>>2]|0,d))|0,J[v+8>>2]=w;b=b+88|0;e=e+1|0;if((e|0)>2])continue;break}}}gc[J[J[a+4>>2]+24>>2]](a);gc[J[J[a+456>>2]+8>>2]](a);d=J[a+8>>2];if(!(!J[J[a+456>>2]+16>>2]|(J[a+ -64>>2]|!d))){c=J[a+224>>2];e=J[a+36>>2];J[d+4>>2]=0;b=J[a+328>>2];J[d+12>>2]=0;J[d+8>>2]=P(b,c?P(e,3)+2|0:e);J[d+16>>2]=J[a+108>>2]?3:2;J[m+12>>2]=J[m+12>>2]+1}b=207;if(J[a+64>>2])break b;J[a+20>>2]=203}M:{if(!J[J[a+456>>2]+16>>2])break M;e=J[a+8>>2];while(1){if(e)gc[J[e>>2]](a);N:{b=gc[J[J[a+456>>2]>>2]](a)|0;switch(b|0){case 0:break a;case 2:break M;default:break N}}e=J[a+8>>2];if(!e|(b&-3)!=1)continue;b=J[e+4>>2]+1|0;J[e+4>>2]=b;c=b;b=J[e+8>>2];if((c|0)<(b|0))continue;J[e+8>>2]=b+J[a+328>>2];continue}}J[a+ -152>>2]=J[a+144>>2];break d}b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=21;gc[J[J[a>>2]>>2]](a)}if(J[a+20>>2]==204)break c;gc[J[J[a+440>>2]>>2]](a);J[a+20>>2]=204;J[a+140>>2]=0}if(J[J[a+440>>2]+8>>2]){d=a+140|0;e=J[a+140>>2];while(1){b=J[a+116>>2];if(b>>>0>e>>>0){c=J[a+8>>2];if(c){J[c+8>>2]=b;J[c+4>>2]=e;gc[J[c>>2]](a);e=J[a+140>>2]}b=0;gc[J[J[a+444>>2]+4>>2]](a,0,d,0);c=e;e=J[a+140>>2];if((c|0)!=(e|0))continue;break a}gc[J[J[a+440>>2]+4>>2]](a);gc[J[J[a+440>>2]>>2]](a);e=0;J[a+140>>2]=0;if(J[J[a+440>>2]+8>> -2])continue;break}}b=J[a+68>>2]?206:205}J[a+20>>2]=b;b=1}return b|0}function Ipa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;f=a+12|0;b=J[a+12>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;d=J[f>>2]}J[c+20>>2]=d;J[a+24>>2]=0;J[695492]=0;b=d;d=c+24|0;ga(5103,b|0,d|0,4)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((b|0)!=1){b=K[c+24|0]|K[c+25|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0<=19566){if(!b)break M;if((b|0)== -60)break L;if((b|0)!=15360)break w;b=K[c+26|0]|K[c+27|0]<<8;b=(b<<8|b>>>8)&65535;if((b|0)==16128)break H;if(b)break G;J[695492]=0;ia(5533,c+12|0,d|0,4,2);b=J[695492];J[695492]=0;if((b|0)==1)break I;b=J[c+12>>2];if(!b)break K;d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break J;a=Z()|0;break c}if(b>>>0<=65278){if((b|0)==19567)break F;if((b|0)!=61371)break w;if(K[c+26|0]!=191)break x;J[695492]=0;ia(5533,c+12|0,c+27|0,1,8);b=J[695492];J[695492]=0;if((b|0)== -1)break y;b=J[c+12>>2];if(!b)break A;d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break z;a=Z()|0;break d}if((b|0)==65279)break B;if((b|0)!=65534)break w;J[695492]=0;ia(5533,c+12|0,c+26|0,2,7);b=J[695492];J[695492]=0;if((b|0)==1)break C;b=J[c+12>>2];if(!b)break E;d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break D;a=Z()|0;break e}a=Z()|0;break b}N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{b=K[c+26|0]|K[c+27|0]<<8;b=(b<<8|b>>> -8)&65535;if(b>>>0<=65278){if((b|0)==60)break W;if((b|0)!=15360)break O;J[695492]=0;ia(5533,c+12|0,c+24|0,4,3);b=J[695492];J[695492]=0;if((b|0)==1)break T;b=J[c+12>>2];if(!b)break V;d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break U;a=Z()|0;break f}if((b|0)==65279)break S;if((b|0)!=65534)break O;J[695492]=0;ia(5533,c+12|0,0,0,3);b=J[695492];J[695492]=0;if((b|0)==1)break P;b=J[c+12>>2];if(!b)break R;d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492]; -J[695492]=0;if((b|0)!=1)break Q;a=Z()|0;break g}J[695492]=0;ia(5533,c+12|0,c+24|0,4,1);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];X:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break X;a=Z()|0;break h}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break N;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break N;J[695492]=0;_(4987,b|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break N}break a}a=Z()|0;vc(c+28|0);break h}a=Z()|0;break b}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;Y:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break Y;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break Y;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break Y}break a}a=Z()|0;vc(c+28|0);break f}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2728584)>>2];sc(c+12|0);break L}a=Z()|0;break b}J[695492]= -0;ia(5533,c+12|0,0,0,1);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];Z:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break Z;a=Z()|0;break i}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;_:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break _;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break _;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break _}break a}a=Z()|0;vc(c+ -28|0);break i}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2728584)>>2];sc(c+12|0);J[a+32>>2]=J[a+32>>2]+4;break L}a=Z()|0;break b}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;$:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break $;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break $;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break $}break a}a=Z()|0;vc(c+28|0);break g}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2728584)>>2];sc(c+12| -0);J[a+32>>2]=J[a+32>>2]+4;break L}a=Z()|0;break b}J[695492]=0;ia(5533,c+12|0,c+24|0,4,8);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];aa:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break aa;a=Z()|0;break j}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;ba:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ba;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break ba;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break ba}break a}a=Z()|0;vc(c+28|0);break j}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2728584)>>2];sc(c+12|0);break L}a=Z()|0;break b}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2728584)>>2];sc(c+12|0)}ca:{b=K[c+26|0]|K[c+27|0]<<8;b=(b<<8|b>>>8)&65535;if((b|0)!=63){if(b)break ca;J[695492]=0;ia(5533,c+12|0,c+24|0,4,4);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];da:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break da; -a=Z()|0;break k}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;ea:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ea;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break ea;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break ea}break a}a=Z()|0;vc(c+28|0);break k}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+12|0);break v}a=Z()|0;break b}J[695492]=0;ia(5533,c+12|0,c+24|0,4,6);b=J[695492];J[695492]=0;if((b|0)!= -1){b=J[c+12>>2];fa:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break fa;a=Z()|0;break l}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;ga:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ga;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break ga;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break ga}break a}a=Z()|0;vc(c+28|0);break l}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+ -12|0:2728584)>>2];sc(c+12|0);break v}a=Z()|0;break b}J[695492]=0;ia(5533,c+12|0,c+24|0,4,8);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];ha:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break ha;a=Z()|0;break m}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;ia:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ia;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break ia;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break ia}break a}a=Z()|0;vc(c+28|0);break m}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+12|0);break v}a=Z()|0;break b}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;ja:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ja;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break ja;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break ja}break a}a=Z()|0;vc(c+28|0);break c}d= -a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+12|0);break v}a=Z()|0;break b}J[695492]=0;ia(5533,c+12|0,c+24|0,4,7);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];ka:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break ka;a=Z()|0;break n}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;la:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break la;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!= -1){if(d)break la;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break la}break a}a=Z()|0;vc(c+28|0);break n}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+12|0);break v}a=Z()|0;break b}J[695492]=0;ia(5533,c+12|0,c+24|0,4,8);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];ma:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break ma;a=Z()|0;break o}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;na:{if((b| -0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break na;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break na;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break na}break a}a=Z()|0;vc(c+28|0);break o}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+12|0);break v}a=Z()|0;break b}J[695492]=0;ia(5533,c+12|0,c+24|0,4,((K[c+27|0]|K[c+26|0]<<8)==42900?9:8)|0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];oa:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d| -0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break oa;a=Z()|0;break p}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;pa:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break pa;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break pa;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break pa}break a}a=Z()|0;vc(c+28|0);break p}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+12|0);break v}a=Z()|0;break b}J[c+28>>2]= -0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;qa:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break qa;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break qa;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break qa}break a}a=Z()|0;vc(c+28|0);break e}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2728584)>>2];sc(c+12|0);J[a+32>>2]=J[a+32>>2]+2;break v}a=Z()|0;break b}J[695492]=0;ia(5533,c+12|0,c+26|0,2,6);b=J[695492];J[695492]=0;if((b|0)!=1){b= -J[c+12>>2];ra:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break ra;a=Z()|0;break q}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;sa:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break sa;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break sa;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break sa}break a}a=Z()|0;vc(c+28|0);break q}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2728584)>> -2];sc(c+12|0);J[a+32>>2]=J[a+32>>2]+2;break v}a=Z()|0;break b}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;ta:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ta;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break ta;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break ta}break a}a=Z()|0;vc(c+28|0);break d}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2728584)>>2];sc(c+12|0);J[a+32>>2]=J[a+32>>2]+3;break v}a=Z()|0;break b}J[695492]= -0;ia(5533,c+12|0,c+24|0,4,8);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];ua:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break ua;a=Z()|0;break r}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;va:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break va;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break va;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break va}break a}a= -Z()|0;vc(c+28|0);break r}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+12|0);break v}a=Z()|0;break b}J[695492]=0;ia(5533,c+12|0,c+24|0,4,8);b=J[695492];J[695492]=0;if((b|0)==1)break u;b=J[c+12>>2];wa:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break wa;a=Z()|0;break s}J[c+28>>2]=0}J[695492]=0;aa(4993,a+16|0,c+28|0)|0;b=J[695492];J[695492]=0;xa:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break xa;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]= -d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break xa;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break xa}break a}a=Z()|0;vc(c+28|0);break s}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+12|0)}J[695492]=0;aa(4993,f|0,c+20|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break t;a=J[c+20>>2];J[c+20>>2]=0;ya:{if(!a)break ya;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(b)break ya;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc= -c+32|0;return}a=Z()|0;break b}a=Z()|0;break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0);break b}sc(c+12|0)}vc(c+20|0);ba(a|0);B()}ea(0)|0;yc();B()}function by(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,B=Q(0);k=bc-48|0;bc=k;a:{if((g|0)>=5){H[a+60|0]=K[46741];b=K[46737]|K[46738]<<8|(K[46739]<<16|K[46740]<<24);c=K[46733]|K[46734]<<8|(K[46735]<<16|K[46736]<<24);H[a+52|0]=c;H[a+53|0]=c>>>8;H[a+54|0]=c>>>16;H[a+55|0]=c>>>24;H[a+56|0]=b;H[a+57|0]=b>>>8;H[a+58|0]=b>>>16;H[a+59|0]=b>>>24;b=K[46729]|K[46730]<<8|(K[46731]<<16|K[46732]<<24);c=K[46725]|K[46726]<<8|(K[46727]<<16|K[46728]<<24);H[a+44|0]=c;H[a+45|0]=c>>>8;H[a+46|0]=c>>>16;H[a+47|0]=c>>>24;H[a+48|0]=b;H[a+49|0]=b>>>8;H[a+50|0]=b>>>16; -H[a+51|0]=b>>>24;b=K[46721]|K[46722]<<8|(K[46723]<<16|K[46724]<<24);c=K[46717]|K[46718]<<8|(K[46719]<<16|K[46720]<<24);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;H[a+40|0]=b;H[a+41|0]=b>>>8;H[a+42|0]=b>>>16;H[a+43|0]=b>>>24;b=K[46713]|K[46714]<<8|(K[46715]<<16|K[46716]<<24);c=K[46709]|K[46710]<<8|(K[46711]<<16|K[46712]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[46705]|K[46706]<<8|(K[46707]<< -16|K[46708]<<24);c=K[46701]|K[46702]<<8|(K[46703]<<16|K[46704]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[46697]|K[46698]<<8|(K[46699]<<16|K[46700]<<24);c=K[46693]|K[46694]<<8|(K[46695]<<16|K[46696]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[46689]|K[46690]<<8|(K[46691]<<16|K[46692]<<24);c=K[46685]|K[46686]<<8|(K[46687]<< -16|K[46688]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}i=J[b>>2];j=J[b+4>>2];if(j>>>0>=2){h=J[a+264>>2];s=K[i+!h|0]<<8|K[i+((h|0)!=0)|0]}b:{c:{t=P(s,12);if((i+t|0)+4>>>0<=J[c>>2]+d>>>0){if(s)break c;break b}b=K[46779]|K[46780]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[46775]|K[46776]<<8|(K[46777]<<16|K[46778]<<24);c=K[46771]|K[46772]<<8|(K[46773]<<16|K[46774]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]= -c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[46767]|K[46768]<<8|(K[46769]<<16|K[46770]<<24);c=K[46763]|K[46764]<<8|(K[46765]<<16|K[46766]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[46759]|K[46760]<<8|(K[46761]<<16|K[46762]<<24);c=K[46755]|K[46756]<<8|(K[46757]<<16|K[46758]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+ -11|0]=b>>>24;break a}w=g+1|0;x=e+5|0;y=e+37|0;z=e+77|0;v=e+196|0;h=a+4|0;while(1){n=J[b+4>>2];j=P(u,12)|2;p=j>>>0>n>>>0?n:j;j=p+J[b>>2]|0;m=0;o=0;i=0;d:{p=n-p|0;if(p>>>0<2)break d;n=J[a+264>>2];o=K[j+!n|0]<<8|K[j+((n|0)!=0)|0];if(p>>>0<4)break d;i=K[j+(n?3:2)|0]|K[j+(n?2:3)|0]<<8;if(p>>>0>=8){e:{if(n){n=j+7|0;m=K[j+5|0]<<16|K[j+4|0]<<24|K[j+6|0]<<8;break e}n=j+4|0;m=K[j+6|0]<<16|K[j+7|0]<<24|K[j+5|0]<<8}m=m|K[n|0]}if(i>>>0<13)break d;o=0;a=K[46882]|K[46883]<<8|(K[46884]<<16|K[46885]<<24);b=K[46878]| -K[46879]<<8|(K[46880]<<16|K[46881]<<24);H[h+24|0]=b;H[h+25|0]=b>>>8;H[h+26|0]=b>>>16;H[h+27|0]=b>>>24;H[h+28|0]=a;H[h+29|0]=a>>>8;H[h+30|0]=a>>>16;H[h+31|0]=a>>>24;a=K[46874]|K[46875]<<8|(K[46876]<<16|K[46877]<<24);b=K[46870]|K[46871]<<8|(K[46872]<<16|K[46873]<<24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;a=K[46866]|K[46867]<<8|(K[46868]<<16|K[46869]<<24);b=K[46862]|K[46863]<<8|(K[46864]<<16|K[46865]<<24);H[h+8|0]= -b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[46858]|K[46859]<<8|(K[46860]<<16|K[46861]<<24);b=K[46854]|K[46855]<<8|(K[46856]<<16|K[46857]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}m=P(J[(i<<2)+46912>>2],m);f:{if((m|0)>=5){n=0;if(p>>>0>=12){g:{if(J[a+264>>2]){n=j+11|0;j=K[j+9|0]<<16|K[j+8|0]<<24|K[j+10|0]<<8;break g}n=j+8|0;j=K[j+10|0]<<16|K[j+ -11|0]<<24|K[j+9|0]<<8}n=j|K[n|0]}if(n+m>>>0>d>>>0){o=0;a=K[47033]|K[47034]<<8|(K[47035]<<16|K[47036]<<24);b=K[47029]|K[47030]<<8|(K[47031]<<16|K[47032]<<24);H[h+30|0]=b;H[h+31|0]=b>>>8;H[h+32|0]=b>>>16;H[h+33|0]=b>>>24;H[h+34|0]=a;H[h+35|0]=a>>>8;H[h+36|0]=a>>>16;H[h+37|0]=a>>>24;a=K[47027]|K[47028]<<8|(K[47029]<<16|K[47030]<<24);b=K[47023]|K[47024]<<8|(K[47025]<<16|K[47026]<<24);H[h+24|0]=b;H[h+25|0]=b>>>8;H[h+26|0]=b>>>16;H[h+27|0]=b>>>24;H[h+28|0]=a;H[h+29|0]=a>>>8;H[h+30|0]=a>>>16;H[h+31|0]=a>>> -24;a=K[47019]|K[47020]<<8|(K[47021]<<16|K[47022]<<24);b=K[47015]|K[47016]<<8|(K[47017]<<16|K[47018]<<24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;a=K[47011]|K[47012]<<8|(K[47013]<<16|K[47014]<<24);b=K[47007]|K[47008]<<8|(K[47009]<<16|K[47010]<<24);H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[47003]|K[47004]<<8|(K[47005]<<16|K[47006]<<24); -b=K[46999]|K[47E3]<<8|(K[47001]<<16|K[47002]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}j=J[c+4>>2];p=j>>>0>>0?j:n;n=j-p|0;j=p+J[c>>2]|0;break f}n=p;p=p>>>0>=8?8:p;n=n-p|0;j=j+p|0}J[k+44>>2]=n;J[k+40>>2]=j;p=j+m|0;if(p>>>0>M[f>>2])J[f>>2]=p;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((o|0)<=37376){if((o|0)<=33433){N:switch(o-271|0){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break h; -case 12:break l;case 11:break m;case 25:break u;case 3:break y;case 1:break L;case 0:break M;default:break N}switch(o-513|0){case 1:break j;case 0:break k;default:break h}}if((o|0)<=36863){O:switch(o-33434|0){case 1:case 2:break h;case 0:break B;case 3:break G;default:break O}switch(o-34850|0){case 5:break o;case 0:break p;default:break h}}P:switch(o-36864|0){case 1:case 2:break h;case 3:break J;case 0:break K;default:break P}if((o|0)!=37122)break h;l=Vg(a,k+40|0,i);if(!(R(l)<2147483648))break n; -J[e+164>>2]=~~l;break h}if((o|0)<=37509)switch(o-37377|0){case 6:break q;case 7:break r;case 3:break s;case 8:break z;case 0:break A;case 5:break C;case 9:break D;case 2:break E;case 1:case 4:break F;default:break h}Q:switch(o-41486|0){case 2:break t;case 1:break v;case 0:break w;default:break Q}if(o-40962>>>0<2)break x;if((o|0)!=37510)break h;R:{if(n>>>0>>0|(m|0)<=0)break R;while(1){m=m-1|0;i=m+j|0;if(K[i|0]!=32)break R;H[i|0]=0;if(m)continue;break}}if(n>>>0<5)break h;if(Wc(j,47097,5))break H; -if(!(K[j+5|0]&223))break I;m=j+5|0;i=204;break i}if(n>>>0<31)break h;qd(x,j,31);break h}if(n>>>0<39)break h;qd(y,j,39);break h}if(n>>>0<4)break h;qd(e,j,4);break h}if(n>>>0<19)break h;qd(z,j,19);break h}if(K[j+6|0]&223){m=j+6|0;i=205;break i}if(K[j+7|0]&223){m=j+7|0;i=206;break i}if(K[j+8|0]&223){m=j+8|0;i=207;break i}if(!(K[j+9|0]&223))break h;m=j+9|0;i=208;break i}if(n>>>0<199)break h;qd(v,j,199);break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+132>>2]=B;break h}if(N[e+132>>2]!=Q(0))break h;A=e,B=Q(Vo(Vg(a, -k+40|0,i)*.6931471824645996*.5)),N[A+132>>2]=B;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+192>>2]=B;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+124>>2]=B;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+136>>2]=B;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+128>>2]=B;break h}if(N[e+128>>2]!=Q(0))break h;A=e,B=Q(1/Vo(Vg(a,k+40|0,i)*.6931471824645996)),N[A+128>>2]=B;break h}l=Vg(a,k+40|0,i);S:{if(R(l)<2147483648){i=~~l;break S}i=-2147483648}if(i&7){J[e+120>>2]=1;break h}J[e+120>>2]=0;break h}l=Vg(a,k+40|0,i);T:{if(R(l)<2147483648){i=~~l; -break T}i=-2147483648}J[e+108>>2]=i;if(i-9>>>0>4294967287)break h;H[h+24|0]=K[47131];i=K[47127]|K[47128]<<8|(K[47129]<<16|K[47130]<<24);m=K[47123]|K[47124]<<8|(K[47125]<<16|K[47126]<<24);H[h+16|0]=m;H[h+17|0]=m>>>8;H[h+18|0]=m>>>16;H[h+19|0]=m>>>24;H[h+20|0]=i;H[h+21|0]=i>>>8;H[h+22|0]=i>>>16;H[h+23|0]=i>>>24;i=K[47119]|K[47120]<<8|(K[47121]<<16|K[47122]<<24);m=K[47115]|K[47116]<<8|(K[47117]<<16|K[47118]<<24);H[h+8|0]=m;H[h+9|0]=m>>>8;H[h+10|0]=m>>>16;H[h+11|0]=m>>>24;H[h+12|0]=i;H[h+13|0]=i>>>8; -H[h+14|0]=i>>>16;H[h+15|0]=i>>>24;i=K[47111]|K[47112]<<8|(K[47113]<<16|K[47114]<<24);m=K[47107]|K[47108]<<8|(K[47109]<<16|K[47110]<<24);H[h|0]=m;H[h+1|0]=m>>>8;H[h+2|0]=m>>>16;H[h+3|0]=m>>>24;H[h+4|0]=i;H[h+5|0]=i>>>8;H[h+6|0]=i>>>16;H[h+7|0]=i>>>24;J[e+108>>2]=0;break h}l=Vg(a,k+40|0,i);U:{if(R(l)<2147483648){i=~~l;break U}i=-2147483648}if((i|0)<=J[a+260>>2])break h;J[a+260>>2]=i;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+168>>2]=B;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+172>>2]=B;break h}V:{W:{X:{Y:{l=Vg(a, -k+40|0,i);Z:{if(R(l)<2147483648){i=~~l;break Z}i=-2147483648}switch(i-1|0){case 4:break V;case 3:break W;case 2:break X;case 0:case 1:break Y;default:break h}}J[e+188>>2]=1065353216;break h}J[e+188>>2]=1053397798;break h}J[e+188>>2]=1025589893;break h}J[e+188>>2]=941957453;break h}_:{$:{aa:{ba:{l=Vg(a,k+40|0,i);ca:{if(R(l)<2147483648){i=~~l;break ca}i=-2147483648}switch(i-1|0){case 4:break _;case 3:break $;case 2:break aa;case 0:case 1:break ba;default:break h}}J[e+176>>2]=1065353216;break h}J[e+ -176>>2]=1053397798;break h}J[e+176>>2]=1025589893;break h}J[e+176>>2]=941957453;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+144>>2]=B;break h}l=Vg(a,k+40|0,i);if(R(l)<2147483648){J[e+148>>2]=~~l;break h}J[e+148>>2]=-2147483648;break h}l=Vg(a,k+40|0,i);if(R(l)<2147483648){J[e+152>>2]=~~l;break h}J[e+152>>2]=-2147483648;break h}l=Vg(a,k+40|0,i);if(R(l)<2147483648){J[e+156>>2]=~~l;break h}J[e+156>>2]=-2147483648;break h}l=Vg(a,k+40|0,i);da:{if(R(l)<2147483648){i=~~l;break da}i=-2147483648}J[e+160>>2]=i;if((i| -0)>49)break h;J[e+160>>2]=P(i,200);break h}J[e+164>>2]=-2147483648;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+180>>2]=B;break h}A=e,B=Q(Vg(a,k+40|0,i)),N[A+184>>2]=B;break h}l=Vg(a,k+40|0,i);if(l<4294967296&l>=0){q=~~l>>>0;break h}q=0;break h}l=Vg(a,k+40|0,i);if(l<4294967296&l>=0){r=~~l>>>0;break h}r=0;break h}if(i>>>0>n>>>0)break h;qd(v,m,199)}ea:{if((o|0)!=40965&(o|0)!=34665|n>>>0<4)break ea;fa:{if(J[a+264>>2]){o=K[j+1|0]<<16|K[j|0]<<24|K[j+2|0]<<8;j=j+3|0;break fa}o=K[j+2|0]<<16|K[j+3|0]<<24|K[j+1|0]<< -8}j=K[j|0]|o;if(j>>>0<9)break ea;i=J[c+4>>2];if(i>>>0>>0){o=0;a=K[47256]|K[47257]<<8;H[h+24|0]=a;H[h+25|0]=a>>>8;a=K[47252]|K[47253]<<8|(K[47254]<<16|K[47255]<<24);b=K[47248]|K[47249]<<8|(K[47250]<<16|K[47251]<<24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;a=K[47244]|K[47245]<<8|(K[47246]<<16|K[47247]<<24);b=K[47240]|K[47241]<<8|(K[47242]<<16|K[47243]<<24);H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>> -24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[47236]|K[47237]<<8|(K[47238]<<16|K[47239]<<24);b=K[47232]|K[47233]<<8|(K[47234]<<16|K[47235]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}o=J[c>>2];J[k+24>>2]=o;J[k+32>>2]=j+o;J[k+28>>2]=i;J[k+36>>2]=i-j;by(a,k+32|0,k+24|0,d,e,f,w)}u=u+1|0;if((u|0)!=(s|0))continue;break}j=J[b+4>>2]}ga:{if(t+4>>>0>j>>>0)break ga;b=J[b>>2]+(t|2)|0;j=J[a+264>>2];b=K[b+ -!j|0]<<8|K[b+((j|0)!=0)|0];if(!b)break ga;j=J[c+4>>2];if(j>>>0>>0){o=0;b=K[47256]|K[47257]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[47252]|K[47253]<<8|(K[47254]<<16|K[47255]<<24);c=K[47248]|K[47249]<<8|(K[47250]<<16|K[47251]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[47244]|K[47245]<<8|(K[47246]<<16|K[47247]<<24);c=K[47240]|K[47241]<<8|(K[47242]<<16|K[47243]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+ -15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[47236]|K[47237]<<8|(K[47238]<<16|K[47239]<<24);c=K[47232]|K[47233]<<8|(K[47234]<<16|K[47235]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}i=J[c>>2];J[k+8>>2]=i;J[k+16>>2]=b+i;J[k+12>>2]=j;J[k+20>>2]=j-b;by(a,k+16|0,k+8|0,d,e,f,g+1|0)}o=1;if(!r|!q|q+r>>>0>d>>>0)break a;a=J[c>>2];J[e+456>>2]=r;J[e+452>>2]=a+q}bc=k+48|0;return o}function nAa(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;a:{b:{if(!a|!b)break b;c=a;f=b;if(!(K[a+201|0]&4|(!a|!b))){a=bc-16|0;bc=a;J[a+8>>2]=1196314761;J[a+12>>2]=169478669;J[c+744>>2]=18;b=K[c+407|0];bf(c,b+(a+8|0)|0,8-b|0);if(K[c+407|0]<=2)J[c+200>>2]=J[c+200>>2]|4096;bc=a+16|0;if(!(!(K[c+201|0]&16)|!J[c+660>>2])){Yc(c,57742);J[c+660>>2]=0}d=J[f>>2];g=J[f+4>>2];b=K[f+24|0];l=K[f+26|0];e=K[f+27|0];k=K[f+28|0];a=bc-16|0;bc=a;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m=K[f+25|0]; -switch(m|0){case 6:break h;case 4:break i;case 3:break j;case 2:break k;case 0:break l;default:break g}}if(b>>>0<=16){i=1;if(1<>>0<8)break f;break d}i=2;n:switch(b-8|0){case 0:case 8:break e;default:break n}Ad(c,58582);B()}i=4;o:switch(b-8|0){case 0:case 8:break e;default:break o}Ad(c,58807);B()}Ad(c,59019);B()}i=1;if(!(139>>>o&1))break d}H[c+405|0]=i;if(l)Yc(c,59185);p:{q:{r:{if(!(!(K[c+ -660|0]&4)|K[c+201|0]&16)){if(!e)break p;if((m&-5)!=2|(e|0)!=64)break r;break p}if(!e)break q}Yc(c,59349)}e=0}if(k>>>0>=2){Yc(c,59493);k=1}H[c+401|0]=m;H[c+402|0]=b;H[c+696|0]=0;H[c+664|0]=e;H[c+398|0]=k;J[c+324>>2]=g;J[c+320>>2]=d;i=K[c+405|0];l=P(i,b);H[c+404|0]=l;H[c+406|0]=i;H[c+403|0]=b;J[c+332>>2]=d;i=l&255;s:{if(i>>>0>=8){i=P(d,i>>>3|0);break s}i=P(d,i)+7>>>3|0}J[c+336>>2]=i;H[a+15|0]=k;H[a+14|0]=e;H[a+13|0]=0;H[a+12|0]=m;H[a+11|0]=b;H[a+6|0]=d;H[a+5|0]=d>>>8;H[a+4|0]=d>>>16;H[a+3|0]=d>>>24; -H[a+10|0]=g;H[a+9|0]=g>>>8;H[a+8|0]=g>>>16;H[a+7|0]=g>>>24;Qh(c,1229472850,a+3|0,13);J[c+252>>2]=c;J[c+248>>2]=500;J[c+244>>2]=499;t:{u:{v:{b=K[c+400|0];if(!b){if(K[c+401|0]!=3&K[c+402|0]>7)break v;H[c+400|0]=8;b=8}d=J[c+204>>2];if(d&1)break t;b=(b|0)!=8;break u}H[c+400|0]=248;b=1;d=J[c+204>>2];if(d&1)break t}J[c+296>>2]=b}if(!(d&2))J[c+280>>2]=-1;if(!(d&4))J[c+292>>2]=8;if(!(d&8))J[c+288>>2]=15;if(d&16)b=J[c+284>>2];else{J[c+284>>2]=8;b=8}J[c+316>>2]=0;J[c+304>>2]=b;J[c+276>>2]=0;J[c+200>>2]=1;J[c+ -300>>2]=J[c+280>>2];b=J[c+292>>2];J[c+308>>2]=J[c+288>>2];J[c+312>>2]=b;bc=a+16|0;break c}Ad(c,58414);B()}a=J[f+8>>2];if(a&1){a=bc-16|0;bc=a;b=J[f+40>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;Qh(c,1732332865,a+12|0,4);bc=a+16|0;a=J[f+8>>2]}if(a&2048){a=bc-16|0;bc=a;b=K[f+44|0];if(b>>>0>=4)Yc(c,60229);H[a+15|0]=b;Qh(c,1934772034,a+15|0,1);bc=a+16|0;a=J[f+8>>2]}if(a&4096){g=J[f+196>>2];e=J[f+200>>2];a=J[f+204>>2];b=0;d=bc-32|0;bc=d;J[d+ -16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;i=Qc(g);w:{x:{a=e?a:0;if((a|0)<4)break x;b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if((b|0)>=0)break x;Yc(c,60630);break w}if((a|0)<(b|0)){Yc(c,60802);break w}if((a|0)>(b|0)){Yc(c,61073);a=b}if(a)a=Rz(c,e,a,0,d);else a=0;if(c){J[c+744>>2]=34;H[d+28|0]=105;H[d+29|0]=67;H[d+30|0]=67;H[d+31|0]=80;b=(a+i|0)+2|0;H[d+27|0]=b;H[d+26|0]=b>>>8;H[d+25|0]=b>>>16;H[d+24|0]=b>>>24;bf(c,d+24|0,8);J[c+348>>2]= -1766015824;Xl(c);pe(c,d+28|0,4);J[c+744>>2]=66;if(!(!g|!i)){bf(c,g,i);pe(c,g,i)}H[d+25|0]=0;H[d+24|0]=0;b=d+24|0;bf(c,b,2);pe(c,b,2)}if(a)pv(c,d,a);if(!c)break w;J[c+744>>2]=130;a=J[c+384>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[d+24|0]=a;H[d+25|0]=a>>>8;H[d+26|0]=a>>>16;H[d+27|0]=a>>>24;bf(c,d+24|0,4)}bc=d+32|0;a=J[f+8>>2]}if(a&2){d=bc-16|0;bc=d;e=K[f+25|0];y:{z:{if(e&2){b=8;A:{a=K[f+68|0];b=(e|0)!=3?K[c+403|0]:b;B:{if(!a|a>>>0>b>>>0)break B;g=K[f+69|0];if(!g|b>>>0>>0)break B;i=K[f+70| -0];if(!i)break B;if(b>>>0>=i>>>0)break A}Yc(c,61417);break y}H[d+14|0]=i;H[d+13|0]=g;H[d+12|0]=a;a=3;break z}a=K[f+71|0];if(!(a>>>0<=K[c+403|0]?a:0)){Yc(c,61417);break y}H[d+12|0]=a;a=1}g=d+12|0;if(e&4){b=K[f+72|0];if(!(b>>>0<=K[c+403|0]?b:0)){Yc(c,61417);break y}H[a+(d+12|0)|0]=b;a=a+1|0}Qh(c,1933723988,g,a)}bc=d+16|0;a=J[f+8>>2]}if(a&4){a=bc-32|0;bc=a;b=J[f+128>>2];d=J[f+132>>2];e=J[f+136>>2];g=J[f+140>>2];i=J[f+144>>2];k=J[f+148>>2];m=J[f+152>>2];l=J[f+156>>2];if(oH(c,b,d,e,g,i,k,m,l)){H[a+31| -0]=l;H[a+30|0]=l>>>8;H[a+29|0]=l>>>16;H[a+28|0]=l>>>24;H[a+27|0]=m;H[a+26|0]=m>>>8;H[a+25|0]=m>>>16;H[a+24|0]=m>>>24;H[a+23|0]=k;H[a+22|0]=k>>>8;H[a+21|0]=k>>>16;H[a+20|0]=k>>>24;H[a+19|0]=i;H[a+18|0]=i>>>8;H[a+17|0]=i>>>16;H[a+16|0]=i>>>24;H[a+15|0]=g;H[a+14|0]=g>>>8;H[a+13|0]=g>>>16;H[a+12|0]=g>>>24;H[a+11|0]=e;H[a+10|0]=e>>>8;H[a+9|0]=e>>>16;H[a+8|0]=e>>>24;H[a+7|0]=d;H[a+6|0]=d>>>8;H[a+5|0]=d>>>16;H[a+4|0]=d>>>24;H[a+3|0]=b;H[a+2|0]=b>>>8;H[a+1|0]=b>>>16;H[a|0]=b>>>24;Qh(c,1665684045,a,32)}bc= -a+32|0}a=J[f+192>>2];if(!(!a|(a|0)<=0)){a=J[f+188>>2];while(1){b=qH(c,a);C:{if((b|0)==1)break C;d=K[a+16|0];if(!(K[a+3|0]&32|(b|0)==3|H[c+206|0]&1)|(!d|d&14))break C;b=J[a+12>>2];if(!b){Yc(c,58068);b=J[a+12>>2]}wG(c,a,J[a+8>>2],b)}a=a+20|0;if(a>>>0>2]+P(J[f+192>>2],20)>>>0)continue;break}}J[c+200>>2]=J[c+200>>2]|1024}e=J[f+8>>2];D:{if(e&8){b=J[f+16>>2];e=L[f+20>>1];a=bc-16|0;bc=a;E:{F:{d=K[c+401|0];if((d|0)==3){if(e>>>0<=1<>>0?e|J[c+660>>2]&1:0)break F;Ad(c,59790);B()}if(!(e| -J[c+660>>2]&1?e>>>0<=256:0)){Yc(c,59790);break E}if(d&2)break F;Yc(c,60075);break E}I[c+392>>1]=e;J[c+744>>2]=34;H[a+8|0]=80;H[a+9|0]=76;H[a+10|0]=84;H[a+11|0]=69;d=P(e,3);H[a+7|0]=d;H[a+6|0]=d>>>8;H[a+5|0]=d>>>16;H[a+4|0]=d>>>24;bf(c,a+4|0,8);J[c+348>>2]=1347179589;Xl(c);pe(c,a+8|0,4);J[c+744>>2]=66;if(e){d=0;while(1){H[a+1|0]=K[b|0];H[a+2|0]=K[b+1|0];H[a+3|0]=K[b+2|0];g=a+1|0;bf(c,g,3);pe(c,g,3);b=b+3|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}J[c+744>>2]=130;b=J[c+384>>2];b=b<<24|(b&65280)<<8|(b>>> -8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;bf(c,a+12|0,4);J[c+200>>2]=J[c+200>>2]|2}bc=a+16|0;e=J[f+8>>2];break D}if(K[f+25|0]==3)break a}if(e&16){if(!(!L[f+22>>1]|(!(K[c+210|0]&8)|K[f+25|0]!=3))){e=0;while(1){a=J[f+76>>2]+e|0;H[a|0]=K[a|0]^-1;e=e+1|0;if(e>>>0>1])continue;break}}d=J[f+76>>2];b=L[f+22>>1];a=bc-16|0;bc=a;G:{H:switch(K[f+25|0]){case 3:if(!(b>>>0<=L[c+392>>1]?b:0)){Yc(c,61665);break G}Qh(c,1951551059,d,b);break G;case 0:b=L[f+88>>1];if((b|0)>= -1<>>8;H[a+10|0]=b;H[a+11|0]=b>>>8;Qh(c,1951551059,a+10|0,2);break G;case 2:d=L[f+82>>1];b=d>>>8|0;d=b|d<<8;H[a+10|0]=d;H[a+11|0]=d>>>8;e=L[f+84>>1];d=e>>>8|0;e=d|e<<8;H[a+12|0]=e;H[a+13|0]=e>>>8;g=L[f+86>>1];e=g>>>8|0;g=e|g<<8;H[a+14|0]=g;H[a+15|0]=g>>>8;if(!(!(e|(b|d))|K[c+402|0]!=8)){Yc(c,61948);break G}Qh(c,1951551059,a+10|0,6);break G;default:break H}Yc(c,62047)}bc=a+16|0;e=J[f+8>>2]}if(e&32){b=bc-16|0;bc=b;I:{J:{a=K[f+25|0];if((a|0)==3){d=L[c+392>>1]; -if(!(d|!(H[c+660|0]&1))){a=K[f+90|0];break J}a=K[f+90|0];if(d>>>0>a>>>0)break J;Yc(c,62158);break I}if(a&2){d=L[f+92>>1];a=d>>>8|0;d=a|d<<8;H[b+10|0]=d;H[b+11|0]=d>>>8;e=L[f+94>>1];d=e>>>8|0;e=d|e<<8;H[b+12|0]=e;H[b+13|0]=e>>>8;g=L[f+96>>1];e=g>>>8|0;g=e|g<<8;H[b+14|0]=g;H[b+15|0]=g>>>8;if(!(!(e|(a|d))|K[c+402|0]!=8)){Yc(c,62382);break I}Qh(c,1649100612,b+10|0,6);break I}a=L[f+98>>1];if((a|0)>=1<>>8;H[b+10|0]=a;H[b+11|0]=a>>>8;Qh(c,1649100612,b+10|0,2);break I}H[b+ -10|0]=a;Qh(c,1649100612,b+10|0,1)}bc=b+16|0;e=J[f+8>>2]}if(e&64){e=J[f+124>>2];b=0;a=bc-16|0;bc=a;d=L[f+20>>1];K:{if((d|0)>L[c+392>>1]){Yc(c,62625);break K}J[c+744>>2]=34;H[a+8|0]=104;H[a+9|0]=73;H[a+10|0]=83;H[a+11|0]=84;H[a+7|0]=d<<1;H[a+6|0]=d>>>7;H[a+5|0]=d>>>15;H[a+4|0]=d>>>23;bf(c,a+4|0,8);J[c+348>>2]=1749635924;Xl(c);pe(c,a+8|0,4);J[c+744>>2]=66;if(d)while(1){g=L[e+(b<<1)>>1];g=g<<8|g>>>8;H[a+1|0]=g;H[a+2|0]=g>>>8;g=a+1|0;bf(c,g,2);pe(c,g,2);b=b+1|0;if((d|0)!=(b|0))continue;break}J[c+744>> -2]=130;b=J[c+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;bf(c,a+12|0,4)}bc=a+16|0;e=J[f+8>>2]}if(e&256){b=J[f+100>>2];d=J[f+104>>2];a=bc-16|0;bc=a;e=K[f+108|0];if(e>>>0>=2)Yc(c,62731);H[a+15|0]=e;H[a+14|0]=d;H[a+13|0]=d>>>8;H[a+12|0]=d>>>16;H[a+11|0]=d>>>24;H[a+10|0]=b;H[a+9|0]=b>>>8;H[a+8|0]=b>>>16;H[a+7|0]=b>>>24;Qh(c,1866876531,a+7|0,9);bc=a+16|0;e=J[f+8>>2]}if(e&1024){g=J[f+160>>2];i=J[f+164>>2];k=J[f+168>>2];e=K[f+181|0];m=J[f+ -172>>2];h=J[f+176>>2];b=0;a=bc-16|0;bc=a;n=K[f+180|0];if(n>>>0>=4)Yc(c,62898);p=Qc(g);o=Qc(m)+((e|0)!=0)|0;d=(p+o|0)+11|0;l=_g(c,e<<2);if(e){r=e-1|0;while(1){q=b<<2;j=Qc(J[q+h>>2])+((b|0)!=(r|0))|0;J[l+q>>2]=j;d=d+j|0;b=b+1|0;if((e|0)!=(b|0))continue;break}}L:{if(!c)break L;J[c+744>>2]=34;H[a+6|0]=112;H[a+7|0]=67;H[a+8|0]=65;H[a+9|0]=76;H[a+5|0]=d;H[a+4|0]=d>>>8;H[a+3|0]=d>>>16;H[a+2|0]=d>>>24;bf(c,a+2|0,8);J[c+348>>2]=1883455820;Xl(c);pe(c,a+6|0,4);J[c+744>>2]=66;if(!g)break L;b=p+1|0;if(!b)break L; -bf(c,g,b);pe(c,g,b)}H[a+11|0]=e;H[a+10|0]=n;H[a+9|0]=k;H[a+8|0]=k>>>8;H[a+7|0]=k>>>16;H[a+6|0]=k>>>24;H[a+5|0]=i;H[a+4|0]=i>>>8;H[a+3|0]=i>>>16;H[a+2|0]=i>>>24;M:{N:{if(!c)break N;b=a+2|0;bf(c,b,10);pe(c,b,10);if(!(!m|!o)){bf(c,m,o);pe(c,m,o)}if(e){if(!c)break N;b=0;while(1){g=b<<2;d=J[g+h>>2];O:{if(!d)break O;g=J[g+l>>2];if(!g)break O;bf(c,d,g);pe(c,d,g)}b=b+1|0;if((e|0)!=(b|0))continue;break}}rd(c,l);if(!c)break M;J[c+744>>2]=130;b=J[c+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]= -b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;bf(c,a+12|0,4);break M}rd(c,l)}bc=a+16|0;e=J[f+8>>2]}if(e&16384){e=K[f+220|0];b=J[f+228>>2];a=bc+-64|0;bc=a;g=J[f+224>>2];d=Qc(g);i=Qc(b);k=(d+i|0)+2|0;P:{if(k>>>0>=65){Yc(c,63115);break P}H[a|0]=e;tc(a|1,g,d+1|0);tc((a+d|0)+2|0,b,i);Qh(c,1933787468,a,k)}bc=a- -64|0;e=J[f+8>>2]}if(e&128){b=J[f+112>>2];d=J[f+116>>2];a=bc-16|0;bc=a;e=K[f+120|0];if(e>>>0>=2)Yc(c,63151);H[a+15|0]=e;H[a+14|0]=d;H[a+13|0]=d>>>8;H[a+12|0]=d>>>16;H[a+11|0]=d>>>24;H[a+10| -0]=b;H[a+9|0]=b>>>8;H[a+8|0]=b>>>16;H[a+7|0]=b>>>24;Qh(c,1883789683,a+7|0,9);bc=a+16|0;e=J[f+8>>2]}if(e&512){lU(c,f+60|0);J[c+200>>2]=J[c+200>>2]|512;e=J[f+8>>2]}if(!(!(e&8192)|J[f+216>>2]<=0)){e=0;while(1){h=bc-16|0;bc=h;n=J[f+212>>2]+(e<<4)|0;a=K[n+4|0];d=J[n+12>>2];b=Qc(J[n>>2]);Q:{R:{S:{if(c){p=n+4|0;J[c+744>>2]=34;H[h+6|0]=115;H[h+7|0]=80;H[h+8|0]=76;H[h+9|0]=84;r=(a|0)==8?6:10;a=(b+P(r,d)|0)+2|0;H[h+5|0]=a;H[h+4|0]=a>>>8;H[h+3|0]=a>>>16;H[h+2|0]=a>>>24;bf(c,h+2|0,8);J[c+348>>2]=1934642260;Xl(c); -pe(c,h+6|0,4);J[c+744>>2]=66;a=b+1|0;T:{if(!a)break T;b=J[n>>2];if(!b)break T;bf(c,b,a);pe(c,b,a)}bf(c,p,1);pe(c,p,1);if(J[n+12>>2]<=0)break R;g=h+11|0;i=h+10|0;k=h+9|0;m=h+7|0;l=h+6|0;o=h+5|0;j=J[n+8>>2];while(1){a=L[j>>1];U:{if(K[p|0]!=8){a=a<<8|(a&65280)>>>8;H[h+2|0]=a;H[h+3|0]=a>>>8;a=L[j+2>>1];a=a<<8|a>>>8;H[h+4|0]=a;H[h+5|0]=a>>>8;a=L[j+4>>1];a=a<<8|a>>>8;H[h+6|0]=a;H[h+7|0]=a>>>8;q=L[j+6>>1];H[h+8|0]=q>>>8;b=i;d=k;a=g;break U}H[h+2|0]=a;H[h+3|0]=K[j+2|0];H[h+4|0]=K[j+4|0];q=K[j+6|0];b=l;d= -o;a=m}H[d|0]=q;d=b;b=L[j+8>>1];H[d|0]=b>>>8;H[a|0]=b;a=h+2|0;bf(c,a,r);pe(c,a,r);j=j+10|0;if(j>>>0>2]+P(J[n+12>>2],10)>>>0)continue;break}break S}a=J[n+12>>2];if((a|0)<=0)break Q;j=J[n+8>>2];a=j+P(a,10)|0;if(K[n+4|0]==8)while(1){H[h+2|0]=K[j|0];H[h+3|0]=K[j+2|0];H[h+4|0]=K[j+4|0];H[h+5|0]=K[j+6|0];b=L[j+8>>1];b=b<<8|b>>>8;H[h+6|0]=b;H[h+7|0]=b>>>8;j=j+10|0;if(a>>>0>j>>>0)continue;break S}while(1){b=L[j>>1];b=b<<8|b>>>8;H[h+2|0]=b;H[h+3|0]=b>>>8;b=L[j+2>>1];b=b<<8|b>>>8;H[h+4|0]=b;H[h+5|0]= -b>>>8;b=L[j+4>>1];b=b<<8|b>>>8;H[h+6|0]=b;H[h+7|0]=b>>>8;b=L[j+6>>1];b=b<<8|b>>>8;H[h+8|0]=b;H[h+9|0]=b>>>8;b=L[j+8>>1];b=b<<8|b>>>8;H[h+10|0]=b;H[h+11|0]=b>>>8;j=j+10|0;if(a>>>0>j>>>0)continue;break}}if(!c)break Q}J[c+744>>2]=130;a=J[c+384>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;bf(c,h+12|0,4)}bc=h+16|0;e=e+1|0;if((e|0)>2])continue;break}}if(J[f+48>>2]>0){a=J[f+56>>2];while(1){d=P(s,28);b=d+a|0;e=J[b>>2];V:{if((e|0)>0){nU(c, -e,J[b+4>>2],J[b+20>>2],J[b+24>>2],J[b+8>>2]);a=J[f+56>>2];b=d+a|0;if(J[b>>2]==-1){J[b>>2]=-3;break V}J[b>>2]=-2;break V}W:switch(e+1|0){case 1:oU(c,J[b+4>>2],J[b+8>>2]);a=J[f+56>>2];J[d+a>>2]=-2;break V;case 0:break W;default:break V}Qz(c,J[b+4>>2],J[b+8>>2]);a=J[f+56>>2];J[d+a>>2]=-3}s=s+1|0;if((s|0)>2])continue;break}}a=J[f+192>>2];if(!a|(a|0)<=0)break b;e=J[f+188>>2];while(1){a=qH(c,e);if(!((a|0)==1|(K[e+16|0]&14)!=2|!(K[e+3|0]&32|(a|0)==3|H[c+206|0]&1)))wG(c,e,J[e+8>>2],J[e+12>>2]);e= -e+20|0;if(e>>>0>2]+P(J[f+192>>2],20)>>>0)continue;break}}return}Ad(c,58246);B()}function zBa(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;e=bc-1104|0;bc=e;f=J[b>>2];m=a+12|0;Es(m);n=a+28|0;Sl(n,0,-1);j=a+52|0;Iz(j);k=a+80|0;Iz(k);l=a+108|0;Iz(l);a:{b:{c:{d:{g=Ns(f);h=g&127;if(h>>>0>=2){J[695492]=0;a=aa(5120,e+1064|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;b=e+1072|0;ca(5048,b|0,2378593,a|0);d=J[695492];J[695492]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((d| -0)!=1){J[695492]=0;g=e+1028|0;ca(5121,g|0,b|0,2379194);b=J[695492];J[695492]=0;if((b|0)==1)break m;J[695492]=0;d=aa(5120,e+1056|0,h|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[695492]=0;ca(5122,e+1080|0,g|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;b=J[e+1080>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;g=ja(5018,e|0,b|0,2377692,238,2386228,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[695492]=0;_(5019,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;break d}b=Z()|0;break a}b=Z()| -0;break e}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;Fc(g)}sc(e+1080|0)}sc(d)}sc(e+1028|0)}sc(e+1072|0);break a}n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{i=nk(f);G:{if(!i)break G;H:{if((i|0)<=0)break H;o=g&128;I:{J:{while(1){J[695492]=0;g=$(4,60)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[g+20>>2]=0;J[g>>2]=2386220;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;H[g+16|0]=0;c=J[682146];J[g+56>>2]=-1;H[g+52|0]=0;J[g+48>>2]=c;J[g+44>>2]=0;J[g+40>>2]=c;J[g+36>>2]=0;J[g+32>>2]=c; -J[g+28>>2]=0;J[g+24>>2]=c;J[695492]=0;J[e+1080>>2]=0;aa(4985,e+1080|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[695492]=0;g=$(4,12)|0;c=J[695492];J[695492]=0;K:{if((c|0)==1)break K;J[g>>2]=0;J[g+4>>2]=0;c=J[e+1080>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break K;c=J[e+1080>>2]}else c=0;J[g+8>>2]=c;J[695492]=0;of(m,g);g=J[695492];J[695492]=0;if((g|0)==1)break K;L:{if(o){J[695492]=0;g=$(5123,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break K;c=J[e+1080>> -2];J[c+8>>2]=g;if(!h){J[695492]=0;g=$(5124,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break K;c=J[e+1080>>2];J[c+12>>2]=g;g=J[c+8>>2]}if(g)break L;J[695492]=0;a=ja(5018,e|0,2379306,2377692,259,2386228,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;Fc(a);break I}c=J[e+1080>>2];J[c+8>>2]=0;J[c+12>>2]=0}J[695492]=0;J[e+1080>>2]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;p=J[695492];J[695492]=0;if((p|0)==1)break b;if(!g){J[695492]=0;_(4987, -c|0);g=J[695492];J[695492]=0;if((g|0)==1)break b}d=d+1|0;if((i|0)!=(d|0))continue;break H}break}c=Z()|0;break I}c=Z()|0}vc(e+1080|0);ba(c|0);B()}c=0;d=J[b>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break c;c=J[b>>2]}J[695492]=0;J[e+1052>>2]=c;da(5125,e+1064|0,e+1052|0);b=J[695492];J[695492]=0;M:{N:{O:{P:{Q:{if((b|0)!=1){b=J[e+1052>>2];J[e+1052>>2]=0;R:{if(!b)break R;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break b;if(d)break R; -J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}b=J[e+1064>>2];S:{if(!h)break S;c=J[a+20>>2];if(!c)break S;while(1){J[695492]=0;d=$(5124,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break P;J[J[c+8>>2]+12>>2]=d;c=J[c>>2];if(c)continue;break}}c=J[a+20>>2];if(c)while(1){J[695492]=0;d=$(5126,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break Q;H[J[c+8>>2]+52|0]=d;c=J[c>>2];if(c)continue;break}T:{if(h)break T;c=J[a+20>>2];if(!c)break T;while(1){g=J[c+8>>2];d=K[g+52|0];H[g+52|0]=d<<4&64| -(d<<6&128|d&1);c=J[c>>2];if(c)continue;break}}J[695492]=0;g=e+1028|0;J[g+20>>2]=-1;J[g+12>>2]=-1;J[g+16>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g>>2]=2388156;d=J[695492];J[695492]=0;if((d|0)==1)break O;while(1){d=J[J[b>>2]+8>>2];J[695492]=0;d=ga(d|0,b|0,e|0,1024)|0;c=J[695492];J[695492]=0;if((c|0)==1)break F;if(!d)break M;c=J[g+16>>2];f=J[g+20>>2];J[695492]=0;c=(f-c|0)+1|0;ca(5128,g|0,0,(c+d|0)-1|0);f=J[695492];J[695492]=0;if((f|0)==1)break N;tc(c+(J[g+4>>2]-J[g+8>>2]|0)|0,e,d);continue}}a=Z()|0;vc(e+1052| -0);ba(a|0);B()}c=Z()|0;break n}c=Z()|0;break n}c=Z()|0;break n}c=Z()|0;break o}c=0;d=J[a+20>>2];U:{if(!d)break U;b=J[g+4>>2]-J[g+8>>2]|0;while(1){c=0;V:{W:{X:{Y:{f=J[d+8>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break Y;c=J[d+8>>2]}J[695492]=0;J[e+1072>>2]=c;aa(5054,c+36|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;c=J[e+1072>>2];f=J[c+36>>2];Z:{if(!f){b=b+1|0;if(H[c+52|0]<0)break Z;J[e+1080>>2]=0;break W}b=(J[f+8>>2]+b|0)+1|0;if(H[c+52|0]>=0)break X}J[695492]= -0;aa(5054,c+20|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;c=J[e+1072>>2];f=J[c+20>>2];if(f)f=J[f+8>>2];else f=0;b=(f+b|0)+1|0;break V}c=Z()|0;break o}h=J[J[f>>2]+28>>2];J[695492]=0;ca(h|0,e+1080|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break q}J[695492]=0;aa(4993,c+20|0,e+1080|0)|0;f=J[695492];J[695492]=0;_:{if((f|0)!=1){f=J[e+1080>>2];J[e+1080>>2]=0;if(!f)break _;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break _;J[695492]=0;_(4987,f|0);f=J[695492]; -J[695492]=0;if((f|0)!=1)break _}break b}c=Z()|0;vc(e+1080|0);break p}f=J[c+20>>2];J[c+24>>2]=J[(f?f+12|0:2728584)>>2]}$:{aa:{if(K[c+52|0]&64){J[695492]=0;aa(5054,c+44|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;c=J[e+1072>>2];f=J[c+44>>2];if(f)f=J[f+8>>2];else f=0;J[e+1072>>2]=0;b=(b+f|0)+1|0;break aa}f=J[c+36>>2];ba:{if(f){h=J[J[f>>2]+28>>2];J[695492]=0;ca(h|0,e+1080|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break q;break ba}J[e+1080>>2]=0}J[695492]=0;aa(4993,c+44|0,e+1080|0)|0;f=J[695492]; -J[695492]=0;ca:{if((f|0)!=1){f=J[e+1080>>2];J[e+1080>>2]=0;if(!f)break ca;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break ca;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break ca}break b}c=Z()|0;vc(e+1080|0);break p}f=c;c=J[c+44>>2];J[f+48>>2]=J[(c?c+12|0:2728584)>>2];c=J[e+1072>>2];J[e+1072>>2]=0;if(!c)break $}J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)==1)break b;if(f)break $;J[695492]=0;_(4987,c|0);c=J[695492]; -J[695492]=0;if((c|0)==1)break b}d=J[d>>2];if(d)continue;break}c=0;d=J[a+20>>2];if(!d)break U;b=d;while(1){c=((K[J[b+8>>2]+52|0]&63)==3)+c|0;b=J[b>>2];if(b)continue;break}if(c>>>0>1)break r;c=0;if(!d)break U;while(1){c=((K[J[d+8>>2]+52|0]&63)==1)+c|0;d=J[d>>2];if(d)continue;break}}J[695492]=0;ca(5128,n|0,0,c-1|0);b=J[695492];J[695492]=0;if((b|0)==1)break s;b=J[a+20>>2];da:{if(!b)break da;d=0;while(1){c=0;ea:{fa:{ga:{ha:{ia:{f=J[b+8>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[695492];J[695492]= -0;if((c|0)==1)break ia;c=J[b+8>>2]}J[e+1072>>2]=c;if((K[c+52|0]&63)==1){if(!(J[a+44>>2]<=(d|0)&J[a+48>>2]>=(d|0))){J[695492]=0;a=ja(5018,e+1080|0,2388219,2388431,619,2388563,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break ga;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;Fc(a);break fa}c=J[a+32>>2];f=J[a+36>>2];J[695492]=0;aa(4993,c+(d-f<<2)|0,e+1072|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break ha;c=J[e+1072>>2];J[c+56>>2]=d;d=d+1|0}J[695492]=0;J[e+1072>>2]=0;f=J[c+4>> -2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break ea;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break ea}break b}c=Z()|0;break o}c=Z()|0;break fa}c=Z()|0}vc(e+1072|0);break o}b=J[b>>2];if(b)continue;break}b=J[a+20>>2];if(!b)break da;while(1){c=0;d=J[b+8>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break v;c=J[b+8>>2]}J[695492]=0;J[e+1056>>2]=c;f=c+20|0;d=kf(f);c=J[695492];J[695492]=0;if((c|0)==1)break x;J[695492]=0;c=J[J[j+12>>2]+ -((d>>>0)%M[j+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break x;if(c)while(1){if((d|0)==J[c+12>>2]){J[695492]=0;h=ga(5117,c+16|0,f|0,-1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break w;if(!h)break u}c=J[c+8>>2];if(c)continue;break}J[695492]=0;d=aa(5130,j|0,J[e+1056>>2]+20|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break y;J[695492]=0;aa(4993,d+24|0,e+1056|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break y;d=J[e+1056>>2];J[e+1056>>2]=0;ja:{if(!d)break ja;J[695492]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;f= -J[695492];J[695492]=0;if((f|0)!=1){if(c)break ja;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break ja}break b}b=J[b>>2];if(b)continue;break}b=J[a+20>>2];if(!b)break da;while(1){c=0;d=J[b+8>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break B;c=J[b+8>>2]}J[695492]=0;J[e+1056>>2]=c;f=c+36|0;d=kf(f);c=J[695492];J[695492]=0;if((c|0)==1)break D;J[695492]=0;c=J[J[k+12>>2]+((d>>>0)%M[k+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break D;if(c)while(1){if((d| -0)==J[c+12>>2]){J[695492]=0;h=ga(5117,c+16|0,f|0,-1)|0;j=J[695492];J[695492]=0;if((j|0)==1)break C;if(!h)break A}c=J[c+8>>2];if(c)continue;break}J[695492]=0;d=aa(5130,k|0,J[e+1056>>2]+36|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break E;J[695492]=0;aa(4993,d+24|0,e+1056|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break E;d=J[e+1056>>2];J[e+1056>>2]=0;ka:{if(!d)break ka;J[695492]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break ka;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]= -0;if((d|0)!=1)break ka}break b}b=J[b>>2];if(b)continue;break}a=J[a+20>>2];if(!a)break da;while(1){c=0;la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{b=J[a+8>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break ta;c=J[a+8>>2]}J[e+1056>>2]=c;ua:{b=J[c+44>>2];va:{if(!b){J[e+1056>>2]=0;break va}if(!J[b+8>>2]){J[e+1056>>2]=0;break va}J[695492]=0;d=c+44|0;b=kf(d);c=J[695492];J[695492]=0;if((c|0)==1)break ra;J[695492]=0;c=J[J[l+12>>2]+((b>>>0)%M[l+8>>2]<<2)>>2];f=J[695492];J[695492]= -0;if((f|0)==1)break ra;if(c)while(1){if((b|0)==J[c+12>>2]){J[695492]=0;f=ga(5117,c+16|0,d|0,-1)|0;h=J[695492];J[695492]=0;if((h|0)==1)break sa;if(!f)break ua}c=J[c+8>>2];if(c)continue;break}J[695492]=0;b=aa(5130,l|0,J[e+1056>>2]+44|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break na;J[695492]=0;aa(4993,b+24|0,e+1056|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break na;c=J[e+1056>>2];J[e+1056>>2]=0;if(!c)break la}J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break la; -J[695492]=0;_(4987,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break la}break b}J[695492]=0;ca(5048,e+1072|0,2381394,J[e+1056>>2]+44|0);a=J[695492];J[695492]=0;if((a|0)==1)break qa;a=J[e+1072>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,e+1080|0,a|0,2377692,389,2386228,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break pa;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;Fc(a);break oa}c=Z()|0;break o}c=Z()|0;break ma}c=Z()|0;break ma}c=Z()|0;break ma}c=Z()|0}sc(e+1072| -0);break ma}c=Z()|0}vc(e+1056|0);break o}a=J[a>>2];if(a)continue;break}}xd(g);a=J[e+1064>>2];J[e+1064>>2]=0;if(!a)break G;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(b)break G;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}bc=e+1104|0;return}c=Z()|0;break o}c=Z()|0;break z}c=Z()|0;break z}c=Z()|0;break z}c=Z()|0;break o}J[695492]=0;ca(5048,e+1072|0,2380999,J[e+1056>>2]+36|0);a=J[695492];J[695492]=0;wa:{xa:{if((a|0)!=1){a=J[e+1072>>2]; -a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,e+1080|0,a|0,2377692,378,2386228,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break xa;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;Fc(a);break wa}c=Z()|0;break z}c=Z()|0}sc(e+1072|0)}vc(e+1056|0);break o}c=Z()|0;break t}c=Z()|0;break t}c=Z()|0;break t}c=Z()|0;break o}J[695492]=0;ca(5048,e+1072|0,2380470,J[e+1056>>2]+20|0);a=J[695492];J[695492]=0;ya:{za:{if((a|0)!=1){a=J[e+1072>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a= -ja(5018,e+1080|0,a|0,2377692,369,2386228,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break za;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;Fc(a);break ya}c=Z()|0;break t}c=Z()|0}sc(e+1072|0)}vc(e+1056|0);break o}c=Z()|0;break o}J[695492]=0;a=ja(5018,e+1080|0,2379701,2377692,345,2386228,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;Fc(a);break o}c=Z()|0;break o}c=Z()|0}vc(e+1072|0)}xd(g)}vc(e+1064|0); -ba(c|0);B()}B()}ba(Z()|0);B()}ea(0)|0;yc();B()}sc(a);ba(b|0);B()}function y5(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;J[a+980>>2]=0;e=J[a+20>>2];J[a+984>>2]=e-1;J[a+988>>2]=P(e,J[a+16>>2]);gc[J[J[b>>2]+44>>2]](b,44)|0;e=J[a+392>>2];gc[J[J[b>>2]+44>>2]](b,e&255)|0;gc[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;e=J[a+396>>2];gc[J[J[b>>2]+44>>2]](b,e&255)|0;gc[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;e=J[a+16>>2];gc[J[J[b>>2]+44>>2]](b,e&255)|0;gc[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;e= -J[a+20>>2];gc[J[J[b>>2]+44>>2]](b,e&255)|0;gc[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;gc[J[J[b>>2]+44>>2]](b,(c?K[a+26|0]-1|128:0)&255)|0;a:{if(!c)break a;c=J[a+44>>2];if(!c)break a;e=J[a+4>>2];e=e?c?e+40|0:0:0;while(1){c=e+(j<<2)|0;gc[J[J[b>>2]+44>>2]](b,K[c+2|0])|0;gc[J[J[b>>2]+44>>2]](b,K[c+1|0])|0;gc[J[J[b>>2]+44>>2]](b,K[c|0])|0;j=j+1|0;if(j>>>0>2])continue;break}}c=L[a+26>>1];c=c>>>0<=2?2:c;gc[J[J[b>>2]+44>>2]](b,c&255)|0;c=c+1|0;b:{c:switch(eq(a,2)-1|0){case 0:J[a+1096>>2]=b;J[a+1092>>2]= -c;J[a+1088>>2]=0;J[a+1080>>2]=c;J[a+992>>2]=0;J[a+996>>2]=0;J[a+1108>>2]=0;e=1<>2]=e;I[a+1084>>1]=-1<>2]=e+1;I[a+1086>>1]=e+2;c=J[a+988>>2];d:{if(c){J[a+988>>2]=c-1;c=lj(a,J[a+980>>2],J[a+984>>2]);e=J[a+980>>2]+1|0;J[a+980>>2]=e;if((e|0)==J[a+16>>2]){J[a+980>>2]=0;J[a+984>>2]=J[a+984>>2]-1}on(a,I[a+1100>>1]);while(1){j=-1;e=J[a+988>>2];e:{if(!e)break e;J[a+988>>2]=e-1;j=lj(a,J[a+980>>2],J[a+984>>2]);e=J[a+980>>2]+1|0;J[a+980>>2]=e;if((e|0)!=J[a+16>>2])break e;J[a+980>> -2]=0;J[a+984>>2]=J[a+984>>2]-1}on(a,c<<16>>16);c=I[a+1086>>1];f:{if((c|0)<=4095){I[a+1086>>1]=c+1;break f}J[a+1088>>2]=1;c=I[a+1100>>1];I[a+1086>>1]=c+2;on(a,c)}c=j;if((c|0)!=-1)continue;break}break d}on(a,I[a+1100>>1])}on(a,I[a+1104>>1]);break b;case 1:h=bc-336|0;bc=h;J[a+1096>>2]=b;J[a+1092>>2]=c;g=1<>2]=g;J[h+32>>2]=c;J[h+28>>2]=c;J[h+12>>2]=0;J[h+36>>2]=0;J[h+332>>2]=0;J[h+20>>2]=0;J[h+24>>2]=1;J[h+72>>2]=c;J[h+68>>2]=g;J[h+64>>2]=g+1;e=g-1|0;J[h+44>>2]=e;J[h+8>>2]=g+2;J[h+56>>2]= -4093-g;J[h+40>>2]=e;e=(c|0)<4?9:g-2|0;J[h+52>>2]=e;J[h+48>>2]=e;if((c|0)>=8){c=h+76|0;j=0;while(1){J[h+332>>2]=j+1;H[(h+j|0)+76|0]=g;j=J[h+332>>2];if((j|0)>=255){e=J[a+1096>>2];gc[J[J[e>>2]+44>>2]](e,j&255)|0;e=J[a+1096>>2];gc[J[J[e>>2]+16>>2]](e,c,1,J[h+332>>2])|0;J[h+332>>2]=0;j=0}g=J[h+68>>2]>>>8|0;J[h+68>>2]=g;e=J[h+72>>2];J[h+72>>2]=e-8;if((e|0)>15)continue;break}}while(1){c=J[a+988>>2];g:{if(!c){j=-1;break g}J[a+988>>2]=c-1;j=lj(a,J[a+980>>2],J[a+984>>2]);c=J[a+980>>2]+1|0;J[a+980>>2]=c;if((c| -0)!=J[a+16>>2])break g;J[a+980>>2]=0;J[a+984>>2]=J[a+984>>2]-1}g=J[h+12>>2];h:{if((g|0)<=0)break h;c=J[h+4>>2];if((c|0)==(j|0))break h;i:{if((g|0)==1){Mp(a,c,h+4|0);break i}if(J[h+24>>2]){PC(a,g,h+4|0);break i}if(!((c|0)==J[h+16>>2]&J[h+20>>2]>=2)){k=0;i=1;f=h+4|0;e=K[f+52|0]|K[f+53|0]<<8|(K[f+54|0]<<16|K[f+55|0]<<24);d=P(e+1|0,e)>>>1|0;j:{if(d>>>0>g>>>0){c=g;break j}c=g;while(1){k=e+k|0;c=c-d|0;if(d>>>0<=c>>>0)continue;break}}e=c;k:{l:{m:switch(c|0){case 0:break k;case 1:break l;default:break m}while(1){i= -i<<1;d=e>>>0>3;e=e>>>2|0;if(d)continue;break}while(1){e=i;i=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(i|0))break l;if((e+1|0)!=(i|0))continue;break}}i=c<<1;while(1){c=e;e=c-1|0;if(i>>>0<=P(c+1|0,c)>>>0)continue;break}while(1){e=c;c=c+1|0;if(i>>>0>P(e,c)>>>0)continue;break}k=e+k|0}n:{if((k+1|0)>=(g|0)){if((g|0)<=0)break n;while(1){Mp(a,K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24),f);c=g>>>0>1;g=g-1|0;if(c)continue;break}break n}e=K[f+68|0]|K[f+69|0]<<8|(K[f+70|0]<<16|K[f+71|0]<<24);c=e+(K[f+24|0]|K[f+ -25|0]<<8|(K[f+26|0]<<16|K[f+27|0]<<24))|0;H[f+68|0]=c;H[f+69|0]=c>>>8;H[f+70|0]=c>>>16;H[f+71|0]=c>>>24;e=K[f+64|0]|K[f+65|0]<<8|(K[f+66|0]<<16|K[f+67|0]<<24)|(K[f+56|0]|K[f+57|0]<<8|(K[f+58|0]<<16|K[f+59|0]<<24))<>>8;H[f+66|0]=e>>>16;H[f+67|0]=e>>>24;if((c|0)>=8){d=f+72|0;c=K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<<16|K[f+331|0]<<24);while(1){i=c+1|0;H[f+328|0]=i;H[f+329|0]=i>>>8;H[f+330|0]=i>>>16;H[f+331|0]=i>>>24;H[(c+f|0)+72|0]=e;c=K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<< -16|K[f+331|0]<<24);if((c|0)>=255){e=J[a+1096>>2];gc[J[J[e>>2]+44>>2]](e,c&255)|0;c=J[a+1096>>2];gc[J[J[c>>2]+16>>2]](c,d,1,K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<<16|K[f+331|0]<<24))|0;H[f+328|0]=0;H[f+329|0]=0;H[f+330|0]=0;H[f+331|0]=0;c=0}e=(K[f+64|0]|K[f+65|0]<<8|(K[f+66|0]<<16|K[f+67|0]<<24))>>>8|0;H[f+64|0]=e;H[f+65|0]=e>>>8;H[f+66|0]=e>>>16;H[f+67|0]=e>>>24;k=K[f+68|0]|K[f+69|0]<<8|(K[f+70|0]<<16|K[f+71|0]<<24);i=k-8|0;H[f+68|0]=i;H[f+69|0]=i>>>8;H[f+70|0]=i>>>16;H[f+71|0]=i>>>24;if((k|0)>15)continue; -break}}H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=1;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;c=K[f+28|0]|K[f+29|0]<<8|(K[f+30|0]<<16|K[f+31|0]<<24);H[f+24|0]=c;H[f+25|0]=c>>>8;H[f+26|0]=c>>>16;H[f+27|0]=c>>>24;c=K[f+40|0]|K[f+41|0]<<8|(K[f+42|0]<<16|K[f+43|0]<<24);H[f+36|0]=c;H[f+37|0]=c>>>8;H[f+38|0]=c>>>16;H[f+39|0]=c>>>24;c=K[f+48|0]|K[f+49|0]<<8|(K[f+50|0]<<16|K[f+51|0]<<24);H[f+44|0]=c;H[f+45|0]=c>>>8;H[f+46|0]=c>>>16;H[f+47|0]=c>>>24; -PC(a,g,f)}break i}m=0;i=g;d=h+4|0;l=K[d+52|0]|K[d+53|0]<<8|(K[d+54|0]<<16|K[d+55|0]<<24);c=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);n=(g|0)/(c|0)|0;f=g-P(n,c)|0;o=(f|0)!=0;e=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);o:{if((l|0)>=(o+(e+n|0)|0)){g=P(l+1|0,l)>>>1|0;break o}k=1;g=P(l+1|0,l)>>>1|0;n=l-e|0;f=i-P(c,n)|0;p:{if(g>>>0>f>>>0){c=f;break p}c=f;while(1){m=l+m|0;c=c-g|0;if(g>>>0<=c>>>0)continue;break}}o=c;e=c;q:{r:{s:switch(c|0){case 0:break q;case 1:break r;default:break s}while(1){k= -k<<1;e=o>>>0>3;o=o>>>2|0;if(e)continue;break}while(1){e=k;k=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(k|0))break r;if((e+1|0)!=(k|0))continue;break}}k=c<<1;while(1){c=e;e=c-1|0;if(k>>>0<=P(c+1|0,c)>>>0)continue;break}while(1){e=c;c=c+1|0;if(k>>>0>P(e,c)>>>0)continue;break}m=e+m|0}o=m+1|0}k=0;t:{if(g>>>0>i>>>0){e=i;break t}e=i;while(1){k=k+l|0;e=e-g|0;if(g>>>0<=e>>>0)continue;break}}g=1;m=e;u:{v:{w:{c=e;switch(c|0){case 0:break u;case 1:break v;default:break w}}while(1){g=g<<1;c=m>>>0>3;m=m>>>2|0;if(c)continue; -break}while(1){c=g;g=c+((e>>>0)/(c>>>0)|0)>>>1|0;if((c|0)==(g|0))break v;if((c+1|0)!=(g|0))continue;break}}e=e<<1;while(1){g=c;c=c-1|0;if(e>>>0<=P(g+1|0,g)>>>0)continue;break}while(1){c=g;g=c+1|0;if(e>>>0>P(g,c)>>>0)continue;break}k=c+k|0}x:{if(k+1>>>0>>0){c=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);e=c+(K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24))|0;H[d+68|0]=e;H[d+69|0]=e>>>8;H[d+70|0]=e>>>16;H[d+71|0]=e>>>24;c=K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24)|(K[d+56| -0]|K[d+57|0]<<8|(K[d+58|0]<<16|K[d+59|0]<<24))<>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;if((e|0)>=8){f=d+72|0;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);while(1){e=g+1|0;H[d+328|0]=e;H[d+329|0]=e>>>8;H[d+330|0]=e>>>16;H[d+331|0]=e>>>24;H[(d+g|0)+72|0]=c;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);if((g|0)>=255){c=J[a+1096>>2];gc[J[J[c>>2]+44>>2]](c,g&255)|0;c=J[a+1096>>2];gc[J[J[c>>2]+16>>2]](c,f,1,K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+ -331|0]<<24))|0;H[d+328|0]=0;H[d+329|0]=0;H[d+330|0]=0;H[d+331|0]=0;g=0}c=(K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24))>>>8|0;H[d+64|0]=c;H[d+65|0]=c>>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;k=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);e=k-8|0;H[d+68|0]=e;H[d+69|0]=e>>>8;H[d+70|0]=e>>>16;H[d+71|0]=e>>>24;if((k|0)>15)continue;break}}H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35|0]=0;H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=1;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;c=K[d+28| -0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[d+36|0]=c;H[d+37|0]=c>>>8;H[d+38|0]=c>>>16;H[d+39|0]=c>>>24;c=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<<24);H[d+44|0]=c;H[d+45|0]=c>>>8;H[d+46|0]=c>>>16;H[d+47|0]=c>>>24;PC(a,i,d);break x}H[d+44|0]=l;H[d+45|0]=l>>>8;H[d+46|0]=l>>>16;H[d+47|0]=l>>>24;if((n|0)>0)while(1){Mp(a,((K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24))+(K[d+ -16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24))|0)-2|0,d);c=n>>>0>1;n=n-1|0;if(c)continue;break}y:{if(!f)break y;if(K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24)){PC(a,f,d);break y}if((f|0)==1){Mp(a,K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),d);break y}Mp(a,((K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24))+f|0)-2|0,d)}g=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<<24);H[d+44|0]=g;H[d+45|0]=g>>>8;H[d+46|0]=g>>>16;H[d+47|0]=g>>>24;if((g|0)<=(K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16| -K[d+35|0]<<24))){c=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);i=c+(K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24))|0;H[d+68|0]=i;H[d+69|0]=i>>>8;H[d+70|0]=i>>>16;H[d+71|0]=i>>>24;c=K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24)|(K[d+56|0]|K[d+57|0]<<8|(K[d+58|0]<<16|K[d+59|0]<<24))<>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;e=d;if((i|0)>=8){f=d+72|0;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);while(1){i=g+1|0;H[d+328|0]=i;H[d+329|0]=i>>>8; -H[d+330|0]=i>>>16;H[d+331|0]=i>>>24;H[(d+g|0)+72|0]=c;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);if((g|0)>=255){c=J[a+1096>>2];gc[J[J[c>>2]+44>>2]](c,g&255)|0;c=J[a+1096>>2];gc[J[J[c>>2]+16>>2]](c,f,1,K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24))|0;H[d+328|0]=0;H[d+329|0]=0;H[d+330|0]=0;H[d+331|0]=0;g=0}c=(K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24))>>>8|0;H[d+64|0]=c;H[d+65|0]=c>>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;k=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+ -71|0]<<24);i=k-8|0;H[d+68|0]=i;H[d+69|0]=i>>>8;H[d+70|0]=i>>>16;H[d+71|0]=i>>>24;if((k|0)>15)continue;break}c=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<<24)}else c=g;H[d+44|0]=c;H[e+45|0]=c>>>8;H[e+46|0]=c>>>16;H[e+47|0]=c>>>24;H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35|0]=0;H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=1;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;c=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=K[d+ -40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[d+36|0]=c;H[d+37|0]=c>>>8;H[d+38|0]=c>>>16;H[d+39|0]=c>>>24}}}g=0;J[h+12>>2]=0}if((j|0)!=-1){if(J[h+4>>2]==(j|0)){J[h+12>>2]=g+1;continue}J[h+4>>2]=j;J[h+12>>2]=1;continue}break}e=J[h+72>>2];c=e+J[h+28>>2]|0;J[h+72>>2]=c;g=J[h+68>>2]|J[h+64>>2]<>2]=g;if((c|0)>=8){e=h+76|0;j=J[h+332>>2];while(1){J[h+332>>2]=j+1;H[(h+j|0)+76|0]=g;j=J[h+332>>2];if((j|0)>=255){c=J[a+1096>>2];gc[J[J[c>>2]+44>>2]](c,j&255)|0;c=J[a+1096>>2];gc[J[J[c>>2]+16>>2]](c, -e,1,J[h+332>>2])|0;J[h+332>>2]=0;j=0}g=J[h+68>>2]>>>8|0;J[h+68>>2]=g;i=J[h+72>>2];c=i-8|0;J[h+72>>2]=c;if((i|0)>15)continue;break}}z:{A:{B:{if((c|0)<=0){j=J[h+332>>2];break B}c=J[h+332>>2];J[h+332>>2]=c+1;H[(c+h|0)+76|0]=g;j=J[h+332>>2];if((j|0)>254)break A}if((j|0)<=0)break z}c=J[a+1096>>2];gc[J[J[c>>2]+44>>2]](c,j&255)|0;a=J[a+1096>>2];gc[J[J[a>>2]+16>>2]](a,h+76|0,1,J[h+332>>2])|0}bc=h+336|0;break b;default:break c}J[a+1096>>2]=b;J[a+1092>>2]=c;J[a+1088>>2]=0;J[a+1080>>2]=c;J[a+992>>2]=0;J[a+996>> -2]=0;J[a+1108>>2]=0;g=-1;e=1<>2]=e;I[a+1084>>1]=-1<>2]=e+1;I[a+1086>>1]=e+2;c=J[a+988>>2];C:{if(!c)break C;J[a+988>>2]=c-1;g=lj(a,J[a+980>>2],J[a+984>>2]);c=J[a+980>>2]+1|0;J[a+980>>2]=c;if((c|0)!=J[a+16>>2])break C;J[a+980>>2]=0;J[a+984>>2]=J[a+984>>2]-1}wc(J[a+1072>>2],255,20012);on(a,I[a+1100>>1]);c=J[a+988>>2];if(c)while(1){J[a+988>>2]=c-1;e=lj(a,J[a+980>>2],J[a+984>>2]);c=J[a+980>>2]+1|0;J[a+980>>2]=c;if((c|0)==J[a+16>>2]){J[a+980>>2]=0;J[a+984>>2]=J[a+984>>2]-1}f= -J[a+1072>>2];c=e<<4^g;d=J[f+(c<<2)>>2];i=(e<<12)+g|0;D:{if((d|0)==(i|0)){e=L[J[a+1076>>2]+(c<<1)>>1];break D}if((d|0)>=0){d=c?c-5003|0:-1;while(1){c=c+d|0;c=(c|0)<0?c+5003|0:c;j=J[f+(c<<2)>>2];if((j|0)==(i|0)){e=L[J[a+1076>>2]+(c<<1)>>1];break D}if((j|0)>0)continue;break}}on(a,g<<16>>16);g=I[a+1086>>1];if((g|0)<=4095){I[a+1086>>1]=g+1;I[J[a+1076>>2]+(c<<1)>>1]=g;J[J[a+1072>>2]+(c<<2)>>2]=i;break D}wc(J[a+1072>>2],255,20012);J[a+1088>>2]=1;c=I[a+1100>>1];I[a+1086>>1]=c+2;on(a,c)}g=e;c=J[a+988>>2]; -if(c)continue;break}on(a,g<<16>>16);on(a,I[a+1104>>1])}gc[J[J[b>>2]+44>>2]](b,0)|0}function u5(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;g=bc-32|0;bc=g;r=J[b+100>>2];a:{b:{if(nd(a,0))break b;d=Me(a,260288,b+184|0);J[g+28>>2]=d;if(J[b+184>>2]!=1885562369|d)break b;d=J[b+188>>2];if(!d)break b;h=J[a+4>>2];if(h>>>0<16)break b;e=h>>>4|0;if(!(d>>>0<=9&e>>>0>=d>>>0)){d=h>>>0>=144?9:e;J[b+188>>2]=d}d=Sc(r,16,0,d,0,g+28|0);J[b+192>>2]=d;if(J[g+28>>2])break b; -c:{d:{e:{f:{if(J[b+188>>2]){while(1){e=Me(a,260304,d);J[g+28>>2]=e;if(e)break d;d=d+16|0;f=f+1|0;e=J[b+188>>2];if(f>>>0>>0)continue;break}d=J[b+192>>2];if((e|0)==1)break f;f=e}h=0;g:{h:{while(1){m=h+1|0;if((m|0)==(f|0)){i=f-1|0;h=J[a+4>>2];d=J[b+192>>2];break h}l=h^-1;e=J[d+12>>2];k=0;i=0;while(1){j=(i<<4)+d|0;i=i+1|0;f=(i<<4)+d|0;h=J[f+12>>2];if(e>>>0>h>>>0){e=J[j+12>>2];J[g+16>>2]=J[j+8>>2];J[g+20>>2]=e;e=J[j+4>>2];J[g+8>>2]=J[j>>2];J[g+12>>2]=e;e=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=e; -e=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=e;e=J[g+20>>2];J[f+8>>2]=J[g+16>>2];J[f+12>>2]=e;e=J[g+12>>2];J[f>>2]=J[g+8>>2];J[f+4>>2]=e;k=1;h=J[f+12>>2]}e=J[j+8>>2];if(e>>>0>h>>>0|M[j+12>>2]>h-e>>>0)break g;e=h;f=J[b+188>>2];if(l+f>>>0>i>>>0)continue;break}i=f-1|0;if(k){h=m;if(i>>>0>h>>>0)continue}break}h=J[a+4>>2];d=J[b+192>>2];m=d;if(!i)break e}m=((f<<4)+d|0)-16|0;e=0;f=d;while(1){k=J[f+8>>2];if(!(k>>>0<=h>>>0&M[f+12>>2]<=h-k>>>0)){J[g+28>>2]=8;break d}f=f+16|0;e=e+1|0;if((i|0)!=(e|0))continue;break}break e}J[g+ -28>>2]=9;break d}h=J[a+4>>2];m=d}e=J[m+12>>2];if(e>>>0>h>>>0){J[g+28>>2]=8;break d}e=h-e|0;if(e>>>0>2])J[m+8>>2]=e;J[g+4>>2]=0;break c}d=J[b+192>>2];if(d)gc[J[r+8>>2]](r,d);d=0;J[b+192>>2]=0;e=J[g+28>>2];J[g+4>>2]=e;if(e)break b}J[b>>2]=1;J[b+4>>2]=0;e=0;if((c|0)<0)break a;p=J[b+100>>2];i=3;i:{j:{c=J[b+188>>2];k:{if(!c)break k;f=0;while(1){e=(f<<4)+d|0;if(J[e>>2]==1){i=83;d=J[e+12>>2];c=J[a+8>>2];if(d>>>0>>0)break k;if(bg(a,d-c|0))break k;k=J[e+8>>2];c=0;J[g+8>>2]=0;d=Vi(a,g+8|0);if(!J[g+ -8>>2])break j;f=0;break i}f=f+1|0;if((c|0)!=(f|0))continue;break}}J[g+8>>2]=i;c=0;f=0;break i}if(d>>>0>255){f=0;break i}m=d&4;l:{if(m){e=Kf(a,g+8|0);break l}e=Vi(a,g+8|0)}if(J[g+8>>2]){f=0;break i}if(e>>>0>(k>>>0)/9>>>0){J[g+8>>2]=8;f=0;break i}n=e>>>0>=256?256:e;J[b+280>>2]=n;f=Sc(p,12,0,n,0,g+8|0);if(J[g+8>>2])break i;m:{if(!e)break m;h=n>>>0<=1?1:n;i=0;if(!m)while(1){d=Me(a,260368,P(i,12)+f|0);J[g+8>>2]=d;if(d)break i;i=i+1|0;if((h|0)!=(i|0))continue;break m}while(1){d=Me(a,260336,P(i,12)+f|0); -J[g+8>>2]=d;if(d)break i;i=i+1|0;if((h|0)!=(i|0))continue;break}}d=bg(a,P(e-n|0,9));J[g+8>>2]=d;if(d){J[g+8>>2]=83;break i}n:{d=e&3;if(!d)break n;d=bg(a,4-d|0);J[g+8>>2]=d;if(!d)break n;J[g+8>>2]=83;break i}o:{if(m){d=Kf(a,g+8|0);break o}d=Vi(a,g+8|0)}if(J[g+8>>2])break i;if(d>>>0>k+P(e,-9)>>>0){J[g+8>>2]=8;break i}j=d>>>0>=16777472?16777472:d;h=g+8|0;c=Sc(p,1,0,j+1|0,0,h);if(J[g+8>>2])break i;d=mg(a,c,j);J[g+8>>2]=d;if(d)break i;l=Sc(p,12,0,n,0,h);if(J[g+8>>2])break i;J[b+284>>2]=l;if(e){h=n>>>0<= -1?1:n;d=0;while(1){e=P(d,12);k=e+f|0;m=J[k>>2];if(!((m|0)>=0&j>>>0>=m>>>0)){J[g+8>>2]=9;break i}i=e+l|0;w=i,x=ak(p,c+m|0,g+8|0),J[w>>2]=x;if(J[g+8>>2])break i;e=K[k+4|0];H[i+4|0]=e;m=J[k+8>>2];p:{if(e){if(!((m|0)>=0&j>>>0>=m>>>0)){J[g+8>>2]=9;break i}w=i,x=ak(p,c+m|0,g+8|0),J[w+8>>2]=x;if(!J[g+8>>2])break p;break i}J[i+8>>2]=m}d=d+1|0;if((h|0)!=(d|0))continue;break}}J[g+8>>2]=0}if(f)gc[J[p+8>>2]](p,f);if(c)gc[J[p+8>>2]](p,c);c=J[g+8>>2];J[g+4>>2]=c;if(c)break b;q:{r:{c=J[b+188>>2];if(!c)break r;d= -J[b+192>>2];f=0;while(1){if(J[(f<<4)+d>>2]!=256){f=f+1|0;if((f|0)!=(c|0))continue;break r}break}m=0;break q}c=t5(a,b,2);J[g+4>>2]=c;if(c)break b;c=J[b+188>>2];d=J[b+192>>2];m=1}if(!c)break b;i=J[b+100>>2];f=0;s:{t:{while(1){u:{e=(f<<4)+d|0;if(J[e>>2]==4){d=J[e+12>>2];c=J[a+8>>2];if(d>>>0>>0)break b;if(bg(a,d-c|0))break b;e=J[e+8>>2];J[g+28>>2]=0;c=g+28|0;f=Vi(a,c);if(J[g+28>>2]|((f|256)&-256)!=256)break b;h=f&4;v:{if(f>>>0<=255){if(h){c=Kf(a,c);break v}c=Vi(a,g+28|0);break v}if(h){c=Wd(a,g+28| -0);break v}c=O5(a,g+28|0)}if(J[g+28>>2])break b;d=c-1|0;w:{if(f>>>0<=255){if(d>>>0<(e>>>0)/12>>>0)break w;break b}if(d>>>0>=(e>>>0)/5>>>0)break b}c=c>>>0>=65535?65535:c+1|0;J[b+288>>2]=c;c=Sc(i,16,0,c,0,g+28|0);J[b+292>>2]=c;if(J[g+28>>2])break b;x:{if(M[b+288>>2]<2)break x;d=c+16|0;e=1;if(f>>>0<=255){f=h?260528:260560;while(1){h=Me(a,f,d);J[g+28>>2]=h;J[c+28>>2]=0;if(h)break t;h=d;if(!(I[c+18>>1]>=I[d>>1]&I[c+22>>1]>=(0-I[c+24>>1]|0))){I[c+20>>1]=0;I[d>>1]=0;I[c+22>>1]=0;I[c+24>>1]=0;I[c+18>>1]= -0}d=h+16|0;c=h;e=e+1|0;if(e>>>0>2])continue;break}break x}while(1){h=Me(a,260592,g+8|0);if(h)break u;I[d>>1]=K[g+8|0]-128;k=K[g+9|0]-128|0;I[c+18>>1]=k;I[c+20>>1]=K[g+10|0]-128;f=K[g+11|0]-128|0;I[c+22>>1]=f;l=K[g+12|0];I[c+26>>1]=0;I[c+24>>1]=l-128;J[g+28>>2]=0;J[c+28>>2]=0;h=d;if(!((k|0)>=I[d>>1]&(f|0)>=(128-l|0))){I[c+20>>1]=0;I[d>>1]=0;I[c+22>>1]=0;I[c+24>>1]=0;I[c+18>>1]=0}d=h+16|0;c=h;e=e+1|0;if(e>>>0>2])continue;break}}J[g+4>>2]=0;break s}f=f+1|0;if((f|0)!=(c|0))continue; -break b}break}J[g+28>>2]=h;J[c+28>>2]=0}c=J[b+292>>2];if(c)gc[J[i+8>>2]](i,c);J[b+292>>2]=0;c=J[g+28>>2];J[g+4>>2]=c;if(c)break b}d=J[b+188>>2];if(!d)break b;c=J[b+192>>2];f=0;while(1){e=c+(f<<4)|0;if(J[e>>2]==8){d=J[e+12>>2];c=J[a+8>>2];if(d>>>0>>0)break b;if(bg(a,d-c|0))break b;l=J[e+8>>2];c=Ue(a,8);J[g+8>>2]=c;if(c)break b;k=P5(a);h=k&4;y:{if(h){c=qh(a);break y}c=P5(a)}ne(a);if(k>>>0>255)break b;d=c>>>0>=65534?65534:c;if((d|0)!=(J[b+288>>2]-1|0))break b;z:{if(!c)break z;e=(J[a+8>>2]+(d<<2)| -0)+16|0;f=1;d=d>>>0<=1?1:d;if(!h)while(1){c=Vi(a,g+8|0);J[(J[b+292>>2]+(f<<4)|0)+12>>2]=e+(c>>>0<=l>>>0?c:0);c=(d|0)==(f|0);f=f+1|0;if(!c)continue;break z}while(1){c=Kf(a,g+8|0);J[(J[b+292>>2]+(f<<4)|0)+12>>2]=e+(c>>>0<=l>>>0?c:0);c=(d|0)!=(f|0);f=f+1|0;if(c)continue;break}}if(J[g+8>>2])break b;A:{if(h){Kf(a,g+8|0);if(J[g+8>>2])break b;Kf(a,g+8|0);if(J[g+8>>2])break b;Kf(a,g+8|0);if(J[g+8>>2])break b;Kf(a,g+8|0);if(!J[g+8>>2])break A;break b}Vi(a,g+8|0);if(J[g+8>>2])break b;Vi(a,g+8|0);if(J[g+8>> -2])break b;Vi(a,g+8|0);if(J[g+8>>2])break b;Vi(a,g+8|0);if(J[g+8>>2])break b}J[b+312>>2]=k;J[g+4>>2]=0;i=a;a=0;l=bc-16|0;bc=l;e=3;h=J[b+188>>2];B:{if(!h)break B;n=b+296|0;d=J[b+192>>2];f=J[b+100>>2];while(1){c=d+(a<<4)|0;if(J[c>>2]==32){e=83;c=J[c+12>>2];a=J[i+8>>2];if(c>>>0>>0)break B;if(bg(i,c-a|0))break B;J[l+12>>2]=0;c=Vi(i,l+12|0);e=J[l+12>>2];if(e)break B;e=3;if(c>>>0>255)break B;j=c&4;C:{if(j){e=Me(i,260624,n);break C}e=Me(i,260656,n)}J[l+12>>2]=e;if(e)break B;e=8;c=L[b+296>>1];h=L[b+298>> -1];if(c>>>0>h>>>0|h>>>0>255)break B;a=L[b+300>>1];d=L[b+302>>1];if(a>>>0>d>>>0|d>>>0>255)break B;a=P((d-a|0)+1|0,(h-c|0)+1|0);w=b,x=Sc(f,2,0,a,0,l+12|0),J[w+308>>2]=x;e=J[l+12>>2];if(e)break B;a=Ue(i,a<<1);J[l+12>>2]=a;D:{if(!a){e=L[b+304>>1];d=e>>>8|0;c=L[b+300>>1];E:{F:{if(d>>>0>>0){a=L[n>>1];break F}a=L[b+296>>1];if(L[b+302>>1]>>0)break F;h=e&255;if(h>>>0<(a&65535)>>>0)break F;k=L[b+298>>1];if(k>>>0>=h>>>0)break E}I[b+304>>1]=(c<<8)+a;k=L[b+298>>1];d=c;h=a}e=1;a=a&65535;a=J[i+32>>2]+(((h& -65535)-a|0)+P((k-a|0)+1|0,d-c|0)<<1)|0;a=K[a+!j|0]<<8|K[a+((j|0)!=0)|0];if((a|0)!=65535){a=a+1&65535;e=a>>>0>=M[b+288>>2]?1:a}d=J[b+292>>2];c=(e<<4)+d|0;a=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=a;a=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=a;e=L[b+300>>1];G:{if(e>>>0>L[b+302>>1])break G;d=L[b+298>>1];if(d>>>0>1])break G;a=J[b+308>>2];while(1){f=L[n>>1];H:{if(f>>>0>(d&65535)>>>0)break H;if(!j)while(1){c=ur(i)+1|0;I[a>>1]=(c|0)!=(c&65535)?-1:c;a=a+2|0;d=L[b+298>>1];f=f+1|0;if(d>>>0>=(f&65535)>>> -0)continue;break H}while(1){c=mf(i)+1|0;I[a>>1]=(c|0)!=(c&65535)?-1:c;a=a+2|0;d=L[b+298>>1];f=f+1|0;if(d>>>0>=(f&65535)>>>0)continue;break}}e=e+1|0;if(L[b+302>>1]>=(e&65535)>>>0)continue;break}}ne(i);break D}a=J[b+308>>2];if(a)gc[J[f+8>>2]](f,a);J[b+308>>2]=0}e=J[l+12>>2];break B}a=a+1|0;if((h|0)!=(a|0))continue;break}}bc=l+16|0;J[g+4>>2]=e;if(e)break b;if(!m){a=t5(i,b,256);J[g+4>>2]=a;if(a)break b}a=J[b+8>>2];J[b+8>>2]=a|18;if(K[b+199|0])J[b+8>>2]=a|22;a=0;m=0;c=0;s=bc-16|0;bc=s;J[s+12>>2]=0;j=b; -J[b+12>>2]=0;l=1;n=J[b+100>>2];h=8;f=7;i=242669;k=J[b+280>>2];I:{if((k|0)<=0){t=1;p=1;break I}o=J[j+284>>2];while(1){J:{b=a;d=Ec(J[o+P(a,12)>>2],241968);a=a+1|0;if((k|0)<=(a|0))break J;if(d)continue}break}e=2;K:{if(d){l=0;break K}if(!K[(o+P(b,12)|0)+4|0]){l=0;break K}l=0;L:{a=(o+P(a,12)|0)-4|0;switch(K[J[a>>2]]-73|0){case 0:case 6:case 32:case 38:break L;default:break K}}J[j+12>>2]=1;l=(K[J[a>>2]]&223)==79?242045:242188;e=3}while(1){M:{b=c;d=Ec(J[o+P(b,12)>>2],242310);c=b+1|0;if((k|0)<=(c|0))break M; -if(d)continue}break}a=0;t=1;q=0;N:{if(d)break N;q=0;if(!K[(o+P(b,12)|0)+4|0])break N;q=0;if((K[J[(o+P(c,12)|0)-4>>2]]|32)!=98)break N;J[j+12>>2]=e;t=0;q=242407}while(1){O:{b=a;d=Ec(J[o+P(a,12)>>2],242502);a=a+1|0;if((k|0)<=(a|0))break O;if(d)continue}break}c=0;e=0;P:{if(d)break P;e=0;if(!K[(o+P(b,12)|0)+4|0])break P;a=J[(o+P(a,12)|0)-4>>2];b=K[a|0];e=0;if(!b)break P;e=0;if((b|0)==78)break P;e=0;if((b|0)==110)break P;e=a}while(1){Q:{a=c;m=Ec(J[o+P(a,12)>>2],242595);c=a+1|0;if((k|0)<=(c|0))break Q; -if(m)continue}break}b=0;k=0;d=0;R:{if(m)break R;S:{if(!K[(o+P(a,12)|0)+4|0])break S;a=J[(o+P(c,12)|0)-4>>2];c=K[a|0];if(!c|(c|0)==78)break S;d=0;if((c|0)==110)break R;b=a;k=Qc(a);d=k+1|0;break R}d=0}T:{if(t){q=0;break T}u=Qc(q);d=(u+d|0)+1|0}m=0;if(l){v=Qc(l);d=(v+d|0)+1|0;a=l}else a=0;o=a;U:{if(!e){a=0;break U}a=Qc(e);d=(d+a|0)+1|0;m=e}l=!l;p=!e;if(!d)break I;i=b;f=k;h=d}e=Zd(n,h,s+12|0);J[j+24>>2]=e;d=J[s+12>>2];if(!d){if(i){k=tc(e,i,f);V:{if(!f)break V;c=0;e=0;if(f>>>0>=4){h=f&-4;d=0;while(1){b= -e+k|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|1)|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|2)|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|3)|0;if(K[b|0]==32)H[b|0]=45;e=e+4|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}d=f&3;if(!d)break V;while(1){b=e+k|0;if(K[b|0]==32)H[b|0]=45;e=e+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}e=f+k|0}if(!t){if(J[j+24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}e=tc(e,q,u)+u|0}if(!l){if(J[j+24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}e=tc(e,o,v)+v|0}if(!p){if(J[j+24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}f=tc(e,m,a);W:{if(!a)break W; -c=0;e=0;if(a>>>0>=4){h=a&-4;d=0;while(1){b=e+f|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|1)|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|2)|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|3)|0;if(K[b|0]==32)H[b|0]=45;e=e+4|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}d=a&3;if(!d)break W;while(1){b=e+f|0;if(K[b|0]==32)H[b|0]=45;e=e+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}e=a+f|0}H[e|0]=0;d=J[s+12>>2]}bc=s+16|0;J[g+4>>2]=d;if(d)break b;a=Np(j,241011);X:{if(!(!a|!K[a+4|0])){w=j,x=ak(r,J[a+8>>2],g+4|0),J[w+20>>2]=x;if(!J[g+4>>2])break X; -break b}J[j+20>>2]=0}J[j+28>>2]=1;J[j+16>>2]=J[j+288>>2];a=Sc(r,16,0,1,0,g+4|0);J[j+32>>2]=a;if(J[g+4>>2])break b;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;f=32767;c=J[j+208>>2]+J[j+204>>2]|0;b=c>>31;if((b^c)-b>>>0<=32767){b=c<<16>>16;c=b>>31;f=(b^c)-c|0}I[a>>1]=f;b=Np(j,241141);Y:{if(b){c=J[b+8>>2];b=c>>31;d=32767;if((b^c)-b>>>0>327665)break Y;b=(c+5|0)/10<<16>>16;c=b>>31;d=(b^c)-c|0;break Y}d=Dd(f<<16>>16,2,3)}I[a+2>>1]=d;b=Np(j,241292);if(b){b=J[b+8>>2];c=b>>31;b=(b^c)-c|0;if(b>>>0<=328898)b= -Dd(b,460800,72270);else b=32767;J[a+4>>2]=b}b=Np(j,241427);if(b){c=J[b+8>>2];b=c>>31;if((b^c)-b>>>0<=32767){b=c<<16>>16;c=b>>31;b=(b^c)-c<<6}else b=2097088;J[a+12>>2]=b}c=Np(j,241530);b=0;Z:{if(!c)break Z;d=J[c+8>>2];c=d>>31;b=32767;if((c^d)-c>>>0>32767)break Z;b=d<<16;b=((b|0)<0?0-b|0:b)>>16}_:{$:{aa:{ba:{c=Np(j,241625);if(c){d=32767;e=J[c+8>>2];c=e>>31;if((c^e)-c>>>0>32767)break ba;c=e<<16>>16;d=c>>31;d=(c^d)-d|0;f=J[a+12>>2];if(f)break $;f=J[a+4>>2];J[a+12>>2]=f;if(!(d&65535))break _;c=a+12|0; -break aa}f=J[a+12>>2];if(f)break _;f=J[a+4>>2];J[a+12>>2]=f;break _}f=J[a+12>>2];if(f)break $;f=J[a+4>>2];J[a+12>>2]=f;c=a+12|0}f=Dd(f,d<<16>>16,72);J[c>>2]=f}if(!b|!(d&65535))break _;f=Dd(f,b,d<<16>>16)}J[a+8>>2]=f;b=Np(j,241731);a=Np(j,241859);if(!(!b|!K[b+4|0]|(!a|!K[a+4|0]))){c=J[a+8>>2];a=g+4|0;w=j,x=ak(r,c,a),J[w+176>>2]=x;if(J[g+4>>2])break b;w=j,x=ak(r,J[b+8>>2],a),J[w+180>>2]=x}if(J[g+4>>2])break b;e=0;break a}f=f+1|0;if((d|0)!=(f|0))continue;break}}e=3}bc=g+32|0;return e}function mUa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=bc-32|0;bc=e;a:{b:{c:{d:{e:{if(!J[689606]){f=rc(32);J[f+28>>2]=0;J[f+24>>2]=J[193908];d=J[193907];J[f+16>>2]=J[193906];J[f+20>>2]=d;d=J[193905];J[f+8>>2]=J[193904];J[f+12>>2]=d;d=J[193903];J[f>>2]=J[193902];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,7);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=74890;J[e+20>>2]=841632;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g= -J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(64);J[f+48>>2]=0;d=J[194169];J[f+40>>2]=J[194168];J[f+44>>2]=d;d=J[194167];J[f+32>>2]=J[194166];J[f+36>>2]=d;d=J[194165];J[f+24>> -2]=J[194164];J[f+28>>2]=d;d=J[194163];J[f+16>>2]=J[194162];J[f+20>>2]=d;d=J[194161];J[f+8>>2]=J[194160];J[f+12>>2]=d;d=J[194159];J[f>>2]=J[194158];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,12);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=82510;J[e+20>>2]=916528;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>> -2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=tc(rc(80),777808,76);J[f+76>>2]=0;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,19);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=75690;J[e+20>>2]=999040;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>> -2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(64);J[f+60>>2]=0;J[f+56>>2]=J[194815];d=J[194814];J[f+48>>2]=J[194813];J[f+52>>2]=d;d=J[194812];J[f+ -40>>2]=J[194811];J[f+44>>2]=d;d=J[194810];J[f+32>>2]=J[194809];J[f+36>>2]=d;d=J[194808];J[f+24>>2]=J[194807];J[f+28>>2]=d;d=J[194806];J[f+16>>2]=J[194805];J[f+20>>2]=d;d=J[194804];J[f+8>>2]=J[194803];J[f+12>>2]=d;d=J[194802];J[f>>2]=J[194801];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,15);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=72071;J[e+20>>2]=1074736;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(48);J[f+36>>2]=0;J[f+32>>2]=J[195072];d=J[195071];J[f+24>>2]=J[195070];J[f+28>>2]=d;d=J[195069];J[f+16>>2]=J[195068];J[f+20>>2]=d;d=J[195067]; -J[f+8>>2]=J[195066];J[f+12>>2]=d;d=J[195065];J[f>>2]=J[195064];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,9);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=49658;J[e+20>>2]=1146816;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>> -2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(64);J[f+56>>2]=0;d=J[195326];J[f+48>>2]=J[195325];J[f+52>>2]=d;d=J[195324];J[f+40>>2]=J[195323];J[f+44>>2]=d;d=J[195322];J[f+32>>2]=J[195321];J[f+36>>2]=d;d=J[195320];J[f+24>>2]=J[195319];J[f+28>>2]=d;d=J[195318];J[f+16>>2]=J[195317];J[f+20>>2]=d;d=J[195316];J[f+8>>2]=J[195315];J[f+12>>2]=d;d=J[195314];J[f>>2]=J[195313]; -J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,14);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=50932;J[e+20>>2]=1196480;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>> -2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=tc(rc(96),782348,84);J[f+84>>2]=0;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,21);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=55873;J[e+20>>2]=1247424;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+ -8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=tc(rc(80),783324,68);J[f+68>>2]=0;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,17);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=54507;J[e+20>>2]=1303312;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d= -$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(32);J[f+24>>2]=0;d=J[196081];J[f+16>>2]=J[196080];J[f+20>>2]=d;d=J[196079];J[f+8>>2]=J[196078];J[f+12>>2]=d;d=J[196077]; -J[f>>2]=J[196076];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,6);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=32896;J[e+20>>2]=1357824;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]= -0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(48);J[f+40>>2]=0;d=J[196300];J[f+32>>2]=J[196299];J[f+36>>2]=d;d=J[196298];J[f+24>>2]=J[196297];J[f+28>>2]=d;d=J[196296];J[f+16>>2]=J[196295];J[f+20>>2]=d;d=J[196294];J[f+8>>2]=J[196293];J[f+12>>2]=d;d=J[196292];J[f>>2]=J[196291];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,10);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=67173;J[e+20>>2]=1390720;J[695492]= -0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(80);J[f+64>>2]=0;d= -J[196510];J[f+56>>2]=J[196509];J[f+60>>2]=d;d=J[196508];J[f+48>>2]=J[196507];J[f+52>>2]=d;d=J[196506];J[f+40>>2]=J[196505];J[f+44>>2]=d;d=J[196504];J[f+32>>2]=J[196503];J[f+36>>2]=d;d=J[196502];J[f+24>>2]=J[196501];J[f+28>>2]=d;d=J[196500];J[f+16>>2]=J[196499];J[f+20>>2]=d;d=J[196498];J[f+8>>2]=J[196497];J[f+12>>2]=d;d=J[196496];J[f>>2]=J[196495];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,16);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=70676;J[e+20>>2]=1457904;J[695492]=0;h=Xe(2758416, -e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(64);J[f+48>>2]=0;d=J[196734];J[f+40>> -2]=J[196733];J[f+44>>2]=d;d=J[196732];J[f+32>>2]=J[196731];J[f+36>>2]=d;d=J[196730];J[f+24>>2]=J[196729];J[f+28>>2]=d;d=J[196728];J[f+16>>2]=J[196727];J[f+20>>2]=d;d=J[196726];J[f+8>>2]=J[196725];J[f+12>>2]=d;d=J[196724];J[f>>2]=J[196723];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,12);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=71913;J[e+20>>2]=1528592;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(48);J[f+44>>2]=0;J[f+40>>2]=J[196954];d=J[196953];J[f+32>>2]=J[196952];J[f+36>>2]=d;d=J[196951];J[f+24>>2]=J[196950];J[f+28>>2]=d;d=J[196949];J[f+16>> -2]=J[196948];J[f+20>>2]=d;d=J[196947];J[f+8>>2]=J[196946];J[f+12>>2]=d;d=J[196945];J[f>>2]=J[196944];J[f+4>>2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,11);h=J[695492];J[695492]=0;if((h|0)==1)break c;J[e+24>>2]=68241;J[e+20>>2]=1600512;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+ -24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>>2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f);f=rc(64);J[f+48>>2]=0;d=J[197194];J[f+40>>2]=J[197193];J[f+44>>2]=d;d=J[197192];J[f+32>>2]=J[197191];J[f+36>>2]=d;d=J[197190];J[f+24>>2]=J[197189];J[f+28>>2]=d;d=J[197188];J[f+16>>2]=J[197187];J[f+20>>2]=d;d=J[197186];J[f+8>>2]=J[197185];J[f+12>>2]=d;d=J[197184];J[f>>2]=J[197183];J[f+4>> -2]=d;J[695492]=0;d=e+8|0;ca(15,d|0,f|0,12);h=J[695492];J[695492]=0;if((h|0)==1)break e;J[e+24>>2]=45552;J[e+20>>2]=1668768;J[695492]=0;h=Xe(2758416,e+28|0,d);d=J[695492];J[695492]=0;if((d|0)==1)break d;if(!J[h>>2]){J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[689604]>> -2];if(g){J[689604]=g;d=J[h>>2]}Ic(J[689605],d);J[689606]=J[689606]+1}if(H[e+19|0]<0)qc(J[e+8>>2]);qc(f)}a=xi(2758416,a);if((a|0)!=2758420){J[b>>2]=J[a+28>>2];J[c>>2]=J[a+32>>2]}bc=e+32|0;return(a|0)!=2758420|0}a=Z()|0;break a}a=Z()|0;if(H[e+19|0]>=0)break a;qc(J[e+8>>2]);break a}a=Z()|0;break a}a=Z()|0;if(H[e+19|0]<0)qc(J[e+8>>2])}qc(f);ba(a|0);B()}function wZ(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I= -0,K=0,L=0,M=0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;M=bc-512|0;bc=M;e=J[a+8>>2];a:{if(gc[J[J[e>>2]+216>>2]](e,J[a+28>>2],b)|0)break a;b:switch(J[b+4>>2]-1|0){case 0:f=O[b+200>>3];d=O[b+208>>3];h=O[b+184>>3];g=O[b+192>>3];$l(b,h,g,M);$l(b,h,d,M+128|0);$l(b,f,g,M+256|0);$l(b,f,d,M+384|0);Tv(a,b,h,g,f,d,M,0);break a;case 1:m=bc-32800|0;bc=m;e=a;Nv(J[a+28>>2],m+32792|0,m+32784|0,m+32776|0,m+32768|0);c=b;u=O[b+184>>3];n=O[b+200>>3]-u;C=R(n);y=O[b+192>>3];p=O[b+208>>3]-y;D=R(p); -k=C<1E-4&D<1E-4;c:{if(k){s=p*0+y;t=n*0+u;a=J[b+364>>2];H=O[b+224>>3];f=O[b+216>>3];break c}h=1/(n*n+p*p);i=O[m+32792>>3];f=(i-u)*n;j=O[m+32768>>3];q=p*(j-y);d=h*(f+q);x=O[m+32784>>3];s=p*(x-y);f=h*(f+s);d:{if(df)){g=f;break d}g=d}B=O[m+32776>>3];t=(B-u)*n;d=h*(t+s);e:{if(dg))break e;g=d}d=h*(t+q);f:{if(dg))break f;g=d}I=g>1?1:g;b=J[c+368>>2];a=J[c+364>>2];q=f<0?0:f;s=q*p+y;t=q*n+u;g:{if(C>D){d=(j-s)/n;i=(x-s)/n;break g}h=-p; -d=(B-t)/h;i=(i-t)/h}B=b?g:I;j=a?f:q;H=O[c+224>>3];f=O[c+216>>3];if(!(dD){h=(O[m+32768>>3]-x)/n;j=(O[m+32784>>3]-x)/n;break i}d=-p;h=(O[m+32776>>3]-v)/d;j=(O[m+32792>>3]-v)/d}if(!(h>2]+124|0,m,128);a=J[e+8>>2];gc[J[J[a>>2]+116>>2]](a,J[e+28>>2]);a=J[e+28>>2];h=d*n+x;O[a+608>>3]=h;d=v-d*p;O[a+600>>3]=d;a=J[a+596>>2];O[a+16>>3]=h;O[a+8>> -3]=d;J[a>>2]=1;a=J[e+28>>2];d=j*n+x;O[a+608>>3]=d;h=v-j*p;O[a+600>>3]=h;ie(J[a+596>>2],h,d);a=J[e+28>>2];O[a+608>>3]=g;O[a+600>>3]=i;ie(J[a+596>>2],i,g);a=J[e+28>>2];O[a+608>>3]=s;O[a+600>>3]=t;ie(J[a+596>>2],t,s);a=J[e+28>>2];_f(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];o=J[b+12>>2]<<3;O[a+600>>3]=O[(o+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(o+J[b+4>>2]|0)-8>>3];a=J[e+8>>2];gc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);Rf(J[e+28>>2])}d=H-f;E=I-q;a=0;while(1){TA(c,d*(q+E*(+(a|0)+.5)*.00390625)+ -f,m+(a<<7)|0);a=a+1|0;if((a|0)!=256)continue;break}j=-p;a=0;b=J[c+8>>2];z=gc[J[J[b>>2]+28>>2]](b)|0;while(1){j:{o=a;a=J[e+116>>2];k:{if(!a)break k;if((l|0)<100){l=l+1|0;break k}l=0;if(gc[a|0](J[e+120>>2])|0)break j}b=o+1|0;l:{if((o|0)>254){a=b;break l}if((z|0)>0){L=m+(o<<7)|0;while(1){T=m+(b<<7)|0;a=0;m:{while(1){A=a<<2;Q=J[A+T>>2]-J[A+L>>2]|0;A=Q>>31;if((A^Q)-A>>>0<=256){a=a+1|0;if((z|0)!=(a|0))continue;break m}break}a=b;break l}a=256;b=b+1|0;if((b|0)!=256)continue;break}break l}a=256}f=q+E*+(a| -0)*.00390625;x=f*p+y;v=f*n+u;d=0;f=0;n:{if(k)break n;o:{if(C>D){h=(O[m+32768>>3]-x)/n;f=(O[m+32784>>3]-x)/n;break o}h=(O[m+32776>>3]-v)/j;f=(O[m+32792>>3]-v)/j}if(!(f>h)){d=f;f=h;break n}d=h}tc(J[e+28>>2]+124|0,m+(o<<7)|0,128);b=J[e+8>>2];gc[J[J[b>>2]+116>>2]](b,J[e+28>>2]);b=J[e+28>>2];O[b+608>>3]=s;O[b+600>>3]=t;b=J[b+596>>2];O[b+16>>3]=s;O[b+8>>3]=t;J[b>>2]=1;b=J[e+28>>2];O[b+608>>3]=g;O[b+600>>3]=i;ie(J[b+596>>2],i,g);b=J[e+28>>2];g=f*n+x;O[b+608>>3]=g;i=v-f*p;O[b+600>>3]=i;ie(J[b+596>>2],i,g); -b=J[e+28>>2];s=d*n+x;O[b+608>>3]=s;t=v-d*p;O[b+600>>3]=t;ie(J[b+596>>2],t,s);b=J[e+28>>2];_f(J[b+596>>2]);o=J[b+596>>2];o=J[(J[o+24>>2]+(J[o+28>>2]<<2)|0)-4>>2];A=J[o+12>>2]<<3;O[b+600>>3]=O[(A+J[o>>2]|0)-8>>3];O[b+608>>3]=O[(A+J[o+4>>2]|0)-8>>3];b=J[e+8>>2];gc[J[J[b>>2]+204>>2]](b,J[e+28>>2]);Rf(J[e+28>>2]);if((a|0)<256)continue}break}if(!(!(B>I)|!J[c+368>>2])){TA(c,H,m);h=B*p+y;u=B*n+u;d=0;f=0;p:{if(k)break p;q:{if(C>D){q=(O[m+32768>>3]-h)/n;f=(O[m+32784>>3]-h)/n;break q}q=(O[m+32776>>3]-u)/j;f= -(O[m+32792>>3]-u)/j}if(!(f>q)){d=f;f=q;break p}d=q}tc(J[e+28>>2]+124|0,m,128);a=J[e+8>>2];gc[J[J[a>>2]+116>>2]](a,J[e+28>>2]);a=J[e+28>>2];O[a+608>>3]=s;O[a+600>>3]=t;a=J[a+596>>2];O[a+16>>3]=s;O[a+8>>3]=t;J[a>>2]=1;a=J[e+28>>2];O[a+608>>3]=g;O[a+600>>3]=i;ie(J[a+596>>2],i,g);a=J[e+28>>2];g=f*n+h;O[a+608>>3]=g;f=u-f*p;O[a+600>>3]=f;ie(J[a+596>>2],f,g);a=J[e+28>>2];f=d*n+h;O[a+608>>3]=f;d=u-d*p;O[a+600>>3]=d;ie(J[a+596>>2],d,f);a=J[e+28>>2];_f(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<< -2)|0)-4>>2];c=J[b+12>>2]<<3;O[a+600>>3]=O[(c+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(c+J[b+4>>2]|0)-8>>3];a=J[e+8>>2];gc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);Rf(J[e+28>>2])}bc=m+32800|0;break a;case 2:e=a;k=bc-288|0;bc=k;u=O[b+192>>3];C=O[b+216>>3];y=O[b+184>>3];D=O[b+208>>3];x=O[b+240>>3];t=O[b+232>>3];s=O[b+224>>3];p=O[b+200>>3];a=J[b+8>>2];o=gc[J[J[a>>2]+28>>2]](a)|0;r:{s:{H=D-y;I=C-u;f=Y(H*H+I*I);if(f==0)break s;n=s-p;if(n!=0){if(R(n)>=f+-1E-4)break s;B=Tu(n/f)}h=Cf(I,H);Nv(J[e+28>>2],k+280|0,k+272|0,k+264| -0,k+256|0);f=0;d=y+p;i=D+s-d;E=R(i);if(E>1E-6)f=(O[k+280>>3]-d)/i;d=y-p;i=D-s-d;r=R(i);if(r>1E-6)g=(O[k+264>>3]-d)/i;i=0;d=u+p;j=C+s-d;w=R(j);if(w>1E-6)i=(O[k+272>>3]-d)/j;d=u-p;j=C-s-d;N=R(j);if(N>1E-6)q=(O[k+256>>3]-d)/j;d=0;j=0;S=R(n);if(S>1E-6){v=-p/n;j=O[k+264>>3]-O[k+280>>3];V=j*j;j=O[k+256>>3]-O[k+272>>3];j=(Y(V+j*j)-p)/n}t:{if(!J[b+380>>2])break t;u:{if(!(!(f<0)|(!(y1E-6)))){a=1;d=f;break u}a=0;l=1;if(!(g<0)|(!(y>D)|!(r>1E-6)))break u;a=1;l=0;d=g}v:{w:{if(!(!(i<0)|(!(u1E-6)))){d= -l?i:dC)|!(N>1E-6)))break v;d=l?q:d1E-6)|!(v<=0))break t;d=a?d>2]){f=1;T=1;break r}x:{if(!(!(f>1)|(!(y>D)|!(E>1E-6)))){a=1;l=0;break x}a=0;l=1;f=1;if(!(g>1)|(!(y1E-6)))break x;a=1;l=0;f=g}y:{z:{if(!(!(i>1)|(!(u>C)|!(w>1E-6)))){f=l?i:f>i?i:f;break z}if(!(q>1)|(!(u1E-6)))break y;f=l?q:f>q?q:f}a=1}T=1;if(!(S>1E-6)|!(j>1))break r;f=a?f>j?j:f:j;break r}Nv(J[e+28>>2],k+280|0,k+272|0,k+264|0,k+256|0);z=e+28|0;f= -1}A=3;L=p>s;E=L?p:s;a=J[z>>2];g=R(O[a+40>>3]);i=R(O[a+32>>3]);j=R(O[a+24>>3]);q=R(O[a+16>>3]);j=j>q?j:q;i=i>j?i:j;g=E*(g>i?g:i);if(!(g<1)){g=3.141592653589793/Zy(-.1/g+1);A:{if(R(g)<2147483648){a=~~g;break A}a=-2147483648}a=(a|0)>=200?200:a;A=(a|0)<=3?3:a}N=x-t;g=d*N+t;lt(b,gx?x:g,k+128|0);g=f*N+t;Z=gx?x:g;_=o&-2;$=o&1;aa=f-d;g=B+B;ba=3.141592653589793-g;ca=g+-3.141592653589793;S=h-B+-1.5707963267948966;W=g+3.141592653589793;q=d*I+u;j=d*H+y;X=s-p;i=d*X+p;v=+(A|0);B=h+B+1.5707963267948966; -da=xe(B);V=He(B);while(1){B:{a=J[e+116>>2];C:{if(!a)break C;if((Q|0)<100){Q=Q+1|0;break C}Q=0;if(gc[a|0](J[e+120>>2])|0)break B}lt(b,Z,k);m=256;D:{if((c|0)>254){h=f;break D}G=c+1|0;h=f;while(1){a=0;E:{if((o|0)<=0)break E;while(1){l=a<<2;U=J[l+k>>2]-J[l+(k+128|0)>>2]|0;l=U>>31;if((l^U)-l>>>0>256)break E;a=a+1|0;if((o|0)!=(a|0))continue;break}a=o}if((a|0)==(o|0)&(m|0)<=255)break D;m=(c+m|0)/2|0;h=+(m|0)*.00390625*aa+d;g=h*N+t;lt(b,gx?x:g,k);if((m|0)>(G|0))continue;break}}g=h*X;n=h*I;r=h*H;F:{if((o| -0)<=0)break F;a=0;c=0;if((o|0)!=1)while(1){l=a<<2;G=k+128|0;U=l+G|0;J[U>>2]=(J[k+l>>2]+J[U>>2]|0)/2;l=l|4;G=l+G|0;J[G>>2]=(J[k+l>>2]+J[G>>2]|0)/2;a=a+2|0;c=c+2|0;if((_|0)!=(c|0))continue;break}if(!$)break F;a=a<<2;c=a+(k+128|0)|0;J[c>>2]=(J[a+k>>2]+J[c>>2]|0)/2}h=g+p;g=n+u;n=r+y;tc(J[e+28>>2]+124|0,k+128|0,128);a=J[e+8>>2];gc[J[J[a>>2]+116>>2]](a,J[e+28>>2]);a=J[e+28>>2];G:{if(!T){O[a+608>>3]=q;r=i+j;O[a+600>>3]=r;a=J[a+596>>2];O[a+16>>3]=q;O[a+8>>3]=r;J[a>>2]=1;a=1;while(1){r=+(a|0)/v;r=(r+r)*3.141592653589793; -w=xe(r);c=J[z>>2];w=i*w+q;O[c+608>>3]=w;r=i*He(r)+j;O[c+600>>3]=r;ie(J[c+596>>2],r,w);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[z>>2];_f(J[a+596>>2]);c=J[a+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];l=J[c+12>>2]<<3;O[a+600>>3]=O[(l+J[c>>2]|0)-8>>3];O[a+608>>3]=O[(l+J[c+4>>2]|0)-8>>3];a=J[z>>2];O[a+608>>3]=g;i=n+h;O[a+600>>3]=i;a=J[a+596>>2];O[a+16>>3]=g;O[a+8>>3]=i;J[a>>2]=1;a=1;while(1){i=+(a|0)/v;i=(i+i)*-3.141592653589793;j=xe(i);c=J[z>>2];j=h*j+g;O[c+608>>3]=j;i=h*He(i)+n;O[c+600>>3]=i; -ie(J[c+596>>2],i,j);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[z>>2];_f(J[a+596>>2]);c=J[a+596>>2];l=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];c=J[l+12>>2];G=J[l>>2]+(c<<3)|0;break G}r=i*da+q;O[a+608>>3]=r;w=i*V+j;O[a+600>>3]=w;a=J[a+596>>2];O[a+16>>3]=r;O[a+8>>3]=w;J[a>>2]=1;a=0;l=0;while(1){F=B-+(l|0)/v*W;K=xe(F);c=J[z>>2];K=h*K+g;O[c+608>>3]=K;F=h*He(F)+n;O[c+600>>3]=F;ie(J[c+596>>2],F,K);l=l+1|0;if((A|0)!=(l|0))continue;break}while(1){F=+(a|0)/v*ca+S;K=xe(F);c=J[z>>2];K=i*K+q;O[c+608>>3]=K;F=i*He(F)+ -j;O[c+600>>3]=F;ie(J[c+596>>2],F,K);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[z>>2];_f(J[a+596>>2]);c=J[a+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];l=J[c+12>>2]<<3;O[a+600>>3]=O[(l+J[c>>2]|0)-8>>3];O[a+608>>3]=O[(l+J[c+4>>2]|0)-8>>3];a=J[z>>2];O[a+608>>3]=r;O[a+600>>3]=w;a=J[a+596>>2];O[a+16>>3]=r;O[a+8>>3]=w;J[a>>2]=1;a=0;l=0;while(1){r=+(l|0)/v*ba+B;w=xe(r);c=J[z>>2];w=h*w+g;O[c+608>>3]=w;r=h*He(r)+n;O[c+600>>3]=r;ie(J[c+596>>2],r,w);l=l+1|0;if((A|0)!=(l|0))continue;break}while(1){r=+(a| -0)/v*W+S;w=xe(r);c=J[z>>2];w=i*w+q;O[c+608>>3]=w;r=i*He(r)+j;O[c+600>>3]=r;ie(J[c+596>>2],r,w);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[z>>2];_f(J[a+596>>2]);c=J[a+596>>2];l=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];c=J[l+12>>2];G=J[l>>2]+(c<<3)|0}O[a+600>>3]=O[G-8>>3];O[a+608>>3]=O[(J[l+4>>2]+(c<<3)|0)-8>>3];a=J[e+8>>2];gc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);Rf(J[e+28>>2]);tc(k+128|0,k,128);j=n;q=g;i=h;c=m;if((c|0)<256)continue}break}H:{if(T)break H;I:{J:{a=J[b+380>>2];K:{if(!(p<=s?a:0)){if(!J[b+384>> -2])break K;if(!L)break J}a=p<=s;c=k+128|0;lt(b,a?t:x,c);tc(J[e+28>>2]+124|0,c,128);c=J[e+8>>2];gc[J[J[c>>2]+116>>2]](c,J[e+28>>2]);c=J[e+28>>2];f=a?u:C;O[c+608>>3]=f;h=a?y:D;d=a?p:s;g=h+d;O[c+600>>3]=g;a=J[c+596>>2];O[a+16>>3]=f;O[a+8>>3]=g;J[a>>2]=1;a=1;while(1){g=+(a|0)/v;g=(g+g)*3.141592653589793;i=xe(g);c=J[z>>2];i=d*i+f;O[c+608>>3]=i;g=d*He(g)+h;O[c+600>>3]=g;ie(J[c+596>>2],g,i);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[e+28>>2];_f(J[a+596>>2]);c=J[a+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)| -0)-4>>2];o=J[c+12>>2]<<3;O[a+600>>3]=O[(o+J[c>>2]|0)-8>>3];O[a+608>>3]=O[(o+J[c+4>>2]|0)-8>>3];a=J[e+8>>2];gc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);Rf(J[e+28>>2]);a=J[b+380>>2]}if(a?L:0)break I;if(!J[b+384>>2])break H;if(p<=s)break I;break H}if(!(p<=s))break H}a=k+128|0;lt(b,L?t:x,a);tc(J[e+28>>2]+124|0,a,128);a=J[e+8>>2];gc[J[J[a>>2]+116>>2]](a,J[e+28>>2]);f=O[k+280>>3];a=J[e+28>>2];d=O[k+272>>3];O[a+608>>3]=d;O[a+600>>3]=f;a=J[a+596>>2];O[a+16>>3]=d;O[a+8>>3]=f;J[a>>2]=1;f=O[k+280>>3];a=J[e+28>>2];d= -O[k+256>>3];O[a+608>>3]=d;O[a+600>>3]=f;ie(J[a+596>>2],f,d);f=O[k+264>>3];a=J[e+28>>2];d=O[k+256>>3];O[a+608>>3]=d;O[a+600>>3]=f;ie(J[a+596>>2],f,d);f=O[k+264>>3];a=J[e+28>>2];d=O[k+272>>3];O[a+608>>3]=d;O[a+600>>3]=f;ie(J[a+596>>2],f,d);a=J[e+28>>2];_f(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];c=J[b+12>>2]<<3;O[a+600>>3]=O[(c+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(c+J[b+4>>2]|0)-8>>3];a=J[e+28>>2];f=L?u:C;O[a+608>>3]=f;d=L?y:D;h=d+E;O[a+600>>3]=h;a=J[a+596>>2];O[a+16>>3]=f;O[a+ -8>>3]=h;J[a>>2]=1;a=1;while(1){h=+(a|0)/v;h=(h+h)*3.141592653589793;g=xe(h);b=J[z>>2];g=E*g+f;O[b+608>>3]=g;h=E*He(h)+d;O[b+600>>3]=h;ie(J[b+596>>2],h,g);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[e+28>>2];_f(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];c=J[b+12>>2]<<3;O[a+600>>3]=O[(c+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(c+J[b+4>>2]|0)-8>>3];a=J[e+8>>2];gc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);Rf(J[e+28>>2])}bc=k+288|0;break a;case 3:case 4:e=bc-816|0;bc=e;L:{if(J[b+192>>2]<=0)break L; -while(1){m=J[a+116>>2];M:{if(!m)break M;if((c|0)<25){c=c+1|0;break M}c=0;if(gc[m|0](J[a+120>>2])|0)break L}m=e+512|0;k=e+256|0;eZ(b,o,e+808|0,e+800|0,m,e+792|0,e+784|0,k,e+776|0,e+768|0,e);Rv(a,O[e+808>>3],O[e+800>>3],m,O[e+792>>3],O[e+784>>3],k,O[e+776>>3],O[e+768>>3],e,b,0);o=o+1|0;if((o|0)>2])continue;break}}bc=e+816|0;break a;case 5:case 6:break b;default:break a}o=J[b+184>>2];e=3;N:{if((o|0)>128)break N;e=2;if((o|0)>64)break N;if((o|0)<=0)break a;e=o>>>0>16}o=0;while(1){m=J[a+116>>2]; -O:{if(!m)break O;if((o|0)<25){o=o+1|0;break O}o=0;if(gc[m|0](J[a+120>>2])|0)break a}Sv(a,J[b+180>>2]+P(c,1280)|0,b,e);c=c+1|0;if((c|0)>2])continue;break}}bc=M+512|0}function et(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0,M=0,N=0,P=0,Q=0,S=0,T=0;A=bc-48|0;bc=A;d=rc(12);J[d>>2]=0;J[d+4>>2]=16;J[695492]=0;l=aa(3376,16,16)|0;u=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((u|0)!=1){J[d+8>>2]=l;u=rc(12);l= -u;J[l>>2]=0;J[l+4>>2]=16;J[695492]=0;y=aa(3376,16,16)|0;v=J[695492];J[695492]=0;if((v|0)!=1){J[l+8>>2]=y;v=c;y=d;c=1;l=b;d=J[b+8>>2];f:{if((d|0)<=0)break f;i=J[b>>2];b=J[i>>2];e=O[b+56>>3];p=e+0;j=O[b+40>>3];g=O[b+32>>3];h=O[b+24>>3];f=O[b+16>>3];if((d|0)==1)break f;while(1){b=J[i+(c<<2)>>2];n=O[b+56>>3];e=e>n?n:e;q=O[b+40>>3];j=j>3];g=g>3];h=h>q?q:h;q=O[b+16>>3];f=f>q?q:f;p=p+n;c=c+1|0;if((d|0)!=(c|0))continue;break}}O[A+40>>3]=f;O[A+32>>3]=h;O[A+24>>3]=g;O[A+16>> -3]=j;O[A+8>>3]=p/+(d|0);e=e*.05;p=e<.01?.01:e;e=1/p;f=e*f;g:{if(f<-1073741824)break g;g=g*e;if(g>1.0737418235E9)break g;h=h*e;if(h<-1073741824)break g;j=j*e;if(j>1.0737418235E9)break g;f=V(f);h:{if(R(f)<2147483648){k=~~f;break h}k=-2147483648}f=V(g);i:{if(R(f)<2147483648){d=~~f;break i}d=-2147483648}b=d-k|0;h=V(h);j:{if(R(h)<2147483648){x=~~h;break j}x=-2147483648}b=b+3|0;c=0;h=V(j);k:{if(R(h)<2147483648){i=~~h;break k}i=-2147483648}w=(i-x|0)+3|0;r=sk(w);D=sk(b);F=wc(r,0,w);G=wc(D,0,b);if(J[l+8>> -2]>0){L=(G-k|0)+1|0;P=(F-x|0)+1|0;Q=v-1|0;while(1){b=J[J[l>>2]+(c<<2)>>2];l:{m:{n:switch(Q|0){default:f=O[b+40>>3];n=O[b+24>>3];h=f-n;j=f+h*-.35;f=V(e*O[b+32>>3]);g=V(e*O[b+16>>3]);h=V(e*(n+h*0));break l;case 0:f=O[b+32>>3];j=O[b+16>>3];g=f-j;f=V(e*(f+g*-0));g=V(e*(j+g*.35));h=V(e*O[b+24>>3]);break m;case 1:f=O[b+40>>3];n=O[b+24>>3];h=f-n;j=f+h*-0;f=V(e*O[b+32>>3]);g=V(e*O[b+16>>3]);h=V(e*(n+h*.35));break l;case 2:break n}f=O[b+32>>3];j=O[b+16>>3];g=f-j;f=V(e*(f+g*-.35));g=V(e*(j+g*0));h=V(e*O[b+ -24>>3])}j=O[b+40>>3]}j=V(e*j);o:{if(R(j)<2147483648){r=~~j;break o}r=-2147483648}if(R(h)<2147483648)b=~~h;else b=-2147483648;if(R(g)<2147483648)w=~~g;else w=-2147483648;S=(b|0)>(r|0);if(R(f)<2147483648)D=~~f;else D=-2147483648;if(!S)wc(b+P|0,1,(r-b|0)+1|0);if((w|0)<=(D|0))wc(w+L|0,1,(D-w|0)+1|0);c=c+1|0;if((c|0)>2])continue;break}}D=x-1|0;c=D;p:{if((i|0)<(c|0))break p;b=i+1|0;while(1){if(K[F+(c-D|0)|0])break p;w=(c|0)!=(i|0);c=c+1|0;if(w)continue;break}c=b}if((c|0)<=(i|0)){L=F+2|0;b=c;while(1){w= -c;r=c-x|0;q:{if(K[F+(c-D|0)|0]){b=K[r+L|0]?b:c;break q}if(!K[r+L|0])break q;e=p*+(w-b|0);h=+(b+1|0)*p+e*.5;c=J[y>>2];r:{if((c|0)!=J[y+4>>2]){r=J[y+8>>2];break r}c=c<<1;J[y+4>>2]=c;r=Nd(J[y+8>>2],c,16);J[y+8>>2]=r;c=J[y>>2]}r=(c<<4)+r|0;O[r+8>>3]=e;O[r>>3]=h;J[y>>2]=c+1}c=w+1|0;if((i|0)!=(w|0))continue;break}}x=k-1|0;c=x;s:{if((d|0)<(c|0))break s;b=d+1|0;while(1){if(K[G+(c-x|0)|0])break s;i=(c|0)!=(d|0);c=c+1|0;if(i)continue;break}c=b}if((c|0)<=(d|0)){w=G+2|0;b=c;while(1){i=c;r=c-k|0;t:{if(K[G+(c- -x|0)|0]){b=K[r+w|0]?b:c;break t}if(!K[r+w|0])break t;e=p*+(i-b|0);h=+(b+1|0)*p+e*.5;c=J[u>>2];u:{if((c|0)!=J[u+4>>2]){r=J[u+8>>2];break u}c=c<<1;J[u+4>>2]=c;r=Nd(J[u+8>>2],c,16);J[u+8>>2]=r;c=J[u>>2]}r=(c<<4)+r|0;O[r+8>>3]=e;O[r>>3]=h;J[u>>2]=c+1}c=i+1|0;if((d|0)!=(i|0))continue;break}}Gc(F);Gc(G)}c=J[y>>2];if((c|0)<=0)break d;k=c&3;d=J[y+8>>2];if(c>>>0<4){b=0;break e}x=c&-4;b=0;while(1){i=b<<4;e=O[(d+(i|48)|0)+8>>3];h=O[(d+(i|32)|0)+8>>3];f=O[(d+(i|16)|0)+8>>3];g=O[(d+i|0)+8>>3];g=g>o?g:o;f=f>g? -f:g;h=fh?e:h;b=b+4|0;t=t+4|0;if((x|0)!=(t|0))continue;break}break e}b=Z()|0;d=u;break c}b=Z()|0;break c}if(!k)break d;while(1){e=O[(d+(b<<4)|0)+8>>3];o=e>o?e:o;b=b+1|0;z=z+1|0;if((k|0)!=(z|0))continue;break}}d=J[u>>2];v:{if((d|0)<=0)break v;x=d&3;i=J[u+8>>2];z=0;w:{if(d>>>0<4){b=0;break w}w=d&-4;b=0;while(1){k=b<<4;e=O[(i+(k|48)|0)+8>>3];h=O[(i+(k|32)|0)+8>>3];f=O[(i+(k|16)|0)+8>>3];g=O[(i+k|0)+8>>3];g=g>m?g:m;f=f>g?f:g;h=fh?e:h;b=b+4|0;C=C+4|0;if((w|0)!=(C|0))continue;break}}if(!x)break v; -while(1){e=O[(i+(b<<4)|0)+8>>3];m=e>m?e:m;b=b+1|0;z=z+1|0;if((x|0)!=(z|0))continue;break}}C=0;q=O[A+8>>3];H=O[A+16>>3];h=O[A+32>>3];g=H-h;j=g;x:{if((c|0)<=0)break x;p=q*-.2+o;i=J[y+8>>2];b=0;e=h;f=g;while(1){k=i+(b<<4)|0;j=O[k+8>>3];if(j>p){n=j*-.5+O[k>>3];e=n-e;f=e>3];p=O[A+40>>3];n=I-p;e=n;y:{if((d|0)<=0)break y;T=q*-.2+m;c=J[u+8>>2];b=0;e=p;f=n;while(1){i=c+(b<<4)|0;M=O[i+8>>3];if(T>3]; -e=N-e;f=ee)break y;e=f}f=1;z:{if(R(q)<.001)break z;f=n/q;if(v&1)break z;f=g/q}g=f;f=.7;A:{B:{C:{c=J[a>>2];switch(c-2|0){case 0:break A;case 2:break C;default:break B}}f=g*-.02+.5;if(!(f<.2))break A;f=.2;break A}f=g*-.5+3;if(!(f<.8))break A;f=.8}w=(c|0)==4;n=q+q;D:{if(!J[a+56>>2]){g=0;break D}g=q*1.5*256;E:{if(R(g)<2147483648){b=~~g;break E}b=-2147483648}g=+(b|0)*.00390625;k=J[l+8>>2];if((k|0)<=0)break D;i=J[l>>2];d=0;b=0;if(k>>> -0>=4){r=k&-4;t=0;while(1){x=b<<2;s=((((O[J[x+i>>2]+56>>3]>g)+s|0)+(O[J[i+(x|4)>>2]+56>>3]>g)|0)+(O[J[i+(x|8)>>2]+56>>3]>g)|0)+(O[J[i+(x|12)>>2]+56>>3]>g)|0;b=b+4|0;t=t+4|0;if((r|0)!=(t|0))continue;break}}k=k&3;if(!k)break D;while(1){s=(O[J[i+(b<<2)>>2]+56>>3]>g)+s|0;b=b+1|0;d=d+1|0;if((k|0)!=(d|0))continue;break}}n=w?0:n;f=q*f;F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{if(v&1){if((c|0)==2){b=0;if((C|0)>0)break P;if((E|0)<=0)break O;b=f>=o;break J}if(!(!(fm^-1)&(c|0)!=4|(E|0)<=0))){b=0;if(!C|j>n)break J}b= -0;if((C|0)>0)break P;b=1;if(s|(E|0)<=0)break O;break J}if((c|0)==2){b=0;if((E|0)>0)break J;if((C|0)<=0)break O;b=f>=m;break P}if(!(!(fn)break P}b=0;if((E|0)>0)break J;b=1;if(s|(C|0)<=0)break O}d=rc(56);J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=v;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[695492]=0;c=$(4,16)|0;i=J[695492];J[695492]=0;if((i|0)==1)break N;J[695492]=0;i=$(3185,c|0)|0;k=J[695492]; -J[695492]=0;if((k|0)==1){b=Z()|0;qc(c);break c}J[d+48>>2]=b;J[d+52>>2]=i;g=p+-1;b=J[u>>2];Q:{if((b|0)<=0){o=H+1;e=h+-1;j=0;p=0;n=0;h=0;break Q}o=H+1;e=h+-1;q=q*-.2+m;j=0;p=0;n=0;h=0;t=0;while(1){c=J[u+8>>2]+(t<<4)|0;if(q>3]){m=O[c>>3];c=rc(16);J[695492]=0;k=$(3185,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;b=0;s=J[l+8>>2];if((s|0)>0)while(1){c=J[J[l>>2]+(b<<2)>>2];f=(O[c+16>>3]+O[c+32>>3])*.5;R:{if(!(f>g)|!(f>3]+O[c+40>>3])*.5;if(!(f>e)|!(f>2]}b=b+1|0;if((s|0)>(b|0))continue;break}b=et(a,k,v);f=O[b+16>>3];S:{T:{if(!J[i+8>>2]){O[d+16>>3]=f;n=O[b+24>>3];O[d+24>>3]=n;p=O[b+32>>3];O[d+32>>3]=p;g=O[b+40>>3];h=f;break T}if(f>3]=f;h=f}f=O[b+24>>3];if(f>3]=f;n=f}f=O[b+32>>3];if(f>p){O[d+32>>3]=f;p=f}g=O[b+40>>3];if(!(j>3]=g;j=g}id(i,b);qc(dd(k));g=m;b=J[u>>2]}t=t+1|0;if((t|0)<(b|0))continue;break}}b=0;c=rc(16);J[695492]=0;s=$(3185,c|0)|0;k=J[695492];J[695492]=0;U:{V:{W:{if((k|0)!=1){z=J[l+8>> -2];if((z|0)>0){f=I+1;while(1){c=J[J[l>>2]+(b<<2)>>2];m=(O[c+16>>3]+O[c+32>>3])*.5;X:{if(!(m>g)|!(f>m))break X;m=(O[c+24>>3]+O[c+40>>3])*.5;if(!(m>e)|!(o>m))break X;id(s,c);z=J[l+8>>2]}b=b+1|0;if((z|0)>(b|0))continue;break}}b=et(a,s,v);e=O[b+16>>3];if(J[i+8>>2])break W;O[d+16>>3]=e;O[d+24>>3]=O[b+24>>3];O[d+32>>3]=O[b+32>>3];m=O[b+40>>3];break V}break b}if(e>3]=e;e=O[b+24>>3];if(e>3]=e;e=O[b+32>>3];if(e>p)O[d+32>>3]=e;m=O[b+40>>3];if(!(m>j))break U}O[d+40>>3]=m}id(i,b);break I}if((s| -0)>0){d=rc(16);J[695492]=0;i=$(3185,d|0)|0;b=J[695492];J[695492]=0;Y:{Z:{if((b|0)!=1){d=rc(16);J[695492]=0;s=$(3185,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Z;if(J[l+8>>2]>0){b=0;while(1){c=J[J[l>>2]+(b<<2)>>2];id(O[c+56>>3]>g?i:s,c);b=b+1|0;if((b|0)>2])continue;break}}d=et(a,s,v);b=J[i+8>>2];if((b|0)<2)break M;v=J[i>>2];k=v-4|0;t=1;break Y}b=Z()|0;break c}b=Z()|0;break c}while(1){_:{l=t<<2;c=J[l+k>>2];e=O[c+56>>3];l=J[l+v>>2];h=O[l+56>>3];e=(eO[c+40>>3]-O[l+24>>3]| -e>O[l+40>>3]-O[c+24>>3])break _;t=t+1|0;if((t|0)!=(b|0))continue;break M}break}while(1){c=b-1|0;FH(a,J[J[i>>2]+(c<<2)>>2],d);l=b>>>0>1;b=c;if(l)continue;break}break K}d=rc(56);J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=v;J[d>>2]=2;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[695492]=0;c=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1)break L;J[695492]=0;v=$(3185,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;qc(c);break c}J[d+52>>2]=v;if(J[l+ -8>>2]<=0)break H;b=0;f=0;e=0;o=0;h=0;while(1){c=J[J[l>>2]+(b<<2)>>2];j=O[c+16>>3];$:{aa:{if(!J[v+8>>2]){O[d+16>>3]=j;o=O[c+24>>3];O[d+24>>3]=o;e=O[c+32>>3];O[d+32>>3]=e;g=O[c+40>>3];h=j;break aa}if(h>j){O[d+16>>3]=j;h=j}g=O[c+24>>3];if(g>3]=g;o=g}g=O[c+32>>3];if(g>e){O[d+32>>3]=g;e=g}g=O[c+40>>3];if(!(g>f))break $}O[d+40>>3]=g;f=g}id(v,c);b=b+1|0;if((b|0)>2])continue;break}break H}b=Z()|0;break c}$X(a,i,d);break K}b=Z()|0;break c}qc(dd(i));break I}d=rc(56);J[d+16>>2]=0;J[d+20>>2]= -0;J[d+8>>2]=v;J[d>>2]=1;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[695492]=0;c=$(4,16)|0;i=J[695492];J[695492]=0;if((i|0)==1)break G;J[695492]=0;i=$(3185,c|0)|0;k=J[695492];J[695492]=0;if((k|0)==1){b=Z()|0;qc(c);break c}J[d+48>>2]=b;J[d+52>>2]=i;e=h+-1;b=J[y>>2];ba:{if((b|0)<=0){f=I+1;g=p+-1;j=0;p=0;n=0;h=0;break ba}f=I+1;g=p+-1;q=q*-.2+o;j=0;p=0;n=0;h=0;t=0;while(1){c=J[y+8>>2]+(t<<4)|0;if(q>3]){m=O[c>>3];c=rc(16);J[695492]=0;k= -$(3185,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;b=0;s=J[l+8>>2];if((s|0)>0)while(1){c=J[J[l>>2]+(b<<2)>>2];o=(O[c+16>>3]+O[c+32>>3])*.5;ca:{if(!(o>g)|!(f>o))break ca;o=(O[c+24>>3]+O[c+40>>3])*.5;if(!(o>e)|!(o>2]}b=b+1|0;if((s|0)>(b|0))continue;break}b=et(a,k,v);o=O[b+16>>3];da:{ea:{if(!J[i+8>>2]){O[d+16>>3]=o;n=O[b+24>>3];O[d+24>>3]=n;p=O[b+32>>3];O[d+32>>3]=p;e=O[b+40>>3];h=o;break ea}if(h>o){O[d+16>>3]=o;h=o}e=O[b+24>>3];if(e>3]=e;n=e}e=O[b+32>> -3];if(e>p){O[d+32>>3]=e;p=e}e=O[b+40>>3];if(!(j>3]=e;j=e}id(i,b);qc(dd(k));e=m;b=J[y>>2]}t=t+1|0;if((t|0)<(b|0))continue;break}}b=0;c=rc(16);J[695492]=0;s=$(3185,c|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break b;z=J[l+8>>2];if((z|0)>0){o=H+1;while(1){c=J[J[l>>2]+(b<<2)>>2];m=(O[c+16>>3]+O[c+32>>3])*.5;fa:{if(!(m>g)|!(f>m))break fa;m=(O[c+24>>3]+O[c+40>>3])*.5;if(!(m>e)|!(o>m))break fa;id(s,c);z=J[l+8>>2]}b=b+1|0;if((z|0)>(b|0))continue;break}}b=et(a,s,v);e=O[b+16>>3];ga:{ha:{if(!J[i+ -8>>2]){O[d+16>>3]=e;O[d+24>>3]=O[b+24>>3];O[d+32>>3]=O[b+32>>3];m=O[b+40>>3];break ha}if(e>3]=e;e=O[b+24>>3];if(e>3]=e;e=O[b+32>>3];if(e>p)O[d+32>>3]=e;m=O[b+40>>3];if(!(m>j))break ga}O[d+40>>3]=m}id(i,b)}qc(dd(s))}b=J[y+8>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;qc(y);b=J[u+8>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break F;qc(u);b=J[d>>2];ia:{ja:{ka:{la:switch(J[a>>2]-2|0){case 2:if((b|0)==2)break ka;if(!(!J[d+48>>2]|(b|0)!=(J[d+8>>2]& +0;i=(f+(c?-1:0)|0)-1|0;c=j&7;Ta:{if(!c){f=b;break Ta}f=b;while(1){J[f>>2]=m;j=j-1|0;f=f+4|0;m=m+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}if(i>>>0<7)break Sa;while(1){J[f>>2]=m;J[f+28>>2]=m+7;J[f+24>>2]=m+6;J[f+20>>2]=m+5;J[f+16>>2]=m+4;J[f+12>>2]=m+3;J[f+8>>2]=m+2;J[f+4>>2]=m+1;f=f+32|0;m=m+8|0;j=j-8|0;if(j)continue;break}}J[v+56>>2]=h;J[a+8>>2]=e;b=J[d+8>>2];J[a+24>>2]=f;J[a+16>>2]=b}fc=d+16|0}function afb(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,y=0,z=0,A=0,C=0,D=0;n=fc-80|0;fc=n;a:{b:{if(!J[a+16>>2]){b=1;break b}p=J[b>>2];b=p&65280;e=(b|0)!=256;c:{if(e&(b|0)!=512)break c;H[J[J[a+20>>2]+4>>2]+24|0]=e;d:{e:{f:{g:{h:{if(J[a+96>>2]==3008){v=(J[a+140>>2]-1>>>0>1)<<2;b=J[a+116>>2];if(b){d=vc(80);J[699344]=0;b=ga(2224,d|0,b|0,v|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;break a}m=a+124|0;b=K[a+135|0];c=b<<24>>24<0;b=c?J[a+128>>2]:b;if((b|0)<5)break f;e=c?J[m>>2]:m;d=e+(b<<2)|0;c=e;while(1){b=og(c,100,b-4|0);if(!b)break f; +if(qd(b,340212,5)){c=b+4|0;b=d-c>>2;if((b|0)>=5)continue;break f}break}if((b|0)==(d|0)|(b|0)!=(e|0))break f;b=K[a+135|0];c=b<<24>>24<0;b=c?J[a+128>>2]:b;i:{j:{if((b|0)<16)break j;d=c?J[a+124>>2]:m;e=d+(b<<2)|0;c=d;while(1){b=og(c,111,b-15|0);if(!b)break j;if(qd(b,340236,16)){c=b+4|0;b=e-c>>2;if((b|0)>=16)continue;break j}break}if((b|0)==(e|0))break j;e=1;if((b-d|0)!=-4)break i}e=0}b=0;d=Ci(m,44,0);l=J[a+124>>2];c=K[a+135|0];r=c<<24>>24<0;d=d+1|0;k=(r?J[a+128>>2]:c)-d|0;J[n+76>>2]=k;t=vc(k);o=t;c= +0;k:{j=(d<<2)+(r?l:m)|0;q=n+76|0;if(!(!j|!q)){u=!o;l:{if((k|0)<=0)break l;r=(k<<2)+j|0;while(1){if(!J[j>>2])break l;f=0;m:{n:{if(j>>>0>>0){l=0;m=0;while(1){d=J[j>>2];h=d-65|0;o:{if(h>>>0<26)break o;if(d-97>>>0<=25){h=d-71|0;break o}if(d-48>>>0<=9){h=d+4|0;break o}h=(d|0)==43?62:(d|0)==47?63:-1}d=(h|0)==-1;f=d?f:f+6|0;m=d?m:m<<6|h;l=(l-d|0)+1|0;j=j+4|0;if((l|0)<=3&r>>>0>j>>>0)continue;break}if(!u)break n;u=1;if((f|0)<=7)break m;c=(f>>>3|0)+c|0;break m}if(u){u=1;break m}m=0}k=(f|0)/8|0;d=k+c|0;l= +J[q>>2];u=(d|0)>(l|0);if((f|0)<=7)break m;if((d|0)>(l|0)){c=c+k|0;break m}h=m<<24-f;if(k-1>>>0>=3){c=k&-4;f=0;while(1){H[o+3|0]=0;H[o+2|0]=h;H[o+1|0]=h>>>8;H[o|0]=h>>>16;o=o+4|0;h=0;f=f+4|0;if((c|0)!=(f|0))continue;break}}f=0;c=k&3;if(c)while(1){H[o|0]=h>>>16;h=h<<8;o=o+1|0;f=f+1|0;if((c|0)!=(f|0))continue;break}c=d}if(j>>>0>>0)continue;break}}J[q>>2]=c;h=!u}if((h|0)==1){c=n+24|0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]= +0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;p:{q:{r:{s:{if(e){b=n;g=Y(+(J[b+76>>2]>>2));t:{if(R(g)<2147483648){d=~~g;break t}d=-2147483648}J[b+20>>2]=d;J[699344]=0;H[n+16|0]=1;H[c+40|0]=K[n+16|0];b=J[699344];J[699344]=0;u:{if((b|0)!=1){J[699344]=0;J[c+16>>2]=t;b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;J[c+4>>2]=J[n+20>>2];b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;J[c+8>>2]=J[n+20>>2];b=J[699344];J[699344]=0;if((b| +0)==1)break u;J[699344]=0;J[n+16>>2]=J[n+20>>2]<<2;J[c+12>>2]=J[n+16>>2];b=J[699344];J[699344]=0;if((b|0)!=1)break s;a=Z()|0;break g}a=Z()|0;break g}a=Z()|0;break g}J[699344]=0;H[n+20|0]=0;H[c+40|0]=K[n+20|0];b=J[699344];J[699344]=0;if((b|0)==1)break r;J[699344]=0;ha(2235,c|0,t|0,J[n+76>>2],0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q;uc(t)}J[699344]=0;b=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break p;break h}a=Z()|0;break g}a=Z()|0;break g}J[699344]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+4>>2]= +1;J[b+8>>2]=8;J[b>>2]=351116;J[b+20>>2]=0;J[b+24>>2]=0;H[b+28|0]=0;e=J[699344];J[699344]=0;v:{w:{x:{if((e|0)!=1){J[699344]=0;l=J[c+16>>2];e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;d=J[c+4>>2];e=J[699344];J[699344]=0;if((e|0)==1)break x;J[n+20>>2]=d;J[699344]=0;d=J[c+8>>2];e=J[699344];J[699344]=0;if((e|0)==1)break w;J[n+16>>2]=d;J[699344]=0;d=J[c+12>>2];e=J[699344];J[699344]=0;if((e|0)==1)break v;J[699344]=0;J[n+12>>2]=d;yi(b,l,n+20|0,n+16|0,n+12|0,0);e=J[699344];J[699344]=0;if((e|0)== +1)break v;J[699344]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;d=_(4,80)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;b=ga(2224,d|0,b|0,v|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break k;a=Z()|0;uc(d);break g}a=Z()|0;uc(b);break g}a=Z()|0;break g}a=Z()|0;break g}a= +Z()|0;break g}uc(t);c=0;break d}J[b+12>>2]=1;Yg(c);c=0;break e}b=ID(a,a+88|0);break d}a=Z()|0}Yg(c);ba(a|0);B()}b=J[a+668>>2];if(b){c=kc[J[J[b>>2]+20>>2]](b,m)|0;d=vc(80);b=J[J[c>>2]+16>>2];J[699344]=0;e=_(b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;b=ga(2224,d|0,e|0,v|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e}break a}c=0;d=vc(80);J[699344]=0;b=ga(2225,d|0,m|0,v|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;break a}wD(b,a+120|0);H[b+72|0]=J[a+136>>2];if(J[a+144>>2]!=1)break d; +H[b+32|0]=1;i=+N[a+148>>2];O[b+40>>3]=i;g=+N[a+152>>2];O[b+48>>3]=g;O[b+56>>3]=i+ +N[a+156>>2];O[b- -64>>3]=g+ +N[a+160>>2]}F5(J[a+16>>2],b,J[a+20>>2]);if(b)kc[J[J[b>>2]+4>>2]](b);if(!c)break c;kc[J[J[c>>2]+12>>2]](c)|0}b=0;if(!(p&1))break b;h=J[a+16>>2];c=fc-1040|0;fc=c;y:{z:{A:{B:{C:{d=J[a+20>>2];if(!(!d|(a|0)==-24)){l=a;H[h+1800|0]=0;e=h+1776|0;J[e>>2]=0;J[e+4>>2]=0;e=h+1768|0;J[e>>2]=2147483647;J[e+4>>2]=2147483647;e=h+1760|0;J[e>>2]=0;J[e+4>>2]=0;e=h+1752|0;J[e>>2]=2147483647;J[e+4>>2]=2147483647; +e=h+1712|0;J[e>>2]=0;J[e+4>>2]=0;J[h+2876>>2]=0;e=h+1792|0;J[e>>2]=-2147483647;J[e+4>>2]=-2147483647;e=h+1784|0;J[e>>2]=2147483647;J[e+4>>2]=2147483647;v=2;a=H[a+51|0];if(a>>>0<=3)v=J[(a<<2)+349304>>2];t=K[l+49|0];g=O[l+40>>3];D:{if(K[h+2896|0]|!K[h+2948|0])break D;e=J[h+56>>2];if(g==0){a=J[e+44>>2];J[c+624>>2]=J[e+40>>2];J[c+628>>2]=a;a=J[e+36>>2];J[c+616>>2]=J[e+32>>2];J[c+620>>2]=a;a=J[e+28>>2];J[c+608>>2]=J[e+24>>2];J[c+612>>2]=a;a=J[e+20>>2];J[c+600>>2]=J[e+16>>2];J[c+604>>2]=a;a=J[e+12>>2]; +J[c+592>>2]=J[e+8>>2];J[c+596>>2]=a;a=J[e+4>>2];J[c+584>>2]=J[e>>2];J[c+588>>2]=a;a=xq(c+584|0);i=R(O[a+8>>3]*.72+O[a+24>>3]*.72);g=R(O[a>>3]*.72+O[a+16>>3]*.72);g=g>i?i:g;break D}i=Y(R(O[e>>3]*O[e+24>>3]-O[e+16>>3]*O[e+8>>3]));if(i==0)break D;i=1/i;if(!(i>g))break D;g=i}y=O[l+80>>3];k=J[d+4>>2];a=0;J[c+1032>>2]=0;e=c+1024|0;J[e>>2]=0;J[e+4>>2]=0;J[c+1016>>2]=0;J[c+1020>>2]=0;if(J[k>>2]){f=0;while(1){e=f&255;d=f>>>6&67108860;p=K[e+J[d+J[k+16>>2]>>2]|0];e=J[d+J[k+12>>2]>>2]+(e<<4)|0;s=O[e+8>>3];i= +O[e>>3];j=J[c+1020>>2];q=a>>>8|0;if(j>>>0<=q>>>0){u=J[c+1024>>2];E:{if(q>>>0>>0){m=J[c+1028>>2];break E}e=(u<<1)+512|0;m=vc(e>>>0>1073741823?-1:e<<2);r=u<<2;d=(m+r|0)+1024|0;e=J[c+1028>>2];if(e){xc(m,e,r);xc(d,J[c+1032>>2],r);uc(e);j=J[c+1020>>2];u=J[c+1024>>2];a=J[c+1016>>2]}J[c+1032>>2]=d;J[c+1028>>2]=m;J[c+1024>>2]=u+256}e=q<<2;C=e+m|0,D=vc(4352),J[C>>2]=D;J[e+J[c+1032>>2]>>2]=J[e+J[c+1028>>2]>>2]+4096;J[c+1020>>2]=j+1}d=q<<2;e=J[d+J[c+1028>>2]>>2];H[J[d+J[c+1032>>2]>>2]+(a&255)|0]=p;a=(a<< +4&4080)+e|0;O[a+8>>3]=s;O[a>>3]=i;a=J[c+1016>>2]+1|0;J[c+1016>>2]=a;f=f+1|0;if(f>>>0>2])continue;break}}J[c+1036>>2]=J[k+20>>2];F:{if(!K[h+2896|0]){k=J[h+56>>2];z=R(O[k>>3]*O[k+24>>3]-O[k+16>>3]*O[k+8>>3]);e=0;if(!(z<1E-4))break F;if(a){f=0;q=J[c+1028>>2];r=J[c+1032>>2];while(1){p=f&255;e=f>>>8<<2;if(K[p+J[e+r>>2]|0]-1>>>0<=13){A=O[k+32>>3];x=O[k>>3];w=O[k+16>>3];e=J[e+q>>2];d=e+(f<<4&4080)|0;e=e+(p<<4)|0;s=O[e>>3];i=O[e+8>>3];O[d+8>>3]=O[k+40>>3]+(s*O[k+8>>3]+i*O[k+24>>3]);O[d>>3]=A+(s*x+i* +w)}f=f+1|0;if((f|0)!=(a|0))continue;break}}g=g*Y(z)}e=1}J[c+600>>2]=0;J[c+604>>2]=0;J[c+608>>2]=0;J[c+612>>2]=0;J[c+752>>2]=0;J[c+756>>2]=0;J[c+736>>2]=0;J[c+740>>2]=1072693248;J[c+616>>2]=0;J[c+620>>2]=1072693248;J[c+760>>2]=0;J[c+764>>2]=0;J[c+768>>2]=0;J[c+772>>2]=0;J[c+776>>2]=0;J[c+968>>2]=0;J[c+972>>2]=0;J[c+952>>2]=0;J[c+956>>2]=1072693248;J[c+800>>2]=0;J[c+804>>2]=1072693248;J[c+780>>2]=64;J[c+784>>2]=1;J[c+976>>2]=0;J[c+980>>2]=0;J[c+984>>2]=0;J[c+988>>2]=0;J[c+992>>2]=0;J[c+996>>2]=0;J[c+ +1E3>>2]=0;J[c+592>>2]=0;J[c+596>>2]=0;J[c+792>>2]=0;J[c+796>>2]=0;J[c+584>>2]=c+1016;J[c+1004>>2]=64;J[c+1008>>2]=1;J[699344]=0;O[c+616>>3]=25;a=J[699344];J[699344]=0;if((a|0)==1)break A;J[699344]=0;J[c+736>>2]=0;J[c+740>>2]=1077477376;O[c+800>>3]=25;a=J[699344];J[699344]=0;if((a|0)==1)break A;J[c+1008>>2]=0;J[c+784>>2]=0;J[c+952>>2]=0;J[c+956>>2]=1077477376;a=K[l+48|0];G:{if((a|0)!=5)break G;a=0;p=J[l+56>>2];if(!p)break G;d=J[l+52>>2];if(!d|(p|0)<=0)break G;while(1){if(R(O[d+(a<<3)>>3])>1E-4){a= +5;break G}a=a+1|0;if((p|0)!=(a|0))continue;break}a=0}H:{I:{J:{K:{L:{if(!e){j=J[h+56>>2];break L}J[699344]=0;j=_(4,48)|0;d=J[699344];J[699344]=0;if((d|0)==1)break K;J[j+8>>2]=0;J[j+12>>2]=0;J[j>>2]=0;J[j+4>>2]=1072693248;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=1072693248;J[j+16>>2]=0;J[j+20>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0}k=h+1704|0;q=t?(t|0)==1?1:2:0;if(!a){J[699344]=0;J[c+192>>2]=c+584;d=XL(c+200|0);a=J[699344];J[699344]=0;M:{if((a|0)!=1){J[c+264>>2]=3;J[c+260>>2]=v;J[c+256>>2]=q;O[c+232>> +3]=y;J[c+348>>2]=0;g=g*.5;O[d>>3]=g;a=g<0;J[c+224>>2]=a?-1:1;O[c+208>>3]=a?-g:g;J[c+248>>2]=0;J[c+252>>2]=1077477376;O[c+216>>3]=g*9.765625E-4;J[699344]=0;J[c+12>>2]=j;J[c+8>>2]=c+192;ca(2295,k|0,c+8|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break M;d=J[c+296>>2];if(d){a=d-1|0;J[c+296>>2]=a;f=J[c+304>>2]+(d<<2)|0;while(1){f=f-4|0;d=J[f>>2];if(d){uc(d);a=J[c+296>>2]}d=a;a=d-1|0;J[c+296>>2]=a;if(d)continue;break}}a=J[c+304>>2];if(a)uc(a);d=J[c+276>>2];if(d){a=d-1|0;J[c+276>>2]=a;f=J[c+284>>2]+(d<<2)| +0;while(1){f=f-4|0;d=J[f>>2];if(d){uc(d);a=J[c+276>>2]}d=a;a=d-1|0;J[c+276>>2]=a;if(d)continue;break}}a=J[c+284>>2];if(!a)break H;uc(a);break H}a=Z()|0;break z}a=Z()|0;E5(c+192|0);break z}J[699344]=0;J[c+192>>2]=c+584;o=N3(c+200|0);d=J[699344];J[699344]=0;N:{O:{P:{Q:{R:{S:{T:{U:{if((d|0)!=1){J[c+556>>2]=0;J[699344]=0;J[c+8>>2]=c+192;r=XL(c+16|0);d=J[699344];J[699344]=0;if((d|0)==1)break U;J[c+164>>2]=0;i=g;switch(a-1|0){case 1:break P;case 3:break R;case 2:break S;case 0:break T;default:break O}}a= +Z()|0;break z}a=Z()|0;break I}i=g*3;break P}i=g*3;break Q}J[699344]=0;$r(o,g*3,g);a=J[699344];J[699344]=0;if((a|0)==1)break J}J[699344]=0;$r(o,i,g);a=J[699344];J[699344]=0;i=g;if((a|0)==1)break J}J[699344]=0;$r(o,i,g);a=J[699344];J[699344]=0;if((a|0)!=1)break N;break J}m=J[l+56>>2];p=(m|0)/2|0;t=J[l+52>>2];w=O[l+64>>3];V:{if((m|0)<2)break V;s=O[t+8>>3];i=O[t>>3];J[699344]=0;$r(o,i,s);d=J[699344];J[699344]=0;a=1;if((d|0)==1)break J;if((m&-2)==2)break V;while(1){d=t+(a<<4)|0;s=O[d>>3];i=O[d+8>>3];J[699344]= +0;$r(o,s,i);d=J[699344];J[699344]=0;if((d|0)==1)break J;a=a+1|0;if((p|0)!=(a|0))continue;break}}if((m&-2147483647)==1){i=O[(t+(m<<3)|0)-8>>3];J[699344]=0;$r(o,i,0);a=J[699344];J[699344]=0;if((a|0)==1)break J}J[699344]=0;M3(o,w);a=J[699344];J[699344]=0;if((a|0)==1)break J}a=K[h+2896|0];d=J[h+44>>2];x=O[d+24>>3];w=O[d>>3];s=O[d+16>>3];i=O[d+8>>3];J[c+76>>2]=v;J[c+72>>2]=q;O[c+48>>3]=y;s=1/Y(R(w*x-s*i));i=g>3]=g;O[c+32>>3]=g*9.765625E-4;a=g<0;J[c+40>>2]=a?-1:1;O[c+24>> +3]=a?-g:g;J[699344]=0;J[c+4>>2]=j;J[c>>2]=c+8;ca(2299,k|0,c|0,0);a=J[699344];J[699344]=0;if((a|0)!=1){d=J[c+112>>2];if(d){a=d-1|0;J[c+112>>2]=a;f=J[c+120>>2]+(d<<2)|0;while(1){f=f-4|0;d=J[f>>2];if(d){uc(d);a=J[c+112>>2]}d=a;a=d-1|0;J[c+112>>2]=a;if(d)continue;break}}a=J[c+120>>2];if(a)uc(a);d=J[c+92>>2];if(d){a=d-1|0;J[c+92>>2]=a;f=J[c+100>>2]+(d<<2)|0;while(1){f=f-4|0;d=J[f>>2];if(d){uc(d);a=J[c+92>>2]}d=a;a=d-1|0;J[c+92>>2]=a;if(d)continue;break}}a=J[c+100>>2];if(a)uc(a);d=J[c+524>>2];if(d){a=d- +1|0;J[c+524>>2]=a;f=J[c+532>>2]+(d<<2)|0;while(1){f=f-4|0;d=J[f>>2];if(d){uc(d);a=J[c+524>>2]}d=a;a=d-1|0;J[c+524>>2]=a;if(d)continue;break}}a=J[c+532>>2];if(!a)break H;uc(a);break H}break J}a=Z()|0;break z}a=Z()|0;E5(c+8|0)}e=J[c+524>>2];if(e){b=e-1|0;J[c+524>>2]=b;d=J[c+532>>2]+(e<<2)|0;while(1){d=d-4|0;e=J[d>>2];if(e){uc(e);b=J[c+524>>2]}e=b;b=e-1|0;J[c+524>>2]=b;if(e)continue;break}}b=J[c+532>>2];if(b)uc(b);break z}g=O[h+2904>>3]*+J[l+32>>2];W:{if(g<4294967296&g>=0){a=~~g>>>0;break W}a=0}d=J[l+ +28>>2];if(K[h+2912|0])d=d<<16&16711680|(d>>>16&255|(d&65280|a<<24));else d=d|a<<24;a=0;J[699344]=0;q=c+192|0;J[q+8>>2]=d;J[q>>2]=349344;J[q+4>>2]=0;d=J[699344];J[699344]=0;if((d|0)==1)break C;J[h+2860>>2]=0;i=O[l+688>>3];if(i>=0){r=h+1836|0;while(1){o=r+(a<<2)|0;g=i>+(a|0)/255?.5:255.5;X:{if(g<4294967296&g>=0){d=~~g>>>0;break X}d=0}J[o>>2]=d;p=a|1;o=r+(p<<2)|0;g=i>+(p|0)/255?.5:255.5;Y:{if(g<4294967296&g>=0){d=~~g>>>0;break Y}d=0}J[o>>2]=d;a=a+2|0;if((a|0)!=256)continue;break}}a=0;J[699344]=0;da(2291, +h|0,q|0);d=J[699344];J[699344]=0;if((d|0)==1)break B;if(O[l+688>>3]>=0){p=h+1836|0;while(1){h=p+(a<<2)|0;g=+(a|0)/255*255+.5;Z:{if(g<4294967296&g>=0){d=~~g>>>0;break Z}d=0}J[h>>2]=d;l=a|1;h=p+(l<<2)|0;g=+(l|0)/255*255+.5;_:{if(g<4294967296&g>=0){d=~~g>>>0;break _}d=0}J[h>>2]=d;a=a+2|0;if((a|0)!=256)continue;break}}if(e&(j|0)!=0)uc(j);e=J[c+992>>2];if(e){a=e-1|0;J[c+992>>2]=a;f=J[c+1E3>>2]+(e<<2)|0;while(1){f=f-4|0;e=J[f>>2];if(e){uc(e);a=J[c+992>>2]}e=a;a=e-1|0;J[c+992>>2]=a;if(e)continue;break}}a= +J[c+1E3>>2];if(a)uc(a);e=J[c+768>>2];if(e){a=e-1|0;J[c+768>>2]=a;f=J[c+776>>2]+(e<<2)|0;while(1){f=f-4|0;e=J[f>>2];if(e){uc(e);a=J[c+768>>2]}e=a;a=e-1|0;J[c+768>>2]=a;if(e)continue;break}}a=J[c+776>>2];if(a)uc(a);e=J[c+1020>>2];$:{if(!e)break $;a=e-1|0;J[c+1020>>2]=a;f=J[c+1028>>2]+(e<<2)|0;while(1){f=f-4|0;e=J[f>>2];if(e){uc(e);a=J[c+1020>>2]}e=a;a=e-1|0;J[c+1020>>2]=a;if(e)continue;break}a=J[c+1028>>2];if(!a)break $;uc(a)}}fc=c+1040|0;break y}a=Z()|0;break z}a=Z()|0;break z}a=Z()|0}AD(c+584|0); +D5(c+1016|0);ba(a|0);B()}}fc=n+80|0;return b|0}a=Z()|0;uc(d);ba(a|0);B()}function jjb(a){a=a|0;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;r=fc-256|0;fc=r;b=J[a+436>>2];while(1){a:{b:{if(b)break b;if(!J[J[a+460>>2]+12>>2]){h=J[a+24>>2];b=J[h+4>>2];if(!b){if(!(kc[J[h+12>>2]](a)|0)){b=0;break a}b=J[h+4>>2]}c=J[h>>2];g=K[c|0];m=b-1|0;if(m)c=c+1|0;else{if(!(kc[J[h+12>>2]](a)|0)){b=0;break a}m=J[h+4>>2];c=J[h>>2]}i=c+1|0;b=K[c|0]; +if(!((g|0)==255&(b|0)==216)){c=J[a>>2];J[c+24>>2]=g;J[c+20>>2]=55;J[J[a>>2]+28>>2]=b;kc[J[J[a>>2]>>2]](a)}J[a+436>>2]=b;J[h+4>>2]=m-1;J[h>>2]=i;break b}if(!XM(a)){b=0;break a}b=J[a+436>>2]}c:{d:{e:{f:{g:{h:{i:{j:{k:{l:switch(b-1|0){case 215:c=J[a>>2];J[c+20>>2]=104;kc[J[c+4>>2]](a,1);b=J[a+460>>2];if(J[b+12>>2]){c=J[a>>2];J[c+20>>2]=63;kc[J[c>>2]](a);b=J[a+460>>2]}H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;H[a+239|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+ +242|0]=0;H[a+243|0]=0;H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+256|0]=1;H[a+257|0]=1;H[a+258|0]=1;H[a+259|0]=1;H[a+260|0]=1;H[a+261|0]=1;H[a+262|0]=1;H[a+263|0]=1;H[a+248|0]=1;H[a+249|0]=1;H[a+250|0]=1;H[a+251|0]=1;H[a+252|0]=1;H[a+253|0]=1;H[a+254|0]=1;H[a+255|0]=1;H[a+272|0]=5;H[a+273|0]=5;H[a+274|0]=5;H[a+275|0]=5;H[a+276|0]=5;H[a+277|0]=5;H[a+278|0]=5;H[a+279|0]=5;H[a+264|0]=5;H[a+265|0]=5;H[a+266|0]=5;H[a+267|0]=5;H[a+268|0]=5;H[a+269|0]=5;H[a+270|0]=5;H[a+271|0]=5;J[a+304>>2]= +0;J[a+40>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;H[a+300|0]=0;J[a+292>>2]=65537;J[a+296>>2]=0;H[a+290|0]=0;I[a+288>>1]=257;J[b+12>>2]=1;break c;case 192:b=0;if(Yx(a,0,0,0))break c;break a;case 193:b=0;if(Yx(a,0,1,0))break c;break a;case 200:b=0;if(Yx(a,0,0,1))break c;break a;case 201:b=0;if(Yx(a,0,1,1))break c;break a;case 194:case 196:case 197:case 198:case 199:case 202:case 204:case 205:case 206:c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=62;kc[J[J[a>>2]>>2]](a);break c;case 217:l=J[a+24>>2];b=J[l+4>>2];d=J[l>> +2];if(!J[J[a+460>>2]+16>>2]){c=J[a>>2];J[c+20>>2]=64;kc[J[c>>2]](a)}if(!b){if(!(kc[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}g=K[d|0];e=b-1|0;if(e)c=d+1|0;else{if(!(kc[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}i=K[c|0];e=e-1|0;if(e)c=c+1|0;else{if(!(kc[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}b=J[a>>2];k=K[c|0];J[b+24>>2]=k;J[b+20>>2]=105;n=1;kc[J[J[a>>2]+4>>2]](a,1);m:{n:{o:{if(((k<<1)+6|0)!=(i|g<<8)|k>>>0>4)break o;if(k){J[a+336>>2]=k;d=c+1|0;b=e-1|0;break n}if(!J[a+ +224>>2])break o;J[a+336>>2]=k;d=c+1|0;b=e-1|0;break m}b=J[a>>2];J[b+20>>2]=12;kc[J[b>>2]](a);J[a+336>>2]=k;d=c+1|0;b=e-1|0;if(!k)break m}n=0;while(1){if(!b){if(!(kc[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}o=K[d|0];j=b-1|0;if(j)i=d+1|0;else{if(!(kc[J[l+12>>2]](a)|0)){b=0;break a}j=J[l+4>>2];i=J[l>>2]}b=J[a+216>>2];h=K[i|0];g=J[a+36>>2];p:{if((g|0)>0){c=P(g,88)+b|0;d=0;while(1){if((o|0)==J[b>>2])break p;b=b+88|0;d=d+1|0;if((g|0)!=(d|0))continue;break}b=c}c=J[a>>2];J[c+24>>2]=o;J[c+20>> +2]=4;kc[J[J[a>>2]>>2]](a)}J[((n<<2)+a|0)+340>>2]=b;J[b+24>>2]=h&15;J[b+20>>2]=h>>>4;g=J[a>>2];J[g+24>>2]=o;J[g+28>>2]=J[b+20>>2];c=J[b+24>>2];J[g+20>>2]=106;J[g+32>>2]=c;kc[J[g+4>>2]](a,1);d=i+1|0;b=j-1|0;n=n+1|0;if((k|0)!=(n|0))continue;break}n=0}if(!b){if(!(kc[J[l+12>>2]](a)|0)){b=0;break a}d=J[l>>2];b=J[l+4>>2]}J[a+408>>2]=K[d|0];e=b-1|0;if(e)c=d+1|0;else{if(!(kc[J[l+12>>2]](a)|0)){b=0;break a}e=J[l+4>>2];c=J[l>>2]}J[a+412>>2]=K[c|0];m=e-1|0;if(m)c=c+1|0;else{if(!(kc[J[l+12>>2]](a)|0)){b=0;break a}m= +J[l+4>>2];c=J[l>>2]}b=K[c|0];J[a+420>>2]=b&15;J[a+416>>2]=b>>>4;i=J[a>>2];J[i+24>>2]=J[a+408>>2];J[i+28>>2]=J[a+412>>2];J[i+32>>2]=J[a+416>>2];J[i+36>>2]=J[a+420>>2];J[i+20>>2]=107;b=1;kc[J[i+4>>2]](a,1);J[J[a+460>>2]+20>>2]=0;if(!n)J[a+144>>2]=J[a+144>>2]+1;J[l+4>>2]=m-1;J[l>>2]=c+1;J[a+436>>2]=0;break a;case 216:c=J[a>>2];J[c+20>>2]=87;kc[J[c+4>>2]](a,1);J[a+436>>2]=0;b=2;break a;case 203:j=J[a+24>>2];b=J[j+4>>2];if(!b){if(!(kc[J[j+12>>2]](a)|0)){b=0;break a}b=J[j+4>>2]}i=J[j>>2];c=K[i|0];d=b-1| +0;if(d)b=i+1|0;else{if(!(kc[J[j+12>>2]](a)|0)){b=0;break a}d=J[j+4>>2];b=J[j>>2]}e=b+1|0;d=d-1|0;c=K[b|0]|c<<8;b=c-2|0;if(c>>>0>=3)while(1){i=b;if(!d){if(!(kc[J[j+12>>2]](a)|0)){b=0;break a}d=J[j+4>>2];e=J[j>>2]}g=K[e|0];o=d-1|0;if(o)c=e+1|0;else{if(!(kc[J[j+12>>2]](a)|0)){b=0;break a}o=J[j+4>>2];c=J[j>>2]}h=K[c|0];b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=81;J[J[a>>2]+28>>2]=h;kc[J[J[a>>2]+4>>2]](a,1);q:{r:{s:{if(g>>>0>=32){b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=29;kc[J[J[a>>2]>>2]](a);break s}if(g>>>0<16)break r}H[(a+ +g|0)+248|0]=h;break q}b=a+g|0;g=h>>>4|0;H[b+248|0]=g;d=b;b=h&15;H[d+232|0]=b;if(b>>>0<=g>>>0)break q;b=J[a>>2];J[b+24>>2]=h;J[b+20>>2]=30;kc[J[J[a>>2]>>2]](a)}e=c+1|0;d=o-1|0;b=i-2|0;if(i>>>0>2)continue;break}if(b){c=J[a>>2];J[c+20>>2]=12;kc[J[c>>2]](a)}J[j+4>>2]=d;J[j>>2]=e;break c;case 195:f=J[a+24>>2];b=J[f+4>>2];if(!b){if(!(kc[J[f+12>>2]](a)|0))break k;b=J[f+4>>2]}i=J[f>>2];c=K[i|0];b=b-1|0;if(b)i=i+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;b=J[f+4>>2];i=J[f>>2]}d=i+1|0;b=b-1|0;c=K[i|0]|c<<8; +n=c-2|0;if(c>>>0>=19)while(1){if(!b){if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f>>2];b=J[f+4>>2]}c=J[a>>2];p=K[d|0];J[c+24>>2]=p;J[c+20>>2]=82;kc[J[J[a>>2]+4>>2]](a,1);e=b-1|0;if(e)c=d+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;e=J[f+4>>2];c=J[f>>2]}s=K[c|0];d=e-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}t=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}u=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+ +4>>2];c=J[f>>2]}v=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}w=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}x=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}y=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}z=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}A=K[c|0];d=d-1|0;if(d)c=c+1|0; +else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}B=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}C=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}l=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}m=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>>2];c=J[f>>2]}k=K[c|0];d=d-1|0;if(d)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f+4>> +2];c=J[f>>2]}o=K[c|0];e=d-1|0;if(e)c=c+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break k;e=J[f+4>>2];c=J[f>>2]}j=K[c|0];b=J[a>>2];J[b+24>>2]=s;J[b+20>>2]=88;J[b+52>>2]=z;J[b+48>>2]=y;J[b+44>>2]=x;J[b+40>>2]=w;J[b+36>>2]=v;J[b+32>>2]=u;J[b+28>>2]=t;kc[J[b+4>>2]](a,2);b=J[a>>2];J[b+24>>2]=A;J[b+20>>2]=88;J[b+52>>2]=j;J[b+48>>2]=o;J[b+44>>2]=k;J[b+40>>2]=m;J[b+36>>2]=l;J[b+32>>2]=C;J[b+28>>2]=B;kc[J[b+4>>2]](a,2);d=c+1|0;b=e-1|0;q=((((((((((((v+(u+(s+t|0)|0)|0)+w|0)+x|0)+y|0)+z|0)+A|0)+B|0)+C|0)+l|0)+m|0)+ +k|0)+o|0)+j|0;g=n-17|0;t:{u:{if(!(q>>>0<=256&g>>>0>=q>>>0)){c=J[a>>2];J[c+20>>2]=9;kc[J[c>>2]](a);break u}if(!q)break t}e=0;while(1){if(!b){if(!(kc[J[f+12>>2]](a)|0))break k;d=J[f>>2];b=J[f+4>>2]}H[e+r|0]=K[d|0];d=d+1|0;b=b-1|0;e=e+1|0;if(q>>>0>e>>>0)continue;break}}i=p-16|0;c=p&16;h=c?((i<<2)+a|0)+196|0:((p<<2)+a|0)+180|0;i=c?i:p;if(i>>>0>=4){c=J[a>>2];J[c+24>>2]=i;J[c+20>>2]=31;kc[J[J[a>>2]>>2]](a)}n=g-q|0;e=J[h>>2];if(!e){e=kc[J[J[a+4>>2]>>2]](a,0,280)|0;J[e+276>>2]=0;J[h>>2]=e}H[e+16|0]=j;H[e+ +15|0]=o;H[e+14|0]=k;H[e+13|0]=m;H[e+12|0]=l;H[e+11|0]=C;H[e+10|0]=B;H[e+9|0]=A;H[e+8|0]=z;H[e+7|0]=y;H[e+6|0]=x;H[e+5|0]=w;H[e+4|0]=v;H[e+3|0]=u;H[e+2|0]=t;H[e+1|0]=s;H[e|0]=0;xc(J[h>>2]+17|0,r,256);if((n|0)>16)continue;break}if(n){c=J[a>>2];J[c+20>>2]=12;kc[J[c>>2]](a)}J[f+4>>2]=b;J[f>>2]=d;break c;case 220:break d;case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:break e;case 253:break f;case 0:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:break g; +case 219:break h;case 191:break j;case 218:break l;default:break i}k=J[a+24>>2];b=J[k+4>>2];if(!b){if(!(kc[J[k+12>>2]](a)|0)){b=0;break a}b=J[k+4>>2]}i=J[k>>2];c=K[i|0];d=b-1|0;if(d)b=i+1|0;else{if(!(kc[J[k+12>>2]](a)|0)){b=0;break a}d=J[k+4>>2];b=J[k>>2]}n=b+1|0;m=d-1|0;c=K[b|0]|c<<8;d=c-2|0;if(c>>>0>=3)while(1){if(!m){if(!(kc[J[k+12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}g=K[n|0];c=J[a>>2];J[c+20>>2]=83;b=g&15;J[c+24>>2]=b;J[J[a>>2]+28>>2]=g>>>4;kc[J[J[a>>2]+4>>2]](a,1);if(b>>>0>=4){c=J[a>> +2];J[c+24>>2]=b;J[c+20>>2]=32;kc[J[J[a>>2]>>2]](a)}c=(b<<2)+a|0;b=J[c+164>>2];if(!b){b=kc[J[J[a+4>>2]>>2]](a,0,132)|0;J[b+128>>2]=0;J[c+164>>2]=b}i=d-1|0;v:{w:{x:{h=g>>>0<16;y:{z:{if(!h){if(d>>>0>128){o=53280;c=64;break y}I[b+120>>1]=1;I[b+122>>1]=1;I[b+124>>1]=1;I[b+126>>1]=1;I[b+112>>1]=1;I[b+114>>1]=1;I[b+116>>1]=1;I[b+118>>1]=1;I[b+104>>1]=1;I[b+106>>1]=1;I[b+108>>1]=1;I[b+110>>1]=1;I[b+96>>1]=1;I[b+98>>1]=1;I[b+100>>1]=1;I[b+102>>1]=1;I[b+88>>1]=1;I[b+90>>1]=1;I[b+92>>1]=1;I[b+94>>1]=1;I[b+80>> +1]=1;I[b+82>>1]=1;I[b+84>>1]=1;I[b+86>>1]=1;I[b+72>>1]=1;I[b+74>>1]=1;I[b+76>>1]=1;I[b+78>>1]=1;I[b+64>>1]=1;I[b+66>>1]=1;I[b+68>>1]=1;I[b+70>>1]=1;I[b+56>>1]=1;I[b+58>>1]=1;I[b+60>>1]=1;I[b+62>>1]=1;I[b+48>>1]=1;I[b+50>>1]=1;I[b+52>>1]=1;I[b+54>>1]=1;I[b+40>>1]=1;I[b+42>>1]=1;I[b+44>>1]=1;I[b+46>>1]=1;I[b+32>>1]=1;I[b+34>>1]=1;I[b+36>>1]=1;I[b+38>>1]=1;I[b+24>>1]=1;I[b+26>>1]=1;I[b+28>>1]=1;I[b+30>>1]=1;I[b+16>>1]=1;I[b+18>>1]=1;I[b+20>>1]=1;I[b+22>>1]=1;I[b+8>>1]=1;I[b+10>>1]=1;I[b+12>>1]=1;I[b+ +14>>1]=1;I[b>>1]=1;I[b+2>>1]=1;I[b+4>>1]=1;I[b+6>>1]=1;c=i>>>1|0;break z}c=64;o=53280;if(d>>>0>64)break y;I[b+120>>1]=1;I[b+122>>1]=1;I[b+124>>1]=1;I[b+126>>1]=1;I[b+112>>1]=1;I[b+114>>1]=1;I[b+116>>1]=1;I[b+118>>1]=1;I[b+104>>1]=1;I[b+106>>1]=1;I[b+108>>1]=1;I[b+110>>1]=1;I[b+96>>1]=1;I[b+98>>1]=1;I[b+100>>1]=1;I[b+102>>1]=1;I[b+88>>1]=1;I[b+90>>1]=1;I[b+92>>1]=1;I[b+94>>1]=1;I[b+80>>1]=1;I[b+82>>1]=1;I[b+84>>1]=1;I[b+86>>1]=1;I[b+72>>1]=1;I[b+74>>1]=1;I[b+76>>1]=1;I[b+78>>1]=1;I[b+64>>1]=1;I[b+ +66>>1]=1;I[b+68>>1]=1;I[b+70>>1]=1;I[b+56>>1]=1;I[b+58>>1]=1;I[b+60>>1]=1;I[b+62>>1]=1;I[b+48>>1]=1;I[b+50>>1]=1;I[b+52>>1]=1;I[b+54>>1]=1;I[b+40>>1]=1;I[b+42>>1]=1;I[b+44>>1]=1;I[b+46>>1]=1;I[b+32>>1]=1;I[b+34>>1]=1;I[b+36>>1]=1;I[b+38>>1]=1;I[b+24>>1]=1;I[b+26>>1]=1;I[b+28>>1]=1;I[b+30>>1]=1;I[b+16>>1]=1;I[b+18>>1]=1;I[b+20>>1]=1;I[b+22>>1]=1;I[b+8>>1]=1;I[b+10>>1]=1;I[b+12>>1]=1;I[b+14>>1]=1;I[b>>1]=1;I[b+2>>1]=1;I[b+4>>1]=1;I[b+6>>1]=1;c=i}o=54496;A:switch(c-4|0){case 5:o=54384;break y;case 12:o= +54256;break y;case 21:o=54080;break y;case 32:o=53872;break y;case 0:break y;case 45:break A;default:break x}o=53600}n=n+1|0;m=m-1|0;break w}n=n+1|0;m=m-1|0;o=53280;if(c)break w;c=0;break v}d=0;if(g>>>0<=15)while(1){if(!m){if(!(kc[J[k+12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}I[(J[(d<<2)+o>>2]<<1)+b>>1]=K[n|0];n=n+1|0;m=m-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break v}while(1){if(!m){if(!(kc[J[k+12>>2]](a)|0)){b=0;break a}n=J[k>>2];m=J[k+4>>2]}g=K[n|0];m=m-1|0;if(m)j=n+1|0;else{if(!(kc[J[k+12>> +2]](a)|0)){b=0;break a}m=J[k+4>>2];j=J[k>>2]}I[(J[(d<<2)+o>>2]<<1)+b>>1]=K[j|0]|g<<8;n=j+1|0;m=m-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}o=0;if(J[J[a>>2]+104>>2]>=2)while(1){j=J[a>>2];g=o<<1;J[j+24>>2]=L[g+b>>1];J[j+28>>2]=L[(g|2)+b>>1];J[j+32>>2]=L[(g|4)+b>>1];J[j+36>>2]=L[(g|6)+b>>1];J[j+40>>2]=L[(g|8)+b>>1];J[j+44>>2]=L[(g|10)+b>>1];J[j+48>>2]=L[(g|12)+b>>1];g=L[(g|14)+b>>1];J[j+20>>2]=95;J[j+52>>2]=g;kc[J[j+4>>2]](a,2);g=o>>>0<56;o=o+8|0;if(g)continue;break}d=i-((h?0:c)+c|0)|0;if((d|0)>0)continue; +break}if(d){c=J[a>>2];J[c+20>>2]=12;kc[J[c>>2]](a)}J[k+4>>2]=m;J[k>>2]=n;break c}b=0;break a}b=0;if(Yx(a,1,0,0))break c;break a}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=70;kc[J[J[a>>2]>>2]](a);break c}h=J[a+24>>2];d=J[h+4>>2];if(!d){if(!(kc[J[h+12>>2]](a)|0)){b=0;break a}d=J[h+4>>2]}c=J[h>>2];i=K[c|0];e=d-1|0;if(e)g=c+1|0;else{if(!(kc[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];g=J[h>>2]}b=K[g|0];c=J[a>>2];J[c+20>>2]=93;J[c+24>>2]=J[a+436>>2];b=b|i<<8;c=b-2|0;J[J[a>>2]+28>>2]=c;kc[J[J[a>>2]+4>>2]](a,1);J[h+ +4>>2]=e-1;J[h>>2]=g+1;if(b>>>0<3)break c;kc[J[J[a+24>>2]+16>>2]](a,c);break c}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=94;kc[J[J[a>>2]+4>>2]](a,1);break c}if(kc[J[J[a+460>>2]+28>>2]](a)|0)break c;b=0;break a}if(kc[J[(J[a+460>>2]+(b<<2)|0)-864>>2]](a)|0)break c;b=0;break a}h=J[a+24>>2];d=J[h+4>>2];if(!d){if(!(kc[J[h+12>>2]](a)|0)){b=0;break a}d=J[h+4>>2]}c=J[h>>2];b=K[c|0];e=d-1|0;if(e)c=c+1|0;else{if(!(kc[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];c=J[h>>2]}if((K[c|0]|b<<8)!=4){b=J[a>>2];J[b+20>>2]=12;kc[J[b>> +2]](a)}e=e-1|0;if(e)c=c+1|0;else{if(!(kc[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];c=J[h>>2]}i=K[c|0];e=e-1|0;if(e)g=c+1|0;else{if(!(kc[J[h+12>>2]](a)|0)){b=0;break a}e=J[h+4>>2];g=J[h>>2]}b=K[g|0];c=J[a>>2];J[c+20>>2]=84;j=c;c=b|i<<8;J[j+24>>2]=c;kc[J[J[a>>2]+4>>2]](a,1);J[a+280>>2]=c;J[h+4>>2]=e-1;J[h>>2]=g+1}b=0;J[a+436>>2]=0;continue}break}fc=r+256|0;return b|0}function g$(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F= +0,G=0,H=0,I=0,K=0,L=0,M=0,N=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0;e=fc-1952|0;fc=e;J[e+16>>2]=13;J[e>>2]=13;h=828796;a:{b:{c:{d:{e:{f:{g:{g=e+16|0;if(J[Ec(b,828470,g,0)>>2]!=1)break g;h=829754;r=J[e+24>>2];if(r-33>>>0<4294967264)break g;yc(g);h=830420;if(J[Ec(b,829956,g,0)>>2]!=1)break g;h=831075;w=J[e+24>>2];if(w-17>>>0<4294967280)break g;yc(g);h=831640;if(J[Ec(b,831366,g,0)>>2]!=1)break g;h=831957;A=J[e+24>>2];if(A-9>>>0<4294967289)break g;yc(g);h=833696;if(J[Ec(b,833461,g,0)>>2]!=6)break g; +g=J[e+24>>2];if(J[g+12>>2]<6)break g;f=Sc(g,0,e,0);C=O[f+8>>3];v=J[f+8>>2];D=J[f>>2];yc(e);f=Sc(J[e+24>>2],1,e,0);E=O[f+8>>3];z=J[f+8>>2];H=J[f>>2];yc(e);F=Dv(r);f=Sc(J[e+24>>2],2,e,0);I=J[f>>2];x=O[f+8>>3];K=J[f+8>>2];yc(e);f=Sc(J[e+24>>2],3,e,0);i=J[f>>2];s=O[f+8>>3];l=J[f+8>>2];yc(e);f=J[e+24>>2];h:{if(J[f+12>>2]<6)break h;t=+(-1<>2]==1?+J[f+8>>2]:O[f+8>>3];O[G+(e+1568|0)>>3]=p;yc(e);f=Sc(J[e+24>>2],j,e,0);g=J[f>>2];n=O[f+8>>3];f=J[f+8>> +2];yc(e);O[G+(e+1312|0)>>3]=(((g|0)==1?+(f|0):n)-p)/t;m=h+1|0;if(h>>>0>30)break h;h=m;g=h<<1;j=g+5|0;f=J[e+24>>2];if((j|0)>2])continue;break}}f=e+16|0;yc(f);if(J[Ec(b,824574,f,0)>>2]==5)break d;if(J[e+16>>2]!=6)break e;y=J[J[e+24>>2]+12>>2];if((y|0)>32)break f;h=0;if((y|0)<=0)break d;while(1){Sc(J[e+24>>2],h,e,0);f=fi(e,1,1,0);J[(e+1824|0)+(h<<2)>>2]=f;if(!f){yc(e+16|0);yc(e);f=0;break c}yc(e);h=h+1|0;if((y|0)!=(h|0))continue;break}break d}Cc(1,-1,h,0);yc(e+16|0);break c}f=0;Cc(1,-1,825424, +0);break c}f=0;y=1;g=e+16|0;h=fi(g,1,-1,0);J[e+1824>>2]=h;if(h)break d;yc(g);break c}yc(e+16|0);k=vc(12);J[k>>2]=c;f=J[J[c>>2]+20>>2];J[699344]=0;$(f|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;u=(i|0)==1?+(l|0):s;s=(I|0)==1?+(K|0):x;n=F+-1;t=(u-s)/n;p=(D|0)==1?+(v|0):C;n=(((H|0)==1?+(z|0):E)-p)/n;J[k+4>>2]=0;G=0-A|0;H=-1<>2]=0;f=A;g=G;j=0;j:{k:{if(I)break k;while(1){h=J[k>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;J[k+4>>2]=h;if((h|0)== +-1)break i;if(f>>>0<=7){g=8-f|0;j=c<>g;c=h;break k}c=c<<8|h;g=(f|0)>8;f=f-8|0;if(g)continue;break}break j}J[k+8>>2]=g;h=c;c=j}l:{m:{v=c&3;if(!(o|!v)){f=0;Cc(1,-1,834115,0);b=J[k>>2];a=J[J[b>>2]+24>>2];J[699344]=0;$(a|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break a}i=K?v?8:12:v?12:16;l=v?2:4;d=0;while(1){g=J[k+8>>2];n:{if((r|0)<=(g|0)){g=g-r|0;c=D&h>>g;J[k+8>>2]=g;break n}o:{if((g|0)<=0){c=0;f=r;break o}J[k+8>>2]=0;f=r-g|0;c=(-1<>2];h= +kc[J[J[h>>2]+28>>2]](h)|0;J[k+4>>2]=h;if((h|0)==-1)break i;if(f>>>0<=7){g=8-f|0;c=c<>g;J[k+8>>2]=g;break n}c=c<<8|h;g=(f|0)>8;f=f-8|0;if(g)continue;break}g=J[k+8>>2]}p:{q:{if((g|0)>=(r|0)){j=g-r|0;g=D&h>>j;break q}r:{if((g|0)<=0){f=r;g=0;break r}J[k+8>>2]=0;f=r-g|0;g=(-1<>2];h=kc[J[J[h>>2]+28>>2]](h)|0;J[k+4>>2]=h;if((h|0)==-1)break i;if(f>>>0<=7){j=8-f|0;g=g<>j;break q}g=g<<8|h;j=(f|0)>8;f=f-8|0;if(j)continue;break}break p}J[k+8>>2]=j}f=d<<3; +O[f+(e+1056|0)>>3]=t*+(g>>>0)+s;O[f+(e+1184|0)>>3]=n*+(c>>>0)+p;d=d+1|0;if((i|0)!=(d|0))continue;break}break l}uc(k);if(!q)break c;Mc(q);break c}d=0;if(m)while(1){j=0;while(1){c=J[k+8>>2];s:{if((c|0)>=(w|0)){f=c-w|0;c=H&h>>f;J[k+8>>2]=f;break s}t:{if((c|0)<=0){f=w;c=0;break t}J[k+8>>2]=0;f=w-c|0;c=(-1<>2];h=kc[J[J[h>>2]+28>>2]](h)|0;J[k+4>>2]=h;if((h|0)==-1)break i;if(f>>>0<=7){c=c<>f;J[k+8>>2]=f;break s}c=c<<8|h;g=(f|0)>8;f=f-8|0;if(g)continue; +break}}f=j<<3;O[f+((e+32|0)+(d<<8)|0)>>3]=O[f+(e+1312|0)>>3]*+(c>>>0)+O[f+(e+1568|0)>>3];j=j+1|0;if((m|0)!=(j|0))continue;break}d=d+1|0;if((l|0)!=(d|0))continue;break}if((o|0)==(z|0)){z=o?o<<1:16;q=Wd(q,z,1280)}d=P(o,1280)+q|0;u:{if((a|0)==6){v:switch(v-1|0){default:O[d>>3]=O[e+1184>>3];O[d+128>>3]=O[e+1056>>3];O[d+8>>3]=O[e+1192>>3];O[d+136>>3]=O[e+1064>>3];O[d+16>>3]=O[e+1200>>3];O[d+144>>3]=O[e+1072>>3];O[d+24>>3]=O[e+1208>>3];O[d+152>>3]=O[e+1080>>3];O[d+56>>3]=O[e+1216>>3];O[d+184>>3]=O[e+1088>> +3];O[d+88>>3]=O[e+1224>>3];O[d+216>>3]=O[e+1096>>3];O[d+120>>3]=O[e+1232>>3];O[d+248>>3]=O[e+1104>>3];O[d+112>>3]=O[e+1240>>3];O[d+240>>3]=O[e+1112>>3];O[d+104>>3]=O[e+1248>>3];O[d+232>>3]=O[e+1120>>3];O[d+96>>3]=O[e+1256>>3];O[d+224>>3]=O[e+1128>>3];O[d+64>>3]=O[e+1264>>3];O[d+192>>3]=O[e+1136>>3];O[d+32>>3]=O[e+1272>>3];O[d+160>>3]=O[e+1144>>3];if(!m)break u;h=d+768|0;f=d+256|0;g=0;while(1){l=g<<3;c=l+f|0;j=l+(e+32|0)|0;O[c>>3]=O[j>>3];O[c+256>>3]=O[j+256>>3];O[(d+l|0)+1024>>3]=O[j+512>>3];O[h+ +l>>3]=O[j+768>>3];g=g+1|0;if((m|0)!=(g|0))continue;break}break u;case 0:c=d-1280|0;O[d>>3]=O[c+24>>3];O[d+128>>3]=O[c+152>>3];O[d+8>>3]=O[c+56>>3];O[d+136>>3]=O[c+184>>3];O[d+16>>3]=O[c+88>>3];O[d+144>>3]=O[c+216>>3];O[d+24>>3]=O[c+120>>3];O[d+152>>3]=O[c+248>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+ +1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];if(!m)break u;l=d+768|0;j=d+256|0;g=P(o-1|0,1280)+q|0;h=g+256|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[(h+i|0)+256>>3];O[f+256>>3]=O[(g+i|0)+1024>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u;case 1:c=d-1280|0;O[d>>3]=O[c+120>>3];O[d+128>>3]=O[c+248>>3];O[d+8>>3]=O[c+112>>3];O[d+ +136>>3]=O[c+240>>3];O[d+16>>3]=O[c+104>>3];O[d+144>>3]=O[c+232>>3];O[d+24>>3]=O[c+96>>3];O[d+152>>3]=O[c+224>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>> +3];if(!m)break u;l=d+768|0;j=d+256|0;g=P(o-1|0,1280)+q|0;h=g+768|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[(g+i|0)+1024>>3];O[f+256>>3]=O[h+i>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u;case 2:break v}c=d-1280|0;O[d>>3]=O[c+96>>3];O[d+128>>3]=O[c+224>>3];O[d+8>>3]=O[c+64>>3];O[d+136>>3]=O[c+192>>3];O[d+16>>3]=O[c+32>>3];O[d+144>>3]=O[c+160>>3];O[d+24>>3]=O[c>>3];O[d+152>>3]=O[c+128>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>> +3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];if(!m)break u;l=d+768|0;j=d+256|0;c=P(o-1|0,1280)+q|0;g=c+768|0;h=c+256|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[g+i>>3];O[f+256>>3]=O[h+i>>3];f=i+(e+32| +0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u}w:switch(v-1|0){default:O[d>>3]=O[e+1184>>3];O[d+128>>3]=O[e+1056>>3];O[d+8>>3]=O[e+1192>>3];O[d+136>>3]=O[e+1064>>3];O[d+16>>3]=O[e+1200>>3];O[d+144>>3]=O[e+1072>>3];O[d+24>>3]=O[e+1208>>3];O[d+152>>3]=O[e+1080>>3];O[d+56>>3]=O[e+1216>>3];O[d+184>>3]=O[e+1088>>3];O[d+88>>3]=O[e+1224>>3];O[d+216>>3]=O[e+1096>>3];O[d+120>>3]=O[e+1232>>3];O[d+248>>3]=O[e+1104>>3];O[d+112>>3]=O[e+1240>>3];O[d+240>>3]= +O[e+1112>>3];O[d+104>>3]=O[e+1248>>3];O[d+232>>3]=O[e+1120>>3];O[d+96>>3]=O[e+1256>>3];O[d+224>>3]=O[e+1128>>3];O[d+64>>3]=O[e+1264>>3];O[d+192>>3]=O[e+1136>>3];O[d+32>>3]=O[e+1272>>3];O[d+160>>3]=O[e+1144>>3];O[d+40>>3]=O[e+1280>>3];O[d+168>>3]=O[e+1152>>3];O[d+48>>3]=O[e+1288>>3];O[d+176>>3]=O[e+1160>>3];O[d+80>>3]=O[e+1296>>3];O[d+208>>3]=O[e+1168>>3];O[d+72>>3]=O[e+1304>>3];O[d+200>>3]=O[e+1176>>3];if(!m)break u;h=d+768|0;f=d+256|0;g=0;while(1){l=g<<3;c=l+f|0;j=l+(e+32|0)|0;O[c>>3]=O[j>>3];O[c+ +256>>3]=O[j+256>>3];O[(d+l|0)+1024>>3]=O[j+512>>3];O[h+l>>3]=O[j+768>>3];g=g+1|0;if((m|0)!=(g|0))continue;break}break u;case 0:c=d-1280|0;O[d>>3]=O[c+24>>3];O[d+128>>3]=O[c+152>>3];O[d+8>>3]=O[c+56>>3];O[d+136>>3]=O[c+184>>3];O[d+16>>3]=O[c+88>>3];O[d+144>>3]=O[c+216>>3];O[d+24>>3]=O[c+120>>3];O[d+152>>3]=O[c+248>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>> +3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];O[d+40>>3]=O[e+1248>>3];O[d+168>>3]=O[e+1120>>3];O[d+48>>3]=O[e+1256>>3];O[d+176>>3]=O[e+1128>>3];O[d+80>>3]=O[e+1264>>3];O[d+208>>3]=O[e+1136>>3];O[d+72>>3]=O[e+1272>>3];O[d+200>>3]=O[e+1144>>3];if(!m)break u;l=d+768|0;j=d+256|0;g=P(o-1|0,1280)+q|0;h=g+256|0;c=0;while(1){i=c<<3;f=i+j|0; +O[f>>3]=O[(h+i|0)+256>>3];O[f+256>>3]=O[(g+i|0)+1024>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u;case 1:c=d-1280|0;O[d>>3]=O[c+120>>3];O[d+128>>3]=O[c+248>>3];O[d+8>>3]=O[c+112>>3];O[d+136>>3]=O[c+240>>3];O[d+16>>3]=O[c+104>>3];O[d+144>>3]=O[c+232>>3];O[d+24>>3]=O[c+96>>3];O[d+152>>3]=O[c+224>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>> +3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];O[d+40>>3]=O[e+1248>>3];O[d+168>>3]=O[e+1120>>3];O[d+48>>3]=O[e+1256>>3];O[d+176>>3]=O[e+1128>>3];O[d+80>>3]=O[e+1264>>3];O[d+208>>3]=O[e+1136>>3];O[d+72>>3]=O[e+1272>>3];O[d+200>>3]=O[e+1144>>3];if(!m)break u;l=d+768|0;j=d+256|0;g=P(o-1| +0,1280)+q|0;h=g+768|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[(g+i|0)+1024>>3];O[f+256>>3]=O[h+i>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}break u;case 2:break w}c=d-1280|0;O[d>>3]=O[c+96>>3];O[d+128>>3]=O[c+224>>3];O[d+8>>3]=O[c+64>>3];O[d+136>>3]=O[c+192>>3];O[d+16>>3]=O[c+32>>3];O[d+144>>3]=O[c+160>>3];O[d+24>>3]=O[c>>3];O[d+152>>3]=O[c+128>>3];O[d+56>>3]=O[e+1184>>3];O[d+184>>3]=O[e+1056>>3];O[d+88>>3]=O[e+1192>>3];O[d+216>>3]=O[e+ +1064>>3];O[d+120>>3]=O[e+1200>>3];O[d+248>>3]=O[e+1072>>3];O[d+112>>3]=O[e+1208>>3];O[d+240>>3]=O[e+1080>>3];O[d+104>>3]=O[e+1216>>3];O[d+232>>3]=O[e+1088>>3];O[d+96>>3]=O[e+1224>>3];O[d+224>>3]=O[e+1096>>3];O[d+64>>3]=O[e+1232>>3];O[d+192>>3]=O[e+1104>>3];O[d+32>>3]=O[e+1240>>3];O[d+160>>3]=O[e+1112>>3];O[d+40>>3]=O[e+1248>>3];O[d+168>>3]=O[e+1120>>3];O[d+48>>3]=O[e+1256>>3];O[d+176>>3]=O[e+1128>>3];O[d+80>>3]=O[e+1264>>3];O[d+208>>3]=O[e+1136>>3];O[d+72>>3]=O[e+1272>>3];O[d+200>>3]=O[e+1144>>3]; +if(!m)break u;l=d+768|0;j=d+256|0;c=P(o-1|0,1280)+q|0;g=c+768|0;h=c+256|0;c=0;while(1){i=c<<3;f=i+j|0;O[f>>3]=O[g+i>>3];O[f+256>>3]=O[h+i>>3];f=i+(e+32|0)|0;O[(d+i|0)+1024>>3]=O[f>>3];O[i+l>>3]=O[f+256>>3];c=c+1|0;if((m|0)!=(c|0))continue;break}}J[k+4>>2]=0;o=o+1|0;continue}break}f=0;J[k+8>>2]=0;h=J[k>>2];c=J[J[h>>2]+24>>2];J[699344]=0;$(c|0,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(k);if(!(!o|(a|0)!=6))while(1){c=P(f,1280)+q|0;V=O[c+104>>3];x=O[c+56>>3];L=O[c+24>>3];M=O[c+96>>3];W=(L+M)* +-2;N=O[c>>3];s=O[c+8>>3];p=O[c+32>>3];Q=O[c+120>>3];O[c+40>>3]=((V+x)*3+(W+(N*-4+(s+p)*6))-Q)/9;X=O[c+232>>3];t=O[c+184>>3];R=O[c+152>>3];S=O[c+224>>3];Y=(R+S)*-2;T=O[c+128>>3];_=O[c+136>>3];n=O[c+160>>3];U=O[c+248>>3];O[c+168>>3]=((X+t)*3+(Y+(T*-4+(_+n)*6))-U)/9;C=O[c+112>>3];u=(p+C)*3;p=(N+Q)*-2;E=O[c+16>>3];O[c+48>>3]=(u+(p+(L*-4+(x+E)*6))-M)/9;F=O[c+240>>3];u=(n+F)*3;n=(T+U)*-2;x=O[c+144>>3];O[c+176>>3]=(u+(n+(R*-4+(t+x)*6))-S)/9;u=s;s=O[c+88>>3];t=O[c+64>>3];O[c+72>>3]=((u+s)*3+(p+(M*-4+(V+t)* +6))-L)/9;p=O[c+216>>3];u=n;n=O[c+192>>3];O[c+200>>3]=((_+p)*3+(u+(S*-4+(X+n)*6))-R)/9;O[c+80>>3]=((E+t)*3+(W+(Q*-4+(C+s)*6))-N)/9;O[c+208>>3]=((x+n)*3+(Y+(U*-4+(F+p)*6))-T)/9;f=f+1|0;if((o|0)!=(f|0))continue;break}c=vc(328);J[c+8>>2]=0;J[c+4>>2]=a;J[c+320>>2]=y;J[c+316>>2]=m;J[c+184>>2]=o;J[c+180>>2]=q;J[c>>2]=2218336;if((y|0)>0)xc(c+188|0,e+1824|0,y<<2);x:{if(Ew(c,b)){b=0;if(J[c+320>>2]>0)break x;f=c;break c}kc[J[J[c>>2]+4>>2]](c);f=0;break c}y:{while(1){a=J[c+8>>2];if(J[J[(c+(b<<2)|0)+188>>2]+8>> +2]!=(kc[J[J[a>>2]+28>>2]](a)|0))break y;b=b+1|0;if((b|0)>2])continue;break}f=c;break c}f=0;Cc(1,-1,825732,0);kc[J[J[c>>2]+4>>2]](c)}fc=e+1952|0;return f}a=Z()|0;uc(k);ba(a|0);B()}ea(0)|0;Bc();B()}function RSa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;i=fc-176|0;fc=i;b=J[g>>2];j=J[g+4>>2];g=J[d>>2];k=J[d+4>>2];J[a+156>>2]=0;J[a>>2]=2217332;d=vc(8);J[699344]=0;c=aa(3349,d|0,c|0)|0;l=J[699344];J[699344]=0;if((l|0)==1){a=Z()|0;uc(d);ba(a|0);B()}J[a+ +32>>2]=b;J[a+36>>2]=j;J[a+20>>2]=f;J[a+16>>2]=e;J[a+8>>2]=g;J[a+12>>2]=k;J[a+4>>2]=c;J[a+152>>2]=0;J[a+28>>2]=0;J[a>>2]=2217456;J[i+160>>2]=13;J[i+144>>2]=13;J[i+128>>2]=13;J[i+112>>2]=13;J[i+96>>2]=13;J[i+80>>2]=13;J[i+64>>2]=13;J[a+160>>2]=0;J[a+164>>2]=0;J[a+144>>2]=1717986918;J[a+148>>2]=1072588390;J[a+136>>2]=1717986918;J[a+140>>2]=-1076468122;J[a+128>>2]=1717986918;J[a+132>>2]=1072588390;J[a+120>>2]=0;J[a+124>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>> +2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+192>>2]=-1030792151;J[a+196>>2]=1072441589;J[a+184>>2]=0;J[a+188>>2]=-1074790400;J[a+176>>2]=0;J[a+180>>2]=1072693248;J[a+168>>2]=0;J[a+172>>2]=1;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0;J[699344]=0;b=ha(3368,h|0,787054,i+144|0,0)|0;c=J[699344];J[699344]=0;a:{b:{if((c|0)==1)break b;c:{d:{e:{f:{g:{h:{i:{if(J[b>>2]==6){b=J[i+152>>2];if(J[b+12>>2])break i}J[699344]=0;ia(3574,1,-1,813758,0);b=J[699344];J[699344]=0;h=i+144| +0;if((b|0)!=1)break h;break b}J[699344]=0;b=ha(3449,b|0,0,i+160|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;g=814020;j:{k:{l:{if(J[b>>2]!=7)break l;J[699344]=0;b=i+144|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;c=J[i+168>>2];ca(3573,a|0,a|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;b=ha(3368,c|0,814323,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;g=814652;if(J[b>>2]!=7)break l;J[699344]=0;d=i+128|0;ha(3368,J[i+152>>2],815188,d|0,0)|0;b= +J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;e=i+112|0;ha(3368,J[i+152>>2],815553,e|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;if(!(J[i+128>>2]==3&J[i+112>>2]==3)){J[699344]=0;ia(3574,1,-1,815865,0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break j}J[699344]=0;b=J[i+136>>2];d=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;b=aa(3350, +d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){b=Z()|0;uc(d);break a}J[699344]=0;b=aa(3592,b|0,45)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;b=aa(3593,b|0,J[i+120>>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+160>>2]=b;J[699344]=0;$(3370,i+112|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,i+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,i+144|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+224>>2]=0;J[699344]=0;b=ha(3588,a|0, +h|0,16,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+168>>2]=b;m:{if(b)break m;J[a+172>>2]=0;b=J[a+160>>2];J[699344]=0;b=Dd(b,816076);d=J[699344];J[699344]=0;if((d|0)==1)break b;n:{if(b){b=J[a+160>>2];J[699344]=0;b=Dd(b,816896);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(b)break n}J[699344]=0;b=pa(3594)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+168>>2]=b;break m}b=J[a+160>>2];J[699344]=0;b=aa(3595,J[693464],b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+168>>2]=b;if(b){J[a+ +224>>2]=1;break m}J[i+16>>2]=J[a+160>>2];J[699344]=0;ia(3574,1,-1,817210,i+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;b=pa(3594)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+168>>2]=b}b=J[a+16>>2];o:{if(!b)break o;J[699344]=0;b=aa(3589,J[693464],b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!b)break o;d=J[a+168>>2];if(d){if(J[d+4>>2]){if(J[d+8>>2]){g=0;while(1){J[699344]=0;e=d;d=i+32|0;e=Al(e,g,d,8);f=J[699344];J[699344]=0;if((f|0)==1)break f;p:{if((e|0)<=0)break p; +J[699344]=0;e=Al(b,J[i+32>>2],d,8);f=J[699344];J[699344]=0;if((f|0)==1)break f;if((e|0)<=0)break p;f=J[a+168>>2];J[699344]=0;ia(3590,f|0,g|0,d|0,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break f}g=g+1|0;d=J[a+168>>2];if(g>>>0>2])continue;break}}J[699344]=0;$(3390,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break o}J[699344]=0;$(3390,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b}J[a+168>>2]=b}J[699344]=0;b=ha(3368,h|0,808826,i+144|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;g= +817308;if(J[b>>2]!=5)break k}J[699344]=0;ia(3574,1,-1,g|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break j}b=J[a+160>>2];J[699344]=0;b=ga(3596,0,b|0,i+144|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+164>>2]=b;if(!b)break j;b=0;q:{if(J[i+144>>2]!=4)break q;b=0;if(Ic(J[i+152>>2],818521))break q;b=J[a+160>>2];J[699344]=0;b=Dd(b,816076);d=J[699344];J[699344]=0;if((d|0)==1)break b;b=!b}J[a+232>>2]=b;J[699344]=0;b=i+144|0;$(3370,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+228>>2]= +0;J[699344]=0;ha(3368,c|0,818705,b|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;r:{s:{t:switch(J[i+144>>2]-4|0){case 4:J[a+220>>2]=0;J[699344]=0;e=64;b=aa(3551,64,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+216>>2]=b;b=J[i+152>>2];d=J[J[b>>2]+20>>2];J[699344]=0;$(d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;while(1){b=J[i+152>>2];d=J[J[b>>2]+28>>2];J[699344]=0;b=_(d|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;u:{if((b|0)==-1)break u;d=J[i+152>>2];f=J[J[d>>2]+28>>2]; +J[699344]=0;d=_(f|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;if((d|0)==-1)break u;h=J[a+216>>2];g=J[a+220>>2];if((g|0)==(e|0)){J[699344]=0;e=e<<1;h=ga(3597,h|0,e|0,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[a+216>>2]=h;g=J[a+220>>2]}J[a+220>>2]=g+1;J[(g<<2)+h>>2]=d+(b<<8);continue}break}b=J[i+152>>2];d=J[J[b>>2]+24>>2];J[699344]=0;$(d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+232>>2]=0;break r;case 1:break r;case 0:break t;default:break s}if(Ic(J[i+152>>2],818864))break s; +J[a+228>>2]=1;break r}J[699344]=0;ia(3574,1,-1,819450,0);b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]=0;b=i+144|0;$(3370,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;b=ha(3368,c|0,819785,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(J[b>>2]==1)O[a+176>>3]=+J[i+152>>2]*.001;J[699344]=0;b=i+144|0;$(3370,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;b=ha(3368,c|0,820163,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;v:{if(J[b>>2]!=6)break v;f=0; +e=0;while(1){h=e+1|0;b=J[i+152>>2];if((h|0)>=J[b+12>>2])break v;J[699344]=0;ha(3449,b|0,e|0,i+128|0,0)|0;b=J[699344];J[699344]=0;w:{if((b|0)==1)break w;J[699344]=0;ha(3449,J[i+152>>2],h|0,i+112|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break w;x:{y:{if(J[i+128>>2]!=1)break y;z:switch(J[i+112>>2]-1|0){case 0:d=e+2|0;b=J[i+152>>2];if((d|0)>=J[b+12>>2])break y;J[699344]=0;b=ha(3449,b|0,d|0,i+96|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break w;A:{if(J[b>>2]-3>>>0>=4294967294){h=J[a+200>>2];g=J[a+204>> +2];if((g|0)==(f|0)){J[699344]=0;f=f+16|0;h=ga(3597,h|0,f|0,16)|0;b=J[699344];J[699344]=0;if((b|0)==1)break w;J[a+200>>2]=h;g=J[a+204>>2]}b=(g<<4)+h|0;J[b>>2]=J[i+136>>2];J[b+4>>2]=J[i+120>>2];O[b+8>>3]=(J[i+96>>2]==1?+J[i+104>>2]:O[i+104>>3])*.001;J[a+204>>2]=g+1;break A}J[699344]=0;ia(3574,1,-1,820868,0);b=J[699344];J[699344]=0;if((b|0)==1)break w}J[699344]=0;$(3370,i+96|0);b=J[699344];J[699344]=0;if((b|0)==1)break w;h=e+3|0;break x;case 5:break z;default:break y}g=J[i+120>>2];b=J[g+12>>2];d=b+J[a+ +204>>2]|0;if((d|0)>(f|0)){b=J[a+200>>2];J[699344]=0;f=d+15&-16;b=ga(3597,b|0,f|0,16)|0;d=J[699344];J[699344]=0;if((d|0)==1)break w;J[a+200>>2]=b;g=J[i+120>>2];b=J[g+12>>2]}if((b|0)>0){h=0;d=J[i+136>>2];while(1){J[699344]=0;b=ha(3449,g|0,h|0,i+96|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;B:{if(J[b>>2]-3>>>0>=4294967294){g=J[a+204>>2];b=J[a+200>>2]+(g<<4)|0;J[b+4>>2]=d;J[b>>2]=d;O[b+8>>3]=(J[i+96>>2]==1?+J[i+104>>2]:O[i+104>>3])*.001;J[a+204>>2]=g+1;d=d+1|0;break B}J[699344]=0;ia(3574,1,-1, +820868,0);b=J[699344];J[699344]=0;if((b|0)==1)break d}J[699344]=0;$(3370,i+96|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;h=h+1|0;g=J[i+120>>2];if((h|0)>2])continue;break}}h=e+2|0;break x}J[699344]=0;ia(3574,1,-1,820868,0);b=J[699344];J[699344]=0;if((b|0)==1)break w}J[699344]=0;$(3370,i+112|0);b=J[699344];J[699344]=0;if((b|0)==1)break w;J[699344]=0;$(3370,i+128|0);b=J[699344];J[699344]=0;e=h;if((b|0)!=1)continue}break}b=Z()|0;break a}J[699344]=0;b=i+144|0;$(3370,b|0);d=J[699344];J[699344]= +0;if((d|0)==1)break b;J[699344]=0;b=ha(3368,c|0,821280,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;C:{if(J[b>>2]!=6)break C;b=J[i+152>>2];if(J[b+12>>2]!=2)break C;J[699344]=0;b=ha(3449,b|0,0,i+128|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(J[b>>2]-3>>>0>=4294967294)O[a+192>>3]=(J[i+128>>2]==1?+J[i+136>>2]:O[i+136>>3])*.001;J[699344]=0;b=i+128|0;$(3370,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;b=ha(3449,J[i+152>>2],1,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)== +1)break b;if(J[b>>2]-3>>>0>=4294967294)O[a+184>>3]=(J[i+128>>2]==1?+J[i+136>>2]:O[i+136>>3])*.001;J[699344]=0;$(3370,i+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]=0;b=i+144|0;$(3370,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;b=ha(3368,c|0,822635,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;D:{if(J[b>>2]!=6)break D;c=0;f=0;while(1){h=f+1|0;b=J[i+152>>2];if((h|0)>=J[b+12>>2])break D;J[699344]=0;ha(3449,b|0,f|0,i+128|0,0)|0;b=J[699344];J[699344]=0;E:{if((b| +0)==1)break E;J[699344]=0;ha(3449,J[i+152>>2],h|0,i+112|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break E;F:{G:{if(J[i+128>>2]!=1)break G;H:switch(J[i+112>>2]-1|0){case 0:d=f+4|0;b=J[i+152>>2];if((d|0)>=J[b+12>>2])break G;J[699344]=0;b=ha(3449,b|0,f+2|0,i+96|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break E;I:{J:{if(J[b>>2]-3>>>0<4294967294)break J;J[699344]=0;b=ha(3449,J[i+152>>2],f+3|0,i+80|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break E;if(J[b>>2]-3>>>0<4294967294)break J;J[699344]=0;b=ha(3449, +J[i+152>>2],d|0,i- -64|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break E;if(J[b>>2]-3>>>0<4294967294)break J;h=J[a+208>>2];g=J[a+212>>2];if((g|0)==(c|0)){J[699344]=0;c=c+16|0;h=ga(3597,h|0,c|0,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break E;J[a+208>>2]=h;g=J[a+212>>2]}b=(g<<5)+h|0;J[b>>2]=J[i+136>>2];J[b+4>>2]=J[i+120>>2];O[b+8>>3]=(J[i+96>>2]==1?+J[i+104>>2]:O[i+104>>3])*.001;O[b+16>>3]=(J[i+80>>2]==1?+J[i+88>>2]:O[i+88>>3])*.001;O[b+24>>3]=(J[i+64>>2]==1?+J[i+72>>2]:O[i+72>>3])*.001;J[a+212>> +2]=g+1;break I}J[699344]=0;ia(3574,1,-1,822781,0);b=J[699344];J[699344]=0;if((b|0)==1)break E}J[699344]=0;$(3370,i- -64|0);b=J[699344];J[699344]=0;if((b|0)==1)break E;J[699344]=0;$(3370,i+80|0);b=J[699344];J[699344]=0;if((b|0)==1)break E;J[699344]=0;$(3370,i+96|0);b=J[699344];J[699344]=0;if((b|0)==1)break E;h=f+5|0;break F;case 5:break H;default:break G}d=J[i+120>>2];b=J[d+12>>2];e=J[a+212>>2]+((b|0)/3|0)|0;if((e|0)>(c|0)){b=J[a+208>>2];J[699344]=0;c=e+15&-16;b=ga(3597,b|0,c|0,32)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break E;J[a+208>>2]=b;d=J[i+120>>2];b=J[d+12>>2]}if((b|0)>=3){h=0;g=2;e=J[i+136>>2];while(1){J[699344]=0;b=ha(3449,d|0,h|0,i+96|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;K:{L:{if(J[b>>2]-3>>>0<4294967294)break L;J[699344]=0;b=ha(3449,J[i+120>>2],h+1|0,i+80|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(J[b>>2]-3>>>0<4294967294)break L;J[699344]=0;b=ha(3449,J[i+120>>2],g|0,i- -64|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(J[b>>2]-3>>>0<4294967294)break L;d= +J[a+212>>2];b=J[a+208>>2]+(d<<5)|0;J[b+4>>2]=e;J[b>>2]=e;O[b+8>>3]=(J[i+96>>2]==1?+J[i+104>>2]:O[i+104>>3])*.001;O[b+16>>3]=(J[i+80>>2]==1?+J[i+88>>2]:O[i+88>>3])*.001;O[b+24>>3]=(J[i+64>>2]==1?+J[i+72>>2]:O[i+72>>3])*.001;J[a+212>>2]=d+1;e=e+1|0;break K}J[699344]=0;ia(3574,1,-1,822781,0);b=J[699344];J[699344]=0;if((b|0)==1)break c}J[699344]=0;$(3370,i- -64|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(3370,i+80|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(3370,i+96| +0);b=J[699344];J[699344]=0;if((b|0)==1)break c;g=h+5|0;h=h+3|0;d=J[i+120>>2];if(J[d+12>>2]>(g|0))continue;break}}h=f+2|0;break F}J[699344]=0;ia(3574,1,-1,822781,0);b=J[699344];J[699344]=0;if((b|0)==1)break E}J[699344]=0;$(3370,i+112|0);b=J[699344];J[699344]=0;if((b|0)==1)break E;J[699344]=0;$(3370,i+128|0);b=J[699344];J[699344]=0;f=h;if((b|0)!=1)continue}break}b=Z()|0;break a}J[699344]=0;$(3370,i+144|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,i+160|0);b=J[699344];J[699344]= +0;if((b|0)==1)break b;J[a+156>>2]=1;break g}J[699344]=0;$(3370,i+144|0);b=J[699344];J[699344]=0;h=i+160|0;if((b|0)==1)break b}J[699344]=0;$(3370,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[i>>2]=J[a+16>>2];J[699344]=0;ia(3574,1,-1,823170,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}fc=i+176|0;return a|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0}CJ(a);ba(b|0);B()}function GW(a){a=a|0;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=fc-1136|0;fc=d;a:{j= +J[a+156>>2];if(j){k=a+148|0;l=d+1112|0;while(1){b=J[j+8>>2];J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((b|0)!=1){f=J[j+8>>2];J[d+1100>>2]=f;g=0;b=J[f+24>>2];if(!b)break d;J[699344]=0;c=J[b+148>>2];b=J[699344];J[699344]=0;if((b|0)==1)break o;if(!(c&16))break d;h=f+24|0;c=J[h>>2];b=J[c+108>>2];J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break o;b=J[c+108>>2];J[699344]=0;J[d+48>>2]=b;da(5321,d+1096|0,b|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break n;e=J[d+48>>2];J[d+48>>2]=0;p:{if(!e)break p;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break p;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;da(5278,d+1092|0,d+1096|0);b=J[699344];J[699344]=0;if((b|0)==1)break m;J[699344]=0;i=J[d+1092>>2];J[d+1084>>2]=0;J[d+1088>>2]=J[685894];e=d+1084|0;c=ha(5279,i|0,e|0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;q:{if(!c)break q;J[699344]=0;c=pd(e, +2403546,-1);b=J[699344];J[699344]=0;if((b|0)==1)break h;if(c)break q;e=0;if(J[f+20>>2]>0)break l;break j}J[699344]=0;c=ja(5178,d+48|0,2404426,2385400,1146,2413654,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break k;break i}ba(Z()|0);B()}f=ea(2423616)|0;g=gc;break e}f=ea(2423616)|0;g=gc;zc(d+48|0);break e}f=ea(2423616)|0;g=gc;break f}while(1){J[699344]=0;c=ha(5279,i|0,d+1084|0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;if(!c){J[699344]= +0;c=ja(5178,d+48|0,2404426,2385400,1150,2413654,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i;f=ea(2423616)|0;g=gc;Kc(c);break g}J[699344]=0;$(5332,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;e=e+1|0;if((e|0)>2])continue;break}break j}f=ea(2423616)|0;g=gc;Kc(c);break g}J[699344]=0;e=d+1084|0;c=ha(5279,i|0,e|0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;r:{if(c){J[699344]=0;c=pd(e,2405463,-1);b=J[699344];J[699344]= +0;if((b|0)==1)break h;if(!c)break r}J[699344]=0;c=ja(5178,d+48|0,2404426,2385400,1154,2413654,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i;f=ea(2423616)|0;g=gc;Kc(c);break g}while(1){b=J[J[i>>2]+8>>2];J[699344]=0;c=d+48|0;e=ga(b|0,i|0,c|0,1024)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;if(e){b=J[f+12>>2];J[699344]=0;ca(5428,b|0,c|0,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;continue}break}b=J[f+12>>2];J[699344]=0;$(5402, +b|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;s:{t:{if(J[a+100>>2]){J[d+1128>>2]=0;b=d+1120|0;J[b>>2]=0;J[b+4>>2]=0;J[l>>2]=0;J[l+4>>2]=0;J[d+1104>>2]=0;J[d+1108>>2]=0;J[699344]=0;c=aa(5250,d+1104|0,2413244)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;b=J[a+100>>2];J[699344]=0;ca(5429,h|0,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break t;Md(c)}J[699344]=0;aa(5145,h|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;aa(5145,f+16|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h; +wc(d+1084|0);e=J[d+1092>>2];J[d+1092>>2]=0;u:{if(!e)break u;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break u;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}e=J[d+1096>>2];J[d+1096>>2]=0;v:{if(!e)break v;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break s;if(c)break v;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break s}g=1;break d}f=ea(2423616)|0;g=gc;Md(c);break g}break a}B()}f=ea(2423616)| +0;g=gc}wc(d+1084|0);zc(d+1092|0)}zc(d+1096|0)}if((sa(2423616)|0)!=(g|0))break c;c=oa(f|0)|0;J[699344]=0;e=aa(5149,d+40|0,2405888)|0;b=J[699344];J[699344]=0;w:{x:{y:{z:{A:{if((b|0)!=1){J[699344]=0;c=J[c+4>>2];b=J[699344];J[699344]=0;if((b|0)==1)break A;J[699344]=0;aa(5355,e|0,(c?c:2389698)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A;J[699344]=0;c=pa(5383)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A;b=J[J[c>>2]+20>>2];J[699344]=0;ga(b|0,c|0,a|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A; +f=J[d+1100>>2];b=J[f+8>>2];J[699344]=0;c=d+48|0;ia(5392,c|0,a|0,b|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break z;J[699344]=0;aa(5153,f+16|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break y;zc(c);J[699344]=0;aa(5145,f+24|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A;b=J[f+12>>2];J[699344]=0;$(5402,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;wc(e);J[699344]=0;ka(5053);b=J[699344];J[699344]=0;g=1;if((b|0)!=1)break d;f=Z()|0;break c}f=Z()|0;break w}f=Z()|0;break x}f=Z()|0;break x}f=Z()| +0;zc(d+48|0)}wc(e)}J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break c;break a}B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{b=J[f+16>>2];if(!b)break T;J[699344]=0;c=J[b+148>>2];b=J[699344];J[699344]=0;U:{if((b|0)==1)break U;if(c&1)break T;h=f+16|0;b=J[h>>2];J[699344]=0;c=J[b+148>>2];b=J[699344];J[699344]=0;if((b|0)==1)break U;if(c&2){J[699344]=0;c=_(5424,20)|0;b=J[699344];J[699344]=0;if((b|0)==1)break U;J[699344]=0;e=_(5425,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){f=ea(2423616)| +0;g=gc;Gm(c);break C}J[699344]=0;J[d+1096>>2]=0;c=d+1096|0;aa(5145,c|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break U;J[699344]=0;da(5426,J[d+1096>>2],h|0);b=J[699344];J[699344]=0;if((b|0)==1){f=ea(2423616)|0;g=gc;zc(c);break C}J[699344]=0;_(5161,J[d+1096>>2])|0;b=J[699344];J[699344]=0;V:{W:{X:{Y:{Z:{_:{if((b|0)==1)break _;J[699344]=0;c=_(5430,J[d+1096>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break _;$:{if(!c){g=160;break $}J[699344]=0;g=_(5430,J[d+1096>>2])|0;b=J[699344];J[699344]=0;if((b| +0)==1)break _}J[699344]=0;c=_(5167,J[d+1096>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break _;aa:{if(!c){f=160;break aa}J[699344]=0;f=_(5167,J[d+1096>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break _}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=160;J[d+60>>2]=(P(f,160)|0)/(g|0);J[699344]=0;h=d+1092|0;c=d+48|0;Ea(5174,h|0,J[d+1096>>2],c|0,c|0,2.200000047683716);b=J[699344];J[699344]=0;if((b|0)==1)break _;f=J[d+1092>>2];if(f)break P;J[699344]=0;ma(5176,d+1084|0,J[d+1096>>2],c|0,c|0,4);b=J[699344];J[699344]= +0;if((b|0)==1)break O;c=J[d+1084>>2];if(!c)break Y;J[699344]=0;i=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1)break X;J[699344]=0;e=aa(5431,i|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break V;J[699344]=0;J[d+36>>2]=0;c=d+36|0;aa(5145,c|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break X;J[699344]=0;aa(5153,h|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Z;e=J[d+36>>2];J[d+36>>2]=0;if(!e)break Q;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break Q; +J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;break Q}f=ea(2423616)|0;g=gc;break D}f=ea(2423616)|0;g=gc;zc(d+36|0);break R}J[699344]=0;i=J[d+60>>2];h=J[d+52>>2];e=J[d+56>>2];c=J[d+48>>2];m=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1)break X;J[699344]=0;e=ha(5432,m|0,i-h|0,e-c|0,2424756)|0;b=J[699344];J[699344]=0;if((b|0)==1)break S;J[699344]=0;J[d+36>>2]=0;c=d+36|0;aa(5145,c|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break X;J[699344]=0;aa(5153,d+1092|0,c|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break W;e=J[d+36>>2];J[d+36>>2]=0;if(!e)break Q;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)!=1){if(c)break Q;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)!=1)break Q}break a}f=ea(2423616)|0;g=gc;break R}f=ea(2423616)|0;g=gc;zc(d+36|0);break R}f=ea(2423616)|0;g=gc;uc(i);break R}b=J[h>>2];J[699344]=0;c=J[b+148>>2];b=J[699344];J[699344]=0;if((b|0)==1)break U;if(c&4){J[699344]=0;aa(5145,f+24|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break U; +J[699344]=0;f=J[d+1100>>2];aa(5145,f+16|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break U;b=J[f+12>>2];J[699344]=0;$(5402,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break U;break B}b=J[h>>2];J[699344]=0;$(5433,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break T}f=ea(2423616)|0;g=gc;break C}if(g)break B;j=J[j>>2];break b}f=ea(2423616)|0;g=gc;uc(m)}zc(d+1084|0);break E}e=J[d+1084>>2];J[d+1084>>2]=0;ba:{if(!e)break ba;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)!=1){if(c)break ba; +J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)!=1)break ba}break a}f=J[d+1092>>2]}J[d+32>>2]=0;J[699344]=0;c=d+32|0;aa(5145,c|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break O;J[699344]=0;ia(5434,d+36|0,f|0,c|0,2);b=J[699344];J[699344]=0;if((b|0)==1)break N;e=J[d+32>>2];J[d+32>>2]=0;ca:{if(!e)break ca;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break ca;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;$(5248,d+ +28|0);b=J[699344];J[699344]=0;if((b|0)==1)break M;J[699344]=0;b=d+16|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1)break K;J[b>>2]=97;J[d+20>>2]=0;J[d+24>>2]=0;e=J[d+36>>2];c=J[d+28>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break K;c=J[d+28>>2]}else c=0;J[d+12>>2]=c;c=J[J[e>>2]+32>>2];J[699344]=0;ga(c|0,e|0,d+12|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break L;e=J[d+12>>2];J[d+12>>2]=0;da:{if(!e)break da;J[699344]=0;c=J[e+4>>2]-1| +0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break da;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;da(5436,d+1084|0,J[d+28>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break K;f=J[d+1100>>2];i=J[f+12>>2];g=J[d+1088>>2];if(J[g+4>>2]>=2){J[699344]=0;c=_(4,52)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;g=aa(5437,c|0,g|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break I;J[g+4>>2]=J[g+4>>2]+1;c=J[d+1088>>2];ea:{if(!c)break ea;b=J[c+4>>2]-1|0; +J[c+4>>2]=b;if(b)break ea;kc[J[J[c>>2]+4>>2]](c)}J[d+1088>>2]=g}h=J[g+20>>2];e=J[g+24>>2];c=J[g+12>>2];b=J[g+8>>2];J[699344]=0;ca(5428,i|0,b-c|0,(e-h|0)+1|0);b=J[699344];J[699344]=0;if((b|0)==1)break J;b=J[f+12>>2];J[699344]=0;$(5402,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;aa(5145,f+24|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;aa(5145,f+16|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;J[d+1084>>2]=2392964;c=J[d+1088>>2];fa:{if(!c)break fa;b=J[c+4>>2]- +1|0;J[c+4>>2]=b;if(b)break fa;kc[J[J[c>>2]+4>>2]](c)}e=J[d+28>>2];J[d+28>>2]=0;ga:{if(!e)break ga;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break ga;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}e=J[d+36>>2];J[d+36>>2]=0;ha:{if(!e)break ha;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break ha;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}e=J[d+1092>>2];J[d+1092>>2]= +0;ia:{if(!e)break ia;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break ia;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}e=J[d+1096>>2];J[d+1096>>2]=0;if(!e)break B;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)!=1){if(c)break B;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)!=1)break B}break a}f=ea(2423616)|0;g=gc;break E}f=ea(2423616)|0;g=gc;zc(d+32|0);break E}f=ea(2423616)|0;g=gc;break F}f=ea(2423616)| +0;g=gc;zc(d+12|0);break G}f=ea(2423616)|0;g=gc;break G}f=ea(2423616)|0;g=gc;break H}f=ea(2423616)|0;g=gc;uc(c)}J[d+1084>>2]=2392964;c=J[d+1088>>2];if(!c)break G;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break G;kc[J[J[c>>2]+4>>2]](c)}zc(d+28|0)}zc(d+36|0)}zc(d+1092|0)}zc(d+1096|0)}if((sa(2423616)|0)!=(g|0))break c;c=oa(f|0)|0;J[699344]=0;e=aa(5149,d+4|0,2405995)|0;b=J[699344];J[699344]=0;ja:{ka:{if((b|0)!=1){J[699344]=0;c=J[c+4>>2];b=J[699344];J[699344]=0;if((b|0)==1)break ka;J[699344]=0;aa(5355,e|0,(c?c: +2389698)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ka;J[699344]=0;c=pa(5383)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ka;b=J[J[c>>2]+20>>2];J[699344]=0;ga(b|0,c|0,a|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ka;J[699344]=0;f=J[d+1100>>2];aa(5145,f+16|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ka;J[699344]=0;aa(5145,f+24|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ka;b=J[f+12>>2];J[699344]=0;$(5402,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break ka;wc(e);J[699344]=0;ka(5053); +b=J[699344];J[699344]=0;if((b|0)!=1)break B;f=Z()|0;break c}f=Z()|0;break ja}f=Z()|0;wc(e)}J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break a;break c}J[d+52>>2]=k;J[d+48>>2]=j;j=J[j>>2];J[699344]=0;da(5235,k|0,d+48|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;f=Z()|0}zc(d+1100|0);ba(f|0);B()}J[699344]=0;J[d+1100>>2]=0;c=J[f+4>>2]-1|0;J[f+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(!c){J[699344]=0;$(5147,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(j)continue;break}}fc= +d+1136|0;return}ea(0)|0;Bc();B()}function dAa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+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;f=fc-160|0;fc=f;a:{b:{if(!b)break b;h=a+8|0;c:{if(J[a+8>>2]){ti(f+124|0,a,h);break c}J[f+124>>2]=0;vd(f+124|0,0)}d:{e:{f:{if(J[h>>2]){J[699344]=0;ca(5520,f+136|0,a|0,h|0);g=J[699344];J[699344]=0;if((g|0)!=1)break f;break e}J[699344]=0;J[f+136>>2]=0;aa(5145,f+136|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e}g=J[f+136>>2];g:{if(!g)break g; +k=J[g+8>>2];J[699344]=0;J[f+136>>2]=0;m=J[g+4>>2]-1|0;J[g+4>>2]=m;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(m)break g;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break a}h:{i:{if(J[h>>2]){J[699344]=0;ca(5520,f+136|0,a|0,h|0);g=J[699344];J[699344]=0;if((g|0)!=1)break i;break h}J[699344]=0;J[f+136>>2]=0;aa(5145,f+136|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h}j:{g=J[f+136>>2];if(!g)break j;n=J[g+12>>2];J[699344]=0;J[f+136>>2]=0;m=J[g+4>>2]-1|0;J[g+4>>2]=m;i=J[699344];J[699344]= +0;k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{if((i|0)==1)break D;if(!m){J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break D}if((k|0)<=0|(n|0)<=0)break j;if(!J[f+124>>2])break b;E:{if(J[h>>2]){J[699344]=0;ca(5523,f+120|0,a|0,h|0);g=J[699344];J[699344]=0;if((g|0)!=1)break E;break k}J[699344]=0;J[f+120>>2]=0;aa(5145,f+120|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break k}F:{if(J[h>>2]){J[699344]=0;ca(5524,f+116|0,a|0,h|0);g=J[699344];J[699344]=0;if((g|0)!=1)break F; +break m}J[699344]=0;J[f+116>>2]=0;aa(5145,f+116|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break m}G:{if(J[h>>2]){J[699344]=0;ca(5525,f+112|0,a|0,h|0);h=J[699344];J[699344]=0;if((h|0)!=1)break G;break o}J[699344]=0;J[f+112>>2]=0;aa(5145,f+112|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break o}r=1;H:{if(!(e>0))break H;r=.1;e=e/O[J[f+124>>2]+24>>3];if(e<.1)break H;r=e;if(!(e>10))break H;r=10}J[f+104>>2]=0;J[f+108>>2]=0;J[f+96>>2]=0;J[f+100>>2]=0;J[699344]=0;m=f+96|0;J[m>>2]=2397836;J[m+4>>2]=0;J[m+ +8>>2]=0;J[m+12>>2]=0;h=J[699344];J[699344]=0;I:{if((h|0)!=1){J[f+92>>2]=0;h=J[f+120>>2];if(!h)break p;if(J[h+72>>2]!=(k|0))break q;if((n|0)==J[h+76>>2])break I;break q}a=Z()|0;break r}i=J[c+4>>2];j=J[c+12>>2];l=J[c>>2];o=J[c+8>>2];J[699344]=0;g=f+136|0;ia(5541,g|0,j-i|0,o-l|0,0);i=J[699344];J[699344]=0;J:{K:{L:{M:{if((i|0)!=1){J[699344]=0;aa(5153,f+92|0,g|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break M;zc(g);J[699344]=0;t=P(d,d)+1|0;da(5542,J[f+92>>2],t|0);g=J[699344];J[699344]=0;if((g|0)==1)break t; +i=J[c>>2];l=J[c+4>>2];J[f+68>>2]=0;j=J[h+100>>2];g=J[h+96>>2];if(((j-g|0)+1|0)>0){q=P(d,l);p=P(d,i);i=0;while(1){if((i|0)>(j|0)|(g|0)>(i|0))break L;l=J[h+84>>2]+(i-J[h+88>>2]<<3)|0;g=J[l+4>>2];J[699344]=0;o=aa(5543,h|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break K;j=J[o+4>>2];N:{if(!j)break N;i=L[l>>1];if((i|0)>(P(J[c+8>>2],d)|0))break N;g=L[l+2>>1];if((L[j+10>>1]+i|0)<(P(J[c>>2],d)|0)|(g|0)>(P(J[c+12>>2],d)|0)|(L[j+8>>1]+g|0)<(P(J[c+4>>2],d)|0))break N;if(J[f+112>>2]){J[699344]=0;da(5544,m| +0,f+68|0);g=J[699344];J[699344]=0;if((g|0)==1)break K;i=L[l>>1];j=J[o+4>>2];g=L[l+2>>1]}J[699344]=0;ma(5545,J[f+92>>2],j|0,i-p|0,g-q|0,d|0);g=J[699344];J[699344]=0;if((g|0)==1)break K}i=J[f+68>>2]+1|0;J[f+68>>2]=i;j=J[h+100>>2];g=J[h+96>>2];if(((j-g|0)+1|0)>(i|0))continue;break}}o=J[f+92>>2];if(o)break J;j=0;break p}a=Z()|0;break s}a=Z()|0;zc(f+136|0);break s}J[699344]=0;b=ja(5178,f+136|0,2402233,2402484,619,2416728,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344];J[699344]= +0;if((a|0)!=1)break C;a=Z()|0;Kc(b);break s}a=Z()|0;break s}a=Z()|0;break s}if(!J[f+112>>2])break A;j=0;J[699344]=0;ia(5546,b|0,o|0,0,0);a=J[699344];J[699344]=0;if((a|0)==1)break B;n=J[f+120>>2];l=J[f+112>>2];if((J[n+100>>2]-J[n+96>>2]|0)!=(J[l+28>>2]-J[l+24>>2]|0))break q;a=J[l+56>>2];h=J[l+60>>2];J[699344]=0;a=h-a|0;i=ha(5368,f+68|0,2417080,0,a|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break w;q=a+1|0;if((q|0)>0){a=0;while(1){if(!(J[i+16>>2]<=(a|0)&J[i+20>>2]>=(a|0))){J[699344]=0;b=ja(5178,f+136| +0,2402233,2402484,619,2417100,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break u;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;a=Z()|0;Kc(b);Hd(i);break s}if(!(J[l+56>>2]<=(a|0)&J[l+60>>2]>=(a|0))){J[699344]=0;b=ja(5178,f+136|0,2402233,2402484,632,2416798,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break u;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;a=Z()|0;Kc(b);Hd(i);break s}h=J[i+4>>2]+P(a-J[i+8>>2]|0,3)|0;g=J[l+44>>2]+(a-J[l+48>>2]<<2)|0;H[h|0]=K[g|0]; +H[h+1|0]=K[g+1|0];H[h+2|0]=K[g+2|0];a=a+1|0;if((q|0)!=(a|0))continue;break}}a=J[i+4>>2];h=J[i+8>>2];J[699344]=0;Eb(5547,+r,a+P(h,-3)|0,q|0);a=J[699344];J[699344]=0;O:{P:{Q:{if((a|0)!=1){R:{if(J[m+4>>2]>0){u=d-1|0;while(1){a=J[m+8>>2];J[f+64>>2]=m;J[f+60>>2]=a;J[f+56>>2]=m;J[f+52>>2]=a;if(!a){J[699344]=0;da(5243,f+52|0,m|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;break v}a=J[a+8>>2];if(!((a|0)>=J[l+24>>2]&(a|0)<=J[l+28>>2])){J[699344]=0;b=ja(5178,f+136|0,2402233,2402484,619,2417168,0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break v;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;a=Z()|0;Kc(b);Hd(i);break s}o=I[J[l+12>>2]+(a-J[l+16>>2]<<1)>>1];if((o|0)>=(q|0)){J[699344]=0;b=ja(5178,f+136|0,2394027,2391664,910,2416636,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Q;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;a=Z()|0;Kc(b);Hd(i);break s}J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[699344]=0;h=f+32|0;J[h>>2]=2397836;J[h+4>>2]=0;J[h+8>>2]=0;J[h+ +12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break x;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;g=0;a=0;k=0;p=0;j=J[f+60>>2];if(j){while(1){J[f+8>>2]=j;a=J[f+64>>2];J[f+12>>2]=a;if((a|0)!=(m|0)){J[699344]=0;da(5243,f+8|0,m|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;a=Z()|0;id(h);Hd(i);break s}k=J[j+8>>2];if(!((k|0)>=J[n+96>>2]&(k|0)<=J[n+100>>2])){J[699344]=0;b=ja(5178,f+136|0,2402233,2402484,619,2416728,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break y;J[699344]=0;$(5179,b|0);a=J[699344]; +J[699344]=0;if((a|0)!=1)break C;a=Z()|0;Kc(b);id(h);Hd(i);break s}a=g;p=J[n+84>>2]+(k-J[n+88>>2]<<3)|0;g=L[p>>1];if(a>>>0<=g>>>0){if(!((k|0)<=J[l+28>>2]&(k|0)>=J[l+24>>2])){J[699344]=0;b=ja(5178,f+136|0,2402233,2402484,619,2417168,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break y;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;a=Z()|0;Kc(b);id(h);Hd(i);break s}S:{if(L[J[l+12>>2]+(k-J[l+16>>2]<<1)>>1]==(o&65535)){a=J[p+4>>2];J[699344]=0;j=aa(5543,n|0,a|0)|0;a=J[699344];J[699344]= +0;T:{if((a|0)!=1){a=L[p+2>>1];j=J[j+4>>2];k=L[j+8>>1];s=L[j+10>>1];j=L[p>>1];J[f+144>>2]=s+j;J[f+140>>2]=a;J[f+136>>2]=j;J[699344]=0;J[f+148>>2]=a+k;a=f+16|0;JV(a,a,f+136|0);a=J[699344];J[699344]=0;if((a|0)==1)break T;J[699344]=0;J[f+128>>2]=0;J[f+132>>2]=0;ia(5549,h|0,f+128|0,m|0,f+60|0);a=J[699344];J[699344]=0;if((a|0)==1)break T;j=J[f+60>>2];break S}a=Z()|0;id(h);Hd(i);break s}a=Z()|0;id(h);Hd(i);break s}j=J[j>>2];J[f+60>>2]=j}if(j)continue}break}g=J[f+28>>2];k=J[f+20>>2];p=J[f+16>>2];a=J[f+24>> +2]}J[699344]=0;J[f+20>>2]=(k|0)/(d|0);J[f+16>>2]=(p|0)/(d|0);J[f+28>>2]=(g+u|0)/(d|0);J[f+24>>2]=(a+u|0)/(d|0);a=f+16|0;st(a,a,c);a=J[699344];J[699344]=0;if((a|0)==1)break R;J[699344]=0;a=f+92|0;aa(5145,a|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break R;J[699344]=0;j=J[f+28>>2];k=J[f+20>>2];p=J[f+24>>2];s=J[f+16>>2];g=_(4,72)|0;v=J[699344];J[699344]=0;U:{V:{W:{X:{Y:{Z:{if((v|0)==1)break Z;J[699344]=0;j=ha(5551,g|0,j-k|0,p-s|0,0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break P;J[699344]=0;J[f+136>> +2]=0;g=f+136|0;aa(5145,g|0,j|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break Z;J[699344]=0;aa(5153,a|0,g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Y;a=J[f+136>>2];J[f+136>>2]=0;_:{if(!a)break _;J[699344]=0;g=J[a+4>>2]-1|0;J[a+4>>2]=g;j=J[699344];J[699344]=0;if((j|0)==1)break O;if(g)break _;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break O}J[699344]=0;da(5542,J[f+92>>2],t|0);a=J[699344];J[699344]=0;if((a|0)==1)break R;a=J[f+40>>2];J[f+60>>2]=a;g=J[f+20>>2];j=J[f+16>>2];J[f+64>> +2]=f+32;$:{if(!a)break $;g=P(d,g);j=P(d,j);while(1){J[f>>2]=a;k=J[f+64>>2];J[f+4>>2]=k;if((h|0)!=(k|0)){J[699344]=0;da(5243,f|0,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;a=Z()|0;id(h);Hd(i);break s}a=J[a+8>>2];if(!((a|0)>=J[n+96>>2]&(a|0)<=J[n+100>>2])){J[699344]=0;b=ja(5178,f+136|0,2402233,2402484,619,2416728,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break W;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C;a=Z()|0;Kc(b);id(h);Hd(i);break s}a=J[n+84>>2]+(a-J[n+88>>2]<<3)| +0;k=J[a+4>>2];J[699344]=0;k=aa(5543,n|0,k|0)|0;p=J[699344];J[699344]=0;if((p|0)==1)break V;p=L[a>>1];a=L[a+2>>1];k=J[k+4>>2];J[699344]=0;ma(5545,J[f+92>>2],k|0,p-j|0,a-g|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break V;a=J[f+60>>2];if(!a)break $;a=J[a>>2];J[f+60>>2]=a;if(a)continue;break}}if((o|0)<=J[i+20>>2]&(o|0)>=J[i+16>>2])break U;J[699344]=0;b=ja(5178,f+136|0,2402233,2402484,619,2417100,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break X;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!= +1)break C;a=Z()|0;Kc(b);id(h);Hd(i);break s}a=Z()|0;id(h);Hd(i);break s}a=Z()|0;zc(f+136|0);id(h);Hd(i);break s}a=Z()|0;id(h);Hd(i);break s}a=Z()|0;id(h);Hd(i);break s}a=Z()|0;id(h);Hd(i);break s}a=J[i+4>>2];g=J[i+8>>2];j=J[c>>2];k=J[c+4>>2];J[699344]=0;ma(5552,b|0,J[f+92>>2],J[f+16>>2]-j|0,J[f+20>>2]-k|0,a+P(o-g|0,3)|0);a=J[699344];J[699344]=0;if((a|0)==1)break z;id(h);if(J[m+4>>2]>0)continue;break}}Hd(i);j=1;break q}a=Z()|0;id(h);Hd(i);break s}a=Z()|0;Hd(i);break s}a=Z()|0;Hd(i);break s}a=Z()|0; +uc(g);id(h);Hd(i);break s}break a}ea(0)|0;Bc()}B()}a=Z()|0;break s}j=0;i=J[f+116>>2];if(!i)break q;g=n;l=L[i+10>>1];n=L[i+8>>1];h=xt(k,g,l,n);if(h-13>>>0<4294967284)break q;g=1;g=(d|0)<(h|0)?(h|0)/(d|0)|0:g;d=P(g,d);if((d|0)==(h|0)){J[699344]=0;cb(5553,b|0,o|0,i|0,g|0,c|0,+r);a=J[699344];J[699344]=0;j=1;if((a|0)!=1)break q;a=Z()|0;break s}i=((d+P(h,n)|0)-1|0)/(d|0)|0;j=((d+P(h,l)|0)-1|0)/(d|0)|0;J[f+32>>2]=0;aa:{ba:{if(!K[2774956]){J[699344]=0;J[693738]=0;aa(5145,2774952,0)|0;k=J[699344];J[699344]= +0;if((k|0)==1)break ba;H[2774956]=1}ca:{da:{ea:{fa:{ga:{ha:{ia:{ja:{k=J[693738];if(!k|J[693736]!=(a|0)|(J[f+116>>2]!=J[693737]|(j|0)!=L[k+10>>1]))break ja;if((i|0)!=L[k+8>>1])break ja;J[699344]=0;aa(5153,f+32|0,2774952)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break ia;break ba}J[699344]=0;o=f+16|0;ma(5531,o|0,l|0,n|0,j|0,i|0);k=J[699344];J[699344]=0;if((k|0)==1)break ca;J[699344]=0;k=J[f+16>>2];ca(5532,k|0,h|0,d|0);q=J[699344];J[699344]=0;if((q|0)==1)break ha;J[699344]=0;ca(5533,k|0,h|0,d|0);d=J[699344]; +J[699344]=0;if((d|0)==1)break ha;J[699344]=0;d=f+136|0;$(5529,d|0);h=J[699344];J[699344]=0;if((h|0)==1)break ga;J[699344]=0;aa(5153,f+32|0,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break fa;zc(d);J[f+148>>2]=n;J[f+144>>2]=l;J[f+136>>2]=0;J[f+140>>2]=0;J[699344]=0;J[f+80>>2]=i;J[f+76>>2]=j;J[f+68>>2]=0;J[f+72>>2]=0;ma(5535,k|0,d|0,J[f+116>>2],f+68|0,J[f+32>>2]);d=J[699344];J[699344]=0;if((d|0)==1)break ea;zc(o)}J[699344]=0;cb(5553,b|0,J[f+92>>2],J[f+32>>2],g|0,c|0,+r);b=J[699344];J[699344]=0;if((b| +0)==1)break ba;J[693736]=a;J[693737]=J[f+116>>2];J[699344]=0;a=f+32|0;aa(5153,2774952,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ba;zc(a);j=1;break q}a=Z()|0;break da}a=Z()|0;break da}a=Z()|0;zc(f+136|0);break da}a=Z()|0}zc(f+16|0);break aa}a=Z()|0;break aa}a=Z()|0}zc(f+32|0);break s}a=Z()|0;id(h);Hd(i);break s}a=Z()|0;id(h);Hd(i);break s}a=Z()|0;Hd(i);break s}a=Z()|0;break s}a=Z()|0;Hd(i);break s}a=Z()|0;Hd(i);break s}a=Z()|0}zc(f+92|0);id(m)}zc(f+112|0);break n}a=J[f+92>>2];J[f+92>>2]=0;if(!a)break p; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break p;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break p}break a}id(m);a=J[f+112>>2];J[f+112>>2]=0;ka:{if(!a)break ka;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break ka;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break ka}break a}a=J[f+116>>2];J[f+116>>2]=0;la:{ma:{if(!a)break ma;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0; +if((c|0)==1)break la;if(b)break ma;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break la}a=J[f+120>>2];J[f+120>>2]=0;if(!a)break j;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break j;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break j}break a}break a}a=Z()|0}zc(f+116|0);break l}a=Z()|0}zc(f+120|0);break d}a=Z()|0;break d}a=J[f+124>>2];J[f+124>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c| +0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}a=Z()|0;break d}a=Z()|0}zc(f+124|0);ba(a|0);B()}fc=f+160|0;return j|0}ea(0)|0;Bc();B()}function P2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;f=fc-4368|0;fc=f;s=fc-352|0;fc=s;g=-102;i=a;a:{if(!a)break a;if(Yc(9668)>>>0>255)break a;if(!(J[a+96>>2]|J[a+100>>2])){g=-100;break a}j=J[i+88>>2];h=J[i+92>>2];k=J[i+80>>2];r=J[i+84>> +2];t=i+128|0;xc(s+264|0,t,88);J[i+80>>2]=0;J[i+84>>2]=0;a=J[i+124>>2];J[i+88>>2]=J[i+120>>2];J[i+92>>2]=a;v=J[i+216>>2];p=J[i+220>>2];m=i+216|0;g=Xr(i,t,m,0,0);J[i+96>>2]=!g;J[i+100>>2]=0;b:{if(g)break b;while(1){g=Xr(i,0,0,s,256);if(g)break b;if(!Ic(s,9668)){g=0;break a}g=-100;if(!(J[i+96>>2]|J[i+100>>2]))break b;o=J[i+56>>2];a=J[i+60>>2];l=(o|0)!=65535|(a|0)!=0;q=J[i+84>>2];n=J[i+80>>2]+1|0;q=n?q:q+1|0;if((n|0)==(o|0)&(a|0)==(q|0)&l)break b;J[i+80>>2]=n;J[i+84>>2]=q;g=J[i+92>>2];o=(J[i+176>>2]+ +(J[i+168>>2]+J[i+172>>2]|0)|0)+46|0;a=o+J[i+88>>2]|0;g=o>>>0>a>>>0?g+1|0:g;J[i+88>>2]=a;J[i+92>>2]=g;g=Xr(i,t,m,0,0);J[i+96>>2]=!g;J[i+100>>2]=0;if(!g)continue;break}}J[i+88>>2]=j;J[i+92>>2]=h;J[i+80>>2]=k;J[i+84>>2]=r;xc(t,s+264|0,88);J[i+216>>2]=v;J[i+220>>2]=p}fc=s+352|0;v=g;if(i){J[i+80>>2]=0;J[i+84>>2]=0;a=J[i+124>>2];J[i+88>>2]=J[i+120>>2];J[i+92>>2]=a;x=i,y=!Xr(i,i+128|0,i+216|0,0,0),J[x+96>>2]=y;J[i+100>>2]=0}if(i){J[f+8>>2]=J[i+56>>2];J[f+12>>2]=J[i- -64>>2];o=0}else o=-102;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(J[f+ +8>>2]){while(1){g=f+272|0;h=Ax(i,f+192|0,g,4096);m:{if(h)break m;J[f+184>>2]=0;J[f+176>>2]=0;J[f+180>>2]=0;n:{o:{p:{q:{r:{if(K[f+201|0]&8){a=Yc(g);J[699344]=0;ca(1618,f+16|0,g|0,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break r;h=Z()|0;break c}J[699344]=0;da(3205,f+16|0,f+272|0);a=J[699344];J[699344]=0;if((a|0)==1)break q}if(H[f+187|0]<0)uc(J[f+176>>2]);J[f+184>>2]=J[f+24>>2];a=J[f+20>>2];J[f+176>>2]=J[f+16>>2];J[f+180>>2]=a;g=K[f+187|0];h=g<<24>>24;a=J[f+180>>2];s:{if(v)break s;n=(h|0)<0?a:g;if(!n)break s; +h=0;if((n|0)!=1){j=n&-2;a=0;while(1){k=h<<2;g=k+(H[f+187|0]<0?J[f+176>>2]:f+176|0)|0;if(J[g>>2]==92)J[g>>2]=47;g=(k|4)+(H[f+187|0]<0?J[f+176>>2]:f+176|0)|0;if(J[g>>2]==92)J[g>>2]=47;h=h+2|0;a=a+2|0;if((j|0)!=(a|0))continue;break}}t:{if(!(n&1))break t;a=(h<<2)+(H[f+187|0]<0?J[f+176>>2]:f+176|0)|0;if(J[a>>2]!=92)break t;J[a>>2]=47}a=J[f+180>>2];h=K[f+187|0]}J[f+160>>2]=0;H[f+171|0]=0;g=h<<24>>24<0;j=g?J[f+176>>2]:f+176|0;h=j+((g?a:h&255)<<2)|0;u:{v:{w:{x:{y:{while(1){if((h|0)==(j|0))break y;h=h-4|0; +if(!og(756148,J[h>>2],1))continue;break}k=K[f+187|0];a=k<<24>>24;g=h-j|0;if((g|0)==-4)break x;k=((a|0)<0?J[f+180>>2]:k)-1|0;a=g>>2;if((k|0)==(a|0))break u;J[699344]=0;g=na(2963,f+148|0,f+176|0,a+1|0,-1,f+16|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break w;if(H[f+171|0]<0)uc(J[f+160>>2]);J[f+168>>2]=J[g+8>>2];a=J[g+4>>2];J[f+160>>2]=J[g>>2];J[f+164>>2]=a;break u}a=K[f+187|0]}if(H[f+171|0]>=0){if(a<<24>>24<0)break v;J[f+168>>2]=J[f+184>>2];a=J[f+180>>2];J[f+160>>2]=J[f+176>>2];J[f+164>>2]=a;break u}J[699344]= +0;g=a<<24>>24<0;ga(1630,f+160|0,(g?J[f+176>>2]:f+176|0)|0,(g?J[f+180>>2]:a&255)|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break u;break e}h=Z()|0;break d}J[699344]=0;ga(1631,f+160|0,J[f+176>>2],J[f+180>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break e}z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{j=bf(b);K:{if(j>>>0>=1073741808){J[699344]=0;$(2959,f+120|0);a=J[699344];J[699344]=0;if((a|0)==1)break K;break f}if(j>>>0<=1){H[f+131|0]=j;a=f+120|0;break I}a=j|3;if(a>>>0<1073741823)break J;J[699344]=0;ka(209);a=J[699344]; +J[699344]=0;if((a|0)!=1)break f}h=Z()|0;break d}J[699344]=0;k=a+1|0;a=_(4,k<<2)|0;g=J[699344];J[699344]=0;if((g|0)==1)break H;J[f+120>>2]=a;J[f+124>>2]=j;J[f+128>>2]=k|-2147483648}g=a;a=j<<2;x=xc(g,b,a)+a|0,y=0,J[x>>2]=y;J[699344]=0;g=aa(3026,f+120|0,756148)|0;a=J[699344];J[699344]=0;if((a|0)==1)break G;J[f+24>>2]=J[g+8>>2];a=J[g+4>>2];J[f+16>>2]=J[g>>2];J[f+20>>2]=a;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[699344]=0;g=K[f+187|0];a=g<<24>>24<0;g=ga(2960,f+16|0,(a?J[f+176>>2]:f+176|0)|0,(a?J[f+180>>2]: +g)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break F;J[f+144>>2]=J[g+8>>2];a=J[g+4>>2];J[f+136>>2]=J[g>>2];J[f+140>>2]=a;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;if(H[f+27|0]<0)uc(J[f+16>>2]);if(H[f+131|0]<0)uc(J[f+120>>2]);L:{M:{j=bf(b);N:{if(j>>>0>=1073741808){J[699344]=0;$(2959,f+104|0);break N}if(j>>>0<=1){H[f+115|0]=j;a=f+104|0;break L}a=j|3;if(a>>>0<1073741823)break M;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break f;h=Z()|0;break g}J[699344]=0;k=a+1|0;a=_(4,k<<2)|0;g=J[699344];J[699344]= +0;if((g|0)==1)break D;J[f+104>>2]=a;J[f+108>>2]=j;J[f+112>>2]=k|-2147483648}g=a;a=j<<2;x=xc(g,b,a)+a|0,y=0,J[x>>2]=y;J[699344]=0;g=aa(3026,f+104|0,756148)|0;a=J[699344];J[699344]=0;if((a|0)==1)break C;J[f+24>>2]=J[g+8>>2];a=J[g+4>>2];J[f+16>>2]=J[g>>2];J[f+20>>2]=a;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[699344]=0;g=K[f+171|0];a=g<<24>>24<0;g=ga(2960,f+16|0,(a?J[f+160>>2]:f+160|0)|0,(a?J[f+164>>2]:g)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break B;J[f+128>>2]=J[g+8>>2];a=J[g+4>>2];J[f+120>>2]=J[g>>2]; +J[f+124>>2]=a;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;if(H[f+27|0]<0)uc(J[f+16>>2]);if(H[f+115|0]<0)uc(J[f+104>>2]);a=H[f+171|0];if((a|0)<0?J[f+164>>2]:a&255)break z;h=0;if(c)break n;J[699344]=0;_(3206,f+136|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break n;h=Z()|0;break h}h=Z()|0;break d}h=Z()|0;break E}h=Z()|0;if(H[f+27|0]>=0)break E;uc(J[f+16>>2])}if(H[f+131|0]>=0)break d;uc(J[f+120>>2]);break d}h=Z()|0;break g}h=Z()|0;break A}h=Z()|0;if(H[f+27|0]>=0)break A;uc(J[f+16>>2])}if(H[f+115|0]>=0)break g;uc(J[f+ +104>>2]);break g}if(c)n=H[f+131|0]<0?J[f+120>>2]:f+120|0;else n=H[f+147|0]<0?J[f+136>>2]:f+136|0;J[699344]=0;h=aa(3207,i|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{j=bf(b);Z:{if(j>>>0>=1073741808){J[699344]=0;$(2959,f+16|0);break Z}if(j>>>0<=1){H[f+27|0]=j;a=f+16|0;break X}a=j|3;if(a>>>0<1073741823)break Y;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break f;h=Z()|0;break h}J[699344]=0;k=a+1|0;a=_(4,k<<2)|0;g=J[699344];J[699344]=0;if((g|0)==1)break W; +J[f+16>>2]=a;J[f+20>>2]=j;J[f+24>>2]=k|-2147483648}g=a;a=j<<2;x=xc(g,b,a)+a|0,y=0,J[x>>2]=y;J[699344]=0;aa(3026,f+16|0,756148)|0;a=J[699344];J[699344]=0;if((a|0)==1)break V;_:{if(H[f+187|0]>=0){J[f+112>>2]=J[f+184>>2];a=J[f+180>>2];J[f+104>>2]=J[f+176>>2];J[f+108>>2]=a;break _}J[699344]=0;ca(15,f+104|0,J[f+176>>2],J[f+180>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break U}g=H[f+115|0];p=(g|0)<0;a=H[f+27|0];m=(a|0)<0;$:{aa:{l=p?J[f+108>>2]:g&255;j=m?J[f+20>>2]:a&255;r=l+j|0;ba:{if(r>>>0>=1073741808){J[699344]= +0;$(2959,f+80|0);break ba}if(r>>>0<=1){J[f+88>>2]=0;J[f+80>>2]=0;J[f+84>>2]=0;H[f+91|0]=r;a=f+80|0;break $}a=r|3;if(a>>>0<1073741823)break aa;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break f;h=Z()|0;break Q}J[699344]=0;k=a+1|0;a=_(4,k<<2)|0;g=J[699344];J[699344]=0;if((g|0)==1)break T;J[f+84>>2]=r;J[f+80>>2]=a;J[f+88>>2]=k|-2147483648}g=a;a=j<<2;g=cd(g,m?J[f+16>>2]:f+16|0,a)+a|0;a=l<<2;x=cd(g,p?J[f+104>>2]:f+104|0,a)+a|0,y=0,J[x>>2]=y;J[699344]=0;H[f+79|0]=0;ca(3208,f+92|0,f+80|0,f+ +79|0);a=J[699344];J[699344]=0;if((a|0)==1)break S;if(H[f+91|0]<0)uc(J[f+80>>2]);J[699344]=0;H[f+79|0]=0;l=f+80|0;ca(3208,l|0,f+16|0,f+79|0);a=J[699344];J[699344]=0;if((a|0)==1)break R;g=0;a=H[f+91|0];m=(a|0)<0;p=m?J[f+84>>2]:a&255;if(p){g=K[f+103|0];a=g<<24>>24;j=(a|0)<0?J[f+92>>2]:f+92|0;a=(a|0)<0?J[f+96>>2]:g;k=j+(a<<2)|0;ca:{da:{if((a|0)<(p|0))break da;m=m?J[f+80>>2]:l;l=J[m>>2];g=j;while(1){a=(a-p|0)+1|0;if(!a)break da;a=og(g,l,a);if(!a)break da;if(!qd(a,m,p))break ca;g=a+4|0;a=k-g>>2;if((p|0)<= +(a|0))continue;break}}a=k}g=(a|0)==(k|0)?-1:a-j>>2;a=K[f+91|0]}if(a<<24>>24<0)uc(J[f+80>>2]);if(H[f+103|0]<0)uc(J[f+92>>2]);if(H[f+115|0]<0)uc(J[f+104>>2]);if(H[f+27|0]<0)uc(J[f+16>>2]);if((g|0)!=-1)break O;h=-104;break n}h=Z()|0;break h}h=Z()|0;break P}h=Z()|0;break P}h=Z()|0;break Q}h=Z()|0;if(H[f+91|0]>=0)break Q;uc(J[f+80>>2]);break Q}h=Z()|0;if(H[f+103|0]>=0)break Q;uc(J[f+92>>2])}if(H[f+115|0]>=0)break P;uc(J[f+104>>2])}if(H[f+27|0]>=0)break h;uc(J[f+16>>2]);break h}J[699344]=0;a=f+60|0;J[a+ +12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=415588;k=a;a=J[699344];J[699344]=0;ea:{fa:{ga:{ha:{ia:{ja:{if((a|0)!=1){g=0;if(h)break ea;ka:{la:{m=bf(n);ma:{if(m>>>0>=1073741808){J[699344]=0;$(2959,f+16|0);break ma}if(m>>>0<=1){H[f+27|0]=m;a=f+16|0;break ka}a=m|3;if(a>>>0<1073741823)break la;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break f;h=Z()|0;De(k);break h}J[699344]=0;l=a+1|0;a=_(4,l<<2)|0;j=J[699344];J[699344]=0;if((j|0)==1)break ja;J[f+16>>2]=a;J[f+20>>2]=m;J[f+24>>2]=l|-2147483648}j= +a;a=m<<2;x=cd(j,n,a)+a|0,y=0,J[x>>2]=y;J[699344]=0;j=aa(17,k|0,f+16|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ia;if(H[f+27|0]<0)uc(J[f+16>>2]);if(!j)break ga;J[699344]=0;g=J[k+4>>2];a=J[699344];J[699344]=0;if((a|0)!=1)break ha;h=Z()|0;De(k);break h}h=Z()|0;break h}h=Z()|0;De(k);break h}h=Z()|0;if(H[f+27|0]>=0)break i;uc(J[f+16>>2]);De(k);break h}if(c)break ea;if(!g)break fa;break ea}if(c)break ea}g=K[f+171|0];l=g<<24>>24;a=K[f+187|0];j=a<<24>>24;q=(j|0)<0;m=q?J[f+180>>2]:a;j=(l|0)<0;a=j?J[f+ +164>>2]:g;if((m|0)==(a|0)){g=0;if(!a)break ea;if(!qd(j?J[f+160>>2]:f+160|0,q?J[f+176>>2]:f+176|0,a))break ea}na:{oa:{pa:{qa:{ra:{sa:{ta:{l=bf(n);ua:{if(l>>>0>=1073741808){J[699344]=0;$(2959,f+104|0);break ua}if(l>>>0<=1){H[f+115|0]=l;a=f+104|0;break sa}a=l|3;if(a>>>0<1073741823)break ta;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break f;h=Z()|0;De(k);break h}J[699344]=0;j=a+1|0;a=_(4,j<<2)|0;g=J[699344];J[699344]=0;if((g|0)==1)break ra;J[f+104>>2]=a;J[f+108>>2]=l;J[f+112>>2]=j|-2147483648}g= +a;a=l<<2;x=cd(g,n,a)+a|0,y=0,J[x>>2]=y;J[699344]=0;da(3209,f+16|0,f+104|0);a=J[699344];J[699344]=0;if((a|0)==1)break qa;if(H[f+115|0]<0)uc(J[f+104>>2]);J[699344]=0;_(3210,f+16|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){va:{wa:{l=bf(n);xa:{if(l>>>0>=1073741808){J[699344]=0;$(2959,f+104|0);break xa}if(l>>>0<=1){H[f+115|0]=l;a=f+104|0;break va}a=l|3;if(a>>>0<1073741823)break wa;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break f;h=Z()|0;break j}J[699344]=0;j=a+1|0;a=_(4,j<<2)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break pa;J[f+104>>2]=a;J[f+108>>2]=l;J[f+112>>2]=j|-2147483648}g=a;a=l<<2;x=cd(g,n,a)+a|0,y=0,J[x>>2]=y;J[699344]=0;j=aa(17,k|0,f+104|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break oa;if(H[f+115|0]<0)uc(J[f+104>>2]);g=0;if(!j)break na;J[699344]=0;g=J[k+4>>2];a=J[699344];J[699344]=0;if((a|0)!=1)break na}h=Z()|0;break j}h=Z()|0;De(k);break h}h=Z()|0;if(H[f+115|0]>=0)break i;uc(J[f+104>>2]);De(k);break h}h=Z()|0;break j}h=Z()|0;if(H[f+115|0]>=0)break j;uc(J[f+104>>2]);break j}if(H[f+ +27|0]>=0)break ea;uc(J[f+16>>2])}l=Dc(8192);if(!l){De(k);h=-104;break n}ya:{za:{if(g){Aa:{while(1){J[699344]=0;h=ga(3211,i|0,l|0,8192)|0;a=J[699344];J[699344]=0;if((a|0)==1)break ya;if((h|0)<0)break p;if(!h)break Aa;if((ae(l,h,1,g)|0)==1)continue;break}h=-1;break p}J[699344]=0;$(21,k|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;J[f+40>>2]=0;J[f+44>>2]=0;J[f+56>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;a=J[f+252>>2];J[f+16>>2]=J[f+248>>2];J[f+20>>2]=a;a=J[f+260>>2];J[f+24>>2]=J[f+256>>2];J[f+28>>2]=a;J[f+ +36>>2]=J[f+268>>2];J[f+32>>2]=J[f+264>>2]+1;Ba:{Ca:{Da:{Ea:{m=bf(n);Fa:{if(m>>>0>=1073741808){J[699344]=0;$(2959,f+104|0);break Fa}if(m>>>0<=1){H[f+115|0]=m;a=f+104|0;break Da}a=m|3;if(a>>>0<1073741823)break Ea;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break f;h=Z()|0;De(k);break h}J[699344]=0;j=a+1|0;a=_(4,j<<2)|0;g=J[699344];J[699344]=0;if((g|0)==1)break Ca;J[f+104>>2]=a;J[f+108>>2]=m;J[f+112>>2]=j|-2147483648}g=a;a=m<<2;x=cd(g,n,a)+a|0,y=0,J[x>>2]=y;J[699344]=0;ga(3212,f+104|0,f+ +16|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Ba;if(H[f+115|0]>=0)break za;uc(J[f+104>>2]);break za}h=Z()|0;De(k);break h}h=Z()|0;if(H[f+115|0]>=0)break i;uc(J[f+104>>2]);De(k);break h}if(h)break p}J[699344]=0;h=_(3213,i|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break o;break k}h=Z()|0;break i}h=Z()|0;break h}h=Z()|0;break c}J[699344]=0;_(3213,i|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k}uc(l);De(k)}if(H[f+131|0]<0)uc(J[f+120>>2]);if(H[f+147|0]<0)uc(J[f+136>>2]);if(H[f+171|0]<0)uc(J[f+ +160>>2]);if(H[f+187|0]>=0)break m;uc(J[f+176>>2])}if(e){I[f+272>>1]=0;kc[J[e>>2]](0,P(1E6/M[f+8>>2]|0,u),f+272|0);if(L[f+272>>1])break l}w=!h+w|0;u=u+1|0;a=J[f+8>>2];Ga:{if(u>>>0>>0){o=wL(i);if(o)break Ga;o=0;a=J[f+8>>2]}if(a>>>0>u>>>0)continue}break}o=w?o:-1}else o=-1;if(!e)break l;I[f+272>>1]=0;kc[J[e>>2]](0,1E6,f+272|0)}fc=f+4368|0;return o|0}h=Z()|0;De(k);break h}if(H[f+27|0]>=0)break i;uc(J[f+16>>2]);De(k);break h}De(k)}if(H[f+131|0]>=0)break g;uc(J[f+120>>2])}if(H[f+147|0]>=0)break d;uc(J[f+ +136>>2]);break d}B()}h=Z()|0}if(H[f+171|0]>=0)break c;uc(J[f+160>>2])}if(H[f+187|0]<0)uc(J[f+176>>2]);ba(h|0);B()}function Pm(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;j=fc-32|0;fc=j;J[j+16>>2]=13;a:{if((b|0)>=9){Cc(1,-1,776305,0);break a}b:{c:switch(J[a>>2]-4|0){case 0:d:{a=J[a+8>>2];if(Ic(a,777407))if(Ic(a,779261))break d;c=vc(12);J[c>>2]=2217624;J[c+4>>2]=15;J[c+8>>2]=0;break a}e:{if(Ic(a,780498))if(Ic(a,781752))break e;c=vc(12);J[c>>2]=2217728;J[c+4>>2]=15;J[c+ +8>>2]=0;break a}f:{if(Ic(a,782737))if(Ic(a,783775))break f;c=vc(12);J[c>>2]=2217832;J[c+4>>2]=15;J[c+8>>2]=0;break a}if(!Ic(a,784367)){c=vc(16);J[c+12>>2]=0;J[c>>2]=2218144;J[c+4>>2]=15;J[c+8>>2]=0;break a}J[j>>2]=a;Cc(1,-1,785891,j);break a;case 2:break c;default:break b}d=J[a+8>>2];if(J[d+12>>2]<=0)break b;Sc(d,0,j+16|0,0);g:{h:{if(J[j+16>>2]!=4)break h;i:{d=J[j+24>>2];if(Ic(d,777407))if(Ic(d,779261))break i;c=vc(12);J[c>>2]=2217624;J[c+4>>2]=15;J[c+8>>2]=0;break g}j:{if(Ic(d,780498))if(Ic(d,781752))break j; +c=vc(12);J[c>>2]=2217728;J[c+4>>2]=15;J[c+8>>2]=0;break g}k:{if(Ic(d,782737))if(Ic(d,783775))break k;c=vc(12);J[c>>2]=2217832;J[c+4>>2]=15;J[c+8>>2]=0;break g}if(!Ic(d,786149)){c=J[a+8>>2];b=0;a=fc-48|0;fc=a;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;l:{if(J[c+12>>2]<=1){Cc(1,-1,794697,0);break l}d=c;c=a+32|0;Sc(d,1,c,0);if(J[a+32>>2]!=7){Cc(1,-1,794697,0);yc(c);break l}b=vc(72);J[b+32>>2]=0;J[b+36>>2]=1072693248;J[b>>2]=2217676;J[b+4>>2]=15;J[b+8>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+40>>2]=0; +J[b+44>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+64>>2]=0;J[b+68>>2]=1072693248;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;m:{if(J[Ec(J[a+40>>2],795234,a+16|0,0)>>2]!=6)break m;c=J[a+24>>2];if(J[c+12>>2]!=3)break m;Sc(c,0,a,0);O[b+16>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],1,a,0);O[b+24>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],2,a,0);O[b+32>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a)}c=a+16|0;yc(c);n:{if(J[Ec(J[a+40>>2],796015,c,0)>>2]!=6)break n;c=J[a+24>> +2];if(J[c+12>>2]!=3)break n;Sc(c,0,a,0);O[b+40>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],1,a,0);O[b+48>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],2,a,0);O[b+56>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a)}c=a+16|0;yc(c);if(J[Ec(J[a+40>>2],797089,c,0)>>2]-3>>>0>=4294967294)O[b+64>>3]=J[a+16>>2]==1?+J[a+24>>2]:O[a+24>>3];yc(a+16|0);yc(a+32|0)}fc=a+48|0;c=b;break g}if(!Ic(d,787572)){c=J[a+8>>2];b=0;a=fc-48|0;fc=a;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;o:{if(J[c+12>>2]<=1){Cc(1, +-1,797936,0);break o}d=c;c=a+32|0;Sc(d,1,c,0);if(J[a+32>>2]!=7){Cc(1,-1,797936,0);yc(c);break o}b=vc(160);J[b+32>>2]=0;J[b+36>>2]=1072693248;J[b>>2]=2217780;J[b+4>>2]=15;J[b+8>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+40>>2]=0;J[b+44>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+80>>2]=0;J[b+84>>2]=1072693248;J[b+72>>2]=0;J[b+76>>2]=1072693248;J[b+88>>2]=0;J[b+92>>2]=1072693248;J[b+64>>2]=0;J[b+68>>2]=1072693248;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+ +104>>2]=0;J[b+108>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+128>>2]=0;J[b+132>>2]=0;J[b+120>>2]=0;J[b+124>>2]=1072693248;J[b+136>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+152>>2]=0;J[b+156>>2]=1072693248;p:{if(J[Ec(J[a+40>>2],795234,a+16|0,0)>>2]!=6)break p;c=J[a+24>>2];if(J[c+12>>2]!=3)break p;Sc(c,0,a,0);O[b+16>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],1,a,0);O[b+24>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],2,a,0);O[b+32>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a)}c= +a+16|0;yc(c);q:{if(J[Ec(J[a+40>>2],796015,c,0)>>2]!=6)break q;c=J[a+24>>2];if(J[c+12>>2]!=3)break q;Sc(c,0,a,0);O[b+40>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],1,a,0);O[b+48>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],2,a,0);O[b+56>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a)}c=a+16|0;yc(c);r:{if(J[Ec(J[a+40>>2],797089,c,0)>>2]!=6)break r;c=J[a+24>>2];if(J[c+12>>2]!=3)break r;Sc(c,0,a,0);O[b+64>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],1,a,0);O[b+72>>3]=J[a>> +2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],2,a,0);O[b+80>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a)}c=a+16|0;yc(c);s:{if(J[Ec(J[a+40>>2],798400,c,0)>>2]!=6)break s;c=J[a+24>>2];if(J[c+12>>2]!=9)break s;Sc(c,0,a,0);O[b+88>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],1,a,0);O[b+96>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],2,a,0);O[b+104>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],3,a,0);O[b+112>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],4,a,0);O[b+ +120>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],5,a,0);O[b+128>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],6,a,0);O[b+136>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],7,a,0);O[b+144>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],8,a,0);O[b+152>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a)}yc(a+16|0);yc(a+32|0)}fc=a+48|0;c=b;break g}if(!Ic(d,788179)){c=J[a+8>>2];b=0;a=fc-48|0;fc=a;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;t:{if(J[c+12>>2]<=1){Cc(1,-1,799487,0); +break t}d=c;c=a+32|0;Sc(d,1,c,0);if(J[a+32>>2]!=7){Cc(1,-1,799487,0);yc(c);break t}b=vc(120);J[b+32>>2]=0;J[b+36>>2]=1072693248;J[b>>2]=2217884;J[b+4>>2]=15;J[b+8>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+40>>2]=0;J[b+44>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+80>>2]=0;J[b+84>>2]=-1067909120;J[b+88>>2]=0;J[b+92>>2]=1079574528;J[b+64>>2]=0;J[b+68>>2]=-1067909120;J[b+72>>2]=0;J[b+76>>2]=1079574528;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;m=1;u:{if(J[Ec(J[a+40>>2],795234,a+16|0,0)>> +2]!=6){k=1;l=1;break u}k=1;l=1;c=J[a+24>>2];if(J[c+12>>2]!=3)break u;Sc(c,0,a,0);l=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];O[b+16>>3]=l;yc(a);Sc(J[a+24>>2],1,a,0);k=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];O[b+24>>3]=k;yc(a);Sc(J[a+24>>2],2,a,0);m=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];O[b+32>>3]=m;yc(a)}c=a+16|0;yc(c);v:{if(J[Ec(J[a+40>>2],796015,c,0)>>2]!=6)break v;c=J[a+24>>2];if(J[c+12>>2]!=3)break v;Sc(c,0,a,0);O[b+40>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],1,a,0);O[b+48>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+ +8>>3];yc(a);Sc(J[a+24>>2],2,a,0);O[b+56>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a)}c=a+16|0;yc(c);w:{if(J[Ec(J[a+40>>2],800149,c,0)>>2]!=6)break w;c=J[a+24>>2];if(J[c+12>>2]!=4)break w;Sc(c,0,a,0);O[b+64>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],1,a,0);O[b+72>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],2,a,0);O[b+80>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a);Sc(J[a+24>>2],3,a,0);O[b+88>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(a)}yc(a+16|0);yc(a+32|0);O[b+112>>3]=1/(m*1.057229+ +(l*.055643+k*-.204026));O[b+104>>3]=1/(m*.041556+(l*-.969265+k*1.876011));O[b+96>>3]=1/(m*-.498531+(l*3.240449+k*-1.537136))}fc=a+48|0;c=b;break g}if(!Ic(d,789008)){d=J[a+8>>2];e=fc+-64|0;fc=e;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;x:{if(J[d+12>>2]<=1){Cc(1,-1,800834,0);break x}f=e+48|0;tg(d,1,f);a=J[e+56>>2];g=J[e+60>>2];i=J[e+48>>2];yc(f);Sc(d,1,f,0);if(J[e+48>>2]!=8){Cc(1,-1,802019,0);yc(f);break x}d=J[e+56>>2];f=kc[J[J[d>>2]+76>>2]](d)|0;d=e+32|0;if(J[Ec(f,802430,d,0)>>2]!=1){Cc(1,-1,803348, +0);yc(d);yc(e+48|0);break x}d=J[e+40>>2];yc(e+32|0);if((d|0)>=5){J[e>>2]=d;Cc(1,-1,803545,e);d=4}c=e+32|0;y:{if(J[Ec(f,804402,c,0)>>2]!=5){b=Pm(c,b+1|0);if(b)break y}z:switch(d-1|0){case 2:b=vc(12);J[b>>2]=2217728;J[b+4>>2]=15;J[b+8>>2]=0;break y;case 3:b=vc(12);J[b>>2]=2217832;J[b+4>>2]=15;J[b+8>>2]=0;break y;default:c=0;Cc(1,-1,805119,0);yc(e+32|0);yc(e+48|0);break x;case 0:break z}b=vc(12);J[b>>2]=2217624;J[b+4>>2]=15;J[b+8>>2]=0}h=e+32|0;yc(h);c=vc(96);J[c+16>>2]=b;J[c+12>>2]=d;J[c>>2]=2217936; +J[c+4>>2]=15;J[c+8>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+56>>2]=0;J[c+60>>2]=1072693248;b=a;a=(i|0)==9;J[c+88>>2]=a?b:0;J[c+92>>2]=a?g:0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+80>>2]=0;J[c+84>>2]=1072693248;J[c+72>>2]=0;J[c+76>>2]=1072693248;a=c- -64|0;J[a>>2]=0;J[a+4>>2]=1072693248;if(!(J[Ec(f,800149,h,0)>>2]!=6|J[J[e+40>>2]+12>>2]!=d<<1|(d|0)<=0)){b=0;while(1){f=b<<1;a=e+16|0;Sc(J[e+40>>2],f,a,0);g=(b<<3)+c|0;O[g+24>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>> +3];yc(a);Sc(J[e+40>>2],f|1,a,0);O[g+56>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3];yc(a);b=b+1|0;if((d|0)!=(b|0))continue;break}}yc(e+32|0);yc(e+48|0)}fc=e- -64|0;break g}A:{if(Ic(d,789883))if(Ic(d,791143))break A;e=J[a+8>>2];d=fc-16|0;fc=d;J[d>>2]=13;B:{C:{D:{if(J[e+12>>2]!=4){Cc(1,-1,805809,0);break D}Sc(e,1,d,0);b=Pm(d,b+1|0);E:{if(!b){Cc(1,-1,806319,0);break E}yc(d);if(J[Sc(e,2,d,0)>>2]!=1){Cc(1,-1,806746,0);kc[J[J[b>>2]+4>>2]](b);break E}a=J[d+8>>2];if(a>>>0>=256){Cc(1,-1,807179,0);kc[J[J[b>>2]+ +4>>2]](b);break E}yc(d);c=vc(24);J[c+16>>2]=a;J[c+12>>2]=b;J[c>>2]=2217988;J[c+4>>2]=15;J[c+8>>2]=0;f=J[J[b>>2]+28>>2];J[699344]=0;f=_(f|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break C;J[699344]=0;i=a+1|0;f=aa(3551,P(i,f)|0,1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break C;J[c+20>>2]=f;J[c+4>>2]=J[J[c+12>>2]+4>>2];g=0;Sc(e,3,d,0);f=kc[J[J[b>>2]+28>>2]](b)|0;F:{G:switch(J[d>>2]-3|0){case 5:b=J[d+8>>2];kc[J[J[b>>2]+20>>2]](b);if((f|0)>0)while(1){i=P(f,g);b=g-1|0;e=0;H:{if(g){while(1){h=J[d+8>>2]; +h=kc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1){Cc(1,-1,807613,0);J[c+16>>2]=b;a=b}H[(i+J[c+20>>2]|0)+e|0]=h;e=e+1|0;if((f|0)!=(e|0))continue;break}break H}while(1){h=J[d+8>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;if((h|0)!=-1){H[(i+J[c+20>>2]|0)+e|0]=h;e=e+1|0;if((f|0)!=(e|0))continue;break H}break}Cc(1,-1,807613,0);J[c+16>>2]=b;break F}g=g+1|0;if((g|0)<=(a|0))continue;break}a=J[d+8>>2];kc[J[J[a>>2]+24>>2]](a);yc(d);break D;default:Cc(1,-1,808477,0);break F;case 0:break G}e=J[d+8>>2];if(J[e>>2]<(P(f,i)|0)){Cc(1, +-1,808069,0);e=J[d+8>>2];b=J[e>>2]/(f|0)|0;a=b-1|0;J[c+16>>2]=a;if((b|0)<=0)break F}if((f|0)>0){o=f&-4;n=f&3;b=J[e+4>>2];p=f>>>0<4;while(1){g=P(f,h);e=0;i=0;if(!p)while(1){H[(g+J[c+20>>2]|0)+e|0]=K[b|0];H[(g+J[c+20>>2]|0)+(e|1)|0]=K[b+1|0];H[(g+J[c+20>>2]|0)+(e|2)|0]=K[b+2|0];H[(g+J[c+20>>2]|0)+(e|3)|0]=K[b+3|0];e=e+4|0;b=b+4|0;i=i+4|0;if((o|0)!=(i|0))continue;break}i=0;if(n)while(1){H[(g+J[c+20>>2]|0)+e|0]=K[b|0];e=e+1|0;b=b+1|0;i=i+1|0;if((n|0)!=(i|0))continue;break}e=(a|0)==(h|0);h=h+1|0;if(!e)continue; +break}}yc(d);break D}kc[J[J[c>>2]+4>>2]](c)}yc(d);c=0}fc=d+16|0;break B}a=Z()|0;uc(c);ba(a|0);B()}break g}if(!Ic(d,791543)){c=J[a+8>>2];a=fc-32|0;fc=a;J[a+16>>2]=13;J[a>>2]=13;I:{J:{K:{if(J[c+12>>2]!=4){b=0;Cc(1,-1,810697,0);break K}L:{if(J[Sc(c,1,a+16|0,0)>>2]!=4){Cc(1,-1,811187,0);break L}d=vc(8);J[699344]=0;e=aa(3349,d|0,J[a+24>>2])|0;f=J[699344];J[699344]=0;if((f|0)==1)break J;d=a+16|0;yc(d);Sc(c,2,d,0);M:{if(J[a+16>>2]!=8)break M;f=J[a+24>>2];if(J[Ec(kc[J[J[f>>2]+76>>2]](f)|0,804402,a,0)>>2]== +5)break M;yc(d);d=J[a+12>>2];J[a+24>>2]=J[a+8>>2];J[a+28>>2]=d;d=J[a+4>>2];J[a+16>>2]=J[a>>2];J[a+20>>2]=d}b=Pm(a+16|0,b+1|0);N:{if(!b){Cc(1,-1,836803,0);break N}d=a+16|0;yc(d);Sc(c,3,d,0);c=fi(d,1,kc[J[J[b>>2]+28>>2]](b)|0,0);if(c){yc(d);d=vc(28);J[699344]=0;b=p$(d,e,b,c);c=J[699344];J[699344]=0;if((c|0)!=1)break K;break J}kc[J[J[b>>2]+4>>2]](b)}uc(Zc(e))}yc(a+16|0);b=0}fc=a+32|0;break I}a=Z()|0;uc(d);ba(a|0);B()}c=b;break g}if(!Ic(d,792550)){f=J[a+8>>2];d=0;c=fc-192|0;fc=c;J[c+48>>2]=13;J[c+32>> +2]=13;J[c+16>>2]=13;O:{P:{Q:{if((J[f+12>>2]&-2)!=4){Cc(1,-1,837144,0);break Q}R:{if(J[Sc(f,1,c+32|0,0)>>2]!=6){Cc(1,-1,811534,0);break R}a=J[J[c+40>>2]+12>>2];S:{T:{if((a|0)>=33){J[c+4>>2]=32;J[c>>2]=a;Cc(1,-1,811783,c);a=32;break T}if((a|0)<=0)break S}while(1){e=c+16|0;if(J[Sc(J[c+40>>2],d,e,0)>>2]!=4){Cc(1,-1,811534,0);yc(e);break R}e=vc(8);J[699344]=0;g=aa(3349,e|0,J[c+24>>2])|0;i=J[699344];J[699344]=0;if((i|0)==1)break P;J[(c- -64|0)+(d<<2)>>2]=g;e=1;yc(c+16|0);d=d+1|0;if((d|0)!=(a|0))continue; +break}}d=c+32|0;yc(d);Sc(f,2,d,0);U:{if(J[c+32>>2]!=8)break U;g=J[c+40>>2];if(J[Ec(kc[J[J[g>>2]+76>>2]](g)|0,804402,c+16|0,0)>>2]==5)break U;yc(d);d=J[c+28>>2];J[c+40>>2]=J[c+24>>2];J[c+44>>2]=d;d=J[c+20>>2];J[c+32>>2]=J[c+16>>2];J[c+36>>2]=d}b=Pm(c+32|0,b+1|0);V:{if(!b){Cc(1,-1,812277,0);break V}d=c+32|0;yc(d);Sc(f,3,d,0);g=fi(d,a,kc[J[J[b>>2]+28>>2]](b)|0,0);if(g){yc(d);W:{if(J[f+12>>2]==5){Sc(f,4,c+48|0,0);break W}J[c+48>>2]=5}e=vc(176);J[699344]=0;d=a;a=c+48|0;d=ja(3600,e|0,d|0,c- -64|0,b|0,g| +0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){yc(a);break Q}break P}kc[J[J[b>>2]+4>>2]](b)}if(!e)break R;d=0;while(1){b=J[(c- -64|0)+(d<<2)>>2];if(b)uc(Zc(b));d=d+1|0;if((d|0)!=(a|0))continue;break}}yc(c+32|0);d=0}fc=c+192|0;c=d;break O}a=Z()|0;uc(e);ba(a|0);B()}break g}if(Ic(d,784367))break h;d=J[a+8>>2];a=fc-16|0;fc=a;J[a>>2]=13;X:{Y:switch(J[d+12>>2]-1|0){default:Cc(1,-1,812572,0);break X;case 1:Sc(d,1,a,0);e=Pm(a,b+1|0);if(!e){Cc(1,-1,812939,0);yc(a);break X}yc(a);break;case 0:break Y}c=vc(16); +J[c+12>>2]=e;J[c>>2]=2218144;J[c+4>>2]=15;J[c+8>>2]=0}fc=a+16|0;break g}Cc(1,-1,793312,0)}yc(j+16|0);break a}Cc(1,-1,793769,0)}fc=j+32|0;return c|0}function $I(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=fc-192|0;fc=h;c=0;a:{if(J[a+40>>2])break a;J[a+76>>2]=0;e=J[a+60>>2];b:{if(J[a+44>>2]){d=J[a+64>>2];b=J[e>>2];f=J[a+20>>2];if((b|0)<(f|0))while(1){J[d+(c<<2)>>2]=b;c=c+1|0;b=J[e+(c<<2)>>2];f=J[a+20>>2];if((b|0)<(f|0))continue;break}c=d+(c<<2)|0;J[c>>2]=f;b=J[a+20>>2];J[c+8>>2]=b;J[c+4>>2]=b;J[e>> +2]=0;J[a+72>>2]=0;if(J[e>>2]>=J[a+20>>2])break b;c=0;while(1){f=fc-16|0;fc=f;c:{d:{if(!J[a+28>>2]){d=J[a+56>>2];b=1;while(1){e:{f:{if((b|0)<=(d|0)){e=J[a+52>>2];break f}while(1){d=J[a+4>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1){d=J[a+56>>2];if(!d){e=-1;break d}g=J[a+52>>2]<>2]+8|0;J[a+56>>2]=d;e=e+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)>(d|0))continue;break}}g=e>>>d-b|0}e=-1;g=-1>>>32-b&g;if((g&65535)==65535)break d;e=g<<16>>16<<7-b;if(I[(e<<2)+2309520>>1]==(b|0)){b=d-b| +0;J[a+56>>2]=(b|0)>0?b:0;b=L[(e<<2)+2309522>>1];break c}b=b+1|0;if((b|0)!=8)continue;break}break d}b=J[a+56>>2];g:{h:{if((b|0)>=7){d=J[a+52>>2];break h}while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){b=J[a+56>>2];if(!b){e=-1;break d}e=J[a+52>>2]<<7-b;break g}e=J[a+56>>2];b=e+8|0;J[a+56>>2]=b;d=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=d;if((e|0)<-1)continue;break}}e=d>>>b-7|0}e=e&127;d=e<<2;g=I[d+2309520>>1];if((g|0)<=0)break d;b=b-(g&65535)|0;J[a+56>>2]=(b|0)>0?b:0;b=L[d+2309522>>1];break c}b= +kc[J[J[a>>2]+52>>2]](a)|0;J[f>>2]=e;Cc(1,b,813128,f);J[a+80>>2]=J[a+80>>2]+1;b=65535}fc=f+16|0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{b=b<<16>>16;switch(b+1|0){case 0:break k;case 5:break l;case 7:break m;case 9:break n;case 3:break o;case 4:break p;case 6:break q;case 8:break r;case 2:break s;case 1:break t;default:break j}}g=c+2|0;e=c+1<<2;b=J[e+J[a+64>>2]>>2];f=J[a+60>>2];d=J[a+72>>2];if((b|0)>J[f+(d<<2)>>2]){if(J[a+20>>2]<(b|0)){d=kc[J[J[a>>2]+52>>2]](a)|0;J[h+32>>2]=b;Cc(1,d,835840,h+32|0);J[a+ +76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+72>>2];b=J[a+20>>2]}if((d&1)!=(i|0)){d=d+1|0;J[a+72>>2]=d}f=J[a+60>>2];J[f+(d<<2)>>2]=b;b=J[e+J[a+64>>2]>>2]}c=(b|0)>2]?g:c;break i}b=0;d=0;e=0;u:{if(i){while(1){e=_I(a);d=e+d|0;if((e|0)>63)continue;break}while(1){e=ZI(a);b=e+b|0;if((e|0)>63)continue;break}break u}while(1){d=ZI(a);e=d+e|0;if((d|0)>63)continue;break}while(1){d=_I(a);b=d+b|0;if((d|0)>63)continue;break}d=e}f=J[a+60>>2];g=J[a+72>>2];e=J[f+(g<<2)>>2];if((d|0)>0){d=d+e|0;if((d|0)>J[a+20>>2]){e= +kc[J[J[a>>2]+52>>2]](a)|0;J[h+64>>2]=d;Cc(1,e,835840,h- -64|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;g=J[a+72>>2];d=J[a+20>>2]}if((g&1)!=(i|0)){g=g+1|0;J[a+72>>2]=g}f=J[a+60>>2];J[f+(g<<2)>>2]=d;g=J[a+72>>2];e=J[(g<<2)+f>>2]}d=J[a+20>>2];if(!((b|0)<=0|(e|0)>=(d|0))){b=b+e|0;if((d|0)<(b|0)){d=kc[J[J[a>>2]+52>>2]](a)|0;J[h+48>>2]=b;Cc(1,d,835840,h+48|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;g=J[a+72>>2];b=J[a+20>>2]}if((g&1^i)!=1){g=g+1|0;J[a+72>>2]=g}f=J[a+60>>2];J[f+(g<<2)>>2]=b;e=J[(J[a+72>>2]<<2)+ +f>>2];d=J[a+20>>2]}g=J[a+64>>2];while(1){b=c;j=J[g+(b<<2)>>2];if((j|0)>(e|0))break i;c=b+2|0;if((d|0)>(j|0))continue;break}c=b;break i}f=J[a+60>>2];b=J[a+72>>2];d=J[f+(b<<2)>>2];e=J[J[a+64>>2]+(c<<2)>>2]+3|0;if((d|0)<(e|0)){if(J[a+20>>2]<(e|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[h+80>>2]=e;Cc(1,b,835840,h+80|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;e=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=e;d=J[(J[a+72>>2]<<2)+f>>2]}i=i^1;if(J[a+20>>2]<=(d|0))break i;b= +c+1|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if(J[e+(c<<2)>>2]<=(d|0))continue;break}break i}f=J[a+60>>2];b=J[a+72>>2];d=J[f+(b<<2)>>2];e=J[J[a+64>>2]+(c<<2)>>2]+2|0;if((d|0)<(e|0)){if(J[a+20>>2]<(e|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[h+96>>2]=e;Cc(1,b,835840,h+96|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;e=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=e;d=J[(J[a+72>>2]<<2)+f>>2]}i=i^1;if(J[a+20>>2]<=(d|0))break i;b=c+1|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if(J[e+ +(c<<2)>>2]<=(d|0))continue;break}break i}f=J[a+60>>2];b=J[a+72>>2];d=J[f+(b<<2)>>2];e=J[J[a+64>>2]+(c<<2)>>2];if((d|0)<=(e|0)){d=e+1|0;if((e|0)>=J[a+20>>2]){b=kc[J[J[a>>2]+52>>2]](a)|0;J[h+112>>2]=d;Cc(1,b,835840,h+112|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=d;d=J[(J[a+72>>2]<<2)+f>>2]}i=i^1;if(J[a+20>>2]<=(d|0))break i;b=c+1|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if(J[e+(c<<2)>>2]<=(d|0))continue;break}break i}f= +J[a+60>>2];b=J[a+72>>2];d=J[f+(b<<2)>>2];e=J[J[a+64>>2]+(c<<2)>>2];if((d|0)<(e|0)){if(J[a+20>>2]<(e|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[h+128>>2]=e;Cc(1,b,835840,h+128|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;e=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=e;d=J[(J[a+72>>2]<<2)+f>>2]}i=i^1;if(J[a+20>>2]<=(d|0))break i;b=c+1|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if(J[e+(c<<2)>>2]<=(d|0))continue;break}break i}e=J[J[a+64>>2]+(c<<2)>>2];d=e-3|0;f=J[a+60>>2];b=J[a+ +72>>2];g=J[f+(b<<2)>>2];v:{if((d|0)>(g|0)){if(J[a+20>>2]<(d|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[h+144>>2]=d;Cc(1,b,835840,h+144|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=d;break v}if((d|0)>=(g|0))break v;if((e|0)<=2){d=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,836039,0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;f=J[a+60>>2];b=J[a+72>>2]}w:{if((b|0)<=0)break w;g=f-4|0;while(1){if(J[g+(b<<2)>>2]<(d|0))break w;e=b-1|0;J[a+72>> +2]=e;j=(b|0)>1;b=e;if(j)continue;break}b=0}J[(b<<2)+f>>2]=d}i=i^1;d=J[(J[a+72>>2]<<2)+f>>2];if((d|0)>=J[a+20>>2])break i;b=((c|0)<=0?1:-1)+c|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if((d|0)>=J[e+(c<<2)>>2])continue;break}break i}e=J[J[a+64>>2]+(c<<2)>>2];d=e-2|0;f=J[a+60>>2];b=J[a+72>>2];g=J[f+(b<<2)>>2];x:{if((d|0)>(g|0)){if(J[a+20>>2]<(d|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[h+160>>2]=d;Cc(1,b,835840,h+160|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>> +2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=d;break x}if((d|0)>=(g|0))break x;if((e|0)<=1){d=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,836039,0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;f=J[a+60>>2];b=J[a+72>>2]}y:{if((b|0)<=0)break y;g=f-4|0;while(1){if(J[g+(b<<2)>>2]<(d|0))break y;e=b-1|0;J[a+72>>2]=e;j=(b|0)>1;b=e;if(j)continue;break}b=0}J[(b<<2)+f>>2]=d}i=i^1;d=J[(J[a+72>>2]<<2)+f>>2];if((d|0)>=J[a+20>>2])break i;b=((c|0)<=0?1:-1)+c|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if((d|0)>=J[e+(c<<2)>>2])continue;break}break i}e= +J[J[a+64>>2]+(c<<2)>>2];d=e-1|0;f=J[a+60>>2];b=J[a+72>>2];g=J[f+(b<<2)>>2];z:{if((d|0)>(g|0)){if(J[a+20>>2]<(d|0)){b=kc[J[J[a>>2]+52>>2]](a)|0;J[h+176>>2]=d;Cc(1,b,835840,h+176|0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;d=J[a+20>>2];b=J[a+72>>2]}if((b&1)!=(i|0)){b=b+1|0;J[a+72>>2]=b}f=J[a+60>>2];J[f+(b<<2)>>2]=d;break z}if((e|0)>(g|0))break z;if((e|0)<=0){d=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,836039,0);J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1;f=J[a+60>>2];b=J[a+72>>2]}A:{if((b|0)<=0)break A;g=f-4|0;while(1){if(J[g+ +(b<<2)>>2]<(d|0))break A;e=b-1|0;J[a+72>>2]=e;j=(b|0)>1;b=e;if(j)continue;break}b=0}J[(b<<2)+f>>2]=d}i=i^1;d=J[(J[a+72>>2]<<2)+f>>2];if((d|0)>=J[a+20>>2])break i;b=((c|0)<=0?1:-1)+c|0;e=J[a+64>>2];while(1){c=b;b=b+2|0;if((d|0)>=J[e+(c<<2)>>2])continue;break}break i}d=J[a+20>>2];f=J[a+60>>2];b=J[a+72>>2];if((d|0)>J[f+(b<<2)>>2]){if(b&1){b=b+1|0;J[a+72>>2]=b}J[(b<<2)+f>>2]=d}J[a+76>>2]=1;break i}d=kc[J[J[a>>2]+52>>2]](a)|0;J[h+16>>2]=b;Cc(1,d,812107,h+16|0);d=J[a+20>>2];f=J[a+60>>2];b=J[a+72>>2];if((d| +0)>J[f+(b<<2)>>2]){if(b&1){b=b+1|0;J[a+72>>2]=b}J[(b<<2)+f>>2]=d}J[a+76>>2]=1;J[a+80>>2]=J[a+80>>2]+1}if(J[(J[a+72>>2]<<2)+f>>2]>2])continue;break}break b}J[e>>2]=0;J[a+72>>2]=0;if(J[e>>2]>=J[a+20>>2])break b;while(1){c=0;B:{if(d)while(1){b=_I(a);c=b+c|0;if((b|0)>63)continue;break B}while(1){b=ZI(a);c=b+c|0;if((b|0)>63)continue;break}}e=J[a+72>>2];b=J[J[a+60>>2]+(e<<2)>>2];if((c|0)>0){c=b+c|0;if((c|0)>J[a+20>>2]){b=kc[J[J[a>>2]+52>>2]](a)|0;J[h>>2]=c;Cc(1,b,835840,h);J[a+76>>2]=1;J[a+80>> +2]=J[a+80>>2]+1;e=J[a+72>>2];c=J[a+20>>2]}if((e&1)!=(d|0)){e=e+1|0;J[a+72>>2]=e}b=J[a+60>>2];J[b+(e<<2)>>2]=c;b=J[b+(J[a+72>>2]<<2)>>2]}d=d^1;if(J[a+20>>2]>(b|0))continue;break}}C:{D:{if(!(J[a+28>>2]|J[a+48>>2]!=(J[a+24>>2]-1|0))){J[a+40>>2]=1;break D}if(!(J[a+16>>2]?J[a+12>>2]:1))break D;E:{F:{G:{c=J[a+56>>2];H:{I:{if((c|0)>=12){b=J[a+52>>2];break I}while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break G;b=J[a+52>>2]<<12-c;break H}d=J[a+56>>2];c=d+8|0;J[a+56>>2]= +c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}b=b&4095;if(J[a+12>>2])break F;if(b)break E;while(1){b=(c|0)<=1?1:c;c=b-1|0;J[a+56>>2]=c;J:{K:{if(b>>>0>=13){b=J[a+52>>2];break K}while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break D;b=J[a+52>>2]<<12-c;break J}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}b=b&4095;if(!b)continue;break}break E}if(!J[a+12>>2])break D;c=0;b=-1}L:while(1){M:switch(b+ +1|0){case 0:case 2:break E;default:break M}b=(c|0)<=1?1:c;c=b-1|0;J[a+56>>2]=c;N:{if(b>>>0>=13){b=J[a+52>>2];break N}while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){b=-1;c=0;d=J[a+56>>2];if(!d)continue L;b=J[a+52>>2]<<12-d&4095;c=d;continue L}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12&4095;continue}}e=1;if((b|0)!=1)break D;c=((c|0)<=12?12:c)-12|0;J[a+56>>2]=c;break C}c=J[a+56>>2];if(J[a+16>>2]){c=c&-8;J[a+56>>2]=c}e=0}O:{P:{if((c| +0)>0)break P;while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(c)break P;J[a+40>>2]=1;c=0;break O}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;J[a+52>>2]=b+(J[a+52>>2]<<8);if((d|0)<-7)continue;break}}if(J[a+40>>2]|J[a+8>>2]<=0)break O;Q:{R:{if((c|0)>0){b=J[a+52>>2];break R}while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c){c=0;b=65535;break Q}b=J[a+52>>2]<<1-c&1;break Q}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)< +-7)continue;break}}b=b>>>c-1&1}J[a+44>>2]=!b;c=((c|0)<=1?1:c)-1|0;J[a+56>>2]=c}S:{T:{U:{V:{W:{X:{Y:{if(!J[a+16>>2]|(J[a+12>>2]|!J[a+28>>2]))break Y;Z:{_:{if((c|0)>=24){b=J[a+52>>2];break _}while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break X;b=J[a+52>>2]<<24-c;break Z}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<16)continue;break}}b=b>>>c-24|0}if((b&65535)!=4097)break Y;c=((c|0)<=12?12:c)-12|0;J[a+56>>2]=c;e=1}if(!e|!J[a+28>>2])break W; +if((c|0)<12)break V;b=J[a+52>>2];break U}c=0;if(J[a+28>>2]!=0&e)break V}if(!J[a+76>>2]|!J[a+12>>2])break S;$:{while(1){aa:{ba:{if((c|0)>=13){b=J[a+52>>2];break ba}while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break $;b=J[a+52>>2]<<13-c;break aa}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<5)continue;break}}b=b>>>c-13|0}if((b&8190)!=2){c=((c|0)<=1?1:c)-1|0;J[a+56>>2]=c;continue}break}J[a+56>>2]=((c|0)<=12?12:c)-12;if(J[a+8>>2]<=0)break S; +J[a+44>>2]=(b^-1)&1;J[a+56>>2]=((c|0)<=13?13:c)-13;break S}J[a+40>>2]=1;c=0;break a}while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break S;b=J[a+52>>2]<<12-c;break T}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}if((b&4095)!=1)break S;c=(c|0)<=12?12:c;b=c-12|0;J[a+56>>2]=b;ca:{if(J[a+8>>2]<=0)break ca;da:{if(b){c=c-13|0;J[a+56>>2]=c;break da}while(1){ea:{c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;c=J[a+ +56>>2];if((b|0)==-1){d=c;break ea}d=c+8|0;J[a+56>>2]=d;J[a+52>>2]=b+(J[a+52>>2]<<8);if((c|0)<-7)continue}break}c=((d|0)<=1?1:d)-1|0;J[a+56>>2]=c;if(J[a+8>>2]<=0)break ca}e=0;while(1){fa:{ga:{ha:{ia:{if(c>>>0>=12){b=J[a+52>>2];break ia}while(1){c=J[a+4>>2];b=kc[J[J[c>>2]+28>>2]](c)|0;if((b|0)==-1){c=J[a+56>>2];if(!c)break ga;b=J[a+52>>2]<<12-c;break ha}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}if((b&4095)==1)break fa}Cc(1,kc[J[J[a>> +2]+52>>2]](a)|0,812456,0);J[a+80>>2]=J[a+80>>2]+1;c=J[a+56>>2]}c=((c|0)<=12?12:c)-12|0;J[a+56>>2]=c;if(J[a+8>>2]>0){ja:{if(c)break ja;while(1){c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;b=J[a+56>>2];if((d|0)==-1){c=b;break ja}c=b+8|0;J[a+56>>2]=c;J[a+52>>2]=d+(J[a+52>>2]<<8);if((b|0)<-7)continue;break}}c=((c|0)<=1?1:c)-1|0;J[a+56>>2]=c}e=e+1|0;if((e|0)!=4)continue;break}}J[a+40>>2]=1}if(J[a+80>>2]>=1001){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,812867,0);J[a+40>>2]=1;c=0;break a}J[a+68>>2]=0;c=J[J[a+60>>2]>>2]; +J[a+48>>2]=J[a+48>>2]+1;J[a+72>>2]=(c|0)<=0;c=1}fc=h+192|0;return c}function g1(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0;i=fc-160|0;fc=i;e=J[a+36>>2];m=J[e+16>>2];f=0;a:{if(K[m|0]!=60)break a;C=J[a+328>>2];s=J[a+304>>2];o=J[a+300>>2];J[e+16>>2]=m+1;J[e+32>>2]=J[e+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(!K[m+1|0]){Nd(e);e=J[a+36>>2]}y=a+320|0;b:{while(1){c:{if(J[a+292>>2])break c;f=J[e+16>>2];if((f-J[e+12>>2]|0)<501| +(J[e+20>>2]-f|0)>499)break c;_g(a);e=J[a+36>>2]}D=J[e+32>>2];r=J[e+28>>2];f=J[e+16>>2];u=J[e+12>>2];J[a+328>>2]=C;v=J[a+40>>2];m=wK(a,i+156|0);d:{if(!m){oe(a,68,34435);break d}e=J[a+36>>2];t=f-u|0;J[d>>2]=J[e+16>>2]-(t+J[e+12>>2]|0);be(a);e=J[a+36>>2];if(!(J[a+292>>2]|(J[e+20>>2]-J[e+16>>2]|0)>249)){Rd(a);e=J[a+36>>2]}e:{if((u|0)!=J[e+12>>2])break e;A=0;n=0;p=0;w=0;if((v|0)!=J[a+40>>2])break e;while(1){f:{g:{B=J[e+16>>2];h=K[B|0];f=h-47|0;if(f)if((f|0)==15)break b;else break g;if(K[B+1|0]!=62)break f; +break b}if((h|0)==13|(h-9&255)>>>0<2)break f;if(h>>>0<32)break b}if(J[a+172>>2]==-1)break b;z=J[e+36>>2];J[i+148>>2]=-1;J[i+144>>2]=0;f=J[i+156>>2];if(!(J[a+292>>2]|(J[e+20>>2]-B|0)>249))Rd(a);h:{i:{j:{k:{l:{m:{l=wK(a,i+152|0);if(!l){if(J[a+172>>2]==-1?J[a+212>>2]:0)break i;J[a+84>>2]=68;J[i+80>>2]=34624;f=0;Hc(0,0,0,a,0,1,68,3,0,0,0,0,4607,i+80|0);J[a+12>>2]=0;if(!J[a+288>>2])break m;l=0;break h}j=J[a+352>>2];if(j){k=J[i+152>>2];h=l;e=f;q=e;n:{o:{if(!j|!m)break o;g=P(K[(e?e:m)|0],30);if(e){f=K[e| +0];if(f)while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[e+1|0];e=e+1|0;if(f)continue;break}g=((g<<5)+(g>>>3|0)|0)+58^g}f=K[m|0];if(f){e=m;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[e+1|0];e=e+1|0;if(f)continue;break}}g=(g<<5)+(g>>>3|0)^g;if(k){f=K[k|0];if(f){e=k;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[e+1|0];e=e+1|0;if(f)continue;break}}g=((g<<5)+(g>>>3|0)|0)+58^g}p:{if(!h)break p;f=K[h|0];if(!f)break p;e=h;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[e+1|0];e=e+1|0;if(f)continue; +break}}f=J[j>>2];e=(((g<<5)+(g>>>3|0)^g)>>>0)%M[j+4>>2]|0;if(!J[(f+P(e,24)|0)+20>>2]|!f)break o;x=f+P(e,24)|0;while(1){g=J[x+4>>2];q:{r:{if(!q){if((g|0)==(m|0))break r;f=m;if(!g)break q;while(1){e=K[f|0];if((e|0)!=K[g|0])break q;g=g+1|0;f=f+1|0;if(e)continue;break}break r}if(!g)break q;f=K[q|0];e=q;while(1){j=g;f=f&255;if((f|0)!=K[g|0])break q;g=g+1|0;if(f){e=e+1|0;f=K[e|0];if(f)continue}break}if(K[g|0]!=58)break q;g=j+2|0;f=m;while(1){e=K[f|0];if((e|0)!=K[g|0])break q;g=g+1|0;f=f+1|0;if(e)continue; +break}}g=J[x+8>>2];s:{if(!k){if((g|0)==(h|0))break s;if(!h)break q;f=h;if(!g)break q;while(1){e=K[f|0];if((e|0)!=K[g|0])break q;g=g+1|0;f=f+1|0;if(e)continue;break}break s}if(!h|!g)break q;f=K[k|0];e=k;while(1){j=g;f=f&255;if((f|0)!=K[g|0])break q;g=g+1|0;if(f){e=e+1|0;f=K[e|0];if(f)continue}break}if(K[g|0]!=58)break q;g=j+2|0;f=h;while(1){e=K[f|0];if((e|0)!=K[g|0])break q;g=g+1|0;f=f+1|0;if(e)continue;break}}if(J[x+12>>2])break q;e=J[x+16>>2];break n}x=J[x>>2];if(x)continue;break}}e=0}e=(e|0)!=0}else e= +0;be(a);if(K[J[J[a+36>>2]+16>>2]]==61){Zd(a);be(a);f=BK(a,i+148|0,i+144|0,e);t:{if(!e|!J[i+144>>2])break t;if(!f){f=0;break t}j=J[i+148>>2];if((j|0)<=0)break t;k=0;e=f;g=K[e|0];if((g|0)==32)while(1){k=k+1|0;g=K[e+1|0];e=e+1|0;if((g|0)==32)continue;break}u:{v:{while(1){h=g&255;if((h|0)!=32){if(!h)break v;g=K[e+1|0];e=e+1|0;continue}g=K[e+1|0];e=e+1|0;if((g|32)!=32)continue;break}h=Hl(f+k|0,(j-k|0)+1|0);k=h;if(!h){se(a,0);break t}while(1){e=k;k=e+1|0;g=K[e|0];if((g|0)==32)continue;break}k=h;while(1){j= +g&255;w:{if((j|0)!=32){if(!j)break u;e=e+1|0;j=g;break w}while(1){j=32;q=g&255;if((q|0)==32){g=K[e+1|0];e=e+1|0;continue}break}if(!q)continue}H[k|0]=j;k=k+1|0;g=K[e|0];continue}}if(!k)break t;e=j-k|0;J[i+148>>2]=e;cd(f,f+k|0,e+1|0);break t}H[k|0]=0;E=i,F=Yc(h),J[E+148>>2]=F;if((f|0)==(h|0))break t;kc[J[663199]](f);f=h}J[a+172>>2]=7;if(J[i+152>>2]!=J[a+312>>2])break h;e=0;if(!J[a+268>>2])break j;if(!Pg(l,13027))break j;e=Hl(f,J[i+148>>2]);if(A1(e)|(J[a+172>>2]==-1?J[a+212>>2]:0))break j;h=J[a>>2]; +if(h)break l;g=0;h=0;break k}if(J[a+172>>2]==-1?J[a+212>>2]:0)break i;J[a+84>>2]=41;J[i+128>>2]=l;f=0;Hc(0,0,0,a,0,1,41,3,l,0,0,0,32521,i+128|0);J[a+12>>2]=0;if(!J[a+288>>2])break m;l=0;break h}J[a+212>>2]=1;l=0;break h}g=J[h+84>>2];h=J[h+108>>2]==-554844497?J[h+124>>2]:0}k=J[a+4>>2];J[i+116>>2]=0;J[i+112>>2]=e;Hc(h,g,k,a,0,1,98,1,e,0,0,0,32844,i+112|0)}x:{if(!Pg(l,14980))break x;e=Hl(f,J[i+148>>2]);if(Pg(e,2769)){J[J[a+232>>2]>>2]=0;break x}if(Pg(e,13268)){J[J[a+232>>2]>>2]=1;break x}if(J[a+172>> +2]==-1?J[a+212>>2]:0)break x;h=J[a>>2];y:{if(!h){j=0;h=0;break y}j=J[h+84>>2];h=J[h+108>>2]==-554844497?J[h+124>>2]:0}g=J[a+4>>2];J[i+100>>2]=0;J[i+96>>2]=e;Hc(h,j,g,a,0,1,102,1,e,0,0,0,35412,i+96|0)}if(!e)break h;kc[J[663199]](e);break h}f=0;l=0}z:{if(!((u|0)==J[J[a+36>>2]+12>>2]&(v|0)==J[a+40>>2])){if(!f|!J[i+144>>2])break z;kc[J[663199]](f);break z}A:{B:{C:{D:{E:{if(!(!l|!f)){g=J[i+148>>2];if((g|0)<0){g=Tk(f);J[i+148>>2]=g}h=J[i+152>>2];e=J[a+316>>2];if(!(h|(e|0)!=(l|0))){j=te(J[a+296>>2],f,g); +if(!j){se(a,13694);if(!J[i+144>>2])break d;kc[J[663199]](f);break d}F:{G:{if(!K[j|0])break G;e=ru(j);H:{if(!e){if(J[a+172>>2]==-1?J[a+212>>2]:0)break H;J[a+84>>2]=99;J[i+68>>2]=0;J[i+72>>2]=0;J[i+64>>2]=j;Hc(0,0,0,a,0,3,99,2,j,0,0,0,36893,i- -64|0);J[a+356>>2]=0;break H}if(!J[e>>2])d1(a,33996,j,0);uk(e)}if((j|0)==J[y>>2]){if(J[a+312>>2]==(l|0))break F;Sn(a,200,34842,0,0);break F}if(J[i+148>>2]!=29)break G;if(!Pg(j,28593))break G;Sn(a,200,33560,0,0);break F}I:{if((n|0)<=0)break I;k=J[a+328>>2];g=J[a+ +336>>2];e=1;while(1){if(J[g+(k-(e<<1)<<2)>>2]){h=(e|0)==(n|0);e=e+1|0;if(!h)continue;break I}break}xK(a,0,l);break F}n=(($w(a,0,j)|0)>0)+n|0}if(J[i+144>>2])kc[J[663199]](f);J:{K:{L:{e=J[J[a+36>>2]+16>>2];switch(K[e|0]-9|0){case 0:case 1:case 4:case 23:break J;case 38:break L;case 53:break b;default:break K}}if(K[e+1|0]==62)break b}oe(a,65,32942);break b}be(a);e=J[a+36>>2];if((u|0)!=J[e+12>>2])break z;if((v|0)==J[a+40>>2])continue;break z}if((e|0)==(h|0)){j=te(J[a+296>>2],f,g);e=J[a+320>>2];M:{if(J[a+ +312>>2]==(l|0)){if((e|0)==(j|0))break M;Sn(a,200,36839,0,0);break M}if((e|0)==(j|0)){Sn(a,200,30606,0,0);break M}if(J[a+316>>2]==(l|0)){Sn(a,200,33513,0,0);break M}N:{if(J[i+148>>2]!=29)break N;if(!Pg(j,28593))break N;Sn(a,200,33560,0,0);break M}if(!(K[j|0]?j:0)){Sn(a,200,35113,l,0);break M}e=ru(j);O:{if(!e){Sn(a,99,36925,l,j);break O}if(!(J[e>>2]|!J[a+268>>2]))d1(a,34027,l,j);uk(e)}P:{if((n|0)<=0)break P;k=J[a+328>>2];g=J[a+336>>2];e=1;while(1){if(J[g+(k-(e<<1)<<2)>>2]!=(l|0)){h=(e|0)==(n|0);e=e+ +1|0;if(!h)continue;break P}break}xK(a,J[i+152>>2],l);break M}n=(($w(a,l,j)|0)>0)+n|0}if(J[i+144>>2])kc[J[663199]](f);Q:{R:{S:{e=J[J[a+36>>2]+16>>2];switch(K[e|0]-9|0){case 0:case 1:case 4:case 23:break Q;case 38:break S;case 53:break b;default:break R}}if(K[e+1|0]==62)break b}oe(a,65,32942);break b}be(a);e=J[a+36>>2];if((u|0)!=J[e+12>>2])break z;if((v|0)==J[a+40>>2])continue;break z}h=p+5|0;if((h|0)<=(s|0)?o:0)break B;g=J[a+300>>2];if(!g){e=kc[J[663195]](220)|0;if(!e)break E;J[a+300>>2]=e;g=kc[J[663195]](44)| +0;if(!g)break E;e=55;J[a+304>>2]=55;J[a+340>>2]=g;break C}e=J[a+304>>2];k=p+10|0;if((e|0)<(k|0)){e=kc[J[663200]](g,k<<3)|0;if(!e)break E;J[a+300>>2]=e;e=k<<1;g=kc[J[663200]](J[a+340>>2],(e|0)/5<<2)|0;if(!g)break E;J[a+304>>2]=e;J[a+340>>2]=g}if((e|0)>=0)break C;break D}e=1;if(!f)break A;e=0;if(K[J[i+148>>2]+f|0])break A;kc[J[663199]](f);e=0;break A}se(a,0)}e=0;if(K[J[i+148>>2]+f|0])break A;kc[J[663199]](f);e=0;break A}o=J[a+300>>2];s=e}g=J[i+144>>2];J[J[a+340>>2]+(w<<2)>>2]=g;k=(p<<2)+o|0;J[k>>2]= +l;e=J[i+152>>2];J[k+12>>2]=f;J[k+8>>2]=0;J[k+4>>2]=e;J[k+16>>2]=J[i+148>>2]+f;A=g?1:A;w=w+1|0;p=h;e=0}T:{if(J[a+292>>2])break T;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)>249)break T;Rd(a)}if(J[a+172>>2]==-1)break b;h=J[a+36>>2];if((u|0)!=J[h+12>>2]|(v|0)!=J[a+40>>2])break z;f=e;U:{V:{W:{e=J[h+16>>2];switch(K[e|0]-9|0){case 0:case 1:case 4:case 23:break U;case 38:break W;case 53:break b;default:break V}}if(K[e+1|0]==62)break b}oe(a,65,32942);break b}be(a);e=J[a+36>>2];if(!(J[e+36>>2]!=(z|0)|!(f&(!l& +J[e+16>>2]==(B|0))))){Xe(a,1,31866);break b}if(!(J[a+292>>2]|(J[e+20>>2]-J[e+16>>2]|0)>249)){Rd(a);e=J[a+36>>2]}if((u|0)!=J[e+12>>2])break z;if((v|0)==J[a+40>>2])continue}break}if(!A|(w|0)<=0)break e;e=0;g=3;while(1){X:{if(!J[J[a+340>>2]+(e<<2)>>2])break X;f=J[(g<<2)+o>>2];if(!f)break X;kc[J[663199]](f)}g=g+5|0;e=e+1|0;if((w|0)!=(e|0))continue;break}}if((v|0)!=J[a+40>>2]){oe(a,90,30475);break d}e=J[a+36>>2];J[e+32>>2]=D;J[e+28>>2]=r;J[e+16>>2]=J[e+12>>2]+t;if(J[a+12>>2]==1)continue}break}f=0;break a}z= +0;Y:{Z:{_:{d=J[a+348>>2];$:{if(!d)break $;q=Un(d,m,J[i+156>>2]);if(!q|J[q>>2]<=0)break $;l=0;while(1){t=q+P(l,20)|0;r=J[t+8>>2];f=J[t+12>>2];J[i+152>>2]=f;d=J[a+316>>2];aa:{if(!(f|(d|0)!=(r|0))){if((n|0)>0){h=J[a+328>>2];f=J[a+336>>2];e=1;while(1){if(!J[f+(h-(e<<1)<<2)>>2])break aa;d=(e|0)==(n|0);e=e+1|0;if(!d)continue;break}}f=J[y>>2];ba:{if(!J[a+312>>2])break ba;e=J[a+328>>2];while(1){d=e;f=0;if((e|0)<2)break ba;f=J[a+336>>2];e=e-2|0;if(J[f+(e<<2)>>2])continue;break}d=J[(f+(d<<2)|0)-4>>2];f=K[d| +0]?d:0}d=J[t+16>>2];if((f|0)==(d|0))break aa;n=(($w(a,0,d)|0)>0)+n|0;break aa}ca:{da:{ea:{if((d|0)!=(f|0)){e=0;if((p|0)>0)while(1){d=(e<<2)+o|0;if((r|0)==J[d>>2]&(f|0)==J[d+4>>2])break aa;e=e+5|0;if((p|0)>(e|0))continue;break}h=p+5|0;if((h|0)<=(s|0)?o:0)break ca;d=J[a+300>>2];if(d)break ea;d=kc[J[663195]](220)|0;if(!d)break _;J[a+300>>2]=d;d=kc[J[663195]](44)|0;if(!d)break _;s=55;J[a+304>>2]=55;J[a+340>>2]=d;break da}if((n|0)>0){h=J[a+328>>2];f=J[a+336>>2];e=1;while(1){if((r|0)==J[f+(h-(e<<1)<<2)>> +2])break aa;d=(e|0)==(n|0);e=e+1|0;if(!d)continue;break}}f=J[y>>2];fa:{if((r|0)==J[a+312>>2])break fa;e=J[a+328>>2];while(1){d=e;f=0;if((e|0)<2)break fa;f=J[a+336>>2];e=e-2|0;if((r|0)!=J[f+(e<<2)>>2])continue;break}d=J[(f+(d<<2)|0)-4>>2];f=d;if(r)break fa;f=K[d|0]?d:0}if((f|0)==J[q+16>>2])break aa;n=(($w(a,r,J[t+16>>2])|0)>0)+n|0;break aa}s=J[a+304>>2];e=p+10|0;if((s|0)<(e|0)){d=kc[J[663200]](d,e<<3)|0;if(!d)break _;J[a+300>>2]=d;s=e<<1;d=kc[J[663200]](J[a+340>>2],(s|0)/5<<2)|0;if(!d)break _;J[a+ +304>>2]=s;J[a+340>>2]=d}f=0;if((s|0)<0)break a}o=J[a+300>>2]}j=(p<<2)+o|0;J[j>>2]=r;g=J[i+152>>2];J[j+4>>2]=g;k=0;ga:{if(!g)break ga;if((g|0)!=J[a+312>>2]){e=J[a+328>>2];while(1){d=e;if((e|0)<2)break ga;f=J[a+336>>2];e=e-2|0;if((g|0)!=J[f+(e<<2)>>2])continue;break}d=(f+(d<<2)|0)-4|0}else d=y;k=J[d>>2]}J[(p+2<<2)+o>>2]=k;J[j+12>>2]=J[t+16>>2];J[j+16>>2]=J[t+20>>2];if(!(!J[t+24>>2]|J[a+28>>2]!=1))Um(a,538,31549,r,m);z=z+1|0;p=h}l=l+1|0;if((l|0)>2])continue;break}}if((p|0)>0){g=0;while(1){j=0;k= +(g<<2)+o|0;h=J[k+4>>2];if(h){ha:{ia:{if((h|0)!=J[a+312>>2]){e=J[a+328>>2];while(1){d=e;if((e|0)<2)break ia;f=J[a+336>>2];e=e-2|0;if((h|0)!=J[f+(e<<2)>>2])continue;break}d=(f+(d<<2)|0)-4|0}else d=y;j=J[d>>2];if(j)break ha}d=J[k>>2];if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){j=0;break ha}J[a+84>>2]=201;J[i+56>>2]=m;J[i+52>>2]=d;J[i+48>>2]=h;j=0;Hc(0,0,0,a,0,3,201,2,h,d,m,0,35872,i+48|0);J[a+356>>2]=0}J[k+8>>2]=j}ja:{if(!g)break ja;f=J[k>>2];e=0;ka:{if(!j)while(1){d=(e<<2)+o|0;if((f|0)==J[d>>2]){l=J[k+4>>2]; +if((l|0)==J[d+4>>2])break ka}e=e+5|0;if(g>>>0>e>>>0)continue;break ja}while(1){la:{d=(e<<2)+o|0;if((f|0)!=J[d>>2])break la;l=J[k+4>>2];if((l|0)==J[d+4>>2])break ka;if(J[d+8>>2]!=(j|0))break la;if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break ja;J[a+84>>2]=203;J[i+40>>2]=0;J[i+36>>2]=j;J[i+32>>2]=f;Hc(0,0,0,a,0,3,203,2,f,j,0,0,35751,i+32|0);J[a+356>>2]=0;break ja}J[i+24>>2]=0;J[i+20>>2]=j;J[i+16>>2]=f;Hc(0,0,0,0,0,3,203,2,f,j,0,0,35751,i+16|0);break ja}e=e+5|0;if(g>>>0>e>>>0)continue;break}break ja}xK(a, +l,f)}g=g+5|0;if((p|0)>(g|0))continue;break}}h=J[i+156>>2];if((h|0)==J[a+312>>2]){e=J[y>>2];break Z}e=J[a+328>>2];while(1){d=e;if((e|0)<2){e=0;break Z}f=J[a+336>>2];e=d-2|0;if((h|0)!=J[f+(e<<2)>>2])continue;break}e=J[(f+(d<<2)|0)-4>>2];if(h)break Z;e=K[e|0]?e:0;break Y}se(a,0);f=0;break a}if(e|!h)break Y;if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){e=0;break Y}J[a+84>>2]=201;e=0;J[i+8>>2]=0;J[i+4>>2]=m;J[i>>2]=h;Hc(0,0,0,a,0,3,201,2,h,m,0,0,35830,i);J[a+356>>2]=0}J[b>>2]=h;J[c>>2]=e;b=J[a>>2];ma:{if(!b)break ma; +c=J[b+116>>2];if(J[a+212>>2]|!c)break ma;b=J[a+4>>2];if((n|0)>0){kc[c|0](b,m,h,e,n,J[a+336>>2]+(J[a+328>>2]-(n<<1)<<2)|0,(p|0)/5|0,z,o);break ma}kc[c|0](b,m,h,e,0,0,(p|0)/5|0,z,o)}f=m;if(!A)break a;if((w|0)<=0)break a;e=0;g=3;while(1){na:{if(!J[J[a+340>>2]+(e<<2)>>2])break na;b=J[(g<<2)+o>>2];if(!b)break na;kc[J[663199]](b)}g=g+5|0;e=e+1|0;if((w|0)!=(e|0))continue;break}f=m}fc=i+160|0;return f}function ghb(a){a=a|0;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;a:{b:{c:{d:{e:{f:{g:{c=J[a+20>>2];switch(c-202|0){case 2:break c;case 1:break f;case 0:break g;default:break e}}m=kc[J[J[a+4>>2]>>2]](a,1,28)|0;J[a+440>>2]=m;J[m+8>>2]=0;J[m+4>>2]=293;J[m>>2]=294;X5(a);b=kc[J[J[a+4>>2]>>2]](a,1,1408)|0;d=b+256|0;J[a+332>>2]=d;c=Ac(b,0,256);while(1){H[e+d|0]=e;b=e|1;H[b+d|0]=b;b=e|2;H[b+d|0]=b;b=e|3;H[b+d|0]=b;b=e|4;H[b+d|0]=b;b=e|5;H[b+d|0]=b;b=e|6;H[b+d|0]=b;b=e|7;H[b+d|0]=b;e=e+8|0;if((e|0)!=256)continue;break}Ac(c+512|0,255,384);Ac(c+896|0,0,384);xc(c+ +1280|0,J[a+332>>2],128);J[m+12>>2]=0;b=W5(a);J[m+20>>2]=0;J[m+24>>2]=0;J[m+16>>2]=b;h:{if(!J[a+84>>2]){J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;break h}if(!J[a+64>>2]){J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0}if(J[a+68>>2]){b=J[a>>2];J[b+20>>2]=48;kc[J[b>>2]](a)}i:{if(J[a+120>>2]!=3){J[a+136>>2]=0;J[a+108>>2]=0;J[a+100>>2]=1;J[a+104>>2]=0;break i}if(J[a+136>>2]){J[a+104>>2]=1;break i}if(J[a+92>>2]){J[a+108>>2]=1;break i}J[a+100>>2]=1}if(J[a+100>>2]){b=kc[J[J[a+4>>2]>>2]](a,1,88)|0;J[a+480>>2]=b; +J[b+68>>2]=0;J[b+12>>2]=314;J[b+8>>2]=315;J[b>>2]=316;J[b+52>>2]=0;if(J[a+120>>2]>=5){b=J[a>>2];J[b+20>>2]=57;J[b+24>>2]=4;kc[J[J[a>>2]>>2]](a)}k=J[a+96>>2];if((k|0)>=257){b=J[a>>2];J[b+20>>2]=59;J[b+24>>2]=256;kc[J[J[a>>2]>>2]](a);k=J[a+96>>2]}j=J[a+120>>2];j:{if((j|0)>=2){b=j-1|0;c=b&-8;e=b&7;b=j-2>>>0<7;d=1;while(1){g=0;h=d;d=d+1|0;i=d;if(!b)while(1){i=P(P(P(P(P(P(P(P(d,i),d),d),d),d),d),d),d);g=g+8|0;if((c|0)!=(g|0))continue;break}g=0;if(e)while(1){i=P(d,i);g=g+1|0;if((e|0)!=(g|0))continue;break}if((i| +0)<=(k|0))continue;break}break j}h=(k|0)<=1?1:k;i=h+1|0}n=J[a+480>>2];c=1;if(h>>>0<=1){b=J[a>>2];J[b+24>>2]=i;J[b+20>>2]=58;kc[J[J[a>>2]>>2]](a)}k:{if((j|0)<=0)break k;f=n+32|0;l=j&3;d=0;l:{if(j>>>0<4){i=0;break l}e=j&-4;i=0;b=0;while(1){g=i<<2;J[g+f>>2]=h;J[f+(g|4)>>2]=h;J[f+(g|8)>>2]=h;J[f+(g|12)>>2]=h;i=i+4|0;c=P(P(P(P(c,h),h),h),h);b=b+4|0;if((e|0)!=(b|0))continue;break}}if(l)while(1){J[f+(i<<2)>>2]=h;i=i+1|0;c=P(c,h);d=d+1|0;if((l|0)!=(d|0))continue;break}l=j-1|0;m:{if(J[a+44>>2]!=2){b=J[f>> +2];g=b+1|0;d=P(g,(c|0)/(b|0)|0);if((k|0)<(d|0))break k;i=0;b=f;break m}e=n+36|0;b=J[e>>2];g=b+1|0;d=P(g,(c|0)/(b|0)|0);if((k|0)<(d|0))break k;i=0;b=e;while(1){c=d;J[b>>2]=g;if((i|0)!=(l|0)){i=i+1|0;b=f+(J[(i<<2)+54848>>2]<<2)|0;h=J[b>>2];g=h+1|0;d=P(g,(c|0)/(h|0)|0);if((k|0)>=(d|0))continue}i=0;b=e;d=J[b>>2];g=d+1|0;d=P(g,(c|0)/(d|0)|0);if((k|0)>=(d|0))continue;break}break k}while(1){c=d;J[b>>2]=g;if((i|0)!=(l|0)){i=i+1|0;b=f+(i<<2)|0;e=J[b>>2];g=e+1|0;d=P(g,(c|0)/(e|0)|0);if((k|0)>=(d|0))continue}i= +0;b=f;e=J[b>>2];g=e+1|0;d=P(g,(c|0)/(e|0)|0);if((k|0)>=(d|0))continue;break}}b=J[a+120>>2];e=J[a>>2];J[e+24>>2]=c;n:{if((b|0)==3){J[e+28>>2]=J[n+32>>2];J[e+32>>2]=J[n+36>>2];J[e+36>>2]=J[n+40>>2];i=96;b=e;break n}i=97;b=J[a>>2]}J[e+20>>2]=i;kc[J[b+4>>2]](a,1);t=kc[J[J[a+4>>2]+8>>2]](a,1,c,J[a+120>>2])|0;d=J[a+120>>2];if((d|0)>0){e=c;while(1){f=e;b=s<<2;r=J[(b+n|0)+32>>2];e=(e|0)/(r|0)|0;if(!((r|0)<=0|(e|0)<=0)){o=b+t|0;k=r-1|0;j=k>>>1|0;g=e&-4;u=e&3;p=0;l=e>>>0<4;while(1){i=P(e,p);if((i|0)<(c|0)){q= +(j+P(p,255)|0)/(k|0)|0;while(1){b=0;d=0;h=0;if(!l)while(1){H[(J[o>>2]+i|0)+d|0]=q;H[(J[o>>2]+i|0)+(d|1)|0]=q;H[(J[o>>2]+i|0)+(d|2)|0]=q;H[(J[o>>2]+i|0)+(d|3)|0]=q;d=d+4|0;h=h+4|0;if((g|0)!=(h|0))continue;break}if(u)while(1){H[(J[o>>2]+i|0)+d|0]=q;d=d+1|0;b=b+1|0;if((u|0)!=(b|0))continue;break}i=f+i|0;if((i|0)<(c|0))continue;break}}p=p+1|0;if((r|0)!=(p|0))continue;break}d=J[a+120>>2]}s=s+1|0;if((s|0)<(d|0))continue;break}}J[n+20>>2]=c;J[n+16>>2]=t;t5(a);if(!(J[a+88>>2]!=2|J[a+120>>2]<=0)){c=(J[a+112>> +2]<<1)+4|0;b=J[a+480>>2];d=0;while(1){v=b+(d<<2)|0,w=kc[J[J[a+4>>2]+4>>2]](a,1,c)|0,J[v+68>>2]=w;d=d+1|0;if((d|0)>2])continue;break}}J[m+20>>2]=J[a+480>>2]}if(!(J[a+108>>2]|J[a+104>>2]))break h;d=0;f=kc[J[J[a+4>>2]>>2]](a,1,44)|0;J[a+480>>2]=f;J[f+40>>2]=0;J[f+32>>2]=0;J[f+12>>2]=322;J[f>>2]=323;if(J[a+120>>2]!=3){b=J[a>>2];J[b+20>>2]=48;kc[J[b>>2]](a)}v=f,w=kc[J[J[a+4>>2]>>2]](a,1,128)|0,J[v+24>>2]=w;while(1){b=kc[J[J[a+4>>2]+4>>2]](a,1,4096)|0;c=d<<2;J[c+J[f+24>>2]>>2]=b;b=kc[J[J[a+4>> +2]+4>>2]](a,1,4096)|0;J[J[f+24>>2]+(c|4)>>2]=b;d=d+2|0;if((d|0)!=32)continue;break}J[f+28>>2]=1;o:{if(J[a+108>>2]){d=8;c=58;e=J[a+96>>2];p:{if((e|0)>=8){if(e>>>0<257)break p;d=256;c=59}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=c;kc[J[J[a>>2]>>2]](a)}b=kc[J[J[a+4>>2]+8>>2]](a,1,e,3)|0;J[f+20>>2]=e;J[f+16>>2]=b;break o}J[f+16>>2]=0}if(J[a+88>>2]){J[a+88>>2]=2;v=f,w=kc[J[J[a+4>>2]+4>>2]](a,1,P(J[a+112>>2],6)+12|0)|0,J[v+32>>2]=w;s5(a)}J[m+24>>2]=J[a+480>>2]}if(!J[a+68>>2]){q:{if(J[m+16>>2]){g=0;c=kc[J[J[a+4>> +2]>>2]](a,1,48)|0;J[a+472>>2]=c;J[c+8>>2]=0;J[c>>2]=329;b=P(J[a+120>>2],J[a+112>>2]);J[c+40>>2]=b;r:{if(J[a+316>>2]==2){J[c+12>>2]=330;J[c+4>>2]=331;g=kc[J[J[a+4>>2]+4>>2]](a,1,b)|0;break r}J[c+12>>2]=332;J[c+4>>2]=333}J[c+32>>2]=g;b=J[a+472>>2];v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+20>>2]=w;v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+24>>2]=w;d=kc[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+28>>2]=d;e=J[b+24>>2];c=J[b+20>>2];b=J[b+16>>2];g=0;h=-128;while(1){f= +g<<2;J[f+b>>2]=P(h,91881)+32768>>16;J[c+f>>2]=P(h,116130)+32768>>16;J[e+f>>2]=P(h,-46802);J[d+f>>2]=P(h,-22554)+32768;h=h+1|0;g=g+1|0;if((g|0)!=256)continue;break}break q}c=kc[J[J[a+4>>2]>>2]](a,1,24)|0;J[a+476>>2]=c;J[c>>2]=334;s:{t:{u:switch(J[a+40>>2]-1|0){case 0:if(J[a+36>>2]!=1)break t;break s;case 1:case 2:if(J[a+36>>2]!=3)break t;break s;case 3:case 4:if(J[a+36>>2]!=4)break t;break s;default:break u}if(J[a+36>>2]>0)break s}b=J[a>>2];J[b+20>>2]=11;kc[J[b>>2]](a)}v:{w:{x:{y:{z:{b=J[a+44>>2]; +switch(b-1|0){case 3:break x;case 1:break y;case 0:break z;default:break w}}J[a+120>>2]=1;A:switch(J[a+40>>2]-1|0){case 0:case 2:J[c+4>>2]=335;c=J[a+36>>2];if((c|0)<2)break v;b=c-1|0;d=b&7;e=J[a+216>>2];h=1;if(c-2>>>0>=7){b=b&-8;c=0;while(1){f=e+P(h,88)|0;J[f+52>>2]=0;J[f+140>>2]=0;J[f+228>>2]=0;J[f+316>>2]=0;J[f+404>>2]=0;J[f+492>>2]=0;J[f+580>>2]=0;J[f+668>>2]=0;h=h+8|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}if(!d)break v;g=0;while(1){J[(e+P(h,88)|0)+52>>2]=0;h=h+1|0;g=g+1|0;if((d|0)!=(g|0))continue; +break}break v;default:break A}b=J[a>>2];J[b+20>>2]=28;kc[J[b>>2]](a);break v}J[a+120>>2]=3;B:switch(J[a+40>>2]-1|0){case 2:J[c+4>>2]=336;b=J[a+476>>2];v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+8>>2]=w;v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+12>>2]=w;v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;d=kc[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+20>>2]=d;e=J[b+16>>2];c=J[b+12>>2];b=J[b+8>>2];h=0;g=-128;while(1){f=h<<2;J[f+b>>2]=P(g,91881)+32768>>16;J[c+f>>2]=P(g,116130)+32768>>16;J[e+f>>2]=P(g,-46802);J[d+ +f>>2]=P(g,-22554)+32768;g=g+1|0;h=h+1|0;if((h|0)!=256)continue;break}break v;case 0:J[c+4>>2]=337;break v;case 1:J[c+4>>2]=338;break v;default:break B}b=J[a>>2];J[b+20>>2]=28;kc[J[b>>2]](a);break v}J[a+120>>2]=4;C:switch(J[a+40>>2]-4|0){case 1:J[c+4>>2]=339;b=J[a+476>>2];v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+8>>2]=w;v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+12>>2]=w;v=b,w=kc[J[J[a+4>>2]>>2]](a,1,1024)|0,J[v+16>>2]=w;d=kc[J[J[a+4>>2]>>2]](a,1,1024)|0;J[b+20>>2]=d;e=J[b+16>>2];c=J[b+12>>2];b=J[b+ +8>>2];h=0;g=-128;while(1){f=h<<2;J[f+b>>2]=P(g,91881)+32768>>16;J[c+f>>2]=P(g,116130)+32768>>16;J[e+f>>2]=P(g,-46802);J[d+f>>2]=P(g,-22554)+32768;g=g+1|0;h=h+1|0;if((h|0)!=256)continue;break}break v;case 0:J[c+4>>2]=338;break v;default:break C}b=J[a>>2];J[b+20>>2]=28;kc[J[b>>2]](a);break v}if((b|0)==J[a+40>>2]){J[a+120>>2]=J[a+36>>2];J[c+4>>2]=338;break v}b=J[a>>2];J[b+20>>2]=28;kc[J[b>>2]](a)}J[a+124>>2]=J[a+84>>2]?1:J[a+120>>2];d=0;g=kc[J[J[a+4>>2]>>2]](a,1,160)|0;J[a+472>>2]=g;J[g+8>>2]=0;J[g+ +4>>2]=340;J[g>>2]=341;if(J[a+304>>2]){b=J[a>>2];J[b+20>>2]=26;kc[J[b>>2]](a)}if(J[a+36>>2]>0){k=J[a+216>>2];while(1){l=J[a+316>>2];f=J[a+312>>2];e=J[a+320>>2];c=J[k+36>>2];b=J[k+8>>2];j=g+(d<<2)|0;h=(P(J[k+40>>2],J[k+12>>2])|0)/J[a+324>>2]|0;J[j+100>>2]=h;c=(P(b,c)|0)/(e|0)|0;D:{if(!J[k+52>>2]){J[j+52>>2]=342;break D}if(!((c|0)!=(f|0)|(h|0)!=(l|0))){J[j+52>>2]=343;break D}b=(f|0)!=c<<1;E:{if(!(b|(h|0)!=(l|0))){J[j+52>>2]=344;break E}if(!((l|0)!=h<<1|b)){J[j+52>>2]=345;break E}F:{e=(f|0)/(c|0)|0;if(f- +P(e,c)|0)break F;c=(l|0)/(h|0)|0;if(l-P(c,h)|0)break F;J[j+52>>2]=346;b=d+g|0;H[b+150|0]=c;H[b+140|0]=e;break E}b=J[a>>2];J[b+20>>2]=39;kc[J[b>>2]](a)}c=J[a+312>>2];b=(c+J[a+112>>2]|0)-1|0;v=j,w=kc[J[J[a+4>>2]+8>>2]](a,1,b-((b|0)%(c|0)|0)|0,J[a+316>>2])|0,J[v+12>>2]=w}k=k+88|0;d=d+1|0;if((d|0)>2])continue;break}}}b=J[a+108>>2];f=kc[J[J[a+4>>2]>>2]](a,1,28)|0;J[a+452>>2]=f;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=347;if(J[a+84>>2])G:{d=J[a+316>>2];J[f+16>>2]=d;e=P(J[a+120>>2],J[a+112>>2]);c=J[a+4>> +2];if(b){b=(d+J[a+116>>2]|0)-1|0;v=f,w=kc[J[c+16>>2]](a,1,0,e,b-((b|0)%(d|0)|0)|0,J[f+16>>2])|0,J[v+8>>2]=w;break G}v=f,w=kc[J[c+8>>2]](a,1,e,d)|0,J[v+12>>2]=w}}e=0;c=kc[J[J[a+4>>2]>>2]](a,1,84)|0;J[a+468>>2]=c;J[c>>2]=351;if(J[a+36>>2]>0){d=J[a+216>>2];while(1){b=kc[J[J[a+4>>2]>>2]](a,1,256)|0;J[d+84>>2]=b;Ac(b,0,256);J[(c+(e<<2)|0)+44>>2]=-1;d=d+88|0;e=e+1|0;if((e|0)>2])continue;break}}H:{if(J[a+228>>2]){c=0;b=kc[J[J[a+4>>2]>>2]](a,1,188)|0;J[a+464>>2]=b;J[b>>2]=383;Ac(b+56|0,0,128);H[b+ +184|0]=113;I:{if(!J[a+224>>2])break I;b=kc[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<8)|0;J[a+160>>2]=b;if(J[a+36>>2]<=0)break I;while(1){b=Ac(b,255,256)+256|0;c=c+1|0;if((c|0)>2])continue;break}}break H}c=0;e=kc[J[J[a+4>>2]>>2]](a,1,216)|0;J[a+464>>2]=e;J[e>>2]=389;J:{if(!J[a+224>>2]){J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;b=e- -64|0;J[b>>2]=0;J[b+4>>2]=0;break J}b=kc[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<8)|0;J[a+160>>2]=b;if(J[a+36>>2]>0)while(1){b=Ac(b,255,256)+ +256|0;c=c+1|0;if((c|0)>2])continue;break}J[e+52>>2]=0;J[e+56>>2]=0;J[e+44>>2]=0;J[e+48>>2]=0}}b=J[J[a+456>>2]+16>>2]?1:J[a+64>>2]!=0;e=0;f=kc[J[J[a+4>>2]>>2]](a,1,116)|0;J[a+448>>2]=f;J[f+112>>2]=0;J[f+8>>2]=396;J[f>>2]=397;K:{if(b){if(J[a+36>>2]>0){d=J[a+216>>2];while(1){c=J[d+8>>2];b=(c+J[d+28>>2]|0)-1|0;h=b-((b|0)%(c|0)|0)|0;c=J[d+12>>2];b=(c+J[d+32>>2]|0)-1|0;v=f+(e<<2)|0,w=kc[J[J[a+4>>2]+20>>2]](a,1,1,h,b-((b|0)%(c|0)|0)|0,J[a+224>>2]?P(c,3):c)|0,J[v+72>>2]=w;d=d+88|0;e=e+1|0;if((e|0)< +J[a+36>>2])continue;break}}J[f+12>>2]=398;J[f+4>>2]=399;J[f+16>>2]=f+72;break K}b=kc[J[J[a+4>>2]+4>>2]](a,1,1280)|0;J[f+32>>2]=b;J[f+12>>2]=400;J[f+4>>2]=401;J[f+68>>2]=b+1152;J[f- -64>>2]=b+1024;J[f+60>>2]=b+896;J[f+56>>2]=b+768;J[f+52>>2]=b+640;J[f+48>>2]=b+512;J[f+44>>2]=b+384;J[f+40>>2]=b+256;J[f+36>>2]=b+128;J[f+16>>2]=0}if(!J[a+68>>2]){e=0;g=kc[J[J[a+4>>2]>>2]](a,1,80)|0;J[a+444>>2]=g;J[g>>2]=299;d=J[a+324>>2];L:{if(J[J[a+472>>2]+8>>2]){if((d|0)<=1){b=J[a>>2];J[b+20>>2]=48;kc[J[b>>2]](a);d= +J[a+324>>2]}j=J[a+444>>2];b=kc[J[J[a+4>>2]>>2]](a,1,J[a+36>>2]<<3)|0;J[j+56>>2]=b;c=J[a+36>>2];J[j+60>>2]=b+(c<<2);if((c|0)>0){l=d+4|0;b=J[a+216>>2];while(1){h=(P(J[b+40>>2],J[b+12>>2])|0)/J[a+324>>2]|0;f=P(h,l);c=kc[J[J[a+4>>2]>>2]](a,1,f<<3)|0;d=e<<2;c=c+(h<<2)|0;J[d+J[j+56>>2]>>2]=c;J[d+J[j+60>>2]>>2]=c+(f<<2);b=b+88|0;c=J[a+36>>2];e=e+1|0;if((c|0)>(e|0))continue;break}}d=J[a+324>>2]+2|0;break L}c=J[a+36>>2]}if((c|0)>0){b=J[a+216>>2];e=0;while(1){v=g+(e<<2)|0,w=kc[J[J[a+4>>2]+8>>2]](a,1,P(J[b+ +36>>2],J[b+28>>2]),P((P(J[b+40>>2],J[b+12>>2])|0)/J[a+324>>2]|0,d))|0,J[v+8>>2]=w;b=b+88|0;e=e+1|0;if((e|0)>2])continue;break}}}kc[J[J[a+4>>2]+24>>2]](a);kc[J[J[a+456>>2]+8>>2]](a);d=J[a+8>>2];if(!(!J[J[a+456>>2]+16>>2]|(J[a+64>>2]|!d))){c=J[a+224>>2];e=J[a+36>>2];J[d+4>>2]=0;b=J[a+328>>2];J[d+12>>2]=0;J[d+8>>2]=P(b,c?P(e,3)+2|0:e);J[d+16>>2]=J[a+108>>2]?3:2;J[m+12>>2]=J[m+12>>2]+1}b=207;if(J[a+64>>2])break b;J[a+20>>2]=203}M:{if(!J[J[a+456>>2]+16>>2])break M;e=J[a+8>>2];while(1){if(e)kc[J[e>> +2]](a);N:{b=kc[J[J[a+456>>2]>>2]](a)|0;switch(b|0){case 0:break a;case 2:break M;default:break N}}e=J[a+8>>2];if(!e|(b&-3)!=1)continue;b=J[e+4>>2]+1|0;J[e+4>>2]=b;c=b;b=J[e+8>>2];if((c|0)<(b|0))continue;J[e+8>>2]=b+J[a+328>>2];continue}}J[a+152>>2]=J[a+144>>2];break d}b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=21;kc[J[J[a>>2]>>2]](a)}if(J[a+20>>2]==204)break c;kc[J[J[a+440>>2]>>2]](a);J[a+20>>2]=204;J[a+140>>2]=0}if(J[J[a+440>>2]+8>>2]){d=a+140|0;e=J[a+140>>2];while(1){b=J[a+116>>2];if(b>>>0>e>>>0){c=J[a+ +8>>2];if(c){J[c+8>>2]=b;J[c+4>>2]=e;kc[J[c>>2]](a);e=J[a+140>>2]}b=0;kc[J[J[a+444>>2]+4>>2]](a,0,d,0);c=e;e=J[a+140>>2];if((c|0)!=(e|0))continue;break a}kc[J[J[a+440>>2]+4>>2]](a);kc[J[J[a+440>>2]>>2]](a);e=0;J[a+140>>2]=0;if(J[J[a+440>>2]+8>>2])continue;break}}b=J[a+68>>2]?206:205}J[a+20>>2]=b;b=1}return b|0}function u5(a,b){var c=0,d=Q(0),e=Q(0),f=Q(0),g=0,h=Q(0),i=0,j=Q(0),k=0,l=Q(0),m=0,n=0,o=Q(0),p=0,q=0,r=Q(0),s=0,t=0,u=0,v=Q(0),w=Q(0),x=Q(0),y=Q(0),z=0,A=Q(0),C=Q(0),D=Q(0),E=Q(0),F=0,G=Q(0), +I=Q(0),L=Q(0),M=Q(0),O=Q(0),S=Q(0),T=Q(0),U=Q(0);m=fc-48|0;fc=m;i=4;J[a+2928>>2]=4;a:{b:{if(!b)break b;c=fc-32|0;fc=c;J[c+20>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;H[c+28|0]=0;b=c+12|0;J[c+24>>2]=b;c:{d:{e:{k=J[a+212>>2];t=a+208|0;i=J[t>>2];g=k-i|0;q=(g|0)/12|0;if(q>>>0>=357913942){J[699344]=0;$(2358,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;B()}J[699344]=0;b=_(4,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;J[c+16>>2]=b;J[c+12>>2]=b;J[699344]=0;J[c+20>>2]=b+P(q,12);k=ha(2265,c+20|0,i|0,k|0, +b|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1)break c;k=Z()|0;J[c+16>>2]=b;break d}k=Z()|0}cn(c+24|0);ba(k|0);B()}J[c+16>>2]=k;b=J[c+12>>2];k=J[b+36>>2];h=N[k+28>>2];i=J[b>>2];l=N[i+28>>2];f=N[i+12>>2];g=J[b+12>>2];d=N[g+28>>2];v=N[k+12>>2];w=N[k+4>>2];x=N[g+4>>2];y=N[i+4>>2];r=Q(N[i+24>>2]+N[k>>2]);N[g+8>>2]=Q(Q(Q(Q(Q(Q(N[i+8>>2]+N[g>>2])*Q(6))-Q(N[i>>2]*Q(4)))-Q(r+r))+Q(Q(N[k+8>>2]+N[g+24>>2])*Q(3)))-N[k+24>>2])*Q(.1111111119389534);l=Q(l+w);N[g+12>>2]=Q(Q(Q(Q(Q(Q(f+x)*Q(6))-Q(y*Q(4)))-Q(l+l))+Q(Q(v+ +d)*Q(3)))-h)*Q(.1111111119389534);k=J[b+36>>2];h=N[k+20>>2];l=N[k+28>>2];i=J[b>>2];f=N[i+28>>2];g=J[b+12>>2];d=N[g+28>>2];v=N[i+20>>2];w=N[k+4>>2];x=N[g+4>>2];y=N[i+4>>2];r=Q(N[i>>2]+N[k+24>>2]);N[g+16>>2]=Q(Q(Q(Q(Q(Q(N[i+16>>2]+N[g+24>>2])*Q(6))-Q(N[i+24>>2]*Q(4)))-Q(r+r))+Q(Q(N[k+16>>2]+N[g>>2])*Q(3)))-N[k>>2])*Q(.1111111119389534);l=Q(y+l);N[g+20>>2]=Q(Q(Q(Q(Q(Q(v+d)*Q(6))-Q(f*Q(4)))-Q(l+l))+Q(Q(h+x)*Q(3)))-w)*Q(.1111111119389534);k=J[b>>2];h=N[k+28>>2];i=J[b+36>>2];l=N[i+28>>2];f=N[i+12>>2];g= +J[b+24>>2];d=N[g+28>>2];v=N[k+12>>2];w=N[k+4>>2];x=N[g+4>>2];y=N[i+4>>2];r=Q(N[i+24>>2]+N[k>>2]);N[g+8>>2]=Q(Q(Q(Q(Q(Q(N[i+8>>2]+N[g>>2])*Q(6))-Q(N[i>>2]*Q(4)))-Q(r+r))+Q(Q(N[k+8>>2]+N[g+24>>2])*Q(3)))-N[k+24>>2])*Q(.1111111119389534);l=Q(l+w);N[g+12>>2]=Q(Q(Q(Q(Q(Q(f+x)*Q(6))-Q(y*Q(4)))-Q(l+l))+Q(Q(v+d)*Q(3)))-h)*Q(.1111111119389534);k=J[b>>2];h=N[k+20>>2];l=N[k+28>>2];i=J[b+36>>2];f=N[i+28>>2];g=J[b+24>>2];d=N[g+28>>2];v=N[i+20>>2];w=N[k+4>>2];x=N[g+4>>2];y=N[i+4>>2];r=Q(N[i>>2]+N[k+24>>2]);N[g+ +16>>2]=Q(Q(Q(Q(Q(Q(N[i+16>>2]+N[g+24>>2])*Q(6))-Q(N[i+24>>2]*Q(4)))-Q(r+r))+Q(Q(N[k+16>>2]+N[g>>2])*Q(3)))-N[k>>2])*Q(.1111111119389534);l=Q(y+l);N[g+20>>2]=Q(Q(Q(Q(Q(Q(v+d)*Q(6))-Q(f*Q(4)))-Q(l+l))+Q(Q(h+x)*Q(3)))-w)*Q(.1111111119389534);f:{g:{if((t|0)!=(c+12|0)){J[699344]=0;ca(2474,t|0,b|0,J[c+16>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break g}i=J[c+12>>2];if(i){b=i;k=J[c+16>>2];if((b|0)!=(k|0)){while(1){b=k-12|0;g=J[b>>2];if(g){J[k-8>>2]=g;uc(g)}k=b;if((b|0)!=(i|0))continue;break}b=J[c+12>>2]}J[c+ +16>>2]=i;uc(b)}fc=c+32|0;break f}a=Z()|0;jj(c+12|0);ba(a|0);B()}i=J[a+2928>>2];if(i)break b;c=J[a+208>>2];break a}c=J[a+208>>2];while(1){h=N[(n<<2)+349320>>2];k=J[P(n,12)+c>>2];b=0;while(1){g=k+(b<<3)|0;l=N[(b<<2)+349320>>2];j=Q(j+Q(Q(h*N[g+4>>2])*l));e=Q(e+Q(Q(h*N[g>>2])*l));b=b+1|0;if((i|0)!=(b|0))continue;break}n=n+1|0;if((i|0)!=(n|0))continue;break}}N[a+2944>>2]=j;N[a+2940>>2]=j;N[a+2936>>2]=e;N[a+2932>>2]=e;h=e;b=J[c>>2];f=N[b>>2];if(f>e){N[a+2936>>2]=f;h=f}l=j;d=N[b+4>>2];if(j> +2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+8>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+12>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+16>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+20>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+24>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+28>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}b=J[c+12>>2];f=N[b>>2];if(f>h){N[a+2936>> +2]=f;h=f}d=N[b+4>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+8>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+12>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+16>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+20>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+24>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+28>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j= +d}b=J[c+24>>2];f=N[b>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+4>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+8>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+12>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+16>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+20>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+24>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+28>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+ +2932>>2]=f;e=f}if(d>2]=d;j=d}b=J[c+36>>2];f=N[b>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+4>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+8>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+12>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}f=N[b+16>>2];if(f>h){N[a+2936>>2]=f;h=f}d=N[b+20>>2];if(d>l){N[a+2944>>2]=d;l=d}if(e>f){N[a+2932>>2]=f;e=f}if(d>2]=d;j=d}d=h;h=N[b+24>>2];if(d>2]=h;d=l;l=N[b+ +28>>2];if(d>2]=l;if(e>h)N[a+2932>>2]=h;if(j>l)N[a+2940>>2]=l;h:{i:{j:{k:{l:{m:{e=Q(N[a+336>>2]-N[a+332>>2]);j=Q(N[a+344>>2]-N[a+340>>2]);e=e>j?e:j;n:{if(Q(R(e))>2]=1;J[m+32>>2]=0;J[m+24>>2]=0;J[m+28>>2]=0;break m}J[a+2948>>2]=b;J[m+32>>2]=0;J[m+24>>2]=0;J[m+28>>2]=0;if(b>>>0<1073741824)break m;J[699344]=0;$(2268,m+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;break i}J[699344]=0;k=b<<2;n=_(4,k|0)|0;i=J[699344];J[699344]= +0;if((i|0)!=1)break k}b=Z()|0;a=J[m+24>>2];if(!a)break j;break h}J[m+24>>2]=n;i=k+n|0;J[m+32>>2]=i;Ac(n,0,k);J[699344]=0;J[m+28>>2]=i;i=ga(2354,m+36|0,b|0,m+24|0)|0;b=J[699344];J[699344]=0;o:{p:{q:{if((b|0)!=1){k=J[a+2916>>2];if(k){b=k;n=J[a+2920>>2];if((b|0)!=(n|0)){while(1){b=n-12|0;c=J[b>>2];if(c){J[n-8>>2]=c;uc(c)}n=b;if((b|0)!=(k|0))continue;break}b=J[a+2916>>2]}J[a+2920>>2]=k;uc(b);J[a+2924>>2]=0;J[a+2916>>2]=0;J[a+2920>>2]=0}J[a+2916>>2]=J[i>>2];J[a+2920>>2]=J[i+4>>2];J[a+2924>>2]=J[i+8>>2]; +J[i+8>>2]=0;J[i>>2]=0;J[i+4>>2]=0;b=J[m+24>>2];if(b){J[m+28>>2]=b;uc(b)}c=J[a+2948>>2];J[m+32>>2]=0;J[m+24>>2]=0;J[m+28>>2]=0;b=c+1|0;if(b){r:{s:{if(b>>>0>=536870912){J[699344]=0;$(2355,m+24|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i;break s}J[699344]=0;n=b<<3;b=_(4,n|0)|0;k=J[699344];J[699344]=0;if((k|0)!=1)break r}b=Z()|0;a=J[m+24>>2];if(!a)break j;J[m+28>>2]=a;uc(a);break j}J[m+24>>2]=b;k=b+n|0;J[m+32>>2]=k;Ac(b,0,n);J[m+28>>2]=k;if(!c)break p}E=Q(Q(1)/Q(c>>>0));L=Q(E*Q(.5));t:{while(1){J[m+ +20>>2]=0;J[m+12>>2]=0;J[m+16>>2]=0;u:{b=c+1|0;if(!b)break u;if(b>>>0>=536870912){J[699344]=0;$(2355,m+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i;b=Z()|0;a=J[m+12>>2];if(!a)break t;J[m+16>>2]=a;uc(a);break t}J[699344]=0;n=b<<3;b=_(4,n|0)|0;k=J[699344];J[699344]=0;if((k|0)!=1){J[m+12>>2]=b;k=b+n|0;J[m+20>>2]=k;Ac(b,0,n);J[m+16>>2]=k;break u}b=Z()|0;break t}f=Q(E+C);v=Q(f*Q(f*f));e=Q(L+C);w=Q(e*Q(e*e));j=Q(Q(1)-f);x=Q(j*Q(j*j));h=Q(f*Q(3));y=Q(j*Q(j*h));r=Q(j*Q(f*h));j=Q(Q(1)-e);O=Q(j*Q(j*j)); +h=Q(e*Q(3));S=Q(j*Q(j*h));T=Q(j*Q(e*h));M=Q(Q(1)-C);d=Q(0);t=0;while(1){v:{if(!(t?F:0)){i=J[a+2928>>2];w:{if(!i){j=Q(0);h=Q(0);break w}e=Q(L+d);l=Q(e*Q(e*e));j=Q(Q(1)-e);o=Q(j*Q(j*j));h=Q(e*Q(3));A=Q(j*Q(j*h));D=Q(j*Q(e*h));k=J[a+208>>2];j=Q(0);g=0;h=Q(0);while(1){q=J[k+P(g,12)>>2];b=0;while(1){n=q+(b<<3)|0;e=O;x:{y:switch(g-1|0){case 0:e=S;break x;case 1:e=T;break x;case 2:break y;default:break x}e=w}G=Q(e*N[n>>2]);I=Q(e*N[n+4>>2]);e=o;z:{A:switch(b-1|0){case 0:e=A;break z;case 1:e=D;break z;case 2:break A; +default:break z}e=l}h=Q(h+Q(I*e));j=Q(j+Q(G*e));b=b+1|0;if((i|0)!=(b|0))continue;break}g=g+1|0;if((i|0)!=(g|0))continue;break}}e=N[a+2940>>2];l=Q(h-e);h=Q(c-1|0);e=Q(Q(l*h)/Q(N[a+2944>>2]-e));B:{if(Q(R(e))>2];e=Q(Q(Q(j-e)*h)/Q(N[a+2936>>2]-e));if(Q(R(e))>2]+(t<<3)|0;n=J[b+4>>2];i=J[a+2928>>2];k=J[b>>2]}l=Q(E+d);C:{if(!i){j=Q(0);h=Q(0);break C}e=Q(Q(1)-l);o=Q(e*Q(e*e));j=Q(l*Q(3));A= +Q(e*Q(e*j));D=Q(e*Q(l*j));G=Q(l*Q(l*l));u=J[a+208>>2];j=Q(0);g=0;h=Q(0);while(1){s=J[u+P(g,12)>>2];b=0;while(1){q=s+(b<<3)|0;e=x;D:{E:switch(g-1|0){case 0:e=y;break D;case 1:e=r;break D;case 2:break E;default:break D}e=v}I=Q(e*N[q>>2]);U=Q(e*N[q+4>>2]);e=o;F:{G:switch(b-1|0){case 0:e=A;break F;case 1:e=D;break F;case 2:break G;default:break F}e=G}h=Q(h+Q(U*e));j=Q(j+Q(I*e));b=b+1|0;if((i|0)!=(b|0))continue;break}g=g+1|0;if((i|0)!=(g|0))continue;break}}o=N[a+2936>>2];e=N[a+2932>>2];t=t+1|0;i=J[m+12>> +2]+(t<<3)|0;D=h;h=N[a+2940>>2];A=Q(c-1|0);h=Q(Q(Q(D-h)*A)/Q(N[a+2944>>2]-h));H:{if(Q(R(h))>2]=b;c=i;e=Q(Q(Q(j-e)*A)/Q(o-e));I:{if(Q(R(e))>2]=i;e=Q(M*d);s=J[a+220>>2];g=J[s+12>>2];q=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);j=Q(e*Q(q>>>24>>>0));J:{if(Q(R(j))>>0>=255?255:c;p=(c|0)<0;j=Q(C*d);u=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);h=Q(j*Q(u>>> +24>>>0));K:{if(Q(R(h))=0?c>>>0>=255?255:c:0)+(p?0:z)|0;p=p>>>0>=255?255:p;d=Q(Q(1)-d);h=Q(C*d);g=J[s>>2];s=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);o=Q(h*Q(s>>>24>>>0));L:{if(Q(R(o))=0?c>>>0>=255?255:c:0)|0;c=p>>>0<255;c=c?p:255;d=Q(M*d);z=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);o=Q(d*Q(z>>>24>>>0));M:{if(Q(R(o))=0?g>>>0>= +255?255:g:0)|0;g=(g>>>0>=255?255:g)<<24;o=Q(e*Q((q>>>16&255)>>>0));N:{if(Q(R(o))=0?c>>>0>=255?255:c:0;o=Q(j*Q((u>>>16&255)>>>0));O:{if(Q(R(o))=0?c>>>0>=255?255:c:0)|0;p=c>>>0>=255?255:c;o=Q(h*Q((s>>>16&255)>>>0));P:{if(Q(R(o))=0?c>>>0>=255?255:c:0)|0;p=c>>>0>=255?255:c;o=Q(d*Q((z>>>16&255)>>>0));Q:{if(Q(R(o))=0?c>>>0>=255?255:c:0)|0;g=g|(p>>>0>=255?255:p)<<16;o=Q(e*Q((q>>>8&255)>>>0));R:{if(Q(R(o))=0?c>>>0>=255?255:c:0;o=Q(j*Q((u>>>8&255)>>>0));S:{if(Q(R(o))=0?c>>>0>=255?255:c:0)|0;p=c>>>0>=255?255:c;o=Q(h*Q((s>>>8&255)>>>0));T:{if(Q(R(o))=0?c>>>0>=255?255:c:0)|0;p=c>>>0>=255?255:c;o=Q(d*Q((z>>>8&255)>>>0));U:{if(Q(R(o))< +Q(2147483648)){c=~~o;break U}c=-2147483648}c=p+((c|0)>=0?c>>>0>=255?255:c:0)|0;g=g|(c>>>0>=255?255:c)<<8;e=Q(e*Q((q&255)>>>0));V:{if(Q(R(e))=0?c>>>0>=255?255:c:0;e=Q(j*Q((u&255)>>>0));W:{if(Q(R(e))=0?c>>>0>=255?255:c:0)|0;p=c>>>0>=255?255:c;e=Q(h*Q((s&255)>>>0));X:{if(Q(R(e))=0?c>>>0>=255?255:c:0)|0;p=c>>>0>=255?255:c;e=Q(d*Q((z&255)>>>0)); +Y:{if(Q(R(e))=0?c>>>0>=255?255:c:0)|0;c=g|(c>>>0>=255?255:c);g=(b|0)<(n|0);u=g?n:b;n=g?b:n;s=(u-n|0)+1&1;b=(i|0)<(k|0);z=b?k:i;i=b?i:k;k=n+1|0;while(1){b=n;Z:{if(!s)break Z;b=k;g=J[a+2948>>2];if(g>>>0<=i>>>0|g>>>0<=n>>>0)break Z;g=J[J[a+2916>>2]+P(i,12)>>2]+(n<<2)|0;H[g|0]=c;H[g+1|0]=c>>>8;H[g+2|0]=c>>>16;H[g+3|0]=c>>>24}if((n|0)!=(u|0))while(1){g=J[a+2948>>2];if(!(g>>>0<=i>>>0|b>>>0>=g>>>0)){g=J[J[a+2916>>2]+P(i,12)>>2]+(b<<2)|0;H[g|0]=c;H[g+ +1|0]=c>>>8;H[g+2|0]=c>>>16;H[g+3|0]=c>>>24}q=J[a+2948>>2];g=b+1|0;if(!(q>>>0<=i>>>0|q>>>0<=g>>>0)){q=J[J[a+2916>>2]+P(i,12)>>2]+(g<<2)|0;H[q|0]=c;H[q+1|0]=c>>>8;H[q+2|0]=c>>>16;H[q+3|0]=c>>>24}b=b+2|0;if((g|0)!=(u|0))continue;break}b=(i|0)==(z|0);i=i+1|0;if(!b)continue;break}d=l;c=J[a+2948>>2];if(t>>>0>>0)continue;break}J[699344]=0;ca(2356,m+24|0,J[m+12>>2],J[m+16>>2]);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[m+12>>2];if(b)uc(b);C=f;c=J[a+2948>>2];F=F+1|0;if(c>>>0<=F>>>0)break q;continue}break}b= +Z()|0;a=J[m+12>>2];if(!a)break t;uc(a)}a=J[m+24>>2];if(!a)break j;break h}b=Z()|0;a=J[m+24>>2];if(!a)break j;break h}b=J[m+24>>2];if(!b)break o}J[m+28>>2]=b;uc(b)}fc=m+48|0;return}ba(b|0);B()}B()}J[m+28>>2]=a;uc(a);ba(b|0);B()}function Yra(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;f=a+12|0;b=J[a+12>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;d=J[f>>2]}J[c+20>>2]=d;J[a+24>>2]=0;J[699344]=0;b=d;d=c+24|0;ga(5273,b|0,d|0,4)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((b| +0)!=1){b=K[c+24|0]|K[c+25|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0<=19566){if(!b)break M;if((b|0)==60)break L;if((b|0)!=15360)break w;b=K[c+26|0]|K[c+27|0]<<8;b=(b<<8|b>>>8)&65535;if((b|0)==16128)break H;if(b)break G;J[699344]=0;ia(5704,c+12|0,d|0,4,2);b=J[699344];J[699344]=0;if((b|0)==1)break I;b=J[c+12>>2];if(!b)break K;d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break J;a=Z()|0;break c}if(b>>>0<=65278){if((b|0)==19567)break F;if((b|0)!=61371)break w;if(K[c+ +26|0]!=191)break x;J[699344]=0;ia(5704,c+12|0,c+27|0,1,8);b=J[699344];J[699344]=0;if((b|0)==1)break y;b=J[c+12>>2];if(!b)break A;d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break z;a=Z()|0;break d}if((b|0)==65279)break B;if((b|0)!=65534)break w;J[699344]=0;ia(5704,c+12|0,c+26|0,2,7);b=J[699344];J[699344]=0;if((b|0)==1)break C;b=J[c+12>>2];if(!b)break E;d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break D;a=Z()| +0;break e}a=Z()|0;break b}N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{b=K[c+26|0]|K[c+27|0]<<8;b=(b<<8|b>>>8)&65535;if(b>>>0<=65278){if((b|0)==60)break W;if((b|0)!=15360)break O;J[699344]=0;ia(5704,c+12|0,c+24|0,4,3);b=J[699344];J[699344]=0;if((b|0)==1)break T;b=J[c+12>>2];if(!b)break V;d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break U;a=Z()|0;break f}if((b|0)==65279)break S;if((b|0)!=65534)break O;J[699344]=0;ia(5704,c+12|0,0,0,3);b=J[699344];J[699344]=0;if((b|0)== +1)break P;b=J[c+12>>2];if(!b)break R;d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break Q;a=Z()|0;break g}J[699344]=0;ia(5704,c+12|0,c+24|0,4,1);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];X:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break X;a=Z()|0;break h}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break N;J[699344]=0;d=J[b+ +4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break N;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break N}break a}a=Z()|0;zc(c+28|0);break h}a=Z()|0;break b}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;Y:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break Y;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break Y;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break Y}break a}a=Z()|0;zc(c+28| +0);break f}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2743576)>>2];wc(c+12|0);break L}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,0,0,1);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];Z:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break Z;a=Z()|0;break i}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;_:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break _;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!= +1){if(d)break _;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break _}break a}a=Z()|0;zc(c+28|0);break i}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2743576)>>2];wc(c+12|0);J[a+32>>2]=J[a+32>>2]+4;break L}a=Z()|0;break b}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;$:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break $;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break $;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b| +0)!=1)break $}break a}a=Z()|0;zc(c+28|0);break g}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2743576)>>2];wc(c+12|0);J[a+32>>2]=J[a+32>>2]+4;break L}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+24|0,4,8);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];aa:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break aa;a=Z()|0;break j}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;ba:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ba; +J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break ba;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break ba}break a}a=Z()|0;zc(c+28|0);break j}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2743576)>>2];wc(c+12|0);break L}a=Z()|0;break b}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2743576)>>2];wc(c+12|0)}ca:{b=K[c+26|0]|K[c+27|0]<<8;b=(b<<8|b>>>8)&65535;if((b|0)!=63){if(b)break ca;J[699344]=0;ia(5704,c+12|0,c+24|0,4,4);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>> +2];da:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break da;a=Z()|0;break k}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;ea:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ea;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break ea;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break ea}break a}a=Z()|0;zc(c+28|0);break k}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>> +2];wc(c+12|0);break v}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+24|0,4,6);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];fa:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break fa;a=Z()|0;break l}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;ga:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ga;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break ga;J[699344]=0;$(5147,b|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break ga}break a}a=Z()|0;zc(c+28|0);break l}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+12|0);break v}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+24|0,4,8);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];ha:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break ha;a=Z()|0;break m}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;ia:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ia;J[699344]= +0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break ia;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break ia}break a}a=Z()|0;zc(c+28|0);break m}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+12|0);break v}a=Z()|0;break b}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;ja:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ja;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break ja;J[699344]= +0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break ja}break a}a=Z()|0;zc(c+28|0);break c}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+12|0);break v}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+24|0,4,7);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];ka:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break ka;a=Z()|0;break n}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;la:{if((b|0)!=1){b=J[c+28>>2];J[c+ +28>>2]=0;if(!b)break la;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break la;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break la}break a}a=Z()|0;zc(c+28|0);break n}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+12|0);break v}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+24|0,4,8);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];ma:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break ma; +a=Z()|0;break o}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;na:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break na;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break na;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break na}break a}a=Z()|0;zc(c+28|0);break o}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+12|0);break v}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+24|0,4,((K[c+27|0]|K[c+26|0]<<8)==42900?9: +8)|0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];oa:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break oa;a=Z()|0;break p}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;pa:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break pa;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break pa;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break pa}break a}a=Z()|0;zc(c+28|0);break p}d= +a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+12|0);break v}a=Z()|0;break b}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;qa:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break qa;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break qa;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break qa}break a}a=Z()|0;zc(c+28|0);break e}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2743576)>>2];wc(c+12|0);J[a+32>>2]=J[a+32>>2]+2;break v}a= +Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+26|0,2,6);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];ra:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break ra;a=Z()|0;break q}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;sa:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break sa;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break sa;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b| +0)!=1)break sa}break a}a=Z()|0;zc(c+28|0);break q}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2743576)>>2];wc(c+12|0);J[a+32>>2]=J[a+32>>2]+2;break v}a=Z()|0;break b}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;ta:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break ta;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break ta;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break ta}break a}a=Z()|0;zc(c+28|0);break d}b=J[a+16>>2];J[a+ +20>>2]=J[(b?b+12|0:2743576)>>2];wc(c+12|0);J[a+32>>2]=J[a+32>>2]+3;break v}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+24|0,4,8);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];ua:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break ua;a=Z()|0;break r}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]=0;va:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break va;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e| +0)!=1){if(d)break va;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break va}break a}a=Z()|0;zc(c+28|0);break r}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+12|0);break v}a=Z()|0;break b}J[699344]=0;ia(5704,c+12|0,c+24|0,4,8);b=J[699344];J[699344]=0;if((b|0)==1)break u;b=J[c+12>>2];wa:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break wa;a=Z()|0;break s}J[c+28>>2]=0}J[699344]=0;aa(5153,a+16|0,c+28|0)|0;b=J[699344];J[699344]= +0;xa:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break xa;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break xa;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break xa}break a}a=Z()|0;zc(c+28|0);break s}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+12|0)}J[699344]=0;aa(5153,f|0,c+20|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break t;a=J[c+20>>2];J[c+20>>2]=0;ya:{if(!a)break ya;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]= +0;if((f|0)==1)break a;if(b)break ya;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=c+32|0;return}a=Z()|0;break b}a=Z()|0;break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0);break b}wc(c+12|0)}zc(c+20|0);ba(a|0);B()}ea(0)|0;Bc(); +B()}function Uy(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,B=Q(0);k=fc-48|0;fc=k;a:{if((g|0)>=5){H[a+60|0]=K[46757];b=K[46753]|K[46754]<<8|(K[46755]<<16|K[46756]<<24);c=K[46749]|K[46750]<<8|(K[46751]<<16|K[46752]<<24);H[a+52|0]=c;H[a+53|0]=c>>>8;H[a+54|0]=c>>>16;H[a+55|0]=c>>>24;H[a+56|0]=b;H[a+57|0]=b>>>8;H[a+58|0]=b>>>16;H[a+59|0]=b>>>24;b=K[46745]|K[46746]<<8|(K[46747]<<16|K[46748]<<24);c=K[46741]|K[46742]<<8|(K[46743]<<16|K[46744]<<24);H[a+ +44|0]=c;H[a+45|0]=c>>>8;H[a+46|0]=c>>>16;H[a+47|0]=c>>>24;H[a+48|0]=b;H[a+49|0]=b>>>8;H[a+50|0]=b>>>16;H[a+51|0]=b>>>24;b=K[46737]|K[46738]<<8|(K[46739]<<16|K[46740]<<24);c=K[46733]|K[46734]<<8|(K[46735]<<16|K[46736]<<24);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;H[a+40|0]=b;H[a+41|0]=b>>>8;H[a+42|0]=b>>>16;H[a+43|0]=b>>>24;b=K[46729]|K[46730]<<8|(K[46731]<<16|K[46732]<<24);c=K[46725]|K[46726]<<8|(K[46727]<<16|K[46728]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]= +c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[46721]|K[46722]<<8|(K[46723]<<16|K[46724]<<24);c=K[46717]|K[46718]<<8|(K[46719]<<16|K[46720]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[46713]|K[46714]<<8|(K[46715]<<16|K[46716]<<24);c=K[46709]|K[46710]<<8|(K[46711]<<16|K[46712]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>> +16;H[a+19|0]=b>>>24;b=K[46705]|K[46706]<<8|(K[46707]<<16|K[46708]<<24);c=K[46701]|K[46702]<<8|(K[46703]<<16|K[46704]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}i=J[b>>2];j=J[b+4>>2];if(j>>>0>=2){h=J[a+264>>2];s=K[i+!h|0]<<8|K[i+((h|0)!=0)|0]}b:{c:{t=P(s,12);if((i+t|0)+4>>>0<=J[c>>2]+d>>>0){if(s)break c;break b}b=K[46795]|K[46796]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[46791]|K[46792]<<8|(K[46793]<<16|K[46794]<<24); +c=K[46787]|K[46788]<<8|(K[46789]<<16|K[46790]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[46783]|K[46784]<<8|(K[46785]<<16|K[46786]<<24);c=K[46779]|K[46780]<<8|(K[46781]<<16|K[46782]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[46775]|K[46776]<<8|(K[46777]<<16|K[46778]<<24);c=K[46771]|K[46772]<<8|(K[46773]<<16|K[46774]<<24); +H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}w=g+1|0;x=e+5|0;y=e+37|0;z=e+77|0;v=e+196|0;h=a+4|0;while(1){n=J[b+4>>2];j=P(u,12)|2;p=j>>>0>n>>>0?n:j;j=p+J[b>>2]|0;m=0;o=0;i=0;d:{p=n-p|0;if(p>>>0<2)break d;n=J[a+264>>2];o=K[j+!n|0]<<8|K[j+((n|0)!=0)|0];if(p>>>0<4)break d;i=K[j+(n?3:2)|0]|K[j+(n?2:3)|0]<<8;if(p>>>0>=8){e:{if(n){n=j+7|0;m=K[j+5|0]<<16|K[j+4|0]<<24|K[j+6|0]<<8;break e}n=j+4|0;m=K[j+6|0]<<16|K[j+7|0]<<24|K[j+ +5|0]<<8}m=m|K[n|0]}if(i>>>0<13)break d;o=0;a=K[46898]|K[46899]<<8|(K[46900]<<16|K[46901]<<24);b=K[46894]|K[46895]<<8|(K[46896]<<16|K[46897]<<24);H[h+24|0]=b;H[h+25|0]=b>>>8;H[h+26|0]=b>>>16;H[h+27|0]=b>>>24;H[h+28|0]=a;H[h+29|0]=a>>>8;H[h+30|0]=a>>>16;H[h+31|0]=a>>>24;a=K[46890]|K[46891]<<8|(K[46892]<<16|K[46893]<<24);b=K[46886]|K[46887]<<8|(K[46888]<<16|K[46889]<<24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;a=K[46882]| +K[46883]<<8|(K[46884]<<16|K[46885]<<24);b=K[46878]|K[46879]<<8|(K[46880]<<16|K[46881]<<24);H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[46874]|K[46875]<<8|(K[46876]<<16|K[46877]<<24);b=K[46870]|K[46871]<<8|(K[46872]<<16|K[46873]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}m=P(J[(i<<2)+46928>>2],m);f:{if((m|0)>=5){n=0;if(p>>>0>=12){g:{if(J[a+ +264>>2]){n=j+11|0;j=K[j+9|0]<<16|K[j+8|0]<<24|K[j+10|0]<<8;break g}n=j+8|0;j=K[j+10|0]<<16|K[j+11|0]<<24|K[j+9|0]<<8}n=j|K[n|0]}if(n+m>>>0>d>>>0){o=0;a=K[47049]|K[47050]<<8|(K[47051]<<16|K[47052]<<24);b=K[47045]|K[47046]<<8|(K[47047]<<16|K[47048]<<24);H[h+30|0]=b;H[h+31|0]=b>>>8;H[h+32|0]=b>>>16;H[h+33|0]=b>>>24;H[h+34|0]=a;H[h+35|0]=a>>>8;H[h+36|0]=a>>>16;H[h+37|0]=a>>>24;a=K[47043]|K[47044]<<8|(K[47045]<<16|K[47046]<<24);b=K[47039]|K[47040]<<8|(K[47041]<<16|K[47042]<<24);H[h+24|0]=b;H[h+25|0]=b>>> +8;H[h+26|0]=b>>>16;H[h+27|0]=b>>>24;H[h+28|0]=a;H[h+29|0]=a>>>8;H[h+30|0]=a>>>16;H[h+31|0]=a>>>24;a=K[47035]|K[47036]<<8|(K[47037]<<16|K[47038]<<24);b=K[47031]|K[47032]<<8|(K[47033]<<16|K[47034]<<24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;a=K[47027]|K[47028]<<8|(K[47029]<<16|K[47030]<<24);b=K[47023]|K[47024]<<8|(K[47025]<<16|K[47026]<<24);H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+ +13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[47019]|K[47020]<<8|(K[47021]<<16|K[47022]<<24);b=K[47015]|K[47016]<<8|(K[47017]<<16|K[47018]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}j=J[c+4>>2];p=j>>>0>>0?j:n;n=j-p|0;j=p+J[c>>2]|0;break f}n=p;p=p>>>0>=8?8:p;n=n-p|0;j=j+p|0}J[k+44>>2]=n;J[k+40>>2]=j;p=j+m|0;if(p>>>0>M[f>>2])J[f>>2]=p;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((o| +0)<=37376){if((o|0)<=33433){N:switch(o-271|0){case 2:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break h;case 12:break l;case 11:break m;case 25:break u;case 3:break y;case 1:break L;case 0:break M;default:break N}switch(o-513|0){case 1:break j;case 0:break k;default:break h}}if((o|0)<=36863){O:switch(o-33434|0){case 1:case 2:break h;case 0:break B;case 3:break G;default:break O}switch(o-34850|0){case 5:break o; +case 0:break p;default:break h}}P:switch(o-36864|0){case 1:case 2:break h;case 3:break J;case 0:break K;default:break P}if((o|0)!=37122)break h;l=fh(a,k+40|0,i);if(!(R(l)<2147483648))break n;J[e+164>>2]=~~l;break h}if((o|0)<=37509)switch(o-37377|0){case 6:break q;case 7:break r;case 3:break s;case 8:break z;case 0:break A;case 5:break C;case 9:break D;case 2:break E;case 1:case 4:break F;default:break h}Q:switch(o-41486|0){case 2:break t;case 1:break v;case 0:break w;default:break Q}if(o-40962>>> +0<2)break x;if((o|0)!=37510)break h;R:{if(n>>>0>>0|(m|0)<=0)break R;while(1){m=m-1|0;i=m+j|0;if(K[i|0]!=32)break R;H[i|0]=0;if(m)continue;break}}if(n>>>0<5)break h;if(dd(j,47113,5))break H;if(!(K[j+5|0]&223))break I;m=j+5|0;i=204;break i}if(n>>>0<31)break h;Ad(x,j,31);break h}if(n>>>0<39)break h;Ad(y,j,39);break h}if(n>>>0<4)break h;Ad(e,j,4);break h}if(n>>>0<19)break h;Ad(z,j,19);break h}if(K[j+6|0]&223){m=j+6|0;i=205;break i}if(K[j+7|0]&223){m=j+7|0;i=206;break i}if(K[j+8|0]&223){m=j+8|0;i=207; +break i}if(!(K[j+9|0]&223))break h;m=j+9|0;i=208;break i}if(n>>>0<199)break h;Ad(v,j,199);break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+132>>2]=B;break h}if(N[e+132>>2]!=Q(0))break h;A=e,B=Q(Np(fh(a,k+40|0,i)*.6931471824645996*.5)),N[A+132>>2]=B;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+192>>2]=B;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+124>>2]=B;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+136>>2]=B;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+128>>2]=B;break h}if(N[e+128>>2]!=Q(0))break h;A=e,B=Q(1/Np(fh(a,k+40|0,i)*.6931471824645996)), +N[A+128>>2]=B;break h}l=fh(a,k+40|0,i);S:{if(R(l)<2147483648){i=~~l;break S}i=-2147483648}if(i&7){J[e+120>>2]=1;break h}J[e+120>>2]=0;break h}l=fh(a,k+40|0,i);T:{if(R(l)<2147483648){i=~~l;break T}i=-2147483648}J[e+108>>2]=i;if(i-9>>>0>4294967287)break h;H[h+24|0]=K[47147];i=K[47143]|K[47144]<<8|(K[47145]<<16|K[47146]<<24);m=K[47139]|K[47140]<<8|(K[47141]<<16|K[47142]<<24);H[h+16|0]=m;H[h+17|0]=m>>>8;H[h+18|0]=m>>>16;H[h+19|0]=m>>>24;H[h+20|0]=i;H[h+21|0]=i>>>8;H[h+22|0]=i>>>16;H[h+23|0]=i>>>24;i= +K[47135]|K[47136]<<8|(K[47137]<<16|K[47138]<<24);m=K[47131]|K[47132]<<8|(K[47133]<<16|K[47134]<<24);H[h+8|0]=m;H[h+9|0]=m>>>8;H[h+10|0]=m>>>16;H[h+11|0]=m>>>24;H[h+12|0]=i;H[h+13|0]=i>>>8;H[h+14|0]=i>>>16;H[h+15|0]=i>>>24;i=K[47127]|K[47128]<<8|(K[47129]<<16|K[47130]<<24);m=K[47123]|K[47124]<<8|(K[47125]<<16|K[47126]<<24);H[h|0]=m;H[h+1|0]=m>>>8;H[h+2|0]=m>>>16;H[h+3|0]=m>>>24;H[h+4|0]=i;H[h+5|0]=i>>>8;H[h+6|0]=i>>>16;H[h+7|0]=i>>>24;J[e+108>>2]=0;break h}l=fh(a,k+40|0,i);U:{if(R(l)<2147483648){i= +~~l;break U}i=-2147483648}if((i|0)<=J[a+260>>2])break h;J[a+260>>2]=i;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+168>>2]=B;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+172>>2]=B;break h}V:{W:{X:{Y:{l=fh(a,k+40|0,i);Z:{if(R(l)<2147483648){i=~~l;break Z}i=-2147483648}switch(i-1|0){case 4:break V;case 3:break W;case 2:break X;case 0:case 1:break Y;default:break h}}J[e+188>>2]=1065353216;break h}J[e+188>>2]=1053397798;break h}J[e+188>>2]=1025589893;break h}J[e+188>>2]=941957453;break h}_:{$:{aa:{ba:{l=fh(a,k+40|0,i); +ca:{if(R(l)<2147483648){i=~~l;break ca}i=-2147483648}switch(i-1|0){case 4:break _;case 3:break $;case 2:break aa;case 0:case 1:break ba;default:break h}}J[e+176>>2]=1065353216;break h}J[e+176>>2]=1053397798;break h}J[e+176>>2]=1025589893;break h}J[e+176>>2]=941957453;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+144>>2]=B;break h}l=fh(a,k+40|0,i);if(R(l)<2147483648){J[e+148>>2]=~~l;break h}J[e+148>>2]=-2147483648;break h}l=fh(a,k+40|0,i);if(R(l)<2147483648){J[e+152>>2]=~~l;break h}J[e+152>>2]=-2147483648;break h}l= +fh(a,k+40|0,i);if(R(l)<2147483648){J[e+156>>2]=~~l;break h}J[e+156>>2]=-2147483648;break h}l=fh(a,k+40|0,i);da:{if(R(l)<2147483648){i=~~l;break da}i=-2147483648}J[e+160>>2]=i;if((i|0)>49)break h;J[e+160>>2]=P(i,200);break h}J[e+164>>2]=-2147483648;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+180>>2]=B;break h}A=e,B=Q(fh(a,k+40|0,i)),N[A+184>>2]=B;break h}l=fh(a,k+40|0,i);if(l<4294967296&l>=0){q=~~l>>>0;break h}q=0;break h}l=fh(a,k+40|0,i);if(l<4294967296&l>=0){r=~~l>>>0;break h}r=0;break h}if(i>>>0>n>>>0)break h; +Ad(v,m,199)}ea:{if((o|0)!=40965&(o|0)!=34665|n>>>0<4)break ea;fa:{if(J[a+264>>2]){o=K[j+1|0]<<16|K[j|0]<<24|K[j+2|0]<<8;j=j+3|0;break fa}o=K[j+2|0]<<16|K[j+3|0]<<24|K[j+1|0]<<8}j=K[j|0]|o;if(j>>>0<9)break ea;i=J[c+4>>2];if(i>>>0>>0){o=0;a=K[47272]|K[47273]<<8;H[h+24|0]=a;H[h+25|0]=a>>>8;a=K[47268]|K[47269]<<8|(K[47270]<<16|K[47271]<<24);b=K[47264]|K[47265]<<8|(K[47266]<<16|K[47267]<<24);H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+ +23|0]=a>>>24;a=K[47260]|K[47261]<<8|(K[47262]<<16|K[47263]<<24);b=K[47256]|K[47257]<<8|(K[47258]<<16|K[47259]<<24);H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=K[47252]|K[47253]<<8|(K[47254]<<16|K[47255]<<24);b=K[47248]|K[47249]<<8|(K[47250]<<16|K[47251]<<24);H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;break a}o=J[c>>2];J[k+24>>2]=o;J[k+32>>2]=j+o;J[k+ +28>>2]=i;J[k+36>>2]=i-j;Uy(a,k+32|0,k+24|0,d,e,f,w)}u=u+1|0;if((u|0)!=(s|0))continue;break}j=J[b+4>>2]}ga:{if(t+4>>>0>j>>>0)break ga;b=J[b>>2]+(t|2)|0;j=J[a+264>>2];b=K[b+!j|0]<<8|K[b+((j|0)!=0)|0];if(!b)break ga;j=J[c+4>>2];if(j>>>0>>0){o=0;b=K[47272]|K[47273]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[47268]|K[47269]<<8|(K[47270]<<16|K[47271]<<24);c=K[47264]|K[47265]<<8|(K[47266]<<16|K[47267]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>> +16;H[a+27|0]=b>>>24;b=K[47260]|K[47261]<<8|(K[47262]<<16|K[47263]<<24);c=K[47256]|K[47257]<<8|(K[47258]<<16|K[47259]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[47252]|K[47253]<<8|(K[47254]<<16|K[47255]<<24);c=K[47248]|K[47249]<<8|(K[47250]<<16|K[47251]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}i=J[c>>2];J[k+8>>2]=i;J[k+16>> +2]=b+i;J[k+12>>2]=j;J[k+20>>2]=j-b;Uy(a,k+16|0,k+8|0,d,e,f,g+1|0)}o=1;if(!r|!q|q+r>>>0>d>>>0)break a;a=J[c>>2];J[e+456>>2]=r;J[e+452>>2]=a+q}fc=k+48|0;return o}function cFa(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;a:{b:{if(!a|!b)break b;c=a;f=b;if(!(K[a+201|0]&4|(!a|!b))){a=fc-16|0;fc=a;J[a+8>>2]=1196314761;J[a+12>>2]=169478669;J[c+744>>2]=18;b=K[c+407|0];hf(c,b+(a+8|0)|0,8-b|0);if(K[c+407|0]<=2)J[c+200>>2]=J[c+200>>2]|4096;fc=a+16|0;if(!(!(K[c+201| +0]&16)|!J[c+660>>2])){fd(c,57758);J[c+660>>2]=0}d=J[f>>2];g=J[f+4>>2];b=K[f+24|0];l=K[f+26|0];e=K[f+27|0];k=K[f+28|0];a=fc-16|0;fc=a;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m=K[f+25|0];switch(m|0){case 6:break h;case 4:break i;case 3:break j;case 2:break k;case 0:break l;default:break g}}if(b>>>0<=16){i=1;if(1<>>0<8)break f;break d}i=2;n:switch(b-8|0){case 0:case 8:break e;default:break n}Ld(c, +58598);B()}i=4;o:switch(b-8|0){case 0:case 8:break e;default:break o}Ld(c,58823);B()}Ld(c,59035);B()}i=1;if(!(139>>>o&1))break d}H[c+405|0]=i;if(l)fd(c,59201);p:{q:{r:{if(!(!(K[c+660|0]&4)|K[c+201|0]&16)){if(!e)break p;if((m&-5)!=2|(e|0)!=64)break r;break p}if(!e)break q}fd(c,59365)}e=0}if(k>>>0>=2){fd(c,59509);k=1}H[c+401|0]=m;H[c+402|0]=b;H[c+696|0]=0;H[c+664|0]=e;H[c+398|0]=k;J[c+324>>2]=g;J[c+320>>2]=d;i=K[c+405|0];l=P(i,b);H[c+404|0]=l;H[c+406|0]=i;H[c+403|0]=b;J[c+332>>2]=d;i=l&255;s:{if(i>>> +0>=8){i=P(d,i>>>3|0);break s}i=P(d,i)+7>>>3|0}J[c+336>>2]=i;H[a+15|0]=k;H[a+14|0]=e;H[a+13|0]=0;H[a+12|0]=m;H[a+11|0]=b;H[a+6|0]=d;H[a+5|0]=d>>>8;H[a+4|0]=d>>>16;H[a+3|0]=d>>>24;H[a+10|0]=g;H[a+9|0]=g>>>8;H[a+8|0]=g>>>16;H[a+7|0]=g>>>24;di(c,1229472850,a+3|0,13);J[c+252>>2]=c;J[c+248>>2]=500;J[c+244>>2]=499;t:{u:{v:{b=K[c+400|0];if(!b){if(K[c+401|0]!=3&K[c+402|0]>7)break v;H[c+400|0]=8;b=8}d=J[c+204>>2];if(d&1)break t;b=(b|0)!=8;break u}H[c+400|0]=248;b=1;d=J[c+204>>2];if(d&1)break t}J[c+296>>2]= +b}if(!(d&2))J[c+280>>2]=-1;if(!(d&4))J[c+292>>2]=8;if(!(d&8))J[c+288>>2]=15;if(d&16)b=J[c+284>>2];else{J[c+284>>2]=8;b=8}J[c+316>>2]=0;J[c+304>>2]=b;J[c+276>>2]=0;J[c+200>>2]=1;J[c+300>>2]=J[c+280>>2];b=J[c+292>>2];J[c+308>>2]=J[c+288>>2];J[c+312>>2]=b;fc=a+16|0;break c}Ld(c,58430);B()}a=J[f+8>>2];if(a&1){a=fc-16|0;fc=a;b=J[f+40>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;di(c,1732332865,a+12|0,4);fc=a+16|0;a=J[f+8>>2]}if(a&2048){a=fc- +16|0;fc=a;b=K[f+44|0];if(b>>>0>=4)fd(c,60245);H[a+15|0]=b;di(c,1934772034,a+15|0,1);fc=a+16|0;a=J[f+8>>2]}if(a&4096){g=J[f+196>>2];e=J[f+200>>2];a=J[f+204>>2];b=0;d=fc-32|0;fc=d;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;i=Yc(g);w:{x:{a=e?a:0;if((a|0)<4)break x;b=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if((b|0)>=0)break x;fd(c,60646);break w}if((a|0)<(b|0)){fd(c,60818);break w}if((a|0)>(b|0)){fd(c,61089);a=b}if(a)a=NA(c,e,a,0,d);else a= +0;if(c){J[c+744>>2]=34;H[d+28|0]=105;H[d+29|0]=67;H[d+30|0]=67;H[d+31|0]=80;b=(a+i|0)+2|0;H[d+27|0]=b;H[d+26|0]=b>>>8;H[d+25|0]=b>>>16;H[d+24|0]=b>>>24;hf(c,d+24|0,8);J[c+348>>2]=1766015824;Km(c);Ae(c,d+28|0,4);J[c+744>>2]=66;if(!(!g|!i)){hf(c,g,i);Ae(c,g,i)}H[d+25|0]=0;H[d+24|0]=0;b=d+24|0;hf(c,b,2);Ae(c,b,2)}if(a)hw(c,d,a);if(!c)break w;J[c+744>>2]=130;a=J[c+384>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[d+24|0]=a;H[d+25|0]=a>>>8;H[d+26|0]=a>>>16;H[d+27|0]=a>>>24;hf(c,d+24|0,4)}fc=d+32|0;a= +J[f+8>>2]}if(a&2){d=fc-16|0;fc=d;e=K[f+25|0];y:{z:{if(e&2){b=8;A:{a=K[f+68|0];b=(e|0)!=3?K[c+403|0]:b;B:{if(!a|a>>>0>b>>>0)break B;g=K[f+69|0];if(!g|b>>>0>>0)break B;i=K[f+70|0];if(!i)break B;if(b>>>0>=i>>>0)break A}fd(c,61433);break y}H[d+14|0]=i;H[d+13|0]=g;H[d+12|0]=a;a=3;break z}a=K[f+71|0];if(!(a>>>0<=K[c+403|0]?a:0)){fd(c,61433);break y}H[d+12|0]=a;a=1}g=d+12|0;if(e&4){b=K[f+72|0];if(!(b>>>0<=K[c+403|0]?b:0)){fd(c,61433);break y}H[a+(d+12|0)|0]=b;a=a+1|0}di(c,1933723988,g,a)}fc=d+16|0;a= +J[f+8>>2]}if(a&4){a=fc-32|0;fc=a;b=J[f+128>>2];d=J[f+132>>2];e=J[f+136>>2];g=J[f+140>>2];i=J[f+144>>2];k=J[f+148>>2];m=J[f+152>>2];l=J[f+156>>2];if(OI(c,b,d,e,g,i,k,m,l)){H[a+31|0]=l;H[a+30|0]=l>>>8;H[a+29|0]=l>>>16;H[a+28|0]=l>>>24;H[a+27|0]=m;H[a+26|0]=m>>>8;H[a+25|0]=m>>>16;H[a+24|0]=m>>>24;H[a+23|0]=k;H[a+22|0]=k>>>8;H[a+21|0]=k>>>16;H[a+20|0]=k>>>24;H[a+19|0]=i;H[a+18|0]=i>>>8;H[a+17|0]=i>>>16;H[a+16|0]=i>>>24;H[a+15|0]=g;H[a+14|0]=g>>>8;H[a+13|0]=g>>>16;H[a+12|0]=g>>>24;H[a+11|0]=e;H[a+10|0]= +e>>>8;H[a+9|0]=e>>>16;H[a+8|0]=e>>>24;H[a+7|0]=d;H[a+6|0]=d>>>8;H[a+5|0]=d>>>16;H[a+4|0]=d>>>24;H[a+3|0]=b;H[a+2|0]=b>>>8;H[a+1|0]=b>>>16;H[a|0]=b>>>24;di(c,1665684045,a,32)}fc=a+32|0}a=J[f+192>>2];if(!(!a|(a|0)<=0)){a=J[f+188>>2];while(1){b=SI(c,a);C:{if((b|0)==1)break C;d=K[a+16|0];if(!(K[a+3|0]&32|(b|0)==3|H[c+206|0]&1)|(!d|d&14))break C;b=J[a+12>>2];if(!b){fd(c,58084);b=J[a+12>>2]}XH(c,a,J[a+8>>2],b)}a=a+20|0;if(a>>>0>2]+P(J[f+192>>2],20)>>>0)continue;break}}J[c+200>>2]=J[c+200>>2]|1024}e= +J[f+8>>2];D:{if(e&8){b=J[f+16>>2];e=L[f+20>>1];a=fc-16|0;fc=a;E:{F:{d=K[c+401|0];if((d|0)==3){if(e>>>0<=1<>>0?e|J[c+660>>2]&1:0)break F;Ld(c,59806);B()}if(!(e|J[c+660>>2]&1?e>>>0<=256:0)){fd(c,59806);break E}if(d&2)break F;fd(c,60091);break E}I[c+392>>1]=e;J[c+744>>2]=34;H[a+8|0]=80;H[a+9|0]=76;H[a+10|0]=84;H[a+11|0]=69;d=P(e,3);H[a+7|0]=d;H[a+6|0]=d>>>8;H[a+5|0]=d>>>16;H[a+4|0]=d>>>24;hf(c,a+4|0,8);J[c+348>>2]=1347179589;Km(c);Ae(c,a+8|0,4);J[c+744>>2]=66;if(e){d=0;while(1){H[a+1|0]= +K[b|0];H[a+2|0]=K[b+1|0];H[a+3|0]=K[b+2|0];g=a+1|0;hf(c,g,3);Ae(c,g,3);b=b+3|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}J[c+744>>2]=130;b=J[c+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;hf(c,a+12|0,4);J[c+200>>2]=J[c+200>>2]|2}fc=a+16|0;e=J[f+8>>2];break D}if(K[f+25|0]==3)break a}if(e&16){if(!(!L[f+22>>1]|(!(K[c+210|0]&8)|K[f+25|0]!=3))){e=0;while(1){a=J[f+76>>2]+e|0;H[a|0]=K[a|0]^-1;e=e+1|0;if(e>>>0>1])continue;break}}d=J[f+ +76>>2];b=L[f+22>>1];a=fc-16|0;fc=a;G:{H:switch(K[f+25|0]){case 3:if(!(b>>>0<=L[c+392>>1]?b:0)){fd(c,61681);break G}di(c,1951551059,d,b);break G;case 0:b=L[f+88>>1];if((b|0)>=1<>>8;H[a+10|0]=b;H[a+11|0]=b>>>8;di(c,1951551059,a+10|0,2);break G;case 2:d=L[f+82>>1];b=d>>>8|0;d=b|d<<8;H[a+10|0]=d;H[a+11|0]=d>>>8;e=L[f+84>>1];d=e>>>8|0;e=d|e<<8;H[a+12|0]=e;H[a+13|0]=e>>>8;g=L[f+86>>1];e=g>>>8|0;g=e|g<<8;H[a+14|0]=g;H[a+15|0]=g>>>8;if(!(!(e|(b|d))|K[c+402|0]!=8)){fd(c, +61964);break G}di(c,1951551059,a+10|0,6);break G;default:break H}fd(c,62063)}fc=a+16|0;e=J[f+8>>2]}if(e&32){b=fc-16|0;fc=b;I:{J:{a=K[f+25|0];if((a|0)==3){d=L[c+392>>1];if(!(d|!(H[c+660|0]&1))){a=K[f+90|0];break J}a=K[f+90|0];if(d>>>0>a>>>0)break J;fd(c,62174);break I}if(a&2){d=L[f+92>>1];a=d>>>8|0;d=a|d<<8;H[b+10|0]=d;H[b+11|0]=d>>>8;e=L[f+94>>1];d=e>>>8|0;e=d|e<<8;H[b+12|0]=e;H[b+13|0]=e>>>8;g=L[f+96>>1];e=g>>>8|0;g=e|g<<8;H[b+14|0]=g;H[b+15|0]=g>>>8;if(!(!(e|(a|d))|K[c+402|0]!=8)){fd(c,62398);break I}di(c, +1649100612,b+10|0,6);break I}a=L[f+98>>1];if((a|0)>=1<>>8;H[b+10|0]=a;H[b+11|0]=a>>>8;di(c,1649100612,b+10|0,2);break I}H[b+10|0]=a;di(c,1649100612,b+10|0,1)}fc=b+16|0;e=J[f+8>>2]}if(e&64){e=J[f+124>>2];b=0;a=fc-16|0;fc=a;d=L[f+20>>1];K:{if((d|0)>L[c+392>>1]){fd(c,62641);break K}J[c+744>>2]=34;H[a+8|0]=104;H[a+9|0]=73;H[a+10|0]=83;H[a+11|0]=84;H[a+7|0]=d<<1;H[a+6|0]=d>>>7;H[a+5|0]=d>>>15;H[a+4|0]=d>>>23;hf(c,a+4|0,8);J[c+348>>2]=1749635924;Km(c);Ae(c,a+8| +0,4);J[c+744>>2]=66;if(d)while(1){g=L[e+(b<<1)>>1];g=g<<8|g>>>8;H[a+1|0]=g;H[a+2|0]=g>>>8;g=a+1|0;hf(c,g,2);Ae(c,g,2);b=b+1|0;if((d|0)!=(b|0))continue;break}J[c+744>>2]=130;b=J[c+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;hf(c,a+12|0,4)}fc=a+16|0;e=J[f+8>>2]}if(e&256){b=J[f+100>>2];d=J[f+104>>2];a=fc-16|0;fc=a;e=K[f+108|0];if(e>>>0>=2)fd(c,62747);H[a+15|0]=e;H[a+14|0]=d;H[a+13|0]=d>>>8;H[a+12|0]=d>>>16;H[a+11|0]=d>>>24;H[a+10|0]= +b;H[a+9|0]=b>>>8;H[a+8|0]=b>>>16;H[a+7|0]=b>>>24;di(c,1866876531,a+7|0,9);fc=a+16|0;e=J[f+8>>2]}if(e&1024){g=J[f+160>>2];i=J[f+164>>2];k=J[f+168>>2];e=K[f+181|0];m=J[f+172>>2];h=J[f+176>>2];b=0;a=fc-16|0;fc=a;n=K[f+180|0];if(n>>>0>=4)fd(c,62914);p=Yc(g);o=Yc(m)+((e|0)!=0)|0;d=(p+o|0)+11|0;l=lh(c,e<<2);if(e){r=e-1|0;while(1){q=b<<2;j=Yc(J[q+h>>2])+((b|0)!=(r|0))|0;J[l+q>>2]=j;d=d+j|0;b=b+1|0;if((e|0)!=(b|0))continue;break}}L:{if(!c)break L;J[c+744>>2]=34;H[a+6|0]=112;H[a+7|0]=67;H[a+8|0]=65;H[a+9| +0]=76;H[a+5|0]=d;H[a+4|0]=d>>>8;H[a+3|0]=d>>>16;H[a+2|0]=d>>>24;hf(c,a+2|0,8);J[c+348>>2]=1883455820;Km(c);Ae(c,a+6|0,4);J[c+744>>2]=66;if(!g)break L;b=p+1|0;if(!b)break L;hf(c,g,b);Ae(c,g,b)}H[a+11|0]=e;H[a+10|0]=n;H[a+9|0]=k;H[a+8|0]=k>>>8;H[a+7|0]=k>>>16;H[a+6|0]=k>>>24;H[a+5|0]=i;H[a+4|0]=i>>>8;H[a+3|0]=i>>>16;H[a+2|0]=i>>>24;M:{N:{if(!c)break N;b=a+2|0;hf(c,b,10);Ae(c,b,10);if(!(!m|!o)){hf(c,m,o);Ae(c,m,o)}if(e){if(!c)break N;b=0;while(1){g=b<<2;d=J[g+h>>2];O:{if(!d)break O;g=J[g+l>>2];if(!g)break O; +hf(c,d,g);Ae(c,d,g)}b=b+1|0;if((e|0)!=(b|0))continue;break}}Bd(c,l);if(!c)break M;J[c+744>>2]=130;b=J[c+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+12|0]=b;H[a+13|0]=b>>>8;H[a+14|0]=b>>>16;H[a+15|0]=b>>>24;hf(c,a+12|0,4);break M}Bd(c,l)}fc=a+16|0;e=J[f+8>>2]}if(e&16384){e=K[f+220|0];b=J[f+228>>2];a=fc+-64|0;fc=a;g=J[f+224>>2];d=Yc(g);i=Yc(b);k=(d+i|0)+2|0;P:{if(k>>>0>=65){fd(c,63131);break P}H[a|0]=e;xc(a|1,g,d+1|0);xc((a+d|0)+2|0,b,i);di(c,1933787468,a,k)}fc=a- -64|0;e=J[f+8>>2]}if(e&128){b= +J[f+112>>2];d=J[f+116>>2];a=fc-16|0;fc=a;e=K[f+120|0];if(e>>>0>=2)fd(c,63167);H[a+15|0]=e;H[a+14|0]=d;H[a+13|0]=d>>>8;H[a+12|0]=d>>>16;H[a+11|0]=d>>>24;H[a+10|0]=b;H[a+9|0]=b>>>8;H[a+8|0]=b>>>16;H[a+7|0]=b>>>24;di(c,1883789683,a+7|0,9);fc=a+16|0;e=J[f+8>>2]}if(e&512){SW(c,f+60|0);J[c+200>>2]=J[c+200>>2]|512;e=J[f+8>>2]}if(!(!(e&8192)|J[f+216>>2]<=0)){e=0;while(1){h=fc-16|0;fc=h;n=J[f+212>>2]+(e<<4)|0;a=K[n+4|0];d=J[n+12>>2];b=Yc(J[n>>2]);Q:{R:{S:{if(c){p=n+4|0;J[c+744>>2]=34;H[h+6|0]=115;H[h+7|0]= +80;H[h+8|0]=76;H[h+9|0]=84;r=(a|0)==8?6:10;a=(b+P(r,d)|0)+2|0;H[h+5|0]=a;H[h+4|0]=a>>>8;H[h+3|0]=a>>>16;H[h+2|0]=a>>>24;hf(c,h+2|0,8);J[c+348>>2]=1934642260;Km(c);Ae(c,h+6|0,4);J[c+744>>2]=66;a=b+1|0;T:{if(!a)break T;b=J[n>>2];if(!b)break T;hf(c,b,a);Ae(c,b,a)}hf(c,p,1);Ae(c,p,1);if(J[n+12>>2]<=0)break R;g=h+11|0;i=h+10|0;k=h+9|0;m=h+7|0;l=h+6|0;o=h+5|0;j=J[n+8>>2];while(1){a=L[j>>1];U:{if(K[p|0]!=8){a=a<<8|(a&65280)>>>8;H[h+2|0]=a;H[h+3|0]=a>>>8;a=L[j+2>>1];a=a<<8|a>>>8;H[h+4|0]=a;H[h+5|0]=a>>>8; +a=L[j+4>>1];a=a<<8|a>>>8;H[h+6|0]=a;H[h+7|0]=a>>>8;q=L[j+6>>1];H[h+8|0]=q>>>8;b=i;d=k;a=g;break U}H[h+2|0]=a;H[h+3|0]=K[j+2|0];H[h+4|0]=K[j+4|0];q=K[j+6|0];b=l;d=o;a=m}H[d|0]=q;d=b;b=L[j+8>>1];H[d|0]=b>>>8;H[a|0]=b;a=h+2|0;hf(c,a,r);Ae(c,a,r);j=j+10|0;if(j>>>0>2]+P(J[n+12>>2],10)>>>0)continue;break}break S}a=J[n+12>>2];if((a|0)<=0)break Q;j=J[n+8>>2];a=j+P(a,10)|0;if(K[n+4|0]==8)while(1){H[h+2|0]=K[j|0];H[h+3|0]=K[j+2|0];H[h+4|0]=K[j+4|0];H[h+5|0]=K[j+6|0];b=L[j+8>>1];b=b<<8|b>>>8;H[h+6|0]= +b;H[h+7|0]=b>>>8;j=j+10|0;if(a>>>0>j>>>0)continue;break S}while(1){b=L[j>>1];b=b<<8|b>>>8;H[h+2|0]=b;H[h+3|0]=b>>>8;b=L[j+2>>1];b=b<<8|b>>>8;H[h+4|0]=b;H[h+5|0]=b>>>8;b=L[j+4>>1];b=b<<8|b>>>8;H[h+6|0]=b;H[h+7|0]=b>>>8;b=L[j+6>>1];b=b<<8|b>>>8;H[h+8|0]=b;H[h+9|0]=b>>>8;b=L[j+8>>1];b=b<<8|b>>>8;H[h+10|0]=b;H[h+11|0]=b>>>8;j=j+10|0;if(a>>>0>j>>>0)continue;break}}if(!c)break Q}J[c+744>>2]=130;a=J[c+384>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]= +a>>>24;hf(c,h+12|0,4)}fc=h+16|0;e=e+1|0;if((e|0)>2])continue;break}}if(J[f+48>>2]>0){a=J[f+56>>2];while(1){d=P(s,28);b=d+a|0;e=J[b>>2];V:{if((e|0)>0){TW(c,e,J[b+4>>2],J[b+20>>2],J[b+24>>2],J[b+8>>2]);a=J[f+56>>2];b=d+a|0;if(J[b>>2]==-1){J[b>>2]=-3;break V}J[b>>2]=-2;break V}W:switch(e+1|0){case 1:UW(c,J[b+4>>2],J[b+8>>2]);a=J[f+56>>2];J[d+a>>2]=-2;break V;case 0:break W;default:break V}MA(c,J[b+4>>2],J[b+8>>2]);a=J[f+56>>2];J[d+a>>2]=-3}s=s+1|0;if((s|0)>2])continue;break}}a=J[f+192>> +2];if(!a|(a|0)<=0)break b;e=J[f+188>>2];while(1){a=SI(c,e);if(!((a|0)==1|(K[e+16|0]&14)!=2|!(K[e+3|0]&32|(a|0)==3|H[c+206|0]&1)))XH(c,e,J[e+8>>2],J[e+12>>2]);e=e+20|0;if(e>>>0>2]+P(J[f+192>>2],20)>>>0)continue;break}}return}Ld(c,58262);B()}function JDa(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;e=fc-1104|0;fc=e;f=J[b>>2];m=a+12|0;tt(m);n=a+28|0;Fm(n,0,-1);j=a+52|0;CA(j);k=a+80|0;CA(k);l=a+108|0;CA(l);a:{b:{c:{d:{g=Ct(f);h=g&127;if(h>>>0>=2){J[699344]=0;a= +aa(5290,e+1064|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;b=e+1072|0;ca(5218,b|0,2390497,a|0);d=J[699344];J[699344]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((d|0)!=1){J[699344]=0;g=e+1028|0;ca(5291,g|0,b|0,2391098);b=J[699344];J[699344]=0;if((b|0)==1)break m;J[699344]=0;d=aa(5290,e+1056|0,h|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[699344]=0;ca(5292,e+1080|0,g|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break k;b=J[e+1080>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;g=ja(5178,e|0, +b|0,2389596,238,2398132,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;J[699344]=0;$(5179,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;break d}b=Z()|0;break a}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;Kc(g)}wc(e+1080|0)}wc(d)}wc(e+1028|0)}wc(e+1072|0);break a}n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{i=Kk(f);G:{if(!i)break G;H:{if((i|0)<=0)break H;o=g&128;I:{J:{while(1){J[699344]=0;g=_(4,60)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[g+20>>2]= +0;J[g>>2]=2398124;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;H[g+16|0]=0;c=J[685894];J[g+56>>2]=-1;H[g+52|0]=0;J[g+48>>2]=c;J[g+44>>2]=0;J[g+40>>2]=c;J[g+36>>2]=0;J[g+32>>2]=c;J[g+28>>2]=0;J[g+24>>2]=c;J[699344]=0;J[e+1080>>2]=0;aa(5145,e+1080|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;J[699344]=0;g=_(4,12)|0;c=J[699344];J[699344]=0;K:{if((c|0)==1)break K;J[g>>2]=0;J[g+4>>2]=0;c=J[e+1080>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break K;c=J[e+1080>>2]}else c= +0;J[g+8>>2]=c;J[699344]=0;vf(m,g);g=J[699344];J[699344]=0;if((g|0)==1)break K;L:{if(o){J[699344]=0;g=_(5293,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break K;c=J[e+1080>>2];J[c+8>>2]=g;if(!h){J[699344]=0;g=_(5294,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break K;c=J[e+1080>>2];J[c+12>>2]=g;g=J[c+8>>2]}if(g)break L;J[699344]=0;a=ja(5178,e|0,2391210,2389596,259,2398132,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;Kc(a); +break I}c=J[e+1080>>2];J[c+8>>2]=0;J[c+12>>2]=0}J[699344]=0;J[e+1080>>2]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;p=J[699344];J[699344]=0;if((p|0)==1)break b;if(!g){J[699344]=0;$(5147,c|0);g=J[699344];J[699344]=0;if((g|0)==1)break b}d=d+1|0;if((i|0)!=(d|0))continue;break H}break}c=Z()|0;break I}c=Z()|0}zc(e+1080|0);ba(c|0);B()}c=0;d=J[b>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break c;c=J[b>>2]}J[699344]=0;J[e+1052>>2]=c;da(5295,e+1064|0,e+1052|0);b=J[699344];J[699344]= +0;M:{N:{O:{P:{Q:{if((b|0)!=1){b=J[e+1052>>2];J[e+1052>>2]=0;R:{if(!b)break R;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break b;if(d)break R;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[e+1064>>2];S:{if(!h)break S;c=J[a+20>>2];if(!c)break S;while(1){J[699344]=0;d=_(5294,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break P;J[J[c+8>>2]+12>>2]=d;c=J[c>>2];if(c)continue;break}}c=J[a+20>>2];if(c)while(1){J[699344]=0;d=_(5296,b|0)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break Q;H[J[c+8>>2]+52|0]=d;c=J[c>>2];if(c)continue;break}T:{if(h)break T;c=J[a+20>>2];if(!c)break T;while(1){g=J[c+8>>2];d=K[g+52|0];H[g+52|0]=d<<4&64|(d<<6&128|d&1);c=J[c>>2];if(c)continue;break}}J[699344]=0;g=e+1028|0;J[g+20>>2]=-1;J[g+12>>2]=-1;J[g+16>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g>>2]=2400060;d=J[699344];J[699344]=0;if((d|0)==1)break O;while(1){d=J[J[b>>2]+8>>2];J[699344]=0;d=ga(d|0,b|0,e|0,1024)|0;c=J[699344];J[699344]=0;if((c|0)==1)break F;if(!d)break M;c=J[g+16>> +2];f=J[g+20>>2];J[699344]=0;c=(f-c|0)+1|0;ca(5298,g|0,0,(c+d|0)-1|0);f=J[699344];J[699344]=0;if((f|0)==1)break N;xc(c+(J[g+4>>2]-J[g+8>>2]|0)|0,e,d);continue}}a=Z()|0;zc(e+1052|0);ba(a|0);B()}c=Z()|0;break n}c=Z()|0;break n}c=Z()|0;break n}c=Z()|0;break o}c=0;d=J[a+20>>2];U:{if(!d)break U;b=J[g+4>>2]-J[g+8>>2]|0;while(1){c=0;V:{W:{X:{Y:{f=J[d+8>>2];if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break Y;c=J[d+8>>2]}J[699344]=0;J[e+1072>>2]=c;aa(5224,c+36|0,b|0)|0;c=J[699344]; +J[699344]=0;if((c|0)==1)break q;c=J[e+1072>>2];f=J[c+36>>2];Z:{if(!f){b=b+1|0;if(H[c+52|0]<0)break Z;J[e+1080>>2]=0;break W}b=(J[f+8>>2]+b|0)+1|0;if(H[c+52|0]>=0)break X}J[699344]=0;aa(5224,c+20|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break q;c=J[e+1072>>2];f=J[c+20>>2];if(f)f=J[f+8>>2];else f=0;b=(f+b|0)+1|0;break V}c=Z()|0;break o}h=J[J[f>>2]+28>>2];J[699344]=0;ca(h|0,e+1080|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break q}J[699344]=0;aa(5153,c+20|0,e+1080|0)|0;f=J[699344];J[699344]=0; +_:{if((f|0)!=1){f=J[e+1080>>2];J[e+1080>>2]=0;if(!f)break _;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break _;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break _}break b}c=Z()|0;zc(e+1080|0);break p}f=J[c+20>>2];J[c+24>>2]=J[(f?f+12|0:2743576)>>2]}$:{aa:{if(K[c+52|0]&64){J[699344]=0;aa(5224,c+44|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break q;c=J[e+1072>>2];f=J[c+44>>2];if(f)f=J[f+8>>2];else f=0;J[e+1072>>2]=0;b=(b+f|0)+1|0;break aa}f=J[c+ +36>>2];ba:{if(f){h=J[J[f>>2]+28>>2];J[699344]=0;ca(h|0,e+1080|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break q;break ba}J[e+1080>>2]=0}J[699344]=0;aa(5153,c+44|0,e+1080|0)|0;f=J[699344];J[699344]=0;ca:{if((f|0)!=1){f=J[e+1080>>2];J[e+1080>>2]=0;if(!f)break ca;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break ca;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break ca}break b}c=Z()|0;zc(e+1080|0);break p}f=c;c=J[c+44>>2];J[f+48>>2]=J[(c?c+12|0: +2743576)>>2];c=J[e+1072>>2];J[e+1072>>2]=0;if(!c)break $}J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)==1)break b;if(f)break $;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break b}d=J[d>>2];if(d)continue;break}c=0;d=J[a+20>>2];if(!d)break U;b=d;while(1){c=((K[J[b+8>>2]+52|0]&63)==3)+c|0;b=J[b>>2];if(b)continue;break}if(c>>>0>1)break r;c=0;if(!d)break U;while(1){c=((K[J[d+8>>2]+52|0]&63)==1)+c|0;d=J[d>>2];if(d)continue;break}}J[699344]=0;ca(5298,n|0,0,c-1| +0);b=J[699344];J[699344]=0;if((b|0)==1)break s;b=J[a+20>>2];da:{if(!b)break da;d=0;while(1){c=0;ea:{fa:{ga:{ha:{ia:{f=J[b+8>>2];if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break ia;c=J[b+8>>2]}J[e+1072>>2]=c;if((K[c+52|0]&63)==1){if(!(J[a+44>>2]<=(d|0)&J[a+48>>2]>=(d|0))){J[699344]=0;a=ja(5178,e+1080|0,2400123,2400335,619,2400467,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break ga;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;Kc(a);break fa}c= +J[a+32>>2];f=J[a+36>>2];J[699344]=0;aa(5153,c+(d-f<<2)|0,e+1072|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ha;c=J[e+1072>>2];J[c+56>>2]=d;d=d+1|0}J[699344]=0;J[e+1072>>2]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break ea;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break ea}break b}c=Z()|0;break o}c=Z()|0;break fa}c=Z()|0}zc(e+1072|0);break o}b=J[b>>2];if(b)continue;break}b=J[a+20>>2];if(!b)break da;while(1){c=0;d=J[b+8>>2];if(d){J[699344]=0;J[d+4>> +2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break v;c=J[b+8>>2]}J[699344]=0;J[e+1056>>2]=c;f=c+20|0;d=rf(f);c=J[699344];J[699344]=0;if((c|0)==1)break x;J[699344]=0;c=J[J[j+12>>2]+((d>>>0)%M[j+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break x;if(c)while(1){if((d|0)==J[c+12>>2]){J[699344]=0;h=ga(5287,c+16|0,f|0,-1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break w;if(!h)break u}c=J[c+8>>2];if(c)continue;break}J[699344]=0;d=aa(5300,j|0,J[e+1056>>2]+20|0)|0;c=J[699344];J[699344]=0;if((c|0)== +1)break y;J[699344]=0;aa(5153,d+24|0,e+1056|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break y;d=J[e+1056>>2];J[e+1056>>2]=0;ja:{if(!d)break ja;J[699344]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break ja;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break ja}break b}b=J[b>>2];if(b)continue;break}b=J[a+20>>2];if(!b)break da;while(1){c=0;d=J[b+8>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break B;c=J[b+8>>2]}J[699344]=0; +J[e+1056>>2]=c;f=c+36|0;d=rf(f);c=J[699344];J[699344]=0;if((c|0)==1)break D;J[699344]=0;c=J[J[k+12>>2]+((d>>>0)%M[k+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break D;if(c)while(1){if((d|0)==J[c+12>>2]){J[699344]=0;h=ga(5287,c+16|0,f|0,-1)|0;j=J[699344];J[699344]=0;if((j|0)==1)break C;if(!h)break A}c=J[c+8>>2];if(c)continue;break}J[699344]=0;d=aa(5300,k|0,J[e+1056>>2]+36|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break E;J[699344]=0;aa(5153,d+24|0,e+1056|0)|0;d=J[699344];J[699344]=0;if((d|0)== +1)break E;d=J[e+1056>>2];J[e+1056>>2]=0;ka:{if(!d)break ka;J[699344]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break ka;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break ka}break b}b=J[b>>2];if(b)continue;break}a=J[a+20>>2];if(!a)break da;while(1){c=0;la:{ma:{na:{oa:{pa:{qa:{ra:{sa:{ta:{b=J[a+8>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break ta;c=J[a+8>>2]}J[e+1056>>2]=c;ua:{b=J[c+44>>2];va:{if(!b){J[e+1056>>2]=0; +break va}if(!J[b+8>>2]){J[e+1056>>2]=0;break va}J[699344]=0;d=c+44|0;b=rf(d);c=J[699344];J[699344]=0;if((c|0)==1)break ra;J[699344]=0;c=J[J[l+12>>2]+((b>>>0)%M[l+8>>2]<<2)>>2];f=J[699344];J[699344]=0;if((f|0)==1)break ra;if(c)while(1){if((b|0)==J[c+12>>2]){J[699344]=0;f=ga(5287,c+16|0,d|0,-1)|0;h=J[699344];J[699344]=0;if((h|0)==1)break sa;if(!f)break ua}c=J[c+8>>2];if(c)continue;break}J[699344]=0;b=aa(5300,l|0,J[e+1056>>2]+44|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break na;J[699344]=0;aa(5153,b+ +24|0,e+1056|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break na;c=J[e+1056>>2];J[e+1056>>2]=0;if(!c)break la}J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break la;J[699344]=0;$(5147,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break la}break b}J[699344]=0;ca(5218,e+1072|0,2393298,J[e+1056>>2]+44|0);a=J[699344];J[699344]=0;if((a|0)==1)break qa;a=J[e+1072>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,e+1080|0,a|0,2389596,389,2398132,0)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break pa;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;Kc(a);break oa}c=Z()|0;break o}c=Z()|0;break ma}c=Z()|0;break ma}c=Z()|0;break ma}c=Z()|0}wc(e+1072|0);break ma}c=Z()|0}zc(e+1056|0);break o}a=J[a>>2];if(a)continue;break}}Hd(g);a=J[e+1064>>2];J[e+1064>>2]=0;if(!a)break G;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(b)break G;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}fc=e+1104|0;return}c= +Z()|0;break o}c=Z()|0;break z}c=Z()|0;break z}c=Z()|0;break z}c=Z()|0;break o}J[699344]=0;ca(5218,e+1072|0,2392903,J[e+1056>>2]+36|0);a=J[699344];J[699344]=0;wa:{xa:{if((a|0)!=1){a=J[e+1072>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,e+1080|0,a|0,2389596,378,2398132,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break xa;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;Kc(a);break wa}c=Z()|0;break z}c=Z()|0}wc(e+1072|0)}zc(e+1056|0);break o}c=Z()|0;break t}c=Z()|0;break t}c= +Z()|0;break t}c=Z()|0;break o}J[699344]=0;ca(5218,e+1072|0,2392374,J[e+1056>>2]+20|0);a=J[699344];J[699344]=0;ya:{za:{if((a|0)!=1){a=J[e+1072>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,e+1080|0,a|0,2389596,369,2398132,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break za;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;Kc(a);break ya}c=Z()|0;break t}c=Z()|0}wc(e+1072|0)}zc(e+1056|0);break o}c=Z()|0;break o}J[699344]=0;a=ja(5178,e+1080|0,2391605,2389596,345,2398132, +0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;Kc(a);break o}c=Z()|0;break o}c=Z()|0}zc(e+1072|0)}Hd(g)}zc(e+1064|0);ba(c|0);B()}B()}ba(Z()|0);B()}ea(0)|0;Bc();B()}wc(a);ba(b|0);B()}function z7(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;J[a+980>>2]=0;e=J[a+20>>2];J[a+984>>2]=e-1;J[a+988>>2]=P(e,J[a+16>>2]);kc[J[J[b>>2]+44>>2]](b,44)|0;e=J[a+392>>2];kc[J[J[b>>2]+44>>2]](b,e&255)|0;kc[J[J[b>>2]+ +44>>2]](b,e>>>8&255)|0;e=J[a+396>>2];kc[J[J[b>>2]+44>>2]](b,e&255)|0;kc[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;e=J[a+16>>2];kc[J[J[b>>2]+44>>2]](b,e&255)|0;kc[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;e=J[a+20>>2];kc[J[J[b>>2]+44>>2]](b,e&255)|0;kc[J[J[b>>2]+44>>2]](b,e>>>8&255)|0;kc[J[J[b>>2]+44>>2]](b,(c?K[a+26|0]-1|128:0)&255)|0;a:{if(!c)break a;c=J[a+44>>2];if(!c)break a;e=J[a+4>>2];e=e?c?e+40|0:0:0;while(1){c=e+(j<<2)|0;kc[J[J[b>>2]+44>>2]](b,K[c+2|0])|0;kc[J[J[b>>2]+44>>2]](b,K[c+1|0])|0;kc[J[J[b>>2]+44>> +2]](b,K[c|0])|0;j=j+1|0;if(j>>>0>2])continue;break}}c=L[a+26>>1];c=c>>>0<=2?2:c;kc[J[J[b>>2]+44>>2]](b,c&255)|0;c=c+1|0;b:{c:switch(Xq(a,2)-1|0){case 0:J[a+1096>>2]=b;J[a+1092>>2]=c;J[a+1088>>2]=0;J[a+1080>>2]=c;J[a+992>>2]=0;J[a+996>>2]=0;J[a+1108>>2]=0;e=1<>2]=e;I[a+1084>>1]=-1<>2]=e+1;I[a+1086>>1]=e+2;c=J[a+988>>2];d:{if(c){J[a+988>>2]=c-1;c=Ij(a,J[a+980>>2],J[a+984>>2]);e=J[a+980>>2]+1|0;J[a+980>>2]=e;if((e|0)==J[a+16>>2]){J[a+980>>2]=0;J[a+984>>2]=J[a+984>> +2]-1}fo(a,I[a+1100>>1]);while(1){j=-1;e=J[a+988>>2];e:{if(!e)break e;J[a+988>>2]=e-1;j=Ij(a,J[a+980>>2],J[a+984>>2]);e=J[a+980>>2]+1|0;J[a+980>>2]=e;if((e|0)!=J[a+16>>2])break e;J[a+980>>2]=0;J[a+984>>2]=J[a+984>>2]-1}fo(a,c<<16>>16);c=I[a+1086>>1];f:{if((c|0)<=4095){I[a+1086>>1]=c+1;break f}J[a+1088>>2]=1;c=I[a+1100>>1];I[a+1086>>1]=c+2;fo(a,c)}c=j;if((c|0)!=-1)continue;break}break d}fo(a,I[a+1100>>1])}fo(a,I[a+1104>>1]);break b;case 1:h=fc-336|0;fc=h;J[a+1096>>2]=b;J[a+1092>>2]=c;g=1<> +2]=g;J[h+32>>2]=c;J[h+28>>2]=c;J[h+12>>2]=0;J[h+36>>2]=0;J[h+332>>2]=0;J[h+20>>2]=0;J[h+24>>2]=1;J[h+72>>2]=c;J[h+68>>2]=g;J[h+64>>2]=g+1;e=g-1|0;J[h+44>>2]=e;J[h+8>>2]=g+2;J[h+56>>2]=4093-g;J[h+40>>2]=e;e=(c|0)<4?9:g-2|0;J[h+52>>2]=e;J[h+48>>2]=e;if((c|0)>=8){c=h+76|0;j=0;while(1){J[h+332>>2]=j+1;H[(h+j|0)+76|0]=g;j=J[h+332>>2];if((j|0)>=255){e=J[a+1096>>2];kc[J[J[e>>2]+44>>2]](e,j&255)|0;e=J[a+1096>>2];kc[J[J[e>>2]+16>>2]](e,c,1,J[h+332>>2])|0;J[h+332>>2]=0;j=0}g=J[h+68>>2]>>>8|0;J[h+68>>2]=g;e= +J[h+72>>2];J[h+72>>2]=e-8;if((e|0)>15)continue;break}}while(1){c=J[a+988>>2];g:{if(!c){j=-1;break g}J[a+988>>2]=c-1;j=Ij(a,J[a+980>>2],J[a+984>>2]);c=J[a+980>>2]+1|0;J[a+980>>2]=c;if((c|0)!=J[a+16>>2])break g;J[a+980>>2]=0;J[a+984>>2]=J[a+984>>2]-1}g=J[h+12>>2];h:{if((g|0)<=0)break h;c=J[h+4>>2];if((c|0)==(j|0))break h;i:{if((g|0)==1){Eq(a,c,h+4|0);break i}if(J[h+24>>2]){UD(a,g,h+4|0);break i}if(!((c|0)==J[h+16>>2]&J[h+20>>2]>=2)){k=0;i=1;f=h+4|0;e=K[f+52|0]|K[f+53|0]<<8|(K[f+54|0]<<16|K[f+55|0]<< +24);d=P(e+1|0,e)>>>1|0;j:{if(d>>>0>g>>>0){c=g;break j}c=g;while(1){k=e+k|0;c=c-d|0;if(d>>>0<=c>>>0)continue;break}}e=c;k:{l:{m:switch(c|0){case 0:break k;case 1:break l;default:break m}while(1){i=i<<1;d=e>>>0>3;e=e>>>2|0;if(d)continue;break}while(1){e=i;i=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(i|0))break l;if((e+1|0)!=(i|0))continue;break}}i=c<<1;while(1){c=e;e=c-1|0;if(i>>>0<=P(c+1|0,c)>>>0)continue;break}while(1){e=c;c=c+1|0;if(i>>>0>P(e,c)>>>0)continue;break}k=e+k|0}n:{if((k+1|0)>=(g|0)){if((g| +0)<=0)break n;while(1){Eq(a,K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24),f);c=g>>>0>1;g=g-1|0;if(c)continue;break}break n}e=K[f+68|0]|K[f+69|0]<<8|(K[f+70|0]<<16|K[f+71|0]<<24);c=e+(K[f+24|0]|K[f+25|0]<<8|(K[f+26|0]<<16|K[f+27|0]<<24))|0;H[f+68|0]=c;H[f+69|0]=c>>>8;H[f+70|0]=c>>>16;H[f+71|0]=c>>>24;e=K[f+64|0]|K[f+65|0]<<8|(K[f+66|0]<<16|K[f+67|0]<<24)|(K[f+56|0]|K[f+57|0]<<8|(K[f+58|0]<<16|K[f+59|0]<<24))<>>8;H[f+66|0]=e>>>16;H[f+67|0]=e>>>24;if((c|0)>=8){d=f+72|0;c= +K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<<16|K[f+331|0]<<24);while(1){i=c+1|0;H[f+328|0]=i;H[f+329|0]=i>>>8;H[f+330|0]=i>>>16;H[f+331|0]=i>>>24;H[(c+f|0)+72|0]=e;c=K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<<16|K[f+331|0]<<24);if((c|0)>=255){e=J[a+1096>>2];kc[J[J[e>>2]+44>>2]](e,c&255)|0;c=J[a+1096>>2];kc[J[J[c>>2]+16>>2]](c,d,1,K[f+328|0]|K[f+329|0]<<8|(K[f+330|0]<<16|K[f+331|0]<<24))|0;H[f+328|0]=0;H[f+329|0]=0;H[f+330|0]=0;H[f+331|0]=0;c=0}e=(K[f+64|0]|K[f+65|0]<<8|(K[f+66|0]<<16|K[f+67|0]<<24))>>>8|0;H[f+ +64|0]=e;H[f+65|0]=e>>>8;H[f+66|0]=e>>>16;H[f+67|0]=e>>>24;k=K[f+68|0]|K[f+69|0]<<8|(K[f+70|0]<<16|K[f+71|0]<<24);i=k-8|0;H[f+68|0]=i;H[f+69|0]=i>>>8;H[f+70|0]=i>>>16;H[f+71|0]=i>>>24;if((k|0)>15)continue;break}}H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=1;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;c=K[f+28|0]|K[f+29|0]<<8|(K[f+30|0]<<16|K[f+31|0]<<24);H[f+24|0]=c;H[f+25|0]=c>>>8;H[f+26|0]=c>>>16;H[f+27|0]=c>>>24;c=K[f+40|0]|K[f+41|0]<<8|(K[f+ +42|0]<<16|K[f+43|0]<<24);H[f+36|0]=c;H[f+37|0]=c>>>8;H[f+38|0]=c>>>16;H[f+39|0]=c>>>24;c=K[f+48|0]|K[f+49|0]<<8|(K[f+50|0]<<16|K[f+51|0]<<24);H[f+44|0]=c;H[f+45|0]=c>>>8;H[f+46|0]=c>>>16;H[f+47|0]=c>>>24;UD(a,g,f)}break i}m=0;i=g;d=h+4|0;l=K[d+52|0]|K[d+53|0]<<8|(K[d+54|0]<<16|K[d+55|0]<<24);c=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);n=(g|0)/(c|0)|0;f=g-P(n,c)|0;o=(f|0)!=0;e=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);o:{if((l|0)>=(o+(e+n|0)|0)){g=P(l+1|0,l)>>>1|0;break o}k=1; +g=P(l+1|0,l)>>>1|0;n=l-e|0;f=i-P(c,n)|0;p:{if(g>>>0>f>>>0){c=f;break p}c=f;while(1){m=l+m|0;c=c-g|0;if(g>>>0<=c>>>0)continue;break}}o=c;e=c;q:{r:{s:switch(c|0){case 0:break q;case 1:break r;default:break s}while(1){k=k<<1;e=o>>>0>3;o=o>>>2|0;if(e)continue;break}while(1){e=k;k=e+((c>>>0)/(e>>>0)|0)>>>1|0;if((e|0)==(k|0))break r;if((e+1|0)!=(k|0))continue;break}}k=c<<1;while(1){c=e;e=c-1|0;if(k>>>0<=P(c+1|0,c)>>>0)continue;break}while(1){e=c;c=c+1|0;if(k>>>0>P(e,c)>>>0)continue;break}m=e+m|0}o=m+1| +0}k=0;t:{if(g>>>0>i>>>0){e=i;break t}e=i;while(1){k=k+l|0;e=e-g|0;if(g>>>0<=e>>>0)continue;break}}g=1;m=e;u:{v:{w:{c=e;switch(c|0){case 0:break u;case 1:break v;default:break w}}while(1){g=g<<1;c=m>>>0>3;m=m>>>2|0;if(c)continue;break}while(1){c=g;g=c+((e>>>0)/(c>>>0)|0)>>>1|0;if((c|0)==(g|0))break v;if((c+1|0)!=(g|0))continue;break}}e=e<<1;while(1){g=c;c=c-1|0;if(e>>>0<=P(g+1|0,g)>>>0)continue;break}while(1){c=g;g=c+1|0;if(e>>>0>P(g,c)>>>0)continue;break}k=c+k|0}x:{if(k+1>>>0>>0){c=K[d+68|0]| +K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);e=c+(K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24))|0;H[d+68|0]=e;H[d+69|0]=e>>>8;H[d+70|0]=e>>>16;H[d+71|0]=e>>>24;c=K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24)|(K[d+56|0]|K[d+57|0]<<8|(K[d+58|0]<<16|K[d+59|0]<<24))<>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;if((e|0)>=8){f=d+72|0;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);while(1){e=g+1|0;H[d+328|0]=e;H[d+329|0]=e>>>8;H[d+330|0]=e>>>16;H[d+331|0]=e>>> +24;H[(d+g|0)+72|0]=c;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);if((g|0)>=255){c=J[a+1096>>2];kc[J[J[c>>2]+44>>2]](c,g&255)|0;c=J[a+1096>>2];kc[J[J[c>>2]+16>>2]](c,f,1,K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24))|0;H[d+328|0]=0;H[d+329|0]=0;H[d+330|0]=0;H[d+331|0]=0;g=0}c=(K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24))>>>8|0;H[d+64|0]=c;H[d+65|0]=c>>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;k=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);e=k-8|0;H[d+68|0]=e;H[d+ +69|0]=e>>>8;H[d+70|0]=e>>>16;H[d+71|0]=e>>>24;if((k|0)>15)continue;break}}H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35|0]=0;H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=1;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;c=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[d+36|0]=c;H[d+37|0]=c>>>8;H[d+38|0]=c>>>16;H[d+39|0]=c>>>24;c=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<< +24);H[d+44|0]=c;H[d+45|0]=c>>>8;H[d+46|0]=c>>>16;H[d+47|0]=c>>>24;UD(a,i,d);break x}H[d+44|0]=l;H[d+45|0]=l>>>8;H[d+46|0]=l>>>16;H[d+47|0]=l>>>24;if((n|0)>0)while(1){Eq(a,((K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24))+(K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24))|0)-2|0,d);c=n>>>0>1;n=n-1|0;if(c)continue;break}y:{if(!f)break y;if(K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24)){UD(a,f,d);break y}if((f|0)==1){Eq(a,K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24),d);break y}Eq(a,((K[d+ +4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24))+f|0)-2|0,d)}g=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<<24);H[d+44|0]=g;H[d+45|0]=g>>>8;H[d+46|0]=g>>>16;H[d+47|0]=g>>>24;if((g|0)<=(K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24))){c=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);i=c+(K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24))|0;H[d+68|0]=i;H[d+69|0]=i>>>8;H[d+70|0]=i>>>16;H[d+71|0]=i>>>24;c=K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24)|(K[d+56|0]|K[d+57|0]<<8|(K[d+ +58|0]<<16|K[d+59|0]<<24))<>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;e=d;if((i|0)>=8){f=d+72|0;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);while(1){i=g+1|0;H[d+328|0]=i;H[d+329|0]=i>>>8;H[d+330|0]=i>>>16;H[d+331|0]=i>>>24;H[(d+g|0)+72|0]=c;g=K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24);if((g|0)>=255){c=J[a+1096>>2];kc[J[J[c>>2]+44>>2]](c,g&255)|0;c=J[a+1096>>2];kc[J[J[c>>2]+16>>2]](c,f,1,K[d+328|0]|K[d+329|0]<<8|(K[d+330|0]<<16|K[d+331|0]<<24))|0;H[d+ +328|0]=0;H[d+329|0]=0;H[d+330|0]=0;H[d+331|0]=0;g=0}c=(K[d+64|0]|K[d+65|0]<<8|(K[d+66|0]<<16|K[d+67|0]<<24))>>>8|0;H[d+64|0]=c;H[d+65|0]=c>>>8;H[d+66|0]=c>>>16;H[d+67|0]=c>>>24;k=K[d+68|0]|K[d+69|0]<<8|(K[d+70|0]<<16|K[d+71|0]<<24);i=k-8|0;H[d+68|0]=i;H[d+69|0]=i>>>8;H[d+70|0]=i>>>16;H[d+71|0]=i>>>24;if((k|0)>15)continue;break}c=K[d+48|0]|K[d+49|0]<<8|(K[d+50|0]<<16|K[d+51|0]<<24)}else c=g;H[d+44|0]=c;H[e+45|0]=c>>>8;H[e+46|0]=c>>>16;H[e+47|0]=c>>>24;H[d+32|0]=0;H[d+33|0]=0;H[d+34|0]=0;H[d+35|0]= +0;H[d+16|0]=0;H[d+17|0]=0;H[d+18|0]=0;H[d+19|0]=0;H[d+20|0]=1;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;c=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[d+36|0]=c;H[d+37|0]=c>>>8;H[d+38|0]=c>>>16;H[d+39|0]=c>>>24}}}g=0;J[h+12>>2]=0}if((j|0)!=-1){if(J[h+4>>2]==(j|0)){J[h+12>>2]=g+1;continue}J[h+4>>2]=j;J[h+12>>2]=1;continue}break}e=J[h+72>>2];c=e+J[h+28>>2]|0;J[h+72>>2]=c;g=J[h+68>> +2]|J[h+64>>2]<>2]=g;if((c|0)>=8){e=h+76|0;j=J[h+332>>2];while(1){J[h+332>>2]=j+1;H[(h+j|0)+76|0]=g;j=J[h+332>>2];if((j|0)>=255){c=J[a+1096>>2];kc[J[J[c>>2]+44>>2]](c,j&255)|0;c=J[a+1096>>2];kc[J[J[c>>2]+16>>2]](c,e,1,J[h+332>>2])|0;J[h+332>>2]=0;j=0}g=J[h+68>>2]>>>8|0;J[h+68>>2]=g;i=J[h+72>>2];c=i-8|0;J[h+72>>2]=c;if((i|0)>15)continue;break}}z:{A:{B:{if((c|0)<=0){j=J[h+332>>2];break B}c=J[h+332>>2];J[h+332>>2]=c+1;H[(c+h|0)+76|0]=g;j=J[h+332>>2];if((j|0)>254)break A}if((j|0)<=0)break z}c= +J[a+1096>>2];kc[J[J[c>>2]+44>>2]](c,j&255)|0;a=J[a+1096>>2];kc[J[J[a>>2]+16>>2]](a,h+76|0,1,J[h+332>>2])|0}fc=h+336|0;break b;default:break c}J[a+1096>>2]=b;J[a+1092>>2]=c;J[a+1088>>2]=0;J[a+1080>>2]=c;J[a+992>>2]=0;J[a+996>>2]=0;J[a+1108>>2]=0;g=-1;e=1<>2]=e;I[a+1084>>1]=-1<>2]=e+1;I[a+1086>>1]=e+2;c=J[a+988>>2];C:{if(!c)break C;J[a+988>>2]=c-1;g=Ij(a,J[a+980>>2],J[a+984>>2]);c=J[a+980>>2]+1|0;J[a+980>>2]=c;if((c|0)!=J[a+16>>2])break C;J[a+980>>2]=0;J[a+984>>2]=J[a+984>> +2]-1}Ac(J[a+1072>>2],255,20012);fo(a,I[a+1100>>1]);c=J[a+988>>2];if(c)while(1){J[a+988>>2]=c-1;e=Ij(a,J[a+980>>2],J[a+984>>2]);c=J[a+980>>2]+1|0;J[a+980>>2]=c;if((c|0)==J[a+16>>2]){J[a+980>>2]=0;J[a+984>>2]=J[a+984>>2]-1}f=J[a+1072>>2];c=e<<4^g;d=J[f+(c<<2)>>2];i=(e<<12)+g|0;D:{if((d|0)==(i|0)){e=L[J[a+1076>>2]+(c<<1)>>1];break D}if((d|0)>=0){d=c?c-5003|0:-1;while(1){c=c+d|0;c=(c|0)<0?c+5003|0:c;j=J[f+(c<<2)>>2];if((j|0)==(i|0)){e=L[J[a+1076>>2]+(c<<1)>>1];break D}if((j|0)>0)continue;break}}fo(a, +g<<16>>16);g=I[a+1086>>1];if((g|0)<=4095){I[a+1086>>1]=g+1;I[J[a+1076>>2]+(c<<1)>>1]=g;J[J[a+1072>>2]+(c<<2)>>2]=i;break D}Ac(J[a+1072>>2],255,20012);J[a+1088>>2]=1;c=I[a+1100>>1];I[a+1086>>1]=c+2;fo(a,c)}g=e;c=J[a+988>>2];if(c)continue;break}fo(a,g<<16>>16);fo(a,I[a+1104>>1])}kc[J[J[b>>2]+44>>2]](b,0)|0}function v7(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;g=fc-32|0;fc=g;r=J[b+100>>2];a:{b:{if(yd(a,0))break b;d=Te(a,260304,b+184|0);J[g+28>>2]= +d;if(J[b+184>>2]!=1885562369|d)break b;d=J[b+188>>2];if(!d)break b;h=J[a+4>>2];if(h>>>0<16)break b;e=h>>>4|0;if(!(d>>>0<=9&e>>>0>=d>>>0)){d=h>>>0>=144?9:e;J[b+188>>2]=d}d=_c(r,16,0,d,0,g+28|0);J[b+192>>2]=d;if(J[g+28>>2])break b;c:{d:{e:{f:{if(J[b+188>>2]){while(1){e=Te(a,260320,d);J[g+28>>2]=e;if(e)break d;d=d+16|0;f=f+1|0;e=J[b+188>>2];if(f>>>0>>0)continue;break}d=J[b+192>>2];if((e|0)==1)break f;f=e}h=0;g:{h:{while(1){m=h+1|0;if((m|0)==(f|0)){i=f-1|0;h=J[a+4>>2];d=J[b+192>>2];break h}l=h^-1; +e=J[d+12>>2];k=0;i=0;while(1){j=(i<<4)+d|0;i=i+1|0;f=(i<<4)+d|0;h=J[f+12>>2];if(e>>>0>h>>>0){e=J[j+12>>2];J[g+16>>2]=J[j+8>>2];J[g+20>>2]=e;e=J[j+4>>2];J[g+8>>2]=J[j>>2];J[g+12>>2]=e;e=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=e;e=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=e;e=J[g+20>>2];J[f+8>>2]=J[g+16>>2];J[f+12>>2]=e;e=J[g+12>>2];J[f>>2]=J[g+8>>2];J[f+4>>2]=e;k=1;h=J[f+12>>2]}e=J[j+8>>2];if(e>>>0>h>>>0|M[j+12>>2]>h-e>>>0)break g;e=h;f=J[b+188>>2];if(l+f>>>0>i>>>0)continue;break}i=f-1|0;if(k){h=m;if(i>>> +0>h>>>0)continue}break}h=J[a+4>>2];d=J[b+192>>2];m=d;if(!i)break e}m=((f<<4)+d|0)-16|0;e=0;f=d;while(1){k=J[f+8>>2];if(!(k>>>0<=h>>>0&M[f+12>>2]<=h-k>>>0)){J[g+28>>2]=8;break d}f=f+16|0;e=e+1|0;if((i|0)!=(e|0))continue;break}break e}J[g+28>>2]=9;break d}h=J[a+4>>2];m=d}e=J[m+12>>2];if(e>>>0>h>>>0){J[g+28>>2]=8;break d}e=h-e|0;if(e>>>0>2])J[m+8>>2]=e;J[g+4>>2]=0;break c}d=J[b+192>>2];if(d)kc[J[r+8>>2]](r,d);d=0;J[b+192>>2]=0;e=J[g+28>>2];J[g+4>>2]=e;if(e)break b}J[b>>2]=1;J[b+4>>2]=0;e=0;if((c| +0)<0)break a;p=J[b+100>>2];i=3;i:{j:{c=J[b+188>>2];k:{if(!c)break k;f=0;while(1){e=(f<<4)+d|0;if(J[e>>2]==1){i=83;d=J[e+12>>2];c=J[a+8>>2];if(d>>>0>>0)break k;if(kg(a,d-c|0))break k;k=J[e+8>>2];c=0;J[g+8>>2]=0;d=oj(a,g+8|0);if(!J[g+8>>2])break j;f=0;break i}f=f+1|0;if((c|0)!=(f|0))continue;break}}J[g+8>>2]=i;c=0;f=0;break i}if(d>>>0>255){f=0;break i}m=d&4;l:{if(m){e=Rf(a,g+8|0);break l}e=oj(a,g+8|0)}if(J[g+8>>2]){f=0;break i}if(e>>>0>(k>>>0)/9>>>0){J[g+8>>2]=8;f=0;break i}n=e>>>0>=256?256:e;J[b+ +280>>2]=n;f=_c(p,12,0,n,0,g+8|0);if(J[g+8>>2])break i;m:{if(!e)break m;h=n>>>0<=1?1:n;i=0;if(!m)while(1){d=Te(a,260384,P(i,12)+f|0);J[g+8>>2]=d;if(d)break i;i=i+1|0;if((h|0)!=(i|0))continue;break m}while(1){d=Te(a,260352,P(i,12)+f|0);J[g+8>>2]=d;if(d)break i;i=i+1|0;if((h|0)!=(i|0))continue;break}}d=kg(a,P(e-n|0,9));J[g+8>>2]=d;if(d){J[g+8>>2]=83;break i}n:{d=e&3;if(!d)break n;d=kg(a,4-d|0);J[g+8>>2]=d;if(!d)break n;J[g+8>>2]=83;break i}o:{if(m){d=Rf(a,g+8|0);break o}d=oj(a,g+8|0)}if(J[g+8>>2])break i; +if(d>>>0>k+P(e,-9)>>>0){J[g+8>>2]=8;break i}j=d>>>0>=16777472?16777472:d;h=g+8|0;c=_c(p,1,0,j+1|0,0,h);if(J[g+8>>2])break i;d=zg(a,c,j);J[g+8>>2]=d;if(d)break i;l=_c(p,12,0,n,0,h);if(J[g+8>>2])break i;J[b+284>>2]=l;if(e){h=n>>>0<=1?1:n;d=0;while(1){e=P(d,12);k=e+f|0;m=J[k>>2];if(!((m|0)>=0&j>>>0>=m>>>0)){J[g+8>>2]=9;break i}i=e+l|0;w=i,x=zk(p,c+m|0,g+8|0),J[w>>2]=x;if(J[g+8>>2])break i;e=K[k+4|0];H[i+4|0]=e;m=J[k+8>>2];p:{if(e){if(!((m|0)>=0&j>>>0>=m>>>0)){J[g+8>>2]=9;break i}w=i,x=zk(p,c+m|0,g+8| +0),J[w+8>>2]=x;if(!J[g+8>>2])break p;break i}J[i+8>>2]=m}d=d+1|0;if((h|0)!=(d|0))continue;break}}J[g+8>>2]=0}if(f)kc[J[p+8>>2]](p,f);if(c)kc[J[p+8>>2]](p,c);c=J[g+8>>2];J[g+4>>2]=c;if(c)break b;q:{r:{c=J[b+188>>2];if(!c)break r;d=J[b+192>>2];f=0;while(1){if(J[(f<<4)+d>>2]!=256){f=f+1|0;if((f|0)!=(c|0))continue;break r}break}m=0;break q}c=u7(a,b,2);J[g+4>>2]=c;if(c)break b;c=J[b+188>>2];d=J[b+192>>2];m=1}if(!c)break b;i=J[b+100>>2];f=0;s:{t:{while(1){u:{e=(f<<4)+d|0;if(J[e>>2]==4){d=J[e+12>>2];c=J[a+ +8>>2];if(d>>>0>>0)break b;if(kg(a,d-c|0))break b;e=J[e+8>>2];J[g+28>>2]=0;c=g+28|0;f=oj(a,c);if(J[g+28>>2]|((f|256)&-256)!=256)break b;h=f&4;v:{if(f>>>0<=255){if(h){c=Rf(a,c);break v}c=oj(a,g+28|0);break v}if(h){c=ee(a,g+28|0);break v}c=P7(a,g+28|0)}if(J[g+28>>2])break b;d=c-1|0;w:{if(f>>>0<=255){if(d>>>0<(e>>>0)/12>>>0)break w;break b}if(d>>>0>=(e>>>0)/5>>>0)break b}c=c>>>0>=65535?65535:c+1|0;J[b+288>>2]=c;c=_c(i,16,0,c,0,g+28|0);J[b+292>>2]=c;if(J[g+28>>2])break b;x:{if(M[b+288>>2]<2)break x; +d=c+16|0;e=1;if(f>>>0<=255){f=h?260544:260576;while(1){h=Te(a,f,d);J[g+28>>2]=h;J[c+28>>2]=0;if(h)break t;h=d;if(!(I[c+18>>1]>=I[d>>1]&I[c+22>>1]>=(0-I[c+24>>1]|0))){I[c+20>>1]=0;I[d>>1]=0;I[c+22>>1]=0;I[c+24>>1]=0;I[c+18>>1]=0}d=h+16|0;c=h;e=e+1|0;if(e>>>0>2])continue;break}break x}while(1){h=Te(a,260608,g+8|0);if(h)break u;I[d>>1]=K[g+8|0]-128;k=K[g+9|0]-128|0;I[c+18>>1]=k;I[c+20>>1]=K[g+10|0]-128;f=K[g+11|0]-128|0;I[c+22>>1]=f;l=K[g+12|0];I[c+26>>1]=0;I[c+24>>1]=l-128;J[g+28>>2]=0;J[c+ +28>>2]=0;h=d;if(!((k|0)>=I[d>>1]&(f|0)>=(128-l|0))){I[c+20>>1]=0;I[d>>1]=0;I[c+22>>1]=0;I[c+24>>1]=0;I[c+18>>1]=0}d=h+16|0;c=h;e=e+1|0;if(e>>>0>2])continue;break}}J[g+4>>2]=0;break s}f=f+1|0;if((f|0)!=(c|0))continue;break b}break}J[g+28>>2]=h;J[c+28>>2]=0}c=J[b+292>>2];if(c)kc[J[i+8>>2]](i,c);J[b+292>>2]=0;c=J[g+28>>2];J[g+4>>2]=c;if(c)break b}d=J[b+188>>2];if(!d)break b;c=J[b+192>>2];f=0;while(1){e=c+(f<<4)|0;if(J[e>>2]==8){d=J[e+12>>2];c=J[a+8>>2];if(d>>>0>>0)break b;if(kg(a,d-c|0))break b; +l=J[e+8>>2];c=af(a,8);J[g+8>>2]=c;if(c)break b;k=Q7(a);h=k&4;y:{if(h){c=Fh(a);break y}c=Q7(a)}ve(a);if(k>>>0>255)break b;d=c>>>0>=65534?65534:c;if((d|0)!=(J[b+288>>2]-1|0))break b;z:{if(!c)break z;e=(J[a+8>>2]+(d<<2)|0)+16|0;f=1;d=d>>>0<=1?1:d;if(!h)while(1){c=oj(a,g+8|0);J[(J[b+292>>2]+(f<<4)|0)+12>>2]=e+(c>>>0<=l>>>0?c:0);c=(d|0)==(f|0);f=f+1|0;if(!c)continue;break z}while(1){c=Rf(a,g+8|0);J[(J[b+292>>2]+(f<<4)|0)+12>>2]=e+(c>>>0<=l>>>0?c:0);c=(d|0)!=(f|0);f=f+1|0;if(c)continue;break}}if(J[g+8>> +2])break b;A:{if(h){Rf(a,g+8|0);if(J[g+8>>2])break b;Rf(a,g+8|0);if(J[g+8>>2])break b;Rf(a,g+8|0);if(J[g+8>>2])break b;Rf(a,g+8|0);if(!J[g+8>>2])break A;break b}oj(a,g+8|0);if(J[g+8>>2])break b;oj(a,g+8|0);if(J[g+8>>2])break b;oj(a,g+8|0);if(J[g+8>>2])break b;oj(a,g+8|0);if(J[g+8>>2])break b}J[b+312>>2]=k;J[g+4>>2]=0;i=a;a=0;l=fc-16|0;fc=l;e=3;h=J[b+188>>2];B:{if(!h)break B;n=b+296|0;d=J[b+192>>2];f=J[b+100>>2];while(1){c=d+(a<<4)|0;if(J[c>>2]==32){e=83;c=J[c+12>>2];a=J[i+8>>2];if(c>>>0>>0)break B; +if(kg(i,c-a|0))break B;J[l+12>>2]=0;c=oj(i,l+12|0);e=J[l+12>>2];if(e)break B;e=3;if(c>>>0>255)break B;j=c&4;C:{if(j){e=Te(i,260640,n);break C}e=Te(i,260672,n)}J[l+12>>2]=e;if(e)break B;e=8;c=L[b+296>>1];h=L[b+298>>1];if(c>>>0>h>>>0|h>>>0>255)break B;a=L[b+300>>1];d=L[b+302>>1];if(a>>>0>d>>>0|d>>>0>255)break B;a=P((d-a|0)+1|0,(h-c|0)+1|0);w=b,x=_c(f,2,0,a,0,l+12|0),J[w+308>>2]=x;e=J[l+12>>2];if(e)break B;a=af(i,a<<1);J[l+12>>2]=a;D:{if(!a){e=L[b+304>>1];d=e>>>8|0;c=L[b+300>>1];E:{F:{if(d>>>0>>0){a= +L[n>>1];break F}a=L[b+296>>1];if(L[b+302>>1]>>0)break F;h=e&255;if(h>>>0<(a&65535)>>>0)break F;k=L[b+298>>1];if(k>>>0>=h>>>0)break E}I[b+304>>1]=(c<<8)+a;k=L[b+298>>1];d=c;h=a}e=1;a=a&65535;a=J[i+32>>2]+(((h&65535)-a|0)+P((k-a|0)+1|0,d-c|0)<<1)|0;a=K[a+!j|0]<<8|K[a+((j|0)!=0)|0];if((a|0)!=65535){a=a+1&65535;e=a>>>0>=M[b+288>>2]?1:a}d=J[b+292>>2];c=(e<<4)+d|0;a=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=a;a=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=a;e=L[b+300>>1];G:{if(e>>>0>L[b+302>>1])break G;d=L[b+ +298>>1];if(d>>>0>1])break G;a=J[b+308>>2];while(1){f=L[n>>1];H:{if(f>>>0>(d&65535)>>>0)break H;if(!j)while(1){c=js(i)+1|0;I[a>>1]=(c|0)!=(c&65535)?-1:c;a=a+2|0;d=L[b+298>>1];f=f+1|0;if(d>>>0>=(f&65535)>>>0)continue;break H}while(1){c=tf(i)+1|0;I[a>>1]=(c|0)!=(c&65535)?-1:c;a=a+2|0;d=L[b+298>>1];f=f+1|0;if(d>>>0>=(f&65535)>>>0)continue;break}}e=e+1|0;if(L[b+302>>1]>=(e&65535)>>>0)continue;break}}ve(i);break D}a=J[b+308>>2];if(a)kc[J[f+8>>2]](f,a);J[b+308>>2]=0}e=J[l+12>>2];break B}a=a+1|0; +if((h|0)!=(a|0))continue;break}}fc=l+16|0;J[g+4>>2]=e;if(e)break b;if(!m){a=u7(i,b,256);J[g+4>>2]=a;if(a)break b}a=J[b+8>>2];J[b+8>>2]=a|18;if(K[b+199|0])J[b+8>>2]=a|22;a=0;m=0;c=0;s=fc-16|0;fc=s;J[s+12>>2]=0;j=b;J[b+12>>2]=0;l=1;n=J[b+100>>2];h=8;f=7;i=242685;k=J[b+280>>2];I:{if((k|0)<=0){t=1;p=1;break I}o=J[j+284>>2];while(1){J:{b=a;d=Ic(J[o+P(a,12)>>2],241984);a=a+1|0;if((k|0)<=(a|0))break J;if(d)continue}break}e=2;K:{if(d){l=0;break K}if(!K[(o+P(b,12)|0)+4|0]){l=0;break K}l=0;L:{a=(o+P(a,12)| +0)-4|0;switch(K[J[a>>2]]-73|0){case 0:case 6:case 32:case 38:break L;default:break K}}J[j+12>>2]=1;l=(K[J[a>>2]]&223)==79?242061:242204;e=3}while(1){M:{b=c;d=Ic(J[o+P(b,12)>>2],242326);c=b+1|0;if((k|0)<=(c|0))break M;if(d)continue}break}a=0;t=1;q=0;N:{if(d)break N;q=0;if(!K[(o+P(b,12)|0)+4|0])break N;q=0;if((K[J[(o+P(c,12)|0)-4>>2]]|32)!=98)break N;J[j+12>>2]=e;t=0;q=242423}while(1){O:{b=a;d=Ic(J[o+P(a,12)>>2],242518);a=a+1|0;if((k|0)<=(a|0))break O;if(d)continue}break}c=0;e=0;P:{if(d)break P;e=0; +if(!K[(o+P(b,12)|0)+4|0])break P;a=J[(o+P(a,12)|0)-4>>2];b=K[a|0];e=0;if(!b)break P;e=0;if((b|0)==78)break P;e=0;if((b|0)==110)break P;e=a}while(1){Q:{a=c;m=Ic(J[o+P(a,12)>>2],242611);c=a+1|0;if((k|0)<=(c|0))break Q;if(m)continue}break}b=0;k=0;d=0;R:{if(m)break R;S:{if(!K[(o+P(a,12)|0)+4|0])break S;a=J[(o+P(c,12)|0)-4>>2];c=K[a|0];if(!c|(c|0)==78)break S;d=0;if((c|0)==110)break R;b=a;k=Yc(a);d=k+1|0;break R}d=0}T:{if(t){q=0;break T}u=Yc(q);d=(u+d|0)+1|0}m=0;if(l){v=Yc(l);d=(v+d|0)+1|0;a=l}else a= +0;o=a;U:{if(!e){a=0;break U}a=Yc(e);d=(d+a|0)+1|0;m=e}l=!l;p=!e;if(!d)break I;i=b;f=k;h=d}e=he(n,h,s+12|0);J[j+24>>2]=e;d=J[s+12>>2];if(!d){if(i){k=xc(e,i,f);V:{if(!f)break V;c=0;e=0;if(f>>>0>=4){h=f&-4;d=0;while(1){b=e+k|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|1)|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|2)|0;if(K[b|0]==32)H[b|0]=45;b=k+(e|3)|0;if(K[b|0]==32)H[b|0]=45;e=e+4|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}d=f&3;if(!d)break V;while(1){b=e+k|0;if(K[b|0]==32)H[b|0]=45;e=e+1|0;c=c+1|0;if((d|0)!=(c|0))continue; +break}}e=f+k|0}if(!t){if(J[j+24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}e=xc(e,q,u)+u|0}if(!l){if(J[j+24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}e=xc(e,o,v)+v|0}if(!p){if(J[j+24>>2]!=(e|0)){H[e|0]=32;e=e+1|0}f=xc(e,m,a);W:{if(!a)break W;c=0;e=0;if(a>>>0>=4){h=a&-4;d=0;while(1){b=e+f|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|1)|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|2)|0;if(K[b|0]==32)H[b|0]=45;b=f+(e|3)|0;if(K[b|0]==32)H[b|0]=45;e=e+4|0;d=d+4|0;if((h|0)!=(d|0))continue;break}}d=a&3;if(!d)break W;while(1){b=e+f|0;if(K[b|0]==32)H[b| +0]=45;e=e+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}e=a+f|0}H[e|0]=0;d=J[s+12>>2]}fc=s+16|0;J[g+4>>2]=d;if(d)break b;a=Fq(j,241027);X:{if(!(!a|!K[a+4|0])){w=j,x=zk(r,J[a+8>>2],g+4|0),J[w+20>>2]=x;if(!J[g+4>>2])break X;break b}J[j+20>>2]=0}J[j+28>>2]=1;J[j+16>>2]=J[j+288>>2];a=_c(r,16,0,1,0,g+4|0);J[j+32>>2]=a;if(J[g+4>>2])break b;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;f=32767;c=J[j+208>>2]+J[j+204>>2]|0;b=c>>31;if((b^c)-b>>>0<=32767){b=c<<16>>16;c=b>>31;f=(b^c)-c|0}I[a>>1]=f;b=Fq(j,241157); +Y:{if(b){c=J[b+8>>2];b=c>>31;d=32767;if((b^c)-b>>>0>327665)break Y;b=(c+5|0)/10<<16>>16;c=b>>31;d=(b^c)-c|0;break Y}d=Od(f<<16>>16,2,3)}I[a+2>>1]=d;b=Fq(j,241308);if(b){b=J[b+8>>2];c=b>>31;b=(b^c)-c|0;if(b>>>0<=328898)b=Od(b,460800,72270);else b=32767;J[a+4>>2]=b}b=Fq(j,241443);if(b){c=J[b+8>>2];b=c>>31;if((b^c)-b>>>0<=32767){b=c<<16>>16;c=b>>31;b=(b^c)-c<<6}else b=2097088;J[a+12>>2]=b}c=Fq(j,241546);b=0;Z:{if(!c)break Z;d=J[c+8>>2];c=d>>31;b=32767;if((c^d)-c>>>0>32767)break Z;b=d<<16;b=((b|0)<0? +0-b|0:b)>>16}_:{$:{aa:{ba:{c=Fq(j,241641);if(c){d=32767;e=J[c+8>>2];c=e>>31;if((c^e)-c>>>0>32767)break ba;c=e<<16>>16;d=c>>31;d=(c^d)-d|0;f=J[a+12>>2];if(f)break $;f=J[a+4>>2];J[a+12>>2]=f;if(!(d&65535))break _;c=a+12|0;break aa}f=J[a+12>>2];if(f)break _;f=J[a+4>>2];J[a+12>>2]=f;break _}f=J[a+12>>2];if(f)break $;f=J[a+4>>2];J[a+12>>2]=f;c=a+12|0}f=Od(f,d<<16>>16,72);J[c>>2]=f}if(!b|!(d&65535))break _;f=Od(f,b,d<<16>>16)}J[a+8>>2]=f;b=Fq(j,241747);a=Fq(j,241875);if(!(!b|!K[b+4|0]|(!a|!K[a+4|0]))){c= +J[a+8>>2];a=g+4|0;w=j,x=zk(r,c,a),J[w+176>>2]=x;if(J[g+4>>2])break b;w=j,x=zk(r,J[b+8>>2],a),J[w+180>>2]=x}if(J[g+4>>2])break b;e=0;break a}f=f+1|0;if((d|0)!=(f|0))continue;break}}e=3}fc=g+32|0;return e}function wWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=fc-32|0;fc=e;a:{b:{c:{d:{e:{if(!J[693458]){f=vc(32);J[f+28>>2]=0;J[f+24>>2]=J[194344];d=J[194343];J[f+16>>2]=J[194342];J[f+20>>2]=d;d=J[194341];J[f+8>>2]=J[194340];J[f+12>>2]=d;d=J[194339];J[f>>2]=J[194338];J[f+4>>2]=d;J[699344]=0;d=e+ +8|0;ca(15,d|0,f|0,7);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=74890;J[e+20>>2]=853856;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]= +g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(64);J[f+48>>2]=0;d=J[194605];J[f+40>>2]=J[194604];J[f+44>>2]=d;d=J[194603];J[f+32>>2]=J[194602];J[f+36>>2]=d;d=J[194601];J[f+24>>2]=J[194600];J[f+28>>2]=d;d=J[194599];J[f+16>>2]=J[194598];J[f+20>>2]=d;d=J[194597];J[f+8>>2]=J[194596];J[f+12>>2]=d;d=J[194595];J[f>>2]=J[194594];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,12);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=82510;J[e+20>>2]=928752;J[699344]= +0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=xc(vc(80),779552,76);J[f+ +76>>2]=0;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,19);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=75690;J[e+20>>2]=1011264;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>> +2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(64);J[f+60>>2]=0;J[f+56>>2]=J[195251];d=J[195250];J[f+48>>2]=J[195249];J[f+52>>2]=d;d=J[195248];J[f+40>>2]=J[195247];J[f+44>>2]=d;d=J[195246];J[f+32>>2]=J[195245];J[f+36>>2]=d;d=J[195244];J[f+24>>2]=J[195243];J[f+28>>2]=d;d=J[195242];J[f+16>>2]=J[195241];J[f+20>>2]=d;d=J[195240];J[f+8>>2]=J[195239];J[f+12>>2]=d;d=J[195238];J[f>>2]=J[195237];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,15); +h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=72071;J[e+20>>2]=1086960;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457], +d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(48);J[f+36>>2]=0;J[f+32>>2]=J[195508];d=J[195507];J[f+24>>2]=J[195506];J[f+28>>2]=d;d=J[195505];J[f+16>>2]=J[195504];J[f+20>>2]=d;d=J[195503];J[f+8>>2]=J[195502];J[f+12>>2]=d;d=J[195501];J[f>>2]=J[195500];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,9);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=49658;J[e+20>>2]=1159040;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]= +0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(64);J[f+56>>2]=0;d=J[195762];J[f+48>>2]=J[195761];J[f+52>>2]=d;d=J[195760];J[f+40>>2]=J[195759];J[f+44>>2]=d;d= +J[195758];J[f+32>>2]=J[195757];J[f+36>>2]=d;d=J[195756];J[f+24>>2]=J[195755];J[f+28>>2]=d;d=J[195754];J[f+16>>2]=J[195753];J[f+20>>2]=d;d=J[195752];J[f+8>>2]=J[195751];J[f+12>>2]=d;d=J[195750];J[f>>2]=J[195749];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,14);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=50932;J[e+20>>2]=1208704;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b; +g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=xc(vc(96),784092,84);J[f+84>>2]=0;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,21);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=55873;J[e+20>>2]=1259648;J[699344]=0;h=Ye(2773824, +e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=xc(vc(80),785068,68);J[f+68>>2]=0;J[699344]= +0;d=e+8|0;ca(15,d|0,f|0,17);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=54507;J[e+20>>2]=1315536;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]= +g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(32);J[f+24>>2]=0;d=J[196517];J[f+16>>2]=J[196516];J[f+20>>2]=d;d=J[196515];J[f+8>>2]=J[196514];J[f+12>>2]=d;d=J[196513];J[f>>2]=J[196512];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,6);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=32896;J[e+20>>2]=1370048;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g| +0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(48);J[f+40>>2]=0;d=J[196736];J[f+32>>2]=J[196735];J[f+36>>2]=d;d=J[196734];J[f+24>>2]=J[196733];J[f+28>>2]=d;d=J[196732];J[f+16>>2]=J[196731];J[f+20>>2]=d; +d=J[196730];J[f+8>>2]=J[196729];J[f+12>>2]=d;d=J[196728];J[f>>2]=J[196727];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,10);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=67173;J[e+20>>2]=1402944;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>> +2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(80);J[f+64>>2]=0;d=J[196946];J[f+56>>2]=J[196945];J[f+60>>2]=d;d=J[196944];J[f+48>>2]=J[196943];J[f+52>>2]=d;d=J[196942];J[f+40>>2]=J[196941];J[f+44>>2]=d;d=J[196940];J[f+32>>2]=J[196939];J[f+36>>2]=d;d=J[196938];J[f+24>>2]=J[196937];J[f+28>>2]=d;d=J[196936];J[f+16>>2]=J[196935];J[f+20>>2]=d;d=J[196934];J[f+ +8>>2]=J[196933];J[f+12>>2]=d;d=J[196932];J[f>>2]=J[196931];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,16);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=70676;J[e+20>>2]=1470128;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]= +g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(64);J[f+48>>2]=0;d=J[197170];J[f+40>>2]=J[197169];J[f+44>>2]=d;d=J[197168];J[f+32>>2]=J[197167];J[f+36>>2]=d;d=J[197166];J[f+24>>2]=J[197165];J[f+28>>2]=d;d=J[197164];J[f+16>>2]=J[197163];J[f+20>>2]=d;d=J[197162];J[f+8>>2]=J[197161];J[f+12>>2]=d;d=J[197160];J[f>>2]=J[197159];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0, +12);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=71913;J[e+20>>2]=1540816;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457], +d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(48);J[f+44>>2]=0;J[f+40>>2]=J[197390];d=J[197389];J[f+32>>2]=J[197388];J[f+36>>2]=d;d=J[197387];J[f+24>>2]=J[197386];J[f+28>>2]=d;d=J[197385];J[f+16>>2]=J[197384];J[f+20>>2]=d;d=J[197383];J[f+8>>2]=J[197382];J[f+12>>2]=d;d=J[197381];J[f>>2]=J[197380];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,11);h=J[699344];J[699344]=0;if((h|0)==1)break c;J[e+24>>2]=68241;J[e+20>>2]=1612736;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]= +0;if((d|0)==1)break b;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=J[e+12>>2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f);f=vc(64);J[f+48>>2]=0;d=J[197630];J[f+40>>2]=J[197629];J[f+44>>2]=d;d=J[197628]; +J[f+32>>2]=J[197627];J[f+36>>2]=d;d=J[197626];J[f+24>>2]=J[197625];J[f+28>>2]=d;d=J[197624];J[f+16>>2]=J[197623];J[f+20>>2]=d;d=J[197622];J[f+8>>2]=J[197621];J[f+12>>2]=d;d=J[197620];J[f>>2]=J[197619];J[f+4>>2]=d;J[699344]=0;d=e+8|0;ca(15,d|0,f|0,12);h=J[699344];J[699344]=0;if((h|0)==1)break e;J[e+24>>2]=45552;J[e+20>>2]=1680992;J[699344]=0;h=Ye(2773824,e+28|0,d);d=J[699344];J[699344]=0;if((d|0)==1)break d;if(!J[h>>2]){J[699344]=0;d=_(4,36)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;g=J[e+12>> +2];J[d+16>>2]=J[e+8>>2];J[d+20>>2]=g;J[d+24>>2]=J[e+16>>2];J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=J[e+24>>2];J[d+28>>2]=J[e+20>>2];J[d+32>>2]=g;J[d+8>>2]=J[e+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[h>>2]=d;g=J[J[693456]>>2];if(g){J[693456]=g;d=J[h>>2]}Oc(J[693457],d);J[693458]=J[693458]+1}if(H[e+19|0]<0)uc(J[e+8>>2]);uc(f)}a=mj(2773824,a);if((a|0)!=2773828){J[b>>2]=J[a+28>>2];J[c>>2]=J[a+32>>2]}fc=e+32|0;return(a|0)!=2773828|0}a=Z()|0;break a}a=Z()|0;if(H[e+19|0]>=0)break a;uc(J[e+8>>2]);break a}a=Z()|0; +break a}a=Z()|0;if(H[e+19|0]<0)uc(J[e+8>>2])}uc(f);ba(a|0);B()}function x$(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;M=fc-512|0;fc=M;e=J[a+8>>2];a:{if(kc[J[J[e>>2]+216>>2]](e,J[a+28>>2],b)|0)break a;b:switch(J[b+4>>2]-1|0){case 0:f=O[b+200>>3];d=O[b+208>>3];h=O[b+184>>3];g=O[b+192>>3];Om(b,h,g,M);Om(b,h,d,M+128|0);Om(b,f,g,M+ +256|0);Om(b,f,d,M+384|0);Iw(a,b,h,g,f,d,M,0);break a;case 1:m=fc-32800|0;fc=m;e=a;Cw(J[a+28>>2],m+32792|0,m+32784|0,m+32776|0,m+32768|0);c=b;u=O[b+184>>3];n=O[b+200>>3]-u;C=R(n);y=O[b+192>>3];p=O[b+208>>3]-y;D=R(p);k=C<1E-4&D<1E-4;c:{if(k){s=p*0+y;t=n*0+u;a=J[b+364>>2];H=O[b+224>>3];f=O[b+216>>3];break c}h=1/(n*n+p*p);i=O[m+32792>>3];f=(i-u)*n;j=O[m+32768>>3];q=p*(j-y);d=h*(f+q);x=O[m+32784>>3];s=p*(x-y);f=h*(f+s);d:{if(df)){g=f;break d}g=d}B=O[m+32776>>3];t=(B-u)*n;d=h* +(t+s);e:{if(dg))break e;g=d}d=h*(t+q);f:{if(dg))break f;g=d}I=g>1?1:g;b=J[c+368>>2];a=J[c+364>>2];q=f<0?0:f;s=q*p+y;t=q*n+u;g:{if(C>D){d=(j-s)/n;i=(x-s)/n;break g}h=-p;d=(B-t)/h;i=(i-t)/h}B=b?g:I;j=a?f:q;H=O[c+224>>3];f=O[c+216>>3];if(!(dD){h=(O[m+32768>>3]-x)/n;j=(O[m+32784>>3]-x)/n;break i}d=-p;h=(O[m+32776>>3]-v)/d;j=(O[m+ +32792>>3]-v)/d}if(!(h>2]+124|0,m,128);a=J[e+8>>2];kc[J[J[a>>2]+116>>2]](a,J[e+28>>2]);a=J[e+28>>2];h=d*n+x;O[a+608>>3]=h;d=v-d*p;O[a+600>>3]=d;a=J[a+596>>2];O[a+16>>3]=h;O[a+8>>3]=d;J[a>>2]=1;a=J[e+28>>2];d=j*n+x;O[a+608>>3]=d;h=v-j*p;O[a+600>>3]=h;re(J[a+596>>2],h,d);a=J[e+28>>2];O[a+608>>3]=g;O[a+600>>3]=i;re(J[a+596>>2],i,g);a=J[e+28>>2];O[a+608>>3]=s;O[a+600>>3]=t;re(J[a+596>>2],t,s);a=J[e+28>>2];gg(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<<2)| +0)-4>>2];o=J[b+12>>2]<<3;O[a+600>>3]=O[(o+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(o+J[b+4>>2]|0)-8>>3];a=J[e+8>>2];kc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);_f(J[e+28>>2])}d=H-f;E=I-q;a=0;while(1){RB(c,d*(q+E*(+(a|0)+.5)*.00390625)+f,m+(a<<7)|0);a=a+1|0;if((a|0)!=256)continue;break}j=-p;a=0;b=J[c+8>>2];z=kc[J[J[b>>2]+28>>2]](b)|0;while(1){j:{o=a;a=J[e+116>>2];k:{if(!a)break k;if((l|0)<100){l=l+1|0;break k}l=0;if(kc[a|0](J[e+120>>2])|0)break j}b=o+1|0;l:{if((o|0)>254){a=b;break l}if((z|0)>0){L=m+(o<<7)|0;while(1){T= +m+(b<<7)|0;a=0;m:{while(1){A=a<<2;Q=J[A+T>>2]-J[A+L>>2]|0;A=Q>>31;if((A^Q)-A>>>0<=256){a=a+1|0;if((z|0)!=(a|0))continue;break m}break}a=b;break l}a=256;b=b+1|0;if((b|0)!=256)continue;break}break l}a=256}f=q+E*+(a|0)*.00390625;x=f*p+y;v=f*n+u;d=0;f=0;n:{if(k)break n;o:{if(C>D){h=(O[m+32768>>3]-x)/n;f=(O[m+32784>>3]-x)/n;break o}h=(O[m+32776>>3]-v)/j;f=(O[m+32792>>3]-v)/j}if(!(f>h)){d=f;f=h;break n}d=h}xc(J[e+28>>2]+124|0,m+(o<<7)|0,128);b=J[e+8>>2];kc[J[J[b>>2]+116>>2]](b,J[e+28>>2]);b=J[e+28>>2]; +O[b+608>>3]=s;O[b+600>>3]=t;b=J[b+596>>2];O[b+16>>3]=s;O[b+8>>3]=t;J[b>>2]=1;b=J[e+28>>2];O[b+608>>3]=g;O[b+600>>3]=i;re(J[b+596>>2],i,g);b=J[e+28>>2];g=f*n+x;O[b+608>>3]=g;i=v-f*p;O[b+600>>3]=i;re(J[b+596>>2],i,g);b=J[e+28>>2];s=d*n+x;O[b+608>>3]=s;t=v-d*p;O[b+600>>3]=t;re(J[b+596>>2],t,s);b=J[e+28>>2];gg(J[b+596>>2]);o=J[b+596>>2];o=J[(J[o+24>>2]+(J[o+28>>2]<<2)|0)-4>>2];A=J[o+12>>2]<<3;O[b+600>>3]=O[(A+J[o>>2]|0)-8>>3];O[b+608>>3]=O[(A+J[o+4>>2]|0)-8>>3];b=J[e+8>>2];kc[J[J[b>>2]+204>>2]](b,J[e+ +28>>2]);_f(J[e+28>>2]);if((a|0)<256)continue}break}if(!(!(B>I)|!J[c+368>>2])){RB(c,H,m);h=B*p+y;u=B*n+u;d=0;f=0;p:{if(k)break p;q:{if(C>D){q=(O[m+32768>>3]-h)/n;f=(O[m+32784>>3]-h)/n;break q}q=(O[m+32776>>3]-u)/j;f=(O[m+32792>>3]-u)/j}if(!(f>q)){d=f;f=q;break p}d=q}xc(J[e+28>>2]+124|0,m,128);a=J[e+8>>2];kc[J[J[a>>2]+116>>2]](a,J[e+28>>2]);a=J[e+28>>2];O[a+608>>3]=s;O[a+600>>3]=t;a=J[a+596>>2];O[a+16>>3]=s;O[a+8>>3]=t;J[a>>2]=1;a=J[e+28>>2];O[a+608>>3]=g;O[a+600>>3]=i;re(J[a+596>>2],i,g);a=J[e+28>> +2];g=f*n+h;O[a+608>>3]=g;f=u-f*p;O[a+600>>3]=f;re(J[a+596>>2],f,g);a=J[e+28>>2];f=d*n+h;O[a+608>>3]=f;d=u-d*p;O[a+600>>3]=d;re(J[a+596>>2],d,f);a=J[e+28>>2];gg(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];c=J[b+12>>2]<<3;O[a+600>>3]=O[(c+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(c+J[b+4>>2]|0)-8>>3];a=J[e+8>>2];kc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);_f(J[e+28>>2])}fc=m+32800|0;break a;case 2:e=a;k=fc-288|0;fc=k;u=O[b+192>>3];C=O[b+216>>3];y=O[b+184>>3];D=O[b+208>>3];x=O[b+240>>3];t=O[b+ +232>>3];s=O[b+224>>3];p=O[b+200>>3];a=J[b+8>>2];o=kc[J[J[a>>2]+28>>2]](a)|0;r:{s:{H=D-y;I=C-u;f=Y(H*H+I*I);if(f==0)break s;n=s-p;if(n!=0){if(R(n)>=f+-1E-4)break s;B=Hv(n/f)}h=qf(I,H);Cw(J[e+28>>2],k+280|0,k+272|0,k+264|0,k+256|0);f=0;d=y+p;i=D+s-d;E=R(i);if(E>1E-6)f=(O[k+280>>3]-d)/i;d=y-p;i=D-s-d;r=R(i);if(r>1E-6)g=(O[k+264>>3]-d)/i;i=0;d=u+p;j=C+s-d;w=R(j);if(w>1E-6)i=(O[k+272>>3]-d)/j;d=u-p;j=C-s-d;N=R(j);if(N>1E-6)q=(O[k+256>>3]-d)/j;d=0;j=0;S=R(n);if(S>1E-6){v=-p/n;j=O[k+264>>3]-O[k+280>>3]; +V=j*j;j=O[k+256>>3]-O[k+272>>3];j=(Y(V+j*j)-p)/n}t:{if(!J[b+380>>2])break t;u:{if(!(!(f<0)|(!(y1E-6)))){a=1;d=f;break u}a=0;l=1;if(!(g<0)|(!(y>D)|!(r>1E-6)))break u;a=1;l=0;d=g}v:{w:{if(!(!(i<0)|(!(u1E-6)))){d=l?i:dC)|!(N>1E-6)))break v;d=l?q:d1E-6)|!(v<=0))break t;d=a?d>2]){f=1;T=1;break r}x:{if(!(!(f>1)|(!(y>D)|!(E>1E-6)))){a=1;l=0;break x}a=0;l=1;f=1;if(!(g>1)|(!(y1E-6)))break x;a=1;l=0;f=g}y:{z:{if(!(!(i> +1)|(!(u>C)|!(w>1E-6)))){f=l?i:f>i?i:f;break z}if(!(q>1)|(!(u1E-6)))break y;f=l?q:f>q?q:f}a=1}T=1;if(!(S>1E-6)|!(j>1))break r;f=a?f>j?j:f:j;break r}Cw(J[e+28>>2],k+280|0,k+272|0,k+264|0,k+256|0);z=e+28|0;f=1}A=3;L=p>s;E=L?p:s;a=J[z>>2];g=R(O[a+40>>3]);i=R(O[a+32>>3]);j=R(O[a+24>>3]);q=R(O[a+16>>3]);j=j>q?j:q;i=i>j?i:j;g=E*(g>i?g:i);if(!(g<1)){g=3.141592653589793/Qz(-.1/g+1);A:{if(R(g)<2147483648){a=~~g;break A}a=-2147483648}a=(a|0)>=200?200:a;A=(a|0)<=3?3:a}N=x-t;g=d*N+t;au(b,gx?x:g, +k+128|0);g=f*N+t;Z=gx?x:g;_=o&-2;$=o&1;aa=f-d;g=B+B;ba=3.141592653589793-g;ca=g+-3.141592653589793;S=h-B+-1.5707963267948966;W=g+3.141592653589793;q=d*I+u;j=d*H+y;X=s-p;i=d*X+p;v=+(A|0);B=h+B+1.5707963267948966;da=Ee(B);V=Me(B);while(1){B:{a=J[e+116>>2];C:{if(!a)break C;if((Q|0)<100){Q=Q+1|0;break C}Q=0;if(kc[a|0](J[e+120>>2])|0)break B}au(b,Z,k);m=256;D:{if((c|0)>254){h=f;break D}G=c+1|0;h=f;while(1){a=0;E:{if((o|0)<=0)break E;while(1){l=a<<2;U=J[l+k>>2]-J[l+(k+128|0)>>2]|0;l=U>>31;if((l^ +U)-l>>>0>256)break E;a=a+1|0;if((o|0)!=(a|0))continue;break}a=o}if((a|0)==(o|0)&(m|0)<=255)break D;m=(c+m|0)/2|0;h=+(m|0)*.00390625*aa+d;g=h*N+t;au(b,gx?x:g,k);if((m|0)>(G|0))continue;break}}g=h*X;n=h*I;r=h*H;F:{if((o|0)<=0)break F;a=0;c=0;if((o|0)!=1)while(1){l=a<<2;G=k+128|0;U=l+G|0;J[U>>2]=(J[k+l>>2]+J[U>>2]|0)/2;l=l|4;G=l+G|0;J[G>>2]=(J[k+l>>2]+J[G>>2]|0)/2;a=a+2|0;c=c+2|0;if((_|0)!=(c|0))continue;break}if(!$)break F;a=a<<2;c=a+(k+128|0)|0;J[c>>2]=(J[a+k>>2]+J[c>>2]|0)/2}h=g+p;g=n+u;n= +r+y;xc(J[e+28>>2]+124|0,k+128|0,128);a=J[e+8>>2];kc[J[J[a>>2]+116>>2]](a,J[e+28>>2]);a=J[e+28>>2];G:{if(!T){O[a+608>>3]=q;r=i+j;O[a+600>>3]=r;a=J[a+596>>2];O[a+16>>3]=q;O[a+8>>3]=r;J[a>>2]=1;a=1;while(1){r=+(a|0)/v;r=(r+r)*3.141592653589793;w=Ee(r);c=J[z>>2];w=i*w+q;O[c+608>>3]=w;r=i*Me(r)+j;O[c+600>>3]=r;re(J[c+596>>2],r,w);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[z>>2];gg(J[a+596>>2]);c=J[a+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];l=J[c+12>>2]<<3;O[a+600>>3]=O[(l+J[c>>2]|0)-8>>3];O[a+ +608>>3]=O[(l+J[c+4>>2]|0)-8>>3];a=J[z>>2];O[a+608>>3]=g;i=n+h;O[a+600>>3]=i;a=J[a+596>>2];O[a+16>>3]=g;O[a+8>>3]=i;J[a>>2]=1;a=1;while(1){i=+(a|0)/v;i=(i+i)*-3.141592653589793;j=Ee(i);c=J[z>>2];j=h*j+g;O[c+608>>3]=j;i=h*Me(i)+n;O[c+600>>3]=i;re(J[c+596>>2],i,j);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[z>>2];gg(J[a+596>>2]);c=J[a+596>>2];l=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];c=J[l+12>>2];G=J[l>>2]+(c<<3)|0;break G}r=i*da+q;O[a+608>>3]=r;w=i*V+j;O[a+600>>3]=w;a=J[a+596>>2];O[a+16>>3]=r;O[a+8>> +3]=w;J[a>>2]=1;a=0;l=0;while(1){F=B-+(l|0)/v*W;K=Ee(F);c=J[z>>2];K=h*K+g;O[c+608>>3]=K;F=h*Me(F)+n;O[c+600>>3]=F;re(J[c+596>>2],F,K);l=l+1|0;if((A|0)!=(l|0))continue;break}while(1){F=+(a|0)/v*ca+S;K=Ee(F);c=J[z>>2];K=i*K+q;O[c+608>>3]=K;F=i*Me(F)+j;O[c+600>>3]=F;re(J[c+596>>2],F,K);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[z>>2];gg(J[a+596>>2]);c=J[a+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];l=J[c+12>>2]<<3;O[a+600>>3]=O[(l+J[c>>2]|0)-8>>3];O[a+608>>3]=O[(l+J[c+4>>2]|0)-8>>3];a=J[z>>2];O[a+ +608>>3]=r;O[a+600>>3]=w;a=J[a+596>>2];O[a+16>>3]=r;O[a+8>>3]=w;J[a>>2]=1;a=0;l=0;while(1){r=+(l|0)/v*ba+B;w=Ee(r);c=J[z>>2];w=h*w+g;O[c+608>>3]=w;r=h*Me(r)+n;O[c+600>>3]=r;re(J[c+596>>2],r,w);l=l+1|0;if((A|0)!=(l|0))continue;break}while(1){r=+(a|0)/v*W+S;w=Ee(r);c=J[z>>2];w=i*w+q;O[c+608>>3]=w;r=i*Me(r)+j;O[c+600>>3]=r;re(J[c+596>>2],r,w);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[z>>2];gg(J[a+596>>2]);c=J[a+596>>2];l=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];c=J[l+12>>2];G=J[l>>2]+(c<<3)|0}O[a+600>> +3]=O[G-8>>3];O[a+608>>3]=O[(J[l+4>>2]+(c<<3)|0)-8>>3];a=J[e+8>>2];kc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);_f(J[e+28>>2]);xc(k+128|0,k,128);j=n;q=g;i=h;c=m;if((c|0)<256)continue}break}H:{if(T)break H;I:{J:{a=J[b+380>>2];K:{if(!(p<=s?a:0)){if(!J[b+384>>2])break K;if(!L)break J}a=p<=s;c=k+128|0;au(b,a?t:x,c);xc(J[e+28>>2]+124|0,c,128);c=J[e+8>>2];kc[J[J[c>>2]+116>>2]](c,J[e+28>>2]);c=J[e+28>>2];f=a?u:C;O[c+608>>3]=f;h=a?y:D;d=a?p:s;g=h+d;O[c+600>>3]=g;a=J[c+596>>2];O[a+16>>3]=f;O[a+8>>3]=g;J[a>>2]=1;a=1; +while(1){g=+(a|0)/v;g=(g+g)*3.141592653589793;i=Ee(g);c=J[z>>2];i=d*i+f;O[c+608>>3]=i;g=d*Me(g)+h;O[c+600>>3]=g;re(J[c+596>>2],g,i);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[e+28>>2];gg(J[a+596>>2]);c=J[a+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];o=J[c+12>>2]<<3;O[a+600>>3]=O[(o+J[c>>2]|0)-8>>3];O[a+608>>3]=O[(o+J[c+4>>2]|0)-8>>3];a=J[e+8>>2];kc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);_f(J[e+28>>2]);a=J[b+380>>2]}if(a?L:0)break I;if(!J[b+384>>2])break H;if(p<=s)break I;break H}if(!(p<=s))break H}a= +k+128|0;au(b,L?t:x,a);xc(J[e+28>>2]+124|0,a,128);a=J[e+8>>2];kc[J[J[a>>2]+116>>2]](a,J[e+28>>2]);f=O[k+280>>3];a=J[e+28>>2];d=O[k+272>>3];O[a+608>>3]=d;O[a+600>>3]=f;a=J[a+596>>2];O[a+16>>3]=d;O[a+8>>3]=f;J[a>>2]=1;f=O[k+280>>3];a=J[e+28>>2];d=O[k+256>>3];O[a+608>>3]=d;O[a+600>>3]=f;re(J[a+596>>2],f,d);f=O[k+264>>3];a=J[e+28>>2];d=O[k+256>>3];O[a+608>>3]=d;O[a+600>>3]=f;re(J[a+596>>2],f,d);f=O[k+264>>3];a=J[e+28>>2];d=O[k+272>>3];O[a+608>>3]=d;O[a+600>>3]=f;re(J[a+596>>2],f,d);a=J[e+28>>2];gg(J[a+ +596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];c=J[b+12>>2]<<3;O[a+600>>3]=O[(c+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(c+J[b+4>>2]|0)-8>>3];a=J[e+28>>2];f=L?u:C;O[a+608>>3]=f;d=L?y:D;h=d+E;O[a+600>>3]=h;a=J[a+596>>2];O[a+16>>3]=f;O[a+8>>3]=h;J[a>>2]=1;a=1;while(1){h=+(a|0)/v;h=(h+h)*3.141592653589793;g=Ee(h);b=J[z>>2];g=E*g+f;O[b+608>>3]=g;h=E*Me(h)+d;O[b+600>>3]=h;re(J[b+596>>2],h,g);a=a+1|0;if((A|0)!=(a|0))continue;break}a=J[e+28>>2];gg(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+ +28>>2]<<2)|0)-4>>2];c=J[b+12>>2]<<3;O[a+600>>3]=O[(c+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(c+J[b+4>>2]|0)-8>>3];a=J[e+8>>2];kc[J[J[a>>2]+204>>2]](a,J[e+28>>2]);_f(J[e+28>>2])}fc=k+288|0;break a;case 3:case 4:e=fc-816|0;fc=e;L:{if(J[b+192>>2]<=0)break L;while(1){m=J[a+116>>2];M:{if(!m)break M;if((c|0)<25){c=c+1|0;break M}c=0;if(kc[m|0](J[a+120>>2])|0)break L}m=e+512|0;k=e+256|0;e$(b,o,e+808|0,e+800|0,m,e+792|0,e+784|0,k,e+776|0,e+768|0,e);Gw(a,O[e+808>>3],O[e+800>>3],m,O[e+792>>3],O[e+784>>3],k,O[e+776>> +3],O[e+768>>3],e,b,0);o=o+1|0;if((o|0)>2])continue;break}}fc=e+816|0;break a;case 5:case 6:break b;default:break a}o=J[b+184>>2];e=3;N:{if((o|0)>128)break N;e=2;if((o|0)>64)break N;if((o|0)<=0)break a;e=o>>>0>16}o=0;while(1){m=J[a+116>>2];O:{if(!m)break O;if((o|0)<25){o=o+1|0;break O}o=0;if(kc[m|0](J[a+120>>2])|0)break a}Hw(a,J[b+180>>2]+P(c,1280)|0,b,e);c=c+1|0;if((c|0)>2])continue;break}}fc=M+512|0}function zXa(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;e=fc-128|0;fc=e;d=eq(a,b,c,d);J[d>>2]=843884;k=Ac(d+236|0,0,68);J[e+112>>2]=13;J[e+96>>2]=13;J[e+80>>2]=13;a=J[b+24>>2];J[699344]=0;ha(3372,c|0,a|0,e+112|0,0)|0;a=J[699344];J[699344]=0;l=d+292|0;n=d+280|0;a:{b:{c:{if((a|0)==1)break c;H[d+228|0]=0;J[699344]=0;a=ha(3368,J[e+120>>2],822633,e+96|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(J[a>>2]==1){a=J[e+104>>2];H[d+228|0]=(a&255)>>>0<=2?a:0}J[699344]=0;a=e+96|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c; +J[d+232>>2]=0;J[699344]=0;a=ha(3368,J[e+120>>2],843940,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(J[a>>2]==1)J[d+232>>2]=J[e+104>>2];J[699344]=0;a=e+96|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;a=ha(3368,J[e+120>>2],843212,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(J[a>>2]==6){J[d+8>>2]=J[d+8>>2]|32768;J[699344]=0;J[e+56>>2]=13;a=ha(3449,J[e+104>>2],0,e+56|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;h=J[a>>2]-3>>>0>=4294967294?J[e+56>>2]== +1?+J[e+64>>2]:O[e+64>>3]:h;J[699344]=0;a=e+56|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;O[d+248>>3]=h;J[699344]=0;J[e+56>>2]=13;a=ha(3449,J[e+104>>2],1,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;h=0;h=J[a>>2]-3>>>0>=4294967294?J[e+56>>2]==1?+J[e+64>>2]:O[e+64>>3]:h;J[699344]=0;a=e+56|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;O[d+272>>3]=h;J[699344]=0;J[e+56>>2]=13;a=ha(3449,J[e+104>>2],2,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;h=0;h=J[a>>2]-3>>> +0>=4294967294?J[e+56>>2]==1?+J[e+64>>2]:O[e+64>>3]:h;J[699344]=0;a=e+56|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;O[d+264>>3]=h;J[699344]=0;J[e+56>>2]=13;a=ha(3449,J[e+104>>2],3,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;h=0;h=J[a>>2]-3>>>0>=4294967294?J[e+56>>2]==1?+J[e+64>>2]:O[e+64>>3]:h;J[699344]=0;$(3370,e+56|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;O[d+256>>3]=h}J[699344]=0;a=e+96|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;a=ha(3368, +J[e+120>>2],844131,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{if(J[a>>2]!=6)break p;J[d+8>>2]=J[d+8>>2]|65536;c=J[e+104>>2];if(J[c+12>>2]<=0)break p;a=0;while(1){J[699344]=0;b=ha(3449,c|0,a|0,e+80|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;q:{if(J[b>>2]-3>>>0>=4294967294){if(a&1)h=O[d+16>>3]-(J[e+80>>2]==1?+J[e+88>>2]:O[e+88>>3]);else h=(J[e+80>>2]==1?+J[e+88>>2]:O[e+88>>3])-O[d+24>>3];c=J[d+296>>2];f=J[d+300>>2];if(c>>>0>>0){O[c>>3]=h;J[d+ +296>>2]=c+8;break q}r:{s:{t:{i=J[l>>2];j=c-i>>3;b=j+1|0;u:{if(b>>>0>=536870912){J[699344]=0;$(2494,l|0);a=J[699344];J[699344]=0;if((a|0)==1)break u;break a}f=f-i|0;g=f>>2;g=f>>>0>=2147483640?536870911:b>>>0>>0?g:b;if(!g){f=0;break s}if(g>>>0<536870912)break t;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a}b=Z()|0;break b}J[699344]=0;f=_(4,g<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r}b=(j<<3)+f|0;O[b>>3]=h;j=b+8|0;if((c|0)!=(i|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3]; +if((c|0)!=(i|0))continue;break}J[d+300>>2]=(g<<3)+f;J[d+296>>2]=j;J[d+292>>2]=b;if(!i)break q;uc(i);break q}b=Z()|0;break b}c=J[d+296>>2];f=J[d+300>>2];if(c>>>0>>0){J[c>>2]=0;J[c+4>>2]=0;J[d+296>>2]=c+8;break q}v:{w:{x:{i=J[l>>2];j=c-i>>3;b=j+1|0;y:{if(b>>>0>=536870912){J[699344]=0;$(2494,l|0);break y}f=f-i|0;g=f>>2;g=f>>>0>=2147483640?536870911:b>>>0>>0?g:b;if(!g){f=0;break w}if(g>>>0<536870912)break x;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a;b=Z()|0;break b}J[699344]= +0;f=_(4,g<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break v}b=(j<<3)+f|0;J[b>>2]=0;J[b+4>>2]=0;j=b+8|0;if((c|0)!=(i|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(i|0))continue;break}J[d+300>>2]=(g<<3)+f;J[d+296>>2]=j;J[d+292>>2]=b;if(!i)break q;uc(i);break q}b=Z()|0;break b}J[699344]=0;$(3370,e+80|0);b=J[699344];J[699344]=0;if((b|0)==1)break o;a=a+1|0;c=J[e+104>>2];if((a|0)>2])continue;break}}J[699344]=0;$(3370,e+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;ma(3491, +e+56|0,d|0,e+112|0,823157,17);a=J[699344];J[699344]=0;if((a|0)==1)break n;if(H[d+247|0]<0)uc(J[k>>2]);a=J[e+60>>2];J[k>>2]=J[e+56>>2];J[k+4>>2]=a;J[k+8>>2]=J[e- -64>>2];J[699344]=0;a=e+96|0;b=ha(3368,J[e+120>>2],840682,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;if(J[b>>2]==4){J[d+8>>2]=J[d+8>>2]|262144;q=d,r=Ww(a),H[q+230|0]=r}J[699344]=0;a=e+96|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;a=ha(3368,J[e+120>>2],841453,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c; +z:{if(J[a>>2]!=4)break z;H[d+229|0]=0;J[d+8>>2]=J[d+8>>2]|1048576;if(J[e+96>>2]!=4)break z;a=J[e+104>>2];if(Ic(a,844162)){if(Ic(a,844279))break z;a=2}else a=1;H[d+229|0]=a}J[699344]=0;a=e+96|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;a=ha(3368,J[e+120>>2],844436,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(J[a>>2]!=3)break d;J[d+8>>2]=J[d+8>>2]|2097152;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;i=_(3352,a|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break j;J[699344]=0;f=_(3506,J[e+104>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;b=J[f+8>>2];if((b|0)<=1)break e;while(1){a=b;b=a-1|0;c=b<<2;g=J[c+J[f>>2]>>2];J[699344]=0;g=Dd(g,844494);j=J[699344];J[699344]=0;if((j|0)==1)break l;if(!g)break h;A:{if(a>>>0<4)break A;g=J[c+J[f>>2]>>2];J[699344]=0;g=Dd(g,844564);j=J[699344];J[699344]=0;if((j|0)==1)break l;if(!g)break m;if(a>>>0<5)break A;c=J[c+J[f>>2]>>2];J[699344]=0;c=Dd(c,844698);g=J[699344];J[699344]=0;if((g|0)==1)break l; +if(c)break A;J[699344]=0;b=_(4,8)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;q=b,s=qg(J[J[(J[f>>2]+(a<<2)|0)-20>>2]+4>>2]),O[q>>3]=s;J[699344]=0;da(3508,i|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;break g}if(a>>>0>2)continue;break}break f}b=Z()|0;break b}b=Z()|0;break b}J[699344]=0;b=_(4,8)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;q=b,s=qg(J[J[(J[f>>2]+(a<<2)|0)-16>>2]+4>>2]),O[q>>3]=s;J[699344]=0;da(3508,i|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;b=_(4,8)|0; +c=J[699344];J[699344]=0;if((c|0)==1)break g;q=b,s=qg(J[J[(J[f>>2]+(a<<2)|0)-12>>2]+4>>2]),O[q>>3]=s;J[699344]=0;da(3508,i|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h;break g}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;uc(a);break b}b=Z()|0;break b}J[699344]=0;b=_(4,8)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;q=b,s=qg(J[J[(J[f>>2]+(a<<2)|0)-8>>2]+4>>2]),O[q>>3]=s;J[699344]=0;da(3508,i|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}b=Z()|0;break b}b=J[f+8>>2]}if((b|0)>0){c=0;while(1){a= +J[J[f>>2]+(c<<2)>>2];if(a){uc(Zc(a));b=J[f+8>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}}uc(ld(f));a=0;o=J[i+8>>2];B:{if((o|0)<=0)break B;C:{while(1){D:{m=J[J[i>>2]+(a<<2)>>2];c=J[d+284>>2];E:{if((c|0)!=J[d+288>>2]){O[c>>3]=O[m>>3];J[d+284>>2]=c+8;break E}F:{G:{f=J[n>>2];b=c-f|0;p=b>>3;g=p+1|0;H:{if(g>>>0>=536870912){J[699344]=0;$(2494,n|0);break H}j=b>>2;g=b>>>0>=2147483640?536870911:g>>>0>>0?j:g;if(!g){j=0;break F}if(g>>>0<536870912)break G;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!= +1)break a;b=Z()|0;break b}J[699344]=0;j=_(4,g<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break D}b=(p<<3)+j|0;O[b>>3]=O[m>>3];m=b+8|0;if((c|0)!=(f|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(f|0))continue;break}J[d+288>>2]=(g<<3)+j;J[d+284>>2]=m;J[d+280>>2]=b;if(!f)break E;uc(f)}a=a+1|0;if((o|0)!=(a|0))continue;break C}break}b=Z()|0;break b}c=0;b=J[i+8>>2];if((b|0)<=0)break B;while(1){a=J[J[i>>2]+(c<<2)>>2];if(a){uc(a);b=J[i+8>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}}uc(ld(i))}J[699344]= +0;a=e+96|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;b=ha(3368,J[e+120>>2],807124,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;I:{if(J[b>>2]!=5)break I;J[699344]=0;b=ha(3368,J[e+120>>2],806726,e+80|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;if(J[b>>2]!=5)break I;J[699344]=0;a=ha(3368,J[e+120>>2],784290,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(!J[J[e+104>>2]>>2]|J[a>>2]!=3)break I;J[699344]=0;c=e+56|0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2463920; +J[c+12>>2]=0;J[c+16>>2]=0;a=J[699344];J[699344]=0;J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{if((a|0)!=1){J[699344]=0;a=_(4,1024)|0;b=J[699344];J[699344]=0;if((b|0)==1)break aa;J[e+44>>2]=a;J[e+48>>2]=253;J[e+52>>2]=-2147483392;q=xc(a,844716,1012),r=0,J[q+1012>>2]=r;J[699344]=0;da(3510,c|0,e+44|0);a=J[699344];J[699344]=0;if((a|0)==1)break $;if(H[e+55|0]<0)uc(J[e+44>>2]);a=J[d+280>>2];if((J[d+284>>2]-a|0)!=24)break _;h=O[a>>3]*255;ba:{if(h<4294967296&h>=0){b=~~h>>>0;break ba}b=0}H[e+ +44|0]=b;h=O[a+8>>3]*255;ca:{if(h<4294967296&h>=0){b=~~h>>>0;break ca}b=0}H[e+32|0]=b;h=O[a+16>>3];J[699344]=0;h=h*255;da:{if(h<4294967296&h>=0){a=~~h>>>0;break da}a=0}H[e+20|0]=a;ia(3511,c|0,e+44|0,e+32|0,e+20|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Z;b=Z()|0;uj(c);break b}b=Z()|0;break b}b=Z()|0;uj(c);break b}b=Z()|0;if(H[e+55|0]>=0)break J;uc(J[e+44>>2]);uj(c);break b}J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Y;J[e+44>>2]=a;J[e+48>>2]=7;J[e+52>>2]=-2147483640;J[a+24>> +2]=J[211469];b=J[211468];J[a+16>>2]=J[211467];J[a+20>>2]=b;b=J[211466];J[a+8>>2]=J[211465];J[a+12>>2]=b;b=J[211464];J[a>>2]=J[211463];J[a+4>>2]=b;J[a+28>>2]=0;J[699344]=0;da(3510,c|0,e+44|0);a=J[699344];J[699344]=0;if((a|0)==1)break X;if(H[e+55|0]>=0)break Z;uc(J[e+44>>2])}J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1)break W;J[e+44>>2]=a;J[e+48>>2]=2;J[e+52>>2]=-2147483644;J[a+8>>2]=0;J[a>>2]=34;J[a+4>>2]=62;J[699344]=0;da(3510,c|0,e+44|0);a=J[699344];J[699344]=0;if((a|0)==1)break V; +if(H[e+55|0]<0)uc(J[e+44>>2]);J[699344]=0;f=_(4,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break U;J[699344]=0;a=aa(3354,f|0,J[e+104>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break T;b=J[a+4>>2];f=J[a>>2];J[699344]=0;i=e+44|0;ca(3420,i|0,f|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break S;uc(ld(a));J[699344]=0;da(3512,c|0,i|0);a=J[699344];J[699344]=0;if((a|0)==1)break R;J[699344]=0;a=_(4,80)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Q;J[e+32>>2]=a;J[e+36>>2]=18;J[e+40>>2]=-2147483628;q=xc(a,846056, +72),r=0,J[q+72>>2]=r;J[699344]=0;da(3510,c|0,e+32|0);a=J[699344];J[699344]=0;if((a|0)==1)break P;if(H[e+43|0]<0)uc(J[e+32>>2]);J[699344]=0;a=e+32|0;da(3513,a|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break L;J[699344]=0;b=e+8|0;g=a;a=H[e+43|0];f=(a|0)<0;ia(1626,b|0,(f?J[e+32>>2]:g)|0,(f?J[e+36>>2]:a&255)|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break O;J[699344]=0;da(3464,e+20|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break N;a=J[d+160>>2];if(a){J[d+164>>2]=a;uc(a);J[d+168>>2]=0;J[d+160>>2]=0;J[d+ +164>>2]=0}b=J[e+20>>2];J[d+160>>2]=b;a=J[e+24>>2];J[d+164>>2]=a;J[d+168>>2]=J[e+28>>2];J[e+28>>2]=0;J[e+20>>2]=0;J[e+24>>2]=0;if(H[e+19|0]<0){uc(J[e+8>>2]);b=J[d+160>>2];a=J[d+164>>2]}J[d+8>>2]=J[d+8>>2]&-9|((a|0)!=(b|0))<<3;if(H[e+43|0]<0)uc(J[e+32>>2]);if(H[e+55|0]<0)uc(J[e+44>>2]);uj(c);break I}b=Z()|0;uj(c);break b}b=Z()|0;if(H[e+55|0]>=0)break J;uc(J[e+44>>2]);uj(c);break b}b=Z()|0;uj(c);break b}b=Z()|0;if(H[e+55|0]>=0)break J;uc(J[e+44>>2]);uj(c);break b}b=Z()|0;uj(c);break b}b=Z()|0;uc(f); +uj(c);break b}b=Z()|0;uj(c);break b}b=Z()|0;break K}b=Z()|0;break K}b=Z()|0;if(H[e+43|0]>=0)break K;uc(J[e+32>>2]);break K}b=Z()|0;break M}b=Z()|0;if(H[e+19|0]>=0)break M;uc(J[e+8>>2])}if(H[e+43|0]>=0)break K;uc(J[e+32>>2]);break K}b=Z()|0}if(H[e+55|0]>=0)break J;uc(J[e+44>>2])}uj(c);break b}J[699344]=0;$(3370,e+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;$(3370,e+80|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;$(3370,e+112|0);a=J[699344];J[699344]=0;if((a|0)==1)break c; +fc=e+128|0;return d|0}b=Z()|0}a=J[l>>2];if(a){J[d+296>>2]=a;uc(a)}a=J[n>>2];if(a){J[d+284>>2]=a;uc(a)}if(H[d+247|0]<0)uc(J[k>>2]);Ch(d);ba(b|0);B()}B()}function Vt(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0,M=0,N=0,P=0,Q=0,S=0,T=0;A=fc-48|0;fc=A;d=vc(12);J[d>>2]=0;J[d+4>>2]=16;J[699344]=0;l=aa(3551,16,16)|0;u=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((u|0)!=1){J[d+8>>2]=l;u=vc(12);l=u;J[l>>2]=0;J[l+4>>2]= +16;J[699344]=0;y=aa(3551,16,16)|0;v=J[699344];J[699344]=0;if((v|0)!=1){J[l+8>>2]=y;v=c;y=d;c=1;l=b;d=J[b+8>>2];f:{if((d|0)<=0)break f;i=J[b>>2];b=J[i>>2];e=O[b+56>>3];p=e+0;j=O[b+40>>3];g=O[b+32>>3];h=O[b+24>>3];f=O[b+16>>3];if((d|0)==1)break f;while(1){b=J[i+(c<<2)>>2];n=O[b+56>>3];e=e>n?n:e;q=O[b+40>>3];j=j>3];g=g>3];h=h>q?q:h;q=O[b+16>>3];f=f>q?q:f;p=p+n;c=c+1|0;if((d|0)!=(c|0))continue;break}}O[A+40>>3]=f;O[A+32>>3]=h;O[A+24>>3]=g;O[A+16>>3]=j;O[A+8>>3]=p/+(d|0); +e=e*.05;p=e<.01?.01:e;e=1/p;f=e*f;g:{if(f<-1073741824)break g;g=g*e;if(g>1.0737418235E9)break g;h=h*e;if(h<-1073741824)break g;j=j*e;if(j>1.0737418235E9)break g;f=V(f);h:{if(R(f)<2147483648){k=~~f;break h}k=-2147483648}f=V(g);i:{if(R(f)<2147483648){d=~~f;break i}d=-2147483648}b=d-k|0;h=V(h);j:{if(R(h)<2147483648){x=~~h;break j}x=-2147483648}b=b+3|0;c=0;h=V(j);k:{if(R(h)<2147483648){i=~~h;break k}i=-2147483648}w=(i-x|0)+3|0;r=Pk(w);D=Pk(b);F=Ac(r,0,w);G=Ac(D,0,b);if(J[l+8>>2]>0){L=(G-k|0)+1|0;P=(F- +x|0)+1|0;Q=v-1|0;while(1){b=J[J[l>>2]+(c<<2)>>2];l:{m:{n:switch(Q|0){default:f=O[b+40>>3];n=O[b+24>>3];h=f-n;j=f+h*-.35;f=V(e*O[b+32>>3]);g=V(e*O[b+16>>3]);h=V(e*(n+h*0));break l;case 0:f=O[b+32>>3];j=O[b+16>>3];g=f-j;f=V(e*(f+g*-0));g=V(e*(j+g*.35));h=V(e*O[b+24>>3]);break m;case 1:f=O[b+40>>3];n=O[b+24>>3];h=f-n;j=f+h*-0;f=V(e*O[b+32>>3]);g=V(e*O[b+16>>3]);h=V(e*(n+h*.35));break l;case 2:break n}f=O[b+32>>3];j=O[b+16>>3];g=f-j;f=V(e*(f+g*-.35));g=V(e*(j+g*0));h=V(e*O[b+24>>3])}j=O[b+40>>3]}j=V(e* +j);o:{if(R(j)<2147483648){r=~~j;break o}r=-2147483648}if(R(h)<2147483648)b=~~h;else b=-2147483648;if(R(g)<2147483648)w=~~g;else w=-2147483648;S=(b|0)>(r|0);if(R(f)<2147483648)D=~~f;else D=-2147483648;if(!S)Ac(b+P|0,1,(r-b|0)+1|0);if((w|0)<=(D|0))Ac(w+L|0,1,(D-w|0)+1|0);c=c+1|0;if((c|0)>2])continue;break}}D=x-1|0;c=D;p:{if((i|0)<(c|0))break p;b=i+1|0;while(1){if(K[F+(c-D|0)|0])break p;w=(c|0)!=(i|0);c=c+1|0;if(w)continue;break}c=b}if((c|0)<=(i|0)){L=F+2|0;b=c;while(1){w=c;r=c-x|0;q:{if(K[F+ +(c-D|0)|0]){b=K[r+L|0]?b:c;break q}if(!K[r+L|0])break q;e=p*+(w-b|0);h=+(b+1|0)*p+e*.5;c=J[y>>2];r:{if((c|0)!=J[y+4>>2]){r=J[y+8>>2];break r}c=c<<1;J[y+4>>2]=c;r=Wd(J[y+8>>2],c,16);J[y+8>>2]=r;c=J[y>>2]}r=(c<<4)+r|0;O[r+8>>3]=e;O[r>>3]=h;J[y>>2]=c+1}c=w+1|0;if((i|0)!=(w|0))continue;break}}x=k-1|0;c=x;s:{if((d|0)<(c|0))break s;b=d+1|0;while(1){if(K[G+(c-x|0)|0])break s;i=(c|0)!=(d|0);c=c+1|0;if(i)continue;break}c=b}if((c|0)<=(d|0)){w=G+2|0;b=c;while(1){i=c;r=c-k|0;t:{if(K[G+(c-x|0)|0]){b=K[r+w|0]? +b:c;break t}if(!K[r+w|0])break t;e=p*+(i-b|0);h=+(b+1|0)*p+e*.5;c=J[u>>2];u:{if((c|0)!=J[u+4>>2]){r=J[u+8>>2];break u}c=c<<1;J[u+4>>2]=c;r=Wd(J[u+8>>2],c,16);J[u+8>>2]=r;c=J[u>>2]}r=(c<<4)+r|0;O[r+8>>3]=e;O[r>>3]=h;J[u>>2]=c+1}c=i+1|0;if((d|0)!=(i|0))continue;break}}Mc(F);Mc(G)}c=J[y>>2];if((c|0)<=0)break d;k=c&3;d=J[y+8>>2];if(c>>>0<4){b=0;break e}x=c&-4;b=0;while(1){i=b<<4;e=O[(d+(i|48)|0)+8>>3];h=O[(d+(i|32)|0)+8>>3];f=O[(d+(i|16)|0)+8>>3];g=O[(d+i|0)+8>>3];g=g>o?g:o;f=f>g?f:g;h=fh? +e:h;b=b+4|0;t=t+4|0;if((x|0)!=(t|0))continue;break}break e}b=Z()|0;d=u;break c}b=Z()|0;break c}if(!k)break d;while(1){e=O[(d+(b<<4)|0)+8>>3];o=e>o?e:o;b=b+1|0;z=z+1|0;if((k|0)!=(z|0))continue;break}}d=J[u>>2];v:{if((d|0)<=0)break v;x=d&3;i=J[u+8>>2];z=0;w:{if(d>>>0<4){b=0;break w}w=d&-4;b=0;while(1){k=b<<4;e=O[(i+(k|48)|0)+8>>3];h=O[(i+(k|32)|0)+8>>3];f=O[(i+(k|16)|0)+8>>3];g=O[(i+k|0)+8>>3];g=g>m?g:m;f=f>g?f:g;h=fh?e:h;b=b+4|0;C=C+4|0;if((w|0)!=(C|0))continue;break}}if(!x)break v;while(1){e= +O[(i+(b<<4)|0)+8>>3];m=e>m?e:m;b=b+1|0;z=z+1|0;if((x|0)!=(z|0))continue;break}}C=0;q=O[A+8>>3];H=O[A+16>>3];h=O[A+32>>3];g=H-h;j=g;x:{if((c|0)<=0)break x;p=q*-.2+o;i=J[y+8>>2];b=0;e=h;f=g;while(1){k=i+(b<<4)|0;j=O[k+8>>3];if(j>p){n=j*-.5+O[k>>3];e=n-e;f=e>3];p=O[A+40>>3];n=I-p;e=n;y:{if((d|0)<=0)break y;T=q*-.2+m;c=J[u+8>>2];b=0;e=p;f=n;while(1){i=c+(b<<4)|0;M=O[i+8>>3];if(T>3];e=N-e;f=e< +f?e:f;C=C+1|0;e=M+N}b=b+1|0;if((d|0)!=(b|0))continue;break}e=I-e;if(f>e)break y;e=f}f=1;z:{if(R(q)<.001)break z;f=n/q;if(v&1)break z;f=g/q}g=f;f=.7;A:{B:{C:{c=J[a>>2];switch(c-2|0){case 0:break A;case 2:break C;default:break B}}f=g*-.02+.5;if(!(f<.2))break A;f=.2;break A}f=g*-.5+3;if(!(f<.8))break A;f=.8}w=(c|0)==4;n=q+q;D:{if(!J[a+56>>2]){g=0;break D}g=q*1.5*256;E:{if(R(g)<2147483648){b=~~g;break E}b=-2147483648}g=+(b|0)*.00390625;k=J[l+8>>2];if((k|0)<=0)break D;i=J[l>>2];d=0;b=0;if(k>>>0>=4){r= +k&-4;t=0;while(1){x=b<<2;s=((((O[J[x+i>>2]+56>>3]>g)+s|0)+(O[J[i+(x|4)>>2]+56>>3]>g)|0)+(O[J[i+(x|8)>>2]+56>>3]>g)|0)+(O[J[i+(x|12)>>2]+56>>3]>g)|0;b=b+4|0;t=t+4|0;if((r|0)!=(t|0))continue;break}}k=k&3;if(!k)break D;while(1){s=(O[J[i+(b<<2)>>2]+56>>3]>g)+s|0;b=b+1|0;d=d+1|0;if((k|0)!=(d|0))continue;break}}n=w?0:n;f=q*f;F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{if(v&1){if((c|0)==2){b=0;if((C|0)>0)break P;if((E|0)<=0)break O;b=f>=o;break J}if(!(!(fm^-1)&(c|0)!=4|(E|0)<=0))){b=0;if(!C|j>n)break J}b=0; +if((C|0)>0)break P;b=1;if(s|(E|0)<=0)break O;break J}if((c|0)==2){b=0;if((E|0)>0)break J;if((C|0)<=0)break O;b=f>=m;break P}if(!(!(fn)break P}b=0;if((E|0)>0)break J;b=1;if(s|(C|0)<=0)break O}d=vc(56);J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=v;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[699344]=0;c=_(4,16)|0;i=J[699344];J[699344]=0;if((i|0)==1)break N;J[699344]=0;i=_(3352,c|0)|0;k=J[699344]; +J[699344]=0;if((k|0)==1){b=Z()|0;uc(c);break c}J[d+48>>2]=b;J[d+52>>2]=i;g=p+-1;b=J[u>>2];Q:{if((b|0)<=0){o=H+1;e=h+-1;j=0;p=0;n=0;h=0;break Q}o=H+1;e=h+-1;q=q*-.2+m;j=0;p=0;n=0;h=0;t=0;while(1){c=J[u+8>>2]+(t<<4)|0;if(q>3]){m=O[c>>3];c=vc(16);J[699344]=0;k=_(3352,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;b=0;s=J[l+8>>2];if((s|0)>0)while(1){c=J[J[l>>2]+(b<<2)>>2];f=(O[c+16>>3]+O[c+32>>3])*.5;R:{if(!(f>g)|!(f>3]+O[c+40>>3])*.5;if(!(f>e)|!(f>2]}b=b+1|0;if((s|0)>(b|0))continue;break}b=Vt(a,k,v);f=O[b+16>>3];S:{T:{if(!J[i+8>>2]){O[d+16>>3]=f;n=O[b+24>>3];O[d+24>>3]=n;p=O[b+32>>3];O[d+32>>3]=p;g=O[b+40>>3];h=f;break T}if(f>3]=f;h=f}f=O[b+24>>3];if(f>3]=f;n=f}f=O[b+32>>3];if(f>p){O[d+32>>3]=f;p=f}g=O[b+40>>3];if(!(j>3]=g;j=g}sd(i,b);uc(ld(k));g=m;b=J[u>>2]}t=t+1|0;if((t|0)<(b|0))continue;break}}b=0;c=vc(16);J[699344]=0;s=_(3352,c|0)|0;k=J[699344];J[699344]=0;U:{V:{W:{if((k|0)!=1){z=J[l+8>> +2];if((z|0)>0){f=I+1;while(1){c=J[J[l>>2]+(b<<2)>>2];m=(O[c+16>>3]+O[c+32>>3])*.5;X:{if(!(m>g)|!(f>m))break X;m=(O[c+24>>3]+O[c+40>>3])*.5;if(!(m>e)|!(o>m))break X;sd(s,c);z=J[l+8>>2]}b=b+1|0;if((z|0)>(b|0))continue;break}}b=Vt(a,s,v);e=O[b+16>>3];if(J[i+8>>2])break W;O[d+16>>3]=e;O[d+24>>3]=O[b+24>>3];O[d+32>>3]=O[b+32>>3];m=O[b+40>>3];break V}break b}if(e>3]=e;e=O[b+24>>3];if(e>3]=e;e=O[b+32>>3];if(e>p)O[d+32>>3]=e;m=O[b+40>>3];if(!(m>j))break U}O[d+40>>3]=m}sd(i,b);break I}if((s| +0)>0){d=vc(16);J[699344]=0;i=_(3352,d|0)|0;b=J[699344];J[699344]=0;Y:{Z:{if((b|0)!=1){d=vc(16);J[699344]=0;s=_(3352,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Z;if(J[l+8>>2]>0){b=0;while(1){c=J[J[l>>2]+(b<<2)>>2];sd(O[c+56>>3]>g?i:s,c);b=b+1|0;if((b|0)>2])continue;break}}d=Vt(a,s,v);b=J[i+8>>2];if((b|0)<2)break M;v=J[i>>2];k=v-4|0;t=1;break Y}b=Z()|0;break c}b=Z()|0;break c}while(1){_:{l=t<<2;c=J[l+k>>2];e=O[c+56>>3];l=J[l+v>>2];h=O[l+56>>3];e=(eO[c+40>>3]-O[l+24>>3]| +e>O[l+40>>3]-O[c+24>>3])break _;t=t+1|0;if((t|0)!=(b|0))continue;break M}break}while(1){c=b-1|0;PI(a,J[J[i>>2]+(c<<2)>>2],d);l=b>>>0>1;b=c;if(l)continue;break}break K}d=vc(56);J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=v;J[d>>2]=2;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[699344]=0;c=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1)break L;J[699344]=0;v=_(3352,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;uc(c);break c}J[d+52>>2]=v;if(J[l+ +8>>2]<=0)break H;b=0;f=0;e=0;o=0;h=0;while(1){c=J[J[l>>2]+(b<<2)>>2];j=O[c+16>>3];$:{aa:{if(!J[v+8>>2]){O[d+16>>3]=j;o=O[c+24>>3];O[d+24>>3]=o;e=O[c+32>>3];O[d+32>>3]=e;g=O[c+40>>3];h=j;break aa}if(h>j){O[d+16>>3]=j;h=j}g=O[c+24>>3];if(g>3]=g;o=g}g=O[c+32>>3];if(g>e){O[d+32>>3]=g;e=g}g=O[c+40>>3];if(!(g>f))break $}O[d+40>>3]=g;f=g}sd(v,c);b=b+1|0;if((b|0)>2])continue;break}break H}b=Z()|0;break c}YZ(a,i,d);break K}b=Z()|0;break c}uc(ld(i));break I}d=vc(56);J[d+16>>2]=0;J[d+20>>2]= +0;J[d+8>>2]=v;J[d>>2]=1;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[699344]=0;c=_(4,16)|0;i=J[699344];J[699344]=0;if((i|0)==1)break G;J[699344]=0;i=_(3352,c|0)|0;k=J[699344];J[699344]=0;if((k|0)==1){b=Z()|0;uc(c);break c}J[d+48>>2]=b;J[d+52>>2]=i;e=h+-1;b=J[y>>2];ba:{if((b|0)<=0){f=I+1;g=p+-1;j=0;p=0;n=0;h=0;break ba}f=I+1;g=p+-1;q=q*-.2+o;j=0;p=0;n=0;h=0;t=0;while(1){c=J[y+8>>2]+(t<<4)|0;if(q>3]){m=O[c>>3];c=vc(16);J[699344]=0;k= +_(3352,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;b=0;s=J[l+8>>2];if((s|0)>0)while(1){c=J[J[l>>2]+(b<<2)>>2];o=(O[c+16>>3]+O[c+32>>3])*.5;ca:{if(!(o>g)|!(f>o))break ca;o=(O[c+24>>3]+O[c+40>>3])*.5;if(!(o>e)|!(o>2]}b=b+1|0;if((s|0)>(b|0))continue;break}b=Vt(a,k,v);o=O[b+16>>3];da:{ea:{if(!J[i+8>>2]){O[d+16>>3]=o;n=O[b+24>>3];O[d+24>>3]=n;p=O[b+32>>3];O[d+32>>3]=p;e=O[b+40>>3];h=o;break ea}if(h>o){O[d+16>>3]=o;h=o}e=O[b+24>>3];if(e>3]=e;n=e}e=O[b+32>> +3];if(e>p){O[d+32>>3]=e;p=e}e=O[b+40>>3];if(!(j>3]=e;j=e}sd(i,b);uc(ld(k));e=m;b=J[y>>2]}t=t+1|0;if((t|0)<(b|0))continue;break}}b=0;c=vc(16);J[699344]=0;s=_(3352,c|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break b;z=J[l+8>>2];if((z|0)>0){o=H+1;while(1){c=J[J[l>>2]+(b<<2)>>2];m=(O[c+16>>3]+O[c+32>>3])*.5;fa:{if(!(m>g)|!(f>m))break fa;m=(O[c+24>>3]+O[c+40>>3])*.5;if(!(m>e)|!(o>m))break fa;sd(s,c);z=J[l+8>>2]}b=b+1|0;if((z|0)>(b|0))continue;break}}b=Vt(a,s,v);e=O[b+16>>3];ga:{ha:{if(!J[i+ +8>>2]){O[d+16>>3]=e;O[d+24>>3]=O[b+24>>3];O[d+32>>3]=O[b+32>>3];m=O[b+40>>3];break ha}if(e>3]=e;e=O[b+24>>3];if(e>3]=e;e=O[b+32>>3];if(e>p)O[d+32>>3]=e;m=O[b+40>>3];if(!(m>j))break ga}O[d+40>>3]=m}sd(i,b)}uc(ld(s))}b=J[y+8>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;uc(y);b=J[u+8>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break F;uc(u);b=J[d>>2];ia:{ja:{ka:{la:switch(J[a>>2]-2|0){case 2:if((b|0)==2)break ka;if(!(!J[d+48>>2]|(b|0)!=(J[d+8>>2]& 1))){J[d+4>>2]=3;a=J[d+52>>2];b=J[a+8>>2];if((b|0)<=0)break ia;c=J[a>>2];a=0;while(1){if(J[J[c+(a<<2)>>2]+4>>2]==3){a=a+1|0;if((b|0)!=(a|0))continue;break ia}break}break ja}break ja;case 0:if((b|0)==2)break ka;if((b|0)==(J[d+8>>2]&1)){J[d+4>>2]=J[d+48>>2]?3:2;break ia}J[d+4>>2]=1;break ia;default:break la}if((b|0)==2)break ka;if((b^J[d+8>>2]&1)==1){J[d+4>>2]=1;a=J[d+52>>2];b=J[a+8>>2];if((b|0)<=0)break ia;c=J[a>>2];a=0;while(1){ma:switch(J[J[c+(a<<2)>>2]+4>>2]-1|0){case 0:case 2:break ma;default:break ja}a= -a+1|0;if((b|0)!=(a|0))continue;break}break ia}if(J[d+48>>2]){J[d+4>>2]=3;a=J[d+52>>2];b=J[a+8>>2];if((b|0)<=0)break ia;c=J[a>>2];a=0;while(1){if(J[J[c+(a<<2)>>2]+4>>2]==3){a=a+1|0;if((b|0)!=(a|0))continue;break ia}break}break ja}J[d+4>>2]=0;break ia}J[d+4>>2]=3;break ia}J[d+4>>2]=0}bc=A+48|0;return d}b=Z()|0;break c}break a}qc(d);ba(b|0);B()}a=Z()|0;qc(c);ba(a|0);B()}ea(0)|0;yc();B()}function zL(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,z=0,A= -0,B=0,C=0,D=0;f=bc-176|0;bc=f;J[f+172>>2]=0;q=J[a+12>>2];m=J[a>>2];if(L[m+290>>1]>>0)I[m+290>>1]=c;J[a+20>>2]=b;t=65536;s=65536;if(!(H[a+16|0]&1)){e=J[J[a+4>>2]+44>>2];t=J[e+8>>2];s=J[e+4>>2]}v=J[J[m+128>>2]+52>>2];a:{b:{if(v){e=gc[J[J[v>>2]>>2]](J[v+4>>2],b,f+120|0)|0;J[f+172>>2]=e;if(e)break a;k=J[f+124>>2];J[a+28>>2]=k;J[f+160>>2]=0;J[f+164>>2]=0;J[f+152>>2]=0;J[f+156>>2]=0;J[f+144>>2]=0;J[f+148>>2]=0;J[f+136>>2]=0;J[f+140>>2]=0;J[f+128>>2]=0;J[f+132>>2]=0;h=J[f+120>>2];e=f+128|0;J[e+32>>2]= -0;J[f+136>>2]=0;J[f+132>>2]=k;J[f+128>>2]=h;J[f+148>>2]=0;J[f+152>>2]=0;J[a+24>>2]=e;h=0;break b}h=FC(m,b,a+28|0)}e=J[a+28>>2];c:{if((e|0)>0){k=J[m+728>>2];if(!(k|J[J[m+128>>2]+52>>2])){J[f+172>>2]=8;break c}e=gc[J[m+520>>2]](a,b,h+k|0,e)|0;J[f+172>>2]=e;if(e)break c;C=f,D=gc[J[m+528>>2]](a)|0,J[C+172>>2]=D;gc[J[m+524>>2]](a);if(J[f+172>>2])break c;e=J[a+28>>2]}if(!(L[a+32>>1]?e:0)){J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0}i=J[a>>2];l=J[a+24>>2];I[f+80>>1]=0;I[f>>1]=0;I[f+44>>1]=0;I[f+ -64>>1]=0;k=J[l+8>>2];gc[J[J[i+540>>2]+140>>2]](i,0,b,f+80|0,f+44|0);d:{if(K[i+292|0]){gc[J[J[i+540>>2]+140>>2]](i,1,b,f,f- -64|0);break d}n=J[a+48>>2];if(L[i+372>>1]!=65535){e=I[i+442>>1];I[f>>1]=e-n;e=e-I[i+444>>1]|0;n=e>>31;I[f+64>>1]=(e^n)-n;break d}e=I[i+220>>1];I[f>>1]=e-n;e=e-I[i+222>>1]|0;n=e>>31;I[f+64>>1]=(e^n)-n}e=nd(l,k);if(e){J[f+172>>2]=e;break c}j=I[f+80>>1];J[a+52>>2]=j;o=L[f+44>>1];J[a+56>>2]=o;g=I[f>>1];J[a+172>>2]=g;i=L[f+64>>1];J[a+176>>2]=i;if(!K[a+64|0]){J[a+60>>2]=o;H[a+64|0]= -1}J[f+172>>2]=0;if(d)break c;d=J[a+28>>2];if(!(L[a+32>>1]?d:0)){e=J[a>>2];d=1;e:{if(J[J[e+96>>2]+64>>2]!=40)break e;c=J[a+156>>2];d=1;if(!c)break e;d=!K[c+613|0]|!K[c+618|0]}J[a+80>>2]=0;J[a+72>>2]=0;c=d&1?0:o>>>1|0;J[a+188>>2]=c;J[a+180>>2]=c;d=J[a+36>>2]-j|0;J[a+68>>2]=d;c=g+J[a+48>>2]|0;J[a+184>>2]=c;J[a+76>>2]=d+o;J[a+192>>2]=c-i;d=J[J[e+128>>2]+52>>2];f:{if(!d)break f;c=J[J[d>>2]+8>>2];if(!c)break f;J[f+92>>2]=0;J[f+88>>2]=o;J[f+84>>2]=0;J[f+80>>2]=j;if(gc[c|0](J[d+4>>2],b,0,f+80|0)|0)break f; +a+1|0;if((b|0)!=(a|0))continue;break}break ia}if(J[d+48>>2]){J[d+4>>2]=3;a=J[d+52>>2];b=J[a+8>>2];if((b|0)<=0)break ia;c=J[a>>2];a=0;while(1){if(J[J[c+(a<<2)>>2]+4>>2]==3){a=a+1|0;if((b|0)!=(a|0))continue;break ia}break}break ja}J[d+4>>2]=0;break ia}J[d+4>>2]=3;break ia}J[d+4>>2]=0}fc=A+48|0;return d}b=Z()|0;break c}break a}uc(d);ba(b|0);B()}a=Z()|0;uc(c);ba(a|0);B()}ea(0)|0;Bc();B()}function VM(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,z=0,A= +0,B=0,C=0,D=0;f=fc-176|0;fc=f;J[f+172>>2]=0;q=J[a+12>>2];m=J[a>>2];if(L[m+290>>1]>>0)I[m+290>>1]=c;J[a+20>>2]=b;t=65536;s=65536;if(!(H[a+16|0]&1)){e=J[J[a+4>>2]+44>>2];t=J[e+8>>2];s=J[e+4>>2]}v=J[J[m+128>>2]+52>>2];a:{b:{if(v){e=kc[J[J[v>>2]>>2]](J[v+4>>2],b,f+120|0)|0;J[f+172>>2]=e;if(e)break a;k=J[f+124>>2];J[a+28>>2]=k;J[f+160>>2]=0;J[f+164>>2]=0;J[f+152>>2]=0;J[f+156>>2]=0;J[f+144>>2]=0;J[f+148>>2]=0;J[f+136>>2]=0;J[f+140>>2]=0;J[f+128>>2]=0;J[f+132>>2]=0;h=J[f+120>>2];e=f+128|0;J[e+32>>2]= +0;J[f+136>>2]=0;J[f+132>>2]=k;J[f+128>>2]=h;J[f+148>>2]=0;J[f+152>>2]=0;J[a+24>>2]=e;h=0;break b}h=KD(m,b,a+28|0)}e=J[a+28>>2];c:{if((e|0)>0){k=J[m+728>>2];if(!(k|J[J[m+128>>2]+52>>2])){J[f+172>>2]=8;break c}e=kc[J[m+520>>2]](a,b,h+k|0,e)|0;J[f+172>>2]=e;if(e)break c;C=f,D=kc[J[m+528>>2]](a)|0,J[C+172>>2]=D;kc[J[m+524>>2]](a);if(J[f+172>>2])break c;e=J[a+28>>2]}if(!(L[a+32>>1]?e:0)){J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0}i=J[a>>2];l=J[a+24>>2];I[f+80>>1]=0;I[f>>1]=0;I[f+44>>1]=0;I[f+ +64>>1]=0;k=J[l+8>>2];kc[J[J[i+540>>2]+140>>2]](i,0,b,f+80|0,f+44|0);d:{if(K[i+292|0]){kc[J[J[i+540>>2]+140>>2]](i,1,b,f,f- -64|0);break d}n=J[a+48>>2];if(L[i+372>>1]!=65535){e=I[i+442>>1];I[f>>1]=e-n;e=e-I[i+444>>1]|0;n=e>>31;I[f+64>>1]=(e^n)-n;break d}e=I[i+220>>1];I[f>>1]=e-n;e=e-I[i+222>>1]|0;n=e>>31;I[f+64>>1]=(e^n)-n}e=yd(l,k);if(e){J[f+172>>2]=e;break c}j=I[f+80>>1];J[a+52>>2]=j;o=L[f+44>>1];J[a+56>>2]=o;g=I[f>>1];J[a+172>>2]=g;i=L[f+64>>1];J[a+176>>2]=i;if(!K[a+64|0]){J[a+60>>2]=o;H[a+64|0]= +1}J[f+172>>2]=0;if(d)break c;d=J[a+28>>2];if(!(L[a+32>>1]?d:0)){e=J[a>>2];d=1;e:{if(J[J[e+96>>2]+64>>2]!=40)break e;c=J[a+156>>2];d=1;if(!c)break e;d=!K[c+613|0]|!K[c+618|0]}J[a+80>>2]=0;J[a+72>>2]=0;c=d&1?0:o>>>1|0;J[a+188>>2]=c;J[a+180>>2]=c;d=J[a+36>>2]-j|0;J[a+68>>2]=d;c=g+J[a+48>>2]|0;J[a+184>>2]=c;J[a+76>>2]=d+o;J[a+192>>2]=c-i;d=J[J[e+128>>2]+52>>2];f:{if(!d)break f;c=J[J[d>>2]+8>>2];if(!c)break f;J[f+92>>2]=0;J[f+88>>2]=o;J[f+84>>2]=0;J[f+80>>2]=j;if(kc[c|0](J[d+4>>2],b,0,f+80|0)|0)break f; c=I[f+80>>1];d=L[f+88>>1];J[a+172>>2]=0;J[a+176>>2]=0;J[a+56>>2]=d;J[a+52>>2]=c;if(K[a+64|0])break f;J[a+60>>2]=d;H[a+64|0]=1}g:{if(!(L[m+6>>1]&32767|K[m+9|0]&128))break g;J[f+76>>2]=16843009;J[f+64>>2]=65536;J[f+68>>2]=196610;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+80>>2]=J[a+68>>2];J[f+84>>2]=J[a+72>>2];J[f+88>>2]=J[a+76>>2];J[f+92>>2]=J[a+80>>2];J[f+96>>2]=J[a+180>>2];J[f+100>>2]=J[a+184>>2];J[f+104>>2]=J[a+188>>2];J[f+108>>2]=J[a+ -192>>2];J[f+44>>2]=262148;J[f+56>>2]=f- -64;J[f+52>>2]=f+76;J[f+48>>2]=f+80;b=qL(J[a>>2],b,f+44|0,f,4);J[f+172>>2]=b;if(b)break c;J[a+68>>2]=J[f+80>>2];J[a+72>>2]=J[f+84>>2];J[a+76>>2]=J[f+88>>2];J[a+80>>2]=J[f+92>>2];J[a+180>>2]=J[f+96>>2];J[a+184>>2]=J[f+100>>2];J[a+188>>2]=J[f+104>>2];J[a+192>>2]=J[f+108>>2];b=J[J[a>>2]+740>>2];if(!(b&2))J[a+60>>2]=(J[f+8>>2]-J[f>>2]|0)+32>>6;if(b&16)break g;J[a+176>>2]=(J[f+24>>2]-J[f+16>>2]|0)+32>>6}if(!(H[a+16|0]&1)){C=a,D=Pc(J[a+68>>2],s),J[C+68>>2]=D;C=a, -D=Pc(J[a+76>>2],s),J[C+76>>2]=D;C=a,D=Pc(J[a+180>>2],s),J[C+180>>2]=D;C=a,D=Pc(J[a+184>>2],t),J[C+184>>2]=D;C=a,D=Pc(J[a+188>>2],s),J[C+188>>2]=D;C=a,D=Pc(J[a+192>>2],t),J[C+192>>2]=D}J[f+172>>2]=0;break c}l=J[a>>2];k=1;h:{if(J[J[l+96>>2]+64>>2]!=40)break h;e=J[a+156>>2];k=1;if(!e)break h;k=!K[e+613|0]|!K[e+618|0]}J[a+80>>2]=0;J[a+72>>2]=0;n=J[a+36>>2]-j|0;J[a+68>>2]=n;k=k&1?0:o>>>1|0;J[a+188>>2]=k;e=g+J[a+48>>2]|0;J[a+184>>2]=e;J[a+180>>2]=k;J[a+76>>2]=n+o;J[a+192>>2]=e-i;k=J[J[l+128>>2]+52>>2]; -i:{if(!k)break i;e=J[J[k>>2]+8>>2];if(!e)break i;J[f+92>>2]=0;J[f+88>>2]=o;J[f+84>>2]=0;J[f+80>>2]=j;j:{if(gc[e|0](J[k+4>>2],b,0,f+80|0)|0)break j;d=I[f+80>>1];e=L[f+88>>1];J[a+172>>2]=0;J[a+176>>2]=0;J[a+56>>2]=e;J[a+52>>2]=d;if(K[a+64|0])break j;J[a+60>>2]=e;H[a+64|0]=1}d=J[a+28>>2]}d=gc[J[m+520>>2]](a,b,(h+J[m+728>>2]|0)+10|0,d-10|0)|0;J[f+172>>2]=d;if(d)break c;k:{d=I[a+32>>1];if((d|0)>0){b=gc[J[m+532>>2]](a)|0;J[f+172>>2]=b;if(b)break k;gc[J[m+524>>2]](a);b=0;l=bc-16|0;bc=l;j=J[a+12>>2];J[l+ -12>>2]=0;n=J[J[a>>2]+100>>2];c=J[a+72>>2];g=I[j+58>>1];d=J[j+60>>2]+(g<<3)|0;J[d>>2]=J[a+68>>2];J[d+4>>2]=c;c=J[a+80>>2];k=g+1|0;d=J[j+60>>2]+(k<<3)|0;J[d>>2]=J[a+76>>2];J[d+4>>2]=c;c=J[a+184>>2];h=g+2|0;d=J[j+60>>2]+(h<<3)|0;J[d>>2]=J[a+180>>2];J[d+4>>2]=c;c=J[a+192>>2];e=g+3|0;d=J[j+60>>2]+(e<<3)|0;J[d>>2]=J[a+188>>2];J[d+4>>2]=c;c=j- -64|0;H[g+J[c>>2]|0]=0;H[k+J[c>>2]|0]=0;H[h+J[c>>2]|0]=0;H[e+J[c>>2]|0]=0;k=g+4|0;c=J[a>>2];l:{if(L[c+6>>1]&32767|K[c+9|0]&128){b=Sc(n,8,0,k,0,l+12|0);if(J[l+12>> -2])break l;e=qL(J[a>>2],J[a+20>>2],j+56|0,b,k);J[l+12>>2]=e;d=J[J[a>>2]+740>>2];if(!(d&2)){c=(g<<3)+b|0;J[a+60>>2]=(J[c+8>>2]-J[c>>2]|0)+32>>6}if(!(d&16)){c=(g<<3)+b|0;J[a+176>>2]=(J[c+24>>2]-J[c+16>>2]|0)+32>>6}if(e)break l}i=0;c=J[a+16>>2];if(!(c&2)){h=L[j+58>>1];I[a+128>>1]=h;I[a+130>>1]=L[j+56>>1];J[a+132>>2]=J[j+76>>2];e=J[j+60>>2];J[a+136>>2]=e;d=J[j+80>>2];J[a+140>>2]=d;J[a+144>>2]=J[j+64>>2];c=J[j+68>>2];I[a+152>>1]=0;J[a+148>>2]=c;tc(d,e,(h<<3)+32|0);c=J[a+16>>2]}m:{if(c&1)break m;e=J[j+ -60>>2];d=e+(k<<3)|0;c=J[J[a+4>>2]+44>>2];p=J[c+8>>2];i=J[c+4>>2];c=J[a>>2];if(!(L[c+6>>1]&32767|K[c+9|0]&128)){if((g|0)<=-4)break m;while(1){C=e,D=Pc(J[e>>2],i),J[C>>2]=D;C=e,D=Pc(J[e+4>>2],p),J[C+4>>2]=D;e=e+8|0;if(d>>>0>e>>>0)continue;break}break m}if((g|0)<-3)break m;c=b;while(1){C=e,D=Pc(J[c>>2],i)+32>>6,J[C>>2]=D;C=e,D=Pc(J[c+4>>2],p)+32>>6,J[C+4>>2]=D;c=c+8|0;e=e+8|0;if(d>>>0>e>>>0)continue;break}}e=J[a>>2];n:{if(!(!(K[e+740|0]&2)|K[a+16|0]&2)){C=a,D=Pc(J[a+68>>2],i),J[C+68>>2]=D;C=a,D=Pc(J[a+ -76>>2],i),J[C+76>>2]=D;e=J[a>>2];break n}h=g<<3;d=h+J[j+60>>2]|0;c=J[d+4>>2];J[a+68>>2]=J[d>>2];J[a+72>>2]=c;d=h+J[j+60>>2]|0;c=J[d+12>>2];J[a+76>>2]=J[d+8>>2];J[a+80>>2]=c}o:{if(!(!(K[e+740|0]&16)|K[a+16|0]&2)){C=a,D=Pc(J[a+180>>2],i),J[C+180>>2]=D;C=a,D=Pc(J[a+184>>2],p),J[C+184>>2]=D;C=a,D=Pc(J[a+188>>2],i),J[C+188>>2]=D;C=a,D=Pc(J[a+192>>2],p),J[C+192>>2]=D;break o}e=g<<3;d=e+J[j+60>>2]|0;c=J[d+20>>2];J[a+180>>2]=J[d+16>>2];J[a+184>>2]=c;d=e+J[j+60>>2]|0;c=J[d+28>>2];J[a+188>>2]=J[d+24>>2];J[a+ -192>>2]=c}if(K[a+16|0]&2)break l;I[a+128>>1]=L[a+128>>1]+4;C=l,D=e4(a,0),J[C+12>>2]=D}if(b)gc[J[n+8>>2]](n,b);bc=l+16|0;a=J[l+12>>2];J[f+172>>2]=a;if(a)break c;qx(q);break c}if((d|0)>=0)break k;r=J[m+100>>2];I[a+32>>1]=65535;h=a+204|0;p:{q:{d=J[a+204>>2];r:{if(d){e=c;while(1){if(!e){e=d;while(1){J[e+8>>2]=-1;e=J[e+4>>2];if(e)continue;break}if(dM(h,b))break r;J[d+8>>2]=b;break p}e=e-1|0;d=J[d+4>>2];if(d)continue;break}}if(!dM(h,b))break q}J[f+172>>2]=21;break k}e=Zd(r,12,f+172|0);if(J[f+172>>2])break k; -J[e+8>>2]=b;if(!(!h|!e)){d=J[h+4>>2];J[e>>2]=d;J[e+4>>2]=0;J[(d?d+4|0:h)>>2]=e;J[h+4>>2]=e}}n=I[q+22>>1];w=I[q+20>>1];d=gc[J[m+536>>2]](a)|0;J[f+172>>2]=d;if(d)break k;y=J[a+164>>2];gc[J[m+524>>2]](a);if(L[m+6>>1]&32767|K[m+9|0]&128){j=J[q+84>>2];d=j+4|0;I[f+80>>1]=d;I[f+82>>1]=d;g=0;p=d<<16>>16;o=f+172|0;l=Sc(r,8,0,p,0,o);i=0;e=0;d=0;s:{if(J[f+172>>2])break s;k=Sc(r,1,0,p,0,o);d=0;if(J[f+172>>2])break s;h=Sc(r,2,0,p,0,o);d=0;if(J[f+172>>2])break s;e=Sc(r,8,0,p,0,o);d=0;if(J[f+172>>2])break s;o=j<< +192>>2];J[f+44>>2]=262148;J[f+56>>2]=f- -64;J[f+52>>2]=f+76;J[f+48>>2]=f+80;b=MM(J[a>>2],b,f+44|0,f,4);J[f+172>>2]=b;if(b)break c;J[a+68>>2]=J[f+80>>2];J[a+72>>2]=J[f+84>>2];J[a+76>>2]=J[f+88>>2];J[a+80>>2]=J[f+92>>2];J[a+180>>2]=J[f+96>>2];J[a+184>>2]=J[f+100>>2];J[a+188>>2]=J[f+104>>2];J[a+192>>2]=J[f+108>>2];b=J[J[a>>2]+740>>2];if(!(b&2))J[a+60>>2]=(J[f+8>>2]-J[f>>2]|0)+32>>6;if(b&16)break g;J[a+176>>2]=(J[f+24>>2]-J[f+16>>2]|0)+32>>6}if(!(H[a+16|0]&1)){C=a,D=Wc(J[a+68>>2],s),J[C+68>>2]=D;C=a, +D=Wc(J[a+76>>2],s),J[C+76>>2]=D;C=a,D=Wc(J[a+180>>2],s),J[C+180>>2]=D;C=a,D=Wc(J[a+184>>2],t),J[C+184>>2]=D;C=a,D=Wc(J[a+188>>2],s),J[C+188>>2]=D;C=a,D=Wc(J[a+192>>2],t),J[C+192>>2]=D}J[f+172>>2]=0;break c}l=J[a>>2];k=1;h:{if(J[J[l+96>>2]+64>>2]!=40)break h;e=J[a+156>>2];k=1;if(!e)break h;k=!K[e+613|0]|!K[e+618|0]}J[a+80>>2]=0;J[a+72>>2]=0;n=J[a+36>>2]-j|0;J[a+68>>2]=n;k=k&1?0:o>>>1|0;J[a+188>>2]=k;e=g+J[a+48>>2]|0;J[a+184>>2]=e;J[a+180>>2]=k;J[a+76>>2]=n+o;J[a+192>>2]=e-i;k=J[J[l+128>>2]+52>>2]; +i:{if(!k)break i;e=J[J[k>>2]+8>>2];if(!e)break i;J[f+92>>2]=0;J[f+88>>2]=o;J[f+84>>2]=0;J[f+80>>2]=j;j:{if(kc[e|0](J[k+4>>2],b,0,f+80|0)|0)break j;d=I[f+80>>1];e=L[f+88>>1];J[a+172>>2]=0;J[a+176>>2]=0;J[a+56>>2]=e;J[a+52>>2]=d;if(K[a+64|0])break j;J[a+60>>2]=e;H[a+64|0]=1}d=J[a+28>>2]}d=kc[J[m+520>>2]](a,b,(h+J[m+728>>2]|0)+10|0,d-10|0)|0;J[f+172>>2]=d;if(d)break c;k:{d=I[a+32>>1];if((d|0)>0){b=kc[J[m+532>>2]](a)|0;J[f+172>>2]=b;if(b)break k;kc[J[m+524>>2]](a);b=0;l=fc-16|0;fc=l;j=J[a+12>>2];J[l+ +12>>2]=0;n=J[J[a>>2]+100>>2];c=J[a+72>>2];g=I[j+58>>1];d=J[j+60>>2]+(g<<3)|0;J[d>>2]=J[a+68>>2];J[d+4>>2]=c;c=J[a+80>>2];k=g+1|0;d=J[j+60>>2]+(k<<3)|0;J[d>>2]=J[a+76>>2];J[d+4>>2]=c;c=J[a+184>>2];h=g+2|0;d=J[j+60>>2]+(h<<3)|0;J[d>>2]=J[a+180>>2];J[d+4>>2]=c;c=J[a+192>>2];e=g+3|0;d=J[j+60>>2]+(e<<3)|0;J[d>>2]=J[a+188>>2];J[d+4>>2]=c;c=j- -64|0;H[g+J[c>>2]|0]=0;H[k+J[c>>2]|0]=0;H[h+J[c>>2]|0]=0;H[e+J[c>>2]|0]=0;k=g+4|0;c=J[a>>2];l:{if(L[c+6>>1]&32767|K[c+9|0]&128){b=_c(n,8,0,k,0,l+12|0);if(J[l+12>> +2])break l;e=MM(J[a>>2],J[a+20>>2],j+56|0,b,k);J[l+12>>2]=e;d=J[J[a>>2]+740>>2];if(!(d&2)){c=(g<<3)+b|0;J[a+60>>2]=(J[c+8>>2]-J[c>>2]|0)+32>>6}if(!(d&16)){c=(g<<3)+b|0;J[a+176>>2]=(J[c+24>>2]-J[c+16>>2]|0)+32>>6}if(e)break l}i=0;c=J[a+16>>2];if(!(c&2)){h=L[j+58>>1];I[a+128>>1]=h;I[a+130>>1]=L[j+56>>1];J[a+132>>2]=J[j+76>>2];e=J[j+60>>2];J[a+136>>2]=e;d=J[j+80>>2];J[a+140>>2]=d;J[a+144>>2]=J[j+64>>2];c=J[j+68>>2];I[a+152>>1]=0;J[a+148>>2]=c;xc(d,e,(h<<3)+32|0);c=J[a+16>>2]}m:{if(c&1)break m;e=J[j+ +60>>2];d=e+(k<<3)|0;c=J[J[a+4>>2]+44>>2];p=J[c+8>>2];i=J[c+4>>2];c=J[a>>2];if(!(L[c+6>>1]&32767|K[c+9|0]&128)){if((g|0)<=-4)break m;while(1){C=e,D=Wc(J[e>>2],i),J[C>>2]=D;C=e,D=Wc(J[e+4>>2],p),J[C+4>>2]=D;e=e+8|0;if(d>>>0>e>>>0)continue;break}break m}if((g|0)<-3)break m;c=b;while(1){C=e,D=Wc(J[c>>2],i)+32>>6,J[C>>2]=D;C=e,D=Wc(J[c+4>>2],p)+32>>6,J[C+4>>2]=D;c=c+8|0;e=e+8|0;if(d>>>0>e>>>0)continue;break}}e=J[a>>2];n:{if(!(!(K[e+740|0]&2)|K[a+16|0]&2)){C=a,D=Wc(J[a+68>>2],i),J[C+68>>2]=D;C=a,D=Wc(J[a+ +76>>2],i),J[C+76>>2]=D;e=J[a>>2];break n}h=g<<3;d=h+J[j+60>>2]|0;c=J[d+4>>2];J[a+68>>2]=J[d>>2];J[a+72>>2]=c;d=h+J[j+60>>2]|0;c=J[d+12>>2];J[a+76>>2]=J[d+8>>2];J[a+80>>2]=c}o:{if(!(!(K[e+740|0]&16)|K[a+16|0]&2)){C=a,D=Wc(J[a+180>>2],i),J[C+180>>2]=D;C=a,D=Wc(J[a+184>>2],p),J[C+184>>2]=D;C=a,D=Wc(J[a+188>>2],i),J[C+188>>2]=D;C=a,D=Wc(J[a+192>>2],p),J[C+192>>2]=D;break o}e=g<<3;d=e+J[j+60>>2]|0;c=J[d+20>>2];J[a+180>>2]=J[d+16>>2];J[a+184>>2]=c;d=e+J[j+60>>2]|0;c=J[d+28>>2];J[a+188>>2]=J[d+24>>2];J[a+ +192>>2]=c}if(K[a+16|0]&2)break l;I[a+128>>1]=L[a+128>>1]+4;C=l,D=f6(a,0),J[C+12>>2]=D}if(b)kc[J[n+8>>2]](n,b);fc=l+16|0;a=J[l+12>>2];J[f+172>>2]=a;if(a)break c;gy(q);break c}if((d|0)>=0)break k;r=J[m+100>>2];I[a+32>>1]=65535;h=a+204|0;p:{q:{d=J[a+204>>2];r:{if(d){e=c;while(1){if(!e){e=d;while(1){J[e+8>>2]=-1;e=J[e+4>>2];if(e)continue;break}if(zN(h,b))break r;J[d+8>>2]=b;break p}e=e-1|0;d=J[d+4>>2];if(d)continue;break}}if(!zN(h,b))break q}J[f+172>>2]=21;break k}e=he(r,12,f+172|0);if(J[f+172>>2])break k; +J[e+8>>2]=b;if(!(!h|!e)){d=J[h+4>>2];J[e>>2]=d;J[e+4>>2]=0;J[(d?d+4|0:h)>>2]=e;J[h+4>>2]=e}}n=I[q+22>>1];w=I[q+20>>1];d=kc[J[m+536>>2]](a)|0;J[f+172>>2]=d;if(d)break k;y=J[a+164>>2];kc[J[m+524>>2]](a);if(L[m+6>>1]&32767|K[m+9|0]&128){j=J[q+84>>2];d=j+4|0;I[f+80>>1]=d;I[f+82>>1]=d;g=0;p=d<<16>>16;o=f+172|0;l=_c(r,8,0,p,0,o);i=0;e=0;d=0;s:{if(J[f+172>>2])break s;k=_c(r,1,0,p,0,o);d=0;if(J[f+172>>2])break s;h=_c(r,2,0,p,0,o);d=0;if(J[f+172>>2])break s;e=_c(r,8,0,p,0,o);d=0;if(J[f+172>>2])break s;o=j<< 16>>16;if((o|0)>0){d=J[q+88>>2];while(1){j=l+(g<<3)|0;J[j>>2]=J[d+8>>2];J[j+4>>2]=J[d+12>>2];H[g+k|0]=1;I[h+(g<<1)>>1]=i;d=d+32|0;i=i+1|0;g=i<<16>>16;if((o|0)>(g|0))continue;break}}d=l+(g<<3)|0;J[d>>2]=J[a+68>>2];J[d+4>>2]=J[a+72>>2];H[g+k|0]=1;I[h+(g<<1)>>1]=i;g=i+1|0;j=g<<16>>16;d=l+(j<<3)|0;J[d>>2]=J[a+76>>2];J[d+4>>2]=J[a+80>>2];H[j+k|0]=1;I[h+(j<<1)>>1]=g;g=i+2|0;j=g<<16>>16;d=l+(j<<3)|0;J[d>>2]=J[a+180>>2];J[d+4>>2]=J[a+184>>2];H[j+k|0]=1;I[h+(j<<1)>>1]=g;i=i+3|0;g=i<<16>>16;d=l+(g<<3)|0;J[d>> -2]=J[a+188>>2];J[d+4>>2]=J[a+192>>2];H[g+k|0]=1;I[h+(g<<1)>>1]=i;J[f+92>>2]=h;J[f+88>>2]=k;J[f+84>>2]=l;b=qL(m,b,f+80|0,e,p);J[f+172>>2]=b;t:{if(b)break t;u:{if((o|0)<=0){d=0;break u}b=J[q+88>>2];d=0;g=0;while(1){if(K[b+4|0]&2){d=l+(d<<3)|0;J[b+8>>2]=I[d>>1];J[b+12>>2]=I[d+4>>1]}b=b+32|0;g=g+1|0;d=g<<16>>16;if((o|0)>(d|0))continue;break}}b=l+(d<<3)|0;J[a+68>>2]=J[b>>2];J[a+72>>2]=J[b+4>>2];J[a+76>>2]=J[b+8>>2];J[a+80>>2]=J[b+12>>2];J[a+180>>2]=J[b+16>>2];J[a+184>>2]=J[b+20>>2];J[a+188>>2]=J[b+24>> -2];J[a+192>>2]=J[b+28>>2];d=J[m+740>>2];if(!(d&2)){b=(p<<3)+e|0;J[a+60>>2]=(J[b-24>>2]-J[b-32>>2]|0)+32>>6}if(d&16)break t;b=(p<<3)+e|0;J[a+176>>2]=(J[b-8>>2]-J[b-16>>2]|0)+32>>6}g=h;i=l;d=k}if(i)gc[J[r+8>>2]](r,i);if(d)gc[J[r+8>>2]](r,d);if(g)gc[J[r+8>>2]](r,g);if(e)gc[J[r+8>>2]](r,e);if(J[f+172>>2])break c}b=J[a+16>>2];if(!(b&1)){C=a,D=Pc(J[a+68>>2],s),J[C+68>>2]=D;C=a,D=Pc(J[a+76>>2],s),J[C+76>>2]=D;C=a,D=Pc(J[a+180>>2],s),J[C+180>>2]=D;C=a,D=Pc(J[a+184>>2],t),J[C+184>>2]=D;C=a,D=Pc(J[a+188>>2], -s),J[C+188>>2]=D;C=a,D=Pc(J[a+192>>2],t),J[C+192>>2]=D;b=J[a+16>>2]}if(b&1024){qx(q);J[J[a+8>>2]+72>>2]=1668246896;break c}z=J[q+48>>2];x=J[q+84>>2];A=J[a+28>>2];B=J[a+24>>2];qx(q);v:{if(!x){e=0;b=n;break v}r=c+1|0;b=0;while(1){u=I[q+22>>1];s=J[a+176>>2];p=J[a+60>>2];k=J[a+188>>2];t=J[a+192>>2];h=J[a+180>>2];o=J[a+184>>2];d=J[a+76>>2];j=J[a+80>>2];c=J[a+68>>2];g=J[a+72>>2];l=b<<5;i=z<<5;e=zL(a,J[l+(i+J[q+52>>2]|0)>>2],r,0);J[f+172>>2]=e;if(e)break c;e=l+(i+J[q+52>>2]|0)|0;if(!(K[e+5|0]&2)){J[a+188>> -2]=k;J[a+192>>2]=t;J[a+180>>2]=h;J[a+184>>2]=o;J[a+76>>2]=d;J[a+80>>2]=j;J[a+68>>2]=c;J[a+72>>2]=g;J[a+176>>2]=s;J[a+60>>2]=p}k=L[q+22>>1];if((k|0)!=(u&65535)){p=0;i=bc-32|0;bc=i;l=J[a+12>>2];J[i+16>>2]=J[l+24>>2]+(u<<3);I[i+14>>1]=L[l+22>>1]-u;h=L[e+4>>1];c=h&200;if(c){uo(i+12|0,e+16|0);h=L[e+4>>1]}g=J[e+12>>2];d=J[e+8>>2];w:{x:{if(!(h&2)){p=21;c=d+n|0;if(c>>>0>=u>>>0)break w;h=g+u|0;if(h>>>0>=I[l+22>>1]>>>0)break w;d=c<<3;c=J[l+24>>2];d=d+c|0;c=c+(h<<3)|0;g=J[d+4>>2]-J[c+4>>2]|0;d=J[d>>2]-J[c>> -2]|0;break x}if(!(d|g))break w;if(!(!c|!(h&2048))){h=iM(J[e+16>>2],J[e+20>>2]);c=iM(J[e+28>>2],J[e+24>>2]);d=Pc(d,h);g=Pc(g,c)}if(H[a+16|0]&1)break x;h=J[J[a+4>>2]+44>>2];c=J[h+8>>2];d=Pc(d,J[h+4>>2]);g=Pc(g,c);if(!(K[e+4|0]&4)|K[a+16|0]&2)break x;d=J[J[J[a>>2]+96>>2]+64>>2]==35?d+32&-64:d;g=g+32&-64}p=0;if(!(d|g))break w;Jh(i+12|0,d,g)}bc=i+32|0;J[f+172>>2]=p;if(p)break c}b=b+1|0;if((x|0)!=(b|0))continue;break}b=k<<16>>16}J[a+164>>2]=y;J[a+28>>2]=A;J[a+24>>2]=B;if(!(!e|J[a+16>>2]&2|(!(H[e+5|0]&1)| -b>>>0<=n>>>0))){h=bc-16|0;bc=h;e=J[a+12>>2];d=I[e+22>>1];b=d+4|0;y:{if(!(!b|M[e+4>>2]>=I[e+58>>1]+(b+d|0)>>>0)){d=sh(e,b,0);if(d)break y;d=I[e+22>>1]}b=J[a+72>>2];c=J[e+24>>2]+(d<<3)|0;J[c>>2]=J[a+68>>2];J[c+4>>2]=b;b=J[a+80>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+8>>2]=J[a+76>>2];J[c+12>>2]=b;b=J[a+184>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+16>>2]=J[a+180>>2];J[c+20>>2]=b;b=J[a+192>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+24>>2]=J[a+188>>2];J[c+28>>2]=b;H[J[e+28>>2]+I[e+22>>1]|0]=0;H[(J[e+28>>2]+I[e+ -22>>1]|0)+1|0]=0;H[(J[e+28>>2]+I[e+22>>1]|0)+2|0]=0;H[(J[e+28>>2]+I[e+22>>1]|0)+3|0]=0;c=J[a+24>>2];d=nd(c,J[a+164>>2]);J[h+12>>2]=d;if(d)break y;e=Wd(c,h+12|0);d=J[h+12>>2];if(d)break y;z:{if(e>>>0>L[J[a>>2]+286>>1]){d=22;if((e|0)>J[a+28>>2])break y;b=J[a+156>>2];J[h+8>>2]=J[b+392>>2];d=f4(J[b+8>>2],h+8|0,b+396|0,e);J[h+12>>2]=d;i=J[a+156>>2];J[i+392>>2]=L[h+8>>1];if(!d)break z;break y}if(!e){d=0;break y}i=J[a+156>>2]}d=mg(c,J[i+396>>2],e);J[h+12>>2]=d;if(d)break y;c=J[J[a+156>>2]+396>>2];b=J[a+ -8>>2];J[b+140>>2]=e;J[b+136>>2]=c;d=J[a+12>>2];c=L[d+22>>1];I[a+128>>1]=c-n;I[a+130>>1]=L[d+20>>1]-w;b=n<<3;J[a+132>>2]=b+J[d+40>>2];J[a+136>>2]=b+J[d+24>>2];J[a+140>>2]=b+J[d+44>>2];J[a+144>>2]=J[d+28>>2]+n;b=J[d+32>>2];I[a+152>>1]=n;J[a+148>>2]=b+(w<<1);if((c|0)!=(n&65535)){b=0;while(1){c=J[a+144>>2]+b|0;H[c|0]=K[c|0]&231;b=b+1|0;c=L[a+128>>1];if(b>>>0>>0)continue;break}b=c+4|0}else b=4;I[a+128>>1]=b;d=e4(a,1)}bc=h+16|0;J[f+172>>2]=d;if(d)break c}if(!J[q+48>>2]|!(K[J[q+52>>2]+5|0]&4))break c; -J[q+36>>2]=J[q+36>>2]|64;break c}gc[J[m+524>>2]](a)}if(!v)break a;a=J[J[m+128>>2]+52>>2];gc[J[J[a>>2]+4>>2]](J[a+4>>2],f+120|0)}bc=f+176|0;return J[f+172>>2]}function WH(a,b,c,d,e,f,g,h,i,j){var 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,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0;w=rc(24);J[w+ -12>>2]=c;J[w+8>>2]=b;J[w>>2]=2305576;J[w+4>>2]=0;R=b+7>>3;J[w+16>>2]=R;a:{if(!((b|0)<=0|(c|0)<=0|(R|0)<=0)){m=c;if(m>>>0<2147483646/(R>>>0)>>>0)break a}J[w+12>>2]=-1;J[w+16>>2]=2;m=-1;R=2}J[695492]=0;z=P(m,R);t=$(3441,z+1|0)|0;l=J[695492];J[695492]=0;if((l|0)!=1){J[w+20>>2]=t;H[t+z|0]=0;wc(t,0,z);if((c|0)>0){Ba=d?8:16;W=g&7;ha=(g|0)>=0;ia=ha?7:W;t=0-g|0;z=(g|0)>0;va=z?0:t>>>3|0;ga=g^-1;ma=ha?0:ga>>>3|0;ja=W-1|0;wa=W?ja:7;l=t&7;sa=l^7;Ca=sa?6-l|0:7;xa=z?7:sa;ta=2-g|0;ua=g-2|0;z=1-g|0;ya=!W;Da=!sa; -while(1){p=J[w+12>>2];L=J[w+8>>2];s=(_|0)!=0&(p|0)>=(_|0)&(L|0)>0;l=_-1|0;b:{c:{d:{e:{f:{g:{h:{if(d){M=0;ea=0;u=0;na=0;aa=0;i:{if(!s)break i;s=J[w+20>>2]+P(l,J[w+16>>2])|0;if(!s){ea=7;aa=0;break i}k=(L|0)==1;u=k?0:s;ea=k?7:6;na=K[s|0]>>>7|0;aa=1}j:{if((p|0)<=(_|0)){V=0;p=0;break j}V=0;p=0;if((L|0)<0)break j;M=J[w+20>>2]+P(J[w+16>>2],_)|0;V=7;p=-1}k=J[f+8>>2];v=0;q=l-h|0;l=J[f+12>>2];r=(q|0)>=0&(l|0)>(q|0);k:{if(!r){da=0;fa=0;A=0;break k}da=0;fa=0;A=0;if((k|0)<=(t|0))break k;da=xa;fa=t;A=(J[f+20>> -2]+P(q,J[f+16>>2])|0)+va|0}l:{x=(k|0)>(ga|0);m=_-h|0;F=x&((m|0)>=0&(m|0)<(l|0));m:{if(!F){X=0;T=0;break m}X=ga;C=(J[f+20>>2]+P(m,J[f+16>>2])|0)+ma|0;T=ia;if(!C)break m;if(ha)break l;v=K[C|0]>>>W&1;if((k|0)!=(t|0))break h;X=t;T=W}ka=v<<1;C=0;y=0;break c}T=7;ka=0;X=z;y=0;if(g)break c;break d}fa=0;ka=0;aa=0;na=0;O=0;n:{if(!s)break n;s=J[w+20>>2]+P(l,J[w+16>>2])|0;if(!s){ka=7;O=0;break n}k=(L|0)==1;aa=k?0:s;ka=k?7:6;na=K[s|0]>>>7|0;O=1}o:{if((p|0)<=(_|0)){ea=0;oa=0;break o}ea=0;oa=0;if((L|0)<0)break o; -fa=J[w+20>>2]+P(J[w+16>>2],_)|0;ea=-1;oa=7}k=J[f+8>>2];y=0;r=l-h|0;A=J[f+12>>2];G=(r|0)>=0&(A|0)>(r|0);p:{if(!G){da=0;I=0;la=0;F=0;break p}da=0;I=0;la=0;F=0;if((k|0)<=(t|0))break p;l=(J[f+20>>2]+P(r,J[f+16>>2])|0)+va|0;if(!l){da=xa;F=t;break p}da=7;if((g|0)>0){I=l;F=z;break p}s=(k|0)==(z|0);I=s?0:l+Da|0;da=s?sa:Ca;la=K[l|0]>>>sa&1;F=z}q:{x=(k|0)>(ga|0);m=_-h|0;M=x&((m|0)>=0&(m|0)<(A|0));r:{if(!M){V=0;s=0;break r}V=ia;S=(J[f+20>>2]+P(m,J[f+16>>2])|0)+ma|0;s=ga;if(!S)break r;if(ha)break q;y=K[S|0]>>> -W&1;if((k|0)!=(t|0))break g;V=W;s=t}za=y<<1;S=0;ca=0;break e}V=7;za=0;s=z;ca=0;if(g)break e;break f}ka=v<<1;C=C+ya|0;T=wa;v=t;break d}za=y<<1;S=S+ya|0;V=wa;y=t}ca=K[S|0]>>>V&1;s=y+1|0;if((k|0)==(s|0)){s=k;S=0;break e}if(!V){S=S+1|0;V=7;break e}V=V-1|0}Q=0;u=0;s:{t:{u:{v:{N=0;n=m+1|0;y=x&((n|0)>=0&(n|0)<(A|0));q=0;w:{if(!y)break w;N=ga;l=(J[f+20>>2]+P(n,J[f+16>>2])|0)+ma|0;q=ia;if(!l)break w;if(ha)break v;u=K[l|0]>>>W&1;if((k|0)!=(t|0))break u;N=t;q=W}Aa=u<<1;X=0;break s}q=7;Aa=0;N=z;Q=l;X=0;if(g)break s; -break t}Aa=u<<1;l=l+ya|0;q=wa;u=t}X=K[l|0]>>>q&1;Q=0;N=u+1|0;if((k|0)==(N|0)){N=k;break s}if(!q){Q=l+1|0;q=7;break s}q=q-1|0;Q=l}T=0;o=J[j>>2]+_|0;x:{if(!((o|0)<0|(o|0)>=(p|0))){Y=0;pa=0;l=J[i>>2];D=0;if((l|0)>=(L|0))break x;p=P(o,J[w+16>>2]);o=J[w+20>>2];y:{if((l|0)<0){pa=7;Y=o+p|0;break y}pa=(l^-1)&7;Y=o+p+(l>>>3)|0}D=l;break x}Y=0;pa=0;D=0}p=m+J[j+4>>2]|0;z:{if(!((p|0)<0|(p|0)>=(A|0))){qa=0;l=J[i+4>>2]-g|0;E=0;if((l|0)>=(k|0))break z;p=P(p,J[f+16>>2]);A=J[f+20>>2];A:{if((l|0)<0){qa=7;T=p+A|0;break A}qa= -(l^-1)&7;T=p+A+(l>>>3)|0}E=l;break z}qa=0;E=0}R=0;B:{if(!e){A=0;o=0;l=0;p=0;G=0;r=0;L=0;x=0;M=0;n=0;y=0;m=0;break B}l=0;A=0;o=0;v=0;C:{D:{if(!(x&G))break D;A=ga;o=ia;u=(J[f+20>>2]+P(r,J[f+16>>2])|0)+ma|0;if(!u)break D;E:{F:{G:{H:{r=K[u|0];I:{if(!ha){A=t;o=W;if((k|0)==(t|0))break D;U=t;p=ja;if(o)break I;o=7;v=K[u+1|0]>>>7|0;if((k|0)!=(z|0))break H;A=z;break D}if(g)break F;U=0;p=7}o=p;v=r>>>o&1;r=U+1|0;if((k|0)==(r|0)){A=k;break D}if(o)break G;u=u+1|0;o=7;C=v<<1;break E}u=u+1|0;r=z}o=o-1|0;C=v<<1;break E}o= -7;C=0;r=0;A=ta;l=u;U=0;if((ua|0)>=0)break C}U=K[u|0]>>>o&1;l=0;A=r+1|0;if((k|0)==(A|0)){A=k;break C}if(!o){l=u+1|0;o=7;break C}o=o-1|0;l=u;break C}C=v<<1;U=0}r=0;p=0;G=0;v=0;J:{K:{if(!M)break K;p=ga;G=ia;m=(J[f+20>>2]+P(m,J[f+16>>2])|0)+ma|0;if(!m)break K;L:{M:{N:{O:{P:{if(!ha){p=t;G=W;if((k|0)==(t|0))break K;G=ja;p=t;if(W)break P;G=7;v=K[m+1|0]>>>7|0;if((k|0)!=(z|0))break O;p=z;break K}if(g)break M;G=7;p=0}v=K[m|0]>>>G&1;M=p+1|0;if((k|0)==(M|0)){p=k;break K}if(G)break N;m=m+1|0;G=7;u=v<<1;break L}m= -m+1|0;M=z}G=G-1|0;u=v<<1;break L}G=7;u=0;M=0;p=ta;r=m;if((ua|0)>=0)break J}v=K[m|0]>>>G&1;r=0;p=M+1|0;if((k|0)==(p|0)){p=k;break J}if(!G){r=m+1|0;G=7;break J}G=G-1|0;r=m;break J}u=v<<1;v=0}M=0;x=0;m=0;Q:{R:{S:{T:{U:{V:{L=0;W:{if(!y)break W;x=ia;n=(J[f+20>>2]+P(n,J[f+16>>2])|0)+ma|0;L=ga;if(!n)break W;ra=K[n|0];X:{if(!ha){x=W;L=t;if((k|0)==(t|0))break W;y=t;x=ja;if(W)break X;x=7;m=K[n+1|0]>>>7|0;if((k|0)!=(z|0))break U;L=z;break W}if(g)break S;y=0;x=7}m=ra>>>x&1;ra=y+1|0;if((k|0)!=(ra|0))break V;L= -k}m=m<<1;y=0;break Q}if(x)break T;n=n+1|0;x=7;m=m<<1;break R}n=n+1|0;ra=z}x=x-1|0;m=m<<1;break R}x=7;ra=0;L=ta;M=n;y=0;if((ua|0)>=0)break Q}y=K[n|0]>>>x&1;M=0;L=ra+1|0;if((k|0)==(L|0)){L=k;break Q}if(!x){M=n+1|0;x=7;break Q}x=x-1|0;M=n}n=u|v;y=m|y;m=C|U}if((b|0)<=0)break b;v=ca|za;U=X|Aa;while(1){C=0;Y:{if(!aa){aa=0;ca=0;break Y}if((O|0)<0){O=O+1|0;ca=0;break Y}ca=K[aa|0]>>>ka&1;O=O+1|0;if((O|0)==J[w+8>>2]){aa=0;break Y}if(!ka){aa=aa+1|0;ka=7;break Y}ka=ka-1|0}Z:{if(!I){I=0;break Z}if((F|0)<0){F= -F+1|0;break Z}C=K[I|0]>>>da&1;F=F+1|0;if((F|0)==J[f+8>>2]){I=0;break Z}if(!da){I=I+1|0;da=7;break Z}da=da-1|0}u=0;_:{if(!S){S=0;X=0;break _}if((s|0)<0){s=s+1|0;X=0;break _}X=K[S|0]>>>V&1;s=s+1|0;if((s|0)==J[f+8>>2]){S=0;break _}if(!V){S=S+1|0;V=7;break _}V=V-1|0}k=na<<1&2;ra=la<<1&2;v=v<<1&6;$:{if(!Q){Q=0;break $}if((N|0)<0){N=N+1|0;break $}u=K[Q|0]>>>q&1;N=N+1|0;if((N|0)==J[f+8>>2]){Q=0;break $}if(!q){Q=Q+1|0;q=7;break $}q=q-1|0}na=k|ca;la=C|ra;v=v|X;U=U<<1&6|u;aa:{ba:{if(!e)break ba;C=0;ca:{if(!l){l= -0;u=0;break ca}if((A|0)<0){A=A+1|0;u=0;break ca}u=K[l|0]>>>o&1;A=A+1|0;if((A|0)==J[f+8>>2]){l=0;break ca}if(!o){l=l+1|0;o=7;break ca}o=o-1|0}k=m<<1&6;da:{if(!r){r=0;break da}if((p|0)<0){p=p+1|0;break da}C=K[r|0]>>>G&1;p=p+1|0;if((p|0)==J[f+8>>2]){r=0;break da}if(!G){r=r+1|0;G=7;break da}G=G-1|0}m=k|u;k=n<<1&6;u=0;ea:{if(!M){M=0;break ea}if((L|0)<0){L=L+1|0;break ea}u=K[M|0]>>>x&1;L=L+1|0;if((L|0)==J[f+8>>2]){M=0;break ea}if(!x){M=M+1|0;x=7;break ea}x=x-1|0}he(J[a+76>>2],Ba,J[a+84>>2]);y=y<<1&6|u; -n=k|C;if(!(y|(n|m))){k=J[w+20>>2]+P(J[w+16>>2],_)+(R>>>3)|0;H[k|0]=K[k|0]&32639>>>(R&7);m=0;n=0;y=0;break aa}if((m|0)!=7|(n|0)!=7|(y|0)!=7)break ba;m=7;k=J[w+20>>2]+P(J[w+16>>2],_)+(R>>>3)|0;H[k|0]=K[k|0]|1<<((R^-1)&7);n=7;y=7;break aa}k=na<<11;C=0;fa:{if(!fa){fa=0;ca=0;break fa}if((ea|0)<0){ea=ea+1|0;ca=0;break fa}ca=K[fa|0]>>>oa&1;ea=ea+1|0;if((ea|0)==J[w+8>>2]){fa=0;break fa}if(!oa){fa=fa+1|0;oa=7;break fa}oa=oa-1|0}k=k|ca<<10|la<<8|v<<5|U<<2;ga:{if(!Y){Y=0;break ga}if((D|0)<0){D=D+1|0;break ga}C= -K[Y|0]>>>pa&1;D=D+1|0;if((D|0)==J[w+8>>2]){Y=0;break ga}if(!pa){Y=Y+1|0;pa=7;break ga}pa=pa-1|0}k=k|C<<1;C=0;ha:{if(!T){T=0;break ha}if((E|0)<0){E=E+1|0;break ha}C=K[T|0]>>>qa&1;E=E+1|0;if((E|0)==J[f+8>>2]){T=0;break ha}if(!qa){T=T+1|0;qa=7;break ha}qa=qa-1|0}if(!he(J[a+76>>2],k|C,J[a+84>>2]))break aa;k=J[w+20>>2]+P(J[w+16>>2],_)+(R>>>3)|0;H[k|0]=K[k|0]|1<<((R^-1)&7)}R=R+1|0;if((R|0)!=(b|0))continue;break}break b}y=K[C|0]>>>T&1;X=v+1|0;if((k|0)==(X|0)){X=k;C=0;break c}if(!T){C=C+1|0;T=7;break c}T= -T-1|0}s=0;o=m+1|0;v=(o|0)>=0&(l|0)>(o|0);ia:{if(!v){Y=0;S=0;la=0;l=0;break ia}Y=0;S=0;la=0;l=0;if((k|0)<=(t|0))break ia;l=(J[f+20>>2]+P(o,J[f+16>>2])|0)+va|0;if(!l){Y=xa;l=t;break ia}Y=7;if((g|0)>0){S=l;l=z;break ia}N=(k|0)==(z|0);S=N?0:l+Da|0;Y=N?sa:Ca;la=K[l|0]>>>sa&1;l=z}ca=l;ja:{if(!e){D=0;N=0;l=0;E=0;O=0;r=0;q=0;F=0;n=0;U=0;m=0;break ja}N=0;D=0;I=0;ka:{la:{if(!(r&x))break la;s=ga;D=ia;n=(J[f+20>>2]+P(q,J[f+16>>2])|0)+ma|0;if(!n)break la;ma:{na:{oa:{pa:{l=K[n|0];qa:{if(!ha){s=t;D=W;if((k|0)== -(t|0))break la;Q=t;D=ja;if(W)break qa;D=7;I=K[n+1|0]>>>7|0;if((k|0)!=(z|0))break pa;s=z;break la}if(g)break na;Q=0;D=7}I=l>>>D&1;O=Q+1|0;if((k|0)==(O|0)){s=k;break la}if(D)break oa;n=n+1|0;D=7;Q=I<<1;break ma}n=n+1|0;O=z}D=D-1|0;Q=I<<1;break ma}D=7;Q=0;O=0;s=ta;N=n;if((ua|0)>=0)break ka}I=K[n|0]>>>D&1;N=0;s=O+1|0;if((k|0)==(s|0)){s=k;break ka}if(!D){N=n+1|0;D=7;break ka}D=D-1|0;N=n;break ka}Q=I<<1;I=0}O=0;l=0;E=0;n=0;ra:{sa:{if(!F)break sa;l=ga;E=ia;m=(J[f+20>>2]+P(m,J[f+16>>2])|0)+ma|0;if(!m)break sa; -ta:{ua:{va:{wa:{xa:{if(!ha){E=W;l=t;if((k|0)==(l|0))break sa;E=ja;if(W)break xa;E=7;n=K[m+1|0]>>>7|0;if((k|0)!=(z|0))break wa;l=z;break sa}if(g)break ua;E=7;l=0}n=K[m|0]>>>E&1;F=l+1|0;if((k|0)==(F|0)){l=k;break sa}if(E)break va;m=m+1|0;E=7;G=n<<1;break ta}m=m+1|0;F=z}E=E-1|0;G=n<<1;break ta}E=7;G=0;F=0;l=ta;O=m;if((ua|0)>=0)break ra}n=K[m|0]>>>E&1;O=0;l=F+1|0;if((k|0)==(l|0)){l=k;break ra}if(!E){O=m+1|0;E=7;break ra}E=E-1|0;O=m;break ra}G=n<<1;n=0}F=0;q=0;m=0;ya:{za:{Aa:{Ba:{Ca:{Da:{r=0;Ea:{if(!(v& -x))break Ea;q=ia;o=(J[f+20>>2]+P(o,J[f+16>>2])|0)+ma|0;r=ga;if(!o)break Ea;x=K[o|0];Fa:{if(!ha){q=W;r=t;if((k|0)==(t|0))break Ea;v=t;q=ja;if(W)break Fa;q=7;m=K[o+1|0]>>>7|0;if((k|0)!=(z|0))break Ca;r=z;break Ea}if(g)break Aa;v=0;q=7}m=x>>>q&1;x=v+1|0;if((k|0)!=(x|0))break Da;r=k}U=m<<1;v=0;break ya}if(q)break Ba;o=o+1|0;q=7;U=m<<1;break za}o=o+1|0;x=z}q=q-1|0;U=m<<1;break za}q=7;U=0;x=0;r=ta;F=o;v=0;if((ua|0)>=0)break ya}v=K[o|0]>>>q&1;F=0;r=x+1|0;if((k|0)==(r|0)){r=k;break ya}if(!q){F=o+1|0;q=7; -break ya}q=q-1|0;F=o}n=n|G;U=v|U;m=I|Q}if((b|0)<=0)break b;v=y|ka;R=0;while(1){Ga:{if(!u){u=0;I=0;break Ga}if((aa|0)<0){aa=aa+1|0;I=0;break Ga}I=K[u|0]>>>ea&1;aa=aa+1|0;if((L|0)==(aa|0)){aa=L;u=0;break Ga}if(!ea){u=u+1|0;ea=7;break Ga}ea=ea-1|0}y=0;Ha:{if(!C){C=0;Q=0;break Ha}if((X|0)<0){X=X+1|0;Q=0;break Ha}Q=K[C|0]>>>T&1;X=X+1|0;if((X|0)==J[f+8>>2]){C=0;break Ha}if(!T){C=C+1|0;T=7;break Ha}T=T-1|0}k=na<<1&6;o=v<<1&6;Ia:{if(!S){S=0;break Ia}if((ca|0)<0){ca=ca+1|0;break Ia}y=K[S|0]>>>Y&1;ca=ca+1| -0;if((ca|0)==J[f+8>>2]){S=0;break Ia}if(!Y){S=S+1|0;Y=7;break Ia}Y=Y-1|0}na=k|I;v=o|Q;la=la<<1&2|y;Ja:{Ka:{if(!e)break Ka;y=0;La:{if(!N){N=0;I=0;break La}if((s|0)<0){s=s+1|0;I=0;break La}I=K[N|0]>>>D&1;s=s+1|0;if((s|0)==J[f+8>>2]){N=0;break La}if(!D){N=N+1|0;D=7;break La}D=D-1|0}k=m<<1&6;Ma:{if(!O){O=0;break Ma}if((l|0)<0){l=l+1|0;break Ma}y=K[O|0]>>>E&1;l=l+1|0;if((l|0)==J[f+8>>2]){O=0;break Ma}if(!E){O=O+1|0;E=7;break Ma}E=E-1|0}m=k|I;k=n<<1&6;I=0;Na:{if(!F){F=0;break Na}if((r|0)<0){r=r+1|0;break Na}I= -K[F|0]>>>q&1;r=r+1|0;if((r|0)==J[f+8>>2]){F=0;break Na}if(!q){F=F+1|0;q=7;break Na}q=q-1|0}he(J[a+76>>2],Ba,J[a+84>>2]);U=U<<1&6|I;n=k|y;if(!(U|(n|m))){k=J[w+20>>2]+P(J[w+16>>2],_)+(R>>>3)|0;H[k|0]=K[k|0]&32639>>>(R&7);m=0;n=0;U=0;break Ja}if((m|0)!=7|(n|0)!=7|(U|0)!=7)break Ka;m=7;k=J[w+20>>2]+P(J[w+16>>2],_)+(R>>>3)|0;H[k|0]=K[k|0]|1<<((R^-1)&7);n=7;U=7;break Ja}k=na<<7;y=0;Oa:{if(!M){M=0;Q=0;break Oa}if((p|0)<0){p=p+1|0;Q=0;break Oa}Q=K[M|0]>>>V&1;p=p+1|0;if((L|0)==(p|0)){p=L;M=0;break Oa}if(!V){M= -M+1|0;V=7;break Oa}V=V-1|0}k=k|Q<<6;Pa:{if(!A){A=0;break Pa}if((fa|0)<0){fa=fa+1|0;break Pa}y=K[A|0]>>>da&1;fa=fa+1|0;if((fa|0)==J[f+8>>2]){A=0;break Pa}if(!da){A=A+1|0;da=7;break Pa}da=da-1|0}if(!he(J[a+76>>2],k|y<<5|v<<2|la,J[a+84>>2]))break Ja;k=J[w+20>>2]+P(J[w+16>>2],_)+(R>>>3)|0;H[k|0]=K[k|0]|1<<((R^-1)&7)}R=R+1|0;if((R|0)!=(b|0))continue;break}}_=_+1|0;if((_|0)!=(c|0))continue;break}}return w}a=Z()|0;qc(w);ba(a|0);B()}function NH(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;j=bc- -96|0;bc=j;a:{b:{while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=255&(c|0)!=-1)continue;while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}c:{d:{e:switch(c-192|0){case 26:c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;b=-1;f:{if((d|0)==-1)break f;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;b=-1;if((c|0)==-1)break f;b=c+(d<<8)|0}c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+136>>2]=c;g:{if(c-5>>>0<=4294967291){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,817359,0);J[a+136>>2]=0;b=0;break g}if((b| -0)!=((c<<1)+6|0)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,818370,0);b=0;break g}f=a+120|0;b=c;c=J[a+188>>2];J[a+12>>2]=(b|0)==(c|0);b=0;h:{if((c|0)>0){while(1){J[f+(b<<2)>>2]=0;b=b+1|0;if((b|0)>2])continue;break}if(J[a+136>>2]<=0)break h}c=0;while(1){b=J[a+4>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;i:{b=c;if((e|0)==J[(P(c,20)+a|0)+40>>2])break i;b=0;j:{k:{d=J[a+188>>2];if((d|0)<=0)break k;while(1){if((e|0)==J[(P(b,20)+a|0)+40>>2])break k;b=b+1|0;if((d|0)!=(b|0))continue;break}break j}if((b|0)!=(d|0))break i}xc(1, -gc[J[J[a>>2]+52>>2]](a)|0,818591,0);b=0;break g}d=b<<2;b=d+f|0;if(J[b>>2]){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,818982,0);b=0;break g}J[b>>2]=1;d=a+d|0;b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[d+156>>2]=b&15;J[d+140>>2]=b>>>4&15;c=c+1|0;if((c|0)>2])continue;break}}b=J[a+4>>2];m=a,n=gc[J[J[b>>2]+28>>2]](b)|0,J[m+172>>2]=n;b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;J[a+176>>2]=c;b=J[a+172>>2];if(!(!((b|0)>(c|0)|(c|0)>63)&(b|0)>=0)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,819266,0);b=0;break g}b=J[a+4>>2];b= -gc[J[J[b>>2]+28>>2]](b)|0;J[a+184>>2]=b&15;J[a+180>>2]=b>>>4&15;b=1}if(!b)break a;l=1;d=J[a+188>>2];if((d|0)<=0)break a;c=J[a+720>>2];b=0;break b;default:switch(c+1|0){case 1:continue;case 0:break d;default:break c}case 0:case 1:if(!b){a=gc[J[J[a>>2]+52>>2]](a)|0;J[j+16>>2]=c;xc(1,a,816370,j+16|0);break a}h=bc-16|0;bc=h;c=-1;d=J[a+4>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)!=-1){d=J[a+4>>2];gc[J[J[d>>2]+28>>2]](d)|0}d=J[a+4>>2];f=gc[J[J[d>>2]+28>>2]](d)|0;d=J[a+4>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;l:{if((e| -0)==-1)break l;d=J[a+4>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break l;c=d+(e<<8)|0}J[a+20>>2]=c;c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;e=-1;m:{if((d|0)==-1)break m;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;e=-1;if((c|0)==-1)break m;e=c+(d<<8)|0}J[a+16>>2]=e;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+188>>2]=c;n:{if(c-5>>>0<=4294967291){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,817359,0);J[a+188>>2]=0;c=0;break n}o:{if((f|0)==8){g=0;break o}c=gc[J[J[a>>2]+52>>2]](a)|0;J[h>>2]=f;xc(1,c,817564,h);c=0;break n}p:{while(1){e= -P(g,20)+a|0;c=J[a+4>>2];m=e,n=gc[J[J[c>>2]+28>>2]](c)|0,J[m+40>>2]=n;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[e+48>>2]=c&15;J[e+44>>2]=c>>>4&15;c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;J[e+52>>2]=d;q:{c=J[e+44>>2];r:{if(c>>>0>4|!(1<>2];if(c>>>0>4)break r;if(1<>2]+52>>2]](a)|0,817903,0);c=0;break n}if(d>>>0<4){g=g+1|0;if((g|0)>=J[a+188>>2])break p;continue}break}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,818176,0);c=0;break n}J[a+8>>2]=0;c=1}bc=h+16|0;if(c)continue; -break a;case 2:if(!b){a=gc[J[J[a>>2]+52>>2]](a)|0;J[j+32>>2]=194;xc(1,a,816370,j+32|0);break a}h=bc-16|0;bc=h;c=-1;d=J[a+4>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)!=-1){d=J[a+4>>2];gc[J[J[d>>2]+28>>2]](d)|0}d=J[a+4>>2];f=gc[J[J[d>>2]+28>>2]](d)|0;d=J[a+4>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;s:{if((e|0)==-1)break s;d=J[a+4>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break s;c=d+(e<<8)|0}J[a+20>>2]=c;c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;e=-1;t:{if((d|0)==-1)break t;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0; -e=-1;if((c|0)==-1)break t;e=c+(d<<8)|0}J[a+16>>2]=e;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+188>>2]=c;u:{if(c-5>>>0<=4294967291){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,817359,0);J[a+188>>2]=0;c=0;break u}v:{if((f|0)==8){g=0;break v}c=gc[J[J[a>>2]+52>>2]](a)|0;J[h>>2]=f;xc(1,c,817564,h);c=0;break u}w:{while(1){e=P(g,20)+a|0;c=J[a+4>>2];m=e,n=gc[J[J[c>>2]+28>>2]](c)|0,J[m+40>>2]=n;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[e+48>>2]=c&15;J[e+44>>2]=c>>>4&15;c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;J[e+52>> -2]=d;x:{c=J[e+44>>2];y:{if(c>>>0>4|!(1<>2];if(c>>>0>4)break y;if(1<>2]+52>>2]](a)|0,817903,0);c=0;break u}if(d>>>0<4){g=g+1|0;if((g|0)>=J[a+188>>2])break w;continue}break}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,818176,0);c=0;break u}J[a+8>>2]=1;c=1}bc=h+16|0;if(c)continue;break a;case 4:c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;z:{A:{if((d|0)==-1)break A;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break A;k=(c+(d<<8)|0)-2|0;if((k|0)<=0)break A;while(1){c= -J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;d=c&15;if(d>>>0>=4){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,819789,0);c=0;break z}B:{if(c&16){if((d|0)>=J[a+3464>>2])J[a+3464>>2]=d+1;c=(P(d,342)+a|0)+2092|0;break B}if((d|0)>=J[a+3460>>2])J[a+3460>>2]=d+1;c=(P(d,342)+a|0)+724|0}d=J[a+4>>2];i=gc[J[J[d>>2]+28>>2]](d)|0;I[c+54>>1]=i;I[c+20>>1]=0;H[c+1|0]=0;d=J[a+4>>2];g=gc[J[J[d>>2]+28>>2]](d)|0;I[c+56>>1]=g;e=i<<1;I[c+22>>1]=e;H[c+2|0]=i;d=J[a+4>>2];h=gc[J[J[d>>2]+28>>2]](d)|0;I[c+58>>1]=h;f=e+g<<1;I[c+24>>1]=f;e=g+i|0; -H[c+3|0]=e;d=J[a+4>>2];g=gc[J[J[d>>2]+28>>2]](d)|0;I[c+60>>1]=g;f=f+h<<1;I[c+26>>1]=f;e=e+h|0;H[c+4|0]=e;d=J[a+4>>2];h=gc[J[J[d>>2]+28>>2]](d)|0;I[c+62>>1]=h;f=f+g<<1;I[c+28>>1]=f;e=e+g|0;H[c+5|0]=e;d=J[a+4>>2];g=gc[J[J[d>>2]+28>>2]](d)|0;I[c- -64>>1]=g;f=f+h<<1;I[c+30>>1]=f;e=e+h|0;H[c+6|0]=e;d=J[a+4>>2];h=gc[J[J[d>>2]+28>>2]](d)|0;I[c+66>>1]=h;f=f+g<<1;I[c+32>>1]=f;e=e+g|0;H[c+7|0]=e;d=J[a+4>>2];g=gc[J[J[d>>2]+28>>2]](d)|0;I[c+68>>1]=g;f=f+h<<1;I[c+34>>1]=f;e=e+h|0;H[c+8|0]=e;d=J[a+4>>2];h=gc[J[J[d>> -2]+28>>2]](d)|0;I[c+70>>1]=h;f=f+g<<1;I[c+36>>1]=f;e=e+g|0;H[c+9|0]=e;d=J[a+4>>2];g=gc[J[J[d>>2]+28>>2]](d)|0;I[c+72>>1]=g;f=f+h<<1;I[c+38>>1]=f;e=e+h|0;H[c+10|0]=e;d=J[a+4>>2];h=gc[J[J[d>>2]+28>>2]](d)|0;I[c+74>>1]=h;f=f+g<<1;I[c+40>>1]=f;e=e+g|0;H[c+11|0]=e;d=J[a+4>>2];g=gc[J[J[d>>2]+28>>2]](d)|0;I[c+76>>1]=g;f=f+h<<1;I[c+42>>1]=f;e=e+h|0;H[c+12|0]=e;d=J[a+4>>2];h=gc[J[J[d>>2]+28>>2]](d)|0;I[c+78>>1]=h;f=f+g<<1;I[c+44>>1]=f;e=e+g|0;H[c+13|0]=e;d=J[a+4>>2];i=gc[J[J[d>>2]+28>>2]](d)|0;I[c+80>>1]= -i;f=f+h<<1;I[c+46>>1]=f;e=e+h|0;H[c+14|0]=e;d=J[a+4>>2];g=gc[J[J[d>>2]+28>>2]](d)|0;I[c+82>>1]=g;h=f+i<<1;I[c+48>>1]=h;f=e+i|0;H[c+15|0]=f;d=J[a+4>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;I[c+84>>1]=e;I[c+50>>1]=g+h<<1;d=f+g|0;H[c+16|0]=d;g=d+e&255;C:{if(!g)break C;i=0;if((g|0)!=1){f=g&254;h=0;while(1){e=c+86|0;d=J[a+4>>2];m=e+i|0,n=gc[J[J[d>>2]+28>>2]](d)|0,H[m|0]=n;d=J[a+4>>2];m=e+(i|1)|0,n=gc[J[J[d>>2]+28>>2]](d)|0,H[m|0]=n;i=i+2|0;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(g&1))break C;e=c+i|0;c=J[a+ -4>>2];m=e,n=gc[J[J[c>>2]+28>>2]](c)|0,H[m+86|0]=n}k=(k-17|0)-g|0;if((k|0)>0)continue;break}}c=1}if(c)continue;break a;case 24:if(b)continue;a=gc[J[J[a>>2]+52>>2]](a)|0;J[j+48>>2]=216;xc(1,a,816370,j+48|0);break a;case 27:c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;D:{E:{if((d|0)==-1)break E;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break E;g=(c+(d<<8)|0)-2|0;if((g|0)<=0)break E;while(1){F:{c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;h=c&15;if(h>>>0<=3){d=c>>>4&15;if(d>>>0<2)break F}xc(1,gc[J[J[a>> -2]+52>>2]](a)|0,819533,0);c=0;break D}if((h|0)>=J[a+720>>2])J[a+720>>2]=h+1;c=0;G:{if(!d){while(1){e=((h<<7)+a|0)+208|0;f=c<<2;d=J[a+4>>2];m=e+(J[f+2332064>>2]<<1)|0,n=gc[J[J[d>>2]+28>>2]](d)|0,I[m>>1]=n;d=J[a+4>>2];m=e+(J[(f|4)+2332064>>2]<<1)|0,n=gc[J[J[d>>2]+28>>2]](d)|0,I[m>>1]=n;c=c+2|0;if((c|0)!=64)continue;break}c=-65;break G}while(1){d=J[a+4>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;f=-1;H:{if((e|0)==-1)break H;d=J[a+4>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;f=-1;if((d|0)==-1)break H;f=d+(e<<8)|0}I[(((h<<7)+ -a|0)+(J[(c<<2)+2332064>>2]<<1)|0)+208>>1]=f;c=c+1|0;if((c|0)!=64)continue;break}c=-129}g=c+g|0;if((g|0)>0)continue;break}}c=1}if(c)continue;break a;case 29:I:{c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;J:{if((d|0)==-1)break J;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break J;if((c+(d<<8)|0)==4)break I}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,819993,0);break a}c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;e=-1;K:{if((d|0)==-1)break K;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;e=-1;if((c|0)==-1)break K;e=c+(d<< -8)|0}J[a+204>>2]=e;continue;case 32:if(!b){a=gc[J[J[a>>2]+52>>2]](a)|0;J[j+64>>2]=224;xc(1,a,816370,j- -64|0);break a}e=bc-16|0;bc=e;g=1;c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;L:{if((d|0)==-1)break L;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break L;M:{d=c+(d<<8)|0;N:{if((d|0)<7){i=d-2|0;break N}c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break M;H[e+11|0]=c;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break M;H[e+12|0]=c;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c| -0)==-1)break M;H[e+13|0]=c;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break M;H[e+14|0]=c;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break M;H[e+15|0]=c;i=d-7|0;if(Wc(e+11|0,820581,5))break N;J[a+196>>2]=1}if((i|0)<=0)break L;while(1){c=J[a+4>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1)break M;c=(i|0)<2;i=i-1|0;if(!c)continue;break}break L}g=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,820218,0)}bc=e+16|0;if(g)continue;break a;case 25:break a;case 3:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 28:case 30:case 31:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:break c; -case 46:break e}if(!b){a=gc[J[J[a>>2]+52>>2]](a)|0;J[j+80>>2]=238;xc(1,a,816370,j+80|0);break a}e=bc-16|0;bc=e;O:{P:{c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==-1)break P;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;d=c+(d<<8)|0;if((d|0)<14)break P;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+4|0]=c;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+5|0]=c;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+6|0]=c;c=J[a+4>>2];c= -gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+7|0]=c;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+8|0]=c;c=J[a+4>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c| -0)==-1)break P;if(!Wc(e+4|0,820727,5)){J[a+200>>2]=1;J[a+192>>2]=c<<24>>24}k=14;i=1;if(d>>>0<=14)break O;while(1){c=J[a+4>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;k=k+1|0;if((d|0)!=(k|0))continue;break}break O}i=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,820903,0)}bc=e+16|0;if(i)continue;break a}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,816559,0);break a}if((c|0)>=224){c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;e=-1;Q:{if((d|0)==-1)break Q;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;e=-1;if((c|0)==-1)break Q;e=c+(d<<8)| -0}c=J[a+4>>2];gc[J[J[c>>2]+48>>2]](c,e-2|0)|0;continue}break}a=gc[J[J[a>>2]+52>>2]](a)|0;J[j>>2]=c;xc(1,a,816886,j);break a}while(1){if((c|0)>J[(P(b,20)+a|0)+52>>2]){b=b+1|0;if((d|0)!=(b|0))continue;break a}break}l=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,817105,0)}bc=j+96|0;return l}function tqa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=bc-48|0;bc=h;J[h+20>>2]=0;J[h+16>>2]=0;f=J[J[a>>2]+16>>2];J[695492]=0;da(f|0,a|0,b|0);f=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((f|0)== -1)break f;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{f=J[b>>2];if(!(f-1>>>0>=6&(f|0)!=8)){if(!d){J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1115,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break x;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}y:{z:{A:{if(!K[a+4|0]){J[695492]=0;f=$(4,72)|0;g=J[695492];J[695492]=0;if((g|0)==1)break A;J[695492]=0;g=$(5516,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break w;J[695492]=0;J[h+24>>2]=0;f=h+24|0; -aa(4985,f|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break A;J[695492]=0;aa(4993,d+4|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break z;f=J[h+24>>2];J[h+24>>2]=0;B:{if(!f)break B;J[695492]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(g)break B;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}J[d>>2]=-1;J[d>>2]=J[b>>2]==8?-2:-1}J[695492]=0;aa(4993,h+20|0,d+4|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break y;a=Z()|0;break b}a=Z()|0;break b}a=Z()| -0;vc(h+24|0);break b}f=J[b>>2]}C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:switch(f|0){case 0:f=J[c>>2];if(!f){J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1136,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break v;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}g=J[J[a>>2]+32>>2];J[695492]=0;da(g|0,a|0,f|0);g=J[695492];J[695492]=0;O:{if((g|0)==1)break O;g=K[a+48|0];i=J[J[a>>2]+8>>2];J[695492]=0;g=ga(i|0,a|0,g|0,a+68|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break O; -H[a+48|0]=g;if(K[a+4|0])break C;J[695492]=0;da(5519,a|0,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break C}a=Z()|0;break b;case 1:f=J[J[a>>2]+40>>2];J[695492]=0;ca(f|0,a|0,J[h+20>>2],4);f=J[695492];J[695492]=0;if((f|0)!=1)break M;break f;case 2:f=J[J[a>>2]+40>>2];J[695492]=0;ca(f|0,a|0,J[h+20>>2],4);f=J[695492];J[695492]=0;if((f|0)==1)break f;J[695492]=0;da(5520,a|0,J[h+20>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break f;break C;case 11:break C;case 9:break F;case 10:break G;case 8:break H;case 7:break I; -case 6:break J;case 5:break K;case 4:break L;case 3:break N;default:break E}f=J[J[a>>2]+40>>2];J[695492]=0;ca(f|0,a|0,J[h+20>>2],3);f=J[695492];J[695492]=0;if((f|0)==1)break f}J[695492]=0;da(5520,a|0,J[h+20>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break f;f=J[h+20>>2];g=L[f+10>>1];f=L[f+8>>1];J[695492]=0;ia(5524,a|0,e|0,f|0,g|0);f=J[695492];J[695492]=0;if((f|0)==1)break f;break C}P:{if(d){g=J[c>>2];if(g)break P}J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1169,2422273,0)|0;a=J[695492];J[695492]=0; -if((a|0)==1)break u;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}f=J[J[a>>2]+20>>2];J[695492]=0;f=ga(f|0,a|0,d|0,g|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break t;i=J[d>>2];J[695492]=0;g=aa(5373,g|0,i|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break t;J[695492]=0;aa(4993,h+16|0,g+4|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break t;Q:{if(!((f|0)<=J[a+140>>2]&(f|0)>=J[a+136>>2])){J[695492]=0;b=ja(5018,h+24|0,2381890,2382316,619,2422816,0)|0;a=J[695492];J[695492]= -0;if((a|0)==1)break Q;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}g=J[a+124>>2]+(f-J[a+128>>2]<<4)|0;i=J[g+4>>2];j=J[g+8>>2];k=J[g+12>>2];g=J[g>>2];l=J[J[a>>2]+44>>2];J[695492]=0;la(l|0,a|0,J[h+20>>2],(j-i|0)+1|0,(g-k|0)+1|0,4);g=J[695492];J[695492]=0;if((g|0)==1)break Q;J[695492]=0;ia(5521,a|0,J[h+20>>2],h+16|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break Q;f=J[h+20>>2];g=L[f+10>>1];f=L[f+8>>1];J[695492]=0;ia(5524,a|0,e|0,f|0,g|0);f=J[695492];J[695492]= -0;if((f|0)!=1)break C}a=Z()|0;break b}R:{if(d){g=J[c>>2];if(g)break R}J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1185,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break s;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}f=J[J[a>>2]+20>>2];J[695492]=0;f=ga(f|0,a|0,d|0,g|0)|0;i=J[695492];J[695492]=0;S:{if((i|0)==1)break S;i=J[d>>2];J[695492]=0;g=aa(5373,g|0,i|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break S;J[695492]=0;aa(4993,h+16|0,g+4|0)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break S;if((f|0)<=J[a+140>>2]&(f|0)>=J[a+136>>2])break D;J[695492]=0;b=ja(5018,h+24|0,2381890,2382316,619,2422816,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}a=Z()|0;break b}T:{if(d){g=J[c>>2];if(g)break T}J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1199,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break r;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a= -Z()|0;Fc(b);break b}f=J[J[a>>2]+20>>2];J[695492]=0;f=ga(f|0,a|0,d|0,g|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break q;i=J[d>>2];J[695492]=0;g=aa(5373,g|0,i|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break q;J[695492]=0;aa(4993,h+16|0,g+4|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break q;U:{if(!((f|0)<=J[a+140>>2]&(f|0)>=J[a+136>>2])){J[695492]=0;b=ja(5018,h+24|0,2381890,2382316,619,2422816,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break U;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h; -a=Z()|0;Fc(b);break b}g=J[a+124>>2]+(f-J[a+128>>2]<<4)|0;i=J[g+4>>2];j=J[g+8>>2];k=J[g+12>>2];g=J[g>>2];l=J[J[a>>2]+44>>2];J[695492]=0;la(l|0,a|0,J[h+20>>2],(j-i|0)+1|0,(g-k|0)+1|0,4);g=J[695492];J[695492]=0;if((g|0)==1)break U;J[695492]=0;ia(5521,a|0,J[h+20>>2],h+16|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break U;f=J[h+20>>2];g=L[f+10>>1];f=L[f+8>>1];J[695492]=0;ia(5524,a|0,e|0,f|0,g|0);f=J[695492];J[695492]=0;if((f|0)!=1)break C}a=Z()|0;break b}if(K[a+4|0])J[h+12>>2]=J[e+4>>2];f=J[c>>2];if(!f){J[695492]= -0;b=ja(5018,h+24|0,2382912,2374240,1217,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break p;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}g=J[J[a>>2]+20>>2];J[695492]=0;g=ga(g|0,a|0,h+12|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break d;V:{if(K[a+4|0]){i=J[e+4>>2];break V}i=J[h+12>>2];J[e+4>>2]=i}J[695492]=0;i=aa(5373,f|0,i|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break d;J[695492]=0;aa(4993,h+20|0,i+4|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break d; -if(!((g|0)<=J[a+140>>2]&(g|0)>=J[a+136>>2])){J[695492]=0;b=ja(5018,h+24|0,2381890,2382316,619,2422816,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}g=J[a+124>>2]+(g-J[a+128>>2]<<4)|0;i=J[g+4>>2];I[e>>1]=i+L[e>>1];j=J[g+12>>2];I[e+2>>1]=j+L[e+2>>1];W:{if(K[f+104|0]){i=J[h+20>>2];f=L[i+10>>1];i=L[i+8>>1];break W}f=(J[g+8>>2]-i|0)+1|0;i=(J[g>>2]-j|0)+1|0}J[695492]=0;ia(5524,a|0,e|0,i|0,f|0);f=J[695492];J[695492]= -0;if((f|0)==1)break e;I[e>>1]=L[e>>1]-L[g+4>>1];I[e+2>>1]=L[e+2>>1]-L[g+12>>1];break C}f=J[J[a>>2]+40>>2];J[695492]=0;ca(f|0,a|0,J[h+20>>2],3);f=J[695492];J[695492]=0;if((f|0)==1)break f;J[695492]=0;da(5520,a|0,J[h+20>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break f;f=J[h+20>>2];g=L[f+10>>1];f=L[f+8>>1];i=J[J[a>>2]+36>>2];J[695492]=0;ia(i|0,a|0,e|0,f|0,g|0);f=J[695492];J[695492]=0;if((f|0)!=1)break C;break f}f=J[c>>2];if(!f){J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1245,2422273,0)|0;a=J[695492]; -J[695492]=0;if((a|0)==1)break o;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}g=J[J[a>>2]+12>>2];J[695492]=0;da(g|0,a|0,f+8|0);f=J[695492];J[695492]=0;if((f|0)!=1)break C;a=Z()|0;break b}f=J[c>>2];if(!f){J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1255,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break n;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}if(!K[a+49|0]){g=J[J[a>>2]+24>>2];J[695492]=0;da(g|0,a|0, -f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break C;break g}J[a+52>>2]=0;J[a+56>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[695492]=0;ci(a+16|0,1,0);f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;ci(a+28|0,4,0);f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;ci(a+40|0,4,0);f=J[695492];J[695492]=0;if((f|0)==1)break g;J[a+8>>2]=1; -break C}J[695492]=0;b=ja(5018,h+24|0,2381676,2374240,1272,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}f=J[a+124>>2]+(f-J[a+128>>2]<<4)|0;g=J[f+4>>2];i=J[f+8>>2];j=J[f+12>>2];f=J[f>>2];k=J[J[a>>2]+44>>2];J[695492]=0;la(k|0,a|0,J[h+20>>2],(i-g|0)+1|0,(f-j|0)+1|0,4);f=J[695492];J[695492]=0;if((f|0)==1)break c}X:{if(K[a+4|0])break X;g=-1;f=J[b>>2];if(!(f-1>>>0>=6&(f|0)!=8)){Y:{if(d){f=J[c>>2];if(f)break Y}J[695492]= -0;b=ja(5018,h+24|0,2382912,2374240,1292,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}J[695492]=0;g=aa(5522,f|0,d|0)|0;f=J[695492];J[695492]=0;Z:{_:{if((f|0)==1)break _;f=J[a+88>>2];$:{if((g|0)>=(f|0)){i=J[a+92>>2];if((i|0)>=(g|0))break $}J[695492]=0;da(5525,a+72|0,g|0);f=J[695492];J[695492]=0;if((f|0)==1)break _;i=J[a+92>>2];f=J[a+88>>2]}if((g|0)<=(i|0)&(f|0)<=(g|0))break Z;J[695492]=0;b=ja(5018, -h+24|0,2381890,2382316,619,2401256,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break _;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}a=Z()|0;break b}J[J[a+76>>2]+(g-J[a+80>>2]<<2)>>2]=-1;f=J[b>>2]}if(!(!(1<>>0>5)){if(!d){J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1310,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}J[695492]=0;ga(5523,a|0,g|0,d|0)| -0;a=J[695492];J[695492]=0;if((a|0)==1)break f}a=J[h+20>>2];if(a){J[695492]=0;_(5445,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f}a=J[b>>2];if(a>>>0>8)break X;aa:{if(!(1<>2]=g}a=J[c>>2];if(!a){J[695492]=0;b=ja(5018,h+24|0,2382912,2374240,1331,2422273,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break j;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);break b}J[695492]=0;aa(5526,a|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)== -1)break f}a=J[h+16>>2];J[h+16>>2]=0;ba:{if(!a)break ba;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break ba;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[h+20>>2];J[h+20>>2]=0;ca:{if(!a)break ca;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break i;if(b)break ca;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break i}bc=h+48|0;return}a=Z()|0;break b}a=Z()|0;qc(f);break b}a=Z()|0;break b}a= -Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}ea(0)|0;yc()}B()}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0}vc(h+16|0);vc(h+20|0);ba(a|0);B()}ea(0)|0;yc();B()}function xK(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0;f=bc-16|0;bc=f;k=J[a+4>> -2];a:{if(H[k+254|0]>0){i=bc-16|0;bc=i;J[i+12>>2]=0;m=J[k+24>>2];g=J[m+224>>2];c=K[m+200|0];if((c|0)==12)l=H[k+48|0];else l=(c|0)==219?1:-1;e=k+222|0;c=H[k+254|0];d=J[a+8>>2];g=nK(g,l,e,c,d,J[a+12>>2]-d|0,i+12|0,H[a+2|0]);b:{if((g|0)>0){l=k;c:{if((c|0)<=(g|0)){J[a+8>>2]=(g-c|0)+d;d=0;break c}c=c-g|0;Zc(e,e+g|0,c);d=0-c|0}H[l+254|0]=d;d=a+24|0;g=a+16|0;e=J[a+20>>2];c=J[i+12>>2];if(c>>>0<=3145727){pK(k,c-2031616|0,g,e,d,-1,b);break b}m=J[m+224>>2];qK(k,(J[m+12>>2]+m|0)+((c&262143)<<1)|0,(c>>>18|0)-12| -0,g,e,d,-1,b);break b}if((g|0)<0){m=0;e=0-g|0;d:{if((e|0)<=(c|0))break d;g=(g^-1)-c|0;l=e-c&3;if(l)while(1){H[(c+k|0)+222|0]=K[d|0];c=c+1|0;d=d+1|0;m=m+1|0;if((l|0)!=(m|0))continue;break}if(g>>>0<3)break d;while(1){g=c+k|0;H[g+222|0]=K[d|0];H[g+223|0]=K[d+1|0];H[g+224|0]=K[d+2|0];H[g+225|0]=K[d+3|0];d=d+4|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}J[a+8>>2]=d;H[k+254|0]=e;break b}tc(k+37|0,e,H[k+255|0]);c=H[k+255|0];H[k+36|0]=c;d=H[k+254|0]-c|0;if((d|0)>0)Zc(e,c+e|0,d);H[k+254|0]=0-d;J[b>>2]=10}bc= +2]=J[a+188>>2];J[d+4>>2]=J[a+192>>2];H[g+k|0]=1;I[h+(g<<1)>>1]=i;J[f+92>>2]=h;J[f+88>>2]=k;J[f+84>>2]=l;b=MM(m,b,f+80|0,e,p);J[f+172>>2]=b;t:{if(b)break t;u:{if((o|0)<=0){d=0;break u}b=J[q+88>>2];d=0;g=0;while(1){if(K[b+4|0]&2){d=l+(d<<3)|0;J[b+8>>2]=I[d>>1];J[b+12>>2]=I[d+4>>1]}b=b+32|0;g=g+1|0;d=g<<16>>16;if((o|0)>(d|0))continue;break}}b=l+(d<<3)|0;J[a+68>>2]=J[b>>2];J[a+72>>2]=J[b+4>>2];J[a+76>>2]=J[b+8>>2];J[a+80>>2]=J[b+12>>2];J[a+180>>2]=J[b+16>>2];J[a+184>>2]=J[b+20>>2];J[a+188>>2]=J[b+24>> +2];J[a+192>>2]=J[b+28>>2];d=J[m+740>>2];if(!(d&2)){b=(p<<3)+e|0;J[a+60>>2]=(J[b-24>>2]-J[b-32>>2]|0)+32>>6}if(d&16)break t;b=(p<<3)+e|0;J[a+176>>2]=(J[b-8>>2]-J[b-16>>2]|0)+32>>6}g=h;i=l;d=k}if(i)kc[J[r+8>>2]](r,i);if(d)kc[J[r+8>>2]](r,d);if(g)kc[J[r+8>>2]](r,g);if(e)kc[J[r+8>>2]](r,e);if(J[f+172>>2])break c}b=J[a+16>>2];if(!(b&1)){C=a,D=Wc(J[a+68>>2],s),J[C+68>>2]=D;C=a,D=Wc(J[a+76>>2],s),J[C+76>>2]=D;C=a,D=Wc(J[a+180>>2],s),J[C+180>>2]=D;C=a,D=Wc(J[a+184>>2],t),J[C+184>>2]=D;C=a,D=Wc(J[a+188>>2], +s),J[C+188>>2]=D;C=a,D=Wc(J[a+192>>2],t),J[C+192>>2]=D;b=J[a+16>>2]}if(b&1024){gy(q);J[J[a+8>>2]+72>>2]=1668246896;break c}z=J[q+48>>2];x=J[q+84>>2];A=J[a+28>>2];B=J[a+24>>2];gy(q);v:{if(!x){e=0;b=n;break v}r=c+1|0;b=0;while(1){u=I[q+22>>1];s=J[a+176>>2];p=J[a+60>>2];k=J[a+188>>2];t=J[a+192>>2];h=J[a+180>>2];o=J[a+184>>2];d=J[a+76>>2];j=J[a+80>>2];c=J[a+68>>2];g=J[a+72>>2];l=b<<5;i=z<<5;e=VM(a,J[l+(i+J[q+52>>2]|0)>>2],r,0);J[f+172>>2]=e;if(e)break c;e=l+(i+J[q+52>>2]|0)|0;if(!(K[e+5|0]&2)){J[a+188>> +2]=k;J[a+192>>2]=t;J[a+180>>2]=h;J[a+184>>2]=o;J[a+76>>2]=d;J[a+80>>2]=j;J[a+68>>2]=c;J[a+72>>2]=g;J[a+176>>2]=s;J[a+60>>2]=p}k=L[q+22>>1];if((k|0)!=(u&65535)){p=0;i=fc-32|0;fc=i;l=J[a+12>>2];J[i+16>>2]=J[l+24>>2]+(u<<3);I[i+14>>1]=L[l+22>>1]-u;h=L[e+4>>1];c=h&200;if(c){kp(i+12|0,e+16|0);h=L[e+4>>1]}g=J[e+12>>2];d=J[e+8>>2];w:{x:{if(!(h&2)){p=21;c=d+n|0;if(c>>>0>=u>>>0)break w;h=g+u|0;if(h>>>0>=I[l+22>>1]>>>0)break w;d=c<<3;c=J[l+24>>2];d=d+c|0;c=c+(h<<3)|0;g=J[d+4>>2]-J[c+4>>2]|0;d=J[d>>2]-J[c>> +2]|0;break x}if(!(d|g))break w;if(!(!c|!(h&2048))){h=EN(J[e+16>>2],J[e+20>>2]);c=EN(J[e+28>>2],J[e+24>>2]);d=Wc(d,h);g=Wc(g,c)}if(H[a+16|0]&1)break x;h=J[J[a+4>>2]+44>>2];c=J[h+8>>2];d=Wc(d,J[h+4>>2]);g=Wc(g,c);if(!(K[e+4|0]&4)|K[a+16|0]&2)break x;d=J[J[J[a>>2]+96>>2]+64>>2]==35?d+32&-64:d;g=g+32&-64}p=0;if(!(d|g))break w;Xh(i+12|0,d,g)}fc=i+32|0;J[f+172>>2]=p;if(p)break c}b=b+1|0;if((x|0)!=(b|0))continue;break}b=k<<16>>16}J[a+164>>2]=y;J[a+28>>2]=A;J[a+24>>2]=B;if(!(!e|J[a+16>>2]&2|(!(H[e+5|0]&1)| +b>>>0<=n>>>0))){h=fc-16|0;fc=h;e=J[a+12>>2];d=I[e+22>>1];b=d+4|0;y:{if(!(!b|M[e+4>>2]>=I[e+58>>1]+(b+d|0)>>>0)){d=Hh(e,b,0);if(d)break y;d=I[e+22>>1]}b=J[a+72>>2];c=J[e+24>>2]+(d<<3)|0;J[c>>2]=J[a+68>>2];J[c+4>>2]=b;b=J[a+80>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+8>>2]=J[a+76>>2];J[c+12>>2]=b;b=J[a+184>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+16>>2]=J[a+180>>2];J[c+20>>2]=b;b=J[a+192>>2];c=J[e+24>>2]+(I[e+22>>1]<<3)|0;J[c+24>>2]=J[a+188>>2];J[c+28>>2]=b;H[J[e+28>>2]+I[e+22>>1]|0]=0;H[(J[e+28>>2]+I[e+ +22>>1]|0)+1|0]=0;H[(J[e+28>>2]+I[e+22>>1]|0)+2|0]=0;H[(J[e+28>>2]+I[e+22>>1]|0)+3|0]=0;c=J[a+24>>2];d=yd(c,J[a+164>>2]);J[h+12>>2]=d;if(d)break y;e=ee(c,h+12|0);d=J[h+12>>2];if(d)break y;z:{if(e>>>0>L[J[a>>2]+286>>1]){d=22;if((e|0)>J[a+28>>2])break y;b=J[a+156>>2];J[h+8>>2]=J[b+392>>2];d=g6(J[b+8>>2],h+8|0,b+396|0,e);J[h+12>>2]=d;i=J[a+156>>2];J[i+392>>2]=L[h+8>>1];if(!d)break z;break y}if(!e){d=0;break y}i=J[a+156>>2]}d=zg(c,J[i+396>>2],e);J[h+12>>2]=d;if(d)break y;c=J[J[a+156>>2]+396>>2];b=J[a+ +8>>2];J[b+140>>2]=e;J[b+136>>2]=c;d=J[a+12>>2];c=L[d+22>>1];I[a+128>>1]=c-n;I[a+130>>1]=L[d+20>>1]-w;b=n<<3;J[a+132>>2]=b+J[d+40>>2];J[a+136>>2]=b+J[d+24>>2];J[a+140>>2]=b+J[d+44>>2];J[a+144>>2]=J[d+28>>2]+n;b=J[d+32>>2];I[a+152>>1]=n;J[a+148>>2]=b+(w<<1);if((c|0)!=(n&65535)){b=0;while(1){c=J[a+144>>2]+b|0;H[c|0]=K[c|0]&231;b=b+1|0;c=L[a+128>>1];if(b>>>0>>0)continue;break}b=c+4|0}else b=4;I[a+128>>1]=b;d=f6(a,1)}fc=h+16|0;J[f+172>>2]=d;if(d)break c}if(!J[q+48>>2]|!(K[J[q+52>>2]+5|0]&4))break c; +J[q+36>>2]=J[q+36>>2]|64;break c}kc[J[m+524>>2]](a)}if(!v)break a;a=J[J[m+128>>2]+52>>2];kc[J[J[a>>2]+4>>2]](J[a+4>>2],f+120|0)}fc=f+176|0;return J[f+172>>2]}function Yz(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,u=0,v=0,w=0;o=fc-16|0;fc=o;J[o+12>>2]=d;a:{b:{c:{if(R(Jx(a+648|0))>1)break c;i=J[a+648>>2];if(O[i>>3]<0)break c;if(!(O[i+24>>3]<0))break b}Ov(a);d:{if(J[a+2696>>2]==512){dA(a+1976|0);break d}sM(a+2776|0)}J[a+2696>>2]=4;d=a+1976|0;J[d+16>>2]=4;g=a+2776|0;rM(g,b,c, +o+12|0,J[a+2772>>2],e,f);vU(a,256);IU(d,4);if(J[a+2696>>2]==512){dA(d);break a}sM(g);break a}J[o+8>>2]=d;J[o>>2]=0;J[o+4>>2]=0;i=a+1976|0;d=fc-192|0;fc=d;e:{f:{g:{h:{i:{j:{if(J[b>>2]!=9){j=O[e>>3];O[d+184>>3]=j;l=O[f>>3];O[d+176>>3]=l;O[d+168>>3]=j+O[g>>3];O[d+160>>3]=l+O[h>>3];ce(J[i+56>>2],d+184|0,d+176|0);ce(J[i+56>>2],d+168|0,d+160|0);J[d+72>>2]=J[o+8>>2];a=d+144|0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2463820;k:{l:{m:{f=J[d+72>>2];if(f){e=a+4|0;if(f>>>0>=1073741824){J[699344]=0;$(1587, +e|0);b=J[699344];J[699344]=0;if((b|0)==1)break m;break l}J[699344]=0;h=f<<2;g=_(4,h|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break m;J[a+8>>2]=g;J[a+4>>2]=g;J[a+12>>2]=g+h;while(1){s=(u<<2)+b|0;h=J[a+8>>2];n:{if((h|0)!=J[a+12>>2]){J[h>>2]=J[s>>2];J[a+8>>2]=h+4;break n}o:{p:{g=J[e>>2];k=h-g|0;w=k>>2;m=w+1|0;q:{if(m>>>0>=1073741824){J[699344]=0;$(1587,e|0);break q}p=k>>1;m=k>>>0>=2147483644?1073741823:m>>>0

      >>0?p:m;if(!m){p=0;break o}if(m>>>0<1073741824)break p;J[699344]=0;ka(209)}b=J[699344];J[699344]= +0;if((b|0)!=1)break l;break m}J[699344]=0;p=_(4,m<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break m}k=(w<<2)+p|0;J[k>>2]=J[s>>2];s=k+4|0;if((g|0)!=(h|0))while(1){k=k-4|0;h=h-4|0;J[k>>2]=J[h>>2];if((g|0)!=(h|0))continue;break}J[a+12>>2]=(m<<2)+p;J[a+8>>2]=s;J[a+4>>2]=k;if(!g)break n;uc(g);f=J[d+72>>2]}u=u+1|0;if(u>>>0>>0)continue;break}}break k}c=Z()|0;b=J[e>>2];if(b){J[a+8>>2]=b;uc(b)}ba(c|0);B()}B()}r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{if(!(!c|!J[o+8>>2])){e=0;while(1){f=e<<2;g=J[f+ +b>>2];J[699344]=0;g=QT(g);h=J[699344];J[699344]=0;if((h|0)==1)break G;if(!g){J[699344]=0;g=J[a+4>>2];h=J[699344];J[699344]=0;if((h|0)==1)break G;J[f+g>>2]=32}e=e+1|0;if(e>>>0>2])continue;break}}H:{if(!K[i+257|0]){e=J[i+36>>2];break H}e=J[i+56>>2];J[699344]=0;j=O[J[e>>2]>>3];e=J[699344];J[699344]=0;if((e|0)==1)break F;e=J[i+56>>2];J[699344]=0;l=O[J[e>>2]+24>>3];e=J[699344];J[699344]=0;if((e|0)==1)break F;e=J[i+36>>2];O[e+32>>3]=(j+l)*.5*O[e+32>>3];H[i+257|0]=0}f=J[i+76>>2];J[699344]=0;da(6523, +f|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break F;J[d+136>>2]=0;J[d+140>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[d+120>>2]=0;J[d+124>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;e=J[i+76>>2];I:{J:{K:{if(c){J[699344]=0;J[d+72>>2]=1;da(6524,e|0,d+72|0);b=J[699344];J[699344]=0;if((b|0)!=1)break K;f=Z()|0;break f}J[699344]=0;J[d+72>>2]=0;da(6524,e|0,d+72|0);c=J[699344];J[699344]=0;if((c|0)==1)break J;c=b}b=J[i+76>>2];e=J[o+8>>2];J[699344]=0;Ab(6525,b|0,c|0,e|0,+O[d+184>>3],+O[d+176>>3],d+136|0,d+128|0,d+120|0,d+112| +0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break I;f=Z()|0;break f}f=Z()|0;break f}b=J[i+76>>2];c=J[b+116>>2];J[d+104>>2]=J[b+112>>2];J[d+108>>2]=c;c=J[b+108>>2];J[d+96>>2]=J[b+104>>2];J[d+100>>2]=c;c=J[b+100>>2];J[d+88>>2]=J[b+96>>2];J[d+92>>2]=c;c=J[b+92>>2];J[d+80>>2]=J[b+88>>2];J[d+84>>2]=c;c=J[b+84>>2];J[d+72>>2]=J[b+80>>2];J[d+76>>2]=c;b=J[i+76>>2];J[699344]=0;j=O[b+96>>3];l=O[b+40>>3];n=O[b+104>>3];b=J[699344];J[699344]=0;if((b|0)==1)break g;j=j*l*.35277777777777775/n;O[d+112>>3]=j;l=O[d+176>> +3]+O[o>>3];t=l-j;n=O[d+184>>3];v=O[d+120>>3];q=n+v;L:{b=J[i+260>>2];if(!b|!(R(O[b+16>>3]-l)<.02))break L;if(!kH(i+272|0,J[i+36>>2]))break L;b=J[i+44>>2];J[699344]=0;b=cA(i+344|0,b);c=J[699344];J[699344]=0;if((c|0)==1)break h;if(!b)break L;J[699344]=0;b=J[a+8>>2];c=J[a+4>>2];e=J[699344];J[699344]=0;if((e|0)==1)break i;j=v/+(b-c>>2>>>0);e=0;while(1){J[699344]=0;b=J[a+8>>2];c=J[a+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break j;M:{if(b-c>>2>>>0<=e>>>0){b=J[J[i+260>>2]+56>>2];J[699344]=0;j=O[b+424>> +3];b=J[699344];J[699344]=0;if((b|0)!=1)break M;f=Z()|0;break f}J[699344]=0;b=aa(6530,a|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;if(J[b>>2]==32){b=J[J[i+260>>2]+56>>2];J[699344]=0;nH(b,j);b=J[699344];J[699344]=0;if((b|0)==1)break j}e=e+1|0;continue}break}j=j!=0?j*.9:O[J[i+260>>2]+192>>3]*.4;b=J[i+260>>2];r=O[b+40>>3];if(!(!(j>R(r-n))|!(q>r))){J[699344]=0;b=J[a+8>>2];c=J[a+4>>2];e=J[699344];J[699344]=0;if((e|0)==1)break t;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;j=(q-r)/+(b-c>>2>>>0);b=0; +while(1){J[699344]=0;c=J[a+8>>2];e=J[a+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break u;N:{if(c-e>>2>>>0<=b>>>0){b=J[i+260>>2];J[699344]=0;ca(6532,b|0,a|0,d+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break N;b=J[d+24>>2];if(!b)break s;J[d+28>>2]=b;uc(b);break s}e=J[d+28>>2];if((e|0)!=J[d+32>>2]){O[e>>3]=j;J[d+28>>2]=e+8;b=b+1|0;continue}g=J[d+24>>2];c=e-g|0;k=c>>3;f=k+1|0;if(f>>>0>=536870912){J[699344]=0;$(2494,d+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break u;break v}h=c>>2;h=c>>>0>=2147483640? +536870911:f>>>0>>0?h:f;O:{if(!h){c=0;break O}if(h>>>0>=536870912){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break v;break u}J[699344]=0;c=_(4,h<<3)|0;f=J[699344];J[699344]=0;if((f|0)==1)break u}f=(k<<3)+c|0;O[f>>3]=j;k=f+8|0;if((e|0)!=(g|0))while(1){f=f-8|0;e=e-8|0;O[f>>3]=O[e>>3];if((e|0)!=(g|0))continue;break}J[d+32>>2]=(h<<3)+c;J[d+28>>2]=k;J[d+24>>2]=f;if(g)uc(g);b=b+1|0;continue}break}break u}r=j;j=O[b+32>>3];if(!(r>R(j-q))|!(j>n))break L;J[699344]=0;b=J[a+8>>2];c=J[a+4>>2]; +e=J[699344];J[699344]=0;if((e|0)==1)break w;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;j=(j-n)/+(b-c>>2>>>0);b=0;while(1){J[699344]=0;c=J[a+8>>2];e=J[a+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break x;P:{if(c-e>>2>>>0<=b>>>0){b=J[i+260>>2];J[699344]=0;ca(6533,b|0,a|0,d+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break P;b=J[d+24>>2];if(!b)break s;J[d+28>>2]=b;uc(b);break s}e=J[d+28>>2];if((e|0)!=J[d+32>>2]){O[e>>3]=j;J[d+28>>2]=e+8;b=b+1|0;continue}Q:{R:{g=J[d+24>>2];c=e-g|0;k=c>>3;f=k+1|0;S:{if(f>>>0>= +536870912){J[699344]=0;$(2494,d+24|0);break S}h=c>>2;h=c>>>0>=2147483640?536870911:f>>>0>>0?h:f;if(!h){c=0;break Q}if(h>>>0<536870912)break R;J[699344]=0;ka(209)}b=J[699344];J[699344]=0;if((b|0)!=1)break v;break x}J[699344]=0;c=_(4,h<<3)|0;f=J[699344];J[699344]=0;if((f|0)==1)break x}f=(k<<3)+c|0;O[f>>3]=j;k=f+8|0;if((e|0)!=(g|0))while(1){f=f-8|0;e=e-8|0;O[f>>3]=O[e>>3];if((e|0)!=(g|0))continue;break}J[d+32>>2]=(h<<3)+c;J[d+28>>2]=k;J[d+24>>2]=f;if(g)uc(g);b=b+1|0;continue}break}break x}J[699344]= +0;b=_(4,288)|0;c=J[699344];J[699344]=0;T:{U:{V:{if((c|0)!=1){J[b>>2]=2441916;J[b+4>>2]=0;J[b+8>>2]=0;c=J[i+76>>2];J[699344]=0;c=aa(6534,b+16|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){f=Z()|0;uc(b);break f}J[d+68>>2]=b;J[d+64>>2]=c;b=J[i+76>>2]+120|0;J[699344]=0;g=aa(6535,d+24|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break V;b=K[g+12|0];if(J[i+16>>2]==256)break U;c=(b|0)!=0;break T}f=Z()|0;break f}f=Z()|0;break y}c=(b|J[J[i+36>>2]+40>>2])!=0}b=J[i+80>>2];J[699344]=0;ia(6536,b|0,g|0,d+72|0, +a|0);b=J[699344];J[699344]=0;if((b|0)==1)break B;b=J[d+64>>2];O[b+32>>3]=n;O[b+24>>3]=l-t;O[b+8>>3]=t;O[b+16>>3]=l;b=J[i+44>>2];e=J[i+68>>2];f=d+12|0;qU(f,J[i+80>>2]);j=O[J[i+36>>2]+32>>3];h=K[J[i+80>>2]+29|0];k=K[J[i+80>>2]+28|0];J[699344]=0;ab(6537,d|0,e|0,b|0,f|0,+j,h|0,c|k);b=J[699344];J[699344]=0;if((b|0)==1)break C;e=J[d>>2];f=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;c=J[d+64>>2];b=J[c+60>>2];J[c+56>>2]=e;J[c+60>>2]=f;W:{if(!b)break W;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break W;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b= +J[d+4>>2];X:{if(!b)break X;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break X;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if(H[d+23|0]<0)uc(J[d+12>>2]);J[699344]=0;J[d+20>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;b=J[a+8>>2];c=J[a+4>>2];e=J[699344];J[699344]=0;if((e|0)==1)break A;j=R(q-n)/+(b-c>>2>>>0);b=0;Y:{while(1){J[699344]=0;c=J[a+8>>2];e=J[a+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break Y;Z:{if(c-e>>2>>>0<=b>>>0){J[699344]=0;ca(6538,J[d+64>>2],a|0,d+12|0);b=J[699344];J[699344]=0;if((b|0)!=1)break Z;break A}J[699344]=0;c=aa(6530, +a|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Y;if(J[c>>2]==32){c=J[J[d+64>>2]+56>>2];J[699344]=0;nH(c,j);c=J[699344];J[699344]=0;if((c|0)==1)break Y}e=J[d+16>>2];if((e|0)!=J[d+20>>2]){O[e>>3]=j;J[d+16>>2]=e+8;b=b+1|0;continue}_:{$:{h=J[d+12>>2];c=e-h|0;m=c>>3;f=m+1|0;aa:{if(f>>>0>=536870912){J[699344]=0;$(2494,d+12|0);break aa}k=c>>2;k=c>>>0>=2147483640?536870911:f>>>0>>0?k:f;if(!k){c=0;break _}if(k>>>0<536870912)break $;J[699344]=0;ka(209)}b=J[699344];J[699344]=0;if((b|0)!=1)break v;break A}J[699344]= +0;c=_(4,k<<3)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Y}f=(m<<3)+c|0;O[f>>3]=j;m=f+8|0;if((e|0)!=(h|0))while(1){f=f-8|0;e=e-8|0;O[f>>3]=O[e>>3];if((e|0)!=(h|0))continue;break}J[d+20>>2]=(k<<3)+c;J[d+16>>2]=m;J[d+12>>2]=f;if(h)uc(h);b=b+1|0;continue}break}J[699344]=0;b=J[a+4>>2];c=J[699344];J[699344]=0;if((c|0)==1)break A;b=J[b>>2];J[699344]=0;c=ST(b);b=J[699344];J[699344]=0;if((b|0)==1)break A;b=J[d+64>>2];O[b+48>>3]=v;H[b+112|0]=c;O[b+40>>3]=q;j=O[b+16>>3];l=O[J[i+36>>2]+32>>3]/O[d+96>>3]*.35277777777777775; +n=O[d+104>>3];O[b+216>>3]=j-O[d+72>>3]*l-n;O[b+224>>3]=j+O[d+80>>3]*l-n;b=J[i+76>>2];J[699344]=0;j=+qa(6540,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;f=J[d+64>>2];O[f+192>>3]=j;if(K[i+32|0]){b=J[i+36>>2];if((b|0)==(f+120|0))break E;c=f+124|0;e=b+4|0;k=K[b+15|0];h=k<<24>>24;ba:{if(H[f+135|0]>=0){if((h|0)<0)break ba;b=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]=b;J[c+8>>2]=J[e+8>>2];break E}f=J[b+8>>2];b=J[b+4>>2];J[699344]=0;m=b;b=(h|0)<0;ga(1630,c|0,(b?m:e)|0,(b?f:k)|0)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break A;break E}e=J[b+8>>2];b=J[b+4>>2];J[699344]=0;ga(1631,c|0,b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break E;break A}qU(d,J[i+80>>2]);e=J[d+64>>2];b=e;if(H[b+147|0]<0){uc(J[b+136>>2]);e=J[d+64>>2]}c=J[d+4>>2];J[b+136>>2]=J[d>>2];J[b+140>>2]=c;J[b+144>>2]=J[d+8>>2];O[e+152>>3]=O[J[i+36>>2]+32>>3];J[J[d+64>>2]+160>>2]=K[J[i+80>>2]+28|0];e=J[d+64>>2];J[e+164>>2]=K[J[i+80>>2]+29|0];j=O[J[i+36>>2]+32>>3];break D}break A}f=Z()|0;break f}f=Z()|0;break f}e=J[d+64>>2];b=J[i+36>>2];j=O[b+32>> +3];O[e+152>>3]=j;J[e+184>>2]=J[b+64>>2]}H[e+237|0]=K[i+33|0];b=J[i+72>>2];J[699344]=0;bU(b,j);b=J[699344];J[699344]=0;if((b|0)==1)break A;b=J[i+188>>2];ca:{if((b|0)!=J[i+192>>2]){h=J[d+64>>2];J[b>>2]=h;c=J[d+68>>2];J[b+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[i+188>>2]=b+8;break ca}J[699344]=0;da(6542,i+184|0,d- -64|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;h=J[d+64>>2]}c=J[d+68>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[i+260>>2]=h;b=J[i+264>>2];J[i+264>>2]=c;da:{if(!b)break da;c=J[b+4>>2];J[b+4>>2]=c-1; +if(c)break da;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[i+36>>2];J[699344]=0;aa(6543,i+272|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A;b=J[i+44>>2];J[699344]=0;aa(6518,i+344|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A;b=J[d+12>>2];if(b){J[d+16>>2]=b;uc(b)}b=J[g+28>>2];if(b){J[g+32>>2]=b;uc(b)}if(H[g+11|0]<0)uc(J[g>>2]);b=J[d+68>>2];if(!b)break r;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break r;kc[J[J[b>>2]+8>>2]](b);Gc(b);break r}f=Z()|0;if(H[d+23|0]>=0)break z;uc(J[d+12>>2]);break z}f=Z()|0;break z}f= +Z()|0;b=J[d+12>>2];if(!b)break z;J[d+16>>2]=b;uc(b)}Tv(g)}je(d- -64|0);break f}f=Z()|0;b=J[d+24>>2];if(!b)break f;J[d+28>>2]=b;uc(b);break f}f=Z()|0;break f}B()}f=Z()|0;b=J[d+24>>2];if(!b)break f;J[d+28>>2]=b;uc(b);break f}f=Z()|0;break f}b=J[i+260>>2];O[b+48>>3]=O[b+40>>3]-O[b+32>>3];j=O[b+8>>3];j=j>t?t:j;O[b+8>>3]=j;n=O[b+16>>3];l=l>n?l:n;O[b+16>>3]=l;O[b+24>>3]=l-j}qi(a)}fc=d+192|0;break e}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0}qi(a);ba(f|0);B()}}fc=o+16|0}function hJ(a,b,c,d, +e,f,g,h,i,j){var 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,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0;w=vc(24);J[w+12>>2]=c;J[w+8>>2]=b;J[w>>2]=2317464;J[w+4>>2]=0;R=b+7>>3;J[w+16>>2]=R;a:{if(!((b|0)<=0|(c|0)<=0|(R|0)<=0)){m=c;if(m>>>0<2147483646/(R>>>0)>>>0)break a}J[w+12>>2]=-1;J[w+16>>2]=2; +m=-1;R=2}J[699344]=0;z=P(m,R);t=_(3616,z+1|0)|0;l=J[699344];J[699344]=0;if((l|0)!=1){J[w+20>>2]=t;H[t+z|0]=0;Ac(t,0,z);if((c|0)>0){Ba=d?8:16;W=g&7;ha=(g|0)>=0;ia=ha?7:W;t=0-g|0;z=(g|0)>0;va=z?0:t>>>3|0;ga=g^-1;ma=ha?0:ga>>>3|0;ja=W-1|0;wa=W?ja:7;l=t&7;sa=l^7;Ca=sa?6-l|0:7;xa=z?7:sa;ta=2-g|0;ua=g-2|0;z=1-g|0;ya=!W;Da=!sa;while(1){p=J[w+12>>2];L=J[w+8>>2];s=($|0)!=0&(p|0)>=($|0)&(L|0)>0;l=$-1|0;b:{c:{d:{e:{f:{g:{h:{if(d){M=0;ea=0;u=0;na=0;aa=0;i:{if(!s)break i;s=J[w+20>>2]+P(l,J[w+16>>2])|0;if(!s){ea= +7;aa=0;break i}k=(L|0)==1;u=k?0:s;ea=k?7:6;na=K[s|0]>>>7|0;aa=1}j:{if((p|0)<=($|0)){V=0;p=0;break j}V=0;p=0;if((L|0)<0)break j;M=J[w+20>>2]+P(J[w+16>>2],$)|0;V=7;p=-1}k=J[f+8>>2];v=0;q=l-h|0;l=J[f+12>>2];r=(q|0)>=0&(l|0)>(q|0);k:{if(!r){da=0;fa=0;A=0;break k}da=0;fa=0;A=0;if((k|0)<=(t|0))break k;da=xa;fa=t;A=(J[f+20>>2]+P(q,J[f+16>>2])|0)+va|0}l:{x=(k|0)>(ga|0);m=$-h|0;F=x&((m|0)>=0&(m|0)<(l|0));m:{if(!F){X=0;T=0;break m}X=ga;C=(J[f+20>>2]+P(m,J[f+16>>2])|0)+ma|0;T=ia;if(!C)break m;if(ha)break l; +v=K[C|0]>>>W&1;if((k|0)!=(t|0))break h;X=t;T=W}ka=v<<1;C=0;y=0;break c}T=7;ka=0;X=z;y=0;if(g)break c;break d}fa=0;ka=0;aa=0;na=0;O=0;n:{if(!s)break n;s=J[w+20>>2]+P(l,J[w+16>>2])|0;if(!s){ka=7;O=0;break n}k=(L|0)==1;aa=k?0:s;ka=k?7:6;na=K[s|0]>>>7|0;O=1}o:{if((p|0)<=($|0)){ea=0;oa=0;break o}ea=0;oa=0;if((L|0)<0)break o;fa=J[w+20>>2]+P(J[w+16>>2],$)|0;ea=-1;oa=7}k=J[f+8>>2];y=0;r=l-h|0;A=J[f+12>>2];G=(r|0)>=0&(A|0)>(r|0);p:{if(!G){da=0;I=0;la=0;F=0;break p}da=0;I=0;la=0;F=0;if((k|0)<=(t|0))break p; +l=(J[f+20>>2]+P(r,J[f+16>>2])|0)+va|0;if(!l){da=xa;F=t;break p}da=7;if((g|0)>0){I=l;F=z;break p}s=(k|0)==(z|0);I=s?0:l+Da|0;da=s?sa:Ca;la=K[l|0]>>>sa&1;F=z}q:{x=(k|0)>(ga|0);m=$-h|0;M=x&((m|0)>=0&(m|0)<(A|0));r:{if(!M){V=0;s=0;break r}V=ia;S=(J[f+20>>2]+P(m,J[f+16>>2])|0)+ma|0;s=ga;if(!S)break r;if(ha)break q;y=K[S|0]>>>W&1;if((k|0)!=(t|0))break g;V=W;s=t}za=y<<1;S=0;ca=0;break e}V=7;za=0;s=z;ca=0;if(g)break e;break f}ka=v<<1;C=C+ya|0;T=wa;v=t;break d}za=y<<1;S=S+ya|0;V=wa;y=t}ca=K[S|0]>>>V&1;s=y+ +1|0;if((k|0)==(s|0)){s=k;S=0;break e}if(!V){S=S+1|0;V=7;break e}V=V-1|0}Q=0;u=0;s:{t:{u:{v:{N=0;n=m+1|0;y=x&((n|0)>=0&(n|0)<(A|0));q=0;w:{if(!y)break w;N=ga;l=(J[f+20>>2]+P(n,J[f+16>>2])|0)+ma|0;q=ia;if(!l)break w;if(ha)break v;u=K[l|0]>>>W&1;if((k|0)!=(t|0))break u;N=t;q=W}Aa=u<<1;X=0;break s}q=7;Aa=0;N=z;Q=l;X=0;if(g)break s;break t}Aa=u<<1;l=l+ya|0;q=wa;u=t}X=K[l|0]>>>q&1;Q=0;N=u+1|0;if((k|0)==(N|0)){N=k;break s}if(!q){Q=l+1|0;q=7;break s}q=q-1|0;Q=l}T=0;o=J[j>>2]+$|0;x:{if(!((o|0)<0|(o|0)>=(p| +0))){Y=0;pa=0;l=J[i>>2];D=0;if((l|0)>=(L|0))break x;p=P(o,J[w+16>>2]);o=J[w+20>>2];y:{if((l|0)<0){pa=7;Y=o+p|0;break y}pa=(l^-1)&7;Y=o+p+(l>>>3)|0}D=l;break x}Y=0;pa=0;D=0}p=m+J[j+4>>2]|0;z:{if(!((p|0)<0|(p|0)>=(A|0))){qa=0;l=J[i+4>>2]-g|0;E=0;if((l|0)>=(k|0))break z;p=P(p,J[f+16>>2]);A=J[f+20>>2];A:{if((l|0)<0){qa=7;T=p+A|0;break A}qa=(l^-1)&7;T=p+A+(l>>>3)|0}E=l;break z}qa=0;E=0}R=0;B:{if(!e){A=0;o=0;l=0;p=0;G=0;r=0;L=0;x=0;M=0;n=0;y=0;m=0;break B}l=0;A=0;o=0;v=0;C:{D:{if(!(x&G))break D;A=ga;o= +ia;u=(J[f+20>>2]+P(r,J[f+16>>2])|0)+ma|0;if(!u)break D;E:{F:{G:{H:{r=K[u|0];I:{if(!ha){A=t;o=W;if((k|0)==(t|0))break D;U=t;p=ja;if(o)break I;o=7;v=K[u+1|0]>>>7|0;if((k|0)!=(z|0))break H;A=z;break D}if(g)break F;U=0;p=7}o=p;v=r>>>o&1;r=U+1|0;if((k|0)==(r|0)){A=k;break D}if(o)break G;u=u+1|0;o=7;C=v<<1;break E}u=u+1|0;r=z}o=o-1|0;C=v<<1;break E}o=7;C=0;r=0;A=ta;l=u;U=0;if((ua|0)>=0)break C}U=K[u|0]>>>o&1;l=0;A=r+1|0;if((k|0)==(A|0)){A=k;break C}if(!o){l=u+1|0;o=7;break C}o=o-1|0;l=u;break C}C=v<<1; +U=0}r=0;p=0;G=0;v=0;J:{K:{if(!M)break K;p=ga;G=ia;m=(J[f+20>>2]+P(m,J[f+16>>2])|0)+ma|0;if(!m)break K;L:{M:{N:{O:{P:{if(!ha){p=t;G=W;if((k|0)==(t|0))break K;G=ja;p=t;if(W)break P;G=7;v=K[m+1|0]>>>7|0;if((k|0)!=(z|0))break O;p=z;break K}if(g)break M;G=7;p=0}v=K[m|0]>>>G&1;M=p+1|0;if((k|0)==(M|0)){p=k;break K}if(G)break N;m=m+1|0;G=7;u=v<<1;break L}m=m+1|0;M=z}G=G-1|0;u=v<<1;break L}G=7;u=0;M=0;p=ta;r=m;if((ua|0)>=0)break J}v=K[m|0]>>>G&1;r=0;p=M+1|0;if((k|0)==(p|0)){p=k;break J}if(!G){r=m+1|0;G=7; +break J}G=G-1|0;r=m;break J}u=v<<1;v=0}M=0;x=0;m=0;Q:{R:{S:{T:{U:{V:{L=0;W:{if(!y)break W;x=ia;n=(J[f+20>>2]+P(n,J[f+16>>2])|0)+ma|0;L=ga;if(!n)break W;ra=K[n|0];X:{if(!ha){x=W;L=t;if((k|0)==(t|0))break W;y=t;x=ja;if(W)break X;x=7;m=K[n+1|0]>>>7|0;if((k|0)!=(z|0))break U;L=z;break W}if(g)break S;y=0;x=7}m=ra>>>x&1;ra=y+1|0;if((k|0)!=(ra|0))break V;L=k}m=m<<1;y=0;break Q}if(x)break T;n=n+1|0;x=7;m=m<<1;break R}n=n+1|0;ra=z}x=x-1|0;m=m<<1;break R}x=7;ra=0;L=ta;M=n;y=0;if((ua|0)>=0)break Q}y=K[n|0]>>> +x&1;M=0;L=ra+1|0;if((k|0)==(L|0)){L=k;break Q}if(!x){M=n+1|0;x=7;break Q}x=x-1|0;M=n}n=u|v;y=m|y;m=C|U}if((b|0)<=0)break b;v=ca|za;U=X|Aa;while(1){C=0;Y:{if(!aa){aa=0;ca=0;break Y}if((O|0)<0){O=O+1|0;ca=0;break Y}ca=K[aa|0]>>>ka&1;O=O+1|0;if((O|0)==J[w+8>>2]){aa=0;break Y}if(!ka){aa=aa+1|0;ka=7;break Y}ka=ka-1|0}Z:{if(!I){I=0;break Z}if((F|0)<0){F=F+1|0;break Z}C=K[I|0]>>>da&1;F=F+1|0;if((F|0)==J[f+8>>2]){I=0;break Z}if(!da){I=I+1|0;da=7;break Z}da=da-1|0}u=0;_:{if(!S){S=0;X=0;break _}if((s|0)<0){s= +s+1|0;X=0;break _}X=K[S|0]>>>V&1;s=s+1|0;if((s|0)==J[f+8>>2]){S=0;break _}if(!V){S=S+1|0;V=7;break _}V=V-1|0}k=na<<1&2;ra=la<<1&2;v=v<<1&6;$:{if(!Q){Q=0;break $}if((N|0)<0){N=N+1|0;break $}u=K[Q|0]>>>q&1;N=N+1|0;if((N|0)==J[f+8>>2]){Q=0;break $}if(!q){Q=Q+1|0;q=7;break $}q=q-1|0}na=k|ca;la=C|ra;v=v|X;U=U<<1&6|u;aa:{ba:{if(!e)break ba;C=0;ca:{if(!l){l=0;u=0;break ca}if((A|0)<0){A=A+1|0;u=0;break ca}u=K[l|0]>>>o&1;A=A+1|0;if((A|0)==J[f+8>>2]){l=0;break ca}if(!o){l=l+1|0;o=7;break ca}o=o-1|0}k=m<<1& +6;da:{if(!r){r=0;break da}if((p|0)<0){p=p+1|0;break da}C=K[r|0]>>>G&1;p=p+1|0;if((p|0)==J[f+8>>2]){r=0;break da}if(!G){r=r+1|0;G=7;break da}G=G-1|0}m=k|u;k=n<<1&6;u=0;ea:{if(!M){M=0;break ea}if((L|0)<0){L=L+1|0;break ea}u=K[M|0]>>>x&1;L=L+1|0;if((L|0)==J[f+8>>2]){M=0;break ea}if(!x){M=M+1|0;x=7;break ea}x=x-1|0}qe(J[a+76>>2],Ba,J[a+84>>2]);y=y<<1&6|u;n=k|C;if(!(y|(n|m))){k=J[w+20>>2]+P(J[w+16>>2],$)+(R>>>3)|0;H[k|0]=K[k|0]&32639>>>(R&7);m=0;n=0;y=0;break aa}if((m|0)!=7|(n|0)!=7|(y|0)!=7)break ba; +m=7;k=J[w+20>>2]+P(J[w+16>>2],$)+(R>>>3)|0;H[k|0]=K[k|0]|1<<((R^-1)&7);n=7;y=7;break aa}k=na<<11;C=0;fa:{if(!fa){fa=0;ca=0;break fa}if((ea|0)<0){ea=ea+1|0;ca=0;break fa}ca=K[fa|0]>>>oa&1;ea=ea+1|0;if((ea|0)==J[w+8>>2]){fa=0;break fa}if(!oa){fa=fa+1|0;oa=7;break fa}oa=oa-1|0}k=k|ca<<10|la<<8|v<<5|U<<2;ga:{if(!Y){Y=0;break ga}if((D|0)<0){D=D+1|0;break ga}C=K[Y|0]>>>pa&1;D=D+1|0;if((D|0)==J[w+8>>2]){Y=0;break ga}if(!pa){Y=Y+1|0;pa=7;break ga}pa=pa-1|0}k=k|C<<1;C=0;ha:{if(!T){T=0;break ha}if((E|0)<0){E= +E+1|0;break ha}C=K[T|0]>>>qa&1;E=E+1|0;if((E|0)==J[f+8>>2]){T=0;break ha}if(!qa){T=T+1|0;qa=7;break ha}qa=qa-1|0}if(!qe(J[a+76>>2],k|C,J[a+84>>2]))break aa;k=J[w+20>>2]+P(J[w+16>>2],$)+(R>>>3)|0;H[k|0]=K[k|0]|1<<((R^-1)&7)}R=R+1|0;if((R|0)!=(b|0))continue;break}break b}y=K[C|0]>>>T&1;X=v+1|0;if((k|0)==(X|0)){X=k;C=0;break c}if(!T){C=C+1|0;T=7;break c}T=T-1|0}s=0;o=m+1|0;v=(o|0)>=0&(l|0)>(o|0);ia:{if(!v){Y=0;S=0;la=0;l=0;break ia}Y=0;S=0;la=0;l=0;if((k|0)<=(t|0))break ia;l=(J[f+20>>2]+P(o,J[f+16>> +2])|0)+va|0;if(!l){Y=xa;l=t;break ia}Y=7;if((g|0)>0){S=l;l=z;break ia}N=(k|0)==(z|0);S=N?0:l+Da|0;Y=N?sa:Ca;la=K[l|0]>>>sa&1;l=z}ca=l;ja:{if(!e){D=0;N=0;l=0;E=0;O=0;r=0;q=0;F=0;n=0;U=0;m=0;break ja}N=0;D=0;I=0;ka:{la:{if(!(r&x))break la;s=ga;D=ia;n=(J[f+20>>2]+P(q,J[f+16>>2])|0)+ma|0;if(!n)break la;ma:{na:{oa:{pa:{l=K[n|0];qa:{if(!ha){s=t;D=W;if((k|0)==(t|0))break la;Q=t;D=ja;if(W)break qa;D=7;I=K[n+1|0]>>>7|0;if((k|0)!=(z|0))break pa;s=z;break la}if(g)break na;Q=0;D=7}I=l>>>D&1;O=Q+1|0;if((k|0)== +(O|0)){s=k;break la}if(D)break oa;n=n+1|0;D=7;Q=I<<1;break ma}n=n+1|0;O=z}D=D-1|0;Q=I<<1;break ma}D=7;Q=0;O=0;s=ta;N=n;if((ua|0)>=0)break ka}I=K[n|0]>>>D&1;N=0;s=O+1|0;if((k|0)==(s|0)){s=k;break ka}if(!D){N=n+1|0;D=7;break ka}D=D-1|0;N=n;break ka}Q=I<<1;I=0}O=0;l=0;E=0;n=0;ra:{sa:{if(!F)break sa;l=ga;E=ia;m=(J[f+20>>2]+P(m,J[f+16>>2])|0)+ma|0;if(!m)break sa;ta:{ua:{va:{wa:{xa:{if(!ha){E=W;l=t;if((k|0)==(l|0))break sa;E=ja;if(W)break xa;E=7;n=K[m+1|0]>>>7|0;if((k|0)!=(z|0))break wa;l=z;break sa}if(g)break ua; +E=7;l=0}n=K[m|0]>>>E&1;F=l+1|0;if((k|0)==(F|0)){l=k;break sa}if(E)break va;m=m+1|0;E=7;G=n<<1;break ta}m=m+1|0;F=z}E=E-1|0;G=n<<1;break ta}E=7;G=0;F=0;l=ta;O=m;if((ua|0)>=0)break ra}n=K[m|0]>>>E&1;O=0;l=F+1|0;if((k|0)==(l|0)){l=k;break ra}if(!E){O=m+1|0;E=7;break ra}E=E-1|0;O=m;break ra}G=n<<1;n=0}F=0;q=0;m=0;ya:{za:{Aa:{Ba:{Ca:{Da:{r=0;Ea:{if(!(v&x))break Ea;q=ia;o=(J[f+20>>2]+P(o,J[f+16>>2])|0)+ma|0;r=ga;if(!o)break Ea;x=K[o|0];Fa:{if(!ha){q=W;r=t;if((k|0)==(t|0))break Ea;v=t;q=ja;if(W)break Fa; +q=7;m=K[o+1|0]>>>7|0;if((k|0)!=(z|0))break Ca;r=z;break Ea}if(g)break Aa;v=0;q=7}m=x>>>q&1;x=v+1|0;if((k|0)!=(x|0))break Da;r=k}U=m<<1;v=0;break ya}if(q)break Ba;o=o+1|0;q=7;U=m<<1;break za}o=o+1|0;x=z}q=q-1|0;U=m<<1;break za}q=7;U=0;x=0;r=ta;F=o;v=0;if((ua|0)>=0)break ya}v=K[o|0]>>>q&1;F=0;r=x+1|0;if((k|0)==(r|0)){r=k;break ya}if(!q){F=o+1|0;q=7;break ya}q=q-1|0;F=o}n=n|G;U=v|U;m=I|Q}if((b|0)<=0)break b;v=y|ka;R=0;while(1){Ga:{if(!u){u=0;I=0;break Ga}if((aa|0)<0){aa=aa+1|0;I=0;break Ga}I=K[u|0]>>> +ea&1;aa=aa+1|0;if((L|0)==(aa|0)){aa=L;u=0;break Ga}if(!ea){u=u+1|0;ea=7;break Ga}ea=ea-1|0}y=0;Ha:{if(!C){C=0;Q=0;break Ha}if((X|0)<0){X=X+1|0;Q=0;break Ha}Q=K[C|0]>>>T&1;X=X+1|0;if((X|0)==J[f+8>>2]){C=0;break Ha}if(!T){C=C+1|0;T=7;break Ha}T=T-1|0}k=na<<1&6;o=v<<1&6;Ia:{if(!S){S=0;break Ia}if((ca|0)<0){ca=ca+1|0;break Ia}y=K[S|0]>>>Y&1;ca=ca+1|0;if((ca|0)==J[f+8>>2]){S=0;break Ia}if(!Y){S=S+1|0;Y=7;break Ia}Y=Y-1|0}na=k|I;v=o|Q;la=la<<1&2|y;Ja:{Ka:{if(!e)break Ka;y=0;La:{if(!N){N=0;I=0;break La}if((s| +0)<0){s=s+1|0;I=0;break La}I=K[N|0]>>>D&1;s=s+1|0;if((s|0)==J[f+8>>2]){N=0;break La}if(!D){N=N+1|0;D=7;break La}D=D-1|0}k=m<<1&6;Ma:{if(!O){O=0;break Ma}if((l|0)<0){l=l+1|0;break Ma}y=K[O|0]>>>E&1;l=l+1|0;if((l|0)==J[f+8>>2]){O=0;break Ma}if(!E){O=O+1|0;E=7;break Ma}E=E-1|0}m=k|I;k=n<<1&6;I=0;Na:{if(!F){F=0;break Na}if((r|0)<0){r=r+1|0;break Na}I=K[F|0]>>>q&1;r=r+1|0;if((r|0)==J[f+8>>2]){F=0;break Na}if(!q){F=F+1|0;q=7;break Na}q=q-1|0}qe(J[a+76>>2],Ba,J[a+84>>2]);U=U<<1&6|I;n=k|y;if(!(U|(n|m))){k= +J[w+20>>2]+P(J[w+16>>2],$)+(R>>>3)|0;H[k|0]=K[k|0]&32639>>>(R&7);m=0;n=0;U=0;break Ja}if((m|0)!=7|(n|0)!=7|(U|0)!=7)break Ka;m=7;k=J[w+20>>2]+P(J[w+16>>2],$)+(R>>>3)|0;H[k|0]=K[k|0]|1<<((R^-1)&7);n=7;U=7;break Ja}k=na<<7;y=0;Oa:{if(!M){M=0;Q=0;break Oa}if((p|0)<0){p=p+1|0;Q=0;break Oa}Q=K[M|0]>>>V&1;p=p+1|0;if((L|0)==(p|0)){p=L;M=0;break Oa}if(!V){M=M+1|0;V=7;break Oa}V=V-1|0}k=k|Q<<6;Pa:{if(!A){A=0;break Pa}if((fa|0)<0){fa=fa+1|0;break Pa}y=K[A|0]>>>da&1;fa=fa+1|0;if((fa|0)==J[f+8>>2]){A=0;break Pa}if(!da){A= +A+1|0;da=7;break Pa}da=da-1|0}if(!qe(J[a+76>>2],k|y<<5|v<<2|la,J[a+84>>2]))break Ja;k=J[w+20>>2]+P(J[w+16>>2],$)+(R>>>3)|0;H[k|0]=K[k|0]|1<<((R^-1)&7)}R=R+1|0;if((R|0)!=(b|0))continue;break}}$=$+1|0;if(($|0)!=(c|0))continue;break}}return w}a=Z()|0;uc(w);ba(a|0);B()}function YI(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;j=fc-96|0;fc=j;a:{b:{while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)!=255&(c|0)!=-1)continue;while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue; +break}c:{d:{e:switch(c-192|0){case 26:c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;b=-1;f:{if((d|0)==-1)break f;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;b=-1;if((c|0)==-1)break f;b=c+(d<<8)|0}c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+136>>2]=c;g:{if(c-5>>>0<=4294967291){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,822822,0);J[a+136>>2]=0;b=0;break g}if((b|0)!=((c<<1)+6|0)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,823916,0);b=0;break g}f=a+120|0;b=c;c=J[a+188>>2];J[a+12>>2]=(b|0)==(c|0);b=0;h:{if((c|0)>0){while(1){J[f+(b<<2)>> +2]=0;b=b+1|0;if((b|0)>2])continue;break}if(J[a+136>>2]<=0)break h}c=0;while(1){b=J[a+4>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;i:{b=c;if((e|0)==J[(P(c,20)+a|0)+40>>2])break i;b=0;j:{k:{d=J[a+188>>2];if((d|0)<=0)break k;while(1){if((e|0)==J[(P(b,20)+a|0)+40>>2])break k;b=b+1|0;if((d|0)!=(b|0))continue;break}break j}if((b|0)!=(d|0))break i}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,824587,0);b=0;break g}d=b<<2;b=d+f|0;if(J[b>>2]){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,825490,0);b=0;break g}J[b>>2]=1;d=a+d|0;b=J[a+4>> +2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[d+156>>2]=b&15;J[d+140>>2]=b>>>4&15;c=c+1|0;if((c|0)>2])continue;break}}b=J[a+4>>2];m=a,n=kc[J[J[b>>2]+28>>2]](b)|0,J[m+172>>2]=n;b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;J[a+176>>2]=c;b=J[a+172>>2];if(!(!((b|0)>(c|0)|(c|0)>63)&(b|0)>=0)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,825783,0);b=0;break g}b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[a+184>>2]=b&15;J[a+180>>2]=b>>>4&15;b=1}if(!b)break a;l=1;d=J[a+188>>2];if((d|0)<=0)break a;c=J[a+720>>2];b=0;break b;default:switch(c+ +1|0){case 1:continue;case 0:break d;default:break c}case 0:case 1:if(!b){a=kc[J[J[a>>2]+52>>2]](a)|0;J[j+16>>2]=c;Cc(1,a,820745,j+16|0);break a}h=fc-16|0;fc=h;c=-1;d=J[a+4>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)!=-1){d=J[a+4>>2];kc[J[J[d>>2]+28>>2]](d)|0}d=J[a+4>>2];f=kc[J[J[d>>2]+28>>2]](d)|0;d=J[a+4>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;l:{if((e|0)==-1)break l;d=J[a+4>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break l;c=d+(e<<8)|0}J[a+20>>2]=c;c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;e=-1;m:{if((d|0)==-1)break m; +c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;e=-1;if((c|0)==-1)break m;e=c+(d<<8)|0}J[a+16>>2]=e;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+188>>2]=c;n:{if(c-5>>>0<=4294967291){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,822822,0);J[a+188>>2]=0;c=0;break n}o:{if((f|0)==8){g=0;break o}c=kc[J[J[a>>2]+52>>2]](a)|0;J[h>>2]=f;Cc(1,c,823020,h);c=0;break n}p:{while(1){e=P(g,20)+a|0;c=J[a+4>>2];m=e,n=kc[J[J[c>>2]+28>>2]](c)|0,J[m+40>>2]=n;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[e+48>>2]=c&15;J[e+44>>2]=c>>>4&15;c=J[a+4>> +2];d=kc[J[J[c>>2]+28>>2]](c)|0;J[e+52>>2]=d;q:{c=J[e+44>>2];r:{if(c>>>0>4|!(1<>2];if(c>>>0>4)break r;if(1<>2]+52>>2]](a)|0,823359,0);c=0;break n}if(d>>>0<4){g=g+1|0;if((g|0)>=J[a+188>>2])break p;continue}break}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,823728,0);c=0;break n}J[a+8>>2]=0;c=1}fc=h+16|0;if(c)continue;break a;case 2:if(!b){a=kc[J[J[a>>2]+52>>2]](a)|0;J[j+32>>2]=194;Cc(1,a,820745,j+32|0);break a}h=fc-16|0;fc=h;c=-1;d=J[a+4>>2];if((kc[J[J[d>>2]+28>> +2]](d)|0)!=-1){d=J[a+4>>2];kc[J[J[d>>2]+28>>2]](d)|0}d=J[a+4>>2];f=kc[J[J[d>>2]+28>>2]](d)|0;d=J[a+4>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;s:{if((e|0)==-1)break s;d=J[a+4>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break s;c=d+(e<<8)|0}J[a+20>>2]=c;c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;e=-1;t:{if((d|0)==-1)break t;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;e=-1;if((c|0)==-1)break t;e=c+(d<<8)|0}J[a+16>>2]=e;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+188>>2]=c;u:{if(c-5>>>0<=4294967291){Cc(1,kc[J[J[a>> +2]+52>>2]](a)|0,822822,0);J[a+188>>2]=0;c=0;break u}v:{if((f|0)==8){g=0;break v}c=kc[J[J[a>>2]+52>>2]](a)|0;J[h>>2]=f;Cc(1,c,823020,h);c=0;break u}w:{while(1){e=P(g,20)+a|0;c=J[a+4>>2];m=e,n=kc[J[J[c>>2]+28>>2]](c)|0,J[m+40>>2]=n;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[e+48>>2]=c&15;J[e+44>>2]=c>>>4&15;c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;J[e+52>>2]=d;x:{c=J[e+44>>2];y:{if(c>>>0>4|!(1<>2];if(c>>>0>4)break y;if(1<>2]+52>>2]](a)|0,823359,0);c= +0;break u}if(d>>>0<4){g=g+1|0;if((g|0)>=J[a+188>>2])break w;continue}break}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,823728,0);c=0;break u}J[a+8>>2]=1;c=1}fc=h+16|0;if(c)continue;break a;case 4:c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;z:{A:{if((d|0)==-1)break A;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break A;k=(c+(d<<8)|0)-2|0;if((k|0)<=0)break A;while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;d=c&15;if(d>>>0>=4){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,827530,0);c=0;break z}B:{if(c&16){if((d|0)>=J[a+3464>> +2])J[a+3464>>2]=d+1;c=(P(d,342)+a|0)+2092|0;break B}if((d|0)>=J[a+3460>>2])J[a+3460>>2]=d+1;c=(P(d,342)+a|0)+724|0}d=J[a+4>>2];i=kc[J[J[d>>2]+28>>2]](d)|0;I[c+54>>1]=i;I[c+20>>1]=0;H[c+1|0]=0;d=J[a+4>>2];g=kc[J[J[d>>2]+28>>2]](d)|0;I[c+56>>1]=g;e=i<<1;I[c+22>>1]=e;H[c+2|0]=i;d=J[a+4>>2];h=kc[J[J[d>>2]+28>>2]](d)|0;I[c+58>>1]=h;f=e+g<<1;I[c+24>>1]=f;e=g+i|0;H[c+3|0]=e;d=J[a+4>>2];g=kc[J[J[d>>2]+28>>2]](d)|0;I[c+60>>1]=g;f=f+h<<1;I[c+26>>1]=f;e=e+h|0;H[c+4|0]=e;d=J[a+4>>2];h=kc[J[J[d>>2]+28>>2]](d)| +0;I[c+62>>1]=h;f=f+g<<1;I[c+28>>1]=f;e=e+g|0;H[c+5|0]=e;d=J[a+4>>2];g=kc[J[J[d>>2]+28>>2]](d)|0;I[c- -64>>1]=g;f=f+h<<1;I[c+30>>1]=f;e=e+h|0;H[c+6|0]=e;d=J[a+4>>2];h=kc[J[J[d>>2]+28>>2]](d)|0;I[c+66>>1]=h;f=f+g<<1;I[c+32>>1]=f;e=e+g|0;H[c+7|0]=e;d=J[a+4>>2];g=kc[J[J[d>>2]+28>>2]](d)|0;I[c+68>>1]=g;f=f+h<<1;I[c+34>>1]=f;e=e+h|0;H[c+8|0]=e;d=J[a+4>>2];h=kc[J[J[d>>2]+28>>2]](d)|0;I[c+70>>1]=h;f=f+g<<1;I[c+36>>1]=f;e=e+g|0;H[c+9|0]=e;d=J[a+4>>2];g=kc[J[J[d>>2]+28>>2]](d)|0;I[c+72>>1]=g;f=f+h<<1;I[c+38>> +1]=f;e=e+h|0;H[c+10|0]=e;d=J[a+4>>2];h=kc[J[J[d>>2]+28>>2]](d)|0;I[c+74>>1]=h;f=f+g<<1;I[c+40>>1]=f;e=e+g|0;H[c+11|0]=e;d=J[a+4>>2];g=kc[J[J[d>>2]+28>>2]](d)|0;I[c+76>>1]=g;f=f+h<<1;I[c+42>>1]=f;e=e+h|0;H[c+12|0]=e;d=J[a+4>>2];h=kc[J[J[d>>2]+28>>2]](d)|0;I[c+78>>1]=h;f=f+g<<1;I[c+44>>1]=f;e=e+g|0;H[c+13|0]=e;d=J[a+4>>2];i=kc[J[J[d>>2]+28>>2]](d)|0;I[c+80>>1]=i;f=f+h<<1;I[c+46>>1]=f;e=e+h|0;H[c+14|0]=e;d=J[a+4>>2];g=kc[J[J[d>>2]+28>>2]](d)|0;I[c+82>>1]=g;h=f+i<<1;I[c+48>>1]=h;f=e+i|0;H[c+15|0]=f;d= +J[a+4>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;I[c+84>>1]=e;I[c+50>>1]=g+h<<1;d=f+g|0;H[c+16|0]=d;g=d+e&255;C:{if(!g)break C;i=0;if((g|0)!=1){f=g&254;h=0;while(1){e=c+86|0;d=J[a+4>>2];m=e+i|0,n=kc[J[J[d>>2]+28>>2]](d)|0,H[m|0]=n;d=J[a+4>>2];m=e+(i|1)|0,n=kc[J[J[d>>2]+28>>2]](d)|0,H[m|0]=n;i=i+2|0;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(g&1))break C;e=c+i|0;c=J[a+4>>2];m=e,n=kc[J[J[c>>2]+28>>2]](c)|0,H[m+86|0]=n}k=(k-17|0)-g|0;if((k|0)>0)continue;break}}c=1}if(c)continue;break a;case 24:if(b)continue; +a=kc[J[J[a>>2]+52>>2]](a)|0;J[j+48>>2]=216;Cc(1,a,820745,j+48|0);break a;case 27:c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;D:{E:{if((d|0)==-1)break E;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break E;g=(c+(d<<8)|0)-2|0;if((g|0)<=0)break E;while(1){F:{c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;h=c&15;if(h>>>0<=3){d=c>>>4&15;if(d>>>0<2)break F}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,827291,0);c=0;break D}if((h|0)>=J[a+720>>2])J[a+720>>2]=h+1;c=0;G:{if(!d){while(1){e=((h<<7)+a|0)+208|0;f=c<<2;d=J[a+4>> +2];m=e+(J[f+2343952>>2]<<1)|0,n=kc[J[J[d>>2]+28>>2]](d)|0,I[m>>1]=n;d=J[a+4>>2];m=e+(J[(f|4)+2343952>>2]<<1)|0,n=kc[J[J[d>>2]+28>>2]](d)|0,I[m>>1]=n;c=c+2|0;if((c|0)!=64)continue;break}c=-65;break G}while(1){d=J[a+4>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;f=-1;H:{if((e|0)==-1)break H;d=J[a+4>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;f=-1;if((d|0)==-1)break H;f=d+(e<<8)|0}I[(((h<<7)+a|0)+(J[(c<<2)+2343952>>2]<<1)|0)+208>>1]=f;c=c+1|0;if((c|0)!=64)continue;break}c=-129}g=c+g|0;if((g|0)>0)continue;break}}c=1}if(c)continue; +break a;case 29:I:{c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;J:{if((d|0)==-1)break J;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break J;if((c+(d<<8)|0)==4)break I}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,828200,0);break a}c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;e=-1;K:{if((d|0)==-1)break K;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;e=-1;if((c|0)==-1)break K;e=c+(d<<8)|0}J[a+204>>2]=e;continue;case 32:if(!b){a=kc[J[J[a>>2]+52>>2]](a)|0;J[j+64>>2]=224;Cc(1,a,820745,j- -64|0);break a}e=fc-16|0;fc=e;g=1;c= +J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;L:{if((d|0)==-1)break L;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break L;M:{d=c+(d<<8)|0;N:{if((d|0)<7){i=d-2|0;break N}c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break M;H[e+11|0]=c;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break M;H[e+12|0]=c;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break M;H[e+13|0]=c;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break M;H[e+14|0]=c;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0; +if((c|0)==-1)break M;H[e+15|0]=c;i=d-7|0;if(dd(e+11|0,829704,5))break N;J[a+196>>2]=1}if((i|0)<=0)break L;while(1){c=J[a+4>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1)break M;c=(i|0)<2;i=i-1|0;if(!c)continue;break}break L}g=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,828390,0)}fc=e+16|0;if(g)continue;break a;case 25:break a;case 3:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 28:case 30:case 31:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:break c; +case 46:break e}if(!b){a=kc[J[J[a>>2]+52>>2]](a)|0;J[j+80>>2]=238;Cc(1,a,820745,j+80|0);break a}e=fc-16|0;fc=e;O:{P:{c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==-1)break P;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;d=c+(d<<8)|0;if((d|0)<14)break P;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+4|0]=c;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+5|0]=c;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+6|0]=c;c=J[a+4>>2];c= +kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+7|0]=c;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==-1)break P;H[e+8|0]=c;c=J[a+4>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c| +0)==-1)break P;if(!dd(e+4|0,829852,5)){J[a+200>>2]=1;J[a+192>>2]=c<<24>>24}k=14;i=1;if(d>>>0<=14)break O;while(1){c=J[a+4>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1)break P;k=k+1|0;if((d|0)!=(k|0))continue;break}break O}i=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,829999,0)}fc=e+16|0;if(i)continue;break a}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,820930,0);break a}if((c|0)>=224){c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;e=-1;Q:{if((d|0)==-1)break Q;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;e=-1;if((c|0)==-1)break Q;e=c+(d<<8)| +0}c=J[a+4>>2];kc[J[J[c>>2]+48>>2]](c,e-2|0)|0;continue}break}a=kc[J[J[a>>2]+52>>2]](a)|0;J[j>>2]=c;Cc(1,a,821251,j);break a}while(1){if((c|0)>J[(P(b,20)+a|0)+52>>2]){b=b+1|0;if((d|0)!=(b|0))continue;break a}break}l=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,821724,0)}fc=j+96|0;return l}function Gsa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=fc-48|0;fc=h;J[h+20>>2]=0;J[h+16>>2]=0;f=J[J[a>>2]+16>>2];J[699344]=0;da(f|0,a|0,b|0);f=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((f|0)== +1)break f;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{f=J[b>>2];if(!(f-1>>>0>=6&(f|0)!=8)){if(!d){J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1115,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break x;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}y:{z:{A:{if(!K[a+4|0]){J[699344]=0;f=_(4,72)|0;g=J[699344];J[699344]=0;if((g|0)==1)break A;J[699344]=0;g=_(5687,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break w;J[699344]=0;J[h+24>>2]=0;f=h+24|0; +aa(5145,f|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break A;J[699344]=0;aa(5153,d+4|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break z;f=J[h+24>>2];J[h+24>>2]=0;B:{if(!f)break B;J[699344]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(g)break B;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}J[d>>2]=-1;J[d>>2]=J[b>>2]==8?-2:-1}J[699344]=0;aa(5153,h+20|0,d+4|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break y;a=Z()|0;break b}a=Z()|0;break b}a=Z()| +0;zc(h+24|0);break b}f=J[b>>2]}C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:switch(f|0){case 0:f=J[c>>2];if(!f){J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1136,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break v;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}g=J[J[a>>2]+32>>2];J[699344]=0;da(g|0,a|0,f|0);g=J[699344];J[699344]=0;O:{if((g|0)==1)break O;g=K[a+48|0];i=J[J[a>>2]+8>>2];J[699344]=0;g=ga(i|0,a|0,g|0,a+68|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break O; +H[a+48|0]=g;if(K[a+4|0])break C;J[699344]=0;da(5690,a|0,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break C}a=Z()|0;break b;case 1:f=J[J[a>>2]+40>>2];J[699344]=0;ca(f|0,a|0,J[h+20>>2],4);f=J[699344];J[699344]=0;if((f|0)!=1)break M;break f;case 2:f=J[J[a>>2]+40>>2];J[699344]=0;ca(f|0,a|0,J[h+20>>2],4);f=J[699344];J[699344]=0;if((f|0)==1)break f;J[699344]=0;da(5691,a|0,J[h+20>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break f;break C;case 11:break C;case 9:break F;case 10:break G;case 8:break H;case 7:break I; +case 6:break J;case 5:break K;case 4:break L;case 3:break N;default:break E}f=J[J[a>>2]+40>>2];J[699344]=0;ca(f|0,a|0,J[h+20>>2],3);f=J[699344];J[699344]=0;if((f|0)==1)break f}J[699344]=0;da(5691,a|0,J[h+20>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break f;f=J[h+20>>2];g=L[f+10>>1];f=L[f+8>>1];J[699344]=0;ia(5695,a|0,e|0,f|0,g|0);f=J[699344];J[699344]=0;if((f|0)==1)break f;break C}P:{if(d){g=J[c>>2];if(g)break P}J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1169,2434177,0)|0;a=J[699344];J[699344]=0; +if((a|0)==1)break u;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}f=J[J[a>>2]+20>>2];J[699344]=0;f=ga(f|0,a|0,d|0,g|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break t;i=J[d>>2];J[699344]=0;g=aa(5543,g|0,i|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break t;J[699344]=0;aa(5153,h+16|0,g+4|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break t;Q:{if(!((f|0)<=J[a+140>>2]&(f|0)>=J[a+136>>2])){J[699344]=0;b=ja(5178,h+24|0,2393794,2394220,619,2434720,0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break Q;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}g=J[a+124>>2]+(f-J[a+128>>2]<<4)|0;i=J[g+4>>2];j=J[g+8>>2];k=J[g+12>>2];g=J[g>>2];l=J[J[a>>2]+44>>2];J[699344]=0;ma(l|0,a|0,J[h+20>>2],(j-i|0)+1|0,(g-k|0)+1|0,4);g=J[699344];J[699344]=0;if((g|0)==1)break Q;J[699344]=0;ia(5692,a|0,J[h+20>>2],h+16|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break Q;f=J[h+20>>2];g=L[f+10>>1];f=L[f+8>>1];J[699344]=0;ia(5695,a|0,e|0,f|0,g|0);f=J[699344];J[699344]= +0;if((f|0)!=1)break C}a=Z()|0;break b}R:{if(d){g=J[c>>2];if(g)break R}J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1185,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break s;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}f=J[J[a>>2]+20>>2];J[699344]=0;f=ga(f|0,a|0,d|0,g|0)|0;i=J[699344];J[699344]=0;S:{if((i|0)==1)break S;i=J[d>>2];J[699344]=0;g=aa(5543,g|0,i|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break S;J[699344]=0;aa(5153,h+16|0,g+4|0)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break S;if((f|0)<=J[a+140>>2]&(f|0)>=J[a+136>>2])break D;J[699344]=0;b=ja(5178,h+24|0,2393794,2394220,619,2434720,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}a=Z()|0;break b}T:{if(d){g=J[c>>2];if(g)break T}J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1199,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break r;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a= +Z()|0;Kc(b);break b}f=J[J[a>>2]+20>>2];J[699344]=0;f=ga(f|0,a|0,d|0,g|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break q;i=J[d>>2];J[699344]=0;g=aa(5543,g|0,i|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break q;J[699344]=0;aa(5153,h+16|0,g+4|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break q;U:{if(!((f|0)<=J[a+140>>2]&(f|0)>=J[a+136>>2])){J[699344]=0;b=ja(5178,h+24|0,2393794,2394220,619,2434720,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break U;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h; +a=Z()|0;Kc(b);break b}g=J[a+124>>2]+(f-J[a+128>>2]<<4)|0;i=J[g+4>>2];j=J[g+8>>2];k=J[g+12>>2];g=J[g>>2];l=J[J[a>>2]+44>>2];J[699344]=0;ma(l|0,a|0,J[h+20>>2],(j-i|0)+1|0,(g-k|0)+1|0,4);g=J[699344];J[699344]=0;if((g|0)==1)break U;J[699344]=0;ia(5692,a|0,J[h+20>>2],h+16|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break U;f=J[h+20>>2];g=L[f+10>>1];f=L[f+8>>1];J[699344]=0;ia(5695,a|0,e|0,f|0,g|0);f=J[699344];J[699344]=0;if((f|0)!=1)break C}a=Z()|0;break b}if(K[a+4|0])J[h+12>>2]=J[e+4>>2];f=J[c>>2];if(!f){J[699344]= +0;b=ja(5178,h+24|0,2394816,2386144,1217,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}g=J[J[a>>2]+20>>2];J[699344]=0;g=ga(g|0,a|0,h+12|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d;V:{if(K[a+4|0]){i=J[e+4>>2];break V}i=J[h+12>>2];J[e+4>>2]=i}J[699344]=0;i=aa(5543,f|0,i|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break d;J[699344]=0;aa(5153,h+20|0,i+4|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d; +if(!((g|0)<=J[a+140>>2]&(g|0)>=J[a+136>>2])){J[699344]=0;b=ja(5178,h+24|0,2393794,2394220,619,2434720,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}g=J[a+124>>2]+(g-J[a+128>>2]<<4)|0;i=J[g+4>>2];I[e>>1]=i+L[e>>1];j=J[g+12>>2];I[e+2>>1]=j+L[e+2>>1];W:{if(K[f+104|0]){i=J[h+20>>2];f=L[i+10>>1];i=L[i+8>>1];break W}f=(J[g+8>>2]-i|0)+1|0;i=(J[g>>2]-j|0)+1|0}J[699344]=0;ia(5695,a|0,e|0,i|0,f|0);f=J[699344];J[699344]= +0;if((f|0)==1)break e;I[e>>1]=L[e>>1]-L[g+4>>1];I[e+2>>1]=L[e+2>>1]-L[g+12>>1];break C}f=J[J[a>>2]+40>>2];J[699344]=0;ca(f|0,a|0,J[h+20>>2],3);f=J[699344];J[699344]=0;if((f|0)==1)break f;J[699344]=0;da(5691,a|0,J[h+20>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break f;f=J[h+20>>2];g=L[f+10>>1];f=L[f+8>>1];i=J[J[a>>2]+36>>2];J[699344]=0;ia(i|0,a|0,e|0,f|0,g|0);f=J[699344];J[699344]=0;if((f|0)!=1)break C;break f}f=J[c>>2];if(!f){J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1245,2434177,0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break o;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}g=J[J[a>>2]+12>>2];J[699344]=0;da(g|0,a|0,f+8|0);f=J[699344];J[699344]=0;if((f|0)!=1)break C;a=Z()|0;break b}f=J[c>>2];if(!f){J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1255,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break n;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}if(!K[a+49|0]){g=J[J[a>>2]+24>>2];J[699344]=0;da(g|0,a|0, +f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break C;break g}J[a+52>>2]=0;J[a+56>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[699344]=0;ri(a+16|0,1,0);f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;ri(a+28|0,4,0);f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;ri(a+40|0,4,0);f=J[699344];J[699344]=0;if((f|0)==1)break g;J[a+8>>2]=1; +break C}J[699344]=0;b=ja(5178,h+24|0,2393580,2386144,1272,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break m;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}f=J[a+124>>2]+(f-J[a+128>>2]<<4)|0;g=J[f+4>>2];i=J[f+8>>2];j=J[f+12>>2];f=J[f>>2];k=J[J[a>>2]+44>>2];J[699344]=0;ma(k|0,a|0,J[h+20>>2],(i-g|0)+1|0,(f-j|0)+1|0,4);f=J[699344];J[699344]=0;if((f|0)==1)break c}X:{if(K[a+4|0])break X;g=-1;f=J[b>>2];if(!(f-1>>>0>=6&(f|0)!=8)){Y:{if(d){f=J[c>>2];if(f)break Y}J[699344]= +0;b=ja(5178,h+24|0,2394816,2386144,1292,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}J[699344]=0;g=aa(5693,f|0,d|0)|0;f=J[699344];J[699344]=0;Z:{_:{if((f|0)==1)break _;f=J[a+88>>2];$:{if((g|0)>=(f|0)){i=J[a+92>>2];if((i|0)>=(g|0))break $}J[699344]=0;da(5696,a+72|0,g|0);f=J[699344];J[699344]=0;if((f|0)==1)break _;i=J[a+92>>2];f=J[a+88>>2]}if((g|0)<=(i|0)&(f|0)<=(g|0))break Z;J[699344]=0;b=ja(5178, +h+24|0,2393794,2394220,619,2413160,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break _;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}a=Z()|0;break b}J[J[a+76>>2]+(g-J[a+80>>2]<<2)>>2]=-1;f=J[b>>2]}if(!(!(1<>>0>5)){if(!d){J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1310,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}J[699344]=0;ga(5694,a|0,g|0,d|0)| +0;a=J[699344];J[699344]=0;if((a|0)==1)break f}a=J[h+20>>2];if(a){J[699344]=0;$(5616,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f}a=J[b>>2];if(a>>>0>8)break X;aa:{if(!(1<>2]=g}a=J[c>>2];if(!a){J[699344]=0;b=ja(5178,h+24|0,2394816,2386144,1331,2434177,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);break b}J[699344]=0;aa(5697,a|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)== +1)break f}a=J[h+16>>2];J[h+16>>2]=0;ba:{if(!a)break ba;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break ba;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[h+20>>2];J[h+20>>2]=0;ca:{if(!a)break ca;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break i;if(b)break ca;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break i}fc=h+48|0;return}a=Z()|0;break b}a=Z()|0;uc(f);break b}a=Z()|0;break b}a= +Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}ea(0)|0;Bc()}B()}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0}zc(h+16|0);zc(h+20|0);ba(a|0);B()}ea(0)|0;Bc();B()}function LL(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0;f=fc-16|0;fc=f;k=J[a+4>> +2];a:{if(H[k+254|0]>0){i=fc-16|0;fc=i;J[i+12>>2]=0;m=J[k+24>>2];g=J[m+224>>2];c=K[m+200|0];if((c|0)==12)l=H[k+48|0];else l=(c|0)==219?1:-1;e=k+222|0;c=H[k+254|0];d=J[a+8>>2];g=BL(g,l,e,c,d,J[a+12>>2]-d|0,i+12|0,H[a+2|0]);b:{if((g|0)>0){l=k;c:{if((c|0)<=(g|0)){J[a+8>>2]=(g-c|0)+d;d=0;break c}c=c-g|0;cd(e,e+g|0,c);d=0-c|0}H[l+254|0]=d;d=a+24|0;g=a+16|0;e=J[a+20>>2];c=J[i+12>>2];if(c>>>0<=3145727){DL(k,c-2031616|0,g,e,d,-1,b);break b}m=J[m+224>>2];EL(k,(J[m+12>>2]+m|0)+((c&262143)<<1)|0,(c>>>18|0)-12| +0,g,e,d,-1,b);break b}if((g|0)<0){m=0;e=0-g|0;d:{if((e|0)<=(c|0))break d;g=(g^-1)-c|0;l=e-c&3;if(l)while(1){H[(c+k|0)+222|0]=K[d|0];c=c+1|0;d=d+1|0;m=m+1|0;if((l|0)!=(m|0))continue;break}if(g>>>0<3)break d;while(1){g=c+k|0;H[g+222|0]=K[d|0];H[g+223|0]=K[d+1|0];H[g+224|0]=K[d+2|0];H[g+225|0]=K[d+3|0];d=d+4|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}J[a+8>>2]=d;H[k+254|0]=e;break b}xc(k+37|0,e,H[k+255|0]);c=H[k+255|0];H[k+36|0]=c;d=H[k+254|0]-c|0;if((d|0)>0)cd(e,c+e|0,d);H[k+254|0]=0-d;J[b>>2]=10}fc= i+16|0;if(H[k+254|0]<0|J[b>>2]>0)break a}e:{f:{g:{h:{d=J[k+24>>2];if(K[d+28|0]==1){if(H[d+201|0]&1)break h;n=J[a+4>>2];p=J[a+12>>2];c=J[a+8>>2];e=J[a+16>>2];J[f+8>>2]=e;d=J[a+20>>2];J[f+4>>2]=J[a+24>>2];j=p-c|0;d=d-e>>1;d=(d|0)>(j|0)?j:d;l=J[J[n+24>>2]+(K[n+28|0]&16?40:36)>>2];j=c;i:while(1){j:{if((d|0)<16){g=c;break j}r=d>>>4|0;i=r;k:{while(1){J[f+12>>2]=c+1;k=J[l+(K[c|0]<<2)>>2];J[f+8>>2]=e+2;I[e>>1]=k;J[f+12>>2]=c+2;o=J[l+(K[c+1|0]<<2)>>2];J[f+8>>2]=e+4;I[e+2>>1]=o;J[f+12>>2]=c+3;q=J[l+(K[c+2| 0]<<2)>>2];J[f+8>>2]=e+6;I[e+4>>1]=q;J[f+12>>2]=c+4;t=J[l+(K[c+3|0]<<2)>>2];I[e+6>>1]=t;u=J[l+(K[c+4|0]<<2)>>2];I[e+8>>1]=u;v=J[l+(K[c+5|0]<<2)>>2];I[e+10>>1]=v;w=J[l+(K[c+6|0]<<2)>>2];I[e+12>>1]=w;x=J[l+(K[c+7|0]<<2)>>2];I[e+14>>1]=x;y=J[l+(K[c+8|0]<<2)>>2];I[e+16>>1]=y;z=J[l+(K[c+9|0]<<2)>>2];I[e+18>>1]=z;A=J[l+(K[c+10|0]<<2)>>2];I[e+20>>1]=A;B=J[l+(K[c+11|0]<<2)>>2];I[e+22>>1]=B;C=J[l+(K[c+12|0]<<2)>>2];I[e+24>>1]=C;D=J[l+(K[c+13|0]<<2)>>2];I[e+26>>1]=D;E=J[l+(K[c+14|0]<<2)>>2];I[e+28>>1]=E;g= c+16|0;J[f+12>>2]=g;s=J[l+(K[c+15|0]<<2)>>2];m=e+32|0;J[f+8>>2]=m;I[e+30>>1]=s;if((s|(v|(u|(t|(q|(k|o))))|w|x|y|z|A|B|C|D|E))>=-2146435072){J[f+8>>2]=e;J[f+12>>2]=c;g=c;break k}k=(i|0)>1;e=m;c=g;i=i-1|0;if(k)continue;break}i=0}i=r-i|0;m=i<<4;d=d-m|0;c=J[f+4>>2];if(!c)break j;if((i|0)>0){while(1){J[c>>2]=h;J[c+60>>2]=h+15;J[c+56>>2]=h+14;J[c+52>>2]=h+13;J[c+48>>2]=h+12;J[c+44>>2]=h+11;J[c+40>>2]=h+10;J[c+36>>2]=h+9;J[c+32>>2]=h+8;J[c+28>>2]=h+7;J[c+24>>2]=h+6;J[c+20>>2]=h+5;J[c+16>>2]=h+4;J[c+12>> 2]=h+3;J[c+8>>2]=h+2;J[c+4>>2]=h+1;c=c- -64|0;h=h+16|0;g=i>>>0>1;i=i-1|0;if(g)continue;break}g=J[f+12>>2]}j=j+m|0;J[f+4>>2]=c}if((d|0)<=0)break g;while(1){i=e;m=d;l:{m:{while(1){c=g;if(p>>>0<=c>>>0)break f;g=c+1|0;J[f+12>>2]=g;d=J[l+(K[c|0]<<2)>>2];if((d|0)<=-2146435073)break l;n:switch((d>>>20&15)-2|0){case 0:break l;case 4:break m;case 5:break n;default:continue}break}J[b>>2]=12}e=J[f+4>>2];if(e){i=g-j|0;if((i|0)>=2)while(1){J[e>>2]=h;e=e+4|0;h=h+1|0;d=i>>>0>2;i=i-1|0;if(d)continue;break}J[f+4>> -2]=e}if(J[b>>2]>0){c=J[f+12>>2];break f}H[n+37|0]=K[c|0];o:{c=J[J[n+24>>2]+224>>2];p:{if(!c){c=J[f+12>>2];break p}d=oK(n,c,1,f+12|0,p,f+8|0,J[a+20>>2],f+4|0,h,H[a+2|0],b);c=J[f+12>>2];if(d)break o}J[b>>2]=10;H[n+36|0]=1;h=((h-g|0)+c|0)+1|0;break e}d=J[b>>2];H[n+36|0]=0;h=((h-g|0)+c|0)+1|0;if((d|0)>0)break e;d=p-c|0;e=J[f+8>>2];j=J[a+20>>2]-e>>1;d=(d|0)<(j|0)?d:j;j=g;continue i}e=i+2|0;J[f+8>>2]=e;I[i>>1]=d;d=m-1|0;g=J[f+12>>2];if((m|0)>1)continue;break}break}break g}c=J[a+8>>2];J[f+12>>2]=c;s=J[a+ +2]=e}if(J[b>>2]>0){c=J[f+12>>2];break f}H[n+37|0]=K[c|0];o:{c=J[J[n+24>>2]+224>>2];p:{if(!c){c=J[f+12>>2];break p}d=CL(n,c,1,f+12|0,p,f+8|0,J[a+20>>2],f+4|0,h,H[a+2|0],b);c=J[f+12>>2];if(d)break o}J[b>>2]=10;H[n+36|0]=1;h=((h-g|0)+c|0)+1|0;break e}d=J[b>>2];H[n+36|0]=0;h=((h-g|0)+c|0)+1|0;if((d|0)>0)break e;d=p-c|0;e=J[f+8>>2];j=J[a+20>>2]-e>>1;d=(d|0)<(j|0)?d:j;j=g;continue i}e=i+2|0;J[f+8>>2]=e;I[i>>1]=d;d=m-1|0;g=J[f+12>>2];if((m|0)>1)continue;break}break}break g}c=J[a+8>>2];J[f+12>>2]=c;s=J[a+ 12>>2];J[f+8>>2]=J[a+16>>2];q=J[a+20>>2];J[f+4>>2]=J[a+24>>2];j=K[k+48|0];if(!j)j=K[d+29|0];i=K[k+36|0];g=J[k+44>>2];q:{if(c>>>0>=s>>>0)break q;u=k+37|0;r=J[d+44>>2];t=J[d+(K[k+28|0]&16?40:36)>>2];l=i&255?-1:0;while(1){h=J[f+8>>2];if(q>>>0<=h>>>0){J[b>>2]=15;break q}r:{s:{t:{u:{if(!(i&255)){d=J[f+4>>2];if(!d)while(1){e=J[(t+((j&255)<<10)|0)+(K[c|0]<<2)>>2];v:{if((e|0)>=0){i=c+1|0;J[f+12>>2]=i;g=e&16777215;j=e>>>24|0;if(i>>>0>=s>>>0)break u;e=J[(t+(j<<10)|0)+(K[i|0]<<2)>>2];if((e&-2131755008)!=-2143289344)break u; d=L[(r+(g<<1)|0)+((e&65535)<<1)>>1];if(d>>>0>65533)break u;J[f+8>>2]=h+2;c=c+2|0;J[f+12>>2]=c;I[h>>1]=d;g=0;j=e>>>24&127;break v}if(e>>>0>2148532223){i=0;break s}J[f+8>>2]=h+2;c=c+1|0;J[f+12>>2]=c;I[h>>1]=e;j=0}i=0;h=J[f+8>>2];if(c>>>0>=s>>>0)break s;if(h>>>0>>0)continue;break s}while(1){w:{e=J[(t+((j&255)<<10)|0)+(K[c|0]<<2)>>2];x:{if((e|0)>=0){i=c+1|0;J[f+12>>2]=i;g=e&16777215;j=e>>>24|0;if(i>>>0>=s>>>0)break w;e=J[(t+(j<<10)|0)+(K[i|0]<<2)>>2];if((e&-2131755008)!=-2143289344)break w;m=L[(r+ (g<<1)|0)+((e&65535)<<1)>>1];if(m>>>0>65533)break w;J[f+8>>2]=h+2;c=c+2|0;J[f+12>>2]=c;I[h>>1]=m;g=0;if(d){j=d+4|0;J[f+4>>2]=j;J[d>>2]=l;l=n+2|0;n=l;d=j}else d=0;j=e>>>24&127;break x}if(e>>>0>2148532223){i=0;break s}J[f+8>>2]=h+2;c=c+1|0;J[f+12>>2]=c;I[h>>1]=e;j=0;if(!d){d=0;break x}i=d+4|0;J[f+4>>2]=i;J[d>>2]=l;d=i;l=n+1|0;n=l}i=0;h=J[f+8>>2];if(c>>>0>=s>>>0)break s;if(h>>>0>>0)continue;break s}break}n=n+1|0;d=c;break t}d=c+1|0;J[f+12>>2]=d;c=K[c|0];H[u+(i<<24>>24)|0]=c;e=J[(t+((j&255)<<10)|0)+ @@ -6048,41 +6424,41 @@ d=L[(r+(g<<1)|0)+((e&65535)<<1)>>1];if(d>>>0>65533)break u;J[f+8>>2]=h+2;c=c+2|0 o;break z}if((g|0)!=65534){d=j;break B}g=J[k+24>>2];e=J[g+32>>2];if(!e)break A;i=J[g+48>>2];g=0;if((e|0)!=1)while(1){l=e+g>>>1|0;p=d>>>0>2];g=p?g:l;e=p?l:e;if(g>>>0>>0)continue;break}e=d;d=i+(g<<3)|0;if((e|0)!=J[d>>2])break A;d=J[d+4>>2];if((d|0)==65534)break A;J[f+8>>2]=h+2;I[h>>1]=d;d=J[f+4>>2];if(!d)break z;J[f+4>>2]=d+4;J[d>>2]=o;break z}J[f+8>>2]=h+2;I[h>>1]=e;d=J[f+4>>2];if(!d)break z;J[f+4>>2]=d+4;J[d>>2]=o;break z}d=(e&65535)+g|0;g=L[r+(d<<1)>>1];if(g>>>0<=55295){J[f+8>>2]= h+2;I[h>>1]=g;d=J[f+4>>2];if(!d)break z;J[f+4>>2]=d+4;J[d>>2]=o;break z}d=d+1|0;if(g>>>0<=57343){e=h+2|0;J[f+8>>2]=e;I[h>>1]=g&56319;J:{g=J[f+4>>2];if(g){J[f+4>>2]=g+4;J[g>>2]=o;if(e>>>0>=q>>>0)break J;d=L[r+(d<<1)>>1];J[f+8>>2]=h+4;I[h+2>>1]=d;J[f+4>>2]=g+8;J[g+4>>2]=o;break z}if(e>>>0>=q>>>0)break J;d=L[r+(d<<1)>>1];J[f+8>>2]=h+4;I[h+2>>1]=d;break z}d=L[r+(d<<1)>>1];H[k+65|0]=1;I[k+116>>1]=d;break E}if((g&65534)!=57344)break C;d=L[r+(d<<1)>>1];J[f+8>>2]=h+2;I[h>>1]=d;d=J[f+4>>2];if(!d)break z;J[f+ 4>>2]=d+4;J[d>>2]=o;break z}if((e&13631488)!=1048576)break D;g=h+2|0;J[f+8>>2]=g;I[h>>1]=e>>>10&1023|55296;K:{d=J[f+4>>2];if(d){J[f+4>>2]=d+4;J[d>>2]=o;e=e&1023|-9216;if(g>>>0>=q>>>0)break K;J[f+8>>2]=h+4;I[h+2>>1]=e;J[f+4>>2]=d+8;J[d+4>>2]=o;break z}e=e&1023|-9216;if(g>>>0>=q>>>0)break K;J[f+8>>2]=h+4;I[h+2>>1]=e;break z}H[k+65|0]=1;I[k+116>>1]=e}J[b>>2]=15;i=0;g=0;break q}i=0;l=n;g=0;d=j;L:switch(v-2|0){case 6:d=p;if(!K[J[k+24>>2]+29|0])break z;break B;case 4:break A;case 5:break B;case 0:break L; -default:break y}J[f+8>>2]=h+2;I[h>>1]=e;d=J[f+4>>2];if(!d)break z;J[f+4>>2]=d+4;J[d>>2]=o;break z}d=j;if((g|0)!=65535)break A}J[b>>2]=12;j=d}if(!m)break z;M:{N:{O:{if(J[b>>2]>0){g=0;if((m|0)<2){i=m;break q}d=m&255;e=t+((j&255)<<10)|0;l=!K[J[k+24>>2]+29|0];i=1;P:{while(1){n=i+u|0;b=J[e+(K[n|0]<<2)>>2];Q:{if((b|0)>=0){b=wK(t,b>>>24|0);break Q}b=b>>>20&15;b=(b|0)!=7&(l|(b|0)!=8)}if(b)break P;i=i+1|0;if((d|0)!=(i|0))continue;break}i=m;break q}b=c-J[a+8>>2]|0;d=m-i|0;g=d<<24>>24;if((b|0)<(g|0))break O; -c=c-g|0;g=0;break q}J[a+8>>2]=c;c=J[J[k+24>>2]+224>>2];if(c){i=0;if(oK(k,c,m,f+12|0,s,f+8|0,q,f+4|0,o,H[a+2|0],b))break M}R:{if(!(K[k+29|0]&128)|(m|0)!=4)break R;c=K[k+40|0]+P(K[k+39|0]+P(K[k+38|0]+P(K[k+37|0],10)|0,126)|0,10)|0;if(c>>>0>=1876218){if(c>>>0>2924793)break R;e=-1876218;h=735904;break N}S:{T:{U:{V:{W:{if(c>>>0>=1706261){if(c>>>0>1720686)break W;e=-1706261;h=735920;break N}if(c>>>0<1688038)break R;if(c>>>0<1694675){e=-1688038;h=735936;break N}if((c|0)==1694675)break R;if(c>>>0>1695139)break V; -e=-1694676;h=735952;break N}if(c>>>0<1720768)break R;if(c>>>0>1725062)break U;e=-1720768;h=735968;break N}if(c>>>0<1696437)break R;if(c>>>0>1698546)break T;e=-1696437;h=735984;break N}if(c>>>0<1725296)break R;if(c>>>0>1726325)break S;e=-1725296;h=736E3;break N}X:{if(c>>>0>=1701916){if(c>>>0>1702800)break X;e=-1701916;h=736016;break N}if(c-1700956>>>0<4294966531)break R;e=-1700191;h=736032;break N}if(c>>>0>=1705179){if(c>>>0>1705881)break R;e=-1705179;h=736048;break N}if(c>>>0<1703065)break R;if(c>>> -0<1703536){e=-1703065;h=736064;break N}if(c>>>0>=1704636){if(c>>>0>1705076)break R;e=-1704636;h=736080;break N}if(c-1704320>>>0<4294966923)break R;e=-1703947;h=736096;break N}if(c-1726638>>>0<=4294967269)break R;e=-1726612;h=736112;break N}J[b>>2]=10;i=m;break M}b=b-d|0;H[k+254|0]=b;g=0;tc(k+222|0,n,0-(b<<24>>24)|0);c=J[a+8>>2];break q}J[b>>2]=0;pK(k,J[h>>2]+(c+e|0)|0,f+8|0,q,f+4|0,o,b);i=0}c=J[f+12>>2];g=0;if(J[b>>2]>0)break q;l=(c+n|0)-J[a+8>>2]|0;n=l;break y}i=0;l=n;g=0}if(c>>>0>>0)continue; +default:break y}J[f+8>>2]=h+2;I[h>>1]=e;d=J[f+4>>2];if(!d)break z;J[f+4>>2]=d+4;J[d>>2]=o;break z}d=j;if((g|0)!=65535)break A}J[b>>2]=12;j=d}if(!m)break z;M:{N:{O:{if(J[b>>2]>0){g=0;if((m|0)<2){i=m;break q}d=m&255;e=t+((j&255)<<10)|0;l=!K[J[k+24>>2]+29|0];i=1;P:{while(1){n=i+u|0;b=J[e+(K[n|0]<<2)>>2];Q:{if((b|0)>=0){b=KL(t,b>>>24|0);break Q}b=b>>>20&15;b=(b|0)!=7&(l|(b|0)!=8)}if(b)break P;i=i+1|0;if((d|0)!=(i|0))continue;break}i=m;break q}b=c-J[a+8>>2]|0;d=m-i|0;g=d<<24>>24;if((b|0)<(g|0))break O; +c=c-g|0;g=0;break q}J[a+8>>2]=c;c=J[J[k+24>>2]+224>>2];if(c){i=0;if(CL(k,c,m,f+12|0,s,f+8|0,q,f+4|0,o,H[a+2|0],b))break M}R:{if(!(K[k+29|0]&128)|(m|0)!=4)break R;c=K[k+40|0]+P(K[k+39|0]+P(K[k+38|0]+P(K[k+37|0],10)|0,126)|0,10)|0;if(c>>>0>=1876218){if(c>>>0>2924793)break R;e=-1876218;h=737648;break N}S:{T:{U:{V:{W:{if(c>>>0>=1706261){if(c>>>0>1720686)break W;e=-1706261;h=737664;break N}if(c>>>0<1688038)break R;if(c>>>0<1694675){e=-1688038;h=737680;break N}if((c|0)==1694675)break R;if(c>>>0>1695139)break V; +e=-1694676;h=737696;break N}if(c>>>0<1720768)break R;if(c>>>0>1725062)break U;e=-1720768;h=737712;break N}if(c>>>0<1696437)break R;if(c>>>0>1698546)break T;e=-1696437;h=737728;break N}if(c>>>0<1725296)break R;if(c>>>0>1726325)break S;e=-1725296;h=737744;break N}X:{if(c>>>0>=1701916){if(c>>>0>1702800)break X;e=-1701916;h=737760;break N}if(c-1700956>>>0<4294966531)break R;e=-1700191;h=737776;break N}if(c>>>0>=1705179){if(c>>>0>1705881)break R;e=-1705179;h=737792;break N}if(c>>>0<1703065)break R;if(c>>> +0<1703536){e=-1703065;h=737808;break N}if(c>>>0>=1704636){if(c>>>0>1705076)break R;e=-1704636;h=737824;break N}if(c-1704320>>>0<4294966923)break R;e=-1703947;h=737840;break N}if(c-1726638>>>0<=4294967269)break R;e=-1726612;h=737856;break N}J[b>>2]=10;i=m;break M}b=b-d|0;H[k+254|0]=b;g=0;xc(k+222|0,n,0-(b<<24>>24)|0);c=J[a+8>>2];break q}J[b>>2]=0;DL(k,J[h>>2]+(c+e|0)|0,f+8|0,q,f+4|0,o,b);i=0}c=J[f+12>>2];g=0;if(J[b>>2]>0)break q;l=(c+n|0)-J[a+8>>2]|0;n=l;break y}i=0;l=n;g=0}if(c>>>0>>0)continue; break}}J[k+44>>2]=g;H[k+36|0]=i;J[k+48>>2]=j&255;J[a+8>>2]=c;J[a+16>>2]=J[f+8>>2];J[a+24>>2]=J[f+4>>2];break a}i=J[a+4>>2];n=J[a+12>>2];c=J[a+8>>2];d=J[a+16>>2];J[f+8>>2]=d;l=J[a+20>>2];J[f+4>>2]=J[a+24>>2];Y:{if(c>>>0>=n>>>0)break Y;p=J[J[i+24>>2]+(K[i+28|0]&16?40:36)>>2];while(1){e=J[f+8>>2];if(e>>>0>=l>>>0){J[b>>2]=15;d=e;break Y}g=c+1|0;J[f+12>>2]=g;Z:{_:{$:{m=J[p+(K[c|0]<<2)>>2];if((m|0)<=-2146435073){J[f+8>>2]=e+2;I[e>>1]=m;c=J[f+4>>2];if(!c)break $;J[f+4>>2]=c+4;J[c>>2]=j;break $}aa:{if((m& 13631488)==1048576){I[e>>1]=m>>>10&1023|55296;d=e+2|0;c=J[f+4>>2];if(c){J[f+4>>2]=c+4;J[c>>2]=j;h=m&1023|-9216;if(d>>>0>=l>>>0)break aa;J[f+8>>2]=e+4;I[e+2>>1]=h;J[f+4>>2]=c+8;J[c+4>>2]=j;break $}h=m&1023|-9216;if(d>>>0>=l>>>0)break aa;J[f+8>>2]=e+4;I[e+2>>1]=h;break $}ba:switch((m>>>20&15)-2|0){case 0:J[f+8>>2]=e+2;I[e>>1]=m;c=J[f+4>>2];if(!c)break $;J[f+4>>2]=c+4;J[c>>2]=j;break $;case 5:J[b>>2]=12;d=e;c=g;break Y;case 4:break ba;default:break $}if(J[b>>2]>0){c=g;d=J[f+8>>2];break Y}J[a+8>>2]=g; -H[i+37|0]=K[c|0];ca:{da:{c=J[J[i+24>>2]+224>>2];if(!c)break da;if(!oK(i,c,1,f+12|0,n,f+8|0,l,f+4|0,j,H[a+2|0],b))break da;e=J[b>>2];d=0;break ca}e=10;J[b>>2]=10;d=1}H[i+36|0]=d;c=J[f+12>>2];if((e|0)>0)break Z;j=((c+j|0)-J[a+8>>2]|0)+1|0;break _}H[i+65|0]=1;I[i+116>>1]=h;J[b>>2]=15;c=g;break Y}c=g;j=j+1|0}if(c>>>0>>0)continue}break}d=J[f+8>>2]}J[a+16>>2]=d;J[a+8>>2]=c;J[a+24>>2]=J[f+4>>2];break a}c=g}g=j}e=0;if(!(J[b>>2]>0|c>>>0>=p>>>0|M[f+8>>2]>2]))J[b>>2]=15;b=J[f+4>>2];ea:{if(!b)break ea; -j=c-g|0;if(!j){e=b;break ea}d=(g^-1)+c|0;i=j&7;fa:{if(!i){e=b;break fa}g=0;e=b;while(1){J[e>>2]=h;j=j-1|0;e=e+4|0;h=h+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}if(d>>>0<7)break ea;while(1){J[e>>2]=h;J[e+28>>2]=h+7;J[e+24>>2]=h+6;J[e+20>>2]=h+5;J[e+16>>2]=h+4;J[e+12>>2]=h+3;J[e+8>>2]=h+2;J[e+4>>2]=h+1;e=e+32|0;h=h+8|0;j=j-8|0;if(j)continue;break}}J[a+8>>2]=c;b=J[f+8>>2];J[a+24>>2]=e;J[a+16>>2]=b}bc=f+16|0}function v5a(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;var h=0,i=0,j=0,k=0,l= -0,m=0,n=0,o=0,p=0,q=0,r=0;a:switch(a|0){case 0:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);l=J[b+12>>2];if(l)J[b+1212>>2]=J[b+84>>2];j=g;if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Af(c+104|0,c,O[c+1192>>3],O[c+1200>>3]);J[c+1208>>2]=3}Pd(c);m=J[c+12>>2];b:{c:{if(m){k=J[c+84>>2];J[c+1212>>2]=k;break c}if(!l)break b;k=J[c+84>>2]}o=J[c+92>>2];p=J[c+88>>2];n=J[c+80>>2];a=J[b+92>>2];h=J[b+88>>2];g=J[b+84>>2];i=J[b+80>>2];d:{if(!(!l|!m)){g=(g|0)<(k|0)?g:k;i= -(i|0)<(n|0)?i:n;a=(a|0)>(o|0)?a:o;h=(h|0)>(p|0)?h:p;break d}if(l)break d;a=o;h=p;g=k;i=n;if(!m)break b}if((h|0)<(i|0)|(a|0)<(g|0))break b;a=J[j+20>>2]-1|0;if((a|0)>=0)while(1){g=J[(J[J[j+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(g)qc(g);g=(a|0)>0;a=a-1|0;if(g)continue;break}J[j+60>>2]=0;J[j>>2]=0;J[j+20>>2]=0;J[j+120>>2]=0;J[j+112>>2]=-2147483647;J[j+116>>2]=-2147483647;J[j+104>>2]=2147483647;J[j+108>>2]=2147483647;J[j+40>>2]=0;a=J[f+20>>2];g=(h-i|0)+3|0;e:{if(g>>>0<=M[f+24>>2])break e; -if(a)qc(a);J[f+24>>2]=g;a=rc(g>>>0>536870911?-1:g<<3);J[f+20>>2]=a;if((g|0)==J[f+12>>2])break e;h=J[f+8>>2];if(h){qc(h);a=J[f+20>>2]}J[f+12>>2]=g;q=f,r=rc(g),J[q+8>>2]=r}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];g=0;I[a+2>>1]=0;a=0;if(l){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;f:{if(h>>>0<=M[d+24>>2])break f;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break f;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=rc(h),J[q+8>>2]=r}J[d>> -2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=yd(b,d)}if(m){g=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;g:{if(h>>>0<=M[e+24>>2])break g;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break g;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;q=e,r=rc(h),J[q+8>>2]=r}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=yd(c,e)}if((a|g)!=1)break b;while(1){h=a&1;h:{i:{if(!(!h|!(g&1))){a=J[d+4>>2];g=J[e+4>>2];if((a|0)==(g|0)){G2(d, -e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(j,f)}a=yd(b,d);break i}if((a|0)<(g|0)){Jf(d,f,j);a=yd(b,d);h=1;break h}Jf(e,f,j);a=1;break i}a=0;if(h){Jf(d,f,j);a=yd(b,d)}h=0;if(!(g&1))break h;Jf(e,f,j)}h=yd(c,e)}g=h;if(h|a)continue;break}}return;case 1:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);j:{if(!J[b+12>>2])break j;J[b+1212>>2]=J[b+84>>2];if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Af(c+104|0,c,O[c+1192>>3],O[c+1200>>3]);J[c+1208>>2]=3}Pd(c); -if(!J[c+12>>2])break j;a=J[c+84>>2];J[c+1212>>2]=a;h=J[b+88>>2];i=J[c+88>>2];h=(h|0)<(i|0)?h:i;i=J[b+80>>2];k=J[c+80>>2];i=(i|0)>(k|0)?i:k;if((h|0)<(i|0))break j;k=J[b+84>>2];n=(a|0)<(k|0)?k:a;a=J[b+92>>2];k=J[c+92>>2];if((n|0)>(((a|0)<(k|0)?a:k)|0))break j;a=J[f+20>>2];h=(h-i|0)+3|0;k:{if(h>>>0<=M[f+24>>2])break k;if(a)qc(a);J[f+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[f+20>>2]=a;if((h|0)==J[f+12>>2])break k;i=J[f+8>>2];if(i){qc(i);a=J[f+20>>2]}J[f+12>>2]=h;q=f,r=rc(h),J[q+8>>2]=r}J[f>>2]=2147483632; -J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];I[a+2>>1]=0;a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;l:{if(h>>>0<=M[d+24>>2])break l;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break l;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=rc(h),J[q+8>>2]=r}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;m:{if(h>>>0<=M[e+24>>2])break m;if(a)qc(a);J[e+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=a; -if((h|0)==J[e+12>>2])break m;i=J[e+8>>2];if(i){qc(i);a=J[e+20>>2]}J[e+12>>2]=h;q=e,r=rc(h),J[q+8>>2]=r}J[e>>2]=2147483632;J[e+28>>2]=a;J[e+16>>2]=J[e+8>>2];I[a+2>>1]=0;if(!yd(b,d))break j;if(!yd(c,e))break j;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){h=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(h)qc(h);h=(a|0)>0;a=a-1|0;if(h)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+ -40>>2]=0;while(1){if(J[d+4>>2]>2]){if(yd(b,d))continue;break j}while(1){a=J[e+4>>2];h=J[d+4>>2];if((a|0)<(h|0)){if(yd(c,e))continue;break j}break}if((a|0)!=(h|0))continue;Of(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(g,f)}if(!yd(b,d))break j;if(yd(c,e))continue;break}}return;case 2:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);l=J[b+12>>2];if(l)J[b+1212>>2]=J[b+84>>2];j=g;if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Af(c+104|0,c,O[c+1192>> -3],O[c+1200>>3]);J[c+1208>>2]=3}Pd(c);m=J[c+12>>2];n:{o:{if(m){k=J[c+84>>2];J[c+1212>>2]=k;break o}if(!l)break n;k=J[c+84>>2]}o=J[c+92>>2];p=J[c+88>>2];n=J[c+80>>2];a=J[b+92>>2];h=J[b+88>>2];g=J[b+84>>2];i=J[b+80>>2];p:{if(!(!l|!m)){g=(g|0)<(k|0)?g:k;i=(i|0)<(n|0)?i:n;a=(a|0)>(o|0)?a:o;h=(h|0)>(p|0)?h:p;break p}if(l)break p;a=o;h=p;g=k;i=n;if(!m)break n}if((h|0)<(i|0)|(a|0)<(g|0))break n;a=J[j+20>>2]-1|0;if((a|0)>=0)while(1){g=J[(J[J[j+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(g)qc(g); -g=(a|0)>0;a=a-1|0;if(g)continue;break}J[j+60>>2]=0;J[j>>2]=0;J[j+20>>2]=0;J[j+120>>2]=0;J[j+112>>2]=-2147483647;J[j+116>>2]=-2147483647;J[j+104>>2]=2147483647;J[j+108>>2]=2147483647;J[j+40>>2]=0;a=J[f+20>>2];g=(h-i|0)+3|0;q:{if(g>>>0<=M[f+24>>2])break q;if(a)qc(a);J[f+24>>2]=g;a=rc(g>>>0>536870911?-1:g<<3);J[f+20>>2]=a;if((g|0)==J[f+12>>2])break q;h=J[f+8>>2];if(h){qc(h);a=J[f+20>>2]}J[f+12>>2]=g;q=f,r=rc(g),J[q+8>>2]=r}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];g=0;I[a+2>>1]=0;a=0;if(l){a= -J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;r:{if(h>>>0<=M[d+24>>2])break r;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break r;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=rc(h),J[q+8>>2]=r}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=yd(b,d)}if(m){g=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;s:{if(h>>>0<=M[e+24>>2])break s;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break s;i= -J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;q=e,r=rc(h),J[q+8>>2]=r}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=yd(c,e)}if((a|g)!=1)break n;while(1){h=a&1;t:{u:{if(!(!h|!(g&1))){a=J[d+4>>2];g=J[e+4>>2];if((a|0)==(g|0)){F2(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(j,f)}a=yd(b,d);break u}if((a|0)<(g|0)){Jf(d,f,j);a=yd(b,d);h=1;break t}Jf(e,f,j);a=1;break u}a=0;if(h){Jf(d,f,j);a=yd(b,d)}h=0;if(!(g&1))break t;Jf(e,f,j)}h=yd(c,e)}g=h;if(h|a)continue;break}}return; -case 3:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);l=J[b+12>>2];if(l)J[b+1212>>2]=J[b+84>>2];j=g;if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Af(c+104|0,c,O[c+1192>>3],O[c+1200>>3]);J[c+1208>>2]=3}Pd(c);m=J[c+12>>2];v:{w:{if(m){k=J[c+84>>2];J[c+1212>>2]=k;break w}if(!l)break v;k=J[c+84>>2]}o=J[c+92>>2];p=J[c+88>>2];n=J[c+80>>2];a=J[b+92>>2];h=J[b+88>>2];g=J[b+84>>2];i=J[b+80>>2];x:{if(!(!l|!m)){g=(g|0)<(k|0)?g:k;i=(i|0)<(n|0)?i:n;a=(a|0)>(o|0)?a:o;h=(h| -0)>(p|0)?h:p;break x}if(l)break x;a=o;h=p;g=k;i=n;if(!m)break v}if((h|0)<(i|0)|(a|0)<(g|0))break v;a=J[j+20>>2]-1|0;if((a|0)>=0)while(1){g=J[(J[J[j+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(g)qc(g);g=(a|0)>0;a=a-1|0;if(g)continue;break}J[j+60>>2]=0;J[j>>2]=0;J[j+20>>2]=0;J[j+120>>2]=0;J[j+112>>2]=-2147483647;J[j+116>>2]=-2147483647;J[j+104>>2]=2147483647;J[j+108>>2]=2147483647;J[j+40>>2]=0;a=J[f+20>>2];g=(h-i|0)+3|0;y:{if(g>>>0<=M[f+24>>2])break y;if(a)qc(a);J[f+24>>2]=g;a=rc(g>>>0>536870911? --1:g<<3);J[f+20>>2]=a;if((g|0)==J[f+12>>2])break y;h=J[f+8>>2];if(h){qc(h);a=J[f+20>>2]}J[f+12>>2]=g;q=f,r=rc(g),J[q+8>>2]=r}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];g=0;I[a+2>>1]=0;a=0;if(l){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;z:{if(h>>>0<=M[d+24>>2])break z;if(a)qc(a);J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break z;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=rc(h),J[q+8>>2]=r}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>> -2];I[a+2>>1]=0;a=yd(b,d)}if(m){g=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;A:{if(h>>>0<=M[e+24>>2])break A;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break A;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;q=e,r=rc(h),J[q+8>>2]=r}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=yd(c,e)}if((a|g)!=1)break v;while(1){h=a&1;B:{C:{if(!(!h|!(g&1))){a=J[d+4>>2];g=J[e+4>>2];if((a|0)==(g|0)){E2(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+ -4>>2];Cj(j,f)}a=yd(b,d);break C}if((a|0)<(g|0)){Jf(d,f,j);a=yd(b,d);h=1;break B}Jf(e,f,j);a=1;break C}a=0;if(h){Jf(d,f,j);a=yd(b,d)}h=0;if(!(g&1))break B;Jf(e,f,j)}h=yd(c,e)}g=h;if(h|a)continue;break}}return;case 4:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);l=J[b+12>>2];if(l)J[b+1212>>2]=J[b+84>>2];j=g;if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Af(c+104|0,c,O[c+1192>>3],O[c+1200>>3]);J[c+1208>>2]=3}Pd(c);m=J[c+12>>2];D:{E:{if(m){k=J[c+84>>2];J[c+1212>> -2]=k;break E}if(!l)break D;k=J[c+84>>2]}o=J[c+92>>2];p=J[c+88>>2];n=J[c+80>>2];a=J[b+92>>2];h=J[b+88>>2];g=J[b+84>>2];i=J[b+80>>2];F:{if(!(!l|!m)){g=(g|0)<(k|0)?g:k;i=(i|0)<(n|0)?i:n;a=(a|0)>(o|0)?a:o;h=(h|0)>(p|0)?h:p;break F}if(l)break F;a=o;h=p;g=k;i=n;if(!m)break D}if((h|0)<(i|0)|(a|0)<(g|0))break D;a=J[j+20>>2]-1|0;if((a|0)>=0)while(1){g=J[(J[J[j+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(g)qc(g);g=(a|0)>0;a=a-1|0;if(g)continue;break}J[j+60>>2]=0;J[j>>2]=0;J[j+20>>2]=0;J[j+120>>2]= -0;J[j+112>>2]=-2147483647;J[j+116>>2]=-2147483647;J[j+104>>2]=2147483647;J[j+108>>2]=2147483647;J[j+40>>2]=0;a=J[f+20>>2];g=(h-i|0)+3|0;G:{if(g>>>0<=M[f+24>>2])break G;if(a)qc(a);J[f+24>>2]=g;a=rc(g>>>0>536870911?-1:g<<3);J[f+20>>2]=a;if((g|0)==J[f+12>>2])break G;h=J[f+8>>2];if(h){qc(h);a=J[f+20>>2]}J[f+12>>2]=g;q=f,r=rc(g),J[q+8>>2]=r}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];g=0;I[a+2>>1]=0;a=0;if(l){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;H:{if(h>>>0<=M[d+24>>2])break H;if(a)qc(a); -J[d+24>>2]=h;a=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break H;i=J[d+8>>2];if(i){qc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=rc(h),J[q+8>>2]=r}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=yd(b,d)}if(m){g=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;I:{if(h>>>0<=M[e+24>>2])break I;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break I;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;q=e,r=rc(h),J[q+8>>2]=r}J[e>>2]=2147483632; -J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=yd(c,e)}if((a|g)!=1)break D;while(1){h=a&1;J:{K:{if(!(!h|!(g&1))){a=J[d+4>>2];g=J[e+4>>2];if((a|0)==(g|0)){D2(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Cj(j,f)}a=yd(b,d);break K}if((a|0)<(g|0)){Jf(d,f,j);a=yd(b,d);h=1;break J}Jf(e,f,j);a=1;break K}a=0;if(h){Jf(d,f,j);a=yd(b,d)}h=0;if(!(g&1))break J;Jf(e,f,j)}h=yd(c,e)}g=h;if(h|a)continue;break}}return;case 5:H2(b,c,d,e,f,g);return;case 6:H2(c,b,e,d,f,g);break;default:break a}}function V8(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Q=bc-128|0;bc=Q;M=J[a+4>>2];X=d;j=P(d,1876);y=J[a+8>>2];m=J[y+88>>2];F=J[(j+m|0)+420>>2];l=bd(1,P(F,112)+112|0);i=0;a:{if(!l)break a;b:{if((F|0)>=0){h=J[y+32>>2];z=J[y+40>>2];g=J[y+48>>2];o=(d|0)/(g|0)|0;i=h+P(z,o)|0;n=J[M+4>>2];U=(i|0)>(n|0)?i:n;i=J[M+12>>2];n=h+P(z,o+1|0)|0;s=(i|0)<(n|0)?i:n;h=J[y+28>>2];z=J[y+36>> -2];g=d-P(g,o)|0;i=h+P(z,g)|0;n=J[M>>2];E=(i|0)>(n|0)?i:n;i=J[M+8>>2];n=h+P(z,g+1|0)|0;v=(i|0)<(n|0)?i:n;z=J[M+16>>2];I=z<<4;V=j+m|0;n=V+8|0;g=V+12|0;Y=V+1872|0;while(1){q=l+P(W,112)|0;J[q+92>>2]=s;J[q+88>>2]=v;J[q+84>>2]=U;J[q+80>>2]=E;J[q+72>>2]=z;d=bd(1,I);J[q+76>>2]=d;if(!d)break b;B=0;N=wc(d,0,I);C=0;L=J[l+72>>2];if((L|0)>0){k=J[M+24>>2];j=J[Y>>2];d=0;while(1){h=(d<<4)+N|0;i=P(d,48)+k|0;o=J[i>>2];J[h>>2]=o;m=J[i+4>>2];J[h+4>>2]=m;D=P(d,1076)+j|0;G=J[D+4>>2];J[h+8>>2]=G;w=bd(1,G<<4);J[h+12>>2]= +H[i+37|0]=K[c|0];ca:{da:{c=J[J[i+24>>2]+224>>2];if(!c)break da;if(!CL(i,c,1,f+12|0,n,f+8|0,l,f+4|0,j,H[a+2|0],b))break da;e=J[b>>2];d=0;break ca}e=10;J[b>>2]=10;d=1}H[i+36|0]=d;c=J[f+12>>2];if((e|0)>0)break Z;j=((c+j|0)-J[a+8>>2]|0)+1|0;break _}H[i+65|0]=1;I[i+116>>1]=h;J[b>>2]=15;c=g;break Y}c=g;j=j+1|0}if(c>>>0>>0)continue}break}d=J[f+8>>2]}J[a+16>>2]=d;J[a+8>>2]=c;J[a+24>>2]=J[f+4>>2];break a}c=g}g=j}e=0;if(!(J[b>>2]>0|c>>>0>=p>>>0|M[f+8>>2]>2]))J[b>>2]=15;b=J[f+4>>2];ea:{if(!b)break ea; +j=c-g|0;if(!j){e=b;break ea}d=(g^-1)+c|0;i=j&7;fa:{if(!i){e=b;break fa}g=0;e=b;while(1){J[e>>2]=h;j=j-1|0;e=e+4|0;h=h+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}if(d>>>0<7)break ea;while(1){J[e>>2]=h;J[e+28>>2]=h+7;J[e+24>>2]=h+6;J[e+20>>2]=h+5;J[e+16>>2]=h+4;J[e+12>>2]=h+3;J[e+8>>2]=h+2;J[e+4>>2]=h+1;e=e+32|0;h=h+8|0;j=j-8|0;if(j)continue;break}}J[a+8>>2]=c;b=J[f+8>>2];J[a+24>>2]=e;J[a+16>>2]=b}fc=f+16|0}function v7a(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;var h=0,i=0,j=0,k=0,l= +0,m=0,n=0,o=0,p=0,q=0,r=0;a:switch(a|0){case 0:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);l=J[b+12>>2];if(l)J[b+1212>>2]=J[b+84>>2];j=g;if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Sd(c+104|0,c,O[c+1192>>3],O[c+1200>>3]);J[c+1208>>2]=3}Vc(c);m=J[c+12>>2];b:{c:{if(m){k=J[c+84>>2];J[c+1212>>2]=k;break c}if(!l)break b;k=J[c+84>>2]}o=J[c+92>>2];p=J[c+88>>2];n=J[c+80>>2];a=J[b+92>>2];h=J[b+88>>2];g=J[b+84>>2];i=J[b+80>>2];d:{if(!(!l|!m)){g=(g|0)<(k|0)?g:k;i= +(i|0)<(n|0)?i:n;a=(a|0)>(o|0)?a:o;h=(h|0)>(p|0)?h:p;break d}if(l)break d;a=o;h=p;g=k;i=n;if(!m)break b}if((h|0)<(i|0)|(a|0)<(g|0))break b;a=J[j+20>>2]-1|0;if((a|0)>=0)while(1){g=J[(J[J[j+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(g)uc(g);g=(a|0)>0;a=a-1|0;if(g)continue;break}J[j+60>>2]=0;J[j>>2]=0;J[j+20>>2]=0;J[j+120>>2]=0;J[j+112>>2]=-2147483647;J[j+116>>2]=-2147483647;J[j+104>>2]=2147483647;J[j+108>>2]=2147483647;J[j+40>>2]=0;a=J[f+20>>2];g=(h-i|0)+3|0;e:{if(g>>>0<=M[f+24>>2])break e; +if(a)uc(a);J[f+24>>2]=g;a=vc(g>>>0>536870911?-1:g<<3);J[f+20>>2]=a;if((g|0)==J[f+12>>2])break e;h=J[f+8>>2];if(h){uc(h);a=J[f+20>>2]}J[f+12>>2]=g;q=f,r=vc(g),J[q+8>>2]=r}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];g=0;I[a+2>>1]=0;a=0;if(l){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;f:{if(h>>>0<=M[d+24>>2])break f;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break f;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=vc(h),J[q+8>>2]=r}J[d>> +2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=Xc(b,d)}if(m){g=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;g:{if(h>>>0<=M[e+24>>2])break g;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break g;i=J[e+8>>2];if(i){uc(i);g=J[e+20>>2]}J[e+12>>2]=h;q=e,r=vc(h),J[q+8>>2]=r}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=Xc(c,e)}if((a|g)!=1)break b;while(1){h=a&1;h:{i:{if(!(!h|!(g&1))){a=J[d+4>>2];g=J[e+4>>2];if((a|0)==(g|0)){G4(d, +e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(j,f)}a=Xc(b,d);break i}if((a|0)<(g|0)){Qf(d,f,j);a=Xc(b,d);h=1;break h}Qf(e,f,j);a=1;break i}a=0;if(h){Qf(d,f,j);a=Xc(b,d)}h=0;if(!(g&1))break h;Qf(e,f,j)}h=Xc(c,e)}g=h;if(h|a)continue;break}}return;case 1:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);j:{if(!J[b+12>>2])break j;J[b+1212>>2]=J[b+84>>2];if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Sd(c+104|0,c,O[c+1192>>3],O[c+1200>>3]);J[c+1208>>2]=3}Vc(c); +if(!J[c+12>>2])break j;a=J[c+84>>2];J[c+1212>>2]=a;h=J[b+88>>2];i=J[c+88>>2];h=(h|0)<(i|0)?h:i;i=J[b+80>>2];k=J[c+80>>2];i=(i|0)>(k|0)?i:k;if((h|0)<(i|0))break j;k=J[b+84>>2];n=(a|0)<(k|0)?k:a;a=J[b+92>>2];k=J[c+92>>2];if((n|0)>(((a|0)<(k|0)?a:k)|0))break j;a=J[f+20>>2];h=(h-i|0)+3|0;k:{if(h>>>0<=M[f+24>>2])break k;if(a)uc(a);J[f+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[f+20>>2]=a;if((h|0)==J[f+12>>2])break k;i=J[f+8>>2];if(i){uc(i);a=J[f+20>>2]}J[f+12>>2]=h;q=f,r=vc(h),J[q+8>>2]=r}J[f>>2]=2147483632; +J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];I[a+2>>1]=0;a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;l:{if(h>>>0<=M[d+24>>2])break l;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break l;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=vc(h),J[q+8>>2]=r}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;m:{if(h>>>0<=M[e+24>>2])break m;if(a)uc(a);J[e+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=a; +if((h|0)==J[e+12>>2])break m;i=J[e+8>>2];if(i){uc(i);a=J[e+20>>2]}J[e+12>>2]=h;q=e,r=vc(h),J[q+8>>2]=r}J[e>>2]=2147483632;J[e+28>>2]=a;J[e+16>>2]=J[e+8>>2];I[a+2>>1]=0;if(!Xc(b,d))break j;if(!Xc(c,e))break j;a=J[g+20>>2]-1|0;if((a|0)>=0)while(1){h=J[(J[J[g+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(h)uc(h);h=(a|0)>0;a=a-1|0;if(h)continue;break}J[g+60>>2]=0;J[g>>2]=0;J[g+20>>2]=0;J[g+120>>2]=0;J[g+112>>2]=-2147483647;J[g+116>>2]=-2147483647;J[g+104>>2]=2147483647;J[g+108>>2]=2147483647;J[g+ +40>>2]=0;while(1){if(J[d+4>>2]>2]){if(Xc(b,d))continue;break j}while(1){a=J[e+4>>2];h=J[d+4>>2];if((a|0)<(h|0)){if(Xc(c,e))continue;break j}break}if((a|0)!=(h|0))continue;F4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(g,f)}if(!Xc(b,d))break j;if(Xc(c,e))continue;break}}return;case 2:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);l=J[b+12>>2];if(l)J[b+1212>>2]=J[b+84>>2];j=g;if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Sd(c+104|0,c,O[c+1192>> +3],O[c+1200>>3]);J[c+1208>>2]=3}Vc(c);m=J[c+12>>2];n:{o:{if(m){k=J[c+84>>2];J[c+1212>>2]=k;break o}if(!l)break n;k=J[c+84>>2]}o=J[c+92>>2];p=J[c+88>>2];n=J[c+80>>2];a=J[b+92>>2];h=J[b+88>>2];g=J[b+84>>2];i=J[b+80>>2];p:{if(!(!l|!m)){g=(g|0)<(k|0)?g:k;i=(i|0)<(n|0)?i:n;a=(a|0)>(o|0)?a:o;h=(h|0)>(p|0)?h:p;break p}if(l)break p;a=o;h=p;g=k;i=n;if(!m)break n}if((h|0)<(i|0)|(a|0)<(g|0))break n;a=J[j+20>>2]-1|0;if((a|0)>=0)while(1){g=J[(J[J[j+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(g)uc(g); +g=(a|0)>0;a=a-1|0;if(g)continue;break}J[j+60>>2]=0;J[j>>2]=0;J[j+20>>2]=0;J[j+120>>2]=0;J[j+112>>2]=-2147483647;J[j+116>>2]=-2147483647;J[j+104>>2]=2147483647;J[j+108>>2]=2147483647;J[j+40>>2]=0;a=J[f+20>>2];g=(h-i|0)+3|0;q:{if(g>>>0<=M[f+24>>2])break q;if(a)uc(a);J[f+24>>2]=g;a=vc(g>>>0>536870911?-1:g<<3);J[f+20>>2]=a;if((g|0)==J[f+12>>2])break q;h=J[f+8>>2];if(h){uc(h);a=J[f+20>>2]}J[f+12>>2]=g;q=f,r=vc(g),J[q+8>>2]=r}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];g=0;I[a+2>>1]=0;a=0;if(l){a= +J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;r:{if(h>>>0<=M[d+24>>2])break r;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break r;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=vc(h),J[q+8>>2]=r}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=Xc(b,d)}if(m){g=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;s:{if(h>>>0<=M[e+24>>2])break s;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break s;i= +J[e+8>>2];if(i){uc(i);g=J[e+20>>2]}J[e+12>>2]=h;q=e,r=vc(h),J[q+8>>2]=r}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=Xc(c,e)}if((a|g)!=1)break n;while(1){h=a&1;t:{u:{if(!(!h|!(g&1))){a=J[d+4>>2];g=J[e+4>>2];if((a|0)==(g|0)){E4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(j,f)}a=Xc(b,d);break u}if((a|0)<(g|0)){Qf(d,f,j);a=Xc(b,d);h=1;break t}Qf(e,f,j);a=1;break u}a=0;if(h){Qf(d,f,j);a=Xc(b,d)}h=0;if(!(g&1))break t;Qf(e,f,j)}h=Xc(c,e)}g=h;if(h|a)continue;break}}return; +case 3:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);l=J[b+12>>2];if(l)J[b+1212>>2]=J[b+84>>2];j=g;if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Sd(c+104|0,c,O[c+1192>>3],O[c+1200>>3]);J[c+1208>>2]=3}Vc(c);m=J[c+12>>2];v:{w:{if(m){k=J[c+84>>2];J[c+1212>>2]=k;break w}if(!l)break v;k=J[c+84>>2]}o=J[c+92>>2];p=J[c+88>>2];n=J[c+80>>2];a=J[b+92>>2];h=J[b+88>>2];g=J[b+84>>2];i=J[b+80>>2];x:{if(!(!l|!m)){g=(g|0)<(k|0)?g:k;i=(i|0)<(n|0)?i:n;a=(a|0)>(o|0)?a:o;h=(h| +0)>(p|0)?h:p;break x}if(l)break x;a=o;h=p;g=k;i=n;if(!m)break v}if((h|0)<(i|0)|(a|0)<(g|0))break v;a=J[j+20>>2]-1|0;if((a|0)>=0)while(1){g=J[(J[J[j+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(g)uc(g);g=(a|0)>0;a=a-1|0;if(g)continue;break}J[j+60>>2]=0;J[j>>2]=0;J[j+20>>2]=0;J[j+120>>2]=0;J[j+112>>2]=-2147483647;J[j+116>>2]=-2147483647;J[j+104>>2]=2147483647;J[j+108>>2]=2147483647;J[j+40>>2]=0;a=J[f+20>>2];g=(h-i|0)+3|0;y:{if(g>>>0<=M[f+24>>2])break y;if(a)uc(a);J[f+24>>2]=g;a=vc(g>>>0>536870911? +-1:g<<3);J[f+20>>2]=a;if((g|0)==J[f+12>>2])break y;h=J[f+8>>2];if(h){uc(h);a=J[f+20>>2]}J[f+12>>2]=g;q=f,r=vc(g),J[q+8>>2]=r}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];g=0;I[a+2>>1]=0;a=0;if(l){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;z:{if(h>>>0<=M[d+24>>2])break z;if(a)uc(a);J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break z;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=vc(h),J[q+8>>2]=r}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>> +2];I[a+2>>1]=0;a=Xc(b,d)}if(m){g=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;A:{if(h>>>0<=M[e+24>>2])break A;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break A;i=J[e+8>>2];if(i){uc(i);g=J[e+20>>2]}J[e+12>>2]=h;q=e,r=vc(h),J[q+8>>2]=r}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=Xc(c,e)}if((a|g)!=1)break v;while(1){h=a&1;B:{C:{if(!(!h|!(g&1))){a=J[d+4>>2];g=J[e+4>>2];if((a|0)==(g|0)){D4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+ +4>>2];Zj(j,f)}a=Xc(b,d);break C}if((a|0)<(g|0)){Qf(d,f,j);a=Xc(b,d);h=1;break B}Qf(e,f,j);a=1;break C}a=0;if(h){Qf(d,f,j);a=Xc(b,d)}h=0;if(!(g&1))break B;Qf(e,f,j)}h=Xc(c,e)}g=h;if(h|a)continue;break}}return;case 4:if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);l=J[b+12>>2];if(l)J[b+1212>>2]=J[b+84>>2];j=g;if(!(!K[c+1188|0]|J[c+1208>>2]!=2)){Sd(c+104|0,c,O[c+1192>>3],O[c+1200>>3]);J[c+1208>>2]=3}Vc(c);m=J[c+12>>2];D:{E:{if(m){k=J[c+84>>2];J[c+1212>> +2]=k;break E}if(!l)break D;k=J[c+84>>2]}o=J[c+92>>2];p=J[c+88>>2];n=J[c+80>>2];a=J[b+92>>2];h=J[b+88>>2];g=J[b+84>>2];i=J[b+80>>2];F:{if(!(!l|!m)){g=(g|0)<(k|0)?g:k;i=(i|0)<(n|0)?i:n;a=(a|0)>(o|0)?a:o;h=(h|0)>(p|0)?h:p;break F}if(l)break F;a=o;h=p;g=k;i=n;if(!m)break D}if((h|0)<(i|0)|(a|0)<(g|0))break D;a=J[j+20>>2]-1|0;if((a|0)>=0)while(1){g=J[(J[J[j+32>>2]+(a>>>4&268435452)>>2]+((a&63)<<3)|0)+4>>2];if(g)uc(g);g=(a|0)>0;a=a-1|0;if(g)continue;break}J[j+60>>2]=0;J[j>>2]=0;J[j+20>>2]=0;J[j+120>>2]= +0;J[j+112>>2]=-2147483647;J[j+116>>2]=-2147483647;J[j+104>>2]=2147483647;J[j+108>>2]=2147483647;J[j+40>>2]=0;a=J[f+20>>2];g=(h-i|0)+3|0;G:{if(g>>>0<=M[f+24>>2])break G;if(a)uc(a);J[f+24>>2]=g;a=vc(g>>>0>536870911?-1:g<<3);J[f+20>>2]=a;if((g|0)==J[f+12>>2])break G;h=J[f+8>>2];if(h){uc(h);a=J[f+20>>2]}J[f+12>>2]=g;q=f,r=vc(g),J[q+8>>2]=r}J[f>>2]=2147483632;J[f+28>>2]=a;J[f+16>>2]=J[f+8>>2];g=0;I[a+2>>1]=0;a=0;if(l){a=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;H:{if(h>>>0<=M[d+24>>2])break H;if(a)uc(a); +J[d+24>>2]=h;a=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=a;if((h|0)==J[d+12>>2])break H;i=J[d+8>>2];if(i){uc(i);a=J[d+20>>2]}J[d+12>>2]=h;q=d,r=vc(h),J[q+8>>2]=r}J[d>>2]=2147483632;J[d+28>>2]=a;J[d+16>>2]=J[d+8>>2];I[a+2>>1]=0;a=Xc(b,d)}if(m){g=J[e+20>>2];h=(J[c+88>>2]-J[c+80>>2]|0)+3|0;I:{if(h>>>0<=M[e+24>>2])break I;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break I;i=J[e+8>>2];if(i){uc(i);g=J[e+20>>2]}J[e+12>>2]=h;q=e,r=vc(h),J[q+8>>2]=r}J[e>>2]=2147483632; +J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=Xc(c,e)}if((a|g)!=1)break D;while(1){h=a&1;J:{K:{if(!(!h|!(g&1))){a=J[d+4>>2];g=J[e+4>>2];if((a|0)==(g|0)){C4(d,e,f);if(J[f+28>>2]!=J[f+20>>2]){J[f+4>>2]=J[d+4>>2];Zj(j,f)}a=Xc(b,d);break K}if((a|0)<(g|0)){Qf(d,f,j);a=Xc(b,d);h=1;break J}Qf(e,f,j);a=1;break K}a=0;if(h){Qf(d,f,j);a=Xc(b,d)}h=0;if(!(g&1))break J;Qf(e,f,j)}h=Xc(c,e)}g=h;if(h|a)continue;break}}return;case 5:H4(b,c,d,e,f,g);return;case 6:H4(c,b,e,d,f,g);break;default:break a}}function Xaa(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Q=fc-128|0;fc=Q;M=J[a+4>>2];X=d;j=P(d,1876);y=J[a+8>>2];m=J[y+88>>2];F=J[(j+m|0)+420>>2];l=kd(1,P(F,112)+112|0);i=0;a:{if(!l)break a;b:{if((F|0)>=0){h=J[y+32>>2];z=J[y+40>>2];g=J[y+48>>2];o=(d|0)/(g|0)|0;i=h+P(z,o)|0;n=J[M+4>>2];U=(i|0)>(n|0)?i:n;i=J[M+12>>2];n=h+P(z,o+1|0)|0;s=(i|0)<(n|0)?i:n;h=J[y+28>>2];z=J[y+36>> +2];g=d-P(g,o)|0;i=h+P(z,g)|0;n=J[M>>2];E=(i|0)>(n|0)?i:n;i=J[M+8>>2];n=h+P(z,g+1|0)|0;v=(i|0)<(n|0)?i:n;z=J[M+16>>2];I=z<<4;V=j+m|0;n=V+8|0;g=V+12|0;Y=V+1872|0;while(1){q=l+P(W,112)|0;J[q+92>>2]=s;J[q+88>>2]=v;J[q+84>>2]=U;J[q+80>>2]=E;J[q+72>>2]=z;d=kd(1,I);J[q+76>>2]=d;if(!d)break b;B=0;N=Ac(d,0,I);C=0;L=J[l+72>>2];if((L|0)>0){k=J[M+24>>2];j=J[Y>>2];d=0;while(1){h=(d<<4)+N|0;i=P(d,48)+k|0;o=J[i>>2];J[h>>2]=o;m=J[i+4>>2];J[h+4>>2]=m;D=P(d,1076)+j|0;G=J[D+4>>2];J[h+8>>2]=G;w=kd(1,G<<4);J[h+12>>2]= w;if(!w)break b;p=(C|0)<(G|0);c:{if((G|0)<=0)break c;h=m-1|0;R=((h+J[l+92>>2]|0)/(m|0)|0)-1|0;i=o-1|0;O=((i+J[l+88>>2]|0)/(o|0)|0)-1|0;S=((h+J[l+84>>2]|0)/(m|0)|0)-1|0;T=((i+J[l+80>>2]|0)/(o|0)|0)-1|0;h=0;if(!(H[D|0]&1))while(1){t=w+(h<<4)|0;J[t>>2]=15;J[t+4>>2]=15;u=G+(h^-1)|0;D=1<>u;i=D+S>>u;o=(i|0)!=(m|0)?(m-(i&-32768)|0)+32767>>15:0;J[t+12>>2]=o;m=D+O>>u;i=D+T>>u;i=(i|0)!=(m|0)?(m-(i&-32768)|0)+32767>>15:0;J[t+8>>2]=i;i=P(i,o);B=(i|0)>(B|0)?i:B;h=h+1|0;if((G|0)!=(h|0))continue;break c}while(1){A= -w+(h<<4)|0;i=D+(h<<2)|0;x=J[i+812>>2];J[A>>2]=x;u=J[i+944>>2];J[A+4>>2]=u;m=-1<>r;i=t+T>>r;o=(i|0)!=(o|0)?(m&(o+(1<>x:0;J[A+8>>2]=o;i=-1<>r;Z=i&(m+(1<>r;i=(i|0)!=(m|0)?Z-(x&i)>>u:0;J[A+12>>2]=i;i=P(i,o);B=(i|0)>(B|0)?i:B;h=h+1|0;if((G|0)!=(h|0))continue;break}}C=p?G:C;d=d+1|0;if((L|0)!=(d|0))continue;break}}J[q+12>>2]=B;J[q+16>>2]=1;d=P(B,z);J[q+8>>2]=d;J[q+4>>2]=P(d,C);d:{if(!W){d=bd(1,P(J[g>>2],P(z,P(B,C)))<<1);J[q>>2]=d;if(!d)break b; -break d}J[q>>2]=J[q-112>>2]}e:{if(!J[V+424>>2]){B=0;h=g;d=z;i=n;m=0;break e}m=V+(W<<5)|0;i=m+448|0;h=m+436|0;d=J[m+444>>2];C=J[m+440>>2];B=J[m+432>>2];m=J[m+428>>2]}h=J[h>>2];i=J[i>>2];J[q+40>>2]=m;J[q+36>>2]=1;J[q+60>>2]=i;J[q+56>>2]=d;J[q+52>>2]=C;J[q+48>>2]=h;J[q+44>>2]=B;d=(F|0)>(W|0);W=W+1|0;if(d)continue;break}}i=l;break a}CN(l,y,X);i=0}o=i;f:{if(!o)break f;T=P(X,1876);g:{if(J[(T+J[y+88>>2]|0)+420>>2]<0){CN(o,y,X);break g}Y=b+c|0;z=e;e=0;i=b;while(1){m=e;A=o+P(e,112)|0;h:{if(!W8(A))break h; +w+(h<<4)|0;i=D+(h<<2)|0;x=J[i+812>>2];J[A>>2]=x;u=J[i+944>>2];J[A+4>>2]=u;m=-1<>r;i=t+T>>r;o=(i|0)!=(o|0)?(m&(o+(1<>x:0;J[A+8>>2]=o;i=-1<>r;Z=i&(m+(1<>r;i=(i|0)!=(m|0)?Z-(x&i)>>u:0;J[A+12>>2]=i;i=P(i,o);B=(i|0)>(B|0)?i:B;h=h+1|0;if((G|0)!=(h|0))continue;break}}C=p?G:C;d=d+1|0;if((L|0)!=(d|0))continue;break}}J[q+12>>2]=B;J[q+16>>2]=1;d=P(B,z);J[q+8>>2]=d;J[q+4>>2]=P(d,C);d:{if(!W){d=kd(1,P(J[g>>2],P(z,P(B,C)))<<1);J[q>>2]=d;if(!d)break b; +break d}J[q>>2]=J[q-112>>2]}e:{if(!J[V+424>>2]){B=0;h=g;d=z;i=n;m=0;break e}m=V+(W<<5)|0;i=m+448|0;h=m+436|0;d=J[m+444>>2];C=J[m+440>>2];B=J[m+432>>2];m=J[m+428>>2]}h=J[h>>2];i=J[i>>2];J[q+40>>2]=m;J[q+36>>2]=1;J[q+60>>2]=i;J[q+56>>2]=d;J[q+52>>2]=C;J[q+48>>2]=h;J[q+44>>2]=B;d=(F|0)>(W|0);W=W+1|0;if(d)continue;break}}i=l;break a}WO(l,y,X);i=0}o=i;f:{if(!o)break f;T=P(X,1876);g:{if(J[(T+J[y+88>>2]|0)+420>>2]<0){WO(o,y,X);break g}Y=b+c|0;z=e;e=0;i=b;while(1){m=e;A=o+P(e,112)|0;h:{if(!Yaa(A))break h; while(1){u=J[A+32>>2];i:{j:{b=J[y+16>>2];if(b){f=0;if((b|0)<=(u|0))break j}p=J[A+20>>2];N=J[(J[z+20>>2]+(p<<5)|0)+20>>2];D=J[A+28>>2];L=J[A+24>>2];w=J[a+8>>2];l=J[y+88>>2];k:{if(u)break k;g=0;h=N+P(L,124)|0;n=J[h+24>>2];if((n|0)<=0)break k;while(1){b=h+(g<<5)|0;l:{if(J[b+36>>2]==J[b+28>>2]|J[b+40>>2]==J[b+32>>2])break l;E=J[b+48>>2]+P(D,36)|0;b=J[E+28>>2];m:{if(!b)break m;v=J[b+8>>2];if((v|0)<=0)break m;s=J[b+12>>2];b=0;e=0;if(v>>>0>=4){c=v&-4;d=0;while(1){k=e<<4;j=k+s|0;J[j+12>>2]=0;J[j+4>>2]=999; J[j+8>>2]=0;j=s+(k|16)|0;J[j+12>>2]=0;J[j+4>>2]=999;J[j+8>>2]=0;j=s+(k|32)|0;J[j+12>>2]=0;J[j+4>>2]=999;J[j+8>>2]=0;j=s+(k|48)|0;J[j+12>>2]=0;J[j+4>>2]=999;J[j+8>>2]=0;e=e+4|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}c=v&3;if(!c)break m;while(1){d=s+(e<<4)|0;J[d+12>>2]=0;J[d+4>>2]=999;J[d+8>>2]=0;e=e+1|0;b=b+1|0;if((c|0)!=(b|0))continue;break}}b=J[E+32>>2];n:{if(!b)break n;v=J[b+8>>2];if((v|0)<=0)break n;s=J[b+12>>2];b=0;e=0;if(v>>>0>=4){c=v&-4;d=0;while(1){k=e<<4;j=k+s|0;J[j+12>>2]=0;J[j+4>>2]=999; J[j+8>>2]=0;j=s+(k|16)|0;J[j+12>>2]=0;J[j+4>>2]=999;J[j+8>>2]=0;j=s+(k|32)|0;J[j+12>>2]=0;J[j+4>>2]=999;J[j+8>>2]=0;j=s+(k|48)|0;J[j+12>>2]=0;J[j+4>>2]=999;J[j+8>>2]=0;e=e+4|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}c=v&3;if(!c)break n;while(1){d=s+(e<<4)|0;J[d+12>>2]=0;J[d+4>>2]=999;J[d+8>>2]=0;e=e+1|0;b=b+1|0;if((c|0)!=(b|0))continue;break}}d=P(J[E+20>>2],J[E+16>>2]);if((d|0)<=0)break l;j=J[E+24>>2];f=0;e=0;if(d>>>0>=8){c=d&-8;b=0;while(1){J[(j+P(e,15448)|0)+36>>2]=0;J[(j+P(e|1,15448)|0)+36>>2]= @@ -6098,852 +6474,849 @@ f;g=g+1|0}d=c|d;e=e-1|0;c=f>>>e<<2&4;S:{if(e)break S;f=f<<8&65280;e=(f|0)==65280 J[R>>2]|0)+16>>2];J[j+40>>2]=0;J[j+44>>2]=0;J[j+52>>2]=b&4?1:b&1?10:109;h=j+40|0;break W}b=j+P(b,24)|0;h=b+16|0;e=J[h>>2];if((e|0)!=J[b+28>>2])break V;d=J[(S+J[R>>2]|0)+16>>2];h=b+40|0;J[h>>2]=0;J[h+4>>2]=0;l=1;X:{if(d&4)break X;l=109;if(!(d&1))break X;l=(e|0)==1?2:(e|0)==10?2:1}J[b+52>>2]=l}e=0}while(1){v=J[h+12>>2];b=v-e|0;l=(b|0)>(p|0)?p:b;J[h+16>>2]=l;b=0;d=0;e=l;if((e|0)>=2)while(1){d=d+1|0;j=e>>>0>3;e=e>>>1|0;if(j)continue;break}d=d+L|0;if((d|0)>0)while(1){e=d;Y:{if(c)break Y;f=f<<8&65280;c= (f|0)==65280?7:8;if(g>>>0>=k>>>0)break Y;f=K[g|0]|f;g=g+1|0}c=c-1|0;d=e-1|0;b=((f>>>c&1)<>>0>1)continue;break}J[h+20>>2]=b;p=p-l|0;if((p|0)<=0)break v;b=J[(S+J[R>>2]|0)+16>>2];J[h+24>>2]=0;J[h+28>>2]=0;d=1;Z:{if(b&4)break Z;d=109;if(!(b&1))break Z;d=(v|0)==1?2:(v|0)==10?2:1}J[h+36>>2]=d;e=0;h=h+24|0;continue}}F=F+1|0;if((F|0)<(P(J[x+20>>2],J[x+16>>2])|0))continue;break}}O=O+1|0;if((N|0)!=(O|0))continue;break}}if((f&255)==255){f=-999;if(g>>>0>=k>>>0)break j;g=g+1|0}if(!(!(U&4)|K[g|0]!= 255))g=((K[g+1|0]==146)<<1)+g|0;_:{$:{if(!E){e=w+84|0;f=J[w+64>>2]-g|0;b=w- -64|0;break $}if(J[r+1460>>2]!=1){n=g;break _}e=r+1468|0;f=J[r+1452>>2]-g|0;b=r+1452|0}J[e>>2]=J[e>>2]+f;J[b>>2]=g}c=J[I+24>>2];if((c|0)<=0)break q;l=i+s|0;p=0;while(1){b=I+(p<<5)|0;aa:{if(J[b+36>>2]==J[b+28>>2]|J[b+40>>2]==J[b+32>>2])break aa;j=J[b+48>>2]+P(D,36)|0;f=J[j+20>>2];d=J[j+16>>2];if((P(f,d)|0)<=0)break aa;C=0;while(1){k=J[j+24>>2]+P(C,15448)|0;c=J[k+36>>2];if((c|0)>=0){if(J[k+32>>2]){ba:{if(!c){J[k+36>>2]=1;J[k+ -24>>2]=0;e=k+40|0;break ba}b=k+P(c,24)|0;e=b+16|0;if(J[e>>2]!=J[b+28>>2])break ba;J[k+36>>2]=c+1;e=b+40|0}f=-999;h=J[e+20>>2];if(l>>>0>>0)break j;c=e+20|0;g=k+2440|0;b=J[k+24>>2];while(1){tc(b+g|0,n,h);b=J[k+24>>2];d=J[e>>2];if(!d)J[e+8>>2]=b+g;h=J[c>>2];b=h+b|0;J[k+24>>2]=b;J[e+4>>2]=h+J[e+4>>2];c=J[e+16>>2];J[e>>2]=c+d;c=J[k+32>>2]-c|0;J[k+32>>2]=c;n=h+n|0;if((c|0)>0){J[k+36>>2]=J[k+36>>2]+1;d=e;c=e+44|0;e=e+24|0;h=J[d+44>>2];if(l>>>0>=n+h>>>0)continue;break j}break}f=J[j+20>>2];d=J[j+16>> -2]}C=C+1|0;if((C|0)<(P(d,f)|0))continue}break}c=J[I+24>>2]}p=p+1|0;if((p|0)<(c|0))continue;break}break q}if(J[r+1460>>2]!=1){n=e;break q}f=r+1452|0;c=r+1468|0;b=J[r+1452>>2]-e|0}J[c>>2]=J[c>>2]+b;J[f>>2]=e}f=n-i|0;if((f|0)<=0)break j;b=J[M+24>>2]+P(J[A+20>>2],48)|0;c=J[b+36>>2];d=b;b=J[A+24>>2];J[d+36>>2]=(b|0)>(c|0)?b:c;break i}if((f|0)!=-999)break i;f=-999;break h}i=f+i|0;if(W8(A))continue;break}}e=m+1|0;if((m|0)>2]|0)+420>>2])continue;break}CN(o,y,X);if((f|0)==-999)break f}}bc=Q+128| -0}function Q0(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=bc-4368|0;bc=f;if(a){J[f+8>>2]=J[a+56>>2];J[f+12>>2]=J[a- -64>>2];o=0}else o=-102;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(J[f+8>>2]){while(1){g=f+272|0;j=Lw(a,f+192|0,g,4096);k:{if(j)break k;J[f+184>>2]=0;J[f+176>>2]=0;J[f+180>>2]=0;l:{m:{n:{o:{p:{if(K[f+201|0]&8){h=Qc(g);J[695492]=0;ca(1618,f+16|0,g|0,h|0);g=J[695492];J[695492]=0;if((g|0)!=1)break p;j=Z()|0;break a}J[695492]=0;da(3038, -f+16|0,f+272|0);g=J[695492];J[695492]=0;if((g|0)==1)break o}if(H[f+187|0]<0)qc(J[f+176>>2]);J[f+184>>2]=J[f+24>>2];g=J[f+20>>2];J[f+176>>2]=J[f+16>>2];J[f+180>>2]=g;J[f+160>>2]=0;H[f+171|0]=0;g=H[f+187|0];m=(g|0)<0;h=m?J[f+176>>2]:f+176|0;j=h+((m?J[f+180>>2]:g&255)<<2)|0;q:{r:{s:{t:{u:{while(1){if((h|0)==(j|0))break u;j=j-4|0;if(!og(754404,J[j>>2],1))continue;break}m=K[f+187|0];g=m<<24>>24;h=j-h|0;if((h|0)==-4)break t;i=((g|0)<0?J[f+180>>2]:m)-1|0;g=h>>2;if((i|0)==(g|0))break q;J[695492]=0;g=ma(2797, -f+148|0,f+176|0,g+1|0,-1,f+16|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break s;if(H[f+171|0]<0)qc(J[f+160>>2]);J[f+168>>2]=J[g+8>>2];h=J[g+4>>2];J[f+160>>2]=J[g>>2];J[f+164>>2]=h;break q}g=K[f+187|0]}if(H[f+171|0]>=0){if(g<<24>>24<0)break r;J[f+168>>2]=J[f+184>>2];g=J[f+180>>2];J[f+160>>2]=J[f+176>>2];J[f+164>>2]=g;break q}J[695492]=0;h=g<<24>>24<0;ga(1629,f+160|0,(h?J[f+176>>2]:f+176|0)|0,(h?J[f+180>>2]:g&255)|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1)break q;break c}j=Z()|0;break b}J[695492]=0;ga(1630, -f+160|0,J[f+176>>2],J[f+180>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break c}v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{h=Ve(b);G:{if(h>>>0>=1073741808){J[695492]=0;_(2793,f+120|0);a=J[695492];J[695492]=0;if((a|0)==1)break G;break d}if(h>>>0<=1){H[f+131|0]=h;g=f+120|0;break E}g=h|3;if(g>>>0<1073741823)break F;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break d}j=Z()|0;break b}J[695492]=0;m=g+1|0;g=$(4,m<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break D;J[f+120>>2]=g;J[f+124>>2]=h;J[f+128>>2]= -m|-2147483648}i=g;g=h<<2;t=tc(i,b,g)+g|0,u=0,J[t>>2]=u;J[695492]=0;g=aa(2860,f+120|0,754404)|0;h=J[695492];J[695492]=0;if((h|0)==1)break C;J[f+24>>2]=J[g+8>>2];h=J[g+4>>2];J[f+16>>2]=J[g>>2];J[f+20>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[695492]=0;g=K[f+187|0];h=g<<24>>24<0;g=ga(2794,f+16|0,(h?J[f+176>>2]:f+176|0)|0,(h?J[f+180>>2]:g)|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break B;J[f+144>>2]=J[g+8>>2];h=J[g+4>>2];J[f+136>>2]=J[g>>2];J[f+140>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;if(H[f+27|0]< -0)qc(J[f+16>>2]);if(H[f+131|0]<0)qc(J[f+120>>2]);H:{I:{h=Ve(b);J:{if(h>>>0>=1073741808){J[695492]=0;_(2793,f+104|0);break J}if(h>>>0<=1){H[f+115|0]=h;g=f+104|0;break H}g=h|3;if(g>>>0<1073741823)break I;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break d;j=Z()|0;break e}J[695492]=0;m=g+1|0;g=$(4,m<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break z;J[f+104>>2]=g;J[f+108>>2]=h;J[f+112>>2]=m|-2147483648}i=g;g=h<<2;t=tc(i,b,g)+g|0,u=0,J[t>>2]=u;J[695492]=0;g=aa(2860,f+104|0,754404)|0;h=J[695492]; -J[695492]=0;if((h|0)==1)break y;J[f+24>>2]=J[g+8>>2];h=J[g+4>>2];J[f+16>>2]=J[g>>2];J[f+20>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[695492]=0;g=K[f+171|0];h=g<<24>>24<0;g=ga(2794,f+16|0,(h?J[f+160>>2]:f+160|0)|0,(h?J[f+164>>2]:g)|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break x;J[f+128>>2]=J[g+8>>2];h=J[g+4>>2];J[f+120>>2]=J[g>>2];J[f+124>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;if(H[f+27|0]<0)qc(J[f+16>>2]);if(H[f+115|0]<0)qc(J[f+104>>2]);g=H[f+171|0];if((g|0)<0?J[f+164>>2]:g&255)break v;j=0;if(c)break l; -J[695492]=0;$(3039,f+136|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1)break l;j=Z()|0;break f}j=Z()|0;break b}j=Z()|0;break A}j=Z()|0;if(H[f+27|0]>=0)break A;qc(J[f+16>>2])}if(H[f+131|0]>=0)break b;qc(J[f+120>>2]);break b}j=Z()|0;break e}j=Z()|0;break w}j=Z()|0;if(H[f+27|0]>=0)break w;qc(J[f+16>>2])}if(H[f+115|0]>=0)break e;qc(J[f+104>>2]);break e}if(c)m=H[f+131|0]<0?J[f+120>>2]:f+120|0;else m=H[f+147|0]<0?J[f+136>>2]:f+136|0;J[695492]=0;j=aa(3040,a|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{g= -Ve(b);V:{if(g>>>0>=1073741808){J[695492]=0;_(2793,f+16|0);break V}if(g>>>0<=1){H[f+27|0]=g;h=f+16|0;break T}h=g|3;if(h>>>0<1073741823)break U;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break d;j=Z()|0;break f}J[695492]=0;i=h+1|0;h=$(4,i<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break S;J[f+16>>2]=h;J[f+20>>2]=g;J[f+24>>2]=i|-2147483648}g=g<<2;t=tc(h,b,g)+g|0,u=0,J[t>>2]=u;J[695492]=0;aa(2860,f+16|0,754404)|0;g=J[695492];J[695492]=0;if((g|0)==1)break R;W:{if(H[f+187|0]>=0){J[f+112>>2]= -J[f+184>>2];g=J[f+180>>2];J[f+104>>2]=J[f+176>>2];J[f+108>>2]=g;break W}J[695492]=0;ca(15,f+104|0,J[f+176>>2],J[f+180>>2]);g=J[695492];J[695492]=0;if((g|0)==1)break Q}g=H[f+115|0];h=(g|0)<0;i=H[f+27|0];k=(i|0)<0;X:{Y:{l=h?J[f+108>>2]:g&255;n=k?J[f+20>>2]:i&255;g=l+n|0;Z:{if(g>>>0>=1073741808){J[695492]=0;_(2793,f+80|0);break Z}if(g>>>0<=1){J[f+88>>2]=0;J[f+80>>2]=0;J[f+84>>2]=0;H[f+91|0]=g;i=f+80|0;break X}i=g|3;if(i>>>0<1073741823)break Y;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break d; -j=Z()|0;break M}J[695492]=0;p=i+1|0;i=$(4,p<<2)|0;s=J[695492];J[695492]=0;if((s|0)==1)break P;J[f+84>>2]=g;J[f+80>>2]=i;J[f+88>>2]=p|-2147483648}g=n<<2;i=Zc(i,k?J[f+16>>2]:f+16|0,g)+g|0;g=l<<2;t=Zc(i,h?J[f+104>>2]:f+104|0,g)+g|0,u=0,J[t>>2]=u;J[695492]=0;H[f+79|0]=0;ca(3041,f+92|0,f+80|0,f+79|0);g=J[695492];J[695492]=0;if((g|0)==1)break O;if(H[f+91|0]<0)qc(J[f+80>>2]);J[695492]=0;H[f+79|0]=0;p=f+80|0;ca(3041,p|0,f+16|0,f+79|0);g=J[695492];J[695492]=0;if((g|0)==1)break N;h=0;g=H[f+91|0];n=(g|0)<0; -l=n?J[f+84>>2]:g&255;if(l){g=K[f+103|0];h=g<<24>>24;i=(h|0)<0?J[f+92>>2]:f+92|0;g=(h|0)<0?J[f+96>>2]:g;k=i+(g<<2)|0;_:{$:{if((g|0)<(l|0))break $;n=n?J[f+80>>2]:p;p=J[n>>2];h=i;while(1){g=(g-l|0)+1|0;if(!g)break $;g=og(h,p,g);if(!g)break $;if(!gd(g,n,l))break _;h=g+4|0;g=k-h>>2;if((l|0)<=(g|0))continue;break}}g=k}h=(g|0)==(k|0)?-1:g-i>>2;g=K[f+91|0]}if(g<<24>>24<0)qc(J[f+80>>2]);if(H[f+103|0]<0)qc(J[f+92>>2]);if(H[f+115|0]<0)qc(J[f+104>>2]);if(H[f+27|0]<0)qc(J[f+16>>2]);if((h|0)!=-1)break K;j=-104; -break l}j=Z()|0;break f}j=Z()|0;break L}j=Z()|0;break L}j=Z()|0;break M}j=Z()|0;if(H[f+91|0]>=0)break M;qc(J[f+80>>2]);break M}j=Z()|0;if(H[f+103|0]>=0)break M;qc(J[f+92>>2])}if(H[f+115|0]>=0)break L;qc(J[f+104>>2])}if(H[f+27|0]>=0)break f;qc(J[f+16>>2]);break f}J[695492]=0;g=f+60|0;J[g+12>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g>>2]=413844;h=J[695492];J[695492]=0;aa:{ba:{ca:{da:{ea:{fa:{if((h|0)!=1){h=0;if(j)break aa;ga:{ha:{k=Ve(m);ia:{if(k>>>0>=1073741808){J[695492]=0;_(2793,f+16|0);break ia}if(k>>>0<= -1){H[f+27|0]=k;i=f+16|0;break ga}i=k|3;if(i>>>0<1073741823)break ha;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break d;j=Z()|0;ve(g);break f}J[695492]=0;l=i+1|0;i=$(4,l<<2)|0;n=J[695492];J[695492]=0;if((n|0)==1)break fa;J[f+16>>2]=i;J[f+20>>2]=k;J[f+24>>2]=l|-2147483648}l=i;i=k<<2;t=Zc(l,m,i)+i|0,u=0,J[t>>2]=u;J[695492]=0;i=aa(17,g|0,f+16|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break ea;if(H[f+27|0]<0)qc(J[f+16>>2]);if(!i)break ca;J[695492]=0;h=J[g+4>>2];i=J[695492];J[695492]=0;if((i| -0)!=1)break da;j=Z()|0;ve(g);break f}j=Z()|0;break f}j=Z()|0;ve(g);break f}j=Z()|0;if(H[f+27|0]>=0)break g;qc(J[f+16>>2]);ve(g);break f}if(c)break aa;if(!h)break ba;break aa}if(c)break aa}h=K[f+171|0];i=h<<24>>24;l=K[f+187|0];k=l<<24>>24;k=(k|0)<0;n=k?J[f+180>>2]:l;i=(i|0)<0;l=i?J[f+164>>2]:h;if((n|0)==(l|0)){h=0;if(!l)break aa;if(!gd(i?J[f+160>>2]:f+160|0,k?J[f+176>>2]:f+176|0,l))break aa}ja:{ka:{la:{ma:{na:{oa:{pa:{h=Ve(m);qa:{if(h>>>0>=1073741808){J[695492]=0;_(2793,f+104|0);break qa}if(h>>>0<= -1){H[f+115|0]=h;i=f+104|0;break oa}i=h|3;if(i>>>0<1073741823)break pa;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break d;j=Z()|0;ve(g);break f}J[695492]=0;k=i+1|0;i=$(4,k<<2)|0;l=J[695492];J[695492]=0;if((l|0)==1)break na;J[f+104>>2]=i;J[f+108>>2]=h;J[f+112>>2]=k|-2147483648}h=h<<2;t=Zc(i,m,h)+h|0,u=0,J[t>>2]=u;J[695492]=0;da(3042,f+16|0,f+104|0);h=J[695492];J[695492]=0;if((h|0)==1)break ma;if(H[f+115|0]<0)qc(J[f+104>>2]);J[695492]=0;$(3043,f+16|0)|0;h=J[695492];J[695492]=0;if((h|0)!= -1){ra:{sa:{h=Ve(m);ta:{if(h>>>0>=1073741808){J[695492]=0;_(2793,f+104|0);break ta}if(h>>>0<=1){H[f+115|0]=h;i=f+104|0;break ra}i=h|3;if(i>>>0<1073741823)break sa;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break d;j=Z()|0;break h}J[695492]=0;k=i+1|0;i=$(4,k<<2)|0;l=J[695492];J[695492]=0;if((l|0)==1)break la;J[f+104>>2]=i;J[f+108>>2]=h;J[f+112>>2]=k|-2147483648}h=h<<2;t=Zc(i,m,h)+h|0,u=0,J[t>>2]=u;J[695492]=0;i=aa(17,g|0,f+104|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ka;if(H[f+115| -0]<0)qc(J[f+104>>2]);h=0;if(!i)break ja;J[695492]=0;h=J[g+4>>2];i=J[695492];J[695492]=0;if((i|0)!=1)break ja}j=Z()|0;break h}j=Z()|0;ve(g);break f}j=Z()|0;if(H[f+115|0]>=0)break g;qc(J[f+104>>2]);ve(g);break f}j=Z()|0;break h}j=Z()|0;if(H[f+115|0]>=0)break h;qc(J[f+104>>2]);break h}if(H[f+27|0]>=0)break aa;qc(J[f+16>>2])}k=zc(8192);if(!k){ve(g);j=-104;break l}ua:{va:{if(h){wa:{while(1){J[695492]=0;j=ga(3044,a|0,k|0,8192)|0;i=J[695492];J[695492]=0;if((i|0)==1)break ua;if((j|0)<0)break n;if(!j)break wa; -if((Td(k,j,1,h)|0)==1)continue;break}j=-1;break n}J[695492]=0;_(21,g|0);h=J[695492];J[695492]=0;if((h|0)==1)break i;J[f+40>>2]=0;J[f+44>>2]=0;J[f+56>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;h=J[f+252>>2];J[f+16>>2]=J[f+248>>2];J[f+20>>2]=h;h=J[f+260>>2];J[f+24>>2]=J[f+256>>2];J[f+28>>2]=h;J[f+36>>2]=J[f+268>>2];J[f+32>>2]=J[f+264>>2]+1;xa:{ya:{za:{Aa:{h=Ve(m);Ba:{if(h>>>0>=1073741808){J[695492]=0;_(2793,f+104|0);break Ba}if(h>>>0<=1){H[f+115|0]=h;i=f+104|0;break za}i=h|3;if(i>>>0<1073741823)break Aa;J[695492]= -0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break d;j=Z()|0;ve(g);break f}J[695492]=0;j=i+1|0;i=$(4,j<<2)|0;l=J[695492];J[695492]=0;if((l|0)==1)break ya;J[f+104>>2]=i;J[f+108>>2]=h;J[f+112>>2]=j|-2147483648}h=h<<2;t=Zc(i,m,h)+h|0,u=0,J[t>>2]=u;J[695492]=0;ga(3045,f+104|0,f+16|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break xa;if(H[f+115|0]>=0)break va;qc(J[f+104>>2]);break va}j=Z()|0;ve(g);break f}j=Z()|0;if(H[f+115|0]>=0)break g;qc(J[f+104>>2]);ve(g);break f}if(j)break n}J[695492]=0;j=$(3046, -a|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break m;break i}j=Z()|0;break g}j=Z()|0;break f}j=Z()|0;break a}J[695492]=0;$(3046,a|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break i}qc(k);ve(g)}if(H[f+131|0]<0)qc(J[f+120>>2]);if(H[f+147|0]<0)qc(J[f+136>>2]);if(H[f+171|0]<0)qc(J[f+160>>2]);if(H[f+187|0]>=0)break k;qc(J[f+176>>2])}if(e){I[f+272>>1]=0;gc[J[e>>2]](0,P(1E6/M[f+8>>2]|0,q),f+272|0);if(L[f+272>>1])break j}r=!j+r|0;q=q+1|0;g=J[f+8>>2];Ca:{if(q>>>0>>0){o=iK(a);if(o)break Ca;o=0;g=J[f+8>>2]}if(g>>> -0>q>>>0)continue}break}o=r?o:-1}else o=-1;if(!e)break j;I[f+272>>1]=0;gc[J[e>>2]](0,1E6,f+272|0)}bc=f+4368|0;return o|0}j=Z()|0;ve(g);break f}if(H[f+27|0]>=0)break g;qc(J[f+16>>2]);ve(g);break f}ve(g)}if(H[f+131|0]>=0)break e;qc(J[f+120>>2])}if(H[f+147|0]>=0)break b;qc(J[f+136>>2]);break b}B()}j=Z()|0}if(H[f+171|0]>=0)break a;qc(J[f+160>>2])}if(H[f+187|0]<0)qc(J[f+176>>2]);ba(j|0);B()}function Rva(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;d=bc-160|0;bc=d;J[d+156>>2]=c;k= -a+40|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:switch(b-254|0){default:switch(b-32995|0){case 2:break r;case 1:break t;case 3:break u;case 0:break x;default:break j}case 0:J[d+156>>2]=c+4;J[a+80>>2]=J[c>>2];e=1;break i;case 2:J[d+156>>2]=c+4;J[a+56>>2]=J[c>>2];e=1;break i;case 3:J[d+156>>2]=c+4;J[a+60>>2]=J[c>>2];e=1;break i;case 4:J[d+156>>2]=c+4;c=J[c>>2];I[a+84>>1]=c;e=1;if(!(K[a+12|0]&128))break i;z:{A:{B:{C:{D:{c=c&65535;switch(c-16|0){case 16:break A;case 8:break B; -case 0:break C;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break i;default:break D}}if((c|0)==64)break z;if((c|0)!=128)break i;J[a+652>>2]=516;break i}J[a+652>>2]=517;break i}J[a+652>>2]=518;break i}J[a+652>>2]=519;break i}J[a+652>>2]=516;break i;case 5:J[d+156>>2]=c+4;c=L[c>>1];if(K[k|0]&128){e=1;if((c|0)==L[a+88>>1])break i;gc[J[a+572>>2]](a);J[a+12>>2]=J[a+12>>2]&-33}f=2729248;while(1){E:{f=J[f>>2];if(!f){e=0;if(!J[656756])break E;f=2627024; -while(1){if((c|0)==L[f+4>>1]){e=f;break E}h=J[f+12>>2];f=f+12|0;if(h)continue;break}break E}e=J[f+4>>2];if((c|0)!=L[e+4>>1])continue}break}J[a+556>>2]=559;J[a+548>>2]=560;J[a+540>>2]=561;J[a+520>>2]=562;J[a+516>>2]=563;J[a+512>>2]=1;J[a+528>>2]=1;J[a+580>>2]=564;J[a+576>>2]=565;J[a+572>>2]=566;J[a+568>>2]=567;J[a+564>>2]=566;J[a+560>>2]=568;J[a+552>>2]=569;J[a+544>>2]=570;J[a+536>>2]=563;J[a+532>>2]=562;J[a+524>>2]=563;J[a+12>>2]=J[a+12>>2]&-131329;if(e)e=gc[J[e+8>>2]](a,c)|0;else e=1;if(!e)break c; -I[a+88>>1]=c;break i;case 8:J[d+156>>2]=c+4;I[a+90>>1]=J[c>>2];e=1;break i;case 9:J[d+156>>2]=c+4;I[a+92>>1]=J[c>>2];e=1;break i;case 12:J[d+156>>2]=c+4;g=J[c>>2];if(g-3>>>0<4294967294)break b;I[a+94>>1]=g;e=1;break i;case 20:J[d+156>>2]=c+4;g=J[c>>2];if(g-9>>>0<4294967288)break b;I[a+96>>1]=g;e=1;break i;case 23:J[d+156>>2]=c+4;c=J[c>>2];if(!c)break b;I[a+98>>1]=c;e=1;break i;case 24:J[d+156>>2]=c+4;c=J[c>>2];if(!c)break e;J[a+100>>2]=c;e=1;if(K[a+40|0]&4)break i;J[a+72>>2]=c;J[a+68>>2]=J[a+56>> -2];break i;case 26:J[d+156>>2]=c+4;I[a+104>>1]=J[c>>2];e=1;break i;case 27:J[d+156>>2]=c+4;I[a+106>>1]=J[c>>2];e=1;break i;case 86:c=c+7&-8;J[d+156>>2]=c+8;O[a+112>>3]=O[c>>3];e=1;break i;case 87:c=c+7&-8;J[d+156>>2]=c+8;O[a+120>>3]=O[c>>3];e=1;break i;case 28:c=c+7&-8;J[d+156>>2]=c+8;N[a+128>>2]=O[c>>3];e=1;break i;case 29:c=c+7&-8;J[d+156>>2]=c+8;N[a+132>>2]=O[c>>3];e=1;break i;case 30:J[d+156>>2]=c+4;g=J[c>>2];if(g-3>>>0<4294967294)break b;I[a+138>>1]=g;e=1;break i;case 32:c=c+7&-8;J[d+156>>2]= -c+8;N[a+140>>2]=O[c>>3];e=1;break i;case 33:c=c+7&-8;J[d+156>>2]=c+8;N[a+144>>2]=O[c>>3];e=1;break i;case 42:J[d+156>>2]=c+4;g=J[c>>2];if(g-4>>>0<4294967293)break b;I[a+136>>1]=g;e=1;break i;case 43:I[a+148>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+150>>1]=J[c+4>>2];e=1;break i;case 67:I[a+164>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+166>>1]=J[c+4>>2];e=1;break i;case 66:f=L[a+84>>1];J[d+156>>2]=c+4;e=J[c>>2];h=J[a+152>>2];if(h){qc(h);J[a+152>>2]=0}F:{if(!e|(f|0)==31)break F;g=2<>2]=h;if(!h)break F; -Ne(h,e,g)}e=J[c+4>>2];h=J[a+156>>2];if(h){qc(h);J[a+156>>2]=0}G:{if(!e|(f|0)==31)break G;g=2<>2]=h;if(!h)break G;Ne(h,e,g)}J[d+156>>2]=c+12;c=J[c+8>>2];e=J[a+160>>2];if(e){qc(e);J[a+160>>2]=0}e=1;if(!c|(f|0)==31)break i;h=2<>2]=f;if(!f)break i;Ne(f,c,h);break i;case 1:case 6:case 7:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 22:case 25:case 31:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 80:case 81:case 82:case 83:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 217:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 240:case 241:case 242:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:case 275:break j; -case 79:break k;case 278:break l;case 47:break n;case 276:break o;case 277:break p;case 76:break q;case 85:break s;case 69:break v;case 68:break w;case 84:break y}g=J[c>>2];h=g&65535;if(h>>>0>L[a+98>>1])break b;f=J[c+4>>2];if(f?0:g)break b;if(g){c=0;while(1){j=f+(c<<1)|0;i=L[j>>1];if(i>>>0>=3){if((i|0)!=999)break b;I[j>>1]=2}c=c+1|0;if((g|0)!=(c|0))continue;break}}I[a+168>>1]=g;c=J[a+172>>2];if(c){qc(c);J[a+172>>2]=0}if(!f)break m;e=1;h=h<<1;c=zc(h);J[a+172>>2]=c;if(!c)break i;Ne(c,f,h);break i}J[d+ -156>>2]=c+4;c=J[c>>2];I[a+168>>1]=(c|0)!=0;if(!c)break m;e=1;I[d+144>>1]=1;c=d+144|0;f=J[a+172>>2];if(f){qc(f);J[a+172>>2]=0}H:{if(!c)break H;f=zc(2);J[a+172>>2]=f;if(!f)break H;Ne(f,c,2)}break i}J[d+156>>2]=c+4;c=J[c>>2];if(c&15){if(J[a+8>>2])break d;e=J[a>>2];f=J[a+628>>2];J[d+80>>2]=c;ae(f,e,74226,d+80|0)}J[a+68>>2]=c;J[a+12>>2]=J[a+12>>2]|1024;e=1;break i}J[d+156>>2]=c+4;c=J[c>>2];if(c&15){if(J[a+8>>2])break d;e=J[a>>2];f=J[a+628>>2];J[d+96>>2]=c;ae(f,e,74554,d+96|0)}J[a+72>>2]=c;J[a+12>>2]=J[a+ +24>>2]=0;e=k+40|0;break ba}b=k+P(c,24)|0;e=b+16|0;if(J[e>>2]!=J[b+28>>2])break ba;J[k+36>>2]=c+1;e=b+40|0}f=-999;h=J[e+20>>2];if(l>>>0>>0)break j;c=e+20|0;g=k+2440|0;b=J[k+24>>2];while(1){xc(b+g|0,n,h);b=J[k+24>>2];d=J[e>>2];if(!d)J[e+8>>2]=b+g;h=J[c>>2];b=h+b|0;J[k+24>>2]=b;J[e+4>>2]=h+J[e+4>>2];c=J[e+16>>2];J[e>>2]=c+d;c=J[k+32>>2]-c|0;J[k+32>>2]=c;n=h+n|0;if((c|0)>0){J[k+36>>2]=J[k+36>>2]+1;d=e;c=e+44|0;e=e+24|0;h=J[d+44>>2];if(l>>>0>=n+h>>>0)continue;break j}break}f=J[j+20>>2];d=J[j+16>> +2]}C=C+1|0;if((C|0)<(P(d,f)|0))continue}break}c=J[I+24>>2]}p=p+1|0;if((p|0)<(c|0))continue;break}break q}if(J[r+1460>>2]!=1){n=e;break q}f=r+1452|0;c=r+1468|0;b=J[r+1452>>2]-e|0}J[c>>2]=J[c>>2]+b;J[f>>2]=e}f=n-i|0;if((f|0)<=0)break j;b=J[M+24>>2]+P(J[A+20>>2],48)|0;c=J[b+36>>2];d=b;b=J[A+24>>2];J[d+36>>2]=(b|0)>(c|0)?b:c;break i}if((f|0)!=-999)break i;f=-999;break h}i=f+i|0;if(Yaa(A))continue;break}}e=m+1|0;if((m|0)>2]|0)+420>>2])continue;break}WO(o,y,X);if((f|0)==-999)break f}}fc=Q+ +128|0}function GAa(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;d=fc-160|0;fc=d;J[d+156>>2]=c;k=a+40|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:switch(b-254|0){default:switch(b-32995|0){case 2:break r;case 1:break t;case 3:break u;case 0:break x;default:break j}case 0:J[d+156>>2]=c+4;J[a+80>>2]=J[c>>2];e=1;break i;case 2:J[d+156>>2]=c+4;J[a+56>>2]=J[c>>2];e=1;break i;case 3:J[d+156>>2]=c+4;J[a+60>>2]=J[c>>2];e=1;break i;case 4:J[d+156>>2]=c+ +4;c=J[c>>2];I[a+84>>1]=c;e=1;if(!(K[a+12|0]&128))break i;z:{A:{B:{C:{D:{c=c&65535;switch(c-16|0){case 16:break A;case 8:break B;case 0:break C;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break i;default:break D}}if((c|0)==64)break z;if((c|0)!=128)break i;J[a+652>>2]=516;break i}J[a+652>>2]=517;break i}J[a+652>>2]=518;break i}J[a+652>>2]=519;break i}J[a+652>>2]=516;break i;case 5:J[d+156>>2]=c+4;c=L[c>>1];if(K[k|0]&128){e=1;if((c|0)==L[a+ +88>>1])break i;kc[J[a+572>>2]](a);J[a+12>>2]=J[a+12>>2]&-33}f=2744240;while(1){E:{f=J[f>>2];if(!f){e=0;if(!J[660504])break E;f=2642016;while(1){if((c|0)==L[f+4>>1]){e=f;break E}h=J[f+12>>2];f=f+12|0;if(h)continue;break}break E}e=J[f+4>>2];if((c|0)!=L[e+4>>1])continue}break}J[a+556>>2]=559;J[a+548>>2]=560;J[a+540>>2]=561;J[a+520>>2]=562;J[a+516>>2]=563;J[a+512>>2]=1;J[a+528>>2]=1;J[a+580>>2]=564;J[a+576>>2]=565;J[a+572>>2]=566;J[a+568>>2]=567;J[a+564>>2]=566;J[a+560>>2]=568;J[a+552>>2]=569;J[a+544>> +2]=570;J[a+536>>2]=563;J[a+532>>2]=562;J[a+524>>2]=563;J[a+12>>2]=J[a+12>>2]&-131329;if(e)e=kc[J[e+8>>2]](a,c)|0;else e=1;if(!e)break c;I[a+88>>1]=c;break i;case 8:J[d+156>>2]=c+4;I[a+90>>1]=J[c>>2];e=1;break i;case 9:J[d+156>>2]=c+4;I[a+92>>1]=J[c>>2];e=1;break i;case 12:J[d+156>>2]=c+4;g=J[c>>2];if(g-3>>>0<4294967294)break b;I[a+94>>1]=g;e=1;break i;case 20:J[d+156>>2]=c+4;g=J[c>>2];if(g-9>>>0<4294967288)break b;I[a+96>>1]=g;e=1;break i;case 23:J[d+156>>2]=c+4;c=J[c>>2];if(!c)break b;I[a+98>>1]= +c;e=1;break i;case 24:J[d+156>>2]=c+4;c=J[c>>2];if(!c)break e;J[a+100>>2]=c;e=1;if(K[a+40|0]&4)break i;J[a+72>>2]=c;J[a+68>>2]=J[a+56>>2];break i;case 26:J[d+156>>2]=c+4;I[a+104>>1]=J[c>>2];e=1;break i;case 27:J[d+156>>2]=c+4;I[a+106>>1]=J[c>>2];e=1;break i;case 86:c=c+7&-8;J[d+156>>2]=c+8;O[a+112>>3]=O[c>>3];e=1;break i;case 87:c=c+7&-8;J[d+156>>2]=c+8;O[a+120>>3]=O[c>>3];e=1;break i;case 28:c=c+7&-8;J[d+156>>2]=c+8;N[a+128>>2]=O[c>>3];e=1;break i;case 29:c=c+7&-8;J[d+156>>2]=c+8;N[a+132>>2]=O[c>> +3];e=1;break i;case 30:J[d+156>>2]=c+4;g=J[c>>2];if(g-3>>>0<4294967294)break b;I[a+138>>1]=g;e=1;break i;case 32:c=c+7&-8;J[d+156>>2]=c+8;N[a+140>>2]=O[c>>3];e=1;break i;case 33:c=c+7&-8;J[d+156>>2]=c+8;N[a+144>>2]=O[c>>3];e=1;break i;case 42:J[d+156>>2]=c+4;g=J[c>>2];if(g-4>>>0<4294967293)break b;I[a+136>>1]=g;e=1;break i;case 43:I[a+148>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+150>>1]=J[c+4>>2];e=1;break i;case 67:I[a+164>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+166>>1]=J[c+4>>2];e=1;break i;case 66:f=L[a+84>>1]; +J[d+156>>2]=c+4;e=J[c>>2];h=J[a+152>>2];if(h){uc(h);J[a+152>>2]=0}F:{if(!e|(f|0)==31)break F;g=2<>2]=h;if(!h)break F;Ue(h,e,g)}e=J[c+4>>2];h=J[a+156>>2];if(h){uc(h);J[a+156>>2]=0}G:{if(!e|(f|0)==31)break G;g=2<>2]=h;if(!h)break G;Ue(h,e,g)}J[d+156>>2]=c+12;c=J[c+8>>2];e=J[a+160>>2];if(e){uc(e);J[a+160>>2]=0}e=1;if(!c|(f|0)==31)break i;h=2<>2]=f;if(!f)break i;Ue(f,c,h);break i;case 1:case 6:case 7:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 22:case 25:case 31:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 80:case 81:case 82:case 83:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 217:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 240:case 241:case 242:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:case 275:break j; +case 79:break k;case 278:break l;case 47:break n;case 276:break o;case 277:break p;case 76:break q;case 85:break s;case 69:break v;case 68:break w;case 84:break y}g=J[c>>2];h=g&65535;if(h>>>0>L[a+98>>1])break b;f=J[c+4>>2];if(f?0:g)break b;if(g){c=0;while(1){j=f+(c<<1)|0;i=L[j>>1];if(i>>>0>=3){if((i|0)!=999)break b;I[j>>1]=2}c=c+1|0;if((g|0)!=(c|0))continue;break}}I[a+168>>1]=g;c=J[a+172>>2];if(c){uc(c);J[a+172>>2]=0}if(!f)break m;e=1;h=h<<1;c=Dc(h);J[a+172>>2]=c;if(!c)break i;Ue(c,f,h);break i}J[d+ +156>>2]=c+4;c=J[c>>2];I[a+168>>1]=(c|0)!=0;if(!c)break m;e=1;I[d+144>>1]=1;c=d+144|0;f=J[a+172>>2];if(f){uc(f);J[a+172>>2]=0}H:{if(!c)break H;f=Dc(2);J[a+172>>2]=f;if(!f)break H;Ue(f,c,2)}break i}J[d+156>>2]=c+4;c=J[c>>2];if(c&15){if(J[a+8>>2])break d;e=J[a>>2];f=J[a+628>>2];J[d+80>>2]=c;le(f,e,74242,d+80|0)}J[a+68>>2]=c;J[a+12>>2]=J[a+12>>2]|1024;e=1;break i}J[d+156>>2]=c+4;c=J[c>>2];if(c&15){if(J[a+8>>2])break d;e=J[a>>2];f=J[a+628>>2];J[d+96>>2]=c;le(f,e,74570,d+96|0)}J[a+72>>2]=c;J[a+12>>2]=J[a+ 12>>2]|1024;e=1;break i}J[d+156>>2]=c+4;c=J[c>>2];if(!c)break e;J[a+76>>2]=c;e=1;break i}J[d+156>>2]=c+4;g=J[c>>2];if(g>>>0>3)break b;e=g<<4;c=e&31;if((e&63)>>>0>=32)c=196609>>>c|0;else c=((1<>>c;I[a+86>>1]=c;e=1;break i}J[d+156>>2]=c+4;g=J[c>>2];if(g-7>>>0<4294967290)break b;I[a+86>>1]=g;I:{if((g|0)==5){if(L[a+84>>1]!=32|J[a+652>>2]!=519)break I;J[a+652>>2]=517;e=1;break i}e=1;if((g-5&65535)>>>0>1)break i}e=1;if(L[a+84>>1]!=64|J[a+652>>2]!=516)break i;J[a+652>>2]=519;break i}J[d+ -156>>2]=c+4;J[a- -64>>2]=J[c>>2];e=1;break i}if(!(K[a+13|0]&32)){e=J[c>>2];I[a+196>>1]=e;J[d+156>>2]=c+8;c=J[c+4>>2];e=e&65535;f=J[a+200>>2];if(f){qc(f);J[a+200>>2]=0}J:{if(!c)break J;f=e<<2;e=zc(f);J[a+200>>2]=e;if(!e)break J;Ne(e,c,f)}e=1;break i}b=J[a+628>>2];J[d+112>>2]=J[a>>2];Nc(b,74019,74875,d+112|0);break a}J[d+156>>2]=c+4;I[a+208>>1]=J[c>>2];e=1;break i}I[a+204>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+206>>1]=J[c+4>>2];e=1;break i}j=(L[a+98>>1]-L[a+168>>1]|0)<2;while(1){f=L[a+84>>1];h=J[c>>2];g=(e<< -2)+a|0;i=J[g+216>>2];if(i){qc(i);J[g+216>>2]=0}K:{if(!h|(f|0)==31)break K;i=g;g=2<>2]=f;if(!f)break K;Ne(f,h,g)}c=c+4|0;if(!j){f=e>>>0<2;e=e+1|0;if(f)continue}break}J[d+156>>2]=c}e=1;break i}J[d+156>>2]=c+4;c=J[c>>2];e=J[a+212>>2];if(e){qc(e);J[a+212>>2]=0}e=1;if(!c)break i;f=zc(24);J[a+212>>2]=f;if(!f)break i;Ne(f,c,24);break i}f=J[c>>2];J[d+156>>2]=c+8;h=L[a+98>>1];g=h;if(!f)break h;if(!g)break a;i=f;f=J[c+4>>2];j=i+f|0;c=f;while(1){if(K[c|0])while(1){if(c>>>0>=j>>>0)break h; -i=K[c+1|0];c=c+1|0;if(i)continue;break}c=c+1|0;g=g-1|0;if(g&65535)continue;break}if((c|0)==(f|0))break a;c=c-f|0;eU(a+232|0,f,c);J[a+228>>2]=c;e=1;break i}j=ts(a,b);if(!j){c=b>>>0>65535?72794:73422;b=76002;break f}if(L[j+12>>1]!=65)break g;c=0;f=J[a+240>>2];h=J[a+236>>2];L:{if((h|0)>0)while(1){g=f+P(c,12)|0;if(J[J[g>>2]>>2]==(b|0)){c=J[g+8>>2];if(!c)break L;qc(c);J[g+8>>2]=0;break L}c=c+1|0;if((h|0)!=(c|0))continue;break}c=h+1|0;J[a+236>>2]=c;c=Kh(f,P(c,12));if(!c){b=J[a+628>>2];J[d+32>>2]=J[a>>2]; -Nc(b,74019,76471,d+32|0);break a}J[a+240>>2]=c;g=(c+P(J[a+236>>2],12)|0)-12|0;J[g>>2]=j;J[g+4>>2]=0;J[g+8>>2]=0}c=J[j+8>>2]-1|0;if(c>>>0<=12)h=J[(c<<2)+91588>>2];else h=0;if(!h){b=J[a+628>>2];a=J[a>>2];c=J[j+8>>2];J[d+24>>2]=J[j+16>>2];J[d+20>>2]=c;J[d+16>>2]=a;Nc(b,74019,77415,d+16|0);break a}M:{if(K[j+15|0]){c=J[d+156>>2];J[d+156>>2]=c+4;c=J[c>>2];break M}c=1;N:{O:{e=I[j+6>>1];switch((e&65535)-65533|0){case 1:break O;case 0:case 2:break M;default:break N}}c=L[a+98>>1];break M}c=e}J[g+4>>2]=c;if(J[j+ -8>>2]==2){c=J[d+156>>2];J[d+156>>2]=c+4;nv(g+8|0,J[c>>2]);e=1;break i}c=Sg(a,h,c,77865);J[g+8>>2]=c;if(!c)break c;P:{if(!(K[j+15|0]|L[j+6>>1]>65532)){f=J[g+4>>2];if((f|0)<2)break P}Q:{R:{S:{e=J[j>>2];switch(e-321|0){case 0:case 15:break Q;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break R;default:break S}}if((e|0)==297|(e|0)==530)break Q}e=J[d+156>>2];J[d+156>>2]=e+4;Ne(c,J[e>>2],P(h,J[g+4>>2]));e=1;break i}f=J[g+4>>2]}e=1;if((f|0)<=0)break i; -f=0;while(1){T:{U:switch(J[j+8>>2]-1|0){case 0:case 6:i=J[d+156>>2];J[d+156>>2]=i+4;H[d+144|0]=J[i>>2];Ne(c,d+144|0,h);break T;case 5:i=J[d+156>>2];J[d+156>>2]=i+4;H[d+144|0]=J[i>>2];Ne(c,d+144|0,h);break T;case 2:i=J[d+156>>2];J[d+156>>2]=i+4;I[d+144>>1]=J[i>>2];Ne(c,d+144|0,h);break T;case 7:i=J[d+156>>2];J[d+156>>2]=i+4;I[d+144>>1]=J[i>>2];Ne(c,d+144|0,h);break T;case 3:case 12:i=J[d+156>>2];J[d+156>>2]=i+4;J[d+144>>2]=J[i>>2];Ne(c,d+144|0,h);break T;case 8:i=J[d+156>>2];J[d+156>>2]=i+4;J[d+144>> -2]=J[i>>2];Ne(c,d+144|0,h);break T;case 4:case 9:case 10:i=J[d+156>>2]+7&-8;J[d+156>>2]=i+8;N[d+144>>2]=O[i>>3];Ne(c,d+144|0,h);break T;case 11:i=J[d+156>>2]+7&-8;J[d+156>>2]=i+8;O[d+144>>3]=O[i>>3];Ne(c,d+144|0,h);break T;default:break U}e=0;Hg(c,0,h)}c=c+h|0;f=f+1|0;if((f|0)>2])continue;break}if(!e)break c}c=L[Lf(a,b)+12>>1];b=(L[Lf(a,b)+12>>1]>>>3&8188)+k|0;J[b>>2]=J[b>>2]|1<>2]=J[a+12>>2]|8;break a}b=J[a+628>>2];J[d+128>>2]=J[a>>2];J[d+132>>2]=h;J[d+136>>2]=h-(g&65535);Nc(b,71717, -79207,d+128|0);break a}c=b>>>0>65535?72794:73422;b=J[j+16>>2]}f=J[a+628>>2];a=J[a>>2];J[d+8>>2]=b;J[d+4>>2]=c;J[d>>2]=a;Nc(f,74019,75716,d);break a}c=0}e=J[a+628>>2];f=J[a>>2];l=d,m=J[Lf(a,b)+16>>2],J[l+72>>2]=m;J[d+68>>2]=c;J[d+64>>2]=f;Nc(e,74019,78723,d- -64|0)}e=0;break a}c=J[a+628>>2];f=J[a>>2];l=d,m=J[Lf(a,b)+16>>2],J[l+56>>2]=m;J[d+52>>2]=g;J[d+48>>2]=f;Nc(c,74019,78399,d+48|0)}bc=d+160|0;return e|0}function cH(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;e=bc-16|0;bc=e;a:{b:while(1){j=b-12|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;k=(a|0)/12|0;switch(k|0){case 5:break j;case 3:break k;case 2:break l;case 0:case 1:break e;case 4:break h;default:break i}}a=b-12|0;if(!(gc[J[c>>2]](a,f)|0))break e;J[e+8>>2]=J[f+8>>2];b=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=b;J[f+8>>2]=J[a+8>>2];b=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=b;J[a+8>>2]=J[e+8>>2];b=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=b;break e}a=f+12|0;h=gc[J[c>>2]](a,f)|0;b=b-12|0;d=gc[J[c>> -2]](b,a)|0;if(!h){if(!d)break e;J[e+8>>2]=J[a+8>>2];d=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=d;J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;J[b+8>>2]=J[e+8>>2];d=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=d;if(!(gc[J[c>>2]](a,f)|0))break e;J[e+8>>2]=J[f+8>>2];b=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=b;J[f+8>>2]=J[a+8>>2];b=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=b;J[a+8>>2]=J[e+8>>2];b=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=b;break e}if(d){J[e+8>>2]=J[f+8>>2];a=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=a;J[f+ -8>>2]=J[b+8>>2];a=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=a;J[b+8>>2]=J[e+8>>2];a=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=a;break e}J[e+8>>2]=J[f+8>>2];d=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=d;J[f+8>>2]=J[a+8>>2];d=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=d;J[a+8>>2]=J[e+8>>2];d=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=d;if(!(gc[J[c>>2]](b,a)|0))break e;J[e+8>>2]=J[a+8>>2];c=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[e+8>>2];a=J[e+4>>2];J[b>>2]=J[e>> -2];J[b+4>>2]=a;break e}a=f+12|0;d=f+24|0;h=f+36|0;zv(f,a,d,h,c);b=b-12|0;if(!(gc[J[c>>2]](b,h)|0))break e;J[e+8>>2]=J[h+8>>2];g=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=g;J[h+8>>2]=J[b+8>>2];g=J[b+4>>2];J[h>>2]=J[b>>2];J[h+4>>2]=g;J[b+8>>2]=J[e+8>>2];g=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=g;if(!(gc[J[c>>2]](h,d)|0))break e;J[e+8>>2]=J[d+8>>2];b=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=b;J[d+8>>2]=J[h+8>>2];b=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=b;J[h+8>>2]=J[e+8>>2];b=J[e+4>>2];J[h>>2]=J[e>>2];J[h+4>>2]=b;if(!(gc[J[c>> -2]](d,a)|0))break e;J[e+8>>2]=J[a+8>>2];b=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=b;J[a+8>>2]=J[d+8>>2];b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[d+8>>2]=J[e+8>>2];b=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=b;if(!(gc[J[c>>2]](a,f)|0))break e;J[e+8>>2]=J[f+8>>2];b=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=b;J[f+8>>2]=J[a+8>>2];b=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=b;J[a+8>>2]=J[e+8>>2];b=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=b;break e}if((a|0)<=83){j=b;g=bc-16|0;bc=g;h=c;a=f+12|0;i=gc[J[c>>2]](a,f)|0;b=f+24|0;d=gc[J[c>> -2]](b,a)|0;m:{if(!i){if(!d)break m;J[g+8>>2]=J[a+8>>2];d=J[a+4>>2];J[g>>2]=J[a>>2];J[g+4>>2]=d;J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;J[b+8>>2]=J[g+8>>2];d=J[g+4>>2];J[b>>2]=J[g>>2];J[b+4>>2]=d;if(!(gc[J[c>>2]](a,f)|0))break m;J[g+8>>2]=J[f+8>>2];c=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=c;J[f+8>>2]=J[a+8>>2];c=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=c;J[a+8>>2]=J[g+8>>2];c=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=c;break m}if(d){J[g+8>>2]=J[f+8>>2];a=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=a; -J[f+8>>2]=J[b+8>>2];a=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=a;J[b+8>>2]=J[g+8>>2];a=J[g+4>>2];J[b>>2]=J[g>>2];J[b+4>>2]=a;break m}J[g+8>>2]=J[f+8>>2];c=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=c;J[f+8>>2]=J[a+8>>2];c=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=c;J[a+8>>2]=J[g+8>>2];c=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=c;if(!(gc[J[h>>2]](b,a)|0))break m;J[g+8>>2]=J[a+8>>2];c=J[a+4>>2];J[g>>2]=J[a>>2];J[g+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[g+8>>2];a=J[g+4>>2];J[b>>2]= -J[g>>2];J[b+4>>2]=a}n:{c=f+36|0;if((j|0)!=(c|0))while(1){if(gc[J[h>>2]](c,b)|0){J[g+8>>2]=J[c+8>>2];a=J[c+4>>2];J[g>>2]=J[c>>2];J[g+4>>2]=a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;d=c;o:{while(1){a=b;if(H[d+11|0]<0)qc(J[d>>2]);b=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=b;J[d+8>>2]=J[a+8>>2];H[a+11|0]=0;J[a>>2]=0;if((a|0)==(f|0)){a=f;break o}b=J[h>>2];J[695492]=0;d=b;b=a-12|0;i=aa(d|0,g|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;d=a;if(i)continue;break}if(H[a+11|0]>=0)break o;qc(J[a>>2])}b=J[g+4>>2]; -J[a>>2]=J[g>>2];J[a+4>>2]=b;J[a+8>>2]=J[g+8>>2]}b=c;a=b+12|0;c=a;if((a|0)!=(j|0))continue;break}bc=g+16|0;break e}break a}if(!d){if((b|0)==(f|0))break e;g=k-2>>>1|0;while(1){i=bc-16|0;bc=i;j=g;d=P(g,12)+f|0;a=(d-f|0)/12|0;p:{q:{r:{if((k|0)<2)break r;l=k-2>>>1|0;if((l|0)<(a|0))break r;a=a<<1;g=a|1;h=P(g,12)+f|0;n=a+2|0;if((n|0)<(k|0)){m=h+12|0;a=gc[J[c>>2]](h,m)|0;g=a?n:g;h=a?m:h}if(gc[J[c>>2]](h,d)|0)break r;J[i+8>>2]=J[d+8>>2];a=J[d+4>>2];J[i>>2]=J[d>>2];J[i+4>>2]=a;J[d>>2]=0;J[d+4>>2]=0;J[d+8>> -2]=0;s:{while(1){a=h;if(H[d+11|0]<0)qc(J[d>>2]);h=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=h;J[d+8>>2]=J[a+8>>2];H[a+11|0]=0;J[a>>2]=0;if((g|0)>(l|0))break s;d=g<<1;g=d|1;h=P(g,12)+f|0;n=d+2|0;if((n|0)<(k|0)){d=J[c>>2];J[695492]=0;m=h+12|0;d=aa(d|0,h|0,m|0)|0;o=J[695492];J[695492]=0;if((o|0)==1)break q;g=d?n:g;h=d?m:h}d=J[c>>2];J[695492]=0;n=aa(d|0,h|0,i|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;d=a;if(!n)continue;break}if(H[a+11|0]>=0)break s;qc(J[a>>2])}d=J[i+4>>2];J[a>>2]=J[i>>2];J[a+4>>2]=d; -J[a+8>>2]=J[i+8>>2]}bc=i+16|0;break p}a=Z()|0;if(H[i+11|0]<0)qc(J[i>>2]);ba(a|0);B()}g=j-1|0;if(j)continue;break}i=bc-16|0;bc=i;a=b-f|0;if((a|0)>=13){d=c;a=(a>>>0)/12|0;while(1){g=b;k=J[f>>2];J[i+8>>2]=J[f+4>>2];b=K[f+7|0]|K[f+8|0]<<8|(K[f+9|0]<<16|K[f+10|0]<<24);H[i+11|0]=b;H[i+12|0]=b>>>8;H[i+13|0]=b>>>16;H[i+14|0]=b>>>24;J[f>>2]=0;J[f+4>>2]=0;l=H[f+11|0];J[f+8>>2]=0;h=a;n=a-2>>>1|0;b=f;c=0;t:{u:{v:{while(1){m=c<<1;j=m|1;c=P(c,12)+b|0;a=c+12|0;m=m+2|0;if((m|0)>=(h|0))c=j;else{o=J[d>>2];J[695492]= -0;p=o;o=c+24|0;c=aa(p|0,a|0,o|0)|0;p=J[695492];J[695492]=0;if((p|0)==1)break v;a=c?o:a;c=c?m:j}if(H[b+11|0]<0)qc(J[b>>2]);j=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=j;J[b+8>>2]=J[a+8>>2];H[a+11|0]=0;J[a>>2]=0;b=a;if((c|0)<=(n|0))continue;break}b=g-12|0;if((a|0)!=(b|0))break u;J[a>>2]=k;J[a+4>>2]=J[i+8>>2];c=K[i+11|0]|K[i+12|0]<<8|(K[i+13|0]<<16|K[i+14|0]<<24);H[a+7|0]=c;H[a+8|0]=c>>>8;H[a+9|0]=c>>>16;H[a+10|0]=c>>>24;H[a+11|0]=l;break t}a=Z()|0;if((l|0)<0)qc(k);ba(a|0);B()}c=J[b+4>>2];J[a>>2]=J[b>>2]; -J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];J[b>>2]=k;j=J[i+8>>2];c=K[i+11|0]|K[i+12|0]<<8|(K[i+13|0]<<16|K[i+14|0]<<24);H[g-1|0]=l;H[b+7|0]=c;H[b+8|0]=c>>>8;H[b+9|0]=c>>>16;H[b+10|0]=c>>>24;J[b+4>>2]=j;g=bc-16|0;bc=g;a=a+12|0;c=(a-f|0)/12|0;w:{if((c|0)<2)break w;k=c-2>>>1|0;j=P(k,12)+f|0;c=a-12|0;if(!(gc[J[d>>2]](j,c)|0))break w;J[g+8>>2]=J[c+8>>2];a=J[c+4>>2];J[g>>2]=J[c>>2];J[g+4>>2]=a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;x:{while(1){a=j;if(H[c+11|0]<0)qc(J[c>>2]);j=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=j;J[c+ -8>>2]=J[a+8>>2];H[a+11|0]=0;J[a>>2]=0;if(!k)break x;c=J[d>>2];J[695492]=0;k=k-1>>>1|0;j=P(k,12)+f|0;l=aa(c|0,j|0,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=a;if(l)continue;break}if(H[a+11|0]>=0)break x;qc(J[a>>2])}c=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=c;J[a+8>>2]=J[g+8>>2]}bc=g+16|0}a=h-1|0;if((h|0)>2)continue;break}}bc=i+16|0;break e}i=P(k>>>1|0,12)+f|0;y:{if(a>>>0>=11989){h=P(k>>>2|0,12);a=h+f|0;h=h+i|0;k=zv(f,a,i,h,c);if(!(gc[J[c>>2]](j,h)|0))break y;J[e+8>>2]=J[h+8>>2];g=J[h+4>>2];J[e>> -2]=J[h>>2];J[e+4>>2]=g;J[h+8>>2]=J[j+8>>2];g=J[j+4>>2];J[h>>2]=J[j>>2];J[h+4>>2]=g;J[j+8>>2]=J[e+8>>2];g=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=g;if(!(gc[J[c>>2]](h,i)|0)){k=k+1|0;break y}J[e+8>>2]=J[i+8>>2];g=J[i+4>>2];J[e>>2]=J[i>>2];J[e+4>>2]=g;J[i+8>>2]=J[h+8>>2];g=J[h+4>>2];J[i>>2]=J[h>>2];J[i+4>>2]=g;J[h+8>>2]=J[e+8>>2];g=J[e+4>>2];J[h>>2]=J[e>>2];J[h+4>>2]=g;if(!(gc[J[c>>2]](i,a)|0)){k=k+2|0;break y}J[e+8>>2]=J[a+8>>2];h=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=h;J[a+8>>2]=J[i+8>>2];h=J[i+4>>2];J[a>> -2]=J[i>>2];J[a+4>>2]=h;J[i+8>>2]=J[e+8>>2];h=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=h;if(!(gc[J[c>>2]](a,f)|0)){k=k+3|0;break y}J[e+8>>2]=J[f+8>>2];h=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=h;J[f+8>>2]=J[a+8>>2];h=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=h;J[a+8>>2]=J[e+8>>2];h=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=h;k=k+4|0;break y}h=gc[J[c>>2]](i,f)|0;a=gc[J[c>>2]](j,i)|0;z:{if(!h){k=0;if(!a)break y;J[e+8>>2]=J[i+8>>2];a=J[i+4>>2];J[e>>2]=J[i>>2];J[e+4>>2]=a;J[i+8>>2]=J[j+8>>2];a=J[j+4>>2];J[i>>2]=J[j>>2];J[i+ -4>>2]=a;J[j+8>>2]=J[e+8>>2];a=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=a;k=1;if(!(gc[J[c>>2]](i,f)|0))break y;J[e+8>>2]=J[f+8>>2];a=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=a;J[f+8>>2]=J[i+8>>2];a=J[i+4>>2];J[f>>2]=J[i>>2];J[f+4>>2]=a;J[i+8>>2]=J[e+8>>2];a=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=a;break z}if(a){J[e+8>>2]=J[f+8>>2];a=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=a;J[f+8>>2]=J[j+8>>2];a=J[j+4>>2];J[f>>2]=J[j>>2];J[f+4>>2]=a;J[j+8>>2]=J[e+8>>2];a=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=a;k=1;break y}J[e+8>>2]= -J[f+8>>2];a=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=a;J[f+8>>2]=J[i+8>>2];a=J[i+4>>2];J[f>>2]=J[i>>2];J[f+4>>2]=a;J[i+8>>2]=J[e+8>>2];a=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=a;k=1;if(!(gc[J[c>>2]](j,i)|0))break y;J[e+8>>2]=J[i+8>>2];a=J[i+4>>2];J[e>>2]=J[i>>2];J[e+4>>2]=a;J[i+8>>2]=J[j+8>>2];a=J[j+4>>2];J[i>>2]=J[j>>2];J[i+4>>2]=a;J[j+8>>2]=J[e+8>>2];a=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=a}k=2}d=d-1|0;a=j;if(!(gc[J[c>>2]](f,i)|0)){while(1){a=a-12|0;if((f|0)==(a|0)){g=f+12|0;if(gc[J[c>>2]](f,j)|0)break f; -if((g|0)==(j|0))break e;while(1){if(gc[J[c>>2]](f,g)|0){J[e+8>>2]=J[g+8>>2];a=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=a;J[g+8>>2]=J[j+8>>2];a=J[j+4>>2];J[g>>2]=J[j>>2];J[g+4>>2]=a;J[j+8>>2]=J[e+8>>2];a=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=a;g=g+12|0;break f}g=g+12|0;if((j|0)!=(g|0))continue;break}break e}if(!(gc[J[c>>2]](a,i)|0))continue;break}J[e+8>>2]=J[f+8>>2];h=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=h;J[f+8>>2]=J[a+8>>2];h=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=h;J[a+8>>2]=J[e+8>>2];h=J[e+4>>2];J[a>>2]= -J[e>>2];J[a+4>>2]=h;k=k+1|0}h=f+12|0;if(h>>>0>=a>>>0)break g;while(1){g=h;h=g+12|0;if(gc[J[c>>2]](g,i)|0)continue;while(1){a=a-12|0;if(!(gc[J[c>>2]](a,i)|0))continue;break}if(a>>>0>>0){h=g;break g}else{J[e+8>>2]=J[g+8>>2];l=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=l;J[g+8>>2]=J[a+8>>2];l=J[a+4>>2];J[g>>2]=J[a>>2];J[g+4>>2]=l;J[a+8>>2]=J[e+8>>2];l=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=l;i=(g|0)==(i|0)?a:i;k=k+1|0;continue}}}zv(f,f+12|0,f+24|0,b-12|0,c);break e}A:{if((h|0)==(i|0))break A;if(!(gc[J[c>>2]](i, -h)|0))break A;J[e+8>>2]=J[h+8>>2];a=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=a;J[h+8>>2]=J[i+8>>2];a=J[i+4>>2];J[h>>2]=J[i>>2];J[h+4>>2]=a;J[i+8>>2]=J[e+8>>2];a=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=a;k=k+1|0}if(!k){g=jW(f,h,c);a=h+12|0;if(jW(a,b,c)){a=f;b=h;if(!g)continue b;break e}if(g)continue c}if(((h-f|0)/12|0)<((b-h|0)/12|0)){cH(f,h,c,d);a=h+12|0;continue c}cH(h+12|0,b,c,d);a=f;b=h;continue b}a=j;if((g|0)==(a|0))break e;while(1){h=g;g=g+12|0;if(!(gc[J[c>>2]](f,h)|0))continue;while(1){a=a-12|0;if(gc[J[c>> -2]](f,a)|0)continue;break}if(a>>>0<=h>>>0){f=h;continue d}else{J[e+8>>2]=J[h+8>>2];i=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=i;J[h+8>>2]=J[a+8>>2];i=J[a+4>>2];J[h>>2]=J[a>>2];J[h+4>>2]=i;J[a+8>>2]=J[e+8>>2];h=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=h;continue}}}break}break}break}bc=e+16|0;return}a=Z()|0;if(H[g+11|0]<0)qc(J[g>>2]);ba(a|0);B()}function I_(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;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;h=bc-208|0;bc=h;J[a+4>>2]=0; -J[a+8>>2]=0;J[a>>2]=a+4;J[695492]=0;oa(3343,h+188|0,b|0,c|0,d|0,e|0,g|0);b=J[695492];J[695492]=0;a:{if((b|0)!=1){b=J[J[d>>2]+20>>2];J[695492]=0;c=$(b|0,d|0)|0;b=J[695492];J[695492]=0;b:{c:{if((b|0)==1)break c;b=J[J[c>>2]+20>>2];J[695492]=0;t=$(b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;d=J[f>>2];e=J[f+4>>2];if((d|0)!=(e|0)){v=g&1;w=g&2;u=h+192|0;b=0;while(1){d:{m=b<<2;g=J[m+d>>2];if(K[g|0])break d;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{if(H[g+ -59|0]>=0){J[h+184>>2]=J[g+56>>2];c=J[g+52>>2];J[h+176>>2]=J[g+48>>2];J[h+180>>2]=c;break G}d=J[g+52>>2];c=J[g+48>>2];J[695492]=0;ca(2672,h+176|0,c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break F}J[695492]=0;g=h+160|0;e=h+176|0;d=H[h+187|0];c=(d|0)<0;ca(1618,g|0,(c?J[h+176>>2]:e)|0,(c?J[h+180>>2]:d&255)|0);c=J[695492];J[695492]=0;if((c|0)==1)break E;k=J[J[m+J[f>>2]>>2]+4>>2];o=k&2;s=k&1;if(!$I(g)){c=K[h+187|0];d=c<<24>>24<0;if(((d?J[h+180>>2]:c)|0)!=15)break x;if(Wc(d?J[h+176>>2]:e,838695,15))break x}if(!w)break h; -d=K[h+187|0];c=d<<24>>24;e=(c|0)<0;H:switch((e?J[h+180>>2]:d)-7|0){case 2:break A;case 0:break B;case 8:break H;default:break y}i=J[h+176>>2];if(Wc(e?i:h+176|0,838695,15))break y;if((k&3)!=3)break D;g=838827;c=16;break C}g=Z()|0;break b}g=Z()|0;break e}if(s){I:{if((c|0)<0){J[h+180>>2]=10;break I}H[h+187|0]=10;i=h+176|0}H[i+10|0]=0;c=K[838957]|K[838958]<<8;H[i+8|0]=c;H[i+9|0]=c>>>8;d=K[838953]|K[838954]<<8|(K[838955]<<16|K[838956]<<24);c=K[838949]|K[838950]<<8|(K[838951]<<16|K[838952]<<24);H[i|0]= -c;H[i+1|0]=c>>>8;H[i+2|0]=c>>>16;H[i+3|0]=c>>>24;H[i+4|0]=d;H[i+5|0]=d>>>8;H[i+6|0]=d>>>16;H[i+7|0]=d>>>24;break y}g=o?839059:839166;c=o?12:11}J[695492]=0;ga(2830,h+176|0,g|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break y;break g}if(!Wc(e?J[h+176>>2]:h+176|0,839258,7))break z;break y}if(Wc(e?J[h+176>>2]:h+176|0,839373,9))break y}c=k&3;if(!c)break y;J[695492]=0;aa(2668,h+176|0,(s?(c|0)==3?839410:839505:839551)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g}J[695492]=0;d=H[h+187|0];c=(d|0)<0; -ca(1618,h+56|0,(c?J[h+176>>2]:h+176|0)|0,(c?J[h+180>>2]:d&255)|0);c=J[695492];J[695492]=0;if((c|0)==1)break w;if(H[h+171|0]<0)qc(J[h+160>>2]);e=h- -64|0;J[h+168>>2]=J[e>>2];c=J[h+60>>2];J[h+160>>2]=J[h+56>>2];J[h+164>>2]=c;J[h+8>>2]=0;J[695492]=0;J[h+204>>2]=0;d=J[689330];c=J[695492];J[695492]=0;J:{K:{if((c|0)==1)break K;c=J[J[d>>2]+24>>2];J[695492]=0;g=h+160|0;d=aa(c|0,d|0,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break K;if(d)break J;J[695492]=0;d=ga(3208,g|0,h+8|0,h+204|0)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break K;if(!d)break J;J[695492]=0;d=J[689330];c=J[695492];J[695492]=0;if((c|0)==1)break K;c=J[J[d>>2]+16>>2];J[695492]=0;ma(c|0,d|0,g|0,J[h+8>>2],J[h+204>>2],0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break J}g=Z()|0;break f}L:{M:{g=J[f>>2];k=J[m+g>>2];N:{if(H[k+59|0]>=0){J[e>>2]=J[k+56>>2];c=J[k+52>>2];J[h+56>>2]=J[k+48>>2];J[h+60>>2]=c;break N}d=J[k+52>>2];c=J[k+48>>2];J[695492]=0;ca(2672,h+56|0,c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break M;g=J[f>>2]}c=J[g+m>>2];g=c+48|0;if((g| -0)==(h+176|0))break k;d=K[h+187|0];e=d<<24>>24;if(H[c+59|0]>=0){if((e|0)<0)break L;c=J[h+180>>2];J[g>>2]=J[h+176>>2];J[g+4>>2]=c;J[g+8>>2]=J[h+184>>2];break k}J[695492]=0;c=(e|0)<0;ga(3294,g|0,(c?J[h+176>>2]:h+176|0)|0,(c?J[h+180>>2]:d)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j;break k}g=Z()|0;break f}J[695492]=0;ga(3295,g|0,J[h+176>>2],J[h+180>>2])|0;c=J[695492];J[695492]=0;if((c|0)!=1)break k;break j}if(!v)break h;wc(h+56|0,0,104);if(s){J[695492]=0;d=$(4,4)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break v;J[d>>2]=1;J[h+76>>2]=d}if(o){J[695492]=0;d=$(4,4)|0;c=J[695492];J[695492]=0;if((c|0)==1)break v;J[d>>2]=1;J[h+80>>2]=d}J[695492]=0;d=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break v;O:{if(H[h+171|0]>=0){c=J[h+164>>2];J[d>>2]=J[h+160>>2];J[d+4>>2]=c;J[d+8>>2]=J[h+168>>2];break O}J[695492]=0;ca(15,d|0,J[h+160>>2],J[h+164>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break m}J[h+56>>2]=d;c=J[J[t>>2]+20>>2];J[695492]=0;l=ga(c|0,t|0,h+56|0,1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n; -if(!l)break s;c=K[l+23|0];e=c<<24>>24<0;d=J[l+16>>2];if(!(e?d:c))break s;n=l+12|0;P:{if(!e){J[h+48>>2]=J[n+8>>2];c=J[n+4>>2];J[h+40>>2]=J[n>>2];J[h+44>>2]=c;break P}c=J[n>>2];J[695492]=0;ca(15,h+40|0,c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break o}e=J[h+188>>2];Q:{if((u|0)!=(e|0))while(1){d=K[e+39|0];j=d<<24>>24;c=K[h+51|0];g=c<<24>>24;k=(j|0)<0;d=k?J[e+32>>2]:d;g=(g|0)<0;if((d|0)==((g?J[h+44>>2]:c)|0)){j=0;if(!d)break Q;c=e+28|0;j=0;if(!gd(k?J[c>>2]:c,g?J[h+40>>2]:h+40|0,d))break Q}g=J[e+4>> -2];R:{if(g)while(1){d=g;g=J[d>>2];if(g)continue;break R}while(1){d=J[e+8>>2];c=J[d>>2]!=(e|0);e=d;if(c)continue;break}}e=d;if((d|0)!=(u|0))continue;break}j=1}k=j;S:{T:{U:{V:{if(H[l+11|0]>=0){J[h+32>>2]=J[l+8>>2];c=J[l+4>>2];J[h+24>>2]=J[l>>2];J[h+28>>2]=c;break V}d=J[l+4>>2];c=J[l>>2];J[695492]=0;ca(15,h+24|0,c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break U}c=K[h+35|0];if((c<<24>>24<0?J[h+28>>2]:c)>>>0<8)break S;J[695492]=0;e=h+24|0;d=aa(3191,e|0,6)|0;c=J[695492];J[695492]=0;if((c|0)==1)break r; -if(J[d>>2]!=43)break S;J[695492]=0;d=aa(3191,e|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break T;if(J[d>>2]-65>>>0>=26)break S;J[695492]=0;d=aa(3191,e|0,1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break T;if(J[d>>2]-65>>>0>25)break S;J[695492]=0;d=aa(3191,e|0,2)|0;c=J[695492];J[695492]=0;if((c|0)==1)break T;if(J[d>>2]-65>>>0>25)break S;J[695492]=0;d=aa(3191,e|0,3)|0;c=J[695492];J[695492]=0;if((c|0)==1)break T;if(J[d>>2]-65>>>0>25)break S;J[695492]=0;d=aa(3191,e|0,4)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break T;if(J[d>>2]-65>>>0>25)break S;J[695492]=0;d=aa(3191,e|0,5)|0;c=J[695492];J[695492]=0;if((c|0)==1)break T;if(J[d>>2]-65>>>0>25)break S;J[695492]=0;ca(2805,e|0,0,7);c=J[695492];J[695492]=0;if((c|0)!=1)break S;g=Z()|0;break q}g=Z()|0;break p}g=Z()|0;break q}W:{X:{Y:{if(!k){J[695492]=0;d=H[h+35|0];c=(d|0)<0;ia(1626,h+8|0,(c?J[h+24>>2]:h+24|0)|0,(c?J[h+28>>2]:d&255)|0,0);c=J[695492];J[695492]=0;if((c|0)!=1){d=J[m+J[f>>2]>>2];if(H[d+59|0]<0)qc(J[d+48>>2]);c=J[h+12>>2];J[d+48>>2]=J[h+8>>2]; -J[d+52>>2]=c;J[d+56>>2]=J[h+16>>2];J[695492]=0;c=h+24|0;J[h+204>>2]=c;oa(3344,h+8|0,a|0,c|0,841605,h+204|0,h+203|0);c=J[695492];J[695492]=0;if((c|0)==1)break r;c=J[h+8>>2];j=c+28|0;if((j|0)==(n|0))break X;e=K[l+23|0];g=e<<24>>24;if(H[c+39|0]<0)break Y;if((g|0)>=0){c=J[n+4>>2];J[j>>2]=J[n>>2];J[j+4>>2]=c;J[j+8>>2]=J[n+8>>2];break X}d=J[l+16>>2];c=J[l+12>>2];J[695492]=0;ga(1630,j|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break X;break r}g=Z()|0;break q}c=J[m+J[f>>2]>>2];J[c+4>>2]=J[c+4>>2]|64; -J[695492]=0;d=H[h+35|0];c=(d|0)<0;ia(1626,h+8|0,(c?J[h+24>>2]:h+24|0)|0,(c?J[h+28>>2]:d&255)|0,0);c=J[695492];J[695492]=0;if((c|0)!=1){d=J[m+J[f>>2]>>2];if(H[d+71|0]<0)qc(J[d+60>>2]);c=J[h+12>>2];J[d+60>>2]=J[h+8>>2];J[d+64>>2]=c;J[d+68>>2]=J[h+16>>2];i=J[f>>2];c=J[m+i>>2];H[c|0]=1;c=c+60|0;break W}g=Z()|0;break q}c=J[l+12>>2];d=J[l+16>>2];J[695492]=0;i=c;c=(g|0)<0;ga(1629,j|0,(c?i:n)|0,(c?d:e)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break r}i=J[f>>2];c=J[m+i>>2];H[c|0]=1;c=c+48|0}Z:{if(H[c+11|0]>= -0){J[h+16>>2]=J[c+8>>2];d=J[c+4>>2];J[h+8>>2]=J[c>>2];J[h+12>>2]=d;break Z}d=J[c+4>>2];c=J[c>>2];J[695492]=0;ca(2672,h+8|0,c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break u;i=J[f>>2]}q=J[f+4>>2];if(q-i>>2>>>0<=b>>>0)break t;m=o>>>1|0;c=b;while(1){n=c<<2;r=J[n+i>>2];p=J[r+52>>2];e=K[r+59|0];o=e<<24>>24;l=(o|0)<0;d=K[h+187|0];g=d<<24>>24<0;_:{if(((l?p:e)|0)!=((g?J[h+180>>2]:d)|0))break _;j=r+48|0;d=g?J[h+176>>2]:h+176|0;$:{if(!l){g=j;if(!o)break $;while(1){if(K[g|0]!=K[d|0])break _;d=d+1|0;g=g+1| -0;e=e-1|0;if(e)continue;break}break $}if(!p)break $;if(Wc(J[j>>2],d,p))break _}d=J[r+4>>2];if((d&1)!=(s|0)|(m|0)!=(d>>>1&1))break _;aa:{ba:{ca:{da:{ea:{fa:{if(!k){if((h+8|0)==(j|0))break aa;d=H[h+19|0];if(!l){if((d|0)<0)break fa;break ba}g=d>>>31|0;e=(d|0)<0?J[h+8>>2]:h+8|0;break da}J[r+4>>2]=d|64;j=r+60|0;if((j|0)==(h+8|0))break aa;d=H[h+19|0];if(H[r+71|0]<0)break ea;if((d|0)>=0)break ba}J[695492]=0;ga(3295,j|0,J[h+8>>2],J[h+12>>2])|0;d=J[695492];J[695492]=0;if((d|0)==1)break ca;break aa}g=d>>>31| -0;e=(d|0)<0?J[h+8>>2]:h+8|0}J[695492]=0;ga(3294,j|0,e|0,(g?J[h+12>>2]:d&255)|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break aa}g=Z()|0;if(H[h+19|0]>=0)break q;qc(J[h+8>>2]);break q}d=J[h+12>>2];J[j>>2]=J[h+8>>2];J[j+4>>2]=d;J[j+8>>2]=J[h+16>>2]}i=J[f>>2];H[J[n+i>>2]]=1;q=J[f+4>>2]}c=c+1|0;if(c>>>0>2>>>0)continue;break}break t}g=Z()|0;break f}g=Z()|0;break l}g=Z()|0;break q}if(H[h+19|0]<0)qc(J[h+8>>2]);if(H[h+35|0]<0)qc(J[h+24>>2]);if(H[h+51|0]>=0)break s;qc(J[h+40>>2])}lo(h+56|0);break h}g=Z()| -0}if(H[h+35|0]>=0)break p;qc(J[h+24>>2])}if(H[h+51|0]>=0)break l;qc(J[h+40>>2]);break l}g=Z()|0;break l}g=Z()|0;break l}g=Z()|0;qc(d)}lo(h+56|0);break f}H[J[m+J[f>>2]>>2]]=1;J[695492]=0;d=h+160|0;J[h+24>>2]=d;oa(3344,h+40|0,a|0,d|0,841605,h+24|0,h+203|0);c=J[695492];J[695492]=0;if((c|0)==1)break j;c=J[h+40>>2];g=c+28|0;ga:{if((g|0)==(d|0))break ga;d=K[h+171|0];e=d<<24>>24;if(H[c+39|0]>=0){if((e|0)>=0){c=J[h+164>>2];J[g>>2]=J[h+160>>2];J[g+4>>2]=c;J[g+8>>2]=J[h+168>>2];break ga}J[695492]=0;ga(1630, -g|0,J[h+160>>2],J[h+164>>2])|0;c=J[695492];J[695492]=0;if((c|0)!=1)break ga;break j}J[695492]=0;c=(e|0)<0;ga(1629,g|0,(c?J[h+160>>2]:h+160|0)|0,(c?J[h+164>>2]:d)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j}q=J[f+4>>2];i=J[f>>2];if(q-i>>2>>>0<=b>>>0)break i;n=o>>>1|0;c=b;while(1){o=c<<2;p=J[o+i>>2];l=J[p+52>>2];e=K[p+59|0];j=e<<24>>24;m=(j|0)<0;d=K[h+67|0];g=d<<24>>24<0;ha:{if(((m?l:e)|0)!=((g?J[h+60>>2]:d)|0))break ha;k=p+48|0;d=g?J[h+56>>2]:h+56|0;ia:{if(!m){g=k;if(!j)break ia;while(1){if(K[g| -0]!=K[d|0])break ha;d=d+1|0;g=g+1|0;e=e-1|0;if(e)continue;break}break ia}if(!l)break ia;if(Wc(J[k>>2],d,l))break ha}d=J[p+4>>2];if((d&1)!=(s|0)|(n|0)!=(d>>>1&1))break ha;ja:{if((k|0)==(h+176|0))break ja;e=K[h+187|0];d=e<<24>>24;ka:{la:{if(!m){if((d|0)<0)break la;d=J[h+180>>2];J[k>>2]=J[h+176>>2];J[k+4>>2]=d;J[k+8>>2]=J[h+184>>2];break ja}J[695492]=0;d=(d|0)<0;ga(3294,k|0,(d?J[h+176>>2]:h+176|0)|0,(d?J[h+180>>2]:e)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break ka;break ja}J[695492]=0;ga(3295,k|0, -J[h+176>>2],J[h+180>>2])|0;d=J[695492];J[695492]=0;if((d|0)!=1)break ja}break j}i=J[f>>2];H[J[o+i>>2]]=1;q=J[f+4>>2]}c=c+1|0;if(c>>>0>2>>>0)continue;break}break i}g=Z()|0;if(H[h+67|0]>=0)break f;qc(J[h+56>>2]);break f}if(H[h+67|0]>=0)break h;qc(J[h+56>>2])}if(H[h+171|0]<0)qc(J[h+160>>2]);if(H[h+187|0]<0)qc(J[h+176>>2]);d=J[f>>2];e=J[f+4>>2];break d}g=Z()|0}if(H[h+171|0]>=0)break e;qc(J[h+160>>2])}if(H[h+187|0]>=0)break b;qc(J[h+176>>2]);break b}b=b+1|0;if(b>>>0>2>>>0)continue;break}}cl(h+ -188|0,J[h+192>>2]);bc=h+208|0;return}g=Z()|0}cl(h+188|0,J[h+192>>2]);break a}g=Z()|0}cl(a,J[a+4>>2]);ba(g|0);B()}function wlb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=Q(0),k=0,l=0,m=0,n=Q(0),o=0,p=0,q=0,r=0,s=0,t=Q(0),u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=Q(0),E=0,F=0,G=0,I=0,M=Q(0),N=Q(0),O=Q(0),S=Q(0),T=Q(0),U=Q(0),W=Q(0),X=0,Y=Q(0),_=Q(0),fa=Q(0),ha=Q(0),ia=Q(0),ja=Q(0);m=bc-1968|0;bc=m;a:{b:{if(!b|!c)break b;h=J[a+16>>2];q=J[a+20>>2];if(!((h|0)!=(b|0)|(q|0)!=(c|0))){X=1;if(!e)break b; -nE(e,a,1,1,1);break b}r=qf(m+992|0,0);J[695492]=0;da(153,r|0,a|0);f=J[695492];J[695492]=0;c:{d:{e:{if((f|0)==1)break e;k=L[a+26>>1];J[695492]=0;g=J[a+68>>2];f=J[695492];J[695492]=0;if((f|0)==1)break e;J[695492]=0;ma(78,r|0,b|0,c|0,k|0,g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;J[695492]=0;k=J[a+4>>2];g=J[a+44>>2];f=J[695492];J[695492]=0;if((f|0)==1)break e;J[695492]=0;ca(19,r|0,(k?g?k+40|0:0:0)|0,256);f=J[695492];J[695492]=0;if((f|0)==1)break e;J[695492]=0;X=J[r+4>>2]!=0;f=J[695492];J[695492]= -0;if((f|0)==1)break e;if(!X){J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break e;ff(a+72|0,r+72|0);break c}O=Q(Q(q|0)/Q(c|0));M=Q(Q(h|0)/Q(b|0));f:{g:switch(d-1|0){case 1:if((c|0)<=0)break f;y=(b|0)<=0;while(1){J[a+328>>2]=(P(o,100)|0)/(c|0);if(J[a+332>>2])break f;j=Q(Q(Q(o|0)*O)+Q(-.5));n=Q(V(j));h:{if(Q(R(n))0?f:0;x=(f|0)<= -1?1:f;U=Q(j-n);ha=Q(U+Q(-2));ia=Q(U+Q(-1));ja=Q(U+Q(1));F=((f|0)<=-2?-2:f)+2|0;w=-1;l=((f|0)<0?-1:f)+1|0;D=Q(0);N=Q(0);T=Q(0);j:{k:{l:{while(1){m:{J[695492]=0;W=bu(Q(fa+Q(w|0)));f=J[695492];J[695492]=0;if((f|0)==1)break m;g=J[a+20>>2];J[695492]=0;S=bu(ja);f=J[695492];J[695492]=0;if((f|0)==1)break l;f=q+w|0;f=(f|0)>0?f:0;i=(f|0)<(g|0)?f:g-1|0;f=J[a+16>>2];f=((f|0)>(x|0)?x:f)-1|0;n:{if(J[a+44>>2]){J[695492]=0;Ik(m+12|0,a,f,i,1);f=J[695492];J[695492]=0;if((f|0)==1)break k;u=K[m+14|0];z=K[m+13|0];h=K[m+ -12|0];break n}f=(J[a+56>>2]+P(i,J[a+52>>2])|0)+P(f,3)|0;u=K[f+2|0];z=K[f+1|0];h=K[f|0]}J[695492]=0;t=bu(U);f=J[695492];J[695492]=0;if((f|0)==1)break l;f=J[a+16>>2];f=(f|0)>(C|0)?C:f-1|0;o:{if(J[a+44>>2]){J[695492]=0;Ik(m+12|0,a,f,i,1);f=J[695492];J[695492]=0;if((f|0)==1)break k;G=K[m+14|0];p=K[m+13|0];k=K[m+12|0];break o}f=(J[a+56>>2]+P(i,J[a+52>>2])|0)+P(f,3)|0;G=K[f+2|0];p=K[f+1|0];k=K[f|0]}J[695492]=0;n=bu(ia);f=J[695492];J[695492]=0;if((f|0)==1)break l;f=J[a+16>>2];f=(f|0)>(l|0)?l:f-1|0;p:{if(J[a+ -44>>2]){J[695492]=0;Ik(m+12|0,a,f,i,1);f=J[695492];J[695492]=0;if((f|0)==1)break k;I=K[m+14|0];E=K[m+13|0];f=K[m+12|0];break p}f=(J[a+56>>2]+P(i,J[a+52>>2])|0)+P(f,3)|0;I=K[f+2|0];E=K[f+1|0];f=K[f|0]}J[695492]=0;j=bu(ha);g=J[695492];J[695492]=0;if((g|0)==1)break l;g=J[a+16>>2];g=(g|0)>(F|0)?F:g-1|0;q:{if(J[a+44>>2]){J[695492]=0;Ik(m+12|0,a,g,i,1);g=J[695492];J[695492]=0;if((g|0)==1)break k;g=K[m+14|0];A=K[m+13|0];i=K[m+12|0];break q}i=(J[a+56>>2]+P(i,J[a+52>>2])|0)+P(g,3)|0;g=K[i+2|0];A=K[i+1|0]; -i=K[i|0]}Y=Q(W*j);_=Q(W*n);n=Q(W*t);j=Q(W*S);T=Q(Q(Q(i>>>0)*Y)+Q(Q(Q((f&255)>>>0)*_)+Q(Q(Q(k>>>0)*n)+Q(Q(Q((h&255)>>>0)*j)+T))));N=Q(Q(Q(A>>>0)*Y)+Q(Q(Q((E&255)>>>0)*_)+Q(Q(Q(p>>>0)*n)+Q(Q(Q((z&255)>>>0)*j)+N))));D=Q(Q(Q((g&255)>>>0)*Y)+Q(Q(Q(I>>>0)*_)+Q(Q(Q(G>>>0)*n)+Q(Q(Q((u&255)>>>0)*j)+D))));w=w+1|0;if((w|0)!=3)continue;break j}break}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break d}if(T=Q(0))g=~~T>>>0;else g=0;r:{if(J[a+44>>2]){J[695492]=0;h=g<<16;if(N=Q(0))f= -~~N>>>0;else f=0;k=f<<8;if(D=Q(0))f=~~D>>>0;else f=0;Px(r,s,o,h|(f|k));f=J[695492];J[695492]=0;if((f|0)!=1)break r;a=Z()|0;break d}f=(J[r+56>>2]+P(J[r+52>>2],o)|0)+P(s,3)|0;if(D=Q(0))h=~~D>>>0;else h=0;H[f+2|0]=h;if(N=Q(0))h=~~N>>>0;else h=0;H[f+1|0]=h;H[f|0]=g}s=s+1|0;if((s|0)!=(b|0))continue;break}}o=o+1|0;if((o|0)!=(c|0))continue;break}break f;default:f=J[a+16>>2];p=J[a+20>>2];if(!(!((f|0)<=(b|0)|(p|0)<=(c|0))&L[a+26>>1]==24)){if((c|0)<=0)break f; -F=p-1|0;h=f-1|0;while(1){J[a+328>>2]=(P(y,100)|0)/(c|0);if(J[a+332>>2])break f;j=Q(O*Q(y|0));s:{if(Q(R(j))0){f=q+1|0;C=(f|0)>(F|0)?F:f;t=Q(j-Q(q|0));while(1){n=Q(M*Q(w|0));u:{if(Q(R(n))(h|0)?h:f;v:{if(J[a+44>>2]){J[695492]=0;k=lj(a,g,q);f=J[695492];J[695492]=0;w:{x:{y:{z:{if((f|0)==1)break z;J[695492]=0;o=m+12|0;ug(o,a,k);f=J[695492];J[695492]=0;if((f|0)==1)break z;J[695492]=0;i= -K[m+14|0];v=K[m+13|0];A=K[m+12|0];k=lj(a,x,q);f=J[695492];J[695492]=0;if((f|0)==1)break y;J[695492]=0;ug(o,a,k);f=J[695492];J[695492]=0;if((f|0)==1)break y;J[695492]=0;u=K[m+14|0];z=K[m+13|0];s=K[m+12|0];k=lj(a,g,C);f=J[695492];J[695492]=0;if((f|0)==1)break x;J[695492]=0;ug(o,a,k);f=J[695492];J[695492]=0;if((f|0)==1)break x;J[695492]=0;G=K[m+14|0];p=K[m+13|0];l=K[m+12|0];k=lj(a,x,C);f=J[695492];J[695492]=0;if((f|0)==1)break w;J[695492]=0;ug(o,a,k);f=J[695492];J[695492]=0;if((f|0)==1)break w;k=K[m+ -14|0];I=K[m+13|0];E=K[m+12|0];break v}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break d}s=J[a+56>>2];i=J[a+52>>2];o=s+P(i,C)|0;f=P(x,3);l=o+f|0;k=K[l+2|0];I=K[l+1|0];E=K[l|0];l=o;o=P(g,3);l=l+o|0;G=K[l+2|0];p=K[l+1|0];l=K[l|0];x=f;f=s+P(i,q)|0;s=x+f|0;u=K[s+2|0];z=K[s+1|0];s=K[s|0];f=f+o|0;i=K[f+2|0];v=K[f+1|0];A=K[f|0]}J[695492]=0;f=z&255;D=Q(Q(Q(I-f|0)*t)+Q(f>>>0));f=v&255;j=Q(Q(Q(p-f|0)*t)+Q(f>>>0));n=Q(n-Q(g|0));j=Q(Q(Q(D-j)*n)+j);A:{if(j=Q(0)){f=~~j>>>0;break A}f= -0}o=f<<8;f=u&255;j=Q(Q(Q(G-i|0)*t)+Q(i>>>0));j=Q(Q(Q(Q(Q(Q((k&255)-f|0)*t)+Q(f>>>0))-j)*n)+j);B:{if(j=Q(0)){k=~~j>>>0;break B}k=0}g=k|o;j=Q(Q(Q(l-A|0)*t)+Q(A>>>0));j=Q(Q(Q(Q(Q(Q((E&255)-s|0)*t)+Q(s>>>0))-j)*n)+j);C:{if(j=Q(0)){f=~~j>>>0;break C}f=0}Px(r,w,y,g|f<<16);f=J[695492];J[695492]=0;if((f|0)==1)break t;w=w+1|0;if((w|0)!=(b|0))continue;break}}y=y+1|0;if((y|0)!=(c|0))continue;break f}break}a=Z()|0;break d}v=J[r+56>>2];J[695492]=0;G=P(b,3);f=G+3|0;k=f>>>0>1073741823? --1:f<<2;g=$(27,k|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;k=$(27,k|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){f=P(b,12);wc(g,0,f);wc(k,0,f);h=(p|0)<=0;j=Q(Q(M*Q(1E3))*O);D:{if(Q(R(j))>2]=(P(y,100)|0)/(p|0);if(J[a+332>>2])break E;f=g;g=J[a+56>>2]+P(J[a+52>>2],y)|0;n=Q(y|0);F:{if(n>2]<=0){g=f;break F}while(1){t=Q(p|0);G:{if(t>2]=J[h>>2]+P(K[g| -0],1E3);J[h+4>>2]=J[h+4>>2]+P(K[g+1|0],1E3);J[h+8>>2]=J[h+8>>2]+P(K[g+2|0],1E3);break G}l=f+(u<<2)|0;q=J[l>>2];t=Q(Q(t-n)*Q(1E3));H:{if(Q(R(t))>2]=q+P(i,K[g|0]);u=u+3|0;q=f+(u<<2)|0;J[q>>2]=J[q>>2]+P(h,K[g|0]);J[l+4>>2]=J[l+4>>2]+P(i,K[g+1|0]);J[l+16>>2]=J[l+16>>2]+P(h,K[g+1|0]);J[l+8>>2]=J[l+8>>2]+P(i,K[g+2|0]);J[l+20>>2]=J[l+20>>2]+P(h,K[g+2|0]);n=Q(M+n)}g=g+3|0;p=p+1|0;if((p|0)>2])continue;break}g=f;break F}i=J[a+16>>2]<=0;n=Q(Q(n- -S)*Q(1E3));I:{if(Q(R(n))>2]=J[h>>2]+P(u,K[g|0]);h=k+l|0;J[h>>2]=J[h>>2]+P(q,K[g|0]);i=l+4|0;h=i+f|0;J[h>>2]=J[h>>2]+P(u,K[g+1|0]);h=k+i|0;J[h>>2]=J[h>>2]+P(q,K[g+1|0]);i=l+8|0;h=i+f|0;J[h>>2]=J[h>>2]+P(u,K[g+2|0]);h=k+i|0;J[h>>2]=J[h>>2]+P(q,K[g+2|0]);break K}A=z<<2;h=A+f|0;x=h;i=J[h>>2];t=Q(Q(t-n)*Q(1E3));L:{if(Q(R(t))>2]=i;H[v|0]=(i|0)/(o|0);i=k+A|0;C=P(l,q);J[i>>2]=J[i>>2]+((P(C,K[g|0])|0)/1E3|0);z=z+3|0;l=z<<2;i=l+f|0;x=P(h,u);J[i>>2]=J[i>>2]+((P(x,K[g|0])|0)/1E3|0);F=P(h,q);J[k+l>>2]=(P(F,K[g|0])|0)/1E3;i=A+4|0;h=i+f|0;l=J[h>>2]+((P(I,K[g+1|0])|0)/1E3|0)|0;J[h>>2]=l;H[v+1|0]=(l|0)/(o|0);h=k+i|0;J[h>>2]=J[h>>2]+((P(C,K[g+1|0])|0)/1E3|0);i=A+16|0;h=i+f|0;J[h>>2]=J[h>>2]+((P(x,K[g+1|0])|0)/1E3|0);J[k+i>>2]=(P(F,K[g+1|0])|0)/1E3;i=A+8|0;h=i+f|0;l=J[h>>2]+((P(I, -K[g+2|0])|0)/1E3|0)|0;J[h>>2]=l;H[v+2|0]=(l|0)/(o|0);h=k+i|0;J[h>>2]=J[h>>2]+((P(C,K[g+2|0])|0)/1E3|0);i=A+20|0;h=i+f|0;J[h>>2]=J[h>>2]+((P(x,K[g+2|0])|0)/1E3|0);J[k+i>>2]=(P(F,K[g+2|0])|0)/1E3;E=E+1|0;n=Q(M+n);v=v+3|0}g=g+3|0;p=p+1|0;if((p|0)>2])continue;break}}if((b|0)>(E|0)){g=f+(z<<2)|0;H[v|0]=J[g>>2]/(o|0);H[v+1|0]=J[g+4>>2]/(o|0);H[v+2|0]=J[g+8>>2]/(o|0)}J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;S=Q(O+S);s=s+1|0;v=J[r+56>>2]+P(s,J[r+52>>2])|0;g=k;k=f}p=J[a+20>>2];y=y+1|0;if((p|0)>(y|0))continue; -break}}M:{N:{if(!((c|0)<=(s|0)|(b|0)<=0)){f=(G|0)<=1?1:G;q=f&1;if((f|0)!=1){h=f&2147483646;p=0;while(1){f=w<<2;H[v|0]=J[f+g>>2]/(o|0);H[v+1|0]=J[(f|4)+g>>2]/(o|0);w=w+2|0;v=v+2|0;p=p+2|0;if((h|0)!=(p|0))continue;break}}if(!q)break N;H[v|0]=J[(w<<2)+g>>2]/(o|0);break N}if(!g)break M}qc(g)}if(!k)break f;qc(k);break f}a=Z()|0;break d}a=Z()|0;break d;case 0:break g}if((c|0)<=0)break f;if((b|0)>0){k=0;while(1){J[a+328>>2]=(P(k,100)|0)/(c|0);if(J[a+332>>2])break f;j=Q(O*Q(k|0));O:{if(Q(R(j))>2]=K[m+988|0]|K[m+989|0]<<8|(K[m+990|0]<<16|K[m+991|0]<<24);Zp(r,g,k,m+8|0,0);h=J[695492];J[695492]=0;if((h|0)==1)break P;g=g+1|0;if((g|0)!=(b|0))continue;break}k=k+1|0;if((k|0)!=(c|0))continue;break f}break}a=Z()|0;break d}if(J[a+332>>2]){J[a+328>>2]=0;break f}J[a+328>>2]=(P(c,100)-100|0)/ -(c|0)}J[695492]=0;g=J[a+964>>2];f=J[695492];J[695492]=0;if((f|0)==1)break e;R:{if(!g)break R;if((d|0)==1){p=0;J[695492]=0;$(123,r|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;if((c|0)<=0|(b|0)<=0)break R;while(1){j=Q(O*Q(p|0));S:{if(Q(R(j))>2]=1032;J[695492]=0;$(13,g|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;$(14, -g|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break R}break a}a=Z()|0;break d}a=Z()|0;mj(g);break d}J[695492]=0;ga(108,(e?e:a)|0,r|0,1)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c}a=Z()|0}mj(r);ba(a|0);B()}J[r>>2]=1032;J[695492]=0;$(13,r|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;$(14,r|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}bc=m+1968|0;return X|0}ea(0)|0;yc();B()}function fEa(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;d=bc-208|0;bc=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(Gh(a))break l; -if(!c)Wr(b,2372280);J[d+200>>2]=0;J[d+192>>2]=0;J[d+196>>2]=0;J[d+184>>2]=0;J[695492]=0;J[d+176>>2]=0;J[d+180>>2]=0;ca(4803,a|0,2372296,d+192|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;J[695492]=0;ca(4803,a|0,2372340,d+176|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;g=H[d+203|0];f=(g|0)<0?J[d+196>>2]:g&255;e=f+3|0;if(e>>>0>=1073741808){J[695492]=0;_(2793,d+160|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break a}m:{if(e>>>0<=1){J[d+168>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;H[d+171|0]=e;c=d+160| -0;break m}c=e|3;if(c>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break c}J[695492]=0;j=c+1|0;c=$(4,j<<2)|0;h=J[695492];J[695492]=0;if((h|0)==1)break c;J[d+164>>2]=e;J[d+160>>2]=c;J[d+168>>2]=j|-2147483648}J[c+8>>2]=J[593096];e=J[593095];J[c>>2]=J[593094];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=Zc(e,(g|0)<0?J[d+192>>2]:d+192|0,c)+c|0,l=0,J[k>>2]=l;J[695492]=0;c=K[d+171|0];e=c<<24>>24<0;ga(2794,b|0,(e?J[d+160>>2]:d+160|0)|0,(e?J[d+164>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break e;if(H[d+171|0]<0)qc(J[d+160>>2]);J[d+168>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;J[d+152>>2]=0;J[695492]=0;J[d+144>>2]=0;J[d+148>>2]=0;j=Qg(a);c=J[695492];J[695492]=0;if((c|0)==1)break g;while(1){J[695492]=0;c=aa(4815,a|0,j|0)|0;e=J[695492];J[695492]=0;n:{o:{if((e|0)==1)break o;p:{if(c){J[695492]=0;da(4802,d+128|0,a|0);c=J[695492];J[695492]=0;q:{r:{s:{if((c|0)!=1){if(H[d+171|0]<0)qc(J[d+160>>2]);J[d+168>>2]=J[d+136>>2];c=J[d+132>>2];J[d+160>>2]=J[d+128>>2];J[d+164>>2]=c;t:{e=J[d+164>>2];c= -H[d+171|0];g=c&255;f=(c|0)<0;if(((f?e:g)|0)==15){if(!gd(f?J[d+160>>2]:d+160|0,2372392,15))break t;e=J[d+164>>2];g=K[d+171|0];c=g}f=c<<24>>24<0;if(((f?e:g)|0)==17)break q;break p}J[695492]=0;ca(4803,a|0,2372456,d+144|0);c=J[695492];J[695492]=0;if((c|0)==1)break o;c=H[d+155|0];g=(c|0)<0;u:{v:{f=g?J[d+148>>2]:c&255;e=f+3|0;w:{if(e>>>0>=1073741808){J[695492]=0;_(2793,d+128|0);break w}if(e>>>0<=1){J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;H[d+139|0]=e;c=d+128|0;break u}c=e|3;if(c>>>0<1073741823)break v; -J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;break f}J[695492]=0;h=c+1|0;c=$(4,h<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break s;J[d+132>>2]=e;J[d+128>>2]=c;J[d+136>>2]=h|-2147483648}J[c+8>>2]=J[593123];e=J[593122];J[c>>2]=J[593121];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=Zc(e,g?J[d+144>>2]:d+144|0,c)+c|0,l=0,J[k>>2]=l;J[695492]=0;c=K[d+139|0];e=c<<24>>24<0;ga(2794,b|0,(e?J[d+128>>2]:d+128|0)|0,(e?J[d+132>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break r;if(H[d+139|0]>=0)continue; -qc(J[d+128>>2]);continue}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0;if(H[d+139|0]>=0)break f;qc(J[d+128>>2]);break f}if(gd(f?J[d+160>>2]:d+160|0,2372500,17)){e=J[d+164>>2];g=K[d+171|0];c=g;break p}J[695492]=0;ca(4803,a|0,2372456,d+144|0);c=J[695492];J[695492]=0;if((c|0)==1)break o;c=H[d+155|0];g=(c|0)<0;x:{y:{z:{A:{f=g?J[d+148>>2]:c&255;e=f+3|0;B:{if(e>>>0>=1073741808){J[695492]=0;_(2793,d+128|0);break B}if(e>>>0<=1){J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;H[d+139|0]=e;c=d+128|0;break z}c=e|3;if(c>>> -0<1073741823)break A;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;break f}J[695492]=0;h=c+1|0;c=$(4,h<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break y;J[d+132>>2]=e;J[d+128>>2]=c;J[d+136>>2]=h|-2147483648}J[c+8>>2]=J[593145];e=J[593144];J[c>>2]=J[593143];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=Zc(e,g?J[d+144>>2]:d+144|0,c)+c|0,l=0,J[k>>2]=l;J[695492]=0;c=K[d+139|0];e=c<<24>>24<0;ga(2794,b|0,(e?J[d+128>>2]:d+128|0)|0,(e?J[d+132>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break x; -if(H[d+139|0]>=0)continue;qc(J[d+128>>2]);continue}a=Z()|0;break f}a=Z()|0;if(H[d+139|0]>=0)break f;qc(J[d+128>>2]);break f}J[695492]=0;a=$(4865,d+176|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;if(a){J[695492]=0;aa(2860,b|0,2373076)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g}if(H[d+155|0]<0)qc(J[d+144>>2]);if(H[d+171|0]<0)qc(J[d+160>>2]);if(H[d+187|0]<0)qc(J[d+176>>2]);if(H[d+203|0]>=0)break l;qc(J[d+192>>2]);break l}f=c<<24>>24<0;if(((f?e:g)|0)!=26)break n;if(gd(f?J[d+160>>2]:d+160|0,2372588, -26)){e=J[d+164>>2];g=K[d+171|0];c=g;break n}J[695492]=0;ca(4803,a|0,2372456,d+144|0);c=J[695492];J[695492]=0;if((c|0)==1)break o;c=H[d+155|0];g=(c|0)<0;C:{D:{E:{F:{f=g?J[d+148>>2]:c&255;e=f+3|0;G:{if(e>>>0>=1073741808){J[695492]=0;_(2793,d+128|0);break G}if(e>>>0<=1){J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;H[d+139|0]=e;c=d+128|0;break E}c=e|3;if(c>>>0<1073741823)break F;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;break f}J[695492]=0;h=c+1|0;c=$(4,h<<2)|0;i=J[695492]; -J[695492]=0;if((i|0)==1)break D;J[d+132>>2]=e;J[d+128>>2]=c;J[d+136>>2]=h|-2147483648}J[c+8>>2]=J[593176];e=J[593175];J[c>>2]=J[593174];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=Zc(e,g?J[d+144>>2]:d+144|0,c)+c|0,l=0,J[k>>2]=l;J[695492]=0;c=K[d+139|0];e=c<<24>>24<0;ga(2794,b|0,(e?J[d+128>>2]:d+128|0)|0,(e?J[d+132>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break C;if(H[d+139|0]>=0)continue;qc(J[d+128>>2]);continue}a=Z()|0;break f}a=Z()|0;if(H[d+139|0]>=0)break f;qc(J[d+128>>2]);break f}a=Z()|0;break f}c=c<< -24>>24<0;if(((c?e:g)|0)!=10)continue;if(gd(c?J[d+160>>2]:d+160|0,2372712,10))continue;J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[d+120>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[d+72>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;J[695492]=0;c=Yj(a);e=J[695492];J[695492]=0;if((e|0)==1)break k;H:{I:{if(!c)break I;J[695492]=0;da(4810,d+48|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break i;J:{while(1){c=K[d+59|0];g=c<<24>>24;f=(g|0)<0;K:{L:{M:{N:{O:{P:{e= -J[d+52>>2];switch((f?e:c)|0){case 0:break J;case 4:break P;default:break O}}if(!gd(f?J[d+48>>2]:d+48|0,2372756,4))break N;e=J[d+52>>2];c=K[d+59|0];g=c}f=g<<24>>24<0;if(((f?e:c)|0)==13)break M;break L}J[695492]=0;da(4811,d+32|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break j;if(H[d+139|0]<0)qc(J[d+128>>2]);J[d+136>>2]=J[d+40>>2];c=J[d+36>>2];J[d+128>>2]=J[d+32>>2];J[d+132>>2]=c;break K}if(gd(f?J[d+48>>2]:d+48|0,2372776,13)){e=J[d+52>>2];c=K[d+59|0];g=c;break L}J[695492]=0;da(4811,d+32|0,a|0);c=J[695492]; -J[695492]=0;if((c|0)!=1){if(H[d+123|0]<0)qc(J[d+112>>2]);J[d+120>>2]=J[d+40>>2];c=J[d+36>>2];J[d+112>>2]=J[d+32>>2];J[d+116>>2]=c;break K}break j}Q:{f=g<<24>>24<0;if(((f?e:c)|0)!=10)break Q;if(gd(f?J[d+48>>2]:d+48|0,2372832,10)){e=J[d+52>>2];c=K[d+59|0];g=c;break Q}J[695492]=0;da(4811,d+32|0,a|0);c=J[695492];J[695492]=0;if((c|0)!=1){if(H[d+107|0]<0)qc(J[d+96>>2]);J[d+104>>2]=J[d+40>>2];c=J[d+36>>2];J[d+96>>2]=J[d+32>>2];J[d+100>>2]=c;break K}break j}R:{f=g<<24>>24<0;if(((f?e:c)|0)!=14)break R;if(gd(f? -J[d+48>>2]:d+48|0,2372876,14)){e=J[d+52>>2];c=K[d+59|0];g=c;break R}J[695492]=0;da(4811,d+32|0,a|0);c=J[695492];J[695492]=0;if((c|0)!=1){if(H[d+91|0]<0)qc(J[d+80>>2]);J[d+88>>2]=J[d+40>>2];c=J[d+36>>2];J[d+80>>2]=J[d+32>>2];J[d+84>>2]=c;break K}break j}f=c;c=g<<24>>24<0;if(((c?e:f)|0)!=5)break K;if(gd(c?J[d+48>>2]:d+48|0,2372936,5))break K;J[695492]=0;da(4811,d+32|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break H;if(H[d+75|0]<0)qc(J[d+64>>2]);J[d+72>>2]=J[d+40>>2];c=J[d+36>>2];J[d+64>>2]=J[d+32>> -2];J[d+68>>2]=c}J[695492]=0;c=vi(a);e=J[695492];J[695492]=0;if((e|0)!=1){if(!c)break J;J[695492]=0;da(4810,d+32|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break j;if(H[d+59|0]<0)qc(J[d+48>>2]);J[d+56>>2]=J[d+40>>2];c=J[d+36>>2];J[d+48>>2]=J[d+32>>2];J[d+52>>2]=c;continue}break}break j}J[695492]=0;Ri(a);c=J[695492];J[695492]=0;if((c|0)==1)break j;if(H[d+59|0]>=0)break I;qc(J[d+48>>2])}c=H[d+139|0];g=(c|0)<0;S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{f=g?J[d+132>>2]:c&255;e=f+3|0;ba:{if(e>>>0>=1073741808){J[695492]= -0;_(2793,d|0);break ba}if(e>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=e;c=d;break $}c=e|3;if(c>>>0<1073741823)break aa;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;break h}J[695492]=0;h=c+1|0;c=$(4,h<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break _;J[d+4>>2]=e;J[d>>2]=c;J[d+8>>2]=h|-2147483648}J[c+8>>2]=J[593242];e=J[593241];J[c>>2]=J[593240];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=Zc(e,g?J[d+128>>2]:d+128|0,c)+c|0,l=0,J[k>>2]=l;J[695492]=0;c=aa(2860,d|0,2372976)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break Z;J[d+24>>2]=J[c+8>>2];e=J[c+4>>2];J[d+16>>2]=J[c>>2];J[d+20>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[695492]=0;c=K[d+123|0];e=c<<24>>24<0;c=ga(2794,d+16|0,(e?J[d+112>>2]:d+112|0)|0,(e?J[d+116>>2]:c)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Y;J[d+40>>2]=J[c+8>>2];e=J[c+4>>2];J[d+32>>2]=J[c>>2];J[d+36>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[695492]=0;c=aa(2860,d+32|0,2372976)|0;e=J[695492];J[695492]=0;if((e|0)==1)break X;J[d+56>>2]=J[c+8>>2];e=J[c+4>>2];J[d+48>> -2]=J[c>>2];J[d+52>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[695492]=0;c=K[d+59|0];e=c<<24>>24<0;ga(2794,b|0,(e?J[d+48>>2]:d+48|0)|0,(e?J[d+52>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break W;if(H[d+59|0]<0)qc(J[d+48>>2]);if(H[d+43|0]<0)qc(J[d+32>>2]);if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+11|0]<0)qc(J[d>>2]);J[695492]=0;c=$(4865,d+96|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k;J[695492]=0;aa(2860,b|0,(c?2372984:2372996)|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break S;break k}a=Z()|0;break h}a= -Z()|0;break T}a=Z()|0;break U}a=Z()|0;break V}a=Z()|0;if(H[d+59|0]>=0)break V;qc(J[d+48>>2])}if(H[d+43|0]>=0)break U;qc(J[d+32>>2])}if(H[d+27|0]>=0)break T;qc(J[d+16>>2])}if(H[d+11|0]>=0)break h;qc(J[d>>2]);break h}e=K[d+91|0];c=e<<24>>24<0;ca:{da:{if(((c?J[d+84>>2]:e)|0)!=16)break da;if(gd(c?J[d+80>>2]:d+80|0,2373008,16))break da;c=2372984;break ca}c=2372996}J[695492]=0;aa(2860,b|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;J[695492]=0;c=K[d+75|0];e=c<<24>>24<0;ga(2794,b|0,(e?J[d+64>>2]: -d- -64|0)|0,(e?J[d+68>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;if(H[d+75|0]<0)qc(J[d+64>>2]);if(H[d+91|0]<0)qc(J[d+80>>2]);if(H[d+107|0]<0)qc(J[d+96>>2]);if(H[d+123|0]<0)qc(J[d+112>>2]);if(H[d+139|0]>=0)continue;qc(J[d+128>>2]);continue}break}break j}bc=d+208|0;return}a=Z()|0;break h}a=Z()|0;if(H[d+59|0]>=0)break h;qc(J[d+48>>2]);break h}a=Z()|0}if(H[d+75|0]<0)qc(J[d+64>>2]);if(H[d+91|0]<0)qc(J[d+80>>2]);if(H[d+107|0]<0)qc(J[d+96>>2]);if(H[d+123|0]<0)qc(J[d+112>>2]);if(H[d+139|0]>= -0)break f;qc(J[d+128>>2]);break f}a=Z()|0}if(H[d+155|0]<0)qc(J[d+144>>2]);if(H[d+171|0]>=0)break b;qc(J[d+160>>2]);break b}a=Z()|0;if(H[d+171|0]>=0)break b;qc(J[d+160>>2]);break b}a=Z()|0;break b}a=Z()|0}if(H[d+187|0]<0)qc(J[d+176>>2]);if(H[d+203|0]<0)qc(J[d+192>>2]);ba(a|0);B()}B()}function IO(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-32|0;bc=g;h=J[a+584>>2];b=J[h+168>>2];if(!b){b=gc[J[a+648>>2]](J[a+628>>2])|0;J[h+168>>2]=b}c=J[h+196>>2];a:{if(!c)break a;if(b>>>0<=c>>>0){J[h+196>> -2]=0;J[h+200>>2]=0;break a}d=J[h+200>>2];if(c+d>>>0<=b>>>0?d:0)break a;J[h+200>>2]=b-c}J[h+1124>>2]=0;J[h+1128>>2]=0;b=J[a+180>>2];I[h+1148>>1]=0;J[h+1144>>2]=0;J[h+1132>>2]=b;b=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{while(1){l:{m:{n:{o:{p:{if(!(b&65535)){if(!Jj(h)){c=0;break d}b=L[h+1148>>1];if(!b)break p}q:{c=J[h+1152>>2];if(K[c|0]!=255)break q;b=b-1|0;I[h+1148>>1]=b;c=c+1|0;J[h+1152>>2]=c;r:{s:{t:{u:{v:{w:{while(1){if(!(b&65535)){if(!Jj(h)){c=0;break d}b=L[h+1148>>1];if(!b)break c;c=J[h+1152>>2]}e=K[c| -0];b=b-1|0;I[h+1148>>1]=b;c=c+1|0;J[h+1152>>2]=c;x:switch(e-192|0){case 24:break m;case 26:break s;case 0:case 1:case 3:break t;case 4:break u;case 27:break v;case 29:break w;case 63:continue;case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 62:break x;default:break r}break}c=0;if(!zn(h,g+10|0))break d;d=L[g+10>>1];if(d>>>0<=1){if(K[h+205|0])break d;Nc(J[a+628>>2],96640,79264,0);break d}if((d|0)==2)break m;b=L[h+1148>> -1];e=d-2|0;c=e&65535;d=b>>>0>>0?b:c;J[h+1152>>2]=d+J[h+1152>>2];I[h+1148>>1]=b-d;if(b>>>0>=c>>>0)break m;H[h+1140|0]=0;b=J[h+1144>>2];c=e-d|0;c=(b>>>0<(c&65535)>>>0?b:c)&65535;J[h+1144>>2]=b-c;J[h+1136>>2]=c+J[h+1136>>2];break m}y:{b=J[a+584>>2];if(!zn(b,g+16|0))break y;if(L[g+16>>1]!=4){Nc(J[a+628>>2],96720,82196,0);c=0;break d}if(!zn(b,g+16|0))break y;I[b+300>>1]=L[g+16>>1];break m}c=0;break d}b=J[a+584>>2];if(!zn(b,g+16|0))break e;d=K[b+205|0];c=L[g+16>>1];if(c>>>0<=2){if(d)break e;f=82376; -break f}c=c-2|0;if(d){d=L[b+1148>>1];e=c&65535;i=d>>>0>>0?d:e;J[b+1152>>2]=i+J[b+1152>>2];I[b+1148>>1]=d-i;if(d>>>0>=e>>>0)break m;H[b+1140|0]=0;d=J[b+1144>>2];c=c-i|0;c=(d>>>0<(c&65535)>>>0?d:c)&65535;J[b+1144>>2]=d-c;J[b+1136>>2]=c+J[b+1136>>2];break m}while(1){f=82376;if((c&65535)>>>0<65)break f;j=zc(73);if(!j){f=82408;break f}J[j>>2]=73;J[j+4>>2]=1124129791;e=L[b+1148>>1];d=65;i=j+8|0;while(1){if(!(e&65535)){if(!Jj(b))break e;e=L[b+1148>>1];if(!e)break b}k=d&65535;e=e&65535;k=e>>>0>k>>>0?k: -e;Ne(i,J[b+1152>>2],k);J[b+1152>>2]=k+J[b+1152>>2];e=L[b+1148>>1]-k|0;I[b+1148>>1]=e;i=i+k|0;d=d-k|0;if(d&65535)continue;break}d=K[j+8|0]&15;if(d>>>0>3)break f;d=b+(d<<2)|0;e=J[d+252>>2];if(e)qc(e);J[d+252>>2]=j;c=c-65|0;if(c&65535)continue;break}break m}b=J[a+584>>2];if(!zn(b,g+16|0))break g;c=K[b+205|0];d=L[g+16>>1];if(d>>>0<=2){if(c)break g;e=82818;break h}if(c){c=L[b+1148>>1];i=d-2|0;d=i&65535;e=c>>>0>>0?c:d;J[b+1152>>2]=e+J[b+1152>>2];I[b+1148>>1]=c-e;if(c>>>0>=d>>>0)break m;H[b+1140|0]=0; -c=J[b+1144>>2];d=i-e|0;d=(c>>>0<(d&65535)>>>0?c:d)&65535;J[b+1144>>2]=c-d;J[b+1136>>2]=d+J[b+1136>>2];break m}e=d+6|0;c=zc(e);if(!c){e=82408;break h}H[c+7|0]=d;H[c+4|0]=255;H[c+5|0]=196;J[c>>2]=e;H[c+6|0]=d>>>8;d=d-2|0;e=L[b+1148>>1];i=c+8|0;while(1){if(!(e&65535)){if(!Jj(b))break g;e=L[b+1148>>1];if(!e)break b}f=d&65535;e=e&65535;f=e>>>0>f>>>0?f:e;Ne(i,J[b+1152>>2],f);J[b+1152>>2]=f+J[b+1152>>2];e=L[b+1148>>1]-f|0;I[b+1148>>1]=e;i=f+i|0;d=d-f|0;if(d&65535)continue;break}e=82818;z:{d=K[c+8|0];i=d& -240;if(i){if((i|0)==16)break z;break h}if(d>>>0>3)break h;b=b+(d<<2)|0;d=J[b+268>>2];if(d)qc(d);J[b+268>>2]=c;break m}d=d&15;if(d>>>0>3)break h;b=b+(d<<2)|0;d=J[b+284>>2];if(d)qc(d);J[b+284>>2]=c;break m}b=J[a+584>>2];d=79264;if(K[b+303|0])break j;if(!K[b+205|0])H[b+304|0]=e;if(!zn(b,g+16|0))break i;c=L[g+16>>1];if(c>>>0<=10){if(K[b+205|0])break i;d=83025;break j}c=c-8|0;j=c&65535;i=(j>>>0)/3|0;if(c-P(i,3)&65535){if(K[b+205|0])break i;d=83025;break j}c=K[b+205|0];d=86885;if(!(c|(i|0)==K[b+192|0]))break j; -d=L[b+1148>>1];if(!d){if(!Jj(b))break i;d=L[b+1148>>1];if(!d)break c;c=K[b+205|0]}f=J[b+1152>>2];k=K[f|0];H[g+15|0]=k;I[b+1148>>1]=d-1;J[b+1152>>2]=f+1;if((k|0)!=8){if(c&255)break i;d=87058;break j}A:{if(c&255){c=L[b+1148>>1];d=c>>>0<4;f=d?c:4;J[b+1152>>2]=f+J[b+1152>>2];I[b+1148>>1]=c-f;if(d){H[b+1140|0]=0;c=J[b+1144>>2];d=4-f|0;d=(c>>>0<(d&65535)>>>0?c:d)&65535;J[b+1144>>2]=c-d;J[b+1136>>2]=d+J[b+1136>>2]}break A}if(!zn(b,g+12|0))break i;c=L[g+12>>1];d=87266;if(!(c>>>0>=M[b+176>>2]|c>>>0>=M[b+188>> -2]))break j;J[b+312>>2]=c;if(!zn(b,g+12|0))break i;c=L[g+12>>1];d=87415;if(!(c>>>0>=M[b+172>>2]|c>>>0>=M[b+180>>2]))break j;J[b+308>>2]=c}if(!lq(b,g+15|0))break i;if((i|0)==K[g+15|0]){if(!lq(b,g+15|0))break i;if(!K[b+205|0])H[b+316|0]=K[g+15|0];if(!lq(b,g+15|0))break i;c=K[g+15|0];if(K[b+205|0]){d=c&15;H[b+209|0]=d;c=c>>>4|0;H[b+208|0]=c;if(!(!(1<>>0>4|d>>>0>4))if(1<>2];J[g>>2]=e;Nc(a,96640,79946,g);c=0;break d}c=1;if(K[h+205|0])break d;break l}fa(80381,70456,1964,96663);B()}fa(79625,70456,1298,96640);B()}if(!lq(b,g+15|0))break i;d=K[b+205|0];if(!d)H[b+322|0]=K[g+15|0];c=1;if(j>>>0>=6)while(1){if(!lq(b,g+15|0))break i;if(!K[b+205|0])H[(b+c|0)+316|0]=K[g+15|0];if(!lq(b,g+15|0))break i;d=K[g+15|0];B:{if(K[b+205|0]){if((d|0)==17)break B;H[b+210|0]=1; -break B}H[(b+c|0)+319|0]=d;if(K[b+210|0])break B;if((d|0)!=17)break k}if(!lq(b,g+15|0))break i;d=K[b+205|0];if(!d)H[(b+c|0)+322|0]=K[g+15|0];c=c+1|0;if((i|0)!=(c|0))continue;break}if(!d)H[b+303|0]=1;if(K[h+205|0]){c=1;break d}if((e|0)==218)break l}b=L[h+1148>>1];continue}break}c=1;if(K[h+303|0])break d;C:{e=J[a+584>>2];if(!J[e+216>>2]){i=a+628|0;b=87962;break C}b=0;H[e+1140|0]=0;c=K[e+192|0];if(c){i=a+628|0;j=e+322|0;d=-1;while(1){D:{E:{k=e+(b<<2)|0;l=J[k+216>>2];if(!l){f=b-1|0;break E}F:{if(!b)break F; -f=b-1|0;if((l|0)==J[(e+(f<<2)|0)+216>>2])break E;c=0;if(b>>>0<=1)break F;while(1){if((l|0)!=J[(e+(c<<2)|0)+216>>2]){c=c+1|0;if((d|0)!=(c|0))continue;break F}break}b=88037;break C}f=zc(73);if(!f){b=82408;break C}H[f+8|0]=b;J[f>>2]=73;J[f+4>>2]=1124129791;c=0;gc[J[a+640>>2]](J[a+628>>2],J[k+216>>2],0)|0;if((gc[J[a+632>>2]](J[a+628>>2],f+9|0,64)|0)!=64)break d;J[k+252>>2]=f;H[(b+e|0)+322|0]=b;c=K[e+192|0];break D}H[b+j|0]=K[f+j|0]}d=d+1|0;b=b+1|0;if(b>>>0<(c&255)>>>0)continue;break}}H[h+304|0]=192;i= -K[h+192|0];G:{if(!i){H[h+319|0]=K[h+209|0]|K[h+208|0]<<4;break G}e=0;b=0;if(i>>>0>=8){f=i&248;c=h+316|0;d=0;while(1){H[b+c|0]=b;j=b|1;H[j+c|0]=j;j=b|2;H[j+c|0]=j;j=b|3;H[j+c|0]=j;j=b|4;H[j+c|0]=j;j=b|5;H[j+c|0]=j;j=b|6;H[j+c|0]=j;j=b|7;H[j+c|0]=j;b=b+8|0;d=d+8|0;if((f|0)!=(d|0))continue;break}}c=i&7;if(c)while(1){H[(b+h|0)+316|0]=b;b=b+1|0;e=e+1|0;if((c|0)!=(e|0))continue;break}H[h+319|0]=K[h+209|0]|K[h+208|0]<<4;if(i>>>0<2)break G;c=i-1|0;e=c&7;b=1;if(i-2>>>0>=7){i=c&-8;c=0;while(1){d=b+h|0;H[d+ -319|0]=17;H[d+320|0]=17;H[d+321|0]=17;H[d+322|0]=17;H[d+323|0]=17;H[d+324|0]=17;H[d+325|0]=17;H[d+326|0]=17;b=b+8|0;c=c+8|0;if((i|0)!=(c|0))continue;break}}if(!e)break G;c=0;while(1){H[(b+h|0)+319|0]=17;b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}H[h+303|0]=1;J[h+308>>2]=J[h+180>>2];J[h+312>>2]=J[h+188>>2];e=J[a+584>>2];if(!J[e+228>>2]){Nc(J[a+628>>2],96944,87962,0);c=0;break d}H[e+1140|0]=0;b=K[e+192|0];if(b){j=e+328|0;d=-1;c=0;while(1){H:{I:{k=e+(c<<2)|0;f=J[k+228>>2];if(!f){i=c-1|0;break I}J:{K:{if(!c)break K; -i=c-1|0;if((f|0)==J[(e+(i<<2)|0)+228>>2])break I;b=0;if(c>>>0<=1)break K;while(1){if((f|0)!=J[(e+(b<<2)|0)+228>>2]){b=b+1|0;if((d|0)!=(b|0))continue;break K}break}Nc(J[a+628>>2],96944,88186,0);break J}gc[J[a+640>>2]](J[a+628>>2],f,0)|0;if((gc[J[a+632>>2]](J[a+628>>2],g+16|0,16)|0)!=16)break J;i=K[g+31|0]+(K[g+30|0]+(K[g+29|0]+(K[g+28|0]+(K[g+27|0]+(K[g+26|0]+(K[g+25|0]+(K[g+24|0]+(K[g+23|0]+(K[g+22|0]+(K[g+21|0]+(K[g+20|0]+(K[g+19|0]+(K[g+18|0]+(K[g+17|0]+K[g+16|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)| -0)|0)|0)|0;f=i+25|0;b=zc(f);if(!b){Nc(J[a+628>>2],96944,82408,0);c=0;break d}H[b+8|0]=c;H[b+4|0]=255;H[b+5|0]=196;J[b>>2]=f;f=i+19|0;H[b+7|0]=f;H[b+6|0]=f>>>8;H[b+9|0]=K[g+16|0];H[b+10|0]=K[g+17|0];H[b+11|0]=K[g+18|0];H[b+12|0]=K[g+19|0];H[b+13|0]=K[g+20|0];H[b+14|0]=K[g+21|0];H[b+15|0]=K[g+22|0];H[b+16|0]=K[g+23|0];H[b+17|0]=K[g+24|0];H[b+18|0]=K[g+25|0];H[b+19|0]=K[g+26|0];H[b+20|0]=K[g+27|0];H[b+21|0]=K[g+28|0];H[b+22|0]=K[g+29|0];H[b+23|0]=K[g+30|0];H[b+24|0]=K[g+31|0];if((gc[J[a+632>>2]](J[a+ -628>>2],b+25|0,i)|0)!=(i|0))break J;J[k+268>>2]=b;H[(c+e|0)+328|0]=c<<4;b=K[e+192|0];break H}c=0;break d}H[c+j|0]=K[i+j|0]}d=d+1|0;c=c+1|0;if(c>>>0<(b&255)>>>0)continue;break}}e=0;d=0;b=bc-16|0;bc=b;f=J[a+584>>2];L:{if(!J[f+240>>2]){Nc(J[a+628>>2],96992,87962,0);break L}H[f+1140|0]=0;c=K[f+192|0];if(!c){e=1;break L}k=f+328|0;while(1){M:{N:{l=f+(d<<2)|0;j=J[l+240>>2];if(!j){i=d-1|0;break N}O:{if(!d)break O;i=d-1|0;if((j|0)==J[(f+(i<<2)|0)+240>>2])break N;e=0;c=0;if(d>>>0<=1)break O;while(1){if((j| -0)!=J[(f+(e<<2)|0)+240>>2]){c=c+1|0;e=c&255;if((i|0)>(e|0))continue;break O}break}e=0;Nc(J[a+628>>2],96992,88269,0);break L}e=0;gc[J[a+640>>2]](J[a+628>>2],j,0)|0;if((gc[J[a+632>>2]](J[a+628>>2],b,16)|0)!=16)break L;i=K[b+15|0]+(K[b+14|0]+(K[b+13|0]+(K[b+12|0]+(K[b+11|0]+(K[b+10|0]+(K[b+9|0]+(K[b+8|0]+(K[b+7|0]+(K[b+6|0]+(K[b+5|0]+(K[b+4|0]+(K[b+3|0]+(K[b+2|0]+(K[b|0]+K[b+1|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;j=i+25|0;c=zc(j);if(!c){Nc(J[a+628>>2],96992,82408,0);break L}H[c+4|0]=255;H[c+ -5|0]=196;J[c>>2]=j;H[c+8|0]=d|16;j=i+19|0;H[c+7|0]=j;H[c+6|0]=j>>>8;H[c+9|0]=K[b|0];H[c+10|0]=K[b+1|0];H[c+11|0]=K[b+2|0];H[c+12|0]=K[b+3|0];H[c+13|0]=K[b+4|0];H[c+14|0]=K[b+5|0];H[c+15|0]=K[b+6|0];H[c+16|0]=K[b+7|0];H[c+17|0]=K[b+8|0];H[c+18|0]=K[b+9|0];H[c+19|0]=K[b+10|0];H[c+20|0]=K[b+11|0];H[c+21|0]=K[b+12|0];H[c+22|0]=K[b+13|0];H[c+23|0]=K[b+14|0];H[c+24|0]=K[b+15|0];if((gc[J[a+632>>2]](J[a+628>>2],c+25|0,i)|0)!=(i|0))break L;J[l+284>>2]=c;c=d+f|0;H[c+328|0]=K[c+328|0]|d;c=K[f+192|0];break M}e= -d+k|0;H[e|0]=K[e|0]|K[i+k|0]&15}e=1;d=d+1|0;if(d>>>0<(c&255)>>>0)continue;break}}bc=b+16|0;if(!e){c=0;break d}c=1;a=K[h+192|0];if(a>>>0<2)break d;d=a-1|0;i=d&7;b=1;if(a-2>>>0>=7){e=d&-8;d=0;a=h+325|0;while(1){f=b+7|0;H[f+a|0]=f;f=b+6|0;H[f+a|0]=f;f=b+5|0;H[f+a|0]=f;f=b+4|0;H[f+a|0]=f;f=b+3|0;H[f+a|0]=f;f=b+2|0;H[f+a|0]=f;f=b+1|0;H[f+a|0]=f;H[a+b|0]=b;b=b+8|0;d=d+8|0;if((e|0)!=(d|0))continue;break}}if(!i)break d;e=0;while(1){H[(b+h|0)+325|0]=b;b=b+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}break d}c= -0;Nc(J[i>>2],96896,b,0);break d}d=87531}c=d;Nc(J[a+628>>2],96832,c,0)}c=0;break d}Nc(J[a+628>>2],96800,e,0)}c=0;break d}Nc(J[a+628>>2],96752,f,0)}c=0}bc=g+32|0;return c}fa(80381,70456,1949,96701);B()}fa(80381,70456,2006,96784);B()}function hRa(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;c=bc-240|0;bc=c;J[c+224>>2]=13;J[c+208>>2]=13;J[c+192>>2]=13;J[c+176>>2]=13;J[c+160>>2]=13;J[c+144>>2]=13;J[c+128>>2]=13;J[c+112>>2]=13;J[c+96>>2]=13;h=c+112|0;g=J[b+8>>2];d=J[a+20>> -2];a:{b:{while(1){if(J[d+72>>2]==7){e=c+224|0;if(J[Bc(J[d+80>>2],g,e,0)>>2]!=5)break b;uc(e)}d=J[d+104>>2];if(d)continue;break}J[c>>2]=g;xc(1,-1,789766,c);break a}if(J[c+224>>2]!=7){d=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}J[c+48>>2]=J[b+8>>2];xc(1,d,802078,c+48|0);uc(c+224|0);break a}if(J[a+16>>2]){vq(803095,0);Um(c+224|0,J[651372]);Ry(10)}if(J[Bc(J[c+232>>2],803387,c+208|0,0)>>2]-3>>>0>=4294967294){d=J[a+28>>2];O[d+440>>3]= -J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];b=J[a+8>>2];gc[J[J[b>>2]+100>>2]](b,d)}b=c+208|0;uc(b);if(J[Bc(J[c+232>>2],804104,b,0)>>2]==1){d=J[a+28>>2];b=J[c+216>>2];J[d+476>>2]=b>>>0<=2?b:0;b=J[a+8>>2];gc[J[J[b>>2]+92>>2]](b,d)}b=c+208|0;uc(b);if(J[Bc(J[c+232>>2],804503,b,0)>>2]==1){d=J[a+28>>2];b=J[c+216>>2];J[d+472>>2]=b>>>0<=2?b:0;b=J[a+8>>2];gc[J[J[b>>2]+88>>2]](b,d)}b=c+208|0;uc(b);if(J[Bc(J[c+232>>2],804963,b,0)>>2]-3>>>0>=4294967294){d=J[a+28>>2];O[d+480>>3]=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>> -3];b=J[a+8>>2];gc[J[J[b>>2]+96>>2]](b,d)}b=c+208|0;uc(b);d:{if(J[Bc(J[c+232>>2],805433,b,0)>>2]!=6)break d;d=J[c+216>>2];if(J[d+12>>2]!=2)break d;b=c+96|0;Mc(d,0,b,0);Mc(J[c+216>>2],1,h,0);if(!(J[c+96>>2]!=6|J[c+112>>2]-3>>>0<4294967294))yZ(a,b,d);uc(c+96|0);uc(h)}b=c+208|0;uc(b);if(J[Bc(J[c+232>>2],805848,b,0)>>2]-3>>>0>=4294967294){b=J[a+28>>2];i=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];e:{if(R(i)<2147483648){e=~~i;break e}e=-2147483648}O[b+464>>3]=e|0;d=J[a+8>>2];gc[J[J[d>>2]+84>>2]](d,b)}b=c+208| -0;uc(b);if(J[Bc(J[c+232>>2],806270,b,0)>>2]==4)tI(a,b,d);b=c+208|0;uc(b);f:{if(J[Bc(J[c+232>>2],774522,b,0)>>2]!=6)break f;b=J[c+216>>2];if(J[b+12>>2]!=2)break f;jg(b,0,c+192|0);jg(J[c+216>>2],1,c+160|0);g:{if(J[c+192>>2]!=9|J[c+160>>2]-3>>>0<4294967294)break g;e=J[c+200>>2];g=J[c+204>>2];d=J[a+20>>2];h:{while(1){b=J[d+4>>2];if(b){J[c+40>>2]=e;J[c+44>>2]=g;J[c+64>>2]=e;J[c+68>>2]=g;b=qZ(b,c+40|0);if(b)break h}d=J[d+104>>2];if(d)continue;break}J[c+36>>2]=g;J[c+32>>2]=e;xc(1,-1,783396,c+32|0);b=0}if(!b){b= -J[a+28>>2];J[b+496>>2]=0;J[b+500>>2]=0;J[b+492>>2]=0;break g}i=J[c+160>>2]==1?+J[c+168>>2]:O[c+168>>3];if(J[a+16>>2]){g=J[J[b+4>>2]+4>>2];e=J[b+16>>2];if(e)e=J[e+4>>2];else e=823260;O[c+24>>3]=i;J[c+20>>2]=e;J[c+16>>2]=g;Sy(822994,c+16|0);Ji(J[651372])}e=J[a+28>>2];O[e+496>>3]=i;J[e+492>>2]=b;J[a+32>>2]=1}uc(c+192|0);uc(c+160|0)}g=c+208|0;uc(g);i:{if(J[Bc(J[c+232>>2],806708,g,0)>>2]==5)break i;e=0;b=0;h=bc-16|0;bc=h;J[h>>2]=13;j:{k:{l:switch(J[g>>2]-4|0){case 2:e=1;m:{d=J[g+8>>2];if(J[d+12>>2]>0)while(1){Mc(d, -b,h,0);if(J[h>>2]!=4)break m;d=J[h+8>>2];if(!Ec(d,824458)){d=0;break k}if(!Ec(d,824841)){d=1;break k}if(!Ec(d,825012)){d=2;break k}if(!Ec(d,825310)){d=3;break k}if(!Ec(d,825473)){d=4;break k}if(!Ec(d,825724)){d=5;break k}if(!Ec(d,827475)){d=6;break k}if(!Ec(d,827741)){d=7;break k}if(!Ec(d,827898)){d=8;break k}if(!Ec(d,828036)){d=9;break k}if(!Ec(d,828216)){d=10;break k}if(!Ec(d,828479)){d=11;break k}if(!Ec(d,828606)){d=12;break k}if(!Ec(d,828806)){d=13;break k}if(!Ec(d,828978)){d=14;break k}if(!Ec(d, -829098)){d=15;break k}if(!Ec(d,829226)){d=16;break k}uc(h);b=b+1|0;d=J[g+8>>2];if((b|0)>2])continue;break}J[c+92>>2]=0;break j}uc(h);e=0;break j;case 0:break l;default:break j}b=J[g+8>>2];d=0;n:{if(!Ec(b,824458))break n;d=1;if(!Ec(b,824841))break n;d=2;if(!Ec(b,825012))break n;d=3;if(!Ec(b,825310))break n;d=4;if(!Ec(b,825473))break n;d=5;if(!Ec(b,825724))break n;d=6;if(!Ec(b,827475))break n;d=7;if(!Ec(b,827741))break n;d=8;if(!Ec(b,827898))break n;d=9;if(!Ec(b,828036))break n;d=10;if(!Ec(b, -828216))break n;d=11;if(!Ec(b,828479))break n;d=12;if(!Ec(b,828606))break n;d=13;if(!Ec(b,828806))break n;d=14;if(!Ec(b,828978))break n;d=15;if(!Ec(b,829098))break n;if(Ec(b,829226))break j;d=16}J[c+92>>2]=J[(d<<3)+2206468>>2];e=1;break j}b=J[(d<<3)+2206468>>2];uc(h);J[c+92>>2]=b}bc=h+16|0;if(e){e=J[a+28>>2];J[e+388>>2]=J[c+92>>2];b=J[a+8>>2];gc[J[J[b>>2]+124>>2]](b,e);break i}d=-1;b=J[a+108>>2];o:{if(!b)break o;b=J[b+4>>2];if(J[b+8>>2]==13)break o;b=J[b+16>>2];d=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,d, -807103,0)}b=c+208|0;uc(b);if(J[Bc(J[c+232>>2],807495,b,0)>>2]-3>>>0>=4294967294){e=J[a+28>>2];i=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];O[e+392>>3]=i<0?0:i>1?1:i;b=J[a+8>>2];gc[J[J[b>>2]+128>>2]](b,e)}b=c+208|0;uc(b);if(J[Bc(J[c+232>>2],807846,b,0)>>2]-3>>>0>=4294967294){e=J[a+28>>2];i=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];O[e+400>>3]=i<0?0:i>1?1:i;b=J[a+8>>2];gc[J[J[b>>2]+132>>2]](b,e)}b=c+208|0;uc(b);g=J[Bc(J[c+232>>2],808001,b,0)>>2];p:{if(g)break p;e=J[a+28>>2];if(!J[e+664>>2]){J[e+408>>2]= -J[c+216>>2];b=J[a+8>>2];gc[J[J[b>>2]+136>>2]](b,e);break p}b=-1;e=J[a+108>>2];q:{if(!e)break q;e=J[e+4>>2];if(J[e+8>>2]==13)break q;b=J[e+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0}xc(0,b,808286,0)}b=c+208|0;uc(b);r:{if(J[Bc(J[c+232>>2],808989,b,0)>>2])break r;e=J[a+28>>2];if(!J[e+664>>2]){J[e+412>>2]=J[c+216>>2];b=J[a+8>>2];gc[J[J[b>>2]+140>>2]](b,e);if(!g)break r;e=J[a+28>>2];J[e+408>>2]=J[c+216>>2];b=J[a+8>>2];gc[J[J[b>>2]+136>>2]](b,e);break r}d=-1;b=J[a+108>>2];s:{if(!b)break s;b=J[b+4>>2];if(J[b+8>> -2]==13)break s;b=J[b+16>>2];d=gc[J[J[b>>2]+52>>2]](b)|0}xc(0,d,808286,0)}b=c+208|0;uc(b);t:{if(J[Bc(J[c+232>>2],809299,b,0)>>2]!=1)break t;e=J[a+28>>2];if(!J[e+664>>2]){J[e+416>>2]=J[c+216>>2];b=J[a+8>>2];gc[J[J[b>>2]+144>>2]](b,e);break t}d=-1;b=J[a+108>>2];u:{if(!b)break u;b=J[b+4>>2];if(J[b+8>>2]==13)break u;b=J[b+16>>2];d=gc[J[J[b>>2]+52>>2]](b)|0}xc(0,d,808286,0)}b=c+208|0;uc(b);if(!J[Bc(J[c+232>>2],826539,b,0)>>2]){e=J[a+28>>2];J[e+488>>2]=J[c+216>>2];b=J[a+8>>2];gc[J[J[b>>2]+104>>2]](b,e)}b= -c+208|0;uc(b);if(J[Bc(J[c+232>>2],826882,b,0)>>2]==5){uc(b);Bc(J[c+232>>2],809745,b,0)}b=J[c+208>>2];v:{if((b|0)==5)break v;e=J[a+28>>2];if(!J[e+664>>2]){w:{x:{y:switch(b-4|0){case 0:b=J[c+216>>2];if(Ec(b,810003))if(Ec(b,810284))break x;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;jI(e,c- -64|0);b=J[a+8>>2];gc[J[J[b>>2]+152>>2]](b,J[a+28>>2]);break v;case 3:case 4:break x;case 2:break y;default:break w}b=J[c+216>>2];if(J[b+12>>2]!=4)break w;e=b;b=c+192|0;Mc(e,0,b,0);n=c,o=Sh(b,1,1,0),J[n+64>> -2]=o;uc(b);if(!J[c+64>>2])break v;Mc(J[c+216>>2],1,b,0);n=c,o=Sh(b,1,1,0),J[n+68>>2]=o;uc(b);if(!J[c+68>>2])break v;Mc(J[c+216>>2],2,b,0);n=c,o=Sh(b,1,1,0),J[n+72>>2]=o;uc(b);if(!J[c+72>>2])break v;Mc(J[c+216>>2],3,b,0);n=c,o=Sh(c+192|0,1,1,0),J[n+76>>2]=o;uc(b);if(!J[c+76>>2])break v;jI(J[a+28>>2],c- -64|0);b=J[a+8>>2];gc[J[J[b>>2]+152>>2]](b,J[a+28>>2]);break v}b=Sh(c+208|0,1,1,0);J[c+64>>2]=b;if(!b)break v;J[c+76>>2]=0;J[c+68>>2]=0;J[c+72>>2]=0;jI(J[a+28>>2],c- -64|0);b=J[a+8>>2];gc[J[J[b>>2]+ -152>>2]](b,J[a+28>>2]);break v}d=-1;b=J[a+108>>2];z:{if(!b)break z;b=J[b+4>>2];if(J[b+8>>2]==13)break z;b=J[b+16>>2];d=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,d,810745,0);break v}d=-1;b=J[a+108>>2];A:{if(!b)break A;b=J[b+4>>2];if(J[b+8>>2]==13)break A;b=J[b+16>>2];d=gc[J[J[b>>2]+52>>2]](b)|0}xc(0,d,810922,0)}b=c+208|0;uc(b);B:{if(J[Bc(J[c+232>>2],811456,b,0)>>2]==5)break B;C:{D:switch(J[c+208>>2]-4|0){case 0:if(Ec(J[c+216>>2],811771))break C;b=J[a+8>>2];gc[J[J[b>>2]+344>>2]](b,J[a+28>>2]);break B;case 1:break B; -case 3:break D;default:break C}Bc(J[c+216>>2],812126,c+192|0,0);E:{F:{if(J[c+192>>2]!=4)break F;e=J[c+200>>2];b=1;if(!Ec(e,812360))break E;if(Ec(e,812496))break F;b=0;break E}d=-1;b=J[a+108>>2];G:{if(!b)break G;b=J[b+4>>2];if(J[b+8>>2]==13)break G;b=J[b+16>>2];d=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,d,812983,0);b=0}e=c+192|0;uc(e);J[c+64>>2]=0;H:{if(J[Bc(J[c+216>>2],809745,e,0)>>2]==5)break H;I:{if(J[c+192>>2]!=4)break I;e=J[c+200>>2];if(Ec(e,810003))if(Ec(e,810284))break I;J[c+64>>2]=0;break H}e=Sh(c+192| -0,1,1,0);J[c+64>>2]=e;if(e)break H;d=-1;e=J[a+108>>2];J:{if(!e)break J;e=J[e+4>>2];if(J[e+8>>2]==13)break J;e=J[e+16>>2];d=gc[J[J[e>>2]+52>>2]](e)|0}xc(1,d,813321,0);e=J[c+64>>2];if(e)gc[J[J[e>>2]+4>>2]](e);J[c+64>>2]=0}j=c+192|0;uc(j);m=c+128|0;Bc(J[c+216>>2],813600,m,0);K:{if(J[Bc(J[c+216>>2],813911,j,0)>>2]==8){e=J[c+200>>2];L:{if(J[Bc(gc[J[J[e>>2]+76>>2]](e)|0,814042,c+160|0,0)>>2]==7){h=c+144|0;g=J[Bc(J[c+168>>2],814294,h,0)>>2];e=J[c+152>>2];uc(h);l=c+176|0;Ce(J[c+216>>2],813911,l);d=g?0:e; -h=J[c+64>>2];f=bc-112|0;bc=f;J[f+16>>2]=13;J[f>>2]=13;M:{if(J[a+96>>2]>20)break M;e=J[j+8>>2];k=gc[J[J[e>>2]+76>>2]](e)|0;Bc(k,815124,f+16|0,0);e=J[f+16>>2];if(!((e|0)==5|(e|0)==1&J[f+24>>2]==1)){g=-1;e=J[a+108>>2];N:{if(!e)break N;e=J[e+4>>2];if(J[e+8>>2]==13)break N;e=J[e+16>>2];g=gc[J[J[e>>2]+52>>2]](e)|0}xc(1,g,815363,0)}e=f+16|0;uc(e);Bc(k,815551,e,0);O:{P:{if(J[f+16>>2]==6){Mc(J[f+24>>2],0,f,0);O[f+32>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],1,f,0);O[f+40>>3]=J[f>>2]==1?+J[f+ -8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],2,f,0);O[f+48>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],3,f,0);O[f+56>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);uc(e);Bc(k,816060,e,0);if(J[f+16>>2]!=6)break P;Mc(J[f+24>>2],0,f,0);O[f+64>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],1,f,0);O[f+72>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],2,f,0);O[f+80>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],3,f,0);O[f+88>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>> -2],4,f,0);O[f+96>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],5,f,0);O[f+104>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(f);break O}uc(f+16|0);d=-1;a=J[a+108>>2];Q:{if(!a)break Q;a=J[a+4>>2];if(J[a+8>>2]==13)break Q;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,815828,0);break M}J[f+80>>2]=0;J[f+84>>2]=0;J[f+104>>2]=0;J[f+108>>2]=0;J[f+72>>2]=0;J[f+76>>2]=0;J[f+64>>2]=0;J[f+68>>2]=1072693248;J[f+96>>2]=0;J[f+100>>2]=0;J[f+88>>2]=0;J[f+92>>2]=1072693248}j=f+16|0;uc(j);Bc(k,816318,j,0);g=J[f+ -24>>2];e=J[f+16>>2];J[a+96>>2]=J[a+96>>2]+1;Uv(a,l,(e|0)==7?g:0,f- -64|0,f+32|0,1,1,1,d,b,h,m);J[a+96>>2]=J[a+96>>2]-1;uc(j)}bc=f+112|0;uc(l);a=J[c+64>>2];if(!a)break L;gc[J[J[a>>2]+4>>2]](a);break L}d=-1;a=J[a+108>>2];R:{if(!a)break R;a=J[a+4>>2];if(J[a+8>>2]==13)break R;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,814451,0)}uc(c+160|0);break K}d=-1;a=J[a+108>>2];S:{if(!a)break S;a=J[a+4>>2];if(J[a+8>>2]==13)break S;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,814451,0)}uc(c+192|0);uc(c+128| -0);break B}d=-1;a=J[a+108>>2];T:{if(!a)break T;a=J[a+4>>2];if(J[a+8>>2]==13)break T;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,814859,0)}uc(c+208|0);uc(c+224|0)}bc=c+240|0}function vj(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;m=bc-32|0;bc=m;a:{b:{if(J[a+8>>2]==13)break b;f=a+8|0;while(1){c=J[a+16>>2];e=gc[J[J[c>>2]+28>>2]](c)|0;if((e|0)==-1){c=J[a+16>>2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Mc(e,c,f,0);c=J[a+ -16>>2];gc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break b}c:{d:{if(h){h=(e|0)!=13&(e|0)!=10;break d}h=1;if((e|0)==37)break d;h=0;if(K[e+2306848|0]!=1)break c}if(J[f>>2]!=13)continue;break b}break}c=0;g=1;i=1;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:switch(e-40|0){case 5:if(J[f>>2]==13){i=0;break q}i=0;e=J[a+16>>2];if((gc[J[J[e>>2]+32>>2]](e)|0)!=45)break s;g=0;if(J[f>>2]==13)break q;while(1){c=J[a+16>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1){c=J[a+16>>2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+ -4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Mc(e,c,f,0);c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c)}c=0;if(J[f>>2]!=13)continue;break q}if(J[f>>2]==13){c=0;break q}c=J[a+16>>2];c=gc[J[J[c>>2]+32>>2]](c)|0;d=J[a+8>>2];if((c|0)!=45){c=0;break r}c=0;if((d|0)!=13)continue;break}break r;case 7:break g;case 51:case 53:break h;case 20:break i;case 22:break j;case 1:case 83:case 85:break k;case 0:break n;case 6:break o;case 3:break s;case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:break t; -default:break l}c=e-48|0;l=+(c|0)}d=J[f>>2]}if((d|0)==13)break q;while(1){e=J[a+16>>2];d=gc[J[J[e>>2]+32>>2]](e)|0;e=d-48|0;if(e>>>0<=9){d=13;u:{if(J[f>>2]==13)break u;while(1){d=J[a+16>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)!=-1){d=J[f>>2];break u}d=J[a+16>>2];gc[J[J[d>>2]+24>>2]](d);uc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;h=J[a>>2];if((d|0)>2]){Mc(h,d,f,0);d=J[a+16>>2];gc[J[J[d>>2]+20>>2]](d)}d=13;if(J[f>>2]!=13)continue;break}}l=l<1E20?l*10+ +(e|0):l;c=e+P(c,10)|0;if((d|0)!=13)continue;break q}break}if((d| -0)==46)break p}v:while(1){d=-1;if(J[f>>2]!=13){e=J[a+16>>2];d=gc[J[J[e>>2]+32>>2]](e)|0}if((d|0)!=45&d-48>>>0>9)break m;if(J[f>>2]==13)continue;while(1){e=J[a+16>>2];if((gc[J[J[e>>2]+28>>2]](e)|0)!=-1)continue v;e=J[a+16>>2];gc[J[J[e>>2]+24>>2]](e);uc(f);e=J[a+4>>2]+1|0;J[a+4>>2]=e;d=J[a>>2];if((e|0)>2]){Mc(d,e,f,0);e=J[a+16>>2];gc[J[J[e>>2]+20>>2]](e)}if(J[f>>2]!=13)continue;break}continue}}w:{if(J[f>>2]==13)break w;while(1){c=J[a+16>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)!=-1)break w;c=J[a+16>> -2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Mc(e,c,f,0);c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}}g=i}if(J[f>>2]==13)break e;o=.1;while(1){p=o;while(1){c=J[a+16>>2];c=gc[J[J[c>>2]+32>>2]](c)|0;if((c|0)==45){if(J[f>>2]!=13){c=J[a+16>>2];e=gc[J[J[c>>2]+52>>2]](c)|0}else e=-1;xc(0,e,774702,0);if(J[f>>2]==13)break e;while(1){c=J[a+16>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)==-1){c=J[a+16>>2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+4>>2]+ -1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Mc(e,c,f,0);c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break e}break}if(J[f>>2]!=13)continue;break e}break}e=c-48|0;if(e>>>0>=10)break e;x:{if(J[f>>2]==13)break x;while(1){c=J[a+16>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)!=-1)break x;c=J[a+16>>2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;d=J[a>>2];if((c|0)>2]){Mc(d,c,f,0);c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}}o=p*.1;l=p*+(e|0)+l;if(J[f>> -2]!=13)continue;break}break e}e=a+28|0;y:{z:{if(J[a+8>>2]==13){i=0;break z}k=1;i=0;c=e;while(1){d=J[a+16>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)!=-1){A:{B:{C:switch(d-13|0){default:if((d|0)!=92)break B;if(J[f>>2]==13)break z;D:{E:{F:{G:{H:{I:{while(1){J:{K:{d=J[a+16>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;switch(d+1|0){case 11:break A;case 103:break D;case 99:break E;case 117:break F;case 115:break G;case 111:break H;case 14:break I;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:break J; -case 0:break K;default:break B}}d=J[a+16>>2];gc[J[J[d>>2]+24>>2]](d);uc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;g=J[a>>2];if((d|0)>2]){Mc(g,d,f,0);d=J[a+16>>2];gc[J[J[d>>2]+20>>2]](d)}if(J[f>>2]!=13)continue;break z}break}d=d-48|0;if(J[f>>2]==13)break B;g=J[a+16>>2];g=gc[J[J[g>>2]+32>>2]](g)|0;if((g&-8)!=48)break B;d=(g+(d<<3)|0)-48|0;Mi(a);if(J[a+8>>2]==13)break B;g=J[a+16>>2];g=gc[J[J[g>>2]+32>>2]](g)|0;if((g&-8)!=48)break B;Mi(a);d=(g+(d<<3)|0)-48|0;break B}if(J[f>>2]==13)break A;d=J[a+16>>2];if((gc[J[J[d>> -2]+32>>2]](d)|0)!=10)break A;Mi(a);break A}d=10;break B}d=13;break B}d=9;break B}d=8;break B}d=12;break B;case 0:d=10;if(J[f>>2]==13)break B;g=J[a+16>>2];if((gc[J[J[g>>2]+32>>2]](g)|0)!=10)break B;Mi(a);break B;case 28:d=41;k=k-1|0;if(k)break B;break y;case 1:case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:break B;case 27:break C}k=k+1|0;d=40}L:{if((h|0)!= -128)break L;if(!i){h=0;j=rc(8);J[695492]=0;i=ga(3181,j|0,e|0,128)|0;g=J[695492];J[695492]=0;c=e;if((g|0)!=1)break L;break f}cf(i,e,128);h=0;c=e}H[c|0]=d;h=h+1|0;c=c+1|0}if(J[f>>2]!=13)continue;break z}d=J[a+16>>2];gc[J[J[d>>2]+24>>2]](d);uc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;g=J[a>>2];if((d|0)>2]){Mc(g,d,f,0);d=J[a+16>>2];gc[J[J[d>>2]+20>>2]](d)}if(J[f>>2]!=13)continue;break}}xc(1,-1,775980,0)}M:{if(!i){j=rc(8);J[695492]=0;i=ga(3181,j|0,e|0,h|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break M;break f}cf(i, -e,h)}J[b+8>>2]=i;J[b>>2]=3;break a}J[b>>2]=1;J[b+8>>2]=g?i?c:0-c|0:0;break a}H[a+28|0]=e;h=a+29|0;c=a+28|0;N:{if(J[a+8>>2]==13)break N;while(1){e=J[a+16>>2];e=gc[J[J[e>>2]+32>>2]](e)|0;if((e|0)==-1|K[e+2306848|0])break N;O:{if(J[f>>2]==13)break O;while(1){d=J[a+16>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)!=-1)break O;d=J[a+16>>2];gc[J[J[d>>2]+24>>2]](d);uc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;g=J[a>>2];if((d|0)>2]){Mc(g,d,f,0);d=J[a+16>>2];gc[J[J[d>>2]+20>>2]](d)}if(J[f>>2]!=13)continue;break}}i=i+1|0; -if((i|0)==128){if(J[f>>2]!=13){a=J[a+16>>2];a=gc[J[J[a>>2]+52>>2]](a)|0}else a=-1;xc(1,a,783628,0);break N}H[h|0]=e;h=h+1|0;if(J[f>>2]!=13)continue;break}}H[h|0]=0;P:{Q:switch(K[c|0]-102|0){case 14:if(Wc(c,784637,5))break P;J[b+8>>2]=1;J[b>>2]=0;break a;case 0:if(Wc(c,785436,6))break P;J[b+8>>2]=0;J[b>>2]=0;break a;case 8:break Q;default:break P}if(Wc(c,786375,5))break P;J[b>>2]=5;break a}J[b>>2]=10;r=b,s=Md(c),J[r+8>>2]=s;break a}j=-1;if(J[f>>2]!=13){a=J[a+16>>2];j=gc[J[J[a>>2]+52>>2]](a)|0}J[m>> -2]=e;xc(1,j,783163,m);J[b>>2]=11;break a}d=-1;R:{if(J[f>>2]==13)break R;c=J[a+16>>2];if((gc[J[J[c>>2]+32>>2]](c)|0)==62){Mi(a);H[a+30|0]=0;I[a+28>>1]=15934;J[b>>2]=10;r=b,s=Md(a+28|0),J[r+8>>2]=s;break a}if(J[f>>2]==13)break R;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,782244,0);J[b>>2]=11;break a}S:{T:{if(J[f>>2]==13){c=a+28|0;g=0;i=0;break T}c=J[a+16>>2];if((gc[J[J[c>>2]+32>>2]](c)|0)==60){Mi(a);H[a+30|0]=0;I[a+28>>1]=15420;J[b>>2]=10;r=b,s=Md(a+28|0),J[r+8>>2]=s;break a}c=a+28|0;i=0;if(J[a+ -8>>2]==13){g=0;break T}g=0;e=c;while(1){U:{V:{W:{d=J[a+16>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)!=-1){if((d|0)==62)break S;if(K[d+2306848|0]==1)break U;k=k<<4;j=d-48|0;if(j>>>0>9)break W;k=j+k|0;break V}d=J[a+16>>2];gc[J[J[d>>2]+24>>2]](d);uc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;j=J[a>>2];if((d|0)>2]){Mc(j,d,f,0);d=J[a+16>>2];gc[J[J[d>>2]+20>>2]](d)}if(J[f>>2]!=13)continue;break T}if(d-65>>>0<=5){k=(d+k|0)-55|0;break V}if(d-97>>>0<=5){k=(d+k|0)-87|0;break V}j=-1;if(J[f>>2]!=13){j=J[a+16>>2];j= -gc[J[J[j>>2]+52>>2]](j)|0}J[m+16>>2]=d;xc(1,j,780517,m+16|0)}if((i|0)!=1){i=1;break U}X:{if((g|0)!=128)break X;if(!h){g=0;j=rc(8);J[695492]=0;h=ga(3181,j|0,c|0,128)|0;d=J[695492];J[695492]=0;e=c;if((d|0)!=1)break X;break f}cf(h,c,128);g=0;e=c}H[e|0]=k;g=g+1|0;e=e+1|0;k=0;i=0}if(J[f>>2]!=13)continue;break}}xc(1,-1,779527,0)}Y:{if(!h){j=rc(8);J[695492]=0;h=ga(3181,j|0,c|0,g|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break Y;break f}cf(h,c,g)}if((i|0)==1)zd(h,k<<28>>24);J[b+8>>2]=h;J[b>>2]=3;break a}H[a+ -28|0]=e;H[a+29|0]=0;J[b>>2]=10;r=b,s=Md(a+28|0),J[r+8>>2]=s;break a}k=a+28|0;i=k;Z:{if(J[a+8>>2]!=13){g=0;while(1){c=J[a+16>>2];h=gc[J[J[c>>2]+32>>2]](c)|0;if(!((h|0)==-1|K[h+2306848|0])){j=d;_:{if(J[f>>2]==13)break _;while(1){c=J[a+16>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)!=-1)break _;c=J[a+16>>2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Mc(e,c,f,0);c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}}$:{if((h|0)!=35)break $;d=-1;aa:{ba:{ca:{if(J[f>> -2]==13)break ca;da:{c=J[a+16>>2];c=gc[J[J[c>>2]+32>>2]](c)|0;h=c-48|0;ea:{if(h>>>0<10)break ea;if(c-65>>>0<=5){h=c-55|0;break ea}if(c-97>>>0>5)break da;h=c-87|0}e=-1;if(J[f>>2]==13)break aa;while(1){c=J[a+16>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)!=-1)break ba;c=J[a+16>>2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;d=J[a>>2];if((c|0)>2]){Mc(d,c,f,0);c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}break aa}if(J[f>>2]==13)break ca;c=J[a+16>>2];d=gc[J[J[c>>2]+52>> -2]](c)|0}xc(1,d,777134,0);h=35;break $}if(J[f>>2]==13)break aa;fa:{c=J[a+16>>2];d=gc[J[J[c>>2]+32>>2]](c)|0;c=d-48|0;ga:{if(c>>>0<=9){n=c+(h<<4)|0;break ga}c=d+(h<<4)|0;n=c-55|0;if(d-65>>>0<=5)break ga;if(d-97>>>0>5)break fa;n=c-87|0}h=n;ha:{if(J[f>>2]==13)break ha;while(1){c=J[a+16>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)!=-1)break ha;c=J[a+16>>2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Mc(e,c,f,0);c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue; -break}}q=h?q:1;break $}if(J[f>>2]==13)break aa;c=J[a+16>>2];e=gc[J[J[c>>2]+52>>2]](c)|0}xc(1,e,777134,0)}d=j+1|0;ia:{if(j>>>0<=126){H[i|0]=h;i=i+1|0;break ia}if((d|0)==128){H[i|0]=h;j=rc(8);J[695492]=0;g=ga(3181,j|0,k|0,128)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break ia;break f}zd(g,h<<24>>24)}if(J[f>>2]!=13)continue}break}if(q){if(J[f>>2]!=13){a=J[a+16>>2];a=gc[J[J[a>>2]+52>>2]](a)|0}else a=-1;xc(1,a,778384,0);J[b>>2]=11;if(!g)break a;qc(Rc(g));break a}if(d>>>0>127)break Z}H[i|0]=0;J[b>>2]=4;r= -b,s=Md(k),J[r+8>>2]=s;break a}a=J[g+4>>2];J[b>>2]=4;r=b,s=Md(a),J[r+8>>2]=s;qc(Rc(g));break a}a=Z()|0;qc(j);ba(a|0);B()}ja:while(1){d=-1;if(J[f>>2]!=13){c=J[a+16>>2];d=gc[J[J[c>>2]+32>>2]](c)|0}if(!((d|0)!=45&d-48>>>0>9)){if(J[f>>2]==13)continue;while(1){c=J[a+16>>2];if((gc[J[J[c>>2]+28>>2]](c)|0)!=-1)continue ja;c=J[a+16>>2];gc[J[J[c>>2]+24>>2]](c);uc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Mc(e,c,f,0);c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}continue}break}J[b>> -2]=2;O[b+8>>3]=g?l:-l;break a}J[b>>2]=12}bc=m+32|0}function CWa(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;j=bc-288|0;bc=j;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if(K[a+204|0])break m;k=J[a+168>>2];if(!k)break m;J[j+260>>2]=0;J[j+264>>2]=0;J[j+252>>2]=0;J[j+256>>2]=0;J[j+244>>2]=0;J[j+248>>2]=0;l=J[b+492>>2];J[695492]=0;k=ga(3255,k|0,l+8|0,j+236|0)|0;l=J[695492];J[695492]=0;n:{o:{p:{q:{r:{s:{if((l| -0)!=1){if(!k)break n;u=J[b+592>>2];if(!K[a+220|0]&(u|0)==3)break n;l=J[b+492>>2];o=O[b+512>>3];p=O[b+520>>3];q=O[b+528>>3];r=O[b+504>>3];J[j+168>>2]=0;J[j+172>>2]=1076101120;k=J[a+104>>2];m=J[J[k>>2]+248>>2];J[695492]=0;aa(m|0,k|0,j+168|0)|0;k=J[695492];J[695492]=0;t:{u:{v:{if((k|0)!=1){o=Y(r*r+o*o);p=Y(p*p+q*q);p=o>2];q=O[j+168>>3];r=p*q;if(!(r>0))break u;O[j+16>>3]=r;m=J[J[k>>2]+252>>2];J[695492]=0;aa(m|0,k|0,j+16|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break v;d=d-h;c=c- -g;h=O[b+568>>3];g=h*(o*O[b+512>>3]);s=-O[b+528>>3];t=-O[b+520>>3];h=o*O[b+504>>3]*h;break t}a=Z()|0;break a}a=Z()|0;break a}O[j+16>>3]=p*-q;m=J[J[k>>2]+252>>2];J[695492]=0;aa(m|0,k|0,j+16|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break s;h=O[b+568>>3];g=h*(o*O[b+512>>3]);s=O[b+528>>3];t=O[b+520>>3];h=o*O[b+504>>3]*h}w=O[b+16>>3];x=O[b+32>>3];p=h*w+g*x;O[j+176>>3]=p;q=O[b+24>>3];r=O[b+40>>3];t=o*t;s=o*s;o=w*t+x*s;O[j+192>>3]=o;s=t*q+s*r;t=-s;O[j+200>>3]=t;g=h*q+g*r;h=-g;O[j+184>>3]=h;O[j+208>>3]=c* -w+d*x+O[b+48>>3];O[j+216>>3]=O[b+104>>3]-(c*q+d*r+O[b+56>>3]);w:{c=Y(o*o+s*s);d=Y(p*p+g*g);c=c.001))break w;O[j+200>>3]=t/c;O[j+192>>3]=o/c;O[j+184>>3]=h/c;O[j+176>>3]=p/c;J[j+16>>2]=0;J[j+20>>2]=1072693248;k=J[a+104>>2];m=J[J[k>>2]+248>>2];J[695492]=0;aa(m|0,k|0,j+16|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break r;k=J[a+104>>2];O[j+136>>3]=c*O[j+16>>3];m=J[J[k>>2]+252>>2];J[695492]=0;aa(m|0,k|0,j+136|0)|0;k=J[695492];J[695492]=0;if((k|0)!=1)break w;a=Z()|0;break a}J[j+160>>2]=0;J[j+ -164>>2]=0;J[695492]=0;J[j+152>>2]=0;J[j+156>>2]=0;la(3257,a|0,j+176|0,j+160|0,j+152|0,1);k=J[695492];J[695492]=0;x:{y:{z:{A:{B:{C:{D:{E:{F:{if((k|0)!=1){J[j+144>>2]=0;J[j+136>>2]=0;J[j+140>>2]=0;k=J[J[l>>2]+8>>2];J[695492]=0;m=$(k|0,l|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break E;k=J[j+272>>2];if(!k|M[j+280>>2]<=i>>>0)break F;k=L[k+(i<<2)>>1];J[695492]=0;DE(j+136|0,k);k=J[695492];J[695492]=0;if((k|0)!=1)break C;a=Z()|0;break b}a=Z()|0;break a}if(!m)break D;J[695492]=0;DE(j+136|0,i);k=J[695492]; -J[695492]=0;if((k|0)!=1)break y}a=Z()|0;break b}if(H[j+147|0]>=0)break B;J[j+140>>2]=0;k=J[j+136>>2];break A}J[j+132>>2]=0;k=J[j+268>>2];if(M[j+276>>2]>i>>>0?k:0)break x;if(!m)break z;break q}H[j+147|0]=0;k=j+136|0}J[k>>2]=0;J[j+132>>2]=0;k=J[j+268>>2];if(!k)break z;if(M[j+276>>2]>i>>>0)break x}k=0;l=K[j+147|0];if(!(l<<24>>24<0?J[j+140>>2]:l))break p;break o}J[j+132>>2]=0;k=J[j+268>>2];if(!k|M[j+276>>2]<=i>>>0)break q}i=J[(i<<2)+k>>2];J[j+132>>2]=i;k=(i|0)!=0;break o}a=Z()|0;break a}a=Z()|0;break a}a= -Z()|0;break a}if(J[l+172>>2]|(J[l+232>>2]|J[l+228>>2]))break p;k=0;if(J[l+20>>2]!=8)break o}J[j+132>>2]=i?i:65534;k=1}G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{if(!((1<>>0<=6:0)|K[a+220|0]))break P;i=0;J[j+24>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;l=J[a+104>>2];m=J[J[l>>2]+240>>2];J[695492]=0;n=m;m=j+16|0;aa(n|0,l|0,m|0)|0;l=J[695492];J[695492]=0;Q:{R:{if((l|0)!=1){S:{if(J[j+132>>2])break S;n=K[j+147|0];l=n<<24>>24;l=(l|0)<0;if(!(l?J[j+140>>2]:n))break S;n=K[j+27|0];if(!(n<<24>>24<0?J[j+20>>2]:n))break S;l= -J[(l?J[j+136>>2]:j+136|0)>>2];i=J[a+104>>2];n=J[J[i>>2]+256>>2];J[695492]=0;aa(n|0,i|0,j+80|0)|0;i=J[695492];J[695492]=0;T:{U:{if((i|0)!=1){i=J[a+160>>2];J[j+128>>2]=0;J[j+112>>2]=0;J[j+116>>2]=1076101120;J[j+96>>2]=0;J[j+100>>2]=1079115776;J[j+64>>2]=0;J[j+68>>2]=1079115776;n=J[J[i>>2]+148>>2];J[695492]=0;v=n;n=j- -64|0;ja(v|0,i|0,m|0,j+128|0,j+112|0,j+96|0,n|0)|0;i=J[695492];J[695492]=0;V:{W:{X:{Y:{if((i|0)!=1){i=J[a+160>>2];m=J[J[i>>2]+24>>2];J[695492]=0;i=$(m|0,i|0)|0;m=J[695492];J[695492]=0; -if((m|0)==1)break Y;if(!i)break W;J[j+64>>2]=0;m=J[J[i>>2]+84>>2];J[695492]=0;m=ga(m|0,i|0,l|0,n|0)|0;v=J[695492];J[695492]=0;if((v|0)!=1){if((m|0)>0|l>>>0>61439)break X;m=J[J[i>>2]+84>>2];J[695492]=0;m=ga(m|0,i|0,l+61440|0,n|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1)break X}a=Z()|0;break O}a=Z()|0;break O}a=Z()|0;break O}if((m|0)<=0)break V}i=0;break S}i=J[a+160>>2];m=J[J[i>>2]+20>>2];J[695492]=0;i=$(m|0,i|0)|0;m=J[695492];J[695492]=0;Z:{if((m|0)==1)break Z;m=J[J[i>>2]+56>>2];J[695492]=0;n=j+112| -0;ca(m|0,n|0,i|0,l|0);i=J[695492];J[695492]=0;m=1;if((i|0)==1)break Z;i=0;v=K[j+123|0];l=v<<24>>24;_:{if((l|0)<0?J[j+116>>2]:v){J[695492]=0;i=J[j+80>>2];ia(3211,j+96|0,n|0,i&1,i>>>1&1);i=J[695492];J[695492]=0;if((i|0)==1)break _;i=K[j+107|0];l=i<<24>>24<0?J[j+100>>2]:i;$:{if(!l){m=J[a+168>>2];i=J[b+492>>2];b=J[i+8>>2];i=J[i+12>>2];J[695492]=0;J[j+88>>2]=b;J[j+92>>2]=i;J[j+8>>2]=b;J[j+12>>2]=i;gJ(m,j+8|0);b=J[695492];J[695492]=0;if((b|0)!=1)break $;break U}b=J[a+104>>2];i=J[J[b>>2]+244>>2];J[695492]= -0;aa(i|0,b|0,j+96|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break U}if(H[j+107|0]<0)qc(J[j+96>>2]);i=(l|0)!=0;m=i;l=K[j+123|0]}if(l<<24>>24<0)qc(J[j+112>>2]);if(m)break S;if(H[j+27|0]>=0)break G;qc(J[j+16>>2]);break G}a=Z()|0;break T}a=Z()|0;break O}a=Z()|0;break O}a=Z()|0;if(H[j+107|0]>=0)break T;qc(J[j+96>>2])}if(H[j+123|0]>=0)break O;qc(J[j+112>>2]);break O}b=J[a+104>>2];O[j+112>>3]=O[j+160>>3]/72*25.4;O[j+96>>3]=O[j+152>>3]/72*25.4;O[j+64>>3]=e/72*25.4;O[j+80>>3]=f/72*25.4;l=J[J[b>>2]+300>>2]; -J[695492]=0;za(l|0,b|0,j+136|0,j+132|0,k|0,j+112|0,j+96|0,j- -64|0,j+80|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break R;if(!i)break Q;b=J[a+104>>2];i=J[J[b>>2]+244>>2];J[695492]=0;aa(i|0,b|0,j+16|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break Q}a=Z()|0;break O}a=Z()|0;break O}if(H[j+27|0]>=0)break P;qc(J[j+16>>2])}J[j+128>>2]=0;b=J[a+104>>2];i=J[J[b>>2]+16>>2];J[695492]=0;aa(i|0,b|0,j+128|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;if((u|0)!=2|J[j+128>>2]!=8)break K;b=J[a+104>>2];J[j+16>>2]= -0;i=J[J[b>>2]+416>>2];J[695492]=0;l=i;i=j+16|0;b=ga(l|0,b|0,827004,i|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break f;if(b)break J;b=J[a+104>>2];J[j+16>>2]=256;l=J[J[b>>2]+308>>2];J[695492]=0;aa(l|0,b|0,i|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break N;J[j+80>>2]=0;b=J[a+104>>2];i=J[J[b>>2]+256>>2];J[695492]=0;aa(i|0,b|0,j+80|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break M;b=J[j+80>>2];J[j+76>>2]=b;if(b&1)break L;J[j+76>>2]=b|1;b=J[a+104>>2];i=J[J[b>>2]+260>>2];J[695492]=0;aa(i|0,b|0,j+76|0)|0; -b=J[695492];J[695492]=0;if((b|0)!=1)break L;break c}if(H[j+27|0]>=0)break b;qc(J[j+16>>2]);break b}a=Z()|0;break b}a=Z()|0;break b}c=f/72*25.4;d=e/72*25.4;b=J[a+104>>2];aa:{if(J[j+132>>2]){O[j+16>>3]=O[j+160>>3]/72*25.4;O[j+112>>3]=O[j+152>>3]/72*25.4;O[j+96>>3]=d;O[j+64>>3]=c;i=J[J[b>>2]+300>>2];J[695492]=0;za(i|0,b|0,j+136|0,j+132|0,k|0,j+16|0,j+112|0,j+96|0,j- -64|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break aa;a=Z()|0;break b}O[j+16>>3]=O[j+160>>3]/72*25.4;O[j+112>>3]=O[j+152>>3]/72*25.4;O[j+ -96>>3]=d;O[j+64>>3]=c;i=J[J[b>>2]+292>>2];J[695492]=0;ja(i|0,b|0,j+136|0,j+16|0,j+112|0,j+96|0,j- -64|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break aa;a=Z()|0;break b}if(J[j+80>>2]!=J[j+76>>2]){b=J[a+104>>2];i=J[J[b>>2]+260>>2];J[695492]=0;aa(i|0,b|0,j+80|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c}b=J[a+104>>2];J[j+16>>2]=256;i=J[J[b>>2]+312>>2];J[695492]=0;aa(i|0,b|0,j+16|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break H;a=Z()|0;break b}if((u&-5)-1>>>0>1)break I}b=J[a+104>>2];J[j+16>>2]=256; -i=J[J[b>>2]+308>>2];J[695492]=0;l=i;i=j+16|0;aa(l|0,b|0,i|0)|0;b=J[695492];J[695492]=0;ba:{ca:{if((b|0)!=1){b=J[a+104>>2];l=J[J[b>>2]+344>>2];J[695492]=0;$(l|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;c=f/72*25.4;d=e/72*25.4;b=J[a+104>>2];if(!J[j+132>>2])break ca;O[j+16>>3]=O[j+160>>3]/72*25.4;O[j+112>>3]=O[j+152>>3]/72*25.4;O[j+96>>3]=d;O[j+64>>3]=c;l=J[J[b>>2]+372>>2];J[695492]=0;za(l|0,b|0,j+136|0,j+132|0,k|0,i|0,j+112|0,j+96|0,j- -64|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break ba; -a=Z()|0;break b}a=Z()|0;break b}O[j+16>>3]=O[j+160>>3]/72*25.4;O[j+112>>3]=O[j+152>>3]/72*25.4;O[j+96>>3]=d;O[j+64>>3]=c;i=J[J[b>>2]+364>>2];J[695492]=0;ja(i|0,b|0,j+136|0,j+16|0,j+112|0,j+96|0,j- -64|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break ba;a=Z()|0;break b}J[j+16>>2]=(u|0)==2?257:1;b=J[a+104>>2];i=J[J[b>>2]+348>>2];J[695492]=0;aa(i|0,b|0,j+16|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[a+104>>2];J[j+112>>2]=256;i=J[J[b>>2]+312>>2];J[695492]=0;aa(i|0,b|0,j+112|0)|0;b=J[695492];J[695492]= -0;if((b|0)!=1)break I;a=Z()|0;break b}if((u|0)<4)break H;J[j+120>>2]=0;J[j+112>>2]=0;J[j+116>>2]=0;J[j+104>>2]=0;J[j+96>>2]=0;J[j+100>>2]=0;J[j+72>>2]=0;J[695492]=0;J[j+64>>2]=0;J[j+68>>2]=0;da(3256,j- -64|0,J[j+132>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break l;b=J[a+104>>2];i=J[J[b>>2]+232>>2];J[695492]=0;aa(i|0,b|0,j+112|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[a+104>>2];i=J[J[b>>2]+240>>2];J[695492]=0;aa(i|0,b|0,j+96|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[a+104>>2]; -i=J[J[b>>2]+248>>2];J[695492]=0;aa(i|0,b|0,j+80|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[a+104>>2];i=J[J[b>>2]+256>>2];J[695492]=0;aa(i|0,b|0,j+76|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[a+196>>2];if(!b){J[j+48>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[695492]=0;b=$(4,16)|0;i=J[695492];J[695492]=0;if((i|0)==1)break k;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[695492]=0;J[j+56>>2]=b;b=j+16|0;da(3259, -a+176|0,b|0);i=J[695492];J[695492]=0;if((i|0)==1)break j;iw(b);b=J[a+196>>2]}b=(J[a+192>>2]+b|0)-1|0;i=(b>>>0)/93|0;b=J[(J[J[a+180>>2]+(i<<2)>>2]+P(b-P(i,93)|0,44)|0)+40>>2];J[695492]=0;Jb(3260,b|0,j+112|0,j+96|0,+O[j+80>>3],J[j+76>>2],j+176|0,j- -64|0,+(O[j+160>>3]+0),+O[j+152>>3],0,0,0);b=J[695492];J[695492]=0;if((b|0)==1)break i;H[a+200|0]=1;if(H[j+75|0]<0)qc(J[j+64>>2]);if(H[j+107|0]<0)qc(J[j+96>>2]);if(H[j+123|0]>=0)break H;qc(J[j+112>>2])}a=J[a+104>>2];b=J[J[a>>2]+252>>2];J[695492]=0;aa(b|0, -a|0,j+168|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d}if(H[j+147|0]>=0)break n;qc(J[j+136>>2])}if(H[j+267|0]<0)qc(J[j+256>>2]);if(H[j+255|0]>=0)break m;qc(J[j+244>>2])}bc=j+288|0;return}a=Z()|0;break h}a=Z()|0;break h}a=Z()|0;iw(j+16|0);break h}a=Z()|0}if(H[j+75|0]<0)qc(J[j+64>>2]);if(H[j+107|0]<0)qc(J[j+96>>2]);if(H[j+123|0]>=0)break b;qc(J[j+112>>2]);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0}if(H[j+147|0]>=0)break a;qc(J[j+136>>2])}V_(j+236|0);ba(a|0); -B()}function FW(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:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:switch(J[a+84>>2]){case 0:l:{c=J[a+52>>2];b=J[a+196>>2];if(c>>>0>>0){g=J[a- -64>>2];if(g>>>0>>0)break l}Hc(J[a+236>>2],1,2343913,0);break b}if(!J[a+44>>2]){m=J[a+36>>2];b=0;break j}J[a+44>>2]=0;s=J[a+68>>2];b=1;break j;case 1:m:{c=J[a+52>>2];b=J[a+196>>2];if(c>>>0>>0){g=J[a- -64>>2];if(g>>>0>>0)break m}Hc(J[a+236>>2],1,2344318,0); -break b}if(!J[a+44>>2]){m=J[a+36>>2];b=0;break f}J[a+44>>2]=0;h=J[a+48>>2];b=1;break f;case 2:n:{p=J[a+196>>2];if(p>>>0>M[a+52>>2]){s=J[a- -64>>2];if(s>>>0>>0)break n}Hc(J[a+236>>2],1,2344584,0);break b}if(!J[a+44>>2]){q=J[a+40>>2];break g}J[a+228>>2]=0;J[a+232>>2]=0;J[a+44>>2]=0;f=J[a+200>>2];while(1){r=f+(n<<4)|0;j=J[r+8>>2];if(j){g=J[r+12>>2];b=0;while(1){d=j+(b^-1)|0;e=g+(b<<4)|0;k=d+J[e>>2]|0;o:{if(k>>>0>31)break o;c=J[r>>2];if(c>>>0>-1>>>k>>>0)break o;c=c<>>0>i>>>0?i:c:c;J[a+228>> -2]=i}d=d+J[e+4>>2]|0;p:{if(d>>>0>31)break p;c=J[r+4>>2];if(c>>>0>-1>>>d>>>0)break p;c=c<>>0>h>>>0?h:c:c;J[a+232>>2]=h}b=b+1|0;if((j|0)!=(b|0))continue;break}}n=n+1|0;if((p|0)!=(n|0))continue;break}if(!i|!h)break e;if(!K[a|0]){J[a+108>>2]=J[a+208>>2];J[a+100>>2]=J[a+204>>2];J[a+112>>2]=J[a+216>>2];J[a+104>>2]=J[a+212>>2]}n=J[a+48>>2];b=1;break g;case 3:q:{p=J[a+196>>2];if(p>>>0>M[a+52>>2]){s=J[a- -64>>2];if(s>>>0>>0)break q}Hc(J[a+236>>2],1,2344842,0);break b}if(!J[a+44>>2]){n=J[a+200>> -2]+(J[a+28>>2]<<4)|0;q=J[a+40>>2];break h}J[a+228>>2]=0;J[a+232>>2]=0;J[a+44>>2]=0;f=J[a+200>>2];while(1){r=f+(m<<4)|0;j=J[r+8>>2];if(j){g=J[r+12>>2];b=0;while(1){d=j+(b^-1)|0;e=g+(b<<4)|0;k=d+J[e>>2]|0;r:{if(k>>>0>31)break r;c=J[r>>2];if(c>>>0>-1>>>k>>>0)break r;c=c<>>0>i>>>0?i:c:c;J[a+228>>2]=i}d=d+J[e+4>>2]|0;s:{if(d>>>0>31)break s;c=J[r+4>>2];if(c>>>0>-1>>>d>>>0)break s;c=c<>>0>h>>>0?h:c:c;J[a+232>>2]=h}b=b+1|0;if((j|0)!=(b|0))continue;break}}m=m+1|0;if((p|0)!=(m|0))continue; -break}if(!i|!h)break e;t:{if(K[a|0]){i=J[a+108>>2];break t}i=J[a+208>>2];J[a+108>>2]=i;J[a+100>>2]=J[a+204>>2];J[a+112>>2]=J[a+216>>2];J[a+104>>2]=J[a+212>>2]}b=1;break h;case 4:break k;default:break e}u:{m=J[a+52>>2];b=J[a+196>>2];if(m>>>0>>0){n=J[a- -64>>2];if(n>>>0>>0)break u}Hc(J[a+236>>2],1,2345062,0);break e}if(!J[a+44>>2]){q=J[a+200>>2]+(J[a+28>>2]<<4)|0;t=J[a+40>>2];b=0;break i}J[a+28>>2]=m;J[a+44>>2]=0;b=1;break i}v:while(1){w:{x:{if(!b){m=m+1|0;break x}J[a+40>>2]=s;if(M[a+56>>2]<= -s>>>0)break b;h=J[a+48>>2];b=0;break w}b=1}y:while(1){z:{A:{B:{C:{if(!b){J[a+32>>2]=h;if(M[a+60>>2]<=h>>>0)break C;J[a+28>>2]=c;b=c;n=0;break z}J[a+36>>2]=m;if(M[a+76>>2]<=m>>>0){b=J[a+28>>2];n=1;break z}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],J[a+40>>2])|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],m)|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break B;break a}s=J[a+40>>2]+1|0;break A}b=0;continue v}b=1;continue v}while(1){D:{E:{F:{if(!n){if(b>>>0>=g>>>0)break F;l=J[a+32>>2];e= -J[a+200>>2];d=b<<4;if(l>>>0>=M[(e+d|0)+8>>2])break D;if(!K[a|0]){b=J[(e+d|0)+12>>2]+(l<<4)|0;J[a+76>>2]=P(J[b+12>>2],J[b+8>>2])}m=J[a+72>>2];b=1;continue y}b=b+1|0;J[a+28>>2]=b;break E}h=J[a+32>>2]+1|0;b=0;continue y}n=0;continue}n=1;continue}}}}G:while(1){H:{I:{if(!b){t=t+1|0;J[a+40>>2]=t;break I}if(n>>>0<=m>>>0)break b;J[a+228>>2]=0;J[a+232>>2]=0;c=J[a+200>>2];b=m<<4;q=c+b|0;j=J[q+8>>2];if(!j)break b;b=b+c|0;f=b;g=J[b+12>>2];i=0;h=0;b=0;while(1){d=j+(b^-1)|0;e=g+(b<<4)|0;k=d+J[e>>2]|0;J:{if(k>>> -0>31)break J;c=J[q>>2];if(c>>>0>-1>>>k>>>0)break J;c=c<>>0>h>>>0?h:c:c;J[a+228>>2]=h}d=d+J[e+4>>2]|0;K:{if(d>>>0>31)break K;c=J[f+4>>2];if(c>>>0>-1>>>d>>>0)break K;c=c<>>0>i>>>0?i:c:c;J[a+232>>2]=i}b=b+1|0;if((j|0)!=(b|0))continue;break}if(!h|!i)break e;L:{if(K[a|0]){i=J[a+108>>2];break L}i=J[a+208>>2];J[a+108>>2]=i;J[a+100>>2]=J[a+204>>2];J[a+112>>2]=J[a+216>>2];J[a+104>>2]=J[a+212>>2]}b=0;break H}b=1}M:while(1){N:{O:{P:{Q:{if(!b){J[a+224>>2]=i;if(M[a+112>>2]<=i>>>0)break Q;s=J[a+ -100>>2];b=0;break N}if(M[a+56>>2]<=t>>>0){l=J[a+32>>2];b=1;break N}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],t)|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],J[a+36>>2])|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break P;break a}m=J[a+28>>2]+1|0;J[a+28>>2]=m;n=J[a+64>>2];break O}b=0;continue G}b=1;continue G}while(1){R:{S:{T:{U:{if(!b){J[a+220>>2]=s;if(M[a+104>>2]<=s>>>0)break T;l=J[a+48>>2];break U}l=l+1|0}J[a+32>>2]=l;b=J[a+60>>2];c=J[q+8>>2];if((b>>>0>>0?b:c)>>>0>l>>>0){o=c+ -(l^-1)|0;if(o>>>0>31)break R;u=J[q>>2];k=u<>>o|0)!=(u|0))break R;w=J[q+4>>2];f=w<>>o|0)!=(w|0)|(f|k)<0)break R;if(!k)break d;e=k;d=0-!e|0;y=J[a+204>>2];c=e-1|0;b=y+c|0;j=y>>>0>b>>>0?d+1|0:d;b=Fzb(b,j,e,0);if(!f)break d;j=c;c=J[a+212>>2];g=j+c|0;g=Fzb(g,c>>>0>g>>>0?d+1|0:d,e,0);c=0-!f|0;e=f-1|0;d=J[a+216>>2];p=e+d|0;d=Fzb(p,d>>>0>p>>>0?c+1|0:c,f,0);x=J[a+208>>2];e=e+x|0;c=x>>>0>e>>>0?c+1|0:c;c=Fzb(e,c,f,0);r=J[q+12>>2];e=l<<4;p=r+e|0;v=o+J[p>>2]|0;if(v>>>0>30|u>>>0>-1>>>v>>>0)break R; -j=e+r|0;h=o+J[j+4>>2]|0;if(h>>>0>30)break R;f=w<>>h|0))break R;e=J[a+224>>2];if((e>>>0)%(f>>>0)|0)if(!((-1<>2];if((e>>>0)%(u<>>0)|0)if(!((-1<>2]|!J[f+12>>2]|((b|0)==(g|0)|(c|0)==(d|0)))break R;g=Vs(e,k);k=J[p>>2];e=Vs(J[a+224>>2],J[q+4>>2]<>2];f=J[j+4>>2];t=J[a+68>>2];J[a+40>>2]=t;J[a+36>>2]=((g>>>k)-(b>>>k)|0)+P(d,(e>>>f)-(c>>>f)|0);b=1;continue M}c=J[a+220>>2];b=J[a+ -228>>2];s=c+b-(c>>>0)%(b>>>0)|0;break S}c=J[a+224>>2];b=J[a+232>>2];i=c+b-(c>>>0)%(b>>>0)|0;b=0;continue M}b=0;continue}b=1;continue}}}}V:while(1){W:{X:{if(!b){q=q+1|0;J[a+40>>2]=q;break X}J[a+224>>2]=i;if(M[a+112>>2]<=i>>>0)break b;z=J[a+100>>2];b=0;break W}b=1}Y:while(1){Z:{_:{$:{aa:{if(!b){J[a+220>>2]=z;if(M[a+104>>2]<=z>>>0)break aa;t=J[a+52>>2];J[a+28>>2]=t;b=0;break Z}if(M[a+56>>2]<=q>>>0){l=J[a+32>>2];b=1;break Z}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],q)|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+ -24>>2],J[a+36>>2])|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break $;break a}c=J[a+224>>2];b=J[a+232>>2];i=c+b-(c>>>0)%(b>>>0)|0;break _}b=0;continue V}b=1;continue V}while(1){ba:{ca:{da:{ea:{if(!b){if(s>>>0<=t>>>0)break da;l=J[a+48>>2];J[a+32>>2]=l;n=J[a+200>>2]+(t<<4)|0;break ea}l=l+1|0;J[a+32>>2]=l}b=J[a+60>>2];c=J[n+8>>2];if((b>>>0>>0?b:c)>>>0>l>>>0){o=c+(l^-1)|0;if(o>>>0>31)break ba;u=J[n>>2];k=u<>>o|0)!=(u|0))break ba;w=J[n+4>>2];f=w<>>o|0)!=(w|0)|(f| -k)<0)break ba;if(!k)break d;e=k;d=0-!e|0;y=J[a+204>>2];c=e-1|0;b=y+c|0;j=y>>>0>b>>>0?d+1|0:d;b=Fzb(b,j,e,0);if(!f)break d;j=c;c=J[a+212>>2];g=j+c|0;e=Fzb(g,c>>>0>g>>>0?d+1|0:d,e,0);g=0-!f|0;c=f-1|0;d=J[a+216>>2];p=c+d|0;d=Fzb(p,d>>>0>p>>>0?g+1|0:g,f,0);x=J[a+208>>2];c=c+x|0;g=x>>>0>c>>>0?g+1|0:g;c=Fzb(c,g,f,0);r=J[n+12>>2];g=l<<4;p=r+g|0;v=o+J[p>>2]|0;if(v>>>0>30|u>>>0>-1>>>v>>>0)break ba;j=g+r|0;h=o+J[j+4>>2]|0;if(h>>>0>30)break ba;f=w<>>h|0))break ba;g=J[a+224>>2];if((g>>>0)%(f>>> -0)|0)if(!((-1<>2];if((g>>>0)%(u<>>0)|0)if(!((-1<>2]|!J[f+12>>2]|((b|0)==(e|0)|(c|0)==(d|0)))break ba;g=Vs(g,k);k=J[p>>2];e=Vs(J[a+224>>2],J[n+4>>2]<>2];f=J[j+4>>2];q=J[a+68>>2];J[a+40>>2]=q;J[a+36>>2]=((g>>>k)-(b>>>k)|0)+P(d,(e>>>f)-(c>>>f)|0);b=1;continue Y}t=J[a+28>>2]+1|0;J[a+28>>2]=t;s=J[a+64>>2];break ca}c=J[a+220>>2];b=J[a+228>>2];z=c+b-(c>>>0)%(b>>>0)|0;b=0;continue Y}b=0;continue}b= -1;continue}}}}fa:while(1){ga:{ha:{if(!b){q=q+1|0;J[a+40>>2]=q;break ha}J[a+32>>2]=n;if(M[a+60>>2]<=n>>>0)break b;z=J[a+108>>2];b=0;break ga}b=1}ia:while(1){ja:{ka:{la:{ma:{if(!b){J[a+224>>2]=z;if(M[a+112>>2]<=z>>>0)break ma;m=J[a+100>>2];b=0;break ja}if(M[a+56>>2]<=q>>>0){s=J[a+64>>2];l=J[a+28>>2];b=1;break ja}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],q)|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],J[a+36>>2])|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break la;break a}n=J[a+32>> -2]+1|0;break ka}b=0;continue fa}b=1;continue fa}while(1){na:{oa:{pa:{qa:{if(!b){J[a+220>>2]=m;if(M[a+104>>2]<=m>>>0)break pa;l=J[a+52>>2];break qa}l=l+1|0}J[a+28>>2]=l;if(l>>>0>>0){o=J[a+32>>2];d=J[a+200>>2];c=l<<4;h=d+c|0;b=J[h+8>>2];if(o>>>0>=b>>>0)break na;i=b+(o^-1)|0;if(i>>>0>31)break na;t=J[h>>2];k=t<>>i|0)!=(t|0))break na;r=c+d|0;u=J[r+4>>2];f=u<>>i|0)!=(u|0)|(f|k)<0)break na;if(!k)break d;e=k;d=0-!e|0;w=J[a+204>>2];c=e-1|0;b=w+c|0;j=w>>>0>b>>>0?d+1|0:d;b=Fzb(b,j,e,0); -if(!f)break d;g=J[a+212>>2];j=g+c|0;c=d;g=Fzb(j,j>>>0>>0?c+1|0:c,e,0);c=0-!f|0;j=c;e=f-1|0;d=J[a+216>>2];p=e+d|0;d=Fzb(p,d>>>0>p>>>0?c+1|0:c,f,0);y=J[a+208>>2];c=e+y|0;j=y>>>0>c>>>0?j+1|0:j;c=Fzb(c,j,f,0);h=J[h+12>>2];e=o<<4;p=h+e|0;x=i+J[p>>2]|0;if(x>>>0>30|t>>>0>-1>>>x>>>0)break na;j=e+h|0;v=i+J[j+4>>2]|0;if(v>>>0>30)break na;f=u<>>v|0))break na;e=J[a+224>>2];if((e>>>0)%(f>>>0)|0)if(!((-1<>2];if((e>>>0)%(t<>>0)|0)if(!((-1<>2]|!J[f+12>>2]|((b|0)==(g|0)|(c|0)==(d|0)))break na;g=Vs(e,k);k=J[p>>2];e=Vs(J[a+224>>2],J[r+4>>2]<>2];f=J[j+4>>2];q=J[a+68>>2];J[a+40>>2]=q;J[a+36>>2]=((g>>>k)-(b>>>k)|0)+P(d,(e>>>f)-(c>>>f)|0);b=1;continue ia}c=J[a+220>>2];b=J[a+228>>2];m=c+b-(c>>>0)%(b>>>0)|0;break oa}c=J[a+224>>2];b=J[a+232>>2];z=c+b-(c>>>0)%(b>>>0)|0;b=0;continue ia}b=0;continue}b=1;continue}}}}ra:while(1){sa:{ta:{if(!b){m=m+1|0;break ta}J[a+32>>2]=h;if(M[a+60>> -2]<=h>>>0)break b;s=J[a+68>>2];b=0;break sa}b=1}ua:while(1){va:{wa:{xa:{ya:{if(!b){J[a+40>>2]=s;if(M[a+56>>2]<=s>>>0)break ya;J[a+28>>2]=c;b=c;n=0;break va}J[a+36>>2]=m;if(M[a+76>>2]<=m>>>0){b=J[a+28>>2];n=1;break va}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],J[a+40>>2])|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],m)|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break xa;break a}h=J[a+32>>2]+1|0;break wa}b=0;continue ra}b=1;continue ra}while(1){za:{Aa:{Ba:{if(!n){if(b>>>0>=g>>>0)break Ba; -l=J[a+32>>2];e=J[a+200>>2];d=b<<4;if(l>>>0>=M[(e+d|0)+8>>2])break za;if(!K[a|0]){b=J[(e+d|0)+12>>2]+(l<<4)|0;J[a+76>>2]=P(J[b+12>>2],J[b+8>>2])}m=J[a+72>>2];b=1;continue ua}b=b+1|0;J[a+28>>2]=b;break Aa}s=J[a+40>>2]+1|0;b=0;continue ua}n=0;continue}n=1;continue}}}}return 0}fa(2342591,2342825,172,2343334);B()}Hc(J[a+236>>2],1,2344105,0)}return 0}I[b>>1]=1;return 1}function Bba(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=Q(0),o=0;a:{b:{c:{if((gc[J[J[b>>2]+48>>2]](b)|0)!=255)break c; -if((gc[J[J[b>>2]+48>>2]](b)|0)!=216)break c;if(J[a+508>>2]<=19){m=c&1;while(1){d=gc[J[J[b>>2]+48>>2]](b)|0;f=J[b>>2];d:{if((d|0)!=255)break d;d=gc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=gc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=gc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=gc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=gc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=gc[J[f+48>>2]](b)|0;if((d|0)==255)break b;f=J[b>>2]}J[(P(J[a+508>>2],12)+a|0)+272>>2]=d; -e=gc[J[f+48>>2]](b)|0;h=gc[J[J[b>>2]+48>>2]](b)|0;i=e<<8|h;if((i|0)<=1){b=K[44373]|K[44374]<<8|(K[44375]<<16|K[44376]<<24);c=K[44369]|K[44370]<<8|(K[44371]<<16|K[44372]<<24);H[a+11|0]=c;H[a+12|0]=c>>>8;H[a+13|0]=c>>>16;H[a+14|0]=c>>>24;H[a+15|0]=b;H[a+16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[44366]|K[44367]<<8|(K[44368]<<16|K[44369]<<24);c=K[44362]|K[44363]<<8|(K[44364]<<16|K[44365]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16; -H[a+11|0]=b>>>24;break a}g=P(J[a+508>>2],12)+a|0;J[g+276>>2]=i;f=zc(i);if(!f){b=K[44555]|K[44556]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[44551]|K[44552]<<8|(K[44553]<<16|K[44554]<<24);c=K[44547]|K[44548]<<8|(K[44549]<<16|K[44550]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[44543]|K[44544]<<8|(K[44545]<<16|K[44546]<<24);c=K[44539]|K[44540]<<8|(K[44541]<<16|K[44542]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16; -H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[44535]|K[44536]<<8|(K[44537]<<16|K[44538]<<24);c=K[44531]|K[44532]<<8|(K[44533]<<16|K[44534]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}J[g+268>>2]=f;H[f+1|0]=h;H[f|0]=e;e=f+2|0;h=i-2|0;if((gc[J[J[b>>2]+12>>2]](b,e,1,h,0,0)|0)!=(h|0)){b=K[45098]|K[45099]<<8|(K[45100]<<16|K[45101]<<24);c=K[45094]|K[45095]<<8|(K[45096]<<16|K[45097]<< -24);H[a+19|0]=c;H[a+20|0]=c>>>8;H[a+21|0]=c>>>16;H[a+22|0]=c>>>24;H[a+23|0]=b;H[a+24|0]=b>>>8;H[a+25|0]=b>>>16;H[a+26|0]=b>>>24;b=K[45091]|K[45092]<<8|(K[45093]<<16|K[45094]<<24);c=K[45087]|K[45088]<<8|(K[45089]<<16|K[45090]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[45083]|K[45084]<<8|(K[45085]<<16|K[45086]<<24);c=K[45079]|K[45080]<<8|(K[45081]<<16|K[45082]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+ -7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}j=J[a+508>>2];g=j+1|0;J[a+508>>2]=g;e:{f:{g:switch(d-192|0){case 26:d=1;if(!(c&2))break c;c=gc[J[J[b>>2]+24>>2]](b)|0;gc[J[J[b>>2]+20>>2]](b,0,2)|0;d=gc[J[J[b>>2]+24>>2]](b)|0;gc[J[J[b>>2]+20>>2]](b,c,0)|0;c=d-c|0;d=zc(c);if(!d){H[a+44|0]=K[45279];b=K[45275]|K[45276]<<8|(K[45277]<<16|K[45278]<<24);c=K[45271]|K[45272]<<8|(K[45273]<<16|K[45274]<<24);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;H[a+40|0]= -b;H[a+41|0]=b>>>8;H[a+42|0]=b>>>16;H[a+43|0]=b>>>24;b=K[45267]|K[45268]<<8|(K[45269]<<16|K[45270]<<24);c=K[45263]|K[45264]<<8|(K[45265]<<16|K[45266]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[45259]|K[45260]<<8|(K[45261]<<16|K[45262]<<24);c=K[45255]|K[45256]<<8|(K[45257]<<16|K[45258]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>> -24;b=K[45251]|K[45252]<<8|(K[45253]<<16|K[45254]<<24);c=K[45247]|K[45248]<<8|(K[45249]<<16|K[45250]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[45243]|K[45244]<<8|(K[45245]<<16|K[45246]<<24);c=K[45239]|K[45240]<<8|(K[45241]<<16|K[45242]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}if((gc[J[J[b>>2]+12>>2]](b,d,1,c,0,0)|0)!=(c| -0)){b=K[45427]|K[45428]<<8|(K[45429]<<16|K[45430]<<24);c=K[45423]|K[45424]<<8|(K[45425]<<16|K[45426]<<24);H[a+33|0]=c;H[a+34|0]=c>>>8;H[a+35|0]=c>>>16;H[a+36|0]=c>>>24;H[a+37|0]=b;H[a+38|0]=b>>>8;H[a+39|0]=b>>>16;H[a+40|0]=b>>>24;b=K[45422]|K[45423]<<8|(K[45424]<<16|K[45425]<<24);c=K[45418]|K[45419]<<8|(K[45420]<<16|K[45421]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[45414]|K[45415]<<8|(K[45416]<<16|K[45417]<< -24);c=K[45410]|K[45411]<<8|(K[45412]<<16|K[45413]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[45406]|K[45407]<<8|(K[45408]<<16|K[45409]<<24);c=K[45402]|K[45403]<<8|(K[45404]<<16|K[45405]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[45398]|K[45399]<<8|(K[45400]<<16|K[45401]<<24);c=K[45394]|K[45395]<<8|(K[45396]<<16|K[45397]<< -24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}f=J[a+508>>2];b=P(f,12)+a|0;J[b+276>>2]=c;J[b+268>>2]=d;J[b+272>>2]=291;J[a+508>>2]=f+1;return 1;case 25:uF(47364);break a;case 62:if(!(!l&m)){J[a+508>>2]=j;d=a+268|0;qc(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>>2]=0;break e}d=0;e=bc-256|0;bc=e;if((i|0)>=3){g=(i|0)>=255?255:i;j=g-1|0;h=2;while(1){l=f+h|0;i=K[l|0];if(!(!((i|0)!=13|(h|0)>=(j|0))&K[l+1|0]==10)){H[d+e|0]= -(i-9&255)>>>0<2?i:i-32>>>0>=95?63:i;d=d+1|0}h=h+1|0;if((g|0)!=(h|0))continue;break}}H[d+e|0]=0;ff(J[a>>2]+196|0,e);bc=e+256|0;l=1;break f;case 32:J[a+508>>2]=j;d=a+268|0;qc(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>>2]=0;break e;case 33:if(!(!m|i>>>0<6|(K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24))!=1718188101)){i=0;f=bc-48|0;bc=f;d=J[a>>2];H[d+196|0]=0;J[d+120>>2]=0;h:{if(h>>>0<6)break h;J[a+260>>2]=0;if(Wc(e,46313,6)){d=K[46382]|K[46383]<<8|(K[46384]<<16|K[46385]<<24);e=K[46378]|K[46379]<<8| -(K[46380]<<16|K[46381]<<24);H[a+18|0]=e;H[a+19|0]=e>>>8;H[a+20|0]=e>>>16;H[a+21|0]=e>>>24;H[a+22|0]=d;H[a+23|0]=d>>>8;H[a+24|0]=d>>>16;H[a+25|0]=d>>>24;d=K[46376]|K[46377]<<8|(K[46378]<<16|K[46379]<<24);e=K[46372]|K[46373]<<8|(K[46374]<<16|K[46375]<<24);H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[46368]|K[46369]<<8|(K[46370]<<16|K[46371]<<24);e=K[46364]|K[46365]<<8|(K[46366]<<16|K[46367]<<24);H[a+4|0]=e;H[a+5|0]=e>>> -8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;break h}if(h>>>0<8)break h;j=e+6|0;i:{d=K[e+6|0]|K[e+7|0]<<8;if((d|0)!=18761){if((d|0)!=19789)break i;g=1}else g=0;J[a+264>>2]=g;if(h>>>0<14)break h;d=(d|0)!=18761;if((K[e+(d?8:9)|0]<<8|K[e+(d?9:8)|0])!=42){d=K[46661]|K[46662]<<8|(K[46663]<<16|K[46664]<<24);e=K[46657]|K[46658]<<8|(K[46659]<<16|K[46660]<<24);H[a+19|0]=e;H[a+20|0]=e>>>8;H[a+21|0]=e>>>16;H[a+22|0]=e>>>24;H[a+23|0]=d;H[a+24|0]=d>>>8;H[a+25|0]= -d>>>16;H[a+26|0]=d>>>24;d=K[46654]|K[46655]<<8|(K[46656]<<16|K[46657]<<24);e=K[46650]|K[46651]<<8|(K[46652]<<16|K[46653]<<24);H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[46646]|K[46647]<<8|(K[46648]<<16|K[46649]<<24);e=K[46642]|K[46643]<<8|(K[46644]<<16|K[46645]<<24);H[a+4|0]=e;H[a+5|0]=e>>>8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;break h}d=e+10|0;j:{if(J[a+264>> -2]){g=K[d+1|0]<<16|K[d|0]<<24|K[d+2|0]<<8;d=d+3|0;break j}g=K[d+2|0]<<16|K[d+3|0]<<24|K[d+1|0]<<8}o=K[d|0];d=h-6|0;J[f+32>>2]=d;J[f+28>>2]=j;k=h>>>0>=14?14:h;J[f+40>>2]=h-k;J[f+36>>2]=e+k;J[f+44>>2]=e;k=f+44|0;if(!by(a,f+36|0,f+28|0,d,J[a>>2],k,0))break h;g=g|o;if((g|0)>=9){J[f+16>>2]=d;J[f+12>>2]=j;j=h;g=g+6|0;h=h>>>0>>0?h:g;J[f+24>>2]=j-h;J[f+20>>2]=e+h;if(!by(a,f+20|0,f+12|0,d,J[a>>2],k,0))break h}i=1;d=J[a>>2];n=N[d+168>>2];if(n==Q(0))break h;N[d+140>>2]=Q(N[d+176>>2]*Q(J[a+260>>2]))/n;break h}d= -K[46604]|K[46605]<<8|(K[46606]<<16|K[46607]<<24);e=K[46600]|K[46601]<<8|(K[46602]<<16|K[46603]<<24);H[a+27|0]=e;H[a+28|0]=e>>>8;H[a+29|0]=e>>>16;H[a+30|0]=e>>>24;H[a+31|0]=d;H[a+32|0]=d>>>8;H[a+33|0]=d>>>16;H[a+34|0]=d>>>24;d=K[46597]|K[46598]<<8|(K[46599]<<16|K[46600]<<24);e=K[46593]|K[46594]<<8|(K[46595]<<16|K[46596]<<24);H[a+20|0]=e;H[a+21|0]=e>>>8;H[a+22|0]=e>>>16;H[a+23|0]=e>>>24;H[a+24|0]=d;H[a+25|0]=d>>>8;H[a+26|0]=d>>>16;H[a+27|0]=d>>>24;d=K[46589]|K[46590]<<8|(K[46591]<<16|K[46592]<<24); -e=K[46585]|K[46586]<<8|(K[46587]<<16|K[46588]<<24);H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[46581]|K[46582]<<8|(K[46583]<<16|K[46584]<<24);e=K[46577]|K[46578]<<8|(K[46579]<<16|K[46580]<<24);H[a+4|0]=e;H[a+5|0]=e>>>8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24}bc=f+48|0;H[J[a>>2]+460|0]=i;break f}J[a+508>>2]=j;d=a+268|0;qc(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>> -2]=0;break e;case 0:case 1:case 2:case 3:case 5:case 6:case 7:case 9:case 10:case 11:case 13:case 14:case 15:break g;default:break e}if(i>>>0<8)break a;e=J[a>>2];J[e+100>>2]=K[f+4|0]|K[f+3|0]<<8;J[e+104>>2]=K[f+6|0]|K[f+5|0]<<8;f=K[f+7|0];J[e+116>>2]=d;J[e+112>>2]=(f|0)==3}g=J[a+508>>2]}if((g|0)<=19)continue;break}}d=0;b=K[43292]|K[43293]<<8|(K[43294]<<16|K[43295]<<24);c=K[43288]|K[43289]<<8|(K[43290]<<16|K[43291]<<24);H[a+26|0]=c;H[a+27|0]=c>>>8;H[a+28|0]=c>>>16;H[a+29|0]=c>>>24;H[a+30|0]=b;H[a+ -31|0]=b>>>8;H[a+32|0]=b>>>16;H[a+33|0]=b>>>24;b=K[43286]|K[43287]<<8|(K[43288]<<16|K[43289]<<24);c=K[43282]|K[43283]<<8|(K[43284]<<16|K[43285]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[43278]|K[43279]<<8|(K[43280]<<16|K[43281]<<24);c=K[43274]|K[43275]<<8|(K[43276]<<16|K[43277]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[43270]| -K[43271]<<8|(K[43272]<<16|K[43273]<<24);c=K[43266]|K[43267]<<8|(K[43268]<<16|K[43269]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24}return d|0}uF(47341);return 0}return 0}function yca(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;k=bc-416|0;bc=k;g=J[a+608>>2];d=J[a+604>>2];w=1;q=J[a+584>>2];m=J[q+72>>2];e=J[q+68>>2];l=J[q+64>>2];a:{b:{c:{if((c|0)<=0)b=d;else{t= -d+g|0;u=J[q+60>>2];o=J[q+12>>2];r=J[q+88>>2];while(1){d:{e:{f:{g:{h:{i:{if(m)break i;while(1){j:{k:{l:{if((e|0)>10){g=d;break l}if(d>>>0>=t>>>0){if(!e)break k;e=11;g=d;break l}h=e+8|0;g=d+1|0;l=K[K[d|0]+u|0]<2){e=h;break l}if(g>>>0>=t>>>0){e=11;break l}e=e+16|0;g=d+2|0;l=K[K[d+1|0]+u|0]<>>1|0;e=e-1|0;d=g;continue}}while(1){g=e;m:{if((e|0)>7)break m;if(d>>>0>=t>>>0){g=8;if(e)break m;break h}l=K[K[d|0]+u|0]<>>1|0;if(!h)continue;break}f=l>>>1|0;h=g-1|0;e=h;n:{if((g|0)>1)break n;if(d>>>0>=t>>>0){e=1;if(h)break n;m=0;l=f;break h}f=K[K[d|0]+u|0]<>>1|0;e=e-1|0;g=0;if(!(f&1))break f;h=r;o:{p:{while(1){p=0;q:{while(1){r:{if((e|0)>11){f=e;break r}if(d>>>0>=t>>>0){f=12;if(e)break r;break g}j=e+8|0;i=d+1|0;l=K[K[d|0]+u|0]<3){f=j;d=i;break r}f=12;if(i>>>0>=t>>>0){d=i;break r}f=e+16|0;l=K[K[d+1|0]+u|0]<>>e|0;e=f-e|0;m=1;f=h;s:{t:switch(K[i|0]-7|0){case 0:i=J[i+4>>2];s=i+p|0;J[h>>2]=s;f=h+4|0;p=0;g=g+i|0;if((o|0)>(g|0))break s;m=0;break o;case 5:break p;case 2:case 4:break t;default:break q}f=J[i+4>>2];p=f+p|0;g=f+g|0;continue}break}while(1){u:{if((e|0)>12){i=e;break u}if(d>>>0>=t>>>0){i=13;if(e)break u;h=f;break g}n=e+8|0;j=d+1|0;l=K[K[d|0]+u|0]<4){i=n;d=j;break u}i=13;if(j>>>0>=t>>>0){d=j;break u}i=e+16|0;l=K[K[d+1|0]+u|0]<>>e|0;e=i-e|0;i=K[j|0];if(i-10>>>0<2){i=J[j+4>>2];p=i+p|0;g=g+i|0;continue}break}v:{w:switch(i-8|0){case 0:i=J[j+4>>2];j=i+p|0;J[h+4>>2]=j;f=h+8|0;g=g+i|0;if((o|0)>(g|0))break v;m=0;break o;case 4:break p;default:break w}h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+304>>2]=g;J[k+300>>2]=i;J[k+296>>2]=h?88466:88523;J[k+292>>2]=m;J[k+288>>2]=n;Nc(j,95733,88300,k+288|0);m=0;break p}h=j|s?f:h;continue}break}f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];j=J[a+628>> -2];n=J[a>>2];m=J[q+108>>2];J[k+272>>2]=g;J[k+268>>2]=i;J[k+264>>2]=f?88466:88523;J[k+260>>2]=m;J[k+256>>2]=n;Nc(j,95733,88300,k+256|0);m=0;f=h}if(!p)break o;J[f>>2]=p;f=f+4|0}if((g|0)==(o|0))break d;h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];s=J[q+108>>2];J[k+248>>2]=o;J[k+244>>2]=g;J[k+240>>2]=i;J[k+236>>2]=h?88466:88523;J[k+232>>2]=s;J[k+228>>2]=g>>>0>>0?88855:88910;J[k+224>>2]=n;ae(j,95733,88772,k+224|0);n=(g|0)>(o|0);x:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break x;while(1){f=f- -4|0;g=g-J[f>>2]|0;n=(o|0)<(g|0);if((g|0)<=(o|0))break x;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f-r&4){J[f>>2]=0;f=f+4|0}J[f>>2]=o-((g|0)>0?g:0);f=f+4|0;break d}if(n)break e;break d}else{l=l>>>8|0;e=g-8|0;continue}}}if(!o){h=r;break b}c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];f=J[a+628>>2];e=J[a>>2];i=J[q+108>>2];J[k+408>>2]=o;J[k+404>>2]=0;J[k+400>>2]=h;J[k+396>>2]=c?88466:88523;J[k+392>>2]=i;J[k+388>>2]=88855;J[k+384>>2]=e;ae(f,95733,88772,k+384|0);J[r>>2]=o;if((o|0)>0){h=r+4|0;break b}J[r+ -4>>2]=0;h=r+8|0;break b}c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+368>>2]=g;J[k+364>>2]=f;J[k+360>>2]=c?88466:88523;J[k+356>>2]=j;J[k+352>>2]=i;ae(e,95733,88640,k+352|0);if(p){J[h>>2]=p;h=h+4|0}m=0;if((g|0)==(o|0))break b;c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+344>>2]=o;J[k+340>>2]=g;J[k+336>>2]=f;J[k+332>>2]=c?88466:88523;J[k+328>>2]=j;J[k+324>>2]=g>>>0>>0?88855:88910;J[k+320>>2]=i;ae(e,95733,88772,k+320|0);e=(g| -0)>(o|0);y:{if((g|0)<=(o|0)|h>>>0<=r>>>0)break y;while(1){h=h-4|0;g=g-J[h>>2]|0;e=(o|0)<(g|0);if((g|0)<=(o|0))break y;if(h>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(h-r&4){J[h>>2]=0;h=h+4|0}J[h>>2]=o-((g|0)>0?g:0);h=h+4|0;break b}if(!e)break b;J[h+4>>2]=0;J[h>>2]=o;h=h+8|0;break b}z:{if((o|0)<=0){m=0;f=r;break z}f=J[q+84>>2];d=f+4|0;n=J[f>>2];i=0;f=r;p=0;A:{B:{C:{D:{E:{F:{G:{H:{I:{while(1){j=e;J:{if((e|0)>6)break J;if(h>>>0>=t>>>0){j=7;if(e)break J;break c}l=K[K[h|0]+u|0]<>>e|0;e=j-e|0;K:{L:{M:{N:{O:{P:switch(K[m|0]-1|0){case 0:Q:{if((f|0)==(r|0)){j=d;break Q}j=d;if((g|0)<(n|0))break Q;while(1){m=J[d>>2];s=J[d+4>>2];j=d+8|0;d=j;n=(m+n|0)+s|0;if((n|0)<=(g|0))continue;break}}g=J[j>>2]+n|0;p=g+(i+p|0)|0;d=j+8|0;n=J[j+4>>2]+g|0;break K;case 1:if(!(f-r&4))break M;while(1){R:{if((e|0)>12){i=e;break R}if(h>>>0>=t>>>0){i=13;if(!e)break c;break R}m=e+8|0;j=h+1|0;l=K[K[h|0]+u|0]<4){i=m;h=j;break R}i=13;if(j>>>0>=t>>>0){h=j;break R}i= -e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=i-e|0;i=K[j|0];if(i-10>>>0>=2){if((i|0)!=8)break D;j=J[j+4>>2];J[f>>2]=j+p;i=f+4|0;g=g+j|0;p=0;while(1){S:{if((e|0)>11){j=e;break S}if(h>>>0>=t>>>0){j=12;if(e)break S;f=i;break c}s=e+8|0;m=h+1|0;l=K[K[h|0]+u|0]<3){j=s;h=m;break S}j=12;if(m>>>0>=t>>>0){h=m;break S}j=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=j-e|0;T:switch(K[m|0]-7|0){case 2:case 4:j=J[m+4>> -2];p=j+p|0;g=g+j|0;continue;case 0:break T;default:break I}break}j=i;i=J[m+4>>2];J[j>>2]=i+p;g=g+i|0;break L}else{i=J[j+4>>2];p=i+p|0;g=g+i|0;continue}}case 5:J[f>>2]=o-g;d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+208>>2]=g;J[k+204>>2]=i;J[k+200>>2]=d?88466:88523;J[k+196>>2]=m;J[k+192>>2]=n;Nc(j,95733,89093,k+192|0);f=f+4|0;break C;case 11:J[f>>2]=o-g;f=f+4|0;U:{if((e|0)>3){d=e;break U}if(h>>>0>=t>>>0){d=4;if(!e)break c;break U}d=e+8|0;l=K[K[h|0]+u|0]<>2];e=bc-32|0;bc=e;j=J[a+12>>2]&1024;n=J[(j?504:480)+a>>2];m=J[a+628>>2];s=J[a>>2];J[e+16>>2]=g;J[e+12>>2]=n;J[e+8>>2]=j?88466:88523;J[e+4>>2]=i;J[e>>2]=s;Nc(m,95733,88300,e);bc=e+32|0}l=l>>>4|0;e=d-4|0;m=1;break B;case 4:V:{if((f|0)==(r|0)){j=d;break V}j=d;if((g|0)<(n|0))break V;while(1){s=J[d>>2];v=J[d+4>>2];j=d+8|0;d=j;n=(n+s|0)+v|0;if((n|0)<=(g|0))continue;break}}d=(i+n|0)-J[m+4>>2]|0;J[f>>2]=d+p;g=d+g|0;d=j-4|0;n=n-J[d>>2]|0;f=f+4|0;break O;case 2:break N;case 3:break P; -default:break G}W:{if((f|0)==(r|0)){j=d;break W}j=d;if((g|0)<(n|0))break W;while(1){s=J[d>>2];v=J[d+4>>2];j=d+8|0;d=j;n=(n+s|0)+v|0;if((n|0)<=(g|0))continue;break}}d=(i+p|0)+n|0;i=J[m+4>>2];J[f>>2]=d+i;d=j+4|0;g=i+n|0;n=J[j>>2]+n|0;f=f+4|0}p=0;break K}X:{if((f|0)==(r|0)){m=n;j=d;break X}j=d;m=n;if((g|0)<(n|0))break X;while(1){n=J[d>>2];s=J[d+4>>2];j=d+8|0;d=j;m=(m+n|0)+s|0;if((m|0)<=(g|0))continue;break}}J[f>>2]=(i+p|0)+m;d=j+4|0;f=f+4|0;n=J[j>>2]+m|0;p=0;g=m;break K}while(1){Y:{if((e|0)>11){i=e; -break Y}if(h>>>0>=t>>>0){i=12;if(!e)break c;break Y}m=e+8|0;j=h+1|0;l=K[K[h|0]+u|0]<3){i=m;h=j;break Y}i=12;if(j>>>0>=t>>>0){h=j;break Y}i=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=i-e|0;i=f;Z:switch(K[j|0]-7|0){case 2:case 4:i=J[j+4>>2];p=i+p|0;g=g+i|0;continue;case 0:break Z;default:break I}break}i=J[j+4>>2];J[f>>2]=i+p;j=f+4|0;g=g+i|0;p=0;while(1){_:{if((e|0)>12){i=e;break _}if(h>>>0>=t>>>0){i=13;if(e)break _;f=j;break c}s=e+8|0;m=h+1|0; -l=K[K[h|0]+u|0]<4){i=s;h=m;break _}i=13;if(m>>>0>=t>>>0){h=m;break _}i=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=i-e|0;i=K[m|0];if(i-10>>>0>=2){if((i|0)!=8){f=j;break D}i=J[m+4>>2];J[j>>2]=i+p;g=g+i|0}else{i=J[m+4>>2];p=i+p|0;g=g+i|0;continue}break}}p=0;f=f+8|0;if((r|0)==(f|0)){f=r;break K}if((g|0)<(n|0)|(n|0)>=(o|0))break K;while(1){i=d+8|0;n=J[d+4>>2]+(J[d>>2]+n|0)|0;if((n|0)>(g|0)){d=i;break K}d=i;if((n|0)<(o|0))continue;break}}i=0-g|0; -if((g|0)<(o|0))continue;break}m=0;if(!p)break A;if((g+p|0)<(o|0))break H;d=h;break E}d=J[a+12>>2]&1024;f=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+144>>2]=g;J[k+140>>2]=f;J[k+136>>2]=d?88466:88523;J[k+132>>2]=m;J[k+128>>2]=n;Nc(j,95733,88300,k+128|0);f=i;m=0;break B}$:{if((e|0)>0){n=e;break $}if(h>>>0>=t>>>0){n=1;if(!e)break c;break $}n=e+8|0;l=K[K[h|0]+u|0]<>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+48>> -2]=g;J[k+44>>2]=i;J[k+40>>2]=d?88466:88523;J[k+36>>2]=m;J[k+32>>2]=n;Nc(j,95733,88300,k+32|0);break C}l=l>>>1|0;e=n-1|0}J[f>>2]=p;f=f+4|0;break z}d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+176>>2]=g;J[k+172>>2]=i;J[k+168>>2]=d?88466:88523;J[k+164>>2]=m;J[k+160>>2]=n;Nc(j,95733,88300,k+160|0)}m=0}if(!p)break A;J[f>>2]=p;f=f+4|0}d=h}if((g|0)==(o|0))break d;h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];s=J[q+108>>2];J[k+24>>2]=o;J[k+20>>2]=g;J[k+ -16>>2]=i;J[k+12>>2]=h?88466:88523;J[k+8>>2]=s;J[k+4>>2]=g>>>0>>0?88855:88910;J[k>>2]=n;ae(j,95733,88772,k);n=(g|0)>(o|0);aa:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break aa;while(1){f=f-4|0;g=g-J[f>>2]|0;n=(o|0)<(g|0);if((g|0)<=(o|0))break aa;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f-r&4){J[f>>2]=0;f=f+4|0}J[f>>2]=o-((g|0)>0?g:0);f=f+4|0;break d}if(!n)break d}J[f+4>>2]=0;J[f>>2]=o;f=f+8|0}gc[J[q+76>>2]](b,r,f,o);J[f>>2]=0;h=J[q+88>>2];r=J[q+84>>2];J[q+88>>2]=r;J[q+84>>2]=h;J[q+108>>2]=J[q+108>> -2]+1;h=J[q+8>>2];b=h+b|0;c=c-h|0;if((c|0)>0)continue;break}g=J[a+608>>2];b=J[a+604>>2]}J[q+72>>2]=m;J[q+64>>2]=l;J[q+68>>2]=e;b=(b-d|0)+g|0;break a}d=h;c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+112>>2]=g;J[k+108>>2]=h;J[k+104>>2]=c?88466:88523;J[k+100>>2]=j;J[k+96>>2]=i;ae(e,95733,88640,k+96|0);if(p){J[f>>2]=p;f=f+4|0}m=0;if((g|0)==(o|0)){h=f;break b}c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+88>>2]=o;J[k+84>>2]=g;J[k+ -80>>2]=h;J[k+76>>2]=c?88466:88523;J[k+72>>2]=j;J[k+68>>2]=g>>>0>>0?88855:88910;J[k+64>>2]=i;ae(e,95733,88772,k- -64|0);e=(g|0)>(o|0);ba:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break ba;while(1){f=f-4|0;g=g-J[f>>2]|0;e=(o|0)<(g|0);if((g|0)<=(o|0))break ba;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f-r&4){J[f>>2]=0;f=f+4|0}J[f>>2]=o-((g|0)>0?g:0);h=f+4|0;break b}if(!e){h=f;break b}J[f+4>>2]=0;J[f>>2]=o;h=f+8|0}gc[J[q+76>>2]](b,r,h,o);J[q+72>>2]=m;J[q+64>>2]=l;J[q+68>>2]=0;w=-1;b=J[a+608>>2]+(J[a+604>> -2]-d|0)|0}J[a+604>>2]=d;J[a+608>>2]=b;bc=k+416|0;return w|0}function tIa(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;e=J[J[b+16>>2]+40>>2];if(!e){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return}c=bc-192|0;bc=c;b=J[e>>2];h=J[b+8>>2];j=J[b+24>>2];J[a>>2]=123;J[a+4>>2]=0;H[a+11|0]=1;J[695492]=0;J[c+176>>2]=13;b=c+176|0;aa(3521,j|0,b|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{if((d|0)==1)break u;d=J[J[e>>2]+24>>2];J[695492]=0; -b=aa(3521,d|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;v:{if(J[b>>2]!=7)break v;J[695492]=0;b=c+144|0;ia(3522,b|0,J[c+184>>2],834675,834760);d=J[695492];J[695492]=0;if((d|0)==1)break t;J[695492]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break s;if(H[c+155|0]<0)qc(J[c+144>>2]);J[695492]=0;b=c+144|0;ia(3522,b|0,J[c+184>>2],834818,834968);d=J[695492];J[695492]=0;if((d|0)==1)break r;J[695492]=0;f=b;b=K[c+155|0]; -d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break q;if(H[c+155|0]<0)qc(J[c+144>>2]);J[695492]=0;b=c+144|0;ia(3522,b|0,J[c+184>>2],835018,835132);d=J[695492];J[695492]=0;if((d|0)==1)break p;J[695492]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break o;if(H[c+155|0]<0)qc(J[c+144>>2]);J[695492]=0;b=c+144|0;ia(3522,b|0,J[c+184>>2],835187,835368);d=J[695492];J[695492]= -0;if((d|0)==1)break n;J[695492]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;if(H[c+155|0]<0)qc(J[c+144>>2]);J[695492]=0;b=c+144|0;ia(3522,b|0,J[c+184>>2],835416,835580);d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;if(H[c+155|0]<0)qc(J[c+144>>2]);J[695492]=0;b=c+144|0;ia(3522, -b|0,J[c+184>>2],835765,835864);d=J[695492];J[695492]=0;if((d|0)==1)break j;J[695492]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;if(H[c+155|0]<0)qc(J[c+144>>2]);J[695492]=0;b=c+144|0;ia(3523,b|0,J[c+184>>2],835929,836088);d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;if(H[c+ -155|0]<0)qc(J[c+144>>2]);J[695492]=0;b=c+144|0;ia(3523,b|0,J[c+184>>2],836194,836400);d=J[695492];J[695492]=0;if((d|0)==1)break f;J[695492]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;if(H[c+155|0]>=0)break v;qc(J[c+144>>2])}J[695492]=0;_(3205,c+176|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}b=Z()|0;break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;qc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+ -155|0]>=0)break c;qc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;qc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;qc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;qc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;qc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;qc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;qc(J[c+144>>2]);break c}g=O[J[e>>2]+16>>3];J[695492]= -0;b=c+164|0;Fa(3524,b|0,+g);d=J[695492];J[695492]=0;w:{x:{if((d|0)!=1){y:{d=qj(b,46,0);if((d|0)==-1)break y;J[695492]=0;ca(3525,b|0,d+2|0,0);b=J[695492];J[695492]=0;if((b|0)!=1)break y;b=Z()|0;break w}z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{b=K[c+175|0];k=b<<24>>24;L:{M:{N:{O:{P:{i=(k|0)<0?J[c+168>>2]:b;Q:{if(!i)break Q;d=i+10|0;if(d>>>0>=1073741808){J[695492]=0;_(2793,c+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break x;break b}R:{if(d>>>0<=1){J[c+136>>2]=0;J[c+128>>2]=0;J[c+132>>2]=0;H[c+139|0]=d;b= -c+128|0;break R}b=d|3;if(b>>>0>=1073741823){J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break x}J[695492]=0;f=b+1|0;b=$(4,f<<2)|0;l=J[695492];J[695492]=0;if((l|0)==1)break x;J[c+132>>2]=d;J[c+128>>2]=b;J[c+136>>2]=f|-2147483648}d=J[209128];J[b+32>>2]=J[209127];J[b+36>>2]=d;d=J[209126];J[b+24>>2]=J[209125];J[b+28>>2]=d;d=J[209124];J[b+16>>2]=J[209123];J[b+20>>2]=d;d=J[209122];J[b+8>>2]=J[209121];J[b+12>>2]=d;d=J[209120];J[b>>2]=J[209119];J[b+4>>2]=d;d=b+40|0;b=i<<2;o=Zc(d,(k|0)< -0?J[c+164>>2]:c+164|0,b)+b|0,p=0,J[o>>2]=p;J[695492]=0;b=aa(2860,c+128|0,836576)|0;d=J[695492];J[695492]=0;if((d|0)==1)break P;J[c+152>>2]=J[b+8>>2];d=J[b+4>>2];J[c+144>>2]=J[b>>2];J[c+148>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:c+144|0)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break O;if(H[c+155|0]<0)qc(J[c+144>>2]);if(H[c+139|0]>=0)break Q;qc(J[c+128>>2])}b=J[e>>2];if(b)break M;g=0;break L}b=Z()|0;break N}b=Z()| -0;if(H[c+155|0]>=0)break N;qc(J[c+144>>2])}if(H[c+139|0]>=0)break w;qc(J[c+128>>2]);break w}b=J[b+28>>2];J[695492]=0;b=aa(3280,b|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break K;b=J[b+12>>2];g=O[b+48>>3];m=O[b+32>>3];b=J[J[e>>2]+28>>2];J[695492]=0;b=aa(3280,b|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break K;b=J[b+12>>2];n=O[b+56>>3]-O[b+40>>3];g=g-m}J[695492]=0;aa(2860,a|0,836680)|0;b=J[695492];J[695492]=0;if((b|0)==1)break K;J[695492]=0;d=c+144|0;g=g*100;S:{if(R(g)<2147483648){b=~~g;break S}b= --2147483648}da(2276,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;f=d;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break I;if(H[c+155|0]<0)qc(J[c+144>>2]);J[695492]=0;aa(2860,a|0,836800)|0;b=J[695492];J[695492]=0;if((b|0)==1)break K;J[695492]=0;d=c+144|0;g=n*100;T:{if(R(g)<2147483648){b=~~g;break T}b=-2147483648}da(2276,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break H;J[695492]=0;f=d;b=K[c+155|0];d=b<< -24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break G;if(H[c+155|0]<0)qc(J[c+144>>2]);J[695492]=0;aa(2860,a|0,836956)|0;b=J[695492];J[695492]=0;if((b|0)==1)break K;b=J[J[J[e>>2]+28>>2]+20>>2];J[695492]=0;d=c+144|0;da(2276,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break F;J[695492]=0;f=d;b=K[c+155|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E;if(H[c+155|0]<0)qc(J[c+144>>2]); -J[695492]=0;aa(2860,a|0,837116)|0;b=J[695492];J[695492]=0;if((b|0)==1)break K;J[c+128>>2]=13;J[c+112>>2]=13;J[c+96>>2]=13;J[c+80>>2]=13;J[c+144>>2]=5;J[695492]=0;J[c+64>>2]=13;d=$(4,56)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[695492]=0;k=$(4,160)|0;b=J[695492];J[695492]=0;if((b|0)==1)break C;b=J[J[h>>2]+100>>2];J[695492]=0;b=$(b|0,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break B;i=J[J[h>>2]+92>>2];J[695492]=0;f=b;b=c+144|0;h=ma(i|0,h|0,f|0,0,0,b|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break B; -J[695492]=0;h=ga(3494,k|0,j|0,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break B;J[695492]=0;h=ha(3308,d|0,j|0,h|0,1)|0;k=J[695492];J[695492]=0;if((k|0)==1)break C;J[695492]=0;Da(3526,h|0,b|0,0,0,0,0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[695492]=0;Da(3526,h|0,c+128|0,0,0,0,0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[695492]=0;Da(3526,h|0,c+112|0,0,0,0,0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;b=0;J[695492]=0;Da(3526,h|0,c+96|0,0,0,0,0,0,0,0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break D;U:{if(J[c+144>>2]!=1|J[c+128>>2]!=1|J[c+112>>2]!=10)break U;if(Ec(J[c+120>>2],837208)|J[c+96>>2]!=7)break U;J[695492]=0;ha(3203,J[c+104>>2],837342,c+80|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[695492]=0;ha(3203,J[c+104>>2],837448,c- -64|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;d=J[c+80>>2];b=0;V:{if(d-3>>>0<4294967294)break V;b=0;if(!(((d|0)==1?+J[c+88>>2]:O[c+88>>3])>0))break V;d=J[c+64>>2];b=0;if(d-3>>>0<4294967294)break V;g=(d|0)==1?+J[c+72>> -2]:O[c+72>>3];W:{if(g<4294967296&g>=0){b=~~g>>>0;break W}b=0}b=(b|0)==J[e+24>>2]}J[695492]=0;_(3205,c- -64|0);e=J[695492];J[695492]=0;if((e|0)==1)break D;J[695492]=0;_(3205,c+80|0);e=J[695492];J[695492]=0;if((e|0)==1)break D}J[695492]=0;_(3205,c+96|0);e=J[695492];J[695492]=0;if((e|0)==1)break D;J[695492]=0;_(3205,c+112|0);e=J[695492];J[695492]=0;if((e|0)==1)break D;J[695492]=0;_(3205,c+128|0);e=J[695492];J[695492]=0;if((e|0)==1)break D;J[695492]=0;_(3205,c+144|0);e=J[695492];J[695492]=0;if((e|0)== -1)break D;qc(qk(h));J[695492]=0;aa(2860,a|0,(b?837568:837704)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[695492]=0;aa(2860,a|0,837856)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[c+48>>2]=13;J[c+32>>2]=13;b=J[j+24>>2];e=J[j+20>>2];J[695492]=0;e=ma(3527,j|0,e|0,b|0,c+48|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break z;b=838408;X:{if(J[e>>2]!=7)break X;J[695492]=0;e=ha(3203,J[c+56>>2],837927,c+32|0,0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break z;if(J[e>>2]!=7)break X;J[c+16>>2]=13;J[695492]= -0;J[c>>2]=13;e=ha(3203,J[c+40>>2],838107,c+16|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;b=838408;Y:{if(J[e>>2]|J[c+24>>2]!=1)break Y;J[695492]=0;e=ha(3203,J[c+40>>2],838194,c|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;b=2169548;if(J[e>>2])break Y;b=J[c+8>>2]==1?838408:2169548}J[695492]=0;_(3205,c+16|0);e=J[695492];J[695492]=0;if((e|0)==1)break A;J[695492]=0;_(3205,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break A}J[695492]=0;_(3205,c+32|0);e=J[695492];J[695492]=0;if((e|0)==1)break z; -J[695492]=0;_(3205,c+48|0);e=J[695492];J[695492]=0;if((e|0)==1)break z;J[695492]=0;aa(2860,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break z;if(H[c+175|0]<0)qc(J[c+164>>2]);bc=c+192|0;break a}b=Z()|0;break w}b=Z()|0;break w}b=Z()|0;if(H[c+155|0]>=0)break w;qc(J[c+144>>2]);break w}b=Z()|0;break w}b=Z()|0;if(H[c+155|0]>=0)break w;qc(J[c+144>>2]);break w}b=Z()|0;break w}b=Z()|0;if(H[c+155|0]>=0)break w;qc(J[c+144>>2]);break w}b=Z()|0;break w}b=Z()|0;qc(d);break w}b=Z()|0;qc(k);qc(d);break w}b=Z()| -0;break w}b=Z()|0;break w}b=Z()|0;break c}b=Z()|0}if(H[c+175|0]>=0)break c;qc(J[c+164>>2])}if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}B()}}function Hka(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!J[a+8>>2]){c=rc(32);J[c+20>>2]=0;J[c+16>>2]=J[609154];b=J[609153];J[c+8>>2]=J[609152];J[c+12>>2]=b;b=J[609151];J[c>>2]=J[609150];J[c+4>>2]=b;g=a+4|0;e=g;b:{c:{b=J[a+4>>2];if(b)while(1){e=b;if(!J[b+16>>2])break c;b=J[b>>2];if(b)continue;break}J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a; -J[b+16>>2]=0;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[e>>2]=b;d=J[J[a>>2]>>2];if(d){J[a>>2]=d;b=J[e>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break b}qc(c)}c=rc(32);J[c+16>>2]=0;b=J[609159];J[c+8>>2]=J[609158];J[c+12>>2]=b;b=J[609157];J[c>>2]=J[609156];J[c+4>>2]=b;d:{e:{d=g;e=d;b=J[e>>2];f:{if(!b)break f;while(1){e=b;d=J[b+16>>2];if(d>>>0>=256){d=b;b=J[b>>2];if(b)continue;break f}if((d|0)==255)break e;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0; -b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=255;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=4;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break d}qc(c)}c=rc(32);J[c+16>>2]=0;b=J[609164];J[c+8>>2]=J[609163];J[c+12>>2]=b;b=J[609162];J[c>>2]=J[609161];J[c+4>>2]=b;g:{h:{d=g;e=d;b=J[e>>2];i:{if(!b)break i;while(1){e=b;d=J[b+16>>2];if(d>>>0>=65536){d=b;b=J[b>>2];if(b)continue;break i}if((d|0)==65535)break h; -b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=65535;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=4;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break g}qc(c)}c=rc(48);J[c+32>>2]=0;b=J[609173];J[c+24>>2]=J[609172];J[c+28>>2]=b;b=J[609171];J[c+16>>2]=J[609170];J[c+20>>2]=b;b=J[609169];J[c+8>>2]=J[609168];J[c+12>>2]=b;b=J[609167];J[c>>2]=J[609166]; -J[c+4>>2]=b;j:{k:{d=g;e=d;b=J[e>>2];l:{if(!b)break l;while(1){e=b;d=J[b+16>>2];if(d>>>0>=140){d=b;b=J[b>>2];if(b)continue;break l}if((d|0)==139)break k;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=139;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break j}qc(c)}c=rc(48);J[c+32>>2]=0;b=J[609182];J[c+24>> -2]=J[609181];J[c+28>>2]=b;b=J[609180];J[c+16>>2]=J[609179];J[c+20>>2]=b;b=J[609178];J[c+8>>2]=J[609177];J[c+12>>2]=b;b=J[609176];J[c>>2]=J[609175];J[c+4>>2]=b;m:{n:{d=g;e=d;b=J[e>>2];o:{if(!b)break o;while(1){e=b;d=J[b+16>>2];if(d>>>0>=35724){d=b;b=J[b>>2];if(b)continue;break o}if((d|0)==35723)break n;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=35723;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+ -20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break m}qc(c)}c=rc(48);J[c+32>>2]=0;b=J[609191];J[c+24>>2]=J[609190];J[c+28>>2]=b;b=J[609189];J[c+16>>2]=J[609188];J[c+20>>2]=b;b=J[609187];J[c+8>>2]=J[609186];J[c+12>>2]=b;b=J[609185];J[c>>2]=J[609184];J[c+4>>2]=b;p:{q:{d=g;e=d;b=J[e>>2];r:{if(!b)break r;while(1){e=b;d=J[b+16>>2];if(d>>>0>=11119018){d=b;b=J[b>>2];if(b)continue;break r}if((d|0)==11119017)break q;b=J[e+4>>2];if(b)continue;break}d=e+4| -0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=11119017;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break p}qc(c)}c=rc(48);J[c+36>>2]=0;J[c+32>>2]=J[609201];b=J[609200];J[c+24>>2]=J[609199];J[c+28>>2]=b;b=J[609198];J[c+16>>2]=J[609197];J[c+20>>2]=b;b=J[609196];J[c+8>>2]=J[609195];J[c+12>>2]=b;b=J[609194];J[c>>2]=J[609193];J[c+4>>2]=b;s:{t:{d= -g;e=d;b=J[e>>2];u:{if(!b)break u;while(1){e=b;d=J[b+16>>2];if(d>>>0>=25601){d=b;b=J[b>>2];if(b)continue;break u}if((d|0)==25600)break t;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=25600;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break s}qc(c)}c=rc(48);J[c+44>>2]=0;J[c+40>>2]=J[609213];b=J[609212]; -J[c+32>>2]=J[609211];J[c+36>>2]=b;b=J[609210];J[c+24>>2]=J[609209];J[c+28>>2]=b;b=J[609208];J[c+16>>2]=J[609207];J[c+20>>2]=b;b=J[609206];J[c+8>>2]=J[609205];J[c+12>>2]=b;b=J[609204];J[c>>2]=J[609203];J[c+4>>2]=b;v:{w:{d=g;e=d;b=J[e>>2];x:{if(!b)break x;while(1){e=b;d=J[b+16>>2];if(d>>>0>=8388737){d=b;b=J[b>>2];if(b)continue;break x}if((d|0)==8388736)break w;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=8388736;J[b+8>>2]=e;J[b>> -2]=0;J[b+4>>2]=0;J[b+24>>2]=11;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break v}qc(c)}c=rc(32);J[c+28>>2]=0;J[c+24>>2]=J[609221];b=J[609220];J[c+16>>2]=J[609219];J[c+20>>2]=b;b=J[609218];J[c+8>>2]=J[609217];J[c+12>>2]=b;b=J[609216];J[c>>2]=J[609215];J[c+4>>2]=b;y:{z:{d=g;e=d;b=J[e>>2];A:{if(!b)break A;while(1){e=b;d=J[b+16>>2];if(d>>>0>=9109505){d=b;b=J[b>>2];if(b)continue;break A}if((d|0)==9109504)break z;b=J[e+ -4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=9109504;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break y}qc(c)}c=rc(48);J[c+40>>2]=0;b=J[609232];J[c+32>>2]=J[609231];J[c+36>>2]=b;b=J[609230];J[c+24>>2]=J[609229];J[c+28>>2]=b;b=J[609228];J[c+16>>2]=J[609227];J[c+20>>2]=b;b=J[609226];J[c+8>>2]=J[609225];J[c+ -12>>2]=b;b=J[609224];J[c>>2]=J[609223];J[c+4>>2]=b;B:{C:{d=g;e=d;b=J[e>>2];D:{if(!b)break D;while(1){e=b;d=J[b+16>>2];if(d>>>0>=8421377){d=b;b=J[b>>2];if(b)continue;break D}if((d|0)==8421376)break C;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=8421376;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=10;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break B}qc(c)}c= -rc(32);J[c+20>>2]=0;J[c+16>>2]=J[609238];b=J[609237];J[c+8>>2]=J[609236];J[c+12>>2]=b;b=J[609235];J[c>>2]=J[609234];J[c+4>>2]=b;E:{F:{d=g;e=d;b=J[e>>2];G:{if(!b)break G;while(1){e=b;d=J[b+16>>2];if(d>>>0>=65281){d=b;b=J[b>>2];if(b)continue;break G}if((d|0)==65280)break F;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=65280;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>> -2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break E}qc(c)}c=rc(48);J[c+36>>2]=0;J[c+32>>2]=J[609248];b=J[609247];J[c+24>>2]=J[609246];J[c+28>>2]=b;b=J[609245];J[c+16>>2]=J[609244];J[c+20>>2]=b;b=J[609243];J[c+8>>2]=J[609242];J[c+12>>2]=b;b=J[609241];J[c>>2]=J[609240];J[c+4>>2]=b;H:{I:{d=g;e=d;b=J[e>>2];J:{if(!b)break J;while(1){e=b;d=J[b+16>>2];if(d>>>0>=13882324){d=b;b=J[b>>2];if(b)continue;break J}if((d|0)==13882323)break I;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]= -0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=13882323;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break H}qc(c)}c=rc(32);J[c+28>>2]=0;J[c+24>>2]=J[609256];b=J[609255];J[c+16>>2]=J[609254];J[c+20>>2]=b;b=J[609253];J[c+8>>2]=J[609252];J[c+12>>2]=b;b=J[609251];J[c>>2]=J[609250];J[c+4>>2]=b;K:{L:{d=g;e=d;b=J[e>>2];M:{if(!b)break M;while(1){e=b;d=J[b+ -16>>2];if(d>>>0>=16711936){d=b;b=J[b>>2];if(b)continue;break M}if((d|0)==16711935)break L;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=16711935;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break K}qc(c)}c=rc(16);J[c+12>>2]=0;J[c+8>>2]=J[609260];b=J[609259];J[c>>2]=J[609258];J[c+4>>2]=b;N:{O:{d=g;e= -d;b=J[e>>2];P:{if(!b)break P;while(1){e=b;d=J[b+16>>2];if(d>>>0>=16711681){d=b;b=J[b>>2];if(b)continue;break P}if((d|0)==16711680)break O;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=16711680;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=3;J[b+28>>2]=-2147483644;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break N}qc(c)}c=rc(32);J[c+20>>2]=0;J[c+16>>2]=J[609266];b=J[609265]; -J[c+8>>2]=J[609264];J[c+12>>2]=b;b=J[609263];J[c>>2]=J[609262];J[c+4>>2]=b;Q:{R:{d=g;e=d;b=J[e>>2];S:{if(!b)break S;while(1){e=b;d=J[b+16>>2];if(d>>>0>=16777216){d=b;b=J[b>>2];if(b)continue;break S}if((d|0)==16777215)break R;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[695492]=0;b=$(4,32)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+16>>2]=16777215;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Ic(J[a+4>>2], -b);J[a+8>>2]=J[a+8>>2]+1;break Q}qc(c)}c=rc(32);J[c+24>>2]=0;b=J[609273];J[c+16>>2]=J[609272];J[c+20>>2]=b;b=J[609271];J[c+8>>2]=J[609270];J[c+12>>2]=b;b=J[609269];J[c>>2]=J[609268];J[c+4>>2]=b;T:{e=g;b=J[e>>2];U:{if(!b)break U;while(1){e=b;d=J[b+16>>2];if(d>>>0>=16776961){g=b;b=J[b>>2];if(b)continue;break U}if((d|0)==16776960)break T;b=J[e+4>>2];if(b)continue;break}g=e+4|0}J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b+16>>2]=16776960;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+ -24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[g>>2]=b;d=J[J[a>>2]>>2];if(d){J[a>>2]=d;b=J[g>>2]}Ic(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;return}qc(c)}return}a=Z()|0;qc(c);ba(a|0);B()}function RVa(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;d=bc-160|0;bc=d;a=cB(a,b,c);J[a+320>>2]=0;J[a+324>>2]=0;J[a>>2]=827352;J[a+328>>2]=0;J[a+332>>2]=0;J[a+336>>2]=0;J[a+340>>2]=0;J[a+344>>2]=0;J[a+348>>2]=0;J[a+352>>2]=0;J[a+356>>2]=0;J[a+360>>2]=0;J[a+364>>2]=0;J[a+368>>2]=0;J[a+372>> -2]=0;J[a+376>>2]=0;J[a+380>>2]=0;J[d+128>>2]=13;J[d+112>>2]=13;J[695492]=0;J[d+96>>2]=13;e=d+112|0;aa(3289,c|0,e|0)|0;f=J[695492];J[695492]=0;h=a+372|0;j=a+324|0;a:{b:{if((f|0)==1)break b;b=J[b+24>>2];J[695492]=0;ha(3207,e|0,b|0,d+96|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;b=d+128|0;e=ha(3203,J[d+104>>2],804102,b|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;c:{d:{e:{if(!e)break e;J[695492]=0;ca(3290,d+ -144|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break d;if(H[a+335|0]<0)qc(J[j>>2]);b=J[d+148>>2];J[j>>2]=J[d+144>>2];J[j+4>>2]=b;J[j+8>>2]=J[d+152>>2];b=K[a+335|0];if(!(b<<24>>24<0?J[a+328>>2]:b))break e;J[a+4>>2]=J[a+4>>2]|512}J[695492]=0;_(3205,d+128|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}c=Z()|0;break a}J[695492]=0;_(3205,d+96|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;b=ga(3291,c|0,804498,d+128|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(J[b>>2]==4){J[695492]= -0;aa(2808,j|0,J[d+136>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;_(3205,d+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[d+80>>2]=13;b=J[c+40>>2];H[a+316|0]=(b|0)==1?3:0;J[695492]=0;e=d+80|0;f=ga(3291,c|0,804966,e|0)|0;i=J[695492];J[695492]=0;f:{if((i|0)==1)break f;g:{h:{i:{j:{k:{l:{m:{n:{o:{if(J[f>>2]==7){p:{if(!b){J[695492]=0;la(3292,d+144|0,a|0,e|0,805435,10);b=J[695492];J[695492]=0;q:{r:{if((b|0)!=1){if(H[a+347|0]<0)qc(J[a+336>>2]);b=J[d+148>>2];J[a+336>>2]=J[d+144>> -2];J[a+340>>2]=b;J[a+344>>2]=J[d+152>>2];J[695492]=0;la(3292,d+144|0,a|0,d+80|0,805853,11);b=J[695492];J[695492]=0;if((b|0)==1)break r;if(H[a+359|0]<0)qc(J[a+348>>2]);b=J[d+148>>2];J[a+348>>2]=J[d+144>>2];J[a+352>>2]=b;J[a+356>>2]=J[d+152>>2];J[695492]=0;la(3292,d+144|0,a|0,d+80|0,806280,12);b=J[695492];J[695492]=0;if((b|0)==1)break q;if(H[a+371|0]<0)qc(J[a+360>>2]);b=J[d+148>>2];J[a+360>>2]=J[d+144>>2];J[a+364>>2]=b;J[a+368>>2]=J[d+152>>2];break p}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}J[695492]= -0;b=ha(3203,J[d+88>>2],805435,d+128|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;s:{if(J[b>>2]!=3)break s;t:{u:{v:{w:{x:{y:{z:{f=J[J[d+136>>2]+4>>2];b=Qc(f);if(b>>>0>=2147483632){J[695492]=0;_(1623,d+144|0);b=J[695492];J[695492]=0;if((b|0)==1)break z;break g}A:{if(b>>>0<=10){H[d+155|0]=b;e=d+144|0;break A}J[695492]=0;i=(b|15)+1|0;e=$(4,i|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break z;J[d+144>>2]=e;J[d+148>>2]=b;J[d+152>>2]=i|-2147483648}m=Zc(e,f,b)+b|0,n=0,H[m|0]=n;e=K[d+155|0];b=e<<24>>24< -0;if(((b?J[d+148>>2]:e)|0)!=1)break v;B:{e=K[(b?J[d+144>>2]:d+144|0)|0];switch(e-52|0){case 1:case 2:case 3:break v;case 4:break x;case 0:break y;default:break B}}b=3;switch(e-108|0){case 0:break u;case 9:break w;default:break v}}c=Z()|0;break a}b=0;break u}b=1;break u}b=2;break u}b=5;e=d+144|0;if(el(e,808055))break u;b=4;if(!el(e,808619))break t}H[a+316|0]=b}if(H[d+155|0]>=0)break s;qc(J[d+144>>2])}J[695492]=0;_(3205,d+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break f}J[695492]=0;b=ha(3203,J[d+ -88>>2],808986,d+128|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;if(J[b>>2]==1){H[a+317|0]=J[d+136>>2];J[a+4>>2]=J[a+4>>2]|8192}J[695492]=0;b=d+128|0;_(3205,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[d+64>>2]=13;J[695492]=0;e=ha(3203,J[d+88>>2],809318,d- -64|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(J[e>>2]==7){J[a+320>>2]=1;J[695492]=0;b=ha(3203,J[d+72>>2],826516,b|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;C:{if(J[b>>2]!=4)break C;J[a+320>>2]=J[a+320>>2]|2;f=J[d+ -136>>2];b=Qc(f);if(b>>>0>=2147483632){J[695492]=0;_(1623,d+144|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break h}D:{if(b>>>0<=10){H[d+155|0]=b;e=d+144|0;break D}J[695492]=0;i=(b|15)+1|0;e=$(4,i|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;J[d+144>>2]=e;J[d+148>>2]=b;J[d+152>>2]=i|-2147483648}m=Zc(e,f,b)+b|0,n=0,H[m|0]=n;H[a+318|0]=0;b=K[d+155|0];f=b<<24>>24;e=(f|0)<0;E:{if(((e?J[d+148>>2]:b)|0)!=1)break E;b=2;F:{G:switch(K[(e?J[d+144>>2]:d+144|0)|0]-66|0){case 17:b=3;break F;case 0:break F; -case 12:break G;default:break E}b=1}H[a+318|0]=b}if((f|0)>=0)break C;qc(J[d+144>>2])}J[695492]=0;b=d+128|0;_(3205,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;J[695492]=0;b=ha(3203,J[d+72>>2],777246,b|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;H:{if(J[b>>2]!=4)break H;J[a+320>>2]=J[a+320>>2]|4;f=J[d+136>>2];b=Qc(f);if(b>>>0>=2147483632){J[695492]=0;_(1623,d+144|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break j}I:{if(b>>>0<=10){H[d+155|0]=b;e=d+144|0;break I}J[695492]=0;i=(b|15)+1| -0;e=$(4,i|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;J[d+144>>2]=e;J[d+148>>2]=b;J[d+152>>2]=i|-2147483648}m=Zc(e,f,b)+b|0,n=0,H[m|0]=n;H[a+319|0]=0;e=K[d+155|0];f=e<<24>>24;b=(f|0)<0;if(!(((b?J[d+148>>2]:e)|0)!=1|K[(b?J[d+144>>2]:d+144|0)|0]!=65))H[a+319|0]=1;if((f|0)>=0)break H;qc(J[d+144>>2])}J[695492]=0;b=d+128|0;_(3205,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;J[695492]=0;b=ha(3203,J[d+72>>2],810164,b|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;if(J[b>>2]==6){J[a+392>>2]= -0;J[a+396>>2]=1071644672;J[a+384>>2]=0;J[a+388>>2]=1071644672;J[a+320>>2]=J[a+320>>2]|8;J[695492]=0;J[d+144>>2]=13;b=ha(3283,J[d+136>>2],0,d+144|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;k=J[b>>2]-3>>>0>=4294967294?J[d+144>>2]==1?+J[d+152>>2]:O[d+152>>3]:k;J[695492]=0;b=d+144|0;_(3205,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break o;O[a+384>>3]=k;J[695492]=0;J[d+144>>2]=13;b=ha(3283,J[d+136>>2],1,b|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;k=0;k=J[b>>2]-3>>>0>=4294967294?J[d+144>> -2]==1?+J[d+152>>2]:O[d+152>>3]:k;J[695492]=0;_(3205,d+144|0);b=J[695492];J[695492]=0;if((b|0)==1)break o;O[a+392>>3]=k}J[695492]=0;b=d+128|0;_(3205,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;J[695492]=0;b=ha(3203,J[d+72>>2],810486,b|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;if(!(J[b>>2]|!J[d+136>>2]))J[a+320>>2]=J[a+320>>2]|16;J[695492]=0;_(3205,d+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break i}J[695492]=0;_(3205,d- -64|0);b=J[695492];J[695492]=0;if((b|0)==1)break i}J[695492]=0; -_(3205,d+80|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;J[d+144>>2]=13;ga(3291,c|0,810672,d+144|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[695492]=0;J[d+64>>2]=13;b=ga(3291,c|0,811150,d+128|0)|0;c=J[695492];J[695492]=0;J:{if((c|0)==1)break J;K:{if(J[b>>2]!=7)break K;J[695492]=0;b=ha(3203,J[d+136>>2],809748,d- -64|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break J;if(J[b>>2]!=7)break K;i=J[J[d+72>>2]+16>>2];if((i|0)<=0)break K;b=0;while(1){J[695492]=0;f=J[J[J[d+72>>2]+4>>2]+ -(b<<5)>>2];c=J[695492];J[695492]=0;if((c|0)==1)break k;c=Qc(f);if(c>>>0>=2147483632){J[695492]=0;_(1623,d+52|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;c=Z()|0;break a}L:{if(c>>>0<=10){H[d+63|0]=c;e=d+52|0;break L}J[695492]=0;g=(c|15)+1|0;e=$(4,g|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break k;J[d+52>>2]=e;J[d+56>>2]=c;J[d+60>>2]=g|-2147483648}m=Zc(e,f,c)+c|0,n=0,H[m|0]=n;c=K[d+63|0];f=c<<24>>24;e=(f|0)<0;g=J[d+56>>2];l=e?g:c;M:{if((l|0)==3){c=0;if(!Wc((f|0)<0?J[d+52>>2]:d+52|0,811476,3))break M}J[a+ -4>>2]=J[a+4>>2]|16384;N:{if((d+52|0)==(h|0))break N;O:{P:{if(H[a+383|0]>=0){if(e)break P;c=J[d+56>>2];J[h>>2]=J[d+52>>2];J[h+4>>2]=c;J[h+8>>2]=J[d+60>>2];break N}J[695492]=0;ga(3294,h|0,(e?J[d+52>>2]:d+52|0)|0,l|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break O;break N}J[695492]=0;ga(3295,h|0,J[d+52>>2],g|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break N}c=Z()|0;break m}c=1;if(J[d+144>>2]!=6)break M;e=d+52|0;if(H[(H[d+63|0]<0?J[d+52>>2]:e)|0]-48>>>0>9)break M;J[695492]=0;e=ga(3067,e|0,0,10)|0;f=J[695492]; -J[695492]=0;Q:{if((f|0)!=1){if((e|0)<0)break M;f=J[d+152>>2];if((e|0)>=J[f+12>>2])break M;J[695492]=0;J[d+32>>2]=13;e=ha(3283,f|0,e|0,d+32|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break n;R:{S:{T:{if(!e)break T;switch(J[d+32>>2]-3|0){case 3:break R;case 0:break S;default:break T}}J[695492]=0;_(3205,d+32|0);e=J[695492];J[695492]=0;if((e|0)!=1)break M;break n}J[695492]=0;f=$(4,12)|0;e=J[695492];J[695492]=0;U:{V:{if((e|0)!=1){J[695492]=0;e=aa(3187,f|0,J[d+40>>2])|0;g=J[695492];J[695492]=0;if((g|0)== -1)break V;f=J[e+4>>2];g=J[e>>2];J[695492]=0;ca(3281,d+16|0,g|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break U;if(H[a+383|0]<0)qc(J[h>>2]);f=J[d+20>>2];J[h>>2]=J[d+16>>2];J[h+4>>2]=f;J[h+8>>2]=J[d+24>>2];qc(dd(e));break Q}c=Z()|0;break m}c=Z()|0;qc(f);break m}c=Z()|0;break m}e=J[d+40>>2];if(J[e+12>>2]<=0)break Q;J[695492]=0;J[d+16>>2]=13;e=ha(3283,e|0,0,d+16|0,0)|0;f=J[695492];J[695492]=0;W:{X:{Y:{if((f|0)!=1){if(J[e>>2]==3){J[695492]=0;f=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Y;J[695492]= -0;e=aa(3187,f|0,J[d+24>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break X;f=J[e+4>>2];g=J[e>>2];J[695492]=0;ca(3281,d+4|0,g|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break W;if(H[a+383|0]<0)qc(J[h>>2]);f=J[d+8>>2];J[h>>2]=J[d+4>>2];J[h+4>>2]=f;J[h+8>>2]=J[d+12>>2];qc(dd(e))}J[695492]=0;_(3205,d+16|0);e=J[695492];J[695492]=0;if((e|0)!=1)break Q}c=Z()|0;break m}c=Z()|0;break m}c=Z()|0;qc(f);break m}c=Z()|0;break m}c=Z()|0;break m}J[695492]=0;_(3205,d+32|0);e=J[695492];J[695492]=0;if((e|0)==1)break n}if(H[d+ -63|0]<0)qc(J[d+52>>2]);b=b+1|0;if(!((i|0)==(b|0)|c))continue;break}}J[695492]=0;_(3205,d- -64|0);b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;_(3205,d+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;_(3205,d+144|0);b=J[695492];J[695492]=0;if((b|0)==1)break J;bc=d+160|0;return a|0}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0}if(H[d+63|0]>=0)break a;qc(J[d+52>>2]);break a}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}B()}c=Z()|0;break a}c=Z()|0}if(H[a+ -383|0]<0)qc(J[h>>2]);if(H[a+371|0]<0)qc(J[a+360>>2]);if(H[a+359|0]<0)qc(J[a+348>>2]);if(H[a+347|0]<0)qc(J[a+336>>2]);if(H[a+335|0]<0)qc(J[j>>2]);em(a);ba(c|0);B()}function mp(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;g=bc+-64|0;bc=g;f=bc+-64|0;bc=f;H[a+72|0]=0;J[a>>2]=839596;J[a+24>>2]=0;J[a+28>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+ -132>>2]=0;J[a+136>>2]=0;J[f+32>>2]=13;J[f+16>>2]=13;J[f>>2]=13;e=J[b+24>>2];J[695492]=0;ha(3207,c|0,e|0,f+32|0,0)|0;e=J[695492];J[695492]=0;m=a+124|0;a:{b:{c:{d:{e:{f:{g:{if((e|0)==1)break g;J[a+32>>2]=J[c+8>>2];J[695492]=0;e=ha(3203,J[f+40>>2],815752,f+16|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break g;if(J[e>>2]==1)J[a+28>>2]=J[f+24>>2];J[695492]=0;e=f+16|0;_(3205,e|0);h=J[695492];J[695492]=0;if((h|0)==1)break g;J[a+36>>2]=d;h=J[b+28>>2];J[695492]=0;d=aa(3280,h|0,d+1|0)|0;h=J[695492];J[695492]= -0;if((h|0)==1)break e;d=J[d+12>>2];O[a+8>>3]=O[d+56>>3];i=O[d+32>>3];J[a+40>>2]=0;J[a+44>>2]=0;O[a+16>>3]=i;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;d=ha(3203,J[f+40>>2],840057,e|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;h:{if(J[d>>2]!=6)break h;d=J[f+24>>2];if(J[d+12>>2]!=4)break h;J[695492]=0;J[f+48>>2]=13;d=ha(3283,d|0,0,f+48|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;i=0;i=J[d>>2]-3>>>0>=4294967294?J[f+48>>2]==1?+J[f+56>> -2]:O[f+56>>3]:i;J[695492]=0;d=f+48|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;O[a+40>>3]=i-O[a+16>>3];n=O[a+8>>3];J[695492]=0;J[f+48>>2]=13;d=ha(3283,J[f+24>>2],3,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;i=0;i=J[d>>2]-3>>>0>=4294967294?J[f+48>>2]==1?+J[f+56>>2]:O[f+56>>3]:i;J[695492]=0;d=f+48|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;O[a+48>>3]=n-i;J[695492]=0;J[f+48>>2]=13;d=ha(3283,J[f+24>>2],2,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;i=0;i= -J[d>>2]-3>>>0>=4294967294?J[f+48>>2]==1?+J[f+56>>2]:O[f+56>>3]:i;J[695492]=0;d=f+48|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;O[a+56>>3]=i-O[a+16>>3];n=O[a+8>>3];J[695492]=0;J[f+48>>2]=13;d=ha(3283,J[f+24>>2],1,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;i=0;i=J[d>>2]-3>>>0>=4294967294?J[f+48>>2]==1?+J[f+56>>2]:O[f+56>>3]:i;J[695492]=0;_(3205,f+48|0);d=J[695492];J[695492]=0;if((d|0)==1)break e;O[a+64>>3]=n-i}J[695492]=0;d=f+16|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)== -1)break e;J[695492]=0;d=ha(3203,J[f+40>>2],839655,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;i:{j:{k:{l:{if(J[d>>2]==3){J[a+24>>2]=J[a+24>>2]|1;J[695492]=0;e=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;d=aa(3187,e|0,J[f+24>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break k;e=J[d+4>>2];h=J[d>>2];J[695492]=0;ca(3281,f+48|0,h|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;if(H[a+111|0]<0)qc(J[a+100>>2]);e=J[f+52>>2];J[a+100>>2]=J[f+48>>2];J[a+104>>2]=e;J[a+108>>2]= -J[f+56>>2];qc(dd(d))}J[695492]=0;d=f+16|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;J[695492]=0;d=ha(3203,J[f+40>>2],782546,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;if(J[d>>2]==3)break i;break f}d=Z()|0;break b}d=Z()|0;qc(e);break b}d=Z()|0;break b}J[a+24>>2]=J[a+24>>2]|2;J[695492]=0;e=$(4,12)|0;d=J[695492];J[695492]=0;m:{n:{if((d|0)!=1){J[695492]=0;d=aa(3187,e|0,J[f+24>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break n;e=J[d+4>>2];h=J[d>>2];J[695492]=0;ca(3281,f+48|0,h| -0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break m;if(H[a+99|0]<0)qc(J[a+88>>2]);e=J[f+52>>2];J[a+88>>2]=J[f+48>>2];J[a+92>>2]=e;J[a+96>>2]=J[f+56>>2];qc(dd(d));break f}d=Z()|0;break b}d=Z()|0;qc(e);break b}d=Z()|0;break b}d=Z()|0;break b}J[695492]=0;d=f+16|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;J[695492]=0;d=ha(3203,J[f+40>>2],839752,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;if(J[d>>2]==7){J[f+48>>2]=13;H[a+72|0]=0;J[a+24>>2]=J[a+24>>2]|4;J[695492]=0;d=ha(3203,J[f+24>> -2],777246,f+48|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;o:{if(J[d>>2]!=4)break o;if(Ec(J[d+8>>2],816014))break o;H[a+72|0]=1}J[695492]=0;d=f+48|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;J[a+80>>2]=0;J[a+84>>2]=0;J[695492]=0;d=ha(3203,J[f+24>>2],812380,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;if(J[d>>2]-3>>>0>=4294967294)O[a+80>>3]=J[f+48>>2]==1?+J[f+56>>2]:O[f+56>>3];J[695492]=0;_(3205,f+48|0);d=J[695492];J[695492]=0;if((d|0)==1)break c}J[695492]=0;d=f+16|0;_(3205, -d|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;J[695492]=0;d=ha(3203,J[f+40>>2],816014,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;p:{q:{r:{s:{t:{if(J[d>>2]!=6)break t;J[a+24>>2]=J[a+24>>2]|8;p=J[J[f+24>>2]+12>>2];if((p|0)<=0)break t;while(1){J[695492]=0;d=ha(3283,J[f+24>>2],o|0,f|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;i=0;i=J[d>>2]-3>>>0>=4294967294?J[f>>2]==1?+J[f+8>>2]:O[f+8>>3]:i;d=J[a+128>>2];j=J[a+132>>2];u:{if(d>>>0>>0){O[d>>3]=i;J[a+128>>2]=d+8;break u}v:{w:{e=J[m>> -2];l=d-e>>3;h=l+1|0;x:{if(h>>>0>=536870912){J[695492]=0;_(2399,m|0);b=J[695492];J[695492]=0;if((b|0)==1)break x;break d}j=j-e|0;k=j>>2;j=j>>>0>=2147483640?536870911:h>>>0>>0?k:h;if(!j){k=0;break v}if(j>>>0<536870912)break w;J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break d}d=Z()|0;break b}J[695492]=0;k=$(4,j<<3)|0;h=J[695492];J[695492]=0;if((h|0)==1)break s}h=(l<<3)+k|0;O[h>>3]=i;l=h+8|0;if((d|0)!=(e|0))while(1){h=h-8|0;d=d-8|0;O[h>>3]=O[d>>3];if((d|0)!=(e|0))continue;break}J[a+132>> -2]=(j<<3)+k;J[a+128>>2]=l;J[a+124>>2]=h;if(!e)break u;qc(e)}J[695492]=0;_(3205,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break r;o=o+1|0;if((p|0)!=(o|0))continue;break}}J[695492]=0;d=f+16|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;J[a+136>>2]=0;J[695492]=0;e=ha(3203,J[f+40>>2],839794,d|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;e=J[e>>2]==7;y:{if(!e){J[695492]=0;_(3205,d|0);h=J[695492];J[695492]=0;if((h|0)==1)break e;J[695492]=0;d=ha(3203,J[f+40>>2],839816,d|0,0)|0;h=J[695492]; -J[695492]=0;if((h|0)==1)break e;if(J[d>>2]!=6|J[J[f+24>>2]+12>>2]<3)break y}J[695492]=0;d=ga(3303,e|0,f+16|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;J[a+136>>2]=d}J[695492]=0;_(3205,f+16|0);d=J[695492];J[695492]=0;if((d|0)==1)break e;d=J[a+136>>2];if(!(!d|K[d|0]==5))J[a+24>>2]=J[a+24>>2]|16;J[695492]=0;d=ha(3203,J[f+40>>2],839987,f+16|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;if(J[d>>2]==3)break q;break p}d=Z()|0;break b}d=Z()|0;break b}J[a+24>>2]=J[a+24>>2]|32;J[695492]=0;e=$(4, -12)|0;d=J[695492];J[695492]=0;z:{A:{if((d|0)!=1){J[695492]=0;d=aa(3187,e|0,J[f+24>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break A;e=J[d+4>>2];h=J[d>>2];J[695492]=0;ca(3281,f+48|0,h|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break z;if(H[a+123|0]<0)qc(J[a+112>>2]);e=J[f+52>>2];J[a+112>>2]=J[f+48>>2];J[a+116>>2]=e;J[a+120>>2]=J[f+56>>2];qc(dd(d));break p}d=Z()|0;break b}d=Z()|0;qc(e);break b}d=Z()|0;break b}J[695492]=0;d=f+16|0;_(3205,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;J[695492]=0; -d=ha(3203,J[f+40>>2],811150,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;if(!(!J[J[f+24>>2]+16>>2]|J[d>>2]!=7))J[a+24>>2]=J[a+24>>2]|64;J[695492]=0;_(3205,f+16|0);d=J[695492];J[695492]=0;if((d|0)==1)break e;J[695492]=0;_(3205,f+32|0);d=J[695492];J[695492]=0;if((d|0)==1)break e;bc=f- -64|0;break a}d=Z()|0;break b}B()}d=Z()|0}b=J[m>>2];if(b){J[a+128>>2]=b;qc(b)}if(H[a+123|0]<0)qc(J[a+112>>2]);if(H[a+111|0]<0)qc(J[a+100>>2]);if(H[a+99|0]<0)qc(J[a+88>>2]);ba(d|0);B()}J[a+160>>2]=0;J[a+164>>2]= -0;J[a+4>>2]=0;J[a>>2]=834024;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[g+48>>2]=13;J[g+32>>2]=13;b=J[b+24>>2];J[695492]=0;ha(3207,c|0,b|0,g+48|0,0)|0;b=J[695492];J[695492]=0;B:{C:{D:{E:{if((b|0)==1)break E;J[695492]=0;b=ga(3298,J[g+56>>2],834063,g+32|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break E;if(J[b>>2]==9){J[a+4>>2]=J[a+4>>2]|1;J[a+144>>2]=J[g+40>>2]}J[695492]=0;la(3292,g+20|0,a|0,g+48|0,775062, -1);b=J[695492];J[695492]=0;if((b|0)==1)break D;if(H[a+171|0]<0)qc(J[a+160>>2]);b=J[g+24>>2];J[a+160>>2]=J[g+20>>2];J[a+164>>2]=b;J[a+168>>2]=J[g+28>>2];J[695492]=0;b=ha(3203,J[g+56>>2],805435,g+32|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break E;if(J[b>>2]-3>>>0>=4294967294){J[a+4>>2]=J[a+4>>2]|4;O[a+152>>3]=J[g+32>>2]==1?+J[g+40>>2]:O[g+40>>3]}J[695492]=0;_(3205,g+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break E;J[695492]=0;b=g+20|0;la(3292,b|0,a|0,g+48|0,805853,3);c=J[695492];J[695492]=0;F:{if((c| -0)!=1){J[695492]=0;da(3312,g+8|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break C;b=J[a+196>>2];if(b){J[a+200>>2]=b;qc(b);J[a+204>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0}b=J[g+8>>2];J[a+196>>2]=b;c=J[g+12>>2];J[a+200>>2]=c;J[a+204>>2]=J[g+16>>2];J[a+4>>2]=J[a+4>>2]&-9|((b|0)!=(c|0))<<3;J[695492]=0;la(3292,g+8|0,a|0,g+48|0,834185,4);b=J[695492];J[695492]=0;if((b|0)==1)break C;if(H[a+183|0]<0)qc(J[a+172>>2]);b=J[g+12>>2];J[a+172>>2]=J[g+8>>2];J[a+176>>2]=b;J[a+180>>2]=J[g+16>>2];J[695492]=0;b=ga(3298,J[g+ -56>>2],834292,g+32|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break C;if(J[b>>2]==9){J[a+4>>2]=J[a+4>>2]|32;J[a+148>>2]=J[g+40>>2]}J[695492]=0;b=g+32|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break C;J[695492]=0;b=ha(3203,J[g+56>>2],834372,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break C;G:{if(J[b>>2]!=4)break G;H[a+140|0]=1;J[a+4>>2]=J[a+4>>2]|64;if(J[g+32>>2]!=4)break G;if(Ec(J[g+40>>2],814292))break G;H[a+140|0]=0}J[695492]=0;_(3205,g+32|0);b=J[695492];J[695492]=0;if((b|0)!=1)break F; -break C}b=Z()|0;break B}J[695492]=0;la(3292,g+8|0,a|0,g+48|0,834421,7);b=J[695492];J[695492]=0;if((b|0)!=1){if(H[a+195|0]<0)qc(J[a+184>>2]);b=J[g+12>>2];J[a+184>>2]=J[g+8>>2];J[a+188>>2]=b;J[a+192>>2]=J[g+16>>2];J[695492]=0;_(3205,g+48|0);b=J[695492];J[695492]=0;if((b|0)==1)break C;if(H[g+31|0]<0)qc(J[g+20>>2]);bc=g- -64|0;return a}break C}b=Z()|0;break B}b=Z()|0;break B}b=Z()|0;if(H[g+31|0]>=0)break B;qc(J[g+20>>2])}c=J[a+196>>2];if(c){J[a+200>>2]=c;qc(c)}if(H[a+195|0]<0)qc(J[a+184>>2]);if(H[a+183| -0]<0)qc(J[a+172>>2]);if(H[a+171|0]<0)qc(J[a+160>>2]);pt(a);ba(b|0);B()}function hMa(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;if(!J[a+88>>2])return 0;o=J[a+56>>2];c=J[a+48>>2];n=J[a+68>>2];q=J[a+72>>2];m=J[a+76>>2];l=J[a+80>>2];j=J[a+8>>2];k=J[a+84>>2];if(b){s=J[b+4>>2];b=J[b>>2]}else b=0;h=a+16|0;r=J[a+64>>2];f=bc-896|0;bc=f;J[a+12>>2]=0;a:{if(o-5>>>0<=1){b:{if(!b)break b;g=f+304|0;r=J[b+4>>2];e=J[b>>2];i=(e|0)>=127?127:e;tc(g,r, -i);e=J[n+4>>2];d=K[e+36|0]|K[e+37|0]<<8|(K[e+38|0]<<16|K[e+39|0]<<24);c=g+i|0;j=K[e+32|0]|K[e+33|0]<<8|(K[e+34|0]<<16|K[e+35|0]<<24);H[c|0]=j;H[c+1|0]=j>>>8;H[c+2|0]=j>>>16;H[c+3|0]=j>>>24;H[c+4|0]=d;H[c+5|0]=d>>>8;H[c+6|0]=d>>>16;H[c+7|0]=d>>>24;d=J[q+4>>2];j=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);k=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[c+8|0]=k;H[c+9|0]=k>>>8;H[c+10|0]=k>>>16;H[c+11|0]=k>>>24;H[c+12|0]=j;H[c+13|0]=j>>>8;H[c+14|0]=j>>>16;H[c+15|0]=j>>>24;j=K[d+44|0]|K[d+45|0]<< -8|(K[d+46|0]<<16|K[d+47|0]<<24);k=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[c+48|0]=k;H[c+49|0]=k>>>8;H[c+50|0]=k>>>16;H[c+51|0]=k>>>24;H[c+52|0]=j;H[c+53|0]=j>>>8;H[c+54|0]=j>>>16;H[c+55|0]=j>>>24;j=K[d+36|0]|K[d+37|0]<<8|(K[d+38|0]<<16|K[d+39|0]<<24);k=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);H[c+40|0]=k;H[c+41|0]=k>>>8;H[c+42|0]=k>>>16;H[c+43|0]=k>>>24;H[c+44|0]=j;H[c+45|0]=j>>>8;H[c+46|0]=j>>>16;H[c+47|0]=j>>>24;j=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);k= -K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);H[c+32|0]=k;H[c+33|0]=k>>>8;H[c+34|0]=k>>>16;H[c+35|0]=k>>>24;H[c+36|0]=j;H[c+37|0]=j>>>8;H[c+38|0]=j>>>16;H[c+39|0]=j>>>24;j=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);k=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);H[c+24|0]=k;H[c+25|0]=k>>>8;H[c+26|0]=k>>>16;H[c+27|0]=k>>>24;H[c+28|0]=j;H[c+29|0]=j>>>8;H[c+30|0]=j>>>16;H[c+31|0]=j>>>24;j=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);k=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<< -16|K[d+11|0]<<24);H[c+16|0]=k;H[c+17|0]=k>>>8;H[c+18|0]=k>>>16;H[c+19|0]=k>>>24;H[c+20|0]=j;H[c+21|0]=j>>>8;H[c+22|0]=j>>>16;H[c+23|0]=j>>>24;j=i+56|0;Yv(g,j,g);if((o|0)==6){_A(g,r,i,d);e=J[n+4>>2]}d=f+304|0;if(Wc(d,e,32))break b;n=J[b+4>>2];tc(d,n,i);b=K[e+44|0]|K[e+45|0]<<8|(K[e+46|0]<<16|K[e+47|0]<<24);e=K[e+40|0]|K[e+41|0]<<8|(K[e+42|0]<<16|K[e+43|0]<<24);H[c|0]=e;H[c+1|0]=e>>>8;H[c+2|0]=e>>>16;H[c+3|0]=e>>>24;H[c+4|0]=b;H[c+5|0]=b>>>8;H[c+6|0]=b>>>16;H[c+7|0]=b>>>24;b=J[q+4>>2];e=K[b+4|0]|K[b+ -5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[c+8|0]=g;H[c+9|0]=g>>>8;H[c+10|0]=g>>>16;H[c+11|0]=g>>>24;H[c+12|0]=e;H[c+13|0]=e>>>8;H[c+14|0]=e>>>16;H[c+15|0]=e>>>24;e=K[b+44|0]|K[b+45|0]<<8|(K[b+46|0]<<16|K[b+47|0]<<24);g=K[b+40|0]|K[b+41|0]<<8|(K[b+42|0]<<16|K[b+43|0]<<24);H[c+48|0]=g;H[c+49|0]=g>>>8;H[c+50|0]=g>>>16;H[c+51|0]=g>>>24;H[c+52|0]=e;H[c+53|0]=e>>>8;H[c+54|0]=e>>>16;H[c+55|0]=e>>>24;e=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);g=K[b+ -32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);H[c+40|0]=g;H[c+41|0]=g>>>8;H[c+42|0]=g>>>16;H[c+43|0]=g>>>24;H[c+44|0]=e;H[c+45|0]=e>>>8;H[c+46|0]=e>>>16;H[c+47|0]=e>>>24;e=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);g=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);H[c+32|0]=g;H[c+33|0]=g>>>8;H[c+34|0]=g>>>16;H[c+35|0]=g>>>24;H[c+36|0]=e;H[c+37|0]=e>>>8;H[c+38|0]=e>>>16;H[c+39|0]=e>>>24;e=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);g=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16| -K[b+19|0]<<24);H[c+24|0]=g;H[c+25|0]=g>>>8;H[c+26|0]=g>>>16;H[c+27|0]=g>>>24;H[c+28|0]=e;H[c+29|0]=e>>>8;H[c+30|0]=e>>>16;H[c+31|0]=e>>>24;e=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);g=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);H[c+16|0]=g;H[c+17|0]=g>>>8;H[c+18|0]=g>>>16;H[c+19|0]=g>>>24;H[c+20|0]=e;H[c+21|0]=e>>>8;H[c+22|0]=e>>>16;H[c+23|0]=e>>>24;Yv(d,j,d);if((o|0)==6)_A(d,n,i,b);c=f+500|0;wI(c,f+304|0);J[f+764>>2]=0;J[f+768>>2]=0;J[f+756>>2]=0;J[f+760>>2]=0;nt(c,J[m+4>>2],0); -b=J[f+784>>2];e=J[f+780>>2];H[h+8|0]=e;H[h+9|0]=e>>>8;H[h+10|0]=e>>>16;H[h+11|0]=e>>>24;H[h+12|0]=b;H[h+13|0]=b>>>8;H[h+14|0]=b>>>16;H[h+15|0]=b>>>24;b=J[f+776>>2];e=J[f+772>>2];H[h|0]=e;H[h+1|0]=e>>>8;H[h+2|0]=e>>>16;H[h+3|0]=e>>>24;H[h+4|0]=b;H[h+5|0]=b>>>8;H[h+6|0]=b>>>16;H[h+7|0]=b>>>24;nt(c,J[m+4>>2]+16|0,0);b=J[f+784>>2];e=J[f+780>>2];H[h+24|0]=e;H[h+25|0]=e>>>8;H[h+26|0]=e>>>16;H[h+27|0]=e>>>24;H[h+28|0]=b;H[h+29|0]=b>>>8;H[h+30|0]=b>>>16;H[h+31|0]=b>>>24;b=J[f+776>>2];e=J[f+772>>2];H[h+16| -0]=e;H[h+17|0]=e>>>8;H[h+18|0]=e>>>16;H[h+19|0]=e>>>24;H[h+20|0]=b;H[h+21|0]=b>>>8;H[h+22|0]=b>>>16;H[h+23|0]=b>>>24;J[a+12>>2]=1;c=1;break a}c=f+304|0;c:{if(!s){g=0;e=775550;break c}b=J[s>>2];g=(b|0)>=127?127:b;e=J[s+4>>2]}tc(c,e,g);b=J[q+4>>2];d=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);a=c+g|0;i=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);H[a|0]=i;H[a+1|0]=i>>>8;H[a+2|0]=i>>>16;H[a+3|0]=i>>>24;H[a+4|0]=d;H[a+5|0]=d>>>8;H[a+6|0]=d>>>16;H[a+7|0]=d>>>24;i=g+8|0;Yv(c,i,c);if((o| -0)==6){_A(c,e,g,0);b=J[q+4>>2]}d=f+304|0;c=0;if(Wc(d,b,32))break a;tc(d,e,g);c=K[b+44|0]|K[b+45|0]<<8|(K[b+46|0]<<16|K[b+47|0]<<24);b=K[b+40|0]|K[b+41|0]<<8|(K[b+42|0]<<16|K[b+43|0]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;Yv(d,i,d);if((o|0)==6)_A(d,e,g,0);e=f+500|0;wI(e,f+304|0);J[f+764>>2]=0;J[f+768>>2]=0;J[f+756>>2]=0;J[f+760>>2]=0;nt(e,J[l+4>>2],0);a=J[f+784>>2];b=J[f+780>>2];H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>> -16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=J[f+776>>2];b=J[f+772>>2];H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;nt(e,J[l+4>>2]+16|0,0);a=J[f+784>>2];b=J[f+780>>2];H[h+24|0]=b;H[h+25|0]=b>>>8;H[h+26|0]=b>>>16;H[h+27|0]=b>>>24;H[h+28|0]=a;H[h+29|0]=a>>>8;H[h+30|0]=a>>>16;H[h+31|0]=a>>>24;a=J[f+776>>2];b=J[f+772>>2];H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a; -H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;c=1;break a}if(b){d=J[b+4>>2];b=J[b>>2];d:{if((b|0)<=31){i=f+304|0;tc(i,d,b);tc(b+i|0,2693616,32-b|0);break d}b=d;d=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);J[f+328>>2]=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);J[f+332>>2]=d;d=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);J[f+320>>2]=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);J[f+324>>2]=d;d=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);J[f+304>>2]=K[b|0]| -K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+308>>2]=d;d=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);J[f+312>>2]=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);J[f+316>>2]=d}b=J[f+316>>2];J[f+816>>2]=J[f+312>>2];J[f+820>>2]=b;b=J[f+324>>2];J[f+824>>2]=J[f+320>>2];J[f+828>>2]=b;b=J[f+332>>2];J[f+832>>2]=J[f+328>>2];J[f+836>>2]=b;J[f+800>>2]=-1732584194;J[f+804>>2]=271733878;J[f+792>>2]=1732584193;J[f+796>>2]=-271733879;b=J[f+308>>2];J[f+808>>2]=J[f+304>>2];J[f+812>>2]=b;J[f+872>>2]=32; -J[f+876>>2]=32;Tq(f+792|0);b=J[f+892>>2];J[f+312>>2]=J[f+888>>2];J[f+316>>2]=b;b=J[f+884>>2];J[f+304>>2]=J[f+880>>2];J[f+308>>2]=b;b=0;e:{f:{g:{h:switch(o-2|0){case 0:break f;case 1:break h;default:break g}if((c|0)<0)break g;i=f+808|0;m=c>>>0<64;while(1){J[f+872>>2]=0;J[f+876>>2]=0;J[f+800>>2]=-1732584194;J[f+804>>2]=271733878;J[f+792>>2]=1732584193;J[f+796>>2]=-271733879;b=f+304|0;g=0;d=c;if(!m)while(1){l=g+i|0;g=64-g|0;tc(l,b,g);J[f+872>>2]=64;b=b+g|0;jp(f+792|0);d=d-g|0;g=J[f+872>>2];if((d+g|0)> -63)continue;break}if((d|0)>0){tc(g+i|0,b,d);J[f+872>>2]=J[f+872>>2]+d}J[f+876>>2]=c+J[f+876>>2];Tq(f+792|0);b=J[f+892>>2];J[f+312>>2]=J[f+888>>2];J[f+316>>2]=b;b=J[f+884>>2];J[f+304>>2]=J[f+880>>2];J[f+308>>2]=b;e=e+1|0;if((e|0)!=50)continue;break}}b=J[n+4>>2];e=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);J[f+296>>2]=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);J[f+300>>2]=e;e=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);J[f+288>>2]=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+ -19|0]<<24);J[f+292>>2]=e;e=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);J[f+272>>2]=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+276>>2]=e;e=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);J[f+280>>2]=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);J[f+284>>2]=e;t=c&-4;m=c&3;b=19;u=(c|0)<=0;x=c>>>0<4;while(1){i=b;i:{if(u)break i;g=0;b=0;e=0;if(!x)while(1){d=f+304|0;H[b+f|0]=i^K[d+b|0];l=b|1;H[l+f|0]=i^K[d+l|0];l=b|2;H[l+f|0]=i^K[d+l|0];l=b|3;H[l+f|0]=i^K[d+l|0];b=b+4|0;e=e+4|0;if((t| -0)!=(e|0))continue;break}if(!m)break i;while(1){H[b+f|0]=i^K[(f+304|0)+b|0];b=b+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}g=0;b=0;while(1){e=f+16|0;H[e+b|0]=b;d=b|1;H[d+e|0]=d;d=b|2;H[d+e|0]=d;d=b|3;H[d+e|0]=d;d=b|4;H[d+e|0]=d;d=b|5;H[d+e|0]=d;d=b|6;H[d+e|0]=d;d=e;e=b|7;H[d+e|0]=e;b=b+8|0;if((b|0)!=256)continue;break}b=0;e=0;while(1){d=b&255;b=f+16|0;l=b+g|0;p=K[l|0];e=(K[d+f|0]+(e&255)|0)+p|0;b=(e&255)+b|0;H[l|0]=K[b|0];H[b|0]=p;b=(d+1|0)%(c|0)|0;g=g+1|0;if((g|0)!=256)continue;break}b=0;d=0;while(1){e= -b+1|0;g=f+16|0;v=e+g|0;l=K[v|0];d=l+d|0;w=(d&255)+g|0;p=K[w|0];H[v|0]=p;H[w|0]=l;b=(f+272|0)+b|0;H[b|0]=K[g+(l+p&255)|0]^K[b|0];b=e;if((b|0)!=32)continue;break}b=i-1|0;if(i)continue;break}break e}while(1){d=f+16|0;H[d+b|0]=b;i=b|1;H[i+d|0]=i;i=b|2;H[i+d|0]=i;i=b|3;H[i+d|0]=i;i=b|4;H[i+d|0]=i;i=b|5;H[i+d|0]=i;i=b|6;H[i+d|0]=i;i=d;d=b|7;H[i+d|0]=d;b=b+8|0;if((b|0)!=256)continue;break}b=0;while(1){d=b&255;b=f+16|0;i=b+g|0;m=K[i|0];e=(K[d+(f+304|0)|0]+(e&255)|0)+m|0;b=(e&255)+b|0;H[i|0]=K[b|0];H[b|0]= -m;b=(d+1|0)%(c|0)|0;g=g+1|0;if((g|0)!=256)continue;break}l=J[n+4>>2];b=0;d=0;while(1){p=K[b+l|0];e=b+1|0;i=f+16|0;t=e+i|0;g=K[t|0];d=g+d|0;u=(d&255)+i|0;m=K[u|0];H[t|0]=m;H[u|0]=g;H[(f+272|0)+b|0]=p^K[i+(g+m&255)|0];b=e;if((b|0)!=32)continue;break}}e=rc(8);J[695492]=0;b=ga(3181,e|0,f+272|0,32)|0;d=J[695492];J[695492]=0;j:{if((d|0)!=1){if(!MZ(o,c,n,q,j,k,b,h,r))break j;J[a+12>>2]=1;qc(Rc(b));c=1;break a}a=Z()|0;qc(e);ba(a|0);B()}qc(Rc(b))}c=MZ(o,c,n,q,j,k,s,h,r)}bc=f+896|0;return(c|0)!=0|0}function pU(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+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;m=bc-16|0;bc=m;j=m+12|0;p=e;g=bc+-64|0;bc=g;J[g+60>>2]=0;md(g+60|0,0);f=b+8|0;a:{b:{c:{d:{e:{if(J[b+8>>2]){J[695492]=0;ca(5350,g+56|0,b|0,f|0);h=J[695492];J[695492]=0;if((h|0)!=1)break e;break d}J[695492]=0;J[g+56>>2]=0;aa(4985,g+56|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d}f:{g:{h:{if(J[f>>2]){J[695492]=0;ca(5350,g+32|0,b|0,f|0);h=J[695492];J[695492]=0;if((h|0)!=1)break h;break g}J[695492]= -0;J[g+32>>2]=0;aa(4985,g+32|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break g}h=J[g+32>>2];i:{if(!h)break i;l=J[h+8>>2];J[695492]=0;J[g+32>>2]=0;k=J[h+4>>2]-1|0;J[h+4>>2]=k;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(k)break i;J[695492]=0;_(4987,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break b}j:{k:{l:{m:{n:{o:{p:{if(J[f>>2]){J[695492]=0;ca(5350,g+32|0,b|0,f|0);h=J[695492];J[695492]=0;if((h|0)!=1)break p;break o}J[695492]=0;J[g+32>>2]=0;aa(4985,g+32|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break o}h= -J[g+32>>2];q:{if(!h)break q;o=J[h+12>>2];J[695492]=0;J[g+32>>2]=0;k=J[h+4>>2]-1|0;J[h+4>>2]=k;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(!k){J[695492]=0;_(4987,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break b}if((l|0)<=0|(o|0)<=0)break q;h=J[g+56>>2];if(h)break n}J[j>>2]=0;J[695492]=0;aa(4985,j|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break m}f=Z()|0;break f}e=1;r:{if(!(p>0))break r;e=.1;r=p/O[h+24>>3];if(r<.1)break r;e=r;if(!(e>10))break r;e=10}s:{if(J[f>>2]){J[695492]=0;ca(5351,g+52|0,b|0, -f|0);h=J[695492];J[695492]=0;if((h|0)!=1)break s;break j}J[695492]=0;J[g+52>>2]=0;aa(4985,g+52|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break j}t:{u:{v:{w:{x:{y:{h=J[g+52>>2];if(h){J[695492]=0;f=J[h+12>>2];if(f)f=J[f+4>>2];else f=0;h=J[695492];J[695492]=0;if((h|0)==1)break y;J[695492]=0;h=J[J[g+52>>2]+12>>2];if(h)h=J[h+8>>2];else h=0;k=J[695492];J[695492]=0;z:{if((k|0)!=1){if(h?f:0)break z;J[j>>2]=0;J[695492]=0;aa(4985,j|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break t}f=Z()|0;break k}i=Is(l, -o,f,h);if(i-13>>>0<=4294967283){J[j>>2]=0;J[695492]=0;aa(4985,j|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break t;break l}s=j;A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{if((d|0)==(i|0)){h=J[g+52>>2];f=J[J[h>>2]+20>>2];J[695492]=0;j=f;f=g+32|0;ia(j|0,f|0,h|0,1,c|0);h=J[695492];J[695492]=0;M:{if((h|0)!=1){J[695492]=0;aa(4993,g+60|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break M;vc(f);break L}f=Z()|0;break k}f=Z()|0;vc(g+32|0);break k}if(i<<1==(d|0)){h=J[g+52>>2];f=J[J[h>>2]+20>>2];J[695492]=0;j=f;f=g+ -32|0;ia(j|0,f|0,h|0,2,c|0);h=J[695492];J[695492]=0;N:{if((h|0)!=1){J[695492]=0;aa(4993,g+60|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break N;vc(f);break L}f=Z()|0;break k}f=Z()|0;vc(g+32|0);break k}k=i<<2;if((k|0)==(d|0)){h=J[g+52>>2];f=J[J[h>>2]+20>>2];J[695492]=0;j=f;f=g+32|0;ia(j|0,f|0,h|0,4,c|0);h=J[695492];J[695492]=0;O:{if((h|0)!=1){J[695492]=0;aa(4993,g+60|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break O;vc(f);break L}f=Z()|0;break k}f=Z()|0;vc(g+32|0);break k}if(i<<3==(d|0)){h=J[g+ -52>>2];f=J[J[h>>2]+20>>2];J[695492]=0;j=f;f=g+32|0;ia(j|0,f|0,h|0,8,c|0);h=J[695492];J[695492]=0;P:{if((h|0)!=1){J[695492]=0;aa(4993,g+60|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break P;vc(f);break L}f=Z()|0;break k}f=Z()|0;vc(g+32|0);break k}if((k|0)==(P(d,3)|0)){k=J[c+12>>2];J[g+40>>2]=J[c+8>>2];J[g+44>>2]=k;k=J[c+4>>2];J[g+32>>2]=J[c>>2];J[g+36>>2]=k;i=J[c+12>>2];k=J[c+8>>2];J[g+24>>2]=k;J[g+28>>2]=i;i=J[c>>2];l=J[c+4>>2];J[g+24>>2]=(k+2|0)/3<<2;J[g+16>>2]=i;J[g+20>>2]=l;J[695492]=0;k=(i| -0)/3|0;J[g+16>>2]=k<<2;i=J[g+20>>2]/3|0;J[g+20>>2]=i<<2;J[g+28>>2]=(J[g+28>>2]+2|0)/3<<2;Sj(g+32|0,P(k,-12)>>2,P(i,-12)>>2);k=J[695492];J[695492]=0;if((k|0)==1)break x;if((f|0)>2])J[g+24>>2]=f;if((h|0)>2])J[g+28>>2]=h;f=J[g+52>>2];h=J[J[f>>2]+20>>2];J[695492]=0;j=h;h=g+12|0;ia(j|0,h|0,f|0,1,g+16|0);f=J[695492];J[695492]=0;Q:{R:{S:{T:{if((f|0)!=1){J[695492]=0;f=g+8|0;_(5359,f|0);k=J[695492];J[695492]=0;if((k|0)==1)break T;J[695492]=0;aa(4993,g+60|0,f|0)|0;k=J[695492];J[695492]=0;if((k| -0)==1)break S;vc(f);J[695492]=0;ca(5360,J[g+60>>2],J[g+12>>2],g+32|0);f=J[695492];J[695492]=0;if((f|0)==1)break R;vc(h);break L}f=Z()|0;break k}f=Z()|0;break Q}f=Z()|0;vc(g+8|0);break Q}f=Z()|0}vc(g+12|0);break k}J[695492]=0;j=g+16|0;q=f;n=i<<4;f=16;U:{if((n|0)<=(d|0))break U;n=i<<3;f=8;if((n|0)<=(d|0))break U;n=i<<2;f=4;if((n|0)<=(d|0))break U;n=i<<1;f=(n|0)>(d|0);n=f?i:n;f=f?1:2}i=((f+h|0)-1|0)/(f|0)|0;h=d-1|0;la(5361,j|0,((q+f|0)-1|0)/(f|0)|0,i|0,(h+l|0)/(d|0)|0,(h+o|0)/(d|0)|0);h=J[695492];J[695492]= -0;if((h|0)==1)break K;J[695492]=0;h=J[g+16>>2];ca(5362,h|0,n|0,d|0);k=J[695492];J[695492]=0;if((k|0)==1)break J;J[695492]=0;ca(5363,h|0,n|0,d|0);k=J[695492];J[695492]=0;if((k|0)==1)break J;J[g+40>>2]=0;J[g+44>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[695492]=0;k=g+32|0;ca(5364,h|0,c|0,k|0);i=J[695492];J[695492]=0;if((i|0)==1)break I;i=J[g+52>>2];l=J[J[i>>2]+20>>2];J[695492]=0;q=l;l=g+12|0;ia(q|0,l|0,i|0,f|0,k|0);f=J[695492];J[695492]=0;if((f|0)==1)break H;J[695492]=0;f=g+8|0;_(5359,f|0);i=J[695492];J[695492]= -0;if((i|0)==1)break G;J[695492]=0;aa(4993,g+60|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break F;vc(f);J[695492]=0;la(5365,h|0,k|0,J[g+12>>2],c|0,J[g+60>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break E;vc(l);vc(j)}f=J[g+60>>2];if(!(!f|e==1)){J[695492]=0;Fa(5366,f|0,+e);f=J[695492];J[695492]=0;if((f|0)==1)break l;f=J[g+60>>2]}if(f)break B;f=0;break A}f=Z()|0;break k}f=Z()|0;break C}f=Z()|0;break C}f=Z()|0;break C}f=Z()|0;break D}f=Z()|0;vc(g+8|0);break D}f=Z()|0}vc(g+12|0)}vc(g+16|0);break k}J[695492]= -0;J[f+4>>2]=J[f+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break l;f=J[g+60>>2]}J[s>>2]=f;break t}V:{if(J[f>>2]){J[695492]=0;ca(5352,g+16|0,b|0,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break V;break u}J[695492]=0;J[g+16>>2]=0;aa(4985,g+16|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break u}W:{f=J[g+16>>2];X:{if(f){Y:{h=L[f+10>>1];if(h){k=L[f+8>>1];if(k)break Y}J[j>>2]=0;J[695492]=0;aa(4985,j|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break X;f=Z()|0;break v}f=Is(l,o,h,k);if(f-13>>>0<=4294967283){J[j>> -2]=0;J[695492]=0;aa(4985,j|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break X;f=Z()|0;break v}Z:{_:{$:{aa:{ba:{ca:{da:{i=(d|0)/(f|0)|0;ea:{if(!((i|0)<=0|(P(f,i)|0)!=(d|0))){J[695492]=0;f=g+32|0;_(5359,f|0);h=J[695492];J[695492]=0;fa:{ga:{if((h|0)!=1){J[695492]=0;aa(4993,g+60|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break ga;vc(f);f=J[g+16>>2];h=J[g+60>>2];if((i|0)!=1)break fa;J[695492]=0;ca(5367,h|0,f|0,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break w;break ea}f=Z()|0;break v}f=Z()|0;vc(g+32| -0);break v}J[695492]=0;ia(5368,h|0,f|0,i|0,c|0);f=J[695492];J[695492]=0;if((f|0)!=1)break ea;break w}J[695492]=0;n=g+12|0;i=d-1|0;la(5361,n|0,h|0,k|0,(i+l|0)/(d|0)|0,(i+o|0)/(d|0)|0);i=J[695492];J[695492]=0;if((i|0)==1)break da;J[695492]=0;i=J[g+12>>2];ca(5362,i|0,f|0,d|0);l=J[695492];J[695492]=0;if((l|0)==1)break ca;J[695492]=0;ca(5363,i|0,f|0,d|0);f=J[695492];J[695492]=0;if((f|0)==1)break ca;J[695492]=0;f=g+32|0;_(5359,f|0);l=J[695492];J[695492]=0;if((l|0)==1)break ba;J[695492]=0;aa(4993,g+60|0, -f|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break aa;vc(f);J[695492]=0;J[g+44>>2]=k;J[g+40>>2]=h;J[g+32>>2]=0;J[g+36>>2]=0;la(5365,i|0,f|0,J[g+16>>2],c|0,J[g+60>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break $;vc(n)}f=J[g+60>>2];if(!(!f|e==1)){J[695492]=0;Fa(5366,f|0,+e);f=J[695492];J[695492]=0;if((f|0)==1)break w;f=J[g+60>>2]}if(f)break Z;J[j>>2]=0;break X}f=Z()|0;break v}f=Z()|0;break _}f=Z()|0;break _}f=Z()|0;vc(g+32|0);break _}f=Z()|0}vc(g+12|0);break v}J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[695492]; -J[695492]=0;if((f|0)==1)break w;J[j>>2]=J[g+60>>2];break X}J[j>>2]=0;J[695492]=0;aa(4985,j|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break W}f=J[g+16>>2];J[g+16>>2]=0;if(!f)break t;J[695492]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;h=J[695492];J[695492]=0;if((h|0)!=1){if(j)break t;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break t}break b}f=Z()|0;break v}f=Z()|0;break k}f=Z()|0;break k}f=Z()|0}vc(g+16|0);break k}f=Z()|0;break k}f=J[g+52>>2];J[g+52>>2]=0;if(!f)break m;J[695492]=0;j=J[f+4>>2]- -1|0;J[f+4>>2]=j;h=J[695492];J[695492]=0;if((h|0)!=1){if(j)break m;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break m}break b}f=J[g+56>>2];J[g+56>>2]=0;ha:{if(!f)break ha;J[695492]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;h=J[695492];J[695492]=0;if((h|0)==1)break b;if(j)break ha;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break b}f=J[g+60>>2];J[g+60>>2]=0;ia:{ja:{if(!f)break ja;J[695492]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;h=J[695492];J[695492]=0;if((h|0)==1)break ia;if(j)break ja; -J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break ia}bc=g- -64|0;break a}break b}f=Z()|0}vc(g+52|0);break f}f=Z()|0;break f}f=Z()|0}vc(g+56|0);break c}f=Z()|0}vc(g+60|0);ba(f|0);B()}ea(0)|0;yc();B()}J[695492]=0;c=Cb(5385,b|0,J[m+12>>2],c|0,d|0,+p)|0;d=J[695492];J[695492]=0;ka:{la:{if((d|0)==1)break la;ma:{na:{if(c)break na;oa:{if(J[b+8>>2]){J[695492]=0;ca(5353,m+8|0,b|0,b+8|0);b=J[695492];J[695492]=0;if((b|0)!=1)break oa;break la}J[695492]=0;J[m+8>>2]=0;aa(4985,m+8|0,0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break la}b=J[m+8>>2];J[m+8>>2]=0;if(!b)break na;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break ka;if(!c){J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break ka}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break la;b=J[m+12>>2];break ma}b=J[m+12>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break la;b=J[m+12>>2]}else b=0;J[a>>2]=b}J[m+12>>2]=0;pa:{if(!b)break pa; -J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[695492];J[695492]=0;if((c|0)==1)break ka;if(a)break pa;J[695492]=0;_(4987,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break ka}bc=m+16|0;return}a=Z()|0;vc(m+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function c6(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;l=bc-240|0;bc=l;J[l+8>>2]=0;i=6;a:{if(!b|!((d|0)!=0|(c|0)<0))break a;r=K[b|0]&2?J[b+16>>2]!=0:r;J[l+12>>2]=0;b:{if(!a){i=33;break b}c:{h=J[a>>2];f=gc[J[h+4>>2]](h,40)|0;d:{if(!f){i= -64;break d}H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;H[f+29|0]=0;H[f+30|0]=0;H[f+31|0]=0;H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;H[f+4|0]=0;H[f+5|0]=0;H[f+6|0]=0;H[f+7|0]=0;H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+36|0]=0;H[f+37|0]=0;H[f+38|0]=0;H[f+39|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+8|0]=0;H[f+9|0]=0;H[f+10|0]=0;H[f+11|0]=0;H[f+12|0]=0;H[f+13|0]=0;H[f+14|0]=0;H[f+15|0]=0;J[f+28>>2]=h;e:{f:{g:{h:{i:{j:{k:{l:{n= -J[b>>2];if(n&1){i=J[b+8>>2];n=J[b+4>>2];J[f+32>>2]=0;J[f+8>>2]=0;J[f>>2]=n;J[f+4>>2]=i;J[f+20>>2]=0;J[f+24>>2]=0;break l}m:{if(!(n&4)){if(!(n&2)|!J[b+16>>2])break m;gc[J[h+8>>2]](h,f);f=J[b+16>>2];break l}i=nx(f,J[b+12>>2]);J[f+16>>2]=J[b+12>>2];if(!i)break l}gc[J[h+8>>2]](h,f);J[l+12>>2]=0;break k}J[f+28>>2]=h;J[l+12>>2]=f;s=J[a>>2];n:{n=J[b>>2];if(!(n&8))break n;h=J[b+20>>2];if(!h)break n;i=32;if(H[J[h>>2]]&1){f=0;e=l+12|0;if(n&16){f=J[b+28>>2];a=J[b+24>>2]}else a=0;i=b6(h,e,r,c,a,f,l+8|0);if(!i)break c; -f=J[l+12>>2];if(!f)break b}a=J[f+28>>2];b=J[f+24>>2];if(b)gc[b|0](f);if(r)break b;gc[J[a+8>>2]](a,f);break b}h=J[a+16>>2];if((h|0)<=0){i=11;break d}f=a+20|0;n=f+(h<<2)|0;i=11;h=0;while(1){p=J[f>>2];if(H[J[p>>2]]&1){i=0;h=0;if(K[b|0]&16){i=J[b+24>>2];h=J[b+28>>2]}i=b6(p,l+12|0,r,c,i,h,l+8|0);if(!i){h=p;break c}o:{if(!e)break o;if(Ec(J[J[J[f>>2]>>2]+8>>2],240775)|(i&255)!=142)break o;h=J[l+12>>2];i=J[h+20>>2];if(i)if(gc[i|0](h,0,0,0)|0)break j;J[h+8>>2]=0;i=a6(a,h,c,d);if(i)break o;a=J[h+28>>2];b=J[h+ -24>>2];if(b)gc[b|0](h);i=0;if(r)break a;gc[J[a+8>>2]](a,h);break a}h=p;if((i&255)!=2)break k}f=f+4|0;if(n>>>0>f>>>0)continue;break}p=h}p:{q:{h=i&255;switch(h-81|0){case 0:case 4:break p;case 1:case 2:case 3:break d;default:break q}}if((h|0)!=2)break d}if(!e)break e;h=J[l+12>>2];if(h)break j;h=0;t=1;break i}e=J[h+20>>2];if(e)if(gc[e|0](h,0,0,0)|0)break i;J[h+8>>2]=0;e=J[h+4>>2];if(!e)break i;f=J[h+20>>2];r:{if(f){i=gc[f|0](h,0,l+112|0,128)|0;break r}i=e>>>0>=128?128:e;tc(l+112|0,J[h>>2],i)}J[h+8>> -2]=i;if(i>>>0<128)break i;s:{t:{if(K[l+194|0]|(K[l+112|0]|K[l+186|0]))break t;e=K[l+113|0];if(!e|e>>>0>33|(K[l+175|0]|K[(e+l|0)+114|0]))break t;e=H[l+195|0];if((e|0)<0)break t;i=eM(a,h,((K[l+198|0]|(K[l+196|0]<<16|(e&255)<<24|K[l+197|0]<<8))+127&2147483520)+128|0,c,d);if((i&255)!=2)break s}i=eM(a,h,0,c,d)}e=i&255;if((e|0)==85)break h;if((e|0)!=2)break g;break h}i=85}if(!(K[b|0]&4))break g;n=J[a>>2];i=J[b+12>>2];o=l- -64|0;e=l+16|0;f=l+112|0;J[f>>2]=0;u:{v:{w:{if(h){j=J[h+20>>2];x:{if(j){k=85;if(gc[j| -0](h,0,0,0)|0)break x}J[h+8>>2]=0;J[e>>2]=0;J[f>>2]=0;k=vr(h,333319,o)}J[e>>2]=k;J[f+4>>2]=0;k=J[h+20>>2];if(!k)break w;if(!(gc[k|0](h,0,0,0)|0))break w;J[e+4>>2]=85;break v}J[e>>2]=81;J[f+4>>2]=0;J[e+4>>2]=81;J[f+8>>2]=0;J[e+8>>2]=0;u=e,v=_L(a,e,i,f+8|0,o+8|0),J[u+8>>2]=v;J[f+12>>2]=0;J[e+12>>2]=0;j=Qc(i);m=j+18|0;y:{z:{if((j|0)<=-18){q=6;if(m)break y;break z}g=J[a>>2];g=gc[J[g+4>>2]](g,m)|0;q=64;if(!g)break y;wc(g,0,m)}q=tc(g,i,j);g=q+j|0;j=K[242286]|K[242287]<<8;H[g+16|0]=j;H[g+17|0]=j>>>8;j=K[242282]| -K[242283]<<8|(K[242284]<<16|K[242285]<<24);m=K[242278]|K[242279]<<8|(K[242280]<<16|K[242281]<<24);H[g+8|0]=m;H[g+9|0]=m>>>8;H[g+10|0]=m>>>16;H[g+11|0]=m>>>24;H[g+12|0]=j;H[g+13|0]=j>>>8;H[g+14|0]=j>>>16;H[g+15|0]=j>>>24;j=K[242274]|K[242275]<<8|(K[242276]<<16|K[242277]<<24);m=K[242270]|K[242271]<<8|(K[242272]<<16|K[242273]<<24);H[g|0]=m;H[g+1|0]=m>>>8;H[g+2|0]=m>>>16;H[g+3|0]=m>>>24;H[g+4|0]=j;H[g+5|0]=j>>>8;H[g+6|0]=j>>>16;H[g+7|0]=j>>>24;J[f+12>>2]=q;J[o+12>>2]=0;q=0}J[e+12>>2]=q;J[f+16>>2]=0;J[e+ -16>>2]=0;g=6;j=Qc(i);m=j+6|0;A:{B:{if((j|0)<=-6){if(!m)break B;break A}g=J[a>>2];k=gc[J[g+4>>2]](g,m)|0;if(!k){g=64;break A}wc(k,0,m)}g=0;m=tc(k,i,j);k=m+j|0;j=K[242416]|K[242417]<<8;H[k+4|0]=j;H[k+5|0]=j>>>8;j=K[242412]|K[242413]<<8|(K[242414]<<16|K[242415]<<24);H[k|0]=j;H[k+1|0]=j>>>8;H[k+2|0]=j>>>16;H[k+3|0]=j>>>24;J[f+16>>2]=m;J[o+16>>2]=0}J[e+16>>2]=g;J[f+20>>2]=0;J[e+20>>2]=0;g=ro(J[a>>2],i,242516);if(g){J[f+20>>2]=g;J[o+20>>2]=0;g=0}else g=64;J[e+20>>2]=g;J[f+24>>2]=0;J[e+24>>2]=0;g=ro(J[a>> -2],i,242615);if(g){J[f+24>>2]=g;J[o+24>>2]=0;g=0}else g=64;J[e+24>>2]=g;J[f+28>>2]=0;J[e+28>>2]=0;u=e,v=ZL(a,e,i,f+28|0,o+28|0),J[u+28>>2]=v;J[f+32>>2]=0;J[e+32>>2]=0;u=e,v=YL(a,e,i,f+32|0,o+32|0),J[u+32>>2]=v;break u}J[h+8>>2]=0;J[e+4>>2]=0;J[f+4>>2]=0;u=e,v=vr(h,333312,o+4|0),J[u+4>>2]=v}J[f+8>>2]=0;C:{D:{k=J[h+20>>2];if(!k)break D;if(!(gc[k|0](h,0,0,0)|0))break D;J[e+8>>2]=85;break C}J[h+8>>2]=0;J[e+8>>2]=0;u=e,v=_L(a,e,i,f+8|0,o+8|0),J[u+8>>2]=v}J[f+12>>2]=0;E:{F:{k=J[h+20>>2];if(!k)break F;if(!(gc[k| -0](h,0,0,0)|0))break F;J[e+12>>2]=85;break E}J[h+8>>2]=0;J[e+12>>2]=0;k=Qc(i);j=k+18|0;G:{H:{if((k|0)<=-18){m=6;if(j)break G;break H}g=J[a>>2];g=gc[J[g+4>>2]](g,j)|0;m=64;if(!g)break G;wc(g,0,j)}m=tc(g,i,k);g=m+k|0;k=K[242286]|K[242287]<<8;H[g+16|0]=k;H[g+17|0]=k>>>8;k=K[242282]|K[242283]<<8|(K[242284]<<16|K[242285]<<24);j=K[242278]|K[242279]<<8|(K[242280]<<16|K[242281]<<24);H[g+8|0]=j;H[g+9|0]=j>>>8;H[g+10|0]=j>>>16;H[g+11|0]=j>>>24;H[g+12|0]=k;H[g+13|0]=k>>>8;H[g+14|0]=k>>>16;H[g+15|0]=k>>>24;k= -K[242274]|K[242275]<<8|(K[242276]<<16|K[242277]<<24);j=K[242270]|K[242271]<<8|(K[242272]<<16|K[242273]<<24);H[g|0]=j;H[g+1|0]=j>>>8;H[g+2|0]=j>>>16;H[g+3|0]=j>>>24;H[g+4|0]=k;H[g+5|0]=k>>>8;H[g+6|0]=k>>>16;H[g+7|0]=k>>>24;J[f+12>>2]=m;J[o+12>>2]=0;m=0}J[e+12>>2]=m}J[f+16>>2]=0;I:{J:{g=J[h+20>>2];if(!g)break J;if(!(gc[g|0](h,0,0,0)|0))break J;J[e+16>>2]=85;break I}J[h+8>>2]=0;J[e+16>>2]=0;k=6;j=Qc(i);m=j+6|0;K:{L:{if((j|0)<=-6){if(m)break K;g=0;break L}g=J[a>>2];g=gc[J[g+4>>2]](g,m)|0;if(!g){k=64; -break K}wc(g,0,m)}k=0;m=tc(g,i,j);g=m+j|0;j=K[242416]|K[242417]<<8;H[g+4|0]=j;H[g+5|0]=j>>>8;j=K[242412]|K[242413]<<8|(K[242414]<<16|K[242415]<<24);H[g|0]=j;H[g+1|0]=j>>>8;H[g+2|0]=j>>>16;H[g+3|0]=j>>>24;J[f+16>>2]=m;J[o+16>>2]=0}J[e+16>>2]=k}J[f+20>>2]=0;M:{N:{g=J[h+20>>2];if(!g)break N;if(!(gc[g|0](h,0,0,0)|0))break N;J[e+20>>2]=85;break M}J[h+8>>2]=0;J[e+20>>2]=0;g=ro(J[a>>2],i,242516);if(g){J[f+20>>2]=g;J[o+20>>2]=0;g=0}else g=64;J[e+20>>2]=g}J[f+24>>2]=0;O:{P:{g=J[h+20>>2];if(!g)break P;if(!(gc[g| -0](h,0,0,0)|0))break P;J[e+24>>2]=85;break O}J[h+8>>2]=0;J[e+24>>2]=0;g=ro(J[a>>2],i,242615);if(g){J[f+24>>2]=g;J[o+24>>2]=0;g=0}else g=64;J[e+24>>2]=g}J[f+28>>2]=0;Q:{R:{g=J[h+20>>2];if(!g)break R;if(!(gc[g|0](h,0,0,0)|0))break R;J[e+28>>2]=85;break Q}J[h+8>>2]=0;J[e+28>>2]=0;u=e,v=ZL(a,e,i,f+28|0,o+28|0),J[u+28>>2]=v}J[f+32>>2]=0;S:{g=J[h+20>>2];if(!g)break S;if(!(gc[g|0](h,0,0,0)|0))break S;J[e+32>>2]=85;break u}J[h+8>>2]=0;J[e+32>>2]=0;u=e,v=YL(a,e,i,f+32|0,o+32|0),J[u+32>>2]=v}e=0;g=2;i=0;while(1){T:{j= -J[(i<<3)+259844>>2]-3|0;U:{if(e&255?j>>>0<=1:0)break U;m=i<<2;if(J[m+(l+16|0)>>2])break U;k=J[m+(l+112|0)>>2];if(!k)k=J[b+12>>2];V:{o=J[a>>2];f=gc[J[o+4>>2]](o,40)|0;W:{if(!f){g=64;break W}H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;H[f+29|0]=0;H[f+30|0]=0;H[f+31|0]=0;H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;H[f+4|0]=0;H[f+5|0]=0;H[f+6|0]=0;H[f+7|0]=0;H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+36|0]=0;H[f+37|0]=0;H[f+38|0]=0;H[f+39|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]= -0;H[f+19|0]=0;H[f+20|0]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+8|0]=0;H[f+9|0]=0;H[f+10|0]=0;H[f+11|0]=0;H[f+12|0]=0;H[f+13|0]=0;H[f+14|0]=0;H[f+15|0]=0;J[f+28>>2]=o;g=nx(f,k);J[f+16>>2]=k;if(!g)break V;gc[J[o+8>>2]](o,f)}e=j>>>0<2?(g&255)==81?1:e:e;break U}J[f+28>>2]=o;g=eM(a,f,J[m+(l- -64|0)>>2],c,d);o=J[f+28>>2];k=J[f+24>>2];if(k)gc[k|0](f);gc[J[o+8>>2]](o,f);if(!g){g=0;break T}e=j>>>0<2?1:e}i=i+1|0;if((i|0)!=9)continue}break}a=J[l+112>>2];if(a){gc[J[n+8>>2]](n,a);J[l+112>>2]=0}a=J[l+116>>2]; -if(a){gc[J[n+8>>2]](n,a);J[l+116>>2]=0}a=J[l+120>>2];if(a){gc[J[n+8>>2]](n,a);J[l+120>>2]=0}a=J[l+124>>2];if(a){gc[J[n+8>>2]](n,a);J[l+124>>2]=0}a=J[l+128>>2];if(a)gc[J[n+8>>2]](n,a);a=J[l+132>>2];if(a)gc[J[n+8>>2]](n,a);a=J[l+136>>2];if(a)gc[J[n+8>>2]](n,a);a=J[l+140>>2];if(a)gc[J[n+8>>2]](n,a);a=J[l+144>>2];if(a)gc[J[n+8>>2]](n,a);i=2;if(!g)break f;break d}if(i)break e}i=0;if(t)break a;a=J[h+28>>2];b=J[h+24>>2];if(b)gc[b|0](h);if(r)break a;gc[J[a+8>>2]](a,h);break a}i=(i&255)==2?2:i}a=J[l+12>>2]; -X:{if(!a)break X;b=J[a+28>>2];c=J[a+24>>2];if(c)gc[c|0](a);if(r)break X;gc[J[b+8>>2]](b,a)}h=p;break b}a=gc[J[s+4>>2]](s,12)|0;if(!a){i=64;break b}H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;e=J[l+8>>2];J[a+8>>2]=e;b=J[e+96>>2];h=J[b+20>>2];J[a>>2]=h;J[(h?h+4|0:b+16|0)>>2]=a;J[b+20>>2]=a;Y:{if((c|0)>=0){i=fM(e,0);if(i)break Y;i=$5(e,l+112|0);if(i)break Y;J[e+88>>2]=J[l+112>>2]}a=J[e+8>>2];Z:{if(!(a&1))break Z;i=I[e+74>>1];if((i|0)<0){i=0-i|0;I[e+74>>1]=i}if(a& -32)break Z;I[e+78>>1]=i}_:{if(!(a&2))break _;b=J[e+28>>2];if((b|0)<=0)break _;c=J[e+32>>2];i=0;while(1){a=c+(i<<4)|0;f=I[a>>1];if((f|0)<0){f=0-f|0;I[a>>1]=f}h=J[a+8>>2];if((h|0)<0)J[a+8>>2]=0-h;h=J[a+12>>2];if((h|0)<0)J[a+12>>2]=0-h;if(f<<16>>16<0){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}i=i+1|0;if((b|0)!=(i|0))continue;break}}a=J[e+128>>2];J[a+64>>2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=65536;J[a>>2]=65536;J[a+4>>2]=0;H[a+56|0]=255;if(d){J[d>>2]=e;i=0;break a}ox(e);i=0;break a}a= -J[e+96>>2];if(!a)break a;c=J[e+128>>2];b=J[c+64>>2];J[c+64>>2]=b-1;if((b|0)>1)break a;b=J[a+16>>2];if(!b)break a;h=a+16|0;c=J[a+8>>2];while(1){if((e|0)!=J[b+8>>2]){b=J[b+4>>2];if(b)continue;break a}break}d=J[b>>2];p=d?d+4|0:h;h=J[b+4>>2];J[p>>2]=h;J[(h?h:a+20|0)>>2]=d;gc[J[c+8>>2]](c,b);hu(c,e,a);break a}a=J[l+8>>2];if(!a)break a;hu(s,a,h)}bc=l+240|0;return i}function F8a(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;if(!b)return 2;h=b;m=c;b=0;e=bc-1760| -0;bc=e;a:{b:{g=a+96|0;c:{if(!K[g+1468|0]){f=bc-448|0;bc=f;d:{e:{if(!h)break e;H[g+96|0]=0;J[g+64>>2]=2147483647;J[g+68>>2]=2147483647;J[g+48>>2]=2147483647;J[g+52>>2]=2147483647;J[g+8>>2]=0;J[g+12>>2]=0;J[g+1208>>2]=0;J[g+88>>2]=-2147483647;J[g+92>>2]=-2147483647;J[g+80>>2]=2147483647;J[g+84>>2]=2147483647;J[g+72>>2]=0;J[g+76>>2]=0;J[g+56>>2]=0;J[g+60>>2]=0;b=J[h+4>>2];J[f+444>>2]=J[c>>2];J[f+440>>2]=b;J[f+24>>2]=0;J[f+28>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+176>>2]=0;J[f+180>>2]=0;J[f+160>>2]=0;J[f+ -164>>2]=1072693248;J[f+40>>2]=0;J[f+44>>2]=1072693248;J[f+184>>2]=0;J[f+188>>2]=0;J[f+192>>2]=0;J[f+196>>2]=0;J[f+200>>2]=0;J[f+392>>2]=0;J[f+396>>2]=0;J[f+376>>2]=0;J[f+380>>2]=1072693248;J[f+224>>2]=0;J[f+228>>2]=1072693248;J[f+204>>2]=64;J[f+208>>2]=1;J[f+400>>2]=0;J[f+404>>2]=0;J[f+408>>2]=0;J[f+412>>2]=0;J[f+416>>2]=0;J[f+420>>2]=0;J[f+424>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+216>>2]=0;J[f+220>>2]=0;J[f+8>>2]=f+440;J[f+428>>2]=64;J[f+432>>2]=1;J[695492]=0;ca(2396,g|0,f+8|0,0);b=J[695492];J[695492]= -0;if((b|0)==1)break d;b=K[J[h+4>>2]+24|0];I[g+1468>>1]=1;J[g+1184>>2]=b;c=J[f+416>>2];if(c){b=c-1|0;J[f+416>>2]=b;g=J[f+424>>2]+(c<<2)|0;while(1){g=g-4|0;c=J[g>>2];if(c){qc(c);b=J[f+416>>2]}c=b;b=c-1|0;J[f+416>>2]=b;if(c)continue;break}}b=J[f+424>>2];if(b)qc(b);c=J[f+192>>2];if(c){b=c-1|0;J[f+192>>2]=b;g=J[f+200>>2]+(c<<2)|0;while(1){g=g-4|0;c=J[g>>2];if(c){qc(c);b=J[f+192>>2]}c=b;b=c-1|0;J[f+192>>2]=b;if(c)continue;break}}b=J[f+200>>2];if(!b)break e;qc(b)}bc=f+448|0;break c}a=Z()|0;yC(f+8|0);ba(a| -0);B()}f:{if(!K[g+1469|0]){J[e+584>>2]=0;J[e+588>>2]=0;J[e+576>>2]=0;J[e+580>>2]=0;J[e+568>>2]=0;J[e+572>>2]=0;J[e+560>>2]=0;J[e+564>>2]=0;J[e+552>>2]=0;J[e+556>>2]=0;J[e+680>>2]=0;J[e+684>>2]=0;J[e+688>>2]=0;J[e+692>>2]=0;H[e+693|0]=0;H[e+694|0]=0;H[e+695|0]=0;H[e+696|0]=0;H[e+697|0]=0;H[e+698|0]=0;H[e+699|0]=0;H[e+700|0]=0;c=e+1744|0;J[c>>2]=0;J[c+4>>2]=0;J[e+544>>2]=0;J[e+548>>2]=0;J[e+1736>>2]=0;J[e+1740>>2]=0;H[e+1732|0]=1;J[e+1728>>2]=0;c=e+704|0;while(1){J[c+(b<<2)>>2]=b;f=b|1;J[c+(f<<2)>> -2]=f;f=b|2;J[c+(f<<2)>>2]=f;f=b|3;J[c+(f<<2)>>2]=f;f=b|4;J[c+(f<<2)>>2]=f;f=b|5;J[c+(f<<2)>>2]=f;f=b|6;J[c+(f<<2)>>2]=f;f=b|7;J[c+(f<<2)>>2]=f;b=b+8|0;if((b|0)!=256)continue;break}b=J[g+1472>>2];c=J[g+1476>>2];H[e+640|0]=0;J[e+616>>2]=0;J[e+620>>2]=0;J[e+608>>2]=2147483647;J[e+612>>2]=2147483647;J[e+600>>2]=0;J[e+604>>2]=0;J[e+592>>2]=2147483647;J[e+596>>2]=2147483647;J[e+552>>2]=0;J[e+556>>2]=0;J[e+1752>>2]=0;J[e+632>>2]=-2147483647;J[e+636>>2]=-2147483647;J[e+624>>2]=2147483647;J[e+628>>2]=2147483647; -J[e+656>>2]=0;J[e+660>>2]=0;J[e+648>>2]=0;J[e+652>>2]=0;j=+(c|0);O[e+672>>3]=j;k=+(b|0);O[e+664>>3]=k;if((b|0)<0){J[e+664>>2]=0;J[e+668>>2]=0;O[e+648>>3]=k}if((c|0)<0){J[e+672>>2]=0;J[e+676>>2]=0;O[e+656>>3]=j}H[e+700|0]=1;b=J[h+4>>2];J[e+540>>2]=J[m>>2];J[e+536>>2]=b;J[e+120>>2]=0;J[e+124>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+272>>2]=0;J[e+276>>2]=0;J[e+256>>2]=0;J[e+260>>2]=1072693248;J[e+136>>2]=0;J[e+140>>2]=1072693248;J[e+280>>2]=0;J[e+284>>2]=0;J[e+288>>2]=0;J[e+292>>2]=0;J[e+296>>2]=0;J[e+ -488>>2]=0;J[e+492>>2]=0;J[e+472>>2]=0;J[e+476>>2]=1072693248;J[e+320>>2]=0;J[e+324>>2]=1072693248;J[e+300>>2]=64;J[e+304>>2]=1;J[e+496>>2]=0;J[e+500>>2]=0;J[e+504>>2]=0;J[e+508>>2]=0;J[e+512>>2]=0;J[e+516>>2]=0;J[e+520>>2]=0;J[e+112>>2]=0;J[e+116>>2]=0;J[e+312>>2]=0;J[e+316>>2]=0;J[e+104>>2]=e+536;J[e+524>>2]=64;J[e+528>>2]=1;J[695492]=0;b=e+544|0;ca(2396,b|0,e+104|0,0);c=J[695492];J[695492]=0;g:{h:{if((c|0)!=1){J[e+1728>>2]=K[J[h+4>>2]+24|0];J[e+88>>2]=0;J[e+92>>2]=0;J[e+96>>2]=0;J[e+100>>2]=0;J[e+ -80>>2]=0;J[e+84>>2]=0;J[e+72>>2]=2147483632;J[e+56>>2]=0;J[e+60>>2]=0;c=e- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=2147483632;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=2147483632;J[695492]=0;ua(2397,d|0,g|0,b|0,e+72|0,e+40|0,e+8|0,g+1216|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[g+1464>>2]=1;b=J[e+28>>2];if(b)qc(b);b=J[e+16>>2];if(b)qc(b);b=J[e+60>>2];if(b)qc(b);b=J[e+48>>2];if(b)qc(b);b=J[e+92>>2];if(b)qc(b);b=J[e+80>> -2];if(b)qc(b);c=J[e+512>>2];if(c){b=c-1|0;J[e+512>>2]=b;f=J[e+520>>2]+(c<<2)|0;while(1){f=f-4|0;c=J[f>>2];if(c){qc(c);b=J[e+512>>2]}c=b;b=c-1|0;J[e+512>>2]=b;if(c)continue;break}}b=J[e+520>>2];if(b)qc(b);c=J[e+288>>2];if(c){b=c-1|0;J[e+288>>2]=b;f=J[e+296>>2]+(c<<2)|0;while(1){f=f-4|0;c=J[f>>2];if(c){qc(c);b=J[e+288>>2]}c=b;b=c-1|0;J[e+288>>2]=b;if(c)continue;break}}b=J[e+296>>2];if(b)qc(b);c=J[e+544>>2];i:{if(!c)break i;b=c-1|0;J[e+544>>2]=b;f=J[e+560>>2]+(c<<2)|0;while(1){f=f-4|0;c=J[f>>2];if(c){qc(c); -b=J[e+544>>2]}c=b;b=c-1|0;J[e+544>>2]=b;if(c)continue;break}b=J[e+560>>2];if(!b)break i;qc(b)}b=J[e+588>>2];if(b)qc(b);b=J[e+576>>2];if(!b)break f;qc(b);break f}b=Z()|0;break g}b=Z()|0;ee(e+8|0);ee(e+40|0);ee(e+72|0)}break b}J[e+584>>2]=0;J[e+588>>2]=0;J[e+576>>2]=0;J[e+580>>2]=0;J[e+568>>2]=0;J[e+572>>2]=0;J[e+560>>2]=0;J[e+564>>2]=0;J[e+552>>2]=0;J[e+556>>2]=0;J[e+680>>2]=0;J[e+684>>2]=0;J[e+688>>2]=0;J[e+692>>2]=0;H[e+693|0]=0;H[e+694|0]=0;H[e+695|0]=0;H[e+696|0]=0;H[e+697|0]=0;H[e+698|0]=0;H[e+ -699|0]=0;H[e+700|0]=0;c=e+1744|0;J[c>>2]=0;J[c+4>>2]=0;J[e+544>>2]=0;J[e+548>>2]=0;J[e+1736>>2]=0;J[e+1740>>2]=0;H[e+1732|0]=1;J[e+1728>>2]=0;c=e+704|0;while(1){J[c+(b<<2)>>2]=b;f=b|1;J[c+(f<<2)>>2]=f;f=b|2;J[c+(f<<2)>>2]=f;f=b|3;J[c+(f<<2)>>2]=f;f=b|4;J[c+(f<<2)>>2]=f;f=b|5;J[c+(f<<2)>>2]=f;f=b|6;J[c+(f<<2)>>2]=f;f=b|7;J[c+(f<<2)>>2]=f;b=b+8|0;if((b|0)!=256)continue;break}b=J[g+1472>>2];c=J[g+1476>>2];H[e+640|0]=0;J[e+616>>2]=0;J[e+620>>2]=0;J[e+608>>2]=2147483647;J[e+612>>2]=2147483647;J[e+600>> -2]=0;J[e+604>>2]=0;J[e+592>>2]=2147483647;J[e+596>>2]=2147483647;J[e+552>>2]=0;J[e+556>>2]=0;J[e+1752>>2]=0;J[e+632>>2]=-2147483647;J[e+636>>2]=-2147483647;J[e+624>>2]=2147483647;J[e+628>>2]=2147483647;J[e+656>>2]=0;J[e+660>>2]=0;J[e+648>>2]=0;J[e+652>>2]=0;j=+(c|0);O[e+672>>3]=j;k=+(b|0);O[e+664>>3]=k;if((b|0)<0){J[e+664>>2]=0;J[e+668>>2]=0;O[e+648>>3]=k}if((c|0)<0){J[e+672>>2]=0;J[e+676>>2]=0;O[e+656>>3]=j}H[e+700|0]=1;b=J[h+4>>2];J[e+540>>2]=J[m>>2];J[e+536>>2]=b;J[e+120>>2]=0;J[e+124>>2]=0;J[e+ -128>>2]=0;J[e+132>>2]=0;J[e+272>>2]=0;J[e+276>>2]=0;J[e+256>>2]=0;J[e+260>>2]=1072693248;J[e+136>>2]=0;J[e+140>>2]=1072693248;J[e+280>>2]=0;J[e+284>>2]=0;J[e+288>>2]=0;J[e+292>>2]=0;J[e+296>>2]=0;J[e+488>>2]=0;J[e+492>>2]=0;J[e+472>>2]=0;J[e+476>>2]=1072693248;J[e+320>>2]=0;J[e+324>>2]=1072693248;J[e+300>>2]=64;J[e+304>>2]=1;J[e+496>>2]=0;J[e+500>>2]=0;J[e+504>>2]=0;J[e+508>>2]=0;J[e+512>>2]=0;J[e+516>>2]=0;J[e+520>>2]=0;J[e+112>>2]=0;J[e+116>>2]=0;J[e+312>>2]=0;J[e+316>>2]=0;J[e+104>>2]=e+536;J[e+ -524>>2]=64;J[e+528>>2]=1;J[695492]=0;b=e+544|0;ca(2396,b|0,e+104|0,0);c=J[695492];J[695492]=0;j:{k:{if((c|0)!=1){J[e+1728>>2]=K[J[h+4>>2]+24|0];J[e+88>>2]=0;J[e+92>>2]=0;J[e+96>>2]=0;J[e+100>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+72>>2]=2147483632;J[e+56>>2]=0;J[e+60>>2]=0;c=e- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=2147483632;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=2147483632;c=J[g+1464>>2];J[695492]=0;i=b;b=g+1216|0;f=g+1340| -0;c=(c|0)==1;ua(2398,d|0,i|0,(c?b:f)|0,e+72|0,e+40|0,e+8|0,(c?f:b)|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;J[g+1464>>2]=J[g+1464>>2]==1?2:1;b=J[e+28>>2];if(b)qc(b);b=J[e+16>>2];if(b)qc(b);b=J[e+60>>2];if(b)qc(b);b=J[e+48>>2];if(b)qc(b);b=J[e+92>>2];if(b)qc(b);b=J[e+80>>2];if(b)qc(b);c=J[e+512>>2];if(c){b=c-1|0;J[e+512>>2]=b;f=J[e+520>>2]+(c<<2)|0;while(1){f=f-4|0;c=J[f>>2];if(c){qc(c);b=J[e+512>>2]}c=b;b=c-1|0;J[e+512>>2]=b;if(c)continue;break}}b=J[e+520>>2];if(b)qc(b);c=J[e+288>>2];if(c){b= -c-1|0;J[e+288>>2]=b;f=J[e+296>>2]+(c<<2)|0;while(1){f=f-4|0;c=J[f>>2];if(c){qc(c);b=J[e+288>>2]}c=b;b=c-1|0;J[e+288>>2]=b;if(c)continue;break}}b=J[e+296>>2];if(b)qc(b);c=J[e+544>>2];l:{if(!c)break l;b=c-1|0;J[e+544>>2]=b;f=J[e+560>>2]+(c<<2)|0;while(1){f=f-4|0;c=J[f>>2];if(c){qc(c);b=J[e+544>>2]}c=b;b=c-1|0;J[e+544>>2]=b;if(c)continue;break}b=J[e+560>>2];if(!b)break l;qc(b)}b=J[e+588>>2];if(b)qc(b);b=J[e+576>>2];if(!b)break f;qc(b);break f}b=Z()|0;break j}b=Z()|0;ee(e+8|0);ee(e+40|0);ee(e+72|0)}break b}H[g+ -1469|0]=1}bc=e+1760|0;break a}yC(e+104|0);c=J[e+544>>2];m:{if(!c)break m;a=c-1|0;J[e+544>>2]=a;d=J[e+560>>2]+(c<<2)|0;while(1){d=d-4|0;c=J[d>>2];if(c){qc(c);a=J[e+544>>2]}c=a;a=c-1|0;J[e+544>>2]=a;if(c)continue;break}a=J[e+560>>2];if(!a)break m;qc(a)}a=J[e+588>>2];if(a)qc(a);a=J[e+576>>2];if(a)qc(a);ba(b|0);B()}e=rc(12);J[e+8>>2]=1;J[e>>2]=0;J[e+4>>2]=0;l=bc-16|0;bc=l;f=rc(8);J[695492]=0;$(2253,f|0)|0;b=J[695492];J[695492]=0;n:{if((b|0)!=1){g=J[h+4>>2];i=J[f+4>>2];J[i>>2]=0;c=i;b=g;if(J[b>>2]){c= -0;while(1){b=c>>>6&67108860;n=c&255;o=J[b+J[g+12>>2]>>2]+(n<<4)|0;j=O[o>>3];k=O[o+8>>3];b=K[J[b+J[g+16>>2]>>2]+n|0];J[l+12>>2]=0;p=Ke(i,l+12|0),q=b,H[p|0]=q;b=J[l+12>>2];O[b+8>>3]=k;O[b>>3]=j;J[i>>2]=J[i>>2]+1;c=c+1|0;if(c>>>0>2])continue;break}c=J[f+4>>2];b=J[h+4>>2]}J[i+20>>2]=J[g+20>>2];H[c+24|0]=K[b+24|0];H[c+25|0]=K[b+25|0];bc=l+16|0;break n}a=Z()|0;qc(f);ba(a|0);B()}J[e>>2]=f;b=rc(4);o:{p:{if(m){J[695492]=0;aa(2281,b|0,m|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break p;break o}J[695492]= -0;$(2278,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o}J[e+8>>2]=d;J[e+4>>2]=b;q:{c=a+2920|0;a=J[c+4>>2];if((a|0)!=J[c+8>>2]){J[a>>2]=e;J[c+4>>2]=a+4;break q}r:{h=J[c>>2];b=a-h|0;g=b>>2;d=g+1|0;if(d>>>0<1073741824){f=b>>1;f=b>>>0>=2147483644?1073741823:d>>>0>>0?f:d;if(f){if(f>>>0>=1073741824)break r;b=rc(f<<2)}else b=0;d=b+(g<<2)|0;J[d>>2]=e;e=d+4|0;if((a|0)!=(h|0)){while(1){d=d-4|0;a=a-4|0;J[d>>2]=J[a>>2];if((a|0)!=(h|0))continue;break}a=J[c>>2]}J[c+8>>2]=b+(f<<2);J[c+4>>2]=e;J[c>>2]=d;if(a)qc(a); -break q}_j(c);B()}Sd();B()}return 0}a=Z()|0;qc(b);ba(a|0);B()}function rlb(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0;m=bc-26352|0;bc=m;T=J[b+92>>2];J[a+40>>2]=L[b+68>>1];c=0;a:{if(VC(b))break a;c=J[b+100>>2];wc(m+19664|4,0,2756);J[m+19664>>2]=c;J[a+9856>>2]=0;J[a+52>>2]=0;h=J[J[(J[J[a>>2]+8>>2]<<2)+247040>>2]+16>>2];c=K[h|0];b:{if(!c)break b;while(1){if((c&255)==32)while(1){c= -K[h+1|0];h=h+1|0;if((c|0)==32)continue;break}i=J[J[a+36>>2]>>2];while(1){f=K[h|0];h=h+1|0;if((f|0)==32)continue;break}if(f<<24>>24<0){c=f>>>0<240;d=f>>>0<224;e=d?1:c?2:3;f=(d?31:c?15:7)&f;d=0;c=h;while(1){f=K[c|0]&63|f<<6;c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}h=e+h|0}e=0;while(1){c=K[h|0];if((c|32)!=32){h=h+1|0;e=c;if(c<<24>>24>=0)continue;e=c>>>0<240;d=c>>>0<224;g=d?1:e?2:3;e=(d?31:e?15:7)&c;d=0;c=h;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}h=h+g|0;continue}break}c:{if(!e){c= -rh(i,f);if(c)break c;c=K[h|0]}if(c&255)continue;break b}break}if(vo(b,c,1))break b;d=J[b+84>>2];if(I[d+110>>1]<=0)break b;e=wc(m,0,19652);c=J[a+40>>2];J[e+8>>2]=65536;J[e+12>>2]=65536;J[e+40>>2]=c;J[e+4>>2]=b;J[e+22404>>2]=0;J[e+22412>>2]=e;c=e+19664|0;if(vx(c,d+108|0))break b;if(Ar(c,0))break b;h=0;ux(c,0,0,0);d=J[e+19708>>2];if((d|0)>0){c=J[e+19716>>2];f=c+P(d,44)|0;while(1){d=J[c+20>>2];if(!(!d|c>>>0>=d>>>0|(J[d+20>>2]!=(c|0)|h>>>0>15))){g=I[c+2>>1]-I[d+2>>1]|0;d=g>>31;J[(P(h,12)+a|0)+56>>2]=(d^ -g)-d;h=h+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[e+26304>>2]=h;jD(e+26304|0,a+56|0,M[e+40>>2]/100|0);J[a+52>>2]=J[e+26304>>2];c=e+19664|0;if(Ar(c,1))break b;h=0;ux(c,0,0,1);d=J[e+21056>>2];if((d|0)>0){c=J[e+21064>>2];f=c+P(d,44)|0;while(1){d=J[c+20>>2];if(!(!d|c>>>0>=d>>>0|(J[d+20>>2]!=(c|0)|h>>>0>15))){g=I[c+2>>1]-I[d+2>>1]|0;d=g>>31;J[(P(h,12)+a|0)+9860>>2]=(d^g)-d;h=h+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[e+26304>>2]=h;jD(e+26304|0,a+9860|0,M[e+40>>2]/100|0);J[a+9856>>2]=J[e+26304>> -2]}if(J[a+52>>2])c=J[a+56>>2];else c=(P(J[a+40>>2],50)|0)/2048|0;H[a+256|0]=0;J[a+252>>2]=c;J[a+248>>2]=(c|0)/5;if(J[a+9856>>2])c=J[a+9860>>2];else c=(P(J[a+40>>2],50)|0)/2048|0;H[a+10060|0]=0;J[a+10056>>2]=c;J[a+10052>>2]=(c|0)/5;oM(m+19664|0);U=M[a+40>>2]/14|0;N=J[a>>2];c=(J[N+12>>2]<<3)+237248|0;e=J[c>>2];if((e|0)!=5531)while(1){D=c;h=e+231712|0;c=K[h|0];d:{if(!c)break d;u=0;t=0;p=0;o=0;while(1){if((c&255)==32)while(1){c=K[h+1|0];h=h+1|0;if((c|0)==32)continue;break}i=J[J[a+36>>2]>>2];while(1){f= -K[h|0];h=h+1|0;if((f|0)==32)continue;break}if(f<<24>>24<0){c=f>>>0<240;d=f>>>0<224;e=d?1:c?2:3;f=(d?31:c?15:7)&f;d=0;c=h;while(1){f=K[c|0]&63|f<<6;c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}h=e+h|0}e=0;while(1){c=K[h|0];if((c|32)!=32){h=h+1|0;e=c;if(c<<24>>24>=0)continue;c=c>>>0<240;d=e>>>0<224;g=d?1:c?2:3;e=(d?31:c?15:7)&e;d=0;c=h;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}h=h+g|0;continue}break}e:{if(e)break e;l=L[D+4>>1];O=l&1;F=O?-2147483648:2147483647;n=0;c= -rh(i,f);f:{if(!c)break f;if(vo(b,c,1))break f;c=J[b+84>>2];if(I[c+110>>1]<3)break f;r=0;z=I[c+108>>1];g:{if((z|0)<=0){j=0;break g}w=l&3;E=J[c+120>>2];x=J[c+116>>2];q=J[c+112>>2];g=-1;v=0;f=0;e=0;while(1){k=I[E+(n<<1)>>1];h:{if((k|0)<=(f|0)){d=g;break h}i:{if(w){j:{if(!((k-f|0)+1&1)){i=f;c=e;d=g;break j}i=f+1|0;c=J[((f<<3)+q|0)+4>>2];k:{if(!((g|0)<0|(e|0)<(c|0))){o=(c|0)>(o|0)?o:c;c=e;d=g;break k}p=(c|0)<(p|0)?p:c;e=c;d=f}}if((f|0)==(k|0))break i;while(1){e=J[((i<<3)+q|0)+4>>2];l:{if(!((e|0)<=(c|0)& -(d|0)>=0)){p=(e|0)<(p|0)?p:e;d=i;break l}o=(e|0)>(o|0)?o:e;e=c}j=i+1|0;c=J[((j<<3)+q|0)+4>>2];m:{if(!((d|0)<0|(e|0)<(c|0))){o=(c|0)>(o|0)?o:c;c=e;break m}p=(c|0)<(p|0)?p:c;d=j}i=i+2|0;e=c;if((j|0)!=(k|0))continue;break}break i}n:{if(!((k-f|0)+1&1)){i=f;c=e;d=g;break n}i=f+1|0;c=J[((f<<3)+q|0)+4>>2];o:{if(!((g|0)<0|(e|0)>(c|0))){p=(c|0)<(p|0)?p:c;c=e;d=g;break o}o=(c|0)>(o|0)?o:c;e=c;d=f}}if((f|0)==(k|0))break i;while(1){e=J[((i<<3)+q|0)+4>>2];p:{if(!((d|0)>=0&(e|0)>=(c|0))){o=(e|0)>(o|0)?o:e;d=i; -break p}p=(e|0)<(p|0)?p:e;e=c}j=i+1|0;c=J[((j<<3)+q|0)+4>>2];q:{if(!((d|0)<0|(e|0)>(c|0))){p=(c|0)<(p|0)?p:c;c=e;break q}o=(c|0)>(o|0)?o:c;d=j}i=i+2|0;e=c;if((j|0)!=(k|0))continue;break}}c=(d|0)==(g|0);r=c?r:f;v=c?v:k;g=d}f=k+1|0;n=n+1|0;if((z|0)!=(n|0))continue;break}if((d|0)<0){j=e;r=0;break g}E=l&4;n=l&16;z=J[(d<<3)+q>>2];g=d;c=(K[d+x|0]&3)!=1?-1:d;i=c;r:{while(1){f=(g|0)>(r|0)?g-1|0:v;k=(f<<3)+q|0;l=J[k+4>>2]-e|0;j=l>>31;l=(j^l)-j|0;if(l>>>0>=6){k=J[k>>2]-z|0;j=k>>31;if((j^k)-j>>>0<=P(l,20)>>> -0)break r}g=(K[f+x|0]&3)==1;i=g?(i|0)<0?f:i:i;c=g?f:c;g=f;if((f|0)!=(d|0))continue;break}g=d}f=d;s:{while(1){j=(f|0)<(v|0)?f+1|0:r;G=(j<<3)+q|0;l=J[G+4>>2]-e|0;k=l>>31;l=(k^l)-k|0;if(l>>>0>=6){w=J[G>>2]-z|0;k=w>>31;if((k^w)-k>>>0<=P(l,20)>>>0)break s}f=(K[j+x|0]&3)==1;c=f?(c|0)<0?j:c:c;i=f?j:i;f=j;if((f|0)!=(d|0))continue;break}f=d}t:{u:{if(!n)break u;k=J[(f<<3)+q>>2]-J[(g<<3)+q>>2]|0;j=k>>31;l=J[a+40>>2];Q=(l>>>0)/25|0;if(Q>>>0<=(j^k)-j>>>0)break u;j=d;if(((f-g|0)+2|0)>(v-r|0))break u;while(1){j= -(j|0)>(r|0)?j-1|0:v;R=J[(j<<3)+q>>2];if((R|0)==(z|0)&(d|0)!=(j|0))continue;break}n=0;if((d|0)==(j|0))break f;V=l>>>2|0;w=0;k=f;d=f;l=0;while(1){if(!w){n=(K[d+x|0]&3)!=1?-1:d;l=n;k=d}d=(d|0)<(v|0)?d+1|0:r;w=0;y=(k<<3)+q|0;j=J[y+4>>2];s=e-j|0;A=s>>31;v:{if((s^A)-A>>>0>V>>>0)break v;s=(d<<3)+q|0;S=J[s>>2];A=J[y>>2];B=S-A|0;y=B>>31;C=J[s+4>>2]-j|0;s=C>>31;C=(s^C)-s|0;s=P(C,20);y=(y^B)-y|0;if(C>>>0>=6&s>>>0>=y>>>0)break v;w=1;B=(K[d+x|0]&3)==1;n=B?(n|0)<0?d:n:n;l=B?d:l;if((A|0)<(S|0)^(z|0)>(R|0)|y>>>0< -Q>>>0)break v;while(1){d=(d|0)<(v|0)?d+1|0:r;e=J[((d<<3)+q|0)+4>>2]-j|0;c=e>>31;w:{if((c^e)-c>>>0<6)break w;e=J[G>>2]-A|0;c=e>>31;if(s>>>0<(c^e)-c>>>0)break w;f=(d|0)>(r|0)?d-1|0:v;break t}n=(K[d+x|0]&3)==1?(n|0)<0?d:n:n;l=d;if((d|0)!=(g|0))continue;break}f=g;l=f;break t}if((d|0)!=(g|0))continue;break}}j=e;k=g;n=c;l=i}x:{if((n|l)<0)break x;e=J[(l<<3)+q>>2]-J[(n<<3)+q>>2]|0;c=e>>31;if((c^e)-c>>>0<=U>>>0)break x;r=0;break g}if((K[k+x|0]&3)==1){c=K[f+x|0]&3;r=(c|0)!=1;if((c|0)==1)break g;n=0;if(!E)break g; -break f}n=0;r=1;if(E)break f}n=O?(j|0)!=-2147483648?r:0:(j|0)!=2147483647?r:0;F=j}if(F-2147483647>>>0<2)break e;J[(n?(m+19664|0)+(t<<2)|0:(u<<2)+m|0)>>2]=F;t=n+t|0;u=!n+u|0}c=K[h|0];if(c)continue;break}if(!(t|u))break d;y:{if(t>>>0<2)break y;f=1;c=t-1|0;d=c&1;if((t|0)!=2){g=c&-2;j=0;while(1){c=f;while(1){e=(m+19664|0)+(c<<2)|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}c=f+1|0;while(1){e=(m+19664|0)+(c<<2)|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k| -0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}f=f+2|0;j=j+2|0;if((g|0)!=(j|0))continue;break}}if(!d)break y;while(1){c=(m+19664|0)+(f<<2)|0;e=J[c>>2];d=c-4|0;g=J[d>>2];if((e|0)>=(g|0))break y;J[c>>2]=g;J[d>>2]=e;f=f-1|0;if(f)continue;break}}z:{if(u>>>0<2)break z;f=1;c=u-1|0;d=c&1;if((u|0)!=2){g=c&-2;j=0;while(1){c=f;while(1){e=(c<<2)+m|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}c=f+1|0;while(1){e=(c<<2)+m|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i| -0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}f=f+2|0;j=j+2|0;if((g|0)!=(j|0))continue;break}}if(!d)break z;while(1){c=(f<<2)+m|0;e=J[c>>2];d=c-4|0;g=J[d>>2];if((e|0)>=(g|0))break z;J[c>>2]=g;J[d>>2]=e;f=f-1|0;if(f)continue;break}}c=J[a+10064>>2];J[a+10064>>2]=c+1;e=P(c,36)+a|0;c=e+10080|0;i=e+10068|0;f=L[D+4>>1];d=J[(m+19664|0)+(t<<1&-4)>>2];A:{B:{if(!u)break B;d=J[(u<<1&-4)+m>>2];if(!t)break B;J[i>>2]=d;g=J[(m+19664|0)+(t<<1&-4)>>2];J[c>>2]=g;if((d|0)==(g|0)|((f&3)!=0|0)==((d|0)<(g| -0)|0))break A;d=(d+g|0)/2|0}J[c>>2]=d;J[i>>2]=d}c=e+10100|0;d=f<<1&14;J[c>>2]=d;J[e+10096>>2]=o;J[e+10092>>2]=p;if(!(f&8))break d;J[c>>2]=d|16}c=D+8|0;e=J[D+8>>2];if((e|0)!=5531)continue;break}e=J[a+10064>>2];if(e){d=0;c=0;if(e>>>0>=4){i=e&-4;f=a+10068|0;h=0;while(1){g=m+26304|0;J[g+(c<<2)>>2]=f+P(c,36);j=c|1;J[g+(j<<2)>>2]=f+P(j,36);j=c|2;J[g+(j<<2)>>2]=f+P(j,36);j=c|3;J[g+(j<<2)>>2]=f+P(j,36);c=c+4|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}f=e&3;if(f)while(1){J[(m+26304|0)+(c<<2)>>2]=(P(c,36)+a| -0)+10068;c=c+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}if(e>>>0>=2){f=1;while(1){c=f;while(1){d=(m+26304|0)+(c<<2)|0;g=J[d>>2];j=d-4|0;i=J[j>>2];if(J[(K[g+32|0]&6?0:12)+g>>2]>2]){J[d>>2]=i;J[j>>2]=g;c=c-1|0;if(c)continue}break}f=f+1|0;if((e|0)!=(f|0))continue;break}}g=e-1|0;if(g){c=J[m+26304>>2];d=J[c+32>>2];e=0;while(1){f=d&6?c+12|0:c;e=e+1|0;c=J[(m+26304|0)+(e<<2)>>2];d=J[c+32>>2];i=J[(d&6?12:0)+c>>2];if((i|0)>2])J[f>>2]=i;if((e|0)!=(g|0))continue;break}}J[m>>2]=0; -i=251984;c=48;o=0;j=0;C:{while(1){i=i+1|0;if((c&255)==32)while(1){c=K[i|0];i=i+1|0;if((c|0)==32)continue;break}f=c&255;if(c<<24>>24<0){c=f>>>0<240;e=f>>>0<224;d=e?1:c?2:3;f=(e?31:c?15:7)&f;e=0;c=i;while(1){f=K[c|0]&63|f<<6;c=c+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}i=d+i|0}g=J[J[a+36>>2]>>2];e=0;while(1){c=K[i|0];if((c|32)!=32){i=i+1|0;e=c;if(c<<24>>24>=0)continue;c=c>>>0<240;d=e>>>0<224;h=d?1:c?2:3;e=(d?31:c?15:7)&e;d=0;c=i;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}i= -h+i|0;continue}break}D:{if(e){bD(g,0,m);break D}c=rh(g,f);bD(J[J[a+36>>2]>>2],c,m);if(!c)break D;e=o&255;o=1;c=J[m>>2];if(!e){j=c;break D}if((c|0)==(j|0))break D;c=0;break C}c=K[i|0];if(c)continue;break}c=1}H[a+32|0]=c;c=0;break a}c=J[a+36>>2];a=J[c+4>>2];E:{if((a|0)<=0)break E;e=J[c+8>>2];d=J[N>>2];c=0;if((a|0)!=1){f=a&-2;h=0;while(1){g=c<<1;i=g+e|0;if((d|0)==(L[i>>1]&16383))I[i>>1]=66;g=e+(g|2)|0;if((d|0)==(L[g>>1]&16383))I[g>>1]=66;c=c+2|0;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(a&1))break E; -a=e+(c<<1)|0;if((d|0)!=(L[a>>1]&16383))break E;I[a>>1]=66}c=-1}wr(b,T);bc=m+26352|0;return c|0}function IB(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;h=bc-128|0;bc=h;a:{b:{c:{d:{e:{f:{g:{if(J[a+32>>2]){h:{if(!b)break h;d=b;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}d=f-b|0;if((d|0)<0)break h;f=gc[J[659450]](d+1|0)|0;if(f)break e;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[h+124>>2]=0;break g}f=qJ(a,b,h+124|0);if(!f)break g;if(K[f|0])break d;e=4071;i:{j:{d=J[h+124>>2];if((d|0)!=4071){if(!d)break j; -while(1){g=K[d|0];if((g|0)!=K[e|0])break j;e=e+1|0;d=d+1|0;if(g)continue;break}}if(J[a+172>>2]==-1?J[a+212>>2]:0)break i;J[a+84>>2]=35;J[h+100>>2]=0;J[h+96>>2]=b;Cc(0,0,0,a,0,3,35,2,b,0,0,0,37563,h+96|0);break i}if(J[a+172>>2]==-1?J[a+212>>2]:0)break i;J[a+84>>2]=106;J[h+116>>2]=0;J[h+112>>2]=b;Cc(0,0,0,a,0,3,106,1,b,0,0,0,37653,h+112|0)}d=J[h+124>>2];if(d)gc[J[659451]](d);J[h+124>>2]=0;gc[J[659451]](f);if(!b)break g;d=b;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}d=f-b|0;if((d|0)<0)break g;f=gc[J[659450]](d+ -1|0)|0;if(f)break f;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[a+84>>2]=2;c=J[a>>2];b=0;k:{if(!c)break k;b=0;if(J[c+108>>2]!=-554844497)break k;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[h+4>>2]=0;J[h>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,2723,h);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break c}n=tc(f,b,d)+d|0,o=0,H[n|0]=o;break d}n=tc(f,b,d)+d|0,o=0,H[n|0]=o;J[h+124>>2]=0}l:{if(!J[a+32>>2]|c)break l;d=b;c=0;m:{if(!d)break m;e=17152;n:{if((d|0)==17152)break n;c=d;o:{while(1){g=K[c|0];if(K[K[e|0]+ -773280|0]==K[g+773280|0]){c=c+1|0;e=e+1|0;if(g)continue;break o}break}e=3712;if((d|0)==3712)break n;c=d;while(1){p:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=13744;if((d|0)!=13744)break p;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){q:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=5493;if((d|0)!=5493)break q;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){r:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=17143;if((d|0)!=17143)break r;break n}c=c+1| -0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){s:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=5844;if((d|0)!=5844)break s;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){t:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=14156;if((d|0)!=14156)break t;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){u:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=13158;if((d|0)!=13158)break u;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){v:{g=K[c|0]; -if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=13187;if((d|0)!=13187)break v;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){w:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=14743;if((d|0)!=14743)break w;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){x:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=5837;if((d|0)!=5837)break x;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){y:{g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=1448;if((d|0)!=1448)break y; -break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){g=K[c|0];if(K[K[e|0]+773280|0]!=K[g+773280|0]){e=16211;if((d|0)==16211)break o;while(1){g=K[d|0];c=0;if(K[K[e|0]+773280|0]!=K[g+773280|0])break m;d=d+1|0;e=e+1|0;if(g)continue;break}break o}c=c+1|0;e=e+1|0;if(g)continue;break}}c=1;break m}c=1}d=c;if(!b){c=0;break l}c=0;if(!d)break l;d=b;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}d=e-b|0;if((d|0)<0)break l;c=gc[J[659450]](d+1|0)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);c=0;break l}l= -tc(c,b,d);H[d+l|0]=0}e=J[a+32>>2];d=J[h+124>>2];z:{A:{if(!(e|d)){if(K[f|0]!=120|K[f+1|0]!=109|(K[f+2|0]!=108|K[f+3|0]!=110))break A;if(K[f+5|0]|K[f+4|0]!=115)break A;d=c;B:{if(J[a+16>>2])break B;J[a+248>>2]=J[a+248>>2]+1;d=rJ(a,d);J[a+248>>2]=J[a+248>>2]-1;if(d)break B;er(a,2723);d=f;break b}C:{if(!K[d|0])break C;b=Et(d);if(!b){b=J[a>>2];if(!b)break C;b=J[b+84>>2];if(!b)break C;e=J[a+4>>2];J[h+16>>2]=d;gc[b|0](e,36944,h+16|0);break C}D:{if(J[b>>2])break D;e=J[a>>2];if(!e)break D;e=J[e+84>>2];if(!e)break D; -g=J[a+4>>2];J[h+32>>2]=d;gc[e|0](g,33980,h+32|0)}Xj(b)}hl(J[a+52>>2],d,0);gc[J[659451]](f);if(l)gc[J[659451]](l);if((c|0)!=(d|0))break b;break a}E:{if(!(!d|e)){if(K[d|0]!=120|K[d+1|0]!=109|(K[d+2|0]!=108|K[d+3|0]!=110))break E;if(K[d+5|0]|K[d+4|0]!=115)break E;d=c;F:{if(J[a+16>>2])break F;J[a+248>>2]=J[a+248>>2]+1;d=rJ(a,d);J[a+248>>2]=J[a+248>>2]-1;if(d)break F;er(a,2723);gc[J[659451]](J[h+124>>2]);d=f;break b}if(!K[d|0]){b=bc-16|0;bc=b;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=204;J[b+4>> -2]=0;J[b>>2]=f;Cc(0,0,0,a,0,3,204,2,f,0,0,0,32355,b)}bc=b+16|0}G:{if(!J[a+268>>2]|!K[d|0])break G;b=Et(d);if(!b){uB(a,99,36971,f,c);break G}if(!J[b>>2])uB(a,100,34011,f,c);Xj(b)}hl(J[a+52>>2],d,f);gc[J[659451]](J[h+124>>2]);gc[J[659451]](f);if(l)gc[J[659451]](l);if((c|0)!=(d|0))break b;break a}if(d)break E;break A}j=jl(J[a+8>>2],J[a+52>>2],d);if(!j){d=J[h+124>>2];if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){j=0;break A}J[a+84>>2]=201;J[h+68>>2]=f;J[h+64>>2]=d;j=0;Cc(0,0,0,a,0,3,201,2,d,f,0,0,35905,h- -64| -0);break A}i=J[J[a+52>>2]+44>>2];if(!i)break A;while(1){H:{k=J[i+36>>2];if(!k)break H;d=J[i+8>>2];if((f|0)!=(d|0)){e=f;if(!d)break H;while(1){g=K[e|0];if((g|0)!=K[d|0])break H;d=d+1|0;e=e+1|0;if(g)continue;break}}g=J[j+8>>2];I:{if((j|0)==(k|0))break I;d=J[k+8>>2];if((g|0)==(d|0))break I;if(!g)break H;e=g;if(!d)break H;while(1){k=K[e|0];if((k|0)!=K[d|0])break H;d=d+1|0;e=e+1|0;if(k)continue;break}}if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=42;J[h+84>>2]=g;J[h+80>>2]=f;Cc(0,0,0,a,0,3,42,2,f,g, -0,0,35681,h+80|0)}J[a+12>>2]=0;if(J[a+288>>2])break z;J[a+212>>2]=1;break z}i=J[i+24>>2];if(i)continue;break}}j=c0(J[a+52>>2],j,f,1);J:{if(!j)break J;if(!(J[a+16>>2]|J[a+32>>2])){d=yB(J[a+8>>2],c);J[j+12>>2]=d;if(!d)break J;while(1){f=d;J[d+20>>2]=j;d=J[d+24>>2];if(d)continue;break}J[j+16>>2]=f;break J}if(!c)break J;f=J[a+8>>2];d=$$(c);if(!d){J[j+12>>2]=0;J[j+16>>2]=0;break J}J[d+32>>2]=f;J[j+16>>2]=d;J[j+12>>2]=d;J[d+20>>2]=j}if(K[a+276|0]&8)break z;K:{if(!J[a+16>>2]){if(J[a+96>>2]!=2)break K;break z}if(J[a+ -216>>2])break z}d=15567;L:{if((b|0)!=15567){if(!b)break L;while(1){f=K[b|0];if((f|0)!=K[d|0])break L;d=d+1|0;b=b+1|0;if(f)continue;break}}g=bc-16|0;bc=g;b=c;M:{if(!b){f=-1;break M}d=b;while(1){f=K[d|0];e=f-9|0;if(!(e>>>0>23|!(1<>>0<26)&(f-65&255)>>>0>25)break N;while(1){e=K[d+1|0];f=d+1|0;d=f;if((e-48&255)>>>0<10|((e&223)-65&255)>>>0<26|((e|0)==95|e-45>>>0<2))continue;break}while(1){d=(e&255)-9|0;if(!(d>>>0>23|!(1<255)break P;Q:{while(1){f=d-9|0;if(f>>>0>23|!(1<>2]+b|0;d=hm(0,b,g+12|0);if((d|0)<256)continue;break}break P}if(d-192>>>0<23|(d&-33)-65>>>0<26|((d|0)==95|(d|0)>247))break O;f=1;if(d-216>>>0<31)break O;break M}if(d>>>0<=65535){f=196;e=0;k=d&65535;while(1){i=(e+f|0)/2|0;m=i<<2;R:{if(L[m+768608>>1]>d>>>0){f=i-1|0;break R}if(k>>>0<=L[m+768610>>1])break O;e=i+1|0}if((e|0)<=(f|0))continue; -break}}if((d|0)==12295|d-12330>>>0>4294967286)break O;f=1;if(d-40870>>>0<4294946394)break M}f=J[g+12>>2]+b|0;d=hm(0,f,g+12|0);S:{while(1){T:{b=f;U:{V:{if((d|0)<=255){if(d-192>>>0<23|(d&-33)-65>>>0<26|(d-48>>>0<10|(d|0)>247))break U;if(d-216>>>0>=31)break V;break U}k=d>>>0>65535;if(!k){f=196;e=0;while(1){i=(e+f|0)/2|0;m=i<<2;W:{if(L[m+768608>>1]>d>>>0){f=i-1|0;break W}if(L[m+768610>>1]>=(d&65535)>>>0)break U;e=i+1|0}if((e|0)<=(f|0))continue;break}}if((d|0)==12295|d-12321>>>0<9|d-19968>>>0<20902)break U; -if(k)break V;f=13;e=0;while(1){i=(e+f|0)/2|0;k=i<<2;X:{if(L[k+769824>>1]>d>>>0){f=i-1|0;break X}if(L[k+769826>>1]>=(d&65535)>>>0)break U;e=i+1|0}if((e|0)<=(f|0))continue;break}}if((d|0)==95|d-45>>>0<2)break U;if((d|0)>=256){if(d>>>0>65535){d=1;break S}f=94;e=0;while(1){i=(e+f|0)/2|0;k=i<<2;Y:{if(L[k+769424>>1]>d>>>0){f=i-1|0;break Y}if(L[k+769426>>1]>=(d&65535)>>>0)break U;e=i+1|0}if((e|0)<=(f|0))continue;break}f=9;e=0;while(1){i=(e+f|0)/2|0;k=i<<2;Z:{if(L[k+769904>>1]>d>>>0){f=i-1|0;break Z}if(L[k+ -769906>>1]>=(d&65535)>>>0)break U;e=i+1|0}if((e|0)<=(f|0))continue;break}break T}if((d|0)!=183)break T}f=J[g+12>>2]+b|0;d=0;if(!b)continue;_:{b=H[f|0];if((b|0)<0){if((K[f+1|0]&192)!=128)break _;b=b&255;$:{if((b&224)==224){if((K[f+2|0]&192)!=128)break _;if((b&240)==240){if((b&248)!=240|(K[f+3|0]&192)!=128)break _;J[g+12>>2]=4;e=(K[f+1|0]&63)<<12|(K[f|0]&7)<<18|(K[f+2|0]&63)<<6;b=f+3|0;break $}J[g+12>>2]=3;e=(K[f+1|0]&63)<<6|(K[f|0]&15)<<12;b=f+2|0;break $}J[g+12>>2]=2;e=(K[f|0]&31)<<6;b=f+1|0}d=K[b| -0]&63|e;aa:{if(d>>>0<=255){if(d>>>0>31)continue;if(d>>>0>13)break aa;if(1<>>0<55296|d-57344>>>0<8190|d-65536>>>0<1048576)continue}J[g>>2]=d;Cc(0,0,0,0,0,1,9,3,0,0,0,d,34763,g);continue}J[g+12>>2]=1;d=K[f|0];continue}J[g+12>>2]=0;continue}break}if((d|0)>255)break S;while(1){f=d-9|0;if(f>>>0>23|!(1<>2]+b|0;d=hm(0,b,g+12|0);if((d|0)<256)continue;break}}f=(d|0)!=0}bc=g+16|0;if(!(!f|(J[a+172>>2]==-1?J[a+212>>2]:0))){J[a+84>>2]=539;d=J[a>>2];b= -0;ba:{if(!d)break ba;b=0;if(J[d+108>>2]!=-554844497)break ba;b=J[d+124>>2]}d=J[a+112>>2];f=J[a+108>>2];J[h+52>>2]=0;J[h+48>>2]=c;Cc(b,d,f,a,0,4,539,2,c,0,0,0,34679,h+48|0);J[a+100>>2]=0}pw(a+108|0,J[a+8>>2],c,j);break z}if(qB(J[a+8>>2],J[a+52>>2],j)){pw(a+108|0,J[a+8>>2],c,j);break z}if(!B$(J[a+8>>2],J[a+52>>2],j))break z;D$(a+108|0,J[a+8>>2],c,j)}if(!l)break c;gc[J[659451]](l)}d=J[h+124>>2];if(!d)break a}gc[J[659451]](d)}bc=h+128|0}function Cdb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;e=bc-1536|0;bc=e;J[b>>2]=1;n=Dk(J[b+96>>2],241338,1);J[b+488>>2]=n;l=pn(J[J[b+96>>2]+4>>2],241476);J[b+492>>2]=l;a:{if(!l){a=11;break a}q=b,r=pn(J[J[b+96>>2]+4>>2],241268),J[q+552>>2]=r;i=J[b+492>>2];a=e+12|0;wc(a,0,380);J[b+544>>2]=0;J[b+536>>2]=-1;J[b+540>>2]=-1;J[b+284>>2]=1;J[b+348>>2]=3932;J[b+172>>2]=4;J[b+276>>2]=2596864;J[b+280>>2]=7;f=J[b+104>>2];g=J[b+100>>2];gc[J[J[i+4>>2]>>2]](a,0,0,g);J[e+96>>2]=0;J[e+100>>2]=0;H[e+103|0]=0;H[e+104|0]=0;H[e+ -105|0]=0;H[e+106|0]=0;J[e+88>>2]=0;J[e+92>>2]=0;J[e+84>>2]=f;a=c4(f,242004,14);J[e+8>>2]=a;b:{c:{d:{if(a){if((a&255)!=2)break d;a=c4(f,242177,10);J[e+8>>2]=a;if(a)break d}a=nd(f,0);J[e+8>>2]=a;if(a)break d;d=e+1528|0;h=Wd(f,d);e:{f:{g:{h:{a=J[e+1528>>2];if(!a){if((h+32767&65535)>>>0>=2)break g;d=Vi(f,d);a=J[e+1528>>2];if(!a)break h}J[e+8>>2]=a;break d}J[e+8>>2]=0;if((h|0)==32769)break f}a=nd(f,0);J[e+8>>2]=a;if(a)break d;d=J[f+4>>2];break e}H[e+104|0]=1}i:{if(!J[f+20>>2]){a=J[f+8>>2];h=J[f>>2];H[e+ -105|0]=1;J[e+92>>2]=d;J[e+88>>2]=a+h;a=bg(f,d);J[e+8>>2]=a;if(a)break d;d=J[e+92>>2];break i}h=Zd(g,d,e+8|0);J[e+88>>2]=h;a=J[e+8>>2];if(a)break d;a=mg(f,h,d);J[e+8>>2]=a;if(a)break d;J[e+92>>2]=d}f=J[e+88>>2];J[e+16>>2]=f;J[e+12>>2]=f;J[e+20>>2]=d+f;break c}if(K[e+105|0]){J[e+4>>2]=a;break b}a=J[e+88>>2];if(a)gc[J[g+8>>2]](g,a);f=0;J[e+88>>2]=0;a=J[e+8>>2];J[e+4>>2]=a;if(a)break b;d=J[e+92>>2]}a=b4(b,e+12|0,f,d);J[e+4>>2]=a;if(a)break b;j=J[e+28>>2];a=J[e+84>>2];J[e+8>>2]=0;j:{k:{l:{m:{if(K[e+104| -0]){h=J[a+8>>2];J[e+100>>2]=0;while(1){d=Wd(a,e+1528|0);g=J[e+1528>>2];if(g)break k;if((d+32767&65535)>>>0>=2){J[e+8>>2]=0;break m}f=Vi(a,e+1528|0);g=J[e+1528>>2];if(g)break k;J[e+8>>2]=0;if((d|0)!=32770)break m;J[e+100>>2]=f+J[e+100>>2];g=bg(a,f);J[e+8>>2]=g;if(!g)continue;break}break k}d=J[e+88>>2];h=J[e+92>>2];f=d+h|0;a=d;while(1){n:{o:{if(K[a|0]!=101|a+9>>>0>=f>>>0|(K[a+1|0]!=101|K[a+2|0]!=120))break o;if(K[a+3|0]!=101)break o;if(K[a+4|0]==99)break n}a=a+1|0;if(f>>>0>a>>>0)continue;J[e+4>>2]= -3;break b}a=a+10|0;J[e+20>>2]=a;J[e+12>>2]=d;p:{if(a>>>0>d>>>0){while(1){q:{if(K[d|0]!=101|d+5>>>0>=a>>>0|(K[d+1|0]!=101|K[d+2|0]!=120))break q;if(K[d+3|0]!=101)break q;if(K[d+4|0]==99)break p}d=e+12|0;gc[J[e+44>>2]](d);if(!J[e+24>>2]){gc[J[e+40>>2]](d);d=J[e+12>>2];if(d>>>0>>0)continue}break}h=J[e+92>>2];d=J[e+88>>2]}g=3;f=d+h|0;if(f>>>0>a>>>0)continue;break k}break}J[e+20>>2]=J[e+88>>2]+J[e+92>>2];gc[J[e+44>>2]](e+12|0);h=J[e+20>>2];a=J[e+12>>2];f=h-a|0;d=pg(a,10,f);if(d)d=pg(a,13,f)>>>0>> -0;else d=1;g=3;if(a>>>0>=h>>>0)break k;k=a+f|0;while(1){r:{f=K[a|0];if(!((f|0)==9|(f|0)==32|(f|0)==10))if(!(d&(f|0)==13))break r;a=a+1|0;if((k|0)!=(a|0))continue;break k}break}d=J[e+88>>2];f=J[e+92>>2]+(d-a|0)|0;s:{if(K[e+105|0]){d=Zd(j,f+1|0,e+8|0);J[e+96>>2]=d;g=J[e+8>>2];if(g)break k;J[e+100>>2]=f;break s}J[e+100>>2]=f;J[e+96>>2]=d;H[e+106|0]=1;J[e+88>>2]=0;J[e+92>>2]=0}t:{if(h>>>0<=a+3>>>0)break t;u:{g=K[a|0];if(g-48>>>0<10)break u;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break u; -default:break t}}v:{g=K[a+1|0];if(g-48>>>0<10)break v;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break v;default:break t}}w:{g=K[a+2|0];if(g-48>>>0<10)break w;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break w;default:break t}}x:{g=K[a+3|0];if(g-48>>>0<10)break x;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break x; -default:break t}}J[e+12>>2]=a;gc[J[J[i+4>>2]+24>>2]](e+12|0,d,f,e+1528|0,0)|0;a=J[e+1528>>2];J[e+100>>2]=a;H[a+J[e+96>>2]|0]=0;break l}Zc(d,a,f);break l}if(!J[e+100>>2]){J[e+4>>2]=3;break b}g=nd(a,h);J[e+8>>2]=g;if(g)break k;q=e,r=Zd(j,J[e+100>>2],e+8|0),J[q+96>>2]=r;g=J[e+8>>2];if(g)break k;J[e+100>>2]=0;f=Wd(a,e+1528|0);y:{if(J[e+1528>>2])break y;while(1){if((f+32767&65535)>>>0>1)break y;h=e+1528|0;d=Vi(a,h);if(J[e+1528>>2])break y;J[e+8>>2]=0;if((f&65535)!=32770)break y;g=mg(a,J[e+96>>2]+J[e+100>> -2]|0,d);J[e+8>>2]=g;if(g)break k;J[e+100>>2]=d+J[e+100>>2];f=Wd(a,h);if(!J[e+1528>>2])continue;break}}J[e+8>>2]=0}gc[J[i+16>>2]](J[e+96>>2],J[e+100>>2],55665);g=3;if(M[e+100>>2]>3)break j}J[e+4>>2]=g;break b}H[J[e+96>>2]]=32;H[J[e+96>>2]+1|0]=32;H[J[e+96>>2]+2|0]=32;H[J[e+96>>2]+3|0]=32;a=J[e+96>>2];J[e+16>>2]=a;J[e+12>>2]=a;d=J[e+100>>2];J[e+20>>2]=d+a;f=J[e+8>>2];J[e+4>>2]=f;if(f)break b;a=b4(b,e+12|0,a,d);J[e+4>>2]=a;if(a)break b;H[b+176|0]=K[b+176|0]&254;z:{A:{f=J[b+532>>2];if(!f)break A;if(J[f>> -2]!=1<>2]){fx(b);f=J[b+532>>2];if(!f)break A}a=J[f+416>>2];if(!(!a|(a|0)==J[f+4>>2]))J[f+416>>2]=0;B:{C:{if(J[f>>2]){d=J[f+4>>2];if(d)break C}fx(b);f=J[b+532>>2];if(!f)break A;d=J[f+4>>2];if(!d)break B}a=0;while(1){if(K[(P(a,12)+f|0)+88|0]){a=a+1|0;if((d|0)!=(a|0))continue;break B}break}fx(b);if(!J[b+532>>2])break A}a=J[b+544>>2];if(!a)break z;q=b,r=Sc(J[b+100>>2],4,0,a,0,e+4|0),J[q+548>>2]=r;if(!J[e+4>>2])break z;J[b+544>>2]=0;break b}J[b+544>>2]=0}f=J[e+164>>2];J[b+420>>2]=f;if(J[e+340>> -2]){J[b+404>>2]=J[e+324>>2];J[b+392>>2]=J[e+328>>2];J[b+408>>2]=J[e+352>>2];J[b+412>>2]=J[e+356>>2];J[b+416>>2]=J[e+380>>2];J[e+380>>2]=0;J[e+340>>2]=0}if(!(J[J[b+128>>2]+52>>2]|J[e+232>>2]))J[e+4>>2]=3;g=0;J[e+232>>2]=0;J[b+396>>2]=J[e+220>>2];J[b+428>>2]=J[e+244>>2];J[b+432>>2]=J[e+248>>2];J[b+400>>2]=J[e+168>>2];J[b+424>>2]=J[e+192>>2];J[e+192>>2]=0;J[e+168>>2]=0;if(J[b+368>>2]==1){h=0;i=J[e+128>>2];D:{if((i|0)<=0)break D;if((f|0)>0){d=0;while(1){j=d<<2;k=J[j+J[e+136>>2]>>2];o=d<<1;I[o+J[b+384>> -2]>>1]=0;J[j+J[b+388>>2]>>2]=241950;E:{if(!k)break E;p=J[b+424>>2];a=0;while(1){m=J[(a<<2)+p>>2];if(Ec(k,m)){a=a+1|0;if((f|0)!=(a|0))continue;break E}break}I[J[b+384>>2]+o>>1]=a;J[j+J[b+388>>2]>>2]=m;if(!Ec(241950,m))break E;h=(d|0)<(h|0)?h:d+1|0;g=(d|0)<(g|0)?d:g}d=d+1|0;if((i|0)!=(d|0))continue;break}break D}f=0;a=0;if(i>>>0>=4){g=i&-4;d=0;while(1){I[J[b+384>>2]+(a<<1)>>1]=0;J[J[b+388>>2]+(a<<2)>>2]=241950;h=a|1;I[J[b+384>>2]+(h<<1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=241950;h=a|2;I[J[b+384>>2]+(h<< -1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=241950;h=a|3;I[J[b+384>>2]+(h<<1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=241950;a=a+4|0;d=d+4|0;if((g|0)!=(d|0))continue;break}}d=i&3;if(!d){g=0;h=0;break D}while(1){g=0;I[J[b+384>>2]+(a<<1)>>1]=0;J[J[b+388>>2]+(a<<2)>>2]=241950;a=a+1|0;h=0;f=f+1|0;if((d|0)!=(f|0))continue;break}}J[b+380>>2]=h;J[b+376>>2]=g;J[b+372>>2]=J[e+108>>2]}if(M[b+280>>2]>=1001)J[b+280>>2]=7;if(M[b+284>>2]<1001)break b;J[b+284>>2]=1}a=J[e+28>>2];d=J[e+160>>2];if(d)gc[d|0](e+112|0);d=J[e+268>>2];if(d)gc[d| -0](e+220|0);d=J[e+216>>2];if(d)gc[d|0](e+168|0);d=J[e+320>>2];if(d)gc[d|0](e+272|0);d=J[e+376>>2];if(d)gc[d|0](e+328|0);_C(J[e+380>>2],a);d=J[e+380>>2];if(d)gc[J[a+8>>2]](a,d);J[e+380>>2]=0;a=J[e+28>>2];d=J[e+96>>2];if(d)gc[J[a+8>>2]](a,d);J[e+96>>2]=0;if(!K[e+105|0]){d=J[e+88>>2];if(d)gc[J[a+8>>2]](a,d);J[e+88>>2]=0}gc[J[e+36>>2]](e+12|0);a=J[e+4>>2];if(a|(c|0)<0)break a;a=6;if(c&65535)break a;J[b+4>>2]=0;J[b+16>>2]=J[b+420>>2];c=J[b+8>>2];a=c|2577;J[b+8>>2]=a;if(K[b+156|0]){a=c|2581;J[b+8>>2]=a}g= -J[b+532>>2];if(g)J[b+8>>2]=a|256;J[b+24>>2]=0;f=J[b+144>>2];J[b+20>>2]=f;F:{G:{if(f){a=J[b+140>>2];if(!a)break G;c=K[a|0];if(!c){a=241606;break F}while(1){H:{I:{d=c&255;c=K[f|0];if((d|0)==(c|0)){a=a+1|0;break I}d=d-32|0;if(!((d|0)!=13?d:0)){a=a+1|0;break H}J:switch(c-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break G;case 0:case 13:break I;default:break J}if(c)break G;break F}f=f+1|0}c=K[a|0];if(c)continue;break}a=241606;break F}a=J[b+364>>2];if(!a)break G; -J[b+20>>2]=a}a=J[b+148>>2];a=a?a:241606}J[b+24>>2]=a;c=J[b+152>>2]!=0;J[b+12>>2]=c;a=J[b+148>>2];K:{if(!a)break K;if(Ec(a,241726))if(Ec(a,241802))break K;J[b+12>>2]=c|2}J[b+28>>2]=0;J[b+32>>2]=0;J[b+52>>2]=I[b+466>>1];a=I[b+470>>1];J[b+56>>2]=a;f=J[b+472>>2]+65535>>16;J[b+60>>2]=f;d=J[b+476>>2]+65535>>16;J[b- -64>>2]=d;c=L[b+68>>1];if(!c){I[b+68>>1]=1E3;c=1E3}I[b+76>>1]=f;I[b+72>>1]=a;I[b+70>>1]=d;a=d-a|0;c=(P(c,12)>>>0)/10|0;I[b+74>>1]=(a|0)>c<<16>>16?a:c;a=0;c=e+12|0;d=J[b+492>>2];if(!(gc[J[J[d+ -12>>2]>>2]](c,b,0,0,J[b+424>>2],g,0,0,1750)|0)){H[e+80|0]=0;H[e+82|0]=1;J[e+1376>>2]=J[b+404>>2];J[e+1380>>2]=J[b+408>>2];J[e+1384>>2]=J[b+412>>2];J[e+1388>>2]=J[b+416>>2];J[e+1508>>2]=J[b+548>>2];J[e+1512>>2]=J[b+544>>2];L:{if(J[b+420>>2]<=0)break L;a=c;c=e+1528|0;M:{if(ex(a,0,c,e+8|0))break M;a=J[J[J[e+16>>2]+128>>2]+52>>2];if(!a)break M;gc[J[J[a>>2]+4>>2]](J[a+4>>2],c)}a=J[e+52>>2];if(J[b+420>>2]<2)break L;f=1;while(1){g=e+1528|0;N:{if(ex(e+12|0,f,g,e+8|0))break N;c=J[J[J[e+16>>2]+128>>2]+52>> -2];if(!c)break N;gc[J[J[c>>2]+4>>2]](J[c+4>>2],g)}c=J[e+52>>2];a=(a|0)<(c|0)?c:a;f=f+1|0;if((f|0)>2])continue;break}}gc[J[J[d+12>>2]+4>>2]](e+12|0);I[b+76>>1]=(((a>>31)+a|0)+32768&-65536)>>>16}I[b+78>>1]=L[b+74>>1];J[b+80>>2]=L[b+158>>1]|L[b+160>>1]<<16;if(!n){a=0;break a}f=J[l+32>>2];J[e+12>>2]=b;J[e+16>>2]=1970170211;J[e+20>>2]=65539;a=Ek(J[f+12>>2],0,e+12|0,0);O:{if(!a)break O;c=a&255;if((c|0)==163)break O;if((c|0)!=7)break a}I[e+20>>1]=7;a=0;P:{Q:switch(J[b+368>>2]-1|0){case 1:I[e+22>> -1]=0;J[e+16>>2]=1094995778;break P;case 3:I[e+22>>1]=1;J[e+16>>2]=1094992453;f=f+4|0;break P;case 0:I[e+22>>1]=2;J[e+16>>2]=1094992451;f=f+8|0;break P;case 2:break Q;default:break a}f=f+12|0;I[e+22>>1]=3;J[e+16>>2]=1818326065}b=J[f>>2];if(!b)break a;a=Ek(b,0,e+12|0,0)}bc=e+1536|0;return a|0}function OWa(a,b,c,d,e,f,g,h,i,j,k,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=m|0;var n=0,o=0;n=bc+-64|0;bc=n;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{if(K[a+ -220|0])break P;gc[J[J[a>>2]+452>>2]](a,b);a=J[a+104>>2];J[n+48>>2]=8193;b=n+48|0;gc[J[J[a>>2]+308>>2]](a,b)|0;J[n+56>>2]=0;J[n+48>>2]=0;J[n+52>>2]=0;J[695492]=0;a=$(4,48)|0;o=J[695492];J[695492]=0;if((o|0)==1)break O;J[n+36>>2]=a;J[n+40>>2]=10;J[n+44>>2]=-2147483636;o=J[202663];J[a+32>>2]=J[202662];J[a+36>>2]=o;o=J[202661];J[a+24>>2]=J[202660];J[a+28>>2]=o;o=J[202659];J[a+16>>2]=J[202658];J[a+20>>2]=o;o=J[202657];J[a+8>>2]=J[202656];J[a+12>>2]=o;o=J[202655];J[a>>2]=J[202654];J[a+4>>2]=o;J[a+40>>2]= -0;J[695492]=0;ca(3249,b|0,n+36|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break N;if(H[n+47|0]<0)qc(J[n+36>>2]);J[n+36>>2]=120;J[n+40>>2]=0;H[n+47|0]=1;J[n+24>>2]=0;H[n+35|0]=0;J[695492]=0;J[n+12>>2]=0;H[n+23|0]=0;oa(3250,n+48|0,n+36|0,c|0,10,n+24|0,n+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break M;if(H[n+23|0]<0)qc(J[n+12>>2]);if(H[n+35|0]<0)qc(J[n+24>>2]);if(H[n+47|0]<0)qc(J[n+36>>2]);J[n+36>>2]=121;J[n+40>>2]=0;H[n+47|0]=1;J[n+24>>2]=0;H[n+35|0]=0;J[695492]=0;J[n+12>>2]=0;H[n+23|0]=0;oa(3250,n+ -48|0,n+36|0,d|0,10,n+24|0,n+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break L;if(H[n+23|0]<0)qc(J[n+12>>2]);if(H[n+35|0]<0)qc(J[n+24>>2]);if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break K;J[n+36>>2]=a;J[n+40>>2]=6;J[n+44>>2]=-2147483640;b=J[202911];J[a+16>>2]=J[202910];J[a+20>>2]=b;b=J[202909];J[a+8>>2]=J[202908];J[a+12>>2]=b;b=J[202907];J[a>>2]=J[202906];J[a+4>>2]=b;J[a+24>>2]=0;J[n+24>>2]=0;H[n+35|0]=0;J[695492]=0;J[n+12>>2]=0;H[n+23|0]=0;oa(3250, -n+48|0,n+36|0,e-c|0,10,n+24|0,n+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break J;if(H[n+23|0]<0)qc(J[n+12>>2]);if(H[n+35|0]<0)qc(J[n+24>>2]);if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break I;J[n+36>>2]=a;J[n+40>>2]=6;J[n+44>>2]=-2147483640;b=J[202989];J[a+16>>2]=J[202988];J[a+20>>2]=b;b=J[202987];J[a+8>>2]=J[202986];J[a+12>>2]=b;b=J[202985];J[a>>2]=J[202984];J[a+4>>2]=b;J[a+24>>2]=0;J[n+24>>2]=0;H[n+35|0]=0;J[695492]=0;J[n+12>>2]=0;H[n+23|0]=0;oa(3250, -n+48|0,n+36|0,f-d|0,10,n+24|0,n+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break H;if(H[n+23|0]<0)qc(J[n+12>>2]);if(H[n+35|0]<0)qc(J[n+24>>2]);if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break G;J[n+36>>2]=a;J[n+40>>2]=5;J[n+44>>2]=-2147483640;J[a+16>>2]=J[203054];b=J[203053];J[a+8>>2]=J[203052];J[a+12>>2]=b;b=J[203051];J[a>>2]=J[203050];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;wa(3251,n+48|0,n+36|0,+g);a=J[695492];J[695492]=0;if((a|0)==1)break F;if(H[n+47| -0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E;J[n+36>>2]=a;J[n+40>>2]=5;J[n+44>>2]=-2147483640;J[a+16>>2]=J[203122];b=J[203121];J[a+8>>2]=J[203120];J[a+12>>2]=b;b=J[203119];J[a>>2]=J[203118];J[a+4>>2]=b;J[a+20>>2]=0;J[695492]=0;wa(3251,n+48|0,n+36|0,+h);a=J[695492];J[695492]=0;if((a|0)==1)break D;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break C;J[a+40>>2]=0;b=J[202663];J[a+32>>2]=J[202662];J[a+36>>2]=b;b=J[202661]; -J[a+24>>2]=J[202660];J[a+28>>2]=b;b=J[202659];J[a+16>>2]=J[202658];J[a+20>>2]=b;b=J[202657];J[a+8>>2]=J[202656];J[a+12>>2]=b;b=J[202655];J[a>>2]=J[202654];J[a+4>>2]=b;J[695492]=0;b=n+48|0;aa(2860,b|0,816484)|0;c=J[695492];J[695492]=0;if((c|0)==1)break B;qc(a);J[695492]=0;a=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break A;J[n+36>>2]=a;J[n+40>>2]=4;J[n+44>>2]=-2147483640;c=J[203210];J[a+8>>2]=J[203209];J[a+12>>2]=c;c=J[203208];J[a>>2]=J[203207];J[a+4>>2]=c;J[a+16>>2]=0;J[695492]=0;ca(3249,b|0, -n+36|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break z;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;J[n+36>>2]=120;J[n+40>>2]=0;H[n+47|0]=1;wa(3251,n+48|0,n+36|0,+i);a=J[695492];J[695492]=0;if((a|0)==1)break y;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;J[n+36>>2]=121;J[n+40>>2]=0;H[n+47|0]=1;wa(3251,n+48|0,n+36|0,+j);a=J[695492];J[695492]=0;if((a|0)==1)break x;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;J[n+36>>2]=114;J[n+40>>2]=0;H[n+47|0]=1;wa(3251,n+48|0,n+36|0,+k);a=J[695492];J[695492]=0;if((a|0)==1)break w; -if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;J[n+36>>2]=98;J[n+40>>2]=0;H[n+47|0]=1;wa(3251,n+48|0,n+36|0,+l);a=J[695492];J[695492]=0;if((a|0)==1)break v;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break u;J[a+16>>2]=0;b=J[203210];J[a+8>>2]=J[203209];J[a+12>>2]=b;b=J[203208];J[a>>2]=J[203207];J[a+4>>2]=b;J[695492]=0;b=n+48|0;aa(2860,b|0,817816)|0;c=J[695492];J[695492]=0;if((c|0)==1)break t;qc(a);J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break s; -J[n+36>>2]=a;J[n+40>>2]=9;J[n+44>>2]=-2147483636;J[a+32>>2]=J[203438];c=J[203437];J[a+24>>2]=J[203436];J[a+28>>2]=c;c=J[203435];J[a+16>>2]=J[203434];J[a+20>>2]=c;c=J[203433];J[a+8>>2]=J[203432];J[a+12>>2]=c;c=J[203431];J[a>>2]=J[203430];J[a+4>>2]=c;J[a+36>>2]=0;J[695492]=0;ca(3249,b|0,n+36|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break r;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1)break q;J[n+36>>2]=a;J[n+40>>2]=2;J[n+44>>2]=-2147483644;J[a+8>>2]=0;J[a>> -2]=109;J[a+4>>2]=49;g=O[m>>3];J[695492]=0;wa(3251,n+48|0,n+36|0,+g);a=J[695492];J[695492]=0;if((a|0)==1)break p;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1)break o;J[n+36>>2]=a;J[n+40>>2]=2;J[n+44>>2]=-2147483644;J[a+8>>2]=0;J[a>>2]=109;J[a+4>>2]=50;g=O[m+8>>3];J[695492]=0;wa(3251,n+48|0,n+36|0,+g);a=J[695492];J[695492]=0;if((a|0)==1)break n;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;J[n+36>>2]=a; -J[n+40>>2]=2;J[n+44>>2]=-2147483644;J[a+8>>2]=0;J[a>>2]=109;J[a+4>>2]=51;g=O[m+16>>3];J[695492]=0;wa(3251,n+48|0,n+36|0,+g);a=J[695492];J[695492]=0;if((a|0)==1)break l;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J[n+36>>2]=a;J[n+40>>2]=2;J[n+44>>2]=-2147483644;J[a+8>>2]=0;J[a>>2]=109;J[a+4>>2]=52;g=O[m+24>>3];J[695492]=0;wa(3251,n+48|0,n+36|0,+g);a=J[695492];J[695492]=0;if((a|0)==1)break j;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,16)|0; -b=J[695492];J[695492]=0;if((b|0)==1)break i;J[n+36>>2]=a;J[n+40>>2]=2;J[n+44>>2]=-2147483644;J[a+8>>2]=0;J[a>>2]=109;J[a+4>>2]=53;g=O[m+32>>3];J[695492]=0;wa(3251,n+48|0,n+36|0,+g);a=J[695492];J[695492]=0;if((a|0)==1)break h;if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[n+36>>2]=a;J[n+40>>2]=2;J[n+44>>2]=-2147483644;J[a+8>>2]=0;J[a>>2]=109;J[a+4>>2]=54;g=O[m+40>>3];J[695492]=0;wa(3251,n+48|0,n+36|0,+g);a=J[695492];J[695492]=0;if((a|0)==1)break f; -if(H[n+47|0]<0)qc(J[n+36>>2]);J[695492]=0;a=$(4,48)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[a+36>>2]=0;J[a+32>>2]=J[203438];b=J[203437];J[a+24>>2]=J[203436];J[a+28>>2]=b;b=J[203435];J[a+16>>2]=J[203434];J[a+20>>2]=b;b=J[203433];J[a+8>>2]=J[203432];J[a+12>>2]=b;b=J[203431];J[a>>2]=J[203430];J[a+4>>2]=b;J[695492]=0;b=n+48|0;aa(2860,b|0,817816)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;qc(a);J[695492]=0;a=$(4,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[n+36>>2]=a;J[n+40>>2]=10;J[n+ -44>>2]=-2147483636;c=J[202663];J[a+32>>2]=J[202662];J[a+36>>2]=c;c=J[202661];J[a+24>>2]=J[202660];J[a+28>>2]=c;c=J[202659];J[a+16>>2]=J[202658];J[a+20>>2]=c;c=J[202657];J[a+8>>2]=J[202656];J[a+12>>2]=c;c=J[202655];J[a>>2]=J[202654];J[a+4>>2]=c;J[a+40>>2]=0;J[695492]=0;ia(3252,b|0,n+36|0,0,1);a=J[695492];J[695492]=0;if((a|0)==1)break b;if(H[n+47|0]<0)qc(J[n+36>>2]);if(H[n+59|0]>=0)break P;qc(J[n+48>>2])}bc=n- -64|0;return}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()| -0;if(H[n+23|0]<0)qc(J[n+12>>2]);if(H[n+35|0]<0)qc(J[n+24>>2]);if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;if(H[n+23|0]<0)qc(J[n+12>>2]);if(H[n+35|0]<0)qc(J[n+24>>2]);if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+23|0]<0)qc(J[n+12>>2]);if(H[n+35|0]<0)qc(J[n+24>>2]);if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+23|0]<0)qc(J[n+12>>2]);if(H[n+35|0]<0)qc(J[n+24>>2]);if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c= -Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;qc(a);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;qc(a);break a}c=Z()|0;break a}c= -Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2]);break a}c=Z()|0;break a}c=Z()| -0;qc(a);break a}c=Z()|0;break a}c=Z()|0;if(H[n+47|0]>=0)break a;qc(J[n+36>>2])}if(H[n+59|0]<0)qc(J[n+48>>2]);ba(c|0);B()}function yt(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;j=bc-144|0;bc=j;a:{if(!a|!b|(c|0)<0)break a;i=J[a+248>>2];if(!((i|0)<41|(J[a+360>>2]&524288?i>>>0<=1024:0))){if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break a;J[a+84>>2]=89;J[j>>2]=5754;Cc(0,0,0,a,0,1,89,3,0,0,0,0,32890,j);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}b:{c:{d:{g= -gc[J[659450]](300)|0;if(!g)break d;if(c)e=hm(a,b,j+136|0);i=!e;e:{if(i|i)break e;t=b+c|0;u=d&1;v=d&2;c=300;l=g;while(1){f:{g:{h:{i:{j:{k:{l:{m:{n:{if((e|0)==38){if(K[b+1|0]==35){if(K[b|0]==38){i=b+2|0;f=0;g=K[b+2|0];o:{p:{if((g|0)==59){b=1;break p}e=0;if((g|0)==120){i=b+3|0;m=1;b=K[b+3|0];q:{if((b|0)==59)break q;while(1){g=i;i=-48;r:{if((b-48&255)>>>0<10)break r;i=-87;if((b-97&255)>>>0<6)break r;i=-55;if((b-65&255)>>>0<6)break r;m=0;Pe(a,6,0);i=g;e=0;break q}e=((b&255)+(e<<4)|0)+i|0;f=e>>>0>1114111? -e:f;i=g+1|0;b=K[g+1|0];if((b|0)!=59)continue;break}}i=i+m|0;break i}while(1){if((g-48&255)>>>0<=9){e=(P(e,10)+(g&255)|0)-48|0;f=e>>>0>1114111?e:f;b=1;g=K[i+1|0];m=i+1|0;i=m;if((g|0)!=59)continue;break o}break}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){b=0;break p}J[a+84>>2]=7;J[j+16>>2]=13406;b=0;Cc(0,0,0,a,0,1,7,3,0,0,0,0,32890,j+16|0);J[a+12>>2]=0;if(J[a+288>>2])break p;J[a+212>>2]=1}m=i;e=0}i=b+m|0;break i}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){i=b;break h}J[a+84>>2]=8;J[j+32>>2]=13437;Cc(0,0,0,a,0,1,8, -3,0,0,0,0,32890,j+32|0);J[a+12>>2]=0;if(J[a+288>>2]){i=b;break h}J[a+212>>2]=1;i=b;break h}if(!u)break n;if(J[689531]){J[j+64>>2]=b;gc[J[659549]](J[689514],32102,j- -64|0)}J[j+140>>2]=b;e=0;if(K[b|0]!=38){i=b;break j}J[j+140>>2]=b+1;g=sJ(a,j+140|0);if(!g){fe(a,68,34480);i=J[j+140>>2];break j}i=J[j+140>>2];if(K[i|0]!=59){s:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break s;J[a+84>>2]=23;J[j+48>>2]=29297;Cc(0,0,0,a,0,1,23,3,0,0,0,0,32890,j+48|0);J[a+12>>2]=0;if(J[a+288>>2])break s;J[a+212>>2]=1}gc[J[659451]](g); -break j}i=i+1|0;t:{if(K[a+362|0]&16)break t;e=Qi(g);if(!e)break t;gc[J[659451]](g);break j}J[a+440>>2]=J[a+440>>2]+1;e=0;f=J[a>>2];u:{if(!f)break u;f=J[f+20>>2];if(f){e=gc[f|0](J[a+4>>2],g)|0;if(e)break u}if(K[a+362|0]&16){e=Qi(g);if(e)break u}e=0;if(J[a+4>>2]!=(a|0))break u;e=KB(a,g)}f=J[a+172>>2];if((f|0)==-1){e=0;gc[J[659451]](g);i=b;break j}if(!e){if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){Nf(a,26,35957,g);Vj(a,0,0,0);break k}xt(a,27,35957,g);Vj(a,0,0,0);break k}b=J[e+48>>2];if((b|0)==3){Nf(a, -28,32260,g);break k}f=(f|0)!=12;if(!(f|(b|0)!=2)){Nf(a,29,37385,g);break k}v:{if((b|0)==6|f)break v;f=J[e+40>>2];if(!f)break v;if(zp(f,60))break m;b=J[e+48>>2]}if((b&-2)!=4)break k;Nf(a,30,37337,g);break k}if(!v|(e|0)!=37)break n;if(J[689531]){J[j+128>>2]=b;gc[J[659549]](J[689514],32143,j+128|0)}g=0;w:{if(!b){i=0;break w}J[j+140>>2]=b;if(K[b|0]!=37){i=b;break w}J[j+140>>2]=b+1;f=sJ(a,j+140|0);if(!f){fe(a,68,34542);i=J[j+140>>2];break w}i=J[j+140>>2];if(K[i|0]!=59){x:{if(J[a+172>>2]==-1?J[a+212>>2]: -0)break x;J[a+84>>2]=23;J[j+112>>2]=29297;Cc(0,0,0,a,0,1,23,3,0,0,0,0,32890,j+112|0);J[a+12>>2]=0;if(J[a+288>>2])break x;J[a+212>>2]=1}gc[J[659451]](f);break w}i=i+1|0;J[j+140>>2]=i;J[a+440>>2]=J[a+440>>2]+1;e=J[a>>2];y:{if(!e)break y;e=J[e+96>>2];if(!e)break y;g=gc[e|0](J[a+4>>2],f)|0}if(J[a+172>>2]==-1){g=0;gc[J[659451]](f);i=b;break w}z:{if(!g){if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){Nf(a,26,34952,f);Vj(a,0,0,0);break z}co(a,27,34952,f);J[a+100>>2]=0;Vj(a,0,0,0);break z}if((J[g+48>>2]&-2)== -4)break z;co(a,27,29871,f)}J[a+92>>2]=1;gc[J[659451]](f)}if(J[a+388>>2]==89)break b;Vj(a,0,g,0);if(!g)break g;J[a+440>>2]=J[a+440>>2]+(J[g+72>>2]/2|0);e=J[g+40>>2];if(e){J[a+248>>2]=J[a+248>>2]+1;break l}A:{if(K[a+360|0]&18|J[a+104>>2]){B:switch(J[g+48>>2]-2|0){default:if(J[a+172>>2]==-1?J[a+212>>2]:0)break A;J[a+84>>2]=1;J[j+84>>2]=4922;J[j+80>>2]=5012;Cc(0,0,0,a,0,1,1,3,4922,0,0,0,32761,j+80|0);J[a+12>>2]=0;if(J[a+288>>2])break A;J[a+212>>2]=1;break A;case 0:case 3:break B}if(J[689531]){J[j+96>> -2]=J[g+8>>2];gc[J[659549]](J[689514],30723,j+96|0)}f=0;e=bc-32|0;bc=e;b=gc[J[659447]](20)|0;C:{if(!b){J[e>>2]=5439;Cc(0,0,0,0,0,2,2,3,5439,0,0,0,32863,e);break C}J[b+4>>2]=0;f=J[659448];J[b+8>>2]=f;J[b+12>>2]=J[659449];f=gc[J[659450]](f)|0;J[b>>2]=f;if(!f){J[e+16>>2]=5439;f=0;Cc(0,0,0,0,0,2,2,3,5439,0,0,0,32863,e+16|0);gc[J[659451]](b);break C}H[f|0]=0;J[b+16>>2]=0;f=b}bc=e+32|0;k=f;if(!f){Pe(a,1,4922);break A}o=FJ(a,g);if(!o){Pe(a,1,4855);OB(k);break A}D:{if((zt(a,o)|0)<0)break D;E:{if(J[a+292>> -2])break E;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break E;Hd(a)}e=Ff(a,j+140|0);F:{G:{H:{I:{J:{K:{if(J[a+36>>2]==(o|0)){m=0;while(1){b=J[o+16>>2];if(b>>>0>=M[o+20>>2])break G;L:{if((e|0)<=255){if((e|0)>31|(1<>>0<=13:0))break L;break I}if(e>>>0<55296)break L;f=e-57344|0;if(f>>>0<8190)break L;s=e-65536|0;if(s>>>0>1048575)break K}s=b;n=J[j+140>>2];p=0;M:{if(!k|!b|(J[k+12>>2]==2|(n|0)<-1))break M;if(!n)break M;if((n|0)<0){n=0;if(!K[b|0])break M;while(1){n=n+1|0;f=K[b+1|0];b=b+1|0;if(f)continue; -break}}N:{b=J[k+4>>2];f=(b+n|0)+2|0;e=J[k+8>>2];if(f>>>0>e>>>0){q=bc-32|0;bc=q;O:{if(!k)break O;r=J[k+12>>2];if((r|0)==2)break O;p=1;if(e>>>0>f>>>0)break O;P:{Q:{R:{S:{T:{U:switch(r|0){case 0:case 3:b=e?e<<1:f+10|0;if(f>>>0<=b>>>0)break T;while(1){if((b|0)<0){J[q+16>>2]=5424;p=0;Cc(0,0,0,0,0,2,2,3,5424,0,0,0,32863,q+16|0);break O}b=b<<1;if(f>>>0>b>>>0)continue;break}break T;case 4:if(M[k+4>>2]<4096){b=f;break R}b=e;while(1){b=b<<1;if(f>>>0<=b>>>0)break T;if((b|0)>=0)continue;break}Ew(5424);p=0;break O; -case 1:break S;default:break U}b=f+10|0}if((r|0)!=3)break R;f=J[k+16>>2];if(!f)break R;r=J[k>>2];e=r-f|0;if(e>>>0>b>>>0){Zc(f,r,J[k+4>>2]);f=J[k+16>>2];J[k>>2]=f;H[f+J[k+4>>2]|0]=0;break Q}f=gc[J[659452]](f,b+e|0)|0;if(!f){Ew(5424);p=0;break O}J[k+16>>2]=f;J[k>>2]=e+f;break Q}b=f+10|0}V:{W:{f=J[k>>2];X:{if(!f){e=gc[J[659450]](b)|0;break X}if(e-J[k+4>>2]>>>0>99)break W;e=gc[J[659452]](f,b)|0}if(e)break V;break P}e=gc[J[659450]](b)|0;if(!e)break P;f=tc(e,J[k>>2],J[k+4>>2]);gc[J[659451]](J[k>>2]);H[J[k+ -4>>2]+f|0]=0}J[k>>2]=e}J[k+8>>2]=b;break O}J[q>>2]=5424;p=0;Cc(0,0,0,0,0,2,2,3,5424,0,0,0,32863,q)}bc=q+32|0;if(!p)break N;b=J[k+4>>2]}Zc(J[k>>2]+b|0,s,n);b=J[k+4>>2]+n|0;J[k+4>>2]=b;H[b+J[k>>2]|0]=0;break M}Ew(5424)}Y:{if((m|0)<101){m=m+1|0;break Y}Z:{if(J[a+292>>2])break Z;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break Z;Hd(a)}m=0;if(J[a+172>>2]==-1)break D}b=J[a+36>>2];f=J[b+16>>2];_:{if(K[f|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break _}J[b+32>>2]=J[b+32>>2]+1}e=b;b=f+J[j+140>>2]|0; -J[e+16>>2]=b;if(K[b|0]==37)Od(a);e=Ff(a,j+140|0);if(!e){$:{if(J[a+292>>2])break $;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break $;Hd(a)}if(J[a+172>>2]==-1)break D;m=0;e=Ff(a,j+140|0)}if(J[a+36>>2]==(o|0))continue;break}}if((e|0)<256)break J;s=e-65536|0;f=e-57344|0}if(s>>>0<1048576|e>>>0<55296)break F;if(f>>>0>=8190)break H;break F}if((e|0)>31)break F}if(e>>>0>13)break H;if(1<>2]=J[k>>2];J[k>>2]=0}OB(k);break A}co(a,104,32300,J[g+8>> -2])}e=J[g+40>>2];b=J[a+248>>2];J[a+248>>2]=b+1;if(e)break l;J[a+248>>2]=b;break g}aa:{if(J[j+136>>2]==1){H[h+l|0]=e;h=h+1|0;break aa}h=Pi(h+l|0,e)+h|0}i=J[j+136>>2]+b|0;if(h+100>>>0<=c>>>0)break g;f=0;b=(c<<1)+100|0;if(c>>>0>b>>>0)break d;g=gc[J[659452]](l,b)|0;if(!g)break d;break f}Nf(a,38,31794,g);break k}f=yt(a,e,xk(e),d);J[a+248>>2]=J[a+248>>2]-1;if(!f)break g;b=f;e=K[b|0];if(e)while(1){H[h+l|0]=e;e=h+1|0;ba:{if(h+101>>>0<=c>>>0){h=l;break ba}if(Vj(a,e,g,0))break c;h=c;c=(c<<1)+100|0;if(h>>>0> -c>>>0)break d;h=gc[J[659452]](l,c)|0;if(!h)break d}l=h;h=e;b=b+1|0;e=K[b|0];if(e)continue;break}gc[J[659451]](f);break g}gc[J[659451]](g)}b=J[a+388>>2];if((b|0)==1|(b|0)==89)break b;Vj(a,0,e,0);if(!e)break g;J[a+440>>2]=J[a+440>>2]+(J[e+72>>2]/2|0);b=J[e+40>>2];if(J[e+48>>2]==6){if(b){h=Pi(h+l|0,K[b|0])+h|0;if(h+100>>>0<=c>>>0)break g;f=0;b=(c<<1)+100|0;if(c>>>0>b>>>0)break d;g=gc[J[659452]](l,b)|0;if(g)break f;break d}fe(a,1,30857);break g}if(b){J[a+248>>2]=J[a+248>>2]+1;f=yt(a,b,xk(b),d);J[a+248>> -2]=J[a+248>>2]-1;b=J[a+388>>2];if((b|0)==1|(b|0)==89)break c;if(!f)break g;g=f;b=K[f|0];if(b)while(1){H[h+l|0]=b;b=h+1|0;ca:{if(h+101>>>0<=c>>>0){h=l;break ca}if(Vj(a,b,e,0))break c;h=c;c=(c<<1)+100|0;if(h>>>0>c>>>0)break d;h=gc[J[659452]](l,c)|0;if(!h)break d}l=h;h=b;g=g+1|0;b=K[g|0];if(b)continue;break}gc[J[659451]](f);break g}k=xk(J[e+8>>2]);e=J[e+8>>2];H[h+l|0]=38;h=h+1|0;da:{if((k+h|0)+100>>>0<=c>>>0){b=c;g=l;break da}f=0;b=(k+(c<<1)|0)+100|0;if(c>>>0>b>>>0)break d;g=gc[J[659452]](l,b)|0;if(!g)break d}ea:{if((k| -0)<=0)break ea;c=0;l=k;f=k&3;if(f)while(1){H[g+h|0]=K[e|0];l=l-1|0;h=h+1|0;e=e+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}if(k>>>0<4)break ea;while(1){c=g+h|0;H[c|0]=K[e|0];H[c+1|0]=K[e+1|0];H[c+2|0]=K[e+2|0];H[c+3|0]=K[e+3|0];h=h+4|0;e=e+4|0;c=l-5|0;l=l-4|0;if(c>>>0<4294967294)continue;break}}H[g+h|0]=59;h=h+1|0;break f}fa:{ga:{ha:{if(e>>>0<=255){if(e>>>0>31)break ha;if(e>>>0>13)break ga;if(1<>>0>55295&e-57344>>>0>8189&e-65536>>>0>1048575)break ga}if(!f)break fa}fl(a, -9,36215,e);break h}h=Pi(h+l|0,e)+h|0}if(h+100>>>0<=c>>>0)break g;f=0;b=(c<<1)+100|0;if(c>>>0>b>>>0)break d;g=gc[J[659452]](l,b)|0;if(!g)break d;break f}b=c;g=l}e=0;if(i>>>0>>0)e=hm(a,i,j+136|0);c=!e;if(c|c)break e;l=g;c=b;b=i;if(e)continue;break}}H[g+h|0]=0;break a}ke(a,0)}if(!f)break b;gc[J[659451]](f)}g=0;if(!l)break a;gc[J[659451]](l)}bc=j+144|0;return g}function yG(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;c=bc-112|0;bc=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!K[b+89|0]){a=Kc(c+72| -0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;break b}if(!(J[b+92>>2]&24)){a=Kc(c+72|0,2395523,2373496,1714,2401866,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;break b}k=a;a=rc(44);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2389016;J[a+4>>2]=0;d=a+16|0;J[d>>2]=0;J[d+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[695492]=0;aa(5080,d|0,2389416)|0;d=J[695492];J[695492]=0;if((d|0)==1){b=Z()|0;vc(a+12|0); -vc(a+8|0);qc(ed(a));ba(b|0);B()}J[k>>2]=0;md(k,a);J[695492]=0;_(5150,a|0);a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;vc(k);ba(a|0);B()}k:switch(J[b+56>>2]-3|0){case 0:case 1:a=J[b+48>>2];J[695492]=0;da(5271,c+32|0,a|0);a=J[695492];J[695492]=0;if((a|0)!=1){l:{h=J[c+40>>2];if(h){j=c+80|0;while(1){J[695492]=0;d=$(4,60)|0;a=J[695492];J[695492]=0;m:{n:{o:{p:{q:{r:{s:{t:{if((a|0)==1)break t;a=J[h+8>>2];J[695492]=0;a=aa(5281,d|0,a|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break s;J[695492]=0;J[c+24>>2]= -0;aa(4985,c+24|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break t;J[695492]=0;a=c+72|0;ca(5229,a|0,b|0,J[c+24>>2]+36|0);d=J[695492];J[695492]=0;if((d|0)==1)break r;d=J[J[b>>2]+84>>2];J[695492]=0;ia(d|0,c+16|0,b|0,a|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break q;J[c+96>>2]=2381060;J[c+72>>2]=2381028;a=J[c+100>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)gc[J[J[a>>2]+4>>2]](a);J[c+100>>2]=0}J[c+88>>2]=2381060;a=J[c+92>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)gc[J[J[a>>2]+4>>2]](a);J[c+92>>2]= -0}sc(j);J[695492]=0;J[c+72>>2]=0;a=J[J[c+16>>2]+148>>2];d=J[695492];J[695492]=0;if((d|0)==1)break g;if(!(a&128))break n;J[695492]=0;a=c+68|0;ia(5282,a|0,J[c+16>>2],0,1);d=J[695492];J[695492]=0;if((d|0)==1)break p;J[695492]=0;aa(4993,c+72|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break o;a=J[c+68>>2];J[c+68>>2]=0;if(!a)break m;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(d)break m;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;break m}a= -Z()|0;break d}a=Z()|0;qc(d);break d}a=Z()|0;break e}a=Z()|0;ud(c+72|0);break e}a=Z()|0;break f}a=Z()|0;vc(c+68|0);break f}u:{v:{d=J[c+16>>2];a=J[d+108>>2];if(a){J[695492]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break v;a=J[d+108>>2]}else a=0;J[695492]=0;J[c+68>>2]=a;aa(4993,c+72|0,c+68|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break u;a=J[c+68>>2];J[c+68>>2]=0;if(!a)break m;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)!=1){if(d)break m;J[695492]=0;_(4987, -a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m}break a}a=Z()|0;break f}a=Z()|0;vc(c+68|0);break f}d=J[k>>2];a=J[c+72>>2];if(a){J[695492]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[c+72>>2]}else a=0;J[695492]=0;J[c+64>>2]=a;ia(5283,d|0,c+24|0,c- -64|0,-1);a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[c+64>>2];J[c+64>>2]=0;w:{if(!a)break w;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(d)break w;J[695492]=0;_(4987,a|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break a}a=J[c+72>>2];J[c+72>>2]=0;x:{if(!a)break x;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(d)break x;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[c+16>>2];J[c+16>>2]=0;y:{if(!a)break y;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(d)break y;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[c+24>>2];J[c+24>>2]=0;z:{if(!a)break z;J[695492]= -0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(d)break z;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}h=J[h>>2];if(h)continue;break}}$c(c+32|0);break h}a=Z()|0;vc(c- -64|0);break f}a=Z()|0;break c;case 2:break i;default:break k}J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[695492]=0;g=aa(5080,c+32|0,2401340)|0;a=J[695492];J[695492]=0;A:{B:{C:{D:{if((a|0)!=1){d=b+61|0;j=b+60|0;if(!J[b+84>>2])break D; -i=c+80|0;E:{F:{G:{H:{I:{J:{K:{L:{while(1){a=J[b+112>>2];J[695492]=0;e=J[a+68>>2];a=J[a- -64>>2];f=J[695492];J[695492]=0;if((f|0)==1)break F;if(((e-a|0)+1|0)<=(h|0))break C;a=J[b+112>>2];J[695492]=0;e=c+72|0;ca(5248,e|0,a|0,h|0);a=J[695492];J[695492]=0;M:{N:{O:{P:{Q:{if((a|0)!=1){a=J[J[b>>2]+84>>2];J[695492]=0;ia(a|0,c+68|0,b|0,e|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break Q;J[c+96>>2]=2381060;J[c+72>>2]=2381028;a=J[c+100>>2];if(a){e=J[a+4>>2]-1|0;J[a+4>>2]=e;if(!e)gc[J[J[a>>2]+4>>2]](a);J[c+100>> -2]=0}J[c+88>>2]=2381060;a=J[c+92>>2];if(a){e=J[a+4>>2]-1|0;J[a+4>>2]=e;if(!e)gc[J[J[a>>2]+4>>2]](a);J[c+92>>2]=0}sc(i);e=J[k>>2];R:{if(K[j|0])break R;J[695492]=0;a=J[J[c+68>>2]+148>>2];f=J[695492];J[695492]=0;if((f|0)==1)break P;S:{if(a&4096){H[d|0]=1;a=j;break S}J[695492]=0;f=J[J[c+68>>2]+148>>2];a=J[695492];J[695492]=0;if((a|0)==1)break P;a=d;if(!(f&2048))break R}H[a|0]=1}J[695492]=0;ia(5285,c+68|0,1,e|0,g|0);a=J[695492];J[695492]=0;if((a|0)==1)break P;a=J[c+68>>2];J[c+68>>2]=0;if(!a)break N;J[695492]= -0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break N;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break N}break a}a=ea(2411712)|0;e=cc;break O}a=ea(2411712)|0;e=cc;ud(c+72|0);break O}a=ea(2411712)|0;e=cc;vc(c+68|0)}if((sa(2411712)|0)!=(e|0))break E;a=na(a|0)|0;J[695492]=0;e=pa(5213)|0;f=J[695492];J[695492]=0;if((f|0)==1)break M;J[695492]=0;a=J[a+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break L;J[695492]=0;a=aa(4989,c+24|0,(a?a:2377794)|0)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break L;f=J[J[e>>2]+20>>2];J[695492]=0;ga(f|0,e|0,b|0,a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break K;sc(a);J[695492]=0;a=aa(4989,c+16|0,h+2395759|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break J;J[695492]=0;e=pa(5213)|0;f=J[695492];J[695492]=0;if((f|0)==1)break I;f=J[J[e>>2]+20>>2];J[695492]=0;ga(f|0,e|0,b|0,a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break I;sc(a);J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break G}h=h+1|0;continue}break}b=ea(0)|0;break H}b=ea(0)|0; -break H}b=ea(0)|0;sc(a);break H}b=ea(0)|0;break H}b=ea(0)|0;sc(a)}na(b|0)|0;J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break j;a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break E}break a}a=Z()|0;Bd(g);break c}a=Z()|0}Bd(g);break c}a=Z()|0;break c}e=c+80|0;T:{U:{while(1){a=J[b+112>>2];J[695492]=0;i=J[a+68>>2];a=J[a- -64>>2];f=J[695492];J[695492]=0;if((f|0)==1)break B;if(((i-a|0)+1|0)<=(h|0))break C;a=J[b+112>> -2];J[695492]=0;i=c+72|0;ca(5248,i|0,a|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1){a=J[J[b>>2]+84>>2];J[695492]=0;ia(a|0,c+24|0,b|0,i|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break U;J[c+96>>2]=2381060;J[c+72>>2]=2381028;a=J[c+100>>2];if(a){i=J[a+4>>2]-1|0;J[a+4>>2]=i;if(!i)gc[J[J[a>>2]+4>>2]](a);J[c+100>>2]=0}J[c+88>>2]=2381060;a=J[c+92>>2];if(a){i=J[a+4>>2]-1|0;J[a+4>>2]=i;if(!i)gc[J[J[a>>2]+4>>2]](a);J[c+92>>2]=0}sc(e);i=J[k>>2];V:{if(K[j|0])break V;J[695492]=0;a=J[J[c+24>>2]+148>>2];f=J[695492]; -J[695492]=0;if((f|0)==1)break T;W:{if(a&4096){H[d|0]=1;a=j;break W}J[695492]=0;f=J[J[c+24>>2]+148>>2];a=J[695492];J[695492]=0;if((a|0)==1)break T;a=d;if(!(f&2048))break V}H[a|0]=1}J[695492]=0;ia(5285,c+24|0,1,i|0,g|0);a=J[695492];J[695492]=0;if((a|0)==1)break T;a=J[c+24>>2];J[c+24>>2]=0;X:{if(!a)break X;J[695492]=0;i=J[a+4>>2]-1|0;J[a+4>>2]=i;f=J[695492];J[695492]=0;if((f|0)==1)break A;if(i)break X;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break A}h=h+1|0;continue}break}a=Z()|0; -Bd(g);break c}a=Z()|0;ud(c+72|0);Bd(g);break c}a=Z()|0;vc(c+24|0);Bd(g);break c}Bd(g);break h}a=Z()|0;Bd(g);break c}ea(0)|0;yc()}B()}J[c+96>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[695492]=0;d=aa(5080,c+72|0,2401340)|0;a=J[695492];J[695492]=0;Y:{Z:{if((a|0)!=1){J[695492]=0;ia(5222,c+32|0,b|0,0,0);a=J[695492];J[695492]=0;if((a|0)==1)break Z;j=J[k>>2];_:{if(K[b+60|0])break _;J[695492]=0;h=J[J[c+32>>2]+148>>2];a=J[695492];J[695492]=0;if((a|0)==1)break Y;a= -b+61|0;$:{if(h&4096){H[b+61|0]=1;a=b+60|0;break $}J[695492]=0;h=J[J[c+32>>2]+148>>2];g=J[695492];J[695492]=0;if((g|0)==1)break Y;if(!(h&2048))break _}H[a|0]=1}J[695492]=0;ia(5285,c+32|0,1,j|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break Y;a=J[c+32>>2];J[c+32>>2]=0;aa:{if(!a)break aa;J[695492]=0;j=J[a+4>>2]-1|0;J[a+4>>2]=j;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(j)break aa;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}Bd(d);break h}a=Z()|0;break c}a=Z()|0;Bd(d);break c}a= -Z()|0;vc(c+32|0);Bd(d);break c}ba:{a=J[b+52>>2];if(!a)break ba;d=J[k>>2];J[695492]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;ca:{if((a|0)!=1){a=J[b+52>>2];J[695492]=0;J[c+12>>2]=a;da(5286,d|0,c+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break ca;a=J[c+12>>2];J[c+12>>2]=0;if(!a)break ba;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break ba;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break ba}break a}a=Z()|0;break c}a=Z()|0;vc(c+12|0);break c}bc= -c+112|0;return}a=Z()|0}vc(c+72|0);vc(c+16|0)}vc(c+24|0)}$c(c+32|0)}vc(k);ba(a|0);B()}b=Z()|0;Fc(a);ba(b|0);B()}ea(0)|0;yc();B()}function zc(a){a=a|0;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;l=bc-16|0;bc=l;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(a>>>0<=244){g=J[695368];h=a>>>0<11?16:a+11&-8;c=h>>>3|0;b=g>>>c|0;if(b&3){c=c+((b^-1)&1)|0;a=c<<3;b=a+2781512|0;d=J[a+2781520>>2];a=J[d+8>>2];j:{if((b|0)==(a|0)){m=2781472,n=Hzb(-2,c)&g,J[m>>2]=n;break j}J[a+12>>2]=b;J[b+8>>2]=a}a=d+8|0;b=c<<3;J[d+4>> -2]=b|3;b=b+d|0;J[b+4>>2]=J[b+4>>2]|1;break a}k=J[695370];if(k>>>0>=h>>>0)break i;if(b){a=2<>2];a=J[e+8>>2];k:{if((b|0)==(a|0)){g=Hzb(-2,d)&g;J[695368]=g;break k}J[a+12>>2]=b;J[b+8>>2]=a}J[e+4>>2]=h|3;c=e+h|0;a=d<<3;d=a-h|0;J[c+4>>2]=d|1;J[a+e>>2]=d;if(k){b=(k&-8)+2781512|0;f=J[695373];a=1<<(k>>>3);l:{if(!(a&g)){J[695368]=a|g;a=b;break l}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a}a=e+8|0;J[695373]=c;J[695370]=d;break a}j= -J[695369];if(!j)break i;c=J[(Czb(j)<<2)+2781776>>2];e=(J[c+4>>2]&-8)-h|0;b=c;while(1){m:{a=J[b+16>>2];if(!a){a=J[b+20>>2];if(!a)break m}b=(J[a+4>>2]&-8)-h|0;d=b>>>0>>0;e=d?b:e;c=d?a:c;b=a;continue}break}i=J[c+24>>2];d=J[c+12>>2];if((d|0)!=(c|0)){a=J[c+8>>2];J[a+12>>2]=d;J[d+8>>2]=a;break b}b=c+20|0;a=J[b>>2];if(!a){a=J[c+16>>2];if(!a)break h;b=c+16|0}while(1){f=b;d=a;b=a+20|0;a=J[b>>2];if(a)continue;b=d+16|0;a=J[d+16>>2];if(a)continue;break}J[f>>2]=0;break b}h=-1;if(a>>>0>4294967231)break i;a= -a+11|0;h=a&-8;j=J[695369];if(!j)break i;e=0-h|0;g=0;n:{if(h>>>0<256)break n;g=31;if(h>>>0>16777215)break n;a=S(a>>>8|0);g=((h>>>38-a&1)-(a<<1)|0)+62|0}b=J[(g<<2)+2781776>>2];o:{p:{q:{if(!b){a=0;break q}a=0;c=h<<((g|0)!=31?25-(g>>>1|0)|0:0);while(1){r:{f=(J[b+4>>2]&-8)-h|0;if(f>>>0>=e>>>0)break r;d=b;e=f;if(e)break r;e=0;a=b;break p}f=J[b+20>>2];b=J[((c>>>29&4)+b|0)+16>>2];a=f?(f|0)==(b|0)?a:f:a;c=c<<1;if(b)continue;break}}if(!(a|d)){d=0;a=2<>2]}if(!a)break o}while(1){b= -(J[a+4>>2]&-8)-h|0;c=b>>>0>>0;e=c?b:e;d=c?a:d;b=J[a+16>>2];if(b)a=b;else a=J[a+20>>2];if(a)continue;break}}if(!d|J[695370]-h>>>0<=e>>>0)break i;g=J[d+24>>2];c=J[d+12>>2];if((d|0)!=(c|0)){a=J[d+8>>2];J[a+12>>2]=c;J[c+8>>2]=a;break c}b=d+20|0;a=J[b>>2];if(!a){a=J[d+16>>2];if(!a)break g;b=d+16|0}while(1){f=b;c=a;b=a+20|0;a=J[b>>2];if(a)continue;b=c+16|0;a=J[c+16>>2];if(a)continue;break}J[f>>2]=0;break c}a=J[695370];if(a>>>0>=h>>>0){d=J[695373];b=a-h|0;s:{if(b>>>0>=16){c=d+h|0;J[c+4>>2]=b|1;J[a+d>> -2]=b;J[d+4>>2]=h|3;break s}J[d+4>>2]=a|3;a=a+d|0;J[a+4>>2]=J[a+4>>2]|1;c=0;b=0}J[695370]=b;J[695373]=c;a=d+8|0;break a}i=J[695371];if(i>>>0>h>>>0){b=i-h|0;J[695371]=b;c=J[695374];a=c+h|0;J[695374]=a;J[a+4>>2]=b|1;J[c+4>>2]=h|3;a=c+8|0;break a}a=0;e=h+47|0;if(J[695486])c=J[695488];else{J[695489]=-1;J[695490]=-1;J[695487]=4096;J[695488]=4096;J[695486]=l+12&-16^1431655768;J[695491]=0;J[695479]=0;c=4096}g=e+c|0;f=0-c|0;b=g&f;if(b>>>0<=h>>>0)break a;d=J[695478];if(d){c=J[695476];j=c+b|0;if(d>>>0>>0| -c>>>0>=j>>>0)break a}t:{if(!(K[2781916]&4)){u:{v:{w:{x:{d=J[695374];if(d){a=2781920;while(1){c=J[a>>2];if(c>>>0<=d>>>0&d>>>0>2]>>>0)break x;a=J[a+8>>2];if(a)continue;break}}c=is(0);if((c|0)==-1)break u;g=b;d=J[695487];a=d-1|0;if(a&c)g=(b-c|0)+(a+c&0-d)|0;if(g>>>0<=h>>>0)break u;d=J[695478];if(d){a=J[695476];f=a+g|0;if(d>>>0>>0|a>>>0>=f>>>0)break u}a=is(g);if((c|0)!=(a|0))break w;break t}g=f&g-i;c=is(g);if((c|0)==(J[a>>2]+J[a+4>>2]|0))break v;a=c}if((a|0)==-1)break u;if(h+48>>>0<=g>>>0){c= -a;break t}c=J[695488];c=c+(e-g|0)&0-c;if((is(c)|0)==-1)break u;g=c+g|0;c=a;break t}if((c|0)!=-1)break t}J[695479]=J[695479]|4}c=is(b);a=is(0);if((c|0)==-1|(a|0)==-1|a>>>0<=c>>>0)break d;g=a-c|0;if(g>>>0<=h+40>>>0)break d}a=J[695476]+g|0;J[695476]=a;if(a>>>0>M[695477])J[695477]=a;y:{e=J[695374];if(e){a=2781920;while(1){d=J[a>>2];b=J[a+4>>2];if((d+b|0)==(c|0))break y;a=J[a+8>>2];if(a)continue;break}break f}a=J[695372];if(!(a>>>0<=c>>>0?a:0))J[695372]=c;a=0;J[695481]=g;J[695480]=c;J[695376]=-1;J[695377]= -J[695486];J[695483]=0;while(1){d=a<<3;b=d+2781512|0;J[d+2781520>>2]=b;J[d+2781524>>2]=b;a=a+1|0;if((a|0)!=32)continue;break}d=g-40|0;a=-8-c&7;b=d-a|0;J[695371]=b;a=a+c|0;J[695374]=a;J[a+4>>2]=b|1;J[(c+d|0)+4>>2]=40;J[695375]=J[695490];break e}if(J[a+12>>2]&8|(c>>>0<=e>>>0|d>>>0>e>>>0))break f;J[a+4>>2]=b+g;a=-8-e&7;c=a+e|0;J[695374]=c;b=J[695371]+g|0;a=b-a|0;J[695371]=a;J[c+4>>2]=a|1;J[(b+e|0)+4>>2]=40;J[695375]=J[695490];break e}d=0;break b}c=0;break c}if(M[695372]>c>>>0)J[695372]=c;b=c+g|0;a=2781920; -z:{A:{B:{while(1){if((b|0)!=J[a>>2]){a=J[a+8>>2];if(a)continue;break B}break}if(!(K[a+12|0]&8))break A}a=2781920;while(1){C:{b=J[a>>2];if(b>>>0<=e>>>0){f=b+J[a+4>>2]|0;if(f>>>0>e>>>0)break C}a=J[a+8>>2];continue}break}d=g-40|0;a=-8-c&7;b=d-a|0;J[695371]=b;a=a+c|0;J[695374]=a;J[a+4>>2]=b|1;J[(c+d|0)+4>>2]=40;J[695375]=J[695490];a=(f+(39-f&7)|0)-47|0;d=a>>>0>>0?e:a;J[d+4>>2]=27;a=J[695483];J[d+16>>2]=J[695482];J[d+20>>2]=a;a=J[695481];J[d+8>>2]=J[695480];J[d+12>>2]=a;J[695482]=d+8;J[695481]=g; -J[695480]=c;J[695483]=0;a=d+24|0;while(1){J[a+4>>2]=7;b=a+8|0;a=a+4|0;if(b>>>0>>0)continue;break}if((d|0)==(e|0))break e;J[d+4>>2]=J[d+4>>2]&-2;f=d-e|0;J[e+4>>2]=f|1;J[d>>2]=f;if(f>>>0<=255){b=(f&-8)+2781512|0;c=J[695368];a=1<<(f>>>3);D:{if(!(c&a)){J[695368]=a|c;a=b;break D}a=J[b+8>>2]}J[b+8>>2]=e;J[a+12>>2]=e;J[e+12>>2]=b;J[e+8>>2]=a;break e}a=31;if(f>>>0<=16777215){a=S(f>>>8|0);a=((f>>>38-a&1)-(a<<1)|0)+62|0}J[e+28>>2]=a;J[e+16>>2]=0;J[e+20>>2]=0;b=(a<<2)+2781776|0;d=J[695369];c=1<>2]=e;break E}a=f<<((a|0)!=31?25-(a>>>1|0)|0:0);d=J[b>>2];while(1){b=d;if((f|0)==(J[b+4>>2]&-8))break z;c=a>>>29|0;a=a<<1;c=(c&4)+b|0;d=J[c+16>>2];if(d)continue;break}J[c+16>>2]=e}J[e+24>>2]=b;J[e+12>>2]=e;J[e+8>>2]=e;break e}J[a>>2]=c;J[a+4>>2]=J[a+4>>2]+g;j=(-8-c&7)+c|0;J[j+4>>2]=h|3;e=b+(-8-b&7)|0;i=h+j|0;g=e-i|0;F:{if(J[695374]==(e|0)){J[695374]=i;a=J[695371]+g|0;J[695371]=a;J[i+4>>2]=a|1;break F}if(J[695373]==(e|0)){J[695373]=i;a=J[695370]+g|0;J[695370]=a;J[i+4>>2]=a|1; -J[a+i>>2]=a;break F}c=J[e+4>>2];if((c&3)==1){f=c&-8;G:{if(c>>>0<=255){b=J[e+12>>2];a=J[e+8>>2];if((b|0)==(a|0)){m=2781472,n=J[695368]&Hzb(-2,c>>>3|0),J[m>>2]=n;break G}J[a+12>>2]=b;J[b+8>>2]=a;break G}h=J[e+24>>2];a=J[e+12>>2];H:{if((e|0)!=(a|0)){b=J[e+8>>2];J[b+12>>2]=a;J[a+8>>2]=b;break H}I:{b=e+20|0;c=J[b>>2];if(!c){c=J[e+16>>2];if(!c)break I;b=e+16|0}while(1){d=b;a=c;b=a+20|0;c=J[b>>2];if(c)continue;b=a+16|0;c=J[a+16>>2];if(c)continue;break}J[d>>2]=0;break H}a=0}if(!h)break G;c=J[e+28>>2];b=(c<< -2)+2781776|0;J:{if(J[b>>2]==(e|0)){J[b>>2]=a;if(a)break J;m=2781476,n=J[695369]&Hzb(-2,c),J[m>>2]=n;break G}J[h+(J[h+16>>2]==(e|0)?16:20)>>2]=a;if(!a)break G}J[a+24>>2]=h;b=J[e+16>>2];if(b){J[a+16>>2]=b;J[b+24>>2]=a}b=J[e+20>>2];if(!b)break G;J[a+20>>2]=b;J[b+24>>2]=a}g=f+g|0;e=e+f|0;c=J[e+4>>2]}J[e+4>>2]=c&-2;J[i+4>>2]=g|1;J[g+i>>2]=g;if(g>>>0<=255){b=(g&-8)+2781512|0;c=J[695368];a=1<<(g>>>3);K:{if(!(c&a)){J[695368]=a|c;a=b;break K}a=J[b+8>>2]}J[b+8>>2]=i;J[a+12>>2]=i;J[i+12>>2]=b;J[i+8>>2]=a;break F}c= -31;if(g>>>0<=16777215){a=S(g>>>8|0);c=((g>>>38-a&1)-(a<<1)|0)+62|0}J[i+28>>2]=c;J[i+16>>2]=0;J[i+20>>2]=0;b=(c<<2)+2781776|0;L:{d=J[695369];a=1<>2]=i;break M}c=g<<((c|0)!=31?25-(c>>>1|0)|0:0);a=J[b>>2];while(1){b=a;if((J[a+4>>2]&-8)==(g|0))break L;d=c>>>29|0;c=c<<1;d=(d&4)+a|0;a=J[d+16>>2];if(a)continue;break}J[d+16>>2]=i}J[i+24>>2]=b;J[i+12>>2]=i;J[i+8>>2]=i;break F}a=J[b+8>>2];J[a+12>>2]=i;J[b+8>>2]=i;J[i+24>>2]=0;J[i+12>>2]=b;J[i+8>>2]=a}a=j+8|0;break a}a=J[b+ -8>>2];J[a+12>>2]=e;J[b+8>>2]=e;J[e+24>>2]=0;J[e+12>>2]=b;J[e+8>>2]=a}a=J[695371];if(a>>>0<=h>>>0)break d;b=a-h|0;J[695371]=b;c=J[695374];a=c+h|0;J[695374]=a;J[a+4>>2]=b|1;J[c+4>>2]=h|3;a=c+8|0;break a}J[694731]=48;a=0;break a}N:{if(!g)break N;b=J[d+28>>2];a=(b<<2)+2781776|0;O:{if(J[a>>2]==(d|0)){J[a>>2]=c;if(c)break O;j=Hzb(-2,b)&j;J[695369]=j;break N}J[g+(J[g+16>>2]==(d|0)?16:20)>>2]=c;if(!c)break N}J[c+24>>2]=g;a=J[d+16>>2];if(a){J[c+16>>2]=a;J[a+24>>2]=c}a=J[d+20>>2];if(!a)break N;J[c+20>>2]=a; -J[a+24>>2]=c}P:{if(e>>>0<=15){a=e+h|0;J[d+4>>2]=a|3;a=a+d|0;J[a+4>>2]=J[a+4>>2]|1;break P}J[d+4>>2]=h|3;f=d+h|0;J[f+4>>2]=e|1;J[e+f>>2]=e;if(e>>>0<=255){b=(e&-8)+2781512|0;c=J[695368];a=1<<(e>>>3);Q:{if(!(c&a)){J[695368]=a|c;a=b;break Q}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a;break P}a=31;if(e>>>0<=16777215){a=S(e>>>8|0);a=((e>>>38-a&1)-(a<<1)|0)+62|0}J[f+28>>2]=a;J[f+16>>2]=0;J[f+20>>2]=0;b=(a<<2)+2781776|0;R:{c=1<>2]=f;break S}a=e<<((a|0)!= -31?25-(a>>>1|0)|0:0);h=J[b>>2];while(1){b=h;if((J[b+4>>2]&-8)==(e|0))break R;c=a>>>29|0;a=a<<1;c=(c&4)+b|0;h=J[c+16>>2];if(h)continue;break}J[c+16>>2]=f}J[f+24>>2]=b;J[f+12>>2]=f;J[f+8>>2]=f;break P}a=J[b+8>>2];J[a+12>>2]=f;J[b+8>>2]=f;J[f+24>>2]=0;J[f+12>>2]=b;J[f+8>>2]=a}a=d+8|0;break a}T:{if(!i)break T;b=J[c+28>>2];a=(b<<2)+2781776|0;U:{if(J[a>>2]==(c|0)){J[a>>2]=d;if(d)break U;m=2781476,n=Hzb(-2,b)&j,J[m>>2]=n;break T}J[i+(J[i+16>>2]==(c|0)?16:20)>>2]=d;if(!d)break T}J[d+24>>2]=i;a=J[c+16>>2]; -if(a){J[d+16>>2]=a;J[a+24>>2]=d}a=J[c+20>>2];if(!a)break T;J[d+20>>2]=a;J[a+24>>2]=d}V:{if(e>>>0<=15){a=e+h|0;J[c+4>>2]=a|3;a=a+c|0;J[a+4>>2]=J[a+4>>2]|1;break V}J[c+4>>2]=h|3;d=c+h|0;J[d+4>>2]=e|1;J[d+e>>2]=e;if(k){b=(k&-8)+2781512|0;f=J[695373];a=1<<(k>>>3);W:{if(!(a&g)){J[695368]=a|g;a=b;break W}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a}J[695373]=d;J[695370]=e}a=c+8|0}bc=l+16|0;return a|0}function veb(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;h=bc-256|0;bc=h;a:{if(!b){e=36;break a}i=J[a+4>>2];if(!i){e=35;break a}if(!(J[J[i+128>>2]+52>>2]|M[i+16>>2]>c>>>0)){e=6;break a}if(d&2){d=K[i+9|0]&32?d&-3:d;d=d>>>14&2|d}if(d&1025)d=(K[i+9|0]&32?9:11)|d;o=d&2;J[b+44>>2]=(o?12:48)+b;b:{if(d&8)break b;e=J[b+116>>2];if(K[i+9|0]&128|(L[i+6>>1]&32767|(e|0)==-1))break b;f=J[b+20>>2];j=J[b+16>>2];c:{k=h+12|0;e=gc[J[J[i+540>>2]+72>>2]](i,e,c,d,J[i+104>>2],a+76|0,k)|0;if(e){i=J[a+4>>2];g=J[i+8>>2]&1;if((e&255)!=157)break c; -if(g)break b;I[h+12>>1]=0;I[h+240>>1]=0;I[h+224>>1]=0;I[h+10>>1]=0;if(!J[i+752>>2])break a;gc[J[J[i+540>>2]+140>>2]](i,0,c,k,h+224|0);b=h+240|0;d=h+10|0;d:{if(K[i+292|0]){gc[J[J[i+540>>2]+140>>2]](i,1,c,b,d);break d}if(L[i+372>>1]!=65535){I[b>>1]=L[i+442>>1];c=I[i+442>>1]-I[i+444>>1]|0;b=c>>31;I[d>>1]=(b^c)-b;break d}I[b>>1]=L[i+220>>1];c=I[i+220>>1]-I[i+222>>1]|0;b=c>>31;I[d>>1]=(b^c)-b}J[a+108>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;b=Pc(I[h+12>>1],j);J[a+36>>2]=0;J[a+32>>2]=b;b=Pc(L[h+224>>1],j);J[a+44>> -2]=0;J[a+40>>2]=b;t=a,u=Pc(I[h+240>>1],f),J[t+48>>2]=u;b=Pc(L[h+10>>1],f);J[a+100>>2]=0;J[a+104>>2]=0;H[a+94|0]=1;J[a+72>>2]=1651078259;J[a+52>>2]=b;e=0;break a}e=0;J[a+108>>2]=0;J[a+24>>2]=L[h+14>>1]<<6;J[a+28>>2]=L[h+12>>1]<<6;i=I[h+16>>1];J[a+32>>2]=i<<6;g=I[h+18>>1];J[a+36>>2]=g<<6;J[a+40>>2]=L[h+20>>1]<<6;k=I[h+22>>1];J[a+44>>2]=k<<6;m=I[h+24>>1];J[a+48>>2]=m<<6;l=L[h+26>>1];n=g;g=d&16;J[a+104>>2]=g?m:n;J[a+100>>2]=g?k:i;J[a+72>>2]=1651078259;J[a+52>>2]=l<<6;i=J[a+4>>2];if(!(H[i+8|0]&1))break a; -g=J[i+104>>2];wc(h+24|0,0,192);J[h+216>>2]=0;J[h+220>>2]=0;J[h+36>>2]=g;J[h+20>>2]=a;J[h+16>>2]=b;J[h+12>>2]=i;J[h+28>>2]=d;zL(h+12|0,c,0,1);K5(h+216|0,J[J[h+12>>2]+100>>2]);b=J[h+72>>2];J[a+56>>2]=b;J[a+60>>2]=J[h+188>>2];if(!(J[a+40>>2]|!b))t=a,u=Pc(b,j),J[t+40>>2]=u;if(J[a+52>>2])break a;b=J[a+60>>2];if(!b)break a;t=a,u=Pc(b,f),J[t+52>>2]=u;break a}if(!g)break a}s=d&1;if(!(s|K[b+112|0])){e=36;break a}e=6;if(d&16384)break a;r=J[i+104>>2];p=J[i+96>>2];wc(h+12|0,0,212);if(!o){m=(d&128)>>>7|0;e=J[b+ -304>>2];e:{f:{if((e|0)>=0){f=J[b+308>>2];if((f|0)<0)break f;if(e)break a;e=f;if(!f)break e;break a}j=J[b>>2];e=J[j+100>>2];f=J[b+132>>2];if(f)gc[J[e+8>>2]](e,f);J[b+132>>2]=0;f=J[b+144>>2];if(f)gc[J[e+8>>2]](e,f);J[b+144>>2]=0;f=J[b+252>>2];if(f)gc[J[e+8>>2]](e,f);J[b+252>>2]=0;f=J[b+260>>2];if(f)gc[J[e+8>>2]](e,f);J[b+260>>2]=0;f=J[b+300>>2];if(f){J[f+444>>2]=0;g=J[f+8>>2];k=J[f+24>>2];if(k)gc[J[g+8>>2]](g,k);J[f+20>>2]=0;J[f+24>>2]=0;k=J[f+440>>2];if(k)gc[J[g+8>>2]](g,k);J[f+440>>2]=0;J[f+432>> -2]=0;J[f+436>>2]=0;k=J[f+396>>2];if(k)gc[J[g+8>>2]](g,k);J[f+392>>2]=0;J[f+396>>2]=0;J[f>>2]=0;J[f+4>>2]=0;if(f)gc[J[g+8>>2]](g,f)}f=J[b+264>>2];if(f){g=J[b+292>>2];if(g)gc[J[f+8>>2]](f,g);J[b+292>>2]=0;g=J[b+288>>2];if(g)gc[J[f+8>>2]](f,g);J[b+288>>2]=0;g=J[b+280>>2];if(g)gc[J[f+8>>2]](f,g);J[b+280>>2]=0;g=J[b+276>>2];if(g)gc[J[f+8>>2]](f,g);J[b+276>>2]=0;g=J[b+284>>2];if(g)gc[J[f+8>>2]](f,g);J[b+284>>2]=0;J[b+272>>2]=0;J[b+264>>2]=0;J[b+268>>2]=0}J[b+304>>2]=-1;J[b+308>>2]=-1;k=bc-16|0;bc=k;f=J[j+ -96>>2];g:{h:{if(!f)break h;g=J[f+8>>2];f=Zd(g,636,k+8|0);if(J[k+8>>2])break h;J[f+436>>2]=32;J[f+8>>2]=g;t=f,u=Sc(g,16,0,32,0,k+12|0),J[t+440>>2]=u;if(!J[k+12>>2]){J[f+444>>2]=0;J[f+392>>2]=0;J[f+396>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f>>2]=0;J[f+4>>2]=0;break g}J[f+444>>2]=0;g=J[f+8>>2];l=J[f+24>>2];if(l)gc[J[g+8>>2]](g,l);J[f+20>>2]=0;J[f+24>>2]=0;l=J[f+440>>2];if(l)gc[J[g+8>>2]](g,l);J[f+440>>2]=0;J[f+432>>2]=0;J[f+436>>2]=0;l=J[f+396>>2];if(l)gc[J[g+8>>2]](g,l);J[f+392>>2]=0;J[f+396>>2]=0;J[f>> -2]=0;J[f+4>>2]=0;if(f)gc[J[g+8>>2]](g,f);if(!J[k+12>>2])break g}f=0}bc=k+16|0;J[b+300>>2]=f;f=L[j+280>>1];J[b+128>>2]=f;g=L[j+282>>1];J[b+148>>2]=0;J[b+152>>2]=0;J[b+136>>2]=0;J[b+124>>2]=0;J[b+140>>2]=g;J[b+248>>2]=J[j+700>>2];g=L[j+278>>1];H[b+113|0]=0;H[b+114|0]=0;I[b+256>>1]=g;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;g=f;f=h+240|0;t=b,u=Sc(e,24,0,g,0,f),J[t+132>>2]=u;i:{if(J[h+240>>2])break i;t=b,u=Sc(e,24,0,J[b+140>>2],0,f),J[t+144>>2]=u;if(J[h+240>>2])break i;t=b,u=Sc(e,4,0,J[b+ -248>>2],0,f),J[t+252>>2]=u;if(J[h+240>>2])break i;t=b,u=Sc(e,4,0,L[b+256>>1],0,f),J[t+260>>2]=u;if(J[h+240>>2])break i;q=L[j+276>>1]+4|0;k=q&65535;f=bc-16|0;bc=f;J[b+268>>2]=0;J[b+272>>2]=0;J[b+264>>2]=e;J[b+292>>2]=0;J[b+296>>2]=0;J[b+284>>2]=0;J[b+288>>2]=0;J[b+276>>2]=0;J[b+280>>2]=0;l=f+12|0;t=b,u=Sc(e,8,0,k,0,l),J[t+276>>2]=u;j:{k:{g=J[f+12>>2];l:{if(g)break l;t=b,u=Sc(e,8,0,k,0,l),J[t+280>>2]=u;g=J[f+12>>2];if(g)break l;t=b,u=Sc(e,8,0,k,0,l),J[t+284>>2]=u;g=J[f+12>>2];if(g)break l;t=b,u=Sc(e, -1,0,k,0,l),J[t+288>>2]=u;g=J[f+12>>2];if(g)break l;t=b,u=Sc(e,2,0,0,0,l),J[t+292>>2]=u;g=J[f+12>>2];if(!g)break k}e=J[b+264>>2];if(!e)break j;g=J[b+292>>2];if(g)gc[J[e+8>>2]](e,g);J[b+292>>2]=0;g=J[b+288>>2];if(g)gc[J[e+8>>2]](e,g);J[b+288>>2]=0;g=J[b+280>>2];if(g)gc[J[e+8>>2]](e,g);J[b+280>>2]=0;g=J[b+276>>2];if(g)gc[J[e+8>>2]](e,g);J[b+276>>2]=0;g=J[b+284>>2];if(g)gc[J[e+8>>2]](e,g);J[b+264>>2]=0;J[b+268>>2]=0;J[b+284>>2]=0;J[b+272>>2]=0;g=J[f+12>>2];break j}I[b+270>>1]=0;I[b+268>>1]=k;g=0}bc=f+ -16|0;J[h+240>>2]=g;if(g)break i;I[b+272>>1]=q;tc(b+180|0,326772,68);e=J[J[J[j+96>>2]+4>>2]+164>>2];J[j+708>>2]=e?e:1722;e=J[b+300>>2];j=J[b>>2];f=yL(e,j,b);m:{if(f)break m;J[e+484>>2]=0;J[e+488>>2]=0;J[e+480>>2]=64;J[e+16>>2]=0;J[e+432>>2]=0;J[e+568>>2]=16384;H[e+565|0]=m;J[e+220>>2]=0;J[e+224>>2]=0;H[e+492|0]=0;I[e+256>>1]=0;J[e+228>>2]=0;J[e+260>>2]=65536;J[e+264>>2]=0;g=J[j+688>>2];f=J[j+684>>2];J[e+456>>2]=0;J[e+460>>2]=0;J[e+452>>2]=f;J[e+448>>2]=g;J[e+464>>2]=0;J[e+468>>2]=0;n:{if(!f){J[b+304>> -2]=0;break n}J[e+368>>2]=f;J[e+360>>2]=g;J[e+364>>2]=0;J[e+356>>2]=1;f=gc[J[j+708>>2]](e)|0;J[b+304>>2]=f;if(f)break m}J[b+124>>2]=J[e+400>>2];J[b+136>>2]=J[e+412>>2];J[b+148>>2]=J[e+424>>2];J[b+152>>2]=J[e+428>>2];f=J[e+452>>2];J[b+156>>2]=J[e+448>>2];J[b+160>>2]=f;f=J[e+460>>2];J[b+164>>2]=J[e+456>>2];J[b+168>>2]=f;f=J[e+468>>2];J[b+172>>2]=J[e+464>>2];J[b+176>>2]=f;f=0}e=f;break f}q4(b);e=J[h+240>>2]}if(e)break a;e=J[b+308>>2];if((e|0)<0){f=L[b+272>>1];o:{if(!f)break o;j=J[b+280>>2];g=J[b+276>> -2];e=0;if((f|0)!=1){q=f&65534;k=0;while(1){l=e<<3;n=l+g|0;J[n>>2]=0;J[n+4>>2]=0;n=j+l|0;J[n>>2]=0;J[n+4>>2]=0;l=l|8;n=l+g|0;J[n>>2]=0;J[n+4>>2]=0;l=j+l|0;J[l>>2]=0;J[l+4>>2]=0;e=e+2|0;k=k+2|0;if((q|0)!=(k|0))continue;break}}if(!(f&1))break o;e=e<<3;f=e+g|0;J[f>>2]=0;J[f+4>>2]=0;e=e+j|0;J[e>>2]=0;J[e+4>>2]=0}e=L[b+256>>1];if(e)wc(J[b+260>>2],0,e<<2);tc(b+180|0,326772,68);e=p4(b,m)}if(e)break a}f=J[b+300>>2];if(!f){e=153;break a}e=d&983040;p:{if(J[p+64>>2]!=40){j=(e|0)!=131072;g=0;k=0;e=0;break p}k= -(e|0)!=131072;g=k&!(d&458752);j=0;e=d>>>18&1}H[f+614|0]=e;e=yL(f,i,b);if(e)break a;q:{r:{s:{t:{if(J[p+64>>2]==40){e=K[f+613|0]==(k|0);if(!e)H[f+613|0]=k;if(K[f+618|0]!=(g|0))break t;if(K[f+612|0]==(j|0))break s;H[f+612|0]=j;break r}if(K[f+612|0]==(j|0))break q;H[f+612|0]=j;break r}H[f+618|0]=g;if(K[f+612|0]==(j|0))break r;H[f+612|0]=j;break r}if(e)break q}e=p4(b,m);if(e)break a}e=K[f+340|0];j=e<<1&2;if(e&2)tc(f+288|0,326772,68);H[f+565|0]=m;J[h+168>>2]=f;J[h+172>>2]=J[f+396>>2];d=d|j}e=J[J[a+156>> -2]>>2];to(e);J[h+28>>2]=d;J[h+24>>2]=e;J[h+216>>2]=0;J[h+220>>2]=0;J[h+36>>2]=r;J[h+20>>2]=a;J[h+16>>2]=b;J[h+12>>2]=i;J[a+72>>2]=1869968492;J[a+124>>2]=0;J[a+128>>2]=0;e=zL(h+12|0,c,0,0);u:{if(e)break u;d=J[h+24>>2];v:{if(J[a+72>>2]==1668246896){J[a+128>>2]=J[d+48>>2];J[a+132>>2]=J[d+52>>2];break v}i=J[d+24>>2];e=a+108|0;J[e>>2]=J[d+20>>2];J[e+4>>2]=i;J[e+16>>2]=J[d+36>>2];i=J[d+32>>2];J[e+8>>2]=J[d+28>>2];J[e+12>>2]=i;J[a+124>>2]=J[a+124>>2]&-513;d=J[h+80>>2];if(!d)break v;Jh(e,0-d|0,0)}w:{if(o)break w; -d=8;e=J[h+168>>2];x:{if(!K[e+341|0])break x;d=32;y:switch(J[e+344>>2]){case 4:d=48;break x;case 5:d=16;break x;case 1:break w;case 0:break x;default:break y}d=8}J[a+124>>2]=J[a+124>>2]|d}e=J[h+12>>2];f=65536;j=J[h+16>>2];d=J[h+20>>2];f=H[h+28|0]&1?f:J[J[j+44>>2]+8>>2];i=J[e+96>>2];z:{if(J[d+72>>2]!=1668246896){Pp(d+108|0,h+240|0);break z}g=J[h+60>>2];J[h+248>>2]=J[h+56>>2];J[h+252>>2]=g;g=J[h+52>>2];J[h+240>>2]=J[h+48>>2];J[h+244>>2]=g}J[d+56>>2]=J[h+72>>2];l=J[h+240>>2];J[d+32>>2]=l;g=J[h+252>>2]; -J[d+36>>2]=g;J[d+40>>2]=J[h+88>>2]-J[h+80>>2];A:{B:{if(J[i+64>>2]!=40)break B;i=J[h+168>>2];if(!i)break B;if(K[i+615|0])break A}if(J[e+488>>2]|J[h+28>>2]&2097154)break A;o=J[e+776>>2];if(!o)break A;i=0;k=J[e+768>>2];p=k?k+8|0:0;m=J[e+780>>2];r=J[e+784>>2];j=L[J[j+44>>2]>>1];while(1){if((j|0)==K[i+r|0]){j=c+2|0;if(!k|j>>>0>=m>>>0)break A;J[d+40>>2]=K[j+(p+P(i,m)|0)|0]<<6;break A}i=i+1|0;if((o|0)!=(i|0))continue;break}}J[d+24>>2]=J[h+248>>2]-l;i=g-J[h+244>>2]|0;J[d+28>>2]=i;C:{if(!(!K[e+292|0]|!L[e+ -330>>1])){j=td(J[h+196>>2]-g|0,f)<<16>>16;i=0;g=J[h+196>>2];k=J[h+204>>2];if((g|0)<=(k|0))break C;i=td(g-k|0,f)&65535;break C}j=td(i,f);i=L[e+372>>1]==65535;i=I[e+(i?220:442)>>1]-I[e+(i?222:444)>>1]|0;j=(i-(j<<16>>16)|0)/2|0}e=J[J[e+128>>2]+52>>2];D:{if(!e)break D;g=J[J[e>>2]+8>>2];if(!g)break D;J[h+232>>2]=i;J[h+228>>2]=j;J[h+224>>2]=0;e=gc[g|0](J[e+4>>2],c,1,h+224|0)|0;if(e)break u;i=J[h+232>>2];j=J[h+228>>2]}J[d+60>>2]=i;if(!(H[h+28|0]&1)){j=Pc(j,f);i=Pc(i,f)}J[d+52>>2]=i;J[d+48>>2]=j;J[d+44>> -2]=J[d+32>>2]+(J[d+40>>2]/-2|0);e=0}c=h+216|0;if(!(L[J[b+44>>2]+2>>1]>23|s))J[a+124>>2]=J[a+124>>2]|256;K5(c,J[J[h+12>>2]+100>>2])}bc=h+256|0;return e|0}function O4(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;l=bc-16|0;bc=l;c=J[a+1008>>2];d=0;a:{if((c|0)<0)break a;b:{c:{while(1){f=J[a+4>>2];c=(c<<2)+a|0;J[a+72>>2]=P(f,I[c+946>>1]);c=I[c+944>>1];J[a+40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=0;d=J[a+24>>2];J[a+36>>2]=d;I[a+78>>1]=0;J[a+80>>2]=d;e=J[a+28>>2]-32|0;J[a+32>>2]=e;J[a+ -68>>2]=P(c,f);J[d+8>>2]=d;I[a+76>>1]=0;d:{e:{f:{g:{h:{i:{if(I[a+120>>1]<=0)break i;c=J[a+8>>2];k=J[a+132>>2];h=0;o=0;while(1){J[a+88>>2]=0;J[a+92>>2]=0;f=J[a+12>>2];g=J[a+124>>2];h=h&65535;d=g+(h<<3)|0;e=P(f,J[d+4>>2])-c|0;p=P(f,J[d>>2])-c|0;r=o<<1;j=L[r+k>>1];i=g+(j<<3)|0;k=P(f,J[i+4>>2])-c|0;f=P(f,J[i>>2])-c|0;j:{if(!b){m=p;p=e;g=f;f=k;break j}m=e;g=k}e=J[a+128>>2];h=e+h|0;c=K[h|0];if(c&4){H[a+164|0]=c>>>5;c=K[h|0]}k:switch(c&3){case 0:l:{if((K[e+j|0]&3)==1){i=i-8|0;break l}g=(g+m|0)/2|0;f=(f+p| -0)/2|0}p=f;m=g;h=h-1|0;d=d-8|0;break;case 2:break b;default:break k}J[a+64>>2]=p;J[a+60>>2]=m;m:{if(d>>>0>>0)while(1){f=h+1|0;c=d+8|0;n:{o:{p:{q:switch(K[h+1|0]&3){case 1:g=J[d+8>>2];e=d;h=f;d=c;c=J[a+12>>2];f=P(c,J[e+12>>2]);e=J[a+8>>2];f=f-e|0;c=P(c,g)-e|0;if(N4(a,b?f:c,b?c:f))break g;break n;case 0:e=J[a+12>>2];g=J[a+8>>2];k=P(e,J[d+8>>2])-g|0;e=P(e,J[d+12>>2])-g|0;if(b)break p;while(1){if(c>>>0>=i>>>0){c=k;k=e;break o}h=f+1|0;d=c+8|0;j=J[a+12>>2];n=J[a+8>>2];g=P(j,J[c+8>>2])-n|0;j=P(j,J[c+ -12>>2])-n|0;c=K[f+1|0]&3;if(c){if((c|0)!=1)break b;if(!hx(a,k,e,g,j))break n;break g}n=hx(a,k,e,(g+k|0)/2|0,(e+j|0)/2|0);f=h;c=d;k=g;e=j;if(!n)continue;break}break g;default:break q}if((K[h+2|0]&3)!=2|d+16>>>0>i>>>0)break b;n=J[a+12>>2];q=J[a+8>>2];k=P(n,J[d+16>>2])-q|0;e=P(n,J[d+8>>2])-q|0;c=P(n,J[d+20>>2])-q|0;f=P(n,J[d+12>>2])-q|0;r:{if(!b){g=e;e=f;j=k;k=c;break r}g=f;j=c}c=d+24|0;if(c>>>0<=i>>>0){f=e;e=P(n,J[d+28>>2])-q|0;d=P(n,J[d+24>>2])-q|0;if(M4(a,g,f,j,k,b?e:d,b?d:e))break g;h=h+3|0;d=c; -break n}if(M4(a,g,e,j,k,m,p))break g;break m}while(1){if(c>>>0>=i>>>0){c=e;break o}h=f+1|0;d=c+8|0;j=J[a+12>>2];n=J[a+8>>2];g=P(j,J[c+8>>2])-n|0;j=P(j,J[c+12>>2])-n|0;c=K[f+1|0]&3;if(!c){n=hx(a,e,k,(e+j|0)/2|0,(g+k|0)/2|0);f=h;c=d;e=j;k=g;if(n)break g;continue}break}if((c|0)!=1)break b;if(!hx(a,e,k,j,g))break n;break g}if(!hx(a,c,k,m,p))break m;break g}if(d>>>0>>0)continue;break}if(N4(a,m,p))break g}k=J[a+132>>2];h=L[r+k>>1];j=J[a+4>>2];p=j-1|0;d=J[a+64>>2];m=p&d;s:{if(m|(d|0)>2]|(d|0)> -J[a+72>>2])break s;c=J[a+88>>2];if(!c|(L[J[a+80>>2]+12>>1]^L[c+12>>1])&8)break s;J[a+36>>2]=J[a+36>>2]-4}t:{u:{v:{f=J[a+36>>2];g=J[a+80>>2];c=J[g+8>>2];i=(f|0)==(c|0);if(K[g+12|0]&8?i:1){e=f-c>>2;if((e|0)>=0)break v;break c}e=f-c>>2;if((e|0)<0)break c;c=J[a+8>>2];d=(m|0)>=(c|0);break u}c=J[a+8>>2];if(i){d=f;break t}d=((d+p&0-j)-d|0)>=(c|0)}J[g+16>>2]=e;if(d){d=L[g+12>>1];I[g+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+8>>2]=d;J[f+16>>2]=0;J[g+28>>2]=f;I[a+76>>1]=L[a+76>>1]+1}e=J[a+ -32>>2];if(e>>>0<=d>>>0)break f;H[a+79|0]=0;f=J[a+88>>2];if(f)J[g+28>>2]=f;h=h+1|0;o=o+1|0;if((o|0)>1])continue;break}p=L[a+76>>1];if(p>>>0<2)break i;c=J[a+84>>2];if(!c)break i;g=J[a+44>>2];n=J[a+28>>2];while(1){w:{if((p&65535)>>>0<=1){h=J[c+16>>2];f=0;break w}h=J[c+16>>2];f=J[c+8>>2]+(h<<2)|0}J[c+4>>2]=f;d=J[c+20>>2];x:{if(K[c+12|0]&8){e=d;d=(d+h|0)-1|0;break x}e=(d-h|0)+1|0;J[c+20>>2]=e;J[c+8>>2]=(J[c+8>>2]+(h<<2)|0)-4}k=d;d=0;o=0-g|0;m=n-(g<<2)|0;c=g;y:{z:{while(1){h=d;j=c;if((c|0)<=0){d= -e;break z}d=h+1|0;c=j-1|0;i=J[m+(c<<2)>>2];if((i|0)>(e|0))continue;break}if((e|0)<=(i|0)){j=g;break y}i=0;h=g-h&3;if(h)while(1){o=m+(c<<2)|0;d=J[o>>2];J[o>>2]=e;c=c-1|0;e=d;i=i+1|0;if((h|0)!=(i|0))continue;break}if(j>>>0<4)break z;h=m-8|0;j=m-4|0;d=e;while(1){e=c<<2;i=e+m|0;o=J[i>>2];J[i>>2]=d;d=e+j|0;i=J[d>>2];J[d>>2]=o;d=e+h|0;e=J[d>>2];J[d>>2]=i;i=c-3|0;o=m+(i<<2)|0;d=J[o>>2];J[o>>2]=e;c=c-4|0;if(i)continue;break}}c=J[a+32>>2]-4|0;J[a+32>>2]=c;if(c>>>0<=M[a+36>>2])break f;j=g+1|0;J[a+44>>2]=j; -o=g^-1;J[n+(o<<2)>>2]=d}e=k+1|0;m=n+(o<<2)|0;d=0;c=j;A:{B:{while(1){g=d;h=c;if((c|0)<=0){d=e;break B}d=g+1|0;c=h-1|0;i=J[m+(c<<2)>>2];if((i|0)>(e|0))continue;break}if((i|0)>(k|0)){g=j;break A}i=0;g=j-g&3;if(g)while(1){k=m+(c<<2)|0;d=J[k>>2];J[k>>2]=e;c=c-1|0;e=d;i=i+1|0;if((g|0)!=(i|0))continue;break}if(h>>>0<4)break B;g=m-8|0;k=m-4|0;d=e;while(1){e=c<<2;h=e+m|0;i=J[h>>2];J[h>>2]=d;d=e+k|0;h=J[d>>2];J[d>>2]=i;d=e+g|0;e=J[d>>2];J[d>>2]=h;h=c-3|0;i=m+(h<<2)|0;d=J[i>>2];J[i>>2]=e;c=c-4|0;if(h)continue; -break}}c=J[a+32>>2]-4|0;J[a+32>>2]=c;if(c>>>0<=M[a+36>>2])break f;g=j+1|0;J[a+44>>2]=g;J[n+((j^-1)<<2)>>2]=d}c=f;p=p-1|0;if(p&65535)continue;break}e=J[a+32>>2];d=J[a+36>>2];break h}J[a+84>>2]=0}if(d>>>0>>0)break e}if(J[a+40>>2]==98)break f;d=1;break a}J[a+40>>2]=0;c=J[a+1008>>2];d=(c<<2)+a|0;e=d;f=I[d+946>>1];g=I[d+944>>1];d=(f+g|0)/2|0;if(!((c|0)<=6&(d|0)>=(g|0))){J[a+40>>2]=20;J[a+1008>>2]=0;d=20;break a}c=c+1|0;g=(c<<2)+a|0;I[g+946>>1]=f;I[g+944>>1]=d;I[e+946>>1]=d-1;break d}C:{h=J[a+84>>2]; -D:{if(!h)break D;J[l+8>>2]=0;J[l+4>>2]=0;J[l>>2]=0;c=J[a>>2];f=J[a+72>>2]>>c;i=J[a+68>>2]>>c;while(1){d=h;J[d>>2]=0;k=i<<16>>16;g=J[d+20>>2];h=(g+J[d+16>>2]|0)-1<<16>>16;j=(k|0)>(h|0);p=g<<16>>16>16;e=l+8|0;c=J[l+8>>2];E:{if(!c){c=0;break E}if(J[c>>2]>0)break E;F:{while(1){e=c;c=J[c+4>>2];if(c){if(J[c>>2]<=0)continue;break F}break}c=0}e=e+4|0}i=j?k:h;f=p?g:f;h=J[d+4>>2];J[d+4>>2]=c;J[e>>2]=d;if(h)continue;break}I[l+12>>1]=i;I[l+14>>1]=f;if(!J[a+44>>2])break C;gc[J[a+148>>2]](a,l+14|0,l+12| -0);j=I[l+14>>1];c=J[l+8>>2];if(c)while(1){J[c+24>>2]=J[c+20>>2]-j;c=J[c+4>>2];if(c)continue;break}i=J[a+44>>2];G:{if((i|0)<=0)break G;if(J[J[a+28>>2]-(i<<2)>>2]==(j|0)){i=i-1|0;J[a+44>>2]=i;if(!i)break G}c=0;while(1){d=J[l+8>>2];if(d){k=c<<16>>16;while(1){c=J[d+24>>2];J[d+24>>2]=c-k;f=J[d+4>>2];if((c|0)==(k|0)){c=J[l+8>>2];H:{if(!c)break H;if((c|0)==(d|0)){J[l+8>>2]=f;break H}while(1){e=c;c=J[c+4>>2];if(!c)break H;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f}g=J[d>>2];I:{if(K[d+12|0]&8){e=l+4|0;c=J[l+ -4>>2];if(!c){c=0;break I}if((g|0)>2])break I;J:{while(1){e=c;c=J[c+4>>2];if(c){if((g|0)>=J[c>>2])continue;break J}break}c=0}e=e+4|0;break I}e=l;c=J[e>>2];if(!c){c=0;break I}if((g|0)>2])break I;K:{while(1){e=c;c=J[c+4>>2];if(c){if((g|0)>=J[c>>2])continue;break K}break}c=0}e=e+4|0}J[d+4>>2]=c;J[e>>2]=d}d=f;if(d)continue;break}}m=j;d=J[l+4>>2];c=d;L:{if(!c)break L;while(1){e=J[c+8>>2];J[c>>2]=J[e>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=e+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}c= -J[d+4>>2];if(!c)break L;h=d+4|0;f=l+4|0;while(1){if(J[d>>2]<=J[c>>2])f=h;else{J[f>>2]=c;J[h>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[l+4>>2];f=l+4|0}d=c;h=c+4|0;c=J[c+4>>2];if(c)continue;break}}g=J[l>>2];c=g;M:{if(!c){g=0;break M}while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}d=J[g+4>>2];if(!d)break M;h=g+4|0;f=l;c=g;while(1){N:{if(J[c>>2]<=J[d>>2]){f=h;c=d;break N}J[f>>2]=d;J[h>>2]=J[d+4>>2];J[d+4>>2]=c;f=l;g=J[f>>2];c=g}h=c+4|0; -d=J[c+4>>2];if(d)continue;break}}J[a+44>>2]=i-1;O:{n=J[J[a+28>>2]-(i<<2)>>2];q=n<<16>>16;j=m;if((q|0)<=j<<16>>16)break O;while(1){k=J[l+4>>2];P:{if(!k)break P;p=0;c=k;f=g;if(!f)break P;while(1){Q:{R:{e=J[c>>2];h=J[f>>2];d=(e|0)>(h|0)?e:h;e=(e|0)<(h|0)?e:h;h=J[a+4>>2];if((d-e|0)>(h|0))break R;o=0-h|0;i=o&e;if((i|0)==(e|0))break R;o=o&(d+h|0)-1;if((o|0)==(d|0)|(o|0)!=(h+i|0)&(i|0)<=(o|0))break R;if((L[c+12>>1]&7)==2)break Q;J[c>>2]=e;J[f>>2]=d;J[c+24>>2]=1;p=p+1|0;break Q}gc[J[a+152>>2]](a,j<<16>>16, -e,d,c,f)}c=J[c+4>>2];if(c){f=J[f+4>>2];if(f)continue}break}d=g;c=k;if(p<<16>>16<=0)break P;while(1){if(J[c+24>>2]){J[c+24>>2]=0;gc[J[a+156>>2]](a,j<<16>>16,J[c>>2],J[d>>2],c,d)}c=J[c+4>>2];if(!c)break P;d=J[d+4>>2];if(d)continue;break}}gc[J[a+160>>2]](a);j=j+1|0;if((q|0)<=j<<16>>16)break O;c=k;S:{if(!c)break S;while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}c=J[k+4>>2];if(!c)break S;d=k+4|0;h=l+4|0;while(1){if(!(J[k>>2]<= -J[c>>2])){J[h>>2]=c;J[d>>2]=J[c+4>>2];J[c+4>>2]=k;c=J[l+4>>2];d=l+4|0}h=d;k=c;d=c+4|0;c=J[c+4>>2];if(c)continue;break}g=J[l>>2]}e=g;g=0;c=e;if(!c)continue;while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}h=e+4|0;f=l;g=e;c=e;d=J[c+4>>2];if(!d)continue;while(1){T:{if(J[c>>2]<=J[d>>2]){f=h;c=d;break T}J[f>>2]=d;J[h>>2]=J[d+4>>2];J[d+4>>2]=c;f=l;e=J[f>>2];c=e}h=c+4|0;d=J[c+4>>2];if(d)continue;break}g=e;continue}}f=J[l+4>>2];if(f)while(1){d= -f;f=J[d+4>>2];U:{if(J[d+16>>2])break U;c=J[l+4>>2];if(!c)break U;if((c|0)==(d|0)){J[l+4>>2]=f;break U}while(1){e=c;c=J[c+4>>2];if(!c)break U;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f}if(f)continue;break}f=J[l>>2];V:{if(!f)break V;while(1){d=f;f=J[d+4>>2];W:{if(J[d+16>>2])break W;c=J[l>>2];if(!c)break W;if((c|0)==(d|0)){J[l>>2]=f;if(!f)break V;continue}while(1){e=c;c=J[c+4>>2];if(!c)break W;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f;if(!f)break V;continue}if(f)continue;break}}c=n-m|0;i=J[a+44>>2]; -if((i|0)>0)continue;break}}if(I[l+12>>1]>16)break D;while(1){gc[J[a+160>>2]](a);j=j+1<<16>>16;if((j|0)<=I[l+12>>1])continue;break}}c=J[a+1008>>2]-1|0;break d}J[a+40>>2]=20;d=20;break a}J[a+1008>>2]=c;if((c|0)>=0)continue;break}d=0;break a}J[a+40>>2]=99;d=1;break a}J[a+40>>2]=20;d=1}bc=l+16|0;return d}function Scb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;f=bc-384|0;bc=f;J[b>>2]=1;a:{if(!J[b+136>>2]){d=pn(J[J[b+ -96>>2]+4>>2],240559);if(!d){a=11;break a}J[b+136>>2]=d}if(!J[b+320>>2])x=b,y=pn(J[J[b+96>>2]+4>>2],240758),J[x+320>>2]=y;a=nd(a,0);if(a)break a;i=J[b+100>>2];J[f+108>>2]=0;h=J[b+104>>2];a=J[b+136>>2];d=f+8|0;wc(d,0,100);gc[J[J[a+4>>2]>>2]](d,0,0,i);J[f+80>>2]=h;m=J[h+8>>2];b:{c:{d:{d=Ue(h,31);e:{if(d)break e;a=kd(J[h+32>>2],241220,31);ne(h);if(a){J[f+4>>2]=2;break b}l=f+84|0;k=f+112|9;while(1){d=J[h+8>>2];j=d;e=0;a=f+112|0;d=J[h+4>>2]-d|0;g=d>>>0>=265?265:d;d=mg(h,a,g);if(d)break e;while(1){f:{d= -a+g|0;H[d|0]=0;o=d-6|0;d=f+112|0;if(o>>>0>d>>>0){n=(g-6|0)+a|0;a=d;d=K[f+112|0];while(1){g:{if((d&255)!=83)break g;if(kd(a,241417,9))break g;e=10;break f}h:{d=K[a+1|0];if((d|0)!=115)break h;if(kd(a,241495,6))break h;e=7;break f}a=a+1|0;if((n|0)!=(a|0))continue;break}}if(e+g>>>0<9){J[f+4>>2]=3;break b}a=(e+f|0)+g|0;d=K[a+103|0]|K[a+104|0]<<8|(K[a+105|0]<<16|K[a+106|0]<<24);e=K[a+107|0]|K[a+108|0]<<8|(K[a+109|0]<<16|K[a+110|0]<<24);H[f+120|0]=K[a+111|0];J[f+112>>2]=d;J[f+116>>2]=e;j=j+256|0;e=9;a=k; -d=J[h+4>>2]-J[h+8>>2]|0;g=d>>>0>=256?256:d;d=mg(h,a,g);if(!d)continue;break e}break}d=nd(h,m);if(d)break e;j=((j-(f+112|0)|0)+a|0)+e|0;a=j-m|0;d=yi(h,a,l);if(d)break e;J[f+92>>2]=j;g=J[f+84>>2];J[f+12>>2]=g;J[f+104>>2]=-1;J[f+8>>2]=g;J[f+88>>2]=a;J[f+16>>2]=a+g;d=f+8|0;gc[J[f+40>>2]](d);gc[J[f+36>>2]](d);a=J[f+8>>2];gc[J[f+40>>2]](d);gc[J[f+36>>2]](d);d=J[f+8>>2];e=J[f+16>>2];n=e-6|0;if(d>>>0<=n>>>0){p=e-9|0;while(1){e=a;a=d;d=J[f+20>>2];if(d)break e;i:{if(K[a|0]!=83|a>>>0>p>>>0)break i;if(kd(a,241417, -9))break i;if(kd(g,241647,5))break c;a=vg(e,0,10);if((a|0)>=0)break d;J[f+4>>2]=3;break b}j:{if(K[a+1|0]!=115)break j;if(kd(a,241495,6))break j;J[f+4>>2]=2;break b}d=f+8|0;gc[J[f+40>>2]](d);gc[J[f+36>>2]](d);g=e;d=J[f+8>>2];if(n>>>0>=d>>>0)continue;break}}Sf(h,l);d=nd(h,j);if(!d)continue;break}}J[f+4>>2]=d;break b}J[f+96>>2]=a}J[f+4>>2]=0;J[f+20>>2]=0;a=J[f+84>>2];l=a+J[f+88>>2]|0;J[f+16>>2]=l;k=b+164|0;j=b+312|0;h=b+196|0;m=b+140|0;r=l-18|0;k:{l:{m:while(1){J[f+8>>2]=a;gc[J[f+36>>2]](f+8|0);d=J[f+ -8>>2];g=d>>>0>>0?d-17|0:r;if(g>>>0>a>>>0){e=J[f+104>>2];while(1){n:{if(K[a|0]!=37)break n;if(kd(a,241680,17)|J[b+300>>2]<=0)break n;e=e+1|0;J[f+104>>2]=e}a=a+1|0;if((g|0)!=(a|0))continue;break}}o:{if(d>>>0>=l>>>0)break o;gc[J[f+40>>2]](f+8|0);a=J[f+8>>2];if(J[f+20>>2]|l>>>0<=a>>>0)break o;if(K[d|0]!=47|l>>>0<=d+2>>>0)continue;p=d+1|0;if((p|0)==(a|0))continue;n=a-p|0;if(n>>>0>21)continue;q=K[p|0];e=331104;d=241834;p:{if(n>>>0>=2)while(1){g=e;q:{if((q|0)!=K[d|0])break q;e=1;if((Qc(d)|0)!=(n|0))break q; -while(1){if(K[e+p|0]!=K[d+e|0])break q;e=e+1|0;if((n|0)!=(e|0))continue;break}e=g;break p}e=g+36|0;d=J[g+36>>2];if(d)continue;continue m}while(1){if((q|0)==K[d|0])if((Qc(d)|0)==(n|0))break p;d=J[e+36>>2];e=e+36|0;if(d)continue;break}continue}g=J[e+8>>2];r:{if((g|0)==11){gc[J[e+12>>2]](b,f+8|0);a=J[f+20>>2];break r}d=m;s:{t:{u:{v:switch(J[e+4>>2]){case 3:d=k;break u;case 2:d=j;break u;case 5:d=h;break u;case 0:break u;default:break v}a=J[f+104>>2];if((a|0)<0|(a|0)>=J[b+300>>2])break t;d=J[b+304>>2]+ -P(a,252)|0}J[f+112>>2]=d;if(g-9>>>0>1)break s;a=gc[J[f+76>>2]](f+8|0,e,f+112|0,0,0)|0;break r}J[f+20>>2]=160;J[f+4>>2]=160;break b}a=gc[J[f+72>>2]](f+8|0,e,f+112|0,0,0)|0}J[f+20>>2]=a;if(a)break l;a=J[f+8>>2];continue}break}if(J[b+300>>2])break k;a=3}J[f+4>>2]=a;break b}a=J[f+20>>2];J[f+4>>2]=a;if(a|(c|0)<0)break b;e=Zd(i,40,f+4|0);J[b+328>>2]=e;if(J[f+4>>2])break b;d=J[b+104>>2];a=J[f+96>>2];w:{if(a){e=b;d=J[d+4>>2]-J[f+92>>2]|0;if(d>>>0>>0){J[f+96>>2]=d;a=d}d=e;e=Zd(i,a,f+4|0);J[d+324>>2]=e; -if(J[f+4>>2])break b;a=J[f+96>>2];d=bc-256|0;bc=d;h=J[b+104>>2];j=nd(h,J[f+92>>2]);x:{if(j)break x;if((a|0)>0){n=a+e|0;k=1;a=d;m=a;while(1){y:{z:{A:{while(1){if(a>>>0>=m>>>0){a=J[h+8>>2];g=J[h+4>>2];if((a|0)==(g|0)){j=160;break x}g=g-a|0;j=mg(h,d,g>>>0>=256?256:g);if(j)break x;m=(d+J[h+8>>2]|0)-a|0;a=d}g=K[a|0];i=g-48|0;if(i>>>0<10)break z;if((g-97&255)>>>0>=6){if((g-65&255)>>>0<6)break A;i=0;j=160;l=0;B:switch(g|0){case 62:break y;case 0:case 9:case 10:case 12:case 13:case 32:break B;default:break x}a= -a+1|0;continue}break}i=g-87|0;break z}i=g-55|0}l=1}C:{if(k&255){i=i<<4;g=e;break C}i=K[e|0]+i|0;g=e+1|0}H[e|0]=i;a=a+1|0;k=1-k|0;e=g;if(n>>>0>e>>>0&l)continue;break}}j=0}bc=d+256|0;J[f+4>>2]=j;if(j)break b;d=J[b+324>>2];e=J[f+96>>2];a=J[b+328>>2];J[a+32>>2]=0;J[a+8>>2]=0;J[a+4>>2]=e;J[a>>2]=d;J[a+20>>2]=0;J[a+24>>2]=0;a=0;break w}a=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=a;a=J[d+36>>2];J[e+32>>2]=J[d+32>>2];J[e+36>>2]=a;a=J[d+28>>2];J[e+24>>2]=J[d+24>>2];J[e+28>>2]=a;a=J[d+20>>2];J[e+16>>2]=J[d+16>>2]; +156>>2]=c+4;J[a- -64>>2]=J[c>>2];e=1;break i}if(!(K[a+13|0]&32)){e=J[c>>2];I[a+196>>1]=e;J[d+156>>2]=c+8;c=J[c+4>>2];e=e&65535;f=J[a+200>>2];if(f){uc(f);J[a+200>>2]=0}J:{if(!c)break J;f=e<<2;e=Dc(f);J[a+200>>2]=e;if(!e)break J;Ue(e,c,f)}e=1;break i}b=J[a+628>>2];J[d+112>>2]=J[a>>2];Uc(b,74035,74891,d+112|0);break a}J[d+156>>2]=c+4;I[a+208>>1]=J[c>>2];e=1;break i}I[a+204>>1]=J[c>>2];J[d+156>>2]=c+8;I[a+206>>1]=J[c+4>>2];e=1;break i}j=(L[a+98>>1]-L[a+168>>1]|0)<2;while(1){f=L[a+84>>1];h=J[c>>2];g=(e<< +2)+a|0;i=J[g+216>>2];if(i){uc(i);J[g+216>>2]=0}K:{if(!h|(f|0)==31)break K;i=g;g=2<>2]=f;if(!f)break K;Ue(f,h,g)}c=c+4|0;if(!j){f=e>>>0<2;e=e+1|0;if(f)continue}break}J[d+156>>2]=c}e=1;break i}J[d+156>>2]=c+4;c=J[c>>2];e=J[a+212>>2];if(e){uc(e);J[a+212>>2]=0}e=1;if(!c)break i;f=Dc(24);J[a+212>>2]=f;if(!f)break i;Ue(f,c,24);break i}f=J[c>>2];J[d+156>>2]=c+8;h=L[a+98>>1];g=h;if(!f)break h;if(!g)break a;i=f;f=J[c+4>>2];j=i+f|0;c=f;while(1){if(K[c|0])while(1){if(c>>>0>=j>>>0)break h; +i=K[c+1|0];c=c+1|0;if(i)continue;break}c=c+1|0;g=g-1|0;if(g&65535)continue;break}if((c|0)==(f|0))break a;c=c-f|0;FW(a+232|0,f,c);J[a+228>>2]=c;e=1;break i}j=kt(a,b);if(!j){c=b>>>0>65535?72810:73438;b=76018;break f}if(L[j+12>>1]!=65)break g;c=0;f=J[a+240>>2];h=J[a+236>>2];L:{if((h|0)>0)while(1){g=f+P(c,12)|0;if(J[J[g>>2]>>2]==(b|0)){c=J[g+8>>2];if(!c)break L;uc(c);J[g+8>>2]=0;break L}c=c+1|0;if((h|0)!=(c|0))continue;break}c=h+1|0;J[a+236>>2]=c;c=Yh(f,P(c,12));if(!c){b=J[a+628>>2];J[d+32>>2]=J[a>>2]; +Uc(b,74035,76487,d+32|0);break a}J[a+240>>2]=c;g=(c+P(J[a+236>>2],12)|0)-12|0;J[g>>2]=j;J[g+4>>2]=0;J[g+8>>2]=0}c=J[j+8>>2]-1|0;if(c>>>0<=12)h=J[(c<<2)+91604>>2];else h=0;if(!h){b=J[a+628>>2];a=J[a>>2];c=J[j+8>>2];J[d+24>>2]=J[j+16>>2];J[d+20>>2]=c;J[d+16>>2]=a;Uc(b,74035,77431,d+16|0);break a}M:{if(K[j+15|0]){c=J[d+156>>2];J[d+156>>2]=c+4;c=J[c>>2];break M}c=1;N:{O:{e=I[j+6>>1];switch((e&65535)-65533|0){case 1:break O;case 0:case 2:break M;default:break N}}c=L[a+98>>1];break M}c=e}J[g+4>>2]=c;if(J[j+ +8>>2]==2){c=J[d+156>>2];J[d+156>>2]=c+4;cw(g+8|0,J[c>>2]);e=1;break i}c=bh(a,h,c,77881);J[g+8>>2]=c;if(!c)break c;P:{if(!(K[j+15|0]|L[j+6>>1]>65532)){f=J[g+4>>2];if((f|0)<2)break P}Q:{R:{S:{e=J[j>>2];switch(e-321|0){case 0:case 15:break Q;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break R;default:break S}}if((e|0)==297|(e|0)==530)break Q}e=J[d+156>>2];J[d+156>>2]=e+4;Ue(c,J[e>>2],P(h,J[g+4>>2]));e=1;break i}f=J[g+4>>2]}e=1;if((f|0)<=0)break i; +f=0;while(1){T:{U:switch(J[j+8>>2]-1|0){case 0:case 6:i=J[d+156>>2];J[d+156>>2]=i+4;H[d+144|0]=J[i>>2];Ue(c,d+144|0,h);break T;case 5:i=J[d+156>>2];J[d+156>>2]=i+4;H[d+144|0]=J[i>>2];Ue(c,d+144|0,h);break T;case 2:i=J[d+156>>2];J[d+156>>2]=i+4;I[d+144>>1]=J[i>>2];Ue(c,d+144|0,h);break T;case 7:i=J[d+156>>2];J[d+156>>2]=i+4;I[d+144>>1]=J[i>>2];Ue(c,d+144|0,h);break T;case 3:case 12:i=J[d+156>>2];J[d+156>>2]=i+4;J[d+144>>2]=J[i>>2];Ue(c,d+144|0,h);break T;case 8:i=J[d+156>>2];J[d+156>>2]=i+4;J[d+144>> +2]=J[i>>2];Ue(c,d+144|0,h);break T;case 4:case 9:case 10:i=J[d+156>>2]+7&-8;J[d+156>>2]=i+8;N[d+144>>2]=O[i>>3];Ue(c,d+144|0,h);break T;case 11:i=J[d+156>>2]+7&-8;J[d+156>>2]=i+8;O[d+144>>3]=O[i>>3];Ue(c,d+144|0,h);break T;default:break U}e=0;Sg(c,0,h)}c=c+h|0;f=f+1|0;if((f|0)>2])continue;break}if(!e)break c}c=L[Sf(a,b)+12>>1];b=(L[Sf(a,b)+12>>1]>>>3&8188)+k|0;J[b>>2]=J[b>>2]|1<>2]=J[a+12>>2]|8;break a}b=J[a+628>>2];J[d+128>>2]=J[a>>2];J[d+132>>2]=h;J[d+136>>2]=h-(g&65535);Uc(b,71733, +79223,d+128|0);break a}c=b>>>0>65535?72810:73438;b=J[j+16>>2]}f=J[a+628>>2];a=J[a>>2];J[d+8>>2]=b;J[d+4>>2]=c;J[d>>2]=a;Uc(f,74035,75732,d);break a}c=0}e=J[a+628>>2];f=J[a>>2];l=d,m=J[Sf(a,b)+16>>2],J[l+72>>2]=m;J[d+68>>2]=c;J[d+64>>2]=f;Uc(e,74035,78739,d- -64|0)}e=0;break a}c=J[a+628>>2];f=J[a>>2];l=d,m=J[Sf(a,b)+16>>2],J[l+56>>2]=m;J[d+52>>2]=g;J[d+48>>2]=f;Uc(c,74035,78415,d+48|0)}fc=d+160|0;return e|0}function rI(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;e=fc-16|0;fc=e;a:{b:while(1){j=b-12|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f|0;k=(a|0)/12|0;switch(k|0){case 5:break j;case 3:break k;case 2:break l;case 0:case 1:break e;case 4:break h;default:break i}}a=b-12|0;if(!(kc[J[c>>2]](a,f)|0))break e;J[e+8>>2]=J[f+8>>2];b=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=b;J[f+8>>2]=J[a+8>>2];b=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=b;J[a+8>>2]=J[e+8>>2];b=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=b;break e}a=f+12|0;h=kc[J[c>>2]](a,f)|0;b=b-12|0;d=kc[J[c>> +2]](b,a)|0;if(!h){if(!d)break e;J[e+8>>2]=J[a+8>>2];d=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=d;J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;J[b+8>>2]=J[e+8>>2];d=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=d;if(!(kc[J[c>>2]](a,f)|0))break e;J[e+8>>2]=J[f+8>>2];b=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=b;J[f+8>>2]=J[a+8>>2];b=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=b;J[a+8>>2]=J[e+8>>2];b=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=b;break e}if(d){J[e+8>>2]=J[f+8>>2];a=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=a;J[f+ +8>>2]=J[b+8>>2];a=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=a;J[b+8>>2]=J[e+8>>2];a=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=a;break e}J[e+8>>2]=J[f+8>>2];d=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=d;J[f+8>>2]=J[a+8>>2];d=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=d;J[a+8>>2]=J[e+8>>2];d=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=d;if(!(kc[J[c>>2]](b,a)|0))break e;J[e+8>>2]=J[a+8>>2];c=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[e+8>>2];a=J[e+4>>2];J[b>>2]=J[e>> +2];J[b+4>>2]=a;break e}a=f+12|0;d=f+24|0;h=f+36|0;ow(f,a,d,h,c);b=b-12|0;if(!(kc[J[c>>2]](b,h)|0))break e;J[e+8>>2]=J[h+8>>2];g=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=g;J[h+8>>2]=J[b+8>>2];g=J[b+4>>2];J[h>>2]=J[b>>2];J[h+4>>2]=g;J[b+8>>2]=J[e+8>>2];g=J[e+4>>2];J[b>>2]=J[e>>2];J[b+4>>2]=g;if(!(kc[J[c>>2]](h,d)|0))break e;J[e+8>>2]=J[d+8>>2];b=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=b;J[d+8>>2]=J[h+8>>2];b=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=b;J[h+8>>2]=J[e+8>>2];b=J[e+4>>2];J[h>>2]=J[e>>2];J[h+4>>2]=b;if(!(kc[J[c>> +2]](d,a)|0))break e;J[e+8>>2]=J[a+8>>2];b=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=b;J[a+8>>2]=J[d+8>>2];b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[d+8>>2]=J[e+8>>2];b=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=b;if(!(kc[J[c>>2]](a,f)|0))break e;J[e+8>>2]=J[f+8>>2];b=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=b;J[f+8>>2]=J[a+8>>2];b=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=b;J[a+8>>2]=J[e+8>>2];b=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=b;break e}if((a|0)<=83){j=b;g=fc-16|0;fc=g;h=c;a=f+12|0;i=kc[J[c>>2]](a,f)|0;b=f+24|0;d=kc[J[c>> +2]](b,a)|0;m:{if(!i){if(!d)break m;J[g+8>>2]=J[a+8>>2];d=J[a+4>>2];J[g>>2]=J[a>>2];J[g+4>>2]=d;J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;J[b+8>>2]=J[g+8>>2];d=J[g+4>>2];J[b>>2]=J[g>>2];J[b+4>>2]=d;if(!(kc[J[c>>2]](a,f)|0))break m;J[g+8>>2]=J[f+8>>2];c=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=c;J[f+8>>2]=J[a+8>>2];c=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=c;J[a+8>>2]=J[g+8>>2];c=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=c;break m}if(d){J[g+8>>2]=J[f+8>>2];a=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=a; +J[f+8>>2]=J[b+8>>2];a=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=a;J[b+8>>2]=J[g+8>>2];a=J[g+4>>2];J[b>>2]=J[g>>2];J[b+4>>2]=a;break m}J[g+8>>2]=J[f+8>>2];c=J[f+4>>2];J[g>>2]=J[f>>2];J[g+4>>2]=c;J[f+8>>2]=J[a+8>>2];c=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=c;J[a+8>>2]=J[g+8>>2];c=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=c;if(!(kc[J[h>>2]](b,a)|0))break m;J[g+8>>2]=J[a+8>>2];c=J[a+4>>2];J[g>>2]=J[a>>2];J[g+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[g+8>>2];a=J[g+4>>2];J[b>>2]= +J[g>>2];J[b+4>>2]=a}n:{c=f+36|0;if((j|0)!=(c|0))while(1){if(kc[J[h>>2]](c,b)|0){J[g+8>>2]=J[c+8>>2];a=J[c+4>>2];J[g>>2]=J[c>>2];J[g+4>>2]=a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;d=c;o:{while(1){a=b;if(H[d+11|0]<0)uc(J[d>>2]);b=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=b;J[d+8>>2]=J[a+8>>2];H[a+11|0]=0;J[a>>2]=0;if((a|0)==(f|0)){a=f;break o}b=J[h>>2];J[699344]=0;d=b;b=a-12|0;i=aa(d|0,g|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;d=a;if(i)continue;break}if(H[a+11|0]>=0)break o;uc(J[a>>2])}b=J[g+4>>2]; +J[a>>2]=J[g>>2];J[a+4>>2]=b;J[a+8>>2]=J[g+8>>2]}b=c;a=b+12|0;c=a;if((a|0)!=(j|0))continue;break}fc=g+16|0;break e}break a}if(!d){if((b|0)==(f|0))break e;g=k-2>>>1|0;while(1){i=fc-16|0;fc=i;j=g;d=P(g,12)+f|0;a=(d-f|0)/12|0;p:{q:{r:{if((k|0)<2)break r;l=k-2>>>1|0;if((l|0)<(a|0))break r;a=a<<1;g=a|1;h=P(g,12)+f|0;n=a+2|0;if((n|0)<(k|0)){m=h+12|0;a=kc[J[c>>2]](h,m)|0;g=a?n:g;h=a?m:h}if(kc[J[c>>2]](h,d)|0)break r;J[i+8>>2]=J[d+8>>2];a=J[d+4>>2];J[i>>2]=J[d>>2];J[i+4>>2]=a;J[d>>2]=0;J[d+4>>2]=0;J[d+8>> +2]=0;s:{while(1){a=h;if(H[d+11|0]<0)uc(J[d>>2]);h=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=h;J[d+8>>2]=J[a+8>>2];H[a+11|0]=0;J[a>>2]=0;if((g|0)>(l|0))break s;d=g<<1;g=d|1;h=P(g,12)+f|0;n=d+2|0;if((n|0)<(k|0)){d=J[c>>2];J[699344]=0;m=h+12|0;d=aa(d|0,h|0,m|0)|0;o=J[699344];J[699344]=0;if((o|0)==1)break q;g=d?n:g;h=d?m:h}d=J[c>>2];J[699344]=0;n=aa(d|0,h|0,i|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;d=a;if(!n)continue;break}if(H[a+11|0]>=0)break s;uc(J[a>>2])}d=J[i+4>>2];J[a>>2]=J[i>>2];J[a+4>>2]=d; +J[a+8>>2]=J[i+8>>2]}fc=i+16|0;break p}a=Z()|0;if(H[i+11|0]<0)uc(J[i>>2]);ba(a|0);B()}g=j-1|0;if(j)continue;break}i=fc-16|0;fc=i;a=b-f|0;if((a|0)>=13){d=c;a=(a>>>0)/12|0;while(1){g=b;k=J[f>>2];J[i+8>>2]=J[f+4>>2];b=K[f+7|0]|K[f+8|0]<<8|(K[f+9|0]<<16|K[f+10|0]<<24);H[i+11|0]=b;H[i+12|0]=b>>>8;H[i+13|0]=b>>>16;H[i+14|0]=b>>>24;J[f>>2]=0;J[f+4>>2]=0;l=H[f+11|0];J[f+8>>2]=0;h=a;n=a-2>>>1|0;b=f;c=0;t:{u:{v:{while(1){m=c<<1;j=m|1;c=P(c,12)+b|0;a=c+12|0;m=m+2|0;if((m|0)>=(h|0))c=j;else{o=J[d>>2];J[699344]= +0;p=o;o=c+24|0;c=aa(p|0,a|0,o|0)|0;p=J[699344];J[699344]=0;if((p|0)==1)break v;a=c?o:a;c=c?m:j}if(H[b+11|0]<0)uc(J[b>>2]);j=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=j;J[b+8>>2]=J[a+8>>2];H[a+11|0]=0;J[a>>2]=0;b=a;if((c|0)<=(n|0))continue;break}b=g-12|0;if((a|0)!=(b|0))break u;J[a>>2]=k;J[a+4>>2]=J[i+8>>2];c=K[i+11|0]|K[i+12|0]<<8|(K[i+13|0]<<16|K[i+14|0]<<24);H[a+7|0]=c;H[a+8|0]=c>>>8;H[a+9|0]=c>>>16;H[a+10|0]=c>>>24;H[a+11|0]=l;break t}a=Z()|0;if((l|0)<0)uc(k);ba(a|0);B()}c=J[b+4>>2];J[a>>2]=J[b>>2]; +J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];J[b>>2]=k;j=J[i+8>>2];c=K[i+11|0]|K[i+12|0]<<8|(K[i+13|0]<<16|K[i+14|0]<<24);H[g-1|0]=l;H[b+7|0]=c;H[b+8|0]=c>>>8;H[b+9|0]=c>>>16;H[b+10|0]=c>>>24;J[b+4>>2]=j;g=fc-16|0;fc=g;a=a+12|0;c=(a-f|0)/12|0;w:{if((c|0)<2)break w;k=c-2>>>1|0;j=P(k,12)+f|0;c=a-12|0;if(!(kc[J[d>>2]](j,c)|0))break w;J[g+8>>2]=J[c+8>>2];a=J[c+4>>2];J[g>>2]=J[c>>2];J[g+4>>2]=a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;x:{while(1){a=j;if(H[c+11|0]<0)uc(J[c>>2]);j=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=j;J[c+ +8>>2]=J[a+8>>2];H[a+11|0]=0;J[a>>2]=0;if(!k)break x;c=J[d>>2];J[699344]=0;k=k-1>>>1|0;j=P(k,12)+f|0;l=aa(c|0,j|0,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;c=a;if(l)continue;break}if(H[a+11|0]>=0)break x;uc(J[a>>2])}c=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=c;J[a+8>>2]=J[g+8>>2]}fc=g+16|0}a=h-1|0;if((h|0)>2)continue;break}}fc=i+16|0;break e}i=P(k>>>1|0,12)+f|0;y:{if(a>>>0>=11989){h=P(k>>>2|0,12);a=h+f|0;h=h+i|0;k=ow(f,a,i,h,c);if(!(kc[J[c>>2]](j,h)|0))break y;J[e+8>>2]=J[h+8>>2];g=J[h+4>>2];J[e>> +2]=J[h>>2];J[e+4>>2]=g;J[h+8>>2]=J[j+8>>2];g=J[j+4>>2];J[h>>2]=J[j>>2];J[h+4>>2]=g;J[j+8>>2]=J[e+8>>2];g=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=g;if(!(kc[J[c>>2]](h,i)|0)){k=k+1|0;break y}J[e+8>>2]=J[i+8>>2];g=J[i+4>>2];J[e>>2]=J[i>>2];J[e+4>>2]=g;J[i+8>>2]=J[h+8>>2];g=J[h+4>>2];J[i>>2]=J[h>>2];J[i+4>>2]=g;J[h+8>>2]=J[e+8>>2];g=J[e+4>>2];J[h>>2]=J[e>>2];J[h+4>>2]=g;if(!(kc[J[c>>2]](i,a)|0)){k=k+2|0;break y}J[e+8>>2]=J[a+8>>2];h=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=h;J[a+8>>2]=J[i+8>>2];h=J[i+4>>2];J[a>> +2]=J[i>>2];J[a+4>>2]=h;J[i+8>>2]=J[e+8>>2];h=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=h;if(!(kc[J[c>>2]](a,f)|0)){k=k+3|0;break y}J[e+8>>2]=J[f+8>>2];h=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=h;J[f+8>>2]=J[a+8>>2];h=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=h;J[a+8>>2]=J[e+8>>2];h=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=h;k=k+4|0;break y}h=kc[J[c>>2]](i,f)|0;a=kc[J[c>>2]](j,i)|0;z:{if(!h){k=0;if(!a)break y;J[e+8>>2]=J[i+8>>2];a=J[i+4>>2];J[e>>2]=J[i>>2];J[e+4>>2]=a;J[i+8>>2]=J[j+8>>2];a=J[j+4>>2];J[i>>2]=J[j>>2];J[i+ +4>>2]=a;J[j+8>>2]=J[e+8>>2];a=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=a;k=1;if(!(kc[J[c>>2]](i,f)|0))break y;J[e+8>>2]=J[f+8>>2];a=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=a;J[f+8>>2]=J[i+8>>2];a=J[i+4>>2];J[f>>2]=J[i>>2];J[f+4>>2]=a;J[i+8>>2]=J[e+8>>2];a=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=a;break z}if(a){J[e+8>>2]=J[f+8>>2];a=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=a;J[f+8>>2]=J[j+8>>2];a=J[j+4>>2];J[f>>2]=J[j>>2];J[f+4>>2]=a;J[j+8>>2]=J[e+8>>2];a=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=a;k=1;break y}J[e+8>>2]= +J[f+8>>2];a=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=a;J[f+8>>2]=J[i+8>>2];a=J[i+4>>2];J[f>>2]=J[i>>2];J[f+4>>2]=a;J[i+8>>2]=J[e+8>>2];a=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=a;k=1;if(!(kc[J[c>>2]](j,i)|0))break y;J[e+8>>2]=J[i+8>>2];a=J[i+4>>2];J[e>>2]=J[i>>2];J[e+4>>2]=a;J[i+8>>2]=J[j+8>>2];a=J[j+4>>2];J[i>>2]=J[j>>2];J[i+4>>2]=a;J[j+8>>2]=J[e+8>>2];a=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=a}k=2}d=d-1|0;a=j;if(!(kc[J[c>>2]](f,i)|0)){while(1){a=a-12|0;if((f|0)==(a|0)){g=f+12|0;if(kc[J[c>>2]](f,j)|0)break f; +if((g|0)==(j|0))break e;while(1){if(kc[J[c>>2]](f,g)|0){J[e+8>>2]=J[g+8>>2];a=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=a;J[g+8>>2]=J[j+8>>2];a=J[j+4>>2];J[g>>2]=J[j>>2];J[g+4>>2]=a;J[j+8>>2]=J[e+8>>2];a=J[e+4>>2];J[j>>2]=J[e>>2];J[j+4>>2]=a;g=g+12|0;break f}g=g+12|0;if((j|0)!=(g|0))continue;break}break e}if(!(kc[J[c>>2]](a,i)|0))continue;break}J[e+8>>2]=J[f+8>>2];h=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=h;J[f+8>>2]=J[a+8>>2];h=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=h;J[a+8>>2]=J[e+8>>2];h=J[e+4>>2];J[a>>2]= +J[e>>2];J[a+4>>2]=h;k=k+1|0}h=f+12|0;if(h>>>0>=a>>>0)break g;while(1){g=h;h=g+12|0;if(kc[J[c>>2]](g,i)|0)continue;while(1){a=a-12|0;if(!(kc[J[c>>2]](a,i)|0))continue;break}if(a>>>0>>0){h=g;break g}else{J[e+8>>2]=J[g+8>>2];l=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=l;J[g+8>>2]=J[a+8>>2];l=J[a+4>>2];J[g>>2]=J[a>>2];J[g+4>>2]=l;J[a+8>>2]=J[e+8>>2];l=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=l;i=(g|0)==(i|0)?a:i;k=k+1|0;continue}}}ow(f,f+12|0,f+24|0,b-12|0,c);break e}A:{if((h|0)==(i|0))break A;if(!(kc[J[c>>2]](i, +h)|0))break A;J[e+8>>2]=J[h+8>>2];a=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=a;J[h+8>>2]=J[i+8>>2];a=J[i+4>>2];J[h>>2]=J[i>>2];J[h+4>>2]=a;J[i+8>>2]=J[e+8>>2];a=J[e+4>>2];J[i>>2]=J[e>>2];J[i+4>>2]=a;k=k+1|0}if(!k){g=YX(f,h,c);a=h+12|0;if(YX(a,b,c)){a=f;b=h;if(!g)continue b;break e}if(g)continue c}if(((h-f|0)/12|0)<((b-h|0)/12|0)){rI(f,h,c,d);a=h+12|0;continue c}rI(h+12|0,b,c,d);a=f;b=h;continue b}a=j;if((g|0)==(a|0))break e;while(1){h=g;g=g+12|0;if(!(kc[J[c>>2]](f,h)|0))continue;while(1){a=a-12|0;if(kc[J[c>> +2]](f,a)|0)continue;break}if(a>>>0<=h>>>0){f=h;continue d}else{J[e+8>>2]=J[h+8>>2];i=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=i;J[h+8>>2]=J[a+8>>2];i=J[a+4>>2];J[h>>2]=J[a>>2];J[h+4>>2]=i;J[a+8>>2]=J[e+8>>2];h=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=h;continue}}}break}break}break}fc=e+16|0;return}a=Z()|0;if(H[g+11|0]<0)uc(J[g>>2]);ba(a|0);B()}function mqb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=Q(0),k=0,l=0,m=0,n=Q(0),o=0,p=0,q=0,r=0,s=0,t=Q(0),u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=Q(0), +E=0,F=0,G=0,I=0,M=Q(0),N=Q(0),O=Q(0),S=Q(0),T=Q(0),U=Q(0),W=Q(0),X=0,Y=Q(0),$=Q(0),fa=Q(0),ha=Q(0),ia=Q(0),ja=Q(0);m=fc-1968|0;fc=m;a:{b:{if(!b|!c)break b;h=J[a+16>>2];q=J[a+20>>2];if(!((h|0)!=(b|0)|(q|0)!=(c|0))){X=1;if(!e)break b;rF(e,a,1,1,1);break b}r=xf(m+992|0,0);J[699344]=0;da(153,r|0,a|0);f=J[699344];J[699344]=0;c:{d:{e:{if((f|0)==1)break e;k=L[a+26>>1];J[699344]=0;g=J[a+68>>2];f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;na(78,r|0,b|0,c|0,k|0,g|0)|0;f=J[699344];J[699344]=0;if((f| +0)==1)break e;J[699344]=0;k=J[a+4>>2];g=J[a+44>>2];f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;ca(19,r|0,(k?g?k+40|0:0:0)|0,256);f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;X=J[r+4>>2]!=0;f=J[699344];J[699344]=0;if((f|0)==1)break e;if(!X){J[699344]=0;b=J[699344];J[699344]=0;if((b|0)==1)break e;of(a+72|0,r+72|0);break c}O=Q(Q(q|0)/Q(c|0));M=Q(Q(h|0)/Q(b|0));f:{g:switch(d-1|0){case 1:if((c|0)<=0)break f;y=(b|0)<=0;while(1){J[a+328>>2]=(P(o,100)|0)/(c|0);if(J[a+332>>2])break f; +j=Q(Q(Q(o|0)*O)+Q(-.5));n=Q(V(j));h:{if(Q(R(n))0?f:0;x=(f|0)<=1?1:f;U=Q(j-n);ha=Q(U+Q(-2));ia=Q(U+Q(-1));ja=Q(U+Q(1));F=((f|0)<=-2?-2:f)+2|0;w=-1;l=((f|0)<0?-1:f)+1|0;D=Q(0);N=Q(0);T=Q(0);j:{k:{l:{while(1){m:{J[699344]=0;W=Su(Q(fa+Q(w|0)));f=J[699344];J[699344]=0;if((f|0)==1)break m;g=J[a+20>>2];J[699344]=0;S=Su(ja);f=J[699344]; +J[699344]=0;if((f|0)==1)break l;f=q+w|0;f=(f|0)>0?f:0;i=(f|0)<(g|0)?f:g-1|0;f=J[a+16>>2];f=((f|0)>(x|0)?x:f)-1|0;n:{if(J[a+44>>2]){J[699344]=0;fl(m+12|0,a,f,i,1);f=J[699344];J[699344]=0;if((f|0)==1)break k;u=K[m+14|0];z=K[m+13|0];h=K[m+12|0];break n}f=(J[a+56>>2]+P(i,J[a+52>>2])|0)+P(f,3)|0;u=K[f+2|0];z=K[f+1|0];h=K[f|0]}J[699344]=0;t=Su(U);f=J[699344];J[699344]=0;if((f|0)==1)break l;f=J[a+16>>2];f=(f|0)>(C|0)?C:f-1|0;o:{if(J[a+44>>2]){J[699344]=0;fl(m+12|0,a,f,i,1);f=J[699344];J[699344]=0;if((f| +0)==1)break k;G=K[m+14|0];p=K[m+13|0];k=K[m+12|0];break o}f=(J[a+56>>2]+P(i,J[a+52>>2])|0)+P(f,3)|0;G=K[f+2|0];p=K[f+1|0];k=K[f|0]}J[699344]=0;n=Su(ia);f=J[699344];J[699344]=0;if((f|0)==1)break l;f=J[a+16>>2];f=(f|0)>(l|0)?l:f-1|0;p:{if(J[a+44>>2]){J[699344]=0;fl(m+12|0,a,f,i,1);f=J[699344];J[699344]=0;if((f|0)==1)break k;I=K[m+14|0];E=K[m+13|0];f=K[m+12|0];break p}f=(J[a+56>>2]+P(i,J[a+52>>2])|0)+P(f,3)|0;I=K[f+2|0];E=K[f+1|0];f=K[f|0]}J[699344]=0;j=Su(ha);g=J[699344];J[699344]=0;if((g|0)==1)break l; +g=J[a+16>>2];g=(g|0)>(F|0)?F:g-1|0;q:{if(J[a+44>>2]){J[699344]=0;fl(m+12|0,a,g,i,1);g=J[699344];J[699344]=0;if((g|0)==1)break k;g=K[m+14|0];A=K[m+13|0];i=K[m+12|0];break q}i=(J[a+56>>2]+P(i,J[a+52>>2])|0)+P(g,3)|0;g=K[i+2|0];A=K[i+1|0];i=K[i|0]}Y=Q(W*j);$=Q(W*n);n=Q(W*t);j=Q(W*S);T=Q(Q(Q(i>>>0)*Y)+Q(Q(Q((f&255)>>>0)*$)+Q(Q(Q(k>>>0)*n)+Q(Q(Q((h&255)>>>0)*j)+T))));N=Q(Q(Q(A>>>0)*Y)+Q(Q(Q((E&255)>>>0)*$)+Q(Q(Q(p>>>0)*n)+Q(Q(Q((z&255)>>>0)*j)+N))));D=Q(Q(Q((g&255)>>>0)*Y)+Q(Q(Q(I>>>0)*$)+Q(Q(Q(G>>>0)* +n)+Q(Q(Q((u&255)>>>0)*j)+D))));w=w+1|0;if((w|0)!=3)continue;break j}break}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break d}if(T=Q(0))g=~~T>>>0;else g=0;r:{if(J[a+44>>2]){J[699344]=0;h=g<<16;if(N=Q(0))f=~~N>>>0;else f=0;k=f<<8;if(D=Q(0))f=~~D>>>0;else f=0;Gy(r,s,o,h|(f|k));f=J[699344];J[699344]=0;if((f|0)!=1)break r;a=Z()|0;break d}f=(J[r+56>>2]+P(J[r+52>>2],o)|0)+P(s,3)|0;if(D=Q(0))h=~~D>>>0;else h=0;H[f+2|0]=h;if(N=Q(0))h=~~N>>>0;else h=0;H[f+1|0]=h;H[f|0]=g}s=s+1|0;if((s|0)!=(b|0))continue;break}}o=o+1|0;if((o|0)!=(c|0))continue;break}break f;default:f=J[a+16>>2];p=J[a+20>>2];if(!(!((f|0)<=(b|0)|(p|0)<=(c|0))&L[a+26>>1]==24)){if((c|0)<=0)break f;F=p-1|0;h=f-1|0;while(1){J[a+328>>2]=(P(y,100)|0)/(c|0);if(J[a+332>>2])break f;j=Q(O*Q(y|0));s:{if(Q(R(j))0){f=q+1|0;C=(f|0)>(F|0)?F:f;t=Q(j-Q(q|0));while(1){n=Q(M*Q(w|0));u:{if(Q(R(n))(h|0)?h:f;v:{if(J[a+44>>2]){J[699344]=0;k=Ij(a,g,q);f=J[699344];J[699344]=0;w:{x:{y:{z:{if((f|0)==1)break z;J[699344]=0;o=m+12|0;Hg(o,a,k);f=J[699344];J[699344]=0;if((f|0)==1)break z;J[699344]=0;i=K[m+14|0];v=K[m+13|0];A=K[m+12|0];k=Ij(a,x,q);f=J[699344];J[699344]=0;if((f|0)==1)break y;J[699344]=0;Hg(o,a,k);f=J[699344];J[699344]=0;if((f|0)==1)break y;J[699344]=0;u=K[m+14|0];z=K[m+13|0];s=K[m+12|0];k=Ij(a,g,C);f=J[699344];J[699344]=0;if((f|0)==1)break x;J[699344]= +0;Hg(o,a,k);f=J[699344];J[699344]=0;if((f|0)==1)break x;J[699344]=0;G=K[m+14|0];p=K[m+13|0];l=K[m+12|0];k=Ij(a,x,C);f=J[699344];J[699344]=0;if((f|0)==1)break w;J[699344]=0;Hg(o,a,k);f=J[699344];J[699344]=0;if((f|0)==1)break w;k=K[m+14|0];I=K[m+13|0];E=K[m+12|0];break v}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break d}s=J[a+56>>2];i=J[a+52>>2];o=s+P(i,C)|0;f=P(x,3);l=o+f|0;k=K[l+2|0];I=K[l+1|0];E=K[l|0];l=o;o=P(g,3);l=l+o|0;G=K[l+2|0];p=K[l+1|0];l=K[l|0];x=f;f=s+P(i,q)|0;s=x+f|0;u=K[s+ +2|0];z=K[s+1|0];s=K[s|0];f=f+o|0;i=K[f+2|0];v=K[f+1|0];A=K[f|0]}J[699344]=0;f=z&255;D=Q(Q(Q(I-f|0)*t)+Q(f>>>0));f=v&255;j=Q(Q(Q(p-f|0)*t)+Q(f>>>0));n=Q(n-Q(g|0));j=Q(Q(Q(D-j)*n)+j);A:{if(j=Q(0)){f=~~j>>>0;break A}f=0}o=f<<8;f=u&255;j=Q(Q(Q(G-i|0)*t)+Q(i>>>0));j=Q(Q(Q(Q(Q(Q((k&255)-f|0)*t)+Q(f>>>0))-j)*n)+j);B:{if(j=Q(0)){k=~~j>>>0;break B}k=0}g=k|o;j=Q(Q(Q(l-A|0)*t)+Q(A>>>0));j=Q(Q(Q(Q(Q(Q((E&255)-s|0)*t)+Q(s>>>0))-j)*n)+j);C:{if(j=Q(0)){f=~~j>>> +0;break C}f=0}Gy(r,w,y,g|f<<16);f=J[699344];J[699344]=0;if((f|0)==1)break t;w=w+1|0;if((w|0)!=(b|0))continue;break}}y=y+1|0;if((y|0)!=(c|0))continue;break f}break}a=Z()|0;break d}v=J[r+56>>2];J[699344]=0;G=P(b,3);f=G+3|0;k=f>>>0>1073741823?-1:f<<2;g=_(27,k|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;k=_(27,k|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){f=P(b,12);Ac(g,0,f);Ac(k,0,f);h=(p|0)<=0;j=Q(Q(M*Q(1E3))*O);D:{if(Q(R(j))>2]=(P(y,100)|0)/(p|0);if(J[a+332>>2])break E;f=g;g=J[a+56>>2]+P(J[a+52>>2],y)|0;n=Q(y|0);F:{if(n>2]<=0){g=f;break F}while(1){t=Q(p|0);G:{if(t>2]=J[h>>2]+P(K[g|0],1E3);J[h+4>>2]=J[h+4>>2]+P(K[g+1|0],1E3);J[h+8>>2]=J[h+8>>2]+P(K[g+2|0],1E3);break G}l=f+(u<<2)|0;q=J[l>>2];t=Q(Q(t-n)*Q(1E3));H:{if(Q(R(t))>2]=q+P(i,K[g|0]);u=u+3|0;q=f+(u<<2)|0;J[q>>2]=J[q>>2]+P(h, +K[g|0]);J[l+4>>2]=J[l+4>>2]+P(i,K[g+1|0]);J[l+16>>2]=J[l+16>>2]+P(h,K[g+1|0]);J[l+8>>2]=J[l+8>>2]+P(i,K[g+2|0]);J[l+20>>2]=J[l+20>>2]+P(h,K[g+2|0]);n=Q(M+n)}g=g+3|0;p=p+1|0;if((p|0)>2])continue;break}g=f;break F}i=J[a+16>>2]<=0;n=Q(Q(n-S)*Q(1E3));I:{if(Q(R(n))>2]=J[h>>2]+P(u,K[g|0]);h=k+l|0;J[h>>2]=J[h>>2]+P(q,K[g|0]);i=l+4|0;h=i+f|0;J[h>>2]=J[h>>2]+ +P(u,K[g+1|0]);h=k+i|0;J[h>>2]=J[h>>2]+P(q,K[g+1|0]);i=l+8|0;h=i+f|0;J[h>>2]=J[h>>2]+P(u,K[g+2|0]);h=k+i|0;J[h>>2]=J[h>>2]+P(q,K[g+2|0]);break K}A=z<<2;h=A+f|0;x=h;i=J[h>>2];t=Q(Q(t-n)*Q(1E3));L:{if(Q(R(t))>2]=i;H[v|0]=(i|0)/(o|0);i=k+A|0;C=P(l,q);J[i>>2]=J[i>>2]+((P(C,K[g|0])|0)/1E3|0);z=z+3|0;l=z<<2;i=l+f|0;x=P(h,u);J[i>>2]=J[i>>2]+((P(x,K[g|0])|0)/1E3|0);F=P(h,q);J[k+l>>2]=(P(F,K[g|0])|0)/1E3;i=A+4| +0;h=i+f|0;l=J[h>>2]+((P(I,K[g+1|0])|0)/1E3|0)|0;J[h>>2]=l;H[v+1|0]=(l|0)/(o|0);h=k+i|0;J[h>>2]=J[h>>2]+((P(C,K[g+1|0])|0)/1E3|0);i=A+16|0;h=i+f|0;J[h>>2]=J[h>>2]+((P(x,K[g+1|0])|0)/1E3|0);J[k+i>>2]=(P(F,K[g+1|0])|0)/1E3;i=A+8|0;h=i+f|0;l=J[h>>2]+((P(I,K[g+2|0])|0)/1E3|0)|0;J[h>>2]=l;H[v+2|0]=(l|0)/(o|0);h=k+i|0;J[h>>2]=J[h>>2]+((P(C,K[g+2|0])|0)/1E3|0);i=A+20|0;h=i+f|0;J[h>>2]=J[h>>2]+((P(x,K[g+2|0])|0)/1E3|0);J[k+i>>2]=(P(F,K[g+2|0])|0)/1E3;E=E+1|0;n=Q(M+n);v=v+3|0}g=g+3|0;p=p+1|0;if((p|0)> +2])continue;break}}if((b|0)>(E|0)){g=f+(z<<2)|0;H[v|0]=J[g>>2]/(o|0);H[v+1|0]=J[g+4>>2]/(o|0);H[v+2|0]=J[g+8>>2]/(o|0)}J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;S=Q(O+S);s=s+1|0;v=J[r+56>>2]+P(s,J[r+52>>2])|0;g=k;k=f}p=J[a+20>>2];y=y+1|0;if((p|0)>(y|0))continue;break}}M:{N:{if(!((c|0)<=(s|0)|(b|0)<=0)){f=(G|0)<=1?1:G;q=f&1;if((f|0)!=1){h=f&2147483646;p=0;while(1){f=w<<2;H[v|0]=J[f+g>>2]/(o|0);H[v+1|0]=J[(f|4)+g>>2]/(o|0);w=w+2|0;v=v+2|0;p=p+2|0;if((h|0)!=(p|0))continue;break}}if(!q)break N;H[v|0]=J[(w<<2)+ +g>>2]/(o|0);break N}if(!g)break M}uc(g)}if(!k)break f;uc(k);break f}a=Z()|0;break d}a=Z()|0;break d;case 0:break g}if((c|0)<=0)break f;if((b|0)>0){k=0;while(1){J[a+328>>2]=(P(k,100)|0)/(c|0);if(J[a+332>>2])break f;j=Q(O*Q(k|0));O:{if(Q(R(j))>2]=K[m+988|0]|K[m+989|0]<<8|(K[m+ +990|0]<<16|K[m+991|0]<<24);Qq(r,g,k,m+8|0,0);h=J[699344];J[699344]=0;if((h|0)==1)break P;g=g+1|0;if((g|0)!=(b|0))continue;break}k=k+1|0;if((k|0)!=(c|0))continue;break f}break}a=Z()|0;break d}if(J[a+332>>2]){J[a+328>>2]=0;break f}J[a+328>>2]=(P(c,100)-100|0)/(c|0)}J[699344]=0;g=J[a+964>>2];f=J[699344];J[699344]=0;if((f|0)==1)break e;R:{if(!g)break R;if((d|0)==1){p=0;J[699344]=0;_(123,r|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if((c|0)<=0|(b|0)<=0)break R;while(1){j=Q(O*Q(p|0));S:{if(Q(R(j))< +Q(2147483648)){d=~~j;break S}d=-2147483648}g=0;T:{while(1){J[699344]=0;j=Q(M*Q(g|0));U:{if(Q(R(j))>2]=1032;J[699344]=0;_(13,g|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;_(14,g|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break R}break a}a=Z()|0;break d}a=Z()|0;Jj(g);break d}J[699344]=0;ga(108,(e?e:a)|0,r|0,1)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c}a=Z()|0}Jj(r);ba(a|0);B()}J[r>>2]=1032;J[699344]=0;_(13,r|0)|0;a=J[699344]; +J[699344]=0;if((a|0)!=1){J[699344]=0;_(14,r|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}fc=m+1968|0;return X|0}ea(0)|0;Bc();B()}function oTa(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;c=fc-240|0;fc=c;J[c+224>>2]=13;J[c+208>>2]=13;J[c+192>>2]=13;J[c+176>>2]=13;J[c+160>>2]=13;J[c+144>>2]=13;J[c+128>>2]=13;J[c+112>>2]=13;J[c+96>>2]=13;f=c+112|0;h=J[b+8>>2];g=J[a+20>>2];a:{b:{while(1){if(J[g+72>>2]==7){d=c+224|0;if(J[Ec(J[g+80>>2],h,d,0)>>2]!=5)break b;yc(d)}g= +J[g+104>>2];if(g)continue;break}J[c>>2]=h;Cc(1,-1,791510,c);break a}if(J[c+224>>2]!=7){g=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];g=kc[J[J[a>>2]+52>>2]](a)|0}J[c+48>>2]=J[b+8>>2];Cc(1,g,803770,c+48|0);yc(c+224|0);break a}if(J[a+16>>2]){lr(804827,0);Mn(c+224|0,J[655076]);Jz(10)}if(J[Ec(J[c+232>>2],805116,c+208|0,0)>>2]-3>>>0>=4294967294){g=J[a+28>>2];O[g+440>>3]=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];b=J[a+8>>2];kc[J[J[b>>2]+100>>2]](b,g)}b=c+208|0;yc(b); +if(J[Ec(J[c+232>>2],805847,b,0)>>2]==1){g=J[a+28>>2];b=J[c+216>>2];J[g+476>>2]=b>>>0<=2?b:0;b=J[a+8>>2];kc[J[J[b>>2]+92>>2]](b,g)}b=c+208|0;yc(b);if(J[Ec(J[c+232>>2],806252,b,0)>>2]==1){g=J[a+28>>2];b=J[c+216>>2];J[g+472>>2]=b>>>0<=2?b:0;b=J[a+8>>2];kc[J[J[b>>2]+88>>2]](b,g)}b=c+208|0;yc(b);if(J[Ec(J[c+232>>2],806721,b,0)>>2]-3>>>0>=4294967294){g=J[a+28>>2];O[g+480>>3]=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];b=J[a+8>>2];kc[J[J[b>>2]+96>>2]](b,g)}b=c+208|0;yc(b);d:{if(J[Ec(J[c+232>>2],807170,b,0)>> +2]!=6)break d;g=J[c+216>>2];if(J[g+12>>2]!=2)break d;b=c+96|0;Sc(g,0,b,0);Sc(J[c+216>>2],1,f,0);if(!(J[c+96>>2]!=6|J[c+112>>2]-3>>>0<4294967294))y$(a,b,g);yc(c+96|0);yc(f)}b=c+208|0;yc(b);if(J[Ec(J[c+232>>2],807592,b,0)>>2]-3>>>0>=4294967294){b=J[a+28>>2];i=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];e:{if(R(i)<2147483648){d=~~i;break e}d=-2147483648}O[b+464>>3]=d|0;g=J[a+8>>2];kc[J[J[g>>2]+84>>2]](g,b)}b=c+208|0;yc(b);if(J[Ec(J[c+232>>2],808011,b,0)>>2]==4)IJ(a,b,g);b=c+208|0;yc(b);f:{if(J[Ec(J[c+232>> +2],776266,b,0)>>2]!=6)break f;b=J[c+216>>2];if(J[b+12>>2]!=2)break f;tg(b,0,c+192|0);tg(J[c+216>>2],1,c+160|0);g:{if(J[c+192>>2]!=9|J[c+160>>2]-3>>>0<4294967294)break g;d=J[c+200>>2];h=J[c+204>>2];g=J[a+20>>2];h:{while(1){b=J[g+4>>2];if(b){J[c+40>>2]=d;J[c+44>>2]=h;J[c+64>>2]=d;J[c+68>>2]=h;b=J[b+4>>2];l=J[b+8>>2];i:{if((l|0)>0){k=J[c+44>>2];m=J[c+40>>2];j=J[b>>2];b=0;while(1){f=J[j+(b<<2)>>2];if((m|0)==J[f+8>>2]&(k|0)==J[f+12>>2])break i;b=b+1|0;if((l|0)!=(b|0))continue;break}}f=0}b=f;if(b)break h}g= +J[g+104>>2];if(g)continue;break}J[c+36>>2]=h;J[c+32>>2]=d;Cc(1,-1,785140,c+32|0);b=0}if(!b){b=J[a+28>>2];J[b+496>>2]=0;J[b+500>>2]=0;J[b+492>>2]=0;break g}i=J[c+160>>2]==1?+J[c+168>>2]:O[c+168>>3];if(J[a+16>>2]){h=J[J[b+4>>2]+4>>2];d=J[b+16>>2];if(d)d=J[d+4>>2];else d=833329;O[c+24>>3]=i;J[c+20>>2]=d;J[c+16>>2]=h;Kz(833060,c+16|0);Zi(J[655076])}d=J[a+28>>2];O[d+496>>3]=i;J[d+492>>2]=b;J[a+32>>2]=1}yc(c+192|0);yc(c+160|0)}h=c+208|0;yc(h);j:{if(J[Ec(J[c+232>>2],808459,h,0)>>2]==5)break j;d=0;b=0;j= +fc-16|0;fc=j;J[j>>2]=13;k:{l:{m:switch(J[h>>2]-4|0){case 2:d=1;n:{f=J[h+8>>2];if(J[f+12>>2]>0)while(1){Sc(f,b,j,0);if(J[j>>2]!=4)break n;f=J[j+8>>2];if(!Ic(f,834677)){f=0;break l}if(!Ic(f,835059)){f=1;break l}if(!Ic(f,835240)){f=2;break l}if(!Ic(f,835546)){f=3;break l}if(!Ic(f,835713)){f=4;break l}if(!Ic(f,835996)){f=5;break l}if(!Ic(f,837811)){f=6;break l}if(!Ic(f,838100)){f=7;break l}if(!Ic(f,838288)){f=8;break l}if(!Ic(f,838420)){f=9;break l}if(!Ic(f,838595)){f=10;break l}if(!Ic(f,838875)){f=11; +break l}if(!Ic(f,839017)){f=12;break l}if(!Ic(f,839237)){f=13;break l}if(!Ic(f,839418)){f=14;break l}if(!Ic(f,839551)){f=15;break l}if(!Ic(f,839684)){f=16;break l}yc(j);b=b+1|0;f=J[h+8>>2];if((b|0)>2])continue;break}J[c+92>>2]=0;break k}yc(j);d=0;break k;case 0:break m;default:break k}b=J[h+8>>2];f=0;o:{if(!Ic(b,834677))break o;f=1;if(!Ic(b,835059))break o;f=2;if(!Ic(b,835240))break o;f=3;if(!Ic(b,835546))break o;f=4;if(!Ic(b,835713))break o;f=5;if(!Ic(b,835996))break o;f=6;if(!Ic(b,837811))break o; +f=7;if(!Ic(b,838100))break o;f=8;if(!Ic(b,838288))break o;f=9;if(!Ic(b,838420))break o;f=10;if(!Ic(b,838595))break o;f=11;if(!Ic(b,838875))break o;f=12;if(!Ic(b,839017))break o;f=13;if(!Ic(b,839237))break o;f=14;if(!Ic(b,839418))break o;f=15;if(!Ic(b,839551))break o;if(Ic(b,839684))break k;f=16}J[c+92>>2]=J[(f<<3)+2218356>>2];d=1;break k}b=J[(f<<3)+2218356>>2];yc(j);J[c+92>>2]=b}fc=j+16|0;if(d){d=J[a+28>>2];J[d+388>>2]=J[c+92>>2];b=J[a+8>>2];kc[J[J[b>>2]+124>>2]](b,d);break j}g=-1;b=J[a+108>>2];p:{if(!b)break p; +b=J[b+4>>2];if(J[b+8>>2]==13)break p;b=J[b+16>>2];g=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,g,808838,0)}b=c+208|0;yc(b);if(J[Ec(J[c+232>>2],809241,b,0)>>2]-3>>>0>=4294967294){d=J[a+28>>2];i=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];O[d+392>>3]=i<0?0:i>1?1:i;b=J[a+8>>2];kc[J[J[b>>2]+128>>2]](b,d)}b=c+208|0;yc(b);if(J[Ec(J[c+232>>2],809606,b,0)>>2]-3>>>0>=4294967294){d=J[a+28>>2];i=J[c+208>>2]==1?+J[c+216>>2]:O[c+216>>3];O[d+400>>3]=i<0?0:i>1?1:i;b=J[a+8>>2];kc[J[J[b>>2]+132>>2]](b,d)}b=c+208|0;yc(b);h=J[Ec(J[c+ +232>>2],809769,b,0)>>2];q:{if(h)break q;d=J[a+28>>2];if(!J[d+664>>2]){J[d+408>>2]=J[c+216>>2];b=J[a+8>>2];kc[J[J[b>>2]+136>>2]](b,d);break q}b=-1;d=J[a+108>>2];r:{if(!d)break r;d=J[d+4>>2];if(J[d+8>>2]==13)break r;b=J[d+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}Cc(0,b,810054,0)}b=c+208|0;yc(b);s:{if(J[Ec(J[c+232>>2],810776,b,0)>>2])break s;d=J[a+28>>2];if(!J[d+664>>2]){J[d+412>>2]=J[c+216>>2];b=J[a+8>>2];kc[J[J[b>>2]+140>>2]](b,d);if(!h)break s;d=J[a+28>>2];J[d+408>>2]=J[c+216>>2];b=J[a+8>>2];kc[J[J[b>> +2]+136>>2]](b,d);break s}g=-1;b=J[a+108>>2];t:{if(!b)break t;b=J[b+4>>2];if(J[b+8>>2]==13)break t;b=J[b+16>>2];g=kc[J[J[b>>2]+52>>2]](b)|0}Cc(0,g,810054,0)}b=c+208|0;yc(b);u:{if(J[Ec(J[c+232>>2],811109,b,0)>>2]!=1)break u;d=J[a+28>>2];if(!J[d+664>>2]){J[d+416>>2]=J[c+216>>2];b=J[a+8>>2];kc[J[J[b>>2]+144>>2]](b,d);break u}g=-1;b=J[a+108>>2];v:{if(!b)break v;b=J[b+4>>2];if(J[b+8>>2]==13)break v;b=J[b+16>>2];g=kc[J[J[b>>2]+52>>2]](b)|0}Cc(0,g,810054,0)}b=c+208|0;yc(b);if(!J[Ec(J[c+232>>2],836800,b,0)>> +2]){d=J[a+28>>2];J[d+488>>2]=J[c+216>>2];b=J[a+8>>2];kc[J[J[b>>2]+104>>2]](b,d)}b=c+208|0;yc(b);if(J[Ec(J[c+232>>2],837184,b,0)>>2]==5){yc(b);Ec(J[c+232>>2],811528,b,0)}b=J[c+208>>2];w:{if((b|0)==5)break w;d=J[a+28>>2];if(!J[d+664>>2]){x:{y:{z:switch(b-4|0){case 0:b=J[c+216>>2];if(Ic(b,811770))if(Ic(b,812068))break y;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;vJ(d,c- -64|0);b=J[a+8>>2];kc[J[J[b>>2]+152>>2]](b,J[a+28>>2]);break w;case 3:case 4:break y;case 2:break z;default:break x}b=J[c+ +216>>2];if(J[b+12>>2]!=4)break x;d=b;b=c+192|0;Sc(d,0,b,0);n=c,o=fi(b,1,1,0),J[n+64>>2]=o;yc(b);if(!J[c+64>>2])break w;Sc(J[c+216>>2],1,b,0);n=c,o=fi(b,1,1,0),J[n+68>>2]=o;yc(b);if(!J[c+68>>2])break w;Sc(J[c+216>>2],2,b,0);n=c,o=fi(b,1,1,0),J[n+72>>2]=o;yc(b);if(!J[c+72>>2])break w;Sc(J[c+216>>2],3,b,0);n=c,o=fi(c+192|0,1,1,0),J[n+76>>2]=o;yc(b);if(!J[c+76>>2])break w;vJ(J[a+28>>2],c- -64|0);b=J[a+8>>2];kc[J[J[b>>2]+152>>2]](b,J[a+28>>2]);break w}b=fi(c+208|0,1,1,0);J[c+64>>2]=b;if(!b)break w;J[c+ +76>>2]=0;J[c+68>>2]=0;J[c+72>>2]=0;vJ(J[a+28>>2],c- -64|0);b=J[a+8>>2];kc[J[J[b>>2]+152>>2]](b,J[a+28>>2]);break w}g=-1;b=J[a+108>>2];A:{if(!b)break A;b=J[b+4>>2];if(J[b+8>>2]==13)break A;b=J[b+16>>2];g=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,g,812525,0);break w}g=-1;b=J[a+108>>2];B:{if(!b)break B;b=J[b+4>>2];if(J[b+8>>2]==13)break B;b=J[b+16>>2];g=kc[J[J[b>>2]+52>>2]](b)|0}Cc(0,g,812714,0)}b=c+208|0;yc(b);C:{if(J[Ec(J[c+232>>2],813222,b,0)>>2]==5)break C;D:{E:switch(J[c+208>>2]-4|0){case 0:if(Ic(J[c+216>> +2],813573))break D;b=J[a+8>>2];kc[J[J[b>>2]+344>>2]](b,J[a+28>>2]);break C;case 1:break C;case 3:break E;default:break D}Ec(J[c+216>>2],813921,c+192|0,0);F:{G:{if(J[c+192>>2]!=4)break G;d=J[c+200>>2];b=1;if(!Ic(d,814153))break F;if(Ic(d,814288))break G;b=0;break F}g=-1;b=J[a+108>>2];H:{if(!b)break H;b=J[b+4>>2];if(J[b+8>>2]==13)break H;b=J[b+16>>2];g=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,g,814779,0);b=0}d=c+192|0;yc(d);J[c+64>>2]=0;I:{if(J[Ec(J[c+216>>2],811528,d,0)>>2]==5)break I;J:{if(J[c+192>>2]!=4)break J; +d=J[c+200>>2];if(Ic(d,811770))if(Ic(d,812068))break J;J[c+64>>2]=0;break I}d=fi(c+192|0,1,1,0);J[c+64>>2]=d;if(d)break I;g=-1;d=J[a+108>>2];K:{if(!d)break K;d=J[d+4>>2];if(J[d+8>>2]==13)break K;d=J[d+16>>2];g=kc[J[J[d>>2]+52>>2]](d)|0}Cc(1,g,815311,0);d=J[c+64>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+64>>2]=0}k=c+192|0;yc(k);m=c+128|0;Ec(J[c+216>>2],815697,m,0);L:{if(J[Ec(J[c+216>>2],816004,k,0)>>2]==8){d=J[c+200>>2];M:{if(J[Ec(kc[J[J[d>>2]+76>>2]](d)|0,816106,c+160|0,0)>>2]==7){f=c+144|0;h=J[Ec(J[c+168>> +2],816909,f,0)>>2];d=J[c+152>>2];yc(f);l=c+176|0;Ke(J[c+216>>2],816004,l);j=h?0:d;f=J[c+64>>2];e=fc-112|0;fc=e;J[e+16>>2]=13;J[e>>2]=13;N:{if(J[a+96>>2]>20)break N;d=J[k+8>>2];g=kc[J[J[d>>2]+76>>2]](d)|0;Ec(g,817988,e+16|0,0);d=J[e+16>>2];if(!((d|0)==5|(d|0)==1&J[e+24>>2]==1)){h=-1;d=J[a+108>>2];O:{if(!d)break O;d=J[d+4>>2];if(J[d+8>>2]==13)break O;d=J[d+16>>2];h=kc[J[J[d>>2]+52>>2]](d)|0}Cc(1,h,818726,0)}d=e+16|0;yc(d);Ec(g,818915,d,0);P:{Q:{if(J[e+16>>2]==6){Sc(J[e+24>>2],0,e,0);O[e+32>>3]=J[e>> +2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);Sc(J[e+24>>2],1,e,0);O[e+40>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);Sc(J[e+24>>2],2,e,0);O[e+48>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);Sc(J[e+24>>2],3,e,0);O[e+56>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);yc(d);Ec(g,819660,d,0);if(J[e+16>>2]!=6)break Q;Sc(J[e+24>>2],0,e,0);O[e+64>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);Sc(J[e+24>>2],1,e,0);O[e+72>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);Sc(J[e+24>>2],2,e,0);O[e+80>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e); +Sc(J[e+24>>2],3,e,0);O[e+88>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);Sc(J[e+24>>2],4,e,0);O[e+96>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);Sc(J[e+24>>2],5,e,0);O[e+104>>3]=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];yc(e);break P}yc(e+16|0);f=-1;a=J[a+108>>2];R:{if(!a)break R;a=J[a+4>>2];if(J[a+8>>2]==13)break R;a=J[a+16>>2];f=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,f,819424,0);break N}J[e+80>>2]=0;J[e+84>>2]=0;J[e+104>>2]=0;J[e+108>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;J[e+64>>2]=0;J[e+68>>2]=1072693248;J[e+96>>2]=0;J[e+ +100>>2]=0;J[e+88>>2]=0;J[e+92>>2]=1072693248}k=e+16|0;yc(k);Ec(g,820122,k,0);h=J[e+24>>2];d=J[e+16>>2];J[a+96>>2]=J[a+96>>2]+1;Jw(a,l,(d|0)==7?h:0,e- -64|0,e+32|0,1,1,1,j,b,f,m);J[a+96>>2]=J[a+96>>2]-1;yc(k)}fc=e+112|0;yc(l);a=J[c+64>>2];if(!a)break M;kc[J[J[a>>2]+4>>2]](a);break M}g=-1;a=J[a+108>>2];S:{if(!a)break S;a=J[a+4>>2];if(J[a+8>>2]==13)break S;a=J[a+16>>2];g=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,g,817063,0)}yc(c+160|0);break L}g=-1;a=J[a+108>>2];T:{if(!a)break T;a=J[a+4>>2];if(J[a+8>>2]==13)break T; +a=J[a+16>>2];g=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,g,817063,0)}yc(c+192|0);yc(c+128|0);break C}g=-1;a=J[a+108>>2];U:{if(!a)break U;a=J[a+4>>2];if(J[a+8>>2]==13)break U;a=J[a+16>>2];g=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,g,817443,0)}yc(c+208|0);yc(c+224|0)}fc=c+240|0}function J0(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;g=fc-208|0;fc=g;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=a+4;J[699344]=0;ma(3482,g+188|0,b|0,c|0,d|0,e|0);b=J[699344];J[699344]=0; +a:{if((b|0)!=1){b=J[J[c>>2]+20>>2];J[699344]=0;c=_(b|0,c|0)|0;b=J[699344];J[699344]=0;b:{c:{if((b|0)==1)break c;b=J[J[c>>2]+20>>2];J[699344]=0;t=_(b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;c=J[f>>2];d=J[f+4>>2];if((c|0)!=(d|0)){u=g+192|0;while(1){d:{k=p<<2;e=J[k+c>>2];if(K[e|0])break d;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{if(H[e+59|0]>=0){J[g+184>>2]=J[e+56>>2];b=J[e+52>>2];J[g+176>>2]=J[e+48>>2];J[g+180>>2]=b;break G}c=J[e+52>>2];b=J[e+ +48>>2];J[699344]=0;ca(2838,g+176|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break F}J[699344]=0;d=g+160|0;c=H[g+187|0];b=(c|0)<0;ca(1618,d|0,(b?J[g+176>>2]:g+176|0)|0,(b?J[g+180>>2]:c&255)|0);b=J[699344];J[699344]=0;if((b|0)==1)break E;e=J[J[k+J[f>>2]>>2]+4>>2];n=e&2;s=e&1;if(!aC(d))break x;b=K[g+187|0];c=b<<24>>24;d=(c|0)<0;H:switch((d?J[g+180>>2]:b)-7|0){case 2:break A;case 0:break B;case 4:break H;default:break y}b=J[g+176>>2];if(dd(d?b:g+176|0,810212,11))break y;if((e&3)!=3)break D;e=810724; +b=16;break C}e=Z()|0;break b}e=Z()|0;break e}if(s){I:{if((c|0)<0){J[g+180>>2]=10;break I}H[g+187|0]=10;b=g+176|0}H[b+10|0]=0;c=K[811077]|K[811078]<<8;H[b+8|0]=c;H[b+9|0]=c>>>8;d=K[811073]|K[811074]<<8|(K[811075]<<16|K[811076]<<24);c=K[811069]|K[811070]<<8|(K[811071]<<16|K[811072]<<24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24;break y}if(!n)break y;e=836767;b=12}J[699344]=0;ga(2996,g+176|0,e|0,b|0)|0;b=J[699344];J[699344]=0;if((b| +0)!=1)break y;break g}if(!dd(d?J[g+176>>2]:g+176|0,837092,7))break z;break y}if(dd(d?J[g+176>>2]:g+176|0,811506,9))break y}b=e&3;if(!b)break y;J[699344]=0;aa(2834,g+176|0,(s?(b|0)==3?811902:812244:812516)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g}J[699344]=0;c=H[g+187|0];b=(c|0)<0;ca(1618,g+56|0,(b?J[g+176>>2]:g+176|0)|0,(b?J[g+180>>2]:c&255)|0);b=J[699344];J[699344]=0;if((b|0)==1)break w;if(H[g+171|0]<0)uc(J[g+160>>2]);d=g- -64|0;J[g+168>>2]=J[d>>2];b=J[g+60>>2];J[g+160>>2]=J[g+56>>2];J[g+ +164>>2]=b;J[g+8>>2]=0;J[699344]=0;J[g+204>>2]=0;i=J[693078];b=J[699344];J[699344]=0;J:{K:{if((b|0)==1)break K;if(!i)break J;b=J[J[i>>2]+24>>2];J[699344]=0;e=g+160|0;c=aa(b|0,i|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break K;if(c)break J;J[699344]=0;c=ga(3373,e|0,g+8|0,g+204|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break K;if(!c)break J;b=J[J[i>>2]+16>>2];J[699344]=0;na(b|0,i|0,e|0,J[g+8>>2],J[g+204>>2],0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break J}e=Z()|0;break f}L:{M:{e=J[f>>2];i=J[k+e>> +2];N:{if(H[i+59|0]>=0){J[d>>2]=J[i+56>>2];b=J[i+52>>2];J[g+56>>2]=J[i+48>>2];J[g+60>>2]=b;break N}c=J[i+52>>2];b=J[i+48>>2];J[699344]=0;ca(2838,g+56|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break M;e=J[f>>2]}b=J[e+k>>2];e=b+48|0;if((e|0)==(g+176|0))break k;c=K[g+187|0];d=c<<24>>24;if(H[b+59|0]>=0){if((d|0)<0)break L;b=J[g+180>>2];J[e>>2]=J[g+176>>2];J[e+4>>2]=b;J[e+8>>2]=J[g+184>>2];break k}J[699344]=0;b=(d|0)<0;ga(3483,e|0,(b?J[g+176>>2]:g+176|0)|0,(b?J[g+180>>2]:c)|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break j;break k}e=Z()|0;break f}J[699344]=0;ga(3484,e|0,J[g+176>>2],J[g+180>>2])|0;b=J[699344];J[699344]=0;if((b|0)!=1)break k;break j}Ac(g+56|0,0,104);if(s){J[699344]=0;c=_(4,4)|0;b=J[699344];J[699344]=0;if((b|0)==1)break v;J[c>>2]=1;J[g+76>>2]=c}if(n){J[699344]=0;c=_(4,4)|0;b=J[699344];J[699344]=0;if((b|0)==1)break v;J[c>>2]=1;J[g+80>>2]=c}J[699344]=0;c=_(4,12)|0;b=J[699344];J[699344]=0;if((b|0)==1)break v;O:{if(H[g+171|0]>=0){b=J[g+164>>2];J[c>>2]=J[g+160>>2];J[c+4>>2]=b;J[c+8>>2]= +J[g+168>>2];break O}J[699344]=0;ca(15,c|0,J[g+160>>2],J[g+164>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break m}J[g+56>>2]=c;b=J[J[t>>2]+20>>2];J[699344]=0;j=ga(b|0,t|0,g+56|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;if(!j)break s;b=K[j+23|0];d=b<<24>>24<0;c=J[j+16>>2];if(!(d?c:b))break s;m=j+12|0;P:{if(!d){J[g+48>>2]=J[m+8>>2];b=J[m+4>>2];J[g+40>>2]=J[m>>2];J[g+44>>2]=b;break P}b=J[m>>2];J[699344]=0;ca(15,g+40|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break o}d=J[g+188>>2];Q:{if((u|0)!= +(d|0))while(1){c=K[d+39|0];h=c<<24>>24;b=K[g+51|0];e=b<<24>>24;i=(h|0)<0;c=i?J[d+32>>2]:c;e=(e|0)<0;if((c|0)==((e?J[g+44>>2]:b)|0)){h=0;if(!c)break Q;b=d+28|0;h=0;if(!qd(i?J[b>>2]:b,e?J[g+40>>2]:g+40|0,c))break Q}e=J[d+4>>2];R:{if(e)while(1){c=e;e=J[c>>2];if(e)continue;break R}while(1){c=J[d+8>>2];b=J[c>>2]!=(d|0);d=c;if(b)continue;break}}d=c;if((c|0)!=(u|0))continue;break}h=1}i=h;S:{T:{U:{V:{if(H[j+11|0]>=0){J[g+32>>2]=J[j+8>>2];b=J[j+4>>2];J[g+24>>2]=J[j>>2];J[g+28>>2]=b;break V}c=J[j+4>>2];b=J[j>> +2];J[699344]=0;ca(15,g+24|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break U}b=K[g+35|0];if((b<<24>>24<0?J[g+28>>2]:b)>>>0<8)break S;J[699344]=0;d=g+24|0;c=aa(3358,d|0,6)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;if(J[c>>2]!=43)break S;J[699344]=0;c=aa(3358,d|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break T;if(J[c>>2]-65>>>0>=26)break S;J[699344]=0;c=aa(3358,d|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break T;if(J[c>>2]-65>>>0>25)break S;J[699344]=0;c=aa(3358,d|0,2)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break T;if(J[c>>2]-65>>>0>25)break S;J[699344]=0;c=aa(3358,d|0,3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break T;if(J[c>>2]-65>>>0>25)break S;J[699344]=0;c=aa(3358,d|0,4)|0;b=J[699344];J[699344]=0;if((b|0)==1)break T;if(J[c>>2]-65>>>0>25)break S;J[699344]=0;c=aa(3358,d|0,5)|0;b=J[699344];J[699344]=0;if((b|0)==1)break T;if(J[c>>2]-65>>>0>25)break S;J[699344]=0;ca(2971,d|0,0,7);b=J[699344];J[699344]=0;if((b|0)!=1)break S;e=Z()|0;break q}e=Z()|0;break p}e=Z()|0;break q}W:{X:{Y:{if(!i){J[699344]= +0;c=H[g+35|0];b=(c|0)<0;ia(1626,g+8|0,(b?J[g+24>>2]:g+24|0)|0,(b?J[g+28>>2]:c&255)|0,0);b=J[699344];J[699344]=0;if((b|0)!=1){c=J[k+J[f>>2]>>2];if(H[c+59|0]<0)uc(J[c+48>>2]);b=J[g+12>>2];J[c+48>>2]=J[g+8>>2];J[c+52>>2]=b;J[c+56>>2]=J[g+16>>2];J[699344]=0;b=g+24|0;J[g+204>>2]=b;la(3461,g+8|0,a|0,b|0,853832,g+204|0,g+203|0);b=J[699344];J[699344]=0;if((b|0)==1)break r;b=J[g+8>>2];h=b+28|0;if((h|0)==(m|0))break X;d=K[j+23|0];e=d<<24>>24;if(H[b+39|0]<0)break Y;if((e|0)>=0){b=J[m+4>>2];J[h>>2]=J[m>>2];J[h+ +4>>2]=b;J[h+8>>2]=J[m+8>>2];break X}c=J[j+16>>2];b=J[j+12>>2];J[699344]=0;ga(1631,h|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break X;break r}e=Z()|0;break q}b=J[k+J[f>>2]>>2];J[b+4>>2]=J[b+4>>2]|64;J[699344]=0;c=H[g+35|0];b=(c|0)<0;ia(1626,g+8|0,(b?J[g+24>>2]:g+24|0)|0,(b?J[g+28>>2]:c&255)|0,0);b=J[699344];J[699344]=0;if((b|0)!=1){c=J[k+J[f>>2]>>2];if(H[c+71|0]<0)uc(J[c+60>>2]);b=J[g+12>>2];J[c+60>>2]=J[g+8>>2];J[c+64>>2]=b;J[c+68>>2]=J[g+16>>2];l=J[f>>2];b=J[k+l>>2];H[b|0]=1;b=b+60|0;break W}e= +Z()|0;break q}b=J[j+12>>2];c=J[j+16>>2];J[699344]=0;j=b;b=(e|0)<0;ga(1630,h|0,(b?j:m)|0,(b?c:d)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r}l=J[f>>2];b=J[k+l>>2];H[b|0]=1;b=b+48|0}Z:{if(H[b+11|0]>=0){J[g+16>>2]=J[b+8>>2];c=J[b+4>>2];J[g+8>>2]=J[b>>2];J[g+12>>2]=c;break Z}c=J[b+4>>2];b=J[b>>2];J[699344]=0;ca(2838,g+8|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break u;l=J[f>>2]}q=J[f+4>>2];if(q-l>>2>>>0<=p>>>0)break t;k=n>>>1|0;b=p;while(1){m=b<<2;r=J[m+l>>2];o=J[r+52>>2];d=K[r+59|0];n=d<< +24>>24;j=(n|0)<0;c=K[g+187|0];e=c<<24>>24<0;_:{if(((j?o:d)|0)!=((e?J[g+180>>2]:c)|0))break _;h=r+48|0;c=e?J[g+176>>2]:g+176|0;$:{if(!j){e=h;if(!n)break $;while(1){if(K[e|0]!=K[c|0])break _;c=c+1|0;e=e+1|0;d=d-1|0;if(d)continue;break}break $}if(!o)break $;if(dd(J[h>>2],c,o))break _}c=J[r+4>>2];if((c&1)!=(s|0)|(k|0)!=(c>>>1&1))break _;aa:{ba:{ca:{da:{ea:{fa:{if(!i){if((g+8|0)==(h|0))break aa;c=H[g+19|0];if(!j){if((c|0)<0)break fa;break ba}e=c>>>31|0;d=(c|0)<0?J[g+8>>2]:g+8|0;break da}J[r+4>>2]=c|64; +h=r+60|0;if((h|0)==(g+8|0))break aa;c=H[g+19|0];if(H[r+71|0]<0)break ea;if((c|0)>=0)break ba}J[699344]=0;ga(3484,h|0,J[g+8>>2],J[g+12>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break ca;break aa}e=c>>>31|0;d=(c|0)<0?J[g+8>>2]:g+8|0}J[699344]=0;ga(3483,h|0,d|0,(e?J[g+12>>2]:c&255)|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break aa}e=Z()|0;if(H[g+19|0]>=0)break q;uc(J[g+8>>2]);break q}c=J[g+12>>2];J[h>>2]=J[g+8>>2];J[h+4>>2]=c;J[h+8>>2]=J[g+16>>2]}l=J[f>>2];H[J[m+l>>2]]=1;q=J[f+4>>2]}b=b+1|0;if(b>>> +0>2>>>0)continue;break}break t}e=Z()|0;break f}e=Z()|0;break l}e=Z()|0;break q}if(H[g+19|0]<0)uc(J[g+8>>2]);if(H[g+35|0]<0)uc(J[g+24>>2]);if(H[g+51|0]>=0)break s;uc(J[g+40>>2])}bp(g+56|0);break h}e=Z()|0}if(H[g+35|0]>=0)break p;uc(J[g+24>>2])}if(H[g+51|0]>=0)break l;uc(J[g+40>>2]);break l}e=Z()|0;break l}e=Z()|0;break l}e=Z()|0;uc(c)}bp(g+56|0);break f}H[J[k+J[f>>2]>>2]]=1;J[699344]=0;c=g+160|0;J[g+24>>2]=c;la(3461,g+40|0,a|0,c|0,853832,g+24|0,g+203|0);b=J[699344];J[699344]=0;if((b|0)==1)break j; +b=J[g+40>>2];e=b+28|0;ga:{if((e|0)==(c|0))break ga;c=K[g+171|0];d=c<<24>>24;if(H[b+39|0]>=0){if((d|0)>=0){b=J[g+164>>2];J[e>>2]=J[g+160>>2];J[e+4>>2]=b;J[e+8>>2]=J[g+168>>2];break ga}J[699344]=0;ga(1631,e|0,J[g+160>>2],J[g+164>>2])|0;b=J[699344];J[699344]=0;if((b|0)!=1)break ga;break j}J[699344]=0;b=(d|0)<0;ga(1630,e|0,(b?J[g+160>>2]:g+160|0)|0,(b?J[g+164>>2]:c)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j}q=J[f+4>>2];l=J[f>>2];if(q-l>>2>>>0<=p>>>0)break i;m=n>>>1|0;b=p;while(1){n=b<<2;o=J[n+ +l>>2];j=J[o+52>>2];d=K[o+59|0];h=d<<24>>24;k=(h|0)<0;c=K[g+67|0];e=c<<24>>24<0;ha:{if(((k?j:d)|0)!=((e?J[g+60>>2]:c)|0))break ha;i=o+48|0;c=e?J[g+56>>2]:g+56|0;ia:{if(!k){e=i;if(!h)break ia;while(1){if(K[e|0]!=K[c|0])break ha;c=c+1|0;e=e+1|0;d=d-1|0;if(d)continue;break}break ia}if(!j)break ia;if(dd(J[i>>2],c,j))break ha}c=J[o+4>>2];if((c&1)!=(s|0)|(m|0)!=(c>>>1&1))break ha;ja:{if((i|0)==(g+176|0))break ja;d=K[g+187|0];c=d<<24>>24;ka:{la:{if(!k){if((c|0)<0)break la;c=J[g+180>>2];J[i>>2]=J[g+176>>2]; +J[i+4>>2]=c;J[i+8>>2]=J[g+184>>2];break ja}J[699344]=0;c=(c|0)<0;ga(3483,i|0,(c?J[g+176>>2]:g+176|0)|0,(c?J[g+180>>2]:d)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ka;break ja}J[699344]=0;ga(3484,i|0,J[g+176>>2],J[g+180>>2])|0;c=J[699344];J[699344]=0;if((c|0)!=1)break ja}break j}l=J[f>>2];H[J[n+l>>2]]=1;q=J[f+4>>2]}b=b+1|0;if(b>>>0>2>>>0)continue;break}break i}e=Z()|0;if(H[g+67|0]>=0)break f;uc(J[g+56>>2]);break f}if(H[g+67|0]>=0)break h;uc(J[g+56>>2])}if(H[g+171|0]<0)uc(J[g+160>>2]);if(H[g+ +187|0]<0)uc(J[g+176>>2]);c=J[f>>2];d=J[f+4>>2];break d}e=Z()|0}if(H[g+171|0]>=0)break e;uc(J[g+160>>2])}if(H[g+187|0]>=0)break b;uc(J[g+176>>2]);break b}p=p+1|0;if(p>>>0>2>>>0)continue;break}}dj(g+188|0,J[g+192>>2]);fc=g+208|0;return}e=Z()|0}dj(g+188|0,J[g+192>>2]);break a}e=Z()|0}dj(a,J[a+4>>2]);ba(e|0);B()}function AGa(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;d=fc-208|0;fc=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(Th(a))break l;if(!c)HF(b,2384184);J[d+200>>2]=0;J[d+192>> +2]=0;J[d+196>>2]=0;J[d+184>>2]=0;J[699344]=0;J[d+176>>2]=0;J[d+180>>2]=0;ca(4963,a|0,2384200,d+192|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[699344]=0;ca(4963,a|0,2384244,d+176|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;g=H[d+203|0];f=(g|0)<0?J[d+196>>2]:g&255;e=f+3|0;if(e>>>0>=1073741808){J[699344]=0;$(2959,d+160|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break a}m:{if(e>>>0<=1){J[d+168>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;H[d+171|0]=e;c=d+160|0;break m}c=e|3;if(c>>>0>=1073741823){J[699344]= +0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break c}J[699344]=0;j=c+1|0;c=_(4,j<<2)|0;h=J[699344];J[699344]=0;if((h|0)==1)break c;J[d+164>>2]=e;J[d+160>>2]=c;J[d+168>>2]=j|-2147483648}J[c+8>>2]=J[596072];e=J[596071];J[c>>2]=J[596070];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=cd(e,(g|0)<0?J[d+192>>2]:d+192|0,c)+c|0,l=0,J[k>>2]=l;J[699344]=0;c=K[d+171|0];e=c<<24>>24<0;ga(2960,b|0,(e?J[d+160>>2]:d+160|0)|0,(e?J[d+164>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(H[d+171|0]<0)uc(J[d+160>>2]); +J[d+168>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;J[d+152>>2]=0;J[699344]=0;J[d+144>>2]=0;J[d+148>>2]=0;j=$g(a);c=J[699344];J[699344]=0;if((c|0)==1)break g;while(1){J[699344]=0;c=aa(4975,a|0,j|0)|0;e=J[699344];J[699344]=0;n:{o:{if((e|0)==1)break o;p:{if(c){J[699344]=0;da(4962,d+128|0,a|0);c=J[699344];J[699344]=0;q:{r:{s:{if((c|0)!=1){if(H[d+171|0]<0)uc(J[d+160>>2]);J[d+168>>2]=J[d+136>>2];c=J[d+132>>2];J[d+160>>2]=J[d+128>>2];J[d+164>>2]=c;t:{e=J[d+164>>2];c=H[d+171|0];g=c&255;f=(c|0)<0;if(((f?e:g)|0)==15){if(!qd(f? +J[d+160>>2]:d+160|0,2384296,15))break t;e=J[d+164>>2];g=K[d+171|0];c=g}f=c<<24>>24<0;if(((f?e:g)|0)==17)break q;break p}J[699344]=0;ca(4963,a|0,2384360,d+144|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;c=H[d+155|0];g=(c|0)<0;u:{v:{f=g?J[d+148>>2]:c&255;e=f+3|0;w:{if(e>>>0>=1073741808){J[699344]=0;$(2959,d+128|0);break w}if(e>>>0<=1){J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;H[d+139|0]=e;c=d+128|0;break u}c=e|3;if(c>>>0<1073741823)break v;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a; +a=Z()|0;break f}J[699344]=0;h=c+1|0;c=_(4,h<<2)|0;i=J[699344];J[699344]=0;if((i|0)==1)break s;J[d+132>>2]=e;J[d+128>>2]=c;J[d+136>>2]=h|-2147483648}J[c+8>>2]=J[596099];e=J[596098];J[c>>2]=J[596097];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=cd(e,g?J[d+144>>2]:d+144|0,c)+c|0,l=0,J[k>>2]=l;J[699344]=0;c=K[d+139|0];e=c<<24>>24<0;ga(2960,b|0,(e?J[d+128>>2]:d+128|0)|0,(e?J[d+132>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break r;if(H[d+139|0]>=0)continue;uc(J[d+128>>2]);continue}a=Z()|0;break f}a=Z()|0;break f}a= +Z()|0;if(H[d+139|0]>=0)break f;uc(J[d+128>>2]);break f}if(qd(f?J[d+160>>2]:d+160|0,2384404,17)){e=J[d+164>>2];g=K[d+171|0];c=g;break p}J[699344]=0;ca(4963,a|0,2384360,d+144|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;c=H[d+155|0];g=(c|0)<0;x:{y:{z:{A:{f=g?J[d+148>>2]:c&255;e=f+3|0;B:{if(e>>>0>=1073741808){J[699344]=0;$(2959,d+128|0);break B}if(e>>>0<=1){J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;H[d+139|0]=e;c=d+128|0;break z}c=e|3;if(c>>>0<1073741823)break A;J[699344]=0;ka(209)}a=J[699344];J[699344]= +0;if((a|0)!=1)break a;a=Z()|0;break f}J[699344]=0;h=c+1|0;c=_(4,h<<2)|0;i=J[699344];J[699344]=0;if((i|0)==1)break y;J[d+132>>2]=e;J[d+128>>2]=c;J[d+136>>2]=h|-2147483648}J[c+8>>2]=J[596121];e=J[596120];J[c>>2]=J[596119];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=cd(e,g?J[d+144>>2]:d+144|0,c)+c|0,l=0,J[k>>2]=l;J[699344]=0;c=K[d+139|0];e=c<<24>>24<0;ga(2960,b|0,(e?J[d+128>>2]:d+128|0)|0,(e?J[d+132>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break x;if(H[d+139|0]>=0)continue;uc(J[d+128>>2]);continue}a=Z()|0; +break f}a=Z()|0;if(H[d+139|0]>=0)break f;uc(J[d+128>>2]);break f}J[699344]=0;a=_(5025,d+176|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;if(a){J[699344]=0;aa(3026,b|0,2384980)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g}if(H[d+155|0]<0)uc(J[d+144>>2]);if(H[d+171|0]<0)uc(J[d+160>>2]);if(H[d+187|0]<0)uc(J[d+176>>2]);if(H[d+203|0]>=0)break l;uc(J[d+192>>2]);break l}f=c<<24>>24<0;if(((f?e:g)|0)!=26)break n;if(qd(f?J[d+160>>2]:d+160|0,2384492,26)){e=J[d+164>>2];g=K[d+171|0];c=g;break n}J[699344]= +0;ca(4963,a|0,2384360,d+144|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;c=H[d+155|0];g=(c|0)<0;C:{D:{E:{F:{f=g?J[d+148>>2]:c&255;e=f+3|0;G:{if(e>>>0>=1073741808){J[699344]=0;$(2959,d+128|0);break G}if(e>>>0<=1){J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;H[d+139|0]=e;c=d+128|0;break E}c=e|3;if(c>>>0<1073741823)break F;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;break f}J[699344]=0;h=c+1|0;c=_(4,h<<2)|0;i=J[699344];J[699344]=0;if((i|0)==1)break D;J[d+132>>2]=e;J[d+128>> +2]=c;J[d+136>>2]=h|-2147483648}J[c+8>>2]=J[596152];e=J[596151];J[c>>2]=J[596150];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=cd(e,g?J[d+144>>2]:d+144|0,c)+c|0,l=0,J[k>>2]=l;J[699344]=0;c=K[d+139|0];e=c<<24>>24<0;ga(2960,b|0,(e?J[d+128>>2]:d+128|0)|0,(e?J[d+132>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break C;if(H[d+139|0]>=0)continue;uc(J[d+128>>2]);continue}a=Z()|0;break f}a=Z()|0;if(H[d+139|0]>=0)break f;uc(J[d+128>>2]);break f}a=Z()|0;break f}c=c<<24>>24<0;if(((c?e:g)|0)!=10)continue;if(qd(c?J[d+160>> +2]:d+160|0,2384616,10))continue;J[d+136>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[d+120>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+88>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[d+72>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;J[699344]=0;c=vk(a);e=J[699344];J[699344]=0;if((e|0)==1)break k;H:{I:{if(!c)break I;J[699344]=0;da(4970,d+48|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break i;J:{while(1){c=K[d+59|0];g=c<<24>>24;f=(g|0)<0;K:{L:{M:{N:{O:{P:{e=J[d+52>>2];switch((f?e:c)|0){case 0:break J; +case 4:break P;default:break O}}if(!qd(f?J[d+48>>2]:d+48|0,2384660,4))break N;e=J[d+52>>2];c=K[d+59|0];g=c}f=g<<24>>24<0;if(((f?e:c)|0)==13)break M;break L}J[699344]=0;da(4971,d+32|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break j;if(H[d+139|0]<0)uc(J[d+128>>2]);J[d+136>>2]=J[d+40>>2];c=J[d+36>>2];J[d+128>>2]=J[d+32>>2];J[d+132>>2]=c;break K}if(qd(f?J[d+48>>2]:d+48|0,2384680,13)){e=J[d+52>>2];c=K[d+59|0];g=c;break L}J[699344]=0;da(4971,d+32|0,a|0);c=J[699344];J[699344]=0;if((c|0)!=1){if(H[d+123| +0]<0)uc(J[d+112>>2]);J[d+120>>2]=J[d+40>>2];c=J[d+36>>2];J[d+112>>2]=J[d+32>>2];J[d+116>>2]=c;break K}break j}Q:{f=g<<24>>24<0;if(((f?e:c)|0)!=10)break Q;if(qd(f?J[d+48>>2]:d+48|0,2384736,10)){e=J[d+52>>2];c=K[d+59|0];g=c;break Q}J[699344]=0;da(4971,d+32|0,a|0);c=J[699344];J[699344]=0;if((c|0)!=1){if(H[d+107|0]<0)uc(J[d+96>>2]);J[d+104>>2]=J[d+40>>2];c=J[d+36>>2];J[d+96>>2]=J[d+32>>2];J[d+100>>2]=c;break K}break j}R:{f=g<<24>>24<0;if(((f?e:c)|0)!=14)break R;if(qd(f?J[d+48>>2]:d+48|0,2384780,14)){e= +J[d+52>>2];c=K[d+59|0];g=c;break R}J[699344]=0;da(4971,d+32|0,a|0);c=J[699344];J[699344]=0;if((c|0)!=1){if(H[d+91|0]<0)uc(J[d+80>>2]);J[d+88>>2]=J[d+40>>2];c=J[d+36>>2];J[d+80>>2]=J[d+32>>2];J[d+84>>2]=c;break K}break j}f=c;c=g<<24>>24<0;if(((c?e:f)|0)!=5)break K;if(qd(c?J[d+48>>2]:d+48|0,2384840,5))break K;J[699344]=0;da(4971,d+32|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break H;if(H[d+75|0]<0)uc(J[d+64>>2]);J[d+72>>2]=J[d+40>>2];c=J[d+36>>2];J[d+64>>2]=J[d+32>>2];J[d+68>>2]=c}J[699344]=0;c=Mi(a); +e=J[699344];J[699344]=0;if((e|0)!=1){if(!c)break J;J[699344]=0;da(4970,d+32|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break j;if(H[d+59|0]<0)uc(J[d+48>>2]);J[d+56>>2]=J[d+40>>2];c=J[d+36>>2];J[d+48>>2]=J[d+32>>2];J[d+52>>2]=c;continue}break}break j}J[699344]=0;gj(a);c=J[699344];J[699344]=0;if((c|0)==1)break j;if(H[d+59|0]>=0)break I;uc(J[d+48>>2])}c=H[d+139|0];g=(c|0)<0;S:{T:{U:{V:{W:{X:{Y:{Z:{_:{$:{aa:{f=g?J[d+132>>2]:c&255;e=f+3|0;ba:{if(e>>>0>=1073741808){J[699344]=0;$(2959,d|0);break ba}if(e>>> +0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=e;c=d;break $}c=e|3;if(c>>>0<1073741823)break aa;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;break h}J[699344]=0;h=c+1|0;c=_(4,h<<2)|0;i=J[699344];J[699344]=0;if((i|0)==1)break _;J[d+4>>2]=e;J[d>>2]=c;J[d+8>>2]=h|-2147483648}J[c+8>>2]=J[596218];e=J[596217];J[c>>2]=J[596216];J[c+4>>2]=e;e=c+12|0;c=f<<2;k=cd(e,g?J[d+128>>2]:d+128|0,c)+c|0,l=0,J[k>>2]=l;J[699344]=0;c=aa(3026,d|0,2384880)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break Z;J[d+24>>2]=J[c+8>>2];e=J[c+4>>2];J[d+16>>2]=J[c>>2];J[d+20>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[699344]=0;c=K[d+123|0];e=c<<24>>24<0;c=ga(2960,d+16|0,(e?J[d+112>>2]:d+112|0)|0,(e?J[d+116>>2]:c)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Y;J[d+40>>2]=J[c+8>>2];e=J[c+4>>2];J[d+32>>2]=J[c>>2];J[d+36>>2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[699344]=0;c=aa(3026,d+32|0,2384880)|0;e=J[699344];J[699344]=0;if((e|0)==1)break X;J[d+56>>2]=J[c+8>>2];e=J[c+4>>2];J[d+48>>2]=J[c>>2];J[d+52>> +2]=e;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[699344]=0;c=K[d+59|0];e=c<<24>>24<0;ga(2960,b|0,(e?J[d+48>>2]:d+48|0)|0,(e?J[d+52>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break W;if(H[d+59|0]<0)uc(J[d+48>>2]);if(H[d+43|0]<0)uc(J[d+32>>2]);if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+11|0]<0)uc(J[d>>2]);J[699344]=0;c=_(5025,d+96|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;J[699344]=0;aa(3026,b|0,(c?2384888:2384900)|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break S;break k}a=Z()|0;break h}a=Z()|0;break T}a= +Z()|0;break U}a=Z()|0;break V}a=Z()|0;if(H[d+59|0]>=0)break V;uc(J[d+48>>2])}if(H[d+43|0]>=0)break U;uc(J[d+32>>2])}if(H[d+27|0]>=0)break T;uc(J[d+16>>2])}if(H[d+11|0]>=0)break h;uc(J[d>>2]);break h}e=K[d+91|0];c=e<<24>>24<0;ca:{da:{if(((c?J[d+84>>2]:e)|0)!=16)break da;if(qd(c?J[d+80>>2]:d+80|0,2384912,16))break da;c=2384888;break ca}c=2384900}J[699344]=0;aa(3026,b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;J[699344]=0;c=K[d+75|0];e=c<<24>>24<0;ga(2960,b|0,(e?J[d+64>>2]:d- -64|0)|0,(e?J[d+ +68>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;if(H[d+75|0]<0)uc(J[d+64>>2]);if(H[d+91|0]<0)uc(J[d+80>>2]);if(H[d+107|0]<0)uc(J[d+96>>2]);if(H[d+123|0]<0)uc(J[d+112>>2]);if(H[d+139|0]>=0)continue;uc(J[d+128>>2]);continue}break}break j}fc=d+208|0;return}a=Z()|0;break h}a=Z()|0;if(H[d+59|0]>=0)break h;uc(J[d+48>>2]);break h}a=Z()|0}if(H[d+75|0]<0)uc(J[d+64>>2]);if(H[d+91|0]<0)uc(J[d+80>>2]);if(H[d+107|0]<0)uc(J[d+96>>2]);if(H[d+123|0]<0)uc(J[d+112>>2]);if(H[d+139|0]>=0)break f;uc(J[d+128>> +2]);break f}a=Z()|0}if(H[d+155|0]<0)uc(J[d+144>>2]);if(H[d+171|0]>=0)break b;uc(J[d+160>>2]);break b}a=Z()|0;if(H[d+171|0]>=0)break b;uc(J[d+160>>2]);break b}a=Z()|0;break b}a=Z()|0}if(H[d+187|0]<0)uc(J[d+176>>2]);if(H[d+203|0]<0)uc(J[d+192>>2]);ba(a|0);B()}B()}function sQ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-32|0;fc=g;h=J[a+584>>2];b=J[h+168>>2];if(!b){b=kc[J[a+648>>2]](J[a+628>>2])|0;J[h+168>>2]=b}c=J[h+196>>2];a:{if(!c)break a;if(b>>>0<=c>>>0){J[h+196>>2]=0;J[h+200>>2]=0;break a}d= +J[h+200>>2];if(c+d>>>0<=b>>>0?d:0)break a;J[h+200>>2]=b-c}J[h+1124>>2]=0;J[h+1128>>2]=0;b=J[a+180>>2];I[h+1148>>1]=0;J[h+1144>>2]=0;J[h+1132>>2]=b;b=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{while(1){l:{m:{n:{o:{p:{if(!(b&65535)){if(!ek(h)){c=0;break d}b=L[h+1148>>1];if(!b)break p}q:{c=J[h+1152>>2];if(K[c|0]!=255)break q;b=b-1|0;I[h+1148>>1]=b;c=c+1|0;J[h+1152>>2]=c;r:{s:{t:{u:{v:{w:{while(1){if(!(b&65535)){if(!ek(h)){c=0;break d}b=L[h+1148>>1];if(!b)break c;c=J[h+1152>>2]}e=K[c|0];b=b-1|0;I[h+1148>>1]=b;c= +c+1|0;J[h+1152>>2]=c;x:switch(e-192|0){case 24:break m;case 26:break s;case 0:case 1:case 3:break t;case 4:break u;case 27:break v;case 29:break w;case 63:continue;case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 62:break x;default:break r}break}c=0;if(!qo(h,g+10|0))break d;d=L[g+10>>1];if(d>>>0<=1){if(K[h+205|0])break d;Uc(J[a+628>>2],96656,79280,0);break d}if((d|0)==2)break m;b=L[h+1148>>1];e=d-2|0;c=e&65535;d=b>>> +0>>0?b:c;J[h+1152>>2]=d+J[h+1152>>2];I[h+1148>>1]=b-d;if(b>>>0>=c>>>0)break m;H[h+1140|0]=0;b=J[h+1144>>2];c=e-d|0;c=(b>>>0<(c&65535)>>>0?b:c)&65535;J[h+1144>>2]=b-c;J[h+1136>>2]=c+J[h+1136>>2];break m}y:{b=J[a+584>>2];if(!qo(b,g+16|0))break y;if(L[g+16>>1]!=4){Uc(J[a+628>>2],96736,82212,0);c=0;break d}if(!qo(b,g+16|0))break y;I[b+300>>1]=L[g+16>>1];break m}c=0;break d}b=J[a+584>>2];if(!qo(b,g+16|0))break e;d=K[b+205|0];c=L[g+16>>1];if(c>>>0<=2){if(d)break e;f=82392;break f}c=c-2|0;if(d){d=L[b+ +1148>>1];e=c&65535;i=d>>>0>>0?d:e;J[b+1152>>2]=i+J[b+1152>>2];I[b+1148>>1]=d-i;if(d>>>0>=e>>>0)break m;H[b+1140|0]=0;d=J[b+1144>>2];c=c-i|0;c=(d>>>0<(c&65535)>>>0?d:c)&65535;J[b+1144>>2]=d-c;J[b+1136>>2]=c+J[b+1136>>2];break m}while(1){f=82392;if((c&65535)>>>0<65)break f;j=Dc(73);if(!j){f=82424;break f}J[j>>2]=73;J[j+4>>2]=1124129791;e=L[b+1148>>1];d=65;i=j+8|0;while(1){if(!(e&65535)){if(!ek(b))break e;e=L[b+1148>>1];if(!e)break b}k=d&65535;e=e&65535;k=e>>>0>k>>>0?k:e;Ue(i,J[b+1152>>2],k);J[b+ +1152>>2]=k+J[b+1152>>2];e=L[b+1148>>1]-k|0;I[b+1148>>1]=e;i=i+k|0;d=d-k|0;if(d&65535)continue;break}d=K[j+8|0]&15;if(d>>>0>3)break f;d=b+(d<<2)|0;e=J[d+252>>2];if(e)uc(e);J[d+252>>2]=j;c=c-65|0;if(c&65535)continue;break}break m}b=J[a+584>>2];if(!qo(b,g+16|0))break g;c=K[b+205|0];d=L[g+16>>1];if(d>>>0<=2){if(c)break g;e=82834;break h}if(c){c=L[b+1148>>1];i=d-2|0;d=i&65535;e=c>>>0>>0?c:d;J[b+1152>>2]=e+J[b+1152>>2];I[b+1148>>1]=c-e;if(c>>>0>=d>>>0)break m;H[b+1140|0]=0;c=J[b+1144>>2];d=i-e|0;d=(c>>> +0<(d&65535)>>>0?c:d)&65535;J[b+1144>>2]=c-d;J[b+1136>>2]=d+J[b+1136>>2];break m}e=d+6|0;c=Dc(e);if(!c){e=82424;break h}H[c+7|0]=d;H[c+4|0]=255;H[c+5|0]=196;J[c>>2]=e;H[c+6|0]=d>>>8;d=d-2|0;e=L[b+1148>>1];i=c+8|0;while(1){if(!(e&65535)){if(!ek(b))break g;e=L[b+1148>>1];if(!e)break b}f=d&65535;e=e&65535;f=e>>>0>f>>>0?f:e;Ue(i,J[b+1152>>2],f);J[b+1152>>2]=f+J[b+1152>>2];e=L[b+1148>>1]-f|0;I[b+1148>>1]=e;i=f+i|0;d=d-f|0;if(d&65535)continue;break}e=82834;z:{d=K[c+8|0];i=d&240;if(i){if((i|0)==16)break z; +break h}if(d>>>0>3)break h;b=b+(d<<2)|0;d=J[b+268>>2];if(d)uc(d);J[b+268>>2]=c;break m}d=d&15;if(d>>>0>3)break h;b=b+(d<<2)|0;d=J[b+284>>2];if(d)uc(d);J[b+284>>2]=c;break m}b=J[a+584>>2];d=79280;if(K[b+303|0])break j;if(!K[b+205|0])H[b+304|0]=e;if(!qo(b,g+16|0))break i;c=L[g+16>>1];if(c>>>0<=10){if(K[b+205|0])break i;d=83041;break j}c=c-8|0;j=c&65535;i=(j>>>0)/3|0;if(c-P(i,3)&65535){if(K[b+205|0])break i;d=83041;break j}c=K[b+205|0];d=86901;if(!(c|(i|0)==K[b+192|0]))break j;d=L[b+1148>>1];if(!d){if(!ek(b))break i; +d=L[b+1148>>1];if(!d)break c;c=K[b+205|0]}f=J[b+1152>>2];k=K[f|0];H[g+15|0]=k;I[b+1148>>1]=d-1;J[b+1152>>2]=f+1;if((k|0)!=8){if(c&255)break i;d=87074;break j}A:{if(c&255){c=L[b+1148>>1];d=c>>>0<4;f=d?c:4;J[b+1152>>2]=f+J[b+1152>>2];I[b+1148>>1]=c-f;if(d){H[b+1140|0]=0;c=J[b+1144>>2];d=4-f|0;d=(c>>>0<(d&65535)>>>0?c:d)&65535;J[b+1144>>2]=c-d;J[b+1136>>2]=d+J[b+1136>>2]}break A}if(!qo(b,g+12|0))break i;c=L[g+12>>1];d=87282;if(!(c>>>0>=M[b+176>>2]|c>>>0>=M[b+188>>2]))break j;J[b+312>>2]=c;if(!qo(b,g+ +12|0))break i;c=L[g+12>>1];d=87431;if(!(c>>>0>=M[b+172>>2]|c>>>0>=M[b+180>>2]))break j;J[b+308>>2]=c}if(!cr(b,g+15|0))break i;if((i|0)==K[g+15|0]){if(!cr(b,g+15|0))break i;if(!K[b+205|0])H[b+316|0]=K[g+15|0];if(!cr(b,g+15|0))break i;c=K[g+15|0];if(K[b+205|0]){d=c&15;H[b+209|0]=d;c=c>>>4|0;H[b+208|0]=c;if(!(!(1<>>0>4|d>>>0>4))if(1<>2];J[g>>2]=e;Uc(a,96656,79962,g);c=0;break d}c=1;if(K[h+205|0])break d;break l}fa(80397,70472,1964,96679);B()}fa(79641,70472,1298,96656);B()}if(!cr(b,g+15|0))break i;d=K[b+205|0];if(!d)H[b+322|0]=K[g+15|0];c=1;if(j>>>0>=6)while(1){if(!cr(b,g+15|0))break i;if(!K[b+205|0])H[(b+c|0)+316|0]=K[g+15|0];if(!cr(b,g+15|0))break i;d=K[g+15|0];B:{if(K[b+205|0]){if((d|0)==17)break B;H[b+210|0]=1;break B}H[(b+c|0)+319|0]=d;if(K[b+210| +0])break B;if((d|0)!=17)break k}if(!cr(b,g+15|0))break i;d=K[b+205|0];if(!d)H[(b+c|0)+322|0]=K[g+15|0];c=c+1|0;if((i|0)!=(c|0))continue;break}if(!d)H[b+303|0]=1;if(K[h+205|0]){c=1;break d}if((e|0)==218)break l}b=L[h+1148>>1];continue}break}c=1;if(K[h+303|0])break d;C:{e=J[a+584>>2];if(!J[e+216>>2]){i=a+628|0;b=87978;break C}b=0;H[e+1140|0]=0;c=K[e+192|0];if(c){i=a+628|0;j=e+322|0;d=-1;while(1){D:{E:{k=e+(b<<2)|0;l=J[k+216>>2];if(!l){f=b-1|0;break E}F:{if(!b)break F;f=b-1|0;if((l|0)==J[(e+(f<<2)|0)+ +216>>2])break E;c=0;if(b>>>0<=1)break F;while(1){if((l|0)!=J[(e+(c<<2)|0)+216>>2]){c=c+1|0;if((d|0)!=(c|0))continue;break F}break}b=88053;break C}f=Dc(73);if(!f){b=82424;break C}H[f+8|0]=b;J[f>>2]=73;J[f+4>>2]=1124129791;c=0;kc[J[a+640>>2]](J[a+628>>2],J[k+216>>2],0)|0;if((kc[J[a+632>>2]](J[a+628>>2],f+9|0,64)|0)!=64)break d;J[k+252>>2]=f;H[(b+e|0)+322|0]=b;c=K[e+192|0];break D}H[b+j|0]=K[f+j|0]}d=d+1|0;b=b+1|0;if(b>>>0<(c&255)>>>0)continue;break}}H[h+304|0]=192;i=K[h+192|0];G:{if(!i){H[h+319|0]= +K[h+209|0]|K[h+208|0]<<4;break G}e=0;b=0;if(i>>>0>=8){f=i&248;c=h+316|0;d=0;while(1){H[b+c|0]=b;j=b|1;H[j+c|0]=j;j=b|2;H[j+c|0]=j;j=b|3;H[j+c|0]=j;j=b|4;H[j+c|0]=j;j=b|5;H[j+c|0]=j;j=b|6;H[j+c|0]=j;j=b|7;H[j+c|0]=j;b=b+8|0;d=d+8|0;if((f|0)!=(d|0))continue;break}}c=i&7;if(c)while(1){H[(b+h|0)+316|0]=b;b=b+1|0;e=e+1|0;if((c|0)!=(e|0))continue;break}H[h+319|0]=K[h+209|0]|K[h+208|0]<<4;if(i>>>0<2)break G;c=i-1|0;e=c&7;b=1;if(i-2>>>0>=7){i=c&-8;c=0;while(1){d=b+h|0;H[d+319|0]=17;H[d+320|0]=17;H[d+321| +0]=17;H[d+322|0]=17;H[d+323|0]=17;H[d+324|0]=17;H[d+325|0]=17;H[d+326|0]=17;b=b+8|0;c=c+8|0;if((i|0)!=(c|0))continue;break}}if(!e)break G;c=0;while(1){H[(b+h|0)+319|0]=17;b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}H[h+303|0]=1;J[h+308>>2]=J[h+180>>2];J[h+312>>2]=J[h+188>>2];e=J[a+584>>2];if(!J[e+228>>2]){Uc(J[a+628>>2],96960,87978,0);c=0;break d}H[e+1140|0]=0;b=K[e+192|0];if(b){j=e+328|0;d=-1;c=0;while(1){H:{I:{k=e+(c<<2)|0;f=J[k+228>>2];if(!f){i=c-1|0;break I}J:{K:{if(!c)break K;i=c-1|0;if((f| +0)==J[(e+(i<<2)|0)+228>>2])break I;b=0;if(c>>>0<=1)break K;while(1){if((f|0)!=J[(e+(b<<2)|0)+228>>2]){b=b+1|0;if((d|0)!=(b|0))continue;break K}break}Uc(J[a+628>>2],96960,88202,0);break J}kc[J[a+640>>2]](J[a+628>>2],f,0)|0;if((kc[J[a+632>>2]](J[a+628>>2],g+16|0,16)|0)!=16)break J;i=K[g+31|0]+(K[g+30|0]+(K[g+29|0]+(K[g+28|0]+(K[g+27|0]+(K[g+26|0]+(K[g+25|0]+(K[g+24|0]+(K[g+23|0]+(K[g+22|0]+(K[g+21|0]+(K[g+20|0]+(K[g+19|0]+(K[g+18|0]+(K[g+17|0]+K[g+16|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;f= +i+25|0;b=Dc(f);if(!b){Uc(J[a+628>>2],96960,82424,0);c=0;break d}H[b+8|0]=c;H[b+4|0]=255;H[b+5|0]=196;J[b>>2]=f;f=i+19|0;H[b+7|0]=f;H[b+6|0]=f>>>8;H[b+9|0]=K[g+16|0];H[b+10|0]=K[g+17|0];H[b+11|0]=K[g+18|0];H[b+12|0]=K[g+19|0];H[b+13|0]=K[g+20|0];H[b+14|0]=K[g+21|0];H[b+15|0]=K[g+22|0];H[b+16|0]=K[g+23|0];H[b+17|0]=K[g+24|0];H[b+18|0]=K[g+25|0];H[b+19|0]=K[g+26|0];H[b+20|0]=K[g+27|0];H[b+21|0]=K[g+28|0];H[b+22|0]=K[g+29|0];H[b+23|0]=K[g+30|0];H[b+24|0]=K[g+31|0];if((kc[J[a+632>>2]](J[a+628>>2],b+25| +0,i)|0)!=(i|0))break J;J[k+268>>2]=b;H[(c+e|0)+328|0]=c<<4;b=K[e+192|0];break H}c=0;break d}H[c+j|0]=K[i+j|0]}d=d+1|0;c=c+1|0;if(c>>>0<(b&255)>>>0)continue;break}}e=0;d=0;b=fc-16|0;fc=b;f=J[a+584>>2];L:{if(!J[f+240>>2]){Uc(J[a+628>>2],97008,87978,0);break L}H[f+1140|0]=0;c=K[f+192|0];if(!c){e=1;break L}k=f+328|0;while(1){M:{N:{l=f+(d<<2)|0;j=J[l+240>>2];if(!j){i=d-1|0;break N}O:{if(!d)break O;i=d-1|0;if((j|0)==J[(f+(i<<2)|0)+240>>2])break N;e=0;c=0;if(d>>>0<=1)break O;while(1){if((j|0)!=J[(f+(e<< +2)|0)+240>>2]){c=c+1|0;e=c&255;if((i|0)>(e|0))continue;break O}break}e=0;Uc(J[a+628>>2],97008,88285,0);break L}e=0;kc[J[a+640>>2]](J[a+628>>2],j,0)|0;if((kc[J[a+632>>2]](J[a+628>>2],b,16)|0)!=16)break L;i=K[b+15|0]+(K[b+14|0]+(K[b+13|0]+(K[b+12|0]+(K[b+11|0]+(K[b+10|0]+(K[b+9|0]+(K[b+8|0]+(K[b+7|0]+(K[b+6|0]+(K[b+5|0]+(K[b+4|0]+(K[b+3|0]+(K[b+2|0]+(K[b|0]+K[b+1|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;j=i+25|0;c=Dc(j);if(!c){Uc(J[a+628>>2],97008,82424,0);break L}H[c+4|0]=255;H[c+5|0]=196;J[c>> +2]=j;H[c+8|0]=d|16;j=i+19|0;H[c+7|0]=j;H[c+6|0]=j>>>8;H[c+9|0]=K[b|0];H[c+10|0]=K[b+1|0];H[c+11|0]=K[b+2|0];H[c+12|0]=K[b+3|0];H[c+13|0]=K[b+4|0];H[c+14|0]=K[b+5|0];H[c+15|0]=K[b+6|0];H[c+16|0]=K[b+7|0];H[c+17|0]=K[b+8|0];H[c+18|0]=K[b+9|0];H[c+19|0]=K[b+10|0];H[c+20|0]=K[b+11|0];H[c+21|0]=K[b+12|0];H[c+22|0]=K[b+13|0];H[c+23|0]=K[b+14|0];H[c+24|0]=K[b+15|0];if((kc[J[a+632>>2]](J[a+628>>2],c+25|0,i)|0)!=(i|0))break L;J[l+284>>2]=c;c=d+f|0;H[c+328|0]=K[c+328|0]|d;c=K[f+192|0];break M}e=d+k|0;H[e|0]= +K[e|0]|K[i+k|0]&15}e=1;d=d+1|0;if(d>>>0<(c&255)>>>0)continue;break}}fc=b+16|0;if(!e){c=0;break d}c=1;a=K[h+192|0];if(a>>>0<2)break d;d=a-1|0;i=d&7;b=1;if(a-2>>>0>=7){e=d&-8;d=0;a=h+325|0;while(1){f=b+7|0;H[f+a|0]=f;f=b+6|0;H[f+a|0]=f;f=b+5|0;H[f+a|0]=f;f=b+4|0;H[f+a|0]=f;f=b+3|0;H[f+a|0]=f;f=b+2|0;H[f+a|0]=f;f=b+1|0;H[f+a|0]=f;H[a+b|0]=b;b=b+8|0;d=d+8|0;if((e|0)!=(d|0))continue;break}}if(!i)break d;e=0;while(1){H[(b+h|0)+325|0]=b;b=b+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}break d}c=0;Uc(J[i>> +2],96912,b,0);break d}d=87547}c=d;Uc(J[a+628>>2],96848,c,0)}c=0;break d}Uc(J[a+628>>2],96816,e,0)}c=0;break d}Uc(J[a+628>>2],96768,f,0)}c=0}fc=g+32|0;return c}fa(80397,70472,1949,96717);B()}fa(80397,70472,2006,96800);B()}function Sj(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;m=fc-32|0;fc=m;a:{b:{if(J[a+8>>2]==13)break b;f=a+8|0;while(1){c=J[a+16>>2];e=kc[J[J[c>>2]+28>>2]](c)|0;if((e|0)==-1){c=J[a+16>>2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e= +J[a>>2];if((c|0)>2]){Sc(e,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break b}c:{d:{if(h){h=(e|0)!=13&(e|0)!=10;break d}h=1;if((e|0)==37)break d;h=0;if(K[e+2318736|0]!=1)break c}if(J[f>>2]!=13)continue;break b}break}c=0;g=1;i=1;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:switch(e-40|0){case 5:if(J[f>>2]==13){i=0;break q}i=0;e=J[a+16>>2];if((kc[J[J[e>>2]+32>>2]](e)|0)!=45)break s;g=0;if(J[f>>2]==13)break q;while(1){c=J[a+16>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1){c= +J[a+16>>2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Sc(e,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}c=0;if(J[f>>2]!=13)continue;break q}if(J[f>>2]==13){c=0;break q}c=J[a+16>>2];c=kc[J[J[c>>2]+32>>2]](c)|0;d=J[a+8>>2];if((c|0)!=45){c=0;break r}c=0;if((d|0)!=13)continue;break}break r;case 7:break g;case 51:case 53:break h;case 20:break i;case 22:break j;case 1:case 83:case 85:break k;case 0:break n;case 6:break o;case 3:break s;case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:break t; +default:break l}c=e-48|0;l=+(c|0)}d=J[f>>2]}if((d|0)==13)break q;while(1){e=J[a+16>>2];d=kc[J[J[e>>2]+32>>2]](e)|0;e=d-48|0;if(e>>>0<=9){d=13;u:{if(J[f>>2]==13)break u;while(1){d=J[a+16>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)!=-1){d=J[f>>2];break u}d=J[a+16>>2];kc[J[J[d>>2]+24>>2]](d);yc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;h=J[a>>2];if((d|0)>2]){Sc(h,d,f,0);d=J[a+16>>2];kc[J[J[d>>2]+20>>2]](d)}d=13;if(J[f>>2]!=13)continue;break}}l=l<1E20?l*10+ +(e|0):l;c=e+P(c,10)|0;if((d|0)!=13)continue;break q}break}if((d| +0)==46)break p}v:while(1){d=-1;if(J[f>>2]!=13){e=J[a+16>>2];d=kc[J[J[e>>2]+32>>2]](e)|0}if((d|0)!=45&d-48>>>0>9)break m;if(J[f>>2]==13)continue;while(1){e=J[a+16>>2];if((kc[J[J[e>>2]+28>>2]](e)|0)!=-1)continue v;e=J[a+16>>2];kc[J[J[e>>2]+24>>2]](e);yc(f);e=J[a+4>>2]+1|0;J[a+4>>2]=e;d=J[a>>2];if((e|0)>2]){Sc(d,e,f,0);e=J[a+16>>2];kc[J[J[e>>2]+20>>2]](e)}if(J[f>>2]!=13)continue;break}continue}}w:{if(J[f>>2]==13)break w;while(1){c=J[a+16>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)!=-1)break w;c=J[a+16>> +2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Sc(e,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}}g=i}if(J[f>>2]==13)break e;o=.1;while(1){p=o;while(1){c=J[a+16>>2];c=kc[J[J[c>>2]+32>>2]](c)|0;if((c|0)==45){if(J[f>>2]!=13){c=J[a+16>>2];e=kc[J[J[c>>2]+52>>2]](c)|0}else e=-1;Cc(0,e,776446,0);if(J[f>>2]==13)break e;while(1){c=J[a+16>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)==-1){c=J[a+16>>2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+ +1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Sc(e,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break e}break}if(J[f>>2]!=13)continue;break e}break}e=c-48|0;if(e>>>0>=10)break e;x:{if(J[f>>2]==13)break x;while(1){c=J[a+16>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)!=-1)break x;c=J[a+16>>2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;d=J[a>>2];if((c|0)>2]){Sc(d,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}}o=p*.1;l=p*+(e|0)+l;if(J[f>> +2]!=13)continue;break}break e}e=a+28|0;y:{z:{if(J[a+8>>2]==13){i=0;break z}k=1;i=0;c=e;while(1){d=J[a+16>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)!=-1){A:{B:{C:switch(d-13|0){default:if((d|0)!=92)break B;if(J[f>>2]==13)break z;D:{E:{F:{G:{H:{I:{while(1){J:{K:{d=J[a+16>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;switch(d+1|0){case 11:break A;case 103:break D;case 99:break E;case 117:break F;case 115:break G;case 111:break H;case 14:break I;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:break J; +case 0:break K;default:break B}}d=J[a+16>>2];kc[J[J[d>>2]+24>>2]](d);yc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;g=J[a>>2];if((d|0)>2]){Sc(g,d,f,0);d=J[a+16>>2];kc[J[J[d>>2]+20>>2]](d)}if(J[f>>2]!=13)continue;break z}break}d=d-48|0;if(J[f>>2]==13)break B;g=J[a+16>>2];g=kc[J[J[g>>2]+32>>2]](g)|0;if((g&-8)!=48)break B;d=(g+(d<<3)|0)-48|0;aj(a);if(J[a+8>>2]==13)break B;g=J[a+16>>2];g=kc[J[J[g>>2]+32>>2]](g)|0;if((g&-8)!=48)break B;aj(a);d=(g+(d<<3)|0)-48|0;break B}if(J[f>>2]==13)break A;d=J[a+16>>2];if((kc[J[J[d>> +2]+32>>2]](d)|0)!=10)break A;aj(a);break A}d=10;break B}d=13;break B}d=9;break B}d=8;break B}d=12;break B;case 0:d=10;if(J[f>>2]==13)break B;g=J[a+16>>2];if((kc[J[J[g>>2]+32>>2]](g)|0)!=10)break B;aj(a);break B;case 28:d=41;k=k-1|0;if(k)break B;break y;case 1:case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:break B;case 27:break C}k=k+1|0;d=40}L:{if((h|0)!= +128)break L;if(!i){h=0;j=vc(8);J[699344]=0;i=ga(3348,j|0,e|0,128)|0;g=J[699344];J[699344]=0;c=e;if((g|0)!=1)break L;break f}kf(i,e,128);h=0;c=e}H[c|0]=d;h=h+1|0;c=c+1|0}if(J[f>>2]!=13)continue;break z}d=J[a+16>>2];kc[J[J[d>>2]+24>>2]](d);yc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;g=J[a>>2];if((d|0)>2]){Sc(g,d,f,0);d=J[a+16>>2];kc[J[J[d>>2]+20>>2]](d)}if(J[f>>2]!=13)continue;break}}Cc(1,-1,777724,0)}M:{if(!i){j=vc(8);J[699344]=0;i=ga(3348,j|0,e|0,h|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break M;break f}kf(i, +e,h)}J[b+8>>2]=i;J[b>>2]=3;break a}J[b>>2]=1;J[b+8>>2]=g?i?c:0-c|0:0;break a}H[a+28|0]=e;h=a+29|0;c=a+28|0;N:{if(J[a+8>>2]==13)break N;while(1){e=J[a+16>>2];e=kc[J[J[e>>2]+32>>2]](e)|0;if((e|0)==-1|K[e+2318736|0])break N;O:{if(J[f>>2]==13)break O;while(1){d=J[a+16>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)!=-1)break O;d=J[a+16>>2];kc[J[J[d>>2]+24>>2]](d);yc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;g=J[a>>2];if((d|0)>2]){Sc(g,d,f,0);d=J[a+16>>2];kc[J[J[d>>2]+20>>2]](d)}if(J[f>>2]!=13)continue;break}}i=i+1|0; +if((i|0)==128){if(J[f>>2]!=13){a=J[a+16>>2];a=kc[J[J[a>>2]+52>>2]](a)|0}else a=-1;Cc(1,a,785372,0);break N}H[h|0]=e;h=h+1|0;if(J[f>>2]!=13)continue;break}}H[h|0]=0;P:{Q:switch(K[c|0]-102|0){case 14:if(dd(c,786381,5))break P;J[b+8>>2]=1;J[b>>2]=0;break a;case 0:if(dd(c,787180,6))break P;J[b+8>>2]=0;J[b>>2]=0;break a;case 8:break Q;default:break P}if(dd(c,788119,5))break P;J[b>>2]=5;break a}J[b>>2]=10;r=b,s=Id(c),J[r+8>>2]=s;break a}j=-1;if(J[f>>2]!=13){a=J[a+16>>2];j=kc[J[J[a>>2]+52>>2]](a)|0}J[m>> +2]=e;Cc(1,j,784907,m);J[b>>2]=11;break a}d=-1;R:{if(J[f>>2]==13)break R;c=J[a+16>>2];if((kc[J[J[c>>2]+32>>2]](c)|0)==62){aj(a);H[a+30|0]=0;I[a+28>>1]=15934;J[b>>2]=10;r=b,s=Id(a+28|0),J[r+8>>2]=s;break a}if(J[f>>2]==13)break R;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,783988,0);J[b>>2]=11;break a}S:{T:{if(J[f>>2]==13){c=a+28|0;g=0;i=0;break T}c=J[a+16>>2];if((kc[J[J[c>>2]+32>>2]](c)|0)==60){aj(a);H[a+30|0]=0;I[a+28>>1]=15420;J[b>>2]=10;r=b,s=Id(a+28|0),J[r+8>>2]=s;break a}c=a+28|0;i=0;if(J[a+ +8>>2]==13){g=0;break T}g=0;e=c;while(1){U:{V:{W:{d=J[a+16>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)!=-1){if((d|0)==62)break S;if(K[d+2318736|0]==1)break U;k=k<<4;j=d-48|0;if(j>>>0>9)break W;k=j+k|0;break V}d=J[a+16>>2];kc[J[J[d>>2]+24>>2]](d);yc(f);d=J[a+4>>2]+1|0;J[a+4>>2]=d;j=J[a>>2];if((d|0)>2]){Sc(j,d,f,0);d=J[a+16>>2];kc[J[J[d>>2]+20>>2]](d)}if(J[f>>2]!=13)continue;break T}if(d-65>>>0<=5){k=(d+k|0)-55|0;break V}if(d-97>>>0<=5){k=(d+k|0)-87|0;break V}j=-1;if(J[f>>2]!=13){j=J[a+16>>2];j= +kc[J[J[j>>2]+52>>2]](j)|0}J[m+16>>2]=d;Cc(1,j,782261,m+16|0)}if((i|0)!=1){i=1;break U}X:{if((g|0)!=128)break X;if(!h){g=0;j=vc(8);J[699344]=0;h=ga(3348,j|0,c|0,128)|0;d=J[699344];J[699344]=0;e=c;if((d|0)!=1)break X;break f}kf(h,c,128);g=0;e=c}H[e|0]=k;g=g+1|0;e=e+1|0;k=0;i=0}if(J[f>>2]!=13)continue;break}}Cc(1,-1,781271,0)}Y:{if(!h){j=vc(8);J[699344]=0;h=ga(3348,j|0,c|0,g|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break Y;break f}kf(h,c,g)}if((i|0)==1)Kd(h,k<<28>>24);J[b+8>>2]=h;J[b>>2]=3;break a}H[a+ +28|0]=e;H[a+29|0]=0;J[b>>2]=10;r=b,s=Id(a+28|0),J[r+8>>2]=s;break a}k=a+28|0;i=k;Z:{if(J[a+8>>2]!=13){g=0;while(1){c=J[a+16>>2];h=kc[J[J[c>>2]+32>>2]](c)|0;if(!((h|0)==-1|K[h+2318736|0])){j=d;_:{if(J[f>>2]==13)break _;while(1){c=J[a+16>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)!=-1)break _;c=J[a+16>>2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Sc(e,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}}$:{if((h|0)!=35)break $;d=-1;aa:{ba:{ca:{if(J[f>> +2]==13)break ca;da:{c=J[a+16>>2];c=kc[J[J[c>>2]+32>>2]](c)|0;h=c-48|0;ea:{if(h>>>0<10)break ea;if(c-65>>>0<=5){h=c-55|0;break ea}if(c-97>>>0>5)break da;h=c-87|0}e=-1;if(J[f>>2]==13)break aa;while(1){c=J[a+16>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)!=-1)break ba;c=J[a+16>>2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;d=J[a>>2];if((c|0)>2]){Sc(d,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}break aa}if(J[f>>2]==13)break ca;c=J[a+16>>2];d=kc[J[J[c>>2]+52>> +2]](c)|0}Cc(1,d,778878,0);h=35;break $}if(J[f>>2]==13)break aa;fa:{c=J[a+16>>2];d=kc[J[J[c>>2]+32>>2]](c)|0;c=d-48|0;ga:{if(c>>>0<=9){n=c+(h<<4)|0;break ga}c=d+(h<<4)|0;n=c-55|0;if(d-65>>>0<=5)break ga;if(d-97>>>0>5)break fa;n=c-87|0}h=n;ha:{if(J[f>>2]==13)break ha;while(1){c=J[a+16>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)!=-1)break ha;c=J[a+16>>2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Sc(e,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue; +break}}q=h?q:1;break $}if(J[f>>2]==13)break aa;c=J[a+16>>2];e=kc[J[J[c>>2]+52>>2]](c)|0}Cc(1,e,778878,0)}d=j+1|0;ia:{if(j>>>0<=126){H[i|0]=h;i=i+1|0;break ia}if((d|0)==128){H[i|0]=h;j=vc(8);J[699344]=0;g=ga(3348,j|0,k|0,128)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break ia;break f}Kd(g,h<<24>>24)}if(J[f>>2]!=13)continue}break}if(q){if(J[f>>2]!=13){a=J[a+16>>2];a=kc[J[J[a>>2]+52>>2]](a)|0}else a=-1;Cc(1,a,780128,0);J[b>>2]=11;if(!g)break a;uc(Zc(g));break a}if(d>>>0>127)break Z}H[i|0]=0;J[b>>2]=4;r= +b,s=Id(k),J[r+8>>2]=s;break a}a=J[g+4>>2];J[b>>2]=4;r=b,s=Id(a),J[r+8>>2]=s;uc(Zc(g));break a}a=Z()|0;uc(j);ba(a|0);B()}ja:while(1){d=-1;if(J[f>>2]!=13){c=J[a+16>>2];d=kc[J[J[c>>2]+32>>2]](c)|0}if(!((d|0)!=45&d-48>>>0>9)){if(J[f>>2]==13)continue;while(1){c=J[a+16>>2];if((kc[J[J[c>>2]+28>>2]](c)|0)!=-1)continue ja;c=J[a+16>>2];kc[J[J[c>>2]+24>>2]](c);yc(f);c=J[a+4>>2]+1|0;J[a+4>>2]=c;e=J[a>>2];if((c|0)>2]){Sc(e,c,f,0);c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c)}if(J[f>>2]!=13)continue;break}continue}break}J[b>> +2]=2;O[b+8>>3]=g?l:-l;break a}J[b>>2]=12}fc=m+32|0}function eq(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;g=fc+-64|0;fc=g;e=fc+-64|0;fc=e;H[a+80|0]=0;J[a>>2]=851700;J[a+32>>2]=0;J[a+4>>2]=0;h=Ac(a+88|0,0,72);J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;f=J[b+24>>2];J[699344]=0;ha(3372,c|0,f|0,e+32|0,0)|0;f=J[699344];J[699344]=0;n=a+144|0;a:{b:{c:{d:{e:{f:{g:{if((f|0)==1)break g;J[a+36>>2]=J[c+8>>2];J[699344]=0;i=ha(3368,J[e+40>>2],808021,e+16|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g; +if(J[i>>2]==1)J[a+32>>2]=J[e+24>>2];J[699344]=0;i=e+16|0;$(3370,i|0);f=J[699344];J[699344]=0;if((f|0)==1)break g;J[a+40>>2]=d;f=J[b+28>>2];J[699344]=0;f=aa(3446,f|0,d+1|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;d=J[f+12>>2];O[a+16>>3]=O[d+56>>3];m=O[d+32>>3];J[a+48>>2]=0;J[a+52>>2]=0;O[a+24>>3]=m;J[a+56>>2]=0;J[a+60>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[699344]=0;f=ha(3368,J[e+40>>2],852382,i|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;h:{if(J[f>>2]!=6)break h; +d=J[e+24>>2];if(J[d+12>>2]!=4)break h;J[699344]=0;J[e+48>>2]=13;f=ha(3449,d|0,0,e+48|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;j=J[f>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:j;J[699344]=0;f=e+48|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;O[a+48>>3]=j-O[a+24>>3];m=O[a+16>>3];J[699344]=0;J[e+48>>2]=13;f=ha(3449,J[e+24>>2],3,f|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;j=0;j=J[f>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:j;J[699344]=0; +f=e+48|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;O[a+56>>3]=m-j;J[699344]=0;J[e+48>>2]=13;f=ha(3449,J[e+24>>2],2,f|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;j=0;j=J[f>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:j;J[699344]=0;f=e+48|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;O[a+64>>3]=j-O[a+24>>3];m=O[a+16>>3];J[699344]=0;J[e+48>>2]=13;f=ha(3449,J[e+24>>2],1,f|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;j=0;j=J[f>>2]-3>>>0>=4294967294? +J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:j;J[699344]=0;$(3370,e+48|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;O[a+72>>3]=m-j}J[699344]=0;f=e+16|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;f=ha(3368,J[e+40>>2],851745,f|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;i:{j:{k:{l:{if(J[f>>2]==3){J[a+4>>2]=J[a+4>>2]|1;J[699344]=0;f=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;i=aa(3354,f|0,J[e+24>>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;f=J[i+ +4>>2];d=J[i>>2];J[699344]=0;ca(3447,e+48|0,d|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break j;if(H[a+119|0]<0)uc(J[a+108>>2]);d=J[e+52>>2];J[a+108>>2]=J[e+48>>2];J[a+112>>2]=d;J[a+116>>2]=J[e+56>>2];uc(ld(i))}J[699344]=0;f=e+16|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;f=ha(3368,J[e+40>>2],784290,f|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if(J[f>>2]==3)break i;break f}b=Z()|0;break b}b=Z()|0;uc(f);break b}b=Z()|0;break b}J[a+4>>2]=J[a+4>>2]|2;J[699344]=0;f= +_(4,12)|0;d=J[699344];J[699344]=0;m:{n:{if((d|0)!=1){J[699344]=0;i=aa(3354,f|0,J[e+24>>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;f=J[i+4>>2];d=J[i>>2];J[699344]=0;ca(3447,e+48|0,d|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break m;if(H[a+107|0]<0)uc(J[a+96>>2]);d=J[e+52>>2];J[a+96>>2]=J[e+48>>2];J[a+100>>2]=d;J[a+104>>2]=J[e+56>>2];uc(ld(i));break f}b=Z()|0;break b}b=Z()|0;uc(f);break b}b=Z()|0;break b}b=Z()|0;break b}J[699344]=0;f=e+16|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break e; +J[699344]=0;f=ha(3368,J[e+40>>2],851898,f|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if(J[f>>2]==7){J[e+48>>2]=13;H[a+80|0]=0;J[a+4>>2]=J[a+4>>2]|4;J[699344]=0;f=ha(3368,J[e+24>>2],778990,e+48|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;o:{if(J[f>>2]!=4)break o;if(Ic(J[f+8>>2],828360))break o;H[a+80|0]=1}J[699344]=0;f=e+48|0;$(3370,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[h>>2]=0;J[h+4>>2]=0;J[699344]=0;f=ha(3368,J[e+24>>2],821242,f|0,0)|0;d=J[699344];J[699344]=0;if((d|0)== +1)break c;if(J[f>>2]-3>>>0>=4294967294)O[h>>3]=J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3];J[699344]=0;$(3370,e+48|0);d=J[699344];J[699344]=0;if((d|0)==1)break c}J[699344]=0;h=e+16|0;$(3370,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;h=ha(3368,J[e+40>>2],828360,h|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;p:{q:{r:{s:{t:{if(J[h>>2]!=6)break t;J[a+4>>2]=J[a+4>>2]|8;p=J[J[e+24>>2]+12>>2];if((p|0)<=0)break t;while(1){J[699344]=0;h=ha(3449,J[e+24>>2],o|0,e|0,0)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break s;j=0;j=J[h>>2]-3>>>0>=4294967294?J[e>>2]==1?+J[e+8>>2]:O[e+8>>3]:j;d=J[a+148>>2];h=J[a+152>>2];u:{if(d>>>0>>0){O[d>>3]=j;J[a+148>>2]=d+8;break u}v:{w:{l=J[n>>2];i=d-l>>3;k=i+1|0;x:{if(k>>>0>=536870912){J[699344]=0;$(2494,n|0);b=J[699344];J[699344]=0;if((b|0)==1)break x;break d}f=h-l|0;h=f>>2;k=f>>>0>=2147483640?536870911:h>>>0>k>>>0?h:k;if(!k){f=0;break v}if(k>>>0<536870912)break w;J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break d}b=Z()|0;break b}J[699344]=0; +f=_(4,k<<3)|0;h=J[699344];J[699344]=0;if((h|0)==1)break s}i=(i<<3)+f|0;O[i>>3]=j;h=i+8|0;if((d|0)!=(l|0))while(1){i=i-8|0;d=d-8|0;O[i>>3]=O[d>>3];if((d|0)!=(l|0))continue;break}J[a+152>>2]=(k<<3)+f;J[a+148>>2]=h;J[a+144>>2]=i;if(!l)break u;uc(l)}J[699344]=0;$(3370,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break r;o=o+1|0;if((p|0)!=(o|0))continue;break}}J[699344]=0;i=e+16|0;$(3370,i|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[a+156>>2]=0;J[699344]=0;h=ha(3368,J[e+40>>2],852007,i|0,0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break e;f=J[h>>2]==7;y:{if(!f){J[699344]=0;$(3370,i|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;h=ha(3368,J[e+40>>2],852047,i|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if(J[h>>2]!=6|J[J[e+24>>2]+12>>2]<3)break y}J[699344]=0;h=ga(3500,f|0,e+16|0,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;J[a+156>>2]=h}J[699344]=0;$(3370,e+16|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;d=J[a+156>>2];if(!(!d|K[d|0]==5))J[a+4>>2]=J[a+4>>2]|16;J[699344]=0;h=ha(3368, +J[e+40>>2],852131,e+16|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if(J[h>>2]==3)break q;break p}b=Z()|0;break b}b=Z()|0;break b}J[a+4>>2]=J[a+4>>2]|32;J[699344]=0;h=_(4,12)|0;d=J[699344];J[699344]=0;z:{A:{if((d|0)!=1){J[699344]=0;f=aa(3354,h|0,J[e+24>>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break A;h=J[f+4>>2];d=J[f>>2];J[699344]=0;ca(3447,e+48|0,d|0,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break z;if(H[a+131|0]<0)uc(J[a+120>>2]);d=J[e+52>>2];J[a+120>>2]=J[e+48>>2];J[a+124>>2]=d;J[a+128>> +2]=J[e+56>>2];uc(ld(f));break p}b=Z()|0;break b}b=Z()|0;uc(h);break b}b=Z()|0;break b}J[699344]=0;h=e+16|0;$(3370,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;h=ha(3368,J[e+40>>2],807124,h|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if(!(!J[J[e+24>>2]+16>>2]|J[h>>2]!=7))J[a+4>>2]=J[a+4>>2]|64;J[699344]=0;h=e+16|0;$(3370,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;h=ha(3368,J[e+40>>2],852295,h|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;B:{if(J[h>>2]!= +3)break B;J[a+4>>2]=J[a+4>>2]|128;J[699344]=0;h=_(4,12)|0;d=J[699344];J[699344]=0;C:{D:{if((d|0)!=1){J[699344]=0;f=aa(3354,h|0,J[e+24>>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break D;h=J[f+4>>2];d=J[f>>2];J[699344]=0;ca(3447,e+48|0,d|0,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break C;if(H[a+143|0]<0)uc(J[a+132>>2]);d=J[e+52>>2];J[a+132>>2]=J[e+48>>2];J[a+136>>2]=d;J[a+140>>2]=J[e+56>>2];uc(ld(f));break B}b=Z()|0;break b}b=Z()|0;uc(h);break b}b=Z()|0;break b}J[699344]=0;$(3370,e+16|0);d=J[699344]; +J[699344]=0;if((d|0)==1)break e;J[699344]=0;$(3370,e+32|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;fc=e- -64|0;break a}b=Z()|0;break b}B()}b=Z()|0}c=J[n>>2];if(c){J[a+148>>2]=c;uc(c)}if(H[a+143|0]<0)uc(J[a+132>>2]);if(H[a+131|0]<0)uc(J[a+120>>2]);if(H[a+119|0]<0)uc(J[a+108>>2]);if(H[a+107|0]<0)uc(J[a+96>>2]);ba(b|0);B()}J[a+160>>2]=0;J[a+164>>2]=0;J[a>>2]=847180;J[a+192>>2]=0;J[a+196>>2]=0;J[a+8>>2]=0;J[a+168>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;J[a+220>> +2]=0;J[a+224>>2]=0;J[g+48>>2]=13;J[g+32>>2]=13;b=J[b+24>>2];J[699344]=0;ha(3372,c|0,b|0,g+48|0,0)|0;b=J[699344];J[699344]=0;E:{F:{G:{H:{if((b|0)==1)break H;J[699344]=0;c=ga(3495,J[g+56>>2],847217,g+32|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break H;if(J[c>>2]==9){J[a+8>>2]=J[a+8>>2]|1;J[a+176>>2]=J[g+40>>2]}J[699344]=0;ma(3491,g+20|0,a|0,g+48|0,776806,1);b=J[699344];J[699344]=0;if((b|0)==1)break G;if(H[a+203|0]<0)uc(J[a+192>>2]);b=J[g+24>>2];J[a+192>>2]=J[g+20>>2];J[a+196>>2]=b;J[a+200>>2]=J[g+28>> +2];J[699344]=0;c=ha(3368,J[g+56>>2],813936,g+32|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break H;if(J[c>>2]-3>>>0>=4294967294){J[a+8>>2]=J[a+8>>2]|4;O[a+184>>3]=J[g+32>>2]==1?+J[g+40>>2]:O[g+40>>3]}J[699344]=0;$(3370,g+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break H;J[699344]=0;c=g+20|0;ma(3491,c|0,a|0,g+48|0,806726,3);b=J[699344];J[699344]=0;I:{if((b|0)!=1){J[699344]=0;da(3464,g+8|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break F;b=J[a+160>>2];if(b){J[a+164>>2]=b;uc(b);J[a+168>>2]=0;J[a+160>> +2]=0;J[a+164>>2]=0}c=J[g+8>>2];J[a+160>>2]=c;b=J[g+12>>2];J[a+164>>2]=b;J[a+168>>2]=J[g+16>>2];J[a+8>>2]=J[a+8>>2]&-9|((b|0)!=(c|0))<<3;J[699344]=0;ma(3491,g+8|0,a|0,g+48|0,847331,4);b=J[699344];J[699344]=0;if((b|0)==1)break F;if(H[a+215|0]<0)uc(J[a+204>>2]);b=J[g+12>>2];J[a+204>>2]=J[g+8>>2];J[a+208>>2]=b;J[a+212>>2]=J[g+16>>2];J[699344]=0;c=ga(3495,J[g+56>>2],847414,g+32|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break F;if(J[c>>2]==9){J[a+8>>2]=J[a+8>>2]|32;J[a+180>>2]=J[g+40>>2]}J[699344]=0;c=g+ +32|0;$(3370,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break F;J[699344]=0;c=ha(3368,J[g+56>>2],847682,c|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break F;J:{if(J[c>>2]!=4)break J;H[a+172|0]=1;J[a+8>>2]=J[a+8>>2]|64;if(J[g+32>>2]!=4)break J;if(Ic(J[g+40>>2],825256))break J;H[a+172|0]=0}J[699344]=0;$(3370,g+32|0);b=J[699344];J[699344]=0;if((b|0)!=1)break I;break F}b=Z()|0;break E}J[699344]=0;ma(3491,g+8|0,a|0,g+48|0,847711,7);b=J[699344];J[699344]=0;if((b|0)!=1){if(H[a+227|0]<0)uc(J[a+216>>2]);b=J[g+ +12>>2];J[a+216>>2]=J[g+8>>2];J[a+220>>2]=b;J[a+224>>2]=J[g+16>>2];J[699344]=0;$(3370,g+48|0);b=J[699344];J[699344]=0;if((b|0)==1)break F;if(H[g+31|0]<0)uc(J[g+20>>2]);fc=g- -64|0;return a}break F}b=Z()|0;break E}b=Z()|0;break E}b=Z()|0;if(H[g+31|0]>=0)break E;uc(J[g+20>>2])}if(H[a+227|0]<0)uc(J[a+216>>2]);if(H[a+215|0]<0)uc(J[a+204>>2]);if(H[a+203|0]<0)uc(J[a+192>>2]);c=J[a+160>>2];if(c){J[a+164>>2]=c;uc(c)}eu(a);ba(b|0);B()}function wY(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:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:switch(J[a+84>>2]){case 0:l:{c=J[a+52>>2];b=J[a+196>>2];if(c>>>0>>0){g=J[a- -64>>2];if(g>>>0>>0)break l}Nc(J[a+236>>2],1,2355809,0);break b}if(!J[a+44>>2]){m=J[a+36>>2];b=0;break j}J[a+44>>2]=0;s=J[a+68>>2];b=1;break j;case 1:m:{c=J[a+52>>2];b=J[a+196>>2];if(c>>>0>>0){g=J[a- -64>>2];if(g>>>0>>0)break m}Nc(J[a+236>>2],1,2356214,0);break b}if(!J[a+44>>2]){m=J[a+36>>2];b=0;break f}J[a+44>>2]=0;h=J[a+48>>2]; +b=1;break f;case 2:n:{p=J[a+196>>2];if(p>>>0>M[a+52>>2]){s=J[a- -64>>2];if(s>>>0>>0)break n}Nc(J[a+236>>2],1,2356480,0);break b}if(!J[a+44>>2]){q=J[a+40>>2];break g}J[a+228>>2]=0;J[a+232>>2]=0;J[a+44>>2]=0;f=J[a+200>>2];while(1){r=f+(n<<4)|0;j=J[r+8>>2];if(j){g=J[r+12>>2];b=0;while(1){d=j+(b^-1)|0;e=g+(b<<4)|0;k=d+J[e>>2]|0;o:{if(k>>>0>31)break o;c=J[r>>2];if(c>>>0>-1>>>k>>>0)break o;c=c<>>0>i>>>0?i:c:c;J[a+228>>2]=i}d=d+J[e+4>>2]|0;p:{if(d>>>0>31)break p;c=J[r+4>>2];if(c>>>0>-1>>>d>>> +0)break p;c=c<>>0>h>>>0?h:c:c;J[a+232>>2]=h}b=b+1|0;if((j|0)!=(b|0))continue;break}}n=n+1|0;if((p|0)!=(n|0))continue;break}if(!i|!h)break e;if(!K[a|0]){J[a+108>>2]=J[a+208>>2];J[a+100>>2]=J[a+204>>2];J[a+112>>2]=J[a+216>>2];J[a+104>>2]=J[a+212>>2]}n=J[a+48>>2];b=1;break g;case 3:q:{p=J[a+196>>2];if(p>>>0>M[a+52>>2]){s=J[a- -64>>2];if(s>>>0>>0)break q}Nc(J[a+236>>2],1,2356738,0);break b}if(!J[a+44>>2]){n=J[a+200>>2]+(J[a+28>>2]<<4)|0;q=J[a+40>>2];break h}J[a+228>>2]=0;J[a+232>>2]=0;J[a+ +44>>2]=0;f=J[a+200>>2];while(1){r=f+(m<<4)|0;j=J[r+8>>2];if(j){g=J[r+12>>2];b=0;while(1){d=j+(b^-1)|0;e=g+(b<<4)|0;k=d+J[e>>2]|0;r:{if(k>>>0>31)break r;c=J[r>>2];if(c>>>0>-1>>>k>>>0)break r;c=c<>>0>i>>>0?i:c:c;J[a+228>>2]=i}d=d+J[e+4>>2]|0;s:{if(d>>>0>31)break s;c=J[r+4>>2];if(c>>>0>-1>>>d>>>0)break s;c=c<>>0>h>>>0?h:c:c;J[a+232>>2]=h}b=b+1|0;if((j|0)!=(b|0))continue;break}}m=m+1|0;if((p|0)!=(m|0))continue;break}if(!i|!h)break e;t:{if(K[a|0]){i=J[a+108>>2];break t}i=J[a+208>>2]; +J[a+108>>2]=i;J[a+100>>2]=J[a+204>>2];J[a+112>>2]=J[a+216>>2];J[a+104>>2]=J[a+212>>2]}b=1;break h;case 4:break k;default:break e}u:{m=J[a+52>>2];b=J[a+196>>2];if(m>>>0>>0){n=J[a- -64>>2];if(n>>>0>>0)break u}Nc(J[a+236>>2],1,2356958,0);break e}if(!J[a+44>>2]){q=J[a+200>>2]+(J[a+28>>2]<<4)|0;t=J[a+40>>2];b=0;break i}J[a+28>>2]=m;J[a+44>>2]=0;b=1;break i}v:while(1){w:{x:{if(!b){m=m+1|0;break x}J[a+40>>2]=s;if(M[a+56>>2]<=s>>>0)break b;h=J[a+48>>2];b=0;break w}b=1}y:while(1){z:{A:{B:{C:{if(!b){J[a+ +32>>2]=h;if(M[a+60>>2]<=h>>>0)break C;J[a+28>>2]=c;b=c;n=0;break z}J[a+36>>2]=m;if(M[a+76>>2]<=m>>>0){b=J[a+28>>2];n=1;break z}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],J[a+40>>2])|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],m)|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break B;break a}s=J[a+40>>2]+1|0;break A}b=0;continue v}b=1;continue v}while(1){D:{E:{F:{if(!n){if(b>>>0>=g>>>0)break F;l=J[a+32>>2];e=J[a+200>>2];d=b<<4;if(l>>>0>=M[(e+d|0)+8>>2])break D;if(!K[a|0]){b=J[(e+d|0)+ +12>>2]+(l<<4)|0;J[a+76>>2]=P(J[b+12>>2],J[b+8>>2])}m=J[a+72>>2];b=1;continue y}b=b+1|0;J[a+28>>2]=b;break E}h=J[a+32>>2]+1|0;b=0;continue y}n=0;continue}n=1;continue}}}}G:while(1){H:{I:{if(!b){t=t+1|0;J[a+40>>2]=t;break I}if(n>>>0<=m>>>0)break b;J[a+228>>2]=0;J[a+232>>2]=0;c=J[a+200>>2];b=m<<4;q=c+b|0;j=J[q+8>>2];if(!j)break b;b=b+c|0;f=b;g=J[b+12>>2];i=0;h=0;b=0;while(1){d=j+(b^-1)|0;e=g+(b<<4)|0;k=d+J[e>>2]|0;J:{if(k>>>0>31)break J;c=J[q>>2];if(c>>>0>-1>>>k>>>0)break J;c=c<>>0>h>>>0?h: +c:c;J[a+228>>2]=h}d=d+J[e+4>>2]|0;K:{if(d>>>0>31)break K;c=J[f+4>>2];if(c>>>0>-1>>>d>>>0)break K;c=c<>>0>i>>>0?i:c:c;J[a+232>>2]=i}b=b+1|0;if((j|0)!=(b|0))continue;break}if(!h|!i)break e;L:{if(K[a|0]){i=J[a+108>>2];break L}i=J[a+208>>2];J[a+108>>2]=i;J[a+100>>2]=J[a+204>>2];J[a+112>>2]=J[a+216>>2];J[a+104>>2]=J[a+212>>2]}b=0;break H}b=1}M:while(1){N:{O:{P:{Q:{if(!b){J[a+224>>2]=i;if(M[a+112>>2]<=i>>>0)break Q;s=J[a+100>>2];b=0;break N}if(M[a+56>>2]<=t>>>0){l=J[a+32>>2];b=1;break N}b=((P(J[a+ +16>>2],J[a+32>>2])+P(J[a+12>>2],t)|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],J[a+36>>2])|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break P;break a}m=J[a+28>>2]+1|0;J[a+28>>2]=m;n=J[a+64>>2];break O}b=0;continue G}b=1;continue G}while(1){R:{S:{T:{U:{if(!b){J[a+220>>2]=s;if(M[a+104>>2]<=s>>>0)break T;l=J[a+48>>2];break U}l=l+1|0}J[a+32>>2]=l;b=J[a+60>>2];c=J[q+8>>2];if((b>>>0>>0?b:c)>>>0>l>>>0){o=c+(l^-1)|0;if(o>>>0>31)break R;u=J[q>>2];k=u<>>o|0)!=(u|0))break R;w= +J[q+4>>2];f=w<>>o|0)!=(w|0)|(f|k)<0)break R;if(!k)break d;e=k;d=0-!e|0;y=J[a+204>>2];c=e-1|0;b=y+c|0;j=y>>>0>b>>>0?d+1|0:d;b=xEb(b,j,e,0);if(!f)break d;j=c;c=J[a+212>>2];g=j+c|0;g=xEb(g,c>>>0>g>>>0?d+1|0:d,e,0);c=0-!f|0;e=f-1|0;d=J[a+216>>2];p=e+d|0;d=xEb(p,d>>>0>p>>>0?c+1|0:c,f,0);x=J[a+208>>2];e=e+x|0;c=x>>>0>e>>>0?c+1|0:c;c=xEb(e,c,f,0);r=J[q+12>>2];e=l<<4;p=r+e|0;v=o+J[p>>2]|0;if(v>>>0>30|u>>>0>-1>>>v>>>0)break R;j=e+r|0;h=o+J[j+4>>2]|0;if(h>>>0>30)break R;f=w<>>h|0))break R; +e=J[a+224>>2];if((e>>>0)%(f>>>0)|0)if(!((-1<>2];if((e>>>0)%(u<>>0)|0)if(!((-1<>2]|!J[f+12>>2]|((b|0)==(g|0)|(c|0)==(d|0)))break R;g=Kt(e,k);k=J[p>>2];e=Kt(J[a+224>>2],J[q+4>>2]<>2];f=J[j+4>>2];t=J[a+68>>2];J[a+40>>2]=t;J[a+36>>2]=((g>>>k)-(b>>>k)|0)+P(d,(e>>>f)-(c>>>f)|0);b=1;continue M}c=J[a+220>>2];b=J[a+228>>2];s=c+b-(c>>>0)%(b>>>0)|0;break S}c=J[a+224>>2];b=J[a+232>>2];i=c+b-(c>>> +0)%(b>>>0)|0;b=0;continue M}b=0;continue}b=1;continue}}}}V:while(1){W:{X:{if(!b){q=q+1|0;J[a+40>>2]=q;break X}J[a+224>>2]=i;if(M[a+112>>2]<=i>>>0)break b;z=J[a+100>>2];b=0;break W}b=1}Y:while(1){Z:{_:{$:{aa:{if(!b){J[a+220>>2]=z;if(M[a+104>>2]<=z>>>0)break aa;t=J[a+52>>2];J[a+28>>2]=t;b=0;break Z}if(M[a+56>>2]<=q>>>0){l=J[a+32>>2];b=1;break Z}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],q)|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],J[a+36>>2])|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>> +1])break $;break a}c=J[a+224>>2];b=J[a+232>>2];i=c+b-(c>>>0)%(b>>>0)|0;break _}b=0;continue V}b=1;continue V}while(1){ba:{ca:{da:{ea:{if(!b){if(s>>>0<=t>>>0)break da;l=J[a+48>>2];J[a+32>>2]=l;n=J[a+200>>2]+(t<<4)|0;break ea}l=l+1|0;J[a+32>>2]=l}b=J[a+60>>2];c=J[n+8>>2];if((b>>>0>>0?b:c)>>>0>l>>>0){o=c+(l^-1)|0;if(o>>>0>31)break ba;u=J[n>>2];k=u<>>o|0)!=(u|0))break ba;w=J[n+4>>2];f=w<>>o|0)!=(w|0)|(f|k)<0)break ba;if(!k)break d;e=k;d=0-!e|0;y=J[a+204>>2];c=e-1|0;b=y+c|0;j=y>>> +0>b>>>0?d+1|0:d;b=xEb(b,j,e,0);if(!f)break d;j=c;c=J[a+212>>2];g=j+c|0;e=xEb(g,c>>>0>g>>>0?d+1|0:d,e,0);g=0-!f|0;c=f-1|0;d=J[a+216>>2];p=c+d|0;d=xEb(p,d>>>0>p>>>0?g+1|0:g,f,0);x=J[a+208>>2];c=c+x|0;g=x>>>0>c>>>0?g+1|0:g;c=xEb(c,g,f,0);r=J[n+12>>2];g=l<<4;p=r+g|0;v=o+J[p>>2]|0;if(v>>>0>30|u>>>0>-1>>>v>>>0)break ba;j=g+r|0;h=o+J[j+4>>2]|0;if(h>>>0>30)break ba;f=w<>>h|0))break ba;g=J[a+224>>2];if((g>>>0)%(f>>>0)|0)if(!((-1<>2];if((g>>>0)%(u<< +v>>>0)|0)if(!((-1<>2]|!J[f+12>>2]|((b|0)==(e|0)|(c|0)==(d|0)))break ba;g=Kt(g,k);k=J[p>>2];e=Kt(J[a+224>>2],J[n+4>>2]<>2];f=J[j+4>>2];q=J[a+68>>2];J[a+40>>2]=q;J[a+36>>2]=((g>>>k)-(b>>>k)|0)+P(d,(e>>>f)-(c>>>f)|0);b=1;continue Y}t=J[a+28>>2]+1|0;J[a+28>>2]=t;s=J[a+64>>2];break ca}c=J[a+220>>2];b=J[a+228>>2];z=c+b-(c>>>0)%(b>>>0)|0;b=0;continue Y}b=0;continue}b=1;continue}}}}fa:while(1){ga:{ha:{if(!b){q=q+1|0;J[a+40>>2]=q;break ha}J[a+ +32>>2]=n;if(M[a+60>>2]<=n>>>0)break b;z=J[a+108>>2];b=0;break ga}b=1}ia:while(1){ja:{ka:{la:{ma:{if(!b){J[a+224>>2]=z;if(M[a+112>>2]<=z>>>0)break ma;m=J[a+100>>2];b=0;break ja}if(M[a+56>>2]<=q>>>0){s=J[a+64>>2];l=J[a+28>>2];b=1;break ja}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],q)|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],J[a+36>>2])|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break la;break a}n=J[a+32>>2]+1|0;break ka}b=0;continue fa}b=1;continue fa}while(1){na:{oa:{pa:{qa:{if(!b){J[a+ +220>>2]=m;if(M[a+104>>2]<=m>>>0)break pa;l=J[a+52>>2];break qa}l=l+1|0}J[a+28>>2]=l;if(l>>>0>>0){o=J[a+32>>2];d=J[a+200>>2];c=l<<4;h=d+c|0;b=J[h+8>>2];if(o>>>0>=b>>>0)break na;i=b+(o^-1)|0;if(i>>>0>31)break na;t=J[h>>2];k=t<>>i|0)!=(t|0))break na;r=c+d|0;u=J[r+4>>2];f=u<>>i|0)!=(u|0)|(f|k)<0)break na;if(!k)break d;e=k;d=0-!e|0;w=J[a+204>>2];c=e-1|0;b=w+c|0;j=w>>>0>b>>>0?d+1|0:d;b=xEb(b,j,e,0);if(!f)break d;g=J[a+212>>2];j=g+c|0;c=d;g=xEb(j,j>>>0>>0?c+1|0:c,e,0);c=0-!f|0;j= +c;e=f-1|0;d=J[a+216>>2];p=e+d|0;d=xEb(p,d>>>0>p>>>0?c+1|0:c,f,0);y=J[a+208>>2];c=e+y|0;j=y>>>0>c>>>0?j+1|0:j;c=xEb(c,j,f,0);h=J[h+12>>2];e=o<<4;p=h+e|0;x=i+J[p>>2]|0;if(x>>>0>30|t>>>0>-1>>>x>>>0)break na;j=e+h|0;v=i+J[j+4>>2]|0;if(v>>>0>30)break na;f=u<>>v|0))break na;e=J[a+224>>2];if((e>>>0)%(f>>>0)|0)if(!((-1<>2];if((e>>>0)%(t<>>0)|0)if(!((-1<>2]|!J[f+12>>2]|((b|0)==(g|0)|(c| +0)==(d|0)))break na;g=Kt(e,k);k=J[p>>2];e=Kt(J[a+224>>2],J[r+4>>2]<>2];f=J[j+4>>2];q=J[a+68>>2];J[a+40>>2]=q;J[a+36>>2]=((g>>>k)-(b>>>k)|0)+P(d,(e>>>f)-(c>>>f)|0);b=1;continue ia}c=J[a+220>>2];b=J[a+228>>2];m=c+b-(c>>>0)%(b>>>0)|0;break oa}c=J[a+224>>2];b=J[a+232>>2];z=c+b-(c>>>0)%(b>>>0)|0;b=0;continue ia}b=0;continue}b=1;continue}}}}ra:while(1){sa:{ta:{if(!b){m=m+1|0;break ta}J[a+32>>2]=h;if(M[a+60>>2]<=h>>>0)break b;s=J[a+68>>2];b=0;break sa}b=1}ua:while(1){va:{wa:{xa:{ya:{if(!b){J[a+ +40>>2]=s;if(M[a+56>>2]<=s>>>0)break ya;J[a+28>>2]=c;b=c;n=0;break va}J[a+36>>2]=m;if(M[a+76>>2]<=m>>>0){b=J[a+28>>2];n=1;break va}b=((P(J[a+16>>2],J[a+32>>2])+P(J[a+12>>2],J[a+40>>2])|0)+P(J[a+20>>2],J[a+28>>2])|0)+P(J[a+24>>2],m)|0;if(b>>>0>=M[a+8>>2])break c;b=J[a+4>>2]+(b<<1)|0;if(L[b>>1])break xa;break a}h=J[a+32>>2]+1|0;break wa}b=0;continue ra}b=1;continue ra}while(1){za:{Aa:{Ba:{if(!n){if(b>>>0>=g>>>0)break Ba;l=J[a+32>>2];e=J[a+200>>2];d=b<<4;if(l>>>0>=M[(e+d|0)+8>>2])break za;if(!K[a|0]){b= +J[(e+d|0)+12>>2]+(l<<4)|0;J[a+76>>2]=P(J[b+12>>2],J[b+8>>2])}m=J[a+72>>2];b=1;continue ua}b=b+1|0;J[a+28>>2]=b;break Aa}s=J[a+40>>2]+1|0;b=0;continue ua}n=0;continue}n=1;continue}}}}return 0}fa(2354487,2354721,172,2355230);B()}Nc(J[a+236>>2],1,2356001,0)}return 0}I[b>>1]=1;return 1}function Dda(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=Q(0),o=0;a:{b:{c:{if((kc[J[J[b>>2]+48>>2]](b)|0)!=255)break c;if((kc[J[J[b>>2]+48>>2]](b)|0)!=216)break c;if(J[a+508>>2]<=19){m=c&1;while(1){d= +kc[J[J[b>>2]+48>>2]](b)|0;f=J[b>>2];d:{if((d|0)!=255)break d;d=kc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=kc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=kc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=kc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=kc[J[f+48>>2]](b)|0;f=J[b>>2];if((d|0)!=255)break d;d=kc[J[f+48>>2]](b)|0;if((d|0)==255)break b;f=J[b>>2]}J[(P(J[a+508>>2],12)+a|0)+272>>2]=d;e=kc[J[f+48>>2]](b)|0;h=kc[J[J[b>>2]+48>>2]](b)|0;i=e<<8|h;if((i|0)<=1){b=K[44389]| +K[44390]<<8|(K[44391]<<16|K[44392]<<24);c=K[44385]|K[44386]<<8|(K[44387]<<16|K[44388]<<24);H[a+11|0]=c;H[a+12|0]=c>>>8;H[a+13|0]=c>>>16;H[a+14|0]=c>>>24;H[a+15|0]=b;H[a+16|0]=b>>>8;H[a+17|0]=b>>>16;H[a+18|0]=b>>>24;b=K[44382]|K[44383]<<8|(K[44384]<<16|K[44385]<<24);c=K[44378]|K[44379]<<8|(K[44380]<<16|K[44381]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}g=P(J[a+508>>2],12)+a|0;J[g+276>>2]=i;f=Dc(i);if(!f){b=K[44571]| +K[44572]<<8;H[a+28|0]=b;H[a+29|0]=b>>>8;b=K[44567]|K[44568]<<8|(K[44569]<<16|K[44570]<<24);c=K[44563]|K[44564]<<8|(K[44565]<<16|K[44566]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[44559]|K[44560]<<8|(K[44561]<<16|K[44562]<<24);c=K[44555]|K[44556]<<8|(K[44557]<<16|K[44558]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[44551]| +K[44552]<<8|(K[44553]<<16|K[44554]<<24);c=K[44547]|K[44548]<<8|(K[44549]<<16|K[44550]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}J[g+268>>2]=f;H[f+1|0]=h;H[f|0]=e;e=f+2|0;h=i-2|0;if((kc[J[J[b>>2]+12>>2]](b,e,1,h,0,0)|0)!=(h|0)){b=K[45114]|K[45115]<<8|(K[45116]<<16|K[45117]<<24);c=K[45110]|K[45111]<<8|(K[45112]<<16|K[45113]<<24);H[a+19|0]=c;H[a+20|0]=c>>>8;H[a+21|0]=c>>>16;H[a+22|0]=c>>>24;H[a+23|0]=b;H[a+24|0]= +b>>>8;H[a+25|0]=b>>>16;H[a+26|0]=b>>>24;b=K[45107]|K[45108]<<8|(K[45109]<<16|K[45110]<<24);c=K[45103]|K[45104]<<8|(K[45105]<<16|K[45106]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[45099]|K[45100]<<8|(K[45101]<<16|K[45102]<<24);c=K[45095]|K[45096]<<8|(K[45097]<<16|K[45098]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}j=J[a+508>> +2];g=j+1|0;J[a+508>>2]=g;e:{f:{g:switch(d-192|0){case 26:d=1;if(!(c&2))break c;c=kc[J[J[b>>2]+24>>2]](b)|0;kc[J[J[b>>2]+20>>2]](b,0,2)|0;d=kc[J[J[b>>2]+24>>2]](b)|0;kc[J[J[b>>2]+20>>2]](b,c,0)|0;c=d-c|0;d=Dc(c);if(!d){H[a+44|0]=K[45295];b=K[45291]|K[45292]<<8|(K[45293]<<16|K[45294]<<24);c=K[45287]|K[45288]<<8|(K[45289]<<16|K[45290]<<24);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;H[a+40|0]=b;H[a+41|0]=b>>>8;H[a+42|0]=b>>>16;H[a+43|0]=b>>>24;b=K[45283]|K[45284]<<8|(K[45285]<<16|K[45286]<< +24);c=K[45279]|K[45280]<<8|(K[45281]<<16|K[45282]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[45275]|K[45276]<<8|(K[45277]<<16|K[45278]<<24);c=K[45271]|K[45272]<<8|(K[45273]<<16|K[45274]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[45267]|K[45268]<<8|(K[45269]<<16|K[45270]<<24);c=K[45263]|K[45264]<<8|(K[45265]<<16|K[45266]<< +24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[45259]|K[45260]<<8|(K[45261]<<16|K[45262]<<24);c=K[45255]|K[45256]<<8|(K[45257]<<16|K[45258]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;break a}if((kc[J[J[b>>2]+12>>2]](b,d,1,c,0,0)|0)!=(c|0)){b=K[45443]|K[45444]<<8|(K[45445]<<16|K[45446]<<24);c=K[45439]|K[45440]<<8|(K[45441]<<16|K[45442]<< +24);H[a+33|0]=c;H[a+34|0]=c>>>8;H[a+35|0]=c>>>16;H[a+36|0]=c>>>24;H[a+37|0]=b;H[a+38|0]=b>>>8;H[a+39|0]=b>>>16;H[a+40|0]=b>>>24;b=K[45438]|K[45439]<<8|(K[45440]<<16|K[45441]<<24);c=K[45434]|K[45435]<<8|(K[45436]<<16|K[45437]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[45430]|K[45431]<<8|(K[45432]<<16|K[45433]<<24);c=K[45426]|K[45427]<<8|(K[45428]<<16|K[45429]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16; +H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[45422]|K[45423]<<8|(K[45424]<<16|K[45425]<<24);c=K[45418]|K[45419]<<8|(K[45420]<<16|K[45421]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[45414]|K[45415]<<8|(K[45416]<<16|K[45417]<<24);c=K[45410]|K[45411]<<8|(K[45412]<<16|K[45413]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]= +b>>>16;H[a+11|0]=b>>>24;break a}f=J[a+508>>2];b=P(f,12)+a|0;J[b+276>>2]=c;J[b+268>>2]=d;J[b+272>>2]=291;J[a+508>>2]=f+1;return 1;case 25:DG(47380);break a;case 62:if(!(!l&m)){J[a+508>>2]=j;d=a+268|0;uc(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>>2]=0;break e}d=0;e=fc-256|0;fc=e;if((i|0)>=3){g=(i|0)>=255?255:i;j=g-1|0;h=2;while(1){l=f+h|0;i=K[l|0];if(!(!((i|0)!=13|(h|0)>=(j|0))&K[l+1|0]==10)){H[d+e|0]=(i-9&255)>>>0<2?i:i-32>>>0>=95?63:i;d=d+1|0}h=h+1|0;if((g|0)!=(h|0))continue;break}}H[d+e|0]=0;of(J[a>> +2]+196|0,e);fc=e+256|0;l=1;break f;case 32:J[a+508>>2]=j;d=a+268|0;uc(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>>2]=0;break e;case 33:if(!(!m|i>>>0<6|(K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24))!=1718188101)){i=0;f=fc-48|0;fc=f;d=J[a>>2];H[d+196|0]=0;J[d+120>>2]=0;h:{if(h>>>0<6)break h;J[a+260>>2]=0;if(dd(e,46329,6)){d=K[46398]|K[46399]<<8|(K[46400]<<16|K[46401]<<24);e=K[46394]|K[46395]<<8|(K[46396]<<16|K[46397]<<24);H[a+18|0]=e;H[a+19|0]=e>>>8;H[a+20|0]=e>>>16;H[a+21|0]=e>>>24;H[a+22|0]=d;H[a+ +23|0]=d>>>8;H[a+24|0]=d>>>16;H[a+25|0]=d>>>24;d=K[46392]|K[46393]<<8|(K[46394]<<16|K[46395]<<24);e=K[46388]|K[46389]<<8|(K[46390]<<16|K[46391]<<24);H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[46384]|K[46385]<<8|(K[46386]<<16|K[46387]<<24);e=K[46380]|K[46381]<<8|(K[46382]<<16|K[46383]<<24);H[a+4|0]=e;H[a+5|0]=e>>>8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;break h}if(h>>> +0<8)break h;j=e+6|0;i:{d=K[e+6|0]|K[e+7|0]<<8;if((d|0)!=18761){if((d|0)!=19789)break i;g=1}else g=0;J[a+264>>2]=g;if(h>>>0<14)break h;d=(d|0)!=18761;if((K[e+(d?8:9)|0]<<8|K[e+(d?9:8)|0])!=42){d=K[46677]|K[46678]<<8|(K[46679]<<16|K[46680]<<24);e=K[46673]|K[46674]<<8|(K[46675]<<16|K[46676]<<24);H[a+19|0]=e;H[a+20|0]=e>>>8;H[a+21|0]=e>>>16;H[a+22|0]=e>>>24;H[a+23|0]=d;H[a+24|0]=d>>>8;H[a+25|0]=d>>>16;H[a+26|0]=d>>>24;d=K[46670]|K[46671]<<8|(K[46672]<<16|K[46673]<<24);e=K[46666]|K[46667]<<8|(K[46668]<< +16|K[46669]<<24);H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]=e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[46662]|K[46663]<<8|(K[46664]<<16|K[46665]<<24);e=K[46658]|K[46659]<<8|(K[46660]<<16|K[46661]<<24);H[a+4|0]=e;H[a+5|0]=e>>>8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;break h}d=e+10|0;j:{if(J[a+264>>2]){g=K[d+1|0]<<16|K[d|0]<<24|K[d+2|0]<<8;d=d+3|0;break j}g=K[d+2|0]<<16|K[d+3|0]<<24|K[d+1|0]<<8}o=K[d|0];d= +h-6|0;J[f+32>>2]=d;J[f+28>>2]=j;k=h>>>0>=14?14:h;J[f+40>>2]=h-k;J[f+36>>2]=e+k;J[f+44>>2]=e;k=f+44|0;if(!Uy(a,f+36|0,f+28|0,d,J[a>>2],k,0))break h;g=g|o;if((g|0)>=9){J[f+16>>2]=d;J[f+12>>2]=j;j=h;g=g+6|0;h=h>>>0>>0?h:g;J[f+24>>2]=j-h;J[f+20>>2]=e+h;if(!Uy(a,f+20|0,f+12|0,d,J[a>>2],k,0))break h}i=1;d=J[a>>2];n=N[d+168>>2];if(n==Q(0))break h;N[d+140>>2]=Q(N[d+176>>2]*Q(J[a+260>>2]))/n;break h}d=K[46620]|K[46621]<<8|(K[46622]<<16|K[46623]<<24);e=K[46616]|K[46617]<<8|(K[46618]<<16|K[46619]<<24);H[a+ +27|0]=e;H[a+28|0]=e>>>8;H[a+29|0]=e>>>16;H[a+30|0]=e>>>24;H[a+31|0]=d;H[a+32|0]=d>>>8;H[a+33|0]=d>>>16;H[a+34|0]=d>>>24;d=K[46613]|K[46614]<<8|(K[46615]<<16|K[46616]<<24);e=K[46609]|K[46610]<<8|(K[46611]<<16|K[46612]<<24);H[a+20|0]=e;H[a+21|0]=e>>>8;H[a+22|0]=e>>>16;H[a+23|0]=e>>>24;H[a+24|0]=d;H[a+25|0]=d>>>8;H[a+26|0]=d>>>16;H[a+27|0]=d>>>24;d=K[46605]|K[46606]<<8|(K[46607]<<16|K[46608]<<24);e=K[46601]|K[46602]<<8|(K[46603]<<16|K[46604]<<24);H[a+12|0]=e;H[a+13|0]=e>>>8;H[a+14|0]=e>>>16;H[a+15|0]= +e>>>24;H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;d=K[46597]|K[46598]<<8|(K[46599]<<16|K[46600]<<24);e=K[46593]|K[46594]<<8|(K[46595]<<16|K[46596]<<24);H[a+4|0]=e;H[a+5|0]=e>>>8;H[a+6|0]=e>>>16;H[a+7|0]=e>>>24;H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24}fc=f+48|0;H[J[a>>2]+460|0]=i;break f}J[a+508>>2]=j;d=a+268|0;uc(J[d+P(j,12)>>2]);g=J[a+508>>2];J[d+P(g,12)>>2]=0;break e;case 0:case 1:case 2:case 3:case 5:case 6:case 7:case 9:case 10:case 11:case 13:case 14:case 15:break g; +default:break e}if(i>>>0<8)break a;e=J[a>>2];J[e+100>>2]=K[f+4|0]|K[f+3|0]<<8;J[e+104>>2]=K[f+6|0]|K[f+5|0]<<8;f=K[f+7|0];J[e+116>>2]=d;J[e+112>>2]=(f|0)==3}g=J[a+508>>2]}if((g|0)<=19)continue;break}}d=0;b=K[43308]|K[43309]<<8|(K[43310]<<16|K[43311]<<24);c=K[43304]|K[43305]<<8|(K[43306]<<16|K[43307]<<24);H[a+26|0]=c;H[a+27|0]=c>>>8;H[a+28|0]=c>>>16;H[a+29|0]=c>>>24;H[a+30|0]=b;H[a+31|0]=b>>>8;H[a+32|0]=b>>>16;H[a+33|0]=b>>>24;b=K[43302]|K[43303]<<8|(K[43304]<<16|K[43305]<<24);c=K[43298]|K[43299]<< +8|(K[43300]<<16|K[43301]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[43294]|K[43295]<<8|(K[43296]<<16|K[43297]<<24);c=K[43290]|K[43291]<<8|(K[43292]<<16|K[43293]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[43286]|K[43287]<<8|(K[43288]<<16|K[43289]<<24);c=K[43282]|K[43283]<<8|(K[43284]<<16|K[43285]<<24);H[a+4|0]=c;H[a+5|0]= +c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24}return d|0}DG(47357);return 0}return 0}function gha(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;k=fc-416|0;fc=k;g=J[a+608>>2];d=J[a+604>>2];w=1;q=J[a+584>>2];m=J[q+72>>2];e=J[q+68>>2];l=J[q+64>>2];a:{b:{c:{if((c|0)<=0)b=d;else{t=d+g|0;u=J[q+60>>2];o=J[q+12>>2];r=J[q+88>>2];while(1){d:{e:{f:{g:{h:{i:{if(m)break i;while(1){j:{k:{l:{if((e| +0)>10){g=d;break l}if(d>>>0>=t>>>0){if(!e)break k;e=11;g=d;break l}h=e+8|0;g=d+1|0;l=K[K[d|0]+u|0]<2){e=h;break l}if(g>>>0>=t>>>0){e=11;break l}e=e+16|0;g=d+2|0;l=K[K[d+1|0]+u|0]<>>1|0;e=e-1|0;d=g;continue}}while(1){g=e;m:{if((e|0)>7)break m;if(d>>>0>=t>>>0){g=8;if(e)break m;break h}l=K[K[d|0]+u|0]<>>1|0;if(!h)continue;break}f=l>>>1|0;h=g-1|0;e=h;n:{if((g|0)>1)break n; +if(d>>>0>=t>>>0){e=1;if(h)break n;m=0;l=f;break h}f=K[K[d|0]+u|0]<>>1|0;e=e-1|0;g=0;if(!(f&1))break f;h=r;o:{p:{while(1){p=0;q:{while(1){r:{if((e|0)>11){f=e;break r}if(d>>>0>=t>>>0){f=12;if(e)break r;break g}j=e+8|0;i=d+1|0;l=K[K[d|0]+u|0]<3){f=j;d=i;break r}f=12;if(i>>>0>=t>>>0){d=i;break r}f=e+16|0;l=K[K[d+1|0]+u|0]<>>e|0;e=f-e|0;m=1;f=h;s:{t:switch(K[i|0]-7|0){case 0:i=J[i+4>>2];s=i+p|0;J[h>>2]=s;f=h+ +4|0;p=0;g=g+i|0;if((o|0)>(g|0))break s;m=0;break o;case 5:break p;case 2:case 4:break t;default:break q}f=J[i+4>>2];p=f+p|0;g=f+g|0;continue}break}while(1){u:{if((e|0)>12){i=e;break u}if(d>>>0>=t>>>0){i=13;if(e)break u;h=f;break g}n=e+8|0;j=d+1|0;l=K[K[d|0]+u|0]<4){i=n;d=j;break u}i=13;if(j>>>0>=t>>>0){d=j;break u}i=e+16|0;l=K[K[d+1|0]+u|0]<>>e|0;e=i-e|0;i=K[j|0];if(i-10>>>0<2){i=J[j+4>>2];p=i+p|0;g=g+i|0;continue}break}v:{w:switch(i- +8|0){case 0:i=J[j+4>>2];j=i+p|0;J[h+4>>2]=j;f=h+8|0;g=g+i|0;if((o|0)>(g|0))break v;m=0;break o;case 4:break p;default:break w}h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+304>>2]=g;J[k+300>>2]=i;J[k+296>>2]=h?88482:88539;J[k+292>>2]=m;J[k+288>>2]=n;Uc(j,95749,88316,k+288|0);m=0;break p}h=j|s?f:h;continue}break}f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+272>>2]=g;J[k+268>>2]=i;J[k+264>>2]=f?88482:88539;J[k+260>>2]=m;J[k+256>> +2]=n;Uc(j,95749,88316,k+256|0);m=0;f=h}if(!p)break o;J[f>>2]=p;f=f+4|0}if((g|0)==(o|0))break d;h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];s=J[q+108>>2];J[k+248>>2]=o;J[k+244>>2]=g;J[k+240>>2]=i;J[k+236>>2]=h?88482:88539;J[k+232>>2]=s;J[k+228>>2]=g>>>0>>0?88871:88926;J[k+224>>2]=n;le(j,95749,88788,k+224|0);n=(g|0)>(o|0);x:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break x;while(1){f=f-4|0;g=g-J[f>>2]|0;n=(o|0)<(g|0);if((g|0)<=(o|0))break x;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f- +r&4){J[f>>2]=0;f=f+4|0}J[f>>2]=o-((g|0)>0?g:0);f=f+4|0;break d}if(n)break e;break d}else{l=l>>>8|0;e=g-8|0;continue}}}if(!o){h=r;break b}c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];f=J[a+628>>2];e=J[a>>2];i=J[q+108>>2];J[k+408>>2]=o;J[k+404>>2]=0;J[k+400>>2]=h;J[k+396>>2]=c?88482:88539;J[k+392>>2]=i;J[k+388>>2]=88871;J[k+384>>2]=e;le(f,95749,88788,k+384|0);J[r>>2]=o;if((o|0)>0){h=r+4|0;break b}J[r+4>>2]=0;h=r+8|0;break b}c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+ +368>>2]=g;J[k+364>>2]=f;J[k+360>>2]=c?88482:88539;J[k+356>>2]=j;J[k+352>>2]=i;le(e,95749,88656,k+352|0);if(p){J[h>>2]=p;h=h+4|0}m=0;if((g|0)==(o|0))break b;c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+344>>2]=o;J[k+340>>2]=g;J[k+336>>2]=f;J[k+332>>2]=c?88482:88539;J[k+328>>2]=j;J[k+324>>2]=g>>>0>>0?88871:88926;J[k+320>>2]=i;le(e,95749,88788,k+320|0);e=(g|0)>(o|0);y:{if((g|0)<=(o|0)|h>>>0<=r>>>0)break y;while(1){h=h-4|0;g=g-J[h>>2]|0;e=(o|0)<(g|0);if((g|0)<= +(o|0))break y;if(h>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(h-r&4){J[h>>2]=0;h=h+4|0}J[h>>2]=o-((g|0)>0?g:0);h=h+4|0;break b}if(!e)break b;J[h+4>>2]=0;J[h>>2]=o;h=h+8|0;break b}z:{if((o|0)<=0){m=0;f=r;break z}f=J[q+84>>2];d=f+4|0;n=J[f>>2];i=0;f=r;p=0;A:{B:{C:{D:{E:{F:{G:{H:{I:{while(1){j=e;J:{if((e|0)>6)break J;if(h>>>0>=t>>>0){j=7;if(e)break J;break c}l=K[K[h|0]+u|0]<>>e|0;e=j-e|0;K:{L:{M:{N:{O:{P:switch(K[m|0]-1|0){case 0:Q:{if((f| +0)==(r|0)){j=d;break Q}j=d;if((g|0)<(n|0))break Q;while(1){m=J[d>>2];s=J[d+4>>2];j=d+8|0;d=j;n=(m+n|0)+s|0;if((n|0)<=(g|0))continue;break}}g=J[j>>2]+n|0;p=g+(i+p|0)|0;d=j+8|0;n=J[j+4>>2]+g|0;break K;case 1:if(!(f-r&4))break M;while(1){R:{if((e|0)>12){i=e;break R}if(h>>>0>=t>>>0){i=13;if(!e)break c;break R}m=e+8|0;j=h+1|0;l=K[K[h|0]+u|0]<4){i=m;h=j;break R}i=13;if(j>>>0>=t>>>0){h=j;break R}i=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=i-e|0;i= +K[j|0];if(i-10>>>0>=2){if((i|0)!=8)break D;j=J[j+4>>2];J[f>>2]=j+p;i=f+4|0;g=g+j|0;p=0;while(1){S:{if((e|0)>11){j=e;break S}if(h>>>0>=t>>>0){j=12;if(e)break S;f=i;break c}s=e+8|0;m=h+1|0;l=K[K[h|0]+u|0]<3){j=s;h=m;break S}j=12;if(m>>>0>=t>>>0){h=m;break S}j=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=j-e|0;T:switch(K[m|0]-7|0){case 2:case 4:j=J[m+4>>2];p=j+p|0;g=g+j|0;continue;case 0:break T;default:break I}break}j=i;i=J[m+4>>2];J[j>>2]=i+p;g= +g+i|0;break L}else{i=J[j+4>>2];p=i+p|0;g=g+i|0;continue}}case 5:J[f>>2]=o-g;d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+208>>2]=g;J[k+204>>2]=i;J[k+200>>2]=d?88482:88539;J[k+196>>2]=m;J[k+192>>2]=n;Uc(j,95749,89109,k+192|0);f=f+4|0;break C;case 11:J[f>>2]=o-g;f=f+4|0;U:{if((e|0)>3){d=e;break U}if(h>>>0>=t>>>0){d=4;if(!e)break c;break U}d=e+8|0;l=K[K[h|0]+u|0]<>2];e=fc-32|0;fc=e;j=J[a+12>>2]&1024;n=J[(j?504:480)+a>>2];m=J[a+628>> +2];s=J[a>>2];J[e+16>>2]=g;J[e+12>>2]=n;J[e+8>>2]=j?88482:88539;J[e+4>>2]=i;J[e>>2]=s;Uc(m,95749,88316,e);fc=e+32|0}l=l>>>4|0;e=d-4|0;m=1;break B;case 4:V:{if((f|0)==(r|0)){j=d;break V}j=d;if((g|0)<(n|0))break V;while(1){s=J[d>>2];v=J[d+4>>2];j=d+8|0;d=j;n=(n+s|0)+v|0;if((n|0)<=(g|0))continue;break}}d=(i+n|0)-J[m+4>>2]|0;J[f>>2]=d+p;g=d+g|0;d=j-4|0;n=n-J[d>>2]|0;f=f+4|0;break O;case 2:break N;case 3:break P;default:break G}W:{if((f|0)==(r|0)){j=d;break W}j=d;if((g|0)<(n|0))break W;while(1){s=J[d>> +2];v=J[d+4>>2];j=d+8|0;d=j;n=(n+s|0)+v|0;if((n|0)<=(g|0))continue;break}}d=(i+p|0)+n|0;i=J[m+4>>2];J[f>>2]=d+i;d=j+4|0;g=i+n|0;n=J[j>>2]+n|0;f=f+4|0}p=0;break K}X:{if((f|0)==(r|0)){m=n;j=d;break X}j=d;m=n;if((g|0)<(n|0))break X;while(1){n=J[d>>2];s=J[d+4>>2];j=d+8|0;d=j;m=(m+n|0)+s|0;if((m|0)<=(g|0))continue;break}}J[f>>2]=(i+p|0)+m;d=j+4|0;f=f+4|0;n=J[j>>2]+m|0;p=0;g=m;break K}while(1){Y:{if((e|0)>11){i=e;break Y}if(h>>>0>=t>>>0){i=12;if(!e)break c;break Y}m=e+8|0;j=h+1|0;l=K[K[h|0]+u|0]<3){i=m;h=j;break Y}i=12;if(j>>>0>=t>>>0){h=j;break Y}i=e+16|0;l=K[K[h+1|0]+u|0]<>>e|0;e=i-e|0;i=f;Z:switch(K[j|0]-7|0){case 2:case 4:i=J[j+4>>2];p=i+p|0;g=g+i|0;continue;case 0:break Z;default:break I}break}i=J[j+4>>2];J[f>>2]=i+p;j=f+4|0;g=g+i|0;p=0;while(1){_:{if((e|0)>12){i=e;break _}if(h>>>0>=t>>>0){i=13;if(e)break _;f=j;break c}s=e+8|0;m=h+1|0;l=K[K[h|0]+u|0]<4){i=s;h=m;break _}i=13;if(m>>>0>=t>>>0){h=m;break _}i=e+16|0;l=K[K[h+ +1|0]+u|0]<>>e|0;e=i-e|0;i=K[m|0];if(i-10>>>0>=2){if((i|0)!=8){f=j;break D}i=J[m+4>>2];J[j>>2]=i+p;g=g+i|0}else{i=J[m+4>>2];p=i+p|0;g=g+i|0;continue}break}}p=0;f=f+8|0;if((r|0)==(f|0)){f=r;break K}if((g|0)<(n|0)|(n|0)>=(o|0))break K;while(1){i=d+8|0;n=J[d+4>>2]+(J[d>>2]+n|0)|0;if((n|0)>(g|0)){d=i;break K}d=i;if((n|0)<(o|0))continue;break}}i=0-g|0;if((g|0)<(o|0))continue;break}m=0;if(!p)break A;if((g+p|0)<(o|0))break H;d=h;break E}d=J[a+12>>2]&1024; +f=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+144>>2]=g;J[k+140>>2]=f;J[k+136>>2]=d?88482:88539;J[k+132>>2]=m;J[k+128>>2]=n;Uc(j,95749,88316,k+128|0);f=i;m=0;break B}$:{if((e|0)>0){n=e;break $}if(h>>>0>=t>>>0){n=1;if(!e)break c;break $}n=e+8|0;l=K[K[h|0]+u|0]<>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+48>>2]=g;J[k+44>>2]=i;J[k+40>>2]=d?88482:88539;J[k+36>>2]=m;J[k+32>>2]=n;Uc(j,95749,88316,k+32|0);break C}l= +l>>>1|0;e=n-1|0}J[f>>2]=p;f=f+4|0;break z}d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];m=J[q+108>>2];J[k+176>>2]=g;J[k+172>>2]=i;J[k+168>>2]=d?88482:88539;J[k+164>>2]=m;J[k+160>>2]=n;Uc(j,95749,88316,k+160|0)}m=0}if(!p)break A;J[f>>2]=p;f=f+4|0}d=h}if((g|0)==(o|0))break d;h=J[a+12>>2]&1024;i=J[(h?504:480)+a>>2];j=J[a+628>>2];n=J[a>>2];s=J[q+108>>2];J[k+24>>2]=o;J[k+20>>2]=g;J[k+16>>2]=i;J[k+12>>2]=h?88482:88539;J[k+8>>2]=s;J[k+4>>2]=g>>>0>>0?88871:88926;J[k>>2]=n;le(j,95749, +88788,k);n=(g|0)>(o|0);aa:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break aa;while(1){f=f-4|0;g=g-J[f>>2]|0;n=(o|0)<(g|0);if((g|0)<=(o|0))break aa;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f-r&4){J[f>>2]=0;f=f+4|0}J[f>>2]=o-((g|0)>0?g:0);f=f+4|0;break d}if(!n)break d}J[f+4>>2]=0;J[f>>2]=o;f=f+8|0}kc[J[q+76>>2]](b,r,f,o);J[f>>2]=0;h=J[q+88>>2];r=J[q+84>>2];J[q+88>>2]=r;J[q+84>>2]=h;J[q+108>>2]=J[q+108>>2]+1;h=J[q+8>>2];b=h+b|0;c=c-h|0;if((c|0)>0)continue;break}g=J[a+608>>2];b=J[a+604>>2]}J[q+72>>2]=m; +J[q+64>>2]=l;J[q+68>>2]=e;b=(b-d|0)+g|0;break a}d=h;c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+112>>2]=g;J[k+108>>2]=h;J[k+104>>2]=c?88482:88539;J[k+100>>2]=j;J[k+96>>2]=i;le(e,95749,88656,k+96|0);if(p){J[f>>2]=p;f=f+4|0}m=0;if((g|0)==(o|0)){h=f;break b}c=J[a+12>>2]&1024;h=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];j=J[q+108>>2];J[k+88>>2]=o;J[k+84>>2]=g;J[k+80>>2]=h;J[k+76>>2]=c?88482:88539;J[k+72>>2]=j;J[k+68>>2]=g>>>0>>0?88871:88926;J[k+64>>2]=i;le(e, +95749,88788,k- -64|0);e=(g|0)>(o|0);ba:{if((g|0)<=(o|0)|f>>>0<=r>>>0)break ba;while(1){f=f-4|0;g=g-J[f>>2]|0;e=(o|0)<(g|0);if((g|0)<=(o|0))break ba;if(f>>>0>r>>>0)continue;break}}if((g|0)<(o|0)){if(f-r&4){J[f>>2]=0;f=f+4|0}J[f>>2]=o-((g|0)>0?g:0);h=f+4|0;break b}if(!e){h=f;break b}J[f+4>>2]=0;J[f>>2]=o;h=f+8|0}kc[J[q+76>>2]](b,r,h,o);J[q+72>>2]=m;J[q+64>>2]=l;J[q+68>>2]=0;w=-1;b=J[a+608>>2]+(J[a+604>>2]-d|0)|0}J[a+604>>2]=d;J[a+608>>2]=b;fc=k+416|0;return w|0}function LYa(a,b,c,d,e,f,g,h,i,j,k,l){a= +a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;j=fc-224|0;fc=j;a:{b:{c:{d:{e:{f:{g:{h:{n=J[a+168>>2];i:{if(!n)break i;J[j+192>>2]=0;J[j+196>>2]=0;J[j+184>>2]=0;J[j+188>>2]=0;J[j+176>>2]=0;J[j+180>>2]=0;r=J[b+492>>2];J[699344]=0;n=ga(3416,n|0,r+8|0,j+176|0)|0;r=J[699344];J[699344]=0;j:{k:{l:{m:{n:{o:{if((r|0)!=1){if(!n)break j;r=J[b+592>>2];if(!K[a+229|0]&(r|0)==3)break j;n=J[b+492>>2];p=O[b+512>>3];q=O[b+520>>3];s=O[b+528>>3];t= +O[b+504>>3];J[j+120>>2]=0;J[j+124>>2]=1076101120;m=J[a+104>>2];o=J[J[m>>2]+248>>2];J[699344]=0;aa(o|0,m|0,j+120|0)|0;m=J[699344];J[699344]=0;p:{q:{r:{if((m|0)!=1){p=Y(t*t+p*p);q=Y(q*q+s*s);q=p>2];s=O[j+120>>3];t=q*s;if(!(t>0))break q;O[j+88>>3]=t;o=J[J[m>>2]+252>>2];J[699344]=0;aa(o|0,m|0,j+88|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break r;d=d-h;c=c-g;h=O[b+568>>3];g=h*(p*O[b+512>>3]);u=-O[b+528>>3];v=-O[b+520>>3];h=p*O[b+504>>3]*h;break p}a=Z()|0;break a}a=Z()|0;break a}O[j+ +88>>3]=q*-s;o=J[J[m>>2]+252>>2];J[699344]=0;aa(o|0,m|0,j+88|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break o;h=O[b+568>>3];g=h*(p*-O[b+512>>3]);u=O[b+528>>3];v=O[b+520>>3];h=p*-O[b+504>>3]*h}w=O[b+16>>3];x=O[b+32>>3];q=h*w+g*x;O[j+128>>3]=q;s=O[b+24>>3];t=O[b+40>>3];v=p*v;u=p*u;p=w*v+x*u;O[j+144>>3]=p;u=v*s+u*t;v=-u;O[j+152>>3]=v;g=h*s+g*t;h=-g;O[j+136>>3]=h;O[j+160>>3]=c*w+d*x+O[b+48>>3];O[j+168>>3]=O[b+104>>3]-(c*s+d*t+O[b+56>>3]);s:{c=Y(p*p+u*u);d=Y(q*q+g*g);c=c.001))break s;O[j+ +152>>3]=v/c;O[j+144>>3]=p/c;O[j+136>>3]=h/c;O[j+128>>3]=q/c;J[j+88>>2]=0;J[j+92>>2]=1072693248;m=J[a+104>>2];o=J[J[m>>2]+248>>2];J[699344]=0;aa(o|0,m|0,j+88|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break n;m=J[a+104>>2];O[j+72>>3]=c*O[j+88>>3];o=J[J[m>>2]+252>>2];J[699344]=0;aa(o|0,m|0,j+72|0)|0;m=J[699344];J[699344]=0;if((m|0)!=1)break s;a=Z()|0;break a}J[j+112>>2]=0;J[j+116>>2]=0;J[699344]=0;J[j+104>>2]=0;J[j+108>>2]=0;ma(3418,a|0,j+128|0,j+112|0,j+104|0,1);m=J[699344];J[699344]=0;t:{u:{v:{w:{x:{y:{z:{if((m| +0)!=1){J[j+96>>2]=0;J[j+88>>2]=0;J[j+92>>2]=0;m=J[J[n>>2]+8>>2];J[699344]=0;m=_(m|0,n|0)|0;o=J[699344];J[699344]=0;if((o|0)==1)break y;o=J[j+204>>2];if(!o|M[j+212>>2]<=i>>>0)break z;k=L[(i<<2)+o>>1];J[699344]=0;IF(j+88|0,k);k=J[699344];J[699344]=0;if((k|0)!=1)break w;a=Z()|0;break b}a=Z()|0;break a}if(!m)break x;J[699344]=0;IF(j+88|0,i);k=J[699344];J[699344]=0;if((k|0)!=1)break v}a=Z()|0;break b}if(J[n+20>>2]==4){J[699344]=0;ca(3420,j+72|0,k|0,l|0);k=J[699344];J[699344]=0;if((k|0)!=1){if(H[j+99|0]< +0)uc(J[j+88>>2]);J[j+96>>2]=J[j+80>>2];k=J[j+76>>2];J[j+88>>2]=J[j+72>>2];J[j+92>>2]=k;break w}a=Z()|0;break b}A:{if(H[j+99|0]<0){J[j+92>>2]=0;k=J[j+88>>2];break A}H[j+99|0]=0;k=j+88|0}J[k>>2]=0}J[j+68>>2]=0;l=J[j+200>>2];if(M[j+208>>2]>i>>>0?l:0)break u;if(!m)break t;break m}J[j+68>>2]=0;l=J[j+200>>2];if(!l|M[j+208>>2]<=i>>>0)break m}i=J[(i<<2)+l>>2];J[j+68>>2]=i;k=(i|0)!=0;break k}l=K[j+99|0];k=0;if(l<<24>>24<0?J[j+92>>2]:l)break k;break l}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}if(J[n+ +172>>2]|(J[n+232>>2]|J[n+228>>2]))break l;k=0;if(J[n+20>>2]!=8)break k}J[j+68>>2]=i?i:65534;k=1}l=k;B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{if(!((1<>>0<=6:0)|K[a+229|0]))break K;i=0;J[j+80>>2]=0;J[j+72>>2]=0;J[j+76>>2]=0;k=J[a+104>>2];n=J[J[k>>2]+240>>2];J[699344]=0;m=j+72|0;aa(n|0,k|0,m|0)|0;k=J[699344];J[699344]=0;L:{M:{if((k|0)!=1){N:{if(J[j+68>>2])break N;n=K[j+99|0];k=n<<24>>24;k=(k|0)<0;if(!(k?J[j+92>>2]:n))break N;n=K[j+83|0];if(!(n<<24>>24<0?J[j+76>>2]:n))break N;n=J[(k?J[j+88>>2]:j+88|0)>> +2];i=J[a+104>>2];k=J[J[i>>2]+256>>2];J[699344]=0;aa(k|0,i|0,j+24|0)|0;i=J[699344];J[699344]=0;O:{P:{if((i|0)!=1){i=J[a+160>>2];J[j+16>>2]=0;J[j+56>>2]=0;J[j+60>>2]=1079115776;J[j+40>>2]=0;J[j+44>>2]=1079115776;k=J[J[i>>2]+148>>2];J[699344]=0;o=m;m=j+16|0;ja(k|0,i|0,o|0,m|0,j+120|0,j+56|0,j+40|0)|0;i=J[699344];J[699344]=0;Q:{R:{S:{T:{if((i|0)!=1){i=J[a+160>>2];k=J[J[i>>2]+24>>2];J[699344]=0;i=_(k|0,i|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break T;if(!i)break R;J[j+16>>2]=0;k=J[J[i>>2]+84>>2];J[699344]= +0;k=ga(k|0,i|0,n|0,m|0)|0;o=J[699344];J[699344]=0;if((o|0)!=1){if((k|0)>0|n>>>0>61439)break S;k=J[J[i>>2]+84>>2];J[699344]=0;k=ga(k|0,i|0,n+61440|0,m|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1)break S}a=Z()|0;break J}a=Z()|0;break J}a=Z()|0;break J}if((k|0)<=0)break Q}i=0;break N}i=J[a+160>>2];k=J[J[i>>2]+20>>2];J[699344]=0;i=_(k|0,i|0)|0;k=J[699344];J[699344]=0;U:{if((k|0)==1)break U;k=J[J[i>>2]+56>>2];J[699344]=0;m=j+56|0;ca(k|0,m|0,i|0,n|0);i=J[699344];J[699344]=0;k=1;if((i|0)==1)break U;i=0;o=K[j+ +67|0];n=o<<24>>24;V:{if((n|0)<0?J[j+60>>2]:o){J[699344]=0;i=J[j+24>>2];ia(3376,j+40|0,m|0,i&1,i>>>1&1);i=J[699344];J[699344]=0;if((i|0)==1)break V;i=K[j+51|0];k=i<<24>>24<0?J[j+44>>2]:i;W:{if(!k){n=J[a+168>>2];i=J[b+492>>2];b=J[i+8>>2];i=J[i+12>>2];J[699344]=0;J[j+32>>2]=b;J[j+36>>2]=i;J[j>>2]=b;J[j+4>>2]=i;uK(n,j);b=J[699344];J[699344]=0;if((b|0)!=1)break W;break P}b=J[a+104>>2];i=J[J[b>>2]+244>>2];J[699344]=0;aa(i|0,b|0,j+40|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break P}if(H[j+51|0]<0)uc(J[j+ +40>>2]);i=(k|0)!=0;k=i;n=K[j+67|0]}if(n<<24>>24<0)uc(J[j+56>>2]);if(k)break N;if(H[j+83|0]>=0)break B;uc(J[j+72>>2]);break B}a=Z()|0;break O}a=Z()|0;break J}a=Z()|0;break J}a=Z()|0;if(H[j+51|0]>=0)break O;uc(J[j+40>>2])}if(H[j+67|0]>=0)break J;uc(J[j+56>>2]);break J}b=J[a+104>>2];O[j+56>>3]=O[j+112>>3]/72*25.4;O[j+40>>3]=O[j+104>>3]/72*25.4;O[j+24>>3]=e/72*25.4;O[j+16>>3]=f/72*25.4;k=J[J[b>>2]+300>>2];J[699344]=0;za(k|0,b|0,j+88|0,j+68|0,l|0,j+56|0,j+40|0,j+24|0,j+16|0)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break M;if(!i)break L;b=J[a+104>>2];i=J[J[b>>2]+244>>2];J[699344]=0;aa(i|0,b|0,j+72|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break L}a=Z()|0;break J}a=Z()|0;break J}if(H[j+83|0]>=0)break K;uc(J[j+72>>2])}J[j+16>>2]=0;b=J[a+104>>2];i=J[J[b>>2]+16>>2];J[699344]=0;aa(i|0,b|0,j+16|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;if((r|0)!=2|J[j+16>>2]!=8)break F;b=J[a+104>>2];J[j+72>>2]=0;i=J[J[b>>2]+416>>2];J[699344]=0;k=i;i=j+72|0;b=ga(k|0,b|0,837304,i|0)|0;k=J[699344];J[699344]=0;if((k| +0)==1)break g;if(b)break E;b=J[a+104>>2];J[j+72>>2]=256;k=J[J[b>>2]+308>>2];J[699344]=0;aa(k|0,b|0,i|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break I;J[j+12>>2]=0;b=J[a+104>>2];i=J[J[b>>2]+256>>2];J[699344]=0;aa(i|0,b|0,j+12|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break H;b=J[j+12>>2];J[j+8>>2]=b;if(b&1)break G;J[j+8>>2]=b|1;b=J[a+104>>2];i=J[J[b>>2]+260>>2];J[699344]=0;aa(i|0,b|0,j+8|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break G;break c}if(H[j+83|0]>=0)break b;uc(J[j+72>>2]);break b}a=Z()|0; +break b}a=Z()|0;break b}c=f/72*25.4;d=e/72*25.4;b=J[a+104>>2];X:{if(J[j+68>>2]){O[j+72>>3]=O[j+112>>3]/72*25.4;O[j+56>>3]=O[j+104>>3]/72*25.4;O[j+40>>3]=d;O[j+24>>3]=c;i=J[J[b>>2]+300>>2];J[699344]=0;za(i|0,b|0,j+88|0,j+68|0,l|0,j+72|0,j+56|0,j+40|0,j+24|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break X;a=Z()|0;break b}O[j+72>>3]=O[j+112>>3]/72*25.4;O[j+56>>3]=O[j+104>>3]/72*25.4;O[j+40>>3]=d;O[j+24>>3]=c;i=J[J[b>>2]+292>>2];J[699344]=0;ja(i|0,b|0,j+88|0,j+72|0,j+56|0,j+40|0,j+24|0)|0;b=J[699344]; +J[699344]=0;if((b|0)!=1)break X;a=Z()|0;break b}if(J[j+12>>2]!=J[j+8>>2]){b=J[a+104>>2];i=J[J[b>>2]+260>>2];J[699344]=0;aa(i|0,b|0,j+12|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c}b=J[a+104>>2];J[j+72>>2]=256;i=J[J[b>>2]+312>>2];J[699344]=0;aa(i|0,b|0,j+72|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break C;a=Z()|0;break b}if((r&-5)-1>>>0>1)break D}b=J[a+104>>2];J[j+72>>2]=256;i=J[J[b>>2]+308>>2];J[699344]=0;k=i;i=j+72|0;aa(k|0,b|0,i|0)|0;b=J[699344];J[699344]=0;Y:{Z:{if((b|0)!=1){b=J[a+104>>2]; +k=J[J[b>>2]+344>>2];J[699344]=0;_(k|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;c=f/72*25.4;d=e/72*25.4;b=J[a+104>>2];if(!J[j+68>>2])break Z;O[j+72>>3]=O[j+112>>3]/72*25.4;O[j+56>>3]=O[j+104>>3]/72*25.4;O[j+40>>3]=d;O[j+24>>3]=c;k=J[J[b>>2]+372>>2];J[699344]=0;za(k|0,b|0,j+88|0,j+68|0,l|0,i|0,j+56|0,j+40|0,j+24|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break Y;a=Z()|0;break b}a=Z()|0;break b}O[j+72>>3]=O[j+112>>3]/72*25.4;O[j+56>>3]=O[j+104>>3]/72*25.4;O[j+40>>3]=d;O[j+24>>3]=c;i=J[J[b>>2]+ +364>>2];J[699344]=0;ja(i|0,b|0,j+88|0,j+72|0,j+56|0,j+40|0,j+24|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break Y;a=Z()|0;break b}J[j+72>>2]=(r|0)==2?257:1;b=J[a+104>>2];i=J[J[b>>2]+348>>2];J[699344]=0;aa(i|0,b|0,j+72|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[a+104>>2];J[j+56>>2]=256;i=J[J[b>>2]+312>>2];J[699344]=0;aa(i|0,b|0,j+56|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break D;a=Z()|0;break b}if((r|0)<4)break C;J[j+80>>2]=0;J[j+72>>2]=0;J[j+76>>2]=0;J[j- -64>>2]=0;J[j+56>>2]=0;J[j+60>> +2]=0;J[j+48>>2]=0;J[699344]=0;J[j+40>>2]=0;J[j+44>>2]=0;da(3417,j+40|0,J[j+68>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[a+104>>2];i=J[J[b>>2]+232>>2];J[699344]=0;aa(i|0,b|0,j+72|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[a+104>>2];i=J[J[b>>2]+240>>2];J[699344]=0;aa(i|0,b|0,j+56|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[a+104>>2];i=J[J[b>>2]+248>>2];J[699344]=0;aa(i|0,b|0,j+24|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[a+104>>2];i=J[J[b>>2]+256>>2];J[699344]= +0;aa(i|0,b|0,j+12|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=(J[a+220>>2]+J[a+216>>2]|0)-1|0;i=J[a+204>>2]+(b>>>6&67108860)|0;k=b&255;b=J[(J[i>>2]+(k<<4)|0)+12>>2];if(!b){J[699344]=0;b=_(4,16)|0;l=J[699344];J[699344]=0;if((l|0)==1)break e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;k=k<<4;J[(k+J[i>>2]|0)+12>>2]=b;b=J[(k+J[i>>2]|0)+12>>2]}J[699344]=0;Jb(3421,b|0,j+72|0,j+56|0,+O[j+24>>3],J[j+12>>2],j+128|0,j+40|0,+O[j+112>>3],+O[j+104>>3],0,0,0);b=J[699344];J[699344]=0;if((b|0)==1)break e; +if(H[j+51|0]<0)uc(J[j+40>>2]);if(H[j+67|0]<0)uc(J[j+56>>2]);if(H[j+83|0]>=0)break C;uc(J[j+72>>2])}a=J[a+104>>2];b=J[J[a>>2]+252>>2];J[699344]=0;aa(b|0,a|0,j+120|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d}if(H[j+99|0]>=0)break j;uc(J[j+88>>2])}if(H[j+199|0]<0)uc(J[j+188>>2]);if(H[j+187|0]>=0)break i;uc(J[j+176>>2])}fc=j+224|0;return}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;if(H[j+51|0]<0)uc(J[j+40>>2]);if(H[j+67|0]<0)uc(J[j+56>>2]);if(H[j+83|0]>=0)break b;uc(J[j+72>>2]);break b}a= +Z()|0;break b}a=Z()|0}if(H[j+99|0]>=0)break a;uc(J[j+88>>2])}OC(j+176|0);ba(a|0);B()}function Dma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!J[a+8>>2]){c=vc(32);J[c+20>>2]=0;J[c+16>>2]=J[612267];b=J[612266];J[c+8>>2]=J[612265];J[c+12>>2]=b;b=J[612264];J[c>>2]=J[612263];J[c+4>>2]=b;g=a+4|0;e=g;b:{c:{b=J[a+4>>2];if(b)while(1){e=b;if(!J[b+16>>2])break c;b=J[b>>2];if(b)continue;break}J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b+16>>2]=0;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+ +24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[e>>2]=b;d=J[J[a>>2]>>2];if(d){J[a>>2]=d;b=J[e>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break b}uc(c)}c=vc(32);J[c+16>>2]=0;b=J[612272];J[c+8>>2]=J[612271];J[c+12>>2]=b;b=J[612270];J[c>>2]=J[612269];J[c+4>>2]=b;d:{e:{d=g;e=d;b=J[e>>2];f:{if(!b)break f;while(1){e=b;d=J[b+16>>2];if(d>>>0>=256){d=b;b=J[b>>2];if(b)continue;break f}if((d|0)==255)break e;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a; +J[b+16>>2]=255;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=4;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break d}uc(c)}c=vc(32);J[c+16>>2]=0;b=J[612277];J[c+8>>2]=J[612276];J[c+12>>2]=b;b=J[612275];J[c>>2]=J[612274];J[c+4>>2]=b;g:{h:{d=g;e=d;b=J[e>>2];i:{if(!b)break i;while(1){e=b;d=J[b+16>>2];if(d>>>0>=65536){d=b;b=J[b>>2];if(b)continue;break i}if((d|0)==65535)break h;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]= +0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=65535;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=4;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break g}uc(c)}c=vc(48);J[c+32>>2]=0;b=J[612286];J[c+24>>2]=J[612285];J[c+28>>2]=b;b=J[612284];J[c+16>>2]=J[612283];J[c+20>>2]=b;b=J[612282];J[c+8>>2]=J[612281];J[c+12>>2]=b;b=J[612280];J[c>>2]=J[612279];J[c+4>>2]=b;j:{k:{d=g;e=d;b=J[e>>2];l:{if(!b)break l; +while(1){e=b;d=J[b+16>>2];if(d>>>0>=140){d=b;b=J[b>>2];if(b)continue;break l}if((d|0)==139)break k;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=139;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break j}uc(c)}c=vc(48);J[c+32>>2]=0;b=J[612295];J[c+24>>2]=J[612294];J[c+28>>2]=b;b=J[612293];J[c+16>>2]=J[612292]; +J[c+20>>2]=b;b=J[612291];J[c+8>>2]=J[612290];J[c+12>>2]=b;b=J[612289];J[c>>2]=J[612288];J[c+4>>2]=b;m:{n:{d=g;e=d;b=J[e>>2];o:{if(!b)break o;while(1){e=b;d=J[b+16>>2];if(d>>>0>=35724){d=b;b=J[b>>2];if(b)continue;break o}if((d|0)==35723)break n;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=35723;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>> +2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break m}uc(c)}c=vc(48);J[c+32>>2]=0;b=J[612304];J[c+24>>2]=J[612303];J[c+28>>2]=b;b=J[612302];J[c+16>>2]=J[612301];J[c+20>>2]=b;b=J[612300];J[c+8>>2]=J[612299];J[c+12>>2]=b;b=J[612298];J[c>>2]=J[612297];J[c+4>>2]=b;p:{q:{d=g;e=d;b=J[e>>2];r:{if(!b)break r;while(1){e=b;d=J[b+16>>2];if(d>>>0>=11119018){d=b;b=J[b>>2];if(b)continue;break r}if((d|0)==11119017)break q;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)== +1)break a;J[b+16>>2]=11119017;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=8;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break p}uc(c)}c=vc(48);J[c+36>>2]=0;J[c+32>>2]=J[612314];b=J[612313];J[c+24>>2]=J[612312];J[c+28>>2]=b;b=J[612311];J[c+16>>2]=J[612310];J[c+20>>2]=b;b=J[612309];J[c+8>>2]=J[612308];J[c+12>>2]=b;b=J[612307];J[c>>2]=J[612306];J[c+4>>2]=b;s:{t:{d=g;e=d;b=J[e>>2];u:{if(!b)break u;while(1){e=b;d=J[b+16>> +2];if(d>>>0>=25601){d=b;b=J[b>>2];if(b)continue;break u}if((d|0)==25600)break t;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=25600;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break s}uc(c)}c=vc(48);J[c+44>>2]=0;J[c+40>>2]=J[612326];b=J[612325];J[c+32>>2]=J[612324];J[c+36>>2]=b;b=J[612323];J[c+24>> +2]=J[612322];J[c+28>>2]=b;b=J[612321];J[c+16>>2]=J[612320];J[c+20>>2]=b;b=J[612319];J[c+8>>2]=J[612318];J[c+12>>2]=b;b=J[612317];J[c>>2]=J[612316];J[c+4>>2]=b;v:{w:{d=g;e=d;b=J[e>>2];x:{if(!b)break x;while(1){e=b;d=J[b+16>>2];if(d>>>0>=8388737){d=b;b=J[b>>2];if(b)continue;break x}if((d|0)==8388736)break w;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=8388736;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=11;J[b+28>>2]=-2147483636; +J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break v}uc(c)}c=vc(32);J[c+28>>2]=0;J[c+24>>2]=J[612334];b=J[612333];J[c+16>>2]=J[612332];J[c+20>>2]=b;b=J[612331];J[c+8>>2]=J[612330];J[c+12>>2]=b;b=J[612329];J[c>>2]=J[612328];J[c+4>>2]=b;y:{z:{d=g;e=d;b=J[e>>2];A:{if(!b)break A;while(1){e=b;d=J[b+16>>2];if(d>>>0>=9109505){d=b;b=J[b>>2];if(b)continue;break A}if((d|0)==9109504)break z;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)| +0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=9109504;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break y}uc(c)}c=vc(48);J[c+40>>2]=0;b=J[612345];J[c+32>>2]=J[612344];J[c+36>>2]=b;b=J[612343];J[c+24>>2]=J[612342];J[c+28>>2]=b;b=J[612341];J[c+16>>2]=J[612340];J[c+20>>2]=b;b=J[612339];J[c+8>>2]=J[612338];J[c+12>>2]=b;b=J[612337];J[c>>2]=J[612336];J[c+4>>2]=b;B:{C:{d= +g;e=d;b=J[e>>2];D:{if(!b)break D;while(1){e=b;d=J[b+16>>2];if(d>>>0>=8421377){d=b;b=J[b>>2];if(b)continue;break D}if((d|0)==8421376)break C;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=8421376;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=10;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break B}uc(c)}c=vc(32);J[c+20>>2]=0;J[c+16>>2]=J[612351];b=J[612350]; +J[c+8>>2]=J[612349];J[c+12>>2]=b;b=J[612348];J[c>>2]=J[612347];J[c+4>>2]=b;E:{F:{d=g;e=d;b=J[e>>2];G:{if(!b)break G;while(1){e=b;d=J[b+16>>2];if(d>>>0>=65281){d=b;b=J[b>>2];if(b)continue;break G}if((d|0)==65280)break F;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=65280;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>> +2]=J[a+8>>2]+1;break E}uc(c)}c=vc(48);J[c+36>>2]=0;J[c+32>>2]=J[612361];b=J[612360];J[c+24>>2]=J[612359];J[c+28>>2]=b;b=J[612358];J[c+16>>2]=J[612357];J[c+20>>2]=b;b=J[612356];J[c+8>>2]=J[612355];J[c+12>>2]=b;b=J[612354];J[c>>2]=J[612353];J[c+4>>2]=b;H:{I:{d=g;e=d;b=J[e>>2];J:{if(!b)break J;while(1){e=b;d=J[b+16>>2];if(d>>>0>=13882324){d=b;b=J[b>>2];if(b)continue;break J}if((d|0)==13882323)break I;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a; +J[b+16>>2]=13882323;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=9;J[b+28>>2]=-2147483636;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break H}uc(c)}c=vc(32);J[c+28>>2]=0;J[c+24>>2]=J[612369];b=J[612368];J[c+16>>2]=J[612367];J[c+20>>2]=b;b=J[612366];J[c+8>>2]=J[612365];J[c+12>>2]=b;b=J[612364];J[c>>2]=J[612363];J[c+4>>2]=b;K:{L:{d=g;e=d;b=J[e>>2];M:{if(!b)break M;while(1){e=b;d=J[b+16>>2];if(d>>>0>=16711936){d=b;b=J[b>>2];if(b)continue;break M}if((d| +0)==16711935)break L;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=16711935;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=7;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break K}uc(c)}c=vc(16);J[c+12>>2]=0;J[c+8>>2]=J[612373];b=J[612372];J[c>>2]=J[612371];J[c+4>>2]=b;N:{O:{d=g;e=d;b=J[e>>2];P:{if(!b)break P;while(1){e=b;d=J[b+16>>2];if(d>>>0>=16711681){d= +b;b=J[b>>2];if(b)continue;break P}if((d|0)==16711680)break O;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=16711680;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=3;J[b+28>>2]=-2147483644;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break N}uc(c)}c=vc(32);J[c+20>>2]=0;J[c+16>>2]=J[612379];b=J[612378];J[c+8>>2]=J[612377];J[c+12>>2]=b;b=J[612376];J[c>>2]=J[612375];J[c+4>> +2]=b;Q:{R:{d=g;e=d;b=J[e>>2];S:{if(!b)break S;while(1){e=b;d=J[b+16>>2];if(d>>>0>=16777216){d=b;b=J[b>>2];if(b)continue;break S}if((d|0)==16777215)break R;b=J[e+4>>2];if(b)continue;break}d=e+4|0}J[699344]=0;b=_(4,32)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+16>>2]=16777215;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=5;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[d>>2]=b;e=J[J[a>>2]>>2];if(e){J[a>>2]=e;b=J[d>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;break Q}uc(c)}c=vc(32);J[c+24>>2]=0;b=J[612386]; +J[c+16>>2]=J[612385];J[c+20>>2]=b;b=J[612384];J[c+8>>2]=J[612383];J[c+12>>2]=b;b=J[612382];J[c>>2]=J[612381];J[c+4>>2]=b;T:{e=g;b=J[e>>2];U:{if(!b)break U;while(1){e=b;d=J[b+16>>2];if(d>>>0>=16776961){g=b;b=J[b>>2];if(b)continue;break U}if((d|0)==16776960)break T;b=J[e+4>>2];if(b)continue;break}g=e+4|0}J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b+16>>2]=16776960;J[b+8>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=6;J[b+28>>2]=-2147483640;J[b+20>>2]=c;J[g>>2]=b;d=J[J[a>>2]>>2]; +if(d){J[a>>2]=d;b=J[g>>2]}Oc(J[a+4>>2],b);J[a+8>>2]=J[a+8>>2]+1;return}uc(c)}return}a=Z()|0;uc(c);ba(a|0);B()}function SXa(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;d=fc-160|0;fc=d;a=$B(a,b,c);J[a+344>>2]=0;J[a+348>>2]=0;J[a>>2]=837688;J[a+352>>2]=0;J[a+356>>2]=0;J[a+360>>2]=0;J[a+364>>2]=0;J[a+368>>2]=0;J[a+372>>2]=0;J[a+376>>2]=0;J[a+380>>2]=0;J[a+384>>2]=0;J[a+388>>2]=0;J[a+392>>2]=0;J[a+396>>2]=0;J[a+400>>2]=0;J[a+404>>2]=0;J[d+128>>2]=13;J[d+112>>2]=13;J[699344]= +0;J[d+96>>2]=13;e=d+112|0;aa(3488,c|0,e|0)|0;f=J[699344];J[699344]=0;h=a+396|0;j=a+348|0;a:{b:{if((f|0)==1)break b;b=J[b+24>>2];J[699344]=0;ha(3372,e|0,b|0,d+96|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;b=d+128|0;e=ha(3368,J[d+104>>2],812930,b|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;c:{d:{e:{if(!e)break e;J[699344]=0;ca(3489,d+144|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break d;if(H[a+359|0]<0)uc(J[j>> +2]);b=J[d+148>>2];J[j>>2]=J[d+144>>2];J[j+4>>2]=b;J[j+8>>2]=J[d+152>>2];b=K[a+359|0];if(!(b<<24>>24<0?J[a+352>>2]:b))break e;J[a+8>>2]=J[a+8>>2]|512}J[699344]=0;$(3370,d+128|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}c=Z()|0;break a}J[699344]=0;$(3370,d+96|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;b=ga(3490,c|0,813296,d+128|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(J[b>>2]==4){J[699344]=0;aa(2974,j|0,J[d+136>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]= +0;$(3370,d+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[d+80>>2]=13;b=J[c+40>>2];H[a+340|0]=(b|0)==1?3:0;J[699344]=0;e=d+80|0;f=ga(3490,c|0,813605,e|0)|0;i=J[699344];J[699344]=0;f:{if((i|0)==1)break f;g:{h:{i:{j:{k:{l:{m:{n:{o:{if(J[f>>2]==7){p:{if(!b){J[699344]=0;ma(3491,d+144|0,a|0,e|0,813936,10);b=J[699344];J[699344]=0;q:{r:{if((b|0)!=1){if(H[a+371|0]<0)uc(J[a+360>>2]);b=J[d+148>>2];J[a+360>>2]=J[d+144>>2];J[a+364>>2]=b;J[a+368>>2]=J[d+152>>2];J[699344]=0;ma(3491,d+144|0,a|0,d+80|0,806726, +11);b=J[699344];J[699344]=0;if((b|0)==1)break r;if(H[a+383|0]<0)uc(J[a+372>>2]);b=J[d+148>>2];J[a+372>>2]=J[d+144>>2];J[a+376>>2]=b;J[a+380>>2]=J[d+152>>2];J[699344]=0;ma(3491,d+144|0,a|0,d+80|0,814173,12);b=J[699344];J[699344]=0;if((b|0)==1)break q;if(H[a+395|0]<0)uc(J[a+384>>2]);b=J[d+148>>2];J[a+384>>2]=J[d+144>>2];J[a+388>>2]=b;J[a+392>>2]=J[d+152>>2];break p}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}J[699344]=0;b=ha(3368,J[d+88>>2],813936,d+128|0,0)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break f;s:{if(J[b>>2]!=3)break s;t:{u:{v:{w:{x:{y:{z:{f=J[J[d+136>>2]+4>>2];b=Yc(f);if(b>>>0>=2147483632){J[699344]=0;$(3030,d+144|0);b=J[699344];J[699344]=0;if((b|0)==1)break z;break g}A:{if(b>>>0<=10){H[d+155|0]=b;e=d+144|0;break A}J[699344]=0;i=(b|15)+1|0;e=_(4,i|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break z;J[d+144>>2]=e;J[d+148>>2]=b;J[d+152>>2]=i|-2147483648}m=cd(e,f,b)+b|0,n=0,H[m|0]=n;e=K[d+155|0];b=e<<24>>24<0;if(((b?J[d+148>>2]:e)|0)!=1)break v;B:{e=K[(b?J[d+144>>2]:d+144|0)|0];switch(e- +52|0){case 1:case 2:case 3:break v;case 4:break x;case 0:break y;default:break B}}b=3;switch(e-108|0){case 0:break u;case 9:break w;default:break v}}c=Z()|0;break a}b=0;break u}b=1;break u}b=2;break u}b=5;e=d+144|0;if(Dl(e,815968))break u;b=4;if(!Dl(e,816151))break t}H[a+340|0]=b}if(H[d+155|0]>=0)break s;uc(J[d+144>>2])}J[699344]=0;$(3370,d+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break f}J[699344]=0;b=ha(3368,J[d+88>>2],816906,d+128|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;if(J[b>>2]== +1){H[a+341|0]=J[d+136>>2];J[a+8>>2]=J[a+8>>2]|8192}J[699344]=0;b=d+128|0;$(3370,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[d+64>>2]=13;J[699344]=0;e=ha(3368,J[d+88>>2],817181,d- -64|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;if(J[e>>2]==7){J[a+344>>2]=1;J[699344]=0;b=ha(3368,J[d+72>>2],817487,b|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;C:{if(J[b>>2]!=4)break C;J[a+344>>2]=J[a+344>>2]|2;f=J[d+136>>2];b=Yc(f);if(b>>>0>=2147483632){J[699344]=0;$(3030,d+144|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break g;break h}D:{if(b>>>0<=10){H[d+155|0]=b;e=d+144|0;break D}J[699344]=0;i=(b|15)+1|0;e=_(4,i|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;J[d+144>>2]=e;J[d+148>>2]=b;J[d+152>>2]=i|-2147483648}m=cd(e,f,b)+b|0,n=0,H[m|0]=n;H[a+342|0]=0;b=K[d+155|0];f=b<<24>>24;e=(f|0)<0;E:{if(((e?J[d+148>>2]:b)|0)!=1)break E;b=2;F:{G:switch(K[(e?J[d+144>>2]:d+144|0)|0]-66|0){case 17:b=3;break F;case 0:break F;case 12:break G;default:break E}b=1}H[a+342|0]=b}if((f|0)>=0)break C;uc(J[d+144>>2])}J[699344]= +0;b=d+128|0;$(3370,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;J[699344]=0;b=ha(3368,J[d+72>>2],778990,b|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;H:{if(J[b>>2]!=4)break H;J[a+344>>2]=J[a+344>>2]|4;f=J[d+136>>2];b=Yc(f);if(b>>>0>=2147483632){J[699344]=0;$(3030,d+144|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break j}I:{if(b>>>0<=10){H[d+155|0]=b;e=d+144|0;break I}J[699344]=0;i=(b|15)+1|0;e=_(4,i|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;J[d+144>>2]=e;J[d+148>>2]=b;J[d+152>> +2]=i|-2147483648}m=cd(e,f,b)+b|0,n=0,H[m|0]=n;H[a+343|0]=0;e=K[d+155|0];f=e<<24>>24;b=(f|0)<0;if(!(((b?J[d+148>>2]:e)|0)!=1|K[(b?J[d+144>>2]:d+144|0)|0]!=65))H[a+343|0]=1;if((f|0)>=0)break H;uc(J[d+144>>2])}J[699344]=0;b=d+128|0;$(3370,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;J[699344]=0;b=ha(3368,J[d+72>>2],818771,b|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;if(J[b>>2]==6){J[a+416>>2]=0;J[a+420>>2]=1071644672;J[a+408>>2]=0;J[a+412>>2]=1071644672;J[a+344>>2]=J[a+344>>2]|8;J[699344]= +0;J[d+144>>2]=13;b=ha(3449,J[d+136>>2],0,d+144|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;k=J[b>>2]-3>>>0>=4294967294?J[d+144>>2]==1?+J[d+152>>2]:O[d+152>>3]:k;J[699344]=0;b=d+144|0;$(3370,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break o;O[a+408>>3]=k;J[699344]=0;J[d+144>>2]=13;b=ha(3449,J[d+136>>2],1,b|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;k=0;k=J[b>>2]-3>>>0>=4294967294?J[d+144>>2]==1?+J[d+152>>2]:O[d+152>>3]:k;J[699344]=0;$(3370,d+144|0);b=J[699344];J[699344]=0;if((b|0)==1)break o; +O[a+416>>3]=k}J[699344]=0;b=d+128|0;$(3370,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;J[699344]=0;b=ha(3368,J[d+72>>2],819349,b|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;if(!(J[b>>2]|!J[d+136>>2]))J[a+344>>2]=J[a+344>>2]|16;J[699344]=0;$(3370,d+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break i}J[699344]=0;$(3370,d- -64|0);b=J[699344];J[699344]=0;if((b|0)==1)break i}J[699344]=0;$(3370,d+80|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;J[d+144>>2]=13;ga(3490,c|0,819446, +d+144|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[699344]=0;J[d+64>>2]=13;b=ga(3490,c|0,807124,d+128|0)|0;c=J[699344];J[699344]=0;J:{if((c|0)==1)break J;K:{if(J[b>>2]!=7)break K;J[699344]=0;b=ha(3368,J[d+136>>2],808457,d- -64|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break J;if(J[b>>2]!=7)break K;i=J[J[d+72>>2]+16>>2];if((i|0)<=0)break K;b=0;while(1){J[699344]=0;f=J[J[J[d+72>>2]+4>>2]+(b<<5)>>2];c=J[699344];J[699344]=0;if((c|0)==1)break k;c=Yc(f);if(c>>>0>=2147483632){J[699344]=0;$(3030,d+ +52|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;c=Z()|0;break a}L:{if(c>>>0<=10){H[d+63|0]=c;e=d+52|0;break L}J[699344]=0;g=(c|15)+1|0;e=_(4,g|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break k;J[d+52>>2]=e;J[d+56>>2]=c;J[d+60>>2]=g|-2147483648}m=cd(e,f,c)+c|0,n=0,H[m|0]=n;c=K[d+63|0];f=c<<24>>24;e=(f|0)<0;g=J[d+56>>2];l=e?g:c;M:{if((l|0)==3){c=0;if(!dd((f|0)<0?J[d+52>>2]:d+52|0,819747,3))break M}J[a+8>>2]=J[a+8>>2]|16384;N:{if((d+52|0)==(h|0))break N;O:{P:{if(H[a+407|0]>=0){if(e)break P;c=J[d+56>> +2];J[h>>2]=J[d+52>>2];J[h+4>>2]=c;J[h+8>>2]=J[d+60>>2];break N}J[699344]=0;ga(3483,h|0,(e?J[d+52>>2]:d+52|0)|0,l|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break O;break N}J[699344]=0;ga(3484,h|0,J[d+52>>2],g|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break N}c=Z()|0;break m}c=1;if(J[d+144>>2]!=6)break M;e=d+52|0;if(H[(H[d+63|0]<0?J[d+52>>2]:e)|0]-48>>>0>9)break M;J[699344]=0;e=ga(3234,e|0,0,10)|0;f=J[699344];J[699344]=0;Q:{if((f|0)!=1){if((e|0)<0)break M;f=J[d+152>>2];if((e|0)>=J[f+12>>2])break M;J[699344]= +0;J[d+32>>2]=13;e=ha(3449,f|0,e|0,d+32|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break n;R:{S:{T:{if(!e)break T;switch(J[d+32>>2]-3|0){case 3:break R;case 0:break S;default:break T}}J[699344]=0;$(3370,d+32|0);e=J[699344];J[699344]=0;if((e|0)!=1)break M;break n}J[699344]=0;f=_(4,12)|0;e=J[699344];J[699344]=0;U:{V:{if((e|0)!=1){J[699344]=0;e=aa(3354,f|0,J[d+40>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break V;f=J[e+4>>2];g=J[e>>2];J[699344]=0;ca(3447,d+16|0,g|0,f|0);f=J[699344];J[699344]=0;if((f| +0)==1)break U;if(H[a+407|0]<0)uc(J[h>>2]);f=J[d+20>>2];J[h>>2]=J[d+16>>2];J[h+4>>2]=f;J[h+8>>2]=J[d+24>>2];uc(ld(e));break Q}c=Z()|0;break m}c=Z()|0;uc(f);break m}c=Z()|0;break m}e=J[d+40>>2];if(J[e+12>>2]<=0)break Q;J[699344]=0;J[d+16>>2]=13;e=ha(3449,e|0,0,d+16|0,0)|0;f=J[699344];J[699344]=0;W:{X:{Y:{if((f|0)!=1){if(J[e>>2]==3){J[699344]=0;f=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Y;J[699344]=0;e=aa(3354,f|0,J[d+24>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break X;f=J[e+4>>2];g=J[e>> +2];J[699344]=0;ca(3447,d+4|0,g|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break W;if(H[a+407|0]<0)uc(J[h>>2]);f=J[d+8>>2];J[h>>2]=J[d+4>>2];J[h+4>>2]=f;J[h+8>>2]=J[d+12>>2];uc(ld(e))}J[699344]=0;$(3370,d+16|0);e=J[699344];J[699344]=0;if((e|0)!=1)break Q}c=Z()|0;break m}c=Z()|0;break m}c=Z()|0;uc(f);break m}c=Z()|0;break m}c=Z()|0;break m}J[699344]=0;$(3370,d+32|0);e=J[699344];J[699344]=0;if((e|0)==1)break n}if(H[d+63|0]<0)uc(J[d+52>>2]);b=b+1|0;if(!((i|0)==(b|0)|c))continue;break}}J[699344]=0;$(3370, +d- -64|0);b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;$(3370,d+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;$(3370,d+144|0);b=J[699344];J[699344]=0;if((b|0)==1)break J;fc=d+160|0;return a|0}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0}if(H[d+63|0]>=0)break a;uc(J[d+52>>2]);break a}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}B()}c=Z()|0;break a}c=Z()|0}if(H[a+407|0]<0)uc(J[h>>2]);if(H[a+395|0]<0)uc(J[a+384>>2]);if(H[a+383|0]<0)uc(J[a+372>> +2]);if(H[a+371|0]<0)uc(J[a+360>>2]);if(H[a+359|0]<0)uc(J[j>>2]);Tm(a);ba(c|0);B()}function PKa(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;e=J[J[b+16>>2]+40>>2];if(!e){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return}c=fc-192|0;fc=c;b=J[e>>2];h=J[b+8>>2];j=J[b+24>>2];J[a>>2]=123;J[a+4>>2]=0;H[a+11|0]=1;J[699344]=0;J[c+176>>2]=13;b=aa(3698,j|0,c+176|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{if((d|0)!=1){u:{if(J[b>>2]!=7)break u; +J[699344]=0;b=c+144|0;ia(3699,b|0,J[c+184>>2],846584,846676);d=J[699344];J[699344]=0;if((d|0)==1)break t;J[699344]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break s;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;b=c+144|0;ia(3699,b|0,J[c+184>>2],846728,846876);d=J[699344];J[699344]=0;if((d|0)==1)break r;J[699344]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break q;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;b=c+144|0;ia(3699,b|0,J[c+184>>2],846918,847032);d=J[699344];J[699344]=0;if((d|0)==1)break p;J[699344]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break o;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;b=c+144|0;ia(3699,b|0,J[c+184>>2],847071,847264);d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>> +2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;b=c+144|0;ia(3699,b|0,J[c+184>>2],847300,847472);d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;b=c+144|0;ia(3699,b|0,J[c+184>>2],847657,847756);d=J[699344];J[699344]=0;if((d|0)==1)break j;J[699344]= +0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;b=c+144|0;ia(3700,b|0,J[c+184>>2],847831,847992);d=J[699344];J[699344]=0;if((d|0)==1)break h;J[699344]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;b=c+144|0;ia(3700,b|0,J[c+184>>2],848098,848304); +d=J[699344];J[699344]=0;if((d|0)==1)break f;J[699344]=0;f=b;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;if(H[c+155|0]>=0)break u;uc(J[c+144>>2])}J[699344]=0;$(3370,c+176|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}b=Z()|0;break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;uc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;uc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c; +uc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;uc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;uc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;uc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;uc(J[c+144>>2]);break c}b=Z()|0;break c}b=Z()|0;if(H[c+155|0]>=0)break c;uc(J[c+144>>2]);break c}g=O[J[e>>2]+16>>3];J[699344]=0;b=c+164|0;La(3701,b|0,+g);d=J[699344];J[699344]=0;v:{w:{if((d|0)!=1){x:{d=Ci(b,46, +0);if((d|0)==-1)break x;J[699344]=0;ca(3702,b|0,d+2|0,0);b=J[699344];J[699344]=0;if((b|0)!=1)break x;b=Z()|0;break v}y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{b=K[c+175|0];k=b<<24>>24;K:{L:{M:{N:{O:{i=(k|0)<0?J[c+168>>2]:b;P:{if(!i)break P;d=i+10|0;if(d>>>0>=1073741808){J[699344]=0;$(2959,c+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break w;break b}Q:{if(d>>>0<=1){J[c+136>>2]=0;J[c+128>>2]=0;J[c+132>>2]=0;H[c+139|0]=d;b=c+128|0;break Q}b=d|3;if(b>>>0>=1073741823){J[699344]=0;ka(209);b=J[699344];J[699344]= +0;if((b|0)!=1)break b;break w}J[699344]=0;f=b+1|0;b=_(4,f<<2)|0;l=J[699344];J[699344]=0;if((l|0)==1)break w;J[c+132>>2]=d;J[c+128>>2]=b;J[c+136>>2]=f|-2147483648}d=J[212105];J[b+32>>2]=J[212104];J[b+36>>2]=d;d=J[212103];J[b+24>>2]=J[212102];J[b+28>>2]=d;d=J[212101];J[b+16>>2]=J[212100];J[b+20>>2]=d;d=J[212099];J[b+8>>2]=J[212098];J[b+12>>2]=d;d=J[212097];J[b>>2]=J[212096];J[b+4>>2]=d;d=b+40|0;b=i<<2;o=cd(d,(k|0)<0?J[c+164>>2]:c+164|0,b)+b|0,p=0,J[o>>2]=p;J[699344]=0;b=aa(3026,c+128|0,848484)|0;d= +J[699344];J[699344]=0;if((d|0)==1)break O;J[c+152>>2]=J[b+8>>2];d=J[b+4>>2];J[c+144>>2]=J[b>>2];J[c+148>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[699344]=0;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:c+144|0)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break N;if(H[c+155|0]<0)uc(J[c+144>>2]);if(H[c+139|0]>=0)break P;uc(J[c+128>>2])}b=J[e>>2];if(b)break L;g=0;break K}b=Z()|0;break M}b=Z()|0;if(H[c+155|0]>=0)break M;uc(J[c+144>>2])}if(H[c+139|0]>=0)break v;uc(J[c+128>>2]); +break v}b=J[b+28>>2];J[699344]=0;b=aa(3446,b|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break J;b=J[b+12>>2];g=O[b+48>>3];m=O[b+32>>3];b=J[J[e>>2]+28>>2];J[699344]=0;b=aa(3446,b|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break J;b=J[b+12>>2];n=O[b+56>>3]-O[b+40>>3];g=g-m}J[699344]=0;aa(3026,a|0,848592)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;d=c+144|0;g=g*100;R:{if(R(g)<2147483648){b=~~g;break R}b=-2147483648}da(2279,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break I;J[699344]= +0;f=d;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break H;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;aa(3026,a|0,848708)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;d=c+144|0;g=n*100;S:{if(R(g)<2147483648){b=~~g;break S}b=-2147483648}da(2279,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break G;J[699344]=0;f=d;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break F;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;aa(3026,a|0,848872)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;b=J[J[J[e>>2]+28>>2]+20>>2];J[699344]=0;d=c+144|0;da(2279,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break E;J[699344]=0;f=d;b=K[c+155|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+144>>2]:f)|0,(d?J[c+148>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break D;if(H[c+155|0]<0)uc(J[c+144>>2]);J[699344]=0;aa(3026,a|0,849040)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;J[c+128>> +2]=13;J[c+112>>2]=13;J[c+96>>2]=13;J[c+80>>2]=13;J[c+144>>2]=5;J[699344]=0;J[c+64>>2]=13;d=_(4,56)|0;b=J[699344];J[699344]=0;if((b|0)==1)break C;J[699344]=0;k=_(4,160)|0;b=J[699344];J[699344]=0;if((b|0)==1)break B;b=J[J[h>>2]+100>>2];J[699344]=0;b=_(b|0,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break A;i=J[J[h>>2]+92>>2];J[699344]=0;f=b;b=c+144|0;h=na(i|0,h|0,f|0,0,0,b|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break A;J[699344]=0;h=ga(3669,k|0,j|0,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break A; +J[699344]=0;h=ha(3467,d|0,j|0,h|0,1)|0;k=J[699344];J[699344]=0;if((k|0)==1)break B;J[699344]=0;Ia(3703,h|0,b|0,0,0,0,0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break C;J[699344]=0;Ia(3703,h|0,c+128|0,0,0,0,0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break C;J[699344]=0;Ia(3703,h|0,c+112|0,0,0,0,0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break C;b=0;J[699344]=0;Ia(3703,h|0,c+96|0,0,0,0,0,0,0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break C;T:{if(J[c+144>>2]!=1|J[c+128>>2]!=1|J[c+112>>2]!= +10)break T;if(Ic(J[c+120>>2],849132)|J[c+96>>2]!=7)break T;J[699344]=0;ha(3368,J[c+104>>2],849257,c+80|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break C;J[699344]=0;ha(3368,J[c+104>>2],849350,c- -64|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break C;d=J[c+80>>2];b=0;U:{if(d-3>>>0<4294967294)break U;b=0;if(!(((d|0)==1?+J[c+88>>2]:O[c+88>>3])>0))break U;d=J[c+64>>2];b=0;if(d-3>>>0<4294967294)break U;g=(d|0)==1?+J[c+72>>2]:O[c+72>>3];V:{if(g<4294967296&g>=0){b=~~g>>>0;break V}b=0}b=(b|0)==J[e+24>>2]}J[699344]= +0;$(3370,c- -64|0);e=J[699344];J[699344]=0;if((e|0)==1)break C;J[699344]=0;$(3370,c+80|0);e=J[699344];J[699344]=0;if((e|0)==1)break C}J[699344]=0;$(3370,c+96|0);e=J[699344];J[699344]=0;if((e|0)==1)break C;J[699344]=0;$(3370,c+112|0);e=J[699344];J[699344]=0;if((e|0)==1)break C;J[699344]=0;$(3370,c+128|0);e=J[699344];J[699344]=0;if((e|0)==1)break C;J[699344]=0;$(3370,c+144|0);e=J[699344];J[699344]=0;if((e|0)==1)break C;uc(Nk(h));J[699344]=0;aa(3026,a|0,(b?849472:849600)|0)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break C;J[699344]=0;aa(3026,a|0,849752)|0;b=J[699344];J[699344]=0;if((b|0)==1)break C;J[c+48>>2]=13;J[c+32>>2]=13;b=J[j+24>>2];e=J[j+20>>2];J[699344]=0;e=na(3704,j|0,e|0,b|0,c+48|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break y;b=850416;W:{if(J[e>>2]!=7)break W;J[699344]=0;e=ha(3368,J[c+56>>2],849830,c+32|0,0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break y;if(J[e>>2]!=7)break W;J[c+16>>2]=13;J[699344]=0;J[c>>2]=13;e=ha(3368,J[c+40>>2],849990,c+16|0,0)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break z;b=850416;X:{if(J[e>>2]|J[c+24>>2]!=1)break X;J[699344]=0;e=ha(3368,J[c+40>>2],850081,c|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break z;b=850280;if(J[e>>2])break X;b=J[c+8>>2]==1?850416:850280}J[699344]=0;$(3370,c+16|0);e=J[699344];J[699344]=0;if((e|0)==1)break z;J[699344]=0;$(3370,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break z}J[699344]=0;$(3370,c+32|0);e=J[699344];J[699344]=0;if((e|0)==1)break y;J[699344]=0;$(3370,c+48|0);e=J[699344];J[699344]=0;if((e|0)==1)break y;J[699344]=0; +aa(3026,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break y;if(H[c+175|0]<0)uc(J[c+164>>2]);fc=c+192|0;break a}b=Z()|0;break v}b=Z()|0;break v}b=Z()|0;if(H[c+155|0]>=0)break v;uc(J[c+144>>2]);break v}b=Z()|0;break v}b=Z()|0;if(H[c+155|0]>=0)break v;uc(J[c+144>>2]);break v}b=Z()|0;break v}b=Z()|0;if(H[c+155|0]>=0)break v;uc(J[c+144>>2]);break v}b=Z()|0;break v}b=Z()|0;uc(d);break v}b=Z()|0;uc(k);uc(d);break v}b=Z()|0;break v}b=Z()|0;break v}b=Z()|0;break c}b=Z()|0}if(H[c+175|0]>=0)break c;uc(J[c+ +164>>2])}if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}B()}}function Yna(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0;e=fc-608|0;fc=e;a:{b:{c:{d:{e:{f:{g=a+88|0;if(J[g+8>>2]){f=J[a+56>>2];J[699344]=0;i=Jx(f);f=J[699344];J[699344]=0;g:{h:{i:{if((f|0)!=1){s=O[g+16>>3];y=O[g+32>>3];z=O[g+24>>3];A=O[g+40>>3];f=J[a+56>>2];J[699344]=0;f=J[f>>2];C=O[f>>3];D=O[f+24>>3];E=O[f+16>>3];F=O[f+8>>3];f=J[699344];J[699344]= +0;if((f|0)==1)break i;O[e+600>>3]=Y(R(C*D-E*F));p=RU(e+552|0,g);J[e+544>>2]=b;J[e+540>>2]=a;J[e+548>>2]=e+600;j=J[a+224>>2];if((j|0)==J[a+220>>2])break h;h=j-8|0;f=J[h>>2];if(!(O[f+32>>3]!=s|O[f+8>>3]!=z|A!=O[f+16>>3]))d=O[f+40>>3]==y;if(!d)break h;d=J[h>>2];if(O[d+608>>3]!=i)break h;J[e+532>>2]=d;a=J[j-4>>2];J[e+536>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[699344]=0;a=J[e+536>>2];J[e+16>>2]=J[e+532>>2];J[e+20>>2]=a;da(6507,e+540|0,e+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g;b=Z()|0;break b}b=Z()| +0;break a}b=Z()|0;break a}J[699344]=0;d=_(4,712)|0;f=J[699344];J[699344]=0;j:{k:{l:{m:{n:{if((f|0)!=1){J[d>>2]=2441796;J[d+4>>2]=0;J[d+8>>2]=0;J[699344]=0;f=_(6508,d+16|0)|0;j=J[699344];J[699344]=0;if((j|0)==1){b=Z()|0;uc(d);break b}J[e+528>>2]=d;J[e+524>>2]=f;O[d+464>>3]=O[e+600>>3]*O[d+464>>3];J[e+520>>2]=d;J[e+516>>2]=f;J[d+4>>2]=J[d+4>>2]+1;J[699344]=0;d=J[e+520>>2];J[e+8>>2]=J[e+516>>2];J[e+12>>2]=d;da(6507,e+540|0,e+8|0);d=J[699344];J[699344]=0;if((d|0)==1)break d;d=J[e+524>>2];if(!(!K[d+621| +0]|!(R(s-y)<.3|R(z-A)<.3))){f=J[a+44>>2];J[d+436>>2]=J[f+12>>2];J[d+440>>2]=J[f+20>>2]}f=a+136|0;if(!J[f+8>>2])break k;j=J[a+20>>2];J[699344]=0;d=e+72|0;ma(6509,d|0,g|0,f|0,j|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break n;if(J[d+8>>2])break l;J[699344]=0;An(g);a=J[699344];J[699344]=0;if((a|0)==1)break m;kk(d);break j}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;kk(e+72|0);break c}b=e+72|0;fA(g,b);kk(b)}J[699344]=0;da(6510,J[e+524>>2],g|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;d=J[c>>2];J[e+508>> +2]=d;o=J[c+4>>2];J[e+512>>2]=o;if(o)J[o+4>>2]=J[o+4>>2]+1;o:{p:{q:{r:{s:{if(d){b=J[e+524>>2];O[b+608>>3]=i;break s}b=J[e+524>>2];t:{u:{v:{w:{x:{y:{z:{A:{if(!K[a+24|0]){O[b+608>>3]=i;break A}B:{if(!J[b+504>>2])break B;J[699344]=0;b=J[e+524>>2];d=J[699344];J[699344]=0;if((d|0)==1)break f;if(J[J[b+496>>2]+8>>2]==3)break B;b=J[e+524>>2];J[e+84>>2]=0;g=e+76|0;J[e+80>>2]=g;J[699344]=0;J[e+76>>2]=g;J[e+72>>2]=3;da(6500,b+496|0,e+72|0);b=J[699344];J[699344]=0;if((b|0)==1)break u;if(!J[e+84>>2])break B;b= +J[e+80>>2];d=J[b>>2];f=J[J[e+76>>2]+4>>2];J[d+4>>2]=f;J[f>>2]=d;J[e+84>>2]=0;if((b|0)==(g|0))break B;while(1){d=J[b+4>>2];uc(b);b=d;if((g|0)!=(b|0))continue;break}}d=J[e+524>>2];i=O[d+48>>3]*2.834645669291339;C:{if(R(i)<2147483648){b=~~i;break C}b=-2147483648}i=O[d+24>>3];w=b>>>0<=1?1:b;J[e+504>>2]=0-(w<<2);J[699344]=0;g=_(4,48)|0;d=J[699344];J[699344]=0;i=i*2.834645669291339;D:{if(R(i)<2147483648){b=~~i;break D}b=-2147483648}E:{F:{if((d|0)!=1){J[699344]=0;J[g>>2]=0;J[g+4>>2]=0;H[g+40|0]=0;J[g+32>> +2]=0;J[g+36>>2]=-1074790400;H[g+21|0]=0;H[g+22|0]=0;H[g+23|0]=0;H[g+24|0]=0;H[g+25|0]=0;H[g+26|0]=0;H[g+27|0]=0;H[g+28|0]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;d=J[699344];J[699344]=0;if((d|0)==1)break F;J[699344]=0;J[e+500>>2]=g;x=b>>>0<=1?1:b;d=P(x,w);n=_(27,d<<2)|0;b=J[699344];J[699344]=0;if((b|0)!=1){f=d>>>0<=1?1:d;j=f&7;b=0;if(d>>>0>=8){h=f&-8;d=0;while(1){f=b<<2;J[f+n>>2]=16777215;J[(f|4)+n>>2]=16777215;J[(f|8)+n>>2]=16777215;J[(f|12)+n>>2]=16777215;J[(f|16)+n>>2]=16777215;J[(f| +20)+n>>2]=16777215;J[(f|24)+n>>2]=16777215;J[(f|28)+n>>2]=16777215;b=b+8|0;d=d+8|0;if((h|0)!=(d|0))continue;break}}if(j)while(1){J[(b<<2)+n>>2]=16777215;b=b+1|0;k=k+1|0;if((j|0)!=(k|0))continue;break}J[699344]=0;J[g+16>>2]=n;b=J[699344];J[699344]=0;if((b|0)!=1)break E}b=Z()|0;break v}b=Z()|0;break e}b=Z()|0;uc(g);break e}J[699344]=0;J[e+72>>2]=x;b=e+72|0;J[g+8>>2]=J[b>>2];d=J[699344];J[699344]=0;G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{if((d|0)!=1){J[699344]=0;J[e+72>>2]=w;J[g+4>>2]=J[b>>2];d=J[699344];J[699344]= +0;if((d|0)==1)break Q;J[699344]=0;J[e+72>>2]=J[e+504>>2];J[g+12>>2]=J[b>>2];d=J[699344];J[699344]=0;if((d|0)==1)break P;m=RU(e+448|0,J[e+524>>2]+496|0);J[699344]=0;u=_(2256,e+444|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break O;i=O[m+16>>3];s=O[m+24>>3];J[699344]=0;ds(u,-i,-s,0);d=J[699344];J[699344]=0;if((d|0)==1)break N;J[699344]=0;da(6498,m|0,u|0);d=J[699344];J[699344]=0;if((d|0)==1)break N;d=J[a+44>>2];J[699344]=0;k=aa(6512,b|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break M;O[k+80>>3]=O[m+ +16>>3];O[k+96>>3]=O[m+32>>3];O[k+104>>3]=O[m+40>>3];O[k+88>>3]=O[m+24>>3];J[699344]=0;lH(k+132|0,u);b=J[699344];J[699344]=0;if((b|0)==1)break L;J[699344]=0;h=pa(6514)|0;b=J[699344];J[699344]=0;if((b|0)==1)break K;b=J[J[h>>2]+504>>2];J[699344]=0;da(b|0,h|0,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break K;b=J[J[h>>2]+488>>2];J[699344]=0;da(b|0,h|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break K;b=J[J[h>>2]+36>>2];J[699344]=0;aa(b|0,h|0,J[e+524>>2]+48|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break K; +b=J[J[h>>2]+28>>2];J[699344]=0;aa(b|0,h|0,J[e+524>>2]+24|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break K;b=J[J[h>>2]+524>>2];J[699344]=0;da(b|0,h|0,k|0);b=J[699344];J[699344]=0;if((b|0)==1)break K;b=J[a+40>>2];d=J[J[h>>2]+516>>2];J[699344]=0;da(d|0,h|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break K;J[e+40>>2]=4;b=J[J[h>>2]+308>>2];J[699344]=0;g=e+40|0;aa(b|0,h|0,g|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break J;l=fc-16|0;fc=l;R:{S:{q=J[m+4>>2];if((m|0)!=(q|0))while(1){d=79;T:{U:{V:switch(J[q+ +8>>2]){case 1:d=80;case 0:d=J[J[h>>2]+(d<<2)>>2];b=J[q+16>>2];J[699344]=0;ga(d|0,h|0,b+8|0,b+16|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break T;break U;case 2:J[l+8>>2]=0;J[l+12>>2]=0;G=q+12|0;r=J[q+16>>2];d=0;t=0;b=0;W:{while(1){X:{if((d|0)!=(t|0)){O[d>>3]=O[r+8>>3];O[d+8>>3]=O[r+16>>3];d=d+16|0;J[l+8>>2]=d;break X}f=d-b|0;t=f>>4;j=t+1|0;if(j>>>0>=268435456){J[699344]=0;J[l+4>>2]=b;$(6496,l+4|0);a=J[699344];J[699344]=0;if((a|0)==1)break U;break S}v=f>>3;f=f>>>0>=2147483632?268435455:j>>>0>>0? +v:j;if(f>>>0>=268435456){J[699344]=0;J[l+4>>2]=b;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break S;break U}J[699344]=0;v=f<<4;j=_(4,v|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break W;f=j+(t<<4)|0;O[f>>3]=O[r+8>>3];O[f+8>>3]=O[r+16>>3];t=j+v|0;j=f+16|0;if((b|0)!=(d|0))while(1){f=f-16|0;d=d-16|0;O[f>>3]=O[d>>3];O[f+8>>3]=O[d+8>>3];if((b|0)!=(d|0))continue;break}J[l+12>>2]=t;J[l+8>>2]=j;if(b)uc(b);d=j;b=f}r=J[r+4>>2];if((G|0)!=(r|0))continue;break}J[l+4>>2]=b;d=J[J[h>>2]+328>>2];J[699344]=0;va(d|0, +h|0,b|0,b+8|0,b+16|0,b+24|0,b+32|0,b+40|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break U;b=J[l+4>>2];if(!b)break T;uc(b);break T}ea(0)|0;J[l+4>>2]=b;Bc();B();case 3:break V;default:break T}b=J[J[h>>2]+340>>2];J[699344]=0;_(b|0,h|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break T}ea(0)|0;Bc();B()}q=J[q+4>>2];if((m|0)!=(q|0))continue;break}fc=l+16|0;break R}B()}b=J[J[h>>2]+348>>2];J[699344]=0;aa(b|0,h|0,2440176)|0;b=J[699344];J[699344]=0;if((b|0)==1)break K;J[e+40>>2]=4;b=J[J[h>>2]+312>>2];J[699344]= +0;aa(b|0,h|0,g|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break I;J[699344]=0;J[g+12>>2]=0;J[g+16>>2]=0;J[g+4>>2]=1;J[g+8>>2]=8;J[g>>2]=351116;J[g+20>>2]=0;J[g+24>>2]=0;H[g+28|0]=0;b=J[699344];J[699344]=0;if((b|0)==1)break H;J[e+24>>2]=w;J[699344]=0;J[e+36>>2]=x;b=e+24|0;yi(g,n,b,e+36|0,e+504|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break z;d=J[a+64>>2];J[699344]=0;f=b;b=J[e+524>>2];ua(6515,f|0,d|0,g|0,b+8|0,b+16|0,b+48|0,b+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break z;b=J[e+28>>2];J[e+508>>2]= +J[e+24>>2];J[e+512>>2]=b;J[e+24>>2]=0;J[e+28>>2]=0;Y:{if(!o)break Y;b=J[o+4>>2];J[o+4>>2]=b-1;if(!b){kc[J[J[o>>2]+8>>2]](o);Gc(o)}b=J[e+28>>2];if(!b)break Y;d=J[b+4>>2];J[b+4>>2]=d-1;if(d)break Y;kc[J[J[b>>2]+8>>2]](b);Gc(b)}QU(p,J[e+524>>2]+496|0);H[a+24|0]=0;b=J[J[h>>2]+12>>2];J[699344]=0;_(b|0,h|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break G;break z}b=Z()|0;break v}b=Z()|0;break v}b=Z()|0;break v}b=Z()|0;break w}b=Z()|0;break x}b=Z()|0;break x}b=Z()|0;break y}b=Z()|0;break y}b=Z()|0;break y}b= +Z()|0;break y}b=Z()|0;break y}If(g);J[k>>2]=340504;b=J[k+28>>2];if(b){d=J[J[b>>2]+12>>2];J[699344]=0;_(d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[k+28>>2]=0}Se(k+212|0);b=J[k+120>>2];if(b){J[k+124>>2]=b;uc(b)}if(H[k+47|0]<0)uc(J[k+36>>2]);Jd(k+32|0);Jd(u);kk(m);b=J[e+500>>2];if(b)uc(Yg(b));d=J[e+508>>2];b=J[e+524>>2];J[b+608>>2]=0;J[b+612>>2]=0;if(d)break s}J[b+56>>2]=2;break r}b=Z()|0;If(g)}bo(k)}Jd(u)}kk(m)}a=J[e+500>>2];J[e+500>>2]=0;if(a)uc(Yg(a));break e}b=Z()|0;Qp(e+72|0);break e}ea(0)| +0;Bc();B()}g=J[e+512>>2];if(g)J[g+4>>2]=J[g+4>>2]+1;J[b+624>>2]=d;d=J[b+628>>2];J[b+628>>2]=g;Z:{if(!d)break Z;b=J[d+4>>2];J[d+4>>2]=b-1;if(b)break Z;kc[J[J[d>>2]+8>>2]](d);Gc(d)}b=J[e+524>>2];J[b+56>>2]=3;O[e+24>>3]=-O[b+608>>3];i=O[b+528>>3];s=O[b+512>>3];d=e+448|0;O[d+8>>3]=(O[b+520>>3]+O[b+536>>3])*.5;O[d>>3]=(s+i)*.5;J[699344]=0;ca(6516,p|0,e+24|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break q;O[J[e+524>>2]+640>>3]=O[p+40>>3];O[J[e+524>>2]+632>>3]=O[p+24>>3];O[J[e+524>>2]+648>>3]=O[p+16>>3]; +b=J[e+524>>2];O[b+656>>3]=O[p+32>>3]}d=0;if(!(!(O[b+32>>3]>-59652.32355555556)|!(O[b+8>>3]>-59652.32355555556))){i=O[b+48>>3];d=i>0&i<7.575845088027778E8;i=O[b+24>>3];d=d&(i>0&i<7.575845088027778E8)}if(!d)break o;b=J[e+524>>2];if(!(!(R(O[b+24>>3]-O[a+8>>3])<=3)|!(R(O[b+48>>3]-O[a>>3])<=3))&J[b+76>>2]==16777215)break o;d=J[a+712>>2]+1|0;J[a+712>>2]=d;J[b+616>>2]=d;d=J[a+224>>2];if((d|0)==J[a+228>>2])break p;J[d>>2]=b;b=J[e+528>>2];J[d+4>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[a+224>>2]=d+8;break o}b=Z()| +0;break e}J[699344]=0;da(6517,a+220|0,e+524|0);a=J[699344];J[699344]=0;if((a|0)==1)break f}a=J[e+512>>2];if(!a)break j;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break j;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[e+528>>2];if(!a)break g;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break g;kc[J[J[a>>2]+8>>2]](a);Gc(a)}kk(p)}a=J[c+4>>2];_:{if(!a)break _;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break _;kc[J[J[a>>2]+8>>2]](a);Gc(a)}fc=e+608|0;return}b=Z()|0}je(e+508|0);break c}b=Z()|0}je(e+524|0)}kk(p)}je(c);ba(b|0);B()}function zOa(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;if(!J[a+88>>2])return 0;o=J[a+56>>2];c=J[a+48>>2];n=J[a+68>>2];q=J[a+72>>2];m=J[a+76>>2];l=J[a+80>>2];j=J[a+8>>2];k=J[a+84>>2];if(b){s=J[b+4>>2];b=J[b>>2]}else b=0;h=a+16|0;r=J[a+64>>2];f=fc-896|0;fc=f;J[a+12>>2]=0;a:{if(o-5>>>0<=1){b:{if(!b)break b;g=f+304|0;r=J[b+4>>2];e=J[b>>2];i=(e|0)>=127?127:e;xc(g,r,i);e=J[n+4>>2];d=K[e+36|0]|K[e+37|0]<<8|(K[e+38|0]<<16|K[e+39|0]<<24);c=g+i|0;j=K[e+32|0]|K[e+33| +0]<<8|(K[e+34|0]<<16|K[e+35|0]<<24);H[c|0]=j;H[c+1|0]=j>>>8;H[c+2|0]=j>>>16;H[c+3|0]=j>>>24;H[c+4|0]=d;H[c+5|0]=d>>>8;H[c+6|0]=d>>>16;H[c+7|0]=d>>>24;d=J[q+4>>2];j=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);k=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[c+8|0]=k;H[c+9|0]=k>>>8;H[c+10|0]=k>>>16;H[c+11|0]=k>>>24;H[c+12|0]=j;H[c+13|0]=j>>>8;H[c+14|0]=j>>>16;H[c+15|0]=j>>>24;j=K[d+44|0]|K[d+45|0]<<8|(K[d+46|0]<<16|K[d+47|0]<<24);k=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[c+48| +0]=k;H[c+49|0]=k>>>8;H[c+50|0]=k>>>16;H[c+51|0]=k>>>24;H[c+52|0]=j;H[c+53|0]=j>>>8;H[c+54|0]=j>>>16;H[c+55|0]=j>>>24;j=K[d+36|0]|K[d+37|0]<<8|(K[d+38|0]<<16|K[d+39|0]<<24);k=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);H[c+40|0]=k;H[c+41|0]=k>>>8;H[c+42|0]=k>>>16;H[c+43|0]=k>>>24;H[c+44|0]=j;H[c+45|0]=j>>>8;H[c+46|0]=j>>>16;H[c+47|0]=j>>>24;j=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);k=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);H[c+32|0]=k;H[c+33|0]=k>>>8;H[c+34|0]=k>>> +16;H[c+35|0]=k>>>24;H[c+36|0]=j;H[c+37|0]=j>>>8;H[c+38|0]=j>>>16;H[c+39|0]=j>>>24;j=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);k=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);H[c+24|0]=k;H[c+25|0]=k>>>8;H[c+26|0]=k>>>16;H[c+27|0]=k>>>24;H[c+28|0]=j;H[c+29|0]=j>>>8;H[c+30|0]=j>>>16;H[c+31|0]=j>>>24;j=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);k=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);H[c+16|0]=k;H[c+17|0]=k>>>8;H[c+18|0]=k>>>16;H[c+19|0]=k>>>24;H[c+20|0]=j;H[c+ +21|0]=j>>>8;H[c+22|0]=j>>>16;H[c+23|0]=j>>>24;j=i+56|0;Nw(g,j,g);if((o|0)==6){WB(g,r,i,d);e=J[n+4>>2]}d=f+304|0;if(dd(d,e,32))break b;n=J[b+4>>2];xc(d,n,i);b=K[e+44|0]|K[e+45|0]<<8|(K[e+46|0]<<16|K[e+47|0]<<24);e=K[e+40|0]|K[e+41|0]<<8|(K[e+42|0]<<16|K[e+43|0]<<24);H[c|0]=e;H[c+1|0]=e>>>8;H[c+2|0]=e>>>16;H[c+3|0]=e>>>24;H[c+4|0]=b;H[c+5|0]=b>>>8;H[c+6|0]=b>>>16;H[c+7|0]=b>>>24;b=J[q+4>>2];e=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[c+8|0]= +g;H[c+9|0]=g>>>8;H[c+10|0]=g>>>16;H[c+11|0]=g>>>24;H[c+12|0]=e;H[c+13|0]=e>>>8;H[c+14|0]=e>>>16;H[c+15|0]=e>>>24;e=K[b+44|0]|K[b+45|0]<<8|(K[b+46|0]<<16|K[b+47|0]<<24);g=K[b+40|0]|K[b+41|0]<<8|(K[b+42|0]<<16|K[b+43|0]<<24);H[c+48|0]=g;H[c+49|0]=g>>>8;H[c+50|0]=g>>>16;H[c+51|0]=g>>>24;H[c+52|0]=e;H[c+53|0]=e>>>8;H[c+54|0]=e>>>16;H[c+55|0]=e>>>24;e=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);g=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);H[c+40|0]=g;H[c+41|0]=g>>>8;H[c+42|0]=g>>>16; +H[c+43|0]=g>>>24;H[c+44|0]=e;H[c+45|0]=e>>>8;H[c+46|0]=e>>>16;H[c+47|0]=e>>>24;e=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);g=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);H[c+32|0]=g;H[c+33|0]=g>>>8;H[c+34|0]=g>>>16;H[c+35|0]=g>>>24;H[c+36|0]=e;H[c+37|0]=e>>>8;H[c+38|0]=e>>>16;H[c+39|0]=e>>>24;e=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);g=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);H[c+24|0]=g;H[c+25|0]=g>>>8;H[c+26|0]=g>>>16;H[c+27|0]=g>>>24;H[c+28|0]=e;H[c+ +29|0]=e>>>8;H[c+30|0]=e>>>16;H[c+31|0]=e>>>24;e=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);g=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);H[c+16|0]=g;H[c+17|0]=g>>>8;H[c+18|0]=g>>>16;H[c+19|0]=g>>>24;H[c+20|0]=e;H[c+21|0]=e>>>8;H[c+22|0]=e>>>16;H[c+23|0]=e>>>24;Nw(d,j,d);if((o|0)==6)WB(d,n,i,b);c=f+500|0;MJ(c,f+304|0);J[f+764>>2]=0;J[f+768>>2]=0;J[f+756>>2]=0;J[f+760>>2]=0;cu(c,J[m+4>>2],0);b=J[f+784>>2];e=J[f+780>>2];H[h+8|0]=e;H[h+9|0]=e>>>8;H[h+10|0]=e>>>16;H[h+11|0]=e>>>24;H[h+ +12|0]=b;H[h+13|0]=b>>>8;H[h+14|0]=b>>>16;H[h+15|0]=b>>>24;b=J[f+776>>2];e=J[f+772>>2];H[h|0]=e;H[h+1|0]=e>>>8;H[h+2|0]=e>>>16;H[h+3|0]=e>>>24;H[h+4|0]=b;H[h+5|0]=b>>>8;H[h+6|0]=b>>>16;H[h+7|0]=b>>>24;cu(c,J[m+4>>2]+16|0,0);b=J[f+784>>2];e=J[f+780>>2];H[h+24|0]=e;H[h+25|0]=e>>>8;H[h+26|0]=e>>>16;H[h+27|0]=e>>>24;H[h+28|0]=b;H[h+29|0]=b>>>8;H[h+30|0]=b>>>16;H[h+31|0]=b>>>24;b=J[f+776>>2];e=J[f+772>>2];H[h+16|0]=e;H[h+17|0]=e>>>8;H[h+18|0]=e>>>16;H[h+19|0]=e>>>24;H[h+20|0]=b;H[h+21|0]=b>>>8;H[h+22|0]= +b>>>16;H[h+23|0]=b>>>24;J[a+12>>2]=1;c=1;break a}c=f+304|0;c:{if(!s){g=0;e=777294;break c}b=J[s>>2];g=(b|0)>=127?127:b;e=J[s+4>>2]}xc(c,e,g);b=J[q+4>>2];d=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);a=c+g|0;i=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);H[a|0]=i;H[a+1|0]=i>>>8;H[a+2|0]=i>>>16;H[a+3|0]=i>>>24;H[a+4|0]=d;H[a+5|0]=d>>>8;H[a+6|0]=d>>>16;H[a+7|0]=d>>>24;i=g+8|0;Nw(c,i,c);if((o|0)==6){WB(c,e,g,0);b=J[q+4>>2]}d=f+304|0;c=0;if(dd(d,b,32))break a;xc(d,e,g);c=K[b+44|0]|K[b+ +45|0]<<8|(K[b+46|0]<<16|K[b+47|0]<<24);b=K[b+40|0]|K[b+41|0]<<8|(K[b+42|0]<<16|K[b+43|0]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;Nw(d,i,d);if((o|0)==6)WB(d,e,g,0);e=f+500|0;MJ(e,f+304|0);J[f+764>>2]=0;J[f+768>>2]=0;J[f+756>>2]=0;J[f+760>>2]=0;cu(e,J[l+4>>2],0);a=J[f+784>>2];b=J[f+780>>2];H[h+8|0]=b;H[h+9|0]=b>>>8;H[h+10|0]=b>>>16;H[h+11|0]=b>>>24;H[h+12|0]=a;H[h+13|0]=a>>>8;H[h+14|0]=a>>>16;H[h+15|0]=a>>>24;a=J[f+776>> +2];b=J[f+772>>2];H[h|0]=b;H[h+1|0]=b>>>8;H[h+2|0]=b>>>16;H[h+3|0]=b>>>24;H[h+4|0]=a;H[h+5|0]=a>>>8;H[h+6|0]=a>>>16;H[h+7|0]=a>>>24;cu(e,J[l+4>>2]+16|0,0);a=J[f+784>>2];b=J[f+780>>2];H[h+24|0]=b;H[h+25|0]=b>>>8;H[h+26|0]=b>>>16;H[h+27|0]=b>>>24;H[h+28|0]=a;H[h+29|0]=a>>>8;H[h+30|0]=a>>>16;H[h+31|0]=a>>>24;a=J[f+776>>2];b=J[f+772>>2];H[h+16|0]=b;H[h+17|0]=b>>>8;H[h+18|0]=b>>>16;H[h+19|0]=b>>>24;H[h+20|0]=a;H[h+21|0]=a>>>8;H[h+22|0]=a>>>16;H[h+23|0]=a>>>24;c=1;break a}if(b){d=J[b+4>>2];b=J[b>>2];d:{if((b| +0)<=31){i=f+304|0;xc(i,d,b);xc(b+i|0,2708608,32-b|0);break d}b=d;d=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);J[f+328>>2]=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);J[f+332>>2]=d;d=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);J[f+320>>2]=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);J[f+324>>2]=d;d=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);J[f+304>>2]=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+308>>2]=d;d=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+ +15|0]<<24);J[f+312>>2]=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);J[f+316>>2]=d}b=J[f+316>>2];J[f+816>>2]=J[f+312>>2];J[f+820>>2]=b;b=J[f+324>>2];J[f+824>>2]=J[f+320>>2];J[f+828>>2]=b;b=J[f+332>>2];J[f+832>>2]=J[f+328>>2];J[f+836>>2]=b;J[f+800>>2]=-1732584194;J[f+804>>2]=271733878;J[f+792>>2]=1732584193;J[f+796>>2]=-271733879;b=J[f+308>>2];J[f+808>>2]=J[f+304>>2];J[f+812>>2]=b;J[f+872>>2]=32;J[f+876>>2]=32;Dr(f+792|0);b=J[f+892>>2];J[f+312>>2]=J[f+888>>2];J[f+316>>2]=b;b=J[f+884>>2];J[f+304>> +2]=J[f+880>>2];J[f+308>>2]=b;b=0;e:{f:{g:{h:switch(o-2|0){case 0:break f;case 1:break h;default:break g}if((c|0)<0)break g;i=f+808|0;m=c>>>0<64;while(1){J[f+872>>2]=0;J[f+876>>2]=0;J[f+800>>2]=-1732584194;J[f+804>>2]=271733878;J[f+792>>2]=1732584193;J[f+796>>2]=-271733879;b=f+304|0;g=0;d=c;if(!m)while(1){l=g+i|0;g=64-g|0;xc(l,b,g);J[f+872>>2]=64;b=b+g|0;bq(f+792|0);d=d-g|0;g=J[f+872>>2];if((d+g|0)>63)continue;break}if((d|0)>0){xc(g+i|0,b,d);J[f+872>>2]=J[f+872>>2]+d}J[f+876>>2]=c+J[f+876>>2];Dr(f+ +792|0);b=J[f+892>>2];J[f+312>>2]=J[f+888>>2];J[f+316>>2]=b;b=J[f+884>>2];J[f+304>>2]=J[f+880>>2];J[f+308>>2]=b;e=e+1|0;if((e|0)!=50)continue;break}}b=J[n+4>>2];e=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);J[f+296>>2]=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);J[f+300>>2]=e;e=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);J[f+288>>2]=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);J[f+292>>2]=e;e=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);J[f+272>>2]=K[b|0]|K[b+ +1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[f+276>>2]=e;e=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);J[f+280>>2]=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);J[f+284>>2]=e;t=c&-4;m=c&3;b=19;u=(c|0)<=0;x=c>>>0<4;while(1){i=b;i:{if(u)break i;g=0;b=0;e=0;if(!x)while(1){d=f+304|0;H[b+f|0]=i^K[d+b|0];l=b|1;H[l+f|0]=i^K[d+l|0];l=b|2;H[l+f|0]=i^K[d+l|0];l=b|3;H[l+f|0]=i^K[d+l|0];b=b+4|0;e=e+4|0;if((t|0)!=(e|0))continue;break}if(!m)break i;while(1){H[b+f|0]=i^K[(f+304|0)+b|0];b=b+1|0;g=g+1|0;if((m| +0)!=(g|0))continue;break}}g=0;b=0;while(1){e=f+16|0;H[e+b|0]=b;d=b|1;H[d+e|0]=d;d=b|2;H[d+e|0]=d;d=b|3;H[d+e|0]=d;d=b|4;H[d+e|0]=d;d=b|5;H[d+e|0]=d;d=b|6;H[d+e|0]=d;d=e;e=b|7;H[d+e|0]=e;b=b+8|0;if((b|0)!=256)continue;break}b=0;e=0;while(1){d=b&255;b=f+16|0;l=b+g|0;p=K[l|0];e=(K[d+f|0]+(e&255)|0)+p|0;b=(e&255)+b|0;H[l|0]=K[b|0];H[b|0]=p;b=(d+1|0)%(c|0)|0;g=g+1|0;if((g|0)!=256)continue;break}b=0;d=0;while(1){e=b+1|0;g=f+16|0;v=e+g|0;l=K[v|0];d=l+d|0;w=(d&255)+g|0;p=K[w|0];H[v|0]=p;H[w|0]=l;b=(f+272| +0)+b|0;H[b|0]=K[g+(l+p&255)|0]^K[b|0];b=e;if((b|0)!=32)continue;break}b=i-1|0;if(i)continue;break}break e}while(1){d=f+16|0;H[d+b|0]=b;i=b|1;H[i+d|0]=i;i=b|2;H[i+d|0]=i;i=b|3;H[i+d|0]=i;i=b|4;H[i+d|0]=i;i=b|5;H[i+d|0]=i;i=b|6;H[i+d|0]=i;i=d;d=b|7;H[i+d|0]=d;b=b+8|0;if((b|0)!=256)continue;break}b=0;while(1){d=b&255;b=f+16|0;i=b+g|0;m=K[i|0];e=(K[d+(f+304|0)|0]+(e&255)|0)+m|0;b=(e&255)+b|0;H[i|0]=K[b|0];H[b|0]=m;b=(d+1|0)%(c|0)|0;g=g+1|0;if((g|0)!=256)continue;break}l=J[n+4>>2];b=0;d=0;while(1){p=K[b+ +l|0];e=b+1|0;i=f+16|0;t=e+i|0;g=K[t|0];d=g+d|0;u=(d&255)+i|0;m=K[u|0];H[t|0]=m;H[u|0]=g;H[(f+272|0)+b|0]=p^K[i+(g+m&255)|0];b=e;if((b|0)!=32)continue;break}}e=vc(8);J[699344]=0;b=ga(3348,e|0,f+272|0,32)|0;d=J[699344];J[699344]=0;j:{if((d|0)!=1){if(!H$(o,c,n,q,j,k,b,h,r))break j;J[a+12>>2]=1;uc(Zc(b));c=1;break a}a=Z()|0;uc(e);ba(a|0);B()}uc(Zc(b))}c=H$(o,c,n,q,j,k,s,h,r)}fc=f+896|0;return(c|0)!=0|0}function L7a(a,b,c,d,e,f,g,h,i,j,k,l){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;j=+j;k=+k; +l=+l;var 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,C=0,D=0,E=0,F=0,G=0,I=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,$=0,aa=0,ca=0;m=fc-640|0;fc=m;I=h+1|0;a:{if(!((h|0)>4094|(g|0)>38)){n=O[b+72>>3];s=O[b>>3];b:{if(!K[b+120|0]){J[699344]=0;C=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;O[C+24>>3]=n;O[C+16>>3]=n;O[C+8>>3]=s;O[C>>3]=s;p=O[b+80>>3];n=O[b+8>>3];J[699344]=0;F=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;O[F>>3]=n;o=p;t=n;break b}o=O[b+104>>3];r= +O[b+88>>3];J[699344]=0;C=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;O[C+24>>3]=n;O[C>>3]=s;O[C+16>>3]=n+o;O[C+8>>3]=n+r;r=O[b+112>>3];n=O[b+96>>3];o=O[b+80>>3];t=O[b+8>>3];J[699344]=0;F=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;O[F>>3]=t;n=o+n;p=o+r}O[F+24>>3]=o;O[F+16>>3]=p;O[F+8>>3]=n;n=O[c+72>>3];o=O[c>>3];c:{if(!K[c+120|0]){J[699344]=0;D=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;O[D+24>>3]=n;O[D+16>>3]=n;O[D+8>>3]=o;O[D>>3]=o;x=O[c+80>>3];p=O[c+8>>3];J[699344]= +0;G=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;O[G>>3]=p;n=x;r=p;break c}r=O[c+104>>3];p=O[c+88>>3];J[699344]=0;D=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;O[D+24>>3]=n;O[D>>3]=o;O[D+16>>3]=n+r;O[D+8>>3]=n+p;v=O[c+112>>3];p=O[c+96>>3];n=O[c+80>>3];r=O[c+8>>3];J[699344]=0;G=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;O[G>>3]=r;p=n+p;x=n+v}O[G+24>>3]=n;O[G+16>>3]=x;O[G+8>>3]=p;n=n-r;z=O[D+8>>3];v=z-o;p=O[D+24>>3]-o;d:{if(p==0){x=O[D+16>>3];h=n>0;x=h?x-o:o-x;z=h?v:o- +z;break d}x=O[G+16>>3];z=x-r;h=p<0;w=h?z:r-x;y=(O[D+16>>3]-o)*n-p*z;x=p*p;z=n*n;z=n>p?n*Y(x/z+1):p*Y(z/x+1);q=n==0;x=q?w:y/z;w=O[G+8>>3];y=w-r;z=q?h?y:r-w:(v*n-p*y)/z}v=s-o;e:{if(p==0){h=n>0;O[m+632>>3]=h?v:o-s;n=O[C+8>>3];s=h?n-o:o-n;n=O[C+16>>3];t=h?n-o:o-n;n=O[C+24>>3];n=h?n-o:o-n;break e}s=t-r;h=p<0;w=h?s:r-t;y=v*n-p*s;t=p*p;s=n*n;v=n>p?n*Y(t/s+1):p*Y(s/t+1);q=n==0;O[m+632>>3]=q?w:y/v;t=O[F+8>>3];s=t-r;s=q?h?s:r-t:((O[C+8>>3]-o)*n-p*s)/v;t=O[F+16>>3];w=t-r;t=q?h?w:r-t:((O[C+16>>3]-o)*n-p*w)/v; +w=O[F+24>>3];y=w-r;n=q?h?y:r-w:((O[C+24>>3]-o)*n-p*y)/v}O[m+616>>3]=t;O[m+624>>3]=s;O[m+608>>3]=n;J[m+604>>2]=0;J[m+596>>2]=0;J[m+600>>2]=0;J[699344]=0;J[m+592>>2]=0;J[m+584>>2]=0;J[m+588>>2]=0;la(2527,m+632|0,m+624|0,m+616|0,m+608|0,m+596|0,m+584|0);h=J[699344];J[699344]=0;f:{g:{h:{i:{if((h|0)!=1){n=z*x>0?.75:.4444444444444444;o=z>0?z:0;w=n*(o>2];t=O[A+8>>3];o=n;n=z<0?z:0;y=o*(n>x?x:n);if(t>2]-A>>4;if(h>>>0<2)break h;r=O[A+16>>3];o=O[A+24>> +3];j:{if(y<=o){p=O[A>>3];break j}q=h-1|0;n=o;s=r;h=1;while(1){if((h|0)==(q|0))break h;t=n;p=s;h=h+1|0;u=(h<<4)+A|0;o=O[u+8>>3];n=o;r=O[u>>3];s=r;if(!(n>=y))continue;break}}if(o==y){v=r;break h}v=p+(y-t)*(r-p)/(o-t);break h}q=J[m+584>>2];s=O[q+8>>3];if(w>2]-q>>4;if(h>>>0<2)break h;n=O[q+16>>3];o=O[q+24>>3];if(w>=o){t=O[q>>3];break i}u=h-1|0;h=1;while(1){t=n;s=o;if((h|0)==(u|0))break h;h=h+1|0;E=q+(h<<4)|0;n=O[E>>3];o=O[E+8>>3];if(!(w>=o))continue;break}break i}v= +O[A>>3];break h}h=Z()|0;break g}if(o==w){v=n;break h}v=t+(w-s)*(n-t)/(o-s)}L=J[m+600>>2];k:{if((L|0)==(A|0))break k;u=L-16|0;if(A>>>0>=u>>>0)break k;q=L;h=A;while(1){n=O[h>>3];O[h>>3]=O[u>>3];o=O[h+8>>3];q=q-8|0;O[h+8>>3]=O[q>>3];O[u>>3]=n;O[q>>3]=o;h=h+16|0;q=u;u=q-16|0;if(h>>>0>>0)continue;break}}M=J[m+588>>2];E=J[m+584>>2];l:{if((M|0)==(E|0))break l;u=M-16|0;if(E>>>0>=u>>>0)break l;q=M;h=E;while(1){n=O[h>>3];O[h>>3]=O[u>>3];o=O[h+8>>3];q=q-8|0;O[h+8>>3]=O[q>>3];O[u>>3]=n;O[q>>3]=o;h=h+16|0; +q=u;u=q-16|0;if(h>>>0>>0)continue;break}}t=O[A+8>>3];m:{if(y>t){s=2.2250738585072014E-308;h=L-A>>4;if(h>>>0<2)break m;r=O[A+16>>3];o=O[A+24>>3];n:{if(y<=o){p=O[A>>3];break n}q=h-1|0;n=o;h=1;while(1){if((h|0)==(q|0))break m;t=n;p=r;h=h+1|0;u=(h<<4)+A|0;o=O[u+8>>3];n=o;r=O[u>>3];if(!(n>=y))continue;break}}if(o==y){s=r;break m}s=p+(y-t)*(r-p)/(o-t);break m}o:{p=O[E+8>>3];if(w>4;if(h>>>0<2)break m;n=O[E+16>>3];o=O[E+24>>3];if(w>=o){t=O[E>>3];break o}q=h-1|0;h=1; +while(1){t=n;p=o;if((h|0)==(q|0))break m;h=h+1|0;u=E+(h<<4)|0;n=O[u>>3];o=O[u+8>>3];if(!(w>=o))continue;break}break o}s=O[A>>3];break m}if(o==w){s=n;break m}s=t+(w-p)*(n-t)/(o-p)}if(z==0&x==0&O[m+632>>3]==0&O[m+624>>3]==0&O[m+616>>3]==0&O[m+608>>3]==0|(s==2.2250738585072014E-308|v==2.2250738585072014E-308))break f;j=j-i;n=j*s+i;o=j*v+i;j=n-o;i=l-k;h=j>i;if((h?j:i)<1E-9){b=f?e:d;i=O[b>>3];O[m+440>>3]=i;j=O[b+8>>3];O[m+448>>3]=j;r=O[b+16>>3];O[m+456>>3]=r;p=O[b+24>>3];O[m+464>>3]=p;t=O[b+32>>3];O[m+ +472>>3]=t;s=O[b+40>>3];O[m+480>>3]=s;c=J[b+60>>2];J[m+496>>2]=J[b+56>>2];J[m+500>>2]=c;c=J[b+52>>2];J[m+488>>2]=J[b+48>>2];J[m+492>>2]=c;h=J[b+64>>2];J[m+504>>2]=h;c=J[b+68>>2];J[m+508>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;v=O[b+72>>3];O[m+512>>3]=v;x=O[b+80>>3];O[m+520>>3]=x;z=O[b+88>>3];O[m+528>>3]=z;w=O[b+96>>3];O[m+536>>3]=w;y=O[b+104>>3];O[m+544>>3]=y;N=O[b+112>>3];O[m+552>>3]=N;g=J[b+124>>2];J[m+560>>2]=J[b+120>>2];J[m+564>>2]=g;g=J[b+132>>2];J[m+568>>2]=J[b+128>>2];J[m+572>>2]=g;q=J[b+136>>2];J[m+ +576>>2]=q;g=J[b+140>>2];J[m+580>>2]=g;if(g)J[g+4>>2]=J[g+4>>2]+1;b=f?d:e;P=O[b>>3];O[m+296>>3]=P;Q=O[b+8>>3];O[m+304>>3]=Q;R=O[b+16>>3];O[m+312>>3]=R;S=O[b+24>>3];O[m+320>>3]=S;T=O[b+32>>3];O[m+328>>3]=T;U=O[b+40>>3];O[m+336>>3]=U;d=J[b+60>>2];J[m+352>>2]=J[b+56>>2];J[m+356>>2]=d;d=J[b+52>>2];J[m+344>>2]=J[b+48>>2];J[m+348>>2]=d;e=J[b+64>>2];J[m+360>>2]=e;d=J[b+68>>2];J[m+364>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;V=O[b+72>>3];O[m+368>>3]=V;W=O[b+80>>3];O[m+376>>3]=W;X=O[b+88>>3];O[m+384>>3]=X;$=O[b+96>> +3];O[m+392>>3]=$;aa=O[b+104>>3];O[m+400>>3]=aa;ca=O[b+112>>3];O[m+408>>3]=ca;u=J[b+124>>2];J[m+416>>2]=J[b+120>>2];J[m+420>>2]=u;u=J[b+132>>2];J[m+424>>2]=J[b+128>>2];J[m+428>>2]=u;u=J[b+136>>2];J[m+432>>2]=u;b=J[b+140>>2];J[m+436>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[m+192>>3]=s;O[m+176>>3]=p;O[m+184>>3]=t;O[m+168>>3]=r;O[m+160>>3]=j;O[m+152>>3]=i;A=J[m+500>>2];J[m+208>>2]=J[m+496>>2];J[m+212>>2]=A;A=J[m+492>>2];E=J[m+488>>2];J[m+220>>2]=c;J[m+200>>2]=E;J[m+204>>2]=A;J[m+216>>2]=h;if(c)J[c+4>>2]=J[c+ +4>>2]+1;O[m+264>>3]=N;O[m+256>>3]=y;O[m+248>>3]=w;O[m+240>>3]=z;O[m+232>>3]=x;O[m+224>>3]=v;c=J[m+564>>2];J[m+272>>2]=J[m+560>>2];J[m+276>>2]=c;c=J[m+572>>2];J[m+280>>2]=J[m+568>>2];J[m+284>>2]=c;J[m+292>>2]=g;J[m+288>>2]=q;if(g)J[g+4>>2]=J[g+4>>2]+1;O[m+48>>3]=U;O[m+32>>3]=S;O[m+40>>3]=T;O[m+24>>3]=R;O[m+16>>3]=Q;O[m+8>>3]=P;g=J[m+356>>2];c=m- -64|0;J[c>>2]=J[m+352>>2];J[c+4>>2]=g;c=J[m+348>>2];g=J[m+344>>2];J[m+76>>2]=d;J[m+56>>2]=g;J[m+60>>2]=c;J[m+72>>2]=e;if(d)J[d+4>>2]=J[d+4>>2]+1;O[m+120>> +3]=ca;O[m+112>>3]=aa;O[m+104>>3]=$;O[m+96>>3]=X;O[m+88>>3]=W;O[m+80>>3]=V;c=J[m+420>>2];J[m+128>>2]=J[m+416>>2];J[m+132>>2]=c;c=J[m+428>>2];J[m+136>>2]=J[m+424>>2];J[m+140>>2]=c;J[m+148>>2]=b;J[m+144>>2]=u;if(b)J[b+4>>2]=J[b+4>>2]+1;J[699344]=0;i=(k+l)*.5;j=(o+n)*.5;Ca(2518,a|0,m+152|0,m+8|0,+(f?i:j),+(f?j:i),0,1,0);a=J[699344];J[699344]=0;if((a|0)!=1){p:{if(!b)break p;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break p;kc[J[J[b>>2]+8>>2]](b);Gc(b)}a=J[m+76>>2];q:{if(!a)break q;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break q; +kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[m+292>>2];r:{if(!a)break r;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break r;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[m+220>>2];s:{if(!a)break s;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break s;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[m+436>>2];t:{if(!a)break t;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break t;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[m+364>>2];u:{if(!a)break u;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break u;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[m+580>>2];v:{if(!a)break v;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break v;kc[J[J[a>> +2]+8>>2]](a);Gc(a)}a=J[m+508>>2];if(!a)break f;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break f;kc[J[J[a>>2]+8>>2]](a);Gc(a);break f}h=Z()|0;nh(m+8|0);nh(m+152|0);nh(m+296|0);nh(m+440|0);break g}g=g+1|0;q=m+440|0;oM(q,b,v,s);w:{x:{y:{z:{if(s-v>.8){if(h){J[m>>2]=0;J[m+4>>2]=1071644672;h=m+296|0;es(h,q,m);b=J[m+296>>2];H[b+120|0]=1;H[b+264|0]=1;i=O[b+224>>3];O[b+240>>3]=O[b+240>>3]-i;j=O[b+216>>3];O[b+232>>3]=O[b+232>>3]-j;r=O[b+80>>3];O[b+112>>3]=O[b+112>>3]-r;p=O[b+72>>3];O[b+104>>3]=O[b+104>>3]-p;O[b+96>> +3]=O[b+96>>3]-r;O[b+88>>3]=O[b+88>>3]-p;r=O[b+248>>3];O[b+256>>3]=O[b+256>>3]-i;O[b+248>>3]=r-j;J[699344]=0;q=b;b=f^1;i=(o+n)*.5;f=Ga(2521,a|0,c|0,q|0,e|0,d|0,b|0,g|0,I|0,+k,+l,+o,+i)|0;q=J[699344];J[699344]=0;if((q|0)==1)break y;J[699344]=0;I=Ga(2521,a|0,c|0,J[m+296>>2]+144|0,e|0,d|0,b|0,g|0,f|0,+k,+l,+i,+n)|0;a=J[699344];J[699344]=0;if((a|0)==1)break y;zq(h);break z}J[m>>2]=0;J[m+4>>2]=1071644672;h=m+296|0;es(h,c,m);b=J[m+296>>2];H[b+120|0]=1;H[b+264|0]=1;i=O[b+224>>3];O[b+240>>3]=O[b+240>>3]-i; +j=O[b+216>>3];O[b+232>>3]=O[b+232>>3]-j;r=O[b+80>>3];O[b+112>>3]=O[b+112>>3]-r;p=O[b+72>>3];O[b+104>>3]=O[b+104>>3]-p;O[b+96>>3]=O[b+96>>3]-r;O[b+88>>3]=O[b+88>>3]-p;r=O[b+248>>3];O[b+256>>3]=O[b+256>>3]-i;O[b+248>>3]=r-j;J[699344]=0;q=b;b=m+440|0;c=f^1;i=(k+l)*.5;f=Ga(2521,a|0,q|0,b|0,e|0,d|0,c|0,g|0,I|0,+k,+i,+o,+n)|0;q=J[699344];J[699344]=0;A:{if((q|0)==1)break A;J[699344]=0;I=Ga(2521,a|0,J[m+296>>2]+144|0,b|0,e|0,d|0,c|0,g|0,f|0,+i,+l,+o,+n)|0;a=J[699344];J[699344]=0;if((a|0)==1)break A;zq(h); +break z}h=Z()|0;zq(m+296|0);break w}B:{C:{if(i==0)break C;h=m+440|0;if(i>=1E-9)break C;q=c;c=d;d=e;p=o;r=n;o=k;n=l;break B}f=f^1;q=m+440|0;h=c;c=e;p=k;r=l}J[699344]=0;I=Ga(2521,a|0,h|0,q|0,c|0,d|0,f|0,g|0,I|0,+p,+r,+o,+n)|0;a=J[699344];J[699344]=0;if((a|0)==1)break x}a=J[m+580>>2];D:{if(!a)break D;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break D;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[m+508>>2];if(!a)break f;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break f;kc[J[J[a>>2]+8>>2]](a);Gc(a);break f}h=Z()|0;zq(m+296|0);break w}h= +Z()|0}nh(m+440|0)}a=J[m+584>>2];if(a){J[m+588>>2]=a;uc(a)}a=J[m+596>>2];if(a){J[m+600>>2]=a;uc(a)}uc(G);uc(D);uc(F);uc(C);ba(h|0);B()}a=J[m+584>>2];if(a){J[m+588>>2]=a;uc(a)}a=J[m+596>>2];if(a){J[m+600>>2]=a;uc(a)}uc(G);uc(D);uc(F);uc(C)}fc=m+640|0;return I|0}ea(0)|0;Bc();B()}function _za(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+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;m=fc-16|0;fc=m;j=m+12|0;p=e;g=fc+-64|0;fc=g;J[g+60>>2]=0;vd(g+60|0,0);f=b+8|0;a:{b:{c:{d:{e:{if(J[b+8>>2]){J[699344]= +0;ca(5520,g+56|0,b|0,f|0);h=J[699344];J[699344]=0;if((h|0)!=1)break e;break d}J[699344]=0;J[g+56>>2]=0;aa(5145,g+56|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d}f:{g:{h:{if(J[f>>2]){J[699344]=0;ca(5520,g+32|0,b|0,f|0);h=J[699344];J[699344]=0;if((h|0)!=1)break h;break g}J[699344]=0;J[g+32>>2]=0;aa(5145,g+32|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break g}h=J[g+32>>2];i:{if(!h)break i;l=J[h+8>>2];J[699344]=0;J[g+32>>2]=0;k=J[h+4>>2]-1|0;J[h+4>>2]=k;i=J[699344];J[699344]=0;if((i|0)==1)break b; +if(k)break i;J[699344]=0;$(5147,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break b}j:{k:{l:{m:{n:{o:{p:{if(J[f>>2]){J[699344]=0;ca(5520,g+32|0,b|0,f|0);h=J[699344];J[699344]=0;if((h|0)!=1)break p;break o}J[699344]=0;J[g+32>>2]=0;aa(5145,g+32|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break o}h=J[g+32>>2];q:{if(!h)break q;o=J[h+12>>2];J[699344]=0;J[g+32>>2]=0;k=J[h+4>>2]-1|0;J[h+4>>2]=k;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(!k){J[699344]=0;$(5147,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break b}if((l| +0)<=0|(o|0)<=0)break q;h=J[g+56>>2];if(h)break n}J[j>>2]=0;J[699344]=0;aa(5145,j|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break m}f=Z()|0;break f}e=1;r:{if(!(p>0))break r;e=.1;r=p/O[h+24>>3];if(r<.1)break r;e=r;if(!(e>10))break r;e=10}s:{if(J[f>>2]){J[699344]=0;ca(5521,g+52|0,b|0,f|0);h=J[699344];J[699344]=0;if((h|0)!=1)break s;break j}J[699344]=0;J[g+52>>2]=0;aa(5145,g+52|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break j}t:{u:{v:{w:{x:{y:{h=J[g+52>>2];if(h){J[699344]=0;f=J[h+12>>2];if(f)f=J[f+ +4>>2];else f=0;h=J[699344];J[699344]=0;if((h|0)==1)break y;J[699344]=0;h=J[J[g+52>>2]+12>>2];if(h)h=J[h+8>>2];else h=0;k=J[699344];J[699344]=0;z:{if((k|0)!=1){if(h?f:0)break z;J[j>>2]=0;J[699344]=0;aa(5145,j|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break t}f=Z()|0;break k}i=xt(l,o,f,h);if(i-13>>>0<=4294967283){J[j>>2]=0;J[699344]=0;aa(5145,j|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break t;break l}s=j;A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{if((d|0)==(i|0)){h=J[g+52>>2];f=J[J[h>>2]+20>>2];J[699344]= +0;j=f;f=g+32|0;ia(j|0,f|0,h|0,1,c|0);h=J[699344];J[699344]=0;M:{if((h|0)!=1){J[699344]=0;aa(5153,g+60|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break M;zc(f);break L}f=Z()|0;break k}f=Z()|0;zc(g+32|0);break k}if(i<<1==(d|0)){h=J[g+52>>2];f=J[J[h>>2]+20>>2];J[699344]=0;j=f;f=g+32|0;ia(j|0,f|0,h|0,2,c|0);h=J[699344];J[699344]=0;N:{if((h|0)!=1){J[699344]=0;aa(5153,g+60|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break N;zc(f);break L}f=Z()|0;break k}f=Z()|0;zc(g+32|0);break k}k=i<<2;if((k|0)==(d| +0)){h=J[g+52>>2];f=J[J[h>>2]+20>>2];J[699344]=0;j=f;f=g+32|0;ia(j|0,f|0,h|0,4,c|0);h=J[699344];J[699344]=0;O:{if((h|0)!=1){J[699344]=0;aa(5153,g+60|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break O;zc(f);break L}f=Z()|0;break k}f=Z()|0;zc(g+32|0);break k}if(i<<3==(d|0)){h=J[g+52>>2];f=J[J[h>>2]+20>>2];J[699344]=0;j=f;f=g+32|0;ia(j|0,f|0,h|0,8,c|0);h=J[699344];J[699344]=0;P:{if((h|0)!=1){J[699344]=0;aa(5153,g+60|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break P;zc(f);break L}f=Z()|0;break k}f= +Z()|0;zc(g+32|0);break k}if((k|0)==(P(d,3)|0)){k=J[c+12>>2];J[g+40>>2]=J[c+8>>2];J[g+44>>2]=k;k=J[c+4>>2];J[g+32>>2]=J[c>>2];J[g+36>>2]=k;i=J[c+12>>2];k=J[c+8>>2];J[g+24>>2]=k;J[g+28>>2]=i;i=J[c>>2];l=J[c+4>>2];J[g+24>>2]=(k+2|0)/3<<2;J[g+16>>2]=i;J[g+20>>2]=l;J[699344]=0;k=(i|0)/3|0;J[g+16>>2]=k<<2;i=J[g+20>>2]/3|0;J[g+20>>2]=i<<2;J[g+28>>2]=(J[g+28>>2]+2|0)/3<<2;ok(g+32|0,P(k,-12)>>2,P(i,-12)>>2);k=J[699344];J[699344]=0;if((k|0)==1)break x;if((f|0)>2])J[g+24>>2]=f;if((h|0)>2])J[g+ +28>>2]=h;f=J[g+52>>2];h=J[J[f>>2]+20>>2];J[699344]=0;j=h;h=g+12|0;ia(j|0,h|0,f|0,1,g+16|0);f=J[699344];J[699344]=0;Q:{R:{S:{T:{if((f|0)!=1){J[699344]=0;f=g+8|0;$(5529,f|0);k=J[699344];J[699344]=0;if((k|0)==1)break T;J[699344]=0;aa(5153,g+60|0,f|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break S;zc(f);J[699344]=0;ca(5530,J[g+60>>2],J[g+12>>2],g+32|0);f=J[699344];J[699344]=0;if((f|0)==1)break R;zc(h);break L}f=Z()|0;break k}f=Z()|0;break Q}f=Z()|0;zc(g+8|0);break Q}f=Z()|0}zc(g+12|0);break k}J[699344]= +0;j=g+16|0;q=f;n=i<<4;f=16;U:{if((n|0)<=(d|0))break U;n=i<<3;f=8;if((n|0)<=(d|0))break U;n=i<<2;f=4;if((n|0)<=(d|0))break U;n=i<<1;f=(n|0)>(d|0);n=f?i:n;f=f?1:2}i=((f+h|0)-1|0)/(f|0)|0;h=d-1|0;ma(5531,j|0,((q+f|0)-1|0)/(f|0)|0,i|0,(h+l|0)/(d|0)|0,(h+o|0)/(d|0)|0);h=J[699344];J[699344]=0;if((h|0)==1)break K;J[699344]=0;h=J[g+16>>2];ca(5532,h|0,n|0,d|0);k=J[699344];J[699344]=0;if((k|0)==1)break J;J[699344]=0;ca(5533,h|0,n|0,d|0);k=J[699344];J[699344]=0;if((k|0)==1)break J;J[g+40>>2]=0;J[g+44>>2]=0; +J[g+32>>2]=0;J[g+36>>2]=0;J[699344]=0;k=g+32|0;ca(5534,h|0,c|0,k|0);i=J[699344];J[699344]=0;if((i|0)==1)break I;i=J[g+52>>2];l=J[J[i>>2]+20>>2];J[699344]=0;q=l;l=g+12|0;ia(q|0,l|0,i|0,f|0,k|0);f=J[699344];J[699344]=0;if((f|0)==1)break H;J[699344]=0;f=g+8|0;$(5529,f|0);i=J[699344];J[699344]=0;if((i|0)==1)break G;J[699344]=0;aa(5153,g+60|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break F;zc(f);J[699344]=0;ma(5535,h|0,k|0,J[g+12>>2],c|0,J[g+60>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break E;zc(l); +zc(j)}f=J[g+60>>2];if(!(!f|e==1)){J[699344]=0;La(5536,f|0,+e);f=J[699344];J[699344]=0;if((f|0)==1)break l;f=J[g+60>>2]}if(f)break B;f=0;break A}f=Z()|0;break k}f=Z()|0;break C}f=Z()|0;break C}f=Z()|0;break C}f=Z()|0;break D}f=Z()|0;zc(g+8|0);break D}f=Z()|0}zc(g+12|0)}zc(g+16|0);break k}J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break l;f=J[g+60>>2]}J[s>>2]=f;break t}V:{if(J[f>>2]){J[699344]=0;ca(5522,g+16|0,b|0,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break V;break u}J[699344]= +0;J[g+16>>2]=0;aa(5145,g+16|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break u}W:{f=J[g+16>>2];X:{if(f){Y:{h=L[f+10>>1];if(h){k=L[f+8>>1];if(k)break Y}J[j>>2]=0;J[699344]=0;aa(5145,j|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break X;f=Z()|0;break v}f=xt(l,o,h,k);if(f-13>>>0<=4294967283){J[j>>2]=0;J[699344]=0;aa(5145,j|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break X;f=Z()|0;break v}Z:{_:{$:{aa:{ba:{ca:{da:{i=(d|0)/(f|0)|0;ea:{if(!((i|0)<=0|(P(f,i)|0)!=(d|0))){J[699344]=0;f=g+32|0;$(5529,f|0);h= +J[699344];J[699344]=0;fa:{ga:{if((h|0)!=1){J[699344]=0;aa(5153,g+60|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break ga;zc(f);f=J[g+16>>2];h=J[g+60>>2];if((i|0)!=1)break fa;J[699344]=0;ca(5537,h|0,f|0,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break w;break ea}f=Z()|0;break v}f=Z()|0;zc(g+32|0);break v}J[699344]=0;ia(5538,h|0,f|0,i|0,c|0);f=J[699344];J[699344]=0;if((f|0)!=1)break ea;break w}J[699344]=0;n=g+12|0;i=d-1|0;ma(5531,n|0,h|0,k|0,(i+l|0)/(d|0)|0,(i+o|0)/(d|0)|0);i=J[699344];J[699344]=0;if((i| +0)==1)break da;J[699344]=0;i=J[g+12>>2];ca(5532,i|0,f|0,d|0);l=J[699344];J[699344]=0;if((l|0)==1)break ca;J[699344]=0;ca(5533,i|0,f|0,d|0);f=J[699344];J[699344]=0;if((f|0)==1)break ca;J[699344]=0;f=g+32|0;$(5529,f|0);l=J[699344];J[699344]=0;if((l|0)==1)break ba;J[699344]=0;aa(5153,g+60|0,f|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break aa;zc(f);J[699344]=0;J[g+44>>2]=k;J[g+40>>2]=h;J[g+32>>2]=0;J[g+36>>2]=0;ma(5535,i|0,f|0,J[g+16>>2],c|0,J[g+60>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break $;zc(n)}f= +J[g+60>>2];if(!(!f|e==1)){J[699344]=0;La(5536,f|0,+e);f=J[699344];J[699344]=0;if((f|0)==1)break w;f=J[g+60>>2]}if(f)break Z;J[j>>2]=0;break X}f=Z()|0;break v}f=Z()|0;break _}f=Z()|0;break _}f=Z()|0;zc(g+32|0);break _}f=Z()|0}zc(g+12|0);break v}J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break w;J[j>>2]=J[g+60>>2];break X}J[j>>2]=0;J[699344]=0;aa(5145,j|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break W}f=J[g+16>>2];J[g+16>>2]=0;if(!f)break t;J[699344]=0;j=J[f+4>>2]-1|0;J[f+ +4>>2]=j;h=J[699344];J[699344]=0;if((h|0)!=1){if(j)break t;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break t}break b}f=Z()|0;break v}f=Z()|0;break k}f=Z()|0;break k}f=Z()|0}zc(g+16|0);break k}f=Z()|0;break k}f=J[g+52>>2];J[g+52>>2]=0;if(!f)break m;J[699344]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;h=J[699344];J[699344]=0;if((h|0)!=1){if(j)break m;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break m}break b}f=J[g+56>>2];J[g+56>>2]=0;ha:{if(!f)break ha;J[699344]=0;j=J[f+4>>2]-1| +0;J[f+4>>2]=j;h=J[699344];J[699344]=0;if((h|0)==1)break b;if(j)break ha;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break b}f=J[g+60>>2];J[g+60>>2]=0;ia:{ja:{if(!f)break ja;J[699344]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;h=J[699344];J[699344]=0;if((h|0)==1)break ia;if(j)break ja;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break ia}fc=g- -64|0;break a}break b}f=Z()|0}zc(g+52|0);break f}f=Z()|0;break f}f=Z()|0}zc(g+56|0);break c}f=Z()|0}zc(g+60|0);ba(f|0);B()}ea(0)|0;Bc();B()}J[699344]= +0;c=bb(5555,b|0,J[m+12>>2],c|0,d|0,+p)|0;d=J[699344];J[699344]=0;ka:{la:{if((d|0)==1)break la;ma:{na:{if(c)break na;oa:{if(J[b+8>>2]){J[699344]=0;ca(5523,m+8|0,b|0,b+8|0);b=J[699344];J[699344]=0;if((b|0)!=1)break oa;break la}J[699344]=0;J[m+8>>2]=0;aa(5145,m+8|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break la}b=J[m+8>>2];J[m+8>>2]=0;if(!b)break na;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break ka;if(!c){J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)== +1)break ka}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break la;b=J[m+12>>2];break ma}b=J[m+12>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break la;b=J[m+12>>2]}else b=0;J[a>>2]=b}J[m+12>>2]=0;pa:{if(!b)break pa;J[699344]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[699344];J[699344]=0;if((c|0)==1)break ka;if(a)break pa;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break ka}fc=m+16|0;return}a=Z()|0;zc(m+12|0);ba(a|0);B()}ea(0)| +0;Bc();B()}function d8(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;l=fc-240|0;fc=l;J[l+8>>2]=0;i=6;a:{if(!b|!((d|0)!=0|(c|0)<0))break a;r=K[b|0]&2?J[b+16>>2]!=0:r;J[l+12>>2]=0;b:{if(!a){i=33;break b}c:{h=J[a>>2];f=kc[J[h+4>>2]](h,40)|0;d:{if(!f){i=64;break d}H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;H[f+29|0]=0;H[f+30|0]=0;H[f+31|0]=0;H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;H[f+4|0]=0;H[f+5|0]=0;H[f+6|0]=0;H[f+7|0]=0;H[f+32|0]=0;H[f+33|0]= +0;H[f+34|0]=0;H[f+35|0]=0;H[f+36|0]=0;H[f+37|0]=0;H[f+38|0]=0;H[f+39|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+8|0]=0;H[f+9|0]=0;H[f+10|0]=0;H[f+11|0]=0;H[f+12|0]=0;H[f+13|0]=0;H[f+14|0]=0;H[f+15|0]=0;J[f+28>>2]=h;e:{f:{g:{h:{i:{j:{k:{l:{n=J[b>>2];if(n&1){i=J[b+8>>2];n=J[b+4>>2];J[f+32>>2]=0;J[f+8>>2]=0;J[f>>2]=n;J[f+4>>2]=i;J[f+20>>2]=0;J[f+24>>2]=0;break l}m:{if(!(n&4)){if(!(n&2)|!J[b+16>>2])break m;kc[J[h+8>>2]](h,f);f=J[b+16>>2];break l}i= +dy(f,J[b+12>>2]);J[f+16>>2]=J[b+12>>2];if(!i)break l}kc[J[h+8>>2]](h,f);J[l+12>>2]=0;break k}J[f+28>>2]=h;J[l+12>>2]=f;s=J[a>>2];n:{n=J[b>>2];if(!(n&8))break n;h=J[b+20>>2];if(!h)break n;i=32;if(H[J[h>>2]]&1){f=0;e=l+12|0;if(n&16){f=J[b+28>>2];a=J[b+24>>2]}else a=0;i=c8(h,e,r,c,a,f,l+8|0);if(!i)break c;f=J[l+12>>2];if(!f)break b}a=J[f+28>>2];b=J[f+24>>2];if(b)kc[b|0](f);if(r)break b;kc[J[a+8>>2]](a,f);break b}h=J[a+16>>2];if((h|0)<=0){i=11;break d}f=a+20|0;n=f+(h<<2)|0;i=11;h=0;while(1){p=J[f>>2]; +if(H[J[p>>2]]&1){i=0;h=0;if(K[b|0]&16){i=J[b+24>>2];h=J[b+28>>2]}i=c8(p,l+12|0,r,c,i,h,l+8|0);if(!i){h=p;break c}o:{if(!e)break o;if(Ic(J[J[J[f>>2]>>2]+8>>2],240791)|(i&255)!=142)break o;h=J[l+12>>2];i=J[h+20>>2];if(i)if(kc[i|0](h,0,0,0)|0)break j;J[h+8>>2]=0;i=b8(a,h,c,d);if(i)break o;a=J[h+28>>2];b=J[h+24>>2];if(b)kc[b|0](h);i=0;if(r)break a;kc[J[a+8>>2]](a,h);break a}h=p;if((i&255)!=2)break k}f=f+4|0;if(n>>>0>f>>>0)continue;break}p=h}p:{q:{h=i&255;switch(h-81|0){case 0:case 4:break p;case 1:case 2:case 3:break d; +default:break q}}if((h|0)!=2)break d}if(!e)break e;h=J[l+12>>2];if(h)break j;h=0;t=1;break i}e=J[h+20>>2];if(e)if(kc[e|0](h,0,0,0)|0)break i;J[h+8>>2]=0;e=J[h+4>>2];if(!e)break i;f=J[h+20>>2];r:{if(f){i=kc[f|0](h,0,l+112|0,128)|0;break r}i=e>>>0>=128?128:e;xc(l+112|0,J[h>>2],i)}J[h+8>>2]=i;if(i>>>0<128)break i;s:{t:{if(K[l+194|0]|(K[l+112|0]|K[l+186|0]))break t;e=K[l+113|0];if(!e|e>>>0>33|(K[l+175|0]|K[(e+l|0)+114|0]))break t;e=H[l+195|0];if((e|0)<0)break t;i=AN(a,h,((K[l+198|0]|(K[l+196|0]<<16|(e& +255)<<24|K[l+197|0]<<8))+127&2147483520)+128|0,c,d);if((i&255)!=2)break s}i=AN(a,h,0,c,d)}e=i&255;if((e|0)==85)break h;if((e|0)!=2)break g;break h}i=85}if(!(K[b|0]&4))break g;n=J[a>>2];i=J[b+12>>2];o=l- -64|0;e=l+16|0;f=l+112|0;J[f>>2]=0;u:{v:{w:{if(h){j=J[h+20>>2];x:{if(j){k=85;if(kc[j|0](h,0,0,0)|0)break x}J[h+8>>2]=0;J[e>>2]=0;J[f>>2]=0;k=ks(h,333319,o)}J[e>>2]=k;J[f+4>>2]=0;k=J[h+20>>2];if(!k)break w;if(!(kc[k|0](h,0,0,0)|0))break w;J[e+4>>2]=85;break v}J[e>>2]=81;J[f+4>>2]=0;J[e+4>>2]=81;J[f+ +8>>2]=0;J[e+8>>2]=0;u=e,v=uN(a,e,i,f+8|0,o+8|0),J[u+8>>2]=v;J[f+12>>2]=0;J[e+12>>2]=0;j=Yc(i);m=j+18|0;y:{z:{if((j|0)<=-18){q=6;if(m)break y;break z}g=J[a>>2];g=kc[J[g+4>>2]](g,m)|0;q=64;if(!g)break y;Ac(g,0,m)}q=xc(g,i,j);g=q+j|0;j=K[242302]|K[242303]<<8;H[g+16|0]=j;H[g+17|0]=j>>>8;j=K[242298]|K[242299]<<8|(K[242300]<<16|K[242301]<<24);m=K[242294]|K[242295]<<8|(K[242296]<<16|K[242297]<<24);H[g+8|0]=m;H[g+9|0]=m>>>8;H[g+10|0]=m>>>16;H[g+11|0]=m>>>24;H[g+12|0]=j;H[g+13|0]=j>>>8;H[g+14|0]=j>>>16;H[g+ +15|0]=j>>>24;j=K[242290]|K[242291]<<8|(K[242292]<<16|K[242293]<<24);m=K[242286]|K[242287]<<8|(K[242288]<<16|K[242289]<<24);H[g|0]=m;H[g+1|0]=m>>>8;H[g+2|0]=m>>>16;H[g+3|0]=m>>>24;H[g+4|0]=j;H[g+5|0]=j>>>8;H[g+6|0]=j>>>16;H[g+7|0]=j>>>24;J[f+12>>2]=q;J[o+12>>2]=0;q=0}J[e+12>>2]=q;J[f+16>>2]=0;J[e+16>>2]=0;g=6;j=Yc(i);m=j+6|0;A:{B:{if((j|0)<=-6){if(!m)break B;break A}g=J[a>>2];k=kc[J[g+4>>2]](g,m)|0;if(!k){g=64;break A}Ac(k,0,m)}g=0;m=xc(k,i,j);k=m+j|0;j=K[242432]|K[242433]<<8;H[k+4|0]=j;H[k+5|0]=j>>> +8;j=K[242428]|K[242429]<<8|(K[242430]<<16|K[242431]<<24);H[k|0]=j;H[k+1|0]=j>>>8;H[k+2|0]=j>>>16;H[k+3|0]=j>>>24;J[f+16>>2]=m;J[o+16>>2]=0}J[e+16>>2]=g;J[f+20>>2]=0;J[e+20>>2]=0;g=hp(J[a>>2],i,242532);if(g){J[f+20>>2]=g;J[o+20>>2]=0;g=0}else g=64;J[e+20>>2]=g;J[f+24>>2]=0;J[e+24>>2]=0;g=hp(J[a>>2],i,242631);if(g){J[f+24>>2]=g;J[o+24>>2]=0;g=0}else g=64;J[e+24>>2]=g;J[f+28>>2]=0;J[e+28>>2]=0;u=e,v=tN(a,e,i,f+28|0,o+28|0),J[u+28>>2]=v;J[f+32>>2]=0;J[e+32>>2]=0;u=e,v=sN(a,e,i,f+32|0,o+32|0),J[u+32>> +2]=v;break u}J[h+8>>2]=0;J[e+4>>2]=0;J[f+4>>2]=0;u=e,v=ks(h,333312,o+4|0),J[u+4>>2]=v}J[f+8>>2]=0;C:{D:{k=J[h+20>>2];if(!k)break D;if(!(kc[k|0](h,0,0,0)|0))break D;J[e+8>>2]=85;break C}J[h+8>>2]=0;J[e+8>>2]=0;u=e,v=uN(a,e,i,f+8|0,o+8|0),J[u+8>>2]=v}J[f+12>>2]=0;E:{F:{k=J[h+20>>2];if(!k)break F;if(!(kc[k|0](h,0,0,0)|0))break F;J[e+12>>2]=85;break E}J[h+8>>2]=0;J[e+12>>2]=0;k=Yc(i);j=k+18|0;G:{H:{if((k|0)<=-18){m=6;if(j)break G;break H}g=J[a>>2];g=kc[J[g+4>>2]](g,j)|0;m=64;if(!g)break G;Ac(g,0,j)}m= +xc(g,i,k);g=m+k|0;k=K[242302]|K[242303]<<8;H[g+16|0]=k;H[g+17|0]=k>>>8;k=K[242298]|K[242299]<<8|(K[242300]<<16|K[242301]<<24);j=K[242294]|K[242295]<<8|(K[242296]<<16|K[242297]<<24);H[g+8|0]=j;H[g+9|0]=j>>>8;H[g+10|0]=j>>>16;H[g+11|0]=j>>>24;H[g+12|0]=k;H[g+13|0]=k>>>8;H[g+14|0]=k>>>16;H[g+15|0]=k>>>24;k=K[242290]|K[242291]<<8|(K[242292]<<16|K[242293]<<24);j=K[242286]|K[242287]<<8|(K[242288]<<16|K[242289]<<24);H[g|0]=j;H[g+1|0]=j>>>8;H[g+2|0]=j>>>16;H[g+3|0]=j>>>24;H[g+4|0]=k;H[g+5|0]=k>>>8;H[g+6| +0]=k>>>16;H[g+7|0]=k>>>24;J[f+12>>2]=m;J[o+12>>2]=0;m=0}J[e+12>>2]=m}J[f+16>>2]=0;I:{J:{g=J[h+20>>2];if(!g)break J;if(!(kc[g|0](h,0,0,0)|0))break J;J[e+16>>2]=85;break I}J[h+8>>2]=0;J[e+16>>2]=0;k=6;j=Yc(i);m=j+6|0;K:{L:{if((j|0)<=-6){if(m)break K;g=0;break L}g=J[a>>2];g=kc[J[g+4>>2]](g,m)|0;if(!g){k=64;break K}Ac(g,0,m)}k=0;m=xc(g,i,j);g=m+j|0;j=K[242432]|K[242433]<<8;H[g+4|0]=j;H[g+5|0]=j>>>8;j=K[242428]|K[242429]<<8|(K[242430]<<16|K[242431]<<24);H[g|0]=j;H[g+1|0]=j>>>8;H[g+2|0]=j>>>16;H[g+3|0]= +j>>>24;J[f+16>>2]=m;J[o+16>>2]=0}J[e+16>>2]=k}J[f+20>>2]=0;M:{N:{g=J[h+20>>2];if(!g)break N;if(!(kc[g|0](h,0,0,0)|0))break N;J[e+20>>2]=85;break M}J[h+8>>2]=0;J[e+20>>2]=0;g=hp(J[a>>2],i,242532);if(g){J[f+20>>2]=g;J[o+20>>2]=0;g=0}else g=64;J[e+20>>2]=g}J[f+24>>2]=0;O:{P:{g=J[h+20>>2];if(!g)break P;if(!(kc[g|0](h,0,0,0)|0))break P;J[e+24>>2]=85;break O}J[h+8>>2]=0;J[e+24>>2]=0;g=hp(J[a>>2],i,242631);if(g){J[f+24>>2]=g;J[o+24>>2]=0;g=0}else g=64;J[e+24>>2]=g}J[f+28>>2]=0;Q:{R:{g=J[h+20>>2];if(!g)break R; +if(!(kc[g|0](h,0,0,0)|0))break R;J[e+28>>2]=85;break Q}J[h+8>>2]=0;J[e+28>>2]=0;u=e,v=tN(a,e,i,f+28|0,o+28|0),J[u+28>>2]=v}J[f+32>>2]=0;S:{g=J[h+20>>2];if(!g)break S;if(!(kc[g|0](h,0,0,0)|0))break S;J[e+32>>2]=85;break u}J[h+8>>2]=0;J[e+32>>2]=0;u=e,v=sN(a,e,i,f+32|0,o+32|0),J[u+32>>2]=v}e=0;g=2;i=0;while(1){T:{j=J[(i<<3)+259860>>2]-3|0;U:{if(e&255?j>>>0<=1:0)break U;m=i<<2;if(J[m+(l+16|0)>>2])break U;k=J[m+(l+112|0)>>2];if(!k)k=J[b+12>>2];V:{o=J[a>>2];f=kc[J[o+4>>2]](o,40)|0;W:{if(!f){g=64;break W}H[f+ +24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;H[f+29|0]=0;H[f+30|0]=0;H[f+31|0]=0;H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;H[f+4|0]=0;H[f+5|0]=0;H[f+6|0]=0;H[f+7|0]=0;H[f+32|0]=0;H[f+33|0]=0;H[f+34|0]=0;H[f+35|0]=0;H[f+36|0]=0;H[f+37|0]=0;H[f+38|0]=0;H[f+39|0]=0;H[f+16|0]=0;H[f+17|0]=0;H[f+18|0]=0;H[f+19|0]=0;H[f+20|0]=0;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+8|0]=0;H[f+9|0]=0;H[f+10|0]=0;H[f+11|0]=0;H[f+12|0]=0;H[f+13|0]=0;H[f+14|0]=0;H[f+15|0]=0;J[f+28>>2]=o;g=dy(f,k);J[f+16>>2]=k;if(!g)break V; +kc[J[o+8>>2]](o,f)}e=j>>>0<2?(g&255)==81?1:e:e;break U}J[f+28>>2]=o;g=AN(a,f,J[m+(l- -64|0)>>2],c,d);o=J[f+28>>2];k=J[f+24>>2];if(k)kc[k|0](f);kc[J[o+8>>2]](o,f);if(!g){g=0;break T}e=j>>>0<2?1:e}i=i+1|0;if((i|0)!=9)continue}break}a=J[l+112>>2];if(a){kc[J[n+8>>2]](n,a);J[l+112>>2]=0}a=J[l+116>>2];if(a){kc[J[n+8>>2]](n,a);J[l+116>>2]=0}a=J[l+120>>2];if(a){kc[J[n+8>>2]](n,a);J[l+120>>2]=0}a=J[l+124>>2];if(a){kc[J[n+8>>2]](n,a);J[l+124>>2]=0}a=J[l+128>>2];if(a)kc[J[n+8>>2]](n,a);a=J[l+132>>2];if(a)kc[J[n+ +8>>2]](n,a);a=J[l+136>>2];if(a)kc[J[n+8>>2]](n,a);a=J[l+140>>2];if(a)kc[J[n+8>>2]](n,a);a=J[l+144>>2];if(a)kc[J[n+8>>2]](n,a);i=2;if(!g)break f;break d}if(i)break e}i=0;if(t)break a;a=J[h+28>>2];b=J[h+24>>2];if(b)kc[b|0](h);if(r)break a;kc[J[a+8>>2]](a,h);break a}i=(i&255)==2?2:i}a=J[l+12>>2];X:{if(!a)break X;b=J[a+28>>2];c=J[a+24>>2];if(c)kc[c|0](a);if(r)break X;kc[J[b+8>>2]](b,a)}h=p;break b}a=kc[J[s+4>>2]](s,12)|0;if(!a){i=64;break b}H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]= +0;H[a+6|0]=0;H[a+7|0]=0;e=J[l+8>>2];J[a+8>>2]=e;b=J[e+96>>2];h=J[b+20>>2];J[a>>2]=h;J[(h?h+4|0:b+16|0)>>2]=a;J[b+20>>2]=a;Y:{if((c|0)>=0){i=BN(e,0);if(i)break Y;i=a8(e,l+112|0);if(i)break Y;J[e+88>>2]=J[l+112>>2]}a=J[e+8>>2];Z:{if(!(a&1))break Z;i=I[e+74>>1];if((i|0)<0){i=0-i|0;I[e+74>>1]=i}if(a&32)break Z;I[e+78>>1]=i}_:{if(!(a&2))break _;b=J[e+28>>2];if((b|0)<=0)break _;c=J[e+32>>2];i=0;while(1){a=c+(i<<4)|0;f=I[a>>1];if((f|0)<0){f=0-f|0;I[a>>1]=f}h=J[a+8>>2];if((h|0)<0)J[a+8>>2]=0-h;h=J[a+12>> +2];if((h|0)<0)J[a+12>>2]=0-h;if(f<<16>>16<0){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}i=i+1|0;if((b|0)!=(i|0))continue;break}}a=J[e+128>>2];J[a+64>>2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=65536;J[a>>2]=65536;J[a+4>>2]=0;H[a+56|0]=255;if(d){J[d>>2]=e;i=0;break a}ey(e);i=0;break a}a=J[e+96>>2];if(!a)break a;c=J[e+128>>2];b=J[c+64>>2];J[c+64>>2]=b-1;if((b|0)>1)break a;b=J[a+16>>2];if(!b)break a;h=a+16|0;c=J[a+8>>2];while(1){if((e|0)!=J[b+8>>2]){b=J[b+4>>2];if(b)continue;break a}break}d= +J[b>>2];p=d?d+4|0:h;h=J[b+4>>2];J[p>>2]=h;J[(h?h:a+20|0)>>2]=d;kc[J[c+8>>2]](c,b);Yu(c,e,a);break a}a=J[l+8>>2];if(!a)break a;Yu(s,a,h)}fc=l+240|0;return i}function hqb(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0;m=fc-26352|0;fc=m;T=J[b+92>>2];J[a+40>>2]=L[b+68>>1];c=0;a:{if(_D(b))break a;c=J[b+100>>2];Ac(m+19664|4,0,2756);J[m+19664>>2]=c;J[a+9856>>2]=0;J[a+52>>2]=0; +h=J[J[(J[J[a>>2]+8>>2]<<2)+247056>>2]+16>>2];c=K[h|0];b:{if(!c)break b;while(1){if((c&255)==32)while(1){c=K[h+1|0];h=h+1|0;if((c|0)==32)continue;break}i=J[J[a+36>>2]>>2];while(1){f=K[h|0];h=h+1|0;if((f|0)==32)continue;break}if(f<<24>>24<0){c=f>>>0<240;d=f>>>0<224;e=d?1:c?2:3;f=(d?31:c?15:7)&f;d=0;c=h;while(1){f=K[c|0]&63|f<<6;c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}h=e+h|0}e=0;while(1){c=K[h|0];if((c|32)!=32){h=h+1|0;e=c;if(c<<24>>24>=0)continue;e=c>>>0<240;d=c>>>0<224;g=d?1:e?2:3;e=(d?31: +e?15:7)&c;d=0;c=h;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}h=h+g|0;continue}break}c:{if(!e){c=Gh(i,f);if(c)break c;c=K[h|0]}if(c&255)continue;break b}break}if(lp(b,c,1))break b;d=J[b+84>>2];if(I[d+110>>1]<=0)break b;e=Ac(m,0,19652);c=J[a+40>>2];J[e+8>>2]=65536;J[e+12>>2]=65536;J[e+40>>2]=c;J[e+4>>2]=b;J[e+22404>>2]=0;J[e+22412>>2]=e;c=e+19664|0;if(ly(c,d+108|0))break b;if(ps(c,0))break b;h=0;ky(c,0,0,0);d=J[e+19708>>2];if((d|0)>0){c=J[e+19716>>2];f=c+P(d,44)|0;while(1){d= +J[c+20>>2];if(!(!d|c>>>0>=d>>>0|(J[d+20>>2]!=(c|0)|h>>>0>15))){g=I[c+2>>1]-I[d+2>>1]|0;d=g>>31;J[(P(h,12)+a|0)+56>>2]=(d^g)-d;h=h+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[e+26304>>2]=h;oE(e+26304|0,a+56|0,M[e+40>>2]/100|0);J[a+52>>2]=J[e+26304>>2];c=e+19664|0;if(ps(c,1))break b;h=0;ky(c,0,0,1);d=J[e+21056>>2];if((d|0)>0){c=J[e+21064>>2];f=c+P(d,44)|0;while(1){d=J[c+20>>2];if(!(!d|c>>>0>=d>>>0|(J[d+20>>2]!=(c|0)|h>>>0>15))){g=I[c+2>>1]-I[d+2>>1]|0;d=g>>31;J[(P(h,12)+a|0)+9860>>2]=(d^g)-d;h=h+ +1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[e+26304>>2]=h;oE(e+26304|0,a+9860|0,M[e+40>>2]/100|0);J[a+9856>>2]=J[e+26304>>2]}if(J[a+52>>2])c=J[a+56>>2];else c=(P(J[a+40>>2],50)|0)/2048|0;H[a+256|0]=0;J[a+252>>2]=c;J[a+248>>2]=(c|0)/5;if(J[a+9856>>2])c=J[a+9860>>2];else c=(P(J[a+40>>2],50)|0)/2048|0;H[a+10060|0]=0;J[a+10056>>2]=c;J[a+10052>>2]=(c|0)/5;KN(m+19664|0);U=M[a+40>>2]/14|0;N=J[a>>2];c=(J[N+12>>2]<<3)+237264|0;e=J[c>>2];if((e|0)!=5531)while(1){D=c;h=e+231728|0;c=K[h|0];d:{if(!c)break d; +u=0;t=0;p=0;o=0;while(1){if((c&255)==32)while(1){c=K[h+1|0];h=h+1|0;if((c|0)==32)continue;break}i=J[J[a+36>>2]>>2];while(1){f=K[h|0];h=h+1|0;if((f|0)==32)continue;break}if(f<<24>>24<0){c=f>>>0<240;d=f>>>0<224;e=d?1:c?2:3;f=(d?31:c?15:7)&f;d=0;c=h;while(1){f=K[c|0]&63|f<<6;c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}h=e+h|0}e=0;while(1){c=K[h|0];if((c|32)!=32){h=h+1|0;e=c;if(c<<24>>24>=0)continue;c=c>>>0<240;d=e>>>0<224;g=d?1:c?2:3;e=(d?31:c?15:7)&e;d=0;c=h;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+ +1|0;if((g|0)!=(d|0))continue;break}h=h+g|0;continue}break}e:{if(e)break e;l=L[D+4>>1];O=l&1;F=O?-2147483648:2147483647;n=0;c=Gh(i,f);f:{if(!c)break f;if(lp(b,c,1))break f;c=J[b+84>>2];if(I[c+110>>1]<3)break f;r=0;z=I[c+108>>1];g:{if((z|0)<=0){j=0;break g}w=l&3;E=J[c+120>>2];x=J[c+116>>2];q=J[c+112>>2];g=-1;v=0;f=0;e=0;while(1){k=I[E+(n<<1)>>1];h:{if((k|0)<=(f|0)){d=g;break h}i:{if(w){j:{if(!((k-f|0)+1&1)){i=f;c=e;d=g;break j}i=f+1|0;c=J[((f<<3)+q|0)+4>>2];k:{if(!((g|0)<0|(e|0)<(c|0))){o=(c|0)>(o| +0)?o:c;c=e;d=g;break k}p=(c|0)<(p|0)?p:c;e=c;d=f}}if((f|0)==(k|0))break i;while(1){e=J[((i<<3)+q|0)+4>>2];l:{if(!((e|0)<=(c|0)&(d|0)>=0)){p=(e|0)<(p|0)?p:e;d=i;break l}o=(e|0)>(o|0)?o:e;e=c}j=i+1|0;c=J[((j<<3)+q|0)+4>>2];m:{if(!((d|0)<0|(e|0)<(c|0))){o=(c|0)>(o|0)?o:c;c=e;break m}p=(c|0)<(p|0)?p:c;d=j}i=i+2|0;e=c;if((j|0)!=(k|0))continue;break}break i}n:{if(!((k-f|0)+1&1)){i=f;c=e;d=g;break n}i=f+1|0;c=J[((f<<3)+q|0)+4>>2];o:{if(!((g|0)<0|(e|0)>(c|0))){p=(c|0)<(p|0)?p:c;c=e;d=g;break o}o=(c|0)>(o| +0)?o:c;e=c;d=f}}if((f|0)==(k|0))break i;while(1){e=J[((i<<3)+q|0)+4>>2];p:{if(!((d|0)>=0&(e|0)>=(c|0))){o=(e|0)>(o|0)?o:e;d=i;break p}p=(e|0)<(p|0)?p:e;e=c}j=i+1|0;c=J[((j<<3)+q|0)+4>>2];q:{if(!((d|0)<0|(e|0)>(c|0))){p=(c|0)<(p|0)?p:c;c=e;break q}o=(c|0)>(o|0)?o:c;d=j}i=i+2|0;e=c;if((j|0)!=(k|0))continue;break}}c=(d|0)==(g|0);r=c?r:f;v=c?v:k;g=d}f=k+1|0;n=n+1|0;if((z|0)!=(n|0))continue;break}if((d|0)<0){j=e;r=0;break g}E=l&4;n=l&16;z=J[(d<<3)+q>>2];g=d;c=(K[d+x|0]&3)!=1?-1:d;i=c;r:{while(1){f=(g| +0)>(r|0)?g-1|0:v;k=(f<<3)+q|0;l=J[k+4>>2]-e|0;j=l>>31;l=(j^l)-j|0;if(l>>>0>=6){k=J[k>>2]-z|0;j=k>>31;if((j^k)-j>>>0<=P(l,20)>>>0)break r}g=(K[f+x|0]&3)==1;i=g?(i|0)<0?f:i:i;c=g?f:c;g=f;if((f|0)!=(d|0))continue;break}g=d}f=d;s:{while(1){j=(f|0)<(v|0)?f+1|0:r;G=(j<<3)+q|0;l=J[G+4>>2]-e|0;k=l>>31;l=(k^l)-k|0;if(l>>>0>=6){w=J[G>>2]-z|0;k=w>>31;if((k^w)-k>>>0<=P(l,20)>>>0)break s}f=(K[j+x|0]&3)==1;c=f?(c|0)<0?j:c:c;i=f?j:i;f=j;if((f|0)!=(d|0))continue;break}f=d}t:{u:{if(!n)break u;k=J[(f<<3)+q>>2]-J[(g<< +3)+q>>2]|0;j=k>>31;l=J[a+40>>2];Q=(l>>>0)/25|0;if(Q>>>0<=(j^k)-j>>>0)break u;j=d;if(((f-g|0)+2|0)>(v-r|0))break u;while(1){j=(j|0)>(r|0)?j-1|0:v;R=J[(j<<3)+q>>2];if((R|0)==(z|0)&(d|0)!=(j|0))continue;break}n=0;if((d|0)==(j|0))break f;V=l>>>2|0;w=0;k=f;d=f;l=0;while(1){if(!w){n=(K[d+x|0]&3)!=1?-1:d;l=n;k=d}d=(d|0)<(v|0)?d+1|0:r;w=0;y=(k<<3)+q|0;j=J[y+4>>2];s=e-j|0;A=s>>31;v:{if((s^A)-A>>>0>V>>>0)break v;s=(d<<3)+q|0;S=J[s>>2];A=J[y>>2];B=S-A|0;y=B>>31;C=J[s+4>>2]-j|0;s=C>>31;C=(s^C)-s|0;s=P(C,20); +y=(y^B)-y|0;if(C>>>0>=6&s>>>0>=y>>>0)break v;w=1;B=(K[d+x|0]&3)==1;n=B?(n|0)<0?d:n:n;l=B?d:l;if((A|0)<(S|0)^(z|0)>(R|0)|y>>>0>>0)break v;while(1){d=(d|0)<(v|0)?d+1|0:r;e=J[((d<<3)+q|0)+4>>2]-j|0;c=e>>31;w:{if((c^e)-c>>>0<6)break w;e=J[G>>2]-A|0;c=e>>31;if(s>>>0<(c^e)-c>>>0)break w;f=(d|0)>(r|0)?d-1|0:v;break t}n=(K[d+x|0]&3)==1?(n|0)<0?d:n:n;l=d;if((d|0)!=(g|0))continue;break}f=g;l=f;break t}if((d|0)!=(g|0))continue;break}}j=e;k=g;n=c;l=i}x:{if((n|l)<0)break x;e=J[(l<<3)+q>>2]-J[(n<<3)+q>>2]|0; +c=e>>31;if((c^e)-c>>>0<=U>>>0)break x;r=0;break g}if((K[k+x|0]&3)==1){c=K[f+x|0]&3;r=(c|0)!=1;if((c|0)==1)break g;n=0;if(!E)break g;break f}n=0;r=1;if(E)break f}n=O?(j|0)!=-2147483648?r:0:(j|0)!=2147483647?r:0;F=j}if(F-2147483647>>>0<2)break e;J[(n?(m+19664|0)+(t<<2)|0:(u<<2)+m|0)>>2]=F;t=n+t|0;u=!n+u|0}c=K[h|0];if(c)continue;break}if(!(t|u))break d;y:{if(t>>>0<2)break y;f=1;c=t-1|0;d=c&1;if((t|0)!=2){g=c&-2;j=0;while(1){c=f;while(1){e=(m+19664|0)+(c<<2)|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k| +0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}c=f+1|0;while(1){e=(m+19664|0)+(c<<2)|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}f=f+2|0;j=j+2|0;if((g|0)!=(j|0))continue;break}}if(!d)break y;while(1){c=(m+19664|0)+(f<<2)|0;e=J[c>>2];d=c-4|0;g=J[d>>2];if((e|0)>=(g|0))break y;J[c>>2]=g;J[d>>2]=e;f=f-1|0;if(f)continue;break}}z:{if(u>>>0<2)break z;f=1;c=u-1|0;d=c&1;if((u|0)!=2){g=c&-2;j=0;while(1){c=f;while(1){e=(c<<2)+m|0;i=J[e>>2];h=e-4|0;k=J[h>> +2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}c=f+1|0;while(1){e=(c<<2)+m|0;i=J[e>>2];h=e-4|0;k=J[h>>2];if((i|0)<(k|0)){J[e>>2]=k;J[h>>2]=i;c=c-1|0;if(c)continue}break}f=f+2|0;j=j+2|0;if((g|0)!=(j|0))continue;break}}if(!d)break z;while(1){c=(f<<2)+m|0;e=J[c>>2];d=c-4|0;g=J[d>>2];if((e|0)>=(g|0))break z;J[c>>2]=g;J[d>>2]=e;f=f-1|0;if(f)continue;break}}c=J[a+10064>>2];J[a+10064>>2]=c+1;e=P(c,36)+a|0;c=e+10080|0;i=e+10068|0;f=L[D+4>>1];d=J[(m+19664|0)+(t<<1&-4)>>2];A:{B:{if(!u)break B; +d=J[(u<<1&-4)+m>>2];if(!t)break B;J[i>>2]=d;g=J[(m+19664|0)+(t<<1&-4)>>2];J[c>>2]=g;if((d|0)==(g|0)|((f&3)!=0|0)==((d|0)<(g|0)|0))break A;d=(d+g|0)/2|0}J[c>>2]=d;J[i>>2]=d}c=e+10100|0;d=f<<1&14;J[c>>2]=d;J[e+10096>>2]=o;J[e+10092>>2]=p;if(!(f&8))break d;J[c>>2]=d|16}c=D+8|0;e=J[D+8>>2];if((e|0)!=5531)continue;break}e=J[a+10064>>2];if(e){d=0;c=0;if(e>>>0>=4){i=e&-4;f=a+10068|0;h=0;while(1){g=m+26304|0;J[g+(c<<2)>>2]=f+P(c,36);j=c|1;J[g+(j<<2)>>2]=f+P(j,36);j=c|2;J[g+(j<<2)>>2]=f+P(j,36);j=c|3;J[g+ +(j<<2)>>2]=f+P(j,36);c=c+4|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}f=e&3;if(f)while(1){J[(m+26304|0)+(c<<2)>>2]=(P(c,36)+a|0)+10068;c=c+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}if(e>>>0>=2){f=1;while(1){c=f;while(1){d=(m+26304|0)+(c<<2)|0;g=J[d>>2];j=d-4|0;i=J[j>>2];if(J[(K[g+32|0]&6?0:12)+g>>2]>2]){J[d>>2]=i;J[j>>2]=g;c=c-1|0;if(c)continue}break}f=f+1|0;if((e|0)!=(f|0))continue;break}}g=e-1|0;if(g){c=J[m+26304>>2];d=J[c+32>>2];e=0;while(1){f=d&6?c+12|0:c;e=e+1|0;c=J[(m+ +26304|0)+(e<<2)>>2];d=J[c+32>>2];i=J[(d&6?12:0)+c>>2];if((i|0)>2])J[f>>2]=i;if((e|0)!=(g|0))continue;break}}J[m>>2]=0;i=252E3;c=48;o=0;j=0;C:{while(1){i=i+1|0;if((c&255)==32)while(1){c=K[i|0];i=i+1|0;if((c|0)==32)continue;break}f=c&255;if(c<<24>>24<0){c=f>>>0<240;e=f>>>0<224;d=e?1:c?2:3;f=(e?31:c?15:7)&f;e=0;c=i;while(1){f=K[c|0]&63|f<<6;c=c+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}i=d+i|0}g=J[J[a+36>>2]>>2];e=0;while(1){c=K[i|0];if((c|32)!=32){i=i+1|0;e=c;if(c<<24>>24>=0)continue;c=c>>>0< +240;d=e>>>0<224;h=d?1:c?2:3;e=(d?31:c?15:7)&e;d=0;c=i;while(1){e=K[c|0]&63|e<<6;c=c+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}i=h+i|0;continue}break}D:{if(e){gE(g,0,m);break D}c=Gh(g,f);gE(J[J[a+36>>2]>>2],c,m);if(!c)break D;e=o&255;o=1;c=J[m>>2];if(!e){j=c;break D}if((c|0)==(j|0))break D;c=0;break C}c=K[i|0];if(c)continue;break}c=1}H[a+32|0]=c;c=0;break a}c=J[a+36>>2];a=J[c+4>>2];E:{if((a|0)<=0)break E;e=J[c+8>>2];d=J[N>>2];c=0;if((a|0)!=1){f=a&-2;h=0;while(1){g=c<<1;i=g+e|0;if((d|0)==(L[i>>1]& +16383))I[i>>1]=66;g=e+(g|2)|0;if((d|0)==(L[g>>1]&16383))I[g>>1]=66;c=c+2|0;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(a&1))break E;a=e+(c<<1)|0;if((d|0)!=(L[a>>1]&16383))break E;I[a>>1]=66}c=-1}ls(b,T);fc=m+26352|0;return c|0}function HC(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;h=fc-128|0;fc=h;a:{b:{c:{d:{e:{f:{g:{if(J[a+32>>2]){h:{if(!b)break h;d=b;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}d=f-b|0;if((d|0)<0)break h;f=kc[J[663198]](d+1|0)|0;if(f)break e;Hc(0,0,0,0,0,1,2,3, +0,0,0,0,36029,0)}J[h+124>>2]=0;break g}f=CK(a,b,h+124|0);if(!f)break g;if(K[f|0])break d;e=4071;i:{j:{d=J[h+124>>2];if((d|0)!=4071){if(!d)break j;while(1){g=K[d|0];if((g|0)!=K[e|0])break j;e=e+1|0;d=d+1|0;if(g)continue;break}}if(J[a+172>>2]==-1?J[a+212>>2]:0)break i;J[a+84>>2]=35;J[h+100>>2]=0;J[h+96>>2]=b;Hc(0,0,0,a,0,3,35,2,b,0,0,0,37579,h+96|0);break i}if(J[a+172>>2]==-1?J[a+212>>2]:0)break i;J[a+84>>2]=106;J[h+116>>2]=0;J[h+112>>2]=b;Hc(0,0,0,a,0,3,106,1,b,0,0,0,37669,h+112|0)}d=J[h+124>>2];if(d)kc[J[663199]](d); +J[h+124>>2]=0;kc[J[663199]](f);if(!b)break g;d=b;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}d=f-b|0;if((d|0)<0)break g;f=kc[J[663198]](d+1|0)|0;if(f)break f;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0)}J[a+84>>2]=2;c=J[a>>2];b=0;k:{if(!c)break k;b=0;if(J[c+108>>2]!=-554844497)break k;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[h+4>>2]=0;J[h>>2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0,2723,h);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break c}n=xc(f,b,d)+d|0,o=0,H[n|0]=o;break d}n=xc(f,b,d)+d|0,o=0,H[n|0]=o; +J[h+124>>2]=0}l:{if(!J[a+32>>2]|c)break l;d=b;c=0;m:{if(!d)break m;e=17168;n:{if((d|0)==17168)break n;c=d;o:{while(1){g=K[c|0];if(K[K[e|0]+775024|0]==K[g+775024|0]){c=c+1|0;e=e+1|0;if(g)continue;break o}break}e=3712;if((d|0)==3712)break n;c=d;while(1){p:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=13760;if((d|0)!=13760)break p;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){q:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=5493;if((d|0)!=5493)break q;break n}c=c+1|0;e=e+1| +0;if(g)continue;break o}break}c=d;while(1){r:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=17159;if((d|0)!=17159)break r;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){s:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=5844;if((d|0)!=5844)break s;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){t:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=14172;if((d|0)!=14172)break t;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){u:{g=K[c|0];if(K[K[e| +0]+775024|0]!=K[g+775024|0]){e=13174;if((d|0)!=13174)break u;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){v:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=13203;if((d|0)!=13203)break v;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){w:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=14759;if((d|0)!=14759)break w;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){x:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=5837;if((d|0)!=5837)break x;break n}c= +c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){y:{g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=1448;if((d|0)!=1448)break y;break n}c=c+1|0;e=e+1|0;if(g)continue;break o}break}c=d;while(1){g=K[c|0];if(K[K[e|0]+775024|0]!=K[g+775024|0]){e=16227;if((d|0)==16227)break o;while(1){g=K[d|0];c=0;if(K[K[e|0]+775024|0]!=K[g+775024|0])break m;d=d+1|0;e=e+1|0;if(g)continue;break}break o}c=c+1|0;e=e+1|0;if(g)continue;break}}c=1;break m}c=1}d=c;if(!b){c=0;break l}c=0;if(!d)break l;d=b;while(1){e=d; +d=d+1|0;if(K[e|0])continue;break}d=e-b|0;if((d|0)<0)break l;c=kc[J[663198]](d+1|0)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);c=0;break l}l=xc(c,b,d);H[d+l|0]=0}e=J[a+32>>2];d=J[h+124>>2];z:{A:{if(!(e|d)){if(K[f|0]!=120|K[f+1|0]!=109|(K[f+2|0]!=108|K[f+3|0]!=110))break A;if(K[f+5|0]|K[f+4|0]!=115)break A;d=c;B:{if(J[a+16>>2])break B;J[a+248>>2]=J[a+248>>2]+1;d=DK(a,d);J[a+248>>2]=J[a+248>>2]-1;if(d)break B;Tr(a,2723);d=f;break b}C:{if(!K[d|0])break C;b=ru(d);if(!b){b=J[a>>2];if(!b)break C;b=J[b+ +84>>2];if(!b)break C;e=J[a+4>>2];J[h+16>>2]=d;kc[b|0](e,36960,h+16|0);break C}D:{if(J[b>>2])break D;e=J[a>>2];if(!e)break D;e=J[e+84>>2];if(!e)break D;g=J[a+4>>2];J[h+32>>2]=d;kc[e|0](g,33996,h+32|0)}uk(b)}Gl(J[a+52>>2],d,0);kc[J[663199]](f);if(l)kc[J[663199]](l);if((c|0)!=(d|0))break b;break a}E:{if(!(!d|e)){if(K[d|0]!=120|K[d+1|0]!=109|(K[d+2|0]!=108|K[d+3|0]!=110))break E;if(K[d+5|0]|K[d+4|0]!=115)break E;d=c;F:{if(J[a+16>>2])break F;J[a+248>>2]=J[a+248>>2]+1;d=DK(a,d);J[a+248>>2]=J[a+248>>2]- +1;if(d)break F;Tr(a,2723);kc[J[663199]](J[h+124>>2]);d=f;break b}if(!K[d|0]){b=fc-16|0;fc=b;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=204;J[b+4>>2]=0;J[b>>2]=f;Hc(0,0,0,a,0,3,204,2,f,0,0,0,32371,b)}fc=b+16|0}G:{if(!J[a+268>>2]|!K[d|0])break G;b=ru(d);if(!b){tC(a,99,36987,f,c);break G}if(!J[b>>2])tC(a,100,34027,f,c);uk(b)}Gl(J[a+52>>2],d,f);kc[J[663199]](J[h+124>>2]);kc[J[663199]](f);if(l)kc[J[663199]](l);if((c|0)!=(d|0))break b;break a}if(d)break E;break A}j=Il(J[a+8>>2],J[a+52>>2],d);if(!j){d= +J[h+124>>2];if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){j=0;break A}J[a+84>>2]=201;J[h+68>>2]=f;J[h+64>>2]=d;j=0;Hc(0,0,0,a,0,3,201,2,d,f,0,0,35921,h- -64|0);break A}i=J[J[a+52>>2]+44>>2];if(!i)break A;while(1){H:{k=J[i+36>>2];if(!k)break H;d=J[i+8>>2];if((f|0)!=(d|0)){e=f;if(!d)break H;while(1){g=K[e|0];if((g|0)!=K[d|0])break H;d=d+1|0;e=e+1|0;if(g)continue;break}}g=J[j+8>>2];I:{if((j|0)==(k|0))break I;d=J[k+8>>2];if((g|0)==(d|0))break I;if(!g)break H;e=g;if(!d)break H;while(1){k=K[e|0];if((k|0)!=K[d|0])break H; +d=d+1|0;e=e+1|0;if(k)continue;break}}if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=42;J[h+84>>2]=g;J[h+80>>2]=f;Hc(0,0,0,a,0,3,42,2,f,g,0,0,35697,h+80|0)}J[a+12>>2]=0;if(J[a+288>>2])break z;J[a+212>>2]=1;break z}i=J[i+24>>2];if(i)continue;break}}j=c2(J[a+52>>2],j,f,1);J:{if(!j)break J;if(!(J[a+16>>2]|J[a+32>>2])){d=xC(J[a+8>>2],c);J[j+12>>2]=d;if(!d)break J;while(1){f=d;J[d+20>>2]=j;d=J[d+24>>2];if(d)continue;break}J[j+16>>2]=f;break J}if(!c)break J;f=J[a+8>>2];d=_1(c);if(!d){J[j+12>>2]=0;J[j+16>> +2]=0;break J}J[d+32>>2]=f;J[j+16>>2]=d;J[j+12>>2]=d;J[d+20>>2]=j}if(K[a+276|0]&8)break z;K:{if(!J[a+16>>2]){if(J[a+96>>2]!=2)break K;break z}if(J[a+216>>2])break z}d=15583;L:{if((b|0)!=15583){if(!b)break L;while(1){f=K[b|0];if((f|0)!=K[d|0])break L;d=d+1|0;b=b+1|0;if(f)continue;break}}g=fc-16|0;fc=g;b=c;M:{if(!b){f=-1;break M}d=b;while(1){f=K[d|0];e=f-9|0;if(!(e>>>0>23|!(1<>>0<26)&(f-65&255)>>>0>25)break N;while(1){e=K[d+1|0];f=d+1| +0;d=f;if((e-48&255)>>>0<10|((e&223)-65&255)>>>0<26|((e|0)==95|e-45>>>0<2))continue;break}while(1){d=(e&255)-9|0;if(!(d>>>0>23|!(1<255)break P;Q:{while(1){f=d-9|0;if(f>>>0>23|!(1<>2]+b|0;d=Wm(0,b,g+12|0);if((d|0)<256)continue;break}break P}if(d-192>>>0<23|(d&-33)-65>>>0<26|((d|0)==95|(d|0)>247))break O;f=1;if(d-216>>>0<31)break O;break M}if(d>>>0<=65535){f=196;e= +0;k=d&65535;while(1){i=(e+f|0)/2|0;m=i<<2;R:{if(L[m+770352>>1]>d>>>0){f=i-1|0;break R}if(k>>>0<=L[m+770354>>1])break O;e=i+1|0}if((e|0)<=(f|0))continue;break}}if((d|0)==12295|d-12330>>>0>4294967286)break O;f=1;if(d-40870>>>0<4294946394)break M}f=J[g+12>>2]+b|0;d=Wm(0,f,g+12|0);S:{while(1){T:{b=f;U:{V:{if((d|0)<=255){if(d-192>>>0<23|(d&-33)-65>>>0<26|(d-48>>>0<10|(d|0)>247))break U;if(d-216>>>0>=31)break V;break U}k=d>>>0>65535;if(!k){f=196;e=0;while(1){i=(e+f|0)/2|0;m=i<<2;W:{if(L[m+770352>>1]>d>>> +0){f=i-1|0;break W}if(L[m+770354>>1]>=(d&65535)>>>0)break U;e=i+1|0}if((e|0)<=(f|0))continue;break}}if((d|0)==12295|d-12321>>>0<9|d-19968>>>0<20902)break U;if(k)break V;f=13;e=0;while(1){i=(e+f|0)/2|0;k=i<<2;X:{if(L[k+771568>>1]>d>>>0){f=i-1|0;break X}if(L[k+771570>>1]>=(d&65535)>>>0)break U;e=i+1|0}if((e|0)<=(f|0))continue;break}}if((d|0)==95|d-45>>>0<2)break U;if((d|0)>=256){if(d>>>0>65535){d=1;break S}f=94;e=0;while(1){i=(e+f|0)/2|0;k=i<<2;Y:{if(L[k+771168>>1]>d>>>0){f=i-1|0;break Y}if(L[k+771170>> +1]>=(d&65535)>>>0)break U;e=i+1|0}if((e|0)<=(f|0))continue;break}f=9;e=0;while(1){i=(e+f|0)/2|0;k=i<<2;Z:{if(L[k+771648>>1]>d>>>0){f=i-1|0;break Z}if(L[k+771650>>1]>=(d&65535)>>>0)break U;e=i+1|0}if((e|0)<=(f|0))continue;break}break T}if((d|0)!=183)break T}f=J[g+12>>2]+b|0;d=0;if(!b)continue;_:{b=H[f|0];if((b|0)<0){if((K[f+1|0]&192)!=128)break _;b=b&255;$:{if((b&224)==224){if((K[f+2|0]&192)!=128)break _;if((b&240)==240){if((b&248)!=240|(K[f+3|0]&192)!=128)break _;J[g+12>>2]=4;e=(K[f+1|0]&63)<<12| +(K[f|0]&7)<<18|(K[f+2|0]&63)<<6;b=f+3|0;break $}J[g+12>>2]=3;e=(K[f+1|0]&63)<<6|(K[f|0]&15)<<12;b=f+2|0;break $}J[g+12>>2]=2;e=(K[f|0]&31)<<6;b=f+1|0}d=K[b|0]&63|e;aa:{if(d>>>0<=255){if(d>>>0>31)continue;if(d>>>0>13)break aa;if(1<>>0<55296|d-57344>>>0<8190|d-65536>>>0<1048576)continue}J[g>>2]=d;Hc(0,0,0,0,0,1,9,3,0,0,0,d,34779,g);continue}J[g+12>>2]=1;d=K[f|0];continue}J[g+12>>2]=0;continue}break}if((d|0)>255)break S;while(1){f=d-9|0;if(f>>>0>23|!(1<>2]+b|0;d=Wm(0,b,g+12|0);if((d|0)<256)continue;break}}f=(d|0)!=0}fc=g+16|0;if(!(!f|(J[a+172>>2]==-1?J[a+212>>2]:0))){J[a+84>>2]=539;d=J[a>>2];b=0;ba:{if(!d)break ba;b=0;if(J[d+108>>2]!=-554844497)break ba;b=J[d+124>>2]}d=J[a+112>>2];f=J[a+108>>2];J[h+52>>2]=0;J[h+48>>2]=c;Hc(b,d,f,a,0,4,539,2,c,0,0,0,34695,h+48|0);J[a+100>>2]=0}ex(a+108|0,J[a+8>>2],c,j);break z}if(pC(J[a+8>>2],J[a+52>>2],j)){ex(a+108|0,J[a+8>>2],c,j);break z}if(!B1(J[a+8>>2],J[a+52>>2],j))break z;D1(a+108|0,J[a+8>>2],c,j)}if(!l)break c; +kc[J[663199]](l)}d=J[h+124>>2];if(!d)break a}kc[J[663199]](d)}fc=h+128|0}function sib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;e=fc-1536|0;fc=e;J[b>>2]=1;n=al(J[b+96>>2],241354,1);J[b+488>>2]=n;l=go(J[J[b+96>>2]+4>>2],241492);J[b+492>>2]=l;a:{if(!l){a=11;break a}q=b,r=go(J[J[b+96>>2]+4>>2],241284),J[q+552>>2]=r;i=J[b+492>>2];a=e+12|0;Ac(a,0,380);J[b+544>>2]=0;J[b+536>>2]=-1;J[b+540>>2]=-1;J[b+284>>2]=1;J[b+348>>2]=3932;J[b+172>>2]=4;J[b+276>> +2]=2596864;J[b+280>>2]=7;f=J[b+104>>2];g=J[b+100>>2];kc[J[J[i+4>>2]>>2]](a,0,0,g);J[e+96>>2]=0;J[e+100>>2]=0;H[e+103|0]=0;H[e+104|0]=0;H[e+105|0]=0;H[e+106|0]=0;J[e+88>>2]=0;J[e+92>>2]=0;J[e+84>>2]=f;a=d6(f,242020,14);J[e+8>>2]=a;b:{c:{d:{if(a){if((a&255)!=2)break d;a=d6(f,242193,10);J[e+8>>2]=a;if(a)break d}a=yd(f,0);J[e+8>>2]=a;if(a)break d;d=e+1528|0;h=ee(f,d);e:{f:{g:{h:{a=J[e+1528>>2];if(!a){if((h+32767&65535)>>>0>=2)break g;d=oj(f,d);a=J[e+1528>>2];if(!a)break h}J[e+8>>2]=a;break d}J[e+8>>2]= +0;if((h|0)==32769)break f}a=yd(f,0);J[e+8>>2]=a;if(a)break d;d=J[f+4>>2];break e}H[e+104|0]=1}i:{if(!J[f+20>>2]){a=J[f+8>>2];h=J[f>>2];H[e+105|0]=1;J[e+92>>2]=d;J[e+88>>2]=a+h;a=kg(f,d);J[e+8>>2]=a;if(a)break d;d=J[e+92>>2];break i}h=he(g,d,e+8|0);J[e+88>>2]=h;a=J[e+8>>2];if(a)break d;a=zg(f,h,d);J[e+8>>2]=a;if(a)break d;J[e+92>>2]=d}f=J[e+88>>2];J[e+16>>2]=f;J[e+12>>2]=f;J[e+20>>2]=d+f;break c}if(K[e+105|0]){J[e+4>>2]=a;break b}a=J[e+88>>2];if(a)kc[J[g+8>>2]](g,a);f=0;J[e+88>>2]=0;a=J[e+8>>2];J[e+ +4>>2]=a;if(a)break b;d=J[e+92>>2]}a=c6(b,e+12|0,f,d);J[e+4>>2]=a;if(a)break b;j=J[e+28>>2];a=J[e+84>>2];J[e+8>>2]=0;j:{k:{l:{m:{if(K[e+104|0]){h=J[a+8>>2];J[e+100>>2]=0;while(1){d=ee(a,e+1528|0);g=J[e+1528>>2];if(g)break k;if((d+32767&65535)>>>0>=2){J[e+8>>2]=0;break m}f=oj(a,e+1528|0);g=J[e+1528>>2];if(g)break k;J[e+8>>2]=0;if((d|0)!=32770)break m;J[e+100>>2]=f+J[e+100>>2];g=kg(a,f);J[e+8>>2]=g;if(!g)continue;break}break k}d=J[e+88>>2];h=J[e+92>>2];f=d+h|0;a=d;while(1){n:{o:{if(K[a|0]!=101|a+9>>> +0>=f>>>0|(K[a+1|0]!=101|K[a+2|0]!=120))break o;if(K[a+3|0]!=101)break o;if(K[a+4|0]==99)break n}a=a+1|0;if(f>>>0>a>>>0)continue;J[e+4>>2]=3;break b}a=a+10|0;J[e+20>>2]=a;J[e+12>>2]=d;p:{if(a>>>0>d>>>0){while(1){q:{if(K[d|0]!=101|d+5>>>0>=a>>>0|(K[d+1|0]!=101|K[d+2|0]!=120))break q;if(K[d+3|0]!=101)break q;if(K[d+4|0]==99)break p}d=e+12|0;kc[J[e+44>>2]](d);if(!J[e+24>>2]){kc[J[e+40>>2]](d);d=J[e+12>>2];if(d>>>0>>0)continue}break}h=J[e+92>>2];d=J[e+88>>2]}g=3;f=d+h|0;if(f>>>0>a>>>0)continue;break k}break}J[e+ +20>>2]=J[e+88>>2]+J[e+92>>2];kc[J[e+44>>2]](e+12|0);h=J[e+20>>2];a=J[e+12>>2];f=h-a|0;d=Cg(a,10,f);if(d)d=Cg(a,13,f)>>>0>>0;else d=1;g=3;if(a>>>0>=h>>>0)break k;k=a+f|0;while(1){r:{f=K[a|0];if(!((f|0)==9|(f|0)==32|(f|0)==10))if(!(d&(f|0)==13))break r;a=a+1|0;if((k|0)!=(a|0))continue;break k}break}d=J[e+88>>2];f=J[e+92>>2]+(d-a|0)|0;s:{if(K[e+105|0]){d=he(j,f+1|0,e+8|0);J[e+96>>2]=d;g=J[e+8>>2];if(g)break k;J[e+100>>2]=f;break s}J[e+100>>2]=f;J[e+96>>2]=d;H[e+106|0]=1;J[e+88>>2]=0;J[e+92>>2]=0}t:{if(h>>> +0<=a+3>>>0)break t;u:{g=K[a|0];if(g-48>>>0<10)break u;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break u;default:break t}}v:{g=K[a+1|0];if(g-48>>>0<10)break v;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break v;default:break t}}w:{g=K[a+2|0];if(g-48>>>0<10)break w;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break w; +default:break t}}x:{g=K[a+3|0];if(g-48>>>0<10)break x;switch(g-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break x;default:break t}}J[e+12>>2]=a;kc[J[J[i+4>>2]+24>>2]](e+12|0,d,f,e+1528|0,0)|0;a=J[e+1528>>2];J[e+100>>2]=a;H[a+J[e+96>>2]|0]=0;break l}cd(d,a,f);break l}if(!J[e+100>>2]){J[e+4>>2]=3;break b}g=yd(a,h);J[e+8>>2]=g;if(g)break k;q=e,r=he(j,J[e+100>>2],e+8|0),J[q+96>>2]=r;g=J[e+8>>2];if(g)break k;J[e+100>>2]=0;f=ee(a,e+1528|0);y:{if(J[e+ +1528>>2])break y;while(1){if((f+32767&65535)>>>0>1)break y;h=e+1528|0;d=oj(a,h);if(J[e+1528>>2])break y;J[e+8>>2]=0;if((f&65535)!=32770)break y;g=zg(a,J[e+96>>2]+J[e+100>>2]|0,d);J[e+8>>2]=g;if(g)break k;J[e+100>>2]=d+J[e+100>>2];f=ee(a,h);if(!J[e+1528>>2])continue;break}}J[e+8>>2]=0}kc[J[i+16>>2]](J[e+96>>2],J[e+100>>2],55665);g=3;if(M[e+100>>2]>3)break j}J[e+4>>2]=g;break b}H[J[e+96>>2]]=32;H[J[e+96>>2]+1|0]=32;H[J[e+96>>2]+2|0]=32;H[J[e+96>>2]+3|0]=32;a=J[e+96>>2];J[e+16>>2]=a;J[e+12>>2]=a;d=J[e+ +100>>2];J[e+20>>2]=d+a;f=J[e+8>>2];J[e+4>>2]=f;if(f)break b;a=c6(b,e+12|0,a,d);J[e+4>>2]=a;if(a)break b;H[b+176|0]=K[b+176|0]&254;z:{A:{f=J[b+532>>2];if(!f)break A;if(J[f>>2]!=1<>2]){Xx(b);f=J[b+532>>2];if(!f)break A}a=J[f+416>>2];if(!(!a|(a|0)==J[f+4>>2]))J[f+416>>2]=0;B:{C:{if(J[f>>2]){d=J[f+4>>2];if(d)break C}Xx(b);f=J[b+532>>2];if(!f)break A;d=J[f+4>>2];if(!d)break B}a=0;while(1){if(K[(P(a,12)+f|0)+88|0]){a=a+1|0;if((d|0)!=(a|0))continue;break B}break}Xx(b);if(!J[b+532>>2])break A}a=J[b+ +544>>2];if(!a)break z;q=b,r=_c(J[b+100>>2],4,0,a,0,e+4|0),J[q+548>>2]=r;if(!J[e+4>>2])break z;J[b+544>>2]=0;break b}J[b+544>>2]=0}f=J[e+164>>2];J[b+420>>2]=f;if(J[e+340>>2]){J[b+404>>2]=J[e+324>>2];J[b+392>>2]=J[e+328>>2];J[b+408>>2]=J[e+352>>2];J[b+412>>2]=J[e+356>>2];J[b+416>>2]=J[e+380>>2];J[e+380>>2]=0;J[e+340>>2]=0}if(!(J[J[b+128>>2]+52>>2]|J[e+232>>2]))J[e+4>>2]=3;g=0;J[e+232>>2]=0;J[b+396>>2]=J[e+220>>2];J[b+428>>2]=J[e+244>>2];J[b+432>>2]=J[e+248>>2];J[b+400>>2]=J[e+168>>2];J[b+424>>2]=J[e+ +192>>2];J[e+192>>2]=0;J[e+168>>2]=0;if(J[b+368>>2]==1){h=0;i=J[e+128>>2];D:{if((i|0)<=0)break D;if((f|0)>0){d=0;while(1){j=d<<2;k=J[j+J[e+136>>2]>>2];o=d<<1;I[o+J[b+384>>2]>>1]=0;J[j+J[b+388>>2]>>2]=241966;E:{if(!k)break E;p=J[b+424>>2];a=0;while(1){m=J[(a<<2)+p>>2];if(Ic(k,m)){a=a+1|0;if((f|0)!=(a|0))continue;break E}break}I[J[b+384>>2]+o>>1]=a;J[j+J[b+388>>2]>>2]=m;if(!Ic(241966,m))break E;h=(d|0)<(h|0)?h:d+1|0;g=(d|0)<(g|0)?d:g}d=d+1|0;if((i|0)!=(d|0))continue;break}break D}f=0;a=0;if(i>>>0>=4){g= +i&-4;d=0;while(1){I[J[b+384>>2]+(a<<1)>>1]=0;J[J[b+388>>2]+(a<<2)>>2]=241966;h=a|1;I[J[b+384>>2]+(h<<1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=241966;h=a|2;I[J[b+384>>2]+(h<<1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=241966;h=a|3;I[J[b+384>>2]+(h<<1)>>1]=0;J[J[b+388>>2]+(h<<2)>>2]=241966;a=a+4|0;d=d+4|0;if((g|0)!=(d|0))continue;break}}d=i&3;if(!d){g=0;h=0;break D}while(1){g=0;I[J[b+384>>2]+(a<<1)>>1]=0;J[J[b+388>>2]+(a<<2)>>2]=241966;a=a+1|0;h=0;f=f+1|0;if((d|0)!=(f|0))continue;break}}J[b+380>>2]=h;J[b+376>>2]=g; +J[b+372>>2]=J[e+108>>2]}if(M[b+280>>2]>=1001)J[b+280>>2]=7;if(M[b+284>>2]<1001)break b;J[b+284>>2]=1}a=J[e+28>>2];d=J[e+160>>2];if(d)kc[d|0](e+112|0);d=J[e+268>>2];if(d)kc[d|0](e+220|0);d=J[e+216>>2];if(d)kc[d|0](e+168|0);d=J[e+320>>2];if(d)kc[d|0](e+272|0);d=J[e+376>>2];if(d)kc[d|0](e+328|0);dE(J[e+380>>2],a);d=J[e+380>>2];if(d)kc[J[a+8>>2]](a,d);J[e+380>>2]=0;a=J[e+28>>2];d=J[e+96>>2];if(d)kc[J[a+8>>2]](a,d);J[e+96>>2]=0;if(!K[e+105|0]){d=J[e+88>>2];if(d)kc[J[a+8>>2]](a,d);J[e+88>>2]=0}kc[J[e+36>> +2]](e+12|0);a=J[e+4>>2];if(a|(c|0)<0)break a;a=6;if(c&65535)break a;J[b+4>>2]=0;J[b+16>>2]=J[b+420>>2];c=J[b+8>>2];a=c|2577;J[b+8>>2]=a;if(K[b+156|0]){a=c|2581;J[b+8>>2]=a}g=J[b+532>>2];if(g)J[b+8>>2]=a|256;J[b+24>>2]=0;f=J[b+144>>2];J[b+20>>2]=f;F:{G:{if(f){a=J[b+140>>2];if(!a)break G;c=K[a|0];if(!c){a=241622;break F}while(1){H:{I:{d=c&255;c=K[f|0];if((d|0)==(c|0)){a=a+1|0;break I}d=d-32|0;if(!((d|0)!=13?d:0)){a=a+1|0;break H}J:switch(c-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break G; +case 0:case 13:break I;default:break J}if(c)break G;break F}f=f+1|0}c=K[a|0];if(c)continue;break}a=241622;break F}a=J[b+364>>2];if(!a)break G;J[b+20>>2]=a}a=J[b+148>>2];a=a?a:241622}J[b+24>>2]=a;c=J[b+152>>2]!=0;J[b+12>>2]=c;a=J[b+148>>2];K:{if(!a)break K;if(Ic(a,241742))if(Ic(a,241818))break K;J[b+12>>2]=c|2}J[b+28>>2]=0;J[b+32>>2]=0;J[b+52>>2]=I[b+466>>1];a=I[b+470>>1];J[b+56>>2]=a;f=J[b+472>>2]+65535>>16;J[b+60>>2]=f;d=J[b+476>>2]+65535>>16;J[b- -64>>2]=d;c=L[b+68>>1];if(!c){I[b+68>>1]=1E3;c=1E3}I[b+ +76>>1]=f;I[b+72>>1]=a;I[b+70>>1]=d;a=d-a|0;c=(P(c,12)>>>0)/10|0;I[b+74>>1]=(a|0)>c<<16>>16?a:c;a=0;c=e+12|0;d=J[b+492>>2];if(!(kc[J[J[d+12>>2]>>2]](c,b,0,0,J[b+424>>2],g,0,0,1751)|0)){H[e+80|0]=0;H[e+82|0]=1;J[e+1376>>2]=J[b+404>>2];J[e+1380>>2]=J[b+408>>2];J[e+1384>>2]=J[b+412>>2];J[e+1388>>2]=J[b+416>>2];J[e+1508>>2]=J[b+548>>2];J[e+1512>>2]=J[b+544>>2];L:{if(J[b+420>>2]<=0)break L;a=c;c=e+1528|0;M:{if(Wx(a,0,c,e+8|0))break M;a=J[J[J[e+16>>2]+128>>2]+52>>2];if(!a)break M;kc[J[J[a>>2]+4>>2]](J[a+ +4>>2],c)}a=J[e+52>>2];if(J[b+420>>2]<2)break L;f=1;while(1){g=e+1528|0;N:{if(Wx(e+12|0,f,g,e+8|0))break N;c=J[J[J[e+16>>2]+128>>2]+52>>2];if(!c)break N;kc[J[J[c>>2]+4>>2]](J[c+4>>2],g)}c=J[e+52>>2];a=(a|0)<(c|0)?c:a;f=f+1|0;if((f|0)>2])continue;break}}kc[J[J[d+12>>2]+4>>2]](e+12|0);I[b+76>>1]=(((a>>31)+a|0)+32768&-65536)>>>16}I[b+78>>1]=L[b+74>>1];J[b+80>>2]=L[b+158>>1]|L[b+160>>1]<<16;if(!n){a=0;break a}f=J[l+32>>2];J[e+12>>2]=b;J[e+16>>2]=1970170211;J[e+20>>2]=65539;a=bl(J[f+12>>2],0,e+ +12|0,0);O:{if(!a)break O;c=a&255;if((c|0)==163)break O;if((c|0)!=7)break a}I[e+20>>1]=7;a=0;P:{Q:switch(J[b+368>>2]-1|0){case 1:I[e+22>>1]=0;J[e+16>>2]=1094995778;break P;case 3:I[e+22>>1]=1;J[e+16>>2]=1094992453;f=f+4|0;break P;case 0:I[e+22>>1]=2;J[e+16>>2]=1094992451;f=f+8|0;break P;case 2:break Q;default:break a}f=f+12|0;I[e+22>>1]=3;J[e+16>>2]=1818326065}b=J[f>>2];if(!b)break a;a=bl(b,0,e+12|0,0)}fc=e+1536|0;return a|0}function lu(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;j=fc-144|0;fc=j;a:{if(!a|!b|(c|0)<0)break a;i=J[a+248>>2];if(!((i|0)<41|(J[a+360>>2]&524288?i>>>0<=1024:0))){if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break a;J[a+84>>2]=89;J[j>>2]=5754;Hc(0,0,0,a,0,1,89,3,0,0,0,0,32906,j);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}b:{c:{d:{g=kc[J[663198]](300)|0;if(!g)break d;if(c)e=Wm(a,b,j+136|0);i=!e;e:{if(i|i)break e;t=b+c|0;u=d&1;v=d&2;c=300;l=g;while(1){f:{g:{h:{i:{j:{k:{l:{m:{n:{if((e|0)==38){if(K[b+1|0]==35){if(K[b|0]==38){i= +b+2|0;f=0;g=K[b+2|0];o:{p:{if((g|0)==59){b=1;break p}e=0;if((g|0)==120){i=b+3|0;m=1;b=K[b+3|0];q:{if((b|0)==59)break q;while(1){g=i;i=-48;r:{if((b-48&255)>>>0<10)break r;i=-87;if((b-97&255)>>>0<6)break r;i=-55;if((b-65&255)>>>0<6)break r;m=0;Xe(a,6,0);i=g;e=0;break q}e=((b&255)+(e<<4)|0)+i|0;f=e>>>0>1114111?e:f;i=g+1|0;b=K[g+1|0];if((b|0)!=59)continue;break}}i=i+m|0;break i}while(1){if((g-48&255)>>>0<=9){e=(P(e,10)+(g&255)|0)-48|0;f=e>>>0>1114111?e:f;b=1;g=K[i+1|0];m=i+1|0;i=m;if((g|0)!=59)continue; +break o}break}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){b=0;break p}J[a+84>>2]=7;J[j+16>>2]=13422;b=0;Hc(0,0,0,a,0,1,7,3,0,0,0,0,32906,j+16|0);J[a+12>>2]=0;if(J[a+288>>2])break p;J[a+212>>2]=1}m=i;e=0}i=b+m|0;break i}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){i=b;break h}J[a+84>>2]=8;J[j+32>>2]=13453;Hc(0,0,0,a,0,1,8,3,0,0,0,0,32906,j+32|0);J[a+12>>2]=0;if(J[a+288>>2]){i=b;break h}J[a+212>>2]=1;i=b;break h}if(!u)break n;if(J[693384]){J[j+64>>2]=b;kc[J[663297]](J[693366],32118,j- -64|0)}J[j+140>>2]=b;e=0;if(K[b| +0]!=38){i=b;break j}J[j+140>>2]=b+1;g=EK(a,j+140|0);if(!g){oe(a,68,34496);i=J[j+140>>2];break j}i=J[j+140>>2];if(K[i|0]!=59){s:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break s;J[a+84>>2]=23;J[j+48>>2]=29313;Hc(0,0,0,a,0,1,23,3,0,0,0,0,32906,j+48|0);J[a+12>>2]=0;if(J[a+288>>2])break s;J[a+212>>2]=1}kc[J[663199]](g);break j}i=i+1|0;t:{if(K[a+362|0]&16)break t;e=fj(g);if(!e)break t;kc[J[663199]](g);break j}J[a+440>>2]=J[a+440>>2]+1;e=0;f=J[a>>2];u:{if(!f)break u;f=J[f+20>>2];if(f){e=kc[f|0](J[a+4>>2],g)|0; +if(e)break u}if(K[a+362|0]&16){e=fj(g);if(e)break u}e=0;if(J[a+4>>2]!=(a|0))break u;e=JC(a,g)}f=J[a+172>>2];if((f|0)==-1){e=0;kc[J[663199]](g);i=b;break j}if(!e){if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){Uf(a,26,35973,g);sk(a,0,0,0);break k}ku(a,27,35973,g);sk(a,0,0,0);break k}b=J[e+48>>2];if((b|0)==3){Uf(a,28,32276,g);break k}f=(f|0)!=12;if(!(f|(b|0)!=2)){Uf(a,29,37401,g);break k}v:{if((b|0)==6|f)break v;f=J[e+40>>2];if(!f)break v;if(rq(f,60))break m;b=J[e+48>>2]}if((b&-2)!=4)break k;Uf(a,30, +37353,g);break k}if(!v|(e|0)!=37)break n;if(J[693384]){J[j+128>>2]=b;kc[J[663297]](J[693366],32159,j+128|0)}g=0;w:{if(!b){i=0;break w}J[j+140>>2]=b;if(K[b|0]!=37){i=b;break w}J[j+140>>2]=b+1;f=EK(a,j+140|0);if(!f){oe(a,68,34558);i=J[j+140>>2];break w}i=J[j+140>>2];if(K[i|0]!=59){x:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break x;J[a+84>>2]=23;J[j+112>>2]=29313;Hc(0,0,0,a,0,1,23,3,0,0,0,0,32906,j+112|0);J[a+12>>2]=0;if(J[a+288>>2])break x;J[a+212>>2]=1}kc[J[663199]](f);break w}i=i+1|0;J[j+140>>2]=i;J[a+440>> +2]=J[a+440>>2]+1;e=J[a>>2];y:{if(!e)break y;e=J[e+96>>2];if(!e)break y;g=kc[e|0](J[a+4>>2],f)|0}if(J[a+172>>2]==-1){g=0;kc[J[663199]](f);i=b;break w}z:{if(!g){if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){Uf(a,26,34968,f);sk(a,0,0,0);break z}Vo(a,27,34968,f);J[a+100>>2]=0;sk(a,0,0,0);break z}if((J[g+48>>2]&-2)==4)break z;Vo(a,27,29887,f)}J[a+92>>2]=1;kc[J[663199]](f)}if(J[a+388>>2]==89)break b;sk(a,0,g,0);if(!g)break g;J[a+440>>2]=J[a+440>>2]+(J[g+72>>2]/2|0);e=J[g+40>>2];if(e){J[a+248>>2]=J[a+248>> +2]+1;break l}A:{if(K[a+360|0]&18|J[a+104>>2]){B:switch(J[g+48>>2]-2|0){default:if(J[a+172>>2]==-1?J[a+212>>2]:0)break A;J[a+84>>2]=1;J[j+84>>2]=4922;J[j+80>>2]=5012;Hc(0,0,0,a,0,1,1,3,4922,0,0,0,32777,j+80|0);J[a+12>>2]=0;if(J[a+288>>2])break A;J[a+212>>2]=1;break A;case 0:case 3:break B}if(J[693384]){J[j+96>>2]=J[g+8>>2];kc[J[663297]](J[693366],30739,j+96|0)}f=0;e=fc-32|0;fc=e;b=kc[J[663195]](20)|0;C:{if(!b){J[e>>2]=5439;Hc(0,0,0,0,0,2,2,3,5439,0,0,0,32879,e);break C}J[b+4>>2]=0;f=J[663196];J[b+ +8>>2]=f;J[b+12>>2]=J[663197];f=kc[J[663198]](f)|0;J[b>>2]=f;if(!f){J[e+16>>2]=5439;f=0;Hc(0,0,0,0,0,2,2,3,5439,0,0,0,32879,e+16|0);kc[J[663199]](b);break C}H[f|0]=0;J[b+16>>2]=0;f=b}fc=e+32|0;k=f;if(!f){Xe(a,1,4922);break A}o=RK(a,g);if(!o){Xe(a,1,4855);NC(k);break A}D:{if((mu(a,o)|0)<0)break D;E:{if(J[a+292>>2])break E;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break E;Rd(a)}e=Mf(a,j+140|0);F:{G:{H:{I:{J:{K:{if(J[a+36>>2]==(o|0)){m=0;while(1){b=J[o+16>>2];if(b>>>0>=M[o+20>>2])break G;L:{if((e| +0)<=255){if((e|0)>31|(1<>>0<=13:0))break L;break I}if(e>>>0<55296)break L;f=e-57344|0;if(f>>>0<8190)break L;s=e-65536|0;if(s>>>0>1048575)break K}s=b;n=J[j+140>>2];p=0;M:{if(!k|!b|(J[k+12>>2]==2|(n|0)<-1))break M;if(!n)break M;if((n|0)<0){n=0;if(!K[b|0])break M;while(1){n=n+1|0;f=K[b+1|0];b=b+1|0;if(f)continue;break}}N:{b=J[k+4>>2];f=(b+n|0)+2|0;e=J[k+8>>2];if(f>>>0>e>>>0){q=fc-32|0;fc=q;O:{if(!k)break O;r=J[k+12>>2];if((r|0)==2)break O;p=1;if(e>>>0>f>>>0)break O;P:{Q:{R:{S:{T:{U:switch(r| +0){case 0:case 3:b=e?e<<1:f+10|0;if(f>>>0<=b>>>0)break T;while(1){if((b|0)<0){J[q+16>>2]=5424;p=0;Hc(0,0,0,0,0,2,2,3,5424,0,0,0,32879,q+16|0);break O}b=b<<1;if(f>>>0>b>>>0)continue;break}break T;case 4:if(M[k+4>>2]<4096){b=f;break R}b=e;while(1){b=b<<1;if(f>>>0<=b>>>0)break T;if((b|0)>=0)continue;break}tx(5424);p=0;break O;case 1:break S;default:break U}b=f+10|0}if((r|0)!=3)break R;f=J[k+16>>2];if(!f)break R;r=J[k>>2];e=r-f|0;if(e>>>0>b>>>0){cd(f,r,J[k+4>>2]);f=J[k+16>>2];J[k>>2]=f;H[f+J[k+4>>2]| +0]=0;break Q}f=kc[J[663200]](f,b+e|0)|0;if(!f){tx(5424);p=0;break O}J[k+16>>2]=f;J[k>>2]=e+f;break Q}b=f+10|0}V:{W:{f=J[k>>2];X:{if(!f){e=kc[J[663198]](b)|0;break X}if(e-J[k+4>>2]>>>0>99)break W;e=kc[J[663200]](f,b)|0}if(e)break V;break P}e=kc[J[663198]](b)|0;if(!e)break P;f=xc(e,J[k>>2],J[k+4>>2]);kc[J[663199]](J[k>>2]);H[J[k+4>>2]+f|0]=0}J[k>>2]=e}J[k+8>>2]=b;break O}J[q>>2]=5424;p=0;Hc(0,0,0,0,0,2,2,3,5424,0,0,0,32879,q)}fc=q+32|0;if(!p)break N;b=J[k+4>>2]}cd(J[k>>2]+b|0,s,n);b=J[k+4>>2]+n|0;J[k+ +4>>2]=b;H[b+J[k>>2]|0]=0;break M}tx(5424)}Y:{if((m|0)<101){m=m+1|0;break Y}Z:{if(J[a+292>>2])break Z;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break Z;Rd(a)}m=0;if(J[a+172>>2]==-1)break D}b=J[a+36>>2];f=J[b+16>>2];_:{if(K[f|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break _}J[b+32>>2]=J[b+32>>2]+1}e=b;b=f+J[j+140>>2]|0;J[e+16>>2]=b;if(K[b|0]==37)Yd(a);e=Mf(a,j+140|0);if(!e){$:{if(J[a+292>>2])break $;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break $;Rd(a)}if(J[a+172>>2]==-1)break D;m=0;e= +Mf(a,j+140|0)}if(J[a+36>>2]==(o|0))continue;break}}if((e|0)<256)break J;s=e-65536|0;f=e-57344|0}if(s>>>0<1048576|e>>>0<55296)break F;if(f>>>0>=8190)break H;break F}if((e|0)>31)break F}if(e>>>0>13)break H;if(1<>2]=J[k>>2];J[k>>2]=0}NC(k);break A}Vo(a,104,32316,J[g+8>>2])}e=J[g+40>>2];b=J[a+248>>2];J[a+248>>2]=b+1;if(e)break l;J[a+248>>2]=b;break g}aa:{if(J[j+136>>2]==1){H[h+l|0]=e;h=h+1|0;break aa}h=ej(h+l|0,e)+h|0}i=J[j+136>>2]+b|0;if(h+100>>> +0<=c>>>0)break g;f=0;b=(c<<1)+100|0;if(c>>>0>b>>>0)break d;g=kc[J[663200]](l,b)|0;if(!g)break d;break f}Uf(a,38,31810,g);break k}f=lu(a,e,Tk(e),d);J[a+248>>2]=J[a+248>>2]-1;if(!f)break g;b=f;e=K[b|0];if(e)while(1){H[h+l|0]=e;e=h+1|0;ba:{if(h+101>>>0<=c>>>0){h=l;break ba}if(sk(a,e,g,0))break c;h=c;c=(c<<1)+100|0;if(h>>>0>c>>>0)break d;h=kc[J[663200]](l,c)|0;if(!h)break d}l=h;h=e;b=b+1|0;e=K[b|0];if(e)continue;break}kc[J[663199]](f);break g}kc[J[663199]](g)}b=J[a+388>>2];if((b|0)==1|(b|0)==89)break b; +sk(a,0,e,0);if(!e)break g;J[a+440>>2]=J[a+440>>2]+(J[e+72>>2]/2|0);b=J[e+40>>2];if(J[e+48>>2]==6){if(b){h=ej(h+l|0,K[b|0])+h|0;if(h+100>>>0<=c>>>0)break g;f=0;b=(c<<1)+100|0;if(c>>>0>b>>>0)break d;g=kc[J[663200]](l,b)|0;if(g)break f;break d}oe(a,1,30873);break g}if(b){J[a+248>>2]=J[a+248>>2]+1;f=lu(a,b,Tk(b),d);J[a+248>>2]=J[a+248>>2]-1;b=J[a+388>>2];if((b|0)==1|(b|0)==89)break c;if(!f)break g;g=f;b=K[f|0];if(b)while(1){H[h+l|0]=b;b=h+1|0;ca:{if(h+101>>>0<=c>>>0){h=l;break ca}if(sk(a,b,e,0))break c; +h=c;c=(c<<1)+100|0;if(h>>>0>c>>>0)break d;h=kc[J[663200]](l,c)|0;if(!h)break d}l=h;h=b;g=g+1|0;b=K[g|0];if(b)continue;break}kc[J[663199]](f);break g}k=Tk(J[e+8>>2]);e=J[e+8>>2];H[h+l|0]=38;h=h+1|0;da:{if((k+h|0)+100>>>0<=c>>>0){b=c;g=l;break da}f=0;b=(k+(c<<1)|0)+100|0;if(c>>>0>b>>>0)break d;g=kc[J[663200]](l,b)|0;if(!g)break d}ea:{if((k|0)<=0)break ea;c=0;l=k;f=k&3;if(f)while(1){H[g+h|0]=K[e|0];l=l-1|0;h=h+1|0;e=e+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}if(k>>>0<4)break ea;while(1){c=g+h|0;H[c| +0]=K[e|0];H[c+1|0]=K[e+1|0];H[c+2|0]=K[e+2|0];H[c+3|0]=K[e+3|0];h=h+4|0;e=e+4|0;c=l-5|0;l=l-4|0;if(c>>>0<4294967294)continue;break}}H[g+h|0]=59;h=h+1|0;break f}fa:{ga:{ha:{if(e>>>0<=255){if(e>>>0>31)break ha;if(e>>>0>13)break ga;if(1<>>0>55295&e-57344>>>0>8189&e-65536>>>0>1048575)break ga}if(!f)break fa}El(a,9,36231,e);break h}h=ej(h+l|0,e)+h|0}if(h+100>>>0<=c>>>0)break g;f=0;b=(c<<1)+100|0;if(c>>>0>b>>>0)break d;g=kc[J[663200]](l,b)|0;if(!g)break d;break f}b=c;g=l}e= +0;if(i>>>0>>0)e=Wm(a,i,j+136|0);c=!e;if(c|c)break e;l=g;c=b;b=i;if(e)continue;break}}H[g+h|0]=0;break a}se(a,0)}if(!f)break b;kc[J[663199]](f)}g=0;if(!l)break a;kc[J[663199]](l)}fc=j+144|0;return g}function NH(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;c=fc-112|0;fc=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!K[b+89|0]){a=Qc(c+72|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;break b}if(!(J[b+92>>2]&24)){a=Qc(c+72|0,2407427,2385400,1714, +2413770,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;break b}k=a;a=vc(44);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2400920;J[a+4>>2]=0;d=a+16|0;J[d>>2]=0;J[d+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[699344]=0;aa(5250,d|0,2401320)|0;d=J[699344];J[699344]=0;if((d|0)==1){b=Z()|0;zc(a+12|0);zc(a+8|0);uc(nd(a));ba(b|0);B()}J[k>>2]=0;vd(k,a);J[699344]=0;$(5320,a|0);a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;zc(k);ba(a|0);B()}k:switch(J[b+56>>2]-3|0){case 0:case 1:a= +J[b+48>>2];J[699344]=0;da(5441,c+32|0,a|0);a=J[699344];J[699344]=0;if((a|0)!=1){l:{h=J[c+40>>2];if(h){j=c+80|0;while(1){J[699344]=0;d=_(4,60)|0;a=J[699344];J[699344]=0;m:{n:{o:{p:{q:{r:{s:{t:{if((a|0)==1)break t;a=J[h+8>>2];J[699344]=0;a=aa(5451,d|0,a|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break s;J[699344]=0;J[c+24>>2]=0;aa(5145,c+24|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break t;J[699344]=0;a=c+72|0;ca(5399,a|0,b|0,J[c+24>>2]+36|0);d=J[699344];J[699344]=0;if((d|0)==1)break r;d=J[J[b>>2]+ +84>>2];J[699344]=0;ia(d|0,c+16|0,b|0,a|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break q;J[c+96>>2]=2392964;J[c+72>>2]=2392932;a=J[c+100>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)kc[J[J[a>>2]+4>>2]](a);J[c+100>>2]=0}J[c+88>>2]=2392964;a=J[c+92>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)kc[J[J[a>>2]+4>>2]](a);J[c+92>>2]=0}wc(j);J[699344]=0;J[c+72>>2]=0;a=J[J[c+16>>2]+148>>2];d=J[699344];J[699344]=0;if((d|0)==1)break g;if(!(a&128))break n;J[699344]=0;a=c+68|0;ia(5452,a|0,J[c+16>>2],0,1);d=J[699344]; +J[699344]=0;if((d|0)==1)break p;J[699344]=0;aa(5153,c+72|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break o;a=J[c+68>>2];J[c+68>>2]=0;if(!a)break m;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(d)break m;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;break m}a=Z()|0;break d}a=Z()|0;uc(d);break d}a=Z()|0;break e}a=Z()|0;Ed(c+72|0);break e}a=Z()|0;break f}a=Z()|0;zc(c+68|0);break f}u:{v:{d=J[c+16>>2];a=J[d+108>>2];if(a){J[699344]=0;J[a+ +4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break v;a=J[d+108>>2]}else a=0;J[699344]=0;J[c+68>>2]=a;aa(5153,c+72|0,c+68|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break u;a=J[c+68>>2];J[c+68>>2]=0;if(!a)break m;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)!=1){if(d)break m;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m}break a}a=Z()|0;break f}a=Z()|0;zc(c+68|0);break f}d=J[k>>2];a=J[c+72>>2];if(a){J[699344]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[699344]; +J[699344]=0;if((a|0)==1)break g;a=J[c+72>>2]}else a=0;J[699344]=0;J[c+64>>2]=a;ia(5453,d|0,c+24|0,c- -64|0,-1);a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[c+64>>2];J[c+64>>2]=0;w:{if(!a)break w;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(d)break w;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[c+72>>2];J[c+72>>2]=0;x:{if(!a)break x;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(d)break x; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[c+16>>2];J[c+16>>2]=0;y:{if(!a)break y;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(d)break y;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[c+24>>2];J[c+24>>2]=0;z:{if(!a)break z;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(d)break z;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}h=J[h>>2];if(h)continue; +break}}id(c+32|0);break h}a=Z()|0;zc(c- -64|0);break f}a=Z()|0;break c;case 2:break i;default:break k}J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[699344]=0;g=aa(5250,c+32|0,2413244)|0;a=J[699344];J[699344]=0;A:{B:{C:{D:{if((a|0)!=1){d=b+61|0;j=b+60|0;if(!J[b+84>>2])break D;i=c+80|0;E:{F:{G:{H:{I:{J:{K:{L:{while(1){a=J[b+112>>2];J[699344]=0;e=J[a+68>>2];a=J[a- -64>>2];f=J[699344];J[699344]=0;if((f|0)==1)break F;if(((e-a|0)+1|0)<=(h|0))break C;a=J[b+ +112>>2];J[699344]=0;e=c+72|0;ca(5418,e|0,a|0,h|0);a=J[699344];J[699344]=0;M:{N:{O:{P:{Q:{if((a|0)!=1){a=J[J[b>>2]+84>>2];J[699344]=0;ia(a|0,c+68|0,b|0,e|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break Q;J[c+96>>2]=2392964;J[c+72>>2]=2392932;a=J[c+100>>2];if(a){e=J[a+4>>2]-1|0;J[a+4>>2]=e;if(!e)kc[J[J[a>>2]+4>>2]](a);J[c+100>>2]=0}J[c+88>>2]=2392964;a=J[c+92>>2];if(a){e=J[a+4>>2]-1|0;J[a+4>>2]=e;if(!e)kc[J[J[a>>2]+4>>2]](a);J[c+92>>2]=0}wc(i);e=J[k>>2];R:{if(K[j|0])break R;J[699344]=0;a=J[J[c+68>>2]+ +148>>2];f=J[699344];J[699344]=0;if((f|0)==1)break P;S:{if(a&4096){H[d|0]=1;a=j;break S}J[699344]=0;f=J[J[c+68>>2]+148>>2];a=J[699344];J[699344]=0;if((a|0)==1)break P;a=d;if(!(f&2048))break R}H[a|0]=1}J[699344]=0;ia(5455,c+68|0,1,e|0,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break P;a=J[c+68>>2];J[c+68>>2]=0;if(!a)break N;J[699344]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break N;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break N}break a}a=ea(2423616)| +0;e=gc;break O}a=ea(2423616)|0;e=gc;Ed(c+72|0);break O}a=ea(2423616)|0;e=gc;zc(c+68|0)}if((sa(2423616)|0)!=(e|0))break E;a=oa(a|0)|0;J[699344]=0;e=pa(5383)|0;f=J[699344];J[699344]=0;if((f|0)==1)break M;J[699344]=0;a=J[a+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break L;J[699344]=0;a=aa(5149,c+24|0,(a?a:2389698)|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break L;f=J[J[e>>2]+20>>2];J[699344]=0;ga(f|0,e|0,b|0,a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break K;wc(a);J[699344]=0;a=aa(5149,c+16|0,h+2407663| +0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break J;J[699344]=0;e=pa(5383)|0;f=J[699344];J[699344]=0;if((f|0)==1)break I;f=J[J[e>>2]+20>>2];J[699344]=0;ga(f|0,e|0,b|0,a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break I;wc(a);J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break G}h=h+1|0;continue}break}b=ea(0)|0;break H}b=ea(0)|0;break H}b=ea(0)|0;wc(a);break H}b=ea(0)|0;break H}b=ea(0)|0;wc(a)}oa(b|0)|0;J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break j;a=Z()|0;J[699344]=0;ka(5053); +b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1)break E}break a}a=Z()|0;Md(g);break c}a=Z()|0}Md(g);break c}a=Z()|0;break c}e=c+80|0;T:{U:{while(1){a=J[b+112>>2];J[699344]=0;i=J[a+68>>2];a=J[a- -64>>2];f=J[699344];J[699344]=0;if((f|0)==1)break B;if(((i-a|0)+1|0)<=(h|0))break C;a=J[b+112>>2];J[699344]=0;i=c+72|0;ca(5418,i|0,a|0,h|0);a=J[699344];J[699344]=0;if((a|0)!=1){a=J[J[b>>2]+84>>2];J[699344]=0;ia(a|0,c+24|0,b|0,i|0,0);a=J[699344];J[699344]=0;if((a| +0)==1)break U;J[c+96>>2]=2392964;J[c+72>>2]=2392932;a=J[c+100>>2];if(a){i=J[a+4>>2]-1|0;J[a+4>>2]=i;if(!i)kc[J[J[a>>2]+4>>2]](a);J[c+100>>2]=0}J[c+88>>2]=2392964;a=J[c+92>>2];if(a){i=J[a+4>>2]-1|0;J[a+4>>2]=i;if(!i)kc[J[J[a>>2]+4>>2]](a);J[c+92>>2]=0}wc(e);i=J[k>>2];V:{if(K[j|0])break V;J[699344]=0;a=J[J[c+24>>2]+148>>2];f=J[699344];J[699344]=0;if((f|0)==1)break T;W:{if(a&4096){H[d|0]=1;a=j;break W}J[699344]=0;f=J[J[c+24>>2]+148>>2];a=J[699344];J[699344]=0;if((a|0)==1)break T;a=d;if(!(f&2048))break V}H[a| +0]=1}J[699344]=0;ia(5455,c+24|0,1,i|0,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break T;a=J[c+24>>2];J[c+24>>2]=0;X:{if(!a)break X;J[699344]=0;i=J[a+4>>2]-1|0;J[a+4>>2]=i;f=J[699344];J[699344]=0;if((f|0)==1)break A;if(i)break X;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break A}h=h+1|0;continue}break}a=Z()|0;Md(g);break c}a=Z()|0;Ed(c+72|0);Md(g);break c}a=Z()|0;zc(c+24|0);Md(g);break c}Md(g);break h}a=Z()|0;Md(g);break c}ea(0)|0;Bc()}B()}J[c+96>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+ +80>>2]=0;J[c+84>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[699344]=0;d=aa(5250,c+72|0,2413244)|0;a=J[699344];J[699344]=0;Y:{Z:{if((a|0)!=1){J[699344]=0;ia(5392,c+32|0,b|0,0,0);a=J[699344];J[699344]=0;if((a|0)==1)break Z;j=J[k>>2];_:{if(K[b+60|0])break _;J[699344]=0;h=J[J[c+32>>2]+148>>2];a=J[699344];J[699344]=0;if((a|0)==1)break Y;a=b+61|0;$:{if(h&4096){H[b+61|0]=1;a=b+60|0;break $}J[699344]=0;h=J[J[c+32>>2]+148>>2];g=J[699344];J[699344]=0;if((g|0)==1)break Y;if(!(h&2048))break _}H[a|0]=1}J[699344]=0;ia(5455, +c+32|0,1,j|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break Y;a=J[c+32>>2];J[c+32>>2]=0;aa:{if(!a)break aa;J[699344]=0;j=J[a+4>>2]-1|0;J[a+4>>2]=j;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(j)break aa;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}Md(d);break h}a=Z()|0;break c}a=Z()|0;Md(d);break c}a=Z()|0;zc(c+32|0);Md(d);break c}ba:{a=J[b+52>>2];if(!a)break ba;d=J[k>>2];J[699344]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;ca:{if((a|0)!=1){a=J[b+52>>2];J[699344]=0;J[c+ +12>>2]=a;da(5456,d|0,c+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break ca;a=J[c+12>>2];J[c+12>>2]=0;if(!a)break ba;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break ba;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break ba}break a}a=Z()|0;break c}a=Z()|0;zc(c+12|0);break c}fc=c+112|0;return}a=Z()|0}zc(c+72|0);zc(c+16|0)}zc(c+24|0)}id(c+32|0)}zc(k);ba(a|0);B()}b=Z()|0;Kc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function Dc(a){a=a|0;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;l=fc-16|0;fc=l;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(a>>>0<=244){g=J[699220];h=a>>>0<11?16:a+11&-8;c=h>>>3|0;b=g>>>c|0;if(b&3){c=c+((b^-1)&1)|0;a=c<<3;b=a+2796920|0;d=J[a+2796928>>2];a=J[d+8>>2];j:{if((b|0)==(a|0)){m=2796880,n=zEb(-2,c)&g,J[m>>2]=n;break j}J[a+12>>2]=b;J[b+8>>2]=a}a=d+8|0;b=c<<3;J[d+4>>2]=b|3;b=b+d|0;J[b+4>>2]=J[b+4>>2]|1;break a}k=J[699222];if(k>>>0>=h>>>0)break i;if(b){a=2<>2];a=J[e+8>>2];k:{if((b| +0)==(a|0)){g=zEb(-2,d)&g;J[699220]=g;break k}J[a+12>>2]=b;J[b+8>>2]=a}J[e+4>>2]=h|3;c=e+h|0;a=d<<3;d=a-h|0;J[c+4>>2]=d|1;J[a+e>>2]=d;if(k){b=(k&-8)+2796920|0;f=J[699225];a=1<<(k>>>3);l:{if(!(a&g)){J[699220]=a|g;a=b;break l}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a}a=e+8|0;J[699225]=c;J[699222]=d;break a}j=J[699221];if(!j)break i;c=J[(uEb(j)<<2)+2797184>>2];e=(J[c+4>>2]&-8)-h|0;b=c;while(1){m:{a=J[b+16>>2];if(!a){a=J[b+20>>2];if(!a)break m}b=(J[a+4>>2]&-8)-h|0;d=b>>>0>>0;e=d? +b:e;c=d?a:c;b=a;continue}break}i=J[c+24>>2];d=J[c+12>>2];if((d|0)!=(c|0)){a=J[c+8>>2];J[a+12>>2]=d;J[d+8>>2]=a;break b}b=c+20|0;a=J[b>>2];if(!a){a=J[c+16>>2];if(!a)break h;b=c+16|0}while(1){f=b;d=a;b=a+20|0;a=J[b>>2];if(a)continue;b=d+16|0;a=J[d+16>>2];if(a)continue;break}J[f>>2]=0;break b}h=-1;if(a>>>0>4294967231)break i;a=a+11|0;h=a&-8;j=J[699221];if(!j)break i;e=0-h|0;g=0;n:{if(h>>>0<256)break n;g=31;if(h>>>0>16777215)break n;a=S(a>>>8|0);g=((h>>>38-a&1)-(a<<1)|0)+62|0}b=J[(g<<2)+2797184>>2];o:{p:{q:{if(!b){a= +0;break q}a=0;c=h<<((g|0)!=31?25-(g>>>1|0)|0:0);while(1){r:{f=(J[b+4>>2]&-8)-h|0;if(f>>>0>=e>>>0)break r;d=b;e=f;if(e)break r;e=0;a=b;break p}f=J[b+20>>2];b=J[((c>>>29&4)+b|0)+16>>2];a=f?(f|0)==(b|0)?a:f:a;c=c<<1;if(b)continue;break}}if(!(a|d)){d=0;a=2<>2]}if(!a)break o}while(1){b=(J[a+4>>2]&-8)-h|0;c=b>>>0>>0;e=c?b:e;d=c?a:d;b=J[a+16>>2];if(b)a=b;else a=J[a+20>>2];if(a)continue;break}}if(!d|J[699222]-h>>>0<=e>>>0)break i;g=J[d+24>>2];c=J[d+ +12>>2];if((d|0)!=(c|0)){a=J[d+8>>2];J[a+12>>2]=c;J[c+8>>2]=a;break c}b=d+20|0;a=J[b>>2];if(!a){a=J[d+16>>2];if(!a)break g;b=d+16|0}while(1){f=b;c=a;b=a+20|0;a=J[b>>2];if(a)continue;b=c+16|0;a=J[c+16>>2];if(a)continue;break}J[f>>2]=0;break c}a=J[699222];if(a>>>0>=h>>>0){d=J[699225];b=a-h|0;s:{if(b>>>0>=16){c=d+h|0;J[c+4>>2]=b|1;J[a+d>>2]=b;J[d+4>>2]=h|3;break s}J[d+4>>2]=a|3;a=a+d|0;J[a+4>>2]=J[a+4>>2]|1;c=0;b=0}J[699222]=b;J[699225]=c;a=d+8|0;break a}i=J[699223];if(i>>>0>h>>>0){b=i-h|0;J[699223]= +b;c=J[699226];a=c+h|0;J[699226]=a;J[a+4>>2]=b|1;J[c+4>>2]=h|3;a=c+8|0;break a}a=0;e=h+47|0;if(J[699338])c=J[699340];else{J[699341]=-1;J[699342]=-1;J[699339]=4096;J[699340]=4096;J[699338]=l+12&-16^1431655768;J[699343]=0;J[699331]=0;c=4096}g=e+c|0;f=0-c|0;b=g&f;if(b>>>0<=h>>>0)break a;d=J[699330];if(d){c=J[699328];j=c+b|0;if(d>>>0>>0|c>>>0>=j>>>0)break a}t:{if(!(K[2797324]&4)){u:{v:{w:{x:{d=J[699226];if(d){a=2797328;while(1){c=J[a>>2];if(c>>>0<=d>>>0&d>>>0>2]>>>0)break x;a=J[a+8>>2];if(a)continue; +break}}c=Zs(0);if((c|0)==-1)break u;g=b;d=J[699339];a=d-1|0;if(a&c)g=(b-c|0)+(a+c&0-d)|0;if(g>>>0<=h>>>0)break u;d=J[699330];if(d){a=J[699328];f=a+g|0;if(d>>>0>>0|a>>>0>=f>>>0)break u}a=Zs(g);if((c|0)!=(a|0))break w;break t}g=f&g-i;c=Zs(g);if((c|0)==(J[a>>2]+J[a+4>>2]|0))break v;a=c}if((a|0)==-1)break u;if(h+48>>>0<=g>>>0){c=a;break t}c=J[699340];c=c+(e-g|0)&0-c;if((Zs(c)|0)==-1)break u;g=c+g|0;c=a;break t}if((c|0)!=-1)break t}J[699331]=J[699331]|4}c=Zs(b);a=Zs(0);if((c|0)==-1|(a|0)==-1|a>>>0<= +c>>>0)break d;g=a-c|0;if(g>>>0<=h+40>>>0)break d}a=J[699328]+g|0;J[699328]=a;if(a>>>0>M[699329])J[699329]=a;y:{e=J[699226];if(e){a=2797328;while(1){d=J[a>>2];b=J[a+4>>2];if((d+b|0)==(c|0))break y;a=J[a+8>>2];if(a)continue;break}break f}a=J[699224];if(!(a>>>0<=c>>>0?a:0))J[699224]=c;a=0;J[699333]=g;J[699332]=c;J[699228]=-1;J[699229]=J[699338];J[699335]=0;while(1){d=a<<3;b=d+2796920|0;J[d+2796928>>2]=b;J[d+2796932>>2]=b;a=a+1|0;if((a|0)!=32)continue;break}d=g-40|0;a=-8-c&7;b=d-a|0;J[699223]=b;a=a+c| +0;J[699226]=a;J[a+4>>2]=b|1;J[(c+d|0)+4>>2]=40;J[699227]=J[699342];break e}if(J[a+12>>2]&8|(c>>>0<=e>>>0|d>>>0>e>>>0))break f;J[a+4>>2]=b+g;a=-8-e&7;c=a+e|0;J[699226]=c;b=J[699223]+g|0;a=b-a|0;J[699223]=a;J[c+4>>2]=a|1;J[(b+e|0)+4>>2]=40;J[699227]=J[699342];break e}d=0;break b}c=0;break c}if(M[699224]>c>>>0)J[699224]=c;b=c+g|0;a=2797328;z:{A:{B:{while(1){if((b|0)!=J[a>>2]){a=J[a+8>>2];if(a)continue;break B}break}if(!(K[a+12|0]&8))break A}a=2797328;while(1){C:{b=J[a>>2];if(b>>>0<=e>>>0){f=b+J[a+4>> +2]|0;if(f>>>0>e>>>0)break C}a=J[a+8>>2];continue}break}d=g-40|0;a=-8-c&7;b=d-a|0;J[699223]=b;a=a+c|0;J[699226]=a;J[a+4>>2]=b|1;J[(c+d|0)+4>>2]=40;J[699227]=J[699342];a=(f+(39-f&7)|0)-47|0;d=a>>>0>>0?e:a;J[d+4>>2]=27;a=J[699335];J[d+16>>2]=J[699334];J[d+20>>2]=a;a=J[699333];J[d+8>>2]=J[699332];J[d+12>>2]=a;J[699334]=d+8;J[699333]=g;J[699332]=c;J[699335]=0;a=d+24|0;while(1){J[a+4>>2]=7;b=a+8|0;a=a+4|0;if(b>>>0>>0)continue;break}if((d|0)==(e|0))break e;J[d+4>>2]=J[d+4>>2]&-2;f=d-e|0;J[e+4>> +2]=f|1;J[d>>2]=f;if(f>>>0<=255){b=(f&-8)+2796920|0;c=J[699220];a=1<<(f>>>3);D:{if(!(c&a)){J[699220]=a|c;a=b;break D}a=J[b+8>>2]}J[b+8>>2]=e;J[a+12>>2]=e;J[e+12>>2]=b;J[e+8>>2]=a;break e}a=31;if(f>>>0<=16777215){a=S(f>>>8|0);a=((f>>>38-a&1)-(a<<1)|0)+62|0}J[e+28>>2]=a;J[e+16>>2]=0;J[e+20>>2]=0;b=(a<<2)+2797184|0;d=J[699221];c=1<>2]=e;break E}a=f<<((a|0)!=31?25-(a>>>1|0)|0:0);d=J[b>>2];while(1){b=d;if((f|0)==(J[b+4>>2]&-8))break z;c=a>>>29|0;a=a<<1;c=(c&4)+b|0;d=J[c+ +16>>2];if(d)continue;break}J[c+16>>2]=e}J[e+24>>2]=b;J[e+12>>2]=e;J[e+8>>2]=e;break e}J[a>>2]=c;J[a+4>>2]=J[a+4>>2]+g;j=(-8-c&7)+c|0;J[j+4>>2]=h|3;e=b+(-8-b&7)|0;i=h+j|0;g=e-i|0;F:{if(J[699226]==(e|0)){J[699226]=i;a=J[699223]+g|0;J[699223]=a;J[i+4>>2]=a|1;break F}if(J[699225]==(e|0)){J[699225]=i;a=J[699222]+g|0;J[699222]=a;J[i+4>>2]=a|1;J[a+i>>2]=a;break F}c=J[e+4>>2];if((c&3)==1){f=c&-8;G:{if(c>>>0<=255){b=J[e+12>>2];a=J[e+8>>2];if((b|0)==(a|0)){m=2796880,n=J[699220]&zEb(-2,c>>>3|0),J[m>>2]=n;break G}J[a+ +12>>2]=b;J[b+8>>2]=a;break G}h=J[e+24>>2];a=J[e+12>>2];H:{if((e|0)!=(a|0)){b=J[e+8>>2];J[b+12>>2]=a;J[a+8>>2]=b;break H}I:{b=e+20|0;c=J[b>>2];if(!c){c=J[e+16>>2];if(!c)break I;b=e+16|0}while(1){d=b;a=c;b=a+20|0;c=J[b>>2];if(c)continue;b=a+16|0;c=J[a+16>>2];if(c)continue;break}J[d>>2]=0;break H}a=0}if(!h)break G;c=J[e+28>>2];b=(c<<2)+2797184|0;J:{if(J[b>>2]==(e|0)){J[b>>2]=a;if(a)break J;m=2796884,n=J[699221]&zEb(-2,c),J[m>>2]=n;break G}J[h+(J[h+16>>2]==(e|0)?16:20)>>2]=a;if(!a)break G}J[a+24>>2]= +h;b=J[e+16>>2];if(b){J[a+16>>2]=b;J[b+24>>2]=a}b=J[e+20>>2];if(!b)break G;J[a+20>>2]=b;J[b+24>>2]=a}g=f+g|0;e=e+f|0;c=J[e+4>>2]}J[e+4>>2]=c&-2;J[i+4>>2]=g|1;J[g+i>>2]=g;if(g>>>0<=255){b=(g&-8)+2796920|0;c=J[699220];a=1<<(g>>>3);K:{if(!(c&a)){J[699220]=a|c;a=b;break K}a=J[b+8>>2]}J[b+8>>2]=i;J[a+12>>2]=i;J[i+12>>2]=b;J[i+8>>2]=a;break F}c=31;if(g>>>0<=16777215){a=S(g>>>8|0);c=((g>>>38-a&1)-(a<<1)|0)+62|0}J[i+28>>2]=c;J[i+16>>2]=0;J[i+20>>2]=0;b=(c<<2)+2797184|0;L:{d=J[699221];a=1<>2]=i;break M}c=g<<((c|0)!=31?25-(c>>>1|0)|0:0);a=J[b>>2];while(1){b=a;if((J[a+4>>2]&-8)==(g|0))break L;d=c>>>29|0;c=c<<1;d=(d&4)+a|0;a=J[d+16>>2];if(a)continue;break}J[d+16>>2]=i}J[i+24>>2]=b;J[i+12>>2]=i;J[i+8>>2]=i;break F}a=J[b+8>>2];J[a+12>>2]=i;J[b+8>>2]=i;J[i+24>>2]=0;J[i+12>>2]=b;J[i+8>>2]=a}a=j+8|0;break a}a=J[b+8>>2];J[a+12>>2]=e;J[b+8>>2]=e;J[e+24>>2]=0;J[e+12>>2]=b;J[e+8>>2]=a}a=J[699223];if(a>>>0<=h>>>0)break d;b=a-h|0;J[699223]=b;c=J[699226];a=c+h|0;J[699226]=a;J[a+4>>2]=b|1; +J[c+4>>2]=h|3;a=c+8|0;break a}J[698583]=48;a=0;break a}N:{if(!g)break N;b=J[d+28>>2];a=(b<<2)+2797184|0;O:{if(J[a>>2]==(d|0)){J[a>>2]=c;if(c)break O;j=zEb(-2,b)&j;J[699221]=j;break N}J[g+(J[g+16>>2]==(d|0)?16:20)>>2]=c;if(!c)break N}J[c+24>>2]=g;a=J[d+16>>2];if(a){J[c+16>>2]=a;J[a+24>>2]=c}a=J[d+20>>2];if(!a)break N;J[c+20>>2]=a;J[a+24>>2]=c}P:{if(e>>>0<=15){a=e+h|0;J[d+4>>2]=a|3;a=a+d|0;J[a+4>>2]=J[a+4>>2]|1;break P}J[d+4>>2]=h|3;f=d+h|0;J[f+4>>2]=e|1;J[e+f>>2]=e;if(e>>>0<=255){b=(e&-8)+2796920| +0;c=J[699220];a=1<<(e>>>3);Q:{if(!(c&a)){J[699220]=a|c;a=b;break Q}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a;break P}a=31;if(e>>>0<=16777215){a=S(e>>>8|0);a=((e>>>38-a&1)-(a<<1)|0)+62|0}J[f+28>>2]=a;J[f+16>>2]=0;J[f+20>>2]=0;b=(a<<2)+2797184|0;R:{c=1<>2]=f;break S}a=e<<((a|0)!=31?25-(a>>>1|0)|0:0);h=J[b>>2];while(1){b=h;if((J[b+4>>2]&-8)==(e|0))break R;c=a>>>29|0;a=a<<1;c=(c&4)+b|0;h=J[c+16>>2];if(h)continue;break}J[c+16>>2]=f}J[f+24>>2]=b;J[f+ +12>>2]=f;J[f+8>>2]=f;break P}a=J[b+8>>2];J[a+12>>2]=f;J[b+8>>2]=f;J[f+24>>2]=0;J[f+12>>2]=b;J[f+8>>2]=a}a=d+8|0;break a}T:{if(!i)break T;b=J[c+28>>2];a=(b<<2)+2797184|0;U:{if(J[a>>2]==(c|0)){J[a>>2]=d;if(d)break U;m=2796884,n=zEb(-2,b)&j,J[m>>2]=n;break T}J[i+(J[i+16>>2]==(c|0)?16:20)>>2]=d;if(!d)break T}J[d+24>>2]=i;a=J[c+16>>2];if(a){J[d+16>>2]=a;J[a+24>>2]=d}a=J[c+20>>2];if(!a)break T;J[d+20>>2]=a;J[a+24>>2]=d}V:{if(e>>>0<=15){a=e+h|0;J[c+4>>2]=a|3;a=a+c|0;J[a+4>>2]=J[a+4>>2]|1;break V}J[c+4>> +2]=h|3;d=c+h|0;J[d+4>>2]=e|1;J[d+e>>2]=e;if(k){b=(k&-8)+2796920|0;f=J[699225];a=1<<(k>>>3);W:{if(!(a&g)){J[699220]=a|g;a=b;break W}a=J[b+8>>2]}J[b+8>>2]=f;J[a+12>>2]=f;J[f+12>>2]=b;J[f+8>>2]=a}J[699225]=d;J[699222]=e}a=c+8|0}fc=l+16|0;return a|0}function ljb(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;h=fc-256|0;fc=h;a:{if(!b){e=36;break a}i=J[a+4>>2];if(!i){e=35;break a}if(!(J[J[i+128>>2]+52>>2]|M[i+16>>2]>c>>>0)){e=6;break a}if(d&2){d= +K[i+9|0]&32?d&-3:d;d=d>>>14&2|d}if(d&1025)d=(K[i+9|0]&32?9:11)|d;o=d&2;J[b+44>>2]=(o?12:48)+b;b:{if(d&8)break b;e=J[b+116>>2];if(K[i+9|0]&128|(L[i+6>>1]&32767|(e|0)==-1))break b;f=J[b+20>>2];j=J[b+16>>2];c:{k=h+12|0;e=kc[J[J[i+540>>2]+72>>2]](i,e,c,d,J[i+104>>2],a+76|0,k)|0;if(e){i=J[a+4>>2];g=J[i+8>>2]&1;if((e&255)!=157)break c;if(g)break b;I[h+12>>1]=0;I[h+240>>1]=0;I[h+224>>1]=0;I[h+10>>1]=0;if(!J[i+752>>2])break a;kc[J[J[i+540>>2]+140>>2]](i,0,c,k,h+224|0);b=h+240|0;d=h+10|0;d:{if(K[i+292|0]){kc[J[J[i+ +540>>2]+140>>2]](i,1,c,b,d);break d}if(L[i+372>>1]!=65535){I[b>>1]=L[i+442>>1];c=I[i+442>>1]-I[i+444>>1]|0;b=c>>31;I[d>>1]=(b^c)-b;break d}I[b>>1]=L[i+220>>1];c=I[i+220>>1]-I[i+222>>1]|0;b=c>>31;I[d>>1]=(b^c)-b}J[a+108>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;b=Wc(I[h+12>>1],j);J[a+36>>2]=0;J[a+32>>2]=b;b=Wc(L[h+224>>1],j);J[a+44>>2]=0;J[a+40>>2]=b;t=a,u=Wc(I[h+240>>1],f),J[t+48>>2]=u;b=Wc(L[h+10>>1],f);J[a+100>>2]=0;J[a+104>>2]=0;H[a+94|0]=1;J[a+72>>2]=1651078259;J[a+52>>2]=b;e=0;break a}e=0;J[a+108>>2]= +0;J[a+24>>2]=L[h+14>>1]<<6;J[a+28>>2]=L[h+12>>1]<<6;i=I[h+16>>1];J[a+32>>2]=i<<6;g=I[h+18>>1];J[a+36>>2]=g<<6;J[a+40>>2]=L[h+20>>1]<<6;k=I[h+22>>1];J[a+44>>2]=k<<6;m=I[h+24>>1];J[a+48>>2]=m<<6;l=L[h+26>>1];n=g;g=d&16;J[a+104>>2]=g?m:n;J[a+100>>2]=g?k:i;J[a+72>>2]=1651078259;J[a+52>>2]=l<<6;i=J[a+4>>2];if(!(H[i+8|0]&1))break a;g=J[i+104>>2];Ac(h+24|0,0,192);J[h+216>>2]=0;J[h+220>>2]=0;J[h+36>>2]=g;J[h+20>>2]=a;J[h+16>>2]=b;J[h+12>>2]=i;J[h+28>>2]=d;VM(h+12|0,c,0,1);L7(h+216|0,J[J[h+12>>2]+100>>2]); +b=J[h+72>>2];J[a+56>>2]=b;J[a+60>>2]=J[h+188>>2];if(!(J[a+40>>2]|!b))t=a,u=Wc(b,j),J[t+40>>2]=u;if(J[a+52>>2])break a;b=J[a+60>>2];if(!b)break a;t=a,u=Wc(b,f),J[t+52>>2]=u;break a}if(!g)break a}s=d&1;if(!(s|K[b+112|0])){e=36;break a}e=6;if(d&16384)break a;r=J[i+104>>2];p=J[i+96>>2];Ac(h+12|0,0,212);if(!o){m=(d&128)>>>7|0;e=J[b+304>>2];e:{f:{if((e|0)>=0){f=J[b+308>>2];if((f|0)<0)break f;if(e)break a;e=f;if(!f)break e;break a}j=J[b>>2];e=J[j+100>>2];f=J[b+132>>2];if(f)kc[J[e+8>>2]](e,f);J[b+132>>2]= +0;f=J[b+144>>2];if(f)kc[J[e+8>>2]](e,f);J[b+144>>2]=0;f=J[b+252>>2];if(f)kc[J[e+8>>2]](e,f);J[b+252>>2]=0;f=J[b+260>>2];if(f)kc[J[e+8>>2]](e,f);J[b+260>>2]=0;f=J[b+300>>2];if(f){J[f+444>>2]=0;g=J[f+8>>2];k=J[f+24>>2];if(k)kc[J[g+8>>2]](g,k);J[f+20>>2]=0;J[f+24>>2]=0;k=J[f+440>>2];if(k)kc[J[g+8>>2]](g,k);J[f+440>>2]=0;J[f+432>>2]=0;J[f+436>>2]=0;k=J[f+396>>2];if(k)kc[J[g+8>>2]](g,k);J[f+392>>2]=0;J[f+396>>2]=0;J[f>>2]=0;J[f+4>>2]=0;if(f)kc[J[g+8>>2]](g,f)}f=J[b+264>>2];if(f){g=J[b+292>>2];if(g)kc[J[f+ +8>>2]](f,g);J[b+292>>2]=0;g=J[b+288>>2];if(g)kc[J[f+8>>2]](f,g);J[b+288>>2]=0;g=J[b+280>>2];if(g)kc[J[f+8>>2]](f,g);J[b+280>>2]=0;g=J[b+276>>2];if(g)kc[J[f+8>>2]](f,g);J[b+276>>2]=0;g=J[b+284>>2];if(g)kc[J[f+8>>2]](f,g);J[b+284>>2]=0;J[b+272>>2]=0;J[b+264>>2]=0;J[b+268>>2]=0}J[b+304>>2]=-1;J[b+308>>2]=-1;k=fc-16|0;fc=k;f=J[j+96>>2];g:{h:{if(!f)break h;g=J[f+8>>2];f=he(g,636,k+8|0);if(J[k+8>>2])break h;J[f+436>>2]=32;J[f+8>>2]=g;t=f,u=_c(g,16,0,32,0,k+12|0),J[t+440>>2]=u;if(!J[k+12>>2]){J[f+444>>2]= +0;J[f+392>>2]=0;J[f+396>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f>>2]=0;J[f+4>>2]=0;break g}J[f+444>>2]=0;g=J[f+8>>2];l=J[f+24>>2];if(l)kc[J[g+8>>2]](g,l);J[f+20>>2]=0;J[f+24>>2]=0;l=J[f+440>>2];if(l)kc[J[g+8>>2]](g,l);J[f+440>>2]=0;J[f+432>>2]=0;J[f+436>>2]=0;l=J[f+396>>2];if(l)kc[J[g+8>>2]](g,l);J[f+392>>2]=0;J[f+396>>2]=0;J[f>>2]=0;J[f+4>>2]=0;if(f)kc[J[g+8>>2]](g,f);if(!J[k+12>>2])break g}f=0}fc=k+16|0;J[b+300>>2]=f;f=L[j+280>>1];J[b+128>>2]=f;g=L[j+282>>1];J[b+148>>2]=0;J[b+152>>2]=0;J[b+136>>2]=0; +J[b+124>>2]=0;J[b+140>>2]=g;J[b+248>>2]=J[j+700>>2];g=L[j+278>>1];H[b+113|0]=0;H[b+114|0]=0;I[b+256>>1]=g;J[b+96>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;g=f;f=h+240|0;t=b,u=_c(e,24,0,g,0,f),J[t+132>>2]=u;i:{if(J[h+240>>2])break i;t=b,u=_c(e,24,0,J[b+140>>2],0,f),J[t+144>>2]=u;if(J[h+240>>2])break i;t=b,u=_c(e,4,0,J[b+248>>2],0,f),J[t+252>>2]=u;if(J[h+240>>2])break i;t=b,u=_c(e,4,0,L[b+256>>1],0,f),J[t+260>>2]=u;if(J[h+240>>2])break i;q=L[j+276>>1]+4|0;k=q&65535;f=fc-16|0;fc=f;J[b+268>>2]= +0;J[b+272>>2]=0;J[b+264>>2]=e;J[b+292>>2]=0;J[b+296>>2]=0;J[b+284>>2]=0;J[b+288>>2]=0;J[b+276>>2]=0;J[b+280>>2]=0;l=f+12|0;t=b,u=_c(e,8,0,k,0,l),J[t+276>>2]=u;j:{k:{g=J[f+12>>2];l:{if(g)break l;t=b,u=_c(e,8,0,k,0,l),J[t+280>>2]=u;g=J[f+12>>2];if(g)break l;t=b,u=_c(e,8,0,k,0,l),J[t+284>>2]=u;g=J[f+12>>2];if(g)break l;t=b,u=_c(e,1,0,k,0,l),J[t+288>>2]=u;g=J[f+12>>2];if(g)break l;t=b,u=_c(e,2,0,0,0,l),J[t+292>>2]=u;g=J[f+12>>2];if(!g)break k}e=J[b+264>>2];if(!e)break j;g=J[b+292>>2];if(g)kc[J[e+8>>2]](e, +g);J[b+292>>2]=0;g=J[b+288>>2];if(g)kc[J[e+8>>2]](e,g);J[b+288>>2]=0;g=J[b+280>>2];if(g)kc[J[e+8>>2]](e,g);J[b+280>>2]=0;g=J[b+276>>2];if(g)kc[J[e+8>>2]](e,g);J[b+276>>2]=0;g=J[b+284>>2];if(g)kc[J[e+8>>2]](e,g);J[b+264>>2]=0;J[b+268>>2]=0;J[b+284>>2]=0;J[b+272>>2]=0;g=J[f+12>>2];break j}I[b+270>>1]=0;I[b+268>>1]=k;g=0}fc=f+16|0;J[h+240>>2]=g;if(g)break i;I[b+272>>1]=q;xc(b+180|0,326788,68);e=J[J[J[j+96>>2]+4>>2]+164>>2];J[j+708>>2]=e?e:1723;e=J[b+300>>2];j=J[b>>2];f=UM(e,j,b);m:{if(f)break m;J[e+ +484>>2]=0;J[e+488>>2]=0;J[e+480>>2]=64;J[e+16>>2]=0;J[e+432>>2]=0;J[e+568>>2]=16384;H[e+565|0]=m;J[e+220>>2]=0;J[e+224>>2]=0;H[e+492|0]=0;I[e+256>>1]=0;J[e+228>>2]=0;J[e+260>>2]=65536;J[e+264>>2]=0;g=J[j+688>>2];f=J[j+684>>2];J[e+456>>2]=0;J[e+460>>2]=0;J[e+452>>2]=f;J[e+448>>2]=g;J[e+464>>2]=0;J[e+468>>2]=0;n:{if(!f){J[b+304>>2]=0;break n}J[e+368>>2]=f;J[e+360>>2]=g;J[e+364>>2]=0;J[e+356>>2]=1;f=kc[J[j+708>>2]](e)|0;J[b+304>>2]=f;if(f)break m}J[b+124>>2]=J[e+400>>2];J[b+136>>2]=J[e+412>>2];J[b+148>> +2]=J[e+424>>2];J[b+152>>2]=J[e+428>>2];f=J[e+452>>2];J[b+156>>2]=J[e+448>>2];J[b+160>>2]=f;f=J[e+460>>2];J[b+164>>2]=J[e+456>>2];J[b+168>>2]=f;f=J[e+468>>2];J[b+172>>2]=J[e+464>>2];J[b+176>>2]=f;f=0}e=f;break f}r6(b);e=J[h+240>>2]}if(e)break a;e=J[b+308>>2];if((e|0)<0){f=L[b+272>>1];o:{if(!f)break o;j=J[b+280>>2];g=J[b+276>>2];e=0;if((f|0)!=1){q=f&65534;k=0;while(1){l=e<<3;n=l+g|0;J[n>>2]=0;J[n+4>>2]=0;n=j+l|0;J[n>>2]=0;J[n+4>>2]=0;l=l|8;n=l+g|0;J[n>>2]=0;J[n+4>>2]=0;l=j+l|0;J[l>>2]=0;J[l+4>>2]=0; +e=e+2|0;k=k+2|0;if((q|0)!=(k|0))continue;break}}if(!(f&1))break o;e=e<<3;f=e+g|0;J[f>>2]=0;J[f+4>>2]=0;e=e+j|0;J[e>>2]=0;J[e+4>>2]=0}e=L[b+256>>1];if(e)Ac(J[b+260>>2],0,e<<2);xc(b+180|0,326788,68);e=q6(b,m)}if(e)break a}f=J[b+300>>2];if(!f){e=153;break a}e=d&983040;p:{if(J[p+64>>2]!=40){j=(e|0)!=131072;g=0;k=0;e=0;break p}k=(e|0)!=131072;g=k&!(d&458752);j=0;e=d>>>18&1}H[f+614|0]=e;e=UM(f,i,b);if(e)break a;q:{r:{s:{t:{if(J[p+64>>2]==40){e=K[f+613|0]==(k|0);if(!e)H[f+613|0]=k;if(K[f+618|0]!=(g|0))break t; +if(K[f+612|0]==(j|0))break s;H[f+612|0]=j;break r}if(K[f+612|0]==(j|0))break q;H[f+612|0]=j;break r}H[f+618|0]=g;if(K[f+612|0]==(j|0))break r;H[f+612|0]=j;break r}if(e)break q}e=q6(b,m);if(e)break a}e=K[f+340|0];j=e<<1&2;if(e&2)xc(f+288|0,326788,68);H[f+565|0]=m;J[h+168>>2]=f;J[h+172>>2]=J[f+396>>2];d=d|j}e=J[J[a+156>>2]>>2];jp(e);J[h+28>>2]=d;J[h+24>>2]=e;J[h+216>>2]=0;J[h+220>>2]=0;J[h+36>>2]=r;J[h+20>>2]=a;J[h+16>>2]=b;J[h+12>>2]=i;J[a+72>>2]=1869968492;J[a+124>>2]=0;J[a+128>>2]=0;e=VM(h+12|0, +c,0,0);u:{if(e)break u;d=J[h+24>>2];v:{if(J[a+72>>2]==1668246896){J[a+128>>2]=J[d+48>>2];J[a+132>>2]=J[d+52>>2];break v}i=J[d+24>>2];e=a+108|0;J[e>>2]=J[d+20>>2];J[e+4>>2]=i;J[e+16>>2]=J[d+36>>2];i=J[d+32>>2];J[e+8>>2]=J[d+28>>2];J[e+12>>2]=i;J[a+124>>2]=J[a+124>>2]&-513;d=J[h+80>>2];if(!d)break v;Xh(e,0-d|0,0)}w:{if(o)break w;d=8;e=J[h+168>>2];x:{if(!K[e+341|0])break x;d=32;y:switch(J[e+344>>2]){case 4:d=48;break x;case 5:d=16;break x;case 1:break w;case 0:break x;default:break y}d=8}J[a+124>>2]= +J[a+124>>2]|d}e=J[h+12>>2];f=65536;j=J[h+16>>2];d=J[h+20>>2];f=H[h+28|0]&1?f:J[J[j+44>>2]+8>>2];i=J[e+96>>2];z:{if(J[d+72>>2]!=1668246896){Hq(d+108|0,h+240|0);break z}g=J[h+60>>2];J[h+248>>2]=J[h+56>>2];J[h+252>>2]=g;g=J[h+52>>2];J[h+240>>2]=J[h+48>>2];J[h+244>>2]=g}J[d+56>>2]=J[h+72>>2];l=J[h+240>>2];J[d+32>>2]=l;g=J[h+252>>2];J[d+36>>2]=g;J[d+40>>2]=J[h+88>>2]-J[h+80>>2];A:{B:{if(J[i+64>>2]!=40)break B;i=J[h+168>>2];if(!i)break B;if(K[i+615|0])break A}if(J[e+488>>2]|J[h+28>>2]&2097154)break A;o= +J[e+776>>2];if(!o)break A;i=0;k=J[e+768>>2];p=k?k+8|0:0;m=J[e+780>>2];r=J[e+784>>2];j=L[J[j+44>>2]>>1];while(1){if((j|0)==K[i+r|0]){j=c+2|0;if(!k|j>>>0>=m>>>0)break A;J[d+40>>2]=K[j+(p+P(i,m)|0)|0]<<6;break A}i=i+1|0;if((o|0)!=(i|0))continue;break}}J[d+24>>2]=J[h+248>>2]-l;i=g-J[h+244>>2]|0;J[d+28>>2]=i;C:{if(!(!K[e+292|0]|!L[e+330>>1])){j=Cd(J[h+196>>2]-g|0,f)<<16>>16;i=0;g=J[h+196>>2];k=J[h+204>>2];if((g|0)<=(k|0))break C;i=Cd(g-k|0,f)&65535;break C}j=Cd(i,f);i=L[e+372>>1]==65535;i=I[e+(i?220:442)>> +1]-I[e+(i?222:444)>>1]|0;j=(i-(j<<16>>16)|0)/2|0}e=J[J[e+128>>2]+52>>2];D:{if(!e)break D;g=J[J[e>>2]+8>>2];if(!g)break D;J[h+232>>2]=i;J[h+228>>2]=j;J[h+224>>2]=0;e=kc[g|0](J[e+4>>2],c,1,h+224|0)|0;if(e)break u;i=J[h+232>>2];j=J[h+228>>2]}J[d+60>>2]=i;if(!(H[h+28|0]&1)){j=Wc(j,f);i=Wc(i,f)}J[d+52>>2]=i;J[d+48>>2]=j;J[d+44>>2]=J[d+32>>2]+(J[d+40>>2]/-2|0);e=0}c=h+216|0;if(!(L[J[b+44>>2]+2>>1]>23|s))J[a+124>>2]=J[a+124>>2]|256;L7(c,J[J[h+12>>2]+100>>2])}fc=h+256|0;return e|0}function P6(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;l=fc-16|0;fc=l;c=J[a+1008>>2];d=0;a:{if((c|0)<0)break a;b:{c:{while(1){f=J[a+4>>2];c=(c<<2)+a|0;J[a+72>>2]=P(f,I[c+946>>1]);c=I[c+944>>1];J[a+40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=0;d=J[a+24>>2];J[a+36>>2]=d;I[a+78>>1]=0;J[a+80>>2]=d;e=J[a+28>>2]-32|0;J[a+32>>2]=e;J[a+68>>2]=P(c,f);J[d+8>>2]=d;I[a+76>>1]=0;d:{e:{f:{g:{h:{i:{if(I[a+120>>1]<=0)break i;c=J[a+8>>2];k=J[a+132>>2];h=0;o=0;while(1){J[a+88>>2]=0;J[a+92>>2]=0;f=J[a+12>>2];g=J[a+124>> +2];h=h&65535;d=g+(h<<3)|0;e=P(f,J[d+4>>2])-c|0;p=P(f,J[d>>2])-c|0;r=o<<1;j=L[r+k>>1];i=g+(j<<3)|0;k=P(f,J[i+4>>2])-c|0;f=P(f,J[i>>2])-c|0;j:{if(!b){m=p;p=e;g=f;f=k;break j}m=e;g=k}e=J[a+128>>2];h=e+h|0;c=K[h|0];if(c&4){H[a+164|0]=c>>>5;c=K[h|0]}k:switch(c&3){case 0:l:{if((K[e+j|0]&3)==1){i=i-8|0;break l}g=(g+m|0)/2|0;f=(f+p|0)/2|0}p=f;m=g;h=h-1|0;d=d-8|0;break;case 2:break b;default:break k}J[a+64>>2]=p;J[a+60>>2]=m;m:{if(d>>>0>>0)while(1){f=h+1|0;c=d+8|0;n:{o:{p:{q:switch(K[h+1|0]&3){case 1:g= +J[d+8>>2];e=d;h=f;d=c;c=J[a+12>>2];f=P(c,J[e+12>>2]);e=J[a+8>>2];f=f-e|0;c=P(c,g)-e|0;if(O6(a,b?f:c,b?c:f))break g;break n;case 0:e=J[a+12>>2];g=J[a+8>>2];k=P(e,J[d+8>>2])-g|0;e=P(e,J[d+12>>2])-g|0;if(b)break p;while(1){if(c>>>0>=i>>>0){c=k;k=e;break o}h=f+1|0;d=c+8|0;j=J[a+12>>2];n=J[a+8>>2];g=P(j,J[c+8>>2])-n|0;j=P(j,J[c+12>>2])-n|0;c=K[f+1|0]&3;if(c){if((c|0)!=1)break b;if(!Zx(a,k,e,g,j))break n;break g}n=Zx(a,k,e,(g+k|0)/2|0,(e+j|0)/2|0);f=h;c=d;k=g;e=j;if(!n)continue;break}break g;default:break q}if((K[h+ +2|0]&3)!=2|d+16>>>0>i>>>0)break b;n=J[a+12>>2];q=J[a+8>>2];k=P(n,J[d+16>>2])-q|0;e=P(n,J[d+8>>2])-q|0;c=P(n,J[d+20>>2])-q|0;f=P(n,J[d+12>>2])-q|0;r:{if(!b){g=e;e=f;j=k;k=c;break r}g=f;j=c}c=d+24|0;if(c>>>0<=i>>>0){f=e;e=P(n,J[d+28>>2])-q|0;d=P(n,J[d+24>>2])-q|0;if(N6(a,g,f,j,k,b?e:d,b?d:e))break g;h=h+3|0;d=c;break n}if(N6(a,g,e,j,k,m,p))break g;break m}while(1){if(c>>>0>=i>>>0){c=e;break o}h=f+1|0;d=c+8|0;j=J[a+12>>2];n=J[a+8>>2];g=P(j,J[c+8>>2])-n|0;j=P(j,J[c+12>>2])-n|0;c=K[f+1|0]&3;if(!c){n=Zx(a, +e,k,(e+j|0)/2|0,(g+k|0)/2|0);f=h;c=d;e=j;k=g;if(n)break g;continue}break}if((c|0)!=1)break b;if(!Zx(a,e,k,j,g))break n;break g}if(!Zx(a,c,k,m,p))break m;break g}if(d>>>0>>0)continue;break}if(O6(a,m,p))break g}k=J[a+132>>2];h=L[r+k>>1];j=J[a+4>>2];p=j-1|0;d=J[a+64>>2];m=p&d;s:{if(m|(d|0)>2]|(d|0)>J[a+72>>2])break s;c=J[a+88>>2];if(!c|(L[J[a+80>>2]+12>>1]^L[c+12>>1])&8)break s;J[a+36>>2]=J[a+36>>2]-4}t:{u:{v:{f=J[a+36>>2];g=J[a+80>>2];c=J[g+8>>2];i=(f|0)==(c|0);if(K[g+12|0]&8?i:1){e=f-c>> +2;if((e|0)>=0)break v;break c}e=f-c>>2;if((e|0)<0)break c;c=J[a+8>>2];d=(m|0)>=(c|0);break u}c=J[a+8>>2];if(i){d=f;break t}d=((d+p&0-j)-d|0)>=(c|0)}J[g+16>>2]=e;if(d){d=L[g+12>>1];I[g+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+8>>2]=d;J[f+16>>2]=0;J[g+28>>2]=f;I[a+76>>1]=L[a+76>>1]+1}e=J[a+32>>2];if(e>>>0<=d>>>0)break f;H[a+79|0]=0;f=J[a+88>>2];if(f)J[g+28>>2]=f;h=h+1|0;o=o+1|0;if((o|0)>1])continue;break}p=L[a+76>>1];if(p>>>0<2)break i;c=J[a+84>>2];if(!c)break i;g=J[a+44>> +2];n=J[a+28>>2];while(1){w:{if((p&65535)>>>0<=1){h=J[c+16>>2];f=0;break w}h=J[c+16>>2];f=J[c+8>>2]+(h<<2)|0}J[c+4>>2]=f;d=J[c+20>>2];x:{if(K[c+12|0]&8){e=d;d=(d+h|0)-1|0;break x}e=(d-h|0)+1|0;J[c+20>>2]=e;J[c+8>>2]=(J[c+8>>2]+(h<<2)|0)-4}k=d;d=0;o=0-g|0;m=n-(g<<2)|0;c=g;y:{z:{while(1){h=d;j=c;if((c|0)<=0){d=e;break z}d=h+1|0;c=j-1|0;i=J[m+(c<<2)>>2];if((i|0)>(e|0))continue;break}if((e|0)<=(i|0)){j=g;break y}i=0;h=g-h&3;if(h)while(1){o=m+(c<<2)|0;d=J[o>>2];J[o>>2]=e;c=c-1|0;e=d;i=i+1|0;if((h|0)!=(i| +0))continue;break}if(j>>>0<4)break z;h=m-8|0;j=m-4|0;d=e;while(1){e=c<<2;i=e+m|0;o=J[i>>2];J[i>>2]=d;d=e+j|0;i=J[d>>2];J[d>>2]=o;d=e+h|0;e=J[d>>2];J[d>>2]=i;i=c-3|0;o=m+(i<<2)|0;d=J[o>>2];J[o>>2]=e;c=c-4|0;if(i)continue;break}}c=J[a+32>>2]-4|0;J[a+32>>2]=c;if(c>>>0<=M[a+36>>2])break f;j=g+1|0;J[a+44>>2]=j;o=g^-1;J[n+(o<<2)>>2]=d}e=k+1|0;m=n+(o<<2)|0;d=0;c=j;A:{B:{while(1){g=d;h=c;if((c|0)<=0){d=e;break B}d=g+1|0;c=h-1|0;i=J[m+(c<<2)>>2];if((i|0)>(e|0))continue;break}if((i|0)>(k|0)){g=j;break A}i= +0;g=j-g&3;if(g)while(1){k=m+(c<<2)|0;d=J[k>>2];J[k>>2]=e;c=c-1|0;e=d;i=i+1|0;if((g|0)!=(i|0))continue;break}if(h>>>0<4)break B;g=m-8|0;k=m-4|0;d=e;while(1){e=c<<2;h=e+m|0;i=J[h>>2];J[h>>2]=d;d=e+k|0;h=J[d>>2];J[d>>2]=i;d=e+g|0;e=J[d>>2];J[d>>2]=h;h=c-3|0;i=m+(h<<2)|0;d=J[i>>2];J[i>>2]=e;c=c-4|0;if(h)continue;break}}c=J[a+32>>2]-4|0;J[a+32>>2]=c;if(c>>>0<=M[a+36>>2])break f;g=j+1|0;J[a+44>>2]=g;J[n+((j^-1)<<2)>>2]=d}c=f;p=p-1|0;if(p&65535)continue;break}e=J[a+32>>2];d=J[a+36>>2];break h}J[a+84>>2]= +0}if(d>>>0>>0)break e}if(J[a+40>>2]==98)break f;d=1;break a}J[a+40>>2]=0;c=J[a+1008>>2];d=(c<<2)+a|0;e=d;f=I[d+946>>1];g=I[d+944>>1];d=(f+g|0)/2|0;if(!((c|0)<=6&(d|0)>=(g|0))){J[a+40>>2]=20;J[a+1008>>2]=0;d=20;break a}c=c+1|0;g=(c<<2)+a|0;I[g+946>>1]=f;I[g+944>>1]=d;I[e+946>>1]=d-1;break d}C:{h=J[a+84>>2];D:{if(!h)break D;J[l+8>>2]=0;J[l+4>>2]=0;J[l>>2]=0;c=J[a>>2];f=J[a+72>>2]>>c;i=J[a+68>>2]>>c;while(1){d=h;J[d>>2]=0;k=i<<16>>16;g=J[d+20>>2];h=(g+J[d+16>>2]|0)-1<<16>>16;j=(k|0)>(h|0);p=g<<16>> +16>16;e=l+8|0;c=J[l+8>>2];E:{if(!c){c=0;break E}if(J[c>>2]>0)break E;F:{while(1){e=c;c=J[c+4>>2];if(c){if(J[c>>2]<=0)continue;break F}break}c=0}e=e+4|0}i=j?k:h;f=p?g:f;h=J[d+4>>2];J[d+4>>2]=c;J[e>>2]=d;if(h)continue;break}I[l+12>>1]=i;I[l+14>>1]=f;if(!J[a+44>>2])break C;kc[J[a+148>>2]](a,l+14|0,l+12|0);j=I[l+14>>1];c=J[l+8>>2];if(c)while(1){J[c+24>>2]=J[c+20>>2]-j;c=J[c+4>>2];if(c)continue;break}i=J[a+44>>2];G:{if((i|0)<=0)break G;if(J[J[a+28>>2]-(i<<2)>>2]==(j|0)){i=i-1|0;J[a+44>>2]=i;if(!i)break G}c= +0;while(1){d=J[l+8>>2];if(d){k=c<<16>>16;while(1){c=J[d+24>>2];J[d+24>>2]=c-k;f=J[d+4>>2];if((c|0)==(k|0)){c=J[l+8>>2];H:{if(!c)break H;if((c|0)==(d|0)){J[l+8>>2]=f;break H}while(1){e=c;c=J[c+4>>2];if(!c)break H;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f}g=J[d>>2];I:{if(K[d+12|0]&8){e=l+4|0;c=J[l+4>>2];if(!c){c=0;break I}if((g|0)>2])break I;J:{while(1){e=c;c=J[c+4>>2];if(c){if((g|0)>=J[c>>2])continue;break J}break}c=0}e=e+4|0;break I}e=l;c=J[e>>2];if(!c){c=0;break I}if((g|0)>2])break I; +K:{while(1){e=c;c=J[c+4>>2];if(c){if((g|0)>=J[c>>2])continue;break K}break}c=0}e=e+4|0}J[d+4>>2]=c;J[e>>2]=d}d=f;if(d)continue;break}}m=j;d=J[l+4>>2];c=d;L:{if(!c)break L;while(1){e=J[c+8>>2];J[c>>2]=J[e>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=e+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}c=J[d+4>>2];if(!c)break L;h=d+4|0;f=l+4|0;while(1){if(J[d>>2]<=J[c>>2])f=h;else{J[f>>2]=c;J[h>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[l+4>>2];f=l+4|0}d=c;h=c+4|0;c=J[c+4>>2];if(c)continue;break}}g=J[l>>2];c=g;M:{if(!c){g= +0;break M}while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}d=J[g+4>>2];if(!d)break M;h=g+4|0;f=l;c=g;while(1){N:{if(J[c>>2]<=J[d>>2]){f=h;c=d;break N}J[f>>2]=d;J[h>>2]=J[d+4>>2];J[d+4>>2]=c;f=l;g=J[f>>2];c=g}h=c+4|0;d=J[c+4>>2];if(d)continue;break}}J[a+44>>2]=i-1;O:{n=J[J[a+28>>2]-(i<<2)>>2];q=n<<16>>16;j=m;if((q|0)<=j<<16>>16)break O;while(1){k=J[l+4>>2];P:{if(!k)break P;p=0;c=k;f=g;if(!f)break P;while(1){Q:{R:{e=J[c>>2]; +h=J[f>>2];d=(e|0)>(h|0)?e:h;e=(e|0)<(h|0)?e:h;h=J[a+4>>2];if((d-e|0)>(h|0))break R;o=0-h|0;i=o&e;if((i|0)==(e|0))break R;o=o&(d+h|0)-1;if((o|0)==(d|0)|(o|0)!=(h+i|0)&(i|0)<=(o|0))break R;if((L[c+12>>1]&7)==2)break Q;J[c>>2]=e;J[f>>2]=d;J[c+24>>2]=1;p=p+1|0;break Q}kc[J[a+152>>2]](a,j<<16>>16,e,d,c,f)}c=J[c+4>>2];if(c){f=J[f+4>>2];if(f)continue}break}d=g;c=k;if(p<<16>>16<=0)break P;while(1){if(J[c+24>>2]){J[c+24>>2]=0;kc[J[a+156>>2]](a,j<<16>>16,J[c>>2],J[d>>2],c,d)}c=J[c+4>>2];if(!c)break P;d=J[d+ +4>>2];if(d)continue;break}}kc[J[a+160>>2]](a);j=j+1|0;if((q|0)<=j<<16>>16)break O;c=k;S:{if(!c)break S;while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>>2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}c=J[k+4>>2];if(!c)break S;d=k+4|0;h=l+4|0;while(1){if(!(J[k>>2]<=J[c>>2])){J[h>>2]=c;J[d>>2]=J[c+4>>2];J[c+4>>2]=k;c=J[l+4>>2];d=l+4|0}h=d;k=c;d=c+4|0;c=J[c+4>>2];if(c)continue;break}g=J[l>>2]}e=g;g=0;c=e;if(!c)continue;while(1){d=J[c+8>>2];J[c>>2]=J[d>>2];J[c+16>>2]=J[c+16>> +2]-1;J[c+8>>2]=d+(L[c+12>>1]&8?4:-4);c=J[c+4>>2];if(c)continue;break}h=e+4|0;f=l;g=e;c=e;d=J[c+4>>2];if(!d)continue;while(1){T:{if(J[c>>2]<=J[d>>2]){f=h;c=d;break T}J[f>>2]=d;J[h>>2]=J[d+4>>2];J[d+4>>2]=c;f=l;e=J[f>>2];c=e}h=c+4|0;d=J[c+4>>2];if(d)continue;break}g=e;continue}}f=J[l+4>>2];if(f)while(1){d=f;f=J[d+4>>2];U:{if(J[d+16>>2])break U;c=J[l+4>>2];if(!c)break U;if((c|0)==(d|0)){J[l+4>>2]=f;break U}while(1){e=c;c=J[c+4>>2];if(!c)break U;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f}if(f)continue; +break}f=J[l>>2];V:{if(!f)break V;while(1){d=f;f=J[d+4>>2];W:{if(J[d+16>>2])break W;c=J[l>>2];if(!c)break W;if((c|0)==(d|0)){J[l>>2]=f;if(!f)break V;continue}while(1){e=c;c=J[c+4>>2];if(!c)break W;if((c|0)!=(d|0))continue;break}J[e+4>>2]=f;if(!f)break V;continue}if(f)continue;break}}c=n-m|0;i=J[a+44>>2];if((i|0)>0)continue;break}}if(I[l+12>>1]>16)break D;while(1){kc[J[a+160>>2]](a);j=j+1<<16>>16;if((j|0)<=I[l+12>>1])continue;break}}c=J[a+1008>>2]-1|0;break d}J[a+40>>2]=20;d=20;break a}J[a+1008>> +2]=c;if((c|0)>=0)continue;break}d=0;break a}J[a+40>>2]=99;d=1;break a}J[a+40>>2]=20;d=1}fc=l+16|0;return d}function G5(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;if(!b)return 2;i=b;b=0;e=fc-1760|0;fc=e;a:{b:{h=a+96|0;c:{if(!K[h+1468|0]){f=fc-448|0;fc=f;d:{e:{if(!i)break e;H[h+96|0]=0;J[h+64>>2]=2147483647;J[h+68>>2]=2147483647;J[h+48>>2]=2147483647;J[h+52>>2]=2147483647;J[h+8>>2]=0;J[h+12>>2]=0;J[h+1208>>2]=0;J[h+88>>2]=-2147483647;J[h+92>>2]=-2147483647;J[h+80>> +2]=2147483647;J[h+84>>2]=2147483647;J[h+72>>2]=0;J[h+76>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;b=J[i+4>>2];J[f+444>>2]=J[c>>2];J[f+440>>2]=b;J[f+24>>2]=0;J[f+28>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+176>>2]=0;J[f+180>>2]=0;J[f+160>>2]=0;J[f+164>>2]=1072693248;J[f+40>>2]=0;J[f+44>>2]=1072693248;J[f+184>>2]=0;J[f+188>>2]=0;J[f+192>>2]=0;J[f+196>>2]=0;J[f+200>>2]=0;J[f+392>>2]=0;J[f+396>>2]=0;J[f+376>>2]=0;J[f+380>>2]=1072693248;J[f+224>>2]=0;J[f+228>>2]=1072693248;J[f+204>>2]=64;J[f+208>>2]=1;J[f+400>>2]=0; +J[f+404>>2]=0;J[f+408>>2]=0;J[f+412>>2]=0;J[f+416>>2]=0;J[f+420>>2]=0;J[f+424>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+216>>2]=0;J[f+220>>2]=0;J[f+8>>2]=f+440;J[f+428>>2]=64;J[f+432>>2]=1;J[699344]=0;ca(2535,h|0,f+8|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break d;b=K[J[i+4>>2]+24|0];I[h+1468>>1]=1;J[h+1184>>2]=b;h=J[f+416>>2];if(h){b=h-1|0;J[f+416>>2]=b;g=J[f+424>>2]+(h<<2)|0;while(1){g=g-4|0;h=J[g>>2];if(h){uc(h);b=J[f+416>>2]}h=b;b=h-1|0;J[f+416>>2]=b;if(h)continue;break}}b=J[f+424>>2];if(b)uc(b);h= +J[f+192>>2];if(h){b=h-1|0;J[f+192>>2]=b;g=J[f+200>>2]+(h<<2)|0;while(1){g=g-4|0;h=J[g>>2];if(h){uc(h);b=J[f+192>>2]}h=b;b=h-1|0;J[f+192>>2]=b;if(h)continue;break}}b=J[f+200>>2];if(!b)break e;uc(b)}fc=f+448|0;break c}a=Z()|0;AD(f+8|0);ba(a|0);B()}f:{if(!K[h+1469|0]){J[e+584>>2]=0;J[e+588>>2]=0;J[e+576>>2]=0;J[e+580>>2]=0;J[e+568>>2]=0;J[e+572>>2]=0;J[e+560>>2]=0;J[e+564>>2]=0;J[e+552>>2]=0;J[e+556>>2]=0;J[e+680>>2]=0;J[e+684>>2]=0;J[e+688>>2]=0;J[e+692>>2]=0;H[e+693|0]=0;H[e+694|0]=0;H[e+695|0]=0; +H[e+696|0]=0;H[e+697|0]=0;H[e+698|0]=0;H[e+699|0]=0;H[e+700|0]=0;f=e+1744|0;J[f>>2]=0;J[f+4>>2]=0;J[e+544>>2]=0;J[e+548>>2]=0;J[e+1736>>2]=0;J[e+1740>>2]=0;H[e+1732|0]=1;J[e+1728>>2]=0;f=e+704|0;while(1){J[f+(b<<2)>>2]=b;g=b|1;J[f+(g<<2)>>2]=g;g=b|2;J[f+(g<<2)>>2]=g;g=b|3;J[f+(g<<2)>>2]=g;g=b|4;J[f+(g<<2)>>2]=g;g=b|5;J[f+(g<<2)>>2]=g;g=b|6;J[f+(g<<2)>>2]=g;g=b|7;J[f+(g<<2)>>2]=g;b=b+8|0;if((b|0)!=256)continue;break}b=J[h+1472>>2];f=J[h+1476>>2];H[e+640|0]=0;J[e+616>>2]=0;J[e+620>>2]=0;J[e+608>>2]= +2147483647;J[e+612>>2]=2147483647;J[e+600>>2]=0;J[e+604>>2]=0;J[e+592>>2]=2147483647;J[e+596>>2]=2147483647;J[e+552>>2]=0;J[e+556>>2]=0;J[e+1752>>2]=0;J[e+632>>2]=-2147483647;J[e+636>>2]=-2147483647;J[e+624>>2]=2147483647;J[e+628>>2]=2147483647;J[e+656>>2]=0;J[e+660>>2]=0;J[e+648>>2]=0;J[e+652>>2]=0;j=+(f|0);O[e+672>>3]=j;k=+(b|0);O[e+664>>3]=k;if((b|0)<0){J[e+664>>2]=0;J[e+668>>2]=0;O[e+648>>3]=k}if((f|0)<0){J[e+672>>2]=0;J[e+676>>2]=0;O[e+656>>3]=j}H[e+700|0]=1;b=J[i+4>>2];J[e+540>>2]=J[c>>2];J[e+ +536>>2]=b;J[e+120>>2]=0;J[e+124>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+272>>2]=0;J[e+276>>2]=0;J[e+256>>2]=0;J[e+260>>2]=1072693248;J[e+136>>2]=0;J[e+140>>2]=1072693248;J[e+280>>2]=0;J[e+284>>2]=0;J[e+288>>2]=0;J[e+292>>2]=0;J[e+296>>2]=0;J[e+488>>2]=0;J[e+492>>2]=0;J[e+472>>2]=0;J[e+476>>2]=1072693248;J[e+320>>2]=0;J[e+324>>2]=1072693248;J[e+300>>2]=64;J[e+304>>2]=1;J[e+496>>2]=0;J[e+500>>2]=0;J[e+504>>2]=0;J[e+508>>2]=0;J[e+512>>2]=0;J[e+516>>2]=0;J[e+520>>2]=0;J[e+112>>2]=0;J[e+116>>2]=0;J[e+312>> +2]=0;J[e+316>>2]=0;J[e+104>>2]=e+536;J[e+524>>2]=64;J[e+528>>2]=1;J[699344]=0;b=e+544|0;ca(2535,b|0,e+104|0,0);f=J[699344];J[699344]=0;g:{h:{if((f|0)!=1){J[e+1728>>2]=K[J[i+4>>2]+24|0];J[e+88>>2]=0;J[e+92>>2]=0;J[e+96>>2]=0;J[e+100>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+72>>2]=2147483632;J[e+56>>2]=0;J[e+60>>2]=0;f=e- -64|0;J[f>>2]=0;J[f+4>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=2147483632;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=2147483632;J[699344]= +0;ua(2536,d|0,h|0,b|0,e+72|0,e+40|0,e+8|0,h+1216|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;J[h+1464>>2]=1;b=J[e+28>>2];if(b)uc(b);b=J[e+16>>2];if(b)uc(b);b=J[e+60>>2];if(b)uc(b);b=J[e+48>>2];if(b)uc(b);b=J[e+92>>2];if(b)uc(b);b=J[e+80>>2];if(b)uc(b);f=J[e+512>>2];if(f){b=f-1|0;J[e+512>>2]=b;g=J[e+520>>2]+(f<<2)|0;while(1){g=g-4|0;f=J[g>>2];if(f){uc(f);b=J[e+512>>2]}f=b;b=f-1|0;J[e+512>>2]=b;if(f)continue;break}}b=J[e+520>>2];if(b)uc(b);f=J[e+288>>2];if(f){b=f-1|0;J[e+288>>2]=b;g=J[e+296>>2]+ +(f<<2)|0;while(1){g=g-4|0;f=J[g>>2];if(f){uc(f);b=J[e+288>>2]}f=b;b=f-1|0;J[e+288>>2]=b;if(f)continue;break}}b=J[e+296>>2];if(b)uc(b);f=J[e+544>>2];i:{if(!f)break i;b=f-1|0;J[e+544>>2]=b;g=J[e+560>>2]+(f<<2)|0;while(1){g=g-4|0;f=J[g>>2];if(f){uc(f);b=J[e+544>>2]}f=b;b=f-1|0;J[e+544>>2]=b;if(f)continue;break}b=J[e+560>>2];if(!b)break i;uc(b)}b=J[e+588>>2];if(b)uc(b);b=J[e+576>>2];if(!b)break f;uc(b);break f}b=Z()|0;break g}b=Z()|0;Kf(e+8|0);Kf(e+40|0);Kf(e+72|0)}break b}J[e+584>>2]=0;J[e+588>>2]=0; +J[e+576>>2]=0;J[e+580>>2]=0;J[e+568>>2]=0;J[e+572>>2]=0;J[e+560>>2]=0;J[e+564>>2]=0;J[e+552>>2]=0;J[e+556>>2]=0;J[e+680>>2]=0;J[e+684>>2]=0;J[e+688>>2]=0;J[e+692>>2]=0;H[e+693|0]=0;H[e+694|0]=0;H[e+695|0]=0;H[e+696|0]=0;H[e+697|0]=0;H[e+698|0]=0;H[e+699|0]=0;H[e+700|0]=0;f=e+1744|0;J[f>>2]=0;J[f+4>>2]=0;J[e+544>>2]=0;J[e+548>>2]=0;J[e+1736>>2]=0;J[e+1740>>2]=0;H[e+1732|0]=1;J[e+1728>>2]=0;f=e+704|0;while(1){J[f+(b<<2)>>2]=b;g=b|1;J[f+(g<<2)>>2]=g;g=b|2;J[f+(g<<2)>>2]=g;g=b|3;J[f+(g<<2)>>2]=g;g=b| +4;J[f+(g<<2)>>2]=g;g=b|5;J[f+(g<<2)>>2]=g;g=b|6;J[f+(g<<2)>>2]=g;g=b|7;J[f+(g<<2)>>2]=g;b=b+8|0;if((b|0)!=256)continue;break}b=J[h+1472>>2];f=J[h+1476>>2];H[e+640|0]=0;J[e+616>>2]=0;J[e+620>>2]=0;J[e+608>>2]=2147483647;J[e+612>>2]=2147483647;J[e+600>>2]=0;J[e+604>>2]=0;J[e+592>>2]=2147483647;J[e+596>>2]=2147483647;J[e+552>>2]=0;J[e+556>>2]=0;J[e+1752>>2]=0;J[e+632>>2]=-2147483647;J[e+636>>2]=-2147483647;J[e+624>>2]=2147483647;J[e+628>>2]=2147483647;J[e+656>>2]=0;J[e+660>>2]=0;J[e+648>>2]=0;J[e+652>> +2]=0;j=+(f|0);O[e+672>>3]=j;k=+(b|0);O[e+664>>3]=k;if((b|0)<0){J[e+664>>2]=0;J[e+668>>2]=0;O[e+648>>3]=k}if((f|0)<0){J[e+672>>2]=0;J[e+676>>2]=0;O[e+656>>3]=j}H[e+700|0]=1;b=J[i+4>>2];J[e+540>>2]=J[c>>2];J[e+536>>2]=b;J[e+120>>2]=0;J[e+124>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+272>>2]=0;J[e+276>>2]=0;J[e+256>>2]=0;J[e+260>>2]=1072693248;J[e+136>>2]=0;J[e+140>>2]=1072693248;J[e+280>>2]=0;J[e+284>>2]=0;J[e+288>>2]=0;J[e+292>>2]=0;J[e+296>>2]=0;J[e+488>>2]=0;J[e+492>>2]=0;J[e+472>>2]=0;J[e+476>>2]=1072693248; +J[e+320>>2]=0;J[e+324>>2]=1072693248;J[e+300>>2]=64;J[e+304>>2]=1;J[e+496>>2]=0;J[e+500>>2]=0;J[e+504>>2]=0;J[e+508>>2]=0;J[e+512>>2]=0;J[e+516>>2]=0;J[e+520>>2]=0;J[e+112>>2]=0;J[e+116>>2]=0;J[e+312>>2]=0;J[e+316>>2]=0;J[e+104>>2]=e+536;J[e+524>>2]=64;J[e+528>>2]=1;J[699344]=0;b=e+544|0;ca(2535,b|0,e+104|0,0);f=J[699344];J[699344]=0;j:{k:{if((f|0)!=1){J[e+1728>>2]=K[J[i+4>>2]+24|0];J[e+88>>2]=0;J[e+92>>2]=0;J[e+96>>2]=0;J[e+100>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;J[e+72>>2]=2147483632;J[e+56>>2]=0;J[e+ +60>>2]=0;f=e- -64|0;J[f>>2]=0;J[f+4>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=2147483632;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=2147483632;f=J[h+1464>>2];J[699344]=0;l=b;b=h+1216|0;g=h+1340|0;f=(f|0)==1;ua(2537,d|0,l|0,(f?b:g)|0,e+72|0,e+40|0,e+8|0,(f?g:b)|0);b=J[699344];J[699344]=0;if((b|0)==1)break k;J[h+1464>>2]=J[h+1464>>2]==1?2:1;b=J[e+28>>2];if(b)uc(b);b=J[e+16>>2];if(b)uc(b);b=J[e+60>>2];if(b)uc(b);b=J[e+48>>2];if(b)uc(b);b=J[e+92>>2];if(b)uc(b); +b=J[e+80>>2];if(b)uc(b);f=J[e+512>>2];if(f){b=f-1|0;J[e+512>>2]=b;g=J[e+520>>2]+(f<<2)|0;while(1){g=g-4|0;f=J[g>>2];if(f){uc(f);b=J[e+512>>2]}f=b;b=f-1|0;J[e+512>>2]=b;if(f)continue;break}}b=J[e+520>>2];if(b)uc(b);f=J[e+288>>2];if(f){b=f-1|0;J[e+288>>2]=b;g=J[e+296>>2]+(f<<2)|0;while(1){g=g-4|0;f=J[g>>2];if(f){uc(f);b=J[e+288>>2]}f=b;b=f-1|0;J[e+288>>2]=b;if(f)continue;break}}b=J[e+296>>2];if(b)uc(b);f=J[e+544>>2];l:{if(!f)break l;b=f-1|0;J[e+544>>2]=b;g=J[e+560>>2]+(f<<2)|0;while(1){g=g-4|0;f=J[g>> +2];if(f){uc(f);b=J[e+544>>2]}f=b;b=f-1|0;J[e+544>>2]=b;if(f)continue;break}b=J[e+560>>2];if(!b)break l;uc(b)}b=J[e+588>>2];if(b)uc(b);b=J[e+576>>2];if(!b)break f;uc(b);break f}b=Z()|0;break j}b=Z()|0;Kf(e+8|0);Kf(e+40|0);Kf(e+72|0)}break b}H[h+1469|0]=1}fc=e+1760|0;break a}AD(e+104|0);c=J[e+544>>2];m:{if(!c)break m;a=c-1|0;J[e+544>>2]=a;d=J[e+560>>2]+(c<<2)|0;while(1){d=d-4|0;c=J[d>>2];if(c){uc(c);a=J[e+544>>2]}c=a;a=c-1|0;J[e+544>>2]=a;if(c)continue;break}a=J[e+560>>2];if(!a)break m;uc(a)}a=J[e+ +588>>2];if(a)uc(a);a=J[e+576>>2];if(a)uc(a);ba(b|0);B()}e=vc(12);J[e+8>>2]=1;J[e>>2]=0;J[e+4>>2]=0;m=e,n=h5(i),J[m>>2]=n;b=vc(4);n:{o:{if(c){J[699344]=0;aa(2259,b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break o;break n}J[699344]=0;_(2256,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n}J[e+8>>2]=d;J[e+4>>2]=b;p:{c=a+2928|0;a=J[c+4>>2];if((a|0)!=J[c+8>>2]){J[a>>2]=e;J[c+4>>2]=a+4;break p}q:{i=J[c>>2];b=a-i|0;h=b>>2;d=h+1|0;if(d>>>0<1073741824){f=b>>1;f=b>>>0>=2147483644?1073741823:d>>>0>> +0?f:d;if(f){if(f>>>0>=1073741824)break q;b=vc(f<<2)}else b=0;d=b+(h<<2)|0;J[d>>2]=e;e=d+4|0;if((a|0)!=(i|0)){while(1){d=d-4|0;a=a-4|0;J[d>>2]=J[a>>2];if((a|0)!=(i|0))continue;break}a=J[c>>2]}J[c+8>>2]=b+(f<<2);J[c+4>>2]=e;J[c>>2]=d;if(a)uc(a);break p}nj(c);B()}Pd();B()}return 0}a=Z()|0;uc(b);ba(a|0);B()}function Ihb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;f=fc-384|0;fc=f;J[b>>2]=1;a:{if(!J[b+136>>2]){d=go(J[J[b+96>> +2]+4>>2],240575);if(!d){a=11;break a}J[b+136>>2]=d}if(!J[b+320>>2])x=b,y=go(J[J[b+96>>2]+4>>2],240774),J[x+320>>2]=y;a=yd(a,0);if(a)break a;i=J[b+100>>2];J[f+108>>2]=0;h=J[b+104>>2];a=J[b+136>>2];d=f+8|0;Ac(d,0,100);kc[J[J[a+4>>2]>>2]](d,0,0,i);J[f+80>>2]=h;m=J[h+8>>2];b:{c:{d:{d=af(h,31);e:{if(d)break e;a=ud(J[h+32>>2],241236,31);ve(h);if(a){J[f+4>>2]=2;break b}l=f+84|0;k=f+112|9;while(1){d=J[h+8>>2];j=d;e=0;a=f+112|0;d=J[h+4>>2]-d|0;g=d>>>0>=265?265:d;d=zg(h,a,g);if(d)break e;while(1){f:{d=a+g| +0;H[d|0]=0;o=d-6|0;d=f+112|0;if(o>>>0>d>>>0){n=(g-6|0)+a|0;a=d;d=K[f+112|0];while(1){g:{if((d&255)!=83)break g;if(ud(a,241433,9))break g;e=10;break f}h:{d=K[a+1|0];if((d|0)!=115)break h;if(ud(a,241511,6))break h;e=7;break f}a=a+1|0;if((n|0)!=(a|0))continue;break}}if(e+g>>>0<9){J[f+4>>2]=3;break b}a=(e+f|0)+g|0;d=K[a+103|0]|K[a+104|0]<<8|(K[a+105|0]<<16|K[a+106|0]<<24);e=K[a+107|0]|K[a+108|0]<<8|(K[a+109|0]<<16|K[a+110|0]<<24);H[f+120|0]=K[a+111|0];J[f+112>>2]=d;J[f+116>>2]=e;j=j+256|0;e=9;a=k;d=J[h+ +4>>2]-J[h+8>>2]|0;g=d>>>0>=256?256:d;d=zg(h,a,g);if(!d)continue;break e}break}d=yd(h,m);if(d)break e;j=((j-(f+112|0)|0)+a|0)+e|0;a=j-m|0;d=Oi(h,a,l);if(d)break e;J[f+92>>2]=j;g=J[f+84>>2];J[f+12>>2]=g;J[f+104>>2]=-1;J[f+8>>2]=g;J[f+88>>2]=a;J[f+16>>2]=a+g;d=f+8|0;kc[J[f+40>>2]](d);kc[J[f+36>>2]](d);a=J[f+8>>2];kc[J[f+40>>2]](d);kc[J[f+36>>2]](d);d=J[f+8>>2];e=J[f+16>>2];n=e-6|0;if(d>>>0<=n>>>0){p=e-9|0;while(1){e=a;a=d;d=J[f+20>>2];if(d)break e;i:{if(K[a|0]!=83|a>>>0>p>>>0)break i;if(ud(a,241433, +9))break i;if(ud(g,241663,5))break c;a=Ig(e,0,10);if((a|0)>=0)break d;J[f+4>>2]=3;break b}j:{if(K[a+1|0]!=115)break j;if(ud(a,241511,6))break j;J[f+4>>2]=2;break b}d=f+8|0;kc[J[f+40>>2]](d);kc[J[f+36>>2]](d);g=e;d=J[f+8>>2];if(n>>>0>=d>>>0)continue;break}}$f(h,l);d=yd(h,j);if(!d)continue;break}}J[f+4>>2]=d;break b}J[f+96>>2]=a}J[f+4>>2]=0;J[f+20>>2]=0;a=J[f+84>>2];l=a+J[f+88>>2]|0;J[f+16>>2]=l;k=b+164|0;j=b+312|0;h=b+196|0;m=b+140|0;r=l-18|0;k:{l:{m:while(1){J[f+8>>2]=a;kc[J[f+36>>2]](f+8|0);d=J[f+ +8>>2];g=d>>>0>>0?d-17|0:r;if(g>>>0>a>>>0){e=J[f+104>>2];while(1){n:{if(K[a|0]!=37)break n;if(ud(a,241696,17)|J[b+300>>2]<=0)break n;e=e+1|0;J[f+104>>2]=e}a=a+1|0;if((g|0)!=(a|0))continue;break}}o:{if(d>>>0>=l>>>0)break o;kc[J[f+40>>2]](f+8|0);a=J[f+8>>2];if(J[f+20>>2]|l>>>0<=a>>>0)break o;if(K[d|0]!=47|l>>>0<=d+2>>>0)continue;p=d+1|0;if((p|0)==(a|0))continue;n=a-p|0;if(n>>>0>21)continue;q=K[p|0];e=331120;d=241850;p:{if(n>>>0>=2)while(1){g=e;q:{if((q|0)!=K[d|0])break q;e=1;if((Yc(d)|0)!=(n|0))break q; +while(1){if(K[e+p|0]!=K[d+e|0])break q;e=e+1|0;if((n|0)!=(e|0))continue;break}e=g;break p}e=g+36|0;d=J[g+36>>2];if(d)continue;continue m}while(1){if((q|0)==K[d|0])if((Yc(d)|0)==(n|0))break p;d=J[e+36>>2];e=e+36|0;if(d)continue;break}continue}g=J[e+8>>2];r:{if((g|0)==11){kc[J[e+12>>2]](b,f+8|0);a=J[f+20>>2];break r}d=m;s:{t:{u:{v:switch(J[e+4>>2]){case 3:d=k;break u;case 2:d=j;break u;case 5:d=h;break u;case 0:break u;default:break v}a=J[f+104>>2];if((a|0)<0|(a|0)>=J[b+300>>2])break t;d=J[b+304>>2]+ +P(a,252)|0}J[f+112>>2]=d;if(g-9>>>0>1)break s;a=kc[J[f+76>>2]](f+8|0,e,f+112|0,0,0)|0;break r}J[f+20>>2]=160;J[f+4>>2]=160;break b}a=kc[J[f+72>>2]](f+8|0,e,f+112|0,0,0)|0}J[f+20>>2]=a;if(a)break l;a=J[f+8>>2];continue}break}if(J[b+300>>2])break k;a=3}J[f+4>>2]=a;break b}a=J[f+20>>2];J[f+4>>2]=a;if(a|(c|0)<0)break b;e=he(i,40,f+4|0);J[b+328>>2]=e;if(J[f+4>>2])break b;d=J[b+104>>2];a=J[f+96>>2];w:{if(a){e=b;d=J[d+4>>2]-J[f+92>>2]|0;if(d>>>0>>0){J[f+96>>2]=d;a=d}d=e;e=he(i,a,f+4|0);J[d+324>>2]=e; +if(J[f+4>>2])break b;a=J[f+96>>2];d=fc-256|0;fc=d;h=J[b+104>>2];j=yd(h,J[f+92>>2]);x:{if(j)break x;if((a|0)>0){n=a+e|0;k=1;a=d;m=a;while(1){y:{z:{A:{while(1){if(a>>>0>=m>>>0){a=J[h+8>>2];g=J[h+4>>2];if((a|0)==(g|0)){j=160;break x}g=g-a|0;j=zg(h,d,g>>>0>=256?256:g);if(j)break x;m=(d+J[h+8>>2]|0)-a|0;a=d}g=K[a|0];i=g-48|0;if(i>>>0<10)break z;if((g-97&255)>>>0>=6){if((g-65&255)>>>0<6)break A;i=0;j=160;l=0;B:switch(g|0){case 62:break y;case 0:case 9:case 10:case 12:case 13:case 32:break B;default:break x}a= +a+1|0;continue}break}i=g-87|0;break z}i=g-55|0}l=1}C:{if(k&255){i=i<<4;g=e;break C}i=K[e|0]+i|0;g=e+1|0}H[e|0]=i;a=a+1|0;k=1-k|0;e=g;if(n>>>0>e>>>0&l)continue;break}}j=0}fc=d+256|0;J[f+4>>2]=j;if(j)break b;d=J[b+324>>2];e=J[f+96>>2];a=J[b+328>>2];J[a+32>>2]=0;J[a+8>>2]=0;J[a+4>>2]=e;J[a>>2]=d;J[a+20>>2]=0;J[a+24>>2]=0;a=0;break w}a=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=a;a=J[d+36>>2];J[e+32>>2]=J[d+32>>2];J[e+36>>2]=a;a=J[d+28>>2];J[e+24>>2]=J[d+24>>2];J[e+28>>2]=a;a=J[d+20>>2];J[e+16>>2]=J[d+16>>2]; J[e+20>>2]=a;a=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=a;a=J[f+92>>2]}J[b+308>>2]=a;D:{k=J[b+288>>2];if((k|0)>=0){j=J[b+292>>2];if((j|0)>0)break D}J[f+4>>2]=3;break b}if(!(j>>>0<5&k>>>0<=4)){J[f+4>>2]=3;break b}d=J[J[b+328>>2]+4>>2]-a|0;h=J[b+300>>2];if((h|0)>0){m=J[b+304>>2];e=0;while(1){a=m+P(e,252)|0;if(M[a+112>>2]>=1001)J[a+112>>2]=7;if(M[a+116>>2]>=1001)J[a+116>>2]=1;E:{g=J[a+248>>2];if((g|0)>=0){i=J[a+240>>2];if(!i|g)break E}J[f+4>>2]=3;break b}if(g>>>0>=5){J[f+4>>2]=3;break b}a=J[a+244>> -2];if(a>>>0>d>>>0){J[f+4>>2]=3;break b}F:{if((i|0)>=0)if(!g|i>>>0<=(d-a>>>0)/(g>>>0)>>>0)break F;J[f+4>>2]=3;break b}e=e+1|0;if((h|0)!=(e|0))continue;break}}a=J[b+284>>2];if(a>>>0>d>>>0){J[f+4>>2]=3;break b}if(M[b+296>>2]>(d-a>>>0)/(j+k>>>0)>>>0){J[f+4>>2]=3;break b}i=0;g=0;r=0;h=bc-16|0;bc=h;p=J[b+328>>2];u=J[b+136>>2];m=J[b+100>>2];j=Sc(m,8,0,J[b+300>>2],0,h+12|0);J[b+316>>2]=j;G:{if(J[h+12>>2])break G;d=J[b+300>>2];if((d|0)<=0)break G;while(1){H:{e=J[b+304>>2]+P(r,252)|0;n=J[e+240>>2];if(n){v= -J[e+4>>2];l=n+1|0;if(l>>>0>g>>>0){a=(n&-4)+4|0;if(a>>>0<=g>>>0){J[h+12>>2]=160;break H}i=Sc(m,4,g,a,i,h+12|0);g=a;if(J[h+12>>2])break H}a=nd(p,J[e+244>>2]+J[b+308>>2]|0);J[h+12>>2]=a;if(a)break H;a=Ue(p,P(l,J[e+248>>2]));J[h+12>>2]=a;if(a)break H;q=K[e+248|0];I:{if(q){t=l>>>0<=1?1:l;w=q&252;s=q&3;e=J[p+32>>2];o=0;while(1){a=e;k=0;d=0;if(q>>>0>=4){while(1){d=a;a=a+4|0;k=k+4|0;if((k&255)!=(w|0))continue;break}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}k= -0;if(s)while(1){d=K[a|0]|d<<8;a=a+1|0;k=k+1|0;if((k&255)!=(s|0))continue;break}J[(o<<2)+i>>2]=d;e=e+q|0;o=o+1|0;if((t|0)!=(o|0))continue;break}break I}wc(i,0,(l>>>0<=1?1:l)<<2)}ne(p);d=J[i>>2];a=1;J:{while(1){e=d;d=J[(a<<2)+i>>2];if(e>>>0<=d>>>0){a=a+1|0;if(n>>>0>=a>>>0)continue;break J}break}J[h+12>>2]=3;break H}a=J[(n<<2)+i>>2];if(a>>>0>J[p+4>>2]-J[b+308>>2]>>>0){J[h+12>>2]=3;break H}d=J[i>>2];e=h+12|0;x=j,y=Sc(m,4,0,l,0,e),J[x+4>>2]=y;if(J[h+12>>2])break H;a=a-d|0;d=Zd(m,a,e);J[J[j+4>>2]>>2]=d; -if(J[h+12>>2])break H;d=nd(p,J[i>>2]+J[b+308>>2]|0);J[h+12>>2]=d;if(d)break H;a=mg(p,J[J[j+4>>2]>>2],a);J[h+12>>2]=a;if(a)break H;a=1;d=(l>>>0<=2?2:l)-1|0;q=d&1;k=J[i>>2];if(l>>>0>=3){l=d&-2;e=0;while(1){d=a<<2;o=d+J[j+4>>2]|0;s=o;t=J[o-4>>2];o=J[d+i>>2];J[s>>2]=t+(o-k|0);d=d+4|0;k=d+J[j+4>>2]|0;s=k;t=J[k-4>>2];k=J[d+i>>2];J[s>>2]=t+(k-o|0);a=a+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}}if(q){a=a<<2;d=a+J[j+4>>2]|0;J[d>>2]=J[d-4>>2]+(J[a+i>>2]-k|0)}K:{if((v|0)<0)break K;d=n>>>0<=1?1:n;l=d&1;a=0; -if(n>>>0>=2){q=d&-2;k=0;while(1){d=a<<2;o=d|4;e=o+i|0;gc[J[u+16>>2]](J[d+J[j+4>>2]>>2],J[e>>2]-J[d+i>>2]|0,4330);a=a+2|0;gc[J[u+16>>2]](J[o+J[j+4>>2]>>2],J[(a<<2)+i>>2]-J[e>>2]|0,4330);k=k+2|0;if((q|0)!=(k|0))continue;break}}if(!l)break K;d=a<<2;a=d+i|0;gc[J[u+16>>2]](J[d+J[j+4>>2]>>2],J[a+4>>2]-J[a>>2]|0,4330)}J[j>>2]=n;d=J[b+300>>2]}j=j+8|0;r=r+1|0;if((r|0)<(d|0))continue;break G}break}e=J[b+316>>2];if(!e)break G;if(J[b+300>>2]>0){d=0;while(1){a=d<<3;e=J[(a+e|0)+4>>2];if(e){e=J[e>>2];if(e)gc[J[m+ -8>>2]](m,e);J[J[(a+J[b+316>>2]|0)+4>>2]>>2]=0;e=J[(a+J[b+316>>2]|0)+4>>2]}else e=0;if(e)gc[J[m+8>>2]](m,e);e=J[b+316>>2];J[(a+e|0)+4>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}if(e)gc[J[m+8>>2]](m,e);J[b+316>>2]=0}if(i)gc[J[m+8>>2]](m,i);bc=h+16|0;J[f+4>>2]=J[h+12>>2]}if(J[f+84>>2])Sf(J[f+80>>2],f+84|0);gc[J[f+32>>2]](f+8|0);a=J[f+4>>2];if(a|(c|0)<0)break a;a=6;if(c&65535)break a;J[b+36>>2]=0;J[b+4>>2]=0;J[b+16>>2]=J[b+296>>2];a=J[b+8>>2];J[b+8>>2]=a|2065;if(K[b+188|0])J[b+8>>2]=a|2069;J[b+ -24>>2]=240854;d=J[b+176>>2];J[b+20>>2]=d;L:{if(d){a=J[b+172>>2];if(!a)break L;e=K[a|0];if(!e)break L;while(1){e=e&255;c=K[d|0];M:{if((e|0)==(c|0)){a=a+1|0;d=d+1|0;break M}e=e-32|0;if(!(!e|(e|0)==13)){N:switch(c-32|0){case 0:case 13:d=d+1|0;break M;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break L;default:break N}if(c)break L;J[b+24>>2]=a;break L}a=a+1|0}e=K[a|0];if(e)continue;break}break L}a=J[b+140>>2];if(!a)break L;J[b+20>>2]=a}c=J[b+184>>2]!=0;J[b+12>> -2]=c;a=J[b+180>>2];O:{if(!a)break O;if(Ec(a,240989))if(Ec(a,241108))break O;J[b+12>>2]=c|2}J[b+28>>2]=0;J[b+32>>2]=0;J[b+52>>2]=I[b+198>>1];a=I[b+202>>1];J[b+56>>2]=a;J[b+60>>2]=J[b+204>>2]+65535>>16;c=J[b+208>>2]+65535>>16;J[b- -64>>2]=c;e=L[b+68>>1];if(!e){I[b+68>>1]=1E3;e=1E3}I[b+72>>1]=a;I[b+70>>1]=c;J[b+80>>2]=L[b+190>>1]|L[b+192>>1]<<16;d=b;a=c-a|0;b=(P(e,12)>>>0)/10|0;I[d+74>>1]=(a|0)>b<<16>>16?a:b;a=0}bc=f+384|0;return a|0}function jB(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;k=bc-32|0;bc=k;a:{if(J[a+292>>2])break a;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break a;Hd(a)}c=J[a+36>>2];b:{while(1){c:{d:{i=J[c+16>>2];b=K[i|0];if((b|0)!=60){if(!b|J[a+172>>2]==-1)break b;m=J[c+36>>2];if((b|0)!=38)break d;n$(a);break c}b=K[i+1|0];if((b|0)==47|J[a+172>>2]==-1)break b;m=J[c+36>>2];e:{if((b|0)!=33){if((b|0)!=63)break e;vt(a);break c}f:{if(K[i+2|0]!=91|K[i+3|0]!=67|(K[i+4|0]!=68|K[i+5|0]!=65))break f;if(K[i+6|0]!=84|K[i+7|0]!=65|K[i+8|0]!=91)break f;g=0;j=0;h=bc-16|0;bc= -h;e=J[a+36>>2];b=J[e+16>>2];g:{if(K[b|0]!=60|K[b+1|0]!=33|(K[b+2|0]!=91|K[b+3|0]!=67))break g;if(K[b+4|0]!=68|K[b+5|0]!=65|(K[b+6|0]!=84|K[b+7|0]!=65))break g;if(K[b+8|0]!=91)break g;J[a+200>>2]=J[a+200>>2]+9;J[e+16>>2]=b+9;J[e+32>>2]=J[e+32>>2]+9;b=K[b+9|0];if((b|0)==37){Od(a);e=J[a+36>>2];b=K[J[e+16>>2]]}h:{if(b&255)break h;if((Cd(e)|0)>0)break h;ze(a)}J[a+172>>2]=8;i:{e=Ff(a,h+12|0);j:{if((e|0)<=255){if((e|0)>31)break i;if(!(1<>>0>13)break j;break i}if(e-65536>>>0<1048576|e>>>0<55296| -e-57344>>>0<8190)break i}Pe(a,63,0);J[a+172>>2]=7;break g}b=J[a+36>>2];c=J[b+16>>2];k:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break k}J[b+32>>2]=J[b+32>>2]+1}d=b;b=c+J[h+12>>2]|0;J[d+16>>2]=b;if(K[b|0]==37)Od(a);l:{c=Ff(a,h+8|0);m:{if((c|0)<=255){if((c|0)>31)break l;if(!(1<>>0>13)break m;break l}if(c-65536>>>0<1048576|c>>>0<55296|c-57344>>>0<8190)break l}Pe(a,63,0);J[a+172>>2]=7;break g}b=J[a+36>>2];d=J[b+16>>2];n:{if(K[d|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break n}J[b+ -32>>2]=J[b+32>>2]+1}f=b;b=d+J[h+8>>2]|0;J[f+16>>2]=b;if(K[b|0]==37)Od(a);f=Ff(a,h+4|0);l=100;d=gc[J[659450]](100)|0;if(d)while(1){o:{p:{q:{r:{s:{if((f|0)<=255){if((f|0)>31)break r;if(!(1<>>0>13)break s;break q}if(f-65536>>>0<1048576|f>>>0<55296|f-57344>>>0<8190)break q}H[d+g|0]=0;J[a+172>>2]=7;Nf(a,63,32068,d);gc[J[659451]](d);break g}if((e|0)!=93|(c|0)!=93)break q;if((f|0)==62)break p}if((g+5|0)<(l|0)){b=d;break o}if(!(K[a+362|0]&8|(l|0)<15000001)){Nf(a,63,15145,0);gc[J[659451]](d);break g}l= -l<<1;b=gc[J[659452]](d,l)|0;if(b)break o;gc[J[659451]](d);ke(a,0);break g}H[d+g|0]=0;J[a+172>>2]=7;b=J[a+36>>2];c=J[b+16>>2];t:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break t}J[b+32>>2]=J[b+32>>2]+1}f=b;b=c+J[h+4>>2]|0;J[f+16>>2]=b;if(K[b|0]==37)Od(a);b=J[a>>2];u:{if(J[a+212>>2]|!b)break u;e=J[b+100>>2];if(!e){e=J[b+68>>2];if(!e)break u}gc[e|0](J[a+4>>2],d,g)}gc[J[659451]](d);break g}v:{if(J[h+12>>2]==1){H[b+g|0]=e;g=g+1|0;break v}g=Pi(b+g|0,e)+g|0}J[h+12>>2]=J[h+8>>2];J[h+8>>2]=J[h+ -4>>2];w:{if((j|0)<50){j=j+1|0;break w}x:{if(J[a+292>>2])break x;d=J[a+36>>2];if((J[d+20>>2]-J[d+16>>2]|0)>249)break x;Hd(a)}j=0;if(J[a+172>>2]!=-1)break w;gc[J[659451]](b);break g}d=J[a+36>>2];e=J[d+16>>2];y:{if(K[e|0]==10){J[d+32>>2]=1;J[d+28>>2]=J[d+28>>2]+1;break y}J[d+32>>2]=J[d+32>>2]+1}n=d;d=e+J[h+4>>2]|0;J[n+16>>2]=d;if(K[d|0]==37)Od(a);e=c;c=f;f=Ff(a,h+4|0);d=b;continue}ke(a,0)}bc=h+16|0;break c}if(K[i+2|0]!=45|K[i+3|0]!=45)break e;wt(a);J[a+172>>2]=7;break c}f=bc+-64|0;bc=f;J[f+60>>2]=0; -J[f+56>>2]=0;J[f+32>>2]=0;g=J[a+328>>2];b=J[659585];z:{if(!(K[a+362|0]&8|b>>>0>=M[a+188>>2])){fl(a,1,33151,b);J[a+212>>2]=1;J[a+172>>2]=-1;c=J[a+36>>2];if(!c)break z;b=J[c+40>>2];if(b){gc[b|0](J[c+12>>2]);c=J[a+36>>2];J[c+40>>2]=0}J[c+12>>2]=39181;J[c+16>>2]=39181;break z}if(J[a+68>>2]){b=J[a+36>>2];J[f+40>>2]=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2];J[f+44>>2]=J[b+28>>2]}A:{B:{C:{D:{c=J[a+236>>2];if(!c){b=J[a+240>>2];E:{if((b|0)>0){c=J[a+244>>2];b=0;break E}J[a+240>>2]=b<<1;c=gc[J[659452]](J[a+244>> -2],b<<3)|0;if(!c)break D;J[a+244>>2]=c;b=J[a+236>>2]}J[(b<<2)+c>>2]=-1;b=J[a+236>>2];J[a+236>>2]=b+1;J[a+232>>2]=(b<<2)+c;break A}b=J[a+240>>2];e=J[J[a+232>>2]>>2];if((e|0)==-2){F:{if((b|0)>(c|0)){d=J[a+244>>2];break F}J[a+240>>2]=b<<1;d=gc[J[659452]](J[a+244>>2],b<<3)|0;if(!d)break C;J[a+244>>2]=d;c=J[a+236>>2]}J[(c<<2)+d>>2]=-1;b=J[a+236>>2];J[a+236>>2]=b+1;J[a+232>>2]=(b<<2)+d;break A}G:{if((b|0)>(c|0)){d=J[a+244>>2];break G}J[a+240>>2]=b<<1;d=gc[J[659452]](J[a+244>>2],b<<3)|0;if(!d)break B;J[a+ -244>>2]=d;c=J[a+236>>2]}J[(c<<2)+d>>2]=e;b=J[a+236>>2];J[a+236>>2]=b+1;J[a+232>>2]=(b<<2)+d;break A}ke(a,0);J[a+240>>2]=J[a+240>>2]/2;break A}ke(a,0);J[a+240>>2]=J[a+240>>2]/2;break A}ke(a,0);J[a+240>>2]=J[a+240>>2]/2}j=J[J[a+36>>2]+28>>2];H:{if(J[a+324>>2]){b=g$(a,f+60|0,f+56|0,f+32|0);break H}b=j$(a)}if(J[a+172>>2]==-1)break z;if(!b){b=J[a+236>>2];if((b|0)<=0)break z;d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2];J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1;break z}I:{J:{e=J[a+188>>2];c=J[a+192>> -2];K:{if((e|0)<(c|0)){d=J[a+196>>2];break K}d=gc[J[659452]](J[a+196>>2],c<<3)|0;if(!d)break J;J[a+196>>2]=d;J[a+192>>2]=J[a+192>>2]<<1;e=J[a+188>>2]}J[(e<<2)+d>>2]=b;J[a+188>>2]=e+1;J[a+184>>2]=b;break I}ke(a,0)}h=J[a+52>>2];L:{M:{N:{e=J[a+36>>2];c=J[e+16>>2];d=K[c|0]-47|0;if(d)if((d|0)==15)break N;else break M;if(K[c+1|0]!=62)break M;J[a+200>>2]=J[a+200>>2]+2;J[e+16>>2]=c+2;J[e+32>>2]=J[e+32>>2]+2;c=K[c+2|0];if((c|0)==37){Od(a);e=J[a+36>>2];c=K[J[e+16>>2]]}O:{if(c&255)break O;if((Cd(e)|0)>0)break O; -ze(a)}c=J[a>>2];P:{if(J[a+324>>2]){if(!c)break P;c=J[c+120>>2];if(J[a+212>>2]|!c)break P;gc[c|0](J[a+4>>2],b,J[f+60>>2],J[f+56>>2]);break P}if(!c)break P;c=J[c+60>>2];if(J[a+212>>2]|!c)break P;gc[c|0](J[a+4>>2],b)}b=J[a+188>>2];if((b|0)>0){d=b-1|0;J[a+188>>2]=d;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0}b=J[a+236>>2];if((b|0)>0){d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2];J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1}c=J[a+328>>2];Q:{if(!J[a+336>>2]|(g|0)==(c|0))break Q; -d=c-g|0;if((g|0)<0){J[f+16>>2]=d;gc[J[659549]](J[689514],36633,f+16|0);c=J[a+328>>2];d=c}if((c|0)<=0|(d|0)<=0)break Q;if(d>>>0>=4){g=d&-4;e=0;while(1){b=c<<2;J[(b+J[a+336>>2]|0)-4>>2]=0;J[(b+J[a+336>>2]|0)-8>>2]=0;J[(b+J[a+336>>2]|0)-12>>2]=0;c=c-4|0;J[J[a+336>>2]+(c<<2)>>2]=0;e=e+4|0;if((g|0)!=(e|0))continue;break}}b=d&3;if(b){d=0;while(1){c=c-1|0;J[J[a+336>>2]+(c<<2)>>2]=0;d=d+1|0;if((b|0)!=(d|0))continue;break}}J[a+328>>2]=c}if(!h|!J[a+68>>2])break z;b=J[a+36>>2];J[f+48>>2]=(J[b+36>>2]+J[b+16>> -2]|0)-J[b+12>>2];b=J[b+28>>2];J[f+36>>2]=h;J[f+52>>2]=b;Aw(a,f+36|0);break z}J[e+16>>2]=c+1;J[e+32>>2]=J[e+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(!K[c+1|0])Cd(e);jB(a);if(J[a+172>>2]==-1)break z;c=K[J[J[a+36>>2]+16>>2]];if((c-9&255)>>>0<2|(c|0)==13|c>>>0>31)break L;iB(a,77,36337,b,j,0);nB(a);R:{if(!a)break R;b=J[a+188>>2];if((b|0)<=0)break R;d=b-1|0;J[a+188>>2]=d;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0}b=J[a+236>>2];if((b|0)>0){d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2]; -J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1}b=J[a+328>>2];if((b|0)==(g|0))break z;f$(a,b-g|0);break z}iB(a,73,36378,b,j,0);b=J[a+56>>2];if((b|0)>0){d=b-1|0;J[a+56>>2]=d;c=J[a+64>>2];J[a+52>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0}b=J[a+188>>2];if((b|0)>0){d=b-1|0;J[a+188>>2]=d;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0}b=J[a+236>>2];if((b|0)>0){d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2];J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1}c= -J[a+328>>2];S:{if(!J[a+336>>2]|(g|0)==(c|0))break S;d=c-g|0;if((g|0)<0){J[f>>2]=d;gc[J[659549]](J[689514],36633,f);c=J[a+328>>2];d=c}if((c|0)<=0|(d|0)<=0)break S;if(d>>>0>=4){g=d&-4;e=0;while(1){b=c<<2;J[(b+J[a+336>>2]|0)-4>>2]=0;J[(b+J[a+336>>2]|0)-8>>2]=0;J[(b+J[a+336>>2]|0)-12>>2]=0;c=c-4|0;J[J[a+336>>2]+(c<<2)>>2]=0;e=e+4|0;if((g|0)!=(e|0))continue;break}}b=d&3;if(b){d=0;while(1){c=c-1|0;J[J[a+336>>2]+(c<<2)>>2]=0;d=d+1|0;if((b|0)!=(d|0))continue;break}}J[a+328>>2]=c}if(!h|!J[a+68>>2])break z; -b=J[a+36>>2];J[f+48>>2]=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2];b=J[b+28>>2];J[f+36>>2]=h;J[f+52>>2]=b;Aw(a,f+36|0);break z}T:{if(J[a+324>>2]){e$(a,J[f+60>>2],J[f+56>>2],j,J[a+328>>2]-g|0,J[f+32>>2]);b=J[a+188>>2];if((b|0)<=0)break T;d=b-1|0;J[a+188>>2]=d;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0;break T}i$(a,j)}if(!h|!J[a+68>>2])break z;b=J[a+36>>2];J[f+48>>2]=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2];b=J[b+28>>2];J[f+36>>2]=h;J[f+52>>2]=b;Aw(a,f+36|0)}bc=f- -64|0;break c}q$(a)}c= -J[a+36>>2];if(!(J[a+292>>2]|(J[c+20>>2]-J[c+16>>2]|0)>249)){Hd(a);c=J[a+36>>2]}b=J[c+16>>2];U:{if(K[b|0])break U;d=J[a+40>>2];if((d|0)<=1)break U;while(1){V:{W:{X:{if(!J[689531]){b=d-1|0;J[a+40>>2]=b;c=J[a+48>>2];break X}J[k+16>>2]=d;c=0;gc[J[659549]](J[689514],36109,k+16|0);d=J[a+40>>2];if((d|0)<=0)break V;b=d-1|0;J[a+40>>2]=b;c=J[a+48>>2];f=0;e=0;if((d|0)==1)break W}f=b;e=J[((d<<2)+c|0)-8>>2]}J[a+36>>2]=e;b=(f<<2)+c|0;c=J[b>>2];J[b>>2]=0}dh(c);b=J[a+36>>2];Y:{if(K[J[b+16>>2]])break Y;if((Cd(b)| -0)>0)break Y;d=J[a+40>>2];if((d|0)>=2)continue}c=J[a+36>>2];b=J[c+16>>2];if(K[b|0])break U;d=J[a+40>>2];if((d|0)>1)continue;break}}if(!(J[a+292>>2]|(b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)){Pg(a);c=J[a+36>>2]}if(J[c+36>>2]!=(m|0)|J[c+16>>2]!=(i|0))continue;break}if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=1;J[k+4>>2]=30819;J[k>>2]=5012;Cc(0,0,0,a,0,1,1,3,30819,0,0,0,32761,k);J[a+12>>2]=0}J[a+212>>2]=1;J[a+172>>2]=-1;d=J[a+36>>2];if(!d)break b;b=J[d+40>>2];if(b){gc[b|0](J[d+12>>2]);d=J[a+36>> -2];J[d+40>>2]=0}J[d+12>>2]=39181;J[d+16>>2]=39181}bc=k+32|0}function uVa(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;e=bc+-64|0;bc=e;d=mp(a,b,c,d);J[d+216>>2]=0;J[d+220>>2]=0;J[d>>2]=831856;J[d+232>>2]=0;J[d+236>>2]=0;J[d+224>>2]=0;J[d+240>>2]=0;J[d+244>>2]=0;J[d+248>>2]=0;J[d+252>>2]=0;J[d+256>>2]=0;J[d+260>>2]=0;l=d+264|0;a=l;J[a>>2]=0;J[a+4>>2]=0;J[d+272>>2]=0;J[d+276>>2]=0;J[d+280>>2]=0;J[d+284>>2]=0;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;a=J[b+ -24>>2];J[695492]=0;ha(3207,c|0,a|0,e+32|0,0)|0;a=J[695492];J[695492]=0;k=d+276|0;a:{b:{c:{if((a|0)==1)break c;H[d+208|0]=0;J[695492]=0;a=ha(3203,J[e+40>>2],812652,e+16|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(J[a>>2]==1)H[d+208|0]=J[e+24>>2];J[695492]=0;a=e+16|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[d+212>>2]=0;J[695492]=0;a=ha(3203,J[e+40>>2],831904,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(J[a>>2]==1)J[d+212>>2]=J[e+24>>2];J[695492]=0;a=e+16|0;_(3205, -a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;a=ha(3203,J[e+40>>2],831E3,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(J[a>>2]==6){J[d+4>>2]=J[d+4>>2]|32768;J[695492]=0;J[e+48>>2]=13;a=ha(3283,J[e+24>>2],0,e+48|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;i=J[a>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:i;J[695492]=0;a=e+48|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;O[d+232>>3]=i;J[695492]=0;J[e+48>>2]=13;a=ha(3283,J[e+24>>2],1,a|0,0)| -0;b=J[695492];J[695492]=0;if((b|0)==1)break c;i=0;i=J[a>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:i;J[695492]=0;a=e+48|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;O[d+256>>3]=i;J[695492]=0;J[e+48>>2]=13;a=ha(3283,J[e+24>>2],2,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;i=0;i=J[a>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:i;J[695492]=0;a=e+48|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;O[d+248>>3]=i;J[695492]=0;J[e+48>>2]=13;a=ha(3283, -J[e+24>>2],3,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;i=0;i=J[a>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:i;J[695492]=0;_(3205,e+48|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;O[d+240>>3]=i}J[695492]=0;a=e+16|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;a=ha(3203,J[e+40>>2],832067,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{if(J[a>>2]!=6)break p;J[d+4>>2]=J[d+4>>2]|65536;c=J[e+24>>2];if(J[c+12>> -2]<=0)break p;a=0;while(1){J[695492]=0;b=ha(3283,c|0,a|0,e|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o;q:{if(J[b>>2]-3>>>0>=4294967294){if(a&1)i=O[d+8>>3]-(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3]);else i=(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3])-O[d+16>>3];c=J[d+280>>2];g=J[d+284>>2];if(c>>>0>>0){O[c>>3]=i;J[d+280>>2]=c+8;break q}r:{s:{t:{f=J[k>>2];j=c-f>>3;b=j+1|0;u:{if(b>>>0>=536870912){J[695492]=0;_(2399,k|0);a=J[695492];J[695492]=0;if((a|0)==1)break u;break a}g=g-f|0;h=g>>2;h=g>>>0>=2147483640?536870911: -b>>>0>>0?h:b;if(!h){g=0;break s}if(h>>>0<536870912)break t;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a}b=Z()|0;break b}J[695492]=0;g=$(4,h<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r}b=(j<<3)+g|0;O[b>>3]=i;j=b+8|0;if((c|0)!=(f|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(f|0))continue;break}J[d+284>>2]=(h<<3)+g;J[d+280>>2]=j;J[d+276>>2]=b;if(!f)break q;qc(f);break q}b=Z()|0;break b}c=J[d+280>>2];g=J[d+284>>2];if(c>>>0>>0){J[c>>2]=0;J[c+4>>2]=0;J[d+280>>2]= -c+8;break q}v:{w:{x:{f=J[k>>2];j=c-f>>3;b=j+1|0;y:{if(b>>>0>=536870912){J[695492]=0;_(2399,k|0);break y}g=g-f|0;h=g>>2;h=g>>>0>=2147483640?536870911:b>>>0>>0?h:b;if(!h){g=0;break w}if(h>>>0<536870912)break x;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;b=Z()|0;break b}J[695492]=0;g=$(4,h<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break v}b=(j<<3)+g|0;J[b>>2]=0;J[b+4>>2]=0;j=b+8|0;if((c|0)!=(f|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(f|0))continue;break}J[d+284>> -2]=(h<<3)+g;J[d+280>>2]=j;J[d+276>>2]=b;if(!f)break q;qc(f);break q}b=Z()|0;break b}J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break o;a=a+1|0;c=J[e+24>>2];if((a|0)>2])continue;break}}J[695492]=0;_(3205,e+16|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;la(3292,e+48|0,d|0,e+32|0,813376,17);a=J[695492];J[695492]=0;if((a|0)==1)break n;if(H[d+227|0]<0)qc(J[d+216>>2]);a=J[e+52>>2];J[d+216>>2]=J[e+48>>2];J[d+220>>2]=a;J[d+224>>2]=J[e+56>>2];J[695492]=0;a=e+16|0;b= -ha(3203,J[e+40>>2],828535,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;if(J[b>>2]==4){J[d+4>>2]=J[d+4>>2]|262144;p=d,q=fw(a),H[p+210|0]=q}J[695492]=0;a=e+16|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;a=ha(3203,J[e+40>>2],829320,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;z:{if(J[a>>2]!=4)break z;H[d+209|0]=0;J[d+4>>2]=J[d+4>>2]|1048576;if(J[e+16>>2]!=4)break z;a=J[e+24>>2];if(Ec(a,832072)){if(Ec(a,832300))break z;a=2}else a=1;H[d+209|0]=a}J[695492]=0;a= -e+16|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;a=ha(3203,J[e+40>>2],832510,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(J[a>>2]!=3)break d;J[d+4>>2]=J[d+4>>2]|2097152;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[695492]=0;g=$(3185,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;b=$(3328,J[e+24>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[b+8>>2];if((a|0)<2)break e;a=J[J[b>>2]+4>>2];J[695492]=0;a=sd(a,832534); -f=J[695492];J[695492]=0;c=1;if((f|0)==1)break m;if(!a)break h;a=J[b+8>>2];if((a|0)<3)break e;a=J[J[b>>2]+8>>2];J[695492]=0;a=sd(a,832534);c=J[695492];J[695492]=0;if((c|0)==1)break m;if(!a){c=2;break h}a=J[b+8>>2];if((a|0)<4)break e;a=J[J[b>>2]+12>>2];J[695492]=0;a=sd(a,832534);c=J[695492];J[695492]=0;if((c|0)==1)break m;if(!a){c=3;break h}a=J[J[b>>2]+12>>2];J[695492]=0;a=sd(a,832631);c=J[695492];J[695492]=0;if((c|0)==1)break m;if(!a){c=3;break i}c=4;a=J[b+8>>2];if((a|0)<=4)break e;while(1){a=c<<2; -f=J[a+J[b>>2]>>2];J[695492]=0;f=sd(f,832534);h=J[695492];J[695492]=0;A:{B:{if((h|0)==1)break B;if(!f)break h;f=J[a+J[b>>2]>>2];J[695492]=0;f=sd(f,832631);h=J[695492];J[695492]=0;if((h|0)==1)break B;if(!f)break i;a=J[a+J[b>>2]>>2];J[695492]=0;a=sd(a,832815);f=J[695492];J[695492]=0;if((f|0)!=1)break A}b=Z()|0;break b}if(!a){J[695492]=0;a=$(4,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;p=a,r=Wf(J[J[(J[b>>2]+(c<<2)|0)-16>>2]+4>>2]),O[p>>3]=r;J[695492]=0;da(3330,g|0,a|0);a=J[695492];J[695492]=0;if((a| -0)==1)break f;J[695492]=0;a=$(4,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;p=a,r=Wf(J[J[(J[b>>2]+(c<<2)|0)-12>>2]+4>>2]),O[p>>3]=r;J[695492]=0;da(3330,g|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;a=$(4,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;p=a,r=Wf(J[J[(J[b>>2]+(c<<2)|0)-8>>2]+4>>2]),O[p>>3]=r;J[695492]=0;da(3330,g|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;a=$(4,8)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break g;break f}a=J[b+8>>2];c=c+1|0;if((a| -0)>(c|0))continue;break}break e}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;qc(a);break b}b=Z()|0;break b}J[695492]=0;a=$(4,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;p=a,r=Wf(J[J[(J[b>>2]+(c<<2)|0)-12>>2]+4>>2]),O[p>>3]=r;J[695492]=0;da(3330,g|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;a=$(4,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;p=a,r=Wf(J[J[(J[b>>2]+(c<<2)|0)-8>>2]+4>>2]),O[p>>3]=r;J[695492]=0;da(3330,g|0,a|0);a=J[695492];J[695492]= -0;if((a|0)==1)break f;J[695492]=0;a=$(4,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;break g}J[695492]=0;a=$(4,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f}p=a,r=Wf(J[J[(J[b>>2]+(c<<2)|0)-4>>2]+4>>2]),O[p>>3]=r;J[695492]=0;da(3330,g|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;a=J[b+8>>2];break e}b=Z()|0;break b}if((a|0)>0){c=0;while(1){f=J[J[b>>2]+(c<<2)>>2];if(f){qc(Rc(f));a=J[b+8>>2]}c=c+1|0;if((c|0)<(a|0))continue;break}}qc(dd(b));a=0;n=J[g+8>>2];C:{if((n|0)<=0)break C;D:{while(1){E:{m= -J[J[g>>2]+(a<<2)>>2];c=J[d+268>>2];F:{if((c|0)!=J[d+272>>2]){O[c>>3]=O[m>>3];J[d+268>>2]=c+8;break F}G:{H:{f=J[l>>2];b=c-f|0;o=b>>3;h=o+1|0;I:{if(h>>>0>=536870912){J[695492]=0;_(2399,l|0);break I}j=b>>2;h=b>>>0>=2147483640?536870911:h>>>0>>0?j:h;if(!h){j=0;break G}if(h>>>0<536870912)break H;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;b=Z()|0;break b}J[695492]=0;j=$(4,h<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E}b=(o<<3)+j|0;O[b>>3]=O[m>>3];m=b+8|0;if((c|0)!=(f|0))while(1){b= -b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(f|0))continue;break}J[d+272>>2]=(h<<3)+j;J[d+268>>2]=m;J[d+264>>2]=b;if(!f)break F;qc(f)}a=a+1|0;if((n|0)!=(a|0))continue;break D}break}b=Z()|0;break b}c=0;b=J[g+8>>2];if((b|0)<=0)break C;while(1){a=J[J[g>>2]+(c<<2)>>2];if(a){qc(a);b=J[g+8>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}}qc(dd(g))}J[695492]=0;_(3205,e+16|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;_(3205,e+32|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;bc=e- -64|0;return d|0}b= -Z()|0}a=J[k>>2];if(a){J[d+280>>2]=a;qc(a)}a=J[l>>2];if(a){J[d+268>>2]=a;qc(a)}if(H[d+227|0]<0)qc(J[d+216>>2]);lh(d);ba(b|0);B()}B()}function RXa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=bc-16|0;bc=f;d=K[a+11|0];a:{if((d<<24>>24<0?J[a+4>>2]:d)>>>0<8)break a;if(J[zh(a,6)>>2]!=43)break a;if(J[zh(a,0)>>2]-65>>>0>25)break a;if(J[zh(a,1)>>2]-65>>>0>25)break a;if(J[zh(a,2)>>2]-65>>>0>25)break a;if(J[zh(a,3)>>2]-65>>>0>25)break a;if(J[zh(a,4)>>2]-65>>>0>25)break a;if(J[zh(a,5)>>2]-65>>>0>25)break a;Du(a, -0,7)}d=rc(64);J[f+4>>2]=d;J[f+8>>2]=13;J[f+12>>2]=-2147483632;J[d+48>>2]=J[193900];e=J[193899];J[d+40>>2]=J[193898];J[d+44>>2]=e;e=J[193897];J[d+32>>2]=J[193896];J[d+36>>2]=e;e=J[193895];J[d+24>>2]=J[193894];J[d+28>>2]=e;e=J[193893];J[d+16>>2]=J[193892];J[d+20>>2]=e;e=J[193891];J[d+8>>2]=J[193890];J[d+12>>2]=e;e=J[193889];J[d>>2]=J[193888];J[d+4>>2]=e;J[d+52>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{if((d|0)!=1){if(H[f+ -15|0]<0)qc(J[f+4>>2]);d=rc(48);J[f+4>>2]=d;J[f+8>>2]=8;J[f+12>>2]=-2147483636;e=J[194156];J[d+24>>2]=J[194155];J[d+28>>2]=e;e=J[194154];J[d+16>>2]=J[194153];J[d+20>>2]=e;e=J[194152];J[d+8>>2]=J[194151];J[d+12>>2]=e;e=J[194150];J[d>>2]=J[194149];J[d+4>>2]=e;J[d+32>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(32);J[f+4>>2]=d;J[f+8>>2]=7;J[f+12>>2]=-2147483640;J[d+24>>2]=J[194450];e=J[194449];J[d+16>>2]=J[194448];J[d+20>>2]=e;e= -J[194447];J[d+8>>2]=J[194446];J[d+12>>2]=e;e=J[194445];J[d>>2]=J[194444];J[d+4>>2]=e;J[d+28>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break t;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(64);J[f+4>>2]=d;J[f+8>>2]=13;J[f+12>>2]=-2147483632;J[d+48>>2]=J[194799];e=J[194798];J[d+40>>2]=J[194797];J[d+44>>2]=e;e=J[194796];J[d+32>>2]=J[194795];J[d+36>>2]=e;e=J[194794];J[d+24>>2]=J[194793];J[d+28>>2]=e;e=J[194792];J[d+16>>2]=J[194791];J[d+20>>2]=e;e=J[194790];J[d+8>>2]=J[194789];J[d+ -12>>2]=e;e=J[194788];J[d>>2]=J[194787];J[d+4>>2]=e;J[d+52>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break s;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(64);J[f+4>>2]=d;J[f+8>>2]=13;J[f+12>>2]=-2147483632;J[d+48>>2]=J[195062];e=J[195061];J[d+40>>2]=J[195060];J[d+44>>2]=e;e=J[195059];J[d+32>>2]=J[195058];J[d+36>>2]=e;e=J[195057];J[d+24>>2]=J[195056];J[d+28>>2]=e;e=J[195055];J[d+16>>2]=J[195054];J[d+20>>2]=e;e=J[195053];J[d+8>>2]=J[195052];J[d+12>>2]=e;e=J[195051];J[d>>2]=J[195050]; -J[d+4>>2]=e;J[d+52>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(64);J[f+4>>2]=d;J[f+8>>2]=12;J[f+12>>2]=-2147483632;e=J[195311];J[d+40>>2]=J[195310];J[d+44>>2]=e;e=J[195309];J[d+32>>2]=J[195308];J[d+36>>2]=e;e=J[195307];J[d+24>>2]=J[195306];J[d+28>>2]=e;e=J[195305];J[d+16>>2]=J[195304];J[d+20>>2]=e;e=J[195303];J[d+8>>2]=J[195302];J[d+12>>2]=e;e=J[195301];J[d>>2]=J[195300];J[d+4>>2]=e;J[d+48>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)| -0;d=J[695492];J[695492]=0;if((d|0)==1)break q;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(48);J[f+4>>2]=d;J[f+8>>2]=8;J[f+12>>2]=-2147483636;e=J[195585];J[d+24>>2]=J[195584];J[d+28>>2]=e;e=J[195583];J[d+16>>2]=J[195582];J[d+20>>2]=e;e=J[195581];J[d+8>>2]=J[195580];J[d+12>>2]=e;e=J[195579];J[d>>2]=J[195578];J[d+4>>2]=e;J[d+32>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break p;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(64);J[f+4>>2]=d;J[f+8>>2]=14;J[f+12>>2]=-2147483632;e=J[195829];J[d+ -48>>2]=J[195828];J[d+52>>2]=e;e=J[195827];J[d+40>>2]=J[195826];J[d+44>>2]=e;e=J[195825];J[d+32>>2]=J[195824];J[d+36>>2]=e;e=J[195823];J[d+24>>2]=J[195822];J[d+28>>2]=e;e=J[195821];J[d+16>>2]=J[195820];J[d+20>>2]=e;e=J[195819];J[d+8>>2]=J[195818];J[d+12>>2]=e;e=J[195817];J[d>>2]=J[195816];J[d+4>>2]=e;J[d+56>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break o;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(64);J[f+4>>2]=d;J[f+8>>2]=14;J[f+12>>2]=-2147483632;e=J[196074];J[d+48>>2]=J[196073]; -J[d+52>>2]=e;e=J[196072];J[d+40>>2]=J[196071];J[d+44>>2]=e;e=J[196070];J[d+32>>2]=J[196069];J[d+36>>2]=e;e=J[196068];J[d+24>>2]=J[196067];J[d+28>>2]=e;e=J[196066];J[d+16>>2]=J[196065];J[d+20>>2]=e;e=J[196064];J[d+8>>2]=J[196063];J[d+12>>2]=e;e=J[196062];J[d>>2]=J[196061];J[d+4>>2]=e;J[d+56>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(64);J[f+4>>2]=d;J[f+8>>2]=13;J[f+12>>2]=-2147483632;J[d+48>>2]=J[196289];e=J[196288];J[d+40>> -2]=J[196287];J[d+44>>2]=e;e=J[196286];J[d+32>>2]=J[196285];J[d+36>>2]=e;e=J[196284];J[d+24>>2]=J[196283];J[d+28>>2]=e;e=J[196282];J[d+16>>2]=J[196281];J[d+20>>2]=e;e=J[196280];J[d+8>>2]=J[196279];J[d+12>>2]=e;e=J[196278];J[d>>2]=J[196277];J[d+4>>2]=e;J[d+52>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break m;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(64);J[f+4>>2]=d;J[f+8>>2]=14;J[f+12>>2]=-2147483632;e=J[196493];J[d+48>>2]=J[196492];J[d+52>>2]=e;e=J[196491];J[d+40>>2]=J[196490]; -J[d+44>>2]=e;e=J[196489];J[d+32>>2]=J[196488];J[d+36>>2]=e;e=J[196487];J[d+24>>2]=J[196486];J[d+28>>2]=e;e=J[196485];J[d+16>>2]=J[196484];J[d+20>>2]=e;e=J[196483];J[d+8>>2]=J[196482];J[d+12>>2]=e;e=J[196481];J[d>>2]=J[196480];J[d+4>>2]=e;J[d+56>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(48);J[f+4>>2]=d;J[f+8>>2]=9;J[f+12>>2]=-2147483636;J[d+32>>2]=J[196721];e=J[196720];J[d+24>>2]=J[196719];J[d+28>>2]=e;e=J[196718];J[d+16>>2]= -J[196717];J[d+20>>2]=e;e=J[196716];J[d+8>>2]=J[196715];J[d+12>>2]=e;e=J[196714];J[d>>2]=J[196713];J[d+4>>2]=e;J[d+36>>2]=0;J[695492]=0;aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;if(H[f+15|0]<0)qc(J[f+4>>2]);d=rc(48);J[f+4>>2]=d;J[f+8>>2]=11;J[f+12>>2]=-2147483636;J[d+40>>2]=J[196942];e=J[196941];J[d+32>>2]=J[196940];J[d+36>>2]=e;e=J[196939];J[d+24>>2]=J[196938];J[d+28>>2]=e;e=J[196937];J[d+16>>2]=J[196936];J[d+20>>2]=e;e=J[196935];J[d+8>>2]=J[196934];J[d+12>>2]=e;e=J[196933]; -J[d>>2]=J[196932];J[d+4>>2]=e;J[d+44>>2]=0;J[695492]=0;d=aa(3192,a|0,f+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;if(H[f+15|0]<0)qc(J[f+4>>2]);if(d){H[b|0]=1;H[c|0]=1}d=rc(64);J[f+4>>2]=d;J[f+8>>2]=12;J[f+12>>2]=-2147483632;e=J[197181];J[d+40>>2]=J[197180];J[d+44>>2]=e;e=J[197179];J[d+32>>2]=J[197178];J[d+36>>2]=e;e=J[197177];J[d+24>>2]=J[197176];J[d+28>>2]=e;e=J[197175];J[d+16>>2]=J[197174];J[d+20>>2]=e;e=J[197173];J[d+8>>2]=J[197172];J[d+12>>2]=e;e=J[197171];J[d>>2]=J[197170];J[d+4>>2]= -e;J[d+48>>2]=0;J[695492]=0;d=aa(3192,a|0,f+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;if(H[f+15|0]<0)qc(J[f+4>>2]);if(d){H[b|0]=1;H[c|0]=1}d=rc(32);J[f+4>>2]=d;J[f+8>>2]=6;J[f+12>>2]=-2147483640;e=J[197391];J[d+16>>2]=J[197390];J[d+20>>2]=e;e=J[197389];J[d+8>>2]=J[197388];J[d+12>>2]=e;e=J[197387];J[d>>2]=J[197386];J[d+4>>2]=e;J[d+24>>2]=0;J[695492]=0;d=aa(3192,a|0,f+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;if(H[f+15|0]<0)qc(J[f+4>>2]);if(d)H[b|0]=1;d=rc(32);J[f+4>>2]=d;J[f+8>>2]= -4;J[f+12>>2]=-2147483640;e=J[197597];J[d+8>>2]=J[197596];J[d+12>>2]=e;e=J[197595];J[d>>2]=J[197594];J[d+4>>2]=e;J[d+16>>2]=0;J[695492]=0;d=aa(3192,a|0,f+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;if(H[f+15|0]<0)qc(J[f+4>>2]);if(d)H[b|0]=1;b=rc(48);J[f+4>>2]=b;J[f+8>>2]=8;J[f+12>>2]=-2147483636;d=J[197796];J[b+24>>2]=J[197795];J[b+28>>2]=d;d=J[197794];J[b+16>>2]=J[197793];J[b+20>>2]=d;d=J[197792];J[b+8>>2]=J[197791];J[b+12>>2]=d;d=J[197790];J[b>>2]=J[197789];J[b+4>>2]=d;J[b+32>>2]=0;J[695492]= -0;b=aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(H[f+15|0]<0)qc(J[f+4>>2]);if(b)H[c|0]=1;b=rc(32);J[f+4>>2]=b;J[f+8>>2]=6;J[f+12>>2]=-2147483640;d=J[198002];J[b+16>>2]=J[198001];J[b+20>>2]=d;d=J[198E3];J[b+8>>2]=J[197999];J[b+12>>2]=d;d=J[197998];J[b>>2]=J[197997];J[b+4>>2]=d;J[b+24>>2]=0;J[695492]=0;b=aa(3192,a|0,f+4|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;if(H[f+15|0]<0)qc(J[f+4>>2]);if(b)H[c|0]=1;b=rc(32);J[f+4>>2]=b;J[f+8>>2]=7;J[f+12>>2]=-2147483640;J[b+24>>2]= -J[198171];d=J[198170];J[b+16>>2]=J[198169];J[b+20>>2]=d;d=J[198168];J[b+8>>2]=J[198167];J[b+12>>2]=d;d=J[198166];J[b>>2]=J[198165];J[b+4>>2]=d;J[b+28>>2]=0;J[695492]=0;a=aa(3192,a|0,f+4|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;if(H[f+15|0]<0)qc(J[f+4>>2]);if(a)H[c|0]=1;bc=f+16|0;return}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()| -0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c; -break b}a=Z()|0;if(H[f+15|0]>=0)break c;qc(J[f+4>>2])}ba(a|0);B()}qc(J[f+4>>2]);ba(a|0);B()}function Ffb(a){a=a|0;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=bc-48|0;bc=g;f=J[a+720>>2];a:{if(f)break a;b:{c:{if(!(!J[a+736>>2]|!(L[a+6>>1]&32767|K[a+9|0]&128))){n=J[a+548>>2];e=J[a+100>>2];if(!J[a+744>>2]){J[g+16>>2]=-1;J[g+20>>2]=-1;i=L[a+340>>1];if(!i){f=0;break b}h=J[a+356>>2];while(1){f=h+P(b,20)|0;d:{if(L[f+6>>1]!=25|!L[f+8>>1])break d;e:{f:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break d; -c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break e;break d;case 0:break f;default:break d}if(L[f+2>>1])break d;c=g+16|0;if(!L[f+4>>1])break e;if(J[g+16>>2]!=-1)break d}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d=J[g+16>>2];g:{h:{b=J[g+20>>2];if((b|0)>=0)break h;i:{if((d|0)>=0)break i;J[g+16>>2]=-1;J[g+20>>2]=-1;b=0;while(1){f=h+P(b,20)|0;j:{if(L[f+6>>1]!=16|!L[f+8>>1])break j;k:{l:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break j;c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break k;break j;case 0:break l; -default:break j}if(L[f+2>>1])break j;c=g+16|0;if(!L[f+4>>1])break k;if(J[g+16>>2]!=-1)break j}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d=J[g+16>>2];b=J[g+20>>2];if((b|0)>=0)break h;if((d|0)>=0)break i;J[g+16>>2]=-1;J[g+20>>2]=-1;b=0;while(1){f=h+P(b,20)|0;m:{if(L[f+6>>1]!=1|!L[f+8>>1])break m;n:{o:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break m;c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break n;break m;case 0:break o;default:break m}if(L[f+2>>1])break m;c=g+16|0;if(!L[f+4>>1])break n;if(J[g+ -16>>2]!=-1)break m}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d=J[g+16>>2];b=J[g+20>>2];if((b|0)>=0)break h;f=0;if((d|0)<0)break b}if((b|0)!=-1)break h;b=0;break g}b=A4(e,J[a+368>>2],h+P(b,20)|0,1705)}p:{if(b|(d|0)==-1)break p;c=J[a+368>>2];h=J[a+100>>2];k=J[a+356>>2];b=0;J[g+40>>2]=0;l=k+P(d,20)|0;f=Zd(h,L[l+8>>1]+1|0,g+40|0);if(J[g+40>>2])break p;b=nd(c,J[l+12>>2]);J[g+40>>2]=b;q:{if(b)break q;b=Ue(c,L[l+8>>1]);J[g+40>>2]=b;if(b)break q;b=f;r:{i=L[l+8>>1];if(i){j=J[c+32>>2];while(1){m=H[j| -0];if(m-58>>>0<=4294967285&(m&-33)-91>>>0<4294967270)break r;H[b|0]=m;j=j+1|0;b=b+1|0;i=i-1|0;if(i)continue;break}}H[b|0]=0;ne(c);b=f;break p}ne(c)}if(f)gc[J[h+8>>2]](h,f);b=0;J[l+12>>2]=0;I[l+8>>1]=0;f=k+P(d,20)|0;c=J[f+16>>2];if(c)gc[J[h+8>>2]](h,c);J[f+16>>2]=0}if(!b){f=0;break b}f=Qc(b);if(f>>>0>=92){H[b+91|0]=0;f=91}J[a+748>>2]=f;J[a+744>>2]=b}f=0;gc[J[n+40>>2]](a,g+32|0,g+28|0,0,g+24|0)|0;s:{t:{b=J[a+4>>2]&2147418112;if(!b|K[a+9|0]&128)break t;h=(b>>>16|0)-1|0;b=J[J[g+24>>2]+16>>2];c=J[(P(h, -12)+b|0)+8>>2];d=J[a+540>>2];J[g+40>>2]=0;if(!((c|0)!=6&c-256>>>0>32511)){gc[J[d+144>>2]](a,c&65535,g+40|0)|0;b=J[g+40>>2];if(b)break s;b=J[J[g+24>>2]+16>>2]}gc[J[d+144>>2]](a,L[(P(h,12)+b|0)+4>>1],g+12|0)|0;b=J[g+12>>2];if(!b)break t;b=Zd(e,(J[a+748>>2]+Qc(b)|0)+2|0,g+36|0);if(J[g+36>>2])break b;f=ff(b,J[a+744>>2]);b=f+J[a+748>>2]|0;H[b|0]=45;c=b+1|0;d=J[g+12>>2];b=K[d|0];if(b)while(1){h=b<<24>>24;if(!(!(h-48>>>0<10|h-65>>>0<26)&h-97>>>0>25)){H[c|0]=b;c=c+1|0}b=K[d+1|0];d=d+1|0;if(b)continue;break}H[c| -0]=0;b=J[g+12>>2];if(b)gc[J[e+8>>2]](e,b);d=c+1|0;break c}j=J[J[g+24>>2]+12>>2];b=Zd(e,(J[a+748>>2]+P(J[g+32>>2],17)|0)+1|0,g+36|0);if(J[g+36>>2])break b;f=ff(b,J[a+744>>2]);d=f+J[a+748>>2]|0;if(!J[g+32>>2])break c;b=J[g+28>>2];k=0;while(1){u:{if(J[b>>2]==J[j+8>>2])break u;H[d|0]=95;b=J[J[g+28>>2]>>2];v:{if(!b){H[d+1|0]=48;d=d+2|0;break v}if((b|0)>=0)d=d+1|0;else{H[d+1|0]=45;b=0-b|0;d=d+2|0}l=b&65535;w:{if(b>>>0<65536)break w;e=b>>>16|0;b=g+40|0;c=0;while(1){i=(e>>>0)/10|0;H[b|0]=e-P(i,10)|48;h=c; -c=c+1|0;b=b+1|0;m=e>>>0<10;e=i;if(!m)continue;break}if(g+40>>>0>=b>>>0)break w;e=0;c=h+1&7;if(c)while(1){b=b-1|0;H[d|0]=K[b|0];d=d+1|0;e=e+1|0;if((c|0)!=(e|0))continue;break}if(h>>>0<7)break w;while(1){H[d|0]=K[b-1|0];H[d+1|0]=K[b-2|0];H[d+2|0]=K[b-3|0];H[d+3|0]=K[b-4|0];H[d+4|0]=K[b-5|0];H[d+5|0]=K[b-6|0];H[d+6|0]=K[b-7|0];b=b-8|0;H[d+7|0]=K[b|0];d=d+8|0;if(g+40>>>0>>0)continue;break}}if(!l)break v;H[d|0]=46;b=P(l,10)+5|0;H[d+1|0]=(b>>>16|0)+48;b=P(b&65535,10);H[d+2|0]=b>>>16|48;b=P(b&65534,10); -e=b>>>16|48;H[d+3|0]=e;x:{y:{z:{A:{B:{C:{D:{b=b&65532;if(!b){b=d+3|0;break D}b=P(b,10);e=b>>>16|48;H[d+4|0]=e;b=b&65528;if(!b){b=d+4|0;break D}c=P(b,10);h=c>>>16|0;e=h|48;H[d+5|0]=e;b=d+5|0;c=c&65520;if(!c)break D;if(c>>>0>=34480)break z;if((e|0)==49)break C;if((c|0)==17232){if(!(h&1))break z;e=h+47|0;break A}if(c>>>0>17231)break z;break B}if((b-d|0)!=5)break z;if((e|0)!=49)break B}H[b|0]=48;break y}if((e|0)==48)break y;e=e-1|0}H[b|0]=e}if((e|0)!=48)break x}while(1){H[b|0]=0;b=b-1|0;if(K[b|0]==48)continue; -break}}d=b+1|0}b=J[j+16>>2];c=b>>24;if(!((c|0)==32|!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)){H[d|0]=b>>>24;d=d+1|0;b=J[j+16>>2]}e=b>>>16|0;c=e<<24;E:{if((c|0)==536870912)break E;c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)break E;H[d|0]=e;d=d+1|0;b=J[j+16>>2]}e=b>>>8|0;c=e<<24;F:{if((c|0)==536870912)break F;c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)break F;H[d|0]=e;d=d+1|0;b=J[j+16>>2]}c=b<<24;if((c|0)==536870912)break u;c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)break u;H[d|0]= -b;d=d+1|0}b=J[g+28>>2]+4|0;J[g+28>>2]=b;j=j+24|0;k=k+1|0;if(k>>>0>2])continue;break}break c}d=(Qc(b)+b|0)+1|0;f=b;break c}J[g+32>>2]=-1;J[g+36>>2]=-1;c=L[a+340>>1];if(!c){f=0;break a}e=J[a+356>>2];while(1){f=e+P(b,20)|0;G:{if(L[f+6>>1]!=6|!L[f+8>>1])break G;H:{I:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break G;j=g+36|0;if(L[f+4>>1]==1033|J[g+36>>2]==-1)break H;break G;case 0:break I;default:break G}if(L[f+2>>1])break G;j=g+32|0;if(!L[f+4>>1])break H;if(J[g+32>>2]!=-1)break G}J[j>>2]=b}b= -b+1|0;if((c|0)!=(b|0))continue;break}i=J[g+32>>2];J:{K:{b=J[g+36>>2];if((b|0)>=0)break K;f=0;if((i|0)<0)break a;if((b|0)!=-1)break K;f=0;break J}f=A4(J[a+100>>2],J[a+368>>2],J[a+356>>2]+P(b,20)|0,1706)}if(f|(i|0)==-1)break b;e=J[a+368>>2];l=J[a+356>>2];d=J[a+100>>2];f=0;J[g+40>>2]=0;h=l+P(i,20)|0;b=Zd(d,L[h+8>>1]+1|0,g+40|0);if(J[g+40>>2])break b;f=nd(e,J[h+12>>2]);J[g+40>>2]=f;L:{if(f)break L;f=Ue(e,L[h+8>>1]);J[g+40>>2]=f;if(f)break L;c=b;M:{f=L[h+8>>1];if(f){j=J[e+32>>2];while(1){k=K[j|0];m=k<< -24>>24;if((m|0)<0|!(K[(k>>>3|0)+325264|0]>>>(k&7)&1))break M;H[c|0]=m;j=j+1|0;c=c+1|0;f=f-1|0;if(f)continue;break}}H[c|0]=0;ne(e);f=b;break b}ne(e)}if(b)gc[J[d+8>>2]](d,b);f=0;J[h+12>>2]=0;I[h+8>>1]=0;b=l+P(i,20)|0;c=J[b+16>>2];if(c)gc[J[d+8>>2]](d,c);J[b+16>>2]=0;break b}l=d-f|0;if((l|0)<128)break b;e=0-(l>>>4|0)|0;h=(l&-16)+f|0;i=123456789;d=123456789;c=123456789;j=123456789;while(1){k=i;b=h+(e<<4)|0;i=J[b>>2];i=Hzb(k^P(P(i,597399067)>>>17|P(i,-888307712),-1425107063),19)+d|0;k=d;d=J[b+4>>2];d= -P(Hzb(k^P(P(d,-1425107063)>>>16|P(d,-1752629248),951274213),17)+c|0,5)+197830471|0;k=c;c=J[b+8>>2];c=P(Hzb(k^P(P(c,951274213)>>>15|P(c,-1781923840),-1578923117),15)+j|0,5)-1764942795|0;b=J[b+12>>2];i=P(i,5)+1444728091|0;k=P(Hzb(P(P(b,-1578923117)>>>14|P(b,776732672),597399067)^j,13)+i|0,5)+850148119|0;j=k;e=e+1|0;if(e)continue;break}b=0;N:switch((l&15)-1|0){case 14:b=K[h+14|0]<<16;case 13:b=K[h+13|0]<<8|b;case 12:b=K[h+12|0]^b;k=P(P(b,-1578923117)>>>14|P(b,776732672),597399067)^k;case 11:b=K[h+11| -0]<<24;case 10:b=K[h+10|0]<<16|b;case 9:b=K[h+9|0]<<8^b;case 8:b=K[h+8|0]^b;c=P(P(b,951274213)>>>15|P(b,-1781923840),-1578923117)^c;case 7:b=K[h+7|0]<<24;case 6:b=K[h+6|0]<<16|b;case 5:b=K[h+5|0]<<8^b;case 4:b=K[h+4|0]^b;d=P(P(b,-1425107063)>>>16|P(b,-1752629248),951274213)^d;case 3:b=K[h+3|0]<<24;case 2:b=K[h+2|0]<<16|b;case 1:b=K[h+1|0]<<8^b;case 0:b=K[h|0]^b;i=P(P(b,597399067)>>>17|P(b,-888307712),-1425107063)^i;break;default:break N}b=J[a+748>>2]+f|0;H[b|0]=45;H[b+33|0]=46;H[b+34|0]=46;H[b+35| -0]=46;H[b+36|0]=0;d=d^l;e=c^l;h=l^k;c=(d+(e+h|0)|0)+(i^l)|0;i=P(c>>>16^c,-2048144789);i=P(i>>>13^i,-1028477387);j=i>>>16^i;d=c+d|0;d=P(d>>>16^d,-2048144789);d=P(d>>>13^d,-1028477387);i=d>>>16^d;e=c+e|0;e=P(e>>>16^e,-2048144789);e=P(e>>>13^e,-1028477387);d=e>>>16^e;c=c+h|0;c=P(c>>>16^c,-2048144789);c=P(c>>>13^c,-1028477387);e=c>>>16^c;c=((j+i|0)+d|0)+e|0;e=c+e|0;H[b+32|0]=K[(e&15)+325248|0];H[b+25|0]=K[(e>>>28|0)+325248|0];d=c+d|0;H[b+24|0]=K[(d&15)+325248|0];H[b+31|0]=K[(e>>>4&15)+325248|0];H[b+30| -0]=K[(e>>>8&15)+325248|0];H[b+29|0]=K[(e>>>12&15)+325248|0];H[b+28|0]=K[(e>>>16&15)+325248|0];H[b+27|0]=K[(e>>>20&15)+325248|0];H[b+26|0]=K[(e>>>24&15)+325248|0];H[b+23|0]=K[(d>>>4&15)+325248|0];H[b+22|0]=K[(d>>>8&15)+325248|0];H[b+21|0]=K[(d>>>12&15)+325248|0];H[b+20|0]=K[(d>>>16&15)+325248|0];H[b+19|0]=K[(d>>>20&15)+325248|0];H[b+18|0]=K[(d>>>24&15)+325248|0];e=c+i|0;H[b+16|0]=K[(e&15)+325248|0];H[b+17|0]=K[(d>>>28|0)+325248|0];H[b+15|0]=K[(e>>>4&15)+325248|0];H[b+14|0]=K[(e>>>8&15)+325248|0];H[b+ -13|0]=K[(e>>>12&15)+325248|0];H[b+12|0]=K[(e>>>16&15)+325248|0];H[b+11|0]=K[(e>>>20&15)+325248|0];H[b+10|0]=K[(e>>>24&15)+325248|0];H[b+9|0]=K[(e>>>28|0)+325248|0];H[b+8|0]=K[(c&15)+325248|0];H[b+7|0]=K[(c>>>4&15)+325248|0];H[b+6|0]=K[(c>>>8&15)+325248|0];H[b+5|0]=K[(c>>>12&15)+325248|0];H[b+4|0]=K[(c>>>16&15)+325248|0];H[b+3|0]=K[(c>>>20&15)+325248|0];H[b+2|0]=K[(c>>>24&15)+325248|0];H[b+1|0]=K[(c>>>28|0)+325248|0]}J[a+720>>2]=f}bc=g+48|0;return f|0}function yN(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=2; -if(!(!a|J[a>>2]!=1381173770)){c=J[a+548>>2];a:{if(!c)break a;b=J[c+1120>>2];b:{if(!b)break b;d=J[c+1124>>2];if(!d)break b;gc[J[a+156>>2]](d,b);c=J[a+548>>2];if(!c)break a}gc[J[a+156>>2]](c,1136);J[a+548>>2]=0}c=zc(40);J[c>>2]=0;e=zf(a+2568|0,1,c,4);f=cc;g=a+2532|0;c=0;c:{d:{e:{f:{while(1){g:{h:{i:{if(c){J[695492]=0;ha(1084,a|0,6,c|0,0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break i;break d}if(K[a+2533|0]){c=J[a+2452>>2];J[695492]=0;_(70,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;j:{if(!c)break j; -d=J[695493];if(!d)break j;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue}if(K[a+2539|0]){c=J[a+2464>>2];J[695492]=0;_(70,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;k:{if(!c)break k;d=J[695493];if(!d)break k;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue}if(K[a+2532|0]){c=J[a+2444>>2];J[695492]=0;_(93,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;l:{if(!c)break l;d=J[695493];if(!d)break l;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue}c= -J[a+2496>>2];if(c){b=J[a+2500>>2];d=J[a+156>>2];J[695492]=0;da(d|0,c|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;m:{if(!c)break m;d=J[695493];if(!d)break m;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2496>>2]=0}c=J[a+2476>>2];if(c){b=J[a+2480>>2];d=J[a+156>>2];J[695492]=0;da(d|0,c|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;n:{if(!c)break n;d=J[695493];if(!d)break n;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2476>>2]=0}c=J[a+2444>> -2];if(c){b=J[a+156>>2];J[695492]=0;da(b|0,c|0,432);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;o:{if(!c)break o;d=J[695493];if(!d)break o;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2444>>2]=0}c=J[a+2448>>2];if(c){b=J[a+156>>2];J[695492]=0;da(b|0,c|0,132);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;p:{if(!c)break p;d=J[695493];if(!d)break p;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2448>>2]=0}c=J[a+2452>>2];if(c){b=J[a+156>>2];J[695492]=0; -da(b|0,c|0,488);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;q:{if(!c)break q;d=J[695493];if(!d)break q;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2452>>2]=0}c=J[a+2460>>2];if(c){b=J[a+156>>2];J[695492]=0;da(b|0,c|0,28);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;r:{if(!c)break r;d=J[695493];if(!d)break r;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2460>>2]=0}c=J[a+2456>>2];if(c){b=J[a+156>>2];J[695492]=0;da(b|0,c|0,132);c=J[695492];J[695492]= -0;if((c|0)==1)break d;b=-1;s:{if(!c)break s;d=J[695493];if(!d)break s;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2456>>2]=0}c=J[a+2464>>2];if(c){b=J[a+156>>2];J[695492]=0;da(b|0,c|0,488);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;t:{if(!c)break t;d=J[695493];if(!d)break t;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2464>>2]=0}c=J[a+2472>>2];if(c){b=J[a+156>>2];J[695492]=0;da(b|0,c|0,28);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;u:{if(!c)break u; -d=J[695493];if(!d)break u;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2472>>2]=0}c=J[a+2468>>2];if(c){b=J[a+156>>2];J[695492]=0;da(b|0,c|0,132);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;v:{if(!c)break v;d=J[695493];if(!d)break v;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2468>>2]=0}c=J[a+2524>>2];if(c){b=J[a+2528>>2];d=J[a+156>>2];J[695492]=0;da(d|0,c|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;w:{if(!c)break w;d=J[695493];if(!d)break w; -b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;J[a+2524>>2]=0}c=J[a+2516>>2];if(!c)break f;b=J[a+2520>>2];d=J[a+156>>2];J[695492]=0;da(d|0,c|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;b=-1;if(!c)break g;d=J[695493];if(!d)break g;b=Jc(J[c>>2],e,f);if(b)break h;break e}b=-1;x:{if(!c)break x;d=J[695493];if(!d)break x;b=Jc(J[c>>2],e,f);if(!b)break e;cc=d}c=cc;if((b|0)==1)continue;break c}cc=d}c=cc;if((b|0)==1)continue;break}J[a+2516>>2]=0}J[g>>2]=0;I[g+4>>1]=0;H[a+2539|0]=0;H[a+ -2540|0]=0;H[a+2541|0]=0;H[a+2542|0]=0;break c}qc(e);ef(c,d);B()}a=Z()|0;qc(e);ba(a|0);B()}qc(e);if(K[a+2420|0]){RD(a);sN(a)}if(!(K[a+346|0]|!K[a+344|0]))q8(a);c=J[a+352>>2];if(c){gc[J[a+156>>2]](c,J[a+348>>2]);J[a+352>>2]=0}c=J[a+360>>2];if(c){gc[J[a+156>>2]](c,J[a+356>>2]);J[a+360>>2]=0}c=J[a+376>>2];if(c){gc[J[a+156>>2]](c,J[a+372>>2]);J[a+376>>2]=0}if(J[a+408>>2])while(1){p8(a);if(J[a+408>>2])continue;break}if(J[a+400>>2])while(1){c=J[a+400>>2];b=J[c>>2];J[a+400>>2]=b;if(!b)J[a+404>>2]=0;y:{z:{if(!K[c+ -12|0])break z;b=J[a+160>>2];if(!b)break z;gc[b|0](a,J[c+4>>2],J[c+8>>2]);break y}b=J[c+4>>2];if(!b)break y;gc[J[a+156>>2]](b,J[c+8>>2])}gc[J[a+156>>2]](c,24);if(J[a+400>>2])continue;break}c=J[a+428>>2];if(c){gc[J[a+156>>2]](c,J[a+424>>2]);J[a+428>>2]=0}b=a;a=J[b+276>>2];if(a)while(1){c=J[a+24>>2];gc[J[a+8>>2]](b,a)|0;a=c;if(a)continue;break}J[b+276>>2]=0;J[b+280>>2]=0;c=J[b+688>>2];if(c)while(1){a=J[c+8>>2];gc[J[c>>2]](b,c)|0;c=a;if(a)continue;break}J[b+688>>2]=0;J[b+692>>2]=0;c=J[b+696>>2];if(c)while(1){a= -J[c+8>>2];gc[J[c>>2]](b,c)|0;c=a;if(a)continue;break}J[b+696>>2]=0;J[b+700>>2]=0;d=b+2232|0;a=J[b+2232>>2];A:{if(!a)break A;c=J[b+2236>>2];if(!c)break A;gc[J[b+156>>2]](c,a)}J[b+8>>2]=0;J[b+12>>2]=0;H[b+264|0]=0;J[b+148>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;H[b+136|0]=0;J[b+132>>2]=0;H[b+60|0]=0;J[b+48>>2]=0;H[b+44|0]=16;J[b+64>>2]=0;J[b+68>>2]=0;J[b+268>>2]=1077952576;J[b+272>>2]=0;J[b+276>>2]=0;J[b+40>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+72>>2]=0;J[b+ -76>>2]=0;J[b+280>>2]=0;J[b+284>>2]=0;J[b+288>>2]=0;J[b+292>>2]=0;J[b+296>>2]=0;J[b+300>>2]=0;J[b+304>>2]=0;J[b+308>>2]=0;H[b+321|0]=0;H[b+322|0]=0;H[b+323|0]=0;H[b+324|0]=0;H[b+325|0]=0;H[b+326|0]=0;H[b+327|0]=0;H[b+328|0]=0;J[b+316>>2]=0;J[b+320>>2]=0;J[b+336>>2]=0;J[b+340>>2]=0;H[b+343|0]=0;H[b+344|0]=0;H[b+345|0]=0;H[b+346|0]=0;J[b+348>>2]=0;J[b+352>>2]=0;J[b+356>>2]=0;J[b+360>>2]=0;I[b+362>>1]=0;I[b+364>>1]=0;I[b+366>>1]=0;I[b+368>>1]=0;J[b+384>>2]=0;I[b+416>>1]=0;J[b+420>>2]=0;J[b+424>>2]=0; -H[b+425|0]=0;H[b+426|0]=0;H[b+427|0]=0;H[b+428|0]=0;H[b+429|0]=0;H[b+430|0]=0;H[b+431|0]=0;H[b+432|0]=0;J[b+436>>2]=0;J[b+440>>2]=0;J[b+444>>2]=0;J[b+448>>2]=0;J[b+452>>2]=0;J[b+456>>2]=0;H[b+460|0]=0;I[b+470>>1]=0;I[b+472>>1]=0;I[b+474>>1]=0;I[b+476>>1]=0;J[b+464>>2]=0;J[b+468>>2]=0;J[b+380>>2]=J[b+376>>2];H[b+504|0]=0;J[b+496>>2]=0;J[b+500>>2]=0;J[b+488>>2]=0;J[b+492>>2]=0;J[b+480>>2]=0;J[b+484>>2]=0;J[b+516>>2]=0;J[b+520>>2]=0;J[b+508>>2]=0;J[b+512>>2]=0;J[b+564>>2]=0;J[b+556>>2]=0;J[b+560>>2]= -0;J[b+548>>2]=0;J[b+552>>2]=0;J[b+540>>2]=0;J[b+544>>2]=0;J[b+532>>2]=0;J[b+536>>2]=0;H[b+568|0]=255;J[b+580>>2]=0;J[b+584>>2]=1;J[b+572>>2]=0;J[b+576>>2]=1;J[b+612>>2]=0;J[b+604>>2]=0;J[b+608>>2]=0;J[b+596>>2]=0;J[b+600>>2]=0;J[b+588>>2]=0;J[b+592>>2]=0;J[b+616>>2]=1;J[b+644>>2]=0;J[b+636>>2]=0;J[b+640>>2]=0;J[b+628>>2]=0;J[b+632>>2]=0;J[b+620>>2]=0;J[b+624>>2]=0;J[b+652>>2]=1;I[b+648>>1]=257;H[b+1062|0]=0;I[b+1060>>1]=0;J[b+332>>2]=0;J[b+696>>2]=0;J[b+700>>2]=0;J[b+688>>2]=0;J[b+692>>2]=0;J[b+680>> -2]=0;J[b+684>>2]=0;J[b+672>>2]=0;J[b+676>>2]=0;J[b+664>>2]=0;J[b+668>>2]=0;J[b+656>>2]=0;J[b+660>>2]=0;H[b+1015|0]=0;H[b+1016|0]=0;H[b+1017|0]=0;H[b+1018|0]=0;H[b+1019|0]=0;H[b+1020|0]=0;H[b+1021|0]=0;H[b+1022|0]=0;J[b+1008>>2]=0;J[b+1012>>2]=0;J[b+1E3>>2]=0;J[b+1004>>2]=0;J[b+992>>2]=0;J[b+996>>2]=0;J[b+984>>2]=0;J[b+988>>2]=0;J[b+976>>2]=0;J[b+980>>2]=0;J[b+968>>2]=0;J[b+972>>2]=0;H[b+1032|0]=0;J[b+1024>>2]=0;J[b+1028>>2]=0;a=b+1051|0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]= -0;H[a+6|0]=0;H[a+7|0]=0;a=b+1044|0;J[a>>2]=0;J[a+4>>2]=0;J[b+1036>>2]=0;J[b+1040>>2]=0;H[b+1092|0]=0;J[b+1084>>2]=1;J[b+1088>>2]=2147483647;H[b+1080|0]=1;a=b+1104|0;J[a>>2]=0;J[a+4>>2]=0;J[b+1096>>2]=0;J[b+1100>>2]=0;H[b+1124|0]=0;J[b+1116>>2]=1;J[b+1120>>2]=2147483647;H[b+1112|0]=1;a=b+1136|0;J[a>>2]=0;J[a+4>>2]=0;J[b+1128>>2]=0;J[b+1132>>2]=0;I[b+2420>>1]=0;J[b+2336>>2]=0;J[b+2328>>2]=0;J[b+2332>>2]=0;I[b+2324>>1]=0;I[b+2252>>1]=0;J[b+2248>>2]=0;J[b+1932>>2]=0;J[b+1160>>2]=0;H[b+1148|0]=0;J[b+1144>> -2]=1;I[b+1150>>1]=0;I[b+1152>>1]=0;I[b+1154>>1]=0;I[b+1156>>1]=0;a=b+2221|0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;a=b+2216|0;J[a>>2]=0;J[a+4>>2]=0;a=b+2208|0;J[a>>2]=0;J[a+4>>2]=0;a=b+2200|0;J[a>>2]=0;J[a+4>>2]=0;J[b+2192>>2]=0;J[b+2196>>2]=0;I[d+6>>1]=0;I[d+8>>1]=0;I[d+10>>1]=0;I[d+12>>1]=0;J[d>>2]=0;J[d+4>>2]=0;H[b+2272|0]=0;a=b+2264|0;J[a>>2]=0;J[a+4>>2]=0;J[b+2256>>2]=0;J[b+2260>>2]=0;J[b+2276>>2]=0;J[b+2280>>2]=0;a=b+2284|0;J[a>>2]=0;J[a+4>>2]= -0;a=b+2292|0;J[a>>2]=0;J[a+4>>2]=0;a=b+2299|0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;J[b+2308>>2]=0;J[b+2312>>2]=0;a=b+2314|0;I[a>>1]=0;I[a+2>>1]=0;I[a+4>>1]=0;I[a+6>>1]=0;l8(b);c=0}return c}function Azb(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;e=bc-256|0;bc=e;a:{if(!a|!J[a+4>>2])break a;h=J[a+16>>2];d=h<<2;n=J[a+20>>2];g=rc(P(d,n));J[b+12>>2]=0-d;J[b+8>>2]=n;J[b+4>>2]=h;J[b+16>>2]=g;j=L[a+26>> -1];r=J[a+52>>2];c=df(a,0);f=J[a+4>>2];f=f?J[a+44>>2]?f+40|0:0:0;u=K[a+389|0];p=K[b+40|0];b:{c:switch(j-1|0){case 0:if(!f){H[e+6|0]=255;H[e+4|0]=255;H[e+5|0]=255;H[e+2|0]=0;H[e|0]=0;H[e+1|0]=0;f=e}if((n|0)<=0)break b;j=(h|0)<=0;b=g;while(1){d:{if(j)break d;d=0;if(!p)while(1){i=((K[(d>>>3|0)+c|0]>>>((d^-1)&7)&1)<<2)+f|0;H[b|0]=K[i|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i+2|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break d}while(1){i=((K[(d>>>3|0)+c|0]>>>((d^-1)&7)&1)<<2)+f|0;H[b|0]=K[i+2|0];H[b+1|0]=K[i+ -1|0];H[b+2|0]=K[i|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=c+r|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;default:a=J[b+16>>2];if(a)qc(a);a=J[b+20>>2];if(a)qc(a);J[b>>2]=0;J[b+4>>2]=0;H[b+40|0]=0;J[b+32>>2]=0;J[b+36>>2]=-1074790400;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;break a;case 31:if((n|0)<=0|(h|0)<=0)break b;q=r-d|0;if(p){j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b| -0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];H[b+4|0]=K[c+6|0];H[b+5|0]=K[c+5|0];H[b+6|0]=K[c+4|0];H[b+8|0]=K[c+10|0];H[b+9|0]=K[c+9|0];H[b+10|0]=K[c+8|0];H[b+12|0]=K[c+14|0];H[b+13|0]=K[c+13|0];H[b+14|0]=K[c+12|0];b=b+16|0;c=c+16|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];b=b+4|0;c=c+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b}j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b| -0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+4|0]=K[c+4|0];H[b+5|0]=K[c+5|0];H[b+6|0]=K[c+6|0];H[b+8|0]=K[c+8|0];H[b+9|0]=K[c+9|0];H[b+10|0]=K[c+10|0];H[b+12|0]=K[c+12|0];H[b+13|0]=K[c+13|0];H[b+14|0]=K[c+14|0];b=b+16|0;c=c+16|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];b=b+4|0;c=c+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;case 23:if((n|0)<=0|(h|0)<=0)break b;q=r+P(h,-3)|0; -if(p){j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];H[b+4|0]=K[c+5|0];H[b+5|0]=K[c+4|0];H[b+6|0]=K[c+3|0];H[b+8|0]=K[c+8|0];H[b+9|0]=K[c+7|0];H[b+10|0]=K[c+6|0];H[b+12|0]=K[c+11|0];H[b+13|0]=K[c+10|0];H[b+14|0]=K[c+9|0];b=b+16|0;c=c+12|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];b=b+4|0;c=c+3|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue; -break}break b}j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+4|0]=K[c+3|0];H[b+5|0]=K[c+4|0];H[b+6|0]=K[c+5|0];H[b+8|0]=K[c+6|0];H[b+9|0]=K[c+7|0];H[b+10|0]=K[c+8|0];H[b+12|0]=K[c+9|0];H[b+13|0]=K[c+10|0];H[b+14|0]=K[c+11|0];b=b+16|0;c=c+12|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];b=b+4|0;c=c+3|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue; -break}break b;case 7:j=r-h|0;v=J[a+336>>2];if(f){e:{if((n|0)<=0|(h|0)<=0)break e;if(u){l=h&-2;q=h&1;i=h-1|0;b=g;while(1){f:{g:{if(p){m=0;if(i){while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];H[b+3|0]=K[d+3|0];d=c;o=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[o+2|0];H[b+5|0]=K[o+1|0];H[b+6|0]=K[o|0];H[b+7|0]=K[o+3|0];b=b+8|0;c=c+2|0;m=m+2|0;if((l|0)!=(m|0))continue;break}d=d+1|0}if(!q)break f;d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];break g}m=0;if(i){while(1){d= -(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0];H[b+3|0]=K[d+3|0];d=c;o=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[o|0];H[b+5|0]=K[o+1|0];H[b+6|0]=K[o+2|0];H[b+7|0]=K[o+3|0];b=b+8|0;c=c+2|0;m=m+2|0;if((l|0)!=(m|0))continue;break}d=d+1|0}if(!q)break f;d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0]}H[b+3|0]=K[d+3|0];b=b+4|0;d=c}c=(d+j|0)+1|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break e}s=h&-2;o=h&1;l=h-1|0;q=(v<<2)+f|0;b=g;while(1){h:{if((v|0)!=-1){k=0;while(1){i=K[c|0];r= -(i<<2)+f|0;d=r+2|0;H[b|0]=K[(p?d:r)|0];H[b+1|0]=K[r+1|0];H[b+2|0]=K[(p?r:d)|0];H[b+3|0]=(i|0)!=(v|0)?255:K[q+3|0];b=b+4|0;c=c+1|0;k=k+1|0;if((k|0)!=(h|0))continue;break}break h}i:{j:{k:{if(p){m=0;if(!l)break k;while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];d=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[d+2|0];H[b+5|0]=K[d+1|0];H[b+6|0]=K[d|0];b=b+8|0;c=c+2|0;m=m+2|0;if((s|0)!=(m|0))continue;break}break k}m=0;if(!l)break j;while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+ -2|0]=K[d+2|0];d=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[d|0];H[b+5|0]=K[d+1|0];H[b+6|0]=K[d+2|0];b=b+8|0;c=c+2|0;m=m+2|0;if((s|0)!=(m|0))continue;break}break j}if(!o)break h;d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];break i}if(!o)break h;d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0]}b=b+4|0;c=c+1|0}c=c+j|0;t=t+1|0;if((t|0)!=(n|0))continue;break}}m=u|(v|0)!=-1;break b}if((n|0)<=0)break b;q=h&-4;o=h&3;i=(h|0)<=0;d=h-1>>>0>2;b=g;while(1){l:{if(i)break l;f=0;if(d)while(1){l= -K[c|0];H[b+2|0]=l;H[b+1|0]=l;H[b|0]=l;l=K[c+1|0];H[b+6|0]=l;H[b+5|0]=l;H[b+4|0]=l;l=K[c+2|0];H[b+10|0]=l;H[b+9|0]=l;H[b+8|0]=l;l=K[c+3|0];H[b+14|0]=l;H[b+13|0]=l;H[b+12|0]=l;b=b+16|0;c=c+4|0;f=f+4|0;if((q|0)!=(f|0))continue;break}f=0;if(!o)break l;while(1){l=K[c|0];H[b+2|0]=l;H[b+1|0]=l;H[b|0]=l;b=b+4|0;c=c+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}}c=c+j|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;case 3:if(!f){H[e+62|0]=255;H[e+58|0]=238;H[e+54|0]=221;H[e+50|0]=204;H[e+46|0]=187;H[e+42|0]= -170;H[e+38|0]=153;H[e+30|0]=119;H[e+26|0]=102;H[e+22|0]=85;H[e+18|0]=68;H[e+10|0]=34;H[e+34|0]=136;I[e+60>>1]=65535;I[e+56>>1]=61166;I[e+52>>1]=56797;I[e+48>>1]=52428;I[e+44>>1]=48059;I[e+40>>1]=43690;I[e+36>>1]=39321;I[e+32>>1]=34952;I[e+28>>1]=30583;I[e+24>>1]=26214;I[e+20>>1]=21845;I[e+16>>1]=17476;H[e+14|0]=51;I[e+12>>1]=13107;I[e+8>>1]=8738;H[e+6|0]=17;I[e+4>>1]=4369;H[e+2|0]=0;I[e>>1]=0;f=e}s=J[a+336>>2];if((n|0)>0){l=(s<<2)+f|0;q=(h|0)<=0;b=g;while(1){m:{if(q)break m;m=0;if(u)while(1){j=((K[(m>>> -1|0)+c|0]>>>((m^-1)<<2&4)&15)<<2)+f|0;d=j+2|0;H[b|0]=K[(p?d:j)|0];H[b+1|0]=K[j+1|0];H[b+2|0]=K[(p?j:d)|0];H[b+3|0]=K[j+3|0];b=b+4|0;m=m+1|0;if((h|0)!=(m|0))continue;break m}d=0;if((s|0)==-1)while(1){i=((K[(d>>>1|0)+c|0]>>>((d^-1)<<2&4)&15)<<2)+f|0;j=i+2|0;H[b|0]=K[(p?j:i)|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[(p?i:j)|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break m}while(1){i=K[(d>>>1|0)+c|0]>>>((d^-1)<<2&4)&15;o=(i<<2)+f|0;j=o+2|0;H[b|0]=K[(p?j:o)|0];H[b+1|0]=K[o+1|0];H[b+2|0]=K[(p?o:j)|0];H[b+3|0]= -(i|0)!=(s|0)?255:K[l+3|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=c+r|0;t=t+1|0;if((t|0)!=(n|0))continue;break}}m=u|(s|0)!=-1;break b;case 1:break c}if(!f){H[e+14|0]=255;I[e+12>>1]=65535;H[e+10|0]=170;I[e+8>>1]=43690;H[e+6|0]=85;I[e+4>>1]=21845;H[e+2|0]=0;I[e>>1]=0;f=e}if((n|0)<=0)break b;j=(h|0)<=0;b=g;while(1){n:{if(j)break n;d=0;if(!p)while(1){i=((K[(d>>>2|0)+c|0]>>>((d^-1)<<1&6)&3)<<2)+f|0;H[b|0]=K[i|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i+2|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break n}while(1){i= -((K[(d>>>2|0)+c|0]>>>((d^-1)<<1&6)&3)<<2)+f|0;H[b|0]=K[i+2|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=c+r|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}o:{if(J[a+964>>2]){b=0;c=rN(a);j=K[a+388|0];if((j|0)==255){d=P(h,n);if((d|0)<=0)break a;if(d>>>0>=8){a=d&-8;while(1){H[g+3|0]=K[c|0];H[g+7|0]=K[c+1|0];H[g+11|0]=K[c+2|0];H[g+15|0]=K[c+3|0];H[g+19|0]=K[c+4|0];H[g+23|0]=K[c+5|0];H[g+27|0]=K[c+6|0];H[g+31|0]=K[c+7|0];g=g+32|0;c=c+8|0;b=b+8|0;if((a|0)!=(b|0))continue; -break}}a=d&7;if(!a)break a;b=0;while(1){H[g+3|0]=K[c|0];g=g+4|0;c=c+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}break a}f=j>>>1|0;while(1){a=(f+P(b,255)>>>0)/(j>>>0)|0;H[b+e|0]=a>>>0>=255?255:a;a=b|1;d=(f+P(a,255)>>>0)/(j>>>0)|0;H[a+e|0]=d>>>0>=255?255:d;b=b+2|0;if((b|0)!=256)continue;break}break o}if(m)break a;b=P(h,n);if((b|0)<=0)break a;if(b>>>0>=8){a=b&-8;c=0;while(1){H[g+31|0]=255;H[g+27|0]=255;H[g+23|0]=255;H[g+19|0]=255;H[g+15|0]=255;H[g+11|0]=255;H[g+7|0]=255;H[g+3|0]=255;g=g+32|0;c=c+8|0; -if((a|0)!=(c|0))continue;break}}a=b&7;if(!a)break a;c=0;while(1){H[g+3|0]=255;g=g+4|0;c=c+1|0;if((a|0)!=(c|0))continue;break}break a}d=P(h,n);if((d|0)<=0)break a;if(d>>>0>=4){a=d&-4;b=0;while(1){H[g+3|0]=K[K[c|0]+e|0];H[g+7|0]=K[K[c+1|0]+e|0];H[g+11|0]=K[K[c+2|0]+e|0];H[g+15|0]=K[K[c+3|0]+e|0];g=g+16|0;c=c+4|0;b=b+4|0;if((a|0)!=(b|0))continue;break}}a=d&3;if(!a)break a;b=0;while(1){H[g+3|0]=K[K[c|0]+e|0];g=g+4|0;c=c+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}bc=e+256|0}function CZ(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;e=bc-608|0;bc=e;J[e+584>>2]=13;J[e+568>>2]=13;J[e+552>>2]=13;J[e+16>>2]=13;J[e>>2]=13;a:{if(!(J[a+100>>2]|d)){c=1;break a}J[e+600>>2]=0;J[e+604>>2]=0;gc[J[J[c>>2]+84>>2]](c,e+604|0,e+600|0);m=gc[J[J[c>>2]+76>>2]](c)|0;w=J[J[a+28>>2]+420>>2];q=e+16|0;Bc(m,828616,q,0);g=J[e+16>>2];if((g|0)==5){uc(q);Bc(m,828836,q,0);g=J[e+16>>2]}b:{c:{d:{e:{f:{g:{h:{i:{j:{if(g-3>>>0<4294967294)break j;l=(g|0)==1?+J[e+24>>2]:O[e+24>>3]; -k:{if(R(l)<2147483648){q=~~l;break k}q=-2147483648}o=e+16|0;uc(o);if((q|0)<=0)break i;Bc(m,828958,o,0);h=J[e+16>>2];if((h|0)==5){uc(o);Bc(m,829175,o,0);h=J[e+16>>2]}if(h-3>>>0<4294967294)break j;l=(h|0)==1?+J[e+24>>2]:O[e+24>>3];l:{if(R(l)<2147483648){o=~~l;break l}o=-2147483648}h=e+16|0;uc(h);if((o|0)<=0)break i;Bc(m,829262,h,0);g=J[e+16>>2];if((g|0)==5){uc(h);Bc(m,829445,h,0);g=J[e+16>>2]}m:switch(g|0){case 0:f=J[e+24>>2];break;case 5:break m;default:break j}h=e+16|0;uc(h);if(!J[e+604>>2]){Bc(m, -829513,h,0);g=J[e+16>>2];if((g|0)==5){uc(h);Bc(m,829752,h,0);g=J[e+16>>2]}n:{if((g|0)==1){g=J[e+24>>2];J[e+604>>2]=g;if(g-17>>>0>=4294967280)break n;break j}if(!f)break j;J[e+604>>2]=1}uc(e+16|0)}h=e+16|0;Bc(m,829871,h,0);g=J[e+16>>2];if((g|0)==5){uc(h);Bc(m,830039,h,0);g=J[e+16>>2]}v=!g&J[e+24>>2]!=0;g=e+16|0;uc(g);if(f){if(J[e+604>>2]!=1)break i;f=0;Bc(m,830132,g,0);i=J[e+16>>2];if((i|0)==5){uc(g);Bc(m,805433,g,0);i=J[e+16>>2]}o:switch(i-5|0){case 1:Mc(J[e+24>>2],0,e,0);i=J[e>>2];if(i-3>>>0>=4294967294)f= -((i|0)==1?+J[e+8>>2]:O[e+8>>3])==1;uc(e);break;case 0:break o;default:break j}uc(e+16|0);if(!J[a+100>>2]){gc[J[J[c>>2]+20>>2]](c);d=P(q+7>>>3|0,o);p:{if((d|0)<=0)break p;if(d>>>0>=4){i=d&-4;b=0;while(1){gc[J[J[c>>2]+28>>2]](c)|0;gc[J[J[c>>2]+28>>2]](c)|0;gc[J[J[c>>2]+28>>2]](c)|0;gc[J[J[c>>2]+28>>2]](c)|0;b=b+4|0;if((i|0)!=(b|0))continue;break}}d=d&3;if(!d)break p;b=0;while(1){gc[J[J[c>>2]+28>>2]](c)|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}gc[J[J[c>>2]+24>>2]](c);break b}i=J[J[a+28>>2]+116>>2]; -if((gc[J[J[i>>2]+12>>2]](i)|0)==10){i=J[a+8>>2];gc[J[J[i>>2]+64>>2]](i,J[a+28>>2]);i=Mv(J[a+28>>2]);J[a+28>>2]=i;k=J[a+8>>2];gc[J[J[k>>2]+296>>2]](k,i,b,c,q,o,f,d,v);Rf(J[a+28>>2]);b=J[a+28>>2];J[b+600>>2]=0;J[b+604>>2]=0;J[b+608>>2]=0;J[b+612>>2]=0;b=J[b+596>>2];O[b+16>>3]=0;O[b+8>>3]=0;J[b>>2]=1;b=J[a+28>>2];J[b+608>>2]=0;J[b+612>>2]=0;J[b+600>>2]=0;J[b+604>>2]=1072693248;ie(J[b+596>>2],1,0);b=J[a+28>>2];J[b+608>>2]=0;J[b+612>>2]=1072693248;J[b+600>>2]=0;J[b+604>>2]=1072693248;ie(J[b+596>>2],1, -1);b=J[a+28>>2];J[b+608>>2]=0;J[b+612>>2]=1072693248;J[b+600>>2]=0;J[b+604>>2]=0;ie(J[b+596>>2],0,1);b=J[a+28>>2];_f(J[b+596>>2]);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];Rq(a,1);Rf(J[a+28>>2]);b=Zl(J[a+28>>2]);J[a+28>>2]=b;c=J[a+8>>2];gc[J[J[c>>2]+68>>2]](c,b);break b}i=J[a+8>>2];gc[J[J[i>>2]+292>>2]](i,J[a+28>>2],b,c,q,o,f,d,v);break b}f=e+16|0;if(J[Bc(m,830185,f,0)>>2]==4)tI(a,f,e);g=e+16|0;uc(g); -Bc(m,777211,g,0);f=J[e+16>>2];if((f|0)==5){uc(g);Bc(m,830379,g,0);f=J[e+16>>2]}q:{if((f|0)!=4)break q;vZ(J[a+20>>2],J[e+24>>2],e);if(J[e>>2]!=5){uc(e+16|0);f=J[e+12>>2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=f;f=J[e+4>>2];J[e+16>>2]=J[e>>2];J[e+20>>2]=f;break q}uc(e)}r:{if(J[e+16>>2]!=5){g=am(e+16|0,0);break r}s:switch(J[e+600>>2]-1|0){default:uc(e+16|0);break i;case 0:g=rk(0);break r;case 1:g=rk(2);break r;case 2:break s}g=rk(4)}uc(e+16|0);if(!g)break i;if((gc[J[J[g>>2]+12>>2]](g)|0)==10){c=-1;b=J[a+108>> -2];t:{if(!b)break t;b=J[b+4>>2];if(J[b+8>>2]==13)break t;b=J[b+16>>2];c=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,c,830501,0);gc[J[J[g>>2]+4>>2]](g);break i}f=e+16|0;Bc(m,830132,f,0);if(J[e+16>>2]==5){uc(f);Bc(m,805433,f,0)}f=rc(800);J[695492]=0;h=e+16|0;r=ma(3270,f|0,J[e+604>>2],h|0,g|0,8)|0;j=J[695492];J[695492]=0;if((j|0)==1)break h;uc(h);if(!J[r+792>>2]){qc($k(r));break i}h=0;f=e+584|0;Bc(m,830626,f,0);j=e+568|0;Bc(m,811456,j,0);u:{y=J[e+568>>2];if((y|0)==8){if(d){qc($k(r));uc(f);uc(j);break i}t=J[e+576>> -2];j=gc[J[J[t>>2]+76>>2]](t)|0;i=e+16|0;Bc(j,828616,i,0);h=J[e+16>>2];if((h|0)==5){uc(i);Bc(j,828836,i,0);h=J[e+16>>2]}if(h-3>>>0<4294967294)break u;l=O[e+24>>3];i=J[e+24>>2];k=e+16|0;uc(k);Bc(j,828958,k,0);f=J[e+16>>2];k=(f|0)!=5;l=(h|0)==1?+(i|0):l;v:{if(R(l)<2147483648){i=~~l;break v}i=-2147483648}if(!k){k=e+16|0;uc(k);Bc(j,829175,k,0);f=J[e+16>>2]}if(f-3>>>0<4294967294)break u;h=(i|0)<=0;l=(f|0)==1?+J[e+24>>2]:O[e+24>>3];w:{if(R(l)<2147483648){k=~~l;break w}k=-2147483648}uc(e+16|0);if(!(!h&(k| -0)>0)){qc($k(r));uc(e+584|0);uc(e+568|0);break i}h=e+16|0;Bc(j,829513,h,0);f=J[e+16>>2];if((f|0)==5){uc(h);Bc(j,829752,h,0);f=J[e+16>>2]}if((f|0)!=1)break u;p=J[e+24>>2];uc(e+16|0);if(p-17>>>0<=4294967279){qc($k(r));uc(e+584|0);uc(e+568|0);break i}h=e+16|0;Bc(j,777211,h,0);f=J[e+16>>2];if((f|0)==5){uc(h);Bc(j,830379,h,0);f=J[e+16>>2]}if((f|0)!=4)break u;vZ(J[a+20>>2],J[e+24>>2],e);x:{if(J[e>>2]!=5){uc(e+16|0);f=J[e+12>>2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=f;f=J[e+4>>2];J[e+16>>2]=J[e>>2];J[e+20>>2]= -f;break x}uc(e)}if(J[e+16>>2]!=4)break u;if(Ec(J[e+24>>2],785252))break u;f=rc(12);J[695492]=0;J[f>>2]=2205736;J[f+4>>2]=15;J[f+8>>2]=0;h=J[695492];J[695492]=0;if((h|0)==1)break h;h=e+16|0;uc(h);Bc(j,830132,h,0);if(J[e+16>>2]==5){uc(h);Bc(j,805433,h,0)}h=f;f=rc(800);J[695492]=0;n=p;p=e+16|0;h=ma(3270,f|0,n|0,p|0,h|0,8)|0;u=J[695492];J[695492]=0;y:{if((u|0)!=1){uc(p);if(J[h+792>>2])break y;qc($k(h));qc($k(r));uc(e+584|0);uc(e+568|0);break i}break h}p=0;f=1;if(J[Bc(j,830799,e+16|0,0)>>2]!=6){u=1;break d}if(J[J[e+ -24>>2]+12>>2]==(gc[J[J[g>>2]+28>>2]](g)|0)){j=J[e+24>>2];if(J[j+12>>2]<=0){u=0;break d}g=0;while(1){n=(e+32|0)+(g<<3)|0;z:{if(J[Mc(j,g,e,0)>>2]-3>>>0>=4294967294){l=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];break z}f=-1;j=J[a+108>>2];A:{if(!j)break A;j=J[j+4>>2];if(J[j+8>>2]==13)break A;f=J[j+16>>2];f=gc[J[J[f>>2]+52>>2]](f)|0}xc(1,f,830896,0);l=0}O[n>>3]=l;f=1;uc(e);u=0;g=g+1|0;j=J[e+24>>2];if((g|0)>2])continue;break}break d}g=-1;f=J[a+108>>2];B:{if(!f)break B;f=J[f+4>>2];if(J[f+8>>2]==13)break B; -f=J[f+16>>2];g=gc[J[J[f>>2]+52>>2]](f)|0}f=1;xc(1,g,830896,0);u=1;break d}j=1;f=1;u=1;C:switch(J[e+584>>2]-6|0){case 0:n=1;g=0;s=J[e+592>>2];if(J[s+12>>2]<=1){j=0;break f}while(1){p=e+16|0;j=p;Mc(s,g,j,0);if(J[e+16>>2]!=1)break e;x=e+288|0;s=J[e+24>>2];J[x+(g<<2)>>2]=s;uc(j);if((s|0)<0)break g;j=1;if((s|0)>=1<>2])break f;Mc(J[e+592>>2],n,p,0);if(J[e+16>>2]!=1)break e;x=(n<<2)+x|0;n=J[e+24>>2];J[x>>2]=n;uc(p);if((n|0)<0)break g;if((n|0)>=1<>2])break f;p=0;if(n>>>0>>0)break c;g= -g+2|0;n=g|1;if(n>>>0>63){j=0;break f}j=0;s=J[e+592>>2];if(J[s+12>>2]>(n|0))continue;break}break c;case 2:break C;default:break c}if(d){qc($k(r));uc(e+584|0);uc(e+568|0);break i}t=J[e+592>>2];j=gc[J[J[t>>2]+76>>2]](t)|0;i=e+16|0;Bc(j,828616,i,0);g=J[e+16>>2];if((g|0)==5){uc(i);Bc(j,828836,i,0);g=J[e+16>>2]}if(g-3>>>0<4294967294)break u;l=O[e+24>>3];i=J[e+24>>2];k=e+16|0;uc(k);Bc(j,828958,k,0);h=J[e+16>>2];k=(h|0)!=5;l=(g|0)==1?+(i|0):l;D:{if(R(l)<2147483648){i=~~l;break D}i=-2147483648}if(!k){k=e+ -16|0;uc(k);Bc(j,829175,k,0);h=J[e+16>>2]}if(h-3>>>0<4294967294)break u;f=(i|0)<=0;l=(h|0)==1?+J[e+24>>2]:O[e+24>>3];E:{if(R(l)<2147483648){k=~~l;break E}k=-2147483648}g=e+16|0;uc(g);if((k|0)<=0|f)break u;Bc(j,829262,g,0);f=J[e+16>>2];if((f|0)==5){uc(g);Bc(j,829445,g,0);f=J[e+16>>2]}if(!J[e+24>>2]|f)break u;f=e+16|0;uc(f);h=0;Bc(j,830132,f,0);g=J[e+16>>2];if((g|0)==5){uc(f);Bc(j,805433,f,0);g=J[e+16>>2]}f=0;F:switch(g-5|0){case 0:break d;case 1:break F;default:break u}Mc(J[e+24>>2],0,e,0);g=J[e>>2]; -if(g-3>>>0>=4294967294)p=((g|0)==1?+J[e+8>>2]:O[e+8>>3])==1;uc(e);break d}qc($k(r));uc(e+584|0);uc(e+568|0)}uc(e+16|0)}b=-1;c=J[a+108>>2];G:{if(!c)break G;c=J[c+4>>2];if(J[c+8>>2]==13)break G;b=J[c+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0}c=0;xc(1,b,831209,0);b=J[a+28>>2];if(J[b+420>>2]==(w|0))break a;J[b+420>>2]=w;a=J[a+8>>2];gc[J[J[a>>2]+148>>2]](a,b);break a}a=Z()|0;qc(f);ba(a|0);B()}j=1}p=0;break c}p=0}uc(e+16|0);j=1}g=J[a+28>>2];n=J[g+664>>2];H:{if(J[a+100>>2]?n:1){if(n){b=-1;i=J[a+108>>2];I:{if(!i)break I; -i=J[i+4>>2];if(J[i+8>>2]==13)break I;b=J[i+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0}xc(0,b,831059,0)}if(!d)break H;gc[J[J[c>>2]+20>>2]](c);gc[J[J[c>>2]+48>>2]](c,P((P(J[r+4>>2],P(J[r+8>>2],q))+7|0)/8|0,o))|0;gc[J[J[c>>2]+24>>2]](c);break H}if((y|0)==8){d=e+552|0;Ce(m,830626,d);f=J[a+8>>2];gc[J[J[f>>2]+308>>2]](f,J[a+28>>2],b,c,q,o,r,d,t,i,k,h,u?0:e+32|0,v);uc(d);if(!h)break H;qc($k(h));break H}if(!f){d=e+552|0;Ce(m,830626,d);f=J[a+8>>2];gc[J[J[f>>2]+304>>2]](f,J[a+28>>2],b,c,q,o,r,d,t,i,k,p,v);uc(d);break H}i= -J[a+8>>2];gc[J[J[i>>2]+300>>2]](i,g,b,c,q,o,r,j?0:e+288|0,d,v)}qc($k(r));uc(e+584|0);uc(e+568|0)}b=J[a+28>>2];if(J[b+420>>2]!=(w|0)){J[b+420>>2]=w;c=J[a+8>>2];gc[J[J[c>>2]+148>>2]](c,b)}b=a;c=J[a+24>>2];a=P(o,q);J[b+24>>2]=c+((a|0)>=1E3?1E3:a);c=1}bc=e+608|0;return c}function lxb(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;m=c&1;n=(d|0)/16<<4;c=a;if((d|0)>=16)while(1){c9(c,e,f,m);g=c;a:{if((e|0)>=2){p=(e-m|0)+1>>1;h=(P(p,f)<<2)+ -g|0;i=h;if(m){J[h>>2]=J[h>>2]-J[g>>2];J[h+4>>2]=J[h+4>>2]-J[g+4>>2];J[h+8>>2]=J[h+8>>2]-J[g+8>>2];J[h+12>>2]=J[h+12>>2]-J[g+12>>2];J[h+16>>2]=J[h+16>>2]-J[g+16>>2];J[h+20>>2]=J[h+20>>2]-J[g+20>>2];J[h+24>>2]=J[h+24>>2]-J[g+24>>2];J[h+28>>2]=J[h+28>>2]-J[g+28>>2];J[h+32>>2]=J[h+32>>2]-J[g+32>>2];J[h+36>>2]=J[h+36>>2]-J[g+36>>2];J[h+40>>2]=J[h+40>>2]-J[g+40>>2];J[h+44>>2]=J[h+44>>2]-J[g+44>>2];J[h+48>>2]=J[h+48>>2]-J[g+48>>2];J[h+52>>2]=J[h+52>>2]-J[g+52>>2];J[h+56>>2]=J[h+56>>2]-J[g+56>>2];J[h+60>> -2]=J[h+60>>2]-J[g+60>>2];i=(f<<2)+h|0}q=e&1;r=(q|0)==(m|0);o=(e-(m+p|0)|0)-r|0;b:{if((o|0)<=0){j=g;break b}l=f<<2;k=g;while(1){j=k+l|0;J[i>>2]=J[i>>2]-(J[j>>2]+J[k>>2]>>1);J[i+4>>2]=J[i+4>>2]-(J[l+(k+4|0)>>2]+J[k+4>>2]>>1);J[i+8>>2]=J[i+8>>2]-(J[l+(k+8|0)>>2]+J[k+8>>2]>>1);J[i+12>>2]=J[i+12>>2]-(J[l+(k+12|0)>>2]+J[k+12>>2]>>1);J[i+16>>2]=J[i+16>>2]-(J[l+(k+16|0)>>2]+J[k+16>>2]>>1);J[i+20>>2]=J[i+20>>2]-(J[l+(k+20|0)>>2]+J[k+20>>2]>>1);J[i+24>>2]=J[i+24>>2]-(J[l+(k+24|0)>>2]+J[k+24>>2]>>1);J[i+28>> -2]=J[i+28>>2]-(J[l+(k+28|0)>>2]+J[k+28>>2]>>1);J[i+32>>2]=J[i+32>>2]-(J[l+(k+32|0)>>2]+J[k+32>>2]>>1);J[i+36>>2]=J[i+36>>2]-(J[l+(k+36|0)>>2]+J[k+36>>2]>>1);J[i+40>>2]=J[i+40>>2]-(J[l+(k+40|0)>>2]+J[k+40>>2]>>1);J[i+44>>2]=J[i+44>>2]-(J[l+(k+44|0)>>2]+J[k+44>>2]>>1);J[i+48>>2]=J[i+48>>2]-(J[l+(k+48|0)>>2]+J[k+48>>2]>>1);J[i+52>>2]=J[i+52>>2]-(J[l+(k+52|0)>>2]+J[k+52>>2]>>1);J[i+56>>2]=J[i+56>>2]-(J[l+(k+56|0)>>2]+J[k+56>>2]>>1);J[i+60>>2]=J[i+60>>2]-(J[l+(k+60|0)>>2]+J[k+60>>2]>>1);i=i+l|0;s=o>>> -0>1;o=o-1|0;k=j;if(s)continue;break}}k=(m|0)!=(q|0);if(!k){J[i>>2]=J[i>>2]-J[j>>2];J[i+4>>2]=J[i+4>>2]-J[j+4>>2];J[i+8>>2]=J[i+8>>2]-J[j+8>>2];J[i+12>>2]=J[i+12>>2]-J[j+12>>2];J[i+16>>2]=J[i+16>>2]-J[j+16>>2];J[i+20>>2]=J[i+20>>2]-J[j+20>>2];J[i+24>>2]=J[i+24>>2]-J[j+24>>2];J[i+28>>2]=J[i+28>>2]-J[j+28>>2];J[i+32>>2]=J[i+32>>2]-J[j+32>>2];J[i+36>>2]=J[i+36>>2]-J[j+36>>2];J[i+40>>2]=J[i+40>>2]-J[j+40>>2];J[i+44>>2]=J[i+44>>2]-J[j+44>>2];J[i+48>>2]=J[i+48>>2]-J[j+48>>2];J[i+52>>2]=J[i+52>>2]-J[j+52>> -2];J[i+56>>2]=J[i+56>>2]-J[j+56>>2];J[i+60>>2]=J[i+60>>2]-J[j+60>>2]}if(!m){J[g>>2]=J[g>>2]+(J[h>>2]+1>>1);J[g+4>>2]=J[g+4>>2]+(J[h+4>>2]+1>>1);J[g+8>>2]=J[g+8>>2]+(J[h+8>>2]+1>>1);J[g+12>>2]=J[g+12>>2]+(J[h+12>>2]+1>>1);J[g+16>>2]=J[g+16>>2]+(J[h+16>>2]+1>>1);J[g+20>>2]=J[g+20>>2]+(J[h+20>>2]+1>>1);J[g+24>>2]=J[g+24>>2]+(J[h+24>>2]+1>>1);J[g+28>>2]=J[g+28>>2]+(J[h+28>>2]+1>>1);J[g+32>>2]=J[g+32>>2]+(J[h+32>>2]+1>>1);J[g+36>>2]=J[g+36>>2]+(J[h+36>>2]+1>>1);J[g+40>>2]=J[g+40>>2]+(J[h+40>>2]+1>>1); -J[g+44>>2]=J[g+44>>2]+(J[h+44>>2]+1>>1);J[g+48>>2]=J[g+48>>2]+(J[h+48>>2]+1>>1);J[g+52>>2]=J[g+52>>2]+(J[h+52>>2]+1>>1);J[g+56>>2]=J[g+56>>2]+(J[h+56>>2]+1>>1);J[g+60>>2]=J[g+60>>2]+(J[h+60>>2]+1>>1);g=(f<<2)+g|0}k=(p-!m|0)-k|0;c:{if((k|0)<=0){j=h;break c}while(1){i=f<<2;j=i+h|0;J[g>>2]=J[g>>2]+((J[h>>2]+J[j>>2]|0)+2>>2);J[g+4>>2]=J[g+4>>2]+((J[h+4>>2]+J[i+(h+4|0)>>2]|0)+2>>2);J[g+8>>2]=J[g+8>>2]+((J[h+8>>2]+J[i+(h+8|0)>>2]|0)+2>>2);J[g+12>>2]=J[g+12>>2]+((J[h+12>>2]+J[i+(h+12|0)>>2]|0)+2>>2);J[g+ -16>>2]=J[g+16>>2]+((J[h+16>>2]+J[i+(h+16|0)>>2]|0)+2>>2);J[g+20>>2]=J[g+20>>2]+((J[h+20>>2]+J[i+(h+20|0)>>2]|0)+2>>2);J[g+24>>2]=J[g+24>>2]+((J[h+24>>2]+J[i+(h+24|0)>>2]|0)+2>>2);J[g+28>>2]=J[g+28>>2]+((J[h+28>>2]+J[i+(h+28|0)>>2]|0)+2>>2);J[g+32>>2]=J[g+32>>2]+((J[h+32>>2]+J[i+(h+32|0)>>2]|0)+2>>2);J[g+36>>2]=J[g+36>>2]+((J[h+36>>2]+J[i+(h+36|0)>>2]|0)+2>>2);J[g+40>>2]=J[g+40>>2]+((J[h+40>>2]+J[i+(h+40|0)>>2]|0)+2>>2);J[g+44>>2]=J[g+44>>2]+((J[h+44>>2]+J[i+(h+44|0)>>2]|0)+2>>2);J[g+48>>2]=J[g+48>> -2]+((J[h+48>>2]+J[i+(h+48|0)>>2]|0)+2>>2);J[g+52>>2]=J[g+52>>2]+((J[h+52>>2]+J[i+(h+52|0)>>2]|0)+2>>2);J[g+56>>2]=J[g+56>>2]+((J[h+56>>2]+J[i+(h+56|0)>>2]|0)+2>>2);J[g+60>>2]=J[g+60>>2]+((J[h+60>>2]+J[i+(h+60|0)>>2]|0)+2>>2);g=g+i|0;i=k>>>0>1;k=k-1|0;h=j;if(i)continue;break}}if(r)break a;J[g>>2]=J[g>>2]+(J[j>>2]+1>>1);J[g+4>>2]=J[g+4>>2]+(J[j+4>>2]+1>>1);J[g+8>>2]=J[g+8>>2]+(J[j+8>>2]+1>>1);J[g+12>>2]=J[g+12>>2]+(J[j+12>>2]+1>>1);J[g+16>>2]=J[g+16>>2]+(J[j+16>>2]+1>>1);J[g+20>>2]=J[g+20>>2]+(J[j+ -20>>2]+1>>1);J[g+24>>2]=J[g+24>>2]+(J[j+24>>2]+1>>1);J[g+28>>2]=J[g+28>>2]+(J[j+28>>2]+1>>1);J[g+32>>2]=J[g+32>>2]+(J[j+32>>2]+1>>1);J[g+36>>2]=J[g+36>>2]+(J[j+36>>2]+1>>1);J[g+40>>2]=J[g+40>>2]+(J[j+40>>2]+1>>1);J[g+44>>2]=J[g+44>>2]+(J[j+44>>2]+1>>1);J[g+48>>2]=J[g+48>>2]+(J[j+48>>2]+1>>1);J[g+52>>2]=J[g+52>>2]+(J[j+52>>2]+1>>1);J[g+56>>2]=J[g+56>>2]+(J[j+56>>2]+1>>1);J[g+60>>2]=J[g+60>>2]+(J[j+60>>2]+1>>1);break a}if(!m)break a;J[g>>2]=J[g>>2]<<1;J[g+4>>2]=J[g+4>>2]<<1;J[g+8>>2]=J[g+8>>2]<<1;J[g+ -12>>2]=J[g+12>>2]<<1;J[g+16>>2]=J[g+16>>2]<<1;J[g+20>>2]=J[g+20>>2]<<1;J[g+24>>2]=J[g+24>>2]<<1;J[g+28>>2]=J[g+28>>2]<<1;J[g+32>>2]=J[g+32>>2]<<1;J[g+36>>2]=J[g+36>>2]<<1;J[g+40>>2]=J[g+40>>2]<<1;J[g+44>>2]=J[g+44>>2]<<1;J[g+48>>2]=J[g+48>>2]<<1;J[g+52>>2]=J[g+52>>2]<<1;J[g+56>>2]=J[g+56>>2]<<1;J[g+60>>2]=J[g+60>>2]<<1}c=c- -64|0;t=t+16|0;if((n|0)>(t|0))continue;break}if((d|0)>(n|0)){l=d-n|0;b9(c,e,l,f,m);h=0;d:{if((e|0)>=2){q=(e-m|0)+1>>1;k=(P(q,f)<<2)+c|0;i=k;if(m){e:{if((l|0)<=0)break e;h=i;g= -c;if(l-1>>>0>=3){j=l&-4;i=0;while(1){J[h>>2]=J[h>>2]-J[g>>2];J[h+4>>2]=J[h+4>>2]-J[g+4>>2];J[h+8>>2]=J[h+8>>2]-J[g+8>>2];J[h+12>>2]=J[h+12>>2]-J[g+12>>2];g=g+16|0;h=h+16|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}j=l&3;if(!j)break e;i=0;while(1){J[h>>2]=J[h>>2]-J[g>>2];g=g+4|0;h=h+4|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}i=(f<<2)+k|0}r=e&1;s=(r|0)==(m|0);n=(e-(m+q|0)|0)-s|0;f:{g:{if((n|0)<=0){j=c;break g}if((l|0)<=0){n=0;break f}t=l&-2;u=l&1;o=f<<2;j=c;while(1){p=0;h=i;g=j;if((l|0)!=1)while(1){J[h>> -2]=J[h>>2]-(J[g+o>>2]+J[g>>2]>>1);J[h+4>>2]=J[h+4>>2]-(J[o+(g+4|0)>>2]+J[g+4>>2]>>1);h=h+8|0;g=g+8|0;p=p+2|0;if((t|0)!=(p|0))continue;break}if(u)J[h>>2]=J[h>>2]-(J[g+o>>2]+J[g>>2]>>1);j=j+o|0;i=i+o|0;g=(n|0)>1;n=n-1|0;if(g)continue;break}}n=(l|0)>0;if((m|0)!=(r|0)|(l|0)<=0)break f;if(l-1>>>0>=3){g=l&-4;h=0;while(1){J[i>>2]=J[i>>2]-J[j>>2];J[i+4>>2]=J[i+4>>2]-J[j+4>>2];J[i+8>>2]=J[i+8>>2]-J[j+8>>2];J[i+12>>2]=J[i+12>>2]-J[j+12>>2];i=i+16|0;j=j+16|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=l&3;if(!g)break f; -h=0;while(1){J[i>>2]=J[i>>2]-J[j>>2];i=i+4|0;j=j+4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}if(!m){h:{if(!n)break h;g=k;h=c;if(l-1>>>0>=3){j=l&-4;i=0;while(1){J[h>>2]=J[h>>2]+(J[g>>2]+1>>1);J[h+4>>2]=J[h+4>>2]+(J[g+4>>2]+1>>1);J[h+8>>2]=J[h+8>>2]+(J[g+8>>2]+1>>1);J[h+12>>2]=J[h+12>>2]+(J[g+12>>2]+1>>1);g=g+16|0;h=h+16|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}j=l&3;if(!j)break h;i=0;while(1){J[h>>2]=J[h>>2]+(J[g>>2]+1>>1);g=g+4|0;h=h+4|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}c=(f<<2)+c|0}i=(q- -!m|0)-((m|0)!=(r|0))|0;if((i|0)>0){if(!n)break d;m=l&-2;o=l&1;j=f<<2;while(1){p=0;h=k;g=c;if((l|0)!=1)while(1){J[g>>2]=J[g>>2]+((J[h>>2]+J[h+j>>2]|0)+2>>2);J[g+4>>2]=J[g+4>>2]+((J[h+4>>2]+J[j+(h+4|0)>>2]|0)+2>>2);h=h+8|0;g=g+8|0;p=p+2|0;if((m|0)!=(p|0))continue;break}if(o)J[g>>2]=J[g>>2]+((J[h>>2]+J[h+j>>2]|0)+2>>2);k=j+k|0;c=c+j|0;g=(i|0)>1;i=i-1|0;if(g)continue;break}}if(s|n^1)break d;if(l-1>>>0>=3){g=l&-4;h=0;while(1){J[c>>2]=J[c>>2]+(J[k>>2]+1>>1);J[c+4>>2]=J[c+4>>2]+(J[k+4>>2]+1>>1);J[c+8>>2]= -J[c+8>>2]+(J[k+8>>2]+1>>1);J[c+12>>2]=J[c+12>>2]+(J[k+12>>2]+1>>1);k=k+16|0;c=c+16|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=l&3;if(!g)break d;h=0;while(1){J[c>>2]=J[c>>2]+(J[k>>2]+1>>1);k=k+4|0;c=c+4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}break d}if(!m|(l|0)<=0)break d;if(l-1>>>0>=3){g=l&-4;while(1){J[c>>2]=J[c>>2]<<1;J[c+4>>2]=J[c+4>>2]<<1;J[c+8>>2]=J[c+8>>2]<<1;J[c+12>>2]=J[c+12>>2]<<1;c=c+16|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=l&3;if(!g)break d;h=0;while(1){J[c>>2]=J[c>>2]<<1;c=c+ -4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}}if((e|0)>0){k=b&1;c=0;m=f<<2;while(1){a9(a,d,k);b=a;i:{if((d|0)>=2){i=(d-k|0)+1>>1;j=(i<<2)+b|0;g=j;if(k){J[g>>2]=J[g>>2]-J[b>>2];g=g+4|0}f=i+k|0;n=d&1;l=(n|0)==(k|0);h=(d-f|0)-l|0;j:{if((h|0)<=0){f=b;break j}o=f+1|0;p=(l?-1:0)+d|0;if(h&1){J[g>>2]=J[g>>2]-(J[b+4>>2]+J[b>>2]>>1);g=g+4|0;h=h-1|0;f=b+4|0}else f=b;if((o|0)==(p|0))break j;while(1){J[g>>2]=J[g>>2]-(J[f+4>>2]+J[f>>2]>>1);J[g+4>>2]=J[g+4>>2]-(J[f+8>>2]+J[f+4>>2]>>1);g=g+8|0;f=f+8|0;o=h-3|0;h=h- -2|0;if(o>>>0<4294967294)continue;break}}h=(k|0)!=(n|0);if(!h)J[g>>2]=J[g>>2]-J[f>>2];if(!k){J[b>>2]=J[b>>2]+(J[j>>2]+1>>1);b=b+4|0}g=(i-!k|0)-h|0;k:{if((g|0)<=0)break k;if(g&1){J[b>>2]=J[b>>2]+((J[j>>2]+J[j+4>>2]|0)+2>>2);j=j+4|0;g=g-1|0;b=b+4|0}if(((i+(k?0:-1)|0)+(h?-1:0)|0)==1)break k;while(1){J[b>>2]=J[b>>2]+((J[j>>2]+J[j+4>>2]|0)+2>>2);J[b+4>>2]=J[b+4>>2]+((J[j+4>>2]+J[j+8>>2]|0)+2>>2);b=b+8|0;j=j+8|0;f=g-3|0;g=g-2|0;if(f>>>0<4294967294)continue;break}}if(l)break i;J[b>>2]=J[b>>2]+(J[j>>2]+1>> -1);break i}if(!k)break i;J[b>>2]=J[b>>2]<<1}a=a+m|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}return 0}function kxb(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;if((e|0)>0){k=b&1;o=f<<2;b=a;while(1){j=b;a:{if((d|0)>=2){m=(d-k|0)+1>>1;h=(m<<2)+b|0;g=b;if(!k){J[b>>2]=J[b>>2]-(J[h>>2]+1>>1);g=b+4|0}p=d&1;n=(p|0)!=(k|0);l=(m-!k|0)-n|0;b:{if((l|0)<=0){i=h;break b}q=(m+(k?0:-1)|0)+(n?-1:0)|0;if(l&1){J[g>>2]=J[g>>2]-((J[h>>2]+J[h+4>>2]|0)+2>>2);g= -g+4|0;l=l-1|0;i=h+4|0}else i=h;if((q|0)==1)break b;while(1){J[g>>2]=J[g>>2]-((J[i>>2]+J[i+4>>2]|0)+2>>2);J[g+4>>2]=J[g+4>>2]-((J[i+4>>2]+J[i+8>>2]|0)+2>>2);g=g+8|0;i=i+8|0;q=l-3|0;l=l-2|0;if(q>>>0<4294967294)continue;break}}l=(k|0)==(p|0);if(!l)J[g>>2]=J[g>>2]-(J[i>>2]+1>>1);if(k){J[h>>2]=J[h>>2]+J[j>>2];h=h+4|0}i=k+m|0;g=(d-i|0)-l|0;c:{if((g|0)<=0)break c;if(g&1){J[h>>2]=J[h>>2]+(J[j+4>>2]+J[j>>2]>>1);g=g-1|0;j=j+4|0;h=h+4|0}if((i+1|0)==((l?-1:0)+d|0))break c;while(1){J[h>>2]=J[h>>2]+(J[j+4>>2]+ -J[j>>2]>>1);J[h+4>>2]=J[h+4>>2]+(J[j+8>>2]+J[j+4>>2]>>1);h=h+8|0;j=j+8|0;i=g-3|0;g=g-2|0;if(i>>>0<4294967294)continue;break}}if(n)break a;J[h>>2]=J[h>>2]+J[j>>2];break a}if(!k)break a;J[j>>2]=J[j>>2]>>1}$8(b,d,k);b=b+o|0;r=r+1|0;if((r|0)!=(e|0))continue;break}}k=c&1;l=(d|0)/16<<4;if((d|0)>=16){m=0;while(1){b=a;d:{if((e|0)>=2){o=(e-k|0)+1>>1;c=(P(o,f)<<2)+b|0;g=b;if(!k){J[b>>2]=J[b>>2]-(J[c>>2]+1>>1);J[b+4>>2]=J[b+4>>2]-(J[c+4>>2]+1>>1);J[b+8>>2]=J[b+8>>2]-(J[c+8>>2]+1>>1);J[b+12>>2]=J[b+12>>2]-(J[c+ -12>>2]+1>>1);J[b+16>>2]=J[b+16>>2]-(J[c+16>>2]+1>>1);J[b+20>>2]=J[b+20>>2]-(J[c+20>>2]+1>>1);J[b+24>>2]=J[b+24>>2]-(J[c+24>>2]+1>>1);J[b+28>>2]=J[b+28>>2]-(J[c+28>>2]+1>>1);J[b+32>>2]=J[b+32>>2]-(J[c+32>>2]+1>>1);J[b+36>>2]=J[b+36>>2]-(J[c+36>>2]+1>>1);J[b+40>>2]=J[b+40>>2]-(J[c+40>>2]+1>>1);J[b+44>>2]=J[b+44>>2]-(J[c+44>>2]+1>>1);J[b+48>>2]=J[b+48>>2]-(J[c+48>>2]+1>>1);J[b+52>>2]=J[b+52>>2]-(J[c+52>>2]+1>>1);J[b+56>>2]=J[b+56>>2]-(J[c+56>>2]+1>>1);J[b+60>>2]=J[b+60>>2]-(J[c+60>>2]+1>>1);g=(f<<2)+ -b|0}p=e&1;q=(p|0)!=(k|0);n=(o-!k|0)-q|0;e:{if((n|0)<=0){j=c;break e}h=c;while(1){i=f<<2;j=i+h|0;J[g>>2]=J[g>>2]-((J[h>>2]+J[j>>2]|0)+2>>2);J[g+4>>2]=J[g+4>>2]-((J[h+4>>2]+J[i+(h+4|0)>>2]|0)+2>>2);J[g+8>>2]=J[g+8>>2]-((J[h+8>>2]+J[i+(h+8|0)>>2]|0)+2>>2);J[g+12>>2]=J[g+12>>2]-((J[h+12>>2]+J[i+(h+12|0)>>2]|0)+2>>2);J[g+16>>2]=J[g+16>>2]-((J[h+16>>2]+J[i+(h+16|0)>>2]|0)+2>>2);J[g+20>>2]=J[g+20>>2]-((J[h+20>>2]+J[i+(h+20|0)>>2]|0)+2>>2);J[g+24>>2]=J[g+24>>2]-((J[h+24>>2]+J[i+(h+24|0)>>2]|0)+2>>2);J[g+ -28>>2]=J[g+28>>2]-((J[h+28>>2]+J[i+(h+28|0)>>2]|0)+2>>2);J[g+32>>2]=J[g+32>>2]-((J[h+32>>2]+J[i+(h+32|0)>>2]|0)+2>>2);J[g+36>>2]=J[g+36>>2]-((J[h+36>>2]+J[i+(h+36|0)>>2]|0)+2>>2);J[g+40>>2]=J[g+40>>2]-((J[h+40>>2]+J[i+(h+40|0)>>2]|0)+2>>2);J[g+44>>2]=J[g+44>>2]-((J[h+44>>2]+J[i+(h+44|0)>>2]|0)+2>>2);J[g+48>>2]=J[g+48>>2]-((J[h+48>>2]+J[i+(h+48|0)>>2]|0)+2>>2);J[g+52>>2]=J[g+52>>2]-((J[h+52>>2]+J[i+(h+52|0)>>2]|0)+2>>2);J[g+56>>2]=J[g+56>>2]-((J[h+56>>2]+J[i+(h+56|0)>>2]|0)+2>>2);J[g+60>>2]=J[g+60>> -2]-((J[h+60>>2]+J[i+(h+60|0)>>2]|0)+2>>2);g=g+i|0;i=n>>>0>1;n=n-1|0;h=j;if(i)continue;break}}h=(k|0)==(p|0);if(!h){J[g>>2]=J[g>>2]-(J[j>>2]+1>>1);J[g+4>>2]=J[g+4>>2]-(J[j+4>>2]+1>>1);J[g+8>>2]=J[g+8>>2]-(J[j+8>>2]+1>>1);J[g+12>>2]=J[g+12>>2]-(J[j+12>>2]+1>>1);J[g+16>>2]=J[g+16>>2]-(J[j+16>>2]+1>>1);J[g+20>>2]=J[g+20>>2]-(J[j+20>>2]+1>>1);J[g+24>>2]=J[g+24>>2]-(J[j+24>>2]+1>>1);J[g+28>>2]=J[g+28>>2]-(J[j+28>>2]+1>>1);J[g+32>>2]=J[g+32>>2]-(J[j+32>>2]+1>>1);J[g+36>>2]=J[g+36>>2]-(J[j+36>>2]+1>>1);J[g+ -40>>2]=J[g+40>>2]-(J[j+40>>2]+1>>1);J[g+44>>2]=J[g+44>>2]-(J[j+44>>2]+1>>1);J[g+48>>2]=J[g+48>>2]-(J[j+48>>2]+1>>1);J[g+52>>2]=J[g+52>>2]-(J[j+52>>2]+1>>1);J[g+56>>2]=J[g+56>>2]-(J[j+56>>2]+1>>1);J[g+60>>2]=J[g+60>>2]-(J[j+60>>2]+1>>1)}if(k){J[c>>2]=J[c>>2]+J[b>>2];J[c+4>>2]=J[c+4>>2]+J[b+4>>2];J[c+8>>2]=J[c+8>>2]+J[b+8>>2];J[c+12>>2]=J[c+12>>2]+J[b+12>>2];J[c+16>>2]=J[c+16>>2]+J[b+16>>2];J[c+20>>2]=J[c+20>>2]+J[b+20>>2];J[c+24>>2]=J[c+24>>2]+J[b+24>>2];J[c+28>>2]=J[c+28>>2]+J[b+28>>2];J[c+32>>2]= -J[c+32>>2]+J[b+32>>2];J[c+36>>2]=J[c+36>>2]+J[b+36>>2];J[c+40>>2]=J[c+40>>2]+J[b+40>>2];J[c+44>>2]=J[c+44>>2]+J[b+44>>2];J[c+48>>2]=J[c+48>>2]+J[b+48>>2];J[c+52>>2]=J[c+52>>2]+J[b+52>>2];J[c+56>>2]=J[c+56>>2]+J[b+56>>2];J[c+60>>2]=J[c+60>>2]+J[b+60>>2];c=(f<<2)+c|0}h=(e-(k+o|0)|0)-h|0;f:{if((h|0)<=0){j=b;break f}g=f<<2;while(1){j=b+g|0;J[c>>2]=J[c>>2]+(J[j>>2]+J[b>>2]>>1);J[c+4>>2]=J[c+4>>2]+(J[g+(b+4|0)>>2]+J[b+4>>2]>>1);J[c+8>>2]=J[c+8>>2]+(J[g+(b+8|0)>>2]+J[b+8>>2]>>1);J[c+12>>2]=J[c+12>>2]+(J[g+ -(b+12|0)>>2]+J[b+12>>2]>>1);J[c+16>>2]=J[c+16>>2]+(J[g+(b+16|0)>>2]+J[b+16>>2]>>1);J[c+20>>2]=J[c+20>>2]+(J[g+(b+20|0)>>2]+J[b+20>>2]>>1);J[c+24>>2]=J[c+24>>2]+(J[g+(b+24|0)>>2]+J[b+24>>2]>>1);J[c+28>>2]=J[c+28>>2]+(J[g+(b+28|0)>>2]+J[b+28>>2]>>1);J[c+32>>2]=J[c+32>>2]+(J[g+(b+32|0)>>2]+J[b+32>>2]>>1);J[c+36>>2]=J[c+36>>2]+(J[g+(b+36|0)>>2]+J[b+36>>2]>>1);J[c+40>>2]=J[c+40>>2]+(J[g+(b+40|0)>>2]+J[b+40>>2]>>1);J[c+44>>2]=J[c+44>>2]+(J[g+(b+44|0)>>2]+J[b+44>>2]>>1);J[c+48>>2]=J[c+48>>2]+(J[g+(b+48| -0)>>2]+J[b+48>>2]>>1);J[c+52>>2]=J[c+52>>2]+(J[g+(b+52|0)>>2]+J[b+52>>2]>>1);J[c+56>>2]=J[c+56>>2]+(J[g+(b+56|0)>>2]+J[b+56>>2]>>1);J[c+60>>2]=J[c+60>>2]+(J[g+(b+60|0)>>2]+J[b+60>>2]>>1);c=c+g|0;i=h>>>0>1;h=h-1|0;b=j;if(i)continue;break}}if(q)break d;J[c>>2]=J[c>>2]+J[j>>2];J[c+4>>2]=J[c+4>>2]+J[j+4>>2];J[c+8>>2]=J[c+8>>2]+J[j+8>>2];J[c+12>>2]=J[c+12>>2]+J[j+12>>2];J[c+16>>2]=J[c+16>>2]+J[j+16>>2];J[c+20>>2]=J[c+20>>2]+J[j+20>>2];J[c+24>>2]=J[c+24>>2]+J[j+24>>2];J[c+28>>2]=J[c+28>>2]+J[j+28>>2];J[c+ -32>>2]=J[c+32>>2]+J[j+32>>2];J[c+36>>2]=J[c+36>>2]+J[j+36>>2];J[c+40>>2]=J[c+40>>2]+J[j+40>>2];J[c+44>>2]=J[c+44>>2]+J[j+44>>2];J[c+48>>2]=J[c+48>>2]+J[j+48>>2];J[c+52>>2]=J[c+52>>2]+J[j+52>>2];J[c+56>>2]=J[c+56>>2]+J[j+56>>2];J[c+60>>2]=J[c+60>>2]+J[j+60>>2];break d}if(!k)break d;J[b>>2]=J[b>>2]>>1;J[b+4>>2]=J[b+4>>2]>>1;J[b+8>>2]=J[b+8>>2]>>1;J[b+12>>2]=J[b+12>>2]>>1;J[b+16>>2]=J[b+16>>2]>>1;J[b+20>>2]=J[b+20>>2]>>1;J[b+24>>2]=J[b+24>>2]>>1;J[b+28>>2]=J[b+28>>2]>>1;J[b+32>>2]=J[b+32>>2]>>1;J[b+ -36>>2]=J[b+36>>2]>>1;J[b+40>>2]=J[b+40>>2]>>1;J[b+44>>2]=J[b+44>>2]>>1;J[b+48>>2]=J[b+48>>2]>>1;J[b+52>>2]=J[b+52>>2]>>1;J[b+56>>2]=J[b+56>>2]>>1;J[b+60>>2]=J[b+60>>2]>>1}_8(a,e,f,k);a=a- -64|0;m=m+16|0;if((l|0)>(m|0))continue;break}}if((d|0)>(l|0)){b=a;i=d-l|0;j=f;d=0;g=e;g:{if((g|0)>=2){o=(g-k|0)+1>>1;c=(P(o,j)<<2)+b|0;h=b;if(!k){h:{if((i|0)<=0)break h;e=c;d=b;if(i-1>>>0>=3){f=i&-4;h=0;while(1){J[d>>2]=J[d>>2]-(J[e>>2]+1>>1);J[d+4>>2]=J[d+4>>2]-(J[e+4>>2]+1>>1);J[d+8>>2]=J[d+8>>2]-(J[e+8>>2]+1>> -1);J[d+12>>2]=J[d+12>>2]-(J[e+12>>2]+1>>1);e=e+16|0;d=d+16|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}f=i&3;if(!f)break h;h=0;while(1){J[d>>2]=J[d>>2]-(J[e>>2]+1>>1);e=e+4|0;d=d+4|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}h=(j<<2)+b|0}p=g&1;q=(p|0)!=(k|0);l=(o-!k|0)-q|0;i:{j:{if((l|0)<=0){f=c;break j}if((i|0)<=0){l=0;break i}r=i&-2;s=i&1;n=j<<2;f=c;while(1){m=0;d=f;e=h;if((i|0)!=1)while(1){J[e>>2]=J[e>>2]-((J[d>>2]+J[d+n>>2]|0)+2>>2);J[e+4>>2]=J[e+4>>2]-((J[d+4>>2]+J[n+(d+4|0)>>2]|0)+2>>2);d=d+8|0; -e=e+8|0;m=m+2|0;if((r|0)!=(m|0))continue;break}if(s)J[e>>2]=J[e>>2]-((J[d>>2]+J[d+n>>2]|0)+2>>2);f=f+n|0;h=h+n|0;d=(l|0)>1;l=l-1|0;if(d)continue;break}}l=(i|0)>0;if((k|0)==(p|0)|(i|0)<=0)break i;if(i-1>>>0>=3){e=i&-4;d=0;while(1){J[h>>2]=J[h>>2]-(J[f>>2]+1>>1);J[h+4>>2]=J[h+4>>2]-(J[f+4>>2]+1>>1);J[h+8>>2]=J[h+8>>2]-(J[f+8>>2]+1>>1);J[h+12>>2]=J[h+12>>2]-(J[f+12>>2]+1>>1);f=f+16|0;h=h+16|0;d=d+4|0;if((e|0)!=(d|0))continue;break}}e=i&3;if(!e)break i;d=0;while(1){J[h>>2]=J[h>>2]-(J[f>>2]+1>>1);f=f+ -4|0;h=h+4|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}if(k){k:{if(!l)break k;d=c;e=b;if(i-1>>>0>=3){f=i&-4;h=0;while(1){J[d>>2]=J[d>>2]+J[e>>2];J[d+4>>2]=J[d+4>>2]+J[e+4>>2];J[d+8>>2]=J[d+8>>2]+J[e+8>>2];J[d+12>>2]=J[d+12>>2]+J[e+12>>2];e=e+16|0;d=d+16|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}f=i&3;if(!f)break k;h=0;while(1){J[d>>2]=J[d>>2]+J[e>>2];e=e+4|0;d=d+4|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}c=(j<<2)+c|0}h=(g-(k+o|0)|0)-((k|0)==(p|0))|0;if((h|0)>0){if(!l)break g;n=i&-2;o=i&1;f=j<<2;while(1){m= -0;d=c;e=b;if((i|0)!=1)while(1){J[d>>2]=J[d>>2]+(J[e+f>>2]+J[e>>2]>>1);J[d+4>>2]=J[d+4>>2]+(J[f+(e+4|0)>>2]+J[e+4>>2]>>1);d=d+8|0;e=e+8|0;m=m+2|0;if((n|0)!=(m|0))continue;break}if(o)J[d>>2]=J[d>>2]+(J[e+f>>2]+J[e>>2]>>1);b=b+f|0;c=c+f|0;d=(h|0)>1;h=h-1|0;if(d)continue;break}}if(q|l^1)break g;if(i-1>>>0>=3){e=i&-4;d=0;while(1){J[c>>2]=J[c>>2]+J[b>>2];J[c+4>>2]=J[c+4>>2]+J[b+4>>2];J[c+8>>2]=J[c+8>>2]+J[b+8>>2];J[c+12>>2]=J[c+12>>2]+J[b+12>>2];c=c+16|0;b=b+16|0;d=d+4|0;if((e|0)!=(d|0))continue;break}}e= -i&3;if(!e)break g;d=0;while(1){J[c>>2]=J[c>>2]+J[b>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((e|0)!=(d|0))continue;break}break g}if(!k|(i|0)<=0)break g;if(i-1>>>0>=3){c=i&-4;while(1){J[b>>2]=J[b>>2]>>1;J[b+4>>2]=J[b+4>>2]>>1;J[b+8>>2]=J[b+8>>2]>>1;J[b+12>>2]=J[b+12>>2]>>1;b=b+16|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}c=i&3;if(!c)break g;d=0;while(1){J[b>>2]=J[b>>2]>>1;b=b+4|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}Z8(a,g,i,j,k)}return 0}function pSa(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,u=0,w=0,y=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0;i=bc-800|0;bc=i;a:{b:{c:{d:{e:{j=J[a+4>>2];if((j|0)>0){while(1){h=f<<3;if(O[h+b>>3]!=O[(a+h|0)+1064>>3])break e;f=f+1|0;if((j|0)!=(f|0))continue;break}break d}if(!j)break d;break b}if((f|0)!=(j|0))break c}h=J[a+8>>2];if((h|0)<=0)break a;b=0;if(h>>>0>=4){k=h&-4;f=a+1320|0;while(1){j=b<<3;O[j+c>>3]=O[f+j>>3];l=j|8;O[l+c>>3]=O[f+l>>3];l=j|16;O[l+c>>3]=O[f+l>>3];j=j|24;O[j+c>>3]=O[f+j>>3];b=b+4|0;e=e+4|0;if((k|0)!= -(e|0))continue;break}}e=h&3;if(!e)break a;while(1){f=b<<3;O[f+c>>3]=O[(a+f|0)+1320>>3];b=b+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}break a}if((j|0)<=0)break b;f=0;if(j>>>0>=4){h=j&-4;while(1){O[(99-f<<3)+i>>3]=O[(f<<3)+b>>3];k=f|1;O[(99-k<<3)+i>>3]=O[(k<<3)+b>>3];k=f|2;O[(99-k<<3)+i>>3]=O[(k<<3)+b>>3];k=f|3;O[(99-k<<3)+i>>3]=O[(k<<3)+b>>3];f=f+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}e=j&3;if(!e)break b;while(1){O[(99-f<<3)+i>>3]=O[(f<<3)+b>>3];f=f+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}d= -100-j|0;t=bc-800|0;bc=t;C=J[a+1052>>2];f:{if((C|0)<=0)break f;D=i-8|0;r=J[a+1048>>2];j=0;g:{while(1){h:{e=j;j=e+1|0;i:{j:switch(J[(e<<4)+r>>2]){case 0:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=R(O[e>>3]);break i;case 1:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]+O[e+i>>3];break i;case 2:if((d|0)>98)break h;g=O[(d<<3)+i>>3];k:{if(R(g)<2147483648){e=~~g;break k}e=-2147483648}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];l:{if(R(g)<2147483648){f=~~g;break l}f=-2147483648}O[h>>3]=e&f;break i;case 3:if((d| -0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;I=f,K=Cf(O[f>>3],O[e+i>>3]),O[I>>3]=K;break i;case 4:if((d|0)>98)break h;e=d+1|0;g=O[(d<<3)+i>>3];m:{if(R(g)<2147483648){d=~~g;break m}d=-2147483648}k=(d|0)<=0;h=(e<<3)+i|0;g=O[h>>3];n:{if(R(g)<2147483648){f=~~g;break n}f=-2147483648}if(!k){O[h>>3]=f<>3]=f>>0-d;d=e;break i}O[h>>3]=f|0;d=e;break i;case 5:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=W(O[e>>3]);break i;case 6:f=810096;if((d|0)>99)break g;e=d+1|0;g=O[(d<<3)+i>>3];o:{if(R(g)< -2147483648){h=~~g;break o}h=-2147483648}if((h|0)<0){f=813526;d=e;break g}if((e+h|0)>100){d=e;break g}d=e-h|0;if((d|0)<0){f=813277;d=e;break g}if(!h)break i;k=(d<<3)+i|0;l=(e<<3)+i|0;e=0;f=0;if(h>>>0>=4){s=h&-4;m=0;while(1){o=f<<3;O[o+k>>3]=O[l+o>>3];q=o|8;O[q+k>>3]=O[l+q>>3];q=o|16;O[q+k>>3]=O[l+q>>3];o=o|24;O[o+k>>3]=O[l+o>>3];f=f+4|0;m=m+4|0;if((s|0)!=(m|0))continue;break}}h=h&3;if(!h)break i;while(1){m=f<<3;O[m+k>>3]=O[l+m>>3];f=f+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break i;case 7:if((d| -0)>99)break h;e=(d<<3)+i|0;I=e,K=He(O[e>>3]),O[I>>3]=K;break i;case 8:if((d|0)>99)break h;f=(d<<3)+i|0;g=O[f>>3];p:{if(R(g)<2147483648){e=~~g;break p}e=-2147483648}O[f>>3]=e|0;break i;case 9:if((d|0)>99)break h;break i;case 10:if((d|0)>98)break h;g=O[(d<<3)+i>>3];if(g==0){f=813526;break g}d=d+1|0;e=(d<<3)+i|0;O[e>>3]=O[e>>3]/g;break i;case 11:if((d|0)>99)break h;if((d|0)<=0){f=813277;break g}e=(d<<3)+i|0;O[e-8>>3]=O[e>>3];d=d-1|0;break i;case 12:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>> -3]=O[f>>3]==O[e+i>>3]?1:0;break i;case 13:if((d|0)>98)break h;e=(d<<3)+i|0;g=O[e+8>>3];O[e+8>>3]=O[e>>3];O[e>>3]=g;break i;case 14:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;I=f,K=We(O[f>>3],O[e+i>>3]),O[I>>3]=K;break i;case 15:if((d|0)<=0){f=813277;break g}e=(d<<3)+D|0;J[e>>2]=0;J[e+4>>2]=0;d=d-1|0;break i;case 16:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=V(O[e>>3]);break i;case 17:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]>=O[e+i>>3]?1:0;break i;case 18:if((d|0)>98)break h; -e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]>O[e+i>>3]?1:0;break i;case 19:if((d|0)>98)break h;g=O[(d<<3)+i>>3];q:{if(R(g)<2147483648){e=~~g;break q}e=-2147483648}if(!e){f=813526;break g}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];r:{if(R(g)<2147483648){f=~~g;break r}f=-2147483648}O[h>>3]=(f|0)/(e|0)|0;break i;case 20:f=810096;if((d|0)>99)break g;h=(d<<3)+i|0;g=O[h>>3];s:{if(R(g)<2147483648){e=~~g;break s}e=-2147483648}if((e|0)<0){f=813526;break g}e=(d+e|0)+1|0;if((e|0)>99)break g;O[h>>3]=O[(e<<3)+i>>3];break i; -case 21:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]<=O[e+i>>3]?1:0;break i;case 22:if((d|0)>99)break h;e=(d<<3)+i|0;I=e,K=os(O[e>>3]),O[I>>3]=K;break i;case 23:if((d|0)>99)break h;e=(d<<3)+i|0;l=e;g=O[e>>3];A(+g);e=v(1)|0;h=v(0)|0;t:{u:{v:{w:{if(!(((e|0)>0|(e|0)>=0)&e>>>0>1048575)){A(+g);f=v(1)|0;p=-1/(g*g);if(!(v(0)|f&2147483647))break t;if((e|0)>0|(e|0)>=0)break w;p=(g-g)/0;break t}if(e>>>0>2146435071)break u;f=1072693248;k=-1023;if((e|0)!=1072693248){f=e;break v}if(h)break v; -p=0;break t}A(+(g*0x40000000000000));e=v(1)|0;h=v(0)|0;f=e;k=-1077}e=f+614242|0;E=+((e>>>20|0)+k|0);u=E*.30102999566361177;x(0,h|0);x(1,(e&1048575)+1072079006|0);n=+z()+-1;w=n*(n*.5);y=n/(n+2);B=y*y;g=B*B;A(+(n-w));e=v(1)|0;v(0)|0;x(0,0);x(1,e|0);p=+z();F=p*.4342944818781689;G=u+F;g=y*(w+(g*(g*(g*.15313837699209373+.22222198432149784)+.3999999999940942)+B*(g*(g*(g*.14798198605116586+.1818357216161805)+.2857142874366239)+.6666666666666735)))+(n-p-w);g=G+(F+(u-G)+(g*.4342944818781689+(E*3.694239077158931E-13+ -(g+p)*2.5082946711645275E-11)))}p=g}O[l>>3]=p;break i;case 24:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]>3]?1:0;break i;case 25:if((d|0)>98)break h;g=O[(d<<3)+i>>3];x:{if(R(g)<2147483648){e=~~g;break x}e=-2147483648}if(!e){f=813526;break g}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];y:{if(R(g)<2147483648){f=~~g;break y}f=-2147483648}O[h>>3]=(f|0)%(e|0)|0;break i;case 26:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]*O[e+i>>3];break i;case 27:if((d|0)>98)break h;e=d<< -3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]!=O[e+i>>3]?1:0;break i;case 28:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=-O[e>>3];break i;case 29:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=O[e>>3]==0?1:0;break i;case 30:if((d|0)>98)break h;g=O[(d<<3)+i>>3];z:{if(R(g)<2147483648){e=~~g;break z}e=-2147483648}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];A:{if(R(g)<2147483648){f=~~g;break A}f=-2147483648}O[h>>3]=e|f;break i;case 31:if((d|0)>99)break h;d=d+1|0;break i;case 32:f=810096;if((d|0)>98)break g;h=(d<<3)+i|0;g=O[h+8>> -3];B:{if(R(g)<2147483648){e=~~g;break B}e=-2147483648}k=(e|0)<0;g=O[h>>3];C:{if(R(g)<2147483648){h=~~g;break C}h=-2147483648}d=d+2|0;if(k){f=813526;break g}if(!e)break i;if((d+e|0)>100)break g;if((h|0)>=0)h=(h>>>0)%(e>>>0)|0;else{f=(0-h>>>0)%(e>>>0)|0;h=f?e-f|0:0}k=(d<<3)+i|0;l=tc(t,k,e<<3);f=0;if((e|0)!=1){o=e&-2;m=0;while(1){O[k+(f<<3)>>3]=O[l+((f+h|0)%(e|0)<<3)>>3];s=f|1;O[k+(s<<3)>>3]=O[l+((h+s|0)%(e|0)<<3)>>3];f=f+2|0;m=m+2|0;if((o|0)!=(m|0))continue;break}}if(!(e&1))break i;O[k+(f<<3)>>3]=O[l+ -((f+h|0)%(e|0)<<3)>>3];break i;case 33:if((d|0)>99)break h;e=(d<<3)+i|0;g=O[e>>3];O[e>>3]=g>=0?V(g+.5):W(g+-.5);break i;case 34:if((d|0)>99)break h;e=(d<<3)+i|0;I=e,K=xe(O[e>>3]),O[I>>3]=K;break i;case 35:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=Y(O[e>>3]);break i;case 36:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]-O[e+i>>3];break i;case 37:if((d|0)<=0){f=813277;break g}e=(d<<3)+D|0;J[e>>2]=0;J[e+4>>2]=1072693248;d=d-1|0;break i;case 38:if((d|0)>99)break h;e=(d<<3)+i|0;g=O[e>> -3];O[e>>3]=g>=0?V(g):W(g);break i;case 39:if((d|0)>98)break h;g=O[(d<<3)+i>>3];D:{if(R(g)<2147483648){e=~~g;break D}e=-2147483648}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];E:{if(R(g)<2147483648){f=~~g;break E}f=-2147483648}O[h>>3]=e^f;break i;case 40:if((d|0)<=0){f=813277;break g}d=d-1|0;O[(d<<3)+i>>3]=O[((e<<4)+r|0)+8>>3];break i;case 41:j=J[((e<<4)+r|0)+8>>2];break i;case 42:break j;default:break i}if((d|0)>99)break h;g=O[(d<<3)+i>>3];F:{if(R(g)<2147483648){f=~~g;break F}f=-2147483648}d=d+1|0;if(f)break i; -j=J[((e<<4)+r|0)+8>>2]}if((j|0)<(C|0))continue;break f}break}f=810096}xc(1,-1,f,0)}bc=t+800|0;e=d;d=J[a+8>>2];if((e|0)>(100-d|0)){xc(1,-1,810096,0);d=J[a+8>>2];e=100-d|0}f=0;if((d|0)>0)while(1){g=O[(((f^-1)+e|0)+d<<3)+i>>3];h=(f<<4)+a|0;n=O[h+528>>3];G:{if(g>3]=n;break G}j=(f<<3)+c|0;n=O[h+536>>3];if(n>3]=n;break G}O[j>>3]=g}f=f+1|0;if((f|0)!=(d|0))continue;break}k=J[a+4>>2];H:{if((k|0)<=0)break H;j=0;f=0;if(k>>>0>=4){l=k&-4;e=a+1064|0;while(1){h=f<<3;O[h+e>>3]=O[b+h>>3];m= -h|8;O[m+e>>3]=O[b+m>>3];m=h|16;O[m+e>>3]=O[b+m>>3];h=h|24;O[h+e>>3]=O[b+h>>3];f=f+4|0;H=H+4|0;if((l|0)!=(H|0))continue;break}}e=k&3;if(!e)break H;while(1){h=f<<3;O[(h+a|0)+1064>>3]=O[b+h>>3];f=f+1|0;j=j+1|0;if((e|0)!=(j|0))continue;break}}if((d|0)<=0)break a;h=d&3;e=0;b=0;if(d>>>0>=4){k=d&-4;f=a+1320|0;d=0;while(1){j=b<<3;O[j+f>>3]=O[c+j>>3];l=j|8;O[l+f>>3]=O[c+l>>3];l=j|16;O[l+f>>3]=O[c+l>>3];j=j|24;O[j+f>>3]=O[c+j>>3];b=b+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}if(!h)break a;while(1){d=b<<3; -O[(d+a|0)+1320>>3]=O[c+d>>3];b=b+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}bc=i+800|0}function yBa(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;i=bc-32|0;bc=i;e=J[a+20>>2];a:{b:{c:{d:{e:{if(J[a+16>>2]){f=a+12|0;J[i+28>>2]=f;J[i+24>>2]=e;if(!e)break c;f=J[J[e+8>>2]+8>>2]!=0;break e}f=1;if(!e)break d}while(1){if(!(!J[J[e+8>>2]+8>>2]^f)){b=Kc(i,2381493,2377692,407,2386273,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}e=J[e>>2];if(e)continue;break}}d= -bc+-64|0;bc=d;j=f;h=J[b>>2];Pm(h,f?129:1);vv(h,J[a+16>>2]);f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!J[a+16>>2])break n;o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{f=J[a+20>>2];B:{if(!f)break B;e=f;while(1){g=((K[J[e+8>>2]+52|0]&63)==3)+g|0;e=J[e>>2];if(e)continue;break}if(g>>>0>=2){J[695492]=0;b=ja(5018,d+36|0,2382037,2377692,436,2386336,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break l;break a}if(!f|!j)break B;while(1){e=J[f+8>>2];J[695492]=0;J[e+ -4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;C:{D:{if((e|0)!=1){k=J[f+8>>2];J[d+16>>2]=k;e=J[k+8>>2];if(e)break C;J[695492]=0;b=ja(5018,d+36|0,2381493,2377692,450,2386336,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break D;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break l;e=Z()|0;Fc(b);break z}break h}e=Z()|0;break z}J[695492]=0;da(5131,h|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break A;J[695492]=0;g=J[k+4>>2]-1|0;J[k+4>>2]=g;e=J[695492];J[695492]=0;if((e|0)==1)break g;if(!g){J[695492]= -0;_(4987,k|0);e=J[695492];J[695492]=0;if((e|0)==1)break g}f=J[f>>2];if(f)continue;break}}e=0;f=J[b>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break h;e=J[b>>2]}J[695492]=0;J[d+28>>2]=e;ca(5132,d+32|0,d+28|0,50);b=J[695492];J[695492]=0;if((b|0)==1)break y;e=J[d+28>>2];J[d+28>>2]=0;E:{if(!e)break E;J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;b=J[695492];J[695492]=0;if((b|0)==1)break g;if(f)break E;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break g}h= -J[d+32>>2];e=J[a+20>>2];b=h;if(!e)break o;while(1){b=J[e+8>>2];J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break v;g=J[e+8>>2];J[d+36>>2]=g;b=J[g+12>>2];J[695492]=0;da(5133,h|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break x;J[695492]=0;f=J[g+4>>2]-1|0;J[g+4>>2]=f;b=J[695492];J[695492]=0;if((b|0)==1)break g;if(!f){J[695492]=0;_(4987,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break g}e=J[e>>2];if(e)continue;break}f=J[a+20>>2];if(!f)break p;j=j^1|c;break w}e=Z()|0}vc(d+16|0); -ba(e|0);B()}a=Z()|0;vc(d+28|0);ba(a|0);B()}e=Z()|0;vc(d+36|0);break i}F:{while(1){e=0;b=J[f+8>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break t;e=J[f+8>>2]}J[d+8>>2]=e;G:{H:{if(!j){I:{b=J[e+20>>2];if(!(!b|!J[b+8>>2])){J[695492]=0;c=ga(5117,e+20|0,e+36|0,-1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break u;e=J[d+8>>2];if(c)break I}H[e+52|0]=K[e+52|0]&127;break H}H[e+52|0]=K[e+52|0]|128;break H}J[d+36>>2]=0;J[d+40>>2]=J[682146];c=J[e+20>>2];J:{if(!c){J[d+16>>2]=0; -break J}b=J[J[c>>2]+28>>2];J[695492]=0;ca(b|0,d+16|0,c|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break G}J[695492]=0;aa(4993,d+36|0,d+16|0)|0;b=J[695492];J[695492]=0;K:{if((b|0)!=1){g=J[d+16>>2];J[d+16>>2]=0;if(!g)break K;J[695492]=0;c=J[g+4>>2]-1|0;J[g+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)!=1){if(c)break K;J[695492]=0;_(4987,g|0);b=J[695492];J[695492]=0;if((b|0)!=1)break K}break g}e=Z()|0;vc(d+16|0);break s}b=J[d+36>>2];J[d+40>>2]=J[(b?b+12|0:2728584)>>2];L:{if(b)break L;M:{b=J[e+28>>2];if(!(!b| -!J[b+8>>2])){J[695492]=0;c=ga(5117,e+28|0,d+36|0,-1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break F;e=J[d+8>>2];if(c)break M}H[e+52|0]=K[e+52|0]&127;break L}H[e+52|0]=K[e+52|0]|128}sc(d+36|0)}N:{O:{b=J[e+44>>2];if(!b|!J[b+8>>2])break O;J[695492]=0;c=ga(5117,e+44|0,e+36|0,-1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break u;e=J[d+8>>2];if(!c)break O;b=K[e+52|0]|64;break N}b=K[e+52|0]&-65}H[e+52|0]=b;J[695492]=0;da(5134,h|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break u;J[695492]=0;J[d+8>>2]=0;c=J[e+ -4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break g;if(!c){J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break g}f=J[f>>2];if(!f)break q;continue}break}e=Z()|0;break s}e=Z()|0;sc(d+36|0);break r}e=Z()|0;break i}e=Z()|0;break r}e=Z()|0;break i}sc(d+36|0)}vc(d+8|0);break i}f=J[a+20>>2];if(!f)break p;while(1){e=0;P:{Q:{R:{S:{T:{U:{a=J[f+8>>2];if(a){J[695492]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break U;e=J[f+8>>2]}J[d+24>>2]=e;J[d+36>>2]=0;a=J[682146]; -J[d+40>>2]=a;J[d+20>>2]=a;J[d+16>>2]=0;J[d+12>>2]=a;J[d+8>>2]=0;if(!j)break R;b=J[e+20>>2];V:{if(b){a=J[J[b>>2]+28>>2];J[695492]=0;ca(a|0,d+60|0,b|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break V;break k}J[d+60>>2]=0}J[695492]=0;aa(4993,d+36|0,d+60|0)|0;a=J[695492];J[695492]=0;W:{if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break W;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)!=1){if(b)break W;J[695492]=0;_(4987,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break W}break g}e= -Z()|0;vc(d+60|0);break j}a=J[d+36>>2];J[d+40>>2]=J[(a?a+12|0:2728584)>>2];if(a)break S;b=J[e+36>>2];X:{if(b){a=J[J[b>>2]+28>>2];J[695492]=0;ca(a|0,d+60|0,b|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break X;break k}J[d+60>>2]=0}J[695492]=0;aa(4993,d+36|0,d+60|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break T;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)!=1){if(b)break T;J[695492]=0;_(4987,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break T}break g}e= -Z()|0;vc(d+60|0);break j}e=Z()|0;break i}a=J[d+36>>2];J[d+40>>2]=J[(a?a+12|0:2728584)>>2]}if(H[e+52|0]>=0)break P;b=J[e+28>>2];Y:{if(b){a=J[J[b>>2]+28>>2];J[695492]=0;ca(a|0,d+60|0,b|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break Y;break k}J[d+60>>2]=0}J[695492]=0;aa(4993,d+16|0,d+60|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break Q;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)!=1){if(b)break Q;J[695492]=0;_(4987,c|0);a=J[695492];J[695492]= -0;if((a|0)!=1)break Q}break g}e=Z()|0;vc(d+60|0);break j}b=J[e+36>>2];Z:{if(b){a=J[J[b>>2]+28>>2];J[695492]=0;ca(a|0,d+60|0,b|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break Z;break k}J[d+60>>2]=0}J[695492]=0;aa(4993,d+36|0,d+60|0)|0;a=J[695492];J[695492]=0;_:{if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break _;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)!=1){if(b)break _;J[695492]=0;_(4987,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break _}break g}e=Z()|0;vc(d+60|0);break j}a= -J[d+36>>2];J[d+40>>2]=J[(a?a+12|0:2728584)>>2];if(H[e+52|0]>=0)break P;b=J[e+20>>2];$:{if(b){a=J[J[b>>2]+28>>2];J[695492]=0;ca(a|0,d+60|0,b|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break k;break $}J[d+60>>2]=0}J[695492]=0;aa(4993,d+16|0,d+60|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break Q;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)!=1){if(b)break Q;J[695492]=0;_(4987,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break Q}break g}e=Z()|0;vc(d+ -60|0);break j}a=J[d+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2]}if(K[e+52|0]&64){b=J[e+44>>2];aa:{if(b){a=J[J[b>>2]+28>>2];J[695492]=0;ca(a|0,d+60|0,b|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break k;break aa}J[d+60>>2]=0}J[695492]=0;aa(4993,d+8|0,d+60|0)|0;a=J[695492];J[695492]=0;ba:{if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break ba;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)!=1){if(b)break ba;J[695492]=0;_(4987,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break ba}break g}e= -Z()|0;vc(d+60|0);break j}a=J[d+8>>2];J[d+12>>2]=J[(a?a+12|0:2728584)>>2]}J[695492]=0;aa(5058,h|0,d+36|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;da(5134,h|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[d+16>>2];if(!(!a|!J[a+8>>2])){J[695492]=0;aa(5058,h|0,d+16|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;da(5134,h|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break k}a=J[d+8>>2];if(!(!a|!J[a+8>>2])){J[695492]=0;aa(5058,h|0,d+8|0)|0;a=J[695492];J[695492]=0;if((a| -0)==1)break k;J[695492]=0;da(5134,h|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break k}sc(d+8|0);sc(d+16|0);sc(d+36|0);J[d+24>>2]=0;J[695492]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)==1)break g;if(!b){J[695492]=0;_(4987,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break g}f=J[f>>2];if(f)continue;break}}b=J[d+32>>2]}J[d+32>>2]=0;if(!b)break n;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[695492];J[695492]=0;if((a|0)==1)break m;if(c)break n;J[695492]=0;_(4987,b|0);a=J[695492];J[695492]= -0;if((a|0)==1)break m}bc=d- -64|0;break f}ea(0)|0;yc()}B()}e=Z()|0}sc(d+8|0);sc(d+16|0);sc(d+36|0);vc(d+24|0)}vc(d+32|0);ba(e|0);B()}ba(Z()|0);B()}ea(0)|0;yc();B()}bc=i+32|0;return}aj(i+24|0,f)}B()}a=Z()|0;Fc(b);ba(a|0);B()}function thb(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;g=bc-144|0;bc=g;e=I[b+2>>1];if(!(!e|!L[b>>1])){wc(g+12|0,0,128);t=J[c>>2];J[g+28>>2]=t;i=e;e=g+140|0;v=g,w=Sc(t,40,0,i,0,e),J[v+20>>2]=w;l=J[g+140>>2]; -a:{if(l)break a;f=Sc(t,8,0,I[b>>1],0,e);J[g+24>>2]=f;l=J[g+140>>2];if(l)break a;q=I[b+2>>1];J[g+12>>2]=q;m=I[b>>1];J[g+16>>2]=m;o=J[g+20>>2];if(m){r=J[b+12>>2];l=0;while(1){u=I[r+(l<<1)>>1];n=o+P(j,40)|0;J[f>>2]=n;p=u+1|0;h=p-j|0;J[f+4>>2]=h;if(h){J[n>>2]=o+P(u,40);J[n+8>>2]=f;i=n;b:{if((h|0)==1)break b;k=0;e=i;s=u-j&3;if(s)while(1){J[e+48>>2]=f;i=e+40|0;J[e+4>>2]=i;J[e+40>>2]=e;h=h-1|0;e=i;k=k+1|0;if((s|0)!=(k|0))continue;break}if((j^-1)+u>>>0<3)break b;while(1){J[e+48>>2]=f;i=e+40|0;J[e+4>>2]=i; -J[e+88>>2]=f;J[e+80>>2]=i;i=e+80|0;J[e+44>>2]=i;J[e+128>>2]=f;J[e+120>>2]=i;i=e+120|0;J[e+84>>2]=i;J[e+168>>2]=f;J[e+160>>2]=i;i=e+160|0;J[e+124>>2]=i;J[e+40>>2]=e;e=i;h=h-4|0;if(h>>>0>1)continue;break}}J[i+4>>2]=n}f=f+8|0;j=p;l=l+1|0;if((m|0)!=(l|0))continue;break}}c:{if(!q){J[g+36>>2]=c;J[g+32>>2]=b;break c}q=J[b+4>>2];f=0;e=o;while(1){n=(J[e+4>>2]-o|0)/40|0;i=(J[e>>2]-o|0)/40|0;if(!(H[J[b+8>>2]+f|0]&1))J[e+12>>2]=1;h=q+(f<<3)|0;k=J[h+4>>2];i=q+(i<<3)|0;r=k-J[i+4>>2]|0;j=r>>31;p=J[h>>2];s=p-J[i>> -2]|0;i=s>>31;i=(i^s)-i|0;j=(j^r)-j|0;h=(s|0)>=0?2:-2;d:{if(i>>>0>P(j,12)>>>0)break d;h=4;if(j>>>0<=P(i,12)>>>0)break d;h=(r|0)>=0?-1:1}H[e+20|0]=h;i=q+(n<<3)|0;n=J[i+4>>2]-k|0;j=n>>31;k=J[i>>2]-p|0;i=k>>31;i=(i^k)-i|0;p=(j^n)-j|0;j=(k|0)>=0?2:-2;e:{if(i>>>0>P(p,12)>>>0)break e;j=4;if(p>>>0<=P(i,12)>>>0)break e;j=(n|0)>=0?-1:1}H[e+21|0]=j;i=J[e+12>>2];f:{g:{if(i&1)break g;if((h|0)!=(j|0))break f;if((j|0)!=4)break g;if(!k6(s,r,k,n))break f;i=J[e+12>>2]}J[e+12>>2]=i|2}e=e+40|0;f=f+1|0;i=J[g+12>>2];if(f>>> -0>>0)continue;break}J[g+36>>2]=c;J[g+32>>2]=b;if(!i)break c;f=J[b+4>>2];e=J[g+20>>2];b=i&3;h:{if(!b){h=i;break h}k=0;h=i;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];J[e+32>>2]=J[f+4>>2];f=f+8|0;e=e+40|0;h=h-1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}}if(i>>>0<4)break c;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];b=J[f+4>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=b;J[e+68>>2]=J[f+8>>2];b=J[f+12>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=b;J[e+108>>2]=J[f+16>>2];b=J[f+20>>2];J[e+ -144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=b;J[e+148>>2]=J[f+24>>2];J[e+152>>2]=J[f+28>>2];f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}}if(J[g+16>>2]){m=0;while(1){b=J[g+24>>2]+(m<<3)|0;i:{if(M[b+4>>2]<4)break i;b=J[b>>2];e=b;while(1){e=J[e+4>>2];if((b|0)==(e|0))break i;f=J[e+28>>2];j=J[b+28>>2];h=J[b+32>>2];i=J[e+32>>2];if((f|0)==(j|0)&(h|0)==(i|0))continue;break}n=i-h|0;k=f-j|0;j=b;while(1){p=j;j=J[j>>2];if((b|0)==(j|0))break i;f=J[p+28>>2]-J[j+28>>2]|0;h=J[p+32>>2]-J[j+32>>2]|0;if(!(f|h))continue; -i=l6(k,n,f,h);if(!i)continue;break}b=p;while(1){q=i;r=h;s=f;l=b;j=0;while(1){i=J[e+32>>2];k=J[e+28>>2];while(1){b=e;e=J[e+4>>2];o=J[e+32>>2];h=o-i|0;n=J[e+28>>2];f=n-k|0;j=(e|0)==(p|0)?1:j;i=o;k=n;if(!(f|h))continue;break}i=l6(s,r,f,h);if(!i)continue;break}if((i^q)<0){while(1){J[l+12>>2]=J[l+12>>2]|4;l=J[l+4>>2];if((l|0)!=(b|0))continue;break}J[b+12>>2]=J[b+12>>2]|4}if(!j)continue;break}}m=m+1|0;if(m>>>0>2])continue;break}}l=_4(g+40|0,a+16|0,a+28|0,t);J[g+140>>2]=l;if(l)break a;l=_4(g+80| -0,a+52|0,a- -64|0,t);if(l)break a;a=J[g+36>>2];n=J[a+200>>2];p=c+416|0;q=J[a+404>>2];i=Pc(J[p>>2],q);a=i+32&-64;r=!a|(a|0)==(i|0);if(!r){e=Dd(q,a,i);FL(J[g+36>>2],(a|0)<(i|0)?n+((n|0)/-50|0)|0:n,e,0,0)}I[g+132>>1]=257;H[g+136|0]=(d|0)!=1;H[g+135|0]=(d|0)==2|(d|0)==4;H[g+134|0]=(d&-2)==2;s=c+932|0;l=1;i=0;while(1){j=J[g+12>>2];j:{if(!j)break j;f=J[J[g+32>>2]+4>>2];e=J[g+20>>2];if(!(l&1)){k=0;h=j;a=h&3;if(a)while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f+4>>2];J[e+32>>2]=J[f>>2];f=f+8|0;e=e+40|0; -h=h-1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}if(j>>>0<4)break j;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f+4>>2];a=J[f>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=a;J[e+68>>2]=J[f+12>>2];a=J[f+8>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=a;J[e+108>>2]=J[f+20>>2];a=J[f+16>>2];J[e+144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=a;J[e+148>>2]=J[f+28>>2];J[e+152>>2]=J[f+24>>2];f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}break j}k=0;h=j;a=h&3;if(a)while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];J[e+ -32>>2]=J[f+4>>2];f=f+8|0;e=e+40|0;h=h-1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}if(j>>>0<4)break j;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];a=J[f+4>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=a;J[e+68>>2]=J[f+8>>2];a=J[f+12>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=a;J[e+108>>2]=J[f+16>>2];a=J[f+20>>2];J[e+144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=a;J[e+148>>2]=J[f+24>>2];J[e+152>>2]=J[f+28>>2];f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}}o=J[g+16>>2];k:{if(!o){d=0;break k}b=0;k=J[g+24>> -2];while(1){l:{a=k+(b<<3)|0;if(!J[a+4>>2])break l;a=J[a>>2];f=a;while(1){f=J[f>>2];if((a|0)==(f|0)){d=b+1|0;break k}if(J[f+28>>2]==J[a+28>>2])continue;break}a=J[f+4>>2];e=a;while(1){h=e;while(1){e=J[e+4>>2];if((a|0)==(e|0))break l;d=J[e+28>>2];m=J[h+28>>2];if((d|0)==(m|0))continue;break}m:{n:{if((m|0)>J[f+28>>2]){if((d|0)<(m|0))break n;break m}if((d|0)<=(m|0))break m}while(1){J[h+16>>2]=J[h+16>>2]|64;h=J[h+4>>2];if((h|0)!=(e|0))continue;break}}f=J[e>>2];continue}}d=0;b=b+1|0;if((o|0)!=(b|0))continue; -break}}while(1){if(d>>>0>>0){e=J[g+20>>2];b=P(d,40);a=e+b|0;h=J[a+16>>2];o:{if(!(h&64))break o;b=b+e|0;e=a;while(1){e=J[e>>2];if((a|0)==(e|0))break o;f=J[e+32>>2];k=J[b+32>>2];if((f|0)==(k|0))continue;break}e=a;while(1){e=J[e+4>>2];if((a|0)==(e|0))break o;b=J[e+32>>2];if((b|0)==(k|0))continue;break}p:{if((f|0)<(k|0)){e=128;if((b|0)>(k|0))break p}if((f|0)<=(k|0))break o;e=256;if((b|0)>=(k|0))break o}J[a+16>>2]=e|h}d=d+1|0;continue}break}h=J[g+36>>2];o=(g+12|0)+P(i,40)|0;m=o+28|0;f=J[m>>2];if(f){e= -J[m+8>>2];while(1){Z4(e,h,i,g+12|0);e=e+28|0;f=f-1|0;if(f)continue;break}h=J[g+36>>2]}a=J[o+60>>2];e=J[a+8>>2];k=J[a>>2];a=td(32,J[(P(i,204)+h|0)+200>>2]);j=(a|0)>=30?30:a;h=l&1?1:2;q:{r:{s:{if(k>>>0>=2){b=J[g+12>>2];if(!b){a=0;break q}a=J[e+12>>2];f=a>>>0>>0?a:b;while(1){b=J[e+28>>2];a=J[g+12>>2];a=a>>>0>b>>>0?b:a;if(a>>>0>f>>>0){b=J[g+20>>2];Y4(m,J[e+16>>2],J[e+24>>2]);X4(J[m+4>>2],J[m+12>>2],b+P(f,40)|0,a-f|0,j,h)}e=e+16|0;f=a;k=k-1|0;if(k>>>0>1)continue;break}break s}if((k|0)!=1)break r}d= -J[g+20>>2];b=J[g+12>>2];a=J[J[o+60>>2]+8>>2];Y4(m,J[a>>2],J[a+8>>2]);X4(J[m+4>>2],J[m+12>>2],d,b,j,h)}a=J[g+12>>2];if(!a){a=0;break q}e=J[g+20>>2];if(a&1){t:{if(!J[e+24>>2])break t;b=J[e+16>>2];if(b&16)break t;J[e+16>>2]=b|16}e=e+40|0;f=a-1|0}else f=a;if((a|0)==1)break q;while(1){u:{if(!J[e+24>>2])break u;b=J[e+16>>2];if(b&16)break u;J[e+16>>2]=b|16}v:{if(!J[e- -64>>2])break v;b=J[e+56>>2];if(b&16)break v;J[e+56>>2]=b|16}e=e+80|0;f=f-2|0;if(f)continue;break}}w:{if(!(i&1)){a=g+12|0;W4(a,0);V4(a,0); -U4(a,0);h=J[g+12>>2];if(!h)break w;a=J[g+32>>2];d=J[a+8>>2];b=J[a+4>>2];f=0;e=J[g+20>>2];while(1){J[b+(f<<3)>>2]=J[e+36>>2];if(K[e+16|0]&16){a=d+f|0;H[a|0]=K[a|0]|32;h=J[g+12>>2]}e=e+40|0;f=f+1|0;if(h>>>0>f>>>0)continue;break}break w}if(a){h=J[g+20>>2];while(1){b=K[h+20|0];x:{y:{if((b|0)==2|(b|0)==254)break y;b=K[h+21|0];if((b|0)==254)break y;if((b|0)!=2)break x}j=J[h+16>>2];if(j&16)break x;o=J[h+28>>2];i=J[c+412>>2];z:{if(!i)break z;f=J[c+2488>>2];d=0-f|0;e=p;while(1){b=o-J[e+12>>2]|0;if((b|0)<(d| -0))break z;if(!(!K[c+2492|0]&(b|0)>J[c+2484>>2]|(o|0)>(f+J[e+8>>2]|0))){b=J[e+24>>2];j=j|48;J[h+16>>2]=j;J[h+36>>2]=b}e=e+32|0;i=i-1|0;if(i)continue;break}}i=J[c+928>>2];if(!i)break x;f=J[c+2488>>2];e=0-f|0;k=s+(i<<5)|0;while(1){b=k;k=b-32|0;d=J[k+8>>2]-o|0;if((d|0)<(e|0))break x;if(!(!K[c+2492|0]&(d|0)>=J[c+2484>>2]|(o|0)<(J[b-20>>2]-f|0))){b=J[b-4>>2];j=j|48;J[h+16>>2]=j;J[h+36>>2]=b}i=i-1|0;if(i)continue;break}}h=h+40|0;a=a-1|0;if(a)continue;break}}a=g+12|0;W4(a,1);V4(a,1);U4(a,1);h=J[g+12>>2]; -if(!h)break w;a=J[g+32>>2];d=J[a+8>>2];b=J[a+4>>2];f=0;e=J[g+20>>2];while(1){J[(b+(f<<3)|0)+4>>2]=J[e+36>>2];if(K[e+16|0]&16){a=d+f|0;H[a|0]=K[a|0]|64;h=J[g+12>>2]}e=e+40|0;f=f+1|0;if(h>>>0>f>>>0)continue;break}}if(!r)FL(J[g+36>>2],n,q,0,0);i=1;a=l&1;l=0;if(a)continue;break}}b=J[g+28>>2];a=J[g+104>>2];if(a)gc[J[b+8>>2]](b,a);J[g+108>>2]=0;J[g+100>>2]=0;J[g+104>>2]=0;a=J[g+92>>2];if(a)gc[J[b+8>>2]](b,a);J[g+92>>2]=0;a=J[g+88>>2];if(a)gc[J[b+8>>2]](b,a);J[g+88>>2]=0;J[g+96>>2]=0;J[g+80>>2]=0;J[g+84>> -2]=0;a=J[g- -64>>2];if(a)gc[J[b+8>>2]](b,a);J[g+68>>2]=0;J[g+60>>2]=0;J[g+64>>2]=0;a=J[g+52>>2];if(a)gc[J[b+8>>2]](b,a);J[g+52>>2]=0;a=J[g+48>>2];if(a)gc[J[b+8>>2]](b,a);J[g+48>>2]=0;J[g+56>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;a=J[g+20>>2];if(a)gc[J[b+8>>2]](b,a);J[g+20>>2]=0;a=J[g+24>>2];if(a)gc[J[b+8>>2]](b,a)}bc=g+144|0;return l|0}function tp(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=bc-448|0;bc=e;a:{if(!a)break a;J[e+444>>2]=80;c=gc[J[659450]](81)|0;if(!c){J[e>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0, -0,0,32863,e);break a}b:{d=J[a>>2];c:{if(d){g=K[d|0];d:{if(!g)break d;while(1){b=J[e+444>>2];if((b|0)<=(f|0)){if((b|0)>=1048577){J[e+416>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+416|0);break c}g=b<<1;b=gc[J[659452]](c,g|1)|0;if(!b){J[e+432>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+432|0);break c}J[e+444>>2]=g;g=K[d|0];c=b}H[c+f|0]=g;f=f+1|0;g=K[d+1|0];d=d+1|0;if(g)continue;break}b=J[e+444>>2];if((b|0)>(f|0))break d;if((b|0)>=1048577){J[e+384>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0, -0,32863,e+384|0);break c}g=b<<1;b=gc[J[659452]](c,g|1)|0;if(!b){J[e+400>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+400|0);break c}J[e+444>>2]=g;c=b}H[c+f|0]=58;f=f+1|0}h=J[a+4>>2];e:{if(h){d=K[h|0];if(!d){g=f;break e}while(1){g=f+3|0;b=J[e+444>>2];if((g|0)>=(b|0)){if((b|0)>=1048577){J[e+352>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+352|0);break c}d=b<<1;b=gc[J[659452]](c,d|1)|0;if(!b){J[e+368>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+368|0);break c}J[e+444>>2]=d;d=K[h|0];c= -b}f:{g:{h:{i:{b=d&255;switch(b-36|0){case 0:case 2:case 7:case 8:case 11:case 22:case 23:case 25:case 27:case 28:case 55:case 57:break h;default:break i}}if((d-48&255)>>>0<10|((d&-33)-65&255)>>>0<26)break h;j:switch(b-33|0){case 1:case 2:case 3:case 4:case 5:case 10:case 11:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:break g; -case 0:case 6:case 7:case 8:case 9:case 12:case 13:case 62:break h;default:break j}if((b|0)!=126)break g}g=f+1|0;break f}i=c+f|0;H[i|0]=37;H[i+1|0]=(b>>>4|0)+(b>>>0>159?55:48);b=d&15;d=(b>>>0>9?55:48)+b|0;f=f+2|0}H[c+f|0]=d;d=K[h+1|0];h=h+1|0;f=g;if(d)continue;break}break e}k:{if(!(!J[a+12>>2]&J[a+20>>2]!=-1)){b=J[e+444>>2];l:{if((b|0)>(f+3|0)){b=c;break l}if((b|0)>=1048577){J[e+288>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+288|0);break c}g=b<<1;b=gc[J[659452]](c,g|1)|0;if(!b){J[e+304>>2]= -36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+304|0);break c}J[e+444>>2]=g}c=b+f|0;H[c|0]=47;H[c+1|0]=47;f=f+2|0;g=J[a+16>>2];if(g){d=K[g|0];m:{if(!d){h=f;c=b;break m}c=b;while(1){h=f+3|0;b=J[e+444>>2];if((h|0)>=(b|0)){if((b|0)>=1048577){J[e+256>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+256|0);break c}d=b<<1;b=gc[J[659452]](c,d|1)|0;if(!b){J[e+272>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+272|0);break c}J[e+444>>2]=d;d=K[g|0];c=b}n:{o:{p:{if((d-48&255)>>>0<10|((d&-33)-65&255)>>>0< -26)break p;b=d&255;switch(b-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 62:case 93:break p;default:break o}}h=f+1|0;break n}i=c+f|0;H[i|0]=37;H[i+1|0]=(b>>>4|0)+(b>>>0>159?55:48);b=d&15;d=(b>>>0>9?55:48)+b|0;f=f+2|0}H[c+f|0]=d;d=K[g+1|0];g=g+1|0;f=h;if(d)continue;break}}q:{if(J[e+444>>2]>(h+3|0)){b=c;break q}b=$q(c,e+444|0);if(!b)break c}H[b+h|0]=64;f=h+1|0}d=J[a+12>>2];if(!d)break k;g=K[d|0];r:{if(!g){c=b;break r}c=b;while(1){b= -J[e+444>>2];if((b|0)<=(f|0)){if((b|0)>=1048577){J[e+224>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+224|0);break c}g=b<<1;b=gc[J[659452]](c,g|1)|0;if(!b){J[e+240>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+240|0);break c}J[e+444>>2]=g;g=K[d|0];c=b}H[c+f|0]=g;f=f+1|0;g=K[d+1|0];d=d+1|0;if(g)continue;break}}d=J[a+20>>2];if((d|0)<=0){b=c;break k}g=J[e+444>>2];s:{if((g|0)>(f+10|0)){b=c;break s}b=$q(c,e+444|0);if(!b)break c;d=J[a+20>>2];g=J[e+444>>2]}J[e+208>>2]=d;f=Gi(b+f|0,g-f|0,17407,e+ -208|0)+f|0;break k}if(J[a+8>>2]){t:{if(J[e+444>>2]>(f+3|0)){b=c;break t}b=$q(c,e+444|0);if(!b)break c}c=b+f|0;H[c|0]=47;H[c+1|0]=47;d=f+2|0;g=J[a+8>>2];c=K[g|0];if(!c){f=d;break k}while(1){f=d+3|0;h=J[e+444>>2];if((f|0)>=(h|0)){if((h|0)>=1048577){J[e+320>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+320|0);c=b;break c}h=h<<1;c=gc[J[659452]](b,h|1)|0;if(!c){J[e+336>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+336|0);c=b;break c}J[e+444>>2]=h;b=c;c=K[g|0]}u:{v:{w:{if((c-48&255)>>>0<10|((c& --33)-65&255)>>>0<26)break w;h=c&255;switch(h-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break w;default:break v}}f=d+1|0;break u}i=b+d|0;H[i|0]=37;H[i+1|0]=(h>>>4|0)+(h>>>0>159?55:48);c=c&15;c=(c>>>0>9?55:48)+c|0;d=d+2|0}H[b+d|0]=c;c=K[g+1|0];g=g+1|0;d=f;if(c)continue;break}break k}if(!J[a>>2]){b=c;break k}if(J[e+444>>2]>(f+3|0)){b=c;break k}b=$q(c,e+444|0);if(!b)break c}h=J[a+24>>2];x:{if(!h){c=b;break x}y:{z:{A:{c= -J[a>>2];if(!c)break A;d=K[h|0];if((d|0)!=47){g=f;break y}if(K[h+2|0]!=58|((K[h+1|0]&223)-65&255)>>>0>25)break A;d=14194;if((c|0)!=14194)while(1){g=K[c|0];if((g|0)!=K[d|0])break A;d=d+1|0;c=c+1|0;if(g)continue;break}d=47;g=f+3|0;if((g|0)>=J[e+444>>2]){c=b;b=$q(b,e+444|0);if(!b)break c;d=K[h|0]}c=b+f|0;H[c|0]=d;H[c+1|0]=K[h+1|0];H[c+2|0]=K[h+2|0];h=h+3|0;break z}g=f}d=K[h|0]}if(!(d&255)){f=g;c=b;break x}c=b;while(1){f=g+3|0;b=J[e+444>>2];if((f|0)>=(b|0)){if((b|0)>=1048577){J[e+176>>2]=31140;Cc(0,0, -0,0,0,30,2,3,31140,0,0,0,32863,e+176|0);break c}d=b<<1;b=gc[J[659452]](c,d|1)|0;if(!b){J[e+192>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+192|0);break c}J[e+444>>2]=d;d=K[h|0];c=b}B:{C:{D:{if((d-48&255)>>>0<10|((d&-33)-65&255)>>>0<26)break D;b=d&255;switch(b-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 26:case 28:case 31:case 62:case 93:break D;default:break C}}f=g+1|0;break B}i=c+g|0;H[i|0]=37;H[i+1|0]=(b>>>4|0)+(b>>>0>159?55:48);b=d& -15;d=(b>>>0>9?55:48)+b|0;g=g+2|0}H[c+g|0]=d;d=K[h+1|0];h=h+1|0;g=f;if(d)continue;break}}if(J[a+40>>2]){h=f+1|0;E:{if((h|0)>2]){b=c;break E}b=$q(c,e+444|0);if(!b)break c}H[b+f|0]=63;f=J[a+40>>2];d=K[f|0];if(!d){g=h;c=b;break e}c=b;while(1){g=h+1|0;b=J[e+444>>2];if((g|0)>=(b|0)){if((b|0)>=1048577){J[e+144>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+144|0);break c}d=b<<1;b=gc[J[659452]](c,d|1)|0;if(!b){J[e+160>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+160|0);break c}J[e+444>>2]= -d;d=K[f|0];c=b}H[c+h|0]=d;d=K[f+1|0];f=f+1|0;h=g;if(d)continue;break}break e}if(!J[a+28>>2]){g=f;break e}F:{if(J[e+444>>2]>(f+3|0)){b=c;break F}b=$q(c,e+444|0);if(!b)break c}H[b+f|0]=63;d=f+1|0;h=J[a+28>>2];f=K[h|0];if(!f){g=d;c=b;break e}c=b;while(1){g=d+3|0;b=J[e+444>>2];if((g|0)>=(b|0)){if((b|0)>=1048577){J[e+112>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+112|0);break c}f=b<<1;b=gc[J[659452]](c,f|1)|0;if(!b){J[e+128>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+128|0);break c}J[e+444>> +2];if(a>>>0>d>>>0){J[f+4>>2]=3;break b}F:{if((i|0)>=0)if(!g|i>>>0<=(d-a>>>0)/(g>>>0)>>>0)break F;J[f+4>>2]=3;break b}e=e+1|0;if((h|0)!=(e|0))continue;break}}a=J[b+284>>2];if(a>>>0>d>>>0){J[f+4>>2]=3;break b}if(M[b+296>>2]>(d-a>>>0)/(j+k>>>0)>>>0){J[f+4>>2]=3;break b}i=0;g=0;r=0;h=fc-16|0;fc=h;p=J[b+328>>2];u=J[b+136>>2];m=J[b+100>>2];j=_c(m,8,0,J[b+300>>2],0,h+12|0);J[b+316>>2]=j;G:{if(J[h+12>>2])break G;d=J[b+300>>2];if((d|0)<=0)break G;while(1){H:{e=J[b+304>>2]+P(r,252)|0;n=J[e+240>>2];if(n){v= +J[e+4>>2];l=n+1|0;if(l>>>0>g>>>0){a=(n&-4)+4|0;if(a>>>0<=g>>>0){J[h+12>>2]=160;break H}i=_c(m,4,g,a,i,h+12|0);g=a;if(J[h+12>>2])break H}a=yd(p,J[e+244>>2]+J[b+308>>2]|0);J[h+12>>2]=a;if(a)break H;a=af(p,P(l,J[e+248>>2]));J[h+12>>2]=a;if(a)break H;q=K[e+248|0];I:{if(q){t=l>>>0<=1?1:l;w=q&252;s=q&3;e=J[p+32>>2];o=0;while(1){a=e;k=0;d=0;if(q>>>0>=4){while(1){d=a;a=a+4|0;k=k+4|0;if((k&255)!=(w|0))continue;break}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}k= +0;if(s)while(1){d=K[a|0]|d<<8;a=a+1|0;k=k+1|0;if((k&255)!=(s|0))continue;break}J[(o<<2)+i>>2]=d;e=e+q|0;o=o+1|0;if((t|0)!=(o|0))continue;break}break I}Ac(i,0,(l>>>0<=1?1:l)<<2)}ve(p);d=J[i>>2];a=1;J:{while(1){e=d;d=J[(a<<2)+i>>2];if(e>>>0<=d>>>0){a=a+1|0;if(n>>>0>=a>>>0)continue;break J}break}J[h+12>>2]=3;break H}a=J[(n<<2)+i>>2];if(a>>>0>J[p+4>>2]-J[b+308>>2]>>>0){J[h+12>>2]=3;break H}d=J[i>>2];e=h+12|0;x=j,y=_c(m,4,0,l,0,e),J[x+4>>2]=y;if(J[h+12>>2])break H;a=a-d|0;d=he(m,a,e);J[J[j+4>>2]>>2]=d; +if(J[h+12>>2])break H;d=yd(p,J[i>>2]+J[b+308>>2]|0);J[h+12>>2]=d;if(d)break H;a=zg(p,J[J[j+4>>2]>>2],a);J[h+12>>2]=a;if(a)break H;a=1;d=(l>>>0<=2?2:l)-1|0;q=d&1;k=J[i>>2];if(l>>>0>=3){l=d&-2;e=0;while(1){d=a<<2;o=d+J[j+4>>2]|0;s=o;t=J[o-4>>2];o=J[d+i>>2];J[s>>2]=t+(o-k|0);d=d+4|0;k=d+J[j+4>>2]|0;s=k;t=J[k-4>>2];k=J[d+i>>2];J[s>>2]=t+(k-o|0);a=a+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}}if(q){a=a<<2;d=a+J[j+4>>2]|0;J[d>>2]=J[d-4>>2]+(J[a+i>>2]-k|0)}K:{if((v|0)<0)break K;d=n>>>0<=1?1:n;l=d&1;a=0; +if(n>>>0>=2){q=d&-2;k=0;while(1){d=a<<2;o=d|4;e=o+i|0;kc[J[u+16>>2]](J[d+J[j+4>>2]>>2],J[e>>2]-J[d+i>>2]|0,4330);a=a+2|0;kc[J[u+16>>2]](J[o+J[j+4>>2]>>2],J[(a<<2)+i>>2]-J[e>>2]|0,4330);k=k+2|0;if((q|0)!=(k|0))continue;break}}if(!l)break K;d=a<<2;a=d+i|0;kc[J[u+16>>2]](J[d+J[j+4>>2]>>2],J[a+4>>2]-J[a>>2]|0,4330)}J[j>>2]=n;d=J[b+300>>2]}j=j+8|0;r=r+1|0;if((r|0)<(d|0))continue;break G}break}e=J[b+316>>2];if(!e)break G;if(J[b+300>>2]>0){d=0;while(1){a=d<<3;e=J[(a+e|0)+4>>2];if(e){e=J[e>>2];if(e)kc[J[m+ +8>>2]](m,e);J[J[(a+J[b+316>>2]|0)+4>>2]>>2]=0;e=J[(a+J[b+316>>2]|0)+4>>2]}else e=0;if(e)kc[J[m+8>>2]](m,e);e=J[b+316>>2];J[(a+e|0)+4>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}if(e)kc[J[m+8>>2]](m,e);J[b+316>>2]=0}if(i)kc[J[m+8>>2]](m,i);fc=h+16|0;J[f+4>>2]=J[h+12>>2]}if(J[f+84>>2])$f(J[f+80>>2],f+84|0);kc[J[f+32>>2]](f+8|0);a=J[f+4>>2];if(a|(c|0)<0)break a;a=6;if(c&65535)break a;J[b+36>>2]=0;J[b+4>>2]=0;J[b+16>>2]=J[b+296>>2];a=J[b+8>>2];J[b+8>>2]=a|2065;if(K[b+188|0])J[b+8>>2]=a|2069;J[b+ +24>>2]=240870;d=J[b+176>>2];J[b+20>>2]=d;L:{if(d){a=J[b+172>>2];if(!a)break L;e=K[a|0];if(!e)break L;while(1){e=e&255;c=K[d|0];M:{if((e|0)==(c|0)){a=a+1|0;d=d+1|0;break M}e=e-32|0;if(!(!e|(e|0)==13)){N:switch(c-32|0){case 0:case 13:d=d+1|0;break M;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break L;default:break N}if(c)break L;J[b+24>>2]=a;break L}a=a+1|0}e=K[a|0];if(e)continue;break}break L}a=J[b+140>>2];if(!a)break L;J[b+20>>2]=a}c=J[b+184>>2]!=0;J[b+12>> +2]=c;a=J[b+180>>2];O:{if(!a)break O;if(Ic(a,241005))if(Ic(a,241124))break O;J[b+12>>2]=c|2}J[b+28>>2]=0;J[b+32>>2]=0;J[b+52>>2]=I[b+198>>1];a=I[b+202>>1];J[b+56>>2]=a;J[b+60>>2]=J[b+204>>2]+65535>>16;c=J[b+208>>2]+65535>>16;J[b- -64>>2]=c;e=L[b+68>>1];if(!e){I[b+68>>1]=1E3;e=1E3}I[b+72>>1]=a;I[b+70>>1]=c;J[b+80>>2]=L[b+190>>1]|L[b+192>>1]<<16;d=b;a=c-a|0;b=(P(e,12)>>>0)/10|0;I[d+74>>1]=(a|0)>b<<16>>16?a:b;a=0}fc=f+384|0;return a|0}function iC(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;k=fc-32|0;fc=k;a:{if(J[a+292>>2])break a;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break a;Rd(a)}c=J[a+36>>2];b:{while(1){c:{d:{i=J[c+16>>2];b=K[i|0];if((b|0)!=60){if(!b|J[a+172>>2]==-1)break b;m=J[c+36>>2];if((b|0)!=38)break d;n1(a);break c}b=K[i+1|0];if((b|0)==47|J[a+172>>2]==-1)break b;m=J[c+36>>2];e:{if((b|0)!=33){if((b|0)!=63)break e;iu(a);break c}f:{if(K[i+2|0]!=91|K[i+3|0]!=67|(K[i+4|0]!=68|K[i+5|0]!=65))break f;if(K[i+6|0]!=84|K[i+7|0]!=65|K[i+8|0]!=91)break f;g=0;j=0;h=fc-16|0;fc= +h;e=J[a+36>>2];b=J[e+16>>2];g:{if(K[b|0]!=60|K[b+1|0]!=33|(K[b+2|0]!=91|K[b+3|0]!=67))break g;if(K[b+4|0]!=68|K[b+5|0]!=65|(K[b+6|0]!=84|K[b+7|0]!=65))break g;if(K[b+8|0]!=91)break g;J[a+200>>2]=J[a+200>>2]+9;J[e+16>>2]=b+9;J[e+32>>2]=J[e+32>>2]+9;b=K[b+9|0];if((b|0)==37){Yd(a);e=J[a+36>>2];b=K[J[e+16>>2]]}h:{if(b&255)break h;if((Nd(e)|0)>0)break h;He(a)}J[a+172>>2]=8;i:{e=Mf(a,h+12|0);j:{if((e|0)<=255){if((e|0)>31)break i;if(!(1<>>0>13)break j;break i}if(e-65536>>>0<1048576|e>>>0<55296| +e-57344>>>0<8190)break i}Xe(a,63,0);J[a+172>>2]=7;break g}b=J[a+36>>2];c=J[b+16>>2];k:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break k}J[b+32>>2]=J[b+32>>2]+1}d=b;b=c+J[h+12>>2]|0;J[d+16>>2]=b;if(K[b|0]==37)Yd(a);l:{c=Mf(a,h+8|0);m:{if((c|0)<=255){if((c|0)>31)break l;if(!(1<>>0>13)break m;break l}if(c-65536>>>0<1048576|c>>>0<55296|c-57344>>>0<8190)break l}Xe(a,63,0);J[a+172>>2]=7;break g}b=J[a+36>>2];d=J[b+16>>2];n:{if(K[d|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break n}J[b+ +32>>2]=J[b+32>>2]+1}f=b;b=d+J[h+8>>2]|0;J[f+16>>2]=b;if(K[b|0]==37)Yd(a);f=Mf(a,h+4|0);l=100;d=kc[J[663198]](100)|0;if(d)while(1){o:{p:{q:{r:{s:{if((f|0)<=255){if((f|0)>31)break r;if(!(1<>>0>13)break s;break q}if(f-65536>>>0<1048576|f>>>0<55296|f-57344>>>0<8190)break q}H[d+g|0]=0;J[a+172>>2]=7;Uf(a,63,32084,d);kc[J[663199]](d);break g}if((e|0)!=93|(c|0)!=93)break q;if((f|0)==62)break p}if((g+5|0)<(l|0)){b=d;break o}if(!(K[a+362|0]&8|(l|0)<15000001)){Uf(a,63,15161,0);kc[J[663199]](d);break g}l= +l<<1;b=kc[J[663200]](d,l)|0;if(b)break o;kc[J[663199]](d);se(a,0);break g}H[d+g|0]=0;J[a+172>>2]=7;b=J[a+36>>2];c=J[b+16>>2];t:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break t}J[b+32>>2]=J[b+32>>2]+1}f=b;b=c+J[h+4>>2]|0;J[f+16>>2]=b;if(K[b|0]==37)Yd(a);b=J[a>>2];u:{if(J[a+212>>2]|!b)break u;e=J[b+100>>2];if(!e){e=J[b+68>>2];if(!e)break u}kc[e|0](J[a+4>>2],d,g)}kc[J[663199]](d);break g}v:{if(J[h+12>>2]==1){H[b+g|0]=e;g=g+1|0;break v}g=ej(b+g|0,e)+g|0}J[h+12>>2]=J[h+8>>2];J[h+8>>2]=J[h+ +4>>2];w:{if((j|0)<50){j=j+1|0;break w}x:{if(J[a+292>>2])break x;d=J[a+36>>2];if((J[d+20>>2]-J[d+16>>2]|0)>249)break x;Rd(a)}j=0;if(J[a+172>>2]!=-1)break w;kc[J[663199]](b);break g}d=J[a+36>>2];e=J[d+16>>2];y:{if(K[e|0]==10){J[d+32>>2]=1;J[d+28>>2]=J[d+28>>2]+1;break y}J[d+32>>2]=J[d+32>>2]+1}n=d;d=e+J[h+4>>2]|0;J[n+16>>2]=d;if(K[d|0]==37)Yd(a);e=c;c=f;f=Mf(a,h+4|0);d=b;continue}se(a,0)}fc=h+16|0;break c}if(K[i+2|0]!=45|K[i+3|0]!=45)break e;ju(a);J[a+172>>2]=7;break c}f=fc+-64|0;fc=f;J[f+60>>2]=0; +J[f+56>>2]=0;J[f+32>>2]=0;g=J[a+328>>2];b=J[663332];z:{if(!(K[a+362|0]&8|b>>>0>=M[a+188>>2])){El(a,1,33167,b);J[a+212>>2]=1;J[a+172>>2]=-1;c=J[a+36>>2];if(!c)break z;b=J[c+40>>2];if(b){kc[b|0](J[c+12>>2]);c=J[a+36>>2];J[c+40>>2]=0}J[c+12>>2]=39197;J[c+16>>2]=39197;break z}if(J[a+68>>2]){b=J[a+36>>2];J[f+40>>2]=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2];J[f+44>>2]=J[b+28>>2]}A:{B:{C:{D:{c=J[a+236>>2];if(!c){b=J[a+240>>2];E:{if((b|0)>0){c=J[a+244>>2];b=0;break E}J[a+240>>2]=b<<1;c=kc[J[663200]](J[a+244>> +2],b<<3)|0;if(!c)break D;J[a+244>>2]=c;b=J[a+236>>2]}J[(b<<2)+c>>2]=-1;b=J[a+236>>2];J[a+236>>2]=b+1;J[a+232>>2]=(b<<2)+c;break A}b=J[a+240>>2];e=J[J[a+232>>2]>>2];if((e|0)==-2){F:{if((b|0)>(c|0)){d=J[a+244>>2];break F}J[a+240>>2]=b<<1;d=kc[J[663200]](J[a+244>>2],b<<3)|0;if(!d)break C;J[a+244>>2]=d;c=J[a+236>>2]}J[(c<<2)+d>>2]=-1;b=J[a+236>>2];J[a+236>>2]=b+1;J[a+232>>2]=(b<<2)+d;break A}G:{if((b|0)>(c|0)){d=J[a+244>>2];break G}J[a+240>>2]=b<<1;d=kc[J[663200]](J[a+244>>2],b<<3)|0;if(!d)break B;J[a+ +244>>2]=d;c=J[a+236>>2]}J[(c<<2)+d>>2]=e;b=J[a+236>>2];J[a+236>>2]=b+1;J[a+232>>2]=(b<<2)+d;break A}se(a,0);J[a+240>>2]=J[a+240>>2]/2;break A}se(a,0);J[a+240>>2]=J[a+240>>2]/2;break A}se(a,0);J[a+240>>2]=J[a+240>>2]/2}j=J[J[a+36>>2]+28>>2];H:{if(J[a+324>>2]){b=g1(a,f+60|0,f+56|0,f+32|0);break H}b=j1(a)}if(J[a+172>>2]==-1)break z;if(!b){b=J[a+236>>2];if((b|0)<=0)break z;d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2];J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1;break z}I:{J:{e=J[a+188>>2];c=J[a+192>> +2];K:{if((e|0)<(c|0)){d=J[a+196>>2];break K}d=kc[J[663200]](J[a+196>>2],c<<3)|0;if(!d)break J;J[a+196>>2]=d;J[a+192>>2]=J[a+192>>2]<<1;e=J[a+188>>2]}J[(e<<2)+d>>2]=b;J[a+188>>2]=e+1;J[a+184>>2]=b;break I}se(a,0)}h=J[a+52>>2];L:{M:{N:{e=J[a+36>>2];c=J[e+16>>2];d=K[c|0]-47|0;if(d)if((d|0)==15)break N;else break M;if(K[c+1|0]!=62)break M;J[a+200>>2]=J[a+200>>2]+2;J[e+16>>2]=c+2;J[e+32>>2]=J[e+32>>2]+2;c=K[c+2|0];if((c|0)==37){Yd(a);e=J[a+36>>2];c=K[J[e+16>>2]]}O:{if(c&255)break O;if((Nd(e)|0)>0)break O; +He(a)}c=J[a>>2];P:{if(J[a+324>>2]){if(!c)break P;c=J[c+120>>2];if(J[a+212>>2]|!c)break P;kc[c|0](J[a+4>>2],b,J[f+60>>2],J[f+56>>2]);break P}if(!c)break P;c=J[c+60>>2];if(J[a+212>>2]|!c)break P;kc[c|0](J[a+4>>2],b)}b=J[a+188>>2];if((b|0)>0){d=b-1|0;J[a+188>>2]=d;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0}b=J[a+236>>2];if((b|0)>0){d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2];J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1}c=J[a+328>>2];Q:{if(!J[a+336>>2]|(g|0)==(c|0))break Q; +d=c-g|0;if((g|0)<0){J[f+16>>2]=d;kc[J[663297]](J[693366],36649,f+16|0);c=J[a+328>>2];d=c}if((c|0)<=0|(d|0)<=0)break Q;if(d>>>0>=4){g=d&-4;e=0;while(1){b=c<<2;J[(b+J[a+336>>2]|0)-4>>2]=0;J[(b+J[a+336>>2]|0)-8>>2]=0;J[(b+J[a+336>>2]|0)-12>>2]=0;c=c-4|0;J[J[a+336>>2]+(c<<2)>>2]=0;e=e+4|0;if((g|0)!=(e|0))continue;break}}b=d&3;if(b){d=0;while(1){c=c-1|0;J[J[a+336>>2]+(c<<2)>>2]=0;d=d+1|0;if((b|0)!=(d|0))continue;break}}J[a+328>>2]=c}if(!h|!J[a+68>>2])break z;b=J[a+36>>2];J[f+48>>2]=(J[b+36>>2]+J[b+16>> +2]|0)-J[b+12>>2];b=J[b+28>>2];J[f+36>>2]=h;J[f+52>>2]=b;px(a,f+36|0);break z}J[e+16>>2]=c+1;J[e+32>>2]=J[e+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(!K[c+1|0])Nd(e);iC(a);if(J[a+172>>2]==-1)break z;c=K[J[J[a+36>>2]+16>>2]];if((c-9&255)>>>0<2|(c|0)==13|c>>>0>31)break L;hC(a,77,36353,b,j,0);mC(a);R:{if(!a)break R;b=J[a+188>>2];if((b|0)<=0)break R;d=b-1|0;J[a+188>>2]=d;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0}b=J[a+236>>2];if((b|0)>0){d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2]; +J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1}b=J[a+328>>2];if((b|0)==(g|0))break z;f1(a,b-g|0);break z}hC(a,73,36394,b,j,0);b=J[a+56>>2];if((b|0)>0){d=b-1|0;J[a+56>>2]=d;c=J[a+64>>2];J[a+52>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0}b=J[a+188>>2];if((b|0)>0){d=b-1|0;J[a+188>>2]=d;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0}b=J[a+236>>2];if((b|0)>0){d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2];J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1}c= +J[a+328>>2];S:{if(!J[a+336>>2]|(g|0)==(c|0))break S;d=c-g|0;if((g|0)<0){J[f>>2]=d;kc[J[663297]](J[693366],36649,f);c=J[a+328>>2];d=c}if((c|0)<=0|(d|0)<=0)break S;if(d>>>0>=4){g=d&-4;e=0;while(1){b=c<<2;J[(b+J[a+336>>2]|0)-4>>2]=0;J[(b+J[a+336>>2]|0)-8>>2]=0;J[(b+J[a+336>>2]|0)-12>>2]=0;c=c-4|0;J[J[a+336>>2]+(c<<2)>>2]=0;e=e+4|0;if((g|0)!=(e|0))continue;break}}b=d&3;if(b){d=0;while(1){c=c-1|0;J[J[a+336>>2]+(c<<2)>>2]=0;d=d+1|0;if((b|0)!=(d|0))continue;break}}J[a+328>>2]=c}if(!h|!J[a+68>>2])break z; +b=J[a+36>>2];J[f+48>>2]=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2];b=J[b+28>>2];J[f+36>>2]=h;J[f+52>>2]=b;px(a,f+36|0);break z}T:{if(J[a+324>>2]){e1(a,J[f+60>>2],J[f+56>>2],j,J[a+328>>2]-g|0,J[f+32>>2]);b=J[a+188>>2];if((b|0)<=0)break T;d=b-1|0;J[a+188>>2]=d;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(d<<2)>>2]=0;break T}i1(a,j)}if(!h|!J[a+68>>2])break z;b=J[a+36>>2];J[f+48>>2]=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2];b=J[b+28>>2];J[f+36>>2]=h;J[f+52>>2]=b;px(a,f+36|0)}fc=f- -64|0;break c}q1(a)}c= +J[a+36>>2];if(!(J[a+292>>2]|(J[c+20>>2]-J[c+16>>2]|0)>249)){Rd(a);c=J[a+36>>2]}b=J[c+16>>2];U:{if(K[b|0])break U;d=J[a+40>>2];if((d|0)<=1)break U;while(1){V:{W:{X:{if(!J[693384]){b=d-1|0;J[a+40>>2]=b;c=J[a+48>>2];break X}J[k+16>>2]=d;c=0;kc[J[663297]](J[693366],36125,k+16|0);d=J[a+40>>2];if((d|0)<=0)break V;b=d-1|0;J[a+40>>2]=b;c=J[a+48>>2];f=0;e=0;if((d|0)==1)break W}f=b;e=J[((d<<2)+c|0)-8>>2]}J[a+36>>2]=e;b=(f<<2)+c|0;c=J[b>>2];J[b>>2]=0}th(c);b=J[a+36>>2];Y:{if(K[J[b+16>>2]])break Y;if((Nd(b)| +0)>0)break Y;d=J[a+40>>2];if((d|0)>=2)continue}c=J[a+36>>2];b=J[c+16>>2];if(K[b|0])break U;d=J[a+40>>2];if((d|0)>1)continue;break}}if(!(J[a+292>>2]|(b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)){_g(a);c=J[a+36>>2]}if(J[c+36>>2]!=(m|0)|J[c+16>>2]!=(i|0))continue;break}if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=1;J[k+4>>2]=30835;J[k>>2]=5012;Hc(0,0,0,a,0,1,1,3,30835,0,0,0,32777,k);J[a+12>>2]=0}J[a+212>>2]=1;J[a+172>>2]=-1;d=J[a+36>>2];if(!d)break b;b=J[d+40>>2];if(b){kc[b|0](J[d+12>>2]);d=J[a+36>> +2];J[d+40>>2]=0}J[d+12>>2]=39197;J[d+16>>2]=39197}fc=k+32|0}function MZa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=fc-16|0;fc=f;d=K[a+11|0];a:{if((d<<24>>24<0?J[a+4>>2]:d)>>>0<8)break a;if(J[_h(a,6)>>2]!=43)break a;if(J[_h(a,0)>>2]-65>>>0>25)break a;if(J[_h(a,1)>>2]-65>>>0>25)break a;if(J[_h(a,2)>>2]-65>>>0>25)break a;if(J[_h(a,3)>>2]-65>>>0>25)break a;if(J[_h(a,4)>>2]-65>>>0>25)break a;if(J[_h(a,5)>>2]-65>>>0>25)break a;sv(a,0,7)}d=vc(64);J[f+4>>2]=d;J[f+8>>2]=13;J[f+12>>2]=-2147483632;J[d+48>> +2]=J[194336];e=J[194335];J[d+40>>2]=J[194334];J[d+44>>2]=e;e=J[194333];J[d+32>>2]=J[194332];J[d+36>>2]=e;e=J[194331];J[d+24>>2]=J[194330];J[d+28>>2]=e;e=J[194329];J[d+16>>2]=J[194328];J[d+20>>2]=e;e=J[194327];J[d+8>>2]=J[194326];J[d+12>>2]=e;e=J[194325];J[d>>2]=J[194324];J[d+4>>2]=e;J[d+52>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{if((d|0)!=1){if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(48);J[f+4>>2]=d;J[f+8>>2]=8;J[f+12>>2]=-2147483636; +e=J[194592];J[d+24>>2]=J[194591];J[d+28>>2]=e;e=J[194590];J[d+16>>2]=J[194589];J[d+20>>2]=e;e=J[194588];J[d+8>>2]=J[194587];J[d+12>>2]=e;e=J[194586];J[d>>2]=J[194585];J[d+4>>2]=e;J[d+32>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(32);J[f+4>>2]=d;J[f+8>>2]=7;J[f+12>>2]=-2147483640;J[d+24>>2]=J[194886];e=J[194885];J[d+16>>2]=J[194884];J[d+20>>2]=e;e=J[194883];J[d+8>>2]=J[194882];J[d+12>>2]=e;e=J[194881];J[d>>2]=J[194880];J[d+4>> +2]=e;J[d+28>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break t;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(64);J[f+4>>2]=d;J[f+8>>2]=13;J[f+12>>2]=-2147483632;J[d+48>>2]=J[195235];e=J[195234];J[d+40>>2]=J[195233];J[d+44>>2]=e;e=J[195232];J[d+32>>2]=J[195231];J[d+36>>2]=e;e=J[195230];J[d+24>>2]=J[195229];J[d+28>>2]=e;e=J[195228];J[d+16>>2]=J[195227];J[d+20>>2]=e;e=J[195226];J[d+8>>2]=J[195225];J[d+12>>2]=e;e=J[195224];J[d>>2]=J[195223];J[d+4>>2]=e;J[d+52>>2]=0;J[699344]=0;aa(3359, +a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break s;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(64);J[f+4>>2]=d;J[f+8>>2]=13;J[f+12>>2]=-2147483632;J[d+48>>2]=J[195498];e=J[195497];J[d+40>>2]=J[195496];J[d+44>>2]=e;e=J[195495];J[d+32>>2]=J[195494];J[d+36>>2]=e;e=J[195493];J[d+24>>2]=J[195492];J[d+28>>2]=e;e=J[195491];J[d+16>>2]=J[195490];J[d+20>>2]=e;e=J[195489];J[d+8>>2]=J[195488];J[d+12>>2]=e;e=J[195487];J[d>>2]=J[195486];J[d+4>>2]=e;J[d+52>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break r;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(64);J[f+4>>2]=d;J[f+8>>2]=12;J[f+12>>2]=-2147483632;e=J[195747];J[d+40>>2]=J[195746];J[d+44>>2]=e;e=J[195745];J[d+32>>2]=J[195744];J[d+36>>2]=e;e=J[195743];J[d+24>>2]=J[195742];J[d+28>>2]=e;e=J[195741];J[d+16>>2]=J[195740];J[d+20>>2]=e;e=J[195739];J[d+8>>2]=J[195738];J[d+12>>2]=e;e=J[195737];J[d>>2]=J[195736];J[d+4>>2]=e;J[d+48>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(48); +J[f+4>>2]=d;J[f+8>>2]=8;J[f+12>>2]=-2147483636;e=J[196021];J[d+24>>2]=J[196020];J[d+28>>2]=e;e=J[196019];J[d+16>>2]=J[196018];J[d+20>>2]=e;e=J[196017];J[d+8>>2]=J[196016];J[d+12>>2]=e;e=J[196015];J[d>>2]=J[196014];J[d+4>>2]=e;J[d+32>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(64);J[f+4>>2]=d;J[f+8>>2]=14;J[f+12>>2]=-2147483632;e=J[196265];J[d+48>>2]=J[196264];J[d+52>>2]=e;e=J[196263];J[d+40>>2]=J[196262];J[d+44>>2]=e;e=J[196261]; +J[d+32>>2]=J[196260];J[d+36>>2]=e;e=J[196259];J[d+24>>2]=J[196258];J[d+28>>2]=e;e=J[196257];J[d+16>>2]=J[196256];J[d+20>>2]=e;e=J[196255];J[d+8>>2]=J[196254];J[d+12>>2]=e;e=J[196253];J[d>>2]=J[196252];J[d+4>>2]=e;J[d+56>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(64);J[f+4>>2]=d;J[f+8>>2]=14;J[f+12>>2]=-2147483632;e=J[196510];J[d+48>>2]=J[196509];J[d+52>>2]=e;e=J[196508];J[d+40>>2]=J[196507];J[d+44>>2]=e;e=J[196506];J[d+32>> +2]=J[196505];J[d+36>>2]=e;e=J[196504];J[d+24>>2]=J[196503];J[d+28>>2]=e;e=J[196502];J[d+16>>2]=J[196501];J[d+20>>2]=e;e=J[196500];J[d+8>>2]=J[196499];J[d+12>>2]=e;e=J[196498];J[d>>2]=J[196497];J[d+4>>2]=e;J[d+56>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(64);J[f+4>>2]=d;J[f+8>>2]=13;J[f+12>>2]=-2147483632;J[d+48>>2]=J[196725];e=J[196724];J[d+40>>2]=J[196723];J[d+44>>2]=e;e=J[196722];J[d+32>>2]=J[196721];J[d+36>>2]=e;e=J[196720]; +J[d+24>>2]=J[196719];J[d+28>>2]=e;e=J[196718];J[d+16>>2]=J[196717];J[d+20>>2]=e;e=J[196716];J[d+8>>2]=J[196715];J[d+12>>2]=e;e=J[196714];J[d>>2]=J[196713];J[d+4>>2]=e;J[d+52>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break m;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(64);J[f+4>>2]=d;J[f+8>>2]=14;J[f+12>>2]=-2147483632;e=J[196929];J[d+48>>2]=J[196928];J[d+52>>2]=e;e=J[196927];J[d+40>>2]=J[196926];J[d+44>>2]=e;e=J[196925];J[d+32>>2]=J[196924];J[d+36>>2]=e;e=J[196923];J[d+24>> +2]=J[196922];J[d+28>>2]=e;e=J[196921];J[d+16>>2]=J[196920];J[d+20>>2]=e;e=J[196919];J[d+8>>2]=J[196918];J[d+12>>2]=e;e=J[196917];J[d>>2]=J[196916];J[d+4>>2]=e;J[d+56>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(48);J[f+4>>2]=d;J[f+8>>2]=9;J[f+12>>2]=-2147483636;J[d+32>>2]=J[197157];e=J[197156];J[d+24>>2]=J[197155];J[d+28>>2]=e;e=J[197154];J[d+16>>2]=J[197153];J[d+20>>2]=e;e=J[197152];J[d+8>>2]=J[197151];J[d+12>>2]=e;e=J[197150]; +J[d>>2]=J[197149];J[d+4>>2]=e;J[d+36>>2]=0;J[699344]=0;aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;if(H[f+15|0]<0)uc(J[f+4>>2]);d=vc(48);J[f+4>>2]=d;J[f+8>>2]=11;J[f+12>>2]=-2147483636;J[d+40>>2]=J[197378];e=J[197377];J[d+32>>2]=J[197376];J[d+36>>2]=e;e=J[197375];J[d+24>>2]=J[197374];J[d+28>>2]=e;e=J[197373];J[d+16>>2]=J[197372];J[d+20>>2]=e;e=J[197371];J[d+8>>2]=J[197370];J[d+12>>2]=e;e=J[197369];J[d>>2]=J[197368];J[d+4>>2]=e;J[d+44>>2]=0;J[699344]=0;d=aa(3359,a|0,f+4|0)|0;e= +J[699344];J[699344]=0;if((e|0)==1)break j;if(H[f+15|0]<0)uc(J[f+4>>2]);if(d){H[b|0]=1;H[c|0]=1}d=vc(64);J[f+4>>2]=d;J[f+8>>2]=12;J[f+12>>2]=-2147483632;e=J[197617];J[d+40>>2]=J[197616];J[d+44>>2]=e;e=J[197615];J[d+32>>2]=J[197614];J[d+36>>2]=e;e=J[197613];J[d+24>>2]=J[197612];J[d+28>>2]=e;e=J[197611];J[d+16>>2]=J[197610];J[d+20>>2]=e;e=J[197609];J[d+8>>2]=J[197608];J[d+12>>2]=e;e=J[197607];J[d>>2]=J[197606];J[d+4>>2]=e;J[d+48>>2]=0;J[699344]=0;d=aa(3359,a|0,f+4|0)|0;e=J[699344];J[699344]=0;if((e| +0)==1)break i;if(H[f+15|0]<0)uc(J[f+4>>2]);if(d){H[b|0]=1;H[c|0]=1}d=vc(32);J[f+4>>2]=d;J[f+8>>2]=6;J[f+12>>2]=-2147483640;e=J[197827];J[d+16>>2]=J[197826];J[d+20>>2]=e;e=J[197825];J[d+8>>2]=J[197824];J[d+12>>2]=e;e=J[197823];J[d>>2]=J[197822];J[d+4>>2]=e;J[d+24>>2]=0;J[699344]=0;d=aa(3359,a|0,f+4|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;if(H[f+15|0]<0)uc(J[f+4>>2]);if(d)H[b|0]=1;d=vc(32);J[f+4>>2]=d;J[f+8>>2]=4;J[f+12>>2]=-2147483640;e=J[198033];J[d+8>>2]=J[198032];J[d+12>>2]=e;e=J[198031]; +J[d>>2]=J[198030];J[d+4>>2]=e;J[d+16>>2]=0;J[699344]=0;d=aa(3359,a|0,f+4|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;if(H[f+15|0]<0)uc(J[f+4>>2]);if(d)H[b|0]=1;b=vc(48);J[f+4>>2]=b;J[f+8>>2]=8;J[f+12>>2]=-2147483636;d=J[198232];J[b+24>>2]=J[198231];J[b+28>>2]=d;d=J[198230];J[b+16>>2]=J[198229];J[b+20>>2]=d;d=J[198228];J[b+8>>2]=J[198227];J[b+12>>2]=d;d=J[198226];J[b>>2]=J[198225];J[b+4>>2]=d;J[b+32>>2]=0;J[699344]=0;b=aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(H[f+15| +0]<0)uc(J[f+4>>2]);if(b)H[c|0]=1;b=vc(32);J[f+4>>2]=b;J[f+8>>2]=6;J[f+12>>2]=-2147483640;d=J[198438];J[b+16>>2]=J[198437];J[b+20>>2]=d;d=J[198436];J[b+8>>2]=J[198435];J[b+12>>2]=d;d=J[198434];J[b>>2]=J[198433];J[b+4>>2]=d;J[b+24>>2]=0;J[699344]=0;b=aa(3359,a|0,f+4|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if(H[f+15|0]<0)uc(J[f+4>>2]);if(b)H[c|0]=1;b=vc(32);J[f+4>>2]=b;J[f+8>>2]=7;J[f+12>>2]=-2147483640;J[b+24>>2]=J[198607];d=J[198606];J[b+16>>2]=J[198605];J[b+20>>2]=d;d=J[198604];J[b+8>>2]= +J[198603];J[b+12>>2]=d;d=J[198602];J[b>>2]=J[198601];J[b+4>>2]=d;J[b+28>>2]=0;J[699344]=0;a=aa(3359,a|0,f+4|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;if(H[f+15|0]<0)uc(J[f+4>>2]);if(a)H[c|0]=1;fc=f+16|0;return}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()| +0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;break b}a=Z()|0;if(H[f+15|0]>=0)break c;uc(J[f+4>>2])}ba(a|0);B()}uc(J[f+4>> +2]);ba(a|0);B()}function vkb(a){a=a|0;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=fc-48|0;fc=g;f=J[a+720>>2];a:{if(f)break a;b:{c:{if(!(!J[a+736>>2]|!(L[a+6>>1]&32767|K[a+9|0]&128))){n=J[a+548>>2];e=J[a+100>>2];if(!J[a+744>>2]){J[g+16>>2]=-1;J[g+20>>2]=-1;i=L[a+340>>1];if(!i){f=0;break b}h=J[a+356>>2];while(1){f=h+P(b,20)|0;d:{if(L[f+6>>1]!=25|!L[f+8>>1])break d;e:{f:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break d;c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break e;break d;case 0:break f; +default:break d}if(L[f+2>>1])break d;c=g+16|0;if(!L[f+4>>1])break e;if(J[g+16>>2]!=-1)break d}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d=J[g+16>>2];g:{h:{b=J[g+20>>2];if((b|0)>=0)break h;i:{if((d|0)>=0)break i;J[g+16>>2]=-1;J[g+20>>2]=-1;b=0;while(1){f=h+P(b,20)|0;j:{if(L[f+6>>1]!=16|!L[f+8>>1])break j;k:{l:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break j;c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break k;break j;case 0:break l;default:break j}if(L[f+2>>1])break j;c=g+16|0;if(!L[f+4>>1])break k; +if(J[g+16>>2]!=-1)break j}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d=J[g+16>>2];b=J[g+20>>2];if((b|0)>=0)break h;if((d|0)>=0)break i;J[g+16>>2]=-1;J[g+20>>2]=-1;b=0;while(1){f=h+P(b,20)|0;m:{if(L[f+6>>1]!=1|!L[f+8>>1])break m;n:{o:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break m;c=g+20|0;if(L[f+4>>1]==1033|J[g+20>>2]==-1)break n;break m;case 0:break o;default:break m}if(L[f+2>>1])break m;c=g+16|0;if(!L[f+4>>1])break n;if(J[g+16>>2]!=-1)break m}J[c>>2]=b}b=b+1|0;if((i|0)!=(b|0))continue;break}d= +J[g+16>>2];b=J[g+20>>2];if((b|0)>=0)break h;f=0;if((d|0)<0)break b}if((b|0)!=-1)break h;b=0;break g}b=B6(e,J[a+368>>2],h+P(b,20)|0,1706)}p:{if(b|(d|0)==-1)break p;c=J[a+368>>2];h=J[a+100>>2];k=J[a+356>>2];b=0;J[g+40>>2]=0;l=k+P(d,20)|0;f=he(h,L[l+8>>1]+1|0,g+40|0);if(J[g+40>>2])break p;b=yd(c,J[l+12>>2]);J[g+40>>2]=b;q:{if(b)break q;b=af(c,L[l+8>>1]);J[g+40>>2]=b;if(b)break q;b=f;r:{i=L[l+8>>1];if(i){j=J[c+32>>2];while(1){m=H[j|0];if(m-58>>>0<=4294967285&(m&-33)-91>>>0<4294967270)break r;H[b|0]=m; +j=j+1|0;b=b+1|0;i=i-1|0;if(i)continue;break}}H[b|0]=0;ve(c);b=f;break p}ve(c)}if(f)kc[J[h+8>>2]](h,f);b=0;J[l+12>>2]=0;I[l+8>>1]=0;f=k+P(d,20)|0;c=J[f+16>>2];if(c)kc[J[h+8>>2]](h,c);J[f+16>>2]=0}if(!b){f=0;break b}f=Yc(b);if(f>>>0>=92){H[b+91|0]=0;f=91}J[a+748>>2]=f;J[a+744>>2]=b}f=0;kc[J[n+40>>2]](a,g+32|0,g+28|0,0,g+24|0)|0;s:{t:{b=J[a+4>>2]&2147418112;if(!b|K[a+9|0]&128)break t;h=(b>>>16|0)-1|0;b=J[J[g+24>>2]+16>>2];c=J[(P(h,12)+b|0)+8>>2];d=J[a+540>>2];J[g+40>>2]=0;if(!((c|0)!=6&c-256>>>0>32511)){kc[J[d+ +144>>2]](a,c&65535,g+40|0)|0;b=J[g+40>>2];if(b)break s;b=J[J[g+24>>2]+16>>2]}kc[J[d+144>>2]](a,L[(P(h,12)+b|0)+4>>1],g+12|0)|0;b=J[g+12>>2];if(!b)break t;b=he(e,(J[a+748>>2]+Yc(b)|0)+2|0,g+36|0);if(J[g+36>>2])break b;f=of(b,J[a+744>>2]);b=f+J[a+748>>2]|0;H[b|0]=45;c=b+1|0;d=J[g+12>>2];b=K[d|0];if(b)while(1){h=b<<24>>24;if(!(!(h-48>>>0<10|h-65>>>0<26)&h-97>>>0>25)){H[c|0]=b;c=c+1|0}b=K[d+1|0];d=d+1|0;if(b)continue;break}H[c|0]=0;b=J[g+12>>2];if(b)kc[J[e+8>>2]](e,b);d=c+1|0;break c}j=J[J[g+24>>2]+12>> +2];b=he(e,(J[a+748>>2]+P(J[g+32>>2],17)|0)+1|0,g+36|0);if(J[g+36>>2])break b;f=of(b,J[a+744>>2]);d=f+J[a+748>>2]|0;if(!J[g+32>>2])break c;b=J[g+28>>2];k=0;while(1){u:{if(J[b>>2]==J[j+8>>2])break u;H[d|0]=95;b=J[J[g+28>>2]>>2];v:{if(!b){H[d+1|0]=48;d=d+2|0;break v}if((b|0)>=0)d=d+1|0;else{H[d+1|0]=45;b=0-b|0;d=d+2|0}l=b&65535;w:{if(b>>>0<65536)break w;e=b>>>16|0;b=g+40|0;c=0;while(1){i=(e>>>0)/10|0;H[b|0]=e-P(i,10)|48;h=c;c=c+1|0;b=b+1|0;m=e>>>0<10;e=i;if(!m)continue;break}if(g+40>>>0>=b>>>0)break w; +e=0;c=h+1&7;if(c)while(1){b=b-1|0;H[d|0]=K[b|0];d=d+1|0;e=e+1|0;if((c|0)!=(e|0))continue;break}if(h>>>0<7)break w;while(1){H[d|0]=K[b-1|0];H[d+1|0]=K[b-2|0];H[d+2|0]=K[b-3|0];H[d+3|0]=K[b-4|0];H[d+4|0]=K[b-5|0];H[d+5|0]=K[b-6|0];H[d+6|0]=K[b-7|0];b=b-8|0;H[d+7|0]=K[b|0];d=d+8|0;if(g+40>>>0>>0)continue;break}}if(!l)break v;H[d|0]=46;b=P(l,10)+5|0;H[d+1|0]=(b>>>16|0)+48;b=P(b&65535,10);H[d+2|0]=b>>>16|48;b=P(b&65534,10);e=b>>>16|48;H[d+3|0]=e;x:{y:{z:{A:{B:{C:{D:{b=b&65532;if(!b){b=d+3|0;break D}b= +P(b,10);e=b>>>16|48;H[d+4|0]=e;b=b&65528;if(!b){b=d+4|0;break D}c=P(b,10);h=c>>>16|0;e=h|48;H[d+5|0]=e;b=d+5|0;c=c&65520;if(!c)break D;if(c>>>0>=34480)break z;if((e|0)==49)break C;if((c|0)==17232){if(!(h&1))break z;e=h+47|0;break A}if(c>>>0>17231)break z;break B}if((b-d|0)!=5)break z;if((e|0)!=49)break B}H[b|0]=48;break y}if((e|0)==48)break y;e=e-1|0}H[b|0]=e}if((e|0)!=48)break x}while(1){H[b|0]=0;b=b-1|0;if(K[b|0]==48)continue;break}}d=b+1|0}b=J[j+16>>2];c=b>>24;if(!((c|0)==32|!(c-48>>>0<10|c-65>>> +0<26)&c-97>>>0>25)){H[d|0]=b>>>24;d=d+1|0;b=J[j+16>>2]}e=b>>>16|0;c=e<<24;E:{if((c|0)==536870912)break E;c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)break E;H[d|0]=e;d=d+1|0;b=J[j+16>>2]}e=b>>>8|0;c=e<<24;F:{if((c|0)==536870912)break F;c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)break F;H[d|0]=e;d=d+1|0;b=J[j+16>>2]}c=b<<24;if((c|0)==536870912)break u;c=c>>24;if(!(c-48>>>0<10|c-65>>>0<26)&c-97>>>0>25)break u;H[d|0]=b;d=d+1|0}b=J[g+28>>2]+4|0;J[g+28>>2]=b;j=j+24|0;k=k+1|0;if(k>>>0>2])continue;break}break c}d=(Yc(b)+b|0)+1|0;f=b;break c}J[g+32>>2]=-1;J[g+36>>2]=-1;c=L[a+340>>1];if(!c){f=0;break a}e=J[a+356>>2];while(1){f=e+P(b,20)|0;G:{if(L[f+6>>1]!=6|!L[f+8>>1])break G;H:{I:switch(L[f>>1]-1|0){case 2:if(L[f+2>>1]>1)break G;j=g+36|0;if(L[f+4>>1]==1033|J[g+36>>2]==-1)break H;break G;case 0:break I;default:break G}if(L[f+2>>1])break G;j=g+32|0;if(!L[f+4>>1])break H;if(J[g+32>>2]!=-1)break G}J[j>>2]=b}b=b+1|0;if((c|0)!=(b|0))continue;break}i=J[g+32>>2];J:{K:{b=J[g+36>>2];if((b| +0)>=0)break K;f=0;if((i|0)<0)break a;if((b|0)!=-1)break K;f=0;break J}f=B6(J[a+100>>2],J[a+368>>2],J[a+356>>2]+P(b,20)|0,1707)}if(f|(i|0)==-1)break b;e=J[a+368>>2];l=J[a+356>>2];d=J[a+100>>2];f=0;J[g+40>>2]=0;h=l+P(i,20)|0;b=he(d,L[h+8>>1]+1|0,g+40|0);if(J[g+40>>2])break b;f=yd(e,J[h+12>>2]);J[g+40>>2]=f;L:{if(f)break L;f=af(e,L[h+8>>1]);J[g+40>>2]=f;if(f)break L;c=b;M:{f=L[h+8>>1];if(f){j=J[e+32>>2];while(1){k=K[j|0];m=k<<24>>24;if((m|0)<0|!(K[(k>>>3|0)+325280|0]>>>(k&7)&1))break M;H[c|0]=m;j=j+ +1|0;c=c+1|0;f=f-1|0;if(f)continue;break}}H[c|0]=0;ve(e);f=b;break b}ve(e)}if(b)kc[J[d+8>>2]](d,b);f=0;J[h+12>>2]=0;I[h+8>>1]=0;b=l+P(i,20)|0;c=J[b+16>>2];if(c)kc[J[d+8>>2]](d,c);J[b+16>>2]=0;break b}l=d-f|0;if((l|0)<128)break b;e=0-(l>>>4|0)|0;h=(l&-16)+f|0;i=123456789;d=123456789;c=123456789;j=123456789;while(1){k=i;b=h+(e<<4)|0;i=J[b>>2];i=zEb(k^P(P(i,597399067)>>>17|P(i,-888307712),-1425107063),19)+d|0;k=d;d=J[b+4>>2];d=P(zEb(k^P(P(d,-1425107063)>>>16|P(d,-1752629248),951274213),17)+c|0,5)+197830471| +0;k=c;c=J[b+8>>2];c=P(zEb(k^P(P(c,951274213)>>>15|P(c,-1781923840),-1578923117),15)+j|0,5)-1764942795|0;b=J[b+12>>2];i=P(i,5)+1444728091|0;k=P(zEb(P(P(b,-1578923117)>>>14|P(b,776732672),597399067)^j,13)+i|0,5)+850148119|0;j=k;e=e+1|0;if(e)continue;break}b=0;N:switch((l&15)-1|0){case 14:b=K[h+14|0]<<16;case 13:b=K[h+13|0]<<8|b;case 12:b=K[h+12|0]^b;k=P(P(b,-1578923117)>>>14|P(b,776732672),597399067)^k;case 11:b=K[h+11|0]<<24;case 10:b=K[h+10|0]<<16|b;case 9:b=K[h+9|0]<<8^b;case 8:b=K[h+8|0]^b;c=P(P(b, +951274213)>>>15|P(b,-1781923840),-1578923117)^c;case 7:b=K[h+7|0]<<24;case 6:b=K[h+6|0]<<16|b;case 5:b=K[h+5|0]<<8^b;case 4:b=K[h+4|0]^b;d=P(P(b,-1425107063)>>>16|P(b,-1752629248),951274213)^d;case 3:b=K[h+3|0]<<24;case 2:b=K[h+2|0]<<16|b;case 1:b=K[h+1|0]<<8^b;case 0:b=K[h|0]^b;i=P(P(b,597399067)>>>17|P(b,-888307712),-1425107063)^i;break;default:break N}b=J[a+748>>2]+f|0;H[b|0]=45;H[b+33|0]=46;H[b+34|0]=46;H[b+35|0]=46;H[b+36|0]=0;d=d^l;e=c^l;h=l^k;c=(d+(e+h|0)|0)+(i^l)|0;i=P(c>>>16^c,-2048144789); +i=P(i>>>13^i,-1028477387);j=i>>>16^i;d=c+d|0;d=P(d>>>16^d,-2048144789);d=P(d>>>13^d,-1028477387);i=d>>>16^d;e=c+e|0;e=P(e>>>16^e,-2048144789);e=P(e>>>13^e,-1028477387);d=e>>>16^e;c=c+h|0;c=P(c>>>16^c,-2048144789);c=P(c>>>13^c,-1028477387);e=c>>>16^c;c=((j+i|0)+d|0)+e|0;e=c+e|0;H[b+32|0]=K[(e&15)+325264|0];H[b+25|0]=K[(e>>>28|0)+325264|0];d=c+d|0;H[b+24|0]=K[(d&15)+325264|0];H[b+31|0]=K[(e>>>4&15)+325264|0];H[b+30|0]=K[(e>>>8&15)+325264|0];H[b+29|0]=K[(e>>>12&15)+325264|0];H[b+28|0]=K[(e>>>16&15)+ +325264|0];H[b+27|0]=K[(e>>>20&15)+325264|0];H[b+26|0]=K[(e>>>24&15)+325264|0];H[b+23|0]=K[(d>>>4&15)+325264|0];H[b+22|0]=K[(d>>>8&15)+325264|0];H[b+21|0]=K[(d>>>12&15)+325264|0];H[b+20|0]=K[(d>>>16&15)+325264|0];H[b+19|0]=K[(d>>>20&15)+325264|0];H[b+18|0]=K[(d>>>24&15)+325264|0];e=c+i|0;H[b+16|0]=K[(e&15)+325264|0];H[b+17|0]=K[(d>>>28|0)+325264|0];H[b+15|0]=K[(e>>>4&15)+325264|0];H[b+14|0]=K[(e>>>8&15)+325264|0];H[b+13|0]=K[(e>>>12&15)+325264|0];H[b+12|0]=K[(e>>>16&15)+325264|0];H[b+11|0]=K[(e>>> +20&15)+325264|0];H[b+10|0]=K[(e>>>24&15)+325264|0];H[b+9|0]=K[(e>>>28|0)+325264|0];H[b+8|0]=K[(c&15)+325264|0];H[b+7|0]=K[(c>>>4&15)+325264|0];H[b+6|0]=K[(c>>>8&15)+325264|0];H[b+5|0]=K[(c>>>12&15)+325264|0];H[b+4|0]=K[(c>>>16&15)+325264|0];H[b+3|0]=K[(c>>>20&15)+325264|0];H[b+2|0]=K[(c>>>24&15)+325264|0];H[b+1|0]=K[(c>>>28|0)+325264|0]}J[a+720>>2]=f}fc=g+48|0;return f|0}function SO(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=2;if(!(!a|J[a>>2]!=1381173770)){c=J[a+548>>2];a:{if(!c)break a;b=J[c+1120>>2];b:{if(!b)break b; +d=J[c+1124>>2];if(!d)break b;kc[J[a+156>>2]](d,b);c=J[a+548>>2];if(!c)break a}kc[J[a+156>>2]](c,1136);J[a+548>>2]=0}c=Dc(40);J[c>>2]=0;e=Hf(a+2568|0,1,c,4);f=gc;g=a+2532|0;c=0;c:{d:{e:{f:{while(1){g:{h:{i:{if(c){J[699344]=0;ha(1084,a|0,6,c|0,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break i;break d}if(K[a+2533|0]){c=J[a+2452>>2];J[699344]=0;$(70,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;j:{if(!c)break j;d=J[699345];if(!d)break j;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue}if(K[a+ +2539|0]){c=J[a+2464>>2];J[699344]=0;$(70,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;k:{if(!c)break k;d=J[699345];if(!d)break k;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue}if(K[a+2532|0]){c=J[a+2444>>2];J[699344]=0;$(93,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;l:{if(!c)break l;d=J[699345];if(!d)break l;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue}c=J[a+2496>>2];if(c){b=J[a+2500>>2];d=J[a+156>>2];J[699344]=0;da(d|0,c|0,b|0);c=J[699344];J[699344]= +0;if((c|0)==1)break d;b=-1;m:{if(!c)break m;d=J[699345];if(!d)break m;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2496>>2]=0}c=J[a+2476>>2];if(c){b=J[a+2480>>2];d=J[a+156>>2];J[699344]=0;da(d|0,c|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;n:{if(!c)break n;d=J[699345];if(!d)break n;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2476>>2]=0}c=J[a+2444>>2];if(c){b=J[a+156>>2];J[699344]=0;da(b|0,c|0,432);c=J[699344];J[699344]=0;if((c|0)==1)break d; +b=-1;o:{if(!c)break o;d=J[699345];if(!d)break o;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2444>>2]=0}c=J[a+2448>>2];if(c){b=J[a+156>>2];J[699344]=0;da(b|0,c|0,132);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;p:{if(!c)break p;d=J[699345];if(!d)break p;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2448>>2]=0}c=J[a+2452>>2];if(c){b=J[a+156>>2];J[699344]=0;da(b|0,c|0,488);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;q:{if(!c)break q;d=J[699345];if(!d)break q; +b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2452>>2]=0}c=J[a+2460>>2];if(c){b=J[a+156>>2];J[699344]=0;da(b|0,c|0,28);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;r:{if(!c)break r;d=J[699345];if(!d)break r;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2460>>2]=0}c=J[a+2456>>2];if(c){b=J[a+156>>2];J[699344]=0;da(b|0,c|0,132);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;s:{if(!c)break s;d=J[699345];if(!d)break s;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c= +gc;if((b|0)==1)continue;J[a+2456>>2]=0}c=J[a+2464>>2];if(c){b=J[a+156>>2];J[699344]=0;da(b|0,c|0,488);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;t:{if(!c)break t;d=J[699345];if(!d)break t;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2464>>2]=0}c=J[a+2472>>2];if(c){b=J[a+156>>2];J[699344]=0;da(b|0,c|0,28);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;u:{if(!c)break u;d=J[699345];if(!d)break u;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2472>>2]= +0}c=J[a+2468>>2];if(c){b=J[a+156>>2];J[699344]=0;da(b|0,c|0,132);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;v:{if(!c)break v;d=J[699345];if(!d)break v;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2468>>2]=0}c=J[a+2524>>2];if(c){b=J[a+2528>>2];d=J[a+156>>2];J[699344]=0;da(d|0,c|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;w:{if(!c)break w;d=J[699345];if(!d)break w;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;J[a+2524>>2]=0}c=J[a+2516>>2];if(!c)break f; +b=J[a+2520>>2];d=J[a+156>>2];J[699344]=0;da(d|0,c|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;b=-1;if(!c)break g;d=J[699345];if(!d)break g;b=Pc(J[c>>2],e,f);if(b)break h;break e}b=-1;x:{if(!c)break x;d=J[699345];if(!d)break x;b=Pc(J[c>>2],e,f);if(!b)break e;gc=d}c=gc;if((b|0)==1)continue;break c}gc=d}c=gc;if((b|0)==1)continue;break}J[a+2516>>2]=0}J[g>>2]=0;I[g+4>>1]=0;H[a+2539|0]=0;H[a+2540|0]=0;H[a+2541|0]=0;H[a+2542|0]=0;break c}uc(e);nf(c,d);B()}a=Z()|0;uc(e);ba(a|0);B()}uc(e);if(K[a+2420| +0]){VE(a);MO(a)}if(!(K[a+346|0]|!K[a+344|0]))saa(a);c=J[a+352>>2];if(c){kc[J[a+156>>2]](c,J[a+348>>2]);J[a+352>>2]=0}c=J[a+360>>2];if(c){kc[J[a+156>>2]](c,J[a+356>>2]);J[a+360>>2]=0}c=J[a+376>>2];if(c){kc[J[a+156>>2]](c,J[a+372>>2]);J[a+376>>2]=0}if(J[a+408>>2])while(1){raa(a);if(J[a+408>>2])continue;break}if(J[a+400>>2])while(1){c=J[a+400>>2];b=J[c>>2];J[a+400>>2]=b;if(!b)J[a+404>>2]=0;y:{z:{if(!K[c+12|0])break z;b=J[a+160>>2];if(!b)break z;kc[b|0](a,J[c+4>>2],J[c+8>>2]);break y}b=J[c+4>>2];if(!b)break y; +kc[J[a+156>>2]](b,J[c+8>>2])}kc[J[a+156>>2]](c,24);if(J[a+400>>2])continue;break}c=J[a+428>>2];if(c){kc[J[a+156>>2]](c,J[a+424>>2]);J[a+428>>2]=0}b=a;a=J[b+276>>2];if(a)while(1){c=J[a+24>>2];kc[J[a+8>>2]](b,a)|0;a=c;if(a)continue;break}J[b+276>>2]=0;J[b+280>>2]=0;c=J[b+688>>2];if(c)while(1){a=J[c+8>>2];kc[J[c>>2]](b,c)|0;c=a;if(a)continue;break}J[b+688>>2]=0;J[b+692>>2]=0;c=J[b+696>>2];if(c)while(1){a=J[c+8>>2];kc[J[c>>2]](b,c)|0;c=a;if(a)continue;break}J[b+696>>2]=0;J[b+700>>2]=0;d=b+2232|0;a=J[b+ +2232>>2];A:{if(!a)break A;c=J[b+2236>>2];if(!c)break A;kc[J[b+156>>2]](c,a)}J[b+8>>2]=0;J[b+12>>2]=0;H[b+264|0]=0;J[b+148>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;H[b+136|0]=0;J[b+132>>2]=0;H[b+60|0]=0;J[b+48>>2]=0;H[b+44|0]=16;J[b+64>>2]=0;J[b+68>>2]=0;J[b+268>>2]=1077952576;J[b+272>>2]=0;J[b+276>>2]=0;J[b+40>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+280>>2]=0;J[b+284>>2]=0;J[b+288>>2]=0;J[b+292>>2]=0;J[b+296>>2]=0;J[b+300>>2]=0;J[b+ +304>>2]=0;J[b+308>>2]=0;H[b+321|0]=0;H[b+322|0]=0;H[b+323|0]=0;H[b+324|0]=0;H[b+325|0]=0;H[b+326|0]=0;H[b+327|0]=0;H[b+328|0]=0;J[b+316>>2]=0;J[b+320>>2]=0;J[b+336>>2]=0;J[b+340>>2]=0;H[b+343|0]=0;H[b+344|0]=0;H[b+345|0]=0;H[b+346|0]=0;J[b+348>>2]=0;J[b+352>>2]=0;J[b+356>>2]=0;J[b+360>>2]=0;I[b+362>>1]=0;I[b+364>>1]=0;I[b+366>>1]=0;I[b+368>>1]=0;J[b+384>>2]=0;I[b+416>>1]=0;J[b+420>>2]=0;J[b+424>>2]=0;H[b+425|0]=0;H[b+426|0]=0;H[b+427|0]=0;H[b+428|0]=0;H[b+429|0]=0;H[b+430|0]=0;H[b+431|0]=0;H[b+432| +0]=0;J[b+436>>2]=0;J[b+440>>2]=0;J[b+444>>2]=0;J[b+448>>2]=0;J[b+452>>2]=0;J[b+456>>2]=0;H[b+460|0]=0;I[b+470>>1]=0;I[b+472>>1]=0;I[b+474>>1]=0;I[b+476>>1]=0;J[b+464>>2]=0;J[b+468>>2]=0;J[b+380>>2]=J[b+376>>2];H[b+504|0]=0;J[b+496>>2]=0;J[b+500>>2]=0;J[b+488>>2]=0;J[b+492>>2]=0;J[b+480>>2]=0;J[b+484>>2]=0;J[b+516>>2]=0;J[b+520>>2]=0;J[b+508>>2]=0;J[b+512>>2]=0;J[b+564>>2]=0;J[b+556>>2]=0;J[b+560>>2]=0;J[b+548>>2]=0;J[b+552>>2]=0;J[b+540>>2]=0;J[b+544>>2]=0;J[b+532>>2]=0;J[b+536>>2]=0;H[b+568|0]=255; +J[b+580>>2]=0;J[b+584>>2]=1;J[b+572>>2]=0;J[b+576>>2]=1;J[b+612>>2]=0;J[b+604>>2]=0;J[b+608>>2]=0;J[b+596>>2]=0;J[b+600>>2]=0;J[b+588>>2]=0;J[b+592>>2]=0;J[b+616>>2]=1;J[b+644>>2]=0;J[b+636>>2]=0;J[b+640>>2]=0;J[b+628>>2]=0;J[b+632>>2]=0;J[b+620>>2]=0;J[b+624>>2]=0;J[b+652>>2]=1;I[b+648>>1]=257;H[b+1062|0]=0;I[b+1060>>1]=0;J[b+332>>2]=0;J[b+696>>2]=0;J[b+700>>2]=0;J[b+688>>2]=0;J[b+692>>2]=0;J[b+680>>2]=0;J[b+684>>2]=0;J[b+672>>2]=0;J[b+676>>2]=0;J[b+664>>2]=0;J[b+668>>2]=0;J[b+656>>2]=0;J[b+660>> +2]=0;H[b+1015|0]=0;H[b+1016|0]=0;H[b+1017|0]=0;H[b+1018|0]=0;H[b+1019|0]=0;H[b+1020|0]=0;H[b+1021|0]=0;H[b+1022|0]=0;J[b+1008>>2]=0;J[b+1012>>2]=0;J[b+1E3>>2]=0;J[b+1004>>2]=0;J[b+992>>2]=0;J[b+996>>2]=0;J[b+984>>2]=0;J[b+988>>2]=0;J[b+976>>2]=0;J[b+980>>2]=0;J[b+968>>2]=0;J[b+972>>2]=0;H[b+1032|0]=0;J[b+1024>>2]=0;J[b+1028>>2]=0;a=b+1051|0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;a=b+1044|0;J[a>>2]=0;J[a+4>>2]=0;J[b+1036>>2]=0;J[b+1040>>2]=0;H[b+1092| +0]=0;J[b+1084>>2]=1;J[b+1088>>2]=2147483647;H[b+1080|0]=1;a=b+1104|0;J[a>>2]=0;J[a+4>>2]=0;J[b+1096>>2]=0;J[b+1100>>2]=0;H[b+1124|0]=0;J[b+1116>>2]=1;J[b+1120>>2]=2147483647;H[b+1112|0]=1;a=b+1136|0;J[a>>2]=0;J[a+4>>2]=0;J[b+1128>>2]=0;J[b+1132>>2]=0;I[b+2420>>1]=0;J[b+2336>>2]=0;J[b+2328>>2]=0;J[b+2332>>2]=0;I[b+2324>>1]=0;I[b+2252>>1]=0;J[b+2248>>2]=0;J[b+1932>>2]=0;J[b+1160>>2]=0;H[b+1148|0]=0;J[b+1144>>2]=1;I[b+1150>>1]=0;I[b+1152>>1]=0;I[b+1154>>1]=0;I[b+1156>>1]=0;a=b+2221|0;H[a|0]=0;H[a+1| +0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;a=b+2216|0;J[a>>2]=0;J[a+4>>2]=0;a=b+2208|0;J[a>>2]=0;J[a+4>>2]=0;a=b+2200|0;J[a>>2]=0;J[a+4>>2]=0;J[b+2192>>2]=0;J[b+2196>>2]=0;I[d+6>>1]=0;I[d+8>>1]=0;I[d+10>>1]=0;I[d+12>>1]=0;J[d>>2]=0;J[d+4>>2]=0;H[b+2272|0]=0;a=b+2264|0;J[a>>2]=0;J[a+4>>2]=0;J[b+2256>>2]=0;J[b+2260>>2]=0;J[b+2276>>2]=0;J[b+2280>>2]=0;a=b+2284|0;J[a>>2]=0;J[a+4>>2]=0;a=b+2292|0;J[a>>2]=0;J[a+4>>2]=0;a=b+2299|0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+ +4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;J[b+2308>>2]=0;J[b+2312>>2]=0;a=b+2314|0;I[a>>1]=0;I[a+2>>1]=0;I[a+4>>1]=0;I[a+6>>1]=0;naa(b);c=0}return c}function sEb(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;e=fc-256|0;fc=e;a:{if(!a|!J[a+4>>2])break a;h=J[a+16>>2];d=h<<2;n=J[a+20>>2];g=vc(P(d,n));J[b+12>>2]=0-d;J[b+8>>2]=n;J[b+4>>2]=h;J[b+16>>2]=g;j=L[a+26>>1];r=J[a+52>>2];c=mf(a,0);f=J[a+4>>2];f=f?J[a+44>>2]?f+40|0:0:0;u=K[a+389|0];p=K[b+40|0]; +b:{c:switch(j-1|0){case 0:if(!f){H[e+6|0]=255;H[e+4|0]=255;H[e+5|0]=255;H[e+2|0]=0;H[e|0]=0;H[e+1|0]=0;f=e}if((n|0)<=0)break b;j=(h|0)<=0;b=g;while(1){d:{if(j)break d;d=0;if(!p)while(1){i=((K[(d>>>3|0)+c|0]>>>((d^-1)&7)&1)<<2)+f|0;H[b|0]=K[i|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i+2|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break d}while(1){i=((K[(d>>>3|0)+c|0]>>>((d^-1)&7)&1)<<2)+f|0;H[b|0]=K[i+2|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=c+r|0;k=k+1|0;if((n| +0)!=(k|0))continue;break}break b;default:a=J[b+16>>2];if(a)uc(a);a=J[b+20>>2];if(a)uc(a);J[b>>2]=0;J[b+4>>2]=0;H[b+40|0]=0;J[b+32>>2]=0;J[b+36>>2]=-1074790400;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;break a;case 31:if((n|0)<=0|(h|0)<=0)break b;q=r-d|0;if(p){j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];H[b+4|0]=K[c+6|0];H[b+5|0]=K[c+ +5|0];H[b+6|0]=K[c+4|0];H[b+8|0]=K[c+10|0];H[b+9|0]=K[c+9|0];H[b+10|0]=K[c+8|0];H[b+12|0]=K[c+14|0];H[b+13|0]=K[c+13|0];H[b+14|0]=K[c+12|0];b=b+16|0;c=c+16|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];b=b+4|0;c=c+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b}j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+4|0]=K[c+4|0];H[b+ +5|0]=K[c+5|0];H[b+6|0]=K[c+6|0];H[b+8|0]=K[c+8|0];H[b+9|0]=K[c+9|0];H[b+10|0]=K[c+10|0];H[b+12|0]=K[c+12|0];H[b+13|0]=K[c+13|0];H[b+14|0]=K[c+14|0];b=b+16|0;c=c+16|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];b=b+4|0;c=c+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;case 23:if((n|0)<=0|(h|0)<=0)break b;q=r+P(h,-3)|0;if(p){j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b| +0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];H[b+4|0]=K[c+5|0];H[b+5|0]=K[c+4|0];H[b+6|0]=K[c+3|0];H[b+8|0]=K[c+8|0];H[b+9|0]=K[c+7|0];H[b+10|0]=K[c+6|0];H[b+12|0]=K[c+11|0];H[b+13|0]=K[c+10|0];H[b+14|0]=K[c+9|0];b=b+16|0;c=c+12|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c+2|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c|0];b=b+4|0;c=c+3|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b}j=h&-4;i=h&3;f=h-1>>>0<3;b=g;while(1){d=0;if(!f)while(1){H[b| +0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+4|0]=K[c+3|0];H[b+5|0]=K[c+4|0];H[b+6|0]=K[c+5|0];H[b+8|0]=K[c+6|0];H[b+9|0]=K[c+7|0];H[b+10|0]=K[c+8|0];H[b+12|0]=K[c+9|0];H[b+13|0]=K[c+10|0];H[b+14|0]=K[c+11|0];b=b+16|0;c=c+12|0;d=d+4|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];b=b+4|0;c=c+3|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+q|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;case 7:j=r-h|0;v=J[a+336>>2];if(f){e:{if((n|0)<=0|(h| +0)<=0)break e;if(u){l=h&-2;q=h&1;i=h-1|0;b=g;while(1){f:{g:{if(p){m=0;if(i){while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];H[b+3|0]=K[d+3|0];d=c;o=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[o+2|0];H[b+5|0]=K[o+1|0];H[b+6|0]=K[o|0];H[b+7|0]=K[o+3|0];b=b+8|0;c=c+2|0;m=m+2|0;if((l|0)!=(m|0))continue;break}d=d+1|0}if(!q)break f;d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];break g}m=0;if(i){while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2| +0];H[b+3|0]=K[d+3|0];d=c;o=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[o|0];H[b+5|0]=K[o+1|0];H[b+6|0]=K[o+2|0];H[b+7|0]=K[o+3|0];b=b+8|0;c=c+2|0;m=m+2|0;if((l|0)!=(m|0))continue;break}d=d+1|0}if(!q)break f;d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0]}H[b+3|0]=K[d+3|0];b=b+4|0;d=c}c=(d+j|0)+1|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break e}s=h&-2;o=h&1;l=h-1|0;q=(v<<2)+f|0;b=g;while(1){h:{if((v|0)!=-1){k=0;while(1){i=K[c|0];r=(i<<2)+f|0;d=r+2|0;H[b|0]=K[(p?d:r)|0];H[b+1|0]=K[r+1|0];H[b+2| +0]=K[(p?r:d)|0];H[b+3|0]=(i|0)!=(v|0)?255:K[q+3|0];b=b+4|0;c=c+1|0;k=k+1|0;if((k|0)!=(h|0))continue;break}break h}i:{j:{k:{if(p){m=0;if(!l)break k;while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];d=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[d+2|0];H[b+5|0]=K[d+1|0];H[b+6|0]=K[d|0];b=b+8|0;c=c+2|0;m=m+2|0;if((s|0)!=(m|0))continue;break}break k}m=0;if(!l)break j;while(1){d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0];d=(K[c+1|0]<<2)+f|0;H[b+4|0]=K[d|0];H[b+5|0]=K[d+ +1|0];H[b+6|0]=K[d+2|0];b=b+8|0;c=c+2|0;m=m+2|0;if((s|0)!=(m|0))continue;break}break j}if(!o)break h;d=(K[c|0]<<2)+f|0;H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d|0];break i}if(!o)break h;d=(K[c|0]<<2)+f|0;H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0]}b=b+4|0;c=c+1|0}c=c+j|0;t=t+1|0;if((t|0)!=(n|0))continue;break}}m=u|(v|0)!=-1;break b}if((n|0)<=0)break b;q=h&-4;o=h&3;i=(h|0)<=0;d=h-1>>>0>2;b=g;while(1){l:{if(i)break l;f=0;if(d)while(1){l=K[c|0];H[b+2|0]=l;H[b+1|0]=l;H[b|0]=l;l=K[c+1|0];H[b+ +6|0]=l;H[b+5|0]=l;H[b+4|0]=l;l=K[c+2|0];H[b+10|0]=l;H[b+9|0]=l;H[b+8|0]=l;l=K[c+3|0];H[b+14|0]=l;H[b+13|0]=l;H[b+12|0]=l;b=b+16|0;c=c+4|0;f=f+4|0;if((q|0)!=(f|0))continue;break}f=0;if(!o)break l;while(1){l=K[c|0];H[b+2|0]=l;H[b+1|0]=l;H[b|0]=l;b=b+4|0;c=c+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}}c=c+j|0;k=k+1|0;if((n|0)!=(k|0))continue;break}break b;case 3:if(!f){H[e+62|0]=255;H[e+58|0]=238;H[e+54|0]=221;H[e+50|0]=204;H[e+46|0]=187;H[e+42|0]=170;H[e+38|0]=153;H[e+30|0]=119;H[e+26|0]=102;H[e+22| +0]=85;H[e+18|0]=68;H[e+10|0]=34;H[e+34|0]=136;I[e+60>>1]=65535;I[e+56>>1]=61166;I[e+52>>1]=56797;I[e+48>>1]=52428;I[e+44>>1]=48059;I[e+40>>1]=43690;I[e+36>>1]=39321;I[e+32>>1]=34952;I[e+28>>1]=30583;I[e+24>>1]=26214;I[e+20>>1]=21845;I[e+16>>1]=17476;H[e+14|0]=51;I[e+12>>1]=13107;I[e+8>>1]=8738;H[e+6|0]=17;I[e+4>>1]=4369;H[e+2|0]=0;I[e>>1]=0;f=e}s=J[a+336>>2];if((n|0)>0){l=(s<<2)+f|0;q=(h|0)<=0;b=g;while(1){m:{if(q)break m;m=0;if(u)while(1){j=((K[(m>>>1|0)+c|0]>>>((m^-1)<<2&4)&15)<<2)+f|0;d=j+2|0; +H[b|0]=K[(p?d:j)|0];H[b+1|0]=K[j+1|0];H[b+2|0]=K[(p?j:d)|0];H[b+3|0]=K[j+3|0];b=b+4|0;m=m+1|0;if((h|0)!=(m|0))continue;break m}d=0;if((s|0)==-1)while(1){i=((K[(d>>>1|0)+c|0]>>>((d^-1)<<2&4)&15)<<2)+f|0;j=i+2|0;H[b|0]=K[(p?j:i)|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[(p?i:j)|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break m}while(1){i=K[(d>>>1|0)+c|0]>>>((d^-1)<<2&4)&15;o=(i<<2)+f|0;j=o+2|0;H[b|0]=K[(p?j:o)|0];H[b+1|0]=K[o+1|0];H[b+2|0]=K[(p?o:j)|0];H[b+3|0]=(i|0)!=(s|0)?255:K[l+3|0];b=b+4|0;d=d+1|0;if((h| +0)!=(d|0))continue;break}}c=c+r|0;t=t+1|0;if((t|0)!=(n|0))continue;break}}m=u|(s|0)!=-1;break b;case 1:break c}if(!f){H[e+14|0]=255;I[e+12>>1]=65535;H[e+10|0]=170;I[e+8>>1]=43690;H[e+6|0]=85;I[e+4>>1]=21845;H[e+2|0]=0;I[e>>1]=0;f=e}if((n|0)<=0)break b;j=(h|0)<=0;b=g;while(1){n:{if(j)break n;d=0;if(!p)while(1){i=((K[(d>>>2|0)+c|0]>>>((d^-1)<<1&6)&3)<<2)+f|0;H[b|0]=K[i|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i+2|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break n}while(1){i=((K[(d>>>2|0)+c|0]>>>((d^-1)<<1& +6)&3)<<2)+f|0;H[b|0]=K[i+2|0];H[b+1|0]=K[i+1|0];H[b+2|0]=K[i|0];b=b+4|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=c+r|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}o:{if(J[a+964>>2]){b=0;c=LO(a);j=K[a+388|0];if((j|0)==255){d=P(h,n);if((d|0)<=0)break a;if(d>>>0>=8){a=d&-8;while(1){H[g+3|0]=K[c|0];H[g+7|0]=K[c+1|0];H[g+11|0]=K[c+2|0];H[g+15|0]=K[c+3|0];H[g+19|0]=K[c+4|0];H[g+23|0]=K[c+5|0];H[g+27|0]=K[c+6|0];H[g+31|0]=K[c+7|0];g=g+32|0;c=c+8|0;b=b+8|0;if((a|0)!=(b|0))continue;break}}a=d&7;if(!a)break a; +b=0;while(1){H[g+3|0]=K[c|0];g=g+4|0;c=c+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}break a}f=j>>>1|0;while(1){a=(f+P(b,255)>>>0)/(j>>>0)|0;H[b+e|0]=a>>>0>=255?255:a;a=b|1;d=(f+P(a,255)>>>0)/(j>>>0)|0;H[a+e|0]=d>>>0>=255?255:d;b=b+2|0;if((b|0)!=256)continue;break}break o}if(m)break a;b=P(h,n);if((b|0)<=0)break a;if(b>>>0>=8){a=b&-8;c=0;while(1){H[g+31|0]=255;H[g+27|0]=255;H[g+23|0]=255;H[g+19|0]=255;H[g+15|0]=255;H[g+11|0]=255;H[g+7|0]=255;H[g+3|0]=255;g=g+32|0;c=c+8|0;if((a|0)!=(c|0))continue;break}}a= +b&7;if(!a)break a;c=0;while(1){H[g+3|0]=255;g=g+4|0;c=c+1|0;if((a|0)!=(c|0))continue;break}break a}d=P(h,n);if((d|0)<=0)break a;if(d>>>0>=4){a=d&-4;b=0;while(1){H[g+3|0]=K[K[c|0]+e|0];H[g+7|0]=K[K[c+1|0]+e|0];H[g+11|0]=K[K[c+2|0]+e|0];H[g+15|0]=K[K[c+3|0]+e|0];g=g+16|0;c=c+4|0;b=b+4|0;if((a|0)!=(b|0))continue;break}}a=d&3;if(!a)break a;b=0;while(1){H[g+3|0]=K[K[c|0]+e|0];g=g+4|0;c=c+1|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}fc=e+256|0}function B$(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;e=fc-608|0;fc=e;J[e+584>>2]=13;J[e+568>>2]=13;J[e+552>>2]=13;J[e+16>>2]=13;J[e>>2]=13;a:{if(!(J[a+100>>2]|d)){c=1;break a}J[e+600>>2]=0;J[e+604>>2]=0;kc[J[J[c>>2]+84>>2]](c,e+604|0,e+600|0);m=kc[J[J[c>>2]+76>>2]](c)|0;w=J[J[a+28>>2]+420>>2];q=e+16|0;Ec(m,839038,q,0);g=J[e+16>>2];if((g|0)==5){yc(q);Ec(m,839274,q,0);g=J[e+16>>2]}b:{c:{d:{e:{f:{g:{h:{i:{j:{if(g-3>>>0<4294967294)break j;l=(g|0)==1?+J[e+24>>2]:O[e+24>>3];k:{if(R(l)<2147483648){q=~~l;break k}q= +-2147483648}o=e+16|0;yc(o);if((q|0)<=0)break i;Ec(m,839398,o,0);h=J[e+16>>2];if((h|0)==5){yc(o);Ec(m,839633,o,0);h=J[e+16>>2]}if(h-3>>>0<4294967294)break j;l=(h|0)==1?+J[e+24>>2]:O[e+24>>3];l:{if(R(l)<2147483648){o=~~l;break l}o=-2147483648}h=e+16|0;yc(h);if((o|0)<=0)break i;Ec(m,839733,h,0);g=J[e+16>>2];if((g|0)==5){yc(h);Ec(m,839927,h,0);g=J[e+16>>2]}m:switch(g|0){case 0:f=J[e+24>>2];break;case 5:break m;default:break j}h=e+16|0;yc(h);if(!J[e+604>>2]){Ec(m,839995,h,0);g=J[e+16>>2];if((g|0)==5){yc(h); +Ec(m,840250,h,0);g=J[e+16>>2]}n:{if((g|0)==1){g=J[e+24>>2];J[e+604>>2]=g;if(g-17>>>0>=4294967280)break n;break j}if(!f)break j;J[e+604>>2]=1}yc(e+16|0)}h=e+16|0;Ec(m,840399,h,0);g=J[e+16>>2];if((g|0)==5){yc(h);Ec(m,840593,h,0);g=J[e+16>>2]}v=!g&J[e+24>>2]!=0;g=e+16|0;yc(g);if(f){if(J[e+604>>2]!=1)break i;f=0;Ec(m,840655,g,0);i=J[e+16>>2];if((i|0)==5){yc(g);Ec(m,807170,g,0);i=J[e+16>>2]}o:switch(i-5|0){case 1:Sc(J[e+24>>2],0,e,0);i=J[e>>2];if(i-3>>>0>=4294967294)f=((i|0)==1?+J[e+8>>2]:O[e+8>>3])== +1;yc(e);break;case 0:break o;default:break j}yc(e+16|0);if(!J[a+100>>2]){kc[J[J[c>>2]+20>>2]](c);d=P(q+7>>>3|0,o);p:{if((d|0)<=0)break p;if(d>>>0>=4){i=d&-4;b=0;while(1){kc[J[J[c>>2]+28>>2]](c)|0;kc[J[J[c>>2]+28>>2]](c)|0;kc[J[J[c>>2]+28>>2]](c)|0;kc[J[J[c>>2]+28>>2]](c)|0;b=b+4|0;if((i|0)!=(b|0))continue;break}}d=d&3;if(!d)break p;b=0;while(1){kc[J[J[c>>2]+28>>2]](c)|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}kc[J[J[c>>2]+24>>2]](c);break b}i=J[J[a+28>>2]+116>>2];if((kc[J[J[i>>2]+12>>2]](i)|0)==10){i= +J[a+8>>2];kc[J[J[i>>2]+64>>2]](i,J[a+28>>2]);i=Bw(J[a+28>>2]);J[a+28>>2]=i;k=J[a+8>>2];kc[J[J[k>>2]+296>>2]](k,i,b,c,q,o,f,d,v);_f(J[a+28>>2]);b=J[a+28>>2];J[b+600>>2]=0;J[b+604>>2]=0;J[b+608>>2]=0;J[b+612>>2]=0;b=J[b+596>>2];O[b+16>>3]=0;O[b+8>>3]=0;J[b>>2]=1;b=J[a+28>>2];J[b+608>>2]=0;J[b+612>>2]=0;J[b+600>>2]=0;J[b+604>>2]=1072693248;re(J[b+596>>2],1,0);b=J[a+28>>2];J[b+608>>2]=0;J[b+612>>2]=1072693248;J[b+600>>2]=0;J[b+604>>2]=1072693248;re(J[b+596>>2],1,1);b=J[a+28>>2];J[b+608>>2]=0;J[b+612>> +2]=1072693248;J[b+600>>2]=0;J[b+604>>2]=0;re(J[b+596>>2],0,1);b=J[a+28>>2];gg(J[b+596>>2]);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];Cr(a,1);_f(J[a+28>>2]);b=Mm(J[a+28>>2]);J[a+28>>2]=b;c=J[a+8>>2];kc[J[J[c>>2]+68>>2]](c,b);break b}i=J[a+8>>2];kc[J[J[i>>2]+292>>2]](i,J[a+28>>2],b,c,q,o,f,d,v);break b}f=e+16|0;if(J[Ec(m,840762,f,0)>>2]==4)IJ(a,f,e);g=e+16|0;yc(g);Ec(m,778955,g,0);f=J[e+16>>2];if((f|0)== +5){yc(g);Ec(m,840951,g,0);f=J[e+16>>2]}q:{if((f|0)!=4)break q;w$(J[a+20>>2],J[e+24>>2],e);if(J[e>>2]!=5){yc(e+16|0);f=J[e+12>>2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=f;f=J[e+4>>2];J[e+16>>2]=J[e>>2];J[e+20>>2]=f;break q}yc(e)}r:{if(J[e+16>>2]!=5){g=Pm(e+16|0,0);break r}s:switch(J[e+600>>2]-1|0){default:yc(e+16|0);break i;case 0:g=Ok(0);break r;case 1:g=Ok(2);break r;case 2:break s}g=Ok(4)}yc(e+16|0);if(!g)break i;if((kc[J[J[g>>2]+12>>2]](g)|0)==10){c=-1;b=J[a+108>>2];t:{if(!b)break t;b=J[b+4>>2];if(J[b+ +8>>2]==13)break t;b=J[b+16>>2];c=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,c,841069,0);kc[J[J[g>>2]+4>>2]](g);break i}f=e+16|0;Ec(m,840655,f,0);if(J[e+16>>2]==5){yc(f);Ec(m,807170,f,0)}f=vc(800);J[699344]=0;h=e+16|0;r=na(3436,f|0,J[e+604>>2],h|0,g|0,8)|0;j=J[699344];J[699344]=0;if((j|0)==1)break h;yc(h);if(!J[r+792>>2]){uc(zl(r));break i}h=0;f=e+584|0;Ec(m,841212,f,0);j=e+568|0;Ec(m,813222,j,0);u:{y=J[e+568>>2];if((y|0)==8){if(d){uc(zl(r));yc(f);yc(j);break i}t=J[e+576>>2];j=kc[J[J[t>>2]+76>>2]](t)|0;i=e+16| +0;Ec(j,839038,i,0);h=J[e+16>>2];if((h|0)==5){yc(i);Ec(j,839274,i,0);h=J[e+16>>2]}if(h-3>>>0<4294967294)break u;l=O[e+24>>3];i=J[e+24>>2];k=e+16|0;yc(k);Ec(j,839398,k,0);f=J[e+16>>2];k=(f|0)!=5;l=(h|0)==1?+(i|0):l;v:{if(R(l)<2147483648){i=~~l;break v}i=-2147483648}if(!k){k=e+16|0;yc(k);Ec(j,839633,k,0);f=J[e+16>>2]}if(f-3>>>0<4294967294)break u;h=(i|0)<=0;l=(f|0)==1?+J[e+24>>2]:O[e+24>>3];w:{if(R(l)<2147483648){k=~~l;break w}k=-2147483648}yc(e+16|0);if(!(!h&(k|0)>0)){uc(zl(r));yc(e+584|0);yc(e+568| +0);break i}h=e+16|0;Ec(j,839995,h,0);f=J[e+16>>2];if((f|0)==5){yc(h);Ec(j,840250,h,0);f=J[e+16>>2]}if((f|0)!=1)break u;p=J[e+24>>2];yc(e+16|0);if(p-17>>>0<=4294967279){uc(zl(r));yc(e+584|0);yc(e+568|0);break i}h=e+16|0;Ec(j,778955,h,0);f=J[e+16>>2];if((f|0)==5){yc(h);Ec(j,840951,h,0);f=J[e+16>>2]}if((f|0)!=4)break u;w$(J[a+20>>2],J[e+24>>2],e);x:{if(J[e>>2]!=5){yc(e+16|0);f=J[e+12>>2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=f;f=J[e+4>>2];J[e+16>>2]=J[e>>2];J[e+20>>2]=f;break x}yc(e)}if(J[e+16>>2]!=4)break u; +if(Ic(J[e+24>>2],786996))break u;f=vc(12);J[699344]=0;J[f>>2]=2217624;J[f+4>>2]=15;J[f+8>>2]=0;h=J[699344];J[699344]=0;if((h|0)==1)break h;h=e+16|0;yc(h);Ec(j,840655,h,0);if(J[e+16>>2]==5){yc(h);Ec(j,807170,h,0)}h=f;f=vc(800);J[699344]=0;n=p;p=e+16|0;h=na(3436,f|0,n|0,p|0,h|0,8)|0;u=J[699344];J[699344]=0;y:{if((u|0)!=1){yc(p);if(J[h+792>>2])break y;uc(zl(h));uc(zl(r));yc(e+584|0);yc(e+568|0);break i}break h}p=0;f=1;if(J[Ec(j,841418,e+16|0,0)>>2]!=6){u=1;break d}if(J[J[e+24>>2]+12>>2]==(kc[J[J[g>> +2]+28>>2]](g)|0)){j=J[e+24>>2];if(J[j+12>>2]<=0){u=0;break d}g=0;while(1){n=(e+32|0)+(g<<3)|0;z:{if(J[Sc(j,g,e,0)>>2]-3>>>0>=4294967294){l=J[e>>2]==1?+J[e+8>>2]:O[e+8>>3];break z}f=-1;j=J[a+108>>2];A:{if(!j)break A;j=J[j+4>>2];if(J[j+8>>2]==13)break A;f=J[j+16>>2];f=kc[J[J[f>>2]+52>>2]](f)|0}Cc(1,f,841506,0);l=0}O[n>>3]=l;f=1;yc(e);u=0;g=g+1|0;j=J[e+24>>2];if((g|0)>2])continue;break}break d}g=-1;f=J[a+108>>2];B:{if(!f)break B;f=J[f+4>>2];if(J[f+8>>2]==13)break B;f=J[f+16>>2];g=kc[J[J[f>>2]+ +52>>2]](f)|0}f=1;Cc(1,g,841506,0);u=1;break d}j=1;f=1;u=1;C:switch(J[e+584>>2]-6|0){case 0:n=1;g=0;s=J[e+592>>2];if(J[s+12>>2]<=1){j=0;break f}while(1){p=e+16|0;j=p;Sc(s,g,j,0);if(J[e+16>>2]!=1)break e;x=e+288|0;s=J[e+24>>2];J[x+(g<<2)>>2]=s;yc(j);if((s|0)<0)break g;j=1;if((s|0)>=1<>2])break f;Sc(J[e+592>>2],n,p,0);if(J[e+16>>2]!=1)break e;x=(n<<2)+x|0;n=J[e+24>>2];J[x>>2]=n;yc(p);if((n|0)<0)break g;if((n|0)>=1<>2])break f;p=0;if(n>>>0>>0)break c;g=g+2|0;n=g|1;if(n>>>0>63){j= +0;break f}j=0;s=J[e+592>>2];if(J[s+12>>2]>(n|0))continue;break}break c;case 2:break C;default:break c}if(d){uc(zl(r));yc(e+584|0);yc(e+568|0);break i}t=J[e+592>>2];j=kc[J[J[t>>2]+76>>2]](t)|0;i=e+16|0;Ec(j,839038,i,0);g=J[e+16>>2];if((g|0)==5){yc(i);Ec(j,839274,i,0);g=J[e+16>>2]}if(g-3>>>0<4294967294)break u;l=O[e+24>>3];i=J[e+24>>2];k=e+16|0;yc(k);Ec(j,839398,k,0);h=J[e+16>>2];k=(h|0)!=5;l=(g|0)==1?+(i|0):l;D:{if(R(l)<2147483648){i=~~l;break D}i=-2147483648}if(!k){k=e+16|0;yc(k);Ec(j,839633,k,0); +h=J[e+16>>2]}if(h-3>>>0<4294967294)break u;f=(i|0)<=0;l=(h|0)==1?+J[e+24>>2]:O[e+24>>3];E:{if(R(l)<2147483648){k=~~l;break E}k=-2147483648}g=e+16|0;yc(g);if((k|0)<=0|f)break u;Ec(j,839733,g,0);f=J[e+16>>2];if((f|0)==5){yc(g);Ec(j,839927,g,0);f=J[e+16>>2]}if(!J[e+24>>2]|f)break u;f=e+16|0;yc(f);h=0;Ec(j,840655,f,0);g=J[e+16>>2];if((g|0)==5){yc(f);Ec(j,807170,f,0);g=J[e+16>>2]}f=0;F:switch(g-5|0){case 0:break d;case 1:break F;default:break u}Sc(J[e+24>>2],0,e,0);g=J[e>>2];if(g-3>>>0>=4294967294)p=((g| +0)==1?+J[e+8>>2]:O[e+8>>3])==1;yc(e);break d}uc(zl(r));yc(e+584|0);yc(e+568|0)}yc(e+16|0)}b=-1;c=J[a+108>>2];G:{if(!c)break G;c=J[c+4>>2];if(J[c+8>>2]==13)break G;b=J[c+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}c=0;Cc(1,b,841798,0);b=J[a+28>>2];if(J[b+420>>2]==(w|0))break a;J[b+420>>2]=w;a=J[a+8>>2];kc[J[J[a>>2]+148>>2]](a,b);break a}a=Z()|0;uc(f);ba(a|0);B()}j=1}p=0;break c}p=0}yc(e+16|0);j=1}g=J[a+28>>2];n=J[g+664>>2];H:{if(J[a+100>>2]?n:1){if(n){b=-1;i=J[a+108>>2];I:{if(!i)break I;i=J[i+4>>2];if(J[i+ +8>>2]==13)break I;b=J[i+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}Cc(0,b,841649,0)}if(!d)break H;kc[J[J[c>>2]+20>>2]](c);kc[J[J[c>>2]+48>>2]](c,P((P(J[r+4>>2],P(J[r+8>>2],q))+7|0)/8|0,o))|0;kc[J[J[c>>2]+24>>2]](c);break H}if((y|0)==8){d=e+552|0;Ke(m,841212,d);f=J[a+8>>2];kc[J[J[f>>2]+308>>2]](f,J[a+28>>2],b,c,q,o,r,d,t,i,k,h,u?0:e+32|0,v);yc(d);if(!h)break H;uc(zl(h));break H}if(!f){d=e+552|0;Ke(m,841212,d);f=J[a+8>>2];kc[J[J[f>>2]+304>>2]](f,J[a+28>>2],b,c,q,o,r,d,t,i,k,p,v);yc(d);break H}i=J[a+8>>2];kc[J[J[i>> +2]+300>>2]](i,g,b,c,q,o,r,j?0:e+288|0,d,v)}uc(zl(r));yc(e+584|0);yc(e+568|0)}b=J[a+28>>2];if(J[b+420>>2]!=(w|0)){J[b+420>>2]=w;c=J[a+8>>2];kc[J[J[c>>2]+148>>2]](c,b)}b=a;c=J[a+24>>2];a=P(o,q);J[b+24>>2]=c+((a|0)>=1E3?1E3:a);c=1}fc=e+608|0;return c}function dCb(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;m=c&1;n=(d|0)/16<<4;c=a;if((d|0)>=16)while(1){eba(c,e,f,m);g=c;a:{if((e|0)>=2){p=(e-m|0)+1>>1;h=(P(p,f)<<2)+g|0;i=h;if(m){J[h>> +2]=J[h>>2]-J[g>>2];J[h+4>>2]=J[h+4>>2]-J[g+4>>2];J[h+8>>2]=J[h+8>>2]-J[g+8>>2];J[h+12>>2]=J[h+12>>2]-J[g+12>>2];J[h+16>>2]=J[h+16>>2]-J[g+16>>2];J[h+20>>2]=J[h+20>>2]-J[g+20>>2];J[h+24>>2]=J[h+24>>2]-J[g+24>>2];J[h+28>>2]=J[h+28>>2]-J[g+28>>2];J[h+32>>2]=J[h+32>>2]-J[g+32>>2];J[h+36>>2]=J[h+36>>2]-J[g+36>>2];J[h+40>>2]=J[h+40>>2]-J[g+40>>2];J[h+44>>2]=J[h+44>>2]-J[g+44>>2];J[h+48>>2]=J[h+48>>2]-J[g+48>>2];J[h+52>>2]=J[h+52>>2]-J[g+52>>2];J[h+56>>2]=J[h+56>>2]-J[g+56>>2];J[h+60>>2]=J[h+60>>2]-J[g+ +60>>2];i=(f<<2)+h|0}q=e&1;r=(q|0)==(m|0);o=(e-(m+p|0)|0)-r|0;b:{if((o|0)<=0){j=g;break b}l=f<<2;k=g;while(1){j=k+l|0;J[i>>2]=J[i>>2]-(J[j>>2]+J[k>>2]>>1);J[i+4>>2]=J[i+4>>2]-(J[l+(k+4|0)>>2]+J[k+4>>2]>>1);J[i+8>>2]=J[i+8>>2]-(J[l+(k+8|0)>>2]+J[k+8>>2]>>1);J[i+12>>2]=J[i+12>>2]-(J[l+(k+12|0)>>2]+J[k+12>>2]>>1);J[i+16>>2]=J[i+16>>2]-(J[l+(k+16|0)>>2]+J[k+16>>2]>>1);J[i+20>>2]=J[i+20>>2]-(J[l+(k+20|0)>>2]+J[k+20>>2]>>1);J[i+24>>2]=J[i+24>>2]-(J[l+(k+24|0)>>2]+J[k+24>>2]>>1);J[i+28>>2]=J[i+28>>2]-(J[l+ +(k+28|0)>>2]+J[k+28>>2]>>1);J[i+32>>2]=J[i+32>>2]-(J[l+(k+32|0)>>2]+J[k+32>>2]>>1);J[i+36>>2]=J[i+36>>2]-(J[l+(k+36|0)>>2]+J[k+36>>2]>>1);J[i+40>>2]=J[i+40>>2]-(J[l+(k+40|0)>>2]+J[k+40>>2]>>1);J[i+44>>2]=J[i+44>>2]-(J[l+(k+44|0)>>2]+J[k+44>>2]>>1);J[i+48>>2]=J[i+48>>2]-(J[l+(k+48|0)>>2]+J[k+48>>2]>>1);J[i+52>>2]=J[i+52>>2]-(J[l+(k+52|0)>>2]+J[k+52>>2]>>1);J[i+56>>2]=J[i+56>>2]-(J[l+(k+56|0)>>2]+J[k+56>>2]>>1);J[i+60>>2]=J[i+60>>2]-(J[l+(k+60|0)>>2]+J[k+60>>2]>>1);i=i+l|0;s=o>>>0>1;o=o-1|0;k=j;if(s)continue; +break}}k=(m|0)!=(q|0);if(!k){J[i>>2]=J[i>>2]-J[j>>2];J[i+4>>2]=J[i+4>>2]-J[j+4>>2];J[i+8>>2]=J[i+8>>2]-J[j+8>>2];J[i+12>>2]=J[i+12>>2]-J[j+12>>2];J[i+16>>2]=J[i+16>>2]-J[j+16>>2];J[i+20>>2]=J[i+20>>2]-J[j+20>>2];J[i+24>>2]=J[i+24>>2]-J[j+24>>2];J[i+28>>2]=J[i+28>>2]-J[j+28>>2];J[i+32>>2]=J[i+32>>2]-J[j+32>>2];J[i+36>>2]=J[i+36>>2]-J[j+36>>2];J[i+40>>2]=J[i+40>>2]-J[j+40>>2];J[i+44>>2]=J[i+44>>2]-J[j+44>>2];J[i+48>>2]=J[i+48>>2]-J[j+48>>2];J[i+52>>2]=J[i+52>>2]-J[j+52>>2];J[i+56>>2]=J[i+56>>2]-J[j+ +56>>2];J[i+60>>2]=J[i+60>>2]-J[j+60>>2]}if(!m){J[g>>2]=J[g>>2]+(J[h>>2]+1>>1);J[g+4>>2]=J[g+4>>2]+(J[h+4>>2]+1>>1);J[g+8>>2]=J[g+8>>2]+(J[h+8>>2]+1>>1);J[g+12>>2]=J[g+12>>2]+(J[h+12>>2]+1>>1);J[g+16>>2]=J[g+16>>2]+(J[h+16>>2]+1>>1);J[g+20>>2]=J[g+20>>2]+(J[h+20>>2]+1>>1);J[g+24>>2]=J[g+24>>2]+(J[h+24>>2]+1>>1);J[g+28>>2]=J[g+28>>2]+(J[h+28>>2]+1>>1);J[g+32>>2]=J[g+32>>2]+(J[h+32>>2]+1>>1);J[g+36>>2]=J[g+36>>2]+(J[h+36>>2]+1>>1);J[g+40>>2]=J[g+40>>2]+(J[h+40>>2]+1>>1);J[g+44>>2]=J[g+44>>2]+(J[h+44>> +2]+1>>1);J[g+48>>2]=J[g+48>>2]+(J[h+48>>2]+1>>1);J[g+52>>2]=J[g+52>>2]+(J[h+52>>2]+1>>1);J[g+56>>2]=J[g+56>>2]+(J[h+56>>2]+1>>1);J[g+60>>2]=J[g+60>>2]+(J[h+60>>2]+1>>1);g=(f<<2)+g|0}k=(p-!m|0)-k|0;c:{if((k|0)<=0){j=h;break c}while(1){i=f<<2;j=i+h|0;J[g>>2]=J[g>>2]+((J[h>>2]+J[j>>2]|0)+2>>2);J[g+4>>2]=J[g+4>>2]+((J[h+4>>2]+J[i+(h+4|0)>>2]|0)+2>>2);J[g+8>>2]=J[g+8>>2]+((J[h+8>>2]+J[i+(h+8|0)>>2]|0)+2>>2);J[g+12>>2]=J[g+12>>2]+((J[h+12>>2]+J[i+(h+12|0)>>2]|0)+2>>2);J[g+16>>2]=J[g+16>>2]+((J[h+16>>2]+ +J[i+(h+16|0)>>2]|0)+2>>2);J[g+20>>2]=J[g+20>>2]+((J[h+20>>2]+J[i+(h+20|0)>>2]|0)+2>>2);J[g+24>>2]=J[g+24>>2]+((J[h+24>>2]+J[i+(h+24|0)>>2]|0)+2>>2);J[g+28>>2]=J[g+28>>2]+((J[h+28>>2]+J[i+(h+28|0)>>2]|0)+2>>2);J[g+32>>2]=J[g+32>>2]+((J[h+32>>2]+J[i+(h+32|0)>>2]|0)+2>>2);J[g+36>>2]=J[g+36>>2]+((J[h+36>>2]+J[i+(h+36|0)>>2]|0)+2>>2);J[g+40>>2]=J[g+40>>2]+((J[h+40>>2]+J[i+(h+40|0)>>2]|0)+2>>2);J[g+44>>2]=J[g+44>>2]+((J[h+44>>2]+J[i+(h+44|0)>>2]|0)+2>>2);J[g+48>>2]=J[g+48>>2]+((J[h+48>>2]+J[i+(h+48|0)>> +2]|0)+2>>2);J[g+52>>2]=J[g+52>>2]+((J[h+52>>2]+J[i+(h+52|0)>>2]|0)+2>>2);J[g+56>>2]=J[g+56>>2]+((J[h+56>>2]+J[i+(h+56|0)>>2]|0)+2>>2);J[g+60>>2]=J[g+60>>2]+((J[h+60>>2]+J[i+(h+60|0)>>2]|0)+2>>2);g=g+i|0;i=k>>>0>1;k=k-1|0;h=j;if(i)continue;break}}if(r)break a;J[g>>2]=J[g>>2]+(J[j>>2]+1>>1);J[g+4>>2]=J[g+4>>2]+(J[j+4>>2]+1>>1);J[g+8>>2]=J[g+8>>2]+(J[j+8>>2]+1>>1);J[g+12>>2]=J[g+12>>2]+(J[j+12>>2]+1>>1);J[g+16>>2]=J[g+16>>2]+(J[j+16>>2]+1>>1);J[g+20>>2]=J[g+20>>2]+(J[j+20>>2]+1>>1);J[g+24>>2]=J[g+24>> +2]+(J[j+24>>2]+1>>1);J[g+28>>2]=J[g+28>>2]+(J[j+28>>2]+1>>1);J[g+32>>2]=J[g+32>>2]+(J[j+32>>2]+1>>1);J[g+36>>2]=J[g+36>>2]+(J[j+36>>2]+1>>1);J[g+40>>2]=J[g+40>>2]+(J[j+40>>2]+1>>1);J[g+44>>2]=J[g+44>>2]+(J[j+44>>2]+1>>1);J[g+48>>2]=J[g+48>>2]+(J[j+48>>2]+1>>1);J[g+52>>2]=J[g+52>>2]+(J[j+52>>2]+1>>1);J[g+56>>2]=J[g+56>>2]+(J[j+56>>2]+1>>1);J[g+60>>2]=J[g+60>>2]+(J[j+60>>2]+1>>1);break a}if(!m)break a;J[g>>2]=J[g>>2]<<1;J[g+4>>2]=J[g+4>>2]<<1;J[g+8>>2]=J[g+8>>2]<<1;J[g+12>>2]=J[g+12>>2]<<1;J[g+16>> +2]=J[g+16>>2]<<1;J[g+20>>2]=J[g+20>>2]<<1;J[g+24>>2]=J[g+24>>2]<<1;J[g+28>>2]=J[g+28>>2]<<1;J[g+32>>2]=J[g+32>>2]<<1;J[g+36>>2]=J[g+36>>2]<<1;J[g+40>>2]=J[g+40>>2]<<1;J[g+44>>2]=J[g+44>>2]<<1;J[g+48>>2]=J[g+48>>2]<<1;J[g+52>>2]=J[g+52>>2]<<1;J[g+56>>2]=J[g+56>>2]<<1;J[g+60>>2]=J[g+60>>2]<<1}c=c- -64|0;t=t+16|0;if((n|0)>(t|0))continue;break}if((d|0)>(n|0)){l=d-n|0;dba(c,e,l,f,m);h=0;d:{if((e|0)>=2){q=(e-m|0)+1>>1;k=(P(q,f)<<2)+c|0;i=k;if(m){e:{if((l|0)<=0)break e;h=i;g=c;if(l-1>>>0>=3){j=l&-4;i=0; +while(1){J[h>>2]=J[h>>2]-J[g>>2];J[h+4>>2]=J[h+4>>2]-J[g+4>>2];J[h+8>>2]=J[h+8>>2]-J[g+8>>2];J[h+12>>2]=J[h+12>>2]-J[g+12>>2];g=g+16|0;h=h+16|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}j=l&3;if(!j)break e;i=0;while(1){J[h>>2]=J[h>>2]-J[g>>2];g=g+4|0;h=h+4|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}i=(f<<2)+k|0}r=e&1;s=(r|0)==(m|0);n=(e-(m+q|0)|0)-s|0;f:{g:{if((n|0)<=0){j=c;break g}if((l|0)<=0){n=0;break f}t=l&-2;u=l&1;o=f<<2;j=c;while(1){p=0;h=i;g=j;if((l|0)!=1)while(1){J[h>>2]=J[h>>2]-(J[g+o>>2]+J[g>> +2]>>1);J[h+4>>2]=J[h+4>>2]-(J[o+(g+4|0)>>2]+J[g+4>>2]>>1);h=h+8|0;g=g+8|0;p=p+2|0;if((t|0)!=(p|0))continue;break}if(u)J[h>>2]=J[h>>2]-(J[g+o>>2]+J[g>>2]>>1);j=j+o|0;i=i+o|0;g=(n|0)>1;n=n-1|0;if(g)continue;break}}n=(l|0)>0;if((m|0)!=(r|0)|(l|0)<=0)break f;if(l-1>>>0>=3){g=l&-4;h=0;while(1){J[i>>2]=J[i>>2]-J[j>>2];J[i+4>>2]=J[i+4>>2]-J[j+4>>2];J[i+8>>2]=J[i+8>>2]-J[j+8>>2];J[i+12>>2]=J[i+12>>2]-J[j+12>>2];i=i+16|0;j=j+16|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=l&3;if(!g)break f;h=0;while(1){J[i>> +2]=J[i>>2]-J[j>>2];i=i+4|0;j=j+4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}if(!m){h:{if(!n)break h;g=k;h=c;if(l-1>>>0>=3){j=l&-4;i=0;while(1){J[h>>2]=J[h>>2]+(J[g>>2]+1>>1);J[h+4>>2]=J[h+4>>2]+(J[g+4>>2]+1>>1);J[h+8>>2]=J[h+8>>2]+(J[g+8>>2]+1>>1);J[h+12>>2]=J[h+12>>2]+(J[g+12>>2]+1>>1);g=g+16|0;h=h+16|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}j=l&3;if(!j)break h;i=0;while(1){J[h>>2]=J[h>>2]+(J[g>>2]+1>>1);g=g+4|0;h=h+4|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}c=(f<<2)+c|0}i=(q-!m|0)-((m|0)!=(r|0))| +0;if((i|0)>0){if(!n)break d;m=l&-2;o=l&1;j=f<<2;while(1){p=0;h=k;g=c;if((l|0)!=1)while(1){J[g>>2]=J[g>>2]+((J[h>>2]+J[h+j>>2]|0)+2>>2);J[g+4>>2]=J[g+4>>2]+((J[h+4>>2]+J[j+(h+4|0)>>2]|0)+2>>2);h=h+8|0;g=g+8|0;p=p+2|0;if((m|0)!=(p|0))continue;break}if(o)J[g>>2]=J[g>>2]+((J[h>>2]+J[h+j>>2]|0)+2>>2);k=j+k|0;c=c+j|0;g=(i|0)>1;i=i-1|0;if(g)continue;break}}if(s|n^1)break d;if(l-1>>>0>=3){g=l&-4;h=0;while(1){J[c>>2]=J[c>>2]+(J[k>>2]+1>>1);J[c+4>>2]=J[c+4>>2]+(J[k+4>>2]+1>>1);J[c+8>>2]=J[c+8>>2]+(J[k+8>>2]+ +1>>1);J[c+12>>2]=J[c+12>>2]+(J[k+12>>2]+1>>1);k=k+16|0;c=c+16|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=l&3;if(!g)break d;h=0;while(1){J[c>>2]=J[c>>2]+(J[k>>2]+1>>1);k=k+4|0;c=c+4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}break d}if(!m|(l|0)<=0)break d;if(l-1>>>0>=3){g=l&-4;while(1){J[c>>2]=J[c>>2]<<1;J[c+4>>2]=J[c+4>>2]<<1;J[c+8>>2]=J[c+8>>2]<<1;J[c+12>>2]=J[c+12>>2]<<1;c=c+16|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=l&3;if(!g)break d;h=0;while(1){J[c>>2]=J[c>>2]<<1;c=c+4|0;h=h+1|0;if((g|0)!= +(h|0))continue;break}}}if((e|0)>0){k=b&1;c=0;m=f<<2;while(1){cba(a,d,k);b=a;i:{if((d|0)>=2){i=(d-k|0)+1>>1;j=(i<<2)+b|0;g=j;if(k){J[g>>2]=J[g>>2]-J[b>>2];g=g+4|0}f=i+k|0;n=d&1;l=(n|0)==(k|0);h=(d-f|0)-l|0;j:{if((h|0)<=0){f=b;break j}o=f+1|0;p=(l?-1:0)+d|0;if(h&1){J[g>>2]=J[g>>2]-(J[b+4>>2]+J[b>>2]>>1);g=g+4|0;h=h-1|0;f=b+4|0}else f=b;if((o|0)==(p|0))break j;while(1){J[g>>2]=J[g>>2]-(J[f+4>>2]+J[f>>2]>>1);J[g+4>>2]=J[g+4>>2]-(J[f+8>>2]+J[f+4>>2]>>1);g=g+8|0;f=f+8|0;o=h-3|0;h=h-2|0;if(o>>>0<4294967294)continue; +break}}h=(k|0)!=(n|0);if(!h)J[g>>2]=J[g>>2]-J[f>>2];if(!k){J[b>>2]=J[b>>2]+(J[j>>2]+1>>1);b=b+4|0}g=(i-!k|0)-h|0;k:{if((g|0)<=0)break k;if(g&1){J[b>>2]=J[b>>2]+((J[j>>2]+J[j+4>>2]|0)+2>>2);j=j+4|0;g=g-1|0;b=b+4|0}if(((i+(k?0:-1)|0)+(h?-1:0)|0)==1)break k;while(1){J[b>>2]=J[b>>2]+((J[j>>2]+J[j+4>>2]|0)+2>>2);J[b+4>>2]=J[b+4>>2]+((J[j+4>>2]+J[j+8>>2]|0)+2>>2);b=b+8|0;j=j+8|0;f=g-3|0;g=g-2|0;if(f>>>0<4294967294)continue;break}}if(l)break i;J[b>>2]=J[b>>2]+(J[j>>2]+1>>1);break i}if(!k)break i;J[b>>2]= +J[b>>2]<<1}a=a+m|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}return 0}function cCb(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;if((e|0)>0){k=b&1;o=f<<2;b=a;while(1){j=b;a:{if((d|0)>=2){m=(d-k|0)+1>>1;h=(m<<2)+b|0;g=b;if(!k){J[b>>2]=J[b>>2]-(J[h>>2]+1>>1);g=b+4|0}p=d&1;n=(p|0)!=(k|0);l=(m-!k|0)-n|0;b:{if((l|0)<=0){i=h;break b}q=(m+(k?0:-1)|0)+(n?-1:0)|0;if(l&1){J[g>>2]=J[g>>2]-((J[h>>2]+J[h+4>>2]|0)+2>>2);g=g+4|0;l=l-1|0;i=h+4|0}else i=h;if((q| +0)==1)break b;while(1){J[g>>2]=J[g>>2]-((J[i>>2]+J[i+4>>2]|0)+2>>2);J[g+4>>2]=J[g+4>>2]-((J[i+4>>2]+J[i+8>>2]|0)+2>>2);g=g+8|0;i=i+8|0;q=l-3|0;l=l-2|0;if(q>>>0<4294967294)continue;break}}l=(k|0)==(p|0);if(!l)J[g>>2]=J[g>>2]-(J[i>>2]+1>>1);if(k){J[h>>2]=J[h>>2]+J[j>>2];h=h+4|0}i=k+m|0;g=(d-i|0)-l|0;c:{if((g|0)<=0)break c;if(g&1){J[h>>2]=J[h>>2]+(J[j+4>>2]+J[j>>2]>>1);g=g-1|0;j=j+4|0;h=h+4|0}if((i+1|0)==((l?-1:0)+d|0))break c;while(1){J[h>>2]=J[h>>2]+(J[j+4>>2]+J[j>>2]>>1);J[h+4>>2]=J[h+4>>2]+(J[j+ +8>>2]+J[j+4>>2]>>1);h=h+8|0;j=j+8|0;i=g-3|0;g=g-2|0;if(i>>>0<4294967294)continue;break}}if(n)break a;J[h>>2]=J[h>>2]+J[j>>2];break a}if(!k)break a;J[j>>2]=J[j>>2]>>1}bba(b,d,k);b=b+o|0;r=r+1|0;if((r|0)!=(e|0))continue;break}}k=c&1;l=(d|0)/16<<4;if((d|0)>=16){m=0;while(1){b=a;d:{if((e|0)>=2){o=(e-k|0)+1>>1;c=(P(o,f)<<2)+b|0;g=b;if(!k){J[b>>2]=J[b>>2]-(J[c>>2]+1>>1);J[b+4>>2]=J[b+4>>2]-(J[c+4>>2]+1>>1);J[b+8>>2]=J[b+8>>2]-(J[c+8>>2]+1>>1);J[b+12>>2]=J[b+12>>2]-(J[c+12>>2]+1>>1);J[b+16>>2]=J[b+16>>2]- +(J[c+16>>2]+1>>1);J[b+20>>2]=J[b+20>>2]-(J[c+20>>2]+1>>1);J[b+24>>2]=J[b+24>>2]-(J[c+24>>2]+1>>1);J[b+28>>2]=J[b+28>>2]-(J[c+28>>2]+1>>1);J[b+32>>2]=J[b+32>>2]-(J[c+32>>2]+1>>1);J[b+36>>2]=J[b+36>>2]-(J[c+36>>2]+1>>1);J[b+40>>2]=J[b+40>>2]-(J[c+40>>2]+1>>1);J[b+44>>2]=J[b+44>>2]-(J[c+44>>2]+1>>1);J[b+48>>2]=J[b+48>>2]-(J[c+48>>2]+1>>1);J[b+52>>2]=J[b+52>>2]-(J[c+52>>2]+1>>1);J[b+56>>2]=J[b+56>>2]-(J[c+56>>2]+1>>1);J[b+60>>2]=J[b+60>>2]-(J[c+60>>2]+1>>1);g=(f<<2)+b|0}p=e&1;q=(p|0)!=(k|0);n=(o-!k|0)- +q|0;e:{if((n|0)<=0){j=c;break e}h=c;while(1){i=f<<2;j=i+h|0;J[g>>2]=J[g>>2]-((J[h>>2]+J[j>>2]|0)+2>>2);J[g+4>>2]=J[g+4>>2]-((J[h+4>>2]+J[i+(h+4|0)>>2]|0)+2>>2);J[g+8>>2]=J[g+8>>2]-((J[h+8>>2]+J[i+(h+8|0)>>2]|0)+2>>2);J[g+12>>2]=J[g+12>>2]-((J[h+12>>2]+J[i+(h+12|0)>>2]|0)+2>>2);J[g+16>>2]=J[g+16>>2]-((J[h+16>>2]+J[i+(h+16|0)>>2]|0)+2>>2);J[g+20>>2]=J[g+20>>2]-((J[h+20>>2]+J[i+(h+20|0)>>2]|0)+2>>2);J[g+24>>2]=J[g+24>>2]-((J[h+24>>2]+J[i+(h+24|0)>>2]|0)+2>>2);J[g+28>>2]=J[g+28>>2]-((J[h+28>>2]+J[i+(h+ +28|0)>>2]|0)+2>>2);J[g+32>>2]=J[g+32>>2]-((J[h+32>>2]+J[i+(h+32|0)>>2]|0)+2>>2);J[g+36>>2]=J[g+36>>2]-((J[h+36>>2]+J[i+(h+36|0)>>2]|0)+2>>2);J[g+40>>2]=J[g+40>>2]-((J[h+40>>2]+J[i+(h+40|0)>>2]|0)+2>>2);J[g+44>>2]=J[g+44>>2]-((J[h+44>>2]+J[i+(h+44|0)>>2]|0)+2>>2);J[g+48>>2]=J[g+48>>2]-((J[h+48>>2]+J[i+(h+48|0)>>2]|0)+2>>2);J[g+52>>2]=J[g+52>>2]-((J[h+52>>2]+J[i+(h+52|0)>>2]|0)+2>>2);J[g+56>>2]=J[g+56>>2]-((J[h+56>>2]+J[i+(h+56|0)>>2]|0)+2>>2);J[g+60>>2]=J[g+60>>2]-((J[h+60>>2]+J[i+(h+60|0)>>2]|0)+ +2>>2);g=g+i|0;i=n>>>0>1;n=n-1|0;h=j;if(i)continue;break}}h=(k|0)==(p|0);if(!h){J[g>>2]=J[g>>2]-(J[j>>2]+1>>1);J[g+4>>2]=J[g+4>>2]-(J[j+4>>2]+1>>1);J[g+8>>2]=J[g+8>>2]-(J[j+8>>2]+1>>1);J[g+12>>2]=J[g+12>>2]-(J[j+12>>2]+1>>1);J[g+16>>2]=J[g+16>>2]-(J[j+16>>2]+1>>1);J[g+20>>2]=J[g+20>>2]-(J[j+20>>2]+1>>1);J[g+24>>2]=J[g+24>>2]-(J[j+24>>2]+1>>1);J[g+28>>2]=J[g+28>>2]-(J[j+28>>2]+1>>1);J[g+32>>2]=J[g+32>>2]-(J[j+32>>2]+1>>1);J[g+36>>2]=J[g+36>>2]-(J[j+36>>2]+1>>1);J[g+40>>2]=J[g+40>>2]-(J[j+40>>2]+1>> +1);J[g+44>>2]=J[g+44>>2]-(J[j+44>>2]+1>>1);J[g+48>>2]=J[g+48>>2]-(J[j+48>>2]+1>>1);J[g+52>>2]=J[g+52>>2]-(J[j+52>>2]+1>>1);J[g+56>>2]=J[g+56>>2]-(J[j+56>>2]+1>>1);J[g+60>>2]=J[g+60>>2]-(J[j+60>>2]+1>>1)}if(k){J[c>>2]=J[c>>2]+J[b>>2];J[c+4>>2]=J[c+4>>2]+J[b+4>>2];J[c+8>>2]=J[c+8>>2]+J[b+8>>2];J[c+12>>2]=J[c+12>>2]+J[b+12>>2];J[c+16>>2]=J[c+16>>2]+J[b+16>>2];J[c+20>>2]=J[c+20>>2]+J[b+20>>2];J[c+24>>2]=J[c+24>>2]+J[b+24>>2];J[c+28>>2]=J[c+28>>2]+J[b+28>>2];J[c+32>>2]=J[c+32>>2]+J[b+32>>2];J[c+36>>2]= +J[c+36>>2]+J[b+36>>2];J[c+40>>2]=J[c+40>>2]+J[b+40>>2];J[c+44>>2]=J[c+44>>2]+J[b+44>>2];J[c+48>>2]=J[c+48>>2]+J[b+48>>2];J[c+52>>2]=J[c+52>>2]+J[b+52>>2];J[c+56>>2]=J[c+56>>2]+J[b+56>>2];J[c+60>>2]=J[c+60>>2]+J[b+60>>2];c=(f<<2)+c|0}h=(e-(k+o|0)|0)-h|0;f:{if((h|0)<=0){j=b;break f}g=f<<2;while(1){j=b+g|0;J[c>>2]=J[c>>2]+(J[j>>2]+J[b>>2]>>1);J[c+4>>2]=J[c+4>>2]+(J[g+(b+4|0)>>2]+J[b+4>>2]>>1);J[c+8>>2]=J[c+8>>2]+(J[g+(b+8|0)>>2]+J[b+8>>2]>>1);J[c+12>>2]=J[c+12>>2]+(J[g+(b+12|0)>>2]+J[b+12>>2]>>1);J[c+ +16>>2]=J[c+16>>2]+(J[g+(b+16|0)>>2]+J[b+16>>2]>>1);J[c+20>>2]=J[c+20>>2]+(J[g+(b+20|0)>>2]+J[b+20>>2]>>1);J[c+24>>2]=J[c+24>>2]+(J[g+(b+24|0)>>2]+J[b+24>>2]>>1);J[c+28>>2]=J[c+28>>2]+(J[g+(b+28|0)>>2]+J[b+28>>2]>>1);J[c+32>>2]=J[c+32>>2]+(J[g+(b+32|0)>>2]+J[b+32>>2]>>1);J[c+36>>2]=J[c+36>>2]+(J[g+(b+36|0)>>2]+J[b+36>>2]>>1);J[c+40>>2]=J[c+40>>2]+(J[g+(b+40|0)>>2]+J[b+40>>2]>>1);J[c+44>>2]=J[c+44>>2]+(J[g+(b+44|0)>>2]+J[b+44>>2]>>1);J[c+48>>2]=J[c+48>>2]+(J[g+(b+48|0)>>2]+J[b+48>>2]>>1);J[c+52>>2]= +J[c+52>>2]+(J[g+(b+52|0)>>2]+J[b+52>>2]>>1);J[c+56>>2]=J[c+56>>2]+(J[g+(b+56|0)>>2]+J[b+56>>2]>>1);J[c+60>>2]=J[c+60>>2]+(J[g+(b+60|0)>>2]+J[b+60>>2]>>1);c=c+g|0;i=h>>>0>1;h=h-1|0;b=j;if(i)continue;break}}if(q)break d;J[c>>2]=J[c>>2]+J[j>>2];J[c+4>>2]=J[c+4>>2]+J[j+4>>2];J[c+8>>2]=J[c+8>>2]+J[j+8>>2];J[c+12>>2]=J[c+12>>2]+J[j+12>>2];J[c+16>>2]=J[c+16>>2]+J[j+16>>2];J[c+20>>2]=J[c+20>>2]+J[j+20>>2];J[c+24>>2]=J[c+24>>2]+J[j+24>>2];J[c+28>>2]=J[c+28>>2]+J[j+28>>2];J[c+32>>2]=J[c+32>>2]+J[j+32>>2];J[c+ +36>>2]=J[c+36>>2]+J[j+36>>2];J[c+40>>2]=J[c+40>>2]+J[j+40>>2];J[c+44>>2]=J[c+44>>2]+J[j+44>>2];J[c+48>>2]=J[c+48>>2]+J[j+48>>2];J[c+52>>2]=J[c+52>>2]+J[j+52>>2];J[c+56>>2]=J[c+56>>2]+J[j+56>>2];J[c+60>>2]=J[c+60>>2]+J[j+60>>2];break d}if(!k)break d;J[b>>2]=J[b>>2]>>1;J[b+4>>2]=J[b+4>>2]>>1;J[b+8>>2]=J[b+8>>2]>>1;J[b+12>>2]=J[b+12>>2]>>1;J[b+16>>2]=J[b+16>>2]>>1;J[b+20>>2]=J[b+20>>2]>>1;J[b+24>>2]=J[b+24>>2]>>1;J[b+28>>2]=J[b+28>>2]>>1;J[b+32>>2]=J[b+32>>2]>>1;J[b+36>>2]=J[b+36>>2]>>1;J[b+40>>2]=J[b+ +40>>2]>>1;J[b+44>>2]=J[b+44>>2]>>1;J[b+48>>2]=J[b+48>>2]>>1;J[b+52>>2]=J[b+52>>2]>>1;J[b+56>>2]=J[b+56>>2]>>1;J[b+60>>2]=J[b+60>>2]>>1}aba(a,e,f,k);a=a- -64|0;m=m+16|0;if((l|0)>(m|0))continue;break}}if((d|0)>(l|0)){b=a;i=d-l|0;j=f;d=0;g=e;g:{if((g|0)>=2){o=(g-k|0)+1>>1;c=(P(o,j)<<2)+b|0;h=b;if(!k){h:{if((i|0)<=0)break h;e=c;d=b;if(i-1>>>0>=3){f=i&-4;h=0;while(1){J[d>>2]=J[d>>2]-(J[e>>2]+1>>1);J[d+4>>2]=J[d+4>>2]-(J[e+4>>2]+1>>1);J[d+8>>2]=J[d+8>>2]-(J[e+8>>2]+1>>1);J[d+12>>2]=J[d+12>>2]-(J[e+12>> +2]+1>>1);e=e+16|0;d=d+16|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}f=i&3;if(!f)break h;h=0;while(1){J[d>>2]=J[d>>2]-(J[e>>2]+1>>1);e=e+4|0;d=d+4|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}h=(j<<2)+b|0}p=g&1;q=(p|0)!=(k|0);l=(o-!k|0)-q|0;i:{j:{if((l|0)<=0){f=c;break j}if((i|0)<=0){l=0;break i}r=i&-2;s=i&1;n=j<<2;f=c;while(1){m=0;d=f;e=h;if((i|0)!=1)while(1){J[e>>2]=J[e>>2]-((J[d>>2]+J[d+n>>2]|0)+2>>2);J[e+4>>2]=J[e+4>>2]-((J[d+4>>2]+J[n+(d+4|0)>>2]|0)+2>>2);d=d+8|0;e=e+8|0;m=m+2|0;if((r|0)!=(m|0))continue; +break}if(s)J[e>>2]=J[e>>2]-((J[d>>2]+J[d+n>>2]|0)+2>>2);f=f+n|0;h=h+n|0;d=(l|0)>1;l=l-1|0;if(d)continue;break}}l=(i|0)>0;if((k|0)==(p|0)|(i|0)<=0)break i;if(i-1>>>0>=3){e=i&-4;d=0;while(1){J[h>>2]=J[h>>2]-(J[f>>2]+1>>1);J[h+4>>2]=J[h+4>>2]-(J[f+4>>2]+1>>1);J[h+8>>2]=J[h+8>>2]-(J[f+8>>2]+1>>1);J[h+12>>2]=J[h+12>>2]-(J[f+12>>2]+1>>1);f=f+16|0;h=h+16|0;d=d+4|0;if((e|0)!=(d|0))continue;break}}e=i&3;if(!e)break i;d=0;while(1){J[h>>2]=J[h>>2]-(J[f>>2]+1>>1);f=f+4|0;h=h+4|0;d=d+1|0;if((e|0)!=(d|0))continue; +break}}if(k){k:{if(!l)break k;d=c;e=b;if(i-1>>>0>=3){f=i&-4;h=0;while(1){J[d>>2]=J[d>>2]+J[e>>2];J[d+4>>2]=J[d+4>>2]+J[e+4>>2];J[d+8>>2]=J[d+8>>2]+J[e+8>>2];J[d+12>>2]=J[d+12>>2]+J[e+12>>2];e=e+16|0;d=d+16|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}f=i&3;if(!f)break k;h=0;while(1){J[d>>2]=J[d>>2]+J[e>>2];e=e+4|0;d=d+4|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}c=(j<<2)+c|0}h=(g-(k+o|0)|0)-((k|0)==(p|0))|0;if((h|0)>0){if(!l)break g;n=i&-2;o=i&1;f=j<<2;while(1){m=0;d=c;e=b;if((i|0)!=1)while(1){J[d>>2]= +J[d>>2]+(J[e+f>>2]+J[e>>2]>>1);J[d+4>>2]=J[d+4>>2]+(J[f+(e+4|0)>>2]+J[e+4>>2]>>1);d=d+8|0;e=e+8|0;m=m+2|0;if((n|0)!=(m|0))continue;break}if(o)J[d>>2]=J[d>>2]+(J[e+f>>2]+J[e>>2]>>1);b=b+f|0;c=c+f|0;d=(h|0)>1;h=h-1|0;if(d)continue;break}}if(q|l^1)break g;if(i-1>>>0>=3){e=i&-4;d=0;while(1){J[c>>2]=J[c>>2]+J[b>>2];J[c+4>>2]=J[c+4>>2]+J[b+4>>2];J[c+8>>2]=J[c+8>>2]+J[b+8>>2];J[c+12>>2]=J[c+12>>2]+J[b+12>>2];c=c+16|0;b=b+16|0;d=d+4|0;if((e|0)!=(d|0))continue;break}}e=i&3;if(!e)break g;d=0;while(1){J[c>> +2]=J[c>>2]+J[b>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((e|0)!=(d|0))continue;break}break g}if(!k|(i|0)<=0)break g;if(i-1>>>0>=3){c=i&-4;while(1){J[b>>2]=J[b>>2]>>1;J[b+4>>2]=J[b+4>>2]>>1;J[b+8>>2]=J[b+8>>2]>>1;J[b+12>>2]=J[b+12>>2]>>1;b=b+16|0;d=d+4|0;if((c|0)!=(d|0))continue;break}}c=i&3;if(!c)break g;d=0;while(1){J[b>>2]=J[b>>2]>>1;b=b+4|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}$aa(a,g,i,j,k)}return 0}function BUa(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,u=0,w=0,y=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0;i=fc-800|0;fc=i;a:{b:{c:{d:{e:{j=J[a+4>>2];if((j|0)>0){while(1){h=f<<3;if(O[h+b>>3]!=O[(a+h|0)+1064>>3])break e;f=f+1|0;if((j|0)!=(f|0))continue;break}break d}if(!j)break d;break b}if((f|0)!=(j|0))break c}h=J[a+8>>2];if((h|0)<=0)break a;b=0;if(h>>>0>=4){k=h&-4;f=a+1320|0;while(1){j=b<<3;O[j+c>>3]=O[f+j>>3];l=j|8;O[l+c>>3]=O[f+l>>3];l=j|16;O[l+c>>3]=O[f+l>>3];j=j|24;O[j+c>>3]=O[f+j>>3];b=b+4|0;e=e+4|0;if((k|0)!=(e|0))continue;break}}e=h&3;if(!e)break a; +while(1){f=b<<3;O[f+c>>3]=O[(a+f|0)+1320>>3];b=b+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}break a}if((j|0)<=0)break b;f=0;if(j>>>0>=4){h=j&-4;while(1){O[(99-f<<3)+i>>3]=O[(f<<3)+b>>3];k=f|1;O[(99-k<<3)+i>>3]=O[(k<<3)+b>>3];k=f|2;O[(99-k<<3)+i>>3]=O[(k<<3)+b>>3];k=f|3;O[(99-k<<3)+i>>3]=O[(k<<3)+b>>3];f=f+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}e=j&3;if(!e)break b;while(1){O[(99-f<<3)+i>>3]=O[(f<<3)+b>>3];f=f+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}d=100-j|0;t=fc-800|0;fc=t;C=J[a+1052>>2]; +f:{if((C|0)<=0)break f;D=i-8|0;r=J[a+1048>>2];j=0;g:{while(1){h:{e=j;j=e+1|0;i:{j:switch(J[(e<<4)+r>>2]){case 0:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=R(O[e>>3]);break i;case 1:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]+O[e+i>>3];break i;case 2:if((d|0)>98)break h;g=O[(d<<3)+i>>3];k:{if(R(g)<2147483648){e=~~g;break k}e=-2147483648}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];l:{if(R(g)<2147483648){f=~~g;break l}f=-2147483648}O[h>>3]=e&f;break i;case 3:if((d|0)>98)break h;e=d<<3;d=d+1|0;f= +(d<<3)+i|0;I=f,K=qf(O[f>>3],O[e+i>>3]),O[I>>3]=K;break i;case 4:if((d|0)>98)break h;e=d+1|0;g=O[(d<<3)+i>>3];m:{if(R(g)<2147483648){d=~~g;break m}d=-2147483648}k=(d|0)<=0;h=(e<<3)+i|0;g=O[h>>3];n:{if(R(g)<2147483648){f=~~g;break n}f=-2147483648}if(!k){O[h>>3]=f<>3]=f>>0-d;d=e;break i}O[h>>3]=f|0;d=e;break i;case 5:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=W(O[e>>3]);break i;case 6:f=811863;if((d|0)>99)break g;e=d+1|0;g=O[(d<<3)+i>>3];o:{if(R(g)<2147483648){h=~~g;break o}h= +-2147483648}if((h|0)<0){f=815506;d=e;break g}if((e+h|0)>100){d=e;break g}d=e-h|0;if((d|0)<0){f=815257;d=e;break g}if(!h)break i;k=(d<<3)+i|0;l=(e<<3)+i|0;e=0;f=0;if(h>>>0>=4){s=h&-4;m=0;while(1){o=f<<3;O[o+k>>3]=O[l+o>>3];q=o|8;O[q+k>>3]=O[l+q>>3];q=o|16;O[q+k>>3]=O[l+q>>3];o=o|24;O[o+k>>3]=O[l+o>>3];f=f+4|0;m=m+4|0;if((s|0)!=(m|0))continue;break}}h=h&3;if(!h)break i;while(1){m=f<<3;O[m+k>>3]=O[l+m>>3];f=f+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break i;case 7:if((d|0)>99)break h;e=(d<<3)+i|0; +I=e,K=Me(O[e>>3]),O[I>>3]=K;break i;case 8:if((d|0)>99)break h;f=(d<<3)+i|0;g=O[f>>3];p:{if(R(g)<2147483648){e=~~g;break p}e=-2147483648}O[f>>3]=e|0;break i;case 9:if((d|0)>99)break h;break i;case 10:if((d|0)>98)break h;g=O[(d<<3)+i>>3];if(g==0){f=815506;break g}d=d+1|0;e=(d<<3)+i|0;O[e>>3]=O[e>>3]/g;break i;case 11:if((d|0)>99)break h;if((d|0)<=0){f=815257;break g}e=(d<<3)+i|0;O[e-8>>3]=O[e>>3];d=d-1|0;break i;case 12:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]==O[e+i>>3]?1:0; +break i;case 13:if((d|0)>98)break h;e=(d<<3)+i|0;g=O[e+8>>3];O[e+8>>3]=O[e>>3];O[e>>3]=g;break i;case 14:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;I=f,K=_e(O[f>>3],O[e+i>>3]),O[I>>3]=K;break i;case 15:if((d|0)<=0){f=815257;break g}e=(d<<3)+D|0;J[e>>2]=0;J[e+4>>2]=0;d=d-1|0;break i;case 16:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=V(O[e>>3]);break i;case 17:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]>=O[e+i>>3]?1:0;break i;case 18:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+ +i|0;O[f>>3]=O[f>>3]>O[e+i>>3]?1:0;break i;case 19:if((d|0)>98)break h;g=O[(d<<3)+i>>3];q:{if(R(g)<2147483648){e=~~g;break q}e=-2147483648}if(!e){f=815506;break g}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];r:{if(R(g)<2147483648){f=~~g;break r}f=-2147483648}O[h>>3]=(f|0)/(e|0)|0;break i;case 20:f=811863;if((d|0)>99)break g;h=(d<<3)+i|0;g=O[h>>3];s:{if(R(g)<2147483648){e=~~g;break s}e=-2147483648}if((e|0)<0){f=815506;break g}e=(d+e|0)+1|0;if((e|0)>99)break g;O[h>>3]=O[(e<<3)+i>>3];break i;case 21:if((d|0)>98)break h; +e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]<=O[e+i>>3]?1:0;break i;case 22:if((d|0)>99)break h;e=(d<<3)+i|0;I=e,K=ct(O[e>>3]),O[I>>3]=K;break i;case 23:if((d|0)>99)break h;e=(d<<3)+i|0;l=e;g=O[e>>3];A(+g);e=v(1)|0;h=v(0)|0;t:{u:{v:{w:{if(!(((e|0)>0|(e|0)>=0)&e>>>0>1048575)){A(+g);f=v(1)|0;p=-1/(g*g);if(!(v(0)|f&2147483647))break t;if((e|0)>0|(e|0)>=0)break w;p=(g-g)/0;break t}if(e>>>0>2146435071)break u;f=1072693248;k=-1023;if((e|0)!=1072693248){f=e;break v}if(h)break v;p=0;break t}A(+(g*0x40000000000000)); +e=v(1)|0;h=v(0)|0;f=e;k=-1077}e=f+614242|0;E=+((e>>>20|0)+k|0);u=E*.30102999566361177;x(0,h|0);x(1,(e&1048575)+1072079006|0);n=+z()+-1;w=n*(n*.5);y=n/(n+2);B=y*y;g=B*B;A(+(n-w));e=v(1)|0;v(0)|0;x(0,0);x(1,e|0);p=+z();F=p*.4342944818781689;G=u+F;g=y*(w+(g*(g*(g*.15313837699209373+.22222198432149784)+.3999999999940942)+B*(g*(g*(g*.14798198605116586+.1818357216161805)+.2857142874366239)+.6666666666666735)))+(n-p-w);g=G+(F+(u-G)+(g*.4342944818781689+(E*3.694239077158931E-13+(g+p)*2.5082946711645275E-11)))}p= +g}O[l>>3]=p;break i;case 24:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]>3]?1:0;break i;case 25:if((d|0)>98)break h;g=O[(d<<3)+i>>3];x:{if(R(g)<2147483648){e=~~g;break x}e=-2147483648}if(!e){f=815506;break g}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];y:{if(R(g)<2147483648){f=~~g;break y}f=-2147483648}O[h>>3]=(f|0)%(e|0)|0;break i;case 26:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]*O[e+i>>3];break i;case 27:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>> +3]!=O[e+i>>3]?1:0;break i;case 28:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=-O[e>>3];break i;case 29:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=O[e>>3]==0?1:0;break i;case 30:if((d|0)>98)break h;g=O[(d<<3)+i>>3];z:{if(R(g)<2147483648){e=~~g;break z}e=-2147483648}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];A:{if(R(g)<2147483648){f=~~g;break A}f=-2147483648}O[h>>3]=e|f;break i;case 31:if((d|0)>99)break h;d=d+1|0;break i;case 32:f=811863;if((d|0)>98)break g;h=(d<<3)+i|0;g=O[h+8>>3];B:{if(R(g)<2147483648){e=~~g;break B}e= +-2147483648}k=(e|0)<0;g=O[h>>3];C:{if(R(g)<2147483648){h=~~g;break C}h=-2147483648}d=d+2|0;if(k){f=815506;break g}if(!e)break i;if((d+e|0)>100)break g;if((h|0)>=0)h=(h>>>0)%(e>>>0)|0;else{f=(0-h>>>0)%(e>>>0)|0;h=f?e-f|0:0}k=(d<<3)+i|0;l=xc(t,k,e<<3);f=0;if((e|0)!=1){o=e&-2;m=0;while(1){O[k+(f<<3)>>3]=O[l+((f+h|0)%(e|0)<<3)>>3];s=f|1;O[k+(s<<3)>>3]=O[l+((h+s|0)%(e|0)<<3)>>3];f=f+2|0;m=m+2|0;if((o|0)!=(m|0))continue;break}}if(!(e&1))break i;O[k+(f<<3)>>3]=O[l+((f+h|0)%(e|0)<<3)>>3];break i;case 33:if((d| +0)>99)break h;e=(d<<3)+i|0;g=O[e>>3];O[e>>3]=g>=0?V(g+.5):W(g+-.5);break i;case 34:if((d|0)>99)break h;e=(d<<3)+i|0;I=e,K=Ee(O[e>>3]),O[I>>3]=K;break i;case 35:if((d|0)>99)break h;e=(d<<3)+i|0;O[e>>3]=Y(O[e>>3]);break i;case 36:if((d|0)>98)break h;e=d<<3;d=d+1|0;f=(d<<3)+i|0;O[f>>3]=O[f>>3]-O[e+i>>3];break i;case 37:if((d|0)<=0){f=815257;break g}e=(d<<3)+D|0;J[e>>2]=0;J[e+4>>2]=1072693248;d=d-1|0;break i;case 38:if((d|0)>99)break h;e=(d<<3)+i|0;g=O[e>>3];O[e>>3]=g>=0?V(g):W(g);break i;case 39:if((d| +0)>98)break h;g=O[(d<<3)+i>>3];D:{if(R(g)<2147483648){e=~~g;break D}e=-2147483648}d=d+1|0;h=(d<<3)+i|0;g=O[h>>3];E:{if(R(g)<2147483648){f=~~g;break E}f=-2147483648}O[h>>3]=e^f;break i;case 40:if((d|0)<=0){f=815257;break g}d=d-1|0;O[(d<<3)+i>>3]=O[((e<<4)+r|0)+8>>3];break i;case 41:j=J[((e<<4)+r|0)+8>>2];break i;case 42:break j;default:break i}if((d|0)>99)break h;g=O[(d<<3)+i>>3];F:{if(R(g)<2147483648){f=~~g;break F}f=-2147483648}d=d+1|0;if(f)break i;j=J[((e<<4)+r|0)+8>>2]}if((j|0)<(C|0))continue; +break f}break}f=811863}Cc(1,-1,f,0)}fc=t+800|0;e=d;d=J[a+8>>2];if((e|0)>(100-d|0)){Cc(1,-1,811863,0);d=J[a+8>>2];e=100-d|0}f=0;if((d|0)>0)while(1){g=O[(((f^-1)+e|0)+d<<3)+i>>3];h=(f<<4)+a|0;n=O[h+528>>3];G:{if(g>3]=n;break G}j=(f<<3)+c|0;n=O[h+536>>3];if(n>3]=n;break G}O[j>>3]=g}f=f+1|0;if((f|0)!=(d|0))continue;break}k=J[a+4>>2];H:{if((k|0)<=0)break H;j=0;f=0;if(k>>>0>=4){l=k&-4;e=a+1064|0;while(1){h=f<<3;O[h+e>>3]=O[b+h>>3];m=h|8;O[m+e>>3]=O[b+m>>3];m=h|16;O[m+e>>3]=O[b+m>> +3];h=h|24;O[h+e>>3]=O[b+h>>3];f=f+4|0;H=H+4|0;if((l|0)!=(H|0))continue;break}}e=k&3;if(!e)break H;while(1){h=f<<3;O[(h+a|0)+1064>>3]=O[b+h>>3];f=f+1|0;j=j+1|0;if((e|0)!=(j|0))continue;break}}if((d|0)<=0)break a;h=d&3;e=0;b=0;if(d>>>0>=4){k=d&-4;f=a+1320|0;d=0;while(1){j=b<<3;O[j+f>>3]=O[c+j>>3];l=j|8;O[l+f>>3]=O[c+l>>3];l=j|16;O[l+f>>3]=O[c+l>>3];j=j|24;O[j+f>>3]=O[c+j>>3];b=b+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}if(!h)break a;while(1){d=b<<3;O[(d+a|0)+1320>>3]=O[c+d>>3];b=b+1|0;e=e+1|0;if((h| +0)!=(e|0))continue;break}}fc=i+800|0}function IDa(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;i=fc-32|0;fc=i;e=J[a+20>>2];a:{b:{c:{d:{e:{if(J[a+16>>2]){f=a+12|0;J[i+28>>2]=f;J[i+24>>2]=e;if(!e)break c;f=J[J[e+8>>2]+8>>2]!=0;break e}f=1;if(!e)break d}while(1){if(!(!J[J[e+8>>2]+8>>2]^f)){b=Qc(i,2393397,2389596,407,2398177,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}e=J[e>>2];if(e)continue;break}}d=fc+-64|0;fc=d;j=f;h=J[b>>2];Gn(h,f?129:1);jw(h,J[a+ +16>>2]);f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!J[a+16>>2])break n;o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{f=J[a+20>>2];B:{if(!f)break B;e=f;while(1){g=((K[J[e+8>>2]+52|0]&63)==3)+g|0;e=J[e>>2];if(e)continue;break}if(g>>>0>=2){J[699344]=0;b=ja(5178,d+36|0,2393941,2389596,436,2398240,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break l;break a}if(!f|!j)break B;while(1){e=J[f+8>>2];J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;C:{D:{if((e| +0)!=1){k=J[f+8>>2];J[d+16>>2]=k;e=J[k+8>>2];if(e)break C;J[699344]=0;b=ja(5178,d+36|0,2393397,2389596,450,2398240,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break D;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break l;e=Z()|0;Kc(b);break z}break h}e=Z()|0;break z}J[699344]=0;da(5301,h|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break A;J[699344]=0;g=J[k+4>>2]-1|0;J[k+4>>2]=g;e=J[699344];J[699344]=0;if((e|0)==1)break g;if(!g){J[699344]=0;$(5147,k|0);e=J[699344];J[699344]=0;if((e|0)==1)break g}f= +J[f>>2];if(f)continue;break}}e=0;f=J[b>>2];if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break h;e=J[b>>2]}J[699344]=0;J[d+28>>2]=e;ca(5302,d+32|0,d+28|0,50);b=J[699344];J[699344]=0;if((b|0)==1)break y;e=J[d+28>>2];J[d+28>>2]=0;E:{if(!e)break E;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;b=J[699344];J[699344]=0;if((b|0)==1)break g;if(f)break E;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}h=J[d+32>>2];e=J[a+20>>2];b=h;if(!e)break o;while(1){b=J[e+8>> +2];J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break v;g=J[e+8>>2];J[d+36>>2]=g;b=J[g+12>>2];J[699344]=0;da(5303,h|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break x;J[699344]=0;f=J[g+4>>2]-1|0;J[g+4>>2]=f;b=J[699344];J[699344]=0;if((b|0)==1)break g;if(!f){J[699344]=0;$(5147,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}e=J[e>>2];if(e)continue;break}f=J[a+20>>2];if(!f)break p;j=j^1|c;break w}e=Z()|0}zc(d+16|0);ba(e|0);B()}a=Z()|0;zc(d+28|0);ba(a|0);B()}e=Z()|0;zc(d+36| +0);break i}F:{while(1){e=0;b=J[f+8>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break t;e=J[f+8>>2]}J[d+8>>2]=e;G:{H:{if(!j){I:{b=J[e+20>>2];if(!(!b|!J[b+8>>2])){J[699344]=0;c=ga(5287,e+20|0,e+36|0,-1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break u;e=J[d+8>>2];if(c)break I}H[e+52|0]=K[e+52|0]&127;break H}H[e+52|0]=K[e+52|0]|128;break H}J[d+36>>2]=0;J[d+40>>2]=J[685894];c=J[e+20>>2];J:{if(!c){J[d+16>>2]=0;break J}b=J[J[c>>2]+28>>2];J[699344]=0;ca(b|0,d+16|0,c|0,1); +b=J[699344];J[699344]=0;if((b|0)==1)break G}J[699344]=0;aa(5153,d+36|0,d+16|0)|0;b=J[699344];J[699344]=0;K:{if((b|0)!=1){g=J[d+16>>2];J[d+16>>2]=0;if(!g)break K;J[699344]=0;c=J[g+4>>2]-1|0;J[g+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)!=1){if(c)break K;J[699344]=0;$(5147,g|0);b=J[699344];J[699344]=0;if((b|0)!=1)break K}break g}e=Z()|0;zc(d+16|0);break s}b=J[d+36>>2];J[d+40>>2]=J[(b?b+12|0:2743576)>>2];L:{if(b)break L;M:{b=J[e+28>>2];if(!(!b|!J[b+8>>2])){J[699344]=0;c=ga(5287,e+28|0,d+36|0,-1)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break F;e=J[d+8>>2];if(c)break M}H[e+52|0]=K[e+52|0]&127;break L}H[e+52|0]=K[e+52|0]|128}wc(d+36|0)}N:{O:{b=J[e+44>>2];if(!b|!J[b+8>>2])break O;J[699344]=0;c=ga(5287,e+44|0,e+36|0,-1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break u;e=J[d+8>>2];if(!c)break O;b=K[e+52|0]|64;break N}b=K[e+52|0]&-65}H[e+52|0]=b;J[699344]=0;da(5304,h|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;J[d+8>>2]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break g;if(!c){J[699344]= +0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}f=J[f>>2];if(!f)break q;continue}break}e=Z()|0;break s}e=Z()|0;wc(d+36|0);break r}e=Z()|0;break i}e=Z()|0;break r}e=Z()|0;break i}wc(d+36|0)}zc(d+8|0);break i}f=J[a+20>>2];if(!f)break p;while(1){e=0;P:{Q:{R:{S:{T:{U:{a=J[f+8>>2];if(a){J[699344]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break U;e=J[f+8>>2]}J[d+24>>2]=e;J[d+36>>2]=0;a=J[685894];J[d+40>>2]=a;J[d+20>>2]=a;J[d+16>>2]=0;J[d+12>>2]=a;J[d+8>>2]=0;if(!j)break R;b= +J[e+20>>2];V:{if(b){a=J[J[b>>2]+28>>2];J[699344]=0;ca(a|0,d+60|0,b|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break V;break k}J[d+60>>2]=0}J[699344]=0;aa(5153,d+36|0,d+60|0)|0;a=J[699344];J[699344]=0;W:{if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break W;J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)!=1){if(b)break W;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break W}break g}e=Z()|0;zc(d+60|0);break j}a=J[d+36>>2];J[d+40>>2]=J[(a?a+12|0:2743576)>>2];if(a)break S; +b=J[e+36>>2];X:{if(b){a=J[J[b>>2]+28>>2];J[699344]=0;ca(a|0,d+60|0,b|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break X;break k}J[d+60>>2]=0}J[699344]=0;aa(5153,d+36|0,d+60|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break T;J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)!=1){if(b)break T;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break T}break g}e=Z()|0;zc(d+60|0);break j}e=Z()|0;break i}a=J[d+36>>2];J[d+40>>2]=J[(a?a+12|0:2743576)>> +2]}if(H[e+52|0]>=0)break P;b=J[e+28>>2];Y:{if(b){a=J[J[b>>2]+28>>2];J[699344]=0;ca(a|0,d+60|0,b|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break Y;break k}J[d+60>>2]=0}J[699344]=0;aa(5153,d+16|0,d+60|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break Q;J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)!=1){if(b)break Q;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Q}break g}e=Z()|0;zc(d+60|0);break j}b=J[e+36>>2];Z:{if(b){a=J[J[b>> +2]+28>>2];J[699344]=0;ca(a|0,d+60|0,b|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break Z;break k}J[d+60>>2]=0}J[699344]=0;aa(5153,d+36|0,d+60|0)|0;a=J[699344];J[699344]=0;_:{if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break _;J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)!=1){if(b)break _;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break _}break g}e=Z()|0;zc(d+60|0);break j}a=J[d+36>>2];J[d+40>>2]=J[(a?a+12|0:2743576)>>2];if(H[e+52|0]>=0)break P;b=J[e+20>> +2];$:{if(b){a=J[J[b>>2]+28>>2];J[699344]=0;ca(a|0,d+60|0,b|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break k;break $}J[d+60>>2]=0}J[699344]=0;aa(5153,d+16|0,d+60|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break Q;J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)!=1){if(b)break Q;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break Q}break g}e=Z()|0;zc(d+60|0);break j}a=J[d+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2]}if(K[e+52|0]&64){b= +J[e+44>>2];aa:{if(b){a=J[J[b>>2]+28>>2];J[699344]=0;ca(a|0,d+60|0,b|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break k;break aa}J[d+60>>2]=0}J[699344]=0;aa(5153,d+8|0,d+60|0)|0;a=J[699344];J[699344]=0;ba:{if((a|0)!=1){c=J[d+60>>2];J[d+60>>2]=0;if(!c)break ba;J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)!=1){if(b)break ba;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break ba}break g}e=Z()|0;zc(d+60|0);break j}a=J[d+8>>2];J[d+12>>2]=J[(a?a+12|0:2743576)>>2]}J[699344]= +0;aa(5228,h|0,d+36|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;da(5304,h|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break k;a=J[d+16>>2];if(!(!a|!J[a+8>>2])){J[699344]=0;aa(5228,h|0,d+16|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;da(5304,h|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break k}a=J[d+8>>2];if(!(!a|!J[a+8>>2])){J[699344]=0;aa(5228,h|0,d+8|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;da(5304,h|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break k}wc(d+ +8|0);wc(d+16|0);wc(d+36|0);J[d+24>>2]=0;J[699344]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)==1)break g;if(!b){J[699344]=0;$(5147,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break g}f=J[f>>2];if(f)continue;break}}b=J[d+32>>2]}J[d+32>>2]=0;if(!b)break n;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[699344];J[699344]=0;if((a|0)==1)break m;if(c)break n;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break m}fc=d- -64|0;break f}ea(0)|0;Bc()}B()}e=Z()|0}wc(d+8|0);wc(d+16|0); +wc(d+36|0);zc(d+24|0)}zc(d+32|0);ba(e|0);B()}ba(Z()|0);B()}ea(0)|0;Bc();B()}fc=i+32|0;return}xj(i+24|0,f)}B()}a=Z()|0;Kc(b);ba(a|0);B()}function jmb(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;g=fc-144|0;fc=g;e=I[b+2>>1];if(!(!e|!L[b>>1])){Ac(g+12|0,0,128);t=J[c>>2];J[g+28>>2]=t;i=e;e=g+140|0;v=g,w=_c(t,40,0,i,0,e),J[v+20>>2]=w;l=J[g+140>>2];a:{if(l)break a;f=_c(t,8,0,I[b>>1],0,e);J[g+24>>2]=f;l=J[g+140>>2];if(l)break a;q=I[b+2>> +1];J[g+12>>2]=q;m=I[b>>1];J[g+16>>2]=m;o=J[g+20>>2];if(m){r=J[b+12>>2];l=0;while(1){u=I[r+(l<<1)>>1];n=o+P(j,40)|0;J[f>>2]=n;p=u+1|0;h=p-j|0;J[f+4>>2]=h;if(h){J[n>>2]=o+P(u,40);J[n+8>>2]=f;i=n;b:{if((h|0)==1)break b;k=0;e=i;s=u-j&3;if(s)while(1){J[e+48>>2]=f;i=e+40|0;J[e+4>>2]=i;J[e+40>>2]=e;h=h-1|0;e=i;k=k+1|0;if((s|0)!=(k|0))continue;break}if((j^-1)+u>>>0<3)break b;while(1){J[e+48>>2]=f;i=e+40|0;J[e+4>>2]=i;J[e+88>>2]=f;J[e+80>>2]=i;i=e+80|0;J[e+44>>2]=i;J[e+128>>2]=f;J[e+120>>2]=i;i=e+120|0;J[e+ +84>>2]=i;J[e+168>>2]=f;J[e+160>>2]=i;i=e+160|0;J[e+124>>2]=i;J[e+40>>2]=e;e=i;h=h-4|0;if(h>>>0>1)continue;break}}J[i+4>>2]=n}f=f+8|0;j=p;l=l+1|0;if((m|0)!=(l|0))continue;break}}c:{if(!q){J[g+36>>2]=c;J[g+32>>2]=b;break c}q=J[b+4>>2];f=0;e=o;while(1){n=(J[e+4>>2]-o|0)/40|0;i=(J[e>>2]-o|0)/40|0;if(!(H[J[b+8>>2]+f|0]&1))J[e+12>>2]=1;h=q+(f<<3)|0;k=J[h+4>>2];i=q+(i<<3)|0;r=k-J[i+4>>2]|0;j=r>>31;p=J[h>>2];s=p-J[i>>2]|0;i=s>>31;i=(i^s)-i|0;j=(j^r)-j|0;h=(s|0)>=0?2:-2;d:{if(i>>>0>P(j,12)>>>0)break d;h=4; +if(j>>>0<=P(i,12)>>>0)break d;h=(r|0)>=0?-1:1}H[e+20|0]=h;i=q+(n<<3)|0;n=J[i+4>>2]-k|0;j=n>>31;k=J[i>>2]-p|0;i=k>>31;i=(i^k)-i|0;p=(j^n)-j|0;j=(k|0)>=0?2:-2;e:{if(i>>>0>P(p,12)>>>0)break e;j=4;if(p>>>0<=P(i,12)>>>0)break e;j=(n|0)>=0?-1:1}H[e+21|0]=j;i=J[e+12>>2];f:{g:{if(i&1)break g;if((h|0)!=(j|0))break f;if((j|0)!=4)break g;if(!l8(s,r,k,n))break f;i=J[e+12>>2]}J[e+12>>2]=i|2}e=e+40|0;f=f+1|0;i=J[g+12>>2];if(f>>>0>>0)continue;break}J[g+36>>2]=c;J[g+32>>2]=b;if(!i)break c;f=J[b+4>>2];e=J[g+20>> +2];b=i&3;h:{if(!b){h=i;break h}k=0;h=i;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];J[e+32>>2]=J[f+4>>2];f=f+8|0;e=e+40|0;h=h-1|0;k=k+1|0;if((b|0)!=(k|0))continue;break}}if(i>>>0<4)break c;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];b=J[f+4>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=b;J[e+68>>2]=J[f+8>>2];b=J[f+12>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=b;J[e+108>>2]=J[f+16>>2];b=J[f+20>>2];J[e+144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=b;J[e+148>>2]=J[f+24>>2];J[e+152>>2]=J[f+28>>2]; +f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}}if(J[g+16>>2]){m=0;while(1){b=J[g+24>>2]+(m<<3)|0;i:{if(M[b+4>>2]<4)break i;b=J[b>>2];e=b;while(1){e=J[e+4>>2];if((b|0)==(e|0))break i;f=J[e+28>>2];j=J[b+28>>2];h=J[b+32>>2];i=J[e+32>>2];if((f|0)==(j|0)&(h|0)==(i|0))continue;break}n=i-h|0;k=f-j|0;j=b;while(1){p=j;j=J[j>>2];if((b|0)==(j|0))break i;f=J[p+28>>2]-J[j+28>>2]|0;h=J[p+32>>2]-J[j+32>>2]|0;if(!(f|h))continue;i=m8(k,n,f,h);if(!i)continue;break}b=p;while(1){q=i;r=h;s=f;l=b;j=0;while(1){i=J[e+32>> +2];k=J[e+28>>2];while(1){b=e;e=J[e+4>>2];o=J[e+32>>2];h=o-i|0;n=J[e+28>>2];f=n-k|0;j=(e|0)==(p|0)?1:j;i=o;k=n;if(!(f|h))continue;break}i=m8(s,r,f,h);if(!i)continue;break}if((i^q)<0){while(1){J[l+12>>2]=J[l+12>>2]|4;l=J[l+4>>2];if((l|0)!=(b|0))continue;break}J[b+12>>2]=J[b+12>>2]|4}if(!j)continue;break}}m=m+1|0;if(m>>>0>2])continue;break}}l=$6(g+40|0,a+16|0,a+28|0,t);J[g+140>>2]=l;if(l)break a;l=$6(g+80|0,a+52|0,a- -64|0,t);if(l)break a;a=J[g+36>>2];n=J[a+200>>2];p=c+416|0;q=J[a+404>>2];i= +Wc(J[p>>2],q);a=i+32&-64;r=!a|(a|0)==(i|0);if(!r){e=Od(q,a,i);$M(J[g+36>>2],(a|0)<(i|0)?n+((n|0)/-50|0)|0:n,e,0,0)}I[g+132>>1]=257;H[g+136|0]=(d|0)!=1;H[g+135|0]=(d|0)==2|(d|0)==4;H[g+134|0]=(d&-2)==2;s=c+932|0;l=1;i=0;while(1){j=J[g+12>>2];j:{if(!j)break j;f=J[J[g+32>>2]+4>>2];e=J[g+20>>2];if(!(l&1)){k=0;h=j;a=h&3;if(a)while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f+4>>2];J[e+32>>2]=J[f>>2];f=f+8|0;e=e+40|0;h=h-1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}if(j>>>0<4)break j;while(1){J[e+24>>2]=0; +J[e+16>>2]=0;J[e+28>>2]=J[f+4>>2];a=J[f>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=a;J[e+68>>2]=J[f+12>>2];a=J[f+8>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=a;J[e+108>>2]=J[f+20>>2];a=J[f+16>>2];J[e+144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=a;J[e+148>>2]=J[f+28>>2];J[e+152>>2]=J[f+24>>2];f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}break j}k=0;h=j;a=h&3;if(a)while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];J[e+32>>2]=J[f+4>>2];f=f+8|0;e=e+40|0;h=h-1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}if(j>>> +0<4)break j;while(1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+28>>2]=J[f>>2];a=J[f+4>>2];J[e- -64>>2]=0;J[e+56>>2]=0;J[e+32>>2]=a;J[e+68>>2]=J[f+8>>2];a=J[f+12>>2];J[e+104>>2]=0;J[e+96>>2]=0;J[e+72>>2]=a;J[e+108>>2]=J[f+16>>2];a=J[f+20>>2];J[e+144>>2]=0;J[e+136>>2]=0;J[e+112>>2]=a;J[e+148>>2]=J[f+24>>2];J[e+152>>2]=J[f+28>>2];f=f+32|0;e=e+160|0;h=h-4|0;if(h)continue;break}}o=J[g+16>>2];k:{if(!o){d=0;break k}b=0;k=J[g+24>>2];while(1){l:{a=k+(b<<3)|0;if(!J[a+4>>2])break l;a=J[a>>2];f=a;while(1){f=J[f>>2];if((a| +0)==(f|0)){d=b+1|0;break k}if(J[f+28>>2]==J[a+28>>2])continue;break}a=J[f+4>>2];e=a;while(1){h=e;while(1){e=J[e+4>>2];if((a|0)==(e|0))break l;d=J[e+28>>2];m=J[h+28>>2];if((d|0)==(m|0))continue;break}m:{n:{if((m|0)>J[f+28>>2]){if((d|0)<(m|0))break n;break m}if((d|0)<=(m|0))break m}while(1){J[h+16>>2]=J[h+16>>2]|64;h=J[h+4>>2];if((h|0)!=(e|0))continue;break}}f=J[e>>2];continue}}d=0;b=b+1|0;if((o|0)!=(b|0))continue;break}}while(1){if(d>>>0>>0){e=J[g+20>>2];b=P(d,40);a=e+b|0;h=J[a+16>>2];o:{if(!(h& +64))break o;b=b+e|0;e=a;while(1){e=J[e>>2];if((a|0)==(e|0))break o;f=J[e+32>>2];k=J[b+32>>2];if((f|0)==(k|0))continue;break}e=a;while(1){e=J[e+4>>2];if((a|0)==(e|0))break o;b=J[e+32>>2];if((b|0)==(k|0))continue;break}p:{if((f|0)<(k|0)){e=128;if((b|0)>(k|0))break p}if((f|0)<=(k|0))break o;e=256;if((b|0)>=(k|0))break o}J[a+16>>2]=e|h}d=d+1|0;continue}break}h=J[g+36>>2];o=(g+12|0)+P(i,40)|0;m=o+28|0;f=J[m>>2];if(f){e=J[m+8>>2];while(1){_6(e,h,i,g+12|0);e=e+28|0;f=f-1|0;if(f)continue;break}h=J[g+36>> +2]}a=J[o+60>>2];e=J[a+8>>2];k=J[a>>2];a=Cd(32,J[(P(i,204)+h|0)+200>>2]);j=(a|0)>=30?30:a;h=l&1?1:2;q:{r:{s:{if(k>>>0>=2){b=J[g+12>>2];if(!b){a=0;break q}a=J[e+12>>2];f=a>>>0>>0?a:b;while(1){b=J[e+28>>2];a=J[g+12>>2];a=a>>>0>b>>>0?b:a;if(a>>>0>f>>>0){b=J[g+20>>2];Z6(m,J[e+16>>2],J[e+24>>2]);Y6(J[m+4>>2],J[m+12>>2],b+P(f,40)|0,a-f|0,j,h)}e=e+16|0;f=a;k=k-1|0;if(k>>>0>1)continue;break}break s}if((k|0)!=1)break r}d=J[g+20>>2];b=J[g+12>>2];a=J[J[o+60>>2]+8>>2];Z6(m,J[a>>2],J[a+8>>2]);Y6(J[m+4>>2],J[m+ +12>>2],d,b,j,h)}a=J[g+12>>2];if(!a){a=0;break q}e=J[g+20>>2];if(a&1){t:{if(!J[e+24>>2])break t;b=J[e+16>>2];if(b&16)break t;J[e+16>>2]=b|16}e=e+40|0;f=a-1|0}else f=a;if((a|0)==1)break q;while(1){u:{if(!J[e+24>>2])break u;b=J[e+16>>2];if(b&16)break u;J[e+16>>2]=b|16}v:{if(!J[e- -64>>2])break v;b=J[e+56>>2];if(b&16)break v;J[e+56>>2]=b|16}e=e+80|0;f=f-2|0;if(f)continue;break}}w:{if(!(i&1)){a=g+12|0;X6(a,0);W6(a,0);V6(a,0);h=J[g+12>>2];if(!h)break w;a=J[g+32>>2];d=J[a+8>>2];b=J[a+4>>2];f=0;e=J[g+20>> +2];while(1){J[b+(f<<3)>>2]=J[e+36>>2];if(K[e+16|0]&16){a=d+f|0;H[a|0]=K[a|0]|32;h=J[g+12>>2]}e=e+40|0;f=f+1|0;if(h>>>0>f>>>0)continue;break}break w}if(a){h=J[g+20>>2];while(1){b=K[h+20|0];x:{y:{if((b|0)==2|(b|0)==254)break y;b=K[h+21|0];if((b|0)==254)break y;if((b|0)!=2)break x}j=J[h+16>>2];if(j&16)break x;o=J[h+28>>2];i=J[c+412>>2];z:{if(!i)break z;f=J[c+2488>>2];d=0-f|0;e=p;while(1){b=o-J[e+12>>2]|0;if((b|0)<(d|0))break z;if(!(!K[c+2492|0]&(b|0)>J[c+2484>>2]|(o|0)>(f+J[e+8>>2]|0))){b=J[e+24>>2]; +j=j|48;J[h+16>>2]=j;J[h+36>>2]=b}e=e+32|0;i=i-1|0;if(i)continue;break}}i=J[c+928>>2];if(!i)break x;f=J[c+2488>>2];e=0-f|0;k=s+(i<<5)|0;while(1){b=k;k=b-32|0;d=J[k+8>>2]-o|0;if((d|0)<(e|0))break x;if(!(!K[c+2492|0]&(d|0)>=J[c+2484>>2]|(o|0)<(J[b-20>>2]-f|0))){b=J[b-4>>2];j=j|48;J[h+16>>2]=j;J[h+36>>2]=b}i=i-1|0;if(i)continue;break}}h=h+40|0;a=a-1|0;if(a)continue;break}}a=g+12|0;X6(a,1);W6(a,1);V6(a,1);h=J[g+12>>2];if(!h)break w;a=J[g+32>>2];d=J[a+8>>2];b=J[a+4>>2];f=0;e=J[g+20>>2];while(1){J[(b+(f<< +3)|0)+4>>2]=J[e+36>>2];if(K[e+16|0]&16){a=d+f|0;H[a|0]=K[a|0]|64;h=J[g+12>>2]}e=e+40|0;f=f+1|0;if(h>>>0>f>>>0)continue;break}}if(!r)$M(J[g+36>>2],n,q,0,0);i=1;a=l&1;l=0;if(a)continue;break}}b=J[g+28>>2];a=J[g+104>>2];if(a)kc[J[b+8>>2]](b,a);J[g+108>>2]=0;J[g+100>>2]=0;J[g+104>>2]=0;a=J[g+92>>2];if(a)kc[J[b+8>>2]](b,a);J[g+92>>2]=0;a=J[g+88>>2];if(a)kc[J[b+8>>2]](b,a);J[g+88>>2]=0;J[g+96>>2]=0;J[g+80>>2]=0;J[g+84>>2]=0;a=J[g- -64>>2];if(a)kc[J[b+8>>2]](b,a);J[g+68>>2]=0;J[g+60>>2]=0;J[g+64>>2]=0;a= +J[g+52>>2];if(a)kc[J[b+8>>2]](b,a);J[g+52>>2]=0;a=J[g+48>>2];if(a)kc[J[b+8>>2]](b,a);J[g+48>>2]=0;J[g+56>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;a=J[g+20>>2];if(a)kc[J[b+8>>2]](b,a);J[g+20>>2]=0;a=J[g+24>>2];if(a)kc[J[b+8>>2]](b,a)}fc=g+144|0;return l|0}function NKa(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,y=0;h=J[J[a+16>>2]+40>>2];if(!h)return 0;c=fc-192|0;fc=c;a:{b:{c:{d:{e:{f:{a=J[h>>2];if(!a)break f;j=b+1|0;a=bj(J[a+28>>2],j);if(!a)break f; +J[c+188>>2]=0;J[c+180>>2]=0;J[c+184>>2]=0;d=J[h>>2];J[699344]=0;k=aa(3710,d|0,j|0)|0;d=J[699344];J[699344]=0;g:{h:{i:{j:{k:{l:{m:{n:{if((d|0)!=1){if(k){q=J[k+4>>2];if((q|0)>0){l=J[a+12>>2];g=(b|0)<=1?1:b;r=b+2|0;b=0;while(1){d=J[J[k>>2]+(b<<2)>>2];o:{if(!d)break o;a=J[d+32>>2];if(!a)break o;p=O[d+24>>3];m=O[l+56>>3];n=O[l+32>>3];s=O[d+16>>3];t=O[d+8>>3];u=O[d>>3];d=J[J[a>>2]+12>>2];J[699344]=0;d=_(d|0,a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:switch(d| +0){case 0:d=J[a+8>>2];if(!d)break D;a=J[J[h>>2]+28>>2];J[699344]=0;a=aa(3444,a|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break B;if(a)break C;break;case 4:break x;case 3:break y;default:break E}d=0;H[c+80|0]=0;H[c+91|0]=0;i=0;a=1;break p}a=J[a+4>>2];J[699344]=0;e=_(4,72)|0;d=J[699344];J[699344]=0;if((d|0)==1)break B;J[699344]=0;a=I_(e,a);d=J[699344];J[699344]=0;if((d|0)!=1)break C;d=Z()|0;uc(e);break b}if(!J[a+4>>2])break A;d=J[J[h>>2]+28>>2];e=J[a+12>>2];f=J[a+8>>2];J[699344]=0;d=ga(3445,d|0, +f|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break z;d=Z()|0;break b}d=Z()|0;break b}d=J[a+8>>2]}J[699344]=0;e=c+8|0;f=d>>>0<=1?1:d;da(2833,e|0,f-1|0);d=J[699344];J[699344]=0;F:{G:{H:{I:{if((d|0)!=1){J[699344]=0;d=ga(3712,e|0,0,850532)|0;e=J[699344];J[699344]=0;if((e|0)==1)break I;J[c+88>>2]=J[d+8>>2];e=J[d+4>>2];J[c+80>>2]=J[d>>2];J[c+84>>2]=e;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;if(H[c+19|0]<0)uc(J[c+8>>2]);J[699344]=0;e=_(4,8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break H;J[699344]=0;d=aa(3349, +e|0,(H[c+91|0]<0?J[c+80>>2]:c+80|0)|0)|0;o=J[699344];J[699344]=0;if((o|0)==1)break G;e=J[J[h>>2]+28>>2];J[699344]=0;e=aa(3446,e|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break H;e=J[e+12>>2];i=O[e+56>>3]-O[e+40>>3];v=O[a+40>>3];if(H[c+91|0]<0)uc(J[c+80>>2]);uc(a);i=i-v;break w}d=Z()|0;break b}d=Z()|0;if(H[c+19|0]>=0)break b;uc(J[c+8>>2]);break b}d=Z()|0;break F}d=Z()|0;uc(e)}if(H[c+91|0]>=0)break b;uc(J[c+80>>2]);break b}d=J[a+4>>2];J[699344]=0;a=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c; +J[699344]=0;d=aa(3350,a|0,d|0)|0;e=J[699344];J[699344]=0;i=0;if((e|0)!=1)break w;d=Z()|0;uc(a);break b}d=J[a+4>>2];J[699344]=0;a=Dd(d,850605);e=J[699344];J[699344]=0;if((e|0)==1)break d;J:{if(!a){a=J[J[J[h>>2]+28>>2]+20>>2];a=(a|0)>(r|0)?r:a;break J}J[699344]=0;e=Dd(d,850729);a=J[699344];J[699344]=0;if((a|0)==1)break d;a=g;if(!e)break J;J[699344]=0;d=Dd(d,850834);a=J[699344];J[699344]=0;if((a|0)==1)break d;a=1;if(d)break J;a=J[J[J[h>>2]+28>>2]+20>>2]}J[699344]=0;d=c+8|0;da(2833,d|0,a-1|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break v;J[699344]=0;a=ga(3712,d|0,0,850532)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;J[c+88>>2]=J[a+8>>2];d=J[a+4>>2];J[c+80>>2]=J[a>>2];J[c+84>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(H[c+19|0]<0)uc(J[c+8>>2]);J[699344]=0;a=_(4,8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break t;J[699344]=0;d=aa(3349,a|0,(H[c+91|0]<0?J[c+80>>2]:c+80|0)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break s;if(H[c+91|0]<0)uc(J[c+80>>2]);i=0}a=J[d>>2];if(a>>>0<2147483632)break q;J[699344]=0;$(3030, +c+80|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;break e}d=Z()|0;break b}d=Z()|0;if(H[c+19|0]>=0)break b;uc(J[c+8>>2]);break b}d=Z()|0;break r}d=Z()|0;uc(a)}if(H[c+91|0]>=0)break b;uc(J[c+80>>2]);break b}e=J[d+4>>2];K:{if(a>>>0<=10){H[c+91|0]=a;f=c+80|0;break K}J[699344]=0;o=(a|15)+1|0;f=_(4,o|0)|0;w=J[699344];J[699344]=0;if((w|0)==1)break g;J[c+80>>2]=f;J[c+84>>2]=a;J[c+88>>2]=o|-2147483648}x=cd(f,e,a)+a|0,y=0,H[x|0]=y;a=0}O[c+96>>3]=i;i=m-p;O[c+112>>3]=i;O[c+128>>3]=m-t-i;i=u-n;O[c+104>>3]=i; +O[c+120>>3]=s-n-i;e=J[c+184>>2];L:{if(e>>>0>2]){f=J[c+84>>2];J[e>>2]=J[c+80>>2];J[e+4>>2]=f;J[e+8>>2]=J[c+88>>2];J[c+88>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;f=J[c+132>>2];J[e+48>>2]=J[c+128>>2];J[e+52>>2]=f;f=J[c+124>>2];J[e+40>>2]=J[c+120>>2];J[e+44>>2]=f;f=J[c+116>>2];J[e+32>>2]=J[c+112>>2];J[e+36>>2]=f;f=J[c+108>>2];J[e+24>>2]=J[c+104>>2];J[e+28>>2]=f;f=J[c+100>>2];J[e+16>>2]=J[c+96>>2];J[e+20>>2]=f;J[c+184>>2]=e+56;break L}J[699344]=0;da(3713,c+180|0,c+80|0);e=J[699344];J[699344]=0;if((e| +0)==1)break i;if(H[c+91|0]>=0)break L;uc(J[c+80>>2])}if(a)break o;uc(Zc(d))}b=b+1|0;if((q|0)!=(b|0))continue;break}}uc(H_(k))}a=J[J[h>>2]+28>>2];J[699344]=0;a=aa(3446,a|0,j|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;d=J[J[a+12>>2]+168>>2];J[699344]=0;a=i_(c+80|0);b=J[699344];J[699344]=0;if((b|0)==1)break n;J[a>>2]=0;J[699344]=0;b=_(4,224)|0;g=J[699344];J[699344]=0;if((g|0)==1)break k;J[699344]=0;k=na(3715,b|0,0,a|0,0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[h>>2];J[699344]=0;eb(3696, +a|0,k|0,j|0,72,72,0-d|0,0,1,0,0,0);a=J[699344];J[699344]=0;if((a|0)==1)break k;a=J[h>>2];J[699344]=0;ca(3716,a|0,k|0,j|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;e=_(3717,k|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break m;f=0;M:{N:{O:{while(1){J[699344]=0;a=J[J[e>>2]+8>>2];b=J[699344];J[699344]=0;P:{if((b|0)!=1){if((a|0)>(f|0))break P;b=0;Q:{R:{g=J[e>>2];d=J[g+8>>2];if((d|0)>0)while(1){a=J[J[g>>2]+(b<<2)>>2];if(a){d=J[a+32>>2];J[699344]=0;Mc(d);d=J[699344];J[699344]=0;if((d|0)==1)break R; +d=J[a+40>>2];J[699344]=0;Mc(d);d=J[699344];J[699344]=0;if((d|0)==1)break R;d=J[a+36>>2];J[699344]=0;Mc(d);d=J[699344];J[699344]=0;if((d|0)==1)break R;uc(a);d=J[g+8>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}uc(ld(g));break Q}ea(0)|0;Bc();B()}uc(e);kc[J[J[k>>2]+4>>2]](k);J[699344]=0;d=_(3719,c+180|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break m;g=J[c+180>>2];if(!g)break f;a=g;b=J[c+184>>2];if((a|0)!=(b|0)){while(1){a=b-56|0;if(H[b-45|0]<0)uc(J[a>>2]);b=a;if((a|0)!=(g|0))continue;break}a=J[c+180>>2]}J[c+ +184>>2]=g;uc(a);break f}d=Z()|0;break b}J[699344]=0;h=g_(e,f);a=J[699344];J[699344]=0;S:{T:{U:{V:{W:{X:{Y:{if((a|0)!=1){if(!h)break T;J[699344]=0;b=_(3721,h|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break Y;if(!b)break T;a=J[b>>2];if(a>>>0>=2147483632){J[699344]=0;$(3030,c+68|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;d=Z()|0;break b}g=J[b+4>>2];Z:{_:{if(a>>>0<=10){H[c+79|0]=a;d=c+68|0;break _}J[699344]=0;j=(a|15)+1|0;d=_(4,j|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break Z;J[c+68>>2]=d;J[c+72>> +2]=a;J[c+76>>2]=j|-2147483648}x=cd(d,g,a)+a|0,y=0,H[x|0]=y;uc(Zc(b));a=K[c+79|0];l=a<<24>>24;b=(l|0)<0;g=b?J[c+68>>2]:c+68|0;b=b?J[c+72>>2]:a;j=g+b|0;d=g;a=b;if((a|0)<7)break W;while(1){a=Cg(d,104,a-6|0);if(!a)break X;if(dd(a,851076,7)){d=a+1|0;a=j-d|0;if((a|0)>=7)continue;break X}break}if((a|0)==(j|0))break X;a=a-g|0;if((a|0)==-1)break X;break V}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;break b}d=g;a=b;if((a|0)<8)break W;while(1){a=Cg(d,104,a-7|0);if(!a)break W;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16| +K[a+3|0]<<24))!=1886680168|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=791624307){d=a+1|0;a=j-d|0;if((a|0)>=8)continue;break W}break}if((a|0)==(j|0))break W;a=a-g|0;if((a|0)!=-1)break V}a=g;if((b|0)<4)break U;while(1){a=Cg(a,119,b-3|0);if(!a)break U;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=779581303){a=a+1|0;b=j-a|0;if((b|0)>=4)continue;break U}break}if((a|0)==(j|0))break U;a=a-g|0;if((a|0)==-1)break U}J[699344]=0;ca(3722,c+68|0,0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break N; +n=O[h+24>>3];p=O[h+8>>3];i=O[h+16>>3];m=O[h>>3];$:{if(H[c+79|0]>=0){J[c+16>>2]=J[c+76>>2];a=J[c+72>>2];J[c+8>>2]=J[c+68>>2];J[c+12>>2]=a;break $}J[699344]=0;ca(2838,c+8|0,J[c+68>>2],J[c+72>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break S}J[c+24>>2]=0;J[c+28>>2]=0;O[c+40>>3]=i;O[c+56>>3]=n-i;O[c+32>>3]=m;O[c+48>>3]=p-m;a=J[c+184>>2];aa:{if(a>>>0>2]){b=J[c+12>>2];J[a>>2]=J[c+8>>2];J[a+4>>2]=b;J[a+8>>2]=J[c+16>>2];J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[c+60>>2];J[a+48>>2]=J[c+56>>2];J[a+ +52>>2]=b;b=J[c+52>>2];J[a+40>>2]=J[c+48>>2];J[a+44>>2]=b;b=J[c+44>>2];J[a+32>>2]=J[c+40>>2];J[a+36>>2]=b;b=J[c+36>>2];J[a+24>>2]=J[c+32>>2];J[a+28>>2]=b;b=J[c+28>>2];J[a+16>>2]=J[c+24>>2];J[a+20>>2]=b;J[c+184>>2]=a+56;break aa}J[699344]=0;da(3713,c+180|0,c+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break O;if(H[c+19|0]>=0)break aa;uc(J[c+8>>2])}l=H[c+79|0]}if((l|0)>=0)break T;uc(J[c+68>>2])}f=f+1|0;continue}break}d=Z()|0;break M}d=Z()|0;if(H[c+19|0]>=0)break M;uc(J[c+8>>2]);break M}d=Z()|0}if(H[c+79| +0]>=0)break b;uc(J[c+68>>2]);break b}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;uc(b);break b}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;if(H[c+91|0]>=0)break b;uc(J[c+80>>2]);break b}d=Z()|0;break b}d=Z()|0;break b}fc=c+192|0;break a}B()}d=Z()|0;break b}d=Z()|0}uZ(c+180|0);ba(d|0);B()}return d|0}function lq(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=fc-448|0;fc=e;a:{if(!a)break a;J[e+444>>2]=80;c=kc[J[663198]](81)|0;if(!c){J[e>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e);break a}b:{d= +J[a>>2];c:{if(d){g=K[d|0];d:{if(!g)break d;while(1){b=J[e+444>>2];if((b|0)<=(f|0)){if((b|0)>=1048577){J[e+416>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+416|0);break c}g=b<<1;b=kc[J[663200]](c,g|1)|0;if(!b){J[e+432>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+432|0);break c}J[e+444>>2]=g;g=K[d|0];c=b}H[c+f|0]=g;f=f+1|0;g=K[d+1|0];d=d+1|0;if(g)continue;break}b=J[e+444>>2];if((b|0)>(f|0))break d;if((b|0)>=1048577){J[e+384>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+384|0);break c}g= +b<<1;b=kc[J[663200]](c,g|1)|0;if(!b){J[e+400>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+400|0);break c}J[e+444>>2]=g;c=b}H[c+f|0]=58;f=f+1|0}h=J[a+4>>2];e:{if(h){d=K[h|0];if(!d){g=f;break e}while(1){g=f+3|0;b=J[e+444>>2];if((g|0)>=(b|0)){if((b|0)>=1048577){J[e+352>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+352|0);break c}d=b<<1;b=kc[J[663200]](c,d|1)|0;if(!b){J[e+368>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+368|0);break c}J[e+444>>2]=d;d=K[h|0];c=b}f:{g:{h:{i:{b=d&255;switch(b- +36|0){case 0:case 2:case 7:case 8:case 11:case 22:case 23:case 25:case 27:case 28:case 55:case 57:break h;default:break i}}if((d-48&255)>>>0<10|((d&-33)-65&255)>>>0<26)break h;j:switch(b-33|0){case 1:case 2:case 3:case 4:case 5:case 10:case 11:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:break g; +case 0:case 6:case 7:case 8:case 9:case 12:case 13:case 62:break h;default:break j}if((b|0)!=126)break g}g=f+1|0;break f}i=c+f|0;H[i|0]=37;H[i+1|0]=(b>>>4|0)+(b>>>0>159?55:48);b=d&15;d=(b>>>0>9?55:48)+b|0;f=f+2|0}H[c+f|0]=d;d=K[h+1|0];h=h+1|0;f=g;if(d)continue;break}break e}k:{if(!(!J[a+12>>2]&J[a+20>>2]!=-1)){b=J[e+444>>2];l:{if((b|0)>(f+3|0)){b=c;break l}if((b|0)>=1048577){J[e+288>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+288|0);break c}g=b<<1;b=kc[J[663200]](c,g|1)|0;if(!b){J[e+304>>2]= +36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+304|0);break c}J[e+444>>2]=g}c=b+f|0;H[c|0]=47;H[c+1|0]=47;f=f+2|0;g=J[a+16>>2];if(g){d=K[g|0];m:{if(!d){h=f;c=b;break m}c=b;while(1){h=f+3|0;b=J[e+444>>2];if((h|0)>=(b|0)){if((b|0)>=1048577){J[e+256>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+256|0);break c}d=b<<1;b=kc[J[663200]](c,d|1)|0;if(!b){J[e+272>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+272|0);break c}J[e+444>>2]=d;d=K[g|0];c=b}n:{o:{p:{if((d-48&255)>>>0<10|((d&-33)-65&255)>>>0< +26)break p;b=d&255;switch(b-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 62:case 93:break p;default:break o}}h=f+1|0;break n}i=c+f|0;H[i|0]=37;H[i+1|0]=(b>>>4|0)+(b>>>0>159?55:48);b=d&15;d=(b>>>0>9?55:48)+b|0;f=f+2|0}H[c+f|0]=d;d=K[g+1|0];g=g+1|0;f=h;if(d)continue;break}}q:{if(J[e+444>>2]>(h+3|0)){b=c;break q}b=Or(c,e+444|0);if(!b)break c}H[b+h|0]=64;f=h+1|0}d=J[a+12>>2];if(!d)break k;g=K[d|0];r:{if(!g){c=b;break r}c=b;while(1){b= +J[e+444>>2];if((b|0)<=(f|0)){if((b|0)>=1048577){J[e+224>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+224|0);break c}g=b<<1;b=kc[J[663200]](c,g|1)|0;if(!b){J[e+240>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+240|0);break c}J[e+444>>2]=g;g=K[d|0];c=b}H[c+f|0]=g;f=f+1|0;g=K[d+1|0];d=d+1|0;if(g)continue;break}}d=J[a+20>>2];if((d|0)<=0){b=c;break k}g=J[e+444>>2];s:{if((g|0)>(f+10|0)){b=c;break s}b=Or(c,e+444|0);if(!b)break c;d=J[a+20>>2];g=J[e+444>>2]}J[e+208>>2]=d;f=Wi(b+f|0,g-f|0,17423,e+ +208|0)+f|0;break k}if(J[a+8>>2]){t:{if(J[e+444>>2]>(f+3|0)){b=c;break t}b=Or(c,e+444|0);if(!b)break c}c=b+f|0;H[c|0]=47;H[c+1|0]=47;d=f+2|0;g=J[a+8>>2];c=K[g|0];if(!c){f=d;break k}while(1){f=d+3|0;h=J[e+444>>2];if((f|0)>=(h|0)){if((h|0)>=1048577){J[e+320>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+320|0);c=b;break c}h=h<<1;c=kc[J[663200]](b,h|1)|0;if(!c){J[e+336>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+336|0);c=b;break c}J[e+444>>2]=h;b=c;c=K[g|0]}u:{v:{w:{if((c-48&255)>>>0<10|((c& +-33)-65&255)>>>0<26)break w;h=c&255;switch(h-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break w;default:break v}}f=d+1|0;break u}i=b+d|0;H[i|0]=37;H[i+1|0]=(h>>>4|0)+(h>>>0>159?55:48);c=c&15;c=(c>>>0>9?55:48)+c|0;d=d+2|0}H[b+d|0]=c;c=K[g+1|0];g=g+1|0;d=f;if(c)continue;break}break k}if(!J[a>>2]){b=c;break k}if(J[e+444>>2]>(f+3|0)){b=c;break k}b=Or(c,e+444|0);if(!b)break c}h=J[a+24>>2];x:{if(!h){c=b;break x}y:{z:{A:{c= +J[a>>2];if(!c)break A;d=K[h|0];if((d|0)!=47){g=f;break y}if(K[h+2|0]!=58|((K[h+1|0]&223)-65&255)>>>0>25)break A;d=14210;if((c|0)!=14210)while(1){g=K[c|0];if((g|0)!=K[d|0])break A;d=d+1|0;c=c+1|0;if(g)continue;break}d=47;g=f+3|0;if((g|0)>=J[e+444>>2]){c=b;b=Or(b,e+444|0);if(!b)break c;d=K[h|0]}c=b+f|0;H[c|0]=d;H[c+1|0]=K[h+1|0];H[c+2|0]=K[h+2|0];h=h+3|0;break z}g=f}d=K[h|0]}if(!(d&255)){f=g;c=b;break x}c=b;while(1){f=g+3|0;b=J[e+444>>2];if((f|0)>=(b|0)){if((b|0)>=1048577){J[e+176>>2]=31156;Hc(0,0, +0,0,0,30,2,3,31156,0,0,0,32879,e+176|0);break c}d=b<<1;b=kc[J[663200]](c,d|1)|0;if(!b){J[e+192>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+192|0);break c}J[e+444>>2]=d;d=K[h|0];c=b}B:{C:{D:{if((d-48&255)>>>0<10|((d&-33)-65&255)>>>0<26)break D;b=d&255;switch(b-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 26:case 28:case 31:case 62:case 93:break D;default:break C}}f=g+1|0;break B}i=c+g|0;H[i|0]=37;H[i+1|0]=(b>>>4|0)+(b>>>0>159?55:48);b=d& +15;d=(b>>>0>9?55:48)+b|0;g=g+2|0}H[c+g|0]=d;d=K[h+1|0];h=h+1|0;g=f;if(d)continue;break}}if(J[a+40>>2]){h=f+1|0;E:{if((h|0)>2]){b=c;break E}b=Or(c,e+444|0);if(!b)break c}H[b+f|0]=63;f=J[a+40>>2];d=K[f|0];if(!d){g=h;c=b;break e}c=b;while(1){g=h+1|0;b=J[e+444>>2];if((g|0)>=(b|0)){if((b|0)>=1048577){J[e+144>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+144|0);break c}d=b<<1;b=kc[J[663200]](c,d|1)|0;if(!b){J[e+160>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+160|0);break c}J[e+444>>2]= +d;d=K[f|0];c=b}H[c+h|0]=d;d=K[f+1|0];f=f+1|0;h=g;if(d)continue;break}break e}if(!J[a+28>>2]){g=f;break e}F:{if(J[e+444>>2]>(f+3|0)){b=c;break F}b=Or(c,e+444|0);if(!b)break c}H[b+f|0]=63;d=f+1|0;h=J[a+28>>2];f=K[h|0];if(!f){g=d;c=b;break e}c=b;while(1){g=d+3|0;b=J[e+444>>2];if((g|0)>=(b|0)){if((b|0)>=1048577){J[e+112>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+112|0);break c}f=b<<1;b=kc[J[663200]](c,f|1)|0;if(!b){J[e+128>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+128|0);break c}J[e+444>> 2]=f;f=K[h|0];c=b}G:{H:{I:{if((f-48&255)>>>0<10|((f&-33)-65&255)>>>0<26)break I;b=f&255;switch(b-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 58:case 60:case 62:case 93:break I;default:break H}}g=d+1|0;break G}i=c+d|0;H[i|0]=37;H[i+1|0]=(b>>>4|0)+(b>>>0>159?55:48);b=f&15;f=(b>>>0>9?55:48)+b|0;d=d+2|0}H[c+d|0]=f;f=K[h+1|0];h=h+1|0;d=g;if(f)continue;break}}J:{K:{if(!J[a+32>>2]){h=c;break K}b=J[e+444>>2];L:{if((b| -0)>(g+3|0)){h=c;break L}if((b|0)>=1048577){J[e+80>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+80|0);break c}b=b<<1;h=gc[J[659452]](c,b|1)|0;if(!h){J[e+96>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+96|0);break c}J[e+444>>2]=b}H[g+h|0]=35;f=g+1|0;d=J[a+32>>2];c=K[d|0];if(!c){g=f;break K}while(1){g=f+3|0;a=J[e+444>>2];if((g|0)>=(a|0)){if((a|0)>=1048577){J[e+48>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+48|0);break J}c=a<<1;a=gc[J[659452]](h,c|1)|0;if(!a){J[e+64>>2]=36865;Cc(0,0,0, -0,0,30,2,3,36865,0,0,0,32863,e- -64|0);break J}J[e+444>>2]=c;h=a;c=K[d|0]}M:{N:{O:{if((c-48&255)>>>0<10|((c&-33)-65&255)>>>0<26)break O;a=c&255;switch(a-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 58:case 60:case 62:case 93:break O;default:break N}}g=f+1|0;break M}b=f+h|0;H[b|0]=37;H[b+1|0]=(a>>>4|0)+(a>>>0>159?55:48);a=c&15;c=(a>>>0>9?55:48)+a|0;f=f+2|0}H[f+h|0]=c;c=K[d+1|0];d=d+1|0;f=g;if(c)continue; -break}}a=J[e+444>>2];if((a|0)>(g|0)){f=h;break b}if((a|0)>=1048577){J[e+16>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+16|0);break J}f=gc[J[659452]](h,a<<1|1)|0;if(f)break b;J[e+32>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+32|0)}c=h}f=0;gc[J[659451]](c);break a}H[f+g|0]=0}bc=e+448|0;return f}function w$a(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;p=bc-16|0;bc=p;v=J[a+4>>2];d=J[v+56>>2];m=d?-1:0;i=J[a+16>>2];s=J[a+20>>2]-i|0;f= +0)>(g+3|0)){h=c;break L}if((b|0)>=1048577){J[e+80>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+80|0);break c}b=b<<1;h=kc[J[663200]](c,b|1)|0;if(!h){J[e+96>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+96|0);break c}J[e+444>>2]=b}H[g+h|0]=35;f=g+1|0;d=J[a+32>>2];c=K[d|0];if(!c){g=f;break K}while(1){g=f+3|0;a=J[e+444>>2];if((g|0)>=(a|0)){if((a|0)>=1048577){J[e+48>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+48|0);break J}c=a<<1;a=kc[J[663200]](h,c|1)|0;if(!a){J[e+64>>2]=36881;Hc(0,0,0, +0,0,30,2,3,36881,0,0,0,32879,e- -64|0);break J}J[e+444>>2]=c;h=a;c=K[d|0]}M:{N:{O:{if((c-48&255)>>>0<10|((c&-33)-65&255)>>>0<26)break O;a=c&255;switch(a-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 58:case 60:case 62:case 93:break O;default:break N}}g=f+1|0;break M}b=f+h|0;H[b|0]=37;H[b+1|0]=(a>>>4|0)+(a>>>0>159?55:48);a=c&15;c=(a>>>0>9?55:48)+a|0;f=f+2|0}H[f+h|0]=c;c=K[d+1|0];d=d+1|0;f=g;if(c)continue; +break}}a=J[e+444>>2];if((a|0)>(g|0)){f=h;break b}if((a|0)>=1048577){J[e+16>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+16|0);break J}f=kc[J[663200]](h,a<<1|1)|0;if(f)break b;J[e+32>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+32|0)}c=h}f=0;kc[J[663199]](c);break a}H[f+g|0]=0}fc=e+448|0;return f}function m1a(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;p=fc-16|0;fc=p;v=J[a+4>>2];d=J[v+56>>2];m=d?-1:0;i=J[a+16>>2];s=J[a+20>>2]-i|0;f= J[v+8>>2];n=K[f+73|0];k=J[((n<<2)+f|0)+32>>2];j=J[a+24>>2];u=J[a+12>>2];l=J[a+8>>2];t=K[f+72|0];a:{b:{c:{d:{e:{f:{while(1){g:{g=(d|0)!=0&(s|0)>0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{if(t){c=l;r=m;if(g)break r;h=0;break q}if(g){r=m;break o}if(l>>>0>=u>>>0)break m;t=0;q=15;if((s|0)<=0){c=l;break b}r=e+1|0;c=l+2|0;d=L[l>>1];h=d-13312|0;if(h>>>0>41983){l=c;e=r;r=m;break p}h=2;o=1;if(s>>>0<2)break i;e=d<<8|d>>>8;H[i|0]=e;H[i+1|0]=e>>>8;g=0;if(j){J[j+4>>2]=m;J[j>>2]=m;g=j+8|0}i=i+2|0;if(c>>>0>=u>>>0){j=g;d= 0;break a}while(1){if((s|0)<3){j=g;d=0;break b}s=s-2|0;e=r+1|0;l=c+2|0;d=L[c>>1];h=d-13312|0;if(h>>>0>41983){j=g;break p}h=2;if(s>>>0<2){m=r;j=g;c=l;break i}c=d<<8|d>>>8;H[i|0]=c;H[i+1|0]=c>>>8;j=0;if(g){J[g+4>>2]=r;J[g>>2]=r;j=g+8|0}i=i+2|0;r=e;g=j;c=l;if(u>>>0>c>>>0)continue;break}d=0;break a}h=1}while(1){s:{t:{u:{v:{w:{x:{if(!h){if(c>>>0>=u>>>0)break a;if((s|0)<=0){q=15;break b}m=e+1|0;l=c+2|0;y:{z:{d=L[c>>1];if(d-32>>>0>95){if(d>>>0>31)break y;if(!(1<>>0<=127){H[i|0]=e|128;if(j)break x;break w}if((d&63488)!=55296)break t;if(d&1024)break n;e=m;h=1;continue}if(l>>>0>=u>>>0){c=l;break a}g=L[l>>1];if((g&64512)!=56320)break n;m=e+1|0;l=l+2|0;h=g+(d<<10)|0;o=h-56613888|0;c=o-k|0;if(c>>>0>127)break u;H[i|0]=c|128;if(!j)break w}J[j>>2]=r;j=j+4|0;break v}j=0}c=l;i=i+1|0;s=s-1|0;d=0;r=m;e=m;break s}e=0;A:{q=J[f+32>>2];B:{if(o-q>>>0<128)break B;e=1;q=J[f+36>>2];if(o-q>>>0<128)break B;e=2;q=J[f+40>>2];if(o-q>>>0<128)break B; @@ -6951,2674 +7324,2901 @@ e=3;q=J[f+44>>2];if(o-q>>>0<128)break B;e=4;q=J[f+48>>2];if(o-q>>>0<128)break B; 127){k=192;J[p+12>>2]=192;e=249;break D}if(h-56614480>>>0<128){k=592;J[p+12>>2]=592;e=250;break D}if(h-56614768>>>0<128){k=880;J[p+12>>2]=880;e=251;break D}if(h-56615216>>>0<128){k=1328;J[p+12>>2]=1328;e=252;break D}if(h-56626240>>>0<128){k=12352;J[p+12>>2]=12352;e=253;break D}if(h-56626336>>>0<128){k=12448;J[p+12>>2]=12448;e=254;break D}if(h-56679264>>>0<128){k=65376;J[p+12>>2]=65376;e=255;break D}if(o>>>0<128)break C;if(!(!(h-56732672>>>0<12288|o>>>0<13312)&(o&-16384)!=65536)){k=o&2147483520;J[p+ 12>>2]=k;e=o>>>7|0;break D}if((o|0)==65279|h-56671232>>>0>8175)break C;k=o&2147483520;J[p+12>>2]=k;e=h-56657920>>>7|0}c=H[f+75|0];n=K[(c+f|0)+76|0];c=c+1|0;c=(c&255)!=8?c:0;H[f+75|0]=c;J[((n<<2)+f|0)+32>>2]=k;g=c<<24>>24;d=g;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(n|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((g|0)!=(c|0))while(1){g=f+76|0;H[g+d|0]=K[c+g|0];d=c;c=d+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=n;d=o-k|((e<<8)-131072|n<<21)|184549504;h=4;break j}H[i| 0]=15;t=0;i=i+1|0;s=s-1|0;d=g|d<<16;h=4;if(j){J[j>>2]=r;j=j+4|0}else j=0;break j}if(d>>>0<=159){d=d&127|512;h=2;break j}if((d|0)==65279|d>>>0>=65520)break k;g=0;E:{F:{if(d-J[f+32>>2]>>>0<128)break F;g=1;if(d-J[f+36>>2]>>>0<128)break F;g=2;if(d-J[f+40>>2]>>>0<128)break F;g=3;if(d-J[f+44>>2]>>>0<128)break F;g=4;if(d-J[f+48>>2]>>>0<128)break F;g=5;if(d-J[f+52>>2]>>>0<128)break F;g=6;if(d-J[f+56>>2]>>>0<128)break F;g=7;if(d-J[f+60>>2]>>>0>127)break E}o=J[((g<<2)+f|0)+32>>2];G:{H:{if(l>>>0>=u>>>0)break H; -c=L[l>>1];if(c>>>0>o+127>>>0)break G;if(c>>>0>=o>>>0)break H;if(c>>>0>127)break G;if(c>>>0>31)break H;if(!(1<=0){h=2;c=c&255;d=d-J[(c<<2)+751744>>2]|(c<<8)+256; -break j}e=YB(d,p+12|0);if((e|0)>=0){c=H[f+75|0];n=H[(c+f|0)+76|0];c=c+1|0;H[f+75|0]=(c&255)!=8?c:0;c=n&255;k=J[p+12>>2];J[((c<<2)+f|0)+32>>2]=k;XB(f,n);d=d-k|((c<<16)+1572864|e<<8)|128;h=3;break j}if(l>>>0>>0&L[l>>1]-13312>>>0>41983|d-13312>>>0>41983)break k;d=d|983040;h=3;t=0;break j}h=0;continue}}I:{if(h>>>0>=48896){h=2;if(!(l>>>0>=u>>>0|L[l>>1]-13312>>>0>=41984))break I;if(!(!(d-48>>>0<10|d-97>>>0<26)&d-65>>>0>25)){d=((n&255)<<8)+57344|d;h=2;t=1;m=e;break j}m=0;J:{g=J[f+32>>2];K:{if(d-g>>>0< +c=L[l>>1];if(c>>>0>o+127>>>0)break G;if(c>>>0>=o>>>0)break H;if(c>>>0>127)break G;if(c>>>0>31)break H;if(!(1<=0){h=2;c=c&255;d=d-J[(c<<2)+753488>>2]|(c<<8)+256; +break j}e=YC(d,p+12|0);if((e|0)>=0){c=H[f+75|0];n=H[(c+f|0)+76|0];c=c+1|0;H[f+75|0]=(c&255)!=8?c:0;c=n&255;k=J[p+12>>2];J[((c<<2)+f|0)+32>>2]=k;XC(f,n);d=d-k|((c<<16)+1572864|e<<8)|128;h=3;break j}if(l>>>0>>0&L[l>>1]-13312>>>0>41983|d-13312>>>0>41983)break k;d=d|983040;h=3;t=0;break j}h=0;continue}}I:{if(h>>>0>=48896){h=2;if(!(l>>>0>=u>>>0|L[l>>1]-13312>>>0>=41984))break I;if(!(!(d-48>>>0<10|d-97>>>0<26)&d-65>>>0>25)){d=((n&255)<<8)+57344|d;h=2;t=1;m=e;break j}m=0;J:{g=J[f+32>>2];K:{if(d-g>>>0< 128)break K;m=1;g=J[f+36>>2];if(d-g>>>0<128)break K;m=2;g=J[f+40>>2];if(d-g>>>0<128)break K;m=3;g=J[f+44>>2];if(d-g>>>0<128)break K;m=4;g=J[f+48>>2];if(d-g>>>0<128)break K;m=5;g=J[f+52>>2];if(d-g>>>0<128)break K;m=6;g=J[f+56>>2];if(d-g>>>0<128)break K;m=7;g=J[f+60>>2];if(d-g>>>0>127)break J}k=H[f+75|0];c=k;while(1){c=(c|0)<=0?7:c-1|0;if(K[(f+c|0)+76|0]!=(m|0))continue;break}n=c+1|0;h=(n|0)!=8?n:0;if((k|0)!=(h|0))while(1){n=c;c=f+76|0;H[n+c|0]=K[c+h|0];c=h;n=c+1|0;h=(n|0)!=8?n:0;if((h|0)!=H[f+75|0])continue; -break}H[(c+f|0)+76|0]=m;d=d-g|m<<8|57472;h=2;t=1;n=m;k=g;m=e;break j}m=YB(d,p+12|0);if((m|0)<0){h=2;m=e;break j}t=1;c=H[f+75|0];n=H[(c+f|0)+76|0];c=c+1|0;H[f+75|0]=(c&255)!=8?c:0;c=n&255;k=J[p+12>>2];J[((c<<2)+f|0)+32>>2]=k;XB(f,n);d=d-k|((c<<16)+15204352|m<<8)|128;h=3;m=e;break j}if(d>>>0<=57343){if(!(d&1024))break o;q=12;c=l;break b}d=d|15728640;h=3}m=e;break j}if(l>>>0>=u>>>0)break m;c=L[l>>1];if((c&64512)==56320)break l;t=0}q=12;c=l;break b}t=0;c=l;break a}m=e+1|0;l=l+2|0;e=0;L:{g=c+(d<<10)|0; +break}H[(c+f|0)+76|0]=m;d=d-g|m<<8|57472;h=2;t=1;n=m;k=g;m=e;break j}m=YC(d,p+12|0);if((m|0)<0){h=2;m=e;break j}t=1;c=H[f+75|0];n=H[(c+f|0)+76|0];c=c+1|0;H[f+75|0]=(c&255)!=8?c:0;c=n&255;k=J[p+12>>2];J[((c<<2)+f|0)+32>>2]=k;XC(f,n);d=d-k|((c<<16)+15204352|m<<8)|128;h=3;m=e;break j}if(d>>>0<=57343){if(!(d&1024))break o;q=12;c=l;break b}d=d|15728640;h=3}m=e;break j}if(l>>>0>=u>>>0)break m;c=L[l>>1];if((c&64512)==56320)break l;t=0}q=12;c=l;break b}t=0;c=l;break a}m=e+1|0;l=l+2|0;e=0;L:{g=c+(d<<10)|0; h=g-56613888|0;M:{if(h-J[f+32>>2]>>>0<128)break M;e=1;if(h-J[f+36>>2]>>>0<128)break M;e=2;if(h-J[f+40>>2]>>>0<128)break M;e=3;if(h-J[f+44>>2]>>>0<128)break M;e=4;if(h-J[f+48>>2]>>>0<128)break M;e=5;if(h-J[f+52>>2]>>>0<128)break M;e=6;if(h-J[f+56>>2]>>>0<128)break M;e=7;if(h-J[f+60>>2]>>>0>127)break L}if(l>>>0>>0&L[l>>1]-13312>>>0<41984)break L;k=J[((e<<2)+f|0)+32>>2];g=H[f+75|0];d=g;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(e|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((g|0)!=(c|0))while(1){g= f+76|0;H[g+d|0]=K[c+g|0];d=c;c=d+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=e;d=h-k|e<<8|57472;h=2;t=1;n=e;break j}N:{if(L[l>>1]!=(d&65535)|l>>>0>=u>>>0)break N;O:{if(g-56614080>>>0<=127){k=192;J[p+12>>2]=192;e=249;break O}if(g-56614480>>>0<128){k=592;J[p+12>>2]=592;e=250;break O}if(g-56614768>>>0<128){k=880;J[p+12>>2]=880;e=251;break O}if(g-56615216>>>0<128){k=1328;J[p+12>>2]=1328;e=252;break O}if(g-56626240>>>0<128){k=12352;J[p+12>>2]=12352;e=253;break O}if(g-56626336>>> 0<128){k=12448;J[p+12>>2]=12448;e=254;break O}if(g-56679264>>>0<128){k=65376;J[p+12>>2]=65376;e=255;break O}if(h>>>0<128)break N;if(!(!(g-56732672>>>0<12288|h>>>0<13312)&(h&-16384)!=65536)){k=h&2147483520;J[p+12>>2]=k;e=h>>>7|0;break O}if((h|0)==65279|g-56671232>>>0>8175)break N;k=h&2147483520;J[p+12>>2]=k;e=g-56657920>>>7|0}c=H[f+75|0];n=K[(c+f|0)+76|0];c=c+1|0;c=(c&255)!=8?c:0;H[f+75|0]=c;J[((n<<2)+f|0)+32>>2]=k;g=c<<24>>24;d=g;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(n|0))continue;break}c= d+1|0;c=(c|0)!=8?c:0;if((g|0)!=(c|0))while(1){g=f+76|0;H[g+d|0]=K[c+g|0];d=c;c=d+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=n;d=h-k|((e<<8)+268304384|n<<21)|-251658112;h=4;t=1;break j}d=c|d<<16;h=4;t=0;break j}d=d|917504;h=3}if((h|0)<=(s|0))break h;m=r;o=s;c=l}e=v+76|0;l=h-o|0;switch(l-1|0){case 0:break d;case 1:break e;case 2:break f;case 3:break g;default:break c}}P:{Q:{if(!j){j=0;R:switch(h-2|0){case 2:H[i|0]=d>>>24;i=i+1|0;case 1:H[i|0]=d>>>16;i=i+1|0;break;case 0:break R; default:break P}c=d<<8|(d&65280)>>>8;H[i|0]=c;H[i+1|0]=c>>>8;break Q}S:switch(h-2|0){case 2:H[i|0]=d>>>24;J[j>>2]=r;j=j+4|0;i=i+1|0;case 1:H[i|0]=d>>>16;J[j>>2]=r;j=j+4|0;i=i+1|0;break;case 0:break S;default:break P}H[i|0]=d>>>8;J[j>>2]=r;H[i+1|0]=d;J[j+4>>2]=r;j=j+8|0}i=i+2|0}s=s-h|0;d=0;e=m;continue}break}H[v+76|0]=d>>>24;e=v+77|0}H[e|0]=d>>>16;e=e+1|0}H[e|0]=d>>>8;e=e+1|0}H[e|0]=d}H[v+63|0]=l;e=d>>>(l<<3)|0;d=0;q=15;T:{U:{V:{W:{X:{Y:switch(o-1|0){case 2:H[i|0]=e>>>16;if(!j){H[i+1|0]=e>>>8;h=i+ -2|0;break U}J[j>>2]=m;H[i+1|0]=e>>>8;h=i+2|0;j=j+4|0;break X;case 0:break W;case 1:break Y;default:break b}H[i|0]=e>>>8;h=i+1|0;if(!j)break U}J[j>>2]=m;H[h|0]=e;i=h+1|0;j=j+4|0;break V}H[i|0]=e;i=i+1|0;if(!j)break T}J[j>>2]=m;j=j+4|0;break b}H[h|0]=e;i=h+1|0}j=0}J[b>>2]=q}H[f+73|0]=n;H[f+72|0]=t;J[v+56>>2]=d;J[a+24>>2]=j;J[a+16>>2]=i;J[a+8>>2]=c;bc=p+16|0}function R2a(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;i=bc-16|0;bc=i;e=J[a+12>>2];f=J[a+8>> -2];o=e-f>>2;m=4;h=e;if((f|0)!=(e|0)){while(1){g=bc-48|0;bc=g;j=J[f>>2];a:{if(H[j+23|0]>=0){J[g+32>>2]=J[j+20>>2];e=J[j+16>>2];J[g+24>>2]=J[j+12>>2];J[g+28>>2]=e;break a}Re(g+24|0,J[j+12>>2],J[j+16>>2])}b:{c:{d:{e:{h=K[d+11|0];e=h<<24>>24<0;f:{g:{h:{i:{j:{n=e?J[d+4>>2]:h;if(!n)break j;k=K[g+35|0];h=k<<24>>24<0;k=h?J[g+28>>2]:k;if((n|0)>(k|0))break j;h=h?J[g+24>>2]:g+24|0;p=h+(k<<2)|0;q=e?J[d>>2]:d;r=J[q>>2];e=h;while(1){k=(k-n|0)+1|0;if(!k)break j;e=og(e,r,k);if(!e)break j;if(gd(e,q,n)){e=e+4|0;k= -p-e>>2;if((n|0)<=(k|0))continue;break j}break}if((e|0)==(p|0)|(e|0)!=(h|0))break j;h=J[d+4>>2];e=K[d+11|0];J[695492]=0;e=ma(2797,g+12|0,g+24|0,(e<<24>>24<0?h:e)|0,-1,g+36|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){if(H[g+35|0]<0)qc(J[g+24>>2]);J[g+32>>2]=J[e+8>>2];h=J[e+4>>2];J[g+24>>2]=J[e>>2];J[g+28>>2]=h;break i}h=Z()|0;break c}if(!K[d+12|0])break i;J[695492]=0;da(2798,g+36|0,g+24|0);e=J[695492];J[695492]=0;if((e|0)==1)break h;if(H[g+35|0]<0)qc(J[g+24>>2]);J[g+32>>2]=J[g+44>>2];e=J[g+40>>2];J[g+ -24>>2]=J[g+36>>2];J[g+28>>2]=e}if(!J[d+16>>2]){J[g+36>>2]=0;J[g+40>>2]=0;h=J[j>>2];k=J[j+4>>2];e=K[j+11|0];J[695492]=0;l=h;h=e<<24>>24<0;ca(2799,(h?l:j)|0,(h?k:e)|0,g+36|0);e=J[695492];J[695492]=0;k:{if((e|0)!=1){e=J[g+40>>2];h=J[g+36>>2];if(h)qc(h);J[695492]=0;J[g+36>>2]=0;J[g+40>>2]=0;h=H[g+35|0];j=(h|0)<0;ca(2799,(j?J[g+24>>2]:g+24|0)|0,(j?J[g+28>>2]:h&255)|0,g+36|0);h=J[695492];J[695492]=0;if((h|0)==1)break k;h=J[g+40>>2];j=J[g+36>>2];if(j)qc(j);e=(e+h<<1)+12|0;break f}h=Z()|0;a=J[g+36>>2];if(!a)break c; -qc(a);break c}h=Z()|0;a=J[g+36>>2];if(!a)break c;qc(a);break c}h=J[j>>2];k=J[j+4>>2];e=K[j+11|0];J[695492]=0;l=h;h=e<<24>>24<0;ia(1626,g+36|0,(h?l:j)|0,(h?k:e)|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break d;e=H[g+47|0];l:{if((e|0)>=0){h=e&255;break l}h=J[g+40>>2];qc(J[g+36>>2])}e=h+8|0;h=J[j+120>>2]-J[j+116>>2]|0;if((h|0)<=0)break g;h=(h>>>0)/12|0;p=h>>>0<=1?1:h;k=0;while(1){m:{h=J[j+116>>2]+P(k,12)|0;q=J[h>>2];r=J[h+4>>2];n=K[h+11|0];J[695492]=0;l=h;h=n<<24>>24<0;ia(1626,g+36|0,(h?q:l)|0,(h?r: -n)|0,0);h=J[695492];J[695492]=0;if((h|0)==1)break m;h=H[g+47|0];n:{if((h|0)>=0){h=h&255;break n}h=J[g+40>>2];qc(J[g+36>>2])}e=(e+h|0)+4|0;k=k+1|0;if((p|0)!=(k|0))continue;break g}break}h=Z()|0;break c}h=Z()|0;break c}J[695492]=0;h=H[g+35|0];j=(h|0)<0;ia(1626,g+36|0,(j?J[g+24>>2]:g+24|0)|0,(j?J[g+28>>2]:h&255)|0,0);h=J[695492];J[695492]=0;if((h|0)==1)break e;h=H[g+47|0];o:{if((h|0)>=0){h=h&255;break o}h=J[g+40>>2];qc(J[g+36>>2])}e=(e+h|0)+4|0}h=J[d+16>>2];if(H[g+35|0]<0)qc(J[g+24>>2]);bc=g+48|0;e= -e+((h|0)>1?80:74)|0;break b}h=Z()|0;break c}h=Z()|0}if(H[g+35|0]<0)qc(J[g+24>>2]);ba(h|0);B()}m=e+m|0;f=f+4|0;if((f|0)!=J[a+12>>2])continue;break}h=J[a+8>>2];e=f}n=rc(m);H[n|0]=o;H[n+1|0]=o>>>8;H[n+2|0]=o>>>16;H[n+3|0]=o>>>24;m=n+4|0;J[i+12>>2]=m;if((e|0)!=(h|0)){while(1){j=J[h>>2];g=bc-48|0;bc=g;m=J[i+12>>2];if(J[d+16>>2]>=2){H[m|0]=0;H[m+1|0]=0;H[m+2|0]=0;H[m+3|0]=0;J[i+12>>2]=J[i+12>>2]+4}p:{if(H[j+23|0]>=0){J[g+32>>2]=J[j+20>>2];e=J[j+16>>2];J[g+24>>2]=J[j+12>>2];J[g+28>>2]=e;break p}Re(g+24| -0,J[j+12>>2],J[j+16>>2])}e=K[d+11|0];f=e<<24>>24<0;q:{r:{s:{t:{u:{v:{o=f?J[d+4>>2]:e;if(!o)break v;k=K[g+35|0];e=k<<24>>24<0;k=e?J[g+28>>2]:k;if((o|0)>(k|0))break v;e=e?J[g+24>>2]:g+24|0;p=e+(k<<2)|0;q=f?J[d>>2]:d;r=J[q>>2];f=e;while(1){k=(k-o|0)+1|0;if(!k)break v;f=og(f,r,k);if(!f)break v;if(gd(f,q,o)){f=f+4|0;k=p-f>>2;if((o|0)<=(k|0))continue;break v}break}if((f|0)==(p|0)|(e|0)!=(f|0))break v;f=J[d+4>>2];e=K[d+11|0];J[695492]=0;e=ma(2797,g+12|0,g+24|0,(e<<24>>24<0?f:e)|0,-1,g+36|0)|0;f=J[695492]; -J[695492]=0;if((f|0)!=1){if(H[g+35|0]<0)qc(J[g+24>>2]);J[g+32>>2]=J[e+8>>2];f=J[e+4>>2];J[g+24>>2]=J[e>>2];J[g+28>>2]=f;break u}a=Z()|0;break r}if(!K[d+12|0])break u;J[695492]=0;da(2798,g+36|0,g+24|0);e=J[695492];J[695492]=0;if((e|0)==1)break t;if(H[g+35|0]<0)qc(J[g+24>>2]);J[g+32>>2]=J[g+44>>2];e=J[g+40>>2];J[g+24>>2]=J[g+36>>2];J[g+28>>2]=e}if(!J[d+16>>2]){J[g+36>>2]=0;J[g+40>>2]=0;f=J[j>>2];k=J[j+4>>2];e=K[j+11|0];J[695492]=0;l=f;f=e<<24>>24<0;ca(2799,(f?l:j)|0,(f?k:e)|0,g+36|0);e=J[695492];J[695492]= -0;w:{if((e|0)!=1){f=J[i+12>>2];e=J[g+40>>2]+2|0;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];tc(l,f,e);J[i+12>>2]=e+J[i+12>>2];if(f)qc(f);J[695492]=0;J[g+36>>2]=0;J[g+40>>2]=0;e=H[g+35|0];f=(e|0)<0;ca(2799,(f?J[g+24>>2]:g+24|0)|0,(f?J[g+28>>2]:e&255)|0,g+36|0);e=J[695492];J[695492]=0;if((e|0)==1)break w;f=J[i+12>>2];e=J[g+40>>2]+2|0;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];tc(l, -f,e);J[i+12>>2]=e+J[i+12>>2];if(!f)break q;qc(f);break q}a=Z()|0;b=J[g+36>>2];if(!b)break r;qc(b);break r}a=Z()|0;b=J[g+36>>2];if(!b)break r;qc(b);break r}f=J[j>>2];k=J[j+4>>2];e=K[j+11|0];J[695492]=0;o=g+36|0;l=f;f=e<<24>>24<0;ia(1626,o|0,(f?l:j)|0,(f?k:e)|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break s;f=J[i+12>>2];e=K[g+47|0];e=e<<24>>24<0?J[g+40>>2]:e;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];tc(l,H[g+47|0]<0?f:o,e);e=e+J[i+12>>2]| -0;J[i+12>>2]=e;if(H[g+47|0]<0){qc(f);e=J[i+12>>2]}k=J[j+120>>2]-J[j+116>>2]|0;f=(k|0)/12|0;H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;J[i+12>>2]=J[i+12>>2]+4;x:{if((k|0)>0){o=(f|0)<=1?1:f;k=0;while(1){e=J[j+116>>2]+P(k,12)|0;p=J[e>>2];q=J[e+4>>2];f=K[e+11|0];J[695492]=0;r=g+36|0;l=e;e=f<<24>>24<0;ia(1626,r|0,(e?p:l)|0,(e?q:f)|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break x;f=J[i+12>>2];e=K[g+47|0];e=e<<24>>24<0?J[g+40>>2]:e;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+ -12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];tc(l,H[g+47|0]<0?f:r,e);J[i+12>>2]=e+J[i+12>>2];if(H[g+47|0]<0)qc(f);k=k+1|0;if((o|0)!=(k|0))continue;break}}J[695492]=0;k=g+36|0;e=H[g+35|0];f=(e|0)<0;ia(1626,k|0,(f?J[g+24>>2]:g+24|0)|0,(f?J[g+28>>2]:e&255)|0,0);e=J[695492];J[695492]=0;if((e|0)!=1){f=J[i+12>>2];e=K[g+47|0];e=e<<24>>24<0?J[g+40>>2]:e;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];tc(l,H[g+47|0]<0?f:k,e);J[i+12>>2]=e+J[i+12>>2];if(H[g+ -47|0]>=0)break q;qc(f);break q}a=Z()|0;break r}a=Z()|0;break r}a=Z()|0;break r}a=Z()|0}if(H[g+35|0]<0)qc(J[g+24>>2]);ba(a|0);B()}e=J[i+12>>2];f=J[j+24>>2];H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+44>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+40>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+48>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]= +2|0;break U}J[j>>2]=m;H[i+1|0]=e>>>8;h=i+2|0;j=j+4|0;break X;case 0:break W;case 1:break Y;default:break b}H[i|0]=e>>>8;h=i+1|0;if(!j)break U}J[j>>2]=m;H[h|0]=e;i=h+1|0;j=j+4|0;break V}H[i|0]=e;i=i+1|0;if(!j)break T}J[j>>2]=m;j=j+4|0;break b}H[h|0]=e;i=h+1|0}j=0}J[b>>2]=q}H[f+73|0]=n;H[f+72|0]=t;J[v+56>>2]=d;J[a+24>>2]=j;J[a+16>>2]=i;J[a+8>>2]=c;fc=p+16|0}function L4a(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;i=fc-16|0;fc=i;e=J[a+12>>2];f=J[a+8>> +2];o=e-f>>2;m=4;h=e;if((f|0)!=(e|0)){while(1){g=fc-48|0;fc=g;j=J[f>>2];a:{if(H[j+23|0]>=0){J[g+32>>2]=J[j+20>>2];e=J[j+16>>2];J[g+24>>2]=J[j+12>>2];J[g+28>>2]=e;break a}Ve(g+24|0,J[j+12>>2],J[j+16>>2])}b:{c:{d:{e:{h=K[d+11|0];e=h<<24>>24<0;f:{g:{h:{i:{j:{n=e?J[d+4>>2]:h;if(!n)break j;k=K[g+35|0];h=k<<24>>24<0;k=h?J[g+28>>2]:k;if((n|0)>(k|0))break j;h=h?J[g+24>>2]:g+24|0;p=h+(k<<2)|0;q=e?J[d>>2]:d;r=J[q>>2];e=h;while(1){k=(k-n|0)+1|0;if(!k)break j;e=og(e,r,k);if(!e)break j;if(qd(e,q,n)){e=e+4|0;k= +p-e>>2;if((n|0)<=(k|0))continue;break j}break}if((e|0)==(p|0)|(e|0)!=(h|0))break j;h=J[d+4>>2];e=K[d+11|0];J[699344]=0;e=na(2963,g+12|0,g+24|0,(e<<24>>24<0?h:e)|0,-1,g+36|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1){if(H[g+35|0]<0)uc(J[g+24>>2]);J[g+32>>2]=J[e+8>>2];h=J[e+4>>2];J[g+24>>2]=J[e>>2];J[g+28>>2]=h;break i}h=Z()|0;break c}if(!K[d+12|0])break i;J[699344]=0;da(2964,g+36|0,g+24|0);e=J[699344];J[699344]=0;if((e|0)==1)break h;if(H[g+35|0]<0)uc(J[g+24>>2]);J[g+32>>2]=J[g+44>>2];e=J[g+40>>2];J[g+ +24>>2]=J[g+36>>2];J[g+28>>2]=e}if(!J[d+16>>2]){J[g+36>>2]=0;J[g+40>>2]=0;h=J[j>>2];k=J[j+4>>2];e=K[j+11|0];J[699344]=0;l=h;h=e<<24>>24<0;ca(2965,(h?l:j)|0,(h?k:e)|0,g+36|0);e=J[699344];J[699344]=0;k:{if((e|0)!=1){e=J[g+40>>2];h=J[g+36>>2];if(h)uc(h);J[699344]=0;J[g+36>>2]=0;J[g+40>>2]=0;h=H[g+35|0];j=(h|0)<0;ca(2965,(j?J[g+24>>2]:g+24|0)|0,(j?J[g+28>>2]:h&255)|0,g+36|0);h=J[699344];J[699344]=0;if((h|0)==1)break k;h=J[g+40>>2];j=J[g+36>>2];if(j)uc(j);e=(e+h<<1)+12|0;break f}h=Z()|0;a=J[g+36>>2];if(!a)break c; +uc(a);break c}h=Z()|0;a=J[g+36>>2];if(!a)break c;uc(a);break c}h=J[j>>2];k=J[j+4>>2];e=K[j+11|0];J[699344]=0;l=h;h=e<<24>>24<0;ia(1626,g+36|0,(h?l:j)|0,(h?k:e)|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break d;e=H[g+47|0];l:{if((e|0)>=0){h=e&255;break l}h=J[g+40>>2];uc(J[g+36>>2])}e=h+8|0;h=J[j+120>>2]-J[j+116>>2]|0;if((h|0)<=0)break g;h=(h>>>0)/12|0;p=h>>>0<=1?1:h;k=0;while(1){m:{h=J[j+116>>2]+P(k,12)|0;q=J[h>>2];r=J[h+4>>2];n=K[h+11|0];J[699344]=0;l=h;h=n<<24>>24<0;ia(1626,g+36|0,(h?q:l)|0,(h?r: +n)|0,0);h=J[699344];J[699344]=0;if((h|0)==1)break m;h=H[g+47|0];n:{if((h|0)>=0){h=h&255;break n}h=J[g+40>>2];uc(J[g+36>>2])}e=(e+h|0)+4|0;k=k+1|0;if((p|0)!=(k|0))continue;break g}break}h=Z()|0;break c}h=Z()|0;break c}J[699344]=0;h=H[g+35|0];j=(h|0)<0;ia(1626,g+36|0,(j?J[g+24>>2]:g+24|0)|0,(j?J[g+28>>2]:h&255)|0,0);h=J[699344];J[699344]=0;if((h|0)==1)break e;h=H[g+47|0];o:{if((h|0)>=0){h=h&255;break o}h=J[g+40>>2];uc(J[g+36>>2])}e=(e+h|0)+4|0}h=J[d+16>>2];if(H[g+35|0]<0)uc(J[g+24>>2]);fc=g+48|0;e= +e+((h|0)>1?80:74)|0;break b}h=Z()|0;break c}h=Z()|0}if(H[g+35|0]<0)uc(J[g+24>>2]);ba(h|0);B()}m=e+m|0;f=f+4|0;if((f|0)!=J[a+12>>2])continue;break}h=J[a+8>>2];e=f}n=vc(m);H[n|0]=o;H[n+1|0]=o>>>8;H[n+2|0]=o>>>16;H[n+3|0]=o>>>24;m=n+4|0;J[i+12>>2]=m;if((e|0)!=(h|0)){while(1){j=J[h>>2];g=fc-48|0;fc=g;m=J[i+12>>2];if(J[d+16>>2]>=2){H[m|0]=0;H[m+1|0]=0;H[m+2|0]=0;H[m+3|0]=0;J[i+12>>2]=J[i+12>>2]+4}p:{if(H[j+23|0]>=0){J[g+32>>2]=J[j+20>>2];e=J[j+16>>2];J[g+24>>2]=J[j+12>>2];J[g+28>>2]=e;break p}Ve(g+24| +0,J[j+12>>2],J[j+16>>2])}e=K[d+11|0];f=e<<24>>24<0;q:{r:{s:{t:{u:{v:{o=f?J[d+4>>2]:e;if(!o)break v;k=K[g+35|0];e=k<<24>>24<0;k=e?J[g+28>>2]:k;if((o|0)>(k|0))break v;e=e?J[g+24>>2]:g+24|0;p=e+(k<<2)|0;q=f?J[d>>2]:d;r=J[q>>2];f=e;while(1){k=(k-o|0)+1|0;if(!k)break v;f=og(f,r,k);if(!f)break v;if(qd(f,q,o)){f=f+4|0;k=p-f>>2;if((o|0)<=(k|0))continue;break v}break}if((f|0)==(p|0)|(e|0)!=(f|0))break v;f=J[d+4>>2];e=K[d+11|0];J[699344]=0;e=na(2963,g+12|0,g+24|0,(e<<24>>24<0?f:e)|0,-1,g+36|0)|0;f=J[699344]; +J[699344]=0;if((f|0)!=1){if(H[g+35|0]<0)uc(J[g+24>>2]);J[g+32>>2]=J[e+8>>2];f=J[e+4>>2];J[g+24>>2]=J[e>>2];J[g+28>>2]=f;break u}a=Z()|0;break r}if(!K[d+12|0])break u;J[699344]=0;da(2964,g+36|0,g+24|0);e=J[699344];J[699344]=0;if((e|0)==1)break t;if(H[g+35|0]<0)uc(J[g+24>>2]);J[g+32>>2]=J[g+44>>2];e=J[g+40>>2];J[g+24>>2]=J[g+36>>2];J[g+28>>2]=e}if(!J[d+16>>2]){J[g+36>>2]=0;J[g+40>>2]=0;f=J[j>>2];k=J[j+4>>2];e=K[j+11|0];J[699344]=0;l=f;f=e<<24>>24<0;ca(2965,(f?l:j)|0,(f?k:e)|0,g+36|0);e=J[699344];J[699344]= +0;w:{if((e|0)!=1){f=J[i+12>>2];e=J[g+40>>2]+2|0;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];xc(l,f,e);J[i+12>>2]=e+J[i+12>>2];if(f)uc(f);J[699344]=0;J[g+36>>2]=0;J[g+40>>2]=0;e=H[g+35|0];f=(e|0)<0;ca(2965,(f?J[g+24>>2]:g+24|0)|0,(f?J[g+28>>2]:e&255)|0,g+36|0);e=J[699344];J[699344]=0;if((e|0)==1)break w;f=J[i+12>>2];e=J[g+40>>2]+2|0;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];xc(l, +f,e);J[i+12>>2]=e+J[i+12>>2];if(!f)break q;uc(f);break q}a=Z()|0;b=J[g+36>>2];if(!b)break r;uc(b);break r}a=Z()|0;b=J[g+36>>2];if(!b)break r;uc(b);break r}f=J[j>>2];k=J[j+4>>2];e=K[j+11|0];J[699344]=0;o=g+36|0;l=f;f=e<<24>>24<0;ia(1626,o|0,(f?l:j)|0,(f?k:e)|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break s;f=J[i+12>>2];e=K[g+47|0];e=e<<24>>24<0?J[g+40>>2]:e;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];xc(l,H[g+47|0]<0?f:o,e);e=e+J[i+12>>2]| +0;J[i+12>>2]=e;if(H[g+47|0]<0){uc(f);e=J[i+12>>2]}k=J[j+120>>2]-J[j+116>>2]|0;f=(k|0)/12|0;H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;J[i+12>>2]=J[i+12>>2]+4;x:{if((k|0)>0){o=(f|0)<=1?1:f;k=0;while(1){e=J[j+116>>2]+P(k,12)|0;p=J[e>>2];q=J[e+4>>2];f=K[e+11|0];J[699344]=0;r=g+36|0;l=e;e=f<<24>>24<0;ia(1626,r|0,(e?p:l)|0,(e?q:f)|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break x;f=J[i+12>>2];e=K[g+47|0];e=e<<24>>24<0?J[g+40>>2]:e;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+ +12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];xc(l,H[g+47|0]<0?f:r,e);J[i+12>>2]=e+J[i+12>>2];if(H[g+47|0]<0)uc(f);k=k+1|0;if((o|0)!=(k|0))continue;break}}J[699344]=0;k=g+36|0;e=H[g+35|0];f=(e|0)<0;ia(1626,k|0,(f?J[g+24>>2]:g+24|0)|0,(f?J[g+28>>2]:e&255)|0,0);e=J[699344];J[699344]=0;if((e|0)!=1){f=J[i+12>>2];e=K[g+47|0];e=e<<24>>24<0?J[g+40>>2]:e;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;f=J[i+12>>2]+4|0;J[i+12>>2]=f;l=f;f=J[g+36>>2];xc(l,H[g+47|0]<0?f:k,e);J[i+12>>2]=e+J[i+12>>2];if(H[g+ +47|0]>=0)break q;uc(f);break q}a=Z()|0;break r}a=Z()|0;break r}a=Z()|0;break r}a=Z()|0}if(H[g+35|0]<0)uc(J[g+24>>2]);ba(a|0);B()}e=J[i+12>>2];f=J[j+24>>2];H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+44>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+40>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+48>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]= f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;H[e+4|0]=10;H[e+5|0]=0;H[e+6|0]=0;H[e+7|0]=0;e=J[i+12>>2];J[i+12>>2]=e+4;f=K[j+60|0]|K[j+61|0]<<8;H[e+12|0]=f;H[e+13|0]=f>>>8;f=K[j+56|0]|K[j+57|0]<<8|(K[j+58|0]<<16|K[j+59|0]<<24);k=K[j+52|0]|K[j+53|0]<<8|(K[j+54|0]<<16|K[j+55|0]<<24);H[e+4|0]=k;H[e+5|0]=k>>>8;H[e+6|0]=k>>>16;H[e+7|0]=k>>>24;H[e+8|0]=f;H[e+9|0]=f>>>8;H[e+10|0]=f>>>16;H[e+11|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+10;f=J[j+64>>2];H[e+10|0]=f;H[e+11|0]=f>>>8;H[e+12|0]=f>>>16;H[e+13|0]=f>>>24;e=J[i+12>> 2];J[i+12>>2]=e+4;f=J[j+68>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+72>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+76>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+80>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+12>>2]=e+4;f=J[j+84>>2];H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;e=J[i+12>>2];J[i+ 12>>2]=e+4;f=L[j+88>>1];H[e+4|0]=f;H[e+5|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+90>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+92>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=J[j+96>>2];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+100>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+102>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+104>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+106>>1];H[e+ -2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+108>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+110>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;if(J[d+16>>2]>=2){f=L[j+112>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2]+2|0;J[i+12>>2]=e;e=e-m|0;H[m|0]=e;H[m+1|0]=e>>>8;H[m+2|0]=e>>>16;H[m+3|0]=e>>>24}if(H[g+35|0]<0)qc(J[g+24>>2]);bc=g+48|0;h=h+4|0;if((h|0)!=J[a+12>>2])continue;break}m=J[i+12>>2]}J[b>>2]=n;J[c>>2]=m-n;bc=i+16|0}function DVa(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;e=bc-288|0;bc=e;f=mp(a,b,c,d);J[f>>2]=827452;J[e+272>>2]=13;J[e+256>>2]=13;a=J[b+24>>2];J[695492]=0;ha(3207,c|0,a|0,e+272|0,0)|0;a=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((a|0)==1)break e;J[695492]=0;a=ha(3203,J[e+280>>2],819988,e+256|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;if(!(J[a>>2]|!J[e+264>>2]))J[f+4>>2]=J[f+4>>2]|32768;J[695492]=0;a=e+256|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;H[f+208|0]=10;J[f+4>>2]= -J[f+4>>2]|65536;J[695492]=0;a=ha(3203,J[e+280>>2],820316,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;f:{if(J[a>>2]!=4)break f;g:{h:{i:{c=J[e+264>>2];a=Qc(c);if(a>>>0>=2147483632){J[695492]=0;_(1623,e+244|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;B()}j:{if(a>>>0<=10){H[e+255|0]=a;b=e+244|0;break j}J[695492]=0;d=(a|15)+1|0;b=$(4,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i;J[e+244>>2]=b;J[e+248>>2]=a;J[e+252>>2]=d|-2147483648}n=Zc(b,c,a)+a|0,o=0,H[n|0]=o;H[e+24|0]=K[820498];H[e+ -40|0]=K[820696];I[e+48>>1]=K[785446]|K[785447]<<8;H[e+31|0]=5;J[e+20>>2]=K[820494]|K[820495]<<8|(K[820496]<<16|K[820497]<<24);H[e+43|0]=9;H[e+25|0]=0;a=K[820692]|K[820693]<<8|(K[820694]<<16|K[820695]<<24);J[e+32>>2]=K[820688]|K[820689]<<8|(K[820690]<<16|K[820691]<<24);J[e+36>>2]=a;H[e+55|0]=6;H[e+41|0]=0;J[e+44>>2]=K[785442]|K[785443]<<8|(K[785444]<<16|K[785445]<<24);H[e+50|0]=0;H[e+67|0]=7;H[e+96|0]=0;a=K[820872]|K[820873]<<8|(K[820874]<<16|K[820875]<<24);H[e+59|0]=a;H[e+60|0]=a>>>8;H[e+61|0]=a>>> -16;H[e+62|0]=a>>>24;H[e+72|0]=K[821172];I[e+88>>1]=K[821486]|K[821487]<<8;H[e+79|0]=5;H[e+63|0]=0;I[e+90>>1]=2560;H[e+73|0]=0;H[e+103|0]=4;H[e+115|0]=6;J[e+92>>2]=1886152008;J[e+56>>2]=K[820869]|K[820870]<<8|(K[820871]<<16|K[820872]<<24);J[e+68>>2]=K[821168]|K[821169]<<8|(K[821170]<<16|K[821171]<<24);a=K[821482]|K[821483]<<8|(K[821484]<<16|K[821485]<<24);J[e+80>>2]=K[821478]|K[821479]<<8|(K[821480]<<16|K[821481]<<24);J[e+84>>2]=a;I[e+108>>1]=K[821937]|K[821938]<<8;H[e+118|0]=K[822278];H[e+127|0]= -3;H[e+110|0]=0;H[e+119|0]=0;J[e+104>>2]=K[821933]|K[821934]<<8|(K[821935]<<16|K[821936]<<24);I[e+116>>1]=K[822276]|K[822277]<<8;J[695492]=0;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=e+128|0;break c}J[e+132>>2]=12;J[e+136>>2]=-2147483632;J[e+128>>2]=a;b=K[822623]|K[822624]<<8|(K[822625]<<16|K[822626]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[822619]|K[822620]<<8|(K[822621]<<16|K[822622]<<24);c=K[822615]|K[822616]<<8|(K[822617]<<16|K[822618]<<24);H[a|0]=c;H[a+1|0]= -c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;H[e+144|0]=0;H[e+160|0]=K[823221];H[e+163|0]=9;J[e+140>>2]=1702129486;a=K[823217]|K[823218]<<8|(K[823219]<<16|K[823220]<<24);J[e+152>>2]=K[823213]|K[823214]<<8|(K[823215]<<16|K[823216]<<24);J[e+156>>2]=a;I[e+174>>1]=2560;H[e+161|0]=0;H[e+151|0]=4;I[e+172>>1]=K[823275]|K[823276]<<8;J[695492]=0;a=K[823271]|K[823272]<<8|(K[823273]<<16|K[823274]<<24);J[e+164>>2]=K[823267]|K[823268]<<8|(K[823269]<< -16|K[823270]<<24);J[e+168>>2]=a;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=e+176|0;break c}J[e+180>>2]=12;J[e+184>>2]=-2147483632;J[e+176>>2]=a;b=K[823623]|K[823624]<<8|(K[823625]<<16|K[823626]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[823619]|K[823620]<<8|(K[823621]<<16|K[823622]<<24);c=K[823615]|K[823616]<<8|(K[823617]<<16|K[823618]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]= -0;H[e+192|0]=0;a=K[824125]|K[824126]<<8|(K[824127]<<16|K[824128]<<24);H[e+203|0]=a;H[e+204|0]=a>>>8;H[e+205|0]=a>>>16;H[e+206|0]=a>>>24;H[e+211|0]=7;J[e+188>>2]=1918989395;J[e+200>>2]=K[824122]|K[824123]<<8|(K[824124]<<16|K[824125]<<24);H[e+207|0]=0;J[695492]=0;H[e+199|0]=4;a=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=e+212|0;break c}J[e+216>>2]=11;J[e+220>>2]=-2147483632;J[e+212>>2]=a;b=K[824419]|K[824420]<<8|(K[824421]<<16|K[824422]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]= -b>>>24;b=K[824416]|K[824417]<<8|(K[824418]<<16|K[824419]<<24);c=K[824412]|K[824413]<<8|(K[824414]<<16|K[824415]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[e+228>>2]=17;J[695492]=0;J[e+224>>2]=e+20;a=J[e+228>>2];J[e+8>>2]=J[e+224>>2];J[e+12>>2]=a;i=aa(3311,e+232|0,e+8|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){if(H[e+223|0]<0)qc(J[e+212>>2]);if(H[e+211|0]<0)qc(J[e+200>>2]);if(H[e+199|0]<0)qc(J[e+188>>2]);if(H[e+ -187|0]<0)qc(J[e+176>>2]);if(H[e+175|0]<0)qc(J[e+164>>2]);if(H[e+163|0]<0)qc(J[e+152>>2]);if(H[e+151|0]<0)qc(J[e+140>>2]);if(H[e+139|0]<0)qc(J[e+128>>2]);if(H[e+127|0]<0)qc(J[e+116>>2]);if(H[e+115|0]<0)qc(J[e+104>>2]);if(H[e+103|0]<0)qc(J[e+92>>2]);if(H[e+91|0]<0)qc(J[e+80>>2]);if(H[e+79|0]<0)qc(J[e+68>>2]);if(H[e+67|0]<0)qc(J[e+56>>2]);if(H[e+55|0]<0)qc(J[e+44>>2]);if(H[e+43|0]<0)qc(J[e+32>>2]);if(H[e+31|0]<0)qc(J[e+20>>2]);d=J[i+4>>2];h=J[i>>2];g=h;j=(d|0)==(g|0);if(j)break h;b=K[e+255|0];a=b<<24>> -24<0;m=a?J[e+248>>2]:b;k=a?J[e+244>>2]:e+244|0;while(1){a=K[g+11|0];l=a<<24>>24;b=(l|0)<0;c=J[g+4>>2];k:{if(((b?c:a)|0)!=(m|0))break k;if(!b){c=k;b=g;if(!l)break h;while(1){if(K[b|0]!=K[c|0])break k;c=c+1|0;b=b+1|0;a=a-1|0;if(a)continue;break}break h}if(!c)break h;if(!Wc(J[g>>2],k,c))break h}g=g+12|0;if((g|0)!=(d|0))continue;break}break g}d=Z()|0;if(H[e+223|0]<0)qc(J[e+212>>2]);if(H[e+211|0]<0)qc(J[e+200>>2]);if(H[e+199|0]<0)qc(J[e+188>>2]);if(H[e+187|0]<0)qc(J[e+176>>2]);if(H[e+175|0]<0)qc(J[e+164>> -2]);if(H[e+163|0]<0)qc(J[e+152>>2]);if(H[e+151|0]<0)qc(J[e+140>>2]);if(H[e+139|0]<0)qc(J[e+128>>2]);if(H[e+127|0]<0)qc(J[e+116>>2]);if(H[e+115|0]<0)qc(J[e+104>>2]);if(H[e+103|0]<0)qc(J[e+92>>2]);if(H[e+91|0]<0)qc(J[e+80>>2]);if(H[e+79|0]<0)qc(J[e+68>>2]);if(H[e+67|0]<0)qc(J[e+56>>2]);if(H[e+55|0]<0)qc(J[e+44>>2]);if(H[e+43|0]<0)qc(J[e+32>>2]);if(H[e+31|0]>=0)break b;qc(J[e+20>>2]);break b}d=Z()|0;break a}if((d|0)==(g|0))break g;H[f+208|0]=(g-h|0)/12}if(h){c=h;if(!j){while(1){a=d-12|0;if(H[d-1|0]< -0)qc(J[a>>2]);d=a;if((a|0)!=(h|0))continue;break}c=J[i>>2]}J[i+4>>2]=h;qc(c)}if(H[e+255|0]>=0)break f;qc(J[e+244>>2])}J[695492]=0;a=e+256|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;a=ha(3203,J[e+280>>2],824815,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;l:{if(J[a>>2]!=3)break l;J[f+4>>2]=J[f+4>>2]|131072;J[695492]=0;b=$(4,12)|0;a=J[695492];J[695492]=0;m:{n:{if((a|0)!=1){J[695492]=0;a=aa(3187,b|0,J[e+264>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;b=J[a+4>> -2];c=J[a>>2];J[695492]=0;d=e+20|0;ca(3281,d|0,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break m;qc(dd(a));H[f+210|0]=1;b=K[e+31|0];a=b<<24>>24;c=b;b=(a|0)<0;o:{if(((b?J[e+24>>2]:c)|0)!=6)break o;if(Wc(b?J[e+20>>2]:d,825115,6))break o;H[f+210|0]=0}if((a|0)>=0)break l;qc(J[e+20>>2]);break l}d=Z()|0;break a}d=Z()|0;qc(b);break a}d=Z()|0;break a}J[695492]=0;a=e+256|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;a=ha(3203,J[e+280>>2],825354,a|0,0)|0;b=J[695492];J[695492]=0;if((b| -0)==1)break e;p:{if(J[a>>2]!=3)break p;J[f+4>>2]=J[f+4>>2]|262144;J[695492]=0;b=$(4,12)|0;a=J[695492];J[695492]=0;q:{r:{s:{t:{u:{v:{w:{x:{if((a|0)!=1){J[695492]=0;a=aa(3187,b|0,J[e+264>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break x;b=J[a+4>>2];c=J[a>>2];J[695492]=0;ca(3281,e+20|0,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break w;qc(dd(a));H[f+209|0]=6;b=K[e+31|0];a=b<<24>>24;switch(((a|0)<0?J[e+24>>2]:b)-6|0){case 0:break t;case 3:break u;case 2:break v;default:break s}}d=Z()|0;break a}d=Z()| -0;qc(b);break a}d=Z()|0;break a}a=(a|0)<0?J[e+20>>2]:e+20|0;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))==1634561621&(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))==1684368242){c=1;break r}if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))==1701012289&(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))==1684370544){c=2;break r}if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1701471570|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=1684370531)break s;c=3;break r}if(Wc((a|0)<0? -J[e+20>>2]:e+20|0,827752,9))break s;c=4;break r}c=0;if(!Wc((a|0)<0?J[e+20>>2]:e+20|0,825115,6))break r}c=5;if(!el(e+20|0,827949))break q}H[f+209|0]=c}if(H[e+31|0]>=0)break p;qc(J[e+20>>2])}J[695492]=0;_(3205,e+256|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;_(3205,e+272|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}d=Z()|0;break a}bc=e+288|0;return f|0}d=Z()|0;while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((a|0)!=(e+20|0))continue;break}}if(H[e+255|0]>=0)break a;qc(J[e+244>>2])}lh(f); -ba(d|0);B()}function bC(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=bc-1312|0;bc=k;if(c>>>0>=4){j=J[a>>2];J[j+24>>2]=c;J[j+20>>2]=52;gc[J[J[a>>2]>>2]](a)}i=J[((b?180:196)+a|0)+(c<<2)>>2];if(!i){j=J[a>>2];J[j+24>>2]=c;J[j+20>>2]=52;gc[J[J[a>>2]>>2]](a)}j=J[d>>2];if(!j){j=gc[J[J[a+4>>2]>>2]](a,1,1424)|0;J[d>>2]=j}J[j+140>>2]=i;c=K[i+1|0];a:{if(!c){c=0;break a}wc(k+1040|0,1,c)}l=K[i+2|0];d=l+c|0;if(d>>>0>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}b:{if(!l){d=c;break b}wc((k+1040|0)+c| -0,2,l)}l=K[i+3|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}c:{if(!l){c=d;break c}wc((k+1040|0)+d|0,3,l)}l=K[i+4|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}d:{if(!l){d=c;break d}wc((k+1040|0)+c|0,4,l)}l=K[i+5|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}e:{if(!l){c=d;break e}wc((k+1040|0)+d|0,5,l)}l=K[i+6|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}f:{if(!l){d=c;break f}wc((k+1040|0)+c|0,6,l)}l=K[i+7|0];c=l+d|0;if((c|0)>= -257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}g:{if(!l){c=d;break g}wc((k+1040|0)+d|0,7,l)}l=K[i+8|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}h:{if(!l){d=c;break h}wc((k+1040|0)+c|0,8,l)}l=K[i+9|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}i:{if(!l){c=d;break i}wc((k+1040|0)+d|0,9,l)}l=K[i+10|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}j:{if(!l){d=c;break j}wc((k+1040|0)+c|0,10,l)}l=K[i+11|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>> -2]](a)}k:{if(!l){c=d;break k}wc((k+1040|0)+d|0,11,l)}l=K[i+12|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}l:{if(!l){d=c;break l}wc((k+1040|0)+c|0,12,l)}l=K[i+13|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}m:{if(!l){c=d;break m}wc((k+1040|0)+d|0,13,l)}l=K[i+14|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}n:{if(!l){d=c;break n}wc((k+1040|0)+c|0,14,l)}c=K[i+15|0];l=c+d|0;if((l|0)>=257){m=J[a>>2];J[m+20>>2]=9;gc[J[m>>2]](a)}o:{if(!c){l=d;break o}wc((k+ -1040|0)+d|0,15,c)}c=K[i+16|0];m=c+l|0;if((m|0)>=257){d=J[a>>2];J[d+20>>2]=9;gc[J[d>>2]](a)}d=0;if(c){wc((k+1040|0)+l|0,16,c);l=m}H[(k+1040|0)+l|0]=0;f=K[k+1040|0];if(f){h=f<<24>>24;c=0;while(1){if(f<<24>>24==(h|0))while(1){J[(d<<2)+k>>2]=c;c=c+1|0;d=d+1|0;f=H[d+(k+1040|0)|0];if((h|0)==(f|0))continue;break}if(1<>2];J[g+20>>2]=9;gc[J[g>>2]](a)}h=h+1|0;c=c<<1;if(f&255)continue;break}}d=-1;p:{if(!K[i+1|0]){c=0;e=-1;break p}J[j+76>>2]=0-J[k>>2];c=K[i+1|0];e=J[((c<<2)+k|0)-4>>2]}J[j+4>> -2]=e;if(K[i+2|0]){J[j+80>>2]=c-J[(c<<2)+k>>2];c=K[i+2|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+8>>2]=e;if(K[i+3|0]){J[j+84>>2]=c-J[(c<<2)+k>>2];c=K[i+3|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+12>>2]=e;if(K[i+4|0]){J[j+88>>2]=c-J[(c<<2)+k>>2];c=K[i+4|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+16>>2]=e;if(K[i+5|0]){J[j+92>>2]=c-J[(c<<2)+k>>2];c=K[i+5|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+20>>2]=e;if(K[i+6|0]){J[j+96>>2]=c-J[(c<<2)+k>>2];c=K[i+6|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1; -J[j+24>>2]=e;if(K[i+7|0]){J[j+100>>2]=c-J[(c<<2)+k>>2];c=K[i+7|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+28>>2]=e;if(K[i+8|0]){J[j+104>>2]=c-J[(c<<2)+k>>2];c=K[i+8|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+32>>2]=e;if(K[i+9|0]){J[j+108>>2]=c-J[(c<<2)+k>>2];c=K[i+9|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+36>>2]=e;if(K[i+10|0]){J[j+112>>2]=c-J[(c<<2)+k>>2];c=K[i+10|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+40>>2]=e;if(K[i+11|0]){J[j+116>>2]=c-J[(c<<2)+k>>2];c=K[i+11|0]+c|0;e=J[((c<<2)+k|0)- -4>>2]}else e=-1;J[j+44>>2]=e;if(K[i+12|0]){J[j+120>>2]=c-J[(c<<2)+k>>2];c=K[i+12|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+48>>2]=e;if(K[i+13|0]){J[j+124>>2]=c-J[(c<<2)+k>>2];c=K[i+13|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+52>>2]=e;if(K[i+14|0]){J[j+128>>2]=c-J[(c<<2)+k>>2];c=K[i+14|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+56>>2]=e;if(K[i+15|0]){J[j+132>>2]=c-J[(c<<2)+k>>2];c=K[i+15|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+60>>2]=e;if(K[i+16|0]){J[j+136>>2]=c-J[(c<<2)+k>>2];d=J[((K[i+ -16|0]+c<<2)+k|0)-4>>2]}J[j+68>>2]=1048575;J[j+64>>2]=d;d=0;f=wc(j+144|0,0,1024);if(K[i+1|0]){h=1;g=j+1168|0;while(1){e=d+i|0;c=J[(d<<2)+k>>2]<<7;n=128;while(1){J[f+(c<<2)>>2]=1;H[c+g|0]=K[e+17|0];o=c|1;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+17|0];o=c|2;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+17|0];o=c|3;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+17|0];c=c+4|0;o=(n|0)!=4;n=n-4|0;if(o)continue;break}d=d+1|0;c=K[i+1|0]>h>>>0;h=h+1|0;if(c)continue;break}}if(K[i+2|0]){h=1;f=j+144|0;g=j+1168|0;while(1){e=d+i|0;c=J[(d<<2)+k>>2]<<6;n=64; -while(1){J[f+(c<<2)>>2]=2;H[c+g|0]=K[e+17|0];o=c|1;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];o=c|2;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];o=c|3;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];c=c+4|0;o=(n|0)!=4;n=n-4|0;if(o)continue;break}d=d+1|0;c=K[i+2|0]>h>>>0;h=h+1|0;if(c)continue;break}}if(K[i+3|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<7)>>2]=3;f=f<<5;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<<2)>>2]=3;H[e+h|0]= -K[g+17|0];e=f|4;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|7;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|8;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|9;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|10;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|11;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|12;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|13;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|14;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|15;J[c+(e<<2)>>2]=3; -H[e+h|0]=K[g+17|0];e=f|16;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|17;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|18;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|19;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|20;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|21;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|22;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|23;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|24;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|25;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|26;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|27;J[c+ -(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|28;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|29;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|30;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];f=f|31;J[c+(f<<2)>>2]=3;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+3|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+4|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<6)>>2]=4;f=f<<4;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e= -f|4;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|7;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|8;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|9;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|10;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|11;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|12;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|13;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|14;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];f=f|15;J[c+(f<<2)>>2]=4;H[f+h|0]=K[g+ -17|0];d=d+1|0;f=K[i+4|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+5|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<5)>>2]=5;f=f<<3;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|4;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];f=f|7;J[c+(f<<2)>>2]=5;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+5|0]>n>>>0;n=n+1|0; -if(f)continue;break}}if(K[i+6|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<4)>>2]=6;f=f<<2;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=6;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=6;H[e+h|0]=K[g+17|0];f=f|3;J[c+(f<<2)>>2]=6;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+6|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+7|0]){c=1;h=j+144|0;f=j+1168|0;while(1){g=J[(d<<2)+k>>2];J[h+(g<<3)>>2]=7;g=g<<1;n=d+i|0;H[g+f|0]=K[n+17|0];g=g|1;J[h+(g<<2)>>2]=7;H[f+g|0]=K[n+17|0];d=d+1|0;g=K[i+7|0]>c>>>0;c=c+ -1|0;if(g)continue;break}}if(K[i+8|0]){c=1;while(1){h=J[(d<<2)+k>>2];J[((h<<2)+j|0)+144>>2]=8;H[(h+j|0)+1168|0]=K[(d+i|0)+17|0];d=d+1|0;h=K[i+8|0]>c>>>0;c=c+1|0;if(h)continue;break}}q:{if(!b|(l|0)<=0)break q;c=0;if((m|0)!=1){b=m&-2;d=0;while(1){if(K[(c+i|0)+17|0]>=16){j=J[a>>2];J[j+20>>2]=9;gc[J[j>>2]](a)}if(K[((c|1)+i|0)+17|0]>=16){j=J[a>>2];J[j+20>>2]=9;gc[J[j>>2]](a)}c=c+2|0;d=d+2|0;if((b|0)!=(d|0))continue;break}}if(!(m&1)|K[(c+i|0)+17|0]<16)break q;b=J[a>>2];J[b+20>>2]=9;gc[J[b>>2]](a)}bc=k+1312| -0}function xx(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;c=bc-128|0;bc=c;a:{if(!a)break a;p=!b;if(p)break a;k=bd(1,16);b:{if(!k)break b;f=bd(50,4);J[k+12>>2]=f;if(!f)break b;J[k+8>>2]=1;J[k>>2]=50;e=k}o=e;J[c+84>>2]=e;j=bc-16|0;bc=j;if(!(p|!e)){k=0;c:{if(!b)break c;p=Qc(b);e=bd(p+1|0,1);if(!e)break c;d:{if((p|0)<=0)break d;while(1){f=K[b+k|0];if(f){H[e+k|0]=f;k=k+1|0;if((p|0)!=(k|0))continue;break d}break}if((k|0)>=(p|0))break d;wc(e+k|0,0,p-k|0)}k=e}f=k;k=GM(f,j+ -12|0);if(k){p=o+12|0;e=J[o+4>>2];b=J[o>>2];e:{if((e|0)<(b|0)){b=J[p>>2];break e}b=yl(p,b<<2,b<<3);J[o+12>>2]=b;J[o>>2]=J[o>>2]<<1}J[(e<<2)+b>>2]=k;J[o+4>>2]=J[o+4>>2]+1}b=GM(0,j+12|0);if(b){p=o+12|0;while(1){e=J[o+4>>2];k=J[o>>2];f:{if((e|0)<(k|0)){g=J[p>>2];break f}g=yl(p,k<<2,k<<3);J[o+12>>2]=g;J[o>>2]=J[o>>2]<<1}J[(e<<2)+g>>2]=b;J[o+4>>2]=J[o+4>>2]+1;b=GM(0,j+12|0);if(b)continue;break}}qc(f)}bc=j+16|0;k=o?J[o+4>>2]:0;p=k;d=bc-400|0;bc=d;g:{if(o){i=1;if((k|0)<=0)break g;i=0;j=J[651370];h:{i:{j:{k:{l:{m:{n:{g= -FM(xM(o,0));switch(H[g|0]-66|0){case 1:case 2:case 3:case 13:case 33:case 34:case 35:case 45:break k;case 16:case 48:break l;case 22:case 54:break m;case 0:case 32:break n;default:break j}}i=1;J[d+384>>2]=d+396;if((Og(g+1|0,227238,d+384|0)|0)!=1){J[d+368>>2]=g;cd(j,228846,d+368|0);i=0;break i}m=1;b=J[d+396>>2];if((b|0)>0)break h;J[d+356>>2]=b;J[d+352>>2]=g;cd(j,229095,d+352|0);i=0;break i}J[d+336>>2]=d+396;if((Og(g+1|0,227238,d+336|0)|0)!=1){J[d+320>>2]=g;cd(j,228846,d+320|0);break i}o:{e=J[d+396>> -2];b=e<<31|e-2>>>1;if(b>>>0>7)break o;i=1;if(!(1<>2]|0;break h}J[d+308>>2]=e;J[d+304>>2]=g;cd(j,229095,d+304|0);i=0;break i}b=Qc(g);n=b-1|0;if(b-6>>>0>=4294967292){i=1;if((n|0)<=0)break i;i=0;f=K[g+1|0];p:{if((f-53&255)>>>0<252)break p;if((n|0)==1){i=1;break h}f=K[g+2|0];if((f-53&255)>>>0<252){h=1;break p}h=2;if((n|0)==2){i=1;break h}f=K[g+3|0];if((f-53&255)>>>0<252)break p;h=3;if((n|0)==3){i=1;break h}f=K[g+4|0];if((f-53&255)>>>0<252)break p;h=4;if((n|0)== -4){i=1;break h}f=K[g+5|0]}J[d+292>>2]=h;J[d+288>>2]=g;J[d+296>>2]=(f<<24>>24)-48;cd(j,228567,d+288|0);break i}J[d+276>>2]=n;J[d+272>>2]=g;cd(j,228049,d+272|0);break i}i=1;J[d+260>>2]=d+388;J[d+256>>2]=d+392;if((Og(g+1|0,226975,d+256|0)|0)!=2){J[d+240>>2]=g;cd(j,227540,d+240|0);i=0;break i}e=J[d+392>>2];b=J[d+388>>2];if((e|0)>0&(b|0)>0)break h;J[d+232>>2]=b;J[d+228>>2]=e;J[d+224>>2]=g;cd(j,227875,d+224|0);i=0;break i}J[d+208>>2]=g;cd(j,229495,d+208|0)}m=0}qc(g);f=1;if((k|0)!=1)while(1){q:{r:{s:{t:{u:{v:{w:{g= -FM(xM(o,f));switch(H[g|0]-66|0){case 0:case 32:break t;case 22:case 54:break u;case 16:case 48:break v;case 1:case 2:case 3:case 13:case 33:case 34:case 35:case 45:break w;default:break s}}J[d+68>>2]=d+388;J[d+64>>2]=d+392;if((Og(g+1|0,226975,d- -64|0)|0)!=2){J[d+48>>2]=g;cd(j,227540,d+48|0);break r}e=J[d+392>>2];b=J[d+388>>2];if((e|0)>0&(b|0)>0)break q;J[d+40>>2]=b;J[d+36>>2]=e;J[d+32>>2]=g;cd(j,227875,d+32|0);break r}b=Qc(g);e=b-1|0;n=e+n|0;if(b-6>>>0<=4294967291){J[d+84>>2]=e;J[d+80>>2]=g;cd(j, -228049,d+80|0);break r}x:{if((e|0)<=0)break x;b=K[g+1|0];h=0;y:{if((b-53&255)>>>0<252)break y;if((e|0)==1)break x;b=K[g+2|0];h=1;if((b-53&255)>>>0<252)break y;if((e|0)==2)break x;b=K[g+3|0];h=2;if((b-53&255)>>>0<252)break y;if((e|0)==3)break x;b=K[g+4|0];h=3;if((b-53&255)>>>0<252)break y;if((e|0)==4)break x;b=H[g+5|0];h=4}J[d+100>>2]=h;J[d+96>>2]=g;J[d+104>>2]=(b<<24>>24)-48;cd(j,228567,d+96|0);break r}break q}J[d+144>>2]=d+396;if((Og(g+1|0,227238,d+144|0)|0)!=1){J[d+128>>2]=g;cd(j,228846,d+128|0); -break r}e=J[d+396>>2];b=e<<31|e-2>>>1;if(!(1<>>0<=7:0)){J[d+116>>2]=e;J[d+112>>2]=g;cd(j,229095,d+112|0);break r}n=n-J[((e|0)/4<<2)+231344>>2]|0;break q}J[d+192>>2]=d+396;if((Og(g+1|0,227238,d+192|0)|0)!=1){J[d+176>>2]=g;cd(j,228846,d+176|0);break r}J[d+160>>2]=g;cd(j,229296,d+160|0);break r}J[d+16>>2]=g;cd(j,229495,d+16|0)}i=0}qc(g);f=f+1|0;if((k|0)!=(f|0))continue;break}if(!((n|0)!=0&m))break g;J[d>>2]=g;cd(J[651370],229772,d)}i=0}bc=d+400|0;if(!i){yM(c+84|0);break a}J[c+112>>2]=0;a=wf(0, -a);J[c+88>>2]=0;J[c+92>>2]=a;z:{if((p|0)<=0)break z;k=c+92|0;while(1){A:{B:{C:{D:{E:{F:{G:{H:{n=FM(xM(J[c+84>>2],q));switch(H[n|0]-66|0){case 0:case 32:break B;case 22:case 54:break C;case 16:case 48:break D;case 1:case 33:break E;case 13:case 45:break F;case 3:case 35:break G;case 2:case 34:break H;default:break A}}J[c+4>>2]=c+116;J[c>>2]=c+120;Og(n+1|0,226975,c);g=0;f=bc-16|0;bc=f;e=J[c+92>>2];a=!e;d=a;o=((a?-1:J[e+8>>2])|0)!=1;a=J[c+120>>2];b=J[c+116>>2];I:{if(d|(o|(a|0)<=0)|(b|0)<=0)break I;if(!((a| -0)!=1|(b|0)!=1)){g=wf(0,e);break I}if(!((a|0)!=1&(b|0)!=1)){a=Wi(b,a,b>>>1|0,a>>>1|0);J[f+12>>2]=a;g=xl(0,e,a);ij(f+12|0);break I}a=Wi(1,a,0,a>>>1|0);J[f+8>>2]=a;b=Wi(b,1,b>>>1|0,0);J[f+4>>2]=b;a=xl(0,e,a);J[f+12>>2]=a;g=xl(0,a,b);wd(f+12|0);ij(f+8|0);ij(f+4|0)}bc=f+16|0;J[c+88>>2]=g;wd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;wd(c+88|0);break A}J[c+20>>2]=c+116;J[c+16>>2]=c+120;Og(n+1|0,226975,c+16|0);g=0;f=bc-16|0;bc=f;e=J[c+92>>2];a=!e;d=a;o=((a?-1:J[e+8>>2])|0)!=1;a=J[c+ -120>>2];b=J[c+116>>2];J:{if(d|(o|(a|0)<=0)|(b|0)<=0)break J;if(!((a|0)!=1|(b|0)!=1)){g=wf(0,e);break J}if(!((a|0)!=1&(b|0)!=1)){a=Wi(b,a,b>>>1|0,a>>>1|0);J[f+12>>2]=a;g=wl(0,e,a);ij(f+12|0);break J}a=Wi(1,a,0,a>>>1|0);J[f+8>>2]=a;b=Wi(b,1,b>>>1|0,0);J[f+4>>2]=b;a=wl(0,e,a);J[f+12>>2]=a;g=wl(0,a,b);wd(f+12|0);ij(f+8|0);ij(f+4|0)}bc=f+16|0;J[c+88>>2]=g;wd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;wd(c+88|0);break A}J[c+36>>2]=c+116;J[c+32>>2]=c+120;Og(n+1|0,226975,c+32|0);h=bc- -16|0;bc=h;a=J[c+92>>2];b=!a;e=J[c+120>>2];d=b|(((b?-1:J[a+8>>2])|0)!=1|(e|0)<=0);b=J[c+116>>2];K:{if(d|(b|0)<=0)break K;if(!((e|0)!=1|(b|0)!=1)){wf(a,a);break K}if(!((e|0)!=1&(b|0)!=1)){f=Wi(b,e,b>>>1|0,e>>>1|0);J[h+12>>2]=f;m=bc-16|0;bc=m;L:{M:{N:{b=a;e=!a;O:{if(e|!f|((e?-1:J[a+8>>2])|0)!=1)break O;Cr(f,m+12|0,m+8|0,0,0);if(!J[m+12>>2]|!J[m+8>>2])break O;if(a)break N;a=nu(a)}if(a)break M;break L}PM(a,b)}b=wl(0,b,f);J[m+4>>2]=b;if(!b)break L;xl(a,b,f);wd(m+4|0)}bc=m+16|0;ij(h+12|0);break K}e=Wi(1, -e,0,e>>>1|0);J[h+8>>2]=e;b=Wi(b,1,b>>>1|0,0);J[h+4>>2]=b;f=wl(0,a,e);J[h+12>>2]=f;a=wl(a,f,b);xl(f,a,e);xl(a,f,b);wd(h+12|0);ij(h+8|0);ij(h+4|0)}bc=h+16|0;break A}J[c+52>>2]=c+116;J[c+48>>2]=c+120;Og(n+1|0,226975,c+48|0);i=bc-32|0;bc=i;l=J[c+92>>2];a=!l;j=J[c+120>>2];h=J[c+116>>2];P:{if(a|(((a?-1:J[l+8>>2])|0)!=1|(j|0)<=0)|(h|0)<=0)break P;if(!((j|0)!=1|(h|0)!=1)){wf(l,l);break P}if(!J[659409]){m=bc-16|0;bc=m;a=!l;Q:{if(a|(((a?-1:J[l+8>>2])|0)!=1|(j|0)<=0)|(h|0)<=0)break Q;if(!((j|0)!=1|(h|0)!=1)){wf(l, -l);break Q}if(!((j|0)!=1&(h|0)!=1)){a=Wi(h,j,h>>>1|0,j>>>1|0);J[m+12>>2]=a;a7(l,l,a);ij(m+12|0);break Q}e=Wi(1,j,0,j>>>1|0);J[m+8>>2]=e;b=Wi(h,1,h>>>1|0,0);J[m+4>>2]=b;f=xl(0,l,e);J[m+12>>2]=f;a=xl(l,f,b);wl(f,a,e);wl(a,f,b);wd(m+12|0);ij(m+8|0);ij(m+4|0)}bc=m+16|0;break P}e=j>>>1|0;a=h>>>1|0;b=(a>>>0>>0?e:a)+31&2147483616;f=v7(l,b);J[i+28>>2]=f;R:{if(!((j|0)!=1&(h|0)!=1)){a=Wi(h,j,a,e);J[i+16>>2]=a;g=a7(0,f,a);J[i+20>>2]=g;a=i+16|0;break R}e=Wi(1,j,0,e);J[i+16>>2]=e;a=Wi(h,1,a,0);J[i+12>>2]=a; -f=xl(0,f,e);J[i+24>>2]=f;g=xl(0,f,a);J[i+20>>2]=g;wl(f,g,e);wl(g,f,a);wd(i+24|0);ij(i+16|0);a=i+12|0}ij(a);r=i,s=MM(g,b),J[r+24>>2]=s;wd(i+28|0);wd(i+20|0);if(!l)break P;wf(l,J[i+24>>2]);wd(i+24|0)}bc=i+32|0;break A}f=Qc(n);h=f-1|0;S:{if((h|0)>0){b=0;l=0;if(f-2>>>0>=3){e=h&-4;i=0;while(1){m=c+96|0;a=l|1;J[m+(l<<2)>>2]=H[a+n|0]-48;d=m+(a<<2)|0;a=l|2;J[d>>2]=H[a+n|0]-48;d=m+(a<<2)|0;a=l|3;J[d>>2]=H[a+n|0]-48;l=l+4|0;J[m+(a<<2)>>2]=H[n+l|0]-48;i=i+4|0;if((e|0)!=(i|0))continue;break}}a=h&3;if(a)while(1){e= -(c+96|0)+(l<<2)|0;l=l+1|0;J[e>>2]=H[n+l|0]-48;b=b+1|0;if((a|0)!=(b|0))continue;break}if((h|0)>3)break S}a=f<<2;wc(a+k|0,0,20-a|0)}r=c,s=zM(J[c+92>>2],J[c+96>>2],J[c+100>>2],J[c+104>>2],J[c+108>>2]),J[r+88>>2]=s;wd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;wd(c+88|0);break A}J[c+64>>2]=c+124;Og(n+1|0,227238,c- -64|0);r=c,s=y7(J[c+92>>2],J[c+124>>2]),J[r+88>>2]=s;wd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;wd(c+88|0);break A}J[c+80>>2]=c+112;Og(n+1|0,227238, -c+80|0);r=c,s=v7(J[c+92>>2],J[c+112>>2]),J[r+88>>2]=s;wd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;wd(c+88|0)}qc(n);q=q+1|0;if((q|0)!=(p|0))continue;break}a=J[c+112>>2];if((a|0)<=0)break z;r=c,s=MM(J[c+92>>2],a),J[r+88>>2]=s;wd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;wd(c+88|0)}yM(c+84|0);l=J[c+92>>2]}bc=c+128|0;return l}function Hza(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=bc-160|0;bc=d;a:{b:{c:{d:{e:{f:{g:{i=a+92|0;h:{if(J[i>>2]&16){i:{b= -J[a+136>>2];if(b)while(1){c=J[b+8>>2];f=J[c+60>>2];J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break b;f=J[c+60>>2];J[695492]=0;J[d+112>>2]=f;da(5227,f|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break i;J[695492]=0;da(5228,f|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break i;J[695492]=0;c=J[f+4>>2]-1|0;J[f+4>>2]=c;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(!c){J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}b=J[b>>2];if(b)continue;break}J[695492]=0;_(5079, -a+128|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break b}a=Z()|0;vc(d+112|0);ba(a|0);B()}if(!(J[i>>2]&1))break h;f=a+128|0;j=d+68|0;k=d+120|0;while(1){h=di();J[d+148>>2]=0;J[695492]=0;g=$(5082,d+112|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;c=J[a+136>>2];J[d+108>>2]=f;J[d+104>>2]=c;b=f;j:{if(!c)break j;k:{l:{while(1){m:{J[d+96>>2]=c;J[d+100>>2]=b;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{if((b|0)!=(f|0)){J[695492]=0;da(5073,d+96|0,f|0);b=J[695492];J[695492]=0;if((b|0)== -1)break G;break c}b=J[c+8>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break G;b=J[c+8>>2]}else b=0;J[d+16>>2]=b;if(J[b+8>>2])break F;J[695492]=0;c=d+60|0;ca(5229,c|0,a|0,b+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break A;J[695492]=0;aa(5083,g|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;break E}c=ea(2411712)|0;b=cc;break o}b=J[b+20>>2];J[695492]=0;c=d+60|0;ca(5230,c|0,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break A;J[695492]=0;aa(5083,g|0,c|0)|0;b= -J[695492];J[695492]=0;if((b|0)==1)break C}J[d+84>>2]=2381060;J[d+60>>2]=2381028;b=J[d+88>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[d+88>>2]=0}J[d+76>>2]=2381060;b=J[d+80>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[d+80>>2]=0}sc(j);b=J[d+120>>2];if(!b|!J[b+8>>2])break B;J[695492]=0;b=d+152|0;ca(5231,b|0,g|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break A;c=J[d+152>>2];if(!c){sc(b);break B}b=J[c+8>>2];sc(d+152|0);if(!b)break B;J[695492]=0;aa(4993,d+ -148|0,d+16|0)|0;b=J[695492];J[695492]=0;c=1;if((b|0)!=1)break s;break A}c=ea(2411712)|0;b=cc;ud(d+60|0);break p}c=ea(2411712)|0;b=cc;ud(d+60|0);break p}J[695492]=0;b=J[i>>2];c=J[695492];J[695492]=0;if((c|0)==1)break A;if(!(b&24))break t;b=J[J[d+16>>2]+64>>2];J[695492]=0;_(5232,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break A;J[d+52>>2]=0;J[d+56>>2]=J[682146];b=J[d+16>>2];if(J[b+8>>2])break y;J[695492]=0;c=d+60|0;ca(5048,c|0,2390113,b+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break r;J[695492]=0;aa(5233, -d+52|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break z;sc(c);break x}c=ea(2411712)|0;b=cc;break p}c=ea(2411712)|0;b=cc;sc(d+60|0);break q}b=J[b+20>>2];J[695492]=0;e=aa(5120,d+44|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;J[695492]=0;b=d+60|0;ca(5048,b|0,2390300,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break w;J[695492]=0;aa(5233,d+52|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break v;sc(b);sc(e)}b=J[d+52>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;e=ja(5018,d+60|0,b|0,2373496,633,2401617, -0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;J[695492]=0;_(5019,e|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;c=ea(2411712)|0;b=cc;Fc(e);break q}c=ea(2411712)|0;b=cc;break u}c=ea(2411712)|0;b=cc;sc(d+60|0)}sc(e);break q}c=0;b=J[d+104>>2];if(!b)break s;J[d+104>>2]=J[b>>2]}b=J[d+16>>2];J[d+16>>2]=0;H:{if(!b)break H;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;l=J[695492];J[695492]=0;if((l|0)==1)break a;if(e)break H;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=c;c=J[d+104>> -2];if(!(b|!c))break n;break j}c=ea(2411712)|0;b=cc}sc(d+52|0)}vc(d+16|0)}if((sa(2411712)|0)!=(b|0))break f;b=na(c|0)|0;J[695492]=0;b=J[b+4>>2];b=b?b:2377794;c=J[695492];J[695492]=0;I:{J:{if((c|0)==1)break J;J[695492]=0;b=aa(4989,d+36|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break J;c=J[J[h>>2]+20>>2];J[695492]=0;ga(c|0,h|0,a|0,b|0)|0;c=J[695492];J[695492]=0;K:{if((c|0)!=1){sc(b);b=J[d+104>>2];J[d+28>>2]=b;c=J[d+108>>2];J[d+32>>2]=c;if(!((c|0)==(f|0)?b:0)){J[695492]=0;da(5073,d+28|0,f|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break c;c=Z()|0;break k}c=J[b+8>>2];b=J[c+64>>2];if(!b){J[d+52>>2]=0;break I}J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break K;b=J[c+64>>2];J[d+52>>2]=b;if(!b)break I;J[695492]=0;da(5234,b|0,0);b=J[695492];J[695492]=0;if((b|0)!=1)break I;break m}c=Z()|0;sc(b);break k}c=Z()|0;break k}c=Z()|0;break k}b=J[d+104>>2];J[d+60>>2]=b;J[d+64>>2]=J[d+108>>2];if(b)J[d+104>>2]=J[b>>2];J[695492]=0;da(5065,f|0,d+60|0);b=J[695492];J[695492]=0;if((b|0)==1)break m; -vc(d+52|0);J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break l;c=J[d+104>>2];if(!c)break j}b=J[d+108>>2];continue}break}c=Z()|0;vc(d+52|0);break k}c=Z()|0;break f}J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break f;break a}c=0;L:{if(!J[d+148>>2])break L;b=J[d+120>>2];if(!b|!J[b+8>>2])break L;J[695492]=0;b=d+60|0;ca(5231,b|0,g|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break g;e=J[d+60>>2];if(!e){sc(b);break L}b=J[e+8>>2];e=d+60|0;sc(e);if(!b)break L;M:{N:{O:{P:{Q:{R:{b=J[d+ -148>>2];S:{if(J[b+64>>2]){b=J[b+60>>2];c=J[J[h>>2]+16>>2];J[695492]=0;ia(c|0,d+24|0,h|0,b|0,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break S;if(!J[d+24>>2]){J[695492]=0;b=d+16|0;ca(5231,b|0,g|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break R;J[695492]=0;ca(5048,d+52|0,2377529,b|0);b=J[695492];J[695492]=0;T:{U:{V:{if((b|0)!=1){b=J[d+52>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;e=ja(5018,e|0,b|0,2373496,664,2401617,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break V;J[695492]=0;_(5019,e|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break c;c=ea(2411712)|0;b=cc;Fc(e);break U}c=ea(2411712)|0;b=cc;break T}c=ea(2411712)|0;b=cc}sc(d+52|0)}sc(d+16|0);break Q}b=J[J[d+148>>2]+64>>2];J[695492]=0;ia(5095,b|0,d+24|0,0,-1);b=J[695492];J[695492]=0;if((b|0)==1)break R;b=J[d+24>>2];J[d+24>>2]=0;W:{if(!b)break W;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break W;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[d+148>>2]}c=J[b+60>>2];J[695492]=0;b=d+ -60|0;da(5113,b|0,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break S;J[695492]=0;da(5235,c|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break P;sc(b);c=J[J[d+148>>2]+60>>2];J[695492]=0;da(5226,b|0,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break S;J[695492]=0;da(5236,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break O;J[d+84>>2]=2381060;J[d+60>>2]=2381028;b=J[d+88>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[d+88>>2]=0}J[d+76>>2]=2381060;b=J[d+80>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>> -2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[d+80>>2]=0}sc(j);b=J[J[d+148>>2]+60>>2];J[695492]=0;da(5237,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break M}c=ea(2411712)|0;b=cc;break N}c=ea(2411712)|0;b=cc}vc(d+24|0);break N}c=ea(2411712)|0;b=cc;sc(d+60|0);break N}c=ea(2411712)|0;b=cc;ud(d+60|0)}if((sa(2411712)|0)!=(b|0))break f;b=na(c|0)|0;J[695492]=0;b=J[b+4>>2];b=b?b:2377794;c=J[695492];J[695492]=0;X:{Y:{Z:{if((c|0)==1)break Z;J[695492]=0;b=aa(4989,d+8|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Z; -c=J[J[h>>2]+20>>2];J[695492]=0;ga(c|0,h|0,a|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Y;sc(b);J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break M;c=Z()|0;break f}c=Z()|0;break X}c=Z()|0;sc(b)}J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break a;break f}b=J[a+136>>2];J[d+108>>2]=f;J[d+104>>2]=b;c=1;if(!b)break L;h=J[d+148>>2];while(1){if((h|0)!=J[b+8>>2]){b=J[b>>2];if(b)continue;break L}break}J[695492]=0;J[d+104>>2]=b;da(5065,f|0,d+104|0);b=J[695492];J[695492]=0;if((b| -0)==1)break g}J[g>>2]=2381028;J[d+136>>2]=2381060;b=J[d+140>>2];if(b){g=J[b+4>>2]-1|0;J[b+4>>2]=g;if(!g)gc[J[J[b>>2]+4>>2]](b);J[d+140>>2]=0}J[d+128>>2]=2381060;b=J[d+132>>2];if(b){g=J[b+4>>2]-1|0;J[b+4>>2]=g;if(!g)gc[J[J[b>>2]+4>>2]](b);J[d+132>>2]=0}sc(k);b=J[d+148>>2];J[d+148>>2]=0;_:{if(!b)break _;J[695492]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(g)break _;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(c)continue;break}}bc=d+160|0;return}c= -Z()|0}ud(g);break d}c=Z()|0}vc(d+148|0);ba(c|0);B()}B()}ba(Z()|0);B()}ea(0)|0;yc();B()}function Rya(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=bc-1168|0;bc=e;a:{b:{c:{d:{if(!K[b+144|0]){a=Kc(e+128|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;Fc(a);ba(b|0);B()}h=di();J[e+1160>>2]=0;J[e+1164>>2]=J[682146];e:{while(1){f=J[J[c>>2]+8>>2];J[695492]=0;f=ga(f|0,c|0,e+128|0,1024)|0;g=J[695492];J[695492]=0;f:{if((g|0)!=1){if(f)break f; -f=J[e+1160>>2];g:{if(!f)break g;while(1){if(!J[f+8>>2]|K[J[f+12>>2]]!=10)break g;J[695492]=0;ia(5143,e+84|0,e+1160|0,1,-1);c=J[695492];J[695492]=0;h:{if((c|0)!=1){c=J[e+84>>2];i:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,e+48|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break i;c=Z()|0;break c}J[e+48>>2]=0}J[695492]=0;aa(4993,e+1160|0,e+48|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+48>>2];J[e+48>>2]=0;if(!c)break h;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break h; -J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break h}break a}c=Z()|0;vc(e+48|0);break c}c=Z()|0;break b}c=J[e+1160>>2];J[e+1164>>2]=J[(c?c+12|0:2728584)>>2];sc(e+84|0);f=J[e+1160>>2];if(f)continue;break}}j:{k:{while(1){l:{m:{n:{i=J[e+1160>>2];if(!i)break n;g=J[i+8>>2];if(!g)break n;j=J[i+12>>2];f=g-1|0;if(!f){c=0;break l}c=f;o:{if((g|0)<=0){c=c+g|0;if((c|0)<0)break o}if((c|0)<=(g|0))break l}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break d;break m}J[a>>2]=0;J[695492]= -0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break j}c=Z()|0;break b}if(K[c+j|0]!=10)break k;J[695492]=0;ca(5166,e+1160|0,f|0,0);c=J[695492];J[695492]=0;if((c|0)!=1)continue;break}c=Z()|0;break b}p:{q:{r:{s:{t:{if(Yf(J[i+12>>2],47)){J[695492]=0;a=ja(5018,e+84|0,2381312,2374155,577,2402370,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;Fc(a);break b}c=J[J[h>>2]+8>>2];J[695492]=0;f=c;c=e+84|0;ia(f|0,c|0,h|0,b|0, -e+1160|0);f=J[695492];J[695492]=0;if((f|0)!=1){u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{f=J[e+92>>2];N:{O:{if(!f|!J[f+8>>2])break O;J[695492]=0;f=e+48|0;ca(5231,f|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break u;c=J[e+48>>2];if(!c){sc(f);break O}c=J[c+8>>2];sc(e+48|0);if(c)break N}J[695492]=0;c=e+12|0;da(5226,c|0,b+72|0);f=J[695492];J[695492]=0;if((f|0)==1)break M;J[695492]=0;f=ga(5173,e+48|0,e+1160|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break L;J[695492]=0;aa(5083,e+84| -0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break K;J[f+24>>2]=2381060;J[f>>2]=2381028;c=J[f+28>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)gc[J[J[c>>2]+4>>2]](c);J[f+28>>2]=0}J[f+16>>2]=2381060;c=J[f+20>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)gc[J[J[c>>2]+4>>2]](c);J[f+20>>2]=0}sc(f+8|0);J[e+36>>2]=2381060;J[e+12>>2]=2381028;c=J[e+40>>2];if(c){f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(!f)gc[J[J[c>>2]+4>>2]](c);J[e+40>>2]=0}J[e+28>>2]=2381060;c=J[e+32>>2];if(c){f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(!f)gc[J[J[c>> -2]+4>>2]](c);J[e+32>>2]=0}sc(e+20|0)}f=J[b+120>>2];if(!f)break H;break I}c=Z()|0;break q}c=Z()|0;break J}c=Z()|0;ud(f)}ud(e+12|0);break q}P:{Q:{R:{S:{T:{U:{while(1){g=J[f+8>>2];J[695492]=0;c=e+12|0;da(5113,c|0,g+72|0);g=J[695492];J[695492]=0;if((g|0)==1)break U;J[695492]=0;g=e+4|0;da(5113,g|0,e+84|0);i=J[695492];J[695492]=0;if((i|0)==1)break T;J[695492]=0;i=ga(5117,c|0,g|0,-1)|0;j=J[695492];J[695492]=0;if((j|0)==1)break S;sc(g);sc(c);if(i){f=J[f>>2];if(!f)break H;continue}break}b=J[f+8>>2];if(b)break Q; -b=0;break P}c=Z()|0;break q}c=Z()|0;break R}c=Z()|0;sc(e+4|0)}sc(e+12|0);break q}J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break G;b=J[f+8>>2]}J[a>>2]=b;break p}J[e>>2]=0;c=J[J[h>>2]+12>>2];J[695492]=0;f=c;c=e+12|0;ia(f|0,c|0,h|0,b|0,e+1160|0);f=J[695492];J[695492]=0;if((f|0)==1)break F;J[695492]=0;aa(4993,e|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break E;c=J[e+12>>2];J[e+12>>2]=0;V:{if(!c)break V;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g| -0)==1)break s;if(f)break V;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break s}f=J[e>>2];if(!f)break C;c=J[b+132>>2];if(c){g=J[J[f>>2]+56>>2];J[695492]=0;da(g|0,f|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break w;f=J[e>>2]}if(K[b+136|0]){c=J[J[f>>2]+60>>2];J[695492]=0;da(c|0,f|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break w;f=J[e>>2]}J[695492]=0;ca(5245,h|0,f|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break w;J[695492]=0;c=b+148|0;f=J[c>>2];h=J[695492];J[695492]=0;if((h|0)==1)break w; -if(f&512){J[695492]=0;da(5228,J[e>>2],0);f=J[695492];J[695492]=0;if((f|0)==1)break w}J[695492]=0;c=J[c>>2];f=J[695492];J[695492]=0;if((f|0)==1)break w;if(c&1024){J[695492]=0;da(5228,J[e>>2],1);c=J[695492];J[695492]=0;if((c|0)==1)break w}f=J[b+120>>2];if(!f)break A;break B}c=Z()|0;break q}c=ea(2411712)|0;f=cc;break D}c=ea(2411712)|0;f=cc;vc(e+12|0)}if((sa(2411712)|0)!=(f|0))break v;d=na(c|0)|0;J[695492]=0;da(5305,b|0,e+1160|0);c=J[695492];J[695492]=0;W:{X:{if((c|0)==1)break X;J[695492]=0;c=pa(5213)| -0;f=J[695492];J[695492]=0;if((f|0)==1)break X;J[695492]=0;d=J[d+4>>2];d=d?d:2377794;f=J[695492];J[695492]=0;Y:{Z:{_:{if((f|0)==1)break _;J[695492]=0;d=aa(4989,e+12|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break _;f=J[J[c>>2]+20>>2];J[695492]=0;ga(f|0,c|0,b|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Z;sc(d);J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break X;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break Y;f=J[e>>2];break y}c=Z()|0;break W}c= -Z()|0;sc(d);break W}c=Z()|0;vc(e);break q}c=Z()|0}J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break v;break a}J[695492]=0;ca(5048,e+4|0,2381778,e+1160|0);a=J[695492];J[695492]=0;$:{aa:{if((a|0)!=1){a=J[e+4>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,e+12|0,a|0,2374155,622,2402370,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break aa;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;Fc(a);break $}c=Z()|0;vc(e);break q}c=Z()|0}sc(e+4|0);vc(e);break q}ba:{ca:{da:{while(1){h= -J[f+8>>2];J[695492]=0;c=e+12|0;da(5113,c|0,h+72|0);h=J[695492];J[695492]=0;if((h|0)==1)break x;J[695492]=0;h=e+4|0;da(5113,h|0,e+84|0);g=J[695492];J[695492]=0;if((g|0)==1)break da;J[695492]=0;g=ga(5117,c|0,h|0,-1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break ca;sc(h);sc(c);if(g){f=J[f>>2];if(!f)break A;continue}break}J[695492]=0;aa(4993,e|0,f+8|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break z;break r}c=Z()|0;break ba}c=Z()|0;sc(e+4|0)}sc(e+12|0);vc(e);break q}c=b+112|0;ea:{fa:{if((d|0)>=0){J[695492]= -0;Jz(e+12|0,c,d);b=J[695492];J[695492]=0;if((b|0)==1)break fa;b=J[e+12>>2];if(b)break ea}J[695492]=0;b=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r;J[b>>2]=0;J[b+4>>2]=0;d=J[e>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break r;d=J[e>>2]}else d=0;J[b+8>>2]=d;J[695492]=0;of(c,b);b=J[695492];J[695492]=0;if((b|0)==1)break r;break z}c=Z()|0;vc(e);break q}J[e+16>>2]=J[e+16>>2];J[e+12>>2]=b;J[695492]=0;b=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r; -J[b>>2]=0;J[b+4>>2]=0;d=J[e>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break r;d=J[e>>2]}else d=0;J[b+8>>2]=d;J[695492]=0;ca(5306,c|0,e+12|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break r}b=J[e>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break w;f=J[e>>2]}else f=0;J[a>>2]=f}J[e>>2]=0;if(!f)break p;J[695492]=0;a=J[f+4>>2]-1|0;J[f+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break p;J[695492]=0;_(4987,f|0);a=J[695492];J[695492]= -0;if((a|0)!=1)break p}break a}c=Z()|0;vc(e);break q}c=Z()|0}vc(e);break q}c=Z()|0;break q}c=Z()|0;break b}c=Z()|0;break b}ea(0)|0;yc();break d}c=Z()|0;vc(e)}ud(e+84|0);break b}J[e+108>>2]=2381060;J[e+84>>2]=2381028;a=J[e+112>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[e+112>>2]=0}J[e+100>>2]=2381060;a=J[e+104>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[e+104>>2]=0}sc(e+92|0)}sc(e+1160|0);bc=e+1168|0;return}c=Z()|0;break b}J[695492]=0;f=ga(5169,e+120| -0,e+128|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){J[695492]=0;aa(5170,e+1160|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;sc(f);continue}break}c=Z()|0;break b}c=Z()|0;sc(f);break b}B()}sc(e+84|0)}sc(e+1160|0);ba(c|0);B()}ea(0)|0;yc();B()}function iAa(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;i=bc-1072|0;bc=i;j=i+48|0;d=bc-128|0;bc=d;J[d+120>>2]=0;J[d+124>>2]=J[682146];J[d+104>>2]=0;J[d+108>>2]=0;J[695492]=0;J[d+96>>2]=0;J[d+100>>2]=0;g=d+96|0;J[g>>2]=2386024;J[g+4>> -2]=0;J[g+8>>2]=0;J[g+12>>2]=0;c=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((c|0)!=1){H[g+16|0]=0;J[695492]=0;da(5203,2394042,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[a+8>>2];if((c|0)!=-1){J[695492]=0;J[d+8>>2]=c&255;J[d>>2]=c>>>16&255;J[d+4>>2]=c>>>8&255;ga(5180,d+120|0,2395922,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[d+120>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;da(5201,g|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break e}J[695492]=0;da(5203,2394155, -g|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{c=J[a+12>>2];if(!((c|0)<=0&(!c|(c|0)<-4))){J[695492]=0;e=d+120|0;aa(5054,e|0,2396360)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[a+12>>2];y:{if((c|0)<0){J[695492]=0;aa(5185,e|0,J[2390560-(c<<2)>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;break y}J[695492]=0;c=aa(5120,d+80|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break x;J[695492]=0;e=d+88|0;ca(5048,e|0,2396455,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break w; -J[695492]=0;aa(5170,d+120|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break v;sc(e);sc(c)}J[695492]=0;aa(5185,d+120|0,2396518)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[d+120>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;da(5201,g|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break e}J[695492]=0;da(5203,2394493,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[a+16>>2];if(c-1>>>0>3)break o;J[695492]=0;c=aa(4989,d- -64|0,J[(c<<2)+2390784>>2])|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;J[695492]= -0;e=d+72|0;ca(5048,e|0,2396948,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break r;J[695492]=0;ca(5121,d+88|0,e|0,2396518);e=J[695492];J[695492]=0;if((e|0)==1)break q;e=J[d+88>>2];if(!e)break u;f=J[J[e>>2]+28>>2];J[695492]=0;ca(f|0,d+56|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break t;a=Z()|0;break g}a=Z()|0;break d}a=Z()|0;sc(c);break d}a=Z()|0;sc(d+88|0);sc(c);break d}J[d+56>>2]=0}J[695492]=0;aa(4993,d+120|0,d+56|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){e=J[d+56>>2];J[d+56>>2]=0;if(!e)break p; -J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break p;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break p}break b}a=Z()|0;vc(d+56|0);break g}a=Z()|0;break d}a=Z()|0;sc(c);break d}a=Z()|0;break f}e=J[d+120>>2];J[d+124>>2]=J[(e?e+12|0:2728584)>>2];sc(d+88|0);sc(d+72|0);sc(c);c=J[d+120>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;da(5201,g|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break e}J[695492]=0;da(5203,2394662,g|0);c=J[695492];J[695492]=0;if((c| -0)==1)break e;if(J[a+20>>2]|J[a+24>>2]){J[695492]=0;c=aa(4989,d+40|0,2398695)|0;e=J[695492];J[695492]=0;z:{A:{B:{C:{D:{if((e|0)!=1){e=J[a+20>>2];J[695492]=0;f=d+48|0;ca(5121,f|0,c|0,J[((e>>>0<=5?e:0)<<2)+2390944>>2]);e=J[695492];J[695492]=0;if((e|0)==1)break D;J[695492]=0;h=d+56|0;ca(5121,h|0,f|0,2398753);e=J[695492];J[695492]=0;if((e|0)==1)break C;e=J[a+24>>2];J[695492]=0;f=d+72|0;ca(5121,f|0,h|0,J[((e>>>0<=5?e:0)<<2)+2390944>>2]);e=J[695492];J[695492]=0;if((e|0)==1)break B;J[695492]=0;ca(5121,d+ -88|0,f|0,2396518);e=J[695492];J[695492]=0;if((e|0)==1)break A;e=J[d+88>>2];E:{if(e){f=J[J[e>>2]+28>>2];J[695492]=0;ca(f|0,d+32|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break E;a=Z()|0;break k}J[d+32>>2]=0}J[695492]=0;aa(4993,d+120|0,d+32|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){e=J[d+32>>2];J[d+32>>2]=0;if(!e)break z;J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break z;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break z}break b}a=Z()|0;vc(d+ -32|0);break k}a=Z()|0;break d}a=Z()|0;sc(c);break d}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}e=J[d+120>>2];J[d+124>>2]=J[(e?e+12|0:2728584)>>2];sc(d+88|0);sc(d+72|0);sc(d+56|0);sc(d+48|0);sc(c);c=J[d+120>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;da(5201,g|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break e}J[695492]=0;da(5203,2395551,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;F:{G:{H:{I:{J:{K:{L:{if(J[a+48>>2]){J[695492]=0;e=aa(4989,d+88|0,2398897)|0;c=J[695492];J[695492]=0;if((c|0)== -1)break n;J[695492]=0;aa(5185,e|0,2395551)|0;c=J[695492];J[695492]=0;if((c|0)==1)break m;J[695492]=0;f=a+44|0;c=f;h=J[c+24>>2];J[d+76>>2]=c;J[d+72>>2]=h;c=J[695492];J[695492]=0;if((c|0)==1)break L;M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{c=J[d+72>>2];W:{if(!c)break W;while(1){if((f|0)!=J[d+76>>2]){J[695492]=0;da(5073,d+72|0,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break U;break l}J[695492]=0;h=d+24|0;ca(5048,h|0,2399192,c+16|0);c=J[695492];J[695492]=0;if((c|0)==1)break V;J[695492]=0;ca(5121,d+32|0,h|0,2399233); -c=J[695492];J[695492]=0;if((c|0)==1)break T;h=J[d+72>>2];if(!((f|0)==J[d+76>>2]?h:0)){J[695492]=0;da(5073,d+72|0,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break l;a=Z()|0;break O}J[695492]=0;c=d+48|0;l=d+32|0;ca(5122,c|0,l|0,h+24|0);h=J[695492];J[695492]=0;if((h|0)==1)break S;J[695492]=0;h=d+56|0;ca(5121,h|0,c|0,2399278);k=J[695492];J[695492]=0;if((k|0)==1)break R;J[695492]=0;aa(5170,e|0,h|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break Q;sc(h);sc(c);sc(l);sc(d+24|0);c=J[d+72>>2];if(!c)break W;c=J[c>> -2];J[d+72>>2]=c;if(c)continue;break}}J[695492]=0;aa(5185,e|0,2399302)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break M;break m}a=Z()|0;sc(e);break d}a=Z()|0;sc(e);break d}a=Z()|0;break N}a=Z()|0;break O}a=Z()|0;break P}a=Z()|0;sc(d+56|0)}sc(d+48|0)}sc(d+32|0)}sc(d+24|0);sc(e);break d}c=J[e>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;da(5201,g|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break m;sc(e)}J[695492]=0;da(5203,2411746,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[a+36>>2];if(c)while(1){e= -J[c+8>>2];J[695492]=0;f=d+72|0;da(5204,f|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break K;e=J[d+72>>2];e=J[(e?e+12|0:2728584)>>2];J[695492]=0;da(5201,g|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break J;sc(f);c=J[c>>2];if(c)continue;break}J[695492]=0;_(5078,d+72|0);c=J[695492];J[695492]=0;if((c|0)==1)break I;e=J[d+72>>2];c=J[g+8>>2];if(c)while(1){f=J[c+8>>2];J[695492]=0;la(5187,f|0,e|0,1,0,0);f=J[695492];J[695492]=0;if((f|0)==1)break G;c=J[c>>2];if(c)continue;break}J[j>>2]=0;J[j+4>>2]=J[682146]; -c=J[J[e>>2]+28>>2];J[695492]=0;c=$(c|0,e|0)|0;f=J[695492];J[695492]=0;X:{if((f|0)==1)break X;f=J[J[e>>2]+20>>2];J[695492]=0;ha(f|0,e|0,0,0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break X;J[695492]=0;f=aa(5009,j|0,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break X;h=J[J[e>>2]+8>>2];J[695492]=0;ga(h|0,e|0,f|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break H}a=Z()|0;sc(j);break F}a=Z()|0;sc(e);break d}a=Z()|0;break d}a=Z()|0;sc(d+72|0);break d}a=Z()|0;break d}c=J[d+72>>2];J[d+72>>2]=0;Y:{if(!c)break Y; -J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;j=J[695492];J[695492]=0;if((j|0)==1)break b;if(e)break Y;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break b}$c(g);sc(d+120|0);bc=d+128|0;break a}a=Z()|0}vc(d+72|0);break d}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;sc(e);break d}B()}sc(d+88|0)}sc(d+72|0)}sc(d+56|0)}sc(d+48|0);sc(c);break d}sc(d+88|0)}sc(d+72|0);sc(c);break d}a=Z()|0}$c(g)}sc(d+120|0);ba(a|0);B()}ea(0)|0;yc();B()}d=J[i+48>>2];g=J[(d?d+12|0:2728584)>>2];J[i+24>>2]=0;J[i+28>>2]=0; -J[i+16>>2]=0;J[i+20>>2]=0;J[695492]=0;d=i+16|0;J[d>>2]=2386024;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;c=J[695492];J[695492]=0;Z:{_:{$:{if((c|0)!=1){H[d+16|0]=0;J[695492]=0;da(5201,d|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1){a=Z()|0;$c(d);break $}sc(i+48|0);J[i+8>>2]=0;J[i+12>>2]=J[682146];aa:{ba:{ca:{while(1){da:{g=J[J[b>>2]+8>>2];J[695492]=0;c=i+48|0;g=ga(g|0,b|0,c|0,1024)|0;e=J[695492];J[695492]=0;if((e|0)==1)break da;if(!g)break aa;J[695492]=0;g=ga(5169,i+40|0,c|0,g|0)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break ca;J[695492]=0;aa(5170,i+8|0,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break ba;sc(g);continue}break}b=Z()|0;break Z}b=Z()|0;break Z}b=Z()|0;sc(g);break Z}b=J[i+8>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;da(5201,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break _;J[695492]=0;da(5202,a|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break _;sc(i+8|0);$c(d);bc=i+1072|0;return}a=Z()|0}sc(i+48|0);ba(a|0);B()}b=Z()|0}sc(i+8|0);$c(d);ba(b|0);B()}function dlb(a,b,c,d,e){a=a|0;b=b|0;c= -c|0;d=d|0;e=e|0;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,w=0;f=bc-48|0;bc=f;p=J[b+100>>2];e=nd(a,0);J[f+36>>2]=e;a:{if(e)break a;J[f+28>>2]=0;J[f+32>>2]=8;J[f+20>>2]=1;J[f+24>>2]=1;J[f+40>>2]=0;i=Zd(p,64,f+40|0);b:{c:{d:{e:{e=J[f+40>>2];if(!e){I[i+12>>1]=32767;J[i+36>>2]=f+20;d=J[a+4>>2];J[i+56>>2]=p;J[i+60>>2]=d;J[i+40>>2]=0;J[i+44>>2]=0;J[i+48>>2]=0;J[i+52>>2]=p;r=J[a+28>>2];J[f+44>>2]=0;e=1024;h=Sc(r,1,0,1024,0,f+44|0);f:{if(J[f+44>>2])break f;J[f+8>>2]=1643;H[h| -0]=0;m=256;n=1;while(1){j=e;g:while(1){g=0;d=0;while(1){if(!(g&1)){k=XL(a,h+o|0,j-o|0);l=k+o|0;o=0}if((d|0)<(l|0)){e=H[d+h|0]==(m|0);m=e?256:m;d=d+e|0}h:{i:{e=d;if((l|0)>(e|0))while(1){j:{t=e+h|0;s=K[t|0];switch(s-10|0){case 0:case 3:break i;default:break j}}e=e+1|0;if((l|0)!=(e|0))continue;break}if(!k)break f;if(!d){if(j>>>0<65536)break h;J[f+44>>2]=6;break f}k=l-d|0;Zc(h,d+h|0,k);o=k;l=d;continue g}H[t|0]=0;k:{l:{u=d+h|0;switch(K[u|0]-26|0){case 0:case 9:break k;default:break l}}if((d|0)>=(e|0))break k; -m=e-d|0;q=f+8|0;d=gc[J[f+8>>2]](u,m,n,q,i)|0;J[f+44>>2]=d;if((d|0)==-1){d=gc[J[f+8>>2]](u,m,n,q,i)|0;J[f+44>>2]=d}if(d)break f}H[t|0]=s;m=(s|0)==10?13:(s|0)==13?10:256;g=1;d=e+1|0;n=n+1|0;continue}break}break}e=j<<1;h=Sc(r,1,j,e,h,f+44|0);o=j;if(!J[f+44>>2])continue;break}}if(h)gc[J[r+8>>2]](r,h);a=J[f+44>>2];J[f+40>>2]=a;g=J[i+32>>2];if(a)break d;m:{n:{if(g){if(J[g+28>>2]!=8)I[g+32>>1]=L[g+4>>1];o:{if(!J[J[i+36>>2]>>2]|!(J[g+52>>2]|J[g+64>>2]))break o;d=I[i+12>>1];a=I[i+16>>1]-d|0;if((a|0)!=L[g+ -4>>1])I[g+4>>1]=a;if(L[g+8>>1]!=(d&65535))I[g+8>>1]=d;d=L[i+18>>1];if((d|0)!=L[g+12>>1])I[g+12>>1]=d;e=L[i+20>>1];a=e<<16>>16;if((e|0)!=L[g+14>>1]){I[g+14>>1]=e;I[g+10>>1]=0-e}a=(d<<16>>16)+a|0;if((a|0)==L[g+6>>1])break o;I[g+6>>1]=a}e=J[i>>2];if(e&1)break n;a=J[g+88>>2];if(!a)break c;a=Sc(J[g+100>>2],1,a,a+1|0,J[g+84>>2],f+40|0);g=J[i+32>>2];J[g+84>>2]=a;if(J[f+40>>2])break d;H[a+J[g+88>>2]|0]=0;g=J[i+32>>2];break c}e=J[i>>2];if(!(e&1))break m}if(e&32)break e;J[f+40>>2]=185;break d}J[f+40>>2]=3; -g=0;break c}if(!i)break b;break c}J[f+40>>2]=186}I6(g);a=J[i+32>>2];if(a)gc[J[p+8>>2]](p,a);g=0;J[i+32>>2]=0}d=J[i+52>>2];if(d){a=J[i+40>>2];if(a)gc[J[d+8>>2]](d,a);J[i+48>>2]=0;J[i+52>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0}a=J[i+24>>2];if(a)gc[J[p+8>>2]](p,a);J[i+24>>2]=0;if(i)gc[J[p+8>>2]](p,i);e=J[f+40>>2]}J[f+36>>2]=e;p:{q:{r:{s:{t:{u:{v:{if((e&255)!=176){if(e)break a;J[b+140>>2]=g;if(!(!(c&65535)|(c|0)<=0)){nM(b);e=6;break a}J[b>>2]=1;J[b+4>>2]=0;J[b+8>>2]=J[b+8>>2]|18;w:{x:{if(!g|!J[g+72>>2])break x; -c=zi(240084,J[g+92>>2]);y:{if(!c)break y;a=J[g+80>>2];if(!a)break y;a=a+(J[c>>2]<<4)|0;if(J[a+4>>2]!=1)break y;a=J[a+12>>2];if(!a)break y;z:{A:{a=K[a|0];switch(a-67|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break y;case 0:case 10:break z;default:break A}}switch(a-99|0){case 0:case 10:break z;default:break y}}J[b+8>>2]=J[b+8>>2]|4}if(!J[g+72>>2])break x;c=zi(240227,J[g+92>>2]);if(!c)break x;a=J[g+80>>2];if(!a)break x;a=J[(a+(J[c>>2]<<4)|0)+12>>2];if(!a)break x;v=b,w=ak(p,a, -f+36|0),J[v+20>>2]=w;e=J[f+36>>2];if(!e)break w;break a}J[b+20>>2]=0}n=0;J[f+8>>2]=0;J[b+12>>2]=0;l=J[b+100>>2];h=8;q=7;a=255108;t=1;j=J[b+140>>2];if(!j|!J[j+72>>2])break q;d=0;o=0;e=zi(254517,J[j+92>>2]);B:{if(!e)break B;c=J[j+80>>2];if(!c)break B;e=c+(J[e>>2]<<4)|0;if(J[e+4>>2]!=1)break B;c=J[e+12>>2];if(!c)break B;C:switch(K[c|0]-73|0){case 0:case 6:case 32:case 38:break C;default:break B}J[b+12>>2]=J[b+12>>2]|1;o=(K[J[e+12>>2]]&223)==79?255088:255096}if(!J[j+72>>2]){m=0;c=0;k=0;r=0;e=0;j=1;break r}k= -0;n=1;e=zi(254703,J[j+92>>2]);c=0;D:{if(!e)break D;d=J[j+80>>2];c=0;if(!d)break D;d=d+(J[e>>2]<<4)|0;c=0;if(J[d+4>>2]!=1)break D;d=J[d+12>>2];c=0;if(!d)break D;c=0;if((K[d|0]|32)!=98)break D;J[b+12>>2]=J[b+12>>2]|2;n=0;c=255103}if(!J[j+72>>2])break u;m=0;e=zi(254503,J[j+92>>2]);k=0;E:{if(!e)break E;d=J[j+80>>2];k=0;if(!d)break E;d=d+(J[e>>2]<<4)|0;k=0;if(J[d+4>>2]!=1)break E;d=J[d+12>>2];k=0;if(!d)break E;e=K[d|0];k=0;if(!e)break E;k=0;if((e|0)==78)break E;k=0;if((e|0)==110)break E;k=d}if(!J[j+72>> -2])break t;e=zi(242941,J[j+92>>2]);if(!e)break u;d=J[j+80>>2];if(!d)break u;d=d+(J[e>>2]<<4)|0;if(J[d+4>>2]!=1)break t;m=J[d+12>>2];if(!m)break u;d=0;e=K[m|0];if(!e|(e|0)==78|(e|0)==110)break v;d=Qc(m);e=d+1|0;break s}nM(b);e=2;break a}m=0;e=0;break s}m=0}d=0;e=0}if(n){c=0;r=0;j=1;break r}r=Qc(c);e=(r+e|0)+1|0;j=0}n=0;F:{if(!o){s=0;break F}s=Qc(o);e=(s+e|0)+1|0}t=!o;u=!k;if(k){n=Qc(k);e=(n+e|0)+1|0}if(!e)break p;a=m;q=d;h=e;break p}r=0;k=0;o=0;c=0;j=1;s=0;u=1}h=Zd(l,h,f+8|0);J[b+24>>2]=h;e=J[f+8>> -2];if(e)break a;if(a){m=tc(h,a,q);G:{if(!q)break G;l=0;e=0;if(q>>>0>=4){h=q&-4;a=0;while(1){d=e+m|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|1)|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|2)|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|3)|0;if(K[d|0]==32)H[d|0]=45;e=e+4|0;a=a+4|0;if((h|0)!=(a|0))continue;break}}d=q&3;if(!d)break G;while(1){a=e+m|0;if(K[a|0]==32)H[a|0]=45;e=e+1|0;l=l+1|0;if((d|0)!=(l|0))continue;break}}h=m+q|0}if(!j){if(J[b+24>>2]!=(h|0)){H[h|0]=32;h=h+1|0}h=tc(h,c,r)+r|0}if(!t){if(J[b+24>>2]!=(h|0)){H[h|0]=32;h= -h+1|0}h=tc(h,o,s)+s|0}if(!u){if(J[b+24>>2]!=(h|0)){H[h|0]=32;h=h+1|0}h=tc(h,k,n);H:{if(!n)break H;l=0;e=0;if(n>>>0>=4){d=n&-4;a=0;while(1){c=e+h|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|1)|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|2)|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|3)|0;if(K[c|0]==32)H[c|0]=45;e=e+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=n&3;if(!c)break H;while(1){a=e+h|0;if(K[a|0]==32)H[a|0]=45;e=e+1|0;l=l+1|0;if((c|0)!=(l|0))continue;break}}h=h+n|0}H[h|0]=0;e=J[f+8>>2];J[f+36>>2]=e;if(e)break a;a=J[g+48>> -2];J[b+28>>2]=1;J[b+16>>2]=a+1;c=Sc(p,16,0,1,0,f+36|0);J[b+32>>2]=c;e=J[f+36>>2];if(e)break a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;e=J[g+40>>2];if(e-32768>>>0<=4294901760){e=(e|0)<0?-32767:32767;J[g+40>>2]=e}l=J[g+44>>2];if(l-32768>>>0<=4294901760){l=(l|0)<0?-32767:32767;J[g+44>>2]=l}I[c>>1]=e+l;a=zr(g,240336);I:{if(a){a=J[a+12>>2];d=32767;if(a-327666>>>0<4294311965)break I;a=(a+5|0)/10|0;d=a>>31;d=(a^d)-d|0;break I}d=Dd(I[c>>1],2,3)}I[c+2>>1]=d;a=zr(g,240508);J:{if(a){a=J[a+12>>2];d=32767; -if(a-328899>>>0<4294309499)break J;d=a;a=a>>31;d=Dd((d^a)-a|0,460800,72270);break J}a=J[g+16>>2];if(a){d=a>>>0>32767?32767:a<<6;break J}d=I[c+2>>1]<<6}J[c+4>>2]=d;a=zr(g,240634);if(a){d=J[a+12>>2];a=d>>31;J[c+12>>2]=d-32768>>>0<4294901761?2097088:(a^d)-a<<6}a=zr(g,240784);a=J[(a?a+12|0:g+20|0)>>2];d=0;K:{if(!a)break K;d=32767;if(a-32768>>>0<4294901761)break K;d=a;a=a>>31;d=(d^a)-a|0}L:{M:{N:{O:{a=zr(g,240887);a=J[(a?a+12|0:g+24|0)>>2];if(a){if(a-32768>>>0<4294901761)break O;e=a;a=a>>31;a=(e^a)-a| -0;e=J[c+12>>2];if(e)break M;e=J[c+4>>2];J[c+12>>2]=e;if(!(a&65535))break L;j=c+12|0;break N}e=J[c+12>>2];if(e)break L;e=J[c+4>>2];J[c+12>>2]=e;break L}a=32767;e=J[c+12>>2];if(e)break M;e=J[c+4>>2];J[c+12>>2]=e;j=c+12|0}e=Dd(e,a&65535,72);J[j>>2]=e}if(!d)break L;a=a&65535;if(!a)break L;e=Dd(e,d,a)}J[c+8>>2]=e;q=J[g+56>>2];l=Sc(p,8,0,J[g+48>>2],0,f+36|0);J[b+144>>2]=l;e=J[f+36>>2];if(e)break a;J[b+148>>2]=0;j=J[g+48>>2];P:{if(!j)break P;k=J[g+36>>2];e=0;if((j|0)!=1){c=j&-2;o=0;while(1){d=J[(q+P(e,36)| -0)+4>>2];a=l+(e<<3)|0;I[a+4>>1]=e;J[a>>2]=d;if((d|0)==(k|0))J[b+148>>2]=e;h=e|1;d=J[(q+P(h,36)|0)+4>>2];a=l+(h<<3)|0;I[a+4>>1]=h;J[a>>2]=d;if((d|0)==(k|0))J[b+148>>2]=h;e=e+2|0;o=o+2|0;if((c|0)!=(o|0))continue;break}}if(!(j&1))break P;c=J[(q+P(e,36)|0)+4>>2];a=l+(e<<3)|0;I[a+4>>1]=e;J[a>>2]=c;if((c|0)!=(k|0))break P;J[b+148>>2]=e}Q:{c=zr(g,240994);a=zr(g,241158);if(!c|!a|(J[c+4>>2]!=1|J[a+4>>2]!=1))break Q;if(!J[c+12>>2])break Q;a=J[a+12>>2];if(!a)break Q;d=a;a=f+36|0;v=b,w=ak(p,d,a),J[v+132>>2]= -w;e=J[f+36>>2];if(e)break a;a=ak(p,J[c+12>>2],a);J[b+136>>2]=a;e=J[f+36>>2];if(e)break a;R:{S:{T:{U:{if(!((K[a|0]|32)!=105|(K[a+1|0]|32)!=115|(K[a+2|0]|32)!=111)){a=a+3|0;if(!Ec(a,241303))break U;if(!Ec(a,241438))if(!Ec(J[b+132>>2],241543))break U;if(!Ec(a,241638))break T}J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;break R}J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;break S}a=Ec(J[b+132>>2],241748);J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;if(a)break R}J[f+12>>2]=1970170211;J[f+16>>2]=65539}e=Ek(252320,0,f+8|0,0); -break a}J[f+12>>2]=1094995778;J[f+16>>2]=7;J[f+8>>2]=b;e=Ek(252320,0,f+8|0,0);if(!J[b+36>>2])break a;J[b+92>>2]=J[J[b+40>>2]>>2]}bc=f+48|0;return e|0}function KN(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,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=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;F=a+16|0;G=a+12|0;da=a+80|0;f=J[a+72>>2];while(1){H[a+101|0]=0;if(!f){d=J[a+96>>2]+1|0;J[a+96>>2]=d;J[a+32>>2]=0;J[a+36>> -2]=0;J[a+24>>2]=0;J[a+28>>2]=0;H[a+100|0]=1;a:{c=J[a+76>>2];b=J[c>>2];if((b|0)>(d|0)){f=J[J[c+8>>2]+(d<<2)>>2];break a}f=da;if((b|0)==(d|0))break a;return 1}J[a+72>>2]=f}b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(K[f|0]){case 0:if(!K[a+100|0]){M=J[a+20>>2];I=J[a+32>>2];n=J[M+4>>2]+(I<<2)|0;break m}Q=0;H[a+100|0]=0;b=0;break d;case 1:if(!K[a+100|0]){y=J[a+32>>2];b=J[a+20>>2];W=J[b>>2];if((y|0)>=(W|0))break n;n=J[b+4>>2]+(y<<2)|0;break l}H[a+100|0]=0;R=K[f+1|0];b=0;break e;case 2:if(!K[a+100|0]){z= -J[a+36>>2]+1|0;break k}J[a+48>>2]=0;J[a+52>>2]=0;j=J[a+8>>2];if((j|0)>0){g=J[G>>2];b=0;c=0;i=0;while(1){k=J[g>>2];if((k|0)>0){o=J[g+12>>2];l=J[g+8>>2];e=J[g+4>>2];h=0;while(1){d=k+(h^-1)|0;m=o<>2];b=b?(b|0)<(m|0)?b:m:m;d=l<>2];c=c?(c|0)<(d|0)?c:d:d;e=e+20|0;h=h+1|0;if((k|0)!=(h|0))continue;break}J[a+52>>2]=b;J[a+48>>2]=c}g=g+16|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}H[a+100|0]=0;S=K[f+1|0];b=0;break f;case 3:if(!K[a+100|0]){A=J[a+36>>2]+1|0;break j}J[a+48>>2]=0;J[a+52>>2]=0; -T=J[a+8>>2];if((T|0)>0){g=J[G>>2];b=0;c=0;i=0;while(1){m=J[g>>2];if((m|0)>0){o=J[g+12>>2];l=J[g+8>>2];e=J[g+4>>2];h=0;while(1){d=m+(h^-1)|0;j=o<>2];b=b?(b|0)<(j|0)?b:j:j;d=l<>2];c=c?(c|0)<(d|0)?c:d:d;e=e+20|0;h=h+1|0;if((m|0)!=(h|0))continue;break}J[a+52>>2]=b;J[a+48>>2]=c}g=g+16|0;i=i+1|0;if((T|0)!=(i|0))continue;break}}H[a+100|0]=0;X=J[a+60>>2];b=0;break g;case 4:break o;default:break b}if(!K[a+100|0]){C=J[a+36>>2]+1|0;break i}H[a+100|0]=0;N=J[f+4>>2];J[a+24>>2]=N;s=J[a+12>>2]+ -(N<<4)|0;b=0;break h}fa(199948,198881,190,212206);B()}b=1;break d}b=1;break e}b=1;break f}b=1;break g}b=1}p:while(1){q:{r:{if(!b){J[F>>2]=s;if(J[f+8>>2]<=(N|0))break b;q=J[s+8>>2];x=J[s>>2];g=x-1|0;b=J[s+4>>2];e=q<>2];J[a+48>>2]=e;i=J[s+12>>2];h=i<>2];J[a+52>>2]=h;if((x|0)>=2){c=1;if((x|0)!=2){m=g&-2;k=0;while(1){j=(c^-1)+x|0;d=i<>2];l=(d|0)>(h|0)?h:d;o=(x-c|0)-2|0;d=i<>2];h=(d|0)>(l|0)?l:d;d=q<>2];l=(e|0)<(d|0)?e:d;d=q<>2];e=(d|0)>(l|0)? -l:d;c=c+2|0;b=b+40|0;k=k+2|0;if((m|0)!=(k|0))continue;break}}if(g&1){d=(c^-1)+x|0;c=i<>2];h=(c|0)>(h|0)?h:c;b=q<>2];e=(b|0)>(e|0)?e:b}J[a+52>>2]=h;J[a+48>>2]=e}Y=J[a+60>>2];b=0;break r}J[a+36>>2]=C;s:{t:{if(J[a>>2]<=(C|0)){t=J[a+20>>2];break t}t=J[a+20>>2];if(J[f+12>>2]>(C|0))break s}b=1;break r}n=J[t+4>>2]+(J[a+32>>2]<<2)|0;b=J[n>>2];if((C|0)>=(b|0))break c;C=C+1|0;break q}u:while(1){v:{w:{x:{if(!b){J[a+44>>2]=Y;if(J[a+68>>2]<=(Y|0))break x;Z=J[a+56>>2];b=0;break v}t=t+20|0;J[a+ -20>>2]=t;D=J[a+28>>2]+1|0;J[a+28>>2]=D;s=J[a+16>>2];x=J[s>>2];break w}N=J[a+24>>2]+1|0;J[a+24>>2]=N;s=s+16|0;b=0;continue p}b=1}while(1){y:{z:{A:{B:{C:{if(!b){J[a+40>>2]=Z;if(J[a+64>>2]<=(Z|0))break C;D=K[f+1|0];J[a+28>>2]=D;t=J[s+4>>2]+P(D,20)|0;J[a+20>>2]=t;b=1;continue}if(!((x|0)<=(D|0)|K[f+2|0]<=(D|0))){m=J[t>>2];if(!m)break z;j=J[s+12>>2];r=(D^-1)+x|0;p=j<>2];u=(o+l|0)/(p|0)|0;d=J[s+8>>2];v=d<>2];e=(c+b|0)/(v|0)|0;h=J[t+12>>2];q=h+r|0;k=J[a+40>>2];g=J[t+ -8>>2];i=g+r|0;if(!((k|0)%(d<>2];if(!((b|0)%(j<>g)-(e>>>g|0)|0)+P(J[t+16>>2],((b+o|0)/(p|0)>>h)-(u>>>h|0)|0)|0;J[a+32>>2]=b;C=0;if((b|0)>=(m|0))break B;break q}c=J[a+40>>2];b=J[a+48>>2];Z=c+b-(c|0)%(b|0)|0;break y}c=J[a+44>>2];b=J[a+52>>2];Y=c+b-(c|0)%(b|0)|0;break A}fa(199948,198881,478,212254);B()}b=0;continue u}b=1;continue u}b=0;continue}}}b=1;continue}}D:while(1){E:{F:{if(!b){J[a+ -44>>2]=X;if(J[a+68>>2]<=(X|0))break b;_=J[a+56>>2];b=0;break F}J[a+36>>2]=A;G:{H:{if(J[a>>2]<=(A|0)){w=J[a+20>>2];break H}w=J[a+20>>2];if(J[f+12>>2]>(A|0))break G}b=1;break F}n=J[w+4>>2]+(J[a+32>>2]<<2)|0;b=J[n>>2];if((A|0)>=(b|0))break c;A=A+1|0;break E}I:while(1){J:{K:{L:{if(!b){J[a+40>>2]=_;if(J[a+64>>2]<=(_|0))break L;L=J[f+4>>2];J[a+24>>2]=L;b=J[G>>2]+(L<<4)|0;J[F>>2]=b;c=0;break J}w=w+20|0;J[a+20>>2]=w;E=J[a+28>>2]+1|0;J[a+28>>2]=E;b=J[a+16>>2];break K}c=J[a+44>>2];b=J[a+52>>2];X=c+b-(c|0)% -(b|0)|0;b=0;continue D}c=1}while(1){M:{N:{O:{P:{Q:{if(!c){if(J[f+8>>2]<=(L|0)|(L|0)>=(T|0))break Q;E=K[f+1|0];J[a+28>>2]=E;w=J[b+4>>2]+P(E,20)|0;J[a+20>>2]=w;c=1;continue}c=J[b>>2];if(!((c|0)<=(E|0)|K[f+2|0]<=(E|0))){m=J[w>>2];if(!m)break N;j=J[b+12>>2];r=c+(E^-1)|0;p=j<>2];u=(o+l|0)/(p|0)|0;d=J[b+8>>2];v=d<>2];e=(c+b|0)/(v|0)|0;h=J[w+12>>2];q=h+r|0;k=J[a+40>>2];g=J[w+8>>2];i=g+r|0;if(!((k|0)%(d<>2];if(!((b| -0)%(j<>g)-(e>>>g|0)|0)+P(J[w+16>>2],((b+o|0)/(p|0)>>h)-(u>>>h|0)|0)|0;J[a+32>>2]=b;A=0;if((b|0)>=(m|0))break P;break E}b=b+16|0;J[a+16>>2]=b;L=J[a+24>>2]+1|0;J[a+24>>2]=L;T=J[a+8>>2];break M}c=J[a+40>>2];b=J[a+48>>2];_=c+b-(c|0)%(b|0)|0;break O}fa(199948,198881,391,212238);B()}b=0;continue I}b=1;continue I}c=0;continue}}}b=1;continue}}R:while(1){S:{T:{if(!b){J[a+28>>2]=S;if(K[f+2|0]<=(S|0)|J[a+4>>2]<=(S|0))break b;$=J[a+60>>2];b=0; -break T}J[a+36>>2]=z;if(!(J[a>>2]<=(z|0)|J[f+12>>2]<=(z|0))){n=J[J[a+20>>2]+4>>2]+(J[a+32>>2]<<2)|0;b=J[n>>2];if((z|0)>=(b|0))break c;z=z+1|0;break S}b=1}U:while(1){V:{W:{X:{if(!b){J[a+44>>2]=$;if(J[a+68>>2]<=($|0))break X;aa=J[a+56>>2];b=0;break V}ba=1;O=J[a+24>>2]+1|0;ca=F;break W}S=J[a+28>>2]+1|0;b=0;continue R}b=1}while(1){Y:{Z:{_:{$:{aa:{if(!b){J[a+40>>2]=aa;if(J[a+64>>2]<=(aa|0))break aa;ca=G;O=J[f+4>>2];ba=O;b=1;continue}J[a+24>>2]=O;d=J[ca>>2]+(ba<<4)|0;J[F>>2]=d;if(!(J[f+8>>2]<=(O|0)|J[a+ -8>>2]<=(O|0))){c=J[a+28>>2];b=J[d>>2];if((c|0)>=(b|0))break Z;u=J[d+4>>2]+P(c,20)|0;J[a+20>>2]=u;o=J[u>>2];if(!o)break Z;p=b+(c^-1)|0;v=J[d+12>>2]<>2];e=(l+c|0)/(v|0)|0;h=J[d+8>>2]<>2];q=(d+b|0)/(h|0)|0;g=J[u+12>>2];i=g+p|0;k=J[u+8>>2];m=k+p|0;j=J[a+40>>2];ba:{ca:{if((j|0)!=(b|0)){b=-1<>2];da:{ea:{if((b|0)!=(c|0)){c=-1<>k)-(q>>>k|0)|0)+P(J[u+16>>2],((b+l|0)/(v|0)>>g)-(e>>>g|0)|0)|0;J[a+32>>2]=b;z=0;if((b|0)>=(o|0))break $;break S}c=J[a+40>>2];b=J[a+48>>2];aa=c+b-(c|0)%(b|0)|0;break Y}c=J[a+44>>2];b=J[a+52>>2];$=c+b-(c|0)%(b|0)|0;break _}fa(199948,198881,297,212222);B()}b=0;continue U}b=1;continue U}b=0;continue}}}b=1;continue}}fa:while(1){ga:{if(!b){J[a+28>>2]=R;if(J[a+4>>2]<=(R|0))break b;U=0;if(K[f+2|0]<=(R|0))break b;b=0;break ga}y=y+1|0;J[a+32>>2]=y;n=n+4|0;b=1}ha:while(1){ia:{ja:{if(!b){J[a+36>>2]=U; -if(J[a>>2]<=(U|0)|J[f+12>>2]<=(U|0))break ja;b=J[f+4>>2];J[a+24>>2]=b;c=J[G>>2]+(b<<4)|0;e=0;break ia}if((y|0)>=(W|0)){c=J[F>>2];b=J[a+24>>2];e=1;break ia}b=J[a+36>>2];if((b|0)>=J[n>>2])break c;b=1;continue fa}R=J[a+28>>2]+1|0;b=0;continue fa}while(1){ka:{la:{ma:{if(!e){J[a+16>>2]=c;if(J[a+8>>2]<=(b|0)|J[f+8>>2]<=(b|0))break ma;d=J[a+28>>2];if((d|0)>=J[c>>2])break ka;b=J[c+4>>2];y=0;J[a+32>>2]=0;b=b+P(d,20)|0;J[a+20>>2]=b;W=J[b>>2];n=J[b+4>>2];b=1;continue ha}b=b+1|0;J[a+24>>2]=b;c=c+16|0;break la}U= -J[a+36>>2]+1|0;b=0;continue ha}e=0;continue}e=1;continue}}}}na:while(1){oa:{if(!b){J[a+36>>2]=Q;if(J[a>>2]<=(Q|0)|J[f+12>>2]<=(Q|0))break b;V=K[f+1|0];b=0;break oa}I=I+1|0;J[a+32>>2]=I;n=n+4|0;b=1}pa:while(1){qa:{ra:{if(!b){J[a+28>>2]=V;if(J[a+4>>2]<=(V|0)|K[f+2|0]<=(V|0))break ra;b=J[f+4>>2];J[a+24>>2]=b;c=J[G>>2]+(b<<4)|0;e=0;break qa}if(J[M>>2]<=(I|0)){c=J[F>>2];b=J[a+24>>2];e=1;break qa}b=J[a+36>>2];if((b|0)>=J[n>>2])break c;b=1;continue na}Q=J[a+36>>2]+1|0;b=0;continue na}while(1){sa:{ta:{if(!e){J[a+ -16>>2]=c;if(J[a+8>>2]<=(b|0)){e=J[a+28>>2];break sa}e=J[a+28>>2];if(J[f+8>>2]<=(b|0))break sa;if(J[c>>2]<=(e|0))break ta;b=J[c+4>>2];I=0;J[a+32>>2]=0;M=b+P(e,20)|0;J[a+20>>2]=M;n=J[M+4>>2];b=1;continue pa}b=b+1|0;J[a+24>>2]=b;c=c+16|0;e=0;continue}e=1;continue}break}V=e+1|0;b=0;continue}}}J[n>>2]=b+1;H[a+101|0]=1;J[a+104>>2]=J[a+104>>2]+1;return 0}f=0;J[a+72>>2]=0;continue}}function rIa(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,y= -0;h=J[J[a+16>>2]+40>>2];if(!h)return 0;c=bc-192|0;bc=c;a:{b:{c:{d:{e:{f:{a=J[h>>2];if(!a)break f;j=b+1|0;a=Ni(J[a+28>>2],j);if(!a)break f;J[c+188>>2]=0;J[c+180>>2]=0;J[c+184>>2]=0;d=J[h>>2];J[695492]=0;k=aa(3534,d|0,j|0)|0;d=J[695492];J[695492]=0;g:{h:{i:{j:{k:{l:{m:{n:{if((d|0)!=1){if(k){q=J[k+4>>2];if((q|0)>0){l=J[a+12>>2];g=(b|0)<=1?1:b;r=b+2|0;b=0;while(1){d=J[J[k>>2]+(b<<2)>>2];o:{if(!d)break o;a=J[d+32>>2];if(!a)break o;p=O[d+24>>3];m=O[l+56>>3];n=O[l+32>>3];s=O[d+16>>3];t=O[d+8>>3];u=O[d>> -3];d=J[J[a>>2]+12>>2];J[695492]=0;d=$(d|0,a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:switch(d|0){case 0:d=J[a+8>>2];if(!d)break D;a=J[J[h>>2]+28>>2];J[695492]=0;a=aa(3278,a|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break B;if(a)break C;break;case 4:break x;case 3:break y;default:break E}d=0;H[c+80|0]=0;H[c+91|0]=0;i=0;a=1;break p}a=J[a+4>>2];J[695492]=0;e=$(4,72)|0;d=J[695492];J[695492]=0;if((d|0)==1)break B;J[695492]=0;a=HY(e,a);d=J[695492]; -J[695492]=0;if((d|0)!=1)break C;d=Z()|0;qc(e);break b}if(!J[a+4>>2])break A;d=J[J[h>>2]+28>>2];e=J[a+12>>2];f=J[a+8>>2];J[695492]=0;f=ga(3279,d|0,f|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break z;d=Z()|0;break b}d=Z()|0;break b}f=J[a+8>>2]}J[695492]=0;d=c+8|0;da(2667,d|0,f-1|0);e=J[695492];J[695492]=0;F:{G:{H:{I:{if((e|0)!=1){J[695492]=0;d=ga(3536,d|0,0,838519)|0;e=J[695492];J[695492]=0;if((e|0)==1)break I;J[c+88>>2]=J[d+8>>2];e=J[d+4>>2];J[c+80>>2]=J[d>>2];J[c+84>>2]=e;J[d>>2]=0;J[d+4>>2]=0; -J[d+8>>2]=0;if(H[c+19|0]<0)qc(J[c+8>>2]);J[695492]=0;e=$(4,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break H;J[695492]=0;d=aa(3182,e|0,(H[c+91|0]<0?J[c+80>>2]:c+80|0)|0)|0;o=J[695492];J[695492]=0;if((o|0)==1)break G;e=J[J[h>>2]+28>>2];J[695492]=0;e=aa(3280,e|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break H;e=J[e+12>>2];i=O[e+56>>3]-O[e+40>>3];v=O[a+40>>3];if(H[c+91|0]<0)qc(J[c+80>>2]);qc(a);i=i-v;break w}d=Z()|0;break b}d=Z()|0;if(H[c+19|0]>=0)break b;qc(J[c+8>>2]);break b}d=Z()|0;break F}d=Z()| -0;qc(e)}if(H[c+91|0]>=0)break b;qc(J[c+80>>2]);break b}d=J[a+4>>2];J[695492]=0;a=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[695492]=0;d=aa(3183,a|0,d|0)|0;e=J[695492];J[695492]=0;i=0;if((e|0)!=1)break w;d=Z()|0;qc(a);break b}d=J[a+4>>2];J[695492]=0;a=sd(d,838600);e=J[695492];J[695492]=0;if((e|0)==1)break d;J:{if(!a){a=J[J[J[h>>2]+28>>2]+20>>2];a=(a|0)>(r|0)?r:a;break J}J[695492]=0;e=sd(d,838725);a=J[695492];J[695492]=0;if((a|0)==1)break d;a=g;if(!e)break J;J[695492]=0;d=sd(d,838818);a= -J[695492];J[695492]=0;if((a|0)==1)break d;a=1;if(d)break J;a=J[J[J[h>>2]+28>>2]+20>>2]}J[695492]=0;d=c+8|0;da(2667,d|0,a-1|0);a=J[695492];J[695492]=0;if((a|0)==1)break v;J[695492]=0;a=ga(3536,d|0,0,838519)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;J[c+88>>2]=J[a+8>>2];d=J[a+4>>2];J[c+80>>2]=J[a>>2];J[c+84>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(H[c+19|0]<0)qc(J[c+8>>2]);J[695492]=0;a=$(4,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break t;J[695492]=0;d=aa(3182,a|0,(H[c+91|0]<0?J[c+80>>2]:c+80| -0)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;if(H[c+91|0]<0)qc(J[c+80>>2]);i=0}a=J[d>>2];if(a>>>0<2147483632)break q;J[695492]=0;_(1623,c+80|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;break e}d=Z()|0;break b}d=Z()|0;if(H[c+19|0]>=0)break b;qc(J[c+8>>2]);break b}d=Z()|0;break r}d=Z()|0;qc(a)}if(H[c+91|0]>=0)break b;qc(J[c+80>>2]);break b}f=J[d+4>>2];K:{if(a>>>0<=10){H[c+91|0]=a;e=c+80|0;break K}J[695492]=0;o=(a|15)+1|0;e=$(4,o|0)|0;w=J[695492];J[695492]=0;if((w|0)==1)break g;J[c+80>>2]= -e;J[c+84>>2]=a;J[c+88>>2]=o|-2147483648}x=Zc(e,f,a)+a|0,y=0,H[x|0]=y;a=0}O[c+96>>3]=i;i=m-p;O[c+112>>3]=i;O[c+128>>3]=m-t-i;i=u-n;O[c+104>>3]=i;O[c+120>>3]=s-n-i;e=J[c+184>>2];L:{if(e>>>0>2]){f=J[c+84>>2];J[e>>2]=J[c+80>>2];J[e+4>>2]=f;J[e+8>>2]=J[c+88>>2];J[c+88>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;f=J[c+132>>2];J[e+48>>2]=J[c+128>>2];J[e+52>>2]=f;f=J[c+124>>2];J[e+40>>2]=J[c+120>>2];J[e+44>>2]=f;f=J[c+116>>2];J[e+32>>2]=J[c+112>>2];J[e+36>>2]=f;f=J[c+108>>2];J[e+24>>2]=J[c+104>>2];J[e+28>>2]= -f;f=J[c+100>>2];J[e+16>>2]=J[c+96>>2];J[e+20>>2]=f;J[c+184>>2]=e+56;break L}J[695492]=0;da(3537,c+180|0,c+80|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;if(H[c+91|0]>=0)break L;qc(J[c+80>>2])}if(a)break o;qc(Rc(d))}b=b+1|0;if((q|0)!=(b|0))continue;break}}qc(GY(k))}a=J[J[h>>2]+28>>2];J[695492]=0;a=aa(3280,a|0,j|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;d=J[J[a+12>>2]+168>>2];J[695492]=0;a=lY(c+80|0);b=J[695492];J[695492]=0;if((b|0)==1)break n;J[a>>2]=0;J[695492]=0;b=$(4,224)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break k;J[695492]=0;k=ma(3539,b|0,0,a|0,0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[h>>2];J[695492]=0;cb(3519,a|0,k|0,j|0,72,72,0-d|0,0,1,0,0,0);a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[h>>2];J[695492]=0;ca(3540,a|0,k|0,j|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;l=$(3541,k|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m;e=0;M:{N:{O:{while(1){J[695492]=0;a=J[J[l>>2]+8>>2];b=J[695492];J[695492]=0;P:{if((b|0)!=1){if((a|0)>(e|0))break P;gc[J[J[k>> -2]+4>>2]](k);J[695492]=0;d=$(3543,c+180|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m;g=J[c+180>>2];if(!g)break f;a=g;b=J[c+184>>2];if((a|0)!=(b|0)){while(1){a=b-56|0;if(H[b-45|0]<0)qc(J[a>>2]);b=a;if((a|0)!=(g|0))continue;break}a=J[c+180>>2]}J[c+184>>2]=g;qc(a);break f}d=Z()|0;break b}J[695492]=0;h=iY(l,e);a=J[695492];J[695492]=0;Q:{R:{S:{T:{U:{V:{if((a|0)!=1){if(!h)break R;J[695492]=0;b=$(3545,h|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break V;if(!b)break R;a=J[b>>2];if(a>>>0>=2147483632){J[695492]= -0;_(1623,c+68|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;d=Z()|0;break b}d=J[b+4>>2];W:{X:{if(a>>>0<=10){H[c+79|0]=a;b=c+68|0;break X}J[695492]=0;g=(a|15)+1|0;b=$(4,g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break W;J[c+68>>2]=b;J[c+72>>2]=a;J[c+76>>2]=g|-2147483648}x=Zc(b,d,a)+a|0,y=0,H[x|0]=y;a=K[c+79|0];f=a<<24>>24;b=(f|0)<0;g=b?J[c+68>>2]:c+68|0;b=b?J[c+72>>2]:a;j=g+b|0;d=g;a=b;if((a|0)<7)break U;Y:{while(1){a=pg(d,104,a-6|0);if(!a)break Y;if(Wc(a,839072,7)){d=a+1|0;a=j-d|0;if((a|0)>=7)continue; -break Y}break}if((a|0)==(j|0))break Y;a=a-g|0;if((a|0)!=-1)break T}d=g;a=b;if((a|0)<8)break U;while(1){a=pg(d,104,a-7|0);if(!a)break U;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1886680168|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=791624307){d=a+1|0;a=j-d|0;if((a|0)>=8)continue;break U}break}if((a|0)==(j|0))break U;a=a-g|0;if((a|0)==-1)break U;break T}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;break b}a=g;if((b|0)<4)break S;while(1){a=pg(a,119,b-3|0);if(!a)break S;if((K[a|0]|K[a+ -1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=779581303){a=a+1|0;b=j-a|0;if((b|0)>=4)continue;break S}break}if((a|0)==(j|0))break S;a=a-g|0;if((a|0)==-1)break S}J[695492]=0;ca(3546,c+68|0,0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break N;n=O[h+24>>3];p=O[h+8>>3];i=O[h+16>>3];m=O[h>>3];Z:{if(H[c+79|0]>=0){J[c+16>>2]=J[c+76>>2];a=J[c+72>>2];J[c+8>>2]=J[c+68>>2];J[c+12>>2]=a;break Z}J[695492]=0;ca(2672,c+8|0,J[c+68>>2],J[c+72>>2]);a=J[695492];J[695492]=0;if((a|0)==1)break Q}J[c+24>>2]=0;J[c+28>>2]=0;O[c+40>> -3]=i;O[c+56>>3]=n-i;O[c+32>>3]=m;O[c+48>>3]=p-m;a=J[c+184>>2];_:{if(a>>>0>2]){b=J[c+12>>2];J[a>>2]=J[c+8>>2];J[a+4>>2]=b;J[a+8>>2]=J[c+16>>2];J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[c+60>>2];J[a+48>>2]=J[c+56>>2];J[a+52>>2]=b;b=J[c+52>>2];J[a+40>>2]=J[c+48>>2];J[a+44>>2]=b;b=J[c+44>>2];J[a+32>>2]=J[c+40>>2];J[a+36>>2]=b;b=J[c+36>>2];J[a+24>>2]=J[c+32>>2];J[a+28>>2]=b;b=J[c+28>>2];J[a+16>>2]=J[c+24>>2];J[a+20>>2]=b;J[c+184>>2]=a+56;break _}J[695492]=0;da(3537,c+180|0,c+8|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break O;if(H[c+19|0]>=0)break _;qc(J[c+8>>2])}f=K[c+79|0]}if(f<<24>>24>=0)break R;qc(J[c+68>>2])}e=e+1|0;continue}break}d=Z()|0;break M}d=Z()|0;if(H[c+19|0]>=0)break M;qc(J[c+8>>2]);break M}d=Z()|0}if(H[c+79|0]>=0)break b;qc(J[c+68>>2]);break b}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;qc(b);break b}d=Z()|0;break b}d=Z()|0;break b}d=Z()|0;if(H[c+91|0]>=0)break b;qc(J[c+80>>2]);break b}d=Z()|0;break b}d=Z()|0;break b}bc=c+192|0;break a}B()}d=Z()|0;break b}d=Z()| -0}uX(c+180|0);ba(d|0);B()}return d|0}function Uq(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0;r=bc-368|0;bc=r;a:{b:{v=a;q=J[v>>2];c:{if((q|0)>=2){q=J[v+4>>2];d:{if(K[q|0]!=254|K[q+1|0]!=255)break d;q=rc(8);J[695492]=0;v=$(3184,q|0)|0;t=J[695492];J[695492]=0;if((t|0)==1)break c;if(J[a>>2]<4)break d;q=2;z=3;while(1){t=J[a+4>>2];if(K[t+q|0])t=63;else t=K[t+z|0];zd(v,t<<24>>24);q=q+2|0;z=q|1;if((z|0)>2])continue;break}}q=J[v>>2]}if(!q){if((a|0)==(v| -0))break a;qc(Rc(v));break a}e:{f:{if(b){z=-1;t=rt(b);if(J[t+8>>2]<3)break f;w=sd(J[J[t>>2]+8>>2],804055)?-1:0;g:{if(J[t+8>>2]<4)break g;w=sd(J[J[t>>2]+12>>2],804055)?w:1;if(J[t+8>>2]<5)break g;w=sd(J[J[t>>2]+16>>2],804055)?w:2;q=6;if(J[t+8>>2]<6)break g;w=sd(J[J[t>>2]+20>>2],804055)?w:3;if(J[t+8>>2]<7)break g;while(1){b=q<<2;h:{if(!sd(J[b+J[t>>2]>>2],804055)){w=q-2|0;break h}z=sd(J[b+J[t>>2]>>2],804460)?z:q-6|0}q=q+1|0;if((q|0)>2])continue;break}}i:{j:{if(!i|(w|0)<0)break j;b=J[J[t>>2]+(w<< -2)>>2];if(!sd(b,825405))break j;Eh(b);od(b,825405);break i}if((w|0)<0)break f}k:{l:{i=J[J[t>>2]+(w<<2)>>2];if(J[i>>2]<=0)break l;b=J[i+4>>2];if(K[b|0]!=47)break l;if(c){b=mI(c,b+1|0);if(b)break k}b=0;xc(1,-1,825516,0);Eh(i);od(i,825700);break k}b=0;xc(1,-1,827497,0)}s=Wf(J[J[(J[t>>2]+(w<<2)|0)+4>>2]+4>>2]);break b}z=-1;xc(1,-1,827691,0);q=rc(16);J[695492]=0;t=$(3185,q|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break e;break c}xc(1,-1,827691,0)}w=J[t+8>>2];q=rc(8);J[695492]=0;b=aa(3182,q|0,825700)|0; -c=J[695492];J[695492]=0;if((c|0)!=1)m:{id(t,b);q=rc(8);J[695492]=0;b=aa(3182,q|0,827980)|0;c=J[695492];J[695492]=0;if((c|0)==1)break m;id(t,b);b=0;q=rc(8);J[695492]=0;c=aa(3182,q|0,804055)|0;i=J[695492];J[695492]=0;if((i|0)==1)break m;id(t,c);break b}}a=Z()|0;qc(q);ba(a|0);B()}if(h)od(p,828184);od(p,828347);n:{o:{p:{if((j|0)!=270){if((j|0)!=180){if((j|0)!=90)break o;O[r+304>>3]=l;Xc(p,828557,r+304|0);break p}O[r+328>>3]=m;O[r+320>>3]=l;Xc(p,828740,r+320|0);break o}O[r+336>>3]=m;Xc(p,828913,r+336| -0)}A=m;break n}A=l;l=m}q:{if(d){C=m>15?5:2;y=A-(n+n)+-4;j=J[v>>2];r:{if(s!=0)break r;s=1;s:{if((j|0)<=0)break s;q=0;u=l-C;m=u;while(1){bm(v,q,b,10,y,r+356|0,r+360|0,r+352|0);m=m+-10;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3];if(m>=2.5){s=10;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){bm(v,q,b,9,y,r+356|0,r+360|0,r+352|0);m=m+-9;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=2.25){s=9;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){bm(v,q,b,8,y,r+356| -0,r+360|0,r+352|0);m=m+-8;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=2){s=8;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){bm(v,q,b,7,y,r+356|0,r+360|0,r+352|0);m=m+-7;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=1.75){s=7;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){bm(v,q,b,6,y,r+356|0,r+360|0,r+352|0);m=m+-6;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=1.5){s=6;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){bm(v, -q,b,5,y,r+356|0,r+360|0,r+352|0);m=m+-5;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=1.25){s=5;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){bm(v,q,b,4,y,r+356|0,r+360|0,r+352|0);m=m+-4;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=1){s=4;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){bm(v,q,b,3,y,r+356|0,r+360|0,r+352|0);m=m+-3;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=.75){s=3;if(x<=y)break s}if((j|0)>0){q=0;while(1){bm(v, -q,b,2,y,r+356|0,r+360|0,r+352|0);u=u+-2;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}s=u>=.5?x<=y?2:1:1}if((w|0)<0)break r;c=J[(J[t>>2]+(w<<2)|0)+4>>2];Eh(c);O[r+288>>3]=s;Xc(c,828936,r+288|0);j=J[v>>2]}w=0;t:{if((j|0)<=0){q=0;break t}q=0;while(1){bm(v,w,b,s,y,r+356|0,r+360|0,r+352|0);q=q+1|0;w=J[r+352>>2];if((w|0)>2])continue;break}}u:{if(!b){x=.75;u=-.25;break u}x=O[b+144>>3];u=O[b+136>>3]}od(p,829214);m=s;u=m*u;D=2-u;v:{w:switch(g-1|0){default:u=l-s*x-C;break v;case 0:u= -(l-+(q|0)*s)*.5+s*+(q-1|0)-u;break v;case 1:u=(l-+(q|0)*s)*.5+s*+(q-1|0);break v;case 2:break w}u=+(q-1|0)*s-u}l=m+(C+s>l?D:u);q=0;if((z|0)>=0){c=z<<2;d=J[(c+J[t>>2]|0)+16>>2];Eh(d);O[r+272>>3]=0;Xc(d,829218,r+272|0);c=J[(c+J[t>>2]|0)+20>>2];Eh(c);O[r+256>>3]=l+k;Xc(c,829218,r+256|0)}if(J[t+8>>2]>0)while(1){zd(Dh(p,J[J[t>>2]+(q<<2)>>2]),32);q=q+1|0;if((q|0)>2])continue;break}if((z|0)<0){O[r+240>>3]=0;O[r+248>>3]=l+k;Xc(p,829485,r+240|0)}if(J[v>>2]<=0)break q;k=n+2;n=A-n+-2;u=-s;l=0;q=0;e=f- -1|0;while(1){bm(v,q,b,s,y,r+356|0,r+360|0,r+352|0);m=k;x:{y:switch(e|0){case 0:m=(A-O[r+360>>3])*.5;break x;case 1:break y;default:break x}m=n-O[r+360>>3]}O[r+232>>3]=u;O[r+224>>3]=m-l;Xc(p,829638,r+224|0);zd(p,40);f=J[r+356>>2];if((f|0)>(q|0))while(1){c=K[J[v+4>>2]+q|0];d=c<<24>>24;z:{if(!((c|0)!=92&c-40>>>0>=2)){zd(p,92);zd(p,d);break z}if((d|0)<=31){J[r+208>>2]=c;Xc(p,829658,r+208|0);break z}zd(p,d)}q=q+1|0;if((f|0)!=(q|0))continue;break}od(p,829919);l=m;q=J[r+352>>2];if((q|0)>2])continue; -break}break q}A:{if((e|0)>0){u=A/+(e|0);O[r+360>>3]=u;m=0;B:{if(s!=0)break B;n=l-(n+n);n=V(n>u?u:n);s=n>10?10:n;if((w|0)<0)break B;c=J[(J[t>>2]+(w<<2)|0)+4>>2];Eh(c);O[r+80>>3]=s;Xc(c,829218,r+80|0)}C:{D:switch(f-1|0){case 0:m=u*+((e-J[v>>2]|0)/2|0);break C;case 1:break D;default:break C}m=u*+(e-J[v>>2]|0)}E:{if(!b){x=-.25;n=.75;break E}x=O[b+136>>3];n=O[b+144>>3]}n=s*n;A=s*x;F:{G:switch(g-1|0){default:l=l-n;break F;case 0:l=(l-n-A)*.5;break F;case 1:l=(l-n)*.5;break F;case 2:break G}l=-A}od(p,829214); -q=0;if((z|0)>=0){c=z<<2;d=J[(c+J[t>>2]|0)+16>>2];Eh(d);O[r+64>>3]=m+0;Xc(d,829218,r- -64|0);c=J[(c+J[t>>2]|0)+20>>2];Eh(c);O[r+48>>3]=l+k;Xc(c,829218,r+48|0)}if(J[t+8>>2]>0)while(1){zd(Dh(p,J[J[t>>2]+(q<<2)>>2]),32);q=q+1|0;if((q|0)>2])continue;break}if((z|0)<0){O[r+40>>3]=l+k;O[r+32>>3]=m+0;Xc(p,829485,r+32|0)}z=830041;w=J[v>>2];if((w|0)<=0)break A;m=0;q=0;while(1){c=H[J[v+4>>2]+q|0];H:{if((c|0)>=32){c=c&255;l=.5;I:{if(!b)break I;if(gc[J[J[b>>2]+8>>2]](b)|0)break I;l=O[((c<<3)+b|0)+1464>> -3]}k=(u-s*l)*.5;O[r+16>>3]=m+k;Xc(p,830166,r+16|0);j=830270;J[r>>2]=c;Xc(p,(c|0)==92|c-40>>>0<2?j:830410,r);w=J[v>>2];m=u-k;break H}m=m+u}q=q+1|0;if((w|0)>(q|0))continue;break}break A}J:{K:{if(!b)break K;if(gc[J[J[b>>2]+8>>2]](b)|0)break K;J[r+360>>2]=0;J[r+364>>2]=0;d=J[v>>2];if((d|0)<=0){m=0;break J}j=d&3;c=J[v+4>>2];e=0;L:{if(d>>>0<4){m=0;q=0;break L}E=d&-4;m=0;q=0;d=b+1464|0;i=0;while(1){m=O[d+(K[c+q|0]<<3)>>3]+m;O[r+360>>3]=m;m=O[d+(K[c+(q|1)|0]<<3)>>3]+m;O[r+360>>3]=m;m=O[d+(K[c+(q|2)|0]<<3)>> -3]+m;O[r+360>>3]=m;m=O[d+(K[c+(q|3)|0]<<3)>>3]+m;O[r+360>>3]=m;q=q+4|0;i=i+4|0;if((E|0)!=(i|0))continue;break}}if(!j)break J;while(1){m=O[((K[c+q|0]<<3)+b|0)+1464>>3]+m;O[r+360>>3]=m;q=q+1|0;e=e+1|0;if((j|0)!=(e|0))continue;break}break J}m=+J[v>>2]*.5}M:{if(s!=0)break M;u=n*-2;s=(u+(A+-4))/m;u=u+l;u=V(u>s?s:u);s=u>10?10:u;if((w|0)<0)break M;c=J[(J[t>>2]+(w<<2)|0)+4>>2];Eh(c);O[r+192>>3]=s;Xc(c,829218,r+192|0)}x=s*m;N:{O:switch(f-1|0){default:m=n+2;break N;case 0:m=(A-x)*.5;break N;case 1:break O}m= -A-n+-2-x}P:{if(!b){u=-.25;n=.75;break P}u=O[b+136>>3];n=O[b+144>>3]}n=s*n;u=s*u;Q:{R:switch(g-1|0){default:l=l-n;break Q;case 0:l=(l-n-u)*.5;break Q;case 1:l=(l-n)*.5;break Q;case 2:break R}l=-u}if(o){O[r+184>>3]=s*1.2;O[r+176>>3]=s*.5+x;O[r+168>>3]=s*-.35+l;O[r+160>>3]=s*-.25+m;Xc(p,830559,r+160|0)}od(p,829214);q=0;if((z|0)>=0){b=z<<2;c=J[(b+J[t>>2]|0)+16>>2];Eh(c);O[r+144>>3]=m+0;Xc(c,829218,r+144|0);b=J[(b+J[t>>2]|0)+20>>2];Eh(b);O[r+128>>3]=l+k;Xc(b,829218,r+128|0)}if(J[t+8>>2]>0)while(1){zd(Dh(p, -J[J[t>>2]+(q<<2)>>2]),32);q=q+1|0;if((q|0)>2])continue;break}if((z|0)<0){O[r+120>>3]=l+k;O[r+112>>3]=m+0;Xc(p,829485,r+112|0)}zd(p,40);z=829919;if(J[v>>2]<=0)break A;q=0;while(1){b=K[J[v+4>>2]+q|0];c=b<<24>>24;S:{if(!((b|0)!=92&b-40>>>0>=2)){zd(p,92);zd(p,c);break S}if((c|0)<=31){J[r+96>>2]=b;Xc(p,829658,r+96|0);break S}zd(p,c)}q=q+1|0;if((q|0)>2])continue;break}}od(p,z)}od(p,830041);od(p,830686);if(h)od(p,830849);w=J[t+8>>2];if((w|0)>0){q=0;while(1){b=J[J[t>>2]+(q<<2)>>2];if(b){qc(Rc(b)); -w=J[t+8>>2]}q=q+1|0;if((w|0)>(q|0))continue;break}}qc(dd(t));if((a|0)==(v|0))break a;qc(Rc(v))}bc=r+368|0}function Sv(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=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,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,na=0,oa=0;f=bc-5632|0;bc=f;ha=b+256|0;Ov(c,ha,f+384|0);a:{b:{if((d|0)==6)break b;m=J[c+8>>2];S=gc[J[J[m>>2]+28>>2]](m)| -0;Ov(c,b+512|0,f+256|0);ia=b+768|0;Ov(c,ia,f+128|0);Ov(c,b+1024|0,f);c:{if((S|0)<=0)break c;while(1){R=F<<2;T=J[R+(f+384|0)>>2];x=J[R+(f+256|0)>>2];m=T-x|0;C=m>>31;if((m^C)-C>>>0>256)break c;U=x;x=J[f+R>>2];m=U-x|0;C=m>>31;if((m^C)-C>>>0>256)break c;U=x;x=J[R+(f+128|0)>>2];m=U-x|0;C=m>>31;if((m^C)-C>>>0>256)break c;m=x-T|0;x=m>>31;if((m^x)-x>>>0>256)break c;F=F+1|0;if((S|0)!=(F|0))continue;break}break b}if((F|0)==(S|0))break b;m=J[a+28>>2];n=O[m+24>>3];r=O[b+32>>3];G=O[b+160>>3];o=O[m+40>>3];e=n* -r+G*o;s=O[b>>3];t=O[b+128>>3];g=n*s+t*o;p=O[m+16>>3];l=O[m+32>>3];i=p*r+G*l;k=p*s+t*l;d:{if(ik)){j=k;break d}j=i}e:{if(eg)){i=g;e=g;break e}i=g}u=O[b+64>>3];H=O[b+192>>3];g=n*u+H*o;h=p*u+H*l;f:{if(hj))break f;j=h}g:{h:{if(g>3];y=O[b+224>>3];e=n*q+y*o;h=p*q+y*l;i:{if(hj))break i;j=h}j:{k:{if(eg)break j}e=g}v=O[b+8>>3];D=O[b+136>>3];g=n* -v+D*o;h=p*v+D*l;l:{if(hj))break l;j=h}m:{n:{if(g>3];A=O[b+168>>3];e=n*z+A*o;h=p*z+A*l;o:{if(hj))break o;j=h}p:{q:{if(eg)break p}e=g}I=O[b+72>>3];K=O[b+200>>3];g=n*I+K*o;h=p*I+K*l;r:{if(hj))break r;j=h}s:{t:{if(g>3];B=O[b+232>>3];e=n*L+B*o;h=p*L+B*l;u:{if(hj))break u;j=h}v:{w:{if(e -g)break v}e=g}E=O[b+16>>3];M=O[b+144>>3];g=n*E+M*o;h=p*E+M*l;x:{if(hj))break x;j=h}y:{z:{if(g>3];P=O[b+176>>3];e=n*N+P*o;h=p*N+P*l;A:{if(hj))break A;j=h}B:{C:{if(eg)break B}e=g}Q=O[b+80>>3];ba=O[b+208>>3];g=n*Q+ba*o;h=p*Q+ba*l;D:{if(hj))break D;j=h}E:{F:{if(g>3];da=O[b+240>>3];e=n*ca+da*o;h=p*ca+da*l;G:{if(h -j))break G;j=h}H:{I:{if(eg)break H}e=g}V=O[b+24>>3];W=O[b+152>>3];g=n*V+W*o;h=p*V+W*l;J:{if(hj))break J;j=h}K:{L:{if(g>3];Y=O[b+184>>3];e=n*X+Y*o;h=p*X+Y*l;M:{if(hj))break M;j=h}N:{O:{if(eg)break N}e=g}Z=O[b+88>>3];_=O[b+216>>3];g=n*Z+_*o;h=p*Z+_*l;P:{if(hj))break P;j=h}Q:{R:{if(g>3];aa=O[b+248>>3];e= -n*$+aa*o;h=p*$+aa*l;S:{if(hj))break S;j=h}T:{U:{if(eg)break T}e=g}if(j-k<1&e-i<1)break b;O[f+2016>>3]=y;g=(H+y)*.5;O[f+1984>>3]=g;O[f+4480>>3]=t;i=(t+G)*.5;O[f+4512>>3]=i;e=(G+H)*.5;g=(e+g)*.5;O[f+1952>>3]=g;e=(i+e)*.5;O[f+4544>>3]=e;e=(e+g)*.5;O[f+4576>>3]=e;O[f+1920>>3]=e;O[f+4352>>3]=s;j=(s+v)*.5;O[f+4360>>3]=j;e=(v+E)*.5;l=(j+e)*.5;O[f+4368>>3]=l;ea=(E+V)*.5;fa=(e+ea)*.5;ga=(l+fa)*.5;O[f+4376>>3]=ga;O[f+1888>>3]=q;e=(u+q)*.5;O[f+1856>>3]=e;i=(r+u)*.5; -g=(i+e)*.5;O[f+1824>>3]=g;e=(s+r)*.5;O[f+4384>>3]=e;e=(e+i)*.5;O[f+4416>>3]=e;e=(e+g)*.5;O[f+4448>>3]=e;O[f+1792>>3]=e;r=(r+z)*.5;g=(j+r)*.5;O[f+4392>>3]=g;s=(t+D)*.5;O[f+4488>>3]=s;t=(G+A)*.5;e=(s+t)*.5;O[f+4520>>3]=e;u=(u+I)*.5;q=(q+L)*.5;h=(u+q)*.5;O[f+1864>>3]=h;v=(H+K)*.5;E=(y+B)*.5;k=(v+E)*.5;O[f+1992>>3]=k;i=g;g=(r+u)*.5;i=(i+g)*.5;O[f+4424>>3]=i;j=e;e=(t+v)*.5;j=(j+e)*.5;O[f+4552>>3]=j;g=(g+h)*.5;O[f+1832>>3]=g;e=(e+k)*.5;O[f+1960>>3]=e;i=(i+g)*.5;O[f+4456>>3]=i;e=(j+e)*.5;O[f+4584>>3]=e; -O[f+1928>>3]=e;O[f+1896>>3]=q;O[f+2024>>3]=E;D=(D+M)*.5;y=(s+D)*.5;O[f+4496>>3]=y;g=l;l=(z+N)*.5;z=(r+l)*.5;g=(g+z)*.5;O[f+4400>>3]=g;r=(A+P)*.5;A=(t+r)*.5;e=(y+A)*.5;O[f+4528>>3]=e;O[f+1800>>3]=i;s=(K+ba)*.5;n=(v+s)*.5;t=(B+da)*.5;o=(E+t)*.5;k=(n+o)*.5;O[f+2E3>>3]=k;h=u;u=(I+Q)*.5;B=(h+u)*.5;v=(L+ca)*.5;q=(q+v)*.5;j=(B+q)*.5;O[f+1872>>3]=j;i=(z+B)*.5;E=(g+i)*.5;O[f+4432>>3]=E;g=e;e=(A+n)*.5;g=(g+e)*.5;O[f+4560>>3]=g;h=(i+j)*.5;O[f+1840>>3]=h;e=(e+k)*.5;O[f+1968>>3]=e;e=(g+e)*.5;O[f+4592>>3]=e;O[f+ -1936>>3]=e;O[f+1904>>3]=q;O[f+2032>>3]=o;p=(M+W)*.5;G=(D+p)*.5;H=(y+G)*.5;I=(P+Y)*.5;K=(r+I)*.5;g=(A+K)*.5;L=(H+g)*.5;O[f+4536>>3]=L;O[f+4504>>3]=H;M=(N+X)*.5;N=(l+M)*.5;k=(z+N)*.5;P=(ga+k)*.5;O[f+4408>>3]=P;Q=(Q+Z)*.5;y=(u+Q)*.5;j=(B+y)*.5;z=(ca+$)*.5;A=(v+z)*.5;B=(q+A)*.5;q=(j+B)*.5;O[f+1880>>3]=q;D=(ba+_)*.5;l=(s+D)*.5;e=(n+l)*.5;r=(da+aa)*.5;s=(t+r)*.5;t=(o+s)*.5;u=(e+t)*.5;O[f+2008>>3]=u;i=(g+e)*.5;v=(L+i)*.5;O[f+4568>>3]=v;g=(E+h)*.5;O[f+4464>>3]=g;e=(k+j)*.5;j=(P+e)*.5;O[f+4440>>3]=j;O[f+1808>> -3]=g;g=(i+u)*.5;O[f+1976>>3]=g;e=(e+q)*.5;O[f+1848>>3]=e;k=(v+g)*.5;O[f+4600>>3]=k;i=(j+e)*.5;O[f+4472>>3]=i;O[f+1944>>3]=k;O[f+1816>>3]=i;O[f+2040>>3]=t;O[f+1912>>3]=B;O[f+3200>>3]=H;O[f+3072>>3]=ga;O[f+3232>>3]=L;O[f+3104>>3]=P;O[f+704>>3]=u;O[f+576>>3]=q;O[f+3264>>3]=v;O[f+3136>>3]=j;O[f+672>>3]=g;O[f+544>>3]=e;O[f+3296>>3]=k;O[f+3168>>3]=i;O[f+640>>3]=k;O[f+512>>3]=i;O[f+736>>3]=t;O[f+608>>3]=B;O[f+3208>>3]=G;O[f+3080>>3]=fa;g=(G+K)*.5;O[f+3240>>3]=g;e=(fa+N)*.5;O[f+3112>>3]=e;h=(l+s)*.5;O[f+ -712>>3]=h;k=(y+A)*.5;O[f+584>>3]=k;i=g;g=(K+l)*.5;j=(i+g)*.5;O[f+3272>>3]=j;i=e;e=(N+y)*.5;i=(i+e)*.5;O[f+3144>>3]=i;g=(g+h)*.5;O[f+680>>3]=g;e=(e+k)*.5;O[f+552>>3]=e;g=(j+g)*.5;O[f+3304>>3]=g;e=(i+e)*.5;O[f+3176>>3]=e;O[f+648>>3]=g;O[f+520>>3]=e;O[f+744>>3]=s;O[f+616>>3]=A;O[f+3216>>3]=p;O[f+3088>>3]=ea;g=(p+I)*.5;O[f+3248>>3]=g;e=(ea+M)*.5;O[f+3120>>3]=e;h=(D+r)*.5;O[f+720>>3]=h;k=(Q+z)*.5;O[f+592>>3]=k;i=g;g=(I+D)*.5;j=(i+g)*.5;O[f+3280>>3]=j;i=e;e=(M+Q)*.5;i=(i+e)*.5;O[f+3152>>3]=i;g=(g+h)*.5; -O[f+688>>3]=g;e=(e+k)*.5;O[f+560>>3]=e;g=(j+g)*.5;O[f+3312>>3]=g;e=(i+e)*.5;O[f+3184>>3]=e;O[f+656>>3]=g;O[f+528>>3]=e;O[f+752>>3]=r;O[f+624>>3]=z;O[f+3224>>3]=W;O[f+3096>>3]=V;g=(W+Y)*.5;O[f+3256>>3]=g;e=(V+X)*.5;O[f+3128>>3]=e;h=(_+aa)*.5;O[f+728>>3]=h;k=(Z+$)*.5;O[f+600>>3]=k;i=g;g=(Y+_)*.5;j=(i+g)*.5;O[f+3288>>3]=j;i=e;e=(X+Z)*.5;i=(i+e)*.5;O[f+3160>>3]=i;g=(g+h)*.5;O[f+696>>3]=g;e=(e+k)*.5;O[f+568>>3]=e;g=(j+g)*.5;O[f+3320>>3]=g;e=(i+e)*.5;O[f+3192>>3]=e;O[f+664>>3]=g;O[f+536>>3]=e;O[f+760>> -3]=aa;O[f+632>>3]=$;F=0;ja=J[c+316>>2];if((ja|0)>0){ka=f+5120|0;la=f+2560|0;ma=f+2048|0;na=f+1280|0;oa=f+768|0;U=f+3840|0;S=f+3328|0;R=f+4608|0;while(1){w=F<<3;j=O[ha+w>>3];O[w+R>>3]=j;C=(f+4352|0)+w|0;T=b+w|0;g=O[T+512>>3];e=(j+g)*.5;O[C+512>>3]=e;O[w+S>>3]=e;x=(f+3072|0)+w|0;O[x+512>>3]=g;m=(f+512|0)+w|0;e=O[T+1024>>3];O[m+1024>>3]=e;i=(g+e)*.5;O[m+512>>3]=i;O[x+1024>>3]=i;g=O[w+ia>>3];e=(e+g)*.5;O[w+na>>3]=e;m=(f+1792|0)+w|0;O[m+1024>>3]=e;O[w+la>>3]=g;e=(j+g)*.5;O[w+ma>>3]=e;O[w+ka>>3]=e;e=(i+ -e)*.5;O[C+1024>>3]=e;O[w+U>>3]=e;O[w+oa>>3]=e;O[m+512>>3]=e;F=F+1|0;if((ja|0)!=(F|0))continue;break}}b=d+1|0;Sv(a,f+4352|0,c,b);Sv(a,f+1792|0,c,b);Sv(a,f+3072|0,c,b);Sv(a,f+512|0,c,b);break a}tc(J[a+28>>2]+124|0,f+384|0,128);c=J[a+8>>2];gc[J[J[c>>2]+116>>2]](c,J[a+28>>2]);g=O[b>>3];c=J[a+28>>2];e=O[b+128>>3];O[c+608>>3]=e;O[c+600>>3]=g;c=J[c+596>>2];O[c+16>>3]=e;O[c+8>>3]=g;J[c>>2]=1;k=O[b+144>>3];j=O[b+136>>3];i=O[b+16>>3];g=O[b+8>>3];h=O[b+24>>3];c=J[a+28>>2];e=O[b+152>>3];O[c+608>>3]=e;O[c+600>> -3]=h;_l(J[c+596>>2],g,j,i,k,h,e);k=O[b+216>>3];j=O[b+88>>3];i=O[b+184>>3];g=O[b+56>>3];h=O[b+120>>3];c=J[a+28>>2];e=O[b+248>>3];O[c+608>>3]=e;O[c+600>>3]=h;_l(J[c+596>>2],g,i,j,k,h,e);k=O[b+232>>3];j=O[b+104>>3];i=O[b+240>>3];g=O[b+112>>3];h=O[b+96>>3];c=J[a+28>>2];e=O[b+224>>3];O[c+608>>3]=e;O[c+600>>3]=h;_l(J[c+596>>2],g,i,j,k,h,e);k=O[b+160>>3];j=O[b+192>>3];i=O[b+32>>3];g=O[b+64>>3];h=O[b>>3];c=J[a+28>>2];e=O[b+128>>3];O[c+608>>3]=e;O[c+600>>3]=h;_l(J[c+596>>2],g,j,i,k,h,e);d=J[a+28>>2];_f(J[d+ -596>>2]);b=J[d+596>>2];c=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];b=J[c+12>>2]<<3;O[d+600>>3]=O[(b+J[c>>2]|0)-8>>3];O[d+608>>3]=O[(b+J[c+4>>2]|0)-8>>3];b=J[a+8>>2];gc[J[J[b>>2]+204>>2]](b,J[a+28>>2]);Rf(J[a+28>>2])}bc=f+5632|0}function QT(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;a=P((e|0)>0?P(b,e):0,3)+a|0;q=(e|0)>=4?4:e;a:{if((q|0)<=0){q=0;break a}k=(d|0)>4?4:d;m=(P(d,3)+a|0)-3|0;if((c|0)>0){j=P(c,3)+a|0;v=c&-4;o=c&3;l=k-c&3;e=(c|0)>(k|0)?c:k;t=4-e&3;p=c-1>>> -0<3;w=k+(c^-1)>>>0<3;r=(e^-1)+4>>>0<3;while(1){e=0;i=0;if(!p)while(1){h=P(e,3)+g|0;n=K[j|0]|K[j+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;H[h+2|0]=K[j+2|0];h=P(e|1,3)+g|0;H[h+2|0]=K[j+2|0];n=K[j|0]|K[j+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;h=P(e|2,3)+g|0;H[h+2|0]=K[j+2|0];n=K[j|0]|K[j+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;h=P(e|3,3)+g|0;H[h+2|0]=K[j+2|0];n=K[j|0]|K[j+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;e=e+4|0;i=i+4|0;if((v|0)!=(i|0))continue;break}h=0;if(o)while(1){i=P(e,3)+g|0;n=K[j|0]|K[j+1|0]<<8;H[i|0]=n;H[i+1|0]=n>>> -8;H[i+2|0]=K[j+2|0];e=e+1|0;h=h+1|0;if((o|0)!=(h|0))continue;break}h=c;b:{if((h|0)>=(k|0))break b;h=0;e=c;if(l)while(1){n=P(e,3);i=n+g|0;n=a+n|0;u=K[n|0]|K[n+1|0]<<8;H[i|0]=u;H[i+1|0]=u>>>8;H[i+2|0]=K[n+2|0];e=e+1|0;h=h+1|0;if((l|0)!=(h|0))continue;break}h=k;if(w)break b;while(1){h=P(e,3);i=h+g|0;n=a+h|0;u=K[n|0]|K[n+1|0]<<8;H[i|0]=u;H[i+1|0]=u>>>8;H[i+2|0]=K[n+2|0];n=h+3|0;i=n+g|0;n=a+n|0;H[i+2|0]=K[n+2|0];n=K[n|0]|K[n+1|0]<<8;H[i|0]=n;H[i+1|0]=n>>>8;n=h+6|0;i=n+g|0;n=a+n|0;u=K[n|0]|K[n+1|0]<<8; -H[i|0]=u;H[i+1|0]=u>>>8;H[i+2|0]=K[n+2|0];i=h+9|0;h=i+g|0;i=a+i|0;n=K[i|0]|K[i+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;H[h+2|0]=K[i+2|0];e=e+4|0;if((k|0)!=(e|0))continue;break}h=k}c:{if((h|0)>=4)break c;e=0;if(t)while(1){i=P(h,3)+g|0;n=K[m|0]|K[m+1|0]<<8;H[i|0]=n;H[i+1|0]=n>>>8;H[i+2|0]=K[m+2|0];h=h+1|0;e=e+1|0;if((t|0)!=(e|0))continue;break}if(r)break c;while(1){e=P(h,3)+g|0;i=K[m|0]|K[m+1|0]<<8;H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=K[m+2|0];H[e+5|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[e+3|0]=i;H[e+4|0]=i>>>8;i= -K[m|0]|K[m+1|0]<<8;H[e+6|0]=i;H[e+7|0]=i>>>8;H[e+8|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[e+9|0]=i;H[e+10|0]=i>>>8;H[e+11|0]=K[m+2|0];h=h+4|0;if((h|0)!=4)continue;break}}g=g+12|0;s=s+1|0;if((q|0)!=(s|0))continue;break}break a}if((k|0)>0){if((d|0)>=4){s=k&-4;m=k&3;o=k>>>0<4;while(1){e=0;h=0;if(!o)while(1){i=P(e,3);k=i+g|0;i=a+i|0;l=K[i|0]|K[i+1|0]<<8;H[k|0]=l;H[k+1|0]=l>>>8;H[k+2|0]=K[i+2|0];i=P(e|1,3);k=i+g|0;i=a+i|0;H[k+2|0]=K[i+2|0];i=K[i|0]|K[i+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;i=P(e|2,3);k=i+g|0;i= -a+i|0;H[k+2|0]=K[i+2|0];i=K[i|0]|K[i+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;i=P(e|3,3);k=i+g|0;i=a+i|0;H[k+2|0]=K[i+2|0];i=K[i|0]|K[i+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;e=e+4|0;h=h+4|0;if((s|0)!=(h|0))continue;break}h=0;if(m)while(1){i=P(e,3);k=i+g|0;i=a+i|0;l=K[i|0]|K[i+1|0]<<8;H[k|0]=l;H[k+1|0]=l>>>8;H[k+2|0]=K[i+2|0];e=e+1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}g=g+12|0;j=j+1|0;if((j|0)!=(q|0))continue;break}break a}t=k&-4;j=k&3;i=4-k&3;n=k>>>0<4;v=(k^-1)+4>>>0<3;while(1){e=0;h=0;if(!n)while(1){l=P(e, -3);o=l+g|0;l=a+l|0;p=K[l|0]|K[l+1|0]<<8;H[o|0]=p;H[o+1|0]=p>>>8;H[o+2|0]=K[l+2|0];l=P(e|1,3);o=l+g|0;l=a+l|0;H[o+2|0]=K[l+2|0];l=K[l|0]|K[l+1|0]<<8;H[o|0]=l;H[o+1|0]=l>>>8;l=P(e|2,3);o=l+g|0;l=a+l|0;H[o+2|0]=K[l+2|0];l=K[l|0]|K[l+1|0]<<8;H[o|0]=l;H[o+1|0]=l>>>8;l=P(e|3,3);o=l+g|0;l=a+l|0;H[o+2|0]=K[l+2|0];l=K[l|0]|K[l+1|0]<<8;H[o|0]=l;H[o+1|0]=l>>>8;e=e+4|0;h=h+4|0;if((t|0)!=(h|0))continue;break}h=0;if(j)while(1){l=P(e,3);o=l+g|0;l=a+l|0;p=K[l|0]|K[l+1|0]<<8;H[o|0]=p;H[o+1|0]=p>>>8;H[o+2|0]=K[l+2| -0];e=e+1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}e=0;h=k;if(i)while(1){o=P(h,3)+g|0;l=K[m|0]|K[m+1|0]<<8;H[o|0]=l;H[o+1|0]=l>>>8;H[o+2|0]=K[m+2|0];h=h+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}if(!v)while(1){e=P(h,3)+g|0;o=K[m|0]|K[m+1|0]<<8;H[e|0]=o;H[e+1|0]=o>>>8;H[e+2|0]=K[m+2|0];H[e+5|0]=K[m+2|0];o=K[m|0]|K[m+1|0]<<8;H[e+3|0]=o;H[e+4|0]=o>>>8;o=K[m|0]|K[m+1|0]<<8;H[e+6|0]=o;H[e+7|0]=o>>>8;H[e+8|0]=K[m+2|0];o=K[m|0]|K[m+1|0]<<8;H[e+9|0]=o;H[e+10|0]=o>>>8;H[e+11|0]=K[m+2|0];h=h+4|0;if((h|0)!= -4)continue;break}g=g+12|0;s=s+1|0;if((q|0)!=(s|0))continue;break}break a}while(1){e=0;h=0;while(1){k=P(e,3)+g|0;i=K[m|0]|K[m+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;H[k+2|0]=K[m+2|0];k=P(e|1,3)+g|0;H[k+2|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;k=P(e|2,3)+g|0;H[k+2|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;k=P(e|3,3)+g|0;H[k+2|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;e=e+4|0;h=h+4|0;if((h|0)!=4)continue;break}g=g+12|0;j=j+1|0;if((j|0)!=(q|0))continue;break}}m= -(f|0)>=4?4:f;if((m|0)>(q|0)){k=(d|0)>4?4:d;e=(c|0)>(k|0)?c:k;e=(e|0)>0?e:0;s=4-e&3;f=(c|0)>0?c:0;o=k-f&3;t=c&-4;l=c&3;n=(c|0)<=0;v=c-1>>>0>2;p=k+(f^-1)>>>0<3;w=(e^-1)+4>>>0<3;while(1){f=0;d:{if(n)break d;j=P(c,3)+a|0;h=0;e=0;i=0;if(v)while(1){f=P(e,3)+g|0;r=K[j|0]|K[j+1|0]<<8;H[f|0]=r;H[f+1|0]=r>>>8;H[f+2|0]=K[j+2|0];f=P(e|1,3)+g|0;H[f+2|0]=K[j+2|0];r=K[j|0]|K[j+1|0]<<8;H[f|0]=r;H[f+1|0]=r>>>8;f=P(e|2,3)+g|0;H[f+2|0]=K[j+2|0];r=K[j|0]|K[j+1|0]<<8;H[f|0]=r;H[f+1|0]=r>>>8;f=P(e|3,3)+g|0;H[f+2|0]=K[j+ -2|0];r=K[j|0]|K[j+1|0]<<8;H[f|0]=r;H[f+1|0]=r>>>8;e=e+4|0;i=i+4|0;if((t|0)!=(i|0))continue;break}f=c;if(!l)break d;while(1){f=P(e,3)+g|0;i=K[j|0]|K[j+1|0]<<8;H[f|0]=i;H[f+1|0]=i>>>8;H[f+2|0]=K[j+2|0];e=e+1|0;h=h+1|0;if((l|0)!=(h|0))continue;break}f=c}e:{if((k|0)<=(f|0)){h=f;break e}e=0;if(o)while(1){j=P(f,3);h=j+g|0;j=a+j|0;i=K[j|0]|K[j+1|0]<<8;H[h|0]=i;H[h+1|0]=i>>>8;H[h+2|0]=K[j+2|0];f=f+1|0;e=e+1|0;if((o|0)!=(e|0))continue;break}h=k;if(p)break e;while(1){e=P(f,3);h=e+g|0;j=a+e|0;i=K[j|0]|K[j+1| -0]<<8;H[h|0]=i;H[h+1|0]=i>>>8;H[h+2|0]=K[j+2|0];j=e+3|0;h=j+g|0;j=a+j|0;H[h+2|0]=K[j+2|0];j=K[j|0]|K[j+1|0]<<8;H[h|0]=j;H[h+1|0]=j>>>8;j=e+6|0;h=j+g|0;j=a+j|0;i=K[j|0]|K[j+1|0]<<8;H[h|0]=i;H[h+1|0]=i>>>8;H[h+2|0]=K[j+2|0];h=e+9|0;e=h+g|0;h=a+h|0;j=K[h|0]|K[h+1|0]<<8;H[e|0]=j;H[e+1|0]=j>>>8;H[e+2|0]=K[h+2|0];f=f+4|0;if((k|0)!=(f|0))continue;break}h=k}f:{if((h|0)>=4)break f;f=(P(d,3)+a|0)-3|0;e=0;if(s)while(1){j=P(h,3)+g|0;i=K[f|0]|K[f+1|0]<<8;H[j|0]=i;H[j+1|0]=i>>>8;H[j+2|0]=K[f+2|0];h=h+1|0;e=e+1| -0;if((s|0)!=(e|0))continue;break}if(w)break f;while(1){e=P(h,3)+g|0;j=K[f|0]|K[f+1|0]<<8;H[e|0]=j;H[e+1|0]=j>>>8;H[e+2|0]=K[f+2|0];H[e+5|0]=K[f+2|0];j=K[f|0]|K[f+1|0]<<8;H[e+3|0]=j;H[e+4|0]=j>>>8;j=K[f|0]|K[f+1|0]<<8;H[e+6|0]=j;H[e+7|0]=j>>>8;H[e+8|0]=K[f+2|0];j=K[f|0]|K[f+1|0]<<8;H[e+9|0]=j;H[e+10|0]=j>>>8;H[e+11|0]=K[f+2|0];h=h+4|0;if((h|0)!=4)continue;break}}g=g+12|0;a=P(b,3)+a|0;q=q+1|0;if((m|0)!=(q|0))continue;break}q=m}if((q|0)<4){k=(d|0)>4?4:d;e=(c|0)>(k|0)?c:k;e=(e|0)>0?e:0;j=4-e&3;f=(c|0)> -0?c:0;i=k-f&3;o=c&-4;s=c&3;m=P(b,-3)+a|0;a=m+P(c,3)|0;b=(m+P(d,3)|0)-3|0;l=(c|0)<=0;t=c-1>>>0>2;n=k+(f^-1)>>>0<3;v=(e^-1)+4>>>0<3;while(1){f=0;g:{if(l)break g;h=0;e=0;d=0;if(t)while(1){f=P(e,3)+g|0;p=K[a|0]|K[a+1|0]<<8;H[f|0]=p;H[f+1|0]=p>>>8;H[f+2|0]=K[a+2|0];f=P(e|1,3)+g|0;H[f+2|0]=K[a+2|0];p=K[a|0]|K[a+1|0]<<8;H[f|0]=p;H[f+1|0]=p>>>8;f=P(e|2,3)+g|0;H[f+2|0]=K[a+2|0];p=K[a|0]|K[a+1|0]<<8;H[f|0]=p;H[f+1|0]=p>>>8;f=P(e|3,3)+g|0;H[f+2|0]=K[a+2|0];p=K[a|0]|K[a+1|0]<<8;H[f|0]=p;H[f+1|0]=p>>>8;e=e+4| -0;d=d+4|0;if((o|0)!=(d|0))continue;break}f=c;if(!s)break g;while(1){d=P(e,3)+g|0;f=K[a|0]|K[a+1|0]<<8;H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=K[a+2|0];e=e+1|0;h=h+1|0;if((s|0)!=(h|0))continue;break}f=c}h:{if((k|0)<=(f|0)){h=f;break h}e=0;if(i)while(1){h=P(f,3);d=h+g|0;h=h+m|0;p=K[h|0]|K[h+1|0]<<8;H[d|0]=p;H[d+1|0]=p>>>8;H[d+2|0]=K[h+2|0];f=f+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}h=k;if(n)break h;while(1){d=P(f,3);e=d+g|0;h=d+m|0;p=K[h|0]|K[h+1|0]<<8;H[e|0]=p;H[e+1|0]=p>>>8;H[e+2|0]=K[h+2|0];h=d+3|0; -e=h+g|0;h=h+m|0;H[e+2|0]=K[h+2|0];h=K[h|0]|K[h+1|0]<<8;H[e|0]=h;H[e+1|0]=h>>>8;h=d+6|0;e=h+g|0;h=h+m|0;p=K[h|0]|K[h+1|0]<<8;H[e|0]=p;H[e+1|0]=p>>>8;H[e+2|0]=K[h+2|0];e=d+9|0;d=e+g|0;e=e+m|0;h=K[e|0]|K[e+1|0]<<8;H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=K[e+2|0];f=f+4|0;if((k|0)!=(f|0))continue;break}h=k}i:{if((h|0)>=4)break i;e=0;if(j)while(1){d=P(h,3)+g|0;f=K[b|0]|K[b+1|0]<<8;H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=K[b+2|0];h=h+1|0;e=e+1|0;if((j|0)!=(e|0))continue;break}if(v)break i;while(1){d=P(h,3)+g|0;e=K[b| -0]|K[b+1|0]<<8;H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=K[b+2|0];H[d+5|0]=K[b+2|0];e=K[b|0]|K[b+1|0]<<8;H[d+3|0]=e;H[d+4|0]=e>>>8;e=K[b|0]|K[b+1|0]<<8;H[d+6|0]=e;H[d+7|0]=e>>>8;H[d+8|0]=K[b+2|0];e=K[b|0]|K[b+1|0]<<8;H[d+9|0]=e;H[d+10|0]=e>>>8;H[d+11|0]=K[b+2|0];h=h+4|0;if((h|0)!=4)continue;break}}g=g+12|0;q=q+1|0;if((q|0)!=4)continue;break}}}function _pa(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;s=bc-32|0;bc=s;a:{b:{c=0;c:{if(J[a+16>>2]>=J[a+12>>2])break c; -if(J[a+20>>2]==J[a+24>>2]){J[a+20>>2]=0;c=L[a+8>>1];I[J[a+52>>2]>>1]=c;I[J[a+40>>2]>>1]=c;f=J[a+64>>2];c=J[f+96>>2];if((c|0)>0){e=f+16|0;while(1){c=c>>>0>=64?64:c;bp(J[f+12>>2],e,c);c=J[f+96>>2]-c|0;J[f+96>>2]=c;if((c|0)>0)continue;break}}J[f+88>>2]=0;J[f+92>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;c=32;J[f+32>>2]=0;J[f+36>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+56>>2]=0;J[f+60>>2]=0;e=f- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[f+72>>2]=0;J[f+76>>2]=0;j=RG(J[f+12>>2]); -J[f+80>>2]=0;J[f+84>>2]=32;J[f+96>>2]=j;h=f+16|0;d=J[f+92>>2];g=J[f+88>>2];while(1){d:{e:{if((d|0)>(g|0)){l=g;break e}J[f+88>>2]=0;J[f+92>>2]=0;if(!j){J[f+96>>2]=0;break d}c=J[f+12>>2];d=gc[J[J[c>>2]+8>>2]](c,h,j>>>0>=64?64:j)|0;J[f+92>>2]=d;j=J[f+96>>2]-d|0;J[f+96>>2]=j;if((d|0)<=0)break d;i=J[f+80>>2];l=J[f+88>>2];c=J[f+84>>2]}e=c;g=l+1|0;J[f+88>>2]=g;c=e-8|0;J[f+84>>2]=c;i=K[(f+l|0)+16|0]<>2]=i;if((e|0)>15)continue}break}}k=J[a+52>>2];c=J[a+40>>2];J[a+52>>2]=c;J[a+40>>2]=k;e=J[a+8>> -2];f:{if((e|0)<=0)break f;j=c+2|0;f=L[c>>1];while(1){c=J[a+68>>2];d=J[a+64>>2];e=J[d+80>>2];p=J[c+8>>2]+P(K[J[c+16>>2]+(e>>>J[c+12>>2]|0)|0],6)|0;c=I[p+2>>1];h=e<>2]=h;c=c+J[d+84>>2]|0;J[d+84>>2]=c;g:{if((c|0)<16)break g;r=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break g}e=J[d+12>>2];i=gc[J[J[e>>2]+8>>2]](e,r,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break g;h=J[d+80>>2];e=J[d+88>>2];c= -J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;t=(c|0)>15;c=g;e=l;if(t)continue;break}}h:{i:{j:{k:{l:{m:{n:switch(I[p+4>>1]){case 1:p=q&1;m=J[(p?76:72)+a>>2];while(1){d=J[a+64>>2];e=J[d+80>>2];r=J[m+8>>2]+P(K[J[m+16>>2]+(e>>>J[m+12>>2]|0)|0],6)|0;c=I[r+2>>1];h=e<>2]=h;c=c+J[d+84>>2]|0;J[d+84>>2]=c;o:{if((c|0)<16)break o;t=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break o}e= -J[d+12>>2];i=gc[J[J[e>>2]+8>>2]](e,t,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break o;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;u=(c|0)>15;c=g;e=l;if(u)continue;break}}c=I[r+4>>1];n=c+n|0;o=c+o|0;if((c|0)>63)continue;break}I[k>>1]=n;n=J[(p?72:76)+a>>2];m=0;while(1){d=J[a+64>>2];e=J[d+80>>2];p=J[n+8>>2]+P(K[J[n+16>>2]+(e>>>J[n+12>>2]|0)|0],6)|0;c=I[p+2>>1];h=e<>2]=h;c=c+J[d+84>>2]|0;J[d+84>> -2]=c;p:{if((c|0)<16)break p;r=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break p}e=J[d+12>>2];i=gc[J[J[e>>2]+8>>2]](e,r,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break p;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;t=(c|0)>15;c=g;e=l;if(t)continue;break}}c=I[p+4>>1];m=c+m|0;o=c+o|0;if((c|0)>63)continue;break}I[k+2>>1]=m;k=k+4|0; -n=0;c=f;break j;case 2:c=L[j>>1]+f|0;j=j+2|0;break m;case 5:c=L[j>>1]+f|0;j=j+2|0;f=f+3|0;break m;case 4:c=L[j>>1]+f|0;j=j+2|0;f=f+2|0;break m;case 3:c=L[j>>1]+f|0;j=j+2|0;f=f+1|0;break m;case 8:j=j-2|0;c=f-L[j>>1]|0;f=f-3|0;break m;case 7:j=j-2|0;c=f-L[j>>1]|0;f=f-2|0;break m;case 0:break k;case 6:break n;default:break l}j=j-2|0;c=f-L[j>>1]|0;f=f-1|0}o=f;I[k>>1]=f+(n+m|0);q=q^1;k=k+2|0;n=0;break j}d=J[a+64>>2];c=J[d+84>>2];q:{if((c|0)<8)break q;i=d+16|0;h=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>= -(h|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break q}e=J[d+12>>2];h=gc[J[J[e>>2]+8>>2]](e,i,c>>>0>=64?64:c)|0;J[d+92>>2]=h;J[d+96>>2]=J[d+96>>2]-h;if((h|0)<=0)break q;e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;J[d+80>>2]=J[d+80>>2]|K[(d+e|0)+16|0]<15;c=g;e=l;if(m)continue;break}}d=J[a+64>>2];c=J[d+80>>2];if((c&-256)==1048832){J[a+16>>2]=J[a+12>>2];c=0;break c}if((c&-4194304)!=62914560)break i;h=c<<10;J[d+80>>2]=h;e=J[d+84>>2];c=e+10|0;J[d+84>> -2]=c;r:{if((e|0)<6)break r;m=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break r}e=J[d+12>>2];i=gc[J[J[e>>2]+8>>2]](e,m,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break r;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;p=(c|0)>15;c=g;e=l;if(p)continue;break}}while(1){d=J[a+64>>2];m=J[d+80>>2];c=m&-67108864;s:{if((c|0)!=67108864){if(c){h= -m<<1;J[d+80>>2]=h;e=J[d+84>>2];c=e+1|0;J[d+84>>2]=c;t:{if((e|0)<15)break t;p=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break t}e=J[d+12>>2];i=gc[J[J[e>>2]+8>>2]](e,p,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break t;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;r=(c|0)>15;c=g;e=l;if(r)continue;break}}if((q&1)!=((m|0)<0|0)){I[k>> -1]=n;q=q^1;n=0;k=k+2|0}n=n+1|0;c=1;break s}h=m<<8;J[d+80>>2]=h;e=J[d+84>>2];c=e+8|0;J[d+84>>2]=c;u:{if((e|0)<8)break u;p=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break u}e=J[d+12>>2];i=gc[J[J[e>>2]+8>>2]](e,p,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break u;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;r=(c|0)>15;c=g;e=l;if(r)continue; -break}}if((m&-33554432)!=33554432){a=Kc(s+8|0,2422944,2382976,727,2424358,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if(n){I[k>>1]=n;q=q^1;k=k+2|0}n=0;if((!(m&16777216)^q)&1){c=f;break j}I[k>>1]=0;q=q^1;k=k+2|0;c=f;break j}h=m<<6;J[d+80>>2]=h;e=J[d+84>>2];c=e+6|0;J[d+84>>2]=c;v:{if((e|0)<10)break v;m=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break v}e=J[d+12>>2];i=gc[J[J[e>>2]+8>>2]](e, -m,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break v;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;p=(c|0)>15;c=g;e=l;if(p)continue;break}}if(q&1){I[k>>1]=n;n=0;k=k+2|0}n=n+5|0;q=0;c=5}o=c+o|0;if((o|0)<=J[a+8>>2])continue;break}a=Kc(s+8|0,2422944,2382976,721,2424358,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}o=L[j>>1]+f|0;n=o+(n+m|0)|0;c=L[j+2>>1]+o|0;j=j+4|0}e=J[a+8>> -2];if((c|0)>(o|0)){f=c;break h}f=c;c=j;if((e|0)<=(f|0))break h;while(1){j=c+4|0;f=L[c+2>>1]+(L[c>>1]+f|0)|0;if((o|0)<(f|0))break h;c=j;if((e|0)>(f|0))continue;break}break h}a=Kc(s+8|0,2422944,2382976,747,2424358,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}m=0-o|0;if((e|0)>(o|0))continue;break}if((n|0)<=0)break f;c=J[a+68>>2];g=J[a+64>>2];e=J[g+80>>2];l=J[c+8>>2]+P(K[J[c+16>>2]+(e>>>J[c+12>>2]|0)|0],6)|0;c=I[l+2>>1];h=e<>2]=h;c=c+J[g+84>>2]|0;J[g+84>>2]= -c;w:{if((c|0)<16)break w;d=g+16|0;i=J[g+92>>2];e=J[g+88>>2];while(1){if((e|0)>=(i|0)){J[g+88>>2]=0;J[g+92>>2]=0;c=J[g+96>>2];if(!c){J[g+96>>2]=0;break w}e=J[g+12>>2];i=gc[J[J[e>>2]+8>>2]](e,d,c>>>0>=64?64:c)|0;J[g+92>>2]=i;J[g+96>>2]=J[g+96>>2]-i;if((i|0)<=0)break w;h=J[g+80>>2];e=J[g+88>>2];c=J[g+84>>2]}j=e+1|0;J[g+88>>2]=j;f=c-8|0;J[g+84>>2]=f;h=K[(e+g|0)+16|0]<>2]=h;q=(c|0)>15;c=f;e=j;if(q)continue;break}}if(L[l+4>>1]!=2){a=Kc(s+8|0,2422944,2382976,761,2424358,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}I[k>>1]=n;k=k+2|0;e=J[a+8>>2]}x:{if((e|0)>=(o|0))break x;c=J[a+40>>2];y:{if(c>>>0>=k>>>0)break y;while(1){k=k-2|0;o=o-L[k>>1]|0;if((o|0)<=(e|0))break y;if(c>>>0>>0)continue;break}}if((e|0)<=(o|0))break x;I[k>>1]=e-o;k=k+2|0}if(b)J[b>>2]=k;I[k>>1]=0;I[k+2>>1]=0;J[a+16>>2]=J[a+16>>2]+1;J[a+20>>2]=J[a+20>>2]+1;c=J[a+40>>2]}bc=s+32|0;return c|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function _A(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;D=32;f=bc-15760|0;bc=f;A=f+15608|0;X=(f+240|0)+c|0;while(1){L=g;tc(f+240|0,b,c);e=tc(X,a,D);g=c+D|0;if(d){h=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);e=e+D|0;i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+3|0]=i>>>24;H[e+4|0]=h;H[e+5|0]=h>>>8;H[e+6|0]=h>>>16;H[e+7|0]=h>>>24;h=K[d+44|0]|K[d+45|0]<<8|(K[d+46|0]<<16|K[d+47|0]<< -24);i=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[e+40|0]=i;H[e+41|0]=i>>>8;H[e+42|0]=i>>>16;H[e+43|0]=i>>>24;H[e+44|0]=h;H[e+45|0]=h>>>8;H[e+46|0]=h>>>16;H[e+47|0]=h>>>24;h=K[d+36|0]|K[d+37|0]<<8|(K[d+38|0]<<16|K[d+39|0]<<24);i=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);H[e+32|0]=i;H[e+33|0]=i>>>8;H[e+34|0]=i>>>16;H[e+35|0]=i>>>24;H[e+36|0]=h;H[e+37|0]=h>>>8;H[e+38|0]=h>>>16;H[e+39|0]=h>>>24;h=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);i=K[d+24|0]|K[d+25|0]<<8|(K[d+ -26|0]<<16|K[d+27|0]<<24);H[e+24|0]=i;H[e+25|0]=i>>>8;H[e+26|0]=i>>>16;H[e+27|0]=i>>>24;H[e+28|0]=h;H[e+29|0]=h>>>8;H[e+30|0]=h>>>16;H[e+31|0]=h>>>24;h=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);i=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);H[e+16|0]=i;H[e+17|0]=i>>>8;H[e+18|0]=i>>>16;H[e+19|0]=i>>>24;H[e+20|0]=h;H[e+21|0]=h>>>8;H[e+22|0]=h>>>16;H[e+23|0]=h>>>24;h=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);i=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);H[e+8|0]=i; -H[e+9|0]=i>>>8;H[e+10|0]=i>>>16;H[e+11|0]=i>>>24;H[e+12|0]=h;H[e+13|0]=h>>>8;H[e+14|0]=h>>>16;H[e+15|0]=h>>>24;g=g+48|0}h=1;while(1){e=f+240|0;tc(e+P(g,h)|0,e,g);tc(e+P(h+1|0,g)|0,e,g);tc(e+P(h+2|0,g)|0,e,g);h=h+3|0;if((h|0)!=64)continue;break}e=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);J[f+12>>2]=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);J[f+16>>2]=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[f+ -20>>2]=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);J[f+24>>2]=e;h=4;while(1){i=(f+12|0)+(h<<2)|0;if(!(h&3)){m=J[(h&-4)+2201552>>2];e=Hzb(e,8);e=m^(K[(e>>>16&255)+2202272|0]<<16|K[(e>>>24|0)+2202272|0]<<24|K[(e>>>8&255)+2202272|0]<<8|K[(e&255)+2202272|0])}e=J[i-16>>2]^e;J[i>>2]=e;h=h+1|0;if((h|0)!=44)continue;break}e=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);h=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<< -16|K[a+19|0]<<24);H[f+204|0]=h;H[f+205|0]=h>>>8;H[f+206|0]=h>>>16;H[f+207|0]=h>>>24;H[f+208|0]=e;H[f+209|0]=e>>>8;H[f+210|0]=e>>>16;H[f+211|0]=e>>>24;e=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);h=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);H[f+212|0]=h;H[f+213|0]=h>>>8;H[f+214|0]=h>>>16;H[f+215|0]=h>>>24;H[f+216|0]=e;H[f+217|0]=e>>>8;H[f+218|0]=e>>>16;H[f+219|0]=e>>>24;i=g<<6;h=0;if((g|0)>0)while(1){e=f+12|0;E=(f+240|0)+h|0;g=E;H[e+176|0]=K[e+192|0]^K[g|0];H[e+180|0]=K[e+193|0]^ -K[g+1|0];H[e+184|0]=K[e+194|0]^K[g+2|0];H[e+188|0]=K[e+195|0]^K[g+3|0];H[e+177|0]=K[e+196|0]^K[g+4|0];q=K[e+197|0]^K[g+5|0];H[e+181|0]=q;o=K[e+198|0]^K[g+6|0];H[e+185|0]=o;w=K[e+199|0]^K[g+7|0];H[e+189|0]=w;p=K[e+200|0]^K[g+8|0];H[e+178|0]=p;r=K[e+201|0]^K[g+9|0];H[e+182|0]=r;s=K[e+202|0]^K[g+10|0];H[e+186|0]=s;C=K[e+203|0]^K[g+11|0];H[e+190|0]=C;v=K[e+204|0]^K[g+12|0];H[e+179|0]=v;k=K[e+205|0]^K[g+13|0];H[e+183|0]=k;n=K[e+206|0]^K[g+14|0];H[e+187|0]=n;j=J[e+12>>2];n=n^j>>>8;k=k^j>>>16;v=v^j>>>24; -l=J[e+8>>2];s=s^l>>>8;r=r^l>>>16;p=p^l>>>24;m=J[e+4>>2];o=o^m>>>8;q=q^m>>>16;t=K[e+177|0]^m>>>24;u=J[e>>2];x=K[e+184|0]^u>>>8;y=K[e+180|0]^u>>>16;z=K[e+176|0]^u>>>24;l=l^C;m=m^w;u=u^K[e+188|0];w=j^(K[e+207|0]^K[g+15|0]);C=1;while(1){g=H[(m&255)+2202272|0];j=g<<1;M=(g|0)<0?j^27:j;m=H[(k&255)+2202272|0];p=H[(p&255)+2202272|0];N=m^p;x=H[(x&255)+2202272|0];j=x<<1;F=(x|0)<0?j^27:j;O=M^(N^(F^g));H[e+186|0]=O;o=H[(o&255)+2202272|0];v=H[(v&255)+2202272|0];j=v<<1;G=o^((v|0)<0?j^27:j);y=H[(y&255)+2202272|0]; -k=y^v;j=H[(l&255)+2202272|0];l=j<<1;l=(j|0)<0?l^27:l;Q=G^k^l;H[e+191|0]=Q;B=o<<1;R=(o|0)<0?B^27:B;S=l^(k^(j^R));H[e+187|0]=S;k=H[(n&255)+2202272|0];n=k<<1;T=(k|0)<0?n^27:n;l=H[(r&255)+2202272|0];n=l<<1;B=(l|0)<0?n^27:n;r=H[(t&255)+2202272|0];n=H[(u&255)+2202272|0];U=T^(B^k^r^n);H[e+181|0]=U;t=r<<1;V=k^((r|0)<0?t^27:t);W=n^(B^(l^V));H[e+177|0]=W;q=H[(q&255)+2202272|0];k=q<<1;B=(q|0)<0?k^27:k;s=H[(s&255)+2202272|0];t=H[(z&255)+2202272|0];k=t<<1;u=s^((t|0)<0?k^27:k);k=H[(w&255)+2202272|0];z=B^(q^u)^ -k;H[e+176|0]=z;w=m<<1;w=(m|0)<0?w^27:w;F=g^(F^(p^(w^x)));H[e+182|0]=F;I=p<<1;I=x^((p|0)<0?I^27:I);p=g^(w^(m^I));H[e+178|0]=p;g=y<<1;g=(y|0)<0?g^27:g;v=j^(v^(g^o)^R);H[e+183|0]=v;G=j^(g^(y^G));H[e+179|0]=G;g=e+(C<<4)|0;z=z^K[g+3|0];H[e+176|0]=z;o=k<<1;o=(k|0)<0?o^27:o;m=q^t;j=J[g>>2];u=o^(u^(m^j));H[e+188|0]=u;q=m;m=s<<1;m=(s|0)<0?m^27:m;x=o^(q^(k^(m^j>>>8)));H[e+184|0]=x;y=k^(m^(t^(s^(B^j>>>16))));H[e+180|0]=y;j=J[g+4>>2];q=j>>>16^U;H[e+181|0]=q;t=j>>>24^W;H[e+177|0]=t;j=l^r;k=J[g+4>>2];l=n<<1;l= -(n|0)<0?l^27:l;m=j^k^V^l;H[e+189|0]=m;o=l^(j^(n^k>>>8^T));H[e+185|0]=o;j=J[g+8>>2];s=j>>>8^O;H[e+186|0]=s;r=j>>>16^F;H[e+182|0]=r;p=p^j>>>24;H[e+178|0]=p;l=K[g+8|0]^N^I^M;H[e+190|0]=l;g=J[g+12>>2];w=g^Q;H[e+191|0]=w;n=g>>>8^S;H[e+187|0]=n;k=v^g>>>16;H[e+183|0]=k;v=G^g>>>24;H[e+179|0]=v;C=C+1|0;if((C|0)!=10)continue;break}g=J[e+160>>2];j=g^K[(w&255)+2202272|0];H[e+188|0]=j;s=K[(s&255)+2202272|0]^g>>>8;H[e+184|0]=s;q=K[(q&255)+2202272|0]^g>>>16;H[e+180|0]=q;z=K[(z&255)+2202272|0]^g>>>24;H[e+176|0]= -z;g=J[e+164>>2];u=g^K[(u&255)+2202272|0];H[e+189|0]=u;n=K[(n&255)+2202272|0]^g>>>8;H[e+185|0]=n;r=K[(r&255)+2202272|0]^g>>>16;H[e+181|0]=r;t=K[(t&255)+2202272|0]^g>>>24;H[e+177|0]=t;g=J[e+168>>2];m=g^K[(m&255)+2202272|0];H[e+190|0]=m;x=K[(x&255)+2202272|0]^g>>>8;H[e+186|0]=x;k=K[(k&255)+2202272|0]^g>>>16;H[e+182|0]=k;p=K[(p&255)+2202272|0]^g>>>24;H[e+178|0]=p;H[e+208|0]=z;H[e+192|0]=z;g=J[e+172>>2];l=g^K[(l&255)+2202272|0];H[e+191|0]=l;o=K[(o&255)+2202272|0]^g>>>8;H[e+187|0]=o;y=K[(y&255)+2202272| -0]^g>>>16;H[e+183|0]=y;g=K[(v&255)+2202272|0]^g>>>24;H[e+179|0]=g;H[e+209|0]=q;H[e+193|0]=q;H[e+210|0]=s;H[e+194|0]=s;H[e+211|0]=j;H[e+195|0]=j;H[e+212|0]=t;H[e+196|0]=t;H[e+213|0]=r;H[e+197|0]=r;H[e+214|0]=n;H[e+198|0]=n;H[e+215|0]=u;H[e+199|0]=u;H[e+216|0]=p;H[e+200|0]=p;H[e+217|0]=k;H[e+201|0]=k;H[e+218|0]=x;H[e+202|0]=x;H[e+203|0]=m;H[e+219|0]=m;H[e+204|0]=g;H[e+220|0]=g;H[e+205|0]=y;H[e+221|0]=y;H[e+206|0]=o;H[e+222|0]=o;H[e+207|0]=l;H[e+223|0]=l;e=J[f+232>>2];J[E+8>>2]=J[f+228>>2];J[E+12>>2]= -e;e=J[f+224>>2];J[E>>2]=J[f+220>>2];J[E+4>>2]=e;h=h+16|0;if((i|0)>(h|0))continue;break}a:{b:switch(((K[f+240|0]%3+K[f+241|0]%3+K[f+242|0]%3+K[f+243|0]%3+K[f+244|0]%3+K[f+245|0]%3+K[f+246|0]%3+K[f+247|0]%3+K[f+248|0]%3+K[f+249|0]%3+K[f+250|0]%3+K[f+251|0]%3+K[f+252|0]%3+K[f+253|0]%3+K[f+254|0]%3+K[f+255|0]%3&255)>>>0)%3|0){case 0:Yv(f+240|0,i,a);D=32;break a;case 1:J[f+15752>>2]=0;J[f+15600>>2]=-1090891868;J[f+15604>>2]=1203062813;J[f+15592>>2]=1694076839;J[f+15596>>2]=-619958771;J[f+15584>>2]=1750603025; -J[f+15588>>2]=-1900787065;J[f+15576>>2]=-4191439;J[f+15580>>2]=1731405415;J[f+15568>>2]=-150054599;J[f+15572>>2]=355462360;J[f+15560>>2]=812702999;J[f+15564>>2]=-1856437926;J[f+15552>>2]=914150663;J[f+15556>>2]=1654270250;J[f+15544>>2]=-1056596264;J[f+15548>>2]=-876896931;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+4>>2]=0;D=48;J[f+15756>>2]=48;e=f+15544|0;NZ(e,f+240|0,i);OZ(a,e);gc[J[673402]](e,0,216)|0;break a;case 2:break b;default:break a}J[f+15752>>2]=0;J[f+15600>>2]=327033209;J[f+15604>>2]=1541459225; -J[f+15592>>2]=-79577749;J[f+15596>>2]=528734635;J[f+15584>>2]=725511199;J[f+15588>>2]=-1694144372;J[f+15576>>2]=-1377402159;J[f+15580>>2]=1359893119;J[f+15568>>2]=1595750129;J[f+15572>>2]=-1521486534;J[f+15560>>2]=-23791573;J[f+15564>>2]=1013904242;J[f+15552>>2]=-2067093701;J[f+15556>>2]=-1150833019;J[f+15544>>2]=-205731576;J[f+15548>>2]=1779033703;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+4>>2]=0;D=64;J[f+15756>>2]=64;e=f+15544|0;NZ(e,f+240|0,i);OZ(a,e);gc[J[673402]](e,0,216)|0}g=L+1|0;if(L>>>0<63| -K[(f+i|0)+239|0]>(L-31|0))continue;break}bc=f+15760|0}function Iya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-1152|0;bc=d;c=d+16|0;e=di();gc[J[J[e>>2]+8>>2]](c,e,a,b);a:{b:{c:{d:{e:{f:{g:{h:{e=J[d+24>>2];i:{j:{if(!e|!J[e+8>>2])break j;J[695492]=0;e=d+1112|0;ca(5231,e|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[d+1112>>2];if(!c){sc(e);break j}c=J[c+8>>2];sc(d+1112|0);if(c)break i}J[695492]=0;c=d+1076|0;da(5226,c|0,a+72|0);e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]= -0;e=ga(5173,d+1112|0,b|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;aa(5083,d+16|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[e+24>>2]=2381060;J[e>>2]=2381028;c=J[e+28>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)gc[J[J[c>>2]+4>>2]](c);J[e+28>>2]=0}J[e+16>>2]=2381060;c=J[e+20>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)gc[J[J[c>>2]+4>>2]](c);J[e+20>>2]=0}sc(e+8|0);J[d+1100>>2]=2381060;J[d+1076>>2]=2381028;c=J[d+1104>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>> -2]+4>>2]](c);J[d+1104>>2]=0}J[d+1092>>2]=2381060;c=J[d+1096>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+1096>>2]=0}sc(d+1084|0)}c=J[a+120>>2];if(!c)break a;g=a+112|0;i=d+1084|0;break d}c=Z()|0;break b}c=Z()|0;break e}c=Z()|0;ud(e)}ud(d+1076|0);break b}k:{l:{while(1){m:{e=J[c+8>>2];J[695492]=0;e=aa(4991,d+1076|0,e+72|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break m;J[695492]=0;f=aa(5066,e|0,d+16|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break l;J[e>>2]=2381028;J[d+1100>>2]= -2381060;e=J[d+1104>>2];if(e){h=J[e+4>>2]-1|0;J[e+4>>2]=h;if(!h)gc[J[J[e>>2]+4>>2]](e);J[d+1104>>2]=0}J[d+1092>>2]=2381060;e=J[d+1096>>2];if(e){h=J[e+4>>2]-1|0;J[e+4>>2]=h;if(!h)gc[J[J[e>>2]+4>>2]](e);J[d+1096>>2]=0}sc(i);if(!f){c=J[c>>2];if(!c)break a;continue}J[d+1072>>2]=g;J[d+1068>>2]=c;c=J[c>>2];J[695492]=0;da(5065,g|0,d+1068|0);e=J[695492];J[695492]=0;if((e|0)==1)break k;if(c)continue;break a}break}c=Z()|0;break b}c=Z()|0;ud(e);break b}c=Z()|0;break b}c=Z()|0}ud(d+16|0);ba(c|0);B()}J[d+40>>2]= -2381060;J[d+16>>2]=2381028;c=J[d+44>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+44>>2]=0}J[d+32>>2]=2381060;c=J[d+36>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+36>>2]=0}sc(d+24|0);c=d+1064|0;Nm(c,J[a+108>>2]);J[695492]=0;da(5108,d+1060|0,c|0);c=J[695492];J[695492]=0;n:{o:{if((c|0)==1){a=Z()|0;break o}J[695492]=0;i=J[d+1060>>2];c=d+1056|0;_(5078,c|0);e=J[695492];J[695492]=0;p:{q:{r:{s:{if((e|0)!=1){J[695492]=0;da(5108,d+1052|0,c|0);c=J[695492]; -J[695492]=0;if((c|0)!=1){J[695492]=0;g=J[d+1052>>2];J[d+1068>>2]=0;J[d+1072>>2]=J[682146];c=ha(5109,i|0,d+1068|0,0,0)|0;e=J[695492];J[695492]=0;t:{if((e|0)==1)break t;u:{v:{if(!c)break v;c=J[d+1068>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;ca(5160,g|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break t;while(1){J[695492]=0;c=d+1068|0;e=ha(5109,i|0,c|0,0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break s;w:{if(e){J[695492]=0;c=fd(c,2382374,-1);e=J[695492];J[695492]=0;if((e|0)==1)break s;x:{if(c){c=J[d+ -1068>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;ca(5160,g|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break s;J[695492]=0;J[d+1044>>2]=0;aa(4985,d+1044|0,i|0)|0;c=J[695492];J[695492]=0;y:{z:{if((c|0)!=1){J[695492]=0;c=J[d+1044>>2];J[d+16>>2]=0;aa(4985,d+16|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break z;J[695492]=0;ga(5165,J[d+16>>2],c|0,0)|0;c=J[695492];J[695492]=0;A:{if((c|0)!=1){c=J[d+16>>2];J[d+16>>2]=0;if(!c)break A;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f| -0)!=1){if(e)break A;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break A}break n}a=Z()|0;vc(d+16|0);break y}c=J[d+1044>>2];J[d+1044>>2]=0;B:{if(!c)break B;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break x;if(e)break B;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break x}J[695492]=0;_(5162,g|0);c=J[695492];J[695492]=0;if((c|0)!=1)break w;break s}a=Z()|0;break r}a=Z()|0}vc(d+1044|0);break r}J[d+1044>>2]=0;J[d+1048>>2]=J[682146];C:{D:{while(1){c= -J[J[i>>2]+8>>2];J[695492]=0;c=ga(c|0,i|0,d+16|0,1024)|0;e=J[695492];J[695492]=0;E:{if((e|0)!=1){if(c)break E;while(1){c=J[d+1044>>2];if(!(!(!c|!J[c+8>>2])&K[J[c+12>>2]]==10)){F:{while(1){c=J[d+1044>>2];if(!c)break F;f=J[c+8>>2];if(!f)break F;h=J[c+12>>2];G:{e=f-1|0;if(!e){c=0;break G}c=e;H:{if((f|0)<=0){c=c+f|0;if((c|0)<0)break H}if((c|0)<=(f|0))break G}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)B();a=Z()|0;break C}if(K[c+h|0]!=10)break F;J[695492]=0;ca(5166,d+1044|0,e|0,0);c=J[695492]; -J[695492]=0;if((c|0)!=1)continue;break}a=Z()|0;break C}J[695492]=0;c=d+1044|0;e=ga(5117,c|0,b|0,-1)|0;f=J[695492];J[695492]=0;I:{J:{K:{L:{M:{if((f|0)==1)break M;if(!e)break J;J[695492]=0;ca(5160,g|0,2382374,0);e=J[695492];J[695492]=0;if((e|0)==1)break M;J[695492]=0;J[d>>2]=0;aa(4985,d|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break L;J[695492]=0;aa(5058,J[d>>2],c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break K;c=J[d>>2];J[d>>2]=0;N:{if(!c)break N;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492]; -J[695492]=0;if((f|0)==1)break I;if(e)break N;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break I}J[695492]=0;_(5162,g|0);c=J[695492];J[695492]=0;if((c|0)!=1)break J}a=Z()|0;break C}a=Z()|0;break C}a=Z()|0;vc(d);break C}sc(d+1044|0);break w}break n}J[695492]=0;ia(5143,d|0,d+1044|0,1,-1);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[d>>2];O:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+1148|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break O;a=Z()|0;sc(d);break C}J[d+1148>>2]=0}J[695492]= -0;aa(4993,d+1044|0,d+1148|0)|0;c=J[695492];J[695492]=0;P:{if((c|0)!=1){c=J[d+1148>>2];J[d+1148>>2]=0;if(!c)break P;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break P;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break P}break n}a=Z()|0;vc(d+1148|0);sc(d);break C}c=J[d+1044>>2];J[d+1048>>2]=J[(c?c+12|0:2728584)>>2];sc(d);continue}break}a=Z()|0;break C}a=Z()|0;break C}J[695492]=0;c=ga(5169,d+8|0,d+16|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[695492]= -0;aa(5170,d+1044|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break D;sc(c);continue}break}a=Z()|0;break C}a=Z()|0;sc(c)}sc(d+1044|0);break r}break n}J[695492]=0;_(5162,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break u;break v}J[695492]=0;_(5162,i|0);c=J[695492];J[695492]=0;if((c|0)!=1)continue;break}break s}b=J[d+1056>>2];c=J[J[b>>2]+20>>2];J[695492]=0;ha(c|0,b|0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=d+16|0;da(5158,b|0,d+1056|0);c=J[695492];J[695492]=0;Q:{R:{if((c|0)!= -1){J[695492]=0;aa(4993,a+108|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break R;b=J[d+16>>2];J[d+16>>2]=0;S:{if(!b)break S;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break n;if(c)break S;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break n}J[a+140>>2]=-1;J[695492]=0;Zg(a+148|0,0,0,128,0);a=J[695492];J[695492]=0;if((a|0)==1)break t;sc(d+1068|0);a=J[d+1052>>2];J[d+1052>>2]=0;T:{if(!a)break T;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]= -0;if((c|0)==1)break n;if(b)break T;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break n}a=J[d+1056>>2];J[d+1056>>2]=0;U:{if(!a)break U;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break n;if(b)break U;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break n}a=J[d+1060>>2];J[d+1060>>2]=0;V:{if(!a)break V;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break n;if(b)break V;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]= -0;if((a|0)==1)break n}a=J[d+1064>>2];J[d+1064>>2]=0;W:{if(!a)break W;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break Q;if(b)break W;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break Q}bc=d+1152|0;return}a=Z()|0;break r}a=Z()|0;vc(d+16|0);break r}break n}a=Z()|0;break r}a=Z()|0;break r}a=Z()|0;break q}a=Z()|0;break p}a=Z()|0}sc(d+1068|0);vc(d+1052|0)}vc(d+1056|0)}vc(d+1060|0)}vc(d+1064|0);ba(a|0);B()}ea(0)|0;yc();B()}function _Aa(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=bc-1088|0;bc=f;J[f+1076>>2]=0;J[695492]=0;J[f+1080>>2]=J[682146];e=f+1076|0;g=ha(5109,a|0,e|0,0,0)|0;h=J[695492];J[695492]=0;a:{b:{c:{if((h|0)==1)break c;d:{e:{f:{if(g){g=J[f+1076>>2];g=J[(g?g+12|0:2728584)>>2];J[695492]=0;ca(5160,b|0,g|0,1);g=J[695492];J[695492]=0;if((g|0)==1)break c;J[695492]=0;e=fd(e,2386896,5);g=J[695492];J[695492]=0;if((g|0)==1)break c;g:{if(!e){while(1){h:{J[695492]=0;e=f+1076|0;g=ha(5109,a|0,e|0,0,0)|0;h=J[695492];J[695492]=0;if((h|0)== -1)break h;if(!g)break g;g=J[f+1076>>2];g=J[(g?g+12|0:2728584)>>2];J[695492]=0;ca(5160,b|0,g|0,0);g=J[695492];J[695492]=0;if((g|0)==1)break h;J[695492]=0;e=fd(e,2387156,-1);g=J[695492];J[695492]=0;if((g|0)==1)break h;i:{if(!e){J[f+1068>>2]=0;J[f+1072>>2]=J[682146];j:{k:{while(1){e=J[J[a>>2]+8>>2];J[695492]=0;e=ga(e|0,a|0,f+32|0,1024)|0;g=J[695492];J[695492]=0;l:{m:{if((g|0)!=1){if(e)break l;while(1){e=J[f+1068>>2];if(!(!(!e|!J[e+8>>2])&K[J[e+12>>2]]==10)){n:{while(1){e=J[f+1068>>2];if(!e)break n;h= -J[e+8>>2];if(!h)break n;i=J[e+12>>2];o:{g=h-1|0;if(!g){e=0;break o}e=g;p:{if((h|0)<=0){e=e+h|0;if((e|0)<0)break p}if((e|0)<=(h|0))break o}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)B();a=Z()|0;break j}if(K[e+i|0]!=10)break n;J[695492]=0;ca(5166,f+1068|0,g|0,0);e=J[695492];J[695492]=0;if((e|0)!=1)continue;break}a=Z()|0;break j}J[695492]=0;g=kf(f+1068|0);e=J[695492];J[695492]=0;q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{if((e|0)==1)break F;J[695492]=0;e=J[J[d+12>>2]+((g>>>0)%M[d+ -8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break F;G:{H:{if(e)while(1){if((g|0)==J[e+12>>2]){J[695492]=0;h=ga(5117,e+16|0,f+1068|0,-1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break G;if(!h)break H}e=J[e+8>>2];if(e)continue;break}J[695492]=0;ca(5167,f+12|0,c|0,f+1068|0);e=J[695492];J[695492]=0;if((e|0)==1)break y;e=J[f+12>>2];if(!e)break u;J[695492]=0;g=e+36|0;h=J[e+20>>2];I:{if(!h)break I;g=J[h+8>>2]?e+20|0:g}e=J[695492];J[695492]=0;if((e|0)==1)break t;J[f+16>>2]=0;J[f+20>>2]=J[682146];e=J[g>> -2];if(!e)break C;g=J[J[e>>2]+28>>2];J[695492]=0;ca(g|0,f+1084|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break B;a=Z()|0;break A}J[695492]=0;J[f+16>>2]=0;aa(4985,f+16|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break E;J[695492]=0;aa(5058,J[f+16>>2],e+24|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break D;e=J[f+16>>2];J[f+16>>2]=0;if(!e)break q;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(g)break q;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)== -1)break a;break q}a=Z()|0;break j}a=Z()|0;break j}a=Z()|0;break j}a=Z()|0;vc(f+16|0);break j}J[f+1084>>2]=0}J[695492]=0;aa(4993,f+16|0,f+1084|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){e=J[f+1084>>2];J[f+1084>>2]=0;if(!e)break z;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break z;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break z}break a}a=Z()|0;vc(f+1084|0)}sc(f+16|0);break s}e=J[f+16>>2];J[f+20>>2]=J[(e?e+12|0:2728584)>>2];J[695492]=0;g=aa(5168, -d|0,f+1068|0)|0;e=J[695492];J[695492]=0;J:{K:{if((e|0)!=1){e=J[f+16>>2];if(!e)break K;h=J[J[e>>2]+28>>2];J[695492]=0;ca(h|0,f+1084|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break J}a=Z()|0;break v}J[f+1084>>2]=0}J[695492]=0;aa(4993,g+24|0,f+1084|0)|0;e=J[695492];J[695492]=0;L:{if((e|0)!=1){e=J[f+1084>>2];J[f+1084>>2]=0;if(!e)break L;J[695492]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break L;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break L}break a}a= -Z()|0;vc(f+1084|0);break v}e=J[g+24>>2];J[g+28>>2]=J[(e?e+12|0:2728584)>>2];J[695492]=0;J[f+1084>>2]=0;aa(4985,f+1084|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break x;J[695492]=0;aa(5058,J[f+1084>>2],f+16|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break w;e=J[f+1084>>2];J[f+1084>>2]=0;M:{if(!e)break M;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(g)break M;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}sc(f+16|0);break r}a=Z()|0;break j}a= -Z()|0;break v}a=Z()|0;vc(f+1084|0)}sc(f+16|0);break s}J[695492]=0;J[f+1084>>2]=0;aa(4985,f+1084|0,a|0)|0;e=J[695492];J[695492]=0;N:{O:{if((e|0)!=1){J[695492]=0;e=J[f+1084>>2];J[f+16>>2]=0;aa(4985,f+16|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break O;J[695492]=0;ga(5165,J[f+16>>2],e|0,0)|0;e=J[695492];J[695492]=0;P:{if((e|0)!=1){e=J[f+16>>2];J[f+16>>2]=0;if(!e)break P;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break P;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]= -0;if((e|0)!=1)break P}break a}a=Z()|0;vc(f+16|0);break N}e=J[f+1084>>2];J[f+1084>>2]=0;if(!e)break r;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break r;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break r}break a}a=Z()|0;break s}a=Z()|0}vc(f+1084|0);break s}a=Z()|0}vc(f+12|0);break j}e=J[f+12>>2];J[f+12>>2]=0;if(!e)break q;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break q;J[695492]=0;_(4987,e|0);e=J[695492]; -J[695492]=0;if((e|0)!=1)break q}break a}sc(f+1068|0);break i}J[695492]=0;ia(5143,f+16|0,f+1068|0,1,-1);e=J[695492];J[695492]=0;if((e|0)!=1){e=J[f+16>>2];Q:{if(e){g=J[J[e>>2]+28>>2];J[695492]=0;ca(g|0,f+1084|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break Q;a=Z()|0;break m}J[f+1084>>2]=0}J[695492]=0;aa(4993,f+1068|0,f+1084|0)|0;e=J[695492];J[695492]=0;R:{if((e|0)!=1){e=J[f+1084>>2];J[f+1084>>2]=0;if(!e)break R;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break R; -J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break R}break a}a=Z()|0;vc(f+1084|0);break m}e=J[f+1068>>2];J[f+1072>>2]=J[(e?e+12|0:2728584)>>2];sc(f+16|0);continue}break}a=Z()|0;break j}a=Z()|0;break j}sc(f+16|0);break j}J[695492]=0;e=ga(5169,f+24|0,f+32|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){J[695492]=0;aa(5170,f+1068|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break k;sc(e);continue}break}a=Z()|0;break j}a=Z()|0;sc(e)}sc(f+1068|0);break b}J[695492]=0;J[f+1068>>2]=0;aa(4985, -f+1068|0,a|0)|0;e=J[695492];J[695492]=0;S:{T:{if((e|0)!=1){J[695492]=0;e=J[f+1068>>2];J[f+32>>2]=0;aa(4985,f+32|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break T;J[695492]=0;ga(5165,J[f+32>>2],e|0,0)|0;e=J[695492];J[695492]=0;U:{if((e|0)!=1){e=J[f+32>>2];J[f+32>>2]=0;if(!e)break U;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break U;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break U}break a}a=Z()|0;vc(f+32|0);break S}e=J[f+1068>>2];J[f+1068>> -2]=0;if(!e)break i;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break i;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break i}break a}a=Z()|0;break b}a=Z()|0}vc(f+1068|0);break b}J[695492]=0;_(5162,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;_(5162,a|0);e=J[695492];J[695492]=0;if((e|0)!=1)continue}break}a=Z()|0;break b}J[695492]=0;J[f+1068>>2]=0;aa(4985,f+1068|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=J[f+ -1068>>2];J[f+32>>2]=0;aa(4985,f+32|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;J[695492]=0;ga(5165,J[f+32>>2],c|0,0)|0;c=J[695492];J[695492]=0;V:{if((c|0)!=1){c=J[f+32>>2];J[f+32>>2]=0;if(!c)break V;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break V;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break V}break a}a=Z()|0;vc(f+32|0);break d}c=J[f+1068>>2];J[f+1068>>2]=0;if(!c)break g;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]= -0;if((e|0)==1)break a;if(d)break g;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;_(5162,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;_(5162,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}sc(f+1076|0);bc=f+1088|0;return}a=Z()|0;break b}a=Z()|0}vc(f+1068|0);break b}a=Z()|0}sc(f+1076|0);ba(a|0);B()}ea(0)|0;yc();B()}function Xra(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y= -0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0;n=bc-2096|0;bc=n;M=ch(n+2048|0,n+2056|0,P(J[a+16>>2],J[a+12>>2]),2);q=J[n+2056>>2];j=q;w=J[a+8>>2];a:{if((w|0)<=0)break a;i=J[a+12>>2];l=J[a+4>>2];if((l|0)>0){t=l&-4;x=l&3;A=i<<1;C=i-l<<1;k=l>>>0<4;while(1){g=j;f=0;h=0;if(!k)while(1){I[g>>1]=H[b+f|0]<<6;I[g+2>>1]=H[(f|1)+b|0]<<6;I[g+4>>1]=H[(f|2)+b|0]<<6;I[g+6>>1]=H[(f|3)+b|0]<<6;f=f+4|0;g=g+8|0;h=h+4|0;if((t|0)!=(h|0))continue;break}h=0;if(x)while(1){I[g>>1]=H[b+f| -0]<<6;f=f+1|0;g=g+2|0;h=h+1|0;if((x|0)!=(h|0))continue;break}if((i|0)>(l|0)){wc(g,0,C);g=j+A|0}j=g;b=b+c|0;m=m+1|0;if((w|0)!=(m|0))continue;break}break a}if((i|0)<=(l|0))break a;b=i<<1;c=l<<1;g=b-c|0;j=wc(q,0,P(g,w))+((b+P(g,w-1|0)|0)-c|0)|0}b=J[a+16>>2];b:{if((b|0)<=(w|0))break b;c=J[a+12>>2];if((c|0)<=0)break b;wc(j,0,P(c,b-w|0)<<1)}E=J[a+12>>2];r=J[a+4>>2];c:{d:{e:{f:{if(d){J[695492]=0;j=P(r,w);N=ha(5043,n+2068|0,n|0,j|0,2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;l=(w|0)>0&(r|0)>0;if(l){i= -r&-4;c=r&3;m=0;f=J[n>>2];x=r>>>0<4;b=d;while(1){g=0;h=0;if(!x)while(1){I[(g<<1)+f>>1]=!K[b+g|0]<<12;t=g|1;I[(t<<1)+f>>1]=!K[b+t|0]<<12;t=g|2;I[(t<<1)+f>>1]=!K[b+t|0]<<12;t=g|3;I[(t<<1)+f>>1]=!K[b+t|0]<<12;g=g+4|0;h=h+4|0;if((i|0)!=(h|0))continue;break}h=0;if(c)while(1){I[(g<<1)+f>>1]=!K[b+g|0]<<12;g=g+1|0;h=h+1|0;if((c|0)!=(h|0))continue;break}b=b+e|0;f=(r<<1)+f|0;m=m+1|0;if((w|0)!=(m|0))continue;break}}J[695492]=0;U=ha(5043,n+2060|0,n+2088|0,j|0,2)|0;b=J[695492];J[695492]=0;if((b|0)!=1){g:{if(!l)break g; -j=r&-4;m=r&3;l=0;i=r>>>0<4;f=q;O=J[n+2088>>2];b=O;while(1){g=0;v=0;if(!i)while(1){c=g<<1;I[c+b>>1]=L[c+f>>1];h=c|2;I[h+b>>1]=L[f+h>>1];h=c|4;I[h+b>>1]=L[f+h>>1];c=c|6;I[c+b>>1]=L[c+f>>1];g=g+4|0;v=v+4|0;if((j|0)!=(v|0))continue;break}h=0;if(m)while(1){c=g<<1;I[c+b>>1]=L[c+f>>1];g=g+1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}f=(E<<1)+f|0;b=(r<<1)+b|0;l=l+1|0;if((w|0)!=(l|0))continue;break}if((w|0)<3|(r|0)<3)break g;V=J[n>>2];g=2;k=1;while(1){h=g;Q=P(g,r);W=0-Q|0;R=P(k,r)<<1;X=P(g,E)<<1;m=0;x=O;t=q; -i=0;c=V;while(1){g=0;p=h+i|0;S=(p|0)<(w|0);F=S?p:w;b=(i+k|0)>(w|0);T=i-(b?h:0)|0;h:{if((F|0)>(T|0)){b=(b?W:0)<<1;Y=b+x|0;_=b+c|0;G=0;y=0;while(1){C=m;m=1;j=y;A=j-((j+k|0)>(r|0)?h:0)|0;y=h+j|0;D=(r|0)<(y|0)?r:y;i:{if((A|0)>=(D|0)){l=0;g=c;break i}l=Y;v=_;f=0;b=0;s=0;o=T;while(1){j:{if((i|0)>(o|0)){g=A;while(1){z=g<<1;u=I[z+v>>1];if((u|0)>0){u=u&65535;f=u+f|0;b=P(u,I[l+z>>1])+b|0}g=g+k|0;if((D|0)>(g|0))continue;break}break j}g=A;while(1){z=g<<1;u=I[z+v>>1];k:{if((u|0)<=0){s=(g|0)>=(j|0)?1:s;break k}u= -u&65535;f=u+f|0;b=P(u,I[l+z>>1])+b|0}g=g+k|0;if((D|0)>(g|0))continue;break}}l=l+R|0;v=v+R|0;o=k+o|0;if((F|0)>(o|0))continue;break}l=0;g=c;if(!f)break i;g=P(h,G)|1;l=(b|0)/(f|0)|0;if(!(!s|(i|0)>=(F|0)|(j|0)>=(D|0))){A=j|1;v=D&1;o=(g|0)==(D|0);m=t;b=c;s=i;while(1){g=j;l:{if(!v)break l;g=A;z=j<<1;u=z+b|0;if(L[u>>1])break l;I[m+z>>1]=l;I[u>>1]=1}if(!o)while(1){z=g<<1;u=z+b|0;if(!L[u>>1]){I[m+z>>1]=l;I[u>>1]=1}z=g+1<<1;u=z+b|0;if(!L[u>>1]){I[m+z>>1]=l;I[u>>1]=1}g=g+2|0;if((D|0)>(g|0))continue;break}m= -(E<<1)+m|0;b=(r<<1)+b|0;s=s+1|0;if((F|0)>(s|0))continue;break}}I[(j<<1)+c>>1]=f>>>2;m=C;g=x}I[g+(j<<1)>>1]=l;G=G+1|0;if((r|0)>(y|0))continue;break}break h}while(1){m=1;I[(g<<1)+c>>1]=0;g=g+h|0;if((r|0)>(g|0))continue;break}}t=t+X|0;b=Q<<1;x=b+x|0;c=b+c|0;i=p;if(S)continue;break}if(!m)break g;g=h<<1;if((r|0)<=(g|0))break g;k=h;if((g|0)<(w|0))continue;break}}_c(U);_c(N);A=J[a+12>>2];q=J[a+8>>2];i=J[a+4>>2];J[695492]=0;c=J[n+2056>>2];b=P(i,q);C=ha(5043,n+2088|0,n|0,b|0,2)|0;g=J[695492];J[695492]=0;if((g| -0)==1)break e;J[695492]=0;v=ha(5043,n+2076|0,n+2084|0,b|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;t=(q|0)<=0;m:{if(t)break m;g=J[n+2084>>2];if(q>>>0>=4){b=q&-4;f=0;while(1){g=tc(g,d,i);m=d+e|0;j=m+e|0;h=j+e|0;d=h+e|0;g=tc(tc(tc(g+i|0,m,i)+i|0,j,i)+i|0,h,i)+i|0;f=f+4|0;if((b|0)!=(f|0))continue;break}}b=q&3;if(!b)break m;f=0;while(1){g=tc(g,d,i);d=d+e|0;g=g+i|0;f=f+1|0;if((b|0)!=(f|0))continue;break}}x=i-1|0;m=1;while(1){d=m;e=J[n>>2];if(!((i|0)<=0|t)){m=(x>>>0)/(d>>>0)|0;b=m+1|0;j=b&-4;g= -b&3;s=0;l=P(d,i)<<1;y=P(d,A)<<1;b=e;h=c;while(1){f=0;k=0;if(m>>>0>=3)while(1){o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;k=k+4|0;if((j|0)!=(k|0))continue;break}k=0;if(g)while(1){o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;k=k+1|0;if((g|0)!=(k|0))continue;break}b=b+l|0;h=h+y|0;s=d+s|0;if((q|0)>(s|0))continue;break}}J[695492]=0;m=d<<1;uz(e,i,q,i,d,m);b=J[695492];J[695492]=0;n:{o:{if((b|0)==1)break o;e=J[n>>2];if(!t){g= -P(d,i);b=(x>>>0)/(d>>>0)|0;j=b&1;s=b+1&-2;l=0;b=J[n+2084>>2];h=e;while(1){f=d;if((i|0)>(f|0))while(1){if(K[b+f|0])I[(f<<1)+h>>1]=0;f=f+m|0;if((i|0)>(f|0))continue;break}b=b+g|0;y=g<<1;h=y+h|0;if((q|0)>(d+l|0)){p:{if((i|0)<=0)break p;f=0;k=0;if(d>>>0<=x>>>0)while(1){if(K[b+f|0])I[(f<<1)+h>>1]=0;f=d+f|0;if(K[f+b|0])I[(f<<1)+h>>1]=0;f=d+f|0;k=k+2|0;if((s|0)!=(k|0))continue;break}if(!K[b+f|0]|j)break p;I[(f<<1)+h>>1]=0}h=h+y|0;b=b+g|0}l=l+m|0;if((q|0)>(l|0))continue;break}}J[695492]=0;Gn(e,i,q,i,m,d); -b=J[695492];J[695492]=0;if((b|0)==1)break o;e=J[n>>2];if(!((i|0)<=0|t)){k=P(d,i);b=(x>>>0)/(d>>>0)|0;s=b&1;y=b+1&-2;g=0;b=J[n+2084>>2];o=P(d,A)<<1;j=e;l=c;while(1){f=0;h=0;if(d>>>0<=x>>>0)while(1){if(!K[b+f|0]){p=f<<1;I[p+j>>1]=L[l+p>>1]}f=d+f|0;if(!K[f+b|0]){p=f<<1;I[p+j>>1]=L[l+p>>1]}f=d+f|0;h=h+2|0;if((y|0)!=(h|0))continue;break}if(!(K[b+f|0]|s)){f=f<<1;I[f+j>>1]=L[f+l>>1]}b=b+k|0;j=(k<<1)+j|0;l=l+o|0;g=d+g|0;if((q|0)>(g|0))continue;break}}J[695492]=0;uz(e,i,q,i,d,m);b=J[695492];J[695492]=0;if((b| -0)==1)break o;if(t)break n;j=(i|0)<=0;if(j)break n;l=P(d,i);s=(x>>>0)/(d>>>0)|0;b=s+1|0;y=b&-4;e=b&3;g=0;b=J[n>>2];o=P(d,A)<<1;h=c;while(1){f=0;k=0;if(s>>>0>=3)while(1){p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;k=k+4|0;if((y|0)!=(k|0))continue;break}k=0;if(e)while(1){p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;k=k+1|0;if((e|0)!=(k|0))continue;break}b=(l<<1)+b|0;h=h+o|0;g=d+g|0;if((q|0)>(g|0))continue;break}if(j)break n; -g=0;j=J[n+2084>>2];k=j;while(1){e=(q|0)>(d+g|0)?l+k|0:j;q:{if(!(!K[e|0]|(!K[k|0]|!K[j|0]))){b=1;if(K[d+k|0]|(d|0)>=(i|0))break q}b=0}H[k|0]=b;f=m;if((i|0)>(f|0))while(1){h=f+k|0;r:{if(!(!K[h|0]|!K[f+j|0]|(!K[e+f|0]|!K[(f-d|0)+k|0]))){s=d+f|0;b=1;if((s|0)>=(i|0)|K[k+s|0])break r}b=0}H[h|0]=b;f=f+m|0;if((i|0)>(f|0))continue;break}k=e+l|0;j=e;g=g+m|0;if((q|0)>(g|0))continue;break}break n}g=Z()|0;_c(v);_c(C);break c}if(d>>>0<=15)continue;break}_c(v);_c(C);break f}g=Z()|0;_c(N);break c}J[695492]=0;uz(q, -r,w,E,1,32);b=J[695492];J[695492]=0;if((b|0)==1)break e}s:{g=J[a+16>>2];t:{if((g|0)<=0)break t;h=J[a+12>>2];if((h|0)<=0)break t;k=J[a>>2];j=J[n+2056>>2];m=0;while(1){v=0;if((h|0)>0){while(1){g=(v<<1)+j|0;f=n;b=0;c=h<<1;while(1){I[f>>1]=L[g>>1];I[f+2>>1]=L[g+2>>1];I[f+4>>1]=L[g+4>>1];I[f+6>>1]=L[g+6>>1];I[f+8>>1]=L[g+8>>1];I[f+10>>1]=L[g+10>>1];I[f+12>>1]=L[g+12>>1];I[f+14>>1]=L[g+14>>1];I[f+16>>1]=L[g+16>>1];I[f+18>>1]=L[g+18>>1];I[f+20>>1]=L[g+20>>1];I[f+22>>1]=L[g+22>>1];I[f+24>>1]=L[g+24>>1];I[f+ -26>>1]=L[g+26>>1];I[f+28>>1]=L[g+28>>1];I[f+30>>1]=L[g+30>>1];I[f+32>>1]=L[g+32>>1];I[f+34>>1]=L[g+34>>1];I[f+36>>1]=L[g+36>>1];I[f+38>>1]=L[g+38>>1];I[f+40>>1]=L[g+40>>1];I[f+42>>1]=L[g+42>>1];I[f+44>>1]=L[g+44>>1];I[f+46>>1]=L[g+46>>1];I[f+48>>1]=L[g+48>>1];I[f+50>>1]=L[g+50>>1];I[f+52>>1]=L[g+52>>1];I[f+54>>1]=L[g+54>>1];I[f+56>>1]=L[g+56>>1];I[f+58>>1]=L[g+58>>1];I[f+60>>1]=L[g+60>>1];I[f+62>>1]=L[g+62>>1];f=f- -64|0;g=c+g|0;b=b+1|0;if((b|0)!=32)continue;break}J[695492]=0;ca(5498,k|0,n|0,a|0); -b=J[695492];J[695492]=0;if((b|0)==1)break s;k=k+16|0;h=J[a+12>>2];v=v+32|0;if((h|0)>(v|0))continue;break}g=J[a+16>>2]}j=(h<<6)+j|0;m=m+32|0;if((m|0)<(g|0))continue;break}}_c(M);bc=n+2096|0;return}g=Z()|0;break c}g=Z()|0;break c}g=Z()|0;_c(C)}_c(M);ba(g|0);B()}function npb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;o=bc-16|0;bc=o;J[o+12>>2]=0;a:{if(!(K[a+289|0]|K[a+288|0])){b=1029;Dc(a,1029,0,0);break a}if(!c){b=1028;Dc(a,1028,0,0);break a}H[a+ -292|0]=1;b:{if(K[a+477|0]){H[a+477|0]=0;f=Eo(a);J[a+440>>2]=J[a+440>>2]+1;if(f)break b}if(!K[a+2533|0]){f=J[a+1012>>2];if(f){f=gc[f|0](a)|0;J[a+1012>>2]=0;if(f)break b}h=zc(40);J[h>>2]=0;f=J[a+2456>>2];J[695492]=0;g=Jp(f);f=J[695492];J[695492]=0;c:{d:{if((f|0)==1)break d;i=4;j=-1;e:{f:{if(!f)break f;m=J[695493];if(!m)break f;j=Jc(J[f>>2],h,4);if(!j)break e;cc=m}f=cc;if((j|0)!=1){J[J[a+2452>>2]>>2]=g;f=J[a+2456>>2];J[f+8>>2]=1085;J[f>>2]=1086;g=a+2452|0;h=zf(a+2568|0,1,h,4);i=cc;f=0}while(1){if(f){J[695492]= -0;ha(1084,a|0,6,f|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;j=-1;g:{if(!f)break g;m=J[695493];if(!m)break g;j=Jc(J[f>>2],h,i);if(!j)break e;cc=m}f=cc;if((j|0)==1)continue;qc(h);f=6;break c}f=J[g>>2];J[695492]=0;ca(71,f|0,80,488);f=J[695492];J[695492]=0;if((f|0)==1)break d;j=-1;h:{if(!f)break h;m=J[695493];if(!m)break h;j=Jc(J[f>>2],h,i);if(!j)break e;cc=m}f=cc;if((j|0)==1)continue;break}H[a+2533|0]=1;f=J[a+2460>>2];J[J[g>>2]+24>>2]=f;J[f+24>>2]=1087;J[f+16>>2]=1088;J[f+12>>2]=1089;J[f+8>> -2]=1090;J[f+20>>2]=63;J[f>>2]=J[a+2484>>2];J[f+4>>2]=J[a+2488>>2];qc(h);f=0;break c}qc(h);ef(f,m);B()}a=Z()|0;qc(h);ba(a|0);B()}if(f)break b}g=0;p=bc-16|0;bc=p;f=zc(40);J[f>>2]=0;k=zf(a+2568|0,1,f,4);l=cc;i:{j:{k:{l:{m:while(1){if(g){J[695492]=0;ha(1084,a|0,6,g|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;n:{if(!g)break n;f=J[695493];if(!f)break n;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue;h=6;break l}j=c;m=d;h=J[a+2492>>2];if(h){J[a+2484>>2]=J[a+2476>>2];f=h-j|0;J[a+ -2492>>2]=f>>>0<=h>>>0?f:0;m=(h>>>0>>0?h:0)+m|0;f=j-h|0;j=f>>>0<=j>>>0?f:0}if(j)while(1){i=J[a+2480>>2];g=J[a+2488>>2];f=J[a+2476>>2];h=J[a+2484>>2];o:{if(f>>>0>=h>>>0){f=h;break o}if(((h+j|0)-f|0)+g>>>0<=i>>>0){f=h;break o}if(g){tc(f,h,g);i=J[a+2480>>2];f=J[a+2476>>2];g=J[a+2488>>2]}else g=0;J[a+2484>>2]=f}p:{if(g+j>>>0<=i>>>0){tc(f+g|0,m,j);f=J[a+2488>>2]+j|0;J[a+2488>>2]=f;j=0;break p}if((g|0)==(i|0)){J[695492]=0;ha(1084,a|0,13,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;q:{if(!g)break q; -f=J[695493];if(!f)break q;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;h=13;break l}h=i-g|0;tc(f+g|0,m,h);f=h+J[a+2488>>2]|0;J[a+2488>>2]=f;m=h+m|0;j=j-h|0}n=J[a+2484>>2];g=J[a+2452>>2];h=J[g+24>>2];J[h+4>>2]=f;J[h>>2]=n;r:{if(!K[a+2534|0]){J[695492]=0;h=aa(72,g|0,1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;s:{if(!g)break s;f=J[695493];if(!f)break s;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;if(h){H[a+2534|0]=1;h=J[a+2452>>2];if(!(J[h+28>>2]==J[a+ -316>>2]&J[h+32>>2]==J[a+320>>2])){J[695492]=0;ha(1084,a|0,1056,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;t:{if(!g)break t;f=J[695493];if(!f)break t;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;h=1056;break l}u:{v:{w:{f=K[a+336|0];switch(f-8|0){case 2:case 6:break v;case 0:case 4:break w;default:break u}}if(J[h+40>>2]!=1){J[695492]=0;ha(1084,a|0,1056,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;x:{if(!g)break x;f=J[695493];if(!f)break x;i=Jc(J[g>>2],k,l); -if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;h=1056;break l}if((f|0)!=10)break u}if(J[h+40>>2]==3)break u;J[695492]=0;ha(1084,a|0,1056,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;y:{if(!g)break y;f=J[695493];if(!f)break y;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;h=1056;break l}J[695492]=0;h=$(1091,h|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;n=-1;z:{if(!g)break z;f=J[695493];if(!f)break z;n=Jc(J[g>>2],k,l);if(!n)break k;cc=f}g=cc;if((n|0)==1)continue m; -H[a+2538|0]=h;A:{if(!(h&255))break A;B:switch(K[a+336|0]-12|0){case 0:case 2:break B;default:break A}J[a+968>>2]=0}h=J[a+2452>>2];f=J[h+28>>2];h=J[h+40>>2]==3?P(f,3):f;J[a+2520>>2]=h;f=J[a+152>>2];J[695492]=0;h=$(f|0,h|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;n=-1;C:{if(!g)break C;f=J[695493];if(!f)break C;n=Jc(J[g>>2],k,l);if(!n)break k;cc=f}g=cc;if((n|0)==1)continue m;J[a+2516>>2]=h;if(!h){J[695492]=0;ha(1084,a|0,1,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;D:{if(!g)break D; -f=J[695493];if(!f)break D;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;h=1;break l}J[a+2560>>2]=0}g=J[a+2452>>2];f=J[g+24>>2];J[a+2484>>2]=J[f>>2];J[a+2488>>2]=J[f+4>>2];if(!K[a+2534|0])break r}if(!K[a+2535|0]){if(K[a+2538|0])J[g+64>>2]=1;J[695492]=0;h=$(77,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;E:{if(!g)break E;f=J[695493];if(!f)break E;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;if((h|0)==1)H[a+2535|0]=1;g=J[a+2452>>2];f=J[g+24>>2];J[a+2484>> -2]=J[f>>2];J[a+2488>>2]=J[f+4>>2];if(!K[a+2534|0]|!K[a+2535|0])break r}J[695492]=0;h=$(1092,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;F:{if(!g)break F;f=J[695493];if(!f)break F;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;G:{H:{if(!h)break H;f=J[a+2452>>2];if(M[f+140>>2]>2])break H;if(!K[a+2538|0]|!K[a+2537|0])break G}n=0;while(1){J[p+12>>2]=J[a+2516>>2];I:{J:{K:{if(!K[a+2538|0])break K;if(!K[a+2536|0]){H[a+2536|0]=1;h=J[a+2452>>2];f=J[h+144>>2];J[695492]= -0;aa(1093,h|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;L:{if(!g)break L;f=J[695493];if(!f)break L;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;J[a+2552>>2]=0;if(!K[a+2538|0])break K}if(K[a+2537|0])break J}g=J[a+2452>>2];while(1){J[695492]=0;n=ga(86,g|0,p+12|0,1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;M:{if(!g)break M;f=J[695493];if(!f)break M;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;g=J[a+2452>>2];f=J[g+24>>2];J[a+2484>>2]=J[f>> -2];J[a+2488>>2]=J[f+4>>2];if((n|0)>0){f=J[a+2544>>2];if(f){J[695492]=0;h=$(f|0,a|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;N:{if(!g)break N;f=J[695493];if(!f)break N;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;if(h)break l;g=J[a+2452>>2]}if(M[g+140>>2]>2])continue}break}if(!K[a+2538|0])break I}f=J[a+2452>>2];if(M[f+140>>2]>2])break I;J[695492]=0;h=$(1094,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;O:{if(!g)break O;f=J[695493];if(!f)break O; -i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;if(h){H[a+2536|0]=0;f=0}else f=1;H[a+2537|0]=f}f=J[a+2452>>2];J[695492]=0;h=$(1092,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;P:{if(!g)break P;f=J[695493];if(!f)break P;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;if((n|0)<=0|h)break G;if(!K[a+2537|0])continue;break}}if(K[a+2537|0]|(!K[a+2534|0]|!K[a+2535|0]))break r;f=J[a+2452>>2];J[695492]=0;h=$(1092,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j; -i=-1;Q:{if(!g)break Q;f=J[695493];if(!f)break Q;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;if(!h)break r;f=J[a+2452>>2];if(J[f+144>>2]!=J[f+152>>2])break r;J[695492]=0;h=$(87,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;R:{if(!g)break R;f=J[695493];if(!f)break R;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;if((h|0)!=1)break r;I[a+2534>>1]=0;f=J[J[a+2452>>2]+24>>2];J[a+2484>>2]=J[f>>2];f=J[f+4>>2];J[a+2488>>2]=f;if(!(f|j))break r;J[695492]=0;ha(1084, -a|0,1055,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;S:{if(!g)break S;f=J[695493];if(!f)break S;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m;h=1055;break l}if(j)continue;break}break}h=0}qc(k);bc=p+16|0;f=h;break i}qc(k);ef(g,f);B()}a=Z()|0;qc(k);ba(a|0);B()}}J[o+12>>2]=f;f=J[o+12>>2];if(f){b=f;break a}if(!K[a+112|0]){b=0;break a}q=o,r=gc[J[b+4>>2]](a,b,e)|0,J[q+12>>2]=r;b=J[o+12>>2];if(b)break a;f=J[e>>2];J[f+36>>2]=c;b=0;H[f+32|0]=0;f=gc[J[a+152>>2]](c)|0;J[J[e>>2]+ -40>>2]=f;e=J[J[e>>2]+40>>2];if(!e){b=1;Dc(a,1,0,0);break a}tc(e,d,c)}bc=o+16|0;return b|0}function tDa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;f=bc-128|0;bc=f;tU(J[c>>2]);rU(J[c>>2]);d=bc-16|0;bc=d;g=J[c>>2];a:{if(J[g+8>>2]){ei(d+12|0,g,g+8|0);break a}J[d+12>>2]=0;md(d+12|0,0)}b:{k=J[d+12>>2];if(!k){g=300;break b}g=J[k+20>>2];J[695492]=0;J[d+12>>2]=0;h=J[k+4>>2]-1|0;J[k+4>>2]=h;t=J[695492];J[695492]=0;if((t|0)!=1){if(h)break b; -J[695492]=0;_(4987,k|0);k=J[695492];J[695492]=0;if((k|0)!=1)break b}ea(0)|0;yc();B()}bc=d+16|0;J[f+96>>2]=0;J[f+100>>2]=0;J[f+88>>2]=0;J[f+92>>2]=0;gc[J[J[b>>2]+40>>2]](b,f+96|0)|0;gc[J[J[b>>2]+44>>2]](b,f+88|0)|0;if(O[f+96>>3]<=0){J[f+96>>2]=0;J[f+100>>2]=1079115776}if(O[f+88>>3]<=0){J[f+88>>2]=0;J[f+92>>2]=1079115776}J[f+80>>2]=0;J[f+84>>2]=0;J[f+72>>2]=0;J[f+76>>2]=0;gc[J[J[b>>2]+32>>2]](b,f+80|0)|0;gc[J[J[b>>2]+24>>2]](b,f+72|0)|0;q=O[f+80>>3];if(q<=0){J[f+80>>2]=0;J[f+84>>2]=1080623104;q=200}u= -O[f+72>>3];if(u<=0){J[f+72>>2]=0;J[f+76>>2]=1081262080;u=300}t=g;v=O[f+88>>3];w=O[f+96>>3];J[f+68>>2]=0;gc[J[J[b>>2]+16>>2]](b,f+68|0)|0;c:{if(J[f+68>>2]==1){k=tU(J[c>>2]);d=rU(J[c>>2]);break c}q=w*q/25.4;d:{if(R(q)<2147483648){k=~~q;break d}k=-2147483648}q=v*u/25.4;if(R(q)<2147483648){d=~~q;break c}d=-2147483648}g=rc(P(d,k)<<2);s=f+36|0;h=s;J[h+12>>2]=0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=349684;J[h+20>>2]=0;J[h+24>>2]=0;H[h+28|0]=0;J[f+104>>2]=k;J[f+16>>2]=d;J[695492]=0;J[f+32>>2]=k<<2; -nm(h,g,f+104|0,f+16|0,f+32|0,0);h=J[695492];J[695492]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{if((h|0)!=1){h=J[c>>2];J[695492]=0;h=$(5012,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break k;if(!h){h=J[c>>2];J[695492]=0;h=$(5013,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break k;if(!h)break y}J[f+116>>2]=d;J[f+112>>2]=k;J[f+104>>2]=0;J[f+108>>2]=0;c=J[c>>2];J[695492]=0;h=c;c=f+104|0;Ha(5014,f+16|0,h|0,c|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break z;if(!((d|0)<=0|(k| -0)<=0)){l=k&-2;p=k&1;while(1){i=0;h=d-1|0;j=J[f+16>>2];c=0;A:{if(h>>>0>=L[j+8>>1])break A;n=J[j+16>>2];c=0;if(!n)break A;c=n+P(P(h,L[j+12>>1]),3)|0}if((k|0)!=1)while(1){H[g|0]=K[c|0];H[g+1|0]=K[c+1|0];j=K[c+2|0];H[g+3|0]=255;H[g+2|0]=j;H[g+4|0]=K[c+3|0];H[g+5|0]=K[c+4|0];j=K[c+5|0];H[g+7|0]=255;H[g+6|0]=j;c=c+6|0;g=g+8|0;i=i+2|0;if((l|0)!=(i|0))continue;break}if(p){H[g|0]=K[c|0];H[g+1|0]=K[c+1|0];c=K[c+2|0];H[g+3|0]=255;H[g+2|0]=c;g=g+4|0}c=(d|0)>1;d=h;if(c)continue;break}}c=J[f+16>>2];J[f+16>>2]= -0;if(!c)break m;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break x;if(d)break m;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break x;break m}c=Z()|0;break g}c=Z()|0;break g}h=J[c>>2];J[695492]=0;h=$(5015,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break k;if(!h)break w;J[f+28>>2]=d;J[f+24>>2]=k;J[f+16>>2]=0;J[f+20>>2]=0;c=J[c>>2];J[695492]=0;h=c;c=f+16|0;la(5016,f+32|0,h|0,c|0,c|0,4);c=J[695492];J[695492]=0;B:{C:{if((c|0)!=1){j=L[J[f+32>>2]+16>>1];J[695492]= -0;l=$(27,j<<2)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o;c=16711680;p=16711680/(j-1|0)|0;D:{if(!j)break D;i=0;if((j|0)!=1){n=j&65534;h=0;while(1){r=i<<2;J[r+l>>2]=P(c>>>16&255,65793)|-16777216;c=c-p|0;J[l+(r|4)>>2]=P(c>>>16&255,65793)|-16777216;i=i+2|0;c=c-p|0;h=h+2|0;if((n|0)!=(h|0))continue;break}}if(!(j&1))break D;J[l+(i<<2)>>2]=P(c>>>16&255,65793)|-16777216}if((d|0)<=0)break B;n=k&-4;p=k&3;r=k>>>0<4;break C}c=Z()|0;break g}while(1){h=d;E:{F:{G:{H:{c=J[f+32>>2];if(!J[c+20>>2]){J[695492]=0; -_(5017,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break H}i=L[c+14>>1];d=h-1|0;I:{if(d>>>0>=L[c+8>>1]){c=L[c+12>>1];if(J[682142]<(c+i|0)){J[695492]=0;a=ja(5018,f+104|0,2381200,2381607,577,2381799,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break G;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break v;c=Z()|0;Fc(a);break n}c=c+J[682141]|0;break I}c=L[c+12>>1]+(J[c+20>>2]+P(d,i)|0)|0}if((k|0)<=0)break E;i=0;if(r)break F;while(1){m=K[c|0];J[g>>2]=J[l+((j>>>0>m>>>0?m:0)<<2)>>2];m=K[c+1|0];J[g+ -4>>2]=J[l+((j>>>0>m>>>0?m:0)<<2)>>2];m=K[c+2|0];J[g+8>>2]=J[l+((j>>>0>m>>>0?m:0)<<2)>>2];m=K[c+3|0];J[g+12>>2]=J[l+((j>>>0>m>>>0?m:0)<<2)>>2];c=c+4|0;g=g+16|0;i=i+4|0;if((n|0)!=(i|0))continue;break}break F}c=Z()|0;break n}c=Z()|0;break n}i=0;if(!p)break E;while(1){m=K[c|0];J[g>>2]=J[l+((j>>>0>m>>>0?m:0)<<2)>>2];c=c+1|0;g=g+4|0;i=i+1|0;if((p|0)!=(i|0))continue;break}}if((h|0)>=2)continue;break}}qc(l);c=J[f+32>>2];J[f+32>>2]=0;if(!c)break m;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;g=J[695492];J[695492]= -0;if((g|0)!=1){if(d)break m;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break m}break e}ea(0)|0;yc();break v}J[f+28>>2]=d;J[f+24>>2]=k;J[f+16>>2]=0;J[f+20>>2]=0;h=J[c>>2];J[695492]=0;i=h;h=f+16|0;Ha(5014,f+32|0,i|0,h|0,h|0,0);h=J[695492];J[695492]=0;J:{if((h|0)!=1){i=J[f+32>>2];if(!i)break J;if((d|0)<=0){J[f+32>>2]=0;c=1;break p}c=1;if((k|0)<=0)break q;l=k&-2;p=k&1;while(1){i=0;h=d-1|0;j=J[f+32>>2];c=0;K:{if(h>>>0>=L[j+8>>1])break K;n=J[j+16>>2];c=0;if(!n)break K;c=n+P(P(h,L[j+12>> -1]),3)|0}if((k|0)!=1)while(1){H[g|0]=K[c|0];H[g+1|0]=K[c+1|0];j=K[c+2|0];H[g+3|0]=255;H[g+2|0]=j;H[g+4|0]=K[c+3|0];H[g+5|0]=K[c+4|0];j=K[c+5|0];H[g+7|0]=255;H[g+6|0]=j;c=c+6|0;g=g+8|0;i=i+2|0;if((l|0)!=(i|0))continue;break}if(p){H[g|0]=K[c|0];H[g+1|0]=K[c+1|0];c=K[c+2|0];H[g+3|0]=255;H[g+2|0]=c;g=g+4|0}c=1;i=(d|0)>1;d=h;if(i)continue;break}break q}c=Z()|0;break g}c=J[c>>2];J[695492]=0;h=c;c=f+16|0;la(5016,f+12|0,h|0,c|0,c|0,4);c=J[695492];J[695492]=0;if((c|0)==1)break u;p=J[f+12>>2];if(p){j=L[p+16>> -1];J[695492]=0;l=$(27,j<<2)|0;c=J[695492];J[695492]=0;if((c|0)==1)break t;c=16711680;n=16711680/(j-1|0)|0;L:{if(!j)break L;i=0;if((j|0)!=1){r=j&65534;h=0;while(1){m=i<<2;J[m+l>>2]=P(c>>>16&255,65793)|-16777216;c=c-n|0;J[l+(m|4)>>2]=P(c>>>16&255,65793)|-16777216;i=i+2|0;c=c-n|0;h=h+2|0;if((r|0)!=(h|0))continue;break}}if(!(j&1))break L;J[l+(i<<2)>>2]=P(c>>>16&255,65793)|-16777216}if((d|0)>0){r=k&-4;n=k&3;m=k>>>0<4;while(1){h=d;M:{N:{O:{P:{c=J[f+12>>2];if(!J[c+20>>2]){J[695492]=0;_(5017,c|0);d=J[695492]; -J[695492]=0;if((d|0)==1)break P}i=L[c+14>>1];d=h-1|0;Q:{if(d>>>0>=L[c+8>>1]){c=L[c+12>>1];if(J[682142]<(c+i|0)){J[695492]=0;a=ja(5018,f+104|0,2381200,2381607,577,2381799,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break O;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break v;c=Z()|0;Fc(a);break s}c=c+J[682141]|0;break Q}c=L[c+12>>1]+(J[c+20>>2]+P(d,i)|0)|0}if((k|0)<=0)break M;i=0;if(m)break N;while(1){o=K[c|0];J[g>>2]=J[l+((j>>>0>o>>>0?o:0)<<2)>>2];o=K[c+1|0];J[g+4>>2]=J[l+((j>>>0>o>>> -0?o:0)<<2)>>2];o=K[c+2|0];J[g+8>>2]=J[l+((j>>>0>o>>>0?o:0)<<2)>>2];o=K[c+3|0];J[g+12>>2]=J[l+((j>>>0>o>>>0?o:0)<<2)>>2];c=c+4|0;g=g+16|0;i=i+4|0;if((r|0)!=(i|0))continue;break}break N}c=Z()|0;break s}c=Z()|0;break s}i=0;if(!n)break M;while(1){o=K[c|0];J[g>>2]=J[l+((j>>>0>o>>>0?o:0)<<2)>>2];c=c+1|0;g=g+4|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if((h|0)>=2)continue;break}}qc(l)}c=(p|0)!=0;vc(f+12|0);break q}B()}c=Z()|0;break r}c=Z()|0}vc(f+12|0)}vc(f+32|0);break g}i=J[f+32>>2];J[f+32>>2]=0;if(!i)break l}J[695492]= -0;d=J[i+4>>2]-1|0;J[i+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)!=1){if(d)break l;J[695492]=0;_(4987,i|0);d=J[695492];J[695492]=0;if((d|0)!=1)break l}break e}c=Z()|0}vc(f+32|0);break g}c=1}J[f+104>>2]=1;d=J[J[b>>2]+308>>2];J[695492]=0;aa(d|0,b|0,f+104|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;d=J[f+68>>2];if(!(1<>>0<=16:0)){J[695492]=0;d=aa(3094,f+8|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k;J[695492]=0;Fb(5020,a|0,b|0,d|0,+(25.4/+(t|0)),0);a=J[695492];J[695492]=0;if((a| -0)==1)break i;mh(d)}if(!c)break h;J[f+104>>2]=0;J[f+108>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;a=J[J[b>>2]+376>>2];J[695492]=0;ja(a|0,b|0,s|0,f+104|0,f+16|0,f+80|0,f+72|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break h;c=Z()|0;break g}c=Z()|0;break g}c=Z()|0;break g}c=Z()|0;mh(d);break g}J[f+104>>2]=1;a=J[J[b>>2]+312>>2];J[695492]=0;aa(a|0,b|0,f+104|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break f;c=Z()|0}ji(s);ba(c|0);B()}ji(s);bc=f+128|0;return}ea(0)|0;yc();B()}function Whb(a){a=a|0;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;f=bc-80|0;bc=f;j=J[a+8>>2];a:{if(!j){b=6;break a}l=J[a>>2];c=J[a+4>>2];b:{if(J[c+12>>2]>1)break b;qo(c);if(J[c+12>>2]>1)break b;e=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=e>>>0)break b;d=b+1|0;J[c>>2]=d;g=K[b|0];b=d;if(!(1<>>0>26)continue;break}}while(1){c:{J[c+12>>2]=0;d=mx(c);if(d)break c;b=2;if(J[c+12>>2]==2)continue;break a}break}b=2;if((J[c>>2]+(d^-1)|0)!=16)break a;if(kd(d,239769,16))break a;g=160;d:{e:{f:{g:while(1){c=J[a+4>>2];h:{if(J[c+12>> -2]>1)break h;qo(c);if(J[c+12>>2]>1)break h;h=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=h>>>0)break h;d=b+1|0;J[c>>2]=d;e=K[b|0];b=d;if(!(1<>>0>26)continue;break}}while(1){i:{J[c+12>>2]=0;b=mx(c);if(b)break i;if(J[c+12>>2]==2)continue;break d}break}h=J[c>>2]+(b^-1)|0;d=0;e=K[b|0];while(1){j:{if((e|0)==K[J[(d<<2)+261488>>2]]){c=d;break j}c=d|1;if((e|0)==K[J[(c<<2)+261488>>2]])break j;d=d+2|0;if((d|0)!=74)continue;continue g}break}d=(c|0)<=73?73:c;while(1){i=J[(c<<2)+261488>>2];if((e|0)!= -K[i|0])continue g;if(kd(i,b,h)){i=(c|0)==(d|0);c=c+1|0;if(i)continue g;continue}break}b=0;k:{l:switch(c|0){case 40:J[f+32>>2]=3;if((mn(a,f+32|0,1)|0)!=1)break d;if(!(J[f+36>>2]&-3))continue;g=7;break d;case 30:J[f>>2]=4;if((mn(a,f,1)|0)!=1)break d;H[j|0]=K[f+4|0];continue;case 26:J[f+24>>2]=2;J[f+16>>2]=2;J[f+8>>2]=2;J[f>>2]=2;if((mn(a,f,4)|0)!=4)break d;J[j+4>>2]=J[f+4>>2];J[j+8>>2]=J[f+12>>2];J[j+12>>2]=J[f+20>>2];J[j+16>>2]=J[f+28>>2];continue;case 0:J[f>>2]=2;if((mn(a,f,1)|0)!=1)break d;J[j+20>> -2]=J[f+4>>2];continue;case 14:J[f>>2]=2;if((mn(a,f,1)|0)!=1)break d;J[j+24>>2]=J[f+4>>2];continue;case 45:J[f+32>>2]=3;if((mn(a,f+32|0,1)|0)!=1)break d;c=J[f+36>>2];if((c|0)<=0)break k;m:while(1){i=J[a+4>>2];n:{if(J[i+12>>2]>=2){d=J[i>>2];h=J[i+8>>2];break n}qo(i);d=J[i>>2];h=J[i+8>>2];if(J[i+12>>2]>1)break n;while(1){if(d>>>0>=h>>>0)break n;b=d+1|0;J[i>>2]=b;g=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[i+12>>2]=0;if(d>>>0>=h>>>0)break f;e=c-1|0;while(1){b=d+1|0;J[i>>2]=b;o:switch(K[d| -0]-9|0){case 0:case 23:d=b;if((b|0)!=(h|0))continue;break f;default:p:{q:{r:{while(1){g=3;if(b>>>0>=h>>>0)break q;d=b;b=b+1|0;J[i>>2]=b;s:switch(K[d|0]-9|0){case 0:case 23:break p;case 17:break q;case 50:break r;case 1:case 4:break s;default:continue}break}g=2;break q}g=1}J[i+12>>2]=g}b=(c|0)>1;c=e;if(b)continue m;break k;case 50:J[i+12>>2]=1;break e;case 1:case 4:break o;case 17:break f}J[i+12>>2]=0;d=b;if(b>>>0>>0)continue;break}break}break f;case 20:break a;case 49:break l;default:continue}t:while(1){e= -J[a+4>>2];u:{if(J[e+12>>2]>=2){d=J[e>>2];h=J[e+8>>2];break u}qo(e);d=J[e>>2];h=J[e+8>>2];if(J[e+12>>2]>1)break u;while(1){if(d>>>0>=h>>>0)break u;b=d+1|0;J[e>>2]=b;c=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[e+12>>2]=0;v:{if(d>>>0>=h>>>0)break v;while(1){w:{b=d+1|0;J[e>>2]=b;x:switch(K[d|0]-9|0){case 0:case 23:d=b;if((b|0)!=(h|0))continue;break v;default:y:{z:{A:{while(1){c=3;if(b>>>0>=h>>>0)break z;g=b;b=b+1|0;J[e>>2]=b;B:switch(K[g|0]-9|0){case 0:case 23:break y;case 17:break z; -case 50:break A;case 1:case 4:break B;default:continue}break}c=2;break z}c=1}J[e+12>>2]=c}e=(d^-1)+b|0;b=0;g=K[d|0];while(1){if((g|0)==K[J[(b<<2)+261488>>2]]){c=b;break w}c=b|1;if((g|0)==K[J[(c<<2)+261488>>2]])break w;b=b+2|0;if((b|0)!=74)continue;break}continue t;case 50:J[e+12>>2]=1;g=160;break d;case 17:break v;case 1:case 4:break x}J[e+12>>2]=0;d=b;if(b>>>0>>0)continue;break v}break}b=(c|0)<=73?73:c;while(1){h=J[(c<<2)+261488>>2];if((g|0)!=K[h|0])continue t;if(kd(h,d,e)){h=(b|0)==(c|0);c=c+ -1|0;if(h)continue t;continue}break}b=0;g=160;C:switch(c-20|0){case 33:e=J[a+8>>2];J[f+32>>2]=3;d=f+32|0;if((mn(a,d,1)|0)!=1)break d;b=J[f+36>>2];if((b|0)<0)break d;J[e+32>>2]=b;if(b){m=e,n=Sc(J[a>>2],20,0,b,0,d),J[m+28>>2]=n;g=J[f+32>>2];if(g)break d}g=-1;D:{E:while(1){c=J[a+4>>2];F:{if(J[c+12>>2]>1)break F;qo(c);if(J[c+12>>2]>1)break F;i=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=i>>>0)break F;d=b+1|0;J[c>>2]=d;h=K[b|0];b=d;if(!(1<>>0>26)continue;break}}G:{while(1){J[c+12>>2]=0;b=mx(c); -if(b)break G;if(J[c+12>>2]==2)continue;break}g=160;break d}i=J[c>>2]+(b^-1)|0;h=K[b|0];d=0;while(1){H:{if((h|0)==K[J[(d<<2)+261488>>2]]){c=d;break H}c=d|1;if((h|0)==K[J[(c<<2)+261488>>2]])break H;d=d+2|0;if((d|0)!=74)continue;continue E}break}d=(c|0)<=73?73:c;while(1){k=J[(c<<2)+261488>>2];if((h|0)!=K[k|0])continue E;if(kd(k,b,i)){k=(c|0)==(d|0);c=c+1|0;if(k)continue E;continue}break}I:{J:switch(c-20|0){case 36:g=g+1|0;if((g|0)>=J[e+32>>2])break I;b=J[e+28>>2];J[f+64>>2]=2;J[f+56>>2]=2;J[f+48>>2]= -2;J[f+40>>2]=2;J[f+32>>2]=3;if((mn(a,f+32|0,5)|0)!=5)break I;b=P(g,20)+b|0;J[b>>2]=J[f+36>>2];J[b+4>>2]=J[f+44>>2];J[b+8>>2]=J[f+52>>2];J[b+12>>2]=J[f+60>>2];J[b+16>>2]=J[f+68>>2];continue;case 0:case 1:case 3:break D;case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:break I;default:break J}if((c| -0)==75)continue}break}g=160;break d}J[e+32>>2]=g+1;continue;case 0:case 1:break a;case 55:continue;case 30:case 31:break C;default:break d}h=J[a+8>>2];J[f+32>>2]=3;d=f+32|0;if((mn(a,d,1)|0)!=1)break d;b=J[f+36>>2];if((b|0)<0)break d;J[h+40>>2]=b;if(b){m=h,n=Sc(J[a>>2],16,0,b,0,d),J[m+36>>2]=n;g=J[f+32>>2];if(g)break d}g=-1;K:{L:while(1){c=J[a+4>>2];M:{if(J[c+12>>2]>1)break M;qo(c);if(J[c+12>>2]>1)break M;i=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=i>>>0)break M;d=b+1|0;J[c>>2]=d;e=K[b|0];b=d;if(!(1<< -e&67118080)|e>>>0>26)continue;break}}N:{while(1){J[c+12>>2]=0;b=mx(c);if(b)break N;if(J[c+12>>2]==2)continue;break}g=160;break d}i=J[c>>2]+(b^-1)|0;e=K[b|0];d=0;while(1){O:{if((e|0)==K[J[(d<<2)+261488>>2]]){c=d;break O}c=d|1;if((e|0)==K[J[(c<<2)+261488>>2]])break O;d=d+2|0;if((d|0)!=74)continue;continue L}break}d=(c|0)<=73?73:c;while(1){k=J[(c<<2)+261488>>2];if((e|0)!=K[k|0])continue L;if(kd(k,b,i)){k=(c|0)==(d|0);c=c+1|0;if(k)continue L;continue}break}if((c|0)==75)continue;b=c-20|0;if(b>>>0>17){g= -160;break d}b=1<=J[h+40>>2])break P;b=J[h+36>>2];J[f+56>>2]=3;J[f+48>>2]=3;J[f+40>>2]=5;J[f+32>>2]=5;i=mn(a,f+32|0,4);if((i|0)<3)break P;e=(g<<4)+b|0;J[e>>2]=J[f+36>>2];J[e+4>>2]=J[f+44>>2];b=0;d=J[f+52>>2];if((c|0)!=37){b=d;d=(c|0)==34?(i|0)==4?J[f+60>>2]:0:0}J[e+12>>2]=d;J[e+8>>2]=b;continue}break}g=160;break d}b=g+1|0;J[h+40>>2]=b;Kl(J[h+36>>2],b,16,1678);continue}break}J[e+12>>2]=3;g=160;break d}while(1){e=J[a+4>>2];Q:{if(J[e+ -12>>2]>=2){d=J[e>>2];h=J[e+8>>2];break Q}qo(e);d=J[e>>2];h=J[e+8>>2];if(J[e+12>>2]>1)break Q;while(1){if(d>>>0>=h>>>0)break Q;b=d+1|0;J[e>>2]=b;c=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[e+12>>2]=0;R:{if(d>>>0>=h>>>0)break R;S:{while(1){T:{b=d+1|0;J[e>>2]=b;U:switch(K[d|0]-9|0){case 50:J[e+12>>2]=1;break e;case 0:case 23:d=b;if((b|0)!=(h|0))continue;break R;default:V:{W:{X:{while(1){c=3;if(b>>>0>=h>>>0)break W;g=b;b=b+1|0;J[e>>2]=b;Y:switch(K[g|0]-9|0){case 0:case 23:break V;case 17:break W; -case 50:break X;case 1:case 4:break Y;default:continue}break}c=2;break W}c=1}J[e+12>>2]=c}e=(d^-1)+b|0;g=K[d|0];b=0;while(1){if((g|0)==K[J[(b<<2)+261488>>2]]){c=b;break T}c=b|1;if((g|0)==K[J[(c<<2)+261488>>2]])break T;b=b+2|0;if((b|0)!=74)continue;break}b=75;break S;case 17:break R;case 1:case 4:break U}J[e+12>>2]=0;d=b;if(b>>>0>>0)continue;break R}break}h=(c|0)<=73?73:c;while(1){b=75;i=J[(c<<2)+261488>>2];if((g|0)!=K[i|0])break S;if(!kd(i,d,e)){b=c;break S}i=(c|0)==(h|0);c=c+1|0;if(!i)continue; -break}}g=0;switch(b-17|0){case 0:case 3:continue g;default:continue}}break}break}J[e+12>>2]=3;break e}J[i+12>>2]=3}b=160;break a}a=J[j+28>>2];if(a)gc[J[l+8>>2]](l,a);J[j+28>>2]=0;J[j+32>>2]=0;a=J[j+36>>2];if(a)gc[J[l+8>>2]](l,a);H[j|0]=0;J[j+36>>2]=0;J[j+40>>2]=0;b=g}bc=f+80|0;return b|0}function Yyb(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,y=0,z=0;f=bc-112|0;bc=f;if(b)hd(198324,0);b=J[a+8>>2];a:{b:{if(b&7)break b;c:{d:{e:{d=J[a+ -64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break e;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;c=K[d|0];break f}c=jd(a,1);if((c|0)==-1)break b;b=J[a+8>>2]}if(b&7)break b;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;g:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break g}b=jd(a,1);if((b|0)==-1)break b}if(ZN(a,f+100|0))break b;if(ZN(a,f+96|0))break b;p=J[f+96>>2];i=J[f+100>>2];d=b&255|c<<8&65280; -if((YN(d)|0)==2)break d;if(ZN(a,f))break b;b=J[f>>2];m=b>>31;e=(b^m)-m|0;l=b>>>31|0;break c}J[a+8>>2]=b|4;break b}e=1;J[f>>2]=1;l=0}c=0;q=1;n=1;h:{i:{j:{k:{l:{m:{b=YN(d);if(b-1>>>0>=2){if(b)break m;n=3;q=0;h=1}b=f;while(1){J[b+20>>2]=p;J[b+16>>2]=i;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=0;J[b+4>>2]=0;m=WN(e);J[b+28>>2]=l;J[b+24>>2]=m;b=b+32|0;c=c+1|0;if((n|0)!=(c|0))continue;break}m=Rr(n,f);if(!m)break b;b=0;c=J[m+24>>2];J[J[c>>2]+40>>2]=0;if(h){J[J[c+4>>2]+40>>2]=1;J[J[c+8>>2]+40>>2]=2;c=1025}else c=769; -J[m+28>>2]=c;h=K9(d);d=YN(d);o=WN(e);J[f+108>>2]=0;J[f+100>>2]=0;J[f+104>>2]=0;while(1){c=ek(1,i);J[(f+100|0)+(b<<2)>>2]=c;if(!c)break k;b=b+1|0;if((n|0)!=(b|0))continue;break}c=1;if((p|0)<=0)break h;if((d|0)!=2)break l;j=J[f+100>>2];h=(h|0)==1;break j}ra();B()}if((i|0)>0)break i;b=0;while(1){c=0;a=0;while(1){if(gk(m,a,0,b,i,1,J[(f+100|0)+(a<<2)>>2]))break h;a=a+1|0;if((n|0)!=(a|0))continue;break}c=1;b=b+1|0;if((p|0)!=(b|0))continue;break}break h}c=0;break h}while(1){n:{if(!h){e=0;if((i|0)<=0)break n; -o:while(1){c=0;b=nj(a);if((b|0)!=35){if((b|0)==-1)break h;if((b&-2)!=48)continue;J[J[J[j+28>>2]>>2]+(e<<2)>>2]=49-b;e=e+1|0;if((i|0)!=(e|0))continue;break n}while(1)switch(nj(a)+1|0){case 0:break h;case 11:continue o;default:continue}}}c=0;b=0;if((i|0)<=0)break n;while(1){d=J[a+8>>2];if(d&7)break h;p:{l=J[a+64>>2];if(!((l|0)>=0&(l|0)<=J[a+60>>2])){d=J[a+28>>2];J[a+28>>2]=d-1;q:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;e=K[d|0];break q}e=jd(a,1);if((e|0)==-1)break h}if((b|0)>= -(i|0))break p;l=J[J[j+28>>2]>>2];e=e^-1;J[l+(b<<2)>>2]=e>>>7&1;d=b+1|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>6&1;d=b+2|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>5&1;d=b+3|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>4&1;d=b+4|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>3&1;d=b+5|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>2&1;d=b+6|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>1&1;d=b+7|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e&1;b=b+8|0;break p}J[a+8>> -2]=d|4;break h}if((b|0)<(i|0))continue;break}}c=0;b=0;while(1){if(gk(m,b,0,g,i,1,J[(f+100|0)+(b<<2)>>2]))break h;b=b+1|0;if((n|0)!=(b|0))continue;break}c=1;g=g+1|0;if((p|0)!=(g|0))continue;break}break h}y=1<>>3|0;t=((o&63)>>>0<32?-1<>2];v=J[f+104>>2];w=J[f+100>>2];z=(h|0)==1;while(1){r:{if(!z){h=0;if(l)while(1){g=0;s:while(1){e=0;c=J[a+8>>2];t:{if(c&7)break t;u:{while(1){b=J[a+64>>2];if(!((b|0)<0|(b|0)>J[a+60>>2])){J[a+8>>2]=c|4;break t}b=J[a+28>>2];J[a+28>>2]=b-1;v:{w:{if((b| -0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break w}b=jd(a,1)}if((b|0)!=35){if((b|0)==-1)break t;if((b|0)==32|b-9>>>0<5)continue s;c=(b|0)==45;if(c)break v;if((b|0)!=43)break u;b=nj(a);if((b|0)!=-1)break u;break t}while(1){b=J[a+8>>2];if(b&7)break t;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2])){J[a+8>>2]=b|4;break t}b=J[a+28>>2];J[a+28>>2]=b-1;x:{y:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break y}b=jd(a,1)}switch(b+1|0){case 0:break t;case 11:case 14:break x; -default:continue}}break}c=J[a+8>>2];if(!(c&7))continue;break t}break}b=nj(a);if((b|0)==-1)break t}j=0;z:while(1){x=b-48|0;if(x>>>0>=10){if(!((b|0)==32|b-9>>>0<5))break t;e=c?0-j|0:j;break t}k=J[a+8>>2];if(k&7)break t;j=P(j,10)+x|0;while(1){b=J[a+64>>2];if(!((b|0)<0|(b|0)>J[a+60>>2])){J[a+8>>2]=k|4;break t}b=J[a+28>>2];J[a+28>>2]=b-1;A:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break A}b=jd(a,1)}if((b|0)!=35){if((b|0)==-1)break t;if((b|0)>=0)continue z;break t}while(1){b= -J[a+8>>2];if(b&7)break t;k=J[a+64>>2];if(!((k|0)<0|(k|0)>J[a+60>>2])){J[a+8>>2]=b|4;break t}b=J[a+28>>2];J[a+28>>2]=b-1;B:{C:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break C}b=jd(a,1)}switch(b+1|0){case 0:break t;case 11:case 14:break B;default:continue}}break}k=J[a+8>>2];if(!(k&7))continue;break}break}}J[J[J[J[(f+100|0)+(g<<2)>>2]+28>>2]>>2]+(h<<2)>>2]=e;g=g+1|0;if((n|0)!=(g|0))continue;break}h=h+1|0;if((i|0)!=(h|0))continue;break r}while(1){g=0;D:while(1){c=J[a+ -8>>2];E:{F:{if(c&7)break F;while(1){G:{b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break G;b=J[a+28>>2];J[a+28>>2]=b-1;H:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break H}b=jd(a,1)}if((b|0)!=35){if((b|0)==-1)break F;if((b|0)==32|b-9>>>0<5)continue D;e=0;I:while(1){j=b-48|0;if(j>>>0>=10){if(!((b|0)==32|b-9>>>0<5))break F;break E}c=J[a+8>>2];if(c&7)break F;e=j+P(e,10)|0;while(1){b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break G;b=J[a+28>>2];J[a+28>>2]=b-1;J:{if((b|0)> -0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break J}b=jd(a,1)}if((b|0)!=35){if((b|0)==-1)break F;if((b|0)>=0)continue I;break F}while(1){c=J[a+8>>2];if(c&7)break F;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break G;b=J[a+28>>2];J[a+28>>2]=b-1;K:{L:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break L}b=jd(a,1)}switch(b+1|0){case 0:break F;case 11:case 14:break K;default:continue}}break}c=J[a+8>>2];if(!(c&7))continue;break}break}break F}while(1){c=J[a+ -8>>2];if(c&7)break F;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break G;b=J[a+28>>2];J[a+28>>2]=b-1;M:{N:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break N}b=jd(a,1)}switch(b+1|0){case 11:case 14:break M;case 0:break F;default:continue}}break}c=J[a+8>>2];if(!(c&7))continue;break F}break}J[a+8>>2]=c|4}e=0}J[J[J[J[(f+100|0)+(g<<2)>>2]+28>>2]>>2]+(h<<2)>>2]=e;g=g+1|0;if((n|0)!=(g|0))continue;break}h=h+1|0;if((i|0)!=(h|0))continue;break}break r}O:{P:{Q:{if(l){k=0;if((o| -0)>0)break Q;e=J[J[w+28>>2]>>2];b=0;break O}k=0;if((o|0)>0)break P;e=J[J[w+28>>2]>>2];b=0;while(1){c=b<<2;J[c+e>>2]=0;if(!q){J[c+J[J[v+28>>2]>>2]>>2]=0;J[c+J[J[u+28>>2]>>2]>>2]=0}b=b+1|0;if((i|0)!=(b|0))continue;break}break r}while(1){h=0;while(1){j=0;b=d;c=0;R:{while(1){e=J[a+8>>2];if(e&7)break R;g=J[a+64>>2];if(!((g|0)<0|(g|0)>J[a+60>>2])){J[a+8>>2]=e|4;break R}e=J[a+28>>2];J[a+28>>2]=e-1;S:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;e=J[a+24>>2];J[a+24>>2]=e+1;g=K[e|0];break S}g=jd(a,1);if((g|0)==-1)break R}c= -c<<8|g;e=b>>>0>1;b=b-1|0;if(e)continue;break}j=c&t;if(!(y&j))break R;fa(199223,200025,397,207784);B()}J[J[J[J[(f+100|0)+(h<<2)>>2]+28>>2]>>2]+(k<<2)>>2]=j;h=h+1|0;if((n|0)!=(h|0))continue;break}k=k+1|0;if((k|0)!=(i|0))continue;break}break r}while(1){h=0;while(1){j=0;b=d;c=0;T:{while(1){e=J[a+8>>2];if(e&7)break T;g=J[a+64>>2];if(!((g|0)<0|(g|0)>J[a+60>>2])){J[a+8>>2]=e|4;break T}e=J[a+28>>2];J[a+28>>2]=e-1;U:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;e=J[a+24>>2];J[a+24>>2]=e+1;g=K[e|0];break U}g=jd(a,1); -if((g|0)==-1)break T}c=c<<8|g;e=b>>>0>1;b=b-1|0;if(e)continue;break}j=c&t}J[J[J[J[(f+100|0)+(h<<2)>>2]+28>>2]>>2]+(k<<2)>>2]=j;h=h+1|0;if((n|0)!=(h|0))continue;break}k=k+1|0;if((k|0)!=(i|0))continue;break}break r}while(1){c=b<<2;J[c+e>>2]=0;if(!q){J[c+J[J[v+28>>2]>>2]>>2]=0;J[c+J[J[u+28>>2]>>2]>>2]=0}b=b+1|0;if((i|0)!=(b|0))continue;break}}c=0;b=0;while(1){if(gk(m,b,0,r,i,1,J[(f+100|0)+(b<<2)>>2]))break h;b=b+1|0;if((n|0)!=(b|0))continue;break}c=1;r=r+1|0;if((r|0)!=(p|0))continue;break}}while(1){a= -J[(f+100|0)+(s<<2)>>2];if(a)dg(a);s=s+1|0;if((s|0)!=(n|0))continue;break}if(c)break a;yh(m)}m=0}bc=f+112|0;return m|0}function oJ(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;n=bc-48|0;bc=n;a:{if(J[a+292>>2])break a;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)>249)break a;Hd(a)}b:{c:{d:{k=J[a+36>>2];i=J[k+16>>2];switch(K[i|0]-34|0){case 0:case 5:break c;default:break d}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){f=0;break b}J[a+84>>2]=39;J[n>>2]=16167;f=0;Cc(0,0,0,a,0,1,39,3,0,0,0,0,32890, -n);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}l=J[k+28>>2];h=J[k+32>>2];J[a+172>>2]=12;o=K[i|0];g=i+1|0;j=J[k+20>>2];if(g>>>0>=j>>>0){e=J[k+12>>2];f=e;e:{if((j-i|0)>249)break e;f=e;if(J[a+292>>2])break e;Hd(a);k=J[a+36>>2];j=J[k+20>>2];f=J[k+12>>2]}g=((e|0)!=(f|0)?f-e|0:0)+g|0}m=h+1|0;f:{g:{if(d){h:{if(g>>>0>=j>>>0)break h;while(1){f=K[g|0];if((f|0)==(o|0))break h;e=f-9|0;if(e>>>0>23|!(1<>>0<=g>>>0){e=J[k+12>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>> -2]|0)>249))Hd(a);if(J[a+172>>2]==-1){f=0;break b}k=J[a+36>>2];i=J[k+12>>2];g=((e|0)!=(i|0)?i-e|0:0)+g|0;j=J[k+20>>2]}f=(f|0)==10;m=f?1:m+1|0;l=f+l|0;if(g>>>0>>0)continue;break}}i:{if(g>>>0>=j>>>0){h=g;e=g;break i}e=g;h=e;while(1){f=K[e|0];i=f<<24>>24;if((f|0)==(o|0)|(i|0)<32|(f|0)==38|(f|0)==60)break i;m=m+1|0;e=e+1|0;if((i|0)==32&K[e|0]==32)break i;j:{if(e>>>0>>0)break j;i=J[k+12>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249))Hd(a);f=0;if(J[a+172>>2]==-1)break b;k=J[a+36>>2];j=J[k+20>> -2];g=e;e=J[k+12>>2];i=(e|0)!=(i|0)?e-i|0:0;e=g+i|0;h=h+i|0;if(K[a+362|0]&8|(e-h|0)<15000001)break j;fe(a,40,33714);break b}if(e>>>0>>0)continue;break}}i=e;while(1){g=i;i=g-1|0;if(K[i|0]==32&g>>>0>h>>>0)continue;break}k:{if(e>>>0>=j>>>0)break k;while(1){i=K[e|0];if((i|0)==(o|0))break k;f=i-9|0;if(f>>>0>23|!(1<>>0>e>>>0)break l;j=J[k+12>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249))Hd(a);f=0;if(J[a+172>>2]==-1)break b;q=g;k=J[a+36>>2];g=J[k+12>>2];p=(g|0)!= -(j|0)?g-j|0:0;g=q+p|0;j=J[k+20>>2];e=e+p|0;h=h+p|0;if(K[a+362|0]&8|(e-h|0)<15000001)break l;fe(a,40,33714);break b}f=(i|0)==10;m=f?1:m+1|0;l=f+l|0;if(e>>>0>>0)continue;break}}if(!(K[a+362|0]&8|(e-h|0)<15000001)){fe(a,40,33714);f=0;break b}if((o|0)==K[e|0])break g;break f}m:{if(g>>>0>=j>>>0){h=g;break m}h=g;while(1){e=H[g|0];f=e&255;if((f|0)==(o|0)|(e|0)<32|(f|0)==38|(f|0)==60)break m;n:{g=g+1|0;if(j>>>0>g>>>0)break n;e=J[k+12>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249))Hd(a);f=0;if(J[a+ -172>>2]==-1)break b;k=J[a+36>>2];j=J[k+20>>2];i=J[k+12>>2];e=(e|0)!=(i|0)?i-e|0:0;g=e+g|0;h=e+h|0;if(K[a+362|0]&8|(g-h|0)<15000001)break n;fe(a,40,33714);break b}m=m+1|0;if(g>>>0>>0)continue;break}}if(!(K[a+362|0]&8|(g-h|0)<15000001)){fe(a,40,33714);f=0;break b}e=g;if((o|0)!=K[e|0])break f}d=m+1|0;f=e+1|0;o:{if(b){J[b>>2]=g-h;break o}if(c)J[c>>2]=1;h=il(h,g-h|0);k=J[a+36>>2]}J[k+32>>2]=d;J[k+28>>2]=l;J[k+16>>2]=f;if(!c){f=h;break b}J[c>>2]=0;f=h;break b}if(c)J[c>>2]=1;p:{q:{r:{k=K[J[k+16>>2]]; -switch(k-34|0){case 0:break p;case 5:break q;default:break r}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){f=0;break b}J[a+84>>2]=39;J[n+16>>2]=16167;f=0;Cc(0,0,0,a,0,1,39,3,0,0,0,0,32890,n+16|0);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}k=39}J[a+172>>2]=12;Qd(a);j=0;e=0;f=gc[J[659450]](100)|0;s:{t:{if(!f)break t;e=Ff(a,n+44|0);u:{v:{w:{h=J[J[a+36>>2]+16>>2];x:{if(K[h|0]==(k|0)){g=0;c=0;break x}i=100;g=0;m=0;while(1){y:{z:{A:{if((e|0)<=255){if((e|0)>31)break A;if(e>>>0>13)break y;if(1<>>0<1048576|e>>>0<55296)break z;if(e-57344>>>0>=8190)break y;break z}if((e|0)!=60)break z;e=60;break y}if(J[a+172>>2]==-1)break y;if(!(K[a+362|0]&8)&g>>>0>=15000001)break v;B:{C:{D:{E:{F:{c=e-9|0;if(c>>>0>29)break F;if(!(1<>2]){G:{if(c>>>0<=i>>>0){l=i;h=f;break G}l=(i<<1)+10|0;if(l>>>0>>0)break w;j=0;e=f;h=gc[J[659452]](e,l)|0;if(!h)break t}H[g+h|0]=38;g=g+1|0;m=0;i= -l;f=h;break B}H:{if(c>>>0<=i>>>0){l=i;h=f;break H}l=(i<<1)+10|0;if(l>>>0>>0)break w;j=0;e=f;h=gc[J[659452]](e,l)|0;if(!h)break t}c=g+h|0;H[c|0]=38;H[c+1|0]=35;H[c+2|0]=51;H[c+3|0]=56;H[c+4|0]=59;g=g+5|0;m=0;i=l;f=h;break B}I:{if(g+10>>>0<=i>>>0){l=f;break I}e=i;i=(e<<1)+10|0;if(i>>>0>>0)break w;j=0;e=f;l=gc[J[659452]](e,i)|0;if(!l)break t}m=0;o=bc-16|0;bc=o;e=g+l|0;h=0;J:{if(!e)break J;K:{if((c|0)>=128){p=c>>>0<2048;L:{if(p){h=192;j=6;f=0;break L}if(c>>>0<65536){h=224;j=12;f=6;break L}if(c>>> -0>=1114112)break K;h=240;j=18;f=12}H[e|0]=c>>>j|h;H[e+1|0]=c>>>f&63|128;h=(e+2|0)-e|0;if(p)break J;j=f-6|0;H[e+2|0]=c>>>j&63|128;h=(e+3|0)-e|0;if(j>>>0<6)break J;H[e+3|0]=c>>>f-12&63|128;h=(e+4|0)-e|0;break J}H[e|0]=c;h=1;break J}J[o>>2]=c;Cc(0,0,0,0,0,1,9,3,0,0,0,c,35041,o);h=0}bc=o+16|0;g=g+h|0;f=l;break B}h=s$(a);c=J[a+440>>2]+1|0;J[a+440>>2]=c;m=0;if(!h)break B;J[a+440>>2]=c+J[h+68>>2];if(J[h+48>>2]==6){M:{if(g+10>>>0<=i>>>0){l=f;break M}c=i;i=(c<<1)+10|0;if(i>>>0>>0)break w;j=0;e=f;l=gc[J[659452]](e, -i)|0;if(!l)break t}f=g+l|0;c=g+1|0;e=K[J[h+40>>2]];if(!(J[a+16>>2]|(e|0)!=38)){H[f|0]=38;H[c+l|0]=35;H[f+4|0]=59;H[f+2|0]=51;H[f+3|0]=56;g=g+5|0;f=l;break B}H[f|0]=e;g=c;f=l;break B}if(J[a+16>>2]){J[a+248>>2]=J[a+248>>2]+1;j=rJ(a,J[h+40>>2]);J[a+248>>2]=J[a+248>>2]-1;h=j;if(!h)break B;while(1){e=f;N:{while(1){m=32;O:{P:{c=K[h|0];switch(c|0){case 0:break N;case 9:case 10:case 13:break O;default:break P}}m=c}H[e+g|0]=m;h=h+1|0;c=g+11|0;g=g+1|0;if(c>>>0<=i>>>0)continue;break}c=i;i=(c<<1)+10|0;if(i>>> -0>>0)break t;f=gc[J[659452]](e,i)|0;if(f)continue;break t}break}m=0;gc[J[659451]](j);f=e;break B}c=xk(J[h+8>>2]);l=J[h+8>>2];Q:{if(J[h+48>>2]==6)break Q;e=J[h+40>>2];if(J[h+72>>2]|!e)break Q;J[a+248>>2]=J[a+248>>2]+1;j=J[a+440>>2];e=yt(a,e,xk(e),1);J[a+248>>2]=J[a+248>>2]-1;J[h+72>>2]=(J[a+440>>2]-j<<1)+2;if(!e)break Q;if(zp(e,60))J[h+72>>2]=J[h+72>>2]|1;gc[J[659451]](e)}H[f+g|0]=38;o=c+10|0;h=g+1|0;g=(c+g|0)+11|0;while(1){e=f;if(g>>>0<=i>>>0){R:{if((c|0)<=0)break R;j=0;g=c;f=g&3;if(f)while(1){H[e+ -h|0]=K[l|0];g=g-1|0;h=h+1|0;l=l+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}if(c>>>0<4)break R;while(1){c=e+h|0;H[c|0]=K[l|0];H[c+1|0]=K[l+1|0];H[c+2|0]=K[l+2|0];H[c+3|0]=K[l+3|0];h=h+4|0;l=l+4|0;c=g-5|0;g=g-4|0;if(c>>>0<4294967294)continue;break}}H[e+h|0]=59;g=h+1|0;f=e;break B}f=i;i=o+(f<<1)|0;if(i>>>0>>0)break u;j=0;f=gc[J[659452]](e,i)|0;if(f)continue;break}break t}if(!(g|!d)){j=m;h=i;g=0;l=f;break C}if(!(!d|!m)){j=1;break E}S:{if(J[n+44>>2]==1){H[f+g|0]=32;g=g+1|0;break S}g=Pi(f+g|0,32)+g| -0}h=g+10|0;while(1){e=f;if(h>>>0<=i>>>0){j=1;h=i;l=e;break C}c=i;i=(c<<1)+10|0;if(i>>>0>>0)break u;j=0;f=gc[J[659452]](e,i)|0;if(f)continue;break}break t}j=0;T:{if(J[n+44>>2]==1){H[f+g|0]=e;g=g+1|0;break T}g=Pi(f+g|0,e)+g|0}if(g+10>>>0>i>>>0)break D}h=i;l=f;break C}h=(i<<1)+10|0;if(i>>>0>h>>>0)break w;e=f;l=gc[J[659452]](e,h)|0;if(!l)break t}c=J[a+36>>2];f=J[c+16>>2];U:{if(K[f|0]==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break U}J[c+32>>2]=J[c+32>>2]+1}e=c;c=f+J[n+44>>2]|0;J[e+16>>2]=c;if(K[c| -0]==37)Od(a);m=j;i=h;f=l}V:{if(J[a+292>>2])break V;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break V;Hd(a)}e=Ff(a,n+44|0);h=J[J[a+36>>2]+16>>2];if(K[h|0]!=(k|0))continue}break}c=(m|0)!=0}if(J[a+172>>2]==-1){j=0;e=f;break s}W:{if(!g|(!d|c^1))break W;while(1){c=g-1|0;if(K[c+f|0]!=32)break W;g=c;if(g)continue;break}g=0}H[f+g|0]=0;c=K[J[J[a+36>>2]+16>>2]];X:{if((c|0)==60){if(J[a+172>>2]==-1?J[a+212>>2]:0)break X;J[a+84>>2]=38;J[n+32>>2]=4265;Cc(0,0,0,a,0,1,38,3,0,0,0,0,32890,n+32|0);J[a+12>>2]=0; -if(J[a+288>>2])break X;J[a+212>>2]=1;break X}Y:{if((c|0)!=(k|0)){if(!e)break Y;Z:{if((e|0)<=255){if((e|0)>31)break Y;if(!(1<>>0>13)break Z;break Y}if(e-65536>>>0<1048576|e>>>0<55296|e-57344>>>0<8190)break Y}fe(a,9,33920);break X}Qd(a);break X}fe(a,40,35374)}if(g>>>0>2147483646)break v;if(!b)break b;J[b>>2]=g;break b}j=0;e=f;break t}e=f;fe(a,40,33714)}j=0}ke(a,0)}if(e)gc[J[659451]](e);if(!j){f=0;break b}f=0;gc[J[659451]](j)}bc=n+48|0;return f}function oya(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d= -d|0;e=e|0;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,w=0;g=bc-48|0;bc=g;a:{b:{c:{d:{e:{if(!K[a+144|0]){a=Kc(g+24|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;b=Z()|0;Fc(a);ba(b|0);B()}j=a+72|0;k=Tk(j);f:{i=J[J[c+12>>2]+((k>>>0)%M[c+8>>2]<<2)>>2];g:{if(i)while(1){if((k|0)==J[i+12>>2])if(Pl(i+16|0,j))break g;i=J[i+8>>2];if(i)continue;break}u=J[c+4>>2];v=qv(c,j),w=0,J[v+52>>2]=w;j=g+20|0;Nm(j,J[a+108>>2]);J[g+12>>2]= -0;J[g+16>>2]=J[682146];J[695492]=0;da(5108,g+8|0,j|0);j=J[695492];J[695492]=0;h:{i:{j:{k:{l:{m:{if((j|0)!=1){J[695492]=0;m=J[g+8>>2];j=ha(5109,m|0,g+12|0,0,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break i;if(j)break k;J[695492]=0;j=ja(5018,g+24|0,J[682138],2374155,2281,2404157,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break m;J[695492]=0;_(5019,j|0);k=J[695492];J[695492]=0;if((k|0)!=1)break e;i=ea(2411712)|0;k=cc;Fc(j);break l}i=Z()|0;break b}i=ea(2411712)|0;k=cc}if((sa(2411712)|0)!=(k|0))break c; -j=na(i|0)|0;k=J[J[a>>2]+64>>2];J[695492]=0;ca(k|0,a|0,j|0,1);j=J[695492];J[695492]=0;if((j|0)==1)break j;J[695492]=0;ka(4893);j=J[695492];J[695492]=0;if((j|0)!=1)break k;i=Z()|0;break c}if(!u){j=J[g+12>>2];j=J[(j?j+12|0:2728584)>>2];J[695492]=0;ca(5160,b|0,j|0,0);j=J[695492];J[695492]=0;if((j|0)==1)break i}n=a+44|0;o=a+40|0;p=a+36|0;k=0;r=J[a+132>>2]<=1?-1:J[a+140>>2];i=r;n:{o:{p:{q:{r:{s:{while(1){t:{j=k;u:{if(i){J[695492]=0;k=ha(5109,m|0,g+12|0,0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1){k=j;break t}if(k)break u; -r=j}if(J[a+140>>2]>=0)break q;J[a+140>>2]=r;if(!q)break p;break h}J[695492]=0;f=fd(g+12|0,2404376,-1);h=J[695492];J[695492]=0;k=j+1|0;if((h|0)==1)break t;v:{w:{x:{y:{z:{A:{if(!(!J[a+8>>2]|f)){f=J[g+12>>2];f=J[(f?f+12|0:2728584)>>2];J[695492]=0;ca(5160,b|0,f|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break t;f=J[a+8>>2];J[695492]=0;J[g+24>>2]=0;aa(4985,g+24|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break w;J[695492]=0;da(5343,f|0,J[g+24>>2]);f=J[695492];J[695492]=0;if((f|0)!=1){f=J[g+24>>2];J[g+24>> -2]=0;if(!f)break A;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[695492];J[695492]=0;if((l|0)!=1){if(h)break A;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break A}break a}i=ea(2411712)|0;c=cc;vc(g+24|0);break r}J[695492]=0;f=fd(g+12|0,2382374,-1);h=J[695492];J[695492]=0;if((h|0)==1)break t;if(!(!d|f)){J[695492]=0;J[g+4>>2]=0;aa(4985,g+4|0,m|0)|0;f=J[695492];J[695492]=0;B:{C:{if((f|0)!=1){J[695492]=0;ia(5304,g+24|0,a|0,J[g+4>>2],-1);f=J[695492];J[695492]=0;if((f|0)==1)break C;f=J[g+4>> -2];J[g+4>>2]=0;D:{if(!f)break D;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[695492];J[695492]=0;if((l|0)==1)break a;if(h)break D;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}f=J[g+24>>2];if(!f)break v;h=J[a+132>>2];if(h){l=J[J[f>>2]+56>>2];J[695492]=0;da(l|0,f|0,h|0);f=J[695492];J[695492]=0;if((f|0)==1)break B;f=J[g+24>>2]}if(K[a+136|0]){h=J[J[f>>2]+60>>2];J[695492]=0;da(h|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break B;f=J[g+24>>2]}J[695492]=0;la(5344,f|0,b|0,c|0,1,e| -0);f=J[695492];J[695492]=0;if((f|0)==1)break B;f=J[g+24>>2];J[g+24>>2]=0;if(!f)break v;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[695492];J[695492]=0;if((l|0)!=1){if(h)break v;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break v}break a}i=ea(2411712)|0;break s}i=ea(2411712)|0;c=cc;vc(g+4|0);break r}i=ea(2411712)|0;c=cc;vc(g+24|0);break r}J[695492]=0;f=g+12|0;h=fd(f,2404396,-1);l=J[695492];J[695492]=0;if((l|0)==1)break t;E:{F:{if(!h)break F;J[695492]=0;h=fd(f,2403764,-1);l=J[695492]; -J[695492]=0;if((l|0)==1)break t;if(!h)break F;J[695492]=0;f=fd(f,2400208,-1);h=J[695492];J[695492]=0;if((h|0)==1)break t;if(f)break E}f=J[p>>2];if(!f)break E;h=J[J[f>>2]+28>>2];J[695492]=0;f=$(h|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break t;if(!f)break E;if(q){q=1;break v}J[695492]=0;da(5345,p|0,b|0);f=J[695492];J[695492]=0;q=1;if((f|0)!=1)break v;i=ea(2411712)|0;break s}J[695492]=0;f=g+12|0;h=fd(f,2404416,-1);l=J[695492];J[695492]=0;if((l|0)==1)break t;G:{if(h){J[695492]=0;f=fd(f,2404421, --1);h=J[695492];J[695492]=0;if((h|0)==1)break t;if(f)break G}f=J[o>>2];if(!f)break G;h=J[J[f>>2]+28>>2];J[695492]=0;f=$(h|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break t;if(!f)break G;if(s){s=1;break v}J[695492]=0;da(5345,o|0,b|0);f=J[695492];J[695492]=0;s=1;if((f|0)!=1)break v;i=ea(2411712)|0;break s}J[695492]=0;f=g+12|0;h=fd(f,2404455,-1);l=J[695492];J[695492]=0;if((l|0)==1)break t;H:{if(h){J[695492]=0;f=fd(f,2404249,-1);h=J[695492];J[695492]=0;if((h|0)==1)break t;if(f)break H}f=J[n>>2];if(!f)break H; -h=J[J[f>>2]+28>>2];J[695492]=0;f=$(h|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break t;if(!f)break H;if(t){t=1;break v}J[695492]=0;da(5345,n|0,b|0);f=J[695492];J[695492]=0;t=1;if((f|0)!=1)break v;i=ea(2411712)|0;break s}J[695492]=0;f=fd(g+12|0,2400157,-1);h=J[695492];J[695492]=0;if((h|0)==1)break t;if(!(J[a+48>>2]|e?f:1))break v;f=J[g+12>>2];f=J[(f?f+12|0:2728584)>>2];J[695492]=0;ca(5160,b|0,f|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break t;J[695492]=0;J[g+4>>2]=0;aa(4985,g+4|0,m|0)|0;f=J[695492]; -J[695492]=0;if((f|0)==1)break z;J[695492]=0;f=J[g+4>>2];J[g+24>>2]=0;aa(4985,g+24|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break y;J[695492]=0;ga(5165,J[g+24>>2],f|0,0)|0;f=J[695492];J[695492]=0;I:{if((f|0)!=1){f=J[g+24>>2];J[g+24>>2]=0;if(!f)break I;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[695492];J[695492]=0;if((l|0)!=1){if(h)break I;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break I}break a}i=ea(2411712)|0;c=cc;vc(g+24|0);break x}f=J[g+4>>2];J[g+4>>2]=0;if(!f)break A;J[695492]= -0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[695492];J[695492]=0;if((l|0)==1)break a;if(h)break A;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}J[695492]=0;_(5162,b|0);f=J[695492];J[695492]=0;if((f|0)!=1)break v;break t}i=ea(2411712)|0;break s}i=ea(2411712)|0;c=cc}vc(g+4|0);break r}i=ea(2411712)|0;break s}i=i-1|0;J[695492]=0;_(5298,m|0);f=J[695492];J[695492]=0;if((f|0)!=1)continue}break}i=ea(2411712)|0}c=cc}if((sa(2411712)|0)!=(c|0))break c;d=na(i|0)|0;J[695492]=0;e=Mm(d,J[682138]);i=J[695492]; -J[695492]=0;c=1;if((i|0)==1)break n;if(!e){c=J[a+132>>2];if(J[a+140>>2]<0)J[a+140>>2]=(c|0)>2?k:j;c=(c|0)<2}e=J[J[a>>2]+64>>2];J[695492]=0;ca(e|0,a|0,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)==1)break o}if(q)break h}c=J[p>>2];if(!c)break h;d=J[J[c>>2]+28>>2];J[695492]=0;c=$(d|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;if(!c)break h;J[695492]=0;da(5345,p|0,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break h;i=Z()|0;break c}i=Z()| -0;break c}}i=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break c;break a}i=Z()|0;break c}J:{if(s)break J;c=J[o>>2];if(!c)break J;d=J[J[c>>2]+28>>2];J[695492]=0;c=$(d|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;if(!c)break J;J[695492]=0;da(5345,o|0,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break J;i=Z()|0;break c}K:{if(t)break K;c=J[n>>2];if(!c)break K;d=J[J[c>>2]+28>>2];J[695492]=0;c=$(d|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;if(!c)break K;J[695492]=0;da(5345, -n|0,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break K;i=Z()|0;break c}if(!u){J[695492]=0;_(5162,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break d}a=J[a+108>>2];J[695492]=0;da(5099,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break d;a=J[g+8>>2];J[g+8>>2]=0;L:{if(!a)break L;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break L;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}sc(g+12|0);a=J[g+20>>2];J[g+20>>2]=0;if(!a)break g;J[695492]=0;b=J[a+ -4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break f;if(b)break g;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f}bc=g+48|0;return}ea(0)|0;yc()}B()}i=Z()|0}vc(g+8|0)}sc(g+12|0);vc(g+20|0);ba(i|0);B()}ea(0)|0;yc();B()}function Kib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=bc-32|0;bc=g;d=nd(a,0);a:{if(d)break a;d=Me(a,260880,b+132|0);if(d)break a;J[b+168>>2]=J[b+168>>2]+(J[b+204>>2]<<16);d=2;if(J[b+132>>2]!=1346785840| -M[b+136>>2]>4|(J[b+140>>2]!=3338|M[b+144>>2]<58))break a;i=J[b+152>>2];d=nd(a,i);J[g+12>>2]=d;if(d)break a;h=g+12|0;e=Wd(a,h);d=J[g+12>>2];if(d)break a;d=8;if(e>>>0>13106)break a;f=J[a+4>>2];if(P(e,5)+2>>>0>=f-i>>>0|f>>>0<=P(e,23)+95>>>0)break a;d=0;J[g+24>>2]=0;J[b>>2]=e;if((c|0)<0)break a;d=6;p=c&65535;if(e>>>0<=p>>>0)break a;k=J[b+204>>2];d=nd(a,J[b+152>>2]);J[g+12>>2]=d;if(d)break a;c=Wd(a,h);d=J[g+12>>2];if(d)break a;d=6;if(c>>>0<=p>>>0)break a;d=bg(a,P(p,5));J[g+12>>2]=d;if(d)break a;e=Wd(a, -h);d=J[g+12>>2];if(d)break a;d=0;f=bc-16|0;bc=f;J[h>>2]=0;i=a;b:{c:{d:{e:{c=J[a+4>>2];a=J[a+8>>2];if(c>>>0<=a+2>>>0)break e;j=J[i+20>>2];f:{if(j){c=f+13|0;if((gc[j|0](i,a,c,3)|0)!=3)break e;a=J[i+8>>2];break f}c=J[i>>2];if(!c)break d;c=a+c|0}d=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);break c}J[h>>2]=85;break b}d=0}J[i+8>>2]=a+3}bc=f+16|0;a=d;d=J[g+12>>2];if(d)break a;J[b+240>>2]=e;J[b+244>>2]=a;d=nd(i,a);J[g+12>>2]=d;if(d)break a;d=Ue(i,e);J[g+12>>2]=d;if(d)break a;g:{h:{i:{if(e>>>0<13)break i;d=J[i+32>> -2];h=d+e|0;J[b+248>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[b+252>>2]=K[d+5|0]|(K[d+4|0]<<8|K[d+3|0]<<16);J[b+256>>2]=K[d+8|0]|(K[d+7|0]<<8|K[d+6|0]<<16);J[b+260>>2]=K[d+11|0]|(K[d+10|0]<<8|K[d+9|0]<<16);e=K[d+12|0];f=e&4;if(f){a=e&8?2:1;c=e&3?a:a+3|0}else c=0;a=d+13|0;j=e&32;if(h>>>0<(c+a|0)+(e<<27>>31&(j?2:1))>>>0)break i;m=e&16;j:{if(!f)break j;c=K[a|0];k:{if(e&8){c=(K[d+14|0]|c<<8)<<16>>16;a=d+15|0;break k}a=d+14|0}J[b+268>>2]=c;if(e&3)break j;J[b+276>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);a=a+ -3|0}l:{if(!m){c=a;break l}d=K[a|0];m:{if(j){d=(K[a+1|0]|d<<8)<<16>>16;c=a+2|0;break m}c=a+1|0}J[b+272>>2]=d}n:{if(!(e&64)){d=c;break n}d=c+1|0;if(h>>>0>>0)break h;c=K[c|0];if(c)while(1){a=d+2|0;if(a>>>0>h>>>0)break h;d=a+K[d|0]|0;if(h>>>0>>0)break h;c=c-1|0;if(c)continue;break}J[g+12>>2]=0}if(h>>>0>>0)break i;a=K[d+1|0]|K[d|0]<<8;J[b+280>>2]=a;J[b+284>>2]=K[d+4|0]|(K[d+3|0]<<8|K[d+2|0]<<16);if(!k)break g;if(h>>>0>>0)break i;J[b+280>>2]=a|K[d+5|0]<<16;break g}J[g+12>>2]=8;break g}J[g+ -12>>2]=8}ne(i);d=J[g+12>>2];J[g+24>>2]=d;if(d)break a;e=J[b+280>>2];m=J[b+284>>2];j=J[i+28>>2];J[b+428>>2]=b+424;J[b+424>>2]=0;J[b+292>>2]=m;J[b+288>>2]=j;d=nd(i,m);if(d)break a;d=Ue(i,e);J[g+12>>2]=d;if(d)break a;c=J[i+32>>2];J[b+436>>2]=c;o:{p:{if((e|0)<15)break p;J[b+296>>2]=K[c+1|0]|K[c|0]<<8;J[b+300>>2]=K[c+3|0]|K[c+2|0]<<8;J[b+304>>2]=K[c+5|0]|K[c+4|0]<<8;a=K[c+6|0]|K[c+7|0]<<8;J[b+308>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+8|0]|K[c+9|0]<<8;J[b+312>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+10|0]|K[c+11|0]<<8; -J[b+316>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+12|0]|K[c+13|0]<<8;J[b+320>>2]=(a<<8|a>>>8)<<16>>16;a=c+15|0;J[g+28>>2]=a;k=K[c+14|0];J[b+324>>2]=k;q=k&4;if(!q){if(e>>>0<17)break p;a=c+17|0;J[g+28>>2]=a;d=K[c+15|0]|K[c+16|0]<<8;J[b+328>>2]=(d<<8|d>>>8)<<16>>16}f=c+e|0;if(k<<24>>24<0){n=b+288|0;d=8;c=J[g+28>>2];a=c+1|0;q:{r:{if(f>>>0>>0)break r;e=K[c|0];if(e)while(1){h=a;c=a+2|0;if(f>>>0>>0){J[g+28>>2]=a;d=8;break q}a=K[h|0]+c|0;if(f>>>0>>0){J[g+28>>2]=c;d=8;break q}l=J[65253];s:{if(!l)break s;d=261008; -h=K[h+1|0];if((h|0)!=J[65252])while(1){l=J[d+12>>2];if(!l)break s;o=J[d+8>>2];d=d+8|0;if((h|0)!=(o|0))continue;break}d=gc[l|0](c,a,n)|0;if(d)break r}e=e-1|0;if(e)continue;break}c=a;d=0}J[g+28>>2]=c}J[g+12>>2]=d;if(d)break o;a=J[g+28>>2]}e=a+3|0;if(f>>>0>>0)break p;J[g+28>>2]=e;c=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);if(c){a=c+e|0;if(a>>>0>f>>>0)break p;J[g+28>>2]=a;l=b+372|0;n=b+376|0;while(1){t:{d=e+4|0;if(d>>>0>a>>>0)break t;h=K[e+1|0]|K[e|0]<<8;if(h>>>0<4|c>>>0>>0)break t;u:{v:{w:{x:{y:{o=K[e+ -2|0]|K[e+3|0]<<8;switch(((o<<8|o>>>8)&65535)-1|0){case 2:break w;case 1:break x;case 0:break y;default:break u}}d=s5(d,h-4|0,j,l);break v}if(h>>>0<36)break u;d=K[e+14|0]|K[e+15|0]<<8;J[b+332>>2]=(d<<8|d>>>8)<<16>>16;d=K[e+16|0]|K[e+17|0]<<8;J[b+336>>2]=(d<<8|d>>>8)<<16>>16;d=K[e+18|0]|K[e+19|0]<<8;J[b+340>>2]=(d<<8|d>>>8)<<16>>16;break u}d=s5(d,h-4|0,j,n)}J[g+12>>2]=d;if(d)break a}e=e+h|0;c=c-h|0;if(c)continue}break}e=a}d=e+1|0;if(f>>>0>>0)break p;J[g+28>>2]=d;a=K[e|0];J[b+392>>2]=a;if(f>>>0<(a<< -1)+d>>>0)break p;h=Sc(j,4,0,a,0,g+12|0);J[b+396>>2]=h;if(J[g+12>>2])break o;z:{if(!a)break z;l=a&1;A:{if((a|0)==1){e=0;break A}a=a&254;e=0;c=0;while(1){n=e<<2;o=K[d|0]|K[d+1|0]<<8;J[n+h>>2]=(o<<8|o>>>8)<<16>>16;o=h+(n|4)|0;n=K[d+2|0]|K[d+3|0]<<8;J[o>>2]=(n<<8|n>>>8)<<16>>16;e=e+2|0;d=d+4|0;c=c+2|0;if((a|0)!=(c|0))continue;break}}if(!l)break z;a=K[d|0]|K[d+1|0]<<8;J[h+(e<<2)>>2]=(a<<8|a>>>8)<<16>>16;d=d+2|0}e=d+8|0;if(f>>>0>>0)break p;J[g+28>>2]=d+1;J[b+400>>2]=K[d|0];J[g+28>>2]=d+2;J[b+404>>2]= -K[d+1|0];J[g+28>>2]=d+4;J[b+356>>2]=K[d+3|0]|K[d+2|0]<<8;J[b+344>>2]=K[d+5|0]|K[d+4|0]<<8;J[g+28>>2]=e;h=K[d+7|0]|K[d+6|0]<<8;J[b+408>>2]=h;J[b+412>>2]=(e+m|0)-J[i+32>>2];m=k>>>3&1;l=k&16;a=k&32;k=k&2;if(f>>>0>>1)+(l>>>4|0)+(a>>>5)|0)+(k?5:4)|0)+e>>>0)break p;j=Sc(j,16,0,h,0,g+12|0);J[b+416>>2]=j;if(J[g+12>>2]|!h)break o;d=0;if(!a)while(1){f=j+(d<<4)|0;a=K[e|0];B:{if(k){a=K[e+1|0]|a<<8;c=e+2|0;break B}c=e+1|0}J[f>>2]=a;C:{if(q){a=K[c|0]|K[c+1|0]<<8;e=(a<<8|a>>>8)<<16>>16;c=c+2|0;break C}e= -J[b+328>>2]}J[f+4>>2]=e;a=c+m|0;e=K[a|0];D:{if(l){e=K[a+1|0]|e<<8;a=a+2|0;break D}a=a+1|0}J[f+8>>2]=e;J[f+12>>2]=K[a+1|0]|K[a|0]<<8;e=a+2|0;d=d+1|0;if((h|0)!=(d|0))continue;break o}while(1){f=j+(d<<4)|0;a=K[e|0];E:{if(k){a=K[e+1|0]|a<<8;c=e+2|0;break E}c=e+1|0}J[f>>2]=a;F:{if(q){a=K[c|0]|K[c+1|0]<<8;e=(a<<8|a>>>8)<<16>>16;c=c+2|0;break F}e=J[b+328>>2]}J[f+4>>2]=e;a=c+m|0;e=K[a|0];G:{if(l){e=K[a+1|0]|e<<8;a=a+2|0;break G}a=a+1|0}J[f+8>>2]=e;J[f+12>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);e=a+3|0;d=d+ -1|0;if((h|0)!=(d|0))continue;break}break o}J[g+12>>2]=8}ne(i);e=0;a=J[i+8>>2];J[b+436>>2]=0;J[b+432>>2]=a;d=J[g+12>>2];J[g+24>>2]=d;if(d)break a;J[b+4>>2]=p;c=J[b+8>>2]|1;J[b+8>>2]=c;a=J[b+408>>2];J[b+16>>2]=a+1;H:{I:{J:{if(!a)break J;d=J[b+416>>2];while(1){if(J[(d+(e<<4)|0)+12>>2])break J;e=e+1|0;if((a|0)!=(e|0))continue;break}break I}if((a|0)!=(e|0))break H}c=0;if(J[b+380>>2])break H;d=3;break a}a=J[b+324>>2];d=(a^-1)&4|c|(a&1?32:16);J[b+8>>2]=d;c=J[b+380>>2];if(c){d=d|2;J[b+8>>2]=d}if(J[b+420>> -2])J[b+8>>2]=d|64;d=J[b+372>>2];J[b+20>>2]=d;if(!d)J[b+20>>2]=J[b+368>>2];J[b+28>>2]=0;J[b+32>>2]=0;J[b+24>>2]=J[b+376>>2];d=J[b+312>>2];J[b+52>>2]=J[b+308>>2];J[b+56>>2]=d;d=J[b+320>>2];J[b+60>>2]=J[b+316>>2];J[b+64>>2]=d;d=J[b+300>>2];I[b+68>>1]=d;e=J[b+320>>2];I[b+70>>1]=e;i=J[b+312>>2];I[b+72>>1]=i;e=(e<<16>>16)-(i<<16>>16)|0;d=(P(d&65535,12)>>>0)/10|0;I[b+74>>1]=(e|0)>d<<16>>16?e:d;if(c){a=Sc(J[J[b+104>>2]+28>>2],16,0,c,0,g+24|0);J[b+32>>2]=a;d=J[g+24>>2];if(d)break a;d=J[b+388>>2];if((c|0)!= -1){h=c&-2;e=0;while(1){f=J[d+4>>2];I[a>>1]=f;i=J[d>>2];f=f<<6;J[a+12>>2]=f;J[a+4>>2]=f;I[a+2>>1]=i;J[a+8>>2]=i<<6;f=J[d+40>>2];I[a+16>>1]=f;i=J[d+36>>2];f=f<<6;J[a+28>>2]=f;J[a+20>>2]=f;I[a+18>>1]=i;J[a+24>>2]=i<<6;d=d+72|0;a=a+32|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(c&1){e=J[d+4>>2];I[a>>1]=e;d=J[d>>2];e=e<<6;J[a+12>>2]=e;J[a+4>>2]=e;I[a+2>>1]=d;J[a+8>>2]=d<<6}J[b+28>>2]=c;a=J[b+324>>2]}K:{if(!(a&4)){a=J[b+328>>2];break K}a=J[b+408>>2];if(!a){a=0;break K}i=a&3;d=J[b+416>>2];c=0;L:{if(a>>> -0<4){a=0;break L}h=a&-4;a=0;e=0;while(1){f=J[d+4>>2];a=(a|0)>(f|0)?a:f;f=J[d+20>>2];a=(a|0)>(f|0)?a:f;f=J[d+36>>2];a=(a|0)>(f|0)?a:f;f=J[d+52>>2];a=(a|0)>(f|0)?a:f;d=d- -64|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!i)break K;while(1){e=J[d+4>>2];a=(a|0)>(e|0)?a:e;d=d+16|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}I[b+76>>1]=a;I[b+78>>1]=L[b+74>>1];a=L[b+68>>1];I[b+82>>1]=(a>>>0)/30;I[b+80>>1]=0-((a>>>0)/10|0);J[g+12>>2]=b;J[g+16>>2]=1970170211;J[g+20>>2]=65539;d=Ek(260684,0,g+12|0,0);if(!J[b+420>> -2])break a;J[b+8>>2]=J[b+8>>2]|64}bc=g+32|0;return d|0}function n0a(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;g=bc-272|0;bc=g;I[g+268>>1]=8224;J[g+264>>2]=538976288;e=Wh(104);J[a+8>>2]=e;a:{b:{if(e){J[g+32>>2]=J[185662];d=J[185661];J[g+24>>2]=J[185660];J[g+28>>2]=d;d=J[185659];J[g+16>>2]=J[185658];J[g+20>>2]=d;d=J[185657];J[g+8>>2]=J[185656];J[g+12>>2]=d;f=K[b+8|0];H[g+16|0]=f;d=wc(e,0,104);J[a+52>>2]=0;e=J[b+24>>2];if(!e){J[d+64>>2]=J[b+12>>2]&15;break b}j=qd(g+264|0,e,6); -h=K[j|0];i=J[b+12>>2]&15;J[d+64>>2]=i;c:{d:switch(h-106|0){case 0:e=K[j+1|0]-97|0;if((e|0)!=15?e:0)break b;e=K[j+2|0];if(e?(e|0)!=95:0)break b;if(i>>>0>=5){J[c>>2]=2;break a}e:{f:{if(i>>>0<=1){k=d,l=ag(729623,g+40|0,g+8|0,c),J[k+16>>2]=l;if(!i)break e;f=730140;e=5;break f}f=g+40|0;e=g+8|0;k=d,l=ag(729E3,f,e,c),J[k+8>>2]=l;k=d,l=ag(729623,f,e,c),J[k+16>>2]=l;k=d,l=ag(730140,f,e,c),J[k+20>>2]=l;k=d,l=ag(730590,f,e,c),J[k+24>>2]=l;f=731021;e=7}k=(e<<2)+d|0,l=ag(f,g+40|0,g+8|0,c),J[k>>2]=l}h=742664;J[a+ -24>>2]=742664;H[d+101|0]=K[731310];e=K[731308]|K[731309]<<8;H[d+99|0]=e;H[d+100|0]=e>>>8;f=K[731561]|K[731562]<<8|(K[731563]<<16|K[731564]<<24);e=K[731557]|K[731558]<<8|(K[731559]<<16|K[731560]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24;f=K[731569]|K[731570]<<8|(K[731571]<<16|K[731572]<<24);e=K[731565]|K[731566]<<8|(K[731567]<<16|K[731568]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81| -0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[731577]|K[731578]<<8|(K[731579]<<16|K[731580]<<24);e=K[731573]|K[731574]<<8|(K[731575]<<16|K[731576]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;e=K[731581]|K[731582]<<8|(K[731583]<<16|K[731584]<<24);H[d+93|0]=e;H[d+94|0]=e>>>8;H[d+95|0]=e>>>16;H[d+96|0]=e>>>24;e=K[d+64|0];d=d+69|0;d=Qc(d)+d|0;H[d+1|0]=0;H[d|0]=e+48;break c;case 1:g:switch(K[j+1|0]-111|0){case 0:case 3:break g; -default:break b}e=K[j+2|0];if(e?(e|0)!=95:0)break b;if(i>>>0>=2){J[c>>2]=2;break a}h=731813;if((i|0)!=1){J[d+64>>2]=0;h=731945}if(f){t1(h,c);Gf(J[a+8>>2]);J[a+8>>2]=0;break a}h=dC(h,c);J[d+40>>2]=h;if(J[c>>2]>0){rK(a);break a}h:{if((i|0)==1){f=K[732222]|K[732223]<<8|(K[732224]<<16|K[732225]<<24);e=K[732218]|K[732219]<<8|(K[732220]<<16|K[732221]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]=e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;f=K[732217]|K[732218]<<8| -(K[732219]<<16|K[732220]<<24);e=K[732213]|K[732214]<<8|(K[732215]<<16|K[732216]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[732209]|K[732210]<<8|(K[732211]<<16|K[732212]<<24);e=K[732205]|K[732206]<<8|(K[732207]<<16|K[732208]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[732201]|K[732202]<<8|(K[732203]<<16|K[732204]<<24);e=K[732197]| -K[732198]<<8|(K[732199]<<16|K[732200]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24;f=J[a+20>>2];e=J[h+20>>2];e=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;h=J[d+40>>2];H[a+61|0]=K[h+61|0];break h}f=K[732384]|K[732385]<<8|(K[732386]<<16|K[732387]<<24);e=K[732380]|K[732381]<<8|(K[732382]<<16|K[732383]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]=e>>>16;H[d+93| -0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;f=K[732379]|K[732380]<<8|(K[732381]<<16|K[732382]<<24);e=K[732375]|K[732376]<<8|(K[732377]<<16|K[732378]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[732371]|K[732372]<<8|(K[732373]<<16|K[732374]<<24);e=K[732367]|K[732368]<<8|(K[732369]<<16|K[732370]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>> -8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[732363]|K[732364]<<8|(K[732365]<<16|K[732366]<<24);e=K[732359]|K[732360]<<8|(K[732361]<<16|K[732362]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24}e=J[d+64>>2];if((e|0)==1){H[h+36|0]=0;J[h+44>>2]=0;J[h+48>>2]=0}if(!K[a+63|0]){J[a+76>>2]=1126769691;H[a+63|0]=4}if((e|0)==1){J[h+52>>2]=1;J[h+56>>2]=0}h=742892;J[a+24>>2]=742892;H[d+101|0]=K[732585];e=K[732583]|K[732584]<<8;H[d+99| -0]=e;H[d+100|0]=e>>>8;break c;default:break d}e=K[j+1|0];if(!((h|0)==122&(e|0)==104)&((h|0)!=99|(e|0)!=110))break b;e=K[j+2|0];if(e?(e|0)!=95:0)break b;if(i>>>0>=3){J[c>>2]=2;break a}f=g+40|0;e=g+8|0;k=d,l=ag(730590,f,e,c),J[k+4>>2]=l;if((i|0)==1)k=d,l=ag(732763,f,e,c),J[k+8>>2]=l;k=d,l=ag(732851,g+40|0,g+8|0,c),J[k+12>>2]=l;h=743120;J[a+24>>2]=743120;H[d+101|0]=K[732875];e=K[732873]|K[732874]<<8;H[d+99|0]=e;H[d+100|0]=e>>>8;if(!i){J[d+64>>2]=0;f=K[733030]|K[733031]<<8|(K[733032]<<16|K[733033]<<24); -e=K[733026]|K[733027]<<8|(K[733028]<<16|K[733029]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24;f=K[733038]|K[733039]<<8|(K[733040]<<16|K[733041]<<24);e=K[733034]|K[733035]<<8|(K[733036]<<16|K[733037]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[733046]|K[733047]<<8|(K[733048]<<16|K[733049]<<24);e=K[733042]|K[733043]<<8|(K[733044]<< -16|K[733045]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[733051]|K[733052]<<8|(K[733053]<<16|K[733054]<<24);e=K[733047]|K[733048]<<8|(K[733049]<<16|K[733050]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]=e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;break c}i:{if((i|0)==1){J[d+64>>2]=1;f=K[733134]|K[733135]<<8|(K[733136]<<16|K[733137]<<24);e=K[733130]|K[733131]<<8|(K[733132]<< -16|K[733133]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]=e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;f=K[733129]|K[733130]<<8|(K[733131]<<16|K[733132]<<24);e=K[733125]|K[733126]<<8|(K[733127]<<16|K[733128]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[733121]|K[733122]<<8|(K[733123]<<16|K[733124]<<24);e=K[733117]|K[733118]<<8|(K[733119]<<16|K[733120]<<24);H[d+77|0]=e;H[d+ -78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[733113]|K[733114]<<8|(K[733115]<<16|K[733116]<<24);e=K[733109]|K[733110]<<8|(K[733111]<<16|K[733112]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24;break i}J[d+64>>2]=2;f=K[733258]|K[733259]<<8|(K[733260]<<16|K[733261]<<24);e=K[733254]|K[733255]<<8|(K[733256]<<16|K[733257]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8; -H[d+92|0]=e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;f=K[733253]|K[733254]<<8|(K[733255]<<16|K[733256]<<24);e=K[733249]|K[733250]<<8|(K[733251]<<16|K[733252]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[733245]|K[733246]<<8|(K[733247]<<16|K[733248]<<24);e=K[733241]|K[733242]<<8|(K[733243]<<16|K[733244]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24; -H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[733237]|K[733238]<<8|(K[733239]<<16|K[733240]<<24);e=K[733233]|K[733234]<<8|(K[733235]<<16|K[733236]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24}}H[a+60|0]=K[J[h+12>>2]+71|0];if(!K[b+8|0]&J[c>>2]<=0)break a;rK(a);break a}J[c>>2]=7;break a}J[c>>2]=2}bc=g+272|0}function OZ(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[b+208>>2];h=b+80|0;H[d+h|0]=128; -c=d+1|0;if(c>>>0>=113){wc(c+h|0,0,127-d|0);Zv(b,h,1);c=0}wc(c+h|0,0,112-c|0);e=J[b+64>>2];i=e<<24|(e&65280)<<8;f=e&16711680;g=f<<24;f=f>>>8|0;k=g;g=e&-16777216;c=g>>>24|0;d=J[b+68>>2];d=k|g<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[b+200|0]=d;H[b+201|0]=d>>>8;H[b+202|0]=d>>>16;H[b+203|0]=d>>>24;g=c|f|i;c=0;c=g|(0|(c|c));H[b+204|0]=c;H[b+205|0]=c>>>8;H[b+206|0]=c>>>16;H[b+207|0]=c>>>24;e=J[b+72>>2];i=e<<24|(e&65280)<<8;f=e&16711680;g=f<<24;f=f>>>8| -0;d=J[b+76>>2];k=g;g=e&-16777216;c=g>>>24|0;d=k|g<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[b+192|0]=d;H[b+193|0]=d>>>8;H[b+194|0]=d>>>16;H[b+195|0]=d>>>24;g=c|f|i;c=0;c=g|(c|c|j);H[b+196|0]=c;H[b+197|0]=c>>>8;H[b+198|0]=c>>>16;H[b+199|0]=c>>>24;Zv(b,h,1);a:{if(!a)break a;b:{c:{d:{e:{f:{c=J[b+212>>2];switch(c<<30|c-28>>>2){case 0:break c;case 1:break d;case 5:break e;case 9:break f;default:break a}}e=J[b>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<< -24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+4>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;g=c|f|g;c=0;c=g|(0|(c|c));H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;e=J[b+8>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+12>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+8|0]=d;H[a+9| -0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;e=J[b+16>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+20>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;e=J[b+24>>2];g=e<<24|(e&65280)<< -8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+28>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+24|0]=d;H[a+25|0]=d>>>8;H[a+26|0]=d>>>16;H[a+27|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;e=J[b+32>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+36>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280| -d>>>24));H[a+32|0]=d;H[a+33|0]=d>>>8;H[a+34|0]=d>>>16;H[a+35|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;e=J[b+40>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+44>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+40|0]=d;H[a+41|0]=d>>>8;H[a+42|0]=d>>>16;H[a+43|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+44|0]=c;H[a+45|0]=c>>>8;H[a+46|0]=c>>>16;H[a+47|0]=c>>> -24;e=J[b+48>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+52>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+48|0]=d;H[a+49|0]=d>>>8;H[a+50|0]=d>>>16;H[a+51|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+52|0]=c;H[a+53|0]=c>>>8;H[a+54|0]=c>>>16;H[a+55|0]=c>>>24;d=J[b+56>>2];b=J[b+60>>2];c=b;H[a+62|0]=(c&255)<<24|d>>>8;H[a+61|0]=(c&65535)<<16|d>>>16;H[a+60|0]=(c&16777215)<<8|d>>>24;H[a+59|0]=c;H[a+58|0]=c>>>8;H[a+ -57|0]=c>>>16;H[a+56|0]=c>>>24;a=a+63|0;break b}e=J[b>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+4>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;g=c|f|g;c=0;c=g|(0|(c|c));H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;e=J[b+8>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+12>>2];d=i|h<<8|(((d&255)<< -24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;e=J[b+16>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+20>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;g=c|f|g;c=0;c=g|(c| -c|j);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;e=J[b+24>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+28>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+24|0]=d;H[a+25|0]=d>>>8;H[a+26|0]=d>>>16;H[a+27|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;e=J[b+32>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24| -0;d=J[b+36>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+32|0]=d;H[a+33|0]=d>>>8;H[a+34|0]=d>>>16;H[a+35|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;d=J[b+40>>2];b=J[b+44>>2];c=b;H[a+46|0]=(c&255)<<24|d>>>8;H[a+45|0]=(c&65535)<<16|d>>>16;H[a+44|0]=(c&16777215)<<8|d>>>24;H[a+43|0]=c;H[a+42|0]=c>>>8;H[a+41|0]=c>>>16;H[a+40|0]=c>>>24;a=a+47|0;break b}e=J[b>>2];g=e<<24|(e&65280)<<8;f=e&16711680; -i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+4>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;g=c|f|g;c=0;c=g|(0|(c|c));H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;e=J[b+8>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+12>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+8|0]=d;H[a+ -9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;e=J[b+16>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+20>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;d=J[b+24>>2];b=J[b+28>> -2];c=b;H[a+30|0]=(c&255)<<24|d>>>8;H[a+29|0]=(c&65535)<<16|d>>>16;H[a+28|0]=(c&16777215)<<8|d>>>24;H[a+27|0]=c;H[a+26|0]=c>>>8;H[a+25|0]=c>>>16;H[a+24|0]=c>>>24;a=a+31|0;break b}e=J[b>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+4>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;g=c|f|g;c=0;c=g|(0|(c|c));H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+ -7|0]=c>>>24;e=J[b+8>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+12>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;e=J[b+16>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+20>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d& -16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;b=J[b+28>>2];H[a+26|0]=b>>>8;H[a+25|0]=b>>>16;H[a+24|0]=b>>>24;d=b;a=a+27|0}H[a|0]=d}}function Kya(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;c=bc-144|0;bc=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!K[a+144|0]){a=Kc(c+116|0,2382727,2374155,164,2402264,0); -J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;b=Z()|0;Fc(a);ba(b|0);B()}p=di();J[c+108>>2]=0;J[c+112>>2]=J[682146];J[695492]=0;da(5108,c+104|0,b|0);b=J[695492];J[695492]=0;k:{l:{m:{n:{o:{p:{q:{r:{if((b|0)!=1){J[695492]=0;j=J[c+104>>2];b=ha(5109,j|0,c+108|0,0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break o;if(b)break p;J[695492]=0;b=ja(5018,c+116|0,J[682138],2374155,1270,2402597,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break r;J[695492]=0;_(5019,b|0);f=J[695492];J[695492]=0; -if((f|0)!=1)break j;d=ea(2411712)|0;g=cc;Fc(b);break q}d=Z()|0;break b}d=ea(2411712)|0;g=cc}if((sa(2411712)|0)!=(g|0))break c;b=na(d|0)|0;f=J[J[a>>2]+64>>2];J[695492]=0;ca(f|0,a|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break p;d=Z()|0;break c}J[695492]=0;b=c+108|0;l=fd(b,2400671,-1);f=J[695492];J[695492]=0;s:{t:{if((f|0)!=1){J[695492]=0;n=fd(b,2400706,-1);f=J[695492];J[695492]=0;if((f|0)==1)break t;J[695492]=0;f=fd(b,2400911,-1); -g=J[695492];J[695492]=0;if((g|0)==1)break l;u:{if(f){J[695492]=0;b=fd(b,2400958,-1);f=J[695492];J[695492]=0;if((f|0)==1)break l;m=!b;if(!l|!n)break u;if(b)break s;break m}m=1;if(!l)break u;if(n)break m}J[695492]=0;aa(5054,a+60|0,2401068)|0;b=J[695492];J[695492]=0;s=1;if((b|0)==1)break l;break k}d=Z()|0;break c}d=Z()|0;break c}J[695492]=0;a=ja(5018,c+116|0,2402643,2374155,1281,2402597,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j; -d=Z()|0;Fc(a);break c}d=Z()|0;break c}d=Z()|0;break c}J[695492]=0;aa(5054,a+60|0,2401186)|0;b=J[695492];J[695492]=0;m=1;if((b|0)!=1)break k}d=Z()|0;break c}f=J[J[j>>2]+16>>2];b=0;J[695492]=0;k=$(f|0,j|0)|0;f=J[695492];J[695492]=0;v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{if((f|0)!=1){f=J[a+140>>2];g=J[a+132>>2]<=1?-1:f;if(g){q=a+52|0;d=g;K:{while(1){J[695492]=0;e=c+108|0;h=ha(5109,j|0,e|0,0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break D;if(!h)break K;J[695492]=0;J[c+96>>2]=0;i=c+96|0;aa(4985, -i|0,j|0)|0;o=J[695492];J[695492]=0;f=b+1|0;if((o|0)==1)break J;J[695492]=0;ua(5311,c+116|0,a|0,e|0,i|0,!l|0,!n|0,m|0);e=J[695492];J[695492]=0;if((e|0)==1)break I;e=J[c+96>>2];J[c+96>>2]=0;L:{if(!e)break L;J[695492]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;o=J[695492];J[695492]=0;if((o|0)==1)break a;if(i)break L;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}J[c+96>>2]=0;J[c+100>>2]=J[682146];e=J[c+108>>2];J[c+56>>2]=J[(e?e+12|0:2728584)>>2];O[c+48>>3]=+(h|0)*9.765625E-4;J[695492]=0;e=c+ -96|0;ga(5180,e|0,2402994,c+48|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break H;J[695492]=0;h=c+72|0;ca(5122,h|0,q|0,c+116|0);i=J[695492];J[695492]=0;if((i|0)==1)break G;J[695492]=0;i=c+80|0;ca(5122,i|0,h|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break F;J[695492]=0;ca(5121,c+88|0,i|0,2403295);e=J[695492];J[695492]=0;if((e|0)==1)break E;e=J[c+88>>2];M:{if(e){h=J[J[e>>2]+28>>2];J[695492]=0;ca(h|0,c+140|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break M;d=ea(2411712)|0;g=cc;break C}J[c+140>>2]=0}J[695492]= -0;aa(4993,q|0,c+140|0)|0;e=J[695492];J[695492]=0;N:{if((e|0)!=1){e=J[c+140>>2];J[c+140>>2]=0;if(!e)break N;J[695492]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break N;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break N}break a}d=ea(2411712)|0;g=cc;vc(c+140|0);break C}e=J[a+52>>2];J[a+56>>2]=J[(e?e+12|0:2728584)>>2];sc(c+88|0);sc(c+80|0);sc(c+72|0);e=J[J[p>>2]+36>>2];J[695492]=0;ca(e|0,p|0,a|0,c+108|0);e=J[695492];J[695492]=0;if((e|0)==1)break H;J[695492]= -0;_(5298,j|0);e=J[695492];J[695492]=0;if((e|0)==1)break H;e=J[J[j>>2]+16>>2];J[695492]=0;e=$(e|0,j|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break H;sc(c+96|0);sc(c+116|0);k=e;b=f;d=d-1|0;if(d)continue;break}b=g}f=J[a+140>>2]}if((f|0)>=0)break x;J[a+140>>2]=b;break x}d=Z()|0;break c}d=ea(2411712)|0;g=cc;break y}d=ea(2411712)|0;g=cc;vc(c+96|0);break y}d=ea(2411712)|0;g=cc;break z}d=ea(2411712)|0;g=cc;break z}d=ea(2411712)|0;g=cc;break A}d=ea(2411712)|0;g=cc;break B}d=ea(2411712)|0;g=cc;f=b;break y}sc(c+ -88|0)}sc(c+80|0)}sc(c+72|0)}sc(c+96|0);sc(c+116|0)}if((sa(2411712)|0)!=(g|0))break c;d=na(d|0)|0;J[695492]=0;e=Mm(d,J[682138]);l=J[695492];J[695492]=0;g=1;if((l|0)==1)break i;if(!e){g=J[a+132>>2];if(J[a+140>>2]<0)J[a+140>>2]=(g|0)>2?f:b;g=(g|0)<2}b=J[J[a>>2]+64>>2];J[695492]=0;ca(b|0,a|0,d|0,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break w}J[a+68>>2]=k;J[695492]=0;_(5162,j|0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+12>>2];if(!b)break v; -f=J[J[b>>2]+48>>2];J[695492]=0;_(f|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break v}d=Z()|0;break c}d=Z()|0;break c}O:{P:{Q:{b=J[a+8>>2];if(!(b|n)){J[695492]=0;a=ja(5018,c+116|0,2403297,2374155,1335,2402597,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break Q;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;d=Z()|0;Fc(a);break c}if(!b&m){J[695492]=0;a=ja(5018,c+116|0,2403353,2374155,1337,2402597,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break P;J[695492]=0;_(5019,a|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break j;d=Z()|0;Fc(a);break c}if(b){J[c+116>>2]=0;J[c+120>>2]=J[682146];R:{if(s){f=J[b+16>>2];g=J[b+20>>2];d=J[b+12>>2];b=J[b+8>>2];J[695492]=0;J[c+16>>2]=b;J[c+20>>2]=d;t=c,u=Izb(f,g,32),J[t+24>>2]=u;J[c+28>>2]=fc;ga(5180,c+116|0,2403408,c+16|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break R;break e}if(!m)break R;f=J[b+20>>2];g=J[b+12>>2];J[c+32>>2]=J[b+8>>2];J[c+36>>2]=g;J[c+40>>2]=f;J[695492]=0;ga(5180,c+116|0,2403500,c+32|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e}J[695492]= -0;b=c+88|0;ca(5121,b|0,c+116|0,2403295);f=J[695492];J[695492]=0;S:{T:{U:{V:{if((f|0)!=1){J[695492]=0;f=a+52|0;ca(5122,c+96|0,b|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break V;b=J[c+96>>2];W:{if(b){g=J[J[b>>2]+28>>2];J[695492]=0;ca(g|0,c+80|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break W;d=Z()|0;break g}J[c+80>>2]=0}J[695492]=0;aa(4993,f|0,c+80|0)|0;b=J[695492];J[695492]=0;X:{if((b|0)!=1){b=J[c+80>>2];J[c+80>>2]=0;if(!b)break X;J[695492]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;d=J[695492];J[695492]= -0;if((d|0)!=1){if(g)break X;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break X}break a}d=Z()|0;vc(c+80|0);break g}b=J[a+52>>2];J[a+56>>2]=J[(b?b+12|0:2728584)>>2];b=c+96|0;sc(b);g=c+88|0;sc(g);d=J[a+8>>2];k=J[d+12>>2];d=J[d+8>>2];e=J[a+68>>2];J[695492]=0;r=+(e|0);O[c+8>>3]=r*9.765625E-4;O[c>>3]=+(P(P(d,k),3)|0)/r;d=c+116|0;ga(5180,d|0,2403604,c|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break U;J[695492]=0;ca(5122,b|0,f|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break T;b=J[c+96>>2]; -Y:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,g|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break Y;d=Z()|0;break h}J[c+88>>2]=0}J[695492]=0;aa(4993,f|0,c+88|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+88>>2];J[c+88>>2]=0;if(!b)break S;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break S;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break S}break a}d=Z()|0;vc(c+88|0);break h}d=Z()|0;break d}d=Z()|0;break f}d=Z()|0;break d}d=Z()|0;break d}b= -a;a=J[a+52>>2];J[b+56>>2]=J[(a?a+12|0:2728584)>>2];sc(c+96|0);sc(c+116|0)}a=J[c+104>>2];J[c+104>>2]=0;Z:{if(!a)break Z;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)==1)break O;if(b)break Z;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break O}sc(c+108|0);bc=c+144|0;return}d=Z()|0;break c}d=Z()|0;break c}ea(0)|0;yc()}B()}d=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break c;break a}sc(c+96|0);break d}sc(c+96|0)}sc(c+88|0);break d}d=Z()|0}sc(c+ -116|0)}vc(c+104|0)}sc(c+108|0);ba(d|0);B()}ea(0)|0;yc();B()}function r$a(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;j=J[a+4>>2];if(!j){J[b>>2]=1;return}l=J[a+12>>2];g=J[j+8>>2];c=J[a+8>>2];f=J[a+16>>2];e=J[b>>2];a:{b:{if((e|0)>0){i=c;break b}if(c>>>0>=l>>>0){i=c;break b}m=J[a+20>>2];c:{while(1){d:{e:{f:{g:{if(f>>>0>>0){i=c+1|0;e=K[c|0];h:{i:{j:{k:{h=L[g>>1];switch(h-217|0){case 0:break i;case 23:break j;case 22:break k;default:break h}}l:{m:{if((e-66&255)>>>0>=10){if((e|0)!= -64){if((e-33&255)>>>0<31)break l;J[b>>2]=12;I[g>>1]=65534;break c}I[g+8>>1]=L[g+4>>1];e=J[g+20>>2];break m}e=(e&15)<<2;I[g+8>>1]=L[e+752320>>1]<<7;e=L[e+752322>>1]}J[g+16>>2]=e}I[g>>1]=65534;e=J[b>>2];if((e|0)>0|i>>>0>=l>>>0)break b;i=c+2|0;e=K[c+1|0];h=65534;break h}if((e+95&255)>>>0<78)break g;I[g>>1]=65534;J[b>>2]=12;break c}c=J[a+20>>2];d=J[g+44>>2];if(d){n:{if(c>>>0>f>>>0){I[f>>1]=d;f=f+2|0;d=J[a+24>>2];if(!d)break n;J[a+24>>2]=d+4;J[d>>2]=(J[a+8>>2]^-1)+i;break n}c=J[a+4>>2];h=H[c+65|0];H[c+ -65|0]=h+1;I[(c+(h<<1)|0)+116>>1]=d;J[b>>2]=15;c=J[a+20>>2]}J[g+44>>2]=0}d=(e|0)==232?32:8205;o:{if(c>>>0>f>>>0){I[f>>1]=d;f=f+2|0;c=J[a+24>>2];if(!c)break o;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break o}c=J[a+4>>2];h=H[c+65|0];H[c+65|0]=h+1;I[(c+(h<<1)|0)+116>>1]=d;J[b>>2]=15}h=65534;I[g>>1]=65534}p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{c=e&255;switch(c-217|0){case 1:case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 18:case 19:case 20:case 21:break u; -case 16:break v;case 7:break w;case 15:break y;case 17:break z;case 0:case 22:case 23:break A;default:break B}}switch(c-10|0){case 0:case 3:break x;default:break u}}I[g>>1]=c;c=J[j+44>>2];if((c|0)==65535)break e;e=J[g+44>>2];if(e){C:{if(M[a+20>>2]>f>>>0){I[f>>1]=e;f=f+2|0;c=J[a+24>>2];if(!c)break C;J[a+24>>2]=c+4;J[c>>2]=(J[a+8>>2]^-1)+i;break C}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=e;J[b>>2]=15}J[g+44>>2]=0;c=J[j+44>>2]}if(!((c|0)<161|c-2404>>>0<2|c-8204>>>0<2))c=L[g+8>>1]+ -c|0;D:{if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;c=J[a+24>>2];if(!c)break D;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;J[j+44>>2]=65535;break e}e=J[a+4>>2];d=H[e+65|0];H[e+65|0]=d+1;I[(e+(d<<1)|0)+116>>1]=c;J[b>>2]=15}J[j+44>>2]=65535;break e}d=2405;if((h|0)==234)break q;d=K[g+16|0]&128?2404:65535;c=234;break s}if((h|0)==232){d=8204;c=65534;break s}d=K[g+16|0]?2381:65535;c=232;break s}H[g+25|0]=1;d=L[(c<<1)+752368>>1];break s}c=J[g+16>>2];if((h&255)==164){d=2308;if(c&128)break q}d=c&135?2374:65535;c=224; -break s}if((h|0)==232){d=8205;c=65534;break s}E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{k=L[g+8>>1];if(!((h|0)==192&(k|0)==256)){d=1;switch((h&255)-161|0){case 5:break F;case 59:break G;case 58:break H;case 6:break I;case 9:break J;case 40:break K;case 31:break L;case 30:break M;case 25:break N;case 20:break O;case 19:break P;case 18:break Q;case 0:break R;case 62:break S;case 73:break T;default:break E}}c=J[a+20>>2];e=J[g+44>>2];if(e){U:{if(c>>>0>f>>>0){I[f>>1]=e;f=f+2|0;e=J[a+24>>2];if(!e)break U; -J[a+24>>2]=e+4;J[e>>2]=(J[a+8>>2]^-1)+i;break U}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=e;J[b>>2]=15;c=J[a+20>>2]}J[g+44>>2]=0}V:{W:{if(c>>>0>f>>>0){I[f>>1]=2652;e=J[a+24>>2];X:{if(!e){h=0;break X}h=e+4|0;J[a+24>>2]=h;J[e>>2]=(i-J[a+8>>2]|0)-2}e=f+2|0;if(J[b>>2]>0){f=e;break W}Y:{if(c>>>0>e>>>0){I[f+2>>1]=2637;Z:{if(!h){d=0;break Z}d=h+4|0;J[a+24>>2]=d;J[h>>2]=(i-J[a+8>>2]|0)-2}e=f+4|0;if(J[b>>2]>0)break Y;if(c>>>0>e>>>0){I[f+4>>1]=2617;f=f+6|0;if(!d)break V;J[a+24>>2]=d+4;J[d>> -2]=(i-J[a+8>>2]|0)-2;break V}c=J[a+4>>2];f=H[c+65|0];H[c+65|0]=f+1;I[(c+(f<<1)|0)+116>>1]=2617;J[b>>2]=15;f=e;break V}c=J[a+4>>2];f=H[c+65|0];H[c+65|0]=f+1;I[(c+(f<<1)|0)+116>>1]=2637;J[b>>2]=15}f=e;c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=2617;break V}c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=2652;J[b>>2]=15}c=J[a+4>>2];e=c+116|0;d=H[c+65|0];I[e+(d<<1)>>1]=2637;H[c+65|0]=d+2;I[e+(d+1<<24>>24<<1)>>1]=2617}J[j+44>>2]=65535;I[g>>1]=65534;break e}d=2;break F}d= -3;break F}d=4;break F}d=5;break F}d=6;break F}d=7;break F}d=8;break F}d=9;break F}d=10;break F}d=11;break F}d=12;break F}d=13;break F}d=14;break F}d=15}d=L[(d<<2)+752882>>1];if(!(J[g+16>>2]&K[(d&255)+752944|0]))break E;I[g>>1]=65534;J[j+44>>2]=65535;if((k|0)!=256)break r;c=J[g+44>>2];if(c){_:{if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;c=J[a+24>>2];if(!c)break _;J[a+24>>2]=c+4;J[c>>2]=(J[a+8>>2]^-1)+i;break _}e=J[a+4>>2];h=H[e+65|0];H[e+65|0]=h+1;I[(e+(h<<1)|0)+116>>1]=c;J[b>>2]=15}J[g+44>>2]=0}d=d-2404>>> -0<2|d-8204>>>0<2?d:L[g+8>>1]+d|0;if(M[a+20>>2]>f>>>0){I[f>>1]=d;f=f+2|0;c=J[a+24>>2];if(!c)break e;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break e}c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=d;break f}d=L[(c<<1)+752368>>1];break t}d=L[(c<<1)+752368>>1];if(c>>>0<161)break s}if(J[g+16>>2]&K[(d&127)+752944|0])break s;d=L[g+8>>1]!=768?65535:(e&255)!=208?65535:d}I[g>>1]=c;k=J[j+44>>2];if((k|0)==65535)break r;h=L[g+8>>1];c=J[g+44>>2];$:{aa:{if(!((h|0)!=256|c-2640>>>0<4294967216)){if(!(H[c+ -750512|0]&1)|(k|0)!=2381|(c|0)!=(d+256|0))break aa;e=(i-J[a+8>>2]|0)-3|0;c=J[a+20>>2];ba:{if(f>>>0>>0){I[f>>1]=2673;f=f+2|0;d=J[a+24>>2];if(!d)break ba;J[a+24>>2]=d+4;J[d>>2]=e;break ba}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=2673;J[b>>2]=15;c=J[a+20>>2]}d=J[g+44>>2];ca:{if(c>>>0>f>>>0){I[f>>1]=d;f=f+2|0;c=J[a+24>>2];if(!c)break ca;J[a+24>>2]=c+4;J[c>>2]=e;break ca}c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=d;J[b>>2]=15}J[g+44>>2]=0;J[j+44>>2]=65535;break e}if(!c)break $}da:{if(M[a+ -20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;c=J[a+24>>2];if(!c)break da;J[a+24>>2]=c+4;J[c>>2]=(J[a+8>>2]^-1)+i;break da}h=J[a+4>>2];k=H[h+65|0];H[h+65|0]=k+1;I[(h+(k<<1)|0)+116>>1]=c;J[b>>2]=15}J[g+44>>2]=0;h=L[g+8>>1]}ea:{fa:{k=(h|0)!=256;if(!(k|(d|0)!=2306)){c=J[j+44>>2];if(c-2384>>>0<4294967216|K[c+750768|0]<2)break fa;c=c+256|0;if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;d=2416;c=J[a+24>>2];if(!c)break ea;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break ea}d=J[a+4>>2];h=H[d+65|0];H[d+65|0]=h+1;I[(d+(h<<1)|0)+116>> -1]=c;J[b>>2]=15;d=2416;break ea}c=J[j+44>>2];if((d|0)!=2381|k|(!(H[c+750768|0]&1)|c-2384>>>0<4294967216))break fa;J[g+44>>2]=c+256;d=2381;break ea}if(!((c|0)<161|c-2404>>>0<2|c-8204>>>0<2)){c=c+h|0;J[j+44>>2]=c}if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;c=J[a+24>>2];if(!c)break ea;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break ea}h=J[a+4>>2];k=H[h+65|0];H[h+65|0]=k+1;I[(h+(k<<1)|0)+116>>1]=c;J[b>>2]=15}J[j+44>>2]=65535}if((d|0)!=65535)break p;J[b>>2]=10;break c}I[g>>1]=65534}J[j+44>>2]=d;if(K[g+25|0]!= -1)break e;H[g+25|0]=0;I[g+8>>1]=L[g+4>>1];J[g+16>>2]=J[g+20>>2];break e}J[b>>2]=15;l=c;break a}ga:switch(e-184|0){case 0:case 7:break ga;default:break d}h=(e|0)==191?2416:2386;if(!(J[g+16>>2]&K[(h&114)+752944|0]))break d;I[g>>1]=65534;c=J[a+20>>2];e=J[g+44>>2];if(e){ha:{if(c>>>0>f>>>0){I[f>>1]=e;f=f+2|0;e=J[a+24>>2];if(!e)break ha;J[a+24>>2]=e+4;J[e>>2]=(J[a+8>>2]^-1)+i;break ha}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=e;J[b>>2]=15;c=J[a+20>>2]}J[g+44>>2]=0}e=h+L[g+8>>1]|0;if(c>>> -0>f>>>0){I[f>>1]=e;f=f+2|0;c=J[a+24>>2];if(!c)break e;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break e}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=e}J[b>>2]=15}e=J[b>>2];if((e|0)>0)break b;c=i;if(l>>>0>c>>>0)continue;break b}break}J[b>>2]=10}H[J[a+4>>2]+37|0]=e;H[J[a+4>>2]+36|0]=1;e=J[b>>2]}if((e|0)>0){l=i;break a}if(!K[a+2|0]){l=i;break a}if((i|0)!=(l|0)){l=i;break a}i=J[a+4>>2];c=L[g>>1];e=c-217|0;ia:{if(!(e>>>0>23|!(1<>1]=65534;break ia}H[i+ -36|0]=0}i=J[j+44>>2];if((i|0)==65535)break a;if(!((i|0)<161|i-2404>>>0<2|i-8204>>>0<2))i=L[g+8>>1]+i|0;ja:{if(M[a+20>>2]>f>>>0){I[f>>1]=i;f=f+2|0;b=J[a+24>>2];if(!b)break ja;J[a+24>>2]=b+4;J[b>>2]=(J[a+8>>2]^-1)+l;break ja}c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=i;J[b>>2]=15}J[j+44>>2]=65535}J[a+8>>2]=l;J[a+16>>2]=f}function lGa(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;a:{j=J[J[b+4>>2]+12>>2];c=bc+-64|0;bc=c;h=Cp(c+56|0);b=a;J[a>>2]=123;J[a+4>>2]=0;H[a+11|0]=1; -d=J[j+24>>2];J[695492]=0;a=$(4,48)|0;e=J[695492];J[695492]=0;b:{if((e|0)!=1){J[c+24>>2]=a;J[c+28>>2]=11;J[c+32>>2]=-2147483636;J[a+40>>2]=J[591107];e=J[591106];J[a+32>>2]=J[591105];J[a+36>>2]=e;e=J[591104];J[a+24>>2]=J[591103];J[a+28>>2]=e;e=J[591102];J[a+16>>2]=J[591101];J[a+20>>2]=e;e=J[591100];J[a+8>>2]=J[591099];J[a+12>>2]=e;e=J[591098];J[a>>2]=J[591097];J[a+4>>2]=e;J[a+44>>2]=0;J[695492]=0;a=c+40|0;ca(4801,a|0,d|0,c+24|0);d=J[695492];J[695492]=0;c:{if((d|0)!=1){e=0;J[695492]=0;a=aa(3314,h|0, -a|0)|0;d=J[695492];J[695492]=0;d:{if((d|0)==1)break d;e:{f:{if(!a)break f;J[695492]=0;a=$(3315,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;if(!a)break f;J[695492]=0;d=c+12|0;da(4802,d|0,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;f=K[c+23|0];a=f<<24>>24;g=f;f=(a|0)<0;if(((f?J[c+16>>2]:g)|0)==13){e=!gd(f?J[c+12>>2]:d,2364436,13);a=K[c+23|0]}if(a<<24>>24>=0)break f;qc(J[c+12>>2])}if(H[c+51|0]<0)qc(J[c+40>>2]);if(H[c+35|0]<0)qc(J[c+24>>2]);g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{if(!e)break t; -J[c+48>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;while(1){u:{J[695492]=0;a=$(3315,h|0)|0;d=J[695492];J[695492]=0;v:{w:{if((d|0)!=1){if(!a)break u;J[695492]=0;e=c+24|0;da(4802,e|0,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break w;a=0;f=K[c+35|0];d=f<<24>>24;g=f;f=(d|0)<0;if(((f?J[c+28>>2]:g)|0)==12){a=!gd(f?J[c+24>>2]:e,2364492,12);d=K[c+35|0]}if(d<<24>>24<0)qc(J[c+24>>2]);if(!a)continue;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[695492]=0;d=c+24|0;ca(4803,h|0,2364544,d|0);a=J[695492];J[695492]=0;if((a|0)!=1){f= -1;e=K[c+35|0];a=e<<24>>24<0;e=a?J[c+28>>2]:e;if((e|0)<15)break v;d=a?J[c+24>>2]:d;g=d+(e<<2)|0;a=d;while(1){a=og(a,99,e-14|0);if(!a)break v;if(gd(a,2365912,15)){a=a+4|0;e=g-a>>2;if((e|0)>=15)continue;break v}break}if((a|0)==(g|0)|(a-d|0)==-4)break v;f=0;J[695492]=0;ca(4803,h|0,2364696,c+40|0);a=J[695492];J[695492]=0;if((a|0)!=1)break v}e=Z()|0;if(H[c+35|0]>=0)break g;qc(J[c+24>>2]);break g}e=Z()|0;break g}e=Z()|0;break g}if(H[c+35|0]<0)qc(J[c+24>>2]);if(f)continue}break}x:{a=K[c+51|0];if(!(a<<24>> -24<0?J[c+44>>2]:a))break x;a=J[j+24>>2];d=J[J[a>>2]+32>>2];J[695492]=0;a=aa(d|0,a|0,c+40|0)|0;d=J[695492];J[695492]=0;y:{if((d|0)!=1){if(!a)break x;J[695492]=0;_(4805,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break y}e=Z()|0;break g}a=J[j+24>>2];J[695492]=0;d=c+24|0;ca(4801,d|0,a|0,c+40|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;e=0;J[695492]=0;a=aa(3314,h|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;z:{if(!a)break z;J[695492]=0;a=$(3315,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i; -if(!a)break z;J[695492]=0;d=c+12|0;da(4802,d|0,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;f=K[c+23|0];a=f<<24>>24;g=f;f=(a|0)<0;if(((f?J[c+16>>2]:g)|0)==14){e=!gd(f?J[c+12>>2]:d,2365976,14);a=K[c+23|0]}if(a<<24>>24>=0)break z;qc(J[c+12>>2])}if(H[c+35|0]<0)qc(J[c+24>>2]);if(!e)break x;A:{B:{C:{while(1){J[695492]=0;a=$(3315,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break s;if(!a)break x;J[695492]=0;g=c+24|0;da(4810,g|0,h|0);a=J[695492];J[695492]=0;D:{E:{F:{G:{if((a|0)!=1){e=K[c+35|0];d=e<<24>> -24;f=(d|0)<0;a=J[c+28>>2];if(((f?a:e)|0)!=8)break F;if(gd(f?J[c+24>>2]:g,2366036,8))break G;e=5;a=2366072;break E}e=Z()|0;break g}a=J[c+28>>2];e=K[c+35|0];d=e}f=d<<24>>24<0;if(((f?a:e)|0)==10){if(!gd(f?J[c+24>>2]:c+24|0,2366096,10)){e=7;a=2366140;break E}e=K[c+35|0];d=e;a=J[c+28>>2]}f=d<<24>>24<0;if(((f?a:e)|0)==10){if(!gd(f?J[c+24>>2]:c+24|0,2366172,10)){e=6;a=2366216;break E}e=K[c+35|0];d=e;a=J[c+28>>2]}f=d<<24>>24<0;if(((f?a:e)|0)==15){if(!gd(f?J[c+24>>2]:c+24|0,2366244,15)){e=12;a=2366308;break E}e= -K[c+35|0];d=e;a=J[c+28>>2]}f=a;a=d<<24>>24<0;if(((a?f:e)|0)!=16)break D;if(gd(a?J[c+24>>2]:c+24|0,2366360,16))break D;e=7;a=2366428}J[695492]=0;ga(2226,c+24|0,a|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k}J[695492]=0;aa(2860,b|0,2366460)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;a=K[c+35|0];d=a<<24>>24<0;ga(2794,b|0,(d?J[c+24>>2]:c+24|0)|0,(d?J[c+28>>2]:a)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;aa(2860,b|0,2366468)|0;a=J[695492];J[695492]=0;if((a|0)== -1)break k;J[695492]=0;da(4822,c+12|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+35|0]<0)qc(J[c+24>>2]);J[c+32>>2]=J[c+20>>2];a=J[c+16>>2];J[c+24>>2]=J[c+12>>2];J[c+28>>2]=a;J[c+12>>2]=34;J[c+16>>2]=0;J[695492]=0;H[c+23|0]=1;d=$(4,16)|0;a=J[695492];J[695492]=0;if((a|0)==1)break C;J[c>>2]=d;J[c+4>>2]=2;J[c+8>>2]=-2147483644;a=0;J[d+8>>2]=0;J[d>>2]=92;J[d+4>>2]=34;d=K[c+35|0];e=d<<24>>24<0;d=e?J[c+28>>2]:d;g=e?J[c+24>>2]:c+24|0;f=c+12|0;e=1;while(1){H:{if(e){i=(d<<2)+g|0;d=(a<<2)+g|0;a=i-d>>2; -if((e|0)>(a|0))break H;k=J[f>>2];while(1){a=(a-e|0)+1|0;if(!a)break H;a=og(d,k,a);if(!a)break H;if(gd(a,f,e)){d=a+4|0;a=i-d>>2;if((e|0)<=(a|0))continue;break H}break}if((a|0)==(i|0))break H;a=a-g>>2}if((a|0)==-1)break H;J[695492]=0;g=c+24|0;d=K[c+11|0];e=d<<24>>24<0;ma(4823,g|0,a|0,1,(e?J[c>>2]:c)|0,(e?J[c+4>>2]:d)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break B;e=K[c+23|0];d=e<<24>>24<0;e=d?J[c+16>>2]:e;f=d?J[c+12>>2]:c+12|0;d=K[c+35|0];i=d<<24>>24<0;g=i?J[c+24>>2]:g;a=a+2|0;d=i?J[c+28>>2]:d;if(a>>> -0<=d>>>0)continue}break}if(H[c+11|0]<0)qc(J[c>>2]);if(H[c+23|0]<0)qc(J[c+12>>2]);J[695492]=0;a=H[c+35|0];d=(a|0)<0;ga(2794,b|0,(d?J[c+24>>2]:c+24|0)|0,(d?J[c+28>>2]:a&255)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;aa(2860,b|0,2366484)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;if(H[c+35|0]>=0)continue;qc(J[c+24>>2]);continue}break}e=Z()|0;break j}e=Z()|0;break A}e=Z()|0;if(H[c+11|0]>=0)break A;qc(J[c>>2])}if(H[c+23|0]>=0)break j;qc(J[c+12>>2]);break j}if(H[c+51|0]>=0)break t; -qc(J[c+40>>2])}J[c+24>>2]=0;J[c+12>>2]=0;d=j+32|0;e=J[d>>2];I:{J:{if(!e)break J;a=d;while(1){f=J[e+16>>2]<0;a=f?a:e;e=J[(f?e+4|0:e)>>2];if(e)continue;break}if((a|0)==(d|0)|J[a+16>>2]>0)break J;a=J[a+20>>2];J[695492]=0;ca(4824,a|0,c+24|0,c+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break I}J[695492]=0;aa(2860,b|0,2366496)|0;a=J[695492];J[695492]=0;if((a|0)==1)break I;J[695492]=0;a=c+40|0;da(2276,a|0,P(J[c+24>>2],100)|0);d=J[695492];J[695492]=0;if((d|0)==1)break r;J[695492]=0;e=a;a=K[c+51|0];d=a<<24>> -24<0;ga(2794,b|0,(d?J[c+40>>2]:e)|0,(d?J[c+44>>2]:a)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break q;if(H[c+51|0]<0)qc(J[c+40>>2]);J[695492]=0;aa(2860,b|0,2366548)|0;a=J[695492];J[695492]=0;if((a|0)==1)break I;J[695492]=0;a=c+40|0;da(2276,a|0,P(J[c+12>>2],100)|0);d=J[695492];J[695492]=0;if((d|0)==1)break p;J[695492]=0;e=a;a=K[c+51|0];d=a<<24>>24<0;ga(2794,b|0,(d?J[c+40>>2]:e)|0,(d?J[c+44>>2]:a)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break o;if(H[c+51|0]<0)qc(J[c+40>>2]);J[695492]=0;aa(2860,b|0, -2366608)|0;a=J[695492];J[695492]=0;if((a|0)==1)break I;a=J[j+36>>2];J[695492]=0;d=c+40|0;da(2276,d|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;J[695492]=0;e=d;a=K[c+51|0];d=a<<24>>24<0;ga(2794,b|0,(d?J[c+40>>2]:e)|0,(d?J[c+44>>2]:a)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m;if(H[c+51|0]<0)qc(J[c+40>>2]);J[695492]=0;aa(2860,b|0,2366680)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break l}e=Z()|0;break b}e=Z()|0;break g}e=Z()|0;break b}e=Z()|0;if(H[c+51|0]>=0)break b;qc(J[c+40>>2]);break b}e= -Z()|0;break b}e=Z()|0;if(H[c+51|0]>=0)break b;qc(J[c+40>>2]);break b}e=Z()|0;break b}e=Z()|0;if(H[c+51|0]>=0)break b;qc(J[c+40>>2]);break b}J[h>>2]=768024;a=J[h+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);bc=c- -64|0;break a}e=Z()|0}if(H[c+35|0]>=0)break g;qc(J[c+24>>2]);break g}e=Z()|0;if(H[c+35|0]>=0)break g;qc(J[c+24>>2]);break g}e=Z()|0}if(H[c+51|0]>=0)break b;qc(J[c+40>>2]);break b}}e=Z()|0;if(H[c+51|0]>=0)break c;qc(J[c+40>>2]);break c}e=Z()|0}if(H[c+35|0]>=0)break b;qc(J[c+24>>2]);break b}e=Z()|0}if(H[b+ -11|0]<0)qc(J[b>>2]);J[h>>2]=768024;a=J[h+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);ba(e|0);B()}}function y$a(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;n=bc-16|0;bc=n;m=J[a+16>>2];o=J[a+20>>2]-m|0;r=J[a+4>>2];f=J[r+8>>2];i=K[f+73|0];k=J[((i<<2)+f|0)+32>>2];q=J[a+12>>2];c=J[a+8>>2];d=J[r+56>>2];p=K[f+72|0];a:{b:{c:{while(1){j=(d|0)!=0&(o|0)>0;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(p){if(j)break o;e=0;break n}if(j)break l;if(c>>>0>=q>>>0){p=0;break a}p=0;h=15;if((o| -0)<=0)break b;j=c+2|0;d=L[c>>1];e=d-13312|0;if(e>>>0>41983)break m;l=2;g=1;if(o>>>0<2)break d;c=d<<8|d>>>8;H[m|0]=c;H[m+1|0]=c>>>8;m=m+2|0;if(j>>>0>=q>>>0){c=j;d=0;break a}while(1){if((o|0)<3){c=j;d=0;break b}o=o-2|0;c=j+2|0;d=L[j>>1];e=d-13312|0;if(e>>>0>41983){j=c;break m}if(o>>>0<2)break c;j=d<<8|d>>>8;H[m|0]=j;H[m+1|0]=j>>>8;m=m+2|0;j=c;if(c>>>0>>0)continue;break}d=0;break a}e=1}while(1){p:{q:{r:{s:{t:{if(!e){if(c>>>0>=q>>>0)break a;if((o|0)<=0){h=15;break b}j=c+2|0;u:{v:{d=L[c>>1];if(d-32>>> -0>95){if(d>>>0>31)break u;if(!(1<>>0<128)break t;if((d&63488)!=55296)break q;if(d&1024)break i;c=j;e=1;continue}if(c>>>0>=q>>>0)break a;h=L[c>>1];if((h&64512)!=56320){h=12;break b}j=c+2|0;c=h+(d<<10)|0;l=c-56613888|0;e=l-k|0;if(e>>>0>=128)break r}H[m|0]=e|128}c=j;m=m+1|0;o=o-1|0;d=0;break p}e=0;w:{g=J[f+32>>2];x:{if(l-g>>>0<128)break x;e=1;g=J[f+36>>2];if(l-g>>>0<128)break x;e=2;g=J[f+40>>2];if(l-g>>>0<128)break x;e=3;g=J[f+44>>2];if(l- -g>>>0<128)break x;e=4;g=J[f+48>>2];if(l-g>>>0<128)break x;e=5;g=J[f+52>>2];if(l-g>>>0<128)break x;e=6;g=J[f+56>>2];if(l-g>>>0<128)break x;e=7;g=J[f+60>>2];if(l-g>>>0>127)break w}i=H[f+75|0];d=i;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(e|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((i|0)!=(c|0))while(1){i=d;d=f+76|0;H[i+d|0]=K[c+d|0];d=c;c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=e;d=l-g|e<<8|4224;i=e;k=g;l=2;break e}y:{z:{if(c-56614080>>>0<=127){k=192;J[n+12>> -2]=192;e=249;break z}if(c-56614480>>>0<128){k=592;J[n+12>>2]=592;e=250;break z}if(c-56614768>>>0<128){k=880;J[n+12>>2]=880;e=251;break z}if(c-56615216>>>0<128){k=1328;J[n+12>>2]=1328;e=252;break z}if(c-56626240>>>0<128){k=12352;J[n+12>>2]=12352;e=253;break z}if(c-56626336>>>0<128){k=12448;J[n+12>>2]=12448;e=254;break z}if(c-56679264>>>0<128){k=65376;J[n+12>>2]=65376;e=255;break z}if(l>>>0<128)break y;if(!(!(c-56732672>>>0<12288|l>>>0<13312)&(l&-16384)!=65536)){k=l&2147483520;J[n+12>>2]=k;e=l>>>7| -0;break z}if((l|0)==65279|c-56671232>>>0>8175)break y;k=l&2147483520;J[n+12>>2]=k;e=c-56657920>>>7|0}c=H[f+75|0];i=K[(c+f|0)+76|0];c=c+1|0;c=(c&255)!=8?c:0;H[f+75|0]=c;J[((i<<2)+f|0)+32>>2]=k;g=c<<24>>24;d=g;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(i|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((g|0)!=(c|0))while(1){g=d;d=f+76|0;H[g+d|0]=K[c+d|0];d=c;c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=i;d=l-k|((e<<8)-131072|i<<21)|184549504;l=4;break e}H[m|0]=15;o=o-1| -0;m=m+1|0;d=h|d<<16;break k}if(d>>>0<=159){d=d&127|512;break h}if((d|0)==65279|d>>>0>=65520)break f;h=0;A:{B:{C:{if(d-J[f+32>>2]>>>0<128)break C;h=1;if(d-J[f+36>>2]>>>0<128)break C;h=2;if(d-J[f+40>>2]>>>0<128)break C;h=3;if(d-J[f+44>>2]>>>0<128)break C;h=4;if(d-J[f+48>>2]>>>0<128)break C;h=5;if(d-J[f+52>>2]>>>0<128)break C;h=6;if(d-J[f+56>>2]>>>0<128)break C;h=7;if(d-J[f+60>>2]>>>0>127)break B}g=J[((h<<2)+f|0)+32>>2];D:{if(j>>>0>=q>>>0)break D;c=L[j>>1];if(c>>>0>g+127>>>0)break A;if(c>>>0>=g>>>0)break D; -if(c>>>0>127)break A;if(c>>>0>31)break D;if(!(1<=0){c=c&255;d=d-J[(c<<2)+751744>>2]|(c<<8)+256;l=2;break e}e=YB(d,n+12|0);if((e|0)>=0){c=H[f+75|0];i=H[(c+f|0)+76|0];c=c+1|0;H[f+75|0]=(c&255)!= -8?c:0;c=i&255;k=J[n+12>>2];J[((c<<2)+f|0)+32>>2]=k;XB(f,i);d=d-k|((c<<16)+1572864|e<<8)|128;l=3;break e}if(j>>>0>>0&L[j>>1]-13312>>>0>41983|d-13312>>>0>41983)break f;d=d|983040;break g}d=(h<<8)+384|d-g;break h}e=0;continue}}if(e>>>0>=48896){l=2;if(!(j>>>0>=q>>>0|L[j>>1]-13312>>>0>=41984))break e;if(!(!(d-48>>>0<10|d-97>>>0<26)&d-65>>>0>25)){d=((i&255)<<8)+57344|d;p=1;l=2;break e}h=0;E:{g=J[f+32>>2];F:{if(d-g>>>0<128)break F;h=1;g=J[f+36>>2];if(d-g>>>0<128)break F;h=2;g=J[f+40>>2];if(d-g>>>0<128)break F; -h=3;g=J[f+44>>2];if(d-g>>>0<128)break F;h=4;g=J[f+48>>2];if(d-g>>>0<128)break F;h=5;g=J[f+52>>2];if(d-g>>>0<128)break F;h=6;g=J[f+56>>2];if(d-g>>>0<128)break F;h=7;g=J[f+60>>2];if(d-g>>>0>127)break E}i=H[f+75|0];c=i;while(1){c=(c|0)<=0?7:c-1|0;if(K[(f+c|0)+76|0]!=(h|0))continue;break}e=c+1|0;e=(e|0)!=8?e:0;if((i|0)!=(e|0))while(1){i=c;c=f+76|0;H[i+c|0]=K[c+e|0];c=e;e=c+1|0;e=(e|0)!=8?e:0;if((e|0)!=H[f+75|0])continue;break}H[(c+f|0)+76|0]=h;d=d-g|h<<8|57472;p=1;i=h;k=g;l=2;break e}e=YB(d,n+12|0);if((e| -0)<0)break h;p=1;c=H[f+75|0];i=H[(c+f|0)+76|0];c=c+1|0;H[f+75|0]=(c&255)!=8?c:0;c=i&255;k=J[n+12>>2];J[((c<<2)+f|0)+32>>2]=k;XB(f,i);d=d-k|((c<<16)+15204352|e<<8)|128;l=3;break e}if(d>>>0>57343)break j;if(d&1024)break i;c=j}if(c>>>0>=q>>>0){p=0;break a}g=L[c>>1];if((g&64512)!=56320){p=0;h=12;break b}j=c+2|0;e=0;G:{c=g+(d<<10)|0;h=c-56613888|0;H:{if(h-J[f+32>>2]>>>0<128)break H;e=1;if(h-J[f+36>>2]>>>0<128)break H;e=2;if(h-J[f+40>>2]>>>0<128)break H;e=3;if(h-J[f+44>>2]>>>0<128)break H;e=4;if(h-J[f+ -48>>2]>>>0<128)break H;e=5;if(h-J[f+52>>2]>>>0<128)break H;e=6;if(h-J[f+56>>2]>>>0<128)break H;e=7;if(h-J[f+60>>2]>>>0>127)break G}if(j>>>0>>0&L[j>>1]-13312>>>0<41984)break G;k=J[((e<<2)+f|0)+32>>2];i=H[f+75|0];d=i;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(e|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((i|0)!=(c|0))while(1){i=d;d=f+76|0;H[i+d|0]=K[c+d|0];d=c;c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=e;d=h-k|e<<8|57472;p=1;i=e;l=2;break e}I:{if(L[j>>1]!=(d& -65535)|j>>>0>=q>>>0)break I;J:{if(c-56614080>>>0<=127){k=192;J[n+12>>2]=192;e=249;break J}if(c-56614480>>>0<128){k=592;J[n+12>>2]=592;e=250;break J}if(c-56614768>>>0<128){k=880;J[n+12>>2]=880;e=251;break J}if(c-56615216>>>0<128){k=1328;J[n+12>>2]=1328;e=252;break J}if(c-56626240>>>0<128){k=12352;J[n+12>>2]=12352;e=253;break J}if(c-56626336>>>0<128){k=12448;J[n+12>>2]=12448;e=254;break J}if(c-56679264>>>0<128){k=65376;J[n+12>>2]=65376;e=255;break J}if(h>>>0<128)break I;if(!(!(c-56732672>>>0<12288| -h>>>0<13312)&(h&-16384)!=65536)){k=h&2147483520;J[n+12>>2]=k;e=h>>>7|0;break J}if((h|0)==65279|c-56671232>>>0>8175)break I;k=h&2147483520;J[n+12>>2]=k;e=c-56657920>>>7|0}c=H[f+75|0];i=K[(c+f|0)+76|0];c=c+1|0;c=(c&255)!=8?c:0;H[f+75|0]=c;J[((i<<2)+f|0)+32>>2]=k;g=c<<24>>24;d=g;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(i|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((g|0)!=(c|0))while(1){g=d;d=f+76|0;H[g+d|0]=K[c+d|0];d=c;c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]= -i;d=h-k|((e<<8)+268304384|i<<21)|-251658112;p=1;l=4;break e}d=g|d<<16}p=0;l=4;break e}d=d|15728640;break g}h=12;c=j;break b}l=2;break e}p=0;l=3;break e}d=d|917504;l=3}if((l|0)>(o|0))g=o;else{K:switch(l-2|0){case 2:H[m|0]=d>>>24;m=m+1|0;case 1:H[m|0]=d>>>16;m=m+1|0;case 0:c=d<<8|(d&65280)>>>8;H[m|0]=c;H[m+1|0]=c>>>8;m=m+2|0;break;default:break K}o=o-l|0;d=0;c=j;continue}}break}c=j}e=r+76|0;L:{M:{N:{O:{P:{j=l-g|0;switch(j-1|0){case 0:break M;case 1:break N;case 2:break O;case 3:break P;default:break L}}H[r+ -76|0]=d>>>24;e=r+77|0}H[e|0]=d>>>16;e=e+1|0}H[e|0]=d>>>8;e=e+1|0}H[e|0]=d}H[r+63|0]=j;j=d>>>(j<<3)|0;d=0;h=15;Q:switch(g-1|0){case 2:H[m|0]=j>>>16;m=m+1|0;case 1:H[m|0]=j>>>8;m=m+1|0;break;case 0:break Q;default:break b}H[m|0]=j;m=m+1|0}J[b>>2]=h}H[f+73|0]=i;H[f+72|0]=p;J[r+56>>2]=d;J[a+16>>2]=m;J[a+8>>2]=c;bc=n+16|0}function llb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;f=bc-6752|0;bc=f;c=J[J[a+4>>2]>>2];l= -f- -64|0;wc(l|4,0,2756);J[f+16>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+56>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+64>>2]=c;J[f+8>>2]=l;k=J[b+4>>2];l=J[k+84>>2];h=J[l+156>>2];r=J[h>>2];m=J[k+88>>2];i=J[m+40>>2];g=J[i+12>>2];a:{b:{if(!g){c=e>>>16&15;break b}b=J[i+4>>2];c=e>>>16&15;if((b|0)==(c|0))break a}J[i+4>>2]=c;J[i+32>>2]=J[m+36>>2];b=J[m+32>>2];J[i+24>>2]=J[m+28>>2];J[i+28>>2]=b;b=J[m+24>>2]; -J[i+16>>2]=J[m+20>>2];J[i+20>>2]=b;b=J[m+16>>2];J[i+8>>2]=J[m+12>>2];J[i+12>>2]=b;g=J[i+12>>2];b=c}J[f+6736>>2]=0;J[f+6728>>2]=g;J[f+6724>>2]=k;c=J[i+16>>2];J[f+6748>>2]=0;J[f+6744>>2]=b;J[f+6740>>2]=0;J[f+6732>>2]=c;J[f>>2]=k;b=J[k+116>>2];J[f+4>>2]=b;c:{if(!b){g=iD(k,f|4,a);if(g)break c;b=J[f+4>>2];J[k+116>>2]=b;J[k+120>>2]=1642}J[f+6704>>2]=0;g=6;if(M[b+4>>2]<=d>>>0)break c;j=d<<1;g=L[j+J[b+8>>2]>>1]&16383;c=((g<<2)+b|0)+16|0;i=J[c>>2];d:{if(i)break d;e:{f:{while(1){m=J[J[b>>2]+100>>2];n=J[(g<< -2)+247296>>2];o=J[(J[n+4>>2]<<2)+247008>>2];i=Zd(m,J[o+4>>2],f+6704|0);g=J[f+6704>>2];if(g)break c;J[i+36>>2]=b;J[i>>2]=n;g=J[o+8>>2];if(!g)break f;g=gc[g|0](i,J[b>>2])|0;J[f+6704>>2]=g;if(!g)break f;c=J[o+16>>2];if(c)gc[c|0](i);if(i)gc[J[m+8>>2]](m,i);g=J[f+6704>>2];if((g|0)!=-1)break e;g=L[j+J[b+8>>2]>>1]&16383;c=((g<<2)+b|0)+16|0;if(!J[c>>2])continue;break}g=-1;break c}J[c>>2]=i;break d}if(g)break c;i=0}b=J[J[i>>2]+4>>2];J[f+12>>2]=i;u=J[(b<<2)+247008>>2];b=J[u+12>>2];g:{if(b){gc[b|0](i,f+6724| -0);break g}b=J[f+6728>>2];J[i+4>>2]=J[f+6724>>2];J[i+8>>2]=b;J[i+28>>2]=J[f+6748>>2];b=f+6740|0;c=J[b+4>>2];J[i+20>>2]=J[b>>2];J[i+24>>2]=c;b=f+6732|0;c=J[b+4>>2];J[i+12>>2]=J[b>>2];J[i+16>>2]=c}b=J[u+24>>2];if(b){g=gc[b|0](f- -64|0,i)|0;if(g)break c}g=vo(k,d,e&-10246|10241);if(g)break c;h:{if(J[f+6744>>2]!=1)break h;b=H[J[k+128>>2]+56|0];if(K[a+21|0]|(b|0)>=0?b:0)break h;a=bc-32|0;bc=a;n=J[k+84>>2];c=J[J[k+88>>2]+40>>2];b=J[f+4>>2];J[a+28>>2]=0;J[a+24>>2]=0;g=L[b+364>>1];m=L[c+8>>1];o=L[k+68>>1]<< -16;j=td(65536E3,o);J[a+16>>2]=J[63003];e=J[63002];J[a+8>>2]=J[63001];J[a+12>>2]=e;i:{if(!L[k+68>>1])break i;e=J[J[(J[J[i>>2]+4>>2]<<2)+247008>>2]+20>>2];if(!e)break i;gc[e|0](i,a+24|0,a+28|0);e=J[a+28>>2];j:{k:{l:{if(((e|0)==J[b+368>>2]|(e|0)<=0)&(g|0)==(m|0))break l;e=td(Pc(J6(J[J[f+4>>2]+388>>2],L[k+68>>1],L[J[k+88>>2]+12>>1],e)<<16,J[c+12>>2]),j);J[b+368>>2]=J[a+28>>2];p=L[c+8>>1];J[b+376>>2]=e+32768>>16;I[b+364>>1]=p;if((g|0)==(m|0))break l;e=J[a+24>>2];break k}e=J[a+24>>2];if((e|0)<=0|J[b+372>> -2]==(e|0))break j}e=J6(J[J[f+4>>2]+388>>2],L[k+68>>1],L[J[k+88>>2]+12>>1],e)<<16;g=td(Pc(e,J[c+16>>2]),j);J[b+372>>2]=J[a+24>>2];c=L[c+8>>1];J[b+380>>2]=g+32768>>16;I[b+364>>1]=c;z=b,A=td((o-e|0)-524288|0,o),J[z+384>>2]=A}c=n+108|0;$L(c,J[b+376>>2],J[b+380>>2]);J[a+20>>2]=J[b+384>>2];uo(c,a+8|0)}bc=a+32|0}a=K[h+8|0];H[f+16|0]=a;m:{if(!a)break m;c=J[h+24>>2];a=J[h+20>>2];J[f+28>>2]=a;J[f+32>>2]=c;e=J[h+16>>2];b=J[h+12>>2];J[f+20>>2]=b;J[f+24>>2]=e;g=J[h+28>>2];k=J[h+32>>2];h=f+6712|0;J[h>>2]=a;J[h+ -4>>2]=c;J[f+6704>>2]=b;J[f+6708>>2]=e;J[f+36>>2]=g;J[f+40>>2]=k;e=6;k=f+6704|0;n:{if(!k)break n;b=J[k>>2];a=b>>31;p=J[k+12>>2];c=p>>31;m=(a^b)-a|0;g=(c^p)-c|0;o:{if(m+(g>>>8|0)>>>0<=8190){a=P(g,m)+32768>>>16|0;break o}a=m&65535;a=P(a,g>>>16|0)+P(g,m>>>16|0)+(P(a,g&65535)+32768>>>16)|0}v=b>>31|1;x=0-v|0;o=(((p|0)<0?x:v)|0)<0?0-a|0:a;b=J[k+4>>2];a=b>>31;s=J[k+8>>2];c=s>>31;h=(c^s)-c|0;c=(a^b)-a|0;p:{if((h>>>8|0)+c>>>0<=8190){a=P(c,h)+32768>>>16|0;break p}a=c&65535;a=P(a,h>>>16|0)+P(h,c>>>16|0)+(P(a, -h&65535)+32768>>>16)|0}w=b>>31|1;y=0-w|0;a=(((s|0)<0?y:w)|0)<0?0-a|0:a;if((o|0)==(a|0))break n;o=o-a|0;a=o>>31;a=(a^o)-a|0;t=a>>>17^65535;q:{if(c>>>0<=t>>>0){b=((c<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break q}b=2147483647;e=a>>>1|0;q=e+(c<<16)|0;c=(c>>>16|0)+(e>>>0>q>>>0)|0;if(c>>>0>=a>>>0)break q;j=S(c);e=32-j|0;c=q>>>e|c<>>0)/(a>>>0)|0;n=c-P(a,b)|0;c=q<>>31;e=n>>>0>=a>>>0;n=n-(e?a:0)|0;b=e|b<<1;e=31-j|0;c=c<<1}if((j|0)==31)break q;while(1){n=n<<1|c>>>31;j=n>>>0>=a>>>0;n=c>>> -30&1|n-(j?a:0)<<1;q=n>>>0>=a>>>0;n=n-(q?a:0)|0;b=b<<2|j<<1|q;c=c<<2;e=e-2|0;if(e)continue;break}}J[k+4>>2]=(((o|0)<0?y:w)|0)<0?b:0-b|0;r:{if(h>>>0<=t>>>0){b=((h<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break r}b=2147483647;e=a>>>1|0;c=e+(h<<16)|0;j=(h>>>16|0)+(c>>>0>>0)|0;if(j>>>0>=a>>>0)break r;h=S(j);e=32-h|0;j=c>>>e|j<>>0)/(a>>>0)|0;j=j-P(a,b)|0;c=c<>>31;e=j>>>0>=a>>>0;j=j-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break r;while(1){j=j<<1|c>>>31;h=j>>>0>=a>>>0;j=c>>>30& -1|j-(h?a:0)<<1;n=j>>>0>=a>>>0;j=j-(n?a:0)|0;b=n|(b<<2|h<<1);c=c<<2;e=e-2|0;if(e)continue;break}}c=b;e=0-b|0;b=s>>31|1;J[k+8>>2]=(((o|0)<0?0-b|0:b)|0)<0?c:e;s:{if(g>>>0<=t>>>0){b=((g<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break s}b=2147483647;e=a>>>1|0;c=e+(g<<16)|0;g=(g>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0)break s;h=S(g);e=32-h|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-P(a,b)|0;c=c<>>31;e=g>>>0>=a>>>0;g=g-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break s;while(1){g=g<<1|c>>>31;h= -g>>>0>=a>>>0;g=c>>>30&1|g-(h?a:0)<<1;j=g>>>0>=a>>>0;g=g-(j?a:0)|0;b=j|(b<<2|h<<1);c=c<<2;e=e-2|0;if(e)continue;break}}e=0-b|0;c=b;b=p>>31|1;J[k>>2]=(((o|0)<0?0-b|0:b)|0)<0?e:c;t:{if(m>>>0<=t>>>0){b=((m<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break t}b=2147483647;e=a>>>1|0;c=e+(m<<16)|0;g=(m>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0)break t;h=S(g);e=32-h|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-P(a,b)|0;c=c<>>31;e=g>>>0>=a>>>0;g=g-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break t;while(1){g= -g<<1|c>>>31;h=g>>>0>=a>>>0;g=c>>>30&1|g-(h?a:0)<<1;m=g>>>0>=a>>>0;g=g-(m?a:0)|0;b=m|(b<<2|h<<1);c=c<<2;e=e-2|0;if(e)continue;break}}e=0;J[k+12>>2]=(((o|0)<0?x:v)|0)<0?0-b|0:b}if(e)break m;aD(f+36|0,k)}c=7;u:{if(J[l+72>>2]!=1869968492)break u;if(K[f+16|0])Jh(l+108|0,J[f+36>>2],J[f+40>>2]);J[f+48>>2]=J[f+80>>2];J[f+44>>2]=J[f+72>>2];a=Pc(J[l+40>>2],J[f+68>>2]);J[f+56>>2]=J[f+80>>2];J[f+52>>2]=a+J[f+72>>2];c=0;if(!L[l+110>>1])break u;a=J[u+28>>2];if(a){g=gc[a|0](d,f- -64|0,r+20|0,i)|0;if(g)break c}v:{w:{if(J[f+ -6744>>2]!=1){a=J[f+120>>2];if((a|0)<=1){b=J[f+52>>2];break w}b=J[f+52>>2];if(K[f+2804|0]&4)break w;e=P(a,44);a=J[f+128>>2];g=(e+a|0)-44|0;e=J[g+8>>2];k=J[g+4>>2];h=J[a+8>>2];g=J[a+4>>2];a=h-g|0;m=(g|0)<24?a-8|0:a;a=m+32&-64;J[f+44>>2]=a;k=b-k|0;b=k+e|0;o=(k|0)<24?b+8|0:b;b=o+32&-64;J[f+52>>2]=b;if(!((a|0)<(h|0)|(g|0)<=0)){a=a+-64|0;J[f+44>>2]=a}if(!((k|0)<=0|(b|0)>(e|0))){b=b- -64|0;J[f+52>>2]=b}J[l+144>>2]=a-m;a=b-o|0;break v}a=J[f+52>>2];b=a+32&-64;J[f+52>>2]=b;e=J[f+44>>2];g=e+32&-64;J[f+44>>2]= -g;J[l+144>>2]=g-e;a=b-a|0;break v}a=(J[f+2820>>2]+b|0)+32&-64;J[f+52>>2]=a;e=J[f+44>>2];g=(e+J[f+2816>>2]|0)+32&-64;J[f+44>>2]=g;J[l+144>>2]=g-e;a=a-b|0}J[l+148>>2]=a}a=J[l+36>>2];b=J[l+48>>2];z=f,A=Pc(J[l+44>>2]-J[l+32>>2]|0,J[i+8>>2]),J[z+6696>>2]=A;z=f,A=Pc(b-a|0,J[i+12>>2]),J[z+6700>>2]=A;if(K[f+16|0]){a=f+20|0;uo(r+20|0,a);aD(f+6696|0,a)}a=J[f+44>>2];if(a)Jh(r+20|0,0-a|0,0);Pp(r+20|0,f+6704|0);a=J[f+6704>>2]&-64;J[f+6704>>2]=a;b=J[f+6716>>2]+63&-64;J[f+6716>>2]=b;e=J[f+6712>>2]+63&-64;J[f+6712>> -2]=e;g=J[f+6708>>2]&-64;J[f+6708>>2]=g;J[l+36>>2]=b;J[l+32>>2]=a;J[l+28>>2]=b-g;J[l+24>>2]=e-a;J[l+44>>2]=a+J[f+6696>>2]&-64;J[l+48>>2]=b+J[f+6700>>2]&-64;x:{y:{if(J[f+6744>>2]==1)break y;if(!(K[J[l+4>>2]+8|0]&4)){a=J[f+4>>2];if(!K[i+32|0]|(M[a+4>>2]<=d>>>0|I[J[a+8>>2]+(d<<1)>>1]>=0))break y}a=Pc(J[l+40>>2],J[i+8>>2]);J[l+144>>2]=0;J[l+148>>2]=0;J[l+40>>2]=a;break x}if(!J[l+40>>2])break x;J[l+40>>2]=J[f+52>>2]-J[f+44>>2]}a=Pc(J[l+52>>2],J[i+12>>2]);J[l+72>>2]=1869968492;J[l+52>>2]=a+32&-64;J[l+40>> -2]=J[l+40>>2]+32&-64;g=c}J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;oM(f- -64|0);bc=f+6752|0;return g|0}function opb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;o=bc-16|0;bc=o;J[o+12>>2]=0;a:{if(!(K[a+289|0]|K[a+288|0])){b=1029;Dc(a,1029,0,0);break a}if(K[a+290|0]){b=1029;Dc(a,1029,0,0);break a}if(K[a+341|0]!=8){b=1029;Dc(a,1029,0,0);break a}if(!c){b=1028;Dc(a,1028,0,0);break a}H[a+291|0]=1;b:{if(!K[a+2539|0]){f=J[a+1012>>2];if(f){f=gc[f|0](a)|0;J[a+1012>> -2]=0;if(f)break b}i=zc(40);J[i>>2]=0;f=J[a+2468>>2];J[695492]=0;g=Jp(f);f=J[695492];J[695492]=0;c:{d:{if((f|0)==1)break d;h=4;j=-1;e:{f:{if(!f)break f;m=J[695493];if(!m)break f;j=Jc(J[f>>2],i,4);if(!j)break e;cc=m}f=cc;if((j|0)!=1){J[J[a+2464>>2]>>2]=g;f=J[a+2468>>2];J[f+8>>2]=1085;J[f>>2]=1086;g=a+2464|0;i=zf(a+2568|0,1,i,4);h=cc;f=0}while(1){if(f){J[695492]=0;ha(1084,a|0,6,f|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;j=-1;g:{if(!f)break g;m=J[695493];if(!m)break g;j=Jc(J[f>>2],i,h);if(!j)break e; -cc=m}f=cc;if((j|0)==1)continue;qc(i);f=6;break c}f=J[g>>2];J[695492]=0;ca(71,f|0,80,488);f=J[695492];J[695492]=0;if((f|0)==1)break d;j=-1;h:{if(!f)break h;m=J[695493];if(!m)break h;j=Jc(J[f>>2],i,h);if(!j)break e;cc=m}f=cc;if((j|0)==1)continue;break}H[a+2539|0]=1;f=J[a+2472>>2];J[J[g>>2]+24>>2]=f;J[f+24>>2]=1087;J[f+16>>2]=1095;J[f+12>>2]=1089;J[f+8>>2]=1090;J[f+20>>2]=63;J[f>>2]=J[a+2504>>2];J[f+4>>2]=J[a+2508>>2];qc(i);f=0;break c}qc(i);ef(f,m);B()}a=Z()|0;qc(i);ba(a|0);B()}if(f)break b}g=0;p=bc- -16|0;bc=p;f=zc(40);J[f>>2]=0;k=zf(a+2568|0,1,f,4);l=cc;i:{j:{k:{l:{m:while(1){if(g){J[695492]=0;ha(1084,a|0,6,g|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;n:{if(!g)break n;f=J[695493];if(!f)break n;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue;i=6;break l}j=c;m=d;i=J[a+2512>>2];if(i){J[a+2504>>2]=J[a+2496>>2];f=i-j|0;J[a+2512>>2]=f>>>0<=i>>>0?f:0;m=(i>>>0>>0?i:0)+m|0;f=j-i|0;j=f>>>0<=j>>>0?f:0}if(j)while(1){h=J[a+2500>>2];g=J[a+2508>>2];f=J[a+2496>>2];i=J[a+2504>> -2];o:{if(f>>>0>=i>>>0){f=i;break o}if(((i+j|0)-f|0)+g>>>0<=h>>>0){f=i;break o}if(g){tc(f,i,g);h=J[a+2500>>2];f=J[a+2496>>2];g=J[a+2508>>2]}else g=0;J[a+2504>>2]=f}p:{if(g+j>>>0<=h>>>0){tc(g+f|0,m,j);f=J[a+2508>>2]+j|0;J[a+2508>>2]=f;j=0;break p}if((g|0)==(h|0)){J[695492]=0;ha(1084,a|0,13,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;q:{if(!g)break q;f=J[695493];if(!f)break q;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;i=13;break l}i=h-g|0;tc(g+f|0,m,i);f=i+J[a+2508>> -2]|0;J[a+2508>>2]=f;m=i+m|0;j=j-i|0}n=J[a+2504>>2];g=J[a+2464>>2];i=J[g+24>>2];J[i+4>>2]=f;J[i>>2]=n;r:{if(!K[a+2540|0]){J[695492]=0;i=aa(72,g|0,1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;s:{if(!g)break s;f=J[695493];if(!f)break s;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;if(i){H[a+2540|0]=1;f=J[a+2464>>2];if(!(J[f+28>>2]==J[a+316>>2]&J[f+32>>2]==J[a+320>>2])){J[695492]=0;ha(1084,a|0,1056,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;t:{if(!g)break t;f= -J[695493];if(!f)break t;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;i=1056;break l}if(J[f+40>>2]!=1){J[695492]=0;ha(1084,a|0,1056,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;u:{if(!g)break u;f=J[695493];if(!f)break u;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;i=1056;break l}J[695492]=0;n=$(1091,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;v:{if(!g)break v;f=J[695493];if(!f)break v;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)== -1)continue m;H[a+2543|0]=n;if(n&255){J[695492]=0;ha(1084,a|0,1056,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;w:{if(!g)break w;f=J[695493];if(!f)break w;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;i=1056;break l}i=J[a+2464>>2];f=J[i+28>>2];i=J[i+40>>2]==3?P(f,3):f;J[a+2528>>2]=i;f=J[a+152>>2];J[695492]=0;n=$(f|0,i|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;i=-1;x:{if(!g)break x;f=J[695493];if(!f)break x;i=Jc(J[g>>2],k,l);if(!i)break k;cc=f}g=cc;if((i|0)==1)continue m; -J[a+2524>>2]=n;if(!n){J[695492]=0;ha(1084,a|0,1,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;y:{if(!g)break y;f=J[695493];if(!f)break y;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;i=1;break l}J[a+2556>>2]=0}g=J[a+2464>>2];f=J[g+24>>2];J[a+2504>>2]=J[f>>2];J[a+2508>>2]=J[f+4>>2];if(!K[a+2540|0])break r}if(!K[a+2541|0]){if(K[a+2543|0])J[g+64>>2]=1;J[695492]=0;i=$(77,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;z:{if(!g)break z;f=J[695493];if(!f)break z;h=Jc(J[g>> -2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;if((i|0)==1)H[a+2541|0]=1;g=J[a+2464>>2];f=J[g+24>>2];J[a+2504>>2]=J[f>>2];J[a+2508>>2]=J[f+4>>2];if(!K[a+2540|0]|!K[a+2541|0])break r}J[695492]=0;i=$(1092,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;A:{if(!g)break A;f=J[695493];if(!f)break A;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;B:{if(i){f=J[a+2464>>2];if(M[f+140>>2]>=M[f+116>>2])break B}while(1){J[p+12>>2]=J[a+2524>>2];g=J[a+2464>>2];if(!(!K[a+2543|0]| -(M[g+140>>2]>2]?K[a+2542|0]:0))){H[a+2542|0]=1;f=J[g+144>>2];J[695492]=0;aa(1093,g|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;C:{if(!g)break C;f=J[695493];if(!f)break C;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;J[a+2552>>2]=0;g=J[a+2464>>2]}D:{while(1){J[695492]=0;n=ga(86,g|0,p+12|0,1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;E:{if(!g)break E;f=J[695493];if(!f)break E;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;g=J[a+2464>> -2];f=J[g+24>>2];J[a+2504>>2]=J[f>>2];J[a+2508>>2]=J[f+4>>2];f=M[g+140>>2]>2];if((n|0)<=0)break D;f=J[a+2548>>2];if(f){J[695492]=0;i=$(f|0,a|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;F:{if(!g)break F;f=J[695493];if(!f)break F;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;if(i)break l;g=J[a+2464>>2]}if(M[g+140>>2]>2])continue;break}f=0}if(!(f|!K[a+2543|0])){J[695492]=0;i=$(1094,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;G:{if(!g)break G; -f=J[695493];if(!f)break G;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;if(!i){f=J[a+2464>>2];J[695492]=0;$(1094,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;H:{if(!g)break H;f=J[695493];if(!f)break H;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m}H[a+2542|0]=0;g=J[a+2464>>2]}J[695492]=0;i=$(1092,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;I:{if(!g)break I;f=J[695493];if(!f)break I;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m; -if((n|0)<=0)break B;if(!i)continue;break}}if(!K[a+2540|0]|!K[a+2541|0])break r;f=J[a+2464>>2];J[695492]=0;i=$(1092,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;J:{if(!g)break J;f=J[695493];if(!f)break J;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;if(!i)break r;f=J[a+2464>>2];if(J[f+144>>2]!=J[f+152>>2])break r;J[695492]=0;i=$(87,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;K:{if(!g)break K;f=J[695493];if(!f)break K;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g= -cc;if((h|0)==1)continue m;if((i|0)!=1)break r;I[a+2540>>1]=0;f=J[J[a+2464>>2]+24>>2];J[a+2504>>2]=J[f>>2];f=J[f+4>>2];J[a+2508>>2]=f;if(!(f|j))break r;J[695492]=0;ha(1084,a|0,1055,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;h=-1;L:{if(!g)break L;f=J[695493];if(!f)break L;h=Jc(J[g>>2],k,l);if(!h)break k;cc=f}g=cc;if((h|0)==1)continue m;i=1055;break l}if(j)continue;break}break}i=0}qc(k);bc=p+16|0;f=i;break i}qc(k);ef(g,f);B()}a=Z()|0;qc(k);ba(a|0);B()}}J[o+12>>2]=f;f=J[o+12>>2];if(f){b=f;break a}if(!K[a+ -112|0]){b=0;break a}q=o,r=gc[J[b+4>>2]](a,b,e)|0,J[q+12>>2]=r;b=J[o+12>>2];if(b)break a;f=J[e>>2];J[f+36>>2]=c;b=0;H[f+32|0]=0;f=gc[J[a+152>>2]](c)|0;J[J[e>>2]+40>>2]=f;e=J[J[e>>2]+40>>2];if(!e){b=1;Dc(a,1,0,0);break a}tc(e,d,c)}bc=o+16|0;return b|0}function MZ(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;l=bc-416|0;bc=l;j=sk(J[f>>2]+72|0);a:{if(g){k=J[g+4>>2];g=J[g>>2];if((g|0)<=31){tc(tc(j,k,g)+g|0,2693616,32-g|0);break a}m=K[k+4|0]|K[k+5|0]<<8|(K[k+6|0]<<16|K[k+7|0]<<24);g=K[k| -0]|K[k+1|0]<<8|(K[k+2|0]<<16|K[k+3|0]<<24);H[j|0]=g;H[j+1|0]=g>>>8;H[j+2|0]=g>>>16;H[j+3|0]=g>>>24;H[j+4|0]=m;H[j+5|0]=m>>>8;H[j+6|0]=m>>>16;H[j+7|0]=m>>>24;m=K[k+28|0]|K[k+29|0]<<8|(K[k+30|0]<<16|K[k+31|0]<<24);g=K[k+24|0]|K[k+25|0]<<8|(K[k+26|0]<<16|K[k+27|0]<<24);H[j+24|0]=g;H[j+25|0]=g>>>8;H[j+26|0]=g>>>16;H[j+27|0]=g>>>24;H[j+28|0]=m;H[j+29|0]=m>>>8;H[j+30|0]=m>>>16;H[j+31|0]=m>>>24;m=K[k+20|0]|K[k+21|0]<<8|(K[k+22|0]<<16|K[k+23|0]<<24);g=K[k+16|0]|K[k+17|0]<<8|(K[k+18|0]<<16|K[k+19|0]<<24); -H[j+16|0]=g;H[j+17|0]=g>>>8;H[j+18|0]=g>>>16;H[j+19|0]=g>>>24;H[j+20|0]=m;H[j+21|0]=m>>>8;H[j+22|0]=m>>>16;H[j+23|0]=m>>>24;m=K[k+12|0]|K[k+13|0]<<8|(K[k+14|0]<<16|K[k+15|0]<<24);g=K[k+8|0]|K[k+9|0]<<8|(K[k+10|0]<<16|K[k+11|0]<<24);H[j+8|0]=g;H[j+9|0]=g>>>8;H[j+10|0]=g>>>16;H[j+11|0]=g>>>24;H[j+12|0]=m;H[j+13|0]=m>>>8;H[j+14|0]=m>>>16;H[j+15|0]=m>>>24;break a}k=J[673411];g=J[673410];H[j+24|0]=g;H[j+25|0]=g>>>8;H[j+26|0]=g>>>16;H[j+27|0]=g>>>24;H[j+28|0]=k;H[j+29|0]=k>>>8;H[j+30|0]=k>>>16;H[j+31|0]= -k>>>24;k=J[673409];g=J[673408];H[j+16|0]=g;H[j+17|0]=g>>>8;H[j+18|0]=g>>>16;H[j+19|0]=g>>>24;H[j+20|0]=k;H[j+21|0]=k>>>8;H[j+22|0]=k>>>16;H[j+23|0]=k>>>24;k=J[673407];g=J[673406];H[j+8|0]=g;H[j+9|0]=g>>>8;H[j+10|0]=g>>>16;H[j+11|0]=g>>>24;H[j+12|0]=k;H[j+13|0]=k>>>8;H[j+14|0]=k>>>16;H[j+15|0]=k>>>24;k=J[673405];g=J[673404];H[j|0]=g;H[j+1|0]=g>>>8;H[j+2|0]=g>>>16;H[j+3|0]=g>>>24;H[j+4|0]=k;H[j+5|0]=k>>>8;H[j+6|0]=k>>>16;H[j+7|0]=k>>>24}k=J[c+4>>2];g=K[k+4|0]|K[k+5|0]<<8|(K[k+6|0]<<16|K[k+7|0]<<24); -c=K[k|0]|K[k+1|0]<<8|(K[k+2|0]<<16|K[k+3|0]<<24);H[j+32|0]=c;H[j+33|0]=c>>>8;H[j+34|0]=c>>>16;H[j+35|0]=c>>>24;H[j+36|0]=g;H[j+37|0]=g>>>8;H[j+38|0]=g>>>16;H[j+39|0]=g>>>24;g=K[k+28|0]|K[k+29|0]<<8|(K[k+30|0]<<16|K[k+31|0]<<24);c=K[k+24|0]|K[k+25|0]<<8|(K[k+26|0]<<16|K[k+27|0]<<24);H[j+56|0]=c;H[j+57|0]=c>>>8;H[j+58|0]=c>>>16;H[j+59|0]=c>>>24;H[j+60|0]=g;H[j+61|0]=g>>>8;H[j+62|0]=g>>>16;H[j+63|0]=g>>>24;g=K[k+20|0]|K[k+21|0]<<8|(K[k+22|0]<<16|K[k+23|0]<<24);c=K[k+16|0]|K[k+17|0]<<8|(K[k+18|0]<<16| -K[k+19|0]<<24);H[j+48|0]=c;H[j+49|0]=c>>>8;H[j+50|0]=c>>>16;H[j+51|0]=c>>>24;H[j+52|0]=g;H[j+53|0]=g>>>8;H[j+54|0]=g>>>16;H[j+55|0]=g>>>24;g=K[k+12|0]|K[k+13|0]<<8|(K[k+14|0]<<16|K[k+15|0]<<24);c=K[k+8|0]|K[k+9|0]<<8|(K[k+10|0]<<16|K[k+11|0]<<24);H[j+40|0]=c;H[j+41|0]=c>>>8;H[j+42|0]=c>>>16;H[j+43|0]=c>>>24;H[j+44|0]=g;H[j+45|0]=g>>>8;H[j+46|0]=g>>>16;H[j+47|0]=g>>>24;H[j+64|0]=e;H[j+65|0]=e>>>8;H[j+66|0]=e>>>16;H[j+67|0]=e>>>24;tc(j+68|0,J[f+4>>2],J[f>>2]);e=J[f>>2];c=e+68|0;g=0;if(!i){H[c+j|0]= -255;c=e+j|0;H[c+71|0]=255;H[c+69|0]=255;H[c+70|0]=255;c=e+72|0}if((c|0)>=0){J[l+96>>2]=0;J[l+100>>2]=0;J[l+24>>2]=-1732584194;J[l+28>>2]=271733878;J[l+16>>2]=1732584193;J[l+20>>2]=-271733879;k=j;e=c;if(c>>>0>=64){i=l+32|0;while(1){m=g+i|0;g=64-g|0;tc(m,k,g);J[l+96>>2]=64;k=g+k|0;jp(l+16|0);e=e-g|0;g=J[l+96>>2];if((e+g|0)>63)continue;break}}if((e|0)>0){tc((g+l|0)+32|0,k,e);J[l+96>>2]=J[l+96>>2]+e}J[l+100>>2]=J[l+100>>2]+c;Tq(l+16|0);e=J[l+116>>2];c=J[l+112>>2];H[h+8|0]=c;H[h+9|0]=c>>>8;H[h+10|0]=c>>> -16;H[h+11|0]=c>>>24;H[h+12|0]=e;H[h+13|0]=e>>>8;H[h+14|0]=e>>>16;H[h+15|0]=e>>>24;e=J[l+108>>2];c=J[l+104>>2];H[h|0]=c;H[h+1|0]=c>>>8;H[h+2|0]=c>>>16;H[h+3|0]=c>>>24;H[h+4|0]=e;H[h+5|0]=e>>>8;H[h+6|0]=e>>>16;H[h+7|0]=e>>>24}k=0;g=0;b:{c:switch(a-2|0){case 1:c=0;if((b|0)>=0){i=l+32|0;a=b>>>0<64;while(1){J[l+96>>2]=0;J[l+100>>2]=0;J[l+24>>2]=-1732584194;J[l+28>>2]=271733878;J[l+16>>2]=1732584193;J[l+20>>2]=-271733879;g=0;k=h;e=b;if(!a)while(1){m=g+i|0;g=64-g|0;tc(m,k,g);J[l+96>>2]=64;k=g+k|0;jp(l+16| -0);e=e-g|0;g=J[l+96>>2];if((e+g|0)>63)continue;break}if((e|0)>0){tc(g+i|0,k,e);J[l+96>>2]=J[l+96>>2]+e}J[l+100>>2]=J[l+100>>2]+b;Tq(l+16|0);g=K[l+116|0]|K[l+117|0]<<8|(K[l+118|0]<<16|K[l+119|0]<<24);e=K[l+112|0]|K[l+113|0]<<8|(K[l+114|0]<<16|K[l+115|0]<<24);H[h+8|0]=e;H[h+9|0]=e>>>8;H[h+10|0]=e>>>16;H[h+11|0]=e>>>24;H[h+12|0]=g;H[h+13|0]=g>>>8;H[h+14|0]=g>>>16;H[h+15|0]=g>>>24;g=K[l+108|0]|K[l+109|0]<<8|(K[l+110|0]<<16|K[l+111|0]<<24);e=K[l+104|0]|K[l+105|0]<<8|(K[l+106|0]<<16|K[l+107|0]<<24);H[h| -0]=e;H[h+1|0]=e>>>8;H[h+2|0]=e>>>16;H[h+3|0]=e>>>24;H[h+4|0]=g;H[h+5|0]=g>>>8;H[h+6|0]=g>>>16;H[h+7|0]=g>>>24;c=c+1|0;if((c|0)!=50)continue;break}}q=j+32|0;c=J[d+4>>2];a=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);J[l+296>>2]=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);J[l+300>>2]=a;a=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);J[l+288>>2]=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);J[l+292>>2]=a;a=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);J[l+272>>2]=K[c| -0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[l+276>>2]=a;a=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);J[l+280>>2]=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);J[l+284>>2]=a;r=b&-4;p=b&3;g=19;s=(b|0)<=0;m=b>>>0<4;while(1){c=g;d:{if(s)break d;k=0;g=0;i=0;if(!m)while(1){H[g+l|0]=c^K[g+h|0];a=g|1;H[a+l|0]=c^K[a+h|0];a=g|2;H[a+l|0]=c^K[a+h|0];a=g|3;H[a+l|0]=c^K[a+h|0];g=g+4|0;i=i+4|0;if((r|0)!=(i|0))continue;break}if(!p)break d;while(1){H[g+l|0]=c^K[g+h|0];g=g+1|0;k=k+1|0;if((p|0)!=(k| -0))continue;break}}k=0;g=0;while(1){d=l+16|0;H[d+g|0]=g;a=g|1;H[a+d|0]=a;a=g|2;H[a+d|0]=a;a=g|3;H[a+d|0]=a;a=g|4;H[a+d|0]=a;a=g|5;H[a+d|0]=a;a=g|6;H[a+d|0]=a;a=g|7;H[a+d|0]=a;g=g+8|0;if((g|0)!=256)continue;break}g=0;i=0;while(1){e=l+16|0;d=e+k|0;a=K[d|0];g=g&255;i=a+(K[g+l|0]+(i&255)|0)|0;e=(i&255)+e|0;H[d|0]=K[e|0];H[e|0]=a;g=(g+1|0)%(b|0)|0;k=k+1|0;if((k|0)!=256)continue;break}g=0;e=0;while(1){a=g+1|0;n=l+16|0;i=a+n|0;o=K[i|0];e=o+e|0;d=(e&255)+n|0;k=K[d|0];H[i|0]=k;H[d|0]=o;d=(l+272|0)+g|0;H[d| -0]=K[n+(k+o&255)|0]^K[d|0];g=a;if((g|0)!=32)continue;break}g=c-1|0;if(c)continue;break}g=0;b=J[673411];a=J[673410];H[j+24|0]=a;H[j+25|0]=a>>>8;H[j+26|0]=a>>>16;H[j+27|0]=a>>>24;H[j+28|0]=b;H[j+29|0]=b>>>8;H[j+30|0]=b>>>16;H[j+31|0]=b>>>24;b=J[673409];a=J[673408];H[j+16|0]=a;H[j+17|0]=a>>>8;H[j+18|0]=a>>>16;H[j+19|0]=a>>>24;H[j+20|0]=b;H[j+21|0]=b>>>8;H[j+22|0]=b>>>16;H[j+23|0]=b>>>24;b=J[673407];a=J[673406];H[j+8|0]=a;H[j+9|0]=a>>>8;H[j+10|0]=a>>>16;H[j+11|0]=a>>>24;H[j+12|0]=b;H[j+13|0]=b>>>8;H[j+ -14|0]=b>>>16;H[j+15|0]=b>>>24;b=J[673405];a=J[673404];H[j|0]=a;H[j+1|0]=a>>>8;H[j+2|0]=a>>>16;H[j+3|0]=a>>>24;H[j+4|0]=b;H[j+5|0]=b>>>8;H[j+6|0]=b>>>16;H[j+7|0]=b>>>24;tc(q,J[f+4>>2],J[f>>2]);a=J[f>>2];if((a|0)>=-32){J[l+392>>2]=0;J[l+396>>2]=0;J[l+320>>2]=-1732584194;J[l+324>>2]=271733878;J[l+312>>2]=1732584193;J[l+316>>2]=-271733879;k=j;b=a+32|0;e=b;if(e>>>0>=64){a=l+328|0;while(1){c=64-g|0;tc(a+g|0,k,c);J[l+392>>2]=64;k=c+k|0;jp(l+312|0);e=e-c|0;g=J[l+392>>2];if((e+g|0)>63)continue;break}}if((e| -0)>0){tc((g+l|0)+328|0,k,e);J[l+392>>2]=J[l+392>>2]+e}J[l+396>>2]=b+J[l+396>>2];Tq(l+312|0);b=J[l+412>>2];a=J[l+408>>2];H[j+8|0]=a;H[j+9|0]=a>>>8;H[j+10|0]=a>>>16;H[j+11|0]=a>>>24;H[j+12|0]=b;H[j+13|0]=b>>>8;H[j+14|0]=b>>>16;H[j+15|0]=b>>>24;b=J[l+404>>2];a=J[l+400>>2];H[j|0]=a;H[j+1|0]=a>>>8;H[j+2|0]=a>>>16;H[j+3|0]=a>>>24;H[j+4|0]=b;H[j+5|0]=b>>>8;H[j+6|0]=b>>>16;H[j+7|0]=b>>>24}k=!Wc(l+272|0,j,16);break b;case 0:break c;default:break b}while(1){c=l+16|0;H[c+g|0]=g;a=g|1;H[a+c|0]=a;a=g|2;H[a+c| -0]=a;a=g|3;H[a+c|0]=a;a=g|4;H[a+c|0]=a;a=g|5;H[a+c|0]=a;a=g|6;H[a+c|0]=a;a=g|7;H[a+c|0]=a;g=g+8|0;if((g|0)!=256)continue;break}g=0;i=0;while(1){e=l+16|0;c=e+k|0;a=K[c|0];f=g&255;i=a+(K[f+h|0]+(i&255)|0)|0;e=(i&255)+e|0;H[c|0]=K[e|0];H[e|0]=a;g=(f+1|0)%(b|0)|0;k=k+1|0;if((k|0)!=256)continue;break}f=J[d+4>>2];g=0;e=0;while(1){d=K[f+g|0];a=g+1|0;k=l+16|0;c=a+k|0;i=K[c|0];e=i+e|0;b=(e&255)+k|0;h=K[b|0];H[c|0]=h;H[b|0]=i;b=l+272|0;H[b+g|0]=d^K[k+(h+i&255)|0];g=a;if((g|0)!=32)continue;break}k=!Wc(b,2693616, -32)}Gc(j);bc=l+416|0;return k}function UVa(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;e=bc-80|0;bc=e;J[e+64>>2]=13;J[e+56>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;d=J[b+8>>2];J[695492]=0;d=ha(3203,d|0,777246,e- -64|0,0)|0;c=J[695492];J[695492]=0;a:{b:{if((c|0)==1)break b;if(J[d>>2]==4){J[695492]=0;aa(2808,e+48|0,J[e+72>>2])|0;d=J[695492];J[695492]=0;if((d|0)==1)break b}J[695492]=0;_(3205,e- -64|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;i=aa(3277,b|0,0)|0;d=J[695492]; -J[695492]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{if((d|0)!=1){if(!i){d=0;break d}d=J[J[i>>2]+12>>2];J[695492]=0;d=$(d|0,i|0)|0;c=J[695492];J[695492]=0;l:{m:{n:{o:{p:{q:{if((c|0)!=1)switch(d|0){case 1:case 2:case 5:case 7:break j;case 8:break m;case 6:break n;case 4:break o;case 3:break p;case 0:break q;default:break k}c=Z()|0;break a}k=J[i+8>>2];r:{if(k){d=J[a+28>>2];J[695492]=0;c=aa(3278,d|0,k|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break r;c=Z()|0;break a}c=J[i+4>>2]}if(!c)break j;J[695492]=0;d=$(4,72)| -0;g=J[695492];J[695492]=0;if((g|0)==1)break l;g=wc(d,0,72);J[g>>2]=840472;s:{if(J[c+4>>2]){f=J[a+28>>2];h=J[c+12>>2];j=J[c+8>>2];J[695492]=0;f=ga(3279,f|0,j|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break s;c=Z()|0;break a}f=J[c+8>>2]}J[g+20>>2]=f-1;h=J[c>>2];H[g+64|0]=h;j=J[a+28>>2];J[695492]=0;j=aa(3280,j|0,f|0)|0;f=J[695492];J[695492]=0;t:{u:{if((f|0)!=1){f=h&255;if(f>>>0>7)break t;h=J[j+12>>2];l=O[h+56>>3];m=O[h+32>>3];if(1<>3]=O[c+16>>3]-m;O[g+40>> -3]=l-O[c+40>>3];O[g+48>>3]=O[c+32>>3]-m;O[g+56>>3]=l-O[c+24>>3];break t}c=Z()|0;break a}f=0;J[g+24>>2]=0;if(J[c+56>>2]){J[g+24>>2]=1;O[g+32>>3]=O[c+16>>3]-m;f=1}if(J[c+60>>2]){f=f|2;J[g+24>>2]=f;O[g+40>>3]=l-O[c+40>>3]}if(!J[c+64>>2])break t;l=O[c+48>>3];if(l==0)break t;O[g+48>>3]=l;J[g+24>>2]=f|4}if(!k)break f;qc(c);break f}J[695492]=0;d=$(4,32)|0;c=J[695492];J[695492]=0;v:{w:{x:{if((c|0)!=1){J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=840532;J[d+28>>2]=0;J[d+ -20>>2]=0;J[d+24>>2]=0;J[695492]=0;g=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break x;c=J[i+4>>2];J[695492]=0;c=aa(3187,g|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break w;g=J[c+4>>2];f=J[c>>2];J[695492]=0;ca(3281,e+32|0,f|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break v;f=J[e+36>>2];g=d+20|0;J[g>>2]=J[e+32>>2];J[g+4>>2]=f;J[d+28>>2]=J[e+40>>2];qc(dd(c));break f}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;qc(g);break a}c=Z()|0;break a}J[695492]=0;d=$(4,32)|0;c=J[695492];J[695492]=0;y:{z:{A:{if((c| -0)!=1){J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=840592;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[695492]=0;g=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break A;c=J[i+4>>2];J[695492]=0;c=aa(3187,g|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break z;g=J[c+4>>2];f=J[c>>2];J[695492]=0;ca(3281,e+32|0,f|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break y;f=J[e+36>>2];g=d+20|0;J[g>>2]=J[e+32>>2];J[g+4>>2]=f;J[d+28>>2]=J[e+40>>2];qc(dd(c));break f}c=Z()|0;break a}c= -Z()|0;break a}c=Z()|0;qc(g);break a}c=Z()|0;break a}J[695492]=0;d=$(4,32)|0;c=J[695492];J[695492]=0;B:{C:{D:{if((c|0)!=1){J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=840652;J[d+28>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[695492]=0;g=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break D;c=J[i+4>>2];J[695492]=0;c=aa(3187,g|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break C;g=J[c+4>>2];f=J[c>>2];J[695492]=0;ca(3281,e+32|0,f|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break B; -f=J[e+36>>2];g=d+20|0;J[g>>2]=J[e+32>>2];J[g+4>>2]=f;J[d+28>>2]=J[e+40>>2];qc(dd(c));break f}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;qc(g);break a}c=Z()|0;break a}J[695492]=0;d=$(4,36)|0;g=J[695492];J[695492]=0;c=1;if((g|0)!=1){J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+32>>2]=0;J[d>>2]=840716;H[d+20|0]=J[i+24>>2]!=0;c=J[i+8>>2]==6?J[J[i+16>>2]+12>>2]:c;J[695492]=0;J[e+32>>2]=13;aa(3282,i+8|0,e+32|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){k= -d+24|0;h=(c|0)<=1?1:c;g=0;while(1){if(J[i+8>>2]==6){J[695492]=0;c=e+32|0;_(3205,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break g;f=J[i+16>>2];J[695492]=0;ha(3283,f|0,g|0,c|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g}E:{F:{G:switch(J[e+32>>2]-3|0){case 0:J[695492]=0;f=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;c=aa(3187,f|0,J[e+40>>2])|0;j=J[695492];J[695492]=0;if((j|0)!=1)break F;c=Z()|0;qc(f);break a;case 4:break G;default:break E}J[695492]=0;c=$(3284,e+32|0)|0;f=J[695492]; -J[695492]=0;if((f|0)==1)break g;if(!c)break E}f=J[c+4>>2];j=J[c>>2];J[695492]=0;ca(3281,e+16|0,j|0,f|0);f=J[695492];J[695492]=0;H:{I:{J:{K:{if((f|0)!=1){f=J[d+28>>2];if((f|0)!=J[d+32>>2]){if(H[e+27|0]>=0){j=J[e+20>>2];J[f>>2]=J[e+16>>2];J[f+4>>2]=j;J[f+8>>2]=J[e+24>>2];break I}J[695492]=0;ca(2672,f|0,J[e+16>>2],J[e+20>>2]);j=J[695492];J[695492]=0;if((j|0)!=1)break I;c=Z()|0;J[d+28>>2]=f;break J}J[695492]=0;da(3285,k|0,e+16|0);f=J[695492];J[695492]=0;if((f|0)==1)break K;break H}c=Z()|0;break a}c=Z()| -0}if(H[e+27|0]>=0)break a;qc(J[e+16>>2]);break a}J[d+28>>2]=f+12}qc(dd(c));if(H[e+27|0]>=0)break E;qc(J[e+16>>2])}g=g+1|0;if((h|0)!=(g|0))continue;break}J[695492]=0;_(3205,e+32|0);c=J[695492];J[695492]=0;if((c|0)!=1)break f}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}c=K[e+59|0];d=c<<24>>24<0;if(((d?J[e+52>>2]:c)|0)!=9)break j;if(Wc(d?J[e+48>>2]:e+48|0,778139,9))break j;J[695492]=0;d=$(4,36)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[d+4>>2]=0;J[d+8>>2]=0;J[d+20>>2]=0;J[d+ -24>>2]=0;J[d>>2]=840408;J[d+12>>2]=0;J[d+16>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;J[e+32>>2]=13;c=J[b+8>>2];J[695492]=0;c=ha(3203,c|0,779312,e+32|0,0)|0;g=J[695492];J[695492]=0;L:{if((g|0)==1)break L;if(J[c>>2]==1)J[d+20>>2]=J[e+40>>2];J[695492]=0;c=e+32|0;_(3205,c|0);g=J[695492];J[695492]=0;if((g|0)==1)break L;g=J[b+8>>2];J[695492]=0;c=ha(3203,g|0,780425,c|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break L;M:{if(J[c>>2]!=6)break M;c=J[e+40>>2];if(J[c+12>>2]<=0)break M;k=d+24|0;g=0;while(1){J[695492]=0; -J[e+16>>2]=13;ha(3283,c|0,g|0,e+16|0,0)|0;c=J[695492];J[695492]=0;N:{O:{P:{if((c|0)!=1){Q:switch(J[e+16>>2]-3|0){case 4:break P;case 0:break Q;default:break N}J[695492]=0;f=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;J[695492]=0;c=aa(3187,f|0,J[e+24>>2])|0;h=J[695492];J[695492]=0;if((h|0)!=1)break O;c=Z()|0;qc(f);break a}c=Z()|0;break a}J[695492]=0;c=$(3284,e+16|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(!c)break N}f=J[c+4>>2];h=J[c>>2];J[695492]=0;ca(3281,e+4|0,h|0,f|0);f=J[695492]; -J[695492]=0;R:{S:{T:{U:{if((f|0)!=1){f=J[d+28>>2];if((f|0)!=J[d+32>>2]){if(H[e+15|0]>=0){h=J[e+8>>2];J[f>>2]=J[e+4>>2];J[f+4>>2]=h;J[f+8>>2]=J[e+12>>2];break S}J[695492]=0;ca(2672,f|0,J[e+4>>2],J[e+8>>2]);h=J[695492];J[695492]=0;if((h|0)!=1)break S;c=Z()|0;J[d+28>>2]=f;break T}J[695492]=0;da(3285,k|0,e+4|0);f=J[695492];J[695492]=0;if((f|0)==1)break U;break R}c=Z()|0;break a}c=Z()|0}if(H[e+15|0]>=0)break a;qc(J[e+4>>2]);break a}J[d+28>>2]=f+12}qc(dd(c));if(H[e+15|0]>=0)break N;qc(J[e+4>>2])}J[695492]= -0;_(3205,e+16|0);c=J[695492];J[695492]=0;if((c|0)==1)break i;g=g+1|0;c=J[e+40>>2];if((g|0)>2])continue;break}}J[695492]=0;_(3205,e+32|0);c=J[695492];J[695492]=0;if((c|0)!=1)break f}c=Z()|0;break a}J[e+32>>2]=13;d=0;break e}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;break a}J[d+16>>2]=0;J[e+32>>2]=13;b=J[b+8>>2];J[695492]=0;c=b;b=e+32|0;c=ha(3203,c|0,781392,b|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;if(J[c>>2]!=7)break e;J[695492]=0;a=aa(3286,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b| -0)==1)break c;J[d+16>>2]=a}J[695492]=0;_(3205,e+32|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;gc[J[J[i>>2]+4>>2]](i)}if(H[e+59|0]<0)qc(J[e+48>>2]);bc=e+80|0;return d|0}c=Z()|0;break a}c=Z()|0}if(H[e+59|0]<0)qc(J[e+48>>2]);ba(c|0);B()}function T1a(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;e=-1;h=c+1|0;h=rc(h>>>0>1073741823?-1:h<<2);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(d-128|0){default:switch(d|0){case 0:break n;case 2:break i;default:break h}case 35:if((c|0)<= -0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+418400>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+418400>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+418400>>1];J[d>>2]=b;break a;case 58:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+417952>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+417952>> -1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+417952>>1];J[d>>2]=b;break a;case 50:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+417504>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+417504>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+417504>>1];J[d>>2]=b;break a; -case 49:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+417056>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+417056>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+417056>>1];J[d>>2]=b;break a;case 34:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+416608>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d= -L[(d<<1)+416608>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+416608>>1];J[d>>2]=b;break a;case 127:break j;case 94:break k;case 110:break l;case 76:break m;case 33:break o;case 6:break c;case 1:break d;case 8:break e;case 2:break f;case 0:break g;case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:break h}if((c| -0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+416160>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+416160>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+416160>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+415712>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+415712>>1]; -J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+415712>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+415264>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+415264>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+415264>>1];J[d>>2]=b;break a}if((c|0)<= -0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+414816>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+414816>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+414816>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+414368>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+414368>>1];J[h+ -(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+414368>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+413920>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+413920>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+413920>>1];J[d>>2]=b;break a}if((c|0)<=0)break a; +2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+108>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;f=L[j+110>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2];J[i+12>>2]=e+2;if(J[d+16>>2]>=2){f=L[j+112>>1];H[e+2|0]=f;H[e+3|0]=f>>>8;e=J[i+12>>2]+2|0;J[i+12>>2]=e;e=e-m|0;H[m|0]=e;H[m+1|0]=e>>>8;H[m+2|0]=e>>>16;H[m+3|0]=e>>>24}if(H[g+35|0]<0)uc(J[g+24>>2]);fc=g+48|0;h=h+4|0;if((h|0)!=J[a+12>>2])continue;break}m=J[i+12>>2]}J[b>>2]=n;J[c>>2]=m-n;fc=i+16|0}function HXa(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;e=fc-288|0;fc=e;f=eq(a,b,c,d);J[f>>2]=837788;J[e+272>>2]=13;J[e+256>>2]=13;a=J[b+24>>2];J[699344]=0;ha(3372,c|0,a|0,e+272|0,0)|0;a=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((a|0)==1)break e;J[699344]=0;a=ha(3368,J[e+280>>2],832797,e+256|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;if(!(J[a>>2]|!J[e+264>>2]))J[f+8>>2]=J[f+8>>2]|32768;J[699344]=0;a=e+256|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;H[f+228|0]=10;J[f+8>>2]= +J[f+8>>2]|65536;J[699344]=0;a=ha(3368,J[e+280>>2],833287,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;f:{if(J[a>>2]!=4)break f;g:{h:{i:{c=J[e+264>>2];a=Yc(c);if(a>>>0>=2147483632){J[699344]=0;$(3030,e+244|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;B()}j:{if(a>>>0<=10){H[e+255|0]=a;b=e+244|0;break j}J[699344]=0;d=(a|15)+1|0;b=_(4,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i;J[e+244>>2]=b;J[e+248>>2]=a;J[e+252>>2]=d|-2147483648}n=cd(b,c,a)+a|0,o=0,H[n|0]=o;H[e+24|0]=K[833412];H[e+ +40|0]=K[833882];I[e+48>>1]=K[787190]|K[787191]<<8;H[e+31|0]=5;J[e+20>>2]=K[833408]|K[833409]<<8|(K[833410]<<16|K[833411]<<24);H[e+43|0]=9;H[e+25|0]=0;a=K[833878]|K[833879]<<8|(K[833880]<<16|K[833881]<<24);J[e+32>>2]=K[833874]|K[833875]<<8|(K[833876]<<16|K[833877]<<24);J[e+36>>2]=a;H[e+55|0]=6;H[e+41|0]=0;J[e+44>>2]=K[787186]|K[787187]<<8|(K[787188]<<16|K[787189]<<24);H[e+50|0]=0;H[e+67|0]=7;H[e+96|0]=0;a=K[834053]|K[834054]<<8|(K[834055]<<16|K[834056]<<24);H[e+59|0]=a;H[e+60|0]=a>>>8;H[e+61|0]=a>>> +16;H[e+62|0]=a>>>24;H[e+72|0]=K[834381];I[e+88>>1]=K[834674]|K[834675]<<8;H[e+79|0]=5;H[e+63|0]=0;I[e+90>>1]=2560;H[e+73|0]=0;H[e+103|0]=4;H[e+115|0]=6;J[e+92>>2]=1886152008;J[e+56>>2]=K[834050]|K[834051]<<8|(K[834052]<<16|K[834053]<<24);J[e+68>>2]=K[834377]|K[834378]<<8|(K[834379]<<16|K[834380]<<24);a=K[834670]|K[834671]<<8|(K[834672]<<16|K[834673]<<24);J[e+80>>2]=K[834666]|K[834667]<<8|(K[834668]<<16|K[834669]<<24);J[e+84>>2]=a;I[e+108>>1]=K[835253]|K[835254]<<8;H[e+118|0]=K[835490];H[e+127|0]= +3;H[e+110|0]=0;H[e+119|0]=0;J[e+104>>2]=K[835249]|K[835250]<<8|(K[835251]<<16|K[835252]<<24);I[e+116>>1]=K[835488]|K[835489]<<8;J[699344]=0;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=e+128|0;break c}J[e+132>>2]=12;J[e+136>>2]=-2147483632;J[e+128>>2]=a;b=K[835764]|K[835765]<<8|(K[835766]<<16|K[835767]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[835760]|K[835761]<<8|(K[835762]<<16|K[835763]<<24);c=K[835756]|K[835757]<<8|(K[835758]<<16|K[835759]<<24);H[a|0]=c;H[a+1|0]= +c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]=0;H[e+144|0]=0;H[e+160|0]=K[837841];H[e+163|0]=9;J[e+140>>2]=1702129486;a=K[837837]|K[837838]<<8|(K[837839]<<16|K[837840]<<24);J[e+152>>2]=K[837833]|K[837834]<<8|(K[837835]<<16|K[837836]<<24);J[e+156>>2]=a;I[e+174>>1]=2560;H[e+161|0]=0;H[e+151|0]=4;I[e+172>>1]=K[838028]|K[838029]<<8;J[699344]=0;a=K[838024]|K[838025]<<8|(K[838026]<<16|K[838027]<<24);J[e+164>>2]=K[838020]|K[838021]<<8|(K[838022]<< +16|K[838023]<<24);J[e+168>>2]=a;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=e+176|0;break c}J[e+180>>2]=12;J[e+184>>2]=-2147483632;J[e+176>>2]=a;b=K[838283]|K[838284]<<8|(K[838285]<<16|K[838286]<<24);H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;b=K[838279]|K[838280]<<8|(K[838281]<<16|K[838282]<<24);c=K[838275]|K[838276]<<8|(K[838277]<<16|K[838278]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+12|0]= +0;H[e+192|0]=0;a=K[838590]|K[838591]<<8|(K[838592]<<16|K[838593]<<24);H[e+203|0]=a;H[e+204|0]=a>>>8;H[e+205|0]=a>>>16;H[e+206|0]=a>>>24;H[e+211|0]=7;J[e+188>>2]=1918989395;J[e+200>>2]=K[838587]|K[838588]<<8|(K[838589]<<16|K[838590]<<24);H[e+207|0]=0;J[699344]=0;H[e+199|0]=4;a=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=e+212|0;break c}J[e+216>>2]=11;J[e+220>>2]=-2147483632;J[e+212>>2]=a;b=K[838805]|K[838806]<<8|(K[838807]<<16|K[838808]<<24);H[a+7|0]=b;H[a+8|0]=b>>>8;H[a+9|0]=b>>>16;H[a+10|0]= +b>>>24;b=K[838802]|K[838803]<<8|(K[838804]<<16|K[838805]<<24);c=K[838798]|K[838799]<<8|(K[838800]<<16|K[838801]<<24);H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;H[a+4|0]=b;H[a+5|0]=b>>>8;H[a+6|0]=b>>>16;H[a+7|0]=b>>>24;H[a+11|0]=0;J[e+228>>2]=17;J[699344]=0;J[e+224>>2]=e+20;a=J[e+228>>2];J[e+8>>2]=J[e+224>>2];J[e+12>>2]=a;i=aa(3504,e+232|0,e+8|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){if(H[e+223|0]<0)uc(J[e+212>>2]);if(H[e+211|0]<0)uc(J[e+200>>2]);if(H[e+199|0]<0)uc(J[e+188>>2]);if(H[e+ +187|0]<0)uc(J[e+176>>2]);if(H[e+175|0]<0)uc(J[e+164>>2]);if(H[e+163|0]<0)uc(J[e+152>>2]);if(H[e+151|0]<0)uc(J[e+140>>2]);if(H[e+139|0]<0)uc(J[e+128>>2]);if(H[e+127|0]<0)uc(J[e+116>>2]);if(H[e+115|0]<0)uc(J[e+104>>2]);if(H[e+103|0]<0)uc(J[e+92>>2]);if(H[e+91|0]<0)uc(J[e+80>>2]);if(H[e+79|0]<0)uc(J[e+68>>2]);if(H[e+67|0]<0)uc(J[e+56>>2]);if(H[e+55|0]<0)uc(J[e+44>>2]);if(H[e+43|0]<0)uc(J[e+32>>2]);if(H[e+31|0]<0)uc(J[e+20>>2]);d=J[i+4>>2];h=J[i>>2];g=h;j=(d|0)==(g|0);if(j)break h;b=K[e+255|0];a=b<<24>> +24<0;m=a?J[e+248>>2]:b;k=a?J[e+244>>2]:e+244|0;while(1){a=K[g+11|0];l=a<<24>>24;b=(l|0)<0;c=J[g+4>>2];k:{if(((b?c:a)|0)!=(m|0))break k;if(!b){c=k;b=g;if(!l)break h;while(1){if(K[b|0]!=K[c|0])break k;c=c+1|0;b=b+1|0;a=a-1|0;if(a)continue;break}break h}if(!c)break h;if(!dd(J[g>>2],k,c))break h}g=g+12|0;if((g|0)!=(d|0))continue;break}break g}d=Z()|0;if(H[e+223|0]<0)uc(J[e+212>>2]);if(H[e+211|0]<0)uc(J[e+200>>2]);if(H[e+199|0]<0)uc(J[e+188>>2]);if(H[e+187|0]<0)uc(J[e+176>>2]);if(H[e+175|0]<0)uc(J[e+164>> +2]);if(H[e+163|0]<0)uc(J[e+152>>2]);if(H[e+151|0]<0)uc(J[e+140>>2]);if(H[e+139|0]<0)uc(J[e+128>>2]);if(H[e+127|0]<0)uc(J[e+116>>2]);if(H[e+115|0]<0)uc(J[e+104>>2]);if(H[e+103|0]<0)uc(J[e+92>>2]);if(H[e+91|0]<0)uc(J[e+80>>2]);if(H[e+79|0]<0)uc(J[e+68>>2]);if(H[e+67|0]<0)uc(J[e+56>>2]);if(H[e+55|0]<0)uc(J[e+44>>2]);if(H[e+43|0]<0)uc(J[e+32>>2]);if(H[e+31|0]>=0)break b;uc(J[e+20>>2]);break b}d=Z()|0;break a}if((d|0)==(g|0))break g;H[f+228|0]=(g-h|0)/12}if(h){c=h;if(!j){while(1){a=d-12|0;if(H[d-1|0]< +0)uc(J[a>>2]);d=a;if((a|0)!=(h|0))continue;break}c=J[i>>2]}J[i+4>>2]=h;uc(c)}if(H[e+255|0]>=0)break f;uc(J[e+244>>2])}J[699344]=0;a=e+256|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;a=ha(3368,J[e+280>>2],839027,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;l:{if(J[a>>2]!=3)break l;J[f+8>>2]=J[f+8>>2]|131072;J[699344]=0;b=_(4,12)|0;a=J[699344];J[699344]=0;m:{n:{if((a|0)!=1){J[699344]=0;a=aa(3354,b|0,J[e+264>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;b=J[a+4>> +2];c=J[a>>2];J[699344]=0;d=e+20|0;ca(3447,d|0,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break m;uc(ld(a));H[f+230|0]=1;b=K[e+31|0];a=b<<24>>24;c=b;b=(a|0)<0;o:{if(((b?J[e+24>>2]:c)|0)!=6)break o;if(dd(b?J[e+20>>2]:d,839267,6))break o;H[f+230|0]=0}if((a|0)>=0)break l;uc(J[e+20>>2]);break l}d=Z()|0;break a}d=Z()|0;uc(b);break a}d=Z()|0;break a}J[699344]=0;a=e+256|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;a=ha(3368,J[e+280>>2],839453,a|0,0)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break e;p:{if(J[a>>2]!=3)break p;J[f+8>>2]=J[f+8>>2]|262144;J[699344]=0;b=_(4,12)|0;a=J[699344];J[699344]=0;q:{r:{s:{t:{u:{v:{w:{x:{if((a|0)!=1){J[699344]=0;a=aa(3354,b|0,J[e+264>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break x;b=J[a+4>>2];c=J[a>>2];J[699344]=0;ca(3447,e+20|0,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break w;uc(ld(a));H[f+229|0]=6;b=K[e+31|0];a=b<<24>>24;switch(((a|0)<0?J[e+24>>2]:b)-6|0){case 0:break t;case 3:break u;case 2:break v;default:break s}}d=Z()|0;break a}d=Z()| +0;uc(b);break a}d=Z()|0;break a}a=(a|0)<0?J[e+20>>2]:e+20|0;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))==1634561621&(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))==1684368242){c=1;break r}if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))==1701012289&(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))==1684370544){c=2;break r}if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1701471570|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=1684370531)break s;c=3;break r}if(dd((a|0)<0? +J[e+20>>2]:e+20|0,840066,9))break s;c=4;break r}c=0;if(!dd((a|0)<0?J[e+20>>2]:e+20|0,839267,6))break r}c=5;if(!Dl(e+20|0,840194))break q}H[f+229|0]=c}if(H[e+31|0]>=0)break p;uc(J[e+20>>2])}J[699344]=0;$(3370,e+256|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;$(3370,e+272|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}d=Z()|0;break a}fc=e+288|0;return f|0}d=Z()|0;while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((a|0)!=(e+20|0))continue;break}}if(H[e+255|0]>=0)break a;uc(J[e+244>>2])}Ch(f); +ba(d|0);B()}function S4(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0;c=fc-832|0;fc=c;a:{e=J[b>>2];f=J[e+228>>2];d=0;b:{if(!f)break b;m=O[e+216>>3];O[c+808>>3]=m;j=O[f+216>>3];O[c+800>>3]=j;A=!(m>=1E-8)|!(m<=.99999999);s=!(j>=1E-8)|!(j<=.99999999);if(!(A|s)){f=0;a=fc-48|0;fc=a;c:{if(!J[e+228>>2])break c;J[a+8>>2]=1;l=a+8|0;ah(a+24|0,e,e+216|0,l);d=J[e+228>>2];J[a+44>>2]=1;ah(l,d,d+216|0,a+44|0);j=O[a+24>>3];m=O[a+8>>3];h=O[a+32>> +3];g=O[a+16>>3];if(!(R(j*m+h*g)<=Y((j*j+h*h)*(m*m+g*g))*1E-8))break c;if(K[e+120|0]){f=1;break c}d=J[e+228>>2];if(K[d+120|0]){f=1;break c}m=O[e>>3];h=O[e+72>>3]-m;g=O[d+8>>3];i=O[d+80>>3]-g;k=O[d>>3];q=O[d+72>>3]-k;o=O[e+8>>3];p=O[e+80>>3]-o;j=h*i-q*p;if(j>=-1.12E-16){f=1;if(j<=1.12E-16)break c}g=o-g;m=m-k;i=(q*g-m*i)/j;j=(h*g+m*-p)/j;f=!(i>-1E-12)|!(j>-1E-12)|!(i<1.000000000001)|!(j<1.000000000001)}fc=a+48|0;d=f^1;break b}h=O[e>>3];O[c+656>>3]=h;g=O[e+8>>3];O[c+664>>3]=g;i=O[e+16>>3];O[c+672>>3]= +i;k=O[e+24>>3];O[c+680>>3]=k;q=O[e+32>>3];O[c+688>>3]=q;o=O[e+40>>3];O[c+696>>3]=o;d=J[e+60>>2];J[c+712>>2]=J[e+56>>2];J[c+716>>2]=d;d=J[e+52>>2];J[c+704>>2]=J[e+48>>2];J[c+708>>2]=d;l=J[e+64>>2];J[c+720>>2]=l;f=J[e+68>>2];J[c+724>>2]=f;if(f)J[f+4>>2]=J[f+4>>2]+1;p=O[e+72>>3];O[c+728>>3]=p;v=O[e+80>>3];O[c+736>>3]=v;w=O[e+88>>3];O[c+744>>3]=w;x=O[e+96>>3];O[c+752>>3]=x;y=O[e+104>>3];O[c+760>>3]=y;z=O[e+112>>3];O[c+768>>3]=z;d=J[e+124>>2];J[c+776>>2]=J[e+120>>2];J[c+780>>2]=d;d=J[e+132>>2];J[c+784>> +2]=J[e+128>>2];J[c+788>>2]=d;r=J[e+136>>2];J[c+792>>2]=r;d=J[e+140>>2];J[c+796>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;d:{if(m<1E-8){kM(c+512|0,a,c+656|0);break d}O[c+552>>3]=o;O[c+536>>3]=k;O[c+544>>3]=q;O[c+528>>3]=i;O[c+520>>3]=g;O[c+512>>3]=h;t=J[c+716>>2];J[c+568>>2]=J[c+712>>2];J[c+572>>2]=t;t=J[c+704>>2];u=J[c+708>>2];J[c+580>>2]=f;J[c+560>>2]=t;J[c+564>>2]=u;J[c+576>>2]=l;if(f)J[f+4>>2]=J[f+4>>2]+1;O[c+624>>3]=z;O[c+616>>3]=y;O[c+608>>3]=x;O[c+600>>3]=w;O[c+592>>3]=v;O[c+584>>3]=p;l=J[c+780>>2]; +J[c+632>>2]=J[c+776>>2];J[c+636>>2]=l;l=J[c+788>>2];J[c+640>>2]=J[c+784>>2];J[c+644>>2]=l;J[c+652>>2]=d;J[c+648>>2]=r;if(!d)break d;J[d+4>>2]=J[d+4>>2]+1}d=J[e+228>>2];h=O[d>>3];O[c+368>>3]=h;g=O[d+8>>3];O[c+376>>3]=g;i=O[d+16>>3];O[c+384>>3]=i;k=O[d+24>>3];O[c+392>>3]=k;q=O[d+32>>3];O[c+400>>3]=q;o=O[d+40>>3];O[c+408>>3]=o;e=J[d+60>>2];J[c+424>>2]=J[d+56>>2];J[c+428>>2]=e;e=J[d+52>>2];J[c+416>>2]=J[d+48>>2];J[c+420>>2]=e;l=J[d+64>>2];J[c+432>>2]=l;e=J[d+68>>2];J[c+436>>2]=e;if(e)J[e+4>>2]=J[e+4>> +2]+1;p=O[d+72>>3];O[c+440>>3]=p;v=O[d+80>>3];O[c+448>>3]=v;w=O[d+88>>3];O[c+456>>3]=w;x=O[d+96>>3];O[c+464>>3]=x;y=O[d+104>>3];O[c+472>>3]=y;z=O[d+112>>3];O[c+480>>3]=z;r=J[d+124>>2];J[c+488>>2]=J[d+120>>2];J[c+492>>2]=r;r=J[d+132>>2];J[c+496>>2]=J[d+128>>2];J[c+500>>2]=r;r=J[d+136>>2];J[c+504>>2]=r;d=J[d+140>>2];J[c+508>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;e:{if(j<1E-8){kM(c+224|0,a,c+368|0);break e}O[c+264>>3]=o;O[c+248>>3]=k;O[c+256>>3]=q;O[c+240>>3]=i;O[c+232>>3]=g;O[c+224>>3]=h;t=J[c+428>>2];J[c+ +280>>2]=J[c+424>>2];J[c+284>>2]=t;t=J[c+416>>2];u=J[c+420>>2];J[c+292>>2]=e;J[c+272>>2]=t;J[c+276>>2]=u;J[c+288>>2]=l;if(e)J[e+4>>2]=J[e+4>>2]+1;O[c+336>>3]=z;O[c+328>>3]=y;O[c+320>>3]=x;O[c+312>>3]=w;O[c+304>>3]=v;O[c+296>>3]=p;e=J[c+492>>2];J[c+344>>2]=J[c+488>>2];J[c+348>>2]=e;e=J[c+500>>2];J[c+352>>2]=J[c+496>>2];J[c+356>>2]=e;J[c+364>>2]=d;J[c+360>>2]=r;if(!d)break e;J[d+4>>2]=J[d+4>>2]+1}if(m>.99999999){jM(c+80|0,a,c+656|0);O[c+656>>3]=O[c+80>>3];O[c+664>>3]=O[c+88>>3];O[c+672>>3]=O[c+96>>3]; +O[c+680>>3]=O[c+104>>3];O[c+688>>3]=O[c+112>>3];O[c+696>>3]=O[c+120>>3];d=J[c+140>>2];J[c+712>>2]=J[c+136>>2];J[c+716>>2]=d;d=J[c+132>>2];J[c+704>>2]=J[c+128>>2];J[c+708>>2]=d;d=J[c+144>>2];e=J[c+148>>2];J[c+144>>2]=0;J[c+148>>2]=0;J[c+720>>2]=d;J[c+724>>2]=e;f:{if(!f)break f;d=J[f+4>>2];J[f+4>>2]=d-1;if(d)break f;kc[J[J[f>>2]+8>>2]](f);Gc(f)}O[c+728>>3]=O[c+152>>3];O[c+736>>3]=O[c+160>>3];O[c+744>>3]=O[c+168>>3];O[c+752>>3]=O[c+176>>3];O[c+760>>3]=O[c+184>>3];O[c+768>>3]=O[c+192>>3];d=J[c+212>>2]; +J[c+784>>2]=J[c+208>>2];J[c+788>>2]=d;d=J[c+204>>2];J[c+776>>2]=J[c+200>>2];J[c+780>>2]=d;e=J[c+216>>2];f=J[c+220>>2];J[c+216>>2]=0;J[c+220>>2]=0;d=J[c+796>>2];J[c+792>>2]=e;J[c+796>>2]=f;g:{if(!d)break g;e=J[d+4>>2];J[d+4>>2]=e-1;if(!e){kc[J[J[d>>2]+8>>2]](d);Gc(d)}d=J[c+220>>2];if(!d)break g;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break g;kc[J[J[d>>2]+8>>2]](d);Gc(d)}d=J[c+148>>2];h:{if(!d)break h;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break h;kc[J[J[d>>2]+8>>2]](d);Gc(d)}j=O[c+800>>3]}i:{if(!(j>.99999999))break i; +jM(c+80|0,a,c+368|0);O[c+368>>3]=O[c+80>>3];O[c+376>>3]=O[c+88>>3];O[c+384>>3]=O[c+96>>3];O[c+392>>3]=O[c+104>>3];O[c+400>>3]=O[c+112>>3];O[c+408>>3]=O[c+120>>3];a=J[c+140>>2];J[c+424>>2]=J[c+136>>2];J[c+428>>2]=a;a=J[c+132>>2];J[c+416>>2]=J[c+128>>2];J[c+420>>2]=a;d=J[c+144>>2];e=J[c+148>>2];J[c+148>>2]=0;J[c+144>>2]=0;a=J[c+436>>2];J[c+432>>2]=d;J[c+436>>2]=e;j:{if(!a)break j;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break j;kc[J[J[a>>2]+8>>2]](a);Gc(a)}O[c+440>>3]=O[c+152>>3];O[c+448>>3]=O[c+160>>3];O[c+ +456>>3]=O[c+168>>3];O[c+464>>3]=O[c+176>>3];O[c+472>>3]=O[c+184>>3];O[c+480>>3]=O[c+192>>3];a=J[c+212>>2];J[c+496>>2]=J[c+208>>2];J[c+500>>2]=a;a=J[c+204>>2];J[c+488>>2]=J[c+200>>2];J[c+492>>2]=a;d=J[c+216>>2];e=J[c+220>>2];J[c+216>>2]=0;J[c+220>>2]=0;a=J[c+508>>2];J[c+504>>2]=d;J[c+508>>2]=e;k:{if(!a)break k;d=J[a+4>>2];J[a+4>>2]=d-1;if(!d){kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[c+220>>2];if(!a)break k;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break k;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[c+148>>2];if(!a)break i;d=J[a+ +4>>2];J[a+4>>2]=d-1;if(d)break i;kc[J[J[a>>2]+8>>2]](a);Gc(a)}J[c+76>>2]=0;J[c+68>>2]=0;J[c+72>>2]=0;if(A){J[699344]=0;a=c+68|0;ia(2525,c|0,a|0,c+512|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;ia(2525,c|0,a|0,c+656|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break a}if(s){J[699344]=0;a=c+68|0;ia(2525,c|0,a|0,c+224|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;ia(2525,c|0,a|0,c+368|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[b>>2];J[c+80>>2]=0;ah(c+48|0,a,a+216| +0,c+80|0);h=1.7976931348623157E308;l=J[c+68>>2];a=J[c+72>>2];if((l|0)!=(a|0))while(1){j=O[l>>3];h=h>j?j:h;l=l+8|0;if((a|0)!=(l|0))continue;break}O[c+40>>3]=h;l:{if(!A){J[c+80>>2]=1;ah(c+24|0,c+656|0,c+808|0,c+80|0);g=O[c+32>>3];k=-g;i=O[c+24>>3];j=-i;break l}a=c+656|0;C=c,D=sD(a,c+40|0),O[C+8>>3]=D;J[c+816>>2]=0;d=c+80|0;f=a;a=c+8|0;e=c+816|0;ah(d,f,a,e);j=O[c+56>>3];g=O[c+88>>3]-j;O[c+32>>3]=g;m=O[c+48>>3];i=O[c+80>>3]-m;O[c+24>>3]=i;O[c+816>>3]=-h;f=c+512|0;C=c,D=sD(f,e),O[C+8>>3]=D;J[c>>2]=0;ah(d, +f,a,c);k=O[c+88>>3]-j;j=O[c+80>>3]-m}m:{if(!s){J[c+80>>2]=1;ah(c+8|0,c+368|0,c+800|0,c+80|0);q=O[c+8>>3];o=-q;p=O[c+16>>3];m=-p;break m}a=c+368|0;C=c,D=sD(a,c+40|0),O[C+816>>3]=D;J[c>>2]=0;d=c+80|0;e=a;a=c+816|0;ah(d,e,a,c);o=O[c+48>>3];q=O[c+80>>3]-o;O[c+8>>3]=q;p=O[c+88>>3];m=O[c+56>>3];O[c>>3]=-h;e=c+224|0;C=c,D=sD(e,c),O[C+816>>3]=D;J[c+828>>2]=0;p=p-m;ah(d,e,a,c+828|0);o=O[c+80>>3]-o;m=O[c+88>>3]-m}h=0;if(!(j==0&k==0))h=qf(k,j)*180/3.141592653589793;k=0;if(!(i==0&g==0))k=qf(g,i)*180/3.141592653589793; +g=0;i=0;if(!(o==0&m==0))g=qf(m,o)*180/3.141592653589793;if(!(q==0&p==0))i=qf(p,q)*180/3.141592653589793;n:{o:{p:{if(gg;f=0;if(gg;f=1;if(!(gk;break n}f=0;e=i>k}q:{r:{s:{if(g>i){r=hi;l=0;if(ii;l=1;if(!(ik;break q}l=0;d=g>k}t:{if(hi;u:{if(h>k){u=g>k&h>g;if(i>k)break u;s=0;break u}u=g>k|h> +g;if(!(i>k))break u;s=1}f=J[c+68>>2];if(f){J[c+72>>2]=f;uc(f)}f=J[c+364>>2];v:{if(!f)break v;n=J[f+4>>2];J[f+4>>2]=n-1;if(n)break v;kc[J[J[f>>2]+8>>2]](f);Gc(f)}f=J[c+292>>2];w:{if(!f)break w;n=J[f+4>>2];J[f+4>>2]=n-1;if(n)break w;kc[J[J[f>>2]+8>>2]](f);Gc(f)}f=J[c+508>>2];x:{if(!f)break x;n=J[f+4>>2];J[f+4>>2]=n-1;if(n)break x;kc[J[J[f>>2]+8>>2]](f);Gc(f)}f=J[c+436>>2];y:{if(!f)break y;n=J[f+4>>2];J[f+4>>2]=n-1;if(n)break y;kc[J[J[f>>2]+8>>2]](f);Gc(f)}f=J[c+652>>2];z:{if(!f)break z;n=J[f+4>>2]; +J[f+4>>2]=n-1;if(n)break z;kc[J[J[f>>2]+8>>2]](f);Gc(f)}f=J[c+580>>2];A:{if(!f)break A;n=J[f+4>>2];J[f+4>>2]=n-1;if(n)break A;kc[J[J[f>>2]+8>>2]](f);Gc(f)}e=a^e;d=d^r;f=l^t;l=s^u;a=J[c+796>>2];B:{if(!a)break B;s=J[a+4>>2];J[a+4>>2]=s-1;if(s)break B;kc[J[J[a>>2]+8>>2]](a);Gc(a)}d=d&e;e=f&l;a=J[c+724>>2];C:{if(!a)break C;f=J[a+4>>2];J[a+4>>2]=f-1;if(f)break C;kc[J[J[a>>2]+8>>2]](a);Gc(a)}d=A?e:d}a=J[b+4>>2];D:{if(!a)break D;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break D;kc[J[J[a>>2]+8>>2]](a);Gc(a)}fc=c+832| +0;return d}ea(0)|0;Bc();B()}function kD(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=fc-1312|0;fc=k;if(c>>>0>=4){j=J[a>>2];J[j+24>>2]=c;J[j+20>>2]=52;kc[J[J[a>>2]>>2]](a)}i=J[((b?180:196)+a|0)+(c<<2)>>2];if(!i){j=J[a>>2];J[j+24>>2]=c;J[j+20>>2]=52;kc[J[J[a>>2]>>2]](a)}j=J[d>>2];if(!j){j=kc[J[J[a+4>>2]>>2]](a,1,1424)|0;J[d>>2]=j}J[j+140>>2]=i;c=K[i+1|0];a:{if(!c){c=0;break a}Ac(k+1040|0,1,c)}l=K[i+2|0];d=l+c|0;if(d>>>0>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}b:{if(!l){d=c;break b}Ac((k+ +1040|0)+c|0,2,l)}l=K[i+3|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}c:{if(!l){c=d;break c}Ac((k+1040|0)+d|0,3,l)}l=K[i+4|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}d:{if(!l){d=c;break d}Ac((k+1040|0)+c|0,4,l)}l=K[i+5|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}e:{if(!l){c=d;break e}Ac((k+1040|0)+d|0,5,l)}l=K[i+6|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}f:{if(!l){d=c;break f}Ac((k+1040|0)+c|0,6,l)}l=K[i+7|0];c=l+d| +0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}g:{if(!l){c=d;break g}Ac((k+1040|0)+d|0,7,l)}l=K[i+8|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}h:{if(!l){d=c;break h}Ac((k+1040|0)+c|0,8,l)}l=K[i+9|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}i:{if(!l){c=d;break i}Ac((k+1040|0)+d|0,9,l)}l=K[i+10|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}j:{if(!l){d=c;break j}Ac((k+1040|0)+c|0,10,l)}l=K[i+11|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+ +20>>2]=9;kc[J[m>>2]](a)}k:{if(!l){c=d;break k}Ac((k+1040|0)+d|0,11,l)}l=K[i+12|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}l:{if(!l){d=c;break l}Ac((k+1040|0)+c|0,12,l)}l=K[i+13|0];c=l+d|0;if((c|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}m:{if(!l){c=d;break m}Ac((k+1040|0)+d|0,13,l)}l=K[i+14|0];d=l+c|0;if((d|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}n:{if(!l){d=c;break n}Ac((k+1040|0)+c|0,14,l)}c=K[i+15|0];l=c+d|0;if((l|0)>=257){m=J[a>>2];J[m+20>>2]=9;kc[J[m>>2]](a)}o:{if(!c){l= +d;break o}Ac((k+1040|0)+d|0,15,c)}c=K[i+16|0];m=c+l|0;if((m|0)>=257){d=J[a>>2];J[d+20>>2]=9;kc[J[d>>2]](a)}d=0;if(c){Ac((k+1040|0)+l|0,16,c);l=m}H[(k+1040|0)+l|0]=0;f=K[k+1040|0];if(f){h=f<<24>>24;c=0;while(1){if(f<<24>>24==(h|0))while(1){J[(d<<2)+k>>2]=c;c=c+1|0;d=d+1|0;f=H[d+(k+1040|0)|0];if((h|0)==(f|0))continue;break}if(1<>2];J[g+20>>2]=9;kc[J[g>>2]](a)}h=h+1|0;c=c<<1;if(f&255)continue;break}}d=-1;p:{if(!K[i+1|0]){c=0;e=-1;break p}J[j+76>>2]=0-J[k>>2];c=K[i+1|0];e=J[((c<<2)+k| +0)-4>>2]}J[j+4>>2]=e;if(K[i+2|0]){J[j+80>>2]=c-J[(c<<2)+k>>2];c=K[i+2|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+8>>2]=e;if(K[i+3|0]){J[j+84>>2]=c-J[(c<<2)+k>>2];c=K[i+3|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+12>>2]=e;if(K[i+4|0]){J[j+88>>2]=c-J[(c<<2)+k>>2];c=K[i+4|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+16>>2]=e;if(K[i+5|0]){J[j+92>>2]=c-J[(c<<2)+k>>2];c=K[i+5|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+20>>2]=e;if(K[i+6|0]){J[j+96>>2]=c-J[(c<<2)+k>>2];c=K[i+6|0]+c|0;e=J[((c<<2)+k|0)- +4>>2]}else e=-1;J[j+24>>2]=e;if(K[i+7|0]){J[j+100>>2]=c-J[(c<<2)+k>>2];c=K[i+7|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+28>>2]=e;if(K[i+8|0]){J[j+104>>2]=c-J[(c<<2)+k>>2];c=K[i+8|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+32>>2]=e;if(K[i+9|0]){J[j+108>>2]=c-J[(c<<2)+k>>2];c=K[i+9|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+36>>2]=e;if(K[i+10|0]){J[j+112>>2]=c-J[(c<<2)+k>>2];c=K[i+10|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+40>>2]=e;if(K[i+11|0]){J[j+116>>2]=c-J[(c<<2)+k>>2];c=K[i+11|0]+c|0; +e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+44>>2]=e;if(K[i+12|0]){J[j+120>>2]=c-J[(c<<2)+k>>2];c=K[i+12|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+48>>2]=e;if(K[i+13|0]){J[j+124>>2]=c-J[(c<<2)+k>>2];c=K[i+13|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+52>>2]=e;if(K[i+14|0]){J[j+128>>2]=c-J[(c<<2)+k>>2];c=K[i+14|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+56>>2]=e;if(K[i+15|0]){J[j+132>>2]=c-J[(c<<2)+k>>2];c=K[i+15|0]+c|0;e=J[((c<<2)+k|0)-4>>2]}else e=-1;J[j+60>>2]=e;if(K[i+16|0]){J[j+136>>2]=c-J[(c<<2)+ +k>>2];d=J[((K[i+16|0]+c<<2)+k|0)-4>>2]}J[j+68>>2]=1048575;J[j+64>>2]=d;d=0;f=Ac(j+144|0,0,1024);if(K[i+1|0]){h=1;g=j+1168|0;while(1){e=d+i|0;c=J[(d<<2)+k>>2]<<7;n=128;while(1){J[f+(c<<2)>>2]=1;H[c+g|0]=K[e+17|0];o=c|1;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+17|0];o=c|2;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+17|0];o=c|3;J[f+(o<<2)>>2]=1;H[g+o|0]=K[e+17|0];c=c+4|0;o=(n|0)!=4;n=n-4|0;if(o)continue;break}d=d+1|0;c=K[i+1|0]>h>>>0;h=h+1|0;if(c)continue;break}}if(K[i+2|0]){h=1;f=j+144|0;g=j+1168|0;while(1){e=d+i|0;c=J[(d<< +2)+k>>2]<<6;n=64;while(1){J[f+(c<<2)>>2]=2;H[c+g|0]=K[e+17|0];o=c|1;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];o=c|2;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];o=c|3;J[f+(o<<2)>>2]=2;H[g+o|0]=K[e+17|0];c=c+4|0;o=(n|0)!=4;n=n-4|0;if(o)continue;break}d=d+1|0;c=K[i+2|0]>h>>>0;h=h+1|0;if(c)continue;break}}if(K[i+3|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<7)>>2]=3;f=f<<5;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<< +2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|4;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|7;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|8;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|9;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|10;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|11;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|12;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|13;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|14;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|15; +J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|16;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|17;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|18;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|19;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|20;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|21;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|22;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|23;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|24;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|25;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|26;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+ +17|0];e=f|27;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|28;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|29;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];e=f|30;J[c+(e<<2)>>2]=3;H[e+h|0]=K[g+17|0];f=f|31;J[c+(f<<2)>>2]=3;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+3|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+4|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<6)>>2]=4;f=f<<4;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<<2)>>2]=4;H[e+ +h|0]=K[g+17|0];e=f|4;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|7;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|8;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|9;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|10;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|11;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|12;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|13;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];e=f|14;J[c+(e<<2)>>2]=4;H[e+h|0]=K[g+17|0];f=f|15;J[c+(f<<2)>> +2]=4;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+4|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+5|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<5)>>2]=5;f=f<<3;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|3;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|4;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|5;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];e=f|6;J[c+(e<<2)>>2]=5;H[e+h|0]=K[g+17|0];f=f|7;J[c+(f<<2)>>2]=5;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+ +5|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+6|0]){n=1;c=j+144|0;h=j+1168|0;while(1){f=J[(d<<2)+k>>2];J[c+(f<<4)>>2]=6;f=f<<2;g=d+i|0;H[f+h|0]=K[g+17|0];e=f|1;J[c+(e<<2)>>2]=6;H[e+h|0]=K[g+17|0];e=f|2;J[c+(e<<2)>>2]=6;H[e+h|0]=K[g+17|0];f=f|3;J[c+(f<<2)>>2]=6;H[f+h|0]=K[g+17|0];d=d+1|0;f=K[i+6|0]>n>>>0;n=n+1|0;if(f)continue;break}}if(K[i+7|0]){c=1;h=j+144|0;f=j+1168|0;while(1){g=J[(d<<2)+k>>2];J[h+(g<<3)>>2]=7;g=g<<1;n=d+i|0;H[g+f|0]=K[n+17|0];g=g|1;J[h+(g<<2)>>2]=7;H[f+g|0]=K[n+17|0];d=d+1|0;g= +K[i+7|0]>c>>>0;c=c+1|0;if(g)continue;break}}if(K[i+8|0]){c=1;while(1){h=J[(d<<2)+k>>2];J[((h<<2)+j|0)+144>>2]=8;H[(h+j|0)+1168|0]=K[(d+i|0)+17|0];d=d+1|0;h=K[i+8|0]>c>>>0;c=c+1|0;if(h)continue;break}}q:{if(!b|(l|0)<=0)break q;c=0;if((m|0)!=1){b=m&-2;d=0;while(1){if(K[(c+i|0)+17|0]>=16){j=J[a>>2];J[j+20>>2]=9;kc[J[j>>2]](a)}if(K[((c|1)+i|0)+17|0]>=16){j=J[a>>2];J[j+20>>2]=9;kc[J[j>>2]](a)}c=c+2|0;d=d+2|0;if((b|0)!=(d|0))continue;break}}if(!(m&1)|K[(c+i|0)+17|0]<16)break q;b=J[a>>2];J[b+20>>2]=9;kc[J[b>> +2]](a)}fc=k+1312|0}function oy(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;c=fc-128|0;fc=c;a:{if(!a)break a;p=!b;if(p)break a;k=kd(1,16);b:{if(!k)break b;f=kd(50,4);J[k+12>>2]=f;if(!f)break b;J[k+8>>2]=1;J[k>>2]=50;e=k}o=e;J[c+84>>2]=e;j=fc-16|0;fc=j;if(!(p|!e)){k=0;c:{if(!b)break c;p=Yc(b);e=kd(p+1|0,1);if(!e)break c;d:{if((p|0)<=0)break d;while(1){f=K[b+k|0];if(f){H[e+k|0]=f;k=k+1|0;if((p|0)!=(k|0))continue;break d}break}if((k|0)>=(p|0))break d;Ac(e+k|0,0,p-k|0)}k= +e}f=k;k=_N(f,j+12|0);if(k){p=o+12|0;e=J[o+4>>2];b=J[o>>2];e:{if((e|0)<(b|0)){b=J[p>>2];break e}b=im(p,b<<2,b<<3);J[o+12>>2]=b;J[o>>2]=J[o>>2]<<1}J[(e<<2)+b>>2]=k;J[o+4>>2]=J[o+4>>2]+1}b=_N(0,j+12|0);if(b){p=o+12|0;while(1){e=J[o+4>>2];k=J[o>>2];f:{if((e|0)<(k|0)){g=J[p>>2];break f}g=im(p,k<<2,k<<3);J[o+12>>2]=g;J[o>>2]=J[o>>2]<<1}J[(e<<2)+g>>2]=b;J[o+4>>2]=J[o+4>>2]+1;b=_N(0,j+12|0);if(b)continue;break}}uc(f)}fc=j+16|0;k=o?J[o+4>>2]:0;p=k;d=fc-400|0;fc=d;g:{if(o){i=1;if((k|0)<=0)break g;i=0;j=J[655074]; +h:{i:{j:{k:{l:{m:{n:{g=ZN(RN(o,0));switch(H[g|0]-66|0){case 1:case 2:case 3:case 13:case 33:case 34:case 35:case 45:break k;case 16:case 48:break l;case 22:case 54:break m;case 0:case 32:break n;default:break j}}i=1;J[d+384>>2]=d+396;if((Zg(g+1|0,227254,d+384|0)|0)!=1){J[d+368>>2]=g;md(j,228862,d+368|0);i=0;break i}m=1;b=J[d+396>>2];if((b|0)>0)break h;J[d+356>>2]=b;J[d+352>>2]=g;md(j,229111,d+352|0);i=0;break i}J[d+336>>2]=d+396;if((Zg(g+1|0,227254,d+336|0)|0)!=1){J[d+320>>2]=g;md(j,228862,d+320| +0);break i}o:{e=J[d+396>>2];b=e<<31|e-2>>>1;if(b>>>0>7)break o;i=1;if(!(1<>2]|0;break h}J[d+308>>2]=e;J[d+304>>2]=g;md(j,229111,d+304|0);i=0;break i}b=Yc(g);n=b-1|0;if(b-6>>>0>=4294967292){i=1;if((n|0)<=0)break i;i=0;f=K[g+1|0];p:{if((f-53&255)>>>0<252)break p;if((n|0)==1){i=1;break h}f=K[g+2|0];if((f-53&255)>>>0<252){h=1;break p}h=2;if((n|0)==2){i=1;break h}f=K[g+3|0];if((f-53&255)>>>0<252)break p;h=3;if((n|0)==3){i=1;break h}f=K[g+4|0];if((f-53&255)>>>0< +252)break p;h=4;if((n|0)==4){i=1;break h}f=K[g+5|0]}J[d+292>>2]=h;J[d+288>>2]=g;J[d+296>>2]=(f<<24>>24)-48;md(j,228583,d+288|0);break i}J[d+276>>2]=n;J[d+272>>2]=g;md(j,228065,d+272|0);break i}i=1;J[d+260>>2]=d+388;J[d+256>>2]=d+392;if((Zg(g+1|0,226991,d+256|0)|0)!=2){J[d+240>>2]=g;md(j,227556,d+240|0);i=0;break i}e=J[d+392>>2];b=J[d+388>>2];if((e|0)>0&(b|0)>0)break h;J[d+232>>2]=b;J[d+228>>2]=e;J[d+224>>2]=g;md(j,227891,d+224|0);i=0;break i}J[d+208>>2]=g;md(j,229511,d+208|0)}m=0}uc(g);f=1;if((k| +0)!=1)while(1){q:{r:{s:{t:{u:{v:{w:{g=ZN(RN(o,f));switch(H[g|0]-66|0){case 0:case 32:break t;case 22:case 54:break u;case 16:case 48:break v;case 1:case 2:case 3:case 13:case 33:case 34:case 35:case 45:break w;default:break s}}J[d+68>>2]=d+388;J[d+64>>2]=d+392;if((Zg(g+1|0,226991,d- -64|0)|0)!=2){J[d+48>>2]=g;md(j,227556,d+48|0);break r}e=J[d+392>>2];b=J[d+388>>2];if((e|0)>0&(b|0)>0)break q;J[d+40>>2]=b;J[d+36>>2]=e;J[d+32>>2]=g;md(j,227891,d+32|0);break r}b=Yc(g);e=b-1|0;n=e+n|0;if(b-6>>>0<=4294967291){J[d+ +84>>2]=e;J[d+80>>2]=g;md(j,228065,d+80|0);break r}x:{if((e|0)<=0)break x;b=K[g+1|0];h=0;y:{if((b-53&255)>>>0<252)break y;if((e|0)==1)break x;b=K[g+2|0];h=1;if((b-53&255)>>>0<252)break y;if((e|0)==2)break x;b=K[g+3|0];h=2;if((b-53&255)>>>0<252)break y;if((e|0)==3)break x;b=K[g+4|0];h=3;if((b-53&255)>>>0<252)break y;if((e|0)==4)break x;b=H[g+5|0];h=4}J[d+100>>2]=h;J[d+96>>2]=g;J[d+104>>2]=(b<<24>>24)-48;md(j,228583,d+96|0);break r}break q}J[d+144>>2]=d+396;if((Zg(g+1|0,227254,d+144|0)|0)!=1){J[d+128>> +2]=g;md(j,228862,d+128|0);break r}e=J[d+396>>2];b=e<<31|e-2>>>1;if(!(1<>>0<=7:0)){J[d+116>>2]=e;J[d+112>>2]=g;md(j,229111,d+112|0);break r}n=n-J[((e|0)/4<<2)+231360>>2]|0;break q}J[d+192>>2]=d+396;if((Zg(g+1|0,227254,d+192|0)|0)!=1){J[d+176>>2]=g;md(j,228862,d+176|0);break r}J[d+160>>2]=g;md(j,229312,d+160|0);break r}J[d+16>>2]=g;md(j,229511,d+16|0)}i=0}uc(g);f=f+1|0;if((k|0)!=(f|0))continue;break}if(!((n|0)!=0&m))break g;J[d>>2]=g;md(J[655074],229788,d)}i=0}fc=d+400|0;if(!i){SN(c+84|0); +break a}J[c+112>>2]=0;a=Ff(0,a);J[c+88>>2]=0;J[c+92>>2]=a;z:{if((p|0)<=0)break z;k=c+92|0;while(1){A:{B:{C:{D:{E:{F:{G:{H:{n=ZN(RN(J[c+84>>2],q));switch(H[n|0]-66|0){case 0:case 32:break B;case 22:case 54:break C;case 16:case 48:break D;case 1:case 33:break E;case 13:case 45:break F;case 3:case 35:break G;case 2:case 34:break H;default:break A}}J[c+4>>2]=c+116;J[c>>2]=c+120;Zg(n+1|0,226991,c);g=0;f=fc-16|0;fc=f;e=J[c+92>>2];a=!e;d=a;o=((a?-1:J[e+8>>2])|0)!=1;a=J[c+120>>2];b=J[c+116>>2];I:{if(d|(o| +(a|0)<=0)|(b|0)<=0)break I;if(!((a|0)!=1|(b|0)!=1)){g=Ff(0,e);break I}if(!((a|0)!=1&(b|0)!=1)){a=pj(b,a,b>>>1|0,a>>>1|0);J[f+12>>2]=a;g=hm(0,e,a);Gj(f+12|0);break I}a=pj(1,a,0,a>>>1|0);J[f+8>>2]=a;b=pj(b,1,b>>>1|0,0);J[f+4>>2]=b;a=hm(0,e,a);J[f+12>>2]=a;g=hm(0,a,b);Fd(f+12|0);Gj(f+8|0);Gj(f+4|0)}fc=f+16|0;J[c+88>>2]=g;Fd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;Fd(c+88|0);break A}J[c+20>>2]=c+116;J[c+16>>2]=c+120;Zg(n+1|0,226991,c+16|0);g=0;f=fc-16|0;fc=f;e=J[c+92>>2];a=!e;d= +a;o=((a?-1:J[e+8>>2])|0)!=1;a=J[c+120>>2];b=J[c+116>>2];J:{if(d|(o|(a|0)<=0)|(b|0)<=0)break J;if(!((a|0)!=1|(b|0)!=1)){g=Ff(0,e);break J}if(!((a|0)!=1&(b|0)!=1)){a=pj(b,a,b>>>1|0,a>>>1|0);J[f+12>>2]=a;g=gm(0,e,a);Gj(f+12|0);break J}a=pj(1,a,0,a>>>1|0);J[f+8>>2]=a;b=pj(b,1,b>>>1|0,0);J[f+4>>2]=b;a=gm(0,e,a);J[f+12>>2]=a;g=gm(0,a,b);Fd(f+12|0);Gj(f+8|0);Gj(f+4|0)}fc=f+16|0;J[c+88>>2]=g;Fd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;Fd(c+88|0);break A}J[c+36>>2]=c+116;J[c+32>>2]=c+ +120;Zg(n+1|0,226991,c+32|0);h=fc-16|0;fc=h;a=J[c+92>>2];b=!a;e=J[c+120>>2];d=b|(((b?-1:J[a+8>>2])|0)!=1|(e|0)<=0);b=J[c+116>>2];K:{if(d|(b|0)<=0)break K;if(!((e|0)!=1|(b|0)!=1)){Ff(a,a);break K}if(!((e|0)!=1&(b|0)!=1)){f=pj(b,e,b>>>1|0,e>>>1|0);J[h+12>>2]=f;m=fc-16|0;fc=m;L:{M:{N:{b=a;e=!a;O:{if(e|!f|((e?-1:J[a+8>>2])|0)!=1)break O;ss(f,m+12|0,m+8|0,0,0);if(!J[m+12>>2]|!J[m+8>>2])break O;if(a)break N;a=cv(a)}if(a)break M;break L}hO(a,b)}b=gm(0,b,f);J[m+4>>2]=b;if(!b)break L;hm(a,b,f);Fd(m+4|0)}fc= +m+16|0;Gj(h+12|0);break K}e=pj(1,e,0,e>>>1|0);J[h+8>>2]=e;b=pj(b,1,b>>>1|0,0);J[h+4>>2]=b;f=gm(0,a,e);J[h+12>>2]=f;a=gm(a,f,b);hm(f,a,e);hm(a,f,b);Fd(h+12|0);Gj(h+8|0);Gj(h+4|0)}fc=h+16|0;break A}J[c+52>>2]=c+116;J[c+48>>2]=c+120;Zg(n+1|0,226991,c+48|0);i=fc-32|0;fc=i;l=J[c+92>>2];a=!l;j=J[c+120>>2];h=J[c+116>>2];P:{if(a|(((a?-1:J[l+8>>2])|0)!=1|(j|0)<=0)|(h|0)<=0)break P;if(!((j|0)!=1|(h|0)!=1)){Ff(l,l);break P}if(!J[663157]){m=fc-16|0;fc=m;a=!l;Q:{if(a|(((a?-1:J[l+8>>2])|0)!=1|(j|0)<=0)|(h|0)<= +0)break Q;if(!((j|0)!=1|(h|0)!=1)){Ff(l,l);break Q}if(!((j|0)!=1&(h|0)!=1)){a=pj(h,j,h>>>1|0,j>>>1|0);J[m+12>>2]=a;c9(l,l,a);Gj(m+12|0);break Q}e=pj(1,j,0,j>>>1|0);J[m+8>>2]=e;b=pj(h,1,h>>>1|0,0);J[m+4>>2]=b;f=hm(0,l,e);J[m+12>>2]=f;a=hm(l,f,b);gm(f,a,e);gm(a,f,b);Fd(m+12|0);Gj(m+8|0);Gj(m+4|0)}fc=m+16|0;break P}e=j>>>1|0;a=h>>>1|0;b=(a>>>0>>0?e:a)+31&2147483616;f=x9(l,b);J[i+28>>2]=f;R:{if(!((j|0)!=1&(h|0)!=1)){a=pj(h,j,a,e);J[i+16>>2]=a;g=c9(0,f,a);J[i+20>>2]=g;a=i+16|0;break R}e=pj(1,j,0,e); +J[i+16>>2]=e;a=pj(h,1,a,0);J[i+12>>2]=a;f=hm(0,f,e);J[i+24>>2]=f;g=hm(0,f,a);J[i+20>>2]=g;gm(f,g,e);gm(g,f,a);Fd(i+24|0);Gj(i+16|0);a=i+12|0}Gj(a);r=i,s=eO(g,b),J[r+24>>2]=s;Fd(i+28|0);Fd(i+20|0);if(!l)break P;Ff(l,J[i+24>>2]);Fd(i+24|0)}fc=i+32|0;break A}f=Yc(n);h=f-1|0;S:{if((h|0)>0){b=0;l=0;if(f-2>>>0>=3){e=h&-4;i=0;while(1){m=c+96|0;a=l|1;J[m+(l<<2)>>2]=H[a+n|0]-48;d=m+(a<<2)|0;a=l|2;J[d>>2]=H[a+n|0]-48;d=m+(a<<2)|0;a=l|3;J[d>>2]=H[a+n|0]-48;l=l+4|0;J[m+(a<<2)>>2]=H[n+l|0]-48;i=i+4|0;if((e|0)!= +(i|0))continue;break}}a=h&3;if(a)while(1){e=(c+96|0)+(l<<2)|0;l=l+1|0;J[e>>2]=H[n+l|0]-48;b=b+1|0;if((a|0)!=(b|0))continue;break}if((h|0)>3)break S}a=f<<2;Ac(a+k|0,0,20-a|0)}r=c,s=TN(J[c+92>>2],J[c+96>>2],J[c+100>>2],J[c+104>>2],J[c+108>>2]),J[r+88>>2]=s;Fd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;Fd(c+88|0);break A}J[c+64>>2]=c+124;Zg(n+1|0,227254,c- -64|0);r=c,s=A9(J[c+92>>2],J[c+124>>2]),J[r+88>>2]=s;Fd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;Fd(c+88| +0);break A}J[c+80>>2]=c+112;Zg(n+1|0,227254,c+80|0);r=c,s=x9(J[c+92>>2],J[c+112>>2]),J[r+88>>2]=s;Fd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;Fd(c+88|0)}uc(n);q=q+1|0;if((q|0)!=(p|0))continue;break}a=J[c+112>>2];if((a|0)<=0)break z;r=c,s=eO(J[c+92>>2],a),J[r+88>>2]=s;Fd(c+92|0);a=J[c+88>>2];if(a)J[a+16>>2]=J[a+16>>2]+1;J[c+92>>2]=a;Fd(c+88|0)}SN(c+84|0);l=J[c+92>>2]}fc=c+128|0;return l}function WBa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=fc-160|0;fc=d;a:{b:{c:{d:{e:{f:{g:{i= +a+92|0;h:{if(J[i>>2]&16){i:{b=J[a+136>>2];if(b)while(1){c=J[b+8>>2];f=J[c+60>>2];J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break b;f=J[c+60>>2];J[699344]=0;J[d+112>>2]=f;da(5397,f|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break i;J[699344]=0;da(5398,f|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break i;J[699344]=0;c=J[f+4>>2]-1|0;J[f+4>>2]=c;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(!c){J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}b=J[b>>2];if(b)continue; +break}J[699344]=0;$(5249,a+128|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break b}a=Z()|0;zc(d+112|0);ba(a|0);B()}if(!(J[i>>2]&1))break h;f=a+128|0;j=d+68|0;k=d+120|0;while(1){h=si();J[d+148>>2]=0;J[699344]=0;g=_(5252,d+112|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;c=J[a+136>>2];J[d+108>>2]=f;J[d+104>>2]=c;b=f;j:{if(!c)break j;k:{l:{while(1){m:{J[d+96>>2]=c;J[d+100>>2]=b;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{if((b|0)!=(f|0)){J[699344]=0;da(5243,d+96|0,f|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break G;break c}b=J[c+8>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break G;b=J[c+8>>2]}else b=0;J[d+16>>2]=b;if(J[b+8>>2])break F;J[699344]=0;c=d+60|0;ca(5399,c|0,a|0,b+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;J[699344]=0;aa(5253,g|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break D;break E}c=ea(2423616)|0;b=gc;break o}b=J[b+20>>2];J[699344]=0;c=d+60|0;ca(5400,c|0,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;J[699344]= +0;aa(5253,g|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break C}J[d+84>>2]=2392964;J[d+60>>2]=2392932;b=J[d+88>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[d+88>>2]=0}J[d+76>>2]=2392964;b=J[d+80>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[d+80>>2]=0}wc(j);b=J[d+120>>2];if(!b|!J[b+8>>2])break B;J[699344]=0;b=d+152|0;ca(5401,b|0,g|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break A;c=J[d+152>>2];if(!c){wc(b);break B}b=J[c+8>>2];wc(d+152|0);if(!b)break B; +J[699344]=0;aa(5153,d+148|0,d+16|0)|0;b=J[699344];J[699344]=0;c=1;if((b|0)!=1)break s;break A}c=ea(2423616)|0;b=gc;Ed(d+60|0);break p}c=ea(2423616)|0;b=gc;Ed(d+60|0);break p}J[699344]=0;b=J[i>>2];c=J[699344];J[699344]=0;if((c|0)==1)break A;if(!(b&24))break t;b=J[J[d+16>>2]+64>>2];J[699344]=0;$(5402,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;J[d+52>>2]=0;J[d+56>>2]=J[685894];b=J[d+16>>2];if(J[b+8>>2])break y;J[699344]=0;c=d+60|0;ca(5218,c|0,2402017,b+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break r; +J[699344]=0;aa(5403,d+52|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break z;wc(c);break x}c=ea(2423616)|0;b=gc;break p}c=ea(2423616)|0;b=gc;wc(d+60|0);break q}b=J[b+20>>2];J[699344]=0;e=aa(5290,d+44|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;J[699344]=0;b=d+60|0;ca(5218,b|0,2402204,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break w;J[699344]=0;aa(5403,d+52|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break v;wc(b);wc(e)}b=J[d+52>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;e=ja(5178,d+60| +0,b|0,2385400,633,2413521,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;J[699344]=0;$(5179,e|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;c=ea(2423616)|0;b=gc;Kc(e);break q}c=ea(2423616)|0;b=gc;break u}c=ea(2423616)|0;b=gc;wc(d+60|0)}wc(e);break q}c=0;b=J[d+104>>2];if(!b)break s;J[d+104>>2]=J[b>>2]}b=J[d+16>>2];J[d+16>>2]=0;H:{if(!b)break H;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;l=J[699344];J[699344]=0;if((l|0)==1)break a;if(e)break H;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)== +1)break a}b=c;c=J[d+104>>2];if(!(b|!c))break n;break j}c=ea(2423616)|0;b=gc}wc(d+52|0)}zc(d+16|0)}if((sa(2423616)|0)!=(b|0))break f;b=oa(c|0)|0;J[699344]=0;b=J[b+4>>2];b=b?b:2389698;c=J[699344];J[699344]=0;I:{J:{if((c|0)==1)break J;J[699344]=0;b=aa(5149,d+36|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break J;c=J[J[h>>2]+20>>2];J[699344]=0;ga(c|0,h|0,a|0,b|0)|0;c=J[699344];J[699344]=0;K:{if((c|0)!=1){wc(b);b=J[d+104>>2];J[d+28>>2]=b;c=J[d+108>>2];J[d+32>>2]=c;if(!((c|0)==(f|0)?b:0)){J[699344]=0; +da(5243,d+28|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;c=Z()|0;break k}c=J[b+8>>2];b=J[c+64>>2];if(!b){J[d+52>>2]=0;break I}J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break K;b=J[c+64>>2];J[d+52>>2]=b;if(!b)break I;J[699344]=0;da(5404,b|0,0);b=J[699344];J[699344]=0;if((b|0)!=1)break I;break m}c=Z()|0;wc(b);break k}c=Z()|0;break k}c=Z()|0;break k}b=J[d+104>>2];J[d+60>>2]=b;J[d+64>>2]=J[d+108>>2];if(b)J[d+104>>2]=J[b>>2];J[699344]=0;da(5235,f|0,d+60|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break m;zc(d+52|0);J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break l;c=J[d+104>>2];if(!c)break j}b=J[d+108>>2];continue}break}c=Z()|0;zc(d+52|0);break k}c=Z()|0;break f}J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break f;break a}c=0;L:{if(!J[d+148>>2])break L;b=J[d+120>>2];if(!b|!J[b+8>>2])break L;J[699344]=0;b=d+60|0;ca(5401,b|0,g|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break g;e=J[d+60>>2];if(!e){wc(b);break L}b=J[e+8>>2];e=d+60|0;wc(e);if(!b)break L; +M:{N:{O:{P:{Q:{R:{b=J[d+148>>2];S:{if(J[b+64>>2]){b=J[b+60>>2];c=J[J[h>>2]+16>>2];J[699344]=0;ia(c|0,d+24|0,h|0,b|0,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break S;if(!J[d+24>>2]){J[699344]=0;b=d+16|0;ca(5401,b|0,g|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break R;J[699344]=0;ca(5218,d+52|0,2389433,b|0);b=J[699344];J[699344]=0;T:{U:{V:{if((b|0)!=1){b=J[d+52>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;e=ja(5178,e|0,b|0,2385400,664,2413521,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break V;J[699344]=0; +$(5179,e|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;c=ea(2423616)|0;b=gc;Kc(e);break U}c=ea(2423616)|0;b=gc;break T}c=ea(2423616)|0;b=gc}wc(d+52|0)}wc(d+16|0);break Q}b=J[J[d+148>>2]+64>>2];J[699344]=0;ia(5265,b|0,d+24|0,0,-1);b=J[699344];J[699344]=0;if((b|0)==1)break R;b=J[d+24>>2];J[d+24>>2]=0;W:{if(!b)break W;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break W;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[d+148>>2]}c=J[b+ +60>>2];J[699344]=0;b=d+60|0;da(5283,b|0,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break S;J[699344]=0;da(5405,c|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break P;wc(b);c=J[J[d+148>>2]+60>>2];J[699344]=0;da(5396,b|0,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break S;J[699344]=0;da(5406,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break O;J[d+84>>2]=2392964;J[d+60>>2]=2392932;b=J[d+88>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[d+88>>2]=0}J[d+76>>2]=2392964;b=J[d+80>>2];if(b){c= +J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[d+80>>2]=0}wc(j);b=J[J[d+148>>2]+60>>2];J[699344]=0;da(5407,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break M}c=ea(2423616)|0;b=gc;break N}c=ea(2423616)|0;b=gc}zc(d+24|0);break N}c=ea(2423616)|0;b=gc;wc(d+60|0);break N}c=ea(2423616)|0;b=gc;Ed(d+60|0)}if((sa(2423616)|0)!=(b|0))break f;b=oa(c|0)|0;J[699344]=0;b=J[b+4>>2];b=b?b:2389698;c=J[699344];J[699344]=0;X:{Y:{Z:{if((c|0)==1)break Z;J[699344]=0;b=aa(5149,d+8|0,b|0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break Z;c=J[J[h>>2]+20>>2];J[699344]=0;ga(c|0,h|0,a|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Y;wc(b);J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1)break M;c=Z()|0;break f}c=Z()|0;break X}c=Z()|0;wc(b)}J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break a;break f}b=J[a+136>>2];J[d+108>>2]=f;J[d+104>>2]=b;c=1;if(!b)break L;h=J[d+148>>2];while(1){if((h|0)!=J[b+8>>2]){b=J[b>>2];if(b)continue;break L}break}J[699344]=0;J[d+104>>2]=b;da(5235,f|0,d+104|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break g}J[g>>2]=2392932;J[d+136>>2]=2392964;b=J[d+140>>2];if(b){g=J[b+4>>2]-1|0;J[b+4>>2]=g;if(!g)kc[J[J[b>>2]+4>>2]](b);J[d+140>>2]=0}J[d+128>>2]=2392964;b=J[d+132>>2];if(b){g=J[b+4>>2]-1|0;J[b+4>>2]=g;if(!g)kc[J[J[b>>2]+4>>2]](b);J[d+132>>2]=0}wc(k);b=J[d+148>>2];J[d+148>>2]=0;_:{if(!b)break _;J[699344]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(g)break _;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(c)continue;break}}fc= +d+160|0;return}c=Z()|0}Ed(g);break d}c=Z()|0}zc(d+148|0);ba(c|0);B()}B()}ba(Z()|0);B()}ea(0)|0;Bc();B()}function _cb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}h=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>> +2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[h+20>>2];k=J[b+80>>2];f=(J[b+88>>2]-k|0)+2|0;i:{if(f>>>0<=M[h+24>>2])break i;if(a)uc(a);J[h+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[h+20>>2]=a;if((f|0)==J[h+16>>2])break i;l=J[h+12>>2];if(l){uc(l);a=J[h+20>>2]}J[h+16>>2]=f;m=h,n=vc(f),J[m+12>>2]=n}J[h+28>>2]=a;J[h>>2]=k;J[h+4>>2]=2147483632;a=J[c+8>>2];f=J[J[a+4>>2]>>2];e=O[f>>3];g=e*e;e=O[f+16>>3];g=Y(g+e*e);e=O[f+8>>3];i=e*e;e=O[f+24>>3];e=Y(i+e*e);j=g*e;i=O[a+56>>3];if(j>i){g=g* +i/j;e=i*e/(e*g)}g=g<1?1:g;g=O[a+64>>3]*(g>i?i:g);j=g<1?1:g;g=j*256+.5;j:{if(g<4294967296&g>=0){f=~~g>>>0;break j}f=0}J[a+40>>2]=f;e=e<1?1:e;e=O[a+72>>3]*(e>i?i:e);g=e<1?1:e;e=g*256+.5;k:{if(e<4294967296&e>=0){f=~~e>>>0;break k}f=0}J[a+44>>2]=f;e=1/j*256+.5;l:{if(e<4294967296&e>=0){f=~~e>>>0;break l}f=0}J[a+48>>2]=f;e=1/g*256+.5;m:{if(e<4294967296&e>=0){f=~~e>>>0;break m}f=0}J[a+52>>2]=f;if(!yg(b,h))break h;while(1){Wl(h,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,h))continue;break}}break g}if(!K[f+1469| +0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2402,b|0,f|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2403,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}h=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;n:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>> +2]=3}Vc(b);o:{if(!J[b+12>>2])break o;J[b+1176>>2]=J[b+84>>2];a=J[h+20>>2];k=J[b+80>>2];f=(J[b+88>>2]-k|0)+2|0;p:{if(f>>>0<=M[h+24>>2])break p;if(a)uc(a);J[h+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[h+20>>2]=a;if((f|0)==J[h+16>>2])break p;l=J[h+12>>2];if(l){uc(l);a=J[h+20>>2]}J[h+16>>2]=f;m=h,n=vc(f),J[m+12>>2]=n}J[h+28>>2]=a;J[h>>2]=k;J[h+4>>2]=2147483632;a=J[c+8>>2];f=J[J[a+4>>2]>>2];e=O[f>>3];g=e*e;e=O[f+16>>3];g=Y(g+e*e);e=O[f+8>>3];i=e*e;e=O[f+24>>3];e=Y(i+e*e);j=g*e;i=O[a+56>>3];if(j>i){g=g* +i/j;e=i*e/(e*g)}g=g<1?1:g;g=O[a+64>>3]*(g>i?i:g);j=g<1?1:g;g=j*256+.5;q:{if(g<4294967296&g>=0){f=~~g>>>0;break q}f=0}J[a+40>>2]=f;e=e<1?1:e;e=O[a+72>>3]*(e>i?i:e);g=e<1?1:e;e=g*256+.5;r:{if(e<4294967296&e>=0){f=~~e>>>0;break r}f=0}J[a+44>>2]=f;e=1/j*256+.5;s:{if(e<4294967296&e>=0){f=~~e>>>0;break s}f=0}J[a+48>>2]=f;e=1/g*256+.5;t:{if(e<4294967296&e>=0){f=~~e>>>0;break t}f=0}J[a+52>>2]=f;if(!xg(b,h))break o;while(1){Wl(h,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,h))continue;break}}break n}if(!K[f+1469| +0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2404,b|0,f|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break n;uc(a);break n}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2405,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break n;uc(a)}break a}h=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;u:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>> +2]=3}Vc(b);v:{if(!J[b+12>>2])break v;J[b+1176>>2]=J[b+84>>2];a=J[h+20>>2];k=J[b+80>>2];f=(J[b+88>>2]-k|0)+2|0;w:{if(f>>>0<=M[h+24>>2])break w;if(a)uc(a);J[h+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[h+20>>2]=a;if((f|0)==J[h+16>>2])break w;l=J[h+12>>2];if(l){uc(l);a=J[h+20>>2]}J[h+16>>2]=f;m=h,n=vc(f),J[m+12>>2]=n}J[h+28>>2]=a;J[h>>2]=k;J[h+4>>2]=2147483632;a=J[c+8>>2];f=J[J[a+4>>2]>>2];e=O[f>>3];g=e*e;e=O[f+16>>3];g=Y(g+e*e);e=O[f+8>>3];i=e*e;e=O[f+24>>3];e=Y(i+e*e);j=g*e;i=O[a+56>>3];if(j>i){g=g* +i/j;e=i*e/(e*g)}g=g<1?1:g;g=O[a+64>>3]*(g>i?i:g);j=g<1?1:g;g=j*256+.5;x:{if(g<4294967296&g>=0){f=~~g>>>0;break x}f=0}J[a+40>>2]=f;e=e<1?1:e;e=O[a+72>>3]*(e>i?i:e);g=e<1?1:e;e=g*256+.5;y:{if(e<4294967296&e>=0){f=~~e>>>0;break y}f=0}J[a+44>>2]=f;e=1/j*256+.5;z:{if(e<4294967296&e>=0){f=~~e>>>0;break z}f=0}J[a+48>>2]=f;e=1/g*256+.5;A:{if(e<4294967296&e>=0){f=~~e>>>0;break A}f=0}J[a+52>>2]=f;if(!wg(b,h))break v;while(1){Wl(h,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,h))continue;break}}break u}if(!K[f+1469| +0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2406,b|0,f|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break u;uc(a);break u}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2407,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break u;uc(a)}break a}h=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;B:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);C:{if(!J[b+ +12>>2])break C;J[b+1176>>2]=J[b+84>>2];a=J[h+20>>2];k=J[b+80>>2];f=(J[b+88>>2]-k|0)+2|0;D:{if(f>>>0<=M[h+24>>2])break D;if(a)uc(a);J[h+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[h+20>>2]=a;if((f|0)==J[h+16>>2])break D;l=J[h+12>>2];if(l){uc(l);a=J[h+20>>2]}J[h+16>>2]=f;m=h,n=vc(f),J[m+12>>2]=n}J[h+28>>2]=a;J[h>>2]=k;J[h+4>>2]=2147483632;a=J[c+8>>2];f=J[J[a+4>>2]>>2];e=O[f>>3];g=e*e;e=O[f+16>>3];g=Y(g+e*e);e=O[f+8>>3];i=e*e;e=O[f+24>>3];e=Y(i+e*e);j=g*e;i=O[a+56>>3];if(j>i){g=g*i/j;e=i*e/(e*g)}g=g<1? +1:g;g=O[a+64>>3]*(g>i?i:g);j=g<1?1:g;g=j*256+.5;E:{if(g<4294967296&g>=0){f=~~g>>>0;break E}f=0}J[a+40>>2]=f;e=e<1?1:e;e=O[a+72>>3]*(e>i?i:e);g=e<1?1:e;e=g*256+.5;F:{if(e<4294967296&e>=0){f=~~e>>>0;break F}f=0}J[a+44>>2]=f;e=1/j*256+.5;G:{if(e<4294967296&e>=0){f=~~e>>>0;break G}f=0}J[a+48>>2]=f;e=1/g*256+.5;H:{if(e<4294967296&e>=0){f=~~e>>>0;break H}f=0}J[a+52>>2]=f;if(!vg(b,h))break C;while(1){Wl(h,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,h))continue;break}}break B}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>> +2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2408,b|0,f|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break B;uc(a);break B}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]= +0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2409,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break B;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function Zcb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d= +J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}h=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[h+20>>2];k=J[b+80>>2];f=(J[b+88>>2]-k|0)+2|0;i:{if(f>>>0<=M[h+24>>2])break i;if(a)uc(a);J[h+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[h+20>>2]=a;if((f|0)==J[h+16>>2])break i; +l=J[h+12>>2];if(l){uc(l);a=J[h+20>>2]}J[h+16>>2]=f;m=h,n=vc(f),J[m+12>>2]=n}J[h+28>>2]=a;J[h>>2]=k;J[h+4>>2]=2147483632;a=J[c+8>>2];f=J[J[a+4>>2]>>2];e=O[f>>3];g=e*e;e=O[f+16>>3];g=Y(g+e*e);e=O[f+8>>3];i=e*e;e=O[f+24>>3];e=Y(i+e*e);j=g*e;i=O[a+56>>3];if(j>i){g=g*i/j;e=i*e/(e*g)}g=g<1?1:g;g=O[a+64>>3]*(g>i?i:g);j=g<1?1:g;g=j*256+.5;j:{if(g<4294967296&g>=0){f=~~g>>>0;break j}f=0}J[a+40>>2]=f;e=e<1?1:e;e=O[a+72>>3]*(e>i?i:e);g=e<1?1:e;e=g*256+.5;k:{if(e<4294967296&e>=0){f=~~e>>>0;break k}f=0}J[a+44>> +2]=f;e=1/j*256+.5;l:{if(e<4294967296&e>=0){f=~~e>>>0;break l}f=0}J[a+48>>2]=f;e=1/g*256+.5;m:{if(e<4294967296&e>=0){f=~~e>>>0;break m}f=0}J[a+52>>2]=f;if(!yg(b,h))break h;while(1){Vl(h,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,h))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2410,b|0,f|0,d+32|0,d|0, +h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2411,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+ +20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}h=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;n:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);o:{if(!J[b+12>>2])break o;J[b+1176>>2]=J[b+84>>2];a=J[h+20>>2];k=J[b+80>>2];f=(J[b+88>>2]-k|0)+2|0;p:{if(f>>>0<=M[h+24>>2])break p;if(a)uc(a);J[h+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[h+20>>2]=a;if((f|0)==J[h+16>>2])break p; +l=J[h+12>>2];if(l){uc(l);a=J[h+20>>2]}J[h+16>>2]=f;m=h,n=vc(f),J[m+12>>2]=n}J[h+28>>2]=a;J[h>>2]=k;J[h+4>>2]=2147483632;a=J[c+8>>2];f=J[J[a+4>>2]>>2];e=O[f>>3];g=e*e;e=O[f+16>>3];g=Y(g+e*e);e=O[f+8>>3];i=e*e;e=O[f+24>>3];e=Y(i+e*e);j=g*e;i=O[a+56>>3];if(j>i){g=g*i/j;e=i*e/(e*g)}g=g<1?1:g;g=O[a+64>>3]*(g>i?i:g);j=g<1?1:g;g=j*256+.5;q:{if(g<4294967296&g>=0){f=~~g>>>0;break q}f=0}J[a+40>>2]=f;e=e<1?1:e;e=O[a+72>>3]*(e>i?i:e);g=e<1?1:e;e=g*256+.5;r:{if(e<4294967296&e>=0){f=~~e>>>0;break r}f=0}J[a+44>> +2]=f;e=1/j*256+.5;s:{if(e<4294967296&e>=0){f=~~e>>>0;break s}f=0}J[a+48>>2]=f;e=1/g*256+.5;t:{if(e<4294967296&e>=0){f=~~e>>>0;break t}f=0}J[a+52>>2]=f;if(!xg(b,h))break o;while(1){Vl(h,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,h))continue;break}}break n}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2412,b|0,f|0,d+32|0,d|0, +h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break n;uc(a);break n}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2413,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+ +20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break n;uc(a)}break a}h=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;u:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);v:{if(!J[b+12>>2])break v;J[b+1176>>2]=J[b+84>>2];a=J[h+20>>2];k=J[b+80>>2];f=(J[b+88>>2]-k|0)+2|0;w:{if(f>>>0<=M[h+24>>2])break w;if(a)uc(a);J[h+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[h+20>>2]=a;if((f|0)==J[h+16>>2])break w; +l=J[h+12>>2];if(l){uc(l);a=J[h+20>>2]}J[h+16>>2]=f;m=h,n=vc(f),J[m+12>>2]=n}J[h+28>>2]=a;J[h>>2]=k;J[h+4>>2]=2147483632;a=J[c+8>>2];f=J[J[a+4>>2]>>2];e=O[f>>3];g=e*e;e=O[f+16>>3];g=Y(g+e*e);e=O[f+8>>3];i=e*e;e=O[f+24>>3];e=Y(i+e*e);j=g*e;i=O[a+56>>3];if(j>i){g=g*i/j;e=i*e/(e*g)}g=g<1?1:g;g=O[a+64>>3]*(g>i?i:g);j=g<1?1:g;g=j*256+.5;x:{if(g<4294967296&g>=0){f=~~g>>>0;break x}f=0}J[a+40>>2]=f;e=e<1?1:e;e=O[a+72>>3]*(e>i?i:e);g=e<1?1:e;e=g*256+.5;y:{if(e<4294967296&e>=0){f=~~e>>>0;break y}f=0}J[a+44>> +2]=f;e=1/j*256+.5;z:{if(e<4294967296&e>=0){f=~~e>>>0;break z}f=0}J[a+48>>2]=f;e=1/g*256+.5;A:{if(e<4294967296&e>=0){f=~~e>>>0;break A}f=0}J[a+52>>2]=f;if(!wg(b,h))break v;while(1){Vl(h,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,h))continue;break}}break u}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2414,b|0,f|0,d+32|0,d|0, +h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break u;uc(a);break u}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2415,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+ +20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break u;uc(a)}break a}h=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;B:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);C:{if(!J[b+12>>2])break C;J[b+1176>>2]=J[b+84>>2];a=J[h+20>>2];k=J[b+80>>2];f=(J[b+88>>2]-k|0)+2|0;D:{if(f>>>0<=M[h+24>>2])break D;if(a)uc(a);J[h+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[h+20>>2]=a;if((f|0)==J[h+16>>2])break D;l=J[h+12>>2];if(l){uc(l); +a=J[h+20>>2]}J[h+16>>2]=f;m=h,n=vc(f),J[m+12>>2]=n}J[h+28>>2]=a;J[h>>2]=k;J[h+4>>2]=2147483632;a=J[c+8>>2];f=J[J[a+4>>2]>>2];e=O[f>>3];g=e*e;e=O[f+16>>3];g=Y(g+e*e);e=O[f+8>>3];i=e*e;e=O[f+24>>3];e=Y(i+e*e);j=g*e;i=O[a+56>>3];if(j>i){g=g*i/j;e=i*e/(e*g)}g=g<1?1:g;g=O[a+64>>3]*(g>i?i:g);j=g<1?1:g;g=j*256+.5;E:{if(g<4294967296&g>=0){f=~~g>>>0;break E}f=0}J[a+40>>2]=f;e=e<1?1:e;e=O[a+72>>3]*(e>i?i:e);g=e<1?1:e;e=g*256+.5;F:{if(e<4294967296&e>=0){f=~~e>>>0;break F}f=0}J[a+44>>2]=f;e=1/j*256+.5;G:{if(e< +4294967296&e>=0){f=~~e>>>0;break G}f=0}J[a+48>>2]=f;e=1/g*256+.5;H:{if(e<4294967296&e>=0){f=~~e>>>0;break H}f=0}J[a+52>>2]=f;if(!vg(b,h))break C;while(1){Vl(h,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,h))continue;break}}break B}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2416,b|0,f|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]= +0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break B;uc(a);break B}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2417,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,h|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2]; +if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break B;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function kBa(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=fc-1168|0;fc=e;a:{b:{c:{d:{if(!K[b+144|0]){a=Qc(e+128|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=Z()|0;Kc(a);ba(b|0);B()}h=si();J[e+1160>>2]=0;J[e+1164>>2]=J[685894];e:{while(1){f=J[J[c>>2]+8>>2];J[699344]=0;f=ga(f|0,c|0,e+128|0,1024)|0;g=J[699344]; +J[699344]=0;f:{if((g|0)!=1){if(f)break f;f=J[e+1160>>2];g:{if(!f)break g;while(1){if(!J[f+8>>2]|K[J[f+12>>2]]!=10)break g;J[699344]=0;ia(5313,e+84|0,e+1160|0,1,-1);c=J[699344];J[699344]=0;h:{if((c|0)!=1){c=J[e+84>>2];i:{if(c){f=J[J[c>>2]+28>>2];J[699344]=0;ca(f|0,e+48|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break i;c=Z()|0;break c}J[e+48>>2]=0}J[699344]=0;aa(5153,e+1160|0,e+48|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+48>>2];J[e+48>>2]=0;if(!c)break h;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>> +2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break h;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break h}break a}c=Z()|0;zc(e+48|0);break c}c=Z()|0;break b}c=J[e+1160>>2];J[e+1164>>2]=J[(c?c+12|0:2743576)>>2];wc(e+84|0);f=J[e+1160>>2];if(f)continue;break}}j:{k:{while(1){l:{m:{n:{i=J[e+1160>>2];if(!i)break n;g=J[i+8>>2];if(!g)break n;j=J[i+12>>2];f=g-1|0;if(!f){c=0;break l}c=f;o:{if((g|0)<=0){c=c+g|0;if((c|0)<0)break o}if((c|0)<=(g|0))break l}J[699344]=0;ka(5289);a=J[699344];J[699344]= +0;if((a|0)!=1)break d;break m}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break j}c=Z()|0;break b}if(K[c+j|0]!=10)break k;J[699344]=0;ca(5336,e+1160|0,f|0,0);c=J[699344];J[699344]=0;if((c|0)!=1)continue;break}c=Z()|0;break b}p:{q:{r:{s:{t:{if(eg(J[i+12>>2],47)){J[699344]=0;a=ja(5178,e+84|0,2393216,2386059,577,2414274,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;Kc(a);break b}c=J[J[h>>2]+ +8>>2];J[699344]=0;f=c;c=e+84|0;ia(f|0,c|0,h|0,b|0,e+1160|0);f=J[699344];J[699344]=0;if((f|0)!=1){u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{f=J[e+92>>2];N:{O:{if(!f|!J[f+8>>2])break O;J[699344]=0;f=e+48|0;ca(5401,f|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break u;c=J[e+48>>2];if(!c){wc(f);break O}c=J[c+8>>2];wc(e+48|0);if(c)break N}J[699344]=0;c=e+12|0;da(5396,c|0,b+72|0);f=J[699344];J[699344]=0;if((f|0)==1)break M;J[699344]=0;f=ga(5343,e+48|0,e+1160|0,c|0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break L;J[699344]=0;aa(5253,e+84|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break K;J[f+24>>2]=2392964;J[f>>2]=2392932;c=J[f+28>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)kc[J[J[c>>2]+4>>2]](c);J[f+28>>2]=0}J[f+16>>2]=2392964;c=J[f+20>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)kc[J[J[c>>2]+4>>2]](c);J[f+20>>2]=0}wc(f+8|0);J[e+36>>2]=2392964;J[e+12>>2]=2392932;c=J[e+40>>2];if(c){f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(!f)kc[J[J[c>>2]+4>>2]](c);J[e+40>>2]=0}J[e+28>>2]=2392964;c=J[e+32>>2]; +if(c){f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(!f)kc[J[J[c>>2]+4>>2]](c);J[e+32>>2]=0}wc(e+20|0)}f=J[b+120>>2];if(!f)break H;break I}c=Z()|0;break q}c=Z()|0;break J}c=Z()|0;Ed(f)}Ed(e+12|0);break q}P:{Q:{R:{S:{T:{U:{while(1){g=J[f+8>>2];J[699344]=0;c=e+12|0;da(5283,c|0,g+72|0);g=J[699344];J[699344]=0;if((g|0)==1)break U;J[699344]=0;g=e+4|0;da(5283,g|0,e+84|0);i=J[699344];J[699344]=0;if((i|0)==1)break T;J[699344]=0;i=ga(5287,c|0,g|0,-1)|0;j=J[699344];J[699344]=0;if((j|0)==1)break S;wc(g);wc(c);if(i){f=J[f>> +2];if(!f)break H;continue}break}b=J[f+8>>2];if(b)break Q;b=0;break P}c=Z()|0;break q}c=Z()|0;break R}c=Z()|0;wc(e+4|0)}wc(e+12|0);break q}J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break G;b=J[f+8>>2]}J[a>>2]=b;break p}J[e>>2]=0;c=J[J[h>>2]+12>>2];J[699344]=0;f=c;c=e+12|0;ia(f|0,c|0,h|0,b|0,e+1160|0);f=J[699344];J[699344]=0;if((f|0)==1)break F;J[699344]=0;aa(5153,e|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break E;c=J[e+12>>2];J[e+12>>2]=0;V:{if(!c)break V;J[699344]= +0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break s;if(f)break V;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break s}f=J[e>>2];if(!f)break C;c=J[b+132>>2];if(c){g=J[J[f>>2]+56>>2];J[699344]=0;da(g|0,f|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break w;f=J[e>>2]}if(K[b+136|0]){c=J[J[f>>2]+60>>2];J[699344]=0;da(c|0,f|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break w;f=J[e>>2]}J[699344]=0;ca(5415,h|0,f|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break w;J[699344]= +0;c=b+148|0;f=J[c>>2];h=J[699344];J[699344]=0;if((h|0)==1)break w;if(f&512){J[699344]=0;da(5398,J[e>>2],0);f=J[699344];J[699344]=0;if((f|0)==1)break w}J[699344]=0;c=J[c>>2];f=J[699344];J[699344]=0;if((f|0)==1)break w;if(c&1024){J[699344]=0;da(5398,J[e>>2],1);c=J[699344];J[699344]=0;if((c|0)==1)break w}f=J[b+120>>2];if(!f)break A;break B}c=Z()|0;break q}c=ea(2423616)|0;f=gc;break D}c=ea(2423616)|0;f=gc;zc(e+12|0)}if((sa(2423616)|0)!=(f|0))break v;d=oa(c|0)|0;J[699344]=0;da(5475,b|0,e+1160|0);c=J[699344]; +J[699344]=0;W:{X:{if((c|0)==1)break X;J[699344]=0;c=pa(5383)|0;f=J[699344];J[699344]=0;if((f|0)==1)break X;J[699344]=0;d=J[d+4>>2];d=d?d:2389698;f=J[699344];J[699344]=0;Y:{Z:{_:{if((f|0)==1)break _;J[699344]=0;d=aa(5149,e+12|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break _;f=J[J[c>>2]+20>>2];J[699344]=0;ga(f|0,c|0,b|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Z;wc(d);J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break X;J[699344]=0;ka(5053);a=J[699344];J[699344]= +0;if((a|0)==1)break Y;f=J[e>>2];break y}c=Z()|0;break W}c=Z()|0;wc(d);break W}c=Z()|0;zc(e);break q}c=Z()|0}J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break v;break a}J[699344]=0;ca(5218,e+4|0,2393682,e+1160|0);a=J[699344];J[699344]=0;$:{aa:{if((a|0)!=1){a=J[e+4>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,e+12|0,a|0,2386059,622,2414274,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break aa;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;Kc(a);break $}c= +Z()|0;zc(e);break q}c=Z()|0}wc(e+4|0);zc(e);break q}ba:{ca:{da:{while(1){h=J[f+8>>2];J[699344]=0;c=e+12|0;da(5283,c|0,h+72|0);h=J[699344];J[699344]=0;if((h|0)==1)break x;J[699344]=0;h=e+4|0;da(5283,h|0,e+84|0);g=J[699344];J[699344]=0;if((g|0)==1)break da;J[699344]=0;g=ga(5287,c|0,h|0,-1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break ca;wc(h);wc(c);if(g){f=J[f>>2];if(!f)break A;continue}break}J[699344]=0;aa(5153,e|0,f+8|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break z;break r}c=Z()|0;break ba}c=Z()| +0;wc(e+4|0)}wc(e+12|0);zc(e);break q}c=b+112|0;ea:{fa:{if((d|0)>=0){J[699344]=0;DA(e+12|0,c,d);b=J[699344];J[699344]=0;if((b|0)==1)break fa;b=J[e+12>>2];if(b)break ea}J[699344]=0;b=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break r;J[b>>2]=0;J[b+4>>2]=0;d=J[e>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break r;d=J[e>>2]}else d=0;J[b+8>>2]=d;J[699344]=0;vf(c,b);b=J[699344];J[699344]=0;if((b|0)==1)break r;break z}c=Z()|0;zc(e);break q}J[e+16>>2]=J[e+16>>2];J[e+ +12>>2]=b;J[699344]=0;b=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break r;J[b>>2]=0;J[b+4>>2]=0;d=J[e>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break r;d=J[e>>2]}else d=0;J[b+8>>2]=d;J[699344]=0;ca(5476,c|0,e+12|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break r}b=J[e>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break w;f=J[e>>2]}else f=0;J[a>>2]=f}J[e>>2]=0;if(!f)break p;J[699344]=0;a=J[f+4>>2]-1|0;J[f+4>>2]=a;b=J[699344]; +J[699344]=0;if((b|0)!=1){if(a)break p;J[699344]=0;$(5147,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break p}break a}c=Z()|0;zc(e);break q}c=Z()|0}zc(e);break q}c=Z()|0;break q}c=Z()|0;break b}c=Z()|0;break b}ea(0)|0;Bc();break d}c=Z()|0;zc(e)}Ed(e+84|0);break b}J[e+108>>2]=2392964;J[e+84>>2]=2392932;a=J[e+112>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[e+112>>2]=0}J[e+100>>2]=2392964;a=J[e+104>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[e+104>>2]=0}wc(e+ +92|0)}wc(e+1160|0);fc=e+1168|0;return}c=Z()|0;break b}J[699344]=0;f=ga(5339,e+120|0,e+128|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){J[699344]=0;aa(5340,e+1160|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;wc(f);continue}break}c=Z()|0;break b}c=Z()|0;wc(f);break b}B()}wc(e+84|0)}wc(e+1160|0);ba(c|0);B()}ea(0)|0;Bc();B()}function uCa(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;i=fc-1072|0;fc=i;j=i+48|0;d=fc-128|0;fc=d;J[d+120>>2]=0;J[d+124>>2]=J[685894];J[d+104>>2]=0;J[d+ +108>>2]=0;J[699344]=0;J[d+96>>2]=0;J[d+100>>2]=0;g=d+96|0;J[g>>2]=2397928;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((c|0)!=1){H[g+16|0]=0;J[699344]=0;da(5373,2405946,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[a+8>>2];if((c|0)!=-1){J[699344]=0;J[d+8>>2]=c&255;J[d>>2]=c>>>16&255;J[d+4>>2]=c>>>8&255;ga(5350,d+120|0,2407826,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[d+120>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;da(5371, +g|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break e}J[699344]=0;da(5373,2406059,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{c=J[a+12>>2];if(!((c|0)<=0&(!c|(c|0)<-4))){J[699344]=0;e=d+120|0;aa(5224,e|0,2408264)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[a+12>>2];y:{if((c|0)<0){J[699344]=0;aa(5355,e|0,J[2402464-(c<<2)>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;break y}J[699344]=0;c=aa(5290,d+80|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break x;J[699344]= +0;e=d+88|0;ca(5218,e|0,2408359,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break w;J[699344]=0;aa(5340,d+120|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break v;wc(e);wc(c)}J[699344]=0;aa(5355,d+120|0,2408422)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[d+120>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;da(5371,g|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break e}J[699344]=0;da(5373,2406397,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[a+16>>2];if(c-1>>>0>3)break o;J[699344]=0;c=aa(5149, +d- -64|0,J[(c<<2)+2402688>>2])|0;e=J[699344];J[699344]=0;if((e|0)==1)break s;J[699344]=0;e=d+72|0;ca(5218,e|0,2408852,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break r;J[699344]=0;ca(5291,d+88|0,e|0,2408422);e=J[699344];J[699344]=0;if((e|0)==1)break q;e=J[d+88>>2];if(!e)break u;f=J[J[e>>2]+28>>2];J[699344]=0;ca(f|0,d+56|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break t;a=Z()|0;break g}a=Z()|0;break d}a=Z()|0;wc(c);break d}a=Z()|0;wc(d+88|0);wc(c);break d}J[d+56>>2]=0}J[699344]=0;aa(5153,d+120|0, +d+56|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){e=J[d+56>>2];J[d+56>>2]=0;if(!e)break p;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break p;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break p}break b}a=Z()|0;zc(d+56|0);break g}a=Z()|0;break d}a=Z()|0;wc(c);break d}a=Z()|0;break f}e=J[d+120>>2];J[d+124>>2]=J[(e?e+12|0:2743576)>>2];wc(d+88|0);wc(d+72|0);wc(c);c=J[d+120>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;da(5371,g|0,c|0);c=J[699344];J[699344]= +0;if((c|0)==1)break e}J[699344]=0;da(5373,2406566,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;if(J[a+20>>2]|J[a+24>>2]){J[699344]=0;c=aa(5149,d+40|0,2410599)|0;e=J[699344];J[699344]=0;z:{A:{B:{C:{D:{if((e|0)!=1){e=J[a+20>>2];J[699344]=0;f=d+48|0;ca(5291,f|0,c|0,J[((e>>>0<=5?e:0)<<2)+2402848>>2]);e=J[699344];J[699344]=0;if((e|0)==1)break D;J[699344]=0;h=d+56|0;ca(5291,h|0,f|0,2410657);e=J[699344];J[699344]=0;if((e|0)==1)break C;e=J[a+24>>2];J[699344]=0;f=d+72|0;ca(5291,f|0,h|0,J[((e>>>0<=5?e: +0)<<2)+2402848>>2]);e=J[699344];J[699344]=0;if((e|0)==1)break B;J[699344]=0;ca(5291,d+88|0,f|0,2408422);e=J[699344];J[699344]=0;if((e|0)==1)break A;e=J[d+88>>2];E:{if(e){f=J[J[e>>2]+28>>2];J[699344]=0;ca(f|0,d+32|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break E;a=Z()|0;break k}J[d+32>>2]=0}J[699344]=0;aa(5153,d+120|0,d+32|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){e=J[d+32>>2];J[d+32>>2]=0;if(!e)break z;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break z;J[699344]= +0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break z}break b}a=Z()|0;zc(d+32|0);break k}a=Z()|0;break d}a=Z()|0;wc(c);break d}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}e=J[d+120>>2];J[d+124>>2]=J[(e?e+12|0:2743576)>>2];wc(d+88|0);wc(d+72|0);wc(d+56|0);wc(d+48|0);wc(c);c=J[d+120>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;da(5371,g|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break e}J[699344]=0;da(5373,2407455,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;F:{G:{H:{I:{J:{K:{L:{if(J[a+48>> +2]){J[699344]=0;e=aa(5149,d+88|0,2410801)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;aa(5355,e|0,2407455)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;f=a+44|0;c=f;h=J[c+24>>2];J[d+76>>2]=c;J[d+72>>2]=h;c=J[699344];J[699344]=0;if((c|0)==1)break L;M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{c=J[d+72>>2];W:{if(!c)break W;while(1){if((f|0)!=J[d+76>>2]){J[699344]=0;da(5243,d+72|0,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break U;break l}J[699344]=0;h=d+24|0;ca(5218,h|0,2411096,c+16|0);c= +J[699344];J[699344]=0;if((c|0)==1)break V;J[699344]=0;ca(5291,d+32|0,h|0,2411137);c=J[699344];J[699344]=0;if((c|0)==1)break T;h=J[d+72>>2];if(!((f|0)==J[d+76>>2]?h:0)){J[699344]=0;da(5243,d+72|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break l;a=Z()|0;break O}J[699344]=0;c=d+48|0;l=d+32|0;ca(5292,c|0,l|0,h+24|0);h=J[699344];J[699344]=0;if((h|0)==1)break S;J[699344]=0;h=d+56|0;ca(5291,h|0,c|0,2411182);k=J[699344];J[699344]=0;if((k|0)==1)break R;J[699344]=0;aa(5340,e|0,h|0)|0;k=J[699344];J[699344]= +0;if((k|0)==1)break Q;wc(h);wc(c);wc(l);wc(d+24|0);c=J[d+72>>2];if(!c)break W;c=J[c>>2];J[d+72>>2]=c;if(c)continue;break}}J[699344]=0;aa(5355,e|0,2411206)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break M;break m}a=Z()|0;wc(e);break d}a=Z()|0;wc(e);break d}a=Z()|0;break N}a=Z()|0;break O}a=Z()|0;break P}a=Z()|0;wc(d+56|0)}wc(d+48|0)}wc(d+32|0)}wc(d+24|0);wc(e);break d}c=J[e>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;da(5371,g|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break m;wc(e)}J[699344]=0;da(5373, +2423650,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[a+36>>2];if(c)while(1){e=J[c+8>>2];J[699344]=0;f=d+72|0;da(5374,f|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break K;e=J[d+72>>2];e=J[(e?e+12|0:2743576)>>2];J[699344]=0;da(5371,g|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break J;wc(f);c=J[c>>2];if(c)continue;break}J[699344]=0;$(5248,d+72|0);c=J[699344];J[699344]=0;if((c|0)==1)break I;e=J[d+72>>2];c=J[g+8>>2];if(c)while(1){f=J[c+8>>2];J[699344]=0;ma(5357,f|0,e|0,1,0,0);f=J[699344];J[699344]= +0;if((f|0)==1)break G;c=J[c>>2];if(c)continue;break}J[j>>2]=0;J[j+4>>2]=J[685894];c=J[J[e>>2]+28>>2];J[699344]=0;c=_(c|0,e|0)|0;f=J[699344];J[699344]=0;X:{if((f|0)==1)break X;f=J[J[e>>2]+20>>2];J[699344]=0;ha(f|0,e|0,0,0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break X;J[699344]=0;f=aa(5169,j|0,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break X;h=J[J[e>>2]+8>>2];J[699344]=0;ga(h|0,e|0,f|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break H}a=Z()|0;wc(j);break F}a=Z()|0;wc(e);break d}a=Z()|0;break d}a= +Z()|0;wc(d+72|0);break d}a=Z()|0;break d}c=J[d+72>>2];J[d+72>>2]=0;Y:{if(!c)break Y;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;j=J[699344];J[699344]=0;if((j|0)==1)break b;if(e)break Y;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break b}id(g);wc(d+120|0);fc=d+128|0;break a}a=Z()|0}zc(d+72|0);break d}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;wc(e);break d}B()}wc(d+88|0)}wc(d+72|0)}wc(d+56|0)}wc(d+48|0);wc(c);break d}wc(d+88|0)}wc(d+72|0);wc(c);break d}a=Z()|0}id(g)}wc(d+120|0);ba(a|0);B()}ea(0)| +0;Bc();B()}d=J[i+48>>2];g=J[(d?d+12|0:2743576)>>2];J[i+24>>2]=0;J[i+28>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;J[699344]=0;d=i+16|0;J[d>>2]=2397928;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;c=J[699344];J[699344]=0;Z:{_:{$:{if((c|0)!=1){H[d+16|0]=0;J[699344]=0;da(5371,d|0,g|0);g=J[699344];J[699344]=0;if((g|0)==1){a=Z()|0;id(d);break $}wc(i+48|0);J[i+8>>2]=0;J[i+12>>2]=J[685894];aa:{ba:{ca:{while(1){da:{g=J[J[b>>2]+8>>2];J[699344]=0;c=i+48|0;g=ga(g|0,b|0,c|0,1024)|0;e=J[699344];J[699344]=0;if((e|0)==1)break da; +if(!g)break aa;J[699344]=0;g=ga(5339,i+40|0,c|0,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ca;J[699344]=0;aa(5340,i+8|0,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break ba;wc(g);continue}break}b=Z()|0;break Z}b=Z()|0;break Z}b=Z()|0;wc(g);break Z}b=J[i+8>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;da(5371,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break _;J[699344]=0;da(5372,a|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break _;wc(i+8|0);id(d);fc=i+1072|0;return}a=Z()|0}wc(i+48|0);ba(a|0);B()}b= +Z()|0}wc(i+8|0);id(d);ba(b|0);B()}function Vpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;f=fc-48|0;fc=f;p=J[b+100>>2];e=yd(a,0);J[f+36>>2]=e;a:{if(e)break a;J[f+28>>2]=0;J[f+32>>2]=8;J[f+20>>2]=1;J[f+24>>2]=1;J[f+40>>2]=0;i=he(p,64,f+40|0);b:{c:{d:{e:{e=J[f+40>>2];if(!e){I[i+12>>1]=32767;J[i+36>>2]=f+20;d=J[a+4>>2];J[i+56>>2]=p;J[i+60>>2]=d;J[i+40>>2]=0;J[i+44>>2]=0;J[i+48>>2]=0;J[i+52>>2]=p;r=J[a+28>>2];J[f+44>>2]=0;e=1024; +h=_c(r,1,0,1024,0,f+44|0);f:{if(J[f+44>>2])break f;J[f+8>>2]=1644;H[h|0]=0;m=256;n=1;while(1){j=e;g:while(1){g=0;d=0;while(1){if(!(g&1)){k=rN(a,h+o|0,j-o|0);l=k+o|0;o=0}if((d|0)<(l|0)){e=H[d+h|0]==(m|0);m=e?256:m;d=d+e|0}h:{i:{e=d;if((l|0)>(e|0))while(1){j:{t=e+h|0;s=K[t|0];switch(s-10|0){case 0:case 3:break i;default:break j}}e=e+1|0;if((l|0)!=(e|0))continue;break}if(!k)break f;if(!d){if(j>>>0<65536)break h;J[f+44>>2]=6;break f}k=l-d|0;cd(h,d+h|0,k);o=k;l=d;continue g}H[t|0]=0;k:{l:{u=d+h|0;switch(K[u| +0]-26|0){case 0:case 9:break k;default:break l}}if((d|0)>=(e|0))break k;m=e-d|0;q=f+8|0;d=kc[J[f+8>>2]](u,m,n,q,i)|0;J[f+44>>2]=d;if((d|0)==-1){d=kc[J[f+8>>2]](u,m,n,q,i)|0;J[f+44>>2]=d}if(d)break f}H[t|0]=s;m=(s|0)==10?13:(s|0)==13?10:256;g=1;d=e+1|0;n=n+1|0;continue}break}break}e=j<<1;h=_c(r,1,j,e,h,f+44|0);o=j;if(!J[f+44>>2])continue;break}}if(h)kc[J[r+8>>2]](r,h);a=J[f+44>>2];J[f+40>>2]=a;g=J[i+32>>2];if(a)break d;m:{n:{if(g){if(J[g+28>>2]!=8)I[g+32>>1]=L[g+4>>1];o:{if(!J[J[i+36>>2]>>2]|!(J[g+ +52>>2]|J[g+64>>2]))break o;d=I[i+12>>1];a=I[i+16>>1]-d|0;if((a|0)!=L[g+4>>1])I[g+4>>1]=a;if(L[g+8>>1]!=(d&65535))I[g+8>>1]=d;d=L[i+18>>1];if((d|0)!=L[g+12>>1])I[g+12>>1]=d;e=L[i+20>>1];a=e<<16>>16;if((e|0)!=L[g+14>>1]){I[g+14>>1]=e;I[g+10>>1]=0-e}a=(d<<16>>16)+a|0;if((a|0)==L[g+6>>1])break o;I[g+6>>1]=a}e=J[i>>2];if(e&1)break n;a=J[g+88>>2];if(!a)break c;a=_c(J[g+100>>2],1,a,a+1|0,J[g+84>>2],f+40|0);g=J[i+32>>2];J[g+84>>2]=a;if(J[f+40>>2])break d;H[a+J[g+88>>2]|0]=0;g=J[i+32>>2];break c}e=J[i>>2]; +if(!(e&1))break m}if(e&32)break e;J[f+40>>2]=185;break d}J[f+40>>2]=3;g=0;break c}if(!i)break b;break c}J[f+40>>2]=186}I8(g);a=J[i+32>>2];if(a)kc[J[p+8>>2]](p,a);g=0;J[i+32>>2]=0}d=J[i+52>>2];if(d){a=J[i+40>>2];if(a)kc[J[d+8>>2]](d,a);J[i+48>>2]=0;J[i+52>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0}a=J[i+24>>2];if(a)kc[J[p+8>>2]](p,a);J[i+24>>2]=0;if(i)kc[J[p+8>>2]](p,i);e=J[f+40>>2]}J[f+36>>2]=e;p:{q:{r:{s:{t:{u:{v:{if((e&255)!=176){if(e)break a;J[b+140>>2]=g;if(!(!(c&65535)|(c|0)<=0)){JN(b);e=6;break a}J[b>> +2]=1;J[b+4>>2]=0;J[b+8>>2]=J[b+8>>2]|18;w:{x:{if(!g|!J[g+72>>2])break x;c=Pi(240100,J[g+92>>2]);y:{if(!c)break y;a=J[g+80>>2];if(!a)break y;a=a+(J[c>>2]<<4)|0;if(J[a+4>>2]!=1)break y;a=J[a+12>>2];if(!a)break y;z:{A:{a=K[a|0];switch(a-67|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:break y;case 0:case 10:break z;default:break A}}switch(a-99|0){case 0:case 10:break z;default:break y}}J[b+8>>2]=J[b+8>>2]|4}if(!J[g+72>>2])break x;c=Pi(240243,J[g+92>>2]);if(!c)break x;a=J[g+80>>2]; +if(!a)break x;a=J[(a+(J[c>>2]<<4)|0)+12>>2];if(!a)break x;v=b,w=zk(p,a,f+36|0),J[v+20>>2]=w;e=J[f+36>>2];if(!e)break w;break a}J[b+20>>2]=0}n=0;J[f+8>>2]=0;J[b+12>>2]=0;l=J[b+100>>2];h=8;q=7;a=255124;t=1;j=J[b+140>>2];if(!j|!J[j+72>>2])break q;d=0;o=0;e=Pi(254533,J[j+92>>2]);B:{if(!e)break B;c=J[j+80>>2];if(!c)break B;e=c+(J[e>>2]<<4)|0;if(J[e+4>>2]!=1)break B;c=J[e+12>>2];if(!c)break B;C:switch(K[c|0]-73|0){case 0:case 6:case 32:case 38:break C;default:break B}J[b+12>>2]=J[b+12>>2]|1;o=(K[J[e+12>> +2]]&223)==79?255104:255112}if(!J[j+72>>2]){m=0;c=0;k=0;r=0;e=0;j=1;break r}k=0;n=1;e=Pi(254719,J[j+92>>2]);c=0;D:{if(!e)break D;d=J[j+80>>2];c=0;if(!d)break D;d=d+(J[e>>2]<<4)|0;c=0;if(J[d+4>>2]!=1)break D;d=J[d+12>>2];c=0;if(!d)break D;c=0;if((K[d|0]|32)!=98)break D;J[b+12>>2]=J[b+12>>2]|2;n=0;c=255119}if(!J[j+72>>2])break u;m=0;e=Pi(254519,J[j+92>>2]);k=0;E:{if(!e)break E;d=J[j+80>>2];k=0;if(!d)break E;d=d+(J[e>>2]<<4)|0;k=0;if(J[d+4>>2]!=1)break E;d=J[d+12>>2];k=0;if(!d)break E;e=K[d|0];k=0;if(!e)break E; +k=0;if((e|0)==78)break E;k=0;if((e|0)==110)break E;k=d}if(!J[j+72>>2])break t;e=Pi(242957,J[j+92>>2]);if(!e)break u;d=J[j+80>>2];if(!d)break u;d=d+(J[e>>2]<<4)|0;if(J[d+4>>2]!=1)break t;m=J[d+12>>2];if(!m)break u;d=0;e=K[m|0];if(!e|(e|0)==78|(e|0)==110)break v;d=Yc(m);e=d+1|0;break s}JN(b);e=2;break a}m=0;e=0;break s}m=0}d=0;e=0}if(n){c=0;r=0;j=1;break r}r=Yc(c);e=(r+e|0)+1|0;j=0}n=0;F:{if(!o){s=0;break F}s=Yc(o);e=(s+e|0)+1|0}t=!o;u=!k;if(k){n=Yc(k);e=(n+e|0)+1|0}if(!e)break p;a=m;q=d;h=e;break p}r= +0;k=0;o=0;c=0;j=1;s=0;u=1}h=he(l,h,f+8|0);J[b+24>>2]=h;e=J[f+8>>2];if(e)break a;if(a){m=xc(h,a,q);G:{if(!q)break G;l=0;e=0;if(q>>>0>=4){h=q&-4;a=0;while(1){d=e+m|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|1)|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|2)|0;if(K[d|0]==32)H[d|0]=45;d=m+(e|3)|0;if(K[d|0]==32)H[d|0]=45;e=e+4|0;a=a+4|0;if((h|0)!=(a|0))continue;break}}d=q&3;if(!d)break G;while(1){a=e+m|0;if(K[a|0]==32)H[a|0]=45;e=e+1|0;l=l+1|0;if((d|0)!=(l|0))continue;break}}h=m+q|0}if(!j){if(J[b+24>>2]!=(h|0)){H[h|0]=32;h= +h+1|0}h=xc(h,c,r)+r|0}if(!t){if(J[b+24>>2]!=(h|0)){H[h|0]=32;h=h+1|0}h=xc(h,o,s)+s|0}if(!u){if(J[b+24>>2]!=(h|0)){H[h|0]=32;h=h+1|0}h=xc(h,k,n);H:{if(!n)break H;l=0;e=0;if(n>>>0>=4){d=n&-4;a=0;while(1){c=e+h|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|1)|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|2)|0;if(K[c|0]==32)H[c|0]=45;c=h+(e|3)|0;if(K[c|0]==32)H[c|0]=45;e=e+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=n&3;if(!c)break H;while(1){a=e+h|0;if(K[a|0]==32)H[a|0]=45;e=e+1|0;l=l+1|0;if((c|0)!=(l|0))continue;break}}h= +h+n|0}H[h|0]=0;e=J[f+8>>2];J[f+36>>2]=e;if(e)break a;a=J[g+48>>2];J[b+28>>2]=1;J[b+16>>2]=a+1;c=_c(p,16,0,1,0,f+36|0);J[b+32>>2]=c;e=J[f+36>>2];if(e)break a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;e=J[g+40>>2];if(e-32768>>>0<=4294901760){e=(e|0)<0?-32767:32767;J[g+40>>2]=e}l=J[g+44>>2];if(l-32768>>>0<=4294901760){l=(l|0)<0?-32767:32767;J[g+44>>2]=l}I[c>>1]=e+l;a=os(g,240352);I:{if(a){a=J[a+12>>2];d=32767;if(a-327666>>>0<4294311965)break I;a=(a+5|0)/10|0;d=a>>31;d=(a^d)-d|0;break I}d=Od(I[c>> +1],2,3)}I[c+2>>1]=d;a=os(g,240524);J:{if(a){a=J[a+12>>2];d=32767;if(a-328899>>>0<4294309499)break J;d=a;a=a>>31;d=Od((d^a)-a|0,460800,72270);break J}a=J[g+16>>2];if(a){d=a>>>0>32767?32767:a<<6;break J}d=I[c+2>>1]<<6}J[c+4>>2]=d;a=os(g,240650);if(a){d=J[a+12>>2];a=d>>31;J[c+12>>2]=d-32768>>>0<4294901761?2097088:(a^d)-a<<6}a=os(g,240800);a=J[(a?a+12|0:g+20|0)>>2];d=0;K:{if(!a)break K;d=32767;if(a-32768>>>0<4294901761)break K;d=a;a=a>>31;d=(d^a)-a|0}L:{M:{N:{O:{a=os(g,240903);a=J[(a?a+12|0:g+24|0)>> +2];if(a){if(a-32768>>>0<4294901761)break O;e=a;a=a>>31;a=(e^a)-a|0;e=J[c+12>>2];if(e)break M;e=J[c+4>>2];J[c+12>>2]=e;if(!(a&65535))break L;j=c+12|0;break N}e=J[c+12>>2];if(e)break L;e=J[c+4>>2];J[c+12>>2]=e;break L}a=32767;e=J[c+12>>2];if(e)break M;e=J[c+4>>2];J[c+12>>2]=e;j=c+12|0}e=Od(e,a&65535,72);J[j>>2]=e}if(!d)break L;a=a&65535;if(!a)break L;e=Od(e,d,a)}J[c+8>>2]=e;q=J[g+56>>2];l=_c(p,8,0,J[g+48>>2],0,f+36|0);J[b+144>>2]=l;e=J[f+36>>2];if(e)break a;J[b+148>>2]=0;j=J[g+48>>2];P:{if(!j)break P; +k=J[g+36>>2];e=0;if((j|0)!=1){c=j&-2;o=0;while(1){d=J[(q+P(e,36)|0)+4>>2];a=l+(e<<3)|0;I[a+4>>1]=e;J[a>>2]=d;if((d|0)==(k|0))J[b+148>>2]=e;h=e|1;d=J[(q+P(h,36)|0)+4>>2];a=l+(h<<3)|0;I[a+4>>1]=h;J[a>>2]=d;if((d|0)==(k|0))J[b+148>>2]=h;e=e+2|0;o=o+2|0;if((c|0)!=(o|0))continue;break}}if(!(j&1))break P;c=J[(q+P(e,36)|0)+4>>2];a=l+(e<<3)|0;I[a+4>>1]=e;J[a>>2]=c;if((c|0)!=(k|0))break P;J[b+148>>2]=e}Q:{c=os(g,241010);a=os(g,241174);if(!c|!a|(J[c+4>>2]!=1|J[a+4>>2]!=1))break Q;if(!J[c+12>>2])break Q;a=J[a+ +12>>2];if(!a)break Q;d=a;a=f+36|0;v=b,w=zk(p,d,a),J[v+132>>2]=w;e=J[f+36>>2];if(e)break a;a=zk(p,J[c+12>>2],a);J[b+136>>2]=a;e=J[f+36>>2];if(e)break a;R:{S:{T:{U:{if(!((K[a|0]|32)!=105|(K[a+1|0]|32)!=115|(K[a+2|0]|32)!=111)){a=a+3|0;if(!Ic(a,241319))break U;if(!Ic(a,241454))if(!Ic(J[b+132>>2],241559))break U;if(!Ic(a,241654))break T}J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;break R}J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;break S}a=Ic(J[b+132>>2],241764);J[f+12>>2]=0;J[f+16>>2]=0;J[f+8>>2]=b;if(a)break R}J[f+ +12>>2]=1970170211;J[f+16>>2]=65539}e=bl(252336,0,f+8|0,0);break a}J[f+12>>2]=1094995778;J[f+16>>2]=7;J[f+8>>2]=b;e=bl(252336,0,f+8|0,0);if(!J[b+36>>2])break a;J[b+92>>2]=J[J[b+40>>2]>>2]}fc=f+48|0;return e|0}function cP(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,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=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;F=a+16|0;G=a+12|0;da=a+80|0;f=J[a+72>>2];while(1){H[a+101|0]=0; +if(!f){d=J[a+96>>2]+1|0;J[a+96>>2]=d;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;H[a+100|0]=1;a:{c=J[a+76>>2];b=J[c>>2];if((b|0)>(d|0)){f=J[J[c+8>>2]+(d<<2)>>2];break a}f=da;if((b|0)==(d|0))break a;return 1}J[a+72>>2]=f}b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(K[f|0]){case 0:if(!K[a+100|0]){M=J[a+20>>2];I=J[a+32>>2];n=J[M+4>>2]+(I<<2)|0;break m}Q=0;H[a+100|0]=0;b=0;break d;case 1:if(!K[a+100|0]){y=J[a+32>>2];b=J[a+20>>2];W=J[b>>2];if((y|0)>=(W|0))break n;n=J[b+4>>2]+(y<<2)|0;break l}H[a+ +100|0]=0;R=K[f+1|0];b=0;break e;case 2:if(!K[a+100|0]){z=J[a+36>>2]+1|0;break k}J[a+48>>2]=0;J[a+52>>2]=0;j=J[a+8>>2];if((j|0)>0){g=J[G>>2];b=0;c=0;i=0;while(1){k=J[g>>2];if((k|0)>0){o=J[g+12>>2];l=J[g+8>>2];e=J[g+4>>2];h=0;while(1){d=k+(h^-1)|0;m=o<>2];b=b?(b|0)<(m|0)?b:m:m;d=l<>2];c=c?(c|0)<(d|0)?c:d:d;e=e+20|0;h=h+1|0;if((k|0)!=(h|0))continue;break}J[a+52>>2]=b;J[a+48>>2]=c}g=g+16|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}H[a+100|0]=0;S=K[f+1|0];b=0;break f;case 3:if(!K[a+100| +0]){A=J[a+36>>2]+1|0;break j}J[a+48>>2]=0;J[a+52>>2]=0;T=J[a+8>>2];if((T|0)>0){g=J[G>>2];b=0;c=0;i=0;while(1){m=J[g>>2];if((m|0)>0){o=J[g+12>>2];l=J[g+8>>2];e=J[g+4>>2];h=0;while(1){d=m+(h^-1)|0;j=o<>2];b=b?(b|0)<(j|0)?b:j:j;d=l<>2];c=c?(c|0)<(d|0)?c:d:d;e=e+20|0;h=h+1|0;if((m|0)!=(h|0))continue;break}J[a+52>>2]=b;J[a+48>>2]=c}g=g+16|0;i=i+1|0;if((T|0)!=(i|0))continue;break}}H[a+100|0]=0;X=J[a+60>>2];b=0;break g;case 4:break o;default:break b}if(!K[a+100|0]){C=J[a+36>>2]+1|0;break i}H[a+ +100|0]=0;N=J[f+4>>2];J[a+24>>2]=N;s=J[a+12>>2]+(N<<4)|0;b=0;break h}fa(199964,198897,190,212222);B()}b=1;break d}b=1;break e}b=1;break f}b=1;break g}b=1}p:while(1){q:{r:{if(!b){J[F>>2]=s;if(J[f+8>>2]<=(N|0))break b;q=J[s+8>>2];x=J[s>>2];g=x-1|0;b=J[s+4>>2];e=q<>2];J[a+48>>2]=e;i=J[s+12>>2];h=i<>2];J[a+52>>2]=h;if((x|0)>=2){c=1;if((x|0)!=2){m=g&-2;k=0;while(1){j=(c^-1)+x|0;d=i<>2];l=(d|0)>(h|0)?h:d;o=(x-c|0)-2|0;d=i<>2];h=(d|0)>(l|0)?l:d;d=q<>2];l=(e| +0)<(d|0)?e:d;d=q<>2];e=(d|0)>(l|0)?l:d;c=c+2|0;b=b+40|0;k=k+2|0;if((m|0)!=(k|0))continue;break}}if(g&1){d=(c^-1)+x|0;c=i<>2];h=(c|0)>(h|0)?h:c;b=q<>2];e=(b|0)>(e|0)?e:b}J[a+52>>2]=h;J[a+48>>2]=e}Y=J[a+60>>2];b=0;break r}J[a+36>>2]=C;s:{t:{if(J[a>>2]<=(C|0)){t=J[a+20>>2];break t}t=J[a+20>>2];if(J[f+12>>2]>(C|0))break s}b=1;break r}n=J[t+4>>2]+(J[a+32>>2]<<2)|0;b=J[n>>2];if((C|0)>=(b|0))break c;C=C+1|0;break q}u:while(1){v:{w:{x:{if(!b){J[a+44>>2]=Y;if(J[a+68>>2]<=(Y|0))break x; +Z=J[a+56>>2];b=0;break v}t=t+20|0;J[a+20>>2]=t;D=J[a+28>>2]+1|0;J[a+28>>2]=D;s=J[a+16>>2];x=J[s>>2];break w}N=J[a+24>>2]+1|0;J[a+24>>2]=N;s=s+16|0;b=0;continue p}b=1}while(1){y:{z:{A:{B:{C:{if(!b){J[a+40>>2]=Z;if(J[a+64>>2]<=(Z|0))break C;D=K[f+1|0];J[a+28>>2]=D;t=J[s+4>>2]+P(D,20)|0;J[a+20>>2]=t;b=1;continue}if(!((x|0)<=(D|0)|K[f+2|0]<=(D|0))){m=J[t>>2];if(!m)break z;j=J[s+12>>2];r=(D^-1)+x|0;p=j<>2];u=(o+l|0)/(p|0)|0;d=J[s+8>>2];v=d<>2];e=(c+b|0)/(v|0)|0; +h=J[t+12>>2];q=h+r|0;k=J[a+40>>2];g=J[t+8>>2];i=g+r|0;if(!((k|0)%(d<>2];if(!((b|0)%(j<>g)-(e>>>g|0)|0)+P(J[t+16>>2],((b+o|0)/(p|0)>>h)-(u>>>h|0)|0)|0;J[a+32>>2]=b;C=0;if((b|0)>=(m|0))break B;break q}c=J[a+40>>2];b=J[a+48>>2];Z=c+b-(c|0)%(b|0)|0;break y}c=J[a+44>>2];b=J[a+52>>2];Y=c+b-(c|0)%(b|0)|0;break A}fa(199964,198897,478,212270);B()}b=0;continue u}b=1;continue u}b=0;continue}}}b= +1;continue}}D:while(1){E:{F:{if(!b){J[a+44>>2]=X;if(J[a+68>>2]<=(X|0))break b;_=J[a+56>>2];b=0;break F}J[a+36>>2]=A;G:{H:{if(J[a>>2]<=(A|0)){w=J[a+20>>2];break H}w=J[a+20>>2];if(J[f+12>>2]>(A|0))break G}b=1;break F}n=J[w+4>>2]+(J[a+32>>2]<<2)|0;b=J[n>>2];if((A|0)>=(b|0))break c;A=A+1|0;break E}I:while(1){J:{K:{L:{if(!b){J[a+40>>2]=_;if(J[a+64>>2]<=(_|0))break L;L=J[f+4>>2];J[a+24>>2]=L;b=J[G>>2]+(L<<4)|0;J[F>>2]=b;c=0;break J}w=w+20|0;J[a+20>>2]=w;E=J[a+28>>2]+1|0;J[a+28>>2]=E;b=J[a+16>>2];break K}c= +J[a+44>>2];b=J[a+52>>2];X=c+b-(c|0)%(b|0)|0;b=0;continue D}c=1}while(1){M:{N:{O:{P:{Q:{if(!c){if(J[f+8>>2]<=(L|0)|(L|0)>=(T|0))break Q;E=K[f+1|0];J[a+28>>2]=E;w=J[b+4>>2]+P(E,20)|0;J[a+20>>2]=w;c=1;continue}c=J[b>>2];if(!((c|0)<=(E|0)|K[f+2|0]<=(E|0))){m=J[w>>2];if(!m)break N;j=J[b+12>>2];r=c+(E^-1)|0;p=j<>2];u=(o+l|0)/(p|0)|0;d=J[b+8>>2];v=d<>2];e=(c+b|0)/(v|0)|0;h=J[w+12>>2];q=h+r|0;k=J[a+40>>2];g=J[w+8>>2];i=g+r|0;if(!((k|0)%(d<>2];if(!((b|0)%(j<>g)-(e>>>g|0)|0)+P(J[w+16>>2],((b+o|0)/(p|0)>>h)-(u>>>h|0)|0)|0;J[a+32>>2]=b;A=0;if((b|0)>=(m|0))break P;break E}b=b+16|0;J[a+16>>2]=b;L=J[a+24>>2]+1|0;J[a+24>>2]=L;T=J[a+8>>2];break M}c=J[a+40>>2];b=J[a+48>>2];_=c+b-(c|0)%(b|0)|0;break O}fa(199964,198897,391,212254);B()}b=0;continue I}b=1;continue I}c=0;continue}}}b=1;continue}}R:while(1){S:{T:{if(!b){J[a+28>>2]=S;if(K[f+2|0]<=(S|0)|J[a+ +4>>2]<=(S|0))break b;$=J[a+60>>2];b=0;break T}J[a+36>>2]=z;if(!(J[a>>2]<=(z|0)|J[f+12>>2]<=(z|0))){n=J[J[a+20>>2]+4>>2]+(J[a+32>>2]<<2)|0;b=J[n>>2];if((z|0)>=(b|0))break c;z=z+1|0;break S}b=1}U:while(1){V:{W:{X:{if(!b){J[a+44>>2]=$;if(J[a+68>>2]<=($|0))break X;aa=J[a+56>>2];b=0;break V}ba=1;O=J[a+24>>2]+1|0;ca=F;break W}S=J[a+28>>2]+1|0;b=0;continue R}b=1}while(1){Y:{Z:{_:{$:{aa:{if(!b){J[a+40>>2]=aa;if(J[a+64>>2]<=(aa|0))break aa;ca=G;O=J[f+4>>2];ba=O;b=1;continue}J[a+24>>2]=O;d=J[ca>>2]+(ba<<4)| +0;J[F>>2]=d;if(!(J[f+8>>2]<=(O|0)|J[a+8>>2]<=(O|0))){c=J[a+28>>2];b=J[d>>2];if((c|0)>=(b|0))break Z;u=J[d+4>>2]+P(c,20)|0;J[a+20>>2]=u;o=J[u>>2];if(!o)break Z;p=b+(c^-1)|0;v=J[d+12>>2]<>2];e=(l+c|0)/(v|0)|0;h=J[d+8>>2]<>2];q=(d+b|0)/(h|0)|0;g=J[u+12>>2];i=g+p|0;k=J[u+8>>2];m=k+p|0;j=J[a+40>>2];ba:{ca:{if((j|0)!=(b|0)){b=-1<>2];da:{ea:{if((b|0)!=(c|0)){c=-1<>k)-(q>>>k|0)|0)+P(J[u+16>>2],((b+l|0)/(v|0)>>g)-(e>>>g|0)|0)|0;J[a+32>>2]=b;z=0;if((b|0)>=(o|0))break $;break S}c=J[a+40>>2];b=J[a+48>>2];aa=c+b-(c|0)%(b|0)|0;break Y}c=J[a+44>>2];b=J[a+52>>2];$=c+b-(c|0)%(b|0)|0;break _}fa(199964,198897,297,212238);B()}b=0;continue U}b=1;continue U}b=0;continue}}}b=1;continue}}fa:while(1){ga:{if(!b){J[a+28>>2]=R;if(J[a+4>>2]<=(R|0))break b;U=0;if(K[f+2|0]<=(R|0))break b;b=0;break ga}y=y+1|0;J[a+32>>2]=y;n=n+4|0;b=1}ha:while(1){ia:{ja:{if(!b){J[a+ +36>>2]=U;if(J[a>>2]<=(U|0)|J[f+12>>2]<=(U|0))break ja;b=J[f+4>>2];J[a+24>>2]=b;c=J[G>>2]+(b<<4)|0;e=0;break ia}if((y|0)>=(W|0)){c=J[F>>2];b=J[a+24>>2];e=1;break ia}b=J[a+36>>2];if((b|0)>=J[n>>2])break c;b=1;continue fa}R=J[a+28>>2]+1|0;b=0;continue fa}while(1){ka:{la:{ma:{if(!e){J[a+16>>2]=c;if(J[a+8>>2]<=(b|0)|J[f+8>>2]<=(b|0))break ma;d=J[a+28>>2];if((d|0)>=J[c>>2])break ka;b=J[c+4>>2];y=0;J[a+32>>2]=0;b=b+P(d,20)|0;J[a+20>>2]=b;W=J[b>>2];n=J[b+4>>2];b=1;continue ha}b=b+1|0;J[a+24>>2]=b;c=c+16| +0;break la}U=J[a+36>>2]+1|0;b=0;continue ha}e=0;continue}e=1;continue}}}}na:while(1){oa:{if(!b){J[a+36>>2]=Q;if(J[a>>2]<=(Q|0)|J[f+12>>2]<=(Q|0))break b;V=K[f+1|0];b=0;break oa}I=I+1|0;J[a+32>>2]=I;n=n+4|0;b=1}pa:while(1){qa:{ra:{if(!b){J[a+28>>2]=V;if(J[a+4>>2]<=(V|0)|K[f+2|0]<=(V|0))break ra;b=J[f+4>>2];J[a+24>>2]=b;c=J[G>>2]+(b<<4)|0;e=0;break qa}if(J[M>>2]<=(I|0)){c=J[F>>2];b=J[a+24>>2];e=1;break qa}b=J[a+36>>2];if((b|0)>=J[n>>2])break c;b=1;continue na}Q=J[a+36>>2]+1|0;b=0;continue na}while(1){sa:{ta:{if(!e){J[a+ +16>>2]=c;if(J[a+8>>2]<=(b|0)){e=J[a+28>>2];break sa}e=J[a+28>>2];if(J[f+8>>2]<=(b|0))break sa;if(J[c>>2]<=(e|0))break ta;b=J[c+4>>2];I=0;J[a+32>>2]=0;M=b+P(e,20)|0;J[a+20>>2]=M;n=J[M+4>>2];b=1;continue pa}b=b+1|0;J[a+24>>2]=b;c=c+16|0;e=0;continue}e=1;continue}break}V=e+1|0;b=0;continue}}}J[n>>2]=b+1;H[a+101|0]=1;J[a+104>>2]=J[a+104>>2]+1;return 0}f=0;J[a+72>>2]=0;continue}}function Fr(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0;r=fc-368|0;fc=r;a:{b:{v= +a;q=J[v>>2];c:{if((q|0)>=2){q=J[v+4>>2];d:{if(K[q|0]!=254|K[q+1|0]!=255)break d;q=vc(8);J[699344]=0;v=_(3351,q|0)|0;t=J[699344];J[699344]=0;if((t|0)==1)break c;if(J[a>>2]<4)break d;q=2;z=3;while(1){t=J[a+4>>2];if(K[t+q|0])t=63;else t=K[t+z|0];Kd(v,t<<24>>24);q=q+2|0;z=q|1;if((z|0)>2])continue;break}}q=J[v>>2]}if(!q){if((a|0)==(v|0))break a;uc(Zc(v));break a}e:{f:{if(b){z=-1;t=gu(b);if(J[t+8>>2]<3)break f;w=Dd(J[J[t>>2]+8>>2],805790)?-1:0;g:{if(J[t+8>>2]<4)break g;w=Dd(J[J[t>>2]+12>>2],805790)? +w:1;if(J[t+8>>2]<5)break g;w=Dd(J[J[t>>2]+16>>2],805790)?w:2;q=6;if(J[t+8>>2]<6)break g;w=Dd(J[J[t>>2]+20>>2],805790)?w:3;if(J[t+8>>2]<7)break g;while(1){b=q<<2;h:{if(!Dd(J[b+J[t>>2]>>2],805790)){w=q-2|0;break h}z=Dd(J[b+J[t>>2]>>2],806212)?z:q-6|0}q=q+1|0;if((q|0)>2])continue;break}}i:{j:{if(!i|(w|0)<0)break j;b=J[J[t>>2]+(w<<2)>>2];if(!Dd(b,835635))break j;Rh(b);od(b,835635);break i}if((w|0)<0)break f}k:{l:{i=J[J[t>>2]+(w<<2)>>2];if(J[i>>2]<=0)break l;b=J[i+4>>2];if(K[b|0]!=47)break l;if(c){b= +AJ(c,b+1|0);if(b)break k}b=0;Cc(1,-1,835769,0);Rh(i);od(i,835972);break k}b=0;Cc(1,-1,837843,0)}s=qg(J[J[(J[t>>2]+(w<<2)|0)+4>>2]+4>>2]);break b}z=-1;Cc(1,-1,838050,0);q=vc(16);J[699344]=0;t=_(3352,q|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break e;break c}Cc(1,-1,838050,0)}w=J[t+8>>2];q=vc(8);J[699344]=0;b=aa(3349,q|0,835972)|0;c=J[699344];J[699344]=0;if((c|0)!=1)m:{sd(t,b);q=vc(8);J[699344]=0;b=aa(3349,q|0,838360)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;sd(t,b);b=0;q=vc(8);J[699344]=0;c=aa(3349, +q|0,805790)|0;i=J[699344];J[699344]=0;if((i|0)==1)break m;sd(t,c);break b}}a=Z()|0;uc(q);ba(a|0);B()}if(h)od(p,838578);od(p,838731);n:{o:{p:{if((j|0)!=270){if((j|0)!=180){if((j|0)!=90)break o;O[r+304>>3]=l;ed(p,838958,r+304|0);break p}O[r+328>>3]=m;O[r+320>>3]=l;ed(p,839159,r+320|0);break o}O[r+336>>3]=m;ed(p,839348,r+336|0)}A=m;break n}A=l;l=m}q:{if(d){C=m>15?5:2;y=A-(n+n)+-4;j=J[v>>2];r:{if(s!=0)break r;s=1;s:{if((j|0)<=0)break s;q=0;u=l-C;m=u;while(1){Qm(v,q,b,10,y,r+356|0,r+360|0,r+352|0);m=m+ +-10;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3];if(m>=2.5){s=10;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){Qm(v,q,b,9,y,r+356|0,r+360|0,r+352|0);m=m+-9;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=2.25){s=9;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){Qm(v,q,b,8,y,r+356|0,r+360|0,r+352|0);m=m+-8;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=2){s=8;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){Qm(v,q,b,7,y,r+356|0,r+ +360|0,r+352|0);m=m+-7;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=1.75){s=7;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){Qm(v,q,b,6,y,r+356|0,r+360|0,r+352|0);m=m+-6;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=1.5){s=6;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){Qm(v,q,b,5,y,r+356|0,r+360|0,r+352|0);m=m+-5;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=1.25){s=5;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){Qm(v, +q,b,4,y,r+356|0,r+360|0,r+352|0);m=m+-4;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=1){s=4;if(x<=y)break s}m=u;if((j|0)>0){q=0;while(1){Qm(v,q,b,3,y,r+356|0,r+360|0,r+352|0);m=m+-3;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}if(m>=.75){s=3;if(x<=y)break s}if((j|0)>0){q=0;while(1){Qm(v,q,b,2,y,r+356|0,r+360|0,r+352|0);u=u+-2;j=J[v>>2];q=J[r+352>>2];if((j|0)>(q|0))continue;break}x=O[r+360>>3]}s=u>=.5?x<=y?2:1:1}if((w|0)<0)break r;c=J[(J[t>>2]+(w<< +2)|0)+4>>2];Rh(c);O[r+288>>3]=s;ed(c,839371,r+288|0);j=J[v>>2]}w=0;t:{if((j|0)<=0){q=0;break t}q=0;while(1){Qm(v,w,b,s,y,r+356|0,r+360|0,r+352|0);q=q+1|0;w=J[r+352>>2];if((w|0)>2])continue;break}}u:{if(!b){x=.75;u=-.25;break u}x=O[b+144>>3];u=O[b+136>>3]}od(p,839672);m=s;u=m*u;D=2-u;v:{w:switch(g-1|0){default:u=l-s*x-C;break v;case 0:u=(l-+(q|0)*s)*.5+s*+(q-1|0)-u;break v;case 1:u=(l-+(q|0)*s)*.5+s*+(q-1|0);break v;case 2:break w}u=+(q-1|0)*s-u}l=m+(C+s>l?D:u);q=0;if((z|0)>=0){c=z<<2;d=J[(c+ +J[t>>2]|0)+16>>2];Rh(d);O[r+272>>3]=0;ed(d,839676,r+272|0);c=J[(c+J[t>>2]|0)+20>>2];Rh(c);O[r+256>>3]=l+k;ed(c,839676,r+256|0)}if(J[t+8>>2]>0)while(1){Kd(Qh(p,J[J[t>>2]+(q<<2)>>2]),32);q=q+1|0;if((q|0)>2])continue;break}if((z|0)<0){O[r+240>>3]=0;O[r+248>>3]=l+k;ed(p,839967,r+240|0)}if(J[v>>2]<=0)break q;k=n+2;n=A-n+-2;u=-s;l=0;q=0;e=f-1|0;while(1){Qm(v,q,b,s,y,r+356|0,r+360|0,r+352|0);m=k;x:{y:switch(e|0){case 0:m=(A-O[r+360>>3])*.5;break x;case 1:break y;default:break x}m=n-O[r+360>>3]}O[r+ +232>>3]=u;O[r+224>>3]=m-l;ed(p,840126,r+224|0);Kd(p,40);f=J[r+356>>2];if((f|0)>(q|0))while(1){c=K[J[v+4>>2]+q|0];d=c<<24>>24;z:{if(!((c|0)!=92&c-40>>>0>=2)){Kd(p,92);Kd(p,d);break z}if((d|0)<=31){J[r+208>>2]=c;ed(p,840149,r+208|0);break z}Kd(p,d)}q=q+1|0;if((f|0)!=(q|0))continue;break}od(p,840449);l=m;q=J[r+352>>2];if((q|0)>2])continue;break}break q}A:{if((e|0)>0){u=A/+(e|0);O[r+360>>3]=u;m=0;B:{if(s!=0)break B;n=l-(n+n);n=V(n>u?u:n);s=n>10?10:n;if((w|0)<0)break B;c=J[(J[t>>2]+(w<<2)|0)+4>>2]; +Rh(c);O[r+80>>3]=s;ed(c,839676,r+80|0)}C:{D:switch(f-1|0){case 0:m=u*+((e-J[v>>2]|0)/2|0);break C;case 1:break D;default:break C}m=u*+(e-J[v>>2]|0)}E:{if(!b){x=-.25;n=.75;break E}x=O[b+136>>3];n=O[b+144>>3]}n=s*n;A=s*x;F:{G:switch(g-1|0){default:l=l-n;break F;case 0:l=(l-n-A)*.5;break F;case 1:l=(l-n)*.5;break F;case 2:break G}l=-A}od(p,839672);q=0;if((z|0)>=0){c=z<<2;d=J[(c+J[t>>2]|0)+16>>2];Rh(d);O[r+64>>3]=m+0;ed(d,839676,r- -64|0);c=J[(c+J[t>>2]|0)+20>>2];Rh(c);O[r+48>>3]=l+k;ed(c,839676,r+48| +0)}if(J[t+8>>2]>0)while(1){Kd(Qh(p,J[J[t>>2]+(q<<2)>>2]),32);q=q+1|0;if((q|0)>2])continue;break}if((z|0)<0){O[r+40>>3]=l+k;O[r+32>>3]=m+0;ed(p,839967,r+32|0)}z=840595;w=J[v>>2];if((w|0)<=0)break A;m=0;q=0;while(1){c=H[J[v+4>>2]+q|0];H:{if((c|0)>=32){c=c&255;l=.5;I:{if(!b)break I;if(kc[J[J[b>>2]+8>>2]](b)|0)break I;l=O[((c<<3)+b|0)+1464>>3]}k=(u-s*l)*.5;O[r+16>>3]=m+k;ed(p,840692,r+16|0);j=840849;J[r>>2]=c;ed(p,(c|0)==92|c-40>>>0<2?j:840985,r);w=J[v>>2];m=u-k;break H}m=m+u}q=q+1|0;if((w|0)> +(q|0))continue;break}break A}J:{K:{if(!b)break K;if(kc[J[J[b>>2]+8>>2]](b)|0)break K;J[r+360>>2]=0;J[r+364>>2]=0;d=J[v>>2];if((d|0)<=0){m=0;break J}j=d&3;c=J[v+4>>2];e=0;L:{if(d>>>0<4){m=0;q=0;break L}E=d&-4;m=0;q=0;d=b+1464|0;i=0;while(1){m=O[d+(K[c+q|0]<<3)>>3]+m;O[r+360>>3]=m;m=O[d+(K[c+(q|1)|0]<<3)>>3]+m;O[r+360>>3]=m;m=O[d+(K[c+(q|2)|0]<<3)>>3]+m;O[r+360>>3]=m;m=O[d+(K[c+(q|3)|0]<<3)>>3]+m;O[r+360>>3]=m;q=q+4|0;i=i+4|0;if((E|0)!=(i|0))continue;break}}if(!j)break J;while(1){m=O[((K[c+q|0]<<3)+ +b|0)+1464>>3]+m;O[r+360>>3]=m;q=q+1|0;e=e+1|0;if((j|0)!=(e|0))continue;break}break J}m=+J[v>>2]*.5}M:{if(s!=0)break M;u=n*-2;s=(u+(A+-4))/m;u=u+l;u=V(u>s?s:u);s=u>10?10:u;if((w|0)<0)break M;c=J[(J[t>>2]+(w<<2)|0)+4>>2];Rh(c);O[r+192>>3]=s;ed(c,839676,r+192|0)}x=s*m;N:{O:switch(f-1|0){default:m=n+2;break N;case 0:m=(A-x)*.5;break N;case 1:break O}m=A-n+-2-x}P:{if(!b){u=-.25;n=.75;break P}u=O[b+136>>3];n=O[b+144>>3]}n=s*n;u=s*u;Q:{R:switch(g-1|0){default:l=l-n;break Q;case 0:l=(l-n-u)*.5;break Q;case 1:l= +(l-n)*.5;break Q;case 2:break R}l=-u}if(o){O[r+184>>3]=s*1.2;O[r+176>>3]=s*.5+x;O[r+168>>3]=s*-.35+l;O[r+160>>3]=s*-.25+m;ed(p,841131,r+160|0)}od(p,839672);q=0;if((z|0)>=0){b=z<<2;c=J[(b+J[t>>2]|0)+16>>2];Rh(c);O[r+144>>3]=m+0;ed(c,839676,r+144|0);b=J[(b+J[t>>2]|0)+20>>2];Rh(b);O[r+128>>3]=l+k;ed(b,839676,r+128|0)}if(J[t+8>>2]>0)while(1){Kd(Qh(p,J[J[t>>2]+(q<<2)>>2]),32);q=q+1|0;if((q|0)>2])continue;break}if((z|0)<0){O[r+120>>3]=l+k;O[r+112>>3]=m+0;ed(p,839967,r+112|0)}Kd(p,40);z=840449;if(J[v>> +2]<=0)break A;q=0;while(1){b=K[J[v+4>>2]+q|0];c=b<<24>>24;S:{if(!((b|0)!=92&b-40>>>0>=2)){Kd(p,92);Kd(p,c);break S}if((c|0)<=31){J[r+96>>2]=b;ed(p,840149,r+96|0);break S}Kd(p,c)}q=q+1|0;if((q|0)>2])continue;break}}od(p,z)}od(p,840595);od(p,841272);if(h)od(p,841471);w=J[t+8>>2];if((w|0)>0){q=0;while(1){b=J[J[t>>2]+(q<<2)>>2];if(b){uc(Zc(b));w=J[t+8>>2]}q=q+1|0;if((w|0)>(q|0))continue;break}}uc(ld(t));if((a|0)==(v|0))break a;uc(Zc(v))}fc=r+368|0}function Hw(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=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,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,na=0,oa=0;f=fc-5632|0;fc=f;ha=b+256|0;Dw(c,ha,f+384|0);a:{b:{if((d|0)==6)break b;m=J[c+8>>2];S=kc[J[J[m>>2]+28>>2]](m)|0;Dw(c,b+512|0,f+256|0);ia=b+768|0;Dw(c,ia,f+128|0);Dw(c,b+1024|0,f);c:{if((S|0)<=0)break c;while(1){R=F<<2;T=J[R+(f+384|0)>>2];x=J[R+(f+256|0)>>2];m= +T-x|0;C=m>>31;if((m^C)-C>>>0>256)break c;U=x;x=J[f+R>>2];m=U-x|0;C=m>>31;if((m^C)-C>>>0>256)break c;U=x;x=J[R+(f+128|0)>>2];m=U-x|0;C=m>>31;if((m^C)-C>>>0>256)break c;m=x-T|0;x=m>>31;if((m^x)-x>>>0>256)break c;F=F+1|0;if((S|0)!=(F|0))continue;break}break b}if((F|0)==(S|0))break b;m=J[a+28>>2];n=O[m+24>>3];r=O[b+32>>3];G=O[b+160>>3];o=O[m+40>>3];e=n*r+G*o;s=O[b>>3];t=O[b+128>>3];g=n*s+t*o;p=O[m+16>>3];l=O[m+32>>3];i=p*r+G*l;k=p*s+t*l;d:{if(ik)){j=k;break d}j=i}e:{if(eg)){i=g;e=g;break e}i=g}u=O[b+64>>3];H=O[b+192>>3];g=n*u+H*o;h=p*u+H*l;f:{if(hj))break f;j=h}g:{h:{if(g>3];y=O[b+224>>3];e=n*q+y*o;h=p*q+y*l;i:{if(hj))break i;j=h}j:{k:{if(eg)break j}e=g}v=O[b+8>>3];D=O[b+136>>3];g=n*v+D*o;h=p*v+D*l;l:{if(hj))break l;j=h}m:{n:{if(g>3];A=O[b+168>>3];e=n*z+A*o;h=p*z+A*l; +o:{if(hj))break o;j=h}p:{q:{if(eg)break p}e=g}I=O[b+72>>3];K=O[b+200>>3];g=n*I+K*o;h=p*I+K*l;r:{if(hj))break r;j=h}s:{t:{if(g>3];B=O[b+232>>3];e=n*L+B*o;h=p*L+B*l;u:{if(hj))break u;j=h}v:{w:{if(eg)break v}e=g}E=O[b+16>>3];M=O[b+144>>3];g=n*E+M*o;h=p*E+M*l;x:{if(hj))break x;j=h}y:{z:{if(g>3];P=O[b+176>>3];e=n*N+P*o;h=p*N+P*l;A:{if(hj))break A;j=h}B:{C:{if(eg)break B}e=g}Q=O[b+80>>3];ba=O[b+208>>3];g=n*Q+ba*o;h=p*Q+ba*l;D:{if(hj))break D;j=h}E:{F:{if(g>3];da=O[b+240>>3];e=n*ca+da*o;h=p*ca+da*l;G:{if(hj))break G;j=h}H:{I:{if(eg)break H}e=g}V=O[b+24>>3];W=O[b+152>>3];g=n*V+W*o;h=p*V+W*l;J:{if(hj))break J; +j=h}K:{L:{if(g>3];Y=O[b+184>>3];e=n*X+Y*o;h=p*X+Y*l;M:{if(hj))break M;j=h}N:{O:{if(eg)break N}e=g}Z=O[b+88>>3];_=O[b+216>>3];g=n*Z+_*o;h=p*Z+_*l;P:{if(hj))break P;j=h}Q:{R:{if(g>3];aa=O[b+248>>3];e=n*$+aa*o;h=p*$+aa*l;S:{if(hj))break S;j=h}T:{U:{if(eg)break T}e=g}if(j-k<1&e-i<1)break b;O[f+2016>>3]=y; +g=(H+y)*.5;O[f+1984>>3]=g;O[f+4480>>3]=t;i=(t+G)*.5;O[f+4512>>3]=i;e=(G+H)*.5;g=(e+g)*.5;O[f+1952>>3]=g;e=(i+e)*.5;O[f+4544>>3]=e;e=(e+g)*.5;O[f+4576>>3]=e;O[f+1920>>3]=e;O[f+4352>>3]=s;j=(s+v)*.5;O[f+4360>>3]=j;e=(v+E)*.5;l=(j+e)*.5;O[f+4368>>3]=l;ea=(E+V)*.5;fa=(e+ea)*.5;ga=(l+fa)*.5;O[f+4376>>3]=ga;O[f+1888>>3]=q;e=(u+q)*.5;O[f+1856>>3]=e;i=(r+u)*.5;g=(i+e)*.5;O[f+1824>>3]=g;e=(s+r)*.5;O[f+4384>>3]=e;e=(e+i)*.5;O[f+4416>>3]=e;e=(e+g)*.5;O[f+4448>>3]=e;O[f+1792>>3]=e;r=(r+z)*.5;g=(j+r)*.5;O[f+4392>> +3]=g;s=(t+D)*.5;O[f+4488>>3]=s;t=(G+A)*.5;e=(s+t)*.5;O[f+4520>>3]=e;u=(u+I)*.5;q=(q+L)*.5;h=(u+q)*.5;O[f+1864>>3]=h;v=(H+K)*.5;E=(y+B)*.5;k=(v+E)*.5;O[f+1992>>3]=k;i=g;g=(r+u)*.5;i=(i+g)*.5;O[f+4424>>3]=i;j=e;e=(t+v)*.5;j=(j+e)*.5;O[f+4552>>3]=j;g=(g+h)*.5;O[f+1832>>3]=g;e=(e+k)*.5;O[f+1960>>3]=e;i=(i+g)*.5;O[f+4456>>3]=i;e=(j+e)*.5;O[f+4584>>3]=e;O[f+1928>>3]=e;O[f+1896>>3]=q;O[f+2024>>3]=E;D=(D+M)*.5;y=(s+D)*.5;O[f+4496>>3]=y;g=l;l=(z+N)*.5;z=(r+l)*.5;g=(g+z)*.5;O[f+4400>>3]=g;r=(A+P)*.5;A=(t+r)* +.5;e=(y+A)*.5;O[f+4528>>3]=e;O[f+1800>>3]=i;s=(K+ba)*.5;n=(v+s)*.5;t=(B+da)*.5;o=(E+t)*.5;k=(n+o)*.5;O[f+2E3>>3]=k;h=u;u=(I+Q)*.5;B=(h+u)*.5;v=(L+ca)*.5;q=(q+v)*.5;j=(B+q)*.5;O[f+1872>>3]=j;i=(z+B)*.5;E=(g+i)*.5;O[f+4432>>3]=E;g=e;e=(A+n)*.5;g=(g+e)*.5;O[f+4560>>3]=g;h=(i+j)*.5;O[f+1840>>3]=h;e=(e+k)*.5;O[f+1968>>3]=e;e=(g+e)*.5;O[f+4592>>3]=e;O[f+1936>>3]=e;O[f+1904>>3]=q;O[f+2032>>3]=o;p=(M+W)*.5;G=(D+p)*.5;H=(y+G)*.5;I=(P+Y)*.5;K=(r+I)*.5;g=(A+K)*.5;L=(H+g)*.5;O[f+4536>>3]=L;O[f+4504>>3]=H;M=(N+ +X)*.5;N=(l+M)*.5;k=(z+N)*.5;P=(ga+k)*.5;O[f+4408>>3]=P;Q=(Q+Z)*.5;y=(u+Q)*.5;j=(B+y)*.5;z=(ca+$)*.5;A=(v+z)*.5;B=(q+A)*.5;q=(j+B)*.5;O[f+1880>>3]=q;D=(ba+_)*.5;l=(s+D)*.5;e=(n+l)*.5;r=(da+aa)*.5;s=(t+r)*.5;t=(o+s)*.5;u=(e+t)*.5;O[f+2008>>3]=u;i=(g+e)*.5;v=(L+i)*.5;O[f+4568>>3]=v;g=(E+h)*.5;O[f+4464>>3]=g;e=(k+j)*.5;j=(P+e)*.5;O[f+4440>>3]=j;O[f+1808>>3]=g;g=(i+u)*.5;O[f+1976>>3]=g;e=(e+q)*.5;O[f+1848>>3]=e;k=(v+g)*.5;O[f+4600>>3]=k;i=(j+e)*.5;O[f+4472>>3]=i;O[f+1944>>3]=k;O[f+1816>>3]=i;O[f+2040>> +3]=t;O[f+1912>>3]=B;O[f+3200>>3]=H;O[f+3072>>3]=ga;O[f+3232>>3]=L;O[f+3104>>3]=P;O[f+704>>3]=u;O[f+576>>3]=q;O[f+3264>>3]=v;O[f+3136>>3]=j;O[f+672>>3]=g;O[f+544>>3]=e;O[f+3296>>3]=k;O[f+3168>>3]=i;O[f+640>>3]=k;O[f+512>>3]=i;O[f+736>>3]=t;O[f+608>>3]=B;O[f+3208>>3]=G;O[f+3080>>3]=fa;g=(G+K)*.5;O[f+3240>>3]=g;e=(fa+N)*.5;O[f+3112>>3]=e;h=(l+s)*.5;O[f+712>>3]=h;k=(y+A)*.5;O[f+584>>3]=k;i=g;g=(K+l)*.5;j=(i+g)*.5;O[f+3272>>3]=j;i=e;e=(N+y)*.5;i=(i+e)*.5;O[f+3144>>3]=i;g=(g+h)*.5;O[f+680>>3]=g;e=(e+k)* +.5;O[f+552>>3]=e;g=(j+g)*.5;O[f+3304>>3]=g;e=(i+e)*.5;O[f+3176>>3]=e;O[f+648>>3]=g;O[f+520>>3]=e;O[f+744>>3]=s;O[f+616>>3]=A;O[f+3216>>3]=p;O[f+3088>>3]=ea;g=(p+I)*.5;O[f+3248>>3]=g;e=(ea+M)*.5;O[f+3120>>3]=e;h=(D+r)*.5;O[f+720>>3]=h;k=(Q+z)*.5;O[f+592>>3]=k;i=g;g=(I+D)*.5;j=(i+g)*.5;O[f+3280>>3]=j;i=e;e=(M+Q)*.5;i=(i+e)*.5;O[f+3152>>3]=i;g=(g+h)*.5;O[f+688>>3]=g;e=(e+k)*.5;O[f+560>>3]=e;g=(j+g)*.5;O[f+3312>>3]=g;e=(i+e)*.5;O[f+3184>>3]=e;O[f+656>>3]=g;O[f+528>>3]=e;O[f+752>>3]=r;O[f+624>>3]=z;O[f+ +3224>>3]=W;O[f+3096>>3]=V;g=(W+Y)*.5;O[f+3256>>3]=g;e=(V+X)*.5;O[f+3128>>3]=e;h=(_+aa)*.5;O[f+728>>3]=h;k=(Z+$)*.5;O[f+600>>3]=k;i=g;g=(Y+_)*.5;j=(i+g)*.5;O[f+3288>>3]=j;i=e;e=(X+Z)*.5;i=(i+e)*.5;O[f+3160>>3]=i;g=(g+h)*.5;O[f+696>>3]=g;e=(e+k)*.5;O[f+568>>3]=e;g=(j+g)*.5;O[f+3320>>3]=g;e=(i+e)*.5;O[f+3192>>3]=e;O[f+664>>3]=g;O[f+536>>3]=e;O[f+760>>3]=aa;O[f+632>>3]=$;F=0;ja=J[c+316>>2];if((ja|0)>0){ka=f+5120|0;la=f+2560|0;ma=f+2048|0;na=f+1280|0;oa=f+768|0;U=f+3840|0;S=f+3328|0;R=f+4608|0;while(1){w= +F<<3;j=O[ha+w>>3];O[w+R>>3]=j;C=(f+4352|0)+w|0;T=b+w|0;g=O[T+512>>3];e=(j+g)*.5;O[C+512>>3]=e;O[w+S>>3]=e;x=(f+3072|0)+w|0;O[x+512>>3]=g;m=(f+512|0)+w|0;e=O[T+1024>>3];O[m+1024>>3]=e;i=(g+e)*.5;O[m+512>>3]=i;O[x+1024>>3]=i;g=O[w+ia>>3];e=(e+g)*.5;O[w+na>>3]=e;m=(f+1792|0)+w|0;O[m+1024>>3]=e;O[w+la>>3]=g;e=(j+g)*.5;O[w+ma>>3]=e;O[w+ka>>3]=e;e=(i+e)*.5;O[C+1024>>3]=e;O[w+U>>3]=e;O[w+oa>>3]=e;O[m+512>>3]=e;F=F+1|0;if((ja|0)!=(F|0))continue;break}}b=d+1|0;Hw(a,f+4352|0,c,b);Hw(a,f+1792|0,c,b);Hw(a,f+ +3072|0,c,b);Hw(a,f+512|0,c,b);break a}xc(J[a+28>>2]+124|0,f+384|0,128);c=J[a+8>>2];kc[J[J[c>>2]+116>>2]](c,J[a+28>>2]);g=O[b>>3];c=J[a+28>>2];e=O[b+128>>3];O[c+608>>3]=e;O[c+600>>3]=g;c=J[c+596>>2];O[c+16>>3]=e;O[c+8>>3]=g;J[c>>2]=1;k=O[b+144>>3];j=O[b+136>>3];i=O[b+16>>3];g=O[b+8>>3];h=O[b+24>>3];c=J[a+28>>2];e=O[b+152>>3];O[c+608>>3]=e;O[c+600>>3]=h;Nm(J[c+596>>2],g,j,i,k,h,e);k=O[b+216>>3];j=O[b+88>>3];i=O[b+184>>3];g=O[b+56>>3];h=O[b+120>>3];c=J[a+28>>2];e=O[b+248>>3];O[c+608>>3]=e;O[c+600>>3]= +h;Nm(J[c+596>>2],g,i,j,k,h,e);k=O[b+232>>3];j=O[b+104>>3];i=O[b+240>>3];g=O[b+112>>3];h=O[b+96>>3];c=J[a+28>>2];e=O[b+224>>3];O[c+608>>3]=e;O[c+600>>3]=h;Nm(J[c+596>>2],g,i,j,k,h,e);k=O[b+160>>3];j=O[b+192>>3];i=O[b+32>>3];g=O[b+64>>3];h=O[b>>3];c=J[a+28>>2];e=O[b+128>>3];O[c+608>>3]=e;O[c+600>>3]=h;Nm(J[c+596>>2],g,j,i,k,h,e);d=J[a+28>>2];gg(J[d+596>>2]);b=J[d+596>>2];c=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];b=J[c+12>>2]<<3;O[d+600>>3]=O[(b+J[c>>2]|0)-8>>3];O[d+608>>3]=O[(b+J[c+4>>2]|0)-8>>3];b= +J[a+8>>2];kc[J[J[b>>2]+204>>2]](b,J[a+28>>2]);_f(J[a+28>>2])}fc=f+5632|0}function KV(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;a=P((e|0)>0?P(b,e):0,3)+a|0;q=(e|0)>=4?4:e;a:{if((q|0)<=0){q=0;break a}k=(d|0)>4?4:d;m=(P(d,3)+a|0)-3|0;if((c|0)>0){j=P(c,3)+a|0;v=c&-4;o=c&3;l=k-c&3;e=(c|0)>(k|0)?c:k;t=4-e&3;p=c-1>>>0<3;w=k+(c^-1)>>>0<3;r=(e^-1)+4>>>0<3;while(1){e=0;i=0;if(!p)while(1){h=P(e,3)+g|0;n=K[j|0]|K[j+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;H[h+2|0]=K[j+2|0];h=P(e| +1,3)+g|0;H[h+2|0]=K[j+2|0];n=K[j|0]|K[j+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;h=P(e|2,3)+g|0;H[h+2|0]=K[j+2|0];n=K[j|0]|K[j+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;h=P(e|3,3)+g|0;H[h+2|0]=K[j+2|0];n=K[j|0]|K[j+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;e=e+4|0;i=i+4|0;if((v|0)!=(i|0))continue;break}h=0;if(o)while(1){i=P(e,3)+g|0;n=K[j|0]|K[j+1|0]<<8;H[i|0]=n;H[i+1|0]=n>>>8;H[i+2|0]=K[j+2|0];e=e+1|0;h=h+1|0;if((o|0)!=(h|0))continue;break}h=c;b:{if((h|0)>=(k|0))break b;h=0;e=c;if(l)while(1){n=P(e,3);i=n+g|0;n=a+n|0;u=K[n|0]| +K[n+1|0]<<8;H[i|0]=u;H[i+1|0]=u>>>8;H[i+2|0]=K[n+2|0];e=e+1|0;h=h+1|0;if((l|0)!=(h|0))continue;break}h=k;if(w)break b;while(1){h=P(e,3);i=h+g|0;n=a+h|0;u=K[n|0]|K[n+1|0]<<8;H[i|0]=u;H[i+1|0]=u>>>8;H[i+2|0]=K[n+2|0];n=h+3|0;i=n+g|0;n=a+n|0;H[i+2|0]=K[n+2|0];n=K[n|0]|K[n+1|0]<<8;H[i|0]=n;H[i+1|0]=n>>>8;n=h+6|0;i=n+g|0;n=a+n|0;u=K[n|0]|K[n+1|0]<<8;H[i|0]=u;H[i+1|0]=u>>>8;H[i+2|0]=K[n+2|0];i=h+9|0;h=i+g|0;i=a+i|0;n=K[i|0]|K[i+1|0]<<8;H[h|0]=n;H[h+1|0]=n>>>8;H[h+2|0]=K[i+2|0];e=e+4|0;if((k|0)!=(e|0))continue; +break}h=k}c:{if((h|0)>=4)break c;e=0;if(t)while(1){i=P(h,3)+g|0;n=K[m|0]|K[m+1|0]<<8;H[i|0]=n;H[i+1|0]=n>>>8;H[i+2|0]=K[m+2|0];h=h+1|0;e=e+1|0;if((t|0)!=(e|0))continue;break}if(r)break c;while(1){e=P(h,3)+g|0;i=K[m|0]|K[m+1|0]<<8;H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=K[m+2|0];H[e+5|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[e+3|0]=i;H[e+4|0]=i>>>8;i=K[m|0]|K[m+1|0]<<8;H[e+6|0]=i;H[e+7|0]=i>>>8;H[e+8|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[e+9|0]=i;H[e+10|0]=i>>>8;H[e+11|0]=K[m+2|0];h=h+4|0;if((h|0)!=4)continue;break}}g= +g+12|0;s=s+1|0;if((q|0)!=(s|0))continue;break}break a}if((k|0)>0){if((d|0)>=4){s=k&-4;m=k&3;o=k>>>0<4;while(1){e=0;h=0;if(!o)while(1){i=P(e,3);k=i+g|0;i=a+i|0;l=K[i|0]|K[i+1|0]<<8;H[k|0]=l;H[k+1|0]=l>>>8;H[k+2|0]=K[i+2|0];i=P(e|1,3);k=i+g|0;i=a+i|0;H[k+2|0]=K[i+2|0];i=K[i|0]|K[i+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;i=P(e|2,3);k=i+g|0;i=a+i|0;H[k+2|0]=K[i+2|0];i=K[i|0]|K[i+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;i=P(e|3,3);k=i+g|0;i=a+i|0;H[k+2|0]=K[i+2|0];i=K[i|0]|K[i+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;e=e+4|0;h= +h+4|0;if((s|0)!=(h|0))continue;break}h=0;if(m)while(1){i=P(e,3);k=i+g|0;i=a+i|0;l=K[i|0]|K[i+1|0]<<8;H[k|0]=l;H[k+1|0]=l>>>8;H[k+2|0]=K[i+2|0];e=e+1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}g=g+12|0;j=j+1|0;if((j|0)!=(q|0))continue;break}break a}t=k&-4;j=k&3;i=4-k&3;n=k>>>0<4;v=(k^-1)+4>>>0<3;while(1){e=0;h=0;if(!n)while(1){l=P(e,3);o=l+g|0;l=a+l|0;p=K[l|0]|K[l+1|0]<<8;H[o|0]=p;H[o+1|0]=p>>>8;H[o+2|0]=K[l+2|0];l=P(e|1,3);o=l+g|0;l=a+l|0;H[o+2|0]=K[l+2|0];l=K[l|0]|K[l+1|0]<<8;H[o|0]=l;H[o+1|0]=l>>> +8;l=P(e|2,3);o=l+g|0;l=a+l|0;H[o+2|0]=K[l+2|0];l=K[l|0]|K[l+1|0]<<8;H[o|0]=l;H[o+1|0]=l>>>8;l=P(e|3,3);o=l+g|0;l=a+l|0;H[o+2|0]=K[l+2|0];l=K[l|0]|K[l+1|0]<<8;H[o|0]=l;H[o+1|0]=l>>>8;e=e+4|0;h=h+4|0;if((t|0)!=(h|0))continue;break}h=0;if(j)while(1){l=P(e,3);o=l+g|0;l=a+l|0;p=K[l|0]|K[l+1|0]<<8;H[o|0]=p;H[o+1|0]=p>>>8;H[o+2|0]=K[l+2|0];e=e+1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}e=0;h=k;if(i)while(1){o=P(h,3)+g|0;l=K[m|0]|K[m+1|0]<<8;H[o|0]=l;H[o+1|0]=l>>>8;H[o+2|0]=K[m+2|0];h=h+1|0;e=e+1|0;if((i| +0)!=(e|0))continue;break}if(!v)while(1){e=P(h,3)+g|0;o=K[m|0]|K[m+1|0]<<8;H[e|0]=o;H[e+1|0]=o>>>8;H[e+2|0]=K[m+2|0];H[e+5|0]=K[m+2|0];o=K[m|0]|K[m+1|0]<<8;H[e+3|0]=o;H[e+4|0]=o>>>8;o=K[m|0]|K[m+1|0]<<8;H[e+6|0]=o;H[e+7|0]=o>>>8;H[e+8|0]=K[m+2|0];o=K[m|0]|K[m+1|0]<<8;H[e+9|0]=o;H[e+10|0]=o>>>8;H[e+11|0]=K[m+2|0];h=h+4|0;if((h|0)!=4)continue;break}g=g+12|0;s=s+1|0;if((q|0)!=(s|0))continue;break}break a}while(1){e=0;h=0;while(1){k=P(e,3)+g|0;i=K[m|0]|K[m+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;H[k+2|0]=K[m+ +2|0];k=P(e|1,3)+g|0;H[k+2|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;k=P(e|2,3)+g|0;H[k+2|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;k=P(e|3,3)+g|0;H[k+2|0]=K[m+2|0];i=K[m|0]|K[m+1|0]<<8;H[k|0]=i;H[k+1|0]=i>>>8;e=e+4|0;h=h+4|0;if((h|0)!=4)continue;break}g=g+12|0;j=j+1|0;if((j|0)!=(q|0))continue;break}}m=(f|0)>=4?4:f;if((m|0)>(q|0)){k=(d|0)>4?4:d;e=(c|0)>(k|0)?c:k;e=(e|0)>0?e:0;s=4-e&3;f=(c|0)>0?c:0;o=k-f&3;t=c&-4;l=c&3;n=(c|0)<=0;v=c-1>>>0>2;p=k+(f^-1)>>>0<3;w=(e^-1)+4>>> +0<3;while(1){f=0;d:{if(n)break d;j=P(c,3)+a|0;h=0;e=0;i=0;if(v)while(1){f=P(e,3)+g|0;r=K[j|0]|K[j+1|0]<<8;H[f|0]=r;H[f+1|0]=r>>>8;H[f+2|0]=K[j+2|0];f=P(e|1,3)+g|0;H[f+2|0]=K[j+2|0];r=K[j|0]|K[j+1|0]<<8;H[f|0]=r;H[f+1|0]=r>>>8;f=P(e|2,3)+g|0;H[f+2|0]=K[j+2|0];r=K[j|0]|K[j+1|0]<<8;H[f|0]=r;H[f+1|0]=r>>>8;f=P(e|3,3)+g|0;H[f+2|0]=K[j+2|0];r=K[j|0]|K[j+1|0]<<8;H[f|0]=r;H[f+1|0]=r>>>8;e=e+4|0;i=i+4|0;if((t|0)!=(i|0))continue;break}f=c;if(!l)break d;while(1){f=P(e,3)+g|0;i=K[j|0]|K[j+1|0]<<8;H[f|0]=i;H[f+ +1|0]=i>>>8;H[f+2|0]=K[j+2|0];e=e+1|0;h=h+1|0;if((l|0)!=(h|0))continue;break}f=c}e:{if((k|0)<=(f|0)){h=f;break e}e=0;if(o)while(1){j=P(f,3);h=j+g|0;j=a+j|0;i=K[j|0]|K[j+1|0]<<8;H[h|0]=i;H[h+1|0]=i>>>8;H[h+2|0]=K[j+2|0];f=f+1|0;e=e+1|0;if((o|0)!=(e|0))continue;break}h=k;if(p)break e;while(1){e=P(f,3);h=e+g|0;j=a+e|0;i=K[j|0]|K[j+1|0]<<8;H[h|0]=i;H[h+1|0]=i>>>8;H[h+2|0]=K[j+2|0];j=e+3|0;h=j+g|0;j=a+j|0;H[h+2|0]=K[j+2|0];j=K[j|0]|K[j+1|0]<<8;H[h|0]=j;H[h+1|0]=j>>>8;j=e+6|0;h=j+g|0;j=a+j|0;i=K[j|0]|K[j+ +1|0]<<8;H[h|0]=i;H[h+1|0]=i>>>8;H[h+2|0]=K[j+2|0];h=e+9|0;e=h+g|0;h=a+h|0;j=K[h|0]|K[h+1|0]<<8;H[e|0]=j;H[e+1|0]=j>>>8;H[e+2|0]=K[h+2|0];f=f+4|0;if((k|0)!=(f|0))continue;break}h=k}f:{if((h|0)>=4)break f;f=(P(d,3)+a|0)-3|0;e=0;if(s)while(1){j=P(h,3)+g|0;i=K[f|0]|K[f+1|0]<<8;H[j|0]=i;H[j+1|0]=i>>>8;H[j+2|0]=K[f+2|0];h=h+1|0;e=e+1|0;if((s|0)!=(e|0))continue;break}if(w)break f;while(1){e=P(h,3)+g|0;j=K[f|0]|K[f+1|0]<<8;H[e|0]=j;H[e+1|0]=j>>>8;H[e+2|0]=K[f+2|0];H[e+5|0]=K[f+2|0];j=K[f|0]|K[f+1|0]<<8;H[e+ +3|0]=j;H[e+4|0]=j>>>8;j=K[f|0]|K[f+1|0]<<8;H[e+6|0]=j;H[e+7|0]=j>>>8;H[e+8|0]=K[f+2|0];j=K[f|0]|K[f+1|0]<<8;H[e+9|0]=j;H[e+10|0]=j>>>8;H[e+11|0]=K[f+2|0];h=h+4|0;if((h|0)!=4)continue;break}}g=g+12|0;a=P(b,3)+a|0;q=q+1|0;if((m|0)!=(q|0))continue;break}q=m}if((q|0)<4){k=(d|0)>4?4:d;e=(c|0)>(k|0)?c:k;e=(e|0)>0?e:0;j=4-e&3;f=(c|0)>0?c:0;i=k-f&3;o=c&-4;s=c&3;m=P(b,-3)+a|0;a=m+P(c,3)|0;b=(m+P(d,3)|0)-3|0;l=(c|0)<=0;t=c-1>>>0>2;n=k+(f^-1)>>>0<3;v=(e^-1)+4>>>0<3;while(1){f=0;g:{if(l)break g;h=0;e=0;d=0;if(t)while(1){f= +P(e,3)+g|0;p=K[a|0]|K[a+1|0]<<8;H[f|0]=p;H[f+1|0]=p>>>8;H[f+2|0]=K[a+2|0];f=P(e|1,3)+g|0;H[f+2|0]=K[a+2|0];p=K[a|0]|K[a+1|0]<<8;H[f|0]=p;H[f+1|0]=p>>>8;f=P(e|2,3)+g|0;H[f+2|0]=K[a+2|0];p=K[a|0]|K[a+1|0]<<8;H[f|0]=p;H[f+1|0]=p>>>8;f=P(e|3,3)+g|0;H[f+2|0]=K[a+2|0];p=K[a|0]|K[a+1|0]<<8;H[f|0]=p;H[f+1|0]=p>>>8;e=e+4|0;d=d+4|0;if((o|0)!=(d|0))continue;break}f=c;if(!s)break g;while(1){d=P(e,3)+g|0;f=K[a|0]|K[a+1|0]<<8;H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=K[a+2|0];e=e+1|0;h=h+1|0;if((s|0)!=(h|0))continue;break}f= +c}h:{if((k|0)<=(f|0)){h=f;break h}e=0;if(i)while(1){h=P(f,3);d=h+g|0;h=h+m|0;p=K[h|0]|K[h+1|0]<<8;H[d|0]=p;H[d+1|0]=p>>>8;H[d+2|0]=K[h+2|0];f=f+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}h=k;if(n)break h;while(1){d=P(f,3);e=d+g|0;h=d+m|0;p=K[h|0]|K[h+1|0]<<8;H[e|0]=p;H[e+1|0]=p>>>8;H[e+2|0]=K[h+2|0];h=d+3|0;e=h+g|0;h=h+m|0;H[e+2|0]=K[h+2|0];h=K[h|0]|K[h+1|0]<<8;H[e|0]=h;H[e+1|0]=h>>>8;h=d+6|0;e=h+g|0;h=h+m|0;p=K[h|0]|K[h+1|0]<<8;H[e|0]=p;H[e+1|0]=p>>>8;H[e+2|0]=K[h+2|0];e=d+9|0;d=e+g|0;e=e+m|0;h= +K[e|0]|K[e+1|0]<<8;H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=K[e+2|0];f=f+4|0;if((k|0)!=(f|0))continue;break}h=k}i:{if((h|0)>=4)break i;e=0;if(j)while(1){d=P(h,3)+g|0;f=K[b|0]|K[b+1|0]<<8;H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=K[b+2|0];h=h+1|0;e=e+1|0;if((j|0)!=(e|0))continue;break}if(v)break i;while(1){d=P(h,3)+g|0;e=K[b|0]|K[b+1|0]<<8;H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=K[b+2|0];H[d+5|0]=K[b+2|0];e=K[b|0]|K[b+1|0]<<8;H[d+3|0]=e;H[d+4|0]=e>>>8;e=K[b|0]|K[b+1|0]<<8;H[d+6|0]=e;H[d+7|0]=e>>>8;H[d+8|0]=K[b+2|0];e=K[b| +0]|K[b+1|0]<<8;H[d+9|0]=e;H[d+10|0]=e>>>8;H[d+11|0]=K[b+2|0];h=h+4|0;if((h|0)!=4)continue;break}}g=g+12|0;q=q+1|0;if((q|0)!=4)continue;break}}}function nsa(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;s=fc-32|0;fc=s;a:{b:{c=0;c:{if(J[a+16>>2]>=J[a+12>>2])break c;if(J[a+20>>2]==J[a+24>>2]){J[a+20>>2]=0;c=L[a+8>>1];I[J[a+52>>2]>>1]=c;I[J[a+40>>2]>>1]=c;f=J[a+64>>2];c=J[f+96>>2];if((c|0)>0){e=f+16|0;while(1){c=c>>>0>=64?64:c;Up(J[f+12>>2],e,c);c=J[f+ +96>>2]-c|0;J[f+96>>2]=c;if((c|0)>0)continue;break}}J[f+88>>2]=0;J[f+92>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;c=32;J[f+32>>2]=0;J[f+36>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+56>>2]=0;J[f+60>>2]=0;e=f- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[f+72>>2]=0;J[f+76>>2]=0;j=cI(J[f+12>>2]);J[f+80>>2]=0;J[f+84>>2]=32;J[f+96>>2]=j;h=f+16|0;d=J[f+92>>2];g=J[f+88>>2];while(1){d:{e:{if((d|0)>(g|0)){l=g;break e}J[f+88>>2]=0;J[f+92>>2]=0;if(!j){J[f+96>>2]=0;break d}c=J[f+12>>2];d= +kc[J[J[c>>2]+8>>2]](c,h,j>>>0>=64?64:j)|0;J[f+92>>2]=d;j=J[f+96>>2]-d|0;J[f+96>>2]=j;if((d|0)<=0)break d;i=J[f+80>>2];l=J[f+88>>2];c=J[f+84>>2]}e=c;g=l+1|0;J[f+88>>2]=g;c=e-8|0;J[f+84>>2]=c;i=K[(f+l|0)+16|0]<>2]=i;if((e|0)>15)continue}break}}k=J[a+52>>2];c=J[a+40>>2];J[a+52>>2]=c;J[a+40>>2]=k;e=J[a+8>>2];f:{if((e|0)<=0)break f;j=c+2|0;f=L[c>>1];while(1){c=J[a+68>>2];d=J[a+64>>2];e=J[d+80>>2];p=J[c+8>>2]+P(K[J[c+16>>2]+(e>>>J[c+12>>2]|0)|0],6)|0;c=I[p+2>>1];h=e<>2]=h;c=c+J[d+ +84>>2]|0;J[d+84>>2]=c;g:{if((c|0)<16)break g;r=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break g}e=J[d+12>>2];i=kc[J[J[e>>2]+8>>2]](e,r,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break g;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;t=(c|0)>15;c=g;e=l;if(t)continue;break}}h:{i:{j:{k:{l:{m:{n:switch(I[p+4>>1]){case 1:p=q&1;m=J[(p? +76:72)+a>>2];while(1){d=J[a+64>>2];e=J[d+80>>2];r=J[m+8>>2]+P(K[J[m+16>>2]+(e>>>J[m+12>>2]|0)|0],6)|0;c=I[r+2>>1];h=e<>2]=h;c=c+J[d+84>>2]|0;J[d+84>>2]=c;o:{if((c|0)<16)break o;t=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break o}e=J[d+12>>2];i=kc[J[J[e>>2]+8>>2]](e,t,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break o;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+ +84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;u=(c|0)>15;c=g;e=l;if(u)continue;break}}c=I[r+4>>1];n=c+n|0;o=c+o|0;if((c|0)>63)continue;break}I[k>>1]=n;n=J[(p?72:76)+a>>2];m=0;while(1){d=J[a+64>>2];e=J[d+80>>2];p=J[n+8>>2]+P(K[J[n+16>>2]+(e>>>J[n+12>>2]|0)|0],6)|0;c=I[p+2>>1];h=e<>2]=h;c=c+J[d+84>>2]|0;J[d+84>>2]=c;p:{if((c|0)<16)break p;r=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break p}e=J[d+12>>2];i=kc[J[J[e>> +2]+8>>2]](e,r,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break p;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;t=(c|0)>15;c=g;e=l;if(t)continue;break}}c=I[p+4>>1];m=c+m|0;o=c+o|0;if((c|0)>63)continue;break}I[k+2>>1]=m;k=k+4|0;n=0;c=f;break j;case 2:c=L[j>>1]+f|0;j=j+2|0;break m;case 5:c=L[j>>1]+f|0;j=j+2|0;f=f+3|0;break m;case 4:c=L[j>>1]+f|0;j=j+2|0;f=f+2|0;break m;case 3:c=L[j>>1]+f|0;j=j+2|0;f=f+1|0; +break m;case 8:j=j-2|0;c=f-L[j>>1]|0;f=f-3|0;break m;case 7:j=j-2|0;c=f-L[j>>1]|0;f=f-2|0;break m;case 0:break k;case 6:break n;default:break l}j=j-2|0;c=f-L[j>>1]|0;f=f-1|0}o=f;I[k>>1]=f+(n+m|0);q=q^1;k=k+2|0;n=0;break j}d=J[a+64>>2];c=J[d+84>>2];q:{if((c|0)<8)break q;i=d+16|0;h=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(h|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break q}e=J[d+12>>2];h=kc[J[J[e>>2]+8>>2]](e,i,c>>>0>=64?64:c)|0;J[d+92>>2]=h;J[d+96>>2]=J[d+96>>2]-h;if((h|0)<= +0)break q;e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;J[d+80>>2]=J[d+80>>2]|K[(d+e|0)+16|0]<15;c=g;e=l;if(m)continue;break}}d=J[a+64>>2];c=J[d+80>>2];if((c&-256)==1048832){J[a+16>>2]=J[a+12>>2];c=0;break c}if((c&-4194304)!=62914560)break i;h=c<<10;J[d+80>>2]=h;e=J[d+84>>2];c=e+10|0;J[d+84>>2]=c;r:{if((e|0)<6)break r;m=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break r}e=J[d+12>>2];i=kc[J[J[e>> +2]+8>>2]](e,m,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break r;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;p=(c|0)>15;c=g;e=l;if(p)continue;break}}while(1){d=J[a+64>>2];m=J[d+80>>2];c=m&-67108864;s:{if((c|0)!=67108864){if(c){h=m<<1;J[d+80>>2]=h;e=J[d+84>>2];c=e+1|0;J[d+84>>2]=c;t:{if((e|0)<15)break t;p=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2]; +if(!c){J[d+96>>2]=0;break t}e=J[d+12>>2];i=kc[J[J[e>>2]+8>>2]](e,p,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break t;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;r=(c|0)>15;c=g;e=l;if(r)continue;break}}if((q&1)!=((m|0)<0|0)){I[k>>1]=n;q=q^1;n=0;k=k+2|0}n=n+1|0;c=1;break s}h=m<<8;J[d+80>>2]=h;e=J[d+84>>2];c=e+8|0;J[d+84>>2]=c;u:{if((e|0)<8)break u;p=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i| +0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break u}e=J[d+12>>2];i=kc[J[J[e>>2]+8>>2]](e,p,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break u;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e|0)+16|0]<>2]=h;r=(c|0)>15;c=g;e=l;if(r)continue;break}}if((m&-33554432)!=33554432){a=Qc(s+8|0,2434848,2394880,727,2436262,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(n){I[k>>1]= +n;q=q^1;k=k+2|0}n=0;if((!(m&16777216)^q)&1){c=f;break j}I[k>>1]=0;q=q^1;k=k+2|0;c=f;break j}h=m<<6;J[d+80>>2]=h;e=J[d+84>>2];c=e+6|0;J[d+84>>2]=c;v:{if((e|0)<10)break v;m=d+16|0;i=J[d+92>>2];e=J[d+88>>2];while(1){if((e|0)>=(i|0)){J[d+88>>2]=0;J[d+92>>2]=0;c=J[d+96>>2];if(!c){J[d+96>>2]=0;break v}e=J[d+12>>2];i=kc[J[J[e>>2]+8>>2]](e,m,c>>>0>=64?64:c)|0;J[d+92>>2]=i;J[d+96>>2]=J[d+96>>2]-i;if((i|0)<=0)break v;h=J[d+80>>2];e=J[d+88>>2];c=J[d+84>>2]}l=e+1|0;J[d+88>>2]=l;g=c-8|0;J[d+84>>2]=g;h=K[(d+e| +0)+16|0]<>2]=h;p=(c|0)>15;c=g;e=l;if(p)continue;break}}if(q&1){I[k>>1]=n;n=0;k=k+2|0}n=n+5|0;q=0;c=5}o=c+o|0;if((o|0)<=J[a+8>>2])continue;break}a=Qc(s+8|0,2434848,2394880,721,2436262,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}o=L[j>>1]+f|0;n=o+(n+m|0)|0;c=L[j+2>>1]+o|0;j=j+4|0}e=J[a+8>>2];if((c|0)>(o|0)){f=c;break h}f=c;c=j;if((e|0)<=(f|0))break h;while(1){j=c+4|0;f=L[c+2>>1]+(L[c>>1]+f|0)|0;if((o|0)<(f|0))break h;c=j;if((e|0)>(f|0))continue;break}break h}a= +Qc(s+8|0,2434848,2394880,747,2436262,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}m=0-o|0;if((e|0)>(o|0))continue;break}if((n|0)<=0)break f;c=J[a+68>>2];g=J[a+64>>2];e=J[g+80>>2];l=J[c+8>>2]+P(K[J[c+16>>2]+(e>>>J[c+12>>2]|0)|0],6)|0;c=I[l+2>>1];h=e<>2]=h;c=c+J[g+84>>2]|0;J[g+84>>2]=c;w:{if((c|0)<16)break w;d=g+16|0;i=J[g+92>>2];e=J[g+88>>2];while(1){if((e|0)>=(i|0)){J[g+88>>2]=0;J[g+92>>2]=0;c=J[g+96>>2];if(!c){J[g+96>>2]=0;break w}e=J[g+12>>2];i=kc[J[J[e>> +2]+8>>2]](e,d,c>>>0>=64?64:c)|0;J[g+92>>2]=i;J[g+96>>2]=J[g+96>>2]-i;if((i|0)<=0)break w;h=J[g+80>>2];e=J[g+88>>2];c=J[g+84>>2]}j=e+1|0;J[g+88>>2]=j;f=c-8|0;J[g+84>>2]=f;h=K[(e+g|0)+16|0]<>2]=h;q=(c|0)>15;c=f;e=j;if(q)continue;break}}if(L[l+4>>1]!=2){a=Qc(s+8|0,2434848,2394880,761,2436262,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}I[k>>1]=n;k=k+2|0;e=J[a+8>>2]}x:{if((e|0)>=(o|0))break x;c=J[a+40>>2];y:{if(c>>>0>=k>>>0)break y;while(1){k=k-2|0;o=o-L[k>> +1]|0;if((o|0)<=(e|0))break y;if(c>>>0>>0)continue;break}}if((e|0)<=(o|0))break x;I[k>>1]=e-o;k=k+2|0}if(b)J[b>>2]=k;I[k>>1]=0;I[k+2>>1]=0;J[a+16>>2]=J[a+16>>2]+1;J[a+20>>2]=J[a+20>>2]+1;c=J[a+40>>2]}fc=s+32|0;return c|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function WB(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;D=32;f=fc-15760|0;fc=f;A=f+15608|0;X=(f+240|0)+c|0;while(1){L= +g;xc(f+240|0,b,c);e=xc(X,a,D);g=c+D|0;if(d){h=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);e=e+D|0;i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+3|0]=i>>>24;H[e+4|0]=h;H[e+5|0]=h>>>8;H[e+6|0]=h>>>16;H[e+7|0]=h>>>24;h=K[d+44|0]|K[d+45|0]<<8|(K[d+46|0]<<16|K[d+47|0]<<24);i=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[e+40|0]=i;H[e+41|0]=i>>>8;H[e+42|0]=i>>>16;H[e+43|0]=i>>>24;H[e+44|0]=h;H[e+45|0]=h>>>8;H[e+46|0]=h>>>16;H[e+47|0]=h>>>24;h= +K[d+36|0]|K[d+37|0]<<8|(K[d+38|0]<<16|K[d+39|0]<<24);i=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);H[e+32|0]=i;H[e+33|0]=i>>>8;H[e+34|0]=i>>>16;H[e+35|0]=i>>>24;H[e+36|0]=h;H[e+37|0]=h>>>8;H[e+38|0]=h>>>16;H[e+39|0]=h>>>24;h=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);i=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);H[e+24|0]=i;H[e+25|0]=i>>>8;H[e+26|0]=i>>>16;H[e+27|0]=i>>>24;H[e+28|0]=h;H[e+29|0]=h>>>8;H[e+30|0]=h>>>16;H[e+31|0]=h>>>24;h=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<< +16|K[d+23|0]<<24);i=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);H[e+16|0]=i;H[e+17|0]=i>>>8;H[e+18|0]=i>>>16;H[e+19|0]=i>>>24;H[e+20|0]=h;H[e+21|0]=h>>>8;H[e+22|0]=h>>>16;H[e+23|0]=h>>>24;h=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);i=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);H[e+8|0]=i;H[e+9|0]=i>>>8;H[e+10|0]=i>>>16;H[e+11|0]=i>>>24;H[e+12|0]=h;H[e+13|0]=h>>>8;H[e+14|0]=h>>>16;H[e+15|0]=h>>>24;g=g+48|0}h=1;while(1){e=f+240|0;xc(e+P(g,h)|0,e,g);xc(e+P(h+1|0,g)|0,e,g); +xc(e+P(h+2|0,g)|0,e,g);h=h+3|0;if((h|0)!=64)continue;break}e=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);J[f+12>>2]=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);J[f+16>>2]=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[f+20>>2]=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);J[f+24>>2]=e;h=4;while(1){i=(f+12|0)+(h<< +2)|0;if(!(h&3)){m=J[(h&-4)+2213440>>2];e=zEb(e,8);e=m^(K[(e>>>16&255)+2214160|0]<<16|K[(e>>>24|0)+2214160|0]<<24|K[(e>>>8&255)+2214160|0]<<8|K[(e&255)+2214160|0])}e=J[i-16>>2]^e;J[i>>2]=e;h=h+1|0;if((h|0)!=44)continue;break}e=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);h=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);H[f+204|0]=h;H[f+205|0]=h>>>8;H[f+206|0]=h>>>16;H[f+207|0]=h>>>24;H[f+208|0]=e;H[f+209|0]=e>>>8;H[f+210|0]=e>>>16;H[f+211|0]=e>>>24;e=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<< +16|K[a+31|0]<<24);h=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);H[f+212|0]=h;H[f+213|0]=h>>>8;H[f+214|0]=h>>>16;H[f+215|0]=h>>>24;H[f+216|0]=e;H[f+217|0]=e>>>8;H[f+218|0]=e>>>16;H[f+219|0]=e>>>24;i=g<<6;h=0;if((g|0)>0)while(1){e=f+12|0;E=(f+240|0)+h|0;g=E;H[e+176|0]=K[e+192|0]^K[g|0];H[e+180|0]=K[e+193|0]^K[g+1|0];H[e+184|0]=K[e+194|0]^K[g+2|0];H[e+188|0]=K[e+195|0]^K[g+3|0];H[e+177|0]=K[e+196|0]^K[g+4|0];q=K[e+197|0]^K[g+5|0];H[e+181|0]=q;o=K[e+198|0]^K[g+6|0];H[e+185|0]=o;w=K[e+199|0]^ +K[g+7|0];H[e+189|0]=w;p=K[e+200|0]^K[g+8|0];H[e+178|0]=p;r=K[e+201|0]^K[g+9|0];H[e+182|0]=r;s=K[e+202|0]^K[g+10|0];H[e+186|0]=s;C=K[e+203|0]^K[g+11|0];H[e+190|0]=C;v=K[e+204|0]^K[g+12|0];H[e+179|0]=v;k=K[e+205|0]^K[g+13|0];H[e+183|0]=k;n=K[e+206|0]^K[g+14|0];H[e+187|0]=n;j=J[e+12>>2];n=n^j>>>8;k=k^j>>>16;v=v^j>>>24;l=J[e+8>>2];s=s^l>>>8;r=r^l>>>16;p=p^l>>>24;m=J[e+4>>2];o=o^m>>>8;q=q^m>>>16;t=K[e+177|0]^m>>>24;u=J[e>>2];x=K[e+184|0]^u>>>8;y=K[e+180|0]^u>>>16;z=K[e+176|0]^u>>>24;l=l^C;m=m^w;u=u^K[e+ +188|0];w=j^(K[e+207|0]^K[g+15|0]);C=1;while(1){g=H[(m&255)+2214160|0];j=g<<1;M=(g|0)<0?j^27:j;m=H[(k&255)+2214160|0];p=H[(p&255)+2214160|0];N=m^p;x=H[(x&255)+2214160|0];j=x<<1;F=(x|0)<0?j^27:j;O=M^(N^(F^g));H[e+186|0]=O;o=H[(o&255)+2214160|0];v=H[(v&255)+2214160|0];j=v<<1;G=o^((v|0)<0?j^27:j);y=H[(y&255)+2214160|0];k=y^v;j=H[(l&255)+2214160|0];l=j<<1;l=(j|0)<0?l^27:l;Q=G^k^l;H[e+191|0]=Q;B=o<<1;R=(o|0)<0?B^27:B;S=l^(k^(j^R));H[e+187|0]=S;k=H[(n&255)+2214160|0];n=k<<1;T=(k|0)<0?n^27:n;l=H[(r&255)+ +2214160|0];n=l<<1;B=(l|0)<0?n^27:n;r=H[(t&255)+2214160|0];n=H[(u&255)+2214160|0];U=T^(B^k^r^n);H[e+181|0]=U;t=r<<1;V=k^((r|0)<0?t^27:t);W=n^(B^(l^V));H[e+177|0]=W;q=H[(q&255)+2214160|0];k=q<<1;B=(q|0)<0?k^27:k;s=H[(s&255)+2214160|0];t=H[(z&255)+2214160|0];k=t<<1;u=s^((t|0)<0?k^27:k);k=H[(w&255)+2214160|0];z=B^(q^u)^k;H[e+176|0]=z;w=m<<1;w=(m|0)<0?w^27:w;F=g^(F^(p^(w^x)));H[e+182|0]=F;I=p<<1;I=x^((p|0)<0?I^27:I);p=g^(w^(m^I));H[e+178|0]=p;g=y<<1;g=(y|0)<0?g^27:g;v=j^(v^(g^o)^R);H[e+183|0]=v;G=j^(g^ +(y^G));H[e+179|0]=G;g=e+(C<<4)|0;z=z^K[g+3|0];H[e+176|0]=z;o=k<<1;o=(k|0)<0?o^27:o;m=q^t;j=J[g>>2];u=o^(u^(m^j));H[e+188|0]=u;q=m;m=s<<1;m=(s|0)<0?m^27:m;x=o^(q^(k^(m^j>>>8)));H[e+184|0]=x;y=k^(m^(t^(s^(B^j>>>16))));H[e+180|0]=y;j=J[g+4>>2];q=j>>>16^U;H[e+181|0]=q;t=j>>>24^W;H[e+177|0]=t;j=l^r;k=J[g+4>>2];l=n<<1;l=(n|0)<0?l^27:l;m=j^k^V^l;H[e+189|0]=m;o=l^(j^(n^k>>>8^T));H[e+185|0]=o;j=J[g+8>>2];s=j>>>8^O;H[e+186|0]=s;r=j>>>16^F;H[e+182|0]=r;p=p^j>>>24;H[e+178|0]=p;l=K[g+8|0]^N^I^M;H[e+190|0]=l;g= +J[g+12>>2];w=g^Q;H[e+191|0]=w;n=g>>>8^S;H[e+187|0]=n;k=v^g>>>16;H[e+183|0]=k;v=G^g>>>24;H[e+179|0]=v;C=C+1|0;if((C|0)!=10)continue;break}g=J[e+160>>2];j=g^K[(w&255)+2214160|0];H[e+188|0]=j;s=K[(s&255)+2214160|0]^g>>>8;H[e+184|0]=s;q=K[(q&255)+2214160|0]^g>>>16;H[e+180|0]=q;z=K[(z&255)+2214160|0]^g>>>24;H[e+176|0]=z;g=J[e+164>>2];u=g^K[(u&255)+2214160|0];H[e+189|0]=u;n=K[(n&255)+2214160|0]^g>>>8;H[e+185|0]=n;r=K[(r&255)+2214160|0]^g>>>16;H[e+181|0]=r;t=K[(t&255)+2214160|0]^g>>>24;H[e+177|0]=t;g=J[e+ +168>>2];m=g^K[(m&255)+2214160|0];H[e+190|0]=m;x=K[(x&255)+2214160|0]^g>>>8;H[e+186|0]=x;k=K[(k&255)+2214160|0]^g>>>16;H[e+182|0]=k;p=K[(p&255)+2214160|0]^g>>>24;H[e+178|0]=p;H[e+208|0]=z;H[e+192|0]=z;g=J[e+172>>2];l=g^K[(l&255)+2214160|0];H[e+191|0]=l;o=K[(o&255)+2214160|0]^g>>>8;H[e+187|0]=o;y=K[(y&255)+2214160|0]^g>>>16;H[e+183|0]=y;g=K[(v&255)+2214160|0]^g>>>24;H[e+179|0]=g;H[e+209|0]=q;H[e+193|0]=q;H[e+210|0]=s;H[e+194|0]=s;H[e+211|0]=j;H[e+195|0]=j;H[e+212|0]=t;H[e+196|0]=t;H[e+213|0]=r;H[e+ +197|0]=r;H[e+214|0]=n;H[e+198|0]=n;H[e+215|0]=u;H[e+199|0]=u;H[e+216|0]=p;H[e+200|0]=p;H[e+217|0]=k;H[e+201|0]=k;H[e+218|0]=x;H[e+202|0]=x;H[e+203|0]=m;H[e+219|0]=m;H[e+204|0]=g;H[e+220|0]=g;H[e+205|0]=y;H[e+221|0]=y;H[e+206|0]=o;H[e+222|0]=o;H[e+207|0]=l;H[e+223|0]=l;e=J[f+232>>2];J[E+8>>2]=J[f+228>>2];J[E+12>>2]=e;e=J[f+224>>2];J[E>>2]=J[f+220>>2];J[E+4>>2]=e;h=h+16|0;if((i|0)>(h|0))continue;break}a:{b:switch(((K[f+240|0]%3+K[f+241|0]%3+K[f+242|0]%3+K[f+243|0]%3+K[f+244|0]%3+K[f+245|0]%3+K[f+246| +0]%3+K[f+247|0]%3+K[f+248|0]%3+K[f+249|0]%3+K[f+250|0]%3+K[f+251|0]%3+K[f+252|0]%3+K[f+253|0]%3+K[f+254|0]%3+K[f+255|0]%3&255)>>>0)%3|0){case 0:Nw(f+240|0,i,a);D=32;break a;case 1:J[f+15752>>2]=0;J[f+15600>>2]=-1090891868;J[f+15604>>2]=1203062813;J[f+15592>>2]=1694076839;J[f+15596>>2]=-619958771;J[f+15584>>2]=1750603025;J[f+15588>>2]=-1900787065;J[f+15576>>2]=-4191439;J[f+15580>>2]=1731405415;J[f+15568>>2]=-150054599;J[f+15572>>2]=355462360;J[f+15560>>2]=812702999;J[f+15564>>2]=-1856437926;J[f+15552>> +2]=914150663;J[f+15556>>2]=1654270250;J[f+15544>>2]=-1056596264;J[f+15548>>2]=-876896931;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+4>>2]=0;D=48;J[f+15756>>2]=48;e=f+15544|0;I$(e,f+240|0,i);J$(a,e);kc[J[677150]](e,0,216)|0;break a;case 2:break b;default:break a}J[f+15752>>2]=0;J[f+15600>>2]=327033209;J[f+15604>>2]=1541459225;J[f+15592>>2]=-79577749;J[f+15596>>2]=528734635;J[f+15584>>2]=725511199;J[f+15588>>2]=-1694144372;J[f+15576>>2]=-1377402159;J[f+15580>>2]=1359893119;J[f+15568>>2]=1595750129;J[f+ +15572>>2]=-1521486534;J[f+15560>>2]=-23791573;J[f+15564>>2]=1013904242;J[f+15552>>2]=-2067093701;J[f+15556>>2]=-1150833019;J[f+15544>>2]=-205731576;J[f+15548>>2]=1779033703;J[A+8>>2]=0;J[A+12>>2]=0;J[A>>2]=0;J[A+4>>2]=0;D=64;J[f+15756>>2]=64;e=f+15544|0;I$(e,f+240|0,i);J$(a,e);kc[J[677150]](e,0,216)|0}g=L+1|0;if(L>>>0<63|K[(f+i|0)+239|0]>(L-31|0))continue;break}fc=f+15760|0}function aBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-1152|0;fc=d;c=d+16|0;e=si();kc[J[J[e>>2]+8>>2]](c,e,a,b); +a:{b:{c:{d:{e:{f:{g:{h:{e=J[d+24>>2];i:{j:{if(!e|!J[e+8>>2])break j;J[699344]=0;e=d+1112|0;ca(5401,e|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[d+1112>>2];if(!c){wc(e);break j}c=J[c+8>>2];wc(d+1112|0);if(c)break i}J[699344]=0;c=d+1076|0;da(5396,c|0,a+72|0);e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;e=ga(5343,d+1112|0,b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[699344]=0;aa(5253,d+16|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[e+24>>2]=2392964;J[e>> +2]=2392932;c=J[e+28>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)kc[J[J[c>>2]+4>>2]](c);J[e+28>>2]=0}J[e+16>>2]=2392964;c=J[e+20>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)kc[J[J[c>>2]+4>>2]](c);J[e+20>>2]=0}wc(e+8|0);J[d+1100>>2]=2392964;J[d+1076>>2]=2392932;c=J[d+1104>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[d+1104>>2]=0}J[d+1092>>2]=2392964;c=J[d+1096>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[d+1096>>2]=0}wc(d+1084|0)}c=J[a+120>>2];if(!c)break a; +g=a+112|0;i=d+1084|0;break d}c=Z()|0;break b}c=Z()|0;break e}c=Z()|0;Ed(e)}Ed(d+1076|0);break b}k:{l:{while(1){m:{e=J[c+8>>2];J[699344]=0;e=aa(5151,d+1076|0,e+72|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break m;J[699344]=0;f=aa(5236,e|0,d+16|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break l;J[e>>2]=2392932;J[d+1100>>2]=2392964;e=J[d+1104>>2];if(e){h=J[e+4>>2]-1|0;J[e+4>>2]=h;if(!h)kc[J[J[e>>2]+4>>2]](e);J[d+1104>>2]=0}J[d+1092>>2]=2392964;e=J[d+1096>>2];if(e){h=J[e+4>>2]-1|0;J[e+4>>2]=h;if(!h)kc[J[J[e>> +2]+4>>2]](e);J[d+1096>>2]=0}wc(i);if(!f){c=J[c>>2];if(!c)break a;continue}J[d+1072>>2]=g;J[d+1068>>2]=c;c=J[c>>2];J[699344]=0;da(5235,g|0,d+1068|0);e=J[699344];J[699344]=0;if((e|0)==1)break k;if(c)continue;break a}break}c=Z()|0;break b}c=Z()|0;Ed(e);break b}c=Z()|0;break b}c=Z()|0}Ed(d+16|0);ba(c|0);B()}J[d+40>>2]=2392964;J[d+16>>2]=2392932;c=J[d+44>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[d+44>>2]=0}J[d+32>>2]=2392964;c=J[d+36>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>> +2]+4>>2]](c);J[d+36>>2]=0}wc(d+24|0);c=d+1064|0;Fn(c,J[a+108>>2]);J[699344]=0;da(5278,d+1060|0,c|0);c=J[699344];J[699344]=0;n:{o:{if((c|0)==1){a=Z()|0;break o}J[699344]=0;i=J[d+1060>>2];c=d+1056|0;$(5248,c|0);e=J[699344];J[699344]=0;p:{q:{r:{s:{if((e|0)!=1){J[699344]=0;da(5278,d+1052|0,c|0);c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]=0;g=J[d+1052>>2];J[d+1068>>2]=0;J[d+1072>>2]=J[685894];c=ha(5279,i|0,d+1068|0,0,0)|0;e=J[699344];J[699344]=0;t:{if((e|0)==1)break t;u:{v:{if(!c)break v;c=J[d+1068>> +2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;ca(5330,g|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break t;while(1){J[699344]=0;c=d+1068|0;e=ha(5279,i|0,c|0,0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break s;w:{if(e){J[699344]=0;c=pd(c,2394278,-1);e=J[699344];J[699344]=0;if((e|0)==1)break s;x:{if(c){c=J[d+1068>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;ca(5330,g|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break s;J[699344]=0;J[d+1044>>2]=0;aa(5145,d+1044|0,i|0)|0;c=J[699344];J[699344]=0;y:{z:{if((c| +0)!=1){J[699344]=0;c=J[d+1044>>2];J[d+16>>2]=0;aa(5145,d+16|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break z;J[699344]=0;ga(5335,J[d+16>>2],c|0,0)|0;c=J[699344];J[699344]=0;A:{if((c|0)!=1){c=J[d+16>>2];J[d+16>>2]=0;if(!c)break A;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break A;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break A}break n}a=Z()|0;zc(d+16|0);break y}c=J[d+1044>>2];J[d+1044>>2]=0;B:{if(!c)break B;J[699344]=0;e=J[c+4>>2]-1|0; +J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break x;if(e)break B;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break x}J[699344]=0;$(5332,g|0);c=J[699344];J[699344]=0;if((c|0)!=1)break w;break s}a=Z()|0;break r}a=Z()|0}zc(d+1044|0);break r}J[d+1044>>2]=0;J[d+1048>>2]=J[685894];C:{D:{while(1){c=J[J[i>>2]+8>>2];J[699344]=0;c=ga(c|0,i|0,d+16|0,1024)|0;e=J[699344];J[699344]=0;E:{if((e|0)!=1){if(c)break E;while(1){c=J[d+1044>>2];if(!(!(!c|!J[c+8>>2])&K[J[c+12>>2]]==10)){F:{while(1){c= +J[d+1044>>2];if(!c)break F;f=J[c+8>>2];if(!f)break F;h=J[c+12>>2];G:{e=f-1|0;if(!e){c=0;break G}c=e;H:{if((f|0)<=0){c=c+f|0;if((c|0)<0)break H}if((c|0)<=(f|0))break G}J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)B();a=Z()|0;break C}if(K[c+h|0]!=10)break F;J[699344]=0;ca(5336,d+1044|0,e|0,0);c=J[699344];J[699344]=0;if((c|0)!=1)continue;break}a=Z()|0;break C}J[699344]=0;c=d+1044|0;e=ga(5287,c|0,b|0,-1)|0;f=J[699344];J[699344]=0;I:{J:{K:{L:{M:{if((f|0)==1)break M;if(!e)break J;J[699344]= +0;ca(5330,g|0,2394278,0);e=J[699344];J[699344]=0;if((e|0)==1)break M;J[699344]=0;J[d>>2]=0;aa(5145,d|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break L;J[699344]=0;aa(5228,J[d>>2],c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break K;c=J[d>>2];J[d>>2]=0;N:{if(!c)break N;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break I;if(e)break N;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break I}J[699344]=0;$(5332,g|0);c=J[699344];J[699344]=0;if((c|0)!=1)break J}a= +Z()|0;break C}a=Z()|0;break C}a=Z()|0;zc(d);break C}wc(d+1044|0);break w}break n}J[699344]=0;ia(5313,d|0,d+1044|0,1,-1);c=J[699344];J[699344]=0;if((c|0)!=1){c=J[d>>2];O:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+1148|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break O;a=Z()|0;wc(d);break C}J[d+1148>>2]=0}J[699344]=0;aa(5153,d+1044|0,d+1148|0)|0;c=J[699344];J[699344]=0;P:{if((c|0)!=1){c=J[d+1148>>2];J[d+1148>>2]=0;if(!c)break P;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f| +0)!=1){if(e)break P;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break P}break n}a=Z()|0;zc(d+1148|0);wc(d);break C}c=J[d+1044>>2];J[d+1048>>2]=J[(c?c+12|0:2743576)>>2];wc(d);continue}break}a=Z()|0;break C}a=Z()|0;break C}J[699344]=0;c=ga(5339,d+8|0,d+16|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[699344]=0;aa(5340,d+1044|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break D;wc(c);continue}break}a=Z()|0;break C}a=Z()|0;wc(c)}wc(d+1044|0);break r}break n}J[699344]=0;$(5332,g|0);b= +J[699344];J[699344]=0;if((b|0)==1)break u;break v}J[699344]=0;$(5332,i|0);c=J[699344];J[699344]=0;if((c|0)!=1)continue;break}break s}b=J[d+1056>>2];c=J[J[b>>2]+20>>2];J[699344]=0;ha(c|0,b|0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=d+16|0;da(5328,b|0,d+1056|0);c=J[699344];J[699344]=0;Q:{R:{if((c|0)!=1){J[699344]=0;aa(5153,a+108|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break R;b=J[d+16>>2];J[d+16>>2]=0;S:{if(!b)break S;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344]; +J[699344]=0;if((e|0)==1)break n;if(c)break S;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break n}J[a+140>>2]=-1;J[699344]=0;kh(a+148|0,0,0,128,0);a=J[699344];J[699344]=0;if((a|0)==1)break t;wc(d+1068|0);a=J[d+1052>>2];J[d+1052>>2]=0;T:{if(!a)break T;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break n;if(b)break T;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break n}a=J[d+1056>>2];J[d+1056>>2]=0;U:{if(!a)break U;J[699344]=0;b=J[a+4>>2]- +1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break n;if(b)break U;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break n}a=J[d+1060>>2];J[d+1060>>2]=0;V:{if(!a)break V;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break n;if(b)break V;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break n}a=J[d+1064>>2];J[d+1064>>2]=0;W:{if(!a)break W;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break Q;if(b)break W;J[699344]= +0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break Q}fc=d+1152|0;return}a=Z()|0;break r}a=Z()|0;zc(d+16|0);break r}break n}a=Z()|0;break r}a=Z()|0;break r}a=Z()|0;break q}a=Z()|0;break p}a=Z()|0}wc(d+1068|0);zc(d+1052|0)}zc(d+1056|0)}zc(d+1060|0)}zc(d+1064|0);ba(a|0);B()}ea(0)|0;Bc();B()}function jDa(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=fc-1088|0;fc=f;J[f+1076>>2]=0;J[699344]=0;J[f+1080>>2]=J[685894];e=f+1076|0;g=ha(5279,a|0,e|0,0,0)|0;h=J[699344];J[699344]=0;a:{b:{c:{if((h| +0)==1)break c;d:{e:{f:{if(g){g=J[f+1076>>2];g=J[(g?g+12|0:2743576)>>2];J[699344]=0;ca(5330,b|0,g|0,1);g=J[699344];J[699344]=0;if((g|0)==1)break c;J[699344]=0;e=pd(e,2398800,5);g=J[699344];J[699344]=0;if((g|0)==1)break c;g:{if(!e){while(1){h:{J[699344]=0;e=f+1076|0;g=ha(5279,a|0,e|0,0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break h;if(!g)break g;g=J[f+1076>>2];g=J[(g?g+12|0:2743576)>>2];J[699344]=0;ca(5330,b|0,g|0,0);g=J[699344];J[699344]=0;if((g|0)==1)break h;J[699344]=0;e=pd(e,2399060,-1);g=J[699344]; +J[699344]=0;if((g|0)==1)break h;i:{if(!e){J[f+1068>>2]=0;J[f+1072>>2]=J[685894];j:{k:{while(1){e=J[J[a>>2]+8>>2];J[699344]=0;e=ga(e|0,a|0,f+32|0,1024)|0;g=J[699344];J[699344]=0;l:{m:{if((g|0)!=1){if(e)break l;while(1){e=J[f+1068>>2];if(!(!(!e|!J[e+8>>2])&K[J[e+12>>2]]==10)){n:{while(1){e=J[f+1068>>2];if(!e)break n;h=J[e+8>>2];if(!h)break n;i=J[e+12>>2];o:{g=h-1|0;if(!g){e=0;break o}e=g;p:{if((h|0)<=0){e=e+h|0;if((e|0)<0)break p}if((e|0)<=(h|0))break o}J[699344]=0;ka(5289);a=J[699344];J[699344]=0; +if((a|0)!=1)B();a=Z()|0;break j}if(K[e+i|0]!=10)break n;J[699344]=0;ca(5336,f+1068|0,g|0,0);e=J[699344];J[699344]=0;if((e|0)!=1)continue;break}a=Z()|0;break j}J[699344]=0;g=rf(f+1068|0);e=J[699344];J[699344]=0;q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{if((e|0)==1)break F;J[699344]=0;e=J[J[d+12>>2]+((g>>>0)%M[d+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break F;G:{H:{if(e)while(1){if((g|0)==J[e+12>>2]){J[699344]=0;h=ga(5287,e+16|0,f+1068|0,-1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break G; +if(!h)break H}e=J[e+8>>2];if(e)continue;break}J[699344]=0;ca(5337,f+12|0,c|0,f+1068|0);e=J[699344];J[699344]=0;if((e|0)==1)break y;e=J[f+12>>2];if(!e)break u;J[699344]=0;g=e+36|0;h=J[e+20>>2];I:{if(!h)break I;g=J[h+8>>2]?e+20|0:g}e=J[699344];J[699344]=0;if((e|0)==1)break t;J[f+16>>2]=0;J[f+20>>2]=J[685894];e=J[g>>2];if(!e)break C;g=J[J[e>>2]+28>>2];J[699344]=0;ca(g|0,f+1084|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break B;a=Z()|0;break A}J[699344]=0;J[f+16>>2]=0;aa(5145,f+16|0,b|0)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break E;J[699344]=0;aa(5228,J[f+16>>2],e+24|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break D;e=J[f+16>>2];J[f+16>>2]=0;if(!e)break q;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(g)break q;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;break q}a=Z()|0;break j}a=Z()|0;break j}a=Z()|0;break j}a=Z()|0;zc(f+16|0);break j}J[f+1084>>2]=0}J[699344]=0;aa(5153,f+16|0,f+1084|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){e=J[f+ +1084>>2];J[f+1084>>2]=0;if(!e)break z;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break z;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break z}break a}a=Z()|0;zc(f+1084|0)}wc(f+16|0);break s}e=J[f+16>>2];J[f+20>>2]=J[(e?e+12|0:2743576)>>2];J[699344]=0;g=aa(5338,d|0,f+1068|0)|0;e=J[699344];J[699344]=0;J:{K:{if((e|0)!=1){e=J[f+16>>2];if(!e)break K;h=J[J[e>>2]+28>>2];J[699344]=0;ca(h|0,f+1084|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break J}a= +Z()|0;break v}J[f+1084>>2]=0}J[699344]=0;aa(5153,g+24|0,f+1084|0)|0;e=J[699344];J[699344]=0;L:{if((e|0)!=1){e=J[f+1084>>2];J[f+1084>>2]=0;if(!e)break L;J[699344]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break L;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break L}break a}a=Z()|0;zc(f+1084|0);break v}e=J[g+24>>2];J[g+28>>2]=J[(e?e+12|0:2743576)>>2];J[699344]=0;J[f+1084>>2]=0;aa(5145,f+1084|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break x;J[699344]= +0;aa(5228,J[f+1084>>2],f+16|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break w;e=J[f+1084>>2];J[f+1084>>2]=0;M:{if(!e)break M;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(g)break M;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}wc(f+16|0);break r}a=Z()|0;break j}a=Z()|0;break v}a=Z()|0;zc(f+1084|0)}wc(f+16|0);break s}J[699344]=0;J[f+1084>>2]=0;aa(5145,f+1084|0,a|0)|0;e=J[699344];J[699344]=0;N:{O:{if((e|0)!=1){J[699344]=0;e=J[f+1084>>2]; +J[f+16>>2]=0;aa(5145,f+16|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break O;J[699344]=0;ga(5335,J[f+16>>2],e|0,0)|0;e=J[699344];J[699344]=0;P:{if((e|0)!=1){e=J[f+16>>2];J[f+16>>2]=0;if(!e)break P;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break P;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break P}break a}a=Z()|0;zc(f+16|0);break N}e=J[f+1084>>2];J[f+1084>>2]=0;if(!e)break r;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h| +0)!=1){if(g)break r;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break r}break a}a=Z()|0;break s}a=Z()|0}zc(f+1084|0);break s}a=Z()|0}zc(f+12|0);break j}e=J[f+12>>2];J[f+12>>2]=0;if(!e)break q;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break q;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break q}break a}wc(f+1068|0);break i}J[699344]=0;ia(5313,f+16|0,f+1068|0,1,-1);e=J[699344];J[699344]=0;if((e|0)!=1){e=J[f+16>>2];Q:{if(e){g=J[J[e>> +2]+28>>2];J[699344]=0;ca(g|0,f+1084|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break Q;a=Z()|0;break m}J[f+1084>>2]=0}J[699344]=0;aa(5153,f+1068|0,f+1084|0)|0;e=J[699344];J[699344]=0;R:{if((e|0)!=1){e=J[f+1084>>2];J[f+1084>>2]=0;if(!e)break R;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break R;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break R}break a}a=Z()|0;zc(f+1084|0);break m}e=J[f+1068>>2];J[f+1072>>2]=J[(e?e+12|0:2743576)>>2];wc(f+16| +0);continue}break}a=Z()|0;break j}a=Z()|0;break j}wc(f+16|0);break j}J[699344]=0;e=ga(5339,f+24|0,f+32|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){J[699344]=0;aa(5340,f+1068|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break k;wc(e);continue}break}a=Z()|0;break j}a=Z()|0;wc(e)}wc(f+1068|0);break b}J[699344]=0;J[f+1068>>2]=0;aa(5145,f+1068|0,a|0)|0;e=J[699344];J[699344]=0;S:{T:{if((e|0)!=1){J[699344]=0;e=J[f+1068>>2];J[f+32>>2]=0;aa(5145,f+32|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break T; +J[699344]=0;ga(5335,J[f+32>>2],e|0,0)|0;e=J[699344];J[699344]=0;U:{if((e|0)!=1){e=J[f+32>>2];J[f+32>>2]=0;if(!e)break U;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break U;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break U}break a}a=Z()|0;zc(f+32|0);break S}e=J[f+1068>>2];J[f+1068>>2]=0;if(!e)break i;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break i;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e| +0)!=1)break i}break a}a=Z()|0;break b}a=Z()|0}zc(f+1068|0);break b}J[699344]=0;$(5332,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;$(5332,a|0);e=J[699344];J[699344]=0;if((e|0)!=1)continue}break}a=Z()|0;break b}J[699344]=0;J[f+1068>>2]=0;aa(5145,f+1068|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=J[f+1068>>2];J[f+32>>2]=0;aa(5145,f+32|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;ga(5335,J[f+32>>2],c|0,0)|0;c=J[699344];J[699344]=0;V:{if((c|0)!= +1){c=J[f+32>>2];J[f+32>>2]=0;if(!c)break V;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break V;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break V}break a}a=Z()|0;zc(f+32|0);break d}c=J[f+1068>>2];J[f+1068>>2]=0;if(!c)break g;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break g;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;$(5332,b|0);b=J[699344];J[699344]=0;if((b|0)== +1)break c;J[699344]=0;$(5332,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c}wc(f+1076|0);fc=f+1088|0;return}a=Z()|0;break b}a=Z()|0}zc(f+1068|0);break b}a=Z()|0}wc(f+1076|0);ba(a|0);B()}ea(0)|0;Bc();B()}function cua(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0;n=fc-2096|0;fc=n;M=sh(n+2048|0,n+2056|0,P(J[a+16>>2],J[a+12>>2]),2);q=J[n+2056>> +2];j=q;w=J[a+8>>2];a:{if((w|0)<=0)break a;i=J[a+12>>2];l=J[a+4>>2];if((l|0)>0){t=l&-4;x=l&3;A=i<<1;C=i-l<<1;k=l>>>0<4;while(1){g=j;f=0;h=0;if(!k)while(1){I[g>>1]=H[b+f|0]<<6;I[g+2>>1]=H[(f|1)+b|0]<<6;I[g+4>>1]=H[(f|2)+b|0]<<6;I[g+6>>1]=H[(f|3)+b|0]<<6;f=f+4|0;g=g+8|0;h=h+4|0;if((t|0)!=(h|0))continue;break}h=0;if(x)while(1){I[g>>1]=H[b+f|0]<<6;f=f+1|0;g=g+2|0;h=h+1|0;if((x|0)!=(h|0))continue;break}if((i|0)>(l|0)){Ac(g,0,C);g=j+A|0}j=g;b=b+c|0;m=m+1|0;if((w|0)!=(m|0))continue;break}break a}if((i|0)<= +(l|0))break a;b=i<<1;c=l<<1;g=b-c|0;j=Ac(q,0,P(g,w))+((b+P(g,w-1|0)|0)-c|0)|0}b=J[a+16>>2];b:{if((b|0)<=(w|0))break b;c=J[a+12>>2];if((c|0)<=0)break b;Ac(j,0,P(c,b-w|0)<<1)}E=J[a+12>>2];r=J[a+4>>2];c:{d:{e:{f:{if(d){J[699344]=0;j=P(r,w);N=ha(5213,n+2068|0,n|0,j|0,2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;l=(w|0)>0&(r|0)>0;if(l){i=r&-4;c=r&3;m=0;f=J[n>>2];x=r>>>0<4;b=d;while(1){g=0;h=0;if(!x)while(1){I[(g<<1)+f>>1]=!K[b+g|0]<<12;t=g|1;I[(t<<1)+f>>1]=!K[b+t|0]<<12;t=g|2;I[(t<<1)+f>>1]=!K[b+t| +0]<<12;t=g|3;I[(t<<1)+f>>1]=!K[b+t|0]<<12;g=g+4|0;h=h+4|0;if((i|0)!=(h|0))continue;break}h=0;if(c)while(1){I[(g<<1)+f>>1]=!K[b+g|0]<<12;g=g+1|0;h=h+1|0;if((c|0)!=(h|0))continue;break}b=b+e|0;f=(r<<1)+f|0;m=m+1|0;if((w|0)!=(m|0))continue;break}}J[699344]=0;U=ha(5213,n+2060|0,n+2088|0,j|0,2)|0;b=J[699344];J[699344]=0;if((b|0)!=1){g:{if(!l)break g;j=r&-4;m=r&3;l=0;i=r>>>0<4;f=q;O=J[n+2088>>2];b=O;while(1){g=0;v=0;if(!i)while(1){c=g<<1;I[c+b>>1]=L[c+f>>1];h=c|2;I[h+b>>1]=L[f+h>>1];h=c|4;I[h+b>>1]=L[f+ +h>>1];c=c|6;I[c+b>>1]=L[c+f>>1];g=g+4|0;v=v+4|0;if((j|0)!=(v|0))continue;break}h=0;if(m)while(1){c=g<<1;I[c+b>>1]=L[c+f>>1];g=g+1|0;h=h+1|0;if((m|0)!=(h|0))continue;break}f=(E<<1)+f|0;b=(r<<1)+b|0;l=l+1|0;if((w|0)!=(l|0))continue;break}if((w|0)<3|(r|0)<3)break g;V=J[n>>2];g=2;k=1;while(1){h=g;Q=P(g,r);W=0-Q|0;R=P(k,r)<<1;X=P(g,E)<<1;m=0;x=O;t=q;i=0;c=V;while(1){g=0;p=h+i|0;S=(p|0)<(w|0);F=S?p:w;b=(i+k|0)>(w|0);T=i-(b?h:0)|0;h:{if((F|0)>(T|0)){b=(b?W:0)<<1;Y=b+x|0;_=b+c|0;G=0;y=0;while(1){C=m;m=1; +j=y;A=j-((j+k|0)>(r|0)?h:0)|0;y=h+j|0;D=(r|0)<(y|0)?r:y;i:{if((A|0)>=(D|0)){l=0;g=c;break i}l=Y;v=_;f=0;b=0;s=0;o=T;while(1){j:{if((i|0)>(o|0)){g=A;while(1){z=g<<1;u=I[z+v>>1];if((u|0)>0){u=u&65535;f=u+f|0;b=P(u,I[l+z>>1])+b|0}g=g+k|0;if((D|0)>(g|0))continue;break}break j}g=A;while(1){z=g<<1;u=I[z+v>>1];k:{if((u|0)<=0){s=(g|0)>=(j|0)?1:s;break k}u=u&65535;f=u+f|0;b=P(u,I[l+z>>1])+b|0}g=g+k|0;if((D|0)>(g|0))continue;break}}l=l+R|0;v=v+R|0;o=k+o|0;if((F|0)>(o|0))continue;break}l=0;g=c;if(!f)break i; +g=P(h,G)|1;l=(b|0)/(f|0)|0;if(!(!s|(i|0)>=(F|0)|(j|0)>=(D|0))){A=j|1;v=D&1;o=(g|0)==(D|0);m=t;b=c;s=i;while(1){g=j;l:{if(!v)break l;g=A;z=j<<1;u=z+b|0;if(L[u>>1])break l;I[m+z>>1]=l;I[u>>1]=1}if(!o)while(1){z=g<<1;u=z+b|0;if(!L[u>>1]){I[m+z>>1]=l;I[u>>1]=1}z=g+1<<1;u=z+b|0;if(!L[u>>1]){I[m+z>>1]=l;I[u>>1]=1}g=g+2|0;if((D|0)>(g|0))continue;break}m=(E<<1)+m|0;b=(r<<1)+b|0;s=s+1|0;if((F|0)>(s|0))continue;break}}I[(j<<1)+c>>1]=f>>>2;m=C;g=x}I[g+(j<<1)>>1]=l;G=G+1|0;if((r|0)>(y|0))continue;break}break h}while(1){m= +1;I[(g<<1)+c>>1]=0;g=g+h|0;if((r|0)>(g|0))continue;break}}t=t+X|0;b=Q<<1;x=b+x|0;c=b+c|0;i=p;if(S)continue;break}if(!m)break g;g=h<<1;if((r|0)<=(g|0))break g;k=h;if((g|0)<(w|0))continue;break}}hd(U);hd(N);A=J[a+12>>2];q=J[a+8>>2];i=J[a+4>>2];J[699344]=0;c=J[n+2056>>2];b=P(i,q);C=ha(5213,n+2088|0,n|0,b|0,2)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;J[699344]=0;v=ha(5213,n+2076|0,n+2084|0,b|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;t=(q|0)<=0;m:{if(t)break m;g=J[n+2084>>2];if(q>>>0>=4){b= +q&-4;f=0;while(1){g=xc(g,d,i);m=d+e|0;j=m+e|0;h=j+e|0;d=h+e|0;g=xc(xc(xc(g+i|0,m,i)+i|0,j,i)+i|0,h,i)+i|0;f=f+4|0;if((b|0)!=(f|0))continue;break}}b=q&3;if(!b)break m;f=0;while(1){g=xc(g,d,i);d=d+e|0;g=g+i|0;f=f+1|0;if((b|0)!=(f|0))continue;break}}x=i-1|0;m=1;while(1){d=m;e=J[n>>2];if(!((i|0)<=0|t)){m=(x>>>0)/(d>>>0)|0;b=m+1|0;j=b&-4;g=b&3;s=0;l=P(d,i)<<1;y=P(d,A)<<1;b=e;h=c;while(1){f=0;k=0;if(m>>>0>=3)while(1){o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;o=f<<1;I[o+b>>1]= +L[h+o>>1];f=d+f|0;o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;k=k+4|0;if((j|0)!=(k|0))continue;break}k=0;if(g)while(1){o=f<<1;I[o+b>>1]=L[h+o>>1];f=d+f|0;k=k+1|0;if((g|0)!=(k|0))continue;break}b=b+l|0;h=h+y|0;s=d+s|0;if((q|0)>(s|0))continue;break}}J[699344]=0;m=d<<1;pA(e,i,q,i,d,m);b=J[699344];J[699344]=0;n:{o:{if((b|0)==1)break o;e=J[n>>2];if(!t){g=P(d,i);b=(x>>>0)/(d>>>0)|0;j=b&1;s=b+1&-2;l=0;b=J[n+2084>>2];h=e;while(1){f=d;if((i|0)>(f|0))while(1){if(K[b+f|0])I[(f<<1)+h>>1]=0;f=f+m|0;if((i|0)>(f|0))continue; +break}b=b+g|0;y=g<<1;h=y+h|0;if((q|0)>(d+l|0)){p:{if((i|0)<=0)break p;f=0;k=0;if(d>>>0<=x>>>0)while(1){if(K[b+f|0])I[(f<<1)+h>>1]=0;f=d+f|0;if(K[f+b|0])I[(f<<1)+h>>1]=0;f=d+f|0;k=k+2|0;if((s|0)!=(k|0))continue;break}if(!K[b+f|0]|j)break p;I[(f<<1)+h>>1]=0}h=h+y|0;b=b+g|0}l=l+m|0;if((q|0)>(l|0))continue;break}}J[699344]=0;zo(e,i,q,i,m,d);b=J[699344];J[699344]=0;if((b|0)==1)break o;e=J[n>>2];if(!((i|0)<=0|t)){k=P(d,i);b=(x>>>0)/(d>>>0)|0;s=b&1;y=b+1&-2;g=0;b=J[n+2084>>2];o=P(d,A)<<1;j=e;l=c;while(1){f= +0;h=0;if(d>>>0<=x>>>0)while(1){if(!K[b+f|0]){p=f<<1;I[p+j>>1]=L[l+p>>1]}f=d+f|0;if(!K[f+b|0]){p=f<<1;I[p+j>>1]=L[l+p>>1]}f=d+f|0;h=h+2|0;if((y|0)!=(h|0))continue;break}if(!(K[b+f|0]|s)){f=f<<1;I[f+j>>1]=L[f+l>>1]}b=b+k|0;j=(k<<1)+j|0;l=l+o|0;g=d+g|0;if((q|0)>(g|0))continue;break}}J[699344]=0;pA(e,i,q,i,d,m);b=J[699344];J[699344]=0;if((b|0)==1)break o;if(t)break n;j=(i|0)<=0;if(j)break n;l=P(d,i);s=(x>>>0)/(d>>>0)|0;b=s+1|0;y=b&-4;e=b&3;g=0;b=J[n>>2];o=P(d,A)<<1;h=c;while(1){f=0;k=0;if(s>>>0>=3)while(1){p= +f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;k=k+4|0;if((y|0)!=(k|0))continue;break}k=0;if(e)while(1){p=f<<1;I[p+h>>1]=L[b+p>>1];f=d+f|0;k=k+1|0;if((e|0)!=(k|0))continue;break}b=(l<<1)+b|0;h=h+o|0;g=d+g|0;if((q|0)>(g|0))continue;break}if(j)break n;g=0;j=J[n+2084>>2];k=j;while(1){e=(q|0)>(d+g|0)?l+k|0:j;q:{if(!(!K[e|0]|(!K[k|0]|!K[j|0]))){b=1;if(K[d+k|0]|(d|0)>=(i|0))break q}b=0}H[k|0]=b;f=m;if((i|0)>(f|0))while(1){h= +f+k|0;r:{if(!(!K[h|0]|!K[f+j|0]|(!K[e+f|0]|!K[(f-d|0)+k|0]))){s=d+f|0;b=1;if((s|0)>=(i|0)|K[k+s|0])break r}b=0}H[h|0]=b;f=f+m|0;if((i|0)>(f|0))continue;break}k=e+l|0;j=e;g=g+m|0;if((q|0)>(g|0))continue;break}break n}g=Z()|0;hd(v);hd(C);break c}if(d>>>0<=15)continue;break}hd(v);hd(C);break f}g=Z()|0;hd(N);break c}J[699344]=0;pA(q,r,w,E,1,32);b=J[699344];J[699344]=0;if((b|0)==1)break e}s:{g=J[a+16>>2];t:{if((g|0)<=0)break t;h=J[a+12>>2];if((h|0)<=0)break t;k=J[a>>2];j=J[n+2056>>2];m=0;while(1){v=0; +if((h|0)>0){while(1){g=(v<<1)+j|0;f=n;b=0;c=h<<1;while(1){I[f>>1]=L[g>>1];I[f+2>>1]=L[g+2>>1];I[f+4>>1]=L[g+4>>1];I[f+6>>1]=L[g+6>>1];I[f+8>>1]=L[g+8>>1];I[f+10>>1]=L[g+10>>1];I[f+12>>1]=L[g+12>>1];I[f+14>>1]=L[g+14>>1];I[f+16>>1]=L[g+16>>1];I[f+18>>1]=L[g+18>>1];I[f+20>>1]=L[g+20>>1];I[f+22>>1]=L[g+22>>1];I[f+24>>1]=L[g+24>>1];I[f+26>>1]=L[g+26>>1];I[f+28>>1]=L[g+28>>1];I[f+30>>1]=L[g+30>>1];I[f+32>>1]=L[g+32>>1];I[f+34>>1]=L[g+34>>1];I[f+36>>1]=L[g+36>>1];I[f+38>>1]=L[g+38>>1];I[f+40>>1]=L[g+40>> +1];I[f+42>>1]=L[g+42>>1];I[f+44>>1]=L[g+44>>1];I[f+46>>1]=L[g+46>>1];I[f+48>>1]=L[g+48>>1];I[f+50>>1]=L[g+50>>1];I[f+52>>1]=L[g+52>>1];I[f+54>>1]=L[g+54>>1];I[f+56>>1]=L[g+56>>1];I[f+58>>1]=L[g+58>>1];I[f+60>>1]=L[g+60>>1];I[f+62>>1]=L[g+62>>1];f=f- -64|0;g=c+g|0;b=b+1|0;if((b|0)!=32)continue;break}J[699344]=0;ca(5669,k|0,n|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break s;k=k+16|0;h=J[a+12>>2];v=v+32|0;if((h|0)>(v|0))continue;break}g=J[a+16>>2]}j=(h<<6)+j|0;m=m+32|0;if((m|0)<(g|0))continue;break}}hd(M); +fc=n+2096|0;return}g=Z()|0;break c}g=Z()|0;break c}g=Z()|0;hd(C)}hd(M);ba(g|0);B()}function fub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;o=fc-16|0;fc=o;J[o+12>>2]=0;a:{if(!(K[a+289|0]|K[a+288|0])){b=1029;Jc(a,1029,0,0);break a}if(!c){b=1028;Jc(a,1028,0,0);break a}H[a+292|0]=1;b:{if(K[a+477|0]){H[a+477|0]=0;f=up(a);J[a+440>>2]=J[a+440>>2]+1;if(f)break b}if(!K[a+2533|0]){f=J[a+1012>>2];if(f){f=kc[f|0](a)|0;J[a+1012>>2]=0;if(f)break b}h=Dc(40); +J[h>>2]=0;f=J[a+2456>>2];J[699344]=0;g=Bq(f);f=J[699344];J[699344]=0;c:{d:{if((f|0)==1)break d;i=4;j=-1;e:{f:{if(!f)break f;m=J[699345];if(!m)break f;j=Pc(J[f>>2],h,4);if(!j)break e;gc=m}f=gc;if((j|0)!=1){J[J[a+2452>>2]>>2]=g;f=J[a+2456>>2];J[f+8>>2]=1085;J[f>>2]=1086;g=a+2452|0;h=Hf(a+2568|0,1,h,4);i=gc;f=0}while(1){if(f){J[699344]=0;ha(1084,a|0,6,f|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;j=-1;g:{if(!f)break g;m=J[699345];if(!m)break g;j=Pc(J[f>>2],h,i);if(!j)break e;gc=m}f=gc;if((j|0)== +1)continue;uc(h);f=6;break c}f=J[g>>2];J[699344]=0;ca(71,f|0,80,488);f=J[699344];J[699344]=0;if((f|0)==1)break d;j=-1;h:{if(!f)break h;m=J[699345];if(!m)break h;j=Pc(J[f>>2],h,i);if(!j)break e;gc=m}f=gc;if((j|0)==1)continue;break}H[a+2533|0]=1;f=J[a+2460>>2];J[J[g>>2]+24>>2]=f;J[f+24>>2]=1087;J[f+16>>2]=1088;J[f+12>>2]=1089;J[f+8>>2]=1090;J[f+20>>2]=63;J[f>>2]=J[a+2484>>2];J[f+4>>2]=J[a+2488>>2];uc(h);f=0;break c}uc(h);nf(f,m);B()}a=Z()|0;uc(h);ba(a|0);B()}if(f)break b}g=0;p=fc-16|0;fc=p;f=Dc(40); +J[f>>2]=0;k=Hf(a+2568|0,1,f,4);l=gc;i:{j:{k:{l:{m:while(1){if(g){J[699344]=0;ha(1084,a|0,6,g|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;n:{if(!g)break n;f=J[699345];if(!f)break n;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue;h=6;break l}j=c;m=d;h=J[a+2492>>2];if(h){J[a+2484>>2]=J[a+2476>>2];f=h-j|0;J[a+2492>>2]=f>>>0<=h>>>0?f:0;m=(h>>>0>>0?h:0)+m|0;f=j-h|0;j=f>>>0<=j>>>0?f:0}if(j)while(1){i=J[a+2480>>2];g=J[a+2488>>2];f=J[a+2476>>2];h=J[a+2484>>2];o:{if(f>>>0>=h>>> +0){f=h;break o}if(((h+j|0)-f|0)+g>>>0<=i>>>0){f=h;break o}if(g){xc(f,h,g);i=J[a+2480>>2];f=J[a+2476>>2];g=J[a+2488>>2]}else g=0;J[a+2484>>2]=f}p:{if(g+j>>>0<=i>>>0){xc(f+g|0,m,j);f=J[a+2488>>2]+j|0;J[a+2488>>2]=f;j=0;break p}if((g|0)==(i|0)){J[699344]=0;ha(1084,a|0,13,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;q:{if(!g)break q;f=J[699345];if(!f)break q;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;h=13;break l}h=i-g|0;xc(f+g|0,m,h);f=h+J[a+2488>>2]|0;J[a+2488>>2]=f; +m=h+m|0;j=j-h|0}n=J[a+2484>>2];g=J[a+2452>>2];h=J[g+24>>2];J[h+4>>2]=f;J[h>>2]=n;r:{if(!K[a+2534|0]){J[699344]=0;h=aa(72,g|0,1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;s:{if(!g)break s;f=J[699345];if(!f)break s;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;if(h){H[a+2534|0]=1;h=J[a+2452>>2];if(!(J[h+28>>2]==J[a+316>>2]&J[h+32>>2]==J[a+320>>2])){J[699344]=0;ha(1084,a|0,1056,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;t:{if(!g)break t;f=J[699345];if(!f)break t; +i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;h=1056;break l}u:{v:{w:{f=K[a+336|0];switch(f-8|0){case 2:case 6:break v;case 0:case 4:break w;default:break u}}if(J[h+40>>2]!=1){J[699344]=0;ha(1084,a|0,1056,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;x:{if(!g)break x;f=J[699345];if(!f)break x;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;h=1056;break l}if((f|0)!=10)break u}if(J[h+40>>2]==3)break u;J[699344]=0;ha(1084,a|0,1056,0,0)|0;g=J[699344];J[699344]= +0;if((g|0)==1)break j;i=-1;y:{if(!g)break y;f=J[699345];if(!f)break y;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;h=1056;break l}J[699344]=0;h=_(1091,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;n=-1;z:{if(!g)break z;f=J[699345];if(!f)break z;n=Pc(J[g>>2],k,l);if(!n)break k;gc=f}g=gc;if((n|0)==1)continue m;H[a+2538|0]=h;A:{if(!(h&255))break A;B:switch(K[a+336|0]-12|0){case 0:case 2:break B;default:break A}J[a+968>>2]=0}h=J[a+2452>>2];f=J[h+28>>2];h=J[h+40>>2]==3?P(f,3): +f;J[a+2520>>2]=h;f=J[a+152>>2];J[699344]=0;h=_(f|0,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;n=-1;C:{if(!g)break C;f=J[699345];if(!f)break C;n=Pc(J[g>>2],k,l);if(!n)break k;gc=f}g=gc;if((n|0)==1)continue m;J[a+2516>>2]=h;if(!h){J[699344]=0;ha(1084,a|0,1,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;D:{if(!g)break D;f=J[699345];if(!f)break D;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;h=1;break l}J[a+2560>>2]=0}g=J[a+2452>>2];f=J[g+24>>2];J[a+2484>>2]=J[f>>2]; +J[a+2488>>2]=J[f+4>>2];if(!K[a+2534|0])break r}if(!K[a+2535|0]){if(K[a+2538|0])J[g+64>>2]=1;J[699344]=0;h=_(77,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;E:{if(!g)break E;f=J[699345];if(!f)break E;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;if((h|0)==1)H[a+2535|0]=1;g=J[a+2452>>2];f=J[g+24>>2];J[a+2484>>2]=J[f>>2];J[a+2488>>2]=J[f+4>>2];if(!K[a+2534|0]|!K[a+2535|0])break r}J[699344]=0;h=_(1092,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;F:{if(!g)break F; +f=J[699345];if(!f)break F;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;G:{H:{if(!h)break H;f=J[a+2452>>2];if(M[f+140>>2]>2])break H;if(!K[a+2538|0]|!K[a+2537|0])break G}n=0;while(1){J[p+12>>2]=J[a+2516>>2];I:{J:{K:{if(!K[a+2538|0])break K;if(!K[a+2536|0]){H[a+2536|0]=1;h=J[a+2452>>2];f=J[h+144>>2];J[699344]=0;aa(1093,h|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;L:{if(!g)break L;f=J[699345];if(!f)break L;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)== +1)continue m;J[a+2552>>2]=0;if(!K[a+2538|0])break K}if(K[a+2537|0])break J}g=J[a+2452>>2];while(1){J[699344]=0;n=ga(86,g|0,p+12|0,1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;M:{if(!g)break M;f=J[699345];if(!f)break M;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;g=J[a+2452>>2];f=J[g+24>>2];J[a+2484>>2]=J[f>>2];J[a+2488>>2]=J[f+4>>2];if((n|0)>0){f=J[a+2544>>2];if(f){J[699344]=0;h=_(f|0,a|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;N:{if(!g)break N;f=J[699345]; +if(!f)break N;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;if(h)break l;g=J[a+2452>>2]}if(M[g+140>>2]>2])continue}break}if(!K[a+2538|0])break I}f=J[a+2452>>2];if(M[f+140>>2]>2])break I;J[699344]=0;h=_(1094,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;O:{if(!g)break O;f=J[699345];if(!f)break O;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;if(h){H[a+2536|0]=0;f=0}else f=1;H[a+2537|0]=f}f=J[a+2452>>2];J[699344]=0;h=_(1092,f|0)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break j;i=-1;P:{if(!g)break P;f=J[699345];if(!f)break P;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;if((n|0)<=0|h)break G;if(!K[a+2537|0])continue;break}}if(K[a+2537|0]|(!K[a+2534|0]|!K[a+2535|0]))break r;f=J[a+2452>>2];J[699344]=0;h=_(1092,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;Q:{if(!g)break Q;f=J[699345];if(!f)break Q;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;if(!h)break r;f=J[a+2452>>2];if(J[f+144>>2]!=J[f+152>> +2])break r;J[699344]=0;h=_(87,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;R:{if(!g)break R;f=J[699345];if(!f)break R;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;if((h|0)!=1)break r;I[a+2534>>1]=0;f=J[J[a+2452>>2]+24>>2];J[a+2484>>2]=J[f>>2];f=J[f+4>>2];J[a+2488>>2]=f;if(!(f|j))break r;J[699344]=0;ha(1084,a|0,1055,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;S:{if(!g)break S;f=J[699345];if(!f)break S;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m; +h=1055;break l}if(j)continue;break}break}h=0}uc(k);fc=p+16|0;f=h;break i}uc(k);nf(g,f);B()}a=Z()|0;uc(k);ba(a|0);B()}}J[o+12>>2]=f;f=J[o+12>>2];if(f){b=f;break a}if(!K[a+112|0]){b=0;break a}q=o,r=kc[J[b+4>>2]](a,b,e)|0,J[q+12>>2]=r;b=J[o+12>>2];if(b)break a;f=J[e>>2];J[f+36>>2]=c;b=0;H[f+32|0]=0;f=kc[J[a+152>>2]](c)|0;J[J[e>>2]+40>>2]=f;e=J[J[e>>2]+40>>2];if(!e){b=1;Jc(a,1,0,0);break a}xc(e,d,c)}fc=o+16|0;return b|0}function Mmb(a){a=a|0;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;f=fc- +80|0;fc=f;j=J[a+8>>2];a:{if(!j){b=6;break a}l=J[a>>2];c=J[a+4>>2];b:{if(J[c+12>>2]>1)break b;gp(c);if(J[c+12>>2]>1)break b;e=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=e>>>0)break b;d=b+1|0;J[c>>2]=d;g=K[b|0];b=d;if(!(1<>>0>26)continue;break}}while(1){c:{J[c+12>>2]=0;d=cy(c);if(d)break c;b=2;if(J[c+12>>2]==2)continue;break a}break}b=2;if((J[c>>2]+(d^-1)|0)!=16)break a;if(ud(d,239785,16))break a;g=160;d:{e:{f:{g:while(1){c=J[a+4>>2];h:{if(J[c+12>>2]>1)break h;gp(c);if(J[c+12>>2]>1)break h; +h=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=h>>>0)break h;d=b+1|0;J[c>>2]=d;e=K[b|0];b=d;if(!(1<>>0>26)continue;break}}while(1){i:{J[c+12>>2]=0;b=cy(c);if(b)break i;if(J[c+12>>2]==2)continue;break d}break}h=J[c>>2]+(b^-1)|0;d=0;e=K[b|0];while(1){j:{if((e|0)==K[J[(d<<2)+261504>>2]]){c=d;break j}c=d|1;if((e|0)==K[J[(c<<2)+261504>>2]])break j;d=d+2|0;if((d|0)!=74)continue;continue g}break}d=(c|0)<=73?73:c;while(1){i=J[(c<<2)+261504>>2];if((e|0)!=K[i|0])continue g;if(ud(i,b,h)){i=(c|0)==(d| +0);c=c+1|0;if(i)continue g;continue}break}b=0;k:{l:switch(c|0){case 40:J[f+32>>2]=3;if((co(a,f+32|0,1)|0)!=1)break d;if(!(J[f+36>>2]&-3))continue;g=7;break d;case 30:J[f>>2]=4;if((co(a,f,1)|0)!=1)break d;H[j|0]=K[f+4|0];continue;case 26:J[f+24>>2]=2;J[f+16>>2]=2;J[f+8>>2]=2;J[f>>2]=2;if((co(a,f,4)|0)!=4)break d;J[j+4>>2]=J[f+4>>2];J[j+8>>2]=J[f+12>>2];J[j+12>>2]=J[f+20>>2];J[j+16>>2]=J[f+28>>2];continue;case 0:J[f>>2]=2;if((co(a,f,1)|0)!=1)break d;J[j+20>>2]=J[f+4>>2];continue;case 14:J[f>>2]=2;if((co(a, +f,1)|0)!=1)break d;J[j+24>>2]=J[f+4>>2];continue;case 45:J[f+32>>2]=3;if((co(a,f+32|0,1)|0)!=1)break d;c=J[f+36>>2];if((c|0)<=0)break k;m:while(1){i=J[a+4>>2];n:{if(J[i+12>>2]>=2){d=J[i>>2];h=J[i+8>>2];break n}gp(i);d=J[i>>2];h=J[i+8>>2];if(J[i+12>>2]>1)break n;while(1){if(d>>>0>=h>>>0)break n;b=d+1|0;J[i>>2]=b;g=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[i+12>>2]=0;if(d>>>0>=h>>>0)break f;e=c-1|0;while(1){b=d+1|0;J[i>>2]=b;o:switch(K[d|0]-9|0){case 0:case 23:d=b;if((b|0)!=(h|0))continue; +break f;default:p:{q:{r:{while(1){g=3;if(b>>>0>=h>>>0)break q;d=b;b=b+1|0;J[i>>2]=b;s:switch(K[d|0]-9|0){case 0:case 23:break p;case 17:break q;case 50:break r;case 1:case 4:break s;default:continue}break}g=2;break q}g=1}J[i+12>>2]=g}b=(c|0)>1;c=e;if(b)continue m;break k;case 50:J[i+12>>2]=1;break e;case 1:case 4:break o;case 17:break f}J[i+12>>2]=0;d=b;if(b>>>0>>0)continue;break}break}break f;case 20:break a;case 49:break l;default:continue}t:while(1){e=J[a+4>>2];u:{if(J[e+12>>2]>=2){d=J[e>>2]; +h=J[e+8>>2];break u}gp(e);d=J[e>>2];h=J[e+8>>2];if(J[e+12>>2]>1)break u;while(1){if(d>>>0>=h>>>0)break u;b=d+1|0;J[e>>2]=b;c=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[e+12>>2]=0;v:{if(d>>>0>=h>>>0)break v;while(1){w:{b=d+1|0;J[e>>2]=b;x:switch(K[d|0]-9|0){case 0:case 23:d=b;if((b|0)!=(h|0))continue;break v;default:y:{z:{A:{while(1){c=3;if(b>>>0>=h>>>0)break z;g=b;b=b+1|0;J[e>>2]=b;B:switch(K[g|0]-9|0){case 0:case 23:break y;case 17:break z;case 50:break A;case 1:case 4:break B;default:continue}break}c= +2;break z}c=1}J[e+12>>2]=c}e=(d^-1)+b|0;b=0;g=K[d|0];while(1){if((g|0)==K[J[(b<<2)+261504>>2]]){c=b;break w}c=b|1;if((g|0)==K[J[(c<<2)+261504>>2]])break w;b=b+2|0;if((b|0)!=74)continue;break}continue t;case 50:J[e+12>>2]=1;g=160;break d;case 17:break v;case 1:case 4:break x}J[e+12>>2]=0;d=b;if(b>>>0>>0)continue;break v}break}b=(c|0)<=73?73:c;while(1){h=J[(c<<2)+261504>>2];if((g|0)!=K[h|0])continue t;if(ud(h,d,e)){h=(b|0)==(c|0);c=c+1|0;if(h)continue t;continue}break}b=0;g=160;C:switch(c-20|0){case 33:e= +J[a+8>>2];J[f+32>>2]=3;d=f+32|0;if((co(a,d,1)|0)!=1)break d;b=J[f+36>>2];if((b|0)<0)break d;J[e+32>>2]=b;if(b){m=e,n=_c(J[a>>2],20,0,b,0,d),J[m+28>>2]=n;g=J[f+32>>2];if(g)break d}g=-1;D:{E:while(1){c=J[a+4>>2];F:{if(J[c+12>>2]>1)break F;gp(c);if(J[c+12>>2]>1)break F;i=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=i>>>0)break F;d=b+1|0;J[c>>2]=d;h=K[b|0];b=d;if(!(1<>>0>26)continue;break}}G:{while(1){J[c+12>>2]=0;b=cy(c);if(b)break G;if(J[c+12>>2]==2)continue;break}g=160;break d}i=J[c>>2]+(b^ +-1)|0;h=K[b|0];d=0;while(1){H:{if((h|0)==K[J[(d<<2)+261504>>2]]){c=d;break H}c=d|1;if((h|0)==K[J[(c<<2)+261504>>2]])break H;d=d+2|0;if((d|0)!=74)continue;continue E}break}d=(c|0)<=73?73:c;while(1){k=J[(c<<2)+261504>>2];if((h|0)!=K[k|0])continue E;if(ud(k,b,i)){k=(c|0)==(d|0);c=c+1|0;if(k)continue E;continue}break}I:{J:switch(c-20|0){case 36:g=g+1|0;if((g|0)>=J[e+32>>2])break I;b=J[e+28>>2];J[f+64>>2]=2;J[f+56>>2]=2;J[f+48>>2]=2;J[f+40>>2]=2;J[f+32>>2]=3;if((co(a,f+32|0,5)|0)!=5)break I;b=P(g,20)+ +b|0;J[b>>2]=J[f+36>>2];J[b+4>>2]=J[f+44>>2];J[b+8>>2]=J[f+52>>2];J[b+12>>2]=J[f+60>>2];J[b+16>>2]=J[f+68>>2];continue;case 0:case 1:case 3:break D;case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:break I;default:break J}if((c|0)==75)continue}break}g=160;break d}J[e+32>>2]=g+1;continue;case 0:case 1:break a; +case 55:continue;case 30:case 31:break C;default:break d}h=J[a+8>>2];J[f+32>>2]=3;d=f+32|0;if((co(a,d,1)|0)!=1)break d;b=J[f+36>>2];if((b|0)<0)break d;J[h+40>>2]=b;if(b){m=h,n=_c(J[a>>2],16,0,b,0,d),J[m+36>>2]=n;g=J[f+32>>2];if(g)break d}g=-1;K:{L:while(1){c=J[a+4>>2];M:{if(J[c+12>>2]>1)break M;gp(c);if(J[c+12>>2]>1)break M;i=J[c+8>>2];b=J[c>>2];while(1){if(b>>>0>=i>>>0)break M;d=b+1|0;J[c>>2]=d;e=K[b|0];b=d;if(!(1<>>0>26)continue;break}}N:{while(1){J[c+12>>2]=0;b=cy(c);if(b)break N; +if(J[c+12>>2]==2)continue;break}g=160;break d}i=J[c>>2]+(b^-1)|0;e=K[b|0];d=0;while(1){O:{if((e|0)==K[J[(d<<2)+261504>>2]]){c=d;break O}c=d|1;if((e|0)==K[J[(c<<2)+261504>>2]])break O;d=d+2|0;if((d|0)!=74)continue;continue L}break}d=(c|0)<=73?73:c;while(1){k=J[(c<<2)+261504>>2];if((e|0)!=K[k|0])continue L;if(ud(k,b,i)){k=(c|0)==(d|0);c=c+1|0;if(k)continue L;continue}break}if((c|0)==75)continue;b=c-20|0;if(b>>>0>17){g=160;break d}b=1<=J[h+40>>2])break P;b=J[h+36>>2];J[f+56>>2]=3;J[f+48>>2]=3;J[f+40>>2]=5;J[f+32>>2]=5;i=co(a,f+32|0,4);if((i|0)<3)break P;e=(g<<4)+b|0;J[e>>2]=J[f+36>>2];J[e+4>>2]=J[f+44>>2];b=0;d=J[f+52>>2];if((c|0)!=37){b=d;d=(c|0)==34?(i|0)==4?J[f+60>>2]:0:0}J[e+12>>2]=d;J[e+8>>2]=b;continue}break}g=160;break d}b=g+1|0;J[h+40>>2]=b;vm(J[h+36>>2],b,16,1679);continue}break}J[e+12>>2]=3;g=160;break d}while(1){e=J[a+4>>2];Q:{if(J[e+12>>2]>=2){d=J[e>>2];h=J[e+8>>2];break Q}gp(e);d=J[e>>2];h=J[e+8>>2];if(J[e+12>> +2]>1)break Q;while(1){if(d>>>0>=h>>>0)break Q;b=d+1|0;J[e>>2]=b;c=K[d|0];d=b;if(!(1<>>0>26)continue;break}}J[e+12>>2]=0;R:{if(d>>>0>=h>>>0)break R;S:{while(1){T:{b=d+1|0;J[e>>2]=b;U:switch(K[d|0]-9|0){case 50:J[e+12>>2]=1;break e;case 0:case 23:d=b;if((b|0)!=(h|0))continue;break R;default:V:{W:{X:{while(1){c=3;if(b>>>0>=h>>>0)break W;g=b;b=b+1|0;J[e>>2]=b;Y:switch(K[g|0]-9|0){case 0:case 23:break V;case 17:break W;case 50:break X;case 1:case 4:break Y;default:continue}break}c=2;break W}c= +1}J[e+12>>2]=c}e=(d^-1)+b|0;g=K[d|0];b=0;while(1){if((g|0)==K[J[(b<<2)+261504>>2]]){c=b;break T}c=b|1;if((g|0)==K[J[(c<<2)+261504>>2]])break T;b=b+2|0;if((b|0)!=74)continue;break}b=75;break S;case 17:break R;case 1:case 4:break U}J[e+12>>2]=0;d=b;if(b>>>0>>0)continue;break R}break}h=(c|0)<=73?73:c;while(1){b=75;i=J[(c<<2)+261504>>2];if((g|0)!=K[i|0])break S;if(!ud(i,d,e)){b=c;break S}i=(c|0)==(h|0);c=c+1|0;if(!i)continue;break}}g=0;switch(b-17|0){case 0:case 3:continue g;default:continue}}break}break}J[e+ +12>>2]=3;break e}J[i+12>>2]=3}b=160;break a}a=J[j+28>>2];if(a)kc[J[l+8>>2]](l,a);J[j+28>>2]=0;J[j+32>>2]=0;a=J[j+36>>2];if(a)kc[J[l+8>>2]](l,a);H[j|0]=0;J[j+36>>2]=0;J[j+40>>2]=0;b=g}fc=f+80|0;return b|0}function QDb(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,y=0,z=0;f=fc-112|0;fc=f;if(b)rd(198340,0);b=J[a+8>>2];a:{b:{if(b&7)break b;c:{d:{e:{d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break e;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)> +0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;c=K[d|0];break f}c=td(a,1);if((c|0)==-1)break b;b=J[a+8>>2]}if(b&7)break b;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;g:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break g}b=td(a,1);if((b|0)==-1)break b}if(rP(a,f+100|0))break b;if(rP(a,f+96|0))break b;p=J[f+96>>2];i=J[f+100>>2];d=b&255|c<<8&65280;if((qP(d)|0)==2)break d;if(rP(a,f))break b;b=J[f>>2];m=b>>31;e=(b^m)-m|0;l=b>>>31| +0;break c}J[a+8>>2]=b|4;break b}e=1;J[f>>2]=1;l=0}c=0;q=1;n=1;h:{i:{j:{k:{l:{m:{b=qP(d);if(b-1>>>0>=2){if(b)break m;n=3;q=0;h=1}b=f;while(1){J[b+20>>2]=p;J[b+16>>2]=i;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=0;J[b+4>>2]=0;m=oP(e);J[b+28>>2]=l;J[b+24>>2]=m;b=b+32|0;c=c+1|0;if((n|0)!=(c|0))continue;break}m=Hs(n,f);if(!m)break b;b=0;c=J[m+24>>2];J[J[c>>2]+40>>2]=0;if(h){J[J[c+4>>2]+40>>2]=1;J[J[c+8>>2]+40>>2]=2;c=1025}else c=769;J[m+28>>2]=c;h=Mba(d);d=qP(d);o=oP(e);J[f+108>>2]=0;J[f+100>>2]=0;J[f+104>>2]=0; +while(1){c=Dk(1,i);J[(f+100|0)+(b<<2)>>2]=c;if(!c)break k;b=b+1|0;if((n|0)!=(b|0))continue;break}c=1;if((p|0)<=0)break h;if((d|0)!=2)break l;j=J[f+100>>2];h=(h|0)==1;break j}ra();B()}if((i|0)>0)break i;b=0;while(1){c=0;a=0;while(1){if(Fk(m,a,0,b,i,1,J[(f+100|0)+(a<<2)>>2]))break h;a=a+1|0;if((n|0)!=(a|0))continue;break}c=1;b=b+1|0;if((p|0)!=(b|0))continue;break}break h}c=0;break h}while(1){n:{if(!h){e=0;if((i|0)<=0)break n;o:while(1){c=0;b=Kj(a);if((b|0)!=35){if((b|0)==-1)break h;if((b&-2)!=48)continue; +J[J[J[j+28>>2]>>2]+(e<<2)>>2]=49-b;e=e+1|0;if((i|0)!=(e|0))continue;break n}while(1)switch(Kj(a)+1|0){case 0:break h;case 11:continue o;default:continue}}}c=0;b=0;if((i|0)<=0)break n;while(1){d=J[a+8>>2];if(d&7)break h;p:{l=J[a+64>>2];if(!((l|0)>=0&(l|0)<=J[a+60>>2])){d=J[a+28>>2];J[a+28>>2]=d-1;q:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;e=K[d|0];break q}e=td(a,1);if((e|0)==-1)break h}if((b|0)>=(i|0))break p;l=J[J[j+28>>2]>>2];e=e^-1;J[l+(b<<2)>>2]=e>>>7&1;d=b+1|0;if((d|0)>= +(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>6&1;d=b+2|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>5&1;d=b+3|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>4&1;d=b+4|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>3&1;d=b+5|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>2&1;d=b+6|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e>>>1&1;d=b+7|0;if((d|0)>=(i|0)){b=d;break p}J[l+(d<<2)>>2]=e&1;b=b+8|0;break p}J[a+8>>2]=d|4;break h}if((b|0)<(i|0))continue;break}}c=0;b=0;while(1){if(Fk(m,b,0,g,i,1, +J[(f+100|0)+(b<<2)>>2]))break h;b=b+1|0;if((n|0)!=(b|0))continue;break}c=1;g=g+1|0;if((p|0)!=(g|0))continue;break}break h}y=1<>>3|0;t=((o&63)>>>0<32?-1<>2];v=J[f+104>>2];w=J[f+100>>2];z=(h|0)==1;while(1){r:{if(!z){h=0;if(l)while(1){g=0;s:while(1){e=0;c=J[a+8>>2];t:{if(c&7)break t;u:{while(1){b=J[a+64>>2];if(!((b|0)<0|(b|0)>J[a+60>>2])){J[a+8>>2]=c|4;break t}b=J[a+28>>2];J[a+28>>2]=b-1;v:{w:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break w}b= +td(a,1)}if((b|0)!=35){if((b|0)==-1)break t;if((b|0)==32|b-9>>>0<5)continue s;c=(b|0)==45;if(c)break v;if((b|0)!=43)break u;b=Kj(a);if((b|0)!=-1)break u;break t}while(1){b=J[a+8>>2];if(b&7)break t;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2])){J[a+8>>2]=b|4;break t}b=J[a+28>>2];J[a+28>>2]=b-1;x:{y:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break y}b=td(a,1)}switch(b+1|0){case 0:break t;case 11:case 14:break x;default:continue}}break}c=J[a+8>>2];if(!(c&7))continue;break t}break}b= +Kj(a);if((b|0)==-1)break t}j=0;z:while(1){x=b-48|0;if(x>>>0>=10){if(!((b|0)==32|b-9>>>0<5))break t;e=c?0-j|0:j;break t}k=J[a+8>>2];if(k&7)break t;j=P(j,10)+x|0;while(1){b=J[a+64>>2];if(!((b|0)<0|(b|0)>J[a+60>>2])){J[a+8>>2]=k|4;break t}b=J[a+28>>2];J[a+28>>2]=b-1;A:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break A}b=td(a,1)}if((b|0)!=35){if((b|0)==-1)break t;if((b|0)>=0)continue z;break t}while(1){b=J[a+8>>2];if(b&7)break t;k=J[a+64>>2];if(!((k|0)<0|(k|0)>J[a+60>>2])){J[a+ +8>>2]=b|4;break t}b=J[a+28>>2];J[a+28>>2]=b-1;B:{C:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break C}b=td(a,1)}switch(b+1|0){case 0:break t;case 11:case 14:break B;default:continue}}break}k=J[a+8>>2];if(!(k&7))continue;break}break}}J[J[J[J[(f+100|0)+(g<<2)>>2]+28>>2]>>2]+(h<<2)>>2]=e;g=g+1|0;if((n|0)!=(g|0))continue;break}h=h+1|0;if((i|0)!=(h|0))continue;break r}while(1){g=0;D:while(1){c=J[a+8>>2];E:{F:{if(c&7)break F;while(1){G:{b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+ +60>>2])break G;b=J[a+28>>2];J[a+28>>2]=b-1;H:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break H}b=td(a,1)}if((b|0)!=35){if((b|0)==-1)break F;if((b|0)==32|b-9>>>0<5)continue D;e=0;I:while(1){j=b-48|0;if(j>>>0>=10){if(!((b|0)==32|b-9>>>0<5))break F;break E}c=J[a+8>>2];if(c&7)break F;e=j+P(e,10)|0;while(1){b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break G;b=J[a+28>>2];J[a+28>>2]=b-1;J:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break J}b= +td(a,1)}if((b|0)!=35){if((b|0)==-1)break F;if((b|0)>=0)continue I;break F}while(1){c=J[a+8>>2];if(c&7)break F;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break G;b=J[a+28>>2];J[a+28>>2]=b-1;K:{L:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break L}b=td(a,1)}switch(b+1|0){case 0:break F;case 11:case 14:break K;default:continue}}break}c=J[a+8>>2];if(!(c&7))continue;break}break}break F}while(1){c=J[a+8>>2];if(c&7)break F;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break G; +b=J[a+28>>2];J[a+28>>2]=b-1;M:{N:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break N}b=td(a,1)}switch(b+1|0){case 11:case 14:break M;case 0:break F;default:continue}}break}c=J[a+8>>2];if(!(c&7))continue;break F}break}J[a+8>>2]=c|4}e=0}J[J[J[J[(f+100|0)+(g<<2)>>2]+28>>2]>>2]+(h<<2)>>2]=e;g=g+1|0;if((n|0)!=(g|0))continue;break}h=h+1|0;if((i|0)!=(h|0))continue;break}break r}O:{P:{Q:{if(l){k=0;if((o|0)>0)break Q;e=J[J[w+28>>2]>>2];b=0;break O}k=0;if((o|0)>0)break P;e=J[J[w+ +28>>2]>>2];b=0;while(1){c=b<<2;J[c+e>>2]=0;if(!q){J[c+J[J[v+28>>2]>>2]>>2]=0;J[c+J[J[u+28>>2]>>2]>>2]=0}b=b+1|0;if((i|0)!=(b|0))continue;break}break r}while(1){h=0;while(1){j=0;b=d;c=0;R:{while(1){e=J[a+8>>2];if(e&7)break R;g=J[a+64>>2];if(!((g|0)<0|(g|0)>J[a+60>>2])){J[a+8>>2]=e|4;break R}e=J[a+28>>2];J[a+28>>2]=e-1;S:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;e=J[a+24>>2];J[a+24>>2]=e+1;g=K[e|0];break S}g=td(a,1);if((g|0)==-1)break R}c=c<<8|g;e=b>>>0>1;b=b-1|0;if(e)continue;break}j=c&t;if(!(y&j))break R; +fa(199239,200041,397,207800);B()}J[J[J[J[(f+100|0)+(h<<2)>>2]+28>>2]>>2]+(k<<2)>>2]=j;h=h+1|0;if((n|0)!=(h|0))continue;break}k=k+1|0;if((k|0)!=(i|0))continue;break}break r}while(1){h=0;while(1){j=0;b=d;c=0;T:{while(1){e=J[a+8>>2];if(e&7)break T;g=J[a+64>>2];if(!((g|0)<0|(g|0)>J[a+60>>2])){J[a+8>>2]=e|4;break T}e=J[a+28>>2];J[a+28>>2]=e-1;U:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;e=J[a+24>>2];J[a+24>>2]=e+1;g=K[e|0];break U}g=td(a,1);if((g|0)==-1)break T}c=c<<8|g;e=b>>>0>1;b=b-1|0;if(e)continue;break}j= +c&t}J[J[J[J[(f+100|0)+(h<<2)>>2]+28>>2]>>2]+(k<<2)>>2]=j;h=h+1|0;if((n|0)!=(h|0))continue;break}k=k+1|0;if((k|0)!=(i|0))continue;break}break r}while(1){c=b<<2;J[c+e>>2]=0;if(!q){J[c+J[J[v+28>>2]>>2]>>2]=0;J[c+J[J[u+28>>2]>>2]>>2]=0}b=b+1|0;if((i|0)!=(b|0))continue;break}}c=0;b=0;while(1){if(Fk(m,b,0,r,i,1,J[(f+100|0)+(b<<2)>>2]))break h;b=b+1|0;if((n|0)!=(b|0))continue;break}c=1;r=r+1|0;if((r|0)!=(p|0))continue;break}}while(1){a=J[(f+100|0)+(s<<2)>>2];if(a)mg(a);s=s+1|0;if((s|0)!=(n|0))continue;break}if(c)break a; +Mh(m)}m=0}fc=f+112|0;return m|0}function BK(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;n=fc-48|0;fc=n;a:{if(J[a+292>>2])break a;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)>249)break a;Rd(a)}b:{c:{d:{k=J[a+36>>2];i=J[k+16>>2];switch(K[i|0]-34|0){case 0:case 5:break c;default:break d}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){f=0;break b}J[a+84>>2]=39;J[n>>2]=16183;f=0;Hc(0,0,0,a,0,1,39,3,0,0,0,0,32906,n);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}l=J[k+28>>2];h=J[k+32>> +2];J[a+172>>2]=12;o=K[i|0];g=i+1|0;j=J[k+20>>2];if(g>>>0>=j>>>0){e=J[k+12>>2];f=e;e:{if((j-i|0)>249)break e;f=e;if(J[a+292>>2])break e;Rd(a);k=J[a+36>>2];j=J[k+20>>2];f=J[k+12>>2]}g=((e|0)!=(f|0)?f-e|0:0)+g|0}m=h+1|0;f:{g:{if(d){h:{if(g>>>0>=j>>>0)break h;while(1){f=K[g|0];if((f|0)==(o|0))break h;e=f-9|0;if(e>>>0>23|!(1<>>0<=g>>>0){e=J[k+12>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249))Rd(a);if(J[a+172>>2]==-1){f=0;break b}k=J[a+36>>2];i=J[k+12>>2];g=((e|0)!= +(i|0)?i-e|0:0)+g|0;j=J[k+20>>2]}f=(f|0)==10;m=f?1:m+1|0;l=f+l|0;if(g>>>0>>0)continue;break}}i:{if(g>>>0>=j>>>0){h=g;e=g;break i}e=g;h=e;while(1){f=K[e|0];i=f<<24>>24;if((f|0)==(o|0)|(i|0)<32|(f|0)==38|(f|0)==60)break i;m=m+1|0;e=e+1|0;if((i|0)==32&K[e|0]==32)break i;j:{if(e>>>0>>0)break j;i=J[k+12>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249))Rd(a);f=0;if(J[a+172>>2]==-1)break b;k=J[a+36>>2];j=J[k+20>>2];g=e;e=J[k+12>>2];i=(e|0)!=(i|0)?e-i|0:0;e=g+i|0;h=h+i|0;if(K[a+362|0]&8|(e-h|0)<15000001)break j; +oe(a,40,33730);break b}if(e>>>0>>0)continue;break}}i=e;while(1){g=i;i=g-1|0;if(K[i|0]==32&g>>>0>h>>>0)continue;break}k:{if(e>>>0>=j>>>0)break k;while(1){i=K[e|0];if((i|0)==(o|0))break k;f=i-9|0;if(f>>>0>23|!(1<>>0>e>>>0)break l;j=J[k+12>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249))Rd(a);f=0;if(J[a+172>>2]==-1)break b;q=g;k=J[a+36>>2];g=J[k+12>>2];p=(g|0)!=(j|0)?g-j|0:0;g=q+p|0;j=J[k+20>>2];e=e+p|0;h=h+p|0;if(K[a+362|0]&8|(e-h|0)<15000001)break l;oe(a, +40,33730);break b}f=(i|0)==10;m=f?1:m+1|0;l=f+l|0;if(e>>>0>>0)continue;break}}if(!(K[a+362|0]&8|(e-h|0)<15000001)){oe(a,40,33730);f=0;break b}if((o|0)==K[e|0])break g;break f}m:{if(g>>>0>=j>>>0){h=g;break m}h=g;while(1){e=H[g|0];f=e&255;if((f|0)==(o|0)|(e|0)<32|(f|0)==38|(f|0)==60)break m;n:{g=g+1|0;if(j>>>0>g>>>0)break n;e=J[k+12>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249))Rd(a);f=0;if(J[a+172>>2]==-1)break b;k=J[a+36>>2];j=J[k+20>>2];i=J[k+12>>2];e=(e|0)!=(i|0)?i-e|0:0;g=e+g|0;h=e+h| +0;if(K[a+362|0]&8|(g-h|0)<15000001)break n;oe(a,40,33730);break b}m=m+1|0;if(g>>>0>>0)continue;break}}if(!(K[a+362|0]&8|(g-h|0)<15000001)){oe(a,40,33730);f=0;break b}e=g;if((o|0)!=K[e|0])break f}d=m+1|0;f=e+1|0;o:{if(b){J[b>>2]=g-h;break o}if(c)J[c>>2]=1;h=Hl(h,g-h|0);k=J[a+36>>2]}J[k+32>>2]=d;J[k+28>>2]=l;J[k+16>>2]=f;if(!c){f=h;break b}J[c>>2]=0;f=h;break b}if(c)J[c>>2]=1;p:{q:{r:{k=K[J[k+16>>2]];switch(k-34|0){case 0:break p;case 5:break q;default:break r}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){f= +0;break b}J[a+84>>2]=39;J[n+16>>2]=16183;f=0;Hc(0,0,0,a,0,1,39,3,0,0,0,0,32906,n+16|0);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}k=39}J[a+172>>2]=12;Zd(a);j=0;e=0;f=kc[J[663198]](100)|0;s:{t:{if(!f)break t;e=Mf(a,n+44|0);u:{v:{w:{h=J[J[a+36>>2]+16>>2];x:{if(K[h|0]==(k|0)){g=0;c=0;break x}i=100;g=0;m=0;while(1){y:{z:{A:{if((e|0)<=255){if((e|0)>31)break A;if(e>>>0>13)break y;if(1<>>0<1048576|e>>>0<55296)break z;if(e-57344>>>0>=8190)break y;break z}if((e| +0)!=60)break z;e=60;break y}if(J[a+172>>2]==-1)break y;if(!(K[a+362|0]&8)&g>>>0>=15000001)break v;B:{C:{D:{E:{F:{c=e-9|0;if(c>>>0>29)break F;if(!(1<>2]){G:{if(c>>>0<=i>>>0){l=i;h=f;break G}l=(i<<1)+10|0;if(l>>>0>>0)break w;j=0;e=f;h=kc[J[663200]](e,l)|0;if(!h)break t}H[g+h|0]=38;g=g+1|0;m=0;i=l;f=h;break B}H:{if(c>>>0<=i>>>0){l=i;h=f;break H}l=(i<<1)+10|0;if(l>>>0>>0)break w;j=0;e= +f;h=kc[J[663200]](e,l)|0;if(!h)break t}c=g+h|0;H[c|0]=38;H[c+1|0]=35;H[c+2|0]=51;H[c+3|0]=56;H[c+4|0]=59;g=g+5|0;m=0;i=l;f=h;break B}I:{if(g+10>>>0<=i>>>0){l=f;break I}e=i;i=(e<<1)+10|0;if(i>>>0>>0)break w;j=0;e=f;l=kc[J[663200]](e,i)|0;if(!l)break t}m=0;o=fc-16|0;fc=o;e=g+l|0;h=0;J:{if(!e)break J;K:{if((c|0)>=128){p=c>>>0<2048;L:{if(p){h=192;j=6;f=0;break L}if(c>>>0<65536){h=224;j=12;f=6;break L}if(c>>>0>=1114112)break K;h=240;j=18;f=12}H[e|0]=c>>>j|h;H[e+1|0]=c>>>f&63|128;h=(e+2|0)-e|0;if(p)break J; +j=f-6|0;H[e+2|0]=c>>>j&63|128;h=(e+3|0)-e|0;if(j>>>0<6)break J;H[e+3|0]=c>>>f-12&63|128;h=(e+4|0)-e|0;break J}H[e|0]=c;h=1;break J}J[o>>2]=c;Hc(0,0,0,0,0,1,9,3,0,0,0,c,35057,o);h=0}fc=o+16|0;g=g+h|0;f=l;break B}h=s1(a);c=J[a+440>>2]+1|0;J[a+440>>2]=c;m=0;if(!h)break B;J[a+440>>2]=c+J[h+68>>2];if(J[h+48>>2]==6){M:{if(g+10>>>0<=i>>>0){l=f;break M}c=i;i=(c<<1)+10|0;if(i>>>0>>0)break w;j=0;e=f;l=kc[J[663200]](e,i)|0;if(!l)break t}f=g+l|0;c=g+1|0;e=K[J[h+40>>2]];if(!(J[a+16>>2]|(e|0)!=38)){H[f|0]=38; +H[c+l|0]=35;H[f+4|0]=59;H[f+2|0]=51;H[f+3|0]=56;g=g+5|0;f=l;break B}H[f|0]=e;g=c;f=l;break B}if(J[a+16>>2]){J[a+248>>2]=J[a+248>>2]+1;j=DK(a,J[h+40>>2]);J[a+248>>2]=J[a+248>>2]-1;h=j;if(!h)break B;while(1){e=f;N:{while(1){m=32;O:{P:{c=K[h|0];switch(c|0){case 0:break N;case 9:case 10:case 13:break O;default:break P}}m=c}H[e+g|0]=m;h=h+1|0;c=g+11|0;g=g+1|0;if(c>>>0<=i>>>0)continue;break}c=i;i=(c<<1)+10|0;if(i>>>0>>0)break t;f=kc[J[663200]](e,i)|0;if(f)continue;break t}break}m=0;kc[J[663199]](j); +f=e;break B}c=Tk(J[h+8>>2]);l=J[h+8>>2];Q:{if(J[h+48>>2]==6)break Q;e=J[h+40>>2];if(J[h+72>>2]|!e)break Q;J[a+248>>2]=J[a+248>>2]+1;j=J[a+440>>2];e=lu(a,e,Tk(e),1);J[a+248>>2]=J[a+248>>2]-1;J[h+72>>2]=(J[a+440>>2]-j<<1)+2;if(!e)break Q;if(rq(e,60))J[h+72>>2]=J[h+72>>2]|1;kc[J[663199]](e)}H[f+g|0]=38;o=c+10|0;h=g+1|0;g=(c+g|0)+11|0;while(1){e=f;if(g>>>0<=i>>>0){R:{if((c|0)<=0)break R;j=0;g=c;f=g&3;if(f)while(1){H[e+h|0]=K[l|0];g=g-1|0;h=h+1|0;l=l+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}if(c>>>0< +4)break R;while(1){c=e+h|0;H[c|0]=K[l|0];H[c+1|0]=K[l+1|0];H[c+2|0]=K[l+2|0];H[c+3|0]=K[l+3|0];h=h+4|0;l=l+4|0;c=g-5|0;g=g-4|0;if(c>>>0<4294967294)continue;break}}H[e+h|0]=59;g=h+1|0;f=e;break B}f=i;i=o+(f<<1)|0;if(i>>>0>>0)break u;j=0;f=kc[J[663200]](e,i)|0;if(f)continue;break}break t}if(!(g|!d)){j=m;h=i;g=0;l=f;break C}if(!(!d|!m)){j=1;break E}S:{if(J[n+44>>2]==1){H[f+g|0]=32;g=g+1|0;break S}g=ej(f+g|0,32)+g|0}h=g+10|0;while(1){e=f;if(h>>>0<=i>>>0){j=1;h=i;l=e;break C}c=i;i=(c<<1)+10|0;if(i>>> +0>>0)break u;j=0;f=kc[J[663200]](e,i)|0;if(f)continue;break}break t}j=0;T:{if(J[n+44>>2]==1){H[f+g|0]=e;g=g+1|0;break T}g=ej(f+g|0,e)+g|0}if(g+10>>>0>i>>>0)break D}h=i;l=f;break C}h=(i<<1)+10|0;if(i>>>0>h>>>0)break w;e=f;l=kc[J[663200]](e,h)|0;if(!l)break t}c=J[a+36>>2];f=J[c+16>>2];U:{if(K[f|0]==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break U}J[c+32>>2]=J[c+32>>2]+1}e=c;c=f+J[n+44>>2]|0;J[e+16>>2]=c;if(K[c|0]==37)Yd(a);m=j;i=h;f=l}V:{if(J[a+292>>2])break V;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>> +2]|0)>249)break V;Rd(a)}e=Mf(a,n+44|0);h=J[J[a+36>>2]+16>>2];if(K[h|0]!=(k|0))continue}break}c=(m|0)!=0}if(J[a+172>>2]==-1){j=0;e=f;break s}W:{if(!g|(!d|c^1))break W;while(1){c=g-1|0;if(K[c+f|0]!=32)break W;g=c;if(g)continue;break}g=0}H[f+g|0]=0;c=K[J[J[a+36>>2]+16>>2]];X:{if((c|0)==60){if(J[a+172>>2]==-1?J[a+212>>2]:0)break X;J[a+84>>2]=38;J[n+32>>2]=4265;Hc(0,0,0,a,0,1,38,3,0,0,0,0,32906,n+32|0);J[a+12>>2]=0;if(J[a+288>>2])break X;J[a+212>>2]=1;break X}Y:{if((c|0)!=(k|0)){if(!e)break Y;Z:{if((e| +0)<=255){if((e|0)>31)break Y;if(!(1<>>0>13)break Z;break Y}if(e-65536>>>0<1048576|e>>>0<55296|e-57344>>>0<8190)break Y}oe(a,9,33936);break X}Zd(a);break X}oe(a,40,35390)}if(g>>>0>2147483646)break v;if(!b)break b;J[b>>2]=g;break b}j=0;e=f;break t}e=f;oe(a,40,33730)}j=0}se(a,0)}if(e)kc[J[663199]](e);if(!j){f=0;break b}f=0;kc[J[663199]](j)}fc=n+48|0;return f}function HAa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;g= +fc-48|0;fc=g;a:{b:{c:{d:{e:{if(!K[a+144|0]){a=Qc(g+24|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;b=Z()|0;Kc(a);ba(b|0);B()}j=a+72|0;k=ql(j);f:{i=J[J[c+12>>2]+((k>>>0)%M[c+8>>2]<<2)>>2];g:{if(i)while(1){if((k|0)==J[i+12>>2])if(Bm(i+16|0,j))break g;i=J[i+8>>2];if(i)continue;break}u=J[c+4>>2];v=ew(c,j),w=0,J[v+52>>2]=w;j=g+20|0;Fn(j,J[a+108>>2]);J[g+12>>2]=0;J[g+16>>2]=J[685894];J[699344]=0;da(5278,g+8|0,j|0);j=J[699344];J[699344]=0;h:{i:{j:{k:{l:{m:{if((j| +0)!=1){J[699344]=0;m=J[g+8>>2];j=ha(5279,m|0,g+12|0,0,0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break i;if(j)break k;J[699344]=0;j=ja(5178,g+24|0,J[685886],2386059,2281,2416061,0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break m;J[699344]=0;$(5179,j|0);k=J[699344];J[699344]=0;if((k|0)!=1)break e;i=ea(2423616)|0;k=gc;Kc(j);break l}i=Z()|0;break b}i=ea(2423616)|0;k=gc}if((sa(2423616)|0)!=(k|0))break c;j=oa(i|0)|0;k=J[J[a>>2]+64>>2];J[699344]=0;ca(k|0,a|0,j|0,1);j=J[699344];J[699344]=0;if((j|0)==1)break j; +J[699344]=0;ka(5053);j=J[699344];J[699344]=0;if((j|0)!=1)break k;i=Z()|0;break c}if(!u){j=J[g+12>>2];j=J[(j?j+12|0:2743576)>>2];J[699344]=0;ca(5330,b|0,j|0,0);j=J[699344];J[699344]=0;if((j|0)==1)break i}n=a+44|0;o=a+40|0;p=a+36|0;k=0;r=J[a+132>>2]<=1?-1:J[a+140>>2];i=r;n:{o:{p:{q:{r:{s:{while(1){t:{j=k;u:{if(i){J[699344]=0;k=ha(5279,m|0,g+12|0,0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1){k=j;break t}if(k)break u;r=j}if(J[a+140>>2]>=0)break q;J[a+140>>2]=r;if(!q)break p;break h}J[699344]=0;f=pd(g+12| +0,2416280,-1);h=J[699344];J[699344]=0;k=j+1|0;if((h|0)==1)break t;v:{w:{x:{y:{z:{A:{if(!(!J[a+8>>2]|f)){f=J[g+12>>2];f=J[(f?f+12|0:2743576)>>2];J[699344]=0;ca(5330,b|0,f|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break t;f=J[a+8>>2];J[699344]=0;J[g+24>>2]=0;aa(5145,g+24|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break w;J[699344]=0;da(5513,f|0,J[g+24>>2]);f=J[699344];J[699344]=0;if((f|0)!=1){f=J[g+24>>2];J[g+24>>2]=0;if(!f)break A;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[699344];J[699344]=0;if((l| +0)!=1){if(h)break A;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break A}break a}i=ea(2423616)|0;c=gc;zc(g+24|0);break r}J[699344]=0;f=pd(g+12|0,2394278,-1);h=J[699344];J[699344]=0;if((h|0)==1)break t;if(!(!d|f)){J[699344]=0;J[g+4>>2]=0;aa(5145,g+4|0,m|0)|0;f=J[699344];J[699344]=0;B:{C:{if((f|0)!=1){J[699344]=0;ia(5474,g+24|0,a|0,J[g+4>>2],-1);f=J[699344];J[699344]=0;if((f|0)==1)break C;f=J[g+4>>2];J[g+4>>2]=0;D:{if(!f)break D;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[699344];J[699344]= +0;if((l|0)==1)break a;if(h)break D;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}f=J[g+24>>2];if(!f)break v;h=J[a+132>>2];if(h){l=J[J[f>>2]+56>>2];J[699344]=0;da(l|0,f|0,h|0);f=J[699344];J[699344]=0;if((f|0)==1)break B;f=J[g+24>>2]}if(K[a+136|0]){h=J[J[f>>2]+60>>2];J[699344]=0;da(h|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break B;f=J[g+24>>2]}J[699344]=0;ma(5514,f|0,b|0,c|0,1,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break B;f=J[g+24>>2];J[g+24>>2]=0;if(!f)break v;J[699344]= +0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[699344];J[699344]=0;if((l|0)!=1){if(h)break v;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break v}break a}i=ea(2423616)|0;break s}i=ea(2423616)|0;c=gc;zc(g+4|0);break r}i=ea(2423616)|0;c=gc;zc(g+24|0);break r}J[699344]=0;f=g+12|0;h=pd(f,2416300,-1);l=J[699344];J[699344]=0;if((l|0)==1)break t;E:{F:{if(!h)break F;J[699344]=0;h=pd(f,2415668,-1);l=J[699344];J[699344]=0;if((l|0)==1)break t;if(!h)break F;J[699344]=0;f=pd(f,2412112,-1);h=J[699344];J[699344]= +0;if((h|0)==1)break t;if(f)break E}f=J[p>>2];if(!f)break E;h=J[J[f>>2]+28>>2];J[699344]=0;f=_(h|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break t;if(!f)break E;if(q){q=1;break v}J[699344]=0;da(5515,p|0,b|0);f=J[699344];J[699344]=0;q=1;if((f|0)!=1)break v;i=ea(2423616)|0;break s}J[699344]=0;f=g+12|0;h=pd(f,2416320,-1);l=J[699344];J[699344]=0;if((l|0)==1)break t;G:{if(h){J[699344]=0;f=pd(f,2416325,-1);h=J[699344];J[699344]=0;if((h|0)==1)break t;if(f)break G}f=J[o>>2];if(!f)break G;h=J[J[f>>2]+28>> +2];J[699344]=0;f=_(h|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break t;if(!f)break G;if(s){s=1;break v}J[699344]=0;da(5515,o|0,b|0);f=J[699344];J[699344]=0;s=1;if((f|0)!=1)break v;i=ea(2423616)|0;break s}J[699344]=0;f=g+12|0;h=pd(f,2416359,-1);l=J[699344];J[699344]=0;if((l|0)==1)break t;H:{if(h){J[699344]=0;f=pd(f,2416153,-1);h=J[699344];J[699344]=0;if((h|0)==1)break t;if(f)break H}f=J[n>>2];if(!f)break H;h=J[J[f>>2]+28>>2];J[699344]=0;f=_(h|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break t; +if(!f)break H;if(t){t=1;break v}J[699344]=0;da(5515,n|0,b|0);f=J[699344];J[699344]=0;t=1;if((f|0)!=1)break v;i=ea(2423616)|0;break s}J[699344]=0;f=pd(g+12|0,2412061,-1);h=J[699344];J[699344]=0;if((h|0)==1)break t;if(!(J[a+48>>2]|e?f:1))break v;f=J[g+12>>2];f=J[(f?f+12|0:2743576)>>2];J[699344]=0;ca(5330,b|0,f|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break t;J[699344]=0;J[g+4>>2]=0;aa(5145,g+4|0,m|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break z;J[699344]=0;f=J[g+4>>2];J[g+24>>2]=0;aa(5145,g+24|0,b| +0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break y;J[699344]=0;ga(5335,J[g+24>>2],f|0,0)|0;f=J[699344];J[699344]=0;I:{if((f|0)!=1){f=J[g+24>>2];J[g+24>>2]=0;if(!f)break I;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[699344];J[699344]=0;if((l|0)!=1){if(h)break I;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break I}break a}i=ea(2423616)|0;c=gc;zc(g+24|0);break x}f=J[g+4>>2];J[g+4>>2]=0;if(!f)break A;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[699344];J[699344]=0;if((l|0)==1)break a;if(h)break A; +J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}J[699344]=0;$(5332,b|0);f=J[699344];J[699344]=0;if((f|0)!=1)break v;break t}i=ea(2423616)|0;break s}i=ea(2423616)|0;c=gc}zc(g+4|0);break r}i=ea(2423616)|0;break s}i=i-1|0;J[699344]=0;$(5468,m|0);f=J[699344];J[699344]=0;if((f|0)!=1)continue}break}i=ea(2423616)|0}c=gc}if((sa(2423616)|0)!=(c|0))break c;d=oa(i|0)|0;J[699344]=0;e=En(d,J[685886]);i=J[699344];J[699344]=0;c=1;if((i|0)==1)break n;if(!e){c=J[a+132>>2];if(J[a+140>>2]<0)J[a+ +140>>2]=(c|0)>2?k:j;c=(c|0)<2}e=J[J[a>>2]+64>>2];J[699344]=0;ca(e|0,a|0,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)==1)break o}if(q)break h}c=J[p>>2];if(!c)break h;d=J[J[c>>2]+28>>2];J[699344]=0;c=_(d|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;if(!c)break h;J[699344]=0;da(5515,p|0,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break h;i=Z()|0;break c}i=Z()|0;break c}}i=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break c; +break a}i=Z()|0;break c}J:{if(s)break J;c=J[o>>2];if(!c)break J;d=J[J[c>>2]+28>>2];J[699344]=0;c=_(d|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;if(!c)break J;J[699344]=0;da(5515,o|0,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break J;i=Z()|0;break c}K:{if(t)break K;c=J[n>>2];if(!c)break K;d=J[J[c>>2]+28>>2];J[699344]=0;c=_(d|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;if(!c)break K;J[699344]=0;da(5515,n|0,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break K;i=Z()|0;break c}if(!u){J[699344]= +0;$(5332,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break d}a=J[a+108>>2];J[699344]=0;da(5269,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break d;a=J[g+8>>2];J[g+8>>2]=0;L:{if(!a)break L;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break L;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}wc(g+12|0);a=J[g+20>>2];J[g+20>>2]=0;if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break f;if(b)break g;J[699344]= +0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f}fc=g+48|0;return}ea(0)|0;Bc()}B()}i=Z()|0}zc(g+8|0)}wc(g+12|0);zc(g+20|0);ba(i|0);B()}ea(0)|0;Bc();B()}function Anb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=fc-32|0;fc=g;d=yd(a,0);a:{if(d)break a;d=Te(a,260896,b+132|0);if(d)break a;J[b+168>>2]=J[b+168>>2]+(J[b+204>>2]<<16);d=2;if(J[b+132>>2]!=1346785840|M[b+136>>2]>4|(J[b+140>>2]!=3338|M[b+144>>2]<58))break a;i=J[b+152>>2];d=yd(a,i);J[g+ +12>>2]=d;if(d)break a;h=g+12|0;e=ee(a,h);d=J[g+12>>2];if(d)break a;d=8;if(e>>>0>13106)break a;f=J[a+4>>2];if(P(e,5)+2>>>0>=f-i>>>0|f>>>0<=P(e,23)+95>>>0)break a;d=0;J[g+24>>2]=0;J[b>>2]=e;if((c|0)<0)break a;d=6;p=c&65535;if(e>>>0<=p>>>0)break a;k=J[b+204>>2];d=yd(a,J[b+152>>2]);J[g+12>>2]=d;if(d)break a;c=ee(a,h);d=J[g+12>>2];if(d)break a;d=6;if(c>>>0<=p>>>0)break a;d=kg(a,P(p,5));J[g+12>>2]=d;if(d)break a;e=ee(a,h);d=J[g+12>>2];if(d)break a;d=0;f=fc-16|0;fc=f;J[h>>2]=0;i=a;b:{c:{d:{e:{c=J[a+4>>2]; +a=J[a+8>>2];if(c>>>0<=a+2>>>0)break e;j=J[i+20>>2];f:{if(j){c=f+13|0;if((kc[j|0](i,a,c,3)|0)!=3)break e;a=J[i+8>>2];break f}c=J[i>>2];if(!c)break d;c=a+c|0}d=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);break c}J[h>>2]=85;break b}d=0}J[i+8>>2]=a+3}fc=f+16|0;a=d;d=J[g+12>>2];if(d)break a;J[b+240>>2]=e;J[b+244>>2]=a;d=yd(i,a);J[g+12>>2]=d;if(d)break a;d=af(i,e);J[g+12>>2]=d;if(d)break a;g:{h:{i:{if(e>>>0<13)break i;d=J[i+32>>2];h=d+e|0;J[b+248>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[b+252>>2]=K[d+5|0]|(K[d+4| +0]<<8|K[d+3|0]<<16);J[b+256>>2]=K[d+8|0]|(K[d+7|0]<<8|K[d+6|0]<<16);J[b+260>>2]=K[d+11|0]|(K[d+10|0]<<8|K[d+9|0]<<16);e=K[d+12|0];f=e&4;if(f){a=e&8?2:1;c=e&3?a:a+3|0}else c=0;a=d+13|0;j=e&32;if(h>>>0<(c+a|0)+(e<<27>>31&(j?2:1))>>>0)break i;m=e&16;j:{if(!f)break j;c=K[a|0];k:{if(e&8){c=(K[d+14|0]|c<<8)<<16>>16;a=d+15|0;break k}a=d+14|0}J[b+268>>2]=c;if(e&3)break j;J[b+276>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);a=a+3|0}l:{if(!m){c=a;break l}d=K[a|0];m:{if(j){d=(K[a+1|0]|d<<8)<<16>>16;c=a+2|0;break m}c= +a+1|0}J[b+272>>2]=d}n:{if(!(e&64)){d=c;break n}d=c+1|0;if(h>>>0>>0)break h;c=K[c|0];if(c)while(1){a=d+2|0;if(a>>>0>h>>>0)break h;d=a+K[d|0]|0;if(h>>>0>>0)break h;c=c-1|0;if(c)continue;break}J[g+12>>2]=0}if(h>>>0>>0)break i;a=K[d+1|0]|K[d|0]<<8;J[b+280>>2]=a;J[b+284>>2]=K[d+4|0]|(K[d+3|0]<<8|K[d+2|0]<<16);if(!k)break g;if(h>>>0>>0)break i;J[b+280>>2]=a|K[d+5|0]<<16;break g}J[g+12>>2]=8;break g}J[g+12>>2]=8}ve(i);d=J[g+12>>2];J[g+24>>2]=d;if(d)break a;e=J[b+280>>2];m=J[b+284>>2];j=J[i+ +28>>2];J[b+428>>2]=b+424;J[b+424>>2]=0;J[b+292>>2]=m;J[b+288>>2]=j;d=yd(i,m);if(d)break a;d=af(i,e);J[g+12>>2]=d;if(d)break a;c=J[i+32>>2];J[b+436>>2]=c;o:{p:{if((e|0)<15)break p;J[b+296>>2]=K[c+1|0]|K[c|0]<<8;J[b+300>>2]=K[c+3|0]|K[c+2|0]<<8;J[b+304>>2]=K[c+5|0]|K[c+4|0]<<8;a=K[c+6|0]|K[c+7|0]<<8;J[b+308>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+8|0]|K[c+9|0]<<8;J[b+312>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+10|0]|K[c+11|0]<<8;J[b+316>>2]=(a<<8|a>>>8)<<16>>16;a=K[c+12|0]|K[c+13|0]<<8;J[b+320>>2]=(a<<8|a>>>8)<<16>> +16;a=c+15|0;J[g+28>>2]=a;k=K[c+14|0];J[b+324>>2]=k;q=k&4;if(!q){if(e>>>0<17)break p;a=c+17|0;J[g+28>>2]=a;d=K[c+15|0]|K[c+16|0]<<8;J[b+328>>2]=(d<<8|d>>>8)<<16>>16}f=c+e|0;if(k<<24>>24<0){n=b+288|0;d=8;c=J[g+28>>2];a=c+1|0;q:{r:{if(f>>>0>>0)break r;e=K[c|0];if(e)while(1){h=a;c=a+2|0;if(f>>>0>>0){J[g+28>>2]=a;d=8;break q}a=K[h|0]+c|0;if(f>>>0>>0){J[g+28>>2]=c;d=8;break q}l=J[65257];s:{if(!l)break s;d=261024;h=K[h+1|0];if((h|0)!=J[65256])while(1){l=J[d+12>>2];if(!l)break s;o=J[d+8>>2];d=d+ +8|0;if((h|0)!=(o|0))continue;break}d=kc[l|0](c,a,n)|0;if(d)break r}e=e-1|0;if(e)continue;break}c=a;d=0}J[g+28>>2]=c}J[g+12>>2]=d;if(d)break o;a=J[g+28>>2]}e=a+3|0;if(f>>>0>>0)break p;J[g+28>>2]=e;c=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);if(c){a=c+e|0;if(a>>>0>f>>>0)break p;J[g+28>>2]=a;l=b+372|0;n=b+376|0;while(1){t:{d=e+4|0;if(d>>>0>a>>>0)break t;h=K[e+1|0]|K[e|0]<<8;if(h>>>0<4|c>>>0>>0)break t;u:{v:{w:{x:{y:{o=K[e+2|0]|K[e+3|0]<<8;switch(((o<<8|o>>>8)&65535)-1|0){case 2:break w;case 1:break x; +case 0:break y;default:break u}}d=t7(d,h-4|0,j,l);break v}if(h>>>0<36)break u;d=K[e+14|0]|K[e+15|0]<<8;J[b+332>>2]=(d<<8|d>>>8)<<16>>16;d=K[e+16|0]|K[e+17|0]<<8;J[b+336>>2]=(d<<8|d>>>8)<<16>>16;d=K[e+18|0]|K[e+19|0]<<8;J[b+340>>2]=(d<<8|d>>>8)<<16>>16;break u}d=t7(d,h-4|0,j,n)}J[g+12>>2]=d;if(d)break a}e=e+h|0;c=c-h|0;if(c)continue}break}e=a}d=e+1|0;if(f>>>0>>0)break p;J[g+28>>2]=d;a=K[e|0];J[b+392>>2]=a;if(f>>>0<(a<<1)+d>>>0)break p;h=_c(j,4,0,a,0,g+12|0);J[b+396>>2]=h;if(J[g+12>>2])break o;z:{if(!a)break z; +l=a&1;A:{if((a|0)==1){e=0;break A}a=a&254;e=0;c=0;while(1){n=e<<2;o=K[d|0]|K[d+1|0]<<8;J[n+h>>2]=(o<<8|o>>>8)<<16>>16;o=h+(n|4)|0;n=K[d+2|0]|K[d+3|0]<<8;J[o>>2]=(n<<8|n>>>8)<<16>>16;e=e+2|0;d=d+4|0;c=c+2|0;if((a|0)!=(c|0))continue;break}}if(!l)break z;a=K[d|0]|K[d+1|0]<<8;J[h+(e<<2)>>2]=(a<<8|a>>>8)<<16>>16;d=d+2|0}e=d+8|0;if(f>>>0>>0)break p;J[g+28>>2]=d+1;J[b+400>>2]=K[d|0];J[g+28>>2]=d+2;J[b+404>>2]=K[d+1|0];J[g+28>>2]=d+4;J[b+356>>2]=K[d+3|0]|K[d+2|0]<<8;J[b+344>>2]=K[d+5|0]|K[d+4|0]<<8;J[g+ +28>>2]=e;h=K[d+7|0]|K[d+6|0]<<8;J[b+408>>2]=h;J[b+412>>2]=(e+m|0)-J[i+32>>2];m=k>>>3&1;l=k&16;a=k&32;k=k&2;if(f>>>0>>1)+(l>>>4|0)+(a>>>5)|0)+(k?5:4)|0)+e>>>0)break p;j=_c(j,16,0,h,0,g+12|0);J[b+416>>2]=j;if(J[g+12>>2]|!h)break o;d=0;if(!a)while(1){f=j+(d<<4)|0;a=K[e|0];B:{if(k){a=K[e+1|0]|a<<8;c=e+2|0;break B}c=e+1|0}J[f>>2]=a;C:{if(q){a=K[c|0]|K[c+1|0]<<8;e=(a<<8|a>>>8)<<16>>16;c=c+2|0;break C}e=J[b+328>>2]}J[f+4>>2]=e;a=c+m|0;e=K[a|0];D:{if(l){e=K[a+1|0]|e<<8;a=a+2|0;break D}a=a+1|0}J[f+ +8>>2]=e;J[f+12>>2]=K[a+1|0]|K[a|0]<<8;e=a+2|0;d=d+1|0;if((h|0)!=(d|0))continue;break o}while(1){f=j+(d<<4)|0;a=K[e|0];E:{if(k){a=K[e+1|0]|a<<8;c=e+2|0;break E}c=e+1|0}J[f>>2]=a;F:{if(q){a=K[c|0]|K[c+1|0]<<8;e=(a<<8|a>>>8)<<16>>16;c=c+2|0;break F}e=J[b+328>>2]}J[f+4>>2]=e;a=c+m|0;e=K[a|0];G:{if(l){e=K[a+1|0]|e<<8;a=a+2|0;break G}a=a+1|0}J[f+8>>2]=e;J[f+12>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);e=a+3|0;d=d+1|0;if((h|0)!=(d|0))continue;break}break o}J[g+12>>2]=8}ve(i);e=0;a=J[i+8>>2];J[b+436>>2]=0;J[b+ +432>>2]=a;d=J[g+12>>2];J[g+24>>2]=d;if(d)break a;J[b+4>>2]=p;c=J[b+8>>2]|1;J[b+8>>2]=c;a=J[b+408>>2];J[b+16>>2]=a+1;H:{I:{J:{if(!a)break J;d=J[b+416>>2];while(1){if(J[(d+(e<<4)|0)+12>>2])break J;e=e+1|0;if((a|0)!=(e|0))continue;break}break I}if((a|0)!=(e|0))break H}c=0;if(J[b+380>>2])break H;d=3;break a}a=J[b+324>>2];d=(a^-1)&4|c|(a&1?32:16);J[b+8>>2]=d;c=J[b+380>>2];if(c){d=d|2;J[b+8>>2]=d}if(J[b+420>>2])J[b+8>>2]=d|64;d=J[b+372>>2];J[b+20>>2]=d;if(!d)J[b+20>>2]=J[b+368>>2];J[b+28>>2]=0;J[b+32>> +2]=0;J[b+24>>2]=J[b+376>>2];d=J[b+312>>2];J[b+52>>2]=J[b+308>>2];J[b+56>>2]=d;d=J[b+320>>2];J[b+60>>2]=J[b+316>>2];J[b+64>>2]=d;d=J[b+300>>2];I[b+68>>1]=d;e=J[b+320>>2];I[b+70>>1]=e;i=J[b+312>>2];I[b+72>>1]=i;e=(e<<16>>16)-(i<<16>>16)|0;d=(P(d&65535,12)>>>0)/10|0;I[b+74>>1]=(e|0)>d<<16>>16?e:d;if(c){a=_c(J[J[b+104>>2]+28>>2],16,0,c,0,g+24|0);J[b+32>>2]=a;d=J[g+24>>2];if(d)break a;d=J[b+388>>2];if((c|0)!=1){h=c&-2;e=0;while(1){f=J[d+4>>2];I[a>>1]=f;i=J[d>>2];f=f<<6;J[a+12>>2]=f;J[a+4>>2]=f;I[a+2>> +1]=i;J[a+8>>2]=i<<6;f=J[d+40>>2];I[a+16>>1]=f;i=J[d+36>>2];f=f<<6;J[a+28>>2]=f;J[a+20>>2]=f;I[a+18>>1]=i;J[a+24>>2]=i<<6;d=d+72|0;a=a+32|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(c&1){e=J[d+4>>2];I[a>>1]=e;d=J[d>>2];e=e<<6;J[a+12>>2]=e;J[a+4>>2]=e;I[a+2>>1]=d;J[a+8>>2]=d<<6}J[b+28>>2]=c;a=J[b+324>>2]}K:{if(!(a&4)){a=J[b+328>>2];break K}a=J[b+408>>2];if(!a){a=0;break K}i=a&3;d=J[b+416>>2];c=0;L:{if(a>>>0<4){a=0;break L}h=a&-4;a=0;e=0;while(1){f=J[d+4>>2];a=(a|0)>(f|0)?a:f;f=J[d+20>>2];a=(a|0)>(f| +0)?a:f;f=J[d+36>>2];a=(a|0)>(f|0)?a:f;f=J[d+52>>2];a=(a|0)>(f|0)?a:f;d=d- -64|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!i)break K;while(1){e=J[d+4>>2];a=(a|0)>(e|0)?a:e;d=d+16|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}I[b+76>>1]=a;I[b+78>>1]=L[b+74>>1];a=L[b+68>>1];I[b+82>>1]=(a>>>0)/30;I[b+80>>1]=0-((a>>>0)/10|0);J[g+12>>2]=b;J[g+16>>2]=1970170211;J[g+20>>2]=65539;d=bl(260700,0,g+12|0,0);if(!J[b+420>>2])break a;J[b+8>>2]=J[b+8>>2]|64}fc=g+32|0;return d|0}function e2a(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;g=fc-272|0;fc=g;I[g+268>>1]=8224;J[g+264>>2]=538976288;e=ji(104);J[a+8>>2]=e;a:{b:{if(e){J[g+32>>2]=J[186098];d=J[186097];J[g+24>>2]=J[186096];J[g+28>>2]=d;d=J[186095];J[g+16>>2]=J[186094];J[g+20>>2]=d;d=J[186093];J[g+8>>2]=J[186092];J[g+12>>2]=d;f=K[b+8|0];H[g+16|0]=f;d=Ac(e,0,104);J[a+52>>2]=0;e=J[b+24>>2];if(!e){J[d+64>>2]=J[b+12>>2]&15;break b}j=Ad(g+264|0,e,6);h=K[j|0];i=J[b+12>>2]&15;J[d+64>>2]=i;c:{d:switch(h-106|0){case 0:e=K[j+1|0]-97|0;if((e|0)!=15? +e:0)break b;e=K[j+2|0];if(e?(e|0)!=95:0)break b;if(i>>>0>=5){J[c>>2]=2;break a}e:{f:{if(i>>>0<=1){k=d,l=jg(731367,g+40|0,g+8|0,c),J[k+16>>2]=l;if(!i)break e;f=731884;e=5;break f}f=g+40|0;e=g+8|0;k=d,l=jg(730744,f,e,c),J[k+8>>2]=l;k=d,l=jg(731367,f,e,c),J[k+16>>2]=l;k=d,l=jg(731884,f,e,c),J[k+20>>2]=l;k=d,l=jg(732334,f,e,c),J[k+24>>2]=l;f=732765;e=7}k=(e<<2)+d|0,l=jg(f,g+40|0,g+8|0,c),J[k>>2]=l}h=744408;J[a+24>>2]=744408;H[d+101|0]=K[733054];e=K[733052]|K[733053]<<8;H[d+99|0]=e;H[d+100|0]=e>>>8;f= +K[733305]|K[733306]<<8|(K[733307]<<16|K[733308]<<24);e=K[733301]|K[733302]<<8|(K[733303]<<16|K[733304]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24;f=K[733313]|K[733314]<<8|(K[733315]<<16|K[733316]<<24);e=K[733309]|K[733310]<<8|(K[733311]<<16|K[733312]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[733321]|K[733322]<<8|(K[733323]<< +16|K[733324]<<24);e=K[733317]|K[733318]<<8|(K[733319]<<16|K[733320]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;e=K[733325]|K[733326]<<8|(K[733327]<<16|K[733328]<<24);H[d+93|0]=e;H[d+94|0]=e>>>8;H[d+95|0]=e>>>16;H[d+96|0]=e>>>24;e=K[d+64|0];d=d+69|0;d=Yc(d)+d|0;H[d+1|0]=0;H[d|0]=e+48;break c;case 1:g:switch(K[j+1|0]-111|0){case 0:case 3:break g;default:break b}e=K[j+2|0];if(e?(e|0)!=95:0)break b;if(i>>>0>=2){J[c>> +2]=2;break a}h=733557;if((i|0)!=1){J[d+64>>2]=0;h=733689}if(f){r3(h,c);Nf(J[a+8>>2]);J[a+8>>2]=0;break a}h=cD(h,c);J[d+40>>2]=h;if(J[c>>2]>0){FL(a);break a}h:{if((i|0)==1){f=K[733966]|K[733967]<<8|(K[733968]<<16|K[733969]<<24);e=K[733962]|K[733963]<<8|(K[733964]<<16|K[733965]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]=e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;f=K[733961]|K[733962]<<8|(K[733963]<<16|K[733964]<<24);e=K[733957]|K[733958]<<8|(K[733959]<<16| +K[733960]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[733953]|K[733954]<<8|(K[733955]<<16|K[733956]<<24);e=K[733949]|K[733950]<<8|(K[733951]<<16|K[733952]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[733945]|K[733946]<<8|(K[733947]<<16|K[733948]<<24);e=K[733941]|K[733942]<<8|(K[733943]<<16|K[733944]<<24);H[d+69|0]=e;H[d+70| +0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24;f=J[a+20>>2];e=J[h+20>>2];e=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;h=J[d+40>>2];H[a+61|0]=K[h+61|0];break h}f=K[734128]|K[734129]<<8|(K[734130]<<16|K[734131]<<24);e=K[734124]|K[734125]<<8|(K[734126]<<16|K[734127]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]=e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97| +0]=f>>>24;f=K[734123]|K[734124]<<8|(K[734125]<<16|K[734126]<<24);e=K[734119]|K[734120]<<8|(K[734121]<<16|K[734122]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[734115]|K[734116]<<8|(K[734117]<<16|K[734118]<<24);e=K[734111]|K[734112]<<8|(K[734113]<<16|K[734114]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[734107]|K[734108]<< +8|(K[734109]<<16|K[734110]<<24);e=K[734103]|K[734104]<<8|(K[734105]<<16|K[734106]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24}e=J[d+64>>2];if((e|0)==1){H[h+36|0]=0;J[h+44>>2]=0;J[h+48>>2]=0}if(!K[a+63|0]){J[a+76>>2]=1126769691;H[a+63|0]=4}if((e|0)==1){J[h+52>>2]=1;J[h+56>>2]=0}h=744636;J[a+24>>2]=744636;H[d+101|0]=K[734329];e=K[734327]|K[734328]<<8;H[d+99|0]=e;H[d+100|0]=e>>>8;break c;default:break d}e=K[j+1|0];if(!((h| +0)==122&(e|0)==104)&((h|0)!=99|(e|0)!=110))break b;e=K[j+2|0];if(e?(e|0)!=95:0)break b;if(i>>>0>=3){J[c>>2]=2;break a}f=g+40|0;e=g+8|0;k=d,l=jg(732334,f,e,c),J[k+4>>2]=l;if((i|0)==1)k=d,l=jg(734507,f,e,c),J[k+8>>2]=l;k=d,l=jg(734595,g+40|0,g+8|0,c),J[k+12>>2]=l;h=744864;J[a+24>>2]=744864;H[d+101|0]=K[734619];e=K[734617]|K[734618]<<8;H[d+99|0]=e;H[d+100|0]=e>>>8;if(!i){J[d+64>>2]=0;f=K[734774]|K[734775]<<8|(K[734776]<<16|K[734777]<<24);e=K[734770]|K[734771]<<8|(K[734772]<<16|K[734773]<<24);H[d+69| +0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24;f=K[734782]|K[734783]<<8|(K[734784]<<16|K[734785]<<24);e=K[734778]|K[734779]<<8|(K[734780]<<16|K[734781]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[734790]|K[734791]<<8|(K[734792]<<16|K[734793]<<24);e=K[734786]|K[734787]<<8|(K[734788]<<16|K[734789]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>> +16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[734795]|K[734796]<<8|(K[734797]<<16|K[734798]<<24);e=K[734791]|K[734792]<<8|(K[734793]<<16|K[734794]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]=e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;break c}i:{if((i|0)==1){J[d+64>>2]=1;f=K[734878]|K[734879]<<8|(K[734880]<<16|K[734881]<<24);e=K[734874]|K[734875]<<8|(K[734876]<<16|K[734877]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]= +e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>>8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;f=K[734873]|K[734874]<<8|(K[734875]<<16|K[734876]<<24);e=K[734869]|K[734870]<<8|(K[734871]<<16|K[734872]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[734865]|K[734866]<<8|(K[734867]<<16|K[734868]<<24);e=K[734861]|K[734862]<<8|(K[734863]<<16|K[734864]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]= +f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24;f=K[734857]|K[734858]<<8|(K[734859]<<16|K[734860]<<24);e=K[734853]|K[734854]<<8|(K[734855]<<16|K[734856]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24;break i}J[d+64>>2]=2;f=K[735002]|K[735003]<<8|(K[735004]<<16|K[735005]<<24);e=K[734998]|K[734999]<<8|(K[735E3]<<16|K[735001]<<24);H[d+90|0]=e;H[d+91|0]=e>>>8;H[d+92|0]=e>>>16;H[d+93|0]=e>>>24;H[d+94|0]=f;H[d+95|0]=f>>> +8;H[d+96|0]=f>>>16;H[d+97|0]=f>>>24;f=K[734997]|K[734998]<<8|(K[734999]<<16|K[735E3]<<24);e=K[734993]|K[734994]<<8|(K[734995]<<16|K[734996]<<24);H[d+85|0]=e;H[d+86|0]=e>>>8;H[d+87|0]=e>>>16;H[d+88|0]=e>>>24;H[d+89|0]=f;H[d+90|0]=f>>>8;H[d+91|0]=f>>>16;H[d+92|0]=f>>>24;f=K[734989]|K[734990]<<8|(K[734991]<<16|K[734992]<<24);e=K[734985]|K[734986]<<8|(K[734987]<<16|K[734988]<<24);H[d+77|0]=e;H[d+78|0]=e>>>8;H[d+79|0]=e>>>16;H[d+80|0]=e>>>24;H[d+81|0]=f;H[d+82|0]=f>>>8;H[d+83|0]=f>>>16;H[d+84|0]=f>>>24; +f=K[734981]|K[734982]<<8|(K[734983]<<16|K[734984]<<24);e=K[734977]|K[734978]<<8|(K[734979]<<16|K[734980]<<24);H[d+69|0]=e;H[d+70|0]=e>>>8;H[d+71|0]=e>>>16;H[d+72|0]=e>>>24;H[d+73|0]=f;H[d+74|0]=f>>>8;H[d+75|0]=f>>>16;H[d+76|0]=f>>>24}}H[a+60|0]=K[J[h+12>>2]+71|0];if(!K[b+8|0]&J[c>>2]<=0)break a;FL(a);break a}J[c>>2]=7;break a}J[c>>2]=2}fc=g+272|0}function J$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[b+208>>2];h=b+80|0;H[d+h|0]=128;c=d+1|0;if(c>>>0>=113){Ac(c+h|0,0,127-d|0);Ow(b,h,1);c=0}Ac(c+ +h|0,0,112-c|0);e=J[b+64>>2];i=e<<24|(e&65280)<<8;f=e&16711680;g=f<<24;f=f>>>8|0;k=g;g=e&-16777216;c=g>>>24|0;d=J[b+68>>2];d=k|g<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[b+200|0]=d;H[b+201|0]=d>>>8;H[b+202|0]=d>>>16;H[b+203|0]=d>>>24;g=c|f|i;c=0;c=g|(0|(c|c));H[b+204|0]=c;H[b+205|0]=c>>>8;H[b+206|0]=c>>>16;H[b+207|0]=c>>>24;e=J[b+72>>2];i=e<<24|(e&65280)<<8;f=e&16711680;g=f<<24;f=f>>>8|0;d=J[b+76>>2];k=g;g=e&-16777216;c=g>>>24|0;d=k|g<<8|(((d&255)<< +24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[b+192|0]=d;H[b+193|0]=d>>>8;H[b+194|0]=d>>>16;H[b+195|0]=d>>>24;g=c|f|i;c=0;c=g|(c|c|j);H[b+196|0]=c;H[b+197|0]=c>>>8;H[b+198|0]=c>>>16;H[b+199|0]=c>>>24;Ow(b,h,1);a:{if(!a)break a;b:{c:{d:{e:{f:{c=J[b+212>>2];switch(c<<30|c-28>>>2){case 0:break c;case 1:break d;case 5:break e;case 9:break f;default:break a}}e=J[b>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+4>>2];d=i|h<<8|(((d& +255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;g=c|f|g;c=0;c=g|(0|(c|c));H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;e=J[b+8>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+12>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c| +j);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;e=J[b+16>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+20>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;e=J[b+24>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0; +d=J[b+28>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+24|0]=d;H[a+25|0]=d>>>8;H[a+26|0]=d>>>16;H[a+27|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;e=J[b+32>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+36>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+32|0]=d;H[a+33|0]=d>>>8;H[a+34|0]=d>>>16; +H[a+35|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;e=J[b+40>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+44>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+40|0]=d;H[a+41|0]=d>>>8;H[a+42|0]=d>>>16;H[a+43|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+44|0]=c;H[a+45|0]=c>>>8;H[a+46|0]=c>>>16;H[a+47|0]=c>>>24;e=J[b+48>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<< +24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+52>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+48|0]=d;H[a+49|0]=d>>>8;H[a+50|0]=d>>>16;H[a+51|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+52|0]=c;H[a+53|0]=c>>>8;H[a+54|0]=c>>>16;H[a+55|0]=c>>>24;d=J[b+56>>2];b=J[b+60>>2];c=b;H[a+62|0]=(c&255)<<24|d>>>8;H[a+61|0]=(c&65535)<<16|d>>>16;H[a+60|0]=(c&16777215)<<8|d>>>24;H[a+59|0]=c;H[a+58|0]=c>>>8;H[a+57|0]=c>>>16;H[a+56|0]=c>>>24;a=a+63|0;break b}e=J[b>> +2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+4>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;g=c|f|g;c=0;c=g|(0|(c|c));H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;e=J[b+8>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+12>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680| +(d>>>8&65280|d>>>24));H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;e=J[b+16>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+20>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+ +23|0]=c>>>24;e=J[b+24>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+28>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+24|0]=d;H[a+25|0]=d>>>8;H[a+26|0]=d>>>16;H[a+27|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;e=J[b+32>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+36>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216| +((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+32|0]=d;H[a+33|0]=d>>>8;H[a+34|0]=d>>>16;H[a+35|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;d=J[b+40>>2];b=J[b+44>>2];c=b;H[a+46|0]=(c&255)<<24|d>>>8;H[a+45|0]=(c&65535)<<16|d>>>16;H[a+44|0]=(c&16777215)<<8|d>>>24;H[a+43|0]=c;H[a+42|0]=c>>>8;H[a+41|0]=c>>>16;H[a+40|0]=c>>>24;a=a+47|0;break b}e=J[b>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+4>> +2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;g=c|f|g;c=0;c=g|(0|(c|c));H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;e=J[b+8>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+12>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;g=c| +f|g;c=0;c=g|(c|c|j);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;e=J[b+16>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+20>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;d=J[b+24>>2];b=J[b+28>>2];c=b;H[a+30|0]=(c&255)<<24|d>>>8;H[a+29|0]=(c&65535)<< +16|d>>>16;H[a+28|0]=(c&16777215)<<8|d>>>24;H[a+27|0]=c;H[a+26|0]=c>>>8;H[a+25|0]=c>>>16;H[a+24|0]=c>>>24;a=a+31|0;break b}e=J[b>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+4>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a|0]=d;H[a+1|0]=d>>>8;H[a+2|0]=d>>>16;H[a+3|0]=d>>>24;g=c|f|g;c=0;c=g|(0|(c|c));H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;e=J[b+8>>2];g=e<<24|(e&65280)<<8;f=e&16711680; +i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+12>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+8|0]=d;H[a+9|0]=d>>>8;H[a+10|0]=d>>>16;H[a+11|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;e=J[b+16>>2];g=e<<24|(e&65280)<<8;f=e&16711680;i=f<<24;f=f>>>8|0;h=e&-16777216;c=h>>>24|0;d=J[b+20>>2];d=i|h<<8|(((d&255)<<24|e>>>8)&-16777216|((d&16777215)<<8|e>>>24)&16711680|(d>>>8&65280|d>>>24));H[a+ +16|0]=d;H[a+17|0]=d>>>8;H[a+18|0]=d>>>16;H[a+19|0]=d>>>24;g=c|f|g;c=0;c=g|(c|c|j);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;b=J[b+28>>2];H[a+26|0]=b>>>8;H[a+25|0]=b>>>16;H[a+24|0]=b>>>24;d=b;a=a+27|0}H[a|0]=d}}function dBa(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;c=fc-144|0;fc=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(!K[a+144|0]){a=Qc(c+116|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!= +1)break j;b=Z()|0;Kc(a);ba(b|0);B()}p=si();J[c+108>>2]=0;J[c+112>>2]=J[685894];J[699344]=0;da(5278,c+104|0,b|0);b=J[699344];J[699344]=0;k:{l:{m:{n:{o:{p:{q:{r:{if((b|0)!=1){J[699344]=0;j=J[c+104>>2];b=ha(5279,j|0,c+108|0,0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break o;if(b)break p;J[699344]=0;b=ja(5178,c+116|0,J[685886],2386059,1270,2414501,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break r;J[699344]=0;$(5179,b|0);f=J[699344];J[699344]=0;if((f|0)!=1)break j;d=ea(2423616)|0;g=gc;Kc(b);break q}d=Z()| +0;break b}d=ea(2423616)|0;g=gc}if((sa(2423616)|0)!=(g|0))break c;b=oa(d|0)|0;f=J[J[a>>2]+64>>2];J[699344]=0;ca(f|0,a|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1)break p;d=Z()|0;break c}J[699344]=0;b=c+108|0;l=pd(b,2412575,-1);f=J[699344];J[699344]=0;s:{t:{if((f|0)!=1){J[699344]=0;n=pd(b,2412610,-1);f=J[699344];J[699344]=0;if((f|0)==1)break t;J[699344]=0;f=pd(b,2412815,-1);g=J[699344];J[699344]=0;if((g|0)==1)break l;u:{if(f){J[699344]= +0;b=pd(b,2412862,-1);f=J[699344];J[699344]=0;if((f|0)==1)break l;m=!b;if(!l|!n)break u;if(b)break s;break m}m=1;if(!l)break u;if(n)break m}J[699344]=0;aa(5224,a+60|0,2412972)|0;b=J[699344];J[699344]=0;s=1;if((b|0)==1)break l;break k}d=Z()|0;break c}d=Z()|0;break c}J[699344]=0;a=ja(5178,c+116|0,2414547,2386059,1281,2414501,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;d=Z()|0;Kc(a);break c}d=Z()|0;break c}d=Z()|0;break c}J[699344]= +0;aa(5224,a+60|0,2413090)|0;b=J[699344];J[699344]=0;m=1;if((b|0)!=1)break k}d=Z()|0;break c}f=J[J[j>>2]+16>>2];b=0;J[699344]=0;k=_(f|0,j|0)|0;f=J[699344];J[699344]=0;v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{if((f|0)!=1){f=J[a+140>>2];g=J[a+132>>2]<=1?-1:f;if(g){q=a+52|0;d=g;K:{while(1){J[699344]=0;e=c+108|0;h=ha(5279,j|0,e|0,0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break D;if(!h)break K;J[699344]=0;J[c+96>>2]=0;i=c+96|0;aa(5145,i|0,j|0)|0;o=J[699344];J[699344]=0;f=b+1|0;if((o|0)==1)break J; +J[699344]=0;ua(5481,c+116|0,a|0,e|0,i|0,!l|0,!n|0,m|0);e=J[699344];J[699344]=0;if((e|0)==1)break I;e=J[c+96>>2];J[c+96>>2]=0;L:{if(!e)break L;J[699344]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;o=J[699344];J[699344]=0;if((o|0)==1)break a;if(i)break L;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}J[c+96>>2]=0;J[c+100>>2]=J[685894];e=J[c+108>>2];J[c+56>>2]=J[(e?e+12|0:2743576)>>2];O[c+48>>3]=+(h|0)*9.765625E-4;J[699344]=0;e=c+96|0;ga(5350,e|0,2414898,c+48|0)|0;h=J[699344];J[699344]=0;if((h| +0)==1)break H;J[699344]=0;h=c+72|0;ca(5292,h|0,q|0,c+116|0);i=J[699344];J[699344]=0;if((i|0)==1)break G;J[699344]=0;i=c+80|0;ca(5292,i|0,h|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break F;J[699344]=0;ca(5291,c+88|0,i|0,2415199);e=J[699344];J[699344]=0;if((e|0)==1)break E;e=J[c+88>>2];M:{if(e){h=J[J[e>>2]+28>>2];J[699344]=0;ca(h|0,c+140|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break M;d=ea(2423616)|0;g=gc;break C}J[c+140>>2]=0}J[699344]=0;aa(5153,q|0,c+140|0)|0;e=J[699344];J[699344]=0;N:{if((e| +0)!=1){e=J[c+140>>2];J[c+140>>2]=0;if(!e)break N;J[699344]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break N;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break N}break a}d=ea(2423616)|0;g=gc;zc(c+140|0);break C}e=J[a+52>>2];J[a+56>>2]=J[(e?e+12|0:2743576)>>2];wc(c+88|0);wc(c+80|0);wc(c+72|0);e=J[J[p>>2]+36>>2];J[699344]=0;ca(e|0,p|0,a|0,c+108|0);e=J[699344];J[699344]=0;if((e|0)==1)break H;J[699344]=0;$(5468,j|0);e=J[699344];J[699344]=0;if((e|0)==1)break H; +e=J[J[j>>2]+16>>2];J[699344]=0;e=_(e|0,j|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break H;wc(c+96|0);wc(c+116|0);k=e;b=f;d=d-1|0;if(d)continue;break}b=g}f=J[a+140>>2]}if((f|0)>=0)break x;J[a+140>>2]=b;break x}d=Z()|0;break c}d=ea(2423616)|0;g=gc;break y}d=ea(2423616)|0;g=gc;zc(c+96|0);break y}d=ea(2423616)|0;g=gc;break z}d=ea(2423616)|0;g=gc;break z}d=ea(2423616)|0;g=gc;break A}d=ea(2423616)|0;g=gc;break B}d=ea(2423616)|0;g=gc;f=b;break y}wc(c+88|0)}wc(c+80|0)}wc(c+72|0)}wc(c+96|0);wc(c+116|0)}if((sa(2423616)| +0)!=(g|0))break c;d=oa(d|0)|0;J[699344]=0;e=En(d,J[685886]);l=J[699344];J[699344]=0;g=1;if((l|0)==1)break i;if(!e){g=J[a+132>>2];if(J[a+140>>2]<0)J[a+140>>2]=(g|0)>2?f:b;g=(g|0)<2}b=J[J[a>>2]+64>>2];J[699344]=0;ca(b|0,a|0,d|0,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break w}J[a+68>>2]=k;J[699344]=0;$(5332,j|0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+12>>2];if(!b)break v;f=J[J[b>>2]+48>>2];J[699344]=0;$(f|0,b|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break v}d=Z()|0;break c}d=Z()|0;break c}O:{P:{Q:{b=J[a+8>>2];if(!(b|n)){J[699344]=0;a=ja(5178,c+116|0,2415201,2386059,1335,2414501,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break Q;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;d=Z()|0;Kc(a);break c}if(!b&m){J[699344]=0;a=ja(5178,c+116|0,2415257,2386059,1337,2414501,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break P;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;d=Z()|0;Kc(a);break c}if(b){J[c+ +116>>2]=0;J[c+120>>2]=J[685894];R:{if(s){f=J[b+16>>2];g=J[b+20>>2];d=J[b+12>>2];b=J[b+8>>2];J[699344]=0;J[c+16>>2]=b;J[c+20>>2]=d;t=c,u=AEb(f,g,32),J[t+24>>2]=u;J[c+28>>2]=jc;ga(5350,c+116|0,2415312,c+16|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break R;break e}if(!m)break R;f=J[b+20>>2];g=J[b+12>>2];J[c+32>>2]=J[b+8>>2];J[c+36>>2]=g;J[c+40>>2]=f;J[699344]=0;ga(5350,c+116|0,2415404,c+32|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e}J[699344]=0;b=c+88|0;ca(5291,b|0,c+116|0,2415199);f=J[699344];J[699344]= +0;S:{T:{U:{V:{if((f|0)!=1){J[699344]=0;f=a+52|0;ca(5292,c+96|0,b|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break V;b=J[c+96>>2];W:{if(b){g=J[J[b>>2]+28>>2];J[699344]=0;ca(g|0,c+80|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break W;d=Z()|0;break g}J[c+80>>2]=0}J[699344]=0;aa(5153,f|0,c+80|0)|0;b=J[699344];J[699344]=0;X:{if((b|0)!=1){b=J[c+80>>2];J[c+80>>2]=0;if(!b)break X;J[699344]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;d=J[699344];J[699344]=0;if((d|0)!=1){if(g)break X;J[699344]=0;$(5147,b|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break X}break a}d=Z()|0;zc(c+80|0);break g}b=J[a+52>>2];J[a+56>>2]=J[(b?b+12|0:2743576)>>2];b=c+96|0;wc(b);g=c+88|0;wc(g);d=J[a+8>>2];k=J[d+12>>2];d=J[d+8>>2];e=J[a+68>>2];J[699344]=0;r=+(e|0);O[c+8>>3]=r*9.765625E-4;O[c>>3]=+(P(P(d,k),3)|0)/r;d=c+116|0;ga(5350,d|0,2415508,c|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break U;J[699344]=0;ca(5292,b|0,f|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break T;b=J[c+96>>2];Y:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,g|0,b|0,1);b=J[699344]; +J[699344]=0;if((b|0)!=1)break Y;d=Z()|0;break h}J[c+88>>2]=0}J[699344]=0;aa(5153,f|0,c+88|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+88>>2];J[c+88>>2]=0;if(!b)break S;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break S;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break S}break a}d=Z()|0;zc(c+88|0);break h}d=Z()|0;break d}d=Z()|0;break f}d=Z()|0;break d}d=Z()|0;break d}b=a;a=J[a+52>>2];J[b+56>>2]=J[(a?a+12|0:2743576)>>2];wc(c+96|0);wc(c+116| +0)}a=J[c+104>>2];J[c+104>>2]=0;Z:{if(!a)break Z;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)==1)break O;if(b)break Z;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break O}wc(c+108|0);fc=c+144|0;return}d=Z()|0;break c}d=Z()|0;break c}ea(0)|0;Bc()}B()}d=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break c;break a}wc(c+96|0);break d}wc(c+96|0)}wc(c+88|0);break d}d=Z()|0}wc(c+116|0)}zc(c+104|0)}wc(c+108|0);ba(d|0);B()}ea(0)|0;Bc();B()}function g1a(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;j=J[a+4>>2];if(!j){J[b>>2]=1;return}l=J[a+12>>2];g=J[j+8>>2];c=J[a+8>>2];f=J[a+16>>2];e=J[b>>2];a:{b:{if((e|0)>0){i=c;break b}if(c>>>0>=l>>>0){i=c;break b}m=J[a+20>>2];c:{while(1){d:{e:{f:{g:{if(f>>>0>>0){i=c+1|0;e=K[c|0];h:{i:{j:{k:{h=L[g>>1];switch(h-217|0){case 0:break i;case 23:break j;case 22:break k;default:break h}}l:{m:{if((e-66&255)>>>0>=10){if((e|0)!=64){if((e-33&255)>>>0<31)break l;J[b>>2]=12;I[g>>1]=65534;break c}I[g+8>> +1]=L[g+4>>1];e=J[g+20>>2];break m}e=(e&15)<<2;I[g+8>>1]=L[e+754064>>1]<<7;e=L[e+754066>>1]}J[g+16>>2]=e}I[g>>1]=65534;e=J[b>>2];if((e|0)>0|i>>>0>=l>>>0)break b;i=c+2|0;e=K[c+1|0];h=65534;break h}if((e+95&255)>>>0<78)break g;I[g>>1]=65534;J[b>>2]=12;break c}c=J[a+20>>2];d=J[g+44>>2];if(d){n:{if(c>>>0>f>>>0){I[f>>1]=d;f=f+2|0;d=J[a+24>>2];if(!d)break n;J[a+24>>2]=d+4;J[d>>2]=(J[a+8>>2]^-1)+i;break n}c=J[a+4>>2];h=H[c+65|0];H[c+65|0]=h+1;I[(c+(h<<1)|0)+116>>1]=d;J[b>>2]=15;c=J[a+20>>2]}J[g+44>>2]=0}d= +(e|0)==232?32:8205;o:{if(c>>>0>f>>>0){I[f>>1]=d;f=f+2|0;c=J[a+24>>2];if(!c)break o;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break o}c=J[a+4>>2];h=H[c+65|0];H[c+65|0]=h+1;I[(c+(h<<1)|0)+116>>1]=d;J[b>>2]=15}h=65534;I[g>>1]=65534}p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{c=e&255;switch(c-217|0){case 1:case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 18:case 19:case 20:case 21:break u;case 16:break v;case 7:break w;case 15:break y;case 17:break z;case 0:case 22:case 23:break A; +default:break B}}switch(c-10|0){case 0:case 3:break x;default:break u}}I[g>>1]=c;c=J[j+44>>2];if((c|0)==65535)break e;e=J[g+44>>2];if(e){C:{if(M[a+20>>2]>f>>>0){I[f>>1]=e;f=f+2|0;c=J[a+24>>2];if(!c)break C;J[a+24>>2]=c+4;J[c>>2]=(J[a+8>>2]^-1)+i;break C}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=e;J[b>>2]=15}J[g+44>>2]=0;c=J[j+44>>2]}if(!((c|0)<161|c-2404>>>0<2|c-8204>>>0<2))c=L[g+8>>1]+c|0;D:{if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;c=J[a+24>>2];if(!c)break D;J[a+24>>2]=c+4;J[c>> +2]=(i-J[a+8>>2]|0)-2;J[j+44>>2]=65535;break e}e=J[a+4>>2];d=H[e+65|0];H[e+65|0]=d+1;I[(e+(d<<1)|0)+116>>1]=c;J[b>>2]=15}J[j+44>>2]=65535;break e}d=2405;if((h|0)==234)break q;d=K[g+16|0]&128?2404:65535;c=234;break s}if((h|0)==232){d=8204;c=65534;break s}d=K[g+16|0]?2381:65535;c=232;break s}H[g+25|0]=1;d=L[(c<<1)+754112>>1];break s}c=J[g+16>>2];if((h&255)==164){d=2308;if(c&128)break q}d=c&135?2374:65535;c=224;break s}if((h|0)==232){d=8205;c=65534;break s}E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{k= +L[g+8>>1];if(!((h|0)==192&(k|0)==256)){d=1;switch((h&255)-161|0){case 5:break F;case 59:break G;case 58:break H;case 6:break I;case 9:break J;case 40:break K;case 31:break L;case 30:break M;case 25:break N;case 20:break O;case 19:break P;case 18:break Q;case 0:break R;case 62:break S;case 73:break T;default:break E}}c=J[a+20>>2];e=J[g+44>>2];if(e){U:{if(c>>>0>f>>>0){I[f>>1]=e;f=f+2|0;e=J[a+24>>2];if(!e)break U;J[a+24>>2]=e+4;J[e>>2]=(J[a+8>>2]^-1)+i;break U}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+ +(d<<1)|0)+116>>1]=e;J[b>>2]=15;c=J[a+20>>2]}J[g+44>>2]=0}V:{W:{if(c>>>0>f>>>0){I[f>>1]=2652;e=J[a+24>>2];X:{if(!e){h=0;break X}h=e+4|0;J[a+24>>2]=h;J[e>>2]=(i-J[a+8>>2]|0)-2}e=f+2|0;if(J[b>>2]>0){f=e;break W}Y:{if(c>>>0>e>>>0){I[f+2>>1]=2637;Z:{if(!h){d=0;break Z}d=h+4|0;J[a+24>>2]=d;J[h>>2]=(i-J[a+8>>2]|0)-2}e=f+4|0;if(J[b>>2]>0)break Y;if(c>>>0>e>>>0){I[f+4>>1]=2617;f=f+6|0;if(!d)break V;J[a+24>>2]=d+4;J[d>>2]=(i-J[a+8>>2]|0)-2;break V}c=J[a+4>>2];f=H[c+65|0];H[c+65|0]=f+1;I[(c+(f<<1)|0)+116>>1]= +2617;J[b>>2]=15;f=e;break V}c=J[a+4>>2];f=H[c+65|0];H[c+65|0]=f+1;I[(c+(f<<1)|0)+116>>1]=2637;J[b>>2]=15}f=e;c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=2617;break V}c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=2652;J[b>>2]=15}c=J[a+4>>2];e=c+116|0;d=H[c+65|0];I[e+(d<<1)>>1]=2637;H[c+65|0]=d+2;I[e+(d+1<<24>>24<<1)>>1]=2617}J[j+44>>2]=65535;I[g>>1]=65534;break e}d=2;break F}d=3;break F}d=4;break F}d=5;break F}d=6;break F}d=7;break F}d=8;break F}d=9;break F}d=10;break F}d= +11;break F}d=12;break F}d=13;break F}d=14;break F}d=15}d=L[(d<<2)+754626>>1];if(!(J[g+16>>2]&K[(d&255)+754688|0]))break E;I[g>>1]=65534;J[j+44>>2]=65535;if((k|0)!=256)break r;c=J[g+44>>2];if(c){_:{if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;c=J[a+24>>2];if(!c)break _;J[a+24>>2]=c+4;J[c>>2]=(J[a+8>>2]^-1)+i;break _}e=J[a+4>>2];h=H[e+65|0];H[e+65|0]=h+1;I[(e+(h<<1)|0)+116>>1]=c;J[b>>2]=15}J[g+44>>2]=0}d=d-2404>>>0<2|d-8204>>>0<2?d:L[g+8>>1]+d|0;if(M[a+20>>2]>f>>>0){I[f>>1]=d;f=f+2|0;c=J[a+24>>2];if(!c)break e; +J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break e}c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=d;break f}d=L[(c<<1)+754112>>1];break t}d=L[(c<<1)+754112>>1];if(c>>>0<161)break s}if(J[g+16>>2]&K[(d&127)+754688|0])break s;d=L[g+8>>1]!=768?65535:(e&255)!=208?65535:d}I[g>>1]=c;k=J[j+44>>2];if((k|0)==65535)break r;h=L[g+8>>1];c=J[g+44>>2];$:{aa:{if(!((h|0)!=256|c-2640>>>0<4294967216)){if(!(H[c+752256|0]&1)|(k|0)!=2381|(c|0)!=(d+256|0))break aa;e=(i-J[a+8>>2]|0)-3|0;c=J[a+20>>2];ba:{if(f>>> +0>>0){I[f>>1]=2673;f=f+2|0;d=J[a+24>>2];if(!d)break ba;J[a+24>>2]=d+4;J[d>>2]=e;break ba}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=2673;J[b>>2]=15;c=J[a+20>>2]}d=J[g+44>>2];ca:{if(c>>>0>f>>>0){I[f>>1]=d;f=f+2|0;c=J[a+24>>2];if(!c)break ca;J[a+24>>2]=c+4;J[c>>2]=e;break ca}c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=d;J[b>>2]=15}J[g+44>>2]=0;J[j+44>>2]=65535;break e}if(!c)break $}da:{if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;c=J[a+24>>2];if(!c)break da;J[a+24>>2]= +c+4;J[c>>2]=(J[a+8>>2]^-1)+i;break da}h=J[a+4>>2];k=H[h+65|0];H[h+65|0]=k+1;I[(h+(k<<1)|0)+116>>1]=c;J[b>>2]=15}J[g+44>>2]=0;h=L[g+8>>1]}ea:{fa:{k=(h|0)!=256;if(!(k|(d|0)!=2306)){c=J[j+44>>2];if(c-2384>>>0<4294967216|K[c+752512|0]<2)break fa;c=c+256|0;if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;d=2416;c=J[a+24>>2];if(!c)break ea;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break ea}d=J[a+4>>2];h=H[d+65|0];H[d+65|0]=h+1;I[(d+(h<<1)|0)+116>>1]=c;J[b>>2]=15;d=2416;break ea}c=J[j+44>>2];if((d|0)!=2381|k|(!(H[c+ +752512|0]&1)|c-2384>>>0<4294967216))break fa;J[g+44>>2]=c+256;d=2381;break ea}if(!((c|0)<161|c-2404>>>0<2|c-8204>>>0<2)){c=c+h|0;J[j+44>>2]=c}if(M[a+20>>2]>f>>>0){I[f>>1]=c;f=f+2|0;c=J[a+24>>2];if(!c)break ea;J[a+24>>2]=c+4;J[c>>2]=(i-J[a+8>>2]|0)-2;break ea}h=J[a+4>>2];k=H[h+65|0];H[h+65|0]=k+1;I[(h+(k<<1)|0)+116>>1]=c;J[b>>2]=15}J[j+44>>2]=65535}if((d|0)!=65535)break p;J[b>>2]=10;break c}I[g>>1]=65534}J[j+44>>2]=d;if(K[g+25|0]!=1)break e;H[g+25|0]=0;I[g+8>>1]=L[g+4>>1];J[g+16>>2]=J[g+20>>2];break e}J[b>> +2]=15;l=c;break a}ga:switch(e-184|0){case 0:case 7:break ga;default:break d}h=(e|0)==191?2416:2386;if(!(J[g+16>>2]&K[(h&114)+754688|0]))break d;I[g>>1]=65534;c=J[a+20>>2];e=J[g+44>>2];if(e){ha:{if(c>>>0>f>>>0){I[f>>1]=e;f=f+2|0;e=J[a+24>>2];if(!e)break ha;J[a+24>>2]=e+4;J[e>>2]=(J[a+8>>2]^-1)+i;break ha}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=e;J[b>>2]=15;c=J[a+20>>2]}J[g+44>>2]=0}e=h+L[g+8>>1]|0;if(c>>>0>f>>>0){I[f>>1]=e;f=f+2|0;c=J[a+24>>2];if(!c)break e;J[a+24>>2]=c+4;J[c>> +2]=(i-J[a+8>>2]|0)-2;break e}c=J[a+4>>2];d=H[c+65|0];H[c+65|0]=d+1;I[(c+(d<<1)|0)+116>>1]=e}J[b>>2]=15}e=J[b>>2];if((e|0)>0)break b;c=i;if(l>>>0>c>>>0)continue;break b}break}J[b>>2]=10}H[J[a+4>>2]+37|0]=e;H[J[a+4>>2]+36|0]=1;e=J[b>>2]}if((e|0)>0){l=i;break a}if(!K[a+2|0]){l=i;break a}if((i|0)!=(l|0)){l=i;break a}i=J[a+4>>2];c=L[g>>1];e=c-217|0;ia:{if(!(e>>>0>23|!(1<>1]=65534;break ia}H[i+36|0]=0}i=J[j+44>>2];if((i|0)==65535)break a;if(!((i|0)<161|i-2404>>> +0<2|i-8204>>>0<2))i=L[g+8>>1]+i|0;ja:{if(M[a+20>>2]>f>>>0){I[f>>1]=i;f=f+2|0;b=J[a+24>>2];if(!b)break ja;J[a+24>>2]=b+4;J[b>>2]=(J[a+8>>2]^-1)+l;break ja}c=J[a+4>>2];e=H[c+65|0];H[c+65|0]=e+1;I[(c+(e<<1)|0)+116>>1]=i;J[b>>2]=15}J[j+44>>2]=65535}J[a+8>>2]=l;J[a+16>>2]=f}function GIa(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;a:{j=J[J[b+4>>2]+12>>2];c=fc+-64|0;fc=c;h=uq(c+56|0);b=a;J[a>>2]=123;J[a+4>>2]=0;H[a+11|0]=1;d=J[j+24>>2];J[699344]=0;a=_(4,48)|0;e=J[699344];J[699344]=0;b:{if((e| +0)!=1){J[c+24>>2]=a;J[c+28>>2]=11;J[c+32>>2]=-2147483636;J[a+40>>2]=J[594083];e=J[594082];J[a+32>>2]=J[594081];J[a+36>>2]=e;e=J[594080];J[a+24>>2]=J[594079];J[a+28>>2]=e;e=J[594078];J[a+16>>2]=J[594077];J[a+20>>2]=e;e=J[594076];J[a+8>>2]=J[594075];J[a+12>>2]=e;e=J[594074];J[a>>2]=J[594073];J[a+4>>2]=e;J[a+44>>2]=0;J[699344]=0;a=c+40|0;ca(4961,a|0,d|0,c+24|0);d=J[699344];J[699344]=0;c:{if((d|0)!=1){e=0;J[699344]=0;a=aa(3469,h|0,a|0)|0;d=J[699344];J[699344]=0;d:{if((d|0)==1)break d;e:{f:{if(!a)break f; +J[699344]=0;a=_(3470,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;if(!a)break f;J[699344]=0;d=c+12|0;da(4962,d|0,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;f=K[c+23|0];a=f<<24>>24;g=f;f=(a|0)<0;if(((f?J[c+16>>2]:g)|0)==13){e=!qd(f?J[c+12>>2]:d,2376340,13);a=K[c+23|0]}if(a<<24>>24>=0)break f;uc(J[c+12>>2])}if(H[c+51|0]<0)uc(J[c+40>>2]);if(H[c+35|0]<0)uc(J[c+24>>2]);g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{if(!e)break t;J[c+48>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;while(1){u:{J[699344]=0;a=_(3470, +h|0)|0;d=J[699344];J[699344]=0;v:{w:{if((d|0)!=1){if(!a)break u;J[699344]=0;e=c+24|0;da(4962,e|0,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break w;a=0;f=K[c+35|0];d=f<<24>>24;g=f;f=(d|0)<0;if(((f?J[c+28>>2]:g)|0)==12){a=!qd(f?J[c+24>>2]:e,2376396,12);d=K[c+35|0]}if(d<<24>>24<0)uc(J[c+24>>2]);if(!a)continue;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;d=c+24|0;ca(4963,h|0,2376448,d|0);a=J[699344];J[699344]=0;if((a|0)!=1){f=1;e=K[c+35|0];a=e<<24>>24<0;e=a?J[c+28>>2]:e;if((e|0)<15)break v;d=a?J[c+ +24>>2]:d;g=d+(e<<2)|0;a=d;while(1){a=og(a,99,e-14|0);if(!a)break v;if(qd(a,2377816,15)){a=a+4|0;e=g-a>>2;if((e|0)>=15)continue;break v}break}if((a|0)==(g|0)|(a-d|0)==-4)break v;f=0;J[699344]=0;ca(4963,h|0,2376600,c+40|0);a=J[699344];J[699344]=0;if((a|0)!=1)break v}e=Z()|0;if(H[c+35|0]>=0)break g;uc(J[c+24>>2]);break g}e=Z()|0;break g}e=Z()|0;break g}if(H[c+35|0]<0)uc(J[c+24>>2]);if(f)continue}break}x:{a=K[c+51|0];if(!(a<<24>>24<0?J[c+44>>2]:a))break x;a=J[j+24>>2];d=J[J[a>>2]+32>>2];J[699344]=0;a= +aa(d|0,a|0,c+40|0)|0;d=J[699344];J[699344]=0;y:{if((d|0)!=1){if(!a)break x;J[699344]=0;$(4965,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break y}e=Z()|0;break g}a=J[j+24>>2];J[699344]=0;d=c+24|0;ca(4961,d|0,a|0,c+40|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;e=0;J[699344]=0;a=aa(3469,h|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;z:{if(!a)break z;J[699344]=0;a=_(3470,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;if(!a)break z;J[699344]=0;d=c+12|0;da(4962,d|0,h|0);a=J[699344];J[699344]= +0;if((a|0)==1)break i;f=K[c+23|0];a=f<<24>>24;g=f;f=(a|0)<0;if(((f?J[c+16>>2]:g)|0)==14){e=!qd(f?J[c+12>>2]:d,2377880,14);a=K[c+23|0]}if(a<<24>>24>=0)break z;uc(J[c+12>>2])}if(H[c+35|0]<0)uc(J[c+24>>2]);if(!e)break x;A:{B:{C:{while(1){J[699344]=0;a=_(3470,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break s;if(!a)break x;J[699344]=0;g=c+24|0;da(4970,g|0,h|0);a=J[699344];J[699344]=0;D:{E:{F:{G:{if((a|0)!=1){e=K[c+35|0];d=e<<24>>24;f=(d|0)<0;a=J[c+28>>2];if(((f?a:e)|0)!=8)break F;if(qd(f?J[c+24>>2]:g, +2377940,8))break G;e=5;a=2377976;break E}e=Z()|0;break g}a=J[c+28>>2];e=K[c+35|0];d=e}f=d<<24>>24<0;if(((f?a:e)|0)==10){if(!qd(f?J[c+24>>2]:c+24|0,2378E3,10)){e=7;a=2378044;break E}e=K[c+35|0];d=e;a=J[c+28>>2]}f=d<<24>>24<0;if(((f?a:e)|0)==10){if(!qd(f?J[c+24>>2]:c+24|0,2378076,10)){e=6;a=2378120;break E}e=K[c+35|0];d=e;a=J[c+28>>2]}f=d<<24>>24<0;if(((f?a:e)|0)==15){if(!qd(f?J[c+24>>2]:c+24|0,2378148,15)){e=12;a=2378212;break E}e=K[c+35|0];d=e;a=J[c+28>>2]}f=a;a=d<<24>>24<0;if(((a?f:e)|0)!=16)break D; +if(qd(a?J[c+24>>2]:c+24|0,2378264,16))break D;e=7;a=2378332}J[699344]=0;ga(2227,c+24|0,a|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k}J[699344]=0;aa(3026,b|0,2378364)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;a=K[c+35|0];d=a<<24>>24<0;ga(2960,b|0,(d?J[c+24>>2]:c+24|0)|0,(d?J[c+28>>2]:a)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;aa(3026,b|0,2378372)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;da(4982,c+12|0,h|0);a=J[699344];J[699344]=0;if((a| +0)!=1){if(H[c+35|0]<0)uc(J[c+24>>2]);J[c+32>>2]=J[c+20>>2];a=J[c+16>>2];J[c+24>>2]=J[c+12>>2];J[c+28>>2]=a;J[c+12>>2]=34;J[c+16>>2]=0;J[699344]=0;H[c+23|0]=1;d=_(4,16)|0;a=J[699344];J[699344]=0;if((a|0)==1)break C;J[c>>2]=d;J[c+4>>2]=2;J[c+8>>2]=-2147483644;a=0;J[d+8>>2]=0;J[d>>2]=92;J[d+4>>2]=34;d=K[c+35|0];e=d<<24>>24<0;d=e?J[c+28>>2]:d;g=e?J[c+24>>2]:c+24|0;f=c+12|0;e=1;while(1){H:{if(e){i=(d<<2)+g|0;d=(a<<2)+g|0;a=i-d>>2;if((e|0)>(a|0))break H;k=J[f>>2];while(1){a=(a-e|0)+1|0;if(!a)break H;a= +og(d,k,a);if(!a)break H;if(qd(a,f,e)){d=a+4|0;a=i-d>>2;if((e|0)<=(a|0))continue;break H}break}if((a|0)==(i|0))break H;a=a-g>>2}if((a|0)==-1)break H;J[699344]=0;g=c+24|0;d=K[c+11|0];e=d<<24>>24<0;na(4983,g|0,a|0,1,(e?J[c>>2]:c)|0,(e?J[c+4>>2]:d)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break B;e=K[c+23|0];d=e<<24>>24<0;e=d?J[c+16>>2]:e;f=d?J[c+12>>2]:c+12|0;d=K[c+35|0];i=d<<24>>24<0;g=i?J[c+24>>2]:g;a=a+2|0;d=i?J[c+28>>2]:d;if(a>>>0<=d>>>0)continue}break}if(H[c+11|0]<0)uc(J[c>>2]);if(H[c+23|0]<0)uc(J[c+ +12>>2]);J[699344]=0;a=H[c+35|0];d=(a|0)<0;ga(2960,b|0,(d?J[c+24>>2]:c+24|0)|0,(d?J[c+28>>2]:a&255)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;aa(3026,b|0,2378388)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;if(H[c+35|0]>=0)continue;uc(J[c+24>>2]);continue}break}e=Z()|0;break j}e=Z()|0;break A}e=Z()|0;if(H[c+11|0]>=0)break A;uc(J[c>>2])}if(H[c+23|0]>=0)break j;uc(J[c+12>>2]);break j}if(H[c+51|0]>=0)break t;uc(J[c+40>>2])}J[c+24>>2]=0;J[c+12>>2]=0;d=j+32|0;e=J[d>>2];I:{J:{if(!e)break J; +a=d;while(1){f=J[e+16>>2]<0;a=f?a:e;e=J[(f?e+4|0:e)>>2];if(e)continue;break}if((a|0)==(d|0)|J[a+16>>2]>0)break J;a=J[a+20>>2];J[699344]=0;ca(4984,a|0,c+24|0,c+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break I}J[699344]=0;aa(3026,b|0,2378400)|0;a=J[699344];J[699344]=0;if((a|0)==1)break I;J[699344]=0;a=c+40|0;da(2279,a|0,P(J[c+24>>2],100)|0);d=J[699344];J[699344]=0;if((d|0)==1)break r;J[699344]=0;e=a;a=K[c+51|0];d=a<<24>>24<0;ga(2960,b|0,(d?J[c+40>>2]:e)|0,(d?J[c+44>>2]:a)|0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break q;if(H[c+51|0]<0)uc(J[c+40>>2]);J[699344]=0;aa(3026,b|0,2378452)|0;a=J[699344];J[699344]=0;if((a|0)==1)break I;J[699344]=0;a=c+40|0;da(2279,a|0,P(J[c+12>>2],100)|0);d=J[699344];J[699344]=0;if((d|0)==1)break p;J[699344]=0;e=a;a=K[c+51|0];d=a<<24>>24<0;ga(2960,b|0,(d?J[c+40>>2]:e)|0,(d?J[c+44>>2]:a)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break o;if(H[c+51|0]<0)uc(J[c+40>>2]);J[699344]=0;aa(3026,b|0,2378512)|0;a=J[699344];J[699344]=0;if((a|0)==1)break I;a=J[j+36>>2];J[699344]=0; +d=c+40|0;da(2279,d|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break n;J[699344]=0;e=d;a=K[c+51|0];d=a<<24>>24<0;ga(2960,b|0,(d?J[c+40>>2]:e)|0,(d?J[c+44>>2]:a)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break m;if(H[c+51|0]<0)uc(J[c+40>>2]);J[699344]=0;aa(3026,b|0,2378584)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break l}e=Z()|0;break b}e=Z()|0;break g}e=Z()|0;break b}e=Z()|0;if(H[c+51|0]>=0)break b;uc(J[c+40>>2]);break b}e=Z()|0;break b}e=Z()|0;if(H[c+51|0]>=0)break b;uc(J[c+40>>2]);break b}e=Z()|0;break b}e= +Z()|0;if(H[c+51|0]>=0)break b;uc(J[c+40>>2]);break b}J[h>>2]=769768;a=J[h+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);fc=c- -64|0;break a}e=Z()|0}if(H[c+35|0]>=0)break g;uc(J[c+24>>2]);break g}e=Z()|0;if(H[c+35|0]>=0)break g;uc(J[c+24>>2]);break g}e=Z()|0}if(H[c+51|0]>=0)break b;uc(J[c+40>>2]);break b}}e=Z()|0;if(H[c+51|0]>=0)break c;uc(J[c+40>>2]);break c}e=Z()|0}if(H[c+35|0]>=0)break b;uc(J[c+24>>2]);break b}e=Z()|0}if(H[b+11|0]<0)uc(J[b>>2]);J[h>>2]=769768;a=J[h+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);ba(e|0); +B()}}function n1a(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;n=fc-16|0;fc=n;m=J[a+16>>2];o=J[a+20>>2]-m|0;r=J[a+4>>2];f=J[r+8>>2];i=K[f+73|0];k=J[((i<<2)+f|0)+32>>2];q=J[a+12>>2];c=J[a+8>>2];d=J[r+56>>2];p=K[f+72|0];a:{b:{c:{while(1){j=(d|0)!=0&(o|0)>0;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(p){if(j)break o;e=0;break n}if(j)break l;if(c>>>0>=q>>>0){p=0;break a}p=0;h=15;if((o|0)<=0)break b;j=c+2|0;d=L[c>>1];e=d-13312|0;if(e>>>0>41983)break m;l=2;g=1;if(o>>> +0<2)break d;c=d<<8|d>>>8;H[m|0]=c;H[m+1|0]=c>>>8;m=m+2|0;if(j>>>0>=q>>>0){c=j;d=0;break a}while(1){if((o|0)<3){c=j;d=0;break b}o=o-2|0;c=j+2|0;d=L[j>>1];e=d-13312|0;if(e>>>0>41983){j=c;break m}if(o>>>0<2)break c;j=d<<8|d>>>8;H[m|0]=j;H[m+1|0]=j>>>8;m=m+2|0;j=c;if(c>>>0>>0)continue;break}d=0;break a}e=1}while(1){p:{q:{r:{s:{t:{if(!e){if(c>>>0>=q>>>0)break a;if((o|0)<=0){h=15;break b}j=c+2|0;u:{v:{d=L[c>>1];if(d-32>>>0>95){if(d>>>0>31)break u;if(!(1<>>0<128)break t;if((d&63488)!=55296)break q;if(d&1024)break i;c=j;e=1;continue}if(c>>>0>=q>>>0)break a;h=L[c>>1];if((h&64512)!=56320){h=12;break b}j=c+2|0;c=h+(d<<10)|0;l=c-56613888|0;e=l-k|0;if(e>>>0>=128)break r}H[m|0]=e|128}c=j;m=m+1|0;o=o-1|0;d=0;break p}e=0;w:{g=J[f+32>>2];x:{if(l-g>>>0<128)break x;e=1;g=J[f+36>>2];if(l-g>>>0<128)break x;e=2;g=J[f+40>>2];if(l-g>>>0<128)break x;e=3;g=J[f+44>>2];if(l-g>>>0<128)break x;e=4;g=J[f+48>>2];if(l-g>>>0<128)break x;e=5;g=J[f+52>>2];if(l-g>>> +0<128)break x;e=6;g=J[f+56>>2];if(l-g>>>0<128)break x;e=7;g=J[f+60>>2];if(l-g>>>0>127)break w}i=H[f+75|0];d=i;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(e|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((i|0)!=(c|0))while(1){i=d;d=f+76|0;H[i+d|0]=K[c+d|0];d=c;c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=e;d=l-g|e<<8|4224;i=e;k=g;l=2;break e}y:{z:{if(c-56614080>>>0<=127){k=192;J[n+12>>2]=192;e=249;break z}if(c-56614480>>>0<128){k=592;J[n+12>>2]=592;e=250;break z}if(c- +56614768>>>0<128){k=880;J[n+12>>2]=880;e=251;break z}if(c-56615216>>>0<128){k=1328;J[n+12>>2]=1328;e=252;break z}if(c-56626240>>>0<128){k=12352;J[n+12>>2]=12352;e=253;break z}if(c-56626336>>>0<128){k=12448;J[n+12>>2]=12448;e=254;break z}if(c-56679264>>>0<128){k=65376;J[n+12>>2]=65376;e=255;break z}if(l>>>0<128)break y;if(!(!(c-56732672>>>0<12288|l>>>0<13312)&(l&-16384)!=65536)){k=l&2147483520;J[n+12>>2]=k;e=l>>>7|0;break z}if((l|0)==65279|c-56671232>>>0>8175)break y;k=l&2147483520;J[n+12>>2]=k;e= +c-56657920>>>7|0}c=H[f+75|0];i=K[(c+f|0)+76|0];c=c+1|0;c=(c&255)!=8?c:0;H[f+75|0]=c;J[((i<<2)+f|0)+32>>2]=k;g=c<<24>>24;d=g;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(i|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((g|0)!=(c|0))while(1){g=d;d=f+76|0;H[g+d|0]=K[c+d|0];d=c;c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=i;d=l-k|((e<<8)-131072|i<<21)|184549504;l=4;break e}H[m|0]=15;o=o-1|0;m=m+1|0;d=h|d<<16;break k}if(d>>>0<=159){d=d&127|512;break h}if((d|0)==65279|d>>> +0>=65520)break f;h=0;A:{B:{C:{if(d-J[f+32>>2]>>>0<128)break C;h=1;if(d-J[f+36>>2]>>>0<128)break C;h=2;if(d-J[f+40>>2]>>>0<128)break C;h=3;if(d-J[f+44>>2]>>>0<128)break C;h=4;if(d-J[f+48>>2]>>>0<128)break C;h=5;if(d-J[f+52>>2]>>>0<128)break C;h=6;if(d-J[f+56>>2]>>>0<128)break C;h=7;if(d-J[f+60>>2]>>>0>127)break B}g=J[((h<<2)+f|0)+32>>2];D:{if(j>>>0>=q>>>0)break D;c=L[j>>1];if(c>>>0>g+127>>>0)break A;if(c>>>0>=g>>>0)break D;if(c>>>0>127)break A;if(c>>>0>31)break D;if(!(1<=0){c=c&255;d=d-J[(c<<2)+753488>>2]|(c<<8)+256;l=2;break e}e=YC(d,n+12|0);if((e|0)>=0){c=H[f+75|0];i=H[(c+f|0)+76|0];c=c+1|0;H[f+75|0]=(c&255)!=8?c:0;c=i&255;k=J[n+12>>2];J[((c<<2)+f|0)+32>>2]=k;XC(f,i);d=d-k|((c<<16)+ +1572864|e<<8)|128;l=3;break e}if(j>>>0>>0&L[j>>1]-13312>>>0>41983|d-13312>>>0>41983)break f;d=d|983040;break g}d=(h<<8)+384|d-g;break h}e=0;continue}}if(e>>>0>=48896){l=2;if(!(j>>>0>=q>>>0|L[j>>1]-13312>>>0>=41984))break e;if(!(!(d-48>>>0<10|d-97>>>0<26)&d-65>>>0>25)){d=((i&255)<<8)+57344|d;p=1;l=2;break e}h=0;E:{g=J[f+32>>2];F:{if(d-g>>>0<128)break F;h=1;g=J[f+36>>2];if(d-g>>>0<128)break F;h=2;g=J[f+40>>2];if(d-g>>>0<128)break F;h=3;g=J[f+44>>2];if(d-g>>>0<128)break F;h=4;g=J[f+48>>2];if(d-g>>> +0<128)break F;h=5;g=J[f+52>>2];if(d-g>>>0<128)break F;h=6;g=J[f+56>>2];if(d-g>>>0<128)break F;h=7;g=J[f+60>>2];if(d-g>>>0>127)break E}i=H[f+75|0];c=i;while(1){c=(c|0)<=0?7:c-1|0;if(K[(f+c|0)+76|0]!=(h|0))continue;break}e=c+1|0;e=(e|0)!=8?e:0;if((i|0)!=(e|0))while(1){i=c;c=f+76|0;H[i+c|0]=K[c+e|0];c=e;e=c+1|0;e=(e|0)!=8?e:0;if((e|0)!=H[f+75|0])continue;break}H[(c+f|0)+76|0]=h;d=d-g|h<<8|57472;p=1;i=h;k=g;l=2;break e}e=YC(d,n+12|0);if((e|0)<0)break h;p=1;c=H[f+75|0];i=H[(c+f|0)+76|0];c=c+1|0;H[f+75| +0]=(c&255)!=8?c:0;c=i&255;k=J[n+12>>2];J[((c<<2)+f|0)+32>>2]=k;XC(f,i);d=d-k|((c<<16)+15204352|e<<8)|128;l=3;break e}if(d>>>0>57343)break j;if(d&1024)break i;c=j}if(c>>>0>=q>>>0){p=0;break a}g=L[c>>1];if((g&64512)!=56320){p=0;h=12;break b}j=c+2|0;e=0;G:{c=g+(d<<10)|0;h=c-56613888|0;H:{if(h-J[f+32>>2]>>>0<128)break H;e=1;if(h-J[f+36>>2]>>>0<128)break H;e=2;if(h-J[f+40>>2]>>>0<128)break H;e=3;if(h-J[f+44>>2]>>>0<128)break H;e=4;if(h-J[f+48>>2]>>>0<128)break H;e=5;if(h-J[f+52>>2]>>>0<128)break H;e=6; +if(h-J[f+56>>2]>>>0<128)break H;e=7;if(h-J[f+60>>2]>>>0>127)break G}if(j>>>0>>0&L[j>>1]-13312>>>0<41984)break G;k=J[((e<<2)+f|0)+32>>2];i=H[f+75|0];d=i;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(e|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((i|0)!=(c|0))while(1){i=d;d=f+76|0;H[i+d|0]=K[c+d|0];d=c;c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=e;d=h-k|e<<8|57472;p=1;i=e;l=2;break e}I:{if(L[j>>1]!=(d&65535)|j>>>0>=q>>>0)break I;J:{if(c-56614080>>>0<=127){k=192;J[n+ +12>>2]=192;e=249;break J}if(c-56614480>>>0<128){k=592;J[n+12>>2]=592;e=250;break J}if(c-56614768>>>0<128){k=880;J[n+12>>2]=880;e=251;break J}if(c-56615216>>>0<128){k=1328;J[n+12>>2]=1328;e=252;break J}if(c-56626240>>>0<128){k=12352;J[n+12>>2]=12352;e=253;break J}if(c-56626336>>>0<128){k=12448;J[n+12>>2]=12448;e=254;break J}if(c-56679264>>>0<128){k=65376;J[n+12>>2]=65376;e=255;break J}if(h>>>0<128)break I;if(!(!(c-56732672>>>0<12288|h>>>0<13312)&(h&-16384)!=65536)){k=h&2147483520;J[n+12>>2]=k;e=h>>> +7|0;break J}if((h|0)==65279|c-56671232>>>0>8175)break I;k=h&2147483520;J[n+12>>2]=k;e=c-56657920>>>7|0}c=H[f+75|0];i=K[(c+f|0)+76|0];c=c+1|0;c=(c&255)!=8?c:0;H[f+75|0]=c;J[((i<<2)+f|0)+32>>2]=k;g=c<<24>>24;d=g;while(1){d=(d|0)<=0?7:d-1|0;if(K[(f+d|0)+76|0]!=(i|0))continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((g|0)!=(c|0))while(1){g=d;d=f+76|0;H[g+d|0]=K[c+d|0];d=c;c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[f+75|0])continue;break}H[(d+f|0)+76|0]=i;d=h-k|((e<<8)+268304384|i<<21)|-251658112;p=1;l=4;break e}d=g|d<< +16}p=0;l=4;break e}d=d|15728640;break g}h=12;c=j;break b}l=2;break e}p=0;l=3;break e}d=d|917504;l=3}if((l|0)>(o|0))g=o;else{K:switch(l-2|0){case 2:H[m|0]=d>>>24;m=m+1|0;case 1:H[m|0]=d>>>16;m=m+1|0;case 0:c=d<<8|(d&65280)>>>8;H[m|0]=c;H[m+1|0]=c>>>8;m=m+2|0;break;default:break K}o=o-l|0;d=0;c=j;continue}}break}c=j}e=r+76|0;L:{M:{N:{O:{P:{j=l-g|0;switch(j-1|0){case 0:break M;case 1:break N;case 2:break O;case 3:break P;default:break L}}H[r+76|0]=d>>>24;e=r+77|0}H[e|0]=d>>>16;e=e+1|0}H[e|0]=d>>>8;e= +e+1|0}H[e|0]=d}H[r+63|0]=j;j=d>>>(j<<3)|0;d=0;h=15;Q:switch(g-1|0){case 2:H[m|0]=j>>>16;m=m+1|0;case 1:H[m|0]=j>>>8;m=m+1|0;break;case 0:break Q;default:break b}H[m|0]=j;m=m+1|0}J[b>>2]=h}H[f+73|0]=i;H[f+72|0]=p;J[r+56>>2]=d;J[a+16>>2]=m;J[a+8>>2]=c;fc=n+16|0}function bqb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;f=fc-6752|0;fc=f;c=J[J[a+4>>2]>>2];l=f- -64|0;Ac(l|4,0,2756);J[f+16>>2]=0;J[f+20>>2]=0;J[f+24>> +2]=0;J[f+28>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+56>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+64>>2]=c;J[f+8>>2]=l;k=J[b+4>>2];l=J[k+84>>2];h=J[l+156>>2];r=J[h>>2];m=J[k+88>>2];i=J[m+40>>2];g=J[i+12>>2];a:{b:{if(!g){c=e>>>16&15;break b}b=J[i+4>>2];c=e>>>16&15;if((b|0)==(c|0))break a}J[i+4>>2]=c;J[i+32>>2]=J[m+36>>2];b=J[m+32>>2];J[i+24>>2]=J[m+28>>2];J[i+28>>2]=b;b=J[m+24>>2];J[i+16>>2]=J[m+20>>2];J[i+20>>2]=b;b=J[m+16>>2];J[i+8>>2]= +J[m+12>>2];J[i+12>>2]=b;g=J[i+12>>2];b=c}J[f+6736>>2]=0;J[f+6728>>2]=g;J[f+6724>>2]=k;c=J[i+16>>2];J[f+6748>>2]=0;J[f+6744>>2]=b;J[f+6740>>2]=0;J[f+6732>>2]=c;J[f>>2]=k;b=J[k+116>>2];J[f+4>>2]=b;c:{if(!b){g=nE(k,f|4,a);if(g)break c;b=J[f+4>>2];J[k+116>>2]=b;J[k+120>>2]=1643}J[f+6704>>2]=0;g=6;if(M[b+4>>2]<=d>>>0)break c;j=d<<1;g=L[j+J[b+8>>2]>>1]&16383;c=((g<<2)+b|0)+16|0;i=J[c>>2];d:{if(i)break d;e:{f:{while(1){m=J[J[b>>2]+100>>2];n=J[(g<<2)+247312>>2];o=J[(J[n+4>>2]<<2)+247024>>2];i=he(m,J[o+4>> +2],f+6704|0);g=J[f+6704>>2];if(g)break c;J[i+36>>2]=b;J[i>>2]=n;g=J[o+8>>2];if(!g)break f;g=kc[g|0](i,J[b>>2])|0;J[f+6704>>2]=g;if(!g)break f;c=J[o+16>>2];if(c)kc[c|0](i);if(i)kc[J[m+8>>2]](m,i);g=J[f+6704>>2];if((g|0)!=-1)break e;g=L[j+J[b+8>>2]>>1]&16383;c=((g<<2)+b|0)+16|0;if(!J[c>>2])continue;break}g=-1;break c}J[c>>2]=i;break d}if(g)break c;i=0}b=J[J[i>>2]+4>>2];J[f+12>>2]=i;u=J[(b<<2)+247024>>2];b=J[u+12>>2];g:{if(b){kc[b|0](i,f+6724|0);break g}b=J[f+6728>>2];J[i+4>>2]=J[f+6724>>2];J[i+8>>2]= +b;J[i+28>>2]=J[f+6748>>2];b=f+6740|0;c=J[b+4>>2];J[i+20>>2]=J[b>>2];J[i+24>>2]=c;b=f+6732|0;c=J[b+4>>2];J[i+12>>2]=J[b>>2];J[i+16>>2]=c}b=J[u+24>>2];if(b){g=kc[b|0](f- -64|0,i)|0;if(g)break c}g=lp(k,d,e&-10246|10241);if(g)break c;h:{if(J[f+6744>>2]!=1)break h;b=H[J[k+128>>2]+56|0];if(K[a+21|0]|(b|0)>=0?b:0)break h;a=fc-32|0;fc=a;n=J[k+84>>2];c=J[J[k+88>>2]+40>>2];b=J[f+4>>2];J[a+28>>2]=0;J[a+24>>2]=0;g=L[b+364>>1];m=L[c+8>>1];o=L[k+68>>1]<<16;j=Cd(65536E3,o);J[a+16>>2]=J[63007];e=J[63006];J[a+8>> +2]=J[63005];J[a+12>>2]=e;i:{if(!L[k+68>>1])break i;e=J[J[(J[J[i>>2]+4>>2]<<2)+247024>>2]+20>>2];if(!e)break i;kc[e|0](i,a+24|0,a+28|0);e=J[a+28>>2];j:{k:{l:{if(((e|0)==J[b+368>>2]|(e|0)<=0)&(g|0)==(m|0))break l;e=Cd(Wc(K8(J[J[f+4>>2]+388>>2],L[k+68>>1],L[J[k+88>>2]+12>>1],e)<<16,J[c+12>>2]),j);J[b+368>>2]=J[a+28>>2];p=L[c+8>>1];J[b+376>>2]=e+32768>>16;I[b+364>>1]=p;if((g|0)==(m|0))break l;e=J[a+24>>2];break k}e=J[a+24>>2];if((e|0)<=0|J[b+372>>2]==(e|0))break j}e=K8(J[J[f+4>>2]+388>>2],L[k+68>>1], +L[J[k+88>>2]+12>>1],e)<<16;g=Cd(Wc(e,J[c+16>>2]),j);J[b+372>>2]=J[a+24>>2];c=L[c+8>>1];J[b+380>>2]=g+32768>>16;I[b+364>>1]=c;z=b,A=Cd((o-e|0)-524288|0,o),J[z+384>>2]=A}c=n+108|0;vN(c,J[b+376>>2],J[b+380>>2]);J[a+20>>2]=J[b+384>>2];kp(c,a+8|0)}fc=a+32|0}a=K[h+8|0];H[f+16|0]=a;m:{if(!a)break m;c=J[h+24>>2];a=J[h+20>>2];J[f+28>>2]=a;J[f+32>>2]=c;e=J[h+16>>2];b=J[h+12>>2];J[f+20>>2]=b;J[f+24>>2]=e;g=J[h+28>>2];k=J[h+32>>2];h=f+6712|0;J[h>>2]=a;J[h+4>>2]=c;J[f+6704>>2]=b;J[f+6708>>2]=e;J[f+36>>2]=g;J[f+ +40>>2]=k;e=6;k=f+6704|0;n:{if(!k)break n;b=J[k>>2];a=b>>31;p=J[k+12>>2];c=p>>31;m=(a^b)-a|0;g=(c^p)-c|0;o:{if(m+(g>>>8|0)>>>0<=8190){a=P(g,m)+32768>>>16|0;break o}a=m&65535;a=P(a,g>>>16|0)+P(g,m>>>16|0)+(P(a,g&65535)+32768>>>16)|0}v=b>>31|1;x=0-v|0;o=(((p|0)<0?x:v)|0)<0?0-a|0:a;b=J[k+4>>2];a=b>>31;s=J[k+8>>2];c=s>>31;h=(c^s)-c|0;c=(a^b)-a|0;p:{if((h>>>8|0)+c>>>0<=8190){a=P(c,h)+32768>>>16|0;break p}a=c&65535;a=P(a,h>>>16|0)+P(h,c>>>16|0)+(P(a,h&65535)+32768>>>16)|0}w=b>>31|1;y=0-w|0;a=(((s|0)<0?y: +w)|0)<0?0-a|0:a;if((o|0)==(a|0))break n;o=o-a|0;a=o>>31;a=(a^o)-a|0;t=a>>>17^65535;q:{if(c>>>0<=t>>>0){b=((c<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break q}b=2147483647;e=a>>>1|0;q=e+(c<<16)|0;c=(c>>>16|0)+(e>>>0>q>>>0)|0;if(c>>>0>=a>>>0)break q;j=S(c);e=32-j|0;c=q>>>e|c<>>0)/(a>>>0)|0;n=c-P(a,b)|0;c=q<>>31;e=n>>>0>=a>>>0;n=n-(e?a:0)|0;b=e|b<<1;e=31-j|0;c=c<<1}if((j|0)==31)break q;while(1){n=n<<1|c>>>31;j=n>>>0>=a>>>0;n=c>>>30&1|n-(j?a:0)<<1;q=n>>>0>=a>>>0;n=n-(q?a:0)|0;b=b<<2| +j<<1|q;c=c<<2;e=e-2|0;if(e)continue;break}}J[k+4>>2]=(((o|0)<0?y:w)|0)<0?b:0-b|0;r:{if(h>>>0<=t>>>0){b=((h<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break r}b=2147483647;e=a>>>1|0;c=e+(h<<16)|0;j=(h>>>16|0)+(c>>>0>>0)|0;if(j>>>0>=a>>>0)break r;h=S(j);e=32-h|0;j=c>>>e|j<>>0)/(a>>>0)|0;j=j-P(a,b)|0;c=c<>>31;e=j>>>0>=a>>>0;j=j-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break r;while(1){j=j<<1|c>>>31;h=j>>>0>=a>>>0;j=c>>>30&1|j-(h?a:0)<<1;n=j>>>0>=a>>>0;j=j-(n?a:0)|0;b=n|(b<<2| +h<<1);c=c<<2;e=e-2|0;if(e)continue;break}}c=b;e=0-b|0;b=s>>31|1;J[k+8>>2]=(((o|0)<0?0-b|0:b)|0)<0?c:e;s:{if(g>>>0<=t>>>0){b=((g<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break s}b=2147483647;e=a>>>1|0;c=e+(g<<16)|0;g=(g>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0)break s;h=S(g);e=32-h|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-P(a,b)|0;c=c<>>31;e=g>>>0>=a>>>0;g=g-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break s;while(1){g=g<<1|c>>>31;h=g>>>0>=a>>>0;g=c>>>30&1|g-(h?a:0)<<1;j=g>>>0>=a>>>0;g= +g-(j?a:0)|0;b=j|(b<<2|h<<1);c=c<<2;e=e-2|0;if(e)continue;break}}e=0-b|0;c=b;b=p>>31|1;J[k>>2]=(((o|0)<0?0-b|0:b)|0)<0?e:c;t:{if(m>>>0<=t>>>0){b=((m<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break t}b=2147483647;e=a>>>1|0;c=e+(m<<16)|0;g=(m>>>16|0)+(c>>>0>>0)|0;if(g>>>0>=a>>>0)break t;h=S(g);e=32-h|0;g=c>>>e|g<>>0)/(a>>>0)|0;g=g-P(a,b)|0;c=c<>>31;e=g>>>0>=a>>>0;g=g-(e?a:0)|0;b=e|b<<1;e=31-h|0;c=c<<1}if((h|0)==31)break t;while(1){g=g<<1|c>>>31;h=g>>>0>=a>>>0;g=c>>>30&1|g-(h?a:0)<< +1;m=g>>>0>=a>>>0;g=g-(m?a:0)|0;b=m|(b<<2|h<<1);c=c<<2;e=e-2|0;if(e)continue;break}}e=0;J[k+12>>2]=(((o|0)<0?x:v)|0)<0?0-b|0:b}if(e)break m;fE(f+36|0,k)}c=7;u:{if(J[l+72>>2]!=1869968492)break u;if(K[f+16|0])Xh(l+108|0,J[f+36>>2],J[f+40>>2]);J[f+48>>2]=J[f+80>>2];J[f+44>>2]=J[f+72>>2];a=Wc(J[l+40>>2],J[f+68>>2]);J[f+56>>2]=J[f+80>>2];J[f+52>>2]=a+J[f+72>>2];c=0;if(!L[l+110>>1])break u;a=J[u+28>>2];if(a){g=kc[a|0](d,f- -64|0,r+20|0,i)|0;if(g)break c}v:{w:{if(J[f+6744>>2]!=1){a=J[f+120>>2];if((a|0)<= +1){b=J[f+52>>2];break w}b=J[f+52>>2];if(K[f+2804|0]&4)break w;e=P(a,44);a=J[f+128>>2];g=(e+a|0)-44|0;e=J[g+8>>2];k=J[g+4>>2];h=J[a+8>>2];g=J[a+4>>2];a=h-g|0;m=(g|0)<24?a-8|0:a;a=m+32&-64;J[f+44>>2]=a;k=b-k|0;b=k+e|0;o=(k|0)<24?b+8|0:b;b=o+32&-64;J[f+52>>2]=b;if(!((a|0)<(h|0)|(g|0)<=0)){a=a+-64|0;J[f+44>>2]=a}if(!((k|0)<=0|(b|0)>(e|0))){b=b- -64|0;J[f+52>>2]=b}J[l+144>>2]=a-m;a=b-o|0;break v}a=J[f+52>>2];b=a+32&-64;J[f+52>>2]=b;e=J[f+44>>2];g=e+32&-64;J[f+44>>2]=g;J[l+144>>2]=g-e;a=b-a|0;break v}a= +(J[f+2820>>2]+b|0)+32&-64;J[f+52>>2]=a;e=J[f+44>>2];g=(e+J[f+2816>>2]|0)+32&-64;J[f+44>>2]=g;J[l+144>>2]=g-e;a=a-b|0}J[l+148>>2]=a}a=J[l+36>>2];b=J[l+48>>2];z=f,A=Wc(J[l+44>>2]-J[l+32>>2]|0,J[i+8>>2]),J[z+6696>>2]=A;z=f,A=Wc(b-a|0,J[i+12>>2]),J[z+6700>>2]=A;if(K[f+16|0]){a=f+20|0;kp(r+20|0,a);fE(f+6696|0,a)}a=J[f+44>>2];if(a)Xh(r+20|0,0-a|0,0);Hq(r+20|0,f+6704|0);a=J[f+6704>>2]&-64;J[f+6704>>2]=a;b=J[f+6716>>2]+63&-64;J[f+6716>>2]=b;e=J[f+6712>>2]+63&-64;J[f+6712>>2]=e;g=J[f+6708>>2]&-64;J[f+6708>> +2]=g;J[l+36>>2]=b;J[l+32>>2]=a;J[l+28>>2]=b-g;J[l+24>>2]=e-a;J[l+44>>2]=a+J[f+6696>>2]&-64;J[l+48>>2]=b+J[f+6700>>2]&-64;x:{y:{if(J[f+6744>>2]==1)break y;if(!(K[J[l+4>>2]+8|0]&4)){a=J[f+4>>2];if(!K[i+32|0]|(M[a+4>>2]<=d>>>0|I[J[a+8>>2]+(d<<1)>>1]>=0))break y}a=Wc(J[l+40>>2],J[i+8>>2]);J[l+144>>2]=0;J[l+148>>2]=0;J[l+40>>2]=a;break x}if(!J[l+40>>2])break x;J[l+40>>2]=J[f+52>>2]-J[f+44>>2]}a=Wc(J[l+52>>2],J[i+12>>2]);J[l+72>>2]=1869968492;J[l+52>>2]=a+32&-64;J[l+40>>2]=J[l+40>>2]+32&-64;g=c}J[f+8>> +2]=0;J[f>>2]=0;J[f+4>>2]=0;KN(f- -64|0);fc=f+6752|0;return g|0}function gub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;o=fc-16|0;fc=o;J[o+12>>2]=0;a:{if(!(K[a+289|0]|K[a+288|0])){b=1029;Jc(a,1029,0,0);break a}if(K[a+290|0]){b=1029;Jc(a,1029,0,0);break a}if(K[a+341|0]!=8){b=1029;Jc(a,1029,0,0);break a}if(!c){b=1028;Jc(a,1028,0,0);break a}H[a+291|0]=1;b:{if(!K[a+2539|0]){f=J[a+1012>>2];if(f){f=kc[f|0](a)|0;J[a+1012>>2]=0;if(f)break b}i=Dc(40);J[i>> +2]=0;f=J[a+2468>>2];J[699344]=0;g=Bq(f);f=J[699344];J[699344]=0;c:{d:{if((f|0)==1)break d;h=4;j=-1;e:{f:{if(!f)break f;m=J[699345];if(!m)break f;j=Pc(J[f>>2],i,4);if(!j)break e;gc=m}f=gc;if((j|0)!=1){J[J[a+2464>>2]>>2]=g;f=J[a+2468>>2];J[f+8>>2]=1085;J[f>>2]=1086;g=a+2464|0;i=Hf(a+2568|0,1,i,4);h=gc;f=0}while(1){if(f){J[699344]=0;ha(1084,a|0,6,f|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;j=-1;g:{if(!f)break g;m=J[699345];if(!m)break g;j=Pc(J[f>>2],i,h);if(!j)break e;gc=m}f=gc;if((j|0)==1)continue; +uc(i);f=6;break c}f=J[g>>2];J[699344]=0;ca(71,f|0,80,488);f=J[699344];J[699344]=0;if((f|0)==1)break d;j=-1;h:{if(!f)break h;m=J[699345];if(!m)break h;j=Pc(J[f>>2],i,h);if(!j)break e;gc=m}f=gc;if((j|0)==1)continue;break}H[a+2539|0]=1;f=J[a+2472>>2];J[J[g>>2]+24>>2]=f;J[f+24>>2]=1087;J[f+16>>2]=1095;J[f+12>>2]=1089;J[f+8>>2]=1090;J[f+20>>2]=63;J[f>>2]=J[a+2504>>2];J[f+4>>2]=J[a+2508>>2];uc(i);f=0;break c}uc(i);nf(f,m);B()}a=Z()|0;uc(i);ba(a|0);B()}if(f)break b}g=0;p=fc-16|0;fc=p;f=Dc(40);J[f>>2]=0; +k=Hf(a+2568|0,1,f,4);l=gc;i:{j:{k:{l:{m:while(1){if(g){J[699344]=0;ha(1084,a|0,6,g|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;n:{if(!g)break n;f=J[699345];if(!f)break n;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue;i=6;break l}j=c;m=d;i=J[a+2512>>2];if(i){J[a+2504>>2]=J[a+2496>>2];f=i-j|0;J[a+2512>>2]=f>>>0<=i>>>0?f:0;m=(i>>>0>>0?i:0)+m|0;f=j-i|0;j=f>>>0<=j>>>0?f:0}if(j)while(1){h=J[a+2500>>2];g=J[a+2508>>2];f=J[a+2496>>2];i=J[a+2504>>2];o:{if(f>>>0>=i>>>0){f=i;break o}if(((i+ +j|0)-f|0)+g>>>0<=h>>>0){f=i;break o}if(g){xc(f,i,g);h=J[a+2500>>2];f=J[a+2496>>2];g=J[a+2508>>2]}else g=0;J[a+2504>>2]=f}p:{if(g+j>>>0<=h>>>0){xc(g+f|0,m,j);f=J[a+2508>>2]+j|0;J[a+2508>>2]=f;j=0;break p}if((g|0)==(h|0)){J[699344]=0;ha(1084,a|0,13,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;q:{if(!g)break q;f=J[699345];if(!f)break q;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;i=13;break l}i=h-g|0;xc(g+f|0,m,i);f=i+J[a+2508>>2]|0;J[a+2508>>2]=f;m=i+m|0;j=j-i|0}n=J[a+ +2504>>2];g=J[a+2464>>2];i=J[g+24>>2];J[i+4>>2]=f;J[i>>2]=n;r:{if(!K[a+2540|0]){J[699344]=0;i=aa(72,g|0,1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;s:{if(!g)break s;f=J[699345];if(!f)break s;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;if(i){H[a+2540|0]=1;f=J[a+2464>>2];if(!(J[f+28>>2]==J[a+316>>2]&J[f+32>>2]==J[a+320>>2])){J[699344]=0;ha(1084,a|0,1056,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;t:{if(!g)break t;f=J[699345];if(!f)break t;h=Pc(J[g>>2],k,l); +if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;i=1056;break l}if(J[f+40>>2]!=1){J[699344]=0;ha(1084,a|0,1056,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;u:{if(!g)break u;f=J[699345];if(!f)break u;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;i=1056;break l}J[699344]=0;n=_(1091,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;v:{if(!g)break v;f=J[699345];if(!f)break v;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;H[a+2543|0]=n;if(n&255){J[699344]= +0;ha(1084,a|0,1056,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;w:{if(!g)break w;f=J[699345];if(!f)break w;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;i=1056;break l}i=J[a+2464>>2];f=J[i+28>>2];i=J[i+40>>2]==3?P(f,3):f;J[a+2528>>2]=i;f=J[a+152>>2];J[699344]=0;n=_(f|0,i|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;i=-1;x:{if(!g)break x;f=J[699345];if(!f)break x;i=Pc(J[g>>2],k,l);if(!i)break k;gc=f}g=gc;if((i|0)==1)continue m;J[a+2524>>2]=n;if(!n){J[699344]=0;ha(1084, +a|0,1,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;y:{if(!g)break y;f=J[699345];if(!f)break y;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;i=1;break l}J[a+2556>>2]=0}g=J[a+2464>>2];f=J[g+24>>2];J[a+2504>>2]=J[f>>2];J[a+2508>>2]=J[f+4>>2];if(!K[a+2540|0])break r}if(!K[a+2541|0]){if(K[a+2543|0])J[g+64>>2]=1;J[699344]=0;i=_(77,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;z:{if(!g)break z;f=J[699345];if(!f)break z;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h| +0)==1)continue m;if((i|0)==1)H[a+2541|0]=1;g=J[a+2464>>2];f=J[g+24>>2];J[a+2504>>2]=J[f>>2];J[a+2508>>2]=J[f+4>>2];if(!K[a+2540|0]|!K[a+2541|0])break r}J[699344]=0;i=_(1092,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;A:{if(!g)break A;f=J[699345];if(!f)break A;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;B:{if(i){f=J[a+2464>>2];if(M[f+140>>2]>=M[f+116>>2])break B}while(1){J[p+12>>2]=J[a+2524>>2];g=J[a+2464>>2];if(!(!K[a+2543|0]|(M[g+140>>2]>2]?K[a+2542|0]:0))){H[a+ +2542|0]=1;f=J[g+144>>2];J[699344]=0;aa(1093,g|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;C:{if(!g)break C;f=J[699345];if(!f)break C;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;J[a+2552>>2]=0;g=J[a+2464>>2]}D:{while(1){J[699344]=0;n=ga(86,g|0,p+12|0,1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;E:{if(!g)break E;f=J[699345];if(!f)break E;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;g=J[a+2464>>2];f=J[g+24>>2];J[a+2504>>2]=J[f>>2];J[a+2508>> +2]=J[f+4>>2];f=M[g+140>>2]>2];if((n|0)<=0)break D;f=J[a+2548>>2];if(f){J[699344]=0;i=_(f|0,a|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;F:{if(!g)break F;f=J[699345];if(!f)break F;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;if(i)break l;g=J[a+2464>>2]}if(M[g+140>>2]>2])continue;break}f=0}if(!(f|!K[a+2543|0])){J[699344]=0;i=_(1094,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;G:{if(!g)break G;f=J[699345];if(!f)break G;h=Pc(J[g>>2],k,l);if(!h)break k; +gc=f}g=gc;if((h|0)==1)continue m;if(!i){f=J[a+2464>>2];J[699344]=0;_(1094,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;H:{if(!g)break H;f=J[699345];if(!f)break H;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m}H[a+2542|0]=0;g=J[a+2464>>2]}J[699344]=0;i=_(1092,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;I:{if(!g)break I;f=J[699345];if(!f)break I;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;if((n|0)<=0)break B;if(!i)continue;break}}if(!K[a+ +2540|0]|!K[a+2541|0])break r;f=J[a+2464>>2];J[699344]=0;i=_(1092,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;J:{if(!g)break J;f=J[699345];if(!f)break J;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;if(!i)break r;f=J[a+2464>>2];if(J[f+144>>2]!=J[f+152>>2])break r;J[699344]=0;i=_(87,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;K:{if(!g)break K;f=J[699345];if(!f)break K;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;if((i|0)!=1)break r;I[a+ +2540>>1]=0;f=J[J[a+2464>>2]+24>>2];J[a+2504>>2]=J[f>>2];f=J[f+4>>2];J[a+2508>>2]=f;if(!(f|j))break r;J[699344]=0;ha(1084,a|0,1055,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;h=-1;L:{if(!g)break L;f=J[699345];if(!f)break L;h=Pc(J[g>>2],k,l);if(!h)break k;gc=f}g=gc;if((h|0)==1)continue m;i=1055;break l}if(j)continue;break}break}i=0}uc(k);fc=p+16|0;f=i;break i}uc(k);nf(g,f);B()}a=Z()|0;uc(k);ba(a|0);B()}}J[o+12>>2]=f;f=J[o+12>>2];if(f){b=f;break a}if(!K[a+112|0]){b=0;break a}q=o,r=kc[J[b+4>>2]](a, +b,e)|0,J[q+12>>2]=r;b=J[o+12>>2];if(b)break a;f=J[e>>2];J[f+36>>2]=c;b=0;H[f+32|0]=0;f=kc[J[a+152>>2]](c)|0;J[J[e>>2]+40>>2]=f;e=J[J[e>>2]+40>>2];if(!e){b=1;Jc(a,1,0,0);break a}xc(e,d,c)}fc=o+16|0;return b|0}function aYa(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;f=fc-80|0;fc=f;J[f+64>>2]=13;J[f+56>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;c=J[b+8>>2];J[699344]=0;c=ha(3368,c|0,778990,f- -64|0,0)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)==1)break b;if(J[c>>2]==4){J[699344]=0;aa(2974,f+48| +0,J[f+72>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break b}J[699344]=0;$(3370,f- -64|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;i=aa(3443,b|0,0)|0;c=J[699344];J[699344]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{if((c|0)!=1){if(!i)break d;c=J[J[i>>2]+12>>2];J[699344]=0;c=_(c|0,i|0)|0;d=J[699344];J[699344]=0;l:{m:{n:{o:{p:{q:{if((d|0)!=1)switch(c|0){case 1:case 2:case 5:case 7:break j;case 8:break m;case 6:break n;case 4:break o;case 3:break p;case 0:break q;default:break k}e=Z()|0;break a}j=J[i+ +8>>2];r:{if(j){c=J[a+28>>2];J[699344]=0;e=aa(3444,c|0,j|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break r;e=Z()|0;break a}e=J[i+4>>2]}if(!e)break j;J[699344]=0;g=_(4,72)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;h=Ac(g,0,72);J[h>>2]=852792;s:{if(J[e+4>>2]){c=J[a+28>>2];d=J[e+12>>2];k=J[e+8>>2];J[699344]=0;c=ga(3445,c|0,k|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break s;e=Z()|0;break a}c=J[e+8>>2]}J[h+20>>2]=c;d=1;if(c){J[h+20>>2]=c-1;d=c}c=J[e>>2];H[h+64|0]=c;k=J[a+28>>2];J[699344]=0;d=aa(3446, +k|0,d|0)|0;k=J[699344];J[699344]=0;t:{u:{if((k|0)!=1){c=c&255;if(c>>>0>7)break t;d=J[d+12>>2];l=O[d+56>>3];m=O[d+32>>3];if(1<>3]=O[e+16>>3]-m;O[h+40>>3]=l-O[e+40>>3];O[h+48>>3]=O[e+32>>3]-m;O[h+56>>3]=l-O[e+24>>3];break t}e=Z()|0;break a}c=0;J[h+24>>2]=0;if(J[e+56>>2]){J[h+24>>2]=1;O[h+32>>3]=O[e+16>>3]-m;c=1}if(J[e+60>>2]){c=c|2;J[h+24>>2]=c;O[h+40>>3]=l-O[e+40>>3]}if(!J[e+64>>2])break t;l=O[e+48>>3];if(l==0)break t;O[h+48>>3]=l;J[h+24>>2]=c|4}if(!j)break f; +uc(e);break f}J[699344]=0;g=_(4,32)|0;c=J[699344];J[699344]=0;v:{w:{x:{if((c|0)!=1){J[g>>2]=0;J[g+4>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=852852;J[g+28>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[699344]=0;d=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)==1)break x;c=J[i+4>>2];J[699344]=0;c=aa(3354,d|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break w;d=J[c+4>>2];e=J[c>>2];J[699344]=0;ca(3447,f+32|0,e|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break v;e=J[f+36>>2];d=g+20|0;J[d>>2]=J[f+ +32>>2];J[d+4>>2]=e;J[g+28>>2]=J[f+40>>2];uc(ld(c));break f}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;uc(d);break a}e=Z()|0;break a}J[699344]=0;g=_(4,32)|0;c=J[699344];J[699344]=0;y:{z:{A:{if((c|0)!=1){J[g>>2]=0;J[g+4>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=852912;J[g+28>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[699344]=0;d=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)==1)break A;c=J[i+4>>2];J[699344]=0;c=aa(3354,d|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break z;d=J[c+4>>2];e=J[c>> +2];J[699344]=0;ca(3447,f+32|0,e|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break y;e=J[f+36>>2];d=g+20|0;J[d>>2]=J[f+32>>2];J[d+4>>2]=e;J[g+28>>2]=J[f+40>>2];uc(ld(c));break f}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;uc(d);break a}e=Z()|0;break a}J[699344]=0;g=_(4,32)|0;c=J[699344];J[699344]=0;B:{C:{D:{if((c|0)!=1){J[g>>2]=0;J[g+4>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=852972;J[g+28>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[699344]=0;d=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)== +1)break D;c=J[i+4>>2];J[699344]=0;c=aa(3354,d|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break C;d=J[c+4>>2];e=J[c>>2];J[699344]=0;ca(3447,f+32|0,e|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break B;e=J[f+36>>2];d=g+20|0;J[d>>2]=J[f+32>>2];J[d+4>>2]=e;J[g+28>>2]=J[f+40>>2];uc(ld(c));break f}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;uc(d);break a}e=Z()|0;break a}J[699344]=0;g=_(4,36)|0;c=J[699344];J[699344]=0;e=1;if((c|0)!=1){J[g>>2]=0;J[g+4>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]= +0;J[g+8>>2]=0;J[g+12>>2]=0;J[g+32>>2]=0;J[g>>2]=853036;H[g+20|0]=J[i+24>>2]!=0;e=J[i+8>>2]==6?J[J[i+16>>2]+12>>2]:e;J[699344]=0;J[f+32>>2]=13;aa(3448,i+8|0,f+32|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){h=g+24|0;j=(e|0)<=1?1:e;c=0;while(1){if(J[i+8>>2]==6){J[699344]=0;d=f+32|0;$(3370,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break g;e=J[i+16>>2];J[699344]=0;ha(3449,e|0,c|0,d|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g}E:{F:{G:switch(J[f+32>>2]-3|0){case 0:J[699344]=0;d=_(4,12)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break g;J[699344]=0;e=aa(3354,d|0,J[f+40>>2])|0;k=J[699344];J[699344]=0;if((k|0)!=1)break F;e=Z()|0;uc(d);break a;case 4:break G;default:break E}J[699344]=0;e=_(3450,f+32|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;if(!e)break E}d=J[e+4>>2];k=J[e>>2];J[699344]=0;ca(3447,f+16|0,k|0,d|0);d=J[699344];J[699344]=0;H:{I:{J:{K:{if((d|0)!=1){d=J[g+28>>2];if((d|0)!=J[g+32>>2]){if(H[f+27|0]>=0){k=J[f+20>>2];J[d>>2]=J[f+16>>2];J[d+4>>2]=k;J[d+8>>2]=J[f+24>>2];break I}J[699344]=0; +ca(2838,d|0,J[f+16>>2],J[f+20>>2]);k=J[699344];J[699344]=0;if((k|0)!=1)break I;e=Z()|0;J[g+28>>2]=d;break J}J[699344]=0;da(3451,h|0,f+16|0);d=J[699344];J[699344]=0;if((d|0)==1)break K;break H}e=Z()|0;break a}e=Z()|0}if(H[f+27|0]>=0)break a;uc(J[f+16>>2]);break a}J[g+28>>2]=d+12}uc(ld(e));if(H[f+27|0]>=0)break E;uc(J[f+16>>2])}c=c+1|0;if((j|0)!=(c|0))continue;break}J[699344]=0;$(3370,f+32|0);c=J[699344];J[699344]=0;if((c|0)!=1)break f}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}d= +K[f+59|0];c=d<<24>>24<0;if(((c?J[f+52>>2]:d)|0)!=9)break j;if(dd(c?J[f+48>>2]:f+48|0,779883,9))break j;J[699344]=0;g=_(4,36)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[g+4>>2]=0;J[g+8>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[g>>2]=852728;J[g+12>>2]=0;J[g+16>>2]=0;J[g+28>>2]=0;J[g+32>>2]=0;J[f+32>>2]=13;c=J[b+8>>2];J[699344]=0;c=ha(3368,c|0,781056,f+32|0,0)|0;d=J[699344];J[699344]=0;L:{if((d|0)==1)break L;if(J[c>>2]==1)J[g+20>>2]=J[f+40>>2];J[699344]=0;c=f+32|0;$(3370,c|0);d=J[699344];J[699344]=0;if((d| +0)==1)break L;d=J[b+8>>2];J[699344]=0;c=ha(3368,d|0,782169,c|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break L;M:{if(J[c>>2]!=6)break M;e=J[f+40>>2];if(J[e+12>>2]<=0)break M;h=g+24|0;c=0;while(1){J[699344]=0;J[f+16>>2]=13;ha(3449,e|0,c|0,f+16|0,0)|0;d=J[699344];J[699344]=0;N:{O:{P:{if((d|0)!=1){Q:switch(J[f+16>>2]-3|0){case 4:break P;case 0:break Q;default:break N}J[699344]=0;d=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;J[699344]=0;e=aa(3354,d|0,J[f+24>>2])|0;j=J[699344];J[699344]=0;if((j| +0)!=1)break O;e=Z()|0;uc(d);break a}e=Z()|0;break a}J[699344]=0;e=_(3450,f+16|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;if(!e)break N}d=J[e+4>>2];j=J[e>>2];J[699344]=0;ca(3447,f+4|0,j|0,d|0);d=J[699344];J[699344]=0;R:{S:{T:{U:{if((d|0)!=1){d=J[g+28>>2];if((d|0)!=J[g+32>>2]){if(H[f+15|0]>=0){j=J[f+8>>2];J[d>>2]=J[f+4>>2];J[d+4>>2]=j;J[d+8>>2]=J[f+12>>2];break S}J[699344]=0;ca(2838,d|0,J[f+4>>2],J[f+8>>2]);j=J[699344];J[699344]=0;if((j|0)!=1)break S;e=Z()|0;J[g+28>>2]=d;break T}J[699344]=0;da(3451, +h|0,f+4|0);d=J[699344];J[699344]=0;if((d|0)==1)break U;break R}e=Z()|0;break a}e=Z()|0}if(H[f+15|0]>=0)break a;uc(J[f+4>>2]);break a}J[g+28>>2]=d+12}uc(ld(e));if(H[f+15|0]>=0)break N;uc(J[f+4>>2])}J[699344]=0;$(3370,f+16|0);d=J[699344];J[699344]=0;if((d|0)==1)break i;c=c+1|0;e=J[f+40>>2];if((c|0)>2])continue;break}}J[699344]=0;$(3370,f+32|0);c=J[699344];J[699344]=0;if((c|0)!=1)break f}e=Z()|0;break a}J[f+32>>2]=13;break e}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;break a}J[g+16>>2]=0;J[f+32>> +2]=13;b=J[b+8>>2];J[699344]=0;c=b;b=f+32|0;c=ha(3368,c|0,783136,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(J[c>>2]!=7)break e;J[699344]=0;a=aa(3452,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[g+16>>2]=a}J[699344]=0;$(3370,f+32|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;kc[J[J[i>>2]+4>>2]](i)}if(H[f+59|0]<0)uc(J[f+48>>2]);fc=f+80|0;return g|0}e=Z()|0;break a}e=Z()|0}if(H[f+59|0]<0)uc(J[f+48>>2]);ba(e|0);B()}function H$(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;l=fc-416|0;fc=l;j=Pk(J[f>>2]+72|0);a:{if(g){k=J[g+4>>2];g=J[g>>2];if((g|0)<=31){xc(xc(j,k,g)+g|0,2708608,32-g|0);break a}m=K[k+4|0]|K[k+5|0]<<8|(K[k+6|0]<<16|K[k+7|0]<<24);g=K[k|0]|K[k+1|0]<<8|(K[k+2|0]<<16|K[k+3|0]<<24);H[j|0]=g;H[j+1|0]=g>>>8;H[j+2|0]=g>>>16;H[j+3|0]=g>>>24;H[j+4|0]=m;H[j+5|0]=m>>>8;H[j+6|0]=m>>>16;H[j+7|0]=m>>>24;m=K[k+28|0]|K[k+29|0]<<8|(K[k+30|0]<<16|K[k+31|0]<<24);g=K[k+24|0]|K[k+25|0]<<8|(K[k+26|0]<<16|K[k+27|0]<<24);H[j+24|0]=g;H[j+25|0]=g>>>8;H[j+26|0]=g>>> +16;H[j+27|0]=g>>>24;H[j+28|0]=m;H[j+29|0]=m>>>8;H[j+30|0]=m>>>16;H[j+31|0]=m>>>24;m=K[k+20|0]|K[k+21|0]<<8|(K[k+22|0]<<16|K[k+23|0]<<24);g=K[k+16|0]|K[k+17|0]<<8|(K[k+18|0]<<16|K[k+19|0]<<24);H[j+16|0]=g;H[j+17|0]=g>>>8;H[j+18|0]=g>>>16;H[j+19|0]=g>>>24;H[j+20|0]=m;H[j+21|0]=m>>>8;H[j+22|0]=m>>>16;H[j+23|0]=m>>>24;m=K[k+12|0]|K[k+13|0]<<8|(K[k+14|0]<<16|K[k+15|0]<<24);g=K[k+8|0]|K[k+9|0]<<8|(K[k+10|0]<<16|K[k+11|0]<<24);H[j+8|0]=g;H[j+9|0]=g>>>8;H[j+10|0]=g>>>16;H[j+11|0]=g>>>24;H[j+12|0]=m;H[j+13| +0]=m>>>8;H[j+14|0]=m>>>16;H[j+15|0]=m>>>24;break a}k=J[677159];g=J[677158];H[j+24|0]=g;H[j+25|0]=g>>>8;H[j+26|0]=g>>>16;H[j+27|0]=g>>>24;H[j+28|0]=k;H[j+29|0]=k>>>8;H[j+30|0]=k>>>16;H[j+31|0]=k>>>24;k=J[677157];g=J[677156];H[j+16|0]=g;H[j+17|0]=g>>>8;H[j+18|0]=g>>>16;H[j+19|0]=g>>>24;H[j+20|0]=k;H[j+21|0]=k>>>8;H[j+22|0]=k>>>16;H[j+23|0]=k>>>24;k=J[677155];g=J[677154];H[j+8|0]=g;H[j+9|0]=g>>>8;H[j+10|0]=g>>>16;H[j+11|0]=g>>>24;H[j+12|0]=k;H[j+13|0]=k>>>8;H[j+14|0]=k>>>16;H[j+15|0]=k>>>24;k=J[677153]; +g=J[677152];H[j|0]=g;H[j+1|0]=g>>>8;H[j+2|0]=g>>>16;H[j+3|0]=g>>>24;H[j+4|0]=k;H[j+5|0]=k>>>8;H[j+6|0]=k>>>16;H[j+7|0]=k>>>24}k=J[c+4>>2];g=K[k+4|0]|K[k+5|0]<<8|(K[k+6|0]<<16|K[k+7|0]<<24);c=K[k|0]|K[k+1|0]<<8|(K[k+2|0]<<16|K[k+3|0]<<24);H[j+32|0]=c;H[j+33|0]=c>>>8;H[j+34|0]=c>>>16;H[j+35|0]=c>>>24;H[j+36|0]=g;H[j+37|0]=g>>>8;H[j+38|0]=g>>>16;H[j+39|0]=g>>>24;g=K[k+28|0]|K[k+29|0]<<8|(K[k+30|0]<<16|K[k+31|0]<<24);c=K[k+24|0]|K[k+25|0]<<8|(K[k+26|0]<<16|K[k+27|0]<<24);H[j+56|0]=c;H[j+57|0]=c>>>8;H[j+ +58|0]=c>>>16;H[j+59|0]=c>>>24;H[j+60|0]=g;H[j+61|0]=g>>>8;H[j+62|0]=g>>>16;H[j+63|0]=g>>>24;g=K[k+20|0]|K[k+21|0]<<8|(K[k+22|0]<<16|K[k+23|0]<<24);c=K[k+16|0]|K[k+17|0]<<8|(K[k+18|0]<<16|K[k+19|0]<<24);H[j+48|0]=c;H[j+49|0]=c>>>8;H[j+50|0]=c>>>16;H[j+51|0]=c>>>24;H[j+52|0]=g;H[j+53|0]=g>>>8;H[j+54|0]=g>>>16;H[j+55|0]=g>>>24;g=K[k+12|0]|K[k+13|0]<<8|(K[k+14|0]<<16|K[k+15|0]<<24);c=K[k+8|0]|K[k+9|0]<<8|(K[k+10|0]<<16|K[k+11|0]<<24);H[j+40|0]=c;H[j+41|0]=c>>>8;H[j+42|0]=c>>>16;H[j+43|0]=c>>>24;H[j+44| +0]=g;H[j+45|0]=g>>>8;H[j+46|0]=g>>>16;H[j+47|0]=g>>>24;H[j+64|0]=e;H[j+65|0]=e>>>8;H[j+66|0]=e>>>16;H[j+67|0]=e>>>24;xc(j+68|0,J[f+4>>2],J[f>>2]);e=J[f>>2];c=e+68|0;g=0;if(!i){H[c+j|0]=255;c=e+j|0;H[c+71|0]=255;H[c+69|0]=255;H[c+70|0]=255;c=e+72|0}if((c|0)>=0){J[l+96>>2]=0;J[l+100>>2]=0;J[l+24>>2]=-1732584194;J[l+28>>2]=271733878;J[l+16>>2]=1732584193;J[l+20>>2]=-271733879;k=j;e=c;if(c>>>0>=64){i=l+32|0;while(1){m=g+i|0;g=64-g|0;xc(m,k,g);J[l+96>>2]=64;k=g+k|0;bq(l+16|0);e=e-g|0;g=J[l+96>>2];if((e+ +g|0)>63)continue;break}}if((e|0)>0){xc((g+l|0)+32|0,k,e);J[l+96>>2]=J[l+96>>2]+e}J[l+100>>2]=J[l+100>>2]+c;Dr(l+16|0);e=J[l+116>>2];c=J[l+112>>2];H[h+8|0]=c;H[h+9|0]=c>>>8;H[h+10|0]=c>>>16;H[h+11|0]=c>>>24;H[h+12|0]=e;H[h+13|0]=e>>>8;H[h+14|0]=e>>>16;H[h+15|0]=e>>>24;e=J[l+108>>2];c=J[l+104>>2];H[h|0]=c;H[h+1|0]=c>>>8;H[h+2|0]=c>>>16;H[h+3|0]=c>>>24;H[h+4|0]=e;H[h+5|0]=e>>>8;H[h+6|0]=e>>>16;H[h+7|0]=e>>>24}k=0;g=0;b:{c:switch(a-2|0){case 1:c=0;if((b|0)>=0){i=l+32|0;a=b>>>0<64;while(1){J[l+96>>2]= +0;J[l+100>>2]=0;J[l+24>>2]=-1732584194;J[l+28>>2]=271733878;J[l+16>>2]=1732584193;J[l+20>>2]=-271733879;g=0;k=h;e=b;if(!a)while(1){m=g+i|0;g=64-g|0;xc(m,k,g);J[l+96>>2]=64;k=g+k|0;bq(l+16|0);e=e-g|0;g=J[l+96>>2];if((e+g|0)>63)continue;break}if((e|0)>0){xc(g+i|0,k,e);J[l+96>>2]=J[l+96>>2]+e}J[l+100>>2]=J[l+100>>2]+b;Dr(l+16|0);g=K[l+116|0]|K[l+117|0]<<8|(K[l+118|0]<<16|K[l+119|0]<<24);e=K[l+112|0]|K[l+113|0]<<8|(K[l+114|0]<<16|K[l+115|0]<<24);H[h+8|0]=e;H[h+9|0]=e>>>8;H[h+10|0]=e>>>16;H[h+11|0]=e>>> +24;H[h+12|0]=g;H[h+13|0]=g>>>8;H[h+14|0]=g>>>16;H[h+15|0]=g>>>24;g=K[l+108|0]|K[l+109|0]<<8|(K[l+110|0]<<16|K[l+111|0]<<24);e=K[l+104|0]|K[l+105|0]<<8|(K[l+106|0]<<16|K[l+107|0]<<24);H[h|0]=e;H[h+1|0]=e>>>8;H[h+2|0]=e>>>16;H[h+3|0]=e>>>24;H[h+4|0]=g;H[h+5|0]=g>>>8;H[h+6|0]=g>>>16;H[h+7|0]=g>>>24;c=c+1|0;if((c|0)!=50)continue;break}}q=j+32|0;c=J[d+4>>2];a=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);J[l+296>>2]=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);J[l+300>>2]=a;a=K[c+20|0]| +K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);J[l+288>>2]=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);J[l+292>>2]=a;a=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);J[l+272>>2]=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[l+276>>2]=a;a=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);J[l+280>>2]=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);J[l+284>>2]=a;r=b&-4;p=b&3;g=19;s=(b|0)<=0;m=b>>>0<4;while(1){c=g;d:{if(s)break d;k=0;g=0;i=0;if(!m)while(1){H[g+l|0]=c^K[g+h|0];a=g|1;H[a+ +l|0]=c^K[a+h|0];a=g|2;H[a+l|0]=c^K[a+h|0];a=g|3;H[a+l|0]=c^K[a+h|0];g=g+4|0;i=i+4|0;if((r|0)!=(i|0))continue;break}if(!p)break d;while(1){H[g+l|0]=c^K[g+h|0];g=g+1|0;k=k+1|0;if((p|0)!=(k|0))continue;break}}k=0;g=0;while(1){d=l+16|0;H[d+g|0]=g;a=g|1;H[a+d|0]=a;a=g|2;H[a+d|0]=a;a=g|3;H[a+d|0]=a;a=g|4;H[a+d|0]=a;a=g|5;H[a+d|0]=a;a=g|6;H[a+d|0]=a;a=g|7;H[a+d|0]=a;g=g+8|0;if((g|0)!=256)continue;break}g=0;i=0;while(1){e=l+16|0;d=e+k|0;a=K[d|0];g=g&255;i=a+(K[g+l|0]+(i&255)|0)|0;e=(i&255)+e|0;H[d|0]=K[e| +0];H[e|0]=a;g=(g+1|0)%(b|0)|0;k=k+1|0;if((k|0)!=256)continue;break}g=0;e=0;while(1){a=g+1|0;n=l+16|0;i=a+n|0;o=K[i|0];e=o+e|0;d=(e&255)+n|0;k=K[d|0];H[i|0]=k;H[d|0]=o;d=(l+272|0)+g|0;H[d|0]=K[n+(k+o&255)|0]^K[d|0];g=a;if((g|0)!=32)continue;break}g=c-1|0;if(c)continue;break}g=0;b=J[677159];a=J[677158];H[j+24|0]=a;H[j+25|0]=a>>>8;H[j+26|0]=a>>>16;H[j+27|0]=a>>>24;H[j+28|0]=b;H[j+29|0]=b>>>8;H[j+30|0]=b>>>16;H[j+31|0]=b>>>24;b=J[677157];a=J[677156];H[j+16|0]=a;H[j+17|0]=a>>>8;H[j+18|0]=a>>>16;H[j+19| +0]=a>>>24;H[j+20|0]=b;H[j+21|0]=b>>>8;H[j+22|0]=b>>>16;H[j+23|0]=b>>>24;b=J[677155];a=J[677154];H[j+8|0]=a;H[j+9|0]=a>>>8;H[j+10|0]=a>>>16;H[j+11|0]=a>>>24;H[j+12|0]=b;H[j+13|0]=b>>>8;H[j+14|0]=b>>>16;H[j+15|0]=b>>>24;b=J[677153];a=J[677152];H[j|0]=a;H[j+1|0]=a>>>8;H[j+2|0]=a>>>16;H[j+3|0]=a>>>24;H[j+4|0]=b;H[j+5|0]=b>>>8;H[j+6|0]=b>>>16;H[j+7|0]=b>>>24;xc(q,J[f+4>>2],J[f>>2]);a=J[f>>2];if((a|0)>=-32){J[l+392>>2]=0;J[l+396>>2]=0;J[l+320>>2]=-1732584194;J[l+324>>2]=271733878;J[l+312>>2]=1732584193; +J[l+316>>2]=-271733879;k=j;b=a+32|0;e=b;if(e>>>0>=64){a=l+328|0;while(1){c=64-g|0;xc(a+g|0,k,c);J[l+392>>2]=64;k=c+k|0;bq(l+312|0);e=e-c|0;g=J[l+392>>2];if((e+g|0)>63)continue;break}}if((e|0)>0){xc((g+l|0)+328|0,k,e);J[l+392>>2]=J[l+392>>2]+e}J[l+396>>2]=b+J[l+396>>2];Dr(l+312|0);b=J[l+412>>2];a=J[l+408>>2];H[j+8|0]=a;H[j+9|0]=a>>>8;H[j+10|0]=a>>>16;H[j+11|0]=a>>>24;H[j+12|0]=b;H[j+13|0]=b>>>8;H[j+14|0]=b>>>16;H[j+15|0]=b>>>24;b=J[l+404>>2];a=J[l+400>>2];H[j|0]=a;H[j+1|0]=a>>>8;H[j+2|0]=a>>>16;H[j+ +3|0]=a>>>24;H[j+4|0]=b;H[j+5|0]=b>>>8;H[j+6|0]=b>>>16;H[j+7|0]=b>>>24}k=!dd(l+272|0,j,16);break b;case 0:break c;default:break b}while(1){c=l+16|0;H[c+g|0]=g;a=g|1;H[a+c|0]=a;a=g|2;H[a+c|0]=a;a=g|3;H[a+c|0]=a;a=g|4;H[a+c|0]=a;a=g|5;H[a+c|0]=a;a=g|6;H[a+c|0]=a;a=g|7;H[a+c|0]=a;g=g+8|0;if((g|0)!=256)continue;break}g=0;i=0;while(1){e=l+16|0;c=e+k|0;a=K[c|0];f=g&255;i=a+(K[f+h|0]+(i&255)|0)|0;e=(i&255)+e|0;H[c|0]=K[e|0];H[e|0]=a;g=(f+1|0)%(b|0)|0;k=k+1|0;if((k|0)!=256)continue;break}f=J[d+4>>2];g=0;e= +0;while(1){d=K[f+g|0];a=g+1|0;k=l+16|0;c=a+k|0;i=K[c|0];e=i+e|0;b=(e&255)+k|0;h=K[b|0];H[c|0]=h;H[b|0]=i;b=l+272|0;H[b+g|0]=d^K[k+(h+i&255)|0];g=a;if((g|0)!=32)continue;break}k=!dd(b,2708608,32)}Mc(j);fc=l+416|0;return k}function N3a(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;e=-1;h=c+1|0;h=vc(h>>>0>1073741823?-1:h<<2);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(d-128|0){default:switch(d|0){case 0:break n;case 2:break i;default:break h}case 35:if((c|0)<=0)break a;e=0; +if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+420144>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+420144>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+420144>>1];J[d>>2]=b;break a;case 58:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+419696>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+419696>>1];J[h+(f<<2)>> +2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+419696>>1];J[d>>2]=b;break a;case 50:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+419248>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+419248>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+419248>>1];J[d>>2]=b;break a;case 49:if((c| +0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+418800>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+418800>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+418800>>1];J[d>>2]=b;break a;case 34:if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+418352>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+418352>> +1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+418352>>1];J[d>>2]=b;break a;case 127:break j;case 94:break k;case 110:break l;case 76:break m;case 33:break o;case 6:break c;case 1:break d;case 8:break e;case 2:break f;case 0:break g;case 3:case 4:case 5:case 7:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 91:case 92:case 93:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:break h}if((c| +0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+417904>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+417904>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+417904>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+417456>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+417456>>1]; +J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+417456>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+417008>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+417008>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+417008>>1];J[d>>2]=b;break a}if((c|0)<= +0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+416560>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+416560>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+416560>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+416112>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+416112>>1];J[h+ +(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+416112>>1];J[d>>2]=b;break a}if((c|0)<=0)break a;e=0;if((c|0)!=1){i=c&-2;while(1){f=h+(e<<2)|0;d=K[b+e|0];if(d>>>0>=32)d=L[(d<<1)+415664>>1];J[f>>2]=d;f=e|1;d=K[f+b|0];if(d>>>0>=32)d=L[(d<<1)+415664>>1];J[h+(f<<2)>>2]=d;e=e+2|0;g=g+2|0;if((i|0)!=(g|0))continue;break}}if(!(c&1))break a;d=h+(e<<2)|0;b=K[b+e|0];if(b>>>0>=32)b=L[(b<<1)+415664>>1];J[d>>2]=b;break a}if((c|0)<=0)break a; d=0;e=0;if(c-1>>>0>=3){i=c&-4;while(1){J[h+(e<<2)>>2]=K[b+e|0]|61440;f=e|1;J[h+(f<<2)>>2]=K[b+f|0]|61440;f=e|2;J[h+(f<<2)>>2]=K[b+f|0]|61440;f=e|3;J[h+(f<<2)>>2]=K[b+f|0]|61440;e=e+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=c&3;if(!g)break a;while(1){J[h+(e<<2)>>2]=K[b+e|0]|61440;e=e+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}break a}if((c|0)<=0)break a;d=0;e=0;if(c-1>>>0>=3){i=c&-4;while(1){J[h+(e<<2)>>2]=K[b+e|0];f=e|1;J[h+(f<<2)>>2]=K[b+f|0];f=e|2;J[h+(f<<2)>>2]=K[b+f|0];f=e|3;J[h+(f<<2)>>2]= -K[b+f|0];e=e+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=c&3;if(!g)break a;while(1){J[h+(e<<2)>>2]=K[b+e|0];e=e+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}break a}if((c|0)<=0)break b;while(1){d=K[b+i|0];p:{q:{r:{if((e|0)==-1){e=L[(d<<1)+418912>>1];if((e|0)!=65535)break r;break p}f=d|e<<8&65280;e=419424;d=33088;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break r}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break q}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c| -0)<=0)break b;while(1){d=K[b+i|0];s:{t:{u:{if((e|0)==-1){e=L[(d<<1)+660240>>1];if((e|0)!=65535)break u;break s}f=d|e<<8&65280;e=660752;d=33089;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break u}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break t}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];v:{w:{x:{if((e|0)==-1){e=L[(d<<1)+660240>>1];if((e|0)!=65535)break x;break v}f=d|e<<8&65280;e=606224;d=41280;while(1){if((f| -0)==(d&65535)){e=L[e+2>>1];break x}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break w}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];y:{z:{A:{if((e|0)==-1){e=L[(d<<1)+660240>>1];if((e|0)!=65535)break A;break y}f=d|e<<8&65280;e=538016;d=33089;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break A}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break z}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue; -break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];B:{C:{D:{if((e|0)==-1){e=L[(d<<1)+450336>>1];if((e|0)!=65535)break D;break B}f=d|e<<8&65280;e=450848;d=33088;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break D}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break C}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}}J[h+(g<<2)>>2]=0}J[h+(c<<2)>>2]=0;E:{c=Ve(h);if(c>>>0<1073741808){F:{if(c>>>0<=1){H[a+11|0]=c;break F}b=c|3;if(b>>>0>=1073741823)break E;d=b+1|0;b=rc(d<< -2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;j=tc(b,h,a)+a|0,k=0,J[j>>2]=k;qc(h);return}Id(a);B()}Sd();B()}function GR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;l=bc-48|0;bc=l;if(!(a&1)){o=a;a=J[a>>2]}J[l+40>>2]=0;J[l+44>>2]=0;q=a>>>1&32767;m=K[q+2456736|0];a=a>>>16|0;n=K[a+2456736|0];a:{if(!b|!J[b>>2])break a;k=J[c>>2];if(!k)break a;s=q+2456737|0;t=a+2456737|0;u=J[694782];J[694782]=2454544;a=J[b>>2];b:{c:{d:{while(1){e:{f= -K[a|0];h=f<<24>>24;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{j=n&255;switch(j-192|0){case 40:break m;case 32:break o;case 24:case 25:break q;case 26:break r;case 18:break s;case 16:break t;case 17:break u;case 11:break v;case 10:case 12:break w;case 1:case 2:case 4:case 5:break x;case 0:case 3:break z;case 6:break A;case 7:break B;case 8:break C;default:break l}}i=1;if((h|0)>=0)break h;g=28;i=ns(l+36|0,a,k,l+40|0);switch(i+2|0){case 0:break c;case 1:break d;default:break k}}i= -1;if((h|0)>=0)break h;break d}if(k>>>0<4)break e;f=J[a>>2];break y}if(k>>>0<4)break e;f=FR(a,j)}g=25;if(f>>>0>1114111)break c;i=4;if((f&-2048)==55296)break c;break h}g=28;if(k>>>0<2)break c;f=j&1;f=K[f+a|0]<<8|K[!f+a|0];h=f&64512;if((h|0)!=55296){i=2;g=25;if((h|0)==56320)break c;break h}if((j&254)==196)break d;if(k>>>0<4)break c;g=25;i=j&1;a=a+2|0;a=(K[i+a|0]<<8|K[a+!i|0])-56320|0;if(a>>>0>1023)break c;f=(a+(f<<10)|0)-56557568|0;i=4;break h}i=0;n=J[o+4>>2];if(n)break f;if(k>>>0<2)break e;f=K[a+1| -0]|K[a|0]<<8;a=(f|0)==65534;n=(j|0)==204?a?197:196:a?193:194;J[o+4>>2]=n;i=a?2:((f|0)==65279)<<1;break f}i=0;n=J[o+4>>2];if(n)break f;if(k>>>0<4)break e;a=FR(a,0);f=(a|0)==-131072;n=f?195:192;J[o+4>>2]=n;i=f?4:((a|0)==65279)<<2;break f}i=1;if((h|0)>=0)break h;if(f-161>>>0<=62){f=f+65216|0;break h}if(k>>>0<2)break e;i=K[a+1|0];a=f-129|0;if(a>>>0>=31){if((f&240)!=224)break d;a=f-193|0}h=a<<1;a=i+-64|0;D:{if(a>>>0<=94){if((i|0)==127)break d;a=a+(i<<24>>31)|0;break D}a=i-159|0;f=a>>>0<94;h=f|h;a=f?a: -i}f=L[(P(h,188)+(a<<1)|0)+2519872>>1];break i}i=1;if((h|0)>=0)break h;if(k>>>0<2)break e;a=K[a+1|0];if((h|0)==-114){if(a-224>>>0<4294967233)break d;f=a+65216|0;i=2;break h}g=25;f=f-161|0;if(f>>>0>83)break c;a=a-161|0;if(a>>>0>93)break c;f=L[(P(f,188)+(a<<1)|0)+2519872>>1];break n}g=25;if((h|0)<0)break c;if((h|0)==27){if(k>>>0<3)break e;E:{f=K[a+1|0];switch(f-36|0){case 0:case 4:break E;default:break c}}F:{G:{H:{I:{J:{a=K[a+2|0]+(((f|0)==36)<<7)|0;switch(a-73|0){case 0:break H;case 1:break I;default:break J}}K:switch(a- -192|0){case 1:break c;case 2:break F;case 0:break G;default:break K}if((a|0)!=66)break c;J[o+4>>2]=0;break j}J[o+4>>2]=1;break j}J[o+4>>2]=4;break j}J[o+4>>2]=2;break j}i=3;J[o+4>>2]=3;n=210;break f}i=1;L:switch(J[o+4>>2]-1|0){case 0:a=(h|0)==92?165:f;f=(a|0)==126?8254:a;break h;case 1:case 2:if(k>>>0<2)break e;f=f-33|0;if(f>>>0>83)break c;a=K[a+1|0]-33|0;if(a>>>0>93)break c;f=L[(P(f,188)+(a<<1)|0)+2519872>>1];break n;case 3:break L;default:break h}if(f-96>>>0<31)break c;f=f-33>>>0<94?f+65344|0:f; +K[b+f|0];e=e+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=c&3;if(!g)break a;while(1){J[h+(e<<2)>>2]=K[b+e|0];e=e+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}break a}if((c|0)<=0)break b;while(1){d=K[b+i|0];p:{q:{r:{if((e|0)==-1){e=L[(d<<1)+420656>>1];if((e|0)!=65535)break r;break p}f=d|e<<8&65280;e=421168;d=33088;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break r}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break q}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c| +0)<=0)break b;while(1){d=K[b+i|0];s:{t:{u:{if((e|0)==-1){e=L[(d<<1)+661984>>1];if((e|0)!=65535)break u;break s}f=d|e<<8&65280;e=662496;d=33089;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break u}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break t}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];v:{w:{x:{if((e|0)==-1){e=L[(d<<1)+661984>>1];if((e|0)!=65535)break x;break v}f=d|e<<8&65280;e=607968;d=41280;while(1){if((f| +0)==(d&65535)){e=L[e+2>>1];break x}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break w}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];y:{z:{A:{if((e|0)==-1){e=L[(d<<1)+661984>>1];if((e|0)!=65535)break A;break y}f=d|e<<8&65280;e=539760;d=33089;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break A}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break z}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue; +break}break b}if((c|0)<=0)break b;while(1){d=K[b+i|0];B:{C:{D:{if((e|0)==-1){e=L[(d<<1)+452080>>1];if((e|0)!=65535)break D;break B}f=d|e<<8&65280;e=452592;d=33088;while(1){if((f|0)==(d&65535)){e=L[e+2>>1];break D}d=L[e+4>>1];e=e+4|0;if((d|0)!=65535)continue;break}break C}J[h+(g<<2)>>2]=e&65535;g=g+1|0}d=-1}e=d;i=i+1|0;if((i|0)!=(c|0))continue;break}}J[h+(g<<2)>>2]=0}J[h+(c<<2)>>2]=0;E:{c=bf(h);if(c>>>0<1073741808){F:{if(c>>>0<=1){H[a+11|0]=c;break F}b=c|3;if(b>>>0>=1073741823)break E;d=b+1|0;b=vc(d<< +2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;j=xc(b,h,a)+a|0,k=0,J[j>>2]=k;uc(h);return}_d(a);B()}Pd();B()}function iT(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;l=fc-48|0;fc=l;if(!(a&1)){o=a;a=J[a>>2]}J[l+40>>2]=0;J[l+44>>2]=0;q=a>>>1&32767;m=K[q+2469360|0];a=a>>>16|0;n=K[a+2469360|0];a:{if(!b|!J[b>>2])break a;k=J[c>>2];if(!k)break a;s=q+2469361|0;t=a+2469361|0;u=J[698634];J[698634]=2467168;a=J[b>>2];b:{c:{d:{while(1){e:{f= +K[a|0];h=f<<24>>24;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{j=n&255;switch(j-192|0){case 40:break m;case 32:break o;case 24:case 25:break q;case 26:break r;case 18:break s;case 16:break t;case 17:break u;case 11:break v;case 10:case 12:break w;case 1:case 2:case 4:case 5:break x;case 0:case 3:break z;case 6:break A;case 7:break B;case 8:break C;default:break l}}i=1;if((h|0)>=0)break h;g=28;i=bt(l+36|0,a,k,l+40|0);switch(i+2|0){case 0:break c;case 1:break d;default:break k}}i= +1;if((h|0)>=0)break h;break d}if(k>>>0<4)break e;f=J[a>>2];break y}if(k>>>0<4)break e;f=hT(a,j)}g=25;if(f>>>0>1114111)break c;i=4;if((f&-2048)==55296)break c;break h}g=28;if(k>>>0<2)break c;f=j&1;f=K[f+a|0]<<8|K[!f+a|0];h=f&64512;if((h|0)!=55296){i=2;g=25;if((h|0)==56320)break c;break h}if((j&254)==196)break d;if(k>>>0<4)break c;g=25;i=j&1;a=a+2|0;a=(K[i+a|0]<<8|K[a+!i|0])-56320|0;if(a>>>0>1023)break c;f=(a+(f<<10)|0)-56557568|0;i=4;break h}i=0;n=J[o+4>>2];if(n)break f;if(k>>>0<2)break e;f=K[a+1| +0]|K[a|0]<<8;a=(f|0)==65534;n=(j|0)==204?a?197:196:a?193:194;J[o+4>>2]=n;i=a?2:((f|0)==65279)<<1;break f}i=0;n=J[o+4>>2];if(n)break f;if(k>>>0<4)break e;a=hT(a,0);f=(a|0)==-131072;n=f?195:192;J[o+4>>2]=n;i=f?4:((a|0)==65279)<<2;break f}i=1;if((h|0)>=0)break h;if(f-161>>>0<=62){f=f+65216|0;break h}if(k>>>0<2)break e;i=K[a+1|0];a=f-129|0;if(a>>>0>=31){if((f&240)!=224)break d;a=f-193|0}h=a<<1;a=i+-64|0;D:{if(a>>>0<=94){if((i|0)==127)break d;a=a+(i<<24>>31)|0;break D}a=i-159|0;f=a>>>0<94;h=f|h;a=f?a: +i}f=L[(P(h,188)+(a<<1)|0)+2532496>>1];break i}i=1;if((h|0)>=0)break h;if(k>>>0<2)break e;a=K[a+1|0];if((h|0)==-114){if(a-224>>>0<4294967233)break d;f=a+65216|0;i=2;break h}g=25;f=f-161|0;if(f>>>0>83)break c;a=a-161|0;if(a>>>0>93)break c;f=L[(P(f,188)+(a<<1)|0)+2532496>>1];break n}g=25;if((h|0)<0)break c;if((h|0)==27){if(k>>>0<3)break e;E:{f=K[a+1|0];switch(f-36|0){case 0:case 4:break E;default:break c}}F:{G:{H:{I:{J:{a=K[a+2|0]+(((f|0)==36)<<7)|0;switch(a-73|0){case 0:break H;case 1:break I;default:break J}}K:switch(a- +192|0){case 1:break c;case 2:break F;case 0:break G;default:break K}if((a|0)!=66)break c;J[o+4>>2]=0;break j}J[o+4>>2]=1;break j}J[o+4>>2]=4;break j}J[o+4>>2]=2;break j}i=3;J[o+4>>2]=3;n=210;break f}i=1;L:switch(J[o+4>>2]-1|0){case 0:a=(h|0)==92?165:f;f=(a|0)==126?8254:a;break h;case 1:case 2:if(k>>>0<2)break e;f=f-33|0;if(f>>>0>83)break c;a=K[a+1|0]-33|0;if(a>>>0>93)break c;f=L[(P(f,188)+(a<<1)|0)+2532496>>1];break n;case 3:break L;default:break h}if(f-96>>>0<31)break c;f=f-33>>>0<94?f+65344|0:f; break h}i=1;if((h|0)>=0)break h;if(h>>>0<4294967201)break d;break p}i=1;if((h|0)>=0)break h}i=f-129|0;if(i>>>0>125)break d;g=28;if(k>>>0<2)break c;f=K[a+1|0];if((j|0)==218&f>>>0<=160)break d;M:{if((f|0)!=127){h=f+-64|0;if(h>>>0<191)break M}if((j|0)!=216|f-58>>>0<4294967286)break d;if(k>>>0<4)break c;h=K[a+2|0]-129|0;if(h>>>0>126)break d;g=25;a=K[a+3|0]-48|0;if(a>>>0>9)break c;j=(a+(P(f+P(i,10)|0,1260)+P(h,10)|0)|0)-60352|0;g=0;while(1){i=j-g|0;f=0;h=0;while(1){a=0;r=P(f,380);while(1){h=(i>>>0>=L[(r+ -(a<<1)|0)+2461632>>1]-g>>>0)+h|0;a=a+1|0;if((a|0)!=190)continue;break}f=f+1|0;if((f|0)!=126)continue;break}g=j+1|0;i=4;f=h+j|0;j=f;if(f>>>0>=g>>>0)continue;break}break h}f=L[(P(i,380)+((h>>>0>63?f-65|0:h)<<1)|0)+2461632>>1];i=2;break h}i=1;if((h|0)>=0)break h;if(k>>>0<2)break e;g=25;a=K[a+1|0];i=a+-64|0;if(i>>>0>190|a-127>>>0<34)break c;a=i>>>0>62?a-98|0:i;i=f-161|0;if(i>>>0>=89){i=f-135|0;if(i>>>0>119)break c;a=a+P(h>>>0<4294967201?i:f-224|0,157)|0;i=L[(a<<1)+2509520>>1];f=i|L[(a>>>3&536870910)+ -2519254>>1]>>>(a&15)<<17&131072;if((f&196352)!=56320)break n;f=l+28|0;J[l+24>>2]=f;a=yF(22318);J[l+16>>2]=4;J[l+20>>2]=(i&255)+1060;J[l+12>>2]=8;i=GR(q<<1|a<<16|1,l+20|0,l+16|0,l+24|0,l+12|0);g=J[e>>2];a=J[l+24>>2]-f|0;if(g>>>0>>0)break g;h=J[d>>2];tc(h,f,a);J[d>>2]=a+h;J[e>>2]=g-a;p=((i|0)!=0)+p|0;n=224;i=2;break f}f=L[(P(i,314)+(a<<1)|0)+2535664>>1];N:{O:{if((i|0)!=39)break O;h=131072;P:switch(a-58|0){case 0:case 2:break N;case 1:break O;default:break P}if((a|0)==66)break N}h=0}f=f|h}i=2;if(f)break h; -break c}i=1;if((h|0)>=0)break h;if(k>>>0<2)break e;a=K[a+1|0];Q:{j=f-161|0;if(j>>>0<=92){i=a-161|0;if(i>>>0<94)break Q}g=25;f=f-129|0;if(f>>>0>92|a>>>0>82&f>>>0>=69)break c;h=a-65|0;R:{if(h>>>0<26)break R;if(a-97>>>0<=25){h=a-71|0;break R}if(a-129>>>0>125)break c;h=a-77|0}g=44032;i=2;f=((f>>>0<32?P(f,178):P(j,84)+5696|0)+h|0)+44032|0;if(f>>>0<44032)break h;while(1){r=f-g|0;j=0;h=0;while(1){a=0;while(1){h=(r>>>0>=L[(P(j,188)+(a<<1)|0)+2563616>>1]-g>>>0)+h|0;a=a+1|0;if((a|0)!=94)continue;break}j=j+ -1|0;if((j|0)!=93)continue;break}g=f+1|0;f=f+h|0;if(g>>>0<=f>>>0)continue;break}break h}f=L[(P(j,188)+(i<<1)|0)+2563616>>1];break i}i=1;if(!h){f=0;break h}f=xF(t,f);if(!f)break d;break h}f=J[l+36>>2];break h}n=210;i=3;break f}i=2;if(!f)break d}S:{T:{U:{V:{W:switch(m-192|0){case 6:a=J[e>>2];if(a>>>0<4)break g;g=J[d>>2];J[g>>2]=f;J[d>>2]=g+4;J[e>>2]=a-4;m=198;break f;case 8:g=J[e>>2];X:{if(g>>>0<=3){h=l+28|0;a=Im(h,f);if(g>>>0>>0)break g;j=J[d>>2];tc(j,h,a);break X}j=J[d>>2];a=Im(j,f)}J[d>>2]=a+j; -J[e>>2]=g-a;m=200;break f;case 7:if(f>>>0<128)break V;break U;case 17:if(f>>>0<128)break S;Y:{if((f|0)!=8254){if((f|0)!=165)break Y;p=p+1|0;f=92;break S}p=p+1|0;f=126;break S}if(f-65377>>>0<=62){f=f-65216|0;break S}g=wF(f);if(!g)break U;h=J[e>>2];if(h>>>0<2)break g;a=J[d>>2];H[a|0]=((g>>>8|0)+1>>>1|0)+(g>>>0<24320?112:176);f=g&255;J[d>>2]=a+2;if(g&256)f=(f+((f>>>0)/96|0)|0)+31|0;else f=f+126|0;H[a+1|0]=f;J[e>>2]=h-2;m=209;break f;case 16:if(f>>>0<128)break S;Z:{if(f-65377>>>0<=62){a=f-61760|0;break Z}a= -wF(f);if(!a)break U}g=J[e>>2];if(g>>>0<2)break g;f=J[d>>2];H[f|0]=a>>>8^128;J[d>>2]=f+2;H[f+1|0]=a^128;J[e>>2]=g-2;m=208;break f;case 18:if(f>>>0<128)break S;if(!(!((f|0)==8254|f-65377>>>0<63)&(f|0)!=165)){g=J[e>>2];if(g>>>0<7)break g;a=J[d>>2];H[a|0]=27;H[a+1|0]=40;_:{$:{if((f|0)!=8254){if((f|0)!=165)break $;H[a+2|0]=74;f=92;break _}H[a+2|0]=74;f=126;break _}H[a+2|0]=73;f=f+-64|0}H[a+4|0]=27;H[a+5|0]=40;H[a+3|0]=f;J[d>>2]=a+7;H[a+6|0]=66;J[e>>2]=g-7;m=210;break f}g=wF(f);if(!g)break U;f=J[e>>2]; +(a<<1)|0)+2474256>>1]-g>>>0)+h|0;a=a+1|0;if((a|0)!=190)continue;break}f=f+1|0;if((f|0)!=126)continue;break}g=j+1|0;i=4;f=h+j|0;j=f;if(f>>>0>=g>>>0)continue;break}break h}f=L[(P(i,380)+((h>>>0>63?f-65|0:h)<<1)|0)+2474256>>1];i=2;break h}i=1;if((h|0)>=0)break h;if(k>>>0<2)break e;g=25;a=K[a+1|0];i=a+-64|0;if(i>>>0>190|a-127>>>0<34)break c;a=i>>>0>62?a-98|0:i;i=f-161|0;if(i>>>0>=89){i=f-135|0;if(i>>>0>119)break c;a=a+P(h>>>0<4294967201?i:f-224|0,157)|0;i=L[(a<<1)+2522144>>1];f=i|L[(a>>>3&536870910)+ +2531878>>1]>>>(a&15)<<17&131072;if((f&196352)!=56320)break n;f=l+28|0;J[l+24>>2]=f;a=HG(22334);J[l+16>>2]=4;J[l+20>>2]=(i&255)+1060;J[l+12>>2]=8;i=iT(q<<1|a<<16|1,l+20|0,l+16|0,l+24|0,l+12|0);g=J[e>>2];a=J[l+24>>2]-f|0;if(g>>>0>>0)break g;h=J[d>>2];xc(h,f,a);J[d>>2]=a+h;J[e>>2]=g-a;p=((i|0)!=0)+p|0;n=224;i=2;break f}f=L[(P(i,314)+(a<<1)|0)+2548288>>1];N:{O:{if((i|0)!=39)break O;h=131072;P:switch(a-58|0){case 0:case 2:break N;case 1:break O;default:break P}if((a|0)==66)break N}h=0}f=f|h}i=2;if(f)break h; +break c}i=1;if((h|0)>=0)break h;if(k>>>0<2)break e;a=K[a+1|0];Q:{j=f-161|0;if(j>>>0<=92){i=a-161|0;if(i>>>0<94)break Q}g=25;f=f-129|0;if(f>>>0>92|a>>>0>82&f>>>0>=69)break c;h=a-65|0;R:{if(h>>>0<26)break R;if(a-97>>>0<=25){h=a-71|0;break R}if(a-129>>>0>125)break c;h=a-77|0}g=44032;i=2;f=((f>>>0<32?P(f,178):P(j,84)+5696|0)+h|0)+44032|0;if(f>>>0<44032)break h;while(1){r=f-g|0;j=0;h=0;while(1){a=0;while(1){h=(r>>>0>=L[(P(j,188)+(a<<1)|0)+2576240>>1]-g>>>0)+h|0;a=a+1|0;if((a|0)!=94)continue;break}j=j+ +1|0;if((j|0)!=93)continue;break}g=f+1|0;f=f+h|0;if(g>>>0<=f>>>0)continue;break}break h}f=L[(P(j,188)+(i<<1)|0)+2576240>>1];break i}i=1;if(!h){f=0;break h}f=GG(t,f);if(!f)break d;break h}f=J[l+36>>2];break h}n=210;i=3;break f}i=2;if(!f)break d}S:{T:{U:{V:{W:switch(m-192|0){case 6:a=J[e>>2];if(a>>>0<4)break g;g=J[d>>2];J[g>>2]=f;J[d>>2]=g+4;J[e>>2]=a-4;m=198;break f;case 8:g=J[e>>2];X:{if(g>>>0<=3){h=l+28|0;a=zn(h,f);if(g>>>0>>0)break g;j=J[d>>2];xc(j,h,a);break X}j=J[d>>2];a=zn(j,f)}J[d>>2]=a+j; +J[e>>2]=g-a;m=200;break f;case 7:if(f>>>0<128)break V;break U;case 17:if(f>>>0<128)break S;Y:{if((f|0)!=8254){if((f|0)!=165)break Y;p=p+1|0;f=92;break S}p=p+1|0;f=126;break S}if(f-65377>>>0<=62){f=f-65216|0;break S}g=FG(f);if(!g)break U;h=J[e>>2];if(h>>>0<2)break g;a=J[d>>2];H[a|0]=((g>>>8|0)+1>>>1|0)+(g>>>0<24320?112:176);f=g&255;J[d>>2]=a+2;if(g&256)f=(f+((f>>>0)/96|0)|0)+31|0;else f=f+126|0;H[a+1|0]=f;J[e>>2]=h-2;m=209;break f;case 16:if(f>>>0<128)break S;Z:{if(f-65377>>>0<=62){a=f-61760|0;break Z}a= +FG(f);if(!a)break U}g=J[e>>2];if(g>>>0<2)break g;f=J[d>>2];H[f|0]=a>>>8^128;J[d>>2]=f+2;H[f+1|0]=a^128;J[e>>2]=g-2;m=208;break f;case 18:if(f>>>0<128)break S;if(!(!((f|0)==8254|f-65377>>>0<63)&(f|0)!=165)){g=J[e>>2];if(g>>>0<7)break g;a=J[d>>2];H[a|0]=27;H[a+1|0]=40;_:{$:{if((f|0)!=8254){if((f|0)!=165)break $;H[a+2|0]=74;f=92;break _}H[a+2|0]=74;f=126;break _}H[a+2|0]=73;f=f+-64|0}H[a+4|0]=27;H[a+5|0]=40;H[a+3|0]=f;J[d>>2]=a+7;H[a+6|0]=66;J[e>>2]=g-7;m=210;break f}g=FG(f);if(!g)break U;f=J[e>>2]; if(f>>>0<8)break g;a=J[d>>2];H[a+5|0]=27;H[a+6|0]=40;H[a+4|0]=g;H[a+3|0]=g>>>8;H[a+2|0]=66;H[a|0]=27;H[a+1|0]=36;J[d>>2]=a+8;H[a+7|0]=66;J[e>>2]=f-8;m=210;break f;case 12:m=196;case 1:case 2:case 4:case 5:case 10:aa:{h=f>>>0>65535;ba:{if(!h){a=J[e>>2];break ba}a=J[e>>2];if((m&254)!=196)break aa}if(a>>>0<2)break g;j=m&1;g=J[d>>2];f=h?65533:f;H[j+g|0]=f>>>8;H[g+!j|0]=f;J[d>>2]=g+2;J[e>>2]=a-2;break f}if(a>>>0<4)break g;g=m&1;h=J[d>>2];j=f-65536>>>10|55296;H[g+h|0]=j>>>8;H[h+!g|0]=j;j=h+2|0;f=f&1023| -56320;H[j+g|0]=f>>>8;H[j+!g|0]=f;J[d>>2]=h+4;J[e>>2]=a-4;break f;case 11:m=192;break;case 0:case 3:break W;default:break V}h=J[e>>2];if(h>>>0<4)break g;g=m&3;a=J[d>>2];H[g+a|0]=f>>>24;H[a+(g^1)|0]=f>>>16;H[a+(g^2)|0]=f>>>8;H[a+(g^3)|0]=f;J[d>>2]=a+4;J[e>>2]=h-4;break f}a=1;break T}a=0}while(1){if(!a){p=p+1|0;f=42;a=1;continue}if(!J[e>>2])break g;if(f>>>0<=255)if((xF(s,f)|0)==(f|0))break S;if(m>>>0<=63){a=m<<2;g=a>>>0<=255?255:a;while(1){if((xF(s,a)|0)==(f|0)){f=a;break S}h=(a|0)==(g|0);a=a+1|0;if(!h)continue; -break}}a=0;continue}}a=J[e>>2];if(!a)break g;g=J[d>>2];J[d>>2]=g+1;H[g|0]=f;J[e>>2]=a-1;break f}g=1;break c}a=J[b>>2]+i|0;J[b>>2]=a;k=k-i|0;J[c>>2]=k;if(k)continue;break b}break}g=28;break c}g=25}J[694731]=g;p=-1}J[694782]=u}bc=l+48|0;return p|0}function hg(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;o=bc-16|0;bc=o;J[o>>2]=13;k=J[a+48>>2];if((k|0)==2){j=a+16|0;uc(j);k=a+32|0;uc(k);vj(J[a+4>>2],j);vj(J[a+4>>2],k);J[a+48>>2]=0; -k=0}j=a+16|0;l=J[a+16>>2];a:{b:{c:{if(!((i|0)>499|c|(l|0)!=10)){c=J[a+24>>2];if(!Ec(c,775060)){d:{if((k|0)>0)c=((k|0)==1)<<1;else{if(J[a+32>>2]!=10)break d;if(Ec(J[a+40>>2],788530))break d;Mi(J[a+4>>2]);c=1}J[a+48>>2]=c}uc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;e:{if(J[a+48>>2]>0){J[c>>2]=5;break e}vj(J[a+4>>2],c)}gp(b,J[a>>2]);i=i+1|0;f:{while(1){g:switch(J[j>>2]-10|0){case 0:if(!Ec(J[a+24>>2],776092))break f;default:k=hg(a,o,0,d,e, -f,g,h,i);Dg(J[b+8>>2],k);continue;case 2:break g}break}d=J[a+4>>2];if(J[d+8>>2]!=13){d=J[d+16>>2];d=gc[J[J[d>>2]+52>>2]](d)|0}else d=-1;xc(1,d,776684,0)}d=J[a+48>>2];h:{i:{if((d|0)>0){d=((d|0)==1)<<1;break i}if(J[c>>2]!=10)break h;if(Ec(J[a+40>>2],788530))break h;Mi(J[a+4>>2]);d=1}J[a+48>>2]=d}uc(j);d=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=d;d=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=d;if(J[a+48>>2]>0){J[c>>2]=5;break b}vj(J[a+4>>2],c);break b}if(Ec(c,778764)){j=a+16|0;break c}j:{if((k|0)>0)c=((k|0)== -1)<<1;else{if(J[a+32>>2]!=10)break j;if(Ec(J[a+40>>2],788530))break j;Mi(J[a+4>>2]);c=1}J[a+48>>2]=c}uc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;k:{if(J[a+48>>2]>0){J[c>>2]=5;break k}vj(J[a+4>>2],c)}ig(b,J[a>>2]);q=i+1|0;l:{m:{while(1){n:switch(J[j>>2]-4|0){case 6:if(!Ec(J[a+24>>2],780014))break l;default:i=J[a+4>>2];if(J[i+8>>2]!=13){i=J[i+16>>2];i=gc[J[J[i>>2]+52>>2]](i)|0}else i=-1;xc(1,i,780361,0);i=J[a+48>>2];o:{p:{if((i|0)>0){i=((i| -0)==1)<<1;break p}if(J[c>>2]!=10)break o;if(Ec(J[a+40>>2],788530))break o;Mi(J[a+4>>2]);i=1}J[a+48>>2]=i}uc(j);i=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=i;i=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=i;if(J[a+48>>2]>0){J[c>>2]=5;continue}vj(J[a+4>>2],c);continue;case 8:break m;case 0:break n}i=Md(J[a+24>>2]);k=J[a+48>>2];q:{r:{if((k|0)>0){k=((k|0)==1)<<1;break r}if(J[c>>2]!=10)break q;if(Ec(J[a+40>>2],788530))break q;Mi(J[a+4>>2]);k=1}J[a+48>>2]=k}uc(j);k=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=k;k= -J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=k;s:{if(J[a+48>>2]>0){J[c>>2]=5;break s}vj(J[a+4>>2],c)}if(J[j>>2]-11>>>0>=2){k=hg(a,o,0,d,e,f,g,h,q);De(J[b+8>>2],i,k);continue}break}Gc(i);if(J[j>>2]!=12)break l}i=J[a+4>>2];if(J[i+8>>2]!=13){i=J[i+16>>2];i=gc[J[J[i>>2]+52>>2]](i)|0}else i=-1;xc(1,i,781356,0)}t:{i=J[a+32>>2];if(!J[a+8>>2]|(i|0)!=10)break t;if(Ec(J[a+40>>2],782658))break t;j=0;c=bc-32|0;bc=c;J[c+16>>2]=13;i=J[a+4>>2];u:{if(J[i+8>>2]==13)break u;k=i+8|0;while(1){v:{w:{x:{l=J[i+16>>2];switch((gc[J[J[l>> -2]+28>>2]](l)|0)+1|0){case 11:break u;case 14:break v;case 0:break w;default:break x}}if(J[k>>2]==13)break u;continue}l=J[i+16>>2];gc[J[J[l>>2]+24>>2]](l);uc(k);l=J[i+4>>2]+1|0;J[i+4>>2]=l;m=J[i>>2];if((l|0)>2]){Mc(m,l,k,0);l=J[i+16>>2];gc[J[J[l>>2]+20>>2]](l)}if(J[k>>2]!=13)continue;break u}break}if(J[k>>2]==13)break u;l=J[i+16>>2];if((gc[J[J[l>>2]+32>>2]](l)|0)!=10|J[i+8>>2]==13)break u;while(1){l=J[i+16>>2];if((gc[J[J[l>>2]+28>>2]](l)|0)!=-1)break u;l=J[i+16>>2];gc[J[J[l>>2]+24>>2]](l); -uc(k);l=J[i+4>>2]+1|0;J[i+4>>2]=l;m=J[i>>2];if((l|0)>2]){Mc(m,l,k,0);l=J[i+16>>2];gc[J[J[l>>2]+20>>2]](l)}if(J[k>>2]!=13)continue;break}}i=J[a+4>>2];y:{if(J[i+8>>2]==13)break y;i=J[i+16>>2];if(!i)break y;m=gc[J[J[i>>2]+52>>2]](i)|0;z:{A:{i=J[a>>2];if(!i)break A;p=J[i+76>>2];B:{if(!p)break B;l=-1;r=J[i+72>>2];k=p-1|0;i=J[r+(k<<2)>>2];if((m|0)>(i|0))break B;if((p|0)>=2){while(1){i=(k+l|0)/2|0;n=(m|0)>J[(i<<2)+r>>2];k=n?k:i;l=n?i:l;if((k-l|0)>1)continue;break}i=J[(k<<2)+r>>2]}J[c+12>>2]=i;n= -1}if(!n)break A;l=J[c+12>>2]-m|0;break z}i=c+16|0;Bc(J[b+8>>2],784626,i,q);if(J[c+16>>2]==1){l=J[c+24>>2];uc(i);break z}a=J[a+4>>2];if(J[a+8>>2]!=13){a=J[a+16>>2];a=gc[J[J[a>>2]+52>>2]](a)|0}else a=-1;xc(1,a,785387,0);uc(c+16|0);break y}i=J[a+4>>2];if(J[i+8>>2]==13)break y;i=J[i+16>>2];if(!i)break y;i=gc[J[J[i>>2]+68>>2]](i)|0;i=gc[J[J[i>>2]+8>>2]](i)|0;j=gc[J[J[i>>2]+92>>2]](i,m,1,l,b)|0;k=J[a+4>>2];C:{D:{if(J[k+8>>2]==13)break D;k=J[k+16>>2];gc[J[J[k>>2]+56>>2]](k,l+m|0,0);k=J[a+4>>2];if(J[k+8>> -2]==13)break D;k=J[k+16>>2];if(!k)break D;while(1){n=gc[J[J[k>>2]+28>>2]](k)|0;if(n>>>0<=255)p=K[n+2306848|0]==1;else p=0;if(p){s=s+1|0;if((s|0)!=100)continue}break}if((n|0)!=101)break D;if((gc[J[J[k>>2]+40>>2]](k,c+4|0,8)|0)==8|(K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))==1953719406&(K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24))==1835099506)break C}a=J[a+4>>2];if(J[a+8>>2]!=13){a=J[a+16>>2];a=gc[J[J[a>>2]+52>>2]](a)|0}else a=-1;xc(1,a,787590,0);Ef(b,c+16|0);if(j)gc[J[J[j>>2]+4>>2]](j); -j=gc[J[J[i>>2]+92>>2]](i,m,1,l+5E3|0,c+16|0)|0}gc[J[J[i>>2]+4>>2]](i);E:{if(!d)break E;a=rc(384);J[695492]=0;j=va(3383,a|0,j|0,d|0,e|0,f|0,g|0,h|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break E;b=Z()|0;qc(a);ba(b|0);B()}j=vY(j,b,q)}bc=c+32|0;if(j){J[b+8>>2]=j;J[b>>2]=8;break b}uc(b);J[b>>2]=11;break b}d=J[a+48>>2];F:{G:{if((d|0)>0){d=((d|0)==1)<<1;break G}if((i|0)!=10)break F;if(Ec(J[a+40>>2],788530))break F;Mi(J[a+4>>2]);d=1}J[a+48>>2]=d}uc(j);d=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=d;d=J[c+ -4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=d;if(J[a+48>>2]>0){J[c>>2]=5;break b}vj(J[a+4>>2],c);break b}H:{if((l|0)==1){d=J[a+24>>2];I:{if((k|0)>0)c=((k|0)==1)<<1;else{if(J[a+32>>2]!=10)break I;if(Ec(J[a+40>>2],788530))break I;Mi(J[a+4>>2]);c=1}J[a+48>>2]=c}uc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;if(J[a+48>>2]>0){J[c>>2]=5;break H}vj(J[a+4>>2],c);if(J[a+16>>2]!=1|J[a+32>>2]!=10)break H;if(Ec(J[a+40>>2],783714))break H;J[b+12>>2]=J[a+24>>2];J[b+ -8>>2]=d;J[b>>2]=9;d=J[a+48>>2];J:{K:{if((d|0)>0){d=((d|0)==1)<<1;break K}if(J[c>>2]!=10)break J;if(Ec(J[a+40>>2],788530))break J;Mi(J[a+4>>2]);d=1}J[a+48>>2]=d}uc(j);d=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=d;d=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=d;L:{M:{N:{d=J[a+48>>2];O:{if((d|0)>0){J[c>>2]=5;break O}vj(J[a+4>>2],c);d=J[a+48>>2];if((d|0)<=0)break N}d=((d|0)==1)<<1;break M}if(J[c>>2]!=10)break L;if(Ec(J[a+40>>2],788530))break L;Mi(J[a+4>>2]);d=1}J[a+48>>2]=d}uc(j);d=J[c+12>>2];J[j+8>>2]=J[c+8>> -2];J[j+12>>2]=d;d=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=d;if(J[a+48>>2]>0){J[c>>2]=5;break b}vj(J[a+4>>2],c);break b}if(!d|(l|0)!=3)break c;c=J[a+24>>2];i=rc(8);J[695492]=0;k=$(3184,i|0)|0;l=J[695492];J[695492]=0;if((l|0)!=1){J[o>>2]=5;i=rc(384);J[695492]=0;l=$(4,48)|0;m=J[695492];J[695492]=0;if((m|0)==1)break a;m=J[c>>2];c=J[c+4>>2];J[695492]=0;c=Wn(l,c,0,m,o);m=J[695492];J[695492]=0;P:{Q:{R:{if((m|0)!=1){J[695492]=0;c=va(3383,i|0,c|0,d|0,e|0,f|0,g|0,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a; -gc[J[J[c>>2]+20>>2]](c);d=gc[J[J[c>>2]+28>>2]](c)|0;if((d|0)!=-1)while(1){zd(k,d<<24>>24);d=gc[J[J[c>>2]+28>>2]](c)|0;if((d|0)!=-1)continue;break}gc[J[J[c>>2]+4>>2]](c);J[b+8>>2]=k;J[b>>2]=3;c=J[a+48>>2];if((c|0)<=0)break R;c=((c|0)==1)<<1;break Q}a=Z()|0;qc(l);qc(i);ba(a|0);B()}if(J[a+32>>2]!=10)break P;if(Ec(J[a+40>>2],788530))break P;Mi(J[a+4>>2]);c=1}J[a+48>>2]=c}uc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;if(J[a+48>>2]>0){J[c>>2]= -5;break b}vj(J[a+4>>2],c);break b}break a}J[b+8>>2]=d;J[b>>2]=1;break b}Ef(j,b);c=J[a+48>>2];S:{T:{if((c|0)>0){c=((c|0)==1)<<1;break T}if(J[a+32>>2]!=10)break S;if(Ec(J[a+40>>2],788530))break S;Mi(J[a+4>>2]);c=1}J[a+48>>2]=c}uc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;if(J[a+48>>2]>0){J[c>>2]=5;break b}vj(J[a+4>>2],c)}bc=o+16|0;return b|0}a=Z()|0;qc(i);ba(a|0);B()}function Toa(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;d=bc-144|0;bc=d;J[a+8>>2]=0;J[a>>2]=2381028;e=J[682146];J[a+20>>2]=0;J[a+12>>2]=e;J[a+16>>2]=2426920;J[695492]=0;e=$(4,52)|0;h=J[695492];J[695492]=0;j=a+8|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if((h|0)!=1){J[695492]=0;h=Qn(e,8,6075,6076,6077,6078,6079);f=J[695492];J[695492]=0;if((f|0)==1)break x;J[h+4>>2]=J[h+4>>2]+1;e=J[a+20>>2];y:{if(!e)break y;f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(f)break y;gc[J[J[e>>2]+4>>2]](e)}J[a+20>>2]=h;J[a+24>>2]=2426920;J[a+28>>2]=0;J[695492]= -0;e=$(4,52)|0;h=J[695492];J[695492]=0;if((h|0)==1)break w;J[695492]=0;h=Qn(e,8,6075,6076,6077,6078,6079);f=J[695492];J[695492]=0;if((f|0)==1)break v;J[h+4>>2]=J[h+4>>2]+1;e=J[a+28>>2];z:{if(!e)break z;f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(f)break z;gc[J[J[e>>2]+4>>2]](e)}H[a+32|0]=0;J[a+28>>2]=h;J[695492]=0;e=aa(6081,d+104|0,b|0)|0;h=J[695492];J[695492]=0;f=1;if((h|0)==1)break s;J[e>>2]=2426756;if(!K[e+32|0]){J[695492]=0;da(5112,e|0,1);h=J[695492];J[695492]=0;if((h|0)==1)break r;f=K[e+32|0]!=0}J[e+24>>2]= -2381060;J[e>>2]=2381028;h=J[e+28>>2];if(h){g=J[h+4>>2]-1|0;J[h+4>>2]=g;if(!g)gc[J[J[h>>2]+4>>2]](h);J[e+28>>2]=0}J[e+16>>2]=2381060;h=J[e+20>>2];if(h){g=J[h+4>>2]-1|0;J[h+4>>2]=g;if(!g)gc[J[J[h>>2]+4>>2]](h);J[e+20>>2]=0}sc(e+8|0);if(!f)break q;b=J[b>>2];if(!b)break u;c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+96|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break t;b=Z()|0;break e}b=Z()|0;J[a+16>>2]=2381060;break c}b=Z()|0;qc(e);J[a+16>>2]=2381060;c=J[a+20>>2];if(!c)break c;e=J[c+4>>2]-1|0;J[c+4>>2]= -e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0;break c}b=Z()|0;J[a+24>>2]=2381060;break d}b=Z()|0;qc(e);J[a+24>>2]=2381060;c=J[a+28>>2];if(!c)break d;e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0;break d}J[d+96>>2]=0}J[695492]=0;aa(4993,j|0,d+96|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;b=J[d+96>>2];J[d+96>>2]=0;if(!b)break p;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break p;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!= -1)break p}break b}b=Z()|0;break e}b=Z()|0;ud(e);break e}c=J[c+8>>2];f=J[(c?c+12|0:2728584)>>2];J[695492]=0;h=aa(4989,d+96|0,f|0)|0;c=J[695492];J[695492]=0;A:{B:{C:{D:{E:{if((c|0)!=1){J[d+88>>2]=0;c=J[682146];J[d+92>>2]=c;J[d+84>>2]=c;J[d+80>>2]=0;J[d+76>>2]=c;J[d+72>>2]=0;J[695492]=0;da(6061,d- -64|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break E;c=0;e=J[d+64>>2];if(e)c=J[e+8>>2];i=d- -64|0;sc(i);e=J[h>>2];J[695492]=0;g=aa(6066,e|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break D;e=f+g|0;c=e; -if((g|0)<=0)break A;J[695492]=0;c=ga(5169,i|0,f|0,g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break C;f=J[c>>2];F:{if(f){g=J[J[f>>2]+28>>2];J[695492]=0;ca(g|0,d+56|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break F;b=Z()|0;sc(c);break f}J[d+56>>2]=0}J[695492]=0;aa(4993,d+72|0,d+56|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){f=J[d+56>>2];J[d+56>>2]=0;if(!f)break B;J[695492]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)!=1){if(g)break B;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]= -0;if((f|0)!=1)break B}break b}b=Z()|0;vc(d+56|0);sc(c);break f}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;break f}b=Z()|0;break f}f=J[d+72>>2];J[d+76>>2]=J[(f?f+12|0:2728584)>>2];sc(c);c=e}G:{while(1){f=K[c|0];if(!f)break G;if(!((f|0)==35|(f|0)==63)){c=c+1|0;continue}break}J[695492]=0;f=aa(4989,d+56|0,c|0)|0;g=J[695492];J[695492]=0;H:{if((g|0)!=1){g=J[f>>2];I:{if(g){i=J[J[g>>2]+28>>2];J[695492]=0;ca(i|0,d+48|0,g|0,1);g=J[695492];J[695492]=0;if((g|0)!=1)break I;b=Z()|0;sc(f);break f}J[d+48>>2]=0}J[695492]= -0;aa(4993,d+88|0,d+48|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){g=J[d+48>>2];J[d+48>>2]=0;if(!g)break H;J[695492]=0;i=J[g+4>>2]-1|0;J[g+4>>2]=i;k=J[695492];J[695492]=0;if((k|0)!=1){if(i)break H;J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)!=1)break H}break b}b=Z()|0;vc(d+48|0);sc(f);break f}b=Z()|0;break f}g=J[d+88>>2];J[d+92>>2]=J[(g?g+12|0:2728584)>>2];sc(f)}if(c>>>0>e>>>0){J[695492]=0;c=ga(5169,d+48|0,e|0,c-e|0)|0;e=J[695492];J[695492]=0;J:{if((e|0)!=1){e=J[c>>2];K:{if(e){f=J[J[e>>2]+ -28>>2];J[695492]=0;ca(f|0,d+40|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break K;b=Z()|0;sc(c);break f}J[d+40>>2]=0}J[695492]=0;aa(4993,d+80|0,d+40|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){e=J[d+40>>2];J[d+40>>2]=0;if(!e)break J;J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break J;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break J}break b}b=Z()|0;vc(d+40|0);sc(c);break f}b=Z()|0;break f}e=J[d+80>>2];J[d+84>>2]=J[(e?e+12|0:2728584)>>2];sc(c)}L:{M:{c= -J[b>>2];if(K[J[(c?c+12|0:2728584)>>2]]==47){J[695492]=0;da(6082,d+40|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+40>>2];N:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+32|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break N;b=Z()|0;break g}J[d+32>>2]=0}J[695492]=0;aa(4993,d+80|0,d+32|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+32>>2];J[d+32>>2]=0;if(!b)break M;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break M;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break M}break b}b=Z()|0;vc(d+32|0);break g}b=Z()|0;break f}J[695492]=0;c=aa(5449,d+24|0,47)|0;e=J[695492];J[695492]=0;O:{P:{Q:{if((e|0)!=1){J[695492]=0;e=d+32|0;ca(5122,e|0,d+80|0,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break Q;J[695492]=0;f=d+16|0;da(6082,f|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break P;J[695492]=0;ca(5122,d+40|0,e|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break O;b=J[d+40>>2];R:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d+140|0,b|0,1);b=J[695492];J[695492]= -0;if((b|0)!=1)break R;b=Z()|0;break j}J[d+140>>2]=0}J[695492]=0;aa(4993,d+80|0,d+140|0)|0;b=J[695492];J[695492]=0;S:{if((b|0)!=1){b=J[d+140>>2];J[d+140>>2]=0;if(!b)break S;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break S;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break S}break b}b=Z()|0;vc(d+140|0);break j}b=J[d+80>>2];J[d+84>>2]=J[(b?b+12|0:2728584)>>2];sc(d+40|0);sc(d+16|0);sc(d+32|0);sc(c);break L}b=Z()|0;break f}b=Z()|0;sc(c);break f}b= -Z()|0;break h}b=Z()|0;break i}b=J[d+80>>2];J[d+84>>2]=J[(b?b+12|0:2728584)>>2];sc(d+40|0)}J[695492]=0;b=d+32|0;ca(5122,b|0,d+72|0,d+80|0);c=J[695492];J[695492]=0;T:{U:{if((c|0)!=1){J[695492]=0;c=d+8|0;ca(5122,c|0,b|0,d+88|0);b=J[695492];J[695492]=0;if((b|0)==1)break U;J[695492]=0;da(6067,d+40|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break T;b=J[d+40>>2];V:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+16|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break V;b=Z()|0;break m}J[d+16>>2]=0}J[695492]= -0;aa(4993,j|0,d+16|0)|0;b=J[695492];J[695492]=0;W:{if((b|0)!=1){b=J[d+16>>2];J[d+16>>2]=0;if(!b)break W;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break W;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break W}break b}b=Z()|0;vc(d+16|0);break m}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2728584)>>2];sc(d+40|0);sc(d+8|0);sc(d+32|0);sc(d+72|0);sc(d+80|0);sc(d+88|0);sc(h);break o}b=Z()|0;break f}b=Z()|0;break k}b=Z()|0;break l}b=J[a+8>>2];J[a+12>>2]=J[(b?b+ -12|0:2728584)>>2]}bc=d+144|0;break a}b=Z()|0;vc(d+96|0);break e}sc(d+40|0)}sc(d+8|0)}sc(d+32|0);break f}sc(d+40|0)}sc(d+16|0)}sc(d+32|0);sc(c);break f}sc(d+40|0)}sc(d+72|0);sc(d+80|0);sc(d+88|0);sc(h)}J[a+24>>2]=2381060;c=J[a+28>>2];if(!c)break d;e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0}J[a+16>>2]=2381060;c=J[a+20>>2];if(!c)break c;e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0}sc(j);ba(b|0);B()}ea(0)|0;yc();B()}J[a>>2]=2426756;return a|0}function R7a(a, -b,c){a=a|0;b=b|0;c=c|0;var d=Q(0),e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=Q(0),r=Q(0),s=0,t=0,u=Q(0),v=Q(0),w=0,x=0,y=Q(0),z=0,A=0,C=0,D=Q(0),E=0,F=0,G=0,H=Q(0),K=Q(0),L=Q(0),M=Q(0),O=Q(0),S=Q(0),T=0,U=Q(0),V=0,W=Q(0),X=0,Y=0,da=0,ea=0,fa=0,ha=0,ia=Q(0),ja=0,ka=0;g=bc-48|0;bc=g;J[a>>2]=349096;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+36>>2]=0;J[a+40>>2]=1065353216;J[a+52>>2]=0;J[a+56>>2]=0;J[a+96>>2]=1;J[a+88>>2]=0;J[a+92>> -2]=1;J[a+80>>2]=0;J[a+84>>2]=0;J[a+72>>2]=1056964608;J[a+76>>2]=1065353216;I[a+68>>1]=0;J[a+60>>2]=1065353216;J[a+64>>2]=1065353216;f=a+100|0;e=f;J[e>>2]=0;J[e+4>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[695492]=0;e=$(4,24)|0;h=J[695492];J[695492]=0;if((h|0)==1){a=Z()|0;$j(f);ba(a|0);B()}f=e+24|0;J[a+152>>2]=f;J[a+144>>2]=e;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]= -0;J[a+148>>2]=f;wc(a+160|0,0,100);J[a+260>>2]=4;tc(a+12|0,b,80);J[695492]=0;V=a+92|0;aa(2370,V|0,b+80|0)|0;b=J[695492];J[695492]=0;z=a+248|0;a:{b:{c:{d:{e:{f:{if((b|0)!=1){if(!c)break f;J[695492]=0;_(2382,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f}e=Z()|0;break e}b=J[a+100>>2];J[a+280>>2]=b;q=Q(1/+(b>>>0));g:{h:{b=J[a+260>>2];if(!b){J[a+264>>2]=0;J[a+268>>2]=0;A=a+272|0;b=A;J[b>>2]=0;J[b+4>>2]=0;E=a+276|0;F=a+268|0;G=a+264|0;break h}f=J[a+212>>2];c=0;while(1){d=N[(c<<2)+349208>>2];h=J[f+P(c, -12)>>2];e=0;while(1){t=h+(e<<3)|0;i=N[(e<<2)+349208>>2];j=Q(j+Q(Q(d*N[t+4>>2])*i));k=Q(k+Q(Q(d*N[t>>2])*i));e=e+1|0;if((b|0)!=(e|0))continue;break}c=c+1|0;if((b|0)!=(c|0))continue;break}N[a+276>>2]=j;N[a+272>>2]=j;N[a+268>>2]=k;N[a+264>>2]=k;E=a+276|0;A=a+272|0;F=a+268|0;G=a+264|0;if(!b)break h;n=k;i=j;while(1){d=Q(Q(1)-l);H=Q(d*Q(d*d));u=Q(l*Q(3));K=Q(d*Q(d*u));u=Q(d*Q(l*u));L=Q(l*Q(l*l));o=Q(0);while(1){d=Q(Q(1)-o);M=Q(d*Q(d*d));v=Q(o*Q(3));O=Q(d*Q(d*v));v=Q(d*Q(o*v));S=Q(o*Q(o*o));c=0;m=Q(0);p= +56320;H[j+g|0]=f>>>8;H[j+!g|0]=f;J[d>>2]=h+4;J[e>>2]=a-4;break f;case 11:m=192;break;case 0:case 3:break W;default:break V}h=J[e>>2];if(h>>>0<4)break g;g=m&3;a=J[d>>2];H[g+a|0]=f>>>24;H[a+(g^1)|0]=f>>>16;H[a+(g^2)|0]=f>>>8;H[a+(g^3)|0]=f;J[d>>2]=a+4;J[e>>2]=h-4;break f}a=1;break T}a=0}while(1){if(!a){p=p+1|0;f=42;a=1;continue}if(!J[e>>2])break g;if(f>>>0<=255)if((GG(s,f)|0)==(f|0))break S;if(m>>>0<=63){a=m<<2;g=a>>>0<=255?255:a;while(1){if((GG(s,a)|0)==(f|0)){f=a;break S}h=(a|0)==(g|0);a=a+1|0;if(!h)continue; +break}}a=0;continue}}a=J[e>>2];if(!a)break g;g=J[d>>2];J[d>>2]=g+1;H[g|0]=f;J[e>>2]=a-1;break f}g=1;break c}a=J[b>>2]+i|0;J[b>>2]=a;k=k-i|0;J[c>>2]=k;if(k)continue;break b}break}g=28;break c}g=25}J[698583]=g;p=-1}J[698634]=u}fc=l+48|0;return p|0}function rg(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;o=fc-16|0;fc=o;J[o>>2]=13;k=J[a+48>>2];if((k|0)==2){j=a+16|0;yc(j);k=a+32|0;yc(k);Sj(J[a+4>>2],j);Sj(J[a+4>>2],k);J[a+48>>2]=0; +k=0}j=a+16|0;l=J[a+16>>2];a:{b:{c:{if(!((i|0)>499|c|(l|0)!=10)){c=J[a+24>>2];if(!Ic(c,776804)){d:{if((k|0)>0)c=((k|0)==1)<<1;else{if(J[a+32>>2]!=10)break d;if(Ic(J[a+40>>2],790274))break d;aj(J[a+4>>2]);c=1}J[a+48>>2]=c}yc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;e:{if(J[a+48>>2]>0){J[c>>2]=5;break e}Sj(J[a+4>>2],c)}Po(b,J[a>>2]);i=i+1|0;f:{while(1){g:switch(J[j>>2]-10|0){case 0:if(!Ic(J[a+24>>2],777836))break f;default:k=rg(a,o,0,d,e, +f,g,h,i);hg(J[b+8>>2],k);continue;case 2:break g}break}d=J[a+4>>2];if(J[d+8>>2]!=13){d=J[d+16>>2];d=kc[J[J[d>>2]+52>>2]](d)|0}else d=-1;Cc(1,d,778428,0)}d=J[a+48>>2];h:{i:{if((d|0)>0){d=((d|0)==1)<<1;break i}if(J[c>>2]!=10)break h;if(Ic(J[a+40>>2],790274))break h;aj(J[a+4>>2]);d=1}J[a+48>>2]=d}yc(j);d=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=d;d=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=d;if(J[a+48>>2]>0){J[c>>2]=5;break b}Sj(J[a+4>>2],c);break b}if(Ic(c,780508)){j=a+16|0;break c}j:{if((k|0)>0)c=((k|0)== +1)<<1;else{if(J[a+32>>2]!=10)break j;if(Ic(J[a+40>>2],790274))break j;aj(J[a+4>>2]);c=1}J[a+48>>2]=c}yc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;k:{if(J[a+48>>2]>0){J[c>>2]=5;break k}Sj(J[a+4>>2],c)}Af(b,J[a>>2]);q=i+1|0;l:{m:{while(1){n:switch(J[j>>2]-4|0){case 6:if(!Ic(J[a+24>>2],781758))break l;default:i=J[a+4>>2];if(J[i+8>>2]!=13){i=J[i+16>>2];i=kc[J[J[i>>2]+52>>2]](i)|0}else i=-1;Cc(1,i,782105,0);i=J[a+48>>2];o:{p:{if((i|0)>0){i=((i| +0)==1)<<1;break p}if(J[c>>2]!=10)break o;if(Ic(J[a+40>>2],790274))break o;aj(J[a+4>>2]);i=1}J[a+48>>2]=i}yc(j);i=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=i;i=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=i;if(J[a+48>>2]>0){J[c>>2]=5;continue}Sj(J[a+4>>2],c);continue;case 8:break m;case 0:break n}i=Id(J[a+24>>2]);k=J[a+48>>2];q:{r:{if((k|0)>0){k=((k|0)==1)<<1;break r}if(J[c>>2]!=10)break q;if(Ic(J[a+40>>2],790274))break q;aj(J[a+4>>2]);k=1}J[a+48>>2]=k}yc(j);k=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=k;k= +J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=k;s:{if(J[a+48>>2]>0){J[c>>2]=5;break s}Sj(J[a+4>>2],c)}if(J[j>>2]-11>>>0>=2){k=rg(a,o,0,d,e,f,g,h,q);de(J[b+8>>2],i,k);continue}break}Mc(i);if(J[j>>2]!=12)break l}i=J[a+4>>2];if(J[i+8>>2]!=13){i=J[i+16>>2];i=kc[J[J[i>>2]+52>>2]](i)|0}else i=-1;Cc(1,i,783100,0)}t:{i=J[a+32>>2];if(!J[a+8>>2]|(i|0)!=10)break t;if(Ic(J[a+40>>2],784402))break t;j=0;c=fc-32|0;fc=c;J[c+16>>2]=13;i=J[a+4>>2];u:{if(J[i+8>>2]==13)break u;k=i+8|0;while(1){v:{w:{x:{l=J[i+16>>2];switch((kc[J[J[l>> +2]+28>>2]](l)|0)+1|0){case 11:break u;case 14:break v;case 0:break w;default:break x}}if(J[k>>2]==13)break u;continue}l=J[i+16>>2];kc[J[J[l>>2]+24>>2]](l);yc(k);l=J[i+4>>2]+1|0;J[i+4>>2]=l;m=J[i>>2];if((l|0)>2]){Sc(m,l,k,0);l=J[i+16>>2];kc[J[J[l>>2]+20>>2]](l)}if(J[k>>2]!=13)continue;break u}break}if(J[k>>2]==13)break u;l=J[i+16>>2];if((kc[J[J[l>>2]+32>>2]](l)|0)!=10|J[i+8>>2]==13)break u;while(1){l=J[i+16>>2];if((kc[J[J[l>>2]+28>>2]](l)|0)!=-1)break u;l=J[i+16>>2];kc[J[J[l>>2]+24>>2]](l); +yc(k);l=J[i+4>>2]+1|0;J[i+4>>2]=l;m=J[i>>2];if((l|0)>2]){Sc(m,l,k,0);l=J[i+16>>2];kc[J[J[l>>2]+20>>2]](l)}if(J[k>>2]!=13)continue;break}}i=J[a+4>>2];y:{if(J[i+8>>2]==13)break y;i=J[i+16>>2];if(!i)break y;m=kc[J[J[i>>2]+52>>2]](i)|0;z:{A:{i=J[a>>2];if(!i)break A;p=J[i+76>>2];B:{if(!p)break B;l=-1;r=J[i+72>>2];k=p-1|0;i=J[r+(k<<2)>>2];if((m|0)>(i|0))break B;if((p|0)>=2){while(1){i=(k+l|0)/2|0;n=(m|0)>J[(i<<2)+r>>2];k=n?k:i;l=n?i:l;if((k-l|0)>1)continue;break}i=J[(k<<2)+r>>2]}J[c+12>>2]=i;n= +1}if(!n)break A;l=J[c+12>>2]-m|0;break z}i=c+16|0;Ec(J[b+8>>2],786370,i,q);if(J[c+16>>2]==1){l=J[c+24>>2];yc(i);break z}a=J[a+4>>2];if(J[a+8>>2]!=13){a=J[a+16>>2];a=kc[J[J[a>>2]+52>>2]](a)|0}else a=-1;Cc(1,a,787131,0);yc(c+16|0);break y}i=J[a+4>>2];if(J[i+8>>2]==13)break y;i=J[i+16>>2];if(!i)break y;i=kc[J[J[i>>2]+68>>2]](i)|0;i=kc[J[J[i>>2]+8>>2]](i)|0;j=kc[J[J[i>>2]+92>>2]](i,m,1,l,b)|0;k=J[a+4>>2];C:{D:{if(J[k+8>>2]==13)break D;k=J[k+16>>2];kc[J[J[k>>2]+56>>2]](k,l+m|0,0);k=J[a+4>>2];if(J[k+8>> +2]==13)break D;k=J[k+16>>2];if(!k)break D;while(1){n=kc[J[J[k>>2]+28>>2]](k)|0;if(n>>>0<=255)p=K[n+2318736|0]==1;else p=0;if(p){s=s+1|0;if((s|0)!=100)continue}break}if((n|0)!=101)break D;if((kc[J[J[k>>2]+40>>2]](k,c+4|0,8)|0)==8|(K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))==1953719406&(K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24))==1835099506)break C}a=J[a+4>>2];if(J[a+8>>2]!=13){a=J[a+16>>2];a=kc[J[J[a>>2]+52>>2]](a)|0}else a=-1;Cc(1,a,789334,0);Pe(b,c+16|0);if(j)kc[J[J[j>>2]+4>>2]](j); +j=kc[J[J[i>>2]+92>>2]](i,m,1,l+5E3|0,c+16|0)|0}kc[J[J[i>>2]+4>>2]](i);E:{if(!d)break E;a=vc(384);J[699344]=0;j=va(3558,a|0,j|0,d|0,e|0,f|0,g|0,h|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break E;b=Z()|0;uc(a);ba(b|0);B()}j=t_(j,b,q)}fc=c+32|0;if(j){J[b+8>>2]=j;J[b>>2]=8;break b}yc(b);J[b>>2]=11;break b}d=J[a+48>>2];F:{G:{if((d|0)>0){d=((d|0)==1)<<1;break G}if((i|0)!=10)break F;if(Ic(J[a+40>>2],790274))break F;aj(J[a+4>>2]);d=1}J[a+48>>2]=d}yc(j);d=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=d;d=J[c+ +4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=d;if(J[a+48>>2]>0){J[c>>2]=5;break b}Sj(J[a+4>>2],c);break b}H:{if((l|0)==1){d=J[a+24>>2];I:{if((k|0)>0)c=((k|0)==1)<<1;else{if(J[a+32>>2]!=10)break I;if(Ic(J[a+40>>2],790274))break I;aj(J[a+4>>2]);c=1}J[a+48>>2]=c}yc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;if(J[a+48>>2]>0){J[c>>2]=5;break H}Sj(J[a+4>>2],c);if(J[a+16>>2]!=1|J[a+32>>2]!=10)break H;if(Ic(J[a+40>>2],785458))break H;J[b+12>>2]=J[a+24>>2];J[b+ +8>>2]=d;J[b>>2]=9;d=J[a+48>>2];J:{K:{if((d|0)>0){d=((d|0)==1)<<1;break K}if(J[c>>2]!=10)break J;if(Ic(J[a+40>>2],790274))break J;aj(J[a+4>>2]);d=1}J[a+48>>2]=d}yc(j);d=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=d;d=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=d;L:{M:{N:{d=J[a+48>>2];O:{if((d|0)>0){J[c>>2]=5;break O}Sj(J[a+4>>2],c);d=J[a+48>>2];if((d|0)<=0)break N}d=((d|0)==1)<<1;break M}if(J[c>>2]!=10)break L;if(Ic(J[a+40>>2],790274))break L;aj(J[a+4>>2]);d=1}J[a+48>>2]=d}yc(j);d=J[c+12>>2];J[j+8>>2]=J[c+8>> +2];J[j+12>>2]=d;d=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=d;if(J[a+48>>2]>0){J[c>>2]=5;break b}Sj(J[a+4>>2],c);break b}if(!d|(l|0)!=3)break c;c=J[a+24>>2];i=vc(8);J[699344]=0;k=_(3351,i|0)|0;l=J[699344];J[699344]=0;if((l|0)!=1){J[o>>2]=5;i=vc(384);J[699344]=0;l=_(4,48)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;m=J[c>>2];c=J[c+4>>2];J[699344]=0;c=Ln(l,c,0,m,o);m=J[699344];J[699344]=0;P:{Q:{R:{if((m|0)!=1){J[699344]=0;c=va(3558,i|0,c|0,d|0,e|0,f|0,g|0,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a; +kc[J[J[c>>2]+20>>2]](c);d=kc[J[J[c>>2]+28>>2]](c)|0;if((d|0)!=-1)while(1){Kd(k,d<<24>>24);d=kc[J[J[c>>2]+28>>2]](c)|0;if((d|0)!=-1)continue;break}kc[J[J[c>>2]+4>>2]](c);J[b+8>>2]=k;J[b>>2]=3;c=J[a+48>>2];if((c|0)<=0)break R;c=((c|0)==1)<<1;break Q}a=Z()|0;uc(l);uc(i);ba(a|0);B()}if(J[a+32>>2]!=10)break P;if(Ic(J[a+40>>2],790274))break P;aj(J[a+4>>2]);c=1}J[a+48>>2]=c}yc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;if(J[a+48>>2]>0){J[c>>2]= +5;break b}Sj(J[a+4>>2],c);break b}break a}J[b+8>>2]=d;J[b>>2]=1;break b}Pe(j,b);c=J[a+48>>2];S:{T:{if((c|0)>0){c=((c|0)==1)<<1;break T}if(J[a+32>>2]!=10)break S;if(Ic(J[a+40>>2],790274))break S;aj(J[a+4>>2]);c=1}J[a+48>>2]=c}yc(j);c=J[a+44>>2];J[j+8>>2]=J[a+40>>2];J[j+12>>2]=c;c=J[a+36>>2];J[j>>2]=J[a+32>>2];J[j+4>>2]=c;c=a+32|0;if(J[a+48>>2]>0){J[c>>2]=5;break b}Sj(J[a+4>>2],c)}fc=o+16|0;return b|0}a=Z()|0;uc(i);ba(a|0);B()}function hra(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;d=fc-144|0;fc=d;J[a+8>>2]=0;J[a>>2]=2392932;e=J[685894];J[a+20>>2]=0;J[a+12>>2]=e;J[a+16>>2]=2438824;J[699344]=0;e=_(4,52)|0;h=J[699344];J[699344]=0;j=a+8|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if((h|0)!=1){J[699344]=0;h=Io(e,8,6246,6247,6248,6249,6250);f=J[699344];J[699344]=0;if((f|0)==1)break x;J[h+4>>2]=J[h+4>>2]+1;e=J[a+20>>2];y:{if(!e)break y;f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(f)break y;kc[J[J[e>>2]+4>>2]](e)}J[a+20>>2]=h;J[a+24>>2]=2438824;J[a+28>>2]=0;J[699344]= +0;e=_(4,52)|0;h=J[699344];J[699344]=0;if((h|0)==1)break w;J[699344]=0;h=Io(e,8,6246,6247,6248,6249,6250);f=J[699344];J[699344]=0;if((f|0)==1)break v;J[h+4>>2]=J[h+4>>2]+1;e=J[a+28>>2];z:{if(!e)break z;f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(f)break z;kc[J[J[e>>2]+4>>2]](e)}H[a+32|0]=0;J[a+28>>2]=h;J[699344]=0;e=aa(6252,d+104|0,b|0)|0;h=J[699344];J[699344]=0;f=1;if((h|0)==1)break s;J[e>>2]=2438660;if(!K[e+32|0]){J[699344]=0;da(5282,e|0,1);h=J[699344];J[699344]=0;if((h|0)==1)break r;f=K[e+32|0]!=0}J[e+24>>2]= +2392964;J[e>>2]=2392932;h=J[e+28>>2];if(h){g=J[h+4>>2]-1|0;J[h+4>>2]=g;if(!g)kc[J[J[h>>2]+4>>2]](h);J[e+28>>2]=0}J[e+16>>2]=2392964;h=J[e+20>>2];if(h){g=J[h+4>>2]-1|0;J[h+4>>2]=g;if(!g)kc[J[J[h>>2]+4>>2]](h);J[e+20>>2]=0}wc(e+8|0);if(!f)break q;b=J[b>>2];if(!b)break u;c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+96|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break t;b=Z()|0;break e}b=Z()|0;J[a+16>>2]=2392964;break c}b=Z()|0;uc(e);J[a+16>>2]=2392964;c=J[a+20>>2];if(!c)break c;e=J[c+4>>2]-1|0;J[c+4>>2]= +e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0;break c}b=Z()|0;J[a+24>>2]=2392964;break d}b=Z()|0;uc(e);J[a+24>>2]=2392964;c=J[a+28>>2];if(!c)break d;e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0;break d}J[d+96>>2]=0}J[699344]=0;aa(5153,j|0,d+96|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;b=J[d+96>>2];J[d+96>>2]=0;if(!b)break p;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break p;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!= +1)break p}break b}b=Z()|0;break e}b=Z()|0;Ed(e);break e}c=J[c+8>>2];f=J[(c?c+12|0:2743576)>>2];J[699344]=0;h=aa(5149,d+96|0,f|0)|0;c=J[699344];J[699344]=0;A:{B:{C:{D:{E:{if((c|0)!=1){J[d+88>>2]=0;c=J[685894];J[d+92>>2]=c;J[d+84>>2]=c;J[d+80>>2]=0;J[d+76>>2]=c;J[d+72>>2]=0;J[699344]=0;da(6232,d- -64|0,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break E;c=0;e=J[d+64>>2];if(e)c=J[e+8>>2];i=d- -64|0;wc(i);e=J[h>>2];J[699344]=0;g=aa(6237,e|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break D;e=f+g|0;c=e; +if((g|0)<=0)break A;J[699344]=0;c=ga(5339,i|0,f|0,g|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break C;f=J[c>>2];F:{if(f){g=J[J[f>>2]+28>>2];J[699344]=0;ca(g|0,d+56|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break F;b=Z()|0;wc(c);break f}J[d+56>>2]=0}J[699344]=0;aa(5153,d+72|0,d+56|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){f=J[d+56>>2];J[d+56>>2]=0;if(!f)break B;J[699344]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)!=1){if(g)break B;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]= +0;if((f|0)!=1)break B}break b}b=Z()|0;zc(d+56|0);wc(c);break f}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;break f}b=Z()|0;break f}f=J[d+72>>2];J[d+76>>2]=J[(f?f+12|0:2743576)>>2];wc(c);c=e}G:{while(1){f=K[c|0];if(!f)break G;if(!((f|0)==35|(f|0)==63)){c=c+1|0;continue}break}J[699344]=0;f=aa(5149,d+56|0,c|0)|0;g=J[699344];J[699344]=0;H:{if((g|0)!=1){g=J[f>>2];I:{if(g){i=J[J[g>>2]+28>>2];J[699344]=0;ca(i|0,d+48|0,g|0,1);g=J[699344];J[699344]=0;if((g|0)!=1)break I;b=Z()|0;wc(f);break f}J[d+48>>2]=0}J[699344]= +0;aa(5153,d+88|0,d+48|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){g=J[d+48>>2];J[d+48>>2]=0;if(!g)break H;J[699344]=0;i=J[g+4>>2]-1|0;J[g+4>>2]=i;k=J[699344];J[699344]=0;if((k|0)!=1){if(i)break H;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)!=1)break H}break b}b=Z()|0;zc(d+48|0);wc(f);break f}b=Z()|0;break f}g=J[d+88>>2];J[d+92>>2]=J[(g?g+12|0:2743576)>>2];wc(f)}if(c>>>0>e>>>0){J[699344]=0;c=ga(5339,d+48|0,e|0,c-e|0)|0;e=J[699344];J[699344]=0;J:{if((e|0)!=1){e=J[c>>2];K:{if(e){f=J[J[e>>2]+ +28>>2];J[699344]=0;ca(f|0,d+40|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break K;b=Z()|0;wc(c);break f}J[d+40>>2]=0}J[699344]=0;aa(5153,d+80|0,d+40|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){e=J[d+40>>2];J[d+40>>2]=0;if(!e)break J;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break J;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break J}break b}b=Z()|0;zc(d+40|0);wc(c);break f}b=Z()|0;break f}e=J[d+80>>2];J[d+84>>2]=J[(e?e+12|0:2743576)>>2];wc(c)}L:{M:{c= +J[b>>2];if(K[J[(c?c+12|0:2743576)>>2]]==47){J[699344]=0;da(6253,d+40|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+40>>2];N:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+32|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break N;b=Z()|0;break g}J[d+32>>2]=0}J[699344]=0;aa(5153,d+80|0,d+32|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+32>>2];J[d+32>>2]=0;if(!b)break M;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break M;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break M}break b}b=Z()|0;zc(d+32|0);break g}b=Z()|0;break f}J[699344]=0;c=aa(5620,d+24|0,47)|0;e=J[699344];J[699344]=0;O:{P:{Q:{if((e|0)!=1){J[699344]=0;e=d+32|0;ca(5292,e|0,d+80|0,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break Q;J[699344]=0;f=d+16|0;da(6253,f|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break P;J[699344]=0;ca(5292,d+40|0,e|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break O;b=J[d+40>>2];R:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d+140|0,b|0,1);b=J[699344];J[699344]= +0;if((b|0)!=1)break R;b=Z()|0;break j}J[d+140>>2]=0}J[699344]=0;aa(5153,d+80|0,d+140|0)|0;b=J[699344];J[699344]=0;S:{if((b|0)!=1){b=J[d+140>>2];J[d+140>>2]=0;if(!b)break S;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break S;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break S}break b}b=Z()|0;zc(d+140|0);break j}b=J[d+80>>2];J[d+84>>2]=J[(b?b+12|0:2743576)>>2];wc(d+40|0);wc(d+16|0);wc(d+32|0);wc(c);break L}b=Z()|0;break f}b=Z()|0;wc(c);break f}b= +Z()|0;break h}b=Z()|0;break i}b=J[d+80>>2];J[d+84>>2]=J[(b?b+12|0:2743576)>>2];wc(d+40|0)}J[699344]=0;b=d+32|0;ca(5292,b|0,d+72|0,d+80|0);c=J[699344];J[699344]=0;T:{U:{if((c|0)!=1){J[699344]=0;c=d+8|0;ca(5292,c|0,b|0,d+88|0);b=J[699344];J[699344]=0;if((b|0)==1)break U;J[699344]=0;da(6238,d+40|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break T;b=J[d+40>>2];V:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+16|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break V;b=Z()|0;break m}J[d+16>>2]=0}J[699344]= +0;aa(5153,j|0,d+16|0)|0;b=J[699344];J[699344]=0;W:{if((b|0)!=1){b=J[d+16>>2];J[d+16>>2]=0;if(!b)break W;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break W;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break W}break b}b=Z()|0;zc(d+16|0);break m}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2743576)>>2];wc(d+40|0);wc(d+8|0);wc(d+32|0);wc(d+72|0);wc(d+80|0);wc(d+88|0);wc(h);break o}b=Z()|0;break f}b=Z()|0;break k}b=Z()|0;break l}b=J[a+8>>2];J[a+12>>2]=J[(b?b+ +12|0:2743576)>>2]}fc=d+144|0;break a}b=Z()|0;zc(d+96|0);break e}wc(d+40|0)}wc(d+8|0)}wc(d+32|0);break f}wc(d+40|0)}wc(d+16|0)}wc(d+32|0);wc(c);break f}wc(d+40|0)}wc(d+72|0);wc(d+80|0);wc(d+88|0);wc(h)}J[a+24>>2]=2392964;c=J[a+28>>2];if(!c)break d;e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0}J[a+16>>2]=2392964;c=J[a+20>>2];if(!c)break c;e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0}wc(j);ba(b|0);B()}ea(0)|0;Bc();B()}J[a>>2]=2438660;return a|0}function Lcb(a, +b,c){a=a|0;b=b|0;c=c|0;var d=Q(0),e=0,f=0,g=0,h=0,i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=Q(0),p=Q(0),q=Q(0),r=Q(0),s=0,t=0,u=Q(0),v=Q(0),w=0,x=0,y=Q(0),z=0,A=0,C=0,D=Q(0),E=0,F=0,G=0,H=Q(0),K=Q(0),L=Q(0),M=Q(0),O=Q(0),S=Q(0),T=0,U=Q(0),V=0,W=Q(0),X=0,Y=0,da=0,ea=0,fa=0,ha=0,ia=Q(0),ja=0,ka=0;g=fc-48|0;fc=g;J[a>>2]=349208;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+36>>2]=0;J[a+40>>2]=1065353216;J[a+52>>2]=0;J[a+56>>2]=0;J[a+96>>2]=1;J[a+88>>2]=0;J[a+92>> +2]=1;J[a+80>>2]=0;J[a+84>>2]=0;J[a+72>>2]=1056964608;J[a+76>>2]=1065353216;I[a+68>>1]=0;J[a+60>>2]=1065353216;J[a+64>>2]=1065353216;f=a+100|0;e=f;J[e>>2]=0;J[e+4>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[699344]=0;e=_(4,24)|0;h=J[699344];J[699344]=0;if((h|0)==1){a=Z()|0;xk(f);ba(a|0);B()}f=e+24|0;J[a+152>>2]=f;J[a+144>>2]=e;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]= +0;J[a+148>>2]=f;Ac(a+160|0,0,100);J[a+260>>2]=4;xc(a+12|0,b,80);J[699344]=0;V=a+92|0;aa(2342,V|0,b+80|0)|0;b=J[699344];J[699344]=0;z=a+248|0;a:{b:{c:{d:{e:{f:{if((b|0)!=1){if(!c)break f;J[699344]=0;$(2360,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f}e=Z()|0;break e}b=J[a+100>>2];J[a+280>>2]=b;q=Q(1/+(b>>>0));g:{h:{b=J[a+260>>2];if(!b){J[a+264>>2]=0;J[a+268>>2]=0;A=a+272|0;b=A;J[b>>2]=0;J[b+4>>2]=0;E=a+276|0;F=a+268|0;G=a+264|0;break h}f=J[a+212>>2];c=0;while(1){d=N[(c<<2)+349320>>2];h=J[f+P(c, +12)>>2];e=0;while(1){t=h+(e<<3)|0;i=N[(e<<2)+349320>>2];j=Q(j+Q(Q(d*N[t+4>>2])*i));k=Q(k+Q(Q(d*N[t>>2])*i));e=e+1|0;if((b|0)!=(e|0))continue;break}c=c+1|0;if((b|0)!=(c|0))continue;break}N[a+276>>2]=j;N[a+272>>2]=j;N[a+268>>2]=k;N[a+264>>2]=k;E=a+276|0;A=a+272|0;F=a+268|0;G=a+264|0;if(!b)break h;n=k;i=j;while(1){d=Q(Q(1)-l);H=Q(d*Q(d*d));u=Q(l*Q(3));K=Q(d*Q(d*u));u=Q(d*Q(l*u));L=Q(l*Q(l*l));o=Q(0);while(1){d=Q(Q(1)-o);M=Q(d*Q(d*d));v=Q(o*Q(3));O=Q(d*Q(d*v));v=Q(d*Q(o*v));S=Q(o*Q(o*o));c=0;m=Q(0);p= Q(0);while(1){t=J[f+P(c,12)>>2];e=0;while(1){h=t+(e<<3)|0;d=H;i:{j:switch(c-1|0){case 0:d=K;break i;case 1:d=u;break i;case 2:break j;default:break i}d=L}y=Q(d*N[h>>2]);r=Q(d*N[h+4>>2]);d=M;k:{l:switch(e-1|0){case 0:d=O;break k;case 1:d=v;break k;case 2:break l;default:break k}d=S}p=Q(p+Q(r*d));m=Q(m+Q(y*d));e=e+1|0;if((b|0)!=(e|0))continue;break}c=c+1|0;if((b|0)!=(c|0))continue;break}k=k>m?k:m;N[a+268>>2]=k;j=j>p?j:p;N[a+276>>2]=j;n=m>n?n:m;N[a+264>>2]=n;i=i>2]=i;o=Q(o+q);if(o<=Q(1))continue; -break}l=Q(l+q);if(l<=Q(1))continue;break}break g}n=k;i=j;while(1){d=Q(0);while(1){i=iQ(0)?j:Q(0);k=k>Q(0)?k:Q(0);d=Q(d+q);if(d<=Q(1))continue;break}m=Q(m+q);if(m<=Q(1))continue;break}N[F>>2]=k;N[E>>2]=j;N[G>>2]=n;N[A>>2]=i}d=Q(k-n);j=Q(j-i);d=d>j?d:j;m:{if(Q(R(d))>2]=c;J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;n:{if(c>>>0>=1073741824){J[695492]=0;_(2266,g+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break n; -break a}J[695492]=0;b=c<<2;e=$(4,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break n;J[g+24>>2]=e;f=b+e|0;J[g+32>>2]=f;h=c&7;if(h){b=0;while(1){J[e>>2]=2143289344;e=e+4|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}if((c-1&1073741823)>>>0>=7)while(1){J[e+24>>2]=2143289344;J[e+28>>2]=2143289344;J[e+16>>2]=2143289344;J[e+20>>2]=2143289344;J[e+8>>2]=2143289344;J[e+12>>2]=2143289344;J[e>>2]=2143289344;J[e+4>>2]=2143289344;e=e+32|0;if((f|0)!=(e|0))continue;break}J[695492]=0;J[g+28>>2]=f;f=ga(2383,g+36|0,c| -0,g+24|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;c=J[z>>2];if(c){b=J[a+252>>2];e=c;if((b|0)!=(e|0)){while(1){e=b-12|0;h=J[e>>2];if(h){J[b-8>>2]=h;qc(h)}b=e;if((e|0)!=(c|0))continue;break}e=J[z>>2]}J[a+252>>2]=c;qc(e);J[a+256>>2]=0;J[a+248>>2]=0;J[a+252>>2]=0}J[a+248>>2]=J[f>>2];J[a+252>>2]=J[f+4>>2];J[a+256>>2]=J[f+8>>2];J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;b=J[g+24>>2];if(b){J[g+28>>2]=b;qc(b)}e=J[a+280>>2];J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;b=e+1|0;o:{if(b){p:{q:{if(b>>>0>=536870912){J[695492]= -0;_(2377,g+24|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break q}J[695492]=0;c=b<<3;b=$(4,c|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break p}e=Z()|0;break o}J[g+24>>2]=b;f=b+c|0;J[g+32>>2]=f;wc(b,0,c);J[g+28>>2]=f;if(!e)break c}W=Q(Q(1)/Q(e>>>0));j=Q(0);while(1){J[g+20>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;C=0;s=0;r:{b=e+1|0;if(!b)break r;if(b>>>0>=536870912){J[695492]=0;_(2377,g+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;e=Z()|0;a=J[g+12>>2];if(!a)break o;J[g+16>>2]=a;qc(a);break o}J[695492]= -0;b=b<<3;s=$(4,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[g+12>>2]=s;C=b+s|0;J[g+20>>2]=C;wc(s,0,b);J[g+16>>2]=C;break r}e=Z()|0;break o}n=Q(W+j);H=Q(n*Q(n*n));r=Q(Q(1)-j);K=Q(r*Q(r*r));d=Q(j*Q(3));u=Q(r*Q(r*d));L=Q(r*Q(j*d));d=Q(Q(1)-n);M=Q(d*Q(d*d));i=Q(n*Q(3));O=Q(d*Q(d*i));v=Q(d*Q(n*i));fa=e>>>0<=1?1:e;S=Q(j*Q(j*j));D=Q(e-1|0);X=J[a+236>>2];Y=J[a+212>>2];w=J[a+260>>2];i=Q(0);x=0;ha=J[g+24>>2];while(1){s:{if(!(x?T:0)){t:{if(!w){m=Q(0);p=Q(0);break t}d=Q(Q(1)-i);k=Q(d*Q(d*d));l=Q(i*Q(3));o=Q(d* +break}l=Q(l+q);if(l<=Q(1))continue;break}break g}n=k;i=j;while(1){d=Q(0);while(1){i=iQ(0)?j:Q(0);k=k>Q(0)?k:Q(0);d=Q(d+q);if(d<=Q(1))continue;break}m=Q(m+q);if(m<=Q(1))continue;break}N[F>>2]=k;N[E>>2]=j;N[G>>2]=n;N[A>>2]=i}d=Q(k-n);j=Q(j-i);d=d>j?d:j;m:{if(Q(R(d))>2]=c;J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;n:{if(c>>>0>=1073741824){J[699344]=0;$(2269,g+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break n; +break a}J[699344]=0;b=c<<2;e=_(4,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break n;J[g+24>>2]=e;f=b+e|0;J[g+32>>2]=f;h=c&7;if(h){b=0;while(1){J[e>>2]=2143289344;e=e+4|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}if((c-1&1073741823)>>>0>=7)while(1){J[e+24>>2]=2143289344;J[e+28>>2]=2143289344;J[e+16>>2]=2143289344;J[e+20>>2]=2143289344;J[e+8>>2]=2143289344;J[e+12>>2]=2143289344;J[e>>2]=2143289344;J[e+4>>2]=2143289344;e=e+32|0;if((f|0)!=(e|0))continue;break}J[699344]=0;J[g+28>>2]=f;f=ga(2361,g+36|0,c| +0,g+24|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;c=J[z>>2];if(c){b=J[a+252>>2];e=c;if((b|0)!=(e|0)){while(1){e=b-12|0;h=J[e>>2];if(h){J[b-8>>2]=h;uc(h)}b=e;if((e|0)!=(c|0))continue;break}e=J[z>>2]}J[a+252>>2]=c;uc(e);J[a+256>>2]=0;J[a+248>>2]=0;J[a+252>>2]=0}J[a+248>>2]=J[f>>2];J[a+252>>2]=J[f+4>>2];J[a+256>>2]=J[f+8>>2];J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;b=J[g+24>>2];if(b){J[g+28>>2]=b;uc(b)}e=J[a+280>>2];J[g+32>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;b=e+1|0;o:{if(b){p:{q:{if(b>>>0>=536870912){J[699344]= +0;$(2355,g+24|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break q}J[699344]=0;c=b<<3;b=_(4,c|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break p}e=Z()|0;break o}J[g+24>>2]=b;f=b+c|0;J[g+32>>2]=f;Ac(b,0,c);J[g+28>>2]=f;if(!e)break c}W=Q(Q(1)/Q(e>>>0));j=Q(0);while(1){J[g+20>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;C=0;s=0;r:{b=e+1|0;if(!b)break r;if(b>>>0>=536870912){J[699344]=0;$(2355,g+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;e=Z()|0;a=J[g+12>>2];if(!a)break o;J[g+16>>2]=a;uc(a);break o}J[699344]= +0;b=b<<3;s=_(4,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[g+12>>2]=s;C=b+s|0;J[g+20>>2]=C;Ac(s,0,b);J[g+16>>2]=C;break r}e=Z()|0;break o}n=Q(W+j);H=Q(n*Q(n*n));r=Q(Q(1)-j);K=Q(r*Q(r*r));d=Q(j*Q(3));u=Q(r*Q(r*d));L=Q(r*Q(j*d));d=Q(Q(1)-n);M=Q(d*Q(d*d));i=Q(n*Q(3));O=Q(d*Q(d*i));v=Q(d*Q(n*i));fa=e>>>0<=1?1:e;S=Q(j*Q(j*j));D=Q(e-1|0);X=J[a+236>>2];Y=J[a+212>>2];w=J[a+260>>2];i=Q(0);x=0;ha=J[g+24>>2];while(1){s:{if(!(x?T:0)){t:{if(!w){m=Q(0);p=Q(0);break t}d=Q(Q(1)-i);k=Q(d*Q(d*d));l=Q(i*Q(3));o=Q(d* Q(d*l));l=Q(d*Q(i*l));q=Q(i*Q(i*i));p=Q(0);b=0;m=Q(0);while(1){f=J[P(b,12)+Y>>2];e=0;while(1){c=f+(e<<3)|0;d=K;u:{v:switch(b-1|0){case 0:d=u;break u;case 1:d=L;break u;case 2:break v;default:break u}d=S}y=Q(d*N[c>>2]);U=Q(d*N[c+4>>2]);d=k;w:{x:switch(e-1|0){case 0:d=o;break w;case 1:d=l;break w;case 2:break x;default:break w}d=q}m=Q(m+Q(U*d));p=Q(p+Q(y*d));e=e+1|0;if((w|0)!=(e|0))continue;break}b=b+1|0;if((w|0)!=(b|0))continue;break}}d=N[A>>2];d=Q(Q(Q(m-d)*D)/Q(N[E>>2]-d));y:{if(Q(R(d))>2];d=Q(Q(Q(p-d)*D)/Q(N[F>>2]-d));if(Q(R(d))>2];f=J[b>>2]}k=Q(W+i);z:{if(!w){m=Q(0);p=Q(0);break z}d=Q(Q(1)-k);o=Q(d*Q(d*d));q=Q(k*Q(3));l=Q(d*Q(d*q));q=Q(d*Q(k*q));y=Q(k*Q(k*k));p=Q(0);b=0;m=Q(0);while(1){t=J[P(b,12)+Y>>2];e=0;while(1){h=t+(e<<3)|0;d=M;A:{B:switch(b-1|0){case 0:d=O;break A;case 1:d=v;break A;case 2:break B;default:break A}d=H}U=Q(d*N[h>>2]);ia=Q(d*N[h+4>>2]);d=o;C:{D:switch(e- 1|0){case 0:d=l;break C;case 1:d=q;break C;case 2:break D;default:break C}d=y}m=Q(m+Q(ia*d));p=Q(p+Q(U*d));e=e+1|0;if((w|0)!=(e|0))continue;break}b=b+1|0;if((w|0)!=(b|0))continue;break}}o=N[a+268>>2];d=N[a+264>>2];x=x+1|0;e=(x<<3)+s|0;l=N[a+272>>2];l=Q(Q(Q(m-l)*D)/Q(N[a+276>>2]-l));E:{if(Q(R(l))>2]=b;d=Q(Q(Q(p-d)*D)/Q(o-d));F:{if(Q(R(d))>2]=h;e=(b|0)<(c|0);da=e?c:b;t=e?b:c;b=da-t|0;ea=b+1&3;c=(f|0)>(h| 0);e=c?h:f;ja=c?f:h;c=J[X+12>>2];l=Q(Q(i*N[c+4>>2])*j);o=Q(Q(i*N[c>>2])*r);d=Q(Q(1)-i);c=J[X>>2];d=Q(l+Q(o+Q(Q(Q(d*N[c>>2])*r)+Q(j*Q(d*N[c+4>>2])))));f=J[a+280>>2];ka=b>>>0>2;while(1){b=e;G:{if(e>>>0>=f>>>0)break G;h=J[z>>2]+P(e,12)|0;c=0;e=t;if(ea)while(1){if(e>>>0>>0)N[J[h>>2]+(e<<2)>>2]=d;e=e+1|0;c=c+1|0;if((ea|0)!=(c|0))continue;break}if(!ka)break G;while(1){if(e>>>0>>0)N[J[h>>2]+(e<<2)>>2]=d;c=e+1|0;if(c>>>0>>0)N[J[h>>2]+(c<<2)>>2]=d;c=e+2|0;if(c>>>0>>0)N[J[h>>2]+(c<<2)>>2]=d;c=e+ -3|0;if(c>>>0>>0)N[J[h>>2]+(c<<2)>>2]=d;e=e+4|0;if((c|0)!=(da|0))continue;break}}e=b+1|0;if((b|0)!=(ja|0))continue;break}i=k;if((x|0)!=(fa|0))continue;break}J[695492]=0;ca(2378,g+24|0,s|0,C|0);b=J[695492];J[695492]=0;if((b|0)!=1){if(s)qc(s);j=n;e=J[a+280>>2];T=T+1|0;if(e>>>0<=T>>>0)break d;continue}break}e=Z()|0;if(!s)break o;qc(s)}a=J[g+24>>2];if(!a)break e;J[g+28>>2]=a;qc(a);break e}e=Z()|0;a=J[g+24>>2];if(!a)break e;J[g+28>>2]=a;qc(a)}ol(z);Qe(V);ba(e|0);B()}b=J[g+24>>2];if(!b)break b}J[g+28>> -2]=b;qc(b)}bc=g+48|0;return a|0}B()}function MVa(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;d=bc-128|0;bc=d;f=cB(a,b,c);J[f+316>>2]=0;J[f+320>>2]=0;J[f>>2]=827392;J[f+324>>2]=0;J[f+328>>2]=0;J[f+332>>2]=0;J[f+336>>2]=0;o=f+340|0;a=o;J[a>>2]=0;J[a+4>>2]=0;J[f+348>>2]=0;J[f+352>>2]=0;J[f+356>>2]=0;J[f+360>>2]=0;J[d+112>>2]=13;J[d+96>>2]=13;J[695492]=0;J[d+80>>2]=13;a=d+96|0;aa(3289,c|0,a|0)|0;e=J[695492];J[695492]=0;m=f+352|0;p=f+328|0;a:{b:{c:{d:{if((e|0)== -1)break d;b=J[b+24>>2];J[695492]=0;ha(3207,a|0,b|0,d+80|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;_(3205,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;a=d+112|0;b=ha(3203,J[d+88>>2],804102,a|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;e:{if(!b)break e;J[695492]=0;ca(3290,d|0,a|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break c;if(H[f+327|0]<0)qc(J[f+316>>2]);a=J[d+4>>2];J[f+316>>2]=J[d>>2];J[f+320>>2]=a;J[f+324>>2]=J[d+8>>2];a=K[f+327|0];if(!(a<<24>>24<0?J[f+ -320>>2]:a))break e;J[f+4>>2]=J[f+4>>2]|512}J[695492]=0;_(3205,d+112|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}b=Z()|0;break a}b=Z()|0;break a}J[695492]=0;J[d+64>>2]=13;a=ga(3291,c|0,810672,d- -64|0)|0;b=J[695492];J[695492]=0;f:{g:{h:{i:{j:{k:{if((b|0)==1)break k;l:{if(J[a>>2]!=6)break l;J[f+4>>2]=J[f+4>>2]|1024;q=J[J[d+72>>2]+12>>2];if((q|0)<=0)break l;j=d+12|0;b=0;while(1){J[d+48>>2]=13;J[695492]=0;a=ha(3283,J[d+72>>2],b|0,d+48|0,0)|0;e=J[695492];J[695492]=0;m:{n:{if((e|0)!=1){o:{if(!a)break o; -e=J[d+48>>2]-3|0;switch(e|0){case 0:case 3:break n;default:break o}}J[695492]=0;_(3205,d+48|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m}b=Z()|0;break a}l=0;H[d+46|0]=0;I[d+44>>1]=0;H[d+42|0]=0;I[d+40>>1]=0;a=0;h=0;k=0;p:{q:{r:{s:{t:{u:{v:{w:{x:switch(e|0){case 3:a=J[d+56>>2];if(J[a+12>>2]<2){a=0;break w}g=0;J[695492]=0;J[d>>2]=13;e=ha(3283,a|0,0,d|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1){a=0;break g}a=0;y:{z:{A:{B:{C:{D:{if(J[e>>2]!=3){e=0;break D}J[695492]=0;e=$(4,12)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break C;J[695492]=0;i=aa(3187,e|0,J[d+8>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break B;e=J[i+4>>2];g=J[i>>2];J[695492]=0;ca(3281,d+28|0,g|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break A;I[d+44>>1]=L[d+36>>1];H[d+46|0]=K[d+38|0];e=J[d+32>>2];l=J[d+28>>2];g=K[d+39|0];qc(dd(i))}J[695492]=0;_(3205,d|0);i=J[695492];J[695492]=0;if((i|0)!=1)break y;break g}b=Z()|0;break z}b=Z()|0;qc(e);break z}b=Z()|0}g=0;break f}J[695492]=0;i=ha(3283,J[d+56>>2],1,d|0,0)|0;n=J[695492];J[695492]=0;if((n| -0)==1)break g;E:{F:{G:{H:{if(J[i>>2]==3){J[695492]=0;a=$(4,12)|0;h=J[695492];J[695492]=0;if((h|0)==1)break H;J[695492]=0;i=aa(3187,a|0,J[d+8>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break G;a=J[i+4>>2];h=J[i>>2];J[695492]=0;ca(3281,d+28|0,h|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break F;I[d+40>>1]=L[d+36>>1];H[d+42|0]=K[d+38|0];h=J[d+32>>2];a=J[d+28>>2];k=K[d+39|0];qc(dd(i))}J[695492]=0;_(3205,d|0);i=J[695492];J[695492]=0;if((i|0)==1)break g;if(g<<24>>24>=0)break v;J[695492]=0;ca(2672,d|0,l| -0,e|0);i=J[695492];J[695492]=0;e=1;if((i|0)!=1)break u;b=Z()|0;break f}b=Z()|0;a=0;break f}b=Z()|0;qc(a);break E}b=Z()|0}a=0;break f;case 0:break x;default:break w}J[695492]=0;a=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)==1)break t;J[695492]=0;e=aa(3187,a|0,J[d+56>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break s;a=J[e+4>>2];g=J[e>>2];J[695492]=0;ca(3281,d|0,g|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break r;I[d+40>>1]=L[d+8>>1];H[d+42|0]=K[d+10|0];h=J[d+4>>2];a=J[d>>2];k=K[d+11|0];qc(dd(e))}g= -0;e=0}J[d+4>>2]=e;J[d>>2]=l;H[d+10|0]=K[d+46|0];I[d+8>>1]=L[d+44>>1];H[d+11|0]=g;e=0}i=k<<24>>24;if((i|0)<0)break q;J[d+16>>2]=h;J[d+12>>2]=a;H[d+22|0]=K[d+42|0];I[d+20>>1]=L[d+40>>1];H[d+23|0]=k;break p}b=Z()|0;break a}b=Z()|0;qc(a);break a}b=Z()|0;break a}J[695492]=0;ca(2672,j|0,a|0,h|0);h=J[695492];J[695492]=0;if((h|0)!=1)break p;b=Z()|0;if(H[d+11|0]>=0)break f;qc(J[d>>2]);break f}h=J[f+356>>2];I:{if(h>>>0>2]){n=J[d+4>>2];J[h>>2]=J[d>>2];J[h+4>>2]=n;J[h+8>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>> -2]=0;J[d+4>>2]=0;J[h+20>>2]=J[j+8>>2];n=J[j+4>>2];J[h+12>>2]=J[j>>2];J[h+16>>2]=n;J[j>>2]=0;J[j+4>>2]=0;J[j+8>>2]=0;J[f+356>>2]=h+24;break I}J[695492]=0;da(3305,m|0,d|0);h=J[695492];J[695492]=0;if((h|0)==1)break i;if(H[d+23|0]>=0)break I;qc(J[d+12>>2])}if(H[d+11|0]<0)qc(J[d>>2]);J[695492]=0;_(3205,d+48|0);h=J[695492];J[695492]=0;if((h|0)==1)break h;if((i|0)<0)qc(a);if(!e)break m;qc(l)}b=b+1|0;if((q|0)!=(b|0))continue;break}}J[695492]=0;_(3205,d- -64|0);a=J[695492];J[695492]=0;if((a|0)==1)break k; -J[695492]=0;a=ga(3291,c|0,812131,d+112|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;if(J[a>>2]==1){J[f+4>>2]=J[f+4>>2]|2048;J[f+364>>2]=J[d+120>>2]}J[695492]=0;_(3205,d+112|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;a=ha(3203,J[d+88>>2],812380,d- -64|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J:{if(J[a>>2]!=6)break J;J[f+4>>2]=J[f+4>>2]|4096;h=J[J[d+72>>2]+12>>2];if((h|0)<=0)break J;k=0;while(1){J[695492]=0;a=ha(3283,J[d+72>>2],k|0,d+112|0,0)|0;b=J[695492];J[695492]=0; -if((b|0)==1)break j;K:{if(J[a>>2]!=1)break K;j=J[d+120>>2];b=J[f+344>>2];e=J[f+348>>2];if(b>>>0>>0){J[b>>2]=j;J[f+344>>2]=b+4;break K}L:{M:{N:{O:{c=J[o>>2];l=b-c>>2;a=l+1|0;P:{if(a>>>0>=1073741824){J[695492]=0;_(1589,o|0);a=J[695492];J[695492]=0;if((a|0)==1)break P;break L}e=e-c|0;g=e>>1;e=e>>>0>=2147483644?1073741823:a>>>0>>0?g:a;if(!e){g=0;break N}if(e>>>0<1073741824)break O;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break L}b=Z()|0;break a}J[695492]=0;g=$(4,e<<2)|0;a=J[695492]; -J[695492]=0;if((a|0)==1)break M}a=(l<<2)+g|0;J[a>>2]=j;j=a+4|0;if((b|0)!=(c|0))while(1){a=a-4|0;b=b-4|0;J[a>>2]=J[b>>2];if((b|0)!=(c|0))continue;break}J[f+348>>2]=(e<<2)+g;J[f+344>>2]=j;J[f+340>>2]=a;if(!c)break K;qc(c);break K}b=Z()|0;break a}B()}J[695492]=0;_(3205,d+112|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;k=k+1|0;if((h|0)!=(k|0))continue;break}}J[695492]=0;a=d- -64|0;_(3205,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;a=ha(3203,J[d+88>>2],804102,a|0,0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break k;Q:{R:{if(J[a>>2]!=6)break R;J[f+4>>2]=J[f+4>>2]|8192;e=J[J[d+72>>2]+12>>2];if((e|0)<=0)break R;b=0;while(1){J[695492]=0;a=ha(3283,J[d+72>>2],b|0,d+112|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break Q;S:{if(J[a>>2]!=3)break S;J[695492]=0;a=$(4,12)|0;c=J[695492];J[695492]=0;T:{U:{V:{if((c|0)!=1){J[695492]=0;c=aa(3187,a|0,J[d+120>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break V;a=J[c+4>>2];g=J[c>>2];J[695492]=0;ca(3281,d|0,g|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break U; -a=J[f+332>>2];W:{if(a>>>0>2]){g=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=g;J[a+8>>2]=J[d+8>>2];J[f+332>>2]=a+12;break W}J[695492]=0;da(3306,p|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break T;if(H[d+11|0]>=0)break W;qc(J[d>>2])}qc(dd(c));break S}b=Z()|0;break a}b=Z()|0;qc(a);break a}b=Z()|0;break a}b=Z()|0;if(H[d+11|0]>=0)break a;qc(J[d>>2]);break a}J[695492]=0;_(3205,d+112|0);a=J[695492];J[695492]=0;if((a|0)==1)break Q;b=b+1|0;if((e|0)!=(b|0))continue;break}}J[695492]=0;_(3205,d- -64|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break k;J[695492]=0;_(3205,d+80|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;bc=d+128|0;return f|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;s0(d);break f}b=Z()|0;break f}b=Z()|0}if(k<<24>>24<0)qc(a);if(g<<24>>24>=0)break a;qc(l)}e=J[m>>2];if(e){c=J[m+4>>2];a=e;if((c|0)!=(a|0)){while(1){if(H[c-1|0]<0)qc(J[c-12>>2]);a=c-24|0;if(H[c-13|0]<0)qc(J[a>>2]);c=a;if((a|0)!=(e|0))continue;break}a=J[m>>2]}J[m+4>>2]=e;qc(a)}a=J[o>>2];if(a){J[f+344>>2]=a;qc(a)}sg(p);if(H[f+ -327|0]<0)qc(J[f+316>>2]);em(f);ba(b|0);B()}function YF(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;a:while(1){p=b-4|0;o=b-16|0;k=b-8|0;b:while(1){j=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{g=b-j>>3;switch(g|0){case 2:break j;case 0:case 1:break d;case 3:break f;case 5:break h;case 4:break i;default:break g}}d=b-8|0;a=J[d>>2];if(!a)break d;c=J[j>>2];k:{if(!c)break k;h=O[a+16>>3];i=O[c+16>>3];if(R(h-i)<=.01){if(O[a+32>>3]>3])break k;break d}if(!(h>2]=a;J[d>>2]=c; -a=J[j+4>>2];b=b-4|0;J[j+4>>2]=J[b>>2];J[b>>2]=a;return}QF(j,j+8|0,j+16|0,b-8|0);return}PF(j,j+8|0,j+16|0,j+24|0,b-8|0);return}if((g|0)<=6){e=j+16|0;vs(j,j+8|0,e);a=j+24|0;if((b|0)==(a|0))break d;while(1){c=a;k=J[a>>2];l:{if(!k)break l;f=J[e>>2];m:{if(!f)break m;h=O[k+16>>3];i=O[f+16>>3];if(R(h-i)<=.01){if(O[k+32>>3]>3])break m;break l}if(!(h>2];J[c>>2]=0;J[c+4>>2]=0;d=c;while(1){a=e;g=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=f;e=J[d+4>>2];J[d+4>>2]=g;n:{if(!e)break n;d= -J[e+4>>2];J[e+4>>2]=d-1;if(d)break n;gc[J[J[e>>2]+8>>2]](e);Vc(e)}o:{if((a|0)==(j|0)){a=j;break o}d=a;e=a-8|0;f=J[e>>2];if(!f)continue;h=O[k+16>>3];i=O[f+16>>3];if(R(h-i)<=.01){if(O[k+32>>3]>3])continue;break o}if(h>2]=k;d=J[a+4>>2];J[a+4>>2]=l;if(!d)break l;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break l;gc[J[J[d>>2]+8>>2]](d);Vc(d)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(c)break e;if((b|0)==(j|0))break d;o=g-2>>>1|0;a=o;while(1){f=a;p:{if((a|0)>(o|0))break p;a= -(a<<3)+j|0;e=f<<1;c=e|1;d=(c<<3)+j|0;e=e+2|0;q:{r:{if((g|0)<=(e|0)){e=c;break r}k=J[d>>2];if(!k){m=J[a>>2];e=c;break q}s:{l=J[d+8>>2];if(!l)break s;h=O[k+16>>3];i=O[l+16>>3];if(R(h-i)<=.01){if(O[k+32>>3]>3])break s;e=c;break r}if(h>2];c=J[d>>2];if(!c)break q;if(!m)break p;h=O[c+16>>3];i=O[m+16>>3];if(R(h-i)<=.01){if(!(O[c+32>>3]>3]))break q;break p}if(h>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;k=J[d+4>>2];J[d>>2]=0;J[d+ -4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=k;t:{if(!d)break t;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break t;gc[J[J[d>>2]+8>>2]](d);Vc(d)}u:{if((e|0)>(o|0))break u;a=e<<1;e=a|1;d=(e<<3)+j|0;k=a+2|0;v:{if((k|0)>=(g|0))break v;l=0;a=c;n=J[d>>2];if(!n)continue;a=J[d+8>>2];w:{if(!a)break w;h=O[n+16>>3];i=O[a+16>>3];if(R(h-i)<=.01){if(O[n+32>>3]>3])break w;break v}if(!(h>2];if(!k)continue;if(!m)break u;h=O[k+16>>3];i=O[m+16>>3];if(R(h-i)<=.01){l=k;if(!(O[k+32>>3]>3]))continue;break u}l=k;if(!(h>2]=m;a=J[c+4>>2];J[c+4>>2]=p;if(!a)break p;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break p;gc[J[J[a>>2]+8>>2]](a);Vc(a)}a=f-1|0;if(f)continue;break}while(1){k=b;m=J[j+4>>2];o=J[j>>2];J[j>>2]=0;J[j+4>>2]=0;c=g;p=g-2>>>1|0;a=j;d=0;while(1){f=d<<1;b=f|1;e=a;d=(d<<3)+a|0;a=d+8|0;f=f+2|0;x:{if((f|0)>=(c|0)){d=b;break x}g=J[d+8>>2];if(!g){d=b;break x}l=d+16|0;n=J[l>>2];y:{if(!n)break y;h=O[g+16>>3];i=O[n+16>>3];if(R(h-i)<=.01){d=b;if(O[g+32>>3]> -3])break y;break x}d=b;if(!(h>2];l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[e+4>>2];J[e>>2]=f;J[e+4>>2]=l;z:{if(!b)break z;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break z;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((d|0)<=(p|0))continue;break}b=k-8|0;A:{B:{if((b|0)==(a|0)){J[a>>2]=o;d=a;a=J[a+4>>2];J[d+4>>2]=m;if(!a)break A;d=J[a+4>>2];J[a+4>>2]=d-1;if(!d)break B;break A}e=k-4|0;k=J[e>>2];d=J[b>>2];J[b>>2]=0;J[e>>2]=0;J[a>>2]=d;d=J[a+4>>2];J[a+4>>2]=k;C:{if(!d)break C;k=J[d+4>>2];J[d+4>>2]=k-1;if(k)break C; -gc[J[J[d>>2]+8>>2]](d);Vc(d)}J[b>>2]=o;d=J[e>>2];J[e>>2]=m;D:{if(!d)break D;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break D;gc[J[J[d>>2]+8>>2]](d);Vc(d)}d=(a+8|0)-j>>3;if((d|0)<2)break A;f=d-2>>>1|0;e=(f<<3)+j|0;d=J[e>>2];if(!d)break A;k=J[a>>2];E:{if(k){h=O[d+16>>3];i=O[k+16>>3];F:{if(R(h-i)<=.01){if(O[d+32>>3]>3])break F;break A}if(!(h>2];J[a>>2]=0;J[a+4>>2]=0;g=J[e>>2];while(1){d=e;m=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=g;e=J[a+4>>2];J[a+4>>2]=m;G:{if(!e)break G;a=J[e+4>> -2];J[e+4>>2]=a-1;if(a)break G;gc[J[J[e>>2]+8>>2]](e);Vc(e)}if(!f)break E;f=f-1>>>1|0;e=(f<<3)+j|0;g=J[e>>2];if(!g)break E;h=O[g+16>>3];i=O[k+16>>3];if(R(h-i)<=.01){a=d;if(O[g+32>>3]>3])continue;break E}a=d;if(h>2];J[a>>2]=0;J[a+4>>2]=0;g=J[e>>2];while(1){d=e;m=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=g;e=J[a+4>>2];J[a+4>>2]=m;H:{if(!e)break H;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break H;gc[J[J[e>>2]+8>>2]](e);Vc(e)}if(!f)break E;a=d;f=f-1>>>1|0;e=(f<<3)+j|0;g=J[e>> -2];if(g)continue;break}}J[d>>2]=k;a=J[d+4>>2];J[d+4>>2]=l;if(!a)break A;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break A}gc[J[J[a>>2]+8>>2]](a);Vc(a)}g=c-1|0;if((c|0)>2)continue;break}break d}vs(j,j+8|0,b-8|0);break d}l=(g<<2&-8)+j|0;I:{if(g>>>0>=1E3){a=g<<1&-8;g=PF(j,a+j|0,l,a+l|0,k);break I}g=vs(j,l,k)}c=c-1|0;m=J[l>>2];J:{K:{L:{e=J[j>>2];if(!e)break L;if(!m){a=k;break K}h=O[e+16>>3];i=O[m+16>>3];if(R(h-i)<=.01){if(!(O[e+32>>3]>3]))break L;a=k;break K}if(!(h>2];if(d){f=k;break M}while(1){f=a;a=a-8|0;if((j|0)==(a|0))break J;d=J[a>>2];if(!d)continue;break}break M}while(1){f=a;a=d;d=J[a>>2];N:{if(!d)break N;h=O[d+16>>3];i=O[m+16>>3];if(R(h-i)<=.01){if(O[d+32>>3]>3])break M;break N}if(h>2]=d;J[a>>2]=e;d=J[j+4>>2];e=f-4|0;J[j+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}O:{f=j+8|0;if(f>>>0>=a>>>0)break O;while(1){n=J[l>>2];m=0;P:{Q:{d=J[f>>2];R:{if(!d)break R;if(!n){while(1){d= -J[f+8>>2];f=f+8|0;if(d)continue;break}break R}h=O[n+16>>3];while(1){S:{i=O[d+16>>3];if(R(i-h)<=.01){if(O[d+32>>3]>3])break S;m=d;break Q}if(h>i)break S;m=d;break R}d=J[f+8>>2];f=f+8|0;if(d)continue;break}}if(n)break Q;while(1){e=a;a=a-8|0;d=J[a>>2];if(!d)continue;break}break P}while(1){e=a;a=a-8|0;d=J[a>>2];if(!d)continue;h=O[d+16>>3];i=O[n+16>>3];if(R(h-i)<=.01){if(!(O[d+32>>3]>3]))continue;break P}if(!(h>>0>>0)break O;J[f>>2]=d;J[a>>2]=m;d=J[f+4>>2];e= -e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;l=(f|0)==(l|0)?a:l;f=f+8|0;g=g+1|0;continue}}T:{if((f|0)==(l|0))break T;a=J[l>>2];if(!a)break T;d=J[f>>2];U:{if(!d)break U;h=O[a+16>>3];i=O[d+16>>3];if(R(h-i)<=.01){if(O[a+32>>3]>3])break U;break T}if(!(h>2]=a;J[l>>2]=d;a=J[f+4>>2];J[f+4>>2]=J[l+4>>2];J[l+4>>2]=a;g=g+1|0}if(!g){d=SS(j,f);a=f+8|0;if(SS(a,b)){a=j;b=f;if(!d)continue a;break d}if(d)continue b}if((f-j|0)<(b-f|0)){YF(j,f,c);a=f+8|0;continue b}YF(f+8|0,b,c);a=j;b=f;continue a}if(!e)break d; -g=j+8|0;V:{a=J[k>>2];if(!a)break V;h=O[e+16>>3];i=O[a+16>>3];W:{if(R(h-i)<=.01){if(!(O[e+32>>3]>3]))break W;break V}if(h>2];Y:{if(!d)break Y;h=O[e+16>>3];i=O[d+16>>3];if(R(h-i)<=.01){if(O[e+32>>3]>3])break Y;break X}if(!(h>2]=a;J[k>>2]=d;a=J[g+4>>2];J[g+4>>2]=J[p>>2];J[p>>2]=a;g=g+8|0;break V}g=g+8|0;if((k|0)!=(g|0))continue;break}break d}a=k;if((g|0)==(a|0))break d;while(1){e=J[j>>2];l=0;d=J[g>>2];Z:{if(!d)break Z; -h=O[e+16>>3];while(1){_:{i=O[d+16>>3];if(R(h-i)<=.01){if(!(O[e+32>>3]>3]))break _;l=d;break Z}if(!(h>2];g=g+8|0;if(d)continue;break}}while(1){d=a;a=a-8|0;f=J[a>>2];if(!f)continue;h=O[e+16>>3];i=O[f+16>>3];$:{if(R(h-i)<=.01){if(O[e+32>>3]>3])continue;break $}if(h>>0<=g>>>0){j=g;continue c}else{J[g>>2]=f;J[a>>2]=l;e=J[g+4>>2];d=d-4|0;J[g+4>>2]=J[d>>2];J[d>>2]=e;g=g+8|0;continue}}}break}break}break}}function Exa(a,b,c,d,e){a=a|0; -b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;f=bc-128|0;bc=f;h=J[c+12>>2];J[f+120>>2]=J[c+8>>2];J[f+124>>2]=h;h=J[c+4>>2];J[f+112>>2]=J[c>>2];J[f+116>>2]=h;c=J[d+12>>2];J[f+104>>2]=J[d+8>>2];J[f+108>>2]=c;c=J[d+4>>2];J[f+96>>2]=J[d>>2];J[f+100>>2]=c;c=b+8|0;a:{if(J[b+8>>2]){ei(f+40|0,b,c);break a}J[f+40>>2]=0;md(f+40|0,0)}d=J[f+40>>2];J[f+40>>2]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if(d){J[695492]=0;h=J[d+4>>2]-1|0;J[d+4>>2]=h;i=J[695492]; -J[695492]=0;if((i|0)==1)break b;if(!h){J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b}if(J[b+12>>2]>0){d=Fz(f+40|0);h=J[b+12>>2];Ez(d,0-((h|0)>0?h:0)|0);Cs(d,f+112|0);Cs(d,f+96|0)}n:{d=J[f+96>>2];h=J[f+112>>2];o:{if((d|0)>(h|0))break o;g=h;h=J[f+104>>2];if((g|0)>=(h|0))break o;i=J[f+100>>2];g=J[f+116>>2];if((i|0)>(g|0))break o;j=g;g=J[f+108>>2];if((j|0)>=(g|0))break o;j=d;d=J[f+120>>2];if((j|0)>=(d|0)|(d|0)>(h|0))break o;d=J[f+124>>2];if((d|0)<=(i|0))break o;if((d|0)<=(g|0))break n}a= -Kc(f+40|0,2391001,2379760,1106,2405088,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break m;b=Z()|0;Fc(a);ba(b|0);B()}p:{if(J[c>>2]){ei(f+40|0,b,c);break p}J[f+40>>2]=0;md(f+40|0,0)}h=J[f+40>>2];q:{if(!h){d=0;break q}d=J[h+8>>2];J[695492]=0;J[f+40>>2]=0;i=J[h+4>>2]-1|0;J[h+4>>2]=i;g=J[695492];J[695492]=0;if((g|0)==1)break b;if(i)break q;J[695492]=0;_(4987,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break b}r:{if(J[c>>2]){ei(f+40|0,b,c);break r}J[f+40>>2]=0;md(f+40|0,0)}c=0;h=J[f+40>> -2];s:{if(!h)break s;c=J[h+12>>2];J[695492]=0;J[f+40>>2]=0;i=J[h+4>>2]-1|0;J[h+4>>2]=i;g=J[695492];J[695492]=0;if((g|0)==1)break b;if(i)break s;J[695492]=0;_(4987,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break b}g=J[f+104>>2];j=J[f+108>>2];i=J[f+96>>2];h=J[f+100>>2];k=J[f+124>>2];J[f+48>>2]=J[f+120>>2];J[f+52>>2]=k;k=J[f+116>>2];J[f+40>>2]=J[f+112>>2];J[f+44>>2]=k;Sj(f+40|0,0-i|0,0-h|0);h=j-h|0;i=g-i|0;if((i|0)==(d|0)){j=1;if((c|0)==(h|0))break e}r=i<<1;t:{if((r|0)<=(d-2|0)|(d+2|0)<=(r|0))break t; -g=h<<1;if((g|0)<=(c-2|0))break t;j=2;if((g|0)<(c+2|0))break e}s=P(i,3);u:{if((s|0)<=(d-3|0)|(d+3|0)<=(s|0))break u;j=3;g=P(h,3);if((g|0)<=(c-3|0))break u;if((g|0)<(c+3|0))break e}t=i<<2;v:{if((t|0)<=(d-4|0)|(d+4|0)<=(t|0))break v;g=h<<2;if((g|0)<=(c-4|0))break v;j=4;if((g|0)<(c+4|0))break e}u=P(i,5);w:{if((u|0)<=(d-5|0)|(d+5|0)<=(u|0))break w;j=5;g=P(h,5);if((g|0)<=(c-5|0))break w;if((g|0)<(c+5|0))break e}l=P(i,6);x:{if((l|0)<=(d-6|0)|(l|0)>=(d+6|0))break x;j=6;g=P(h,6);if((g|0)<=(c-6|0))break x; -if((g|0)<(c+6|0))break e}m=P(i,7);y:{if((m|0)<=(d-7|0)|(m|0)>=(d+7|0))break y;j=7;g=P(h,7);if((g|0)<=(c-7|0))break y;if((g|0)<(c+7|0))break e}v=i<<3;z:{if((v|0)<=(d-8|0)|(d+8|0)<=(v|0))break z;g=h<<3;if((g|0)<=(c-8|0))break z;j=8;if((g|0)<(c+8|0))break e}n=P(i,9);A:{if((n|0)<=(d-9|0)|(n|0)>=(d+9|0))break A;j=9;g=P(h,9);if((g|0)<=(c-9|0))break A;if((g|0)<(c+9|0))break e}o=P(i,10);B:{if((o|0)<=(d-10|0)|(o|0)>=(d+10|0))break B;j=10;g=P(h,10);if((g|0)<=(c-10|0))break B;if((g|0)<(c+10|0))break e}w=P(i, -11);C:{if((w|0)<=(d-11|0)|(d+11|0)<=(w|0))break C;j=11;g=P(h,11);if((g|0)<=(c-11|0))break C;if((g|0)<(c+11|0))break e}p=P(i,12);D:{if((p|0)<=(d-12|0)|(p|0)>=(d+12|0))break D;j=12;g=P(h,12);if((g|0)<=(c-12|0))break D;if((g|0)<(c+12|0))break e}q=P(i,13);E:{if((q|0)<=(d-13|0)|(q|0)>=(d+13|0))break E;j=13;g=P(h,13);if((g|0)<=(c-13|0))break E;if((g|0)<(c+13|0))break e}x=P(i,14);F:{if((x|0)<=(d-14|0)|(d+14|0)<=(x|0))break F;j=14;g=P(h,14);if((g|0)<=(c-14|0))break F;if((g|0)<(c+14|0))break e}g=15;k=P(h, -15);y=P(i,15);if(!((y|0)<=(d-15|0)|(d+15|0)<=(y|0)|(k|0)<=(c-15|0))){j=15;if((k|0)<(c+15|0))break e}j=(d|0)>(y|0);k=(c|0)>(k|0);G:{if(j&k|(P(i,45)|0)<(d|0)|(P(h,45)|0)<(c|0))break G;g=14;if((P(h,14)|0)<(c|0)&(d|0)>(x|0)|(P(i,42)|0)<(d|0)|(P(h,42)|0)<(c|0))break G;g=13;if((P(h,13)|0)<(c|0)&(d|0)>(q|0)|(P(i,39)|0)<(d|0)|(P(h,39)|0)<(c|0))break G;g=12;p=(d|0)>(p|0);q=(P(h,12)|0)<(c|0);if(p&q|(P(i,36)|0)<(d|0)|(P(h,36)|0)<(c|0))break G;g=11;if((P(h,11)|0)<(c|0)&(d|0)>(w|0)|(P(i,33)|0)<(d|0)|(P(h,33)| -0)<(c|0))break G;g=10;if((P(h,10)|0)<(c|0)&(d|0)>(o|0)|(P(i,30)|0)<(d|0)|(P(h,30)|0)<(c|0))break G;g=9;n=(d|0)>(n|0);o=(P(h,9)|0)<(c|0);if(n&o|(P(i,27)|0)<(d|0)|(P(h,27)|0)<(c|0))break G;g=8;if(h<<3<(c|0)&(d|0)>(v|0)|(P(i,24)|0)<(d|0)|(P(h,24)|0)<(c|0))break G;g=7;if((P(h,7)|0)<(c|0)&(d|0)>(m|0)|(P(i,21)|0)<(d|0)|(P(h,21)|0)<(c|0))break G;g=6;l=(d|0)>(l|0);m=(P(h,6)|0)<(c|0);if(l&m|(P(i,18)|0)<(d|0)|(P(h,18)|0)<(c|0))break G;g=5;if(k|((P(h,5)|0)<(c|0)&(d|0)>(u|0)|j))break G;g=4;if(q|(h<<2<(c|0)&(d| -0)>(t|0)|p))break G;g=3;if(o|((P(h,3)|0)<(c|0)&(d|0)>(s|0)|n))break G;g=m?2:1;g=l?2:(d|0)>(r|0)?h<<1<(c|0)?2:g:g}if(!((d|0)>0&(c|0)>0)){J[a>>2]=0;md(a,0);break d}j=rc(120);J[695492]=0;k=$(5391,j|0)|0;r=J[695492];J[695492]=0;if((r|0)==1)break f;J[f+36>>2]=0;md(f+36|0,k);J[695492]=0;j=J[f+36>>2];ca(5388,j|0,((d+g|0)-1|0)/(g|0)|0,((c+g|0)-1|0)/(g|0)|0);k=J[695492];J[695492]=0;if((k|0)==1)break l;J[695492]=0;ca(5389,j|0,i|0,h|0);k=J[695492];J[695492]=0;if((k|0)==1)break l;J[695492]=0;ca(5362,j|0,P(g, -i)|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;ca(5363,j|0,P(h,g)|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break l;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[695492]=0;ca(5364,j|0,f+40|0,f+16|0);c=J[695492];J[695492]=0;if((c|0)==1){b=Z()|0;break g}J[695492]=0;la(5392,f+12|0,b|0,f+16|0,g|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break k;H:{I:{if(!J[f+12>>2]){J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break I;b=Z()|0;break h}J[695492]=0; -d=J[f+40>>2];h=J[f+48>>2];i=J[f+52>>2];g=J[f+44>>2];c=$(4,72)|0;k=J[695492];J[695492]=0;if((k|0)==1)break j;J[695492]=0;d=h-d|0;d=ha(5381,c|0,i-g|0,d|0,((d+e|0)-1&0-e)-d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break H;J[695492]=0;J[f+8>>2]=0;aa(4985,f+8|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j;J[695492]=0;la(5393,j|0,f+16|0,J[f+12>>2],f+40|0,J[f+8>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break i;c=J[f+8>>2];J:{if(c){b=J[b+12>>2];J[695492]=0;ca(5394,a|0,c|0,((b|0)>0?b:0)|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break J;break i}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i}a=J[f+8>>2];J[f+8>>2]=0;if(!a)break I;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break I;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[f+12>>2];J[f+12>>2]=0;K:{if(!a)break K;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break K;J[695492]=0;_(4987,a|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break b}a=J[f+36>>2];J[f+36>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break b}b=Z()|0;qc(c);break h}J[a>>2]=0;md(a,0);break d}B()}b=Z()|0;break g}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;vc(f+8|0)}vc(f+12|0)}vc(f+36|0);ba(b|0);B()}a=Z()|0;qc(j);ba(a|0);B()}qU(f+16|0,b,f+40|0,j,e);c=J[f+16>>2];L:{if(c){b=J[b+12>>2];J[695492]=0;ca(5394,a|0,c| -0,((b|0)>0?b:0)|0);a=J[695492];J[695492]=0;if((a|0)!=1)break L;break c}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c}a=J[f+16>>2];J[f+16>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break b}bc=f+128|0;return}a=Z()|0;vc(f+16|0);ba(a|0);B()}ea(0)|0;yc();B()}function A0(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;e=bc-128| -0;bc=e;sw(J[a+4>>2]);J[a+4>>2]=0;d=J[a+8>>2];if(d)qc(d);J[a+8>>2]=0;J[a+12>>2]=0;j=e+112|0;J[j+12>>2]=0;J[j+4>>2]=0;J[j+8>>2]=0;J[j>>2]=413844;J[695492]=0;l=ga(3,j|0,b|0,0)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if((b|0)==1)break l;if(!l)break f;J[695492]=0;c=J[j+12>>2];b=J[695492];J[695492]=0;if((b|0)==1)break l;J[a+12>>2]=c;J[695492]=0;d=$(27,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[a+8>>2]=d;J[695492]=0;J[e+108>>2]=0;ha(28,j|0,d|0,c|0,e+108|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break b;J[695492]=0;_(21,j|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;g=J[a+8>>2];b=0;d=J[a+12>>2];m:{if((d|0)<=0)break m;while(1){n:switch(K[b+g|0]){case 0:case 9:case 10:case 32:break n;default:break m}b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}o:{p:{q:{r:{s:{d=d-b|0;h=(d|0)>=256?256:d;if(h>>>0>=2147483632){J[695492]=0;_(1623,e+96|0);a=J[695492];J[695492]=0;if((a|0)==1)break s;break c}t:{if(h>>>0<=10){H[e+107|0]=h;f=e+96|0;break t}J[695492]=0;c=(h|15)+1|0;f=$(4,c|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break s;J[e+96>>2]=f;J[e+100>>2]=h;J[e+104>>2]=c|-2147483648}m=Zc(f,b+g|0,h)+h|0,n=0,H[m|0]=n;d=K[e+107|0];c=d<<24>>24<0;u:{g=c?J[e+100>>2]:d;v:{if((g|0)<9)break v;h=c?J[e+96>>2]:e+96|0;i=h+g|0;d=g;c=h;while(1){d=pg(c,101,d-8|0);if(!d)break v;if(Wc(d,22203,9)){c=d+1|0;d=i-c|0;if((d|0)>=9)continue;break v}break}if((d|0)!=(i|0))break u}J[e+88>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;break g}J[e+88>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;k=-1;d=d-h|0;if((d|0)==-1)break g;if(d>>>0<=g>>>0){d=d+ -h|0;c=i-d|0;w:{x:{if((c|0)<=0)break x;while(1){d=pg(d,34,c);if(!d)break x;if(K[d|0]==34)break w;d=d+1|0;c=i-d|0;if((c|0)>0)continue;break}}d=i}k=(d|0)==(i|0)?-1:d-h|0}d=g;g=k+1|0;if(d>>>0>>0)break g;d=g+h|0;c=i-d|0;if((c|0)<=0)break g;while(1){d=pg(d,34,c);if(!d)break g;if(K[d|0]!=34){d=d+1|0;c=i-d|0;if((c|0)<=0)break g;continue}break}if((d|0)==(i|0))break g;d=d-h|0;if((d|0)==-1)break g;J[695492]=0;c=ma(3066,e+68|0,e+96|0,g|0,d+(k^-1)|0,e+56|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r;if(H[e+ -91|0]<0)qc(J[e+80>>2]);J[e+88>>2]=J[c+8>>2];d=J[c+4>>2];c=J[c>>2];J[e+80>>2]=c;J[e+84>>2]=d;k=0;f=J[e+84>>2];d=H[e+91|0];h=d&255;i=(d|0)<0;g=i?f:h;if(g){d=i?c:e+80|0;c=g+d|0;while(1){g=H[d|0];H[d|0]=g-65>>>0<26?g|32:g;d=d+1|0;if((c|0)!=(d|0))continue;break}f=J[e+84>>2];c=J[e+80>>2];h=K[e+91|0];d=h}d=d<<24>>24<0;h=d?f:h;y:{if((h|0)<3)break y;g=d?c:e+80|0;i=g+h|0;d=h;c=g;z:{while(1){d=pg(c,117,d-2|0);if(!d)break z;if(Wc(d,13071,3)){c=d+1|0;d=i-c|0;if((d|0)>=3)continue;break z}break}if((d|0)==(i|0))break z; -if((d-g|0)>=0)break g}if((h|0)<7)break y;d=g;while(1){d=pg(d,119,h-6|0);if(!d)break y;if(Wc(d,3829,7)){d=d+1|0;h=i-d|0;if((h|0)>=7)continue;break y}break}if((d|0)==(i|0))break y;d=d-g|0;if((d|0)==-1)break y;J[695492]=0;c=ma(3066,e+56|0,e+80|0,d+8|0,-1,e+44|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;J[695492]=0;k=ga(3067,c|0,0,10)|0;d=J[695492];J[695492]=0;if((d|0)==1)break p;if(H[c+11|0]>=0)break y;qc(J[c>>2])}i=J[a+12>>2]-b|0;if(i>>>0<2147483632)break o;J[695492]=0;_(1623,e+44|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break c;break h}b=Z()|0;break a}b=Z()|0;break d}b=Z()|0;break d}b=Z()|0;if(H[c+11|0]>=0)break d;qc(J[c>>2]);break d}h=J[a+8>>2];A:{if(i>>>0<=10){H[e+55|0]=i;c=e+44|0;break A}J[695492]=0;g=(i|15)+1|0;c=$(4,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[e+44>>2]=c;J[e+48>>2]=i;J[e+52>>2]=g|-2147483648}m=Zc(c,b+h|0,i)+i|0,n=0,H[m|0]=n;J[695492]=0;i=$(2813,e+40|0)|0;d=J[695492];J[695492]=0;B:{C:{D:{if((d|0)!=1){J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;if((k|0)<=0)break C;J[695492]= -0;la(3068,e+12|0,i|0,e+44|0,k|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break D;break B}b=Z()|0;break i}b=Z()|0;break j}J[695492]=0;la(3069,e+12|0,i|0,e+44|0,(H[e+91|0]<0?J[e+80>>2]:e+80|0)|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break k}if(H[e+35|0]<0)qc(J[e+24>>2]);J[e+32>>2]=J[e+20>>2];d=J[e+16>>2];J[e+24>>2]=J[e+12>>2];J[e+28>>2]=d;E:{if(H[e+55|0]<0){H[J[e+44>>2]]=0;J[e+48>>2]=0;break E}H[e+55|0]=0;H[e+44|0]=0}J[e+12>>2]=0;J[695492]=0;J[e+8>>2]=0;c=H[e+35|0];d=(c|0)<0;la(1636,(d?J[e+24>>2]:e+ -24|0)|0,(d?J[e+28>>2]:c&255)|0,e+12|0,e+8|0,0);d=J[695492];J[695492]=0;if((d|0)!=1){F:{G:{c=J[e+12>>2];if(c){b=0;d=J[e+8>>2];H:{if((d|0)<=0)break H;while(1){if(K[b+c|0]==62)break H;b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}J[695492]=0;f=$(4,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break G;H[f+38|0]=0;g=K[22194]|K[22195]<<8|(K[22196]<<16|K[22197]<<24);c=K[22190]|K[22191]<<8|(K[22192]<<16|K[22193]<<24);H[f+30|0]=c;H[f+31|0]=c>>>8;H[f+32|0]=c>>>16;H[f+33|0]=c>>>24;H[f+34|0]=g;H[f+35|0]=g>>>8;H[f+36| -0]=g>>>16;H[f+37|0]=g>>>24;g=K[22188]|K[22189]<<8|(K[22190]<<16|K[22191]<<24);c=K[22184]|K[22185]<<8|(K[22186]<<16|K[22187]<<24);H[f+24|0]=c;H[f+25|0]=c>>>8;H[f+26|0]=c>>>16;H[f+27|0]=c>>>24;H[f+28|0]=g;H[f+29|0]=g>>>8;H[f+30|0]=g>>>16;H[f+31|0]=g>>>24;g=K[22180]|K[22181]<<8|(K[22182]<<16|K[22183]<<24);c=K[22176]|K[22177]<<8|(K[22178]<<16|K[22179]<<24);H[f+16|0]=c;H[f+17|0]=c>>>8;H[f+18|0]=c>>>16;H[f+19|0]=c>>>24;H[f+20|0]=g;H[f+21|0]=g>>>8;H[f+22|0]=g>>>16;H[f+23|0]=g>>>24;g=K[22172]|K[22173]<<8| -(K[22174]<<16|K[22175]<<24);c=K[22168]|K[22169]<<8|(K[22170]<<16|K[22171]<<24);H[f+8|0]=c;H[f+9|0]=c>>>8;H[f+10|0]=c>>>16;H[f+11|0]=c>>>24;H[f+12|0]=g;H[f+13|0]=g>>>8;H[f+14|0]=g>>>16;H[f+15|0]=g>>>24;g=K[22164]|K[22165]<<8|(K[22166]<<16|K[22167]<<24);c=K[22160]|K[22161]<<8|(K[22162]<<16|K[22163]<<24);H[f|0]=c;H[f+1|0]=c>>>8;H[f+2|0]=c>>>16;H[f+3|0]=c>>>24;H[f+4|0]=g;H[f+5|0]=g>>>8;H[f+6|0]=g>>>16;H[f+7|0]=g>>>24;c=J[a+8>>2];if(c){qc(c);d=J[e+8>>2]}c=((b^-1)+d|0)+38|0;J[a+12>>2]=c;J[695492]=0;c=$(27, -c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break F;J[a+8>>2]=c;h=K[f+34|0]|K[f+35|0]<<8|(K[f+36|0]<<16|K[f+37|0]<<24);g=K[f+30|0]|K[f+31|0]<<8|(K[f+32|0]<<16|K[f+33|0]<<24);H[c+30|0]=g;H[c+31|0]=g>>>8;H[c+32|0]=g>>>16;H[c+33|0]=g>>>24;H[c+34|0]=h;H[c+35|0]=h>>>8;H[c+36|0]=h>>>16;H[c+37|0]=h>>>24;h=K[f+28|0]|K[f+29|0]<<8|(K[f+30|0]<<16|K[f+31|0]<<24);g=K[f+24|0]|K[f+25|0]<<8|(K[f+26|0]<<16|K[f+27|0]<<24);H[c+24|0]=g;H[c+25|0]=g>>>8;H[c+26|0]=g>>>16;H[c+27|0]=g>>>24;H[c+28|0]=h;H[c+29|0]=h>>>8;H[c+ +3|0;if(c>>>0>>0)N[J[h>>2]+(c<<2)>>2]=d;e=e+4|0;if((c|0)!=(da|0))continue;break}}e=b+1|0;if((b|0)!=(ja|0))continue;break}i=k;if((x|0)!=(fa|0))continue;break}J[699344]=0;ca(2356,g+24|0,s|0,C|0);b=J[699344];J[699344]=0;if((b|0)!=1){if(s)uc(s);j=n;e=J[a+280>>2];T=T+1|0;if(e>>>0<=T>>>0)break d;continue}break}e=Z()|0;if(!s)break o;uc(s)}a=J[g+24>>2];if(!a)break e;J[g+28>>2]=a;uc(a);break e}e=Z()|0;a=J[g+24>>2];if(!a)break e;J[g+28>>2]=a;uc(a)}jj(z);Se(V);ba(e|0);B()}b=J[g+24>>2];if(!b)break b}J[g+28>> +2]=b;uc(b)}fc=g+48|0;return a|0}B()}function OXa(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;d=fc-128|0;fc=d;f=$B(a,b,c);J[f+340>>2]=0;J[f+344>>2]=0;J[f>>2]=837728;J[f+348>>2]=0;J[f+352>>2]=0;J[f+356>>2]=0;J[f+360>>2]=0;o=f+364|0;a=o;J[a>>2]=0;J[a+4>>2]=0;J[f+372>>2]=0;J[f+376>>2]=0;J[f+380>>2]=0;J[f+384>>2]=0;J[d+112>>2]=13;J[d+96>>2]=13;J[699344]=0;J[d+80>>2]=13;a=d+96|0;aa(3488,c|0,a|0)|0;e=J[699344];J[699344]=0;m=f+376|0;p=f+352|0;a:{b:{c:{d:{if((e|0)== +1)break d;b=J[b+24>>2];J[699344]=0;ha(3372,a|0,b|0,d+80|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;$(3370,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;a=d+112|0;b=ha(3368,J[d+88>>2],812930,a|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;e:{if(!b)break e;J[699344]=0;ca(3489,d|0,a|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break c;if(H[f+351|0]<0)uc(J[f+340>>2]);a=J[d+4>>2];J[f+340>>2]=J[d>>2];J[f+344>>2]=a;J[f+348>>2]=J[d+8>>2];a=K[f+351|0];if(!(a<<24>>24<0?J[f+ +344>>2]:a))break e;J[f+8>>2]=J[f+8>>2]|512}J[699344]=0;$(3370,d+112|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}b=Z()|0;break a}b=Z()|0;break a}J[699344]=0;J[d+64>>2]=13;a=ga(3490,c|0,819446,d- -64|0)|0;b=J[699344];J[699344]=0;f:{g:{h:{i:{j:{k:{if((b|0)==1)break k;l:{if(J[a>>2]!=6)break l;J[f+8>>2]=J[f+8>>2]|1024;q=J[J[d+72>>2]+12>>2];if((q|0)<=0)break l;j=d+12|0;b=0;while(1){J[d+48>>2]=13;J[699344]=0;a=ha(3449,J[d+72>>2],b|0,d+48|0,0)|0;e=J[699344];J[699344]=0;m:{n:{if((e|0)!=1){o:{if(!a)break o; +e=J[d+48>>2]-3|0;switch(e|0){case 0:case 3:break n;default:break o}}J[699344]=0;$(3370,d+48|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m}b=Z()|0;break a}l=0;H[d+46|0]=0;I[d+44>>1]=0;H[d+42|0]=0;I[d+40>>1]=0;a=0;h=0;k=0;p:{q:{r:{s:{t:{u:{v:{w:{x:switch(e|0){case 3:a=J[d+56>>2];if(J[a+12>>2]<2){a=0;break w}g=0;J[699344]=0;J[d>>2]=13;e=ha(3449,a|0,0,d|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1){a=0;break g}a=0;y:{z:{A:{B:{C:{D:{if(J[e>>2]!=3){e=0;break D}J[699344]=0;e=_(4,12)|0;g=J[699344];J[699344]= +0;if((g|0)==1)break C;J[699344]=0;i=aa(3354,e|0,J[d+8>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break B;e=J[i+4>>2];g=J[i>>2];J[699344]=0;ca(3447,d+28|0,g|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break A;I[d+44>>1]=L[d+36>>1];H[d+46|0]=K[d+38|0];e=J[d+32>>2];l=J[d+28>>2];g=K[d+39|0];uc(ld(i))}J[699344]=0;$(3370,d|0);i=J[699344];J[699344]=0;if((i|0)!=1)break y;break g}b=Z()|0;break z}b=Z()|0;uc(e);break z}b=Z()|0}g=0;break f}J[699344]=0;i=ha(3449,J[d+56>>2],1,d|0,0)|0;n=J[699344];J[699344]=0;if((n| +0)==1)break g;E:{F:{G:{H:{if(J[i>>2]==3){J[699344]=0;a=_(4,12)|0;h=J[699344];J[699344]=0;if((h|0)==1)break H;J[699344]=0;i=aa(3354,a|0,J[d+8>>2])|0;h=J[699344];J[699344]=0;if((h|0)==1)break G;a=J[i+4>>2];h=J[i>>2];J[699344]=0;ca(3447,d+28|0,h|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break F;I[d+40>>1]=L[d+36>>1];H[d+42|0]=K[d+38|0];h=J[d+32>>2];a=J[d+28>>2];k=K[d+39|0];uc(ld(i))}J[699344]=0;$(3370,d|0);i=J[699344];J[699344]=0;if((i|0)==1)break g;if(g<<24>>24>=0)break v;J[699344]=0;ca(2838,d|0,l| +0,e|0);i=J[699344];J[699344]=0;e=1;if((i|0)!=1)break u;b=Z()|0;break f}b=Z()|0;a=0;break f}b=Z()|0;uc(a);break E}b=Z()|0}a=0;break f;case 0:break x;default:break w}J[699344]=0;a=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break t;J[699344]=0;e=aa(3354,a|0,J[d+56>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break s;a=J[e+4>>2];g=J[e>>2];J[699344]=0;ca(3447,d|0,g|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break r;I[d+40>>1]=L[d+8>>1];H[d+42|0]=K[d+10|0];h=J[d+4>>2];a=J[d>>2];k=K[d+11|0];uc(ld(e))}g= +0;e=0}J[d+4>>2]=e;J[d>>2]=l;H[d+10|0]=K[d+46|0];I[d+8>>1]=L[d+44>>1];H[d+11|0]=g;e=0}i=k<<24>>24;if((i|0)<0)break q;J[d+16>>2]=h;J[d+12>>2]=a;H[d+22|0]=K[d+42|0];I[d+20>>1]=L[d+40>>1];H[d+23|0]=k;break p}b=Z()|0;break a}b=Z()|0;uc(a);break a}b=Z()|0;break a}J[699344]=0;ca(2838,j|0,a|0,h|0);h=J[699344];J[699344]=0;if((h|0)!=1)break p;b=Z()|0;if(H[d+11|0]>=0)break f;uc(J[d>>2]);break f}h=J[f+380>>2];I:{if(h>>>0>2]){n=J[d+4>>2];J[h>>2]=J[d>>2];J[h+4>>2]=n;J[h+8>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>> +2]=0;J[d+4>>2]=0;J[h+20>>2]=J[j+8>>2];n=J[j+4>>2];J[h+12>>2]=J[j>>2];J[h+16>>2]=n;J[j>>2]=0;J[j+4>>2]=0;J[j+8>>2]=0;J[f+380>>2]=h+24;break I}J[699344]=0;da(3502,m|0,d|0);h=J[699344];J[699344]=0;if((h|0)==1)break i;if(H[d+23|0]>=0)break I;uc(J[d+12>>2])}if(H[d+11|0]<0)uc(J[d>>2]);J[699344]=0;$(3370,d+48|0);h=J[699344];J[699344]=0;if((h|0)==1)break h;if((i|0)<0)uc(a);if(!e)break m;uc(l)}b=b+1|0;if((q|0)!=(b|0))continue;break}}J[699344]=0;$(3370,d- -64|0);a=J[699344];J[699344]=0;if((a|0)==1)break k; +J[699344]=0;a=ga(3490,c|0,821059,d+112|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;if(J[a>>2]==1){J[f+8>>2]=J[f+8>>2]|2048;J[f+388>>2]=J[d+120>>2]}J[699344]=0;$(3370,d+112|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;a=ha(3368,J[d+88>>2],821242,d- -64|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;J:{if(J[a>>2]!=6)break J;J[f+8>>2]=J[f+8>>2]|4096;h=J[J[d+72>>2]+12>>2];if((h|0)<=0)break J;k=0;while(1){J[699344]=0;a=ha(3449,J[d+72>>2],k|0,d+112|0,0)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break j;K:{if(J[a>>2]!=1)break K;j=J[d+120>>2];b=J[f+368>>2];e=J[f+372>>2];if(b>>>0>>0){J[b>>2]=j;J[f+368>>2]=b+4;break K}L:{M:{N:{O:{c=J[o>>2];l=b-c>>2;a=l+1|0;P:{if(a>>>0>=1073741824){J[699344]=0;$(1589,o|0);a=J[699344];J[699344]=0;if((a|0)==1)break P;break L}e=e-c|0;g=e>>1;e=e>>>0>=2147483644?1073741823:a>>>0>>0?g:a;if(!e){g=0;break N}if(e>>>0<1073741824)break O;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break L}b=Z()|0;break a}J[699344]=0;g=_(4,e<<2)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break M}a=(l<<2)+g|0;J[a>>2]=j;j=a+4|0;if((b|0)!=(c|0))while(1){a=a-4|0;b=b-4|0;J[a>>2]=J[b>>2];if((b|0)!=(c|0))continue;break}J[f+372>>2]=(e<<2)+g;J[f+368>>2]=j;J[f+364>>2]=a;if(!c)break K;uc(c);break K}b=Z()|0;break a}B()}J[699344]=0;$(3370,d+112|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;k=k+1|0;if((h|0)!=(k|0))continue;break}}J[699344]=0;a=d- -64|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break k;J[699344]=0;a=ha(3368,J[d+88>>2],812930,a|0,0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break k;Q:{R:{if(J[a>>2]!=6)break R;J[f+8>>2]=J[f+8>>2]|8192;e=J[J[d+72>>2]+12>>2];if((e|0)<=0)break R;b=0;while(1){J[699344]=0;a=ha(3449,J[d+72>>2],b|0,d+112|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break Q;S:{if(J[a>>2]!=3)break S;J[699344]=0;a=_(4,12)|0;c=J[699344];J[699344]=0;T:{U:{V:{if((c|0)!=1){J[699344]=0;c=aa(3354,a|0,J[d+120>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break V;a=J[c+4>>2];g=J[c>>2];J[699344]=0;ca(3447,d|0,g|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break U; +a=J[f+356>>2];W:{if(a>>>0>2]){g=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=g;J[a+8>>2]=J[d+8>>2];J[f+356>>2]=a+12;break W}J[699344]=0;da(3503,p|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break T;if(H[d+11|0]>=0)break W;uc(J[d>>2])}uc(ld(c));break S}b=Z()|0;break a}b=Z()|0;uc(a);break a}b=Z()|0;break a}b=Z()|0;if(H[d+11|0]>=0)break a;uc(J[d>>2]);break a}J[699344]=0;$(3370,d+112|0);a=J[699344];J[699344]=0;if((a|0)==1)break Q;b=b+1|0;if((e|0)!=(b|0))continue;break}}J[699344]=0;$(3370,d- -64|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break k;J[699344]=0;$(3370,d+80|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;fc=d+128|0;return f|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;OC(d);break f}b=Z()|0;break f}b=Z()|0}if(k<<24>>24<0)uc(a);if(g<<24>>24>=0)break a;uc(l)}e=J[m>>2];if(e){c=J[m+4>>2];a=e;if((c|0)!=(a|0)){while(1){if(H[c-1|0]<0)uc(J[c-12>>2]);a=c-24|0;if(H[c-13|0]<0)uc(J[a>>2]);c=a;if((a|0)!=(e|0))continue;break}a=J[m>>2]}J[m+4>>2]=e;uc(a)}a=J[o>>2];if(a){J[f+368>>2]=a;uc(a)}Ag(p);if(H[f+ +351|0]<0)uc(J[f+340>>2]);Tm(f);ba(b|0);B()}function dW(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;f=fc-128|0;fc=f;h=J[c+12>>2];J[f+120>>2]=J[c+8>>2];J[f+124>>2]=h;h=J[c+4>>2];J[f+112>>2]=J[c>>2];J[f+116>>2]=h;c=J[d+12>>2];J[f+104>>2]=J[d+8>>2];J[f+108>>2]=c;c=J[d+4>>2];J[f+96>>2]=J[d>>2];J[f+100>>2]=c;c=b+8|0;a:{if(J[b+8>>2]){ti(f+40|0,b,c);break a}J[f+40>>2]=0;vd(f+40|0,0)}d=J[f+40>>2];J[f+40>>2]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if(d){J[699344]= +0;h=J[d+4>>2]-1|0;J[d+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(!h){J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b}if(J[b+12>>2]>0){d=zA(f+40|0);h=J[b+12>>2];yA(d,0-((h|0)>0?h:0)|0);rt(d,f+112|0);rt(d,f+96|0)}n:{d=J[f+96>>2];h=J[f+112>>2];o:{if((d|0)>(h|0))break o;g=h;h=J[f+104>>2];if((g|0)>=(h|0))break o;i=J[f+100>>2];g=J[f+116>>2];if((i|0)>(g|0))break o;j=g;g=J[f+108>>2];if((j|0)>=(g|0))break o;j=d;d=J[f+120>>2];if((j|0)>=(d|0)|(d|0)>(h|0))break o;d=J[f+124>>2]; +if((d|0)<=(i|0))break o;if((d|0)<=(g|0))break n}a=Qc(f+40|0,2402905,2391664,1106,2416992,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;b=Z()|0;Kc(a);ba(b|0);B()}p:{if(J[c>>2]){ti(f+40|0,b,c);break p}J[f+40>>2]=0;vd(f+40|0,0)}h=J[f+40>>2];q:{if(!h){d=0;break q}d=J[h+8>>2];J[699344]=0;J[f+40>>2]=0;i=J[h+4>>2]-1|0;J[h+4>>2]=i;g=J[699344];J[699344]=0;if((g|0)==1)break b;if(i)break q;J[699344]=0;$(5147,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break b}r:{if(J[c>>2]){ti(f+40|0,b, +c);break r}J[f+40>>2]=0;vd(f+40|0,0)}c=0;h=J[f+40>>2];s:{if(!h)break s;c=J[h+12>>2];J[699344]=0;J[f+40>>2]=0;i=J[h+4>>2]-1|0;J[h+4>>2]=i;g=J[699344];J[699344]=0;if((g|0)==1)break b;if(i)break s;J[699344]=0;$(5147,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break b}g=J[f+104>>2];j=J[f+108>>2];i=J[f+96>>2];h=J[f+100>>2];k=J[f+124>>2];J[f+48>>2]=J[f+120>>2];J[f+52>>2]=k;k=J[f+116>>2];J[f+40>>2]=J[f+112>>2];J[f+44>>2]=k;ok(f+40|0,0-i|0,0-h|0);h=j-h|0;i=g-i|0;if((i|0)==(d|0)){j=1;if((c|0)==(h|0))break e}r= +i<<1;t:{if((r|0)<=(d-2|0)|(d+2|0)<=(r|0))break t;g=h<<1;if((g|0)<=(c-2|0))break t;j=2;if((g|0)<(c+2|0))break e}s=P(i,3);u:{if((s|0)<=(d-3|0)|(d+3|0)<=(s|0))break u;j=3;g=P(h,3);if((g|0)<=(c-3|0))break u;if((g|0)<(c+3|0))break e}t=i<<2;v:{if((t|0)<=(d-4|0)|(d+4|0)<=(t|0))break v;g=h<<2;if((g|0)<=(c-4|0))break v;j=4;if((g|0)<(c+4|0))break e}u=P(i,5);w:{if((u|0)<=(d-5|0)|(d+5|0)<=(u|0))break w;j=5;g=P(h,5);if((g|0)<=(c-5|0))break w;if((g|0)<(c+5|0))break e}l=P(i,6);x:{if((l|0)<=(d-6|0)|(l|0)>=(d+6|0))break x; +j=6;g=P(h,6);if((g|0)<=(c-6|0))break x;if((g|0)<(c+6|0))break e}m=P(i,7);y:{if((m|0)<=(d-7|0)|(m|0)>=(d+7|0))break y;j=7;g=P(h,7);if((g|0)<=(c-7|0))break y;if((g|0)<(c+7|0))break e}v=i<<3;z:{if((v|0)<=(d-8|0)|(d+8|0)<=(v|0))break z;g=h<<3;if((g|0)<=(c-8|0))break z;j=8;if((g|0)<(c+8|0))break e}n=P(i,9);A:{if((n|0)<=(d-9|0)|(n|0)>=(d+9|0))break A;j=9;g=P(h,9);if((g|0)<=(c-9|0))break A;if((g|0)<(c+9|0))break e}o=P(i,10);B:{if((o|0)<=(d-10|0)|(o|0)>=(d+10|0))break B;j=10;g=P(h,10);if((g|0)<=(c-10|0))break B; +if((g|0)<(c+10|0))break e}w=P(i,11);C:{if((w|0)<=(d-11|0)|(d+11|0)<=(w|0))break C;j=11;g=P(h,11);if((g|0)<=(c-11|0))break C;if((g|0)<(c+11|0))break e}p=P(i,12);D:{if((p|0)<=(d-12|0)|(p|0)>=(d+12|0))break D;j=12;g=P(h,12);if((g|0)<=(c-12|0))break D;if((g|0)<(c+12|0))break e}q=P(i,13);E:{if((q|0)<=(d-13|0)|(q|0)>=(d+13|0))break E;j=13;g=P(h,13);if((g|0)<=(c-13|0))break E;if((g|0)<(c+13|0))break e}x=P(i,14);F:{if((x|0)<=(d-14|0)|(d+14|0)<=(x|0))break F;j=14;g=P(h,14);if((g|0)<=(c-14|0))break F;if((g| +0)<(c+14|0))break e}g=15;k=P(h,15);y=P(i,15);if(!((y|0)<=(d-15|0)|(d+15|0)<=(y|0)|(k|0)<=(c-15|0))){j=15;if((k|0)<(c+15|0))break e}j=(d|0)>(y|0);k=(c|0)>(k|0);G:{if(j&k|(P(i,45)|0)<(d|0)|(P(h,45)|0)<(c|0))break G;g=14;if((P(h,14)|0)<(c|0)&(d|0)>(x|0)|(P(i,42)|0)<(d|0)|(P(h,42)|0)<(c|0))break G;g=13;if((P(h,13)|0)<(c|0)&(d|0)>(q|0)|(P(i,39)|0)<(d|0)|(P(h,39)|0)<(c|0))break G;g=12;p=(d|0)>(p|0);q=(P(h,12)|0)<(c|0);if(p&q|(P(i,36)|0)<(d|0)|(P(h,36)|0)<(c|0))break G;g=11;if((P(h,11)|0)<(c|0)&(d|0)>(w| +0)|(P(i,33)|0)<(d|0)|(P(h,33)|0)<(c|0))break G;g=10;if((P(h,10)|0)<(c|0)&(d|0)>(o|0)|(P(i,30)|0)<(d|0)|(P(h,30)|0)<(c|0))break G;g=9;n=(d|0)>(n|0);o=(P(h,9)|0)<(c|0);if(n&o|(P(i,27)|0)<(d|0)|(P(h,27)|0)<(c|0))break G;g=8;if(h<<3<(c|0)&(d|0)>(v|0)|(P(i,24)|0)<(d|0)|(P(h,24)|0)<(c|0))break G;g=7;if((P(h,7)|0)<(c|0)&(d|0)>(m|0)|(P(i,21)|0)<(d|0)|(P(h,21)|0)<(c|0))break G;g=6;l=(d|0)>(l|0);m=(P(h,6)|0)<(c|0);if(l&m|(P(i,18)|0)<(d|0)|(P(h,18)|0)<(c|0))break G;g=5;if(k|((P(h,5)|0)<(c|0)&(d|0)>(u|0)|j))break G; +g=4;if(q|(h<<2<(c|0)&(d|0)>(t|0)|p))break G;g=3;if(o|((P(h,3)|0)<(c|0)&(d|0)>(s|0)|n))break G;g=m?2:1;g=l?2:(d|0)>(r|0)?h<<1<(c|0)?2:g:g}if(!((d|0)>0&(c|0)>0)){J[a>>2]=0;vd(a,0);break d}j=vc(120);J[699344]=0;k=_(5561,j|0)|0;r=J[699344];J[699344]=0;if((r|0)==1)break f;J[f+36>>2]=0;vd(f+36|0,k);J[699344]=0;j=J[f+36>>2];ca(5558,j|0,((d+g|0)-1|0)/(g|0)|0,((c+g|0)-1|0)/(g|0)|0);k=J[699344];J[699344]=0;if((k|0)==1)break l;J[699344]=0;ca(5559,j|0,i|0,h|0);k=J[699344];J[699344]=0;if((k|0)==1)break l;J[699344]= +0;ca(5532,j|0,P(g,i)|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;ca(5533,j|0,P(h,g)|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break l;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[699344]=0;ca(5534,j|0,f+40|0,f+16|0);c=J[699344];J[699344]=0;if((c|0)==1){b=Z()|0;break g}J[699344]=0;ma(5562,f+12|0,b|0,f+16|0,g|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break k;H:{I:{if(!J[f+12>>2]){J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break I;b=Z()|0;break h}J[699344]= +0;d=J[f+40>>2];h=J[f+48>>2];i=J[f+52>>2];g=J[f+44>>2];c=_(4,72)|0;k=J[699344];J[699344]=0;if((k|0)==1)break j;J[699344]=0;d=h-d|0;d=ha(5551,c|0,i-g|0,d|0,((d+e|0)-1&0-e)-d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break H;J[699344]=0;J[f+8>>2]=0;aa(5145,f+8|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;J[699344]=0;ma(5563,j|0,f+16|0,J[f+12>>2],f+40|0,J[f+8>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break i;c=J[f+8>>2];J:{if(c){b=J[b+12>>2];J[699344]=0;ca(5564,a|0,c|0,((b|0)>0?b:0)|0);a=J[699344]; +J[699344]=0;if((a|0)!=1)break J;break i}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i}a=J[f+8>>2];J[f+8>>2]=0;if(!a)break I;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break I;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[f+12>>2];J[f+12>>2]=0;K:{if(!a)break K;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break K;J[699344]=0;$(5147,a|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break b}a=J[f+36>>2];J[f+36>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break b}b=Z()|0;uc(c);break h}J[a>>2]=0;vd(a,0);break d}B()}b=Z()|0;break g}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;zc(f+8|0)}zc(f+12|0)}zc(f+36|0);ba(b|0);B()}a=Z()|0;uc(j);ba(a|0);B()}gW(f+16|0,b,f+40|0,j,e);c=J[f+16>>2];L:{if(c){b=J[b+12>>2];J[699344]=0;ca(5564,a|0,c| +0,((b|0)>0?b:0)|0);a=J[699344];J[699344]=0;if((a|0)!=1)break L;break c}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c}a=J[f+16>>2];J[f+16>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break b}fc=f+128|0;return}a=Z()|0;zc(f+16|0);ba(a|0);B()}ea(0)|0;Bc();B()}function BYa(a,b,c,d,e,f,g,h,i,j,k,l,m,n){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;l=l|0;m=m|0;n=n|0;var 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,C=0,D=0,E=0,F=0;o=fc-208|0;fc=o;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(K[a+229|0])break k;w=e<<2;A=P(w,f);if((A|0)<=0)break k;y=o+176|0;h=y;J[h+12>>2]=0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=351116;J[h+20>>2]=0;J[h+24>>2]=0;H[h+28|0]=0;l:{m:{n:{o:{p:{q:{r:{s:{if(J[g+8>>2]!=3)break s;n=J[J[d>>2]+12>>2];J[699344]=0;n=_(n|0,d|0)|0;r=J[699344];J[699344]=0;if((r|0)==1)break q;if((n|0)!=6)break s; +J[699344]=0;c=ha(3429,a|0,h|0,c|0,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break q;if(c)break r}n=so(A);if(!n)break l;J[699344]=0;c=_(4,36)|0;h=J[699344];J[699344]=0;t:{u:{if((h|0)==1)break u;h=J[g+4>>2];r=J[g+8>>2];J[699344]=0;t=na(3426,c|0,d|0,e|0,r|0,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break t;J[699344]=0;$(3427,t|0);c=J[699344];J[699344]=0;if((c|0)==1)break u;J[o+160>>2]=0;v:{w:{if(!((f|0)<=0|(e|0)<=0)){c=f;while(1){h=c-1|0;d=P(h,w);r=0;while(1){J[699344]=0;x=o+160|0;aa(3437,t|0,x|0)| +0;z=J[699344];J[699344]=0;if((z|0)==1)break w;J[699344]=0;ia(3433,g|0,x|0,o+32|0,0);x=J[699344];J[699344]=0;if((x|0)==1)break v;H[d+n|0]=P(J[o+40>>2],255)+32768>>>16;H[n+(d|1)|0]=P(J[o+36>>2],255)+32768>>>16;H[n+(d|2)|0]=P(J[o+32>>2],255)+32768>>>16;H[n+(d|3)|0]=255;d=d+4|0;r=r+1|0;if((r|0)!=(e|0))continue;break}d=(c|0)>1;c=h;if(d)continue;break}}uc(Lm(t));J[o+32>>2]=e;J[o+24>>2]=f;J[699344]=0;J[o+16>>2]=0-(e<<2);yi(y,n,o+32|0,o+24|0,o+16|0,0);c=J[699344];J[699344]=0;if((c|0)!=1)break r;a=Z()|0;break a}a= +Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;uc(c);break a}J[699344]=0;n=J[y+24>>2];c=J[699344];J[699344]=0;if((c|0)==1)break b;q=O[b+392>>3];if(!((e|0)==(j|0)&(f|0)==(k|0))){if(!(!j|!f|(!e|!k))){J[699344]=0;d=_(4,36)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[l+4>>2];h=J[l+8>>2];J[699344]=0;c=na(3426,d|0,i|0,j|0,h|0,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;h=P(j,k);i=so(h);if(i){d=0;J[699344]=0;$(3427,c|0);r=J[699344];J[699344]=0;if((r|0)==1)break e;H[o+16|0]=0;if((h|0)> +0)while(1){J[699344]=0;r=o+16|0;aa(3437,c|0,r|0)|0;t=J[699344];J[699344]=0;if((t|0)==1)break f;J[699344]=0;ia(3439,l|0,r|0,o+32|0,0);r=J[699344];J[699344]=0;if((r|0)==1)break g;H[d+i|0]=P(J[o+32>>2],255)+32768>>>16;d=d+1|0;if((h|0)!=(d|0))continue;break}uc(Lm(c));d=(f|0)>(k|0)?f:k;p=+(d|0);C=+(k|0)/p;h=(e|0)>(j|0)?e:j;v=+(h|0);s=+(j|0)/v;if(!((e|0)<(j|0)|(f|0)<(k|0))){if((f|0)<=0|(e|0)<=0)break n;x=n+7|0;z=e&-2;t=e&1;h=f;while(1){l=h-1|0;d=P(l,w);p=C*+(f-h|0);x:{if(R(p)<2147483648){c=~~p;break x}c= +-2147483648}r=P(c,j)+i|0;c=0;k=0;if((e|0)!=1)while(1){D=(d|3)+n|0;p=s*+(c|0);y:{if(R(p)<2147483648){u=~~p;break y}u=-2147483648}p=q*+K[u+r|0];z:{if(p<4294967296&p>=0){u=~~p>>>0;break z}u=0}H[D|0]=u;D=d+x|0;p=s*+(c|1);A:{if(R(p)<2147483648){u=~~p;break A}u=-2147483648}p=q*+K[u+r|0];B:{if(p<4294967296&p>=0){u=~~p>>>0;break B}u=0}H[D|0]=u;c=c+2|0;d=d+8|0;k=k+2|0;if((z|0)!=(k|0))continue;break}if(t){d=(d|3)+n|0;p=s*+(c|0);C:{if(R(p)<2147483648){c=~~p;break C}c=-2147483648}p=q*+K[c+r|0];D:{if(p<4294967296& +p>=0){c=~~p>>>0;break D}c=0}H[d|0]=c}c=(h|0)>1;h=l;if(c)continue;break}break n}k=h<<2;c=so(P(k,d));if(!c){if(n)uc(n);uc(i);break l}J[o+32>>2]=h;J[o+160>>2]=d;J[699344]=0;J[o+24>>2]=0-k;yi(y,c,o+32|0,o+160|0,o+24|0,0);l=J[699344];J[699344]=0;if((l|0)!=1){if(!((d|0)<=0|(h|0)<=0)){F=+(f|0)/p;v=+(e|0)/v;w=d-1|0;f=w;while(1){d=P(f,k);p=F*+(f|0);E:{if(R(p)<2147483648){l=~~p;break E}l=-2147483648}t=P(l,e);p=C*+(w-f|0);F:{if(R(p)<2147483648){l=~~p;break F}l=-2147483648}x=P(l,j)+i|0;r=0;while(1){z=c+d|0;p= ++(r|0);E=v*p;G:{if(R(E)<2147483648){l=~~E;break G}l=-2147483648}l=(l+t<<2)+n|0;H[z|0]=K[l|0];H[c+(d|1)|0]=K[l+1|0];H[c+(d|2)|0]=K[l+2|0];z=c+(d|3)|0;p=s*p;H:{if(R(p)<2147483648){l=~~p;break H}l=-2147483648}p=q*+K[l+x|0];I:{if(p<4294967296&p>=0){l=~~p>>>0;break I}l=0}H[z|0]=l;d=d+4|0;r=r+1|0;if((h|0)!=(r|0))continue;break}d=(f|0)>0;f=f-1|0;if(d)continue;break}break p}if(n)break p;break o}a=Z()|0;break a}uc(Lm(c))}if(!(q<1)|(A|0)<4)break m;c=A-4|0;e=(c>>>2|0)+1|0;f=c>>>0<28;q=q*255;J:{if(q<4294967296& +q>=0){c=~~q>>>0;break J}c=0}d=3;if(!f){f=n+28|0;h=n+24|0;i=n+20|0;j=n+16|0;k=n+12|0;l=n+8|0;w=n+4|0;t=e&2147483640;r=0;while(1){H[d+n|0]=c;H[d+w|0]=c;H[d+l|0]=c;H[d+k|0]=c;H[d+j|0]=c;H[d+i|0]=c;H[d+h|0]=c;H[d+f|0]=c;d=d+32|0;r=r+8|0;if((t|0)!=(r|0))continue;break}}e=e&7;if(!e)break m;r=0;while(1){H[d+n|0]=c;d=d+4|0;r=r+1|0;if((e|0)!=(r|0))continue;break}break m}J[699344]=0;c=_(4,36)|0;d=J[699344];J[699344]=0;K:{L:{if((d|0)==1)break L;d=J[l+4>>2];h=J[l+8>>2];J[699344]=0;i=na(3426,c|0,i|0,e|0,h|0,d| +0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break K;J[699344]=0;$(3427,i|0);c=J[699344];J[699344]=0;if((c|0)==1)break L;H[o+160|0]=0;M:{N:{if(!((f|0)<=0|(e|0)<=0))while(1){h=f-1|0;d=P(h,w);c=0;while(1){J[699344]=0;j=o+160|0;aa(3437,i|0,j|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break N;J[699344]=0;ia(3439,l|0,j|0,o+32|0,0);j=J[699344];J[699344]=0;if((j|0)==1)break M;k=(d|3)+n|0;s=q*+((P(J[o+32>>2],255)+32768>>>16&255)>>>0);O:{if(s<4294967296&s>=0){j=~~s>>>0;break O}j=0}H[k|0]=j;d=d+4|0;c=c+1|0;if((e| +0)!=(c|0))continue;break}c=(f|0)>1;f=h;if(c)continue;break}uc(Lm(i));break m}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;uc(c);break a}a=Z()|0;break a}uc(n)}n=c}uc(i)}P:{if(!m)break P;e=J[g+8>>2];Q:{if((e|0)<=0)break Q;c=0;d=0;if(e>>>0>=4){h=e&-4;r=0;while(1){i=(o+32|0)+(d<<2)|0;q=O[(d<<3)+m>>3]*65536;R:{if(R(q)<2147483648){f=~~q;break R}f=-2147483648}J[i>>2]=f;f=d|1;i=(o+32|0)+(f<<2)|0;q=O[(f<<3)+m>>3]*65536;S:{if(R(q)<2147483648){f=~~q;break S}f=-2147483648}J[i>>2]=f;f=d|2;i=(o+32|0)+ +(f<<2)|0;q=O[(f<<3)+m>>3]*65536;T:{if(R(q)<2147483648){f=~~q;break T}f=-2147483648}J[i>>2]=f;f=d|3;i=(o+32|0)+(f<<2)|0;q=O[(f<<3)+m>>3]*65536;U:{if(R(q)<2147483648){f=~~q;break U}f=-2147483648}J[i>>2]=f;d=d+4|0;r=r+4|0;if((h|0)!=(r|0))continue;break}}f=e&3;if(!f)break Q;while(1){h=(o+32|0)+(d<<2)|0;q=O[(d<<3)+m>>3]*65536;V:{if(R(q)<2147483648){e=~~q;break V}e=-2147483648}J[h>>2]=e;d=d+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}c=J[g>>2];d=J[J[c>>2]+20>>2];J[699344]=0;ia(d|0,c|0,o+32|0,o+160|0,0); +c=J[699344];J[699344]=0;if((c|0)==1)break h;if((A|0)<=0)break P;e=P(J[o+160>>2],255)+32768>>>16&255;s=+(e>>>0);f=P(J[o+164>>2],255)+32768>>>16&255;C=+(f>>>0);g=P(J[o+168>>2],255)+32768>>>16&255;p=+(g>>>0);d=0;while(1){c=K[(d|3)+n|0];W:{if(c){h=d+n|0;q=255/+(c>>>0);v=+(K[h|0]-g|0)*q+p;X:{if(R(v)<2147483648){c=~~v;break X}c=-2147483648}c=(c|0)>=255?255:c;H[h|0]=(c|0)>0?c:0;h=(d|1)+n|0;v=+(K[h|0]-f|0)*q+C;Y:{if(R(v)<2147483648){c=~~v;break Y}c=-2147483648}c=(c|0)>=255?255:c;H[h|0]=(c|0)>0?c:0;h=(d|2)+ +n|0;q=+(K[h|0]-e|0)*q+s;Z:{if(R(q)<2147483648){c=~~q;break Z}c=-2147483648}c=(c|0)>=255?255:c;H[h|0]=(c|0)>0?c:0;break W}H[d+n|0]=255;H[(d|1)+n|0]=255;H[(d|2)+n|0]=255}d=d+4|0;if((A|0)>(d|0))continue;break}}O[o+32>>3]=O[b+16>>3];O[o+40>>3]=-O[b+24>>3];q=O[b+32>>3];O[o+48>>3]=-q;s=O[b+40>>3];O[o+56>>3]=s;O[o+64>>3]=q+O[b+48>>3];O[o+72>>3]=O[b+104>>3]-(s+O[b+56>>3]);J[o+160>>2]=0;J[o+164>>2]=0;J[699344]=0;J[o+24>>2]=0;J[o+28>>2]=0;b=o+160|0;c=o+24|0;ma(3418,a|0,o+32|0,b|0,c|0,1);d=J[699344];J[699344]= +0;if((d|0)==1)break j;a=J[a+104>>2];J[o+16>>2]=1049880894;J[o+20>>2]=1071027177;J[o+8>>2]=1049880894;J[o+12>>2]=1071027177;d=J[J[a>>2]+376>>2];J[699344]=0;ja(d|0,a|0,y|0,b|0,c|0,o+16|0,o+8|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i}If(y)}fc=o+208|0;return}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;uc(d);break a}a=Z()|0;break a}a=Z()|0}If(y);ba(a|0);B()}function z2(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;e=fc-128|0; +fc=e;hx(J[a+4>>2]);J[a+4>>2]=0;d=J[a+8>>2];if(d)uc(d);J[a+8>>2]=0;J[a+12>>2]=0;j=e+112|0;J[j+12>>2]=0;J[j+4>>2]=0;J[j+8>>2]=0;J[j>>2]=415588;J[699344]=0;l=ga(3,j|0,b|0,0)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if((b|0)==1)break l;if(!l)break f;J[699344]=0;c=J[j+12>>2];b=J[699344];J[699344]=0;if((b|0)==1)break l;J[a+12>>2]=c;J[699344]=0;d=_(27,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[a+8>>2]=d;J[699344]=0;J[e+108>>2]=0;ha(28,j|0,d|0,c|0,e+108|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break b;J[699344]=0;$(21,j|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;g=J[a+8>>2];b=0;d=J[a+12>>2];m:{if((d|0)<=0)break m;while(1){n:switch(K[b+g|0]){case 0:case 9:case 10:case 32:break n;default:break m}b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}o:{p:{q:{r:{s:{d=d-b|0;h=(d|0)>=256?256:d;if(h>>>0>=2147483632){J[699344]=0;$(3030,e+96|0);a=J[699344];J[699344]=0;if((a|0)==1)break s;break c}t:{if(h>>>0<=10){H[e+107|0]=h;f=e+96|0;break t}J[699344]=0;c=(h|15)+1|0;f=_(4,c|0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break s;J[e+96>>2]=f;J[e+100>>2]=h;J[e+104>>2]=c|-2147483648}m=cd(f,b+g|0,h)+h|0,n=0,H[m|0]=n;d=K[e+107|0];c=d<<24>>24<0;u:{g=c?J[e+100>>2]:d;v:{if((g|0)<9)break v;h=c?J[e+96>>2]:e+96|0;i=h+g|0;d=g;c=h;while(1){d=Cg(c,101,d-8|0);if(!d)break v;if(dd(d,22219,9)){c=d+1|0;d=i-c|0;if((d|0)>=9)continue;break v}break}if((d|0)!=(i|0))break u}J[e+88>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;break g}J[e+88>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;k=-1;d=d-h|0;if((d|0)==-1)break g;if(d>>>0<=g>>>0){d=d+ +h|0;c=i-d|0;w:{x:{if((c|0)<=0)break x;while(1){d=Cg(d,34,c);if(!d)break x;if(K[d|0]==34)break w;d=d+1|0;c=i-d|0;if((c|0)>0)continue;break}}d=i}k=(d|0)==(i|0)?-1:d-h|0}d=g;g=k+1|0;if(d>>>0>>0)break g;d=g+h|0;c=i-d|0;if((c|0)<=0)break g;while(1){d=Cg(d,34,c);if(!d)break g;if(K[d|0]!=34){d=d+1|0;c=i-d|0;if((c|0)<=0)break g;continue}break}if((d|0)==(i|0))break g;d=d-h|0;if((d|0)==-1)break g;J[699344]=0;c=na(3233,e+68|0,e+96|0,g|0,d+(k^-1)|0,e+56|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break r;if(H[e+ +91|0]<0)uc(J[e+80>>2]);J[e+88>>2]=J[c+8>>2];d=J[c+4>>2];c=J[c>>2];J[e+80>>2]=c;J[e+84>>2]=d;k=0;f=J[e+84>>2];d=H[e+91|0];h=d&255;i=(d|0)<0;g=i?f:h;if(g){d=i?c:e+80|0;c=g+d|0;while(1){g=H[d|0];H[d|0]=g-65>>>0<26?g|32:g;d=d+1|0;if((c|0)!=(d|0))continue;break}f=J[e+84>>2];c=J[e+80>>2];h=K[e+91|0];d=h}d=d<<24>>24<0;h=d?f:h;y:{if((h|0)<3)break y;g=d?c:e+80|0;i=g+h|0;d=h;c=g;z:{while(1){d=Cg(c,117,d-2|0);if(!d)break z;if(dd(d,13087,3)){c=d+1|0;d=i-c|0;if((d|0)>=3)continue;break z}break}if((d|0)==(i|0))break z; +if((d-g|0)>=0)break g}if((h|0)<7)break y;d=g;while(1){d=Cg(d,119,h-6|0);if(!d)break y;if(dd(d,3829,7)){d=d+1|0;h=i-d|0;if((h|0)>=7)continue;break y}break}if((d|0)==(i|0))break y;d=d-g|0;if((d|0)==-1)break y;J[699344]=0;c=na(3233,e+56|0,e+80|0,d+8|0,-1,e+44|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;J[699344]=0;k=ga(3234,c|0,0,10)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;if(H[c+11|0]>=0)break y;uc(J[c>>2])}i=J[a+12>>2]-b|0;if(i>>>0<2147483632)break o;J[699344]=0;$(3030,e+44|0);a=J[699344]; +J[699344]=0;if((a|0)!=1)break c;break h}b=Z()|0;break a}b=Z()|0;break d}b=Z()|0;break d}b=Z()|0;if(H[c+11|0]>=0)break d;uc(J[c>>2]);break d}h=J[a+8>>2];A:{if(i>>>0<=10){H[e+55|0]=i;c=e+44|0;break A}J[699344]=0;g=(i|15)+1|0;c=_(4,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;J[e+44>>2]=c;J[e+48>>2]=i;J[e+52>>2]=g|-2147483648}m=cd(c,b+h|0,i)+i|0,n=0,H[m|0]=n;J[699344]=0;i=_(2979,e+40|0)|0;d=J[699344];J[699344]=0;B:{C:{D:{if((d|0)!=1){J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;if((k|0)<=0)break C;J[699344]= +0;ma(3235,e+12|0,i|0,e+44|0,k|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break D;break B}b=Z()|0;break i}b=Z()|0;break j}J[699344]=0;ma(3236,e+12|0,i|0,e+44|0,(H[e+91|0]<0?J[e+80>>2]:e+80|0)|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break k}if(H[e+35|0]<0)uc(J[e+24>>2]);J[e+32>>2]=J[e+20>>2];d=J[e+16>>2];J[e+24>>2]=J[e+12>>2];J[e+28>>2]=d;E:{if(H[e+55|0]<0){H[J[e+44>>2]]=0;J[e+48>>2]=0;break E}H[e+55|0]=0;H[e+44|0]=0}J[e+12>>2]=0;J[699344]=0;J[e+8>>2]=0;c=H[e+35|0];d=(c|0)<0;ma(1637,(d?J[e+24>>2]:e+ +24|0)|0,(d?J[e+28>>2]:c&255)|0,e+12|0,e+8|0,0);d=J[699344];J[699344]=0;if((d|0)!=1){F:{G:{c=J[e+12>>2];if(c){b=0;d=J[e+8>>2];H:{if((d|0)<=0)break H;while(1){if(K[b+c|0]==62)break H;b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}J[699344]=0;f=_(4,48)|0;c=J[699344];J[699344]=0;if((c|0)==1)break G;H[f+38|0]=0;g=K[22210]|K[22211]<<8|(K[22212]<<16|K[22213]<<24);c=K[22206]|K[22207]<<8|(K[22208]<<16|K[22209]<<24);H[f+30|0]=c;H[f+31|0]=c>>>8;H[f+32|0]=c>>>16;H[f+33|0]=c>>>24;H[f+34|0]=g;H[f+35|0]=g>>>8;H[f+36| +0]=g>>>16;H[f+37|0]=g>>>24;g=K[22204]|K[22205]<<8|(K[22206]<<16|K[22207]<<24);c=K[22200]|K[22201]<<8|(K[22202]<<16|K[22203]<<24);H[f+24|0]=c;H[f+25|0]=c>>>8;H[f+26|0]=c>>>16;H[f+27|0]=c>>>24;H[f+28|0]=g;H[f+29|0]=g>>>8;H[f+30|0]=g>>>16;H[f+31|0]=g>>>24;g=K[22196]|K[22197]<<8|(K[22198]<<16|K[22199]<<24);c=K[22192]|K[22193]<<8|(K[22194]<<16|K[22195]<<24);H[f+16|0]=c;H[f+17|0]=c>>>8;H[f+18|0]=c>>>16;H[f+19|0]=c>>>24;H[f+20|0]=g;H[f+21|0]=g>>>8;H[f+22|0]=g>>>16;H[f+23|0]=g>>>24;g=K[22188]|K[22189]<<8| +(K[22190]<<16|K[22191]<<24);c=K[22184]|K[22185]<<8|(K[22186]<<16|K[22187]<<24);H[f+8|0]=c;H[f+9|0]=c>>>8;H[f+10|0]=c>>>16;H[f+11|0]=c>>>24;H[f+12|0]=g;H[f+13|0]=g>>>8;H[f+14|0]=g>>>16;H[f+15|0]=g>>>24;g=K[22180]|K[22181]<<8|(K[22182]<<16|K[22183]<<24);c=K[22176]|K[22177]<<8|(K[22178]<<16|K[22179]<<24);H[f|0]=c;H[f+1|0]=c>>>8;H[f+2|0]=c>>>16;H[f+3|0]=c>>>24;H[f+4|0]=g;H[f+5|0]=g>>>8;H[f+6|0]=g>>>16;H[f+7|0]=g>>>24;c=J[a+8>>2];if(c){uc(c);d=J[e+8>>2]}c=((b^-1)+d|0)+38|0;J[a+12>>2]=c;J[699344]=0;c=_(27, +c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break F;J[a+8>>2]=c;h=K[f+34|0]|K[f+35|0]<<8|(K[f+36|0]<<16|K[f+37|0]<<24);g=K[f+30|0]|K[f+31|0]<<8|(K[f+32|0]<<16|K[f+33|0]<<24);H[c+30|0]=g;H[c+31|0]=g>>>8;H[c+32|0]=g>>>16;H[c+33|0]=g>>>24;H[c+34|0]=h;H[c+35|0]=h>>>8;H[c+36|0]=h>>>16;H[c+37|0]=h>>>24;h=K[f+28|0]|K[f+29|0]<<8|(K[f+30|0]<<16|K[f+31|0]<<24);g=K[f+24|0]|K[f+25|0]<<8|(K[f+26|0]<<16|K[f+27|0]<<24);H[c+24|0]=g;H[c+25|0]=g>>>8;H[c+26|0]=g>>>16;H[c+27|0]=g>>>24;H[c+28|0]=h;H[c+29|0]=h>>>8;H[c+ 30|0]=h>>>16;H[c+31|0]=h>>>24;h=K[f+20|0]|K[f+21|0]<<8|(K[f+22|0]<<16|K[f+23|0]<<24);g=K[f+16|0]|K[f+17|0]<<8|(K[f+18|0]<<16|K[f+19|0]<<24);H[c+16|0]=g;H[c+17|0]=g>>>8;H[c+18|0]=g>>>16;H[c+19|0]=g>>>24;H[c+20|0]=h;H[c+21|0]=h>>>8;H[c+22|0]=h>>>16;H[c+23|0]=h>>>24;h=K[f+12|0]|K[f+13|0]<<8|(K[f+14|0]<<16|K[f+15|0]<<24);g=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);H[c+8|0]=g;H[c+9|0]=g>>>8;H[c+10|0]=g>>>16;H[c+11|0]=g>>>24;H[c+12|0]=h;H[c+13|0]=h>>>8;H[c+14|0]=h>>>16;H[c+15|0]=h>>>24;h=K[f+4| -0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);g=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);H[c|0]=g;H[c+1|0]=g>>>8;H[c+2|0]=g>>>16;H[c+3|0]=g>>>24;H[c+4|0]=h;H[c+5|0]=h>>>8;H[c+6|0]=h>>>16;H[c+7|0]=h>>>24;g=c+38|0;c=J[e+12>>2];b=b+1|0;tc(g,c+b|0,d-b|0);if(c)qc(c);qc(f);b=0}if(H[e+35|0]<0)qc(J[e+24>>2]);nz(i);if(H[e+55|0]>=0)break g;qc(J[e+44>>2]);break g}b=Z()|0;break j}b=Z()|0;qc(f);break j}b=Z()|0;break j}b=Z()|0;break a}b=Z()|0}if(H[e+35|0]<0)qc(J[e+24>>2]);nz(i)}if(H[e+55|0]>=0)break d;qc(J[e+ -44>>2]);break d}b=Z()|0;break d}c=J[a+8>>2];d=J[a+12>>2];J[695492]=0;d=ma(3070,b+c|0,d-b|0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[a+4>>2]=d;if(H[e+91|0]<0)qc(J[e+80>>2]);if(H[e+107|0]>=0)break f;qc(J[e+96>>2])}ve(j);bc=e+128|0;return l}b=Z()|0}if(H[e+91|0]<0)qc(J[e+80>>2]);if(H[e+107|0]>=0)break a;qc(J[e+96>>2]);break a}B()}b=Z()|0}ve(j);ba(b|0);B()}function WHa(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;e=bc-272|0;bc=e;J[a>>2]=0;J[a+4>>2]=0;J[a+ -8>>2]=0;J[695492]=0;J[e+248>>2]=13;b=ha(3203,b|0,c|0,e+248|0,0)|0;c=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((c|0)!=1){if(J[b>>2]==3){c=J[e+256>>2];if(J[c>>2])break h}J[695492]=0;_(3205,e+248|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break a}J[695492]=0;b=$(4,12)|0;k=J[695492];J[695492]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{if((k|0)!=1){J[695492]=0;n=aa(3187,b|0,c|0)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break _;b=J[n+4>>2];k=J[n>>2];J[695492]=0;c=e+236|0;ca(3528,c|0,k|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;b=K[e+247|0];if((b<<24>>24<0?J[e+240>>2]:b)>>>0<17)break i;J[695492]=0;k=e+56|0;b=ma(2797,e+68|0,c|0,2,4,k|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Z;J[695492]=0;da(3256,b|0,45);f=J[695492];J[695492]=0;if((f|0)==1)break Y;J[e+88>>2]=J[b+8>>2];f=J[b+4>>2];J[e+80>>2]=J[b>>2];J[e+84>>2]=f;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;i=e+44|0;k=ma(2797,k|0,c|0,6,2, -i|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break X;h=J[k>>2];g=J[k+4>>2];f=K[k+11|0];J[695492]=0;j=h;h=f<<24>>24<0;f=ga(2794,e+80|0,(h?j:k)|0,(h?g:f)|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break W;J[e+104>>2]=J[f+8>>2];h=J[f+4>>2];J[e+96>>2]=J[f>>2];J[e+100>>2]=h;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(3256,e+96|0,45);f=J[695492];J[695492]=0;if((f|0)==1)break V;J[e+120>>2]=J[e+104>>2];J[e+104>>2]=0;f=J[e+100>>2];J[e+112>>2]=J[e+96>>2];J[e+116>>2]=f;J[e+96>>2]=0;J[e+100>>2]=0;J[695492]= -0;h=e+32|0;f=ma(2797,i|0,c|0,8,2,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break U;g=J[f>>2];j=J[f+4>>2];i=K[f+11|0];J[695492]=0;l=g;g=i<<24>>24<0;i=ga(2794,e+112|0,(g?l:f)|0,(g?j:i)|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break T;J[e+136>>2]=J[i+8>>2];g=J[i+4>>2];J[e+128>>2]=J[i>>2];J[e+132>>2]=g;J[i>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;J[695492]=0;da(3256,e+128|0,84);i=J[695492];J[695492]=0;if((i|0)==1)break S;J[e+152>>2]=J[e+136>>2];J[e+136>>2]=0;i=J[e+132>>2];J[e+144>>2]=J[e+128>>2];J[e+148>>2]=i; -J[e+128>>2]=0;J[e+132>>2]=0;J[695492]=0;g=e+20|0;i=ma(2797,h|0,c|0,10,2,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break R;j=J[i>>2];l=J[i+4>>2];h=K[i+11|0];J[695492]=0;m=j;j=h<<24>>24<0;h=ga(2794,e+144|0,(j?m:i)|0,(j?l:h)|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break Q;J[e+168>>2]=J[h+8>>2];j=J[h+4>>2];J[e+160>>2]=J[h>>2];J[e+164>>2]=j;J[h>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[695492]=0;da(3256,e+160|0,58);h=J[695492];J[695492]=0;if((h|0)==1)break P;J[e+184>>2]=J[e+168>>2];J[e+168>>2]=0;h=J[e+164>>2]; -J[e+176>>2]=J[e+160>>2];J[e+180>>2]=h;J[e+160>>2]=0;J[e+164>>2]=0;J[695492]=0;j=e+8|0;h=ma(2797,g|0,c|0,12,2,j|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break O;l=J[h>>2];o=J[h+4>>2];g=K[h+11|0];J[695492]=0;m=l;l=g<<24>>24<0;g=ga(2794,e+176|0,(l?m:h)|0,(l?o:g)|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break N;J[e+200>>2]=J[g+8>>2];l=J[g+4>>2];J[e+192>>2]=J[g>>2];J[e+196>>2]=l;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[695492]=0;da(3256,e+192|0,58);g=J[695492];J[695492]=0;if((g|0)==1)break M;J[e+216>>2]=J[e+ -200>>2];J[e+200>>2]=0;g=J[e+196>>2];J[e+208>>2]=J[e+192>>2];J[e+212>>2]=g;J[e+192>>2]=0;J[e+196>>2]=0;J[695492]=0;g=ma(2797,j|0,c|0,14,2,e+271|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break L;j=J[g>>2];l=J[g+4>>2];c=K[g+11|0];J[695492]=0;m=j;j=c<<24>>24<0;c=ga(2794,e+208|0,(j?m:g)|0,(j?l:c)|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break K;J[e+232>>2]=J[c+8>>2];j=J[c+4>>2];J[e+224>>2]=J[c>>2];J[e+228>>2]=j;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;if(H[g+11|0]<0)qc(J[g>>2]);if(H[e+219|0]<0)qc(J[e+208>>2]); -if(H[e+203|0]<0)qc(J[e+192>>2]);if(H[h+11|0]<0)qc(J[h>>2]);if(H[e+187|0]<0)qc(J[e+176>>2]);if(H[e+171|0]<0)qc(J[e+160>>2]);if(H[i+11|0]<0)qc(J[i>>2]);if(H[e+155|0]<0)qc(J[e+144>>2]);if(H[e+139|0]<0)qc(J[e+128>>2]);if(H[f+11|0]<0)qc(J[f>>2]);if(H[e+123|0]<0)qc(J[e+112>>2]);if(H[e+107|0]<0)qc(J[e+96>>2]);if(H[k+11|0]<0)qc(J[k>>2]);if(H[e+91|0]<0)qc(J[e+80>>2]);if(H[b+11|0]<0)qc(J[b>>2]);c=H[e+247|0];b=(c|0)<0;if((b?J[e+240>>2]:c&255)>>>0<22)break l;$:switch(J[(b?J[e+236>>2]:e+236|0)+64>>2]-43|0){case 0:case 2:break $; -default:break l}J[695492]=0;c=e+236|0;f=e+144|0;k=ma(2797,e+160|0,c|0,16,3,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break v;J[695492]=0;b=ga(2277,k|0,0,2171728)|0;i=J[695492];J[695492]=0;if((i|0)==1)break u;J[e+184>>2]=J[b+8>>2];i=J[b+4>>2];J[e+176>>2]=J[b>>2];J[e+180>>2]=i;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;da(3256,e+176|0,58);b=J[695492];J[695492]=0;if((b|0)==1)break t;J[e+200>>2]=J[e+184>>2];J[e+184>>2]=0;b=J[e+180>>2];J[e+192>>2]=J[e+176>>2];J[e+196>>2]=b;J[e+176>>2]=0;J[e+180>>2]= -0;J[695492]=0;b=ma(2797,f|0,c|0,20,2,e+128|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break s;f=J[b>>2];i=J[b+4>>2];c=K[b+11|0];J[695492]=0;j=f;f=c<<24>>24<0;c=ga(2794,e+192|0,(f?j:b)|0,(f?i:c)|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break r;J[e+216>>2]=J[c+8>>2];f=J[c+4>>2];J[e+208>>2]=J[c>>2];J[e+212>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[695492]=0;c=K[e+219|0];f=c<<24>>24<0;ga(2794,e+224|0,(f?J[e+208>>2]:e+208|0)|0,(f?J[e+212>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break q;if(H[e+219| -0]<0)qc(J[e+208>>2]);if(H[b+11|0]<0)qc(J[b>>2]);if(H[e+203|0]<0)qc(J[e+192>>2]);if(H[e+187|0]<0)qc(J[e+176>>2]);if(H[k+11|0]>=0)break j;qc(J[k>>2]);break j}break a}a=Z()|0;qc(b);ba(a|0);B()}c=Z()|0;break c}c=Z()|0;break w}c=Z()|0;break x}c=Z()|0;break y}c=Z()|0;break z}c=Z()|0;break A}c=Z()|0;break B}c=Z()|0;break C}c=Z()|0;break D}c=Z()|0;break E}c=Z()|0;break F}c=Z()|0;break G}c=Z()|0;break H}c=Z()|0;break I}c=Z()|0;break J}c=Z()|0;if(H[g+11|0]>=0)break J;qc(J[g>>2])}if(H[e+219|0]>=0)break I;qc(J[e+ -208>>2])}if(H[e+203|0]>=0)break H;qc(J[e+192>>2])}if(H[h+11|0]>=0)break G;qc(J[h>>2])}if(H[e+187|0]>=0)break F;qc(J[e+176>>2])}if(H[e+171|0]>=0)break E;qc(J[e+160>>2])}if(H[i+11|0]>=0)break D;qc(J[i>>2])}if(H[e+155|0]>=0)break C;qc(J[e+144>>2])}if(H[e+139|0]>=0)break B;qc(J[e+128>>2])}if(H[f+11|0]>=0)break A;qc(J[f>>2])}if(H[e+123|0]>=0)break z;qc(J[e+112>>2])}if(H[e+107|0]>=0)break y;qc(J[e+96>>2])}if(H[k+11|0]>=0)break x;qc(J[k>>2])}if(H[e+91|0]>=0)break w;qc(J[e+80>>2])}if(H[b+11|0]>=0)break c; -qc(J[b>>2]);break c}c=Z()|0;break e}c=Z()|0;break m}c=Z()|0;break n}c=Z()|0;break o}c=Z()|0;break p}c=Z()|0;if(H[e+219|0]>=0)break p;qc(J[e+208>>2])}if(H[b+11|0]>=0)break o;qc(J[b>>2])}if(H[e+203|0]>=0)break n;qc(J[e+192>>2])}if(H[e+187|0]>=0)break m;qc(J[e+176>>2])}if(H[k+11|0]>=0)break e;qc(J[k>>2]);break e}J[695492]=0;aa(2860,e+224|0,2171792)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break j;break f}c=Z()|0;break b}J[695492]=0;b=e+224|0;_(3529,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]= -0;aa(2860,a|0,834488)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;aa(2860,a|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;aa(2860,a|0,2171540)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;d=b;b=K[e+235|0];c=b<<24>>24<0;ga(2794,a|0,(c?J[e+224>>2]:d)|0,(c?J[e+228>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;aa(2860,a|0,2171640)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if(H[e+235|0]>=0)break i;qc(J[e+224>>2])}qc(dd(n));J[695492]= -0;_(3205,e+248|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;if(H[e+247|0]>=0)break g;qc(J[e+236>>2])}bc=e+272|0;return}c=Z()|0}if(H[e+235|0]>=0)break c;qc(J[e+224>>2]);break c}c=Z()|0}if(H[e+247|0]>=0)break b;qc(J[e+236>>2])}if(H[a+11|0]<0)qc(J[a>>2]);ba(c|0);B()}ba(Z()|0);B()}function EW(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;s=J[a>>2];a:{if(s>>>0>>0|b>>>0>=d>>>0|b>>>0>=s>>>0)break a;s=J[a+4>>2];if(s>>>0< +0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);g=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);H[c|0]=g;H[c+1|0]=g>>>8;H[c+2|0]=g>>>16;H[c+3|0]=g>>>24;H[c+4|0]=h;H[c+5|0]=h>>>8;H[c+6|0]=h>>>16;H[c+7|0]=h>>>24;g=c+38|0;c=J[e+12>>2];b=b+1|0;xc(g,c+b|0,d-b|0);if(c)uc(c);uc(f);b=0}if(H[e+35|0]<0)uc(J[e+24>>2]);iA(i);if(H[e+55|0]>=0)break g;uc(J[e+44>>2]);break g}b=Z()|0;break j}b=Z()|0;uc(f);break j}b=Z()|0;break j}b=Z()|0;break a}b=Z()|0}if(H[e+35|0]<0)uc(J[e+24>>2]);iA(i)}if(H[e+55|0]>=0)break d;uc(J[e+ +44>>2]);break d}b=Z()|0;break d}c=J[a+8>>2];d=J[a+12>>2];J[699344]=0;d=na(3237,b+c|0,d-b|0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[a+4>>2]=d;if(H[e+91|0]<0)uc(J[e+80>>2]);if(H[e+107|0]>=0)break f;uc(J[e+96>>2])}De(j);fc=e+128|0;return l}b=Z()|0}if(H[e+91|0]<0)uc(J[e+80>>2]);if(H[e+107|0]>=0)break a;uc(J[e+96>>2]);break a}B()}b=Z()|0}De(j);ba(b|0);B()}function mKa(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;e=fc-272|0;fc=e;J[a>>2]=0;J[a+4>>2]=0;J[a+ +8>>2]=0;J[699344]=0;J[e+248>>2]=13;b=ha(3368,b|0,c|0,e+248|0,0)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((c|0)!=1){if(J[b>>2]==3){c=J[e+256>>2];if(J[c>>2])break h}J[699344]=0;$(3370,e+248|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g}break a}J[699344]=0;b=_(4,12)|0;k=J[699344];J[699344]=0;i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{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:{V:{W:{X:{Y:{Z:{_:{if((k|0)!=1){J[699344]=0;n=aa(3354,b|0,c|0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break _;b=J[n+4>>2];k=J[n>>2];J[699344]=0;c=e+236|0;ca(3420,c|0,k|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break k;b=K[e+247|0];if((b<<24>>24<0?J[e+240>>2]:b)>>>0<17)break i;J[699344]=0;k=e+56|0;b=na(2963,e+68|0,c|0,2,4,k|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Z;J[699344]=0;da(3417,b|0,45);f=J[699344];J[699344]=0;if((f|0)==1)break Y;J[e+88>>2]=J[b+8>>2];f=J[b+4>>2];J[e+80>>2]=J[b>>2];J[e+84>>2]=f;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[699344]=0;i=e+44|0;k=na(2963,k|0,c|0,6,2, +i|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break X;h=J[k>>2];g=J[k+4>>2];f=K[k+11|0];J[699344]=0;j=h;h=f<<24>>24<0;f=ga(2960,e+80|0,(h?j:k)|0,(h?g:f)|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break W;J[e+104>>2]=J[f+8>>2];h=J[f+4>>2];J[e+96>>2]=J[f>>2];J[e+100>>2]=h;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(3417,e+96|0,45);f=J[699344];J[699344]=0;if((f|0)==1)break V;J[e+120>>2]=J[e+104>>2];J[e+104>>2]=0;f=J[e+100>>2];J[e+112>>2]=J[e+96>>2];J[e+116>>2]=f;J[e+96>>2]=0;J[e+100>>2]=0;J[699344]= +0;h=e+32|0;f=na(2963,i|0,c|0,8,2,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break U;g=J[f>>2];j=J[f+4>>2];i=K[f+11|0];J[699344]=0;l=g;g=i<<24>>24<0;i=ga(2960,e+112|0,(g?l:f)|0,(g?j:i)|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break T;J[e+136>>2]=J[i+8>>2];g=J[i+4>>2];J[e+128>>2]=J[i>>2];J[e+132>>2]=g;J[i>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;J[699344]=0;da(3417,e+128|0,84);i=J[699344];J[699344]=0;if((i|0)==1)break S;J[e+152>>2]=J[e+136>>2];J[e+136>>2]=0;i=J[e+132>>2];J[e+144>>2]=J[e+128>>2];J[e+148>>2]=i; +J[e+128>>2]=0;J[e+132>>2]=0;J[699344]=0;g=e+20|0;i=na(2963,h|0,c|0,10,2,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break R;j=J[i>>2];l=J[i+4>>2];h=K[i+11|0];J[699344]=0;m=j;j=h<<24>>24<0;h=ga(2960,e+144|0,(j?m:i)|0,(j?l:h)|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break Q;J[e+168>>2]=J[h+8>>2];j=J[h+4>>2];J[e+160>>2]=J[h>>2];J[e+164>>2]=j;J[h>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[699344]=0;da(3417,e+160|0,58);h=J[699344];J[699344]=0;if((h|0)==1)break P;J[e+184>>2]=J[e+168>>2];J[e+168>>2]=0;h=J[e+164>>2]; +J[e+176>>2]=J[e+160>>2];J[e+180>>2]=h;J[e+160>>2]=0;J[e+164>>2]=0;J[699344]=0;j=e+8|0;h=na(2963,g|0,c|0,12,2,j|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break O;l=J[h>>2];o=J[h+4>>2];g=K[h+11|0];J[699344]=0;m=l;l=g<<24>>24<0;g=ga(2960,e+176|0,(l?m:h)|0,(l?o:g)|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break N;J[e+200>>2]=J[g+8>>2];l=J[g+4>>2];J[e+192>>2]=J[g>>2];J[e+196>>2]=l;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[699344]=0;da(3417,e+192|0,58);g=J[699344];J[699344]=0;if((g|0)==1)break M;J[e+216>>2]=J[e+ +200>>2];J[e+200>>2]=0;g=J[e+196>>2];J[e+208>>2]=J[e+192>>2];J[e+212>>2]=g;J[e+192>>2]=0;J[e+196>>2]=0;J[699344]=0;g=na(2963,j|0,c|0,14,2,e+271|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break L;j=J[g>>2];l=J[g+4>>2];c=K[g+11|0];J[699344]=0;m=j;j=c<<24>>24<0;c=ga(2960,e+208|0,(j?m:g)|0,(j?l:c)|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break K;J[e+232>>2]=J[c+8>>2];j=J[c+4>>2];J[e+224>>2]=J[c>>2];J[e+228>>2]=j;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;if(H[g+11|0]<0)uc(J[g>>2]);if(H[e+219|0]<0)uc(J[e+208>>2]); +if(H[e+203|0]<0)uc(J[e+192>>2]);if(H[h+11|0]<0)uc(J[h>>2]);if(H[e+187|0]<0)uc(J[e+176>>2]);if(H[e+171|0]<0)uc(J[e+160>>2]);if(H[i+11|0]<0)uc(J[i>>2]);if(H[e+155|0]<0)uc(J[e+144>>2]);if(H[e+139|0]<0)uc(J[e+128>>2]);if(H[f+11|0]<0)uc(J[f>>2]);if(H[e+123|0]<0)uc(J[e+112>>2]);if(H[e+107|0]<0)uc(J[e+96>>2]);if(H[k+11|0]<0)uc(J[k>>2]);if(H[e+91|0]<0)uc(J[e+80>>2]);if(H[b+11|0]<0)uc(J[b>>2]);c=H[e+247|0];b=(c|0)<0;if((b?J[e+240>>2]:c&255)>>>0<22)break l;$:switch(J[(b?J[e+236>>2]:e+236|0)+64>>2]-43|0){case 0:case 2:break $; +default:break l}J[699344]=0;c=e+236|0;f=e+144|0;k=na(2963,e+160|0,c|0,16,3,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break v;J[699344]=0;b=ga(2280,k|0,0,2183540)|0;i=J[699344];J[699344]=0;if((i|0)==1)break u;J[e+184>>2]=J[b+8>>2];i=J[b+4>>2];J[e+176>>2]=J[b>>2];J[e+180>>2]=i;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[699344]=0;da(3417,e+176|0,58);b=J[699344];J[699344]=0;if((b|0)==1)break t;J[e+200>>2]=J[e+184>>2];J[e+184>>2]=0;b=J[e+180>>2];J[e+192>>2]=J[e+176>>2];J[e+196>>2]=b;J[e+176>>2]=0;J[e+180>>2]= +0;J[699344]=0;b=na(2963,f|0,c|0,20,2,e+128|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break s;f=J[b>>2];i=J[b+4>>2];c=K[b+11|0];J[699344]=0;j=f;f=c<<24>>24<0;c=ga(2960,e+192|0,(f?j:b)|0,(f?i:c)|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break r;J[e+216>>2]=J[c+8>>2];f=J[c+4>>2];J[e+208>>2]=J[c>>2];J[e+212>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[699344]=0;c=K[e+219|0];f=c<<24>>24<0;ga(2960,e+224|0,(f?J[e+208>>2]:e+208|0)|0,(f?J[e+212>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break q;if(H[e+219| +0]<0)uc(J[e+208>>2]);if(H[b+11|0]<0)uc(J[b>>2]);if(H[e+203|0]<0)uc(J[e+192>>2]);if(H[e+187|0]<0)uc(J[e+176>>2]);if(H[k+11|0]>=0)break j;uc(J[k>>2]);break j}break a}a=Z()|0;uc(b);ba(a|0);B()}c=Z()|0;break c}c=Z()|0;break w}c=Z()|0;break x}c=Z()|0;break y}c=Z()|0;break z}c=Z()|0;break A}c=Z()|0;break B}c=Z()|0;break C}c=Z()|0;break D}c=Z()|0;break E}c=Z()|0;break F}c=Z()|0;break G}c=Z()|0;break H}c=Z()|0;break I}c=Z()|0;break J}c=Z()|0;if(H[g+11|0]>=0)break J;uc(J[g>>2])}if(H[e+219|0]>=0)break I;uc(J[e+ +208>>2])}if(H[e+203|0]>=0)break H;uc(J[e+192>>2])}if(H[h+11|0]>=0)break G;uc(J[h>>2])}if(H[e+187|0]>=0)break F;uc(J[e+176>>2])}if(H[e+171|0]>=0)break E;uc(J[e+160>>2])}if(H[i+11|0]>=0)break D;uc(J[i>>2])}if(H[e+155|0]>=0)break C;uc(J[e+144>>2])}if(H[e+139|0]>=0)break B;uc(J[e+128>>2])}if(H[f+11|0]>=0)break A;uc(J[f>>2])}if(H[e+123|0]>=0)break z;uc(J[e+112>>2])}if(H[e+107|0]>=0)break y;uc(J[e+96>>2])}if(H[k+11|0]>=0)break x;uc(J[k>>2])}if(H[e+91|0]>=0)break w;uc(J[e+80>>2])}if(H[b+11|0]>=0)break c; +uc(J[b>>2]);break c}c=Z()|0;break e}c=Z()|0;break m}c=Z()|0;break n}c=Z()|0;break o}c=Z()|0;break p}c=Z()|0;if(H[e+219|0]>=0)break p;uc(J[e+208>>2])}if(H[b+11|0]>=0)break o;uc(J[b>>2])}if(H[e+203|0]>=0)break n;uc(J[e+192>>2])}if(H[e+187|0]>=0)break m;uc(J[e+176>>2])}if(H[k+11|0]>=0)break e;uc(J[k>>2]);break e}J[699344]=0;aa(3026,e+224|0,2183636)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break j;break f}c=Z()|0;break b}J[699344]=0;b=e+224|0;$(3705,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]= +0;aa(3026,a|0,846420)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;aa(3026,a|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;aa(3026,a|0,2183344)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;d=b;b=K[e+235|0];c=b<<24>>24<0;ga(2960,a|0,(c?J[e+224>>2]:d)|0,(c?J[e+228>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;aa(3026,a|0,2183444)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;if(H[e+235|0]>=0)break i;uc(J[e+224>>2])}uc(ld(n));J[699344]= +0;$(3370,e+248|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;if(H[e+247|0]>=0)break g;uc(J[e+236>>2])}fc=e+272|0;return}c=Z()|0}if(H[e+235|0]>=0)break c;uc(J[e+224>>2]);break c}c=Z()|0}if(H[e+247|0]>=0)break b;uc(J[e+236>>2])}if(H[a+11|0]<0)uc(J[a>>2]);ba(c|0);B()}ba(Z()|0);B()}function uY(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;s=J[a>>2];a:{if(s>>>0>>0|b>>>0>=d>>>0|b>>>0>=s>>>0)break a;s=J[a+4>>2];if(s>>>0< e>>>0|c>>>0>=e>>>0|c>>>0>=s>>>0)break a;D=(c>>>0)/M[a+12>>2]|0;r=J[a+8>>2];E=(b>>>0)/(r>>>0)|0;z=c;while(1){s=J[a+12>>2];j=s;j=(c|0)==(z|0)?j-((c>>>0)%(j>>>0)|0)|0:j;A=e-z|0;q=j>>>0>>0?j:A;B=q&-4;v=q&3;H=q&-8;F=q&7;y=q-1|0;I=(g|0)==2&(q|0)==1;G=P(s-j|0,r);C=(P(z-c|0,h)<<2)+f|0;A=E;s=b;while(1){j=(b|0)==(s|0)?(P(r,E)-b|0)+r|0:r;k=d-s|0;p=j>>>0>>0?j:k;k=r-j|0;l=A<<2;j=J[l+(J[a+24>>2]+(P(J[a+16>>2],D)<<2)|0)>>2];b:{c:{if(i){d:{e:{f:{g:{if(j){k=((G<<2)+j|0)+(k<<2)|0;j=s-b|0;if((g|0)==1)break d; l=(P(g,j)<<2)+C|0;if((p|0)==1)break e;if(I)break f;if((g|0)!=8|p>>>0<=7)break g;if(!q)break b;o=p&-4;n=0;while(1){j=0;if(o)while(1){J[(j<<5)+l>>2]=J[(j<<2)+k>>2];m=j|1;J[(m<<5)+l>>2]=J[(m<<2)+k>>2];m=j|2;J[(m<<5)+l>>2]=J[(m<<2)+k>>2];m=j|3;J[(m<<5)+l>>2]=J[(m<<2)+k>>2];j=j+4|0;if(o>>>0>j>>>0)continue;break}h:{if(j>>>0>=p>>>0)break h;u=(j^-1)+p|0;m=0;w=p-j&3;if(w)while(1){J[(j<<5)+l>>2]=J[(j<<2)+k>>2];j=j+1|0;m=m+1|0;if((w|0)!=(m|0))continue;break}if(u>>>0<3)break h;while(1){J[(j<<5)+l>>2]=J[(j<<2)+ k>>2];m=j+1|0;J[(m<<5)+l>>2]=J[(m<<2)+k>>2];m=j+2|0;J[(m<<5)+l>>2]=J[(m<<2)+k>>2];m=j+3|0;J[(m<<5)+l>>2]=J[(m<<2)+k>>2];j=j+4|0;if((p|0)!=(j|0))continue;break}}k=(r<<2)+k|0;l=(h<<2)+l|0;n=n+1|0;if((q|0)!=(n|0))continue;break}break b}if((g|0)!=1){if(!q)break b;u=p&-4;o=p&3;k=(P(s-b|0,g)<<2)+C|0;n=0;while(1){i:{if(!p)break i;l=0;j=0;m=0;if(p>>>0>=4)while(1){J[(P(g,j)<<2)+k>>2]=0;J[(P(j|1,g)<<2)+k>>2]=0;J[(P(j|2,g)<<2)+k>>2]=0;J[(P(j|3,g)<<2)+k>>2]=0;j=j+4|0;m=m+4|0;if((u|0)!=(m|0))continue;break}if(!o)break i; -while(1){J[(P(g,j)<<2)+k>>2]=0;j=j+1|0;l=l+1|0;if((o|0)!=(l|0))continue;break}}k=(h<<2)+k|0;n=n+1|0;if((q|0)!=(n|0))continue;break}break b}if(!q)break b;j=p<<2;k=(s-b<<2)+C|0;l=0;if(y>>>0>=7)while(1){t=wc(k,0,j);k=h<<2;k=wc(wc(wc(wc(wc(wc(wc(t+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0;l=l+8|0;if((H|0)!=(l|0))continue;break}l=0;if(!F)break b;while(1){k=wc(k,0,j)+(h<<2)|0;l=l+1|0;if((F|0)!=(l|0))continue;break}break b}if(!q)break b;w=p&-4;u=p&3;o=0;x=p-1>>>0<3;break c}j=0;m= +while(1){J[(P(g,j)<<2)+k>>2]=0;j=j+1|0;l=l+1|0;if((o|0)!=(l|0))continue;break}}k=(h<<2)+k|0;n=n+1|0;if((q|0)!=(n|0))continue;break}break b}if(!q)break b;j=p<<2;k=(s-b<<2)+C|0;l=0;if(y>>>0>=7)while(1){t=Ac(k,0,j);k=h<<2;k=Ac(Ac(Ac(Ac(Ac(Ac(Ac(t+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0,0,j)+k|0;l=l+8|0;if((H|0)!=(l|0))continue;break}l=0;if(!F)break b;while(1){k=Ac(k,0,j)+(h<<2)|0;l=l+1|0;if((F|0)!=(l|0))continue;break}break b}if(!q)break b;w=p&-4;u=p&3;o=0;x=p-1>>>0<3;break c}j=0;m= p&-4;if(m)while(1){J[(j<<3)+l>>2]=J[(j<<2)+k>>2];n=j|1;J[(n<<3)+l>>2]=J[(n<<2)+k>>2];n=j|2;J[(n<<3)+l>>2]=J[(n<<2)+k>>2];n=j|3;J[(n<<3)+l>>2]=J[(n<<2)+k>>2];j=j+4|0;if(m>>>0>j>>>0)continue;break}if(j>>>0>=p>>>0)break b;n=(j^-1)+p|0;m=0;o=p-j&3;if(o)while(1){J[(j<<3)+l>>2]=J[(j<<2)+k>>2];j=j+1|0;m=m+1|0;if((o|0)!=(m|0))continue;break}if(n>>>0<3)break b;while(1){J[(j<<3)+l>>2]=J[(j<<2)+k>>2];m=j+1|0;J[(m<<3)+l>>2]=J[(m<<2)+k>>2];m=j+2|0;J[(m<<3)+l>>2]=J[(m<<2)+k>>2];m=j+3|0;J[(m<<3)+l>>2]=J[(m<<2)+ -k>>2];j=j+4|0;if((p|0)!=(j|0))continue;break}break b}if(!q)break b;m=0;if(y>>>0>=3)while(1){J[l>>2]=J[k>>2];j=h<<2;l=j+l|0;t=k;k=r<<2;n=t+k|0;J[l>>2]=J[n>>2];l=j+l|0;n=k+n|0;J[l>>2]=J[n>>2];l=j+l|0;n=k+n|0;J[l>>2]=J[n>>2];k=k+n|0;l=j+l|0;m=m+4|0;if((B|0)!=(m|0))continue;break}j=0;if(!v)break b;while(1){J[l>>2]=J[k>>2];k=(r<<2)+k|0;l=(h<<2)+l|0;j=j+1|0;if((v|0)!=(j|0))continue;break}break b}j=(j<<2)+C|0;if((p|0)!=4){if(!q)break b;l=p<<2;m=0;if(y>>>0>=3)while(1){o=tc(j,k,l);j=r<<2;n=j+k|0;u=j+n|0;w= -u+j|0;k=w+j|0;j=h<<2;j=tc(tc(tc(j+o|0,n,l)+j|0,u,l)+j|0,w,l)+j|0;m=m+4|0;if((B|0)!=(m|0))continue;break}m=0;if(!v)break b;while(1){j=tc(j,k,l);k=(r<<2)+k|0;j=(h<<2)+j|0;m=m+1|0;if((v|0)!=(m|0))continue;break}break b}if(!q)break b;n=0;if(y>>>0>=3)while(1){l=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=l;l=J[k+12>>2];J[j+8>>2]=J[k+8>>2];J[j+12>>2]=l;m=r<<2;k=m+k|0;o=J[k+12>>2];l=h<<2;j=l+j|0;J[j+8>>2]=J[k+8>>2];J[j+12>>2]=o;o=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=o;k=k+m|0;o=J[k+12>>2];j=j+l|0;J[j+8>>2]=J[k+8>> -2];J[j+12>>2]=o;o=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=o;k=k+m|0;o=J[k+12>>2];j=j+l|0;J[j+8>>2]=J[k+8>>2];J[j+12>>2]=o;o=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=o;k=k+m|0;j=j+l|0;n=n+4|0;if((B|0)!=(n|0))continue;break}l=0;if(!v)break b;while(1){m=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=m;m=J[k+12>>2];J[j+8>>2]=J[k+8>>2];J[j+12>>2]=m;k=(r<<2)+k|0;j=(h<<2)+j|0;l=l+1|0;if((v|0)!=(l|0))continue;break}break b}if(!j){j=ye(1,P(J[a+8>>2],J[a+12>>2])<<2);if(!j)return 0;J[l+(J[a+24>>2]+(P(J[a+16>>2],D)<<2)|0)>>2]=j}k= +k>>2];j=j+4|0;if((p|0)!=(j|0))continue;break}break b}if(!q)break b;m=0;if(y>>>0>=3)while(1){J[l>>2]=J[k>>2];j=h<<2;l=j+l|0;t=k;k=r<<2;n=t+k|0;J[l>>2]=J[n>>2];l=j+l|0;n=k+n|0;J[l>>2]=J[n>>2];l=j+l|0;n=k+n|0;J[l>>2]=J[n>>2];k=k+n|0;l=j+l|0;m=m+4|0;if((B|0)!=(m|0))continue;break}j=0;if(!v)break b;while(1){J[l>>2]=J[k>>2];k=(r<<2)+k|0;l=(h<<2)+l|0;j=j+1|0;if((v|0)!=(j|0))continue;break}break b}j=(j<<2)+C|0;if((p|0)!=4){if(!q)break b;l=p<<2;m=0;if(y>>>0>=3)while(1){o=xc(j,k,l);j=r<<2;n=j+k|0;u=j+n|0;w= +u+j|0;k=w+j|0;j=h<<2;j=xc(xc(xc(j+o|0,n,l)+j|0,u,l)+j|0,w,l)+j|0;m=m+4|0;if((B|0)!=(m|0))continue;break}m=0;if(!v)break b;while(1){j=xc(j,k,l);k=(r<<2)+k|0;j=(h<<2)+j|0;m=m+1|0;if((v|0)!=(m|0))continue;break}break b}if(!q)break b;n=0;if(y>>>0>=3)while(1){l=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=l;l=J[k+12>>2];J[j+8>>2]=J[k+8>>2];J[j+12>>2]=l;m=r<<2;k=m+k|0;o=J[k+12>>2];l=h<<2;j=l+j|0;J[j+8>>2]=J[k+8>>2];J[j+12>>2]=o;o=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=o;k=k+m|0;o=J[k+12>>2];j=j+l|0;J[j+8>>2]=J[k+8>> +2];J[j+12>>2]=o;o=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=o;k=k+m|0;o=J[k+12>>2];j=j+l|0;J[j+8>>2]=J[k+8>>2];J[j+12>>2]=o;o=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=o;k=k+m|0;j=j+l|0;n=n+4|0;if((B|0)!=(n|0))continue;break}l=0;if(!v)break b;while(1){m=J[k+4>>2];J[j>>2]=J[k>>2];J[j+4>>2]=m;m=J[k+12>>2];J[j+8>>2]=J[k+8>>2];J[j+12>>2]=m;k=(r<<2)+k|0;j=(h<<2)+j|0;l=l+1|0;if((v|0)!=(l|0))continue;break}break b}if(!j){j=Ge(1,P(J[a+8>>2],J[a+12>>2])<<2);if(!j)return 0;J[l+(J[a+24>>2]+(P(J[a+16>>2],D)<<2)|0)>>2]=j}k= ((G<<2)+j|0)+(k<<2)|0;j=s-b|0;j:{k:{l:{m:{if((g|0)!=1){l=(P(g,j)<<2)+C|0;if((p|0)==1)break m;if((g|0)!=8|p>>>0<=7)break l;if(!q)break b;o=p&-4;n=0;while(1){j=0;if(o)while(1){J[(j<<2)+k>>2]=J[(j<<5)+l>>2];m=j|1;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];m=j|2;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];m=j|3;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];j=j+4|0;if(o>>>0>j>>>0)continue;break}n:{if(j>>>0>=p>>>0)break n;u=(j^-1)+p|0;m=0;w=p-j&3;if(w)while(1){J[(j<<2)+k>>2]=J[(j<<5)+l>>2];j=j+1|0;m=m+1|0;if((w|0)!=(m|0))continue;break}if(u>>>0< -3)break n;while(1){J[(j<<2)+k>>2]=J[(j<<5)+l>>2];m=j+1|0;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];m=j+2|0;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];m=j+3|0;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];j=j+4|0;if((p|0)!=(j|0))continue;break}}k=(r<<2)+k|0;l=(h<<2)+l|0;n=n+1|0;if((q|0)!=(n|0))continue;break}break b}j=(j<<2)+C|0;if((p|0)==4)break k;if(!q)break b;l=p<<2;m=0;if(y>>>0>=3)while(1){k=tc(k,j,l);t=j;j=h<<2;n=t+j|0;o=j+n|0;u=o+j|0;j=u+j|0;t=k;k=r<<2;k=tc(tc(tc(t+k|0,n,l)+k|0,o,l)+k|0,u,l)+k|0;m=m+4|0;if((B|0)!=(m|0))continue;break}m= -0;if(!v)break b;while(1){k=tc(k,j,l);j=(h<<2)+j|0;k=(r<<2)+k|0;m=m+1|0;if((v|0)!=(m|0))continue;break}break b}if(!q)break b;n=0;if(y>>>0>=3)while(1){J[k>>2]=J[l>>2];j=r<<2;k=j+k|0;t=l;l=h<<2;m=t+l|0;J[k>>2]=J[m>>2];k=j+k|0;m=l+m|0;J[k>>2]=J[m>>2];k=j+k|0;m=l+m|0;J[k>>2]=J[m>>2];k=j+k|0;l=l+m|0;n=n+4|0;if((B|0)!=(n|0))continue;break}j=0;if(!v)break b;while(1){J[k>>2]=J[l>>2];k=(r<<2)+k|0;l=(h<<2)+l|0;j=j+1|0;if((v|0)!=(j|0))continue;break}break b}if(!q)break b;w=p&-4;u=p&3;o=0;break j}if(!q)break b; +3)break n;while(1){J[(j<<2)+k>>2]=J[(j<<5)+l>>2];m=j+1|0;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];m=j+2|0;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];m=j+3|0;J[(m<<2)+k>>2]=J[(m<<5)+l>>2];j=j+4|0;if((p|0)!=(j|0))continue;break}}k=(r<<2)+k|0;l=(h<<2)+l|0;n=n+1|0;if((q|0)!=(n|0))continue;break}break b}j=(j<<2)+C|0;if((p|0)==4)break k;if(!q)break b;l=p<<2;m=0;if(y>>>0>=3)while(1){k=xc(k,j,l);t=j;j=h<<2;n=t+j|0;o=j+n|0;u=o+j|0;j=u+j|0;t=k;k=r<<2;k=xc(xc(xc(t+k|0,n,l)+k|0,o,l)+k|0,u,l)+k|0;m=m+4|0;if((B|0)!=(m|0))continue;break}m= +0;if(!v)break b;while(1){k=xc(k,j,l);j=(h<<2)+j|0;k=(r<<2)+k|0;m=m+1|0;if((v|0)!=(m|0))continue;break}break b}if(!q)break b;n=0;if(y>>>0>=3)while(1){J[k>>2]=J[l>>2];j=r<<2;k=j+k|0;t=l;l=h<<2;m=t+l|0;J[k>>2]=J[m>>2];k=j+k|0;m=l+m|0;J[k>>2]=J[m>>2];k=j+k|0;m=l+m|0;J[k>>2]=J[m>>2];k=j+k|0;l=l+m|0;n=n+4|0;if((B|0)!=(n|0))continue;break}j=0;if(!v)break b;while(1){J[k>>2]=J[l>>2];k=(r<<2)+k|0;l=(h<<2)+l|0;j=j+1|0;if((v|0)!=(j|0))continue;break}break b}if(!q)break b;w=p&-4;u=p&3;o=0;break j}if(!q)break b; n=0;if(y>>>0>=3)while(1){l=J[j+4>>2];J[k>>2]=J[j>>2];J[k+4>>2]=l;l=J[j+12>>2];J[k+8>>2]=J[j+8>>2];J[k+12>>2]=l;m=h<<2;j=m+j|0;o=J[j+12>>2];l=r<<2;k=l+k|0;J[k+8>>2]=J[j+8>>2];J[k+12>>2]=o;o=J[j+4>>2];J[k>>2]=J[j>>2];J[k+4>>2]=o;j=j+m|0;o=J[j+12>>2];k=k+l|0;J[k+8>>2]=J[j+8>>2];J[k+12>>2]=o;o=J[j+4>>2];J[k>>2]=J[j>>2];J[k+4>>2]=o;j=j+m|0;o=J[j+12>>2];k=k+l|0;J[k+8>>2]=J[j+8>>2];J[k+12>>2]=o;o=J[j+4>>2];J[k>>2]=J[j>>2];J[k+4>>2]=o;j=j+m|0;k=k+l|0;n=n+4|0;if((B|0)!=(n|0))continue;break}l=0;if(!v)break b; while(1){m=J[j+4>>2];J[k>>2]=J[j>>2];J[k+4>>2]=m;m=J[j+12>>2];J[k+8>>2]=J[j+8>>2];J[k+12>>2]=m;j=(h<<2)+j|0;k=(r<<2)+k|0;l=l+1|0;if((v|0)!=(l|0))continue;break}break b}while(1){o:{if(!p)break o;m=0;j=0;n=0;if(p>>>0>=4)while(1){J[(j<<2)+k>>2]=J[(P(g,j)<<2)+l>>2];x=j|1;J[(x<<2)+k>>2]=J[(P(g,x)<<2)+l>>2];x=j|2;J[(x<<2)+k>>2]=J[(P(g,x)<<2)+l>>2];x=j|3;J[(x<<2)+k>>2]=J[(P(g,x)<<2)+l>>2];j=j+4|0;n=n+4|0;if((w|0)!=(n|0))continue;break}if(!u)break o;while(1){J[(j<<2)+k>>2]=J[(P(g,j)<<2)+l>>2];j=j+1|0;m=m+ 1|0;if((u|0)!=(m|0))continue;break}}k=(r<<2)+k|0;l=(h<<2)+l|0;o=o+1|0;if((o|0)!=(q|0))continue;break}break b}while(1){p:{if(!p)break p;m=0;j=0;n=0;if(!x)while(1){J[(P(g,j)<<2)+l>>2]=J[(j<<2)+k>>2];t=j|1;J[(P(t,g)<<2)+l>>2]=J[(t<<2)+k>>2];t=j|2;J[(P(t,g)<<2)+l>>2]=J[(t<<2)+k>>2];t=j|3;J[(P(t,g)<<2)+l>>2]=J[(t<<2)+k>>2];j=j+4|0;n=n+4|0;if((w|0)!=(n|0))continue;break}if(!u)break p;while(1){J[(P(g,j)<<2)+l>>2]=J[(j<<2)+k>>2];j=j+1|0;m=m+1|0;if((u|0)!=(m|0))continue;break}}k=(r<<2)+k|0;l=(h<<2)+l|0;o= -o+1|0;if((o|0)!=(q|0))continue;break}}A=A+1|0;s=p+s|0;if(s>>>0>>0)continue;break}D=D+1|0;z=q+z|0;if(z>>>0>>0)continue;break}}return 1}function Q2(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,z=0,A=0,B=0,C=0,D=0,E=0;e=bc-1408|0;bc=e;g=d<<3;q=g&-32|4;f=c<<2;r=f&-32|2;k=b<<3;s=k&-32|4;y=J[J[a+480>>2]+24>>2];l=J[a+132>>2];a:{if((l|0)<=0){l=0;break a}m=g|28;t=m+q>>>1|0;o=f|30;u=o+r>>>1|0;p=k|28;v=p+s>>>1|0;g=J[a+136>>2];i=J[g+8>>2];w=J[g+4>>2]; -x=J[g>>2];f=0;h=2147483647;while(1){g=K[f+x|0];b:{if((g|0)<(s|0)){k=g-p<<1;k=P(k,k);g=g-s<<1;n=P(g,g);break b}if((g|0)>(p|0)){k=g-s<<1;k=P(k,k);g=g-p<<1;n=P(g,g);break b}c:{if(g>>>0<=v>>>0){g=g-p<<1;k=P(g,g);break c}g=g-s<<1;k=P(g,g)}n=0}g=n;j=K[f+w|0];d:{if((j|0)<(r|0)){g=P(j-r|0,3);g=n+P(g,g)|0;j=P(j-o|0,3);n=P(j,j);break d}if((j|0)>(o|0)){n=g;g=P(j-o|0,3);g=n+P(g,g)|0;j=P(j-r|0,3);n=P(j,j);break d}if(j>>>0<=u>>>0){j=P(j-o|0,3);n=P(j,j);break d}j=P(j-r|0,3);n=P(j,j)}j=n+k|0;k=K[f+i|0];e:{if((k| -0)<(q|0)){n=g;g=k-q|0;g=n+P(g,g)|0;k=k-m|0;k=P(k,k);break e}if((k|0)>(m|0)){n=g;g=k-m|0;g=n+P(g,g)|0;k=k-q|0;k=P(k,k);break e}if(k>>>0<=t>>>0){k=k-m|0;k=P(k,k);break e}k=k-q|0;k=P(k,k)}J[(e+384|0)+(f<<2)>>2]=g;g=j+k|0;h=(g|0)<(h|0)?g:h;f=f+1|0;if((l|0)!=(f|0))continue;break}k=l&1;f:{if((l|0)==1){l=0;f=0;break f}j=l&-2;l=0;f=0;g=0;while(1){if(J[(e+384|0)+(f<<2)>>2]<=(h|0)){H[(e+128|0)+l|0]=f;l=l+1|0}m=f|1;if(J[(e+384|0)+(m<<2)>>2]<=(h|0)){H[(e+128|0)+l|0]=m;l=l+1|0}f=f+2|0;g=g+2|0;if((j|0)!=(g|0))continue; -break}}if(!k|J[(e+384|0)+(f<<2)>>2]>(h|0))break a;H[(e+128|0)+l|0]=f;l=l+1|0}J[e+888>>2]=2147483647;J[e+892>>2]=2147483647;J[e+880>>2]=2147483647;J[e+884>>2]=2147483647;J[e+872>>2]=2147483647;J[e+876>>2]=2147483647;J[e+864>>2]=2147483647;J[e+868>>2]=2147483647;J[e+856>>2]=2147483647;J[e+860>>2]=2147483647;J[e+848>>2]=2147483647;J[e+852>>2]=2147483647;J[e+840>>2]=2147483647;J[e+844>>2]=2147483647;J[e+832>>2]=2147483647;J[e+836>>2]=2147483647;J[e+824>>2]=2147483647;J[e+828>>2]=2147483647;J[e+816>>2]= -2147483647;J[e+820>>2]=2147483647;J[e+808>>2]=2147483647;J[e+812>>2]=2147483647;J[e+800>>2]=2147483647;J[e+804>>2]=2147483647;J[e+792>>2]=2147483647;J[e+796>>2]=2147483647;J[e+784>>2]=2147483647;J[e+788>>2]=2147483647;J[e+776>>2]=2147483647;J[e+780>>2]=2147483647;J[e+768>>2]=2147483647;J[e+772>>2]=2147483647;J[e+760>>2]=2147483647;J[e+764>>2]=2147483647;J[e+752>>2]=2147483647;J[e+756>>2]=2147483647;J[e+744>>2]=2147483647;J[e+748>>2]=2147483647;J[e+736>>2]=2147483647;J[e+740>>2]=2147483647;J[e+728>> -2]=2147483647;J[e+732>>2]=2147483647;J[e+720>>2]=2147483647;J[e+724>>2]=2147483647;J[e+712>>2]=2147483647;J[e+716>>2]=2147483647;J[e+704>>2]=2147483647;J[e+708>>2]=2147483647;J[e+696>>2]=2147483647;J[e+700>>2]=2147483647;J[e+688>>2]=2147483647;J[e+692>>2]=2147483647;J[e+680>>2]=2147483647;J[e+684>>2]=2147483647;J[e+672>>2]=2147483647;J[e+676>>2]=2147483647;J[e+664>>2]=2147483647;J[e+668>>2]=2147483647;J[e+656>>2]=2147483647;J[e+660>>2]=2147483647;J[e+648>>2]=2147483647;J[e+652>>2]=2147483647;J[e+ -640>>2]=2147483647;J[e+644>>2]=2147483647;J[e+632>>2]=2147483647;J[e+636>>2]=2147483647;J[e+624>>2]=2147483647;J[e+628>>2]=2147483647;J[e+616>>2]=2147483647;J[e+620>>2]=2147483647;J[e+608>>2]=2147483647;J[e+612>>2]=2147483647;J[e+600>>2]=2147483647;J[e+604>>2]=2147483647;J[e+592>>2]=2147483647;J[e+596>>2]=2147483647;J[e+584>>2]=2147483647;J[e+588>>2]=2147483647;J[e+576>>2]=2147483647;J[e+580>>2]=2147483647;J[e+568>>2]=2147483647;J[e+572>>2]=2147483647;J[e+560>>2]=2147483647;J[e+564>>2]=2147483647; -J[e+552>>2]=2147483647;J[e+556>>2]=2147483647;J[e+544>>2]=2147483647;J[e+548>>2]=2147483647;J[e+536>>2]=2147483647;J[e+540>>2]=2147483647;J[e+528>>2]=2147483647;J[e+532>>2]=2147483647;J[e+520>>2]=2147483647;J[e+524>>2]=2147483647;J[e+512>>2]=2147483647;J[e+516>>2]=2147483647;J[e+504>>2]=2147483647;J[e+508>>2]=2147483647;J[e+496>>2]=2147483647;J[e+500>>2]=2147483647;J[e+488>>2]=2147483647;J[e+492>>2]=2147483647;J[e+480>>2]=2147483647;J[e+484>>2]=2147483647;J[e+472>>2]=2147483647;J[e+476>>2]=2147483647; -J[e+464>>2]=2147483647;J[e+468>>2]=2147483647;J[e+456>>2]=2147483647;J[e+460>>2]=2147483647;J[e+448>>2]=2147483647;J[e+452>>2]=2147483647;J[e+440>>2]=2147483647;J[e+444>>2]=2147483647;J[e+432>>2]=2147483647;J[e+436>>2]=2147483647;J[e+424>>2]=2147483647;J[e+428>>2]=2147483647;J[e+416>>2]=2147483647;J[e+420>>2]=2147483647;J[e+408>>2]=2147483647;J[e+412>>2]=2147483647;J[e+400>>2]=2147483647;J[e+404>>2]=2147483647;J[e+392>>2]=2147483647;J[e+396>>2]=2147483647;J[e+384>>2]=2147483647;J[e+388>>2]=2147483647; -if((l|0)>0){v=J[a+136>>2];w=J[v+8>>2];x=J[v+4>>2];t=0;while(1){a=3;j=K[(e+128|0)+t|0];g=r-K[j+x|0]|0;f=P(g,3);k=P(f,f);h=s-K[j+J[v>>2]|0]|0;f=h<<1;k=k+P(f,f)|0;f=q-K[j+w|0]|0;k=k+P(f,f)|0;g=P(g,72);n=g+1872|0;z=g+1584|0;A=g+1296|0;B=g+1008|0;C=g+720|0;D=g+432|0;f=f<<4;m=f+320|0;o=f+192|0;p=f- -64|0;E=g+144|0;u=(h<<6)+256|0;f=e+384|0;g=e;while(1){if(J[f>>2]>(k|0)){J[f>>2]=k;H[g|0]=j}h=k+p|0;if((h|0)>2]){J[f+4>>2]=h;H[g+1|0]=j}h=h+o|0;if((h|0)>2]){J[f+8>>2]=h;H[g+2|0]=j}h=h+m|0;if((h| -0)>2]){J[f+12>>2]=h;H[g+3|0]=j}h=k+E|0;if((h|0)>2]){J[f+16>>2]=h;H[g+4|0]=j}i=h+p|0;if((i|0)>2]){J[f+20>>2]=i;H[g+5|0]=j}i=i+o|0;if((i|0)>2]){J[f+24>>2]=i;H[g+6|0]=j}i=i+m|0;if((i|0)>2]){J[f+28>>2]=i;H[g+7|0]=j}h=h+D|0;if((h|0)>2]){J[f+32>>2]=h;H[g+8|0]=j}i=h+p|0;if((i|0)>2]){J[f+36>>2]=i;H[g+9|0]=j}i=i+o|0;if((i|0)>2]){J[f+40>>2]=i;H[g+10|0]=j}i=i+m|0;if((i|0)>2]){J[f+44>>2]=i;H[g+11|0]=j}h=h+C|0;if((h|0)>2]){J[f+48>> -2]=h;H[g+12|0]=j}i=h+p|0;if((i|0)>2]){J[f+52>>2]=i;H[g+13|0]=j}i=i+o|0;if((i|0)>2]){J[f+56>>2]=i;H[g+14|0]=j}i=i+m|0;if((i|0)>2]){J[f+60>>2]=i;H[g+15|0]=j}h=h+B|0;if((h|0)>2]){J[f+64>>2]=h;H[g+16|0]=j}i=h+p|0;if((i|0)>2]){J[f+68>>2]=i;H[g+17|0]=j}i=i+o|0;if((i|0)>2]){J[f+72>>2]=i;H[g+18|0]=j}i=i+m|0;if((i|0)>2]){J[f+76>>2]=i;H[g+19|0]=j}h=h+A|0;if((h|0)>2]){J[f+80>>2]=h;H[g+20|0]=j}i=h+p|0;if((i|0)>2]){J[f+84>>2]=i;H[g+21|0]= -j}i=i+o|0;if((i|0)>2]){J[f+88>>2]=i;H[g+22|0]=j}i=i+m|0;if((i|0)>2]){J[f+92>>2]=i;H[g+23|0]=j}h=h+z|0;if((h|0)>2]){J[f+96>>2]=h;H[g+24|0]=j}i=h+p|0;if((i|0)>2]){J[f+100>>2]=i;H[g+25|0]=j}i=i+o|0;if((i|0)>2]){J[f+104>>2]=i;H[g+26|0]=j}i=i+m|0;if((i|0)>2]){J[f+108>>2]=i;H[g+27|0]=j}h=h+n|0;if((h|0)>2]){J[f+112>>2]=h;H[g+28|0]=j}h=h+p|0;if((h|0)>2]){J[f+116>>2]=h;H[g+29|0]=j}h=h+o|0;if((h|0)>2]){J[f+120>>2]=h;H[g+30|0]=j}h= -h+m|0;if((h|0)>2]){J[f+124>>2]=h;H[g+31|0]=j}h=a;a=h-1|0;k=k+u|0;g=g+32|0;f=f+128|0;u=u+512|0;if(h)continue;break}t=t+1|0;if((t|0)!=(l|0))continue;break}}b=((b&1073741820)<<2)+y|0;h=0;f=e;c=(c&-8)<<6;d=(d&-4)<<1;while(1){a=d+(c+J[b+(h<<2)>>2]|0)|0;I[a>>1]=K[f|0]+1;I[a+2>>1]=K[f+1|0]+1;I[a+4>>1]=K[f+2|0]+1;I[a+6>>1]=K[f+3|0]+1;I[a- -64>>1]=K[f+4|0]+1;I[a+66>>1]=K[f+5|0]+1;I[a+68>>1]=K[f+6|0]+1;I[a+70>>1]=K[f+7|0]+1;I[a+128>>1]=K[f+8|0]+1;I[a+130>>1]=K[f+9|0]+1;I[a+132>>1]=K[f+10|0]+1;I[a+ -134>>1]=K[f+11|0]+1;I[a+192>>1]=K[f+12|0]+1;I[a+194>>1]=K[f+13|0]+1;I[a+196>>1]=K[f+14|0]+1;I[a+198>>1]=K[f+15|0]+1;I[a+256>>1]=K[f+16|0]+1;I[a+258>>1]=K[f+17|0]+1;I[a+260>>1]=K[f+18|0]+1;I[a+262>>1]=K[f+19|0]+1;I[a+320>>1]=K[f+20|0]+1;I[a+322>>1]=K[f+21|0]+1;I[a+324>>1]=K[f+22|0]+1;I[a+326>>1]=K[f+23|0]+1;I[a+384>>1]=K[f+24|0]+1;I[a+386>>1]=K[f+25|0]+1;I[a+388>>1]=K[f+26|0]+1;I[a+390>>1]=K[f+27|0]+1;I[a+448>>1]=K[f+28|0]+1;I[a+450>>1]=K[f+29|0]+1;I[a+452>>1]=K[f+30|0]+1;I[a+454>>1]=K[f+31|0]+1;f= -f+32|0;h=h+1|0;if((h|0)!=4)continue;break}bc=e+1408|0}function _V(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,y=0,z=0,A=0;c=bc-112|0;bc=c;e=J[a>>2];a:if(K[a+8|0]){g=0;if(!e)break a;g=J[e>>2]}else g=e;e=g;k=J[a+4>>2];J[c+4>>2]=k;a=0;b:{if((k|0)<=0)break b;while(1){l=J[(a<<2)+e>>2];g=l-32|0;if(!((g|0)!=12?g:0)){a=a+1|0;if((k|0)>(a|0))continue;break b}g=a+1|0;J[c>>2]=g;c:{d:switch(l-65|0){case 5:if((k|0)<=(g|0))break c;while(1){a=J[(g<< -2)+e>>2]-32|0;if(!(!a|(a|0)==12)){J[c>>2]=g;r=0;A=ZG(e,c,c+4|0);break c}g=g+1|0;if((k|0)!=(g|0))continue;break}J[c>>2]=k;break c;case 25:case 57:gc[J[J[b>>2]+340>>2]](b)|0;r=0;break c;case 18:case 50:if((k|0)<=(g|0))break c;p=(l|0)!=115;while(1){a=g;e:{f:{while(1){l=J[(a<<2)+e>>2];o=l-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(l-48>>>0<10)break e;a=l-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break c}if((l|0)!=101)break c}h=f; -i=d;if(r){i=d+d-u;h=f+f-s}s=Te(e,c,c+4|0);g:{if(!p){s=f+s;u=f+Te(e,c,c+4|0);f=f+Te(e,c,c+4|0);d=d+Te(e,c,c+4|0);break g}u=Te(e,c,c+4|0);f=Te(e,c,c+4|0);d=Te(e,c,c+4|0)}O[c+104>>3]=h*25.4/96;O[c+96>>3]=i*25.4/96;O[c+88>>3]=s*25.4/96;O[c+80>>3]=u*25.4/96;O[c+72>>3]=f*25.4/96;O[c+64>>3]=d*25.4/96;gc[J[J[b>>2]+328>>2]](b,c+104|0,c+96|0,c+88|0,c+80|0,c+72|0,c- -64|0)|0;r=1;g=J[c>>2];if((k|0)>(g|0))continue;break}break c;case 16:case 48:r=0;if((k|0)<=(g|0))break c;p=(l|0)!=113;while(1){h=f;a=g;h:{i:{j:{while(1){l= -J[(a<<2)+e>>2];o=l-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(l-48>>>0<10)break h;a=l-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break i}if((l|0)==101)break h}f=h;break c}n=Te(e,c,c+4|0);k:{if(!p){n=h+n;m=d+Te(e,c,c+4|0);f=h+Te(e,c,c+4|0);j=d+Te(e,c,c+4|0);break k}m=Te(e,c,c+4|0);f=Te(e,c,c+4|0);j=Te(e,c,c+4|0)}i=h/3;h=(n+n)/3;O[c+104>>3]=(i+h)*25.4/96;i=d/3;d=(m+m)/3;O[c+96>>3]=(i+d)*25.4/96;O[c+88>>3]=(h+f/3)*25.4/96;h=d;d= -j;O[c+80>>3]=(h+d/3)*25.4/96;O[c+72>>3]=f*25.4/96;O[c+64>>3]=d*25.4/96;gc[J[J[b>>2]+328>>2]](b,c+104|0,c+96|0,c+88|0,c+80|0,c+72|0,c- -64|0)|0;g=J[c>>2];if((k|0)>(g|0))continue;break}break c;case 2:case 34:if((k|0)<=(g|0))break c;p=(l|0)!=99;while(1){a=g;l:{m:{while(1){l=J[(a<<2)+e>>2];o=l-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(l-48>>>0<10)break l;a=l-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break c}if((l|0)!=101)break c}h= -Te(e,c,c+4|0);n:{if(!p){h=f+h;i=d+Te(e,c,c+4|0);s=f+Te(e,c,c+4|0);u=d+Te(e,c,c+4|0);f=f+Te(e,c,c+4|0);d=d+Te(e,c,c+4|0);break n}i=Te(e,c,c+4|0);s=Te(e,c,c+4|0);u=Te(e,c,c+4|0);f=Te(e,c,c+4|0);d=Te(e,c,c+4|0)}O[c+104>>3]=h*25.4/96;O[c+96>>3]=i*25.4/96;O[c+88>>3]=s*25.4/96;O[c+80>>3]=u*25.4/96;O[c+72>>3]=f*25.4/96;O[c+64>>3]=d*25.4/96;gc[J[J[b>>2]+328>>2]](b,c+104|0,c+96|0,c+88|0,c+80|0,c+72|0,c- -64|0)|0;r=1;g=J[c>>2];if((k|0)>(g|0))continue;break}break c;case 0:case 32:r=0;if((k|0)<=(g|0))break c; -p=(l|0)!=97;o:{while(1){p:{a=g;q:{r:{while(1){l=J[(a<<2)+e>>2];o=l-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(l-48>>>0<10)break q;a=l-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break c}if((l|0)!=101)break c}a=c+4|0;m=Te(e,c,a);O[c+104>>3]=m;j=Te(e,c,a);O[c+96>>3]=j;n=Te(e,c,a);z=ZG(e,c,a);l=ZG(e,c,a);h=Te(e,c,c+4|0);O[c+88>>3]=h;i=Te(e,c,c+4|0);O[c+80>>3]=i;if(!p){i=d+i;O[c+80>>3]=i;h=f+h;O[c+88>>3]=h}O[c+72>>3]=h;O[c+64>>3]= -i;s:{t:{if(R(m)<.001|R(j)<.001){gc[J[J[b>>2]+320>>2]](b,c+72|0,c- -64|0)|0;d=O[c+80>>3];f=O[c+88>>3];break t}w=nl(c+60|0);J[695492]=0;t=$(2278,c+56|0)|0;a=J[695492];J[695492]=0;u:{v:{w:{x:{if((a|0)!=1){J[695492]=0;qC(w,-n,0);a=J[695492];J[695492]=0;if((a|0)==1)break p;J[695492]=0;Vt(w,-f,-d,0);a=J[695492];J[695492]=0;if((a|0)==1)break p;J[695492]=0;Vt(t,f,d,0);a=J[695492];J[695492]=0;if((a|0)==1)break p;J[695492]=0;qC(t,n,0);a=J[695492];J[695492]=0;if((a|0)==1)break p;J[c+48>>2]=0;J[c+52>>2]=0;J[695492]= -0;J[c+40>>2]=0;J[c+44>>2]=0;o=c+88|0;g=c+80|0;je(w,o,g);a=J[695492];J[695492]=0;if((a|0)==1)break p;J[695492]=0;je(t,c+48|0,c+40|0);a=J[695492];J[695492]=0;if((a|0)==1)break p;y:{if(R(O[c+80>>3])>.001){J[695492]=0;g=ZV(o,g,c+104|0,c+96|0,c+32|0,c+24|0,c+16|0,c+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break p;if(!g)break x;d=O[c+24>>3];f=O[c+32>>3];break y}d=O[c+88>>3];if(R(d)<.001)break x;f=d*.5;O[c+16>>3]=f;O[c+32>>3]=f;n=O[c+96>>3];d=n*n;h=f*f;j=O[c+104>>3];d=d-h*(d/(j*j));z:{if(!(d<0))break z; -m=f/j;if(!(m>1))break z;j=j*m;O[c+104>>3]=j;d=n*m;O[c+96>>3]=d;d=d*d;d=d-h*(d/(j*j))}if(d<-.001)break x;h=Y(d);a=d<0;d=a?0:h;O[c+24>>3]=d;O[c+8>>3]=a?0:-h}if(!(f<=0))break w;a=3;if(d>=0)break v;a=0;break v}a=Z()|0;break o}a=J[J[b>>2]+320>>2];J[695492]=0;ga(a|0,b|0,c+72|0,c- -64|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break u;break p}a=2;if(d>=0)break v;a=1}j=0-d;h=0-f;h=Tu(R(j)/Y(h*h+j*j))*180/3.141592653589793;A:{B:switch(a-1|0){case 0:h=180-h;break A;case 1:h=h+180;break A;case 2:break B;default:break A}h= -360-h}v=O[c+80>>3];x=O[c+88>>3];C:{if(x>=f){a=3;if(d>=v)break C;a=0;break C}a=2;if(d>=v)break C;a=1}m=v-d;j=x-f;i=Tu(R(m)/Y(j*j+m*m))*180/3.141592653589793;D:{E:switch(a-1|0){case 0:i=180-i;break D;case 1:i=i+180;break D;case 2:break E;default:break D}i=360-i}m=O[c+8>>3];j=O[c+16>>3];F:{if(j<=0){a=3;if(m>=0)break F;a=0;break F}a=2;if(m>=0)break F;a=1}q=0-m;n=0-j;n=Tu(R(q)/Y(n*n+q*q))*180/3.141592653589793;G:{H:switch(a-1|0){case 0:n=180-n;break G;case 1:n=n+180;break G;case 2:break H;default:break G}n= -360-n}y=h>i?i+360:i;q=v-m;i=x-j;i=Tu(R(q)/Y(i*i+q*q))*180/3.141592653589793;I:{J:{K:{L:{M:{if(j<=x){a=3;if(m>=v)break M;a=0;break M}a=2;if(m>=v)break M;a=1}switch(a-1|0){case 2:break J;case 1:break K;case 0:break L;default:break I}}i=180-i;break I}i=i+180;break I}i=360-i}a=l^1;q=y-h;N:{if((l|0)!=(z|0)&q>180)break N;if(q<=180)if(!(a|z^1)|(l|z)!=1)break N;y=i>3];if(m<=0)break u;j=O[c+96>>3];if(j<=0)break u;if(R(y-h)>=360){J[695492]=0;Hb(4972,b|0,t|0,+f,+d,+m,+j);a=J[695492]; -J[695492]=0;if((a|0)!=1)break u;break s}J[695492]=0;Gb(4973,b|0,t|0,+f,+d,+m,+j,+h,+y,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break s}d=O[c+64>>3];f=O[c+72>>3];Ed(t);Ed(w)}g=J[c>>2];if((k|0)>(g|0))continue;break c}}break}a=Z()|0;Ed(t)}Ed(w);ba(a|0);B();case 7:case 11:case 21:case 39:case 43:case 53:r=0;if((k|0)<=(g|0))break c;while(1){a=g;O:{P:{while(1){p=J[(a<<2)+e>>2];o=p-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(p-48>>>0<10)break O;a=p-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break c}if((p|0)!=101)break c}Q:{R:switch(l-72|0){case 4:f=Te(e,c,c+4|0);d=Te(e,c,c+4|0);break Q;case 36:f=f+Te(e,c,c+4|0);d=d+Te(e,c,c+4|0);break Q;case 0:f=Te(e,c,c+4|0);break Q;case 32:f=f+Te(e,c,c+4|0);break Q;case 14:d=Te(e,c,c+4|0);break Q;case 46:break R;default:break Q}d=d+Te(e,c,c+4|0)}O[c+104>>3]=f*25.4/96;O[c+96>>3]=d*25.4/96;gc[J[J[b>>2]+320>>2]](b,c+104|0,c+96|0)|0;g=J[c>>2];if((k|0)>(g|0))continue;break}break c;case 12:f=Te(e,c, -c+4|0);d=Te(e,c,c+4|0);O[c+104>>3]=f*25.4/96;O[c+96>>3]=d*25.4/96;gc[J[J[b>>2]+316>>2]](b,c+104|0,c+96|0)|0;r=0;break c;case 44:break d;default:break c}j=Te(e,c,c+4|0);h=Te(e,c,c+4|0);f=f+j;O[c+104>>3]=f*25.4/96;d=d+h;O[c+96>>3]=d*25.4/96;gc[J[J[b>>2]+316>>2]](b,c+104|0,c+96|0)|0;r=0}a=J[c>>2];if((k|0)>(a|0))continue;break}}bc=c+112|0;return A&1}function W8(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;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:switch(J[a+ -60>>2]){case 0:if(!J[a+36>>2]){d=J[a+20>>2];c=J[a+24>>2];f=J[(J[a+76>>2]+(d<<4)|0)+12>>2]+(c<<4)|0;h=J[a+28>>2];break l}J[a+32>>2]=0;J[a+36>>2]=0;break c;case 1:if(!J[a+36>>2]){b=J[a+20>>2];c=J[a+24>>2];f=J[(J[a+76>>2]+(b<<4)|0)+12>>2]+(c<<4)|0;h=J[a+28>>2];break k}J[a+36>>2]=0;c=J[a+40>>2];break d;case 2:if(!J[a+36>>2]){n=J[a+32>>2];break j}J[a+104>>2]=0;J[a+108>>2]=0;J[a+36>>2]=0;k=J[a+72>>2];if((k|0)>0){o=J[a+76>>2];while(1){c=o+(f<<4)|0;e=J[c+8>>2];if((e|0)>0){q=J[c+4>>2];l=J[c>>2];p=J[c+12>> -2];c=0;while(1){j=e+(c^-1)|0;r=p+(c<<4)|0;i=q<>2];b=b?(b|0)>(i|0)?i:b:i;i=l<>2];d=d?(d|0)>(i|0)?i:d:i;c=c+1|0;if((e|0)!=(c|0))continue;break}J[a+108>>2]=b;J[a+104>>2]=d}f=f+1|0;if((k|0)!=(f|0))continue;break}}d=J[a+40>>2];b=0;break e;case 3:if(!J[a+36>>2]){f=J[a+20>>2];h=J[a+76>>2]+(f<<4)|0;s=J[a+32>>2];break i}J[a+104>>2]=0;J[a+108>>2]=0;J[a+36>>2]=0;o=J[a+72>>2];if((o|0)>0){q=J[a+76>>2];while(1){c=q+(g<<4)|0;e=J[c+8>>2];if((e|0)>0){l=J[c+4>>2];p=J[c>>2];r=J[c+12>>2];c=0;while(1){m= -e+(c^-1)|0;j=r+(c<<4)|0;k=l<>2];b=b?(b|0)>(k|0)?k:b:k;k=p<>2];d=d?(d|0)>(k|0)?k:d:k;c=c+1|0;if((e|0)!=(c|0))continue;break}J[a+108>>2]=b;J[a+104>>2]=d}g=g+1|0;if((o|0)!=(g|0))continue;break}}d=J[a+84>>2];b=0;break f;case 4:break m;default:break a}if(!J[a+36>>2]){h=J[a+20>>2];f=J[a+76>>2]+(h<<4)|0;n=J[a+32>>2];break h}J[a+36>>2]=0;h=J[a+44>>2];b=0;break g}b=1;break c}d=1;break d}b=1;break e}b=1;break f}b=1}n:while(1){o:{if(!b){J[a+20>>2]=h;if(J[a+56>>2]<=(h|0))break a;J[a+104>>2]=0; -J[a+108>>2]=0;f=J[a+76>>2]+(h<<4)|0;e=J[f+8>>2];if((e|0)>0){k=J[f+4>>2];o=J[f+12>>2];q=J[f>>2];b=0;d=0;c=0;while(1){p=e+(c^-1)|0;l=o+(c<<4)|0;i=k<>2];b=b?(b|0)>(i|0)?i:b:i;i=q<>2];d=d?(d|0)>(i|0)?i:d:i;c=c+1|0;if((e|0)!=(c|0))continue;break}J[a+108>>2]=b;J[a+104>>2]=d}d=J[a+84>>2];b=0;break o}n=n+1|0;J[a+32>>2]=n;b=1}p:while(1){q:{r:{if(!b){J[a+100>>2]=d;if(J[a+92>>2]<=(d|0))break r;s=J[a+80>>2];b=0;break q}if(J[a+48>>2]<=(n|0)){g=J[a+24>>2];b=1;break q}e=(((J[a>>2]+(P(J[a+4>>2],n)<< -1)|0)+(P(J[a+8>>2],J[a+24>>2])<<1)|0)+(P(J[a+12>>2],h)<<1)|0)+(P(J[a+16>>2],J[a+28>>2])<<1)|0;if(!L[e>>1])break b;b=1;continue n}h=h+1|0;b=0;continue n}while(1){s:{t:{u:{v:{if(!b){J[a+96>>2]=s;if(J[a+88>>2]<=(s|0))break u;g=J[a+40>>2];break v}g=g+1|0}J[a+24>>2]=g;b=J[f+8>>2];c=J[a+52>>2];if((((b|0)<(c|0)?b:c)|0)>(g|0)){o=J[a+96>>2];e=J[f>>2];b=b+(g^-1)|0;w=g<<4;t=J[f+12>>2];j=w+t|0;q=J[j>>2];l=b+q|0;if((o|0)%(e<>2];c=u<>2]|0)/(c|0)|0;e=e<>2]|0)/(e|0)|0;v=J[a+84>>2];i=(v+p|0)/(c|0)|0;m=J[a+80>>2];k=(m+r|0)/(e|0)|0;j=J[j+4>>2];z=j+b|0;l=-1<>2];if((m|0)%(u<>2];if(!b)break s;n=0;J[a+32>>2]=0;J[a+28>>2]=(((o+r|0)/(e|0)>>q)-(k>>q)|0)+P(b,((m+p|0)/(c|0)>>j)-(i>>j)|0);b=1;continue p}b=J[a+96>>2];c=J[a+104>>2];s=b+c-(b|0)%(c|0)|0;break t}b=J[a+100>>2];d=J[a+108>>2];d=b+d-(b|0)%(d|0)|0;b=0;continue p}b=0;continue}b= -1;continue}}}}w:while(1){x:{if(!b){J[a+100>>2]=d;if(J[a+92>>2]<=(d|0))break a;i=J[a+80>>2];b=0;break x}s=s+1|0;J[a+32>>2]=s;b=1}y:while(1){z:{A:{if(!b){J[a+96>>2]=i;if(J[a+88>>2]<=(i|0))break A;f=J[a+44>>2];b=0;break z}if(J[a+48>>2]<=(s|0)){n=J[a+24>>2];b=1;break z}e=(((J[a>>2]+(P(J[a+4>>2],s)<<1)|0)+(P(J[a+8>>2],J[a+24>>2])<<1)|0)+(P(J[a+12>>2],f)<<1)|0)+(P(J[a+16>>2],J[a+28>>2])<<1)|0;if(!L[e>>1])break b;b=1;continue w}b=J[a+100>>2];d=J[a+108>>2];d=b+d-(b|0)%(d|0)|0;b=0;continue w}while(1){B:{C:{D:{E:{if(!b){J[a+ -20>>2]=f;if(J[a+56>>2]<=(f|0))break D;n=J[a+40>>2];J[a+24>>2]=n;h=J[a+76>>2]+(f<<4)|0;break E}n=n+1|0;J[a+24>>2]=n}b=J[h+8>>2];g=J[a+52>>2];if((((b|0)<(g|0)?b:g)|0)>(n|0)){o=J[a+96>>2];c=J[h>>2];b=b+(n^-1)|0;w=n<<4;t=J[h+12>>2];j=w+t|0;q=J[j>>2];l=b+q|0;if((o|0)%(c<>2];g=u<>2]|0)/(g|0)|0;c=c<>2]|0)/(c|0)|0;v=J[a+84>>2];e=(v+p|0)/(g|0)|0;m=J[a+80>>2];k=(m+r|0)/(c|0)|0;j=J[j+4>>2];z=j+b|0;l=-1<>2];if((m|0)%(u<>2];if(!b)break B;s=0;J[a+32>>2]=0;J[a+28>>2]=(((o+r|0)/(c|0)>>q)-(k>>q)|0)+P(b,((m+p|0)/(g|0)>>j)-(e>>j)|0);b=1;continue y}f=f+1|0;break C}b=J[a+96>>2];g=J[a+104>>2];i=b+g-(b|0)%(g|0)|0;b=0;continue y}b=0;continue}b=1;continue}}}}F:while(1){G:{if(!b){J[a+24>>2]=d;if(J[a+52>>2]<=(d|0))break a;s=J[a+84>>2];b=0;break G}n=n+1|0;J[a+32>>2]=n;b=1}H:while(1){I:{J:{if(!b){J[a+100>>2]=s;if(J[a+92>>2]<= -(s|0))break J;g=J[a+80>>2];b=0;break I}if(J[a+48>>2]<=(n|0)){h=J[a+20>>2];b=1;break I}e=(((J[a>>2]+(P(J[a+4>>2],n)<<1)|0)+(P(J[a+8>>2],J[a+24>>2])<<1)|0)+(P(J[a+12>>2],J[a+20>>2])<<1)|0)+(P(J[a+16>>2],J[a+28>>2])<<1)|0;if(!L[e>>1])break b;b=1;continue F}d=J[a+24>>2]+1|0;b=0;continue F}while(1){K:{L:{M:{N:{if(!b){J[a+96>>2]=g;if(J[a+88>>2]<=(g|0))break M;h=J[a+44>>2];break N}h=h+1|0}J[a+20>>2]=h;if(J[a+56>>2]>(h|0)){c=J[a+24>>2];f=J[a+76>>2]+(h<<4)|0;b=J[f+8>>2];if((c|0)>=(b|0))break K;o=J[a+96>>2]; -e=J[f>>2];b=b+(c^-1)|0;c=c<<4;t=J[f+12>>2];j=c+t|0;q=J[j>>2];l=b+q|0;if((o|0)%(e<>2];f=u<>2]|0)/(f|0)|0;e=e<>2]|0)/(e|0)|0;v=J[a+84>>2];i=(v+p|0)/(f|0)|0;m=J[a+80>>2];k=(m+r|0)/(e|0)|0;j=J[j+4>>2];z=j+b|0;l=-1<>2];if((m|0)%(u<>2];if(!b)break K;n=0;J[a+32>>2]=0;J[a+28>>2]=(((o+r|0)/(e|0)>>q)-(k>>q)|0)+P(b, -((m+p|0)/(f|0)>>j)-(i>>j)|0);b=1;continue H}b=J[a+96>>2];g=J[a+104>>2];g=b+g-(b|0)%(g|0)|0;break L}b=J[a+100>>2];c=J[a+108>>2];s=b+c-(b|0)%(c|0)|0;b=0;continue H}b=0;continue}b=1;continue}}}}O:while(1){P:{if(!d){J[a+24>>2]=c;if(J[a+52>>2]<=(c|0))break a;g=0;d=0;break P}h=h+1|0;J[a+28>>2]=h;d=1}Q:while(1){R:{S:{T:{if(!d){J[a+32>>2]=g;if(J[a+48>>2]<=(g|0))break T;b=J[a+44>>2];d=0;break R}if((P(J[f+12>>2],J[f+8>>2])|0)<=(h|0))break S;e=(((J[a>>2]+(P(J[a+4>>2],J[a+32>>2])<<1)|0)+(P(J[a+8>>2],c)<<1)|0)+ -(P(J[a+12>>2],b)<<1)|0)+(P(J[a+16>>2],h)<<1)|0;if(!L[e>>1])break b;d=1;continue O}c=c+1|0;d=0;continue O}d=1}while(1){U:{V:{W:{if(!d){J[a+20>>2]=b;if(J[a+56>>2]<=(b|0))break W;d=J[a+76>>2]+(b<<4)|0;if(J[d+8>>2]<=(c|0))break U;d=J[d+12>>2];h=0;J[a+28>>2]=0;f=(c<<4)+d|0;d=1;continue Q}b=b+1|0;break V}g=J[a+32>>2]+1|0;d=0;continue Q}d=0;continue}d=1;continue}}}}X:while(1){Y:{if(!b){if(J[a+48>>2]<=(g|0))break a;c=J[a+40>>2];b=0;break Y}h=h+1|0;J[a+28>>2]=h;b=1}Z:while(1){_:{$:{aa:{if(!b){J[a+24>>2]=c; -if(J[a+52>>2]<=(c|0))break aa;d=J[a+44>>2];b=0;break _}if((P(J[f+12>>2],J[f+8>>2])|0)<=(h|0))break $;e=(((J[a>>2]+(P(J[a+4>>2],J[a+32>>2])<<1)|0)+(P(J[a+8>>2],c)<<1)|0)+(P(J[a+12>>2],d)<<1)|0)+(P(J[a+16>>2],h)<<1)|0;if(!L[e>>1])break b;b=1;continue X}g=J[a+32>>2]+1|0;J[a+32>>2]=g;b=0;continue X}b=1}while(1){ba:{ca:{da:{if(!b){J[a+20>>2]=d;if(J[a+56>>2]<=(d|0))break da;b=J[a+76>>2]+(d<<4)|0;if(J[b+8>>2]<=(c|0))break ba;b=J[b+12>>2];h=0;J[a+28>>2]=0;f=(c<<4)+b|0;b=1;continue Z}d=d+1|0;break ca}c=c+ -1|0;b=0;continue Z}b=0;continue}b=1;continue}}}}A=1;I[e>>1]=1}return A}function Xba(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;m=bc-16|0;bc=m;h=J[a+584>>2];if(!K[h+206|0])JO(a);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(!K[h+392|0]){f=J[a+584>>2];if(K[f+392|0])break q;g=J[a+56>>2];J[f+172>>2]=g;c=J[a+60>>2];J[f+176>>2]=c;r:{if(K[a+13|0]&4){g=J[a+68>>2];d=J[a+72>>2];e=(c+d|0)-1|0;e=e-((e>>>0)%(d>>>0)|0)|0;break r}d=J[a+100>>2];e=c}J[f+188>>2]=e;J[f+184>>2]= -d;J[f+180>>2]=g;e=L[a+98>>1];H[f+192|0]=e;s:{t:{u:{v:{e=e&255;switch(e-1|0){case 2:break t;case 0:break v;default:break u}}I[f+208>>1]=257;H[f+193|0]=0;H[f+194|0]=1;break s}a=J[a+628>>2];J[m>>2]=e;Nc(a,97104,89615,m);f=0;break d}H[f+193|0]=0;if(L[a+138>>1]==1){H[f+194|0]=3;break s}H[f+194|0]=1}if(c>>>0>d>>>0){e=K[f+209|0]<<3;c=(d>>>0)/(e>>>0)|0;if((P(c,e)|0)!=(d|0)){f=0;Nc(J[a+628>>2],97104,89676,0);break d}e=K[f+208|0]<<3;I[f+300>>1]=P(c,((e+g|0)-1>>>0)/(e>>>0)|0)}if(!IO(a)){f=0;break d}H[f+332| -0]=1;H[f+392|0]=1;c=J[f+1128>>2];J[f+336>>2]=J[f+1124>>2];J[f+340>>2]=c;c=L[f+1148>>1];J[f+344>>2]=J[f+1136>>2]-c;J[f+348>>2]=c+J[f+1144>>2]}f=P(b,20);w:{if(K[(f+h|0)+332|0])break w;if(!b)break p;if(b>>>0>=3)break o;c=J[a+584>>2];if(!K[c+332|0])break n;if(K[(c+f|0)+332|0])break m;f=b;while(1){f=f-1|0;e=f&255;if(!K[(c+P(e,20)|0)+332|0])continue;break}H[c+193|0]=f;e=c+P(e,20)|0;J[c+1124>>2]=J[e+336>>2];J[c+1128>>2]=J[e+340>>2];g=J[e+344>>2];d=0;H[c+1140|0]=0;J[c+1136>>2]=g;e=J[e+348>>2];J[c+1152>>2]= -0;I[c+1148>>1]=0;J[c+1144>>2]=e;if((f&255)>>>0>=b>>>0)break w;while(1){if(!(d&65535)){if(!Jj(c)){f=0;break d}d=L[c+1148>>1];if(!d)break c}f=J[c+1152>>2];e=K[f|0];d=d-1|0;I[c+1148>>1]=d;f=f+1|0;J[c+1152>>2]=f;if((e|0)!=255)continue;while(1){if(!(d&65535)){if(!Jj(c)){f=0;break d}d=L[c+1148>>1];if(!d)break c;f=J[c+1152>>2]}e=K[f|0];d=d-1|0;I[c+1148>>1]=d;f=f+1|0;J[c+1152>>2]=f;if((e|0)==255)continue;break}if((e|0)!=218)continue;H[c+193|0]=K[c+193|0]+1;if(!HO(a)){f=0;break d}e=K[c+193|0];f=c+P(e,20)| -0;H[f+332|0]=1;J[f+336>>2]=J[c+1124>>2];J[f+340>>2]=J[c+1128>>2];d=L[c+1148>>1];J[f+344>>2]=J[c+1136>>2]-d;J[f+348>>2]=J[c+1144>>2]+d;if(b>>>0>e>>>0)continue;break}}n=J[(K[a+13|0]&4?504:480)+a>>2];if(K[h+393|0]){if(L[h+394>>1]==(b|0)){c=J[h+396>>2];if(n>>>0>=c>>>0)break e}if(K[h+400|0]){c=J[a+584>>2];if(!K[c+400|0])break l;f=c+536|0;e=J[f+4>>2];if(e)gc[J[e+40>>2]](f);J[f+20>>2]=0;J[f+4>>2]=0;H[c+400|0]=0}H[h+393|0]=0}I[h+394>>1]=b;H[h+193|0]=b;J[h+396>>2]=P(J[a+176>>2],b);x:{y:{if(!K[h+1140|0]){d= -J[(P(b,20)+h|0)+344>>2];break y}d=J[(P(b,20)+h|0)+344>>2];if((d|0)==(J[h+1136>>2]-L[h+1148>>1]|0))break x}b=P(b,20)+h|0;J[h+1124>>2]=J[b+336>>2];f=J[b+340>>2];H[h+1140|0]=0;J[h+1136>>2]=d;J[h+1128>>2]=f;b=J[b+348>>2];J[h+1152>>2]=0;I[h+1148>>1]=0;J[h+1144>>2]=b}c=J[a+584>>2];if(K[c+400|0])break k;f=0;H[c+302|0]=0;J[c+3204>>2]=0;b=c+404|0;Jp(b);J[c+548>>2]=a;J[c+536>>2]=b;J[c+404>>2]=634;J[c+412>>2]=635;o=c+536|0;g=0;b=zc(40);J[b>>2]=0;b=zf(c+4|0,1,b,4);l=cc;d=0;z:{A:{while(1){if(d)break z;J[695492]= -0;ca(71,o|0,80,488);d=J[695492];J[695492]=0;if((d|0)==1)break b;e=-1;B:{C:{if(!d)break C;i=J[695493];if(!i)break C;e=Jc(J[d>>2],b,l);if(!e)break B;cc=i}d=cc;if((e|0)!=1)break A;continue}break}break a}g=1}qc(b);if(!g)break d;H[c+400|0]=1;J[c+1048>>2]=636;J[c+1044>>2]=637;J[c+1040>>2]=638;J[c+1036>>2]=639;J[c+1032>>2]=640;J[c+1028>>2]=0;J[c+560>>2]=c+1024;g=0;b=zc(40);J[b>>2]=0;b=zf(c+4|0,1,b,4);l=cc;d=0;D:{E:{while(1){if(d)break D;J[695492]=0;aa(72,o|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b; -e=-1;F:{G:{if(!d)break G;i=J[695493];if(!i)break G;e=Jc(J[d>>2],b,l);if(!e)break F;cc=i}d=cc;if((e|0)!=1)break E;continue}break}break a}g=1}qc(b);if(!g)break d;b=K[c+194|0];if(!(K[c+210|0]|b>>>0<2)){H[c+401|0]=0;J[c+612>>2]=0;J[c+604>>2]=1;if(K[c+1052|0])break f;if(J[c+1084>>2])break j;if(J[c+1104>>2])break i;J[c+1068>>2]=8;e=K[c+209|0]<<3;J[c+1060>>2]=e;d=K[c+208|0];b=d<<3;g=(b+J[c+180>>2]|0)-1|0;b=g-((g>>>0)%(b>>>0)|0)|0;J[c+1056>>2]=b;e=P(b,e);J[c+1072>>2]=e;b=(b>>>0)/(d>>>0)|0;J[c+1064>>2]=b; -J[c+1076>>2]=b<<3;b=e+(b<<4)|0;J[c+1080>>2]=b;b=zc(b);J[c+1084>>2]=b;if(!b){Nc(J[a+628>>2],97184,82408,0);break d}J[c+1088>>2]=b;b=b+J[c+1072>>2]|0;J[c+1092>>2]=b;J[c+1096>>2]=b+J[c+1076>>2];b=(J[c+1060>>2]+(J[c+1068>>2]<<1)|0)+3|0;J[c+1100>>2]=b;b=zc(b<<2);J[c+1104>>2]=b;if(!b){Nc(J[a+628>>2],97184,82408,0);break d}d=b+12|0;J[b>>2]=d;e=J[c+1060>>2];g=e<<2;J[b+4>>2]=(g+J[c+1104>>2]|0)+12;i=J[c+1068>>2];J[b+8>>2]=((g+J[c+1104>>2]|0)+(i<<2)|0)+12;if(!e)break g;l=e&3;b=J[c+1056>>2];if(e>>>0<4){g=0;break h}e= -e&-4;g=0;while(1){J[d>>2]=J[c+1088>>2]+P(b,g);J[d+4>>2]=J[c+1088>>2]+P(b,g|1);J[d+8>>2]=J[c+1088>>2]+P(b,g|2);J[d+12>>2]=J[c+1088>>2]+P(b,g|3);g=g+4|0;d=d+16|0;j=j+4|0;if((e|0)!=(j|0))continue;break}break h}H[c+401|0]=1;J[c+576>>2]=0;J[c+580>>2]=0;J[c+1120>>2]=J[c+184>>2];J[c+1116>>2]=P(b,J[c+180>>2]);break f}fa(89578,70456,994,97104);B()}fa(89759,70456,1055,97124);B()}fa(89775,70456,1056,97124);B()}fa(89794,70456,1057,97124);B()}fa(89823,70456,1058,97124);B()}fa(89852,70456,1196,97146);B()}fa(89891, -70456,1107,97184);B()}fa(89934,70456,1136,97184);B()}fa(89979,70456,1137,97184);B()}if(!l)break g;while(1){J[d>>2]=J[c+1088>>2]+P(b,g);g=g+1|0;d=d+4|0;k=k+1|0;if((l|0)!=(k|0))continue;break}}H:{if(!i)break H;g=i&3;e=J[c+1064>>2];k=0;I:{if(i>>>0<4){b=0;break I}l=i&-4;b=0;j=0;while(1){J[d>>2]=J[c+1092>>2]+P(b,e);J[d+4>>2]=J[c+1092>>2]+P(e,b|1);J[d+8>>2]=J[c+1092>>2]+P(e,b|2);J[d+12>>2]=J[c+1092>>2]+P(e,b|3);b=b+4|0;d=d+16|0;j=j+4|0;if((l|0)!=(j|0))continue;break}}if(g)while(1){J[d>>2]=J[c+1092>>2]+ -P(b,e);b=b+1|0;d=d+4|0;k=k+1|0;if((g|0)!=(k|0))continue;break}g=i&3;k=0;J:{if(i>>>0<4){b=0;break J}i=i&-4;b=0;j=0;while(1){J[d>>2]=J[c+1096>>2]+P(b,e);J[d+4>>2]=J[c+1096>>2]+P(e,b|1);J[d+8>>2]=J[c+1096>>2]+P(e,b|2);J[d+12>>2]=J[c+1096>>2]+P(e,b|3);b=b+4|0;d=d+16|0;j=j+4|0;if((i|0)!=(j|0))continue;break}}if(!g)break H;while(1){J[d>>2]=J[c+1096>>2]+P(b,e);b=b+1|0;d=d+4|0;k=k+1|0;if((g|0)!=(k|0))continue;break}}J[c+1112>>2]=0;H[c+1052|0]=1;b=K[c+208|0];d=((b+J[c+180>>2]|0)-1>>>0)/(b>>>0)|0;J[c+1108>> -2]=d;e=K[c+209|0];J[c+1120>>2]=((e+J[c+184>>2]|0)-1>>>0)/(e>>>0);J[c+1116>>2]=P(d,P(b,e)+2|0)}g=0;b=zc(40);J[b>>2]=0;b=zf(c+4|0,1,b,4);j=cc;d=0;K:{L:{while(1){if(d)break K;J[695492]=0;$(77,o|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;e=-1;M:{N:{if(!d)break N;i=J[695493];if(!i)break N;e=Jc(J[d>>2],b,j);if(!e)break M;cc=i}d=cc;if((e|0)!=1)break L;continue}break}break a}g=1}qc(b);if(!g)break d;H[c+393|0]=1;c=J[h+396>>2]}f=1;if(c>>>0>=n>>>0)break d;while(1){b=J[a+584>>2];O:{P:{if(!K[h+401|0]){f= -J[b+1068>>2];d=J[b+1120>>2];c=J[b+1112>>2];if(c){e=f-c|0;if(e>>>0>=d>>>0){c=c+d|0;d=(c|0)!=(f|0)?c:0;break P}J[b+1112>>2]=0;d=d-e|0}if(d>>>0>=f>>>0){f=b+536|0;while(1){if(!sE(b,f,J[b+1104>>2],K[b+209|0]<<3)){f=0;break d}c=J[b+1068>>2];d=d-c|0;if(d>>>0>=c>>>0)continue;break}}if(!d)break O;if(sE(b,b+536|0,J[b+1104>>2],K[b+209|0]<<3))break P;f=0;break d}Q:{if(J[b+5256>>2])break Q;f=zc(J[b+1116>>2]);J[b+5256>>2]=f;if(f)break Q;f=0;Nc(J[a+628>>2],97296,82408,0);break d}if(!J[b+1120>>2])break O;c=b+5256| -0;e=b+536|0;f=0;d=0;while(1){if(!FO(b,e,c))break d;d=d+1|0;if(d>>>0>2])continue;break}break O}J[b+1112>>2]=d}f=1;b=J[h+396>>2]+1|0;J[h+396>>2]=b;if(b>>>0>>0)continue;break}}bc=m+16|0;return f|0}fa(80381,70456,1949,96701);B()}a=Z()|0;qc(b);ba(a|0);B()}qc(b);ef(d,i);B()}function PU(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;g=bc-128|0;bc=g;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!K[b+89|0]){a=Kc(g+92|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break n;b=Z()|0;Fc(a);ba(b|0);B()}l=di();i=Ql(g+92|0);J[695492]=0;f=g+56|0;ca(5230,f|0,b|0,c|0);e=J[695492];J[695492]=0;o:{p:{if((e|0)!=1){J[695492]=0;aa(5083,i|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break p;J[g+80>>2]=2381060;J[g+56>>2]=2381028;f=J[g+84>>2];if(f){e=J[f+4>>2]-1|0;J[f+4>>2]=e;if(!e)gc[J[J[f>>2]+4>>2]](f);J[g+84>>2]=0}J[g+72>>2]=2381060;f=J[g+76>>2];if(f){e=J[f+4>>2]-1|0;J[f+4>>2]=e;if(!e)gc[J[J[f>>2]+4>>2]](f);J[g+76>>2]=0}sc(g- -64|0); -q:{f=J[i+8>>2];r:{s:{if(!f|!J[f+8>>2])break s;J[695492]=0;f=g+56|0;ca(5231,f|0,i|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break r;e=J[g+56>>2];if(!e){sc(f);break s}f=J[e+8>>2];sc(g+56|0);if(f)break m}J[695492]=0;f=J[b+92>>2];e=J[695492];J[695492]=0;if((e|0)==1)break r;if(!(f&24))break q;J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break l}b=Z()|0;break b}J[g+52>>2]=0;t:{u:{v:{w:{x:{y:{z:{if(!J[b+100>>2])break z;J[695492]=0;f=g+36|0;ca(5231,f|0,b+8|0,0);e=J[695492];J[695492]= -0;if((e|0)==1)break u;J[695492]=0;h=g+44|0;ca(5121,h|0,f|0,2388561);f=J[695492];J[695492]=0;A:{B:{C:{D:{E:{F:{G:{H:{I:{if((f|0)!=1){J[695492]=0;e=aa(5120,g+28|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break I;J[695492]=0;f=g+56|0;ca(5122,f|0,h|0,e|0);h=J[695492];J[695492]=0;if((h|0)==1)break H;J[695492]=0;h=g+20|0;ca(5242,h|0,l|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break G;J[695492]=0;aa(4993,g+52|0,h|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break F;f=J[g+20>>2];J[g+20>>2]=0;if(!f)break A; -J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;j=J[695492];J[695492]=0;if((j|0)!=1){if(h)break A;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break A}break a}b=Z()|0;break B}b=Z()|0;break C}b=Z()|0;break D}b=Z()|0;break E}b=Z()|0;vc(g+20|0)}sc(g+56|0)}sc(e)}sc(g+44|0)}sc(g+36|0);break c}sc(g+56|0);sc(e);f=g+44|0;sc(f);sc(g+36|0);e=J[g+52>>2];if(!e)break z;J[695492]=0;f=aa(4989,f|0,2377915)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;h=J[J[e>>2]+8>>2];J[695492]=0;e=aa(h|0,e|0,f|0)|0;h=J[695492]; -J[695492]=0;if((h|0)==1)break e;sc(f);if(e)break y}J[695492]=0;f=aa(4989,g+36|0,2390824)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;J[695492]=0;e=aa(5120,g+20|0,c|0)|0;h=J[695492];J[695492]=0;J:{if((h|0)!=1){J[695492]=0;aa(5170,f|0,e|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break g;sc(e);J[695492]=0;aa(5185,f|0,2390988)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;e=g+56|0;ca(5208,e|0,b|0,f|0);h=J[695492];J[695492]=0;if((h|0)==1)break i;J[695492]=0;aa(5083,i|0,e|0)|0;e=J[695492];J[695492]= -0;if((e|0)==1)break j;J[g+80>>2]=2381060;J[g+56>>2]=2381028;e=J[g+84>>2];if(e){h=J[e+4>>2]-1|0;J[e+4>>2]=h;if(!h)gc[J[J[e>>2]+4>>2]](e);J[g+84>>2]=0}J[g+72>>2]=2381060;e=J[g+76>>2];if(e){h=J[e+4>>2]-1|0;J[e+4>>2]=h;if(!h)gc[J[J[e>>2]+4>>2]](e);J[g+76>>2]=0}sc(g- -64|0);K:{L:{h=J[b+136>>2];M:{if(h)while(1){e=0;N:{O:{P:{j=J[h+8>>2];if(j){J[695492]=0;J[j+4>>2]=J[j+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break P;e=J[h+8>>2]}J[695492]=0;J[g+56>>2]=e;j=aa(5066,e+24|0,i|0)|0;e=J[695492];J[695492]=0; -if((e|0)==1)break O;e=J[g+56>>2];if(!j)break N;c=J[e+60>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break O;c=J[e+60>>2]}else c=0;J[a>>2]=c;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;h=J[695492];J[695492]=0;if((h|0)!=1){if(c)break M;J[695492]=0;_(4987,e|0);c=J[695492];J[695492]=0;if((c|0)!=1)break M}break a}b=Z()|0;sc(f);break c}b=Z()|0;vc(g+56|0);sc(f);break c}Q:{if(!e)break Q;J[695492]=0;j=J[e+4>>2]-1|0;J[e+4>>2]=j;k=J[695492];J[695492]=0;if((k|0)==1)break a;if(j)break Q; -J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}h=J[h>>2];if(h)continue;break}J[695492]=0;e=$(4,68)|0;h=J[695492];J[695492]=0;R:{S:{T:{U:{V:{if((h|0)!=1){J[695492]=0;h=aa(5120,g+56|0,0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break V;J[695492]=0;J[g+12>>2]=0;k=g+12|0;aa(4985,k|0,0)|0;m=J[695492];J[695492]=0;j=1;if((m|0)==1)break U;J[695492]=0;c=ja(5243,e|0,1,h|0,c|0,i|0,k|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break T;j=0;J[695492]=0;J[g+16>>2]=0;aa(4985,g+16|0,c|0)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break T;c=J[g+12>>2];J[g+12>>2]=0;W:{if(!c)break W;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(e)break W;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}sc(h);J[695492]=0;c=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)==1)break L;J[c>>2]=0;J[c+4>>2]=0;e=J[g+16>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break L;e=J[g+16>>2]}else e=0;J[c+8>>2]=e;J[695492]=0;of(b+128|0,c);c=J[695492]; -J[695492]=0;if((c|0)==1)break L;J[695492]=0;J[g+8>>2]=0;c=g+8|0;aa(4985,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break L;e=K[b+88|0];h=J[b+84>>2];J[695492]=0;la(5244,a|0,i|0,c|0,h|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break S;c=J[g+8>>2];J[g+8>>2]=0;X:{if(!c)break X;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break X;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;aa(4993,J[g+16>>2]+60|0,a|0)|0;c=J[695492];J[695492]= -0;if((c|0)!=1)break R;b=Z()|0;vc(a);break K}b=Z()|0;sc(f);break c}b=Z()|0;qc(e);sc(f);break c}b=Z()|0;sc(h);qc(e);sc(f);break c}b=Z()|0;vc(g+12|0);sc(h);if(!j)break J;qc(e);sc(f);break c}b=Z()|0;vc(g+8|0);break K}c=J[g+16>>2];J[g+16>>2]=0;if(!c)break M;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break o;if(e)break M;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break o}sc(f);c=1;break x}b=Z()|0}vc(g+16|0);sc(f);break c}b=Z()|0}sc(f);break c}J[695492]= -0;c=aa(4991,g+56|0,J[g+52>>2]+72|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break w;J[695492]=0;aa(5083,i|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break v;J[c+24>>2]=2381060;J[c>>2]=2381028;f=J[c+28>>2];if(f){e=J[f+4>>2]-1|0;J[f+4>>2]=e;if(!e)gc[J[J[f>>2]+4>>2]](f);J[c+28>>2]=0}J[c+16>>2]=2381060;f=J[c+20>>2];if(f){e=J[f+4>>2]-1|0;J[f+4>>2]=e;if(!e)gc[J[J[f>>2]+4>>2]](f);J[c+20>>2]=0}sc(c+8|0);c=0}f=J[g+52>>2];J[g+52>>2]=0;if(!f)break t;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;h=J[695492];J[695492]= -0;if((h|0)!=1){if(e)break t;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break t}break a}b=Z()|0;break c}b=Z()|0;ud(c);break c}b=Z()|0;break c}if(!c)break m;break l}b=Z()|0;break b}b=Z()|0;ud(g+56|0);break b}break a}B()}c=J[J[b>>2]+84>>2];J[695492]=0;ia(c|0,a|0,b|0,i|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break k;c=J[a>>2];if(!c)break l;J[695492]=0;ca(5245,l|0,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break l;b=Z()|0;vc(a);break b}J[i+24>>2]=2381060;J[i>>2]=2381028;a=J[i+28>> -2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[i+28>>2]=0}J[i+16>>2]=2381060;a=J[i+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[i+20>>2]=0}sc(i+8|0);bc=g+128|0;return}b=Z()|0;break b}b=Z()|0;ud(g+56|0);sc(f);break c}b=Z()|0;sc(f);break c}b=Z()|0;sc(f);break c}b=Z()|0;sc(e);sc(f);break c}b=Z()|0;break c}b=Z()|0;sc(f);break c}b=Z()|0}vc(g+52|0)}ud(i);ba(b|0);B()}ea(0)|0;yc();B()}function QNa(a){a=a|0;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;J[a+144>>2]=0;b=J[a+8>>2];gc[J[J[b>>2]+20>>2]](b);h=bc-16|0;bc=h;J[a+32>>2]=0;b=J[a+8>>2];a:{if((gc[J[J[b>>2]+32>>2]](b)|0)!=255){if(!KA(a,h+12|0,h+8|0,h+4|0))break a;b:{while(1){c:{d:{e:{f:{g:{h:{i:{j:{k:{b=J[h+12>>2];if((b|0)<=1768449137){if((b|0)<=1668112751){if((b|0)==1651532643)break k;if((b|0)!=1667523942)break f;b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)!=-1){b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=-1)break h}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=2; -break a}if((b|0)==1668112752)break i;if((b|0)!=1668246642)break f;g=J[h+4>>2];d=bc-48|0;bc=d;l:{m:{n:{b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;o:{if((c|0)==-1)break o;J[d+8>>2]=c;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break o;J[d+12>>2]=b&128?b|-256:b;b=J[a+8>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break o;e=1;p:switch(c-1|0){case 0:b=J[a+8>>2];f=gc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break o;b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break o;b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)| -0;if((c|0)==-1)break o;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break o;b=b|(e<<16|f<<24|c<<8);J[d+16>>2]=b;if(b>>>0>24)break o;if(1<>>0<4)break l;c=J[a+8>>2];b=g-3|0;if((gc[J[J[c>> -2]+48>>2]](c,b)|0)==(b|0))break l}e=0;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,782830,0);break l}J[d+44>>2]=4470064;J[d+36>>2]=255;J[d+40>>2]=96;J[d+28>>2]=255;J[d+32>>2]=128;J[d+20>>2]=100;J[d+24>>2]=0}if(J[a+76>>2]){e=1;if(J[d+12>>2]<=J[a+40>>2])break l}b=J[d+12>>2];J[a+36>>2]=J[d+8>>2];J[a+40>>2]=b;b=J[d+44>>2];J[a+68>>2]=J[d+40>>2];J[a+72>>2]=b;b=J[d+36>>2];J[a+60>>2]=J[d+32>>2];J[a+64>>2]=b;b=J[d+28>>2];J[a+52>>2]=J[d+24>>2];J[a+56>>2]=b;b=J[d+20>>2];J[a+44>>2]=J[d+16>>2];J[a+48>>2]=b;e=1;J[a+76>>2]=1}bc= -d+48|0;if(e)break c;c=2;break a}q:switch(b-1785737827|0){case 5:break c;case 1:case 2:case 3:case 4:break f;case 0:break g;default:break q}if((b|0)==1885564018)break j;if((b|0)!=1768449138)break f;r:{b=J[a+8>>2];n=gc[J[J[b>>2]+28>>2]](b)|0;s:{if((n|0)==-1)break s;b=J[a+8>>2];o=gc[J[J[b>>2]+28>>2]](b)|0;if((o|0)==-1)break s;b=J[a+8>>2];i=gc[J[J[b>>2]+28>>2]](b)|0;if((i|0)==-1)break s;b=J[a+8>>2];j=gc[J[J[b>>2]+28>>2]](b)|0;if((j|0)==-1)break s;b=J[a+8>>2];k=gc[J[J[b>>2]+28>>2]](b)|0;if((k|0)==-1)break s; -b=J[a+8>>2];m=gc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break s;b=J[a+8>>2];l=gc[J[J[b>>2]+28>>2]](b)|0;if((l|0)==-1)break s;b=J[a+8>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break s;b=J[a+8>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break s;b=J[a+8>>2];f=gc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break s;b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break s;b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break s;b=J[a+8>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)==-1)break s;b=J[a+8>>2];if((gc[J[J[b>> -2]+28>>2]](b)|0)!=-1)break r}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=2;break a}if((c|0)!=7){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,776938,0);c=2;break a}J[a+20>>2]=d|(m<<16|k<<24|l<<8);J[a+24>>2]=j|(o<<16|n<<24|i<<8);b=f|g<<8;J[a+12>>2]=b;b=vd(b,4);J[a+16>>2]=b;c=0;if(J[a+12>>2])while(1){J[b+(c<<2)>>2]=e;c=c+1|0;if(c>>>0>2])continue;break}J[a+32>>2]=1;break c}if(!J[a+32>>2]){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,778225,0);c=2;break a}b=J[h+4>>2];if((b|0)!=J[a+12>>2])break e;c=0;if(!b)break c;while(1){e= -J[a+16>>2];b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=2;break a}J[(c<<2)+e>>2]=b;c=c+1|0;if(c>>>0>2])continue;break}break c}t:{b=J[a+8>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;u:{if((c|0)==-1)break u;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break u;J[a+80>>2]=b|c<<8;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=-1)break t}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=2;break a}J[a+96>>2]=1;J[a+84>>2]=b;q=a,r=vd(b,4),J[q+88>>2]=r;q= -a,r=vd(P(J[a+84>>2],J[a+80>>2]),4),J[q+92>>2]=r;if(!J[a+84>>2])break c;i=J[a+88>>2];c=0;while(1){b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e|0)!=-1){b=c<<2;J[b+i>>2]=e;i=J[a+88>>2];b=b+i|0;J[b>>2]=J[b>>2]+1;c=c+1|0;j=J[a+84>>2];if(c>>>0>>0)continue;break d}break}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=2;break a}J[a+116>>2]=1;b=J[h+4>>2]>>>2|0;J[a+100>>2]=b;q=a,r=vd(b,4),J[q+104>>2]=r;q=a,r=vd(J[a+100>>2],4),J[q+108>>2]=r;q=a,r=vd(J[a+100>>2],4),J[q+112>>2]=r;c=0;if(!J[a+100>>2])break c;while(1){f= -J[a+104>>2];v:{b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;w:{if((e|0)==-1)break w;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break w;d=f;f=c<<2;J[d+f>>2]=b|e<<8;e=J[a+108>>2];b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break w;J[e+f>>2]=b;e=J[a+112>>2];b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=-1)break v}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=2;break a}J[e+f>>2]=b;c=c+1|0;if(c>>>0>2])continue;break}break c}J[a+136>>2]=1;b=b|c<<8;J[a+120>>2]=b;q=a,r=vd(b,4),J[q+ -124>>2]=r;q=a,r=vd(J[a+120>>2],4),J[q+128>>2]=r;q=a,r=vd(J[a+120>>2],4),J[q+132>>2]=r;c=0;if(!J[a+120>>2])break c;while(1){f=J[a+124>>2];x:{b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;y:{if((e|0)==-1)break y;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break y;g=c<<2;J[g+f>>2]=b|e<<8;f=J[a+128>>2];b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break y;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break y;J[f+g>>2]=b|e<<8;f=J[a+132>>2];b=J[a+8>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;if((e| -0)==-1)break y;b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=-1)break x}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=2;break a}J[f+g>>2]=b|e<<8;c=c+1|0;if(c>>>0>2])continue;break}break c}if(!J[a+16>>2])xc(1,gc[J[J[a>>2]+52>>2]](a)|0,780296,0);if(!J[a+76>>2])xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781727,0);p=1;c=MY(a);if(c)break a;break c}c=J[a+8>>2];b=J[h+4>>2];if((gc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))break c;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=p?1:2;break a}xc(1,gc[J[J[a>>2]+52>>2]](a)| -0,779379,0);c=2;break a}c=J[a+80>>2];if(!c)break c;i=0;if(!j)break c;while(1){k=0;z:{if(!j){j=0;break z}while(1){d=J[a+92>>2];g=k<<2;f=J[g+J[a+88>>2]>>2];b=f&127;m=b+7|0;c=0;if(b){e=m>>>3|0;l=0;while(1){b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break b;c=b+(c<<8)|0;l=l+1|0;if((e|0)!=(l|0))continue;break}}e=g+((P(i,j)<<2)+d|0)|0;A:{if(!(f&128))break A;b=m&248;if(!(c>>>b-1&1))break A;c=-1<>2]=c;j=J[a+84>>2];k=k+1|0;if(j>>>0>k>>>0)continue;break}c=J[a+80>>2]}i=i+1|0;if(i>>>0>> -0)continue;break}}if(KA(a,h+12|0,h+8|0,h+4|0))continue;break}c=0;break a}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,775863,0);c=2;break a}xc(0,gc[J[J[a>>2]+52>>2]](a)|0,774610,0);c=2;b=MY(a);if((b|0)==2)break a;c=J[a+188>>2];J[a+12>>2]=c;f=vd(c,4);J[a+16>>2]=f;if(J[a+12>>2]){e=J[J[a+200>>2]+60>>2];c=0;while(1){J[f+(c<<2)>>2]=J[(e+P(c,88)|0)+4>>2];c=c+1|0;if(c>>>0>2])continue;break}}J[a+20>>2]=J[a+140>>2]-J[a+148>>2];J[a+24>>2]=J[a+144>>2]-J[a+152>>2];c=b}bc=h+16|0;J[a+236>>2]=0;J[a+228>>2]=0;J[a+220>> -2]=J[a+180>>2];J[a+224>>2]=(c|0)==2?J[a+144>>2]>>>J[a+28>>2]|0:J[a+184>>2]}function lxa(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=bc+-64|0;bc=e;a:{b:{c:{d:{if(J[a+12>>2]){J[e+52>>2]=0;J[e+56>>2]=J[682146];b=J[b>>2];e:{if(b){f=J[J[b>>2]+28>>2];J[695492]=0;ca(f|0,e+44|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break e;b=Z()|0;break b}J[e+44>>2]=0}J[695492]=0;aa(4993,e+52|0,e+44|0)|0;b=J[695492];J[695492]=0;f:{if((b|0)!=1){b=J[e+44>>2];J[e+44>>2]=0;if(!b)break f;J[695492]=0;f= -J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f}break a}b=Z()|0;vc(e+44|0);break b}b=J[e+52>>2];J[e+56>>2]=J[(b?b+12|0:2728584)>>2];g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(!b)break q;g=J[b+12>>2];if(K[g|0]!=3)break q;r:{f=J[b+8>>2];if((f|0)>0){b=1;while(1){if(K[b+g|0]!=3)break r;h=(b|0)<(f|0);b=b+1|0;if(h)continue;break}}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)==1)break p;break c}J[695492]=0;ia(5143, -e+44|0,e+52|0,b|0,f-b|0);b=J[695492];J[695492]=0;s:{if((b|0)!=1){b=J[e+44>>2];t:{if(b){f=J[J[b>>2]+28>>2];J[695492]=0;ca(f|0,e+32|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break t;b=Z()|0;break d}J[e+32>>2]=0}J[695492]=0;aa(4993,e+52|0,e+32|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[e+32>>2];J[e+32>>2]=0;if(!b)break s;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break s;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break s}break a}b=Z()|0;vc(e+ -32|0);break d}b=Z()|0;break b}b=J[e+52>>2];J[e+56>>2]=J[(b?b+12|0:2728584)>>2];sc(e+44|0)}J[695492]=0;f=kf(e+52|0);b=J[695492];J[695492]=0;u:{v:{w:{x:{y:{z:{A:{B:{if((b|0)==1)break B;J[695492]=0;b=J[J[a+20>>2]+((f>>>0)%M[a+16>>2]<<2)>>2];a=J[695492];J[695492]=0;if((a|0)==1)break B;if(!b)break g;C:{while(1){D:{if((f|0)==J[b+12>>2]){J[695492]=0;a=ga(5117,b+16|0,e+52|0,-1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break C;if(!a)break D}b=J[b+8>>2];if(b)continue;break g}break}f=0;a=J[b+24>>2];if(a){J[695492]= -0;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break A;f=J[b+24>>2]}J[695492]=0;J[e+40>>2]=f;a=aa(4989,e+32|0,2405614)|0;b=J[695492];J[695492]=0;if((b|0)==1)break z;J[695492]=0;g=kf(a);b=J[695492];J[695492]=0;if((b|0)==1)break x;J[695492]=0;h=f+16|0;b=h;b=J[J[b+12>>2]+((g>>>0)%M[b+8>>2]<<2)>>2];i=J[695492];J[695492]=0;if((i|0)==1)break x;E:{if(b)while(1){if((g|0)==J[b+12>>2]){J[695492]=0;i=ga(5117,b+16|0,a|0,-1)|0;j=J[695492];J[695492]=0;if((j|0)==1)break y;if(!i)break E}b=J[b+8>>2]; -if(b)continue;break}b=0}J[e+48>>2]=h;J[e+44>>2]=b;sc(a);if(!b)break w;a=f;f=J[e+40>>2];if((a|0)!=(f|0)){J[695492]=0;da(5073,e+44|0,f+16|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;break i}a=J[b+24>>2];F:{if(a){b=J[J[a>>2]+28>>2];J[695492]=0;ca(b|0,e+24|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break i;break F}J[e+24>>2]=0}J[695492]=0;aa(4993,c|0,e+24|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[e+24>>2];J[e+24>>2]=0;if(!a)break v;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;g=J[695492];J[695492]= -0;if((g|0)!=1){if(b)break v;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break v}break a}b=Z()|0;vc(e+24|0);break h}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break h}b=Z()|0;sc(a);break h}b=Z()|0;sc(a);break h}J[e+24>>2]=0;J[e+28>>2]=J[682146];G:{f=J[e+40>>2];a=J[f+60>>2];H:{I:{if(a){b=J[J[a>>2]+28>>2];J[695492]=0;ca(b|0,e+16|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break I;b=Z()|0;break H}J[e+16>>2]=0}J[695492]=0;aa(4993,e+24|0,e+16|0)|0;a=J[695492];J[695492]=0;if((a| -0)!=1){a=J[e+16>>2];J[e+16>>2]=0;if(!a)break G;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;g=J[695492];J[695492]=0;if((g|0)!=1){if(b)break G;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break G}break a}b=Z()|0;vc(e+16|0)}sc(e+24|0);break h}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2728584)>>2];g=0;J:{K:{L:{M:{N:{O:{P:{Q:{if(!a){b=-1;a=0;break Q}J[695492]=0;b=In(a,10,0);a=J[695492];J[695492]=0;if((a|0)==1)break J;h=J[e+24>>2];if(!h){a=0;break Q}a=0;J[695492]=0;g=ga(5416,h|0,0,-1)|0;h=J[695492]; -J[695492]=0;if((h|0)==1)break P;h=J[e+24>>2];if(!h)break Q;J[695492]=0;a=ga(5417,h|0,0,-1)|0;h=J[695492];J[695492]=0;if((h|0)==1)break O}if((b|0)<=(g|0)&(b|g)>=0)break L;J[695492]=0;b=e+8|0;ia(5143,b|0,e+24|0,0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break N;J[695492]=0;da(5418,e+16|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break M;a=J[e+16>>2];R:{if(a){b=J[J[a>>2]+28>>2];J[695492]=0;ca(b|0,e+60|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break R;b=Z()|0;break l}J[e+60>>2]=0}J[695492]=0;aa(4993, -c|0,e+60|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[e+60>>2];J[e+60>>2]=0;if(!a)break K;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;g=J[695492];J[695492]=0;if((g|0)!=1){if(b)break K;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break K}break a}b=Z()|0;vc(e+60|0);break l}b=Z()|0;break j}b=Z()|0;break j}b=Z()|0;break j}b=Z()|0;break k}J[695492]=0;g=e+8|0;ia(5143,g|0,e+24|0,b+1|0,(b^-1)+a|0);a=J[695492];J[695492]=0;S:{if((a|0)!=1){J[695492]=0;da(5418,e+16|0,g|0);a=J[695492];J[695492]=0; -if((a|0)==1)break S;a=J[e+16>>2];T:{if(a){b=J[J[a>>2]+28>>2];J[695492]=0;ca(b|0,e+60|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break T;b=Z()|0;break n}J[e+60>>2]=0}J[695492]=0;aa(4993,c|0,e+60|0)|0;a=J[695492];J[695492]=0;U:{if((a|0)!=1){a=J[e+60>>2];J[e+60>>2]=0;if(!a)break U;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;g=J[695492];J[695492]=0;if((g|0)!=1){if(b)break U;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break U}break a}b=Z()|0;vc(e+60|0);break n}break K}b=Z()|0;break j}b=Z()| -0;break m}a=J[c>>2];J[c+4>>2]=J[(a?a+12|0:2728584)>>2];sc(e+16|0);sc(e+8|0);sc(e+24|0);break u}b=Z()|0;break j}a=J[c>>2];J[c+4>>2]=J[(a?a+12|0:2728584)>>2]}J[695492]=0;c=aa(4989,e+16|0,2405620)|0;a=J[695492];J[695492]=0;V:{W:{X:{Y:{Z:{if((a|0)!=1){J[695492]=0;g=kf(c);a=J[695492];J[695492]=0;if((a|0)==1)break Y;a=0;J[695492]=0;h=f+16|0;b=h;b=J[J[b+12>>2]+((g>>>0)%M[b+8>>2]<<2)>>2];i=J[695492];J[695492]=0;if((i|0)==1)break Y;_:{if(!b)break _;while(1){$:{if((g|0)!=J[b+12>>2])break $;J[695492]=0;a=ga(5117, -b+16|0,c|0,-1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break Z;if(a)break $;a=b;break _}b=J[b+8>>2];if(b)continue;break}a=0}J[e+28>>2]=h;J[e+24>>2]=a;sc(c);b=J[e+40>>2];if(!a)break W;if((b|0)!=(f|0)){J[695492]=0;da(5073,e+24|0,b+16|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;break o}a=J[a+24>>2];aa:{if(a){c=J[J[a>>2]+28>>2];J[695492]=0;ca(c|0,e+8|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break o;break aa}J[e+8>>2]=0}J[695492]=0;aa(4993,d|0,e+8|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break V; -a=J[e+8>>2];J[e+8>>2]=0;if(!a)break X;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break X;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break X}break a}b=Z()|0;break h}b=Z()|0;sc(c);break h}b=Z()|0;sc(c);break h}a=J[d>>2];J[d+4>>2]=J[(a?a+12|0:2728584)>>2]}if(!b)break g;J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[695492];J[695492]=0;if((c|0)!=1){if(a)break g;J[695492]=0;_(4987,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break a}b=Z()|0;vc(e+ -8|0);break h}b=Z()|0;break b}b=Z()|0;break h}sc(e+16|0)}sc(e+8|0);break j}sc(e+16|0)}sc(e+8|0)}sc(e+24|0);break h}b=Z()|0}vc(e+40|0);break b}sc(e+52|0)}bc=e- -64|0;return}sc(e+44|0);break b}B()}sc(e+52|0);ba(b|0);B()}ea(0)|0;yc();B()}function tmb(a,b,c,d,e,f,g,h,i,j,k,l,m,n){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;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=Q(0),t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,O=0,P=0,T=0,U=Q(0),V=0,W=0,X=0,Y=0;p=bc-80| -0;bc=p;a:{b:{c:{d:{e:{f:{g:{h:{if(!(!(1<>>0>8)){i:{if(j){q=Dr(0);J[p+72>>2]=q;if(J[k>>2]<=0)break i;while(1){t=J[J[k+12>>2]+(o<<2)>>2];zl(q,Q(J[t>>2]),Q((J[t+4>>2]+J[t+12>>2]|0)-1|0));o=o+1|0;if((o|0)>2])continue;break}break i}J[p+72>>2]=e;q=e}o=J[d>>2];A=J[d+4>>2];t=0;J[p+68>>2]=0;J[p+60>>2]=0;J[p+64>>2]=0;u=A-o|0;G=u>>2;z=(o|0)==(A|0);j:{k:{if(!z){l:{m:{if(G>>>0>=1073741824){J[695492]=0;_(1589,p+60|0);a=J[695492];J[695492]=0;if((a|0)==1)break m;break a}J[695492]=0;t=$(4,u|0)|0;r= -J[695492];J[695492]=0;if((r|0)!=1)break l}o=Z()|0;a=J[p+60>>2];if(!a)break b;J[p+64>>2]=a;qc(a);break b}J[p+60>>2]=t;J[p+68>>2]=(G<<2)+t;r=u;u=wc(t,0,u);r=r+u|0;J[p+64>>2]=r;if(!j)break k;if(z){t=r;break j}o=0;d=u;while(1){J[d>>2]=o;o=o+1|0;d=d+4|0;if((r|0)!=(d|0))continue;break}break j}if(j)break j}u=d;d=p+60|0;if((u|0)==(d|0))break j;J[695492]=0;ca(1607,d|0,o|0,A|0);d=J[695492];J[695492]=0;if((d|0)==1)break d;r=J[p+64>>2];t=J[p+60>>2]}J[695492]=0;J[p+48>>2]=q;BD(t,r,p+48|0,(r|0)!=(t|0)?62-(S(r- -t>>2)<<1)|0:0);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[695492]=0;F=J[p+72>>2];ca(1601,a|0,3,0);d=J[695492];J[695492]=0;if((d|0)==1)break e;J[p+56>>2]=0;J[p+48>>2]=0;K=n?-12:0;H=c+4|0;I=b+4|0;O=(j?l:0)<<2;t=0;r=0;z=0;d=0;n:{while(1){if((z|0)>=(G|0)){J[695492]=0;_(1599,a|0);a=J[695492];J[695492]=0;if((a|0)!=1){if((e|0)==(F|0))break h;J[695492]=0;zo(p+72|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h}break f}u=J[p+60>>2]+(z<<2)|0;A=J[u>>2];s=Gzb(N[J[F+16>>2]+(A<<2)>>2]);o:{if(Q(R(s))>2]=A;q=r+4|0;J[p+52>>2]=q;break p}J[695492]=0;r=$(4,4)|0;q=J[695492];J[695492]=0;if((q|0)==1)break n;J[r>>2]=J[u>>2];t=r+4|0;J[p+56>>2]=t;J[p+52>>2]=t;J[p+48>>2]=r;if(E)qc(E);q=t;E=q}A=o-x|0;z=z+1|0;if((G|0)>(z|0)){v=h+A|0;q:{while(1){D=J[p+60>>2]+(z<<2)|0;r=J[D>>2];s=Gzb(N[J[F+16>>2]+(r<<2)>>2]);r:{if(Q(R(s))=(v|0))break q;s:{if((q|0)!= -(t|0)){J[q>>2]=r;q=q+4|0;J[p+52>>2]=q;break s}x=J[p+48>>2];q=t-x|0;y=q>>2;o=y+1|0;if(o>>>0>=1073741824){J[695492]=0;_(1589,p+48|0);break g}u=q>>1;E=q>>>0>=2147483644?1073741823:o>>>0>>0?u:o;t:{if(!E){u=0;break t}if(E>>>0>=1073741824){J[695492]=0;ka(209);break g}J[695492]=0;u=$(4,E<<2)|0;q=J[695492];J[695492]=0;if((q|0)==1)break f;r=J[D>>2]}o=(y<<2)+u|0;J[o>>2]=r;q=o+4|0;if((t|0)!=(x|0))while(1){o=o-4|0;t=t-4|0;J[o>>2]=J[t>>2];if((t|0)!=(x|0))continue;break}t=(E<<2)+u|0;J[p+56>>2]=t;J[p+52>>2]= -q;J[p+48>>2]=o;if(x)qc(x)}E=t;z=z+1|0;if((G|0)!=(z|0))continue;break}z=G}r=J[p+48>>2]}J[695492]=0;J[p+76>>2]=F;AD(r,q,p+76|0,(q|0)!=(r|0)?62-(S(q-r>>2)<<1)|0:0);q=J[695492];J[695492]=0;if((q|0)==1)break n;J[695492]=0;ca(1601,a|0,3,(A-d|0)/(h|0)|0);d=J[695492];J[695492]=0;if((d|0)==1)break f;r=J[p+48>>2];L=J[p+52>>2];if((r|0)!=(L|0)){d=0;o=1;q=r;while(1){v=J[q>>2];u:{if(o&1){s=N[J[F+12>>2]+(v<<2)>>2];J[695492]=0;s=Gzb(s);v:{if(Q(R(s))>2]+(v<<2)>>2];J[695492]=0;s=Gzb(s);w:{if(Q(R(s))>2]+(v<<2)>>2];J[695492]=0;s=Gzb(s);y:{if(Q(R(s))>2]|0)+O>>2];z:{if(Q(R(s))>2];if(!o)break B;while(1){y=(x|0)>J[o+16>>2];d=y?d:o;o=J[(y?o+4|0:o)>>2];if(o)continue;break}if((d|0)==(I|0)|(x|0)>2])break B;o=J[d+20>>2];break A}C:{d=H;o=J[d>>2];if(!o)break C;while(1){y=(x|0)>J[o+16>>2];d=y?d:o;o=J[(y?o+4|0:o)>>2];if(o)continue;break}if((d|0)==(H|0)|(x|0)>2])break C;o=J[b+8>>2]+J[d+20>>2]|0;break A}a=J[651370];o=J[b>>2];if((I|0)!=(o|0))while(1){J[p+32>>2]=J[o+16>>2];cd(a,226026,p+32|0);q=J[o+4>>2];D:{if(q)while(1){d=q;q=J[d>> -2];if(q)continue;break D}while(1){d=J[o+8>>2];b=J[d>>2]!=(o|0);o=d;if(b)continue;break}}o=d;if((I|0)!=(o|0))continue;break}o=J[c>>2];if((H|0)!=(o|0))while(1){J[p+16>>2]=J[o+16>>2];cd(a,226026,p+16|0);q=J[o+4>>2];E:{if(q)while(1){d=q;q=J[d>>2];if(q)continue;break E}while(1){d=J[o+8>>2];b=J[d>>2]!=(o|0);o=d;if(b)continue;break}}o=d;if((H|0)!=(o|0))continue;break}J[p>>2]=x;cd(a,226844,p);J[695492]=0;ka(495);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break f}J[695492]=0;ca(1611,a|0,i|0,o|0);d=J[695492]; -J[695492]=0;if((d|0)==1)break f;F:{if(j){M=x<<2;o=J[M+J[f+12>>2]>>2];G:{if(n){J[695492]=0;o=aa(1603,o|0,6)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break G;break f}J[695492]=0;if(o)J[o+16>>2]=J[o+16>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break f}J[695492]=0;J[p+76>>2]=o;Ao(o,0);d=J[695492];J[695492]=0;if((d|0)==1)break f;d=J[D+J[k+12>>2]>>2];o=J[d+8>>2];x=J[d+12>>2];T=J[d+4>>2];v=l+v<<2;U=N[v+J[e+16>>2]>>2];V=J[d>>2];s=N[v+J[e+12>>2]>>2];d=J[D+J[j+12>>2]>>2];v=J[p+76>>2];W=J[v>>2];v=J[v+4>>2];J[695492]= -0;Ao(d,0);w=J[695492];J[695492]=0;if(Q(R(s))>>0));H:{if(Q(R(s))>2]>>2];J[695492]=0;w=aa(1612,0,w|0)|0;C=J[695492];J[695492]=0;if((C|0)==1)break f;J[p+44>>2]=w;C=J[p+76>>2];X=J[C+4>>2];Y=J[C>>2];J[695492]=0;d=V-d|0;y=T+(y^-1)|0;Da(1613,w|0,d|0,y|0,Y|0,X|0,12,C|0,0,0)|0;w=J[695492];J[695492]=0;if((w|0)==1)break f;J[695492]=0;ga(1614,J[p+44>>2],p+40|0,0)|0;w=J[695492];J[695492]= -0;if((w|0)==1)break I;J[695492]=0;_(1584,p+44|0);w=J[695492];J[695492]=0;if((w|0)==1)break I;if(!((d|0)<-1|J[p+40>>2]<=(m|0))&(d|0)<2)break J;J[695492]=0;ca(1601,a|0,12,0);d=J[695492];J[695492]=0;if((d|0)==1)break I;o=J[J[M+J[f+12>>2]>>2]>>2]+K|0;break F}break f}J[695492]=0;ca(1601,a|0,12,1);w=J[695492];J[695492]=0;if((w|0)==1)break I;J[695492]=0;w=o-W|0;ca(1601,a|0,9,w|0);C=J[695492];J[695492]=0;if((C|0)==1)break I;J[695492]=0;v=x-v|0;ca(1601,a|0,8,v|0);C=J[695492];J[695492]=0;if((C|0)==1)break I; -J[695492]=0;ca(1601,a|0,10,d-(w>>1)|0);w=J[695492];J[695492]=0;if((w|0)==1)break I;J[695492]=0;ca(1601,a|0,11,y-(v>>1)|0);v=J[695492];J[695492]=0;if((v|0)==1)break I;D=J[J[D+J[j+12>>2]>>2]+40>>2];v=J[p+76>>2];w=J[v+4>>2];C=J[v>>2];v=J[v+40>>2];J[695492]=0;Sa(1615,a|0,v|0,C|0,w|0,D|0,o|0,x|0,d|0,0-y|0);d=J[695492];J[695492]=0;if((d|0)==1)break I;J[695492]=0;_(1584,p+76|0);d=J[695492];J[695492]=0;if((d|0)!=1)break F}break f}o=J[J[J[f+12>>2]+(x<<2)>>2]>>2]+K|0}d=(o+u|0)-1|0;o=0;q=q+4|0;if((L|0)!=(q| -0))continue;break}}J[695492]=0;da(1606,a|0,2);q=J[695492];J[695492]=0;d=A;if((q|0)!=1)continue;break}break f}break f}ra();B()}if(r)qc(r);a=J[p+60>>2];if(a){J[p+64>>2]=a;qc(a)}bc=p+80|0;return}a=J[695492];J[695492]=0;if((a|0)!=1)break a}o=Z()|0;a=J[p+48>>2];if(!a)break c;J[p+52>>2]=a;qc(a);break c}o=Z()|0;break c}o=Z()|0}a=J[p+60>>2];if(!a)break b;J[p+64>>2]=a;qc(a);ba(o|0);B()}ba(o|0);B()}B()}function tla(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;e=bc- -208|0;bc=e;c=J[d+4>>2];f=255;h=J[a+36>>2];g=a+32|0;a:{if((h|0)!=(g|0)){c=J[c>>2];d=h;while(1){if(!((c|0)>2]|(c|0)>J[d+16>>2])){f=K[d+9|0];c=K[d+8|0];if((d|0)==(h|0))break a;g=J[d+4>>2];if((g|0)==(h|0))break a;i=J[d>>2];J[i+4>>2]=g;J[g>>2]=i;g=J[h>>2];J[g+4>>2]=d;J[d>>2]=g;J[h>>2]=d;J[d+4>>2]=h;break a}d=J[d+4>>2];if((g|0)!=(d|0))continue;break}}c=255}b:{d=J[a+4>>2];if((d|0)!=(a|0))while(1){i=0;h=d+8|0;j=K[h+11|0];l=j<<24>>24;m=K[b+11|0];n=m<<24>>24;l=(l|0)<0;j=l?J[h+4>>2]:j;g=(n|0)<0;k=0; -c:{if((j|0)!=((g?J[b+4>>2]:m)|0))break c;k=1;if(!j)break c;k=!gd(l?J[h>>2]:h,g?J[b>>2]:b,j)}g=k;m=J[h+32>>2];l=J[h+28>>2];j=m-l>>2;n=J[b+28>>2];d:{if((j|0)!=J[b+32>>2]-n>>2)break d;i=g&K[h+12|0]==K[b+12|0]&K[h+13|0]==K[b+13|0]&L[h+14>>1]==L[b+14>>1]&K[h+16|0]==K[b+16|0]&K[h+17|0]==K[b+17|0]&K[h+18|0]==K[b+18|0]&K[h+19|0]==K[b+19|0]&K[h+20|0]==K[b+20|0]&K[h+21|0]==K[b+21|0]&K[h+22|0]==K[b+22|0]&K[h+23|0]==K[b+23|0]&K[h+24|0]==K[b+24|0]&K[h+25|0]==K[b+25|0]&K[h+26|0]==K[b+26|0];if((l|0)==(m|0))break d; -g=j>>>0<=1?1:j;m=g&3;p=0;e:{if(j>>>0<4){g=0;break e}q=g&-4;g=0;k=0;while(1){j=g<<2;o=j|4;o=J[j+l>>2]==J[j+n>>2]&i&J[l+o>>2]==J[n+o>>2];i=j|8;o=o&J[i+l>>2]==J[i+n>>2];i=j|12;i=o&J[i+l>>2]==J[i+n>>2];g=g+4|0;k=k+4|0;if((q|0)!=(k|0))continue;break}}if(!m)break d;while(1){k=i;i=g<<2;i=k&J[i+l>>2]==J[i+n>>2];g=g+1|0;p=p+1|0;if((m|0)!=(p|0))continue;break}}if(!(!i|K[d+49|0]!=(f|0)|K[d+48|0]!=(c|0))){H[a+28|0]=K[d- -64|0];H[a+29|0]=K[d+65|0];b=a+16|0;c=d+52|0;f:{if((b|0)==(c|0))break f;g=K[d+63|0];f=g<< -24>>24;if(H[a+27|0]>=0){if((f|0)>=0){f=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=f;J[b+8>>2]=J[c+8>>2];break f}yf(b,J[d+52>>2],J[d+56>>2]);break f}i=b;b=(f|0)<0;Df(i,b?J[d+52>>2]:c,b?J[d+56>>2]:g)}if(J[a+4>>2]==(d|0))break b;b=rc(68);J[b+16>>2]=0;J[b+20>>2]=0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+44>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+22>>1]=65535;H[b+31|0]=0;H[b+32|0]=0;H[b+33|0]=0;H[b+34|0]=0;J[695492]=0;g=b+8|0;aa(6411,g|0,h|0)|0;f=J[695492];J[695492]=0;g:{if((f| -0)!=1){I[b+48>>1]=L[h+40>>1];f=b+52|0;if(H[h+55|0]>=0){g=J[h+48>>2];J[f>>2]=J[h+44>>2];J[f+4>>2]=g;J[f+8>>2]=J[h+52>>2];break g}i=J[h+48>>2];l=J[h+44>>2];J[695492]=0;ca(15,f|0,l|0,i|0);f=J[695492];J[695492]=0;if((f|0)!=1)break g}a=Z()|0;av(g);qc(b);ba(a|0);B()}f=L[h+56>>1];J[b>>2]=a;I[b- -64>>1]=f;f=J[a+4>>2];J[b+4>>2]=f;J[f>>2]=b;J[a+4>>2]=b;J[a+8>>2]=J[a+8>>2]+1;b=J[d>>2];f=J[d+4>>2];J[b+4>>2]=f;J[f>>2]=b;J[a+8>>2]=J[a+8>>2]-1;if(H[d+63|0]<0)qc(J[c>>2]);a=J[d+36>>2];if(a){J[d+40>>2]=a;qc(a)}if(H[d+ -19|0]<0)qc(J[h>>2]);qc(d);break b}d=J[d+4>>2];if((d|0)!=(a|0))continue;break}J[e+184>>2]=0;H[e+171|0]=0;H[e+172|0]=0;H[e+173|0]=0;H[e+174|0]=0;J[e+200>>2]=0;J[e+176>>2]=0;J[e+180>>2]=0;I[e+162>>1]=65535;H[e+161|0]=0;J[e+148>>2]=0;H[e+159|0]=0;H[e+160|0]=0;J[e+164>>2]=0;J[e+168>>2]=0;J[e+192>>2]=0;J[e+196>>2]=0;J[695492]=0;h=aa(6411,e+148|0,b|0)|0;d=J[695492];J[695492]=0;h:{i:{j:{k:{l:{if((d|0)!=1){H[h+40|0]=c;H[h+41|0]=f;J[e+144>>2]=0;J[e+140>>2]=0;J[e+136>>2]=0;J[e+132>>2]=0;d=J[b+28>>2];if((d|0)!= -J[b+32>>2]){J[e+144>>2]=J[d>>2];J[e+140>>2]=J[d+4>>2];J[e+136>>2]=J[d+8>>2];J[e+132>>2]=J[d+12>>2]}d=c;m:{if((d|0)==1){c=-2147483648;if((f|0)==28)break m}n:{if((f|0)!=13|d?(d|0)==2&(f|0)==3|(d|0)==1&(f|0)==31:1){J[e+140>>2]=-2147483648;J[e+144>>2]=8192;J[e+136>>2]=8;break n}c=e+144|0;o:{p:switch(d|0){case 1:c=e+140|0;break o;case 2:c=e+136|0;break o;case 0:break o;default:break p}c=e+132|0}J[c>>2]=J[c>>2]|1<=0){J[e+24>>2]=J[b+8>>2];d=J[b+4>>2];J[e+ -16>>2]=J[b>>2];J[e+20>>2]=d;break t}d=J[b+4>>2];f=J[b>>2];J[695492]=0;ca(15,e+16|0,f|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break s}J[695492]=0;ia(6413,a|0,e+16|0,e+15|0,e+14|0);d=J[695492];J[695492]=0;if((d|0)==1)break r;u:{v:{w:{if(K[b+17|0]|K[b+18|0]|(K[b+19|0]|K[b+20|0]))break w;if(K[b+21|0]|K[b+22|0]|(K[b+23|0]|K[b+24|0]))break w;if(K[b+25|0])break w;if(!K[b+26|0])break v}J[695492]=0;d=$(27,10)|0;f=J[695492];J[695492]=0;if((f|0)==1)break u;J[e+60>>2]=d;f=K[b+25|0]|K[b+26|0]<<8;H[d+8|0]=f; -H[d+9|0]=f>>>8;f=K[b+21|0]|K[b+22|0]<<8|(K[b+23|0]<<16|K[b+24|0]<<24);g=K[b+17|0]|K[b+18|0]<<8|(K[b+19|0]<<16|K[b+20|0]<<24);H[d|0]=g;H[d+1|0]=g>>>8;H[d+2|0]=g>>>16;H[d+3|0]=g>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24}J[695492]=0;d=$(4,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break u;f=K[b+12|0];J[d>>2]=f;J[695492]=0;J[e+48>>2]=d;d=$(4,4)|0;g=J[695492];J[695492]=0;if((g|0)==1)break u;J[d>>2]=K[b+13|0];J[695492]=0;J[e+52>>2]=d;d=$(4,4)|0;g=J[695492];J[695492]=0;if((g|0)==1)break u; -J[d>>2]=K[b+16|0];J[e+56>>2]=d;d=L[b+14>>1];if((d|0)!=65535){J[695492]=0;b=$(4,2)|0;g=J[695492];J[695492]=0;if((g|0)==1)break u;I[b>>1]=d;J[e+104>>2]=b}J[695492]=0;b=$(4,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;J[b>>2]=J[e+144>>2];J[695492]=0;J[e+64>>2]=b;b=$(4,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;J[b>>2]=J[e+140>>2];J[695492]=0;J[e+68>>2]=b;b=$(4,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;J[b>>2]=J[e+136>>2];J[695492]=0;J[e+72>>2]=b;b=$(4,4)|0;d=J[695492];J[695492]=0;if((d| -0)==1)break u;J[b>>2]=J[e+132>>2];J[695492]=0;J[e+76>>2]=b;b=$(4,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;J[b>>2]=c;J[695492]=0;J[e+80>>2]=b;b=$(4,4)|0;c=J[695492];J[695492]=0;if((c|0)==1)break u;J[b>>2]=0;J[e+84>>2]=b;x:{if(!f)break x;b=J[e+60>>2];if(!b|K[b+2|0]>6)break x;H[b+2|0]=7}J[695492]=0;b=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break q}d=Z()|0;break j}d=Z()|0;break i}d=Z()|0;break j}y:{z:{A:{if(H[e+27|0]>=0){c=J[e+20>>2];J[b>>2]=J[e+16>>2];J[b+4>>2]=c;J[b+8>>2]=J[e+24>>2];break A}J[695492]= -0;ca(15,b|0,J[e+16>>2],J[e+20>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break z}J[e+28>>2]=b;b=J[a+12>>2];c=J[J[b>>2]+136>>2];J[695492]=0;b=ga(c|0,b|0,e+28|0,1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;H[a+28|0]=J[b+40>>2]!=0;H[a+29|0]=J[b+44>>2]!=0;c=a+16|0;if((c|0)==(b|0))break l;f=K[b+11|0];d=f<<24>>24;if(H[a+27|0]>=0){if((d|0)<0)break y;d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break l}g=J[b>>2];i=J[b+4>>2];J[695492]=0;k=b;b=(d|0)<0;ga(1629,c|0,(b?g:k)|0,(b?i:f)|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break k;break l}d=Z()|0;qc(b);break j}d=J[b+4>>2];b=J[b>>2];J[695492]=0;ga(1630,c|0,b|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break l;break k}d=Z()|0;break h}H[h+56|0]=K[a+28|0];H[h+57|0]=K[a+29|0];b=e+192|0;B:{if((b|0)==(c|0))break B;f=K[a+27|0];d=f<<24>>24;if(H[h+55|0]>=0){if((d|0)>=0){d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;J[b+8>>2]=J[c+8>>2];break B}c=J[a+20>>2];d=J[a+16>>2];J[695492]=0;ga(1630,b|0,d|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break B;break k}g= -J[a+20>>2];i=J[a+16>>2];J[695492]=0;k=b;b=(d|0)<0;ga(1629,k|0,(b?i:c)|0,(b?g:f)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k}J[695492]=0;da(6414,a|0,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;if(H[e+27|0]<0)qc(J[e+16>>2]);lo(e+28|0);if(H[h+55|0]<0)qc(J[e+192>>2]);a=J[e+176>>2];if(a){J[e+180>>2]=a;qc(a)}if(H[e+159|0]>=0)break b;qc(J[h>>2]);break b}d=Z()|0}if(H[e+27|0]>=0)break i;qc(J[e+16>>2])}lo(e+28|0)}if(H[e+203|0]<0)qc(J[e+192>>2]);a=J[e+176>>2];if(a){J[e+180>>2]=a;qc(a)}if(H[e+159|0]< -0)qc(J[e+148>>2]);ba(d|0);B()}bc=e+208|0}function LX(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;n=bc-128|0;bc=n;h=J[b>>2];a:{b:{i=J[c+8>>2];if((i|0)<=0)break b;k=J[c>>2];f=-1;e=i;while(1){c:{g=(e+f|0)/2|0;l=J[k+(g<<2)>>2];d:{if((l|0)<(h|0)){f=g;break d}e=g;if((h|0)>=(l|0))break c}if((e-f|0)>1)continue}break}if((h|0)!=J[k+(e<<2)>>2]|(e|0)>=(i|0))break b;f=0;xc(0,-1,781676,0);break a}g=J[c+8>>2];i=g;e:{f:{if((g|0)<=0)break f;k=J[c>>2];f=-1;while(1){g:{e=(f+i|0)/2|0;l=J[k+(e<<2)>>2]; -h:{if((l|0)<(h|0)){f=e;break h}i=e;if((h|0)>=(l|0))break g}if((i-f|0)>1)continue}break}if((g|0)<=(i|0))break f;if((h|0)==J[k+(i<<2)>>2])break e}i:{if(J[c+4>>2]!=(g|0)){f=J[c>>2];break i}if((g|0)>=1073741824){Th(775402);g=J[c+4>>2]}f=g<<1;J[c+4>>2]=f;f=Nd(J[c>>2],f,4);J[c>>2]=f;g=J[c+8>>2]}if((g|0)>(i|0)){f=(i<<2)+f|0;Zc(f+4|0,f,g-i<<2);g=J[c+8>>2];f=J[c>>2]}J[(i<<2)+f>>2]=h;J[c+8>>2]=g+1}e=0;f=J[a>>2];gc[J[J[f>>2]+56>>2]](f,J[b>>2]+J[a+4>>2]|0,0);f=J[a>>2];f=gc[J[J[f>>2]+40>>2]](f,n,100)|0;j:{if((f| -0)<=0)break j;while(1){g=H[e+n|0];if(g>>>0<=255)i=K[g+2306848|0]==1;else i=0;if(!i)break j;e=e+1|0;if((f|0)!=(e|0))continue;break}e=f}k:{if(d)break k;d=f;f=e+4|0;if((d|0)<=(f|0))break k;d=e+n|0;if(K[d|0]!=120|K[d+1|0]!=114|(K[d+2|0]!=101|K[d+3|0]!=102))break k;d=H[f+n|0];if(d>>>0<=255)d=K[d+2306848|0]==1;else d=0;if(!d)break k;f=c;h=bc-48|0;bc=h;J[h+16>>2]=13;i=b;c=J[a>>2];gc[J[J[c>>2]+56>>2]](c,J[b>>2]+(J[a+4>>2]+(e+5|0)|0)|0,0);l:{m:{n:{o:{p:{q:{r:{s:{while(1){b=J[a>>2];e=gc[J[J[b>>2]+28>>2]](b)| -0;if(e>>>0<=255)b=K[e+2306848|0]==1;else b=0;if(b)continue;t:{if((e|0)==116){b=J[a>>2];c=h+10|0;if((gc[J[J[b>>2]+40>>2]](b,c,6)|0)!=6)break n;if(Wc(c,783527,6))break n;J[h+32>>2]=5;c=rc(56);J[695492]=0;d=$(4,160)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;b=J[a>>2];e=J[J[b>>2]+52>>2];J[695492]=0;e=$(e|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break s;g=J[J[b>>2]+92>>2];J[695492]=0;j=e;e=h+32|0;b=ma(g|0,b|0,j|0,0,0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break s;J[695492]=0;b=ga(3494,d|0, -0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break s;J[695492]=0;b=ha(3308,c|0,0,b|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break t;hg(b,e,0,0,0,0,0,0,0);qc(qk(b));if(J[h+32>>2]!=7)break o;Ce(J[h+40>>2],784413,h+16|0);e=0;switch(J[h+16>>2]-1|0){case 0:case 8:break q;default:break p}}b=0;if(e-58>>>0<4294967286)break n;while(1){b=(P(b,10)+e|0)-48|0;c=J[a>>2];e=gc[J[J[c>>2]+28>>2]](c)|0;if(e-48>>>0<10)continue;break}if(!(K[e+2306848|0]==1&e>>>0<=255))break n;while(1){c=J[a>>2];e=gc[J[J[c>>2]+28>>2]](c)| -0;if(e>>>0<=255)c=K[e+2306848|0]==1;else c=0;if(c)continue;break}g=0;while(1){g=(P(g,10)+e|0)-48|0;c=J[a>>2];e=gc[J[J[c>>2]+28>>2]](c)|0;if(e-48>>>0<10)continue;break}if(!(K[e+2306848|0]==1&e>>>0<=255)|(b|0)<0|((g|0)<0|(g^2147483647)<(b|0)))break n;e=b+g|0;c=J[a+12>>2];if((e|0)>(c|0)){c=c?c<<1:1024;while(1){d=c;if((c|0)<(e|0)){c=c<<1;if((d|0)>0)continue}break}if((d|0)<0)break n;l=Nd(J[a+8>>2],d,12);J[a+8>>2]=l;c=J[a+12>>2];u:{if((d|0)<=(c|0))break u;e=d+(c^-1)|0;k=0;m=d-c&3;if(m)while(1){j=l+P(c, -12)|0;J[j+8>>2]=0;J[j>>2]=-1;c=c+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}if(e>>>0<3)break u;while(1){e=l+P(c,12)|0;J[e+8>>2]=0;J[e+12>>2]=-1;J[e>>2]=-1;J[e+20>>2]=0;J[e+24>>2]=-1;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=-1;c=c+4|0;if((d|0)!=(c|0))continue;break}}J[a+12>>2]=d}d=b;if((g|0)<=0)continue;while(1){c=J[a>>2];e=gc[J[J[c>>2]+28>>2]](c)|0;if(e>>>0<=255)c=K[e+2306848|0]==1;else c=0;if(c)continue;c=0;while(1){c=(P(c,10)+e|0)-48|0;e=J[a>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if(e-48>>>0<10)continue;break}if(!(K[e+ -2306848|0]==1&e>>>0<=255))break n;while(1){e=J[a>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if(e>>>0<=255)j=K[e+2306848|0]==1;else j=0;if(j)continue;break}k=0;while(1){k=(P(k,10)+e|0)-48|0;e=J[a>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if(e-48>>>0<10)continue;break}if(!(K[e+2306848|0]==1&e>>>0<=255))break n;while(1){e=J[a>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if(e>>>0<=255)j=K[e+2306848|0]==1;else j=0;if(j)continue;break}l=1;v:switch(e-102|0){case 0:l=0;break;case 8:break v;default:break n}e=J[a>>2];e=gc[J[J[e>>2]+28>>2]](e)| -0;if(e>>>0<=255)e=K[e+2306848|0]==1;else e=0;if(!e)break n;e=J[a+8>>2]+P(b,12)|0;w:{if(J[e>>2]!=-1)break w;J[e+8>>2]=l;J[e+4>>2]=k;J[e>>2]=c;x:{if((d|0)!=1|(b|0)!=1)break x;d=1;c=J[a+8>>2];if(J[c+12>>2]){b=1;break x}if(J[c+16>>2]!=65535){b=1;break x}b=1;if(J[c+20>>2])break x;b=J[c+16>>2];J[c>>2]=J[c+12>>2];J[c+4>>2]=b;J[c+8>>2]=J[c+20>>2];J[J[a+8>>2]+12>>2]=-1;d=0;b=0}if(J[a+16>>2]>=(b|0))break w;J[a+16>>2]=b}b=b+1|0;if((b|0)<(d+g|0))continue;break}continue}break}a=Z()|0;break r}a=Z()|0;qc(d)}qc(c); -ba(a|0);B()}J[i>>2]=J[h+24>>2];e=1}uc(h+16|0);if(J[a+40>>2]==13)Ef(h+32|0,a+40|0);b=h+16|0;if(J[Bc(J[h+40>>2],785361,b,0)>>2]!=1)break m;J[h+4>>2]=J[h+24>>2];LX(a,h+4|0,f,1);if(J[a+28>>2])break m;uc(b)}uc(h+32|0)}e=0;J[a+28>>2]=0;break l}uc(h+16|0);uc(h+32|0)}bc=h+48|0;f=e;break a}J[n+112>>2]=5;d=rc(56);J[695492]=0;f=$(4,160)|0;c=J[695492];J[695492]=0;y:{z:{A:{B:{if((c|0)==1)break B;c=J[a>>2];e=J[J[c>>2]+92>>2];g=J[b>>2];i=J[a+4>>2];J[695492]=0;j=c;c=n+112|0;e=ma(e|0,j|0,g+i|0,0,0,c|0)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break A;J[695492]=0;e=ga(3494,f|0,0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break A;J[695492]=0;h=ha(3308,d|0,0,e|0,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break B;f=0;if(J[hg(h,c,1,0,0,0,0,0,0)>>2]!=1)break y;uc(c);if(J[hg(h,c,1,0,0,0,0,0,0)>>2]!=1)break y;uc(c);d=hg(h,c,1,0,0,0,0,0,0);if(J[d>>2]!=10)break y;if(Ec(J[d+8>>2],782665))break y;uc(c);if(J[hg(h,c,0,0,0,0,0,0,0)>>2]!=8)break y;g=c;k=J[n+120>>2];i=b;d=0;c=bc+-64|0;bc=c;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;l= -gc[J[J[k>>2]+76>>2]](k)|0;e=c+32|0;C:{D:{E:{F:{if(J[Ce(l,786388,e)>>2]!=1)break F;f=J[c+40>>2];uc(e);if((f|0)<0)break F;if(J[a+12>>2]<(f|0)){m=Nd(J[a+8>>2],f,12);J[a+8>>2]=m;b=J[a+12>>2];G:{if((f|0)<=(b|0))break G;j=(b^-1)+f|0;o=f-b&3;if(o)while(1){p=m+P(b,12)|0;J[p+8>>2]=0;J[p>>2]=-1;b=b+1|0;d=d+1|0;if((o|0)!=(d|0))continue;break}if(j>>>0<3)break G;while(1){d=m+P(b,12)|0;J[d+8>>2]=0;J[d+12>>2]=-1;J[d>>2]=-1;J[d+20>>2]=0;J[d+24>>2]=-1;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=-1;b=b+4|0;if((f|0)!=(b|0))continue; -break}}J[a+12>>2]=f}m=c+32|0;if(J[Ce(l,787289,m)>>2]!=6)break F;b=J[c+40>>2];if(J[b+12>>2]<3)break F;H:{j=c+16|0;d=j;if(J[Mc(b,0,d,0)>>2]!=1)break H;o=J[c+24>>2];J[c+52>>2]=o;uc(d);if(J[Mc(J[c+40>>2],1,d,0)>>2]!=1)break H;b=J[c+24>>2];J[c+56>>2]=b;uc(d);if(J[Mc(J[c+40>>2],2,d,0)>>2]!=1)break H;d=J[c+24>>2];J[c+60>>2]=d;uc(j);uc(m);if((b|0)<0|o>>>0>8|((d|0)<0|(b|0)>8))break D;if((d|0)>8)break D;gc[J[J[k>>2]+20>>2]](k);Ce(l,787878,c);I:{if(J[c>>2]==6){m=1;b=J[c+8>>2];if(J[b+12>>2]<=1)break I;f=0;while(1){d= -c;j=b;b=c+32|0;if(J[Mc(j,f,b,0)>>2]!=1)break H;j=J[c+40>>2];uc(b);if(J[Mc(J[c+8>>2],m,b,0)>>2]!=1)break H;d=J[c+40>>2];uc(b);b=c;if((d|j)<0)break E;if(!KX(a,k,c+52|0,j,d))break E;f=f+2|0;m=f|1;b=J[c+8>>2];if((m|0)>2])continue;break}break I}if(KX(a,k,c+52|0,0,f))break I;b=c;break E}uc(c);Ce(l,784413,c+32|0);b=0;if(J[c+32>>2]==1){J[i>>2]=J[c+40>>2];b=1}uc(c+32|0);if(J[a+40>>2]!=13)break C;J[a+48>>2]=l;J[a+40>>2]=7;J[l+20>>2]=J[l+20>>2]+1;break C}uc(d)}b=e}uc(b)}b=0;J[a+28>>2]=0}bc=c- -64|0; -f=b;uc(g);qc(qk(h));break a}e=Z()|0;break z}e=Z()|0;qc(f)}qc(d);ba(e|0);B()}uc(n+112|0);qc(qk(h));J[a+28>>2]=0}bc=n+128|0;return f}function DJ(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,w=0,x=0,y=0,z=0;t=bc-16|0;bc=t;if(c)f=jl(J[a+8>>2],J[a+52>>2],c);else f=0;a:{b:{k=J[a+380>>2];if(k){J[a+380>>2]=J[k+24>>2];J[a+376>>2]=J[a+376>>2]-1;J[k>>2]=0;J[k+4>>2]=0;J[k+40>>2]=0;J[k+44>>2]=0;J[k+32>>2]=0;J[k+36>>2]=0;J[k+24>>2]=0;J[k+28>>2]=0;J[k+16>>2]=0;J[k+20>>2]=0; -J[k+8>>2]=0;J[k+12>>2]=0;J[k+4>>2]=2;g=J[a+52>>2];J[k+20>>2]=g;h=J[a+8>>2];J[k+36>>2]=f;J[k+32>>2]=h;c:{if(J[a+364>>2]){J[k+8>>2]=b;break c}d:{if(!b){f=0;break d}f=b;while(1){g=f;f=g+1|0;if(K[g|0])continue;break}f=0;g=g-b|0;if((g|0)<0)break d;h=gc[J[659450]](g+1|0)|0;if(!h){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}f=tc(h,b,g);H[g+f|0]=0}J[k+8>>2]=f;g=J[a+52>>2]}f=J[g+44>>2];e:{if(!f){J[g+44>>2]=k;break e}while(1){g=f;f=J[g+24>>2];if(f)continue;break}J[g+24>>2]=k;J[k+28>>2]=g}if(!J[689540])break b; -f=J[689537];if(!f)break b;gc[f|0](k);break b}if(b){k=c0(J[a+52>>2],f,b,J[a+364>>2]!=0);if(k)break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;J[t>>2]=4462;Cc(0,0,0,a,0,1,2,3,4462,0,0,0,32863,t);break a}f:{if(J[a+16>>2]|J[a+32>>2]){if(!d)break f;f=HB(a,d,e-d|0);J[k+16>>2]=f;J[k+12>>2]=f;if(!f)break f;g=J[k+32>>2];J[f+20>>2]=k;J[f+32>>2]=g;break f}if(K[e|0]){f=HB(a,d,e-d|0);J[k+16>>2]=f;J[k+12>>2]=f;if(!f)break f;g=J[k+32>>2];J[f+20>>2]=k;J[f+32>>2]=g;break f}n= -J[a+8>>2];g=e-d|0;l=bc-112|0;bc=l;f=d;g:{if(!f)break g;i=gc[J[659447]](36)|0;if(!i){J[l>>2]=5439;Cc(0,0,0,0,0,29,2,3,5439,0,0,0,32863,l);break g}J[i+20>>2]=0;J[i+4>>2]=0;J[i+28>>2]=0;J[i+32>>2]=0;h=J[659449];J[i+24>>2]=0;J[i+12>>2]=h;J[i+8>>2]=0;J[i+16>>2]=0;J[i>>2]=0;if((h&-2)!=2)J[i+12>>2]=4;h:{i:{j:{if((g|0)<=0)break j;s=d+g|0;u=l+106|0;v=l+105|0;w=l+104|0;x=l+103|0;g=d;while(1){k:{h=K[g|0];l:{if((h|0)!=38){if(!h)break k;g=g+1|0;break l}if((f|0)!=(g|0))if(Aj(i,f,g-f|0))break i;j=g+2|0;o=s>>>0<= -j>>>0;m:{if(!(o|K[g+1|0]!=35|K[j|0]!=120)){f=0;j=0;n:{h=g+3|0;if(s>>>0<=h>>>0)break n;j=K[h|0];if((j|0)!=59)break n;g=h+1|0;break m}while(1){g=-48;o:{if((j-48&255)>>>0<10)break o;if((j-97&255)>>>0<6){g=-87;break o}g=-55;if((j-65&255)>>>0<6)break o;J[l+48>>2]=0;Cc(0,0,0,0,n,2,1300,2,0,0,0,0,33850,l+48|0);f=0;g=h;break m}f=((f<<4)+g|0)+(j&255)|0;h=h+1|0;if(s>>>0>h>>>0)j=K[h|0];else j=0;if((j&255)!=59)continue;break}g=h+1|0;break m}p:{q:{r:{s:{t:{u:{v:{m=g+1|0;if(m>>>0>=s>>>0)break v;h=K[m|0];if((h| -0)==35){f=0;g=0;w:{x:{if(o)break x;g=K[j|0];if((g|0)!=59)break x;break w}while(1){if((g-48&255)>>>0>9)break t;h=g&255;g=0;f=(h+P(f,10)|0)-48|0;j=j+1|0;if(s>>>0>j>>>0)g=K[j|0];if((g&255)!=59)continue;break}}g=1;break p}j=s-g|0;f=1;while(1){h=h&255;if(!h)break v;if((h|0)==59)break u;f=f+1|0;if((j|0)==(f|0))break v;h=K[f+g|0];continue}}J[l+80>>2]=m;Cc(0,0,0,0,n,2,1302,2,m,0,0,0,31956,l+80|0);break i}if((f|0)==1)break q;p=gc[J[659450]](f)|0;y:{if(!p){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break y}h=f-1| -0;y=tc(p,m,h)+h|0,z=0,H[y|0]=z}z:{A:{if(!n)break A;h=J[n+44>>2];B:{if(!h)break B;h=J[h+48>>2];if(!h)break B;j=tf(h,p,0,0);if(j)break z}if(J[n+40>>2]==1)break A;h=J[n+48>>2];if(!h)break A;h=J[h+48>>2];if(!h)break A;j=tf(h,p,0,0);if(j)break z}j=Qi(p);if(j)break z;j=0;o=1;break s}o=0;if(J[j+48>>2]!=6)break s;if(J[i+32>>2])break i;h=J[j+40>>2];j=J[i+8>>2];if(!((j|0)==J[i+24>>2]|j>>>0>2147483646))J[i+24>>2]=j;j=J[i+4>>2];if(!((j|0)==J[i+20>>2]|j>>>0>2147483646))J[i+20>>2]=j;j=J[i+12>>2];if(!h|(j|0)==2)break h; -if(!Aj(i,h,-1))break r;break i}g=0;J[l+64>>2]=0;Cc(0,0,0,0,n,2,1301,2,0,0,0,0,33887,l- -64|0);f=0;break p}C:{if(J[i+32>>2])break C;h=J[i+8>>2];if(!((h|0)==J[i+24>>2]|h>>>0>2147483646))J[i+24>>2]=h;m=J[i+20>>2];h=J[i+4>>2];if((m|0)==(h|0)|h>>>0>2147483646)h=m;else J[i+20>>2]=h;if(!h)break C;D:{h=gc[J[659447]](60)|0;if(h){J[h>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[h+56>>2]=0;J[h+48>>2]=0;J[h+52>>2]=0;J[h+40>>2]=0;J[h+44>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+ -20>>2]=0;J[h+4>>2]=3;J[h+8>>2]=773004;E:{if(!J[689540])break E;m=J[689537];if(!m)break E;gc[m|0](h)}J[h+32>>2]=n;m=0;if(!(J[i+32>>2]|(J[i+28>>2]|J[i+12>>2]==2))){J[i+20>>2]=0;J[i+24>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;m=J[i>>2];J[i>>2]=0}J[h+40>>2]=m;if(r)break D;r=h;q=h;break C}J[l+96>>2]=1832;Cc(0,0,0,0,0,2,2,3,1832,0,0,0,32863,l+96|0);if(!p)break i;gc[J[659451]](p);break i}r=Ct(r,h)}m=PJ(n,p);if(!m){if(!p)break i;gc[J[659451]](p);break i}F:{if(J[j+12>>2]|o)break F;h=yB(n,J[m+40>>2]);J[j+68>>2]=1;J[j+ -12>>2]=h;if(!h)break F;while(1){o=h;J[h+20>>2]=j;h=J[h+24>>2];if(h)continue;break}J[j+16>>2]=o}if(!r){r=m;q=m;break r}r=Ct(r,m)}gc[J[659451]](p)}g=(f+g|0)+1|0;f=g;break l}g=g+j|0}if(!f){f=g;break l}G:{H:{if((f|0)>=128){I:{if(f>>>0<2048){j=0;o=6;h=192;break I}if(f>>>0<65536){j=6;o=12;h=224;break I}if(f>>>0>=1114112)break H;j=12;o=18;h=240}H[l+102|0]=h|f>>>o;H[l+103|0]=f>>>j&63|128;m=(j>>>0)/6|0;h=w;J:{if(j>>>0<6)break J;H[l+104|0]=f>>>j-6&63|128;m=(m+x|0)==(h|0);h=v;if(m)break J;H[l+105|0]=f>>>j-12& -63|128;h=u}f=h-(l+102|0)|0;break G}H[l+102|0]=f;f=1;break G}J[l+32>>2]=f;Cc(0,0,0,0,0,1,9,3,0,0,0,f,35041,l+32|0);f=0}H[f+(l+102|0)|0]=0;if(J[i+32>>2])break i;f=J[i+8>>2];if(!((f|0)==J[i+24>>2]|f>>>0>2147483646))J[i+24>>2]=f;f=J[i+4>>2];if(!((f|0)==J[i+20>>2]|f>>>0>2147483646))J[i+20>>2]=f;if(J[i+12>>2]==2)break i;f=g;if(Aj(i,l+102|0,-1))break i}if(g>>>0>>0)continue}break}if((f|0)==(g|0))break j;if(Aj(i,f,g-f|0))break i}K:{L:{if(J[i+32>>2])break L;f=J[i+8>>2];if(!((f|0)==J[i+24>>2]|f>>>0>2147483646))J[i+ -24>>2]=f;f=J[i+20>>2];g=J[i+4>>2];if((f|0)==(g|0)|g>>>0>2147483646)g=f;else J[i+20>>2]=g;if(!g)break L;g=gc[J[659447]](60)|0;if(!g)break K;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g+56>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+4>>2]=3;J[g+8>>2]=773004;M:{if(!J[689540])break M;f=J[689537];if(!f)break M;gc[f|0](g)}J[g+32>>2]=n;f=0;if(!(J[i+32>>2]|(J[i+28>>2]|J[i+12>>2]==2))){J[i+20>>2]=0;J[i+24>> -2]=0;J[i+4>>2]=0;J[i+8>>2]=0;f=J[i>>2];J[i>>2]=0}J[g+40>>2]=f;if(!r){q=g;break i}Ct(r,g);break i}if(q)break i;q=$$(39181);if(!q){q=0;break i}J[q+32>>2]=n;break i}J[l+16>>2]=1832;Cc(0,0,0,0,0,2,2,3,1832,0,0,0,32863,l+16|0)}j=J[i+12>>2]}N:{O:{P:{if((j|0)==3){g=J[i+16>>2];if(!g)break P;break O}if((j|0)==2)break N}g=J[i>>2];if(!g)break N}gc[J[659451]](g)}gc[J[659451]](i)}bc=l+112|0;g=q;J[k+12>>2]=g;if(!g)break f;q=J[k+32>>2];while(1){f=g;J[g+20>>2]=k;J[g+32>>2]=q;g=J[g+24>>2];if(g)continue;break}J[k+ -16>>2]=f}if(K[a+276|0]&8)break a;Q:{if(!J[a+16>>2]){if(J[a+96>>2]!=2)break Q;break a}if(J[a+216>>2])break a}R:{if(!(J[a+312>>2]!=(c|0)|K[b|0]!=105|(K[b+2|0]|K[b+1|0]!=100))){f=il(d,e-d|0);pw(a+108|0,J[a+8>>2],f,k);break R}if(qB(J[a+8>>2],J[a+52>>2],k)){f=0;S:{if(!d)break S;b=e-d|0;if((b|0)<0)break S;f=gc[J[659450]](b+1|0)|0;if(!f){f=0;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break S}y=tc(f,d,b)+b|0,z=0,H[y|0]=z}pw(a+108|0,J[a+8>>2],f,k);break R}if(!B$(J[a+8>>2],J[a+52>>2],k))break a;f=0;T:{if(!d)break T; -b=e-d|0;if((b|0)<0)break T;f=gc[J[659450]](b+1|0)|0;if(!f){f=0;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break T}y=tc(f,d,b)+b|0,z=0,H[y|0]=z}D$(a+108|0,J[a+8>>2],f,k)}if(!f)break a;gc[J[659451]](f)}bc=t+16|0}function Zka(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;e=bc-96|0;bc=e;g=J[c+12>>2];d=J[c+20>>2];k=d;h=J[c+16>>2];f=P(h,d);d=f>>31;m=J[c+24>>2];n=AS(b+36|0,m,(d^f)-d|0);a:{b:{j=b+8|0;f=J[j>>2];if(!f)break b;d=j;while(1){i=M[f+16>>2]>>0;d=i?d:f;f= -J[(i?f+4|0:f)>>2];if(f)continue;break}if((d|0)==(j|0)|M[d+16>>2]>n>>>0)break b;J[a>>2]=J[d+20>>2];b=a;a=J[d+24>>2];J[b+4>>2]=a;if(!a)break a;J[a+4>>2]=J[a+4>>2]+1;break a}d=J[b+32>>2]+1|0;J[b+32>>2]=d;f=rc(32);J[f+12>>2]=0;J[f>>2]=2431668;J[f+4>>2]=0;J[f+8>>2]=0;H[f+31|0]=0;J[f+20>>2]=0;J[a+4>>2]=f;J[a>>2]=f+12;J[f+16>>2]=d;J[695492]=0;i=J[c+12>>2];d=J[695492];J[695492]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((d|0)==1)break q;J[695492]=0;o=J[c+16>>2];d=J[695492];J[695492]=0;if((d|0)==1)break q; -J[695492]=0;d=J[c+24>>2];q=J[695492];J[695492]=0;c=1;if((q|0)==1)break q;i=P(i,o);r:{if((i|0)<=0)break r;c=0;if(K[d+3|0]!=255)break r;d=d+3|0;while(1){c=c+1|0;if((i|0)!=(c|0)){o=K[d+4|0];d=d+4|0;if((o|0)==255)continue}break}c=(c|0)>=(i|0)}J[f+12>>2]=c;c=J[f+16>>2];J[695492]=0;d=e+72|0;da(6427,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break p;J[695492]=0;c=ga(2277,d|0,0,2431476)|0;d=J[695492];J[695492]=0;if((d|0)==1)break o;J[e+32>>2]=J[c+8>>2];d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=d;J[c>>2]= -0;J[c+4>>2]=0;J[c+8>>2]=0;c=J[f+12>>2];J[695492]=0;c=aa(2860,e+24|0,((c|0)==1?2431500:2431520)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;i=J[c>>2];J[e+88>>2]=J[c+4>>2];d=K[c+7|0]|K[c+8|0]<<8|(K[c+9|0]<<16|K[c+10|0]<<24);H[e+91|0]=d;H[e+92|0]=d>>>8;H[e+93|0]=d>>>16;H[e+94|0]=d>>>24;J[c>>2]=0;J[c+4>>2]=0;d=K[c+11|0];J[c+8>>2]=0;if(H[f+31|0]<0)qc(J[f+20>>2]);J[f+20>>2]=i;J[f+24>>2]=J[e+88>>2];c=K[e+91|0]|K[e+92|0]<<8|(K[e+93|0]<<16|K[e+94|0]<<24);H[f+27|0]=c;H[f+28|0]=c>>>8;H[f+29|0]=c>>>16;H[f+ -30|0]=c>>>24;H[f+31|0]=d;if(H[e+35|0]<0)qc(J[e+24>>2]);if(H[e+83|0]<0)qc(J[e+72>>2]);J[695492]=0;i=e+24|0;c=i;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;J[e+72>>2]=g;J[c+4>>2]=J[e+72>>2];d=J[695492];J[695492]=0;if((d|0)==1)break k;J[695492]=0;J[e+72>>2]=h;J[c+8>>2]=J[e+72>> -2];d=J[695492];J[695492]=0;if((d|0)==1)break j;J[695492]=0;J[e+72>>2]=k;J[c+12>>2]=J[e+72>>2];d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;J[c+16>>2]=m;c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[b+28>>2];k=c>>>0>>0|c>>>0>>0;if(!k)break e;l=+(g>>>0)/+(h>>>0);p=+(c|0);if(g>>>0>>0)break g;d=c;l=p/l;s:{if(R(l)<2147483648){c=~~l;break s}c=-2147483648}c=(c|0)<=1?1:c;break f}f=Z()|0;break c}f=Z()|0;break c}f=Z()|0;break m}f=Z()|0;if(H[e+35|0]>=0)break m;qc(J[e+24>>2])}if(H[e+83| -0]>=0)break c;qc(J[e+72>>2]);break c}f=Z()|0;break c}f=Z()|0;break d}f=Z()|0;break d}f=Z()|0;break d}f=Z()|0;break d}l=l*p;t:{if(R(l)<2147483648){d=~~l;break t}d=-2147483648}d=(d|0)<=1?1:d}J[e+72>>2]=d;J[695492]=0;J[e+88>>2]=c;ha(6431,i|0,e+72|0,e+88|0,0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break e;f=Z()|0;break d}J[e+20>>2]=0;J[e+16>>2]=0;c=J[f+12>>2];J[695492]=0;ha(6432,i|0,e+20|0,e+16|0,((c|0)==1?3:4)|0)|0;c=J[695492];J[695492]=0;u:{if((c|0)!=1){if(k)break u;J[695492]=0;J[i+16>>2]=0;c=J[695492]; -J[695492]=0;if((c|0)!=1)break u}f=Z()|0;break d}J[695492]=0;c=fC(J[e+16>>2],0);d=J[695492];J[695492]=0;v:{w:{x:{if((d|0)!=1){J[e+12>>2]=c;d=J[f+12>>2];J[695492]=0;h=d?23:22;g=$(27,h+c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break v;if(d)break x;c=K[28683]|K[28684]<<8|(K[28685]<<16|K[28686]<<24);d=K[28679]|K[28680]<<8|(K[28681]<<16|K[28682]<<24);H[g+14|0]=d;H[g+15|0]=d>>>8;H[g+16|0]=d>>>16;H[g+17|0]=d>>>24;H[g+18|0]=c;H[g+19|0]=c>>>8;H[g+20|0]=c>>>16;H[g+21|0]=c>>>24;c=K[28677]|K[28678]<<8|(K[28679]<< -16|K[28680]<<24);d=K[28673]|K[28674]<<8|(K[28675]<<16|K[28676]<<24);H[g+8|0]=d;H[g+9|0]=d>>>8;H[g+10|0]=d>>>16;H[g+11|0]=d>>>24;H[g+12|0]=c;H[g+13|0]=c>>>8;H[g+14|0]=c>>>16;H[g+15|0]=c>>>24;c=K[28669]|K[28670]<<8|(K[28671]<<16|K[28672]<<24);d=K[28665]|K[28666]<<8|(K[28667]<<16|K[28668]<<24);H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=d>>>16;H[g+3|0]=d>>>24;H[g+4|0]=c;H[g+5|0]=c>>>8;H[g+6|0]=c>>>16;H[g+7|0]=c>>>24;break w}f=Z()|0;break d}c=K[28707]|K[28708]<<8|(K[28709]<<16|K[28710]<<24);d=K[28703]|K[28704]<< -8|(K[28705]<<16|K[28706]<<24);H[g+15|0]=d;H[g+16|0]=d>>>8;H[g+17|0]=d>>>16;H[g+18|0]=d>>>24;H[g+19|0]=c;H[g+20|0]=c>>>8;H[g+21|0]=c>>>16;H[g+22|0]=c>>>24;c=K[28700]|K[28701]<<8|(K[28702]<<16|K[28703]<<24);d=K[28696]|K[28697]<<8|(K[28698]<<16|K[28699]<<24);H[g+8|0]=d;H[g+9|0]=d>>>8;H[g+10|0]=d>>>16;H[g+11|0]=d>>>24;H[g+12|0]=c;H[g+13|0]=c>>>8;H[g+14|0]=c>>>16;H[g+15|0]=c>>>24;c=K[28692]|K[28693]<<8|(K[28694]<<16|K[28695]<<24);d=K[28688]|K[28689]<<8|(K[28690]<<16|K[28691]<<24);H[g|0]=d;H[g+1|0]=d>>> -8;H[g+2|0]=d>>>16;H[g+3|0]=d>>>24;H[g+4|0]=c;H[g+5|0]=c>>>8;H[g+6|0]=c>>>16;H[g+7|0]=c>>>24}J[695492]=0;eC(J[e+20>>2],J[e+16>>2],g+h|0,e+12|0,2);c=J[695492];J[695492]=0;if((c|0)==1)break v;c=J[e+20>>2];if(c){qc(c);J[e+20>>2]=0}y:{z:{A:{c=h+J[e+12>>2]|0;if(c>>>0>=2147483632){J[695492]=0;_(1623,e+72|0);b=J[695492];J[695492]=0;if((b|0)==1)break A;B()}h=J[f+16>>2];B:{if(c>>>0<=10){H[e+83|0]=c;f=e+72|0;break B}J[695492]=0;d=(c|15)+1|0;f=$(4,d|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break A;J[e+72>>2]= -f;J[e+76>>2]=c;J[e+80>>2]=d|-2147483648}r=tc(f,g,c)+c|0,s=0,H[r|0]=s;k=H[e+83|0];c=K[e+79|0]|K[e+80|0]<<8|(K[e+81|0]<<16|K[e+82|0]<<24);J[e+80>>2]=0;m=J[e+72>>2];d=J[e+76>>2];J[e+72>>2]=0;J[e+76>>2]=0;J[e+88>>2]=d;H[e+91|0]=c;H[e+92|0]=c>>>8;H[e+93|0]=c>>>16;H[e+94|0]=c>>>24;c=b+20|0;f=c;C:{D:{d=J[b+20>>2];E:{if(!d)break E;while(1){f=d;c=J[d+16>>2];if((c|0)>(h|0)){c=d;d=J[c>>2];if(d)continue;break E}if((c|0)>=(h|0))break D;d=J[f+4>>2];if(d)continue;break}c=f+4|0}J[695492]=0;d=$(4,32)|0;o=J[695492]; -J[695492]=0;if((o|0)==1)break z;J[d+16>>2]=h;J[d+20>>2]=m;J[d+24>>2]=J[e+88>>2];h=K[e+91|0]|K[e+92|0]<<8|(K[e+93|0]<<16|K[e+94|0]<<24);H[d+27|0]=h;H[d+28|0]=h>>>8;H[d+29|0]=h>>>16;H[d+30|0]=h>>>24;H[d+31|0]=k;H[e+91|0]=0;H[e+92|0]=0;H[e+93|0]=0;H[e+94|0]=0;J[e+88>>2]=0;J[d+8>>2]=f;J[d>>2]=0;J[d+4>>2]=0;J[c>>2]=d;f=J[J[b+16>>2]>>2];if(f){J[b+16>>2]=f;d=J[c>>2]}Ic(J[b+20>>2],d);J[b+24>>2]=J[b+24>>2]+1;break C}if((k|0)>=0)break C;qc(m)}if(H[e+83|0]<0)qc(J[e+72>>2]);qc(g);J[e+72>>2]=n;g=J[a>>2];J[e+76>> -2]=g;c=J[a+4>>2];J[e+80>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;f=j;d=J[f>>2];F:{G:{if(!d)break G;while(1){f=d;j=J[d+16>>2];if(j>>>0>n>>>0){j=d;d=J[d>>2];if(d)continue;break G}if(j>>>0>=n>>>0)break F;d=J[f+4>>2];if(d)continue;break}j=f+4|0}J[695492]=0;d=$(4,28)|0;h=J[695492];J[695492]=0;if((h|0)==1)break y;J[d+16>>2]=n;J[d+24>>2]=c;J[d+20>>2]=g;J[e+76>>2]=0;J[e+80>>2]=0;J[d+8>>2]=f;J[d>>2]=0;J[d+4>>2]=0;J[j>>2]=d;a=J[J[b+4>>2]>>2];if(a){J[b+4>>2]=a;d=J[j>>2]}Ic(J[b+8>>2],d);J[b+12>>2]=J[b+12>>2]+1;c=J[e+ -80>>2]}H:{if(!c)break H;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break H;gc[J[J[c>>2]+8>>2]](c);Vc(c)}Ng(i);break a}f=Z()|0;break d}f=Z()|0;if((k|0)>=0)break d;qc(m);if(H[e+83|0]>=0)break d;qc(J[e+72>>2]);break d}f=Z()|0;zS(e+72|0);break d}f=Z()|0}Ng(i)}Ie(a);ba(f|0);B()}bc=e+96|0}function a2(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0;g=bc-112|0;bc=g;a:{if(!e|(!b|!c))break a;J[g+80>> -2]=17;J[g+84>>2]=J[e+8>>2];e=J[e+12>>2];J[g+108>>2]=c;J[g+104>>2]=4;J[g+88>>2]=e;J[g+76>>2]=0;if(XC(b,g+80|0,0,g+76|0))break a;c=J[g+76>>2];if(!(H[c+8|0]&1)){ox(c);break a}y=J[c>>2];if(ox(c)|(y|0)<=0)break a;N=f&1;b:{c:{d:{e:{f:{g:{while(1){h:{i:{if(XC(b,g+80|0,u,g+76|0))break i;c=J[g+76>>2];s=J[c+12>>2];c=X5(c);H[g+64|0]=0;H[g+75|0]=0;j:{if(!c)break j;J[695492]=0;c=$(2807,J[g+76>>2])|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[695492]=0;aa(2808,g- -64|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break j}e= -Z()|0;break b}c=J[g+76>>2];O=J[c+8>>2];J[695492]=0;c=aa(2753,c|0,2)|0;e=J[695492];J[695492]=0;k:{l:{if((e|0)!=1){f=J[g+76>>2];if(!c){v=0;z=0;A=0;t=0;j=0;n=0;o=0;k=0;q=0;C=0;e=0;D=0;E=0;F=0;G=0;M=0;c=0;break k}M=c+32|0;A=L[c+8>>1];t=L[c+30>>1];v=L[c+6>>1];z=L[c+4>>1];C=J[c+84>>2];e=J[c+80>>2];D=J[c+56>>2];E=J[c+52>>2];F=J[c+48>>2];G=J[c+44>>2];h=L[f+68>>1];if(!h)break l;p=1E3/+(h>>>0);l=p*+I[c+90>>1];m:{if(R(l)<2147483648){q=~~l;break m}q=-2147483648}l=p*+I[c+88>>1];n:{if(R(l)<2147483648){k=~~l;break n}k= --2147483648}l=p*+I[c+74>>1];o:{if(R(l)<2147483648){o=~~l;break o}o=-2147483648}l=p*+I[c+72>>1];p:{if(R(l)<2147483648){n=~~l;break p}n=-2147483648}l=p*+I[c+70>>1];q:{if(R(l)<2147483648){j=~~l;break q}j=-2147483648}p=p*+I[c+2>>1];if(R(p)<2147483648){c=~~p;break k}c=-2147483648;break k}e=Z()|0;break b}q=I[c+90>>1];k=I[c+88>>1];o=I[c+74>>1];n=I[c+72>>1];j=I[c+70>>1];c=I[c+2>>1]}w=c;h=J[f+36>>2];if((h|0)>0){c=0;while(1){r:{if((e|0)<0)break r;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1])break r;e=L[i+8>>1]== -3?e|-2147483648:e}s:{if(e&131072)break s;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=2)break s;e=L[i+8>>1]==3?e|131072:e}t:{if(e&262144)break t;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=3)break t;e=L[i+8>>1]==3?e|262144:e}u:{if(e&1048576)break u;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=4)break u;e=L[i+8>>1]==3?e|1048576:e}v:{if(e&524288)break v;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=5)break v;e=L[i+8>>1]==3?e|524288:e}w:{if(e&2097152)break w;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=6)break w;e=L[i+ -8>>1]==3?e|2097152:e}c=c+1|0;if((h|0)!=(c|0))continue;break}}J[695492]=0;m=$(2759,f|0)|0;c=J[695492];J[695492]=0;x:{y:{z:{if((c|0)!=1){if(!((m|0)==2&N|(m|0)==1)){J[695492]=0;$(2747,J[g+76>>2])|0;c=J[695492];J[695492]=0;if((c|0)!=1)break x;e=Z()|0;break b}h=J[J[g+76>>2]+20>>2];if(!h)break z;f=0;A:{c=h;r=K[c|0];if(!r)break A;while(1){i=f;f=f+1|0;x=K[c+1|0];c=c+1|0;if(x)continue;break}if((r|0)!=60|i>>>0<6|(K[h+1|0]!=117|K[h+2|0]!=116))break A;if(K[h+3|0]!=102|K[h+4|0]!=56|K[h+5|0]!=62)break A;J[695492]= -0;ca(1618,g+52|0,h+6|0,i-5|0);c=J[695492];J[695492]=0;if((c|0)!=1)break y;break c}J[695492]=0;ia(2682,g+52|0,h|0,f|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break c;break y}e=Z()|0;break b}J[g+52>>2]=0;H[g+63|0]=0}h=J[J[g+76>>2]+24>>2];B:{if(h){f=0;C:{c=h;r=K[c|0];if(!r)break C;while(1){i=f;f=f+1|0;x=K[c+1|0];c=c+1|0;if(x)continue;break}if((r|0)!=60|i>>>0<6|(K[h+1|0]!=117|K[h+2|0]!=116))break C;if(K[h+3|0]!=102|K[h+4|0]!=56|K[h+5|0]!=62)break C;J[695492]=0;ca(1618,g+40|0,h+6|0,i-5|0);c=J[695492];J[695492]= -0;if((c|0)!=1)break B;break e}J[695492]=0;ia(2682,g+40|0,h|0,f|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break e;break B}J[g+40>>2]=0;H[g+51|0]=0}f=g+52|0;h=qj(f,63,0);J[695492]=0;c=$(4,128)|0;i=J[695492];J[695492]=0;if((i|0)==1)break h;J[695492]=0;n=fb(2795,c|0,f|0,g+40|0,d|0,u|0,s>>>1&1,s&1,O>>>2&1,M|0,G|0,F|0,E|0,D|0,e|0,C|0,z|0,v|0,t<<16>>16,m|0,w<<16>>16,j<<16>>16,n<<16>>16,o<<16>>16,k<<16>>16,q<<16>>16,A|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;o=J[g+76>>2];D:{if(!o|!(K[o+8|0]&8))break D; -s=L[o+340>>1];if(!s)break D;t=(h|0)!=-1;v=J[o+356>>2];w=n+116|0;e=0;while(1){c=v+P(e,20)|0;E:{if(L[c+6>>1]!=1|!L[c+8>>1])break E;H[g+24|0]=0;H[g+35|0]=0;F:{G:switch(L[c>>1]){case 0:break F;case 3:break G;default:break E}switch(L[c+2>>1]){case 0:case 1:case 10:break F;default:break E}}J[g+24>>2]=759583829;J[g+28>>2]=1161967153;H[g+35|0]=8;H[g+32|0]=0;f=J[o+368>>2];j=J[J[g+76>>2]+100>>2];J[g+20>>2]=0;h=L[c+8>>1];J[695492]=0;h=ja(2809,j|0,1,0,h|0,0,g+20|0)|0;k=J[695492];J[695492]=0;H:{I:{J:{K:{if((k| -0)==1)break K;J[c+16>>2]=h;L:{if(J[g+20>>2])break L;h=J[c+12>>2];J[695492]=0;k=aa(2810,f|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break K;J[g+20>>2]=k;h=J[c+16>>2];if(k)break L;k=L[c+8>>1];J[695492]=0;f=ga(2811,f|0,h|0,k|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break K;J[g+20>>2]=f;if(!f)break J;h=J[c+16>>2]}J[695492]=0;da(2812,j|0,h|0);f=J[695492];J[695492]=0;if((f|0)==1)break K;J[c+16>>2]=0;I[c+8>>1]=0;break H}e=Z()|0;break I}J[695492]=0;q=$(2813,g+16|0)|0;f=J[695492];J[695492]=0;M:{N:{O:{P:{Q:{if((f| -0)!=1){f=J[c+16>>2];J[g>>2]=L[c+8>>1];J[695492]=0;k=g+4|0;oa(2814,k|0,q|0,f|0,g|0,(H[g+35|0]<0?J[g+24>>2]:g+24|0)|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break O;c=H[g+63|0];f=(c|0)<0;j=f?J[g+56>>2]:c&255;if(!j)break P;h=K[g+15|0];c=h<<24>>24<0;h=c?J[g+8>>2]:h;R:{if((j|0)>(h|0))break R;c=c?J[g+4>>2]:k;k=c+(h<<2)|0;i=f?J[g+52>>2]:g+52|0;m=J[i>>2];f=c;while(1){h=(h-j|0)+1|0;if(!h)break R;f=og(f,m,h);if(!f)break R;if(gd(f,i,j)){f=f+4|0;h=k-f>>2;if((j|0)<=(h|0))continue;break R}break}if((f|0)==(k|0))break R; -if((f-c|0)!=-4)break P}c=g+52|0;h=K[c+11|0];f=h<<24>>24<0;h=f?J[c+4>>2]:h;i=g+4|0;j=K[i+11|0];m=j<<24>>24<0;k=m?J[i+4>>2]:j;if(k){j=h<<2;h=f?J[c>>2]:c;f=j+h|0;j=h;c=f-h>>2;S:{T:{if((k|0)>(c|0))break T;i=m?J[i>>2]:i;m=J[i>>2];while(1){c=(c-k|0)+1|0;if(!c)break T;c=og(j,m,c);if(!c)break T;if(!gd(c,i,k))break S;j=c+4|0;c=f-j>>2;if((k|0)<=(c|0))continue;break}}c=f}c=(c|0)==(f|0)?-1:c-h>>2}else c=0;if((c|0)!=-1)break P;m=J[n+116>>2];c=m;f=c;h=J[n+120>>2];U:{if((h|0)==(c|0))break U;while(1){f=K[c+11|0]; -j=f<<24>>24<0;i=K[g+15|0];k=i<<24>>24<0;r=k?J[g+8>>2]:i;i=j?J[c+4>>2]:f;if((r|0)==(i|0)){f=h;if(!i)break U;j=gd(j?J[c>>2]:c,k?J[g+4>>2]:g+4|0,i);h=J[n+120>>2];f=h;if(!j)break U}c=c+12|0;f=h;if((c|0)!=(h|0))continue;break}}if(!(t&1)|J[w>>2]!=(f|0))break Q;J[695492]=0;c=g+52|0;aa(2815,c|0,g+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break N;t=0;J[695492]=0;aa(2815,n|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break P;break N}e=Z()|0;break I}if((f|0)!=(m|0))break P;J[695492]=0;da(2816,w|0,g+4|0);c= -J[695492];J[695492]=0;if((c|0)==1)break N}if(H[g+15|0]<0)qc(J[g+4>>2]);nz(q);break H}e=Z()|0;break M}e=Z()|0;if(H[g+15|0]>=0)break M;qc(J[g+4>>2])}nz(q)}if(H[g+35|0]>=0)break f;qc(J[g+24>>2]);break f}if(H[g+35|0]>=0)break E;qc(J[g+24>>2])}e=e+1|0;if((s|0)!=(e|0))continue;break}}J[695492]=0;da(2817,a|0,n|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;$(2747,J[g+76>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;if(H[g+51|0]<0)qc(J[g+40>>2]);if(H[g+63|0]>=0)break x;qc(J[g+52>>2])}if(H[g+ -75|0]>=0)break i;qc(J[g+64>>2])}u=u+1|0;if((y|0)!=(u|0))continue;break a}break}e=Z()|0;break f}e=Z()|0;qc(c)}if(H[g+51|0]>=0)break d;qc(J[g+40>>2]);break d}e=Z()|0}if(H[g+63|0]>=0)break b;qc(J[g+52>>2]);break b}e=Z()|0}if(H[g+75|0]<0)qc(J[g+64>>2]);ba(e|0);B()}bc=g+112|0}function XA(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0,M=0,N=0,Q=0;e=bc-144|0;bc=e;J[e+32>>2]=13;J[e+16>>2]=13;j=J[J[a+28>>2]+492>> -2];z=gc[J[J[j>>2]+12>>2]](j)|0;i=J[J[689612]+388>>2];c=J[j+16>>2];if(c)c=J[c+4>>2];else c=824933;s=($v(i,c)|0)!=0;c=J[a+8>>2];i=J[c>>2];a:{if(s){if(!(gc[J[i+32>>2]](c)|0))break a;a=J[a+8>>2];gc[J[J[a>>2]+268>>2]](a,J[b>>2]);break a}if(gc[J[i+12>>2]](c)|0){c=J[a+8>>2];gc[J[J[c>>2]+240>>2]](c,J[a+28>>2],b)}C=1;c=J[a+28>>2];i=J[c+592>>2];b:{if(i&1)break b;c=J[c+116>>2];s=gc[J[J[c>>2]+12>>2]](c)|0;c=J[a+28>>2];if((s|0)!=10)break b;s=J[a+8>>2];gc[J[J[s>>2]+64>>2]](s,c);c=Mv(J[a+28>>2]);J[a+28>>2]=c;J[c+ -592>>2]=(i^i>>>1)&1?5:7;i=J[a+8>>2];gc[J[J[i>>2]+168>>2]](i,c);c=J[a+28>>2];C=0}d=O[c+584>>3];o=O[c+512>>3]*0+d*O[c+528>>3];D=O[c+608>>3];l=O[c+504>>3]*0+d*O[c+520>>3];E=O[c+600>>3];c:{d:{if(J[j+20>>2]!=4)break d;c=J[a+8>>2];if(!(gc[J[J[c>>2]+24>>2]](c)|0))break d;F=J[a+108>>2];i=J[b>>2];if((i|0)>0){c=J[a+28>>2];d=O[c+496>>3];f=O[c+520>>3];g=O[c+24>>3];n=O[c+40>>3];p=O[c+528>>3];k=f*g+n*p;q=O[j+56>>3];m=O[j+40>>3];u=O[c+504>>3];t=u*g;g=O[c+512>>3];x=O[j+48>>3];n=m*(t+g*n)+x*k;t=O[j- -64>>3];k=d*(q* -n+k*t);n=n*d;y=O[c+16>>3];v=O[c+32>>3];f=f*y+v*p;g=m*(u*y+g*v)+x*f;m=O[c+568>>3];p=g*d*m;q=m*(d*(q*g+f*t));g=O[c+600>>3];f=O[c+608>>3];r=J[b+4>>2];while(1){s=gc[J[J[j>>2]+16>>2]](j,r,i,e+140|0,e+96|0,8,e+12|0,e+88|0,e+80|0,e+56|0,e+48|0)|0;c=J[a+28>>2];m=O[c+496>>3];d=O[e+88>>3]*m+O[c+552>>3];O[e+88>>3]=d;u=O[c+568>>3]*((s|0)!=1|K[r|0]!=32?d:d+O[c+560>>3]);O[e+88>>3]=u;x=m*O[e+80>>3];O[e+80>>3]=x;d=O[c+56>>3];v=O[c+40>>3];G=O[c+24>>3];m=O[c+48>>3];H=O[c+32>>3];I=O[c+520>>3];L=O[c+512>>3];M=O[c+528>> -3];t=O[c+16>>3];N=O[c+504>>3];h=J[a+8>>2];gc[J[J[h>>2]+64>>2]](h,c);z=J[a+28>>2];c=rc(672);J[695492]=0;h=ga(3389,c|0,z|0,1)|0;w=J[695492];J[695492]=0;e:{f:{g:{if((w|0)!=1){J[a+28>>2]=h;Q=t;t=l+g;y=o+f;m=m+(Q*t+y*H);O[h+16>>3]=p;v=d+(G*t+y*v);O[h+56>>3]=v;O[h+48>>3]=m;O[h+40>>3]=k;O[h+32>>3]=q;O[h+24>>3]=n;d=1E10;h:{if(!(p>1E10)){d=-1E10;if(!(p<-1E10))break h}O[h+16>>3]=d}d=1E10;i:{if(!(n>1E10)){d=-1E10;if(!(n<-1E10))break i}O[h+24>>3]=d}d=1E10;j:{if(!(q>1E10)){d=-1E10;if(!(q<-1E10))break j}O[h+32>> -3]=d}d=1E10;k:{if(!(k>1E10)){d=-1E10;if(!(k<-1E10))break k}O[h+40>>3]=d}d=1E10;l:{if(!(m>1E10)){d=-1E10;if(!(m<-1E10))break l}O[h+48>>3]=d}d=1E10;m:{if(!(v>1E10)){d=-1E10;if(!(v<-1E10))break m}O[h+56>>3]=d}c=J[a+8>>2];gc[J[J[c>>2]+76>>2]](c,J[a+28>>2],1,0,0,1,0,0);h=J[a+8>>2];c=J[a+28>>2];d=O[e+88>>3];m=O[e+80>>3];if(gc[J[J[h>>2]+256>>2]](h,c,t,y,O[c+16>>3]*d+m*O[c+32>>3],O[c+24>>3]*d+m*O[c+40>>3],J[e+140>>2],e+96|0,J[e+12>>2])|0)break e;c=e+32|0;h=J[((J[e+140>>2]<<2)+j|0)+164>>2];n:{if(!(!h|J[j+ -3512>>2]!=7)){Ce(J[j+3520>>2],h,c);break n}J[c>>2]=5}hf(c,J[a+4>>2],e+16|0,0);h=J[j+3528>>2]==7?J[j+3536>>2]:0;if(!h)break f;c=rc(112);w=J[a+20>>2];A=J[a+4>>2];J[695492]=0;w=ha(3390,c|0,A|0,h|0,w|0)|0;A=J[695492];J[695492]=0;if((A|0)!=1)break g}a=Z()|0;qc(c);ba(a|0);B()}J[a+20>>2]=w}o:{if(J[e+16>>2]==8){WA(a,e+32|0);break o}c=-1;w=J[a+108>>2];p:{if(!w)break p;w=J[w+4>>2];if(J[w+8>>2]==13)break p;c=J[w+16>>2];c=gc[J[J[c>>2]+52>>2]](c)|0}xc(1,c,824976,0)}c=J[a+8>>2];gc[J[J[c>>2]+260>>2]](c,J[a+28>> -2]);if(h){c=J[a+20>>2];h=J[c+104>>2];qc(sI(c));J[a+20>>2]=h}uc(e+16|0);uc(e+32|0)}c=J[a+28>>2];if(J[c+668>>2])while(1){c=Zl(c);J[a+28>>2]=c;h=J[a+8>>2];gc[J[J[h>>2]+68>>2]](h,c);c=J[a+28>>2];if(J[c+668>>2])continue;break}qc(Nq(c));J[a+28>>2]=z;c=J[a+8>>2];gc[J[J[c>>2]+68>>2]](c,z);c=J[a+28>>2];f=f+(L*u+x*M);O[c+608>>3]=f;g=g+(N*u+x*I);O[c+600>>3]=g;c=J[c+596>>2];O[c+16>>3]=f;O[c+8>>3]=g;J[c>>2]=1;r=r+s|0;i=i-s|0;if((i|0)>0)continue;break}}J[a+108>>2]=F;break c}c=J[a+8>>2];if(gc[J[J[c>>2]+12>>2]](c)| -0){h=J[b>>2];if((h|0)<=0)break c;i=J[b+4>>2];while(1){r=gc[J[J[j>>2]+16>>2]](j,i,h,e+140|0,e+96|0,8,e+12|0,e+88|0,e+80|0,e+56|0,e+48|0)|0;q:{if(z){c=J[a+28>>2];g=O[c+496>>3];d=g*O[e+88>>3];O[e+88>>3]=d;f=g*O[e+80>>3]+O[c+552>>3];O[e+80>>3]=f;if((r|0)!=1|K[i|0]!=32)break q;f=f+O[c+560>>3];O[e+80>>3]=f;break q}c=J[a+28>>2];g=O[c+496>>3];d=O[e+88>>3]*g+O[c+552>>3];O[e+88>>3]=d;d=(r|0)!=1|K[i|0]!=32?d:d+O[c+560>>3];k=O[c+568>>3];f=g*O[e+80>>3];O[e+80>>3]=f;d=k*d;O[e+88>>3]=d}k=O[c+520>>3];n=O[c+512>> -3];p=O[c+528>>3];q=O[c+504>>3];m=g*O[e+48>>3];O[e+48>>3]=m;g=g*O[e+56>>3];O[e+56>>3]=g;s=J[a+8>>2];u=q*d+f*k;d=n*d+f*p;gc[J[J[s>>2]+248>>2]](s,c,l+O[c+600>>3],o+O[c+608>>3],u,d,q*g+k*m,n*g+p*m,J[e+140>>2],r,e+96|0,J[e+12>>2]);c=J[a+28>>2];O[c+600>>3]=O[c+600>>3]+u;O[c+608>>3]=O[c+608>>3]+d;i=i+r|0;h=h-r|0;if((h|0)>0)continue;break}break c}J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;i=J[b>>2];if((i|0)<=0)d=0;else{c=J[b+4>>2];while(1){s=gc[J[J[j>>2]+16>>2]](j,c,i,e+140|0,e+96|0,8,e+12|0,e+72| -0,e- -64|0,e+56|0,e+48|0)|0;f=O[e+72>>3]+O[e+88>>3];O[e+88>>3]=f;g=O[e+64>>3]+O[e+80>>3];O[e+80>>3]=g;r=(s|0)==1?(K[c|0]==32)+r|0:r;c=c+s|0;h=h+1|0;i=i-s|0;if((i|0)>0)continue;break}k=+(r|0);d=+(h|0)}c=J[a+28>>2];n=O[c+496>>3];r:{if(z){f=n*f;d=k*O[c+560>>3]+(g*n+O[c+552>>3]*d);break r}f=(k*O[c+560>>3]+(f*n+O[c+552>>3]*d))*O[c+568>>3];d=n*g}O[e+88>>3]=f;O[e+80>>3]=d;k=O[c+520>>3];g=O[c+512>>3];n=O[c+528>>3];p=O[c+504>>3];j=J[a+8>>2];gc[J[J[j>>2]+252>>2]](j,c,b);c=J[a+28>>2];O[c+600>>3]=O[c+600>>3]+ -(p*f+d*k);O[c+608>>3]=O[c+608>>3]+(g*f+d*n)}c=J[a+8>>2];if(gc[J[J[c>>2]+12>>2]](c)|0){c=J[a+8>>2];gc[J[J[c>>2]+244>>2]](c,J[a+28>>2])}if(!C){c=J[a+8>>2];gc[J[J[c>>2]+192>>2]](c,J[a+28>>2]);c=J[a+8>>2];gc[J[J[c>>2]+264>>2]](c,J[a+28>>2]);c=J[a+28>>2];f=O[c+512>>3];n=O[c+528>>3];m=O[c+600>>3];q=O[c+608>>3];g=O[c+504>>3];k=O[c+496>>3];p=O[c+520>>3];d=R(g*k+p*0);O[e+72>>3]=d;g=R(g*0+k*p);O[e+88>>3]=g;p=D+o;o=o+q;j=p>o;q=l+E;l=l+m;i=q>l;if(d>g){O[e+88>>3]=d;g=d}d=R(f*k+n*0);O[e+64>>3]=d;f=R(f*0+k*n);O[e+ -80>>3]=f;u=g+g;k=(i?l:q)-u;if(d>f){O[e+80>>3]=d;f=d}d=f+f;g=(j?o:p)-d;m=d+(j?p:o);n=O[c+56>>3];o=O[c+24>>3];l=u+(i?q:l);q=o*l;u=O[c+40>>3];f=u*g;d=n+(q+f);x=o*k;f=n+(x+f);p=O[c+48>>3];t=O[c+16>>3];y=t*l;v=O[c+32>>3];l=v*g;o=p+(y+l);t=t*k;l=p+(t+l);s:{if(of)){l=f;d=f;break t}l=f}f=q;q=u*m;f=n+(f+q);m=v*m;g=p+(y+m);u:{v:{if(k>g){k=g;break v}if(g>o)break u}g=o}w:{x:{if(ff)break A}d=f}if(O[c+632>>3]>3]=k;if(O[c+640>>3]>3]=l;if(O[c+648>>3]>o)O[c+648>>3]=o;if(O[c+656>>3]>d)O[c+656>>3]=d;c=J[a+28>>2];J[c+592>>2]=0;j=J[a+8>>2];gc[J[J[j>>2]+168>>2]](j,c);j=bc-16|0;bc=j;c=J[a+8>>2];C:{if(!(gc[J[J[c>>2]+28>>2]](c)|0))break C;c=J[J[a+28>>2]+380>>2];if(!c)break C;i=-1;D:{E:{F:{h=J[c+4>>2];switch(h-1|0){case 1:break E;case 0:break F;default:break D}}rI(a,c,0,0,1);break C}qI(a, -c,0,0,1);break C}r=J[a+108>>2];G:{if(!r)break G;r=J[r+4>>2];if(J[r+8>>2]==13)break G;i=J[r+16>>2];i=gc[J[J[i>>2]+52>>2]](i)|0;h=J[c+4>>2]}J[j>>2]=h;xc(1,i,821501,j)}bc=j+16|0;c=Zl(J[a+28>>2]);J[a+28>>2]=c;j=J[a+8>>2];gc[J[J[j>>2]+68>>2]](j,c);c=J[a+8>>2];gc[J[J[c>>2]+196>>2]](c,J[a+28>>2])}J[a+24>>2]=J[a+24>>2]+P(J[b>>2],10)}bc=e+144|0}function tWa(a,b,c,d,e,f,g,h,i,j,k,l,m,n){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;l=l|0;m=m|0;n=n|0;var 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,C=0,D=0,E=0,F=0;o=bc-224|0;bc=o;a:{b:{c:{d:{e:{if(K[a+220|0])break e;r=e<<2;c=P(r,f);if((c|0)<=0)break e;E=O[b+104>>3];h=Bn(c);if(!h)break e;y=o+192|0;c=y;J[c+12>>2]=0;J[c+16>>2]=0;J[c+4>>2]=1;J[c+8>>2]=8;J[c>>2]=349684;J[c+20>>2]=0;J[c+24>>2]=0;H[c+28|0]=0;J[o+48>>2]=e;J[o+176>>2]=f;J[695492]=0;J[o+40>>2]=0-r;nm(c,h,o+48|0,o+176|0,o+40|0,0);c=J[695492];J[695492]=0;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{if((c|0)!=1){J[695492]=0;c=$(4,36)|0;n=J[695492];J[695492]= -0;if((n|0)==1)break z;n=J[g+4>>2];s=J[g+8>>2];J[695492]=0;v=ma(3265,c|0,d|0,e|0,s|0,n|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break y;J[695492]=0;_(3266,v|0);c=J[695492];J[695492]=0;if((c|0)==1)break z;q=1;A:{if(!K[a+202|0])break A;q=0;if(K[a+203|0])break A;q=O[b+392>>3]}J[o+188>>2]=0;B:{C:{if(!((f|0)<=0|(e|0)<=0)){n=f;while(1){s=n-1|0;d=P(s,r);c=0;while(1){J[695492]=0;x=o+188|0;aa(3271,v|0,x|0)|0;z=J[695492];J[695492]=0;if((z|0)==1)break C;J[695492]=0;ia(3272,g|0,x|0,o+48|0,0);x=J[695492];J[695492]= -0;if((x|0)==1)break B;H[d+h|0]=P(J[o+56>>2],255)+32768>>>16;H[h+(d|1)|0]=P(J[o+52>>2],255)+32768>>>16;H[h+(d|2)|0]=P(J[o+48>>2],255)+32768>>>16;H[h+(d|3)|0]=255;d=d+4|0;c=c+1|0;if((e|0)!=(c|0))continue;break}c=(n|0)>1;n=s;if(c)continue;break}}qc(Yl(v));if((e|0)==(j|0)&(f|0)==(k|0))break n;if(!j|!f|(!e|!k))break o;J[695492]=0;d=$(4,36)|0;c=J[695492];J[695492]=0;if((c|0)==1)break x;c=J[l+4>>2];n=J[l+8>>2];J[695492]=0;c=ma(3265,d|0,i|0,j|0,n|0,c|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break w;i=P(j, -k);s=Bn(i);if(!s)break p;d=0;J[695492]=0;_(3266,c|0);n=J[695492];J[695492]=0;if((n|0)==1)break v;H[o+32|0]=0;if((i|0)>0)while(1){J[695492]=0;n=o+32|0;aa(3271,c|0,n|0)|0;v=J[695492];J[695492]=0;if((v|0)==1)break u;J[695492]=0;ia(3273,l|0,n|0,o+48|0,0);n=J[695492];J[695492]=0;if((n|0)==1)break t;H[d+s|0]=P(J[o+48>>2],255)+32768>>>16;d=d+1|0;if((i|0)!=(d|0))continue;break}qc(Yl(c));d=(f|0)>(k|0)?f:k;p=+(d|0);A=+(k|0)/p;l=(e|0)>(j|0)?e:j;w=+(l|0);u=+(j|0)/w;if((e|0)<(j|0)|(f|0)<(k|0))break r;if((f|0)> -0)break s;c=h;break q}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;qc(c);break a}a=Z()|0;break a}a=Z()|0;qc(d);break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}if((e|0)<=0){c=h;break q}x=h+7|0;z=e&-2;v=e&1;k=f;while(1){i=k-1|0;d=P(i,r);p=A*+(f-k|0);D:{if(R(p)<2147483648){c=~~p;break D}c=-2147483648}l=P(c,j)+s|0;c=0;n=0;if((e|0)!=1)while(1){C=h+(d|3)|0;p=u*+(c|0);E:{if(R(p)<2147483648){t=~~p;break E}t=-2147483648}p=q*+K[t+l|0];F:{if(p<4294967296&p>=0){t=~~p>>>0;break F}t= -0}H[C|0]=t;C=d+x|0;p=u*+(c|1);G:{if(R(p)<2147483648){t=~~p;break G}t=-2147483648}p=q*+K[t+l|0];H:{if(p<4294967296&p>=0){t=~~p>>>0;break H}t=0}H[C|0]=t;c=c+2|0;d=d+8|0;n=n+2|0;if((z|0)!=(n|0))continue;break}if(v){d=h+(d|3)|0;p=u*+(c|0);I:{if(R(p)<2147483648){c=~~p;break I}c=-2147483648}p=q*+K[c+l|0];J:{if(p<4294967296&p>=0){c=~~p>>>0;break J}c=0}H[d|0]=c}c=(k|0)>1;k=i;if(c)continue;break}c=h;break q}n=l<<2;c=Bn(P(n,d));if(!c){qc(h);qc(s);break f}J[o+48>>2]=l;J[o+176>>2]=d;J[695492]=0;J[o+40>>2]=0- -n;nm(y,c,o+48|0,o+176|0,o+40|0,0);i=J[695492];J[695492]=0;if((i|0)==1)break h;if(!((d|0)<=0|(l|0)<=0)){F=+(f|0)/p;w=+(e|0)/w;v=d-1|0;k=v;while(1){d=P(k,n);p=F*+(k|0);K:{if(R(p)<2147483648){i=~~p;break K}i=-2147483648}x=P(i,e);p=A*+(v-k|0);L:{if(R(p)<2147483648){i=~~p;break L}i=-2147483648}z=P(i,j)+s|0;i=0;while(1){t=c+d|0;p=+(i|0);D=w*p;M:{if(R(D)<2147483648){r=~~D;break M}r=-2147483648}r=(r+x<<2)+h|0;H[t|0]=K[r|0];H[(d|1)+c|0]=K[r+1|0];H[(d|2)+c|0]=K[r+2|0];t=(d|3)+c|0;p=u*p;N:{if(R(p)<2147483648){r= -~~p;break N}r=-2147483648}p=q*+K[r+z|0];O:{if(p<4294967296&p>=0){r=~~p>>>0;break O}r=0}H[t|0]=r;d=d+4|0;i=i+1|0;if((l|0)!=(i|0))continue;break}d=(k|0)>0;k=k-1|0;if(d)continue;break}}qc(h)}qc(s);break g}qc(Yl(c))}if(!(q<1))break m;d=P(e,f);if((d|0)<=0)break m;q=q*255;P:{if(q<4294967296&q>=0){c=~~q>>>0;break P}c=0}i=d<<2;d=3;while(1){H[d+h|0]=c;d=d+4|0;if((i|0)>(d|0))continue;break}break m}J[695492]=0;c=$(4,36)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;d=J[l+4>>2];j=J[l+8>>2];J[695492]=0;k=ma(3265, -c|0,i|0,e|0,j|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;_(3266,k|0);c=J[695492];J[695492]=0;if((c|0)==1)break j;H[o+176|0]=0;if(!((f|0)<=0|(e|0)<=0)){i=f;while(1){j=i-1|0;d=P(j,r);c=0;while(1){J[695492]=0;n=o+176|0;aa(3271,k|0,n|0)|0;s=J[695492];J[695492]=0;if((s|0)==1)break l;J[695492]=0;ia(3273,l|0,n|0,o+48|0,0);n=J[695492];J[695492]=0;if((n|0)==1)break k;s=h+(d|3)|0;u=q*+((P(J[o+48>>2],255)+32768>>>16&255)>>>0);Q:{if(u<4294967296&u>=0){n=~~u>>>0;break Q}n=0}H[s|0]=n;d=d+ -4|0;c=c+1|0;if((e|0)!=(c|0))continue;break}c=(i|0)>1;i=j;if(c)continue;break}}qc(Yl(k))}c=h;break g}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;qc(c);break a}a=Z()|0;break a}R:{if(!m)break R;j=J[g+8>>2];S:{if((j|0)<=0)break S;h=0;d=0;if(j>>>0>=4){l=j&-4;i=0;while(1){n=(o+48|0)+(d<<2)|0;q=O[(d<<3)+m>>3]*65536;T:{if(R(q)<2147483648){k=~~q;break T}k=-2147483648}J[n>>2]=k;k=d|1;n=(o+48|0)+(k<<2)|0;q=O[(k<<3)+m>>3]*65536;U:{if(R(q)<2147483648){k=~~q;break U}k=-2147483648}J[n>>2]=k;k=d|2;n= -(o+48|0)+(k<<2)|0;q=O[(k<<3)+m>>3]*65536;V:{if(R(q)<2147483648){k=~~q;break V}k=-2147483648}J[n>>2]=k;k=d|3;n=(o+48|0)+(k<<2)|0;q=O[(k<<3)+m>>3]*65536;W:{if(R(q)<2147483648){k=~~q;break W}k=-2147483648}J[n>>2]=k;d=d+4|0;i=i+4|0;if((l|0)!=(i|0))continue;break}}j=j&3;if(!j)break S;while(1){k=(o+48|0)+(d<<2)|0;q=O[(d<<3)+m>>3]*65536;X:{if(R(q)<2147483648){i=~~q;break X}i=-2147483648}J[k>>2]=i;d=d+1|0;h=h+1|0;if((j|0)!=(h|0))continue;break}}d=J[g>>2];g=J[J[d>>2]+20>>2];J[695492]=0;ia(g|0,d|0,o+48|0,o+ -176|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=P(e,f);if((d|0)<=0)break R;f=d<<2;g=P(J[o+176>>2],255)+32768>>>16&255;u=+(g>>>0);h=P(J[o+180>>2],255)+32768>>>16&255;A=+(h>>>0);i=P(J[o+184>>2],255)+32768>>>16&255;p=+(i>>>0);d=0;while(1){e=K[(d|3)+c|0];Y:{if(!e){H[c+d|0]=255;H[(d|1)+c|0]=255;H[(d|2)+c|0]=255;break Y}j=c+d|0;q=255/+(e>>>0);w=+(K[j|0]-i|0)*q+p;Z:{if(R(w)<2147483648){e=~~w;break Z}e=-2147483648}e=(e|0)>=255?255:e;H[j|0]=(e|0)>0?e:0;j=(d|1)+c|0;w=+(K[j|0]-h|0)*q+A;_:{if(R(w)<2147483648){e= -~~w;break _}e=-2147483648}e=(e|0)>=255?255:e;H[j|0]=(e|0)>0?e:0;j=(d|2)+c|0;q=+(K[j|0]-g|0)*q+u;$:{if(R(q)<2147483648){e=~~q;break $}e=-2147483648}e=(e|0)>=255?255:e;H[j|0]=(e|0)>0?e:0}d=d+4|0;if((f|0)>(d|0))continue;break}}O[o+48>>3]=O[b+16>>3];O[o+56>>3]=-O[b+24>>3];q=O[b+32>>3];O[o+64>>3]=-q;u=O[b+40>>3];O[o+72>>3]=u;O[o+80>>3]=q+O[b+48>>3];O[o+88>>3]=E-(u+O[b+56>>3]);J[o+176>>2]=0;J[o+180>>2]=0;J[695492]=0;J[o+40>>2]=0;J[o+44>>2]=0;la(3257,a|0,o+48|0,o+176|0,o+40|0,1);b=J[695492];J[695492]=0; -if((b|0)==1)break d;a=J[a+104>>2];O[o+32>>3]=O[o+176>>3]+0;O[o+24>>3]=O[o+40>>3]+0;J[o+16>>2]=1049880894;J[o+20>>2]=1071027177;J[o+8>>2]=1049880894;J[o+12>>2]=1071027177;b=J[J[a>>2]+376>>2];J[695492]=0;ja(b|0,a|0,y|0,o+32|0,o+24|0,o+16|0,o+8|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c}ji(y)}bc=o+224|0;return}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0}ji(y);ba(a|0);B()}function EN(a,b){var c=0,d=0,e=0,f=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:switch(b|0){case 1:b=J[a+8>>2];e=12-b|0;k:{if((e|0)<=0){d=J[a+ -28>>2];break k}d=J[a+28>>2];c=J[a>>2];while(1){J[a+8>>2]=0;b=c<>2]=b;l:{m:{if((d|0)!=255){if(b&134217728){c=d+1|0;J[a+28>>2]=c;if((c|0)==255){J[a>>2]=b&134217727;b=J[a+24>>2];c=J[b+8>>2];n:{o:{if(c&7)break o;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break o}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break n}if((Uc(b,255)|0)!=-1)break n}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>> -2];d=b>>>20&255;J[a+28>>2]=d;c=b&1048575;break m}p:{if((d|0)<-1)break p;b=J[a+24>>2];d=J[b+8>>2];q:{if(d&7)break q;f=J[b+64>>2];if(!((f|0)<0|(f|0)>J[b+60>>2])){J[b+8>>2]=d|4;break q}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break p}if((Uc(b,c&255)|0)!=-1)break p}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];d=b>>>19&255;J[a+28>>2]=d;c=b&524287;b=8;break l}r:{if((d|0)<0)break r;b=J[a+24>>2];c=J[b+8>>2]; -s:{if(c&7)break s;f=J[b+64>>2];if(!((f|0)<0|(f|0)>J[b+60>>2])){J[b+8>>2]=c|4;break s}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break r}if((Uc(b,d&255)|0)!=-1)break r}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];d=b>>>19&255;J[a+28>>2]=d;c=b&524287;b=8;break l}b=J[a+24>>2];c=J[b+8>>2];t:{u:{if(c&7)break u;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break u}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>> -2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break t}if((Uc(b,255)|0)!=-1)break t}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];d=b>>>20&255;J[a+28>>2]=d;c=b&1048575}b=7}J[a+8>>2]=b;J[a>>2]=c;e=e-b|0;if((e|0)>0)continue;break}}if((d|0)==255)break c;b=J[a>>2];if(b&134217728){c=d+1|0;J[a+28>>2]=c;if((c|0)==255){J[a>>2]=b&134217727;b=J[a+24>>2];c=J[b+8>>2];v:{if(c&7)break v;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break v}J[b+ -4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0)break i;if((Uc(b,255)|0)!=-1)break b}J[a+36>>2]=J[a+36>>2]|1;break b}if((d|0)<-1)break a;b=J[a+24>>2];d=J[b+8>>2];w:{if(d&7)break w;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break w}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0)break h;if((Uc(b,c&255)|0)!=-1)break a}J[a+36>>2]=J[a+36>>2]|1;break a}if((d|0)<0)break a;b=J[a+24>>2];c=J[b+8>>2];x:{if(c&7)break x;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+ -8>>2]=c|4;break x}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0)break g;if((Uc(b,d&255)|0)!=-1)break a}J[a+36>>2]=J[a+36>>2]|1;break a;case 0:break j;default:break e}c=J[a>>2];b=c|65535;b=(b>>>0>2]>>>0?b:b-32768|0)<>2];J[a>>2]=b;c=J[a+28>>2];y:{z:{if((c|0)!=255){if(b&134217728){d=c+1|0;J[a+28>>2]=d;if((d|0)==255){J[a>>2]=b&134217727;b=J[a+24>>2];c=J[b+8>>2];A:{B:{if(c&7)break B;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break B}J[b+4>>2]=J[b+4>>2]|32; -c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break A}if((Uc(b,255)|0)!=-1)break A}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];c=b>>>20&255;J[a+28>>2]=c;d=b&1048575;break z}C:{if((c|0)<-1)break C;b=J[a+24>>2];c=J[b+8>>2];D:{if(c&7)break D;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=c|4;break D}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b| -0]=d;break C}if((Uc(b,d&255)|0)!=-1)break C}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];c=b>>>19&255;J[a+28>>2]=c;d=b&524287;b=8;break y}E:{if((c|0)<0)break E;b=J[a+24>>2];d=J[b+8>>2];F:{if(d&7)break F;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break F}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break E}if((Uc(b,c&255)|0)!=-1)break E}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>> -2];c=b>>>19&255;J[a+28>>2]=c;d=b&524287;b=8;break y}b=J[a+24>>2];c=J[b+8>>2];G:{H:{if(c&7)break H;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break H}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break G}if((Uc(b,255)|0)!=-1)break G}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];c=b>>>20&255;J[a+28>>2]=c;d=b&1048575}b=7}J[a+8>>2]=b;b=d<>2]=b;I:{J:{if((c|0)!=255){if(b&134217728){c=c+1| -0;J[a+28>>2]=c;if((c|0)==255){J[a>>2]=b&134217726;b=J[a+24>>2];c=J[b+8>>2];K:{L:{if(c&7)break L;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break L}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break K}if((Uc(b,255)|0)!=-1)break K}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];c=J[a>>2];b=c>>>20&255;J[a+28>>2]=b;c=c&1048575;break J}b=J[a+24>>2];d=J[b+8>>2];M:{N:{if(d&7)break N;e=J[b+64>>2];if(!((e|0)< -0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break N}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break M}if((Uc(b,c)|0)!=-1)break M}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];c=J[a>>2];b=c>>>19&255;J[a+28>>2]=b;c=c&524287;d=8;break I}b=J[a+24>>2];d=J[b+8>>2];O:{P:{if(d&7)break P;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break P}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+ -60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break O}if((Uc(b,c)|0)!=-1)break O}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];c=J[a>>2];b=c>>>19&255;J[a+28>>2]=b;c=c&524287;d=8;break I}b=J[a+24>>2];c=J[b+8>>2];Q:{R:{if(c&7)break R;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break R}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break Q}if((Uc(b,255)|0)!=-1)break Q}J[a+36>>2]=J[a+36>>2]|1}J[a+32>> -2]=J[a+28>>2];c=J[a>>2];b=c>>>20&255;J[a+28>>2]=b;c=c&1048575}d=7}J[a+8>>2]=d;J[a>>2]=c;if((b|0)==255)break c;c=J[a+24>>2];d=J[c+8>>2];S:{if(d&7)break S;e=J[c+64>>2];if(!((e|0)<0|(e|0)>J[c+60>>2])){J[c+8>>2]=d|4;break S}J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;if((d|0)>0)break f;if((Uc(c,b)|0)!=-1)break d}J[a+36>>2]=J[a+36>>2]|1;break d}J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break b}J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break a}J[b+ -60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break a}J[c+60>>2]=J[c+60>>2]+1;d=c;c=J[c+24>>2];J[d+24>>2]=c+1;H[c|0]=b;break d}ra();B()}J[a+8>>2]=8;J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a>>2]=b&524287;J[a+28>>2]=b>>>19&255}return}J[a+8>>2]=7;J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a>>2]=b&1048575;J[a+28>>2]=b>>>20&255;return}J[a+8>>2]=8;J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a>>2]=b&524287;J[a+28>>2]=b>>>19&255}function sla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=bc-16|0;bc=a;e=K[b+11|0];a:{if((e<< -24>>24<0?J[b+4>>2]:e)>>>0<8)break a;if(J[zh(b,6)>>2]!=43)break a;if(J[zh(b,0)>>2]-65>>>0>25)break a;if(J[zh(b,1)>>2]-65>>>0>25)break a;if(J[zh(b,2)>>2]-65>>>0>25)break a;if(J[zh(b,3)>>2]-65>>>0>25)break a;if(J[zh(b,4)>>2]-65>>>0>25)break a;if(J[zh(b,5)>>2]-65>>>0>25)break a;Du(b,0,7)}e=rc(32);J[a+4>>2]=e;J[a+8>>2]=7;J[a+12>>2]=-2147483640;J[e+24>>2]=J[607680];f=J[607679];J[e+16>>2]=J[607678];J[e+20>>2]=f;f=J[607677];J[e+8>>2]=J[607676];J[e+12>>2]=f;f=J[607675];J[e>>2]=J[607674];J[e+4>>2]=f;J[e+28>> -2]=0;J[695492]=0;ga(6415,a|0,b|0,a+4|0)|0;e=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((e|0)!=1){if(H[a+15|0]<0)qc(J[a+4>>2]);e=rc(48);J[a+4>>2]=e;J[a+8>>2]=9;J[a+12>>2]=-2147483636;J[e+32>>2]=J[607690];f=J[607689];J[e+24>>2]=J[607688];J[e+28>>2]=f;f=J[607687];J[e+16>>2]=J[607686];J[e+20>>2]=f;f=J[607685];J[e+8>>2]=J[607684];J[e+12>>2]=f;f=J[607683];J[e>>2]=J[607682];J[e+4>>2]=f;J[e+36>>2]=0;J[695492]=0;ga(6415,a|0,b|0,a+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break q; -if(H[a+15|0]<0)qc(J[a+4>>2]);e=rc(64);J[a+4>>2]=e;J[a+8>>2]=14;J[a+12>>2]=-2147483632;f=J[607705];J[e+48>>2]=J[607704];J[e+52>>2]=f;f=J[607703];J[e+40>>2]=J[607702];J[e+44>>2]=f;f=J[607701];J[e+32>>2]=J[607700];J[e+36>>2]=f;f=J[607699];J[e+24>>2]=J[607698];J[e+28>>2]=f;f=J[607697];J[e+16>>2]=J[607696];J[e+20>>2]=f;f=J[607695];J[e+8>>2]=J[607694];J[e+12>>2]=f;f=J[607693];J[e>>2]=J[607692];J[e+4>>2]=f;J[e+56>>2]=0;J[695492]=0;ga(6415,a|0,b|0,a+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break p;if(H[a+ -15|0]<0)qc(J[a+4>>2]);e=rc(64);J[a+4>>2]=e;J[a+8>>2]=13;J[a+12>>2]=-2147483632;J[e+48>>2]=J[607719];f=J[607718];J[e+40>>2]=J[607717];J[e+44>>2]=f;f=J[607716];J[e+32>>2]=J[607715];J[e+36>>2]=f;f=J[607714];J[e+24>>2]=J[607713];J[e+28>>2]=f;f=J[607712];J[e+16>>2]=J[607711];J[e+20>>2]=f;f=J[607710];J[e+8>>2]=J[607709];J[e+12>>2]=f;f=J[607708];J[e>>2]=J[607707];J[e+4>>2]=f;J[e+52>>2]=0;J[695492]=0;ga(6415,a|0,b|0,a+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;if(H[a+15|0]<0)qc(J[a+4>>2]);e=rc(48); -J[a+4>>2]=e;J[a+8>>2]=8;J[a+12>>2]=-2147483636;f=J[607728];J[e+24>>2]=J[607727];J[e+28>>2]=f;f=J[607726];J[e+16>>2]=J[607725];J[e+20>>2]=f;f=J[607724];J[e+8>>2]=J[607723];J[e+12>>2]=f;f=J[607722];J[e>>2]=J[607721];J[e+4>>2]=f;J[e+32>>2]=0;J[695492]=0;ga(6415,a|0,b|0,a+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break n;if(H[a+15|0]<0)qc(J[a+4>>2]);e=rc(32);J[a+4>>2]=e;J[a+8>>2]=6;J[a+12>>2]=-2147483640;f=J[607735];J[e+16>>2]=J[607734];J[e+20>>2]=f;f=J[607733];J[e+8>>2]=J[607732];J[e+12>>2]=f;f=J[607731]; -J[e>>2]=J[607730];J[e+4>>2]=f;J[e+24>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break m;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e)H[c|0]=1;e=rc(32);J[a+4>>2]=e;J[a+8>>2]=4;J[a+12>>2]=-2147483640;f=J[607740];J[e+8>>2]=J[607739];J[e+12>>2]=f;f=J[607738];J[e>>2]=J[607737];J[e+4>>2]=f;J[e+16>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e)H[c|0]=1;e=rc(48);J[a+4>>2]=e;J[a+8>>2]=8;J[a+12>>2]=-2147483636; -f=J[607749];J[e+24>>2]=J[607748];J[e+28>>2]=f;f=J[607747];J[e+16>>2]=J[607746];J[e+20>>2]=f;f=J[607745];J[e+8>>2]=J[607744];J[e+12>>2]=f;f=J[607743];J[e>>2]=J[607742];J[e+4>>2]=f;J[e+32>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break k;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e)H[d|0]=1;e=rc(32);J[a+4>>2]=e;J[a+8>>2]=6;J[a+12>>2]=-2147483640;f=J[607756];J[e+16>>2]=J[607755];J[e+20>>2]=f;f=J[607754];J[e+8>>2]=J[607753];J[e+12>>2]=f;f=J[607752];J[e>>2]=J[607751];J[e+4>> -2]=f;J[e+24>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e)H[d|0]=1;e=rc(32);J[a+4>>2]=e;J[a+8>>2]=7;J[a+12>>2]=-2147483640;J[e+24>>2]=J[607764];f=J[607763];J[e+16>>2]=J[607762];J[e+20>>2]=f;f=J[607761];J[e+8>>2]=J[607760];J[e+12>>2]=f;f=J[607759];J[e>>2]=J[607758];J[e+4>>2]=f;J[e+28>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e)H[d|0]=1;e=rc(64); -J[a+4>>2]=e;J[a+8>>2]=12;J[a+12>>2]=-2147483632;f=J[607777];J[e+40>>2]=J[607776];J[e+44>>2]=f;f=J[607775];J[e+32>>2]=J[607774];J[e+36>>2]=f;f=J[607773];J[e+24>>2]=J[607772];J[e+28>>2]=f;f=J[607771];J[e+16>>2]=J[607770];J[e+20>>2]=f;f=J[607769];J[e+8>>2]=J[607768];J[e+12>>2]=f;f=J[607767];J[e>>2]=J[607766];J[e+4>>2]=f;J[e+48>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break h;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e){H[c|0]=1;H[d|0]=1}e=rc(48);J[a+4>>2]=e;J[a+8>>2]=10; -J[a+12>>2]=-2147483636;f=J[607788];J[e+32>>2]=J[607787];J[e+36>>2]=f;f=J[607786];J[e+24>>2]=J[607785];J[e+28>>2]=f;f=J[607784];J[e+16>>2]=J[607783];J[e+20>>2]=f;f=J[607782];J[e+8>>2]=J[607781];J[e+12>>2]=f;f=J[607780];J[e>>2]=J[607779];J[e+4>>2]=f;J[e+40>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e){H[c|0]=1;H[d|0]=1}e=rc(48);J[a+4>>2]=e;J[a+8>>2]=11;J[a+12>>2]=-2147483636;J[e+40>>2]=J[607800];f=J[607799];J[e+32>>2]=J[607798]; -J[e+36>>2]=f;f=J[607797];J[e+24>>2]=J[607796];J[e+28>>2]=f;f=J[607795];J[e+16>>2]=J[607794];J[e+20>>2]=f;f=J[607793];J[e+8>>2]=J[607792];J[e+12>>2]=f;f=J[607791];J[e>>2]=J[607790];J[e+4>>2]=f;J[e+44>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e){H[c|0]=1;H[d|0]=1}e=rc(48);J[a+4>>2]=e;J[a+8>>2]=11;J[a+12>>2]=-2147483636;J[e+40>>2]=J[607812];f=J[607811];J[e+32>>2]=J[607810];J[e+36>>2]=f;f=J[607809];J[e+24>>2]=J[607808];J[e+ -28>>2]=f;f=J[607807];J[e+16>>2]=J[607806];J[e+20>>2]=f;f=J[607805];J[e+8>>2]=J[607804];J[e+12>>2]=f;f=J[607803];J[e>>2]=J[607802];J[e+4>>2]=f;J[e+44>>2]=0;J[695492]=0;e=ga(6415,a|0,b|0,a+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;if(H[a+15|0]<0)qc(J[a+4>>2]);if(e){H[c|0]=1;H[d|0]=1}e=rc(64);J[a+4>>2]=e;J[a+8>>2]=12;J[a+12>>2]=-2147483632;f=J[607825];J[e+40>>2]=J[607824];J[e+44>>2]=f;f=J[607823];J[e+32>>2]=J[607822];J[e+36>>2]=f;f=J[607821];J[e+24>>2]=J[607820];J[e+28>>2]=f;f=J[607819];J[e+ -16>>2]=J[607818];J[e+20>>2]=f;f=J[607817];J[e+8>>2]=J[607816];J[e+12>>2]=f;f=J[607815];J[e>>2]=J[607814];J[e+4>>2]=f;J[e+48>>2]=0;J[695492]=0;b=ga(6415,a|0,b|0,a+4|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;if(H[a+15|0]<0)qc(J[a+4>>2]);if(b){H[c|0]=1;H[d|0]=1}bc=a+16|0;return}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15| -0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;qc(J[a+4>>2])}ba(b|0);B()}qc(J[a+4>>2]);ba(b|0);B()}function qL(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=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=0,ha=0,ia=0,ja=0,ka=0,la=0;o=bc-16|0;bc=o;p=J[a+736>>2];l=J[a+104>>2];m=J[l+28>>2];J[o+4>>2]=0;r=6;a:{if(!K[a+733|0]|!p)break a;b:{if(!e)break b;f=J[c+4>>2];r=0;if((e|0)!=1){i=e&-2;while(1){h=r<<3;g=h+d|0;k=f+h|0;J[g>>2]=J[k>>2]<<6;J[g+4>>2]=J[k+4>>2]<<6;h=h|8;g=h+d|0;h=f+h|0;J[g>>2]=J[h>>2]<<6;J[g+4>>2]=J[h+4>>2]<<6;r=r+2|0;x=x+2|0;if((i|0)!=(x| -0))continue;break}}if(!(e&1))break b;h=r<<3;i=h+d|0;f=f+h|0;J[i>>2]=J[f>>2]<<6;J[i+4>>2]=J[f+4>>2]<<6}r=0;if(M[p+68>>2]<=b>>>0)break a;f=J[p+72>>2];h=b<<2;i=b+1|0;if(J[f+h>>2]==J[f+(i<<2)>>2])break a;b=o+12|0;q=Sc(m,8,0,e,0,b);c:{if(J[o+12>>2])break c;s=Sc(m,8,0,e,0,b);if(J[o+12>>2])break c;r=Sc(m,1,0,e,0,b);if(J[o+12>>2])break c;f=J[p+72>>2];i=J[f+(i<<2)>>2];f=J[f+h>>2];h=nd(l,f);J[o+12>>2]=h;if(h)break c;f=i-f|0;h=Ue(l,f);J[o+12>>2]=h;if(h)break c;h=J[l>>2];i=J[l+32>>2];C=Sc(m,4,0,J[p>>2],0,b); -x=0;d:{e:{if(J[o+12>>2])break e;Q=Sc(m,4,0,J[p>>2],0,b);if(J[o+12>>2])break e;R=Sc(m,4,0,J[p>>2],0,b);if(J[o+12>>2])break e;b=mf(l);f:{g=mf(l);if(g>>>0<=f>>>0){b=b<<16>>16;V=b&4095;if(f>>>0>=V<<2>>>0)break f}J[o+12>>2]=8;break e}z=g+(i-h|0)|0;if((b|0)<0){h=J[l+32>>2];b=J[l>>2];f=J[l+36>>2];J[l+32>>2]=f-b>>>0>z>>>0?b+z|0:f;x=GC(l,J[p+76>>2],o+4|0);i=J[l+32>>2];f=J[l>>2];b=h-b|0;h=J[l+36>>2];J[l+32>>2]=b>>>0>>0?f+b|0:h;z=i-f|0}D=Sc(m,4,0,e,0,o+12|0);g:{if(J[o+12>>2])break g;E=Sc(m,4,0,e,0,o+12| -0);if(J[o+12>>2])break g;h:{if(!e)break h;f=J[c+4>>2];g=0;if((e|0)!=1){i=e&-2;b=0;while(1){h=g<<3;k=h+q|0;y=f+h|0;J[k>>2]=J[y>>2]<<16;J[k+4>>2]=J[y+4>>2]<<16;h=h|8;k=h+q|0;h=f+h|0;J[k>>2]=J[h>>2]<<16;J[k+4>>2]=J[h+4>>2]<<16;g=g+2|0;b=b+2|0;if((i|0)!=(b|0))continue;break}}if(!(e&1))break h;b=g<<3;h=b+q|0;b=b+f|0;J[h>>2]=J[b>>2]<<16;J[h+4>>2]=J[b+4>>2]<<16}if(V){fa=e&-4;Z=e&3;_=e-1|0;$=e-2|0;aa=e-3|0;S=e-4|0;b=0;while(1){ga=mf(l);i:{j:{k:{l:{m:{f=mf(l);h=f<<16>>16;n:{if((h|0)<0){g=0;if(!J[p>>2])break n; -while(1){ka=(g<<2)+C|0,la=mf(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;if(g>>>0>2])continue;break}break n}i=f&4095;if(i>>>0>=M[p+60>>2])break m;g=i;i=J[p>>2];tc(C,J[p+64>>2]+(P(g,i)<<2)|0,i<<2)}o:{if(!(f&16384))break o;g=0;if(!J[p>>2])break o;while(1){ka=(g<<2)+Q|0,la=mf(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;i=J[p>>2];if(g>>>0>>0)continue;break}g=0;if(!i)break o;while(1){ka=(g<<2)+R|0,la=mf(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;if(g>>>0>2])continue;break}}h=j4(p,h&65535,C,Q,R);if(!h)break i;ha=J[l+32>> -2];W=J[l>>2];i=J[l+36>>2];J[l+32>>2]=i-W>>>0>z>>>0?W+z|0:i;p:{if(f&8192){y=GC(l,J[p+76>>2],o+8|0);k=J[o+8>>2];b=y;break p}k=J[o+4>>2];J[o+8>>2]=k;y=b;b=x}f=k?k:e;F=tL(l,J[p+76>>2],f);G=tL(l,J[p+76>>2],f);f=b;if(!F|(!f|!G))break j;q:{if((f|0)!=-1){if(!e)break k;b=0;g=0;i=0;if(e>>>0>=4)break q;break l}g=0;if(!e)break j;while(1){b=g<<2;f=b+E|0;i=J[f>>2];k=b+D|0;j=J[k>>2];n=Pc(J[b+F>>2],h);b=Pc(J[b+G>>2],h);r:{if(g>>>0>>0){J[k>>2]=j+n;J[f>>2]=b+i;break r}if(!(K[a+740|0]&4|(g|0)!=(S|0))){J[k>>2]=j+ -n;break r}if(!(K[a+740|0]&2|(g|0)!=(aa|0))){J[k>>2]=j+n;break r}if(!(K[a+740|0]&32|(g|0)!=($|0))){J[f>>2]=b+i;break r}if(K[a+740|0]&16|(g|0)!=(_|0))break r;J[f>>2]=b+i}g=g+1|0;if((g|0)!=(e|0))continue;break}break j}while(1){H[g+r|0]=0;j=g<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|1;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|2;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|3;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+ -4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;g=g+4|0;i=i+4|0;if((fa|0)!=(i|0))continue;break}break l}J[o+12>>2]=8;break g}if(!Z)break k;while(1){H[g+r|0]=0;i=g<<3;j=i+s|0;i=i+q|0;n=J[i+4>>2];J[j>>2]=J[i>>2];J[j+4>>2]=n;g=g+1|0;b=b+1|0;if((Z|0)!=(b|0))continue;break}}g=0;if(k)while(1){b=L[f+(g<<1)>>1];if(b>>>0>>0){H[b+r|0]=1;b=(b<<3)+s|0;i=g<<2;ka=b,la=Pc(J[i+F>>2],h)+J[b>>2]|0,J[ka>>2]=la;ka=b,la=Pc(J[i+G>>2],h)+J[b+4>>2]|0,J[ka+4>>2]=la}g=g+1|0;if((k|0)!=(g|0))continue;break}k=0;T=0;if(L[c>>1]){X=s+4|0; -u=q+4|0;while(1){n=I[J[c+12>>2]+(T<<1)>>1];s:{if((n|0)<(k|0))break s;f=n+1|0;U=0;g=k;while(1){b=g+1|0;if(K[g+r|0]){h=g;t:{u:{v:{w:{f=g;ba=(n|0)>(f|0);if(ba){while(1){j=h;h=b;i=f;x:{if(!K[h+r|0])break x;i=h;if((f|0)>=(j|0))break x;b=f+1|0;t=J[q+(f<<3)>>2]>J[q+(h<<3)>>2];N=t?f:h;O=N<<3;i=J[O+s>>2];B=t?h:f;Y=B<<3;w=J[Y+s>>2];v=J[q+O>>2];t=J[q+Y>>2];if(!((v|0)==(t|0)&(i|0)!=(w|0))){ca=0;if((t|0)!=(v|0))ca=td(i-w|0,v-t|0);ia=i-v|0;ja=w-t|0;f=b;while(1){i=f;da=f<<3;f=J[q+da>>2];y:{if((f|0)<=(t|0)){A=f+ -ja|0;break y}A=f+ia|0;if((f|0)>=(v|0))break y;A=Pc(f-t|0,ca)+w|0}J[s+da>>2]=A;f=i+1|0;if((i|0)!=(j|0))continue;break}}i=J[u+Y>>2]>J[u+O>>2];t=(i?B:N)<<3;f=J[t+X>>2];i=(i?N:B)<<3;w=J[i+X>>2];v=J[t+u>>2];t=J[i+u>>2];if((v|0)==(t|0)){i=h;if((f|0)!=(w|0))break x}A=0;if((t|0)!=(v|0))A=td(f-w|0,v-t|0);N=f-v|0;O=w-t|0;while(1){f=b;B=f<<3;b=J[B+u>>2];z:{if((b|0)<=(t|0)){i=b+O|0;break z}i=b+N|0;if((b|0)>=(v|0))break z;i=Pc(b-t|0,A)+w|0}J[B+X>>2]=i;b=f+1|0;if((f|0)!=(j|0))continue;break}i=h}f=i;b=h+1|0;if((h| -0)<(n|0))continue;break}if((f|0)!=(g|0))break w}h=g<<3;i=h+q|0;f=J[i+4>>2];j=h+s|0;h=J[j+4>>2];j=J[j>>2];i=J[i>>2];if((j|0)==(i|0)&(f|0)==(h|0))break t;h=h-f|0;i=j-i|0;if((g|0)<=(k|0))break u;if(U&1){f=(k<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];k=k+1|0}if((U|0)!=1)break v;break u}d4(f+1|0,n,f,g,q,s);if((g|0)<=0)break t;d4(k,g-1|0,f,g,q,s);break t}while(1){f=(k<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];J[f+8>>2]=i+J[f+8>>2];J[f+12>>2]=h+J[f+12>>2];k=k+2|0;if((k|0)!=(g|0))continue;break}}if(!ba)break t; -while(1){g=g+1|0;f=(g<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];if((g|0)!=(n|0))continue;break}}k=b;break s}U=U+1|0;h=(g|0)==(n|0);g=b;if(!h)continue;break}k=f}T=T+1|0;if((T|0)>1])continue;break}}g=0;if(!e)break j;while(1){b=g<<3;f=b+s|0;h=b+q|0;b=J[f+4>>2]-J[h+4>>2]|0;f=J[f>>2]-J[h>>2]|0;k=g<<2;h=k+E|0;i=J[h>>2];k=k+D|0;j=J[k>>2];A:{if(g>>>0>>0){J[k>>2]=f+j;J[h>>2]=b+i;break A}if(!(K[a+740|0]&4|(g|0)!=(S|0))){J[k>>2]=f+j;break A}if(!(K[a+740|0]&2|(g|0)!=(aa|0))){J[k>>2]=f+j;break A}if(!(K[a+ -740|0]&32|(g|0)!=($|0))){J[h>>2]=b+i;break A}if(K[a+740|0]&16|(g|0)!=(_|0))break A;J[h>>2]=b+i}g=g+1|0;if((g|0)!=(e|0))continue;break}}b=-1;if((y|0)!=-1){if(y)gc[J[m+8>>2]](m,y);b=0}if(F)gc[J[m+8>>2]](m,F);if(G)gc[J[m+8>>2]](m,G);f=ha-W|0;h=J[l>>2];i=J[l+36>>2];J[l+32>>2]=f>>>0>>0?f+h|0:i}z=z+ga|0;ea=ea+1|0;if((ea|0)!=(V|0))continue;break}}if(!e)break g;b=J[c+4>>2];g=0;while(1){c=g<<3;a=c+d|0;f=g<<2;h=f+D|0;J[a>>2]=J[a>>2]+(J[h>>2]+512>>10);f=f+E|0;J[a+4>>2]=J[a+4>>2]+(J[f>>2]+512>>10);a=b+c| -0;J[a>>2]=J[a>>2]+(J[h>>2]+32768>>16);J[a+4>>2]=J[a+4>>2]+(J[f>>2]+32768>>16);g=g+1|0;if((g|0)!=(e|0))continue;break}}if(D)gc[J[m+8>>2]](m,D);if(E)gc[J[m+8>>2]](m,E);if((x|0)==-1)break d}if(x)gc[J[m+8>>2]](m,x)}if(C)gc[J[m+8>>2]](m,C);if(Q)gc[J[m+8>>2]](m,Q);if(R)gc[J[m+8>>2]](m,R);ne(l)}if(q)gc[J[m+8>>2]](m,q);if(s)gc[J[m+8>>2]](m,s);if(r)gc[J[m+8>>2]](m,r);r=J[o+12>>2]}bc=o+16|0;return r}function vya(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;h=bc-128|0;bc= -h;l=Qj(h+88|0,J[a>>2]+72|0);J[695492]=0;k=$(5069,l|0)|0;g=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{if((g|0)==1)break y;J[695492]=0;g=J[J[f+12>>2]+((k>>>0)%M[f+8>>2]<<2)>>2];j=J[695492];J[695492]=0;if((j|0)==1)break y;if(g)while(1){if((k|0)==J[g+12>>2]){J[695492]=0;j=aa(5066,g+16|0,l|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break o;if(j)break b}g=J[g+8>>2];if(g)continue;break}k=J[b>>2];J[695492]=0;g=aa(5268,f|0,l|0)|0;j=J[695492];J[695492]=0; -if((j|0)==1)break x;J[g+52>>2]=0;g=J[a>>2];J[695492]=0;j=g+148|0;i=J[j>>2];m=J[695492];J[695492]=0;if((m|0)==1)break w;if(!K[g+144|0]){J[695492]=0;a=ja(5018,h+36|0,2382727,2374155,164,2402264,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break w;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;g=Z()|0;Fc(a);break e}z:{if(!(i&16))break z;J[695492]=0;j=J[j>>2];i=J[695492];J[695492]=0;if((i|0)==1)break w;if(j&64)break z;J[695492]=0;_(5279,g|0);j=J[695492];J[695492]=0;if((j|0)==1)break w}J[695492]= -0;j=aa(5031,h+72|0,g+112|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break w;g=J[j+8>>2];if(g){i=d+1|0;while(1){J[695492]=0;oa(5340,g+8|0,b|0,c|0,i|0,e|0,f|0);m=J[695492];J[695492]=0;if((m|0)==1)break n;g=J[g>>2];if(g)continue;break}}f=J[a>>2];i=0;J[695492]=0;f=aa(4991,h+36|0,f+72|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break t;g=J[c+8>>2];A:{if(!g)break A;while(1){J[695492]=0;i=aa(5066,g+8|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break s;if(i)break A;g=J[g>>2];if(g)continue;break}}J[f+24>>2]=2381060; -J[f>>2]=2381028;c=J[f+28>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)gc[J[J[c>>2]+4>>2]](c);J[f+28>>2]=0}J[f+16>>2]=2381060;c=J[f+20>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)gc[J[J[c>>2]+4>>2]](c);J[f+20>>2]=0}sc(f+8|0);if(i)break c;c=J[a>>2];J[695492]=0;f=J[c+148>>2];c=J[695492];J[695492]=0;if((c|0)==1)break r;c=J[a>>2];if(!(f&16))break v;J[695492]=0;f=J[c+148>>2];c=J[695492];J[695492]=0;if((c|0)==1)break r;c=J[a>>2];if(f&128){g=J[c+36>>2];if(g)break u}J[695492]=0;c=J[c+148>>2];f=J[695492];J[695492]= -0;if((f|0)==1)break r;if(c&16)break p;break c}g=Z()|0;break e}g=Z()|0;break e}g=Z()|0;break e}g=J[c+36>>2];if(!g)break c}b=J[J[g>>2]+28>>2];J[695492]=0;b=$(b|0,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;if(!b)break c;b=J[J[k>>2]+16>>2];J[695492]=0;b=$(b|0,k|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;if(!b)break q;b=J[J[k>>2]+12>>2];J[695492]=0;ga(b|0,k|0,2378639,1)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break q;break f}g=Z()|0;$c(j);break e}g=Z()|0;ud(f);$c(j);break e}g=Z()|0;$c(j);break e}b= -J[J[a>>2]+36>>2];c=J[J[b>>2]+20>>2];J[695492]=0;ha(c|0,b|0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;a=J[J[a>>2]+36>>2];J[695492]=0;ga(5165,k|0,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c;break f}c=J[J[a>>2]+108>>2];J[695492]=0;f=h+32|0;da(5151,f|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break j;J[695492]=0;da(5108,h+28|0,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break k;J[695492]=0;c=J[h+28>>2];J[h+20>>2]=0;J[h+24>>2]=J[682146];f=ha(5109,c|0,h+20|0,0,0)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break l;if(!f)break m;while(1){J[695492]=0;f=h+20|0;g=ha(5109,c|0,f|0,0,0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break i;if(!g)break m;J[695492]=0;f=fd(f,2400208,-1);g=J[695492];J[695492]=0;if((g|0)==1)break i;B:{if(!f){if(J[e>>2]<(d|0))J[e>>2]=d;f=J[J[k>>2]+16>>2];J[695492]=0;f=$(f|0,k|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i;if(f){f=J[J[k>>2]+12>>2];J[695492]=0;ga(f|0,k|0,2378639,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i}J[695492]=0;J[h+124>>2]=0;aa(4985,h+124|0,c|0)| -0;f=J[695492];J[695492]=0;C:{if((f|0)!=1){J[695492]=0;ga(5165,k|0,J[h+124>>2],0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break C;f=J[h+124>>2];J[h+124>>2]=0;if(!f)break B;J[695492]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(g)break B;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a;break B}g=Z()|0;break h}g=Z()|0;vc(h+124|0);break h}J[695492]=0;f=h+20|0;g=fd(f,2404396,-1);i=J[695492];J[695492]=0;if((i|0)==1)break i;D:{if(!g)break D;J[695492]=0;g= -fd(f,2403764,-1);i=J[695492];J[695492]=0;if((i|0)==1)break i;if(!g)break D;J[695492]=0;f=fd(f,2400208,-1);g=J[695492];J[695492]=0;if((g|0)==1)break i;if(f)break B}if(J[e>>2]<(d|0))J[e>>2]=d;f=J[J[k>>2]+16>>2];J[695492]=0;f=$(f|0,k|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i;E:{if(!f)break E;J[695492]=0;f=fd(h+20|0,2403764,-1);g=J[695492];J[695492]=0;if((g|0)==1)break i;if(!f)break E;f=J[J[k>>2]+12>>2];J[695492]=0;ga(f|0,k|0,2378639,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i}J[695492]=0; -da(5108,h+16|0,b|0);f=J[695492];J[695492]=0;F:{G:{H:{I:{J:{if((f|0)!=1){f=J[h+20>>2];f=J[(f?f+12|0:2728584)>>2];J[695492]=0;g=J[h+16>>2];ca(5160,g|0,f|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break J;J[695492]=0;J[h+12>>2]=0;aa(4985,h+12|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break I;J[695492]=0;f=J[h+12>>2];J[h+124>>2]=0;aa(4985,h+124|0,g|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break H;J[695492]=0;ga(5165,J[h+124>>2],f|0,0)|0;f=J[695492];J[695492]=0;K:{if((f|0)!=1){f=J[h+124>>2];J[h+124>> -2]=0;if(!f)break K;J[695492]=0;i=J[f+4>>2]-1|0;J[f+4>>2]=i;m=J[695492];J[695492]=0;if((m|0)!=1){if(i)break K;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break K}break a}g=Z()|0;vc(h+124|0);break G}f=J[h+12>>2];J[h+12>>2]=0;L:{if(!f)break L;J[695492]=0;i=J[f+4>>2]-1|0;J[f+4>>2]=i;m=J[695492];J[695492]=0;if((m|0)==1)break a;if(i)break L;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}J[695492]=0;_(5162,g|0);f=J[695492];J[695492]=0;if((f|0)==1)break J;f=J[h+16>>2]; -J[h+16>>2]=0;if(!f)break B;J[695492]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)!=1){if(g)break B;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break B}break a}g=Z()|0;break h}g=Z()|0;break F}g=Z()|0;break F}g=Z()|0}vc(h+12|0)}vc(h+16|0);break h}J[695492]=0;_(5162,c|0);f=J[695492];J[695492]=0;if((f|0)!=1)continue;break}break i}g=Z()|0;break e}g=Z()|0;$c(j);break e}a=J[J[a>>2]+108>>2];J[695492]=0;da(5099,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break l;sc(h+20|0); -a=J[h+28>>2];J[h+28>>2]=0;M:{if(!a)break M;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break M;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[h+32>>2];J[h+32>>2]=0;if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break a}g=Z()|0;break h}g=Z()|0;break g}g=Z()|0;$c(j);break e}g=Z()|0}sc(h+20|0);vc(h+28|0)}vc(h+ -32|0);$c(j);break e}g=Z()|0;$c(j)}ud(l);ba(g|0)}B()}$c(j)}J[l+24>>2]=2381060;J[l>>2]=2381028;a=J[l+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[l+28>>2]=0}J[l+16>>2]=2381060;a=J[l+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[l+20>>2]=0}sc(l+8|0);bc=h+128|0;return}ea(0)|0;yc();B()}function IQa(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;g=bc-112|0;bc=g;J[g+88>>2]=13;J[g+72>>2]=13;a:{b:{c:{if(J[a+ -20>>2]==4)break c;d:{e:{f:{d=J[a+32>>2];if((d|0)>=0){J[g+100>>2]=J[a+36>>2];J[g+96>>2]=d;J[g+88>>2]=9;d=g+88|0;f=b;b=g+72|0;hf(d,f,b,0);if(J[g+72>>2]==8)break f;xc(1,-1,802680,0);uc(b);uc(d)}if(c)break e;c=1;break d}uc(g+72|0);uc(g+88|0);b=J[a+20>>2];g:{if(!c)break g;h:{i:switch(b-1|0){case 0:case 1:case 2:b=J[J[689612]+128>>2];break h;case 4:case 5:b=J[J[689612]+132>>2];break h;case 7:case 8:b=J[J[689612]+136>>2];break h;case 9:case 10:break i;default:break g}b=J[J[689612]+140>>2]}if(!b)break e; -b=J[a+20>>2]}d=rc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d+4>>2]=b;J[d>>2]=0;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;b=J[a+36>>2];J[d+8>>2]=J[a+32>>2];J[d+12>>2]=b;break c}c=0;if(!J[a+16>>2])break d;if(gc[J[J[a>>2]+8>>2]](a)|!J[J[689612]+144>>2])break d;d=rc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;b=J[a+16>>2];a=rc(8);J[695492]=0;c=aa(3183,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[d+16>>2]=c;break c}b=J[a+16>>2]; -j:{if(!b)break j;b=XY(J[689612],b);if(!b)break j;d=tZ(b,0,0,gc[J[J[a>>2]+8>>2]](a)|0);if(d)break c}b=gc[J[J[a>>2]+8>>2]](a)|0;k:{l:{m:{if(!c){if(b)break m;f=J[a+160>>2];if(!f)break m;d=rc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;b=rc(8);a=J[f+4>>2];J[695492]=0;c=aa(3182,b|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;J[d+16>>2]=c;break c}if(b)break m;d=J[a+160>>2];if(!d)break m;b=rc(8);d=J[d+4>>2];J[695492]=0;f=aa(3182,b|0,d|0)| -0;d=J[695492];J[695492]=0;n:{if((d|0)!=1){e=WY(J[689612],f,g+68|0,g+56|0);qc(Rc(f));if(!e)break m;q=O[g+56>>3];b=J[g+68>>2];f=cw(J[e+4>>2]);if(f>>>0>=9|!(375>>>f&1))break n;d=rc(48);J[d+40>>2]=-1;J[d+32>>2]=0;O[d+24>>3]=q;J[d+20>>2]=b;J[d+16>>2]=e;J[d>>2]=1;J[d+4>>2]=J[(f<<2)+2205692>>2];break c}break l}qc(Rc(e))}m=J[a+16>>2];o:{if(!m)break o;d=0;f=0;p:{p=J[J[689612]+60>>2];b=J[p>>2];if(J[b+8>>2]<=0)break p;while(1){l=J[J[b>>2]+(n<<2)>>2];f=d;b=0;h=bc-32|0;bc=h;j=J[m+4>>2];e=2;i=J[J[l>>2]+4>>2];d= -K[i|0];if(d)q:{while(1){k=K[j|0];if(!k)break q;e=e-1|0;if(!e)break q;if(!((d|0)==(k|0)|((d-65>>>0<26?d|32:d)|0)==((k-65>>>0<26?k|32:k)|0))){d=K[i|0];break q}j=j+1|0;d=K[i+1|0];i=i+1|0;if(d)continue;break}d=0}else d=0;r:{s:{t:{e=d-65>>>0<26?d|32:d;d=K[j|0];if(e-(d-65>>>0<26?d|32:d)|0)break t;b=rc(8);J[695492]=0;j=$(3184,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[m+4>>2];while(1){u:{e=K[b|0];d=e-32|0;if(!((1<>>0<=13:0)|(e|0)==95)){if(!e)break u;zd(j,((e-97&255)>>>0<26?e&223:e)<<24>> -24)}b=b+1|0;continue}break}e=J[l>>2];b=rc(8);J[695492]=0;i=$(3184,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break s;b=J[e+4>>2];while(1){e=K[b|0];d=e-32|0;if((1<>>0<=13:0)|(e|0)==95){b=b+1|0;continue}else{if(e){zd(i,((e-97&255)>>>0<26?e&223:e)<<24>>24);b=b+1|0;continue}if(!rg(j,i)){qc(Rc(j));qc(Rc(i));b=8;break t}k=YY(m);b=YY(J[l>>2]);if(!rg(k,b)){qc(Rc(j));qc(Rc(i));qc(Rc(k));qc(Rc(b));b=7;break t}SA(j,h+28|0,h+24|0);SA(i,h+20|0,h+16|0);e=rg(j,i);SA(k,h+12|0,h+8|0);SA(b,h+4|0,h);d=rg(k, -b);qc(Rc(j));qc(Rc(i));qc(Rc(k));qc(Rc(b));if(!(J[h+28>>2]!=J[h+20>>2]|e)){b=6;if(J[h+24>>2]==J[h+16>>2])break t}if(!(J[h+12>>2]!=J[h+4>>2]|d)){b=5;if(J[h+8>>2]==J[h>>2])break t}if(!e){b=4;if(J[h+24>>2]==J[h+16>>2])break t}if(!d){b=3;if(J[h+8>>2]==J[h>>2])break t}b=e?!d:2;break t}}}break s}bc=h+32|0;break r}a=Z()|0;qc(b);ba(a|0);B()}d=b>>>0>o>>>0?l:f;o=(b|0)>(o|0)?b:o;n=n+1|0;b=J[p>>2];if((n|0)>2])continue;break}f=0;if(!d)break p;b=J[d+4>>2];e=rc(8);J[695492]=0;b=aa(3183,e|0,b|0)|0;f=J[695492]; -J[695492]=0;if((f|0)!=1){J[g+108>>2]=J[d+8>>2];J[g+68>>2]=J[d+12>>2];f=b;break p}a=Z()|0;qc(e);break a}if(!f)break o;d=rc(48);J[d+24>>2]=0;J[d+28>>2]=0;J[d+40>>2]=-1;J[d+16>>2]=f;J[d>>2]=1;J[d+32>>2]=0;J[d+20>>2]=J[g+68>>2];b=gc[J[J[a>>2]+8>>2]](a)|0;e=J[g+108>>2];f=e&-2;v:{if(b){if((f|0)==2){J[d+4>>2]=10;break c}if((e|0)!=4)break v;w:switch(cw(J[J[d+16>>2]+4>>2])-4|0){case 3:J[d+4>>2]=9;break c;case 0:break w;default:break v}J[d+4>>2]=10;break c}if((f|0)==2){J[d+4>>2]=5;break c}if(e>>>0<=1){J[d+ -4>>2]=1;break c}if((e|0)!=4)break v;x:switch(cw(J[J[d+16>>2]+4>>2])-4|0){case 2:J[d+4>>2]=3;break c;case 0:break x;default:break v}J[d+4>>2]=6;break c}b=J[d+16>>2];if(b)qc(Rc(b));b=J[d+32>>2];if(b)qc(Rc(b));qc(d)}if(!(gc[J[J[a>>2]+8>>2]](a)|0)){y:{if(c)break y;b=J[a+16>>2];if(!b)break y;z:{b=tk(J[J[689612]+116>>2],b);if(!b){b=0;break z}f=rc(8);J[695492]=0;b=aa(3183,f|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break z;a=Z()|0;qc(f);break a}if(!b)break y;d=rc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>> -2]=-1;J[d>>2]=2;J[d+4>>2]=1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=b;break c}d=J[a+24>>2];b=rc(8);J[695492]=0;e=d>>>6&1|d>>>17&2|(d&1?0:d&2?8:4);f=J[(e<<2)+2205472>>2];l=aa(3182,b|0,f|0)|0;d=J[695492];J[695492]=0;A:{if((d|0)!=1){if(c)break A;J[g+20>>2]=J[a+16>>2];J[g+16>>2]=f;xc(0,-1,803739,g+16|0);d=rc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=e;J[d>>2]=2;J[d+4>>2]=1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=l;break c}break l}d=0;b=WY(J[689612],l,g+68|0,g+56|0);qc(Rc(l));if(!b)break c; -b=tZ(b,J[g+68>>2],O[g+56>>3],0);if(!b)break c;J[g+4>>2]=J[a+16>>2];J[g>>2]=f;xc(0,-1,803739,g);J[b+40>>2]=e;d=b;break c}B:{if(c)break B;C:{f=J[a+16>>2];if(!f)break C;e=J[689612];b=gc[J[J[a>>2]+12>>2]](a)|0;d=0;c=J[e+120>>2];D:{if(J[c+8>>2]>0)while(1){c=J[J[c>>2]+(d<<2)>>2];if(!rg(J[c>>2],f)&(b|0)==J[c+4>>2])break D;d=d+1|0;c=J[e+120>>2];if((d|0)>2])continue;break}c=0}if(!c)break C;d=rc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=7;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0; -b=J[c+8>>2];a=rc(8);J[695492]=0;f=aa(3183,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[d+16>>2]=f;b=J[c+12>>2];a=rc(8);J[695492]=0;f=aa(3183,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[d+32>>2]=f;J[d+36>>2]=J[c+4>>2];break c}e=J[689612];b=J[a+164>>2];if(b)d=J[b>>2];else d=0;f=gc[J[J[a>>2]+12>>2]](a)|0;c=0;b=J[e+124>>2];E:{if(J[b+8>>2]>0)while(1){b=J[J[b>>2]+(c<<2)>>2];if(!rg(J[b>>2],d)&(f|0)==J[b+4>>2])break E;c=c+1|0;b=J[e+124>>2];if((c|0)>2])continue;break}b=0}if(!b)break B; -c=J[b+8>>2];J[g+52>>2]=J[a+16>>2];J[g+48>>2]=c;xc(0,-1,804176,g+48|0);d=rc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=7;J[d+24>>2]=0;J[d+28>>2]=0;r=d,s=Qv(J[b+8>>2]),J[r+16>>2]=s;r=d,s=Qv(J[b+12>>2]),J[r+32>>2]=s;J[d+36>>2]=J[b+4>>2];break c}d=0;F:{c=J[J[689612]+52>>2];b=J[a+164>>2];if(b)b=J[b>>2];else b=0;b=tk(c,b);if(!b){b=0;break F}f=rc(8);J[695492]=0;b=aa(3183,f|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break F;a=Z()|0;qc(f);break a}if(!b)break c;c=cw(J[b+4>>2])-3|0;if(c>>> -0>=6|!(55>>>c&1))break k;d=rc(48);J[d+40>>2]=-1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=b;J[d>>2]=1;J[d+4>>2]=J[(c<<2)+2205668>>2];J[g+36>>2]=J[a+16>>2];J[g+32>>2]=b;xc(0,-1,804176,g+32|0);break c}a=Z()|0;qc(b);break a}qc(Rc(b))}bc=g+112|0;return d|0}b=Z()|0;qc(a);ba(b|0);B()}ba(a|0);B()}function Vlb(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;a:{h=J[a+12>>2];if(!h){c=rc(16);J[695492]=0;h=$(1627,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+12>>2]= -h}d=J[a>>2];g=bc-48|0;bc=g;c=J[h+12>>2];J[c+24>>2]=1E3;J[c+28>>2]=0;J[c+40>>2]=255;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=255;J[g+40>>2]=0;J[g+44>>2]=1072693248;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;mo(c+48|0,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g);J[c+128>>2]=0;J[c+132>>2]=0;f=c- -64|0;J[f>>2]=255;J[f+4>>2]=0;b:{if(H[c+63|0]<0){J[c+56>>2]=0;f=J[c+52>>2];break b}H[c+63|0]=0;f=c+52|0}J[f>>2]=0;J[c+88>>2]=0;J[c+ -80>>2]=0;J[c+84>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+140>>2]=J[c+136>>2];c=J[h+12>>2];J[c+392>>2]=1E3;J[c+396>>2]=0;J[c+400>>2]=0;J[c+404>>2]=255;J[c+408>>2]=255;J[c+412>>2]=0;J[g+40>>2]=0;J[g+44>>2]=1072693248;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;mo(c+416|0,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g); -J[c+496>>2]=0;J[c+500>>2]=0;J[c+432>>2]=255;J[c+436>>2]=0;c:{if(H[c+431|0]<0){J[c+424>>2]=0;f=J[c+420>>2];break c}H[c+431|0]=0;f=c+420|0}J[f>>2]=0;J[c+456>>2]=0;J[c+448>>2]=0;J[c+452>>2]=0;J[c+440>>2]=0;J[c+444>>2]=0;J[c+464>>2]=0;J[c+468>>2]=0;J[c+472>>2]=0;J[c+476>>2]=0;J[c+480>>2]=0;J[c+484>>2]=0;J[c+488>>2]=0;J[c+492>>2]=0;J[c+508>>2]=J[c+504>>2];c=J[h+12>>2];Xr(c+768|0,2427620,5);d:{if(H[c+767|0]<0){J[c+760>>2]=0;f=J[c+756>>2];break d}H[c+767|0]=0;f=c+756|0}J[f>>2]=0;I[c+800>>1]=0;J[c+792>>2]= -0;J[c+796>>2]=0;J[c+784>>2]=0;J[c+788>>2]=0;J[c+804>>2]=0;J[c+808>>2]=0;J[c+812>>2]=0;J[c+816>>2]=0;c=J[h+12>>2];Xr(c+848|0,2427620,5);e:{if(H[c+847|0]<0){J[c+840>>2]=0;f=J[c+836>>2];break e}H[c+847|0]=0;f=c+836|0}J[f>>2]=0;I[c+880>>1]=0;J[c+872>>2]=0;J[c+876>>2]=0;J[c+864>>2]=0;J[c+868>>2]=0;J[c+884>>2]=0;J[c+888>>2]=0;J[c+892>>2]=0;J[c+896>>2]=0;c=J[h+12>>2];f:{if(H[c+859|0]<0){J[c+852>>2]=0;c=J[c+848>>2];break f}H[c+859|0]=0;c=c+848|0}J[c>>2]=0;Ut(J[h+12>>2]+920|0);Ut(J[h+12>>2]+924|0);e=J[h+12>> -2];J[e+932>>2]=-1;H[e+928|0]=0;J[e+912>>2]=0;J[e+916>>2]=0;J[e+1144>>2]=0;J[e+396>>2]=-1;J[e+1140>>2]=J[e+1136>>2];if(!K[e+1276|0]){J[e+1124>>2]=e+384;c=e+752|0;J[e+960>>2]=c;J[e+1184>>2]=e+1216;J[e+1132>>2]=e+924;J[e+1128>>2]=e+920;J[e+1120>>2]=c;J[e+1116>>2]=e+16;f=gc[J[J[d>>2]+24>>2]](d)|0;c=J[h+12>>2];if(f>>>0<=2){e=c+1192|0;J[e>>2]=-1717986918;J[e+4>>2]=1069128089;J[c+936>>2]=J[(f<<2)+2427704>>2]}H[c+1276|0]=1;d=gc[J[J[d>>2]+20>>2]](d)|0;J[g+40>>2]=8;f=J[c+948>>2];if(f){gc[J[J[f>>2]+4>>2]](f); -J[c+948>>2]=0}j=c,k=gc[J[J[d>>2]+52>>2]](d)|0,J[j+948>>2]=k;f=_w();k=f,l=gc[J[J[d>>2]+24>>2]](d)|0,j=J[J[f>>2]+24>>2],gc[j](k|0,l|0);gc[J[J[f>>2]+20>>2]](f,g+40|0);c=J[c+948>>2];gc[J[J[c>>2]+68>>2]](c,f);e=J[h+12>>2]}J[e+1224>>2]=0;d=J[e+1216>>2];J[e+1220>>2]=d;i=J[e+1240>>2];g:{if(d){f=0;c=J[e+1228>>2];break g}J[e+1228>>2]=1E3;d=rc(1E3);J[e+1216>>2]=d;f=J[e+1224>>2];c=1E3}i=f+i|0;h:{if(c>>>0>i>>>0){c=d;break h}while(1){c=c<<1;if(i>>>0>=c>>>0)continue;break}J[e+1228>>2]=c;c=rc(c);f=tc(c,d,f);qc(d); -J[e+1216>>2]=f;f=J[e+1224>>2]}c=c+f|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[e+1224>>2]=J[e+1224>>2]+4;e=J[h+12>>2];i=J[e+1240>>2];d=J[e+1216>>2];if(d)c=J[e+1228>>2];else{J[e+1228>>2]=1E3;d=rc(1E3);J[e+1216>>2]=d;c=1E3}f=J[e+1224>>2];i=i+f|0;i:{if(c>>>0>i>>>0){c=d;break i}while(1){c=c<<1;if(i>>>0>=c>>>0)continue;break}J[e+1228>>2]=c;c=rc(c);f=tc(c,d,f);qc(d);J[e+1216>>2]=f;f=J[e+1224>>2]}c=c+f|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[e+1224>>2]=J[e+1224>>2]+4;e=J[h+12>>2];i=J[e+1240>>2]; -d=J[e+1216>>2];if(d)c=J[e+1228>>2];else{J[e+1228>>2]=1E3;d=rc(1E3);J[e+1216>>2]=d;c=1E3}f=J[e+1224>>2];i=i+f|0;j:{if(c>>>0>i>>>0){c=d;break j}while(1){c=c<<1;if(i>>>0>=c>>>0)continue;break}J[e+1228>>2]=c;c=rc(c);f=tc(c,d,f);qc(d);J[e+1216>>2]=f;f=J[e+1224>>2]}c=c+f|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[e+1224>>2]=J[e+1224>>2]+4;e=J[h+12>>2];i=J[e+1240>>2];d=J[e+1216>>2];if(d)c=J[e+1228>>2];else{J[e+1228>>2]=1E3;d=rc(1E3);J[e+1216>>2]=d;c=1E3}f=J[e+1224>>2];i=i+f|0;k:{if(c>>>0>i>>>0){c=d;break k}while(1){c= -c<<1;if(i>>>0>=c>>>0)continue;break}J[e+1228>>2]=c;c=rc(c);f=tc(c,d,f);qc(d);J[e+1216>>2]=f;f=J[e+1224>>2]}c=c+f|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[e+1224>>2]=J[e+1224>>2]+4;d=J[h+12>>2];e=J[d+1240>>2];f=J[d+1216>>2];if(f)c=J[d+1228>>2];else{J[d+1228>>2]=1E3;f=rc(1E3);J[d+1216>>2]=f;c=1E3}h=J[d+1224>>2];e=e+h|0;l:{if(c>>>0>e>>>0){c=f;break l}while(1){c=c<<1;if(e>>>0>=c>>>0)continue;break}J[d+1228>>2]=c;c=rc(c);e=tc(c,f,h);qc(f);J[d+1216>>2]=e;h=J[d+1224>>2]}c=c+h|0;H[c|0]=0;H[c+1|0]=0; -H[c+2|0]=0;H[c+3|0]=0;J[d+1224>>2]=J[d+1224>>2]+4;bc=g+48|0;c=J[a>>2];gc[J[J[c>>2]+44>>2]](c,J[a+12>>2],b,0);c=0;g=J[a+12>>2];d=J[g+12>>2];if(J[d+1068>>2]){$F(d+944|0);d=J[g+12>>2]}b=J[d+1216>>2];J[d+1220>>2]=b;a=d+1224|0;f=J[a>>2];J[a>>2]=0;e=J[d+1240>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=rc(1E3);J[d+1216>>2]=b;c=J[d+1224>>2];a=1E3}e=c+e|0;m:{if(a>>>0>e>>>0){a=b;break m}while(1){a=a<<1;if(e>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=rc(a);c=tc(a,b,c);qc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a= -a+c|0;H[a|0]=f;H[a+1|0]=f>>>8;H[a+2|0]=f>>>16;H[a+3|0]=f>>>24;J[d+1224>>2]=J[d+1224>>2]+4;d=J[g+12>>2];h=J[d+1240>>2];e=J[d+1200>>2];b=J[d+1216>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=rc(1E3);J[d+1216>>2]=b;a=1E3}c=J[d+1224>>2];h=h+c|0;n:{if(a>>>0>h>>>0){a=b;break n}while(1){a=a<<1;if(h>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=rc(a);c=tc(a,b,c);qc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;J[d+1224>>2]=J[d+1224>>2]+4;d=J[g+12>>2];h=J[d+ -1240>>2];e=J[d+1204>>2];b=J[d+1216>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=rc(1E3);J[d+1216>>2]=b;a=1E3}c=J[d+1224>>2];h=h+c|0;o:{if(a>>>0>h>>>0){a=b;break o}while(1){a=a<<1;if(h>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=rc(a);c=tc(a,b,c);qc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;J[d+1224>>2]=J[d+1224>>2]+4;d=J[g+12>>2];h=J[d+1240>>2];e=J[d+1208>>2];b=J[d+1216>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=rc(1E3);J[d+1216>>2]=b; -a=1E3}c=J[d+1224>>2];h=h+c|0;p:{if(a>>>0>h>>>0){a=b;break p}while(1){a=a<<1;if(h>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=rc(a);c=tc(a,b,c);qc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;J[d+1224>>2]=J[d+1224>>2]+4;d=J[g+12>>2];h=J[d+1240>>2];e=J[d+1212>>2];b=J[d+1216>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=rc(1E3);J[d+1216>>2]=b;a=1E3}c=J[d+1224>>2];h=h+c|0;q:{if(a>>>0>h>>>0){a=b;break q}while(1){a=a<<1;if(h>>>0>=a>>>0)continue;break}J[d+ -1228>>2]=a;a=rc(a);c=tc(a,b,c);qc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;J[d+1224>>2]=J[d+1224>>2]+4;a=J[g+12>>2];J[a+1224>>2]=f;b=a+1200|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1208|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1220>>2]=f+J[a+1216>>2];return J[J[g+12>>2]+1216>>2]}a=Z()|0;qc(c);ba(a|0);B()}function ufb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=bc-224|0;bc=f;n=1;j=J[b+540>>2];a:{if((d|0)<=0){c=0;break a}m= -d&3;b:{if(d>>>0<4){c=0;d=0;break b}o=d&-4;c=0;d=0;while(1){i=1;l=d<<3;g=J[l+e>>2]-1768386662|0;if(g){if((g|0)==13)k=1}else c=1;g=c;c=J[(l|8)+e>>2]-1768386662|0;if(c){if((c|0)==13)k=1;i=g}c=1;g=J[(l|16)+e>>2]-1768386662|0;if(g){if((g|0)==13)k=1;g=i}else g=1;i=J[(l|24)+e>>2]-1768386662|0;if(i){if((i|0)==13)k=1;c=g}d=d+4|0;p=p+4|0;if((o|0)!=(p|0))continue;break}}if(!m)break a;g=c;while(1){i=J[(d<<3)+e>>2]-1768386662|0;if(i){if((i|0)==13)k=1;c=g}else c=1;d=d+1|0;g=c;h=h+1|0;if((m|0)!=(h|0))continue;break}}c:{if(J[J[b+ -128>>2]+52>>2])break c;d=L[b+152>>1];if(d){g=J[b+156>>2];e=g+(d<<4)|0;d=g;while(1){if(J[d+12>>2]?J[d>>2]==1735162214:0)break c;d=d+16|0;if(e>>>0>d>>>0)continue;break}d=g;while(1){if(J[d+12>>2]?J[d>>2]==1128678944:0)break c;d=d+16|0;if(e>>>0>d>>>0)continue;break}while(1){if(J[g+12>>2]?J[g>>2]==1128678962:0)break c;g=g+16|0;if(e>>>0>g>>>0)continue;break}}n=0}d=1;e=gc[J[b+516>>2]](b,1935829368,a,0)|0;i=(e|0)!=0&n;d:{e:{f:{if(i)break f;h=J[j+68>>2];if(!h)break f;g=0;h=gc[h|0](b,a)|0;d=(h|0)!=0;if(!e)break f; -if(!h)break e}e=gc[J[j+24>>2]](b,a)|0;J[f>>2]=e;g=d;if(e)break d}d=gc[J[b+516>>2]](b,1128418371,a,0)|0;e=gc[J[b+516>>2]](b,1128416340,a,0)|0;if((L[b+178>>1]-16385&65535)>>>0<=49166){J[f>>2]=8;break d}d=i&((d|0)!=0&(e|0)!=0);gc[J[j+36>>2]](b,a)|0;gc[J[j+32>>2]](b,a)|0;gc[J[j+48>>2]](b,a)|0;h=gc[J[j+44>>2]](b,a)|0;g:{if(!g){e=d;break g}e=gc[J[j+28>>2]](b,a,0)|0;J[f>>2]=e;h:{i:{j:{if(!e){g=gc[J[j+92>>2]](b,a,0)|0;J[f>>2]=g;if((g&255)!=142)break i;J[f>>2]=147;e=J[J[b+128>>2]+52>>2];if(!e)break d;if(J[J[e>> -2]+8>>2])break j;break d}if((e&255)!=142)break d;e=0;if(J[b+148>>2]==1953658213)break h;J[f>>2]=143;e=J[J[b+128>>2]+52>>2];if(!e|!J[J[e>>2]+8>>2])break d}I[b+250>>1]=0;e=d;break h}e=d;if(g)break d}d=gc[J[j+28>>2]](b,a,1)|0;J[f>>2]=d;k:{l:{if(d)break l;d=gc[J[j+92>>2]](b,a,1)|0;J[f>>2]=d;if(d)break l;H[b+292|0]=1;break k}if((d&255)!=142)break d}d=gc[J[j+40>>2]](b,a)|0;J[f>>2]=d;if(!d)break g;I[b+372>>1]=65535}d=J[j+96>>2];if(d)gc[d|0](b,a)|0;d=J[j+112>>2];if(d){gc[d|0](b,a)|0;gc[J[j+116>>2]](b,a)| -0}gc[J[j+64>>2]](b,a)|0;gc[J[j+60>>2]](b,a)|0;gc[J[j+56>>2]](b,a)|0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+16>>2]=L[b+264>>1];a=b+24|0;d=b+20|0;m:{if(!(!(H[b+437|0]&1)|L[b+372>>1]==65535)){n:{if(!(c&255)){c=om(b,16,d);J[f>>2]=c;if(c)break d;if(J[d>>2])break n}c=om(b,1,d);J[f>>2]=c;if(c)break d}if(!(k&255)){c=om(b,17,a);J[f>>2]=c;if(c)break d}if(J[a>>2])break m;a=om(b,2,a);J[f>>2]=a;if(!a)break m;break d}g=om(b,21,d);J[f>>2]=g;if(g)break d;i=J[d>>2];if(!(i|c&255)){c=om(b,16,d);J[f>>2]=c;if(c)break d;i=J[d>> -2]}if(!i){c=om(b,1,d);J[f>>2]=c;if(c)break d}c=om(b,22,a);J[f>>2]=c;if(c)break d;d=J[a>>2];if(!(d|k&255)){c=om(b,17,a);J[f>>2]=c;if(c)break d;d=J[a>>2]}if(d)break m;a=om(b,2,a);J[f>>2]=a;if(a)break d}d=J[b+8>>2];a=e|(!J[b+872>>2]&(J[b+796>>2]&-2)!=2?d:d|16384);d=a|24;d=h?d:J[b+476>>2]==196608?d:a|536;a=J[b+488>>2]?d|4:d;a=K[b+292|0]?a|32:a;h=J[b+820>>2]?a|64:a;o:{if(!(H[b+740|0]&1))break o;a=L[b+152>>1];if(!a)break o;d=J[b+156>>2];a=d+(a<<4)|0;c=d;p:{while(1){q:{if(!(!J[c+12>>2]|J[c>>2]!=1735162214)){c= -d;while(1){if(J[c+12>>2]?J[c>>2]==1735811442:0)break q;c=c+16|0;if(a>>>0>c>>>0)continue;break}break p}c=c+16|0;if(a>>>0>c>>>0)continue;break p}break}h=h|256}while(1){if(!(J[d+12>>2]?J[d>>2]==1128678962:0)){d=d+16|0;if(a>>>0>d>>>0)continue;break o}break}h=h|256}J[b+8>>2]=h;r:{if(!(!e|L[b+372>>1]==65535)){a=L[b+436>>1];a=a>>>4&2|(a&513)!=0;break r}a=L[b+204>>1];a=(a<<1|(a&2)>>>1)&3}J[b+12>>2]=a|J[b+12>>2];c=J[b+508>>2];J[f+216>>2]=c;a=J[f+216>>2];s:{if(!a)break s;d=J[b+512>>2];if(d>>>0<4)break s;J[f+ -216>>2]=a+2;J[f+216>>2]=J[f+216>>2]+2;J[f+220>>2]=K[J[f+216>>2]-1|0]|K[J[f+216>>2]-2|0]<<8;if(!J[f+220>>2])break s;d=c+d|0;while(1){a=J[f+216>>2];if(d>>>0>>0)break s;J[f+216>>2]=a+2;a=K[J[f+216>>2]-2|0];e=K[J[f+216>>2]-1|0];J[f+216>>2]=J[f+216>>2]+2;I[f+212>>1]=e|a<<8;a=K[J[f+216>>2]-2|0];e=K[J[f+216>>2]-1|0];J[f+216>>2]=J[f+216>>2]+4;J[f+204>>2]=b;J[f+208>>2]=0;I[f+214>>1]=e|a<<8;a=K[J[f+216>>2]-1|0]|(K[J[f+216>>2]-3|0]<<16|K[J[f+216>>2]-4|0]<<24|K[J[f+216>>2]-2|0]<<8);if(!(!a|a>>>0>J[b+512>> -2]-2>>>0)){J[f+200>>2]=a+c;a=J[f+200>>2];J[f+196>>2]=K[a+1|0]|K[a|0]<<8;J[f+192>>2]=325680;t:{if(!J[J[f+192>>2]>>2])break t;while(1){J[f+188>>2]=J[J[f+192>>2]>>2];if(J[J[f+188>>2]+40>>2]==J[f+196>>2]){J[f+8>>2]=0;a=f+12|0;J[a+156>>2]=J[f+200>>2];J[a+160>>2]=d;J[a+164>>2]=0;J[a+168>>2]=0;J[f+184>>2]=L[b+264>>1];e=J[J[f+188>>2]+44>>2];J[695492]=0;a=aa(e|0,J[f+200>>2],a|0)|0;e=J[695492];J[695492]=0;u:{v:{if((e|0)!=1){J[f+8>>2]=a;break v}a=ea(2626124)|0;if((cc|0)!=(sa(2626124)|0))break u;na(a|0)|0;ta()}if(J[f+ -180>>2])break t;if(Ek(J[f+188>>2],J[f+200>>2],f+204|0,f+4|0))break t;J[J[f+4>>2]+20>>2]=J[f+8>>2];break t}ba(a|0);B()}J[f+192>>2]=J[f+192>>2]+4;if(J[J[f+192>>2]>>2])continue;break}}}J[f+220>>2]=J[f+220>>2]-1;if(J[f+220>>2])continue;break}}g=J[b+36>>2];w:{if((g|0)>0){h=J[b+40>>2];i=1;d=0;while(1){c=J[h+(d<<2)>>2];a=I[c+10>>1];e=325728;x:{y:{z:{A:switch(L[c+8>>1]){case 0:e=325740;break z;case 1:if(a)break y;e=325752;break z;case 2:break z;case 3:break A;default:break y}if(!(1151>>>a&1)|a>>>0>=11)break y; -e=J[(a<<2)+326632>>2]}a=J[e+8>>2];J[c+4>>2]=a;if((a|0)!=1937337698&(a|0)!=1970170211)break x;i=0;d=d+1|0;if((g|0)!=(d|0))continue;break w}J[c+4>>2]=0}d=d+1|0;if((g|0)!=(d|0))continue;break}if(!(i&1))break w}J[f+12>>2]=b;J[f+16>>2]=1970170211;J[f+20>>2]=65539;a=Ek(325152,0,f+12|0,0);J[f>>2]=a;B:{if(!a)break B;a=a&255;if((a|0)==163)break B;if((a|0)!=7)break d}J[f>>2]=0}a=J[b+800>>2];C:{if(!a)break C;e=J[J[b+104>>2]+28>>2];k=L[b+178>>1];if(!k|L[b+372>>1]==65535){k=1;c=1}else c=L[b+374>>1];q=b,r=Sc(e, -16,0,a,0,f),J[q+32>>2]=r;if(J[f>>2])break d;g=Sc(e,4,0,a,0,f);if(J[f>>2])break d;l=k>>>1|0;n=c<<16>>16;h=0;d=0;while(1){c=J[b+32>>2];i=gc[J[j+108>>2]](b,d,f+12|0)|0;J[f>>2]=i;D:{if(i)break D;c=c+(h<<4)|0;I[c>>1]=J[f+32>>2]>>>6;i=L[f+12>>1];J[c+8>>2]=i<<6;I[c+2>>1]=(l+P(i,n)|0)/(k|0);m=L[f+14>>1];o=m<<6;J[c+4>>2]=o;J[c+12>>2]=o;if(!i|!m)break D;J[g+(h<<2)>>2]=d;h=h+1|0}d=d+1|0;if((a|0)!=(d|0))continue;break}a=Sc(e,4,a,h,g,f);if(!h)break C;J[b+804>>2]=a;J[b+28>>2]=h;J[b+8>>2]=J[b+8>>2]|2}d=J[b+8>>2]; -if(!(d&3)){d=d|1;J[b+8>>2]=d}if(!(d&1))break d;I[b+68>>1]=L[b+178>>1];J[b+52>>2]=I[b+196>>1];J[b+56>>2]=I[b+198>>1];J[b+60>>2]=I[b+200>>1];J[b- -64>>2]=I[b+202>>1];d=L[b+372>>1]==65535;E:{if(!(d|!(K[b+436|0]&128))){a=L[b+442>>1];I[b+70>>1]=a;c=L[b+444>>1];I[b+72>>1]=c;I[b+74>>1]=L[b+446>>1]+(a-c|0);break E}a=L[b+220>>1];I[b+70>>1]=a;c=L[b+222>>1];I[b+72>>1]=c;I[b+74>>1]=L[b+224>>1]+(a-c|0);if(c|(a|d))break E;a=L[b+442>>1];c=L[b+444>>1];if(a|c){I[b+72>>1]=c;I[b+70>>1]=a;I[b+74>>1]=L[b+446>>1]+(a-c| -0);break E}a=L[b+448>>1];I[b+70>>1]=a;c=a;a=L[b+450>>1];I[b+74>>1]=c+a;I[b+72>>1]=0-a}I[b+76>>1]=L[b+226>>1];I[b+78>>1]=L[(K[b+292|0]?306:74)+b>>1];a=I[b+486>>1];I[b+82>>1]=a;I[b+80>>1]=L[b+484>>1]+((a|0)/-2|0)}bc=f+224|0;return J[f>>2]}function Pyb(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;m=bc-128|0;bc=m;f=zc(36);if(f){J[f>>2]=0;J[f+4>>2]=0;J[f+32>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;e=hE(a);a:{if(!e){hd(198113, -0);break a}d=199283;b:{if(J[e+8>>2]!=1783636E3)break b;d=200473;if(J[e+20>>2]!=218793738)break b;vh(e);e=hE(a);if(!e)break a;d=201023;if(J[e+8>>2]!=1718909296)break b;vh(e);c=hE(a);if(c)while(1){if(J[682644]>0){J[m+16>>2]=J[J[c+4>>2]+4>>2];hd(201790,m+16|0)}c:{d:{e:{f:{g:{h:{i:{e=J[c+8>>2];if((e|0)<=1668246641){if((e|0)==1651532643)break i;if((e|0)==1667523942)break h;if(J[f+16>>2]|(e|0)!=1668112752)break d;J[f+16>>2]=c;break c}if((e|0)<=1785737826){if((e|0)==1668246642)break f;if(J[f+8>>2]|(e|0)!= -1768449138)break d;J[f+8>>2]=c;break c}if((e|0)==1885564018)break g;if((e|0)==1785737827)break e;break d}if(J[f+12>>2])break d;J[f+12>>2]=c;break c}if(J[f+4>>2])break d;J[f+4>>2]=c;break c}if(J[f>>2])break d;J[f>>2]=c;break c}if(J[f+20>>2])break d;J[f+20>>2]=c;break c}vh(c);c=r9(a,b);J[f+24>>2]=c;if(!c){c=0;hd(203097,0);break a}a=J[f+8>>2];if(!a){c=0;hd(203538,0);break a}a=J[a+28>>2];if((a|0)!=J[c+16>>2]){hd(204082,0);c=J[f+24>>2];a=J[c+16>>2]}if(!a){c=0;hd(204406,0);break a}i=J[c+24>>2];b=J[i>>2]; -d=J[b+24>>2]&127;h=J[b+28>>2]<<7&128;c=1;j:{k:{l:{if((a|0)==1)break l;b=0;e=0;g=J[i+4>>2];n=J[g+28>>2]<<7&128|J[g+24>>2]&127;g=d|h;if((n|0)==(g|0)){while(1){c=c+1|0;if((c|0)==(a|0))break l;e=J[i+(c<<2)>>2];if((g|0)==(J[e+28>>2]<<7&128|J[e+24>>2]&127))continue;break}e=a>>>0<=c>>>0}c=J[f+8>>2];if(K[c+32|0]==255)break j;break k}e=1;b=1;c=J[f+8>>2];if(K[c+32|0]==(h|d-1))break j}hd(204812,0);c=J[f+8>>2];b=e}if(K[c+33|0]!=7){c=0;hd(205121,0);break a}a=J[f+12>>2];m:{if(!a)break m;if(J[a+20>>2]!=J[J[f+24>> -2]+16>>2])hd(204082,0);if(!b){a=J[f+24>>2];if(!J[a+16>>2])break m;c=0;while(1){b=J[J[a+24>>2]+(c<<2)>>2];d=J[b+28>>2]<<7&128|J[b+24>>2]&127;b=K[J[J[f+12>>2]+24>>2]+c|0];if((d|0)!=(b+1&127|b&128)){hd(204812,0);a=J[f+24>>2]}c=c+1|0;if(c>>>0>2])continue;break}break m}hd(205370,0)}b=J[f+20>>2];if(!b){c=0;hd(205574,0);break a}n:{o:{p:{q:switch(K[b+20|0]-1|0){case 0:c=J[f+24>>2];a=J[b+24>>2]-16|0;if(a>>>0<=2)a=J[(a<<2)+207924>>2];else a=16384;J[c+28>>2]=a;break p;case 1:break q;default:break p}a= -0;e=Fi(J[b+28>>2],J[b+32>>2]);r:{if(!e)break r;b=R9(e);if(!b)break r;If(e);a=b}if(!a)break o;O9(a,m+24|0);J[m>>2]=J[m+40>>2];hd(206177,m);c=J[f+24>>2];s:{t:{e=J[m+40>>2];if((e|0)!=1196573017){b=1024;if((e|0)==1380401696)break s;if((e|0)!=1497588338)break t;b=1280;break s}b=768;break s}b=16384}J[c+28>>2]=b;b=lE(a);J[J[f+24>>2]+32>>2]=b;if(!b)break n;ym(a)}c=J[f+16>>2];u:{v:{if(c){b=J[f>>2];if(b){e=J[c+20>>2];J[f+28>>2]=e;a=f+28|0;break v}hd(206910,0);vh(J[f+16>>2]);J[f+16>>2]=0}w:{if(J[f>>2]){b=0; -hd(207023,0);vh(J[f>>2]);J[f>>2]=0;c=J[f+16>>2];if(c)break w}e=J[J[f+24>>2]+16>>2];J[f+28>>2]=e;a=f+28|0;break u}e=J[c+20>>2];J[f+28>>2]=e;a=f+28|0}if(!e){e=0;break u}i=J[c+24>>2];d=J[J[f+24>>2]+16>>2];c=0;while(1){h=i+(c<<3)|0;if(d>>>0<=M[h>>2]){c=0;hd(207206,0);break a}if(K[h+5|0]>=K[b+24|0]){c=0;hd(207336,0);break a}c=c+1|0;if((e|0)!=(c|0))continue;break}}b=zc(e<<2);J[f+32>>2]=b;if(!b){c=0;hd(207418,0);break a}r=J[f+16>>2];x:{if(!r){if(!J[a>>2])break x;c=0;while(1){J[b+(c<<2)>>2]=c;c=c+1|0;if(c>>> -0>2])continue;break}break x}if(!J[r+20>>2])break x;o=J[f>>2];a=0;while(1){y:{z:{A:{e=J[r+24>>2]+(a<<3)|0;switch(K[e+4|0]){case 1:break z;case 0:break A;default:break y}}J[J[f+32>>2]+(a<<2)>>2]=a;break y}i=zc(J[o+20>>2]<<2);B:{if(!J[o+20>>2]){d=K[e+5|0];b=0;break B}d=K[e+5|0];h=J[o+28>>2]+(d<<2)|0;g=K[o+24|0];c=0;while(1){J[(c<<2)+i>>2]=J[h+(P(c,g)<<2)>>2];b=J[o+20>>2];c=c+1|0;if(b>>>0>c>>>0)continue;break}}c=J[f+24>>2];n=c;d=K[J[o+32>>2]+d|0];d=d+1&127|d&128;s=J[c+16>>2];p=0;h=bc-32|0;bc=h;c= -J[e>>2];e=J[J[n+24>>2]+(c<<2)>>2];J[h>>2]=J[e>>2];J[h+4>>2]=J[e+4>>2];J[h+8>>2]=J[e+8>>2];J[h+12>>2]=J[e+12>>2];J[h+16>>2]=J[e+16>>2];g=J[e+20>>2];J[h+28>>2]=d>>>7;J[h+24>>2]=d&127;J[h+20>>2]=g;C:{if(Qr(n,s,h))break C;if((c|0)>=(s|0)){c=c+1|0;e=J[J[n+24>>2]+(c<<2)>>2]}g=J[e+20>>2];if((g|0)>0){d=J[e+16>>2];if((d|0)<=0)break C;u=b-1|0;v=c<<2;while(1){q=0;if((d|0)>0){while(1){D:{E:{j=J[J[n+24>>2]+v>>2];if((Mg(J[j+32>>2],P(J[j+36>>2],P(J[j+16>>2],p)+q|0),0)|0)<0)break E;c=0;g=J[j+36>>2];if((g|0)>0)while(1){d= -J[j+32>>2];k=J[d+8>>2];if(k&7)break E;l=J[d+64>>2];if(!((l|0)<0|(l|0)>J[d+60>>2])){J[d+8>>2]=k|4;break E}k=J[d+28>>2];J[d+28>>2]=k-1;F:{if((k|0)>0){J[d+60>>2]=J[d+60>>2]+1;l=d;d=J[d+24>>2];J[l+24>>2]=d+1;d=K[d|0];break F}d=jd(d,1);if((d|0)==-1)break E}c=d&255|c<<8;d=(g|0)>1;g=g-1|0;if(d)continue;break}d=c;c=J[j+24>>2];g=1<>2])d=d-(g&0-(d>>>c-1&1))|0;if((d|0)<0)break E;c=(b|0)>(d|0)?d:u;break D}c=0}d=J[(c<<2)+i>>2];g=J[J[n+24>>2]+(s<<2)>>2];G:{if((Mg(J[g+32>>2],P(J[g+36>>2],P(J[g+ -16>>2],p)+q|0),0)|0)<0)break G;c=J[g+36>>2];if((c|0)<=0)break G;j=J[g+24>>2];j=d+(d>>31&(J[g+28>>2]?1<>2];k=J[d+8>>2];if(k&7)break G;l=J[g+36>>2];t=J[d+64>>2];if(!((t|0)<0|J[d+60>>2]<(t|0))){J[d+8>>2]=k|4;break G}k=j>>>(l<<3)-8|0;J[d+4>>2]=J[d+4>>2]|32;l=J[d+28>>2];J[d+28>>2]=l-1;H:{if((l|0)>0){J[d+60>>2]=J[d+60>>2]+1;l=d;d=J[d+24>>2];J[l+24>>2]=d+1;H[d|0]=k;break H}if((Uc(d,k&255)|0)==-1)break G}j=j<<8;d=(c|0)>1;c=c-1|0;if(d)continue;break}}d=J[e+16>>2];q=q+1| -0;if((d|0)>(q|0))continue;break}g=J[e+20>>2]}p=p+1|0;if((p|0)<(g|0))continue;break}}}bc=h+32|0;J[J[f+32>>2]+(a<<2)>>2]=s;qc(i)}a=a+1|0;if(a>>>0>2])continue;break}}b=J[f+24>>2];c=J[b+16>>2];I:{if(!c)break I;i=J[b+24>>2];d=0;a=0;if(c>>>0>=4){g=c&-4;e=0;while(1){h=a<<2;J[J[h+i>>2]+40>>2]=65536;J[J[i+(h|4)>>2]+40>>2]=65536;J[J[i+(h|8)>>2]+40>>2]=65536;J[J[i+(h|12)>>2]+40>>2]=65536;a=a+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}e=c&3;if(!e)break I;while(1){J[J[i+(a<<2)>>2]+40>>2]=65536;a=a+1| -0;d=d+1|0;if((e|0)!=(d|0))continue;break}}e=J[f+28>>2];i=J[f+4>>2];J:{if(i){if(!e)break J;d=J[f+32>>2];h=J[b+24>>2];g=J[b+28>>2];a=0;while(1){b=J[i+24>>2]+P(a,12)|0;w=J[h+(J[d+(J[b>>2]<<2)>>2]<<2)>>2],x=H9(g,J[b+4>>2],J[b+8>>2]),J[w+40>>2]=x;a=a+1|0;if((e|0)!=(a|0))continue;break}break J}if(!e)break J;i=J[f+32>>2];d=J[b+24>>2];b=J[b+28>>2];a=0;while(1){n=J[d+(J[i+(a<<2)>>2]<<2)>>2];a=a+1|0;w=n,x=H9(b,0,a),J[w+40>>2]=x;if((a|0)!=(e|0))continue;break}}K:{if(c){while(1){a=J[f+24>>2];c=c-1|0;if(J[J[J[a+ -24>>2]+(c<<2)>>2]+40>>2]==65536&J[a+16>>2]>(c|0)){b=J[J[a+24>>2]+(c<<2)>>2];e=J[b+32>>2];if(e)If(e);qc(b);b=J[a+16>>2];if((b|0)>(c|0)){e=J[a+24>>2]+(c<<2)|0;Zc(e,e+4|0,b+(c^-1)<<2);b=J[a+16>>2]}J[a+16>>2]=b-1;Au(a)}if(c)continue;break}c=J[f+24>>2];if(J[c+16>>2])break K}c=0;hd(204406,0);break a}J[f+24>>2]=0;break a}fa(205685,205884,294,207911);B()}fa(206300,205884,299,207911);B()}vh(c)}c=hE(a);if(c)continue;break}c=0;hd(202266,0);break a}hd(d,0);vh(e)}a=J[f+8>>2];if(a)vh(a);a=J[f+12>>2];if(a)vh(a); -a=J[f+4>>2];if(a)vh(a);a=J[f>>2];if(a)vh(a);a=J[f+24>>2];if(a)yh(a);a=J[f+16>>2];if(a)vh(a);a=J[f+20>>2];if(a)vh(a);a=J[f+32>>2];if(a)qc(a);qc(f)}bc=m+128|0;return c|0}function bU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=bc-112|0;bc=f;J[f+24>>2]=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{i=J[d+8>>2];if(i){m=e-1|0;while(1){d=f+100|0;_T(d,f+24|0,J[i+8>>2]);J[695492]=0;aa(5058,a|0,d|0)|0;g=J[695492];J[695492]=0;v:{w:{x:{y:{if((g|0)!=1){sc(d); -d=J[i+8>>2];J[f+44>>2]=0;J[f+48>>2]=J[682146];if((d|0)>=0){g=d<<1|1;d=0;while(1){J[695492]=0;aa(5145,f+44|0,32)|0;j=J[695492];J[695492]=0;if((j|0)==1)break y;j=(d|0)==(g|0);d=d+1|0;if(!j)continue;break}}if(!J[i+44>>2]){J[f+36>>2]=0;J[f+40>>2]=J[682146];d=J[i+24>>2];g=J[i+16>>2];j=J[i+20>>2];J[f>>2]=J[i+12>>2];J[f+8>>2]=j;J[695492]=0;J[f+4>>2]=m-g;J[f+12>>2]=m-d;ga(5180,f+36|0,2380049,f|0)|0;d=J[695492];J[695492]=0;z:{A:{B:{C:{D:{E:{F:{G:{if((d|0)!=1){j=J[i+28>>2];d=J[b>>2];H:{if(!d){n=0;break H}g= -J[i+32>>2];J[695492]=0;n=ga(5417,d|0,j|0,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break G}g=J[i+8>>2];J[f+28>>2]=0;d=J[682146];J[f+32>>2]=d;I:{if(g-1>>>0>6)break I;J:{K:switch(g-6|0){case 1:J[695492]=0;d=aa(4989,f+68|0,2387714)|0;g=J[695492];J[695492]=0;L:{M:{N:{O:{if((g|0)!=1){J[695492]=0;g=f+76|0;ca(5048,g|0,2379145,d|0);h=J[695492];J[695492]=0;if((h|0)==1)break O;J[695492]=0;h=f+84|0;ca(5121,h|0,g|0,2380404);g=J[695492];J[695492]=0;if((g|0)==1)break N;J[695492]=0;g=f+92|0;ca(5122,g|0,h|0,f+36| -0);h=J[695492];J[695492]=0;if((h|0)==1)break M;J[695492]=0;ca(5121,f+100|0,g|0,2380757);g=J[695492];J[695492]=0;if((g|0)==1)break L;g=J[f+100>>2];P:{if(g){h=J[J[g>>2]+28>>2];J[695492]=0;ca(h|0,f+60|0,g|0,1);g=J[695492];J[695492]=0;if((g|0)!=1)break P;a=Z()|0;break i}J[f+60>>2]=0}J[695492]=0;aa(4993,f+28|0,f+60|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){g=J[f+60>>2];J[f+60>>2]=0;if(!g)break J;J[695492]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;k=J[695492];J[695492]=0;if((k|0)!=1){if(h)break J;J[695492]=0;_(4987, -g|0);g=J[695492];J[695492]=0;if((g|0)!=1)break J}break c}a=Z()|0;vc(f+60|0);break i}a=Z()|0;break e}a=Z()|0;sc(d);break e}a=Z()|0;break f}a=Z()|0;break g}a=Z()|0;break h;case 0:J[695492]=0;J[f+56>>2]=d;J[f+52>>2]=0;d=f+52|0;aa(5145,d|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,d|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,d|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)== -1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)| -0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;aa(5145,f+52|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;J[695492]=0;g=f+60|0;ca(5121,g|0,d|0,2379145);d=J[695492];J[695492]=0;Q:{R:{S:{T:{if((d|0)!=1){J[695492]=0;d=f+76|0;ca(5121,d|0,g|0,2387363);g=J[695492];J[695492]=0;if((g|0)==1)break T;J[695492]=0;g=f+84|0;ca(5121,g|0,d|0,2380404); -d=J[695492];J[695492]=0;if((d|0)==1)break S;J[695492]=0;d=f+92|0;ca(5122,d|0,g|0,f+36|0);g=J[695492];J[695492]=0;if((g|0)==1)break R;J[695492]=0;ca(5121,f+100|0,d|0,2380757);d=J[695492];J[695492]=0;if((d|0)==1)break Q;d=J[f+100>>2];U:{if(d){g=J[J[d>>2]+28>>2];J[695492]=0;ca(g|0,f+108|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break U;a=Z()|0;break o}J[f+108>>2]=0}J[695492]=0;aa(4993,f+28|0,f+108|0)|0;d=J[695492];J[695492]=0;V:{if((d|0)!=1){d=J[f+108>>2];J[f+108>>2]=0;if(!d)break V;J[695492]=0;g= -J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break V;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break V}break c}a=Z()|0;vc(f+108|0);break o}d=J[f+28>>2];J[f+32>>2]=J[(d?d+12|0:2728584)>>2];sc(f+100|0);sc(f+92|0);sc(f+84|0);sc(f+76|0);sc(f+60|0);sc(f+52|0);break I}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n;default:break K}J[f+56>>2]=d;d=0;J[f+52>>2]=0;h=g<<1|1;while(1){J[695492]=0;k=f+52|0;aa(5145,k|0,32)|0;l=J[695492];J[695492]= -0;if((l|0)==1)break w;l=(d|0)==(h|0);d=d+1|0;if(!l)continue;break}J[695492]=0;d=f+60|0;ca(5121,d|0,k|0,2379145);h=J[695492];J[695492]=0;W:{X:{Y:{Z:{if((h|0)!=1){J[695492]=0;h=f+76|0;ca(5121,h|0,d|0,J[(g<<2)+2407040>>2]);d=J[695492];J[695492]=0;if((d|0)==1)break Z;J[695492]=0;d=f+84|0;ca(5121,d|0,h|0,2380404);g=J[695492];J[695492]=0;if((g|0)==1)break Y;J[695492]=0;g=f+92|0;ca(5122,g|0,d|0,f+36|0);d=J[695492];J[695492]=0;if((d|0)==1)break X;J[695492]=0;ca(5121,f+100|0,g|0,2381391);d=J[695492];J[695492]= -0;if((d|0)==1)break W;d=J[f+100>>2];_:{if(d){g=J[J[d>>2]+28>>2];J[695492]=0;ca(g|0,f+108|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break _;a=Z()|0;break u}J[f+108>>2]=0}J[695492]=0;aa(4993,f+28|0,f+108|0)|0;d=J[695492];J[695492]=0;$:{if((d|0)!=1){d=J[f+108>>2];J[f+108>>2]=0;if(!d)break $;J[695492]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break $;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break $}break c}a=Z()|0;vc(f+108|0);break u}d=J[f+28>>2];J[f+ -32>>2]=J[(d?d+12|0:2728584)>>2];sc(f+100|0);sc(f+92|0);sc(f+84|0);sc(f+76|0);sc(f+60|0);sc(f+52|0);break I}a=Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}g=J[f+28>>2];J[f+32>>2]=J[(g?g+12|0:2728584)>>2];sc(f+100|0);sc(f+92|0);sc(f+84|0);sc(f+76|0);sc(d)}J[695492]=0;d=f+28|0;aa(5058,a|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break F;sc(d);J[695492]=0;g=f+92|0;ia(5143,g|0,b|0,j|0,n-j|0);d=J[695492];J[695492]=0;if((d|0)==1)break E;J[695492]=0;d=f+100|0;ca(5428,d| -0,g|0,0);j=J[695492];J[695492]=0;if((j|0)==1)break D;J[695492]=0;aa(5058,a|0,d|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break C;sc(d);sc(g);g=J[i+8>>2];J[695492]=0;da(5429,d|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break A;J[695492]=0;aa(5058,a|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break z;sc(d);sc(f+36|0);break v}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break d}a=Z()|0;break B}a=Z()|0;sc(f+100|0)}sc(f+92|0);break d}a=Z()|0;break d}a=Z()|0;sc(f+100|0);break d}d=J[i+8>>2];J[695492]= -0;la(5430,a|0,b|0,d|0,i+36|0,e|0);d=J[695492];J[695492]=0;if((d|0)!=1)break v;a=Z()|0;break a}break b}a=Z()|0;break a}a=Z()|0;break j}a=Z()|0;break p}sc(f+44|0);i=J[i>>2];if(i)continue;break}}b=f+100|0;_T(b,f+24|0,c);J[695492]=0;aa(5058,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){sc(b);bc=f+112|0;return}break b}sc(f+100|0)}sc(f+92|0)}sc(f+84|0)}sc(f+76|0)}sc(f+60|0)}sc(f+52|0);break e}sc(f+100|0)}sc(f+92|0)}sc(f+84|0)}sc(f+76|0)}sc(f+60|0)}sc(f+52|0);break e}sc(f+100|0)}sc(f+92|0)}sc(f+84|0)}sc(f+ -76|0);sc(d)}sc(f+28|0)}sc(f+36|0);break a}ea(0)|0;yc();B()}a=Z()|0;sc(f+100|0);ba(a|0);B()}sc(f+44|0);ba(a|0);B()}function aR(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,N=0,O=0,P=0,Q=0,R=0;k=bc-336|0;bc=k;m=h;n=i&65535;o=d;p=e&65535;s=(e^i)&-2147483648;x=i>>>16&32767;u=e>>>16&32767;a:{b:{if(x-32767>>>0>4294934529&u-32767>>>0>=4294934530)break b;j=e&2147483647;if(!(!d&(j|0)==2147418112?!(b|c):j>>>0<2147418112)){r= -d;s=e|32768;break a}e=i&2147483647;if(!(!h&(e|0)==2147418112?!(f|g):e>>>0<2147418112)){r=h;s=i|32768;b=f;c=g;break a}if(!(b|d|(j^2147418112|c))){if(!(f|h|(e^2147418112|g))){b=0;c=0;s=2147450880;break a}s=s|2147418112;b=0;c=0;break a}if(!(f|h|(e^2147418112|g))){b=0;c=0;break a}if(!(b|d|(c|j))){b=!(f|h|(e|g));r=b?0:r;s=b?2147450880:s;b=0;c=0;break a}if(!(f|h|(e|g))){s=s|2147418112;b=0;c=0;break a}if((j|0)==65535|j>>>0<65535){d=!(o|p);i=d;j=d?b:o;d=d<<6;i=S(i?c:p);d=d+((i|0)==32?S(j)+32|0:i)|0;qi(k+ -320|0,b,c,o,p,d-15|0);q=16-d|0;o=J[k+328>>2];p=J[k+332>>2];c=J[k+324>>2];b=J[k+320>>2]}if(e>>>0>65535)break b;d=!(n|m);h=d;i=d?f:m;d=d<<6;h=S(h?g:n);d=d+((h|0)==32?S(i)+32|0:h)|0;qi(k+304|0,f,g,m,n,d-15|0);q=(d+q|0)-16|0;m=J[k+312>>2];n=J[k+316>>2];f=J[k+304>>2];g=J[k+308>>2]}e=n|65536;y=e;z=m;d=m;j=e<<15|d>>>17;e=d<<15|g>>>17;d=e;i=0-d|0;h=j;j=1963258675-(j+((d|0)!=0)|0)|0;ai(k+288|0,d,h,0,0,i,j,0,0);d=J[k+296>>2];ai(k+272|0,0-d|0,0-(J[k+300>>2]+((d|0)!=0)|0)|0,0,0,i,j,0,0);d=J[k+280>>2];i=d<<1| -J[k+276>>2]>>>31;d=J[k+284>>2]<<1|d>>>31;ai(k+256|0,i,d,0,0,e,h,0,0);j=J[k+264>>2];ai(k+240|0,i,d,0,0,0-j|0,0-(J[k+268>>2]+((j|0)!=0)|0)|0,0,0);i=J[k+248>>2];j=i<<1|J[k+244>>2]>>>31;d=J[k+252>>2]<<1|i>>>31;ai(k+224|0,j,d,0,0,e,h,0,0);i=J[k+232>>2];ai(k+208|0,j,d,0,0,0-i|0,0-(J[k+236>>2]+((i|0)!=0)|0)|0,0,0);d=J[k+216>>2];i=d<<1|J[k+212>>2]>>>31;d=J[k+220>>2]<<1|d>>>31;ai(k+192|0,i,d,0,0,e,h,0,0);j=J[k+200>>2];ai(k+176|0,i,d,0,0,0-j|0,0-(J[k+204>>2]+((j|0)!=0)|0)|0,0,0);i=e;e=J[k+184>>2];d=h;m=e<< -1|J[k+180>>2]>>>31;h=m-1|0;e=(J[k+188>>2]<<1|e>>>31)-!m|0;ai(k+160|0,i,d,0,0,h,e,0,0);d=h;ai(k+144|0,f<<15,g<<15|f>>>17,0,0,d,e,0,0);v=k+112|0;A=J[k+168>>2];h=J[k+172>>2];m=J[k+160>>2];i=J[k+152>>2];l=m+i|0;n=J[k+164>>2];j=n+J[k+156>>2]|0;j=i>>>0>l>>>0?j+1|0:j;i=j;j=(n|0)==(j|0)&l>>>0>>0|j>>>0>>0;n=j+A|0;j=j>>>0>n>>>0?h+1|0:h;m=!i&l>>>0>1|(i|0)!=0;h=n+m|0;j=m>>>0>h>>>0?j+1|0:j;ai(v,d,e,0,0,0-h|0,0-(((h|0)!=0)+j|0)|0,0,0);ai(k+128|0,1-l|0,0-((l>>>0>1)+i|0)|0,0,0,d,e,0,0);K=(u-x|0)+q|0;e=J[k+ -116>>2];u=e;d=J[k+112>>2];j=e<<1|d>>>31;i=d<<1;n=j;d=j;h=J[k+140>>2];w=h;e=J[k+136>>2];j=h<<1|e>>>31;l=e<<1|J[k+132>>2]>>>31;h=l+i|0;d=d+j|0;d=h>>>0>>0?d+1|0:d;e=d;d=d-(h>>>0<13927)|0;t=d;v=d;l=0;j=p|65536;L=j;N=o;d=o;j=j<<1|d>>>31;P=d<<1;Q=j;E=j;d=Dzb(t,l,j,0);j=fc;B=d;C=j;G=b<<1;d=c<<1|b>>>31;x=d;A=d;j=0;q=j;m=h-13927|0;t=(e|0)==(t|0)&m>>>0>>0|e>>>0>t>>>0;e=(e|0)==(n|0)&h>>>0>>0|e>>>0>>0;d=J[k+120>>2];h=J[k+124>>2]<<1|d>>>31;d=d<<1|u>>>31;l=w>>>31|0;d=l+d|0;j=h;j=d>>>0>>0?j+1|0:j; -h=d;d=d+e|0;j=h>>>0>d>>>0?j+1|0:j;e=d;d=d+t|0;l=e>>>0>d>>>0?j+1|0:j;e=d-1|0;D=l-!d|0;w=0;i=Dzb(A,q,D,w);d=i+B|0;h=fc+C|0;h=d>>>0>>0?h+1|0:h;n=(C|0)==(h|0)&d>>>0>>0|h>>>0>>0;B=e;O=c>>>31|0;F=O|o<<1;t=0;e=Dzb(e,0,F,t);o=e+d|0;j=fc+h|0;l=0;j=e>>>0>o>>>0?j+1|0:j;p=j;d=(j|0)==(h|0)&d>>>0>o>>>0|h>>>0>j>>>0;e=d;d=d+n|0;l=e>>>0>d>>>0?1:l;e=Dzb(E,q,D,w);d=e+d|0;j=fc+l|0;n=d;d=d>>>0>>0?j+1|0:j;e=Dzb(E,q,B,t);l=fc;h=e;e=Dzb(F,t,D,w);i=h+e|0;j=fc+l|0;j=e>>>0>i>>>0?j+1|0:j;e=j;j=(l|0)==(j|0)&h>>>0> -i>>>0|j>>>0>>0;l=n+e|0;d=d+j|0;d=l>>>0>>0?d+1|0:d;n=l;l=d;e=0;d=e+o|0;j=i+p|0;j=d>>>0>>0?j+1|0:j;e=j;h=(j|0)==(p|0)&d>>>0>>0|j>>>0

      >>0;j=l;i=h;h=h+n|0;j=i>>>0>h>>>0?j+1|0:j;u=h;l=j;o=d;C=m;d=Dzb(m,0,F,t);i=fc;h=d;m=Dzb(v,r,A,r);d=d+m|0;j=fc+i|0;j=d>>>0>>0?j+1|0:j;m=(i|0)==(j|0)&d>>>0>>0|i>>>0>j>>>0;h=j;H=G&-2;i=Dzb(B,t,H,0);p=i+d|0;j=fc+j|0;j=i>>>0>p>>>0?j+1|0:j;i=j;d=(j|0)==(h|0)&d>>>0>p>>>0|h>>>0>j>>>0;h=0;j=d+m|0;d=(j>>>0>>0?1:h)+e|0;n=j+o|0;d=n>>>0>>0?d+1|0:d;j=l;m=d; -d=(d|0)==(e|0)&n>>>0>>0|d>>>0>>0;e=d;d=d+u|0;j=e>>>0>d>>>0?j+1|0:j;R=d;u=j;d=Dzb(E,q,C,r);I=fc;E=d;e=Dzb(D,w,H,r);d=d+e|0;j=fc+I|0;j=d>>>0>>0?j+1|0:j;o=d;l=Dzb(v,r,F,t);e=d+l|0;h=j;d=j+fc|0;d=e>>>0>>0?d+1|0:d;q=e;j=Dzb(A,r,B,t);e=e+j|0;l=fc+d|0;l=e>>>0>>0?l+1|0:l;D=(d|0)==(l|0)&e>>>0>>0|d>>>0>l>>>0;j=(h|0)==(I|0)&o>>>0>>0|h>>>0>>0;d=(d|0)==(h|0)&o>>>0>q>>>0|d>>>0>>0;d=d+j|0;d=d+D|0;h=l;q=h+n|0;j=(d|w)+m|0;j=h>>>0>q>>>0?j+1|0:j;o=j;d=(m|0)==(j|0)&n>>>0>q>>>0|j>>>0>>0; -j=u;h=d;d=d+R|0;j=h>>>0>d>>>0?j+1|0:j;w=d;m=j;d=Dzb(v,r,H,r);v=fc;n=d;h=Dzb(A,r,C,r);d=d+h|0;j=fc+v|0;j=d>>>0>>0?j+1|0:j;u=0;h=(j|0)==(v|0)&d>>>0>>0|j>>>0>>0;n=j;d=j+p|0;j=(h|u)+i|0;j=d>>>0>>0?j+1|0:j;i=(i|0)==(j|0)&d>>>0

      >>0|i>>>0>j>>>0;h=j;j=e;p=0;e=p+d|0;l=h+j|0;j=0;l=e>>>0

      >>0?l+1|0:l;d=(h|0)==(l|0)&d>>>0>e>>>0|h>>>0>l>>>0;e=d;d=d+i|0;j=(e>>>0>d>>>0?1:j)+o|0;l=m;e=d;d=d+q|0;j=e>>>0>d>>>0?j+1|0:j;e=j;h=(o|0)==(j|0)&d>>>0>>0|j>>>0>>0;i=h;h=h+w|0;l=i>>>0>h>>>0?l+1|0:l;i=l;c:{if((l| -0)==131071|l>>>0<131071){N=P|O;L=t|Q;ai(k+80|0,d,j,h,l,f,g,z,y);l=J[k+84>>2];q=l;j=b<<17;o=0;p=J[k+88>>2];c=o-p|0;b=J[k+80>>2];l=(l|b)!=0;m=c-l|0;n=(j-(J[k+92>>2]+(o>>>0

      >>0)|0)|0)-(c>>>0>>0)|0;p=0-(((b|0)!=0)+q|0)|0;q=K+16382|0;o=0-b|0;break c}d=(e&1)<<31|d>>>1;e=h<<31|e>>>1;h=(i&1)<<31|h>>>1;i=i>>>1|0;ai(k+96|0,d,e,h,i,f,g,z,y);m=J[k+100>>2];x=m;n=0;q=J[k+104>>2];o=n-q|0;l=J[k+96>>2];p=(m|l)!=0;m=o-p|0;n=((b<<16)-(J[k+108>>2]+(n>>>0>>0)|0)|0)-(o>>>0

      >>0)|0;p=0-(((l|0)!=0)+x|0)|0;G=b;x= -c;q=K+16383|0;o=0-l|0}if((q|0)>=32767){s=s|2147418112;b=0;c=0;break a}d:{if((q|0)>0){b=m<<1|p>>>31;c=n<<1|m>>>31;m=h;n=i&65535|q<<16;l=p<<1|o>>>31;h=o<<1;break d}if((q|0)<=-113){b=0;c=0;break a}rq(k- -64|0,d,e,h,i,1-q|0);qi(k+48|0,G,x,N,L,q+112|0);d=J[k+64>>2];e=J[k+68>>2];m=J[k+72>>2];n=J[k+76>>2];ai(k+32|0,f,g,z,y,d,e,m,n);b=J[k+40>>2];c=J[k+56>>2];i=J[k+36>>2];p=b<<1|i>>>31;l=c-p|0;p=J[k+60>>2]-((J[k+44>>2]<<1|b>>>31)+(c>>>0

      >>0)|0)|0;c=J[k+52>>2];q=c;b=J[k+32>>2];h=i<<1|b>>>31;o=b<<1;b=o;j= -J[k+48>>2];c=(c|0)==(h|0)&b>>>0>j>>>0|c>>>0>>0;b=l-c|0;c=p-(c>>>0>l>>>0)|0;l=q-((j>>>0>>0)+h|0)|0;h=j-o|0}ai(k+16|0,f,g,z,y,3,0,0,0);ai(k,f,g,z,y,5,0,0,0);o=d;p=d&1;i=p;d=h+i|0;j=0;h=j+l|0;h=d>>>0>>0?h+1|0:h;i=d;g=(g|0)==(h|0)&d>>>0>f>>>0|g>>>0>>0;l=c;d=(h|0)==(j|0)&d>>>0

      >>0|h>>>0>>0;f=b+d|0;l=d>>>0>f>>>0?l+1|0:l;j=e;b=(l|0)==(y|0);b=b&(f|0)==(z|0)?g:b&f>>>0>z>>>0|l>>>0>y>>>0;c=b;b=b+o|0;j=c>>>0>b>>>0?j+1|0:j;c=j;d=(e|0)==(j|0)&b>>>0>>0|e>>>0>j>>>0;j=n;e=d;d=d+m|0;j=e>>>0>d>>> -0?j+1|0:j;g=d;e=J[k+20>>2];m=(e|0)==(h|0)&M[k+16>>2]>>0|e>>>0>>0;e=J[k+28>>2];d=J[k+24>>2];e=j>>>0<2147418112&((d|0)==(f|0)&(e|0)==(l|0)?m:(e|0)==(l|0)&d>>>0>>0|e>>>0>>0);d=c;m=e;e=b+e|0;d=m>>>0>e>>>0?d+1|0:d;b=(c|0)==(d|0)&b>>>0>e>>>0|c>>>0>d>>>0;c=b;b=b+g|0;j=c>>>0>b>>>0?j+1|0:j;g=b;c=J[k+4>>2];h=(c|0)==(h|0)&M[k>>2]>>0|c>>>0>>0;c=J[k+12>>2];b=J[k+8>>2];b=j>>>0<2147418112&((b|0)==(f|0)&(c|0)==(l|0)?h:(c|0)==(l|0)&b>>>0>>0|c>>>0>>0);c=b;b=b+e|0;l=c>>>0>b>>>0?d+1|0:d;c=l;e= -(d|0)==(l|0)&b>>>0>>0|d>>>0>l>>>0;d=j;f=e;e=e+g|0;d=f>>>0>e>>>0?d+1|0:d;r=e|r;s=d|s}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=r;J[a+12>>2]=s;bc=k+336|0}function r5(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;l=bc-48|0;bc=l;d=nd(b,c+d|0);a:{if(d)break a;d=Ue(b,e);if(d)break a;b:{c:{if(!e)break c;g=J[b+32>>2];k=g+e|0;if(H[g|0]<0){m=J[a+16>>2];p=J[a+28>>2];J[l>>2]=0;d=8;if((e|0)<=0)break b;h=H[g|0];if((h|0)>=0)break b;f=g+1|0;i=J[p>>2];j=h&255;d:{if(!(j&64)){e=f;break d}if(e>>> -0<2)break b;e=g+2|0;h=K[f|0];if(!h)break d;while(1){f=e+2|0;if(f>>>0>k>>>0)break b;e=f+K[e|0]|0;if(k>>>0>>0)break b;h=h-1|0;if(h)continue;break}}q=j&63;f=q+m|0;h=J[a+20>>2];e:{if(f>>>0<=h>>>0){h=J[a+24>>2];break e}f=f+3&-4;if(f>>>0>64)break b;h=Sc(i,24,h,f,J[a+24>>2],l);J[a+24>>2]=h;d=J[l>>2];if(d)break b;J[a+20>>2]=f}if(q){h=P(m,24)+h|0;d=8;while(1){i=e+1|0;if(k>>>0>>0)break b;g=K[e|0];J[h>>2]=65536;if(g&16){i=e+3|0;if(k>>>0>>0)break b;e=K[e+1|0]|K[e+2|0]<<8;J[h>>2]=(e<<8|e>>>8)<<16>>16<< -4}J[h+4>>2]=65536;f:{if(!(g&32)){e=i;break f}e=i+2|0;if(k>>>0>>0)break b;f=K[i|0]|K[i+1|0]<<8;J[h+4>>2]=(f<<8|f>>>8)<<16>>16<<4}j=0;i=0;g:{h:switch((g&3)-1|0){case 0:f=e+2|0;if(f>>>0>k>>>0)break b;e=K[e|0]|K[e+1|0]<<8;i=(e<<8|e>>>8)<<16>>16;e=f;break g;case 1:break h;default:break g}f=e+1|0;if(f>>>0>k>>>0)break b;i=H[e|0];e=f}i:{j:switch((g>>>2&3)-1|0){case 0:f=e+2|0;if(f>>>0>k>>>0)break b;e=K[e|0]|K[e+1|0]<<8;j=(e<<8|e>>>8)<<16>>16;e=f;break i;case 1:break j;default:break i}f=e+1|0;if(f>>>0>k>>> -0)break b;j=H[e|0];e=f}J[h+12>>2]=j;J[h+8>>2]=i;k:{if(g&64){i=e+2|0;if(k>>>0>>0)break b;e=K[e+1|0]|K[e|0]<<8;break k}i=e+1|0;if(k>>>0>>0)break b;e=K[e|0]}J[h+20>>2]=e;l:{if(g<<24>>24<0){e=i+3|0;if(k>>>0>>0)break b;j=2;f=K[i+1|0]<<8|K[i|0]<<16;break l}e=i+2|0;if(k>>>0>>0)break b;j=1;f=K[i|0]<<8}J[h+16>>2]=f|K[i+j|0];J[a+16>>2]=J[a+16>>2]+1;h=h+24|0;n=n+1|0;if((q|0)!=(n|0))continue;break}}ne(b);d=0;e=J[a+16>>2];if((e|0)==(m|0))break a;i=e-m|0;n=0;while(1){h=I[p+22>>1];f=P(n,24);e=P(m,24); -d=f+(e+J[a+24>>2]|0)|0;d=r5(a,b,c,J[d+16>>2],J[d+20>>2]);if(d)break a;k=I[p+22>>1];g=k-h|0;f=f+(e+J[a+24>>2]|0)|0;m:{if(!(J[f>>2]==65536&J[f+4>>2]==65536)){if((g|0)<=0)break m;d=J[p+24>>2]+(h<<3)|0;e=0;while(1){t=d,u=Pc(J[d>>2],J[f>>2])+J[f+8>>2]|0,J[t>>2]=u;t=d,u=Pc(J[d+4>>2],J[f+4>>2])+J[f+12>>2]|0,J[t+4>>2]=u;d=d+8|0;e=e+1|0;if((g|0)!=(e|0))continue;break}break m}if((g|0)<=0)break m;d=J[p+24>>2]+(h<<3)|0;e=J[f+12>>2];f=J[f+8>>2];if(k+(h^-1)>>>0>=3){k=g&-4;h=0;while(1){J[d>>2]=f+J[d>>2];J[d+4>> -2]=e+J[d+4>>2];J[d+8>>2]=f+J[d+8>>2];J[d+16>>2]=f+J[d+16>>2];J[d+24>>2]=f+J[d+24>>2];J[d+12>>2]=e+J[d+12>>2];J[d+20>>2]=e+J[d+20>>2];J[d+28>>2]=e+J[d+28>>2];d=d+32|0;h=h+4|0;if((k|0)!=(h|0))continue;break}}h=0;g=g&3;if(!g)break m;while(1){J[d>>2]=f+J[d>>2];J[d+4>>2]=e+J[d+4>>2];d=d+8|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}d=0;n=n+1|0;if((i|0)!=(n|0))continue;break}break a}J[l+44>>2]=0;d=8;if((e|0)<=0)break b;c=H[g|0];if((c|0)<0)break b;j=J[J[a+28>>2]>>2];i=c&255;n:{if(i&4){if(e>>>0<2)break b;f= -g+2|0;c=K[g+1|0];n=c>>>4|0;m=c&15;break n}if(i&2){if(e>>>0<2)break b;m=K[g+1|0];c=g+2|0}else c=g+1|0;if(!(i&1)){f=c;break n}f=c+1|0;if(k>>>0>>0)break b;n=K[c|0]}g=m+n|0;c=J[a+4>>2];o:{p:{if(g>>>0>c>>>0){d=c;c=g+7&1016;j=Sc(j,4,d,c,J[a+8>>2],l+44|0);J[a+8>>2]=j;d=J[l+44>>2];if(d)break b;J[a+4>>2]=c;J[a+12>>2]=(m<<2)+j;p=a+12|0;break p}j=J[a+8>>2];J[a+12>>2]=j+(m<<2);p=a+12|0;if(!g)break o}c=0;d=0;while(1){q:{if(d&7){e=f;break q}e=f+1|0;if(k>>>0>>0)break c;c=K[f|0]}o=(d<<2)+j|0;r:{if(c&1){f=e+ -2|0;if(k>>>0>>0)break c;e=K[e|0]|K[e+1|0]<<8;h=(e<<8|e>>>8)<<16>>16;break r}f=e+1|0;if(k>>>0>>0)break c;h=K[e|0]+h|0}J[o>>2]=h;c=c>>>1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}d=8;s:{if(!(i&8)){c=f;break s}c=f+1|0;if(k>>>0>>0)break b;e=K[f|0];if(e)while(1){f=c+2|0;if(f>>>0>k>>>0)break b;c=f+K[c|0]|0;if(k>>>0>>0)break b;e=e-1|0;if(e)continue;break}J[l+44>>2]=0}H[a+32|0]=0;J[l+24>>2]=0;J[l+28>>2]=0;J[l>>2]=0;J[l+4>>2]=0;q=l+16|0;r=l|8;f=0;h=0;while(1){g=c+1|0;if(g>>>0>k>>>0)break c;c=K[c| -0];e=c&15;j=1;t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{o=c>>>4|0;switch(o|0){case 0:break w;case 1:case 4:case 5:break x;case 7:break z;case 6:break A;case 3:break C;case 2:break D;default:break y}}if(e>>>0>=m>>>0)break c;J[l>>2]=J[J[a+8>>2]+(e<<2)>>2];break B}if(e>>>0>=n>>>0)break c;J[l>>2]=h;f=J[J[p>>2]+(e<<2)>>2]}J[l+4>>2]=f;f=J[l+4>>2];h=J[l>>2];J[l+24>>2]=h;J[l+28>>2]=f;c=g;break v}e=2958;j=3;break x}e=3627;j=3;break x}j=4}d=l;i=0;c=g;while(1){E:{F:switch(e&3){case 0:g=c+1|0;if(g>>>0>k>>>0)break c;c= -K[c|0];if(c>>>0>=m>>>0)break c;h=J[J[a+8>>2]+(c<<2)>>2];c=g;break E;case 1:g=c+2|0;if(g>>>0>k>>>0)break c;c=K[c|0]|K[c+1|0]<<8;h=(c<<8|c>>>8)<<16>>16;c=g;break E;case 2:break F;default:break E}g=c+1|0;if(g>>>0>k>>>0)break c;h=H[c|0]+h|0;c=g}J[d>>2]=h;G:{H:switch(e>>>2&3){case 0:h=c+1|0;if(h>>>0>k>>>0)break c;c=K[c|0];if(c>>>0>=n>>>0)break c;f=J[J[p>>2]+(c<<2)>>2];c=h;break G;case 1:h=c+2|0;if(h>>>0>k>>>0)break c;c=K[c|0]|K[c+1|0]<<8;f=(c<<8|c>>>8)<<16>>16;c=h;break G;case 2:break H;default:break G}h= -c+1|0;if(h>>>0>k>>>0)break c;f=H[c|0]+f|0;c=h}J[d+4>>2]=f;I:{if(!((j|0)!=4|i)){f=c+1|0;if(f>>>0>k>>>0)break c;e=K[c|0];j=3;c=f;break I}e=e>>>4|0}f=J[d+4>>2];h=J[d>>2];J[l+24>>2]=h;J[l+28>>2]=f;d=d+8|0;i=i+1|0;if(j>>>0>i>>>0)continue;break}J:switch(o|0){case 4:case 5:e=J[a+28>>2];K:{if(!K[a+32|0])break K;i=I[e+58>>1];d=i-1|0;g=L[e+56>>1];j=g<<16>>16;if((j|0)<=0)g=0;else g=I[(J[e+68>>2]+(g<<1)|0)-2>>1];L:{if((d|0)<=(g|0))break L;o=J[e+60>>2];s=o+(g<<3)|0;o=o+(d<<3)|0;if(J[s>>2]!=J[o>>2]|J[s+4>>2]!= -J[o+4>>2])break L;I[e+58>>1]=i-1;d=i-2|0}if((d|0)<(g|0))break K;I[e+56>>1]=j+1;I[J[e+68>>2]+(j<<1)>>1]=d}H[a+32|0]=1;d=I[e+58>>1];i=(d+I[e+22>>1]|0)+1|0;j=J[e+4>>2];if(!(i>>>0<=j>>>0&M[e+8>>2]>=(I[e+20>>1]+I[e+56>>1]|0)+1>>>0)){d=sh(e,1,1);if(d)break t;if(!K[a+32|0]){d=8;break t}e=J[a+28>>2];d=I[e+58>>1];i=(d+I[e+22>>1]|0)+1|0;j=J[e+4>>2]}if(i>>>0>j>>>0){d=sh(e,1,0);if(d)break t;d=I[e+58>>1]}break u;case 1:case 2:case 3:break v;case 0:break w;default:break J}if(K[a+32|0]){d=J[a+28>>2];e=I[d+58>>1]; -M:{if(M[d+4>>2]<(I[d+22>>1]+e|0)+3>>>0){e=sh(d,3,0);if(e)break M;e=I[d+58>>1]}i=J[d- -64>>2];j=J[l+4>>2];g=J[d+60>>2]+(e<<3)|0;J[g>>2]=J[l>>2];J[g+4>>2]=j;j=J[r+4>>2];J[g+8>>2]=J[r>>2];J[g+12>>2]=j;j=J[q+4>>2];J[g+16>>2]=J[q>>2];J[g+20>>2]=j;e=e+i|0;H[e+2|0]=1;H[e|0]=2;H[e+1|0]=2;I[d+58>>1]=L[d+58>>1]+3;e=0}d=e}else d=8;break t}e=J[a+28>>2];if(K[a+32|0]){f=I[e+58>>1];d=f-1|0;c=L[e+56>>1];h=c<<16>>16;if((h|0)<=0)c=0;else c=I[(J[e+68>>2]+(c<<1)|0)-2>>1];N:{if((d|0)<=(c|0))break N;g=J[e+60>>2];i=g+(c<< -3)|0;g=g+(d<<3)|0;if(J[i>>2]!=J[g>>2]|J[i+4>>2]!=J[g+4>>2])break N;I[e+58>>1]=f-1;d=f-2|0}if((c|0)<=(d|0)){I[e+56>>1]=h+1;I[J[e+68>>2]+(h<<1)>>1]=d}H[a+32|0]=0}qx(e);d=J[l+44>>2];break b}if(!K[a+32|0]){d=8;break t}e=J[a+28>>2];d=I[e+58>>1];if(M[e+4>>2]<(d+I[e+22>>1]|0)+1>>>0){d=sh(e,1,0);if(d)break t;d=I[e+58>>1]}}i=J[l+4>>2];g=J[e+60>>2]+(d<<3)|0;J[g>>2]=J[l>>2];J[g+4>>2]=i;H[d+J[e- -64>>2]|0]=1;I[e+58>>1]=L[e+58>>1]+1;d=0}J[l+44>>2]=d;if(!d)continue;break}break b}d=8}ne(b)}bc=l+48|0;return d}function mga(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,u=0,v=0;l=bc-528|0;bc=l;J[l+520>>2]=k;J[l+524>>2]=b;a:{b:{if(Qk(a,l+524|0)){J[f>>2]=J[f>>2]|4;a=0;break b}J[l+76>>2]=6678;b=l+76|0;q=ng(l+104|0,l+112|0,b);k=J[q>>2];J[l+100>>2]=k;J[l+96>>2]=k+400;r=Se(b);o=Se(l- -64|0);n=Se(l+52|0);m=Se(l+40|0);p=Se(l+28|0);J[695492]=0;Ea(6681,c|0,d|0,l+92|0,l+91|0,l+90|0,r|0,o|0,n|0,m|0,l+24|0);b=J[695492];J[695492]=0;if((b|0)!=1){J[j>>2]= -J[i>>2];s=e&512;e=0;k=0;while(1){c=k;c:{d:{e:{f:{if((e|0)==4)break f;J[695492]=0;b=aa(6531,a|0,l+524|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break f;b=0;g:{h:{i:{j:{k:switch(H[(l+92|0)+e|0]){case 1:if((e|0)==3)break d;J[695492]=0;b=$(6532,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b&255)<<2)>>2]&1;else b=0;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b){J[695492]=0;ca(6683,l+16|0,a|0,0);b=J[695492];J[695492]=0;if((b|0)!=1){b=H[l+16|0]; -J[695492]=0;da(6684,p|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j}break a}J[f>>2]=J[f>>2]|4;a=0;break e;case 4:break g;case 2:break h;case 3:break i;case 0:break k;default:break c}if((e|0)==3)break d}while(1){J[695492]=0;b=aa(6531,a|0,l+524|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break d;J[695492]=0;b=$(6532,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b&255)<<2)>>2]&1;else b=0;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(!b)break d; -J[695492]=0;ca(6683,l+16|0,a|0,0);b=J[695492];J[695492]=0;if((b|0)!=1){b=H[l+16|0];J[695492]=0;da(6684,p|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)continue}break}break a}l:{if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b)break l;J[695492]=0;d=$(6532,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(K[n+11|0]>>>7|0)b=J[n>>2];else b=n;if(K[b|0]!=(d&255))break l;J[695492]=0;$(6534,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;H[g|0]=0;if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11| -0]&127;k=b>>>0>1?n:c;break c}m:{if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break m;J[695492]=0;d=$(6532,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(K[m+11|0]>>>7|0)b=J[m>>2];else b=m;if(K[b|0]!=(d&255))break m;J[695492]=0;$(6534,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;H[g|0]=1;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;k=b>>>0>1?m:c;break c}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;d=!b;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!(d| -!b)){J[f>>2]=J[f>>2]|4;a=0;break e}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b){if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break d}if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;H[g|0]=!b;break d}if(!(s|(c|e>>>0<2))){k=0;if(!((e|0)==2&K[l+95|0]!=0))break c}u=l,v=oi(o),J[u+12>>2]=v;J[l+16>>2]=J[l+12>>2];n:{if(!e|K[(e+l|0)+91|0]>1)break n;o:{while(1){u=l,v=Qo(o),J[u+12>>2]=v;b=J[l+16>>2];if((b|0)==J[l+12>>2])break o;b=H[b|0];J[695492]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b& -255)<<2)>>2]&1;else b=0;d=J[695492];J[695492]=0;if((d|0)!=1){if(!b)break o;J[l+16>>2]=J[l+16>>2]+1;continue}break}break a}u=l,v=oi(o),J[u+12>>2]=v;if(K[p+11|0]>>>7|0)k=J[p+4>>2];else k=K[p+11|0]&127;b=l+12|0;d=J[l+16>>2]-J[b>>2]|0;if(k>>>0>=d>>>0){u=l,v=Qo(p),J[u+12>>2]=v;b=ry(b,0-d|0);d=Qo(p);k=oi(o);J[695492]=0;b=$P(b,d,k);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break n}u=l,v=oi(o),J[u+8>>2]=v;J[l+12>>2]=J[l+8>>2];J[l+16>>2]=J[l+12>>2]}J[l+12>>2]=J[l+16>>2];p:{while(1){u=l,v=Qo(o),J[u+ -8>>2]=v;if(J[l+12>>2]==J[l+8>>2])break p;J[695492]=0;b=aa(6531,a|0,l+524|0)|0;d=J[695492];J[695492]=0;q:{if((d|0)==1)break q;if(b)break p;J[695492]=0;b=$(6532,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;if(K[J[l+12>>2]]!=(b&255))break p;J[695492]=0;$(6534,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[l+12>>2]=J[l+12>>2]+1;continue}break}break a}if(!s)break d;u=l,v=Qo(o),J[u+8>>2]=v;if(J[l+12>>2]==J[l+8>>2])break d;J[f>>2]=J[f>>2]|4;a=0;break e}r:{while(1){s:{J[695492]=0;d=aa(6531,a| -0,l+524|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break s;if(d)break r;J[695492]=0;k=$(6532,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;if((k|0)>=0)d=(J[J[h+8>>2]+((k&255)<<2)>>2]&64)!=0;else d=0;t=J[695492];J[695492]=0;if((t|0)==1)break a;t:{if(d){d=J[j>>2];if((d|0)==J[l+520>>2]){J[695492]=0;ca(6686,i|0,j|0,l+520|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;d=J[j>>2]}J[j>>2]=d+1;H[d|0]=k;b=b+1|0;break t}if(K[r+11|0]>>>7|0)d=J[r+4>>2];else d=K[r+11|0]&127;if(!d|!b|K[l+90|0]!=(k& -255))break r;k=J[l+100>>2];if((k|0)==J[l+96>>2]){J[695492]=0;ca(6687,q|0,l+100|0,l+96|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b;b=0}J[695492]=0;$(6534,a|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break a}k=J[l+100>>2];if(!(!b|(k|0)==J[q>>2])){if(J[l+96>>2]==(k|0)){J[695492]=0;ca(6687,q|0,l+100|0,l+96|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b}u:{if(J[l+24>>2]<=0)break u;J[695492]=0;b=aa(6531,a|0, -l+524|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;v:{if(!b){J[695492]=0;b=$(6532,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(K[l+91|0]==(b&255))break v}J[f>>2]=J[f>>2]|4;a=0;break e}J[695492]=0;$(6534,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;while(1){if(J[l+24>>2]<=0)break u;J[695492]=0;b=aa(6531,a|0,l+524|0)|0;d=J[695492];J[695492]=0;w:{if((d|0)==1)break w;x:{if(!b){J[695492]=0;b=$(6532,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break w;J[695492]=0;if((b|0)>=0)b=(J[J[h+8>> -2]+((b&255)<<2)>>2]&64)!=0;else b=0;d=J[695492];J[695492]=0;if((d|0)==1)break w;if(b)break x}J[f>>2]=J[f>>2]|4;a=0;break e}if(J[j>>2]==J[l+520>>2]){J[695492]=0;ca(6686,i|0,j|0,l+520|0);b=J[695492];J[695492]=0;if((b|0)==1)break w}J[695492]=0;b=$(6532,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break w;d=J[j>>2];J[j>>2]=d+1;H[d|0]=b;J[695492]=0;J[l+24>>2]=J[l+24>>2]-1;$(6534,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)continue}break}break a}k=c;if(J[i>>2]!=J[j>>2])break c;J[f>>2]=J[f>>2]|4;a=0;break e}y:{if(!c)break y; -k=1;while(1){if(K[c+11|0]>>>7|0)b=J[c+4>>2];else b=K[c+11|0]&127;if(b>>>0<=k>>>0)break y;J[695492]=0;b=aa(6531,a|0,l+524|0)|0;d=J[695492];J[695492]=0;z:{if((d|0)==1)break z;A:{if(!b){J[695492]=0;d=$(6532,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break z;if(K[c+11|0]>>>7|0)b=J[c>>2];else b=c;if(K[b+k|0]==(d&255))break A}J[f>>2]=J[f>>2]|4;a=0;break e}J[695492]=0;$(6534,a|0)|0;b=J[695492];J[695492]=0;k=k+1|0;if((b|0)!=1)continue}break}break a}B:{if(J[q>>2]==J[l+100>>2])break B;J[l+16>>2]=0;a=J[q>>2]; -J[695492]=0;Ah(r,a,J[l+100>>2],l+16|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(!J[l+16>>2])break B;J[f>>2]=J[f>>2]|4;a=0;break e}break a}a=1}ad(p);ad(m);ad(n);ad(o);ad(r);Ae(q);break b}k=c}e=e+1|0;continue}}break a}bc=l+528|0;return a|0}a=Z()|0;ad(p);ad(m);ad(n);ad(o);ad(r);Ae(q);ba(a|0);B()}function $H(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,N=0,O=0,P=0,Q=0;h=bc-608|0;bc=h;a:{b:{c:{d:{e:{f:{f=J[a+56>> -2];s=gc[J[J[f>>2]+28>>2]](f)|0;if((s|0)==-1)break f;f=J[a+56>>2];t=gc[J[J[f>>2]+28>>2]](f)|0;if((t|0)==-1)break f;f=J[a+56>>2];A=gc[J[J[f>>2]+28>>2]](f)|0;if((A|0)==-1)break f;f=J[a+56>>2];C=gc[J[J[f>>2]+28>>2]](f)|0;if((C|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+4;f=J[a+56>>2];D=gc[J[J[f>>2]+28>>2]](f)|0;if((D|0)==-1)break f;f=J[a+56>>2];q=gc[J[J[f>>2]+28>>2]](f)|0;if((q|0)==-1)break f;f=J[a+56>>2];r=gc[J[J[f>>2]+28>>2]](f)|0;if((r|0)==-1)break f;f=J[a+56>>2];p=gc[J[J[f>>2]+28>>2]](f)|0;if((p|0)==-1)break f; -J[a+68>>2]=J[a+68>>2]+4;f=J[a+56>>2];F=gc[J[J[f>>2]+28>>2]](f)|0;if((F|0)==-1)break f;f=J[a+56>>2];E=gc[J[J[f>>2]+28>>2]](f)|0;if((E|0)==-1)break f;f=J[a+56>>2];u=gc[J[J[f>>2]+28>>2]](f)|0;if((u|0)==-1)break f;f=J[a+56>>2];G=gc[J[J[f>>2]+28>>2]](f)|0;if((G|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+4;f=J[a+56>>2];y=gc[J[J[f>>2]+28>>2]](f)|0;if((y|0)==-1)break f;f=J[a+56>>2];l=gc[J[J[f>>2]+28>>2]](f)|0;if((l|0)==-1)break f;f=J[a+56>>2];j=gc[J[J[f>>2]+28>>2]](f)|0;if((j|0)==-1)break f;f=J[a+56>>2];o=gc[J[J[f>> -2]+28>>2]](f)|0;if((o|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+4;f=J[a+56>>2];K=gc[J[J[f>>2]+28>>2]](f)|0;if((K|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;g:{C=C|(t<<16|s<<24|A<<8);if(C){A=p|(q<<16|D<<24|r<<8);if(A)break g}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792111,0);break b}h:{p=J[a+24>>2];i:{if(p>>>0<(C>>>0)/10>>>0)break i;F=G|(E<<16|F<<24|u<<8);f=J[a+28>>2];E=o|(l<<16|y<<24|j<<8);if(f>>>0<(E>>>0)/10>>>0|p>>>0<(F>>>0)/10>>>0)break i;if(f>>>0>=(A>>>0)/10>>>0)break h}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,792739,0); -J[a+72>>2]=1;break b}if(!NA(a,h+28|0))break f;w=J[h+28>>2];p=w&1;if(p){if(!NA(a,h+24|0))break f;f=J[h+24>>2];i=f&3;L=f>>>10&3;N=f>>>8&3;O=f>>>6&3;P=f>>>4&3;Q=f>>>2&3;H=f>>>14&1;I=f>>>12&3}D=w>>>15&1;G=w&2;if(!(D|!G)){f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;J[h+12>>2]=f&128?f|-256:f;f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;J[h+4>>2]=f&128?f|-256:f;f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break f; -J[a+68>>2]=J[a+68>>2]+1;J[h+16>>2]=f&128?f|-256:f;f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;J[h+8>>2]=f&128?f|-256:f}if(!jt(a,h+20|0))break f;o=rc(16);J[695492]=0;m=$(3185,o|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!e)break e;while(1){f=LA(a,J[(k<<2)+d>>2]);if(!f)break d;j:{if((gc[J[J[f>>2]+8>>2]](f)|0)==1){n=J[f+8>>2]+n|0;break j}if((gc[J[J[f>>2]+8>>2]](f)|0)!=3)break j;id(m,f)}k=k+1|0;if((k|0)!=(e|0))continue;break}f=p;if(n>>>0>=2){g=n-1|0; -f=0;while(1){f=f+1|0;o=g>>>0>1;g=g>>>1|0;if(o)continue;break}}v=vd(n,4);if(!e)break c;y=v+12|0;l=v+8|0;j=v+4|0;k=0;while(1){s=LA(a,J[(z<<2)+d>>2]);k:{if(!s)break k;if((gc[J[J[s>>2]+8>>2]](s)|0)!=1)break k;o=J[s+8>>2];if(!o)break k;u=o&3;t=0;l:{if(o>>>0<4){g=0;break l}o=o&-4;g=0;x=0;while(1){q=k<<2;r=g<<2;J[q+v>>2]=J[r+J[s+12>>2]>>2];J[j+q>>2]=J[J[s+12>>2]+(r|4)>>2];J[l+q>>2]=J[J[s+12>>2]+(r|8)>>2];J[q+y>>2]=J[J[s+12>>2]+(r|12)>>2];g=g+4|0;k=k+4|0;x=x+4|0;if((o|0)!=(x|0))continue;break}}if(!u)break k; -while(1){J[(k<<2)+v>>2]=J[J[s+12>>2]+(g<<2)>>2];g=g+1|0;k=k+1|0;t=t+1|0;if((u|0)!=(t|0))continue;break}}z=z+1|0;if((z|0)!=(e|0))continue;break}break c}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781526,0);break b}v=vd(0,4);f=p;break c}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,793585,0);qc(dd(m));break b}q=0;z=0;r=0;u=0;d=0;x=0;t=0;m:{e=0;n:{if(!p)break n;t=2718048;o:{p:switch(i|0){case 1:t=2718288;i=0;break o;case 0:break o;default:break p}if(!J[m+8>>2])break m;t=J[J[J[m>>2]>>2]+8>>2];i=1}x=2718544;q:{r:switch(Q|0){case 1:x= -2718896;break q;case 2:x=2719264;break q;case 0:break q;default:break r}if(M[m+8>>2]<=i>>>0)break m;x=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}d=2719616;s:{t:switch(P|0){case 1:d=2719840;break s;case 2:d=2720064;break s;case 0:break s;default:break t}if(M[m+8>>2]<=i>>>0)break m;d=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}r=2720288;u=2720288;u:{v:switch(O|0){case 1:u=2720384;break u;case 0:break u;default:break v}if(M[m+8>>2]<=i>>>0)break m;u=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}w:{x:switch(N|0){case 1:r=2720384; -break w;case 0:break w;default:break x}if(M[m+8>>2]<=i>>>0)break m;r=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}q=2720288;z=2720288;y:{z:switch(L|0){case 1:z=2720384;break y;case 0:break y;default:break z}if(M[m+8>>2]<=i>>>0)break m;z=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}A:{B:switch(I|0){case 1:q=2720384;break A;case 0:break A;default:break B}if(M[m+8>>2]<=i>>>0)break m;q=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}e=2717424;if(!H)break n;if(M[m+8>>2]<=i>>>0)break m;e=J[J[J[m>>2]+(i<<2)>>2]+8>>2]}o=e;qc(dd(m)); -C:{if(p){e=J[a+144>>2];J[e+4>>2]=0;J[e+8>>2]=0;g=0;while(1){j=h+32|0;l=j+(g<<4)|0;J[l>>2]=g;e=Lv(J[a+144>>2],4);J[l+8>>2]=0;J[l+12>>2]=0;J[l+4>>2]=e;g=g+1|0;if((g|0)!=32)continue;break}J[h+544>>2]=259;e=Lv(J[a+144>>2],4);J[h+552>>2]=2;J[h+556>>2]=0;J[h+548>>2]=e;J[h+560>>2]=515;e=Lv(J[a+144>>2],4);J[h+568>>2]=3;J[h+572>>2]=0;J[h+564>>2]=e;J[h+576>>2]=523;g=0;e=Lv(J[a+144>>2],4);J[h+604>>2]=0;J[h+596>>2]=0;J[h+600>>2]=-1;J[h+584>>2]=7;J[h+588>>2]=0;J[h+580>>2]=e;bI(j,35);k=vd(n+1|0,16);D:{if(!n)break D; -if(n>>>0>=4){y=n&-4;e=0;while(1){j=(g<<4)+k|0;J[j+8>>2]=0;J[j>>2]=g;l=g|1;j=(l<<4)+k|0;J[j+8>>2]=0;J[j>>2]=l;l=g|2;j=(l<<4)+k|0;J[j+8>>2]=0;J[j>>2]=l;l=g|3;j=(l<<4)+k|0;J[j+8>>2]=0;J[j>>2]=l;g=g+4|0;e=e+4|0;if((y|0)!=(e|0))continue;break}}l=n&3;if(l){e=0;while(1){j=(g<<4)+k|0;J[j+8>>2]=0;J[j>>2]=g;g=g+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}}if(!n)break D;l=k-12|0;g=0;while(1){gi(J[a+144>>2],h,h+32|0);e=J[h>>2];E:{if((e|0)>=513){e=e-512|0;F:{if(g>>>0>=n>>>0)break F;while(1){J[((g<<4)+k|0)+4>>2]= -0;g=g+1|0;e=e-1|0;if(!e)break F;if(g>>>0>>0)continue;break}}J[h>>2]=e;break E}if((e|0)>=257){if(!g){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,794348,0);Gc(v);Gc(k);break b}e=e-256|0;G:{if(g>>>0>=n>>>0)break G;while(1){j=g<<4;J[(j+k|0)+4>>2]=J[l+j>>2];g=g+1|0;e=e-1|0;if(!e)break G;if(g>>>0>>0)continue;break}}J[h>>2]=e;break E}J[((g<<4)+k|0)+4>>2]=e;g=g+1|0}if(g>>>0>>0)continue;break}}e=(n<<4)+k|0;J[e+4>>2]=0;J[e+8>>2]=-1;bI(k,n);e=J[a+144>>2];J[e+4>>2]=0;J[e+8>>2]=0;break C}NY(a,f);Vm(J[a+76>>2]);k= -0}e=w>>>10|0;H=w&16384?e|-16:e&31;I=w>>>9&1;y=w>>>7&3;l=w>>>6&1;j=w>>>4&3;e=w>>>2&3;H:{if(!G){d=VH(a,p,0,C,A,J[h+20>>2],e,n,k,f,v,I,y,l,j,H,t,x,d,u,r,z,q,o,D,h+12|0,h+4|0);break H}MA(a,D,0);d=VH(a,p,1,C,A,J[h+20>>2],e,n,k,f,v,I,y,l,j,H,t,x,d,u,r,z,q,o,D,h+12|0,h+4|0)}Gc(v);I:{if(c){c=K&7;J:{if(J[a+28>>2]!=-1)break J;b=A+E|0;if(b>>>0<=M[a+32>>2])break J;OA(J[a+40>>2],b,J[a+36>>2])}_k(J[a+40>>2],d,F,E,c);if(!d)break I;gc[J[J[d>>2]+4>>2]](d);break I}J[d+4>>2]=b;id(J[a+48>>2],d)}if(!p)break b;Gc(k);break b}xc(1, -gc[J[J[a>>2]+52>>2]](a)|0,795187,0);qc(dd(m));Gc(v)}bc=h+608|0;return}a=Z()|0;qc(o);ba(a|0);B()}function Fxa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{g=bc-128|0;bc=g;f=J[c+12>>2];J[g+120>>2]=J[c+8>>2];J[g+124>>2]=f;f=J[c+4>>2];J[g+112>>2]=J[c>>2];J[g+116>>2]=f;c=J[d+12>>2];J[g+104>>2]=J[d+8>>2];J[g+108>>2]=c;c=J[d+4>>2];J[g+96>>2]=J[d>>2];J[g+100>>2]=c;d=b+8|0;b:{if(J[b+8>>2]){ei(g+40|0,b,d);break b}J[g+40>>2]=0;md(g+40|0,0)}c=J[g+40>>2];J[g+40>>2]=0; -c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if(c){J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)==1)break c;if(!f){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break c}c=J[b+12>>2];if(((c|0)>0?c:0)&3){c=Fz(g+40|0);f=J[b+12>>2];Ez(c,0-((f|0)>0?f:0)|0);Cs(c,g+112|0);Cs(c,g+96|0)}n:{c=J[g+96>>2];f=J[g+112>>2];o:{if((c|0)>(f|0))break o;i=f;f=J[g+104>>2];if((i|0)>=(f|0))break o;h=J[g+100>>2];i=J[g+116>>2];if((h|0)>(i|0))break o;j=i;i=J[g+108>>2];if((j|0)>=(i|0))break o;j= -c;c=J[g+120>>2];if((j|0)>=(c|0)|(c|0)>(f|0))break o;c=J[g+124>>2];if((c|0)<=(h|0))break o;if((c|0)<=(i|0))break n}a=Kc(g+40|0,2390842,2379760,1171,2405E3,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break m;b=Z()|0;Fc(a);ba(b|0);B()}p:{if(J[d>>2]){ei(g+40|0,b,d);break p}J[g+40>>2]=0;md(g+40|0,0)}f=J[g+40>>2];q:{if(!f){c=0;break q}c=J[f+8>>2];J[695492]=0;J[g+40>>2]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break c;if(h)break q;J[695492]=0;_(4987,f|0);f=J[695492]; -J[695492]=0;if((f|0)==1)break c}r:{if(J[d>>2]){ei(g+40|0,b,d);break r}J[g+40>>2]=0;md(g+40|0,0)}d=0;f=J[g+40>>2];s:{if(!f)break s;d=J[f+12>>2];J[695492]=0;J[g+40>>2]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break c;if(h)break s;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break c}i=J[g+104>>2];l=J[g+108>>2];f=J[g+96>>2];h=J[g+100>>2];k=J[g+124>>2];J[g+48>>2]=J[g+120>>2];J[g+52>>2]=k;k=J[g+116>>2];J[g+40>>2]=J[g+112>>2];J[g+44>>2]=k;Sj(g+40|0,0-f|0,0-h|0);h= -l-h|0;i=i-f|0;if((i|0)==(c|0)){f=1;if((d|0)==(h|0))break f}l=i<<1;t:{if((l|0)<=(c-2|0)|(l|0)>=(c+2|0))break t;k=h<<1;if((k|0)<=(d-2|0))break t;f=2;if((k|0)<(d+2|0))break f}k=P(i,3);u:{if((k|0)<=(c-3|0)|(k|0)>=(c+3|0))break u;f=3;o=P(h,3);if((o|0)<=(d-3|0))break u;if((o|0)<(d+3|0))break f}o=i<<2;v:{if((o|0)<=(c-4|0)|(o|0)>=(c+4|0))break v;n=h<<2;if((n|0)<=(d-4|0))break v;f=4;if((n|0)<(d+4|0))break f}f=P(i,5);w:{if((f|0)<=(c-5|0)|(f|0)>=(c+5|0))break w;f=5;n=P(h,5);if((n|0)<=(d-5|0))break w;if((n|0)< -(d+5|0))break f}n=P(i,6);x:{if((n|0)<=(c-6|0)|(n|0)>=(c+6|0))break x;f=6;j=P(h,6);if((j|0)<=(d-6|0))break x;if((j|0)<(d+6|0))break f}f=P(i,7);y:{if((f|0)<=(c-7|0)|(f|0)>=(c+7|0))break y;f=7;j=P(h,7);if((j|0)<=(d-7|0))break y;if((j|0)<(d+7|0))break f}f=i<<3;z:{if((f|0)<=(c-8|0)|(f|0)>=(c+8|0))break z;j=h<<3;if((j|0)<=(d-8|0))break z;f=8;if((j|0)<(d+8|0))break f}f=P(i,9);A:{if((f|0)<=(c-9|0)|(f|0)>=(c+9|0))break A;f=9;j=P(h,9);if((j|0)<=(d-9|0))break A;if((j|0)<(d+9|0))break f}f=P(i,10);B:{if((f|0)<= -(c-10|0)|(f|0)>=(c+10|0))break B;f=10;j=P(h,10);if((j|0)<=(d-10|0))break B;if((j|0)<(d+10|0))break f}f=P(i,11);C:{if((f|0)<=(c-11|0)|(f|0)>=(c+11|0))break C;f=11;j=P(h,11);if((j|0)<=(d-11|0))break C;if((j|0)<(d+11|0))break f}j=P(i,12);D:{if((j|0)<=(c-12|0)|(j|0)>=(c+12|0))break D;f=12;m=P(h,12);if((m|0)<=(d-12|0))break D;if((m|0)<(d+12|0))break f}f=P(i,13);E:{if((f|0)<=(c-13|0)|(f|0)>=(c+13|0))break E;f=13;m=P(h,13);if((m|0)<=(d-13|0))break E;if((m|0)<(d+13|0))break f}f=P(i,14);F:{if((f|0)<=(c-14| -0)|(f|0)>=(c+14|0))break F;f=14;m=P(h,14);if((m|0)<=(d-14|0))break F;if((m|0)<(d+14|0))break f}f=P(i,15);G:{if((f|0)<=(c-15|0)|(f|0)>=(c+15|0))break G;f=15;m=P(h,15);if((m|0)<=(d-15|0))break G;if((m|0)<(d+15|0))break f}f=12;m=(c|0)>(j|0);j=(P(h,12)|0)<(d|0);H:{if(m&j|(P(i,36)|0)<(c|0)|(P(h,36)|0)<(d|0))break H;f=6;m=(c|0)>(n|0);n=(P(h,6)|0)<(d|0);if(m&n|(P(i,18)|0)<(c|0)|(P(h,18)|0)<(d|0))break H;f=4;if(j|(h<<2<(d|0)&(c|0)>(o|0)|(P(i,12)|0)<(c|0)))break H;f=3;if((P(h,3)|0)<(d|0)&(c|0)>(k|0)|(P(i, -9)|0)<(c|0)|(P(h,9)|0)<(d|0))break H;f=(P(i,6)|0)<(c|0)?2:n?2:1;f=(c|0)>(l|0)?h<<1<(d|0)?2:f:f}if(!((c|0)>0&(d|0)>0)){J[a>>2]=0;md(a,0);break e}l=rc(108);J[695492]=0;k=$(5387,l|0)|0;o=J[695492];J[695492]=0;if((o|0)==1)break g;J[g+36>>2]=0;md(g+36|0,k);J[695492]=0;l=J[g+36>>2];ca(5388,l|0,((c+f|0)-1|0)/(f|0)|0,((d+f|0)-1|0)/(f|0)|0);k=J[695492];J[695492]=0;I:{J:{K:{L:{M:{if((k|0)==1)break M;J[695492]=0;ca(5389,l|0,i|0,h|0);k=J[695492];J[695492]=0;if((k|0)==1)break M;J[695492]=0;ca(5362,l|0,P(f,i)| -0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break M;J[695492]=0;ca(5363,l|0,P(f,h)|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break M;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[695492]=0;c=g+16|0;ca(5364,l|0,g+40|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break L;J[695492]=0;Ha(5386,g+12|0,b|0,c|0,f|0,+e);c=J[695492];J[695492]=0;if((c|0)==1)break l;if(J[g+12>>2])break K;J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break J;a=Z()|0;break i}a=Z()|0;break h}a=Z()| -0;break h}J[695492]=0;c=$(4,24)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[695492]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c>>2]=2412864;J[c+4>>2]=0;d=J[695492];J[695492]=0;if((d|0)==1)break I;J[695492]=0;J[g+8>>2]=0;aa(4985,g+8|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;J[695492]=0;la(5365,l|0,g+16|0,J[g+12>>2],g+40|0,J[g+8>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break j;c=J[g+8>>2];N:{if(c){b=J[b+12>>2];J[695492]=0;ca(5390,a|0,c|0,((b|0)>0?b:0)|0);a=J[695492];J[695492]=0;if((a| -0)!=1)break N;break j}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break j}a=J[g+8>>2];J[g+8>>2]=0;if(!a)break J;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break c;if(b)break J;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}a=J[g+12>>2];J[g+12>>2]=0;O:{if(!a)break O;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break c;if(b)break O;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a| -0)==1)break c}a=J[g+36>>2];J[g+36>>2]=0;if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break c}a=Z()|0;qc(c);break i}J[a>>2]=0;md(a,0);break e}B()}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;vc(g+8|0)}vc(g+12|0)}vc(g+36|0);ba(a|0);B()}a=Z()|0;qc(l);ba(a|0);B()}pU(g+16|0,b,g+40|0,f,e);c=J[g+16>>2];P:{if(c){b=J[b+12>>2];J[695492]=0;ca(5390,a|0,c|0,((b|0)>0?b:0)|0);a=J[695492];J[695492]= -0;if((a|0)!=1)break P;break d}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d}a=J[g+16>>2];J[g+16>>2]=0;if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break c}bc=g+128|0;break a}a=Z()|0;vc(g+16|0);ba(a|0);B()}ea(0)|0;yc();B()}}function Era(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;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,C=0,D=0,E=0,F=0,G=0,K=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0;h=bc-2336|0;bc=h;i=32;a:{if((b|0)>31)break a;if((b|0)>15){M=1;r=1;i=16;break a}if((b|0)>7){r=2;N=1;i=8;break a}r=3;if((b|0)>3){A=1;O=1;i=4;break a}A=1;if((b|0)>1){r=4;Q=1;i=2;break a}r=5;i=1}b:{c:{if((i|0)!=(b|0)){b=Kc(h,2382844,2374197,756,2420048,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;i=Z()|0;Fc(b);break c}d:{t=J[c>>2];o=J[c+8>>2];if((t|0)<(o|0)){n=J[c+4>>2];k=J[c+12>>2];if((n| -0)<(k|0))break d}b=Kc(h,2375005,2374197,758,2420048,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;i=Z()|0;Fc(b);break c}m=J[a+4>>2];i=J[a+8>>2];J[h+2320>>2]=0;J[h+2324>>2]=0;j=i;i=b-1|0;j=(j+i|0)/(b|0)|0;J[h+2332>>2]=j;i=(i+m|0)/(b|0)|0;J[h+2328>>2]=i;e:{if(!((t|n)<0|(i|0)<(o|0)))if((j|0)>=(k|0))break e;b=Kc(h,2375719,2374197,761,2420048,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;i=Z()|0;Fc(b);break c}p=1<>2];J[k+8>>2]=J[c+8>>2];J[k+12>>2]=i;i=J[c+4>>2];J[k>>2]=J[c>>2];J[k+4>>2]=i;i=J[c+4>>2];j=j+m|0;J[j>>2]=J[c>>2];J[j+4>>2]=i;i=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=i;if((b|0)<=31){m=1;j=r;while(1){x=h+2064|0;n=x+(j<<4)|0;k=J[n+12>>2];i=j-1|0;w=i<<4;l=w+(h+2192|0)|0;J[l+8>>2]=J[n+8>>2];J[l+12>>2]=k;k=J[n+4>>2];J[l>>2]=J[n>>2];J[l+4>>2]=k;k=P(m,3);t=J[l>>2]-k|0;J[l>>2]=t;o=k+J[l+8>>2]|0;J[l+8>>2]=o;n=J[l+4>>2]-k|0;J[l+4>>2]=n;k=k+J[l+12>>2]|0;J[l+12>>2]=k;if(!((o| -0)>(t|0)&(k|0)>(n|0))){J[l>>2]=0;J[l+4>>2]=0;J[l+8>>2]=0;J[l+12>>2]=0}Ds(l,l,h+2320|0);o=w+x|0;m=m<<1;n=0-m|0;J[o+8>>2]=n&J[l+8>>2];J[o+12>>2]=n&J[l+12>>2];k=m-1|0;J[o>>2]=n&k+J[l>>2];J[o+4>>2]=n&k+J[l+4>>2];k=j>>>0>1;j=i;if(k)continue;break}}y=0-p|0;C=y&J[h+2204>>2]-1;j=C+p|0;D=J[h+2200>>2]-1&y;i=D+p|0;l=J[h+2192>>2]&y;q=i-l|0;w=J[h+2196>>2]&y;E=ch(h+2052|0,h+2060|0,P(q,j-w|0),2);if(!((j|0)<=(w|0)|(i|0)<=(l|0))){F=J[a+12>>2]>>5;o=(J[a>>2]+(P(F,w>>r)<<4)|0)+(l>>r<<4)|0;n=J[h+2060>>2];R=q<>2];T=J[h+2228>>2]>(x+31|0);t=l;k=n;a=o;while(1){i=r;f:{if(!A)break f;if(!(T|((t+31|0)<(S|0)|J[h+2232>>2]<(t|0))))if(J[h+2236>>2]>=(x|0))break f;i=2}v=0;j=wc(h,0,2048);G=32>>>i|0;z=r-i|0;K=1<>>4|0;u=0;while(1){i=J[(u>>>2&1073741820)+a>>2];g:{if(!i)break g;s=J[i+((u&15)<<2)>>2];if(!s)break g;i=v<<2;I[j+(J[i+2415952>>2]<<1)>>1]=L[s>>1];I[j+(J[(i|4)+2415952>>2]<<1)>>1]=L[s+2>>1];I[j+(J[(i|8)+2415952>>2]<<1)>>1]=L[s+4>>1];I[j+(J[(i|12)+2415952>>2]<<1)>>1]=L[s+ -6>>1];I[j+(J[(i|16)+2415952>>2]<<1)>>1]=L[s+8>>1];I[j+(J[(i|20)+2415952>>2]<<1)>>1]=L[s+10>>1];I[j+(J[(i|24)+2415952>>2]<<1)>>1]=L[s+12>>1];I[j+(J[(i|28)+2415952>>2]<<1)>>1]=L[s+14>>1];I[j+(J[(i|32)+2415952>>2]<<1)>>1]=L[s+16>>1];I[j+(J[(i|36)+2415952>>2]<<1)>>1]=L[s+18>>1];I[j+(J[(i|40)+2415952>>2]<<1)>>1]=L[s+20>>1];I[j+(J[(i|44)+2415952>>2]<<1)>>1]=L[s+22>>1];I[j+(J[(i|48)+2415952>>2]<<1)>>1]=L[s+24>>1];I[j+(J[(i|52)+2415952>>2]<<1)>>1]=L[s+26>>1];I[j+(J[(i|56)+2415952>>2]<<1)>>1]=L[s+28>>1];I[j+ -(J[(i|60)+2415952>>2]<<1)>>1]=L[s+30>>1]}v=v+16|0;u=u+1|0;if((m|0)!=(u|0))continue;break}i=j;u=0;v=q<>1]=L[i>>1];i=(G<<1)+i|0;m=m+K|0;if((p|0)>(m|0))continue;break}j=j+v|0;i=(i+z|0)+-64|0;u=u+K|0;if((u|0)<(p|0))continue;break}a=a+16|0;k=(p<<1)+k|0;i=(t|0)<(D|0);t=p+t|0;if(i)continue;break}o=(F<<4)+o|0;n=n+R|0;a=(x|0)<(C|0);x=p+x|0;if(a)continue;break}}h:{i:{if((b|0)>=32){k=0-w|0;b=0-l|0;break i}i=0;k=0-w|0;b=0-l|0;if(!g){while(1){g=(h+2192|0)+(i<< -4)|0;a=J[g+12>>2];J[h+8>>2]=J[g+8>>2];J[h+12>>2]=a;a=J[g+4>>2];g=J[g>>2];J[h>>2]=g;J[h+4>>2]=a;J[695492]=0;a=0-p|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];Sj(h,b,k);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;g=J[h+4>>2];a=J[h>>2];j=p;p=p>>>1|0;Gn((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,j,p);a=J[695492];J[695492]=0;if((a|0)!=1){i=i+1|0;if((r|0)==(i|0))break i;continue}break}break h}a=J[h+2204>>2];J[h+8>>2]=J[h+2200>>2];J[h+12>>2]=a;a=J[h+2196>>2];g=J[h+2192>>2]; -J[h>>2]=g;J[h+4>>2]=a;J[695492]=0;J[h>>2]=g&y;J[h+4>>2]=J[h+4>>2]&y;Sj(h,b,k);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;g=J[h+4>>2];a=J[h>>2];i=p>>>1|0;Gn((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,p,i);a=J[695492];J[695492]=0;if((a|0)==1)break h;if(M)break i;g=h+2216|0;a=J[g+4>>2];J[h+8>>2]=J[g>>2];J[h+12>>2]=a;a=J[h+2212>>2];g=J[h+2208>>2];J[h>>2]=g;J[h+4>>2]=a;J[695492]=0;a=0-i|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];Sj(h,b,k);a=J[695492];J[695492]=0;if((a|0)== -1)break h;J[695492]=0;g=J[h+4>>2];a=J[h>>2];j=i;i=p>>>2|0;Gn((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,j,i);a=J[695492];J[695492]=0;if((a|0)==1)break h;if(N)break i;g=h+2232|0;a=J[g+4>>2];J[h+8>>2]=J[g>>2];J[h+12>>2]=a;a=J[h+2228>>2];g=J[h+2224>>2];J[h>>2]=g;J[h+4>>2]=a;J[695492]=0;a=0-i|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];Sj(h,b,k);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;g=J[h+4>>2];a=J[h>>2];j=i;i=p>>>3|0;Gn((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>> -2]-a|0,J[h+12>>2]-g|0,q,j,i);a=J[695492];J[695492]=0;if((a|0)==1)break h;if(O)break i;g=h+2248|0;a=J[g+4>>2];J[h+8>>2]=J[g>>2];J[h+12>>2]=a;a=J[h+2244>>2];g=J[h+2240>>2];J[h>>2]=g;J[h+4>>2]=a;J[695492]=0;a=0-i|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];Sj(h,b,k);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;g=J[h+4>>2];a=J[h>>2];j=i;i=p>>>4|0;Gn((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,j,i);a=J[695492];J[695492]=0;if((a|0)==1)break h;if(Q)break i;g=h+2264|0;a=J[g+4>> -2];J[h+8>>2]=J[g>>2];J[h+12>>2]=a;a=J[h+2260>>2];g=J[h+2256>>2];J[h>>2]=g;J[h+4>>2]=a;J[695492]=0;a=0-i|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];Sj(h,b,k);a=J[695492];J[695492]=0;if((a|0)==1)break h;v=J[h+4>>2];n=J[h+12>>2];if((v|0)>=(n|0))break i;a=J[h>>2];m=J[h+8>>2];if((a|0)>=(m|0))break i;j=J[h+2060>>2]+(P(q,v)<<1)|0;r=q<<2;while(1){i=a;while(1){g=(i<<1)+j|0;o=L[g>>1];I[g+2>>1]=o;g=(i+q<<1)+j|0;I[g>>1]=o;I[g+2>>1]=o;i=i+2|0;if((m|0)>(i|0))continue;break}j=j+r|0;v=v+2|0;if((n|0)>(v|0))continue;break}}a= -J[c+12>>2];J[h+8>>2]=J[c+8>>2];J[h+12>>2]=a;a=J[c+4>>2];J[h>>2]=J[c>>2];J[h+4>>2]=a;J[695492]=0;Sj(h,b,k);a=J[695492];J[695492]=0;if((a|0)!=1){u=J[h+4>>2];o=J[h+12>>2];j:{if((u|0)>=(o|0))break j;t=J[h+8>>2];b=J[h>>2];if((t|0)<=(b|0))break j;n=t-b&1;k=J[h+2060>>2]+(P(q,u)<<1)|0;a=b+1|0;r=(a|0)==(t|0);while(1){i=d;m=b;if(n){c=I[(b<<1)+k>>1]+32>>6;c=(c|0)>=127?127:c;H[i|0]=(c|0)<=-128?-128:c;m=a;i=f+i|0}if(!r)while(1){j=(m<<1)+k|0;c=I[j>>1]+32>>6;c=(c|0)>=127?127:c;H[i|0]=(c|0)<=-128?-128:c;g=f+i|0; -c=I[j+2>>1]+32>>6;c=(c|0)>=127?127:c;H[g|0]=(c|0)<=-128?-128:c;i=f+g|0;m=m+2|0;if((t|0)!=(m|0))continue;break}d=d+e|0;k=(q<<1)+k|0;u=u+1|0;if((o|0)!=(u|0))continue;break}}_c(E);bc=h+2336|0;return}}i=Z()|0;_c(E)}ba(i|0)}B()}function $sb(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;i=bc-992|0;bc=i;J[a>>2]=d;if(!d){g=i+12|0;J[g>>2]=0;J[g>>2]=0;if(!(!b|!c)){d=1;a:{b:{c:{if(z6(g,b,c))break c;d:{e:{f:{g:{h:{i:{if(c>>>0>=4){d=2;if(!kd(b,22328,4))break c;j:{if(c>>> -0<6)break j;if(!kd(b,19858,6))break c;if(!kd(b,19851,6))break c;if(c>>>0<16)break j;k:{if(K[b|0]!=137|K[b+1|0]!=80|(K[b+2|0]!=78|K[b+3|0]!=71))break k;if(K[b+4|0]!=13|K[b+5|0]!=10|(K[b+6|0]!=26|K[b+7|0]!=10))break k;if(K[b+8|0]|K[b+9|0]|(K[b+10|0]|K[b+11|0]!=13))break k;if(K[b+12|0]!=73|K[b+13|0]!=72|K[b+14|0]!=68)break k;d=4;if(K[b+15|0]==82)break c}if(c>>>0<17)break j;l:{m:switch(K[b+1|0]){case 1:switch(K[b+2|0]-1|0){case 0:case 8:break l;default:break j}case 0:break m;default:break j}d=K[b+2|0]; -if(d>>>0>11|!(1<5)break g;d=8;e=K[b+3|0]-1&255;if(e>>>0<8)break h;break g}d=K[b|0];if((c|0)!=3)break f}if((d&255)!=255|K[b+1|0]!=216|K[b+2|0]!=255)break g;d=3;break c}if(139>>>e&1)break c}d=K[b|0];if(!((d|0)!=1|c>>>0<44)){if(K[b+1|0]|K[b+2|0]|(K[b+3|0]|K[b+40|0]!=32))break e;if(K[b+41|0]!=69|K[b+42|0]!=77)break e;d=21;if(K[b+43|0]!=70)break e;break c}if((d&255)!=215|c>>>0<6)break f;if(K[b+1|0]!=205|K[b+ -2|0]!=198|(K[b+4|0]|K[b+3|0]!=154))break b;if(K[b+5|0])break b;d=10;break c}if((d&255)!=1)break d}if(K[b+1|0]|K[b+2|0]!=9|(K[b+3|0]|K[b+4|0]))break b;d=10;if(K[b+5|0]!=3)break b;break c}n:{if(!((d&255)!=73|c>>>0<4)){if(K[b+1|0]!=73)break b;if(K[b+3|0]|K[b+2|0]!=42)break n;d=6;break c}o:switch((d&255)-73|0){case 4:if(K[b+2|0]|K[b+1|0]!=77)break b;d=6;if(K[b+3|0]==42)break c;break b;case 0:break o;default:break b}if(K[b+1|0]!=73)break b}if(K[b+3|0]|K[b+2|0]!=42)break b;d=6}J[g>>2]=d;f=c>>>0>15;break a}f= -c>>>0>15;d=0;if(K[b+1|0]|(K[b|0]|c>>>0<16))break a;e=J[b+18>>2];if(e>>>0>=c-40>>>0)break a;h=J[(b+e|0)+4>>2];e=K[b+6|0];if((h|0)!=((e?e:256)|0))break a;d=5;J[g>>2]=5}e=22;p:{q:{if(e6(g,b,c))break q;if(d|c>>>0<12)break p;h=K[b|0];r:{if((h|0)!=56|K[b+1|0]!=66|(K[b+2|0]!=80|K[b+3|0]!=83))break r;if(K[b+6|0]|K[b+7|0]|(K[b+9|0]|K[b+8|0]!=24))break r;if(K[b+10|0])break r;e=20;if(K[b+11|0]==24)break q}d=0;if(!f)break p;s:{if((h|0)!=89|K[b+1|0]!=166|(K[b+2|0]!=106|K[b+3|0]!=149))break s;if(K[b+4|0]|K[b+5| -0])break s;e=15;if(K[b+15|0]==24)break q}if((h|0)!=255|c>>>0<52|(K[b+1|0]!=79|K[b+2|0]!=255))break p;e=11;if(K[b+3|0]!=81)break p}J[g>>2]=e;d=e}if(E5(g,b,c)){J[g>>2]=11;d=11}t:{u:{v:{if(!j5(g,b,c)){if(EL(g,b,c))break v;if(d)break t;if(c>>>0>=6)break u;break t}J[g>>2]=11;if(!EL(g,b,c))break t}J[g>>2]=0;if(c>>>0<=5)break t}w:{x:{if(K[b|0]!=86|K[b+1|0]!=67|(K[b+2|0]!=76|K[b+3|0]!=77))break x;if(K[b+4|0]!=84|K[b+5|0]!=70|(K[b+9|0]|K[b+10|0]))break x;if(K[b+11|0])break x;J[g>>2]=0;if(c>>>0>9)break w;break t}if(c>>> -0<10)break t}y:{z:switch(K[b|0]-67|0){case 3:if(K[b+1|0]!=87|K[b+2|0]!=83)break t;if(!K[b+9|0])break y;break t;case 0:break z;default:break t}if(K[b+1|0]!=87|K[b+2|0]!=83|(K[b+8|0]!=120|K[b+9|0]!=156))break t}J[g>>2]=0}n=bc-32|0;bc=n;A:{B:{d=0;C:{if(J[g>>2])break C;D:{if(K[b|0]!=60|c>>>0<6|(K[b+1|0]!=63|K[b+2|0]!=120))break D;if(K[b+3|0]!=109|K[b+4|0]!=108|K[b+5|0]!=32)break D;d=n+20|0;E:{if(c>>>0<2147483632){F:{if(c>>>0<=10){H[d+11|0]=c;e=d;break F}f=(c|15)+1|0;e=rc(f);J[d+8>>2]=f|-2147483648;J[d>> -2]=e;J[d+4>>2]=c}p=Zc(e,b,c)+c|0,q=0,H[p|0]=q;break E}Id(d);B()}e=d;J[695492]=0;j=aa(31,n+8|0,12693)|0;d=J[695492];J[695492]=0;if((d|0)==1)break B;f=K[e+11|0];d=f<<24>>24<0;f=d?J[e+4>>2]:f;h=K[j+11|0];k=h<<24>>24<0;l=k?J[j+4>>2]:h;if(l){h=d?J[e>>2]:e;f=h+f|0;m=h;d=f-h|0;G:{H:{if((l|0)>(d|0))break H;k=k?J[j>>2]:j;o=H[k|0];while(1){d=(d-l|0)+1|0;if(!d)break H;d=pg(m,o,d);if(!d)break H;if(!Wc(d,k,l))break G;m=d+1|0;d=f-m|0;if((l|0)<=(d|0))continue;break}}d=f}f=(d|0)==(f|0)?-1:d-h|0}else f=0;if(H[j+11| -0]<0)qc(J[j>>2]);if(H[e+11|0]<0)qc(J[e>>2]);d=1;if((f|0)!=-1)break C}d=0}bc=n+32|0;break A}a=Z()|0;if(H[e+11|0]<0)qc(J[e>>2]);ba(a|0);B()}if(d)J[g>>2]=24;I:{if(c>>>0<12)break I;J:{if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))==1413695824)break J;if(!Wc(b+10|0,39182,6))break J;if(c>>>0<528)break I;if(Wc(b+522|0,39182,6))break I}J[g>>2]=25}}d=J[g>>2];J[a>>2]=d}K:{L:{M:{N:{O:{P:{d=d-11|0;if(d)if((d|0)==14)break P;else break O;J[i+12>>2]=0;H[i+23|0]=0;d=K[a+40|0];J[695492]=0;d=ja(11,i+991|0,a|0, -b|0,c|0,i+12|0,!d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){if(H[i+23|0]>=0)break N;qc(J[i+12>>2]);break N}d=Z()|0;if(H[i+23|0]>=0)break L;qc(J[i+12>>2]);ba(d|0);B()}m=!K[a+40|0];d=bc+-64|0;bc=d;f=d+48|0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=413844;J[695492]=0;h=d+24|0;_(39,h|0);e=J[695492];J[695492]=0;Q:{R:{S:{T:{U:{V:{W:{X:{if((e|0)!=1){J[695492]=0;e=$(4,16)|0;g=J[695492];J[695492]=0;if((g|0)==1)break X;J[d+12>>2]=e;J[d+16>>2]=3;J[d+20>>2]=-2147483644;J[e+8>>2]=J[9800];g=J[9799];J[e>>2]= -J[9798];J[e+4>>2]=g;J[e+12>>2]=0;J[695492]=0;ca(40,d+36|0,h|0,d+12|0);e=J[695492];J[695492]=0;if((e|0)==1)break W;if(H[d+23|0]<0)qc(J[d+12>>2]);if(H[d+35|0]<0)qc(J[d+24>>2]);e=0;h=H[d+47|0];if(!((h|0)<0?J[d+40>>2]:h&255))break T;J[695492]=0;g=d+36|0;h=aa(41,f|0,g|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break S;if(!h)break T;J[695492]=0;h=$(4,552)|0;e=J[695492];J[695492]=0;if((e|0)==1)break S;J[695492]=0;_(35,h|0);e=J[695492];J[695492]=0;if((e|0)==1)break S;J[695492]=0;ga(42,f|0,b|0,c|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break S;J[695492]=0;_(21,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break S;J[695492]=0;ga(3,f|0,g|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break S;J[695492]=0;b=J[f+4>>2];c=J[695492];J[695492]=0;if((c|0)==1)break S;e=0;J[695492]=0;b=aa(36,b|0,h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break S;if(!b)break U;J[695492]=0;e=ga(37,h|0,a|0,m|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break U;break S}e=Z()|0;break R}e=Z()|0;break V}e=Z()|0;if(H[d+23|0]>=0)break V;qc(J[d+12>>2])}if(H[d+ -35|0]>=0)break R;qc(J[d+24>>2]);break R}J[695492]=0;hA(h);a=J[695492];J[695492]=0;if((a|0)==1)break S;J[695492]=0;_(21,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break S;J[695492]=0;a=d+36|0;b=$(43,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break S;if(!b)break T;J[695492]=0;$(44,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break S}if(H[d+47|0]<0)qc(J[d+36>>2]);ve(f);bc=d- -64|0;d=e;break Q}e=Z()|0;if(H[d+47|0]>=0)break R;qc(J[d+36>>2])}ve(f);ba(e|0);B()}break N}e=qf(i+12|0,0);d=J[a>>2];J[695492]=0;d= -ha(12,e|0,b|0,c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break M;if(d){J[695492]=0;da(9,e|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break M;J[695492]=0;b=Do(e);c=J[695492];J[695492]=0;if((c|0)==1)break M;H[a+28|0]=b}J[e>>2]=1032;J[695492]=0;$(13,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break K;J[695492]=0;$(14,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break K}bc=i+992|0;return d|0}d=Z()|0;mj(e)}ba(d|0);B()}ea(0)|0;yc();B()}function nza(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;c=bc+-64|0;bc=c;a:{b:{c:{d:{g=b+8|0;if(Pl(d,g)){d=J[b+44>>2];if(!d){J[a>>2]=0;break d}J[d+4>>2]=J[d+4>>2]+1;J[a>>2]=J[b+44>>2];break d}e:{if(!K[b+89|0]){a=Kc(c+28|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;b=Z()|0;Fc(a);ba(b|0);B()}f:{g:{h:{i:{j:{k:{e=J[b+136>>2];if(e)while(1){f=0;l:{m:{n:{o:{p:{h=J[e+8>>2];if(h){J[695492]=0;J[h+4>>2]=J[h+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break p;f=J[e+8>>2]}J[695492]=0;J[c+28>>2]=f;f=aa(5066, -f+24|0,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break k;if(!f)break l;J[695492]=0;b=c+20|0;_(5270,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;d=J[c+28>>2];e=d- -64|0;aa(4993,e|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;b=J[c+20>>2];J[c+20>>2]=0;q:{if(!b)break q;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break q;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[e>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>> -2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break o;b=J[e>>2]}else b=0;J[a>>2]=b;J[695492]=0;a=J[d+4>>2]-1|0;J[d+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break d;J[695492]=0;_(4987,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}ba(Z()|0);B()}e=Z()|0;break j}e=Z()|0;break j}e=Z()|0;vc(c+20|0);break j}f=J[c+28>>2];r:{if(!f)break r;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break f;if(h)break r;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)== -1)break f}e=J[e>>2];if(e)continue;break}J[a>>2]=0;J[695492]=0;e=b+92|0;f=J[e>>2];h=J[695492];J[695492]=0;if((h|0)==1)break c;if(!(f&1))break d;switch(J[b+56>>2]-1|0){case 1:case 3:case 4:break g;case 2:break h;case 0:break i;default:break d}}e=Z()|0}vc(c+28|0);ba(e|0);B()}J[695492]=0;e=J[e>>2];f=J[695492];J[695492]=0;if((f|0)==1)break c;if(!(e&2))break d;J[695492]=0;e=c+28|0;da(5226,e|0,d|0);f=J[695492];J[695492]=0;s:{t:{u:{v:{w:{x:{y:{if((f|0)!=1){J[695492]=0;f=aa(5066,e|0,g|0)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break y;ud(e);if(f)break s;J[695492]=0;b=c+12|0;ca(5231,b|0,d|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break x;J[695492]=0;ca(5048,c+20|0,2394197,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break w;b=J[c+20>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=ja(5018,e|0,b|0,2373496,1511,2401786,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break v;J[695492]=0;_(5019,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break e;e=Z()|0;Fc(b);break u}e=Z()|0;break b}e=Z()|0;ud(c+28|0);break b}e=Z()|0;break b}e=Z()| -0;break t}e=Z()|0}sc(c+20|0)}sc(c+12|0);break b}f=J[b+108>>2];J[695492]=0;e=c+28|0;da(5113,e|0,d|0);g=J[695492];J[695492]=0;z:{A:{B:{C:{D:{E:{F:{G:{if((g|0)!=1){J[695492]=0;ca(5275,c+8|0,f|0,e|0);f=J[695492];J[695492]=0;if((f|0)==1)break G;sc(e);f=J[c+8>>2];if(f)break A;J[695492]=0;b=c+12|0;da(5113,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break F;J[695492]=0;ca(5048,c+20|0,2394376,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break E;b=J[c+20>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=ja(5018,e| -0,b|0,2373496,1516,2401786,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break D;J[695492]=0;_(5019,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break e;e=Z()|0;Fc(b);break C}e=Z()|0;break b}e=Z()|0;sc(c+28|0);break b}e=Z()|0;break z}e=Z()|0;break B}e=Z()|0}sc(c+20|0)}sc(c+12|0);break z}e=J[f+24>>2];f=J[f+20>>2];J[695492]=0;d=c+28|0;ia(5276,d|0,b+44|0,f|0,e|0);b=J[695492];J[695492]=0;H:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break H;vc(d);vc(c+8|0);break d}e=Z()|0; -break z}e=Z()|0;vc(c+28|0)}vc(c+8|0);break b}J[695492]=0;e=J[e>>2];f=J[695492];J[695492]=0;if((f|0)==1)break c;if(!(e&2))break d;J[695492]=0;e=c+28|0;da(5226,e|0,d|0);f=J[695492];J[695492]=0;I:{J:{K:{L:{M:{N:{O:{if((f|0)!=1){J[695492]=0;f=aa(5066,e|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break O;ud(e);if(f)break I;J[695492]=0;b=c+12|0;ca(5231,b|0,d|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break N;J[695492]=0;ca(5048,c+20|0,2394197,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break M;b=J[c+20>>2]; -b=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=ja(5018,e|0,b|0,2373496,1530,2401786,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break L;J[695492]=0;_(5019,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break e;e=Z()|0;Fc(b);break K}e=Z()|0;break b}e=Z()|0;ud(c+28|0);break b}e=Z()|0;break b}e=Z()|0;break J}e=Z()|0}sc(c+20|0)}sc(c+12|0);break b}f=J[b+48>>2];J[695492]=0;e=c+28|0;da(5113,e|0,d|0);g=J[695492];J[695492]=0;P:{Q:{R:{S:{T:{U:{V:{W:{if((g|0)!=1){J[695492]=0;ca(5167,c+8|0,f|0,e|0);f=J[695492];J[695492]=0; -if((f|0)==1)break W;sc(e);f=J[c+8>>2];if(f)break Q;J[695492]=0;b=c+12|0;da(5113,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break V;J[695492]=0;ca(5048,c+20|0,2394376,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break U;b=J[c+20>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=ja(5018,e|0,b|0,2373496,1536,2401786,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break T;J[695492]=0;_(5019,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break e;e=Z()|0;Fc(b);break S}e=Z()|0;break b}e=Z()|0;sc(c+28|0);break b}e=Z()|0;break P}e= -Z()|0;break R}e=Z()|0}sc(c+20|0)}sc(c+12|0);break P}e=J[f+12>>2];f=J[f+8>>2];J[695492]=0;d=c+28|0;ia(5276,d|0,b+44|0,f|0,e|0);b=J[695492];J[695492]=0;X:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break X;vc(d);vc(c+8|0);break d}e=Z()|0;break P}e=Z()|0;vc(c+28|0)}vc(c+8|0);break b}J[695492]=0;e=J[e>>2];f=J[695492];J[695492]=0;if((f|0)==1)break c;Y:{if(!(e&2)|J[b+56>>2]!=4)break Y;f=J[b+48>>2];J[695492]=0;b=c+28|0;da(5113,b|0,d|0);e=J[695492];J[695492]=0;Z:{_:{$:{aa:{ba:{ca:{if((e| -0)!=1){J[695492]=0;e=c+20|0;ca(5167,e|0,f|0,b|0);f=J[695492];J[695492]=0;if((f|0)==1)break ca;f=J[c+20>>2];vc(e);sc(b);if(f)break Y;J[695492]=0;f=c+12|0;ca(5231,f|0,d|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break ba;J[695492]=0;ca(5048,e|0,2394592,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break aa;d=J[c+20>>2];d=J[(d?d+12|0:2728584)>>2];J[695492]=0;b=ja(5018,b|0,d|0,2373496,1549,2401786,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break $;J[695492]=0;_(5019,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break e; -e=Z()|0;Fc(b);break _}e=Z()|0;break b}e=Z()|0;sc(c+28|0);break b}e=Z()|0;break b}e=Z()|0;break Z}e=Z()|0}sc(c+20|0)}sc(c+12|0);break b}J[695492]=0;b=$(5074,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;if(!b)break d;J[695492]=0;b=c+28|0;ia(5277,b|0,d|0,0,-1);d=J[695492];J[695492]=0;da:{if((d|0)!=1){J[695492]=0;aa(4993,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break da;a=J[c+28>>2];J[c+28>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break d; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}e=Z()|0;break b}e=Z()|0;vc(c+28|0);break b}ea(0)|0;yc()}B()}bc=c- -64|0;return}e=Z()|0}vc(a);ba(e|0);B()}ea(0)|0;yc();B()}function fda(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;k=bc-256|0;bc=k;f=J[a+608>>2];d=J[a+604>>2];x=1;o=J[a+584>>2];v=J[o+72>>2];g=J[o+68>>2];l=J[o+64>>2];a:{b:{c:{d:{if((c|0)<=0)b=d;else{t=d+f|0;u=J[o+60>>2];r=J[o+88>>2];p= -J[o+12>>2];y=(p|0)<=0;while(1){e:{if(y){j=0;i=r;break e}e=J[o+84>>2];f=e+4|0;m=J[e>>2];n=0;i=r;j=0;q=0;f:{g:{h:{i:{j:{k:{l:{m:{while(1){e=g;n:{if((g|0)>6)break n;if(d>>>0>=t>>>0){e=7;if(g)break n;break c}l=K[K[d|0]+u|0]<>>h|0;g=e-h|0;o:{p:{q:{r:{s:{t:switch(K[s|0]-1|0){case 0:u:{if((i|0)==(r|0)){h=f;break u}h=f;if((j|0)<(m|0))break u;while(1){e=J[f>>2];s=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+s|0;if((m|0)<=(j|0))continue;break}}j=J[h>>2]+m|0;q=j+ -(n+q|0)|0;f=h+8|0;m=J[h+4>>2]+j|0;break o;case 1:if(!(i-r&4))break q;while(1){v:{if((g|0)>12){e=g;break v}if(d>>>0>=t>>>0){e=13;if(g)break v;break c}n=g+8|0;h=d+1|0;l=K[K[d|0]+u|0]<4){e=n;d=h;break v}e=13;if(h>>>0>=t>>>0){d=h;break v}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=K[h|0];if(e-10>>>0>=2){if((e|0)!=8)break h;h=J[h+4>>2];J[i>>2]=h+q;e=i+4|0;j=h+j|0;q=0;while(1){w:{if((g|0)>11){h=g;break w}if(d>>>0>=t>>>0){h=12;if(g)break w; -i=e;break c}s=g+8|0;n=d+1|0;l=K[K[d|0]+u|0]<3){h=s;d=n;break w}h=12;if(n>>>0>=t>>>0){d=n;break w}h=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=h-g|0;x:switch(K[n|0]-7|0){case 2:case 4:h=J[n+4>>2];q=h+q|0;j=h+j|0;continue;case 0:break x;default:break m}break}h=e;e=J[n+4>>2];J[h>>2]=e+q;j=e+j|0;break p}else{e=J[h+4>>2];q=e+q|0;j=e+j|0;continue}}case 5:J[i>>2]=p-j;f=J[a+12>>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+ -208>>2]=j;J[k+204>>2]=e;J[k+200>>2]=f?88466:88523;J[k+196>>2]=n;J[k+192>>2]=m;Nc(h,96422,89093,k+192|0);i=i+4|0;break g;case 11:J[i>>2]=p-j;i=i+4|0;y:{if((g|0)>3){f=g;break y}if(d>>>0>=t>>>0){f=4;if(!g)break c;break y}f=g+8|0;l=K[K[d|0]+u|0]<>2]&1024;h=J[(e?504:480)+a>>2];g=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+240>>2]=j;J[k+236>>2]=h;J[k+232>>2]=e?88466:88523;J[k+228>>2]=n;J[k+224>>2]=m;Nc(g,96422,88300,k+224|0)}l=l>>>4|0;g=f-4|0;v=1;break g;case 4:z:{if((i|0)==(r| -0)){h=f;break z}h=f;if((j|0)<(m|0))break z;while(1){e=J[f>>2];w=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+w|0;if((m|0)<=(j|0))continue;break}}f=(m+n|0)-J[s+4>>2]|0;J[i>>2]=f+q;j=f+j|0;f=h-4|0;m=m-J[f>>2]|0;i=i+4|0;break s;case 2:break r;case 3:break t;default:break j}A:{if((i|0)==(r|0)){h=f;break A}h=f;if((j|0)<(m|0))break A;while(1){e=J[f>>2];w=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+w|0;if((m|0)<=(j|0))continue;break}}e=J[s+4>>2];J[i>>2]=e+((n+q|0)+m|0);f=h+4|0;j=e+m|0;m=J[h>>2]+m|0;i=i+4|0}q=0;break o}B:{if((i| -0)==(r|0)){e=m;h=f;break B}h=f;e=m;if((e|0)>(j|0))break B;while(1){m=J[f>>2];s=J[f+4>>2];h=f+8|0;f=h;e=(e+m|0)+s|0;if((e|0)<=(j|0))continue;break}}J[i>>2]=(n+q|0)+e;f=h+4|0;i=i+4|0;m=J[h>>2]+e|0;q=0;j=e;break o}while(1){C:{if((g|0)>11){e=g;break C}if(d>>>0>=t>>>0){e=12;if(!g)break c;break C}n=g+8|0;h=d+1|0;l=K[K[d|0]+u|0]<3){e=n;d=h;break C}e=12;if(h>>>0>=t>>>0){d=h;break C}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=i;D:switch(K[h| -0]-7|0){case 2:case 4:e=J[h+4>>2];q=e+q|0;j=e+j|0;continue;case 0:break D;default:break m}break}e=J[h+4>>2];J[i>>2]=e+q;h=i+4|0;j=e+j|0;q=0;while(1){E:{if((g|0)>12){e=g;break E}if(d>>>0>=t>>>0){e=13;if(g)break E;i=h;break c}s=g+8|0;n=d+1|0;l=K[K[d|0]+u|0]<4){e=s;d=n;break E}e=13;if(n>>>0>=t>>>0){d=n;break E}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=K[n|0];if(e-10>>>0>=2){if((e|0)!=8){i=h;break h}e=J[n+4>>2];J[h>>2]=e+q;j=e+j|0}else{e= -J[n+4>>2];q=e+q|0;j=e+j|0;continue}break}}q=0;i=i+8|0;if((r|0)==(i|0)){i=r;break o}if((j|0)<(m|0)|(m|0)>=(p|0))break o;while(1){e=f+8|0;m=J[f+4>>2]+(J[f>>2]+m|0)|0;if((m|0)>(j|0)){f=e;break o}f=e;if((m|0)<(p|0))continue;break}}n=0-j|0;if((j|0)<(p|0))continue;break}if(!q)break e;if((j+q|0)>=(p|0))break f;if((g|0)<=0)break l;f=g;break k}f=J[a+12>>2]&1024;h=J[(f?504:480)+a>>2];i=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+144>>2]=j;J[k+140>>2]=h;J[k+136>>2]=f?88466:88523;J[k+132>>2]=n;J[k+128>>2]=m;Nc(i, -96422,88300,k+128|0);i=e;break g}if(d>>>0>=t>>>0){f=1;if(!g)break c;break k}f=g+8|0;l=K[K[d|0]+u|0]<>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+48>>2]=j;J[k+44>>2]=e;J[k+40>>2]=f?88466:88523;J[k+36>>2]=n;J[k+32>>2]=m;Nc(h,96422,88300,k+32|0);break g}l=l>>>1|0;g=f-1|0;break f}f=J[a+12>>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+176>>2]=j;J[k+172>>2]=e;J[k+168>>2]=f?88466:88523;J[k+164>>2]=n;J[k+160>> -2]=m;Nc(h,96422,88300,k+160|0)}if(!q)break e}J[i>>2]=q;i=i+4|0}F:{if((j|0)==(p|0))break F;f=J[a+12>>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+24>>2]=p;J[k+20>>2]=j;J[k+16>>2]=e;J[k+12>>2]=f?88466:88523;J[k+8>>2]=n;J[k+4>>2]=j>>>0

      >>0?88855:88910;J[k>>2]=m;ae(h,96422,88772,k);f=(j|0)>(p|0);G:{if((j|0)<=(p|0)|i>>>0<=r>>>0)break G;while(1){i=i-4|0;j=j-J[i>>2]|0;f=(p|0)<(j|0);if((j|0)<=(p|0))break G;if(i>>>0>r>>>0)continue;break}}if((j|0)<(p|0)){if(i-r&4){J[i>>2]=0;i=i+ -4|0}J[i>>2]=p-((j|0)>0?j:0);i=i+4|0;break F}if(!f)break F;J[i+4>>2]=0;J[i>>2]=p;i=i+8|0}if(v)break d;gc[J[o+76>>2]](b,r,i,p);v=0;J[i>>2]=0;f=J[o+88>>2];r=J[o+84>>2];J[o+88>>2]=r;J[o+84>>2]=f;J[o+108>>2]=J[o+108>>2]+1;f=J[o+8>>2];b=f+b|0;c=c-f|0;if((c|0)>0)continue;break}f=J[a+608>>2];b=J[a+604>>2]}J[o+72>>2]=v;J[o+64>>2]=l;J[o+68>>2]=g;J[a+604>>2]=d;J[a+608>>2]=(b-d|0)+f;break a}if((g|0)>12)break b;if(d>>>0>=t>>>0){g=g?13:0;break b}f=g+8|0;c=d+1|0;l=K[K[d|0]+u|0]<4){g=f;d=c;break b}if(c>>> -0>=t>>>0){g=13;d=c;break b}g=g+16|0;l=K[K[d+1|0]+u|0]<>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];h=J[a>>2];g=J[o+108>>2];J[k+112>>2]=j;J[k+108>>2]=f;J[k+104>>2]=c?88466:88523;J[k+100>>2]=g;J[k+96>>2]=h;ae(e,96422,88640,k+96|0);if(q){J[i>>2]=q;i=i+4|0}g=0;if((j|0)==(p|0))break b;c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];h=J[a>>2];m=J[o+108>>2];J[k+88>>2]=p;J[k+84>>2]=j;J[k+80>>2]=f;J[k+76>>2]=c?88466:88523;J[k+72>>2]=m;J[k+68>>2]=j>>>0

      >>0?88855:88910; -J[k+64>>2]=h;ae(e,96422,88772,k- -64|0);f=(j|0)>(p|0);H:{if((j|0)<=(p|0)|i>>>0<=r>>>0)break H;while(1){i=i-4|0;j=j-J[i>>2]|0;f=(p|0)<(j|0);if((j|0)<=(p|0))break H;if(i>>>0>r>>>0)continue;break}}if((j|0)<(p|0)){if(i-r&4){J[i>>2]=0;i=i+4|0}J[i>>2]=p-((j|0)>0?j:0);i=i+4|0;break b}if(!f)break b;J[i+4>>2]=0;J[i>>2]=p;i=i+8|0}gc[J[o+76>>2]](b,r,i,p);J[o+72>>2]=v;J[o+64>>2]=l>>>13;J[o+68>>2]=g-13;b=J[a+604>>2];J[a+604>>2]=d;J[a+608>>2]=J[a+608>>2]+(b-d|0);x=J[o+108>>2]?1:-1}bc=k+256|0;return x|0}function fz(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,u=0,v=0;m=bc-16|0;bc=m;J[m+12>>2]=d;a:{b:{c:{if(R(pC(a+648|0))>1)break c;i=J[a+648>>2];if(O[i>>3]<0)break c;if(!(O[i+24>>3]<0))break b}Wu(a);d:{if(J[a+2232>>2]==512){bv(a+1984|0);break d}WK(a+2312|0)}J[a+2232>>2]=4;d=a+1984|0;J[d+244>>2]=J[d+16>>2];J[d+16>>2]=4;g=a+2312|0;VK(g,b,c,m+12|0,J[a+2308>>2],e,f);PS(a,256);J[a+2E3>>2]=-1;J[a+2232>>2]=-1;bv(d);if(J[a+2232>>2]==512){bv(d);break a}WK(g);break a}J[m+8>>2]=d;J[m>>2]=0;J[m+4>>2]= -0;i=a+1984|0;d=bc-192|0;bc=d;e:{f:{g:{h:{i:{j:{k:{l:{if(!b|J[m+8>>2]!=1)break l;a=J[b>>2];if((a|0)<=159){if((a|0)==9)break k;if((a|0)!=32)break l;break k}if((a|0)==160|(a|0)==8195)break k}j=O[e>>3];O[d+184>>3]=j;l=O[f>>3];O[d+176>>3]=l;O[d+168>>3]=j+O[g>>3];O[d+160>>3]=l+O[h>>3];je(J[i+48>>2],d+184|0,d+176|0);je(J[i+48>>2],d+168|0,d+160|0);J[d+64>>2]=J[m+8>>2];a=d+144|0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2451200;m:{n:{o:{s=d- -64|0;g=J[s>>2];if(g){e=a+4|0;if(g>>>0>=1073741824){J[695492]= -0;_(1587,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break o;break n}J[695492]=0;h=g<<2;f=$(4,h|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break o;J[a+8>>2]=f;J[a+4>>2]=f;J[a+12>>2]=f+h;while(1){q=(r<<2)+b|0;f=J[a+8>>2];p:{if((f|0)!=J[a+12>>2]){J[f>>2]=J[q>>2];J[a+8>>2]=f+4;break p}q:{r:{h=J[e>>2];k=f-h|0;t=k>>2;n=t+1|0;s:{if(n>>>0>=1073741824){J[695492]=0;_(1587,e|0);break s}p=k>>1;n=k>>>0>=2147483644?1073741823:n>>>0

      >>0?p:n;if(!n){p=0;break q}if(n>>>0<1073741824)break r;J[695492]=0;ka(209)}b=J[695492]; -J[695492]=0;if((b|0)!=1)break n;break o}J[695492]=0;p=$(4,n<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break o}k=(t<<2)+p|0;J[k>>2]=J[q>>2];q=k+4|0;if((f|0)!=(h|0))while(1){k=k-4|0;f=f-4|0;J[k>>2]=J[f>>2];if((f|0)!=(h|0))continue;break}J[a+12>>2]=(n<<2)+p;J[a+8>>2]=q;J[a+4>>2]=k;if(!h)break p;qc(h);g=J[s>>2]}r=r+1|0;if(r>>>0>>0)continue;break}}break m}c=Z()|0;b=J[e>>2];if(b){J[a+8>>2]=b;qc(b)}ba(c|0);B()}B()}t:{u:{v:{w:{x:{y:{z:{if(!b|!c)break z;f=J[m+8>>2];if(!f)break z;e=0;while(1){h=e<<2;g=J[h+ -b>>2];if(!((1<>>0<=13:0)|g-32>>>0<55264|(g-57344>>>0<8190|(g|0)>65535))){J[695492]=0;f=J[a+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break y;J[f+h>>2]=32;f=J[m+8>>2]}e=e+1|0;if(f>>>0>e>>>0)continue;break}}A:{if(!K[i+241|0]){e=J[i+28>>2];break A}e=J[i+48>>2];J[695492]=0;j=O[J[e>>2]>>3];e=J[695492];J[695492]=0;if((e|0)==1)break x;e=J[i+48>>2];J[695492]=0;l=O[J[e>>2]+24>>3];e=J[695492];J[695492]=0;if((e|0)==1)break x;e=J[i+28>>2];O[e+32>>3]=(j+l)*.5*O[e+32>>3];H[i+241|0]=0}f=J[i+64>>2];J[695492]= -0;da(6334,f|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break x;J[d+136>>2]=0;J[d+140>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[d+120>>2]=0;J[d+124>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;e=J[i+64>>2];B:{if(c){J[695492]=0;J[d+64>>2]=1;da(6335,e|0,d- -64|0);b=J[695492];J[695492]=0;if((b|0)==1)break w;b=J[m+8>>2];e=J[i+64>>2];J[695492]=0;ab(6336,e|0,c|0,b|0,+O[d+184>>3],+O[d+176>>3],d+136|0,d+128|0,d+120|0,d+112|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break B;break g}J[695492]=0;J[d+64>>2]=0;da(6335,e|0,d- -64| -0);c=J[695492];J[695492]=0;if((c|0)==1)break v;c=J[m+8>>2];e=J[i+64>>2];J[695492]=0;ab(6336,e|0,b|0,c|0,+O[d+184>>3],+O[d+176>>3],d+136|0,d+128|0,d+120|0,d+112|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break g}j=O[m>>3];J[695492]=0;l=O[d+176>>3];c=$(4,272)|0;b=J[695492];J[695492]=0;C:{D:{E:{if((b|0)!=1){J[c>>2]=2430036;J[c+4>>2]=0;J[c+8>>2]=0;b=J[i+64>>2];J[695492]=0;b=aa(6337,c+16|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){b=Z()|0;qc(c);break f}J[d+108>>2]=c;J[d+104>>2]=b;b=J[i+64>>2];c=J[b+116>> -2];J[d+96>>2]=J[b+112>>2];J[d+100>>2]=c;c=J[b+108>>2];J[d+88>>2]=J[b+104>>2];J[d+92>>2]=c;c=J[b+100>>2];J[d+80>>2]=J[b+96>>2];J[d+84>>2]=c;c=J[b+92>>2];J[d+72>>2]=J[b+88>>2];J[d+76>>2]=c;c=J[b+84>>2];J[d+64>>2]=J[b+80>>2];J[d+68>>2]=c;b=J[i+64>>2]+120|0;J[695492]=0;c=aa(6338,d+24|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E;b=K[c+12|0];if(J[i+16>>2]==256)break D;e=(b|0)!=0;break C}b=Z()|0;break f}b=Z()|0;break h}e=(b|J[J[i+28>>2]+40>>2])!=0}b=J[i+68>>2];J[695492]=0;ia(6339,b|0,c|0,d- -64| -0,a|0);b=J[695492];J[695492]=0;F:{if((b|0)==1)break F;b=J[i+64>>2];J[695492]=0;o=O[b+96>>3];u=O[b+40>>3];v=O[b+104>>3];b=J[695492];J[695492]=0;if((b|0)==1)break F;o=o*u*.35277777777777775/v;O[d+112>>3]=o;b=J[d+104>>2];j=l+j;O[b+16>>3]=j;l=j-o;O[b+8>>3]=l;O[b+24>>3]=j-l;j=O[d+184>>3];O[b+32>>3]=j;l=O[d+120>>3];O[b+48>>3]=l;O[b+40>>3]=j+l;J[695492]=0;aa(6341,b+224|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break F;b=J[d+104>>2];j=O[b+16>>3];l=O[J[i+28>>2]+32>>3]/O[d+88>>3]*.35277777777777775;o=O[d+ -96>>3];O[b+208>>3]=j-O[d+64>>3]*l-o;O[b+216>>3]=j+O[d+72>>3]*l-o;b=J[i+36>>2];f=J[i+56>>2];g=d+4|0;KS(g,J[i+68>>2]);j=O[J[i+28>>2]+32>>3];h=K[J[i+68>>2]+29|0];k=K[J[i+68>>2]+28|0];J[695492]=0;$a(6342,d+16|0,f|0,b|0,g|0,+j,h|0,e|k);b=J[695492];J[695492]=0;G:{H:{if((b|0)!=1){f=J[d+16>>2];g=J[d+20>>2];J[d+16>>2]=0;J[d+20>>2]=0;e=J[d+104>>2];b=J[e+60>>2];J[e+56>>2]=f;J[e+60>>2]=g;I:{if(!b)break I;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break I;gc[J[J[b>>2]+8>>2]](b);Vc(b)}b=J[d+20>>2];J:{if(!b)break J;e=J[b+4>> -2];J[b+4>>2]=e-1;if(e)break J;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if(H[d+15|0]<0)qc(J[d+4>>2]);b=J[i+64>>2];J[695492]=0;j=+qa(6343,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break j;g=J[d+104>>2];O[g+184>>3]=j;if(!K[i+24|0])break G;b=J[i+28>>2];if((b|0)==(g+112|0))break u;e=g+116|0;f=b+4|0;k=K[b+15|0];h=k<<24>>24;if(H[g+127|0]>=0){if((h|0)<0)break H;b=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=b;J[e+8>>2]=J[f+8>>2];break u}g=J[b+8>>2];b=J[b+4>>2];J[695492]=0;n=b;b=(h|0)<0;ga(1629,e|0,(b?n:f)|0,(b?g:k)|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break j;break u}b=Z()|0;if(H[d+15|0]>=0)break i;qc(J[d+4>>2]);break i}f=J[b+8>>2];b=J[b+4>>2];J[695492]=0;ga(1630,e|0,b|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break u;break j}KS(d+4|0,J[i+68>>2]);e=J[d+104>>2];b=e;if(H[b+139|0]<0){qc(J[b+128>>2]);e=J[d+104>>2]}f=J[d+8>>2];J[b+128>>2]=J[d+4>>2];J[b+132>>2]=f;J[b+136>>2]=J[d+12>>2];O[e+144>>3]=O[J[i+28>>2]+32>>3];J[J[d+104>>2]+152>>2]=K[J[i+68>>2]+28|0];e=J[d+104>>2];J[e+156>>2]=K[J[i+68>>2]+29|0];j=O[J[i+28>>2]+32>>3]; -break t}b=Z()|0;break i}b=Z()|0;break f}b=Z()|0;break f}b=Z()|0;break f}b=Z()|0;break f}e=J[d+104>>2];b=J[i+28>>2];j=O[b+32>>3];O[e+144>>3]=j;J[e+176>>2]=J[b+64>>2]}H[e+245|0]=K[i+25|0];b=J[i+60>>2];J[695492]=0;wS(b,j);b=J[695492];J[695492]=0;if((b|0)==1)break j;b=J[i+156>>2];K:{if((b|0)!=J[i+160>>2]){J[b>>2]=J[d+104>>2];e=J[d+108>>2];J[b+4>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;J[i+156>>2]=b+8;break K}J[695492]=0;da(6345,i+152|0,d+104|0);b=J[695492];J[695492]=0;if((b|0)==1)break j}b=J[c+28>>2];if(b){J[c+ -32>>2]=b;qc(b)}if(H[c+11|0]<0)qc(J[c>>2]);b=J[d+108>>2];L:{if(!b)break L;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break L;gc[J[J[b>>2]+8>>2]](b);Vc(b)}mk(a)}bc=d+192|0;break e}b=Z()|0}av(c)}Ie(d+104|0);break f}b=Z()|0}mk(a);ba(b|0);B()}}bc=m+16|0}function IWa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=bc-32|0;bc=e;k=J[a+404>>2];a:{if(!J[a+212>>2]){if(J[a+288>>2]<=0)break a;while(1){c=J[((b<<2)+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2]))$m(a,J[c+20>>2],0);if(J[a+364>>2])$m(a,J[c+24>>2],1);b=b+1| -0;if((b|0)>2])continue;break}break a}J[e+16>>2]=0;J[e+20>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;c=J[a+288>>2];b:{if((c|0)<=0)break b;b=J[a+364>>2];if(!J[a+360>>2]){if(!J[a+368>>2]){if(b){b=0;if((c|0)!=1){f=c&-2;g=a+292|0;while(1){j=e+16|0;h=b<<2;i=J[h+g>>2];H[j+J[i+20>>2]|0]=1;H[J[i+24>>2]+e|0]=1;h=J[g+(h|4)>>2];H[j+J[h+20>>2]|0]=1;H[J[h+24>>2]+e|0]=1;b=b+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}if(!(c&1))break b;b=J[((b<<2)+a|0)+292>>2];H[J[b+20>> -2]+(e+16|0)|0]=1;H[J[b+24>>2]+e|0]=1;break b}b=0;if(c>>>0>=4){j=c&-4;f=a+292|0;while(1){i=e+16|0;h=b<<2;H[i+J[J[h+f>>2]+20>>2]|0]=1;H[i+J[J[f+(h|4)>>2]+20>>2]|0]=1;H[i+J[J[f+(h|8)>>2]+20>>2]|0]=1;H[i+J[J[f+(h|12)>>2]+20>>2]|0]=1;b=b+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}c=c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>>2]+20>>2]+(e+16|0)|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}break b}if(!b)break b;b=0;if(c>>>0>=4){i=c&-4;f=a+292|0;while(1){h=b<<2;H[J[J[h+f>>2]+24>>2]+e|0]=1; -H[J[J[f+(h|4)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|8)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|12)>>2]+24>>2]+e|0]=1;b=b+4|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}c=c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>>2]+24>>2]+e|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}break b}if(!b)break b;b=0;if(c>>>0>=4){i=c&-4;f=a+292|0;while(1){h=b<<2;H[J[J[h+f>>2]+24>>2]+e|0]=1;H[J[J[f+(h|4)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|8)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|12)>>2]+24>>2]+e|0]=1;b=b+4|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}c= -c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>>2]+24>>2]+e|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}d=H[e+15|0]+(H[e+31|0]+(H[e+14|0]+(H[e+30|0]+(H[e+13|0]+(H[e+29|0]+(H[e+12|0]+(H[e+28|0]+(H[e+11|0]+(H[e+27|0]+(H[e+10|0]+(H[e+26|0]+(H[e+9|0]+(H[e+25|0]+(H[e+8|0]+(H[e+24|0]+(H[e+7|0]+(H[e+23|0]+(H[e+6|0]+(H[e+22|0]+(H[e+5|0]+(H[e+21|0]+(H[e+4|0]+(H[e+20|0]+(H[e+3|0]+(H[e+19|0]+(H[e+2|0]+(H[e+18|0]+(H[e+1|0]+(H[e+17|0]+(H[e|0]+H[e+16|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)| -0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;if(!d)break a;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(gc[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=204;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(gc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=(d<<1)+2|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(gc[J[b+12>>2]](a)| -0)break e;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(gc[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=0;while(1){g:{if(!K[(e+16|0)+b|0])break g;c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h:{if(d)break h;if(gc[J[c+12>>2]](a)|0)break h;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=a+b|0;g=K[c+152|0];f=K[c+168|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g+(f<<4);d=J[c+4>> -2]-1|0;J[c+4>>2]=d;if(d)break g;if(gc[J[c+12>>2]](a)|0)break g;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}i:{if(!K[b+e|0])break i;c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b+16;d=J[c+4>>2]-1|0;J[c+4>>2]=d;j:{if(d)break j;if(gc[J[c+12>>2]](a)|0)break j;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}g=K[(a+b|0)+184|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(d)break i;if(gc[J[c+12>>2]](a)|0)break i;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}b=b+1|0;if((b|0)!=16)continue;break}}if(J[a+ -236>>2]!=J[k+28>>2]){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(gc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=221;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(gc[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;m:{if(c)break m;if(gc[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b= -J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=4;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(gc[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}c=J[a+236>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;o:{if(d)break o;if(gc[J[b+12>>2]](a)|0)break o;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;p:{if(c)break p;if(gc[J[b+12>>2]](a)|0)break p;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}J[k+28>>2]= -J[a+236>>2]}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;q:{if(c)break q;if(gc[J[b+12>>2]](a)|0)break q;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=218;c=J[b+4>>2]-1|0;J[b+4>>2]=c;r:{if(c)break r;if(gc[J[b+12>>2]](a)|0)break r;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=J[a+288>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=(d<<1)+6|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;s:{if(c)break s;if(gc[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]= -25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(gc[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=J[a+288>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;u:{if(c)break u;if(gc[J[b+12>>2]](a)|0)break u;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(J[a+288>>2]>0){g=0;while(1){c=J[((g<<2)+a|0)+292>>2];f=J[c>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=f;d=J[b+4>>2]-1|0;J[b+4>>2]=d;v:{if(d)break v; -if(gc[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=0;b=0;w:{if(J[a+360>>2])break w;b=0;if(J[a+368>>2])break w;b=J[c+20>>2]}d=J[a+364>>2]?J[c+24>>2]:d;c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=(b<<4)+d;b=J[c+4>>2]-1|0;J[c+4>>2]=b;x:{if(b)break x;if(gc[J[c+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}g=g+1|0;if((g|0)>2])continue;break}}d=J[a+360>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;y:{if(c)break y;if(gc[J[b+12>>2]](a)| -0)break y;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=J[a+364>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(gc[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=J[a+372>>2];g=J[a+368>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d+(g<<4);c=J[b+4>>2]-1|0;J[b+4>>2]=c;A:{if(c)break A;if(gc[J[b+12>>2]](a)|0)break A;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}bc=e+32|0}function ega(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,u=0,v=0;l=bc-528|0;bc=l;J[l+520>>2]=k;J[l+524>>2]=b;a:{b:{if(Lj(a,l+524|0)){J[f>>2]=J[f>>2]|4;a=0;break b}J[l+72>>2]=6678;k=l+72|0;q=ng(l+104|0,l+112|0,k);b=J[q>>2];J[l+100>>2]=b;J[l+96>>2]=b+400;r=Se(k);o=Se(l+60|0);n=Se(l+48|0);m=Se(l+36|0);p=Se(l+24|0);J[695492]=0;Ea(6691,c|0,d|0,l+92|0,l+88|0,l+84|0,r|0,o|0,n|0,m|0,l+20|0);b=J[695492];J[695492]=0;if((b|0)!=1){J[j>>2]=J[i>>2];t=e&512;e=0;k=0;while(1){c=k;c:{d:{e:{f:{if((e|0)==4)break f; -J[695492]=0;d=aa(6645,a|0,l+524|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(d)break f;b=0;g:{h:{i:{j:{k:switch(H[(l+92|0)+e|0]){case 1:if((e|0)==3)break d;J[695492]=0;d=$(6646,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;d=ga(6692,h|0,1,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(d){J[695492]=0;ca(6693,l+12|0,a|0,0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[l+12>>2];J[695492]=0;da(3256,p|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j}break a}J[f>>2]=J[f>>2]| -4;a=0;break e;case 4:break g;case 2:break h;case 3:break i;case 0:break k;default:break c}if((e|0)==3)break d}while(1){J[695492]=0;d=aa(6645,a|0,l+524|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(d)break d;J[695492]=0;d=$(6646,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;d=ga(6692,h|0,1,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(!d)break d;J[695492]=0;ca(6693,l+12|0,a|0,0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[l+12>>2];J[695492]=0;da(3256,p|0,b|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)continue}break}break a}l:{if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b)break l;J[695492]=0;b=$(6646,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(K[n+11|0]>>>7|0)d=J[n>>2];else d=n;if(J[d>>2]!=(b|0))break l;J[695492]=0;$(6648,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;H[g|0]=0;if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;k=b>>>0>1?n:c;break c}m:{if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break m;J[695492]=0;b=$(6646,a|0)|0; -d=J[695492];J[695492]=0;if((d|0)==1)break a;if(K[m+11|0]>>>7|0)d=J[m>>2];else d=m;if(J[d>>2]!=(b|0))break m;J[695492]=0;$(6648,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;H[g|0]=1;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;k=b>>>0>1?m:c;break c}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;d=!b;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!(d|!b)){J[f>>2]=J[f>>2]|4;a=0;break e}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b){if(K[m+11|0]>>>7|0)b=J[m+4>>2]; -else b=K[m+11|0]&127;if(!b)break d}if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;H[g|0]=!b;break d}if(!(t|(c|e>>>0<2))){k=0;if(!((e|0)==2&K[l+95|0]!=0))break c}u=l,v=oi(o),J[u+8>>2]=v;J[l+12>>2]=J[l+8>>2];n:{if(!e|K[(e+l|0)+91|0]>1)break n;o:{while(1){u=l,v=Oo(o),J[u+8>>2]=v;b=J[l+12>>2];if((b|0)==J[l+8>>2])break o;b=J[b>>2];J[695492]=0;d=ga(6692,h|0,1,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(!d)break o;J[l+12>>2]=J[l+12>>2]+4;continue}break}break a}u=l,v=oi(o),J[u+8>>2]=v;if(K[p+11|0]>>> -7|0)k=J[p+4>>2];else k=K[p+11|0]&127;d=l+8|0;b=J[l+12>>2]-J[d>>2]>>2;if(k>>>0>=b>>>0){u=l,v=Oo(p),J[u+8>>2]=v;k=qy(d,0-b|0);d=Oo(p);b=oi(o);J[695492]=0;d=WP(k,d,b);b=J[695492];J[695492]=0;if((b|0)==1)break a;if(d)break n}u=l,v=oi(o),J[u+4>>2]=v;J[l+8>>2]=J[l+4>>2];J[l+12>>2]=J[l+8>>2]}J[l+8>>2]=J[l+12>>2];p:{while(1){u=l,v=Oo(o),J[u+4>>2]=v;if(J[l+8>>2]==J[l+4>>2])break p;J[695492]=0;d=aa(6645,a|0,l+524|0)|0;b=J[695492];J[695492]=0;q:{if((b|0)==1)break q;if(d)break p;J[695492]=0;d=$(6646,a|0)|0;b= -J[695492];J[695492]=0;if((b|0)==1)break q;if(J[J[l+8>>2]>>2]!=(d|0))break p;J[695492]=0;$(6648,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[l+8>>2]=J[l+8>>2]+4;continue}break}break a}if(!t)break d;u=l,v=Oo(o),J[u+4>>2]=v;if(J[l+8>>2]==J[l+4>>2])break d;J[f>>2]=J[f>>2]|4;a=0;break e}r:{while(1){s:{J[695492]=0;k=aa(6645,a|0,l+524|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break s;if(k)break r;J[695492]=0;s=$(6646,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;k=ga(6692,h|0,64, -s|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;t:{if(k){d=J[j>>2];if((d|0)==J[l+520>>2]){J[695492]=0;ca(6695,i|0,j|0,l+520|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;d=J[j>>2]}J[j>>2]=d+4;J[d>>2]=s;b=b+1|0;break t}if(K[r+11|0]>>>7|0)d=J[r+4>>2];else d=K[r+11|0]&127;if(!d|!b|(s|0)!=J[l+84>>2])break r;k=J[l+100>>2];if((k|0)==J[l+96>>2]){J[695492]=0;ca(6687,q|0,l+100|0,l+96|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b;b=0}J[695492]=0;$(6648,a|0)|0;d= -J[695492];J[695492]=0;if((d|0)!=1)continue}break}break a}k=J[l+100>>2];if(!(!b|(k|0)==J[q>>2])){if(J[l+96>>2]==(k|0)){J[695492]=0;ca(6687,q|0,l+100|0,l+96|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b}u:{if(J[l+20>>2]<=0)break u;J[695492]=0;d=aa(6645,a|0,l+524|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;v:{if(!d){J[695492]=0;d=$(6646,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(J[l+88>>2]==(d|0))break v}J[f>>2]=J[f>>2]|4;a=0;break e}J[695492]= -0;$(6648,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;while(1){if(J[l+20>>2]<=0)break u;J[695492]=0;d=aa(6645,a|0,l+524|0)|0;b=J[695492];J[695492]=0;w:{if((b|0)==1)break w;x:{if(!d){J[695492]=0;d=$(6646,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break w;J[695492]=0;d=ga(6692,h|0,64,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break w;if(d)break x}J[f>>2]=J[f>>2]|4;a=0;break e}if(J[j>>2]==J[l+520>>2]){J[695492]=0;ca(6695,i|0,j|0,l+520|0);b=J[695492];J[695492]=0;if((b|0)==1)break w}J[695492]=0; -d=$(6646,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break w;b=J[j>>2];J[j>>2]=b+4;J[b>>2]=d;J[695492]=0;J[l+20>>2]=J[l+20>>2]-1;$(6648,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)continue}break}break a}k=c;if(J[i>>2]!=J[j>>2])break c;J[f>>2]=J[f>>2]|4;a=0;break e}y:{if(!c)break y;k=1;while(1){if(K[c+11|0]>>>7|0)b=J[c+4>>2];else b=K[c+11|0]&127;if(b>>>0<=k>>>0)break y;J[695492]=0;d=aa(6645,a|0,l+524|0)|0;b=J[695492];J[695492]=0;z:{if((b|0)==1)break z;A:{if(!d){J[695492]=0;b=$(6646,a|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break z;if(K[c+11|0]>>>7|0)d=J[c>>2];else d=c;if(J[d+(k<<2)>>2]==(b|0))break A}J[f>>2]=J[f>>2]|4;a=0;break e}J[695492]=0;$(6648,a|0)|0;b=J[695492];J[695492]=0;k=k+1|0;if((b|0)!=1)continue}break}break a}B:{if(J[q>>2]==J[l+100>>2])break B;J[l+12>>2]=0;a=J[q>>2];J[695492]=0;Ah(r,a,J[l+100>>2],l+12|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(!J[l+12>>2])break B;J[f>>2]=J[f>>2]|4;a=0;break e}break a}a=1}Ze(p);Ze(m);Ze(n);Ze(o);ad(r);Ae(q);break b}k=c}e=e+1|0;continue}}break a}bc= -l+528|0;return a|0}a=Z()|0;Ze(p);Ze(m);Ze(n);Ze(o);ad(r);Ae(q);ba(a|0);B()}function LF(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;a:while(1){n=b-4|0;j=b-16|0;g=b-8|0;b:{while(1){h=a;c:{d:while(1){e:{f:{g:{h:{i:{j:{f=b-h>>3;switch(f|0){case 4:break i;case 2:break j;case 0:case 1:break b;case 3:break f;case 5:break h;default:break g}}d=b-8|0;a=J[d>>2];if(!a)break b;c=J[h>>2];if(O[a+32>>3]>3]?0:c)break b;J[h>>2]=a;J[d>>2]=c;a=J[h+4>>2];b=b-4|0;J[h+4>>2]=J[b>>2];J[b>>2]=a;return}JF(h, -h+8|0,h+16|0,b-8|0);return}IF(h,h+8|0,h+16|0,h+24|0,b-8|0);return}if((f|0)<=6){f=h+16|0;rs(h,h+8|0,f);a=h+24|0;if((b|0)==(a|0))break b;while(1){c=a;g=J[a>>2];k:{if(!g)break k;e=J[f>>2];if(O[g+32>>3]>3]?0:e)break k;i=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=f;f=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=e;e=J[d+4>>2];J[d+4>>2]=f;l:{if(!e)break l;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break l;gc[J[J[e>>2]+8>>2]](e);Vc(e)}m:{if((a|0)==(h|0)){a=h;break m}d=a;f=a-8|0;e=J[f>>2];if(!e|O[g+32>>3]>3])continue}break}J[a>>2]=g;d=J[a+4>>2];J[a+4>>2]=i;if(!d)break k;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break k;gc[J[J[d>>2]+8>>2]](d);Vc(d)}f=c;a=f+8|0;if((b|0)!=(a|0))continue;break}break b}if(c)break e;if((b|0)==(h|0))break b;l=f-2>>>1|0;a=l;while(1){k=a;n:{if((a|0)>(l|0))break n;a=(a<<3)+h|0;c=k<<1;e=c|1;d=(e<<3)+h|0;g=c+2|0;o:{p:{if((g|0)>=(f|0)){g=e;break p}c=J[d>>2];if(!c){c=J[a>>2];g=e;break o}i=J[d+8>>2];if(!(!i|O[c+32>>3]>3])){g=e;break p}d=d+8|0}c=J[a>>2];e=J[d>>2];if(!e)break o;if(!c| -O[e+32>>3]>3])break n}m=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;i=J[d>>2];q:{r:{if(!c){j=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=j;s:{if(!e)break s;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break s;gc[J[J[e>>2]+8>>2]](e);Vc(e)}if((g|0)>(l|0)){e=d;break q}g=g<<1;e=g|1;a=(e<<3)+h|0;g=g+2|0;t:{if((g|0)>=(f|0)){g=e;break t}i=J[a>>2];if(!i){g=e;break r}j=J[a+8>>2];if(!(!j|O[i+32>>3]>3])){g=e;break t}a=a+8|0}if(!J[a>>2])break r;e=d;break q}while(1){e=d;j=J[d+4>>2];J[d>>2]=0;J[d+4>> -2]=0;J[a>>2]=i;d=J[a+4>>2];J[a+4>>2]=j;u:{if(!d)break u;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break u;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if((g|0)>(l|0))break q;a=g<<1;g=a|1;d=(g<<3)+h|0;j=a+2|0;v:{if((j|0)>=(f|0))break v;i=0;a=e;n=J[d>>2];if(!n)continue;a=J[d+8>>2];if(O[n+32>>3]>3]?0:a)break v;d=d+8|0;g=j}i=0;a=e;j=J[d>>2];if(!j)continue;i=j;if(!(O[i+32>>3]>3]))continue;break}break q}while(1){e=a;i=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=0;a=J[d+4>>2];J[d+4>>2]=i;w:{if(!a)break w;d=J[a+4>>2];J[a+ -4>>2]=d-1;if(d)break w;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if((g|0)>(l|0))break q;d=g<<1;g=d|1;a=(g<<3)+h|0;i=d+2|0;x:{if((i|0)>=(f|0))break x;d=e;j=J[a>>2];if(!j)continue;d=J[a+8>>2];if(O[j+32>>3]>3]?0:d)break x;a=a+8|0;g=i}d=e;if(!J[a>>2])continue;break}}J[e>>2]=c;a=J[e+4>>2];J[e+4>>2]=m;if(!a)break n;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break n;gc[J[J[a>>2]+8>>2]](a);Vc(a)}a=k-1|0;if(k)continue;break}while(1){e=b;i=J[h+4>>2];k=J[h>>2];J[h>>2]=0;J[h+4>>2]=0;c=f;j=f-2>>>1|0;a=h;d=0;while(1){b=a;g=(d<< -3)+a|0;a=g+8|0;f=d<<1;d=f|1;f=f+2|0;y:{if((f|0)>=(c|0))break y;l=J[g+8>>2];if(!l)break y;g=g+16|0;m=J[g>>2];if(O[l+32>>3]>3]?0:m)break y;a=g;d=f}g=J[a>>2];l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;f=J[b+4>>2];J[b>>2]=g;J[b+4>>2]=l;z:{if(!f)break z;b=J[f+4>>2];J[f+4>>2]=b-1;if(b)break z;gc[J[J[f>>2]+8>>2]](f);Vc(f)}if((d|0)<=(j|0))continue;break}b=e-8|0;A:{B:{if((b|0)==(a|0)){J[a>>2]=k;d=a;a=J[a+4>>2];J[d+4>>2]=i;if(!a)break A;d=J[a+4>>2];J[a+4>>2]=d-1;if(!d)break B;break A}e=e-4|0;f=J[e>>2];d=J[b>> -2];J[b>>2]=0;J[e>>2]=0;J[a>>2]=d;d=J[a+4>>2];J[a+4>>2]=f;C:{if(!d)break C;f=J[d+4>>2];J[d+4>>2]=f-1;if(f)break C;gc[J[J[d>>2]+8>>2]](d);Vc(d)}J[b>>2]=k;d=J[e>>2];J[e>>2]=i;D:{if(!d)break D;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break D;gc[J[J[d>>2]+8>>2]](d);Vc(d)}d=(a+8|0)-h>>3;if((d|0)<2)break A;e=d-2>>>1|0;f=(e<<3)+h|0;d=J[f>>2];if(!d)break A;i=J[a>>2];E:{if(i){if(!(O[d+32>>3]>3]))break A;k=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;g=J[f>>2];while(1){d=f;j=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=g;f=J[a+ -4>>2];J[a+4>>2]=j;F:{if(!f)break F;a=J[f+4>>2];J[f+4>>2]=a-1;if(a)break F;gc[J[J[f>>2]+8>>2]](f);Vc(f)}if(!e)break E;e=e-1>>>1|0;f=(e<<3)+h|0;g=J[f>>2];if(!g)break E;a=d;if(O[g+32>>3]>3])continue;break}break E}k=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;g=J[f>>2];while(1){d=f;j=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=g;f=J[a+4>>2];J[a+4>>2]=j;G:{if(!f)break G;a=J[f+4>>2];J[f+4>>2]=a-1;if(a)break G;gc[J[J[f>>2]+8>>2]](f);Vc(f)}if(!e)break E;a=d;e=e-1>>>1|0;f=(e<<3)+h|0;g=J[f>>2];if(g)continue;break}}J[d>> -2]=i;a=J[d+4>>2];J[d+4>>2]=k;if(!a)break A;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break A}gc[J[J[a>>2]+8>>2]](a);Vc(a)}f=c-1|0;if((c|0)>2)continue;break}break b}rs(h,h+8|0,b-8|0);break b}i=(f<<2&-8)+h|0;H:{if(f>>>0>=1E3){a=f<<1&-8;k=IF(h,a+h|0,i,a+i|0,g);break H}k=rs(h,i,g)}c=c-1|0;f=J[i>>2];I:{l=J[h>>2];if(!l)break I;if(!f){a=g;break c}if(!(O[l+32>>3]>3]))break I;a=g;break c}J:{K:{if((h|0)==(j|0))break K;a=j;e=g;if(!f){d=J[a>>2];if(d)break J;while(1){e=a;a=a-8|0;if((h|0)==(a|0))break K;d=J[a>>2]; -if(!d)continue;break}break J}while(1){d=J[a>>2];if(O[d+32>>3]>3]?d:0)break J;e=a;a=a-8|0;if((h|0)!=(a|0))continue;break}}if(!l)break b;f=h+8|0;L:{a=J[g>>2];if(!a|O[l+32>>3]>3])break L;if((f|0)==(g|0))break b;while(1){d=J[f>>2];if(!(O[l+32>>3]>3]?0:d)){J[f>>2]=a;J[g>>2]=d;a=J[f+4>>2];J[f+4>>2]=J[n>>2];J[n>>2]=a;f=f+8|0;break L}f=f+8|0;if((g|0)!=(f|0))continue;break}break b}a=g;if((f|0)==(a|0))break b;while(1){e=J[h>>2];i=0;d=J[f>>2];M:{if(!d)break M;o=O[e+32>>3];while(1){if(o< -O[d+32>>3]){i=d;break M}d=J[f+8>>2];f=f+8|0;if(d)continue;break}}while(1){d=a;a=a-8|0;k=J[a>>2];if(!k|O[e+32>>3]>3])continue;break}if(a>>>0<=f>>>0){h=f;continue d}else{J[f>>2]=k;J[a>>2]=i;e=J[f+4>>2];d=d-4|0;J[f+4>>2]=J[d>>2];J[d>>2]=e;f=f+8|0;continue}}}break}J[h>>2]=d;J[a>>2]=l;d=J[h+4>>2];e=e-4|0;J[h+4>>2]=J[e>>2];J[e>>2]=d;k=k+1|0}N:{e=h+8|0;if(e>>>0>=a>>>0)break N;while(1){m=J[i>>2];l=0;d=J[e>>2];O:{if(!d)break O;if(!m){while(1){d=J[e+8>>2];e=e+8|0;if(d)continue;break}break O}o=O[m+32>> -3];while(1){if(!(o>O[d+32>>3])){l=d;break O}d=J[e+8>>2];e=e+8|0;if(d)continue;break}}P:{if(!m)while(1){f=a;a=a-8|0;d=J[a>>2];if(!d)continue;break P}while(1){f=a;a=a-8|0;d=J[a>>2];if(!d|!(O[d+32>>3]>3]))continue;break}}if(a>>>0>>0)break N;J[e>>2]=d;J[a>>2]=l;d=J[e+4>>2];f=f-4|0;J[e+4>>2]=J[f>>2];J[f>>2]=d;i=(e|0)==(i|0)?a:i;e=e+8|0;k=k+1|0;continue}}Q:{if((e|0)==(i|0))break Q;a=J[i>>2];if(!a)break Q;d=J[e>>2];if(O[a+32>>3]>3]?0:d)break Q;J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]= -J[i+4>>2];J[i+4>>2]=a;k=k+1|0}if(!k){d=$R(h,e);a=e+8|0;if($R(a,b)){a=h;b=e;if(!d)continue a;break b}if(d)continue}if((e-h|0)<(b-e|0)){LF(h,e,c);a=e+8|0;continue}break}LF(e+8|0,b,c);a=h;b=e;continue}break}}function QI(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;J[d+552>>2]=0;J[d+556>>2]=0;J[d+544>>2]=-343597384;J[d+548>>2]=1068415057;J[d+536>>2]=0;J[d+528>>2]=0;J[d+532>>2]=0;J[d+520>>2]=0;J[d+512>>2]=0;J[d+408>>2]=0;J[d+304>>2]=0;J[d+288>>2]=0;J[d+272>>2]=7;J[d+276>> -2]=1;J[d+264>>2]=1580547965;J[d+268>>2]=1067731386;J[d+256>>2]=0;J[d+212>>2]=0;J[d+152>>2]=0;J[d+108>>2]=0;J[d+48>>2]=0;J[d+560>>2]=0;J[d+564>>2]=0;J[d+584>>2]=1;J[d+576>>2]=0;J[d+580>>2]=0;J[d+568>>2]=1;a:{if(!b|!c)break a;J[a+1144>>2]=0;if((c|0)<=0)break a;m=b+c|0;n=a+352|0;o=d+52|0;p=d+112|0;q=d+156|0;r=d+216|0;s=d+312|0;t=d+416|0;c=b;while(1){c=OI(a,c,n);if(!J[a+352>>2])break a;g=J[a+1144>>2];e=g-1|0;i=(e<<4)+a|0;if(!J[i+360>>2]){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{i=J[i+368>>2]; -switch(i-3081|0){case 8:break h;case 6:break i;case 5:break j;case 4:break k;case 3:break l;case 2:break o;case 1:break p;case 0:break q;case 7:break b;case 10:break f;case 9:break g;default:break r}}s:switch(i-6|0){case 0:j=(e|0)>=14?14:e;e=0;i=0;if((g|0)>=2)while(1){g=0;t:{u:{v:{w:{h=(e<<4)+a|0;switch(J[h+360>>2]-1|0){case 2:break u;case 1:break v;case 0:break w;default:break t}}g=J[h+368>>2];break t}f=O[h+368>>3];h=f>2E9;if(R(f)<2147483648)g=~~f;else g=-2147483648;g=f<-2E9?0:h?0:g;break t}k=J[h+ -372>>2];if(!k)break t;g=J[h+368>>2]/(k|0)|0}i=g+i|0;J[(e<<2)+o>>2]=i;e=e+1|0;if((j|0)!=(e|0))continue;break}J[d+108>>2]=j;break b;case 1:j=(e|0)>=10?10:e;e=0;i=0;if((g|0)>=2)while(1){g=0;x:{y:{z:{A:{h=(e<<4)+a|0;switch(J[h+360>>2]-1|0){case 2:break y;case 1:break z;case 0:break A;default:break x}}g=J[h+368>>2];break x}f=O[h+368>>3];h=f>2E9;if(R(f)<2147483648)g=~~f;else g=-2147483648;g=f<-2E9?0:h?0:g;break x}k=J[h+372>>2];if(!k)break x;g=J[h+368>>2]/(k|0)|0}i=g+i|0;J[(e<<2)+p>>2]=i;e=e+1|0;if((j|0)!= -(e|0))continue;break}J[d+152>>2]=j;break b;case 2:j=(e|0)>=14?14:e;e=0;i=0;if((g|0)>=2)while(1){g=0;B:{C:{D:{E:{h=(e<<4)+a|0;switch(J[h+360>>2]-1|0){case 2:break C;case 1:break D;case 0:break E;default:break B}}g=J[h+368>>2];break B}f=O[h+368>>3];h=f>2E9;if(R(f)<2147483648)g=~~f;else g=-2147483648;g=f<-2E9?0:h?0:g;break B}k=J[h+372>>2];if(!k)break B;g=J[h+368>>2]/(k|0)|0}i=g+i|0;J[(e<<2)+q>>2]=i;e=e+1|0;if((j|0)!=(e|0))continue;break}J[d+212>>2]=j;break b;case 5:break m;case 4:break n;case 3:break s; -case 15:break c;case 14:break d;case 13:break e;default:break b}j=(e|0)>=10?10:e;e=0;i=0;if((g|0)>=2)while(1){g=0;F:{G:{H:{I:{h=(e<<4)+a|0;switch(J[h+360>>2]-1|0){case 2:break G;case 1:break H;case 0:break I;default:break F}}g=J[h+368>>2];break F}f=O[h+368>>3];h=f>2E9;if(R(f)<2147483648)g=~~f;else g=-2147483648;g=f<-2E9?0:h?0:g;break F}k=J[h+372>>2];if(!k)break F;g=J[h+368>>2]/(k|0)|0}i=g+i|0;J[(e<<2)+r>>2]=i;e=e+1|0;if((j|0)!=(e|0))continue;break}J[d+256>>2]=j;break b}f=0;J:{K:switch(J[a+360>>2]- -1|0){case 0:O[d+264>>3]=J[a+368>>2];break b;case 1:O[d+264>>3]=O[a+368>>3];break b;case 2:break K;default:break J}e=J[a+372>>2];if(!e)break J;f=+J[a+368>>2]/+(e|0)}O[d+264>>3]=f;break b}e=0;L:{M:switch(J[a+360>>2]-1|0){case 0:J[d+272>>2]=J[a+368>>2];break b;case 1:f=O[a+368>>3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;J[d+272>>2]=f<-2E9?0:g?0:e;break b;case 2:break M;default:break L}g=J[a+372>>2];if(!g)break L;e=J[a+368>>2]/(g|0)|0}J[d+272>>2]=e;break b}e=0;N:{O:switch(J[a+360>>2]-1|0){case 0:J[d+ -276>>2]=J[a+368>>2];break b;case 1:f=O[a+368>>3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;J[d+276>>2]=f<-2E9?0:g?0:e;break b;case 2:break O;default:break N}g=J[a+372>>2];if(!g)break N;e=J[a+368>>2]/(g|0)|0}J[d+276>>2]=e;break b}f=0;P:{Q:switch(J[a+360>>2]-1|0){case 0:f=+J[a+368>>2];break P;case 1:f=O[a+368>>3];break P;case 2:break Q;default:break P}e=J[a+372>>2];if(!e)break P;f=+J[a+368>>2]/+(e|0)}J[d+288>>2]=1;O[d+280>>3]=f;break b}f=0;R:{S:switch(J[a+360>>2]-1|0){case 0:f=+J[a+368>>2]; -break R;case 1:f=O[a+368>>3];break R;case 2:break S;default:break R}e=J[a+372>>2];if(!e)break R;f=+J[a+368>>2]/+(e|0)}J[d+304>>2]=1;O[d+296>>3]=f;break b}i=(e|0)>=12?12:e;l=0;e=0;if((g|0)>=2)while(1){f=0;T:{U:{V:{W:{g=(e<<4)+a|0;switch(J[g+360>>2]-1|0){case 2:break U;case 1:break V;case 0:break W;default:break T}}f=+J[g+368>>2];break T}f=O[g+368>>3];break T}h=J[g+372>>2];if(!h)break T;f=+J[g+368>>2]/+(h|0)}l=l+f;O[(e<<3)+s>>3]=l;e=e+1|0;if((i|0)!=(e|0))continue;break}J[d+408>>2]=i;break b}i=(e|0)>= -12?12:e;l=0;e=0;if((g|0)>=2)while(1){f=0;X:{Y:{Z:{_:{g=(e<<4)+a|0;switch(J[g+360>>2]-1|0){case 2:break Y;case 1:break Z;case 0:break _;default:break X}}f=+J[g+368>>2];break X}f=O[g+368>>3];break X}h=J[g+372>>2];if(!h)break X;f=+J[g+368>>2]/+(h|0)}l=l+f;O[(e<<3)+t>>3]=l;e=e+1|0;if((i|0)!=(e|0))continue;break}J[d+512>>2]=i;break b}e=0;$:{aa:switch(J[a+360>>2]-1|0){case 0:e=!J[a+368>>2];break $;case 1:e=O[a+368>>3]==0;break $;case 2:break aa;default:break $}e=!J[a+368>>2]}J[d+520>>2]=1;J[d+516>>2]=e^ -1;break b}f=0;ba:{ca:switch(J[a+360>>2]-1|0){case 0:O[d+528>>3]=J[a+368>>2];break b;case 1:O[d+528>>3]=O[a+368>>3];break b;case 2:break ca;default:break ba}e=J[a+372>>2];if(!e)break ba;f=+J[a+368>>2]/+(e|0)}O[d+528>>3]=f;break b}e=0;da:{ea:switch(J[a+360>>2]-1|0){case 0:J[d+536>>2]=J[a+368>>2];break b;case 1:f=O[a+368>>3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;J[d+536>>2]=f<-2E9?0:g?0:e;break b;case 2:break ea;default:break da}g=J[a+372>>2];if(!g)break da;e=J[a+368>>2]/(g|0)|0}J[d+536>> -2]=e;break b}f=0;fa:{ga:switch(J[a+360>>2]-1|0){case 0:O[d+544>>3]=J[a+368>>2];break b;case 1:O[d+544>>3]=O[a+368>>3];break b;case 2:break ga;default:break fa}e=J[a+372>>2];if(!e)break fa;f=+J[a+368>>2]/+(e|0)}O[d+544>>3]=f;break b}e=0;ha:{ia:switch(J[a+360>>2]-1|0){case 0:J[d+552>>2]=J[a+368>>2];break b;case 1:f=O[a+368>>3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;J[d+552>>2]=f<-2E9?0:g?0:e;break b;case 2:break ia;default:break ha}g=J[a+372>>2];if(!g)break ha;e=J[a+368>>2]/(g|0)|0}J[d+ -552>>2]=e;break b}e=0;ja:{ka:switch(J[a+360>>2]-1|0){case 0:e=J[a+368>>2];break ja;case 1:f=O[a+368>>3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;e=f<-2E9?0:g?0:e;break ja;case 2:break ka;default:break ja}g=J[a+372>>2];if(!g)break ja;e=J[a+368>>2]/(g|0)|0}J[d+556>>2]=b+e;break b}f=0;la:{ma:{na:{oa:{e=J[a+360>>2];switch(e-1|0){case 2:break ma;case 1:break na;case 0:break oa;default:break la}}f=+J[a+368>>2];break la}f=O[a+368>>3];break la}g=J[a+372>>2];if(!g)break la;f=+J[a+368>>2]/+(g|0)}O[d+ -560>>3]=f;J[d+568>>2]=(e|0)==1;break b}f=0;pa:{qa:{ra:{sa:{e=J[a+360>>2];switch(e-1|0){case 2:break qa;case 1:break ra;case 0:break sa;default:break pa}}f=+J[a+368>>2];break pa}f=O[a+368>>3];break pa}g=J[a+372>>2];if(!g)break pa;f=+J[a+368>>2]/+(g|0)}O[d+576>>3]=f;J[d+584>>2]=(e|0)==1}J[a+1144>>2]=0}if((c|0)<(m|0))continue;break}}}function Eo(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,G=0,N=0,O=0,P=0,Q=0;a:{b:{if(K[a+ -496|0]|K[a+476|0]){if(K[a+460|0])break b;n=J[a+544>>2];o=J[a+512>>2];p=J[a+980>>2];q=J[a+968>>2];r=J[a+976>>2];s=K[a+649|0];t=K[a+648|0];u=J[a+644>>2];v=J[a+640>>2];w=J[a+604>>2];x=J[a+588>>2];y=J[a+584>>2];z=J[a+580>>2];A=J[a+576>>2];B=J[a+572>>2];C=K[a+568|0];D=J[a+668>>2];E=J[a+664>>2];F=J[a+660>>2];G=J[a+656>>2];N=J[a+684>>2];O=J[a+680>>2];P=J[a+676>>2];Q=J[a+672>>2];J[a+680>>2]=0;J[a+672>>2]=0;c=J[a+16>>2];J[a+676>>2]=c;e=J[a+20>>2];J[a+684>>2]=e;c:{if(!K[a+1124|0]){b=c;break c}b=J[a+1128>>2]; -h=(b|0)>0?b:0;J[a+672>>2]=h;b=J[a+1136>>2];d=(b|0)>0?b:0;J[a+680>>2]=d;b=J[a+1132>>2];b=(b|0)>(c|0)?c:b;J[a+676>>2]=b;f=J[a+1140>>2];e=(e|0)<(f|0)?e:f;J[a+684>>2]=e}d:{if((b|0)<(h|0)|(d|0)>(e|0))break d;J[a+664>>2]=0;J[a+656>>2]=0;I[a+648>>1]=256;J[a+588>>2]=c;J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+668>>2]=e-d;J[a+660>>2]=b-h;J[a+604>>2]=c<<2;Ox(a);J[a+972>>2]=1156;e=1;e:{f:switch(J[a+12>>2]-1|0){case 0:case 2:break f;default:break e}if(!K[a+86|0])break e;b=J[a+ -512>>2];if(!b){b=J[a+528>>2];J[a+512>>2]=b}if(!K[J[b+88>>2]+61|0])break e;J[a+972>>2]=1157;e=0}g:{if(!J[a+224>>2])break g;b=1158;h:{i:{j:{k:{l:{d=J[a+56>>2];switch(d|0){case 2:case 3:case 4:break g;case 0:break h;case 5:break i;case 6:break j;case 1:break l;default:break k}}b=1159;break h}if((d|0)!=65537)break g;b=1160;break h}b=1161;break h}b=1162}J[a+972>>2]=b}m:{n:{o:{if(!K[a+302|0])break o;b=K[a+1058|0];p:{if(b&2){if(L[a+1060>>1]|b&1)break p;break o}if(!(b&1))break o}J[a+976>>2]=0;J[a+972>>2]= -1163;break n}J[a+976>>2]=0;if(e)break m}e=ru(a,1,0,0);if(e)break b}b=gc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=b;if(!b)break a;b=J[a+680>>2];while(1){q:{d=b;c=J[a+684>>2];if((c|0)<=(b|0)){e=0;break q}e=gc[J[a+972>>2]](a)|0;if(e)break q;b=J[a+976>>2];if(b){e=gc[b|0](a)|0;if(e)break q}e=gc[J[a+968>>2]](a)|0;if(e)break q;b=d+1|0;e=Jr(a);if(!e)continue}break}b=J[a+644>>2];if(b){gc[J[a+156>>2]](b,J[a+604>>2]);J[a+644>>2]=0}if((c|0)>(d|0))break b;if(!K[a+302|0]|!(K[a+1058|0]&2))break d;b=L[a+1060>>1]; -if(!b)break d;i=$g(a,b);J[a+544>>2]=i;if(!K[i+31|0]|(!i|!K[i+32|0]))break d;d=J[a+676>>2];h=J[i+36>>2];if((d|0)<=(h|0))break d;b=J[a+684>>2];f=J[i+40>>2];if((b|0)<=(f|0))break d;l=K[a+1062|0];if(!l){c=J[i+88>>2];if(J[a+672>>2]>(h+J[c+36>>2]|0)|J[a+680>>2]>(f+J[c+40>>2]|0))break d}r:{if(!K[i+44|0]){e=J[a+672>>2];break r}c=J[i+48>>2];j=J[i+52>>2];if((c|0)>(j|0)|(c|0)>=(d|0))break d;k=J[i+56>>2];g=J[i+60>>2];if((k|0)>(g|0)|(b|0)<=(k|0))break d;e=J[a+672>>2];if((j|0)<(e|0))break d;m=J[a+680>>2];if((g| -0)<(m|0))break d;if((c|0)>(e|0)){J[a+672>>2]=c;e=c}if((d|0)>(j|0)){J[a+676>>2]=j;d=j}if((k|0)>(m|0))J[a+680>>2]=k;if((b|0)<=(g|0))break r;J[a+684>>2]=g;b=g}if((e|0)<(h|0)){J[a+672>>2]=h;e=h}c=J[a+680>>2];if((f|0)>(c|0)){J[a+680>>2]=f;c=f}g=J[i+88>>2];i=J[g+36>>2];s:{if(l){k=J[g+40>>2];break s}j=h+i|0;if((j|0)<(d|0)){J[a+676>>2]=j;d=j}k=J[g+40>>2];j=f+k|0;if((j|0)>=(b|0))break s;J[a+684>>2]=j;b=j}j=0;J[a+664>>2]=0;J[a+656>>2]=0;J[a+668>>2]=b-c;J[a+660>>2]=d-e;b=K[g+44|0];J[a+1076>>2]=k;J[a+1072>>2]= -i;J[a+1068>>2]=f;J[a+1064>>2]=h;J[a+572>>2]=0;b=b>>>0>8;H[a+648|0]=b;t:{u:{v:switch(K[g+45|0]){case 0:J[a+980>>2]=b?1149:1150;j=!K[g+56|0];break u;case 2:J[a+980>>2]=b?1151:1152;j=!K[g+56|0];break u;case 3:J[a+980>>2]=1153;j=!K[g+56|0];break u;case 4:J[a+980>>2]=b?1154:1155;break u;case 6:J[a+980>>2]=b?1022:1023;break u;case 8:J[a+980>>2]=b?1149:1150;j=1;break u;case 10:J[a+980>>2]=b?1151:1152;j=1;break u;case 12:J[a+980>>2]=b?1154:1155;break u;case 14:break v;default:break t}J[a+980>>2]=b?1022:1023}H[a+ -649|0]=j}e=ru(a,0,0,1);if(e)break b;b=gc[J[a+152>>2]](J[a+604>>2])|0;J[a+640>>2]=b;if(!b)break a;b=gc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=b;if(!b)break a;b=J[a+680>>2];while(1){w:{j=b;k=J[a+684>>2];if((k|0)<=(b|0)){e=0;break w}l=J[a+572>>2];b=J[a+1068>>2]+(l+J[a+680>>2]|0)|0;c=J[a+1076>>2];m=J[a+588>>2];h=J[a+644>>2];while(1){d=b;b=b-c|0;if((c|0)<=(d|0))continue;break}J[a+572>>2]=d;J[a+588>>2]=J[a+1072>>2];J[a+644>>2]=J[a+640>>2];e=gc[J[a+980>>2]](a)|0;if(!e){d=J[a+672>>2];e=d-J[a+1064>>2]|0; -c=J[a+1072>>2];while(1){b=e;e=b-c|0;if(b>>>0>=c>>>0)continue;break}g=J[a+676>>2];e=g-d|0;x:{if(K[a+648|0]){if((e|0)<=0)break x;i=d+1|0;c=J[a+640>>2]+(b<<3)|0;if(e&1){d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[h|0]=f;H[h+1|0]=f>>>8;H[h+2|0]=f>>>16;H[h+3|0]=f>>>24;H[h+4|0]=d;H[h+5|0]=d>>>8;H[h+6|0]=d>>>16;H[h+7|0]=d>>>24;b=b+1|0;if(b>>>0>2])c=c+8|0;else{b=0;c=J[a+640>>2]}e=e-1|0;d=h+8|0}else d=h;if((g|0)==(i|0))break x;while(1){f= -K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d|0]=g;H[d+1|0]=g>>>8;H[d+2|0]=g>>>16;H[d+3|0]=g>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;b=b+1|0;if(b>>>0>2])c=c+8|0;else{b=0;c=J[a+640>>2]}g=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);i=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d+8|0]=i;H[d+9|0]=i>>>8;H[d+10|0]=i>>>16;H[d+11|0]=i>>>24;H[d+12|0]=g;H[d+13|0]=g>>>8;H[d+14|0]=g>>>16;H[d+15|0]=g>>>24;b=b+1| -0;if(b>>>0>2])c=c+8|0;else{b=0;c=J[a+640>>2]}d=d+16|0;f=(e|0)>2;e=e-2|0;if(f)continue;break}break x}if((e|0)<=0)break x;f=d+1|0;c=J[a+640>>2]+(b<<2)|0;if(e&1){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[h|0]=d;H[h+1|0]=d>>>8;H[h+2|0]=d>>>16;H[h+3|0]=d>>>24;b=b+1|0;if(b>>>0>2])c=c+4|0;else{b=0;c=J[a+640>>2]}e=e-1|0;d=h+4|0}else d=h;if((f|0)==(g|0))break x;while(1){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;f=d; -b=b+1|0;if(b>>>0>2])c=c+4|0;else{b=0;c=J[a+640>>2]}g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d+4|0]=g;H[f+5|0]=g>>>8;H[f+6|0]=g>>>16;H[f+7|0]=g>>>24;b=b+1|0;if(b>>>0>2])c=c+4|0;else{b=0;c=J[a+640>>2]}d=d+8|0;f=(e|0)>2;e=e-2|0;if(f)continue;break}}J[a+588>>2]=m;J[a+572>>2]=l;J[a+644>>2]=h;e=0}if(e)break w;b=J[a+976>>2];if(b){e=gc[b|0](a)|0;if(e)break w}e=gc[J[a+968>>2]](a)|0;if(e)break w;b=j+1|0;e=Jr(a);if(!e)continue}break}b=J[a+644>>2];if(b){gc[J[a+156>>2]](b,J[a+604>> -2]);J[a+644>>2]=0}b=J[a+640>>2];if(b){gc[J[a+156>>2]](b,J[a+604>>2]);J[a+640>>2]=0}if((j|0)<(k|0))break b}J[a+684>>2]=N;J[a+680>>2]=O;J[a+676>>2]=P;J[a+672>>2]=Q;J[a+668>>2]=D;J[a+664>>2]=E;J[a+660>>2]=F;J[a+656>>2]=G;J[a+976>>2]=r;H[a+649|0]=s;H[a+648|0]=t;J[a+644>>2]=u;J[a+640>>2]=v;J[a+604>>2]=w;J[a+588>>2]=x;J[a+584>>2]=y;J[a+580>>2]=z;J[a+576>>2]=A;J[a+572>>2]=B;H[a+568|0]=C;J[a+980>>2]=p;J[a+968>>2]=q;J[a+512>>2]=o;J[a+544>>2]=n}e=0}return e}Dc(a,1,0,0);return 1}function Sz(a,b,c,d,e){a=a|0; -b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=bc-48|0;bc=h;l=J[a+12>>2];J[l>>2]=J[l>>2]+1;a:{b:{c:{d:{if(K[a+9|0]){J[695492]=0;a=ja(5018,h+24|0,J[682139],2375807,1127,2385586,0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;break b}g=Z()|0;break d}g=Z()|0;Fc(a);break d}f:{if(K[a+8|0]|!K[a+10|0])break f;f=J[a+84>>2];i=(d|0)<0?(f|0)>0?f-c|0:d:d;f=J[a+16>>2];g:{if(!f){g=a;j=c;break g}j=c;k=a;while(1){g=f;m=J[f+84>>2];j=J[k+ -80>>2]+j|0;i=(i|0)<0?(m|0)>0?m-j|0:i:i;k=f;f=J[f+16>>2];if(f)continue;break}}J[695492]=0;f=$(5074,g+20|0)|0;k=J[695492];J[695492]=0;h:{i:{if((k|0)==1)break i;j:{if(f){if(J[g+84>>2]>=(J[g+80>>2]+(i+j|0)|0))break f;break j}if((i|0)<0){if(!K[g+8|0])break j;break f}f=J[g+72>>2];J[695492]=0;f=ga(5092,f|0,j|0,i|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break i;if((f|0)==(i|0))break f}J[695492]=0;a=ja(5018,h+24|0,J[682139],2375807,1130,2385586,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0; -_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;g=Z()|0;Fc(a);break d}g=Z()|0;break d}g=Z()|0;break d}k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if((d|0)<0){J[695492]=0;a=ja(5018,h+24|0,2379375,2375807,1133,2385586,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break v;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;g=Z()|0;Fc(a);break d}if(!d){i=0;break c}f=J[a+16>>2];if(!f){J[h+20>>2]=0;break l}J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break t;i=J[a+16>> -2];J[h+20>>2]=i;if(!i)break l;w:{if(K[a+9|0])break w;f=J[a+84>>2];d=(f|0)>0?(f|0)<(c+d|0)?f-c|0:d:d;k=(d|0)>0?d:0;if(K[a+8|0]|!K[a+10|0])break s;j=c;f=a;while(1){j=J[f+80>>2]+j|0;d=i;f=d;i=J[f+16>>2];if(i)continue;break}J[695492]=0;g=$(5074,f+20|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break r;if(g){if(J[f+84>>2]<(J[f+80>>2]+(j+k|0)|0))break w;break s}d=J[d+72>>2];J[695492]=0;d=ga(5092,d|0,j|0,k|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break r;if((d|0)==(k|0))break s}J[695492]=0;a=ja(5018,h+24|0, -J[682139],2375807,1161,2385586,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break u;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;g=ea(2411712)|0;i=cc;Fc(a);break q}g=Z()|0;break d}g=ea(2411712)|0;i=cc;break q}g=Z()|0;break d}a=J[a+80>>2];J[695492]=0;g=J[h+20>>2];i=ma(5102,g|0,b|0,a+c|0,k|0,e+1|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break p}g=ea(2411712)|0;i=cc}if((sa(2411712)|0)!=(i|0))break k;a=na(g|0)|0;J[695492]=0;a=J[a+4>>2];b=a?a:2377794;a=J[695492];J[695492]=0;x:{y:{if((a| -0)!=1){J[695492]=0;a=aa(4989,h+24|0,2379742)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]=0;b=fd(a,b,-1);c=J[695492];J[695492]=0;if((c|0)==1)break y;sc(a);if(!(b|e))break x;J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break b}g=Z()|0;break m}g=Z()|0;sc(a);break m}i=0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break o;g=J[h+20>>2]}J[h+20>>2]=0;if(!g)break c;J[695492]=0;a=J[g+4>>2]-1|0;J[g+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break c;J[695492]=0;_(4987, -g|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break a}g=Z()|0;break k}g=Z()|0}J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break k;break a}J[695492]=0;g=a+20|0;e=$(5074,g|0)|0;f=J[695492];J[695492]=0;z:{A:{if((f|0)!=1){if(e){j=J[a+84>>2];J[695492]=0;J[h+24>>2]=0;k=a+56|0;aa(4993,h+24|0,k|0)|0;e=J[695492];J[695492]=0;B:{C:{D:{E:{F:{G:{if((e|0)!=1){e=J[h+24>>2];if(!e){f=J[689872];if(!f){J[695492]=0;f=$(4,28)|0;e=J[695492];J[695492]=0;if((e|0)==1)break G;J[f+4>>2]=0;J[f+24>>2]=0;J[f+8>> -2]=0;J[f+12>>2]=0;J[f>>2]=2385980;J[f+16>>2]=0;J[f+20>>2]=0;J[695492]=0;e=f+8|0;J[e>>2]=2386024;J[e+4>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;e=J[695492];J[695492]=0;if((e|0)==1){g=Z()|0;qc(ed(f));break B}J[689872]=f}J[695492]=0;J[h+12>>2]=0;e=h+12|0;aa(4985,e|0,a|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break G;J[695492]=0;i=h+16|0;ia(5077,i|0,f|0,g|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break F;J[695492]=0;e=aa(4993,h+24|0,i|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break E;J[695492]=0;aa(4993,k|0,e| -0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break E;e=J[h+16>>2];J[h+16>>2]=0;H:{if(!e)break H;J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break H;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}e=J[h+12>>2];J[h+12>>2]=0;I:{if(!e)break I;J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break I;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}e=J[h+24>>2]}e=J[e+44>>2];f=J[J[e>>2]+ -20>>2];a=J[a+80>>2];J[695492]=0;ha(f|0,e|0,a+c|0,0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break C;a=J[J[h+24>>2]+44>>2];J[695492]=0;e=a;a=(j|0)>0?(j|0)<(c+d|0)?j-c|0:d:d;i=ga(5103,e|0,b|0,((a|0)>0?a:0)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break C;a=J[h+24>>2];J[h+24>>2]=0;if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break a}g=Z()|0;break B}g=Z()|0;break B}g=Z()|0;break D}g= -Z()|0;vc(h+16|0)}vc(h+12|0);break B}g=Z()|0}vc(h+24|0);break k}e=J[a+72>>2];J[695492]=0;e=ga(5104,e|0,c|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break A;if((e|0)>0){d=J[a+64>>2];f=J[J[d>>2]+20>>2];J[695492]=0;ha(f|0,d|0,c|0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){a=J[a+64>>2];J[695492]=0;i=ga(5103,a|0,b|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c}g=Z()|0;break k}if(K[a+8|0]){i=0;a=J[a+84>>2];if((a|0)<=0|(a|0)<=(c|0))break c;J[695492]=0;a=ja(5018,h+24|0,J[682138],2375807,1234,2385586, -0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break z;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;g=Z()|0;Fc(a);break k}J[695492]=0;b=$(4,24)|0;e=J[695492];J[695492]=0;J:{K:{if((e|0)==1)break K;J[b+20>>2]=d;J[b+16>>2]=c;H[b+12|0]=0;J[b+8>>2]=0;J[b>>2]=2386052;J[b+4>>2]=0;J[695492]=0;J[h+16>>2]=0;c=h+16|0;aa(4985,c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break K;J[695492]=0;a=a+88|0;da(5105,a|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;da(5106,a|0,a|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break b;break J}g=Z()|0;break k}na(ea(0)|0)|0;J[695492]=0;J[h+24>>2]=0;J[h+28>>2]=0;b=h+24|0;c=ga(5107,a|0,h+16|0,b|0)|0;d=J[695492];J[695492]=0;L:{M:{if((d|0)!=1){if(!c)break M;J[695492]=0;da(5065,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break M}break L}J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break b}g=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break a;vc(h+16|0);break k}g=Z()|0;break k}g=Z()|0;break k}g=Z()|0}vc(h+20|0)}J[l>> -2]=J[l>>2]-1;ba(g|0);B()}J[l>>2]=J[l>>2]-1;bc=h+48|0;return i|0}B()}ea(0)|0;yc();B()}function LG(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;e=bc-192|0;bc=e;J[e+176>>2]=0;J[e+180>>2]=0;J[e+168>>2]=0;J[e+160>>2]=0;J[e+164>>2]=0;J[e+152>>2]=0;J[e+156>>2]=0;J[e+144>>2]=0;J[e+148>>2]=0;i=Jn(e+144|0,2388756);J[e+136>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+120>>2]=0;J[e+124>>2]=0;J[695492]=0;J[e+112>>2]=0;J[e+116>>2]=0;h=aa(5080,e+112|0,2388776)|0;d=J[695492];J[695492]=0; -a:{b:{c:{if((d|0)!=1){d=J[b+20>>2];l=b+12|0;J[e+180>>2]=l;J[e+176>>2]=d;d:{e:{if(!d)break e;while(1){J[e+96>>2]=d;b=J[e+180>>2];J[e+100>>2]=b;f:{g:{h:{if((b|0)!=(l|0)){J[695492]=0;da(5073,e+96|0,l|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;break b}b=J[d+8>>2];J[695492]=0;b=aa(5137,b|0,c|0)|0;d=J[695492];J[695492]=0;i:{if((d|0)==1)break i;J[695492]=0;d=e+104|0;da(5138,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;b=kf(d);d=J[695492];J[695492]=0;if((d|0)==1)break g;J[695492]= -0;d=J[J[i+12>>2]+((b>>>0)%M[i+8>>2]<<2)>>2];g=J[695492];J[695492]=0;if((g|0)==1)break g;j:{k:{if(d)while(1){if((b|0)==J[d+12>>2]){J[695492]=0;g=ga(5117,d+16|0,e+104|0,-1)|0;j=J[695492];J[695492]=0;if((j|0)==1)break g;if(!g)break k}d=J[d+8>>2];if(d)continue;break}J[695492]=0;b=aa(5139,i|0,e+104|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;J[b+24>>2]=0;break f}J[695492]=0;j=aa(5140,h|0,e+104|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;d=J[e+176>>2];J[e+88>>2]=d;b=J[e+180>>2];J[e+92>>2]=b;if(!((b| -0)==(l|0)?d:0)){J[695492]=0;da(5073,e+88|0,l|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break g}J[695492]=0;b=$(4,12)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;J[b>>2]=0;J[b+4>>2]=0;g=J[d+8>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;g=J[695492];J[695492]=0;if((g|0)==1)break j;d=J[d+8>>2]}else d=0;J[b+8>>2]=d;J[695492]=0;of(j+24|0,b);b=J[695492];J[695492]=0;if((b|0)!=1)break f}break g}d=Z()|0;break d}d=Z()|0;break d}d=Z()|0;sc(e+104|0);break d}sc(e+104|0);b=J[e+176>>2];if(!b)break e;d=J[b>> -2];J[e+176>>2]=d;if(d)continue;break}}J[695492]=0;b=J[h+24>>2];J[e+108>>2]=h;J[e+104>>2]=b;b=J[695492];J[695492]=0;if((b|0)!=1){c=J[e+108>>2];b=J[e+104>>2];J[e+176>>2]=b;J[e+180>>2]=c;l:{if(!b)break l;while(1){if(J[e+180>>2]!=(h|0)){J[695492]=0;da(5073,e+176|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;d=Z()|0;break d}m:{n:{o:{c=J[b+16>>2];p:{if(!c){g=-1;d=b;c=h;break p}J[695492]=0;g=ga(5142,c|0,46,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o;d=J[e+176>>2];c=J[e+180>>2]}if(!((c|0)==(h|0)? -d:0)){J[695492]=0;da(5073,e+176|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;d=Z()|0;break d}c=J[d+32>>2];if(!c)break m;n=b+16|0;j=1;q:{r:{s:{t:{u:{v:{w:{x:{while(1){b=J[c+8>>2];J[e+104>>2]=0;J[e+108>>2]=J[682146];y:{b=J[b+36>>2];z:{A:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,e- -64|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break A;d=Z()|0;break z}J[e+64>>2]=0}J[695492]=0;aa(4993,e+104|0,e- -64|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[e+64>>2];J[e+64>>2]=0;if(!b)break y;J[695492]= -0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break y;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break y}break a}d=Z()|0;vc(e- -64|0)}sc(e+104|0);break d}b=J[e+104>>2];J[e+108>>2]=J[(b?b+12|0:2728584)>>2];J[695492]=0;d=e+104|0;b=aa(5115,e+72|0,d|0)|0;f=J[695492];J[695492]=0;B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{if((f|0)!=1){J[695492]=0;f=aa(5116,e+80|0,b|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break N;J[695492]=0;k=ga(5117,d|0,f|0,-1)|0;m=J[695492];J[695492]= -0;if((m|0)==1)break M;if(!k){J[695492]=0;k=kf(d);d=J[695492];J[695492]=0;if((d|0)==1)break M;J[695492]=0;d=J[J[h+12>>2]+((k>>>0)%M[h+8>>2]<<2)>>2];m=J[695492];J[695492]=0;if((m|0)==1)break M;O:{if(d)while(1){if(J[d+12>>2]==(k|0)){J[695492]=0;m=ga(5117,d+16|0,e+104|0,-1)|0;o=J[695492];J[695492]=0;if((o|0)==1)break M;if(!m)break O}d=J[d+8>>2];if(d)continue;break}sc(f);sc(b);break B}}sc(f);sc(b);while(1){P:{if((g|0)<0){J[695492]=0;b=e+56|0;ca(5121,b|0,n|0,2388068);d=J[695492];J[695492]=0;if((d|0)==1)break L; -J[695492]=0;d=aa(5120,e+48|0,j|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break K;J[695492]=0;ca(5122,e- -64|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break P;d=Z()|0;break s}J[695492]=0;b=e+24|0;ia(5143,b|0,n|0,0,g|0);d=J[695492];J[695492]=0;if((d|0)==1)break J;J[695492]=0;d=e+32|0;ca(5121,d|0,b|0,2388068);b=J[695492];J[695492]=0;if((b|0)==1)break I;J[695492]=0;b=aa(5120,e+16|0,j|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break H;J[695492]=0;f=e+40|0;ca(5122,f|0,d|0,b|0);b=J[695492];J[695492]=0; -if((b|0)==1)break G;J[695492]=0;b=e+8|0;ia(5143,b|0,n|0,g|0,-1);d=J[695492];J[695492]=0;if((d|0)==1)break F;J[695492]=0;ca(5122,e- -64|0,f|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break E}b=J[e+64>>2];Q:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,e+188|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break Q;d=Z()|0;break x}J[e+188>>2]=0}J[695492]=0;aa(4993,e+104|0,e+188|0)|0;b=J[695492];J[695492]=0;R:{if((b|0)!=1){b=J[e+188>>2];J[e+188>>2]=0;if(!b)break R;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f= -J[695492];J[695492]=0;if((f|0)!=1){if(d)break R;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break R}break a}d=Z()|0;vc(e+188|0);break x}b=J[e+104>>2];J[e+108>>2]=J[(b?b+12|0:2728584)>>2];sc(e- -64|0);S:{if((g|0)>=0){sc(e+8|0);sc(e+40|0);sc(e+16|0);sc(e+32|0);sc(e+24|0);break S}sc(e+48|0);sc(e+56|0)}J[695492]=0;b=e- -64|0;da(5138,b|0,e+104|0);d=J[695492];J[695492]=0;if((d|0)==1)break D;J[695492]=0;b=kf(b);d=J[695492];J[695492]=0;if((d|0)==1)break C;J[695492]=0;d=J[J[i+12>>2]+((b>>> -0)%M[i+8>>2]<<2)>>2];f=J[695492];J[695492]=0;if((f|0)==1)break C;j=j+1|0;T:{if(d)while(1){if((b|0)==J[d+12>>2]){J[695492]=0;f=ga(5117,d+16|0,e- -64|0,-1)|0;k=J[695492];J[695492]=0;if((k|0)==1)break C;if(!f)break T}d=J[d+8>>2];if(d)continue;break}sc(e- -64|0);break B}sc(e- -64|0);continue}}d=Z()|0;break q}d=Z()|0;sc(b);break q}d=Z()|0;sc(f);sc(b);break q}d=Z()|0;break q}d=Z()|0;break r}d=Z()|0;break q}d=Z()|0;sc(e+24|0);break q}d=Z()|0;break t}d=Z()|0;break u}d=Z()|0;break v}d=Z()|0;break w}d=Z()| -0;break q}d=Z()|0;sc(e- -64|0);break q}b=J[c+8>>2];J[695492]=0;d=b;b=e+104|0;da(5111,d|0,b|0);d=J[695492];J[695492]=0;U:{if((d|0)==1)break U;J[695492]=0;d=aa(5139,i|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break U;J[d+24>>2]=0;sc(b);c=J[c>>2];if(!c)break n;continue}break}d=Z()|0;break q}sc(e- -64|0);if((g|0)<0)break s}sc(e+8|0)}sc(e+40|0)}sc(e+16|0)}sc(e+32|0);sc(e+24|0);break q}sc(e+48|0)}sc(e+56|0)}sc(e+104|0);break d}d=Z()|0;break d}d=J[e+176>>2];if(!d)break l}b=J[d>>2];J[e+176>>2]=b;if(b)continue; -break}}J[695492]=0;aa(5031,a|0,l|0)|0;a=J[695492];J[695492]=0;if((a|0)==1){d=Z()|0;break d}Bd(h);Bd(i);bc=e+192|0;return}d=Z()|0}Bd(h);break c}d=Z()|0}Bd(i);ba(d|0);B()}B()}ea(0)|0;yc();B()}function XV(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,L=0,M=0,N=0,O=0;f=bc-368|0;bc=f;a:{b:{e=J[a+200>>2];if(e&1){c:{if(e&4){Yc(a,63776);Ld(a,c);break c}if(e&2)Yc(a,63855);if(!(!b|(J[b+8>>2]&2052)!=4)){Yc(a,63883);Ld(a,c); -break c}if((c|0)!=32){Yc(a,64009);Ld(a,c);break c}c=f+336|0;qg(a,c,32);pe(a,c,32);if(Ld(a,0))break c;d:{c=J[f+336>>2];o=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e:{if((o|0)<0)break e;c=J[f+340>>2];l=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((l|0)<0)break e;c=J[f+344>>2];m=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((m|0)<0)break e;c=J[f+348>>2];i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((i|0)<0)break e;c=J[f+352>>2];h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((h|0)<0)break e;c=J[f+356>>2];g=c<< -24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((g|0)<0)break e;c=J[f+360>>2];e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((e|0)<0)break e;c=J[f+364>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((c|0)>=0)break d}Yc(a,64832);break c}t=(c|0)<0?-1:c;u=(e|0)<0?-1:e;v=(g|0)<0?-1:g;w=(h|0)<0?-1:h;x=(i|0)<0?-1:i;y=(m|0)<0?-1:m;z=(l|0)<0?-1:l;A=(o|0)<0?-1:o;if(!(!b|!(K[b+9|0]&8))){f:{if(A-32271>>>0<4294965295|z>>>0<31900|(y>>>0<63E3|z>>>0>33900))break f;if(x>>>0<32E3|y>>>0>65E3|(w>>>0<29E3|x>>>0>34E3))break f; -if(v>>>0<59E3|w>>>0>31E3|(u>>>0<14E3|v>>>0>61E3))break f;if(t>>>0<5E3|u>>>0>16E3)break f;if(t>>>0<7001)break c}b=f+80|0;pk(b,1,5,A);pk(b,2,5,z);pk(b,3,5,y);pk(b,4,5,x);pk(b,5,5,w);pk(b,6,5,v);pk(b,7,5,u);pk(b,8,5,t);Kq(a,b,64914);break c}g:{if(K[a+654|0])break g;J[f+56>>2]=w;e=f- -64|0;J[e>>2]=u;J[f+72>>2]=A;J[f+60>>2]=v;c=J[f+60>>2];J[f+8>>2]=J[f+56>>2];J[f+12>>2]=c;J[f+68>>2]=t;c=J[e+4>>2];J[f+16>>2]=J[e>>2];J[f+20>>2]=c;J[f+76>>2]=z;c=J[f+76>>2];J[f+24>>2]=J[f+72>>2];J[f+28>>2]=c;J[f+52>>2]=x; -J[f+48>>2]=y;c=J[f+52>>2];J[f>>2]=J[f+48>>2];J[f+4>>2]=c;c=0;j=bc-32|0;bc=j;e=J[f+28>>2];J[j+24>>2]=J[f+24>>2];J[j+28>>2]=e;e=J[f+20>>2];J[j+16>>2]=J[f+16>>2];J[j+20>>2]=e;e=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=e;e=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=e;L=1;h:{i:{j:{k:{l:{r=J[j>>2];if(r>>>0>1E5)break l;p=J[j+4>>2];if((p|0)<0|(p|0)>(1E5-r|0))break l;s=J[j+8>>2];if(s>>>0>1E5)break l;q=J[j+12>>2];if((q|0)<0|(q|0)>(1E5-s|0))break l;n=J[j+16>>2];if(n>>>0>1E5)break l;k=J[j+20>>2];if((k|0)<0|(k|0)>(1E5- -n|0))break l;C=J[j+24>>2];if(C>>>0>1E5)break l;m=J[j+28>>2];if((m|0)<5|(m|0)>(1E5-C|0))break l;M=p-k|0;D=s-n|0;e=(n|0)==(s|0);h=0;m:{n:{if(e)break n;h=0;if((k|0)==(p|0))break n;i=2;d=V(+(D|0)*+(M|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;h=~~d;if(R(d)<2147483648)break n;h=-2147483648}N=r-n|0;o=q-k|0;l=(n|0)==(r|0);o:{if(l|(k|0)==(q|0))break o;i=2;d=V(+(N|0)*+(o|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break o}c=-2147483648}O=m-k|0;g=0;p:{if(e)break p; -g=0;if((k|0)==(m|0))break p;i=2;d=V(+(D|0)*+(O|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break p;g=-2147483648}D=C-n|0;q:{if((k|0)==(q|0)|(n|0)==(C|0))break q;i=2;d=V(+(o|0)*+(D|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){H=~~d;break q}H=-2147483648}if((g|0)==(H|0))break l;o=h-c|0;e=m;i=e;h=(c|0)==(h|0);c=0;r:{if(h)break r;d=V(+(e|0)*+(o|0)/+(g-H|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648))break l;c=~~d;if(R(d)<2147483648)break r; -c=-2147483648}e=c;if((i|0)>=(e|0))break l;c=0;g=0;s:{if((k|0)==(p|0))break s;g=0;if((n|0)==(C|0))break s;i=2;d=V(+(M|0)*+(D|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break s;g=-2147483648}t:{if((k|0)==(m|0)|l)break t;i=2;d=V(+(N|0)*+(O|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break t}c=-2147483648}if((c|0)==(g|0))break l;l=0;u:{if(h)break u;d=V(+(m|0)*+(o|0)/+(g-c|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648))break l;l=~~d; -if(R(d)<2147483648)break u;l=-2147483648}i=1;if((m|0)>=(l|0))break m;E=+(l|0);F=V(1E10/E+.5);c=F>=-2147483648;G=+(e|0);d=V(1E10/G+.5);e=d>=-2147483648;if(R(F)<2147483648)g=~~F;else g=-2147483648;g=F<=2147483647?c?g:0:0;if(R(d)<2147483648)c=~~d;else c=-2147483648;e=g+(d<=2147483647?e?c:0:0)|0;d=V(1E10/+(m|0)+.5);c=d>=-2147483648;if(R(d)<2147483648)g=~~d;else g=-2147483648;h=(d<=2147483647?c?g:0:0)-e|0;if((h|0)<=0)break m;c=0;e=0;v:{if(!r)break v;d=V(+(r|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m; -e=~~d;if(R(d)<2147483648)break v;e=-2147483648}J[f+80>>2]=e;w:{if(!p)break w;d=V(+(p|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break w}c=-2147483648}J[f+84>>2]=c;c=0;e=p+r|0;g=0;x:{if((e|0)==1E5)break x;d=V(+(1E5-e|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break x;g=-2147483648}J[f+88>>2]=g;y:{if(!s)break y;d=V(+(s|0)*1E5/E+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break y}c=-2147483648}J[f+ -92>>2]=c;c=0;e=0;z:{if(!q)break z;d=V(+(q|0)*1E5/E+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break z;e=-2147483648}J[f+96>>2]=e;e=q+s|0;A:{if((e|0)==1E5)break A;d=V(+(1E5-e|0)*1E5/E+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break A}c=-2147483648}J[f+100>>2]=c;c=0;e=0;B:{if(!n)break B;d=V(+(n|0)*+(h|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break B;e=-2147483648}J[f+104>>2]=e;C:{if(!k)break C; -d=V(+(k|0)*+(h|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break C}c=-2147483648}J[f+108>>2]=c;c=k+n|0;e=0;D:{if((c|0)==1E5)break D;d=V(+(1E5-c|0)*+(h|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break D;e=-2147483648}J[f+112>>2]=e;i=0}break k}i=1}switch(i|0){case 0:break h;case 1:break i;default:break j}}Ad(a,61560);B()}Yc(a,61287);L=0}bc=j+32|0;if(!L)break g;if(!jA(f+44|0,J[f+84>>2],32768))break a;c=J[f+44>>2];if((c|0)< -0|(c|0)>32768)break a;if(!jA(f+40|0,J[f+96>>2],32768))break a;c=J[f+40>>2];if((c|0)<0|(c|0)>32768)break a;if(!jA(f+36|0,J[f+108>>2],32768))break a;c=J[f+36>>2];if((c|0)<0|(c|0)>32768)break a;i=J[f+40>>2];h=J[f+44>>2];e=i+(h+c|0)|0;if((e|0)>32769)break a;g=-1;E:{if((e|0)!=32769){g=1;if((e|0)>32767)break E}if(!((i|0)<(h|0)|(c|0)>(i|0))){i=i+g|0;J[f+40>>2]=i;break E}if(!((i|0)>(h|0)|(c|0)>(h|0))){h=h+g|0;J[f+44>>2]=h;break E}c=c+g|0;J[f+36>>2]=c}if(((i+h|0)+c|0)!=32768)break b;I[a+658>>1]=i;I[a+656>> -1]=h}F:{if(!a|!b)break F;if(!oH(a,A,z,y,x,w,v,u,t))break F;J[b+156>>2]=t;J[b+152>>2]=u;J[b+148>>2]=v;J[b+144>>2]=w;J[b+140>>2]=x;J[b+136>>2]=y;J[b+132>>2]=z;J[b+128>>2]=A;J[b+8>>2]=J[b+8>>2]|4}}bc=f+368|0;return}Ad(a,63671);B()}Ad(a,65054);B()}Ad(a,65229);B()}function DC(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;j=bc-32|0;bc=j;a:{b:{c:{if(!b)break c;e=J[a+16>>2];if(e)g=K[e+2904|0]!=0;else g=0;s=J[b+8>>2];if(!(s?(s|0)!=1E3:0)){c=O[a+672>>3]*+J[b+20>>2];d:{if(c< -4294967296&c>=0){a=~~c>>>0;break d}a=0}b=J[b+12>>2];if(g)i=b<<16&16711680|(b>>>16&255|(b&65280|a<<24));else i=b|a<<24;J[j+4>>2]=i;if(!(!e|!K[e+2905|0])){H[j+24|0]=0;H[j+20|0]=0;H[j+31|0]=0;c=0;n=j+4|0;a=J[n>>2];i=a>>>16|0;b=(g?i:a)&255;l=a>>>8|0;e=l&255;f=b>>>0>e>>>0?b:e;s=g?a:i;i=s&255;a=f>>>0>i>>>0?f:i;d=b>>>0>>0?b:e;d=d>>>0>>0?d:i;h=+(a+d|0)/255;p=h*.5;if((a|0)!=(d|0)){c=+((a-d&255)>>>0)/255;m=c/(p<.5?h:2-h);h=c*1530;r=+(a-i|0)/h;t=+(a-e|0)/h;c=r-t;e:{if((a|0)==(b|0))break e;h=+(a-b|0)/h; -c=h+.3333333333333333-r;if((a|0)==(l&255))break e;c=0;if(f>>>0>(s&255)>>>0)break e;c=t+.6666666666666666-h}c=c<0?c+1:c;r=(c>1?c+-1:c)*255;c=m*255}h=r<=0?0:r;f:{if(h<4294967296&h>=0){a=~~h>>>0;break f}a=0}H[j+24|0]=a;c=c<=0?0:c;g:{if(c<4294967296&c>=0){a=~~c>>>0;break g}a=0}H[j+31|0]=a;c=p*255;c=c<=0?0:c;h:{if(c<4294967296&c>=0){H[j+20|0]=~~c>>>0;break h}H[j+20|0]=0}a=(P(K[j+20|0],197)>>>0)/255^-1;H[j+20|0]=a;b=K[j+24|0];a=a&255;i=K[j+7|0];e=K[j+31|0];i:{if(!e){b=a;e=a;break i}c=+(e>>>0)/255;m=+(b>>> -0)/255;h=+(a>>>0)/255;j:{if(h<.5){c=h*(c+1);break j}c=h+c-c*h}h=h+h-c;p=m+.3333333333333333;r=p>1?p+-1:p;k:{if(r<0){p=(c-h)*6*r+h;break k}p=c;if(r<.5)break k;p=h}r=p;t=m>1?m+-1:m;l:{if(t<0){p=(c-h)*6*t+h;break l}p=c;if(t<.5)break l;p=h}m=m+-.6666666666666666;m=m<0?m+1:m;m=m>1?m+-1:m;m:{if(m<0){c=(c-h)*6*m+h;break m}if(m<.5)break m;c=h}h=p*255;c=c*255;c=c<=0?0:c;n:{if(c<4294967296&c>=0){a=~~c>>>0;break n}a=0}c=r*255;h=h<=0?0:h;o:{if(h<4294967296&h>=0){b=~~h>>>0;break o}b=0}c=c<=0?0:c;if(c<4294967296& -c>=0){e=~~c>>>0;break i}e=0}J[n>>2]=b<<8|(g?a:e)|(g?e:a)<<16|i<<24;i=J[j+4>>2]}f=rc(12);J[695492]=0;J[f+8>>2]=i;J[f>>2]=349232;J[f+4>>2]=0;a=J[695492];J[695492]=0;if((a|0)!=1)break c;break a}p:{q:{r:{s:{t:{if(!(s-2001>>>0<9|s-6E3>>>0<8)){if((s|0)!=4009)break r;c=O[a+672>>3];h=c*+J[b+20>>2];if(!(h<4294967296&h>=0))break t;a=~~h>>>0;break s}c=O[a+672>>3];h=c*+J[b+20>>2];u:{if(h<4294967296&h>=0){e=~~h>>>0;break u}e=0}f=J[b+12>>2];v:{if(!g){d=f|e<<24;l=J[b+16>>2];c=c*+J[b+24>>2];w:{if(c<4294967296&c>= -0){e=~~c>>>0;break w}e=0}e=l|e<<24;break v}n=J[b+16>>2];l=n&65280;d=f<<16&16711680|(f>>>16&255|(f&65280|e<<24));f=n<<16&16711680;n=n>>>16&255;c=c*+J[b+24>>2];x:{if(c<4294967296&c>=0){e=~~c>>>0;break x}e=0}e=f|(n|(l|e<<24))}J[j+20>>2]=e;J[j+24>>2]=d;d=rc(336);J[j+12>>2]=1065353216;J[j+16>>2]=1065353216;J[j+4>>2]=0;J[j+8>>2]=0;c=O[b+112>>3];J[695492]=0;f=Sb(2221,d|0,j+4|0,j+24|0,j+20|0,Q(Q(c)),1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[f+332>>2]=1;tc(f+8|0,b+132|0,80);dx(f+88|0,b+212|0);u=3; -o=J[b+120>>2];l=J[b+124>>2]-o|0;e=l>>3;if((e|0)<=0)break p;k=l>>>1|0;n=rc(k);d=n;l=(l>>1)-4|0;q=(l>>>2|0)+1&7;if(q)while(1){J[d>>2]=-16777216;d=d+4|0;i=i+1|0;if((q|0)!=(i|0))continue;break}if(l>>>0>=28){i=(e<<2)+n|0;while(1){J[d+24>>2]=-16777216;J[d+28>>2]=-16777216;J[d+16>>2]=-16777216;J[d+20>>2]=-16777216;J[d+8>>2]=-16777216;J[d+12>>2]=-16777216;J[d>>2]=-16777216;J[d+4>>2]=-16777216;d=d+32|0;if((i|0)!=(d|0))continue;break}}l=rc(k);c=O[a+672>>3];d=0;if(g)while(1){g=d<<2;i=g+n|0;k=o+(d<<3)|0;a=J[k>> -2];q=a>>>16&255|a&65280|a<<16&16711680;h=c*+(a>>>24|0);y:{if(h<4294967296&h>=0){a=~~h>>>0;break y}a=0}J[i>>2]=q|a<<24;N[g+l>>2]=+J[k+4>>2]*1.52587890625E-5;d=d+1|0;if((e|0)!=(d|0))continue;break q}while(1){g=d<<2;i=g+n|0;k=o+(d<<3)|0;a=J[k>>2];q=a&16777215;h=c*+(a>>>24|0);z:{if(h<4294967296&h>=0){a=~~h>>>0;break z}a=0}J[i>>2]=q|a<<24;N[g+l>>2]=+J[k+4>>2]*1.52587890625E-5;d=d+1|0;if((e|0)!=(d|0))continue;break}break q}a=0}e=J[b+12>>2];A:{if(!g){a=e|a<<24;d=J[b+16>>2];c=c*+J[b+24>>2];B:{if(c<4294967296& -c>=0){g=~~c>>>0;break B}g=0}g=d|g<<24;break A}g=J[b+16>>2];i=g&65280;a=e<<16&16711680|(e>>>16&255|(e&65280|a<<24));d=g<<16&16711680;e=g>>>16&255;c=c*+J[b+24>>2];C:{if(c<4294967296&c>=0){g=~~c>>>0;break C}g=0}g=d|(e|(i|g<<24))}d=rc(64);J[695492]=0;f=T2(d);e=J[695492];J[695492]=0;if((e|0)!=1){J[f+24>>2]=g;J[f+20>>2]=a;T3(f+8|0,b+36|0);O[f+32>>3]=O[b+80>>3];O[f+40>>3]=O[b+88>>3];O[f+48>>3]=O[b+96>>3];O[f+56>>3]=O[b+104>>3];break c}break b}g=J[b+28>>2];f=rc(80);D:{if(g){J[695492]=0;ga(2223,f|0,g|0,4)| -0;b=J[695492];J[695492]=0;if((b|0)!=1)break D;break a}J[695492]=0;ga(2224,f|0,b+36|0,4)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break D;break a}sC(f,a+120|0);break c}J[f+272>>2]=J[f+268>>2];E:{if(!l|!n|(e|0)<=0)break E;d=0;i=0;o=0;F:{k=J[f+276>>2];g=J[f+272>>2];if(e>>>0<=k-g>>3>>>0){G:{if(!e)break G;a=g;i=e&7;if(i)while(1){J[a>>2]=-16777216;J[a+4>>2]=0;a=a+8|0;d=d+1|0;if((i|0)!=(d|0))continue;break}g=(e<<3)+g|0;if((e-1&536870911)>>>0<7)break G;while(1){J[a+56>>2]=-16777216;J[a+60>>2]=0;J[a+48>>2]=-16777216; -J[a+52>>2]=0;J[a+40>>2]=-16777216;J[a+44>>2]=0;J[a+32>>2]=-16777216;J[a+36>>2]=0;J[a+24>>2]=-16777216;J[a+28>>2]=0;J[a+16>>2]=-16777216;J[a+20>>2]=0;J[a+8>>2]=-16777216;J[a+12>>2]=0;J[a>>2]=-16777216;J[a+4>>2]=0;a=a- -64|0;if((g|0)!=(a|0))continue;break}}J[f+272>>2]=g;break F}H:{d=J[f+268>>2];q=g-d>>3;a=q+e|0;if(a>>>0<536870912){d=k-d|0;k=d>>2;k=d>>>0>=2147483640?536870911:a>>>0>>0?k:a;if(k){if(k>>>0>=536870912)break H;o=rc(k<<3)}d=(q<<3)+o|0;a=d;q=e&7;if(q)while(1){J[a>>2]=-16777216;J[a+4>>2]= -0;a=a+8|0;i=i+1|0;if((q|0)!=(i|0))continue;break}i=(e<<3)+d|0;if((e-1&536870911)>>>0>=7)while(1){J[a+56>>2]=-16777216;J[a+60>>2]=0;J[a+48>>2]=-16777216;J[a+52>>2]=0;J[a+40>>2]=-16777216;J[a+44>>2]=0;J[a+32>>2]=-16777216;J[a+36>>2]=0;J[a+24>>2]=-16777216;J[a+28>>2]=0;J[a+16>>2]=-16777216;J[a+20>>2]=0;J[a+8>>2]=-16777216;J[a+12>>2]=0;J[a>>2]=-16777216;J[a+4>>2]=0;a=a- -64|0;if((i|0)!=(a|0))continue;break}a=J[f+268>>2];if((a|0)!=(g|0)){while(1){g=g-8|0;q=J[g+4>>2];d=d-8|0;J[d>>2]=J[g>>2];J[d+4>>2]=q; -if((a|0)!=(g|0))continue;break}g=J[f+268>>2]}J[f+276>>2]=(k<<3)+o;J[f+272>>2]=i;J[f+268>>2]=d;if(g)qc(g);break F}S2();B()}Sd();B()}g=J[f+268>>2];a=0;if((e|0)!=1){i=e&-2;d=0;while(1){o=g+(a<<3)|0;k=a<<2;J[o>>2]=J[k+n>>2];N[o+4>>2]=N[k+l>>2];o=a|1;k=g+(o<<3)|0;o=o<<2;J[k>>2]=J[o+n>>2];N[k+4>>2]=N[l+o>>2];a=a+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(e&1))break E;g=g+(a<<3)|0;a=a<<2;J[g>>2]=J[a+n>>2];N[g+4>>2]=N[a+l>>2]}qc(n);qc(l)}O[f+288>>3]=O[b+80>>3];O[f+296>>3]=O[b+88>>3];O[f+304>>3]=O[b+ -96>>3];O[f+312>>3]=O[b+104>>3];I:{J:switch(s-6E3|0){default:if((s|0)==2007)break I;break c;case 0:J[f+4>>2]=100;break c;case 1:J[f+4>>2]=5;break c;case 4:J[f+4>>2]=8;break c;case 2:J[f+4>>2]=6;break c;case 3:J[f+4>>2]=7;break c;case 7:J[f+4>>2]=11;break c;case 6:J[f+4>>2]=10;break c;case 5:break J}u=9}J[f+4>>2]=u}bc=j+32|0;return f}a=Z()|0;qc(d);ba(a|0);B()}a=Z()|0;qc(f);ba(a|0);B()}function vJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;i=bc-32|0;bc=i;a:{if(!a|(b|0)<=0)break a;f= -gc[J[659447]](36)|0;if(!f){J[i>>2]=5402;Cc(0,0,0,0,0,8,2,3,5402,0,0,0,32863,i);f=0;break a}J[f>>2]=0;J[f+4>>2]=0;J[f+32>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;h=gc[J[659447]](36)|0;if(!h){J[i+16>>2]=5439;Cc(0,0,0,0,0,29,2,3,5439,0,0,0,32863,i+16|0);J[f+16>>2]=0;gc[J[659451]](f);f=0;break a}J[h+24>>2]=b;J[h+20>>2]=b;J[h+8>>2]=b;J[h+4>>2]=b;J[h+12>>2]=2;J[h>>2]=a;J[h+28>>2]=0;J[h+32>>2]=0;J[f+16>>2]=h;b=WJ(0);J[f+12>>2]=b;if(b)b=hr(J[659448]<<1);else b=0; -J[f+24>>2]=-1;J[f+20>>2]=b;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=a}bc=i+32|0;if(f){h=f;b=0;b:{if(!f)break b;a=gc[J[659447]](128)|0;if(a){b=wc(a,0,128);J[b+28>>2]=f;a=hr(100);J[b+84>>2]=a;c:{if(!a)break c;d:{if(J[a+32>>2]|(J[a+12>>2]&-2)==2)break d;J[a+12>>2]=5;a=J[a+28>>2];if(!a)break d;J[a+12>>2]=5}a=gc[J[659447]](128)|0;J[b+24>>2]=a;if(!a){a=J[b+84>>2];if(a){f=J[a+12>>2];e:{f:{g:{if((f|0)==3){f=J[a+16>>2];if(!f)break g;break f}if((f|0)==2)break e}f=J[a>>2];if(!f)break e}gc[J[659451]](f)}gc[J[659451]](a)}break c}J[a+ -108>>2]=-554844497;J[a+124>>2]=0;J[a+104>>2]=3129;J[a>>2]=3130;J[a+96>>2]=3131;J[a+20>>2]=3132;J[a+16>>2]=3133;J[a+12>>2]=3134;J[a+8>>2]=3135;J[a+4>>2]=3136;J[a+36>>2]=3137;J[a+32>>2]=3138;J[a+24>>2]=3139;J[a+100>>2]=3140;J[a+68>>2]=3141;J[a+64>>2]=3142;J[a+52>>2]=3143;J[a+48>>2]=3144;J[a+44>>2]=3145;J[a+40>>2]=3146;J[a+28>>2]=3147;J[a+92>>2]=3106;J[a+88>>2]=3106;J[a+84>>2]=3107;J[a+80>>2]=3148;J[a+76>>2]=3149;J[b+32>>2]=0;J[a+56>>2]=3155;J[b+36>>2]=0;J[a+120>>2]=3156;J[a+116>>2]=3157;J[a+60>>2]= -3158;J[b+44>>2]=3150;J[b+40>>2]=3151;J[b+48>>2]=J[a+68>>2];J[a+72>>2]=3159;J[a+68>>2]=3159;J[b+52>>2]=J[a+100>>2];J[a+100>>2]=3160;J[b+64>>2]=0;J[b+68>>2]=0;J[b>>2]=0;h:{i:{g=J[J[b+28>>2]+16>>2];j:{if(!(!g|J[g+32>>2])){a=J[g+8>>2];if(!((a|0)==J[g+24>>2]|a>>>0>2147483646))J[g+24>>2]=a;a=J[g+20>>2];f=J[g+4>>2];if(!((a|0)==(f|0)|f>>>0>2147483646)){J[g+20>>2]=f;a=f}if(a>>>0>3)break j}if(!(J[h+28>>2]|!J[h+4>>2])){DB(h,4);g=J[J[b+28>>2]+16>>2]}if(!g)break i}if(J[g+32>>2])break i;a=J[g+8>>2];if(!((a|0)== -J[g+24>>2]|a>>>0>2147483646))J[g+24>>2]=a;a=J[g+20>>2];f=J[g+4>>2];if(!((a|0)==(f|0)|f>>>0>2147483646)){J[g+20>>2]=f;a=f}f=4;if(a>>>0<4)break i;a=$_(J[b+24>>2],J[g>>2],4,c);break h}f=0;a=$_(J[b+24>>2],0,0,c)}J[b+60>>2]=f;J[b+56>>2]=0;J[b+20>>2]=a;if(!a){gc[J[659549]](J[689514],36039,0);a=J[b+84>>2];if(a){f=J[a+12>>2];k:{l:{m:{if((f|0)==3){f=J[a+16>>2];if(!f)break m;break l}if((f|0)==2)break k}f=J[a>>2];if(!f)break k}gc[J[659451]](f)}gc[J[659451]](a)}gc[J[659451]](J[b+24>>2]);gc[J[659451]](b);b=0; -break b}J[a+364>>2]=1;J[a+280>>2]=1;J[a+272>>2]=b;J[a+436>>2]=5;J[b+12>>2]=2;J[a+308>>2]=1;J[b+88>>2]=J[a+296>>2];break b}gc[J[659451]](b)}gc[J[659549]](J[689514],36039,0);b=0}g=b;if(!g){cn(h);return 0}J[g+12>>2]=J[g+12>>2]|1;h=bc-32|0;bc=h;n:{if(!g)break n;J[g+96>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;f=e|65536;J[g+120>>2]=f;o:{a=J[g+84>>2];if(a)break o;a=hr(100);J[g+84>>2]=a;if(a)break o;gc[J[659549]](J[689514],36073,0);break n}p:{if(J[a+32>>2]|(J[a+12>>2]&-2)==2)break p;J[a+12>>2]=5;a=J[a+28>>2];if(!a)break p; -J[a+12>>2]=5}q:{a=J[g+24>>2];if(a)break q;a=gc[J[659447]](128)|0;J[g+24>>2]=a;if(a)break q;gc[J[659549]](J[689514],36073,0);break n}J[a+108>>2]=-554844497;J[a+124>>2]=0;J[a+104>>2]=3129;J[a>>2]=3130;J[a+96>>2]=3131;J[a+20>>2]=3132;J[a+16>>2]=3133;J[a+12>>2]=3134;J[a+8>>2]=3135;J[a+4>>2]=3136;J[a+36>>2]=3137;J[a+32>>2]=3138;J[a+24>>2]=3139;J[a+100>>2]=3140;J[a+68>>2]=3141;J[a+64>>2]=3142;J[a+52>>2]=3143;J[a+48>>2]=3144;J[a+44>>2]=3145;J[a+40>>2]=3146;J[a+28>>2]=3147;J[a+92>>2]=3106;J[a+88>>2]=3106; -J[a+84>>2]=3107;J[a+80>>2]=3148;J[a+76>>2]=3149;J[g+32>>2]=0;J[a+56>>2]=3155;J[g+36>>2]=0;J[a+120>>2]=3156;J[a+116>>2]=3157;J[a+60>>2]=3158;J[g+44>>2]=3150;J[g+40>>2]=3151;J[g+48>>2]=J[a+68>>2];J[a+72>>2]=3159;J[a+68>>2]=3159;J[g+52>>2]=J[a+100>>2];J[a+100>>2]=3160;J[g+64>>2]=0;J[g+68>>2]=0;J[g>>2]=0;a=J[g+20>>2];b=J[a+296>>2];i=J[g+88>>2];r:{if(i){if(b){if((b|0)==(i|0))break r;dn(i);a=J[g+20>>2];J[g+88>>2]=J[a+296>>2];break r}J[a+296>>2]=i;break r}if(!b){b=0;s:{if(!K[2758024]){a=zc(4);J[689507]= -a;if(!a)break s;H[2758024]=1}a=gc[J[659447]](32)|0;if(!a)break s;J[a+28>>2]=0;J[a>>2]=1;J[a+8>>2]=128;J[a+12>>2]=0;i=gc[J[659447]](2560)|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+4>>2]=i;if(i){wc(i,0,2560);J[a+24>>2]=0;b=a;break s}gc[J[659451]](a)}a=J[g+20>>2];J[a+296>>2]=b}J[g+88>>2]=b}J[a+364>>2]=1;J[a+280>>2]=1;J[a+272>>2]=g;J[a+436>>2]=5;J[a+308>>2]=1;if(e&16)J[g+8>>2]=1;b=0;if(a){e=1;t:{if(!(f&1)){e=0;break t}J[a+360>>2]=J[a+360>>2]|1;f=f-1|0}J[a+288>>2]=e;if(f&4){J[a+360>>2]=J[a+360>>2]|4;f=f-4|0;b=2}J[a+ -276>>2]=b;if(f&8){J[a+276>>2]=b|4;J[a+360>>2]=J[a+360>>2]|8;f=f-8|0}if(f&2){J[a+360>>2]=J[a+360>>2]|2;f=f-2|0;b=1}else b=0;J[a+16>>2]=b;if(f&128){J[a+360>>2]=J[a+360>>2]|128;f=f-128|0;b=1}else b=0;J[a+268>>2]=b;if(f&256){J[J[a>>2]+72>>2]=3152;J[a+360>>2]=J[a+360>>2]|256;f=f-256|0;b=0}else b=1;J[a+208>>2]=b;u:{if(f&16){J[a+104>>2]=1;if(f&64)J[a+116>>2]=0;if(f&32)J[a+112>>2]=0;J[a+360>>2]=J[a+360>>2]|16;f=f-16|0;break u}J[a+104>>2]=0}if(f&64){J[J[a>>2]+84>>2]=0;f=f+-64|0}if(f&32){b=J[a>>2];J[b+88>> -2]=0;J[b+92>>2]=0;f=f-32|0}if(f&512){b=J[a>>2];J[b+116>>2]=0;J[b+120>>2]=0;J[b+60>>2]=3127;J[b+56>>2]=3128;J[b+108>>2]=1;J[a+360>>2]=J[a+360>>2]|512;f=f-512|0}if(f&4096){J[a+360>>2]=J[a+360>>2]|4096;f=f-4096|0;b=0}else b=1;J[a+364>>2]=b;if(f&16384){J[J[a>>2]+100>>2]=0;J[a+360>>2]=J[a+360>>2]|16384;f=f-16384|0}if(f&8192){J[a+360>>2]=J[a+360>>2]|8192;f=f+-8192|0}if(f&2048){J[a+360>>2]=J[a+360>>2]|2048;f=f-2048|0}if(f&8388608){J[a+360>>2]=J[a+360>>2]|8388608;f=f-8388608|0}if(f&65536){J[a+360>>2]=J[a+ -360>>2]|65536;f=f-65536|0}if(f&131072){J[a+360>>2]=J[a+360>>2]|131072;f=f-131072|0}if(f&262144){J[a+360>>2]=J[a+360>>2]|262144;f=f-262144|0}v:{if(!(f&524288))break v;J[a+360>>2]=J[a+360>>2]|524288;f=f-524288|0;b=J[a+296>>2];if(!b)break v;if(b)J[b+28>>2]=0}if(f&1048576){J[a+360>>2]=J[a+360>>2]|1048576;f=f+-1048576|0}if(f&2097152){J[a+360>>2]=J[a+360>>2]|2097152;f=f-2097152|0}if(f&4194304)J[a+360>>2]=J[a+360>>2]|4194304;J[a+280>>2]=1}w:{if(!d)break w;b=kg(d);if(!b)break w;a=J[g+20>>2];d=J[a+36>>2]; -x:{if(d){JJ(a,d,b,-1);a=a+256|0;break x}if(J[a+172>>2]==-1?J[a+212>>2]:0)break w;J[a+84>>2]=1;J[h>>2]=0;Cc(0,0,0,a,0,1,1,3,0,0,0,0,30787,h);J[a+12>>2]=0;if(J[a+288>>2])break w;a=a+212|0}J[a>>2]=1}y:{if(!c)break y;a=J[J[g+20>>2]+36>>2];if(!a|J[a+4>>2])break y;a=c;while(1){b=a;a=a+1|0;if(K[b|0])continue;break}a=0;b=b-c|0;z:{if((b|0)<0)break z;d=gc[J[659450]](b+1|0)|0;if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break z}a=tc(d,c,b);H[b+a|0]=0}J[J[J[g+20>>2]+36>>2]+4>>2]=a}J[g+4>>2]=0}bc=h+32|0}return g| -0}function bib(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,u=0,v=0,w=0,x=0;g=bc+-64|0;bc=g;J[g+40>>2]=0;f=K[a+48|0];a:{if(!(J[a+536>>2]|!f)){e=8;break a}e=J[a+540>>2];d=J[e>>2];if(!d){h=J[a>>2];J[e+4>>2]=1674;d=Zd(h,552,g+40|0);J[J[a+540>>2]>>2]=d;e=64;if(J[g+40>>2])break a;J[d>>2]=h;if(!f)J[d+548>>2]=J[J[a+532>>2]+3088>>2];e=d+168|0;J[e>>2]=0;J[e+4>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;J[d+152>>2]=0;J[d+156>>2]=0;J[d+144>>2]=1675;J[d+148>>2]=1676; -J[d+168>>2]=d+4;J[d+164>>2]=h;J[d+156>>2]=1677}J[d+176>>2]=a;J[d+172>>2]=a;h=J[a+4>>2];m=H[J[h+128>>2]+56|0];e=J[h+96>>2];n=K[e+32|0];J[g+12>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+36>>2]=b;J[g+24>>2]=0;J[g+32>>2]=b?b+c|0:0;J[g+28>>2]=b;J[g+4>>2]=0;J[g+8>>2]=0;b=J[a+8>>2];j=K[b+161|0];l=K[b+160|0];b:{if(!l){c=1024;b=1024;break b}c=(J[b+168>>2]+32|0)/64|0;b=(J[b+164>>2]+32|0)/64|0}J[g+12>>2]=c;J[g>>2]=b;i=f?i:K[h+732|0];H[d+8|0]=f;H[d+9|0]=i;f=(l|0)!=0;J[d+12>>2]=f;if(!(!j|(n|(m|0)>=0?m:0)))J[d+12>>2]= -f|2;J[d+188>>2]=J[e+36>>2];J[d+192>>2]=J[e+40>>2];J[d+196>>2]=J[e+44>>2];J[d+200>>2]=J[e+48>>2];J[d+204>>2]=J[e+52>>2];J[d+208>>2]=J[e+56>>2];J[d+212>>2]=J[e+60>>2];J[d+216>>2]=J[e- -64>>2];f=L[J[a+4>>2]+68>>1];J[d+132>>2]=f;if(j){e=36;if((b|0)<=0|(c|0)<=0)break a;e=164;a=f<<16;if(a>>16<0)break a;a=td(131072E3,a);if((a|0)<(b|0)|(a|0)<(c|0))break a;a=J[d+176>>2]}J[g+48>>2]=0;J[g+52>>2]=0;e=0;J[g+44>>2]=0;j=J[d+140>>2];b=J[d+136>>2];J[g+60>>2]=0;J[g+56>>2]=0;J[d+4>>2]=0;c=J[a+536>>2];if((c|0)!=J[d+ -180>>2]){J[d+180>>2]=c;e=1}c:{d:{if(!(K[d+8|0]|!J[J[a+532>>2]+3112>>2])){f=J[d+548>>2];h=J[a+4>>2];h=gc[J[J[h+548>>2]+40>>2]](h,g+60|0,0,g+56|0,0)|0;J[d+4>>2]=h;if(h)break d;if(gc[J[f+12>>2]](c+556|0,J[c+548>>2],J[g+60>>2],J[g+56>>2])|0){gc[J[f+4>>2]](J[a+532>>2],c,J[g+60>>2],J[g+56>>2])|0;e=1}f=J[c+560>>2];H[d+93|0]=0;J[d+96>>2]=f;J[d+120>>2]=J[c+548>>2];J[d+124>>2]=J[g+60>>2];J[d+128>>2]=J[g+56>>2]}f=L[J[J[a+4>>2]+88>>2]+14>>1]<<16;if((f|0)!=J[d+88>>2]){J[d+88>>2]=f;e=1}c=J[d+12>>2];H[d+184|0]= -c&1;e:{f:{g:{if(!Wc(g,d+16|0,16)){m=d+186|0;c=c&2;if((c|0)!=K[d+186|0])break g;if(e)break f;break e}e=J[g+4>>2];J[d+16>>2]=J[g>>2];J[d+20>>2]=e;e=J[g+12>>2];J[d+24>>2]=J[g+8>>2];J[d+28>>2]=e;J[d+32>>2]=0;J[d+36>>2]=0;e=J[g+4>>2];J[d+40>>2]=J[g>>2];J[d+44>>2]=e;e=J[g+12>>2];J[d+48>>2]=J[g+8>>2];J[d+52>>2]=e;e=J[g+20>>2];J[d+56>>2]=J[g+16>>2];J[d+60>>2]=e;J[d+72>>2]=0;J[d+76>>2]=65536;J[d+64>>2]=65536;J[d+68>>2]=0;m=d+186|0;c=c&2;if((c|0)==K[d+186|0])break f}H[m|0]=c>>>1}c=J[J[a+536>>2]+400>>2]<<16; -J[d+220>>2]=c;e=J[d+132>>2];n=e?e:1E3;e=65536E3/(n|0)|0;if((c|0)<=0){c=td(4915200,e);J[d+220>>2]=c}h=d+188|0;f=(f|0)<=262144?262144:f;h:{if((b|0)>0){c=n<<16;if((td(c,f)|0)>=(b|0))b=td(c,f);J[d+228>>2]=0;if(!b|(e|0)<655)break h;J[d+228>>2]=(b|0)/2;break h}g5(e,f,c,d+228|0,0,K[d+186|0],h)}b=J[J[a+536>>2]+396>>2];i:{if(b<<16>0){a=4915200;if(J[d+220>>2]>b<<17)break i}a=7208960}a=td(a,e);J[d+224>>2]=a;g5(e,f,a,d+232|0,j,K[d+186|0],h);a=1;a=J[d+228>>2]?a:J[d+232>>2]!=0;h=0;H[d+236|0]=0;H[d+185|0]=a;a=J[d+ -176>>2];q=wc(d+244|0,0,304);J[d+240>>2]=J[d+52>>2];w=d,x=td(J[J[a+536>>2]+384>>2],65536E3),J[w+252>>2]=x;f=J[a+536>>2];J[d+256>>2]=J[f+388>>2]<<16;J[d+260>>2]=J[f+392>>2]<<16;j=f+192|0;r=K[f+191|0];n=K[f+190|0];l=K[f+189|0];b=K[f+188|0];j:{k:{if(J[f+524>>2]==1){l:switch(b|0){case 4:if(J[j>>2]<<16>-7864321|J[f+196>>2]<<16>-7864321|(J[f+200>>2]<<16<57671681|J[f+204>>2]<<16<57671681))break k;break;case 0:break l;default:break k}J[d+296>>2]=-7864321;a=Pc(-7864321,J[d+240>>2]);J[d+288>>2]=49;b=J[d+240>> -2];J[d+304>>2]=b;J[d+300>>2]=(a+32768&-65536)-32768;a=(J[d+232>>2]<<1)+57671681|0;J[d+276>>2]=a;a=Pc(a,b);J[d+268>>2]=50;H[d+249|0]=1;J[d+284>>2]=J[d+240>>2];J[d+280>>2]=a+32768&-65536|32768;break e}if(!b)break j}c=J[d+244>>2];a=P(c,20)+d|0;h=J[f+192>>2]<<16;J[a+308>>2]=h;e=J[f+196>>2]<<16;J[a+312>>2]=e;h=e-h|0;m:{if((h|0)<0){h=0;break m}J[a+316>>2]=e;H[a+324|0]=1;c=c+1|0;J[d+244>>2]=c}e=2;if(b>>>0<=2)break j;while(1){a=P(c,20)+d|0;k=e<<2;i=J[k+j>>2]<<16;J[a+308>>2]=i;k=J[j+(k|4)>>2]<<16;J[a+312>> -2]=k;o=k-i|0;if((o|0)>=0){p=k;k=J[d+232>>2]<<1;J[a+312>>2]=p+k;i=i+k|0;J[a+308>>2]=i;J[a+316>>2]=i;H[a+324|0]=0;c=c+1|0;J[d+244>>2]=c;h=(h|0)<(o|0)?o:h}e=e+2|0;if(b>>>0>e>>>0)continue;break}}if(l){c=f+248|0;b=J[q>>2];e=0;while(1){a=P(b,20)+d|0;j=e<<2;i=J[j+c>>2]<<16;J[a+308>>2]=i;j=J[c+(j|4)>>2]<<16;J[a+312>>2]=j;i=j-i|0;if((i|0)>=0){J[a+316>>2]=j;H[a+324|0]=1;b=b+1|0;J[d+244>>2]=b;h=(h|0)<(i|0)?i:h}e=e+2|0;if(l>>>0>e>>>0)continue;break}}j=td(65536,J[d+240>>2]);o=J[d+244>>2];if(o){t=f+344|0;u=f+288| -0;l=0;v=n>>>0<3;while(1){a=P(l,20)+d|0;i=a;e=J[a+316>>2];n:{if(K[a+324|0]){a=0;c=2147483647;o:{if(!r)break o;while(1){k=J[(a<<2|4)+t>>2]<<16;p=e-k|0;b=p>>31;p:{b=(b^p)-b|0;if((b|0)>=(c|0)|(b|0)>=(j|0))break p;J[i+316>>2]=k;c=b;if((e|0)!=(k|0))break p;c=0;break o}a=a+2|0;if(r>>>0>a>>>0)continue;break}}if(n>>>0<2)break n;b=J[f+292>>2]<<16;e=e-b|0;a=e>>31;a=(a^e)-a|0;if((a|0)>=(c|0)|(a|0)>=(j|0))break n;J[i+316>>2]=b;break n}if(v)break n;p=J[d+232>>2]<<1;a=2;c=2147483647;while(1){k=(J[(a<<2)+u>>2]<< -16)+p|0;s=e-k|0;b=s>>31;b=(b^s)-b|0;if(!((b|0)>=(c|0)|(b|0)>=(j|0))){J[i+316>>2]=k;c=b;if((e|0)==(k|0))break n}a=a+2|0;if(n>>>0>a>>>0)continue;break}}l=l+1|0;if((o|0)!=(l|0))continue;break}}a=J[d+252>>2];q:{if((h|0)<=0)break q;if((td(65536,h)|0)>=(a|0)){a=J[d+252>>2];break q}a=td(65536,h);J[d+252>>2]=a}b=J[d+240>>2];if((b|0)<(a|0)){H[d+248|0]=1;a=Dd(39322,b,a);J[d+264>>2]=(a|0)<6555?32767:39322-a|0}if(K[m|0])J[d+264>>2]=0;if(!J[q>>2])break e;c=d+240|0;a=0;while(1){b=c+P(a,20)|0;e=K[b+84|0];i=b;k= -Pc(J[b+76>>2],J[d+240>>2]);b=J[d+264>>2];J[i+80>>2]=(k+(e?0-b|0:b)|0)+32768&-65536;a=a+1|0;if(a>>>0>2])continue;break}}if(J[d+4>>2])break d;H[d+236|0]=0;J[d+160>>2]=0;a=K[d+185|0];to(J[J[d+172>>2]+12>>2]);b=g+24|0;c=d+144|0;e=g+48|0;f=g+44|0;eu(d,b,c,e,0,0,0,f);if(J[d+4>>2])break d;if(!(!a|J[d+160>>2]>=0)){H[d+236|0]=1;J[d+160>>2]=0;to(J[J[d+172>>2]+12>>2]);eu(d,b,c,e,0,0,0,f);if(J[d+4>>2])break d}f=J[d+172>>2];a=J[f+20>>2];r:{if(!a)break r;s:{t:{b=L[a>>1];e=b<<16>>16;if((e|0)>=2){b=I[(J[a+ -12>>2]+(b<<1)|0)-4>>1]+1|0;break t}b=0;if(e)break t;c=L[a+2>>1];break s}c=I[a+2>>1];if((c|0)!=(b|0))break s;I[a>>1]=e-1;break r}u:{if(c<<16>>16<2)break u;h=J[a+4>>2];m=h+(b<<3)|0;j=c&65535;h=h+(j<<3)|0;if(J[m>>2]!=J[h-8>>2]|J[m+4>>2]!=J[h-4>>2]|K[(j+J[a+8>>2]|0)-1|0]!=1)break u;c=c-1|0;I[a+2>>1]=c}if((e|0)<=0)break r;i=b;b=(c<<16>>16)-1|0;if((i|0)==(b|0)){I[a+2>>1]=c-1;I[a>>1]=e-1;break r}I[(J[a+12>>2]+(e<<1)|0)-2>>1]=b}qx(J[f+12>>2]);if(!J[d+4>>2])break c}e=3;break a}a=J[g+44>>2];e=0;J[d+4>>2]=0; -b=J[d+172>>2];if(K[b+48|0])break a;J[J[b+544>>2]>>2]=a+32768>>16}bc=g- -64|0;return e|0}function y7(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,w=0,x=0,y=0,z=Q(0),A=0;l=bc-16|0;bc=l;a:{if(!a)break a;xf(a,l+12|0,l+8|0,l+4|0);e=J[l+4>>2];q=e-1|0;if(q>>>0>31|!(1<>2]!=1|(e|0)<=0)break b;c:{d:{if(e>>>0>16)break d; -if(1<>2]:-1;y=a?J[a+40>>2]:0;c=uh(P(e,J[h+12>>2]),P(e,J[h+8>>2]),1);if(!c)break b;if(!(!c|!a|(a|0)==(c|0))){J[c+20>>2]=J[a+20>>2];J[c+24>>2]=J[a+24>>2]}z=Q(e|0);mu(c,z,z);a=c?J[c+12>>2]:-1;r=c?J[c+40>>2]:0;if(J[h+8>>2]<=0){b=c;break b}t=e&-2;s=e&1;d=a<<2;u=P(a,e);j=e-1|0;v=j&-4;m=j&3;w=e-2>>>0<3;while(1){o=r+(P(g,u)<<2)|0;b=J[h+12>>2];if((b|0)>0){x=y+(P(g,q)<<2)|0;f=0;while(1){if(J[x+(f>>>3&536870908)>>2]>>>(f^-1)&1){k=P(e,f);b=0;p= -0;if(j)while(1){i=b+k|0;n=o+(i>>5<<2)|0;J[n>>2]=J[n>>2]|-2147483648>>>i;i=k+(b|1)|0;n=o+(i>>5<<2)|0;J[n>>2]=J[n>>2]|-2147483648>>>i;b=b+2|0;p=p+2|0;if((t|0)!=(p|0))continue;break}if(s){b=b+k|0;k=o+(b>>5<<2)|0;J[k>>2]=J[k>>2]|-2147483648>>>b}b=J[h+12>>2]}f=f+1|0;if((f|0)<(b|0))continue;break}}e:{if(e>>>0<2)break e;f=0;b=1;if(!w)while(1){tc(o+(P(a,b)<<2)|0,o,d);tc(o+(P(a,b+1|0)<<2)|0,o,d);tc(o+(P(a,b+2|0)<<2)|0,o,d);tc(o+(P(a,b+3|0)<<2)|0,o,d);b=b+4|0;f=f+4|0;if((v|0)!=(f|0))continue;break}f=0;if(!m)break e; -while(1){tc(o+(P(a,b)<<2)|0,o,d);b=b+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}g=g+1|0;if((g|0)>2])continue;break}b=c;break b}r=bc-16|0;bc=r;f:{if(!a)break f;xf(a,r+12|0,r+8|0,r+4|0);if(J[r+4>>2]!=1|e>>>0>16)break f;c=a;if(!(1<>2]:-1;y=c?J[c+40>>2]:0;o=P(e,J[r+12>>2]);f=P(e,J[r+8>>2]);a=uh(o,f,1);if(!a)break f;if(!(!a|!c|(a|0)==(c|0))){J[a+20>>2]=J[c+20>>2];J[a+24>>2]=J[c+24>>2]}z=Q(e|0);mu(a,z,z);b=a?J[a+12>>2]:-1;r7(a?J[a+40>> -2]:0,b,y,J[r+12>>2],J[r+8>>2],q,e);b=a}bc=r+16|0}bc=h+16|0;c=b;break a}q=uh(P(J[l+12>>2],b),P(J[l+8>>2],b),e);if(!q)break a;xD(q,a);if(!(!q|!a|(a|0)==(q|0))){J[q+20>>2]=J[a+20>>2];J[q+24>>2]=J[a+24>>2]}z=Q(b|0);mu(q,z,z);y=a?J[a+40>>2]:0;r=a?J[a+12>>2]:-1;o=q?J[q+40>>2]:0;e=q?J[q+12>>2]:-1;g:{h:switch(J[l+4>>2]-2|0){case 30:if(J[l+8>>2]<=0)break g;v=b&-8;t=b&7;m=e<<2;w=P(b,e);s=b-1|0;x=s&-4;u=s&3;i=b-2>>>0<3;while(1){d=o+(P(h,w)<<2)|0;if(J[l+12>>2]>0){n=y+(P(h,r)<<2)|0;f=0;while(1){a=d+(P(b,f)<<2)| -0;g=J[n+(f<<2)>>2];c=0;k=0;p=0;if(s>>>0>=7)while(1){j=k<<2;J[j+a>>2]=g;J[a+(j|4)>>2]=g;J[a+(j|8)>>2]=g;J[a+(j|12)>>2]=g;J[a+(j|16)>>2]=g;J[a+(j|20)>>2]=g;J[a+(j|24)>>2]=g;J[a+(j|28)>>2]=g;k=k+8|0;p=p+8|0;if((v|0)!=(p|0))continue;break}if(t)while(1){J[a+(k<<2)>>2]=g;k=k+1|0;c=c+1|0;if((t|0)!=(c|0))continue;break}f=f+1|0;if((f|0)>2])continue;break}}c=0;a=1;if(!i)while(1){tc(d+(P(a,e)<<2)|0,d,m);tc(d+(P(e,a+1|0)<<2)|0,d,m);tc(d+(P(e,a+2|0)<<2)|0,d,m);tc(d+(P(e,a+3|0)<<2)|0,d,m);a=a+4|0;c=c+4| -0;if((x|0)!=(c|0))continue;break}c=0;if(u)while(1){tc(d+(P(a,e)<<2)|0,d,m);a=a+1|0;c=c+1|0;if((u|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;case 14:if(J[l+8>>2]<=0)break g;v=b&-4;t=b&3;g=e<<2;w=P(b,e);s=b-1|0;x=s&-4;u=s&3;i=b-2>>>0<3;while(1){d=o+(P(h,w)<<2)|0;n=J[l+12>>2];if((n|0)>0){A=y+(P(h,r)<<2)|0;f=0;while(1){k=d+(P(b,f)<<1)|0;j=L[((f<<1)+A^2)>>1];c=0;a=0;p=0;if(s>>>0>=3)while(1){m=a<<1;I[(m+k^2)>>1]=j;I[(k+(m|2)^2)>>1]=j;I[(k+(m|4)^2)>>1]=j;I[(k+(m|6)^2)>>1]= -j;a=a+4|0;p=p+4|0;if((v|0)!=(p|0))continue;break}if(t)while(1){I[(k+(a<<1)^2)>>1]=j;a=a+1|0;c=c+1|0;if((t|0)!=(c|0))continue;break}f=f+1|0;if((n|0)!=(f|0))continue;break}}c=0;a=1;if(!i)while(1){tc(d+(P(a,e)<<2)|0,d,g);tc(d+(P(e,a+1|0)<<2)|0,d,g);tc(d+(P(e,a+2|0)<<2)|0,d,g);tc(d+(P(e,a+3|0)<<2)|0,d,g);a=a+4|0;c=c+4|0;if((x|0)!=(c|0))continue;break}c=0;if(u)while(1){tc(d+(P(a,e)<<2)|0,d,g);a=a+1|0;c=c+1|0;if((u|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;case 6:if(J[l+ -8>>2]<=0)break g;u=b&-4;p=b&3;d=e<<2;v=P(b,e);t=b-1|0;w=t&-4;s=t&3;x=b-2>>>0<3;while(1){f=o+(P(h,v)<<2)|0;if(J[l+12>>2]>0){i=y+(P(h,r)<<2)|0;m=0;while(1){g=f+P(b,m)|0;j=K[i+m^3];k=0;a=0;c=0;if(t>>>0>=3)while(1){H[a+g^3]=j;H[g+(a|1)^3]=j;H[g+(a|2)^3]=j;H[g+(a|3)^3]=j;a=a+4|0;c=c+4|0;if((u|0)!=(c|0))continue;break}if(p)while(1){H[a+g^3]=j;a=a+1|0;k=k+1|0;if((p|0)!=(k|0))continue;break}m=m+1|0;if((m|0)>2])continue;break}}c=0;a=1;if(!x)while(1){tc(f+(P(a,e)<<2)|0,f,d);tc(f+(P(e,a+1|0)<<2)|0,f, -d);tc(f+(P(e,a+2|0)<<2)|0,f,d);tc(f+(P(e,a+3|0)<<2)|0,f,d);a=a+4|0;c=c+4|0;if((w|0)!=(c|0))continue;break}c=0;if(s)while(1){tc(f+(P(a,e)<<2)|0,f,d);a=a+1|0;c=c+1|0;if((s|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;case 2:if(J[l+8>>2]<=0)break g;t=b&-2;s=b&1;g=e<<2;u=P(b,e);m=b-1|0;v=m&-4;p=m&3;w=b-2>>>0<3;while(1){d=o+(P(h,u)<<2)|0;if(J[l+12>>2]>0){x=y+(P(h,r)<<2)|0;f=0;while(1){k=J[x+(f>>>1&2147483644)>>2]>>>((f^-1)<<2)&15;j=P(b,f);a=0;c=0;if(m)while(1){i=a+j|0;n=d+ -(i>>3<<2)|0;i=i<<2;J[n>>2]=J[n>>2]&(-268435456>>>i^-1)|k<<(i&28^28);i=j+(a|1)|0;n=d+(i>>3<<2)|0;i=i<<2;J[n>>2]=J[n>>2]&(-268435456>>>i^-1)|k<<(i&28^28);a=a+2|0;c=c+2|0;if((t|0)!=(c|0))continue;break}if(s){a=a+j|0;c=d+(a>>3<<2)|0;a=a<<2;J[c>>2]=J[c>>2]&(-268435456>>>a^-1)|k<<(a&28^28)}f=f+1|0;if((f|0)>2])continue;break}}c=0;a=1;if(!w)while(1){tc(d+(P(a,e)<<2)|0,d,g);tc(d+(P(e,a+1|0)<<2)|0,d,g);tc(d+(P(e,a+2|0)<<2)|0,d,g);tc(d+(P(e,a+3|0)<<2)|0,d,g);a=a+4|0;c=c+4|0;if((v|0)!=(c|0))continue; -break}c=0;if(p)while(1){tc(d+(P(a,e)<<2)|0,d,g);a=a+1|0;c=c+1|0;if((p|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;case 0:if(J[l+8>>2]<=0)break g;t=b&-2;s=b&1;g=e<<2;u=P(b,e);m=b-1|0;v=m&-4;p=m&3;w=b-2>>>0<3;while(1){d=o+(P(h,u)<<2)|0;if(J[l+12>>2]>0){x=y+(P(h,r)<<2)|0;f=0;while(1){k=J[x+(f>>>2&1073741820)>>2]>>>((f^-1)<<1)&3;j=P(b,f);a=0;c=0;if(m)while(1){i=a+j|0;n=d+(i>>4<<2)|0;i=i<<1;J[n>>2]=J[n>>2]&(-1073741824>>>i^-1)|k<<(i&30^30);i=j+(a|1)|0;n=d+(i>>4<<2)|0;i=i<< -1;J[n>>2]=J[n>>2]&(-1073741824>>>i^-1)|k<<(i&30^30);a=a+2|0;c=c+2|0;if((t|0)!=(c|0))continue;break}if(s){a=a+j|0;c=d+(a>>4<<2)|0;a=a<<1;J[c>>2]=J[c>>2]&(-1073741824>>>a^-1)|k<<(a&30^30)}f=f+1|0;if((f|0)>2])continue;break}}c=0;a=1;if(!w)while(1){tc(d+(P(a,e)<<2)|0,d,g);tc(d+(P(e,a+1|0)<<2)|0,d,g);tc(d+(P(e,a+2|0)<<2)|0,d,g);tc(d+(P(e,a+3|0)<<2)|0,d,g);a=a+4|0;c=c+4|0;if((v|0)!=(c|0))continue;break}c=0;if(p)while(1){tc(d+(P(a,e)<<2)|0,d,g);a=a+1|0;c=c+1|0;if((p|0)!=(c|0))continue;break}h=h+ -1|0;if((h|0)>2])continue;break}break g;default:break h}Td(226138,14,1,J[651370])}c=q}bc=l+16|0;return c}function nYa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=J[a+76>>2];b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}b=J[a+424>>2];a:{b:{if((d|0)==3){c=10;if(J[a+80>>2]==3)break a;break b}if((d|0)<5)break b;c=P(d,6);break a}c=d<<2|2}if(!((c|0)<=J[a+428>>2]?b:0)){b=(c|0)<=10?10:c;J[a+428>>2]=b;b=gc[J[J[a+4>>2]>>2]](a,0,P(b,36))|0;J[a+424>>2]=b}J[a+200>> -2]=c;J[a+204>>2]=b;c:{d:{e:{f:{if((d|0)!=3){g:{h:{i:{if((d|0)>=5){g=d&3;c=0;if(d-1>>>0>=3)break i;a=0;break h}J[b>>2]=d;j:{if((d|0)<=0)break j;J[b+4>>2]=0;if((d|0)==1)break j;J[b+8>>2]=1;if((d|0)==2)break j;J[b+12>>2]=2;if((d|0)==3)break j;J[b+16>>2]=3}J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;b=b+36|0;break g}h=d&-4;a=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=1;J[b+128>>2]=0;J[b+ -132>>2]=0;J[b+112>>2]=a|3;J[b+100>>2]=0;J[b+104>>2]=1;J[b+92>>2]=0;J[b+96>>2]=0;J[b+76>>2]=a|2;i=b- -64|0;J[i>>2]=0;J[i+4>>2]=1;J[b+56>>2]=0;J[b+60>>2]=0;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!g)break g;while(1){J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}}if((d|0)<=0)break f;g=d&3;c=0;h=d-1|0;k:{if(h>>>0<3){a=0;break k}i=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+ -36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=1;J[b+24>>2]=5;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=1;J[b+132>>2]=5;J[b+112>>2]=a|3;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=1;J[b+96>>2]=5;J[b+76>>2]=a|2;f=b- -64|0;J[f>>2]=0;J[f+4>>2]=2;J[b+56>>2]=1;J[b+60>>2]=5;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(g)while(1){J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=1;J[b+24>>2]=5;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}g= -d&3;c=0;l:{if(h>>>0<3){a=0;break l}i=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=6;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=6;J[b+132>>2]=63;J[b+112>>2]=a|3;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=6;J[b+96>>2]=63;J[b+76>>2]=a|2;f=b- -64|0;J[f>>2]=0;J[f+4>>2]=2;J[b+56>>2]=6;J[b+60>>2]=63;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(g)while(1){J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]= -6;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}i=d&3;g=0;m:{if(h>>>0<3){c=0;break m}f=d&-4;c=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=2;J[b+32>>2]=1;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=c;J[b>>2]=1;J[b+136>>2]=2;J[b+140>>2]=1;J[b+128>>2]=1;J[b+132>>2]=63;J[b+112>>2]=c|3;J[b+100>>2]=2;J[b+104>>2]=1;J[b+92>>2]=1;J[b+96>>2]=63;J[b+76>>2]=c|2;a=b- -64|0;J[a>>2]=2;J[a+4>>2]=1;a=b;J[b+56>>2]=1;J[b+60>>2]=63;J[b+40>>2]=c|1;c=c+4|0;b= -b+144|0;e=e+4|0;if((f|0)!=(e|0))continue;break}e=a+108|0}if(i)while(1){e=b;J[b+28>>2]=2;J[b+32>>2]=1;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=c;J[b>>2]=1;c=c+1|0;b=b+36|0;g=g+1|0;if((i|0)!=(g|0))continue;break}n:{o:{if((d|0)>=5){g=d&3;c=0;if(h>>>0>=3)break o;a=0;break n}J[b>>2]=d;g=0;a=0;if(h>>>0>=7){i=d&-8;c=e+40|0;h=0;while(1){J[c+(a<<2)>>2]=a;f=a|1;J[c+(f<<2)>>2]=f;f=a|2;J[c+(f<<2)>>2]=f;f=a|3;J[c+(f<<2)>>2]=f;f=a|4;J[c+(f<<2)>>2]=f;f=a|5;J[c+(f<<2)>>2]=f;f=a|6;J[c+(f<<2)>>2]=f;f=a|7;J[c+(f<<2)>>2]= -f;a=a+8|0;h=h+8|0;if((i|0)!=(h|0))continue;break}}c=d&7;if(!c)break e;while(1){J[((a<<2)+e|0)+40>>2]=a;a=a+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}break e}h=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=1;J[b+140>>2]=0;J[b+128>>2]=0;J[b+132>>2]=0;J[b+112>>2]=a|3;J[b+100>>2]=1;J[b+104>>2]=0;J[b+92>>2]=0;J[b+96>>2]=0;J[b+76>>2]=a|2;i=b- -64|0;J[i>>2]=1;J[i+4>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+40>> -2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!g)break d;while(1){J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}break d}c=8;a=J[a+80>>2];J[b+8>>2]=1;J[b+12>>2]=2;J[b>>2]=3;J[b+4>>2]=0;J[b+72>>2]=1;d=b- -64|0;J[d>>2]=0;J[d+4>>2]=2;J[b+56>>2]=1;J[b+60>>2]=5;J[b+36>>2]=1;J[b+40>>2]=0;J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;p:{if((a|0)!=3){J[b+360>>2]=3;J[b+324>>2]=1;J[b+328>>2]=2;J[b+ -288>>2]=1;J[b+292>>2]=1;J[b+252>>2]=1;J[b+256>>2]=0;J[b+216>>2]=1;J[b+220>>2]=2;J[b+200>>2]=6;J[b+204>>2]=63;J[b+180>>2]=1;J[b+184>>2]=1;J[b+172>>2]=0;J[b+176>>2]=2;J[b+164>>2]=6;J[b+168>>2]=63;J[b+144>>2]=1;J[b+148>>2]=0;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=1;J[b+132>>2]=5;J[b+108>>2]=1;J[b+112>>2]=2;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=1;J[b+96>>2]=5;J[b+76>>2]=1;J[b+352>>2]=2;J[b+356>>2]=1;J[b+344>>2]=1;J[b+348>>2]=63;J[b+316>>2]=2;J[b+320>>2]=1;J[b+308>>2]=1;J[b+312>>2]=63;J[b+280>>2]=2; -J[b+284>>2]=1;J[b+272>>2]=1;J[b+276>>2]=63;J[b+244>>2]=0;J[b+248>>2]=2;J[b+236>>2]=6;J[b+240>>2]=63;J[b+208>>2]=0;J[b+212>>2]=2;e=2;g=13;c=12;d=0;h=11;i=b+364|0;a=10;break p}J[b+216>>2]=3;J[b+200>>2]=1;J[b+204>>2]=63;J[b+180>>2]=1;J[b+184>>2]=0;J[b+172>>2]=0;J[b+176>>2]=2;J[b+164>>2]=6;J[b+168>>2]=63;J[b+144>>2]=1;J[b+148>>2]=0;J[b+136>>2]=0;J[b+140>>2]=1;J[b+128>>2]=1;J[b+132>>2]=63;J[b+108>>2]=1;J[b+112>>2]=1;J[b+100>>2]=0;J[b+104>>2]=1;J[b+92>>2]=1;J[b+96>>2]=63;d=2;J[b+76>>2]=2;J[b+208>>2]=2; -J[b+212>>2]=1;g=9;h=7;i=b+220|0;a=6}J[i>>2]=0;a=P(a,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+8>>2]=1;J[a+12>>2]=2;a=P(h,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=1;J[a+24>>2]=63;J[a+4>>2]=d;J[a>>2]=1;a=P(c,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=1;J[a+24>>2]=63;J[a>>2]=1;J[a+4>>2]=1;a=P(g,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=1;J[a+24>>2]=63;J[a+4>>2]=e;J[a>>2]=1;break c}J[b>>2]=d}J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;b=b+36|0}if((d|0)<=0)break c; -g=d&3;c=0;q:{if(d-1>>>0<3){a=0;break q}d=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=1;J[b+140>>2]=0;J[b+128>>2]=1;J[b+132>>2]=63;J[b+112>>2]=a|3;J[b+100>>2]=1;J[b+104>>2]=0;J[b+92>>2]=1;J[b+96>>2]=63;J[b+76>>2]=a|2;h=b- -64|0;J[h>>2]=1;J[h+4>>2]=0;J[b+56>>2]=1;J[b+60>>2]=63;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((d|0)!=(e|0))continue;break}}if(!g)break c;while(1){J[b+28>>2]=1;J[b+32>>2]= -0;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}}}function Z$a(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;g=bc-32|0;bc=g;c=J[a+8>>2];a:{if(c>>>0>=M[a+12>>2])break a;m=J[J[a+4>>2]+8>>2];q=g+26|0;while(1){if(J[b>>2]>0)break a;if(M[a+16>>2]>=M[a+20>>2]){J[b>>2]=15;break a}r=K[m+81|0];b:{c:{d:{j=L[c>>1];if((j&65408)==128){h=g+25|0;e:switch(j-167|0){default:if((j|0)==247)break c;break;case 0:case 1:case 9:case 10:case 13:case 15:case 48:break c; -case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:break e}H[m+81|0]=1;break d}if((j-32&65535)>>>0>95)break d;H[g+25|0]=j;e=1;break b}h=g+25|0;if(!(1<>>0>25)break c;H[g+25|0]=j;h=q}c=750096;if(j>>>0<=25){e=1; -if(1<>1]>>0)continue;break}f:{g:{h:{i:{j:{if(L[d>>1]>j>>>0)break j;k=K[d+4|0];switch(k-15|0){case 0:break i;case 5:break j;default:break h}}k=20;H[h|0]=20;c=j>>>8|0;d=j&255;H[h+2|0]=d?j:c;H[h+1|0]=d?c:-10;h=h+3|0;e=h-(g+25|0)|0;break g}k:{l:{if(j>>>0<=31){H[h|0]=15;H[h+1|0]=j+32;break l}if((j-128&65535)>>>0>32)break k;H[h+1|0]=j;H[h|0]=15}h=h+2|0}k=15;e=h-(g+25|0)|0;break g}if(k>>>0>19)break f;d=nh(J[(k<<2)+m>>2],j,g+28|0,0);if((d|0)>0){c=h;i=c; -m:{if(!k|K[m+80|0]==(k|0))break m;H[c|0]=k;i=c+1|0;if((d|0)!=1|k>>>0<16)break m;H[c+1|0]=k;i=c+2|0}c=i;f=J[g+28>>2];if((d|0)==1){i=k;e=0;if(!(224<<(d<<3)-8&f))break g}n:switch(d-1|0){case 3:H[c|0]=f>>>24;c=c+1|0;case 2:H[c|0]=f>>>16;c=c+1|0;f=J[g+28>>2];case 1:H[c|0]=f>>>8;c=c+1|0;f=J[g+28>>2];case 0:H[c|0]=f;c=c+1|0;break;default:break n}i=k;e=c-h|0;break g}H[g+k|0]=1;e=0}if(e)break b}J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;c=K[m+80|0];o:{if((c|0)==1)break o;p:{if((k|0)==128& -c>>>0<16)break p;q:switch(k-129|0){case 1:break p;case 0:break q;default:break o}if(c>>>0<16)break o}r:{s:{c=K[m+81|0];if(c>>>0<=15){d=nh(J[m+4>>2],j,g+28|0,0);t:{if((d|0)>0){e=J[g+28>>2];c=h;if(K[m+80|0]!=1){H[c|0]=1;c=c+1|0}i=1;if((d|0)==1)if(!(224<<(d<<3)-8&e))break t;u:switch(d-1|0){case 3:H[c|0]=e>>>24;c=c+1|0;case 2:H[c|0]=e>>>16;c=c+1|0;e=J[g+28>>2];case 1:H[c|0]=e>>>8;c=c+1|0;e=J[g+28>>2];case 0:H[c|0]=e;c=c+1|0;break;default:break u}e=c-h|0;if(!e)break t;break b}H[g+1|0]=1}c=nh(J[m>>2],j, -g+28|0,0);v:{if((c|0)>0){d=J[g+28>>2];if((c|0)==1){i=0;if(!(224<<(c<<3)-8&d))break v}i=h;f=h;e=h;w:switch(c-1|0){case 3:H[h|0]=d>>>24;i=h+1|0;case 2:H[i|0]=d>>>16;f=i+1|0;d=J[g+28>>2];case 1:H[f|0]=d>>>8;e=f+1|0;d=J[g+28>>2];case 0:H[e|0]=d;f=e+1|0;break;default:break w}i=0;e=f-h|0;if(!e)break v;break b}H[g|0]=1}d=K[m+81|0];l=nh(J[(d<<2)+m>>2],j,g+28|0,0);if((l|0)<=0)break s;f=J[g+28>>2];c=h;i=c;x:{if(!d|(d|0)==K[m+80|0])break x;H[c|0]=d;i=c+1|0;if((l|0)!=1|d>>>0<16)break x;H[c+1|0]=d;i=c+2|0}c=i; -i=d;y:{if((l|0)==1){e=0;if(!(224<<(l<<3)-8&f))break y}z:switch(l-1|0){case 3:H[c|0]=f>>>24;c=c+1|0;case 2:H[c|0]=f>>>16;c=c+1|0;f=J[g+28>>2];case 1:H[c|0]=f>>>8;c=c+1|0;f=J[g+28>>2];case 0:H[c|0]=f;c=c+1|0;break;default:break z}e=c-h|0}break r}l=nh(J[(c<<2)+m>>2],j,g+28|0,0);if((l|0)<=0){H[c+g|0]=1;e=0;break r}f=J[g+28>>2];d=h;i=c;A:{B:{if((c|0)!=K[m+80|0]){H[d|0]=c;if((l|0)!=1){d=d+1|0;break B}H[h+1|0]=c;d=h+2|0}if((l|0)!=1)break B;e=0;if(!(224<<(l<<3)-8&f))break A}C:switch(l-1|0){case 3:H[d|0]= -f>>>24;d=d+1|0;case 2:H[d|0]=f>>>16;d=d+1|0;f=J[g+28>>2];case 1:H[d|0]=f>>>8;d=d+1|0;f=J[g+28>>2];case 0:H[d|0]=f;d=d+1|0;break;default:break C}e=d-h|0}break r}H[d+g|0]=1;e=0}if(e)break b}e=0;c=K[m+81|0];D:{if(!c)break D;E:{if((k|0)==128&c>>>0<16)break E;F:switch(k-129|0){case 1:break E;case 0:break F;default:break D}if(c>>>0<16)break D}l=nh(J[(c<<2)+m>>2],j,g+28|0,0);if((l|0)<=0){H[c+g|0]=1;break D}f=J[g+28>>2];d=h;i=d;G:{if((c|0)==K[m+80|0])break G;H[d|0]=c;i=d+1|0;if((l|0)!=1|c>>>0<16)break G; -H[d+1|0]=c;i=d+2|0}d=i;H:{if((l|0)==1){e=0;if(!(224<<(l<<3)-8&f))break H}I:switch(l-1|0){case 3:H[d|0]=f>>>24;d=d+1|0;case 2:H[d|0]=f>>>16;d=d+1|0;f=J[g+28>>2];case 1:H[d|0]=f>>>8;d=d+1|0;f=J[g+28>>2];case 0:H[d|0]=f;d=d+1|0;break;default:break I}e=d-h|0}i=c}J:{K:{if(e)break K;c=i&255;if(!c)break K;if(!((k|0)==128&c>>>0<16|(k|0)==130|(k|0)==129&c>>>0>15))break J;l=nh(J[(c<<2)+m>>2],j,g+28|0,0);if((l|0)<=0){H[c+g|0]=1;e=0;break K}f=J[g+28>>2];d=h;e=d;L:{if((c|0)==K[m+80|0])break L;H[d|0]=i;e=d+1|0; -if((l|0)!=1|c>>>0<16)break L;H[d+1|0]=i;e=d+2|0}d=e;if((l|0)==1){e=0;if(!(224<<(l<<3)-8&f))break K}M:switch(l-1|0){case 3:H[d|0]=f>>>24;d=d+1|0;case 2:H[d|0]=f>>>16;d=d+1|0;f=J[g+28>>2];case 1:H[d|0]=f>>>8;d=d+1|0;f=J[g+28>>2];case 0:H[d|0]=f;d=d+1|0;break;default:break M}e=d-h|0}if(e)break b}s=(k+127&255)>>>0<2?19:11;f=h+2|0;l=h+1|0;c=(k|0)!=129?1:16;d=c;while(1){e=0;n=J[(c<<2)+m>>2];N:{if(!n)break N;c=c+g|0;if(K[c|0])break N;o=nh(n,j,g+28|0,0);if((o|0)<=0){H[c|0]=1;break N}n=J[g+28>>2];c=h;i=d& -255;O:{if((i|0)==K[m+80|0])break O;H[c|0]=d;c=l;if((o|0)!=1|i>>>0<16)break O;H[c|0]=d;c=f}if((o|0)==1){i=d;if(!(224<<(o<<3)-8&n))break N}P:switch(o-1|0){case 3:H[c|0]=n>>>24;c=c+1|0;case 2:H[c|0]=n>>>16;c=c+1|0;n=J[g+28>>2];case 1:H[c|0]=n>>>8;c=c+1|0;n=J[g+28>>2];case 0:H[c|0]=n;c=c+1|0;break;default:break P}e=c-h|0;i=d}d=d+1|0;c=d&255;if(!e&s>>>0>=c>>>0)continue;break}Q:{if(e|(k|0)==129)break Q;c=nh(J[m>>2],j,g+28|0,0);if((c|0)>0){d=J[g+28>>2];if((c|0)==1){i=0;e=0;if(!(224<<(c<<3)-8&d))break Q}f= -h;e=h;R:switch(c-1|0){case 3:H[h|0]=d>>>24;f=l;case 2:H[f|0]=d>>>16;f=f+1|0;d=J[g+28>>2];case 1:H[f|0]=d>>>8;f=f+1|0;d=J[g+28>>2];case 0:H[f|0]=d;e=f+1|0;break;default:break R}e=e-h|0;i=0;break Q}H[g|0]=1;e=0}if(e)break b;H[h|0]=20;c=j>>>8|0;d=j&255;H[h+2|0]=d?j:c;H[h+1|0]=d?c:-10;e=(h-g|0)-22|0}J[a+8>>2]=J[a+8>>2]+2;c=g+25|0;d=J[a+16>>2];S:{if(d>>>0>2])while(1){if(!e)break S;h=K[c|0];J[a+16>>2]=d+1;H[d|0]=h;h=J[a+24>>2];if(h){J[a+24>>2]=h+4;J[h>>2]=p}e=e-1|0;c=c+1|0;d=J[a+16>>2];if(d>>>0< -M[a+20>>2])continue;break}if((e|0)<=0)break S;h=J[a+4>>2];J[b>>2]=15;H[J[a+4>>2]+63|0]=e;d=h+76|0;h=0;f=e;k=f&7;if(k)while(1){H[d|0]=K[c|0];d=d+1|0;c=c+1|0;f=f-1|0;h=h+1|0;if((k|0)!=(h|0))continue;break}if(e>>>0<8)break S;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];H[d+6|0]=K[c+6|0];H[d+7|0]=K[c+7|0];d=d+8|0;c=c+8|0;f=f-8|0;if(f)continue;break}}H[m+81|0]=r;p=p+1|0;c=J[a+8>>2];if(c>>>0>2])continue;break}}bc=g+32|0}function kx(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;g=bc-80|0;bc=g;o=J[a>>2];a:{if(f)break a;h=J[a+4>>2];if(K[h+12|0])break a;i=J[d>>2];J[g+68>>2]=0;J[g+72>>2]=0;J[g+60>>2]=0;J[g+64>>2]=0;J[g+52>>2]=0;J[g+56>>2]=0;J[g+48>>2]=i;kx(h,b,c,g+48|0,e,1)}b:{c:{d:{if(K[d+4|0])break d;h=J[c+20>>2]+J[b+20>>2]|0;e:{if(h>>>0>=97){b=J[d>>2];if(!b|J[b>>2])break e;J[b>>2]=18;break e}J[d+8>>2]=h;I[d+4>>1]=257;J[d+12>>2]=h+7>>>3;if(!h)break d;c=0;h=-1<<(0-h&7);while(1){H[(c+ -d|0)+16|0]=255;c=c+1|0;i=J[d+12>>2];if(c>>>0>>0)continue;break}c=d+i|0;H[c+15|0]=h&K[c+15|0];if(K[d+4|0])break d}if(!K[o+8|0])break b;J[J[d>>2]>>2]=0;a=a+13|0;break c}J[a+20>>2]=0;J[a+24>>2]=0;J[g+72>>2]=J[d+24>>2];h=J[d+20>>2];s=g- -64|0;c=s;J[c>>2]=J[d+16>>2];J[c+4>>2]=h;c=J[d+12>>2];J[g+56>>2]=J[d+8>>2];J[g+60>>2]=c;c=J[d+4>>2];J[g+48>>2]=J[d>>2];J[g+52>>2]=c;t=J[b+20>>2];if(t>>>0>M[d+8>>2])break b;if(K[o+249|0]){J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;c=g+24|0;jx(a, -o+288|0,c);jx(a,c,o+268|0)}f:{g:{if(t){j=s;u=128;while(1){h:{if(!(K[j|0]&u))break h;n=J[a+16>>2];J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;c=m;i=J[b+20>>2];i:{if(c>>>0>>0)break i;c=0;h=J[b+4>>2];if(!h|J[h>>2])break i;J[h>>2]=130}j:{k:{c=J[b+28>>2]+P(J[b+8>>2],c)|0;h=J[c+8>>2];k=J[c+4>>2];l=h-k|0;if((l|0)==-1376256)k=1;else{if((l|0)==-1310720){J[g+40>>2]=n;J[g+32>>2]=e;k=0;J[g+24>>2]=0;J[g+28>>2]=m;l=e;break k}h=(l|0)<0?h:k;k=4}J[g+40>>2]=n;J[g+24>>2]=k;J[g+28>>2]=m;l=e+h| -0;J[g+32>>2]=l;if(!K[c|0])break k;r=J[c+12>>2];k=k|16;J[g+24>>2]=k;J[g+36>>2]=r;break j}r=Pc(l,n);J[g+36>>2]=r;i=J[b+20>>2]}h=J[a+16>>2];J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;c=m;l:{if(i>>>0>c>>>0)break l;c=0;i=J[b+4>>2];if(!i|J[i>>2])break l;J[i>>2]=130}m:{n:{c=J[b+28>>2]+P(J[b+8>>2],c)|0;p=J[c+8>>2];i=J[c+4>>2];n=p-i|0;if((n|0)==-1310720)n=2;else{if((n|0)==-1376256){J[g+16>>2]=h;J[g+8>>2]=e;n=0;J[g>>2]=0;J[g+4>>2]=m;i=e;break n}i=(n|0)<0?i:p;n=8}J[g>>2]=n;p=J[o+232>>2];J[g+ -16>>2]=h;J[g+4>>2]=m;i=(e+i|0)+(p<<1)|0;J[g+8>>2]=i;if(!K[c|0])break n;p=J[c+16>>2];n=n|16;J[g>>2]=n;break m}p=Pc(i,h)}J[g+12>>2]=p;o:{if((k|n)&16)break o;v=J[o+244>>2];if(!v)break h;q=J[o+260>>2];h=n&10;p:{q:{r:{if(!(k&5)){c=0;if(!h)break h;while(1){h=P(c,20)+o|0;s:{if(K[h+324|0])break s;w=J[h+308>>2];if((w-q|0)>(i|0))break s;if((J[h+312>>2]+q|0)>=(i|0))break r}c=c+1|0;if((v|0)!=(c|0))continue;break}break h}c=0;if(!h)while(1){h=P(c,20)+o|0;if(!(!K[h+324|0]|(J[h+308>>2]-q|0)>(l|0))){h=J[h+312>>2]; -if((q+h|0)>=(l|0))break q}c=c+1|0;if((v|0)!=(c|0))continue;break h}while(1){h=P(c,20)+o|0;w=J[h+308>>2];x=w-q|0;t:{if(K[h+324|0]){if((l|0)<(x|0))break t;h=J[h+312>>2];if((q+h|0)<(l|0))break t;break q}if((i|0)<(x|0))break t;if((J[h+312>>2]+q|0)>=(i|0))break r}c=c+1|0;if((v|0)!=(c|0))continue;break}break h}h=J[(P(c,20)+o|0)+320>>2];u:{if(K[o+248|0])break u;h=p+32768&-65536;if(J[o+256>>2]>(i-w|0))break u;c=J[(P(c,20)+o|0)+320>>2]+65536|0;h=(c|0)<(h|0)?h:c}c=h-p|0;if(!k)break p;J[g+24>>2]=k|16;J[g+36>> -2]=c+r;break p}i=J[(P(c,20)+o|0)+320>>2];v:{if(K[o+248|0])break v;i=r+32768&-65536;if(J[o+256>>2]>(h-l|0))break v;c=J[(P(c,20)+o|0)+320>>2]-65536|0;i=(c|0)>(i|0)?i:c}J[g+24>>2]=k|16;J[g+36>>2]=i;if(!n)break o;c=i-r|0}J[g>>2]=n|16;J[g+12>>2]=c+p}jx(a,g+24|0,g);H[j|0]=K[j|0]&(u^-1)}c=(m&7)==7;u=c?128:u>>>1&127;j=c+j|0;m=m+1|0;if((t|0)!=(m|0))continue;break}if(f)break g;if(!t)break f;m=128;c=0;while(1){if(K[s|0]&m){l=J[a+16>>2];J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;i=c;h=J[b+ -20>>2];w:{if(h>>>0>c>>>0)break w;i=0;j=J[b+4>>2];if(!j|J[j>>2])break w;J[j>>2]=130}x:{y:{i=J[b+28>>2]+P(J[b+8>>2],i)|0;j=J[i+8>>2];n=J[i+4>>2];k=j-n|0;if((k|0)==-1376256)k=1;else{if((k|0)==-1310720){J[g+40>>2]=l;J[g+32>>2]=e;J[g+24>>2]=0;J[g+28>>2]=c;j=e;break y}j=(k|0)<0?j:n;k=4}J[g+40>>2]=l;J[g+24>>2]=k;J[g+28>>2]=c;j=e+j|0;J[g+32>>2]=j;if(!K[i|0])break y;i=J[i+12>>2];J[g+24>>2]=k|16;J[g+36>>2]=i;break x}y=g,z=Pc(j,l),J[y+36>>2]=z;h=J[b+20>>2]}j=J[a+16>>2];J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0; -J[g>>2]=0;J[g+4>>2]=0;i=c;z:{if(c>>>0>>0)break z;i=0;h=J[b+4>>2];if(!h|J[h>>2])break z;J[h>>2]=130}A:{B:{i=J[b+28>>2]+P(J[b+8>>2],i)|0;k=J[i+8>>2];h=J[i+4>>2];l=k-h|0;if((l|0)==-1310720)l=2;else{if((l|0)==-1376256){J[g+16>>2]=j;J[g+8>>2]=e;J[g>>2]=0;J[g+4>>2]=c;h=e;break B}h=(l|0)<0?h:k;l=8}J[g>>2]=l;k=J[o+232>>2];J[g+16>>2]=j;J[g+4>>2]=c;h=(e+h|0)+(k<<1)|0;J[g+8>>2]=h;if(!K[i|0])break B;h=J[i+16>>2];J[g>>2]=l|16;J[g+12>>2]=h;break A}y=g,z=Pc(h,j),J[y+12>>2]=z}jx(a,g+24|0,g)}h=(c&7)==7;m=h?128: -m>>>1&127;s=h+s|0;c=c+1|0;if((t|0)!=(c|0))continue;break}break f}if(!f)break f}c=J[a+20>>2];if(!(!c|J[a+36>>2]>0)&J[(P(c,20)+a|0)+16>>2]>=0)break f;J[g+36>>2]=0;J[g+28>>2]=0;J[g+32>>2]=0;J[g+24>>2]=49;c=J[a+16>>2];J[g+8>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[g+40>>2]=c;jx(a,g+24|0,g)}i=0;m=J[a+8>>2];J[m+20>>2]=0;l=J[a+20>>2];if(l){c=0;while(1){i=c+1|0;n=P(c,20);j=n+a|0;e=J[j+28>>2];s=e&12;C:{if(e&16)break C;e=a+28|0;q=e+n|0;p=J[q+12>>2];h=p&65535;k=h?65536-h|0:0;o=s?i:c;r=e+P(o,20)| -0;t=J[r+12>>2];m=t&65535;e=m?65536-m|0:0;e=e>>>0>k>>>0?k:e;k=(h|0)<(m|0)?h:m;m=0-k|0;D:{E:{if(o>>>0>>0){l=P(o+1|0,20)+a|0;if(J[l+40>>2]<((e+t|0)+32768|0))break E}if(!(!c|J[j+20>>2]<=((p-k|0)-32768|0))){h=e;break D}h=e>>>0>k>>>0?m:e;break D}F:{if(c){h=0;if(J[j+20>>2]>((p-k|0)-32768|0))break F}h=m;if(e>>>0>>0)break F;break D}if(K[l+28|0]&16)break D;J[g+24>>2]=o;J[g+28>>2]=e-h;$4(J[a+8>>2],g+24|0);p=J[q+12>>2]}J[q+12>>2]=h+p;if(!s)break C;J[r+12>>2]=J[r+12>>2]+h}G:{if(!c)break G;e=J[j+36>>2]; -h=J[j+16>>2];if((e|0)==(h|0))break G;m=a+28|0;j=m+P(c-1|0,20)|0;y=j,z=td(J[(m+n|0)+12>>2]-J[j+12>>2]|0,e-h|0),J[y+16>>2]=z}if(s){c=a+28|0;e=c+P(i,20)|0;h=J[e+8>>2];c=c+n|0;m=J[c+8>>2];if((h|0)!=(m|0))y=c,z=td(J[e+12>>2]-J[c+12>>2]|0,h-m|0),J[y+16>>2]=z;c=i}c=c+1|0;l=J[a+20>>2];if(c>>>0>>0)continue;break}m=J[a+8>>2];i=l}c=J[m+20>>2];if(c){h=J[m+8>>2];m=J[m+28>>2];while(1){c=c-1|0;j=m+P(h,c)|0;e=P(J[j>>2],20)+a|0;j=J[j+4>>2];l=j+J[e+40>>2]|0;H:{if(J[e+60>>2]<(l+32768|0))break H;J[e+40>>2]=l;if(!(K[e+ -28|0]&12))break H;J[e+20>>2]=j+J[e+20>>2]}if(c)continue;break}}if(!(!i|f)){c=0;while(1){e=P(c,20)+a|0;h=J[e+28>>2];if(!(h&32)){i=J[e+32>>2];I:{if(i>>>0>2])break I;i=0;f=J[b+4>>2];if(!f|J[f>>2])break I;J[f>>2]=130;h=J[e+28>>2]}f=J[b+28>>2]+P(J[b+8>>2],i)|0;J[f+(h&10?16:12)>>2]=J[e+40>>2];H[f|0]=1;i=J[a+20>>2]}c=c+1|0;if(i>>>0>c>>>0)continue;break}}H[a+12|0]=1;a=d+5|0}H[a|0]=0}bc=g+80|0}function W3(a){a=a|0;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;c=J[a+20>>2];if((c|0)!=202){d= -J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;gc[J[J[a>>2]>>2]](a)}b=a;c=J[b+424>>2];d=P(c,J[b+48>>2]);e=J[b+52>>2];a:{if(d>>>0<=e>>>0){J[b+112>>2]=((c+J[b+28>>2]|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+J[b+32>>2]|0)-1|0)/(a|0)|0;J[b+320>>2]=1;J[b+324>>2]=1;J[b+116>>2]=a;a=1;break a}if(d>>>0<=e<<1>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<1)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<1)|0)-1|0)/(a|0)|0;J[b+320>>2]=2;J[b+324>>2]=2;J[b+116>>2]=a;a=2;break a}a=3;if(d>>>0<=P(e,3)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],3)|0)-1| -0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],3)|0)-1|0)/(c|0)|0;J[b+320>>2]=3;J[b+324>>2]=3;J[b+116>>2]=c;break a}if(d>>>0<=e<<2>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<2)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<2)|0)-1|0)/(a|0)|0;J[b+320>>2]=4;J[b+324>>2]=4;J[b+116>>2]=a;a=4;break a}a=5;if(d>>>0<=P(e,5)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],5)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],5)|0)-1|0)/(c|0)|0;J[b+320>>2]=5;J[b+324>>2]=5;J[b+116>>2]=c;break a}a=6;if(d>>>0<=P(e,6)>>>0){J[b+112>>2]=((c+P(J[b+ -28>>2],6)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],6)|0)-1|0)/(c|0)|0;J[b+320>>2]=6;J[b+324>>2]=6;J[b+116>>2]=c;break a}a=7;if(d>>>0<=P(e,7)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],7)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],7)|0)-1|0)/(c|0)|0;J[b+320>>2]=7;J[b+324>>2]=7;J[b+116>>2]=c;break a}if(d>>>0<=e<<3>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<3)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<3)|0)-1|0)/(a|0)|0;J[b+320>>2]=8;J[b+324>>2]=8;J[b+116>>2]=a;a=8;break a}a=9;if(d>>>0<=P(e,9)>>>0){J[b+ -112>>2]=((c+P(J[b+28>>2],9)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],9)|0)-1|0)/(c|0)|0;J[b+320>>2]=9;J[b+324>>2]=9;J[b+116>>2]=c;break a}a=10;if(d>>>0<=P(e,10)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],10)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],10)|0)-1|0)/(c|0)|0;J[b+320>>2]=10;J[b+324>>2]=10;J[b+116>>2]=c;break a}a=11;if(d>>>0<=P(e,11)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],11)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],11)|0)-1|0)/(c|0)|0;J[b+320>>2]=11;J[b+324>>2]=11;J[b+116>>2]=c;break a}a= -12;if(d>>>0<=P(e,12)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],12)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],12)|0)-1|0)/(c|0)|0;J[b+320>>2]=12;J[b+324>>2]=12;J[b+116>>2]=c;break a}a=13;if(d>>>0<=P(e,13)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],13)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],13)|0)-1|0)/(c|0)|0;J[b+320>>2]=13;J[b+324>>2]=13;J[b+116>>2]=c;break a}a=14;if(d>>>0<=P(e,14)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],14)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],14)|0)-1|0)/(c|0)|0;J[b+320>>2]=14; -J[b+324>>2]=14;J[b+116>>2]=c;break a}a=15;f=J[b+28>>2];if(d>>>0<=P(e,15)>>>0){J[b+112>>2]=((c+P(f,15)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],15)|0)-1|0)/(c|0)|0;J[b+320>>2]=15;J[b+324>>2]=15;J[b+116>>2]=c;break a}J[b+112>>2]=((c+(f<<4)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<4)|0)-1|0)/(a|0)|0;J[b+320>>2]=16;J[b+324>>2]=16;J[b+116>>2]=a;a=16}e=J[b+36>>2];b:{if((e|0)<=0)break b;c=J[b+216>>2];if(e>>>0>=8){f=e&-8;d=0;while(1){J[c+40>>2]=a;J[c+36>>2]=a;J[c+656>>2]=a;J[c+652>>2]=a;J[c+568>> -2]=a;J[c+564>>2]=a;J[c+480>>2]=a;J[c+476>>2]=a;J[c+392>>2]=a;J[c+388>>2]=a;J[c+304>>2]=a;J[c+300>>2]=a;J[c+216>>2]=a;J[c+212>>2]=a;J[c+128>>2]=a;J[c+124>>2]=a;c=c+704|0;d=d+8|0;if((f|0)!=(d|0))continue;break}}e=e&7;if(!e)break b;d=0;while(1){J[c+40>>2]=a;J[c+36>>2]=a;c=c+88|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}i=J[b+36>>2];c:{if((i|0)<=0)break c;c=J[b+216>>2];e=J[b+324>>2];l=J[b+76>>2]?8:4;f=J[b+320>>2];d:{if((l|0)<(f|0)){h=f<<1;if((e|0)>(l|0)){d=e<<1;if((d|0)<(f|0)){a=c;if(i>>>0>=8){h=i&-8; -f=0;while(1){J[a+36>>2]=d;J[a+40>>2]=e;J[a+128>>2]=e;J[a+216>>2]=e;J[a+124>>2]=d;J[a+304>>2]=e;J[a+212>>2]=d;J[a+392>>2]=e;J[a+300>>2]=d;J[a+480>>2]=e;J[a+388>>2]=d;J[a+568>>2]=e;J[a+476>>2]=d;J[a+656>>2]=e;J[a+564>>2]=d;J[a+652>>2]=d;a=a+704|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}h=i&7;if(!h)break d;f=0;while(1){J[a+36>>2]=d;J[a+40>>2]=e;a=a+88|0;f=f+1|0;if((h|0)!=(f|0))continue;break}break d}if((e|0)<=(h|0)){a=c;if(i>>>0>=8){d=i&-8;while(1){J[a+40>>2]=e;J[a+36>>2]=f;J[a+656>>2]=e;J[a+652>>2]= -f;J[a+568>>2]=e;J[a+564>>2]=f;J[a+480>>2]=e;J[a+476>>2]=f;J[a+392>>2]=e;J[a+388>>2]=f;J[a+304>>2]=e;J[a+300>>2]=f;J[a+216>>2]=e;J[a+212>>2]=f;J[a+128>>2]=e;J[a+124>>2]=f;a=a+704|0;g=g+8|0;if((d|0)!=(g|0))continue;break}}d=i&7;if(!d)break d;g=0;while(1){J[a+40>>2]=e;J[a+36>>2]=f;a=a+88|0;g=g+1|0;if((d|0)!=(g|0))continue;break}break d}a=c;if(i>>>0>=8){e=i&-8;d=0;while(1){J[a+40>>2]=h;J[a+36>>2]=f;J[a+656>>2]=h;J[a+652>>2]=f;J[a+568>>2]=h;J[a+564>>2]=f;J[a+480>>2]=h;J[a+476>>2]=f;J[a+392>>2]=h;J[a+388>> -2]=f;J[a+304>>2]=h;J[a+300>>2]=f;J[a+216>>2]=h;J[a+212>>2]=f;J[a+128>>2]=h;J[a+124>>2]=f;a=a+704|0;d=d+8|0;if((e|0)!=(d|0))continue;break}}e=i&7;if(!e)break d;d=0;while(1){J[a+40>>2]=h;J[a+36>>2]=f;a=a+88|0;d=d+1|0;if((e|0)!=(d|0))continue;break}break d}m=J[b+316>>2];a=c;while(1){J[a+36>>2]=f;d=e;j=J[a+12>>2];e:{if((m|0)%(j<<1)|0)break e;g=2;while(1){d=P(e,g);if((l|0)<(d|0))break e;g=g<<1;if(!((m|0)%(P(j,g)|0)|0))continue;break}}J[a+40>>2]=d;g=d<<1;f:{if((g|0)>=(f|0)){if((d|0)<=(h|0))break f;J[a+ -40>>2]=h;break f}J[a+36>>2]=g}a=a+88|0;k=k+1|0;if((k|0)!=(i|0))continue;break}break d}m=J[b+312>>2];if((e|0)>(l|0)){h=e<<1;a=c;while(1){d=f;j=J[a+8>>2];g:{if((m|0)%(j<<1)|0)break g;g=2;while(1){d=P(f,g);if((l|0)<(d|0))break g;g=g<<1;if(!((m|0)%(P(j,g)|0)|0))continue;break}}J[a+40>>2]=e;J[a+36>>2]=d;h:{if((d|0)<=(h|0)){d=d<<1;if((d|0)>=(e|0))break h;J[a+40>>2]=d;break h}J[a+36>>2]=h}a=a+88|0;k=k+1|0;if((k|0)!=(i|0))continue;break}break d}k=J[b+316>>2];a=c;while(1){d=f;h=J[a+8>>2];i:{if((m|0)%(h<<1)| -0)break i;g=2;while(1){d=P(f,g);if((l|0)<(d|0))break i;g=g<<1;if(!((m|0)%(P(h,g)|0)|0))continue;break}}J[a+36>>2]=d;h=e;j=J[a+12>>2];j:{if((k|0)%(j<<1)|0)break j;g=2;while(1){h=P(e,g);if((l|0)<(h|0))break j;g=g<<1;if(!((k|0)%(P(j,g)|0)|0))continue;break}}J[a+40>>2]=h;g=h<<1;k:{if((g|0)<(d|0)){J[a+36>>2]=g;break k}d=d<<1;if((d|0)>=(h|0))break k;J[a+40>>2]=d}a=a+88|0;n=n+1|0;if((n|0)!=(i|0))continue;break}}if((i|0)<=0)break c;a=0;while(1){d=P(J[b+424>>2],J[b+312>>2]);J[c+44>>2]=((d+P(J[c+36>>2],P(J[c+ -8>>2],J[b+28>>2]))|0)-1|0)/(d|0);d=P(J[b+424>>2],J[b+316>>2]);J[c+48>>2]=((d+P(J[c+40>>2],P(J[c+12>>2],J[b+32>>2]))|0)-1|0)/(d|0);c=c+88|0;a=a+1|0;i=J[b+36>>2];if((a|0)<(i|0))continue;break}}a=J[b+44>>2]-1|0;if(a>>>0<=4)i=J[(a<<2)+53236>>2];J[b+120>>2]=i;J[b+124>>2]=J[b+84>>2]?1:i;if(V3(b))a=J[b+316>>2];else a=1;J[b+128>>2]=a}function PSa(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;n=bc-256|0;bc=n;c=J[a+420>>2];f=J[a+24>>2];J[c+112>>2]=J[f>>2];J[c+ -116>>2]=J[f+4>>2];if(!(J[c+36>>2]|!J[a+236>>2]))YA(c,J[c+40>>2]);a:{b:{c:{d=J[a+360>>2];q=J[a+364>>2];k=(d|0)>(q|0);if(!k){r=J[b>>2];s=J[a+380>>2];b=J[a+372>>2];f=(q-d|0)+1|0;h=f&1;if((d|0)!=(q|0))break c;f=d;break b}b=0;break a}l=f&-2;f=d;while(1){g=f<<2;m=I[(J[g+s>>2]<<1)+r>>1];j=m>>31;i=g+n|0;g=(j^m)-j>>>b|0;J[i>>2]=g;m=f+1|0;i=m<<2;o=I[(J[i+s>>2]<<1)+r>>1];j=o>>31;j=(j^o)-j>>>b|0;J[i+n>>2]=j;t=(j|0)==1?m:(g|0)==1?f:t;f=f+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}}if(h){j=f<<2;h=I[(J[j+s>>2]<< -1)+r>>1];e=h>>31;b=(e^h)-e>>>b|0;J[j+n>>2]=b;t=(b|0)==1?f:t}h=0;b=0;if(k)break a;l=J[c+136>>2]+J[c+132>>2]|0;f=0;while(1){j=d;o=d<<2;m=J[o+n>>2];d:{if(m){if(!((f|0)<16|(d|0)>(t|0)))while(1){k=f;f=0;e:{f:{g:{d=J[c+128>>2];switch(d|0){case 0:break e;case 1:break f;default:break g}}while(1){b=f;f=b+1|0;d=d>>1;if(d>>>0>1)continue;break}if(b>>>0<14)break f;b=J[c+120>>2];d=J[b>>2];J[d+20>>2]=41;gc[J[d>>2]](b)}b=f<<4;d=J[c+124>>2];g=J[c+108>>2];h:{if(g){b=J[((d<<2)+c|0)+92>>2]+(b<<2)|0;J[b>>2]=J[b>>2]+1; -break h}d=J[((d<<2)+c|0)+60>>2];e=J[d+(b<<2)>>2];i=J[c+16>>2];b=H[(b+d|0)+1024|0];if(!b){d=J[c+120>>2];g=J[d>>2];J[g+20>>2]=41;gc[J[g>>2]](d);g=J[c+108>>2];if(g)break h}d=e&(-1<>2]|d<<24-e;g=0;if((e|0)>=8){while(1){b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=d>>>16;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(!b){g=J[c+120>>2];b=J[g+24>>2];if(!(gc[J[b+12>>2]](g)|0)){g=J[c+120>>2];i=J[g>>2];J[i+20>>2]=25;gc[J[i>>2]](g)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=e;i:{if((d&16711680)!=16711680)break i; -e=J[c+112>>2];J[c+112>>2]=e+1;H[e|0]=0;e=J[c+116>>2]-1|0;J[c+116>>2]=e;if(e)break i;g=J[c+120>>2];e=J[g+24>>2];if(!(gc[J[e+12>>2]](g)|0)){g=J[c+120>>2];i=J[g>>2];J[i+20>>2]=25;gc[J[i>>2]](g)}J[c+112>>2]=J[e>>2];J[c+116>>2]=J[e+4>>2]}e=b-8|0;d=d<<8;if((b|0)>15)continue;break}g=J[c+108>>2]}J[c+16>>2]=e;J[c+12>>2]=d}j:{if(f){if(g){J[c+128>>2]=0;break j}b=J[c+16>>2]+f|0;f=J[c+12>>2]|(J[c+128>>2]&(-1<=8){while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0; -J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(gc[J[d+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;gc[J[g>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;k:{if((f&16711680)!=16711680)break k;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break k;e=J[c+120>>2];b=J[e+24>>2];if(!(gc[J[b+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;gc[J[g>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}g=J[c+108>>2]}J[c+ -16>>2]=b;J[c+12>>2]=f}J[c+128>>2]=0;i=J[c+132>>2];if(g|!i)break j;e=J[c+136>>2];while(1){if(!J[c+108>>2]){d=J[c+16>>2];f=J[c+12>>2]|(H[e|0]&1)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){g=J[c+120>>2];d=J[g+24>>2];if(!(gc[J[d+12>>2]](g)|0)){g=J[c+120>>2];p=J[g>>2];J[p+20>>2]=25;gc[J[p>>2]](g)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;l:{if((f&16711680)!=16711680)break l;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>> -2]-1|0;J[c+116>>2]=b;if(b)break l;g=J[c+120>>2];b=J[g+24>>2];if(!(gc[J[b+12>>2]](g)|0)){g=J[c+120>>2];p=J[g>>2];J[p+20>>2]=25;gc[J[p>>2]](g)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}e=e+1|0;i=i-1|0;if(i)continue;break}}J[c+132>>2]=0}b=J[c+124>>2];m:{if(J[c+108>>2]){b=J[((b<<2)+c|0)+92>>2];J[b+960>>2]=J[b+960>>2]+1;break m}b=J[((b<<2)+c|0)+60>>2];f=J[b+960>>2];d=J[c+16>>2];b=H[b+1264|0];if(!b){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=41; -gc[J[g>>2]](e);if(J[c+108>>2])break m}f=f&(-1<>2]|f<<24-b;d=0;if((b|0)>=8){while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(gc[J[d+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;gc[J[g>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;n:{if((f&16711680)!=16711680)break n;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break n;e=J[c+120>>2];b=J[e+24>>2];if(!(gc[J[b+ -12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;gc[J[g>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}d=J[c+108>>2]}J[c+16>>2]=b;J[c+12>>2]=f;if(d|!h)break m;while(1){if(!J[c+108>>2]){d=J[c+16>>2];f=J[c+12>>2]|(H[l|0]&1)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(gc[J[d+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;gc[J[g>>2]](e)}J[c+112>> -2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;o:{if((f&16711680)!=16711680)break o;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break o;e=J[c+120>>2];b=J[e+24>>2];if(!(gc[J[b+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;gc[J[g>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}l=l+1|0;h=h-1|0;if(h)continue;break}}f=k-16|0;l=J[c+136>>2];h=0;if((k|0)>31)continue;break}if((m|0)>=2){H[h+l|0]=m&1;h=h+1|0;break d}b= -f<<4|1;Sq(c);f=J[c+124>>2];p:{if(J[c+108>>2]){b=J[((f<<2)+c|0)+92>>2]+(b<<2)|0;J[b>>2]=J[b>>2]+1;break p}f=J[((f<<2)+c|0)+60>>2];Qq(c,J[f+(b<<2)>>2],H[(b+f|0)+1024|0]);if(J[c+108>>2])break p;d=J[c+16>>2];f=J[c+12>>2]|(I[(J[s+o>>2]<<1)+r>>1]>=0)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(gc[J[d+12>>2]](e)|0)){e=J[c+120>>2];k=J[e>>2];J[k+20>>2]=25;gc[J[k>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]= -J[d+4>>2]}d=b;q:{if((f&16711680)!=16711680)break q;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break q;e=J[c+120>>2];b=J[e+24>>2];if(!(gc[J[b+12>>2]](e)|0)){e=J[c+120>>2];k=J[e>>2];J[k+20>>2]=25;gc[J[k>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}AZ(c,l,h);l=J[c+136>>2];h=0;f=0;break d}f=f+1|0}d=j+1|0;if((j|0)!=(q|0))continue;break}b=(f|0)>0}r:{if(!(b|h))break r;b=J[c+128>>2]+1|0;J[c+128>>2]=b; -f=J[c+132>>2]+h|0;J[c+132>>2]=f;if((b|0)!=32767&f>>>0<938)break r;Sq(c)}b=J[a+24>>2];J[b>>2]=J[c+112>>2];J[b+4>>2]=J[c+116>>2];a=J[a+236>>2];if(a){b=J[c+36>>2];if(b)a=b;else J[c+40>>2]=J[c+40>>2]+1&7;J[c+36>>2]=a-1}bc=n+256|0;return 1}function Pla(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,y=0;e=bc-80|0;bc=e;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;O[e+72>>3]=O[b>>3];J[e+64>>2]=0;J[e+68>>2]=0;J[695492]=0;c=$(4,160)|0;d=J[695492];J[695492]= -0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((d|0)!=1){J[c>>2]=2430396;J[c+4>>2]=0;J[c+8>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;d=c- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[c+72>>2]=1;J[c+80>>2]=16777215;I[c+76>>1]=0;J[c+16>>2]=2437856;wc(c+84|0,0,76);J[e+60>>2]=c;J[e+56>>2]=c+16;J[e+52>>2]=a;J[e+48>>2]=e+72;J[e+44>>2]=e- -64;J[e+40>>2]=b;k:{l:switch(J[b+20>>2]-2|0){case 0:case 1:d=J[b+164>>2];g=J[b+168>>2];if((d|0)==(g| -0))break a;while(1){f=J[d>>2];h=O[f+32>>3];j=O[e+72>>3];O[e+72>>3]=h>3];j=O[e+64>>3];O[e+64>>3]=h>j?h:j;c=J[e+56>>2];b=J[c+124>>2];m:{if((b|0)!=J[c+128>>2]){J[b>>2]=f;f=J[d+4>>2];J[b+4>>2]=f;if(f)J[f+4>>2]=J[f+4>>2]+1;J[c+124>>2]=b+8;break m}J[695492]=0;da(6348,c+120|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break k}J[695492]=0;da(6369,e+40|0,e+56|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;d=d+8|0;if((g|0)!=(d|0))continue;break}break a;case 2:case 3:break l;default:break a}f= -J[b+168>>2];g=J[b+164>>2];J[e+36>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;c=f-g|0;d=c>>3;n:{o:{if((f|0)!=(g|0)){p:{q:{if(d>>>0>=536870912){J[695492]=0;_(2399,e+28|0);b=J[695492];J[695492]=0;if((b|0)==1)break q;break b}J[695492]=0;m=$(4,c|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break p}d=Z()|0;b=J[e+28>>2];if(!b)break d;J[e+32>>2]=b;qc(b);break d}J[e+28>>2]=m;i=(d<<3)+m|0;J[e+36>>2]=i;wc(m,0,c&-8);J[695492]=0;J[e+32>>2]=i;c=P(d,3);n=$(4,c|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break o;d=Z()|0;break e}J[e+ -24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;break n}c=c-3|0;c=(c-((c>>>0)%3|0)|0)+3|0;f=wc(n,0,c);J[695492]=0;g=(d-1>>>5|0)+1|0;l=$(4,g<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break i;J[e+24>>2]=g;J[e+20>>2]=0;J[e+16>>2]=l;J[695492]=0;RF(e+16|0,d,0);d=J[695492];J[695492]=0;if((d|0)==1)break i;o=c+f|0;f=J[b+168>>2];g=J[b+164>>2];d=f-g>>3}J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;if((f|0)!=(g|0)){if((d|0)<0){J[695492]=0;_(6371,e+4|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break h}J[695492]=0;c=(d-1>>>5|0)+ -1|0;f=$(4,c<<2)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;J[e+12>>2]=c;J[e+8>>2]=0;J[e+4>>2]=f;J[695492]=0;RF(e+4|0,d,0);c=J[695492];J[695492]=0;if((c|0)==1)break h;g=J[b+164>>2];c=J[b+168>>2]}else c=g;k=(c-g>>3)-1|0;if(k){d=J[g>>2];c=0;while(1){l=c+1|0;f=J[(l<<3)+g>>2];O[(c<<3)+m>>3]=O[f+16>>3]-O[d+8>>3];h=O[d+32>>3];j=O[f+32>>3];if(R(h+O[d+48>>3]*.5-(j+O[f+48>>3]*.5))<1.5)H[(P(c,3)+n|0)+1|0]=1;if(R(h-j)<1)H[P(c,3)+n|0]=1;if(R(O[d+40>>3]-O[f+40>>3])<1)H[(P(c,3)+n|0)+2|0]=1;d=f;c=l;if((k|0)!= -(c|0))continue;break}}if((i|0)==(m|0))break j;f=m+8|0;i=i-m|0;k=i>>3;l=k-1|0;c=J[e+4>>2];h=O[m>>3];r:{if(!(h>50)){if(!(R(h-h)<.03)){if(!l)break j;if(!(R(h-O[f>>3])<.03))break r;J[c+536870908>>2]=J[c+536870908>>2]|-2147483648;break r}J[c>>2]=J[c>>2]&-2;break r}J[c>>2]=J[c>>2]|1}if(k>>>0<2)break j;q=O[f>>3];j=h==0?q:h;h=q==0?j:q;s:{t:{if(!(h>50)){if(!(R(j-h)<.03)){if(!(l>>>0>=2&R(h-O[m+16>>3])<.03)){if(!(hj))break s;d=J[c>>2]|2;break t}d=J[c>>2]|1;break t}d=J[c>>2]|1;break t}d=J[c>>2]&-3; -break t}d=J[c>>2]|2}J[c>>2]=d}if((i|0)==16)break j;s=m-16|0;t=m-8|0;d=2;while(1){i=d<<3;j=O[i+m>>3];h=O[i+t>>3];h=h==0?j:h;j=j==0?h:j;u:{if(j>50){i=c+(d>>>3&536870908)|0;J[i>>2]=J[i>>2]|1<>>3&536870908)|0;p=J[i>>2];x=i,y=Hzb(-2,d)&p,J[x>>2]=y;break u}q=R(h-O[i+s>>3]);v:{w:{x:{y:{if(d>>>0>=l>>>0){if(!(q<.03))break y;break w}p=q<.03;i=R(j-O[f+i>>3])<.03;if(p^i)break x}if(h>j){i=d-1|0;p=c+(i>>>3&536870908)|0;J[p>>2]=J[p>>2]|1<>>3&536870908)| -0;J[i>>2]=J[i>>2]|1<>>3&536870908)|0;J[i>>2]=J[i>>2]|1<>>3&536870908)|0;J[p>>2]=J[p>>2]|1<>2];d=J[e+4>>2];A:{if(!(O[J[g+8>>2]+32>>3]>2]+32>>3]))break A;B:{if(!i)break B;c=J[d>>2];if(c&1)break A;if(c&2)break B;if(!K[n+3|0])break A}J[l>>2]=J[l>>2]|1}if(!(K[n|0]|H[l|0]&1|(K[n+2|0]|K[n+1| -0])))J[d>>2]=J[d>>2]|1;f=1;if((m|0)!=1){while(1){c=f;f=c+1|0;k=c-1|0;C:{if(!(J[d+(k>>>3&536870908)>>2]>>>k&1)|!(O[J[(f<<3)+g>>2]+32>>3]>2]+32>>3]))break C;k=1<>>5|0;D:{if(c>>>0>=i>>>0)break D;if(k&J[d+(o<<2)>>2])break C;if(J[d+(f>>>3&536870908)>>2]>>>f&1)break D;if(!K[P(f,3)+n|0])break C}o=l+(o<<2)|0;J[o>>2]=k|J[o>>2]}k=P(c,3)+n|0;E:{if(K[k|0])break E;o=c>>>5<<2;c=1<>2]&c))break E;k=d+o|0;J[k>>2]=c|J[k>>2]}if((f|0)!=(m|0))continue;break}if(!m)break z}c= -J[g>>2];h=O[c+40>>3];j=O[c+32>>3];c=0;while(1){d=c;k=J[b+164>>2];c=c+1|0;o=k+(c<<3)|0;f=J[o>>2];i=1<>>5<<2;l=s+J[e+4>>2]|0;F:{if(i&J[l>>2]){j=O[f+32>>3];h=O[f+40>>3];break F}g=P(d,3)+n|0;t=K[g+2|0];p=K[g|0];g=J[f+56>>2];v=J[g>>2];g=J[g+4>>2];if(g){J[g+4>>2]=J[g+4>>2]+1;f=J[o>>2]}q=O[f+32>>3];j=j>q?q:j;u=O[f+40>>3];h=h>3];d=J[k+(d<<3)>>2];G:{if(t&1)r=O[d+32>>3]-r-j;else{w=O[d+40>>3];if(!(p&1|i&J[s+J[e+16>>2]>>2]))break G;r=h-(w+r)}if(r<=0)break G;J[l>>2]=i|J[l>>2];j=q;h=u}if(!g)break F; -d=J[g+4>>2];J[g+4>>2]=d-1;if(d)break F;gc[J[J[g>>2]+8>>2]](g);Vc(g)}if((c|0)!=(m|0))continue;break}}H:{if(!J[e+8>>2])break H;d=0;while(1){I:{g=J[b+164>>2]+(d<<3)|0;l=J[g>>2];h=O[l+32>>3];j=O[e+72>>3];O[e+72>>3]=h>3];j=O[e+64>>3];O[e+64>>3]=h>j?h:j;f=J[e+56>>2];c=J[f+124>>2];J:{if((c|0)!=J[f+128>>2]){J[c>>2]=l;g=J[g+4>>2];J[c+4>>2]=g;if(g)J[g+4>>2]=J[g+4>>2]+1;J[f+124>>2]=c+8;break J}J[695492]=0;da(6348,f+120|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break I}K:{if(!(J[J[e+4>>2]+(d>>> -3&536870908)>>2]>>>d&1)){f=J[e+8>>2];if((f-1|0)!=(d|0))break K}J[695492]=0;da(6369,e+40|0,e+56|0);c=J[695492];J[695492]=0;if((c|0)==1)break I;f=J[e+8>>2]}d=d+1|0;if(f>>>0>d>>>0)continue;break H}break}d=Z()|0;b=J[e+4>>2];if(!b)break g;qc(b);break g}a=J[e+4>>2];if(a)qc(a);a=J[e+16>>2];if(a)qc(a);if(n)qc(n);a=J[e+28>>2];if(!a)break a;qc(a);break a}d=Z()|0;break f}d=Z()|0}b=J[e+16>>2];if(b)qc(b);if(!n)break e}qc(n)}b=J[e+28>>2];if(!b)break d;qc(b)}Ie(e+56|0)}UF(a);ba(d|0);B()}B()}a=J[e+60>>2];L:{if(!a)break L; -b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break L;gc[J[J[a>>2]+8>>2]](a);Vc(a)}bc=e+80|0}function Mra(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,y=0,z=0,A=0,B=0,C=0,D=0;if(J[a+12>>2]>=0){a:{if(xT(a,J[a+8>>2]))break a;e=J[a+4>>2];if(J[e+20>>2]<=0)break a;while(1){f=J[a+8>>2];t=f;d=C<<4;u=d+J[e>>2]|0;s=d+J[a+508>>2]|0;d=f<<3;B=J[d+2415440>>2];q=J[d+2415444>>2];h=0;l=0;b:{c:{if(f){d=0;if((q|0)<=0)break b;g=J[((f<<2)+a|0)+16>>2];j=0-g|0;e=a+120|0; -while(1){D=a+l|0;f=l+B|0;c=f>>4<<2;i=J[c+u>>2];d=8;d:{if(!i)break d;d=i;i=(f&15)<<2;f=J[d+i>>2];c=J[c+s>>2];e:{if(c){d=8;if(!f)break d;i=J[c+i>>2];if(!i)break e;d=2;c=2;if(!L[i>>1]){c=I[f>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e|0]=c;if(!L[i+2>>1]){d=I[f+2>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+1|0]=d;k=c|d;d=2;c=2;if(!L[i+4>>1]){c=I[f+4>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+2|0]=c;if(!L[i+6>>1]){d=I[f+6>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+3|0]=d;k=c|k|d;d=2;c=2;if(!L[i+8>>1]){c= -I[f+8>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+4|0]=c;if(!L[i+10>>1]){d=I[f+10>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+5|0]=d;k=c|k|d;d=2;c=2;if(!L[i+12>>1]){c=I[f+12>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+6|0]=c;if(!L[i+14>>1]){d=I[f+14>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+7|0]=d;k=c|k|d;d=2;c=2;if(!L[i+16>>1]){c=I[f+16>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+8|0]=c;if(!L[i+18>>1]){d=I[f+18>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+9|0]=d;k=c|k|d;d=2;c=2;if(!L[i+20>>1]){c=I[f+ -20>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+10|0]=c;if(!L[i+22>>1]){d=I[f+22>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+11|0]=d;k=c|k|d;d=2;c=2;if(!L[i+24>>1]){c=I[f+24>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+12|0]=c;if(!L[i+26>>1]){d=I[f+26>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+13|0]=d;k=c|k|d;d=2;c=2;if(!L[i+28>>1]){c=I[f+28>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+14|0]=c;if(!L[i+30>>1]){d=I[f+30>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+15|0]=d;d=c|k|d;break d}d=8;if(!f)break d}d= -I[f>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12;H[e|0]=d;c=I[f+2>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12;H[e+1|0]=c;i=I[f+4>>1];i=(g|0)<=(i|0)?12:(i|0)>(j|0)?8:12;H[e+2|0]=i;k=I[f+6>>1];k=(g|0)<=(k|0)?12:(k|0)>(j|0)?8:12;H[e+3|0]=k;m=I[f+8>>1];m=(g|0)<=(m|0)?12:(m|0)>(j|0)?8:12;H[e+4|0]=m;p=I[f+10>>1];p=(g|0)<=(p|0)?12:(p|0)>(j|0)?8:12;H[e+5|0]=p;o=I[f+12>>1];o=(g|0)<=(o|0)?12:(o|0)>(j|0)?8:12;H[e+6|0]=o;r=I[f+14>>1];r=(g|0)<=(r|0)?12:(r|0)>(j|0)?8:12;H[e+7|0]=r;n=I[f+16>>1];n=(g|0)<=(n|0)?12:(n|0)>(j| -0)?8:12;H[e+8|0]=n;v=I[f+18>>1];v=(g|0)<=(v|0)?12:(v|0)>(j|0)?8:12;H[e+9|0]=v;w=I[f+20>>1];w=(g|0)<=(w|0)?12:(w|0)>(j|0)?8:12;H[e+10|0]=w;x=I[f+22>>1];x=(g|0)<=(x|0)?12:(x|0)>(j|0)?8:12;H[e+11|0]=x;y=I[f+24>>1];y=(g|0)<=(y|0)?12:(y|0)>(j|0)?8:12;H[e+12|0]=y;z=I[f+26>>1];z=(g|0)<=(z|0)?12:(z|0)>(j|0)?8:12;H[e+13|0]=z;A=I[f+28>>1];A=(g|0)<=(A|0)?12:(A|0)>(j|0)?8:12;H[e+14|0]=A;f=I[f+30>>1];f=(f|0)>=(g|0)?12:(f|0)>(j|0)?8:12;H[e+15|0]=f;d=f|(A|(z|(y|(x|(w|(v|(n|(r|(o|(p|(m|(k|(i|(c|d))))))))))))))}H[D+ -376|0]=d;e=e+16|0;h=d|h;l=l+1|0;if((q|0)!=(l|0))continue;break}break c}f=J[a+4>>2];e=J[u>>2];if(!e){e=sz(f);J[u>>2]=e}d=J[e>>2];if(!d){d=tz(f);J[J[u>>2]>>2]=d;d=J[J[u>>2]>>2]}f=a+508|0;e=J[s>>2];if(!e){e=sz(f);J[s>>2]=e}c=J[e>>2];if(!c){f=tz(f);J[J[s>>2]>>2]=f;c=J[J[s>>2]>>2]}g=a+120|0;e=0;while(1){j=e+g|0;f=1;f:{if(K[j|0]==1)break f;i=e<<1;f=2;if(L[i+c>>1])break f;i=I[d+i>>1];f=J[((e<<2)+a|0)+56>>2];f=(f|0)<=(i|0)?12:(i|0)>(0-f|0)?8:12}H[j|0]=f;h=f|h;e=e+1|0;if((e|0)!=16)continue;break}H[a+376|0]= -h}d=h}g:{if(!(!(d&2)&(q|0)>=16)){d=d|4;break g}if(!(d&8))break g;f=a+505|0;e=K[a+505|0];h=J[((e<<2)+b|0)+44>>2]+J[b+20>>2]|0;if((e^d>>>2)&1){Bh(b,f,h);break g}if(h>>>0>=32768){Ch(b,f,h);break g}J[b+20>>2]=h}h:{if(!(d&4)|(q|0)<=0)break h;f=d<<1&4;i:{if((t|0)>0){g=0;j=(t<<3)+a|0;while(1){i=K[(a+g|0)+376|0];j:{if(!(i&8))break j;e=0;h=g+B<<2;c=J[(h>>8<<2)+s>>2];k:{if(!c)break k;c=J[c+(h>>>2&60)>>2];if(!c)break k;e=3;l=(h&12)<<1;h=l+c|0;n=L[h>>1];h=(L[h+2>>1]?n?2:1:(n|0)!=0)+(L[h+4>>1]!=0)|0;if(h>>>0> -2)break k;e=h+(L[c+(l|6)>>1]!=0)|0}e=(j+(e|f)|0)+424|0;c=K[e|0];h=J[((c<<2)+b|0)+44>>2]+J[b+20>>2]|0;if((c&1)!=(i>>>2&1)){Bh(b,e,h);break j}if(h>>>0<=32767){J[b+20>>2]=h;break j}Ch(b,e,h)}g=g+1|0;if((q|0)!=(g|0))continue;break}break i}f=(f+((t<<3)+a|0)|0)+424|0;g=0;while(1){e=K[(a+g|0)+376|0];l:{if(!(e&8))break l;c=K[f|0];h=J[((c<<2)+b|0)+44>>2]+J[b+20>>2]|0;if((c&1)!=(e>>>2&1)){Bh(b,f,h);break l}if(h>>>0>=32768){Ch(b,f,h);break l}J[b+20>>2]=h}g=g+1|0;if((q|0)!=(g|0))continue;break}}if((q|0)<=0)break h; -n=a+508|0;e=a+120|0;j=J[((t<<2)+a|0)+16>>2];i=0;while(1){p=a+i|0;if(K[p+376|0]&4){k=((((((((((((K[e|0]>>>3&1)+(K[e+1|0]>>>3&1)|0)+(K[e+2|0]>>>3&1)|0)+(K[e+3|0]>>>3&1)|0)+(K[e+4|0]>>>3&1)|0)+(K[e+5|0]>>>3&1)|0)+(K[e+6|0]>>>3&1)|0)+(K[e+7|0]>>>3&1)|0)+(K[e+8|0]>>>3&1)|0)+(K[e+9|0]>>>3&1)|0)+(K[e+10|0]>>>3&1)|0)+(K[e+11|0]>>>3&1)|0)+(K[e+12|0]>>>3&1)|0;m=K[e+13|0]>>>3&1;o=K[e+14|0]>>>3|0;g=i+B|0;c=g>>4<<2;h=J[c+u>>2];if(h)f=J[h+((g&15)<<2)>>2];else f=0;r=K[e+15|0]>>>3|0;h=c+s|0;c=J[h>>2];if(!c){c=sz(n); -J[h>>2]=c}l=c;c=(g&15)<<2;l=J[l+c>>2];if(!l){g=tz(n);J[c+J[h>>2]>>2]=g;l=J[c+J[h>>2]>>2]}c=((k+m|0)+(o&1)|0)+(r&1)|0;g=0;while(1){k=e+g|0;o=K[k|0];m:{if(!(o&8))break m;m=((K[p+376|0]<<2&8|((c|0)>=7?7:c))+a|0)+392|0;r=K[m|0];h=J[((r<<2)+b|0)+44>>2]+J[b+20>>2]|0;n:{if((r&1)!=(o>>>2&1)){Bh(b,m,h);break n}if(h>>>0>=32768){Ch(b,m,h);break n}J[b+20>>2]=h}h=K[k|0];if(h&4){h=(P(J[b+20>>2],3)>>>3|0)+32768|0;m=g<<1;o:{if(I[m+f>>1]<0){ev(b,h);break o}As(b,h)}j=t?j:J[((g<<2)+a|0)+56>>2];I[l+m>>1]=j+(j>>>1|0); -h=K[k|0]}if(h&4){c=0;break m}c=c-((c|0)>0)|0}g=g+1|0;if((g|0)!=16)continue;break}}e=e+16|0;i=i+1|0;if((q|0)!=(i|0))continue;break}}if(!(!(d&2)|(q|0)<=0)){i=a+504|0;n=a+508|0;j=a+120|0;e=J[((t<<2)+a|0)+16>>2];d=0;while(1){if(K[(a+d|0)+376|0]&2){g=d+B|0;f=g>>4<<2;h=J[f+u>>2];if(h)h=J[h+((g&15)<<2)>>2];else h=0;f=f+s|0;c=J[f>>2];if(!c){c=sz(n);J[f>>2]=c}l=c;c=(g&15)<<2;k=J[l+c>>2];if(!k){g=tz(n);J[c+J[f>>2]>>2]=g;k=J[c+J[f>>2]>>2]}g=0;while(1){if(K[g+j|0]&2){f=g<<1;l=I[f+h>>1];c=l>>31;p=f+k|0;f=I[p>> -1];m=J[b+20>>2];l=(c^l)-c|0;e=t?e:J[((g<<2)+a|0)+56>>2];p:{if((f|0)<=(P(e,3)|0)){o=K[i|0];c=m+J[((o<<2)+b|0)+44>>2]|0;if(!(!(o&1)^(f|0)<=(l|0))){Bh(b,i,c);break p}if(c>>>0>=32768){Ch(b,i,c);break p}J[b+20>>2]=c;break p}c=(P(m,3)>>>3|0)+32768|0;if((f|0)<=(l|0)){ev(b,c);break p}As(b,c)}I[p>>1]=f-((f|0)>(l|0)?e:0)+(e>>>1)}g=g+1|0;if((g|0)!=16)continue;break}}j=j+16|0;d=d+1|0;if((q|0)!=(d|0))continue;break}}C=C+1|0;e=J[a+4>>2];if((C|0)>2])continue;break}}a=wT(a)}else a=0;return a|0}function MH(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,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0;g=bc-320|0;bc=g;b=J[a+188>>2];a:{if((b|0)>0){d=J[a+720>>2];e=J[a+3464>>2];f=J[a+3460>>2];while(1){i=(c<<2)+a|0;if(!((f|0)>J[i+140>>2]&(e|0)>J[i+156>>2])){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,815044,0);d=0;break a}if((d|0)>2]){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,815293,0);d=0;break a}c=c+1|0;if((c|0)!=(b|0))continue;break}}e=J[a+16>>2];if((e| -0)>0){d=J[a+3508>>2];n=a+40|0;while(1){if(!(d|J[a+204>>2]<=0)){while(1){d=J[a+4>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)!=255&(d|0)!=-1)continue;while(1){d=J[a+4>>2];c=gc[J[J[d>>2]+28>>2]](d)|0;if((c|0)==255)continue;break}if(!c)continue;break}if((c|0)!=J[a+3512>>2]){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,815667,0);d=0;break a}J[a+3524>>2]=0;d=J[a+204>>2];J[a+3508>>2]=d;c=c+1|0;J[a+3512>>2]=(c|0)==216?208:c;b=J[a+188>>2];b:{if((b|0)<=0)break b;e=0;c=0;if(b>>>0>=8){i=b&-8;f=0;while(1){J[(P(c,20)+n|0)+16>> -2]=0;J[(P(c|1,20)+n|0)+16>>2]=0;J[(P(c|2,20)+n|0)+16>>2]=0;J[(P(c|3,20)+n|0)+16>>2]=0;J[(P(c|4,20)+n|0)+16>>2]=0;J[(P(c|5,20)+n|0)+16>>2]=0;J[(P(c|6,20)+n|0)+16>>2]=0;J[(P(c|7,20)+n|0)+16>>2]=0;c=c+8|0;f=f+8|0;if((i|0)!=(f|0))continue;break}}f=b&7;if(!f)break b;while(1){J[(P(c,20)+a|0)+56>>2]=0;c=c+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}J[a+3516>>2]=0}e=J[a+24>>2];if((b|0)>0){f=J[a+28>>2];o=0;while(1){r=P(o,20)+a|0;s=(f|0)/J[r+48>>2]|0;m=(s|0)/8|0;t=(e|0)/J[r+44>>2]|0;i=(t|0)/8|0;if(!((f|0)<= -0|(e|0)<=0)){d=t&-8;c=s&-8;D=(d|0)!=16|(c|0)!=16;E=(d|0)==8&(c|0)==8;F=r+56|0;w=(o<<2)+a|0;G=(s|0)<8|(t|0)<8;x=P(i,7);y=P(i,6);z=P(i,5);A=i<<2;B=P(i,3);C=i<<1;p=0;while(1){q=0;if((e|0)>0){while(1){f=g- -64|0;d=0;if(!pY(a,(P(J[w+140>>2],342)+a|0)+724|0,(P(J[w+156>>2],342)+a|0)+2092|0,F,f))break a;oY(((J[r+52>>2]<<7)+a|0)+208|0,f,g);c:{d:{if(E){e=0;f=0;b=J[a+16>>2];l=q+u|0;if((b|0)<(l+8|0))break d;while(1){d=(J[a+3468>>2]+P(J[a+188>>2],P(J[a+16>>2],f+p|0)+l|0)|0)+o|0;H[d|0]=K[e+g|0];H[d+J[a+188>>2]| -0]=K[(e|1)+g|0];H[d+(J[a+188>>2]<<1)|0]=K[(e|2)+g|0];H[d+P(J[a+188>>2],3)|0]=K[(e|3)+g|0];H[d+(J[a+188>>2]<<2)|0]=K[(e|4)+g|0];H[d+P(J[a+188>>2],5)|0]=K[(e|5)+g|0];H[d+P(J[a+188>>2],6)|0]=K[(e|6)+g|0];H[d+P(J[a+188>>2],7)|0]=K[(e|7)+g|0];e=e+8|0;f=f+1|0;if((f|0)!=8)continue;break}break c}f=0;e=0;b=J[a+16>>2];l=q+u|0;if((b|0)<(l+16|0)|D)break d;while(1){c=J[a+188>>2];b=J[a+16>>2];d=(J[a+3468>>2]+P(c,P(b,e+p|0)+l|0)|0)+o|0;h=c;c=d+P(c,b)|0;b=K[f+g|0];H[h+c|0]=b;H[c|0]=b;H[d+J[a+188>>2]|0]=b;H[d|0]= -b;b=K[(f|1)+g|0];H[c+P(J[a+188>>2],3)|0]=b;H[c+(J[a+188>>2]<<1)|0]=b;H[d+P(J[a+188>>2],3)|0]=b;H[d+(J[a+188>>2]<<1)|0]=b;b=K[(f|2)+g|0];H[c+P(J[a+188>>2],5)|0]=b;H[c+(J[a+188>>2]<<2)|0]=b;H[d+P(J[a+188>>2],5)|0]=b;H[d+(J[a+188>>2]<<2)|0]=b;b=K[(f|3)+g|0];H[c+P(J[a+188>>2],7)|0]=b;H[c+P(J[a+188>>2],6)|0]=b;H[d+P(J[a+188>>2],7)|0]=b;H[d+P(J[a+188>>2],6)|0]=b;b=K[(f|4)+g|0];H[c+P(J[a+188>>2],9)|0]=b;H[c+(J[a+188>>2]<<3)|0]=b;H[d+P(J[a+188>>2],9)|0]=b;H[d+(J[a+188>>2]<<3)|0]=b;b=K[(f|5)+g|0];H[c+P(J[a+ -188>>2],11)|0]=b;H[c+P(J[a+188>>2],10)|0]=b;H[d+P(J[a+188>>2],11)|0]=b;H[d+P(J[a+188>>2],10)|0]=b;b=K[(f|6)+g|0];H[c+P(J[a+188>>2],13)|0]=b;H[c+P(J[a+188>>2],12)|0]=b;H[d+P(J[a+188>>2],13)|0]=b;H[d+P(J[a+188>>2],12)|0]=b;b=K[(f|7)+g|0];H[c+P(J[a+188>>2],15)|0]=b;H[c+P(J[a+188>>2],14)|0]=b;H[d+P(J[a+188>>2],15)|0]=b;H[d+P(J[a+188>>2],14)|0]=b;f=f+8|0;d=e>>>0<14;e=e+2|0;if(d)continue;break}break c}if(G)break c;d=(J[a+3468>>2]+P(J[a+188>>2],P(b,p)+l|0)|0)+o|0;I=l+x|0;L=l+y|0;M=l+z|0;N=l+A|0;O=l+B|0; -Q=l+C|0;R=i+l|0;v=0;while(1){j=e+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+l|0)){H[d+P(J[a+188>>2],P(k,h)+b|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|1)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+R|0)){H[d+P(J[a+188>>2],(b+i|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|2)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+Q|0)){H[d+ -P(J[a+188>>2],(b+C|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|3)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+O|0)){H[d+P(J[a+188>>2],(b+B|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|4)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+N|0)){H[d+P(J[a+188>>2],(b+A|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!= -(c|0))continue;break}j=(e|5)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+M|0)){H[d+P(J[a+188>>2],(b+z|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|6)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+L|0)){H[d+P(J[a+188>>2],(b+y|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|7)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+I|0)){H[d+ -P(J[a+188>>2],(b+x|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}f=f+m|0;e=e+8|0;v=v+1|0;if((v|0)!=8)continue;break}}e=J[a+24>>2];q=q+t|0;if((e|0)>(q|0))continue;break}f=J[a+28>>2]}p=p+s|0;if((p|0)<(f|0))continue;break}b=J[a+188>>2]}o=o+1|0;if((o|0)<(b|0))continue;break}d=J[a+3508>>2]}d=d-1|0;J[a+3508>>2]=d;u=e+u|0;e=J[a+16>>2];if((u|0)<(e|0))continue;break}}e:{if(!J[a+192>>2])break e;f:switch(b-3|0){case 0:if((P(J[a+28>>2],e)|0)<=0)break e;c= -J[a+3468>>2];b=0;while(1){d=K[c|0]<<16|32768;e=K[c+2|0]-128|0;H[c|0]=K[(d+P(e,91881)>>16)+2758848|0];f=K[c+1|0]-128|0;H[c+1|0]=K[((d+P(f,-22553)|0)+P(e,-46802)>>16)+2758848|0];H[c+2|0]=K[(d+P(f,116130)>>16)+2758848|0];c=c+3|0;b=b+1|0;e=J[a+16>>2];if((b|0)<(P(e,J[a+28>>2])|0))continue;break}break e;case 1:break f;default:break e}if((P(J[a+28>>2],e)|0)<=0)break e;c=J[a+3468>>2];b=0;while(1){d=K[c|0]<<16|32768;e=K[c+2|0]-128|0;H[c|0]=K[(d+P(e,91881)>>16)+2758848|0]^-1;f=K[c+1|0]-128|0;H[c+1|0]=K[((d+ -P(f,-22553)|0)+P(e,-46802)>>16)+2758848|0]^-1;H[c+2|0]=K[(d+P(f,116130)>>16)+2758848|0]^-1;c=c+4|0;b=b+1|0;e=J[a+16>>2];if((b|0)<(P(e,J[a+28>>2])|0))continue;break}}d=J[a+3468>>2];J[a+3472>>2]=d;c=J[a+188>>2];i=J[a+20>>2];b=J[a+28>>2];f=J[a+3504>>2];g:{if((i|0)>=(b+f|0)){J[a+3476>>2]=d+P(P(c,b),e);break g}J[a+3476>>2]=d+P(P(c,i-f|0),e)}d=1}bc=g+320|0;return d}function era(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;f=bc-48|0;bc=f;if(!J[a+44>>2]){J[a+ -24>>2]=0;J[a+28>>2]=0;e=J[a+12>>2];if(e){d=J[e+24>>2];if(d)while(1){c=J[d>>2];qc(d);J[e+24>>2]=c;d=c;if(c)continue;break}c=J[e>>2];if(c)qc(c);qc(e)}J[a+12>>2]=0}c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;g=J[b>>2];J[695492]=0;J[f+44>>2]=g;e=$(5126,g|0)|0;c=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{if((c|0)==1)break g;J[695492]=0;s=$(5126,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;J[f+44>>2]=0;d=J[g+4>>2]-1|0;J[g+4>>2]=d;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(!d){J[695492]=0;_(4987, -g|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=e&255;if((c|0)==J[a+28>>2])break f;a=Kc(f+20|0,2386912,2374197,1748,2420764,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;break e}a=Z()|0;vc(f+44|0);break c}t=J[a+24>>2];h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(!c){c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;e=J[b>>2];J[695492]=0;J[f+16>>2]=e;l=$(5126,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o;J[695492]=0;k=$(5126,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o;J[695492]=0;J[f+16>> -2]=0;d=J[e+4>>2]-1|0;J[e+4>>2]=d;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(!d){J[695492]=0;_(4987,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}if((l&127)!=1){a=Kc(f+20|0,2387207,2374197,1756,2420764,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break b}if((k&255)>>>0>=3){a=Kc(f+20|0,2387404,2374197,1758,2420764,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break b}c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;h=J[b>>2];J[695492]=0;J[f+12>>2]=h;i=$(5126, -h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]=0;n=$(5126,h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]=0;g=$(5126,h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]=0;e=$(5126,h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;if(k&254){J[695492]=0;m=$(5126,h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n}J[695492]=0;J[f+12>>2]=0;d=J[h+4>>2]-1|0;J[h+4>>2]=d;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(!d){J[695492]=0;_(4987,h|0);c=J[695492];J[695492]=0; -if((c|0)==1)break a}J[a+36>>2]=0;J[a+40>>2]=0;if((k&255)>>>0>1){J[a+36>>2]=m&127;J[a+40>>2]=m<<24>>24>=0}m=l<<24>>24;if((m|0)<0)J[a+36>>2]=-1;if(J[a+12>>2])break m;if(J[a+44>>2])break l;d=rc(32);J[d+24>>2]=0;k=e&255|g<<8&65280;J[d+8>>2]=k;l=n&255|i<<8&65280;J[d+4>>2]=l;J[d>>2]=0;i=k+31&131040;J[d+16>>2]=i;n=l+31&131040;J[d+12>>2]=n;h=P(i,n);g=h>>>10|0;J[d+20>>2]=g;J[695492]=0;o=h>>>6|0;e=$(27,o|0)|0;c=J[695492];J[695492]=0;r:{if((c|0)!=1){if(h)wc(e,0,o);J[d+28>>2]=4080;J[d>>2]=e;J[a+12>>2]=d;c=rc(508); -J[c+8>>2]=0;J[c+12>>2]=1;J[c+4>>2]=d;J[c+16>>2]=0;d=J[605041];J[c+56>>2]=J[605040];J[c+60>>2]=d;d=J[605043];e=c- -64|0;J[e>>2]=J[605042];J[e+4>>2]=d;J[c+112>>2]=131072;J[c+116>>2]=131072;J[c+104>>2]=131072;J[c+108>>2]=131072;J[c+96>>2]=65536;J[c+100>>2]=65536;J[c+88>>2]=65536;J[c+92>>2]=65536;J[c+80>>2]=65536;J[c+84>>2]=65536;J[c+72>>2]=65536;J[c+76>>2]=65536;J[c+52>>2]=J[605055];d=J[605054];J[c+44>>2]=J[605053];J[c+48>>2]=d;d=J[605052];J[c+36>>2]=J[605051];J[c+40>>2]=d;d=J[605050];J[c+28>>2]=J[605049]; -J[c+32>>2]=d;d=J[605048];J[c+20>>2]=J[605047];J[c+24>>2]=d;wc(c+392|0,0,114);J[c>>2]=2420924;J[a+44>>2]=c;if((m|0)<0)break p;d=rc(32);J[d+24>>2]=0;J[d+8>>2]=k;J[d+4>>2]=l;J[d>>2]=0;J[d+20>>2]=g;J[d+16>>2]=i;J[d+12>>2]=n;J[695492]=0;e=$(27,o|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;if(h)wc(e,0,o);J[d+28>>2]=4080;J[d>>2]=e;J[a+16>>2]=d;j=rc(32);J[j+24>>2]=0;J[j+8>>2]=k;J[j+4>>2]=l;J[j>>2]=0;J[j+20>>2]=g;J[j+16>>2]=i;J[j+12>>2]=n;J[695492]=0;e=$(27,o|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break r; -if(h)wc(e,0,o);J[j+28>>2]=4080;J[j>>2]=e;J[a+20>>2]=j;c=rc(508);J[c+8>>2]=0;J[c+12>>2]=1;J[c+4>>2]=d;J[c+16>>2]=0;p=J[605041];i=J[605040];J[c+56>>2]=i;J[c+60>>2]=p;q=J[605043];n=J[605042];d=c- -64|0;J[d>>2]=n;J[d+4>>2]=q;J[c+112>>2]=131072;J[c+116>>2]=131072;J[c+104>>2]=131072;J[c+108>>2]=131072;J[c+96>>2]=65536;J[c+100>>2]=65536;J[c+88>>2]=65536;J[c+92>>2]=65536;J[c+80>>2]=65536;J[c+84>>2]=65536;J[c+72>>2]=65536;J[c+76>>2]=65536;l=J[605055];J[c+52>>2]=l;r=J[605054];g=J[605053];J[c+44>>2]=g;J[c+48>> -2]=r;o=J[605052];m=J[605051];J[c+36>>2]=m;J[c+40>>2]=o;h=J[605050];e=J[605049];J[c+28>>2]=e;J[c+32>>2]=h;k=J[605048];d=J[605047];J[c+20>>2]=d;J[c+24>>2]=k;wc(c+392|0,0,114);J[c>>2]=2420924;J[a+48>>2]=c;c=rc(508);J[c+8>>2]=0;J[c+12>>2]=1;J[c+4>>2]=j;J[c+16>>2]=0;J[c+56>>2]=i;J[c+60>>2]=p;i=c- -64|0;J[i>>2]=n;J[i+4>>2]=q;J[c+112>>2]=131072;J[c+116>>2]=131072;J[c+104>>2]=131072;J[c+108>>2]=131072;J[c+96>>2]=65536;J[c+100>>2]=65536;J[c+88>>2]=65536;J[c+92>>2]=65536;J[c+80>>2]=65536;J[c+84>>2]=65536;J[c+ -72>>2]=65536;J[c+76>>2]=65536;J[c+52>>2]=l;J[c+44>>2]=g;J[c+48>>2]=r;J[c+36>>2]=m;J[c+40>>2]=o;J[c+28>>2]=e;J[c+32>>2]=h;J[c+20>>2]=d;J[c+24>>2]=k;wc(c+392|0,0,114);J[c>>2]=2420924;J[a+52>>2]=c;break q}break d}a=Z()|0;qc(j);break c}if(!J[a+12>>2])break k}if(!J[a+44>>2])break j}d=0;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;d=J[b>>2]}J[695492]=0;J[f+8>>2]=d;ia(5044,f+20|0,f+8|0,0,1);b=J[695492];J[695492]=0;if((b|0)!=1){d=J[f+8>>2];J[f+8>>2]=0;s:{if(!d)break s;J[695492]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;b=J[695492]; -J[695492]=0;if((b|0)==1)break a;if(c)break s;J[695492]=0;_(4987,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[f+20>>2];g=(s&255)+t|0;if((g|0)>J[a+24>>2]){while(1){d=J[a+44>>2];c=J[J[d>>2]+8>>2];J[695492]=0;d=aa(c|0,d|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;t:{if(!J[a+52>>2])break t;e=J[a+48>>2];if(!e|J[a+36>>2]>J[a+24>>2])break t;c=J[J[e>>2]+8>>2];J[695492]=0;m=aa(c|0,e|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;e=J[a+52>>2];c=J[J[e>>2]+8>>2];J[695492]=0;e=aa(c|0,e|0, -b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;d=e|m|d}c=J[a+24>>2]+1|0;J[a+24>>2]=c;if((c|0)<(g|0)?d:0)continue;break}b=J[f+20>>2]}J[a+28>>2]=J[a+28>>2]+1;J[f+20>>2]=0;u:{if(!b)break u;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[695492];J[695492]=0;if((a|0)==1)break a;if(c)break u;J[695492]=0;_(4987,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=f+48|0;return g|0}d=f+8|0;a=Z()|0;break h}a=Z()|0;vc(f+16|0);break c}a=Z()|0;vc(f+12|0);break c}fa(2379350,2374197,1774,2420579);B()}fa(2379891, -2374197,1775,2420579);B()}fa(2380255,2374197,1787,2420579);B()}fa(2380725,2374197,1788,2420579);B()}d=f+20|0;a=Z()|0}vc(d);break c}B()}a=Z()|0;qc(d)}ba(a|0);B()}b=Z()|0;Fc(a);ba(b|0);B()}ea(0)|0;yc();B()}function Gib(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;k=bc-48|0;bc=k;u=6;o=J[a+4>>2];a:{if(!o)break a;g=c-1|0;s=c>>>0>=g>>>0?g:0;if(s>>>0>=M[o+408>>2])break a;b:{c:{if(d&9)break c;h=J[o+380>>2];if(!h)break c;p=J[o+416>>2];i=p+ -(s<<4)|0;q=J[o+104>>2];c=J[o+388>>2];g=L[b+12>>1];while(1){if(!((g|0)==J[c>>2]&J[c+4>>2]==L[b+14>>1])){c=c+36|0;f=f+1|0;if((h|0)!=(f|0))continue;break c}break}h=J[c+8>>2];if(nd(q,J[c+24>>2]+J[o+432>>2]|0))break c;g=h&1;if(Ue(q,P(J[c+28>>2],(h>>>2&1)+(h&2?g+5|0:g|4)|0)))break c;h=J[c+8>>2];l=h&1;t=(h&2?l+5|0:l|4)+(h>>>2&1)|0;r=J[i>>2];f=J[c+28>>2];e=J[q+32>>2];if(!(h&64)){i=J[q+36>>2];n=h|128;J[c+8>>2]=n;d:{e:{f:{g=P(f,t);m=g+e|0;if(i>>>0>=m>>>0){if((g|0)<=0)break d;g=-1;if(l)break f;i=e;while(1){j= -g;g=K[i|0];if((j|0)>=(g|0))break e;i=i+t|0;if(m>>>0>i>>>0)continue;break}break d}n=h&-129;break d}i=e;while(1){j=g;g=K[i+1|0]|K[i|0]<<8;if((j|0)>=(g|0))break e;i=i+t|0;if(m>>>0>i>>>0)continue;break}break d}n=h&-129}h=n|64;J[c+8>>2]=h}g:{if(!(h&128))break g;c=0;h:{if(!l){while(1){if(c>>>0>=f>>>0)break g;m=c+f>>>1|0;g=e+P(m,t)|0;j=K[g|0];i=j>>>0>r>>>0;f=i?m:f;c=i?c:j>>>0>>0?m+1|0:c;if((j|0)!=(r|0))continue;break}c=g+1|0;break h}while(1){if(c>>>0>=f>>>0)break g;m=c+f>>>1|0;j=e+P(m,t)|0;i=K[j|0]<< -8|K[j+1|0];g=i>>>0>r>>>0;c=g?c:i>>>0>>0?m+1|0:c;f=g?m:f;if((i|0)!=(r|0))continue;break}c=j+2|0}i=K[c|0];i:{if(h&2){i=K[c+1|0]|i<<8;c=c+2|0;break i}c=c+1|0}e=K[c+1|0];g=K[c|0];if(h&4)h=K[c+2|0]|(e<<8|g<<16);else h=e|g<<8;ne(q);if(!i)break c;J[k+8>>2]=0;J[k+44>>2]=0;J[k+36>>2]=0;J[k+32>>2]=0;J[k+28>>2]=0;e=(s<<4)+p|0;c=J[e+4>>2];f=J[o+304>>2];g=J[o+300>>2];j:{if((f|0)==(g|0)){g=c;break j}g=Dd(c,g,f);f=J[o+304>>2];c=J[e+4>>2]}J[a+56>>2]=g;g=Dd(L[b+12>>1]<<8,c,f);J[k+40>>2]=g;if(nd(q,h+J[o+188>>2]| -0))break c;if(Ue(q,i))break c;J[k+24>>2]=J[q+32>>2];j=8;m=J[q+36>>2];e=J[k+24>>2];k:{if(m>>>0>>0)break k;l:{m:{n:{o:{p:{f=K[e|0];switch((f&3)-1|0){case 2:break m;case 1:break n;case 0:break o;default:break p}}c=e+2|0;if(m>>>0>>0)break k;e=H[e+1|0];h=e>>4;n=e<<28>>28;break l}c=e+3|0;if(m>>>0>>0)break k;n=H[e+2|0];h=H[e+1|0];break l}c=e+5|0;if(m>>>0>>0)break k;h=K[e+3|0]|K[e+4|0]<<8;n=(h<<8|h>>>8)<<16>>16;h=K[e+1|0]|K[e+2|0]<<8;h=(h<<8|h>>>8)<<16>>16;break l}c=e+7|0;if(m>>>0>>0)break k; -n=K[e+6|0]|(K[e+5|0]<<8|K[e+4|0]<<16);h=K[e+3|0]|(K[e+2|0]<<8|K[e+1|0]<<16)}l=f>>>2&3;p=l;q:{r:switch(l-1|0){case 0:e=c+1|0;if(e>>>0>m>>>0)break k;c=K[c|0];p=c&15;l=c>>>4|0;c=e;break q;case 1:e=c+2|0;if(e>>>0>m>>>0)break k;p=K[c+1|0];l=K[c|0];c=e;break q;case 2:break r;default:break q}e=c+4|0;if(e>>>0>m>>>0)break k;p=K[c+3|0]|K[c+2|0]<<8;l=K[c+1|0]|K[c|0]<<8;c=e}s:{t:{u:{v:{f=f>>>4|0;switch((f&3)-1|0){case 2:break t;case 1:break u;case 0:break v;default:break s}}e=c+1|0;if(e>>>0>m>>>0)break k;g=H[c| -0]<<8;c=e;break s}e=c+2|0;if(e>>>0>m>>>0)break k;c=K[c|0]|K[c+1|0]<<8;g=(c<<8|c>>>8)<<16>>16;c=e;break s}e=c+3|0;if(e>>>0>m>>>0)break k;g=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);c=e}J[k+8>>2]=h;J[k+44>>2]=n;J[k+36>>2]=l;J[k+32>>2]=p;J[k+40>>2]=g;J[k+28>>2]=f>>>2;J[k+24>>2]=c;j=0}if(j)break g;w:{x:{y:{z:{e=J[k+28>>2];switch(e|0){case 0:break x;case 2:break y;case 1:break z;default:break g}}c=J[k+32>>2];f=J[k+36>>2];if(P(c,f)>>>0<=P(i,15)>>>0)break w;break g}c=J[k+32>>2];f=J[k+36>>2];if(P(c,f)>>>0>P(i+1>>> -1|0,255)>>>0)break g;break w}c=J[k+32>>2];f=J[k+36>>2];if(P(c,f)+7>>>3>>>0>i>>>0)break g}if((c|0)<0)break g;j=J[k+44>>2];if((j|0)>(c^2147483647))break g;J[a+72>>2]=1651078259;J[a+76>>2]=c;J[a+80>>2]=f;H[a+94|0]=1;J[a+28>>2]=c<<6;h=f<<6;J[a+24>>2]=h;i=f+7>>3;J[a+84>>2]=i;f=J[k+8>>2];J[a+36>>2]=j<<6;J[a+32>>2]=f<<6;g=J[k+40>>2];J[a+48>>2]=0;J[a+44>>2]=0-h>>1;J[a+40>>2]=(g>>2)+32&-64;g=J[b+32>>2];J[a+104>>2]=c+j;J[a+100>>2]=f;J[a+52>>2]=g;if(!(d&4194304)){if(YC(a,P(c,i)))break g;d=J[k+24>>2];p=J[q+36>> -2];i=K[o+208|0]>>>1&1;l=0;g=J[a+76>>2];A:{if(!g)break A;b=J[a+80>>2];if(!b)break A;c=J[a+84>>2];m=i?c:0-c|0;n=P(b,g);g=J[a+88>>2]+(i?0:P(c,g-1|0))|0;B:{C:switch(e|0){case 0:a=p-d<<3;h=a>>>0>>0?a:n;if(!h)break A;e=128;j=0;i=g;a=b;c=h;while(1){if(!((c^h)&7)){j=K[d|0];d=d+1|0}l=j<<24>>31&e|l;a=a-1|0;D:{if(!a){H[i|0]=l;l=0;a=b;g=g+m|0;i=g;f=128;break D}f=e>>>1|0;if(e>>>0>1)break D;H[i|0]=l;i=i+1|0;l=0;f=128}e=f;j=j<<1;c=c-1|0;if(c)continue;break}if((e|0)!=128)break B;break A;case 1:if(!n)break A;f= -1;h=128;i=g;c=b;a=0;j=0;e=1;while(1){E:{F:{if(!f)break F;G:{if(!e){j=a;e=1;break G}e=1;f=h;if(d>>>0>=p>>>0)break E;e=K[d|0];a=e&15;j=e>>>4|0;d=d+1|0;e=0}if(j)break F;while(1){H:{if(!e){j=a;e=1;break H}if(d>>>0>=p>>>0){e=1;j=0;f=h;break E}e=K[d|0];a=e&15;j=e>>>4|0;d=d+1|0;e=0}if(!j)continue;break}}f=e?h:0}l=f|l;c=c-1|0;I:{if(!c){H[i|0]=l;l=0;c=b;g=g+m|0;i=g;f=128;break I}f=h>>>1|0;if(h>>>0>1)break I;H[i|0]=l;i=i+1|0;l=0;f=128}h=f;f=(j|0)<2;j=j-1|0;n=n-1|0;if(n)continue;break}if((h|0)!=128)break B; -break A;case 2:break C;default:break A}if(!n)break A;j=1;h=128;i=g;c=b;a=0;e=1;while(1){J:{if(!(j&1)|d>>>0>=p>>>0)break J;K:{while(1){e=e^1;f=d+1|0;a=K[d|0];if(a)break K;d=f;if((f|0)!=(p|0))continue;break}a=0;d=p;break J}d=f}l=(e?h:0)|l;c=c-1|0;L:{if(!c){H[i|0]=l;l=0;c=b;g=g+m|0;i=g;f=128;break L}f=h>>>1|0;if(h>>>0>1)break L;H[i|0]=l;i=i+1|0;l=0;f=128}h=f;j=(a|0)<2;a=a-1|0;n=n-1|0;if(n)continue;break}if((h|0)==128)break A}H[i|0]=l}}ne(q);break b}ne(q)}if(d&16384)break a;e=J[o+416>>2];J[a+72>>2]=1869968492; -J[a+108>>2]=0;c=e+(s<<4)|0;h=J[c+8>>2];i=J[c+12>>2];g=J[o+188>>2];c=J[o+104>>2];to(J[a+188>>2]);J[a+176>>2]=0;u=r5(a+160|0,c,g,i,h);if(u)break a;g=J[a+188>>2];c=J[g+24>>2];h=a+108|0;J[h>>2]=J[g+20>>2];J[h+4>>2]=c;J[h+16>>2]=J[g+36>>2];c=J[g+32>>2];J[h+8>>2]=J[g+28>>2];J[h+12>>2]=c;c=J[a+124>>2]&-6;J[a+124>>2]=c|4;if(L[b+14>>1]<=23)J[a+124>>2]=c|260;J[a+52>>2]=0;J[a+40>>2]=0;c=J[(e+(s<<4)|0)+4>>2];i=J[o+304>>2];g=J[o+300>>2];if((i|0)!=(g|0))c=Dd(c,g,i);M:{if(H[o+324|0]&1){J[a+52>>2]=c;f=J[a+40>>2]; -break M}J[a+40>>2]=c;f=c;c=J[a+52>>2]}J[a+60>>2]=c;J[a+56>>2]=f;J[a+44>>2]=0;J[a+48>>2]=0;if(!(d&1)){d=J[b+20>>2];b=J[b+16>>2];if(I[a+110>>1]>0){c=J[a+112>>2];f=0;while(1){v=c,w=Pc(J[c>>2],b),J[v>>2]=w;v=c,w=Pc(J[c+4>>2],d),J[v+4>>2]=w;c=c+8|0;f=f+1|0;if((f|0)>1])continue;break}f=J[a+40>>2]}v=a,w=Pc(f,b),J[v+40>>2]=w;v=a,w=Pc(J[a+52>>2],d),J[v+52>>2]=w}Pp(h,k+8|0);d=J[k+8>>2];J[a+24>>2]=J[k+16>>2]-d;c=J[k+20>>2];b=J[k+12>>2];J[a+36>>2]=b;J[a+32>>2]=d;J[a+28>>2]=c-b}u=0}bc=k+48|0;return u| -0}function iZ(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;m=bc-32|0;bc=m;J[m+16>>2]=13;a:{b:{c:switch(J[a>>2]-7|0){case 0:g=J[a+8>>2];break b;case 1:break c;default:break a}g=J[a+8>>2];g=gc[J[J[g>>2]+76>>2]](g)|0}c=m+16|0;if(J[Bc(g,815381,c,0)>>2]!=1){xc(1,-1,815509,0);uc(c);break a}c=J[m+24>>2];uc(m+16|0);d:switch(c-1|0){case 0:d=bc-160|0;bc=d;J[d+16>>2]=13;J[d>>2]=13;z=1;r=1;p=1;j=0;e:{if(J[Bc(g,818363,d+16|0,0)>>2]!=6)break e; -a=J[d+24>>2];j=0;if(J[a+12>>2]!=4)break e;a=Mc(a,0,d,0);h=O[a+8>>3];b=J[a+8>>2];a=J[a>>2];uc(d);c=Mc(J[d+24>>2],1,d,0);r=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(d);c=Mc(J[d+24>>2],2,d,0);q=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(d);c=Mc(J[d+24>>2],3,d,0);p=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(d);j=(a|0)==1?+(b|0):h}a=d+16|0;uc(a);h=1;f:{if(J[Bc(g,796652,a,0)>>2]!=6)break f;a=J[d+24>>2];h=1;if(J[a+12>>2]!=6)break f;a=Mc(a,0,d,0);h=O[a+8>>3];b=J[a+8>>2];a=J[a>>2];uc(d);c=Mc(J[d+24>>2],1,d,0);n=J[c>>2]==1?+J[c+ -8>>2]:O[c+8>>3];uc(d);c=Mc(J[d+24>>2],2,d,0);k=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(d);c=Mc(J[d+24>>2],3,d,0);z=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(d);c=Mc(J[d+24>>2],4,d,0);o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(d);c=Mc(J[d+24>>2],5,d,0);l=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(d);h=(a|0)==1?+(b|0):h}a=d+16|0;uc(a);Bc(g,818578,a,0);g:{h:{i:{j:{k:{if(J[d+16>>2]==6){c=J[J[d+24>>2]+12>>2];if((c|0)>32)break j;b=0;if((c|0)<=0)break k;while(1){Mc(J[d+24>>2],b,d,0);a=Sh(d,2,1,0);J[(d+32|0)+(b<<2)>>2]=a;uc(d);if(!a)break i; -b=b+1|0;if((c|0)!=(b|0))continue;break}break k}a=Sh(d+16|0,2,-1,0);J[d+32>>2]=a;c=1;if(!a)break i}uc(d+16|0);b=rc(400);J[b+392>>2]=c;O[b+216>>3]=h;O[b+208>>3]=p;O[b+200>>3]=r;O[b+192>>3]=q;O[b+184>>3]=j;J[b>>2]=2206368;J[b+4>>2]=1;J[b+8>>2]=0;O[b+256>>3]=l;O[b+248>>3]=o;O[b+240>>3]=z;O[b+232>>3]=k;O[b+224>>3]=n;if((c|0)>0)tc(b+264|0,d+32|0,c<<2);l:{if(Pv(b,g)){g=0;if(J[b+392>>2]>0)break l;break g}gc[J[J[b>>2]+4>>2]](b);break h}m:{while(1){a=J[b+8>>2];if(J[J[(b+(g<<2)|0)+264>>2]+8>>2]!=(gc[J[J[a>> -2]+28>>2]](a)|0))break m;g=g+1|0;if((g|0)>2])continue;break}break g}xc(1,-1,819212,0);gc[J[J[b>>2]+4>>2]](b);b=0;break g}xc(1,-1,818908,0)}uc(d+16|0)}b=0}bc=d+160|0;break a;case 1:f=bc-160|0;bc=f;J[f+16>>2]=13;J[f>>2]=13;n:{o:{p:{q:{c=f+16|0;if(J[Bc(g,819494,c,0)>>2]!=6)break q;a=J[f+24>>2];if(J[a+12>>2]!=4)break q;a=Mc(a,0,f,0);n=O[a+8>>3];s=J[a+8>>2];t=J[a>>2];uc(f);a=Mc(J[f+24>>2],1,f,0);u=J[a>>2];k=O[a+8>>3];v=J[a+8>>2];uc(f);a=Mc(J[f+24>>2],2,f,0);w=J[a>>2];l=O[a+8>>3];x=J[a+8>>2];uc(f); -a=Mc(J[f+24>>2],3,f,0);y=J[a>>2];j=O[a+8>>3];d=J[a+8>>2];uc(f);uc(c);o=1;r:{if(J[Bc(g,818363,c,0)>>2]!=6)break r;a=J[f+24>>2];if(J[a+12>>2]!=2)break r;a=Mc(a,0,f,0);h=O[a+8>>3];b=J[a+8>>2];a=J[a>>2];uc(f);c=Mc(J[f+24>>2],1,f,0);o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];q=(a|0)==1?+(b|0):h;uc(f)}a=f+16|0;uc(a);Bc(g,818578,a,0);if(J[f+16>>2]==6){i=J[J[f+24>>2]+12>>2];if((i|0)>32)break p;a=0;if((i|0)<=0)break o;while(1){Mc(J[f+24>>2],a,f,0);b=Sh(f,1,1,0);J[(f+32|0)+(a<<2)>>2]=b;if(!b){uc(f+16|0);uc(f);b=0;break n}uc(f); -a=a+1|0;if((i|0)!=(a|0))continue;break}break o}b=0;i=1;c=f+16|0;a=Sh(c,1,-1,0);J[f+32>>2]=a;if(a)break o;uc(c);break n}xc(1,-1,819708,0);uc(f+16|0);break n}b=0;xc(1,-1,818908,0);break n}k=(u|0)==1?+(v|0):k;l=(w|0)==1?+(x|0):l;j=(y|0)==1?+(d|0):j;h=(t|0)==1?+(s|0):n;a=f+16|0;uc(a);b=0;s:{if(J[Bc(g,820115,a,0)>>2]!=6){c=0;break s}c=0;a=J[f+24>>2];if(J[a+12>>2]!=2)break s;b=J[Mc(a,0,f,0)+8>>2];uc(f);c=J[Mc(J[f+24>>2],1,f,0)+8>>2];uc(f)}uc(f+16|0);a=rc(376);J[a+360>>2]=i;O[a+224>>3]=o;O[a+216>>3]=q;O[a+ -208>>3]=j;O[a+200>>3]=l;O[a+192>>3]=k;O[a+184>>3]=h;J[a>>2]=2206388;J[a+4>>2]=2;J[a+8>>2]=0;if((i|0)>0)tc(a+232|0,f+32|0,i<<2);J[a+368>>2]=c;J[a+364>>2]=b;t:{if(Pv(a,g)){g=0;if(J[a+360>>2]>0)break t;b=a;break n}gc[J[J[a>>2]+4>>2]](a);b=0;break n}u:{while(1){b=J[a+8>>2];if(J[J[(a+(g<<2)|0)+232>>2]+8>>2]!=(gc[J[J[b>>2]+28>>2]](b)|0))break u;g=g+1|0;if((g|0)>2])continue;break}b=a;break n}b=0;xc(1,-1,819212,0);gc[J[J[a>>2]+4>>2]](a)}bc=f+160|0;break a;case 2:e=bc-160|0;bc=e;J[e+16>>2]=13;J[e>> -2]=13;v:{w:{x:{y:{c=e+16|0;if(J[Bc(g,819494,c,0)>>2]!=6)break y;a=J[e+24>>2];if(J[a+12>>2]!=6)break y;a=Mc(a,0,e,0);r=O[a+8>>3];A=J[a+8>>2];B=J[a>>2];uc(e);a=Mc(J[e+24>>2],1,e,0);C=J[a>>2];p=O[a+8>>3];f=J[a+8>>2];uc(e);a=Mc(J[e+24>>2],2,e,0);s=J[a>>2];n=O[a+8>>3];t=J[a+8>>2];uc(e);a=Mc(J[e+24>>2],3,e,0);u=J[a>>2];k=O[a+8>>3];v=J[a+8>>2];uc(e);a=Mc(J[e+24>>2],4,e,0);w=J[a>>2];l=O[a+8>>3];x=J[a+8>>2];uc(e);a=Mc(J[e+24>>2],5,e,0);y=J[a>>2];j=O[a+8>>3];d=J[a+8>>2];uc(e);uc(c);o=1;z:{if(J[Bc(g,818363, -c,0)>>2]!=6)break z;a=J[e+24>>2];if(J[a+12>>2]!=2)break z;a=Mc(a,0,e,0);h=O[a+8>>3];b=J[a+8>>2];a=J[a>>2];uc(e);c=Mc(J[e+24>>2],1,e,0);o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];q=(a|0)==1?+(b|0):h;uc(e)}a=e+16|0;uc(a);Bc(g,818578,a,0);if(J[e+16>>2]==6){i=J[J[e+24>>2]+12>>2];if((i|0)>32)break x;a=0;if((i|0)<=0)break w;while(1){Mc(J[e+24>>2],a,e,0);b=Sh(e,1,1,0);J[(e+32|0)+(a<<2)>>2]=b;if(!b){uc(e+16|0);uc(e);b=0;break v}uc(e);a=a+1|0;if((i|0)!=(a|0))continue;break}break w}b=0;i=1;c=e+16|0;a=Sh(c,1,-1,0);J[e+ -32>>2]=a;if(a)break w;uc(c);break v}xc(1,-1,819708,0);break v}b=0;xc(1,-1,818908,0);break v}p=(C|0)==1?+(f|0):p;n=(s|0)==1?+(t|0):n;k=(u|0)==1?+(v|0):k;l=(w|0)==1?+(x|0):l;j=(y|0)==1?+(d|0):j;h=(B|0)==1?+(A|0):r;a=e+16|0;uc(a);b=0;A:{if(J[Bc(g,820115,a,0)>>2]!=6){c=0;break A}c=0;a=J[e+24>>2];if(J[a+12>>2]!=2)break A;b=J[Mc(a,0,e,0)+8>>2];uc(e);c=J[Mc(J[e+24>>2],1,e,0)+8>>2];uc(e)}uc(e+16|0);a=rc(392);J[a+376>>2]=i;O[a+240>>3]=o;O[a+232>>3]=q;O[a+224>>3]=j;O[a+216>>3]=l;O[a+208>>3]=k;O[a+200>>3]=n; -O[a+192>>3]=p;O[a+184>>3]=h;J[a>>2]=2206408;J[a+4>>2]=3;J[a+8>>2]=0;if((i|0)>0)tc(a+248|0,e+32|0,i<<2);J[a+384>>2]=c;J[a+380>>2]=b;B:{if(Pv(a,g)){g=0;if(J[a+376>>2]>0)break B;b=a;break v}gc[J[J[a>>2]+4>>2]](a);b=0;break v}C:{while(1){b=J[a+8>>2];if(J[J[(a+(g<<2)|0)+248>>2]+8>>2]!=(gc[J[J[b>>2]+28>>2]](b)|0))break C;g=g+1|0;if((g|0)>2])continue;break}b=a;break v}b=0;xc(1,-1,819212,0);gc[J[J[a>>2]+4>>2]](a)}bc=e+160|0;break a;case 3:if(J[a>>2]==8){b=hZ(4,g,J[a+8>>2]);break a}xc(1,-1,815888, -0);break a;case 4:if(J[a>>2]==8){b=hZ(5,g,J[a+8>>2]);break a}xc(1,-1,816090,0);break a;case 5:if(J[a>>2]==8){b=gZ(6,g,J[a+8>>2]);break a}xc(1,-1,816288,0);break a;case 6:if(J[a>>2]==8){b=gZ(7,g,J[a+8>>2]);break a}xc(1,-1,816529,0);break a;default:break d}J[m>>2]=c;xc(1,-1,816788,m)}bc=m+32|0;return b}function VF(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g=b-f>>3;switch(g|0){case 3:break j; -case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+16>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a;return}a=b-8|0;e=J[a>>2];k=O[e+16>>3];d=J[f+8>>2];m=O[d+16>>3];c=J[f>>2];n=O[c+16>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+16>>3]>3]))break d;J[f+8>>2]=c;J[f>>2]=b;d=f+4|0;break l}if(k< -m){d=f+4|0;J[f>>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+16>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=b;return}Eq(f,f+8|0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+16>>3];a=J[f+8>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2];J[f+20>>2]=d;if(!(k>2]=e; -J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20|0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+16>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+4>>2];J[d+4>>2]=j;p:{if(!e)break p;d=J[e+4>> -2];J[e+4>>2]=d-1;if(d)break p;gc[J[J[e>>2]+8>>2]](e);Vc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+16>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break o;gc[J[J[e>>2]+8>>2]](e);Vc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g|0)<=(e|0)){e=c;break s}if(!(O[J[a>>2]+16>> -3]>2]+16>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+16>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2];J[d+4>>2]=p;t:{if(!a)break t;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>>2];if(!(O[h+16>>3]>3]))continue}break}J[c>> -2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;gc[J[J[a>>2]+8>>2]](a);Vc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0;e=g;o=e-2>>>1|0;a=f;d=0;while(1){g=d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+16>>3]>2]+16>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>>2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w; -gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d=i-4|0;i=J[d>>2];c=J[b>>2];J[b>>2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;gc[J[J[c>>2]+8>>2]](c);Vc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A;gc[J[J[c>>2]+8>>2]](c);Vc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x; -g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+16>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=h;B:{if(!d)break B;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+16>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break x}gc[J[J[a>>2]+8>>2]](a);Vc(a)}g=e-1|0;if((e| -0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=Eq(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+16>>3];a=J[h>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];D:{if(!(m>2]=d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+16>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]=a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>> -2]=d;g=1;d=J[i>>2];if(!(n>O[d+16>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+16>>3];m=O[J[h>>2]+16>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j=J[a>>2];if(!(m>O[j+16>>3]))continue;break}J[f>>2]=j;J[a>>2]=d; -d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+16>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+16>>3])continue;break}while(1){j=a;a=a-8|0;p=J[a>>2];if(!(k>O[p+16>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}Yu(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F;a=J[h>>2];d=J[e>>2];if(!(O[a+16>>3]>3]))break F;J[e>> -2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=us(f,e);a=e+8|0;if(us(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){VF(f,e,c);a=e+8|0;continue b}VF(e+8|0,b,c);a=f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+16>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>>2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+ -4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function KF(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g=b-f>>3;switch(g|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+32>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a;return}a=b-8|0;e=J[a>>2]; -k=O[e+32>>3];d=J[f+8>>2];m=O[d+32>>3];c=J[f>>2];n=O[c+32>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+32>>3]>3]))break d;J[f+8>>2]=c;J[f>>2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+32>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=b;return}Zu(f, -f+8|0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+32>>3];a=J[f+8>>2];m=O[a+32>>3];e=J[f>>2];n=O[e+32>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2];J[f+20>>2]=d;if(!(k>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20|0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>> -2]=c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+32>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+4>>2];J[d+4>>2]=j;p:{if(!e)break p;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;gc[J[J[e>>2]+8>>2]](e);Vc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+32>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break o; -gc[J[J[e>>2]+8>>2]](e);Vc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g|0)<=(e|0)){e=c;break s}if(!(O[J[a>>2]+32>>3]>2]+32>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+32>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2];J[d+4>>2]=p;t:{if(!a)break t;d= -J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+32>>3]>2]+32>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>>2];if(!(O[h+32>>3]>3]))continue}break}J[c>>2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;gc[J[J[a>>2]+8>>2]](a);Vc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0;e=g;o=e-2>>>1|0;a=f;d=0;while(1){g= -d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+32>>3]>2]+32>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>>2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d=i-4|0;i=J[d>>2];c=J[b>>2];J[b>> -2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;gc[J[J[c>>2]+8>>2]](c);Vc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A;gc[J[J[c>>2]+8>>2]](c);Vc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x;g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+32>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=h;B:{if(!d)break B; -a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+32>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break x}gc[J[J[a>>2]+8>>2]](a);Vc(a)}g=e-1|0;if((e|0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=Zu(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+32>>3];a=J[h>>2];m=O[a+32>>3];e=J[f>>2];n=O[e+32>>3];D:{if(!(m>2]= -d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+32>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]=a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>>2]=d;g=1;d=J[i>>2];if(!(n>O[d+32>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+32>>3];m=O[J[h>>2]+32>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j=J[a>>2];if(!(m>O[j+32>>3]))continue;break}J[f>>2]=j;J[a>>2]=d;d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+32>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+32>>3])continue;break}while(1){j=a;a=a-8|0;p=J[a>>2];if(!(k>O[p+ -32>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}iz(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F;a=J[h>>2];d=J[e>>2];if(!(O[a+32>>3]>3]))break F;J[e>>2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=hz(f,e);a=e+8|0;if(hz(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){KF(f,e,c);a=e+8|0;continue b}KF(e+8|0,b,c);a= -f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+32>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>>2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function XF(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g=b-f>>3;switch(g| -0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+16>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a;return}a=b-8|0;e=J[a>>2];k=O[e+16>>3];d=J[f+8>>2];m=O[d+16>>3];c=J[f>>2];n=O[c+16>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+16>>3]>3]))break d;J[f+8>>2]=c;J[f>> -2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+16>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=b;return}Eq(f,f+8|0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+16>>3];a=J[f+8>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2];J[f+20>>2]=d;if(!(k< -n))break m;J[f+8>>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20|0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+16>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+4>>2];J[d+4>>2]=j;p:{if(!e)break p; -d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;gc[J[J[e>>2]+8>>2]](e);Vc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+16>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break o;gc[J[J[e>>2]+8>>2]](e);Vc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g|0)<=(e|0)){e=c;break s}if(!(O[J[a>> -2]+16>>3]>2]+16>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+16>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2];J[d+4>>2]=p;t:{if(!a)break t;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>>2];if(!(O[h+16>>3]>3]))continue}break}J[c>> -2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;gc[J[J[a>>2]+8>>2]](a);Vc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0;e=g;o=e-2>>>1|0;a=f;d=0;while(1){g=d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+16>>3]>2]+16>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>>2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w; -gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d=i-4|0;i=J[d>>2];c=J[b>>2];J[b>>2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;gc[J[J[c>>2]+8>>2]](c);Vc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A;gc[J[J[c>>2]+8>>2]](c);Vc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x; -g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+16>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=h;B:{if(!d)break B;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+16>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break x}gc[J[J[a>>2]+8>>2]](a);Vc(a)}g=e-1|0;if((e| -0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=Eq(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+16>>3];a=J[h>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];D:{if(!(m>2]=d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+16>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]=a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>> -2]=d;g=1;d=J[i>>2];if(!(n>O[d+16>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+16>>3];m=O[J[h>>2]+16>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j=J[a>>2];if(!(m>O[j+16>>3]))continue;break}J[f>>2]=j;J[a>>2]=d; -d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+16>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+16>>3])continue;break}while(1){j=a;a=a-8|0;p=J[a>>2];if(!(k>O[p+16>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}Yu(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F;a=J[h>>2];d=J[e>>2];if(!(O[a+16>>3]>3]))break F;J[e>> -2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=us(f,e);a=e+8|0;if(us(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){XF(f,e,c);a=e+8|0;continue b}XF(e+8|0,b,c);a=f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+16>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>>2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+ -4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function WF(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g=b-f>>3;switch(g|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+16>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a;return}a=b-8|0;e=J[a>>2];k=O[e+16>>3];d=J[f+ -8>>2];m=O[d+16>>3];c=J[f>>2];n=O[c+16>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+16>>3]>3]))break d;J[f+8>>2]=c;J[f>>2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+16>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=b;return}Eq(f,f+8|0,f+16|0, -f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+16>>3];a=J[f+8>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2];J[f+20>>2]=d;if(!(k>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20|0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=c}a=f+24| -0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+16>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+4>>2];J[d+4>>2]=j;p:{if(!e)break p;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;gc[J[J[e>>2]+8>>2]](e);Vc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+16>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break o;gc[J[J[e>> -2]+8>>2]](e);Vc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g|0)<=(e|0)){e=c;break s}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+16>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2];J[d+4>>2]=p;t:{if(!a)break t;d=J[a+4>>2]; -J[a+4>>2]=d-1;if(d)break t;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>>2];if(!(O[h+16>>3]>3]))continue}break}J[c>>2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;gc[J[J[a>>2]+8>>2]](a);Vc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0;e=g;o=e-2>>>1|0;a=f;d=0;while(1){g=d<<1;b= -g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+16>>3]>2]+16>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>>2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d=i-4|0;i=J[d>>2];c=J[b>>2];J[b>>2]= -0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;gc[J[J[c>>2]+8>>2]](c);Vc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A;gc[J[J[c>>2]+8>>2]](c);Vc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x;g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+16>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=h;B:{if(!d)break B;a= -J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+16>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break x}gc[J[J[a>>2]+8>>2]](a);Vc(a)}g=e-1|0;if((e|0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=Eq(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+16>>3];a=J[h>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];D:{if(!(m>2]= +o+1|0;if((o|0)!=(q|0))continue;break}}A=A+1|0;s=p+s|0;if(s>>>0>>0)continue;break}D=D+1|0;z=q+z|0;if(z>>>0>>0)continue;break}}return 1}function qB(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;J[a+4>>2]=2349380;J[a>>2]=2348896;a:{d=J[a+16>>2];b=J[d+44>>2];if(b){d=J[b+528>>2];if(d){J[b+532>>2]=d;uc(d)}d=J[b+484>>2];if(d){J[b+488>>2]=d;uc(d)}i=J[b+472>>2];if(i){d=J[b+476>>2];c=i;if((d|0)!=(c|0)){while(1){if(H[d-5|0]<0)uc(J[d-16>>2]);c=d-32|0;if(H[d-21|0]<0)uc(J[c>>2]);d=c;if((i|0)!= +(d|0))continue;break}c=J[b+472>>2]}J[b+476>>2]=i;uc(c)}b:{d=J[b+380>>2];i=J[b+376>>2];if((d|0)!=(i|0)){c=b+376|0;d=d-i>>2;f=d>>>0<=1?1:d;d=0;while(1){i=J[b+376>>2];if(J[b+380>>2]-i>>2>>>0<=d>>>0){J[699344]=0;$(1641,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}i=J[i+(d<<2)>>2];if(i)kc[J[J[i>>2]+4>>2]](i);d=d+1|0;if((f|0)!=(d|0))continue;break}d=J[c>>2]}J[b+380>>2]=d;H[b+388|0]=0;if(d)uc(d);if(H[b+335|0]<0)uc(J[b+324>>2]);if(H[b+323|0]<0)uc(J[b+312>>2]);d=J[b+248>>2];if(d)uc(d);d=J[b+252>>2]; +if(d)uc(d);if(H[b+187|0]<0)uc(J[b+176>>2]);d=J[b+144>>2];if(d)uc(d);d=J[b+36>>2];if(d){J[b+40>>2]=d;uc(d)}break b}uc(b);d=J[a+16>>2];J[d+44>>2]=0}j=J[d+40>>2];if(j){d=J[j+20>>2];c:{if(!d)break c;J[699344]=0;Zw(d);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[j+20>>2];if(!d)break c;J[699344]=0;b=J[699344];J[699344]=0;d:{if((b|0)!=1){Zw(d);b=J[d+12>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[d+12>>2]=0}hu(d,J[d+4>>2]);break d}break a}uc(d)}i=j+4|0;d=K[j+15|0];if(d<<24>>24<0?J[j+8>>2]:d){J[699344]=0;da(3036, +i|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break a;e:{if(H[j+15|0]<0){J[j+8>>2]=0;c=J[j+4>>2];break e}H[j+15|0]=0;c=i}J[c>>2]=0}d=J[j>>2];if(d){uc(Xt(d));J[j>>2]=0}d=J[693464];if(d){f=fc-16|0;fc=f;J[699344]=0;ka(3613);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[d>>2];if(b)uc(G_(b));b=J[d+4>>2];if(b)uc(Zc(b));b=J[d+8>>2];J[699344]=0;da(3614,b|0,f+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){J[699344]=0;c=cj(b,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c){c= +J[f+4>>2];if(!c)continue;uc(Zc(c));continue}break}uc(Sh(b));b=J[d+12>>2];if(b)uc(G_(b));b=J[d+16>>2];J[699344]=0;da(3614,b|0,f+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){J[699344]=0;c=cj(b,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;uc(Zc(c));continue}break}uc(Sh(b));b=J[d+20>>2];J[699344]=0;da(3614,b|0,f+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){J[699344]=0;c=cj(b,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e| +0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;uc(Zc(c));continue}break}uc(Sh(b));c=J[d+24>>2];J[699344]=0;da(3614,c|0,f+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;f:{while(1){J[699344]=0;b=cj(c,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(b){b=J[f+4>>2];if(!b)continue;e=J[b>>2];if(e)uc(Zc(e));g:{h:{if(J[b+4>>2])break h;e=J[b+12>>2];if(!e)break h;J[699344]=0;Mc(e);e=J[699344];J[699344]=0;if((e|0)==1)break a}e=J[b+20>>2];if(e){J[699344]=0;Mc(e);e=J[699344];J[699344]=0; +if((e|0)==1)break a}break g}uc(b);continue}break}uc(Sh(c));b=J[d+28>>2];J[699344]=0;da(3614,b|0,f+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){J[699344]=0;c=cj(b,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;uc(Zc(c));continue}break}uc(Sh(b));e=J[d+36>>2];c=J[e+8>>2];if((c|0)>0){b=0;while(1){g=J[J[e>>2]+(b<<2)>>2];if(g){uc(Zc(g));c=J[e+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}uc(ld(e));b=J[d+40>>2];if(b){c=J[b+1024>>2];J[699344]= +0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(b)}b=J[d+44>>2];J[699344]=0;da(3614,b|0,f+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){J[699344]=0;c=cj(b,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;uc(Zc(c));continue}break}uc(Sh(b));e=J[d+48>>2];c=J[e+8>>2];if((c|0)>0){b=0;while(1){g=J[J[e>>2]+(b<<2)>>2];if(g){uc(Zc(g));c=J[e+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}uc(ld(e));b=J[d+52>>2];J[699344]=0;da(3614,b|0,f+12|0); +c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){J[699344]=0;c=cj(b,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;uc(Zc(c));continue}break}uc(Sh(b));b=J[d+56>>2];J[699344]=0;da(3614,b|0,f+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){J[699344]=0;c=cj(b,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;e=J[c>>2];if(e)uc(Zc(e));uc(c);continue}break}uc(Sh(b));g=J[d+60>>2];if(g){b=0;c=J[g>> +2];h=J[c+8>>2];if((h|0)>0)while(1){e=J[J[c>>2]+(b<<2)>>2];if(e){h=J[e>>2];if(h)uc(Zc(h));h=J[e+4>>2];if(h)uc(Zc(h));uc(e);h=J[c+8>>2]}b=b+1|0;if((h|0)>(b|0))continue;break}uc(ld(c));uc(g)}b=J[d+116>>2];J[699344]=0;da(3614,b|0,f+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){J[699344]=0;c=cj(b,f+12|0,f+8|0,f+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;uc(Zc(c));continue}break}uc(Sh(b));g=J[d+120>>2];c=J[g+8>>2];if((c|0)>0){b=0;while(1){e=J[J[g>>2]+ +(b<<2)>>2];if(e){c=J[e>>2];if(c)uc(Zc(c));c=J[e+8>>2];if(c)uc(Zc(c));c=J[e+12>>2];if(c)uc(Zc(c));uc(e);c=J[g+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}uc(ld(g));g=J[d+124>>2];c=J[g+8>>2];if((c|0)>0){b=0;while(1){e=J[J[g>>2]+(b<<2)>>2];if(e){c=J[e>>2];if(c)uc(Zc(c));c=J[e+8>>2];if(c)uc(Zc(c));c=J[e+12>>2];if(c)uc(Zc(c));uc(e);c=J[g+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}uc(ld(g));b=J[d+200>>2];if(b)uc(Zc(b));b=J[d+216>>2];if(b)uc(Zc(b));b=J[d+224>>2];if(b)uc(Zc(b));b=J[d+240>>2];if(b)uc(Zc(b)); +b=J[d+344>>2];if(b)uc(Zc(b));b=J[d+348>>2];if(b)uc(Zc(b));b=J[d+352>>2];if(b)uc(Zc(b));b=J[d+356>>2];if(b)uc(Zc(b));b=J[d+364>>2];if(b)uc(Zc(b));b=J[d+368>>2];if(b)uc(Zc(b));b=J[d+372>>2];if(b)uc(Zc(b));b=J[d+388>>2];if(b)uc(Sh(b));e=J[d+392>>2];b=J[e+8>>2];if((b|0)>0){g=0;while(1){k=J[J[e>>2]+(g<<2)>>2];if(k){b=0;h=J[k+12>>2];c=J[h+8>>2];if((c|0)>0)while(1){l=J[J[h>>2]+(b<<2)>>2];if(l){uc(Zc(l));c=J[h+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}uc(ld(h));uc(k);b=J[e+8>>2]}g=g+1|0;if((g|0)<(b|0))continue; +break}}uc(ld(e));e=J[d+396>>2];c=J[e+8>>2];if((c|0)>0){b=0;while(1){g=J[J[e>>2]+(b<<2)>>2];if(g){c=0;h=J[g>>2];if(h)uc(Zc(h));h=J[g+4>>2];k=J[h+8>>2];if((k|0)>0)while(1){l=J[J[h>>2]+(c<<2)>>2];if(l){uc(Zc(l));k=J[h+8>>2]}c=c+1|0;if((k|0)>(c|0))continue;break}uc(ld(h));uc(g);c=J[e+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}uc(ld(e));b=J[d+400>>2];if(b)uc(Zc(b));b=J[d+32>>2];J[699344]=0;da(3614,b|0,f+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;while(1){b=J[d+32>>2];J[699344]=0;b=cj(b,f+12|0, +f+8|0,f+4|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b){b=0;e=J[f+4>>2];c=J[e+8>>2];if((c|0)>0)while(1){g=J[J[e>>2]+(b<<2)>>2];if(g){uc(Zc(g));c=J[e+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}uc(ld(e));continue}break}b=J[d+32>>2];if(b)uc(Sh(b));b=J[d+416>>2];if(b)uc(Q$(b));b=J[d+420>>2];if(b)uc(Q$(b));b=J[d+424>>2];if(b){c=J[b>>2];if(c)Mo(c);c=J[b+4>>2];if(c)Mo(c);c=J[b+8>>2];if(c)Mo(c);c=J[b+12>>2];if(c)Mo(c);uc(b)}b=J[d+428>>2];if(b){c=J[b>>2];if(c)cq(c);c=J[b+4>>2];if(c)cq(c);c=J[b+8>> +2];if(c)cq(c);c=J[b+12>>2];if(c)cq(c);uc(b)}fc=f+16|0;break f}uc(d);J[693464]=0}d=J[j+16>>2];if(d){b=J[J[d>>2]+12>>2];J[699344]=0;_(b|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[j+16>>2]=0}dj(j+32|0,J[j+36>>2]);if(H[j+15|0]<0)uc(J[i>>2]);uc(j);d=J[a+16>>2];J[d+40>>2]=0}b=J[d+48>>2];if(b){uc(b);d=J[a+16>>2];J[d+48>>2]=0}if(H[d+35|0]<0)uc(J[d+24>>2]);if(H[d+23|0]<0)uc(J[d+12>>2]);if(H[d+11|0]<0)uc(J[d>>2]);uc(d);J[a+16>>2]=0;return a|0}ea(0)|0;Bc();B()}function r5(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,z=0,A=0,B=0,C=0,D=0,E=0;e=fc-1408|0;fc=e;g=d<<3;q=g&-32|4;f=c<<2;r=f&-32|2;k=b<<3;s=k&-32|4;y=J[J[a+480>>2]+24>>2];l=J[a+132>>2];a:{if((l|0)<=0){l=0;break a}m=g|28;t=m+q>>>1|0;o=f|30;u=o+r>>>1|0;p=k|28;v=p+s>>>1|0;g=J[a+136>>2];i=J[g+8>>2];w=J[g+4>>2];x=J[g>>2];f=0;h=2147483647;while(1){g=K[f+x|0];b:{if((g|0)<(s|0)){k=g-p<<1;k=P(k,k);g=g-s<<1;n=P(g,g);break b}if((g|0)>(p|0)){k=g-s<<1;k=P(k,k);g=g-p<<1;n=P(g,g);break b}c:{if(g>>> +0<=v>>>0){g=g-p<<1;k=P(g,g);break c}g=g-s<<1;k=P(g,g)}n=0}g=n;j=K[f+w|0];d:{if((j|0)<(r|0)){g=P(j-r|0,3);g=n+P(g,g)|0;j=P(j-o|0,3);n=P(j,j);break d}if((j|0)>(o|0)){n=g;g=P(j-o|0,3);g=n+P(g,g)|0;j=P(j-r|0,3);n=P(j,j);break d}if(j>>>0<=u>>>0){j=P(j-o|0,3);n=P(j,j);break d}j=P(j-r|0,3);n=P(j,j)}j=n+k|0;k=K[f+i|0];e:{if((k|0)<(q|0)){n=g;g=k-q|0;g=n+P(g,g)|0;k=k-m|0;k=P(k,k);break e}if((k|0)>(m|0)){n=g;g=k-m|0;g=n+P(g,g)|0;k=k-q|0;k=P(k,k);break e}if(k>>>0<=t>>>0){k=k-m|0;k=P(k,k);break e}k=k-q|0;k=P(k, +k)}J[(e+384|0)+(f<<2)>>2]=g;g=j+k|0;h=(g|0)<(h|0)?g:h;f=f+1|0;if((l|0)!=(f|0))continue;break}k=l&1;f:{if((l|0)==1){l=0;f=0;break f}j=l&-2;l=0;f=0;g=0;while(1){if(J[(e+384|0)+(f<<2)>>2]<=(h|0)){H[(e+128|0)+l|0]=f;l=l+1|0}m=f|1;if(J[(e+384|0)+(m<<2)>>2]<=(h|0)){H[(e+128|0)+l|0]=m;l=l+1|0}f=f+2|0;g=g+2|0;if((j|0)!=(g|0))continue;break}}if(!k|J[(e+384|0)+(f<<2)>>2]>(h|0))break a;H[(e+128|0)+l|0]=f;l=l+1|0}J[e+888>>2]=2147483647;J[e+892>>2]=2147483647;J[e+880>>2]=2147483647;J[e+884>>2]=2147483647;J[e+ +872>>2]=2147483647;J[e+876>>2]=2147483647;J[e+864>>2]=2147483647;J[e+868>>2]=2147483647;J[e+856>>2]=2147483647;J[e+860>>2]=2147483647;J[e+848>>2]=2147483647;J[e+852>>2]=2147483647;J[e+840>>2]=2147483647;J[e+844>>2]=2147483647;J[e+832>>2]=2147483647;J[e+836>>2]=2147483647;J[e+824>>2]=2147483647;J[e+828>>2]=2147483647;J[e+816>>2]=2147483647;J[e+820>>2]=2147483647;J[e+808>>2]=2147483647;J[e+812>>2]=2147483647;J[e+800>>2]=2147483647;J[e+804>>2]=2147483647;J[e+792>>2]=2147483647;J[e+796>>2]=2147483647; +J[e+784>>2]=2147483647;J[e+788>>2]=2147483647;J[e+776>>2]=2147483647;J[e+780>>2]=2147483647;J[e+768>>2]=2147483647;J[e+772>>2]=2147483647;J[e+760>>2]=2147483647;J[e+764>>2]=2147483647;J[e+752>>2]=2147483647;J[e+756>>2]=2147483647;J[e+744>>2]=2147483647;J[e+748>>2]=2147483647;J[e+736>>2]=2147483647;J[e+740>>2]=2147483647;J[e+728>>2]=2147483647;J[e+732>>2]=2147483647;J[e+720>>2]=2147483647;J[e+724>>2]=2147483647;J[e+712>>2]=2147483647;J[e+716>>2]=2147483647;J[e+704>>2]=2147483647;J[e+708>>2]=2147483647; +J[e+696>>2]=2147483647;J[e+700>>2]=2147483647;J[e+688>>2]=2147483647;J[e+692>>2]=2147483647;J[e+680>>2]=2147483647;J[e+684>>2]=2147483647;J[e+672>>2]=2147483647;J[e+676>>2]=2147483647;J[e+664>>2]=2147483647;J[e+668>>2]=2147483647;J[e+656>>2]=2147483647;J[e+660>>2]=2147483647;J[e+648>>2]=2147483647;J[e+652>>2]=2147483647;J[e+640>>2]=2147483647;J[e+644>>2]=2147483647;J[e+632>>2]=2147483647;J[e+636>>2]=2147483647;J[e+624>>2]=2147483647;J[e+628>>2]=2147483647;J[e+616>>2]=2147483647;J[e+620>>2]=2147483647; +J[e+608>>2]=2147483647;J[e+612>>2]=2147483647;J[e+600>>2]=2147483647;J[e+604>>2]=2147483647;J[e+592>>2]=2147483647;J[e+596>>2]=2147483647;J[e+584>>2]=2147483647;J[e+588>>2]=2147483647;J[e+576>>2]=2147483647;J[e+580>>2]=2147483647;J[e+568>>2]=2147483647;J[e+572>>2]=2147483647;J[e+560>>2]=2147483647;J[e+564>>2]=2147483647;J[e+552>>2]=2147483647;J[e+556>>2]=2147483647;J[e+544>>2]=2147483647;J[e+548>>2]=2147483647;J[e+536>>2]=2147483647;J[e+540>>2]=2147483647;J[e+528>>2]=2147483647;J[e+532>>2]=2147483647; +J[e+520>>2]=2147483647;J[e+524>>2]=2147483647;J[e+512>>2]=2147483647;J[e+516>>2]=2147483647;J[e+504>>2]=2147483647;J[e+508>>2]=2147483647;J[e+496>>2]=2147483647;J[e+500>>2]=2147483647;J[e+488>>2]=2147483647;J[e+492>>2]=2147483647;J[e+480>>2]=2147483647;J[e+484>>2]=2147483647;J[e+472>>2]=2147483647;J[e+476>>2]=2147483647;J[e+464>>2]=2147483647;J[e+468>>2]=2147483647;J[e+456>>2]=2147483647;J[e+460>>2]=2147483647;J[e+448>>2]=2147483647;J[e+452>>2]=2147483647;J[e+440>>2]=2147483647;J[e+444>>2]=2147483647; +J[e+432>>2]=2147483647;J[e+436>>2]=2147483647;J[e+424>>2]=2147483647;J[e+428>>2]=2147483647;J[e+416>>2]=2147483647;J[e+420>>2]=2147483647;J[e+408>>2]=2147483647;J[e+412>>2]=2147483647;J[e+400>>2]=2147483647;J[e+404>>2]=2147483647;J[e+392>>2]=2147483647;J[e+396>>2]=2147483647;J[e+384>>2]=2147483647;J[e+388>>2]=2147483647;if((l|0)>0){v=J[a+136>>2];w=J[v+8>>2];x=J[v+4>>2];t=0;while(1){a=3;j=K[(e+128|0)+t|0];g=r-K[j+x|0]|0;f=P(g,3);k=P(f,f);h=s-K[j+J[v>>2]|0]|0;f=h<<1;k=k+P(f,f)|0;f=q-K[j+w|0]|0;k=k+ +P(f,f)|0;g=P(g,72);n=g+1872|0;z=g+1584|0;A=g+1296|0;B=g+1008|0;C=g+720|0;D=g+432|0;f=f<<4;m=f+320|0;o=f+192|0;p=f- -64|0;E=g+144|0;u=(h<<6)+256|0;f=e+384|0;g=e;while(1){if(J[f>>2]>(k|0)){J[f>>2]=k;H[g|0]=j}h=k+p|0;if((h|0)>2]){J[f+4>>2]=h;H[g+1|0]=j}h=h+o|0;if((h|0)>2]){J[f+8>>2]=h;H[g+2|0]=j}h=h+m|0;if((h|0)>2]){J[f+12>>2]=h;H[g+3|0]=j}h=k+E|0;if((h|0)>2]){J[f+16>>2]=h;H[g+4|0]=j}i=h+p|0;if((i|0)>2]){J[f+20>>2]=i;H[g+5|0]=j}i=i+o|0;if((i|0)>2]){J[f+24>> +2]=i;H[g+6|0]=j}i=i+m|0;if((i|0)>2]){J[f+28>>2]=i;H[g+7|0]=j}h=h+D|0;if((h|0)>2]){J[f+32>>2]=h;H[g+8|0]=j}i=h+p|0;if((i|0)>2]){J[f+36>>2]=i;H[g+9|0]=j}i=i+o|0;if((i|0)>2]){J[f+40>>2]=i;H[g+10|0]=j}i=i+m|0;if((i|0)>2]){J[f+44>>2]=i;H[g+11|0]=j}h=h+C|0;if((h|0)>2]){J[f+48>>2]=h;H[g+12|0]=j}i=h+p|0;if((i|0)>2]){J[f+52>>2]=i;H[g+13|0]=j}i=i+o|0;if((i|0)>2]){J[f+56>>2]=i;H[g+14|0]=j}i=i+m|0;if((i|0)>2]){J[f+60>>2]=i;H[g+15|0]=j}h= +h+B|0;if((h|0)>2]){J[f+64>>2]=h;H[g+16|0]=j}i=h+p|0;if((i|0)>2]){J[f+68>>2]=i;H[g+17|0]=j}i=i+o|0;if((i|0)>2]){J[f+72>>2]=i;H[g+18|0]=j}i=i+m|0;if((i|0)>2]){J[f+76>>2]=i;H[g+19|0]=j}h=h+A|0;if((h|0)>2]){J[f+80>>2]=h;H[g+20|0]=j}i=h+p|0;if((i|0)>2]){J[f+84>>2]=i;H[g+21|0]=j}i=i+o|0;if((i|0)>2]){J[f+88>>2]=i;H[g+22|0]=j}i=i+m|0;if((i|0)>2]){J[f+92>>2]=i;H[g+23|0]=j}h=h+z|0;if((h|0)>2]){J[f+96>>2]=h;H[g+24|0]=j}i=h+p|0;if((i|0)< +J[f+100>>2]){J[f+100>>2]=i;H[g+25|0]=j}i=i+o|0;if((i|0)>2]){J[f+104>>2]=i;H[g+26|0]=j}i=i+m|0;if((i|0)>2]){J[f+108>>2]=i;H[g+27|0]=j}h=h+n|0;if((h|0)>2]){J[f+112>>2]=h;H[g+28|0]=j}h=h+p|0;if((h|0)>2]){J[f+116>>2]=h;H[g+29|0]=j}h=h+o|0;if((h|0)>2]){J[f+120>>2]=h;H[g+30|0]=j}h=h+m|0;if((h|0)>2]){J[f+124>>2]=h;H[g+31|0]=j}h=a;a=h-1|0;k=k+u|0;g=g+32|0;f=f+128|0;u=u+512|0;if(h)continue;break}t=t+1|0;if((t|0)!=(l|0))continue;break}}b=((b&1073741820)<< +2)+y|0;h=0;f=e;c=(c&-8)<<6;d=(d&-4)<<1;while(1){a=d+(c+J[b+(h<<2)>>2]|0)|0;I[a>>1]=K[f|0]+1;I[a+2>>1]=K[f+1|0]+1;I[a+4>>1]=K[f+2|0]+1;I[a+6>>1]=K[f+3|0]+1;I[a- -64>>1]=K[f+4|0]+1;I[a+66>>1]=K[f+5|0]+1;I[a+68>>1]=K[f+6|0]+1;I[a+70>>1]=K[f+7|0]+1;I[a+128>>1]=K[f+8|0]+1;I[a+130>>1]=K[f+9|0]+1;I[a+132>>1]=K[f+10|0]+1;I[a+134>>1]=K[f+11|0]+1;I[a+192>>1]=K[f+12|0]+1;I[a+194>>1]=K[f+13|0]+1;I[a+196>>1]=K[f+14|0]+1;I[a+198>>1]=K[f+15|0]+1;I[a+256>>1]=K[f+16|0]+1;I[a+258>>1]=K[f+17|0]+1;I[a+260>>1]=K[f+18| +0]+1;I[a+262>>1]=K[f+19|0]+1;I[a+320>>1]=K[f+20|0]+1;I[a+322>>1]=K[f+21|0]+1;I[a+324>>1]=K[f+22|0]+1;I[a+326>>1]=K[f+23|0]+1;I[a+384>>1]=K[f+24|0]+1;I[a+386>>1]=K[f+25|0]+1;I[a+388>>1]=K[f+26|0]+1;I[a+390>>1]=K[f+27|0]+1;I[a+448>>1]=K[f+28|0]+1;I[a+450>>1]=K[f+29|0]+1;I[a+452>>1]=K[f+30|0]+1;I[a+454>>1]=K[f+31|0]+1;f=f+32|0;h=h+1|0;if((h|0)!=4)continue;break}fc=e+1408|0}function MX(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,y=0,z=0, +A=0;c=fc-112|0;fc=c;e=J[a>>2];a:if(K[a+8|0]){g=0;if(!e)break a;g=J[e>>2]}else g=e;e=g;k=J[a+4>>2];J[c+4>>2]=k;a=0;b:{if((k|0)<=0)break b;while(1){l=J[(a<<2)+e>>2];g=l-32|0;if(!((g|0)!=12?g:0)){a=a+1|0;if((k|0)>(a|0))continue;break b}g=a+1|0;J[c>>2]=g;c:{d:switch(l-65|0){case 5:if((k|0)<=(g|0))break c;while(1){a=J[(g<<2)+e>>2]-32|0;if(!(!a|(a|0)==12)){J[c>>2]=g;r=0;A=nI(e,c,c+4|0);break c}g=g+1|0;if((k|0)!=(g|0))continue;break}J[c>>2]=k;break c;case 25:case 57:kc[J[J[b>>2]+340>>2]](b)|0;r=0;break c; +case 18:case 50:if((k|0)<=(g|0))break c;p=(l|0)!=115;while(1){a=g;e:{f:{while(1){l=J[(a<<2)+e>>2];o=l-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(l-48>>>0<10)break e;a=l-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break c}if((l|0)!=101)break c}h=f;i=d;if(r){i=d+d-u;h=f+f-s}s=$e(e,c,c+4|0);g:{if(!p){s=f+s;u=f+$e(e,c,c+4|0);f=f+$e(e,c,c+4|0);d=d+$e(e,c,c+4|0);break g}u=$e(e,c,c+4|0);f=$e(e,c,c+4|0);d=$e(e,c,c+4|0)}O[c+104>>3]=h*25.4/ +96;O[c+96>>3]=i*25.4/96;O[c+88>>3]=s*25.4/96;O[c+80>>3]=u*25.4/96;O[c+72>>3]=f*25.4/96;O[c+64>>3]=d*25.4/96;kc[J[J[b>>2]+328>>2]](b,c+104|0,c+96|0,c+88|0,c+80|0,c+72|0,c- -64|0)|0;r=1;g=J[c>>2];if((k|0)>(g|0))continue;break}break c;case 16:case 48:r=0;if((k|0)<=(g|0))break c;p=(l|0)!=113;while(1){h=f;a=g;h:{i:{j:{while(1){l=J[(a<<2)+e>>2];o=l-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(l-48>>>0<10)break h;a=l-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1| +0;J[c>>2]=(a|0)<(k|0)?k:a;break i}if((l|0)==101)break h}f=h;break c}n=$e(e,c,c+4|0);k:{if(!p){n=h+n;m=d+$e(e,c,c+4|0);f=h+$e(e,c,c+4|0);j=d+$e(e,c,c+4|0);break k}m=$e(e,c,c+4|0);f=$e(e,c,c+4|0);j=$e(e,c,c+4|0)}i=h/3;h=(n+n)/3;O[c+104>>3]=(i+h)*25.4/96;i=d/3;d=(m+m)/3;O[c+96>>3]=(i+d)*25.4/96;O[c+88>>3]=(h+f/3)*25.4/96;h=d;d=j;O[c+80>>3]=(h+d/3)*25.4/96;O[c+72>>3]=f*25.4/96;O[c+64>>3]=d*25.4/96;kc[J[J[b>>2]+328>>2]](b,c+104|0,c+96|0,c+88|0,c+80|0,c+72|0,c- -64|0)|0;g=J[c>>2];if((k|0)>(g|0))continue; +break}break c;case 2:case 34:if((k|0)<=(g|0))break c;p=(l|0)!=99;while(1){a=g;l:{m:{while(1){l=J[(a<<2)+e>>2];o=l-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(l-48>>>0<10)break l;a=l-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break c}if((l|0)!=101)break c}h=$e(e,c,c+4|0);n:{if(!p){h=f+h;i=d+$e(e,c,c+4|0);s=f+$e(e,c,c+4|0);u=d+$e(e,c,c+4|0);f=f+$e(e,c,c+4|0);d=d+$e(e,c,c+4|0);break n}i=$e(e,c,c+4|0);s=$e(e,c,c+4|0);u=$e(e,c,c+4| +0);f=$e(e,c,c+4|0);d=$e(e,c,c+4|0)}O[c+104>>3]=h*25.4/96;O[c+96>>3]=i*25.4/96;O[c+88>>3]=s*25.4/96;O[c+80>>3]=u*25.4/96;O[c+72>>3]=f*25.4/96;O[c+64>>3]=d*25.4/96;kc[J[J[b>>2]+328>>2]](b,c+104|0,c+96|0,c+88|0,c+80|0,c+72|0,c- -64|0)|0;r=1;g=J[c>>2];if((k|0)>(g|0))continue;break}break c;case 0:case 32:r=0;if((k|0)<=(g|0))break c;p=(l|0)!=97;o:{while(1){p:{a=g;q:{r:{while(1){l=J[(a<<2)+e>>2];o=l-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(l-48>>>0<10)break q;a=l-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break c}if((l|0)!=101)break c}a=c+4|0;m=$e(e,c,a);O[c+104>>3]=m;j=$e(e,c,a);O[c+96>>3]=j;n=$e(e,c,a);z=nI(e,c,a);l=nI(e,c,a);h=$e(e,c,c+4|0);O[c+88>>3]=h;i=$e(e,c,c+4|0);O[c+80>>3]=i;if(!p){i=d+i;O[c+80>>3]=i;h=f+h;O[c+88>>3]=h}O[c+72>>3]=h;O[c+64>>3]=i;s:{t:{if(R(m)<.001|R(j)<.001){kc[J[J[b>>2]+320>>2]](b,c+72|0,c- -64|0)|0;d=O[c+80>>3];f=O[c+88>>3];break t}w=wk(c+60|0);J[699344]=0;t=_(2256,c+56|0)|0;a=J[699344];J[699344]=0;u:{v:{w:{x:{if((a| +0)!=1){J[699344]=0;qD(w,-n,0);a=J[699344];J[699344]=0;if((a|0)==1)break p;J[699344]=0;ds(w,-f,-d,0);a=J[699344];J[699344]=0;if((a|0)==1)break p;J[699344]=0;ds(t,f,d,0);a=J[699344];J[699344]=0;if((a|0)==1)break p;J[699344]=0;qD(t,n,0);a=J[699344];J[699344]=0;if((a|0)==1)break p;J[c+48>>2]=0;J[c+52>>2]=0;J[699344]=0;J[c+40>>2]=0;J[c+44>>2]=0;o=c+88|0;g=c+80|0;ce(w,o,g);a=J[699344];J[699344]=0;if((a|0)==1)break p;J[699344]=0;ce(t,c+48|0,c+40|0);a=J[699344];J[699344]=0;if((a|0)==1)break p;y:{if(R(O[c+ +80>>3])>.001){J[699344]=0;g=LX(o,g,c+104|0,c+96|0,c+32|0,c+24|0,c+16|0,c+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break p;if(!g)break x;d=O[c+24>>3];f=O[c+32>>3];break y}d=O[c+88>>3];if(R(d)<.001)break x;f=d*.5;O[c+16>>3]=f;O[c+32>>3]=f;n=O[c+96>>3];d=n*n;h=f*f;j=O[c+104>>3];d=d-h*(d/(j*j));z:{if(!(d<0))break z;m=f/j;if(!(m>1))break z;j=j*m;O[c+104>>3]=j;d=n*m;O[c+96>>3]=d;d=d*d;d=d-h*(d/(j*j))}if(d<-.001)break x;h=Y(d);a=d<0;d=a?0:h;O[c+24>>3]=d;O[c+8>>3]=a?0:-h}if(!(f<=0))break w;a=3;if(d>=0)break v; +a=0;break v}a=Z()|0;break o}a=J[J[b>>2]+320>>2];J[699344]=0;ga(a|0,b|0,c+72|0,c- -64|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break u;break p}a=2;if(d>=0)break v;a=1}j=0-d;h=0-f;h=Hv(R(j)/Y(h*h+j*j))*180/3.141592653589793;A:{B:switch(a-1|0){case 0:h=180-h;break A;case 1:h=h+180;break A;case 2:break B;default:break A}h=360-h}v=O[c+80>>3];x=O[c+88>>3];C:{if(x>=f){a=3;if(d>=v)break C;a=0;break C}a=2;if(d>=v)break C;a=1}m=v-d;j=x-f;i=Hv(R(m)/Y(j*j+m*m))*180/3.141592653589793;D:{E:switch(a-1|0){case 0:i= +180-i;break D;case 1:i=i+180;break D;case 2:break E;default:break D}i=360-i}m=O[c+8>>3];j=O[c+16>>3];F:{if(j<=0){a=3;if(m>=0)break F;a=0;break F}a=2;if(m>=0)break F;a=1}q=0-m;n=0-j;n=Hv(R(q)/Y(n*n+q*q))*180/3.141592653589793;G:{H:switch(a-1|0){case 0:n=180-n;break G;case 1:n=n+180;break G;case 2:break H;default:break G}n=360-n}y=h>i?i+360:i;q=v-m;i=x-j;i=Hv(R(q)/Y(i*i+q*q))*180/3.141592653589793;I:{J:{K:{L:{M:{if(j<=x){a=3;if(m>=v)break M;a=0;break M}a=2;if(m>=v)break M;a=1}switch(a-1|0){case 2:break J; +case 1:break K;case 0:break L;default:break I}}i=180-i;break I}i=i+180;break I}i=360-i}a=l^1;q=y-h;N:{if((l|0)!=(z|0)&q>180)break N;if(q<=180)if(!(a|z^1)|(l|z)!=1)break N;y=i>3];if(m<=0)break u;j=O[c+96>>3];if(j<=0)break u;if(R(y-h)>=360){J[699344]=0;Hb(5132,b|0,t|0,+f,+d,+m,+j);a=J[699344];J[699344]=0;if((a|0)!=1)break u;break s}J[699344]=0;Gb(5133,b|0,t|0,+f,+d,+m,+j,+h,+y,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break s}d=O[c+64>>3];f=O[c+72>>3];Jd(t);Jd(w)}g=J[c>> +2];if((k|0)>(g|0))continue;break c}}break}a=Z()|0;Jd(t)}Jd(w);ba(a|0);B();case 7:case 11:case 21:case 39:case 43:case 53:r=0;if((k|0)<=(g|0))break c;while(1){a=g;O:{P:{while(1){p=J[(a<<2)+e>>2];o=p-32|0;if(!(!o|(o|0)==12)){J[c>>2]=a;if(p-48>>>0<10)break O;a=p-45|0;if(a>>>0>24|!(1<(a|0))continue;break}a=g+1|0;J[c>>2]=(a|0)<(k|0)?k:a;break c}if((p|0)!=101)break c}Q:{R:switch(l-72|0){case 4:f=$e(e,c,c+4|0);d=$e(e,c,c+4|0);break Q;case 36:f=f+$e(e,c,c+4|0); +d=d+$e(e,c,c+4|0);break Q;case 0:f=$e(e,c,c+4|0);break Q;case 32:f=f+$e(e,c,c+4|0);break Q;case 14:d=$e(e,c,c+4|0);break Q;case 46:break R;default:break Q}d=d+$e(e,c,c+4|0)}O[c+104>>3]=f*25.4/96;O[c+96>>3]=d*25.4/96;kc[J[J[b>>2]+320>>2]](b,c+104|0,c+96|0)|0;g=J[c>>2];if((k|0)>(g|0))continue;break}break c;case 12:f=$e(e,c,c+4|0);d=$e(e,c,c+4|0);O[c+104>>3]=f*25.4/96;O[c+96>>3]=d*25.4/96;kc[J[J[b>>2]+316>>2]](b,c+104|0,c+96|0)|0;r=0;break c;case 44:break d;default:break c}j=$e(e,c,c+4|0);h=$e(e,c,c+ +4|0);f=f+j;O[c+104>>3]=f*25.4/96;d=d+h;O[c+96>>3]=d*25.4/96;kc[J[J[b>>2]+316>>2]](b,c+104|0,c+96|0)|0;r=0}a=J[c>>2];if((k|0)>(a|0))continue;break}}fc=c+112|0;return A&1}function una(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;e=fc-208|0;fc=e;c=J[d+4>>2];f=255;g=J[a+36>>2];h=a+32|0;a:{if((g|0)!=(h|0)){c=J[c>>2];d=g;while(1){if(!((c|0)>2]|(c|0)>J[d+16>>2])){f=K[d+9|0];c=K[d+8|0];if((d|0)==(g|0))break a;h=J[d+4>>2];if((h|0)==(g|0))break a;i=J[d>>2]; +J[i+4>>2]=h;J[h>>2]=i;h=J[g>>2];J[h+4>>2]=d;J[d>>2]=h;J[g>>2]=d;J[d+4>>2]=g;break a}d=J[d+4>>2];if((h|0)!=(d|0))continue;break}}c=255}b:{d=J[a+4>>2];if((d|0)!=(a|0))while(1){i=0;g=d+8|0;j=K[g+11|0];k=j<<24>>24;m=K[b+11|0];n=m<<24>>24;k=(k|0)<0;j=k?J[g+4>>2]:j;h=(n|0)<0;l=0;c:{if((j|0)!=((h?J[b+4>>2]:m)|0))break c;l=1;if(!j)break c;l=!qd(k?J[g>>2]:g,h?J[b>>2]:b,j)}h=l;m=J[g+32>>2];k=J[g+28>>2];j=m-k>>2;n=J[b+28>>2];d:{if((j|0)!=J[b+32>>2]-n>>2)break d;i=h&K[g+12|0]==K[b+12|0]&K[g+13|0]==K[b+13|0]& +L[g+14>>1]==L[b+14>>1]&K[g+16|0]==K[b+16|0]&K[g+17|0]==K[b+17|0]&K[g+18|0]==K[b+18|0]&K[g+19|0]==K[b+19|0]&K[g+20|0]==K[b+20|0]&K[g+21|0]==K[b+21|0]&K[g+22|0]==K[b+22|0]&K[g+23|0]==K[b+23|0]&K[g+24|0]==K[b+24|0]&K[g+25|0]==K[b+25|0]&K[g+26|0]==K[b+26|0];if((k|0)==(m|0))break d;h=j>>>0<=1?1:j;m=h&3;p=0;e:{if(j>>>0<4){h=0;break e}q=h&-4;h=0;l=0;while(1){j=h<<2;o=j|4;o=J[k+j>>2]==J[j+n>>2]&i&J[k+o>>2]==J[n+o>>2];i=j|8;o=o&J[i+k>>2]==J[i+n>>2];i=j|12;i=o&J[i+k>>2]==J[i+n>>2];h=h+4|0;l=l+4|0;if((q|0)!= +(l|0))continue;break}}if(!m)break d;while(1){l=i;i=h<<2;i=l&J[i+k>>2]==J[i+n>>2];h=h+1|0;p=p+1|0;if((m|0)!=(p|0))continue;break}}if(!(!i|K[d+49|0]!=(f|0)|K[d+48|0]!=(c|0))){H[a+28|0]=K[d- -64|0];H[a+29|0]=K[d+65|0];b=a+16|0;c=d+52|0;f:{if((b|0)==(c|0))break f;h=K[d+63|0];f=h<<24>>24;if(H[a+27|0]>=0){if((f|0)>=0){f=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=f;J[b+8>>2]=J[c+8>>2];break f}Gf(b,J[d+52>>2],J[d+56>>2]);break f}i=b;b=(f|0)<0;Lf(i,b?J[d+52>>2]:c,b?J[d+56>>2]:h)}if(J[a+4>>2]==(d|0))break b;b=vc(68); +J[b+16>>2]=0;J[b+20>>2]=0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+44>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;I[b+22>>1]=65535;H[b+31|0]=0;H[b+32|0]=0;H[b+33|0]=0;H[b+34|0]=0;J[699344]=0;h=b+8|0;aa(6621,h|0,g|0)|0;f=J[699344];J[699344]=0;g:{if((f|0)!=1){I[b+48>>1]=L[g+40>>1];f=b+52|0;if(H[g+55|0]>=0){h=J[g+48>>2];J[f>>2]=J[g+44>>2];J[f+4>>2]=h;J[f+8>>2]=J[g+52>>2];break g}i=J[g+48>>2];k=J[g+44>>2];J[699344]=0;ca(15,f|0,k|0,i|0);f=J[699344];J[699344]=0;if((f|0)!=1)break g}a= +Z()|0;Tv(h);uc(b);ba(a|0);B()}f=L[g+56>>1];J[b>>2]=a;I[b- -64>>1]=f;f=J[a+4>>2];J[b+4>>2]=f;J[f>>2]=b;J[a+4>>2]=b;J[a+8>>2]=J[a+8>>2]+1;b=J[d>>2];f=J[d+4>>2];J[b+4>>2]=f;J[f>>2]=b;J[a+8>>2]=J[a+8>>2]-1;if(H[d+63|0]<0)uc(J[c>>2]);a=J[d+36>>2];if(a){J[d+40>>2]=a;uc(a)}if(H[d+19|0]<0)uc(J[g>>2]);uc(d);break b}d=J[d+4>>2];if((d|0)!=(a|0))continue;break}J[e+184>>2]=0;H[e+171|0]=0;H[e+172|0]=0;H[e+173|0]=0;H[e+174|0]=0;J[e+200>>2]=0;J[e+176>>2]=0;J[e+180>>2]=0;I[e+162>>1]=65535;H[e+161|0]=0;J[e+148>>2]= +0;H[e+159|0]=0;H[e+160|0]=0;J[e+164>>2]=0;J[e+168>>2]=0;J[e+192>>2]=0;J[e+196>>2]=0;J[699344]=0;g=aa(6621,e+148|0,b|0)|0;d=J[699344];J[699344]=0;h:{i:{j:{k:{l:{if((d|0)!=1){H[g+40|0]=c;H[g+41|0]=f;J[e+144>>2]=0;J[e+140>>2]=0;J[e+136>>2]=0;J[e+132>>2]=0;d=J[b+28>>2];if((d|0)!=J[b+32>>2]){J[e+144>>2]=J[d>>2];J[e+140>>2]=J[d+4>>2];J[e+136>>2]=J[d+8>>2];J[e+132>>2]=J[d+12>>2]}d=c;m:{if((d|0)==1){c=-2147483648;if((f|0)==28)break m}n:{if((f|0)!=13|d?(d|0)==2&(f|0)==3|(d|0)==1&(f|0)==31:1){J[e+140>>2]=-2147483648; +J[e+144>>2]=8192;J[e+136>>2]=8;break n}c=e+144|0;o:{p:switch(d|0){case 1:c=e+140|0;break o;case 2:c=e+136|0;break o;case 0:break o;default:break p}c=e+132|0}J[c>>2]=J[c>>2]|1<=0){J[e+24>>2]=J[b+8>>2];d=J[b+4>>2];J[e+16>>2]=J[b>>2];J[e+20>>2]=d;break t}d=J[b+4>>2];f=J[b>>2];J[699344]=0;ca(15,e+16|0,f|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break s}H[e+15|0]=0;J[699344]=0;H[e+14|0]=0;ia(6623,a|0,e+16|0,e+15|0,e+14|0);d=J[699344];J[699344]=0;if((d| +0)==1)break r;i=K[e+15|0]|K[b+12|0];H[e+15|0]=i;k=K[e+14|0]|K[b+13|0];H[e+14|0]=k;u:{v:{w:{if(K[b+17|0]|K[b+18|0]|(K[b+19|0]|K[b+20|0]))break w;if(K[b+21|0]|K[b+22|0]|(K[b+23|0]|K[b+24|0]))break w;if(K[b+25|0])break w;if(!K[b+26|0])break v}J[699344]=0;d=_(27,10)|0;f=J[699344];J[699344]=0;if((f|0)==1)break u;J[e+60>>2]=d;f=K[b+25|0]|K[b+26|0]<<8;H[d+8|0]=f;H[d+9|0]=f>>>8;f=K[b+21|0]|K[b+22|0]<<8|(K[b+23|0]<<16|K[b+24|0]<<24);h=K[b+17|0]|K[b+18|0]<<8|(K[b+19|0]<<16|K[b+20|0]<<24);H[d|0]=h;H[d+1|0]= +h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24}J[699344]=0;d=_(4,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break u;J[d>>2]=i;J[699344]=0;J[e+48>>2]=d;d=_(4,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break u;J[d>>2]=k;J[699344]=0;J[e+52>>2]=d;d=_(4,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break u;J[d>>2]=K[b+16|0];J[e+56>>2]=d;d=L[b+14>>1];if((d|0)!=65535){J[699344]=0;b=_(4,2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break u;I[b>>1]=d;J[e+104>>2]=b}J[699344]= +0;b=_(4,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;J[b>>2]=J[e+144>>2];J[699344]=0;J[e+64>>2]=b;b=_(4,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;J[b>>2]=J[e+140>>2];J[699344]=0;J[e+68>>2]=b;b=_(4,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;J[b>>2]=J[e+136>>2];J[699344]=0;J[e+72>>2]=b;b=_(4,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;J[b>>2]=J[e+132>>2];J[699344]=0;J[e+76>>2]=b;b=_(4,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;J[b>>2]=c;J[699344]=0;J[e+80>>2]=b;b=_(4,4)| +0;c=J[699344];J[699344]=0;if((c|0)==1)break u;J[b>>2]=0;J[e+84>>2]=b;x:{if(!i)break x;b=J[e+60>>2];if(!b|K[b+2|0]>6)break x;H[b+2|0]=7}J[699344]=0;b=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break q}d=Z()|0;break j}d=Z()|0;break i}d=Z()|0;break j}y:{z:{A:{if(H[e+27|0]>=0){c=J[e+20>>2];J[b>>2]=J[e+16>>2];J[b+4>>2]=c;J[b+8>>2]=J[e+24>>2];break A}J[699344]=0;ca(15,b|0,J[e+16>>2],J[e+20>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break z}J[e+28>>2]=b;b=J[a+12>>2];c=J[J[b>>2]+136>>2];J[699344]=0;b=ga(c| +0,b|0,e+28|0,1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;H[a+28|0]=J[b+40>>2]!=0;H[a+29|0]=J[b+44>>2]!=0;c=a+16|0;if((c|0)==(b|0))break l;f=K[b+11|0];d=f<<24>>24;if(H[a+27|0]>=0){if((d|0)<0)break y;d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break l}h=J[b>>2];i=J[b+4>>2];J[699344]=0;l=b;b=(d|0)<0;ga(1630,c|0,(b?h:l)|0,(b?i:f)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;break l}d=Z()|0;uc(b);break j}d=J[b+4>>2];b=J[b>>2];J[699344]=0;ga(1631,c|0,b|0,d|0)|0;b=J[699344];J[699344]= +0;if((b|0)!=1)break l;break k}d=Z()|0;break h}H[g+56|0]=K[a+28|0];H[g+57|0]=K[a+29|0];b=e+192|0;B:{if((b|0)==(c|0))break B;f=K[a+27|0];d=f<<24>>24;if(H[g+55|0]>=0){if((d|0)>=0){d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;J[b+8>>2]=J[c+8>>2];break B}c=J[a+20>>2];d=J[a+16>>2];J[699344]=0;ga(1631,b|0,d|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break B;break k}h=J[a+20>>2];i=J[a+16>>2];J[699344]=0;l=b;b=(d|0)<0;ga(1630,l|0,(b?i:c)|0,(b?h:f)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k}J[699344]=0; +da(6624,a|0,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;if(H[e+27|0]<0)uc(J[e+16>>2]);bp(e+28|0);if(H[g+55|0]<0)uc(J[e+192>>2]);a=J[e+176>>2];if(a){J[e+180>>2]=a;uc(a)}if(H[e+159|0]>=0)break b;uc(J[g>>2]);break b}d=Z()|0}if(H[e+27|0]>=0)break i;uc(J[e+16>>2])}bp(e+28|0)}if(H[e+203|0]<0)uc(J[e+192>>2]);a=J[e+176>>2];if(a){J[e+180>>2]=a;uc(a)}if(H[e+159|0]<0)uc(J[e+148>>2]);ba(d|0);B()}fc=e+208|0}function Yaa(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;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:switch(J[a+60>>2]){case 0:if(!J[a+36>>2]){d=J[a+20>>2];c=J[a+24>>2];f=J[(J[a+76>>2]+(d<<4)|0)+12>>2]+(c<<4)|0;h=J[a+28>>2];break l}J[a+32>>2]=0;J[a+36>>2]=0;break c;case 1:if(!J[a+36>>2]){b=J[a+20>>2];c=J[a+24>>2];f=J[(J[a+76>>2]+(b<<4)|0)+12>>2]+(c<<4)|0;h=J[a+28>>2];break k}J[a+36>>2]=0;c=J[a+40>>2];break d;case 2:if(!J[a+36>>2]){n=J[a+32>>2];break j}J[a+104>>2]=0;J[a+108>>2]=0;J[a+36>>2]=0;k=J[a+72>>2];if((k|0)>0){o=J[a+76>>2];while(1){c= +o+(f<<4)|0;e=J[c+8>>2];if((e|0)>0){q=J[c+4>>2];l=J[c>>2];p=J[c+12>>2];c=0;while(1){j=e+(c^-1)|0;r=p+(c<<4)|0;i=q<>2];b=b?(b|0)>(i|0)?i:b:i;i=l<>2];d=d?(d|0)>(i|0)?i:d:i;c=c+1|0;if((e|0)!=(c|0))continue;break}J[a+108>>2]=b;J[a+104>>2]=d}f=f+1|0;if((k|0)!=(f|0))continue;break}}d=J[a+40>>2];b=0;break e;case 3:if(!J[a+36>>2]){f=J[a+20>>2];h=J[a+76>>2]+(f<<4)|0;s=J[a+32>>2];break i}J[a+104>>2]=0;J[a+108>>2]=0;J[a+36>>2]=0;o=J[a+72>>2];if((o|0)>0){q=J[a+76>>2];while(1){c=q+(g<<4)|0;e=J[c+ +8>>2];if((e|0)>0){l=J[c+4>>2];p=J[c>>2];r=J[c+12>>2];c=0;while(1){m=e+(c^-1)|0;j=r+(c<<4)|0;k=l<>2];b=b?(b|0)>(k|0)?k:b:k;k=p<>2];d=d?(d|0)>(k|0)?k:d:k;c=c+1|0;if((e|0)!=(c|0))continue;break}J[a+108>>2]=b;J[a+104>>2]=d}g=g+1|0;if((o|0)!=(g|0))continue;break}}d=J[a+84>>2];b=0;break f;case 4:break m;default:break a}if(!J[a+36>>2]){h=J[a+20>>2];f=J[a+76>>2]+(h<<4)|0;n=J[a+32>>2];break h}J[a+36>>2]=0;h=J[a+44>>2];b=0;break g}b=1;break c}d=1;break d}b=1;break e}b=1;break f}b=1}n:while(1){o:{if(!b){J[a+ +20>>2]=h;if(J[a+56>>2]<=(h|0))break a;J[a+104>>2]=0;J[a+108>>2]=0;f=J[a+76>>2]+(h<<4)|0;e=J[f+8>>2];if((e|0)>0){k=J[f+4>>2];o=J[f+12>>2];q=J[f>>2];b=0;d=0;c=0;while(1){p=e+(c^-1)|0;l=o+(c<<4)|0;i=k<>2];b=b?(b|0)>(i|0)?i:b:i;i=q<>2];d=d?(d|0)>(i|0)?i:d:i;c=c+1|0;if((e|0)!=(c|0))continue;break}J[a+108>>2]=b;J[a+104>>2]=d}d=J[a+84>>2];b=0;break o}n=n+1|0;J[a+32>>2]=n;b=1}p:while(1){q:{r:{if(!b){J[a+100>>2]=d;if(J[a+92>>2]<=(d|0))break r;s=J[a+80>>2];b=0;break q}if(J[a+48>>2]<=(n|0)){g= +J[a+24>>2];b=1;break q}e=(((J[a>>2]+(P(J[a+4>>2],n)<<1)|0)+(P(J[a+8>>2],J[a+24>>2])<<1)|0)+(P(J[a+12>>2],h)<<1)|0)+(P(J[a+16>>2],J[a+28>>2])<<1)|0;if(!L[e>>1])break b;b=1;continue n}h=h+1|0;b=0;continue n}while(1){s:{t:{u:{v:{if(!b){J[a+96>>2]=s;if(J[a+88>>2]<=(s|0))break u;g=J[a+40>>2];break v}g=g+1|0}J[a+24>>2]=g;b=J[f+8>>2];c=J[a+52>>2];if((((b|0)<(c|0)?b:c)|0)>(g|0)){o=J[a+96>>2];e=J[f>>2];b=b+(g^-1)|0;w=g<<4;t=J[f+12>>2];j=w+t|0;q=J[j>>2];l=b+q|0;if((o|0)%(e<>2];c=u<>2]|0)/(c|0)|0;e=e<>2]|0)/(e|0)|0;v=J[a+84>>2];i=(v+p|0)/(c|0)|0;m=J[a+80>>2];k=(m+r|0)/(e|0)|0;j=J[j+4>>2];z=j+b|0;l=-1<>2];if((m|0)%(u<>2];if(!b)break s;n=0;J[a+32>>2]=0;J[a+28>>2]=(((o+r|0)/(e|0)>>q)-(k>>q)|0)+P(b,((m+p|0)/(c|0)>>j)-(i>>j)|0);b=1;continue p}b=J[a+96>>2];c=J[a+104>>2];s=b+c-(b|0)%(c|0)|0;break t}b=J[a+100>>2];d= +J[a+108>>2];d=b+d-(b|0)%(d|0)|0;b=0;continue p}b=0;continue}b=1;continue}}}}w:while(1){x:{if(!b){J[a+100>>2]=d;if(J[a+92>>2]<=(d|0))break a;i=J[a+80>>2];b=0;break x}s=s+1|0;J[a+32>>2]=s;b=1}y:while(1){z:{A:{if(!b){J[a+96>>2]=i;if(J[a+88>>2]<=(i|0))break A;f=J[a+44>>2];b=0;break z}if(J[a+48>>2]<=(s|0)){n=J[a+24>>2];b=1;break z}e=(((J[a>>2]+(P(J[a+4>>2],s)<<1)|0)+(P(J[a+8>>2],J[a+24>>2])<<1)|0)+(P(J[a+12>>2],f)<<1)|0)+(P(J[a+16>>2],J[a+28>>2])<<1)|0;if(!L[e>>1])break b;b=1;continue w}b=J[a+100>>2]; +d=J[a+108>>2];d=b+d-(b|0)%(d|0)|0;b=0;continue w}while(1){B:{C:{D:{E:{if(!b){J[a+20>>2]=f;if(J[a+56>>2]<=(f|0))break D;n=J[a+40>>2];J[a+24>>2]=n;h=J[a+76>>2]+(f<<4)|0;break E}n=n+1|0;J[a+24>>2]=n}b=J[h+8>>2];g=J[a+52>>2];if((((b|0)<(g|0)?b:g)|0)>(n|0)){o=J[a+96>>2];c=J[h>>2];b=b+(n^-1)|0;w=n<<4;t=J[h+12>>2];j=w+t|0;q=J[j>>2];l=b+q|0;if((o|0)%(c<>2];g=u<>2]|0)/(g|0)|0;c=c<>2]|0)/(c|0)|0;v=J[a+84>>2];e=(v+p|0)/(g|0)|0;m=J[a+80>>2]; +k=(m+r|0)/(c|0)|0;j=J[j+4>>2];z=j+b|0;l=-1<>2];if((m|0)%(u<>2];if(!b)break B;s=0;J[a+32>>2]=0;J[a+28>>2]=(((o+r|0)/(c|0)>>q)-(k>>q)|0)+P(b,((m+p|0)/(g|0)>>j)-(e>>j)|0);b=1;continue y}f=f+1|0;break C}b=J[a+96>>2];g=J[a+104>>2];i=b+g-(b|0)%(g|0)|0;b=0;continue y}b=0;continue}b=1;continue}}}}F:while(1){G:{if(!b){J[a+24>>2]=d;if(J[a+52>>2]<=(d|0))break a;s=J[a+84>>2];b=0;break G}n= +n+1|0;J[a+32>>2]=n;b=1}H:while(1){I:{J:{if(!b){J[a+100>>2]=s;if(J[a+92>>2]<=(s|0))break J;g=J[a+80>>2];b=0;break I}if(J[a+48>>2]<=(n|0)){h=J[a+20>>2];b=1;break I}e=(((J[a>>2]+(P(J[a+4>>2],n)<<1)|0)+(P(J[a+8>>2],J[a+24>>2])<<1)|0)+(P(J[a+12>>2],J[a+20>>2])<<1)|0)+(P(J[a+16>>2],J[a+28>>2])<<1)|0;if(!L[e>>1])break b;b=1;continue F}d=J[a+24>>2]+1|0;b=0;continue F}while(1){K:{L:{M:{N:{if(!b){J[a+96>>2]=g;if(J[a+88>>2]<=(g|0))break M;h=J[a+44>>2];break N}h=h+1|0}J[a+20>>2]=h;if(J[a+56>>2]>(h|0)){c=J[a+ +24>>2];f=J[a+76>>2]+(h<<4)|0;b=J[f+8>>2];if((c|0)>=(b|0))break K;o=J[a+96>>2];e=J[f>>2];b=b+(c^-1)|0;c=c<<4;t=J[f+12>>2];j=c+t|0;q=J[j>>2];l=b+q|0;if((o|0)%(e<>2];f=u<>2]|0)/(f|0)|0;e=e<>2]|0)/(e|0)|0;v=J[a+84>>2];i=(v+p|0)/(f|0)|0;m=J[a+80>>2];k=(m+r|0)/(e|0)|0;j=J[j+4>>2];z=j+b|0;l=-1<>2];if((m|0)%(u<>2]; +if(!b)break K;n=0;J[a+32>>2]=0;J[a+28>>2]=(((o+r|0)/(e|0)>>q)-(k>>q)|0)+P(b,((m+p|0)/(f|0)>>j)-(i>>j)|0);b=1;continue H}b=J[a+96>>2];g=J[a+104>>2];g=b+g-(b|0)%(g|0)|0;break L}b=J[a+100>>2];c=J[a+108>>2];s=b+c-(b|0)%(c|0)|0;b=0;continue H}b=0;continue}b=1;continue}}}}O:while(1){P:{if(!d){J[a+24>>2]=c;if(J[a+52>>2]<=(c|0))break a;g=0;d=0;break P}h=h+1|0;J[a+28>>2]=h;d=1}Q:while(1){R:{S:{T:{if(!d){J[a+32>>2]=g;if(J[a+48>>2]<=(g|0))break T;b=J[a+44>>2];d=0;break R}if((P(J[f+12>>2],J[f+8>>2])|0)<=(h|0))break S; +e=(((J[a>>2]+(P(J[a+4>>2],J[a+32>>2])<<1)|0)+(P(J[a+8>>2],c)<<1)|0)+(P(J[a+12>>2],b)<<1)|0)+(P(J[a+16>>2],h)<<1)|0;if(!L[e>>1])break b;d=1;continue O}c=c+1|0;d=0;continue O}d=1}while(1){U:{V:{W:{if(!d){J[a+20>>2]=b;if(J[a+56>>2]<=(b|0))break W;d=J[a+76>>2]+(b<<4)|0;if(J[d+8>>2]<=(c|0))break U;d=J[d+12>>2];h=0;J[a+28>>2]=0;f=(c<<4)+d|0;d=1;continue Q}b=b+1|0;break V}g=J[a+32>>2]+1|0;d=0;continue Q}d=0;continue}d=1;continue}}}}X:while(1){Y:{if(!b){if(J[a+48>>2]<=(g|0))break a;c=J[a+40>>2];b=0;break Y}h= +h+1|0;J[a+28>>2]=h;b=1}Z:while(1){_:{$:{aa:{if(!b){J[a+24>>2]=c;if(J[a+52>>2]<=(c|0))break aa;d=J[a+44>>2];b=0;break _}if((P(J[f+12>>2],J[f+8>>2])|0)<=(h|0))break $;e=(((J[a>>2]+(P(J[a+4>>2],J[a+32>>2])<<1)|0)+(P(J[a+8>>2],c)<<1)|0)+(P(J[a+12>>2],d)<<1)|0)+(P(J[a+16>>2],h)<<1)|0;if(!L[e>>1])break b;b=1;continue X}g=J[a+32>>2]+1|0;J[a+32>>2]=g;b=0;continue X}b=1}while(1){ba:{ca:{da:{if(!b){J[a+20>>2]=d;if(J[a+56>>2]<=(d|0))break da;b=J[a+76>>2]+(d<<4)|0;if(J[b+8>>2]<=(c|0))break ba;b=J[b+12>>2];h= +0;J[a+28>>2]=0;f=(c<<4)+b|0;b=1;continue Z}d=d+1|0;break ca}c=c+1|0;b=0;continue Z}b=0;continue}b=1;continue}}}}A=1;I[e>>1]=1}return A}function aga(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;m=fc-16|0;fc=m;h=J[a+584>>2];if(!K[h+206|0])vQ(a);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(!K[h+392|0]){f=J[a+584>>2];if(K[f+392|0])break q;g=J[a+56>>2];J[f+172>>2]=g;c=J[a+60>>2];J[f+176>>2]=c;r:{if(K[a+13|0]&4){g=J[a+68>>2];d=J[a+72>>2];e=(c+d|0)-1|0;e=e-((e>>>0)%(d>>> +0)|0)|0;break r}d=J[a+100>>2];e=c}J[f+188>>2]=e;J[f+184>>2]=d;J[f+180>>2]=g;e=L[a+98>>1];H[f+192|0]=e;s:{t:{u:{v:{e=e&255;switch(e-1|0){case 2:break t;case 0:break v;default:break u}}I[f+208>>1]=257;H[f+193|0]=0;H[f+194|0]=1;break s}a=J[a+628>>2];J[m>>2]=e;Uc(a,97120,89631,m);f=0;break d}H[f+193|0]=0;if(L[a+138>>1]==1){H[f+194|0]=3;break s}H[f+194|0]=1}if(c>>>0>d>>>0){e=K[f+209|0]<<3;c=(d>>>0)/(e>>>0)|0;if((P(c,e)|0)!=(d|0)){f=0;Uc(J[a+628>>2],97120,89692,0);break d}e=K[f+208|0]<<3;I[f+300>>1]=P(c, +((e+g|0)-1>>>0)/(e>>>0)|0)}if(!sQ(a)){f=0;break d}H[f+332|0]=1;H[f+392|0]=1;c=J[f+1128>>2];J[f+336>>2]=J[f+1124>>2];J[f+340>>2]=c;c=L[f+1148>>1];J[f+344>>2]=J[f+1136>>2]-c;J[f+348>>2]=c+J[f+1144>>2]}f=P(b,20);w:{if(K[(f+h|0)+332|0])break w;if(!b)break p;if(b>>>0>=3)break o;c=J[a+584>>2];if(!K[c+332|0])break n;if(K[(c+f|0)+332|0])break m;f=b;while(1){f=f-1|0;e=f&255;if(!K[(c+P(e,20)|0)+332|0])continue;break}H[c+193|0]=f;e=c+P(e,20)|0;J[c+1124>>2]=J[e+336>>2];J[c+1128>>2]=J[e+340>>2];g=J[e+344>>2]; +d=0;H[c+1140|0]=0;J[c+1136>>2]=g;e=J[e+348>>2];J[c+1152>>2]=0;I[c+1148>>1]=0;J[c+1144>>2]=e;if((f&255)>>>0>=b>>>0)break w;while(1){if(!(d&65535)){if(!ek(c)){f=0;break d}d=L[c+1148>>1];if(!d)break c}f=J[c+1152>>2];e=K[f|0];d=d-1|0;I[c+1148>>1]=d;f=f+1|0;J[c+1152>>2]=f;if((e|0)!=255)continue;while(1){if(!(d&65535)){if(!ek(c)){f=0;break d}d=L[c+1148>>1];if(!d)break c;f=J[c+1152>>2]}e=K[f|0];d=d-1|0;I[c+1148>>1]=d;f=f+1|0;J[c+1152>>2]=f;if((e|0)==255)continue;break}if((e|0)!=218)continue;H[c+193|0]=K[c+ +193|0]+1;if(!nQ(a)){f=0;break d}e=K[c+193|0];f=c+P(e,20)|0;H[f+332|0]=1;J[f+336>>2]=J[c+1124>>2];J[f+340>>2]=J[c+1128>>2];d=L[c+1148>>1];J[f+344>>2]=J[c+1136>>2]-d;J[f+348>>2]=J[c+1144>>2]+d;if(b>>>0>e>>>0)continue;break}}n=J[(K[a+13|0]&4?504:480)+a>>2];if(K[h+393|0]){if(L[h+394>>1]==(b|0)){c=J[h+396>>2];if(n>>>0>=c>>>0)break e}if(K[h+400|0]){c=J[a+584>>2];if(!K[c+400|0])break l;f=c+536|0;e=J[f+4>>2];if(e)kc[J[e+40>>2]](f);J[f+20>>2]=0;J[f+4>>2]=0;H[c+400|0]=0}H[h+393|0]=0}I[h+394>>1]=b;H[h+193|0]= +b;J[h+396>>2]=P(J[a+176>>2],b);x:{y:{if(!K[h+1140|0]){d=J[(P(b,20)+h|0)+344>>2];break y}d=J[(P(b,20)+h|0)+344>>2];if((d|0)==(J[h+1136>>2]-L[h+1148>>1]|0))break x}b=P(b,20)+h|0;J[h+1124>>2]=J[b+336>>2];f=J[b+340>>2];H[h+1140|0]=0;J[h+1136>>2]=d;J[h+1128>>2]=f;b=J[b+348>>2];J[h+1152>>2]=0;I[h+1148>>1]=0;J[h+1144>>2]=b}c=J[a+584>>2];if(K[c+400|0])break k;f=0;H[c+302|0]=0;J[c+3204>>2]=0;b=c+404|0;Bq(b);J[c+548>>2]=a;J[c+536>>2]=b;J[c+404>>2]=634;J[c+412>>2]=635;o=c+536|0;g=0;b=Dc(40);J[b>>2]=0;b=Hf(c+ +4|0,1,b,4);l=gc;d=0;z:{A:{while(1){if(d)break z;J[699344]=0;ca(71,o|0,80,488);d=J[699344];J[699344]=0;if((d|0)==1)break b;e=-1;B:{C:{if(!d)break C;i=J[699345];if(!i)break C;e=Pc(J[d>>2],b,l);if(!e)break B;gc=i}d=gc;if((e|0)!=1)break A;continue}break}break a}g=1}uc(b);if(!g)break d;H[c+400|0]=1;J[c+1048>>2]=636;J[c+1044>>2]=637;J[c+1040>>2]=638;J[c+1036>>2]=639;J[c+1032>>2]=640;J[c+1028>>2]=0;J[c+560>>2]=c+1024;g=0;b=Dc(40);J[b>>2]=0;b=Hf(c+4|0,1,b,4);l=gc;d=0;D:{E:{while(1){if(d)break D;J[699344]= +0;aa(72,o|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;e=-1;F:{G:{if(!d)break G;i=J[699345];if(!i)break G;e=Pc(J[d>>2],b,l);if(!e)break F;gc=i}d=gc;if((e|0)!=1)break E;continue}break}break a}g=1}uc(b);if(!g)break d;b=K[c+194|0];if(!(K[c+210|0]|b>>>0<2)){H[c+401|0]=0;J[c+612>>2]=0;J[c+604>>2]=1;if(K[c+1052|0])break f;if(J[c+1084>>2])break j;if(J[c+1104>>2])break i;J[c+1068>>2]=8;e=K[c+209|0]<<3;J[c+1060>>2]=e;d=K[c+208|0];b=d<<3;g=(b+J[c+180>>2]|0)-1|0;b=g-((g>>>0)%(b>>>0)|0)|0;J[c+1056>>2]= +b;e=P(b,e);J[c+1072>>2]=e;b=(b>>>0)/(d>>>0)|0;J[c+1064>>2]=b;J[c+1076>>2]=b<<3;b=e+(b<<4)|0;J[c+1080>>2]=b;b=Dc(b);J[c+1084>>2]=b;if(!b){Uc(J[a+628>>2],97200,82424,0);break d}J[c+1088>>2]=b;b=b+J[c+1072>>2]|0;J[c+1092>>2]=b;J[c+1096>>2]=b+J[c+1076>>2];b=(J[c+1060>>2]+(J[c+1068>>2]<<1)|0)+3|0;J[c+1100>>2]=b;b=Dc(b<<2);J[c+1104>>2]=b;if(!b){Uc(J[a+628>>2],97200,82424,0);break d}d=b+12|0;J[b>>2]=d;e=J[c+1060>>2];g=e<<2;J[b+4>>2]=(g+J[c+1104>>2]|0)+12;i=J[c+1068>>2];J[b+8>>2]=((g+J[c+1104>>2]|0)+(i<< +2)|0)+12;if(!e)break g;l=e&3;b=J[c+1056>>2];if(e>>>0<4){g=0;break h}e=e&-4;g=0;while(1){J[d>>2]=J[c+1088>>2]+P(b,g);J[d+4>>2]=J[c+1088>>2]+P(b,g|1);J[d+8>>2]=J[c+1088>>2]+P(b,g|2);J[d+12>>2]=J[c+1088>>2]+P(b,g|3);g=g+4|0;d=d+16|0;j=j+4|0;if((e|0)!=(j|0))continue;break}break h}H[c+401|0]=1;J[c+576>>2]=0;J[c+580>>2]=0;J[c+1120>>2]=J[c+184>>2];J[c+1116>>2]=P(b,J[c+180>>2]);break f}fa(89594,70472,994,97120);B()}fa(89775,70472,1055,97140);B()}fa(89791,70472,1056,97140);B()}fa(89810,70472,1057,97140);B()}fa(89839, +70472,1058,97140);B()}fa(89868,70472,1196,97162);B()}fa(89907,70472,1107,97200);B()}fa(89950,70472,1136,97200);B()}fa(89995,70472,1137,97200);B()}if(!l)break g;while(1){J[d>>2]=J[c+1088>>2]+P(b,g);g=g+1|0;d=d+4|0;k=k+1|0;if((l|0)!=(k|0))continue;break}}H:{if(!i)break H;g=i&3;e=J[c+1064>>2];k=0;I:{if(i>>>0<4){b=0;break I}l=i&-4;b=0;j=0;while(1){J[d>>2]=J[c+1092>>2]+P(b,e);J[d+4>>2]=J[c+1092>>2]+P(e,b|1);J[d+8>>2]=J[c+1092>>2]+P(e,b|2);J[d+12>>2]=J[c+1092>>2]+P(e,b|3);b=b+4|0;d=d+16|0;j=j+4|0;if((l| +0)!=(j|0))continue;break}}if(g)while(1){J[d>>2]=J[c+1092>>2]+P(b,e);b=b+1|0;d=d+4|0;k=k+1|0;if((g|0)!=(k|0))continue;break}g=i&3;k=0;J:{if(i>>>0<4){b=0;break J}i=i&-4;b=0;j=0;while(1){J[d>>2]=J[c+1096>>2]+P(b,e);J[d+4>>2]=J[c+1096>>2]+P(e,b|1);J[d+8>>2]=J[c+1096>>2]+P(e,b|2);J[d+12>>2]=J[c+1096>>2]+P(e,b|3);b=b+4|0;d=d+16|0;j=j+4|0;if((i|0)!=(j|0))continue;break}}if(!g)break H;while(1){J[d>>2]=J[c+1096>>2]+P(b,e);b=b+1|0;d=d+4|0;k=k+1|0;if((g|0)!=(k|0))continue;break}}J[c+1112>>2]=0;H[c+1052|0]=1; +b=K[c+208|0];d=((b+J[c+180>>2]|0)-1>>>0)/(b>>>0)|0;J[c+1108>>2]=d;e=K[c+209|0];J[c+1120>>2]=((e+J[c+184>>2]|0)-1>>>0)/(e>>>0);J[c+1116>>2]=P(d,P(b,e)+2|0)}g=0;b=Dc(40);J[b>>2]=0;b=Hf(c+4|0,1,b,4);j=gc;d=0;K:{L:{while(1){if(d)break K;J[699344]=0;_(77,o|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;e=-1;M:{N:{if(!d)break N;i=J[699345];if(!i)break N;e=Pc(J[d>>2],b,j);if(!e)break M;gc=i}d=gc;if((e|0)!=1)break L;continue}break}break a}g=1}uc(b);if(!g)break d;H[c+393|0]=1;c=J[h+396>>2]}f=1;if(c>>>0>= +n>>>0)break d;while(1){b=J[a+584>>2];O:{P:{if(!K[h+401|0]){f=J[b+1068>>2];d=J[b+1120>>2];c=J[b+1112>>2];if(c){e=f-c|0;if(e>>>0>=d>>>0){c=c+d|0;d=(c|0)!=(f|0)?c:0;break P}J[b+1112>>2]=0;d=d-e|0}if(d>>>0>=f>>>0){f=b+536|0;while(1){if(!zF(b,f,J[b+1104>>2],K[b+209|0]<<3)){f=0;break d}c=J[b+1068>>2];d=d-c|0;if(d>>>0>=c>>>0)continue;break}}if(!d)break O;if(zF(b,b+536|0,J[b+1104>>2],K[b+209|0]<<3))break P;f=0;break d}Q:{if(J[b+5256>>2])break Q;f=Dc(J[b+1116>>2]);J[b+5256>>2]=f;if(f)break Q;f=0;Uc(J[a+628>> +2],97312,82424,0);break d}if(!J[b+1120>>2])break O;c=b+5256|0;e=b+536|0;f=0;d=0;while(1){if(!aQ(b,e,c))break d;d=d+1|0;if(d>>>0>2])continue;break}break O}J[b+1112>>2]=d}f=1;b=J[h+396>>2]+1|0;J[h+396>>2]=b;if(b>>>0>>0)continue;break}}fc=m+16|0;return f|0}fa(80397,70472,1949,96717);B()}a=Z()|0;uc(b);ba(a|0);B()}uc(b);nf(d,i);B()}function KW(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;g=fc-128|0;fc=g;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!K[b+89|0]){a= +Qc(g+92|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break n;b=Z()|0;Kc(a);ba(b|0);B()}l=si();i=Cm(g+92|0);J[699344]=0;f=g+56|0;ca(5400,f|0,b|0,c|0);e=J[699344];J[699344]=0;o:{p:{if((e|0)!=1){J[699344]=0;aa(5253,i|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break p;J[g+80>>2]=2392964;J[g+56>>2]=2392932;f=J[g+84>>2];if(f){e=J[f+4>>2]-1|0;J[f+4>>2]=e;if(!e)kc[J[J[f>>2]+4>>2]](f);J[g+84>>2]=0}J[g+72>>2]=2392964;f=J[g+76>>2];if(f){e=J[f+4>>2]-1|0;J[f+4>> +2]=e;if(!e)kc[J[J[f>>2]+4>>2]](f);J[g+76>>2]=0}wc(g- -64|0);q:{f=J[i+8>>2];r:{s:{if(!f|!J[f+8>>2])break s;J[699344]=0;f=g+56|0;ca(5401,f|0,i|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break r;e=J[g+56>>2];if(!e){wc(f);break s}f=J[e+8>>2];wc(g+56|0);if(f)break m}J[699344]=0;f=J[b+92>>2];e=J[699344];J[699344]=0;if((e|0)==1)break r;if(!(f&24))break q;J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break l}b=Z()|0;break b}J[g+52>>2]=0;t:{u:{v:{w:{x:{y:{z:{if(!J[b+100>>2])break z; +J[699344]=0;f=g+36|0;ca(5401,f|0,b+8|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break u;J[699344]=0;h=g+44|0;ca(5291,h|0,f|0,2400465);f=J[699344];J[699344]=0;A:{B:{C:{D:{E:{F:{G:{H:{I:{if((f|0)!=1){J[699344]=0;e=aa(5290,g+28|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break I;J[699344]=0;f=g+56|0;ca(5292,f|0,h|0,e|0);h=J[699344];J[699344]=0;if((h|0)==1)break H;J[699344]=0;h=g+20|0;ca(5412,h|0,l|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break G;J[699344]=0;aa(5153,g+52|0,h|0)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break F;f=J[g+20>>2];J[g+20>>2]=0;if(!f)break A;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;j=J[699344];J[699344]=0;if((j|0)!=1){if(h)break A;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break A}break a}b=Z()|0;break B}b=Z()|0;break C}b=Z()|0;break D}b=Z()|0;break E}b=Z()|0;zc(g+20|0)}wc(g+56|0)}wc(e)}wc(g+44|0)}wc(g+36|0);break c}wc(g+56|0);wc(e);f=g+44|0;wc(f);wc(g+36|0);e=J[g+52>>2];if(!e)break z;J[699344]=0;f=aa(5149,f|0,2389819)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d; +h=J[J[e>>2]+8>>2];J[699344]=0;e=aa(h|0,e|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;wc(f);if(e)break y}J[699344]=0;f=aa(5149,g+36|0,2402728)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;J[699344]=0;e=aa(5290,g+20|0,c|0)|0;h=J[699344];J[699344]=0;J:{if((h|0)!=1){J[699344]=0;aa(5340,f|0,e|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break g;wc(e);J[699344]=0;aa(5355,f|0,2402892)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;e=g+56|0;ca(5378,e|0,b|0,f|0);h=J[699344];J[699344]=0;if((h| +0)==1)break i;J[699344]=0;aa(5253,i|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;J[g+80>>2]=2392964;J[g+56>>2]=2392932;e=J[g+84>>2];if(e){h=J[e+4>>2]-1|0;J[e+4>>2]=h;if(!h)kc[J[J[e>>2]+4>>2]](e);J[g+84>>2]=0}J[g+72>>2]=2392964;e=J[g+76>>2];if(e){h=J[e+4>>2]-1|0;J[e+4>>2]=h;if(!h)kc[J[J[e>>2]+4>>2]](e);J[g+76>>2]=0}wc(g- -64|0);K:{L:{h=J[b+136>>2];M:{if(h)while(1){e=0;N:{O:{P:{j=J[h+8>>2];if(j){J[699344]=0;J[j+4>>2]=J[j+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break P;e=J[h+8>>2]}J[699344]= +0;J[g+56>>2]=e;j=aa(5236,e+24|0,i|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break O;e=J[g+56>>2];if(!j)break N;c=J[e+60>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break O;c=J[e+60>>2]}else c=0;J[a>>2]=c;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;h=J[699344];J[699344]=0;if((h|0)!=1){if(c)break M;J[699344]=0;$(5147,e|0);c=J[699344];J[699344]=0;if((c|0)!=1)break M}break a}b=Z()|0;wc(f);break c}b=Z()|0;zc(g+56|0);wc(f);break c}Q:{if(!e)break Q;J[699344]=0;j=J[e+4>>2]- +1|0;J[e+4>>2]=j;k=J[699344];J[699344]=0;if((k|0)==1)break a;if(j)break Q;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}h=J[h>>2];if(h)continue;break}J[699344]=0;e=_(4,68)|0;h=J[699344];J[699344]=0;R:{S:{T:{U:{V:{if((h|0)!=1){J[699344]=0;h=aa(5290,g+56|0,0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break V;J[699344]=0;J[g+12>>2]=0;k=g+12|0;aa(5145,k|0,0)|0;m=J[699344];J[699344]=0;j=1;if((m|0)==1)break U;J[699344]=0;c=ja(5413,e|0,1,h|0,c|0,i|0,k|0)|0;k=J[699344];J[699344]=0;if((k| +0)==1)break T;j=0;J[699344]=0;J[g+16>>2]=0;aa(5145,g+16|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break T;c=J[g+12>>2];J[g+12>>2]=0;W:{if(!c)break W;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(e)break W;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}wc(h);J[699344]=0;c=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break L;J[c>>2]=0;J[c+4>>2]=0;e=J[g+16>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break L; +e=J[g+16>>2]}else e=0;J[c+8>>2]=e;J[699344]=0;vf(b+128|0,c);c=J[699344];J[699344]=0;if((c|0)==1)break L;J[699344]=0;J[g+8>>2]=0;c=g+8|0;aa(5145,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break L;e=K[b+88|0];h=J[b+84>>2];J[699344]=0;ma(5414,a|0,i|0,c|0,h|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break S;c=J[g+8>>2];J[g+8>>2]=0;X:{if(!c)break X;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break X;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c| +0)==1)break a}J[699344]=0;aa(5153,J[g+16>>2]+60|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break R;b=Z()|0;zc(a);break K}b=Z()|0;wc(f);break c}b=Z()|0;uc(e);wc(f);break c}b=Z()|0;wc(h);uc(e);wc(f);break c}b=Z()|0;zc(g+12|0);wc(h);if(!j)break J;uc(e);wc(f);break c}b=Z()|0;zc(g+8|0);break K}c=J[g+16>>2];J[g+16>>2]=0;if(!c)break M;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break o;if(e)break M;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break o}wc(f); +c=1;break x}b=Z()|0}zc(g+16|0);wc(f);break c}b=Z()|0}wc(f);break c}J[699344]=0;c=aa(5151,g+56|0,J[g+52>>2]+72|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break w;J[699344]=0;aa(5253,i|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break v;J[c+24>>2]=2392964;J[c>>2]=2392932;f=J[c+28>>2];if(f){e=J[f+4>>2]-1|0;J[f+4>>2]=e;if(!e)kc[J[J[f>>2]+4>>2]](f);J[c+28>>2]=0}J[c+16>>2]=2392964;f=J[c+20>>2];if(f){e=J[f+4>>2]-1|0;J[f+4>>2]=e;if(!e)kc[J[J[f>>2]+4>>2]](f);J[c+20>>2]=0}wc(c+8|0);c=0}f=J[g+52>>2];J[g+52>> +2]=0;if(!f)break t;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)!=1){if(e)break t;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break t}break a}b=Z()|0;break c}b=Z()|0;Ed(c);break c}b=Z()|0;break c}if(!c)break m;break l}b=Z()|0;break b}b=Z()|0;Ed(g+56|0);break b}break a}B()}c=J[J[b>>2]+84>>2];J[699344]=0;ia(c|0,a|0,b|0,i|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break k;c=J[a>>2];if(!c)break l;J[699344]=0;ca(5415,l|0,c|0,b|0);b=J[699344];J[699344]=0;if((b| +0)!=1)break l;b=Z()|0;zc(a);break b}J[i+24>>2]=2392964;J[i>>2]=2392932;a=J[i+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[i+28>>2]=0}J[i+16>>2]=2392964;a=J[i+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[i+20>>2]=0}wc(i+8|0);fc=g+128|0;return}b=Z()|0;break b}b=Z()|0;Ed(g+56|0);wc(f);break c}b=Z()|0;wc(f);break c}b=Z()|0;wc(f);break c}b=Z()|0;wc(e);wc(f);break c}b=Z()|0;break c}b=Z()|0;wc(f);break c}b=Z()|0}zc(g+52|0)}Ed(i);ba(b|0);B()}ea(0)|0;Bc(); +B()}function YPa(a){a=a|0;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;J[a+144>>2]=0;b=J[a+8>>2];kc[J[J[b>>2]+20>>2]](b);h=fc-16|0;fc=h;J[a+32>>2]=0;b=J[a+8>>2];a:{if((kc[J[J[b>>2]+32>>2]](b)|0)!=255){if(!IB(a,h+12|0,h+8|0,h+4|0))break a;b:{while(1){c:{d:{e:{f:{g:{h:{i:{j:{k:{b=J[h+12>>2];if((b|0)<=1768449137){if((b|0)<=1668112751){if((b|0)==1651532643)break k;if((b|0)!=1667523942)break f;b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)!=-1){b=J[a+8>>2];b=kc[J[J[b>>2]+28>> +2]](b)|0;if((b|0)!=-1)break h}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,777607,0);c=2;break a}if((b|0)==1668112752)break i;if((b|0)!=1668246642)break f;g=J[h+4>>2];d=fc-48|0;fc=d;l:{m:{n:{b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;o:{if((c|0)==-1)break o;J[d+8>>2]=c;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break o;J[d+12>>2]=b&128?b|-256:b;b=J[a+8>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break o;e=1;p:switch(c-1|0){case 0:b=J[a+8>>2];f=kc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break o;b=J[a+8>>2];e=kc[J[J[b>> +2]+28>>2]](b)|0;if((e|0)==-1)break o;b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break o;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break o;b=b|(e<<16|f<<24|c<<8);J[d+16>>2]=b;if(b>>>0>24)break o;if(1<>>0<4)break l;c=J[a+8>>2];b=g-3|0;if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))break l}e=0;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,784574,0);break l}J[d+44>>2]=4470064;J[d+36>>2]=255;J[d+40>>2]=96;J[d+28>>2]=255;J[d+32>>2]=128;J[d+20>>2]=100;J[d+24>>2]=0}if(J[a+76>>2]){e=1;if(J[d+12>>2]<=J[a+40>>2])break l}b=J[d+12>>2];J[a+36>>2]=J[d+8>>2];J[a+40>>2]=b;b=J[d+44>>2];J[a+68>>2]=J[d+40>>2];J[a+72>>2]=b;b=J[d+36>>2];J[a+60>>2]=J[d+32>>2];J[a+64>>2]=b;b=J[d+28>>2];J[a+52>>2]=J[d+24>>2];J[a+56>> +2]=b;b=J[d+20>>2];J[a+44>>2]=J[d+16>>2];J[a+48>>2]=b;e=1;J[a+76>>2]=1}fc=d+48|0;if(e)break c;c=2;break a}q:switch(b-1785737827|0){case 5:break c;case 1:case 2:case 3:case 4:break f;case 0:break g;default:break q}if((b|0)==1885564018)break j;if((b|0)!=1768449138)break f;r:{b=J[a+8>>2];n=kc[J[J[b>>2]+28>>2]](b)|0;s:{if((n|0)==-1)break s;b=J[a+8>>2];o=kc[J[J[b>>2]+28>>2]](b)|0;if((o|0)==-1)break s;b=J[a+8>>2];i=kc[J[J[b>>2]+28>>2]](b)|0;if((i|0)==-1)break s;b=J[a+8>>2];j=kc[J[J[b>>2]+28>>2]](b)|0;if((j| +0)==-1)break s;b=J[a+8>>2];k=kc[J[J[b>>2]+28>>2]](b)|0;if((k|0)==-1)break s;b=J[a+8>>2];m=kc[J[J[b>>2]+28>>2]](b)|0;if((m|0)==-1)break s;b=J[a+8>>2];l=kc[J[J[b>>2]+28>>2]](b)|0;if((l|0)==-1)break s;b=J[a+8>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break s;b=J[a+8>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break s;b=J[a+8>>2];f=kc[J[J[b>>2]+28>>2]](b)|0;if((f|0)==-1)break s;b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break s;b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break s; +b=J[a+8>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)==-1)break s;b=J[a+8>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)!=-1)break r}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,777607,0);c=2;break a}if((c|0)!=7){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,778682,0);c=2;break a}J[a+20>>2]=d|(m<<16|k<<24|l<<8);J[a+24>>2]=j|(o<<16|n<<24|i<<8);b=f|g<<8;J[a+12>>2]=b;b=Gd(b,4);J[a+16>>2]=b;c=0;if(J[a+12>>2])while(1){J[b+(c<<2)>>2]=e;c=c+1|0;if(c>>>0>2])continue;break}J[a+32>>2]=1;break c}if(!J[a+32>>2]){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,779969,0); +c=2;break a}b=J[h+4>>2];if((b|0)!=J[a+12>>2])break e;c=0;if(!b)break c;while(1){e=J[a+16>>2];b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,777607,0);c=2;break a}J[(c<<2)+e>>2]=b;c=c+1|0;if(c>>>0>2])continue;break}break c}t:{b=J[a+8>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;u:{if((c|0)==-1)break u;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break u;J[a+80>>2]=b|c<<8;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=-1)break t}Cc(1,kc[J[J[a>>2]+52>>2]](a)| +0,777607,0);c=2;break a}J[a+96>>2]=1;J[a+84>>2]=b;q=a,r=Gd(b,4),J[q+88>>2]=r;q=a,r=Gd(P(J[a+84>>2],J[a+80>>2]),4),J[q+92>>2]=r;if(!J[a+84>>2])break c;i=J[a+88>>2];c=0;while(1){b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if((e|0)!=-1){b=c<<2;J[b+i>>2]=e;i=J[a+88>>2];b=b+i|0;J[b>>2]=J[b>>2]+1;c=c+1|0;j=J[a+84>>2];if(c>>>0>>0)continue;break d}break}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,777607,0);c=2;break a}J[a+116>>2]=1;b=J[h+4>>2]>>>2|0;J[a+100>>2]=b;q=a,r=Gd(b,4),J[q+104>>2]=r;q=a,r=Gd(J[a+100>>2],4),J[q+ +108>>2]=r;q=a,r=Gd(J[a+100>>2],4),J[q+112>>2]=r;c=0;if(!J[a+100>>2])break c;while(1){f=J[a+104>>2];v:{b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;w:{if((e|0)==-1)break w;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break w;d=f;f=c<<2;J[d+f>>2]=b|e<<8;e=J[a+108>>2];b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break w;J[e+f>>2]=b;e=J[a+112>>2];b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=-1)break v}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,777607,0);c=2;break a}J[e+f>>2]=b;c=c+1|0;if(c>>>0>2])continue;break}break c}J[a+136>>2]=1;b=b|c<<8;J[a+120>>2]=b;q=a,r=Gd(b,4),J[q+124>>2]=r;q=a,r=Gd(J[a+120>>2],4),J[q+128>>2]=r;q=a,r=Gd(J[a+120>>2],4),J[q+132>>2]=r;c=0;if(!J[a+120>>2])break c;while(1){f=J[a+124>>2];x:{b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;y:{if((e|0)==-1)break y;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break y;g=c<<2;J[g+f>>2]=b|e<<8;f=J[a+128>>2];b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break y;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break y; +J[f+g>>2]=b|e<<8;f=J[a+132>>2];b=J[a+8>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if((e|0)==-1)break y;b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)!=-1)break x}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,777607,0);c=2;break a}J[f+g>>2]=b|e<<8;c=c+1|0;if(c>>>0>2])continue;break}break c}if(!J[a+16>>2])Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,782040,0);if(!J[a+76>>2])Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783471,0);p=1;c=N_(a);if(c)break a;break c}c=J[a+8>>2];b=J[h+4>>2];if((kc[J[J[c>>2]+48>>2]](c,b)|0)==(b|0))break c;Cc(1,kc[J[J[a>> +2]+52>>2]](a)|0,777607,0);c=p?1:2;break a}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,781123,0);c=2;break a}c=J[a+80>>2];if(!c)break c;i=0;if(!j)break c;while(1){k=0;z:{if(!j){j=0;break z}while(1){d=J[a+92>>2];g=k<<2;f=J[g+J[a+88>>2]>>2];b=f&127;m=b+7|0;c=0;if(b){e=m>>>3|0;l=0;while(1){b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break b;c=b+(c<<8)|0;l=l+1|0;if((e|0)!=(l|0))continue;break}}e=g+((P(i,j)<<2)+d|0)|0;A:{if(!(f&128))break A;b=m&248;if(!(c>>>b-1&1))break A;c=-1<>2]=c;j=J[a+84>>2];k= +k+1|0;if(j>>>0>k>>>0)continue;break}c=J[a+80>>2]}i=i+1|0;if(i>>>0>>0)continue;break}}if(IB(a,h+12|0,h+8|0,h+4|0))continue;break}c=0;break a}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,777607,0);c=2;break a}Cc(0,kc[J[J[a>>2]+52>>2]](a)|0,776354,0);c=2;b=N_(a);if((b|0)==2)break a;c=J[a+188>>2];J[a+12>>2]=c;f=Gd(c,4);J[a+16>>2]=f;if(J[a+12>>2]){e=J[J[a+200>>2]+60>>2];c=0;while(1){J[f+(c<<2)>>2]=J[(e+P(c,88)|0)+4>>2];c=c+1|0;if(c>>>0>2])continue;break}}J[a+20>>2]=J[a+140>>2]-J[a+148>>2];J[a+24>>2]=J[a+ +144>>2]-J[a+152>>2];c=b}fc=h+16|0;J[a+236>>2]=0;J[a+228>>2]=0;J[a+220>>2]=J[a+180>>2];J[a+224>>2]=(c|0)==2?J[a+144>>2]>>>J[a+28>>2]|0:J[a+184>>2]}function Fza(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=fc+-64|0;fc=e;a:{b:{c:{d:{if(J[a+12>>2]){J[e+52>>2]=0;J[e+56>>2]=J[685894];b=J[b>>2];e:{if(b){f=J[J[b>>2]+28>>2];J[699344]=0;ca(f|0,e+44|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break e;b=Z()|0;break b}J[e+44>>2]=0}J[699344]=0;aa(5153,e+52|0,e+44|0)|0;b=J[699344];J[699344]=0; +f:{if((b|0)!=1){b=J[e+44>>2];J[e+44>>2]=0;if(!b)break f;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f}break a}b=Z()|0;zc(e+44|0);break b}b=J[e+52>>2];J[e+56>>2]=J[(b?b+12|0:2743576)>>2];g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(!b)break q;g=J[b+12>>2];if(K[g|0]!=3)break q;r:{f=J[b+8>>2];if((f|0)>0){b=1;while(1){if(K[b+g|0]!=3)break r;h=(b|0)<(f|0);b=b+1|0;if(h)continue;break}}J[699344]=0;ka(5289); +a=J[699344];J[699344]=0;if((a|0)==1)break p;break c}J[699344]=0;ia(5313,e+44|0,e+52|0,b|0,f-b|0);b=J[699344];J[699344]=0;s:{if((b|0)!=1){b=J[e+44>>2];t:{if(b){f=J[J[b>>2]+28>>2];J[699344]=0;ca(f|0,e+32|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break t;b=Z()|0;break d}J[e+32>>2]=0}J[699344]=0;aa(5153,e+52|0,e+32|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[e+32>>2];J[e+32>>2]=0;if(!b)break s;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break s;J[699344]=0;$(5147, +b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break s}break a}b=Z()|0;zc(e+32|0);break d}b=Z()|0;break b}b=J[e+52>>2];J[e+56>>2]=J[(b?b+12|0:2743576)>>2];wc(e+44|0)}J[699344]=0;f=rf(e+52|0);b=J[699344];J[699344]=0;u:{v:{w:{x:{y:{z:{A:{B:{if((b|0)==1)break B;J[699344]=0;b=J[J[a+20>>2]+((f>>>0)%M[a+16>>2]<<2)>>2];a=J[699344];J[699344]=0;if((a|0)==1)break B;if(!b)break g;C:{while(1){D:{if((f|0)==J[b+12>>2]){J[699344]=0;a=ga(5287,b+16|0,e+52|0,-1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break C;if(!a)break D}b= +J[b+8>>2];if(b)continue;break g}break}f=0;a=J[b+24>>2];if(a){J[699344]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break A;f=J[b+24>>2]}J[699344]=0;J[e+40>>2]=f;a=aa(5149,e+32|0,2417518)|0;b=J[699344];J[699344]=0;if((b|0)==1)break z;J[699344]=0;g=rf(a);b=J[699344];J[699344]=0;if((b|0)==1)break x;J[699344]=0;h=f+16|0;b=h;b=J[J[b+12>>2]+((g>>>0)%M[b+8>>2]<<2)>>2];i=J[699344];J[699344]=0;if((i|0)==1)break x;E:{if(b)while(1){if((g|0)==J[b+12>>2]){J[699344]=0;i=ga(5287,b+16|0,a|0,-1)|0; +j=J[699344];J[699344]=0;if((j|0)==1)break y;if(!i)break E}b=J[b+8>>2];if(b)continue;break}b=0}J[e+48>>2]=h;J[e+44>>2]=b;wc(a);if(!b)break w;a=f;f=J[e+40>>2];if((a|0)!=(f|0)){J[699344]=0;da(5243,e+44|0,f+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;break i}a=J[b+24>>2];F:{if(a){b=J[J[a>>2]+28>>2];J[699344]=0;ca(b|0,e+24|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break i;break F}J[e+24>>2]=0}J[699344]=0;aa(5153,c|0,e+24|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[e+24>>2];J[e+24>>2]=0;if(!a)break v; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;g=J[699344];J[699344]=0;if((g|0)!=1){if(b)break v;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break v}break a}b=Z()|0;zc(e+24|0);break h}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break h}b=Z()|0;wc(a);break h}b=Z()|0;wc(a);break h}J[e+24>>2]=0;J[e+28>>2]=J[685894];G:{f=J[e+40>>2];a=J[f+60>>2];H:{I:{if(a){b=J[J[a>>2]+28>>2];J[699344]=0;ca(b|0,e+16|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break I;b=Z()|0;break H}J[e+16>>2]=0}J[699344]= +0;aa(5153,e+24|0,e+16|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[e+16>>2];J[e+16>>2]=0;if(!a)break G;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;g=J[699344];J[699344]=0;if((g|0)!=1){if(b)break G;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break G}break a}b=Z()|0;zc(e+16|0)}wc(e+24|0);break h}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2743576)>>2];g=0;J:{K:{L:{M:{N:{O:{P:{Q:{if(!a){b=-1;a=0;break Q}J[699344]=0;b=Bo(a,10,0);a=J[699344];J[699344]=0;if((a|0)==1)break J;h=J[e+24>>2];if(!h){a=0; +break Q}a=0;J[699344]=0;g=ga(5587,h|0,0,-1)|0;h=J[699344];J[699344]=0;if((h|0)==1)break P;h=J[e+24>>2];if(!h)break Q;J[699344]=0;a=ga(5588,h|0,0,-1)|0;h=J[699344];J[699344]=0;if((h|0)==1)break O}if((b|0)<=(g|0)&(b|g)>=0)break L;J[699344]=0;b=e+8|0;ia(5313,b|0,e+24|0,0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break N;J[699344]=0;da(5589,e+16|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break M;a=J[e+16>>2];R:{if(a){b=J[J[a>>2]+28>>2];J[699344]=0;ca(b|0,e+60|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!= +1)break R;b=Z()|0;break l}J[e+60>>2]=0}J[699344]=0;aa(5153,c|0,e+60|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[e+60>>2];J[e+60>>2]=0;if(!a)break K;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;g=J[699344];J[699344]=0;if((g|0)!=1){if(b)break K;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break K}break a}b=Z()|0;zc(e+60|0);break l}b=Z()|0;break j}b=Z()|0;break j}b=Z()|0;break j}b=Z()|0;break k}J[699344]=0;g=e+8|0;ia(5313,g|0,e+24|0,b+1|0,(b^-1)+a|0);a=J[699344];J[699344]=0;S:{if((a|0)!= +1){J[699344]=0;da(5589,e+16|0,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break S;a=J[e+16>>2];T:{if(a){b=J[J[a>>2]+28>>2];J[699344]=0;ca(b|0,e+60|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break T;b=Z()|0;break n}J[e+60>>2]=0}J[699344]=0;aa(5153,c|0,e+60|0)|0;a=J[699344];J[699344]=0;U:{if((a|0)!=1){a=J[e+60>>2];J[e+60>>2]=0;if(!a)break U;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;g=J[699344];J[699344]=0;if((g|0)!=1){if(b)break U;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break U}break a}b= +Z()|0;zc(e+60|0);break n}break K}b=Z()|0;break j}b=Z()|0;break m}a=J[c>>2];J[c+4>>2]=J[(a?a+12|0:2743576)>>2];wc(e+16|0);wc(e+8|0);wc(e+24|0);break u}b=Z()|0;break j}a=J[c>>2];J[c+4>>2]=J[(a?a+12|0:2743576)>>2]}J[699344]=0;c=aa(5149,e+16|0,2417524)|0;a=J[699344];J[699344]=0;V:{W:{X:{Y:{Z:{if((a|0)!=1){J[699344]=0;g=rf(c);a=J[699344];J[699344]=0;if((a|0)==1)break Y;a=0;J[699344]=0;h=f+16|0;b=h;b=J[J[b+12>>2]+((g>>>0)%M[b+8>>2]<<2)>>2];i=J[699344];J[699344]=0;if((i|0)==1)break Y;_:{if(!b)break _;while(1){$:{if((g| +0)!=J[b+12>>2])break $;J[699344]=0;a=ga(5287,b+16|0,c|0,-1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break Z;if(a)break $;a=b;break _}b=J[b+8>>2];if(b)continue;break}a=0}J[e+28>>2]=h;J[e+24>>2]=a;wc(c);b=J[e+40>>2];if(!a)break W;if((b|0)!=(f|0)){J[699344]=0;da(5243,e+24|0,b+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;break o}a=J[a+24>>2];aa:{if(a){c=J[J[a>>2]+28>>2];J[699344]=0;ca(c|0,e+8|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break o;break aa}J[e+8>>2]=0}J[699344]=0;aa(5153,d|0,e+8|0)|0; +a=J[699344];J[699344]=0;if((a|0)==1)break V;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break X;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break X;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break X}break a}b=Z()|0;break h}b=Z()|0;wc(c);break h}b=Z()|0;wc(c);break h}a=J[d>>2];J[d+4>>2]=J[(a?a+12|0:2743576)>>2]}if(!b)break g;J[699344]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[699344];J[699344]=0;if((c|0)!=1){if(a)break g;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]= +0;if((a|0)!=1)break g}break a}b=Z()|0;zc(e+8|0);break h}b=Z()|0;break b}b=Z()|0;break h}wc(e+16|0)}wc(e+8|0);break j}wc(e+16|0)}wc(e+8|0)}wc(e+24|0);break h}b=Z()|0}zc(e+40|0);break b}wc(e+52|0)}fc=e- -64|0;return}wc(e+44|0);break b}B()}wc(e+52|0);ba(b|0);B()}ea(0)|0;Bc();B()}function lrb(a,b,c,d,e,f,g,h,i,j,k,l,m,n){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;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=Q(0),t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0, +O=0,P=0,T=0,U=Q(0),V=0,W=0,X=0,Y=0;p=fc-80|0;fc=p;a:{b:{c:{d:{e:{f:{g:{h:{if(!(!(1<>>0>8)){i:{if(j){q=ts(0);J[p+72>>2]=q;if(J[k>>2]<=0)break i;while(1){t=J[J[k+12>>2]+(o<<2)>>2];jm(q,Q(J[t>>2]),Q((J[t+4>>2]+J[t+12>>2]|0)-1|0));o=o+1|0;if((o|0)>2])continue;break}break i}J[p+72>>2]=e;q=e}o=J[d>>2];A=J[d+4>>2];t=0;J[p+68>>2]=0;J[p+60>>2]=0;J[p+64>>2]=0;u=A-o|0;G=u>>2;z=(o|0)==(A|0);j:{k:{if(!z){l:{m:{if(G>>>0>=1073741824){J[699344]=0;$(1589,p+60|0);a=J[699344];J[699344]=0;if((a|0)==1)break m; +break a}J[699344]=0;t=_(4,u|0)|0;r=J[699344];J[699344]=0;if((r|0)!=1)break l}o=Z()|0;a=J[p+60>>2];if(!a)break b;J[p+64>>2]=a;uc(a);break b}J[p+60>>2]=t;J[p+68>>2]=(G<<2)+t;r=u;u=Ac(t,0,u);r=r+u|0;J[p+64>>2]=r;if(!j)break k;if(z){t=r;break j}o=0;d=u;while(1){J[d>>2]=o;o=o+1|0;d=d+4|0;if((r|0)!=(d|0))continue;break}break j}if(j)break j}u=d;d=p+60|0;if((u|0)==(d|0))break j;J[699344]=0;ca(1607,d|0,o|0,A|0);d=J[699344];J[699344]=0;if((d|0)==1)break d;r=J[p+64>>2];t=J[p+60>>2]}J[699344]=0;J[p+48>>2]=q; +FE(t,r,p+48|0,(r|0)!=(t|0)?62-(S(r-t>>2)<<1)|0:0);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[699344]=0;F=J[p+72>>2];ca(1601,a|0,3,0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[p+56>>2]=0;J[p+48>>2]=0;K=n?-12:0;H=c+4|0;I=b+4|0;O=(j?l:0)<<2;t=0;r=0;z=0;d=0;n:{while(1){if((z|0)>=(G|0)){J[699344]=0;$(1599,a|0);a=J[699344];J[699344]=0;if((a|0)!=1){if((e|0)==(F|0))break h;J[699344]=0;pp(p+72|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h}break f}u=J[p+60>>2]+(z<<2)|0;A=J[u>>2];s=yEb(N[J[F+16>>2]+ +(A<<2)>>2]);o:{if(Q(R(s))>2]=A;q=r+4|0;J[p+52>>2]=q;break p}J[699344]=0;r=_(4,4)|0;q=J[699344];J[699344]=0;if((q|0)==1)break n;J[r>>2]=J[u>>2];t=r+4|0;J[p+56>>2]=t;J[p+52>>2]=t;J[p+48>>2]=r;if(E)uc(E);q=t;E=q}A=o-x|0;z=z+1|0;if((G|0)>(z|0)){v=h+A|0;q:{while(1){D=J[p+60>>2]+(z<<2)|0;r=J[D>>2];s=yEb(N[J[F+16>>2]+(r<<2)>>2]);r:{if(Q(R(s))=(v|0))break q;s:{if((q|0)!=(t|0)){J[q>>2]=r;q=q+4|0;J[p+52>>2]=q;break s}x=J[p+48>>2];q=t-x|0;y=q>>2;o=y+1|0;if(o>>>0>=1073741824){J[699344]=0;$(1589,p+48|0);break g}u=q>>1;E=q>>>0>=2147483644?1073741823:o>>>0>>0?u:o;t:{if(!E){u=0;break t}if(E>>>0>=1073741824){J[699344]=0;ka(209);break g}J[699344]=0;u=_(4,E<<2)|0;q=J[699344];J[699344]=0;if((q|0)==1)break f;r=J[D>>2]}o=(y<<2)+u|0;J[o>>2]=r;q=o+4|0;if((t|0)!=(x|0))while(1){o=o-4|0;t=t-4|0;J[o>>2]=J[t>>2];if((t|0)!=(x|0))continue; +break}t=(E<<2)+u|0;J[p+56>>2]=t;J[p+52>>2]=q;J[p+48>>2]=o;if(x)uc(x)}E=t;z=z+1|0;if((G|0)!=(z|0))continue;break}z=G}r=J[p+48>>2]}J[699344]=0;J[p+76>>2]=F;EE(r,q,p+76|0,(q|0)!=(r|0)?62-(S(q-r>>2)<<1)|0:0);q=J[699344];J[699344]=0;if((q|0)==1)break n;J[699344]=0;ca(1601,a|0,3,(A-d|0)/(h|0)|0);d=J[699344];J[699344]=0;if((d|0)==1)break f;r=J[p+48>>2];L=J[p+52>>2];if((r|0)!=(L|0)){d=0;o=1;q=r;while(1){v=J[q>>2];u:{if(o&1){s=N[J[F+12>>2]+(v<<2)>>2];J[699344]=0;s=yEb(s);v:{if(Q(R(s))>2]+(v<<2)>>2];J[699344]=0;s=yEb(s);w:{if(Q(R(s))>2]+(v<<2)>>2];J[699344]=0;s=yEb(s);y:{if(Q(R(s))>2]|0)+ +O>>2];z:{if(Q(R(s))>2];if(!o)break B;while(1){y=(x|0)>J[o+16>>2];d=y?d:o;o=J[(y?o+4|0:o)>>2];if(o)continue;break}if((d|0)==(I|0)|(x|0)>2])break B;o=J[d+20>>2];break A}C:{d=H;o=J[d>>2];if(!o)break C;while(1){y=(x|0)>J[o+16>>2];d=y?d:o;o=J[(y?o+4|0:o)>>2];if(o)continue;break}if((d|0)==(H|0)|(x|0)>2])break C;o=J[b+8>>2]+J[d+20>>2]|0;break A}a=J[655074];o=J[b>>2];if((I|0)!=(o|0))while(1){J[p+32>>2]=J[o+16>>2];md(a,226042,p+32| +0);q=J[o+4>>2];D:{if(q)while(1){d=q;q=J[d>>2];if(q)continue;break D}while(1){d=J[o+8>>2];b=J[d>>2]!=(o|0);o=d;if(b)continue;break}}o=d;if((I|0)!=(o|0))continue;break}o=J[c>>2];if((H|0)!=(o|0))while(1){J[p+16>>2]=J[o+16>>2];md(a,226042,p+16|0);q=J[o+4>>2];E:{if(q)while(1){d=q;q=J[d>>2];if(q)continue;break E}while(1){d=J[o+8>>2];b=J[d>>2]!=(o|0);o=d;if(b)continue;break}}o=d;if((H|0)!=(o|0))continue;break}J[p>>2]=x;md(a,226860,p);J[699344]=0;ka(495);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break f}J[699344]= +0;ca(1611,a|0,i|0,o|0);d=J[699344];J[699344]=0;if((d|0)==1)break f;F:{if(j){M=x<<2;o=J[M+J[f+12>>2]>>2];G:{if(n){J[699344]=0;o=aa(1603,o|0,6)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break G;break f}J[699344]=0;if(o)J[o+16>>2]=J[o+16>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break f}J[699344]=0;J[p+76>>2]=o;qp(o,0);d=J[699344];J[699344]=0;if((d|0)==1)break f;d=J[D+J[k+12>>2]>>2];o=J[d+8>>2];x=J[d+12>>2];T=J[d+4>>2];v=l+v<<2;U=N[v+J[e+16>>2]>>2];V=J[d>>2];s=N[v+J[e+12>>2]>>2];d=J[D+J[j+12>>2]>>2];v=J[p+ +76>>2];W=J[v>>2];v=J[v+4>>2];J[699344]=0;qp(d,0);w=J[699344];J[699344]=0;if(Q(R(s))>>0));H:{if(Q(R(s))>2]>>2];J[699344]=0;w=aa(1612,0,w|0)|0;C=J[699344];J[699344]=0;if((C|0)==1)break f;J[p+44>>2]=w;C=J[p+76>>2];X=J[C+4>>2];Y=J[C>>2];J[699344]=0;d=V-d|0;y=T+(y^-1)|0;Ia(1613,w|0,d|0,y|0,Y|0,X|0,12,C|0,0,0)|0;w=J[699344];J[699344]=0;if((w|0)==1)break f;J[699344]=0;ga(1614,J[p+ +44>>2],p+40|0,0)|0;w=J[699344];J[699344]=0;if((w|0)==1)break I;J[699344]=0;$(1584,p+44|0);w=J[699344];J[699344]=0;if((w|0)==1)break I;if(!((d|0)<-1|J[p+40>>2]<=(m|0))&(d|0)<2)break J;J[699344]=0;ca(1601,a|0,12,0);d=J[699344];J[699344]=0;if((d|0)==1)break I;o=J[J[M+J[f+12>>2]>>2]>>2]+K|0;break F}break f}J[699344]=0;ca(1601,a|0,12,1);w=J[699344];J[699344]=0;if((w|0)==1)break I;J[699344]=0;w=o-W|0;ca(1601,a|0,9,w|0);C=J[699344];J[699344]=0;if((C|0)==1)break I;J[699344]=0;v=x-v|0;ca(1601,a|0,8,v|0);C= +J[699344];J[699344]=0;if((C|0)==1)break I;J[699344]=0;ca(1601,a|0,10,d-(w>>1)|0);w=J[699344];J[699344]=0;if((w|0)==1)break I;J[699344]=0;ca(1601,a|0,11,y-(v>>1)|0);v=J[699344];J[699344]=0;if((v|0)==1)break I;D=J[J[D+J[j+12>>2]>>2]+40>>2];v=J[p+76>>2];w=J[v+4>>2];C=J[v>>2];v=J[v+40>>2];J[699344]=0;Ja(1615,a|0,v|0,C|0,w|0,D|0,o|0,x|0,d|0,0-y|0);d=J[699344];J[699344]=0;if((d|0)==1)break I;J[699344]=0;$(1584,p+76|0);d=J[699344];J[699344]=0;if((d|0)!=1)break F}break f}o=J[J[J[f+12>>2]+(x<<2)>>2]>>2]+K| +0}d=(o+u|0)-1|0;o=0;q=q+4|0;if((L|0)!=(q|0))continue;break}}J[699344]=0;da(1606,a|0,2);q=J[699344];J[699344]=0;d=A;if((q|0)!=1)continue;break}break f}break f}ra();B()}if(r)uc(r);a=J[p+60>>2];if(a){J[p+64>>2]=a;uc(a)}fc=p+80|0;return}a=J[699344];J[699344]=0;if((a|0)!=1)break a}o=Z()|0;a=J[p+48>>2];if(!a)break c;J[p+52>>2]=a;uc(a);break c}o=Z()|0;break c}o=Z()|0}a=J[p+60>>2];if(!a)break b;J[p+64>>2]=a;uc(a);ba(o|0);B()}ba(o|0);B()}B()}function JZ(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;n=fc-128|0;fc=n;h=J[b>>2];a:{b:{i=J[c+8>>2];if((i|0)<=0)break b;k=J[c>>2];f=-1;e=i;while(1){c:{g=(e+f|0)/2|0;l=J[k+(g<<2)>>2];d:{if((l|0)<(h|0)){f=g;break d}e=g;if((h|0)>=(l|0))break c}if((e-f|0)>1)continue}break}if((h|0)!=J[k+(e<<2)>>2]|(e|0)>=(i|0))break b;f=0;Cc(0,-1,783420,0);break a}g=J[c+8>>2];i=g;e:{f:{if((g|0)<=0)break f;k=J[c>>2];f=-1;while(1){g:{e=(f+i|0)/2|0;l=J[k+(e<<2)>>2];h:{if((l|0)<(h|0)){f=e;break h}i=e;if((h|0)>=(l|0))break g}if((i-f|0)>1)continue}break}if((g|0)<=(i|0))break f; +if((h|0)==J[k+(i<<2)>>2])break e}i:{if(J[c+4>>2]!=(g|0)){f=J[c>>2];break i}if((g|0)>=1073741824){gi(777146);g=J[c+4>>2]}f=g<<1;J[c+4>>2]=f;f=Wd(J[c>>2],f,4);J[c>>2]=f;g=J[c+8>>2]}if((g|0)>(i|0)){f=(i<<2)+f|0;cd(f+4|0,f,g-i<<2);g=J[c+8>>2];f=J[c>>2]}J[(i<<2)+f>>2]=h;J[c+8>>2]=g+1}e=0;f=J[a>>2];kc[J[J[f>>2]+56>>2]](f,J[b>>2]+J[a+4>>2]|0,0);f=J[a>>2];f=kc[J[J[f>>2]+40>>2]](f,n,100)|0;j:{if((f|0)<=0)break j;while(1){g=H[e+n|0];if(g>>>0<=255)i=K[g+2318736|0]==1;else i=0;if(!i)break j;e=e+1|0;if((f|0)!= +(e|0))continue;break}e=f}k:{if(d)break k;d=f;f=e+4|0;if((d|0)<=(f|0))break k;d=e+n|0;if(K[d|0]!=120|K[d+1|0]!=114|(K[d+2|0]!=101|K[d+3|0]!=102))break k;d=H[f+n|0];if(d>>>0<=255)d=K[d+2318736|0]==1;else d=0;if(!d)break k;f=c;h=fc-48|0;fc=h;J[h+16>>2]=13;i=b;c=J[a>>2];kc[J[J[c>>2]+56>>2]](c,J[b>>2]+(J[a+4>>2]+(e+5|0)|0)|0,0);l:{m:{n:{o:{p:{q:{r:{s:{while(1){b=J[a>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;if(e>>>0<=255)b=K[e+2318736|0]==1;else b=0;if(b)continue;t:{if((e|0)==116){b=J[a>>2];c=h+10|0;if((kc[J[J[b>> +2]+40>>2]](b,c,6)|0)!=6)break n;if(dd(c,785271,6))break n;J[h+32>>2]=5;c=vc(56);J[699344]=0;d=_(4,160)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;b=J[a>>2];e=J[J[b>>2]+52>>2];J[699344]=0;e=_(e|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break s;g=J[J[b>>2]+92>>2];J[699344]=0;j=e;e=h+32|0;b=na(g|0,b|0,j|0,0,0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break s;J[699344]=0;b=ga(3669,d|0,0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break s;J[699344]=0;b=ha(3467,c|0,0,b|0,1)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break t;rg(b,e,0,0,0,0,0,0,0);uc(Nk(b));if(J[h+32>>2]!=7)break o;Ke(J[h+40>>2],786157,h+16|0);e=0;switch(J[h+16>>2]-1|0){case 0:case 8:break q;default:break p}}b=0;if(e-58>>>0<4294967286)break n;while(1){b=(P(b,10)+e|0)-48|0;c=J[a>>2];e=kc[J[J[c>>2]+28>>2]](c)|0;if(e-48>>>0<10)continue;break}if(!(K[e+2318736|0]==1&e>>>0<=255))break n;while(1){c=J[a>>2];e=kc[J[J[c>>2]+28>>2]](c)|0;if(e>>>0<=255)c=K[e+2318736|0]==1;else c=0;if(c)continue;break}g=0;while(1){g=(P(g,10)+e|0)-48|0;c=J[a>> +2];e=kc[J[J[c>>2]+28>>2]](c)|0;if(e-48>>>0<10)continue;break}if(!(K[e+2318736|0]==1&e>>>0<=255)|(b|0)<0|((g|0)<0|(g^2147483647)<(b|0)))break n;e=b+g|0;c=J[a+12>>2];if((e|0)>(c|0)){c=c?c<<1:1024;while(1){d=c;if((c|0)<(e|0)){c=c<<1;if((d|0)>0)continue}break}if((d|0)<0)break n;l=Wd(J[a+8>>2],d,12);J[a+8>>2]=l;c=J[a+12>>2];u:{if((d|0)<=(c|0))break u;e=d+(c^-1)|0;k=0;m=d-c&3;if(m)while(1){j=l+P(c,12)|0;J[j+8>>2]=0;J[j>>2]=-1;c=c+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}if(e>>>0<3)break u;while(1){e= +l+P(c,12)|0;J[e+8>>2]=0;J[e+12>>2]=-1;J[e>>2]=-1;J[e+20>>2]=0;J[e+24>>2]=-1;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=-1;c=c+4|0;if((d|0)!=(c|0))continue;break}}J[a+12>>2]=d}d=b;if((g|0)<=0)continue;while(1){c=J[a>>2];e=kc[J[J[c>>2]+28>>2]](c)|0;if(e>>>0<=255)c=K[e+2318736|0]==1;else c=0;if(c)continue;c=0;while(1){c=(P(c,10)+e|0)-48|0;e=J[a>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if(e-48>>>0<10)continue;break}if(!(K[e+2318736|0]==1&e>>>0<=255))break n;while(1){e=J[a>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if(e>>>0<=255)j= +K[e+2318736|0]==1;else j=0;if(j)continue;break}k=0;while(1){k=(P(k,10)+e|0)-48|0;e=J[a>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if(e-48>>>0<10)continue;break}if(!(K[e+2318736|0]==1&e>>>0<=255))break n;while(1){e=J[a>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if(e>>>0<=255)j=K[e+2318736|0]==1;else j=0;if(j)continue;break}l=1;v:switch(e-102|0){case 0:l=0;break;case 8:break v;default:break n}e=J[a>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if(e>>>0<=255)e=K[e+2318736|0]==1;else e=0;if(!e)break n;e=J[a+8>>2]+P(b,12)|0;w:{if(J[e>>2]!= +-1)break w;J[e+8>>2]=l;J[e+4>>2]=k;J[e>>2]=c;x:{if((d|0)!=1|(b|0)!=1)break x;d=1;c=J[a+8>>2];if(J[c+12>>2]){b=1;break x}if(J[c+16>>2]!=65535){b=1;break x}b=1;if(J[c+20>>2])break x;b=J[c+16>>2];J[c>>2]=J[c+12>>2];J[c+4>>2]=b;J[c+8>>2]=J[c+20>>2];J[J[a+8>>2]+12>>2]=-1;d=0;b=0}if(J[a+16>>2]>=(b|0))break w;J[a+16>>2]=b}b=b+1|0;if((b|0)<(d+g|0))continue;break}continue}break}a=Z()|0;break r}a=Z()|0;uc(d)}uc(c);ba(a|0);B()}J[i>>2]=J[h+24>>2];e=1}yc(h+16|0);if(J[a+40>>2]==13)Pe(h+32|0,a+40|0);b=h+16|0;if(J[Ec(J[h+ +40>>2],787105,b,0)>>2]!=1)break m;J[h+4>>2]=J[h+24>>2];JZ(a,h+4|0,f,1);if(J[a+28>>2])break m;yc(b)}yc(h+32|0)}e=0;J[a+28>>2]=0;break l}yc(h+16|0);yc(h+32|0)}fc=h+48|0;f=e;break a}J[n+112>>2]=5;d=vc(56);J[699344]=0;f=_(4,160)|0;c=J[699344];J[699344]=0;y:{z:{A:{B:{if((c|0)==1)break B;c=J[a>>2];e=J[J[c>>2]+92>>2];g=J[b>>2];i=J[a+4>>2];J[699344]=0;j=c;c=n+112|0;e=na(e|0,j|0,g+i|0,0,0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break A;J[699344]=0;e=ga(3669,f|0,0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)== +1)break A;J[699344]=0;h=ha(3467,d|0,0,e|0,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break B;f=0;if(J[rg(h,c,1,0,0,0,0,0,0)>>2]!=1)break y;yc(c);if(J[rg(h,c,1,0,0,0,0,0,0)>>2]!=1)break y;yc(c);d=rg(h,c,1,0,0,0,0,0,0);if(J[d>>2]!=10)break y;if(Ic(J[d+8>>2],784409))break y;yc(c);if(J[rg(h,c,0,0,0,0,0,0,0)>>2]!=8)break y;g=c;k=J[n+120>>2];i=b;d=0;c=fc+-64|0;fc=c;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;l=kc[J[J[k>>2]+76>>2]](k)|0;e=c+32|0;C:{D:{E:{F:{if(J[Ke(l,788132,e)>>2]!=1)break F;f=J[c+40>>2];yc(e); +if((f|0)<0)break F;if(J[a+12>>2]<(f|0)){m=Wd(J[a+8>>2],f,12);J[a+8>>2]=m;b=J[a+12>>2];G:{if((f|0)<=(b|0))break G;j=(b^-1)+f|0;o=f-b&3;if(o)while(1){p=m+P(b,12)|0;J[p+8>>2]=0;J[p>>2]=-1;b=b+1|0;d=d+1|0;if((o|0)!=(d|0))continue;break}if(j>>>0<3)break G;while(1){d=m+P(b,12)|0;J[d+8>>2]=0;J[d+12>>2]=-1;J[d>>2]=-1;J[d+20>>2]=0;J[d+24>>2]=-1;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=-1;b=b+4|0;if((f|0)!=(b|0))continue;break}}J[a+12>>2]=f}m=c+32|0;if(J[Ke(l,789033,m)>>2]!=6)break F;b=J[c+40>>2];if(J[b+12>>2]< +3)break F;H:{j=c+16|0;d=j;if(J[Sc(b,0,d,0)>>2]!=1)break H;o=J[c+24>>2];J[c+52>>2]=o;yc(d);if(J[Sc(J[c+40>>2],1,d,0)>>2]!=1)break H;b=J[c+24>>2];J[c+56>>2]=b;yc(d);if(J[Sc(J[c+40>>2],2,d,0)>>2]!=1)break H;d=J[c+24>>2];J[c+60>>2]=d;yc(j);yc(m);if((b|0)<0|o>>>0>8|((d|0)<0|(b|0)>8))break D;if((d|0)>8)break D;kc[J[J[k>>2]+20>>2]](k);Ke(l,789622,c);I:{if(J[c>>2]==6){m=1;b=J[c+8>>2];if(J[b+12>>2]<=1)break I;f=0;while(1){d=c;j=b;b=c+32|0;if(J[Sc(j,f,b,0)>>2]!=1)break H;j=J[c+40>>2];yc(b);if(J[Sc(J[c+8>>2], +m,b,0)>>2]!=1)break H;d=J[c+40>>2];yc(b);b=c;if((d|j)<0)break E;if(!IZ(a,k,c+52|0,j,d))break E;f=f+2|0;m=f|1;b=J[c+8>>2];if((m|0)>2])continue;break}break I}if(IZ(a,k,c+52|0,0,f))break I;b=c;break E}yc(c);Ke(l,786157,c+32|0);b=0;if(J[c+32>>2]==1){J[i>>2]=J[c+40>>2];b=1}yc(c+32|0);if(J[a+40>>2]!=13)break C;J[a+48>>2]=l;J[a+40>>2]=7;J[l+20>>2]=J[l+20>>2]+1;break C}yc(d)}b=e}yc(b)}b=0;J[a+28>>2]=0}fc=c- -64|0;f=b;yc(g);uc(Nk(h));break a}e=Z()|0;break z}e=Z()|0;uc(f)}uc(d);ba(e|0);B()}yc(n+112| +0);uc(Nk(h));J[a+28>>2]=0}fc=n+128|0;return f}function QK(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,w=0,x=0,y=0,z=0;t=fc-16|0;fc=t;if(c)f=Il(J[a+8>>2],J[a+52>>2],c);else f=0;a:{b:{k=J[a+380>>2];if(k){J[a+380>>2]=J[k+24>>2];J[a+376>>2]=J[a+376>>2]-1;J[k>>2]=0;J[k+4>>2]=0;J[k+40>>2]=0;J[k+44>>2]=0;J[k+32>>2]=0;J[k+36>>2]=0;J[k+24>>2]=0;J[k+28>>2]=0;J[k+16>>2]=0;J[k+20>>2]=0;J[k+8>>2]=0;J[k+12>>2]=0;J[k+4>>2]=2;g=J[a+52>>2];J[k+20>>2]=g;h=J[a+8>>2];J[k+36>>2]= +f;J[k+32>>2]=h;c:{if(J[a+364>>2]){J[k+8>>2]=b;break c}d:{if(!b){f=0;break d}f=b;while(1){g=f;f=g+1|0;if(K[g|0])continue;break}f=0;g=g-b|0;if((g|0)<0)break d;h=kc[J[663198]](g+1|0)|0;if(!h){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}f=xc(h,b,g);H[g+f|0]=0}J[k+8>>2]=f;g=J[a+52>>2]}f=J[g+44>>2];e:{if(!f){J[g+44>>2]=k;break e}while(1){g=f;f=J[g+24>>2];if(f)continue;break}J[g+24>>2]=k;J[k+28>>2]=g}if(!J[693393])break b;f=J[693390];if(!f)break b;kc[f|0](k);break b}if(b){k=c2(J[a+52>>2],f,b,J[a+364>>2]!= +0);if(k)break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;J[t>>2]=4462;Hc(0,0,0,a,0,1,2,3,4462,0,0,0,32879,t);break a}f:{if(J[a+16>>2]|J[a+32>>2]){if(!d)break f;f=GC(a,d,e-d|0);J[k+16>>2]=f;J[k+12>>2]=f;if(!f)break f;g=J[k+32>>2];J[f+20>>2]=k;J[f+32>>2]=g;break f}if(K[e|0]){f=GC(a,d,e-d|0);J[k+16>>2]=f;J[k+12>>2]=f;if(!f)break f;g=J[k+32>>2];J[f+20>>2]=k;J[f+32>>2]=g;break f}n=J[a+8>>2];g=e-d|0;l=fc-112|0;fc=l;f=d;g:{if(!f)break g;i=kc[J[663195]](36)|0;if(!i){J[l>> +2]=5439;Hc(0,0,0,0,0,29,2,3,5439,0,0,0,32879,l);break g}J[i+20>>2]=0;J[i+4>>2]=0;J[i+28>>2]=0;J[i+32>>2]=0;h=J[663197];J[i+24>>2]=0;J[i+12>>2]=h;J[i+8>>2]=0;J[i+16>>2]=0;J[i>>2]=0;if((h&-2)!=2)J[i+12>>2]=4;h:{i:{j:{if((g|0)<=0)break j;s=d+g|0;u=l+106|0;v=l+105|0;w=l+104|0;x=l+103|0;g=d;while(1){k:{h=K[g|0];l:{if((h|0)!=38){if(!h)break k;g=g+1|0;break l}if((f|0)!=(g|0))if(Xj(i,f,g-f|0))break i;j=g+2|0;o=s>>>0<=j>>>0;m:{if(!(o|K[g+1|0]!=35|K[j|0]!=120)){f=0;j=0;n:{h=g+3|0;if(s>>>0<=h>>>0)break n;j= +K[h|0];if((j|0)!=59)break n;g=h+1|0;break m}while(1){g=-48;o:{if((j-48&255)>>>0<10)break o;if((j-97&255)>>>0<6){g=-87;break o}g=-55;if((j-65&255)>>>0<6)break o;J[l+48>>2]=0;Hc(0,0,0,0,n,2,1300,2,0,0,0,0,33866,l+48|0);f=0;g=h;break m}f=((f<<4)+g|0)+(j&255)|0;h=h+1|0;if(s>>>0>h>>>0)j=K[h|0];else j=0;if((j&255)!=59)continue;break}g=h+1|0;break m}p:{q:{r:{s:{t:{u:{v:{m=g+1|0;if(m>>>0>=s>>>0)break v;h=K[m|0];if((h|0)==35){f=0;g=0;w:{x:{if(o)break x;g=K[j|0];if((g|0)!=59)break x;break w}while(1){if((g- +48&255)>>>0>9)break t;h=g&255;g=0;f=(h+P(f,10)|0)-48|0;j=j+1|0;if(s>>>0>j>>>0)g=K[j|0];if((g&255)!=59)continue;break}}g=1;break p}j=s-g|0;f=1;while(1){h=h&255;if(!h)break v;if((h|0)==59)break u;f=f+1|0;if((j|0)==(f|0))break v;h=K[f+g|0];continue}}J[l+80>>2]=m;Hc(0,0,0,0,n,2,1302,2,m,0,0,0,31972,l+80|0);break i}if((f|0)==1)break q;p=kc[J[663198]](f)|0;y:{if(!p){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break y}h=f-1|0;y=xc(p,m,h)+h|0,z=0,H[y|0]=z}z:{A:{if(!n)break A;h=J[n+44>>2];B:{if(!h)break B;h=J[h+48>> +2];if(!h)break B;j=Bf(h,p,0,0);if(j)break z}if(J[n+40>>2]==1)break A;h=J[n+48>>2];if(!h)break A;h=J[h+48>>2];if(!h)break A;j=Bf(h,p,0,0);if(j)break z}j=fj(p);if(j)break z;j=0;o=1;break s}o=0;if(J[j+48>>2]!=6)break s;if(J[i+32>>2])break i;h=J[j+40>>2];j=J[i+8>>2];if(!((j|0)==J[i+24>>2]|j>>>0>2147483646))J[i+24>>2]=j;j=J[i+4>>2];if(!((j|0)==J[i+20>>2]|j>>>0>2147483646))J[i+20>>2]=j;j=J[i+12>>2];if(!h|(j|0)==2)break h;if(!Xj(i,h,-1))break r;break i}g=0;J[l+64>>2]=0;Hc(0,0,0,0,n,2,1301,2,0,0,0,0,33903, +l- -64|0);f=0;break p}C:{if(J[i+32>>2])break C;h=J[i+8>>2];if(!((h|0)==J[i+24>>2]|h>>>0>2147483646))J[i+24>>2]=h;m=J[i+20>>2];h=J[i+4>>2];if((m|0)==(h|0)|h>>>0>2147483646)h=m;else J[i+20>>2]=h;if(!h)break C;D:{h=kc[J[663195]](60)|0;if(h){J[h>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[h+56>>2]=0;J[h+48>>2]=0;J[h+52>>2]=0;J[h+40>>2]=0;J[h+44>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+4>>2]=3;J[h+8>>2]=774748;E:{if(!J[693393])break E;m=J[693390];if(!m)break E; +kc[m|0](h)}J[h+32>>2]=n;m=0;if(!(J[i+32>>2]|(J[i+28>>2]|J[i+12>>2]==2))){J[i+20>>2]=0;J[i+24>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;m=J[i>>2];J[i>>2]=0}J[h+40>>2]=m;if(r)break D;r=h;q=h;break C}J[l+96>>2]=1832;Hc(0,0,0,0,0,2,2,3,1832,0,0,0,32879,l+96|0);if(!p)break i;kc[J[663199]](p);break i}r=pu(r,h)}m=_K(n,p);if(!m){if(!p)break i;kc[J[663199]](p);break i}F:{if(J[j+12>>2]|o)break F;h=xC(n,J[m+40>>2]);J[j+68>>2]=1;J[j+12>>2]=h;if(!h)break F;while(1){o=h;J[h+20>>2]=j;h=J[h+24>>2];if(h)continue;break}J[j+16>> +2]=o}if(!r){r=m;q=m;break r}r=pu(r,m)}kc[J[663199]](p)}g=(f+g|0)+1|0;f=g;break l}g=g+j|0}if(!f){f=g;break l}G:{H:{if((f|0)>=128){I:{if(f>>>0<2048){j=0;o=6;h=192;break I}if(f>>>0<65536){j=6;o=12;h=224;break I}if(f>>>0>=1114112)break H;j=12;o=18;h=240}H[l+102|0]=h|f>>>o;H[l+103|0]=f>>>j&63|128;m=(j>>>0)/6|0;h=w;J:{if(j>>>0<6)break J;H[l+104|0]=f>>>j-6&63|128;m=(m+x|0)==(h|0);h=v;if(m)break J;H[l+105|0]=f>>>j-12&63|128;h=u}f=h-(l+102|0)|0;break G}H[l+102|0]=f;f=1;break G}J[l+32>>2]=f;Hc(0,0,0,0,0,1, +9,3,0,0,0,f,35057,l+32|0);f=0}H[f+(l+102|0)|0]=0;if(J[i+32>>2])break i;f=J[i+8>>2];if(!((f|0)==J[i+24>>2]|f>>>0>2147483646))J[i+24>>2]=f;f=J[i+4>>2];if(!((f|0)==J[i+20>>2]|f>>>0>2147483646))J[i+20>>2]=f;if(J[i+12>>2]==2)break i;f=g;if(Xj(i,l+102|0,-1))break i}if(g>>>0>>0)continue}break}if((f|0)==(g|0))break j;if(Xj(i,f,g-f|0))break i}K:{L:{if(J[i+32>>2])break L;f=J[i+8>>2];if(!((f|0)==J[i+24>>2]|f>>>0>2147483646))J[i+24>>2]=f;f=J[i+20>>2];g=J[i+4>>2];if((f|0)==(g|0)|g>>>0>2147483646)g=f;else J[i+ +20>>2]=g;if(!g)break L;g=kc[J[663195]](60)|0;if(!g)break K;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g+56>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+4>>2]=3;J[g+8>>2]=774748;M:{if(!J[693393])break M;f=J[693390];if(!f)break M;kc[f|0](g)}J[g+32>>2]=n;f=0;if(!(J[i+32>>2]|(J[i+28>>2]|J[i+12>>2]==2))){J[i+20>>2]=0;J[i+24>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;f=J[i>>2];J[i>>2]=0}J[g+40>>2]=f;if(!r){q=g;break i}pu(r, +g);break i}if(q)break i;q=_1(39197);if(!q){q=0;break i}J[q+32>>2]=n;break i}J[l+16>>2]=1832;Hc(0,0,0,0,0,2,2,3,1832,0,0,0,32879,l+16|0)}j=J[i+12>>2]}N:{O:{P:{if((j|0)==3){g=J[i+16>>2];if(!g)break P;break O}if((j|0)==2)break N}g=J[i>>2];if(!g)break N}kc[J[663199]](g)}kc[J[663199]](i)}fc=l+112|0;g=q;J[k+12>>2]=g;if(!g)break f;q=J[k+32>>2];while(1){f=g;J[g+20>>2]=k;J[g+32>>2]=q;g=J[g+24>>2];if(g)continue;break}J[k+16>>2]=f}if(K[a+276|0]&8)break a;Q:{if(!J[a+16>>2]){if(J[a+96>>2]!=2)break Q;break a}if(J[a+ +216>>2])break a}R:{if(!(J[a+312>>2]!=(c|0)|K[b|0]!=105|(K[b+2|0]|K[b+1|0]!=100))){f=Hl(d,e-d|0);ex(a+108|0,J[a+8>>2],f,k);break R}if(pC(J[a+8>>2],J[a+52>>2],k)){f=0;S:{if(!d)break S;b=e-d|0;if((b|0)<0)break S;f=kc[J[663198]](b+1|0)|0;if(!f){f=0;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break S}y=xc(f,d,b)+b|0,z=0,H[y|0]=z}ex(a+108|0,J[a+8>>2],f,k);break R}if(!B1(J[a+8>>2],J[a+52>>2],k))break a;f=0;T:{if(!d)break T;b=e-d|0;if((b|0)<0)break T;f=kc[J[663198]](b+1|0)|0;if(!f){f=0;Hc(0,0,0,0,0,1,2,3,0,0,0,0, +36029,0);break T}y=xc(f,d,b)+b|0,z=0,H[y|0]=z}D1(a+108|0,J[a+8>>2],f,k)}if(!f)break a;kc[J[663199]](f)}fc=t+16|0}function gH(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;a:while(1){n=b-4|0;m=b-16|0;i=b-8|0;b:while(1){g=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{h=b-g>>3;switch(h|0){case 2:break j;case 0:case 1:break d;case 3:break f;case 5:break h;case 4:break i;default:break g}}a=J[g>>2];c=K[a+622|0];e=b-8|0;d=J[e>>2];k:{l:{if(K[d+622|0]){if(c)break l;break k}if(c)break d}if(M[d+616>>2]>=M[a+ +616>>2])break d}J[g>>2]=d;J[e>>2]=a;a=J[g+4>>2];b=b-4|0;J[g+4>>2]=J[b>>2];J[b>>2]=a;return}dH(g,g+8|0,g+16|0,b-8|0);return}cH(g,g+8|0,g+16|0,g+24|0,b-8|0);return}if((h|0)<=6){e=g+16|0;it(g,g+8|0,e);d=g+24|0;if((d|0)==(b|0))break d;while(1){h=J[e>>2];a=K[h+622|0];c=d;f=J[d>>2];m:{n:{o:{if(K[f+622|0]){if(a)break o;break n}if(a)break m}if(M[f+616>>2]>=M[h+616>>2])break m}i=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;a=c;while(1){d=e;j=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=h;e=J[a+4>>2];J[a+4>>2]=j;p:{if(!e)break p; +a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break p;kc[J[J[e>>2]+8>>2]](e);Gc(e)}q:{if((d|0)==(g|0)){d=g;break q}e=d-8|0;h=J[e>>2];j=K[h+622|0];r:{if(K[f+622|0]){a=d;if(!j)continue;break r}if(j)break q}a=d;if(M[f+616>>2]>2])continue}break}J[d>>2]=f;a=J[d+4>>2];J[d+4>>2]=i;if(!a)break m;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break m;kc[J[J[a>>2]+8>>2]](a);Gc(a)}e=c;d=e+8|0;if((d|0)!=(b|0))continue;break}break d}if(c)break e;if((b|0)==(g|0))break d;k=h-2>>>1|0;d=k;while(1){j=d;s:{if((d|0)>(k|0))break s;a=(d<<3)+ +g|0;e=d<<1;c=e|1;d=(c<<3)+g|0;e=e+2|0;t:{if((h|0)<=(e|0)){e=c;break t}i=J[d+8>>2];f=K[i+622|0];u:{v:{m=J[d>>2];if(K[m+622|0]){if(!f)break u;break v}if(!f)break v;e=c;break t}if(M[m+616>>2]>2])break u;e=c;break t}d=d+8|0}i=J[a>>2];c=K[i+622|0];f=J[d>>2];w:{x:{if(K[f+622|0]){if(c)break x;break s}if(c)break w}if(M[f+616>>2]>2])break s}l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;f=J[d>>2];while(1){c=d;m=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=f;d=J[a+4>>2];J[a+4>>2]=m;y:{if(!d)break y;a=J[d+4>> +2];J[d+4>>2]=a-1;if(a)break y;kc[J[J[d>>2]+8>>2]](d);Gc(d)}z:{if((e|0)>(k|0))break z;e=e<<1;a=e|1;d=(a<<3)+g|0;e=e+2|0;A:{if((h|0)<=(e|0)){e=a;break A}m=J[d+8>>2];f=K[m+622|0];B:{C:{n=J[d>>2];if(K[n+622|0]){if(!f)break B;break C}if(!f)break C;e=a;break A}if(M[n+616>>2]>2])break B;e=a;break A}d=d+8|0}m=K[i+622|0];f=J[d>>2];D:{if(K[f+622|0]){if(m)break D;break z}a=c;if(m)continue}a=c;if(M[f+616>>2]>=M[i+616>>2])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=l;if(!a)break s;c=J[a+4>>2];J[a+ +4>>2]=c-1;if(c)break s;kc[J[J[a>>2]+8>>2]](a);Gc(a)}d=j-1|0;if(j)continue;break}while(1){e=b;k=J[g+4>>2];m=J[g>>2];J[g>>2]=0;J[g+4>>2]=0;j=h;l=h-2>>>1|0;d=g;a=0;while(1){f=a<<1;b=f|1;c=d;a=(a<<3)+d|0;d=a+8|0;E:{F:{G:{f=f+2|0;if((f|0)<(j|0)){i=a+16|0;n=J[i>>2];h=K[n+622|0];o=J[a+8>>2];if(K[o+622|0]){if(!h)break F;break G}if(!h)break G}break E}if(M[o+616>>2]>=M[n+616>>2])break E}d=i;b=f}a=b;f=J[d>>2];i=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;b=J[c+4>>2];J[c>>2]=f;J[c+4>>2]=i;H:{if(!b)break H;c=J[b+4>>2];J[b+ +4>>2]=c-1;if(c)break H;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((a|0)<=(l|0))continue;break}b=e-8|0;I:{J:{if((d|0)==(b|0)){J[d>>2]=m;a=d;d=J[d+4>>2];J[a+4>>2]=k;if(!d)break I;a=J[d+4>>2];J[d+4>>2]=a-1;if(!a)break J;break I}c=e-4|0;e=J[c>>2];a=J[b>>2];J[b>>2]=0;J[c>>2]=0;J[d>>2]=a;a=J[d+4>>2];J[d+4>>2]=e;K:{if(!a)break K;e=J[a+4>>2];J[a+4>>2]=e-1;if(e)break K;kc[J[J[a>>2]+8>>2]](a);Gc(a)}J[b>>2]=m;a=J[c>>2];J[c>>2]=k;L:{if(!a)break L;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break L;kc[J[J[a>>2]+8>>2]](a);Gc(a)}c=(d+ +8|0)-g>>3;if((c|0)<2)break I;i=J[d>>2];a=K[i+622|0];e=c-2>>>1|0;f=(e<<3)+g|0;c=J[f>>2];M:{N:{if(K[c+622|0]){if(a)break N;break M}if(a)break I}if(M[c+616>>2]>=M[i+616>>2])break I}k=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;a=J[f>>2];while(1){c=f;h=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;J[d>>2]=a;a=J[d+4>>2];J[d+4>>2]=h;O:{if(!a)break O;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break O;kc[J[J[a>>2]+8>>2]](a);Gc(a)}P:{if(!e)break P;h=K[i+622|0];e=e-1>>>1|0;f=(e<<3)+g|0;a=J[f>>2];Q:{if(K[a+622|0]){d=c;if(!h)continue;break Q}if(h)break P}d= +c;if(M[a+616>>2]>2])continue}break}J[c>>2]=i;d=J[c+4>>2];J[c+4>>2]=k;if(!d)break I;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break I}kc[J[J[d>>2]+8>>2]](d);Gc(d)}h=j-1|0;if((j|0)>2)continue;break}break d}it(g,g+8|0,b-8|0);break d}j=(h<<2&-8)+g|0;R:{if(h>>>0>=1E3){a=h<<1&-8;k=cH(g,a+g|0,j,a+j|0,i);break R}k=it(g,j,i)}c=c-1|0;l=J[j>>2];f=K[l+622|0];S:{T:{U:{a=J[g>>2];o=K[a+622|0];V:{if(o){if(f)break V;e=i;break T}if(f)break U}if(M[a+616>>2]>=M[l+616>>2])break U;e=i;break T}h=i;d=m;if((g|0)==(d|0))break S; +while(1){W:{e=d;d=J[d>>2];X:{Y:{if(K[d+622|0]){if(f)break Y;break W}if(f)break X}if(M[d+616>>2]>2])break W}h=e;d=e-8|0;if((g|0)!=(d|0))continue;break S}break}J[g>>2]=d;J[e>>2]=a;a=J[g+4>>2];d=h-4|0;J[g+4>>2]=J[d>>2];J[d>>2]=a;k=k+1|0}d=g+8|0;if(e>>>0>d>>>0)while(1){Z:{_:{l=J[j>>2];a=K[l+622|0];if(a){h=J[d>>2];if(!K[h+622|0])break _;o=J[l+616>>2];while(1){if(o>>>0<=M[h+616>>2])break _;h=J[d+8>>2];f=d+8|0;d=f;if(K[h+622|0])continue;break}break Z}while(1){h=J[d>>2];if(!K[h+622|0]&M[h+616>>2]>= +M[l+616>>2])break _;d=d+8|0;continue}}f=d}$:{if(a){a=e;while(1){e=a;a=a-8|0;d=J[a>>2];if(!K[d+622|0]|M[d+616>>2]>=M[l+616>>2])continue;break}break $}a=e-8|0;d=J[a>>2];if(K[d+622|0])break $;l=J[l+616>>2];if(l>>>0>M[d+616>>2])break $;while(1){e=a;a=a-8|0;d=J[a>>2];if(K[d+622|0])break $;if(l>>>0<=M[d+616>>2])continue;break}}if(a>>>0>>0)d=f;else{J[f>>2]=d;J[a>>2]=h;d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;j=(f|0)==(j|0)?a:j;d=f+8|0;k=k+1|0;e=a;continue}break}aa:{if((d|0)==(j|0))break aa;a=J[d>> +2];e=K[a+622|0];f=J[j>>2];ba:{ca:{if(K[f+622|0]){if(e)break ca;break ba}if(e)break aa}if(M[f+616>>2]>=M[a+616>>2])break aa}J[d>>2]=f;J[j>>2]=a;a=J[d+4>>2];J[d+4>>2]=J[j+4>>2];J[j+4>>2]=a;k=k+1|0}if(!k){e=AU(g,d);a=d+8|0;if(AU(a,b)){a=g;b=d;if(!e)continue a;break d}if(e)continue b}if((d-g|0)<(b-d|0)){gH(g,d,c);a=d+8|0;continue b}gH(d+8|0,b,c);a=g;b=d;continue a}d=g+8|0;f=J[i>>2];e=K[f+622|0];da:{ea:{fa:{ga:{ha:{if(o){if(e)break ha;break da}if(e)break ga}if(M[a+616>>2]>2])break da;if((d|0)== +(i|0))break d;e=a+616|0;if(!o)break fa;e=a;while(1){a=J[d>>2];if(!K[a+622|0]|M[e+616>>2]>2])break ea;d=d+8|0;if((i|0)!=(d|0))continue;break}break d}if((d|0)==(i|0))break d;e=a+616|0}while(1){a=J[d>>2];if(!K[a+622|0]&M[e>>2]>2])break ea;d=d+8|0;if((i|0)!=(d|0))continue;break}break d}J[d>>2]=f;J[i>>2]=a;a=J[d+4>>2];J[d+4>>2]=J[n>>2];J[n>>2]=a;d=d+8|0}a=i;if((d|0)==(a|0))break d;while(1){ia:{ja:{ka:{la:{ma:{l=J[g>>2];e=K[l+622|0];if(!e)while(1){h=J[d>>2];if(!K[h+622|0]&M[l+616>>2]< +M[h+616>>2])break ma;d=d+8|0;continue}h=J[d>>2];if(!K[h+622|0])break ka;f=J[l+616>>2];while(1){if(f>>>0>2])break ma;h=J[d+8>>2];j=d+8|0;d=j;if(K[h+622|0])continue;break}break la}j=d}if(!e)break ja;d=j}while(1){f=a;a=a-8|0;e=J[a>>2];if(!K[e+622|0]|M[l+616>>2]>2])continue;break}break ia}na:{oa:{k=a-8|0;e=J[k>>2];if(K[e+622|0])break oa;d=J[l+616>>2];if(d>>>0>=M[e+616>>2])break oa;while(1){f=k;k=f-8|0;e=J[k>>2];if(!K[e+622|0]&d>>>0>2])continue;break}break na}f=a}d=j;a=k}if(a>>> +0<=d>>>0){g=d;continue c}else{J[d>>2]=e;J[a>>2]=h;e=J[d+4>>2];f=f-4|0;J[d+4>>2]=J[f>>2];J[f>>2]=e;d=d+8|0;continue}}}break}break}break}}function dna(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;e=fc-96|0;fc=e;g=J[c+12>>2];d=J[c+20>>2];k=d;h=J[c+16>>2];f=P(h,d);d=f>>31;m=J[c+24>>2];n=fU(b+36|0,m,(d^f)-d|0);a:{b:{j=b+8|0;f=J[j>>2];if(!f)break b;d=j;while(1){i=M[f+16>>2]>>0;d=i?d:f;f=J[(i?f+4|0:f)>>2];if(f)continue;break}if((d|0)==(j|0)|M[d+16>>2]>n>>> +0)break b;J[a>>2]=J[d+20>>2];b=a;a=J[d+24>>2];J[b+4>>2]=a;if(!a)break a;J[a+4>>2]=J[a+4>>2]+1;break a}d=J[b+32>>2]+1|0;J[b+32>>2]=d;f=vc(32);J[f+12>>2]=0;J[f>>2]=2443812;J[f+4>>2]=0;J[f+8>>2]=0;H[f+31|0]=0;J[f+20>>2]=0;J[a+4>>2]=f;J[a>>2]=f+12;J[f+16>>2]=d;J[699344]=0;i=J[c+12>>2];d=J[699344];J[699344]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((d|0)==1)break q;J[699344]=0;o=J[c+16>>2];d=J[699344];J[699344]=0;if((d|0)==1)break q;J[699344]=0;d=J[c+24>>2];q=J[699344];J[699344]=0;c=1;if((q|0)== +1)break q;i=P(i,o);r:{if((i|0)<=0)break r;c=0;if(K[d+3|0]!=255)break r;d=d+3|0;while(1){c=c+1|0;if((i|0)!=(c|0)){o=K[d+4|0];d=d+4|0;if((o|0)==255)continue}break}c=(c|0)>=(i|0)}J[f+12>>2]=c;c=J[f+16>>2];J[699344]=0;d=e+72|0;da(6634,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break p;J[699344]=0;c=ga(2280,d|0,0,2443620)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;J[e+32>>2]=J[c+8>>2];d=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=d;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;c=J[f+12>>2];J[699344]=0;c=aa(3026, +e+24|0,((c|0)==1?2443644:2443664)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;i=J[c>>2];J[e+88>>2]=J[c+4>>2];d=K[c+7|0]|K[c+8|0]<<8|(K[c+9|0]<<16|K[c+10|0]<<24);H[e+91|0]=d;H[e+92|0]=d>>>8;H[e+93|0]=d>>>16;H[e+94|0]=d>>>24;J[c>>2]=0;J[c+4>>2]=0;d=K[c+11|0];J[c+8>>2]=0;if(H[f+31|0]<0)uc(J[f+20>>2]);J[f+20>>2]=i;J[f+24>>2]=J[e+88>>2];c=K[e+91|0]|K[e+92|0]<<8|(K[e+93|0]<<16|K[e+94|0]<<24);H[f+27|0]=c;H[f+28|0]=c>>>8;H[f+29|0]=c>>>16;H[f+30|0]=c>>>24;H[f+31|0]=d;if(H[e+35|0]<0)uc(J[e+24>>2]);if(H[e+ +83|0]<0)uc(J[e+72>>2]);J[699344]=0;i=e+24|0;c=i;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;J[e+72>>2]=g;J[c+4>>2]=J[e+72>>2];d=J[699344];J[699344]=0;if((d|0)==1)break k;J[699344]=0;J[e+72>>2]=h;J[c+8>>2]=J[e+72>>2];d=J[699344];J[699344]=0;if((d|0)==1)break j;J[699344]=0; +J[e+72>>2]=k;J[c+12>>2]=J[e+72>>2];d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;J[c+16>>2]=m;c=J[699344];J[699344]=0;if((c|0)==1)break h;c=J[b+28>>2];k=c>>>0>>0|c>>>0>>0;if(!k)break e;l=+(g>>>0)/+(h>>>0);p=+(c|0);if(g>>>0>>0)break g;d=c;l=p/l;s:{if(R(l)<2147483648){c=~~l;break s}c=-2147483648}c=(c|0)<=1?1:c;break f}f=Z()|0;break c}f=Z()|0;break c}f=Z()|0;break m}f=Z()|0;if(H[e+35|0]>=0)break m;uc(J[e+24>>2])}if(H[e+83|0]>=0)break c;uc(J[e+72>>2]);break c}f=Z()|0;break c}f=Z()| +0;break d}f=Z()|0;break d}f=Z()|0;break d}f=Z()|0;break d}l=l*p;t:{if(R(l)<2147483648){d=~~l;break t}d=-2147483648}d=(d|0)<=1?1:d}J[e+72>>2]=d;J[699344]=0;J[e+88>>2]=c;ha(6636,i|0,e+72|0,e+88|0,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break e;f=Z()|0;break d}J[e+20>>2]=0;J[e+16>>2]=0;c=J[f+12>>2];J[699344]=0;ha(6638,i|0,e+20|0,e+16|0,((c|0)==1?3:4)|0)|0;c=J[699344];J[699344]=0;u:{if((c|0)!=1){if(k)break u;J[699344]=0;J[i+16>>2]=0;c=J[699344];J[699344]=0;if((c|0)!=1)break u}f=Z()|0;break d}J[699344]= +0;c=eD(J[e+16>>2],0);d=J[699344];J[699344]=0;v:{w:{x:{if((d|0)!=1){J[e+12>>2]=c;d=J[f+12>>2];J[699344]=0;h=d?23:22;g=_(27,h+c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break v;if(d)break x;c=K[28699]|K[28700]<<8|(K[28701]<<16|K[28702]<<24);d=K[28695]|K[28696]<<8|(K[28697]<<16|K[28698]<<24);H[g+14|0]=d;H[g+15|0]=d>>>8;H[g+16|0]=d>>>16;H[g+17|0]=d>>>24;H[g+18|0]=c;H[g+19|0]=c>>>8;H[g+20|0]=c>>>16;H[g+21|0]=c>>>24;c=K[28693]|K[28694]<<8|(K[28695]<<16|K[28696]<<24);d=K[28689]|K[28690]<<8|(K[28691]<<16| +K[28692]<<24);H[g+8|0]=d;H[g+9|0]=d>>>8;H[g+10|0]=d>>>16;H[g+11|0]=d>>>24;H[g+12|0]=c;H[g+13|0]=c>>>8;H[g+14|0]=c>>>16;H[g+15|0]=c>>>24;c=K[28685]|K[28686]<<8|(K[28687]<<16|K[28688]<<24);d=K[28681]|K[28682]<<8|(K[28683]<<16|K[28684]<<24);H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=d>>>16;H[g+3|0]=d>>>24;H[g+4|0]=c;H[g+5|0]=c>>>8;H[g+6|0]=c>>>16;H[g+7|0]=c>>>24;break w}f=Z()|0;break d}c=K[28723]|K[28724]<<8|(K[28725]<<16|K[28726]<<24);d=K[28719]|K[28720]<<8|(K[28721]<<16|K[28722]<<24);H[g+15|0]=d;H[g+16|0]=d>>> +8;H[g+17|0]=d>>>16;H[g+18|0]=d>>>24;H[g+19|0]=c;H[g+20|0]=c>>>8;H[g+21|0]=c>>>16;H[g+22|0]=c>>>24;c=K[28716]|K[28717]<<8|(K[28718]<<16|K[28719]<<24);d=K[28712]|K[28713]<<8|(K[28714]<<16|K[28715]<<24);H[g+8|0]=d;H[g+9|0]=d>>>8;H[g+10|0]=d>>>16;H[g+11|0]=d>>>24;H[g+12|0]=c;H[g+13|0]=c>>>8;H[g+14|0]=c>>>16;H[g+15|0]=c>>>24;c=K[28708]|K[28709]<<8|(K[28710]<<16|K[28711]<<24);d=K[28704]|K[28705]<<8|(K[28706]<<16|K[28707]<<24);H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=d>>>16;H[g+3|0]=d>>>24;H[g+4|0]=c;H[g+5|0]=c>>> +8;H[g+6|0]=c>>>16;H[g+7|0]=c>>>24}J[699344]=0;dD(J[e+20>>2],J[e+16>>2],g+h|0,e+12|0,2);c=J[699344];J[699344]=0;if((c|0)==1)break v;c=J[e+20>>2];if(c){uc(c);J[e+20>>2]=0}y:{z:{A:{c=h+J[e+12>>2]|0;if(c>>>0>=2147483632){J[699344]=0;$(3030,e+72|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;B()}h=J[f+16>>2];B:{if(c>>>0<=10){H[e+83|0]=c;f=e+72|0;break B}J[699344]=0;d=(c|15)+1|0;f=_(4,d|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break A;J[e+72>>2]=f;J[e+76>>2]=c;J[e+80>>2]=d|-2147483648}r=xc(f,g,c)+c|0,s= +0,H[r|0]=s;k=H[e+83|0];c=K[e+79|0]|K[e+80|0]<<8|(K[e+81|0]<<16|K[e+82|0]<<24);J[e+80>>2]=0;m=J[e+72>>2];d=J[e+76>>2];J[e+72>>2]=0;J[e+76>>2]=0;J[e+88>>2]=d;H[e+91|0]=c;H[e+92|0]=c>>>8;H[e+93|0]=c>>>16;H[e+94|0]=c>>>24;c=b+20|0;f=c;C:{D:{d=J[b+20>>2];E:{if(!d)break E;while(1){f=d;c=J[d+16>>2];if((c|0)>(h|0)){c=d;d=J[c>>2];if(d)continue;break E}if((c|0)>=(h|0))break D;d=J[f+4>>2];if(d)continue;break}c=f+4|0}J[699344]=0;d=_(4,32)|0;o=J[699344];J[699344]=0;if((o|0)==1)break z;J[d+16>>2]=h;J[d+20>>2]= +m;J[d+24>>2]=J[e+88>>2];h=K[e+91|0]|K[e+92|0]<<8|(K[e+93|0]<<16|K[e+94|0]<<24);H[d+27|0]=h;H[d+28|0]=h>>>8;H[d+29|0]=h>>>16;H[d+30|0]=h>>>24;H[d+31|0]=k;H[e+91|0]=0;H[e+92|0]=0;H[e+93|0]=0;H[e+94|0]=0;J[e+88>>2]=0;J[d+8>>2]=f;J[d>>2]=0;J[d+4>>2]=0;J[c>>2]=d;f=J[J[b+16>>2]>>2];if(f){J[b+16>>2]=f;d=J[c>>2]}Oc(J[b+20>>2],d);J[b+24>>2]=J[b+24>>2]+1;break C}if((k|0)>=0)break C;uc(m)}if(H[e+83|0]<0)uc(J[e+72>>2]);uc(g);J[e+72>>2]=n;g=J[a>>2];J[e+76>>2]=g;c=J[a+4>>2];J[e+80>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+ +1;f=j;d=J[f>>2];F:{G:{if(!d)break G;while(1){f=d;j=J[d+16>>2];if(j>>>0>n>>>0){j=d;d=J[d>>2];if(d)continue;break G}if(j>>>0>=n>>>0)break F;d=J[f+4>>2];if(d)continue;break}j=f+4|0}J[699344]=0;d=_(4,28)|0;h=J[699344];J[699344]=0;if((h|0)==1)break y;J[d+16>>2]=n;J[d+24>>2]=c;J[d+20>>2]=g;J[e+76>>2]=0;J[e+80>>2]=0;J[d+8>>2]=f;J[d>>2]=0;J[d+4>>2]=0;J[j>>2]=d;a=J[J[b+4>>2]>>2];if(a){J[b+4>>2]=a;d=J[j>>2]}Oc(J[b+8>>2],d);J[b+12>>2]=J[b+12>>2]+1;c=J[e+80>>2]}H:{if(!c)break H;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break H; +kc[J[J[c>>2]+8>>2]](c);Gc(c)}Yg(i);break a}f=Z()|0;break d}f=Z()|0;if((k|0)>=0)break d;uc(m);if(H[e+83|0]>=0)break d;uc(J[e+72>>2]);break d}f=Z()|0;eU(e+72|0);break d}f=Z()|0}Yg(i)}je(a);ba(f|0);B()}fc=e+96|0}function $3(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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0;g=fc-112|0;fc=g;a:{if(!e|(!b|!c))break a;J[g+80>>2]=17;J[g+84>>2]=J[e+8>>2];e=J[e+12>>2];J[g+108>>2]=c;J[g+104>> +2]=4;J[g+88>>2]=e;J[g+76>>2]=0;if(aE(b,g+80|0,0,g+76|0))break a;c=J[g+76>>2];if(!(H[c+8|0]&1)){ey(c);break a}y=J[c>>2];if(ey(c)|(y|0)<=0)break a;N=f&1;b:{c:{d:{e:{f:{g:{while(1){h:{i:{if(aE(b,g+80|0,u,g+76|0))break i;c=J[g+76>>2];s=J[c+12>>2];c=Y7(c);H[g+64|0]=0;H[g+75|0]=0;j:{if(!c)break j;J[699344]=0;c=_(2973,J[g+76>>2])|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[699344]=0;aa(2974,g- -64|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break j}e=Z()|0;break b}c=J[g+76>>2];O=J[c+8>>2];J[699344]=0;c=aa(2919, +c|0,2)|0;e=J[699344];J[699344]=0;k:{l:{if((e|0)!=1){f=J[g+76>>2];if(!c){v=0;z=0;A=0;t=0;j=0;n=0;o=0;k=0;q=0;C=0;e=0;D=0;E=0;F=0;G=0;M=0;c=0;break k}M=c+32|0;A=L[c+8>>1];t=L[c+30>>1];v=L[c+6>>1];z=L[c+4>>1];C=J[c+84>>2];e=J[c+80>>2];D=J[c+56>>2];E=J[c+52>>2];F=J[c+48>>2];G=J[c+44>>2];h=L[f+68>>1];if(!h)break l;p=1E3/+(h>>>0);l=p*+I[c+90>>1];m:{if(R(l)<2147483648){q=~~l;break m}q=-2147483648}l=p*+I[c+88>>1];n:{if(R(l)<2147483648){k=~~l;break n}k=-2147483648}l=p*+I[c+74>>1];o:{if(R(l)<2147483648){o= +~~l;break o}o=-2147483648}l=p*+I[c+72>>1];p:{if(R(l)<2147483648){n=~~l;break p}n=-2147483648}l=p*+I[c+70>>1];q:{if(R(l)<2147483648){j=~~l;break q}j=-2147483648}p=p*+I[c+2>>1];if(R(p)<2147483648){c=~~p;break k}c=-2147483648;break k}e=Z()|0;break b}q=I[c+90>>1];k=I[c+88>>1];o=I[c+74>>1];n=I[c+72>>1];j=I[c+70>>1];c=I[c+2>>1]}w=c;h=J[f+36>>2];if((h|0)>0){c=0;while(1){r:{if((e|0)<0)break r;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1])break r;e=L[i+8>>1]==3?e|-2147483648:e}s:{if(e&131072)break s;i=J[J[f+40>> +2]+(c<<2)>>2];if(L[i+10>>1]!=2)break s;e=L[i+8>>1]==3?e|131072:e}t:{if(e&262144)break t;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=3)break t;e=L[i+8>>1]==3?e|262144:e}u:{if(e&1048576)break u;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=4)break u;e=L[i+8>>1]==3?e|1048576:e}v:{if(e&524288)break v;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=5)break v;e=L[i+8>>1]==3?e|524288:e}w:{if(e&2097152)break w;i=J[J[f+40>>2]+(c<<2)>>2];if(L[i+10>>1]!=6)break w;e=L[i+8>>1]==3?e|2097152:e}c=c+1|0;if((h|0)!=(c|0))continue; +break}}J[699344]=0;m=_(2925,f|0)|0;c=J[699344];J[699344]=0;x:{y:{z:{if((c|0)!=1){if(!((m|0)==2&N|(m|0)==1)){J[699344]=0;_(2913,J[g+76>>2])|0;c=J[699344];J[699344]=0;if((c|0)!=1)break x;e=Z()|0;break b}h=J[J[g+76>>2]+20>>2];if(!h)break z;f=0;A:{c=h;r=K[c|0];if(!r)break A;while(1){i=f;f=f+1|0;x=K[c+1|0];c=c+1|0;if(x)continue;break}if((r|0)!=60|i>>>0<6|(K[h+1|0]!=117|K[h+2|0]!=116))break A;if(K[h+3|0]!=102|K[h+4|0]!=56|K[h+5|0]!=62)break A;J[699344]=0;ca(1618,g+52|0,h+6|0,i-5|0);c=J[699344];J[699344]= +0;if((c|0)!=1)break y;break c}J[699344]=0;ia(2848,g+52|0,h|0,f|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break c;break y}e=Z()|0;break b}J[g+52>>2]=0;H[g+63|0]=0}h=J[J[g+76>>2]+24>>2];B:{if(h){f=0;C:{c=h;r=K[c|0];if(!r)break C;while(1){i=f;f=f+1|0;x=K[c+1|0];c=c+1|0;if(x)continue;break}if((r|0)!=60|i>>>0<6|(K[h+1|0]!=117|K[h+2|0]!=116))break C;if(K[h+3|0]!=102|K[h+4|0]!=56|K[h+5|0]!=62)break C;J[699344]=0;ca(1618,g+40|0,h+6|0,i-5|0);c=J[699344];J[699344]=0;if((c|0)!=1)break B;break e}J[699344]=0;ia(2848, +g+40|0,h|0,f|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break e;break B}J[g+40>>2]=0;H[g+51|0]=0}f=g+52|0;h=Ci(f,63,0);J[699344]=0;c=_(4,128)|0;i=J[699344];J[699344]=0;if((i|0)==1)break h;J[699344]=0;n=hb(2961,c|0,f|0,g+40|0,d|0,u|0,s>>>1&1,s&1,O>>>2&1,M|0,G|0,F|0,E|0,D|0,e|0,C|0,z|0,v|0,t<<16>>16,m|0,w<<16>>16,j<<16>>16,n<<16>>16,o<<16>>16,k<<16>>16,q<<16>>16,A|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;o=J[g+76>>2];D:{if(!o|!(K[o+8|0]&8))break D;s=L[o+340>>1];if(!s)break D;t=(h|0)!=-1;v=J[o+ +356>>2];w=n+116|0;e=0;while(1){c=v+P(e,20)|0;E:{if(L[c+6>>1]!=1|!L[c+8>>1])break E;H[g+24|0]=0;H[g+35|0]=0;F:{G:switch(L[c>>1]){case 0:break F;case 3:break G;default:break E}switch(L[c+2>>1]){case 0:case 1:case 10:break F;default:break E}}J[g+24>>2]=759583829;J[g+28>>2]=1161967153;H[g+35|0]=8;H[g+32|0]=0;f=J[o+368>>2];j=J[J[g+76>>2]+100>>2];J[g+20>>2]=0;h=L[c+8>>1];J[699344]=0;h=ja(2975,j|0,1,0,h|0,0,g+20|0)|0;k=J[699344];J[699344]=0;H:{I:{J:{K:{if((k|0)==1)break K;J[c+16>>2]=h;L:{if(J[g+20>>2])break L; +h=J[c+12>>2];J[699344]=0;k=aa(2976,f|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break K;J[g+20>>2]=k;h=J[c+16>>2];if(k)break L;k=L[c+8>>1];J[699344]=0;f=ga(2977,f|0,h|0,k|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break K;J[g+20>>2]=f;if(!f)break J;h=J[c+16>>2]}J[699344]=0;da(2978,j|0,h|0);f=J[699344];J[699344]=0;if((f|0)==1)break K;J[c+16>>2]=0;I[c+8>>1]=0;break H}e=Z()|0;break I}J[699344]=0;q=_(2979,g+16|0)|0;f=J[699344];J[699344]=0;M:{N:{O:{P:{Q:{if((f|0)!=1){f=J[c+16>>2];J[g>>2]=L[c+8>>1];J[699344]= +0;k=g+4|0;la(2980,k|0,q|0,f|0,g|0,(H[g+35|0]<0?J[g+24>>2]:g+24|0)|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break O;c=H[g+63|0];f=(c|0)<0;j=f?J[g+56>>2]:c&255;if(!j)break P;h=K[g+15|0];c=h<<24>>24<0;h=c?J[g+8>>2]:h;R:{if((j|0)>(h|0))break R;c=c?J[g+4>>2]:k;k=c+(h<<2)|0;i=f?J[g+52>>2]:g+52|0;m=J[i>>2];f=c;while(1){h=(h-j|0)+1|0;if(!h)break R;f=og(f,m,h);if(!f)break R;if(qd(f,i,j)){f=f+4|0;h=k-f>>2;if((j|0)<=(h|0))continue;break R}break}if((f|0)==(k|0))break R;if((f-c|0)!=-4)break P}c=g+52|0;h=K[c+11| +0];f=h<<24>>24<0;h=f?J[c+4>>2]:h;i=g+4|0;j=K[i+11|0];m=j<<24>>24<0;k=m?J[i+4>>2]:j;if(k){j=h<<2;h=f?J[c>>2]:c;f=j+h|0;j=h;c=f-h>>2;S:{T:{if((k|0)>(c|0))break T;i=m?J[i>>2]:i;m=J[i>>2];while(1){c=(c-k|0)+1|0;if(!c)break T;c=og(j,m,c);if(!c)break T;if(!qd(c,i,k))break S;j=c+4|0;c=f-j>>2;if((k|0)<=(c|0))continue;break}}c=f}c=(c|0)==(f|0)?-1:c-h>>2}else c=0;if((c|0)!=-1)break P;m=J[n+116>>2];c=m;f=c;h=J[n+120>>2];U:{if((h|0)==(c|0))break U;while(1){f=K[c+11|0];j=f<<24>>24<0;i=K[g+15|0];k=i<<24>>24<0; +r=k?J[g+8>>2]:i;i=j?J[c+4>>2]:f;if((r|0)==(i|0)){f=h;if(!i)break U;j=qd(j?J[c>>2]:c,k?J[g+4>>2]:g+4|0,i);h=J[n+120>>2];f=h;if(!j)break U}c=c+12|0;f=h;if((c|0)!=(h|0))continue;break}}if(!(t&1)|J[w>>2]!=(f|0))break Q;J[699344]=0;c=g+52|0;aa(2981,c|0,g+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break N;t=0;J[699344]=0;aa(2981,n|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break P;break N}e=Z()|0;break I}if((f|0)!=(m|0))break P;J[699344]=0;da(2982,w|0,g+4|0);c=J[699344];J[699344]=0;if((c|0)==1)break N}if(H[g+ +15|0]<0)uc(J[g+4>>2]);iA(q);break H}e=Z()|0;break M}e=Z()|0;if(H[g+15|0]>=0)break M;uc(J[g+4>>2])}iA(q)}if(H[g+35|0]>=0)break f;uc(J[g+24>>2]);break f}if(H[g+35|0]>=0)break E;uc(J[g+24>>2])}e=e+1|0;if((s|0)!=(e|0))continue;break}}J[699344]=0;da(2983,a|0,n|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;_(2913,J[g+76>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;if(H[g+51|0]<0)uc(J[g+40>>2]);if(H[g+63|0]>=0)break x;uc(J[g+52>>2])}if(H[g+75|0]>=0)break i;uc(J[g+64>>2])}u=u+1|0;if((y| +0)!=(u|0))continue;break a}break}e=Z()|0;break f}e=Z()|0;uc(c)}if(H[g+51|0]>=0)break d;uc(J[g+40>>2]);break d}e=Z()|0}if(H[g+63|0]>=0)break b;uc(J[g+52>>2]);break b}e=Z()|0}if(H[g+75|0]<0)uc(J[g+64>>2]);ba(e|0);B()}fc=g+112|0}function UB(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0,M=0,N=0,Q=0;e=fc-144|0;fc=e;J[e+32>>2]=13;J[e+16>>2]=13;j=J[J[a+28>>2]+492>>2];z=kc[J[J[j>>2]+12>>2]](j)|0;i=J[J[693464]+388>> +2];c=J[j+16>>2];if(c)c=J[c+4>>2];else c=835160;s=(Pw(i,c)|0)!=0;c=J[a+8>>2];i=J[c>>2];a:{if(s){if(!(kc[J[i+32>>2]](c)|0))break a;a=J[a+8>>2];kc[J[J[a>>2]+268>>2]](a,J[b>>2]);break a}if(kc[J[i+12>>2]](c)|0){c=J[a+8>>2];kc[J[J[c>>2]+240>>2]](c,J[a+28>>2],b)}C=1;c=J[a+28>>2];i=J[c+592>>2];b:{if(i&1)break b;c=J[c+116>>2];s=kc[J[J[c>>2]+12>>2]](c)|0;c=J[a+28>>2];if((s|0)!=10)break b;s=J[a+8>>2];kc[J[J[s>>2]+64>>2]](s,c);c=Bw(J[a+28>>2]);J[a+28>>2]=c;J[c+592>>2]=(i^i>>>1)&1?5:7;i=J[a+8>>2];kc[J[J[i>>2]+ +168>>2]](i,c);c=J[a+28>>2];C=0}d=O[c+584>>3];o=O[c+512>>3]*0+d*O[c+528>>3];D=O[c+608>>3];l=O[c+504>>3]*0+d*O[c+520>>3];E=O[c+600>>3];c:{d:{if(J[j+20>>2]!=4)break d;c=J[a+8>>2];if(!(kc[J[J[c>>2]+24>>2]](c)|0))break d;F=J[a+108>>2];i=J[b>>2];if((i|0)>0){c=J[a+28>>2];d=O[c+496>>3];f=O[c+520>>3];g=O[c+24>>3];n=O[c+40>>3];p=O[c+528>>3];k=f*g+n*p;q=O[j+56>>3];m=O[j+40>>3];u=O[c+504>>3];t=u*g;g=O[c+512>>3];x=O[j+48>>3];n=m*(t+g*n)+x*k;t=O[j- -64>>3];k=d*(q*n+k*t);n=n*d;y=O[c+16>>3];v=O[c+32>>3];f=f*y+v* +p;g=m*(u*y+g*v)+x*f;m=O[c+568>>3];p=g*d*m;q=m*(d*(q*g+f*t));g=O[c+600>>3];f=O[c+608>>3];r=J[b+4>>2];while(1){s=kc[J[J[j>>2]+16>>2]](j,r,i,e+140|0,e+96|0,8,e+12|0,e+88|0,e+80|0,e+56|0,e+48|0)|0;c=J[a+28>>2];m=O[c+496>>3];d=O[e+88>>3]*m+O[c+552>>3];O[e+88>>3]=d;u=O[c+568>>3]*((s|0)!=1|K[r|0]!=32?d:d+O[c+560>>3]);O[e+88>>3]=u;x=m*O[e+80>>3];O[e+80>>3]=x;d=O[c+56>>3];v=O[c+40>>3];G=O[c+24>>3];m=O[c+48>>3];H=O[c+32>>3];I=O[c+520>>3];L=O[c+512>>3];M=O[c+528>>3];t=O[c+16>>3];N=O[c+504>>3];h=J[a+8>>2];kc[J[J[h>> +2]+64>>2]](h,c);z=J[a+28>>2];c=vc(672);J[699344]=0;h=ga(3564,c|0,z|0,1)|0;w=J[699344];J[699344]=0;e:{f:{g:{if((w|0)!=1){J[a+28>>2]=h;Q=t;t=l+g;y=o+f;m=m+(Q*t+y*H);O[h+16>>3]=p;v=d+(G*t+y*v);O[h+56>>3]=v;O[h+48>>3]=m;O[h+40>>3]=k;O[h+32>>3]=q;O[h+24>>3]=n;d=1E10;h:{if(!(p>1E10)){d=-1E10;if(!(p<-1E10))break h}O[h+16>>3]=d}d=1E10;i:{if(!(n>1E10)){d=-1E10;if(!(n<-1E10))break i}O[h+24>>3]=d}d=1E10;j:{if(!(q>1E10)){d=-1E10;if(!(q<-1E10))break j}O[h+32>>3]=d}d=1E10;k:{if(!(k>1E10)){d=-1E10;if(!(k<-1E10))break k}O[h+ +40>>3]=d}d=1E10;l:{if(!(m>1E10)){d=-1E10;if(!(m<-1E10))break l}O[h+48>>3]=d}d=1E10;m:{if(!(v>1E10)){d=-1E10;if(!(v<-1E10))break m}O[h+56>>3]=d}c=J[a+8>>2];kc[J[J[c>>2]+76>>2]](c,J[a+28>>2],1,0,0,1,0,0);h=J[a+8>>2];c=J[a+28>>2];d=O[e+88>>3];m=O[e+80>>3];if(kc[J[J[h>>2]+256>>2]](h,c,t,y,O[c+16>>3]*d+m*O[c+32>>3],O[c+24>>3]*d+m*O[c+40>>3],J[e+140>>2],e+96|0,J[e+12>>2])|0)break e;c=e+32|0;h=J[((J[e+140>>2]<<2)+j|0)+164>>2];n:{if(!(!h|J[j+3512>>2]!=7)){Ke(J[j+3520>>2],h,c);break n}J[c>>2]=5}jf(c,J[a+4>> +2],e+16|0,0);h=J[j+3528>>2]==7?J[j+3536>>2]:0;if(!h)break f;c=vc(112);w=J[a+20>>2];A=J[a+4>>2];J[699344]=0;w=ha(3565,c|0,A|0,h|0,w|0)|0;A=J[699344];J[699344]=0;if((A|0)!=1)break g}a=Z()|0;uc(c);ba(a|0);B()}J[a+20>>2]=w}o:{if(J[e+16>>2]==8){TB(a,e+32|0);break o}c=-1;w=J[a+108>>2];p:{if(!w)break p;w=J[w+4>>2];if(J[w+8>>2]==13)break p;c=J[w+16>>2];c=kc[J[J[c>>2]+52>>2]](c)|0}Cc(1,c,835204,0)}c=J[a+8>>2];kc[J[J[c>>2]+260>>2]](c,J[a+28>>2]);if(h){c=J[a+20>>2];h=J[c+104>>2];uc(HJ(c));J[a+20>>2]=h}yc(e+ +16|0);yc(e+32|0)}c=J[a+28>>2];if(J[c+668>>2])while(1){c=Mm(c);J[a+28>>2]=c;h=J[a+8>>2];kc[J[J[h>>2]+68>>2]](h,c);c=J[a+28>>2];if(J[c+668>>2])continue;break}uc(Br(c));J[a+28>>2]=z;c=J[a+8>>2];kc[J[J[c>>2]+68>>2]](c,z);c=J[a+28>>2];f=f+(L*u+x*M);O[c+608>>3]=f;g=g+(N*u+x*I);O[c+600>>3]=g;c=J[c+596>>2];O[c+16>>3]=f;O[c+8>>3]=g;J[c>>2]=1;r=r+s|0;i=i-s|0;if((i|0)>0)continue;break}}J[a+108>>2]=F;break c}c=J[a+8>>2];if(kc[J[J[c>>2]+12>>2]](c)|0){h=J[b>>2];if((h|0)<=0)break c;i=J[b+4>>2];while(1){r=kc[J[J[j>> +2]+16>>2]](j,i,h,e+140|0,e+96|0,8,e+12|0,e+88|0,e+80|0,e+56|0,e+48|0)|0;q:{if(z){c=J[a+28>>2];g=O[c+496>>3];d=g*O[e+88>>3];O[e+88>>3]=d;f=g*O[e+80>>3]+O[c+552>>3];O[e+80>>3]=f;if((r|0)!=1|K[i|0]!=32)break q;f=f+O[c+560>>3];O[e+80>>3]=f;break q}c=J[a+28>>2];g=O[c+496>>3];d=O[e+88>>3]*g+O[c+552>>3];O[e+88>>3]=d;d=(r|0)!=1|K[i|0]!=32?d:d+O[c+560>>3];k=O[c+568>>3];f=g*O[e+80>>3];O[e+80>>3]=f;d=k*d;O[e+88>>3]=d}k=O[c+520>>3];n=O[c+512>>3];p=O[c+528>>3];q=O[c+504>>3];m=g*O[e+48>>3];O[e+48>>3]=m;g=g*O[e+ +56>>3];O[e+56>>3]=g;s=J[a+8>>2];u=q*d+f*k;d=n*d+f*p;kc[J[J[s>>2]+248>>2]](s,c,l+O[c+600>>3],o+O[c+608>>3],u,d,q*g+k*m,n*g+p*m,J[e+140>>2],r,e+96|0,J[e+12>>2]);c=J[a+28>>2];O[c+600>>3]=O[c+600>>3]+u;O[c+608>>3]=O[c+608>>3]+d;i=i+r|0;h=h-r|0;if((h|0)>0)continue;break}break c}J[e+88>>2]=0;J[e+92>>2]=0;J[e+80>>2]=0;J[e+84>>2]=0;i=J[b>>2];if((i|0)<=0)d=0;else{c=J[b+4>>2];while(1){s=kc[J[J[j>>2]+16>>2]](j,c,i,e+140|0,e+96|0,8,e+12|0,e+72|0,e- -64|0,e+56|0,e+48|0)|0;f=O[e+72>>3]+O[e+88>>3];O[e+88>>3]=f; +g=O[e+64>>3]+O[e+80>>3];O[e+80>>3]=g;r=(s|0)==1?(K[c|0]==32)+r|0:r;c=c+s|0;h=h+1|0;i=i-s|0;if((i|0)>0)continue;break}k=+(r|0);d=+(h|0)}c=J[a+28>>2];n=O[c+496>>3];r:{if(z){f=n*f;d=k*O[c+560>>3]+(g*n+O[c+552>>3]*d);break r}f=(k*O[c+560>>3]+(f*n+O[c+552>>3]*d))*O[c+568>>3];d=n*g}O[e+88>>3]=f;O[e+80>>3]=d;k=O[c+520>>3];g=O[c+512>>3];n=O[c+528>>3];p=O[c+504>>3];j=J[a+8>>2];kc[J[J[j>>2]+252>>2]](j,c,b);c=J[a+28>>2];O[c+600>>3]=O[c+600>>3]+(p*f+d*k);O[c+608>>3]=O[c+608>>3]+(g*f+d*n)}c=J[a+8>>2];if(kc[J[J[c>> +2]+12>>2]](c)|0){c=J[a+8>>2];kc[J[J[c>>2]+244>>2]](c,J[a+28>>2])}if(!C){c=J[a+8>>2];kc[J[J[c>>2]+192>>2]](c,J[a+28>>2]);c=J[a+8>>2];kc[J[J[c>>2]+264>>2]](c,J[a+28>>2]);c=J[a+28>>2];f=O[c+512>>3];n=O[c+528>>3];m=O[c+600>>3];q=O[c+608>>3];g=O[c+504>>3];k=O[c+496>>3];p=O[c+520>>3];d=R(g*k+p*0);O[e+72>>3]=d;g=R(g*0+k*p);O[e+88>>3]=g;p=D+o;o=o+q;j=p>o;q=l+E;l=l+m;i=q>l;if(d>g){O[e+88>>3]=d;g=d}d=R(f*k+n*0);O[e+64>>3]=d;f=R(f*0+k*n);O[e+80>>3]=f;u=g+g;k=(i?l:q)-u;if(d>f){O[e+80>>3]=d;f=d}d=f+f;g=(j?o:p)- +d;m=d+(j?p:o);n=O[c+56>>3];o=O[c+24>>3];l=u+(i?q:l);q=o*l;u=O[c+40>>3];f=u*g;d=n+(q+f);x=o*k;f=n+(x+f);p=O[c+48>>3];t=O[c+16>>3];y=t*l;v=O[c+32>>3];l=v*g;o=p+(y+l);t=t*k;l=p+(t+l);s:{if(of)){l=f;d=f;break t}l=f}f=q;q=u*m;f=n+(f+q);m=v*m;g=p+(y+m);u:{v:{if(k>g){k=g;break v}if(g>o)break u}g=o}w:{x:{if(ff)break A}d=f}if(O[c+632>>3]>3]=k;if(O[c+640>>3]>3]=l;if(O[c+648>>3]>o)O[c+648>>3]=o;if(O[c+656>>3]>d)O[c+656>>3]=d;c=J[a+28>>2];J[c+592>>2]=0;j=J[a+8>>2];kc[J[J[j>>2]+168>>2]](j,c);j=fc-16|0;fc=j;c=J[a+8>>2];C:{if(!(kc[J[J[c>>2]+28>>2]](c)|0))break C;c=J[J[a+28>>2]+380>>2];if(!c)break C;i=-1;D:{E:{F:{h=J[c+4>>2];switch(h-1|0){case 1:break E;case 0:break F;default:break D}}GJ(a,c,0,0,1);break C}FJ(a,c,0,0,1);break C}r=J[a+108>>2];G:{if(!r)break G;r=J[r+4>>2];if(J[r+ +8>>2]==13)break G;i=J[r+16>>2];i=kc[J[J[i>>2]+52>>2]](i)|0;h=J[c+4>>2]}J[j>>2]=h;Cc(1,i,831171,j)}fc=j+16|0;c=Mm(J[a+28>>2]);J[a+28>>2]=c;j=J[a+8>>2];kc[J[J[j>>2]+68>>2]](j,c);c=J[a+8>>2];kc[J[J[c>>2]+196>>2]](c,J[a+28>>2])}J[a+24>>2]=J[a+24>>2]+P(J[b>>2],10)}fc=e+144|0}function tna(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=fc-16|0;fc=a;e=K[b+11|0];a:{if((e<<24>>24<0?J[b+4>>2]:e)>>>0<8)break a;if(J[_h(b,6)>>2]!=43)break a;if(J[_h(b,0)>>2]-65>>>0>25)break a;if(J[_h(b,1)>>2]-65>>>0>25)break a; +if(J[_h(b,2)>>2]-65>>>0>25)break a;if(J[_h(b,3)>>2]-65>>>0>25)break a;if(J[_h(b,4)>>2]-65>>>0>25)break a;if(J[_h(b,5)>>2]-65>>>0>25)break a;sv(b,0,7)}e=vc(32);J[a+4>>2]=e;J[a+8>>2]=7;J[a+12>>2]=-2147483640;J[e+24>>2]=J[610717];f=J[610716];J[e+16>>2]=J[610715];J[e+20>>2]=f;f=J[610714];J[e+8>>2]=J[610713];J[e+12>>2]=f;f=J[610712];J[e>>2]=J[610711];J[e+4>>2]=f;J[e+28>>2]=0;J[699344]=0;ga(6625,a|0,b|0,a+4|0)|0;e=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((e|0)!=1){if(H[a+ +15|0]<0)uc(J[a+4>>2]);e=vc(48);J[a+4>>2]=e;J[a+8>>2]=9;J[a+12>>2]=-2147483636;J[e+32>>2]=J[610727];f=J[610726];J[e+24>>2]=J[610725];J[e+28>>2]=f;f=J[610724];J[e+16>>2]=J[610723];J[e+20>>2]=f;f=J[610722];J[e+8>>2]=J[610721];J[e+12>>2]=f;f=J[610720];J[e>>2]=J[610719];J[e+4>>2]=f;J[e+36>>2]=0;J[699344]=0;ga(6625,a|0,b|0,a+4|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break q;if(H[a+15|0]<0)uc(J[a+4>>2]);e=vc(64);J[a+4>>2]=e;J[a+8>>2]=14;J[a+12>>2]=-2147483632;f=J[610742];J[e+48>>2]=J[610741];J[e+52>>2]= +f;f=J[610740];J[e+40>>2]=J[610739];J[e+44>>2]=f;f=J[610738];J[e+32>>2]=J[610737];J[e+36>>2]=f;f=J[610736];J[e+24>>2]=J[610735];J[e+28>>2]=f;f=J[610734];J[e+16>>2]=J[610733];J[e+20>>2]=f;f=J[610732];J[e+8>>2]=J[610731];J[e+12>>2]=f;f=J[610730];J[e>>2]=J[610729];J[e+4>>2]=f;J[e+56>>2]=0;J[699344]=0;ga(6625,a|0,b|0,a+4|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break p;if(H[a+15|0]<0)uc(J[a+4>>2]);e=vc(64);J[a+4>>2]=e;J[a+8>>2]=13;J[a+12>>2]=-2147483632;J[e+48>>2]=J[610756];f=J[610755];J[e+40>>2]=J[610754]; +J[e+44>>2]=f;f=J[610753];J[e+32>>2]=J[610752];J[e+36>>2]=f;f=J[610751];J[e+24>>2]=J[610750];J[e+28>>2]=f;f=J[610749];J[e+16>>2]=J[610748];J[e+20>>2]=f;f=J[610747];J[e+8>>2]=J[610746];J[e+12>>2]=f;f=J[610745];J[e>>2]=J[610744];J[e+4>>2]=f;J[e+52>>2]=0;J[699344]=0;ga(6625,a|0,b|0,a+4|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;if(H[a+15|0]<0)uc(J[a+4>>2]);e=vc(48);J[a+4>>2]=e;J[a+8>>2]=8;J[a+12>>2]=-2147483636;f=J[610765];J[e+24>>2]=J[610764];J[e+28>>2]=f;f=J[610763];J[e+16>>2]=J[610762];J[e+20>> +2]=f;f=J[610761];J[e+8>>2]=J[610760];J[e+12>>2]=f;f=J[610759];J[e>>2]=J[610758];J[e+4>>2]=f;J[e+32>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break n;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e)H[c|0]=1;e=vc(32);J[a+4>>2]=e;J[a+8>>2]=6;J[a+12>>2]=-2147483640;f=J[610772];J[e+16>>2]=J[610771];J[e+20>>2]=f;f=J[610770];J[e+8>>2]=J[610769];J[e+12>>2]=f;f=J[610768];J[e>>2]=J[610767];J[e+4>>2]=f;J[e+24>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f| +0)==1)break m;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e)H[c|0]=1;e=vc(32);J[a+4>>2]=e;J[a+8>>2]=4;J[a+12>>2]=-2147483640;f=J[610777];J[e+8>>2]=J[610776];J[e+12>>2]=f;f=J[610775];J[e>>2]=J[610774];J[e+4>>2]=f;J[e+16>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e)H[c|0]=1;e=vc(48);J[a+4>>2]=e;J[a+8>>2]=8;J[a+12>>2]=-2147483636;f=J[610786];J[e+24>>2]=J[610785];J[e+28>>2]=f;f=J[610784];J[e+16>>2]=J[610783];J[e+20>>2]=f;f=J[610782];J[e+ +8>>2]=J[610781];J[e+12>>2]=f;f=J[610780];J[e>>2]=J[610779];J[e+4>>2]=f;J[e+32>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break k;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e)H[d|0]=1;e=vc(32);J[a+4>>2]=e;J[a+8>>2]=6;J[a+12>>2]=-2147483640;f=J[610793];J[e+16>>2]=J[610792];J[e+20>>2]=f;f=J[610791];J[e+8>>2]=J[610790];J[e+12>>2]=f;f=J[610789];J[e>>2]=J[610788];J[e+4>>2]=f;J[e+24>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break j;if(H[a+ +15|0]<0)uc(J[a+4>>2]);if(e)H[d|0]=1;e=vc(32);J[a+4>>2]=e;J[a+8>>2]=7;J[a+12>>2]=-2147483640;J[e+24>>2]=J[610801];f=J[610800];J[e+16>>2]=J[610799];J[e+20>>2]=f;f=J[610798];J[e+8>>2]=J[610797];J[e+12>>2]=f;f=J[610796];J[e>>2]=J[610795];J[e+4>>2]=f;J[e+28>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e)H[d|0]=1;e=vc(64);J[a+4>>2]=e;J[a+8>>2]=12;J[a+12>>2]=-2147483632;f=J[610814];J[e+40>>2]=J[610813];J[e+44>>2]=f;f=J[610812];J[e+ +32>>2]=J[610811];J[e+36>>2]=f;f=J[610810];J[e+24>>2]=J[610809];J[e+28>>2]=f;f=J[610808];J[e+16>>2]=J[610807];J[e+20>>2]=f;f=J[610806];J[e+8>>2]=J[610805];J[e+12>>2]=f;f=J[610804];J[e>>2]=J[610803];J[e+4>>2]=f;J[e+48>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break h;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e){H[c|0]=1;H[d|0]=1}e=vc(48);J[a+4>>2]=e;J[a+8>>2]=10;J[a+12>>2]=-2147483636;f=J[610825];J[e+32>>2]=J[610824];J[e+36>>2]=f;f=J[610823];J[e+24>>2]=J[610822];J[e+28>> +2]=f;f=J[610821];J[e+16>>2]=J[610820];J[e+20>>2]=f;f=J[610819];J[e+8>>2]=J[610818];J[e+12>>2]=f;f=J[610817];J[e>>2]=J[610816];J[e+4>>2]=f;J[e+40>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e){H[c|0]=1;H[d|0]=1}e=vc(48);J[a+4>>2]=e;J[a+8>>2]=11;J[a+12>>2]=-2147483636;J[e+40>>2]=J[610837];f=J[610836];J[e+32>>2]=J[610835];J[e+36>>2]=f;f=J[610834];J[e+24>>2]=J[610833];J[e+28>>2]=f;f=J[610832];J[e+16>>2]=J[610831];J[e+20>>2]= +f;f=J[610830];J[e+8>>2]=J[610829];J[e+12>>2]=f;f=J[610828];J[e>>2]=J[610827];J[e+4>>2]=f;J[e+44>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break f;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e){H[c|0]=1;H[d|0]=1}e=vc(48);J[a+4>>2]=e;J[a+8>>2]=11;J[a+12>>2]=-2147483636;J[e+40>>2]=J[610849];f=J[610848];J[e+32>>2]=J[610847];J[e+36>>2]=f;f=J[610846];J[e+24>>2]=J[610845];J[e+28>>2]=f;f=J[610844];J[e+16>>2]=J[610843];J[e+20>>2]=f;f=J[610842];J[e+8>>2]=J[610841];J[e+12>>2]=f;f= +J[610840];J[e>>2]=J[610839];J[e+4>>2]=f;J[e+44>>2]=0;J[699344]=0;e=ga(6625,a|0,b|0,a+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;if(H[a+15|0]<0)uc(J[a+4>>2]);if(e){H[c|0]=1;H[d|0]=1}e=vc(64);J[a+4>>2]=e;J[a+8>>2]=12;J[a+12>>2]=-2147483632;f=J[610862];J[e+40>>2]=J[610861];J[e+44>>2]=f;f=J[610860];J[e+32>>2]=J[610859];J[e+36>>2]=f;f=J[610858];J[e+24>>2]=J[610857];J[e+28>>2]=f;f=J[610856];J[e+16>>2]=J[610855];J[e+20>>2]=f;f=J[610854];J[e+8>>2]=J[610853];J[e+12>>2]=f;f=J[610852];J[e>>2]=J[610851]; +J[e+4>>2]=f;J[e+48>>2]=0;J[699344]=0;b=ga(6625,a|0,b|0,a+4|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;if(H[a+15|0]<0)uc(J[a+4>>2]);if(b){H[c|0]=1;H[d|0]=1}fc=a+16|0;return}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()| +0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;break b}b=Z()|0;if(H[a+15|0]>=0)break c;uc(J[a+4>>2])}ba(b|0);B()}uc(J[a+4>>2]);ba(b|0);B()}function YO(a,b){var c=0,d=0,e=0,f=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:switch(b|0){case 1:b=J[a+8>>2];e=12-b|0;k:{if((e|0)<=0){d=J[a+28>>2];break k}d=J[a+28>>2];c=J[a>>2];while(1){J[a+8>>2]= +0;b=c<>2]=b;l:{m:{if((d|0)!=255){if(b&134217728){c=d+1|0;J[a+28>>2]=c;if((c|0)==255){J[a>>2]=b&134217727;b=J[a+24>>2];c=J[b+8>>2];n:{o:{if(c&7)break o;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break o}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break n}if((bd(b,255)|0)!=-1)break n}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];d=b>>>20&255;J[a+28>>2]=d;c=b&1048575;break m}p:{if((d| +0)<-1)break p;b=J[a+24>>2];d=J[b+8>>2];q:{if(d&7)break q;f=J[b+64>>2];if(!((f|0)<0|(f|0)>J[b+60>>2])){J[b+8>>2]=d|4;break q}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break p}if((bd(b,c&255)|0)!=-1)break p}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];d=b>>>19&255;J[a+28>>2]=d;c=b&524287;b=8;break l}r:{if((d|0)<0)break r;b=J[a+24>>2];c=J[b+8>>2];s:{if(c&7)break s;f=J[b+64>>2];if(!((f|0)<0|(f|0)>J[b+60>> +2])){J[b+8>>2]=c|4;break s}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break r}if((bd(b,d&255)|0)!=-1)break r}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];d=b>>>19&255;J[a+28>>2]=d;c=b&524287;b=8;break l}b=J[a+24>>2];c=J[b+8>>2];t:{u:{if(c&7)break u;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break u}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c= +b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break t}if((bd(b,255)|0)!=-1)break t}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];d=b>>>20&255;J[a+28>>2]=d;c=b&1048575}b=7}J[a+8>>2]=b;J[a>>2]=c;e=e-b|0;if((e|0)>0)continue;break}}if((d|0)==255)break c;b=J[a>>2];if(b&134217728){c=d+1|0;J[a+28>>2]=c;if((c|0)==255){J[a>>2]=b&134217727;b=J[a+24>>2];c=J[b+8>>2];v:{if(c&7)break v;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break v}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c| +0)>0)break i;if((bd(b,255)|0)!=-1)break b}J[a+36>>2]=J[a+36>>2]|1;break b}if((d|0)<-1)break a;b=J[a+24>>2];d=J[b+8>>2];w:{if(d&7)break w;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break w}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0)break h;if((bd(b,c&255)|0)!=-1)break a}J[a+36>>2]=J[a+36>>2]|1;break a}if((d|0)<0)break a;b=J[a+24>>2];c=J[b+8>>2];x:{if(c&7)break x;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=c|4;break x}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2]; +J[b+28>>2]=c-1;if((c|0)>0)break g;if((bd(b,d&255)|0)!=-1)break a}J[a+36>>2]=J[a+36>>2]|1;break a;case 0:break j;default:break e}c=J[a>>2];b=c|65535;b=(b>>>0>2]>>>0?b:b-32768|0)<>2];J[a>>2]=b;c=J[a+28>>2];y:{z:{if((c|0)!=255){if(b&134217728){d=c+1|0;J[a+28>>2]=d;if((d|0)==255){J[a>>2]=b&134217727;b=J[a+24>>2];c=J[b+8>>2];A:{B:{if(c&7)break B;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break B}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+ +60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break A}if((bd(b,255)|0)!=-1)break A}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];c=b>>>20&255;J[a+28>>2]=c;d=b&1048575;break z}C:{if((c|0)<-1)break C;b=J[a+24>>2];c=J[b+8>>2];D:{if(c&7)break D;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=c|4;break D}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break C}if((bd(b,d&255)|0)!=-1)break C}J[a+36>>2]= +J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];c=b>>>19&255;J[a+28>>2]=c;d=b&524287;b=8;break y}E:{if((c|0)<0)break E;b=J[a+24>>2];d=J[b+8>>2];F:{if(d&7)break F;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break F}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break E}if((bd(b,c&255)|0)!=-1)break E}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];c=b>>>19&255;J[a+28>>2]=c;d=b&524287;b=8;break y}b=J[a+ +24>>2];c=J[b+8>>2];G:{H:{if(c&7)break H;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break H}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break G}if((bd(b,255)|0)!=-1)break G}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];c=b>>>20&255;J[a+28>>2]=c;d=b&1048575}b=7}J[a+8>>2]=b;b=d<>2]=b;I:{J:{if((c|0)!=255){if(b&134217728){c=c+1|0;J[a+28>>2]=c;if((c|0)==255){J[a>>2]=b&134217726;b=J[a+24>> +2];c=J[b+8>>2];K:{L:{if(c&7)break L;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break L}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break K}if((bd(b,255)|0)!=-1)break K}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];c=J[a>>2];b=c>>>20&255;J[a+28>>2]=b;c=c&1048575;break J}b=J[a+24>>2];d=J[b+8>>2];M:{N:{if(d&7)break N;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break N}J[b+4>>2]=J[b+4>> +2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break M}if((bd(b,c)|0)!=-1)break M}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];c=J[a>>2];b=c>>>19&255;J[a+28>>2]=b;c=c&524287;d=8;break I}b=J[a+24>>2];d=J[b+8>>2];O:{P:{if(d&7)break P;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break P}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break O}if((bd(b, +c)|0)!=-1)break O}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];c=J[a>>2];b=c>>>19&255;J[a+28>>2]=b;c=c&524287;d=8;break I}b=J[a+24>>2];c=J[b+8>>2];Q:{R:{if(c&7)break R;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break R}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break Q}if((bd(b,255)|0)!=-1)break Q}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];c=J[a>>2];b=c>>>20&255;J[a+28>>2]=b;c=c&1048575}d=7}J[a+ +8>>2]=d;J[a>>2]=c;if((b|0)==255)break c;c=J[a+24>>2];d=J[c+8>>2];S:{if(d&7)break S;e=J[c+64>>2];if(!((e|0)<0|(e|0)>J[c+60>>2])){J[c+8>>2]=d|4;break S}J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;if((d|0)>0)break f;if((bd(c,b)|0)!=-1)break d}J[a+36>>2]=J[a+36>>2]|1;break d}J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break b}J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break a}J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break a}J[c+ +60>>2]=J[c+60>>2]+1;d=c;c=J[c+24>>2];J[d+24>>2]=c+1;H[c|0]=b;break d}ra();B()}J[a+8>>2]=8;J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a>>2]=b&524287;J[a+28>>2]=b>>>19&255}return}J[a+8>>2]=7;J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a>>2]=b&1048575;J[a+28>>2]=b>>>20&255;return}J[a+8>>2]=8;J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a>>2]=b&524287;J[a+28>>2]=b>>>19&255}function MM(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,N=0,O=0,Q=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=0,ha=0,ia=0,ja=0,ka=0,la=0;o=fc-16|0;fc=o;p=J[a+736>>2];l=J[a+104>>2];m=J[l+28>>2];J[o+4>>2]=0;r=6;a:{if(!K[a+733|0]|!p)break a;b:{if(!e)break b;f=J[c+4>>2];r=0;if((e|0)!=1){i=e&-2;while(1){h=r<<3;g=h+d|0;k=f+h|0;J[g>>2]=J[k>>2]<<6;J[g+4>>2]=J[k+4>>2]<<6;h=h|8;g=h+d|0;h=f+h|0;J[g>>2]=J[h>>2]<<6;J[g+4>>2]=J[h+4>>2]<<6;r=r+2|0;x=x+2|0;if((i|0)!=(x|0))continue;break}}if(!(e&1))break b;h=r<<3;i=h+d|0;f=f+h|0;J[i>>2]=J[f>>2]<<6;J[i+4>> +2]=J[f+4>>2]<<6}r=0;if(M[p+68>>2]<=b>>>0)break a;f=J[p+72>>2];h=b<<2;i=b+1|0;if(J[f+h>>2]==J[f+(i<<2)>>2])break a;b=o+12|0;q=_c(m,8,0,e,0,b);c:{if(J[o+12>>2])break c;s=_c(m,8,0,e,0,b);if(J[o+12>>2])break c;r=_c(m,1,0,e,0,b);if(J[o+12>>2])break c;f=J[p+72>>2];i=J[f+(i<<2)>>2];f=J[f+h>>2];h=yd(l,f);J[o+12>>2]=h;if(h)break c;f=i-f|0;h=af(l,f);J[o+12>>2]=h;if(h)break c;h=J[l>>2];i=J[l+32>>2];C=_c(m,4,0,J[p>>2],0,b);x=0;d:{e:{if(J[o+12>>2])break e;Q=_c(m,4,0,J[p>>2],0,b);if(J[o+12>>2])break e;R=_c(m,4, +0,J[p>>2],0,b);if(J[o+12>>2])break e;b=tf(l);f:{g=tf(l);if(g>>>0<=f>>>0){b=b<<16>>16;V=b&4095;if(f>>>0>=V<<2>>>0)break f}J[o+12>>2]=8;break e}z=g+(i-h|0)|0;if((b|0)<0){h=J[l+32>>2];b=J[l>>2];f=J[l+36>>2];J[l+32>>2]=f-b>>>0>z>>>0?b+z|0:f;x=LD(l,J[p+76>>2],o+4|0);i=J[l+32>>2];f=J[l>>2];b=h-b|0;h=J[l+36>>2];J[l+32>>2]=b>>>0>>0?f+b|0:h;z=i-f|0}D=_c(m,4,0,e,0,o+12|0);g:{if(J[o+12>>2])break g;E=_c(m,4,0,e,0,o+12|0);if(J[o+12>>2])break g;h:{if(!e)break h;f=J[c+4>>2];g=0;if((e|0)!=1){i=e&-2;b=0;while(1){h= +g<<3;k=h+q|0;y=f+h|0;J[k>>2]=J[y>>2]<<16;J[k+4>>2]=J[y+4>>2]<<16;h=h|8;k=h+q|0;h=f+h|0;J[k>>2]=J[h>>2]<<16;J[k+4>>2]=J[h+4>>2]<<16;g=g+2|0;b=b+2|0;if((i|0)!=(b|0))continue;break}}if(!(e&1))break h;b=g<<3;h=b+q|0;b=b+f|0;J[h>>2]=J[b>>2]<<16;J[h+4>>2]=J[b+4>>2]<<16}if(V){fa=e&-4;Z=e&3;_=e-1|0;$=e-2|0;aa=e-3|0;S=e-4|0;b=0;while(1){ga=tf(l);i:{j:{k:{l:{m:{f=tf(l);h=f<<16>>16;n:{if((h|0)<0){g=0;if(!J[p>>2])break n;while(1){ka=(g<<2)+C|0,la=tf(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;if(g>>>0>2])continue; +break}break n}i=f&4095;if(i>>>0>=M[p+60>>2])break m;g=i;i=J[p>>2];xc(C,J[p+64>>2]+(P(g,i)<<2)|0,i<<2)}o:{if(!(f&16384))break o;g=0;if(!J[p>>2])break o;while(1){ka=(g<<2)+Q|0,la=tf(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;i=J[p>>2];if(g>>>0>>0)continue;break}g=0;if(!i)break o;while(1){ka=(g<<2)+R|0,la=tf(l)<<16>>16<<2,J[ka>>2]=la;g=g+1|0;if(g>>>0>2])continue;break}}h=k6(p,h&65535,C,Q,R);if(!h)break i;ha=J[l+32>>2];W=J[l>>2];i=J[l+36>>2];J[l+32>>2]=i-W>>>0>z>>>0?W+z|0:i;p:{if(f&8192){y=LD(l,J[p+76>> +2],o+8|0);k=J[o+8>>2];b=y;break p}k=J[o+4>>2];J[o+8>>2]=k;y=b;b=x}f=k?k:e;F=PM(l,J[p+76>>2],f);G=PM(l,J[p+76>>2],f);f=b;if(!F|(!f|!G))break j;q:{if((f|0)!=-1){if(!e)break k;b=0;g=0;i=0;if(e>>>0>=4)break q;break l}g=0;if(!e)break j;while(1){b=g<<2;f=b+E|0;i=J[f>>2];k=b+D|0;j=J[k>>2];n=Wc(J[b+F>>2],h);b=Wc(J[b+G>>2],h);r:{if(g>>>0>>0){J[k>>2]=j+n;J[f>>2]=b+i;break r}if(!(K[a+740|0]&4|(g|0)!=(S|0))){J[k>>2]=j+n;break r}if(!(K[a+740|0]&2|(g|0)!=(aa|0))){J[k>>2]=j+n;break r}if(!(K[a+740|0]&32|(g|0)!= +($|0))){J[f>>2]=b+i;break r}if(K[a+740|0]&16|(g|0)!=(_|0))break r;J[f>>2]=b+i}g=g+1|0;if((g|0)!=(e|0))continue;break}break j}while(1){H[g+r|0]=0;j=g<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|1;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|2;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;j=g|3;H[j+r|0]=0;j=j<<3;n=j+s|0;j=j+q|0;u=J[j+4>>2];J[n>>2]=J[j>>2];J[n+4>>2]=u;g=g+4|0;i=i+4|0;if((fa|0)!=(i|0))continue;break}break l}J[o+ +12>>2]=8;break g}if(!Z)break k;while(1){H[g+r|0]=0;i=g<<3;j=i+s|0;i=i+q|0;n=J[i+4>>2];J[j>>2]=J[i>>2];J[j+4>>2]=n;g=g+1|0;b=b+1|0;if((Z|0)!=(b|0))continue;break}}g=0;if(k)while(1){b=L[f+(g<<1)>>1];if(b>>>0>>0){H[b+r|0]=1;b=(b<<3)+s|0;i=g<<2;ka=b,la=Wc(J[i+F>>2],h)+J[b>>2]|0,J[ka>>2]=la;ka=b,la=Wc(J[i+G>>2],h)+J[b+4>>2]|0,J[ka+4>>2]=la}g=g+1|0;if((k|0)!=(g|0))continue;break}k=0;T=0;if(L[c>>1]){X=s+4|0;u=q+4|0;while(1){n=I[J[c+12>>2]+(T<<1)>>1];s:{if((n|0)<(k|0))break s;f=n+1|0;U=0;g=k;while(1){b= +g+1|0;if(K[g+r|0]){h=g;t:{u:{v:{w:{f=g;ba=(n|0)>(f|0);if(ba){while(1){j=h;h=b;i=f;x:{if(!K[h+r|0])break x;i=h;if((f|0)>=(j|0))break x;b=f+1|0;t=J[q+(f<<3)>>2]>J[q+(h<<3)>>2];N=t?f:h;O=N<<3;i=J[O+s>>2];B=t?h:f;Y=B<<3;w=J[Y+s>>2];v=J[q+O>>2];t=J[q+Y>>2];if(!((v|0)==(t|0)&(i|0)!=(w|0))){ca=0;if((t|0)!=(v|0))ca=Cd(i-w|0,v-t|0);ia=i-v|0;ja=w-t|0;f=b;while(1){i=f;da=f<<3;f=J[q+da>>2];y:{if((f|0)<=(t|0)){A=f+ja|0;break y}A=f+ia|0;if((f|0)>=(v|0))break y;A=Wc(f-t|0,ca)+w|0}J[s+da>>2]=A;f=i+1|0;if((i|0)!= +(j|0))continue;break}}i=J[u+Y>>2]>J[u+O>>2];t=(i?B:N)<<3;f=J[t+X>>2];i=(i?N:B)<<3;w=J[i+X>>2];v=J[t+u>>2];t=J[i+u>>2];if((v|0)==(t|0)){i=h;if((f|0)!=(w|0))break x}A=0;if((t|0)!=(v|0))A=Cd(f-w|0,v-t|0);N=f-v|0;O=w-t|0;while(1){f=b;B=f<<3;b=J[B+u>>2];z:{if((b|0)<=(t|0)){i=b+O|0;break z}i=b+N|0;if((b|0)>=(v|0))break z;i=Wc(b-t|0,A)+w|0}J[B+X>>2]=i;b=f+1|0;if((f|0)!=(j|0))continue;break}i=h}f=i;b=h+1|0;if((h|0)<(n|0))continue;break}if((f|0)!=(g|0))break w}h=g<<3;i=h+q|0;f=J[i+4>>2];j=h+s|0;h=J[j+4>>2]; +j=J[j>>2];i=J[i>>2];if((j|0)==(i|0)&(f|0)==(h|0))break t;h=h-f|0;i=j-i|0;if((g|0)<=(k|0))break u;if(U&1){f=(k<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];k=k+1|0}if((U|0)!=1)break v;break u}e6(f+1|0,n,f,g,q,s);if((g|0)<=0)break t;e6(k,g-1|0,f,g,q,s);break t}while(1){f=(k<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];J[f+8>>2]=i+J[f+8>>2];J[f+12>>2]=h+J[f+12>>2];k=k+2|0;if((k|0)!=(g|0))continue;break}}if(!ba)break t;while(1){g=g+1|0;f=(g<<3)+s|0;J[f>>2]=i+J[f>>2];J[f+4>>2]=h+J[f+4>>2];if((g| +0)!=(n|0))continue;break}}k=b;break s}U=U+1|0;h=(g|0)==(n|0);g=b;if(!h)continue;break}k=f}T=T+1|0;if((T|0)>1])continue;break}}g=0;if(!e)break j;while(1){b=g<<3;f=b+s|0;h=b+q|0;b=J[f+4>>2]-J[h+4>>2]|0;f=J[f>>2]-J[h>>2]|0;k=g<<2;h=k+E|0;i=J[h>>2];k=k+D|0;j=J[k>>2];A:{if(g>>>0>>0){J[k>>2]=f+j;J[h>>2]=b+i;break A}if(!(K[a+740|0]&4|(g|0)!=(S|0))){J[k>>2]=f+j;break A}if(!(K[a+740|0]&2|(g|0)!=(aa|0))){J[k>>2]=f+j;break A}if(!(K[a+740|0]&32|(g|0)!=($|0))){J[h>>2]=b+i;break A}if(K[a+740|0]&16|(g|0)!= +(_|0))break A;J[h>>2]=b+i}g=g+1|0;if((g|0)!=(e|0))continue;break}}b=-1;if((y|0)!=-1){if(y)kc[J[m+8>>2]](m,y);b=0}if(F)kc[J[m+8>>2]](m,F);if(G)kc[J[m+8>>2]](m,G);f=ha-W|0;h=J[l>>2];i=J[l+36>>2];J[l+32>>2]=f>>>0>>0?f+h|0:i}z=z+ga|0;ea=ea+1|0;if((ea|0)!=(V|0))continue;break}}if(!e)break g;b=J[c+4>>2];g=0;while(1){c=g<<3;a=c+d|0;f=g<<2;h=f+D|0;J[a>>2]=J[a>>2]+(J[h>>2]+512>>10);f=f+E|0;J[a+4>>2]=J[a+4>>2]+(J[f>>2]+512>>10);a=b+c|0;J[a>>2]=J[a>>2]+(J[h>>2]+32768>>16);J[a+4>>2]=J[a+4>>2]+(J[f>>2]+32768>> +16);g=g+1|0;if((g|0)!=(e|0))continue;break}}if(D)kc[J[m+8>>2]](m,D);if(E)kc[J[m+8>>2]](m,E);if((x|0)==-1)break d}if(x)kc[J[m+8>>2]](m,x)}if(C)kc[J[m+8>>2]](m,C);if(Q)kc[J[m+8>>2]](m,Q);if(R)kc[J[m+8>>2]](m,R);ve(l)}if(q)kc[J[m+8>>2]](m,q);if(s)kc[J[m+8>>2]](m,s);if(r)kc[J[m+8>>2]](m,r);r=J[o+12>>2]}fc=o+16|0;return r}function OSa(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;g=fc-112|0;fc=g;J[g+88>>2]=13;J[g+72>>2]=13;a:{b:{c:{if(J[a+20>>2]==4)break c; +d:{e:{f:{d=J[a+32>>2];if((d|0)>=0){J[g+100>>2]=J[a+36>>2];J[g+96>>2]=d;J[g+88>>2]=9;d=g+88|0;f=b;b=g+72|0;jf(d,f,b,0);if(J[g+72>>2]==8)break f;Cc(1,-1,804412,0);yc(b);yc(d)}if(c)break e;c=1;break d}yc(g+72|0);yc(g+88|0);b=J[a+20>>2];g:{if(!c)break g;h:{i:switch(b-1|0){case 0:case 1:case 2:b=J[J[693464]+128>>2];break h;case 4:case 5:b=J[J[693464]+132>>2];break h;case 7:case 8:b=J[J[693464]+136>>2];break h;case 9:case 10:break i;default:break g}b=J[J[693464]+140>>2]}if(!b)break e;b=J[a+20>>2]}d=vc(48); +J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d+4>>2]=b;J[d>>2]=0;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;b=J[a+36>>2];J[d+8>>2]=J[a+32>>2];J[d+12>>2]=b;break c}c=0;if(!J[a+16>>2])break d;if(kc[J[J[a>>2]+8>>2]](a)|!J[J[693464]+144>>2])break d;d=vc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;b=J[a+16>>2];a=vc(8);J[699344]=0;c=aa(3350,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[d+16>>2]=c;break c}b=J[a+16>>2];j:{if(!b)break j;b=__(J[693464], +b);if(!b)break j;d=t$(b,0,0,kc[J[J[a>>2]+8>>2]](a)|0);if(d)break c}b=kc[J[J[a>>2]+8>>2]](a)|0;k:{l:{m:{if(!c){if(b)break m;f=J[a+160>>2];if(!f)break m;d=vc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;b=vc(8);a=J[f+4>>2];J[699344]=0;c=aa(3349,b|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;J[d+16>>2]=c;break c}if(b)break m;d=J[a+160>>2];if(!d)break m;b=vc(8);d=J[d+4>>2];J[699344]=0;f=aa(3349,b|0,d|0)|0;d=J[699344];J[699344]=0;n:{if((d| +0)!=1){e=Z_(J[693464],f,g+68|0,g+56|0);uc(Zc(f));if(!e)break m;q=O[g+56>>3];b=J[g+68>>2];f=Sw(J[e+4>>2]);if(f>>>0>=9|!(375>>>f&1))break n;d=vc(48);J[d+40>>2]=-1;J[d+32>>2]=0;O[d+24>>3]=q;J[d+20>>2]=b;J[d+16>>2]=e;J[d>>2]=1;J[d+4>>2]=J[(f<<2)+2217580>>2];break c}break l}uc(Zc(e))}m=J[a+16>>2];o:{if(!m)break o;d=0;f=0;p:{p=J[J[693464]+60>>2];b=J[p>>2];if(J[b+8>>2]<=0)break p;while(1){l=J[J[b>>2]+(n<<2)>>2];f=d;b=0;h=fc-32|0;fc=h;j=J[m+4>>2];e=2;i=J[J[l>>2]+4>>2];d=K[i|0];if(d)q:{while(1){k=K[j|0];if(!k)break q; +e=e-1|0;if(!e)break q;if(!((d|0)==(k|0)|((d-65>>>0<26?d|32:d)|0)==((k-65>>>0<26?k|32:k)|0))){d=K[i|0];break q}j=j+1|0;d=K[i+1|0];i=i+1|0;if(d)continue;break}d=0}else d=0;r:{s:{t:{e=d-65>>>0<26?d|32:d;d=K[j|0];if(e-(d-65>>>0<26?d|32:d)|0)break t;b=vc(8);J[699344]=0;j=_(3351,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){b=J[m+4>>2];while(1){u:{e=K[b|0];d=e-32|0;if(!((1<>>0<=13:0)|(e|0)==95)){if(!e)break u;Kd(j,((e-97&255)>>>0<26?e&223:e)<<24>>24)}b=b+1|0;continue}break}e=J[l>>2];b=vc(8);J[699344]= +0;i=_(3351,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break s;b=J[e+4>>2];while(1){e=K[b|0];d=e-32|0;if((1<>>0<=13:0)|(e|0)==95){b=b+1|0;continue}else{if(e){Kd(i,((e-97&255)>>>0<26?e&223:e)<<24>>24);b=b+1|0;continue}if(!Eg(j,i)){uc(Zc(j));uc(Zc(i));b=8;break t}k=$_(m);b=$_(J[l>>2]);if(!Eg(k,b)){uc(Zc(j));uc(Zc(i));uc(Zc(k));uc(Zc(b));b=7;break t}QB(j,h+28|0,h+24|0);QB(i,h+20|0,h+16|0);e=Eg(j,i);QB(k,h+12|0,h+8|0);QB(b,h+4|0,h);d=Eg(k,b);uc(Zc(j));uc(Zc(i));uc(Zc(k));uc(Zc(b));if(!(J[h+ +28>>2]!=J[h+20>>2]|e)){b=6;if(J[h+24>>2]==J[h+16>>2])break t}if(!(J[h+12>>2]!=J[h+4>>2]|d)){b=5;if(J[h+8>>2]==J[h>>2])break t}if(!e){b=4;if(J[h+24>>2]==J[h+16>>2])break t}if(!d){b=3;if(J[h+8>>2]==J[h>>2])break t}b=e?!d:2;break t}}}break s}fc=h+32|0;break r}a=Z()|0;uc(b);ba(a|0);B()}d=b>>>0>o>>>0?l:f;o=(b|0)>(o|0)?b:o;n=n+1|0;b=J[p>>2];if((n|0)>2])continue;break}f=0;if(!d)break p;b=J[d+4>>2];e=vc(8);J[699344]=0;b=aa(3350,e|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){J[g+108>>2]=J[d+8>>2]; +J[g+68>>2]=J[d+12>>2];f=b;break p}a=Z()|0;uc(e);break a}if(!f)break o;d=vc(48);J[d+24>>2]=0;J[d+28>>2]=0;J[d+40>>2]=-1;J[d+16>>2]=f;J[d>>2]=1;J[d+32>>2]=0;J[d+20>>2]=J[g+68>>2];b=kc[J[J[a>>2]+8>>2]](a)|0;e=J[g+108>>2];f=e&-2;v:{if(b){if((f|0)==2){J[d+4>>2]=10;break c}if((e|0)!=4)break v;w:switch(Sw(J[J[d+16>>2]+4>>2])-4|0){case 3:J[d+4>>2]=9;break c;case 0:break w;default:break v}J[d+4>>2]=10;break c}if((f|0)==2){J[d+4>>2]=5;break c}if(e>>>0<=1){J[d+4>>2]=1;break c}if((e|0)!=4)break v;x:switch(Sw(J[J[d+ +16>>2]+4>>2])-4|0){case 2:J[d+4>>2]=3;break c;case 0:break x;default:break v}J[d+4>>2]=6;break c}b=J[d+16>>2];if(b)uc(Zc(b));b=J[d+32>>2];if(b)uc(Zc(b));uc(d)}if(!(kc[J[J[a>>2]+8>>2]](a)|0)){y:{if(c)break y;b=J[a+16>>2];if(!b)break y;z:{b=Qk(J[J[693464]+116>>2],b);if(!b){b=0;break z}f=vc(8);J[699344]=0;b=aa(3350,f|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break z;a=Z()|0;uc(f);break a}if(!b)break y;d=vc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=1;J[d+32>>2]=0;J[d+24>>2]=0; +J[d+28>>2]=0;J[d+16>>2]=b;break c}d=J[a+24>>2];b=vc(8);J[699344]=0;e=d>>>6&1|d>>>17&2|(d&1?0:d&2?8:4);f=J[(e<<2)+2217360>>2];l=aa(3349,b|0,f|0)|0;d=J[699344];J[699344]=0;A:{if((d|0)!=1){if(c)break A;J[g+20>>2]=J[a+16>>2];J[g+16>>2]=f;Cc(0,-1,805462,g+16|0);d=vc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=e;J[d>>2]=2;J[d+4>>2]=1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=l;break c}break l}d=0;b=Z_(J[693464],l,g+68|0,g+56|0);uc(Zc(l));if(!b)break c;b=t$(b,J[g+68>>2],O[g+56>>3],0);if(!b)break c; +J[g+4>>2]=J[a+16>>2];J[g>>2]=f;Cc(0,-1,805462,g);J[b+40>>2]=e;d=b;break c}B:{if(c)break B;C:{f=J[a+16>>2];if(!f)break C;e=J[693464];b=kc[J[J[a>>2]+12>>2]](a)|0;d=0;c=J[e+120>>2];D:{if(J[c+8>>2]>0)while(1){c=J[J[c>>2]+(d<<2)>>2];if(!Eg(J[c>>2],f)&(b|0)==J[c+4>>2])break D;d=d+1|0;c=J[e+120>>2];if((d|0)>2])continue;break}c=0}if(!c)break C;d=vc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=7;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;b=J[c+8>>2];a=vc(8);J[699344]=0;f=aa(3350,a|0, +b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[d+16>>2]=f;b=J[c+12>>2];a=vc(8);J[699344]=0;f=aa(3350,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[d+32>>2]=f;J[d+36>>2]=J[c+4>>2];break c}e=J[693464];b=J[a+164>>2];if(b)d=J[b>>2];else d=0;f=kc[J[J[a>>2]+12>>2]](a)|0;c=0;b=J[e+124>>2];E:{if(J[b+8>>2]>0)while(1){b=J[J[b>>2]+(c<<2)>>2];if(!Eg(J[b>>2],d)&(f|0)==J[b+4>>2])break E;c=c+1|0;b=J[e+124>>2];if((c|0)>2])continue;break}b=0}if(!b)break B;c=J[b+8>>2];J[g+52>>2]=J[a+16>>2]; +J[g+48>>2]=c;Cc(0,-1,805919,g+48|0);d=vc(48);J[d+16>>2]=0;J[d+20>>2]=0;J[d+40>>2]=-1;J[d>>2]=2;J[d+4>>2]=7;J[d+24>>2]=0;J[d+28>>2]=0;r=d,s=Fw(J[b+8>>2]),J[r+16>>2]=s;r=d,s=Fw(J[b+12>>2]),J[r+32>>2]=s;J[d+36>>2]=J[b+4>>2];break c}d=0;F:{c=J[J[693464]+52>>2];b=J[a+164>>2];if(b)b=J[b>>2];else b=0;b=Qk(c,b);if(!b){b=0;break F}f=vc(8);J[699344]=0;b=aa(3350,f|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break F;a=Z()|0;uc(f);break a}if(!b)break c;c=Sw(J[b+4>>2])-3|0;if(c>>>0>=6|!(55>>>c&1))break k;d=vc(48); +J[d+40>>2]=-1;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=b;J[d>>2]=1;J[d+4>>2]=J[(c<<2)+2217556>>2];J[g+36>>2]=J[a+16>>2];J[g+32>>2]=b;Cc(0,-1,805919,g+32|0);break c}a=Z()|0;uc(b);break a}uc(Zc(b))}fc=g+112|0;return d|0}b=Z()|0;uc(a);ba(b|0);B()}ba(a|0);B()}function OAa(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;h=fc-128|0;fc=h;l=mk(h+88|0,J[a>>2]+72|0);J[699344]=0;k=_(5239,l|0)|0;g=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{if((g| +0)==1)break y;J[699344]=0;g=J[J[f+12>>2]+((k>>>0)%M[f+8>>2]<<2)>>2];j=J[699344];J[699344]=0;if((j|0)==1)break y;if(g)while(1){if((k|0)==J[g+12>>2]){J[699344]=0;j=aa(5236,g+16|0,l|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break o;if(j)break b}g=J[g+8>>2];if(g)continue;break}k=J[b>>2];J[699344]=0;g=aa(5438,f|0,l|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break x;J[g+52>>2]=0;g=J[a>>2];J[699344]=0;j=g+148|0;i=J[j>>2];m=J[699344];J[699344]=0;if((m|0)==1)break w;if(!K[g+144|0]){J[699344]=0;a=ja(5178,h+36| +0,2394631,2386059,164,2414168,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break w;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;g=Z()|0;Kc(a);break e}z:{if(!(i&16))break z;J[699344]=0;j=J[j>>2];i=J[699344];J[699344]=0;if((i|0)==1)break w;if(j&64)break z;J[699344]=0;$(5449,g|0);j=J[699344];J[699344]=0;if((j|0)==1)break w}J[699344]=0;j=aa(5201,h+72|0,g+112|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break w;g=J[j+8>>2];if(g){i=d+1|0;while(1){J[699344]=0;la(5510,g+8|0,b|0,c|0,i|0,e|0, +f|0);m=J[699344];J[699344]=0;if((m|0)==1)break n;g=J[g>>2];if(g)continue;break}}f=J[a>>2];i=0;J[699344]=0;f=aa(5151,h+36|0,f+72|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break t;g=J[c+8>>2];A:{if(!g)break A;while(1){J[699344]=0;i=aa(5236,g+8|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break s;if(i)break A;g=J[g>>2];if(g)continue;break}}J[f+24>>2]=2392964;J[f>>2]=2392932;c=J[f+28>>2];if(c){g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)kc[J[J[c>>2]+4>>2]](c);J[f+28>>2]=0}J[f+16>>2]=2392964;c=J[f+20>>2];if(c){g= +J[c+4>>2]-1|0;J[c+4>>2]=g;if(!g)kc[J[J[c>>2]+4>>2]](c);J[f+20>>2]=0}wc(f+8|0);if(i)break c;c=J[a>>2];J[699344]=0;f=J[c+148>>2];c=J[699344];J[699344]=0;if((c|0)==1)break r;c=J[a>>2];if(!(f&16))break v;J[699344]=0;f=J[c+148>>2];c=J[699344];J[699344]=0;if((c|0)==1)break r;c=J[a>>2];if(f&128){g=J[c+36>>2];if(g)break u}J[699344]=0;c=J[c+148>>2];f=J[699344];J[699344]=0;if((f|0)==1)break r;if(c&16)break p;break c}g=Z()|0;break e}g=Z()|0;break e}g=Z()|0;break e}g=J[c+36>>2];if(!g)break c}b=J[J[g>>2]+28>> +2];J[699344]=0;b=_(b|0,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;if(!b)break c;b=J[J[k>>2]+16>>2];J[699344]=0;b=_(b|0,k|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;if(!b)break q;b=J[J[k>>2]+12>>2];J[699344]=0;ga(b|0,k|0,2390543,1)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break q;break f}g=Z()|0;id(j);break e}g=Z()|0;Ed(f);id(j);break e}g=Z()|0;id(j);break e}b=J[J[a>>2]+36>>2];c=J[J[b>>2]+20>>2];J[699344]=0;ha(c|0,b|0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;a=J[J[a>>2]+36>> +2];J[699344]=0;ga(5335,k|0,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c;break f}c=J[J[a>>2]+108>>2];J[699344]=0;f=h+32|0;da(5321,f|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break j;J[699344]=0;da(5278,h+28|0,f|0);c=J[699344];J[699344]=0;if((c|0)==1)break k;J[699344]=0;c=J[h+28>>2];J[h+20>>2]=0;J[h+24>>2]=J[685894];f=ha(5279,c|0,h+20|0,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;if(!f)break m;while(1){J[699344]=0;f=h+20|0;g=ha(5279,c|0,f|0,0,0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break i; +if(!g)break m;J[699344]=0;f=pd(f,2412112,-1);g=J[699344];J[699344]=0;if((g|0)==1)break i;B:{if(!f){if(J[e>>2]<(d|0))J[e>>2]=d;f=J[J[k>>2]+16>>2];J[699344]=0;f=_(f|0,k|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i;if(f){f=J[J[k>>2]+12>>2];J[699344]=0;ga(f|0,k|0,2390543,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i}J[699344]=0;J[h+124>>2]=0;aa(5145,h+124|0,c|0)|0;f=J[699344];J[699344]=0;C:{if((f|0)!=1){J[699344]=0;ga(5335,k|0,J[h+124>>2],0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break C;f=J[h+ +124>>2];J[h+124>>2]=0;if(!f)break B;J[699344]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(g)break B;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a;break B}g=Z()|0;break h}g=Z()|0;zc(h+124|0);break h}J[699344]=0;f=h+20|0;g=pd(f,2416300,-1);i=J[699344];J[699344]=0;if((i|0)==1)break i;D:{if(!g)break D;J[699344]=0;g=pd(f,2415668,-1);i=J[699344];J[699344]=0;if((i|0)==1)break i;if(!g)break D;J[699344]=0;f=pd(f,2412112,-1);g=J[699344];J[699344]=0;if((g| +0)==1)break i;if(f)break B}if(J[e>>2]<(d|0))J[e>>2]=d;f=J[J[k>>2]+16>>2];J[699344]=0;f=_(f|0,k|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i;E:{if(!f)break E;J[699344]=0;f=pd(h+20|0,2415668,-1);g=J[699344];J[699344]=0;if((g|0)==1)break i;if(!f)break E;f=J[J[k>>2]+12>>2];J[699344]=0;ga(f|0,k|0,2390543,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i}J[699344]=0;da(5278,h+16|0,b|0);f=J[699344];J[699344]=0;F:{G:{H:{I:{J:{if((f|0)!=1){f=J[h+20>>2];f=J[(f?f+12|0:2743576)>>2];J[699344]=0;g=J[h+16>>2]; +ca(5330,g|0,f|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break J;J[699344]=0;J[h+12>>2]=0;aa(5145,h+12|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break I;J[699344]=0;f=J[h+12>>2];J[h+124>>2]=0;aa(5145,h+124|0,g|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break H;J[699344]=0;ga(5335,J[h+124>>2],f|0,0)|0;f=J[699344];J[699344]=0;K:{if((f|0)!=1){f=J[h+124>>2];J[h+124>>2]=0;if(!f)break K;J[699344]=0;i=J[f+4>>2]-1|0;J[f+4>>2]=i;m=J[699344];J[699344]=0;if((m|0)!=1){if(i)break K;J[699344]=0;$(5147,f|0);f=J[699344]; +J[699344]=0;if((f|0)!=1)break K}break a}g=Z()|0;zc(h+124|0);break G}f=J[h+12>>2];J[h+12>>2]=0;L:{if(!f)break L;J[699344]=0;i=J[f+4>>2]-1|0;J[f+4>>2]=i;m=J[699344];J[699344]=0;if((m|0)==1)break a;if(i)break L;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}J[699344]=0;$(5332,g|0);f=J[699344];J[699344]=0;if((f|0)==1)break J;f=J[h+16>>2];J[h+16>>2]=0;if(!f)break B;J[699344]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)!=1){if(g)break B;J[699344]=0;$(5147,f|0);f=J[699344]; +J[699344]=0;if((f|0)!=1)break B}break a}g=Z()|0;break h}g=Z()|0;break F}g=Z()|0;break F}g=Z()|0}zc(h+12|0)}zc(h+16|0);break h}J[699344]=0;$(5332,c|0);f=J[699344];J[699344]=0;if((f|0)!=1)continue;break}break i}g=Z()|0;break e}g=Z()|0;id(j);break e}a=J[J[a>>2]+108>>2];J[699344]=0;da(5269,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break l;wc(h+20|0);a=J[h+28>>2];J[h+28>>2]=0;M:{if(!a)break M;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break M;J[699344]=0; +$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[h+32>>2];J[h+32>>2]=0;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break a}g=Z()|0;break h}g=Z()|0;break g}g=Z()|0;id(j);break e}g=Z()|0}wc(h+20|0);zc(h+28|0)}zc(h+32|0);id(j);break e}g=Z()|0;id(j)}Ed(l);ba(g|0)}B()}id(j)}J[l+24>>2]=2392964;J[l>>2]=2392932;a=J[l+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>> +2]+4>>2]](a);J[l+28>>2]=0}J[l+16>>2]=2392964;a=J[l+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[l+20>>2]=0}wc(l+8|0);fc=h+128|0;return}ea(0)|0;Bc();B()}function Nqb(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;a:{h=J[a+8>>2];if(!h){c=vc(16);J[699344]=0;h=_(1627,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+8>>2]=h}d=J[a+16>>2];g=fc-48|0;fc=g;c=J[h+12>>2];J[c+24>>2]=1E3;J[c+28>>2]=0;J[c+40>>2]=255;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=255;J[g+40>> +2]=0;J[g+44>>2]=1072693248;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;dp(c+48|0,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g);J[c+128>>2]=0;J[c+132>>2]=0;f=c- -64|0;J[f>>2]=255;J[f+4>>2]=0;b:{if(H[c+63|0]<0){J[c+56>>2]=0;f=J[c+52>>2];break b}H[c+63|0]=0;f=c+52|0}J[f>>2]=0;J[c+88>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+112>>2]=0;J[c+116>>2]= +0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+140>>2]=J[c+136>>2];c=J[h+12>>2];J[c+392>>2]=1E3;J[c+396>>2]=0;J[c+400>>2]=0;J[c+404>>2]=255;J[c+408>>2]=255;J[c+412>>2]=0;J[g+40>>2]=0;J[g+44>>2]=1072693248;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;dp(c+416|0,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g);J[c+496>>2]=0;J[c+500>>2]=0;J[c+432>>2]=255;J[c+436>>2]=0;c:{if(H[c+431|0]<0){J[c+424>>2]=0;f=J[c+420>>2];break c}H[c+431|0]=0; +f=c+420|0}J[f>>2]=0;J[c+456>>2]=0;J[c+448>>2]=0;J[c+452>>2]=0;J[c+440>>2]=0;J[c+444>>2]=0;J[c+464>>2]=0;J[c+468>>2]=0;J[c+472>>2]=0;J[c+476>>2]=0;J[c+480>>2]=0;J[c+484>>2]=0;J[c+488>>2]=0;J[c+492>>2]=0;J[c+508>>2]=J[c+504>>2];c=J[h+12>>2];Js(c+768|0,2439532,5);d:{if(H[c+767|0]<0){J[c+760>>2]=0;f=J[c+756>>2];break d}H[c+767|0]=0;f=c+756|0}J[f>>2]=0;I[c+800>>1]=0;J[c+792>>2]=0;J[c+796>>2]=0;J[c+784>>2]=0;J[c+788>>2]=0;J[c+804>>2]=0;J[c+808>>2]=0;J[c+812>>2]=0;J[c+816>>2]=0;c=J[h+12>>2];Js(c+848|0,2439532, +5);e:{if(H[c+847|0]<0){J[c+840>>2]=0;f=J[c+836>>2];break e}H[c+847|0]=0;f=c+836|0}J[f>>2]=0;I[c+880>>1]=0;J[c+872>>2]=0;J[c+876>>2]=0;J[c+864>>2]=0;J[c+868>>2]=0;J[c+884>>2]=0;J[c+888>>2]=0;J[c+892>>2]=0;J[c+896>>2]=0;c=J[h+12>>2];f:{if(H[c+859|0]<0){J[c+852>>2]=0;c=J[c+848>>2];break f}H[c+859|0]=0;c=c+848|0}J[c>>2]=0;Hu(J[h+12>>2]+920|0);Hu(J[h+12>>2]+924|0);e=J[h+12>>2];J[e+932>>2]=-1;H[e+928|0]=0;J[e+912>>2]=0;J[e+916>>2]=0;J[e+1144>>2]=0;J[e+396>>2]=-1;J[e+1140>>2]=J[e+1136>>2];if(!K[e+1276|0]){J[e+ +1124>>2]=e+384;c=e+752|0;J[e+960>>2]=c;J[e+1184>>2]=e+1216;J[e+1132>>2]=e+924;J[e+1128>>2]=e+920;J[e+1120>>2]=c;J[e+1116>>2]=e+16;f=kc[J[J[d>>2]+24>>2]](d)|0;c=J[h+12>>2];if(f>>>0<=2){e=c+1192|0;J[e>>2]=-1717986918;J[e+4>>2]=1069128089;J[c+936>>2]=J[(f<<2)+2439616>>2]}H[c+1276|0]=1;d=kc[J[J[d>>2]+20>>2]](d)|0;J[g+40>>2]=8;f=J[c+948>>2];if(f){kc[J[J[f>>2]+4>>2]](f);J[c+948>>2]=0}j=c,k=kc[J[J[d>>2]+52>>2]](d)|0,J[j+948>>2]=k;f=Sx();k=f,l=kc[J[J[d>>2]+24>>2]](d)|0,j=J[J[f>>2]+24>>2],kc[j](k|0,l|0);kc[J[J[f>> +2]+20>>2]](f,g+40|0);c=J[c+948>>2];kc[J[J[c>>2]+68>>2]](c,f);e=J[h+12>>2]}J[e+1224>>2]=0;d=J[e+1216>>2];J[e+1220>>2]=d;i=J[e+1240>>2];g:{if(d){f=0;c=J[e+1228>>2];break g}J[e+1228>>2]=1E3;d=vc(1E3);J[e+1216>>2]=d;f=J[e+1224>>2];c=1E3}i=f+i|0;h:{if(c>>>0>i>>>0){c=d;break h}while(1){c=c<<1;if(i>>>0>=c>>>0)continue;break}J[e+1228>>2]=c;c=vc(c);f=xc(c,d,f);uc(d);J[e+1216>>2]=f;f=J[e+1224>>2]}c=c+f|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[e+1224>>2]=J[e+1224>>2]+4;e=J[h+12>>2];i=J[e+1240>>2];d=J[e+ +1216>>2];if(d)c=J[e+1228>>2];else{J[e+1228>>2]=1E3;d=vc(1E3);J[e+1216>>2]=d;c=1E3}f=J[e+1224>>2];i=i+f|0;i:{if(c>>>0>i>>>0){c=d;break i}while(1){c=c<<1;if(i>>>0>=c>>>0)continue;break}J[e+1228>>2]=c;c=vc(c);f=xc(c,d,f);uc(d);J[e+1216>>2]=f;f=J[e+1224>>2]}c=c+f|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[e+1224>>2]=J[e+1224>>2]+4;e=J[h+12>>2];i=J[e+1240>>2];d=J[e+1216>>2];if(d)c=J[e+1228>>2];else{J[e+1228>>2]=1E3;d=vc(1E3);J[e+1216>>2]=d;c=1E3}f=J[e+1224>>2];i=i+f|0;j:{if(c>>>0>i>>>0){c=d;break j}while(1){c= +c<<1;if(i>>>0>=c>>>0)continue;break}J[e+1228>>2]=c;c=vc(c);f=xc(c,d,f);uc(d);J[e+1216>>2]=f;f=J[e+1224>>2]}c=c+f|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[e+1224>>2]=J[e+1224>>2]+4;e=J[h+12>>2];i=J[e+1240>>2];d=J[e+1216>>2];if(d)c=J[e+1228>>2];else{J[e+1228>>2]=1E3;d=vc(1E3);J[e+1216>>2]=d;c=1E3}f=J[e+1224>>2];i=i+f|0;k:{if(c>>>0>i>>>0){c=d;break k}while(1){c=c<<1;if(i>>>0>=c>>>0)continue;break}J[e+1228>>2]=c;c=vc(c);f=xc(c,d,f);uc(d);J[e+1216>>2]=f;f=J[e+1224>>2]}c=c+f|0;H[c|0]=0;H[c+1|0]=0; +H[c+2|0]=0;H[c+3|0]=0;J[e+1224>>2]=J[e+1224>>2]+4;d=J[h+12>>2];e=J[d+1240>>2];f=J[d+1216>>2];if(f)c=J[d+1228>>2];else{J[d+1228>>2]=1E3;f=vc(1E3);J[d+1216>>2]=f;c=1E3}h=J[d+1224>>2];e=e+h|0;l:{if(c>>>0>e>>>0){c=f;break l}while(1){c=c<<1;if(e>>>0>=c>>>0)continue;break}J[d+1228>>2]=c;c=vc(c);e=xc(c,f,h);uc(f);J[d+1216>>2]=e;h=J[d+1224>>2]}c=c+h|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[d+1224>>2]=J[d+1224>>2]+4;fc=g+48|0;c=J[a+16>>2];kc[J[J[c>>2]+44>>2]](c,J[a+8>>2],b,0);c=0;g=J[a+8>>2];d=J[g+12>> +2];if(J[d+1068>>2]){qH(d+944|0);d=J[g+12>>2]}b=J[d+1216>>2];J[d+1220>>2]=b;a=d+1224|0;f=J[a>>2];J[a>>2]=0;e=J[d+1240>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=vc(1E3);J[d+1216>>2]=b;c=J[d+1224>>2];a=1E3}e=c+e|0;m:{if(a>>>0>e>>>0){a=b;break m}while(1){a=a<<1;if(e>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=vc(a);c=xc(a,b,c);uc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=f;H[a+1|0]=f>>>8;H[a+2|0]=f>>>16;H[a+3|0]=f>>>24;J[d+1224>>2]=J[d+1224>>2]+4;d=J[g+12>>2];h=J[d+1240>>2];e=J[d+1200>>2]; +b=J[d+1216>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=vc(1E3);J[d+1216>>2]=b;a=1E3}c=J[d+1224>>2];h=h+c|0;n:{if(a>>>0>h>>>0){a=b;break n}while(1){a=a<<1;if(h>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=vc(a);c=xc(a,b,c);uc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;J[d+1224>>2]=J[d+1224>>2]+4;d=J[g+12>>2];h=J[d+1240>>2];e=J[d+1204>>2];b=J[d+1216>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=vc(1E3);J[d+1216>>2]=b;a=1E3}c=J[d+1224>>2];h=h+ +c|0;o:{if(a>>>0>h>>>0){a=b;break o}while(1){a=a<<1;if(h>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=vc(a);c=xc(a,b,c);uc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;J[d+1224>>2]=J[d+1224>>2]+4;d=J[g+12>>2];h=J[d+1240>>2];e=J[d+1208>>2];b=J[d+1216>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=vc(1E3);J[d+1216>>2]=b;a=1E3}c=J[d+1224>>2];h=h+c|0;p:{if(a>>>0>h>>>0){a=b;break p}while(1){a=a<<1;if(h>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=vc(a);c= +xc(a,b,c);uc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;J[d+1224>>2]=J[d+1224>>2]+4;d=J[g+12>>2];h=J[d+1240>>2];e=J[d+1212>>2];b=J[d+1216>>2];if(b)a=J[d+1228>>2];else{J[d+1228>>2]=1E3;b=vc(1E3);J[d+1216>>2]=b;a=1E3}c=J[d+1224>>2];h=h+c|0;q:{if(a>>>0>h>>>0){a=b;break q}while(1){a=a<<1;if(h>>>0>=a>>>0)continue;break}J[d+1228>>2]=a;a=vc(a);c=xc(a,b,c);uc(b);J[d+1216>>2]=c;c=J[d+1224>>2]}a=a+c|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>> +24;J[d+1224>>2]=J[d+1224>>2]+4;a=J[g+12>>2];J[a+1224>>2]=f;b=a+1200|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1208|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1220>>2]=f+J[a+1216>>2];return J[J[g+12>>2]+1216>>2]}a=Z()|0;uc(c);ba(a|0);B()}function kkb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=fc-224|0;fc=f;n=1;j=J[b+540>>2];a:{if((d|0)<=0){c=0;break a}m=d&3;b:{if(d>>>0<4){c=0;d=0;break b}o=d&-4;c=0;d=0;while(1){i=1;l=d<<3;g=J[l+e>>2]-1768386662|0;if(g){if((g|0)==13)k=1}else c= +1;g=c;c=J[(l|8)+e>>2]-1768386662|0;if(c){if((c|0)==13)k=1;i=g}c=1;g=J[(l|16)+e>>2]-1768386662|0;if(g){if((g|0)==13)k=1;g=i}else g=1;i=J[(l|24)+e>>2]-1768386662|0;if(i){if((i|0)==13)k=1;c=g}d=d+4|0;p=p+4|0;if((o|0)!=(p|0))continue;break}}if(!m)break a;g=c;while(1){i=J[(d<<3)+e>>2]-1768386662|0;if(i){if((i|0)==13)k=1;c=g}else c=1;d=d+1|0;g=c;h=h+1|0;if((m|0)!=(h|0))continue;break}}c:{if(J[J[b+128>>2]+52>>2])break c;d=L[b+152>>1];if(d){g=J[b+156>>2];e=g+(d<<4)|0;d=g;while(1){if(J[d+12>>2]?J[d>>2]==1735162214: +0)break c;d=d+16|0;if(e>>>0>d>>>0)continue;break}d=g;while(1){if(J[d+12>>2]?J[d>>2]==1128678944:0)break c;d=d+16|0;if(e>>>0>d>>>0)continue;break}while(1){if(J[g+12>>2]?J[g>>2]==1128678962:0)break c;g=g+16|0;if(e>>>0>g>>>0)continue;break}}n=0}d=1;e=kc[J[b+516>>2]](b,1935829368,a,0)|0;i=(e|0)!=0&n;d:{e:{f:{if(i)break f;h=J[j+68>>2];if(!h)break f;g=0;h=kc[h|0](b,a)|0;d=(h|0)!=0;if(!e)break f;if(!h)break e}e=kc[J[j+24>>2]](b,a)|0;J[f>>2]=e;g=d;if(e)break d}d=kc[J[b+516>>2]](b,1128418371,a,0)|0;e=kc[J[b+ +516>>2]](b,1128416340,a,0)|0;if((L[b+178>>1]-16385&65535)>>>0<=49166){J[f>>2]=8;break d}d=i&((d|0)!=0&(e|0)!=0);kc[J[j+36>>2]](b,a)|0;kc[J[j+32>>2]](b,a)|0;kc[J[j+48>>2]](b,a)|0;h=kc[J[j+44>>2]](b,a)|0;g:{if(!g){e=d;break g}e=kc[J[j+28>>2]](b,a,0)|0;J[f>>2]=e;h:{i:{j:{if(!e){g=kc[J[j+92>>2]](b,a,0)|0;J[f>>2]=g;if((g&255)!=142)break i;J[f>>2]=147;e=J[J[b+128>>2]+52>>2];if(!e)break d;if(J[J[e>>2]+8>>2])break j;break d}if((e&255)!=142)break d;e=0;if(J[b+148>>2]==1953658213)break h;J[f>>2]=143;e=J[J[b+ +128>>2]+52>>2];if(!e|!J[J[e>>2]+8>>2])break d}I[b+250>>1]=0;e=d;break h}e=d;if(g)break d}d=kc[J[j+28>>2]](b,a,1)|0;J[f>>2]=d;k:{l:{if(d)break l;d=kc[J[j+92>>2]](b,a,1)|0;J[f>>2]=d;if(d)break l;H[b+292|0]=1;break k}if((d&255)!=142)break d}d=kc[J[j+40>>2]](b,a)|0;J[f>>2]=d;if(!d)break g;I[b+372>>1]=65535}d=J[j+96>>2];if(d)kc[d|0](b,a)|0;d=J[j+112>>2];if(d){kc[d|0](b,a)|0;kc[J[j+116>>2]](b,a)|0}kc[J[j+64>>2]](b,a)|0;kc[J[j+60>>2]](b,a)|0;kc[J[j+56>>2]](b,a)|0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+16>>2]=L[b+ +264>>1];a=b+24|0;d=b+20|0;m:{if(!(!(H[b+437|0]&1)|L[b+372>>1]==65535)){n:{if(!(c&255)){c=en(b,16,d);J[f>>2]=c;if(c)break d;if(J[d>>2])break n}c=en(b,1,d);J[f>>2]=c;if(c)break d}if(!(k&255)){c=en(b,17,a);J[f>>2]=c;if(c)break d}if(J[a>>2])break m;a=en(b,2,a);J[f>>2]=a;if(!a)break m;break d}g=en(b,21,d);J[f>>2]=g;if(g)break d;i=J[d>>2];if(!(i|c&255)){c=en(b,16,d);J[f>>2]=c;if(c)break d;i=J[d>>2]}if(!i){c=en(b,1,d);J[f>>2]=c;if(c)break d}c=en(b,22,a);J[f>>2]=c;if(c)break d;d=J[a>>2];if(!(d|k&255)){c= +en(b,17,a);J[f>>2]=c;if(c)break d;d=J[a>>2]}if(d)break m;a=en(b,2,a);J[f>>2]=a;if(a)break d}d=J[b+8>>2];a=e|(!J[b+872>>2]&(J[b+796>>2]&-2)!=2?d:d|16384);d=a|24;d=h?d:J[b+476>>2]==196608?d:a|536;a=J[b+488>>2]?d|4:d;a=K[b+292|0]?a|32:a;h=J[b+820>>2]?a|64:a;o:{if(!(H[b+740|0]&1))break o;a=L[b+152>>1];if(!a)break o;d=J[b+156>>2];a=d+(a<<4)|0;c=d;p:{while(1){q:{if(!(!J[c+12>>2]|J[c>>2]!=1735162214)){c=d;while(1){if(J[c+12>>2]?J[c>>2]==1735811442:0)break q;c=c+16|0;if(a>>>0>c>>>0)continue;break}break p}c= +c+16|0;if(a>>>0>c>>>0)continue;break p}break}h=h|256}while(1){if(!(J[d+12>>2]?J[d>>2]==1128678962:0)){d=d+16|0;if(a>>>0>d>>>0)continue;break o}break}h=h|256}J[b+8>>2]=h;r:{if(!(!e|L[b+372>>1]==65535)){a=L[b+436>>1];a=a>>>4&2|(a&513)!=0;break r}a=L[b+204>>1];a=(a<<1|(a&2)>>>1)&3}J[b+12>>2]=a|J[b+12>>2];c=J[b+508>>2];J[f+216>>2]=c;a=J[f+216>>2];s:{if(!a)break s;d=J[b+512>>2];if(d>>>0<4)break s;J[f+216>>2]=a+2;J[f+216>>2]=J[f+216>>2]+2;J[f+220>>2]=K[J[f+216>>2]-1|0]|K[J[f+216>>2]-2|0]<<8;if(!J[f+220>> +2])break s;d=c+d|0;while(1){a=J[f+216>>2];if(d>>>0>>0)break s;J[f+216>>2]=a+2;a=K[J[f+216>>2]-2|0];e=K[J[f+216>>2]-1|0];J[f+216>>2]=J[f+216>>2]+2;I[f+212>>1]=e|a<<8;a=K[J[f+216>>2]-2|0];e=K[J[f+216>>2]-1|0];J[f+216>>2]=J[f+216>>2]+4;J[f+204>>2]=b;J[f+208>>2]=0;I[f+214>>1]=e|a<<8;a=K[J[f+216>>2]-1|0]|(K[J[f+216>>2]-3|0]<<16|K[J[f+216>>2]-4|0]<<24|K[J[f+216>>2]-2|0]<<8);if(!(!a|a>>>0>J[b+512>>2]-2>>>0)){J[f+200>>2]=a+c;a=J[f+200>>2];J[f+196>>2]=K[a+1|0]|K[a|0]<<8;J[f+192>>2]=325696;t:{if(!J[J[f+ +192>>2]>>2])break t;while(1){J[f+188>>2]=J[J[f+192>>2]>>2];if(J[J[f+188>>2]+40>>2]==J[f+196>>2]){J[f+8>>2]=0;a=f+12|0;J[a+156>>2]=J[f+200>>2];J[a+160>>2]=d;J[a+164>>2]=0;J[a+168>>2]=0;J[f+184>>2]=L[b+264>>1];e=J[J[f+188>>2]+44>>2];J[699344]=0;a=aa(e|0,J[f+200>>2],a|0)|0;e=J[699344];J[699344]=0;u:{v:{if((e|0)!=1){J[f+8>>2]=a;break v}a=ea(2641108)|0;if((gc|0)!=(sa(2641108)|0))break u;oa(a|0)|0;ta()}if(J[f+180>>2])break t;if(bl(J[f+188>>2],J[f+200>>2],f+204|0,f+4|0))break t;J[J[f+4>>2]+20>>2]=J[f+8>> +2];break t}ba(a|0);B()}J[f+192>>2]=J[f+192>>2]+4;if(J[J[f+192>>2]>>2])continue;break}}}J[f+220>>2]=J[f+220>>2]-1;if(J[f+220>>2])continue;break}}g=J[b+36>>2];w:{if((g|0)>0){h=J[b+40>>2];i=1;d=0;while(1){c=J[h+(d<<2)>>2];a=I[c+10>>1];e=325744;x:{y:{z:{A:switch(L[c+8>>1]){case 0:e=325756;break z;case 1:if(a)break y;e=325768;break z;case 2:break z;case 3:break A;default:break y}if(!(1151>>>a&1)|a>>>0>=11)break y;e=J[(a<<2)+326648>>2]}a=J[e+8>>2];J[c+4>>2]=a;if((a|0)!=1937337698&(a|0)!=1970170211)break x; +i=0;d=d+1|0;if((g|0)!=(d|0))continue;break w}J[c+4>>2]=0}d=d+1|0;if((g|0)!=(d|0))continue;break}if(!(i&1))break w}J[f+12>>2]=b;J[f+16>>2]=1970170211;J[f+20>>2]=65539;a=bl(325168,0,f+12|0,0);J[f>>2]=a;B:{if(!a)break B;a=a&255;if((a|0)==163)break B;if((a|0)!=7)break d}J[f>>2]=0}a=J[b+800>>2];C:{if(!a)break C;e=J[J[b+104>>2]+28>>2];k=L[b+178>>1];if(!k|L[b+372>>1]==65535){k=1;c=1}else c=L[b+374>>1];q=b,r=_c(e,16,0,a,0,f),J[q+32>>2]=r;if(J[f>>2])break d;g=_c(e,4,0,a,0,f);if(J[f>>2])break d;l=k>>>1|0;n= +c<<16>>16;h=0;d=0;while(1){c=J[b+32>>2];i=kc[J[j+108>>2]](b,d,f+12|0)|0;J[f>>2]=i;D:{if(i)break D;c=c+(h<<4)|0;I[c>>1]=J[f+32>>2]>>>6;i=L[f+12>>1];J[c+8>>2]=i<<6;I[c+2>>1]=(l+P(i,n)|0)/(k|0);m=L[f+14>>1];o=m<<6;J[c+4>>2]=o;J[c+12>>2]=o;if(!i|!m)break D;J[g+(h<<2)>>2]=d;h=h+1|0}d=d+1|0;if((a|0)!=(d|0))continue;break}a=_c(e,4,a,h,g,f);if(!h)break C;J[b+804>>2]=a;J[b+28>>2]=h;J[b+8>>2]=J[b+8>>2]|2}d=J[b+8>>2];if(!(d&3)){d=d|1;J[b+8>>2]=d}if(!(d&1))break d;I[b+68>>1]=L[b+178>>1];J[b+52>>2]=I[b+196>>1]; +J[b+56>>2]=I[b+198>>1];J[b+60>>2]=I[b+200>>1];J[b- -64>>2]=I[b+202>>1];d=L[b+372>>1]==65535;E:{if(!(d|!(K[b+436|0]&128))){a=L[b+442>>1];I[b+70>>1]=a;c=L[b+444>>1];I[b+72>>1]=c;I[b+74>>1]=L[b+446>>1]+(a-c|0);break E}a=L[b+220>>1];I[b+70>>1]=a;c=L[b+222>>1];I[b+72>>1]=c;I[b+74>>1]=L[b+224>>1]+(a-c|0);if(c|(a|d))break E;a=L[b+442>>1];c=L[b+444>>1];if(a|c){I[b+72>>1]=c;I[b+70>>1]=a;I[b+74>>1]=L[b+446>>1]+(a-c|0);break E}a=L[b+448>>1];I[b+70>>1]=a;c=a;a=L[b+450>>1];I[b+74>>1]=c+a;I[b+72>>1]=0-a}I[b+76>> +1]=L[b+226>>1];I[b+78>>1]=L[(K[b+292|0]?306:74)+b>>1];a=I[b+486>>1];I[b+82>>1]=a;I[b+80>>1]=L[b+484>>1]+((a|0)/-2|0)}fc=f+224|0;return J[f>>2]}function HDb(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;m=fc-128|0;fc=m;f=Dc(36);if(f){J[f>>2]=0;J[f+4>>2]=0;J[f+32>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;e=lF(a);a:{if(!e){rd(198129,0);break a}d=199299;b:{if(J[e+8>>2]!=1783636E3)break b;d=200489;if(J[e+20>>2]!= +218793738)break b;Jh(e);e=lF(a);if(!e)break a;d=201039;if(J[e+8>>2]!=1718909296)break b;Jh(e);c=lF(a);if(c)while(1){if(J[686392]>0){J[m+16>>2]=J[J[c+4>>2]+4>>2];rd(201806,m+16|0)}c:{d:{e:{f:{g:{h:{i:{e=J[c+8>>2];if((e|0)<=1668246641){if((e|0)==1651532643)break i;if((e|0)==1667523942)break h;if(J[f+16>>2]|(e|0)!=1668112752)break d;J[f+16>>2]=c;break c}if((e|0)<=1785737826){if((e|0)==1668246642)break f;if(J[f+8>>2]|(e|0)!=1768449138)break d;J[f+8>>2]=c;break c}if((e|0)==1885564018)break g;if((e|0)== +1785737827)break e;break d}if(J[f+12>>2])break d;J[f+12>>2]=c;break c}if(J[f+4>>2])break d;J[f+4>>2]=c;break c}if(J[f>>2])break d;J[f>>2]=c;break c}if(J[f+20>>2])break d;J[f+20>>2]=c;break c}Jh(c);c=tba(a,b);J[f+24>>2]=c;if(!c){c=0;rd(203113,0);break a}a=J[f+8>>2];if(!a){c=0;rd(203554,0);break a}a=J[a+28>>2];if((a|0)!=J[c+16>>2]){rd(204098,0);c=J[f+24>>2];a=J[c+16>>2]}if(!a){c=0;rd(204422,0);break a}i=J[c+24>>2];b=J[i>>2];d=J[b+24>>2]&127;h=J[b+28>>2]<<7&128;c=1;j:{k:{l:{if((a|0)==1)break l;b=0;e= +0;g=J[i+4>>2];n=J[g+28>>2]<<7&128|J[g+24>>2]&127;g=d|h;if((n|0)==(g|0)){while(1){c=c+1|0;if((c|0)==(a|0))break l;e=J[i+(c<<2)>>2];if((g|0)==(J[e+28>>2]<<7&128|J[e+24>>2]&127))continue;break}e=a>>>0<=c>>>0}c=J[f+8>>2];if(K[c+32|0]==255)break j;break k}e=1;b=1;c=J[f+8>>2];if(K[c+32|0]==(h|d-1))break j}rd(204828,0);c=J[f+8>>2];b=e}if(K[c+33|0]!=7){c=0;rd(205137,0);break a}a=J[f+12>>2];m:{if(!a)break m;if(J[a+20>>2]!=J[J[f+24>>2]+16>>2])rd(204098,0);if(!b){a=J[f+24>>2];if(!J[a+16>>2])break m;c=0;while(1){b= +J[J[a+24>>2]+(c<<2)>>2];d=J[b+28>>2]<<7&128|J[b+24>>2]&127;b=K[J[J[f+12>>2]+24>>2]+c|0];if((d|0)!=(b+1&127|b&128)){rd(204828,0);a=J[f+24>>2]}c=c+1|0;if(c>>>0>2])continue;break}break m}rd(205386,0)}b=J[f+20>>2];if(!b){c=0;rd(205590,0);break a}n:{o:{p:{q:switch(K[b+20|0]-1|0){case 0:c=J[f+24>>2];a=J[b+24>>2]-16|0;if(a>>>0<=2)a=J[(a<<2)+207940>>2];else a=16384;J[c+28>>2]=a;break p;case 1:break q;default:break p}a=0;e=Vi(J[b+28>>2],J[b+32>>2]);r:{if(!e)break r;b=Tba(e);if(!b)break r;Pf(e);a=b}if(!a)break o; +Qba(a,m+24|0);J[m>>2]=J[m+40>>2];rd(206193,m);c=J[f+24>>2];s:{t:{e=J[m+40>>2];if((e|0)!=1196573017){b=1024;if((e|0)==1380401696)break s;if((e|0)!=1497588338)break t;b=1280;break s}b=768;break s}b=16384}J[c+28>>2]=b;b=pF(a);J[J[f+24>>2]+32>>2]=b;if(!b)break n;pn(a)}c=J[f+16>>2];u:{v:{if(c){b=J[f>>2];if(b){e=J[c+20>>2];J[f+28>>2]=e;a=f+28|0;break v}rd(206926,0);Jh(J[f+16>>2]);J[f+16>>2]=0}w:{if(J[f>>2]){b=0;rd(207039,0);Jh(J[f>>2]);J[f>>2]=0;c=J[f+16>>2];if(c)break w}e=J[J[f+24>>2]+16>>2];J[f+28>>2]= +e;a=f+28|0;break u}e=J[c+20>>2];J[f+28>>2]=e;a=f+28|0}if(!e){e=0;break u}i=J[c+24>>2];d=J[J[f+24>>2]+16>>2];c=0;while(1){h=i+(c<<3)|0;if(d>>>0<=M[h>>2]){c=0;rd(207222,0);break a}if(K[h+5|0]>=K[b+24|0]){c=0;rd(207352,0);break a}c=c+1|0;if((e|0)!=(c|0))continue;break}}b=Dc(e<<2);J[f+32>>2]=b;if(!b){c=0;rd(207434,0);break a}r=J[f+16>>2];x:{if(!r){if(!J[a>>2])break x;c=0;while(1){J[b+(c<<2)>>2]=c;c=c+1|0;if(c>>>0>2])continue;break}break x}if(!J[r+20>>2])break x;o=J[f>>2];a=0;while(1){y:{z:{A:{e= +J[r+24>>2]+(a<<3)|0;switch(K[e+4|0]){case 1:break z;case 0:break A;default:break y}}J[J[f+32>>2]+(a<<2)>>2]=a;break y}i=Dc(J[o+20>>2]<<2);B:{if(!J[o+20>>2]){d=K[e+5|0];b=0;break B}d=K[e+5|0];h=J[o+28>>2]+(d<<2)|0;g=K[o+24|0];c=0;while(1){J[(c<<2)+i>>2]=J[h+(P(c,g)<<2)>>2];b=J[o+20>>2];c=c+1|0;if(b>>>0>c>>>0)continue;break}}c=J[f+24>>2];n=c;d=K[J[o+32>>2]+d|0];d=d+1&127|d&128;s=J[c+16>>2];p=0;h=fc-32|0;fc=h;c=J[e>>2];e=J[J[n+24>>2]+(c<<2)>>2];J[h>>2]=J[e>>2];J[h+4>>2]=J[e+4>>2];J[h+8>>2]=J[e+8>>2]; +J[h+12>>2]=J[e+12>>2];J[h+16>>2]=J[e+16>>2];g=J[e+20>>2];J[h+28>>2]=d>>>7;J[h+24>>2]=d&127;J[h+20>>2]=g;C:{if(Gs(n,s,h))break C;if((c|0)>=(s|0)){c=c+1|0;e=J[J[n+24>>2]+(c<<2)>>2]}g=J[e+20>>2];if((g|0)>0){d=J[e+16>>2];if((d|0)<=0)break C;u=b-1|0;v=c<<2;while(1){q=0;if((d|0)>0){while(1){D:{E:{j=J[J[n+24>>2]+v>>2];if((Xg(J[j+32>>2],P(J[j+36>>2],P(J[j+16>>2],p)+q|0),0)|0)<0)break E;c=0;g=J[j+36>>2];if((g|0)>0)while(1){d=J[j+32>>2];k=J[d+8>>2];if(k&7)break E;l=J[d+64>>2];if(!((l|0)<0|(l|0)>J[d+60>>2])){J[d+ +8>>2]=k|4;break E}k=J[d+28>>2];J[d+28>>2]=k-1;F:{if((k|0)>0){J[d+60>>2]=J[d+60>>2]+1;l=d;d=J[d+24>>2];J[l+24>>2]=d+1;d=K[d|0];break F}d=td(d,1);if((d|0)==-1)break E}c=d&255|c<<8;d=(g|0)>1;g=g-1|0;if(d)continue;break}d=c;c=J[j+24>>2];g=1<>2])d=d-(g&0-(d>>>c-1&1))|0;if((d|0)<0)break E;c=(b|0)>(d|0)?d:u;break D}c=0}d=J[(c<<2)+i>>2];g=J[J[n+24>>2]+(s<<2)>>2];G:{if((Xg(J[g+32>>2],P(J[g+36>>2],P(J[g+16>>2],p)+q|0),0)|0)<0)break G;c=J[g+36>>2];if((c|0)<=0)break G;j=J[g+24>>2];j=d+(d>> +31&(J[g+28>>2]?1<>2];k=J[d+8>>2];if(k&7)break G;l=J[g+36>>2];t=J[d+64>>2];if(!((t|0)<0|J[d+60>>2]<(t|0))){J[d+8>>2]=k|4;break G}k=j>>>(l<<3)-8|0;J[d+4>>2]=J[d+4>>2]|32;l=J[d+28>>2];J[d+28>>2]=l-1;H:{if((l|0)>0){J[d+60>>2]=J[d+60>>2]+1;l=d;d=J[d+24>>2];J[l+24>>2]=d+1;H[d|0]=k;break H}if((bd(d,k&255)|0)==-1)break G}j=j<<8;d=(c|0)>1;c=c-1|0;if(d)continue;break}}d=J[e+16>>2];q=q+1|0;if((d|0)>(q|0))continue;break}g=J[e+20>>2]}p=p+1|0;if((p|0)<(g|0))continue;break}}}fc= +h+32|0;J[J[f+32>>2]+(a<<2)>>2]=s;uc(i)}a=a+1|0;if(a>>>0>2])continue;break}}b=J[f+24>>2];c=J[b+16>>2];I:{if(!c)break I;i=J[b+24>>2];d=0;a=0;if(c>>>0>=4){g=c&-4;e=0;while(1){h=a<<2;J[J[h+i>>2]+40>>2]=65536;J[J[i+(h|4)>>2]+40>>2]=65536;J[J[i+(h|8)>>2]+40>>2]=65536;J[J[i+(h|12)>>2]+40>>2]=65536;a=a+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}e=c&3;if(!e)break I;while(1){J[J[i+(a<<2)>>2]+40>>2]=65536;a=a+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}e=J[f+28>>2];i=J[f+4>>2];J:{if(i){if(!e)break J; +d=J[f+32>>2];h=J[b+24>>2];g=J[b+28>>2];a=0;while(1){b=J[i+24>>2]+P(a,12)|0;w=J[h+(J[d+(J[b>>2]<<2)>>2]<<2)>>2],x=Jba(g,J[b+4>>2],J[b+8>>2]),J[w+40>>2]=x;a=a+1|0;if((e|0)!=(a|0))continue;break}break J}if(!e)break J;i=J[f+32>>2];d=J[b+24>>2];b=J[b+28>>2];a=0;while(1){n=J[d+(J[i+(a<<2)>>2]<<2)>>2];a=a+1|0;w=n,x=Jba(b,0,a),J[w+40>>2]=x;if((a|0)!=(e|0))continue;break}}K:{if(c){while(1){a=J[f+24>>2];c=c-1|0;if(J[J[J[a+24>>2]+(c<<2)>>2]+40>>2]==65536&J[a+16>>2]>(c|0)){b=J[J[a+24>>2]+(c<<2)>>2];e=J[b+32>> +2];if(e)Pf(e);uc(b);b=J[a+16>>2];if((b|0)>(c|0)){e=J[a+24>>2]+(c<<2)|0;cd(e,e+4|0,b+(c^-1)<<2);b=J[a+16>>2]}J[a+16>>2]=b-1;pv(a)}if(c)continue;break}c=J[f+24>>2];if(J[c+16>>2])break K}c=0;rd(204422,0);break a}J[f+24>>2]=0;break a}fa(205701,205900,294,207927);B()}fa(206316,205900,299,207927);B()}Jh(c)}c=lF(a);if(c)continue;break}c=0;rd(202282,0);break a}rd(d,0);Jh(e)}a=J[f+8>>2];if(a)Jh(a);a=J[f+12>>2];if(a)Jh(a);a=J[f+4>>2];if(a)Jh(a);a=J[f>>2];if(a)Jh(a);a=J[f+24>>2];if(a)Mh(a);a=J[f+16>>2];if(a)Jh(a); +a=J[f+20>>2];if(a)Jh(a);a=J[f+32>>2];if(a)uc(a);uc(f)}fc=m+128|0;return c|0}function WV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=fc-112|0;fc=f;J[f+24>>2]=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{i=J[d+8>>2];if(i){m=e-1|0;while(1){d=f+100|0;TV(d,f+24|0,J[i+8>>2]);J[699344]=0;aa(5228,a|0,d|0)|0;g=J[699344];J[699344]=0;v:{w:{x:{y:{if((g|0)!=1){wc(d);d=J[i+8>>2];J[f+44>>2]=0;J[f+48>>2]=J[685894];if((d|0)>=0){g=d<<1|1;d=0;while(1){J[699344]= +0;aa(5315,f+44|0,32)|0;j=J[699344];J[699344]=0;if((j|0)==1)break y;j=(d|0)==(g|0);d=d+1|0;if(!j)continue;break}}if(!J[i+44>>2]){J[f+36>>2]=0;J[f+40>>2]=J[685894];d=J[i+24>>2];g=J[i+16>>2];j=J[i+20>>2];J[f>>2]=J[i+12>>2];J[f+8>>2]=j;J[699344]=0;J[f+4>>2]=m-g;J[f+12>>2]=m-d;ga(5350,f+36|0,2391953,f|0)|0;d=J[699344];J[699344]=0;z:{A:{B:{C:{D:{E:{F:{G:{if((d|0)!=1){j=J[i+28>>2];d=J[b>>2];H:{if(!d){n=0;break H}g=J[i+32>>2];J[699344]=0;n=ga(5588,d|0,j|0,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break G}g= +J[i+8>>2];J[f+28>>2]=0;d=J[685894];J[f+32>>2]=d;I:{if(g-1>>>0>6)break I;J:{K:switch(g-6|0){case 1:J[699344]=0;d=aa(5149,f+68|0,2399618)|0;g=J[699344];J[699344]=0;L:{M:{N:{O:{if((g|0)!=1){J[699344]=0;g=f+76|0;ca(5218,g|0,2391049,d|0);h=J[699344];J[699344]=0;if((h|0)==1)break O;J[699344]=0;h=f+84|0;ca(5291,h|0,g|0,2392308);g=J[699344];J[699344]=0;if((g|0)==1)break N;J[699344]=0;g=f+92|0;ca(5292,g|0,h|0,f+36|0);h=J[699344];J[699344]=0;if((h|0)==1)break M;J[699344]=0;ca(5291,f+100|0,g|0,2392661);g=J[699344]; +J[699344]=0;if((g|0)==1)break L;g=J[f+100>>2];P:{if(g){h=J[J[g>>2]+28>>2];J[699344]=0;ca(h|0,f+60|0,g|0,1);g=J[699344];J[699344]=0;if((g|0)!=1)break P;a=Z()|0;break i}J[f+60>>2]=0}J[699344]=0;aa(5153,f+28|0,f+60|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){g=J[f+60>>2];J[f+60>>2]=0;if(!g)break J;J[699344]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;k=J[699344];J[699344]=0;if((k|0)!=1){if(h)break J;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)!=1)break J}break c}a=Z()|0;zc(f+60|0);break i}a=Z()|0;break e}a= +Z()|0;wc(d);break e}a=Z()|0;break f}a=Z()|0;break g}a=Z()|0;break h;case 0:J[699344]=0;J[f+56>>2]=d;J[f+52>>2]=0;d=f+52|0;aa(5315,d|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,d|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,d|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315, +f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g| +0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;aa(5315,f+52|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;J[699344]=0;g=f+60|0;ca(5291,g|0,d|0,2391049);d=J[699344];J[699344]=0;Q:{R:{S:{T:{if((d|0)!=1){J[699344]=0;d=f+76|0;ca(5291,d|0,g|0,2399267);g=J[699344];J[699344]=0;if((g|0)==1)break T;J[699344]=0;g=f+84|0;ca(5291,g|0,d|0,2392308);d=J[699344];J[699344]=0;if((d|0)==1)break S;J[699344]=0;d=f+92|0;ca(5292,d|0,g|0,f+36|0);g=J[699344];J[699344]= +0;if((g|0)==1)break R;J[699344]=0;ca(5291,f+100|0,d|0,2392661);d=J[699344];J[699344]=0;if((d|0)==1)break Q;d=J[f+100>>2];U:{if(d){g=J[J[d>>2]+28>>2];J[699344]=0;ca(g|0,f+108|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break U;a=Z()|0;break o}J[f+108>>2]=0}J[699344]=0;aa(5153,f+28|0,f+108|0)|0;d=J[699344];J[699344]=0;V:{if((d|0)!=1){d=J[f+108>>2];J[f+108>>2]=0;if(!d)break V;J[699344]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break V;J[699344]=0;$(5147,d|0);d=J[699344]; +J[699344]=0;if((d|0)!=1)break V}break c}a=Z()|0;zc(f+108|0);break o}d=J[f+28>>2];J[f+32>>2]=J[(d?d+12|0:2743576)>>2];wc(f+100|0);wc(f+92|0);wc(f+84|0);wc(f+76|0);wc(f+60|0);wc(f+52|0);break I}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break l}a=Z()|0;break m}a=Z()|0;break n;default:break K}J[f+56>>2]=d;d=0;J[f+52>>2]=0;h=g<<1|1;while(1){J[699344]=0;k=f+52|0;aa(5315,k|0,32)|0;l=J[699344];J[699344]=0;if((l|0)==1)break w;l=(d|0)==(h|0);d=d+1|0;if(!l)continue;break}J[699344]=0;d=f+60|0;ca(5291,d|0,k|0,2391049); +h=J[699344];J[699344]=0;W:{X:{Y:{Z:{if((h|0)!=1){J[699344]=0;h=f+76|0;ca(5291,h|0,d|0,J[(g<<2)+2418944>>2]);d=J[699344];J[699344]=0;if((d|0)==1)break Z;J[699344]=0;d=f+84|0;ca(5291,d|0,h|0,2392308);g=J[699344];J[699344]=0;if((g|0)==1)break Y;J[699344]=0;g=f+92|0;ca(5292,g|0,d|0,f+36|0);d=J[699344];J[699344]=0;if((d|0)==1)break X;J[699344]=0;ca(5291,f+100|0,g|0,2393295);d=J[699344];J[699344]=0;if((d|0)==1)break W;d=J[f+100>>2];_:{if(d){g=J[J[d>>2]+28>>2];J[699344]=0;ca(g|0,f+108|0,d|0,1);d=J[699344]; +J[699344]=0;if((d|0)!=1)break _;a=Z()|0;break u}J[f+108>>2]=0}J[699344]=0;aa(5153,f+28|0,f+108|0)|0;d=J[699344];J[699344]=0;$:{if((d|0)!=1){d=J[f+108>>2];J[f+108>>2]=0;if(!d)break $;J[699344]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break $;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break $}break c}a=Z()|0;zc(f+108|0);break u}d=J[f+28>>2];J[f+32>>2]=J[(d?d+12|0:2743576)>>2];wc(f+100|0);wc(f+92|0);wc(f+84|0);wc(f+76|0);wc(f+60|0);wc(f+52|0);break I}a= +Z()|0;break p}a=Z()|0;break q}a=Z()|0;break r}a=Z()|0;break s}a=Z()|0;break t}g=J[f+28>>2];J[f+32>>2]=J[(g?g+12|0:2743576)>>2];wc(f+100|0);wc(f+92|0);wc(f+84|0);wc(f+76|0);wc(d)}J[699344]=0;d=f+28|0;aa(5228,a|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break F;wc(d);J[699344]=0;g=f+92|0;ia(5313,g|0,b|0,j|0,n-j|0);d=J[699344];J[699344]=0;if((d|0)==1)break E;J[699344]=0;d=f+100|0;ca(5599,d|0,g|0,0);j=J[699344];J[699344]=0;if((j|0)==1)break D;J[699344]=0;aa(5228,a|0,d|0)|0;j=J[699344];J[699344]=0;if((j| +0)==1)break C;wc(d);wc(g);g=J[i+8>>2];J[699344]=0;da(5600,d|0,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break A;J[699344]=0;aa(5228,a|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break z;wc(d);wc(f+36|0);break v}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break d}a=Z()|0;break B}a=Z()|0;wc(f+100|0)}wc(f+92|0);break d}a=Z()|0;break d}a=Z()|0;wc(f+100|0);break d}d=J[i+8>>2];J[699344]=0;ma(5601,a|0,b|0,d|0,i+36|0,e|0);d=J[699344];J[699344]=0;if((d|0)!=1)break v;a=Z()|0;break a}break b}a=Z()| +0;break a}a=Z()|0;break j}a=Z()|0;break p}wc(f+44|0);i=J[i>>2];if(i)continue;break}}b=f+100|0;TV(b,f+24|0,c);J[699344]=0;aa(5228,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){wc(b);fc=f+112|0;return}break b}wc(f+100|0)}wc(f+92|0)}wc(f+84|0)}wc(f+76|0)}wc(f+60|0)}wc(f+52|0);break e}wc(f+100|0)}wc(f+92|0)}wc(f+84|0)}wc(f+76|0)}wc(f+60|0)}wc(f+52|0);break e}wc(f+100|0)}wc(f+92|0)}wc(f+84|0)}wc(f+76|0);wc(d)}wc(f+28|0)}wc(f+36|0);break a}ea(0)|0;Bc();B()}a=Z()|0;wc(f+100|0);ba(a|0);B()}wc(f+44|0);ba(a| +0);B()}function FS(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,N=0,O=0,P=0,Q=0,R=0;k=fc-336|0;fc=k;m=h;n=i&65535;o=d;p=e&65535;s=(e^i)&-2147483648;x=i>>>16&32767;u=e>>>16&32767;a:{b:{if(x-32767>>>0>4294934529&u-32767>>>0>=4294934530)break b;j=e&2147483647;if(!(!d&(j|0)==2147418112?!(b|c):j>>>0<2147418112)){r=d;s=e|32768;break a}e=i&2147483647;if(!(!h&(e|0)==2147418112?!(f|g):e>>>0<2147418112)){r=h;s=i|32768; +b=f;c=g;break a}if(!(b|d|(j^2147418112|c))){if(!(f|h|(e^2147418112|g))){b=0;c=0;s=2147450880;break a}s=s|2147418112;b=0;c=0;break a}if(!(f|h|(e^2147418112|g))){b=0;c=0;break a}if(!(b|d|(c|j))){b=!(f|h|(e|g));r=b?0:r;s=b?2147450880:s;b=0;c=0;break a}if(!(f|h|(e|g))){s=s|2147418112;b=0;c=0;break a}if((j|0)==65535|j>>>0<65535){d=!(o|p);i=d;j=d?b:o;d=d<<6;i=S(i?c:p);d=d+((i|0)==32?S(j)+32|0:i)|0;Gi(k+320|0,b,c,o,p,d-15|0);q=16-d|0;o=J[k+328>>2];p=J[k+332>>2];c=J[k+324>>2];b=J[k+320>>2]}if(e>>>0>65535)break b; +d=!(n|m);h=d;i=d?f:m;d=d<<6;h=S(h?g:n);d=d+((h|0)==32?S(i)+32|0:h)|0;Gi(k+304|0,f,g,m,n,d-15|0);q=(d+q|0)-16|0;m=J[k+312>>2];n=J[k+316>>2];f=J[k+304>>2];g=J[k+308>>2]}e=n|65536;y=e;z=m;d=m;j=e<<15|d>>>17;e=d<<15|g>>>17;d=e;i=0-d|0;h=j;j=1963258675-(j+((d|0)!=0)|0)|0;oi(k+288|0,d,h,0,0,i,j,0,0);d=J[k+296>>2];oi(k+272|0,0-d|0,0-(J[k+300>>2]+((d|0)!=0)|0)|0,0,0,i,j,0,0);d=J[k+280>>2];i=d<<1|J[k+276>>2]>>>31;d=J[k+284>>2]<<1|d>>>31;oi(k+256|0,i,d,0,0,e,h,0,0);j=J[k+264>>2];oi(k+240|0,i,d,0,0,0-j|0,0- +(J[k+268>>2]+((j|0)!=0)|0)|0,0,0);i=J[k+248>>2];j=i<<1|J[k+244>>2]>>>31;d=J[k+252>>2]<<1|i>>>31;oi(k+224|0,j,d,0,0,e,h,0,0);i=J[k+232>>2];oi(k+208|0,j,d,0,0,0-i|0,0-(J[k+236>>2]+((i|0)!=0)|0)|0,0,0);d=J[k+216>>2];i=d<<1|J[k+212>>2]>>>31;d=J[k+220>>2]<<1|d>>>31;oi(k+192|0,i,d,0,0,e,h,0,0);j=J[k+200>>2];oi(k+176|0,i,d,0,0,0-j|0,0-(J[k+204>>2]+((j|0)!=0)|0)|0,0,0);i=e;e=J[k+184>>2];d=h;m=e<<1|J[k+180>>2]>>>31;h=m-1|0;e=(J[k+188>>2]<<1|e>>>31)-!m|0;oi(k+160|0,i,d,0,0,h,e,0,0);d=h;oi(k+144|0,f<<15,g<< +15|f>>>17,0,0,d,e,0,0);v=k+112|0;A=J[k+168>>2];h=J[k+172>>2];m=J[k+160>>2];i=J[k+152>>2];l=m+i|0;n=J[k+164>>2];j=n+J[k+156>>2]|0;j=i>>>0>l>>>0?j+1|0:j;i=j;j=(n|0)==(j|0)&l>>>0>>0|j>>>0>>0;n=j+A|0;j=j>>>0>n>>>0?h+1|0:h;m=!i&l>>>0>1|(i|0)!=0;h=n+m|0;j=m>>>0>h>>>0?j+1|0:j;oi(v,d,e,0,0,0-h|0,0-(((h|0)!=0)+j|0)|0,0,0);oi(k+128|0,1-l|0,0-((l>>>0>1)+i|0)|0,0,0,d,e,0,0);K=(u-x|0)+q|0;e=J[k+116>>2];u=e;d=J[k+112>>2];j=e<<1|d>>>31;i=d<<1;n=j;d=j;h=J[k+140>>2];w=h;e=J[k+136>>2];j=h<<1|e>>>31;l=e<<1|J[k+ +132>>2]>>>31;h=l+i|0;d=d+j|0;d=h>>>0>>0?d+1|0:d;e=d;d=d-(h>>>0<13927)|0;t=d;v=d;l=0;j=p|65536;L=j;N=o;d=o;j=j<<1|d>>>31;P=d<<1;Q=j;E=j;d=vEb(t,l,j,0);j=jc;B=d;C=j;G=b<<1;d=c<<1|b>>>31;x=d;A=d;j=0;q=j;m=h-13927|0;t=(e|0)==(t|0)&m>>>0>>0|e>>>0>t>>>0;e=(e|0)==(n|0)&h>>>0>>0|e>>>0>>0;d=J[k+120>>2];h=J[k+124>>2]<<1|d>>>31;d=d<<1|u>>>31;l=w>>>31|0;d=l+d|0;j=h;j=d>>>0>>0?j+1|0:j;h=d;d=d+e|0;j=h>>>0>d>>>0?j+1|0:j;e=d;d=d+t|0;l=e>>>0>d>>>0?j+1|0:j;e=d-1|0;D=l-!d|0;w=0;i=vEb(A,q,D,w);d=i+B|0; +h=jc+C|0;h=d>>>0>>0?h+1|0:h;n=(C|0)==(h|0)&d>>>0>>0|h>>>0>>0;B=e;O=c>>>31|0;F=O|o<<1;t=0;e=vEb(e,0,F,t);o=e+d|0;j=jc+h|0;l=0;j=e>>>0>o>>>0?j+1|0:j;p=j;d=(j|0)==(h|0)&d>>>0>o>>>0|h>>>0>j>>>0;e=d;d=d+n|0;l=e>>>0>d>>>0?1:l;e=vEb(E,q,D,w);d=e+d|0;j=jc+l|0;n=d;d=d>>>0>>0?j+1|0:j;e=vEb(E,q,B,t);l=jc;h=e;e=vEb(F,t,D,w);i=h+e|0;j=jc+l|0;j=e>>>0>i>>>0?j+1|0:j;e=j;j=(l|0)==(j|0)&h>>>0>i>>>0|j>>>0>>0;l=n+e|0;d=d+j|0;d=l>>>0>>0?d+1|0:d;n=l;l=d;e=0;d=e+o|0;j=i+p|0;j=d>>>0>>0?j+1|0:j;e=j;h= +(j|0)==(p|0)&d>>>0>>0|j>>>0

      >>0;j=l;i=h;h=h+n|0;j=i>>>0>h>>>0?j+1|0:j;u=h;l=j;o=d;C=m;d=vEb(m,0,F,t);i=jc;h=d;m=vEb(v,r,A,r);d=d+m|0;j=jc+i|0;j=d>>>0>>0?j+1|0:j;m=(i|0)==(j|0)&d>>>0>>0|i>>>0>j>>>0;h=j;H=G&-2;i=vEb(B,t,H,0);p=i+d|0;j=jc+j|0;j=i>>>0>p>>>0?j+1|0:j;i=j;d=(j|0)==(h|0)&d>>>0>p>>>0|h>>>0>j>>>0;h=0;j=d+m|0;d=(j>>>0>>0?1:h)+e|0;n=j+o|0;d=n>>>0>>0?d+1|0:d;j=l;m=d;d=(d|0)==(e|0)&n>>>0>>0|d>>>0>>0;e=d;d=d+u|0;j=e>>>0>d>>>0?j+1|0:j;R=d;u=j;d=vEb(E,q,C,r);I=jc;E=d;e=vEb(D, +w,H,r);d=d+e|0;j=jc+I|0;j=d>>>0>>0?j+1|0:j;o=d;l=vEb(v,r,F,t);e=d+l|0;h=j;d=j+jc|0;d=e>>>0>>0?d+1|0:d;q=e;j=vEb(A,r,B,t);e=e+j|0;l=jc+d|0;l=e>>>0>>0?l+1|0:l;D=(d|0)==(l|0)&e>>>0>>0|d>>>0>l>>>0;j=(h|0)==(I|0)&o>>>0>>0|h>>>0>>0;d=(d|0)==(h|0)&o>>>0>q>>>0|d>>>0>>0;d=d+j|0;d=d+D|0;h=l;q=h+n|0;j=(d|w)+m|0;j=h>>>0>q>>>0?j+1|0:j;o=j;d=(m|0)==(j|0)&n>>>0>q>>>0|j>>>0>>0;j=u;h=d;d=d+R|0;j=h>>>0>d>>>0?j+1|0:j;w=d;m=j;d=vEb(v,r,H,r);v=jc;n=d;h=vEb(A,r,C,r);d=d+h|0;j=jc+v|0;j=d>>>0>> +0?j+1|0:j;u=0;h=(j|0)==(v|0)&d>>>0>>0|j>>>0>>0;n=j;d=j+p|0;j=(h|u)+i|0;j=d>>>0>>0?j+1|0:j;i=(i|0)==(j|0)&d>>>0

      >>0|i>>>0>j>>>0;h=j;j=e;p=0;e=p+d|0;l=h+j|0;j=0;l=e>>>0

      >>0?l+1|0:l;d=(h|0)==(l|0)&d>>>0>e>>>0|h>>>0>l>>>0;e=d;d=d+i|0;j=(e>>>0>d>>>0?1:j)+o|0;l=m;e=d;d=d+q|0;j=e>>>0>d>>>0?j+1|0:j;e=j;h=(o|0)==(j|0)&d>>>0>>0|j>>>0>>0;i=h;h=h+w|0;l=i>>>0>h>>>0?l+1|0:l;i=l;c:{if((l|0)==131071|l>>>0<131071){N=P|O;L=t|Q;oi(k+80|0,d,j,h,l,f,g,z,y);l=J[k+84>>2];q=l;j=b<<17;o=0;p=J[k+88>>2]; +c=o-p|0;b=J[k+80>>2];l=(l|b)!=0;m=c-l|0;n=(j-(J[k+92>>2]+(o>>>0

      >>0)|0)|0)-(c>>>0>>0)|0;p=0-(((b|0)!=0)+q|0)|0;q=K+16382|0;o=0-b|0;break c}d=(e&1)<<31|d>>>1;e=h<<31|e>>>1;h=(i&1)<<31|h>>>1;i=i>>>1|0;oi(k+96|0,d,e,h,i,f,g,z,y);m=J[k+100>>2];x=m;n=0;q=J[k+104>>2];o=n-q|0;l=J[k+96>>2];p=(m|l)!=0;m=o-p|0;n=((b<<16)-(J[k+108>>2]+(n>>>0>>0)|0)|0)-(o>>>0

      >>0)|0;p=0-(((l|0)!=0)+x|0)|0;G=b;x=c;q=K+16383|0;o=0-l|0}if((q|0)>=32767){s=s|2147418112;b=0;c=0;break a}d:{if((q|0)>0){b=m<<1|p>>>31;c=n<<1| +m>>>31;m=h;n=i&65535|q<<16;l=p<<1|o>>>31;h=o<<1;break d}if((q|0)<=-113){b=0;c=0;break a}hr(k- -64|0,d,e,h,i,1-q|0);Gi(k+48|0,G,x,N,L,q+112|0);d=J[k+64>>2];e=J[k+68>>2];m=J[k+72>>2];n=J[k+76>>2];oi(k+32|0,f,g,z,y,d,e,m,n);b=J[k+40>>2];c=J[k+56>>2];i=J[k+36>>2];p=b<<1|i>>>31;l=c-p|0;p=J[k+60>>2]-((J[k+44>>2]<<1|b>>>31)+(c>>>0

      >>0)|0)|0;c=J[k+52>>2];q=c;b=J[k+32>>2];h=i<<1|b>>>31;o=b<<1;b=o;j=J[k+48>>2];c=(c|0)==(h|0)&b>>>0>j>>>0|c>>>0>>0;b=l-c|0;c=p-(c>>>0>l>>>0)|0;l=q-((j>>>0>>0)+h|0)|0;h= +j-o|0}oi(k+16|0,f,g,z,y,3,0,0,0);oi(k,f,g,z,y,5,0,0,0);o=d;p=d&1;i=p;d=h+i|0;j=0;h=j+l|0;h=d>>>0>>0?h+1|0:h;i=d;g=(g|0)==(h|0)&d>>>0>f>>>0|g>>>0>>0;l=c;d=(h|0)==(j|0)&d>>>0

      >>0|h>>>0>>0;f=b+d|0;l=d>>>0>f>>>0?l+1|0:l;j=e;b=(l|0)==(y|0);b=b&(f|0)==(z|0)?g:b&f>>>0>z>>>0|l>>>0>y>>>0;c=b;b=b+o|0;j=c>>>0>b>>>0?j+1|0:j;c=j;d=(e|0)==(j|0)&b>>>0>>0|e>>>0>j>>>0;j=n;e=d;d=d+m|0;j=e>>>0>d>>>0?j+1|0:j;g=d;e=J[k+20>>2];m=(e|0)==(h|0)&M[k+16>>2]>>0|e>>>0>>0;e=J[k+28>>2];d=J[k+24>>2];e=j>>>0< +2147418112&((d|0)==(f|0)&(e|0)==(l|0)?m:(e|0)==(l|0)&d>>>0>>0|e>>>0>>0);d=c;m=e;e=b+e|0;d=m>>>0>e>>>0?d+1|0:d;b=(c|0)==(d|0)&b>>>0>e>>>0|c>>>0>d>>>0;c=b;b=b+g|0;j=c>>>0>b>>>0?j+1|0:j;g=b;c=J[k+4>>2];h=(c|0)==(h|0)&M[k>>2]>>0|c>>>0>>0;c=J[k+12>>2];b=J[k+8>>2];b=j>>>0<2147418112&((b|0)==(f|0)&(c|0)==(l|0)?h:(c|0)==(l|0)&b>>>0>>0|c>>>0>>0);c=b;b=b+e|0;l=c>>>0>b>>>0?d+1|0:d;c=l;e=(d|0)==(l|0)&b>>>0>>0|d>>>0>l>>>0;d=j;f=e;e=e+g|0;d=f>>>0>e>>>0?d+1|0:d;r=e|r;s=d|s}J[a>>2]=b;J[a+4>> +2]=c;J[a+8>>2]=r;J[a+12>>2]=s;fc=k+336|0}function s7(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;l=fc-48|0;fc=l;d=yd(b,c+d|0);a:{if(d)break a;d=af(b,e);if(d)break a;b:{c:{if(!e)break c;g=J[b+32>>2];k=g+e|0;if(H[g|0]<0){m=J[a+16>>2];p=J[a+28>>2];J[l>>2]=0;d=8;if((e|0)<=0)break b;h=H[g|0];if((h|0)>=0)break b;f=g+1|0;i=J[p>>2];j=h&255;d:{if(!(j&64)){e=f;break d}if(e>>>0<2)break b;e=g+2|0;h=K[f|0];if(!h)break d;while(1){f=e+2|0;if(f>>>0>k>>>0)break b;e=f+K[e|0]|0;if(k>>> +0>>0)break b;h=h-1|0;if(h)continue;break}}q=j&63;f=q+m|0;h=J[a+20>>2];e:{if(f>>>0<=h>>>0){h=J[a+24>>2];break e}f=f+3&-4;if(f>>>0>64)break b;h=_c(i,24,h,f,J[a+24>>2],l);J[a+24>>2]=h;d=J[l>>2];if(d)break b;J[a+20>>2]=f}if(q){h=P(m,24)+h|0;d=8;while(1){i=e+1|0;if(k>>>0>>0)break b;g=K[e|0];J[h>>2]=65536;if(g&16){i=e+3|0;if(k>>>0>>0)break b;e=K[e+1|0]|K[e+2|0]<<8;J[h>>2]=(e<<8|e>>>8)<<16>>16<<4}J[h+4>>2]=65536;f:{if(!(g&32)){e=i;break f}e=i+2|0;if(k>>>0>>0)break b;f=K[i|0]|K[i+1|0]<<8;J[h+ +4>>2]=(f<<8|f>>>8)<<16>>16<<4}j=0;i=0;g:{h:switch((g&3)-1|0){case 0:f=e+2|0;if(f>>>0>k>>>0)break b;e=K[e|0]|K[e+1|0]<<8;i=(e<<8|e>>>8)<<16>>16;e=f;break g;case 1:break h;default:break g}f=e+1|0;if(f>>>0>k>>>0)break b;i=H[e|0];e=f}i:{j:switch((g>>>2&3)-1|0){case 0:f=e+2|0;if(f>>>0>k>>>0)break b;e=K[e|0]|K[e+1|0]<<8;j=(e<<8|e>>>8)<<16>>16;e=f;break i;case 1:break j;default:break i}f=e+1|0;if(f>>>0>k>>>0)break b;j=H[e|0];e=f}J[h+12>>2]=j;J[h+8>>2]=i;k:{if(g&64){i=e+2|0;if(k>>>0>>0)break b;e=K[e+1| +0]|K[e|0]<<8;break k}i=e+1|0;if(k>>>0>>0)break b;e=K[e|0]}J[h+20>>2]=e;l:{if(g<<24>>24<0){e=i+3|0;if(k>>>0>>0)break b;j=2;f=K[i+1|0]<<8|K[i|0]<<16;break l}e=i+2|0;if(k>>>0>>0)break b;j=1;f=K[i|0]<<8}J[h+16>>2]=f|K[i+j|0];J[a+16>>2]=J[a+16>>2]+1;h=h+24|0;n=n+1|0;if((q|0)!=(n|0))continue;break}}ve(b);d=0;e=J[a+16>>2];if((e|0)==(m|0))break a;i=e-m|0;n=0;while(1){h=I[p+22>>1];f=P(n,24);e=P(m,24);d=f+(e+J[a+24>>2]|0)|0;d=s7(a,b,c,J[d+16>>2],J[d+20>>2]);if(d)break a;k=I[p+22>>1];g=k-h|0;f=f+(e+ +J[a+24>>2]|0)|0;m:{if(!(J[f>>2]==65536&J[f+4>>2]==65536)){if((g|0)<=0)break m;d=J[p+24>>2]+(h<<3)|0;e=0;while(1){t=d,u=Wc(J[d>>2],J[f>>2])+J[f+8>>2]|0,J[t>>2]=u;t=d,u=Wc(J[d+4>>2],J[f+4>>2])+J[f+12>>2]|0,J[t+4>>2]=u;d=d+8|0;e=e+1|0;if((g|0)!=(e|0))continue;break}break m}if((g|0)<=0)break m;d=J[p+24>>2]+(h<<3)|0;e=J[f+12>>2];f=J[f+8>>2];if(k+(h^-1)>>>0>=3){k=g&-4;h=0;while(1){J[d>>2]=f+J[d>>2];J[d+4>>2]=e+J[d+4>>2];J[d+8>>2]=f+J[d+8>>2];J[d+16>>2]=f+J[d+16>>2];J[d+24>>2]=f+J[d+24>>2];J[d+12>>2]=e+ +J[d+12>>2];J[d+20>>2]=e+J[d+20>>2];J[d+28>>2]=e+J[d+28>>2];d=d+32|0;h=h+4|0;if((k|0)!=(h|0))continue;break}}h=0;g=g&3;if(!g)break m;while(1){J[d>>2]=f+J[d>>2];J[d+4>>2]=e+J[d+4>>2];d=d+8|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}d=0;n=n+1|0;if((i|0)!=(n|0))continue;break}break a}J[l+44>>2]=0;d=8;if((e|0)<=0)break b;c=H[g|0];if((c|0)<0)break b;j=J[J[a+28>>2]>>2];i=c&255;n:{if(i&4){if(e>>>0<2)break b;f=g+2|0;c=K[g+1|0];n=c>>>4|0;m=c&15;break n}if(i&2){if(e>>>0<2)break b;m=K[g+1|0];c=g+2|0}else c=g+ +1|0;if(!(i&1)){f=c;break n}f=c+1|0;if(k>>>0>>0)break b;n=K[c|0]}g=m+n|0;c=J[a+4>>2];o:{p:{if(g>>>0>c>>>0){d=c;c=g+7&1016;j=_c(j,4,d,c,J[a+8>>2],l+44|0);J[a+8>>2]=j;d=J[l+44>>2];if(d)break b;J[a+4>>2]=c;J[a+12>>2]=(m<<2)+j;p=a+12|0;break p}j=J[a+8>>2];J[a+12>>2]=j+(m<<2);p=a+12|0;if(!g)break o}c=0;d=0;while(1){q:{if(d&7){e=f;break q}e=f+1|0;if(k>>>0>>0)break c;c=K[f|0]}o=(d<<2)+j|0;r:{if(c&1){f=e+2|0;if(k>>>0>>0)break c;e=K[e|0]|K[e+1|0]<<8;h=(e<<8|e>>>8)<<16>>16;break r}f=e+1|0;if(k>>>0< +f>>>0)break c;h=K[e|0]+h|0}J[o>>2]=h;c=c>>>1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}d=8;s:{if(!(i&8)){c=f;break s}c=f+1|0;if(k>>>0>>0)break b;e=K[f|0];if(e)while(1){f=c+2|0;if(f>>>0>k>>>0)break b;c=f+K[c|0]|0;if(k>>>0>>0)break b;e=e-1|0;if(e)continue;break}J[l+44>>2]=0}H[a+32|0]=0;J[l+24>>2]=0;J[l+28>>2]=0;J[l>>2]=0;J[l+4>>2]=0;q=l+16|0;r=l|8;f=0;h=0;while(1){g=c+1|0;if(g>>>0>k>>>0)break c;c=K[c|0];e=c&15;j=1;t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{o=c>>>4|0;switch(o|0){case 0:break w;case 1:case 4:case 5:break x; +case 7:break z;case 6:break A;case 3:break C;case 2:break D;default:break y}}if(e>>>0>=m>>>0)break c;J[l>>2]=J[J[a+8>>2]+(e<<2)>>2];break B}if(e>>>0>=n>>>0)break c;J[l>>2]=h;f=J[J[p>>2]+(e<<2)>>2]}J[l+4>>2]=f;f=J[l+4>>2];h=J[l>>2];J[l+24>>2]=h;J[l+28>>2]=f;c=g;break v}e=2958;j=3;break x}e=3627;j=3;break x}j=4}d=l;i=0;c=g;while(1){E:{F:switch(e&3){case 0:g=c+1|0;if(g>>>0>k>>>0)break c;c=K[c|0];if(c>>>0>=m>>>0)break c;h=J[J[a+8>>2]+(c<<2)>>2];c=g;break E;case 1:g=c+2|0;if(g>>>0>k>>>0)break c;c=K[c| +0]|K[c+1|0]<<8;h=(c<<8|c>>>8)<<16>>16;c=g;break E;case 2:break F;default:break E}g=c+1|0;if(g>>>0>k>>>0)break c;h=H[c|0]+h|0;c=g}J[d>>2]=h;G:{H:switch(e>>>2&3){case 0:h=c+1|0;if(h>>>0>k>>>0)break c;c=K[c|0];if(c>>>0>=n>>>0)break c;f=J[J[p>>2]+(c<<2)>>2];c=h;break G;case 1:h=c+2|0;if(h>>>0>k>>>0)break c;c=K[c|0]|K[c+1|0]<<8;f=(c<<8|c>>>8)<<16>>16;c=h;break G;case 2:break H;default:break G}h=c+1|0;if(h>>>0>k>>>0)break c;f=H[c|0]+f|0;c=h}J[d+4>>2]=f;I:{if(!((j|0)!=4|i)){f=c+1|0;if(f>>>0>k>>>0)break c; +e=K[c|0];j=3;c=f;break I}e=e>>>4|0}f=J[d+4>>2];h=J[d>>2];J[l+24>>2]=h;J[l+28>>2]=f;d=d+8|0;i=i+1|0;if(j>>>0>i>>>0)continue;break}J:switch(o|0){case 4:case 5:e=J[a+28>>2];K:{if(!K[a+32|0])break K;i=I[e+58>>1];d=i-1|0;g=L[e+56>>1];j=g<<16>>16;if((j|0)<=0)g=0;else g=I[(J[e+68>>2]+(g<<1)|0)-2>>1];L:{if((d|0)<=(g|0))break L;o=J[e+60>>2];s=o+(g<<3)|0;o=o+(d<<3)|0;if(J[s>>2]!=J[o>>2]|J[s+4>>2]!=J[o+4>>2])break L;I[e+58>>1]=i-1;d=i-2|0}if((d|0)<(g|0))break K;I[e+56>>1]=j+1;I[J[e+68>>2]+(j<<1)>>1]=d}H[a+32| +0]=1;d=I[e+58>>1];i=(d+I[e+22>>1]|0)+1|0;j=J[e+4>>2];if(!(i>>>0<=j>>>0&M[e+8>>2]>=(I[e+20>>1]+I[e+56>>1]|0)+1>>>0)){d=Hh(e,1,1);if(d)break t;if(!K[a+32|0]){d=8;break t}e=J[a+28>>2];d=I[e+58>>1];i=(d+I[e+22>>1]|0)+1|0;j=J[e+4>>2]}if(i>>>0>j>>>0){d=Hh(e,1,0);if(d)break t;d=I[e+58>>1]}break u;case 1:case 2:case 3:break v;case 0:break w;default:break J}if(K[a+32|0]){d=J[a+28>>2];e=I[d+58>>1];M:{if(M[d+4>>2]<(I[d+22>>1]+e|0)+3>>>0){e=Hh(d,3,0);if(e)break M;e=I[d+58>>1]}i=J[d- -64>>2];j=J[l+4>>2];g=J[d+ +60>>2]+(e<<3)|0;J[g>>2]=J[l>>2];J[g+4>>2]=j;j=J[r+4>>2];J[g+8>>2]=J[r>>2];J[g+12>>2]=j;j=J[q+4>>2];J[g+16>>2]=J[q>>2];J[g+20>>2]=j;e=e+i|0;H[e+2|0]=1;H[e|0]=2;H[e+1|0]=2;I[d+58>>1]=L[d+58>>1]+3;e=0}d=e}else d=8;break t}e=J[a+28>>2];if(K[a+32|0]){f=I[e+58>>1];d=f-1|0;c=L[e+56>>1];h=c<<16>>16;if((h|0)<=0)c=0;else c=I[(J[e+68>>2]+(c<<1)|0)-2>>1];N:{if((d|0)<=(c|0))break N;g=J[e+60>>2];i=g+(c<<3)|0;g=g+(d<<3)|0;if(J[i>>2]!=J[g>>2]|J[i+4>>2]!=J[g+4>>2])break N;I[e+58>>1]=f-1;d=f-2|0}if((c|0)<=(d|0)){I[e+ +56>>1]=h+1;I[J[e+68>>2]+(h<<1)>>1]=d}H[a+32|0]=0}gy(e);d=J[l+44>>2];break b}if(!K[a+32|0]){d=8;break t}e=J[a+28>>2];d=I[e+58>>1];if(M[e+4>>2]<(d+I[e+22>>1]|0)+1>>>0){d=Hh(e,1,0);if(d)break t;d=I[e+58>>1]}}i=J[l+4>>2];g=J[e+60>>2]+(d<<3)|0;J[g>>2]=J[l>>2];J[g+4>>2]=i;H[d+J[e- -64>>2]|0]=1;I[e+58>>1]=L[e+58>>1]+1;d=0}J[l+44>>2]=d;if(!d)continue;break}break b}d=8}ve(b)}fc=l+48|0;return d}function Tha(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,u=0,v=0;l=fc-528|0;fc=l;J[l+520>>2]=k;J[l+524>>2]=b;a:{b:{if(nl(a,l+524|0)){J[f>>2]=J[f>>2]|4;a=0;break b}J[l+76>>2]=6891;b=l+76|0;q=Bg(l+104|0,l+112|0,b);k=J[q>>2];J[l+100>>2]=k;J[l+96>>2]=k+400;r=Ze(b);o=Ze(l- -64|0);n=Ze(l+52|0);m=Ze(l+40|0);p=Ze(l+28|0);J[699344]=0;Ka(6894,c|0,d|0,l+92|0,l+91|0,l+90|0,r|0,o|0,n|0,m|0,l+24|0);b=J[699344];J[699344]=0;if((b|0)!=1){J[j>>2]=J[i>>2];s=e&512;e=0;k=0;while(1){c=k;c:{d:{e:{f:{if((e|0)==4)break f;J[699344]=0;b=aa(6744,a|0,l+ +524|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break f;b=0;g:{h:{i:{j:{k:switch(H[(l+92|0)+e|0]){case 1:if((e|0)==3)break d;J[699344]=0;b=_(6745,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b&255)<<2)>>2]&1;else b=0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b){J[699344]=0;ca(6896,l+16|0,a|0,0);b=J[699344];J[699344]=0;if((b|0)!=1){b=H[l+16|0];J[699344]=0;da(6897,p|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j}break a}J[f>>2]=J[f>>2]| +4;a=0;break e;case 4:break g;case 2:break h;case 3:break i;case 0:break k;default:break c}if((e|0)==3)break d}while(1){J[699344]=0;b=aa(6744,a|0,l+524|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break d;J[699344]=0;b=_(6745,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b&255)<<2)>>2]&1;else b=0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(!b)break d;J[699344]=0;ca(6896,l+16|0,a|0,0);b=J[699344];J[699344]=0;if((b|0)!=1){b=H[l+16|0];J[699344]= +0;da(6897,p|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue}break}break a}l:{if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b)break l;J[699344]=0;d=_(6745,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(K[n+11|0]>>>7|0)b=J[n>>2];else b=n;if(K[b|0]!=(d&255))break l;J[699344]=0;_(6747,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;H[g|0]=0;if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;k=b>>>0>1?n:c;break c}m:{if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break m; +J[699344]=0;d=_(6745,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(K[m+11|0]>>>7|0)b=J[m>>2];else b=m;if(K[b|0]!=(d&255))break m;J[699344]=0;_(6747,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;H[g|0]=1;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;k=b>>>0>1?m:c;break c}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;d=!b;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!(d|!b)){J[f>>2]=J[f>>2]|4;a=0;break e}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b){if(K[m+ +11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break d}if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;H[g|0]=!b;break d}if(!(s|(c|e>>>0<2))){k=0;if(!((e|0)==2&K[l+95|0]!=0))break c}u=l,v=Ei(o),J[u+12>>2]=v;J[l+16>>2]=J[l+12>>2];n:{if(!e|K[(e+l|0)+91|0]>1)break n;o:{while(1){u=l,v=Hp(o),J[u+12>>2]=v;b=J[l+16>>2];if((b|0)==J[l+12>>2])break o;b=H[b|0];J[699344]=0;if((b|0)>=0)b=J[J[h+8>>2]+((b&255)<<2)>>2]&1;else b=0;d=J[699344];J[699344]=0;if((d|0)!=1){if(!b)break o;J[l+16>>2]=J[l+16>>2]+1; +continue}break}break a}u=l,v=Ei(o),J[u+12>>2]=v;if(K[p+11|0]>>>7|0)k=J[p+4>>2];else k=K[p+11|0]&127;b=l+12|0;d=J[l+16>>2]-J[b>>2]|0;if(k>>>0>=d>>>0){u=l,v=Hp(p),J[u+12>>2]=v;b=fz(b,0-d|0);d=Hp(p);k=Ei(o);J[699344]=0;b=sR(b,d,k);d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break n}u=l,v=Ei(o),J[u+8>>2]=v;J[l+12>>2]=J[l+8>>2];J[l+16>>2]=J[l+12>>2]}J[l+12>>2]=J[l+16>>2];p:{while(1){u=l,v=Hp(o),J[u+8>>2]=v;if(J[l+12>>2]==J[l+8>>2])break p;J[699344]=0;b=aa(6744,a|0,l+524|0)|0;d=J[699344];J[699344]= +0;q:{if((d|0)==1)break q;if(b)break p;J[699344]=0;b=_(6745,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;if(K[J[l+12>>2]]!=(b&255))break p;J[699344]=0;_(6747,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[l+12>>2]=J[l+12>>2]+1;continue}break}break a}if(!s)break d;u=l,v=Hp(o),J[u+8>>2]=v;if(J[l+12>>2]==J[l+8>>2])break d;J[f>>2]=J[f>>2]|4;a=0;break e}r:{while(1){s:{J[699344]=0;d=aa(6744,a|0,l+524|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break s;if(d)break r;J[699344]=0;k=_(6745,a|0)|0;d= +J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;if((k|0)>=0)d=(J[J[h+8>>2]+((k&255)<<2)>>2]&64)!=0;else d=0;t=J[699344];J[699344]=0;if((t|0)==1)break a;t:{if(d){d=J[j>>2];if((d|0)==J[l+520>>2]){J[699344]=0;ca(6899,i|0,j|0,l+520|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[j>>2]}J[j>>2]=d+1;H[d|0]=k;b=b+1|0;break t}if(K[r+11|0]>>>7|0)d=J[r+4>>2];else d=K[r+11|0]&127;if(!d|!b|K[l+90|0]!=(k&255))break r;k=J[l+100>>2];if((k|0)==J[l+96>>2]){J[699344]=0;ca(6900,q|0,l+100|0,l+96|0);d=J[699344]; +J[699344]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b;b=0}J[699344]=0;_(6747,a|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break a}k=J[l+100>>2];if(!(!b|(k|0)==J[q>>2])){if(J[l+96>>2]==(k|0)){J[699344]=0;ca(6900,q|0,l+100|0,l+96|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b}u:{if(J[l+24>>2]<=0)break u;J[699344]=0;b=aa(6744,a|0,l+524|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;v:{if(!b){J[699344]=0;b=_(6745,a|0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break a;if(K[l+91|0]==(b&255))break v}J[f>>2]=J[f>>2]|4;a=0;break e}J[699344]=0;_(6747,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;while(1){if(J[l+24>>2]<=0)break u;J[699344]=0;b=aa(6744,a|0,l+524|0)|0;d=J[699344];J[699344]=0;w:{if((d|0)==1)break w;x:{if(!b){J[699344]=0;b=_(6745,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break w;J[699344]=0;if((b|0)>=0)b=(J[J[h+8>>2]+((b&255)<<2)>>2]&64)!=0;else b=0;d=J[699344];J[699344]=0;if((d|0)==1)break w;if(b)break x}J[f>>2]=J[f>> +2]|4;a=0;break e}if(J[j>>2]==J[l+520>>2]){J[699344]=0;ca(6899,i|0,j|0,l+520|0);b=J[699344];J[699344]=0;if((b|0)==1)break w}J[699344]=0;b=_(6745,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break w;d=J[j>>2];J[j>>2]=d+1;H[d|0]=b;J[699344]=0;J[l+24>>2]=J[l+24>>2]-1;_(6747,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)continue}break}break a}k=c;if(J[i>>2]!=J[j>>2])break c;J[f>>2]=J[f>>2]|4;a=0;break e}y:{if(!c)break y;k=1;while(1){if(K[c+11|0]>>>7|0)b=J[c+4>>2];else b=K[c+11|0]&127;if(b>>>0<=k>>>0)break y; +J[699344]=0;b=aa(6744,a|0,l+524|0)|0;d=J[699344];J[699344]=0;z:{if((d|0)==1)break z;A:{if(!b){J[699344]=0;d=_(6745,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break z;if(K[c+11|0]>>>7|0)b=J[c>>2];else b=c;if(K[b+k|0]==(d&255))break A}J[f>>2]=J[f>>2]|4;a=0;break e}J[699344]=0;_(6747,a|0)|0;b=J[699344];J[699344]=0;k=k+1|0;if((b|0)!=1)continue}break}break a}B:{if(J[q>>2]==J[l+100>>2])break B;J[l+16>>2]=0;a=J[q>>2];J[699344]=0;Nh(r,a,J[l+100>>2],l+16|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(!J[l+16>> +2])break B;J[f>>2]=J[f>>2]|4;a=0;break e}break a}a=1}jd(p);jd(m);jd(n);jd(o);jd(r);Ie(q);break b}k=c}e=e+1|0;continue}}break a}fc=l+528|0;return a|0}a=Z()|0;jd(p);jd(m);jd(n);jd(o);jd(r);Ie(q);ba(a|0);B()}function mJ(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,N=0,O=0,P=0,Q=0;h=fc-608|0;fc=h;a:{b:{c:{d:{e:{f:{f=J[a+56>>2];s=kc[J[J[f>>2]+28>>2]](f)|0;if((s|0)==-1)break f;f=J[a+56>>2];t=kc[J[J[f>>2]+28>>2]](f)| +0;if((t|0)==-1)break f;f=J[a+56>>2];A=kc[J[J[f>>2]+28>>2]](f)|0;if((A|0)==-1)break f;f=J[a+56>>2];C=kc[J[J[f>>2]+28>>2]](f)|0;if((C|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+4;f=J[a+56>>2];D=kc[J[J[f>>2]+28>>2]](f)|0;if((D|0)==-1)break f;f=J[a+56>>2];q=kc[J[J[f>>2]+28>>2]](f)|0;if((q|0)==-1)break f;f=J[a+56>>2];r=kc[J[J[f>>2]+28>>2]](f)|0;if((r|0)==-1)break f;f=J[a+56>>2];p=kc[J[J[f>>2]+28>>2]](f)|0;if((p|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+4;f=J[a+56>>2];F=kc[J[J[f>>2]+28>>2]](f)|0;if((F|0)==-1)break f; +f=J[a+56>>2];E=kc[J[J[f>>2]+28>>2]](f)|0;if((E|0)==-1)break f;f=J[a+56>>2];u=kc[J[J[f>>2]+28>>2]](f)|0;if((u|0)==-1)break f;f=J[a+56>>2];G=kc[J[J[f>>2]+28>>2]](f)|0;if((G|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+4;f=J[a+56>>2];y=kc[J[J[f>>2]+28>>2]](f)|0;if((y|0)==-1)break f;f=J[a+56>>2];l=kc[J[J[f>>2]+28>>2]](f)|0;if((l|0)==-1)break f;f=J[a+56>>2];j=kc[J[J[f>>2]+28>>2]](f)|0;if((j|0)==-1)break f;f=J[a+56>>2];o=kc[J[J[f>>2]+28>>2]](f)|0;if((o|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+4;f=J[a+56>>2];K=kc[J[J[f>> +2]+28>>2]](f)|0;if((K|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;g:{C=C|(t<<16|s<<24|A<<8);if(C){A=p|(q<<16|D<<24|r<<8);if(A)break g}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,793855,0);break b}h:{p=J[a+24>>2];i:{if(p>>>0<(C>>>0)/10>>>0)break i;F=G|(E<<16|F<<24|u<<8);f=J[a+28>>2];E=o|(l<<16|y<<24|j<<8);if(f>>>0<(E>>>0)/10>>>0|p>>>0<(F>>>0)/10>>>0)break i;if(f>>>0>=(A>>>0)/10>>>0)break h}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,794483,0);J[a+72>>2]=1;break b}if(!LB(a,h+28|0))break f;w=J[h+28>>2];p=w&1;if(p){if(!LB(a,h+24|0))break f; +f=J[h+24>>2];i=f&3;L=f>>>10&3;N=f>>>8&3;O=f>>>6&3;P=f>>>4&3;Q=f>>>2&3;H=f>>>14&1;I=f>>>12&3}D=w>>>15&1;G=w&2;if(!(D|!G)){f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;J[h+12>>2]=f&128?f|-256:f;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;J[h+4>>2]=f&128?f|-256:f;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;J[h+16>>2]=f&128?f|-256:f;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f| +0)==-1)break f;J[a+68>>2]=J[a+68>>2]+1;J[h+8>>2]=f&128?f|-256:f}if(!_t(a,h+20|0))break f;o=vc(16);J[699344]=0;m=_(3352,o|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!e)break e;while(1){f=JB(a,J[(k<<2)+d>>2]);if(!f)break d;j:{if((kc[J[J[f>>2]+8>>2]](f)|0)==1){n=J[f+8>>2]+n|0;break j}if((kc[J[J[f>>2]+8>>2]](f)|0)!=3)break j;sd(m,f)}k=k+1|0;if((k|0)!=(e|0))continue;break}f=p;if(n>>>0>=2){g=n-1|0;f=0;while(1){f=f+1|0;o=g>>>0>1;g=g>>>1|0;if(o)continue;break}}v=Gd(n,4);if(!e)break c;y=v+12|0;l= +v+8|0;j=v+4|0;k=0;while(1){s=JB(a,J[(z<<2)+d>>2]);k:{if(!s)break k;if((kc[J[J[s>>2]+8>>2]](s)|0)!=1)break k;o=J[s+8>>2];if(!o)break k;u=o&3;t=0;l:{if(o>>>0<4){g=0;break l}o=o&-4;g=0;x=0;while(1){q=k<<2;r=g<<2;J[q+v>>2]=J[r+J[s+12>>2]>>2];J[j+q>>2]=J[J[s+12>>2]+(r|4)>>2];J[l+q>>2]=J[J[s+12>>2]+(r|8)>>2];J[q+y>>2]=J[J[s+12>>2]+(r|12)>>2];g=g+4|0;k=k+4|0;x=x+4|0;if((o|0)!=(x|0))continue;break}}if(!u)break k;while(1){J[(k<<2)+v>>2]=J[J[s+12>>2]+(g<<2)>>2];g=g+1|0;k=k+1|0;t=t+1|0;if((u|0)!=(t|0))continue; +break}}z=z+1|0;if((z|0)!=(e|0))continue;break}break c}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783270,0);break b}v=Gd(0,4);f=p;break c}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,795364,0);uc(ld(m));break b}q=0;z=0;r=0;u=0;d=0;x=0;t=0;m:{e=0;n:{if(!p)break n;t=2733040;o:{p:switch(i|0){case 1:t=2733280;i=0;break o;case 0:break o;default:break p}if(!J[m+8>>2])break m;t=J[J[J[m>>2]>>2]+8>>2];i=1}x=2733536;q:{r:switch(Q|0){case 1:x=2733888;break q;case 2:x=2734256;break q;case 0:break q;default:break r}if(M[m+8>>2]<=i>>>0)break m; +x=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}d=2734608;s:{t:switch(P|0){case 1:d=2734832;break s;case 2:d=2735056;break s;case 0:break s;default:break t}if(M[m+8>>2]<=i>>>0)break m;d=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}r=2735280;u=2735280;u:{v:switch(O|0){case 1:u=2735376;break u;case 0:break u;default:break v}if(M[m+8>>2]<=i>>>0)break m;u=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}w:{x:switch(N|0){case 1:r=2735376;break w;case 0:break w;default:break x}if(M[m+8>>2]<=i>>>0)break m;r=J[J[J[m>>2]+(i<<2)>>2]+8>> +2];i=i+1|0}q=2735280;z=2735280;y:{z:switch(L|0){case 1:z=2735376;break y;case 0:break y;default:break z}if(M[m+8>>2]<=i>>>0)break m;z=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}A:{B:switch(I|0){case 1:q=2735376;break A;case 0:break A;default:break B}if(M[m+8>>2]<=i>>>0)break m;q=J[J[J[m>>2]+(i<<2)>>2]+8>>2];i=i+1|0}e=2732416;if(!H)break n;if(M[m+8>>2]<=i>>>0)break m;e=J[J[J[m>>2]+(i<<2)>>2]+8>>2]}o=e;uc(ld(m));C:{if(p){e=J[a+144>>2];J[e+4>>2]=0;J[e+8>>2]=0;g=0;while(1){j=h+32|0;l=j+(g<<4)|0;J[l>>2]=g;e= +Aw(J[a+144>>2],4);J[l+8>>2]=0;J[l+12>>2]=0;J[l+4>>2]=e;g=g+1|0;if((g|0)!=32)continue;break}J[h+544>>2]=259;e=Aw(J[a+144>>2],4);J[h+552>>2]=2;J[h+556>>2]=0;J[h+548>>2]=e;J[h+560>>2]=515;e=Aw(J[a+144>>2],4);J[h+568>>2]=3;J[h+572>>2]=0;J[h+564>>2]=e;J[h+576>>2]=523;g=0;e=Aw(J[a+144>>2],4);J[h+604>>2]=0;J[h+596>>2]=0;J[h+600>>2]=-1;J[h+584>>2]=7;J[h+588>>2]=0;J[h+580>>2]=e;oJ(j,35);k=Gd(n+1|0,16);D:{if(!n)break D;if(n>>>0>=4){y=n&-4;e=0;while(1){j=(g<<4)+k|0;J[j+8>>2]=0;J[j>>2]=g;l=g|1;j=(l<<4)+k|0;J[j+ +8>>2]=0;J[j>>2]=l;l=g|2;j=(l<<4)+k|0;J[j+8>>2]=0;J[j>>2]=l;l=g|3;j=(l<<4)+k|0;J[j+8>>2]=0;J[j>>2]=l;g=g+4|0;e=e+4|0;if((y|0)!=(e|0))continue;break}}l=n&3;if(l){e=0;while(1){j=(g<<4)+k|0;J[j+8>>2]=0;J[j>>2]=g;g=g+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}}if(!n)break D;l=k-12|0;g=0;while(1){vi(J[a+144>>2],h,h+32|0);e=J[h>>2];E:{if((e|0)>=513){e=e-512|0;F:{if(g>>>0>=n>>>0)break F;while(1){J[((g<<4)+k|0)+4>>2]=0;g=g+1|0;e=e-1|0;if(!e)break F;if(g>>>0>>0)continue;break}}J[h>>2]=e;break E}if((e|0)>= +257){if(!g){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,796094,0);Mc(v);Mc(k);break b}e=e-256|0;G:{if(g>>>0>=n>>>0)break G;while(1){j=g<<4;J[(j+k|0)+4>>2]=J[l+j>>2];g=g+1|0;e=e-1|0;if(!e)break G;if(g>>>0>>0)continue;break}}J[h>>2]=e;break E}J[((g<<4)+k|0)+4>>2]=e;g=g+1|0}if(g>>>0>>0)continue;break}}e=(n<<4)+k|0;J[e+4>>2]=0;J[e+8>>2]=-1;oJ(k,n);e=J[a+144>>2];J[e+4>>2]=0;J[e+8>>2]=0;break C}O_(a,f);Nn(J[a+76>>2]);k=0}e=w>>>10|0;H=w&16384?e|-16:e&31;I=w>>>9&1;y=w>>>7&3;l=w>>>6&1;j=w>>>4&3;e=w>>>2&3;H:{if(!G){d= +gJ(a,p,0,C,A,J[h+20>>2],e,n,k,f,v,I,y,l,j,H,t,x,d,u,r,z,q,o,D,h+12|0,h+4|0);break H}KB(a,D,0);d=gJ(a,p,1,C,A,J[h+20>>2],e,n,k,f,v,I,y,l,j,H,t,x,d,u,r,z,q,o,D,h+12|0,h+4|0)}Mc(v);I:{if(c){c=K&7;J:{if(J[a+28>>2]!=-1)break J;b=A+E|0;if(b>>>0<=M[a+32>>2])break J;MB(J[a+40>>2],b,J[a+36>>2])}yl(J[a+40>>2],d,F,E,c);if(!d)break I;kc[J[J[d>>2]+4>>2]](d);break I}J[d+4>>2]=b;sd(J[a+48>>2],d)}if(!p)break b;Mc(k);break b}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,796946,0);uc(ld(m));Mc(v)}fc=h+608|0;return}a=Z()|0;uc(o); +ba(a|0);B()}function eW(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,p=0;h=fc-128|0;fc=h;g=J[d+12>>2];J[h+120>>2]=J[d+8>>2];J[h+124>>2]=g;g=J[d+4>>2];J[h+112>>2]=J[d>>2];J[h+116>>2]=g;d=J[e+12>>2];J[h+104>>2]=J[e+8>>2];J[h+108>>2]=d;d=J[e+4>>2];J[h+96>>2]=J[e>>2];J[h+100>>2]=d;d=b+8|0;a:{if(J[b+8>>2]){ti(h+40|0,b,d);break a}J[h+40>>2]=0;vd(h+40|0,0)}e=J[h+40>>2];J[h+40>>2]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(e){J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)==1)break b; +if(!g){J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break b}e=J[b+12>>2];if(((e|0)>0?e:0)&3){e=zA(h+40|0);g=J[b+12>>2];yA(e,0-((g|0)>0?g:0)|0);rt(e,h+112|0);rt(e,h+96|0)}m:{e=J[h+96>>2];g=J[h+112>>2];n:{if((e|0)>(g|0))break n;j=g;g=J[h+104>>2];if((j|0)>=(g|0))break n;i=J[h+100>>2];j=J[h+116>>2];if((i|0)>(j|0))break n;k=j;j=J[h+108>>2];if((k|0)>=(j|0))break n;k=e;e=J[h+120>>2];if((k|0)>=(e|0)|(e|0)>(g|0))break n;e=J[h+124>>2];if((e|0)<=(i|0))break n;if((e|0)<=(j|0))break m}a=Qc(h+40| +0,2402746,2391664,1171,2416904,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break l;b=Z()|0;Kc(a);ba(b|0);B()}o:{if(J[d>>2]){ti(h+40|0,b,d);break o}J[h+40>>2]=0;vd(h+40|0,0)}g=J[h+40>>2];p:{if(!g){e=0;break p}e=J[g+8>>2];J[699344]=0;J[h+40>>2]=0;i=J[g+4>>2]-1|0;J[g+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break b;if(i)break p;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break b}q:{if(J[d>>2]){ti(h+40|0,b,d);break q}J[h+40>>2]=0;vd(h+40|0,0)}d=0;g=J[h+40>>2];r:{if(!g)break r; +d=J[g+12>>2];J[699344]=0;J[h+40>>2]=0;i=J[g+4>>2]-1|0;J[g+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break b;if(i)break r;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break b}j=J[h+104>>2];m=J[h+108>>2];g=J[h+96>>2];i=J[h+100>>2];l=J[h+124>>2];J[h+48>>2]=J[h+120>>2];J[h+52>>2]=l;l=J[h+116>>2];J[h+40>>2]=J[h+112>>2];J[h+44>>2]=l;ok(h+40|0,0-g|0,0-i|0);i=m-i|0;j=j-g|0;if((j|0)==(e|0)){g=1;if((d|0)==(i|0))break e}m=j<<1;s:{if((m|0)<=(e-2|0)|(m|0)>=(e+2|0))break s;l=i<<1;if((l|0)<=(d- +2|0))break s;g=2;if((l|0)<(d+2|0))break e}l=P(j,3);t:{if((l|0)<=(e-3|0)|(l|0)>=(e+3|0))break t;g=3;p=P(i,3);if((p|0)<=(d-3|0))break t;if((p|0)<(d+3|0))break e}p=j<<2;u:{if((p|0)<=(e-4|0)|(p|0)>=(e+4|0))break u;o=i<<2;if((o|0)<=(d-4|0))break u;g=4;if((o|0)<(d+4|0))break e}g=P(j,5);v:{if((g|0)<=(e-5|0)|(g|0)>=(e+5|0))break v;g=5;o=P(i,5);if((o|0)<=(d-5|0))break v;if((o|0)<(d+5|0))break e}o=P(j,6);w:{if((o|0)<=(e-6|0)|(o|0)>=(e+6|0))break w;g=6;k=P(i,6);if((k|0)<=(d-6|0))break w;if((k|0)<(d+6|0))break e}g= +P(j,7);x:{if((g|0)<=(e-7|0)|(g|0)>=(e+7|0))break x;g=7;k=P(i,7);if((k|0)<=(d-7|0))break x;if((k|0)<(d+7|0))break e}g=j<<3;y:{if((g|0)<=(e-8|0)|(g|0)>=(e+8|0))break y;k=i<<3;if((k|0)<=(d-8|0))break y;g=8;if((k|0)<(d+8|0))break e}g=P(j,9);z:{if((g|0)<=(e-9|0)|(g|0)>=(e+9|0))break z;g=9;k=P(i,9);if((k|0)<=(d-9|0))break z;if((k|0)<(d+9|0))break e}g=P(j,10);A:{if((g|0)<=(e-10|0)|(g|0)>=(e+10|0))break A;g=10;k=P(i,10);if((k|0)<=(d-10|0))break A;if((k|0)<(d+10|0))break e}g=P(j,11);B:{if((g|0)<=(e-11|0)| +(g|0)>=(e+11|0))break B;g=11;k=P(i,11);if((k|0)<=(d-11|0))break B;if((k|0)<(d+11|0))break e}k=P(j,12);C:{if((k|0)<=(e-12|0)|(k|0)>=(e+12|0))break C;g=12;n=P(i,12);if((n|0)<=(d-12|0))break C;if((n|0)<(d+12|0))break e}g=P(j,13);D:{if((g|0)<=(e-13|0)|(g|0)>=(e+13|0))break D;g=13;n=P(i,13);if((n|0)<=(d-13|0))break D;if((n|0)<(d+13|0))break e}g=P(j,14);E:{if((g|0)<=(e-14|0)|(g|0)>=(e+14|0))break E;g=14;n=P(i,14);if((n|0)<=(d-14|0))break E;if((n|0)<(d+14|0))break e}g=P(j,15);F:{if((g|0)<=(e-15|0)|(g|0)>= +(e+15|0))break F;g=15;n=P(i,15);if((n|0)<=(d-15|0))break F;if((n|0)<(d+15|0))break e}g=12;n=(e|0)>(k|0);k=(P(i,12)|0)<(d|0);G:{if(n&k|(P(j,36)|0)<(e|0)|(P(i,36)|0)<(d|0))break G;g=6;n=(e|0)>(o|0);o=(P(i,6)|0)<(d|0);if(n&o|(P(j,18)|0)<(e|0)|(P(i,18)|0)<(d|0))break G;g=4;if(k|(i<<2<(d|0)&(e|0)>(p|0)|(P(j,12)|0)<(e|0)))break G;g=3;if((P(i,3)|0)<(d|0)&(e|0)>(l|0)|(P(j,9)|0)<(e|0)|(P(i,9)|0)<(d|0))break G;g=(P(j,6)|0)<(e|0)?2:o?2:1;g=(e|0)>(m|0)?i<<1<(d|0)?2:g:g}if(!((e|0)>0&(d|0)>0)){J[a>>2]=0;vd(a,0); +break d}m=vc(108);J[699344]=0;l=_(5557,m|0)|0;p=J[699344];J[699344]=0;if((p|0)==1)break f;J[h+36>>2]=0;vd(h+36|0,l);J[699344]=0;m=J[h+36>>2];ca(5558,m|0,((e+g|0)-1|0)/(g|0)|0,((d+g|0)-1|0)/(g|0)|0);l=J[699344];J[699344]=0;H:{I:{J:{K:{L:{if((l|0)==1)break L;J[699344]=0;ca(5559,m|0,j|0,i|0);l=J[699344];J[699344]=0;if((l|0)==1)break L;J[699344]=0;ca(5532,m|0,P(g,j)|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break L;J[699344]=0;ca(5533,m|0,P(g,i)|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break L;J[h+ +24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[699344]=0;d=h+16|0;ca(5534,m|0,h+40|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break K;J[699344]=0;Ea(c|0,h+12|0,b|0,d|0,g|0,+f);c=J[699344];J[699344]=0;if((c|0)==1)break k;if(J[h+12>>2])break J;J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break I;b=Z()|0;break h}b=Z()|0;break g}b=Z()|0;break g}J[699344]=0;c=_(4,24)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;J[699344]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c>>2]= +2424768;J[c+4>>2]=0;d=J[699344];J[699344]=0;if((d|0)==1)break H;J[699344]=0;J[h+8>>2]=0;aa(5145,h+8|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;J[699344]=0;ma(5535,m|0,h+16|0,J[h+12>>2],h+40|0,J[h+8>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break i;c=J[h+8>>2];M:{if(c){b=J[b+12>>2];J[699344]=0;ca(5560,a|0,c|0,((b|0)>0?b:0)|0);a=J[699344];J[699344]=0;if((a|0)!=1)break M;break i}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i}a=J[h+8>>2];J[h+8>>2]=0;if(!a)break I; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break I;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[h+12>>2];J[h+12>>2]=0;N:{if(!a)break N;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break N;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[h+36>>2];J[h+36>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break b}b=Z()|0;uc(c);break h}J[a>>2]=0;vd(a,0);break d}B()}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;zc(h+8|0)}zc(h+12|0)}zc(h+36|0);ba(b|0);B()}a=Z()|0;uc(m);ba(a|0);B()}kc[c|0](h+16|0,b,h+40|0,g,f);c=J[h+16>>2];O:{if(c){b=J[b+12>>2];J[699344]=0;ca(5560,a|0,c|0,((b|0)>0?b:0)|0);a=J[699344];J[699344]=0;if((a|0)!=1)break O;break c}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c}a=J[h+16>>2];J[h+16>> +2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break b}fc=h+128|0;return}a=Z()|0;zc(h+16|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Ota(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;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,C=0,D=0,E=0,F=0,G=0,K=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0;h=fc-2336|0;fc=h;i=32;a:{if((b|0)>31)break a; +if((b|0)>15){M=1;r=1;i=16;break a}if((b|0)>7){r=2;N=1;i=8;break a}r=3;if((b|0)>3){A=1;O=1;i=4;break a}A=1;if((b|0)>1){r=4;Q=1;i=2;break a}r=5;i=1}b:{c:{if((i|0)!=(b|0)){b=Qc(h,2394748,2386101,756,2431952,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;i=Z()|0;Kc(b);break c}d:{t=J[c>>2];o=J[c+8>>2];if((t|0)<(o|0)){n=J[c+4>>2];k=J[c+12>>2];if((n|0)<(k|0))break d}b=Qc(h,2386909,2386101,758,2431952,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;i=Z()|0;Kc(b); +break c}m=J[a+4>>2];i=J[a+8>>2];J[h+2320>>2]=0;J[h+2324>>2]=0;j=i;i=b-1|0;j=(j+i|0)/(b|0)|0;J[h+2332>>2]=j;i=(i+m|0)/(b|0)|0;J[h+2328>>2]=i;e:{if(!((t|n)<0|(i|0)<(o|0)))if((j|0)>=(k|0))break e;b=Qc(h,2387623,2386101,761,2431952,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;i=Z()|0;Kc(b);break c}p=1<>2];J[k+8>>2]=J[c+8>>2];J[k+12>>2]=i;i=J[c+4>>2];J[k>>2]=J[c>>2];J[k+4>>2]=i;i=J[c+4>>2];j=j+m|0;J[j>>2]= +J[c>>2];J[j+4>>2]=i;i=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=i;if((b|0)<=31){m=1;j=r;while(1){x=h+2064|0;n=x+(j<<4)|0;k=J[n+12>>2];i=j-1|0;w=i<<4;l=w+(h+2192|0)|0;J[l+8>>2]=J[n+8>>2];J[l+12>>2]=k;k=J[n+4>>2];J[l>>2]=J[n>>2];J[l+4>>2]=k;k=P(m,3);t=J[l>>2]-k|0;J[l>>2]=t;o=k+J[l+8>>2]|0;J[l+8>>2]=o;n=J[l+4>>2]-k|0;J[l+4>>2]=n;k=k+J[l+12>>2]|0;J[l+12>>2]=k;if(!((o|0)>(t|0)&(k|0)>(n|0))){J[l>>2]=0;J[l+4>>2]=0;J[l+8>>2]=0;J[l+12>>2]=0}st(l,l,h+2320|0);o=w+x|0;m=m<<1;n=0-m|0;J[o+8>>2]=n&J[l+8>>2];J[o+ +12>>2]=n&J[l+12>>2];k=m-1|0;J[o>>2]=n&k+J[l>>2];J[o+4>>2]=n&k+J[l+4>>2];k=j>>>0>1;j=i;if(k)continue;break}}y=0-p|0;C=y&J[h+2204>>2]-1;j=C+p|0;D=J[h+2200>>2]-1&y;i=D+p|0;l=J[h+2192>>2]&y;q=i-l|0;w=J[h+2196>>2]&y;E=sh(h+2052|0,h+2060|0,P(q,j-w|0),2);if(!((j|0)<=(w|0)|(i|0)<=(l|0))){F=J[a+12>>2]>>5;o=(J[a>>2]+(P(F,w>>r)<<4)|0)+(l>>r<<4)|0;n=J[h+2060>>2];R=q<>2];T=J[h+2228>>2]>(x+31|0);t=l;k=n;a=o;while(1){i=r;f:{if(!A)break f;if(!(T|((t+31|0)<(S|0)|J[h+2232>>2]<(t|0))))if(J[h+ +2236>>2]>=(x|0))break f;i=2}v=0;j=Ac(h,0,2048);G=32>>>i|0;z=r-i|0;K=1<>>4|0;u=0;while(1){i=J[(u>>>2&1073741820)+a>>2];g:{if(!i)break g;s=J[i+((u&15)<<2)>>2];if(!s)break g;i=v<<2;I[j+(J[i+2427856>>2]<<1)>>1]=L[s>>1];I[j+(J[(i|4)+2427856>>2]<<1)>>1]=L[s+2>>1];I[j+(J[(i|8)+2427856>>2]<<1)>>1]=L[s+4>>1];I[j+(J[(i|12)+2427856>>2]<<1)>>1]=L[s+6>>1];I[j+(J[(i|16)+2427856>>2]<<1)>>1]=L[s+8>>1];I[j+(J[(i|20)+2427856>>2]<<1)>>1]=L[s+10>>1];I[j+(J[(i|24)+2427856>>2]<<1)>>1]=L[s+12>>1];I[j+ +(J[(i|28)+2427856>>2]<<1)>>1]=L[s+14>>1];I[j+(J[(i|32)+2427856>>2]<<1)>>1]=L[s+16>>1];I[j+(J[(i|36)+2427856>>2]<<1)>>1]=L[s+18>>1];I[j+(J[(i|40)+2427856>>2]<<1)>>1]=L[s+20>>1];I[j+(J[(i|44)+2427856>>2]<<1)>>1]=L[s+22>>1];I[j+(J[(i|48)+2427856>>2]<<1)>>1]=L[s+24>>1];I[j+(J[(i|52)+2427856>>2]<<1)>>1]=L[s+26>>1];I[j+(J[(i|56)+2427856>>2]<<1)>>1]=L[s+28>>1];I[j+(J[(i|60)+2427856>>2]<<1)>>1]=L[s+30>>1]}v=v+16|0;u=u+1|0;if((m|0)!=(u|0))continue;break}i=j;u=0;v=q<>1]=L[i>>1];i=(G<<1)+i|0;m=m+K|0;if((p|0)>(m|0))continue;break}j=j+v|0;i=(i+z|0)+-64|0;u=u+K|0;if((u|0)<(p|0))continue;break}a=a+16|0;k=(p<<1)+k|0;i=(t|0)<(D|0);t=p+t|0;if(i)continue;break}o=(F<<4)+o|0;n=n+R|0;a=(x|0)<(C|0);x=p+x|0;if(a)continue;break}}h:{i:{if((b|0)>=32){k=0-w|0;b=0-l|0;break i}i=0;k=0-w|0;b=0-l|0;if(!g){while(1){g=(h+2192|0)+(i<<4)|0;a=J[g+12>>2];J[h+8>>2]=J[g+8>>2];J[h+12>>2]=a;a=J[g+4>>2];g=J[g>>2];J[h>>2]=g;J[h+4>>2]=a;J[699344]=0;a=0-p|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>> +2];ok(h,b,k);a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;g=J[h+4>>2];a=J[h>>2];j=p;p=p>>>1|0;zo((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,j,p);a=J[699344];J[699344]=0;if((a|0)!=1){i=i+1|0;if((r|0)==(i|0))break i;continue}break}break h}a=J[h+2204>>2];J[h+8>>2]=J[h+2200>>2];J[h+12>>2]=a;a=J[h+2196>>2];g=J[h+2192>>2];J[h>>2]=g;J[h+4>>2]=a;J[699344]=0;J[h>>2]=g&y;J[h+4>>2]=J[h+4>>2]&y;ok(h,b,k);a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;g=J[h+4>>2]; +a=J[h>>2];i=p>>>1|0;zo((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,p,i);a=J[699344];J[699344]=0;if((a|0)==1)break h;if(M)break i;g=h+2216|0;a=J[g+4>>2];J[h+8>>2]=J[g>>2];J[h+12>>2]=a;a=J[h+2212>>2];g=J[h+2208>>2];J[h>>2]=g;J[h+4>>2]=a;J[699344]=0;a=0-i|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];ok(h,b,k);a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;g=J[h+4>>2];a=J[h>>2];j=i;i=p>>>2|0;zo((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,j,i);a=J[699344]; +J[699344]=0;if((a|0)==1)break h;if(N)break i;g=h+2232|0;a=J[g+4>>2];J[h+8>>2]=J[g>>2];J[h+12>>2]=a;a=J[h+2228>>2];g=J[h+2224>>2];J[h>>2]=g;J[h+4>>2]=a;J[699344]=0;a=0-i|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];ok(h,b,k);a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;g=J[h+4>>2];a=J[h>>2];j=i;i=p>>>3|0;zo((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,j,i);a=J[699344];J[699344]=0;if((a|0)==1)break h;if(O)break i;g=h+2248|0;a=J[g+4>>2];J[h+8>>2]=J[g>>2];J[h+12>>2]=a;a=J[h+ +2244>>2];g=J[h+2240>>2];J[h>>2]=g;J[h+4>>2]=a;J[699344]=0;a=0-i|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];ok(h,b,k);a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;g=J[h+4>>2];a=J[h>>2];j=i;i=p>>>4|0;zo((J[h+2060>>2]+(P(g,q)<<1)|0)+(a<<1)|0,J[h+8>>2]-a|0,J[h+12>>2]-g|0,q,j,i);a=J[699344];J[699344]=0;if((a|0)==1)break h;if(Q)break i;g=h+2264|0;a=J[g+4>>2];J[h+8>>2]=J[g>>2];J[h+12>>2]=a;a=J[h+2260>>2];g=J[h+2256>>2];J[h>>2]=g;J[h+4>>2]=a;J[699344]=0;a=0-i|0;J[h>>2]=a&g;J[h+4>>2]=a&J[h+4>>2];ok(h, +b,k);a=J[699344];J[699344]=0;if((a|0)==1)break h;v=J[h+4>>2];n=J[h+12>>2];if((v|0)>=(n|0))break i;a=J[h>>2];m=J[h+8>>2];if((a|0)>=(m|0))break i;j=J[h+2060>>2]+(P(q,v)<<1)|0;r=q<<2;while(1){i=a;while(1){g=(i<<1)+j|0;o=L[g>>1];I[g+2>>1]=o;g=(i+q<<1)+j|0;I[g>>1]=o;I[g+2>>1]=o;i=i+2|0;if((m|0)>(i|0))continue;break}j=j+r|0;v=v+2|0;if((n|0)>(v|0))continue;break}}a=J[c+12>>2];J[h+8>>2]=J[c+8>>2];J[h+12>>2]=a;a=J[c+4>>2];J[h>>2]=J[c>>2];J[h+4>>2]=a;J[699344]=0;ok(h,b,k);a=J[699344];J[699344]=0;if((a|0)!= +1){u=J[h+4>>2];o=J[h+12>>2];j:{if((u|0)>=(o|0))break j;t=J[h+8>>2];b=J[h>>2];if((t|0)<=(b|0))break j;n=t-b&1;k=J[h+2060>>2]+(P(q,u)<<1)|0;a=b+1|0;r=(a|0)==(t|0);while(1){i=d;m=b;if(n){c=I[(b<<1)+k>>1]+32>>6;c=(c|0)>=127?127:c;H[i|0]=(c|0)<=-128?-128:c;m=a;i=f+i|0}if(!r)while(1){j=(m<<1)+k|0;c=I[j>>1]+32>>6;c=(c|0)>=127?127:c;H[i|0]=(c|0)<=-128?-128:c;g=f+i|0;c=I[j+2>>1]+32>>6;c=(c|0)>=127?127:c;H[g|0]=(c|0)<=-128?-128:c;i=f+g|0;m=m+2|0;if((t|0)!=(m|0))continue;break}d=d+e|0;k=(q<<1)+k|0;u=u+1|0;if((o| +0)!=(u|0))continue;break}}hd(E);fc=h+2336|0;return}}i=Z()|0;hd(E)}ba(i|0)}B()}function Txb(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;i=fc-992|0;fc=i;J[a>>2]=d;if(!d){g=i+12|0;J[g>>2]=0;J[g>>2]=0;if(!(!b|!c)){d=1;a:{b:{c:{if(A8(g,b,c))break c;d:{e:{f:{g:{h:{i:{if(c>>>0>=4){d=2;if(!ud(b,22344,4))break c;j:{if(c>>>0<6)break j;if(!ud(b,19874,6))break c;if(!ud(b,19867,6))break c;if(c>>>0<16)break j;k:{if(K[b|0]!=137|K[b+1|0]!=80|(K[b+2|0]!=78|K[b+3|0]!=71))break k; +if(K[b+4|0]!=13|K[b+5|0]!=10|(K[b+6|0]!=26|K[b+7|0]!=10))break k;if(K[b+8|0]|K[b+9|0]|(K[b+10|0]|K[b+11|0]!=13))break k;if(K[b+12|0]!=73|K[b+13|0]!=72|K[b+14|0]!=68)break k;d=4;if(K[b+15|0]==82)break c}if(c>>>0<17)break j;l:{m:switch(K[b+1|0]){case 1:switch(K[b+2|0]-1|0){case 0:case 8:break l;default:break j}case 0:break m;default:break j}d=K[b+2|0];if(d>>>0>11|!(1<5)break g;d=8;e=K[b+3|0]-1&255;if(e>>> +0<8)break h;break g}d=K[b|0];if((c|0)!=3)break f}if((d&255)!=255|K[b+1|0]!=216|K[b+2|0]!=255)break g;d=3;break c}if(139>>>e&1)break c}d=K[b|0];if(!((d|0)!=1|c>>>0<44)){if(K[b+1|0]|K[b+2|0]|(K[b+3|0]|K[b+40|0]!=32))break e;if(K[b+41|0]!=69|K[b+42|0]!=77)break e;d=21;if(K[b+43|0]!=70)break e;break c}if((d&255)!=215|c>>>0<6)break f;if(K[b+1|0]!=205|K[b+2|0]!=198|(K[b+4|0]|K[b+3|0]!=154))break b;if(K[b+5|0])break b;d=10;break c}if((d&255)!=1)break d}if(K[b+1|0]|K[b+2|0]!=9|(K[b+3|0]|K[b+4|0]))break b; +d=10;if(K[b+5|0]!=3)break b;break c}n:{if(!((d&255)!=73|c>>>0<4)){if(K[b+1|0]!=73)break b;if(K[b+3|0]|K[b+2|0]!=42)break n;d=6;break c}o:switch((d&255)-73|0){case 4:if(K[b+2|0]|K[b+1|0]!=77)break b;d=6;if(K[b+3|0]==42)break c;break b;case 0:break o;default:break b}if(K[b+1|0]!=73)break b}if(K[b+3|0]|K[b+2|0]!=42)break b;d=6}J[g>>2]=d;f=c>>>0>15;break a}f=c>>>0>15;d=0;if(K[b+1|0]|(K[b|0]|c>>>0<16))break a;e=J[b+18>>2];if(e>>>0>=c-40>>>0)break a;h=J[(b+e|0)+4>>2];e=K[b+6|0];if((h|0)!=((e?e:256)|0))break a; +d=5;J[g>>2]=5}e=22;p:{q:{if(f8(g,b,c))break q;if(d|c>>>0<12)break p;h=K[b|0];r:{if((h|0)!=56|K[b+1|0]!=66|(K[b+2|0]!=80|K[b+3|0]!=83))break r;if(K[b+6|0]|K[b+7|0]|(K[b+9|0]|K[b+8|0]!=24))break r;if(K[b+10|0])break r;e=20;if(K[b+11|0]==24)break q}d=0;if(!f)break p;s:{if((h|0)!=89|K[b+1|0]!=166|(K[b+2|0]!=106|K[b+3|0]!=149))break s;if(K[b+4|0]|K[b+5|0])break s;e=15;if(K[b+15|0]==24)break q}if((h|0)!=255|c>>>0<52|(K[b+1|0]!=79|K[b+2|0]!=255))break p;e=11;if(K[b+3|0]!=81)break p}J[g>>2]=e;d=e}if(G7(g, +b,c)){J[g>>2]=11;d=11}t:{u:{v:{if(!k7(g,b,c)){if(_M(g,b,c))break v;if(d)break t;if(c>>>0>=6)break u;break t}J[g>>2]=11;if(!_M(g,b,c))break t}J[g>>2]=0;if(c>>>0<=5)break t}w:{x:{if(K[b|0]!=86|K[b+1|0]!=67|(K[b+2|0]!=76|K[b+3|0]!=77))break x;if(K[b+4|0]!=84|K[b+5|0]!=70|(K[b+9|0]|K[b+10|0]))break x;if(K[b+11|0])break x;J[g>>2]=0;if(c>>>0>9)break w;break t}if(c>>>0<10)break t}y:{z:switch(K[b|0]-67|0){case 3:if(K[b+1|0]!=87|K[b+2|0]!=83)break t;if(!K[b+9|0])break y;break t;case 0:break z;default:break t}if(K[b+ +1|0]!=87|K[b+2|0]!=83|(K[b+8|0]!=120|K[b+9|0]!=156))break t}J[g>>2]=0}n=fc-32|0;fc=n;A:{B:{d=0;C:{if(J[g>>2])break C;D:{if(K[b|0]!=60|c>>>0<6|(K[b+1|0]!=63|K[b+2|0]!=120))break D;if(K[b+3|0]!=109|K[b+4|0]!=108|K[b+5|0]!=32)break D;d=n+20|0;E:{if(c>>>0<2147483632){F:{if(c>>>0<=10){H[d+11|0]=c;e=d;break F}f=(c|15)+1|0;e=vc(f);J[d+8>>2]=f|-2147483648;J[d>>2]=e;J[d+4>>2]=c}p=cd(e,b,c)+c|0,q=0,H[p|0]=q;break E}_d(d);B()}e=d;J[699344]=0;j=aa(31,n+8|0,12709)|0;d=J[699344];J[699344]=0;if((d|0)==1)break B; +f=K[e+11|0];d=f<<24>>24<0;f=d?J[e+4>>2]:f;h=K[j+11|0];k=h<<24>>24<0;l=k?J[j+4>>2]:h;if(l){h=d?J[e>>2]:e;f=h+f|0;m=h;d=f-h|0;G:{H:{if((l|0)>(d|0))break H;k=k?J[j>>2]:j;o=H[k|0];while(1){d=(d-l|0)+1|0;if(!d)break H;d=Cg(m,o,d);if(!d)break H;if(!dd(d,k,l))break G;m=d+1|0;d=f-m|0;if((l|0)<=(d|0))continue;break}}d=f}f=(d|0)==(f|0)?-1:d-h|0}else f=0;if(H[j+11|0]<0)uc(J[j>>2]);if(H[e+11|0]<0)uc(J[e>>2]);d=1;if((f|0)!=-1)break C}d=0}fc=n+32|0;break A}a=Z()|0;if(H[e+11|0]<0)uc(J[e>>2]);ba(a|0);B()}if(d)J[g>> +2]=24;I:{if(c>>>0<12)break I;J:{if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))==1413695824)break J;if(!dd(b+10|0,39198,6))break J;if(c>>>0<528)break I;if(dd(b+522|0,39198,6))break I}J[g>>2]=25}}d=J[g>>2];J[a>>2]=d}K:{L:{M:{N:{O:{P:{d=d-11|0;if(d)if((d|0)==14)break P;else break O;J[i+12>>2]=0;H[i+23|0]=0;d=K[a+40|0];J[699344]=0;d=ja(11,i+991|0,a|0,b|0,c|0,i+12|0,!d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){if(H[i+23|0]>=0)break N;uc(J[i+12>>2]);break N}d=Z()|0;if(H[i+23|0]>=0)break L;uc(J[i+12>> +2]);ba(d|0);B()}m=!K[a+40|0];d=fc+-64|0;fc=d;f=d+48|0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=415588;J[699344]=0;h=d+24|0;$(39,h|0);e=J[699344];J[699344]=0;Q:{R:{S:{T:{U:{V:{W:{X:{if((e|0)!=1){J[699344]=0;e=_(4,16)|0;g=J[699344];J[699344]=0;if((g|0)==1)break X;J[d+12>>2]=e;J[d+16>>2]=3;J[d+20>>2]=-2147483644;J[e+8>>2]=J[9804];g=J[9803];J[e>>2]=J[9802];J[e+4>>2]=g;J[e+12>>2]=0;J[699344]=0;ca(40,d+36|0,h|0,d+12|0);e=J[699344];J[699344]=0;if((e|0)==1)break W;if(H[d+23|0]<0)uc(J[d+12>>2]);if(H[d+ +35|0]<0)uc(J[d+24>>2]);e=0;h=H[d+47|0];if(!((h|0)<0?J[d+40>>2]:h&255))break T;J[699344]=0;g=d+36|0;h=aa(41,f|0,g|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break S;if(!h)break T;J[699344]=0;h=_(4,552)|0;e=J[699344];J[699344]=0;if((e|0)==1)break S;J[699344]=0;$(35,h|0);e=J[699344];J[699344]=0;if((e|0)==1)break S;J[699344]=0;ga(42,f|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break S;J[699344]=0;$(21,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break S;J[699344]=0;ga(3,f|0,g|0,0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break S;J[699344]=0;b=J[f+4>>2];c=J[699344];J[699344]=0;if((c|0)==1)break S;e=0;J[699344]=0;b=aa(36,b|0,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break S;if(!b)break U;J[699344]=0;e=ga(37,h|0,a|0,m|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break U;break S}e=Z()|0;break R}e=Z()|0;break V}e=Z()|0;if(H[d+23|0]>=0)break V;uc(J[d+12>>2])}if(H[d+35|0]>=0)break R;uc(J[d+24>>2]);break R}J[699344]=0;rB(h);a=J[699344];J[699344]=0;if((a|0)==1)break S;J[699344]=0;$(21,f|0);a=J[699344];J[699344]= +0;if((a|0)==1)break S;J[699344]=0;a=d+36|0;b=_(43,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break S;if(!b)break T;J[699344]=0;_(44,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break S}if(H[d+47|0]<0)uc(J[d+36>>2]);De(f);fc=d- -64|0;d=e;break Q}e=Z()|0;if(H[d+47|0]>=0)break R;uc(J[d+36>>2])}De(f);ba(e|0);B()}break N}e=xf(i+12|0,0);d=J[a>>2];J[699344]=0;d=ha(12,e|0,b|0,c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break M;if(d){J[699344]=0;da(9,e|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break M;J[699344]= +0;b=tp(e);c=J[699344];J[699344]=0;if((c|0)==1)break M;H[a+28|0]=b}J[e>>2]=1032;J[699344]=0;_(13,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break K;J[699344]=0;_(14,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break K}fc=i+992|0;return d|0}d=Z()|0;Jj(e)}ba(d|0);B()}ea(0)|0;Bc();B()}function EBa(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;c=fc+-64|0;fc=c;a:{b:{c:{d:{g=b+8|0;if(Bm(d,g)){d=J[b+44>>2];if(!d){J[a>>2]=0;break d}J[d+4>>2]=J[d+4>>2]+1;J[a>>2]=J[b+44>>2];break d}e:{if(!K[b+89|0]){a= +Qc(c+28|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;b=Z()|0;Kc(a);ba(b|0);B()}f:{g:{h:{i:{j:{k:{e=J[b+136>>2];if(e)while(1){f=0;l:{m:{n:{o:{p:{h=J[e+8>>2];if(h){J[699344]=0;J[h+4>>2]=J[h+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break p;f=J[e+8>>2]}J[699344]=0;J[c+28>>2]=f;f=aa(5236,f+24|0,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break k;if(!f)break l;J[699344]=0;b=c+20|0;$(5440,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]= +0;d=J[c+28>>2];e=d- -64|0;aa(5153,e|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;b=J[c+20>>2];J[c+20>>2]=0;q:{if(!b)break q;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break q;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[e>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break o;b=J[e>>2]}else b=0;J[a>>2]=b;J[699344]=0;a=J[d+4>>2]-1|0;J[d+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break d; +J[699344]=0;$(5147,d|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}ba(Z()|0);B()}e=Z()|0;break j}e=Z()|0;break j}e=Z()|0;zc(c+20|0);break j}f=J[c+28>>2];r:{if(!f)break r;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break f;if(h)break r;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break f}e=J[e>>2];if(e)continue;break}J[a>>2]=0;J[699344]=0;e=b+92|0;f=J[e>>2];h=J[699344];J[699344]=0;if((h|0)==1)break c;if(!(f&1))break d;switch(J[b+56>>2]-1|0){case 1:case 3:case 4:break g; +case 2:break h;case 0:break i;default:break d}}e=Z()|0}zc(c+28|0);ba(e|0);B()}J[699344]=0;e=J[e>>2];f=J[699344];J[699344]=0;if((f|0)==1)break c;if(!(e&2))break d;J[699344]=0;e=c+28|0;da(5396,e|0,d|0);f=J[699344];J[699344]=0;s:{t:{u:{v:{w:{x:{y:{if((f|0)!=1){J[699344]=0;f=aa(5236,e|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break y;Ed(e);if(f)break s;J[699344]=0;b=c+12|0;ca(5401,b|0,d|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break x;J[699344]=0;ca(5218,c+20|0,2406101,b|0);b=J[699344];J[699344]=0; +if((b|0)==1)break w;b=J[c+20>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=ja(5178,e|0,b|0,2385400,1511,2413690,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break v;J[699344]=0;$(5179,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break e;e=Z()|0;Kc(b);break u}e=Z()|0;break b}e=Z()|0;Ed(c+28|0);break b}e=Z()|0;break b}e=Z()|0;break t}e=Z()|0}wc(c+20|0)}wc(c+12|0);break b}f=J[b+108>>2];J[699344]=0;e=c+28|0;da(5283,e|0,d|0);g=J[699344];J[699344]=0;z:{A:{B:{C:{D:{E:{F:{G:{if((g|0)!=1){J[699344]=0;ca(5445,c+8|0, +f|0,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break G;wc(e);f=J[c+8>>2];if(f)break A;J[699344]=0;b=c+12|0;da(5283,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break F;J[699344]=0;ca(5218,c+20|0,2406280,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break E;b=J[c+20>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=ja(5178,e|0,b|0,2385400,1516,2413690,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break D;J[699344]=0;$(5179,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break e;e=Z()|0;Kc(b);break C}e=Z()|0;break b}e=Z()| +0;wc(c+28|0);break b}e=Z()|0;break z}e=Z()|0;break B}e=Z()|0}wc(c+20|0)}wc(c+12|0);break z}e=J[f+24>>2];f=J[f+20>>2];J[699344]=0;d=c+28|0;ia(5446,d|0,b+44|0,f|0,e|0);b=J[699344];J[699344]=0;H:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break H;zc(d);zc(c+8|0);break d}e=Z()|0;break z}e=Z()|0;zc(c+28|0)}zc(c+8|0);break b}J[699344]=0;e=J[e>>2];f=J[699344];J[699344]=0;if((f|0)==1)break c;if(!(e&2))break d;J[699344]=0;e=c+28|0;da(5396,e|0,d|0);f=J[699344];J[699344]= +0;I:{J:{K:{L:{M:{N:{O:{if((f|0)!=1){J[699344]=0;f=aa(5236,e|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break O;Ed(e);if(f)break I;J[699344]=0;b=c+12|0;ca(5401,b|0,d|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break N;J[699344]=0;ca(5218,c+20|0,2406101,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break M;b=J[c+20>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=ja(5178,e|0,b|0,2385400,1530,2413690,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break L;J[699344]=0;$(5179,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break e; +e=Z()|0;Kc(b);break K}e=Z()|0;break b}e=Z()|0;Ed(c+28|0);break b}e=Z()|0;break b}e=Z()|0;break J}e=Z()|0}wc(c+20|0)}wc(c+12|0);break b}f=J[b+48>>2];J[699344]=0;e=c+28|0;da(5283,e|0,d|0);g=J[699344];J[699344]=0;P:{Q:{R:{S:{T:{U:{V:{W:{if((g|0)!=1){J[699344]=0;ca(5337,c+8|0,f|0,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break W;wc(e);f=J[c+8>>2];if(f)break Q;J[699344]=0;b=c+12|0;da(5283,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break V;J[699344]=0;ca(5218,c+20|0,2406280,b|0);b=J[699344];J[699344]= +0;if((b|0)==1)break U;b=J[c+20>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=ja(5178,e|0,b|0,2385400,1536,2413690,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break T;J[699344]=0;$(5179,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break e;e=Z()|0;Kc(b);break S}e=Z()|0;break b}e=Z()|0;wc(c+28|0);break b}e=Z()|0;break P}e=Z()|0;break R}e=Z()|0}wc(c+20|0)}wc(c+12|0);break P}e=J[f+12>>2];f=J[f+8>>2];J[699344]=0;d=c+28|0;ia(5446,d|0,b+44|0,f|0,e|0);b=J[699344];J[699344]=0;X:{if((b|0)!=1){J[699344]=0;aa(5153,a| +0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break X;zc(d);zc(c+8|0);break d}e=Z()|0;break P}e=Z()|0;zc(c+28|0)}zc(c+8|0);break b}J[699344]=0;e=J[e>>2];f=J[699344];J[699344]=0;if((f|0)==1)break c;Y:{if(!(e&2)|J[b+56>>2]!=4)break Y;f=J[b+48>>2];J[699344]=0;b=c+28|0;da(5283,b|0,d|0);e=J[699344];J[699344]=0;Z:{_:{$:{aa:{ba:{ca:{if((e|0)!=1){J[699344]=0;e=c+20|0;ca(5337,e|0,f|0,b|0);f=J[699344];J[699344]=0;if((f|0)==1)break ca;f=J[c+20>>2];zc(e);wc(b);if(f)break Y;J[699344]=0;f=c+12|0;ca(5401,f|0,d|0, +0);d=J[699344];J[699344]=0;if((d|0)==1)break ba;J[699344]=0;ca(5218,e|0,2406496,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break aa;d=J[c+20>>2];d=J[(d?d+12|0:2743576)>>2];J[699344]=0;b=ja(5178,b|0,d|0,2385400,1549,2413690,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break $;J[699344]=0;$(5179,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break e;e=Z()|0;Kc(b);break _}e=Z()|0;break b}e=Z()|0;wc(c+28|0);break b}e=Z()|0;break b}e=Z()|0;break Z}e=Z()|0}wc(c+20|0)}wc(c+12|0);break b}J[699344]=0;b=_(5244,d|0)|0; +e=J[699344];J[699344]=0;if((e|0)==1)break c;if(!b)break d;J[699344]=0;b=c+28|0;ia(5447,b|0,d|0,0,-1);d=J[699344];J[699344]=0;da:{if((d|0)!=1){J[699344]=0;aa(5153,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break da;a=J[c+28>>2];J[c+28>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}e=Z()|0;break b}e=Z()|0;zc(c+28|0);break b}ea(0)|0;Bc()}B()}fc=c- -64|0;return}e= +Z()|0}zc(a);ba(e|0);B()}ea(0)|0;Bc();B()}function gia(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;k=fc-256|0;fc=k;f=J[a+608>>2];d=J[a+604>>2];x=1;o=J[a+584>>2];v=J[o+72>>2];g=J[o+68>>2];l=J[o+64>>2];a:{b:{c:{d:{if((c|0)<=0)b=d;else{t=d+f|0;u=J[o+60>>2];r=J[o+88>>2];p=J[o+12>>2];y=(p|0)<=0;while(1){e:{if(y){j=0;i=r;break e}e=J[o+84>>2];f=e+4|0;m=J[e>>2];n=0;i=r;j=0;q=0;f:{g:{h:{i:{j:{k:{l:{m:{while(1){e=g;n:{if((g|0)>6)break n; +if(d>>>0>=t>>>0){e=7;if(g)break n;break c}l=K[K[d|0]+u|0]<>>h|0;g=e-h|0;o:{p:{q:{r:{s:{t:switch(K[s|0]-1|0){case 0:u:{if((i|0)==(r|0)){h=f;break u}h=f;if((j|0)<(m|0))break u;while(1){e=J[f>>2];s=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+s|0;if((m|0)<=(j|0))continue;break}}j=J[h>>2]+m|0;q=j+(n+q|0)|0;f=h+8|0;m=J[h+4>>2]+j|0;break o;case 1:if(!(i-r&4))break q;while(1){v:{if((g|0)>12){e=g;break v}if(d>>>0>=t>>>0){e=13;if(g)break v;break c}n=g+8|0;h=d+ +1|0;l=K[K[d|0]+u|0]<4){e=n;d=h;break v}e=13;if(h>>>0>=t>>>0){d=h;break v}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=K[h|0];if(e-10>>>0>=2){if((e|0)!=8)break h;h=J[h+4>>2];J[i>>2]=h+q;e=i+4|0;j=h+j|0;q=0;while(1){w:{if((g|0)>11){h=g;break w}if(d>>>0>=t>>>0){h=12;if(g)break w;i=e;break c}s=g+8|0;n=d+1|0;l=K[K[d|0]+u|0]<3){h=s;d=n;break w}h=12;if(n>>>0>=t>>>0){d=n;break w}h=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=h-g|0;x:switch(K[n|0]-7|0){case 2:case 4:h=J[n+4>>2];q=h+q|0;j=h+j|0;continue;case 0:break x;default:break m}break}h=e;e=J[n+4>>2];J[h>>2]=e+q;j=e+j|0;break p}else{e=J[h+4>>2];q=e+q|0;j=e+j|0;continue}}case 5:J[i>>2]=p-j;f=J[a+12>>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+208>>2]=j;J[k+204>>2]=e;J[k+200>>2]=f?88482:88539;J[k+196>>2]=n;J[k+192>>2]=m;Uc(h,96438,89109,k+192|0);i=i+4|0;break g;case 11:J[i>>2]=p-j;i=i+4|0;y:{if((g|0)>3){f= +g;break y}if(d>>>0>=t>>>0){f=4;if(!g)break c;break y}f=g+8|0;l=K[K[d|0]+u|0]<>2]&1024;h=J[(e?504:480)+a>>2];g=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+240>>2]=j;J[k+236>>2]=h;J[k+232>>2]=e?88482:88539;J[k+228>>2]=n;J[k+224>>2]=m;Uc(g,96438,88316,k+224|0)}l=l>>>4|0;g=f-4|0;v=1;break g;case 4:z:{if((i|0)==(r|0)){h=f;break z}h=f;if((j|0)<(m|0))break z;while(1){e=J[f>>2];w=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+w|0;if((m|0)<=(j|0))continue;break}}f=(m+n|0)-J[s+4>>2]|0;J[i>>2]=f+ +q;j=f+j|0;f=h-4|0;m=m-J[f>>2]|0;i=i+4|0;break s;case 2:break r;case 3:break t;default:break j}A:{if((i|0)==(r|0)){h=f;break A}h=f;if((j|0)<(m|0))break A;while(1){e=J[f>>2];w=J[f+4>>2];h=f+8|0;f=h;m=(e+m|0)+w|0;if((m|0)<=(j|0))continue;break}}e=J[s+4>>2];J[i>>2]=e+((n+q|0)+m|0);f=h+4|0;j=e+m|0;m=J[h>>2]+m|0;i=i+4|0}q=0;break o}B:{if((i|0)==(r|0)){e=m;h=f;break B}h=f;e=m;if((e|0)>(j|0))break B;while(1){m=J[f>>2];s=J[f+4>>2];h=f+8|0;f=h;e=(e+m|0)+s|0;if((e|0)<=(j|0))continue;break}}J[i>>2]=(n+q|0)+e; +f=h+4|0;i=i+4|0;m=J[h>>2]+e|0;q=0;j=e;break o}while(1){C:{if((g|0)>11){e=g;break C}if(d>>>0>=t>>>0){e=12;if(!g)break c;break C}n=g+8|0;h=d+1|0;l=K[K[d|0]+u|0]<3){e=n;d=h;break C}e=12;if(h>>>0>=t>>>0){d=h;break C}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=i;D:switch(K[h|0]-7|0){case 2:case 4:e=J[h+4>>2];q=e+q|0;j=e+j|0;continue;case 0:break D;default:break m}break}e=J[h+4>>2];J[i>>2]=e+q;h=i+4|0;j=e+j|0;q=0;while(1){E:{if((g|0)>12){e= +g;break E}if(d>>>0>=t>>>0){e=13;if(g)break E;i=h;break c}s=g+8|0;n=d+1|0;l=K[K[d|0]+u|0]<4){e=s;d=n;break E}e=13;if(n>>>0>=t>>>0){d=n;break E}e=g+16|0;l=K[K[d+1|0]+u|0]<>>g|0;g=e-g|0;e=K[n|0];if(e-10>>>0>=2){if((e|0)!=8){i=h;break h}e=J[n+4>>2];J[h>>2]=e+q;j=e+j|0}else{e=J[n+4>>2];q=e+q|0;j=e+j|0;continue}break}}q=0;i=i+8|0;if((r|0)==(i|0)){i=r;break o}if((j|0)<(m|0)|(m|0)>=(p|0))break o;while(1){e=f+8|0;m=J[f+4>>2]+(J[f>>2]+m|0)| +0;if((m|0)>(j|0)){f=e;break o}f=e;if((m|0)<(p|0))continue;break}}n=0-j|0;if((j|0)<(p|0))continue;break}if(!q)break e;if((j+q|0)>=(p|0))break f;if((g|0)<=0)break l;f=g;break k}f=J[a+12>>2]&1024;h=J[(f?504:480)+a>>2];i=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+144>>2]=j;J[k+140>>2]=h;J[k+136>>2]=f?88482:88539;J[k+132>>2]=n;J[k+128>>2]=m;Uc(i,96438,88316,k+128|0);i=e;break g}if(d>>>0>=t>>>0){f=1;if(!g)break c;break k}f=g+8|0;l=K[K[d|0]+u|0]<>2]&1024;e=J[(f?504: +480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+48>>2]=j;J[k+44>>2]=e;J[k+40>>2]=f?88482:88539;J[k+36>>2]=n;J[k+32>>2]=m;Uc(h,96438,88316,k+32|0);break g}l=l>>>1|0;g=f-1|0;break f}f=J[a+12>>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>>2];J[k+176>>2]=j;J[k+172>>2]=e;J[k+168>>2]=f?88482:88539;J[k+164>>2]=n;J[k+160>>2]=m;Uc(h,96438,88316,k+160|0)}if(!q)break e}J[i>>2]=q;i=i+4|0}F:{if((j|0)==(p|0))break F;f=J[a+12>>2]&1024;e=J[(f?504:480)+a>>2];h=J[a+628>>2];m=J[a>>2];n=J[o+108>> +2];J[k+24>>2]=p;J[k+20>>2]=j;J[k+16>>2]=e;J[k+12>>2]=f?88482:88539;J[k+8>>2]=n;J[k+4>>2]=j>>>0

      >>0?88871:88926;J[k>>2]=m;le(h,96438,88788,k);f=(j|0)>(p|0);G:{if((j|0)<=(p|0)|i>>>0<=r>>>0)break G;while(1){i=i-4|0;j=j-J[i>>2]|0;f=(p|0)<(j|0);if((j|0)<=(p|0))break G;if(i>>>0>r>>>0)continue;break}}if((j|0)<(p|0)){if(i-r&4){J[i>>2]=0;i=i+4|0}J[i>>2]=p-((j|0)>0?j:0);i=i+4|0;break F}if(!f)break F;J[i+4>>2]=0;J[i>>2]=p;i=i+8|0}if(v)break d;kc[J[o+76>>2]](b,r,i,p);v=0;J[i>>2]=0;f=J[o+88>>2];r=J[o+84>>2]; +J[o+88>>2]=r;J[o+84>>2]=f;J[o+108>>2]=J[o+108>>2]+1;f=J[o+8>>2];b=f+b|0;c=c-f|0;if((c|0)>0)continue;break}f=J[a+608>>2];b=J[a+604>>2]}J[o+72>>2]=v;J[o+64>>2]=l;J[o+68>>2]=g;J[a+604>>2]=d;J[a+608>>2]=(b-d|0)+f;break a}if((g|0)>12)break b;if(d>>>0>=t>>>0){g=g?13:0;break b}f=g+8|0;c=d+1|0;l=K[K[d|0]+u|0]<4){g=f;d=c;break b}if(c>>>0>=t>>>0){g=13;d=c;break b}g=g+16|0;l=K[K[d+1|0]+u|0]<>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];h=J[a>>2];g=J[o+108>>2];J[k+112>> +2]=j;J[k+108>>2]=f;J[k+104>>2]=c?88482:88539;J[k+100>>2]=g;J[k+96>>2]=h;le(e,96438,88656,k+96|0);if(q){J[i>>2]=q;i=i+4|0}g=0;if((j|0)==(p|0))break b;c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];h=J[a>>2];m=J[o+108>>2];J[k+88>>2]=p;J[k+84>>2]=j;J[k+80>>2]=f;J[k+76>>2]=c?88482:88539;J[k+72>>2]=m;J[k+68>>2]=j>>>0

      >>0?88871:88926;J[k+64>>2]=h;le(e,96438,88788,k- -64|0);f=(j|0)>(p|0);H:{if((j|0)<=(p|0)|i>>>0<=r>>>0)break H;while(1){i=i-4|0;j=j-J[i>>2]|0;f=(p|0)<(j|0);if((j|0)<=(p|0))break H; +if(i>>>0>r>>>0)continue;break}}if((j|0)<(p|0)){if(i-r&4){J[i>>2]=0;i=i+4|0}J[i>>2]=p-((j|0)>0?j:0);i=i+4|0;break b}if(!f)break b;J[i+4>>2]=0;J[i>>2]=p;i=i+8|0}kc[J[o+76>>2]](b,r,i,p);J[o+72>>2]=v;J[o+64>>2]=l>>>13;J[o+68>>2]=g-13;b=J[a+604>>2];J[a+604>>2]=d;J[a+608>>2]=J[a+608>>2]+(b-d|0);x=J[o+108>>2]?1:-1}fc=k+256|0;return x|0}function jH(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;a:while(1){n=b-4|0;l=b-16|0;h=b-8|0;b:{while(1){g=a;c:{d:while(1){e:{f:{g:{h:{i:{j:{f=b-g>>3;switch(f|0){case 4:break i; +case 2:break j;case 0:case 1:break b;case 3:break f;case 5:break h;default:break g}}d=b-8|0;a=J[d>>2];if(!a)break b;c=J[g>>2];if(M[a+616>>2]>=M[c+616>>2]?c:0)break b;J[g>>2]=a;J[d>>2]=c;a=J[g+4>>2];b=b-4|0;J[g+4>>2]=J[b>>2];J[b>>2]=a;return}bH(g,g+8|0,g+16|0,b-8|0);return}aH(g,g+8|0,g+16|0,g+24|0,b-8|0);return}if((f|0)<=6){f=g+16|0;ht(g,g+8|0,f);a=g+24|0;if((b|0)==(a|0))break b;while(1){c=a;h=J[a>>2];k:{if(!h)break k;e=J[f>>2];if(M[h+616>>2]>=M[e+616>>2]?e:0)break k;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]= +0;d=a;while(1){a=f;f=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=e;e=J[d+4>>2];J[d+4>>2]=f;l:{if(!e)break l;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break l;kc[J[J[e>>2]+8>>2]](e);Gc(e)}m:{if((a|0)==(g|0)){a=g;break m}d=a;f=a-8|0;e=J[f>>2];if(!e|M[h+616>>2]>2])continue}break}J[a>>2]=h;d=J[a+4>>2];J[a+4>>2]=j;if(!d)break k;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break k;kc[J[J[d>>2]+8>>2]](d);Gc(d)}f=c;a=c+8|0;if((b|0)!=(a|0))continue;break}break b}if(c)break e;if((b|0)==(g|0))break b;l=f-2>>>1|0;a=l;while(1){j= +a;n:{if((a|0)>(l|0))break n;a=(a<<3)+g|0;c=j<<1;e=c|1;d=(e<<3)+g|0;c=c+2|0;o:{p:{if((f|0)<=(c|0)){c=e;break p}h=J[d>>2];if(!h){k=J[a>>2];c=e;break o}i=J[d+8>>2];if(!(!i|M[h+616>>2]>2])){c=e;break p}d=d+8|0}k=J[a>>2];e=J[d>>2];if(!e)break o;if(!k|M[e+616>>2]>2])break n}m=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;h=J[d>>2];q:{r:{if(!k){i=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=h;e=J[a+4>>2];J[a+4>>2]=i;s:{if(!e)break s;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break s;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((c| +0)>(l|0)){e=d;break q}c=c<<1;e=c|1;a=(e<<3)+g|0;c=c+2|0;t:{if((f|0)<=(c|0)){c=e;break t}h=J[a>>2];if(!h){c=e;break r}i=J[a+8>>2];if(!(!i|M[h+616>>2]>2])){c=e;break t}a=a+8|0}if(!J[a>>2])break r;e=d;break q}while(1){e=d;i=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=h;d=J[a+4>>2];J[a+4>>2]=i;u:{if(!d)break u;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break u;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if((c|0)>(l|0))break q;a=c<<1;c=a|1;d=(c<<3)+g|0;i=a+2|0;v:{if((i|0)>=(f|0))break v;h=0;a=e;n=J[d>>2];if(!n)continue;a=J[d+ +8>>2];if(M[n+616>>2]>=M[a+616>>2]?a:0)break v;d=d+8|0;c=i}h=0;a=e;i=J[d>>2];if(!i)continue;h=i;if(M[h+616>>2]>=M[k+616>>2])continue;break}break q}while(1){e=a;h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=0;a=J[d+4>>2];J[d+4>>2]=h;w:{if(!a)break w;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break w;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((c|0)>(l|0))break q;d=c<<1;c=d|1;a=(c<<3)+g|0;h=d+2|0;x:{if((h|0)>=(f|0))break x;d=e;i=J[a>>2];if(!i)continue;d=J[a+8>>2];if(M[i+616>>2]>=M[d+616>>2]?d:0)break x;a=a+8|0;c=h}d=e;if(!J[a>> +2])continue;break}}J[e>>2]=k;a=J[e+4>>2];J[e+4>>2]=m;if(!a)break n;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break n;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=j-1|0;if(j)continue;break}while(1){c=b;j=J[g+4>>2];i=J[g>>2];J[g>>2]=0;J[g+4>>2]=0;h=f;k=f-2>>>1|0;a=g;d=0;while(1){b=a;f=(d<<3)+a|0;a=f+8|0;e=d<<1;d=e|1;e=e+2|0;y:{if((e|0)>=(h|0))break y;l=J[f+8>>2];if(!l)break y;f=f+16|0;m=J[f>>2];if(M[l+616>>2]>=M[m+616>>2]?m:0)break y;a=f;d=e}f=J[a>>2];l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;e=J[b+4>>2];J[b>>2]=f;J[b+4>>2]=l;z:{if(!e)break z; +b=J[e+4>>2];J[e+4>>2]=b-1;if(b)break z;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((d|0)<=(k|0))continue;break}b=c-8|0;A:{B:{if((b|0)==(a|0)){J[a>>2]=i;c=a;a=J[a+4>>2];J[c+4>>2]=j;if(!a)break A;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break B;break A}d=c-4|0;e=J[d>>2];c=J[b>>2];J[b>>2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=e;C:{if(!c)break C;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break C;kc[J[J[c>>2]+8>>2]](c);Gc(c)}J[b>>2]=i;c=J[d>>2];J[d>>2]=j;D:{if(!c)break D;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break D;kc[J[J[c>>2]+8>>2]](c); +Gc(c)}c=(a+8|0)-g>>3;if((c|0)<2)break A;e=c-2>>>1|0;f=(e<<3)+g|0;c=J[f>>2];if(!c)break A;j=J[a>>2];E:{if(j){if(M[c+616>>2]>=M[j+616>>2])break A;k=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;c=J[f>>2];while(1){d=f;f=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=f;F:{if(!c)break F;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break F;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if(!e)break E;e=e-1>>>1|0;f=(e<<3)+g|0;c=J[f>>2];if(!c)break E;a=d;if(M[c+616>>2]>2])continue;break}break E}k=J[a+4>>2];J[a>>2]=0;J[a+4>>2]= +0;c=J[f>>2];while(1){d=f;f=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=f;G:{if(!c)break G;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break G;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if(!e)break E;a=d;e=e-1>>>1|0;f=(e<<3)+g|0;c=J[f>>2];if(c)continue;break}}J[d>>2]=j;a=J[d+4>>2];J[d+4>>2]=k;if(!a)break A;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break A}kc[J[J[a>>2]+8>>2]](a);Gc(a)}f=h-1|0;if((h|0)>2)continue;break}break b}ht(g,g+8|0,b-8|0);break b}j=(f<<2&-8)+g|0;H:{if(f>>>0>=1E3){a=f<<1&-8;i=aH(g,a+g|0,j,a+j|0, +h);break H}i=ht(g,j,h)}c=c-1|0;f=J[j>>2];I:{k=J[g>>2];if(!k)break I;if(!f){a=h;break c}if(M[k+616>>2]>=M[f+616>>2])break I;a=h;break c}J:{K:{if((g|0)==(l|0))break K;a=l;e=h;if(!f){d=J[a>>2];if(d)break J;while(1){e=a;a=a-8|0;if((g|0)==(a|0))break K;d=J[a>>2];if(!d)continue;break}break J}while(1){d=J[a>>2];if(M[d+616>>2]>2]?d:0)break J;e=a;a=a-8|0;if((g|0)!=(a|0))continue;break}}if(!k)break b;f=g+8|0;L:{a=J[h>>2];if(!a|M[k+616>>2]>2])break L;if((f|0)==(h|0))break b;while(1){d=J[f>> +2];if(!(M[k+616>>2]>=M[d+616>>2]?d:0)){J[f>>2]=a;J[h>>2]=d;a=J[f+4>>2];J[f+4>>2]=J[n>>2];J[n>>2]=a;f=f+8|0;break L}f=f+8|0;if((h|0)!=(f|0))continue;break}break b}a=h;if((f|0)==(a|0))break b;while(1){e=J[g>>2];j=0;d=J[f>>2];M:{if(!d)break M;i=J[e+616>>2];while(1){if(i>>>0>2]){j=d;break M}d=J[f+8>>2];f=f+8|0;if(d)continue;break}}while(1){d=a;a=a-8|0;i=J[a>>2];if(!i|M[e+616>>2]>2])continue;break}if(a>>>0<=f>>>0){g=f;continue d}else{J[f>>2]=i;J[a>>2]=j;e=J[f+4>>2];d=d-4|0;J[f+4>>2]= +J[d>>2];J[d>>2]=e;f=f+8|0;continue}}}break}J[g>>2]=d;J[a>>2]=k;d=J[g+4>>2];e=e-4|0;J[g+4>>2]=J[e>>2];J[e>>2]=d;i=i+1|0}N:{e=g+8|0;if(e>>>0>=a>>>0)break N;while(1){m=J[j>>2];k=0;d=J[e>>2];O:{if(!d)break O;if(!m){while(1){d=J[e+8>>2];e=e+8|0;if(d)continue;break}break O}f=J[m+616>>2];while(1){if(f>>>0<=M[d+616>>2]){k=d;break O}d=J[e+8>>2];e=e+8|0;if(d)continue;break}}P:{if(!m)while(1){f=a;a=a-8|0;d=J[a>>2];if(!d)continue;break P}while(1){f=a;a=a-8|0;d=J[a>>2];if(!d|M[d+616>>2]>=M[m+616>>2])continue; +break}}if(a>>>0>>0)break N;J[e>>2]=d;J[a>>2]=k;d=J[e+4>>2];f=f-4|0;J[e+4>>2]=J[f>>2];J[f>>2]=d;j=(e|0)==(j|0)?a:j;e=e+8|0;i=i+1|0;continue}}Q:{if((e|0)==(j|0))break Q;a=J[j>>2];if(!a)break Q;d=J[e>>2];if(M[a+616>>2]>=M[d+616>>2]?d:0)break Q;J[e>>2]=a;J[j>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[j+4>>2];J[j+4>>2]=a;i=i+1|0}if(!i){d=yU(g,e);a=e+8|0;if(yU(a,b)){a=g;b=e;if(!d)continue a;break b}if(d)continue}if((e-g|0)<(b-e|0)){jH(g,e,c);a=e+8|0;continue}break}jH(e+8|0,b,c);a=g;b=e;continue}break}}function f_a(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=fc-32|0;fc=e;k=J[a+404>>2];a:{if(!J[a+212>>2]){if(J[a+288>>2]<=0)break a;while(1){c=J[((b<<2)+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2]))Tn(a,J[c+20>>2],0);if(J[a+364>>2])Tn(a,J[c+24>>2],1);b=b+1|0;if((b|0)>2])continue;break}break a}J[e+16>>2]=0;J[e+20>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;c=J[a+288>>2];b:{if((c|0)<=0)break b;b=J[a+364>>2];if(!J[a+360>>2]){if(!J[a+368>>2]){if(b){b=0;if((c|0)!=1){f= +c&-2;g=a+292|0;while(1){j=e+16|0;h=b<<2;i=J[h+g>>2];H[j+J[i+20>>2]|0]=1;H[J[i+24>>2]+e|0]=1;h=J[g+(h|4)>>2];H[j+J[h+20>>2]|0]=1;H[J[h+24>>2]+e|0]=1;b=b+2|0;d=d+2|0;if((f|0)!=(d|0))continue;break}}if(!(c&1))break b;b=J[((b<<2)+a|0)+292>>2];H[J[b+20>>2]+(e+16|0)|0]=1;H[J[b+24>>2]+e|0]=1;break b}b=0;if(c>>>0>=4){j=c&-4;f=a+292|0;while(1){i=e+16|0;h=b<<2;H[i+J[J[h+f>>2]+20>>2]|0]=1;H[i+J[J[f+(h|4)>>2]+20>>2]|0]=1;H[i+J[J[f+(h|8)>>2]+20>>2]|0]=1;H[i+J[J[f+(h|12)>>2]+20>>2]|0]=1;b=b+4|0;d=d+4|0;if((j|0)!= +(d|0))continue;break}}c=c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>>2]+20>>2]+(e+16|0)|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}break b}if(!b)break b;b=0;if(c>>>0>=4){i=c&-4;f=a+292|0;while(1){h=b<<2;H[J[J[h+f>>2]+24>>2]+e|0]=1;H[J[J[f+(h|4)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|8)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|12)>>2]+24>>2]+e|0]=1;b=b+4|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}c=c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>>2]+24>>2]+e|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue; +break}break b}if(!b)break b;b=0;if(c>>>0>=4){i=c&-4;f=a+292|0;while(1){h=b<<2;H[J[J[h+f>>2]+24>>2]+e|0]=1;H[J[J[f+(h|4)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|8)>>2]+24>>2]+e|0]=1;H[J[J[f+(h|12)>>2]+24>>2]+e|0]=1;b=b+4|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}c=c&3;if(!c)break b;while(1){H[J[J[((b<<2)+a|0)+292>>2]+24>>2]+e|0]=1;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}d=H[e+15|0]+(H[e+31|0]+(H[e+14|0]+(H[e+30|0]+(H[e+13|0]+(H[e+29|0]+(H[e+12|0]+(H[e+28|0]+(H[e+11|0]+(H[e+27|0]+(H[e+10|0]+(H[e+26|0]+ +(H[e+9|0]+(H[e+25|0]+(H[e+8|0]+(H[e+24|0]+(H[e+7|0]+(H[e+23|0]+(H[e+6|0]+(H[e+22|0]+(H[e+5|0]+(H[e+21|0]+(H[e+4|0]+(H[e+20|0]+(H[e+3|0]+(H[e+19|0]+(H[e+2|0]+(H[e+18|0]+(H[e+1|0]+(H[e+17|0]+(H[e|0]+H[e+16|0]|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;if(!d)break a;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(kc[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>> +2]=c+1;H[c|0]=204;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(kc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=(d<<1)+2|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(kc[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(kc[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=0;while(1){g:{if(!K[(e+16|0)+b|0])break g; +c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h:{if(d)break h;if(kc[J[c+12>>2]](a)|0)break h;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=a+b|0;g=K[c+152|0];f=K[c+168|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g+(f<<4);d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(d)break g;if(kc[J[c+12>>2]](a)|0)break g;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}i:{if(!K[b+e|0])break i;c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b+16;d=J[c+4>>2]-1|0;J[c+4>>2]=d;j:{if(d)break j;if(kc[J[c+12>>2]](a)|0)break j;c= +J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}g=K[(a+b|0)+184|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(d)break i;if(kc[J[c+12>>2]](a)|0)break i;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}b=b+1|0;if((b|0)!=16)continue;break}}if(J[a+236>>2]!=J[k+28>>2]){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(kc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=221;c=J[b+4>>2]-1|0;J[b+ +4>>2]=c;l:{if(c)break l;if(kc[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;m:{if(c)break m;if(kc[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=4;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(kc[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}c=J[a+236>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;o:{if(d)break o; +if(kc[J[b+12>>2]](a)|0)break o;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;p:{if(c)break p;if(kc[J[b+12>>2]](a)|0)break p;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}J[k+28>>2]=J[a+236>>2]}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;q:{if(c)break q;if(kc[J[b+12>>2]](a)|0)break q;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=218;c=J[b+4>>2]-1|0;J[b+4>>2]=c;r:{if(c)break r; +if(kc[J[b+12>>2]](a)|0)break r;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=J[a+288>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=(d<<1)+6|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;s:{if(c)break s;if(kc[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(kc[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=J[a+288>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]= +c;u:{if(c)break u;if(kc[J[b+12>>2]](a)|0)break u;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(J[a+288>>2]>0){g=0;while(1){c=J[((g<<2)+a|0)+292>>2];f=J[c>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=f;d=J[b+4>>2]-1|0;J[b+4>>2]=d;v:{if(d)break v;if(kc[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=0;b=0;w:{if(J[a+360>>2])break w;b=0;if(J[a+368>>2])break w;b=J[c+20>>2]}d=J[a+364>>2]?J[c+24>>2]:d;c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=(b<<4)+d;b=J[c+4>>2]-1|0;J[c+4>>2]=b;x:{if(b)break x; +if(kc[J[c+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}g=g+1|0;if((g|0)>2])continue;break}}d=J[a+360>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;y:{if(c)break y;if(kc[J[b+12>>2]](a)|0)break y;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=J[a+364>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(kc[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=J[a+372>>2];g=J[a+368>>2];b=J[a+24>>2];c= +J[b>>2];J[b>>2]=c+1;H[c|0]=d+(g<<4);c=J[b+4>>2]-1|0;J[b+4>>2]=c;A:{if(c)break A;if(kc[J[b+12>>2]](a)|0)break A;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}fc=e+32|0}function Lha(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,u=0,v=0;l=fc-528|0;fc=l;J[l+520>>2]=k;J[l+524>>2]=b;a:{b:{if(gk(a,l+524|0)){J[f>>2]=J[f>>2]|4;a=0;break b}J[l+72>>2]=6891;k=l+72|0;q=Bg(l+104|0,l+112|0,k);b=J[q>>2];J[l+100>>2]=b;J[l+96>>2]=b+400;r=Ze(k); +o=Ze(l+60|0);n=Ze(l+48|0);m=Ze(l+36|0);p=Ze(l+24|0);J[699344]=0;Ka(6904,c|0,d|0,l+92|0,l+88|0,l+84|0,r|0,o|0,n|0,m|0,l+20|0);b=J[699344];J[699344]=0;if((b|0)!=1){J[j>>2]=J[i>>2];t=e&512;e=0;k=0;while(1){c=k;c:{d:{e:{f:{if((e|0)==4)break f;J[699344]=0;d=aa(6858,a|0,l+524|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(d)break f;b=0;g:{h:{i:{j:{k:switch(H[(l+92|0)+e|0]){case 1:if((e|0)==3)break d;J[699344]=0;d=_(6859,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;d=ga(6905,h|0,1, +d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(d){J[699344]=0;ca(6906,l+12|0,a|0,0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[l+12>>2];J[699344]=0;da(3417,p|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j}break a}J[f>>2]=J[f>>2]|4;a=0;break e;case 4:break g;case 2:break h;case 3:break i;case 0:break k;default:break c}if((e|0)==3)break d}while(1){J[699344]=0;d=aa(6858,a|0,l+524|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(d)break d;J[699344]=0;d=_(6859,a|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break a;J[699344]=0;d=ga(6905,h|0,1,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(!d)break d;J[699344]=0;ca(6906,l+12|0,a|0,0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[l+12>>2];J[699344]=0;da(3417,p|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue}break}break a}l:{if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b)break l;J[699344]=0;b=_(6859,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(K[n+11|0]>>>7|0)d=J[n>>2];else d=n;if(J[d>>2]!=(b|0))break l;J[699344]= +0;_(6861,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;H[g|0]=0;if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;k=b>>>0>1?n:c;break c}m:{if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break m;J[699344]=0;b=_(6859,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(K[m+11|0]>>>7|0)d=J[m>>2];else d=m;if(J[d>>2]!=(b|0))break m;J[699344]=0;_(6861,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;H[g|0]=1;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;k=b>>>0>1?m:c;break c}if(K[n+ +11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;d=!b;if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!(d|!b)){J[f>>2]=J[f>>2]|4;a=0;break e}if(K[n+11|0]>>>7|0)b=J[n+4>>2];else b=K[n+11|0]&127;if(!b){if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;if(!b)break d}if(K[m+11|0]>>>7|0)b=J[m+4>>2];else b=K[m+11|0]&127;H[g|0]=!b;break d}if(!(t|(c|e>>>0<2))){k=0;if(!((e|0)==2&K[l+95|0]!=0))break c}u=l,v=Ei(o),J[u+8>>2]=v;J[l+12>>2]=J[l+8>>2];n:{if(!e|K[(e+l|0)+91|0]>1)break n;o:{while(1){u=l,v=Fp(o), +J[u+8>>2]=v;b=J[l+12>>2];if((b|0)==J[l+8>>2])break o;b=J[b>>2];J[699344]=0;d=ga(6905,h|0,1,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(!d)break o;J[l+12>>2]=J[l+12>>2]+4;continue}break}break a}u=l,v=Ei(o),J[u+8>>2]=v;if(K[p+11|0]>>>7|0)k=J[p+4>>2];else k=K[p+11|0]&127;d=l+8|0;b=J[l+12>>2]-J[d>>2]>>2;if(k>>>0>=b>>>0){u=l,v=Fp(p),J[u+8>>2]=v;k=ez(d,0-b|0);d=Fp(p);b=Ei(o);J[699344]=0;d=nR(k,d,b);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(d)break n}u=l,v=Ei(o),J[u+4>>2]=v;J[l+8>>2]=J[l+4>>2];J[l+ +12>>2]=J[l+8>>2]}J[l+8>>2]=J[l+12>>2];p:{while(1){u=l,v=Fp(o),J[u+4>>2]=v;if(J[l+8>>2]==J[l+4>>2])break p;J[699344]=0;d=aa(6858,a|0,l+524|0)|0;b=J[699344];J[699344]=0;q:{if((b|0)==1)break q;if(d)break p;J[699344]=0;d=_(6859,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q;if(J[J[l+8>>2]>>2]!=(d|0))break p;J[699344]=0;_(6861,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[l+8>>2]=J[l+8>>2]+4;continue}break}break a}if(!t)break d;u=l,v=Fp(o),J[u+4>>2]=v;if(J[l+8>>2]==J[l+4>>2])break d;J[f>>2]= +J[f>>2]|4;a=0;break e}r:{while(1){s:{J[699344]=0;k=aa(6858,a|0,l+524|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break s;if(k)break r;J[699344]=0;s=_(6859,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;k=ga(6905,h|0,64,s|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;t:{if(k){d=J[j>>2];if((d|0)==J[l+520>>2]){J[699344]=0;ca(6908,i|0,j|0,l+520|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[j>>2]}J[j>>2]=d+4;J[d>>2]=s;b=b+1|0;break t}if(K[r+11|0]>>>7|0)d=J[r+4>>2];else d=K[r+11|0]& +127;if(!d|!b|(s|0)!=J[l+84>>2])break r;k=J[l+100>>2];if((k|0)==J[l+96>>2]){J[699344]=0;ca(6900,q|0,l+100|0,l+96|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b;b=0}J[699344]=0;_(6861,a|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break a}k=J[l+100>>2];if(!(!b|(k|0)==J[q>>2])){if(J[l+96>>2]==(k|0)){J[699344]=0;ca(6900,q|0,l+100|0,l+96|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;k=J[l+100>>2]}J[l+100>>2]=k+4;J[k>>2]=b}u:{if(J[l+20>>2]<=0)break u; +J[699344]=0;d=aa(6858,a|0,l+524|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;v:{if(!d){J[699344]=0;d=_(6859,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(J[l+88>>2]==(d|0))break v}J[f>>2]=J[f>>2]|4;a=0;break e}J[699344]=0;_(6861,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;while(1){if(J[l+20>>2]<=0)break u;J[699344]=0;d=aa(6858,a|0,l+524|0)|0;b=J[699344];J[699344]=0;w:{if((b|0)==1)break w;x:{if(!d){J[699344]=0;d=_(6859,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break w;J[699344]= +0;d=ga(6905,h|0,64,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break w;if(d)break x}J[f>>2]=J[f>>2]|4;a=0;break e}if(J[j>>2]==J[l+520>>2]){J[699344]=0;ca(6908,i|0,j|0,l+520|0);b=J[699344];J[699344]=0;if((b|0)==1)break w}J[699344]=0;d=_(6859,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break w;b=J[j>>2];J[j>>2]=b+4;J[b>>2]=d;J[699344]=0;J[l+20>>2]=J[l+20>>2]-1;_(6861,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)continue}break}break a}k=c;if(J[i>>2]!=J[j>>2])break c;J[f>>2]=J[f>>2]|4;a=0;break e}y:{if(!c)break y; +k=1;while(1){if(K[c+11|0]>>>7|0)b=J[c+4>>2];else b=K[c+11|0]&127;if(b>>>0<=k>>>0)break y;J[699344]=0;d=aa(6858,a|0,l+524|0)|0;b=J[699344];J[699344]=0;z:{if((b|0)==1)break z;A:{if(!d){J[699344]=0;b=_(6859,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break z;if(K[c+11|0]>>>7|0)d=J[c>>2];else d=c;if(J[d+(k<<2)>>2]==(b|0))break A}J[f>>2]=J[f>>2]|4;a=0;break e}J[699344]=0;_(6861,a|0)|0;b=J[699344];J[699344]=0;k=k+1|0;if((b|0)!=1)continue}break}break a}B:{if(J[q>>2]==J[l+100>>2])break B;J[l+12>>2]=0;a=J[q>> +2];J[699344]=0;Nh(r,a,J[l+100>>2],l+12|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(!J[l+12>>2])break B;J[f>>2]=J[f>>2]|4;a=0;break e}break a}a=1}df(p);df(m);df(n);df(o);jd(r);Ie(q);break b}k=c}e=e+1|0;continue}}break a}fc=l+528|0;return a|0}a=Z()|0;df(p);df(m);df(n);df(o);jd(r);Ie(q);ba(a|0);B()}function VG(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;a:while(1){n=b-4|0;j=b-16|0;g=b-8|0;b:{while(1){h=a;c:{d:while(1){e:{f:{g:{h:{i:{j:{f=b-h>>3;switch(f|0){case 4:break i;case 2:break j; +case 0:case 1:break b;case 3:break f;case 5:break h;default:break g}}d=b-8|0;a=J[d>>2];if(!a)break b;c=J[h>>2];if(O[a+32>>3]>3]?0:c)break b;J[h>>2]=a;J[d>>2]=c;a=J[h+4>>2];b=b-4|0;J[h+4>>2]=J[b>>2];J[b>>2]=a;return}SG(h,h+8|0,h+16|0,b-8|0);return}RG(h,h+8|0,h+16|0,h+24|0,b-8|0);return}if((f|0)<=6){f=h+16|0;et(h,h+8|0,f);a=h+24|0;if((b|0)==(a|0))break b;while(1){c=a;g=J[a>>2];k:{if(!g)break k;e=J[f>>2];if(O[g+32>>3]>3]?0:e)break k;i=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=f; +f=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=e;e=J[d+4>>2];J[d+4>>2]=f;l:{if(!e)break l;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break l;kc[J[J[e>>2]+8>>2]](e);Gc(e)}m:{if((a|0)==(h|0)){a=h;break m}d=a;f=a-8|0;e=J[f>>2];if(!e|O[g+32>>3]>3])continue}break}J[a>>2]=g;d=J[a+4>>2];J[a+4>>2]=i;if(!d)break k;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break k;kc[J[J[d>>2]+8>>2]](d);Gc(d)}f=c;a=f+8|0;if((b|0)!=(a|0))continue;break}break b}if(c)break e;if((b|0)==(h|0))break b;l=f-2>>>1|0;a=l;while(1){k=a;n:{if((a|0)>(l|0))break n; +a=(a<<3)+h|0;c=k<<1;e=c|1;d=(e<<3)+h|0;g=c+2|0;o:{p:{if((g|0)>=(f|0)){g=e;break p}c=J[d>>2];if(!c){c=J[a>>2];g=e;break o}i=J[d+8>>2];if(!(!i|O[c+32>>3]>3])){g=e;break p}d=d+8|0}c=J[a>>2];e=J[d>>2];if(!e)break o;if(!c|O[e+32>>3]>3])break n}m=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;i=J[d>>2];q:{r:{if(!c){j=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=j;s:{if(!e)break s;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break s;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((g|0)>(l|0)){e=d;break q}g=g<<1;e= +g|1;a=(e<<3)+h|0;g=g+2|0;t:{if((g|0)>=(f|0)){g=e;break t}i=J[a>>2];if(!i){g=e;break r}j=J[a+8>>2];if(!(!j|O[i+32>>3]>3])){g=e;break t}a=a+8|0}if(!J[a>>2])break r;e=d;break q}while(1){e=d;j=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=i;d=J[a+4>>2];J[a+4>>2]=j;u:{if(!d)break u;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break u;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if((g|0)>(l|0))break q;a=g<<1;g=a|1;d=(g<<3)+h|0;j=a+2|0;v:{if((j|0)>=(f|0))break v;i=0;a=e;n=J[d>>2];if(!n)continue;a=J[d+8>>2];if(O[n+32>>3]>3]? +0:a)break v;d=d+8|0;g=j}i=0;a=e;j=J[d>>2];if(!j)continue;i=j;if(!(O[i+32>>3]>3]))continue;break}break q}while(1){e=a;i=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=0;a=J[d+4>>2];J[d+4>>2]=i;w:{if(!a)break w;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break w;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((g|0)>(l|0))break q;d=g<<1;g=d|1;a=(g<<3)+h|0;i=d+2|0;x:{if((i|0)>=(f|0))break x;d=e;j=J[a>>2];if(!j)continue;d=J[a+8>>2];if(O[j+32>>3]>3]?0:d)break x;a=a+8|0;g=i}d=e;if(!J[a>>2])continue;break}}J[e>>2]=c;a=J[e+4>> +2];J[e+4>>2]=m;if(!a)break n;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break n;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=k-1|0;if(k)continue;break}while(1){e=b;i=J[h+4>>2];k=J[h>>2];J[h>>2]=0;J[h+4>>2]=0;c=f;j=f-2>>>1|0;a=h;d=0;while(1){b=a;g=(d<<3)+a|0;a=g+8|0;f=d<<1;d=f|1;f=f+2|0;y:{if((f|0)>=(c|0))break y;l=J[g+8>>2];if(!l)break y;g=g+16|0;m=J[g>>2];if(O[l+32>>3]>3]?0:m)break y;a=g;d=f}g=J[a>>2];l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;f=J[b+4>>2];J[b>>2]=g;J[b+4>>2]=l;z:{if(!f)break z;b=J[f+4>>2];J[f+4>>2]=b-1;if(b)break z; +kc[J[J[f>>2]+8>>2]](f);Gc(f)}if((d|0)<=(j|0))continue;break}b=e-8|0;A:{B:{if((b|0)==(a|0)){J[a>>2]=k;d=a;a=J[a+4>>2];J[d+4>>2]=i;if(!a)break A;d=J[a+4>>2];J[a+4>>2]=d-1;if(!d)break B;break A}e=e-4|0;f=J[e>>2];d=J[b>>2];J[b>>2]=0;J[e>>2]=0;J[a>>2]=d;d=J[a+4>>2];J[a+4>>2]=f;C:{if(!d)break C;f=J[d+4>>2];J[d+4>>2]=f-1;if(f)break C;kc[J[J[d>>2]+8>>2]](d);Gc(d)}J[b>>2]=k;d=J[e>>2];J[e>>2]=i;D:{if(!d)break D;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break D;kc[J[J[d>>2]+8>>2]](d);Gc(d)}d=(a+8|0)-h>>3;if((d|0)<2)break A; +e=d-2>>>1|0;f=(e<<3)+h|0;d=J[f>>2];if(!d)break A;i=J[a>>2];E:{if(i){if(!(O[d+32>>3]>3]))break A;k=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;g=J[f>>2];while(1){d=f;j=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=g;f=J[a+4>>2];J[a+4>>2]=j;F:{if(!f)break F;a=J[f+4>>2];J[f+4>>2]=a-1;if(a)break F;kc[J[J[f>>2]+8>>2]](f);Gc(f)}if(!e)break E;e=e-1>>>1|0;f=(e<<3)+h|0;g=J[f>>2];if(!g)break E;a=d;if(O[g+32>>3]>3])continue;break}break E}k=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;g=J[f>>2];while(1){d=f;j=J[d+4>>2];J[d>> +2]=0;J[d+4>>2]=0;J[a>>2]=g;f=J[a+4>>2];J[a+4>>2]=j;G:{if(!f)break G;a=J[f+4>>2];J[f+4>>2]=a-1;if(a)break G;kc[J[J[f>>2]+8>>2]](f);Gc(f)}if(!e)break E;a=d;e=e-1>>>1|0;f=(e<<3)+h|0;g=J[f>>2];if(g)continue;break}}J[d>>2]=i;a=J[d+4>>2];J[d+4>>2]=k;if(!a)break A;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break A}kc[J[J[a>>2]+8>>2]](a);Gc(a)}f=c-1|0;if((c|0)>2)continue;break}break b}et(h,h+8|0,b-8|0);break b}i=(f<<2&-8)+h|0;H:{if(f>>>0>=1E3){a=f<<1&-8;k=RG(h,a+h|0,i,a+i|0,g);break H}k=et(h,i,g)}c=c-1|0;f=J[i>>2];I:{l= +J[h>>2];if(!l)break I;if(!f){a=g;break c}if(!(O[l+32>>3]>3]))break I;a=g;break c}J:{K:{if((h|0)==(j|0))break K;a=j;e=g;if(!f){d=J[a>>2];if(d)break J;while(1){e=a;a=a-8|0;if((h|0)==(a|0))break K;d=J[a>>2];if(!d)continue;break}break J}while(1){d=J[a>>2];if(O[d+32>>3]>3]?d:0)break J;e=a;a=a-8|0;if((h|0)!=(a|0))continue;break}}if(!l)break b;f=h+8|0;L:{a=J[g>>2];if(!a|O[l+32>>3]>3])break L;if((f|0)==(g|0))break b;while(1){d=J[f>>2];if(!(O[l+32>>3]>3]?0:d)){J[f>>2]=a;J[g>> +2]=d;a=J[f+4>>2];J[f+4>>2]=J[n>>2];J[n>>2]=a;f=f+8|0;break L}f=f+8|0;if((g|0)!=(f|0))continue;break}break b}a=g;if((f|0)==(a|0))break b;while(1){e=J[h>>2];i=0;d=J[f>>2];M:{if(!d)break M;o=O[e+32>>3];while(1){if(o>3]){i=d;break M}d=J[f+8>>2];f=f+8|0;if(d)continue;break}}while(1){d=a;a=a-8|0;k=J[a>>2];if(!k|O[e+32>>3]>3])continue;break}if(a>>>0<=f>>>0){h=f;continue d}else{J[f>>2]=k;J[a>>2]=i;e=J[f+4>>2];d=d-4|0;J[f+4>>2]=J[d>>2];J[d>>2]=e;f=f+8|0;continue}}}break}J[h>>2]=d;J[a>>2]=l; +d=J[h+4>>2];e=e-4|0;J[h+4>>2]=J[e>>2];J[e>>2]=d;k=k+1|0}N:{e=h+8|0;if(e>>>0>=a>>>0)break N;while(1){m=J[i>>2];l=0;d=J[e>>2];O:{if(!d)break O;if(!m){while(1){d=J[e+8>>2];e=e+8|0;if(d)continue;break}break O}o=O[m+32>>3];while(1){if(!(o>O[d+32>>3])){l=d;break O}d=J[e+8>>2];e=e+8|0;if(d)continue;break}}P:{if(!m)while(1){f=a;a=a-8|0;d=J[a>>2];if(!d)continue;break P}while(1){f=a;a=a-8|0;d=J[a>>2];if(!d|!(O[d+32>>3]>3]))continue;break}}if(a>>>0>>0)break N;J[e>>2]=d;J[a>>2]=l;d=J[e+4>>2];f=f-4| +0;J[e+4>>2]=J[f>>2];J[f>>2]=d;i=(e|0)==(i|0)?a:i;e=e+8|0;k=k+1|0;continue}}Q:{if((e|0)==(i|0))break Q;a=J[i>>2];if(!a)break Q;d=J[e>>2];if(O[a+32>>3]>3]?0:d)break Q;J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[i+4>>2];J[i+4>>2]=a;k=k+1|0}if(!k){d=AT(h,e);a=e+8|0;if(AT(a,b)){a=h;b=e;if(!d)continue a;break b}if(d)continue}if((e-h|0)<(b-e|0)){VG(h,e,c);a=e+8|0;continue}break}VG(e+8|0,b,c);a=h;b=e;continue}break}}function dK(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;J[d+552>>2]=0;J[d+556>>2]=0;J[d+544>>2]=-343597384;J[d+548>>2]=1068415057;J[d+536>>2]=0;J[d+528>>2]=0;J[d+532>>2]=0;J[d+520>>2]=0;J[d+512>>2]=0;J[d+408>>2]=0;J[d+304>>2]=0;J[d+288>>2]=0;J[d+272>>2]=7;J[d+276>>2]=1;J[d+264>>2]=1580547965;J[d+268>>2]=1067731386;J[d+256>>2]=0;J[d+212>>2]=0;J[d+152>>2]=0;J[d+108>>2]=0;J[d+48>>2]=0;J[d+560>>2]=0;J[d+564>>2]=0;J[d+584>>2]=1;J[d+576>>2]=0;J[d+580>>2]=0;J[d+568>>2]=1;a:{if(!b|!c)break a;J[a+1144>>2]=0;if((c|0)<=0)break a;m=b+c|0;n=a+352|0;o=d+52| +0;p=d+112|0;q=d+156|0;r=d+216|0;s=d+312|0;t=d+416|0;c=b;while(1){c=bK(a,c,n);if(!J[a+352>>2])break a;g=J[a+1144>>2];e=g-1|0;i=(e<<4)+a|0;if(!J[i+360>>2]){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{i=J[i+368>>2];switch(i-3081|0){case 8:break h;case 6:break i;case 5:break j;case 4:break k;case 3:break l;case 2:break o;case 1:break p;case 0:break q;case 7:break b;case 10:break f;case 9:break g;default:break r}}s:switch(i-6|0){case 0:j=(e|0)>=14?14:e;e=0;i=0;if((g|0)>=2)while(1){g=0;t:{u:{v:{w:{h= +(e<<4)+a|0;switch(J[h+360>>2]-1|0){case 2:break u;case 1:break v;case 0:break w;default:break t}}g=J[h+368>>2];break t}f=O[h+368>>3];h=f>2E9;if(R(f)<2147483648)g=~~f;else g=-2147483648;g=f<-2E9?0:h?0:g;break t}k=J[h+372>>2];if(!k)break t;g=J[h+368>>2]/(k|0)|0}i=g+i|0;J[(e<<2)+o>>2]=i;e=e+1|0;if((j|0)!=(e|0))continue;break}J[d+108>>2]=j;break b;case 1:j=(e|0)>=10?10:e;e=0;i=0;if((g|0)>=2)while(1){g=0;x:{y:{z:{A:{h=(e<<4)+a|0;switch(J[h+360>>2]-1|0){case 2:break y;case 1:break z;case 0:break A;default:break x}}g= +J[h+368>>2];break x}f=O[h+368>>3];h=f>2E9;if(R(f)<2147483648)g=~~f;else g=-2147483648;g=f<-2E9?0:h?0:g;break x}k=J[h+372>>2];if(!k)break x;g=J[h+368>>2]/(k|0)|0}i=g+i|0;J[(e<<2)+p>>2]=i;e=e+1|0;if((j|0)!=(e|0))continue;break}J[d+152>>2]=j;break b;case 2:j=(e|0)>=14?14:e;e=0;i=0;if((g|0)>=2)while(1){g=0;B:{C:{D:{E:{h=(e<<4)+a|0;switch(J[h+360>>2]-1|0){case 2:break C;case 1:break D;case 0:break E;default:break B}}g=J[h+368>>2];break B}f=O[h+368>>3];h=f>2E9;if(R(f)<2147483648)g=~~f;else g=-2147483648; +g=f<-2E9?0:h?0:g;break B}k=J[h+372>>2];if(!k)break B;g=J[h+368>>2]/(k|0)|0}i=g+i|0;J[(e<<2)+q>>2]=i;e=e+1|0;if((j|0)!=(e|0))continue;break}J[d+212>>2]=j;break b;case 5:break m;case 4:break n;case 3:break s;case 15:break c;case 14:break d;case 13:break e;default:break b}j=(e|0)>=10?10:e;e=0;i=0;if((g|0)>=2)while(1){g=0;F:{G:{H:{I:{h=(e<<4)+a|0;switch(J[h+360>>2]-1|0){case 2:break G;case 1:break H;case 0:break I;default:break F}}g=J[h+368>>2];break F}f=O[h+368>>3];h=f>2E9;if(R(f)<2147483648)g=~~f;else g= +-2147483648;g=f<-2E9?0:h?0:g;break F}k=J[h+372>>2];if(!k)break F;g=J[h+368>>2]/(k|0)|0}i=g+i|0;J[(e<<2)+r>>2]=i;e=e+1|0;if((j|0)!=(e|0))continue;break}J[d+256>>2]=j;break b}f=0;J:{K:switch(J[a+360>>2]-1|0){case 0:O[d+264>>3]=J[a+368>>2];break b;case 1:O[d+264>>3]=O[a+368>>3];break b;case 2:break K;default:break J}e=J[a+372>>2];if(!e)break J;f=+J[a+368>>2]/+(e|0)}O[d+264>>3]=f;break b}e=0;L:{M:switch(J[a+360>>2]-1|0){case 0:J[d+272>>2]=J[a+368>>2];break b;case 1:f=O[a+368>>3];g=f>2E9;if(R(f)<2147483648)e= +~~f;else e=-2147483648;J[d+272>>2]=f<-2E9?0:g?0:e;break b;case 2:break M;default:break L}g=J[a+372>>2];if(!g)break L;e=J[a+368>>2]/(g|0)|0}J[d+272>>2]=e;break b}e=0;N:{O:switch(J[a+360>>2]-1|0){case 0:J[d+276>>2]=J[a+368>>2];break b;case 1:f=O[a+368>>3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;J[d+276>>2]=f<-2E9?0:g?0:e;break b;case 2:break O;default:break N}g=J[a+372>>2];if(!g)break N;e=J[a+368>>2]/(g|0)|0}J[d+276>>2]=e;break b}f=0;P:{Q:switch(J[a+360>>2]-1|0){case 0:f=+J[a+368>>2];break P; +case 1:f=O[a+368>>3];break P;case 2:break Q;default:break P}e=J[a+372>>2];if(!e)break P;f=+J[a+368>>2]/+(e|0)}J[d+288>>2]=1;O[d+280>>3]=f;break b}f=0;R:{S:switch(J[a+360>>2]-1|0){case 0:f=+J[a+368>>2];break R;case 1:f=O[a+368>>3];break R;case 2:break S;default:break R}e=J[a+372>>2];if(!e)break R;f=+J[a+368>>2]/+(e|0)}J[d+304>>2]=1;O[d+296>>3]=f;break b}i=(e|0)>=12?12:e;l=0;e=0;if((g|0)>=2)while(1){f=0;T:{U:{V:{W:{g=(e<<4)+a|0;switch(J[g+360>>2]-1|0){case 2:break U;case 1:break V;case 0:break W;default:break T}}f= ++J[g+368>>2];break T}f=O[g+368>>3];break T}h=J[g+372>>2];if(!h)break T;f=+J[g+368>>2]/+(h|0)}l=l+f;O[(e<<3)+s>>3]=l;e=e+1|0;if((i|0)!=(e|0))continue;break}J[d+408>>2]=i;break b}i=(e|0)>=12?12:e;l=0;e=0;if((g|0)>=2)while(1){f=0;X:{Y:{Z:{_:{g=(e<<4)+a|0;switch(J[g+360>>2]-1|0){case 2:break Y;case 1:break Z;case 0:break _;default:break X}}f=+J[g+368>>2];break X}f=O[g+368>>3];break X}h=J[g+372>>2];if(!h)break X;f=+J[g+368>>2]/+(h|0)}l=l+f;O[(e<<3)+t>>3]=l;e=e+1|0;if((i|0)!=(e|0))continue;break}J[d+512>> +2]=i;break b}e=0;$:{aa:switch(J[a+360>>2]-1|0){case 0:e=!J[a+368>>2];break $;case 1:e=O[a+368>>3]==0;break $;case 2:break aa;default:break $}e=!J[a+368>>2]}J[d+520>>2]=1;J[d+516>>2]=e^1;break b}f=0;ba:{ca:switch(J[a+360>>2]-1|0){case 0:O[d+528>>3]=J[a+368>>2];break b;case 1:O[d+528>>3]=O[a+368>>3];break b;case 2:break ca;default:break ba}e=J[a+372>>2];if(!e)break ba;f=+J[a+368>>2]/+(e|0)}O[d+528>>3]=f;break b}e=0;da:{ea:switch(J[a+360>>2]-1|0){case 0:J[d+536>>2]=J[a+368>>2];break b;case 1:f=O[a+368>> +3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;J[d+536>>2]=f<-2E9?0:g?0:e;break b;case 2:break ea;default:break da}g=J[a+372>>2];if(!g)break da;e=J[a+368>>2]/(g|0)|0}J[d+536>>2]=e;break b}f=0;fa:{ga:switch(J[a+360>>2]-1|0){case 0:O[d+544>>3]=J[a+368>>2];break b;case 1:O[d+544>>3]=O[a+368>>3];break b;case 2:break ga;default:break fa}e=J[a+372>>2];if(!e)break fa;f=+J[a+368>>2]/+(e|0)}O[d+544>>3]=f;break b}e=0;ha:{ia:switch(J[a+360>>2]-1|0){case 0:J[d+552>>2]=J[a+368>>2];break b;case 1:f=O[a+ +368>>3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;J[d+552>>2]=f<-2E9?0:g?0:e;break b;case 2:break ia;default:break ha}g=J[a+372>>2];if(!g)break ha;e=J[a+368>>2]/(g|0)|0}J[d+552>>2]=e;break b}e=0;ja:{ka:switch(J[a+360>>2]-1|0){case 0:e=J[a+368>>2];break ja;case 1:f=O[a+368>>3];g=f>2E9;if(R(f)<2147483648)e=~~f;else e=-2147483648;e=f<-2E9?0:g?0:e;break ja;case 2:break ka;default:break ja}g=J[a+372>>2];if(!g)break ja;e=J[a+368>>2]/(g|0)|0}J[d+556>>2]=b+e;break b}f=0;la:{ma:{na:{oa:{e=J[a+360>> +2];switch(e-1|0){case 2:break ma;case 1:break na;case 0:break oa;default:break la}}f=+J[a+368>>2];break la}f=O[a+368>>3];break la}g=J[a+372>>2];if(!g)break la;f=+J[a+368>>2]/+(g|0)}O[d+560>>3]=f;J[d+568>>2]=(e|0)==1;break b}f=0;pa:{qa:{ra:{sa:{e=J[a+360>>2];switch(e-1|0){case 2:break qa;case 1:break ra;case 0:break sa;default:break pa}}f=+J[a+368>>2];break pa}f=O[a+368>>3];break pa}g=J[a+372>>2];if(!g)break pa;f=+J[a+368>>2]/+(g|0)}O[d+576>>3]=f;J[d+584>>2]=(e|0)==1}J[a+1144>>2]=0}if((c|0)<(m|0))continue; +break}}}function up(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,G=0,N=0,O=0,P=0,Q=0;a:{b:{if(K[a+496|0]|K[a+476|0]){if(K[a+460|0])break b;n=J[a+544>>2];o=J[a+512>>2];p=J[a+980>>2];q=J[a+968>>2];r=J[a+976>>2];s=K[a+649|0];t=K[a+648|0];u=J[a+644>>2];v=J[a+640>>2];w=J[a+604>>2];x=J[a+588>>2];y=J[a+584>>2];z=J[a+580>>2];A=J[a+576>>2];B=J[a+572>>2];C=K[a+568|0];D=J[a+668>>2];E=J[a+664>>2];F=J[a+660>>2];G=J[a+656>>2]; +N=J[a+684>>2];O=J[a+680>>2];P=J[a+676>>2];Q=J[a+672>>2];J[a+680>>2]=0;J[a+672>>2]=0;c=J[a+16>>2];J[a+676>>2]=c;e=J[a+20>>2];J[a+684>>2]=e;c:{if(!K[a+1124|0]){b=c;break c}b=J[a+1128>>2];h=(b|0)>0?b:0;J[a+672>>2]=h;b=J[a+1136>>2];d=(b|0)>0?b:0;J[a+680>>2]=d;b=J[a+1132>>2];b=(b|0)>(c|0)?c:b;J[a+676>>2]=b;f=J[a+1140>>2];e=(e|0)<(f|0)?e:f;J[a+684>>2]=e}d:{if((b|0)<(h|0)|(d|0)>(e|0))break d;J[a+664>>2]=0;J[a+656>>2]=0;I[a+648>>1]=256;J[a+588>>2]=c;J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1; +H[a+568|0]=255;J[a+668>>2]=e-d;J[a+660>>2]=b-h;J[a+604>>2]=c<<2;Fy(a);J[a+972>>2]=1156;e=1;e:{f:switch(J[a+12>>2]-1|0){case 0:case 2:break f;default:break e}if(!K[a+86|0])break e;b=J[a+512>>2];if(!b){b=J[a+528>>2];J[a+512>>2]=b}if(!K[J[b+88>>2]+61|0])break e;J[a+972>>2]=1157;e=0}g:{if(!J[a+224>>2])break g;b=1158;h:{i:{j:{k:{l:{d=J[a+56>>2];switch(d|0){case 2:case 3:case 4:break g;case 0:break h;case 5:break i;case 6:break j;case 1:break l;default:break k}}b=1159;break h}if((d|0)!=65537)break g;b= +1160;break h}b=1161;break h}b=1162}J[a+972>>2]=b}m:{n:{o:{if(!K[a+302|0])break o;b=K[a+1058|0];p:{if(b&2){if(L[a+1060>>1]|b&1)break p;break o}if(!(b&1))break o}J[a+976>>2]=0;J[a+972>>2]=1163;break n}J[a+976>>2]=0;if(e)break m}e=gv(a,1,0,0);if(e)break b}b=kc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=b;if(!b)break a;b=J[a+680>>2];while(1){q:{d=b;c=J[a+684>>2];if((c|0)<=(b|0)){e=0;break q}e=kc[J[a+972>>2]](a)|0;if(e)break q;b=J[a+976>>2];if(b){e=kc[b|0](a)|0;if(e)break q}e=kc[J[a+968>>2]](a)|0;if(e)break q; +b=d+1|0;e=zs(a);if(!e)continue}break}b=J[a+644>>2];if(b){kc[J[a+156>>2]](b,J[a+604>>2]);J[a+644>>2]=0}if((c|0)>(d|0))break b;if(!K[a+302|0]|!(K[a+1058|0]&2))break d;b=L[a+1060>>1];if(!b)break d;i=ph(a,b);J[a+544>>2]=i;if(!K[i+31|0]|(!i|!K[i+32|0]))break d;d=J[a+676>>2];h=J[i+36>>2];if((d|0)<=(h|0))break d;b=J[a+684>>2];f=J[i+40>>2];if((b|0)<=(f|0))break d;l=K[a+1062|0];if(!l){c=J[i+88>>2];if(J[a+672>>2]>(h+J[c+36>>2]|0)|J[a+680>>2]>(f+J[c+40>>2]|0))break d}r:{if(!K[i+44|0]){e=J[a+672>>2];break r}c= +J[i+48>>2];j=J[i+52>>2];if((c|0)>(j|0)|(c|0)>=(d|0))break d;k=J[i+56>>2];g=J[i+60>>2];if((k|0)>(g|0)|(b|0)<=(k|0))break d;e=J[a+672>>2];if((j|0)<(e|0))break d;m=J[a+680>>2];if((g|0)<(m|0))break d;if((c|0)>(e|0)){J[a+672>>2]=c;e=c}if((d|0)>(j|0)){J[a+676>>2]=j;d=j}if((k|0)>(m|0))J[a+680>>2]=k;if((b|0)<=(g|0))break r;J[a+684>>2]=g;b=g}if((e|0)<(h|0)){J[a+672>>2]=h;e=h}c=J[a+680>>2];if((f|0)>(c|0)){J[a+680>>2]=f;c=f}g=J[i+88>>2];i=J[g+36>>2];s:{if(l){k=J[g+40>>2];break s}j=h+i|0;if((j|0)<(d|0)){J[a+ +676>>2]=j;d=j}k=J[g+40>>2];j=f+k|0;if((j|0)>=(b|0))break s;J[a+684>>2]=j;b=j}j=0;J[a+664>>2]=0;J[a+656>>2]=0;J[a+668>>2]=b-c;J[a+660>>2]=d-e;b=K[g+44|0];J[a+1076>>2]=k;J[a+1072>>2]=i;J[a+1068>>2]=f;J[a+1064>>2]=h;J[a+572>>2]=0;b=b>>>0>8;H[a+648|0]=b;t:{u:{v:switch(K[g+45|0]){case 0:J[a+980>>2]=b?1149:1150;j=!K[g+56|0];break u;case 2:J[a+980>>2]=b?1151:1152;j=!K[g+56|0];break u;case 3:J[a+980>>2]=1153;j=!K[g+56|0];break u;case 4:J[a+980>>2]=b?1154:1155;break u;case 6:J[a+980>>2]=b?1022:1023;break u; +case 8:J[a+980>>2]=b?1149:1150;j=1;break u;case 10:J[a+980>>2]=b?1151:1152;j=1;break u;case 12:J[a+980>>2]=b?1154:1155;break u;case 14:break v;default:break t}J[a+980>>2]=b?1022:1023}H[a+649|0]=j}e=gv(a,0,0,1);if(e)break b;b=kc[J[a+152>>2]](J[a+604>>2])|0;J[a+640>>2]=b;if(!b)break a;b=kc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=b;if(!b)break a;b=J[a+680>>2];while(1){w:{j=b;k=J[a+684>>2];if((k|0)<=(b|0)){e=0;break w}l=J[a+572>>2];b=J[a+1068>>2]+(l+J[a+680>>2]|0)|0;c=J[a+1076>>2];m=J[a+588>>2];h=J[a+ +644>>2];while(1){d=b;b=b-c|0;if((c|0)<=(d|0))continue;break}J[a+572>>2]=d;J[a+588>>2]=J[a+1072>>2];J[a+644>>2]=J[a+640>>2];e=kc[J[a+980>>2]](a)|0;if(!e){d=J[a+672>>2];e=d-J[a+1064>>2]|0;c=J[a+1072>>2];while(1){b=e;e=b-c|0;if(b>>>0>=c>>>0)continue;break}g=J[a+676>>2];e=g-d|0;x:{if(K[a+648|0]){if((e|0)<=0)break x;i=d+1|0;c=J[a+640>>2]+(b<<3)|0;if(e&1){d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[h|0]=f;H[h+1|0]=f>>>8;H[h+2|0]=f>>>16;H[h+3|0]= +f>>>24;H[h+4|0]=d;H[h+5|0]=d>>>8;H[h+6|0]=d>>>16;H[h+7|0]=d>>>24;b=b+1|0;if(b>>>0>2])c=c+8|0;else{b=0;c=J[a+640>>2]}e=e-1|0;d=h+8|0}else d=h;if((g|0)==(i|0))break x;while(1){f=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d|0]=g;H[d+1|0]=g>>>8;H[d+2|0]=g>>>16;H[d+3|0]=g>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;b=b+1|0;if(b>>>0>2])c=c+8|0;else{b=0;c=J[a+640>>2]}g=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7| +0]<<24);i=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d+8|0]=i;H[d+9|0]=i>>>8;H[d+10|0]=i>>>16;H[d+11|0]=i>>>24;H[d+12|0]=g;H[d+13|0]=g>>>8;H[d+14|0]=g>>>16;H[d+15|0]=g>>>24;b=b+1|0;if(b>>>0>2])c=c+8|0;else{b=0;c=J[a+640>>2]}d=d+16|0;f=(e|0)>2;e=e-2|0;if(f)continue;break}break x}if((e|0)<=0)break x;f=d+1|0;c=J[a+640>>2]+(b<<2)|0;if(e&1){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[h|0]=d;H[h+1|0]=d>>>8;H[h+2|0]=d>>>16;H[h+3|0]=d>>>24;b=b+1|0;if(b>>>0>2])c=c+4|0;else{b= +0;c=J[a+640>>2]}e=e-1|0;d=h+4|0}else d=h;if((f|0)==(g|0))break x;while(1){f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;f=d;b=b+1|0;if(b>>>0>2])c=c+4|0;else{b=0;c=J[a+640>>2]}g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d+4|0]=g;H[f+5|0]=g>>>8;H[f+6|0]=g>>>16;H[f+7|0]=g>>>24;b=b+1|0;if(b>>>0>2])c=c+4|0;else{b=0;c=J[a+640>>2]}d=d+8|0;f=(e|0)>2;e=e-2|0;if(f)continue;break}}J[a+588>>2]=m;J[a+572>>2]=l;J[a+644>>2]=h; +e=0}if(e)break w;b=J[a+976>>2];if(b){e=kc[b|0](a)|0;if(e)break w}e=kc[J[a+968>>2]](a)|0;if(e)break w;b=j+1|0;e=zs(a);if(!e)continue}break}b=J[a+644>>2];if(b){kc[J[a+156>>2]](b,J[a+604>>2]);J[a+644>>2]=0}b=J[a+640>>2];if(b){kc[J[a+156>>2]](b,J[a+604>>2]);J[a+640>>2]=0}if((j|0)<(k|0))break b}J[a+684>>2]=N;J[a+680>>2]=O;J[a+676>>2]=P;J[a+672>>2]=Q;J[a+668>>2]=D;J[a+664>>2]=E;J[a+660>>2]=F;J[a+656>>2]=G;J[a+976>>2]=r;H[a+649|0]=s;H[a+648|0]=t;J[a+644>>2]=u;J[a+640>>2]=v;J[a+604>>2]=w;J[a+588>>2]=x;J[a+ +584>>2]=y;J[a+580>>2]=z;J[a+576>>2]=A;J[a+572>>2]=B;H[a+568|0]=C;J[a+980>>2]=p;J[a+968>>2]=q;J[a+512>>2]=o;J[a+544>>2]=n}e=0}return e}Jc(a,1,0,0);return 1}function OA(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=fc-48|0;fc=h;l=J[a+12>>2];J[l>>2]=J[l>>2]+1;a:{b:{c:{d:{if(K[a+9|0]){J[699344]=0;a=ja(5178,h+24|0,J[685887],2387711,1127,2397490,0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;break b}g=Z()| +0;break d}g=Z()|0;Kc(a);break d}f:{if(K[a+8|0]|!K[a+10|0])break f;f=J[a+84>>2];i=(d|0)<0?(f|0)>0?f-c|0:d:d;f=J[a+16>>2];g:{if(!f){g=a;j=c;break g}j=c;k=a;while(1){g=f;m=J[f+84>>2];j=J[k+80>>2]+j|0;i=(i|0)<0?(m|0)>0?m-j|0:i:i;k=f;f=J[f+16>>2];if(f)continue;break}}J[699344]=0;f=_(5244,g+20|0)|0;k=J[699344];J[699344]=0;h:{i:{if((k|0)==1)break i;j:{if(f){if(J[g+84>>2]>=(J[g+80>>2]+(i+j|0)|0))break f;break j}if((i|0)<0){if(!K[g+8|0])break j;break f}f=J[g+72>>2];J[699344]=0;f=ga(5262,f|0,j|0,i|0)|0;j=J[699344]; +J[699344]=0;if((j|0)==1)break i;if((f|0)==(i|0))break f}J[699344]=0;a=ja(5178,h+24|0,J[685887],2387711,1130,2397490,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;g=Z()|0;Kc(a);break d}g=Z()|0;break d}g=Z()|0;break d}k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if((d|0)<0){J[699344]=0;a=ja(5178,h+24|0,2391279,2387711,1133,2397490,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break v;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b; +g=Z()|0;Kc(a);break d}if(!d){i=0;break c}f=J[a+16>>2];if(!f){J[h+20>>2]=0;break l}J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break t;i=J[a+16>>2];J[h+20>>2]=i;if(!i)break l;w:{if(K[a+9|0])break w;f=J[a+84>>2];d=(f|0)>0?(f|0)<(c+d|0)?f-c|0:d:d;k=(d|0)>0?d:0;if(K[a+8|0]|!K[a+10|0])break s;j=c;f=a;while(1){j=J[f+80>>2]+j|0;d=i;f=d;i=J[f+16>>2];if(i)continue;break}J[699344]=0;g=_(5244,f+20|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break r;if(g){if(J[f+84>>2]<(J[f+80>>2]+(j+k| +0)|0))break w;break s}d=J[d+72>>2];J[699344]=0;d=ga(5262,d|0,j|0,k|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break r;if((d|0)==(k|0))break s}J[699344]=0;a=ja(5178,h+24|0,J[685887],2387711,1161,2397490,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;g=ea(2423616)|0;i=gc;Kc(a);break q}g=Z()|0;break d}g=ea(2423616)|0;i=gc;break q}g=Z()|0;break d}a=J[a+80>>2];J[699344]=0;g=J[h+20>>2];i=na(5272,g|0,b|0,a+c|0,k|0,e+1|0)|0;a=J[699344];J[699344]= +0;if((a|0)!=1)break p}g=ea(2423616)|0;i=gc}if((sa(2423616)|0)!=(i|0))break k;a=oa(g|0)|0;J[699344]=0;a=J[a+4>>2];b=a?a:2389698;a=J[699344];J[699344]=0;x:{y:{if((a|0)!=1){J[699344]=0;a=aa(5149,h+24|0,2391646)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;b=pd(a,b,-1);c=J[699344];J[699344]=0;if((c|0)==1)break y;wc(a);if(!(b|e))break x;J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break b}g=Z()|0;break m}g=Z()|0;wc(a);break m}i=0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a| +0)==1)break o;g=J[h+20>>2]}J[h+20>>2]=0;if(!g)break c;J[699344]=0;a=J[g+4>>2]-1|0;J[g+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break c;J[699344]=0;$(5147,g|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break a}g=Z()|0;break k}g=Z()|0}J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break k;break a}J[699344]=0;g=a+20|0;e=_(5244,g|0)|0;f=J[699344];J[699344]=0;z:{A:{if((f|0)!=1){if(e){j=J[a+84>>2];J[699344]=0;J[h+24>>2]=0;k=a+56|0;aa(5153,h+24|0,k|0)|0;e=J[699344];J[699344]=0;B:{C:{D:{E:{F:{G:{if((e| +0)!=1){e=J[h+24>>2];if(!e){f=J[693724];if(!f){J[699344]=0;f=_(4,28)|0;e=J[699344];J[699344]=0;if((e|0)==1)break G;J[f+4>>2]=0;J[f+24>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=2397884;J[f+16>>2]=0;J[f+20>>2]=0;J[699344]=0;e=f+8|0;J[e>>2]=2397928;J[e+4>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;e=J[699344];J[699344]=0;if((e|0)==1){g=Z()|0;uc(nd(f));break B}J[693724]=f}J[699344]=0;J[h+12>>2]=0;e=h+12|0;aa(5145,e|0,a|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break G;J[699344]=0;i=h+16|0;ia(5247,i|0,f|0,g|0,e|0);e=J[699344]; +J[699344]=0;if((e|0)==1)break F;J[699344]=0;e=aa(5153,h+24|0,i|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break E;J[699344]=0;aa(5153,k|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break E;e=J[h+16>>2];J[h+16>>2]=0;H:{if(!e)break H;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break H;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}e=J[h+12>>2];J[h+12>>2]=0;I:{if(!e)break I;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[699344];J[699344]=0; +if((g|0)==1)break a;if(f)break I;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}e=J[h+24>>2]}e=J[e+44>>2];f=J[J[e>>2]+20>>2];a=J[a+80>>2];J[699344]=0;ha(f|0,e|0,a+c|0,0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break C;a=J[J[h+24>>2]+44>>2];J[699344]=0;e=a;a=(j|0)>0?(j|0)<(c+d|0)?j-c|0:d:d;i=ga(5273,e|0,b|0,((a|0)>0?a:0)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break C;a=J[h+24>>2];J[h+24>>2]=0;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c| +0)!=1){if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break a}g=Z()|0;break B}g=Z()|0;break B}g=Z()|0;break D}g=Z()|0;zc(h+16|0)}zc(h+12|0);break B}g=Z()|0}zc(h+24|0);break k}e=J[a+72>>2];J[699344]=0;e=ga(5274,e|0,c|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break A;if((e|0)>0){d=J[a+64>>2];f=J[J[d>>2]+20>>2];J[699344]=0;ha(f|0,d|0,c|0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){a=J[a+64>>2];J[699344]=0;i=ga(5273,a|0,b|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!= +1)break c}g=Z()|0;break k}if(K[a+8|0]){i=0;a=J[a+84>>2];if((a|0)<=0|(a|0)<=(c|0))break c;J[699344]=0;a=ja(5178,h+24|0,J[685886],2387711,1234,2397490,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break z;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;g=Z()|0;Kc(a);break k}J[699344]=0;b=_(4,24)|0;e=J[699344];J[699344]=0;J:{K:{if((e|0)==1)break K;J[b+20>>2]=d;J[b+16>>2]=c;H[b+12|0]=0;J[b+8>>2]=0;J[b>>2]=2397956;J[b+4>>2]=0;J[699344]=0;J[h+16>>2]=0;c=h+16|0;aa(5145,c|0,b|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break K;J[699344]=0;a=a+88|0;da(5275,a|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break J;J[699344]=0;da(5276,a|0,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break J}g=Z()|0;break k}oa(ea(0)|0)|0;J[699344]=0;J[h+24>>2]=0;J[h+28>>2]=0;b=h+24|0;c=ga(5277,a|0,h+16|0,b|0)|0;d=J[699344];J[699344]=0;L:{M:{if((d|0)!=1){if(!c)break M;J[699344]=0;da(5235,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break M}break L}J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break b}g= +Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break a;zc(h+16|0);break k}g=Z()|0;break k}g=Z()|0;break k}g=Z()|0}zc(h+20|0)}J[l>>2]=J[l>>2]-1;ba(g|0);B()}J[l>>2]=J[l>>2]-1;fc=h+48|0;return i|0}B()}ea(0)|0;Bc();B()}function Nl(a,b,c,d){var e=0,f=0,g=Q(0),h=0,i=0,j=Q(0),k=0,l=0,m=Q(0),n=0,o=Q(0),p=0,q=0,r=0,s=0,t=Q(0),u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=Q(0),C=Q(0),D=Q(0),E=Q(0),F=0,G=0;r=J[a+20>>2];y=J[a+28>>2]-r>>3;u=J[a+8>>2];while(1){A=J[r+12>>2];v=I[r+8>>1];k=I[r+10>>1];a=k>>31;a=(a^ +k)-a|0;k=J[c+4>>2];a:{if(a>>>0<=k>>>0){q=J[c>>2];break a}q=J[c>>2];e=k;k=a+255&130816;if((e|0)==(k|0))break a;if(q)uc(q);J[c+4>>2]=k;q=vc(k<<2);J[c>>2]=q}l=q;p=v;k=fc-16|0;fc=k;if(a){t=Q(u|0);z=0;while(1){b:{c:{d:switch(J[d+88>>2]){case 0:h=J[d+140>>2];g=Q(N[h+20>>2]+t);m=Q(Q(Q(N[h+16>>2]+Q(p|0))*N[h>>2])+Q(g*N[h+8>>2]));o=N[d+112>>2];i=J[d+96>>2];e=i-1|0;j=Q(e|0);o=Q(Q(Q(m-o)*j)/Q(N[d+116>>2]-o));e:{if(Q(R(o))>2];m=Q(Q(m*N[h+4>>2])+Q(g*N[h+12>> +2]));g=N[d+120>>2];g=Q(Q(Q(m-g)*j)/Q(N[d+124>>2]-g));f:{if(Q(R(g))>>0<=(J[d+104>>2]-n|0)/12>>>0?(h|0)>=0?e>>>0>>0?e:h:0:0,12)>>2]+(((f|0)>=0?e>>>0>>0?e:f:0)<<2)|0;f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);h=f>>>16|0;e=l;i=K[d+2913|0];f=(i?f:h)&255|f&-16711936|(i?h:f)<<16&16711680;H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=f>>>16;H[e+3|0]=f>>>24;break c;case 2:e=J[d+172>>2];g=N[e+20>>2];m=N[e+16>>2];o=Q(Q(p|0)-m);j=Q(N[e+12>>2]-g);B=Q(N[e>>2]- +m);C=Q(m-N[e+8>>2]);D=N[e+4>>2];m=Q(Q(j*B)+Q(C*Q(D-g)));g:{h:{E=Q(t-g);j=Q(Q(Q(j*o)+Q(E*C))/m);i:{if(j>2];h=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);o=Q(g*Q((h&255)>>>0));j:{if(Q(R(o))=0?e>>>0>=255?255:e:0;m=Q(R(m));i=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24); +o=Q(m*Q((i&255)>>>0));k:{if(Q(R(o))=0?e>>>0>=255?255:e:0)|0;n=e>>>0>=255?255:e;o=Q(R(j));f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);j=Q(o*Q((f&255)>>>0));l:{if(Q(R(j))=0?e>>>0>=255?255:e:0)|0;H[k+12|0]=e>>>0>=255?255:e;j=Q(g*Q((h>>>16&255)>>>0));m:{if(Q(R(j))=0?e>>>0>=255?255:e:0;j=Q(m*Q((i>>>16&255)>>>0));n:{if(Q(R(j))=0?e>>>0>=255?255:e:0)|0;n=e>>>0>=255?255:e;j=Q(o*Q((f>>>16&255)>>>0));o:{if(Q(R(j))=0?e>>>0>=255?255:e:0)|0;H[k+14|0]=e>>>0>=255?255:e;j=Q(g*Q((h>>>8&255)>>>0));p:{if(Q(R(j))=0?e>>>0>=255?255:e:0;j=Q(m*Q((i>>>8&255)>>>0));q:{if(Q(R(j))=0?e>>>0>=255?255:e:0)|0;n=e>>>0>=255?255:e;j=Q(o*Q((f>>>8&255)>>> +0));r:{if(Q(R(j))=0?e>>>0>=255?255:e:0)|0;H[k+13|0]=e>>>0>=255?255:e;g=Q(g*Q(h>>>24>>>0));s:{if(Q(R(g))=0?e>>>0>=255?255:e:0;g=Q(m*Q(i>>>24>>>0));t:{if(Q(R(g))=0?e>>>0>=255?255:e:0)|0;h=e>>>0>=255?255:e;g=Q(o*Q(f>>>24>>>0));u:{if(Q(R(g))=0?e>>>0>=255?255:e:0)|0;H[k+15|0]=e>>>0>=255?255: +e}v:{if(K[d+2913|0]){h=J[k+12>>2];f=h>>>24|0;i=h>>>16|0;e=h>>>8|0;break v}f=K[k+15|0];h=K[k+14|0];i=K[k+12|0];e=K[k+13|0]}e=h&255|(f<<24|(i&255)<<16|(e&255)<<8);H[l|0]=e;H[l+1|0]=e>>>8;H[l+2|0]=e>>>16;H[l+3|0]=e>>>24;break c;case 3:g=N[d+2932>>2];i=J[d+2948>>2]-1|0;m=Q(i>>>0);g=Q(Q(Q(Q(p|0)-g)*m)/Q(N[d+2936>>2]-g));w:{if(g=Q(0)){e=~~g>>>0;break w}e=0}h=0;f=e;n=e>>>0>i>>>0;g=N[d+2940>>2];g=Q(Q(Q(t-g)*m)/Q(N[d+2944>>2]-g));x:{if(g=Q(0)){e=~~g>>>0;break x}e=0}if(!(n| +e>>>0>i>>>0)){e=J[J[d+2916>>2]+P(f,12)>>2]+(e<<2)|0;h=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24)}e=h>>>16|0;f=K[d+2913|0];e=(f?h:e)&255|h&-16711936|(f?e:h)<<16&16711680;H[l|0]=e;H[l+1|0]=e>>>8;H[l+2|0]=e>>>16;H[l+3|0]=e>>>24;break c;case 4:g=N[d+2932>>2];i=J[d+2948>>2]-1|0;m=Q(i>>>0);g=Q(Q(Q(Q(p|0)-g)*m)/Q(N[d+2936>>2]-g));y:{if(g=Q(0)){e=~~g>>>0;break y}e=0}h=0;f=e;n=e>>>0>i>>>0;g=N[d+2940>>2];g=Q(Q(Q(t-g)*m)/Q(N[d+2944>>2]-g));z:{if(g=Q(0)){e=~~g>>>0;break z}e= +0}if(!(n|e>>>0>i>>>0)){e=J[J[d+2916>>2]+P(f,12)>>2]+(e<<2)|0;h=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24)}e=h>>>16|0;f=K[d+2913|0];e=(f?h:e)&255|h&-16711936|(f?e:h)<<16&16711680;H[l|0]=e;H[l+1|0]=e>>>8;H[l+2|0]=e>>>16;H[l+3|0]=e>>>24;break c;case 1:break d;default:break b}e=J[d+268>>2];g=Q(kc[J[J[e>>2]>>2]](e,Q(p|0),t));if(!(!(g!=g|N[d+80>>2]==Q(0)&g>2])&(!(g>N[d+116>>2])|N[d+84>>2]!=Q(0)))){H[l|0]=0;H[l+1|0]=0;H[l+2|0]=0;H[l+3|0]=0;break c}A:switch(J[d+92>>2]){case 1:j=g;g=N[d+112>> +2];f=J[d+96>>2]-1|0;g=Q(Q(Q(j-g)*Q(f|0))/Q(N[d+116>>2]-g));B:{if(Q(R(g))>2]>>2]+(((e|0)>=0?e>>>0>f>>>0?f:e:0)<<2)|0;e=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);f=e>>>16|0;h=K[d+2913|0];e=(h?e:f)&255|e&-16711936|(h?f:e)<<16&16711680;H[l|0]=e;H[l+1|0]=e>>>8;H[l+2|0]=e>>>16;H[l+3|0]=e>>>24;break c;case 0:break A;default:break b}s=+Q(g*Q(512))+.5;C:{if(R(s)<2147483648){e=~~s;break C}e=-2147483648}if(!K[(e+d|0)+2400|0]){D:{E:{F:{h=J[d+328>>2]; +G:{if((h|0)<2)break G;g=Q(+(e|0)*.001953125);i=J[d+324>>2];if(g>2])break F;f=1;m=N[i+4>>2];if(g>2];if(g>2]+(h<<2)|0)-4|0;J[((e<<2)+d|0)+348>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);break D}f=J[d+320>>2];J[((e<<2)+d|0)+348>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);break D}n=J[d+320>>2];f=f<<2;h=n+f|0;f=f-4|0;n=f+n|0;w=K[n+3|0];F=K[h+3|0]-w|0;G=(e<<2)+d|0;x= +K[n|0];j=g;g=N[f+i>>2];s=+Q(Q(j-g)/Q(m-g))*256+.5;H:{if(s<4294967296&s>=0){f=~~s>>>0;break H}f=0}x=x+(P(f,K[h|0]-x|0)>>>8|0)&255;i=K[n+2|0];i=(P(f,F)>>>8|0)+w<<24|((P(f,K[h+2|0]-i|0)>>>8|0)+i&255)<<16;w=K[h+1|0];h=K[n+1|0];J[G+348>>2]=x|(i|((P(f,w-h|0)>>>8|0)+h&255)<<8)}H[(d+e|0)+2400|0]=1}i=(e<<2)+d|0;I:{if(K[d+2913|0]){h=J[i+348>>2];f=h>>>24|0;e=h>>>8|0;i=h>>>16|0;break I}f=K[i+351|0];e=K[i+349|0];h=K[i+350|0];i=K[i+348|0]}e=h&255|((i&255)<<16|f<<24|(e&255)<<8);H[l|0]=e;H[l+1|0]=e>>>8;H[l+2|0]= +e>>>16;H[l+3|0]=e>>>24}l=l+4|0}p=p+1|0;z=z+1|0;if((z|0)!=(a|0))continue;break}}fc=k+16|0;J:{if(J[b+16>>2]<(u|0)|J[b+8>>2]>(u|0))break J;l=I[r+10>>1]<0;f=l?0:A;e=K[A|0];p=J[b+4>>2];K:{if((v|0)>=(p|0)){p=v;break K}k=p-v|0;a=a-k|0;if((a|0)<=0)break J;f=l?0:f+k|0;q=(k<<2)+q|0}l=J[b>>2];k=J[b+12>>2];if((k|0)<(a+p|0)){a=k-p|0;if((a|0)<0)break J;a=a+1|0}_k(l,p,u,a,q,f,e)}r=r+8|0;y=y-1|0;if(y)continue;break}}function YH(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;e=fc-192| +0;fc=e;J[e+176>>2]=0;J[e+180>>2]=0;J[e+168>>2]=0;J[e+160>>2]=0;J[e+164>>2]=0;J[e+152>>2]=0;J[e+156>>2]=0;J[e+144>>2]=0;J[e+148>>2]=0;i=Co(e+144|0,2400660);J[e+136>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+120>>2]=0;J[e+124>>2]=0;J[699344]=0;J[e+112>>2]=0;J[e+116>>2]=0;h=aa(5250,e+112|0,2400680)|0;d=J[699344];J[699344]=0;a:{b:{c:{if((d|0)!=1){d=J[b+20>>2];l=b+12|0;J[e+180>>2]=l;J[e+176>>2]=d;d:{e:{if(!d)break e;while(1){J[e+96>>2]=d;b=J[e+180>>2];J[e+100>>2]=b;f:{g:{h:{if((b|0)!=(l|0)){J[699344]=0;da(5243, +e+96|0,l|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;break b}b=J[d+8>>2];J[699344]=0;b=aa(5307,b|0,c|0)|0;d=J[699344];J[699344]=0;i:{if((d|0)==1)break i;J[699344]=0;d=e+104|0;da(5308,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;b=rf(d);d=J[699344];J[699344]=0;if((d|0)==1)break g;J[699344]=0;d=J[J[i+12>>2]+((b>>>0)%M[i+8>>2]<<2)>>2];g=J[699344];J[699344]=0;if((g|0)==1)break g;j:{k:{if(d)while(1){if((b|0)==J[d+12>>2]){J[699344]=0;g=ga(5287,d+16|0,e+104|0,-1)|0;j=J[699344];J[699344]= +0;if((j|0)==1)break g;if(!g)break k}d=J[d+8>>2];if(d)continue;break}J[699344]=0;b=aa(5309,i|0,e+104|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;J[b+24>>2]=0;break f}J[699344]=0;j=aa(5310,h|0,e+104|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;d=J[e+176>>2];J[e+88>>2]=d;b=J[e+180>>2];J[e+92>>2]=b;if(!((b|0)==(l|0)?d:0)){J[699344]=0;da(5243,e+88|0,l|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break g}J[699344]=0;b=_(4,12)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;J[b>>2]=0;J[b+4>>2]= +0;g=J[d+8>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;g=J[699344];J[699344]=0;if((g|0)==1)break j;d=J[d+8>>2]}else d=0;J[b+8>>2]=d;J[699344]=0;vf(j+24|0,b);b=J[699344];J[699344]=0;if((b|0)!=1)break f}break g}d=Z()|0;break d}d=Z()|0;break d}d=Z()|0;wc(e+104|0);break d}wc(e+104|0);b=J[e+176>>2];if(!b)break e;d=J[b>>2];J[e+176>>2]=d;if(d)continue;break}}J[699344]=0;b=J[h+24>>2];J[e+108>>2]=h;J[e+104>>2]=b;b=J[699344];J[699344]=0;if((b|0)!=1){c=J[e+108>>2];b=J[e+104>>2];J[e+176>>2]=b;J[e+180>>2]=c;l:{if(!b)break l; +while(1){if(J[e+180>>2]!=(h|0)){J[699344]=0;da(5243,e+176|0,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;d=Z()|0;break d}m:{n:{o:{c=J[b+16>>2];p:{if(!c){g=-1;d=b;c=h;break p}J[699344]=0;g=ga(5312,c|0,46,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;d=J[e+176>>2];c=J[e+180>>2]}if(!((c|0)==(h|0)?d:0)){J[699344]=0;da(5243,e+176|0,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;d=Z()|0;break d}c=J[d+32>>2];if(!c)break m;n=b+16|0;j=1;q:{r:{s:{t:{u:{v:{w:{x:{while(1){b=J[c+8>>2];J[e+104>>2]=0;J[e+ +108>>2]=J[685894];y:{b=J[b+36>>2];z:{A:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,e- -64|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break A;d=Z()|0;break z}J[e+64>>2]=0}J[699344]=0;aa(5153,e+104|0,e- -64|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[e+64>>2];J[e+64>>2]=0;if(!b)break y;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break y;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break y}break a}d=Z()|0;zc(e- -64|0)}wc(e+104|0);break d}b=J[e+ +104>>2];J[e+108>>2]=J[(b?b+12|0:2743576)>>2];J[699344]=0;d=e+104|0;b=aa(5285,e+72|0,d|0)|0;f=J[699344];J[699344]=0;B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{if((f|0)!=1){J[699344]=0;f=aa(5286,e+80|0,b|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break N;J[699344]=0;k=ga(5287,d|0,f|0,-1)|0;m=J[699344];J[699344]=0;if((m|0)==1)break M;if(!k){J[699344]=0;k=rf(d);d=J[699344];J[699344]=0;if((d|0)==1)break M;J[699344]=0;d=J[J[h+12>>2]+((k>>>0)%M[h+8>>2]<<2)>>2];m=J[699344];J[699344]=0;if((m|0)==1)break M;O:{if(d)while(1){if(J[d+ +12>>2]==(k|0)){J[699344]=0;m=ga(5287,d+16|0,e+104|0,-1)|0;o=J[699344];J[699344]=0;if((o|0)==1)break M;if(!m)break O}d=J[d+8>>2];if(d)continue;break}wc(f);wc(b);break B}}wc(f);wc(b);while(1){P:{if((g|0)<0){J[699344]=0;b=e+56|0;ca(5291,b|0,n|0,2399972);d=J[699344];J[699344]=0;if((d|0)==1)break L;J[699344]=0;d=aa(5290,e+48|0,j|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break K;J[699344]=0;ca(5292,e- -64|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break P;d=Z()|0;break s}J[699344]=0;b=e+24|0;ia(5313, +b|0,n|0,0,g|0);d=J[699344];J[699344]=0;if((d|0)==1)break J;J[699344]=0;d=e+32|0;ca(5291,d|0,b|0,2399972);b=J[699344];J[699344]=0;if((b|0)==1)break I;J[699344]=0;b=aa(5290,e+16|0,j|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break H;J[699344]=0;f=e+40|0;ca(5292,f|0,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break G;J[699344]=0;b=e+8|0;ia(5313,b|0,n|0,g|0,-1);d=J[699344];J[699344]=0;if((d|0)==1)break F;J[699344]=0;ca(5292,e- -64|0,f|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break E}b=J[e+64>>2];Q:{if(b){d= +J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,e+188|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break Q;d=Z()|0;break x}J[e+188>>2]=0}J[699344]=0;aa(5153,e+104|0,e+188|0)|0;b=J[699344];J[699344]=0;R:{if((b|0)!=1){b=J[e+188>>2];J[e+188>>2]=0;if(!b)break R;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break R;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break R}break a}d=Z()|0;zc(e+188|0);break x}b=J[e+104>>2];J[e+108>>2]=J[(b?b+12|0:2743576)>>2];wc(e- -64| +0);S:{if((g|0)>=0){wc(e+8|0);wc(e+40|0);wc(e+16|0);wc(e+32|0);wc(e+24|0);break S}wc(e+48|0);wc(e+56|0)}J[699344]=0;b=e- -64|0;da(5308,b|0,e+104|0);d=J[699344];J[699344]=0;if((d|0)==1)break D;J[699344]=0;b=rf(b);d=J[699344];J[699344]=0;if((d|0)==1)break C;J[699344]=0;d=J[J[i+12>>2]+((b>>>0)%M[i+8>>2]<<2)>>2];f=J[699344];J[699344]=0;if((f|0)==1)break C;j=j+1|0;T:{if(d)while(1){if((b|0)==J[d+12>>2]){J[699344]=0;f=ga(5287,d+16|0,e- -64|0,-1)|0;k=J[699344];J[699344]=0;if((k|0)==1)break C;if(!f)break T}d= +J[d+8>>2];if(d)continue;break}wc(e- -64|0);break B}wc(e- -64|0);continue}}d=Z()|0;break q}d=Z()|0;wc(b);break q}d=Z()|0;wc(f);wc(b);break q}d=Z()|0;break q}d=Z()|0;break r}d=Z()|0;break q}d=Z()|0;wc(e+24|0);break q}d=Z()|0;break t}d=Z()|0;break u}d=Z()|0;break v}d=Z()|0;break w}d=Z()|0;break q}d=Z()|0;wc(e- -64|0);break q}b=J[c+8>>2];J[699344]=0;d=b;b=e+104|0;da(5281,d|0,b|0);d=J[699344];J[699344]=0;U:{if((d|0)==1)break U;J[699344]=0;d=aa(5309,i|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break U; +J[d+24>>2]=0;wc(b);c=J[c>>2];if(!c)break n;continue}break}d=Z()|0;break q}wc(e- -64|0);if((g|0)<0)break s}wc(e+8|0)}wc(e+40|0)}wc(e+16|0)}wc(e+32|0);wc(e+24|0);break q}wc(e+48|0)}wc(e+56|0)}wc(e+104|0);break d}d=Z()|0;break d}d=J[e+176>>2];if(!d)break l}b=J[d>>2];J[e+176>>2]=b;if(b)continue;break}}J[699344]=0;aa(5201,a|0,l|0)|0;a=J[699344];J[699344]=0;if((a|0)==1){d=Z()|0;break d}Md(h);Md(i);fc=e+192|0;return}d=Z()|0}Md(h);break c}d=Z()|0}Md(i);ba(d|0);B()}B()}ea(0)|0;Bc();B()}function pY(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,L=0,M=0,N=0,O=0;f=fc-368|0;fc=f;a:{b:{e=J[a+200>>2];if(e&1){c:{if(e&4){fd(a,63792);Vd(a,c);break c}if(e&2)fd(a,63871);if(!(!b|(J[b+8>>2]&2052)!=4)){fd(a,63899);Vd(a,c);break c}if((c|0)!=32){fd(a,64025);Vd(a,c);break c}c=f+336|0;Dg(a,c,32);Ae(a,c,32);if(Vd(a,0))break c;d:{c=J[f+336>>2];o=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e:{if((o|0)<0)break e;c=J[f+340>>2];l=c<<24|(c&65280)<< +8|(c>>>8&65280|c>>>24);if((l|0)<0)break e;c=J[f+344>>2];m=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((m|0)<0)break e;c=J[f+348>>2];i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((i|0)<0)break e;c=J[f+352>>2];h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((h|0)<0)break e;c=J[f+356>>2];g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((g|0)<0)break e;c=J[f+360>>2];e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((e|0)<0)break e;c=J[f+364>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((c|0)>=0)break d}fd(a,64848); +break c}t=(c|0)<0?-1:c;u=(e|0)<0?-1:e;v=(g|0)<0?-1:g;w=(h|0)<0?-1:h;x=(i|0)<0?-1:i;y=(m|0)<0?-1:m;z=(l|0)<0?-1:l;A=(o|0)<0?-1:o;if(!(!b|!(K[b+9|0]&8))){f:{if(A-32271>>>0<4294965295|z>>>0<31900|(y>>>0<63E3|z>>>0>33900))break f;if(x>>>0<32E3|y>>>0>65E3|(w>>>0<29E3|x>>>0>34E3))break f;if(v>>>0<59E3|w>>>0>31E3|(u>>>0<14E3|v>>>0>61E3))break f;if(t>>>0<5E3|u>>>0>16E3)break f;if(t>>>0<7001)break c}b=f+80|0;Mk(b,1,5,A);Mk(b,2,5,z);Mk(b,3,5,y);Mk(b,4,5,x);Mk(b,5,5,w);Mk(b,6,5,v);Mk(b,7,5,u);Mk(b,8,5,t);zr(a, +b,64930);break c}g:{if(K[a+654|0])break g;J[f+56>>2]=w;e=f- -64|0;J[e>>2]=u;J[f+72>>2]=A;J[f+60>>2]=v;c=J[f+60>>2];J[f+8>>2]=J[f+56>>2];J[f+12>>2]=c;J[f+68>>2]=t;c=J[e+4>>2];J[f+16>>2]=J[e>>2];J[f+20>>2]=c;J[f+76>>2]=z;c=J[f+76>>2];J[f+24>>2]=J[f+72>>2];J[f+28>>2]=c;J[f+52>>2]=x;J[f+48>>2]=y;c=J[f+52>>2];J[f>>2]=J[f+48>>2];J[f+4>>2]=c;c=0;j=fc-32|0;fc=j;e=J[f+28>>2];J[j+24>>2]=J[f+24>>2];J[j+28>>2]=e;e=J[f+20>>2];J[j+16>>2]=J[f+16>>2];J[j+20>>2]=e;e=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=e;e=J[f+ +4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=e;L=1;h:{i:{j:{k:{l:{r=J[j>>2];if(r>>>0>1E5)break l;p=J[j+4>>2];if((p|0)<0|(p|0)>(1E5-r|0))break l;s=J[j+8>>2];if(s>>>0>1E5)break l;q=J[j+12>>2];if((q|0)<0|(q|0)>(1E5-s|0))break l;n=J[j+16>>2];if(n>>>0>1E5)break l;k=J[j+20>>2];if((k|0)<0|(k|0)>(1E5-n|0))break l;C=J[j+24>>2];if(C>>>0>1E5)break l;m=J[j+28>>2];if((m|0)<5|(m|0)>(1E5-C|0))break l;M=p-k|0;D=s-n|0;e=(n|0)==(s|0);h=0;m:{n:{if(e)break n;h=0;if((k|0)==(p|0))break n;i=2;d=V(+(D|0)*+(M|0)/7+.5);if(!(d<=2147483647)| +!(d>=-2147483648))break m;h=~~d;if(R(d)<2147483648)break n;h=-2147483648}N=r-n|0;o=q-k|0;l=(n|0)==(r|0);o:{if(l|(k|0)==(q|0))break o;i=2;d=V(+(N|0)*+(o|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break o}c=-2147483648}O=m-k|0;g=0;p:{if(e)break p;g=0;if((k|0)==(m|0))break p;i=2;d=V(+(D|0)*+(O|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break p;g=-2147483648}D=C-n|0;q:{if((k|0)==(q|0)|(n|0)==(C|0))break q;i=2;d=V(+(o|0)*+(D|0)/ +7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){H=~~d;break q}H=-2147483648}if((g|0)==(H|0))break l;o=h-c|0;e=m;i=e;h=(c|0)==(h|0);c=0;r:{if(h)break r;d=V(+(e|0)*+(o|0)/+(g-H|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648))break l;c=~~d;if(R(d)<2147483648)break r;c=-2147483648}e=c;if((i|0)>=(e|0))break l;c=0;g=0;s:{if((k|0)==(p|0))break s;g=0;if((n|0)==(C|0))break s;i=2;d=V(+(M|0)*+(D|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break s;g=-2147483648}t:{if((k| +0)==(m|0)|l)break t;i=2;d=V(+(N|0)*+(O|0)/7+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break t}c=-2147483648}if((c|0)==(g|0))break l;l=0;u:{if(h)break u;d=V(+(m|0)*+(o|0)/+(g-c|0)+.5);if(!(d<=2147483647)|!(d>=-2147483648))break l;l=~~d;if(R(d)<2147483648)break u;l=-2147483648}i=1;if((m|0)>=(l|0))break m;E=+(l|0);F=V(1E10/E+.5);c=F>=-2147483648;G=+(e|0);d=V(1E10/G+.5);e=d>=-2147483648;if(R(F)<2147483648)g=~~F;else g=-2147483648;g=F<=2147483647?c?g:0:0;if(R(d)<2147483648)c= +~~d;else c=-2147483648;e=g+(d<=2147483647?e?c:0:0)|0;d=V(1E10/+(m|0)+.5);c=d>=-2147483648;if(R(d)<2147483648)g=~~d;else g=-2147483648;h=(d<=2147483647?c?g:0:0)-e|0;if((h|0)<=0)break m;c=0;e=0;v:{if(!r)break v;d=V(+(r|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break v;e=-2147483648}J[f+80>>2]=e;w:{if(!p)break w;d=V(+(p|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break w}c=-2147483648}J[f+84>>2]=c;c=0;e=p+r|0;g=0;x:{if((e| +0)==1E5)break x;d=V(+(1E5-e|0)*1E5/G+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;g=~~d;if(R(d)<2147483648)break x;g=-2147483648}J[f+88>>2]=g;y:{if(!s)break y;d=V(+(s|0)*1E5/E+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break y}c=-2147483648}J[f+92>>2]=c;c=0;e=0;z:{if(!q)break z;d=V(+(q|0)*1E5/E+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break z;e=-2147483648}J[f+96>>2]=e;e=q+s|0;A:{if((e|0)==1E5)break A;d=V(+(1E5-e|0)*1E5/E+.5); +if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break A}c=-2147483648}J[f+100>>2]=c;c=0;e=0;B:{if(!n)break B;d=V(+(n|0)*+(h|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break B;e=-2147483648}J[f+104>>2]=e;C:{if(!k)break C;d=V(+(k|0)*+(h|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break m;if(R(d)<2147483648){c=~~d;break C}c=-2147483648}J[f+108>>2]=c;c=k+n|0;e=0;D:{if((c|0)==1E5)break D;d=V(+(1E5-c|0)*+(h|0)/1E5+.5);if(!(d<=2147483647)| +!(d>=-2147483648))break m;e=~~d;if(R(d)<2147483648)break D;e=-2147483648}J[f+112>>2]=e;i=0}break k}i=1}switch(i|0){case 0:break h;case 1:break i;default:break j}}Ld(a,61576);B()}fd(a,61303);L=0}fc=j+32|0;if(!L)break g;if(!yB(f+44|0,J[f+84>>2],32768))break a;c=J[f+44>>2];if((c|0)<0|(c|0)>32768)break a;if(!yB(f+40|0,J[f+96>>2],32768))break a;c=J[f+40>>2];if((c|0)<0|(c|0)>32768)break a;if(!yB(f+36|0,J[f+108>>2],32768))break a;c=J[f+36>>2];if((c|0)<0|(c|0)>32768)break a;i=J[f+40>>2];h=J[f+44>>2];e=i+ +(h+c|0)|0;if((e|0)>32769)break a;g=-1;E:{if((e|0)!=32769){g=1;if((e|0)>32767)break E}if(!((i|0)<(h|0)|(c|0)>(i|0))){i=i+g|0;J[f+40>>2]=i;break E}if(!((i|0)>(h|0)|(c|0)>(h|0))){h=h+g|0;J[f+44>>2]=h;break E}c=c+g|0;J[f+36>>2]=c}if(((i+h|0)+c|0)!=32768)break b;I[a+658>>1]=i;I[a+656>>1]=h}F:{if(!a|!b)break F;if(!OI(a,A,z,y,x,w,v,u,t))break F;J[b+156>>2]=t;J[b+152>>2]=u;J[b+148>>2]=v;J[b+144>>2]=w;J[b+140>>2]=x;J[b+136>>2]=y;J[b+132>>2]=z;J[b+128>>2]=A;J[b+8>>2]=J[b+8>>2]|4}}fc=f+368|0;return}Ld(a,63687); +B()}Ld(a,65070);B()}Ld(a,65245);B()}function ID(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;k=fc-32|0;fc=k;a:{b:{c:{if(!b)break c;i=J[a+16>>2];if(i)f=K[i+2912|0]!=0;else f=0;t=J[b+8>>2];if(!(t?(t|0)!=1E3:0)){c=O[a+672>>3]*+J[b+20>>2];d:{if(c<4294967296&c>=0){a=~~c>>>0;break d}a=0}b=J[b+12>>2];if(f)d=b<<16&16711680|(b>>>16&255|(b&65280|a<<24));else d=b|a<<24;J[k+4>>2]=d;if(!(!i|!K[i+2913|0])){H[k+24|0]=0;H[k+20|0]=0;H[k+31|0]=0;c=0;a=k+4|0;b=J[a>>2];g=b>>> +16|0;d=(f?g:b)&255;p=b>>>8|0;i=p&255;h=d>>>0>i>>>0?d:i;j=f?b:g;g=j&255;b=g>>>0>>0?h:g;l=d>>>0>>0?d:i;l=g>>>0>l>>>0?l:g;e=+(b+l|0)/255;o=e*.5;if((b|0)!=(l|0)){c=+((b-l&255)>>>0)/255;m=c/(o<.5?e:2-e);e=c*1530;r=+(b-g|0)/e;u=+(b-i|0)/e;c=r-u;e:{if((b|0)==(d|0))break e;e=+(b-d|0)/e;c=e+.3333333333333333-r;if((b|0)==(p&255))break e;c=0;if(h>>>0>(j&255)>>>0)break e;c=u+.6666666666666666-e}c=c<0?c+1:c;r=(c>1?c+-1:c)*255;c=m*255}e=r<=0?0:r;f:{if(e<4294967296&e>=0){b=~~e>>>0;break f}b=0}H[k+24|0]=b; +c=c<=0?0:c;g:{if(c<4294967296&c>=0){b=~~c>>>0;break g}b=0}H[k+31|0]=b;c=o*255;c=c<=0?0:c;h:{if(c<4294967296&c>=0){H[k+20|0]=~~c>>>0;break h}H[k+20|0]=0}b=(P(K[k+20|0],197)>>>0)/255^-1;H[k+20|0]=b;i=a;d=K[k+24|0];a=b&255;g=K[k+7|0];b=K[k+31|0];i:{if(!b){b=a;d=a;break i}c=+(b>>>0)/255;m=+(d>>>0)/255;e=+(a>>>0)/255;j:{if(e<.5){c=e*(c+1);break j}c=e+c-c*e}e=e+e-c;o=m+.3333333333333333;r=o>1?o+-1:o;k:{if(r<0){o=(c-e)*6*r+e;break k}o=c;if(r<.5)break k;o=e}r=o;u=m>1?m+-1:m;l:{if(u<0){o=(c-e)*6*u+e;break l}o= +c;if(u<.5)break l;o=e}m=m+-.6666666666666666;m=m<0?m+1:m;m=m>1?m+-1:m;m:{if(m<0){c=(c-e)*6*m+e;break m}if(m<.5)break m;c=e}e=o*255;c=c*255;c=c<=0?0:c;n:{if(c<4294967296&c>=0){a=~~c>>>0;break n}a=0}c=r*255;e=e<=0?0:e;o:{if(e<4294967296&e>=0){b=~~e>>>0;break o}b=0}c=c<=0?0:c;if(c<4294967296&c>=0){d=~~c>>>0;break i}d=0}J[i>>2]=b<<8|(f?a:d)|(f?d:a)<<16|g<<24;d=J[k+4>>2]}g=vc(12);J[699344]=0;J[g+8>>2]=d;J[g>>2]=349344;J[g+4>>2]=0;a=J[699344];J[699344]=0;if((a|0)!=1)break c;break a}p:{q:{r:{s:{t:{if(!(t- +2001>>>0<9|t-6E3>>>0<8)){if((t|0)!=4009)break r;c=O[a+672>>3];e=c*+J[b+20>>2];if(!(e<4294967296&e>=0))break t;a=~~e>>>0;break s}c=O[a+672>>3];e=c*+J[b+20>>2];u:{if(e<4294967296&e>=0){d=~~e>>>0;break u}d=0}i=J[b+12>>2];v:{if(!f){h=i|d<<24;d=J[b+16>>2];c=c*+J[b+24>>2];w:{if(c<4294967296&c>=0){i=~~c>>>0;break w}i=0}d=d|i<<24;break v}g=J[b+16>>2];l=g&65280;h=i<<16&16711680|(i>>>16&255|(i&65280|d<<24));i=g<<16&16711680;d=g>>>16&255;c=c*+J[b+24>>2];x:{if(c<4294967296&c>=0){j=~~c>>>0;break x}j=0}d=i|(d| +(l|j<<24))}J[k+20>>2]=d;J[k+24>>2]=h;h=vc(336);J[k+12>>2]=1065353216;J[k+16>>2]=1065353216;J[k+4>>2]=0;J[k+8>>2]=0;c=O[b+112>>3];J[699344]=0;g=Tb(2222,h|0,k+4|0,k+24|0,k+20|0,Q(Q(c)),1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[g+332>>2]=1;xc(g+8|0,b+132|0,80);Pu(g+88|0,b+212|0);v=3;j=J[b+120>>2];d=J[b+124>>2]-j|0;i=d>>3;if((i|0)<=0)break p;p=d>>>1|0;l=vc(p);h=l;n=(d>>1)-4|0;q=(n>>>2|0)+1&7;if(q){d=0;while(1){J[h>>2]=-16777216;h=h+4|0;d=d+1|0;if((q|0)!=(d|0))continue;break}}if(n>>>0>=28){d= +l+(i<<2)|0;while(1){J[h+24>>2]=-16777216;J[h+28>>2]=-16777216;J[h+16>>2]=-16777216;J[h+20>>2]=-16777216;J[h+8>>2]=-16777216;J[h+12>>2]=-16777216;J[h>>2]=-16777216;J[h+4>>2]=-16777216;h=h+32|0;if((d|0)!=(h|0))continue;break}}p=vc(p);c=O[a+672>>3];h=0;if(f)while(1){f=h<<2;q=f+l|0;n=j+(h<<3)|0;a=J[n>>2];d=a>>>16&255|a&65280|a<<16&16711680;e=c*+(a>>>24|0);y:{if(e<4294967296&e>=0){a=~~e>>>0;break y}a=0}J[q>>2]=d|a<<24;N[f+p>>2]=+J[n+4>>2]*1.52587890625E-5;h=h+1|0;if((i|0)!=(h|0))continue;break q}while(1){f= +h<<2;q=f+l|0;n=j+(h<<3)|0;a=J[n>>2];d=a&16777215;e=c*+(a>>>24|0);z:{if(e<4294967296&e>=0){a=~~e>>>0;break z}a=0}J[q>>2]=d|a<<24;N[f+p>>2]=+J[n+4>>2]*1.52587890625E-5;h=h+1|0;if((i|0)!=(h|0))continue;break}break q}a=0}d=J[b+12>>2];A:{if(!f){a=d|a<<24;d=J[b+16>>2];c=c*+J[b+24>>2];B:{if(c<4294967296&c>=0){i=~~c>>>0;break B}i=0}f=d|i<<24;break A}f=J[b+16>>2];i=f&65280;a=d<<16&16711680|(d>>>16&255|(d&65280|a<<24));l=f<<16&16711680;d=f>>>16&255;c=c*+J[b+24>>2];C:{if(c<4294967296&c>=0){f=~~c>>>0;break C}f= +0}f=l|(d|(i|f<<24))}h=vc(64);J[699344]=0;g=l5(h);d=J[699344];J[699344]=0;if((d|0)!=1){J[g+24>>2]=f;J[g+20>>2]=a;U5(g+8|0,b+36|0);O[g+32>>3]=O[b+80>>3];O[g+40>>3]=O[b+88>>3];O[g+48>>3]=O[b+96>>3];O[g+56>>3]=O[b+104>>3];break c}break b}f=J[b+28>>2];g=vc(80);D:{if(f){J[699344]=0;ga(2224,g|0,f|0,4)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break D;break a}J[699344]=0;ga(2225,g|0,b+36|0,4)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break D;break a}wD(g,a+120|0);break c}J[g+272>>2]=J[g+268>>2];E:{if(!p|!l|(i|0)<= +0)break E;j=0;q=0;n=0;F:{d=i;h=g+268|0;s=J[h+8>>2];f=J[h+4>>2];if(d>>>0<=s-f>>3>>>0){G:{if(!d)break G;a=f;i=d&7;if(i)while(1){J[a>>2]=-16777216;J[a+4>>2]=0;a=a+8|0;j=j+1|0;if((i|0)!=(j|0))continue;break}f=(d<<3)+f|0;if((d-1&536870911)>>>0<7)break G;while(1){J[a+56>>2]=-16777216;J[a+60>>2]=0;J[a+48>>2]=-16777216;J[a+52>>2]=0;J[a+40>>2]=-16777216;J[a+44>>2]=0;J[a+32>>2]=-16777216;J[a+36>>2]=0;J[a+24>>2]=-16777216;J[a+28>>2]=0;J[a+16>>2]=-16777216;J[a+20>>2]=0;J[a+8>>2]=-16777216;J[a+12>>2]=0;J[a>>2]= +-16777216;J[a+4>>2]=0;a=a- -64|0;if((f|0)!=(a|0))continue;break}}J[h+4>>2]=f;break F}H:{i=J[h>>2];j=f-i>>3;a=j+d|0;if(a>>>0<536870912){i=s-i|0;s=i>>2;i=i>>>0>=2147483640?536870911:a>>>0>>0?s:a;if(i){if(i>>>0>=536870912)break H;n=vc(i<<3)}j=(j<<3)+n|0;a=j;s=d&7;if(s)while(1){J[a>>2]=-16777216;J[a+4>>2]=0;a=a+8|0;q=q+1|0;if((s|0)!=(q|0))continue;break}q=(d<<3)+j|0;if((d-1&536870911)>>>0>=7)while(1){J[a+56>>2]=-16777216;J[a+60>>2]=0;J[a+48>>2]=-16777216;J[a+52>>2]=0;J[a+40>>2]=-16777216;J[a+44>>2]= +0;J[a+32>>2]=-16777216;J[a+36>>2]=0;J[a+24>>2]=-16777216;J[a+28>>2]=0;J[a+16>>2]=-16777216;J[a+20>>2]=0;J[a+8>>2]=-16777216;J[a+12>>2]=0;J[a>>2]=-16777216;J[a+4>>2]=0;a=a- -64|0;if((q|0)!=(a|0))continue;break}a=J[h>>2];if((a|0)!=(f|0)){while(1){f=f-8|0;s=J[f+4>>2];j=j-8|0;J[j>>2]=J[f>>2];J[j+4>>2]=s;if((a|0)!=(f|0))continue;break}f=J[h>>2]}J[h+8>>2]=(i<<3)+n;J[h+4>>2]=q;J[h>>2]=j;if(f)uc(f);break F}Fg(h);B()}Pd();B()}f=J[g+268>>2];a=0;if((d|0)!=1){i=d&-2;h=0;while(1){j=f+(a<<3)|0;n=a<<2;J[j>>2]=J[n+ +l>>2];N[j+4>>2]=N[n+p>>2];j=a|1;n=f+(j<<3)|0;j=j<<2;J[n>>2]=J[j+l>>2];N[n+4>>2]=N[j+p>>2];a=a+2|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(d&1))break E;f=f+(a<<3)|0;a=a<<2;J[f>>2]=J[a+l>>2];N[f+4>>2]=N[a+p>>2]}uc(l);uc(p)}O[g+288>>3]=O[b+80>>3];O[g+296>>3]=O[b+88>>3];O[g+304>>3]=O[b+96>>3];O[g+312>>3]=O[b+104>>3];I:{J:switch(t-6E3|0){default:if((t|0)==2007)break I;break c;case 0:J[g+4>>2]=100;break c;case 1:J[g+4>>2]=5;break c;case 4:J[g+4>>2]=8;break c;case 2:J[g+4>>2]=6;break c;case 3:J[g+4>> +2]=7;break c;case 7:J[g+4>>2]=11;break c;case 6:J[g+4>>2]=10;break c;case 5:break J}v=9}J[g+4>>2]=v}fc=k+32|0;return g}a=Z()|0;uc(h);ba(a|0);B()}a=Z()|0;uc(g);ba(a|0);B()}function HK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;i=fc-32|0;fc=i;a:{if(!a|(b|0)<=0)break a;f=kc[J[663195]](36)|0;if(!f){J[i>>2]=5402;Hc(0,0,0,0,0,8,2,3,5402,0,0,0,32879,i);f=0;break a}J[f>>2]=0;J[f+4>>2]=0;J[f+32>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;h=kc[J[663195]](36)| +0;if(!h){J[i+16>>2]=5439;Hc(0,0,0,0,0,29,2,3,5439,0,0,0,32879,i+16|0);J[f+16>>2]=0;kc[J[663199]](f);f=0;break a}J[h+24>>2]=b;J[h+20>>2]=b;J[h+8>>2]=b;J[h+4>>2]=b;J[h+12>>2]=2;J[h>>2]=a;J[h+28>>2]=0;J[h+32>>2]=0;J[f+16>>2]=h;b=gL(0);J[f+12>>2]=b;if(b)b=Wr(J[663196]<<1);else b=0;J[f+24>>2]=-1;J[f+20>>2]=b;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=a}fc=i+32|0;if(f){h=f;b=0;b:{if(!f)break b;a=kc[J[663195]](128)|0;if(a){b=Ac(a,0,128);J[b+28>>2]=f;a=Wr(100);J[b+84>>2]=a;c:{if(!a)break c;d:{if(J[a+32>>2]|(J[a+12>> +2]&-2)==2)break d;J[a+12>>2]=5;a=J[a+28>>2];if(!a)break d;J[a+12>>2]=5}a=kc[J[663195]](128)|0;J[b+24>>2]=a;if(!a){a=J[b+84>>2];if(a){f=J[a+12>>2];e:{f:{g:{if((f|0)==3){f=J[a+16>>2];if(!f)break g;break f}if((f|0)==2)break e}f=J[a>>2];if(!f)break e}kc[J[663199]](f)}kc[J[663199]](a)}break c}J[a+108>>2]=-554844497;J[a+124>>2]=0;J[a+104>>2]=3296;J[a>>2]=3297;J[a+96>>2]=3298;J[a+20>>2]=3299;J[a+16>>2]=3300;J[a+12>>2]=3301;J[a+8>>2]=3302;J[a+4>>2]=3303;J[a+36>>2]=3304;J[a+32>>2]=3305;J[a+24>>2]=3306;J[a+ +100>>2]=3307;J[a+68>>2]=3308;J[a+64>>2]=3309;J[a+52>>2]=3310;J[a+48>>2]=3311;J[a+44>>2]=3312;J[a+40>>2]=3313;J[a+28>>2]=3314;J[a+92>>2]=3273;J[a+88>>2]=3273;J[a+84>>2]=3274;J[a+80>>2]=3315;J[a+76>>2]=3316;J[b+32>>2]=0;J[a+56>>2]=3322;J[b+36>>2]=0;J[a+120>>2]=3323;J[a+116>>2]=3324;J[a+60>>2]=3325;J[b+44>>2]=3317;J[b+40>>2]=3318;J[b+48>>2]=J[a+68>>2];J[a+72>>2]=3326;J[a+68>>2]=3326;J[b+52>>2]=J[a+100>>2];J[a+100>>2]=3327;J[b+64>>2]=0;J[b+68>>2]=0;J[b>>2]=0;h:{i:{g=J[J[b+28>>2]+16>>2];j:{if(!(!g|J[g+ +32>>2])){a=J[g+8>>2];if(!((a|0)==J[g+24>>2]|a>>>0>2147483646))J[g+24>>2]=a;a=J[g+20>>2];f=J[g+4>>2];if(!((a|0)==(f|0)|f>>>0>2147483646)){J[g+20>>2]=f;a=f}if(a>>>0>3)break j}if(!(J[h+28>>2]|!J[h+4>>2])){CC(h,4);g=J[J[b+28>>2]+16>>2]}if(!g)break i}if(J[g+32>>2])break i;a=J[g+8>>2];if(!((a|0)==J[g+24>>2]|a>>>0>2147483646))J[g+24>>2]=a;a=J[g+20>>2];f=J[g+4>>2];if(!((a|0)==(f|0)|f>>>0>2147483646)){J[g+20>>2]=f;a=f}f=4;if(a>>>0<4)break i;a=$0(J[b+24>>2],J[g>>2],4,c);break h}f=0;a=$0(J[b+24>>2],0,0,c)}J[b+ +60>>2]=f;J[b+56>>2]=0;J[b+20>>2]=a;if(!a){kc[J[663297]](J[693366],36055,0);a=J[b+84>>2];if(a){f=J[a+12>>2];k:{l:{m:{if((f|0)==3){f=J[a+16>>2];if(!f)break m;break l}if((f|0)==2)break k}f=J[a>>2];if(!f)break k}kc[J[663199]](f)}kc[J[663199]](a)}kc[J[663199]](J[b+24>>2]);kc[J[663199]](b);b=0;break b}J[a+364>>2]=1;J[a+280>>2]=1;J[a+272>>2]=b;J[a+436>>2]=5;J[b+12>>2]=2;J[a+308>>2]=1;J[b+88>>2]=J[a+296>>2];break b}kc[J[663199]](b)}kc[J[663297]](J[693366],36055,0);b=0}g=b;if(!g){Vn(h);return 0}J[g+12>>2]= +J[g+12>>2]|1;h=fc-32|0;fc=h;n:{if(!g)break n;J[g+96>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;f=e|65536;J[g+120>>2]=f;o:{a=J[g+84>>2];if(a)break o;a=Wr(100);J[g+84>>2]=a;if(a)break o;kc[J[663297]](J[693366],36089,0);break n}p:{if(J[a+32>>2]|(J[a+12>>2]&-2)==2)break p;J[a+12>>2]=5;a=J[a+28>>2];if(!a)break p;J[a+12>>2]=5}q:{a=J[g+24>>2];if(a)break q;a=kc[J[663195]](128)|0;J[g+24>>2]=a;if(a)break q;kc[J[663297]](J[693366],36089,0);break n}J[a+108>>2]=-554844497;J[a+124>>2]=0;J[a+104>>2]=3296;J[a>>2]=3297;J[a+96>> +2]=3298;J[a+20>>2]=3299;J[a+16>>2]=3300;J[a+12>>2]=3301;J[a+8>>2]=3302;J[a+4>>2]=3303;J[a+36>>2]=3304;J[a+32>>2]=3305;J[a+24>>2]=3306;J[a+100>>2]=3307;J[a+68>>2]=3308;J[a+64>>2]=3309;J[a+52>>2]=3310;J[a+48>>2]=3311;J[a+44>>2]=3312;J[a+40>>2]=3313;J[a+28>>2]=3314;J[a+92>>2]=3273;J[a+88>>2]=3273;J[a+84>>2]=3274;J[a+80>>2]=3315;J[a+76>>2]=3316;J[g+32>>2]=0;J[a+56>>2]=3322;J[g+36>>2]=0;J[a+120>>2]=3323;J[a+116>>2]=3324;J[a+60>>2]=3325;J[g+44>>2]=3317;J[g+40>>2]=3318;J[g+48>>2]=J[a+68>>2];J[a+72>>2]=3326; +J[a+68>>2]=3326;J[g+52>>2]=J[a+100>>2];J[a+100>>2]=3327;J[g+64>>2]=0;J[g+68>>2]=0;J[g>>2]=0;a=J[g+20>>2];b=J[a+296>>2];i=J[g+88>>2];r:{if(i){if(b){if((b|0)==(i|0))break r;Wn(i);a=J[g+20>>2];J[g+88>>2]=J[a+296>>2];break r}J[a+296>>2]=i;break r}if(!b){b=0;s:{if(!K[2773432]){a=Dc(4);J[693359]=a;if(!a)break s;H[2773432]=1}a=kc[J[663195]](32)|0;if(!a)break s;J[a+28>>2]=0;J[a>>2]=1;J[a+8>>2]=128;J[a+12>>2]=0;i=kc[J[663195]](2560)|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+4>>2]=i;if(i){Ac(i,0,2560);J[a+24>>2]=0;b= +a;break s}kc[J[663199]](a)}a=J[g+20>>2];J[a+296>>2]=b}J[g+88>>2]=b}J[a+364>>2]=1;J[a+280>>2]=1;J[a+272>>2]=g;J[a+436>>2]=5;J[a+308>>2]=1;if(e&16)J[g+8>>2]=1;b=0;if(a){e=1;t:{if(!(f&1)){e=0;break t}J[a+360>>2]=J[a+360>>2]|1;f=f-1|0}J[a+288>>2]=e;if(f&4){J[a+360>>2]=J[a+360>>2]|4;f=f-4|0;b=2}J[a+276>>2]=b;if(f&8){J[a+276>>2]=b|4;J[a+360>>2]=J[a+360>>2]|8;f=f-8|0}if(f&2){J[a+360>>2]=J[a+360>>2]|2;f=f-2|0;b=1}else b=0;J[a+16>>2]=b;if(f&128){J[a+360>>2]=J[a+360>>2]|128;f=f-128|0;b=1}else b=0;J[a+268>> +2]=b;if(f&256){J[J[a>>2]+72>>2]=3319;J[a+360>>2]=J[a+360>>2]|256;f=f-256|0;b=0}else b=1;J[a+208>>2]=b;u:{if(f&16){J[a+104>>2]=1;if(f&64)J[a+116>>2]=0;if(f&32)J[a+112>>2]=0;J[a+360>>2]=J[a+360>>2]|16;f=f-16|0;break u}J[a+104>>2]=0}if(f&64){J[J[a>>2]+84>>2]=0;f=f+-64|0}if(f&32){b=J[a>>2];J[b+88>>2]=0;J[b+92>>2]=0;f=f-32|0}if(f&512){b=J[a>>2];J[b+116>>2]=0;J[b+120>>2]=0;J[b+60>>2]=3294;J[b+56>>2]=3295;J[b+108>>2]=1;J[a+360>>2]=J[a+360>>2]|512;f=f-512|0}if(f&4096){J[a+360>>2]=J[a+360>>2]|4096;f=f-4096| +0;b=0}else b=1;J[a+364>>2]=b;if(f&16384){J[J[a>>2]+100>>2]=0;J[a+360>>2]=J[a+360>>2]|16384;f=f-16384|0}if(f&8192){J[a+360>>2]=J[a+360>>2]|8192;f=f+-8192|0}if(f&2048){J[a+360>>2]=J[a+360>>2]|2048;f=f-2048|0}if(f&8388608){J[a+360>>2]=J[a+360>>2]|8388608;f=f-8388608|0}if(f&65536){J[a+360>>2]=J[a+360>>2]|65536;f=f-65536|0}if(f&131072){J[a+360>>2]=J[a+360>>2]|131072;f=f-131072|0}if(f&262144){J[a+360>>2]=J[a+360>>2]|262144;f=f-262144|0}v:{if(!(f&524288))break v;J[a+360>>2]=J[a+360>>2]|524288;f=f-524288| +0;b=J[a+296>>2];if(!b)break v;if(b)J[b+28>>2]=0}if(f&1048576){J[a+360>>2]=J[a+360>>2]|1048576;f=f+-1048576|0}if(f&2097152){J[a+360>>2]=J[a+360>>2]|2097152;f=f-2097152|0}if(f&4194304)J[a+360>>2]=J[a+360>>2]|4194304;J[a+280>>2]=1}w:{if(!d)break w;b=ug(d);if(!b)break w;a=J[g+20>>2];d=J[a+36>>2];x:{if(d){UK(a,d,b,-1);a=a+256|0;break x}if(J[a+172>>2]==-1?J[a+212>>2]:0)break w;J[a+84>>2]=1;J[h>>2]=0;Hc(0,0,0,a,0,1,1,3,0,0,0,0,30803,h);J[a+12>>2]=0;if(J[a+288>>2])break w;a=a+212|0}J[a>>2]=1}y:{if(!c)break y; +a=J[J[g+20>>2]+36>>2];if(!a|J[a+4>>2])break y;a=c;while(1){b=a;a=a+1|0;if(K[b|0])continue;break}a=0;b=b-c|0;z:{if((b|0)<0)break z;d=kc[J[663198]](b+1|0)|0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break z}a=xc(d,c,b);H[b+a|0]=0}J[J[J[g+20>>2]+36>>2]+4>>2]=a}J[g+4>>2]=0}fc=h+32|0}return g|0}function Tmb(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,u=0,v=0,w=0,x=0;g=fc+-64|0;fc=g;J[g+40>>2]=0;f=K[a+48|0];a:{if(!(J[a+536>>2]|!f)){e=8;break a}e=J[a+ +540>>2];d=J[e>>2];if(!d){h=J[a>>2];J[e+4>>2]=1675;d=he(h,552,g+40|0);J[J[a+540>>2]>>2]=d;e=64;if(J[g+40>>2])break a;J[d>>2]=h;if(!f)J[d+548>>2]=J[J[a+532>>2]+3088>>2];e=d+168|0;J[e>>2]=0;J[e+4>>2]=0;J[d+160>>2]=0;J[d+164>>2]=0;J[d+152>>2]=0;J[d+156>>2]=0;J[d+144>>2]=1676;J[d+148>>2]=1677;J[d+168>>2]=d+4;J[d+164>>2]=h;J[d+156>>2]=1678}J[d+176>>2]=a;J[d+172>>2]=a;h=J[a+4>>2];m=H[J[h+128>>2]+56|0];e=J[h+96>>2];n=K[e+32|0];J[g+12>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+36>>2]=b;J[g+24>>2]=0;J[g+32>>2]=b? +b+c|0:0;J[g+28>>2]=b;J[g+4>>2]=0;J[g+8>>2]=0;b=J[a+8>>2];j=K[b+161|0];l=K[b+160|0];b:{if(!l){c=1024;b=1024;break b}c=(J[b+168>>2]+32|0)/64|0;b=(J[b+164>>2]+32|0)/64|0}J[g+12>>2]=c;J[g>>2]=b;i=f?i:K[h+732|0];H[d+8|0]=f;H[d+9|0]=i;f=(l|0)!=0;J[d+12>>2]=f;if(!(!j|(n|(m|0)>=0?m:0)))J[d+12>>2]=f|2;J[d+188>>2]=J[e+36>>2];J[d+192>>2]=J[e+40>>2];J[d+196>>2]=J[e+44>>2];J[d+200>>2]=J[e+48>>2];J[d+204>>2]=J[e+52>>2];J[d+208>>2]=J[e+56>>2];J[d+212>>2]=J[e+60>>2];J[d+216>>2]=J[e- -64>>2];f=L[J[a+4>>2]+68>>1]; +J[d+132>>2]=f;if(j){e=36;if((b|0)<=0|(c|0)<=0)break a;e=164;a=f<<16;if(a>>16<0)break a;a=Cd(131072E3,a);if((a|0)<(b|0)|(a|0)<(c|0))break a;a=J[d+176>>2]}J[g+48>>2]=0;J[g+52>>2]=0;e=0;J[g+44>>2]=0;j=J[d+140>>2];b=J[d+136>>2];J[g+60>>2]=0;J[g+56>>2]=0;J[d+4>>2]=0;c=J[a+536>>2];if((c|0)!=J[d+180>>2]){J[d+180>>2]=c;e=1}c:{d:{if(!(K[d+8|0]|!J[J[a+532>>2]+3112>>2])){f=J[d+548>>2];h=J[a+4>>2];h=kc[J[J[h+548>>2]+40>>2]](h,g+60|0,0,g+56|0,0)|0;J[d+4>>2]=h;if(h)break d;if(kc[J[f+12>>2]](c+556|0,J[c+548>>2], +J[g+60>>2],J[g+56>>2])|0){kc[J[f+4>>2]](J[a+532>>2],c,J[g+60>>2],J[g+56>>2])|0;e=1}f=J[c+560>>2];H[d+93|0]=0;J[d+96>>2]=f;J[d+120>>2]=J[c+548>>2];J[d+124>>2]=J[g+60>>2];J[d+128>>2]=J[g+56>>2]}f=L[J[J[a+4>>2]+88>>2]+14>>1]<<16;if((f|0)!=J[d+88>>2]){J[d+88>>2]=f;e=1}c=J[d+12>>2];H[d+184|0]=c&1;e:{f:{g:{if(!dd(g,d+16|0,16)){m=d+186|0;c=c&2;if((c|0)!=K[d+186|0])break g;if(e)break f;break e}e=J[g+4>>2];J[d+16>>2]=J[g>>2];J[d+20>>2]=e;e=J[g+12>>2];J[d+24>>2]=J[g+8>>2];J[d+28>>2]=e;J[d+32>>2]=0;J[d+36>> +2]=0;e=J[g+4>>2];J[d+40>>2]=J[g>>2];J[d+44>>2]=e;e=J[g+12>>2];J[d+48>>2]=J[g+8>>2];J[d+52>>2]=e;e=J[g+20>>2];J[d+56>>2]=J[g+16>>2];J[d+60>>2]=e;J[d+72>>2]=0;J[d+76>>2]=65536;J[d+64>>2]=65536;J[d+68>>2]=0;m=d+186|0;c=c&2;if((c|0)==K[d+186|0])break f}H[m|0]=c>>>1}c=J[J[a+536>>2]+400>>2]<<16;J[d+220>>2]=c;e=J[d+132>>2];n=e?e:1E3;e=65536E3/(n|0)|0;if((c|0)<=0){c=Cd(4915200,e);J[d+220>>2]=c}h=d+188|0;f=(f|0)<=262144?262144:f;h:{if((b|0)>0){c=n<<16;if((Cd(c,f)|0)>=(b|0))b=Cd(c,f);J[d+228>>2]=0;if(!b|(e| +0)<655)break h;J[d+228>>2]=(b|0)/2;break h}h7(e,f,c,d+228|0,0,K[d+186|0],h)}b=J[J[a+536>>2]+396>>2];i:{if(b<<16>0){a=4915200;if(J[d+220>>2]>b<<17)break i}a=7208960}a=Cd(a,e);J[d+224>>2]=a;h7(e,f,a,d+232|0,j,K[d+186|0],h);a=1;a=J[d+228>>2]?a:J[d+232>>2]!=0;h=0;H[d+236|0]=0;H[d+185|0]=a;a=J[d+176>>2];q=Ac(d+244|0,0,304);J[d+240>>2]=J[d+52>>2];w=d,x=Cd(J[J[a+536>>2]+384>>2],65536E3),J[w+252>>2]=x;f=J[a+536>>2];J[d+256>>2]=J[f+388>>2]<<16;J[d+260>>2]=J[f+392>>2]<<16;j=f+192|0;r=K[f+191|0];n=K[f+190|0]; +l=K[f+189|0];b=K[f+188|0];j:{k:{if(J[f+524>>2]==1){l:switch(b|0){case 4:if(J[j>>2]<<16>-7864321|J[f+196>>2]<<16>-7864321|(J[f+200>>2]<<16<57671681|J[f+204>>2]<<16<57671681))break k;break;case 0:break l;default:break k}J[d+296>>2]=-7864321;a=Wc(-7864321,J[d+240>>2]);J[d+288>>2]=49;b=J[d+240>>2];J[d+304>>2]=b;J[d+300>>2]=(a+32768&-65536)-32768;a=(J[d+232>>2]<<1)+57671681|0;J[d+276>>2]=a;a=Wc(a,b);J[d+268>>2]=50;H[d+249|0]=1;J[d+284>>2]=J[d+240>>2];J[d+280>>2]=a+32768&-65536|32768;break e}if(!b)break j}c= +J[d+244>>2];a=P(c,20)+d|0;h=J[f+192>>2]<<16;J[a+308>>2]=h;e=J[f+196>>2]<<16;J[a+312>>2]=e;h=e-h|0;m:{if((h|0)<0){h=0;break m}J[a+316>>2]=e;H[a+324|0]=1;c=c+1|0;J[d+244>>2]=c}e=2;if(b>>>0<=2)break j;while(1){a=P(c,20)+d|0;k=e<<2;i=J[k+j>>2]<<16;J[a+308>>2]=i;k=J[j+(k|4)>>2]<<16;J[a+312>>2]=k;o=k-i|0;if((o|0)>=0){p=k;k=J[d+232>>2]<<1;J[a+312>>2]=p+k;i=i+k|0;J[a+308>>2]=i;J[a+316>>2]=i;H[a+324|0]=0;c=c+1|0;J[d+244>>2]=c;h=(h|0)<(o|0)?o:h}e=e+2|0;if(b>>>0>e>>>0)continue;break}}if(l){c=f+248|0;b=J[q>> +2];e=0;while(1){a=P(b,20)+d|0;j=e<<2;i=J[j+c>>2]<<16;J[a+308>>2]=i;j=J[c+(j|4)>>2]<<16;J[a+312>>2]=j;i=j-i|0;if((i|0)>=0){J[a+316>>2]=j;H[a+324|0]=1;b=b+1|0;J[d+244>>2]=b;h=(h|0)<(i|0)?i:h}e=e+2|0;if(l>>>0>e>>>0)continue;break}}j=Cd(65536,J[d+240>>2]);o=J[d+244>>2];if(o){t=f+344|0;u=f+288|0;l=0;v=n>>>0<3;while(1){a=P(l,20)+d|0;i=a;e=J[a+316>>2];n:{if(K[a+324|0]){a=0;c=2147483647;o:{if(!r)break o;while(1){k=J[(a<<2|4)+t>>2]<<16;p=e-k|0;b=p>>31;p:{b=(b^p)-b|0;if((b|0)>=(c|0)|(b|0)>=(j|0))break p;J[i+ +316>>2]=k;c=b;if((e|0)!=(k|0))break p;c=0;break o}a=a+2|0;if(r>>>0>a>>>0)continue;break}}if(n>>>0<2)break n;b=J[f+292>>2]<<16;e=e-b|0;a=e>>31;a=(a^e)-a|0;if((a|0)>=(c|0)|(a|0)>=(j|0))break n;J[i+316>>2]=b;break n}if(v)break n;p=J[d+232>>2]<<1;a=2;c=2147483647;while(1){k=(J[(a<<2)+u>>2]<<16)+p|0;s=e-k|0;b=s>>31;b=(b^s)-b|0;if(!((b|0)>=(c|0)|(b|0)>=(j|0))){J[i+316>>2]=k;c=b;if((e|0)==(k|0))break n}a=a+2|0;if(n>>>0>a>>>0)continue;break}}l=l+1|0;if((o|0)!=(l|0))continue;break}}a=J[d+252>>2];q:{if((h| +0)<=0)break q;if((Cd(65536,h)|0)>=(a|0)){a=J[d+252>>2];break q}a=Cd(65536,h);J[d+252>>2]=a}b=J[d+240>>2];if((b|0)<(a|0)){H[d+248|0]=1;a=Od(39322,b,a);J[d+264>>2]=(a|0)<6555?32767:39322-a|0}if(K[m|0])J[d+264>>2]=0;if(!J[q>>2])break e;c=d+240|0;a=0;while(1){b=c+P(a,20)|0;e=K[b+84|0];i=b;k=Wc(J[b+76>>2],J[d+240>>2]);b=J[d+264>>2];J[i+80>>2]=(k+(e?0-b|0:b)|0)+32768&-65536;a=a+1|0;if(a>>>0>2])continue;break}}if(J[d+4>>2])break d;H[d+236|0]=0;J[d+160>>2]=0;a=K[d+185|0];jp(J[J[d+172>>2]+12>>2]); +b=g+24|0;c=d+144|0;e=g+48|0;f=g+44|0;Vu(d,b,c,e,0,0,0,f);if(J[d+4>>2])break d;if(!(!a|J[d+160>>2]>=0)){H[d+236|0]=1;J[d+160>>2]=0;jp(J[J[d+172>>2]+12>>2]);Vu(d,b,c,e,0,0,0,f);if(J[d+4>>2])break d}f=J[d+172>>2];a=J[f+20>>2];r:{if(!a)break r;s:{t:{b=L[a>>1];e=b<<16>>16;if((e|0)>=2){b=I[(J[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break t}b=0;if(e)break t;c=L[a+2>>1];break s}c=I[a+2>>1];if((c|0)!=(b|0))break s;I[a>>1]=e-1;break r}u:{if(c<<16>>16<2)break u;h=J[a+4>>2];m=h+(b<<3)|0;j=c&65535;h=h+(j<<3)|0;if(J[m>>2]!= +J[h-8>>2]|J[m+4>>2]!=J[h-4>>2]|K[(j+J[a+8>>2]|0)-1|0]!=1)break u;c=c-1|0;I[a+2>>1]=c}if((e|0)<=0)break r;i=b;b=(c<<16>>16)-1|0;if((i|0)==(b|0)){I[a+2>>1]=c-1;I[a>>1]=e-1;break r}I[(J[a+12>>2]+(e<<1)|0)-2>>1]=b}gy(J[f+12>>2]);if(!J[d+4>>2])break c}e=3;break a}a=J[g+44>>2];e=0;J[d+4>>2]=0;b=J[d+172>>2];if(K[b+48|0])break a;J[J[b+544>>2]>>2]=a+32768>>16}fc=g- -64|0;return e|0}function A9(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,w=0,x=0,y=0,z=Q(0),A=0;l= +fc-16|0;fc=l;a:{if(!a)break a;Df(a,l+12|0,l+8|0,l+4|0);e=J[l+4>>2];q=e-1|0;if(q>>>0>31|!(1<>2]!=1|(e|0)<=0)break b;c:{d:{if(e>>>0>16)break d;if(1<>2]:-1;y=a?J[a+40>>2]:0;c=xh(P(e,J[h+12>>2]),P(e,J[h+8>>2]),1);if(!c)break b;if(!(!c|!a|(a|0)==(c|0))){J[c+20>>2]=J[a+20>>2];J[c+24>>2]=J[a+ +24>>2]}z=Q(e|0);bv(c,z,z);a=c?J[c+12>>2]:-1;r=c?J[c+40>>2]:0;if(J[h+8>>2]<=0){b=c;break b}t=e&-2;s=e&1;d=a<<2;u=P(a,e);j=e-1|0;v=j&-4;m=j&3;w=e-2>>>0<3;while(1){o=r+(P(g,u)<<2)|0;b=J[h+12>>2];if((b|0)>0){x=y+(P(g,q)<<2)|0;f=0;while(1){if(J[x+(f>>>3&536870908)>>2]>>>(f^-1)&1){k=P(e,f);b=0;p=0;if(j)while(1){i=b+k|0;n=o+(i>>5<<2)|0;J[n>>2]=J[n>>2]|-2147483648>>>i;i=k+(b|1)|0;n=o+(i>>5<<2)|0;J[n>>2]=J[n>>2]|-2147483648>>>i;b=b+2|0;p=p+2|0;if((t|0)!=(p|0))continue;break}if(s){b=b+k|0;k=o+(b>>5<<2)|0;J[k>> +2]=J[k>>2]|-2147483648>>>b}b=J[h+12>>2]}f=f+1|0;if((f|0)<(b|0))continue;break}}e:{if(e>>>0<2)break e;f=0;b=1;if(!w)while(1){xc(o+(P(a,b)<<2)|0,o,d);xc(o+(P(a,b+1|0)<<2)|0,o,d);xc(o+(P(a,b+2|0)<<2)|0,o,d);xc(o+(P(a,b+3|0)<<2)|0,o,d);b=b+4|0;f=f+4|0;if((v|0)!=(f|0))continue;break}f=0;if(!m)break e;while(1){xc(o+(P(a,b)<<2)|0,o,d);b=b+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}g=g+1|0;if((g|0)>2])continue;break}b=c;break b}r=fc-16|0;fc=r;f:{if(!a)break f;Df(a,r+12|0,r+8|0,r+4|0);if(J[r+4>>2]!= +1|e>>>0>16)break f;c=a;if(!(1<>2]:-1;y=c?J[c+40>>2]:0;o=P(e,J[r+12>>2]);f=P(e,J[r+8>>2]);a=xh(o,f,1);if(!a)break f;if(!(!a|!c|(a|0)==(c|0))){J[a+20>>2]=J[c+20>>2];J[a+24>>2]=J[c+24>>2]}z=Q(e|0);bv(a,z,z);b=a?J[a+12>>2]:-1;t9(a?J[a+40>>2]:0,b,y,J[r+12>>2],J[r+8>>2],q,e);b=a}fc=r+16|0}fc=h+16|0;c=b;break a}q=xh(P(J[l+12>>2],b),P(J[l+8>>2],b),e);if(!q)break a;BE(q,a);if(!(!q|!a|(a|0)==(q|0))){J[q+20>>2]=J[a+20>>2];J[q+24>>2]=J[a+24>>2]}z=Q(b| +0);bv(q,z,z);y=a?J[a+40>>2]:0;r=a?J[a+12>>2]:-1;o=q?J[q+40>>2]:0;e=q?J[q+12>>2]:-1;g:{h:switch(J[l+4>>2]-2|0){case 30:if(J[l+8>>2]<=0)break g;v=b&-8;t=b&7;m=e<<2;w=P(b,e);s=b-1|0;x=s&-4;u=s&3;i=b-2>>>0<3;while(1){d=o+(P(h,w)<<2)|0;if(J[l+12>>2]>0){n=y+(P(h,r)<<2)|0;f=0;while(1){a=d+(P(b,f)<<2)|0;g=J[n+(f<<2)>>2];c=0;k=0;p=0;if(s>>>0>=7)while(1){j=k<<2;J[j+a>>2]=g;J[a+(j|4)>>2]=g;J[a+(j|8)>>2]=g;J[a+(j|12)>>2]=g;J[a+(j|16)>>2]=g;J[a+(j|20)>>2]=g;J[a+(j|24)>>2]=g;J[a+(j|28)>>2]=g;k=k+8|0;p=p+8|0;if((v| +0)!=(p|0))continue;break}if(t)while(1){J[a+(k<<2)>>2]=g;k=k+1|0;c=c+1|0;if((t|0)!=(c|0))continue;break}f=f+1|0;if((f|0)>2])continue;break}}c=0;a=1;if(!i)while(1){xc(d+(P(a,e)<<2)|0,d,m);xc(d+(P(e,a+1|0)<<2)|0,d,m);xc(d+(P(e,a+2|0)<<2)|0,d,m);xc(d+(P(e,a+3|0)<<2)|0,d,m);a=a+4|0;c=c+4|0;if((x|0)!=(c|0))continue;break}c=0;if(u)while(1){xc(d+(P(a,e)<<2)|0,d,m);a=a+1|0;c=c+1|0;if((u|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;case 14:if(J[l+8>>2]<=0)break g;v=b&-4; +t=b&3;g=e<<2;w=P(b,e);s=b-1|0;x=s&-4;u=s&3;i=b-2>>>0<3;while(1){d=o+(P(h,w)<<2)|0;n=J[l+12>>2];if((n|0)>0){A=y+(P(h,r)<<2)|0;f=0;while(1){k=d+(P(b,f)<<1)|0;j=L[((f<<1)+A^2)>>1];c=0;a=0;p=0;if(s>>>0>=3)while(1){m=a<<1;I[(m+k^2)>>1]=j;I[(k+(m|2)^2)>>1]=j;I[(k+(m|4)^2)>>1]=j;I[(k+(m|6)^2)>>1]=j;a=a+4|0;p=p+4|0;if((v|0)!=(p|0))continue;break}if(t)while(1){I[(k+(a<<1)^2)>>1]=j;a=a+1|0;c=c+1|0;if((t|0)!=(c|0))continue;break}f=f+1|0;if((n|0)!=(f|0))continue;break}}c=0;a=1;if(!i)while(1){xc(d+(P(a,e)<<2)| +0,d,g);xc(d+(P(e,a+1|0)<<2)|0,d,g);xc(d+(P(e,a+2|0)<<2)|0,d,g);xc(d+(P(e,a+3|0)<<2)|0,d,g);a=a+4|0;c=c+4|0;if((x|0)!=(c|0))continue;break}c=0;if(u)while(1){xc(d+(P(a,e)<<2)|0,d,g);a=a+1|0;c=c+1|0;if((u|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;case 6:if(J[l+8>>2]<=0)break g;u=b&-4;p=b&3;d=e<<2;v=P(b,e);t=b-1|0;w=t&-4;s=t&3;x=b-2>>>0<3;while(1){f=o+(P(h,v)<<2)|0;if(J[l+12>>2]>0){i=y+(P(h,r)<<2)|0;m=0;while(1){g=f+P(b,m)|0;j=K[i+m^3];k=0;a=0;c=0;if(t>>>0>=3)while(1){H[a+ +g^3]=j;H[g+(a|1)^3]=j;H[g+(a|2)^3]=j;H[g+(a|3)^3]=j;a=a+4|0;c=c+4|0;if((u|0)!=(c|0))continue;break}if(p)while(1){H[a+g^3]=j;a=a+1|0;k=k+1|0;if((p|0)!=(k|0))continue;break}m=m+1|0;if((m|0)>2])continue;break}}c=0;a=1;if(!x)while(1){xc(f+(P(a,e)<<2)|0,f,d);xc(f+(P(e,a+1|0)<<2)|0,f,d);xc(f+(P(e,a+2|0)<<2)|0,f,d);xc(f+(P(e,a+3|0)<<2)|0,f,d);a=a+4|0;c=c+4|0;if((w|0)!=(c|0))continue;break}c=0;if(s)while(1){xc(f+(P(a,e)<<2)|0,f,d);a=a+1|0;c=c+1|0;if((s|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;case 2:if(J[l+8>>2]<=0)break g;t=b&-2;s=b&1;g=e<<2;u=P(b,e);m=b-1|0;v=m&-4;p=m&3;w=b-2>>>0<3;while(1){d=o+(P(h,u)<<2)|0;if(J[l+12>>2]>0){x=y+(P(h,r)<<2)|0;f=0;while(1){k=J[x+(f>>>1&2147483644)>>2]>>>((f^-1)<<2)&15;j=P(b,f);a=0;c=0;if(m)while(1){i=a+j|0;n=d+(i>>3<<2)|0;i=i<<2;J[n>>2]=J[n>>2]&(-268435456>>>i^-1)|k<<(i&28^28);i=j+(a|1)|0;n=d+(i>>3<<2)|0;i=i<<2;J[n>>2]=J[n>>2]&(-268435456>>>i^-1)|k<<(i&28^28);a=a+2|0;c=c+2|0;if((t|0)!=(c|0))continue;break}if(s){a=a+j|0;c= +d+(a>>3<<2)|0;a=a<<2;J[c>>2]=J[c>>2]&(-268435456>>>a^-1)|k<<(a&28^28)}f=f+1|0;if((f|0)>2])continue;break}}c=0;a=1;if(!w)while(1){xc(d+(P(a,e)<<2)|0,d,g);xc(d+(P(e,a+1|0)<<2)|0,d,g);xc(d+(P(e,a+2|0)<<2)|0,d,g);xc(d+(P(e,a+3|0)<<2)|0,d,g);a=a+4|0;c=c+4|0;if((v|0)!=(c|0))continue;break}c=0;if(p)while(1){xc(d+(P(a,e)<<2)|0,d,g);a=a+1|0;c=c+1|0;if((p|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;case 0:if(J[l+8>>2]<=0)break g;t=b&-2;s=b&1;g=e<<2;u=P(b,e);m=b-1|0;v= +m&-4;p=m&3;w=b-2>>>0<3;while(1){d=o+(P(h,u)<<2)|0;if(J[l+12>>2]>0){x=y+(P(h,r)<<2)|0;f=0;while(1){k=J[x+(f>>>2&1073741820)>>2]>>>((f^-1)<<1)&3;j=P(b,f);a=0;c=0;if(m)while(1){i=a+j|0;n=d+(i>>4<<2)|0;i=i<<1;J[n>>2]=J[n>>2]&(-1073741824>>>i^-1)|k<<(i&30^30);i=j+(a|1)|0;n=d+(i>>4<<2)|0;i=i<<1;J[n>>2]=J[n>>2]&(-1073741824>>>i^-1)|k<<(i&30^30);a=a+2|0;c=c+2|0;if((t|0)!=(c|0))continue;break}if(s){a=a+j|0;c=d+(a>>4<<2)|0;a=a<<1;J[c>>2]=J[c>>2]&(-1073741824>>>a^-1)|k<<(a&30^30)}f=f+1|0;if((f|0)>2])continue; +break}}c=0;a=1;if(!w)while(1){xc(d+(P(a,e)<<2)|0,d,g);xc(d+(P(e,a+1|0)<<2)|0,d,g);xc(d+(P(e,a+2|0)<<2)|0,d,g);xc(d+(P(e,a+3|0)<<2)|0,d,g);a=a+4|0;c=c+4|0;if((v|0)!=(c|0))continue;break}c=0;if(p)while(1){xc(d+(P(a,e)<<2)|0,d,g);a=a+1|0;c=c+1|0;if((p|0)!=(c|0))continue;break}h=h+1|0;if((h|0)>2])continue;break}break g;default:break h}ae(226154,14,1,J[655074])}c=q}fc=l+16|0;return c}function W7a(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;f=fc-144|0; +fc=f;o=O[b+8>>3];p=O[b>>3];g=J[b+52>>2];a:{b:{c:{d:{e:{if(J[b+56>>2]==1){h=J[a+36>>2];l=J[a+40>>2]-h|0;i=(l|0)/72|0;j=(i|0)!=(g|0)?g:0;e=P(j,72)+h|0;k=O[e>>3]-p;q=k*k;k=O[e+8>>3]-o;if(Y(q+k*k)<=1E-7){J[b+52>>2]=j;O[e+8>>3]=o;O[e>>3]=p;O[e+16>>3]=O[b+16>>3];O[e+24>>3]=O[b+24>>3];O[e+32>>3]=O[b+32>>3];O[e+40>>3]=O[b+40>>3];a=J[b+60>>2];J[e+56>>2]=J[b+56>>2];J[e+60>>2]=a;a=J[b+52>>2];J[e+48>>2]=J[b+48>>2];J[e+52>>2]=a;c=J[b+64>>2];a=J[b+68>>2];if(a)J[a+4>>2]=J[a+4>>2]+1;J[e- -64>>2]=c;b=h+P(j,72)|0; +e=J[b+68>>2];J[b+68>>2]=a;if(!e)break b;a=J[e+4>>2];J[e+4>>2]=a-1;if(!a)break e;break b}U4(a+36|0,h+P(g,72)|0,b);e=J[b+52>>2];f:{if((i|0)<=(e|0))break f;j=i+(e^-1)|0;h=J[a+36>>2];m=i-e&3;if(m){g=0;while(1){e=e+1|0;n=h+P(e,72)|0;J[n+52>>2]=J[n+52>>2]+1;g=g+1|0;if((m|0)!=(g|0))continue;break}}if(j>>>0<=2)break f;while(1){g=h+P(e,72)|0;J[g+124>>2]=J[g+124>>2]+1;J[g+196>>2]=J[g+196>>2]+1;J[g+268>>2]=J[g+268>>2]+1;J[g+340>>2]=J[g+340>>2]+1;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(d){d=J[b+52>>2];d=J[a+ +36>>2]+P((d|0)!=(i|0)?d+1|0:0,72)|0;O[d+16>>3]=O[c+16>>3];O[d+24>>3]=O[c+24>>3];O[d+32>>3]=O[c+32>>3];O[d+40>>3]=O[c+40>>3]}e=J[a+88>>2];g=J[a+84>>2];if((e|0)!=(g|0))while(1){c=e;e=e-144|0;d=J[e+140>>2];g:{if(!d)break g;h=J[d+4>>2];J[d+4>>2]=h-1;if(h)break g;kc[J[J[d>>2]+8>>2]](d);Gc(d)}c=J[c-76>>2];h:{if(!c)break h;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break h;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((e|0)!=(g|0))continue;break}J[a+88>>2]=g;if((l|0)<0)break c;h=a+84|0;e=0;while(1){j=J[a+40>>2];c=e;g=J[a+36>>2]; +d=g+P(e,72)|0;O[f>>3]=O[d>>3];O[f+8>>3]=O[d+8>>3];O[f+16>>3]=O[d+16>>3];O[f+24>>3]=O[d+24>>3];O[f+32>>3]=O[d+32>>3];O[f+40>>3]=O[d+40>>3];e=J[d+60>>2];J[f+56>>2]=J[d+56>>2];J[f+60>>2]=e;e=J[d+52>>2];J[f+48>>2]=J[d+48>>2];J[f+52>>2]=e;J[f+64>>2]=J[d+64>>2];e=J[d+68>>2];J[f+68>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;d=(c|0)==(((j-g|0)/72|0)-1|0)?g:d+72|0;O[f+72>>3]=O[d>>3];O[f+80>>3]=O[d+8>>3];O[f+88>>3]=O[d+16>>3];O[f+96>>3]=O[d+24>>3];O[f+104>>3]=O[d+32>>3];O[f+112>>3]=O[d+40>>3];e=J[d+60>>2];J[f+128>>2]= +J[d+56>>2];J[f+132>>2]=e;e=J[d+52>>2];J[f+120>>2]=J[d+48>>2];J[f+124>>2]=e;J[f+136>>2]=J[d+64>>2];d=J[d+68>>2];J[f+140>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;d=J[a+88>>2];i:{if(d>>>0>2]){O[d>>3]=O[f>>3];O[d+8>>3]=O[f+8>>3];O[d+16>>3]=O[f+16>>3];O[d+24>>3]=O[f+24>>3];O[d+32>>3]=O[f+32>>3];O[d+40>>3]=O[f+40>>3];e=J[f+52>>2];J[d+48>>2]=J[f+48>>2];J[d+52>>2]=e;e=J[f+60>>2];J[d+56>>2]=J[f+56>>2];J[d+60>>2]=e;J[d+64>>2]=J[f+64>>2];J[d+68>>2]=J[f+68>>2];J[f+64>>2]=0;J[f+68>>2]=0;O[d+72>>3]=O[f+72>>3]; +O[d+80>>3]=O[f+80>>3];O[d+88>>3]=O[f+88>>3];O[d+96>>3]=O[f+96>>3];O[d+104>>3]=O[f+104>>3];O[d+112>>3]=O[f+112>>3];e=J[f+124>>2];J[d+120>>2]=J[f+120>>2];J[d+124>>2]=e;e=J[f+132>>2];J[d+128>>2]=J[f+128>>2];J[d+132>>2]=e;J[d+136>>2]=J[f+136>>2];J[d+140>>2]=J[f+140>>2];J[f+136>>2]=0;J[f+140>>2]=0;J[a+88>>2]=d+144;break i}J[699344]=0;da(2504,h|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[f+140>>2];if(!d)break i;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break i;kc[J[J[d>>2]+8>>2]](d);Gc(d)}d=J[f+68>>2]; +j:{if(!d)break j;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break j;kc[J[J[d>>2]+8>>2]](d);Gc(d)}e=c+1|0;if((c|0)!=(i|0))continue;break}break c}h=J[a+48>>2];l=J[a+52>>2]-h|0;i=(l|0)/72|0;j=(i|0)!=(g|0)?g:0;e=P(j,72)+h|0;k=O[e>>3]-p;q=k*k;k=O[e+8>>3]-o;if(!(Y(q+k*k)<=1E-7))break d;J[b+52>>2]=j;O[e+8>>3]=o;O[e>>3]=p;O[e+16>>3]=O[b+16>>3];O[e+24>>3]=O[b+24>>3];O[e+32>>3]=O[b+32>>3];O[e+40>>3]=O[b+40>>3];a=J[b+60>>2];J[e+56>>2]=J[b+56>>2];J[e+60>>2]=a;a=J[b+52>>2];J[e+48>>2]=J[b+48>>2];J[e+52>>2]=a;c=J[b+64>>2]; +a=J[b+68>>2];if(a)J[a+4>>2]=J[a+4>>2]+1;J[e- -64>>2]=c;b=h+P(j,72)|0;e=J[b+68>>2];J[b+68>>2]=a;if(!e)break b;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break b}kc[J[J[e>>2]+8>>2]](e);Gc(e);break b}U4(a+48|0,h+P(g,72)|0,b);e=J[b+52>>2];k:{if((i|0)<=(e|0))break k;j=i+(e^-1)|0;h=J[a+48>>2];m=i-e&3;if(m){g=0;while(1){e=e+1|0;n=h+P(e,72)|0;J[n+52>>2]=J[n+52>>2]+1;g=g+1|0;if((m|0)!=(g|0))continue;break}}if(j>>>0<=2)break k;while(1){g=h+P(e,72)|0;J[g+124>>2]=J[g+124>>2]+1;J[g+196>>2]=J[g+196>>2]+1;J[g+268>>2]=J[g+268>> +2]+1;J[g+340>>2]=J[g+340>>2]+1;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(d){d=J[b+52>>2];d=J[a+48>>2]+P((d|0)!=(i|0)?d+1|0:0,72)|0;O[d+16>>3]=O[c+16>>3];O[d+24>>3]=O[c+24>>3];O[d+32>>3]=O[c+32>>3];O[d+40>>3]=O[c+40>>3]}e=J[a+100>>2];g=J[a+96>>2];if((e|0)!=(g|0))while(1){c=e;e=e-144|0;d=J[e+140>>2];l:{if(!d)break l;h=J[d+4>>2];J[d+4>>2]=h-1;if(h)break l;kc[J[J[d>>2]+8>>2]](d);Gc(d)}c=J[c-76>>2];m:{if(!c)break m;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break m;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((e|0)!=(g|0))continue; +break}J[a+100>>2]=g;if((l|0)<0)break c;h=a+96|0;e=0;while(1){j=J[a+52>>2];c=e;g=J[a+48>>2];d=g+P(e,72)|0;O[f>>3]=O[d>>3];O[f+8>>3]=O[d+8>>3];O[f+16>>3]=O[d+16>>3];O[f+24>>3]=O[d+24>>3];O[f+32>>3]=O[d+32>>3];O[f+40>>3]=O[d+40>>3];e=J[d+60>>2];J[f+56>>2]=J[d+56>>2];J[f+60>>2]=e;e=J[d+52>>2];J[f+48>>2]=J[d+48>>2];J[f+52>>2]=e;J[f+64>>2]=J[d+64>>2];e=J[d+68>>2];J[f+68>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;d=(c|0)==(((j-g|0)/72|0)-1|0)?g:d+72|0;O[f+72>>3]=O[d>>3];O[f+80>>3]=O[d+8>>3];O[f+88>>3]=O[d+16>>3]; +O[f+96>>3]=O[d+24>>3];O[f+104>>3]=O[d+32>>3];O[f+112>>3]=O[d+40>>3];e=J[d+60>>2];J[f+128>>2]=J[d+56>>2];J[f+132>>2]=e;e=J[d+52>>2];J[f+120>>2]=J[d+48>>2];J[f+124>>2]=e;J[f+136>>2]=J[d+64>>2];d=J[d+68>>2];J[f+140>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;d=J[a+100>>2];n:{if(d>>>0>2]){O[d>>3]=O[f>>3];O[d+8>>3]=O[f+8>>3];O[d+16>>3]=O[f+16>>3];O[d+24>>3]=O[f+24>>3];O[d+32>>3]=O[f+32>>3];O[d+40>>3]=O[f+40>>3];e=J[f+52>>2];J[d+48>>2]=J[f+48>>2];J[d+52>>2]=e;e=J[f+60>>2];J[d+56>>2]=J[f+56>>2];J[d+60>>2]= +e;J[d+64>>2]=J[f+64>>2];J[d+68>>2]=J[f+68>>2];J[f+64>>2]=0;J[f+68>>2]=0;O[d+72>>3]=O[f+72>>3];O[d+80>>3]=O[f+80>>3];O[d+88>>3]=O[f+88>>3];O[d+96>>3]=O[f+96>>3];O[d+104>>3]=O[f+104>>3];O[d+112>>3]=O[f+112>>3];e=J[f+124>>2];J[d+120>>2]=J[f+120>>2];J[d+124>>2]=e;e=J[f+132>>2];J[d+128>>2]=J[f+128>>2];J[d+132>>2]=e;J[d+136>>2]=J[f+136>>2];J[d+140>>2]=J[f+140>>2];J[f+136>>2]=0;J[f+140>>2]=0;J[a+100>>2]=d+144;break n}J[699344]=0;da(2504,h|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[f+140>>2]; +if(!d)break n;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break n;kc[J[J[d>>2]+8>>2]](d);Gc(d)}d=J[f+68>>2];o:{if(!d)break o;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break o;kc[J[J[d>>2]+8>>2]](d);Gc(d)}e=c+1|0;if((c|0)!=(i|0))continue;break}}e=J[a+108>>2];c=J[a+112>>2];if((e|0)==(c|0))break b;d=J[b+56>>2];while(1){a=J[e>>2];g=J[a+196>>2];if(!((g|0)>2]|(d|0)!=J[a+200>>2]))J[a+196>>2]=g+1;e=e+8|0;if((c|0)!=(e|0))continue;break}}fc=f+144|0;return}a=Z()|0;nh(f);ba(a|0);B()}function u$a(a){a=a|0;var b=0,c=0,d=0,e=0, +f=0,g=0,h=0,i=0;d=J[a+76>>2];b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}b=J[a+424>>2];a:{b:{if((d|0)==3){c=10;if(J[a+80>>2]==3)break a;break b}if((d|0)<5)break b;c=P(d,6);break a}c=d<<2|2}if(!((c|0)<=J[a+428>>2]?b:0)){b=(c|0)<=10?10:c;J[a+428>>2]=b;b=kc[J[J[a+4>>2]>>2]](a,0,P(b,36))|0;J[a+424>>2]=b}J[a+200>>2]=c;J[a+204>>2]=b;c:{d:{e:{f:{if((d|0)!=3){g:{h:{i:{if((d|0)>=5){g=d&3;c=0;if(d-1>>>0>=3)break i;a=0;break h}J[b>>2]=d;j:{if((d|0)<=0)break j;J[b+4>> +2]=0;if((d|0)==1)break j;J[b+8>>2]=1;if((d|0)==2)break j;J[b+12>>2]=2;if((d|0)==3)break j;J[b+16>>2]=3}J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;b=b+36|0;break g}h=d&-4;a=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=1;J[b+128>>2]=0;J[b+132>>2]=0;J[b+112>>2]=a|3;J[b+100>>2]=0;J[b+104>>2]=1;J[b+92>>2]=0;J[b+96>>2]=0;J[b+76>>2]=a|2;i=b- -64|0;J[i>>2]=0;J[i+4>>2]=1;J[b+56>>2]=0;J[b+60>> +2]=0;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!g)break g;while(1){J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}}if((d|0)<=0)break f;g=d&3;c=0;h=d-1|0;k:{if(h>>>0<3){a=0;break k}i=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=1;J[b+24>>2]=5;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=1;J[b+132>>2]=5;J[b+112>>2]= +a|3;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=1;J[b+96>>2]=5;J[b+76>>2]=a|2;f=b- -64|0;J[f>>2]=0;J[f+4>>2]=2;J[b+56>>2]=1;J[b+60>>2]=5;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(g)while(1){J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=1;J[b+24>>2]=5;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}g=d&3;c=0;l:{if(h>>>0<3){a=0;break l}i=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=6;J[b+24>>2]=63; +J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=6;J[b+132>>2]=63;J[b+112>>2]=a|3;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=6;J[b+96>>2]=63;J[b+76>>2]=a|2;f=b- -64|0;J[f>>2]=0;J[f+4>>2]=2;J[b+56>>2]=6;J[b+60>>2]=63;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(g)while(1){J[b+28>>2]=0;J[b+32>>2]=2;J[b+20>>2]=6;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}i=d&3;g=0;m:{if(h>>>0<3){c=0;break m}f=d&-4;c=0;e=0;while(1){J[b+ +108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=2;J[b+32>>2]=1;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=c;J[b>>2]=1;J[b+136>>2]=2;J[b+140>>2]=1;J[b+128>>2]=1;J[b+132>>2]=63;J[b+112>>2]=c|3;J[b+100>>2]=2;J[b+104>>2]=1;J[b+92>>2]=1;J[b+96>>2]=63;J[b+76>>2]=c|2;a=b- -64|0;J[a>>2]=2;J[a+4>>2]=1;a=b;J[b+56>>2]=1;J[b+60>>2]=63;J[b+40>>2]=c|1;c=c+4|0;b=b+144|0;e=e+4|0;if((f|0)!=(e|0))continue;break}e=a+108|0}if(i)while(1){e=b;J[b+28>>2]=2;J[b+32>>2]=1;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=c;J[b>>2]=1;c=c+1|0; +b=b+36|0;g=g+1|0;if((i|0)!=(g|0))continue;break}n:{o:{if((d|0)>=5){g=d&3;c=0;if(h>>>0>=3)break o;a=0;break n}J[b>>2]=d;g=0;a=0;if(h>>>0>=7){i=d&-8;c=e+40|0;h=0;while(1){J[c+(a<<2)>>2]=a;f=a|1;J[c+(f<<2)>>2]=f;f=a|2;J[c+(f<<2)>>2]=f;f=a|3;J[c+(f<<2)>>2]=f;f=a|4;J[c+(f<<2)>>2]=f;f=a|5;J[c+(f<<2)>>2]=f;f=a|6;J[c+(f<<2)>>2]=f;f=a|7;J[c+(f<<2)>>2]=f;a=a+8|0;h=h+8|0;if((i|0)!=(h|0))continue;break}}c=d&7;if(!c)break e;while(1){J[((a<<2)+e|0)+40>>2]=a;a=a+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}break e}h= +d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>>2]=1;J[b+136>>2]=1;J[b+140>>2]=0;J[b+128>>2]=0;J[b+132>>2]=0;J[b+112>>2]=a|3;J[b+100>>2]=1;J[b+104>>2]=0;J[b+92>>2]=0;J[b+96>>2]=0;J[b+76>>2]=a|2;i=b- -64|0;J[i>>2]=1;J[i+4>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!g)break d;while(1){J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+4>>2]=a;J[b>> +2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}break d}c=8;a=J[a+80>>2];J[b+8>>2]=1;J[b+12>>2]=2;J[b>>2]=3;J[b+4>>2]=0;J[b+72>>2]=1;d=b- -64|0;J[d>>2]=0;J[d+4>>2]=2;J[b+56>>2]=1;J[b+60>>2]=5;J[b+36>>2]=1;J[b+40>>2]=0;J[b+28>>2]=0;J[b+32>>2]=1;J[b+20>>2]=0;J[b+24>>2]=0;p:{if((a|0)!=3){J[b+360>>2]=3;J[b+324>>2]=1;J[b+328>>2]=2;J[b+288>>2]=1;J[b+292>>2]=1;J[b+252>>2]=1;J[b+256>>2]=0;J[b+216>>2]=1;J[b+220>>2]=2;J[b+200>>2]=6;J[b+204>>2]=63;J[b+180>>2]=1;J[b+184>>2]=1;J[b+172>>2]=0;J[b+176>> +2]=2;J[b+164>>2]=6;J[b+168>>2]=63;J[b+144>>2]=1;J[b+148>>2]=0;J[b+136>>2]=0;J[b+140>>2]=2;J[b+128>>2]=1;J[b+132>>2]=5;J[b+108>>2]=1;J[b+112>>2]=2;J[b+100>>2]=0;J[b+104>>2]=2;J[b+92>>2]=1;J[b+96>>2]=5;J[b+76>>2]=1;J[b+352>>2]=2;J[b+356>>2]=1;J[b+344>>2]=1;J[b+348>>2]=63;J[b+316>>2]=2;J[b+320>>2]=1;J[b+308>>2]=1;J[b+312>>2]=63;J[b+280>>2]=2;J[b+284>>2]=1;J[b+272>>2]=1;J[b+276>>2]=63;J[b+244>>2]=0;J[b+248>>2]=2;J[b+236>>2]=6;J[b+240>>2]=63;J[b+208>>2]=0;J[b+212>>2]=2;e=2;g=13;c=12;d=0;h=11;i=b+364|0; +a=10;break p}J[b+216>>2]=3;J[b+200>>2]=1;J[b+204>>2]=63;J[b+180>>2]=1;J[b+184>>2]=0;J[b+172>>2]=0;J[b+176>>2]=2;J[b+164>>2]=6;J[b+168>>2]=63;J[b+144>>2]=1;J[b+148>>2]=0;J[b+136>>2]=0;J[b+140>>2]=1;J[b+128>>2]=1;J[b+132>>2]=63;J[b+108>>2]=1;J[b+112>>2]=1;J[b+100>>2]=0;J[b+104>>2]=1;J[b+92>>2]=1;J[b+96>>2]=63;d=2;J[b+76>>2]=2;J[b+208>>2]=2;J[b+212>>2]=1;g=9;h=7;i=b+220|0;a=6}J[i>>2]=0;a=P(a,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+8>>2]=1;J[a+12>>2]=2;a=P(h,36)+b|0;J[a+28>>2]= +1;J[a+32>>2]=0;J[a+20>>2]=1;J[a+24>>2]=63;J[a+4>>2]=d;J[a>>2]=1;a=P(c,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=1;J[a+24>>2]=63;J[a>>2]=1;J[a+4>>2]=1;a=P(g,36)+b|0;J[a+28>>2]=1;J[a+32>>2]=0;J[a+20>>2]=1;J[a+24>>2]=63;J[a+4>>2]=e;J[a>>2]=1;break c}J[b>>2]=d}J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;b=b+36|0}if((d|0)<=0)break c;g=d&3;c=0;q:{if(d-1>>>0<3){a=0;break q}d=d&-4;a=0;e=0;while(1){J[b+108>>2]=1;J[b+72>>2]=1;J[b+36>>2]=1;J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=1;J[b+24>>2]=63;J[b+ +4>>2]=a;J[b>>2]=1;J[b+136>>2]=1;J[b+140>>2]=0;J[b+128>>2]=1;J[b+132>>2]=63;J[b+112>>2]=a|3;J[b+100>>2]=1;J[b+104>>2]=0;J[b+92>>2]=1;J[b+96>>2]=63;J[b+76>>2]=a|2;h=b- -64|0;J[h>>2]=1;J[h+4>>2]=0;J[b+56>>2]=1;J[b+60>>2]=63;J[b+40>>2]=a|1;a=a+4|0;b=b+144|0;e=e+4|0;if((d|0)!=(e|0))continue;break}}if(!g)break c;while(1){J[b+28>>2]=1;J[b+32>>2]=0;J[b+20>>2]=1;J[b+24>>2]=63;J[b+4>>2]=a;J[b>>2]=1;a=a+1|0;b=b+36|0;c=c+1|0;if((g|0)!=(c|0))continue;break}}}function P1a(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;g=fc-32|0;fc=g;c=J[a+8>>2];a:{if(c>>>0>=M[a+12>>2])break a;m=J[J[a+4>>2]+8>>2];q=g+26|0;while(1){if(J[b>>2]>0)break a;if(M[a+16>>2]>=M[a+20>>2]){J[b>>2]=15;break a}r=K[m+81|0];b:{c:{d:{j=L[c>>1];if((j&65408)==128){h=g+25|0;e:switch(j-167|0){default:if((j|0)==247)break c;break;case 0:case 1:case 9:case 10:case 13:case 15:case 48:break c;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:break e}H[m+ +81|0]=1;break d}if((j-32&65535)>>>0>95)break d;H[g+25|0]=j;e=1;break b}h=g+25|0;if(!(1<>>0>25)break c;H[g+25|0]=j;h=q}c=751840;if(j>>>0<=25){e=1;if(1<>1]>>0)continue;break}f:{g:{h:{i:{j:{if(L[d>>1]>j>>>0)break j;k=K[d+4|0];switch(k-15|0){case 0:break i;case 5:break j;default:break h}}k=20;H[h|0]=20;c=j>>>8|0;d=j&255;H[h+2|0]=d?j:c;H[h+1|0]=d?c:-10;h=h+3|0;e=h-(g+25|0)|0;break g}k:{l:{if(j>>>0<=31){H[h|0]=15;H[h+1|0]=j+32;break l}if((j- +128&65535)>>>0>32)break k;H[h+1|0]=j;H[h|0]=15}h=h+2|0}k=15;e=h-(g+25|0)|0;break g}if(k>>>0>19)break f;d=Dh(J[(k<<2)+m>>2],j,g+28|0,0);if((d|0)>0){c=h;i=c;m:{if(!k|K[m+80|0]==(k|0))break m;H[c|0]=k;i=c+1|0;if((d|0)!=1|k>>>0<16)break m;H[c+1|0]=k;i=c+2|0}c=i;f=J[g+28>>2];if((d|0)==1){i=k;e=0;if(!(224<<(d<<3)-8&f))break g}n:switch(d-1|0){case 3:H[c|0]=f>>>24;c=c+1|0;case 2:H[c|0]=f>>>16;c=c+1|0;f=J[g+28>>2];case 1:H[c|0]=f>>>8;c=c+1|0;f=J[g+28>>2];case 0:H[c|0]=f;c=c+1|0;break;default:break n}i=k;e= +c-h|0;break g}H[g+k|0]=1;e=0}if(e)break b}J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;c=K[m+80|0];o:{if((c|0)==1)break o;p:{if((k|0)==128&c>>>0<16)break p;q:switch(k-129|0){case 1:break p;case 0:break q;default:break o}if(c>>>0<16)break o}r:{s:{c=K[m+81|0];if(c>>>0<=15){d=Dh(J[m+4>>2],j,g+28|0,0);t:{if((d|0)>0){e=J[g+28>>2];c=h;if(K[m+80|0]!=1){H[c|0]=1;c=c+1|0}i=1;if((d|0)==1)if(!(224<<(d<<3)-8&e))break t;u:switch(d-1|0){case 3:H[c|0]=e>>>24;c=c+1|0;case 2:H[c|0]=e>>>16;c=c+1|0;e= +J[g+28>>2];case 1:H[c|0]=e>>>8;c=c+1|0;e=J[g+28>>2];case 0:H[c|0]=e;c=c+1|0;break;default:break u}e=c-h|0;if(!e)break t;break b}H[g+1|0]=1}c=Dh(J[m>>2],j,g+28|0,0);v:{if((c|0)>0){d=J[g+28>>2];if((c|0)==1){i=0;if(!(224<<(c<<3)-8&d))break v}i=h;f=h;e=h;w:switch(c-1|0){case 3:H[h|0]=d>>>24;i=h+1|0;case 2:H[i|0]=d>>>16;f=i+1|0;d=J[g+28>>2];case 1:H[f|0]=d>>>8;e=f+1|0;d=J[g+28>>2];case 0:H[e|0]=d;f=e+1|0;break;default:break w}i=0;e=f-h|0;if(!e)break v;break b}H[g|0]=1}d=K[m+81|0];l=Dh(J[(d<<2)+m>>2],j, +g+28|0,0);if((l|0)<=0)break s;f=J[g+28>>2];c=h;i=c;x:{if(!d|(d|0)==K[m+80|0])break x;H[c|0]=d;i=c+1|0;if((l|0)!=1|d>>>0<16)break x;H[c+1|0]=d;i=c+2|0}c=i;i=d;y:{if((l|0)==1){e=0;if(!(224<<(l<<3)-8&f))break y}z:switch(l-1|0){case 3:H[c|0]=f>>>24;c=c+1|0;case 2:H[c|0]=f>>>16;c=c+1|0;f=J[g+28>>2];case 1:H[c|0]=f>>>8;c=c+1|0;f=J[g+28>>2];case 0:H[c|0]=f;c=c+1|0;break;default:break z}e=c-h|0}break r}l=Dh(J[(c<<2)+m>>2],j,g+28|0,0);if((l|0)<=0){H[c+g|0]=1;e=0;break r}f=J[g+28>>2];d=h;i=c;A:{B:{if((c|0)!= +K[m+80|0]){H[d|0]=c;if((l|0)!=1){d=d+1|0;break B}H[h+1|0]=c;d=h+2|0}if((l|0)!=1)break B;e=0;if(!(224<<(l<<3)-8&f))break A}C:switch(l-1|0){case 3:H[d|0]=f>>>24;d=d+1|0;case 2:H[d|0]=f>>>16;d=d+1|0;f=J[g+28>>2];case 1:H[d|0]=f>>>8;d=d+1|0;f=J[g+28>>2];case 0:H[d|0]=f;d=d+1|0;break;default:break C}e=d-h|0}break r}H[d+g|0]=1;e=0}if(e)break b}e=0;c=K[m+81|0];D:{if(!c)break D;E:{if((k|0)==128&c>>>0<16)break E;F:switch(k-129|0){case 1:break E;case 0:break F;default:break D}if(c>>>0<16)break D}l=Dh(J[(c<< +2)+m>>2],j,g+28|0,0);if((l|0)<=0){H[c+g|0]=1;break D}f=J[g+28>>2];d=h;i=d;G:{if((c|0)==K[m+80|0])break G;H[d|0]=c;i=d+1|0;if((l|0)!=1|c>>>0<16)break G;H[d+1|0]=c;i=d+2|0}d=i;H:{if((l|0)==1){e=0;if(!(224<<(l<<3)-8&f))break H}I:switch(l-1|0){case 3:H[d|0]=f>>>24;d=d+1|0;case 2:H[d|0]=f>>>16;d=d+1|0;f=J[g+28>>2];case 1:H[d|0]=f>>>8;d=d+1|0;f=J[g+28>>2];case 0:H[d|0]=f;d=d+1|0;break;default:break I}e=d-h|0}i=c}J:{K:{if(e)break K;c=i&255;if(!c)break K;if(!((k|0)==128&c>>>0<16|(k|0)==130|(k|0)==129&c>>> +0>15))break J;l=Dh(J[(c<<2)+m>>2],j,g+28|0,0);if((l|0)<=0){H[c+g|0]=1;e=0;break K}f=J[g+28>>2];d=h;e=d;L:{if((c|0)==K[m+80|0])break L;H[d|0]=i;e=d+1|0;if((l|0)!=1|c>>>0<16)break L;H[d+1|0]=i;e=d+2|0}d=e;if((l|0)==1){e=0;if(!(224<<(l<<3)-8&f))break K}M:switch(l-1|0){case 3:H[d|0]=f>>>24;d=d+1|0;case 2:H[d|0]=f>>>16;d=d+1|0;f=J[g+28>>2];case 1:H[d|0]=f>>>8;d=d+1|0;f=J[g+28>>2];case 0:H[d|0]=f;d=d+1|0;break;default:break M}e=d-h|0}if(e)break b}s=(k+127&255)>>>0<2?19:11;f=h+2|0;l=h+1|0;c=(k|0)!=129?1: +16;d=c;while(1){e=0;n=J[(c<<2)+m>>2];N:{if(!n)break N;c=c+g|0;if(K[c|0])break N;o=Dh(n,j,g+28|0,0);if((o|0)<=0){H[c|0]=1;break N}n=J[g+28>>2];c=h;i=d&255;O:{if((i|0)==K[m+80|0])break O;H[c|0]=d;c=l;if((o|0)!=1|i>>>0<16)break O;H[c|0]=d;c=f}if((o|0)==1){i=d;if(!(224<<(o<<3)-8&n))break N}P:switch(o-1|0){case 3:H[c|0]=n>>>24;c=c+1|0;case 2:H[c|0]=n>>>16;c=c+1|0;n=J[g+28>>2];case 1:H[c|0]=n>>>8;c=c+1|0;n=J[g+28>>2];case 0:H[c|0]=n;c=c+1|0;break;default:break P}e=c-h|0;i=d}d=d+1|0;c=d&255;if(!e&s>>>0>= +c>>>0)continue;break}Q:{if(e|(k|0)==129)break Q;c=Dh(J[m>>2],j,g+28|0,0);if((c|0)>0){d=J[g+28>>2];if((c|0)==1){i=0;e=0;if(!(224<<(c<<3)-8&d))break Q}f=h;e=h;R:switch(c-1|0){case 3:H[h|0]=d>>>24;f=l;case 2:H[f|0]=d>>>16;f=f+1|0;d=J[g+28>>2];case 1:H[f|0]=d>>>8;f=f+1|0;d=J[g+28>>2];case 0:H[f|0]=d;e=f+1|0;break;default:break R}e=e-h|0;i=0;break Q}H[g|0]=1;e=0}if(e)break b;H[h|0]=20;c=j>>>8|0;d=j&255;H[h+2|0]=d?j:c;H[h+1|0]=d?c:-10;e=(h-g|0)-22|0}J[a+8>>2]=J[a+8>>2]+2;c=g+25|0;d=J[a+16>>2];S:{if(d>>> +0>2])while(1){if(!e)break S;h=K[c|0];J[a+16>>2]=d+1;H[d|0]=h;h=J[a+24>>2];if(h){J[a+24>>2]=h+4;J[h>>2]=p}e=e-1|0;c=c+1|0;d=J[a+16>>2];if(d>>>0>2])continue;break}if((e|0)<=0)break S;h=J[a+4>>2];J[b>>2]=15;H[J[a+4>>2]+63|0]=e;d=h+76|0;h=0;f=e;k=f&7;if(k)while(1){H[d|0]=K[c|0];d=d+1|0;c=c+1|0;f=f-1|0;h=h+1|0;if((k|0)!=(h|0))continue;break}if(e>>>0<8)break S;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];H[d+6|0]=K[c+6| +0];H[d+7|0]=K[c+7|0];d=d+8|0;c=c+8|0;f=f-8|0;if(f)continue;break}}H[m+81|0]=r;p=p+1|0;c=J[a+8>>2];if(c>>>0>2])continue;break}}fc=g+32|0}function ay(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;g=fc-80|0;fc=g;o=J[a>>2];a:{if(f)break a;h=J[a+4>>2];if(K[h+12|0])break a;i=J[d>>2];J[g+68>>2]=0;J[g+72>>2]=0;J[g+60>>2]=0;J[g+64>>2]=0;J[g+52>>2]=0;J[g+56>>2]=0;J[g+48>>2]=i;ay(h,b,c,g+48|0,e,1)}b:{c:{d:{if(K[d+4|0])break d;h=J[c+20>>2]+J[b+20>>2]| +0;e:{if(h>>>0>=97){b=J[d>>2];if(!b|J[b>>2])break e;J[b>>2]=18;break e}J[d+8>>2]=h;I[d+4>>1]=257;J[d+12>>2]=h+7>>>3;if(!h)break d;c=0;h=-1<<(0-h&7);while(1){H[(c+d|0)+16|0]=255;c=c+1|0;i=J[d+12>>2];if(c>>>0>>0)continue;break}c=d+i|0;H[c+15|0]=h&K[c+15|0];if(K[d+4|0])break d}if(!K[o+8|0])break b;J[J[d>>2]>>2]=0;a=a+13|0;break c}J[a+20>>2]=0;J[a+24>>2]=0;J[g+72>>2]=J[d+24>>2];h=J[d+20>>2];s=g- -64|0;c=s;J[c>>2]=J[d+16>>2];J[c+4>>2]=h;c=J[d+12>>2];J[g+56>>2]=J[d+8>>2];J[g+60>>2]=c;c=J[d+4>>2];J[g+ +48>>2]=J[d>>2];J[g+52>>2]=c;t=J[b+20>>2];if(t>>>0>M[d+8>>2])break b;if(K[o+249|0]){J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;c=g+24|0;$x(a,o+288|0,c);$x(a,c,o+268|0)}f:{g:{if(t){j=s;u=128;while(1){h:{if(!(K[j|0]&u))break h;n=J[a+16>>2];J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;c=m;i=J[b+20>>2];i:{if(c>>>0>>0)break i;c=0;h=J[b+4>>2];if(!h|J[h>>2])break i;J[h>>2]=130}j:{k:{c=J[b+28>>2]+P(J[b+8>>2],c)|0;h=J[c+8>>2];k=J[c+4>>2];l=h-k|0;if((l|0)==-1376256)k= +1;else{if((l|0)==-1310720){J[g+40>>2]=n;J[g+32>>2]=e;k=0;J[g+24>>2]=0;J[g+28>>2]=m;l=e;break k}h=(l|0)<0?h:k;k=4}J[g+40>>2]=n;J[g+24>>2]=k;J[g+28>>2]=m;l=e+h|0;J[g+32>>2]=l;if(!K[c|0])break k;r=J[c+12>>2];k=k|16;J[g+24>>2]=k;J[g+36>>2]=r;break j}r=Wc(l,n);J[g+36>>2]=r;i=J[b+20>>2]}h=J[a+16>>2];J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;c=m;l:{if(i>>>0>c>>>0)break l;c=0;i=J[b+4>>2];if(!i|J[i>>2])break l;J[i>>2]=130}m:{n:{c=J[b+28>>2]+P(J[b+8>>2],c)|0;p=J[c+8>>2];i=J[c+4>>2];n=p-i| +0;if((n|0)==-1310720)n=2;else{if((n|0)==-1376256){J[g+16>>2]=h;J[g+8>>2]=e;n=0;J[g>>2]=0;J[g+4>>2]=m;i=e;break n}i=(n|0)<0?i:p;n=8}J[g>>2]=n;p=J[o+232>>2];J[g+16>>2]=h;J[g+4>>2]=m;i=(e+i|0)+(p<<1)|0;J[g+8>>2]=i;if(!K[c|0])break n;p=J[c+16>>2];n=n|16;J[g>>2]=n;break m}p=Wc(i,h)}J[g+12>>2]=p;o:{if((k|n)&16)break o;v=J[o+244>>2];if(!v)break h;q=J[o+260>>2];h=n&10;p:{q:{r:{if(!(k&5)){c=0;if(!h)break h;while(1){h=P(c,20)+o|0;s:{if(K[h+324|0])break s;w=J[h+308>>2];if((w-q|0)>(i|0))break s;if((J[h+312>> +2]+q|0)>=(i|0))break r}c=c+1|0;if((v|0)!=(c|0))continue;break}break h}c=0;if(!h)while(1){h=P(c,20)+o|0;if(!(!K[h+324|0]|(J[h+308>>2]-q|0)>(l|0))){h=J[h+312>>2];if((q+h|0)>=(l|0))break q}c=c+1|0;if((v|0)!=(c|0))continue;break h}while(1){h=P(c,20)+o|0;w=J[h+308>>2];x=w-q|0;t:{if(K[h+324|0]){if((l|0)<(x|0))break t;h=J[h+312>>2];if((q+h|0)<(l|0))break t;break q}if((i|0)<(x|0))break t;if((J[h+312>>2]+q|0)>=(i|0))break r}c=c+1|0;if((v|0)!=(c|0))continue;break}break h}h=J[(P(c,20)+o|0)+320>>2];u:{if(K[o+ +248|0])break u;h=p+32768&-65536;if(J[o+256>>2]>(i-w|0))break u;c=J[(P(c,20)+o|0)+320>>2]+65536|0;h=(c|0)<(h|0)?h:c}c=h-p|0;if(!k)break p;J[g+24>>2]=k|16;J[g+36>>2]=c+r;break p}i=J[(P(c,20)+o|0)+320>>2];v:{if(K[o+248|0])break v;i=r+32768&-65536;if(J[o+256>>2]>(h-l|0))break v;c=J[(P(c,20)+o|0)+320>>2]-65536|0;i=(c|0)>(i|0)?i:c}J[g+24>>2]=k|16;J[g+36>>2]=i;if(!n)break o;c=i-r|0}J[g>>2]=n|16;J[g+12>>2]=c+p}$x(a,g+24|0,g);H[j|0]=K[j|0]&(u^-1)}c=(m&7)==7;u=c?128:u>>>1&127;j=c+j|0;m=m+1|0;if((t|0)!=(m|0))continue; +break}if(f)break g;if(!t)break f;m=128;c=0;while(1){if(K[s|0]&m){l=J[a+16>>2];J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;i=c;h=J[b+20>>2];w:{if(h>>>0>c>>>0)break w;i=0;j=J[b+4>>2];if(!j|J[j>>2])break w;J[j>>2]=130}x:{y:{i=J[b+28>>2]+P(J[b+8>>2],i)|0;j=J[i+8>>2];n=J[i+4>>2];k=j-n|0;if((k|0)==-1376256)k=1;else{if((k|0)==-1310720){J[g+40>>2]=l;J[g+32>>2]=e;J[g+24>>2]=0;J[g+28>>2]=c;j=e;break y}j=(k|0)<0?j:n;k=4}J[g+40>>2]=l;J[g+24>>2]=k;J[g+28>>2]=c;j=e+j|0;J[g+32>>2]=j;if(!K[i| +0])break y;i=J[i+12>>2];J[g+24>>2]=k|16;J[g+36>>2]=i;break x}y=g,z=Wc(j,l),J[y+36>>2]=z;h=J[b+20>>2]}j=J[a+16>>2];J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;i=c;z:{if(c>>>0>>0)break z;i=0;h=J[b+4>>2];if(!h|J[h>>2])break z;J[h>>2]=130}A:{B:{i=J[b+28>>2]+P(J[b+8>>2],i)|0;k=J[i+8>>2];h=J[i+4>>2];l=k-h|0;if((l|0)==-1310720)l=2;else{if((l|0)==-1376256){J[g+16>>2]=j;J[g+8>>2]=e;J[g>>2]=0;J[g+4>>2]=c;h=e;break B}h=(l|0)<0?h:k;l=8}J[g>>2]=l;k=J[o+232>>2];J[g+16>>2]=j;J[g+4>>2]=c;h=(e+ +h|0)+(k<<1)|0;J[g+8>>2]=h;if(!K[i|0])break B;h=J[i+16>>2];J[g>>2]=l|16;J[g+12>>2]=h;break A}y=g,z=Wc(h,j),J[y+12>>2]=z}$x(a,g+24|0,g)}h=(c&7)==7;m=h?128:m>>>1&127;s=h+s|0;c=c+1|0;if((t|0)!=(c|0))continue;break}break f}if(!f)break f}c=J[a+20>>2];if(!(!c|J[a+36>>2]>0)&J[(P(c,20)+a|0)+16>>2]>=0)break f;J[g+36>>2]=0;J[g+28>>2]=0;J[g+32>>2]=0;J[g+24>>2]=49;c=J[a+16>>2];J[g+8>>2]=0;J[g+12>>2]=0;J[g+16>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[g+40>>2]=c;$x(a,g+24|0,g)}i=0;m=J[a+8>>2];J[m+20>>2]=0;l=J[a+20>>2];if(l){c= +0;while(1){i=c+1|0;n=P(c,20);j=n+a|0;e=J[j+28>>2];s=e&12;C:{if(e&16)break C;e=a+28|0;q=e+n|0;p=J[q+12>>2];h=p&65535;k=h?65536-h|0:0;o=s?i:c;r=e+P(o,20)|0;t=J[r+12>>2];m=t&65535;e=m?65536-m|0:0;e=e>>>0>k>>>0?k:e;k=(h|0)<(m|0)?h:m;m=0-k|0;D:{E:{if(o>>>0>>0){l=P(o+1|0,20)+a|0;if(J[l+40>>2]<((e+t|0)+32768|0))break E}if(!(!c|J[j+20>>2]<=((p-k|0)-32768|0))){h=e;break D}h=e>>>0>k>>>0?m:e;break D}F:{if(c){h=0;if(J[j+20>>2]>((p-k|0)-32768|0))break F}h=m;if(e>>>0>>0)break F;break D}if(K[l+28|0]&16)break D; +J[g+24>>2]=o;J[g+28>>2]=e-h;a7(J[a+8>>2],g+24|0);p=J[q+12>>2]}J[q+12>>2]=h+p;if(!s)break C;J[r+12>>2]=J[r+12>>2]+h}G:{if(!c)break G;e=J[j+36>>2];h=J[j+16>>2];if((e|0)==(h|0))break G;m=a+28|0;j=m+P(c-1|0,20)|0;y=j,z=Cd(J[(m+n|0)+12>>2]-J[j+12>>2]|0,e-h|0),J[y+16>>2]=z}if(s){c=a+28|0;e=c+P(i,20)|0;h=J[e+8>>2];c=c+n|0;m=J[c+8>>2];if((h|0)!=(m|0))y=c,z=Cd(J[e+12>>2]-J[c+12>>2]|0,h-m|0),J[y+16>>2]=z;c=i}c=c+1|0;l=J[a+20>>2];if(c>>>0>>0)continue;break}m=J[a+8>>2];i=l}c=J[m+20>>2];if(c){h=J[m+8>>2];m= +J[m+28>>2];while(1){c=c-1|0;j=m+P(h,c)|0;e=P(J[j>>2],20)+a|0;j=J[j+4>>2];l=j+J[e+40>>2]|0;H:{if(J[e+60>>2]<(l+32768|0))break H;J[e+40>>2]=l;if(!(K[e+28|0]&12))break H;J[e+20>>2]=j+J[e+20>>2]}if(c)continue;break}}if(!(!i|f)){c=0;while(1){e=P(c,20)+a|0;h=J[e+28>>2];if(!(h&32)){i=J[e+32>>2];I:{if(i>>>0>2])break I;i=0;f=J[b+4>>2];if(!f|J[f>>2])break I;J[f>>2]=130;h=J[e+28>>2]}f=J[b+28>>2]+P(J[b+8>>2],i)|0;J[f+(h&10?16:12)>>2]=J[e+40>>2];H[f|0]=1;i=J[a+20>>2]}c=c+1|0;if(i>>>0>c>>>0)continue;break}}H[a+ +12|0]=1;a=d+5|0}H[a|0]=0}fc=g+80|0}function f5(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;e=fc-32|0;fc=e;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[699344]=0;_(2250,e+20|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){b:{c:{d:{e:{f:{d=J[b+4>>2];g:{if(!J[d>>2])break g;f=1;while(1){h:{i:{j:{k:{l:{m:{n:{c=K[J[J[d+16>>2]+(g>>>6&67108860)>>2]+(g&255)|0];switch(c-1|0){case 2:break j;case 1:break l;case 3:break m;case 0:break n;default:break k}}o:{if(!f){Zk(e+ +8|0,e+20|0,0,1);c=J[e+8>>2];j=O[c+8>>3];i=O[c>>3];J[e+12>>2]=c;uc(c);h=J[e+24>>2];f=J[h>>2];if(f){c=f-1|0;c=J[J[h+12>>2]+(c>>>6&67108860)>>2]+(c<<4&4080)|0;p=O[c+8>>3];r=O[c>>3]}p:{if(!(R(i-r)<=.01&R(j-p)<=.01)){if(!f)break p;m=J[h+16>>2];c=0;d=0;if((f|0)!=1){n=f&-2;k=0;while(1){l=c;c=J[m+(d>>>6&67108860)>>2]+(d&254)|0;o=K[c|0];c=K[c+1|0];c=(l+((o|0)!=0&!(o&64))|0)+((c|0)!=0&!(c&64))|0;d=d+2|0;k=k+2|0;if((n|0)!=(k|0))continue;break}}if(f&1){l=c;c=K[J[m+(d>>>6&67108860)>>2]+(d&255)|0];c=l+((c|0)!= +0&!(c&64))|0}if((c|0)!=1)break p}q:{if(!(i!=r|j!=p)){if(!f)break p;m=J[h+16>>2];c=0;d=0;if((f|0)!=1){n=f&-2;k=0;while(1){l=c;c=J[m+(d>>>6&67108860)>>2]+(d&254)|0;o=K[c|0];c=K[c+1|0];c=(l+((o|0)!=0&!(o&64))|0)+((c|0)!=0&!(c&64))|0;d=d+2|0;k=k+2|0;if((n|0)!=(k|0))continue;break}}if(f&1){l=c;c=K[J[m+(d>>>6&67108860)>>2]+(d&255)|0];c=l+((c|0)!=0&!(c&64))|0}if((c|0)!=1)break q}J[699344]=0;J[e+8>>2]=0;c=aa(2487,h|0,e+8|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;H[c|0]=2;c=J[e+8>>2];O[c+8>>3]=j;O[c>> +3]=i;J[h>>2]=J[h>>2]+1;h=J[e+24>>2];f=J[h>>2]}if(!f)break p;c=f-1|0;if(K[J[J[h+16>>2]+(c>>>6&67108860)>>2]+(c&255)|0]-1>>>0>13)break p;J[699344]=0;J[e+8>>2]=0;c=aa(2487,h|0,e+8|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;H[c|0]=79;c=J[e+8>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[h>>2]=J[h>>2]+1}c=J[a+4>>2];r:{if((c|0)!=J[a+8>>2]){$n(c,e+20|0);J[a+4>>2]=c+8;break r}J[699344]=0;da(2493,a|0,e+20|0);c=J[699344];J[699344]=0;if((c|0)==1)break e}c=J[e+24>>2];H[c+25|0]=0;J[c+20>>2]=0;J[c>> +2]=0;break o}c=J[e+24>>2];d=J[c>>2];if(!d)break o;d=d-1|0;if(!K[J[J[c+16>>2]+(d>>>6&67108860)>>2]+(d&255)|0])break o;J[699344]=0;J[e+8>>2]=0;d=aa(2487,c|0,e+8|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break f;H[d|0]=0;d=J[e+8>>2];J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[c>>2]=J[c>>2]+1}d=e+8|0;Zk(d,b,g,1);c=J[e+8>>2];i=O[c+8>>3];j=O[c>>3];J[e+12>>2]=c;uc(c);c=J[e+24>>2];H[c+25|0]=1;J[699344]=0;J[e+8>>2]=0;d=aa(2487,c|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break i;g=Z()|0;break b}Zk(e+ +8|0,b,g,3);c=J[e+8>>2];i=O[c+40>>3];u=O[c+24>>3];v=O[c+32>>3];q=O[c+16>>3];w=O[c+8>>3];j=O[c>>3];J[699344]=0;c=J[e+24>>2];J[e+28>>2]=0;d=aa(2487,c|0,e+28|0)|0;h=J[699344];J[699344]=0;s:{if((h|0)==1)break s;H[d|0]=4;d=J[e+28>>2];O[d+8>>3]=w;O[d>>3]=j;J[c>>2]=J[c>>2]+1;J[699344]=0;J[e+28>>2]=0;d=aa(2487,c|0,e+28|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break s;H[d|0]=4;d=J[e+28>>2];O[d+8>>3]=u;O[d>>3]=q;J[c>>2]=J[c>>2]+1;J[699344]=0;J[e+28>>2]=0;d=aa(2487,c|0,e+28|0)|0;h=J[699344];J[699344]=0;if((h| +0)==1)break s;H[d|0]=4;d=J[e+28>>2];O[d+8>>3]=i;O[d>>3]=v;J[c>>2]=J[c>>2]+1;c=J[e+8>>2];if(c){J[e+12>>2]=c;uc(c)}g=g+2|0;break j}g=Z()|0;b=J[e+8>>2];if(!b)break b;J[e+12>>2]=b;uc(b);break b}d=e+8|0;Zk(d,b,g,1);c=J[e+8>>2];i=O[c+8>>3];j=O[c>>3];J[e+12>>2]=c;uc(c);J[699344]=0;c=J[e+24>>2];J[e+8>>2]=0;d=aa(2487,c|0,d|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1){H[d|0]=2;d=J[e+8>>2];O[d+8>>3]=i;O[d>>3]=j;J[c>>2]=J[c>>2]+1;break j}g=Z()|0;break b}if((c|0)!=79)break j;Zk(e+8|0,e+20|0,0,1);c=J[e+8>>2];j=O[c+ +8>>3];i=O[c>>3];J[e+12>>2]=c;uc(c);f=J[e+24>>2];h=J[f>>2];t:{u:{v:{if(!h){if(i!=s|j!=t)break v;break t}c=h-1|0;c=J[J[f+12>>2]+(c>>>6&67108860)>>2]+(c<<4&4080)|0;t=O[c+8>>3];s=O[c>>3];if(i!=s|j!=t)break v;m=J[f+16>>2];c=0;d=0;if((h|0)!=1){n=h&-2;k=0;while(1){l=c;c=J[m+(d>>>6&67108860)>>2]+(d&254)|0;o=K[c|0];c=K[c+1|0];c=(l+((o|0)!=0&!(o&64))|0)+((c|0)!=0&!(c&64))|0;d=d+2|0;k=k+2|0;if((n|0)!=(k|0))continue;break}}if(h&1){l=c;c=K[J[m+(d>>>6&67108860)>>2]+(d&255)|0];c=l+((c|0)!=0&!(c&64))|0}if((c|0)!= +1)break u}J[699344]=0;J[e+8>>2]=0;c=aa(2487,f|0,e+8|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;H[c|0]=2;c=J[e+8>>2];O[c+8>>3]=j;O[c>>3]=i;J[f>>2]=J[f>>2]+1;f=J[e+24>>2];h=J[f>>2]}if(!h)break t;c=h-1|0;if(K[J[J[f+16>>2]+(c>>>6&67108860)>>2]+(c&255)|0]-1>>>0>13)break t;J[699344]=0;J[e+8>>2]=0;c=aa(2487,f|0,e+8|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;H[c|0]=79;c=J[e+8>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[f>>2]=J[f>>2]+1}c=J[a+4>>2];w:{if((c|0)!=J[a+8>>2]){$n(c,e+20|0); +J[a+4>>2]=c+8;break w}J[699344]=0;da(2493,a|0,e+20|0);c=J[699344];J[699344]=0;if((c|0)==1)break d}c=J[e+24>>2];H[c+25|0]=0;J[c+20>>2]=0;J[c>>2]=0;f=1}g=g+1|0;d=J[b+4>>2];if(g>>>0>2])continue;if(!f)break h;break g}H[d|0]=1;d=J[e+8>>2];O[d+8>>3]=i;O[d>>3]=j;J[c>>2]=J[c>>2]+1;f=0;g=g+1|0;d=J[b+4>>2];if(g>>>0>2])continue}break}Zk(e+8|0,e+20|0,0,1);b=J[e+8>>2];i=O[b+8>>3];p=O[b>>3];J[e+12>>2]=b;uc(b);c=J[e+24>>2];f=J[c>>2];if(f){b=f-1|0;b=J[J[c+12>>2]+(b>>>6&67108860)>>2]+(b<<4&4080)|0;q=O[b+ +8>>3];j=O[b>>3]}x:{if(!(R(p-j)<=.01&R(i-q)<=.01)){if(!f)break x;k=f&1;h=J[c+16>>2];y:{if((f|0)==1){d=0;g=0;break y}m=f&-2;d=0;g=0;b=0;while(1){l=d;d=J[h+(g>>>6&67108860)>>2]+(g&254)|0;n=K[d|0];d=K[d+1|0];d=(l+((n|0)!=0&!(n&64))|0)+((d|0)!=0&!(d&64))|0;g=g+2|0;b=b+2|0;if((m|0)!=(b|0))continue;break}}if(k){b=K[J[h+(g>>>6&67108860)>>2]+(g&255)|0];d=((b|0)!=0&!(b&64))+d|0}if((d|0)!=1)break x}z:{if(!(j!=p|i!=q)){if(!f)break x;k=f&1;h=J[c+16>>2];A:{if((f|0)==1){d=0;g=0;break A}m=f&-2;d=0;g=0;b=0;while(1){l= +d;d=J[h+(g>>>6&67108860)>>2]+(g&254)|0;n=K[d|0];d=K[d+1|0];d=(l+((n|0)!=0&!(n&64))|0)+((d|0)!=0&!(d&64))|0;g=g+2|0;b=b+2|0;if((m|0)!=(b|0))continue;break}}if(k){b=K[J[h+(g>>>6&67108860)>>2]+(g&255)|0];d=((b|0)!=0&!(b&64))+d|0}if((d|0)!=1)break z}J[699344]=0;J[e+8>>2]=0;b=aa(2487,c|0,e+8|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;H[b|0]=2;b=J[e+8>>2];O[b+8>>3]=i;O[b>>3]=p;J[c>>2]=J[c>>2]+1;c=J[e+24>>2];f=J[c>>2]}if(!f)break x;b=f-1|0;if(K[J[J[c+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]-1>>>0>13)break x; +J[699344]=0;J[e+8>>2]=0;b=aa(2487,c|0,e+8|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;H[b|0]=79;b=J[e+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[c>>2]=J[c>>2]+1}b=J[a+4>>2];if((b|0)!=J[a+8>>2]){$n(b,e+20|0);J[a+4>>2]=b+8;break g}J[699344]=0;da(2493,a|0,e+20|0);b=J[699344];J[699344]=0;if((b|0)==1)break c}ij(e+20|0);fc=e+32|0;return}g=Z()|0;break b}g=Z()|0;break b}g=Z()|0;break b}g=Z()|0}ij(e+20|0);break a}g=Z()|0}tD(a);ba(g|0);B()}function X5(a){a=a|0;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;c=J[a+20>>2];if((c|0)!=202){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;kc[J[J[a>>2]>>2]](a)}b=a;c=J[b+424>>2];d=P(c,J[b+48>>2]);e=J[b+52>>2];a:{if(d>>>0<=e>>>0){J[b+112>>2]=((c+J[b+28>>2]|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+J[b+32>>2]|0)-1|0)/(a|0)|0;J[b+320>>2]=1;J[b+324>>2]=1;J[b+116>>2]=a;a=1;break a}if(d>>>0<=e<<1>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<1)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<1)|0)-1|0)/(a|0)|0;J[b+320>>2]=2;J[b+324>>2]=2;J[b+116>>2]=a;a=2;break a}a=3;if(d>>> +0<=P(e,3)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],3)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],3)|0)-1|0)/(c|0)|0;J[b+320>>2]=3;J[b+324>>2]=3;J[b+116>>2]=c;break a}if(d>>>0<=e<<2>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<2)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<2)|0)-1|0)/(a|0)|0;J[b+320>>2]=4;J[b+324>>2]=4;J[b+116>>2]=a;a=4;break a}a=5;if(d>>>0<=P(e,5)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],5)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],5)|0)-1|0)/(c|0)|0;J[b+320>>2]=5;J[b+324>>2]=5;J[b+116>>2]=c; +break a}a=6;if(d>>>0<=P(e,6)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],6)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],6)|0)-1|0)/(c|0)|0;J[b+320>>2]=6;J[b+324>>2]=6;J[b+116>>2]=c;break a}a=7;if(d>>>0<=P(e,7)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],7)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],7)|0)-1|0)/(c|0)|0;J[b+320>>2]=7;J[b+324>>2]=7;J[b+116>>2]=c;break a}if(d>>>0<=e<<3>>>0){J[b+112>>2]=((c+(J[b+28>>2]<<3)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<3)|0)-1|0)/(a|0)|0;J[b+320>>2]=8;J[b+324>>2]=8; +J[b+116>>2]=a;a=8;break a}a=9;if(d>>>0<=P(e,9)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],9)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],9)|0)-1|0)/(c|0)|0;J[b+320>>2]=9;J[b+324>>2]=9;J[b+116>>2]=c;break a}a=10;if(d>>>0<=P(e,10)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],10)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],10)|0)-1|0)/(c|0)|0;J[b+320>>2]=10;J[b+324>>2]=10;J[b+116>>2]=c;break a}a=11;if(d>>>0<=P(e,11)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],11)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],11)|0)-1|0)/(c| +0)|0;J[b+320>>2]=11;J[b+324>>2]=11;J[b+116>>2]=c;break a}a=12;if(d>>>0<=P(e,12)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],12)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],12)|0)-1|0)/(c|0)|0;J[b+320>>2]=12;J[b+324>>2]=12;J[b+116>>2]=c;break a}a=13;if(d>>>0<=P(e,13)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],13)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],13)|0)-1|0)/(c|0)|0;J[b+320>>2]=13;J[b+324>>2]=13;J[b+116>>2]=c;break a}a=14;if(d>>>0<=P(e,14)>>>0){J[b+112>>2]=((c+P(J[b+28>>2],14)|0)-1|0)/(c|0);c=J[b+424>> +2];c=((c+P(J[b+32>>2],14)|0)-1|0)/(c|0)|0;J[b+320>>2]=14;J[b+324>>2]=14;J[b+116>>2]=c;break a}a=15;f=J[b+28>>2];if(d>>>0<=P(e,15)>>>0){J[b+112>>2]=((c+P(f,15)|0)-1|0)/(c|0);c=J[b+424>>2];c=((c+P(J[b+32>>2],15)|0)-1|0)/(c|0)|0;J[b+320>>2]=15;J[b+324>>2]=15;J[b+116>>2]=c;break a}J[b+112>>2]=((c+(f<<4)|0)-1|0)/(c|0);a=J[b+424>>2];a=((a+(J[b+32>>2]<<4)|0)-1|0)/(a|0)|0;J[b+320>>2]=16;J[b+324>>2]=16;J[b+116>>2]=a;a=16}e=J[b+36>>2];b:{if((e|0)<=0)break b;c=J[b+216>>2];if(e>>>0>=8){f=e&-8;d=0;while(1){J[c+ +40>>2]=a;J[c+36>>2]=a;J[c+656>>2]=a;J[c+652>>2]=a;J[c+568>>2]=a;J[c+564>>2]=a;J[c+480>>2]=a;J[c+476>>2]=a;J[c+392>>2]=a;J[c+388>>2]=a;J[c+304>>2]=a;J[c+300>>2]=a;J[c+216>>2]=a;J[c+212>>2]=a;J[c+128>>2]=a;J[c+124>>2]=a;c=c+704|0;d=d+8|0;if((f|0)!=(d|0))continue;break}}e=e&7;if(!e)break b;d=0;while(1){J[c+40>>2]=a;J[c+36>>2]=a;c=c+88|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}i=J[b+36>>2];c:{if((i|0)<=0)break c;c=J[b+216>>2];e=J[b+324>>2];l=J[b+76>>2]?8:4;f=J[b+320>>2];d:{if((l|0)<(f|0)){h=f<<1;if((e| +0)>(l|0)){d=e<<1;if((d|0)<(f|0)){a=c;if(i>>>0>=8){h=i&-8;f=0;while(1){J[a+36>>2]=d;J[a+40>>2]=e;J[a+128>>2]=e;J[a+216>>2]=e;J[a+124>>2]=d;J[a+304>>2]=e;J[a+212>>2]=d;J[a+392>>2]=e;J[a+300>>2]=d;J[a+480>>2]=e;J[a+388>>2]=d;J[a+568>>2]=e;J[a+476>>2]=d;J[a+656>>2]=e;J[a+564>>2]=d;J[a+652>>2]=d;a=a+704|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}h=i&7;if(!h)break d;f=0;while(1){J[a+36>>2]=d;J[a+40>>2]=e;a=a+88|0;f=f+1|0;if((h|0)!=(f|0))continue;break}break d}if((e|0)<=(h|0)){a=c;if(i>>>0>=8){d=i&-8;while(1){J[a+ +40>>2]=e;J[a+36>>2]=f;J[a+656>>2]=e;J[a+652>>2]=f;J[a+568>>2]=e;J[a+564>>2]=f;J[a+480>>2]=e;J[a+476>>2]=f;J[a+392>>2]=e;J[a+388>>2]=f;J[a+304>>2]=e;J[a+300>>2]=f;J[a+216>>2]=e;J[a+212>>2]=f;J[a+128>>2]=e;J[a+124>>2]=f;a=a+704|0;g=g+8|0;if((d|0)!=(g|0))continue;break}}d=i&7;if(!d)break d;g=0;while(1){J[a+40>>2]=e;J[a+36>>2]=f;a=a+88|0;g=g+1|0;if((d|0)!=(g|0))continue;break}break d}a=c;if(i>>>0>=8){e=i&-8;d=0;while(1){J[a+40>>2]=h;J[a+36>>2]=f;J[a+656>>2]=h;J[a+652>>2]=f;J[a+568>>2]=h;J[a+564>>2]=f; +J[a+480>>2]=h;J[a+476>>2]=f;J[a+392>>2]=h;J[a+388>>2]=f;J[a+304>>2]=h;J[a+300>>2]=f;J[a+216>>2]=h;J[a+212>>2]=f;J[a+128>>2]=h;J[a+124>>2]=f;a=a+704|0;d=d+8|0;if((e|0)!=(d|0))continue;break}}e=i&7;if(!e)break d;d=0;while(1){J[a+40>>2]=h;J[a+36>>2]=f;a=a+88|0;d=d+1|0;if((e|0)!=(d|0))continue;break}break d}m=J[b+316>>2];a=c;while(1){J[a+36>>2]=f;d=e;j=J[a+12>>2];e:{if((m|0)%(j<<1)|0)break e;g=2;while(1){d=P(e,g);if((l|0)<(d|0))break e;g=g<<1;if(!((m|0)%(P(j,g)|0)|0))continue;break}}J[a+40>>2]=d;g=d<< +1;f:{if((g|0)>=(f|0)){if((d|0)<=(h|0))break f;J[a+40>>2]=h;break f}J[a+36>>2]=g}a=a+88|0;k=k+1|0;if((k|0)!=(i|0))continue;break}break d}m=J[b+312>>2];if((e|0)>(l|0)){h=e<<1;a=c;while(1){d=f;j=J[a+8>>2];g:{if((m|0)%(j<<1)|0)break g;g=2;while(1){d=P(f,g);if((l|0)<(d|0))break g;g=g<<1;if(!((m|0)%(P(j,g)|0)|0))continue;break}}J[a+40>>2]=e;J[a+36>>2]=d;h:{if((d|0)<=(h|0)){d=d<<1;if((d|0)>=(e|0))break h;J[a+40>>2]=d;break h}J[a+36>>2]=h}a=a+88|0;k=k+1|0;if((k|0)!=(i|0))continue;break}break d}k=J[b+316>> +2];a=c;while(1){d=f;h=J[a+8>>2];i:{if((m|0)%(h<<1)|0)break i;g=2;while(1){d=P(f,g);if((l|0)<(d|0))break i;g=g<<1;if(!((m|0)%(P(h,g)|0)|0))continue;break}}J[a+36>>2]=d;h=e;j=J[a+12>>2];j:{if((k|0)%(j<<1)|0)break j;g=2;while(1){h=P(e,g);if((l|0)<(h|0))break j;g=g<<1;if(!((k|0)%(P(j,g)|0)|0))continue;break}}J[a+40>>2]=h;g=h<<1;k:{if((g|0)<(d|0)){J[a+36>>2]=g;break k}d=d<<1;if((d|0)>=(h|0))break k;J[a+40>>2]=d}a=a+88|0;n=n+1|0;if((n|0)!=(i|0))continue;break}}if((i|0)<=0)break c;a=0;while(1){d=P(J[b+424>> +2],J[b+312>>2]);J[c+44>>2]=((d+P(J[c+36>>2],P(J[c+8>>2],J[b+28>>2]))|0)-1|0)/(d|0);d=P(J[b+424>>2],J[b+316>>2]);J[c+48>>2]=((d+P(J[c+40>>2],P(J[c+12>>2],J[b+32>>2]))|0)-1|0)/(d|0);c=c+88|0;a=a+1|0;i=J[b+36>>2];if((a|0)<(i|0))continue;break}}a=J[b+44>>2]-1|0;if(a>>>0<=4)i=J[(a<<2)+53252>>2];J[b+120>>2]=i;J[b+124>>2]=J[b+84>>2]?1:i;if(W5(b))a=J[b+316>>2];else a=1;J[b+128>>2]=a}function nM(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;b=fc-160|0;fc=b;a:{h=J[a+ +108>>2];k=J[a+112>>2];b:{if(!((h|0)!=(k|0)&(!K[J[h>>2]+225|0]|(k-h|0)!=16))){H[b+135|0]=0;H[b+136|0]=0;H[b+137|0]=0;H[b+138|0]=0;J[b+128>>2]=0;J[b+132>>2]=0;J[b+120>>2]=0;J[b+124>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+152>>2]=0;J[b+156>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+140>>2]=-1;H[b+63|0]=0;H[b+64|0]=0;H[b+65|0]=0;H[b+66|0]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]= +0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+68>>2]=-1;d=J[a+36>>2];f=J[a+40>>2];if((d|0)!=(f|0))while(1){c:{if(J[d+64>>2])break c;O[b+88>>3]=O[d>>3];O[b+96>>3]=O[d+8>>3];O[b+104>>3]=O[d+16>>3];O[b+112>>3]=O[d+24>>3];O[b+120>>3]=O[d+32>>3];O[b+128>>3]=O[d+40>>3];c=J[d+60>>2];J[b+144>>2]=J[d+56>>2];J[b+148>>2]=c;c=J[d+52>>2];J[b+136>>2]=J[d+48>>2];J[b+140>>2]=c;e=J[d+68>>2];if(e)J[e+4>>2]=J[e+4>>2]+1;J[b+152>>2]=0;c=J[b+ +156>>2];J[b+156>>2]=e;if(!c)break c;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break c;kc[J[J[c>>2]+8>>2]](c);Gc(c)}d=d+72|0;if((f|0)!=(d|0))continue;break}d=J[a+48>>2];g=J[a+52>>2];if((d|0)!=(g|0)){e=b- -64|0;while(1){d:{if(J[d+64>>2])break d;O[b+16>>3]=O[d>>3];O[b+24>>3]=O[d+8>>3];O[b+32>>3]=O[d+16>>3];O[b+40>>3]=O[d+24>>3];O[b+48>>3]=O[d+32>>3];O[b+56>>3]=O[d+40>>3];c=J[d+60>>2];J[e+8>>2]=J[d+56>>2];J[e+12>>2]=c;c=J[d+52>>2];J[e>>2]=J[d+48>>2];J[e+4>>2]=c;f=J[d+68>>2];if(f)J[f+4>>2]=J[f+4>>2]+1;J[b+80>>2]= +0;c=J[b+84>>2];J[b+84>>2]=f;if(!c)break d;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break d;kc[J[J[c>>2]+8>>2]](c);Gc(c)}d=d+72|0;if((g|0)!=(d|0))continue;break}}d=0;J[b+12>>2]=0;e:{e=J[a+72>>2];c=J[a+76>>2];if((e|0)!=(c|0)){while(1){J[699344]=0;f=na(2509,b|0,2772320,b+88|0,e|0,b+12|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;d=d+f|0;e=e+144|0;if((c|0)!=(e|0))continue;break}d=(d|0)%2|0}e=J[a+36>>2];c=J[a+40>>2];if((e|0)!=(c|0))while(1){J[e+60>>2]=d;e=e+72|0;if((c|0)!=(e|0))continue;break}d=0;J[b+12>>2]= +0;e=J[a+60>>2];c=J[a- -64>>2];if((e|0)!=(c|0)){while(1){J[699344]=0;f=na(2509,b|0,2772320,b+16|0,e|0,b+12|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;d=d+f|0;e=e+144|0;if((c|0)!=(e|0))continue;break}d=(d|0)%2|0}e=J[a+48>>2];c=J[a+52>>2];if((e|0)!=(c|0))while(1){J[e+60>>2]=d;e=e+72|0;if((c|0)!=(e|0))continue;break}c=J[b+84>>2];f:{if(!c)break f;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break f;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+156>>2];if(!c)break b;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break b;kc[J[J[c>>2]+8>> +2]](c);Gc(c);break b}break a}t=a+60|0;u=a+72|0;g=b- -64|0;while(1){d=J[h>>2];O[b+88>>3]=O[d+144>>3];O[b+96>>3]=O[d+152>>3];O[b+104>>3]=O[d+160>>3];O[b+112>>3]=O[d+168>>3];O[b+120>>3]=O[d+176>>3];O[b+128>>3]=O[d+184>>3];c=J[d+204>>2];J[b+144>>2]=J[d+200>>2];J[b+148>>2]=c;c=J[d+196>>2];J[b+136>>2]=J[d+192>>2];J[b+140>>2]=c;J[b+152>>2]=J[d+208>>2];c=J[d+212>>2];J[b+156>>2]=c;if(c){J[c+4>>2]=J[c+4>>2]+1;d=J[h>>2]}c=J[d+196>>2];g:{h:{i:{j:{if(J[d+200>>2]==1){e=J[a+36>>2];if((c|0)!=(((J[a+40>>2]-e|0)/72| +0)-1|0))break i;if(K[d+194|0])break j;break h}e=J[a+48>>2];if((c|0)!=(((J[a+52>>2]-e|0)/72|0)-1|0))break i;if(!K[d+194|0])break h}O[b+16>>3]=O[e>>3];O[b+24>>3]=O[e+8>>3];O[b+32>>3]=O[e+16>>3];O[b+40>>3]=O[e+24>>3];O[b+48>>3]=O[e+32>>3];O[b+56>>3]=O[e+40>>3];c=J[e+60>>2];J[g+8>>2]=J[e+56>>2];J[g+12>>2]=c;c=J[e+52>>2];J[g>>2]=J[e+48>>2];J[g+4>>2]=c;J[b+80>>2]=J[e+64>>2];c=J[e+68>>2];J[b+84>>2]=c;if(!c)break g;J[c+4>>2]=J[c+4>>2]+1;break g}c=P(c,72)+e|0;O[b+16>>3]=O[c+72>>3];O[b+24>>3]=O[c+80>>3];O[b+ +32>>3]=O[c+88>>3];O[b+40>>3]=O[c+96>>3];O[b+48>>3]=O[c+104>>3];O[b+56>>3]=O[c+112>>3];d=J[c+132>>2];J[g+8>>2]=J[c+128>>2];J[g+12>>2]=d;d=J[c+124>>2];J[g>>2]=J[c+120>>2];J[g+4>>2]=d;J[b+80>>2]=J[c+136>>2];c=J[c+140>>2];J[b+84>>2]=c;if(!c)break g;J[c+4>>2]=J[c+4>>2]+1;break g}H[b+63|0]=0;H[b+64|0]=0;H[b+65|0]=0;H[b+66|0]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+68>>2]=-1;J[b+80>> +2]=0;J[b+84>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0}k:{l:{m:{f=J[b+72>>2];c=J[b+68>>2];if(f|(c|0)!=-1|(O[b+16>>3]!=0|O[b+24>>3]!=0))break m;if(O[b+32>>3]!=0|O[b+40>>3]!=0)break m;if(!(O[b+48>>3]!=0|O[b+56>>3]!=0))break k;if(!J[b+80>>2])break l;break k}if(J[b+80>>2])break k}if((c|0)==J[b+140>>2]&J[b+144>>2]==(f|0))break k;e=0;J[b+12>>2]=0;c=(f|0)==1;d=J[(c?72:60)+a>>2];c=J[(c?u:t)+4>>2];if((d|0)!=(c|0)){while(1){J[699344]=0;f=na(2509,b|0,2772320,b+16|0,d|0,b+12|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break a; +e=e+f|0;d=d+144|0;if((c|0)!=(d|0))continue;break}f=J[b+72>>2]}s=(e|0)%2|0;while(1){c=J[b+68>>2];n:{o:{p:{q:{if((f|0)==1){d=J[a+36>>2];J[(d+P(c,72)|0)+60>>2]=s;if((c|0)!=(((J[a+40>>2]-d|0)/72|0)-1|0))break p;if(K[b+66|0])break q;break o}d=J[a+48>>2];J[(d+P(c,72)|0)+60>>2]=s;if((c|0)!=(((J[a+52>>2]-d|0)/72|0)-1|0))break p;if(!K[b+66|0])break o}l=O[d+40>>3];m=O[d+24>>3];i=J[d+64>>2];c=J[d+56>>2];n=J[d+60>>2];f=J[d+52>>2];j=J[d+48>>2];o=O[d+32>>3];p=O[d+16>>3];q=O[d+8>>3];r=O[d>>3];e=J[d+68>>2];if(!e){e= +0;break n}J[e+4>>2]=J[e+4>>2]+1;break n}d=P(c,72)+d|0;i=J[d+136>>2];c=J[d+128>>2];n=J[d+132>>2];f=J[d+124>>2];j=J[d+120>>2];l=O[d+112>>3];o=O[d+104>>3];m=O[d+96>>3];p=O[d+88>>3];q=O[d+80>>3];r=O[d+72>>3];e=J[d+140>>2];if(!e){e=0;break n}J[e+4>>2]=J[e+4>>2]+1;break n}j=j&-16777216;f=-1;i=0;r=0;c=0;n=0;q=0;p=0;m=0;o=0;l=0;e=0}J[b+80>>2]=i;J[b+72>>2]=c;J[b+76>>2]=n;J[b+68>>2]=f;J[b+64>>2]=j;O[b+56>>3]=l;O[b+48>>3]=o;O[b+40>>3]=m;O[b+32>>3]=p;O[b+24>>3]=q;O[b+16>>3]=r;c=J[b+84>>2];J[b+84>>2]=e;r:{if(!c)break r; +d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break r;kc[J[J[c>>2]+8>>2]](c);Gc(c)}s:{t:{f=J[b+72>>2];c=J[b+68>>2];if(f|(c|0)!=-1|(O[b+16>>3]!=0|O[b+24>>3]!=0))break t;if(O[b+32>>3]!=0|O[b+40>>3]!=0)break t;if(O[b+48>>3]==0&O[b+56>>3]==0)break k;if(!J[b+80>>2])break s;break k}if(J[b+80>>2])break k}if((c|0)!=J[b+140>>2]|J[b+144>>2]!=(f|0))continue;break}}c=J[b+84>>2];u:{if(!c)break u;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break u;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[b+156>>2];v:{if(!c)break v;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break v; +kc[J[J[c>>2]+8>>2]](c);Gc(c)}h=h+8|0;if((k|0)!=(h|0))continue;break}}w:{if(!(H[a+8|0]&1))break w;d=J[a+48>>2];a=J[a+52>>2];if((d|0)==(a|0))break w;while(1){J[d+60>>2]=0;d=d+72|0;if((a|0)!=(d|0))continue;break}}fc=b+160|0;return}a=Z()|0;bn(b+16|0);bn(b+88|0);ba(a|0);B()}function uWa(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;n=fc-256|0;fc=n;c=J[a+420>>2];f=J[a+24>>2];J[c+112>>2]=J[f>>2];J[c+116>>2]=J[f+4>>2];if(!(J[c+36>>2]|!J[a+236>>2]))ZB(c,J[c+40>> +2]);a:{b:{c:{d=J[a+360>>2];q=J[a+364>>2];k=(d|0)>(q|0);if(!k){r=J[b>>2];s=J[a+380>>2];b=J[a+372>>2];f=(q-d|0)+1|0;h=f&1;if((d|0)!=(q|0))break c;f=d;break b}b=0;break a}l=f&-2;f=d;while(1){g=f<<2;m=I[(J[g+s>>2]<<1)+r>>1];j=m>>31;i=g+n|0;g=(j^m)-j>>>b|0;J[i>>2]=g;m=f+1|0;i=m<<2;o=I[(J[i+s>>2]<<1)+r>>1];j=o>>31;j=(j^o)-j>>>b|0;J[i+n>>2]=j;t=(j|0)==1?m:(g|0)==1?f:t;f=f+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}}if(h){j=f<<2;h=I[(J[j+s>>2]<<1)+r>>1];e=h>>31;b=(e^h)-e>>>b|0;J[j+n>>2]=b;t=(b|0)==1?f:t}h= +0;b=0;if(k)break a;l=J[c+136>>2]+J[c+132>>2]|0;f=0;while(1){j=d;o=d<<2;m=J[o+n>>2];d:{if(m){if(!((f|0)<16|(d|0)>(t|0)))while(1){k=f;f=0;e:{f:{g:{d=J[c+128>>2];switch(d|0){case 0:break e;case 1:break f;default:break g}}while(1){b=f;f=b+1|0;d=d>>1;if(d>>>0>1)continue;break}if(b>>>0<14)break f;b=J[c+120>>2];d=J[b>>2];J[d+20>>2]=41;kc[J[d>>2]](b)}b=f<<4;d=J[c+124>>2];g=J[c+108>>2];h:{if(g){b=J[((d<<2)+c|0)+92>>2]+(b<<2)|0;J[b>>2]=J[b>>2]+1;break h}d=J[((d<<2)+c|0)+60>>2];e=J[d+(b<<2)>>2];i=J[c+16>>2]; +b=H[(b+d|0)+1024|0];if(!b){d=J[c+120>>2];g=J[d>>2];J[g+20>>2]=41;kc[J[g>>2]](d);g=J[c+108>>2];if(g)break h}d=e&(-1<>2]|d<<24-e;g=0;if((e|0)>=8){while(1){b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=d>>>16;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(!b){g=J[c+120>>2];b=J[g+24>>2];if(!(kc[J[b+12>>2]](g)|0)){g=J[c+120>>2];i=J[g>>2];J[i+20>>2]=25;kc[J[i>>2]](g)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=e;i:{if((d&16711680)!=16711680)break i;e=J[c+112>>2];J[c+112>>2]=e+1;H[e|0]=0;e=J[c+116>>2]- +1|0;J[c+116>>2]=e;if(e)break i;g=J[c+120>>2];e=J[g+24>>2];if(!(kc[J[e+12>>2]](g)|0)){g=J[c+120>>2];i=J[g>>2];J[i+20>>2]=25;kc[J[i>>2]](g)}J[c+112>>2]=J[e>>2];J[c+116>>2]=J[e+4>>2]}e=b-8|0;d=d<<8;if((b|0)>15)continue;break}g=J[c+108>>2]}J[c+16>>2]=e;J[c+12>>2]=d}j:{if(f){if(g){J[c+128>>2]=0;break j}b=J[c+16>>2]+f|0;f=J[c+12>>2]|(J[c+128>>2]&(-1<=8){while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(kc[J[d+ +12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;kc[J[g>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;k:{if((f&16711680)!=16711680)break k;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break k;e=J[c+120>>2];b=J[e+24>>2];if(!(kc[J[b+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;kc[J[g>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}g=J[c+108>>2]}J[c+16>>2]=b;J[c+12>>2]=f}J[c+128>>2]=0;i=J[c+132>>2];if(g|!i)break j; +e=J[c+136>>2];while(1){if(!J[c+108>>2]){d=J[c+16>>2];f=J[c+12>>2]|(H[e|0]&1)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){g=J[c+120>>2];d=J[g+24>>2];if(!(kc[J[d+12>>2]](g)|0)){g=J[c+120>>2];p=J[g>>2];J[p+20>>2]=25;kc[J[p>>2]](g)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;l:{if((f&16711680)!=16711680)break l;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break l;g=J[c+120>>2];b=J[g+24>>2];if(!(kc[J[b+ +12>>2]](g)|0)){g=J[c+120>>2];p=J[g>>2];J[p+20>>2]=25;kc[J[p>>2]](g)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}e=e+1|0;i=i-1|0;if(i)continue;break}}J[c+132>>2]=0}b=J[c+124>>2];m:{if(J[c+108>>2]){b=J[((b<<2)+c|0)+92>>2];J[b+960>>2]=J[b+960>>2]+1;break m}b=J[((b<<2)+c|0)+60>>2];f=J[b+960>>2];d=J[c+16>>2];b=H[b+1264|0];if(!b){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=41;kc[J[g>>2]](e);if(J[c+108>>2])break m}f=f&(-1<> +2]|f<<24-b;d=0;if((b|0)>=8){while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(kc[J[d+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;kc[J[g>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;n:{if((f&16711680)!=16711680)break n;b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break n;e=J[c+120>>2];b=J[e+24>>2];if(!(kc[J[b+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;kc[J[g>>2]](e)}J[c+ +112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}d=J[c+108>>2]}J[c+16>>2]=b;J[c+12>>2]=f;if(d|!h)break m;while(1){if(!J[c+108>>2]){d=J[c+16>>2];f=J[c+12>>2]|(H[l|0]&1)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(kc[J[d+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;kc[J[g>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;o:{if((f&16711680)!=16711680)break o; +b=J[c+112>>2];J[c+112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break o;e=J[c+120>>2];b=J[e+24>>2];if(!(kc[J[b+12>>2]](e)|0)){e=J[c+120>>2];g=J[e>>2];J[g+20>>2]=25;kc[J[g>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}l=l+1|0;h=h-1|0;if(h)continue;break}}f=k-16|0;l=J[c+136>>2];h=0;if((k|0)>31)continue;break}if((m|0)>=2){H[h+l|0]=m&1;h=h+1|0;break d}b=f<<4|1;Ir(c);f=J[c+124>>2];p:{if(J[c+108>>2]){b=J[((f<<2)+c|0)+92>> +2]+(b<<2)|0;J[b>>2]=J[b>>2]+1;break p}f=J[((f<<2)+c|0)+60>>2];Gr(c,J[f+(b<<2)>>2],H[(b+f|0)+1024|0]);if(J[c+108>>2])break p;d=J[c+16>>2];f=J[c+12>>2]|(I[(J[s+o>>2]<<1)+r>>1]>=0)<<23-d;b=d+1|0;if((d|0)>=7)while(1){d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=f>>>16;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(!d){e=J[c+120>>2];d=J[e+24>>2];if(!(kc[J[d+12>>2]](e)|0)){e=J[c+120>>2];k=J[e>>2];J[k+20>>2]=25;kc[J[k>>2]](e)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=b;q:{if((f&16711680)!=16711680)break q;b=J[c+112>>2];J[c+ +112>>2]=b+1;H[b|0]=0;b=J[c+116>>2]-1|0;J[c+116>>2]=b;if(b)break q;e=J[c+120>>2];b=J[e+24>>2];if(!(kc[J[b+12>>2]](e)|0)){e=J[c+120>>2];k=J[e>>2];J[k+20>>2]=25;kc[J[k>>2]](e)}J[c+112>>2]=J[b>>2];J[c+116>>2]=J[b+4>>2]}b=d-8|0;f=f<<8;if((d|0)>15)continue;break}J[c+16>>2]=b;J[c+12>>2]=f}o0(c,l,h);l=J[c+136>>2];h=0;f=0;break d}f=f+1|0}d=j+1|0;if((j|0)!=(q|0))continue;break}b=(f|0)>0}r:{if(!(b|h))break r;b=J[c+128>>2]+1|0;J[c+128>>2]=b;f=J[c+132>>2]+h|0;J[c+132>>2]=f;if((b|0)!=32767&f>>>0<938)break r;Ir(c)}b= +J[a+24>>2];J[b>>2]=J[c+112>>2];J[b+4>>2]=J[c+116>>2];a=J[a+236>>2];if(a){b=J[c+36>>2];if(b)a=b;else J[c+40>>2]=J[c+40>>2]+1&7;J[c+36>>2]=a-1}fc=n+256|0;return 1}function Vta(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,y=0,z=0,A=0,B=0,C=0,D=0;if(J[a+12>>2]>=0){a:{if(qV(a,J[a+8>>2]))break a;e=J[a+4>>2];if(J[e+20>>2]<=0)break a;while(1){f=J[a+8>>2];t=f;d=C<<4;u=d+J[e>>2]|0;s=d+J[a+508>>2]|0;d=f<<3;B=J[d+2427344>>2];q=J[d+2427348>>2];h= +0;l=0;b:{c:{if(f){d=0;if((q|0)<=0)break b;g=J[((f<<2)+a|0)+16>>2];j=0-g|0;e=a+120|0;while(1){D=a+l|0;f=l+B|0;c=f>>4<<2;i=J[c+u>>2];d=8;d:{if(!i)break d;d=i;i=(f&15)<<2;f=J[d+i>>2];c=J[c+s>>2];e:{if(c){d=8;if(!f)break d;i=J[c+i>>2];if(!i)break e;d=2;c=2;if(!L[i>>1]){c=I[f>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e|0]=c;if(!L[i+2>>1]){d=I[f+2>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+1|0]=d;k=c|d;d=2;c=2;if(!L[i+4>>1]){c=I[f+4>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+2|0]=c;if(!L[i+6>>1]){d=I[f+ +6>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+3|0]=d;k=c|k|d;d=2;c=2;if(!L[i+8>>1]){c=I[f+8>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+4|0]=c;if(!L[i+10>>1]){d=I[f+10>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+5|0]=d;k=c|k|d;d=2;c=2;if(!L[i+12>>1]){c=I[f+12>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+6|0]=c;if(!L[i+14>>1]){d=I[f+14>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+7|0]=d;k=c|k|d;d=2;c=2;if(!L[i+16>>1]){c=I[f+16>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+8|0]=c;if(!L[i+18>>1]){d=I[f+18>>1]; +d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+9|0]=d;k=c|k|d;d=2;c=2;if(!L[i+20>>1]){c=I[f+20>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+10|0]=c;if(!L[i+22>>1]){d=I[f+22>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+11|0]=d;k=c|k|d;d=2;c=2;if(!L[i+24>>1]){c=I[f+24>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+12|0]=c;if(!L[i+26>>1]){d=I[f+26>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+13|0]=d;k=c|k|d;d=2;c=2;if(!L[i+28>>1]){c=I[f+28>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12}H[e+14|0]=c;if(!L[i+30>>1]){d=I[f+30>>1]; +d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12}H[e+15|0]=d;d=c|k|d;break d}d=8;if(!f)break d}d=I[f>>1];d=(d|0)>=(g|0)?12:(d|0)>(j|0)?8:12;H[e|0]=d;c=I[f+2>>1];c=(c|0)>=(g|0)?12:(c|0)>(j|0)?8:12;H[e+1|0]=c;i=I[f+4>>1];i=(g|0)<=(i|0)?12:(i|0)>(j|0)?8:12;H[e+2|0]=i;k=I[f+6>>1];k=(g|0)<=(k|0)?12:(k|0)>(j|0)?8:12;H[e+3|0]=k;m=I[f+8>>1];m=(g|0)<=(m|0)?12:(m|0)>(j|0)?8:12;H[e+4|0]=m;p=I[f+10>>1];p=(g|0)<=(p|0)?12:(p|0)>(j|0)?8:12;H[e+5|0]=p;o=I[f+12>>1];o=(g|0)<=(o|0)?12:(o|0)>(j|0)?8:12;H[e+6|0]=o;r=I[f+14>>1];r=(g| +0)<=(r|0)?12:(r|0)>(j|0)?8:12;H[e+7|0]=r;n=I[f+16>>1];n=(g|0)<=(n|0)?12:(n|0)>(j|0)?8:12;H[e+8|0]=n;v=I[f+18>>1];v=(g|0)<=(v|0)?12:(v|0)>(j|0)?8:12;H[e+9|0]=v;w=I[f+20>>1];w=(g|0)<=(w|0)?12:(w|0)>(j|0)?8:12;H[e+10|0]=w;x=I[f+22>>1];x=(g|0)<=(x|0)?12:(x|0)>(j|0)?8:12;H[e+11|0]=x;y=I[f+24>>1];y=(g|0)<=(y|0)?12:(y|0)>(j|0)?8:12;H[e+12|0]=y;z=I[f+26>>1];z=(g|0)<=(z|0)?12:(z|0)>(j|0)?8:12;H[e+13|0]=z;A=I[f+28>>1];A=(g|0)<=(A|0)?12:(A|0)>(j|0)?8:12;H[e+14|0]=A;f=I[f+30>>1];f=(f|0)>=(g|0)?12:(f|0)>(j|0)? +8:12;H[e+15|0]=f;d=f|(A|(z|(y|(x|(w|(v|(n|(r|(o|(p|(m|(k|(i|(c|d))))))))))))))}H[D+376|0]=d;e=e+16|0;h=d|h;l=l+1|0;if((q|0)!=(l|0))continue;break}break c}f=J[a+4>>2];e=J[u>>2];if(!e){e=nA(f);J[u>>2]=e}d=J[e>>2];if(!d){d=oA(f);J[J[u>>2]>>2]=d;d=J[J[u>>2]>>2]}f=a+508|0;e=J[s>>2];if(!e){e=nA(f);J[s>>2]=e}c=J[e>>2];if(!c){f=oA(f);J[J[s>>2]>>2]=f;c=J[J[s>>2]>>2]}g=a+120|0;e=0;while(1){j=e+g|0;f=1;f:{if(K[j|0]==1)break f;i=e<<1;f=2;if(L[i+c>>1])break f;i=I[d+i>>1];f=J[((e<<2)+a|0)+56>>2];f=(f|0)<=(i|0)? +12:(i|0)>(0-f|0)?8:12}H[j|0]=f;h=f|h;e=e+1|0;if((e|0)!=16)continue;break}H[a+376|0]=h}d=h}g:{if(!(!(d&2)&(q|0)>=16)){d=d|4;break g}if(!(d&8))break g;f=a+505|0;e=K[a+505|0];h=J[((e<<2)+b|0)+44>>2]+J[b+20>>2]|0;if((e^d>>>2)&1){Oh(b,f,h);break g}if(h>>>0>=32768){Ph(b,f,h);break g}J[b+20>>2]=h}h:{if(!(d&4)|(q|0)<=0)break h;f=d<<1&4;i:{if((t|0)>0){g=0;j=(t<<3)+a|0;while(1){i=K[(a+g|0)+376|0];j:{if(!(i&8))break j;e=0;h=g+B<<2;c=J[(h>>8<<2)+s>>2];k:{if(!c)break k;c=J[c+(h>>>2&60)>>2];if(!c)break k;e=3;l= +(h&12)<<1;h=l+c|0;n=L[h>>1];h=(L[h+2>>1]?n?2:1:(n|0)!=0)+(L[h+4>>1]!=0)|0;if(h>>>0>2)break k;e=h+(L[c+(l|6)>>1]!=0)|0}e=(j+(e|f)|0)+424|0;c=K[e|0];h=J[((c<<2)+b|0)+44>>2]+J[b+20>>2]|0;if((c&1)!=(i>>>2&1)){Oh(b,e,h);break j}if(h>>>0<=32767){J[b+20>>2]=h;break j}Ph(b,e,h)}g=g+1|0;if((q|0)!=(g|0))continue;break}break i}f=(f+((t<<3)+a|0)|0)+424|0;g=0;while(1){e=K[(a+g|0)+376|0];l:{if(!(e&8))break l;c=K[f|0];h=J[((c<<2)+b|0)+44>>2]+J[b+20>>2]|0;if((c&1)!=(e>>>2&1)){Oh(b,f,h);break l}if(h>>>0>=32768){Ph(b, +f,h);break l}J[b+20>>2]=h}g=g+1|0;if((q|0)!=(g|0))continue;break}}if((q|0)<=0)break h;n=a+508|0;e=a+120|0;j=J[((t<<2)+a|0)+16>>2];i=0;while(1){p=a+i|0;if(K[p+376|0]&4){k=((((((((((((K[e|0]>>>3&1)+(K[e+1|0]>>>3&1)|0)+(K[e+2|0]>>>3&1)|0)+(K[e+3|0]>>>3&1)|0)+(K[e+4|0]>>>3&1)|0)+(K[e+5|0]>>>3&1)|0)+(K[e+6|0]>>>3&1)|0)+(K[e+7|0]>>>3&1)|0)+(K[e+8|0]>>>3&1)|0)+(K[e+9|0]>>>3&1)|0)+(K[e+10|0]>>>3&1)|0)+(K[e+11|0]>>>3&1)|0)+(K[e+12|0]>>>3&1)|0;m=K[e+13|0]>>>3&1;o=K[e+14|0]>>>3|0;g=i+B|0;c=g>>4<<2;h=J[c+u>> +2];if(h)f=J[h+((g&15)<<2)>>2];else f=0;r=K[e+15|0]>>>3|0;h=c+s|0;c=J[h>>2];if(!c){c=nA(n);J[h>>2]=c}l=c;c=(g&15)<<2;l=J[l+c>>2];if(!l){g=oA(n);J[c+J[h>>2]>>2]=g;l=J[c+J[h>>2]>>2]}c=((k+m|0)+(o&1)|0)+(r&1)|0;g=0;while(1){k=e+g|0;o=K[k|0];m:{if(!(o&8))break m;m=((K[p+376|0]<<2&8|((c|0)>=7?7:c))+a|0)+392|0;r=K[m|0];h=J[((r<<2)+b|0)+44>>2]+J[b+20>>2]|0;n:{if((r&1)!=(o>>>2&1)){Oh(b,m,h);break n}if(h>>>0>=32768){Ph(b,m,h);break n}J[b+20>>2]=h}h=K[k|0];if(h&4){h=(P(J[b+20>>2],3)>>>3|0)+32768|0;m=g<<1;o:{if(I[m+ +f>>1]<0){Vv(b,h);break o}lt(b,h)}j=t?j:J[((g<<2)+a|0)+56>>2];I[l+m>>1]=j+(j>>>1|0);h=K[k|0]}if(h&4){c=0;break m}c=c-((c|0)>0)|0}g=g+1|0;if((g|0)!=16)continue;break}}e=e+16|0;i=i+1|0;if((q|0)!=(i|0))continue;break}}if(!(!(d&2)|(q|0)<=0)){i=a+504|0;n=a+508|0;j=a+120|0;e=J[((t<<2)+a|0)+16>>2];d=0;while(1){if(K[(a+d|0)+376|0]&2){g=d+B|0;f=g>>4<<2;h=J[f+u>>2];if(h)h=J[h+((g&15)<<2)>>2];else h=0;f=f+s|0;c=J[f>>2];if(!c){c=nA(n);J[f>>2]=c}l=c;c=(g&15)<<2;k=J[l+c>>2];if(!k){g=oA(n);J[c+J[f>>2]>>2]=g;k=J[c+ +J[f>>2]>>2]}g=0;while(1){if(K[g+j|0]&2){f=g<<1;l=I[f+h>>1];c=l>>31;p=f+k|0;f=I[p>>1];m=J[b+20>>2];l=(c^l)-c|0;e=t?e:J[((g<<2)+a|0)+56>>2];p:{if((f|0)<=(P(e,3)|0)){o=K[i|0];c=m+J[((o<<2)+b|0)+44>>2]|0;if(!(!(o&1)^(f|0)<=(l|0))){Oh(b,i,c);break p}if(c>>>0>=32768){Ph(b,i,c);break p}J[b+20>>2]=c;break p}c=(P(m,3)>>>3|0)+32768|0;if((f|0)<=(l|0)){Vv(b,c);break p}lt(b,c)}I[p>>1]=f-((f|0)>(l|0)?e:0)+(e>>>1)}g=g+1|0;if((g|0)!=16)continue;break}}j=j+16|0;d=d+1|0;if((q|0)!=(d|0))continue;break}}C=C+1|0;e=J[a+ +4>>2];if((C|0)>2])continue;break}}a=pV(a)}else a=0;return a|0}function XI(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,G=0,I=0,L=0,M=0,N=0,O=0,Q=0,R=0;g=fc-320|0;fc=g;b=J[a+188>>2];a:{if((b|0)>0){d=J[a+720>>2];e=J[a+3464>>2];f=J[a+3460>>2];while(1){i=(c<<2)+a|0;if(!((f|0)>J[i+140>>2]&(e|0)>J[i+156>>2])){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,817908,0);d=0;break a}if((d|0)>2]){Cc(1,kc[J[J[a>>2]+ +52>>2]](a)|0,818657,0);d=0;break a}c=c+1|0;if((c|0)!=(b|0))continue;break}}e=J[a+16>>2];if((e|0)>0){d=J[a+3508>>2];n=a+40|0;while(1){if(!(d|J[a+204>>2]<=0)){while(1){d=J[a+4>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)!=255&(d|0)!=-1)continue;while(1){d=J[a+4>>2];c=kc[J[J[d>>2]+28>>2]](d)|0;if((c|0)==255)continue;break}if(!c)continue;break}if((c|0)!=J[a+3512>>2]){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,819031,0);d=0;break a}J[a+3524>>2]=0;d=J[a+204>>2];J[a+3508>>2]=d;c=c+1|0;J[a+3512>>2]=(c|0)==216?208:c;b=J[a+ +188>>2];b:{if((b|0)<=0)break b;e=0;c=0;if(b>>>0>=8){i=b&-8;f=0;while(1){J[(P(c,20)+n|0)+16>>2]=0;J[(P(c|1,20)+n|0)+16>>2]=0;J[(P(c|2,20)+n|0)+16>>2]=0;J[(P(c|3,20)+n|0)+16>>2]=0;J[(P(c|4,20)+n|0)+16>>2]=0;J[(P(c|5,20)+n|0)+16>>2]=0;J[(P(c|6,20)+n|0)+16>>2]=0;J[(P(c|7,20)+n|0)+16>>2]=0;c=c+8|0;f=f+8|0;if((i|0)!=(f|0))continue;break}}f=b&7;if(!f)break b;while(1){J[(P(c,20)+a|0)+56>>2]=0;c=c+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}J[a+3516>>2]=0}e=J[a+24>>2];if((b|0)>0){f=J[a+28>>2];o=0;while(1){r= +P(o,20)+a|0;s=(f|0)/J[r+48>>2]|0;m=(s|0)/8|0;t=(e|0)/J[r+44>>2]|0;i=(t|0)/8|0;if(!((f|0)<=0|(e|0)<=0)){d=t&-8;c=s&-8;D=(d|0)!=16|(c|0)!=16;E=(d|0)==8&(c|0)==8;F=r+56|0;w=(o<<2)+a|0;G=(s|0)<8|(t|0)<8;x=P(i,7);y=P(i,6);z=P(i,5);A=i<<2;B=P(i,3);C=i<<1;p=0;while(1){q=0;if((e|0)>0){while(1){f=g- -64|0;d=0;if(!m_(a,(P(J[w+140>>2],342)+a|0)+724|0,(P(J[w+156>>2],342)+a|0)+2092|0,F,f))break a;l_(((J[r+52>>2]<<7)+a|0)+208|0,f,g);c:{d:{if(E){e=0;f=0;b=J[a+16>>2];l=q+u|0;if((b|0)<(l+8|0))break d;while(1){d=(J[a+ +3468>>2]+P(J[a+188>>2],P(J[a+16>>2],f+p|0)+l|0)|0)+o|0;H[d|0]=K[e+g|0];H[d+J[a+188>>2]|0]=K[(e|1)+g|0];H[d+(J[a+188>>2]<<1)|0]=K[(e|2)+g|0];H[d+P(J[a+188>>2],3)|0]=K[(e|3)+g|0];H[d+(J[a+188>>2]<<2)|0]=K[(e|4)+g|0];H[d+P(J[a+188>>2],5)|0]=K[(e|5)+g|0];H[d+P(J[a+188>>2],6)|0]=K[(e|6)+g|0];H[d+P(J[a+188>>2],7)|0]=K[(e|7)+g|0];e=e+8|0;f=f+1|0;if((f|0)!=8)continue;break}break c}f=0;e=0;b=J[a+16>>2];l=q+u|0;if((b|0)<(l+16|0)|D)break d;while(1){c=J[a+188>>2];b=J[a+16>>2];d=(J[a+3468>>2]+P(c,P(b,e+p|0)+l| +0)|0)+o|0;h=c;c=d+P(c,b)|0;b=K[f+g|0];H[h+c|0]=b;H[c|0]=b;H[d+J[a+188>>2]|0]=b;H[d|0]=b;b=K[(f|1)+g|0];H[c+P(J[a+188>>2],3)|0]=b;H[c+(J[a+188>>2]<<1)|0]=b;H[d+P(J[a+188>>2],3)|0]=b;H[d+(J[a+188>>2]<<1)|0]=b;b=K[(f|2)+g|0];H[c+P(J[a+188>>2],5)|0]=b;H[c+(J[a+188>>2]<<2)|0]=b;H[d+P(J[a+188>>2],5)|0]=b;H[d+(J[a+188>>2]<<2)|0]=b;b=K[(f|3)+g|0];H[c+P(J[a+188>>2],7)|0]=b;H[c+P(J[a+188>>2],6)|0]=b;H[d+P(J[a+188>>2],7)|0]=b;H[d+P(J[a+188>>2],6)|0]=b;b=K[(f|4)+g|0];H[c+P(J[a+188>>2],9)|0]=b;H[c+(J[a+188>>2]<< +3)|0]=b;H[d+P(J[a+188>>2],9)|0]=b;H[d+(J[a+188>>2]<<3)|0]=b;b=K[(f|5)+g|0];H[c+P(J[a+188>>2],11)|0]=b;H[c+P(J[a+188>>2],10)|0]=b;H[d+P(J[a+188>>2],11)|0]=b;H[d+P(J[a+188>>2],10)|0]=b;b=K[(f|6)+g|0];H[c+P(J[a+188>>2],13)|0]=b;H[c+P(J[a+188>>2],12)|0]=b;H[d+P(J[a+188>>2],13)|0]=b;H[d+P(J[a+188>>2],12)|0]=b;b=K[(f|7)+g|0];H[c+P(J[a+188>>2],15)|0]=b;H[c+P(J[a+188>>2],14)|0]=b;H[d+P(J[a+188>>2],15)|0]=b;H[d+P(J[a+188>>2],14)|0]=b;f=f+8|0;d=e>>>0<14;e=e+2|0;if(d)continue;break}break c}if(G)break c;d=(J[a+ +3468>>2]+P(J[a+188>>2],P(b,p)+l|0)|0)+o|0;I=l+x|0;L=l+y|0;M=l+z|0;N=l+A|0;O=l+B|0;Q=l+C|0;R=i+l|0;v=0;while(1){j=e+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+l|0)){H[d+P(J[a+188>>2],P(k,h)+b|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|1)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+R|0)){H[d+P(J[a+188>>2],(b+i|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j= +(e|2)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+Q|0)){H[d+P(J[a+188>>2],(b+C|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|3)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+O|0)){H[d+P(J[a+188>>2],(b+B|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|4)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+N|0)){H[d+P(J[a+188>>2],(b+A|0)+ +P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|5)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+M|0)){H[d+P(J[a+188>>2],(b+z|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j=(e|6)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+L|0)){H[d+P(J[a+188>>2],(b+y|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}j= +(e|7)+g|0;c=0;while(1){k=c+f|0;b=0;while(1){h=J[a+16>>2];if((h|0)>(b+I|0)){H[d+P(J[a+188>>2],(b+x|0)+P(k,h)|0)|0]=K[j|0];b=b+1|0;if((i|0)!=(b|0))continue}break}c=c+1|0;if((m|0)!=(c|0))continue;break}f=f+m|0;e=e+8|0;v=v+1|0;if((v|0)!=8)continue;break}}e=J[a+24>>2];q=q+t|0;if((e|0)>(q|0))continue;break}f=J[a+28>>2]}p=p+s|0;if((p|0)<(f|0))continue;break}b=J[a+188>>2]}o=o+1|0;if((o|0)<(b|0))continue;break}d=J[a+3508>>2]}d=d-1|0;J[a+3508>>2]=d;u=e+u|0;e=J[a+16>>2];if((u|0)<(e|0))continue;break}}e:{if(!J[a+ +192>>2])break e;f:switch(b-3|0){case 0:if((P(J[a+28>>2],e)|0)<=0)break e;c=J[a+3468>>2];b=0;while(1){d=K[c|0]<<16|32768;e=K[c+2|0]-128|0;H[c|0]=K[(d+P(e,91881)>>16)+2774256|0];f=K[c+1|0]-128|0;H[c+1|0]=K[((d+P(f,-22553)|0)+P(e,-46802)>>16)+2774256|0];H[c+2|0]=K[(d+P(f,116130)>>16)+2774256|0];c=c+3|0;b=b+1|0;e=J[a+16>>2];if((b|0)<(P(e,J[a+28>>2])|0))continue;break}break e;case 1:break f;default:break e}if((P(J[a+28>>2],e)|0)<=0)break e;c=J[a+3468>>2];b=0;while(1){d=K[c|0]<<16|32768;e=K[c+2|0]-128| +0;H[c|0]=K[(d+P(e,91881)>>16)+2774256|0]^-1;f=K[c+1|0]-128|0;H[c+1|0]=K[((d+P(f,-22553)|0)+P(e,-46802)>>16)+2774256|0]^-1;H[c+2|0]=K[(d+P(f,116130)>>16)+2774256|0]^-1;c=c+4|0;b=b+1|0;e=J[a+16>>2];if((b|0)<(P(e,J[a+28>>2])|0))continue;break}}d=J[a+3468>>2];J[a+3472>>2]=d;c=J[a+188>>2];i=J[a+20>>2];b=J[a+28>>2];f=J[a+3504>>2];g:{if((i|0)>=(b+f|0)){J[a+3476>>2]=d+P(P(c,b),e);break g}J[a+3476>>2]=d+P(P(c,i-f|0),e)}d=1}fc=g+320|0;return d}function Ocb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911? +-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a+4>>2]!=1){J[a+4>>2]=1;Ac(a+2400|0,0,513)}if(!yg(b,e))break h;while(1){Nl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]= +0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2475,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2476,b|0,(((f|0)==1?1216:1340)+a|0)+96| +0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]= +f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a+4>>2]!=1){J[a+4>>2]=1;Ac(a+2400|0,0,513)}if(!xg(b,e))break k;while(1){Nl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>> +2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2477,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2478,b|0, +(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o; +if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a+4>>2]!=1){J[a+4>>2]=1;Ac(a+2400|0,0,513)}if(!wg(b,e))break n;while(1){Nl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]= +0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2479,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]= +0;la(2480,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r; +if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a+4>>2]!=1){J[a+4>>2]=1;Ac(a+2400|0,0,513)}if(!vg(b,e))break q;while(1){Nl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]= +0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2481,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]= +0;la(2482,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function ota(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;f=fc-48|0;fc=f;if(!J[a+44>>2]){J[a+24>>2]=0;J[a+28>>2]=0;e=J[a+12>>2];if(e){d=J[e+24>>2];if(d)while(1){c=J[d>>2];uc(d);J[e+24>> +2]=c;d=c;if(c)continue;break}c=J[e>>2];if(c)uc(c);uc(e)}J[a+12>>2]=0}c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;g=J[b>>2];J[699344]=0;J[f+44>>2]=g;e=_(5296,g|0)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((c|0)==1)break g;J[699344]=0;s=_(5296,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[699344]=0;J[f+44>>2]=0;d=J[g+4>>2]-1|0;J[g+4>>2]=d;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(!d){J[699344]=0;$(5147,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=e&255;if((c|0)==J[a+28>>2])break f;a=Qc(f+ +20|0,2398816,2386101,1748,2432668,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break e}a=Z()|0;zc(f+44|0);break c}t=J[a+24>>2];h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if(!c){c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;e=J[b>>2];J[699344]=0;J[f+16>>2]=e;l=_(5296,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;J[699344]=0;k=_(5296,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;J[699344]=0;J[f+16>>2]=0;d=J[e+4>>2]-1|0;J[e+4>>2]=d;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(!d){J[699344]= +0;$(5147,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}if((l&127)!=1){a=Qc(f+20|0,2399111,2386101,1756,2432668,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break b}if((k&255)>>>0>=3){a=Qc(f+20|0,2399308,2386101,1758,2432668,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break b}c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;h=J[b>>2];J[699344]=0;J[f+12>>2]=h;i=_(5296,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;n=_(5296,h|0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break n;J[699344]=0;g=_(5296,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;e=_(5296,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;if(k&254){J[699344]=0;m=_(5296,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n}J[699344]=0;J[f+12>>2]=0;d=J[h+4>>2]-1|0;J[h+4>>2]=d;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(!d){J[699344]=0;$(5147,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[a+36>>2]=0;J[a+40>>2]=0;if((k&255)>>>0>1){J[a+36>>2]=m&127;J[a+40>>2]=m<<24>>24>= +0}m=l<<24>>24;if((m|0)<0)J[a+36>>2]=-1;if(J[a+12>>2])break m;if(J[a+44>>2])break l;d=vc(32);J[d+24>>2]=0;k=e&255|g<<8&65280;J[d+8>>2]=k;l=n&255|i<<8&65280;J[d+4>>2]=l;J[d>>2]=0;i=k+31&131040;J[d+16>>2]=i;n=l+31&131040;J[d+12>>2]=n;h=P(i,n);g=h>>>10|0;J[d+20>>2]=g;J[699344]=0;o=h>>>6|0;e=_(27,o|0)|0;c=J[699344];J[699344]=0;r:{if((c|0)!=1){if(h)Ac(e,0,o);J[d+28>>2]=4080;J[d>>2]=e;J[a+12>>2]=d;c=vc(508);J[c+8>>2]=0;J[c+12>>2]=1;J[c+4>>2]=d;J[c+16>>2]=0;d=J[608017];J[c+56>>2]=J[608016];J[c+60>>2]=d;d= +J[608019];e=c- -64|0;J[e>>2]=J[608018];J[e+4>>2]=d;J[c+112>>2]=131072;J[c+116>>2]=131072;J[c+104>>2]=131072;J[c+108>>2]=131072;J[c+96>>2]=65536;J[c+100>>2]=65536;J[c+88>>2]=65536;J[c+92>>2]=65536;J[c+80>>2]=65536;J[c+84>>2]=65536;J[c+72>>2]=65536;J[c+76>>2]=65536;J[c+52>>2]=J[608031];d=J[608030];J[c+44>>2]=J[608029];J[c+48>>2]=d;d=J[608028];J[c+36>>2]=J[608027];J[c+40>>2]=d;d=J[608026];J[c+28>>2]=J[608025];J[c+32>>2]=d;d=J[608024];J[c+20>>2]=J[608023];J[c+24>>2]=d;Ac(c+392|0,0,114);J[c>>2]=2432828; +J[a+44>>2]=c;if((m|0)<0)break p;d=vc(32);J[d+24>>2]=0;J[d+8>>2]=k;J[d+4>>2]=l;J[d>>2]=0;J[d+20>>2]=g;J[d+16>>2]=i;J[d+12>>2]=n;J[699344]=0;e=_(27,o|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d;if(h)Ac(e,0,o);J[d+28>>2]=4080;J[d>>2]=e;J[a+16>>2]=d;j=vc(32);J[j+24>>2]=0;J[j+8>>2]=k;J[j+4>>2]=l;J[j>>2]=0;J[j+20>>2]=g;J[j+16>>2]=i;J[j+12>>2]=n;J[699344]=0;e=_(27,o|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break r;if(h)Ac(e,0,o);J[j+28>>2]=4080;J[j>>2]=e;J[a+20>>2]=j;c=vc(508);J[c+8>>2]=0;J[c+12>>2]= +1;J[c+4>>2]=d;J[c+16>>2]=0;p=J[608017];i=J[608016];J[c+56>>2]=i;J[c+60>>2]=p;q=J[608019];n=J[608018];d=c- -64|0;J[d>>2]=n;J[d+4>>2]=q;J[c+112>>2]=131072;J[c+116>>2]=131072;J[c+104>>2]=131072;J[c+108>>2]=131072;J[c+96>>2]=65536;J[c+100>>2]=65536;J[c+88>>2]=65536;J[c+92>>2]=65536;J[c+80>>2]=65536;J[c+84>>2]=65536;J[c+72>>2]=65536;J[c+76>>2]=65536;l=J[608031];J[c+52>>2]=l;r=J[608030];g=J[608029];J[c+44>>2]=g;J[c+48>>2]=r;o=J[608028];m=J[608027];J[c+36>>2]=m;J[c+40>>2]=o;h=J[608026];e=J[608025];J[c+28>> +2]=e;J[c+32>>2]=h;k=J[608024];d=J[608023];J[c+20>>2]=d;J[c+24>>2]=k;Ac(c+392|0,0,114);J[c>>2]=2432828;J[a+48>>2]=c;c=vc(508);J[c+8>>2]=0;J[c+12>>2]=1;J[c+4>>2]=j;J[c+16>>2]=0;J[c+56>>2]=i;J[c+60>>2]=p;i=c- -64|0;J[i>>2]=n;J[i+4>>2]=q;J[c+112>>2]=131072;J[c+116>>2]=131072;J[c+104>>2]=131072;J[c+108>>2]=131072;J[c+96>>2]=65536;J[c+100>>2]=65536;J[c+88>>2]=65536;J[c+92>>2]=65536;J[c+80>>2]=65536;J[c+84>>2]=65536;J[c+72>>2]=65536;J[c+76>>2]=65536;J[c+52>>2]=l;J[c+44>>2]=g;J[c+48>>2]=r;J[c+36>>2]=m;J[c+ +40>>2]=o;J[c+28>>2]=e;J[c+32>>2]=h;J[c+20>>2]=d;J[c+24>>2]=k;Ac(c+392|0,0,114);J[c>>2]=2432828;J[a+52>>2]=c;break q}break d}a=Z()|0;uc(j);break c}if(!J[a+12>>2])break k}if(!J[a+44>>2])break j}d=0;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;d=J[b>>2]}J[699344]=0;J[f+8>>2]=d;ia(5214,f+20|0,f+8|0,0,1);b=J[699344];J[699344]=0;if((b|0)!=1){d=J[f+8>>2];J[f+8>>2]=0;s:{if(!d)break s;J[699344]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break s;J[699344]=0;$(5147,d|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a}b=J[f+20>>2];g=(s&255)+t|0;if((g|0)>J[a+24>>2]){while(1){d=J[a+44>>2];c=J[J[d>>2]+8>>2];J[699344]=0;d=aa(c|0,d|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;t:{if(!J[a+52>>2])break t;e=J[a+48>>2];if(!e|J[a+36>>2]>J[a+24>>2])break t;c=J[J[e>>2]+8>>2];J[699344]=0;m=aa(c|0,e|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;e=J[a+52>>2];c=J[J[e>>2]+8>>2];J[699344]=0;e=aa(c|0,e|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;d=e|m|d}c=J[a+24>>2]+1|0;J[a+ +24>>2]=c;if((c|0)<(g|0)?d:0)continue;break}b=J[f+20>>2]}J[a+28>>2]=J[a+28>>2]+1;J[f+20>>2]=0;u:{if(!b)break u;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[699344];J[699344]=0;if((a|0)==1)break a;if(c)break u;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=f+48|0;return g|0}d=f+8|0;a=Z()|0;break h}a=Z()|0;zc(f+16|0);break c}a=Z()|0;zc(f+12|0);break c}fa(2391254,2386101,1774,2432483);B()}fa(2391795,2386101,1775,2432483);B()}fa(2392159,2386101,1787,2432483);B()}fa(2392629,2386101, +1788,2432483);B()}d=f+20|0;a=Z()|0}zc(d);break c}B()}a=Z()|0;uc(d)}ba(a|0);B()}b=Z()|0;Kc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function bdb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>> +2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a>>2]!=1){J[a>>2]=1;Ac(a+2168|0,0,513)}if(!yg(b,e))break h;while(1){Zl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+ +1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2378,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2379,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>> +2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a>>2]!=1){J[a>>2]=1;Ac(a+2168|0,0,513)}if(!xg(b,e))break k;while(1){Zl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+ +1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2380,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2381,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>> +2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a>>2]!=1){J[a>>2]=1;Ac(a+2168|0,0,513)}if(!wg(b,e))break n;while(1){Zl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+ +1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2382,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2383,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+ +12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a>>2]!=1){J[a>>2]=1;Ac(a+2168|0,0,513)}if(!vg(b,e))break q;while(1){Zl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469| +0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2384,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2385,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function adb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d= +J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i; +h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a>>2]!=1){J[a>>2]=1;Ac(a+2144|0,0,513)}if(!yg(b,e))break h;while(1){Yl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2386, +b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2387,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a| +0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)== +J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a>>2]!=1){J[a>>2]=1;Ac(a+2144|0,0,513)}if(!xg(b,e))break k;while(1){Yl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>> +2]=2147483632;la(2388,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2389,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+ +20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a>>2]!=1){J[a>>2]=1;Ac(a+2144|0,0,513)}if(!wg(b,e))break n;while(1){Yl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]= +0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2390,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2391,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d| +0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<< +3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[c+8>>2];if(J[a>>2]!=1){J[a>>2]=1;Ac(a+2144|0,0,513)}if(!vg(b,e))break q;while(1){Yl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+ +8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2392,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2393,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+ +32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function wnb(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;k=fc-48|0;fc=k;u=6;o=J[a+4>>2];a:{if(!o)break a;g=c-1|0;s=c>>>0>=g>>>0?g:0;if(s>>>0>=M[o+408>>2])break a;b:{c:{if(d&9)break c;h=J[o+380>>2];if(!h)break c; +p=J[o+416>>2];i=p+(s<<4)|0;q=J[o+104>>2];c=J[o+388>>2];g=L[b+12>>1];while(1){if(!((g|0)==J[c>>2]&J[c+4>>2]==L[b+14>>1])){c=c+36|0;f=f+1|0;if((h|0)!=(f|0))continue;break c}break}h=J[c+8>>2];if(yd(q,J[c+24>>2]+J[o+432>>2]|0))break c;g=h&1;if(af(q,P(J[c+28>>2],(h>>>2&1)+(h&2?g+5|0:g|4)|0)))break c;h=J[c+8>>2];l=h&1;t=(h&2?l+5|0:l|4)+(h>>>2&1)|0;r=J[i>>2];f=J[c+28>>2];e=J[q+32>>2];if(!(h&64)){i=J[q+36>>2];n=h|128;J[c+8>>2]=n;d:{e:{f:{g=P(f,t);m=g+e|0;if(i>>>0>=m>>>0){if((g|0)<=0)break d;g=-1;if(l)break f; +i=e;while(1){j=g;g=K[i|0];if((j|0)>=(g|0))break e;i=i+t|0;if(m>>>0>i>>>0)continue;break}break d}n=h&-129;break d}i=e;while(1){j=g;g=K[i+1|0]|K[i|0]<<8;if((j|0)>=(g|0))break e;i=i+t|0;if(m>>>0>i>>>0)continue;break}break d}n=h&-129}h=n|64;J[c+8>>2]=h}g:{if(!(h&128))break g;c=0;h:{if(!l){while(1){if(c>>>0>=f>>>0)break g;m=c+f>>>1|0;g=e+P(m,t)|0;j=K[g|0];i=j>>>0>r>>>0;f=i?m:f;c=i?c:j>>>0>>0?m+1|0:c;if((j|0)!=(r|0))continue;break}c=g+1|0;break h}while(1){if(c>>>0>=f>>>0)break g;m=c+f>>>1|0;j=e+P(m, +t)|0;i=K[j|0]<<8|K[j+1|0];g=i>>>0>r>>>0;c=g?c:i>>>0>>0?m+1|0:c;f=g?m:f;if((i|0)!=(r|0))continue;break}c=j+2|0}i=K[c|0];i:{if(h&2){i=K[c+1|0]|i<<8;c=c+2|0;break i}c=c+1|0}e=K[c+1|0];g=K[c|0];if(h&4)h=K[c+2|0]|(e<<8|g<<16);else h=e|g<<8;ve(q);if(!i)break c;J[k+8>>2]=0;J[k+44>>2]=0;J[k+36>>2]=0;J[k+32>>2]=0;J[k+28>>2]=0;e=(s<<4)+p|0;c=J[e+4>>2];f=J[o+304>>2];g=J[o+300>>2];j:{if((f|0)==(g|0)){g=c;break j}g=Od(c,g,f);f=J[o+304>>2];c=J[e+4>>2]}J[a+56>>2]=g;g=Od(L[b+12>>1]<<8,c,f);J[k+40>>2]=g;if(yd(q, +h+J[o+188>>2]|0))break c;if(af(q,i))break c;J[k+24>>2]=J[q+32>>2];j=8;m=J[q+36>>2];e=J[k+24>>2];k:{if(m>>>0>>0)break k;l:{m:{n:{o:{p:{f=K[e|0];switch((f&3)-1|0){case 2:break m;case 1:break n;case 0:break o;default:break p}}c=e+2|0;if(m>>>0>>0)break k;e=H[e+1|0];h=e>>4;n=e<<28>>28;break l}c=e+3|0;if(m>>>0>>0)break k;n=H[e+2|0];h=H[e+1|0];break l}c=e+5|0;if(m>>>0>>0)break k;h=K[e+3|0]|K[e+4|0]<<8;n=(h<<8|h>>>8)<<16>>16;h=K[e+1|0]|K[e+2|0]<<8;h=(h<<8|h>>>8)<<16>>16;break l}c=e+7|0;if(m>>> +0>>0)break k;n=K[e+6|0]|(K[e+5|0]<<8|K[e+4|0]<<16);h=K[e+3|0]|(K[e+2|0]<<8|K[e+1|0]<<16)}l=f>>>2&3;p=l;q:{r:switch(l-1|0){case 0:e=c+1|0;if(e>>>0>m>>>0)break k;c=K[c|0];p=c&15;l=c>>>4|0;c=e;break q;case 1:e=c+2|0;if(e>>>0>m>>>0)break k;p=K[c+1|0];l=K[c|0];c=e;break q;case 2:break r;default:break q}e=c+4|0;if(e>>>0>m>>>0)break k;p=K[c+3|0]|K[c+2|0]<<8;l=K[c+1|0]|K[c|0]<<8;c=e}s:{t:{u:{v:{f=f>>>4|0;switch((f&3)-1|0){case 2:break t;case 1:break u;case 0:break v;default:break s}}e=c+1|0;if(e>>>0>m>>> +0)break k;g=H[c|0]<<8;c=e;break s}e=c+2|0;if(e>>>0>m>>>0)break k;c=K[c|0]|K[c+1|0]<<8;g=(c<<8|c>>>8)<<16>>16;c=e;break s}e=c+3|0;if(e>>>0>m>>>0)break k;g=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);c=e}J[k+8>>2]=h;J[k+44>>2]=n;J[k+36>>2]=l;J[k+32>>2]=p;J[k+40>>2]=g;J[k+28>>2]=f>>>2;J[k+24>>2]=c;j=0}if(j)break g;w:{x:{y:{z:{e=J[k+28>>2];switch(e|0){case 0:break x;case 2:break y;case 1:break z;default:break g}}c=J[k+32>>2];f=J[k+36>>2];if(P(c,f)>>>0<=P(i,15)>>>0)break w;break g}c=J[k+32>>2];f=J[k+36>>2];if(P(c, +f)>>>0>P(i+1>>>1|0,255)>>>0)break g;break w}c=J[k+32>>2];f=J[k+36>>2];if(P(c,f)+7>>>3>>>0>i>>>0)break g}if((c|0)<0)break g;j=J[k+44>>2];if((j|0)>(c^2147483647))break g;J[a+72>>2]=1651078259;J[a+76>>2]=c;J[a+80>>2]=f;H[a+94|0]=1;J[a+28>>2]=c<<6;h=f<<6;J[a+24>>2]=h;i=f+7>>3;J[a+84>>2]=i;f=J[k+8>>2];J[a+36>>2]=j<<6;J[a+32>>2]=f<<6;g=J[k+40>>2];J[a+48>>2]=0;J[a+44>>2]=0-h>>1;J[a+40>>2]=(g>>2)+32&-64;g=J[b+32>>2];J[a+104>>2]=c+j;J[a+100>>2]=f;J[a+52>>2]=g;if(!(d&4194304)){if(bE(a,P(c,i)))break g;d=J[k+ +24>>2];p=J[q+36>>2];i=K[o+208|0]>>>1&1;l=0;g=J[a+76>>2];A:{if(!g)break A;b=J[a+80>>2];if(!b)break A;c=J[a+84>>2];m=i?c:0-c|0;n=P(b,g);g=J[a+88>>2]+(i?0:P(c,g-1|0))|0;B:{C:switch(e|0){case 0:a=p-d<<3;h=a>>>0>>0?a:n;if(!h)break A;e=128;j=0;i=g;a=b;c=h;while(1){if(!((c^h)&7)){j=K[d|0];d=d+1|0}l=j<<24>>31&e|l;a=a-1|0;D:{if(!a){H[i|0]=l;l=0;a=b;g=g+m|0;i=g;f=128;break D}f=e>>>1|0;if(e>>>0>1)break D;H[i|0]=l;i=i+1|0;l=0;f=128}e=f;j=j<<1;c=c-1|0;if(c)continue;break}if((e|0)!=128)break B;break A;case 1:if(!n)break A; +f=1;h=128;i=g;c=b;a=0;j=0;e=1;while(1){E:{F:{if(!f)break F;G:{if(!e){j=a;e=1;break G}e=1;f=h;if(d>>>0>=p>>>0)break E;e=K[d|0];a=e&15;j=e>>>4|0;d=d+1|0;e=0}if(j)break F;while(1){H:{if(!e){j=a;e=1;break H}if(d>>>0>=p>>>0){e=1;j=0;f=h;break E}e=K[d|0];a=e&15;j=e>>>4|0;d=d+1|0;e=0}if(!j)continue;break}}f=e?h:0}l=f|l;c=c-1|0;I:{if(!c){H[i|0]=l;l=0;c=b;g=g+m|0;i=g;f=128;break I}f=h>>>1|0;if(h>>>0>1)break I;H[i|0]=l;i=i+1|0;l=0;f=128}h=f;f=(j|0)<2;j=j-1|0;n=n-1|0;if(n)continue;break}if((h|0)!=128)break B; +break A;case 2:break C;default:break A}if(!n)break A;j=1;h=128;i=g;c=b;a=0;e=1;while(1){J:{if(!(j&1)|d>>>0>=p>>>0)break J;K:{while(1){e=e^1;f=d+1|0;a=K[d|0];if(a)break K;d=f;if((f|0)!=(p|0))continue;break}a=0;d=p;break J}d=f}l=(e?h:0)|l;c=c-1|0;L:{if(!c){H[i|0]=l;l=0;c=b;g=g+m|0;i=g;f=128;break L}f=h>>>1|0;if(h>>>0>1)break L;H[i|0]=l;i=i+1|0;l=0;f=128}h=f;j=(a|0)<2;a=a-1|0;n=n-1|0;if(n)continue;break}if((h|0)==128)break A}H[i|0]=l}}ve(q);break b}ve(q)}if(d&16384)break a;e=J[o+416>>2];J[a+72>>2]=1869968492; +J[a+108>>2]=0;c=e+(s<<4)|0;h=J[c+8>>2];i=J[c+12>>2];g=J[o+188>>2];c=J[o+104>>2];jp(J[a+188>>2]);J[a+176>>2]=0;u=s7(a+160|0,c,g,i,h);if(u)break a;g=J[a+188>>2];c=J[g+24>>2];h=a+108|0;J[h>>2]=J[g+20>>2];J[h+4>>2]=c;J[h+16>>2]=J[g+36>>2];c=J[g+32>>2];J[h+8>>2]=J[g+28>>2];J[h+12>>2]=c;c=J[a+124>>2]&-6;J[a+124>>2]=c|4;if(L[b+14>>1]<=23)J[a+124>>2]=c|260;J[a+52>>2]=0;J[a+40>>2]=0;c=J[(e+(s<<4)|0)+4>>2];i=J[o+304>>2];g=J[o+300>>2];if((i|0)!=(g|0))c=Od(c,g,i);M:{if(H[o+324|0]&1){J[a+52>>2]=c;f=J[a+40>>2]; +break M}J[a+40>>2]=c;f=c;c=J[a+52>>2]}J[a+60>>2]=c;J[a+56>>2]=f;J[a+44>>2]=0;J[a+48>>2]=0;if(!(d&1)){d=J[b+20>>2];b=J[b+16>>2];if(I[a+110>>1]>0){c=J[a+112>>2];f=0;while(1){v=c,w=Wc(J[c>>2],b),J[v>>2]=w;v=c,w=Wc(J[c+4>>2],d),J[v+4>>2]=w;c=c+8|0;f=f+1|0;if((f|0)>1])continue;break}f=J[a+40>>2]}v=a,w=Wc(f,b),J[v+40>>2]=w;v=a,w=Wc(J[a+52>>2],d),J[v+52>>2]=w}Hq(h,k+8|0);d=J[k+8>>2];J[a+24>>2]=J[k+16>>2]-d;c=J[k+20>>2];b=J[k+12>>2];J[a+36>>2]=b;J[a+32>>2]=d;J[a+28>>2]=c-b}u=0}fc=k+48|0;return u| +0}function i$(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;m=fc-32|0;fc=m;J[m+16>>2]=13;a:{b:{c:switch(J[a>>2]-7|0){case 0:g=J[a+8>>2];break b;case 1:break c;default:break a}g=J[a+8>>2];g=kc[J[J[g>>2]+76>>2]](g)|0}c=m+16|0;if(J[Ec(g,818744,c,0)>>2]!=1){Cc(1,-1,818873,0);yc(c);break a}c=J[m+24>>2];yc(m+16|0);d:switch(c-1|0){case 0:d=fc-160|0;fc=d;J[d+16>>2]=13;J[d>>2]=13;z=1;r=1;p=1;j=0;e:{if(J[Ec(g,823909,d+16|0,0)>>2]!=6)break e; +a=J[d+24>>2];j=0;if(J[a+12>>2]!=4)break e;a=Sc(a,0,d,0);h=O[a+8>>3];b=J[a+8>>2];a=J[a>>2];yc(d);c=Sc(J[d+24>>2],1,d,0);r=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(d);c=Sc(J[d+24>>2],2,d,0);q=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(d);c=Sc(J[d+24>>2],3,d,0);p=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(d);j=(a|0)==1?+(b|0):h}a=d+16|0;yc(a);h=1;f:{if(J[Ec(g,798400,a,0)>>2]!=6)break f;a=J[d+24>>2];h=1;if(J[a+12>>2]!=6)break f;a=Sc(a,0,d,0);h=O[a+8>>3];b=J[a+8>>2];a=J[a>>2];yc(d);c=Sc(J[d+24>>2],1,d,0);n=J[c>>2]==1?+J[c+ +8>>2]:O[c+8>>3];yc(d);c=Sc(J[d+24>>2],2,d,0);k=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(d);c=Sc(J[d+24>>2],3,d,0);z=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(d);c=Sc(J[d+24>>2],4,d,0);o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(d);c=Sc(J[d+24>>2],5,d,0);l=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(d);h=(a|0)==1?+(b|0):h}a=d+16|0;yc(a);Ec(g,824574,a,0);g:{h:{i:{j:{k:{if(J[d+16>>2]==6){c=J[J[d+24>>2]+12>>2];if((c|0)>32)break j;b=0;if((c|0)<=0)break k;while(1){Sc(J[d+24>>2],b,d,0);a=fi(d,2,1,0);J[(d+32|0)+(b<<2)>>2]=a;yc(d);if(!a)break i; +b=b+1|0;if((c|0)!=(b|0))continue;break}break k}a=fi(d+16|0,2,-1,0);J[d+32>>2]=a;c=1;if(!a)break i}yc(d+16|0);b=vc(400);J[b+392>>2]=c;O[b+216>>3]=h;O[b+208>>3]=p;O[b+200>>3]=r;O[b+192>>3]=q;O[b+184>>3]=j;J[b>>2]=2218256;J[b+4>>2]=1;J[b+8>>2]=0;O[b+256>>3]=l;O[b+248>>3]=o;O[b+240>>3]=z;O[b+232>>3]=k;O[b+224>>3]=n;if((c|0)>0)xc(b+264|0,d+32|0,c<<2);l:{if(Ew(b,g)){g=0;if(J[b+392>>2]>0)break l;break g}kc[J[J[b>>2]+4>>2]](b);break h}m:{while(1){a=J[b+8>>2];if(J[J[(b+(g<<2)|0)+264>>2]+8>>2]!=(kc[J[J[a>> +2]+28>>2]](a)|0))break m;g=g+1|0;if((g|0)>2])continue;break}break g}Cc(1,-1,825732,0);kc[J[J[b>>2]+4>>2]](b);b=0;break g}Cc(1,-1,825424,0)}yc(d+16|0)}b=0}fc=d+160|0;break a;case 1:f=fc-160|0;fc=f;J[f+16>>2]=13;J[f>>2]=13;n:{o:{p:{q:{c=f+16|0;if(J[Ec(g,827250,c,0)>>2]!=6)break q;a=J[f+24>>2];if(J[a+12>>2]!=4)break q;a=Sc(a,0,f,0);n=O[a+8>>3];s=J[a+8>>2];t=J[a>>2];yc(f);a=Sc(J[f+24>>2],1,f,0);u=J[a>>2];k=O[a+8>>3];v=J[a+8>>2];yc(f);a=Sc(J[f+24>>2],2,f,0);w=J[a>>2];l=O[a+8>>3];x=J[a+8>>2];yc(f); +a=Sc(J[f+24>>2],3,f,0);y=J[a>>2];j=O[a+8>>3];d=J[a+8>>2];yc(f);yc(c);o=1;r:{if(J[Ec(g,823909,c,0)>>2]!=6)break r;a=J[f+24>>2];if(J[a+12>>2]!=2)break r;a=Sc(a,0,f,0);h=O[a+8>>3];b=J[a+8>>2];a=J[a>>2];yc(f);c=Sc(J[f+24>>2],1,f,0);o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];q=(a|0)==1?+(b|0):h;yc(f)}a=f+16|0;yc(a);Ec(g,824574,a,0);if(J[f+16>>2]==6){i=J[J[f+24>>2]+12>>2];if((i|0)>32)break p;a=0;if((i|0)<=0)break o;while(1){Sc(J[f+24>>2],a,f,0);b=fi(f,1,1,0);J[(f+32|0)+(a<<2)>>2]=b;if(!b){yc(f+16|0);yc(f);b=0;break n}yc(f); +a=a+1|0;if((i|0)!=(a|0))continue;break}break o}b=0;i=1;c=f+16|0;a=fi(c,1,-1,0);J[f+32>>2]=a;if(a)break o;yc(c);break n}Cc(1,-1,827468,0);yc(f+16|0);break n}b=0;Cc(1,-1,825424,0);break n}k=(u|0)==1?+(v|0):k;l=(w|0)==1?+(x|0):l;j=(y|0)==1?+(d|0):j;h=(t|0)==1?+(s|0):n;a=f+16|0;yc(a);b=0;s:{if(J[Ec(g,828284,a,0)>>2]!=6){c=0;break s}c=0;a=J[f+24>>2];if(J[a+12>>2]!=2)break s;b=J[Sc(a,0,f,0)+8>>2];yc(f);c=J[Sc(J[f+24>>2],1,f,0)+8>>2];yc(f)}yc(f+16|0);a=vc(376);J[a+360>>2]=i;O[a+224>>3]=o;O[a+216>>3]=q;O[a+ +208>>3]=j;O[a+200>>3]=l;O[a+192>>3]=k;O[a+184>>3]=h;J[a>>2]=2218276;J[a+4>>2]=2;J[a+8>>2]=0;if((i|0)>0)xc(a+232|0,f+32|0,i<<2);J[a+368>>2]=c;J[a+364>>2]=b;t:{if(Ew(a,g)){g=0;if(J[a+360>>2]>0)break t;b=a;break n}kc[J[J[a>>2]+4>>2]](a);b=0;break n}u:{while(1){b=J[a+8>>2];if(J[J[(a+(g<<2)|0)+232>>2]+8>>2]!=(kc[J[J[b>>2]+28>>2]](b)|0))break u;g=g+1|0;if((g|0)>2])continue;break}b=a;break n}b=0;Cc(1,-1,825732,0);kc[J[J[a>>2]+4>>2]](a)}fc=f+160|0;break a;case 2:e=fc-160|0;fc=e;J[e+16>>2]=13;J[e>> +2]=13;v:{w:{x:{y:{c=e+16|0;if(J[Ec(g,827250,c,0)>>2]!=6)break y;a=J[e+24>>2];if(J[a+12>>2]!=6)break y;a=Sc(a,0,e,0);r=O[a+8>>3];A=J[a+8>>2];B=J[a>>2];yc(e);a=Sc(J[e+24>>2],1,e,0);C=J[a>>2];p=O[a+8>>3];f=J[a+8>>2];yc(e);a=Sc(J[e+24>>2],2,e,0);s=J[a>>2];n=O[a+8>>3];t=J[a+8>>2];yc(e);a=Sc(J[e+24>>2],3,e,0);u=J[a>>2];k=O[a+8>>3];v=J[a+8>>2];yc(e);a=Sc(J[e+24>>2],4,e,0);w=J[a>>2];l=O[a+8>>3];x=J[a+8>>2];yc(e);a=Sc(J[e+24>>2],5,e,0);y=J[a>>2];j=O[a+8>>3];d=J[a+8>>2];yc(e);yc(c);o=1;z:{if(J[Ec(g,823909, +c,0)>>2]!=6)break z;a=J[e+24>>2];if(J[a+12>>2]!=2)break z;a=Sc(a,0,e,0);h=O[a+8>>3];b=J[a+8>>2];a=J[a>>2];yc(e);c=Sc(J[e+24>>2],1,e,0);o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];q=(a|0)==1?+(b|0):h;yc(e)}a=e+16|0;yc(a);Ec(g,824574,a,0);if(J[e+16>>2]==6){i=J[J[e+24>>2]+12>>2];if((i|0)>32)break x;a=0;if((i|0)<=0)break w;while(1){Sc(J[e+24>>2],a,e,0);b=fi(e,1,1,0);J[(e+32|0)+(a<<2)>>2]=b;if(!b){yc(e+16|0);yc(e);b=0;break v}yc(e);a=a+1|0;if((i|0)!=(a|0))continue;break}break w}b=0;i=1;c=e+16|0;a=fi(c,1,-1,0);J[e+ +32>>2]=a;if(a)break w;yc(c);break v}Cc(1,-1,827468,0);break v}b=0;Cc(1,-1,825424,0);break v}p=(C|0)==1?+(f|0):p;n=(s|0)==1?+(t|0):n;k=(u|0)==1?+(v|0):k;l=(w|0)==1?+(x|0):l;j=(y|0)==1?+(d|0):j;h=(B|0)==1?+(A|0):r;a=e+16|0;yc(a);b=0;A:{if(J[Ec(g,828284,a,0)>>2]!=6){c=0;break A}c=0;a=J[e+24>>2];if(J[a+12>>2]!=2)break A;b=J[Sc(a,0,e,0)+8>>2];yc(e);c=J[Sc(J[e+24>>2],1,e,0)+8>>2];yc(e)}yc(e+16|0);a=vc(392);J[a+376>>2]=i;O[a+240>>3]=o;O[a+232>>3]=q;O[a+224>>3]=j;O[a+216>>3]=l;O[a+208>>3]=k;O[a+200>>3]=n; +O[a+192>>3]=p;O[a+184>>3]=h;J[a>>2]=2218296;J[a+4>>2]=3;J[a+8>>2]=0;if((i|0)>0)xc(a+248|0,e+32|0,i<<2);J[a+384>>2]=c;J[a+380>>2]=b;B:{if(Ew(a,g)){g=0;if(J[a+376>>2]>0)break B;b=a;break v}kc[J[J[a>>2]+4>>2]](a);b=0;break v}C:{while(1){b=J[a+8>>2];if(J[J[(a+(g<<2)|0)+248>>2]+8>>2]!=(kc[J[J[b>>2]+28>>2]](b)|0))break C;g=g+1|0;if((g|0)>2])continue;break}b=a;break v}b=0;Cc(1,-1,825732,0);kc[J[J[a>>2]+4>>2]](a)}fc=e+160|0;break a;case 3:if(J[a>>2]==8){b=h$(4,g,J[a+8>>2]);break a}Cc(1,-1,819488, +0);break a;case 4:if(J[a>>2]==8){b=h$(5,g,J[a+8>>2]);break a}Cc(1,-1,819680,0);break a;case 5:if(J[a>>2]==8){b=g$(6,g,J[a+8>>2]);break a}Cc(1,-1,820092,0);break a;case 6:if(J[a>>2]==8){b=g$(7,g,J[a+8>>2]);break a}Cc(1,-1,820900,0);break a;default:break d}J[m>>2]=c;Cc(1,-1,821164,m)}fc=m+32|0;return b}function mM(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,C=0,D=0,E=0;d=fc-80|0;fc=d;b=J[a+40>>2];e=J[a+36>>2];q=a+28|0;vD(q);a:{t=(b- +e|0)/72|0;c=J[a+48>>2];b:{if((0-t|0)==((J[a+52>>2]-c|0)/72|0))break b;while(1){b=r>>>0>>0?J[a+36>>2]+P(r,72)|0:P(r-t|0,72)+c|0;O[d+8>>3]=O[b>>3];O[d+16>>3]=O[b+8>>3];O[d+24>>3]=O[b+16>>3];O[d+32>>3]=O[b+24>>3];O[d+40>>3]=O[b+32>>3];O[d+48>>3]=O[b+40>>3];e=J[b+60>>2];J[d+64>>2]=J[b+56>>2];J[d+68>>2]=e;e=J[b+52>>2];J[d+56>>2]=J[b+48>>2];J[d+60>>2]=e;J[d+72>>2]=J[b+64>>2];b=J[b+68>>2];J[d+76>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;c=0;c:{if(K[d+57|0])break c;c=1;if(J[d+72>>2])break c;b=J[a>>2];d:{if((b| +0)==2){b=J[d+68>>2];e=J[d+64>>2];if(!b&(e|0)==1)break c;if((e|0)!=2|(b|0)!=1)break d;break c}if((b|0)==J[d+68>>2])break c}c=0}u=1;while(1){if(c&1){z=u&1;e:{f:{if(z){if(!(!J[d+72>>2]|J[a>>2]!=1))H[(J[(J[d+64>>2]==1?36:48)+a>>2]+P(J[d+60>>2],72)|0)+49|0]=1;J[699344]=0;wa(2325,q|0,+O[d+8>>3],+O[d+16>>3])|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;break f}H[(J[(J[d+64>>2]==1?36:48)+a>>2]+P(J[d+60>>2],72)|0)+49|0]=1;g:{if(K[d+56|0]){J[699344]=0;h=O[d+8>>3];i=O[d+16>>3];Aa(2511,q|0,+(O[d+24>>3]+h),+(O[d+ +32>>3]+i),+(h+O[d+40>>3]),+(i+O[d+48>>3]),+h,+i)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break g;break a}J[699344]=0;wa(2326,q|0,+O[d+8>>3],+O[d+16>>3])|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[d+72>>2];e=0;if(!b)break e;H[(J[(J[b+200>>2]==1?36:48)+a>>2]+P(J[b+196>>2],72)|0)+49|0]=1}e=J[d+72>>2]}p=J[d+76>>2];if(p)J[p+4>>2]=J[p+4>>2]+1;b=J[d+60>>2];h:{i:{j:{k:{if(J[d+64>>2]==1){c=J[a+36>>2];if((b|0)!=(((J[a+40>>2]-c|0)/72|0)-1|0))break j;if(K[d+58|0])break k;break i}c=J[a+48>>2];if((b|0)!=(((J[a+ +52>>2]-c|0)/72|0)-1|0))break j;if(!K[d+58|0])break i}h=O[c+40>>3];i=O[c+24>>3];o=J[c+64>>2];b=J[c+56>>2];j=J[c+60>>2];g=J[c+52>>2];v=J[c+48>>2];k=O[c+32>>3];l=O[c+16>>3];m=O[c+8>>3];n=O[c>>3];f=J[c+68>>2];if(!f){f=0;break h}J[f+4>>2]=J[f+4>>2]+1;break h}c=P(b,72)+c|0;o=J[c+136>>2];b=J[c+128>>2];j=J[c+132>>2];g=J[c+124>>2];v=J[c+120>>2];h=O[c+112>>3];k=O[c+104>>3];i=O[c+96>>3];l=O[c+88>>3];m=O[c+80>>3];n=O[c+72>>3];f=J[c+140>>2];if(!f){f=0;break h}J[f+4>>2]=J[f+4>>2]+1;break h}v=v&-16777216;g=-1;o= +0;n=0;b=0;j=0;m=0;l=0;i=0;k=0;h=0;f=0}J[d+72>>2]=o;J[d+64>>2]=b;J[d+68>>2]=j;J[d+60>>2]=g;J[d+56>>2]=v;O[d+48>>3]=h;O[d+40>>3]=k;O[d+32>>3]=i;O[d+24>>3]=l;O[d+16>>3]=m;O[d+8>>3]=n;b=J[d+76>>2];J[d+76>>2]=f;l:{if(!b)break l;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break l;kc[J[J[b>>2]+8>>2]](b);Gc(b)}m:{n:{f=J[d+64>>2];if(f|J[d+60>>2]!=-1|(O[d+8>>3]!=0|O[d+16>>3]!=0))break n;if(O[d+24>>3]!=0|O[d+32>>3]!=0|(O[d+40>>3]!=0|O[d+48>>3]!=0))break n;c=1;f=6;break m}b=J[d+72>>2];o:{p:{q:{r:{s:{t:{A=K[d+57|0];if(!A){if(b)break t; +b=J[a>>2];if((b|0)==2){c=1;b=J[d+68>>2];if(!b&(f|0)==1)break o;if((f|0)!=2|(b|0)!=1)break r;break o}c=1;if((b|0)==J[d+68>>2])break o;break r}if(!b)break r;if(e)break s;c=0;break o}if(!e)break p}u:{c=J[b+196>>2];b=J[e+196>>2];if((c|0)==(b|0))break u;v:{w:{x:{y:{z:{if(J[e+200>>2]==1){c=J[a+36>>2];if((b|0)!=(((J[a+40>>2]-c|0)/72|0)-1|0))break y;if(K[e+194|0])break z;break w}c=J[a+48>>2];if((b|0)!=(((J[a+52>>2]-c|0)/72|0)-1|0))break y;if(!K[e+194|0])break w}s=L[c+50>>1];E=s>>>8|0;h=O[c+40>>3];i=O[c+24>> +3];w=J[c+64>>2];g=J[c+60>>2];j=J[c+56>>2];x=J[c+52>>2];C=K[c+49|0];D=K[c+48|0];k=O[c+32>>3];l=O[c+16>>3];m=O[c+8>>3];n=O[c>>3];c=J[c+68>>2];if(c)break x;c=0;break v}b=P(b,72)+c|0;s=L[b+122>>1];E=s>>>8|0;w=J[b+136>>2];g=J[b+132>>2];j=J[b+128>>2];x=J[b+124>>2];C=K[b+121|0];D=K[b+120|0];h=O[b+112>>3];k=O[b+104>>3];i=O[b+96>>3];l=O[b+88>>3];m=O[b+80>>3];n=O[b+72>>3];c=J[b+140>>2];if(c)break x;c=0;break v}J[c+4>>2]=J[c+4>>2]+1;break v}x=-1;s=0;n=0;m=0;l=0;i=0;k=0;h=0;D=0;C=0;j=0;g=0;w=0;c=0}A:{B:{if((x| +0)!=-1|j|(n!=0|m!=0))break B;if(l!=0|i!=0|(k!=0|h!=0))break B;f=6;o=1;break A}o=0;f=0;if(C)break A;C:{D:{if(w)break D;b=J[a>>2];if((b|0)==2){if(!g&(j|0)==1)break D;if((j|0)!=2)break C;if((g|0)==1)break D;break A}if((b|0)!=(g|0))break A}J[d+68>>2]=g;J[d+64>>2]=j;J[d+60>>2]=x;H[d+57|0]=0;H[d+56|0]=D;O[d+48>>3]=h;O[d+40>>3]=k;O[d+32>>3]=i;O[d+24>>3]=l;O[d+16>>3]=m;O[d+8>>3]=n;I[d+58>>1]=s&255|E<<8;if(c)J[c+4>>2]=J[c+4>>2]+1;J[d+72>>2]=w;b=J[d+76>>2];J[d+76>>2]=c;if(b){g=J[b+4>>2];J[b+4>>2]=g-1;if(g)break A; +kc[J[J[b>>2]+8>>2]](b);Gc(b)}}}E:{if(!c)break E;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break E;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if(!o)break u;c=!A;break m}if(!A)break p;break q}if(e)break q;c=0;break o}b=J[e+196>>2];F:{G:{H:{I:{if(J[e+200>>2]==1){c=J[a+36>>2];if((b|0)!=(((J[a+40>>2]-c|0)/72|0)-1|0))break H;if(K[e+194|0])break I;break G}c=J[a+48>>2];if((b|0)!=(((J[a+52>>2]-c|0)/72|0)-1|0))break H;if(!K[e+194|0])break G}h=O[c+40>>3];i=O[c+24>>3];o=J[c+64>>2];b=J[c+56>>2];j=J[c+60>>2];g=J[c+52>>2];y=J[c+48>>2]; +k=O[c+32>>3];l=O[c+16>>3];m=O[c+8>>3];n=O[c>>3];f=J[c+68>>2];if(!f){f=0;break F}J[f+4>>2]=J[f+4>>2]+1;break F}c=P(b,72)+c|0;o=J[c+136>>2];b=J[c+128>>2];j=J[c+132>>2];g=J[c+124>>2];y=J[c+120>>2];h=O[c+112>>3];k=O[c+104>>3];i=O[c+96>>3];l=O[c+88>>3];m=O[c+80>>3];n=O[c+72>>3];f=J[c+140>>2];if(!f){f=0;break F}J[f+4>>2]=J[f+4>>2]+1;break F}y=y&-16777216;g=-1;o=0;n=0;b=0;j=0;m=0;l=0;i=0;k=0;h=0;f=0}J[d+72>>2]=o;J[d+64>>2]=b;J[d+68>>2]=j;J[d+60>>2]=g;J[d+56>>2]=y;O[d+48>>3]=h;O[d+40>>3]=k;O[d+32>>3]=i;O[d+ +24>>3]=l;O[d+16>>3]=m;O[d+8>>3]=n;b=J[d+76>>2];J[d+76>>2]=f;J:{if(!b)break J;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break J;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a>>2];if(!((b|0)==1&z))H[(J[(J[e+200>>2]==1?36:48)+a>>2]+P(J[e+196>>2],72)|0)+49|0]=1;c=0;if(K[d+57|0])break o;if(J[d+72>>2])break p;if((b|0)==2){b=J[d+68>>2];e=J[d+64>>2];if(!b&(e|0)==1)break p;if((e|0)!=2)break o;if((b|0)==1)break p;break o}if((b|0)!=J[d+68>>2])break o}c=1}f=0;u=z?0:u}K:{if(!p)break K;b=J[p+4>>2];J[p+4>>2]=b-1;if(b)break K;kc[J[J[p>> +2]+8>>2]](p);Gc(p)}if(!f)continue}break}L:{M:{if(u&1)break M;c=J[a+108>>2];b=J[a+112>>2];if((c|0)==(b|0))break M;while(1){if(!K[J[c>>2]+224|0])break M;c=c+8|0;if((b|0)!=(c|0))continue;break}break L}b=J[d+76>>2];N:{if(!b)break N;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break N;kc[J[J[b>>2]+8>>2]](b);Gc(b)}r=r+1|0;c=J[a+48>>2];if(r>>>0<((J[a+52>>2]-c|0)/72|0)+t>>>0)continue;break b}break}b=J[d+76>>2];if(!b)break b;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if(!(!K[a+4|0]|!K[a+5|0]))Nx(q); +fc=d+80|0;return}a=Z()|0;bn(d+8|0);ba(a|0);B()}function hH(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g=b-f>>3;switch(g|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+16>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a;return}a=b-8|0;e=J[a>>2];k=O[e+16>> +3];d=J[f+8>>2];m=O[d+16>>3];c=J[f>>2];n=O[c+16>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+16>>3]>3]))break d;J[f+8>>2]=c;J[f>>2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+16>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=b;return}rr(f,f+8| +0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+16>>3];a=J[f+8>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2];J[f+20>>2]=d;if(!(k>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20|0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]= +c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+16>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+4>>2];J[d+4>>2]=j;p:{if(!e)break p;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;kc[J[J[e>>2]+8>>2]](e);Gc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+16>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break o; +kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g|0)<=(e|0)){e=c;break s}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+16>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2];J[d+4>>2]=p;t:{if(!a)break t;d= +J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>>2];if(!(O[h+16>>3]>3]))continue}break}J[c>>2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0;e=g;o=e-2>>>1|0;a=f;d=0;while(1){g= +d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+16>>3]>2]+16>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>>2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d=i-4|0;i=J[d>>2];c=J[b>>2];J[b>> +2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;kc[J[J[c>>2]+8>>2]](c);Gc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x;g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+16>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=h;B:{if(!d)break B; +a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+16>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break x}kc[J[J[a>>2]+8>>2]](a);Gc(a)}g=e-1|0;if((e|0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=rr(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+16>>3];a=J[h>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];D:{if(!(m>2]= d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+16>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]=a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>>2]=d;g=1;d=J[i>>2];if(!(n>O[d+16>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+16>>3];m=O[J[h>>2]+16>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j=J[a>>2];if(!(m>O[j+16>>3]))continue;break}J[f>>2]=j;J[a>>2]=d;d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+16>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+16>>3])continue;break}while(1){j=a;a=a-8|0;p=J[a>>2];if(!(k>O[p+ -16>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}Yu(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F;a=J[h>>2];d=J[e>>2];if(!(O[a+16>>3]>3]))break F;J[e>>2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=us(f,e);a=e+8|0;if(us(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){WF(f,e,c);a=e+8|0;continue b}WF(e+8|0,b,c);a= -f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+16>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>>2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function TF(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g=b-f>>3;switch(g| -0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+32>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a;return}a=b-8|0;e=J[a>>2];k=O[e+32>>3];d=J[f+8>>2];m=O[d+32>>3];c=J[f>>2];n=O[c+32>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+32>>3]>3]))break d;J[f+8>>2]=c;J[f>> -2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+32>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=b;return}Zu(f,f+8|0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+32>>3];a=J[f+8>>2];m=O[a+32>>3];e=J[f>>2];n=O[e+32>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2];J[f+20>>2]=d;if(!(k< -n))break m;J[f+8>>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20|0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+32>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+4>>2];J[d+4>>2]=j;p:{if(!e)break p; -d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;gc[J[J[e>>2]+8>>2]](e);Vc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+32>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break o;gc[J[J[e>>2]+8>>2]](e);Vc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g|0)<=(e|0)){e=c;break s}if(!(O[J[a>> -2]+32>>3]>2]+32>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+32>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2];J[d+4>>2]=p;t:{if(!a)break t;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+32>>3]>2]+32>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>>2];if(!(O[h+32>>3]>3]))continue}break}J[c>> -2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;gc[J[J[a>>2]+8>>2]](a);Vc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0;e=g;o=e-2>>>1|0;a=f;d=0;while(1){g=d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+32>>3]>2]+32>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>>2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w; -gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d=i-4|0;i=J[d>>2];c=J[b>>2];J[b>>2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;gc[J[J[c>>2]+8>>2]](c);Vc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A;gc[J[J[c>>2]+8>>2]](c);Vc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x; -g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+32>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=h;B:{if(!d)break B;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+32>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break x}gc[J[J[a>>2]+8>>2]](a);Vc(a)}g=e-1|0;if((e| -0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=Zu(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+32>>3];a=J[h>>2];m=O[a+32>>3];e=J[f>>2];n=O[e+32>>3];D:{if(!(m>2]=d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+32>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]=a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>> -2]=d;g=1;d=J[i>>2];if(!(n>O[d+32>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+32>>3];m=O[J[h>>2]+32>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j=J[a>>2];if(!(m>O[j+32>>3]))continue;break}J[f>>2]=j;J[a>>2]=d; -d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+32>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+32>>3])continue;break}while(1){j=a;a=a-8|0;p=J[a>>2];if(!(k>O[p+32>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}iz(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F;a=J[h>>2];d=J[e>>2];if(!(O[a+32>>3]>3]))break F;J[e>> -2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=hz(f,e);a=e+8|0;if(hz(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){TF(f,e,c);a=e+8|0;continue b}TF(e+8|0,b,c);a=f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+32>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>>2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+ -4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function eTa(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;c=bc-48|0;bc=c;k=J[a+420>>2];d=J[a+24>>2];h=J[d>>2];J[c+12>>2]=h;f=J[d+4>>2];J[c+16>>2]=f;d=J[k+24>>2];J[c+28>>2]=J[k+20>>2];J[c+32>>2]=d;d=J[k+32>>2];J[c+36>>2]=J[k+28>>2];J[c+40>>2]=d;d=J[k+16>>2];J[c+20>>2]=J[k+12>>2];J[c+24>>2]=d;J[c+44>>2]=a;a:{b:{if(J[k+36>>2]|!J[a+236>>2])break b;e=J[k+40>>2];g=J[c+24>>2];if((g|0)>0){d=g+7|0; -f=J[c+20>>2]|127<<17-g;while(1){g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=f>>>16;g=J[c+16>>2]-1|0;J[c+16>>2]=g;if(!g){i=J[c+44>>2];g=J[i+24>>2];if(!(gc[J[g+12>>2]](i)|0))break a;J[c+12>>2]=J[g>>2];J[c+16>>2]=J[g+4>>2]}g=d;c:{if((f&16711680)!=16711680)break c;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;d=J[c+16>>2]-1|0;J[c+16>>2]=d;if(d)break c;i=J[c+44>>2];d=J[i+24>>2];if(!(gc[J[d+12>>2]](i)|0))break a;J[c+12>>2]=J[d>>2];J[c+16>>2]=J[d+4>>2]}d=g-8|0;f=f<<8;if((g|0)>15)continue;break}h=J[c+12>>2]}J[c+20>>2]=0;J[c+ -24>>2]=0;J[c+12>>2]=h+1;H[h|0]=255;d=J[c+16>>2]-1|0;J[c+16>>2]=d;d:{if(d){f=J[c+12>>2];break d}g=J[c+44>>2];d=J[g+24>>2];if(!(gc[J[d+12>>2]](g)|0))break a;f=J[d>>2];J[c+16>>2]=J[d+4>>2]}J[c+12>>2]=f+1;H[f|0]=e-48;f=J[c+16>>2]-1|0;J[c+16>>2]=f;d=J[c+44>>2];if(!f){g=J[d+24>>2];if(!(gc[J[g+12>>2]](d)|0))break a;J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}if(J[d+288>>2]<=0)break b;h=0;while(1){J[((h<<2)+c|0)+28>>2]=0;h=h+1|0;if((h|0)>2])continue;break}}n=1;if(J[a+316>>2]>0)while(1){d=q<<2;s= -d+b|0;t=J[s>>2];h=I[t>>1];d=J[(a+d|0)+320>>2]<<2;u=d+c|0;m=J[u+28>>2];j=h-m|0;i=j>>31;d=J[(a+d|0)+292>>2];p=J[((J[d+24>>2]<<2)+k|0)+60>>2];l=J[((J[d+20>>2]<<2)+k|0)+44>>2];e=J[c+44>>2];v=J[e+380>>2];r=J[e+384>>2];g=0;e:{if((h|0)==(m|0))break e;h=(i^j)-i|0;while(1){d=g;g=d+1|0;m=h>>>0>1;h=h>>>1|0;if(m)continue;break}if(d>>>0<11)break e;d=J[e>>2];J[d+20>>2]=6;gc[J[d>>2]](e)}h=J[l+(g<<2)>>2];m=J[c+24>>2];d=H[(g+l|0)+1024|0];if(!d){l=J[e>>2];J[l+20>>2]=41;gc[J[l>>2]](e)}e=h&(-1<> -2]|e<<24-d;if((d|0)>=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){f=J[c+44>>2];e=J[f+24>>2];if(!(gc[J[e+12>>2]](f)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d;f:{if((h&16711680)!=16711680)break f;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break f;f=J[c+44>>2];d=J[f+24>>2];if(!(gc[J[d+12>>2]](f)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8;if((e|0)>15)continue;break}J[c+24>>2]= -d;J[c+20>>2]=h;if(g){d=d+g|0;h=(i+j&(-1<=8)while(1){g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){e=J[c+44>>2];g=J[e+24>>2];if(!(gc[J[g+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}g=d;g:{if((h&16711680)!=16711680)break g;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break g;e=J[c+44>>2];d=J[e+24>>2];if(!(gc[J[d+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=g-8| -0;h=h<<8;if((g|0)>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h}h:{if((r|0)<=0)break h;e=1;i:while(1){l=0;g=e;while(1){j=L[(J[(g<<2)+v>>2]<<1)+t>>1];if(j){if(l>>>0>=16)while(1){i=J[p+960>>2];e=H[p+1264|0];if(!e){m=J[c+44>>2];o=J[m>>2];J[o+20>>2]=41;gc[J[o>>2]](m)}d=d+e|0;h=(i&(-1<=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){i=J[c+44>>2];e=J[i+24>>2];if(!(gc[J[e+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]= -f}e=d;j:{if((h&16711680)!=16711680)break j;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break j;i=J[c+44>>2];d=J[i+24>>2];if(!(gc[J[d+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8;if(e>>>0>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h;e=(l|0)>31;l=l-16|0;if(e)continue;break}i=1;m=j<<16>>16;e=m>>31;e=(e^m)-e|0;k:{if(e>>>0<2)break k;while(1){j=i;i=i+1|0;o=e>>>0>3;e=e>>>1|0;if(o)continue;break}if(j>>>0<10)break k;e=J[c+44>>2];j=J[e>>2]; -J[j+20>>2]=6;gc[J[j>>2]](e)}e=(l<<4)+i|0;j=J[(e<<2)+p>>2];e=H[(e+p|0)+1024|0];if(!e){l=J[c+44>>2];o=J[l>>2];J[o+20>>2]=41;gc[J[o>>2]](l)}j=j&(-1<=8)while(1){d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){j=J[c+44>>2];d=J[j+24>>2];if(!(gc[J[d+12>>2]](j)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e;l:{if((h&16711680)!=16711680)break l;e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break l; -j=J[c+44>>2];e=J[j+24>>2];if(!(gc[J[e+12>>2]](j)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d-8|0;h=h<<8;if((d|0)>15)continue;break}d=e+i|0;h=(m+(m>>15)&(-1<=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){i=J[c+44>>2];e=J[i+24>>2];if(!(gc[J[e+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d;m:{if((h&16711680)!=16711680)break m;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>> -2]=f;if(f)break m;i=J[c+44>>2];d=J[i+24>>2];if(!(gc[J[d+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8;if((e|0)>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h;e=g+1|0;if((g|0)!=(r|0))continue i;break h}l=l+1|0;e=(g|0)==(r|0);g=g+1|0;if(!e)continue;break}break}e=J[p>>2];g=H[p+1024|0];if(!g){i=J[c+44>>2];j=J[i>>2];J[j+20>>2]=41;gc[J[j>>2]](i)}e=e&(-1<=8)while(1){d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>> -2]=f;if(!f){e=J[c+44>>2];d=J[e+24>>2];if(!(gc[J[d+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=g;n:{if((h&16711680)!=16711680)break n;g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break n;e=J[c+44>>2];g=J[e+24>>2];if(!(gc[J[g+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}g=d-8|0;h=h<<8;if((d|0)>15)continue;break}J[c+24>>2]=g;J[c+20>>2]=h}J[u+28>>2]=I[J[s>>2]>>1];q=q+1|0;if((q|0)>2])continue;break}b=J[c+12>>2]; -d=J[a+24>>2];J[d+4>>2]=f;J[d>>2]=b;b=J[c+40>>2];J[k+28>>2]=J[c+36>>2];J[k+32>>2]=b;b=J[c+32>>2];J[k+20>>2]=J[c+28>>2];J[k+24>>2]=b;b=J[c+24>>2];J[k+12>>2]=J[c+20>>2];J[k+16>>2]=b;a=J[a+236>>2];if(!a)break a;b=J[k+36>>2];if(b)a=b;else J[k+40>>2]=J[k+40>>2]+1&7;J[k+36>>2]=a-1}bc=c+48|0;return n|0}function tH(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{e=J[a+20>>2];b:{if(!e)break b;J[695492]=0;jw(e);e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[a+20>>2];if(!e)break b;J[695492]=0;b=J[695492]; -J[695492]=0;c:{if((b|0)!=1){jw(e);b=J[e+12>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[e+12>>2]=0}ut(e,J[e+4>>2]);break c}break a}qc(e)}k=a+4|0;e=K[a+15|0];if(e<<24>>24<0?J[a+8>>2]:e){J[695492]=0;da(2869,k|0,1);e=J[695492];J[695492]=0;if((e|0)==1)break a;d:{if(H[a+15|0]<0){J[a+8>>2]=0;b=J[a+4>>2];break d}H[a+15|0]=0;b=k}J[b>>2]=0}e=J[a>>2];if(e){qc(ht(e));J[a>>2]=0}e=J[689612];if(e){f=bc-16|0;bc=f;J[695492]=0;ka(3438);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[e>>2];if(b)qc(FY(b));b=J[e+4>>2];if(b)qc(Rc(b)); -b=J[e+8>>2];J[695492]=0;da(3439,b|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,f+12|0,f+8|0,f+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;qc(Rc(c));continue}break}qc(Fh(b));b=J[e+12>>2];if(b)qc(FY(b));b=J[e+16>>2];J[695492]=0;da(3439,b|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,f+12|0,f+8|0,f+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;qc(Rc(c));continue}break}qc(Fh(b)); -b=J[e+20>>2];J[695492]=0;da(3439,b|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,f+12|0,f+8|0,f+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;qc(Rc(c));continue}break}qc(Fh(b));c=J[e+24>>2];J[695492]=0;da(3439,c|0,f+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;e:{while(1){J[695492]=0;b=Oi(c,f+12|0,f+8|0,f+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b){b=J[f+4>>2];if(!b)continue;d=J[b>>2];if(d)qc(Rc(d));f:{g:{if(J[b+ -4>>2])break g;d=J[b+12>>2];if(!d)break g;J[695492]=0;Gc(d);d=J[695492];J[695492]=0;if((d|0)==1)break a}d=J[b+20>>2];if(d){J[695492]=0;Gc(d);d=J[695492];J[695492]=0;if((d|0)==1)break a}break f}qc(b);continue}break}qc(Fh(c));b=J[e+28>>2];J[695492]=0;da(3439,b|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,f+12|0,f+8|0,f+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;qc(Rc(c));continue}break}qc(Fh(b));d=J[e+36>>2];c=J[d+8>>2];if((c| -0)>0){b=0;while(1){g=J[J[d>>2]+(b<<2)>>2];if(g){qc(Rc(g));c=J[d+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}qc(dd(d));b=J[e+40>>2];if(b){c=J[b+1024>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(b)}b=J[e+44>>2];J[695492]=0;da(3439,b|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,f+12|0,f+8|0,f+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;qc(Rc(c));continue}break}qc(Fh(b));d=J[e+48>>2];c=J[d+8>>2];if((c| -0)>0){b=0;while(1){g=J[J[d>>2]+(b<<2)>>2];if(g){qc(Rc(g));c=J[d+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}qc(dd(d));b=J[e+52>>2];J[695492]=0;da(3439,b|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,f+12|0,f+8|0,f+4|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;qc(Rc(c));continue}break}qc(Fh(b));b=J[e+56>>2];J[695492]=0;da(3439,b|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,f+12|0,f+8|0,f+4| -0);d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;d=J[c>>2];if(d)qc(Rc(d));qc(c);continue}break}qc(Fh(b));g=J[e+60>>2];if(g){b=0;c=J[g>>2];h=J[c+8>>2];if((h|0)>0)while(1){d=J[J[c>>2]+(b<<2)>>2];if(d){h=J[d>>2];if(h)qc(Rc(h));h=J[d+4>>2];if(h)qc(Rc(h));qc(d);h=J[c+8>>2]}b=b+1|0;if((h|0)>(b|0))continue;break}qc(dd(c));qc(g)}b=J[e+116>>2];J[695492]=0;da(3439,b|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,f+12|0,f+8|0,f+4|0);d=J[695492]; -J[695492]=0;if((d|0)==1)break a;if(c){c=J[f+4>>2];if(!c)continue;qc(Rc(c));continue}break}qc(Fh(b));g=J[e+120>>2];c=J[g+8>>2];if((c|0)>0){b=0;while(1){d=J[J[g>>2]+(b<<2)>>2];if(d){c=J[d>>2];if(c)qc(Rc(c));c=J[d+8>>2];if(c)qc(Rc(c));c=J[d+12>>2];if(c)qc(Rc(c));qc(d);c=J[g+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}qc(dd(g));g=J[e+124>>2];c=J[g+8>>2];if((c|0)>0){b=0;while(1){d=J[J[g>>2]+(b<<2)>>2];if(d){c=J[d>>2];if(c)qc(Rc(c));c=J[d+8>>2];if(c)qc(Rc(c));c=J[d+12>>2];if(c)qc(Rc(c));qc(d);c=J[g+8>> -2]}b=b+1|0;if((c|0)>(b|0))continue;break}}qc(dd(g));b=J[e+200>>2];if(b)qc(Rc(b));b=J[e+216>>2];if(b)qc(Rc(b));b=J[e+224>>2];if(b)qc(Rc(b));b=J[e+240>>2];if(b)qc(Rc(b));b=J[e+344>>2];if(b)qc(Rc(b));b=J[e+348>>2];if(b)qc(Rc(b));b=J[e+352>>2];if(b)qc(Rc(b));b=J[e+356>>2];if(b)qc(Rc(b));b=J[e+364>>2];if(b)qc(Rc(b));b=J[e+368>>2];if(b)qc(Rc(b));b=J[e+372>>2];if(b)qc(Rc(b));b=J[e+388>>2];if(b)qc(Fh(b));d=J[e+392>>2];b=J[d+8>>2];if((b|0)>0){g=0;while(1){i=J[J[d>>2]+(g<<2)>>2];if(i){b=0;h=J[i+12>>2];c=J[h+ -8>>2];if((c|0)>0)while(1){j=J[J[h>>2]+(b<<2)>>2];if(j){qc(Rc(j));c=J[h+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}qc(dd(h));qc(i);b=J[d+8>>2]}g=g+1|0;if((g|0)<(b|0))continue;break}}qc(dd(d));d=J[e+396>>2];c=J[d+8>>2];if((c|0)>0){b=0;while(1){g=J[J[d>>2]+(b<<2)>>2];if(g){c=0;h=J[g>>2];if(h)qc(Rc(h));h=J[g+4>>2];i=J[h+8>>2];if((i|0)>0)while(1){j=J[J[h>>2]+(c<<2)>>2];if(j){qc(Rc(j));i=J[h+8>>2]}c=c+1|0;if((i|0)>(c|0))continue;break}qc(dd(h));qc(g);c=J[d+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}qc(dd(d)); -b=J[e+400>>2];if(b)qc(Rc(b));b=J[e+32>>2];J[695492]=0;da(3439,b|0,f+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;while(1){b=J[e+32>>2];J[695492]=0;b=Oi(b,f+12|0,f+8|0,f+4|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b){b=0;d=J[f+4>>2];c=J[d+8>>2];if((c|0)>0)while(1){g=J[J[d>>2]+(b<<2)>>2];if(g){qc(Rc(g));c=J[d+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}qc(dd(d));continue}break}b=J[e+32>>2];if(b)qc(Fh(b));b=J[e+416>>2];if(b)qc(VZ(b));b=J[e+420>>2];if(b)qc(VZ(b));b=J[e+424>>2];if(b){c=J[b>> -2];if(c)Tn(c);c=J[b+4>>2];if(c)Tn(c);c=J[b+8>>2];if(c)Tn(c);c=J[b+12>>2];if(c)Tn(c);qc(b)}b=J[e+428>>2];if(b){c=J[b>>2];if(c)kp(c);c=J[b+4>>2];if(c)kp(c);c=J[b+8>>2];if(c)kp(c);c=J[b+12>>2];if(c)kp(c);qc(b)}bc=f+16|0;break e}qc(e);J[689612]=0}e=J[a+16>>2];if(e){b=J[J[e>>2]+12>>2];J[695492]=0;$(b|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+16>>2]=0}cl(a+32|0,J[a+36>>2]);if(H[a+15|0]<0)qc(J[k>>2]);return a}ea(0)|0;yc();B()}function STa(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,u=0;l=bc-16|0;bc=l;J[a+80>>2]=1;f=a+80|0;a:{b:{if(J[a+72>>2]){d=l+8|0;m=Uj(a,0,f);e=Uj(a,4,f);c:{if(!J[a+80>>2])break c;h=vf(a,e+24|0,f);i=vf(a,e+28|0,f);if(!J[a+80>>2])break c;d:{if((i|0)<0){d=f;break d}o=(e+h|0)+2|0;e:{while(1){j=o+(g<<3)|0;p=Uj(a,j,f);if(!J[a+80>>2])break c;if((p|0)==1936092788)break e;j=(g|0)==(i|0);g=g+1|0;if(!j)continue;break}d=f;break d}g=vf(a,j+4|0,f);i=vf(a,j+6|0,f);if(!J[a+80>>2])break c;if((b|0)<0){d=f;break d}if((b|0)>(g|0)){d= -f;break d}b=Uj(a,(i+(h+(e+P(b,12)|0)|0)|0)+4|0,f);if(!J[a+80>>2])break c;J[l+12>>2]=(m+(b&16777215)|0)+4}J[d>>2]=0}break b}J[l+12>>2]=0;d=Uj(a,0,f);if(!J[a+80>>2])break a;if((d|0)==1953784678){J[a+76>>2]=1;d=Uj(a,8,f);if(!J[a+80>>2])break a;if(!((b|0)<(d|0)&(b|0)>=0)){J[f>>2]=0;break a}t=l,u=Uj(a,(b<<2)+12|0,f),J[t+8>>2]=u;break b}J[l+8>>2]=0}if(!J[f>>2])break a;b=J[l+8>>2];i=J[l+12>>2];d=b+i|0;e=Uj(a,d,f);if(!J[a+80>>2])break a;J[a+64>>2]=(e|0)==1330926671;d=vf(a,d+4|0,f);J[a+24>>2]=d;if(!J[a+80>> -2])break a;t=a,u=vd(d,20),J[t+20>>2]=u;f:{if(J[a+24>>2]>0){b=b+12|0;d=0;while(1){e=b+i|0;h=Uj(a,e,f);g=P(d,20);J[g+J[a+20>>2]>>2]=h;h=Uj(a,e+4|0,f);J[(g+J[a+20>>2]|0)+4>>2]=h;h=Uj(a,e+8|0,f);J[(g+J[a+20>>2]|0)+8>>2]=h+i;h=Uj(a,e+12|0,f);e=J[a+20>>2];g=g+e|0;J[g+16>>2]=h;g=J[g+8>>2];if((g|h)>=0)d=(J[a+12>>2]>=(g+h|0))+d|0;b=b+16|0;n=n+1|0;if((n|0)>2])continue;break}J[a+24>>2]=d;if(!J[a+80>>2])break a;b=0;J[a+68>>2]=0;if((d|0)<=0)break f;while(1){if(J[P(b,20)+e>>2]==1751474532){b=0;while(1){g:{if(J[P(b, -20)+e>>2]==1751672161){b=0;while(1){h:{if(J[P(b,20)+e>>2]==1835104368){b=0;while(1){if(J[P(b,20)+e>>2]==1752003704)break h;b=b+1|0;if((d|0)!=(b|0))continue;break}break g}b=b+1|0;if((d|0)!=(b|0))continue;break g}break}i:{if(!J[a+64>>2]){if((Wq(a,815991)|0)<0)break g;if((Wq(a,816152)|0)<0)break g;break i}if((Wq(a,776535)|0)<0)break g}g=Wq(a,815096);j:{if((g|0)<0)break j;b=P(g,20)+e|0;if(J[b+16>>2]<4)break j;b=J[b+8>>2];c=vf(a,b+2|0,f);J[a+32>>2]=c;if(!J[a+80>>2])break a;t=a,u=vd(c,20),J[t+28>>2]=u; -k:{if(J[a+32>>2]<=0){d=0;break k}b=b+4|0;d=0;while(1){e=vf(a,b,f);c=P(d,20);J[c+J[a+28>>2]>>2]=e;e=vf(a,b+2|0,f);J[(c+J[a+28>>2]|0)+4>>2]=e;e=Uj(a,b+4|0,f);h=c+J[a+28>>2]|0;J[h+8>>2]=e;i=J[a+20>>2]+P(g,20)|0;if((e|0)>2]){e=e+J[i+8>>2]|0;J[h+8>>2]=e;e=vf(a,e,f);h=c+J[a+28>>2]|0;J[h+16>>2]=e;e=vf(a,J[h+8>>2]+2|0,f);J[(c+J[a+28>>2]|0)+12>>2]=e;d=d+1|0}b=b+8|0;k=k+1|0;if((k|0)>2])continue;break}}J[a+32>>2]=d;if(!J[a+80>>2])break a;e=J[a+20>>2]}t=a,u=vf(a,J[(P(Wq(a,821959),20)+e|0)+8>> -2]+4|0,f),J[t+36>>2]=u;if(!J[a+80>>2])break a;c=J[a+20>>2];b=P(Wq(a,819607),20);t=a,u=dw(a,J[(c+b|0)+8>>2]+36|0,f),J[t+44>>2]=u;t=a,u=dw(a,J[(b+J[a+20>>2]|0)+8>>2]+38|0,f),J[t+48>>2]=u;t=a,u=dw(a,J[(b+J[a+20>>2]|0)+8>>2]+40|0,f),J[t+52>>2]=u;t=a,u=dw(a,J[(b+J[a+20>>2]|0)+8>>2]+42|0,f),J[t+56>>2]=u;b=dw(a,J[(b+J[a+20>>2]|0)+8>>2]+50|0,f);J[a+40>>2]=b;if(!J[a+80>>2])break a;l:{if(J[a+64>>2])break l;c=J[(J[a+20>>2]+P(Wq(a,815991),20)|0)+16>>2];if((c|0)<((b?4:2)|0)){J[f>>2]=0;break a}b=b?2:1;if((c|0)>= -J[a+36>>2]+1<>2]=(c>>>b|0)-1}d=0;k=0;g=bc-16|0;bc=g;J[g+12>>2]=1;m:{n:{b=J[a+24>>2];o:{if((b|0)<=0)break o;c=a;a=J[a+20>>2];while(1){if(J[a+P(d,20)>>2]!=1886352244){d=d+1|0;if((b|0)!=(d|0))continue;break o}break}b=J[(a+P(d,20)|0)+8>>2];a=Uj(c,b,g+12|0);p:{if(!J[g+12>>2])break p;if((a|0)!=163840){if((a|0)!=131072){if((a|0)!=65536)break o;e=rc(16);J[695492]=0;a=aa(3365,e|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;J[c+60>>2]=a;d=0;while(1){q:{a=J[c+60>>2];e=rc(8);J[695492]= -0;b=aa(3182,e|0,J[(d<<2)+2181360>>2])|0;f=J[695492];J[695492]=0;if((f|0)==1)break q;xg(a,b,d);d=d+1|0;if((d|0)!=258)continue;break o}break}break n}e=rc(16);J[695492]=0;a=aa(3365,e|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[c+60>>2]=a;o=vf(c,b+32|0,g+12|0);if(!J[g+12>>2])break p;if((o|0)<=0|J[c+36>>2]<=0)break o;a=0;q=b+34|0;f=q+(o<<1)|0;d=f;while(1){J[g+12>>2]=1;h=vf(c,q+(k<<1)|0,g+12|0);r:{if((h|0)<=257){b=J[(h<<2)+2181360>>2];s_(J[c+60>>2],b);h=J[c+60>>2];e=rc(8);J[695492]=0;b=aa(3182, -e|0,b|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1){xg(h,b,k);b=a;break r}break n}b=h-258|0;if((b|0)!=(a|0)){e=0;d=f;if(h>>>0>=259)while(1){d=(Mf(c,d,g+12|0)+d|0)+1|0;e=e+1|0;if((e|0)!=(b|0))continue;break}a=b;if(!J[g+12>>2])break r}i=Mf(c,d,g+12|0);if(!J[g+12>>2]){b=a;break r}p=d+1|0;b=p;if(!((b^2147483647)>=(i|0)&(b|i)>=0&J[c+12>>2]>=(b+i|0))){b=a;break r}e=rc(8);b=J[c+8>>2];J[695492]=0;m=ga(3181,e|0,b+p|0,i|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;h=J[c+60>>2];j=0;n=0;e=0;b=J[m>>2];s:{if((b| -0)<=0)break s;r=b&3;d=J[m+4>>2];t:{if(b>>>0<4){b=d;break t}s=b&-4;while(1){j=K[d+3|0]+P(K[d+2|0]+P(K[d+1|0]+P(K[d|0]+P(j,17)|0,17)|0,17)|0,17)|0;b=d+4|0;d=b;n=n+4|0;if((s|0)!=(n|0))continue;break}}if(!r)break s;while(1){j=K[b|0]+P(j,17)|0;b=b+1|0;e=e+1|0;if((r|0)!=(e|0))continue;break}}b=(j>>>0)%M[h+4>>2]|0;d=J[J[h+12>>2]+(b<<2)>>2];u:{if(!d)break u;while(1){if(rg(J[d>>2],m)){d=J[d+8>>2];if(d)continue;break u}break}b=J[h+12>>2]+(b<<2)|0;while(1){e=b;j=J[b>>2];b=j+8|0;if((d|0)!=(j|0))continue;break}J[e>> -2]=J[d+8>>2];v:{if(!J[h>>2])break v;b=J[d>>2];if(!b)break v;qc(Rc(b))}qc(d);J[h+8>>2]=J[h+8>>2]-1}xg(J[c+60>>2],m,k);d=i+p|0;b=a+1|0}k=k+1|0;if((o|0)<=(k|0))break o;a=b;if(J[c+36>>2]>(k|0))continue;break}break o}e=rc(16);J[695492]=0;a=aa(3365,e|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[c+60>>2]=a;if(J[c+36>>2]<=0)break o;a=b+32|0;d=0;while(1){b=Mf(c,a+d|0,g+12|0);if(!((b|0)>257|!J[g+12>>2])){b=J[(b<<2)+2181360>>2];s_(J[c+60>>2],b);f=J[c+60>>2];e=rc(8);J[695492]=0;b=aa(3182,e|0,b|0)|0;k= -J[695492];J[695492]=0;if((k|0)==1)break n;xg(f,b,d)}d=d+1|0;if((d|0)>2])continue;break}break o}a=J[c+60>>2];if(!a)break o;qc(Fh(a));J[c+60>>2]=0}bc=g+16|0;break m}a=Z()|0;qc(e);ba(a|0);B()}break a}b=b+1|0;if((d|0)!=(b|0))continue}break}J[f>>2]=0;break a}b=b+1|0;if((d|0)!=(b|0))continue;break}if(!c|!J[a+64>>2])break f;b=0;while(1){if(J[P(b,20)+e>>2]!=1128678944){b=b+1|0;if((d|0)!=(b|0))continue;break f}break}J[a+36>>2]=0;J[a+40>>2]=0;J[a+68>>2]=1;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+ -56>>2]=0;break a}J[a+24>>2]=0;if(!J[a+80>>2])break a;J[a+68>>2]=0}J[f>>2]=0}bc=l+16|0}function z8a(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;i=bc-272|0;bc=i;b=J[b>>2];l=J[b+44>>2];J[i+216>>2]=J[b+40>>2];J[i+220>>2]=l;l=J[b+36>>2];J[i+208>>2]=J[b+32>>2];J[i+212>>2]=l;l=J[b+28>>2];J[i+200>>2]=J[b+24>>2];J[i+204>>2]=l;l=J[b+20>>2];J[i+192>>2]=J[b+16>>2];J[i+196>>2]=l;l=J[b+12>>2];J[i+184>>2]=J[b+8>>2];J[i+188>>2]=l;l=J[b+4>>2];J[i+176>>2]=J[b>>2];J[i+180>> -2]=l;b=J[a+44>>2];l=J[b+44>>2];J[i+168>>2]=J[b+40>>2];J[i+172>>2]=l;l=J[b+36>>2];J[i+160>>2]=J[b+32>>2];J[i+164>>2]=l;l=J[b+28>>2];J[i+152>>2]=J[b+24>>2];J[i+156>>2]=l;l=J[b+20>>2];J[i+144>>2]=J[b+16>>2];J[i+148>>2]=l;l=J[b+12>>2];J[i+136>>2]=J[b+8>>2];J[i+140>>2]=l;l=J[b+4>>2];J[i+128>>2]=J[b>>2];J[i+132>>2]=l;Fp(i+128|0);b=J[i+172>>2];J[i+264>>2]=J[i+168>>2];J[i+268>>2]=b;b=J[i+164>>2];J[i+256>>2]=J[i+160>>2];J[i+260>>2]=b;b=J[i+156>>2];J[i+248>>2]=J[i+152>>2];J[i+252>>2]=b;b=J[i+148>>2];J[i+240>> -2]=J[i+144>>2];J[i+244>>2]=b;b=J[i+140>>2];J[i+232>>2]=J[i+136>>2];J[i+236>>2]=b;b=J[i+132>>2];J[i+224>>2]=J[i+128>>2];J[i+228>>2]=b;l=i+176|0;b=ej(i+224|0,l);m=J[b+44>>2];J[i+216>>2]=J[b+40>>2];J[i+220>>2]=m;m=J[b+36>>2];J[i+208>>2]=J[b+32>>2];J[i+212>>2]=m;m=J[b+28>>2];J[i+200>>2]=J[b+24>>2];J[i+204>>2]=m;m=J[b+20>>2];J[i+192>>2]=J[b+16>>2];J[i+196>>2]=m;m=J[b+12>>2];J[i+184>>2]=J[b+8>>2];J[i+188>>2]=m;m=J[b+4>>2];J[i+176>>2]=J[b>>2];J[i+180>>2]=m;Fp(l);J[i+120>>2]=0;J[i+124>>2]=0;J[i+224>>2]=l; -J[i+116>>2]=f;J[i+112>>2]=e;J[i+108>>2]=d;J[i+100>>2]=c;J[i+104>>2]=c;if((f|0)<0)J[i+104>>2]=P(1-e|0,f)+c;a:{b:{c:{d:{e:{f:switch(g-1|0){case 0:J[i+96>>2]=i+100;b=0;J[i+36>>2]=0;J[i+24>>2]=0;J[i+12>>2]=d;c=d<<1;J[i+16>>2]=c;J[i+28>>2]=e;J[i+32>>2]=1073741823%(e>>>0)^1073741823;J[i+20>>2]=1073741823%(c>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1636;J[i+52>> -2]=i+56;J[i+48>>2]=i+120;k=O[a+2896>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break c;c=a+1832|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;g:{if(j<4294967296&j>=0){d=~~j>>>0;break g}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;h:{if(j<4294967296&j>=0){d=~~j>>>0;break h}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2310,a|0,i+44|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;a=a+1832|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5; -i:{if(k<4294967296&k>=0){c=~~k>>>0;break i}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;j:{if(k<4294967296&k>=0){c=~~k>>>0;break j}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;case 1:J[i+96>>2]=i+100;b=0;J[i+36>>2]=0;J[i+20>>2]=0;J[i+24>>2]=e;c=e<<1;J[i+28>>2]=c;J[i+12>>2]=d;J[i+16>>2]=1073741823%(d>>>0)^1073741823;J[i+32>>2]=1073741823%(c>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>> -2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1636;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2896>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break d;c=a+1832|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;k:{if(j<4294967296&j>=0){d=~~j>>>0;break k}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;l:{if(j<4294967296&j>=0){d=~~j>>>0;break l}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2311,a|0,i+44|0);c=J[695492];J[695492]=0;if((c|0)==1)break b; -a=a+1832|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;m:{if(k<4294967296&k>=0){c=~~k>>>0;break m}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;n:{if(k<4294967296&k>=0){c=~~k>>>0;break n}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;case 2:J[i+96>>2]=i+100;b=0;J[i+40>>2]=0;J[i+24>>2]=0;J[i+28>>2]=e;c=e<<1;J[i+32>>2]=c;J[i+12>>2]=d;d=d<<1;J[i+16>>2]=d;J[i+36>>2]=1073741823%(c>>>0)^1073741823;J[i+20>>2]=1073741823%(d>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>> -2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1636;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2896>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break e;c=a+1832|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;o:{if(j<4294967296&j>=0){d=~~j>>>0;break o}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;p:{if(j<4294967296&j>=0){d=~~j>>>0;break p}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b= -0;J[695492]=0;da(2312,a|0,i+44|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;a=a+1832|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;q:{if(k<4294967296&k>=0){c=~~k>>>0;break q}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;r:{if(k<4294967296&k>=0){c=~~k>>>0;break r}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;default:break f}J[i+96>>2]=i+100;b=0;J[i+88>>2]=0;J[i+76>>2]=0;J[i+80>>2]=e;J[i+84>>2]=1073741823%(e>>>0)^1073741823;J[i+68>>2]=d;J[i+72>>2]=1073741823%(d>>>0)^1073741823;J[i+ -56>>2]=i+96;J[i+32>>2]=128;J[i+36>>2]=128;J[i+24>>2]=0;J[i+28>>2]=1071644672;J[i+16>>2]=0;J[i+20>>2]=1071644672;J[i+8>>2]=0;J[i+4>>2]=i+224;J[i>>2]=i+56;J[i+44>>2]=a+1636;J[i+52>>2]=i;J[i+48>>2]=i+120;k=O[a+2896>>3]*+(h>>>0)/255;s:{if(!(R(k+-1)<1.1920928955078125E-7)){c=a+1832|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;t:{if(j<4294967296&j>=0){d=~~j>>>0;break t}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;u:{if(j<4294967296&j>=0){d=~~j>>>0;break u}d=0}J[e>> -2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2306,a|0,i+44|0);c=J[695492];J[695492]=0;if((c|0)==1)break s;a=a+1832|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;v:{if(k<4294967296&k>=0){c=~~k>>>0;break v}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;w:{if(k<4294967296&k>=0){c=~~k>>>0;break w}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a}J[695492]=0;da(2306,a|0,i+44|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}break b}J[695492]=0;da(2312,a|0,i+44|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break a;break b}J[695492]=0;da(2311,a|0,i+44|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break b}J[695492]=0;da(2310,a|0,i+44|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}a=Z()|0;b=J[i+120>>2];if(b)qc(b);ba(a|0);B()}a=J[i+120>>2];if(a)qc(a);bc=i+272|0}function y8a(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;i=bc-272|0;bc=i;b=J[b>>2];l=J[b+44>>2];J[i+216>>2]=J[b+40>>2];J[i+220>>2]=l;l=J[b+36>>2];J[i+208>>2]=J[b+32>>2];J[i+212>> -2]=l;l=J[b+28>>2];J[i+200>>2]=J[b+24>>2];J[i+204>>2]=l;l=J[b+20>>2];J[i+192>>2]=J[b+16>>2];J[i+196>>2]=l;l=J[b+12>>2];J[i+184>>2]=J[b+8>>2];J[i+188>>2]=l;l=J[b+4>>2];J[i+176>>2]=J[b>>2];J[i+180>>2]=l;b=J[a+44>>2];l=J[b+44>>2];J[i+168>>2]=J[b+40>>2];J[i+172>>2]=l;l=J[b+36>>2];J[i+160>>2]=J[b+32>>2];J[i+164>>2]=l;l=J[b+28>>2];J[i+152>>2]=J[b+24>>2];J[i+156>>2]=l;l=J[b+20>>2];J[i+144>>2]=J[b+16>>2];J[i+148>>2]=l;l=J[b+12>>2];J[i+136>>2]=J[b+8>>2];J[i+140>>2]=l;l=J[b+4>>2];J[i+128>>2]=J[b>>2];J[i+132>> -2]=l;Fp(i+128|0);b=J[i+172>>2];J[i+264>>2]=J[i+168>>2];J[i+268>>2]=b;b=J[i+164>>2];J[i+256>>2]=J[i+160>>2];J[i+260>>2]=b;b=J[i+156>>2];J[i+248>>2]=J[i+152>>2];J[i+252>>2]=b;b=J[i+148>>2];J[i+240>>2]=J[i+144>>2];J[i+244>>2]=b;b=J[i+140>>2];J[i+232>>2]=J[i+136>>2];J[i+236>>2]=b;b=J[i+132>>2];J[i+224>>2]=J[i+128>>2];J[i+228>>2]=b;l=i+176|0;b=ej(i+224|0,l);m=J[b+44>>2];J[i+216>>2]=J[b+40>>2];J[i+220>>2]=m;m=J[b+36>>2];J[i+208>>2]=J[b+32>>2];J[i+212>>2]=m;m=J[b+28>>2];J[i+200>>2]=J[b+24>>2];J[i+204>>2]= -m;m=J[b+20>>2];J[i+192>>2]=J[b+16>>2];J[i+196>>2]=m;m=J[b+12>>2];J[i+184>>2]=J[b+8>>2];J[i+188>>2]=m;m=J[b+4>>2];J[i+176>>2]=J[b>>2];J[i+180>>2]=m;Fp(l);J[i+120>>2]=0;J[i+124>>2]=0;J[i+224>>2]=l;J[i+116>>2]=f;J[i+112>>2]=e;J[i+108>>2]=d;J[i+100>>2]=c;J[i+104>>2]=c;if((f|0)<0)J[i+104>>2]=P(1-e|0,f)+c;a:{b:{c:{d:{e:{f:switch(g-1|0){case 0:J[i+96>>2]=i+100;b=0;J[i+36>>2]=0;J[i+24>>2]=0;J[i+12>>2]=d;c=d<<1;J[i+16>>2]=c;J[i+28>>2]=e;J[i+32>>2]=1073741823%(e>>>0)^1073741823;J[i+20>>2]=1073741823%(c>>>0)^ -1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1636;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2896>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break c;c=a+1832|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;g:{if(j<4294967296&j>=0){d=~~j>>>0;break g}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;h:{if(j<4294967296&j>=0){d=~~j>>> -0;break h}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2313,a|0,i+44|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;a=a+1832|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;i:{if(k<4294967296&k>=0){c=~~k>>>0;break i}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;j:{if(k<4294967296&k>=0){c=~~k>>>0;break j}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;case 1:J[i+96>>2]=i+100;b=0;J[i+36>>2]=0;J[i+20>>2]=0;J[i+24>>2]=e;c=e<<1;J[i+28>>2]=c;J[i+12>>2]=d;J[i+16>>2]= -1073741823%(d>>>0)^1073741823;J[i+32>>2]=1073741823%(c>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1636;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2896>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break d;c=a+1832|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;k:{if(j<4294967296&j>=0){d=~~j>>>0;break k}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d| -0)/255);j=(j>1?1:j)*255+.5;l:{if(j<4294967296&j>=0){d=~~j>>>0;break l}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2314,a|0,i+44|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;a=a+1832|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;m:{if(k<4294967296&k>=0){c=~~k>>>0;break m}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;n:{if(k<4294967296&k>=0){c=~~k>>>0;break n}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;case 2:J[i+96>>2]=i+100;b=0;J[i+40>>2]=0;J[i+24>> -2]=0;J[i+28>>2]=e;c=e<<1;J[i+32>>2]=c;J[i+12>>2]=d;d=d<<1;J[i+16>>2]=d;J[i+36>>2]=1073741823%(c>>>0)^1073741823;J[i+20>>2]=1073741823%(d>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1636;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2896>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break e;c=a+1832|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;o:{if(j< -4294967296&j>=0){d=~~j>>>0;break o}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;p:{if(j<4294967296&j>=0){d=~~j>>>0;break p}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2315,a|0,i+44|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;a=a+1832|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;q:{if(k<4294967296&k>=0){c=~~k>>>0;break q}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;r:{if(k<4294967296&k>=0){c=~~k>>>0;break r}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!= -256)continue;break}break a;default:break f}J[i+96>>2]=i+100;b=0;J[i+88>>2]=0;J[i+76>>2]=0;J[i+80>>2]=e;J[i+84>>2]=1073741823%(e>>>0)^1073741823;J[i+68>>2]=d;J[i+72>>2]=1073741823%(d>>>0)^1073741823;J[i+56>>2]=i+96;J[i+32>>2]=128;J[i+36>>2]=128;J[i+24>>2]=0;J[i+28>>2]=1071644672;J[i+16>>2]=0;J[i+20>>2]=1071644672;J[i+8>>2]=0;J[i+4>>2]=i+224;J[i>>2]=i+56;J[i+44>>2]=a+1636;J[i+52>>2]=i;J[i+48>>2]=i+120;k=O[a+2896>>3]*+(h>>>0)/255;s:{if(!(R(k+-1)<1.1920928955078125E-7)){c=a+1832|0;while(1){e=c+(b<<2)| -0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;t:{if(j<4294967296&j>=0){d=~~j>>>0;break t}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;u:{if(j<4294967296&j>=0){d=~~j>>>0;break u}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2316,a|0,i+44|0);c=J[695492];J[695492]=0;if((c|0)==1)break s;a=a+1832|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;v:{if(k<4294967296&k>=0){c=~~k>>>0;break v}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;w:{if(k<4294967296&k>=0){c=~~k>>> -0;break w}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a}J[695492]=0;da(2316,a|0,i+44|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}break b}J[695492]=0;da(2315,a|0,i+44|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break b}J[695492]=0;da(2314,a|0,i+44|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break b}J[695492]=0;da(2313,a|0,i+44|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}a=Z()|0;b=J[i+120>>2];if(b)qc(b);ba(a|0);B()}a=J[i+120>>2];if(a)qc(a);bc=i+272|0}function zVa(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;e=bc+-64|0;bc=e;a=mp(a,b,c,d);J[a+248>>2]=0;J[a+252>>2]=0;J[a>>2]=828204;J[a+296>>2]=0;J[a+300>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+272>>2]=0;J[a+276>>2]=0;J[a+304>>2]=0;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;b=J[b+24>>2];J[695492]=0;ha(3207,c|0,b|0,e+32|0,0)|0;b=J[695492];J[695492]=0;j=a+296|0;a:{if((b|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],828292,e+16|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a; -if(J[b>>2]==6){J[e+48>>2]=13;J[695492]=0;b=ha(3283,J[e+24>>2],0,e+48|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[695492]=0;b=e+48|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;O[a+248>>3]=f-O[a+16>>3];k=O[a+8>>3];J[695492]=0;J[e+48>>2]=13;b=ha(3283,J[e+24>>2],1,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[695492]=0;b=e+48|0;_(3205, -b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;O[a+256>>3]=k-f;J[695492]=0;J[e+48>>2]=13;b=ha(3283,J[e+24>>2],2,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[695492]=0;b=e+48|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;O[a+264>>3]=f-O[a+16>>3];k=O[a+8>>3];J[695492]=0;J[e+48>>2]=13;b=ha(3283,J[e+24>>2],3,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+ -56>>2]:O[e+56>>3]:f;J[695492]=0;_(3205,e+48|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;O[a+272>>3]=k-f}J[695492]=0;b=e+16|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],828535,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;b:{if(J[b>>2]!=6)break b;I[a+240>>1]=1285;J[a+4>>2]=J[a+4>>2]|32768;b=J[e+24>>2];if(J[b+12>>2]<=0)break b;J[695492]=0;b=ha(3283,b|0,0,e|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(J[b>>2]==4)m=a,n=fw(e),H[m+240|0]= -n;J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[e+24>>2];if(J[b+12>>2]<2)break b;J[695492]=0;b=ha(3283,b|0,1,e|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(J[b>>2]==4)m=a,n=fw(e),H[m+241|0]=n;J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;b=e+16|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],828696,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c:{d:{if(J[b>>2]!=6)break d;J[a+4>>2]= -J[a+4>>2]|65536;c=J[e+24>>2];if(J[c+12>>2]<=0)break d;while(1){J[695492]=0;b=ha(3283,c|0,l|0,e|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e>>2]==1?+J[e+8>>2]:O[e+8>>3]:f;c=J[a+300>>2];g=J[a+304>>2];e:{if(c>>>0>>0){O[c>>3]=f;J[a+300>>2]=c+8;break e}d=J[j>>2];i=c-d>>3;b=i+1|0;if(b>>>0>=536870912){J[695492]=0;_(2399,j|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;break c}g=g-d|0;h=g>>2;g=g>>>0>=2147483640?536870911:b>>>0>>0?h:b;f:{if(!g){h=0;break f}if(g>>> -0>=536870912){J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break a}J[695492]=0;h=$(4,g<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}b=(i<<3)+h|0;O[b>>3]=f;i=b+8|0;if((c|0)!=(d|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(d|0))continue;break}J[a+304>>2]=(g<<3)+h;J[a+300>>2]=i;J[a+296>>2]=b;if(!d)break e;qc(d)}J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;l=l+1|0;c=J[e+24>>2];if((l|0)>2])continue;break}}J[695492]=0;b=e+16|0;_(3205,b|0); -c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],828879,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(J[b>>2]-3>>>0>=4294967294){J[a+4>>2]=J[a+4>>2]|131072;O[a+216>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]}J[695492]=0;b=e+16|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],829045,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(J[b>>2]-3>>>0>=4294967294){J[a+4>>2]=J[a+4>>2]|262144;O[a+224>>3]=J[e+16>>2]==1?+J[e+ -24>>2]:O[e+24>>3]}J[695492]=0;b=e+16|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],829104,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(!J[b>>2])J[a+4>>2]=J[a+4>>2]|524288;J[695492]=0;b=e+16|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],829320,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;g:{if(J[b>>2]!=4)break g;H[a+208|0]=0;J[a+4>>2]=J[a+4>>2]|1048576;if(J[e+16>>2]!=4)break g;if(Ec(J[e+24>> -2],829363))break g;H[a+208|0]=1}J[695492]=0;b=e+16|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],829630,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(J[b>>2]-3>>>0>=4294967294){J[a+4>>2]=J[a+4>>2]|2097152;O[a+232>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]}J[695492]=0;b=e+16|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;b=ha(3203,J[e+40>>2],829725,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;h:{if(J[b>>2]!=4)break h; -H[a+209|0]=0;J[a+4>>2]=J[a+4>>2]|4194304;if(J[e+16>>2]!=4)break h;if(Ec(J[e+24>>2],829825))break h;H[a+209|0]=1}J[695492]=0;b=e+16|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+280>>2]=0;J[a+284>>2]=0;J[a+288>>2]=0;J[a+292>>2]=0;J[695492]=0;b=ha(3203,J[e+40>>2],830036,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(J[b>>2]==6){J[a+4>>2]=J[a+4>>2]|8388608;J[695492]=0;J[e+48>>2]=13;b=ha(3283,J[e+24>>2],0,e+48|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>> -0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[695492]=0;b=e+48|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;O[a+280>>3]=f;J[695492]=0;J[e+48>>2]=13;b=ha(3283,J[e+24>>2],1,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[695492]=0;_(3205,e+48|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;O[a+288>>3]=f}J[695492]=0;_(3205,e+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,e+32|0);b= -J[695492];J[695492]=0;if((b|0)==1)break a;bc=e- -64|0;return a|0}B()}c=Z()|0;b=J[j>>2];if(b){J[a+300>>2]=b;qc(b)}lh(a);ba(c|0);B()}function WU(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;d=bc-48|0;bc=d;a:{b:{c:{d:{e=J[c>>2];g=K[e|0];if(!g)break d;while(1){f=g<<24>>24;if((f|0)==32|f-9>>>0<5){f=e+1|0;J[c>>2]=f;g=K[e+1|0];e=f;if(g)continue;break d}break}e:{f:switch((g&255)-40|0){case 0:J[c>>2]=e+1;J[d+4>>2]=0;md(d+4|0,0);J[a>>2]=0;b=J[d+4>>2];if(!b){J[a+4>>2]=0;break c}J[695492]=0;J[b+4>>2]= -J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break a;b=a;a=J[d+4>>2];J[b+4>>2]=a;J[d+4>>2]=0;if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break b;case 1:J[c>>2]=e+1;J[d+4>>2]=0;md(d+4|0,0);J[a>>2]=1;b=J[d+4>>2];if(!b){J[a+4>>2]=0;break c}J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)!=1){b=a;a=J[d+4>>2];J[b+4>>2]=a;J[d+4>>2]=0;if(!a)break c;J[695492]= -0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break b}break a;default:if((g-48&255)>>>0>9)break e;break;case 5:break f}b=rc(56);e=vg(e,c,10);J[b+8>>2]=1;J[b+12>>2]=0;J[b>>2]=2389692;J[b+4>>2]=0;c=J[682146];J[b+40>>2]=0;J[b+44>>2]=0;J[b+36>>2]=c;J[b+32>>2]=0;J[b+28>>2]=c;J[b+24>>2]=0;J[b+20>>2]=e;J[b+16>>2]=c;J[b+48>>2]=0;J[b+52>>2]=0;J[695492]=0;c=b+40|0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+ -12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;sc(b+32|0);sc(b+24|0);sc(b+12|0);qc(ed(b));ba(a|0);B()}J[d+4>>2]=0;md(d+4|0,b);J[a>>2]=2;b=J[d+4>>2];if(!b){J[a+4>>2]=0;break c}J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)!=1){b=a;a=J[d+4>>2];J[b+4>>2]=a;J[d+4>>2]=0;if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break b}break a}if((g&255)!=34)break d; -J[d+36>>2]=0;J[d+40>>2]=J[682146];h=e+1|0;J[c>>2]=h;g:{h:{i:{while(1){g=0;while(1){e=K[g+h|0];if(!(!e|(e|0)==34|(e|0)==92)){g=g+1|0;continue}break}j:{k:{l:{if(g){J[695492]=0;e=ga(5169,d+28|0,h|0,g|0)|0;f=J[695492];J[695492]=0;m:{if((f|0)!=1){J[695492]=0;ca(5122,d+4|0,d+36|0,e|0);f=J[695492];J[695492]=0;if((f|0)==1)break m;f=J[d+4>>2];n:{if(f){h=J[J[f>>2]+28>>2];J[695492]=0;ca(h|0,d+44|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break n;c=Z()|0;break h}J[d+44>>2]=0}J[695492]=0;aa(4993,d+36|0,d+44| -0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){f=J[d+44>>2];J[d+44>>2]=0;if(!f)break l;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break l;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break l}break b}c=Z()|0;vc(d+44|0);break h}c=Z()|0;break g}c=Z()|0;sc(e);break g}o:{e=K[h|0];if((e|0)!=92){if((e|0)!=34)break o;J[c>>2]=h+1;J[695492]=0;b=$(4,56)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break j;break i}e=h+1|0;f=K[h+1|0];if(K[b+16|0]){g=e;e=(f|0)==34;J[c>> -2]=e?h+2|0:g;J[695492]=0;aa(5145,d+36|0,(e?34:92)|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break k;c=Z()|0;break g}if(!f)break o;J[c>>2]=e;p:{q:{r:{s:{t:{u:{v:{w:{f=K[e|0];if((f&248)!=48){e=9;switch(f-97|0){case 19:break p;case 21:break r;case 5:break s;case 1:break t;case 17:break u;case 13:break v;case 0:break w;default:break q}}J[c>>2]=h+2;g=f-48|0;e=K[h+2|0];x:{if((e&248)!=48)break x;J[c>>2]=h+3;g=(e+(g<<3)|0)-48|0;e=K[h+3|0];if((e&248)!=48)break x;J[c>>2]=h+4;g=(e+(g<<3)|0)-48|0}J[695492]=0; -aa(5145,d+36|0,g<<24>>24)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break k;c=Z()|0;break g}e=7;break p}e=10;break p}e=13;break p}e=8;break p}e=12;break p}e=11;break p}e=f}J[c>>2]=h+2;J[695492]=0;aa(5145,d+36|0,e<<24>>24)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break k;c=Z()|0;break g}J[695492]=0;a=ja(5018,d+4|0,J[682138],2377733,495,2389858,0)|0;b=J[695492];J[695492]=0;y:{if((b|0)!=1){J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break y;B()}c=Z()|0;break g}c=Z()|0;Fc(a);break g}f=J[d+36>> -2];J[d+40>>2]=J[(f?f+12|0:2728584)>>2];sc(d+4|0);sc(e);J[c>>2]=J[c>>2]+g}h=J[c>>2];continue}break}c=J[d+36>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;c=ga(5190,b|0,2,c|0)|0;e=J[695492];J[695492]=0;z:{if((e|0)!=1){J[695492]=0;J[d+4>>2]=0;aa(4985,d+4|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;J[a>>2]=2;b=J[d+4>>2];A:{if(!b){J[a+4>>2]=0;break A}J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break z;b=a;a=J[d+4>>2];J[b+4>>2]=a;J[d+4>>2]=0;if(!a)break A;J[695492]=0;b=J[a+ -4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break A;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}sc(d+36|0);break c}c=Z()|0;qc(b);break g}c=Z()|0;vc(d+4|0);break g}c=Z()|0;break g}sc(d+4|0);sc(e)}sc(d+36|0);ba(c|0);B()}J[d+4>>2]=0;J[d+8>>2]=J[682146];B:{C:{D:{E:{F:{while(1){b=J[c>>2];J[c>>2]=b+1;e=K[b|0];if((e|0)==41)break F;if(!e){J[695492]=0;J[d+36>>2]=0;aa(4985,d+36|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[a>>2]=1;b=J[d+36>>2];if(!b){J[a+ -4>>2]=0;break B}J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)!=1){b=a;a=J[d+36>>2];J[b+4>>2]=a;J[d+36>>2]=0;if(!a)break B;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break B;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;break B}g=Z()|0;vc(d+36|0);break C}b=e<<24>>24;if((b|0)==32|b-9>>>0<5)break E;J[695492]=0;aa(5145,d+4|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}g=Z()|0;break C}J[c>>2]=b}J[695492]= -0;b=$(4,56)|0;c=J[695492];J[695492]=0;G:{H:{I:{if((c|0)==1)break I;c=J[d+4>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;c=ga(5190,b|0,3,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break H;J[695492]=0;J[d+36>>2]=0;aa(4985,d+36|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break I;J[a>>2]=2;b=J[d+36>>2];if(!b){J[a+4>>2]=0;break B}J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break G;b=a;a=J[d+36>>2];J[b+4>>2]=a;J[d+36>>2]=0;if(!a)break B;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c= -J[695492];J[695492]=0;if((c|0)!=1){if(b)break B;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break B}break b}g=Z()|0;break C}g=Z()|0;qc(b);break C}g=Z()|0;vc(d+36|0);break C}g=Z()|0}sc(d+4|0);ba(g|0);B()}sc(d+4|0)}bc=d+48|0;return}ea(0)|0;yc();B()}a=Z()|0;vc(d+4|0);ba(a|0);B()}function nWa(a){a=a|0;var b=0,c=0,d=0;d=J[a+404>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a:{if(c)break a;if(gc[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b= -J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=216;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(gc[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}J[d+28>>2]=0;c:{if(!J[a+244>>2])break c;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(gc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=224;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(gc[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25; -gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(gc[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=16;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g:{if(c)break g;if(gc[J[b+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=74;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(gc[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>> -2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=70;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(gc[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=73;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(gc[J[b+12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=70;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(gc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1; -H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(gc[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=K[a+248|0];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;m:{if(c)break m;if(gc[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=K[a+249|0];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(gc[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=K[a+250|0];b=J[a+24>>2];c=J[b>>2]; -J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;o:{if(c)break o;if(gc[J[b+12>>2]](a)|0)break o;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}c=L[a+252>>1];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;p:{if(d)break p;if(gc[J[b+12>>2]](a)|0)break p;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;q:{if(c)break q;if(gc[J[b+12>>2]](a)|0)break q;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}c=L[a+254>>1];b=J[a+24>>2];d=J[b>> -2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;r:{if(d)break r;if(gc[J[b+12>>2]](a)|0)break r;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;s:{if(c)break s;if(gc[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(gc[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0; -c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break c;if(gc[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}u:{if(!J[a+256>>2])break u;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;v:{if(c)break v;if(gc[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=238;c=J[b+4>>2]-1|0;J[b+4>>2]=c;w:{if(c)break w;if(gc[J[b+12>>2]](a)|0)break w;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0; -c=J[b+4>>2]-1|0;J[b+4>>2]=c;x:{if(c)break x;if(gc[J[b+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=14;c=J[b+4>>2]-1|0;J[b+4>>2]=c;y:{if(c)break y;if(gc[J[b+12>>2]](a)|0)break y;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=65;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(gc[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=100;c=J[b+4>>2]-1|0;J[b+4>> -2]=c;A:{if(c)break A;if(gc[J[b+12>>2]](a)|0)break A;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=111;c=J[b+4>>2]-1|0;J[b+4>>2]=c;B:{if(c)break B;if(gc[J[b+12>>2]](a)|0)break B;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=98;c=J[b+4>>2]-1|0;J[b+4>>2]=c;C:{if(c)break C;if(gc[J[b+12>>2]](a)|0)break C;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=101;c=J[b+4>>2]-1|0;J[b+4>>2]=c;D:{if(c)break D;if(gc[J[b+ -12>>2]](a)|0)break D;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;E:{if(c)break E;if(gc[J[b+12>>2]](a)|0)break E;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=100;c=J[b+4>>2]-1|0;J[b+4>>2]=c;F:{if(c)break F;if(gc[J[b+12>>2]](a)|0)break F;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;G:{if(c)break G;if(gc[J[b+12>>2]](a)|0)break G;b=J[a>> -2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;H:{if(c)break H;if(gc[J[b+12>>2]](a)|0)break H;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;I:{if(c)break I;if(gc[J[b+12>>2]](a)|0)break I;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;J:{if(c)break J;if(gc[J[b+12>>2]](a)|0)break J;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d= -J[a+80>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;K:{L:switch(d-3|0){case 0:H[c|0]=1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break u;if(!(gc[J[b+12>>2]](a)|0))break K;break u;case 2:H[c|0]=2;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break u;if(!(gc[J[b+12>>2]](a)|0))break K;break u;default:break L}H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break u;if(gc[J[b+12>>2]](a)|0)break u}b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}}function sJa(a){a=a|0;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;a=J[a+116>>2];e=a;k=J[a+204>>2];a:{b:{c:{d:{if(J[a>>2]==3){c=J[a+204>>2];e:{if(J[c+8>>2]<=0){s=1;break e}while(1){a=J[J[c>>2]+(b<<2)>>2];if(Zk(J[a>>2]))a=1;else a=ok(J[a>>2])?-1:0;g=a+g|0;b=b+1|0;if((b|0)>2])continue;break}s=(g|0)>=0;c=J[e+204>>2];g=J[c+8>>2];if((g|0)<=0)break e;j=O[e+120>>3];l=O[e+112>>3];n=J[c>>2];a=0;while(1){f:{g:{h:{i:{b=J[n+(a<<2)>>2];switch(K[b+88|0]-1|0){case 2:break g;case 1:break h;case 0:break i;default:break f}}i=O[b+32>>3];O[b+32>>3]=O[b+40>>3]; -r=O[b+16>>3];O[b+16>>3]=O[b+24>>3];O[b+40>>3]=l-r;O[b+24>>3]=l-i;break f}i=O[b+32>>3];O[b+32>>3]=l-O[b+16>>3];O[b+16>>3]=l-i;i=O[b+40>>3];O[b+40>>3]=j-O[b+24>>3];O[b+24>>3]=j-i;break f}i=O[b+40>>3];O[b+40>>3]=O[b+32>>3];r=O[b+24>>3];O[b+24>>3]=O[b+16>>3];O[b+32>>3]=j-r;O[b+16>>3]=j-i}a=a+1|0;if((g|0)!=(a|0))continue;break}}n=bY(e,c);a=J[e+204>>2];c=J[a+8>>2];if((c|0)>0){j=O[e+120>>3];l=O[e+112>>3];g=J[a>>2];a=0;while(1){j:{k:{l:{m:{b=J[g+(a<<2)>>2];switch(K[b+88|0]-1|0){case 2:break k;case 1:break l; -case 0:break m;default:break j}}i=O[b+40>>3];O[b+40>>3]=O[b+32>>3];r=O[b+24>>3];O[b+24>>3]=O[b+16>>3];O[b+32>>3]=l-r;O[b+16>>3]=l-i;break j}i=O[b+32>>3];O[b+32>>3]=l-O[b+16>>3];O[b+16>>3]=l-i;i=O[b+40>>3];O[b+40>>3]=j-O[b+24>>3];O[b+24>>3]=j-i;break j}i=O[b+32>>3];O[b+32>>3]=O[b+40>>3];r=O[b+16>>3];O[b+16>>3]=O[b+24>>3];O[b+40>>3]=j-r;O[b+24>>3]=j-i}a=a+1|0;if((c|0)!=(a|0))continue;break}}aY(e,n);break d}if(J[e+52>>2])c=KH(e,J[e+204>>2]);h=Gv(e,k);s=1;if(J[k+8>>2]>0){while(1){a=J[J[k>>2]+(b<<2)>> -2];if(Zk(J[a>>2]))a=1;else a=ok(J[a>>2])?-1:0;g=a+g|0;b=b+1|0;if((b|0)>2])continue;break}s=(g^-1)>>>31|0}b=CA(e,k);if(!b){Un(e,k,h);a=rc(8);J[695492]=0;e=$(4,16)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;b=$(3185,e|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[a>>2]=b;J[a+4>>2]=1;break a}b=Z()|0;qc(e);break b}b=Z()|0;break b}a=rc(16);J[695492]=0;n=$(3185,a|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;BA(e,b,n,s);qc(Vn(b));Un(e,k,h);if(J[e+24>>2]){JH(e,h);IH(e,n)}if(!c)break d;n:{if(J[c+ -8>>2]<=0)break n;id(n,HH(c));a=J[c+8>>2];if((a|0)<=0)break n;b=0;while(1){g=J[J[c>>2]+(b<<2)>>2];if(g){qc(g);a=J[c+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}qc(dd(c))}a=rc(16);J[695492]=0;k=$(3185,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){a=J[n+8>>2];if((a|0)>0)while(1){m=0;u=J[J[n>>2]+(p<<2)>>2];b=J[u>>2];if(J[b+8>>2]>0){while(1){o=0;v=J[J[b>>2]+(m<<2)>>2];a=J[v>>2];if(J[a+8>>2]>0){while(1){q=J[J[a>>2]+(o<<2)>>2];b=J[q>>2];if(J[b+8>>2]>0){g=0;while(1){c=J[J[b>>2]+(g<<2)>>2];a=rc(112);b=tc(a, -c,105);d=J[b+44>>2];J[695492]=0;f=aa(3376,d|0,4)|0;t=J[695492];J[695492]=0;o:{p:{if((t|0)==1)break p;J[b+32>>2]=f;t=d<<2;tc(f,J[c+32>>2],t);J[695492]=0;w=d+1|0;f=aa(3376,w|0,8)|0;x=J[695492];J[695492]=0;if((x|0)==1)break p;J[b+40>>2]=f;tc(f,J[c+40>>2],(d<<3)+8|0);J[695492]=0;d=aa(3376,w|0,4)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break o}b=Z()|0;break b}J[b+36>>2]=d;tc(d,J[c+36>>2],t+4|0);if(!(J[q+60>>2]|(J[J[q>>2]+8>>2]-1|0)!=(g|0)))H[b+103|0]=1;id(k,b);g=g+1|0;b=J[q>>2];if((g|0)>2])continue; -break}a=J[v>>2]}o=o+1|0;if((o|0)>2])continue;break}b=J[u>>2]}m=m+1|0;if((m|0)>2])continue;break}a=J[n+8>>2]}p=p+1|0;if((p|0)<(a|0))continue;break}a=J[e>>2]-1|0;if(!(a>>>0>5|!(59>>>a&1)))bl(k,J[(a<<2)+2333668>>2]);q:{r:switch(h-1|0){case 1:o=J[k+8>>2];if((o|0)<=0)break q;q=J[k>>2];b=0;while(1){a=J[q+(b<<2)>>2];l=O[a+24>>3];j=O[e+112>>3];i=O[e+120>>3];O[a+24>>3]=i-O[a+16>>3];O[a+16>>3]=i-l;l=O[a+8>>3];O[a+8>>3]=j-O[a>>3];O[a>>3]=j-l;g=K[a+100|0];H[a+100|0]=g+2&3;c=J[a+44>>2];s:{if(g&1){if((c| -0)<0)break s;d=c+1|0;m=d&3;h=J[a+40>>2];g=0;a=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=a<<3;f=d+h|0;O[f>>3]=O[e+120>>3]-O[f>>3];f=h+(d|8)|0;O[f>>3]=O[e+120>>3]-O[f>>3];f=h+(d|16)|0;O[f>>3]=O[e+120>>3]-O[f>>3];d=h+(d|24)|0;O[d>>3]=O[e+120>>3]-O[d>>3];a=a+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break s;while(1){c=h+(a<<3)|0;O[c>>3]=O[e+120>>3]-O[c>>3];a=a+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}break s}if((c|0)<0)break s;d=c+1|0;m=d&3;h=J[a+40>>2];g=0;a=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d= -a<<3;f=d+h|0;O[f>>3]=O[e+112>>3]-O[f>>3];f=h+(d|8)|0;O[f>>3]=O[e+112>>3]-O[f>>3];f=h+(d|16)|0;O[f>>3]=O[e+112>>3]-O[f>>3];d=h+(d|24)|0;O[d>>3]=O[e+112>>3]-O[d>>3];a=a+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break s;while(1){c=h+(a<<3)|0;O[c>>3]=O[e+112>>3]-O[c>>3];a=a+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}b=b+1|0;if((o|0)!=(b|0))continue;break}break q;case 2:o=J[k+8>>2];if((o|0)<=0)break q;q=J[k>>2];b=0;while(1){a=J[q+(b<<2)>>2];l=O[a+8>>3];j=O[e+120>>3];O[a+8>>3]=O[a+24>>3];i=O[a>> -3];O[a>>3]=O[a+16>>3];O[a+24>>3]=j-i;O[a+16>>3]=j-l;c=K[a+100|0]+3|0;H[a+100|0]=c&3;t:{if(!(c&1))break t;c=J[a+44>>2];if((c|0)<0)break t;d=c+1|0;m=d&3;h=J[a+40>>2];g=0;a=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=a<<3;f=d+h|0;O[f>>3]=O[e+120>>3]-O[f>>3];f=h+(d|8)|0;O[f>>3]=O[e+120>>3]-O[f>>3];f=h+(d|16)|0;O[f>>3]=O[e+120>>3]-O[f>>3];d=h+(d|24)|0;O[d>>3]=O[e+120>>3]-O[d>>3];a=a+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break t;while(1){c=h+(a<<3)|0;O[c>>3]=O[e+120>>3]-O[c>>3];a=a+1|0;g=g+1|0;if((m| -0)!=(g|0))continue;break}}b=b+1|0;if((o|0)!=(b|0))continue;break}break q;case 0:break r;default:break q}o=J[k+8>>2];if((o|0)<=0)break q;q=J[k>>2];b=0;while(1){a=J[q+(b<<2)>>2];l=O[a+24>>3];j=O[e+112>>3];O[a+24>>3]=O[a+8>>3];i=O[a+16>>3];O[a+16>>3]=O[a>>3];O[a+8>>3]=j-i;O[a>>3]=j-l;c=K[a+100|0];H[a+100|0]=c+1&3;u:{if(!(c&1))break u;c=J[a+44>>2];if((c|0)<0)break u;d=c+1|0;m=d&3;h=J[a+40>>2];g=0;a=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=a<<3;f=d+h|0;O[f>>3]=O[e+112>>3]-O[f>>3];f=h+(d|8)|0;O[f>>3]=O[e+112>> -3]-O[f>>3];f=h+(d|16)|0;O[f>>3]=O[e+112>>3]-O[f>>3];d=h+(d|24)|0;O[d>>3]=O[e+112>>3]-O[d>>3];a=a+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break u;while(1){c=h+(a<<3)|0;O[c>>3]=O[e+112>>3]-O[c>>3];a=a+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}b=b+1|0;if((o|0)!=(b|0))continue;break}}a=J[n+8>>2];if((a|0)>0){b=0;while(1){e=J[J[n>>2]+(b<<2)>>2];if(e){qc(Lq(e));a=J[n+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}qc(dd(n));a=rc(8);J[a>>2]=k;J[a+4>>2]=s;break a}b=Z()|0;break b}b=Z()|0}qc(a);ba(b| -0);B()}return a|0}function p1a(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;i=bc-160|0;bc=i;a:{b:{c:{d:{e:{f:switch(K[c|0]-4|0){case 0:break c;case 1:break f;default:break e}if(K[c+1|0]<3)break e;k=J[c+32>>2];if(!(k&65408))break d}J[d>>2]=13;break a}m=a+200|0;f=J[c+24>>2];H[m|0]=f;h=k&63;k=k&64;e=k>>>6|0;if(!k|f&255)break b;J[d>>2]=13;break a}m=a+200|0;f=J[c+24>>2];H[m|0]=f;h=8}if(f>>>0>=256)J[a+224>>2]=(f>>>8|0)+c;g:{h:{i:{f=f&255;if(f>>>0>14)break i;k=a+28|0; -if(1<>2]=J[183930];f=J[183929];J[i+48>>2]=J[183928];J[i+52>>2]=f;f=J[183927];J[i+40>>2]=J[183926];J[i+44>>2]=f;f=J[183925];J[i+32>>2]=J[183924];J[i+36>>2]=f;g=J[a+224>>2];if(!g){J[d>>2]=13;break a}if(J[b+4>>2]!=1){J[d>>2]=14;break a}c=(h<<2)+c|0;if(!Ec(c,J[a+12>>2]+4|0)){J[d>>2]=13;break a}J[i+32>>2]=28;J[i+36>>2]=2;H[i+40|0]=K[b+8|0];I[i+42>>1]=L[b+10>>1];J[i+44>>2]=J[b+12>>2];f=J[b+16>>2];J[i+52>>2]=c;J[i+48>>2]=f;f=0;c=0;j:{if(!d)break j;h=i+32|0;k:{if(J[d>> -2]>0)break k;c=J[h+16>>2];if(!(!c|!K[c|0])){c=cC(h,d);break j}l:{c=J[689351];if(c){c=yK(c,J[h+20>>2]);if(c)break l}c=cC(h,d);if(!c|J[d>>2]>0)break k;if(K[h+8|0])break j;w1(c);break j}J[c+4>>2]=J[c+4>>2]+1;f=c}c=f}if(J[d>>2]>0)break a;if(!(!J[c+220>>2]&K[J[c+12>>2]+69|0]==2)){aC(c);J[d>>2]=13;break a}if(K[b+8|0]){aC(c);break a}f=tc(k,c+28|0,184);J[a+224>>2]=g;J[a+220>>2]=c;J[a+192>>2]=0;J[a+40>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;m:{n:{b=J[a+12>>2];switch(K[b+69|0]-1|0){case 0:break m;case 1:break n; -default:break g}}if(H[b+70|0]<2)break g}o:{if(K[c+200|0]==12){b=J[J[a+36>>2]+56>>2];if((b&-2131755008)!=-2139095040)break g;b=b>>>24&127;if(!b)break g;H[a+29|0]=b;break o}b=J[c+12>>2];if(K[b+69|0]!=2|K[b+70|0]!=1|K[b+71|0]!=2)break g;b=H[f|0];if((b|0)<0)break g;f=b&255;g=f+1|0;b=Wh(g<<10);if(!b){aC(c);J[d>>2]=7;break a}d=tc(b,J[a+36>>2],f<<10);c=f<<24;b=0;while(1){h=b<<2;e=h+d|0;if(J[e>>2]<0)J[e>>2]=c;e=d+(h|4)|0;if(J[e>>2]<0)J[e>>2]=c;e=d+(h|8)|0;if(J[e>>2]<0)J[e>>2]=c;h=d+(h|12)|0;if(J[h>>2]<0)J[h>> -2]=c;b=b+4|0;if((b|0)!=256)continue;break}b=d+(f<<10)|0;f=0;while(1){c=f<<2;J[c+b>>2]=-2140143616;J[b+(c|4)>>2]=-2140143616;J[b+(c|8)>>2]=-2140143616;J[b+(c|12)>>2]=-2140143616;J[b+(c|16)>>2]=-2140143616;J[b+(c|20)>>2]=-2140143616;J[b+(c|24)>>2]=-2140143616;J[b+(c|28)>>2]=-2140143616;f=f+8|0;if((f|0)!=256)continue;break}H[a+28|0]=g;J[a+36>>2]=d;H[a+30|0]=1}H[m|0]=219;break g}J[d>>2]=13;break a}if(K[b+8|0])break a;b=J[c+4>>2];H[a+28|0]=b;f=J[c+8>>2];j=b<<10;b=(h<<2)+c|0;J[a+48>>2]=j+b;J[a+36>>2]=b; -J[a+32>>2]=f;J[a+44>>2]=J[c+12>>2]+c;J[a+52>>2]=J[c+16>>2]+c;J[a+188>>2]=J[c+20>>2]+c;J[a+196>>2]=J[c+28>>2];I[i+12>>1]=20;b=J[a+8>>2];g=i+12|0;p:{if(!g)break p;q:{if(!b)break q;h=J[b+4>>2];if(!h)break q;j=g+2|0;l=h+6|0;f=L[g>>1];b=0;r:{if((h|0)==-4)break r;b=L[h+4>>1];if(!K[h+8|0])break r;b=b<<8|(b&65280)>>>8}b=b&65535;if(f>>>0>b>>>0)I[g>>1]=b;else b=f;b=tc(j,l,b-2|0);if(!K[h+8|0])break p;f=b;b=L[h+6>>1];I[f>>1]=b<<8|b>>>8;break p}I[g>>1]=0}b=K[i+24|0];s:{if(!(b>>>0<=6&(!K[i+25|0]|(b|0)!=6))){h= -K[J[a+12>>2]+79|0]&3;H[a+201|0]=h;if(K[c+1|0]<3|h>>>0>=2)break s;b=K[c+2|0];if(K[k|0]==1){if(b>>>0<=14)break s;H[a+202|0]=1;b=J[a+52>>2];f=0;g=a+60|0;while(1){j=b+(f>>>3&536870910)|0;I[g+(f<<1)>>1]=L[(b+(f<<3&112)|0)+(L[j>>1]<<1)>>1];l=f|1;I[g+(l<<1)>>1]=L[(b+(l<<3&120)|0)+(L[j>>1]<<1)>>1];f=f+2|0;if((f|0)!=64)continue;break}I[a+204>>1]=4095;break s}if(b>>>0<=214)break s;H[a+202|0]=1;f=J[a+188>>2];J[a+56>>2]=f+(e?0:J[a+196>>2]);I[a+204>>1]=K[c+2|0]<<8|255;break s}h=3;H[a+201|0]=3}g=J[a+36>>2];f=0; -b=-1;while(1){j=Hzb(-2,f>>>2|0);l=f<<2;b=(J[g+(l|4)>>2]==(f|-2147483647)?-1:j)&((J[g+l>>2]==(f|-2147483648)?-1:j)&b);f=f+2|0;if((f|0)!=128)continue;break}J[a+208>>2]=b;if(!e)break g;g=J[c+16>>2];e=J[c+20>>2];j=J[c+36>>2];l=j<<2;h=h&1?1088:64;b=h<<1;n=J[a+196>>2]+(l+b|0)|0;c=Wh(n);J[a+212>>2]=c;if(!c){J[d>>2]=7;break g}f=0;o=j;j=h>>>1|0;d=(e-g>>>2|0)-j|0;c=wc(c,0,n);h=J[a+52>>2];c=tc(c,h,b);g=c+b|0;tc((o-d<<2)+g|0,b+h|0,d<<2);J[a+188>>2]=g+l;J[a+52>>2]=c;b=L[a+204>>1];if(b>>>0>=63){b=b+1>>>6|0;l=(b>>> -0<=16?16:b)-1>>>4|0;h=0;while(1){b=f;d=L[c+(b<<1)>>1];t:{if((d|0)==(j|0))break t;f=J[a+56>>2]+(h<<1)|0;e=L[f>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g>>2]=e;J[g+12>>2]=e+3;J[g+8>>2]=e+2;J[g+4>>2]=e+1}e=L[f+2>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+28>>2]=e+3;J[g+24>>2]=e+2;J[g+20>>2]=e+1;J[g+16>>2]=e}e=L[f+4>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+44>>2]=e+3;J[g+40>>2]=e+2;J[g+36>>2]=e+1;J[g+32>>2]=e}e=L[f+6>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+60>>2]=e+3;J[g+56>>2]=e+2;J[g+52>>2]=e+1;J[g+48>>2]=e}e=L[f+8>> -1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+76>>2]=e+3;J[g+72>>2]=e+2;J[g+68>>2]=e+1;J[g- -64>>2]=e}e=L[f+10>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+92>>2]=e+3;J[g+88>>2]=e+2;J[g+84>>2]=e+1;J[g+80>>2]=e}e=L[f+12>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+108>>2]=e+3;J[g+104>>2]=e+2;J[g+100>>2]=e+1;J[g+96>>2]=e}e=L[f+14>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+124>>2]=e+3;J[g+120>>2]=e+2;J[g+116>>2]=e+1;J[g+112>>2]=e}e=L[f+16>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+140>>2]=e+3;J[g+136>>2]=e+2;J[g+132>>2]=e+1;J[g+128>>2]= -e}e=L[f+18>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+156>>2]=e+3;J[g+152>>2]=e+2;J[g+148>>2]=e+1;J[g+144>>2]=e}e=L[f+20>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+172>>2]=e+3;J[g+168>>2]=e+2;J[g+164>>2]=e+1;J[g+160>>2]=e}e=L[f+22>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+188>>2]=e+3;J[g+184>>2]=e+2;J[g+180>>2]=e+1;J[g+176>>2]=e}e=L[f+24>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+204>>2]=e+3;J[g+200>>2]=e+2;J[g+196>>2]=e+1;J[g+192>>2]=e}e=L[f+26>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+220>>2]=e+3;J[g+216>>2]=e+2;J[g+212>> -2]=e+1;J[g+208>>2]=e}e=L[f+28>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+236>>2]=e+3;J[g+232>>2]=e+2;J[g+228>>2]=e+1;J[g+224>>2]=e}f=L[f+30>>1];if(!f)break t;d=c+(d<<2)|0;f=f>>>4|0;J[d+252>>2]=f+3;J[d+248>>2]=f+2;J[d+244>>2]=f+1;J[d+240>>2]=f}f=b+1|0;h=h+16|0;if((b|0)!=(l|0))continue;break}}b=i+32|0;wc(b,255,128);f=0;_B(J[a+36>>2],b,0);b=K[a+28|0];if(!b)break g;while(1){c=i+32|0;if(H[c+f|0]>=64){g1(k,c,f,0,0,k);b=K[k|0]}f=f+1|0;if(f>>>0<(b&255)>>>0)continue;break}}u:{v:{if(K[a+202|0]){if(K[k|0]!=1)break v; -J[a+20>>2]=735724}f=K[m|0];break u}f=K[m|0];if((f|0)!=1)break u;J[a+20>>2]=735796;break a}b=f&255;if((b|0)!=219&(b|0)!=12)break a;J[a+208>>2]=0}bc=i+160|0}function Pwa(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=bc-112|0;bc=f;J[f+80>>2]=0;J[f+72>>2]=0;J[f+76>>2]=0;e=f- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[f+56>>2]=0;J[f+60>>2]=0;h=Jn(f+56|0,2406656);J[695492]=0;g=a+8|0;e=g;e=J[J[e+12>>2]+((b>>>0)%M[e+8>>2]<<2)>>2];i=J[695492];J[695492]=0;a:{if((i|0)!=1){b:{c:{if(!e)break c;while(1){if(!(J[e+ -12>>2]==(b|0)&J[e+16>>2]==(b|0))){e=J[e+8>>2];if(e)continue;break c}break}J[695492]=0;e=J[J[g+12>>2]+((b>>>0)%M[g+8>>2]<<2)>>2];i=J[695492];J[695492]=0;if((i|0)==1)break b;d:{if(e)while(1){if(J[e+12>>2]==(b|0)&J[e+16>>2]==(b|0))break d;e=J[e+8>>2];if(e)continue;break}J[695492]=0;e=$(4,24)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=0;J[e+16>>2]=b;J[e+12>>2]=b;J[e+8>>2]=0;J[695492]=0;aa(5424,g|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b}e=J[J[e+20>>2]+8>> -2];if(!e)break c;while(1){g=J[e+8>>2];J[695492]=0;ia(5425,a|0,h|0,g|0,(b|0)!=(g|0)|0);g=J[695492];J[695492]=0;if((g|0)==1){e=Z()|0;break a}e=J[e>>2];if(e)continue;break}}J[f+48>>2]=0;J[f+52>>2]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(d){d=0;J[695492]=0;b=J[h+24>>2];J[f+92>>2]=h;J[f+88>>2]=b;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[f+92>>2];e=J[f+88>>2];J[f+48>>2]=e;J[f+52>>2]=b;if(e){if((b|0)!=(h|0))break g;while(1){b=J[e+20>>2];d=(b|0)<(d|0)?d:b;e=J[e>>2];if(e)continue;break}}J[f+48>>2]=0;J[695492]=0; -b=ha(5198,f+24|0,2406716,0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;e=J[h+24>>2];J[f+92>>2]=h;J[f+88>>2]=e;e=J[695492];J[695492]=0;if((e|0)==1)break k;g=J[f+92>>2];e=J[f+88>>2];J[f+48>>2]=e;J[f+52>>2]=g;o:{if(!e)break o;while(1){if(J[f+52>>2]!=(h|0)){J[695492]=0;da(5073,f+48|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;break e}i=J[e+20>>2];if(!((i|0)>=J[b+16>>2]&(i|0)<=J[b+20>>2])){J[695492]=0;a=ja(5018,f+88|0,2376977,2377831,619,2406756,0)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break e;J[695492]=0;_(5019,a|0);c=J[695492];J[695492]=0;if((c|0)!=1)break f;e=Z()|0;Fc(a);xd(b);break a}j=J[b+8>>2];k=J[b+4>>2];J[695492]=0;g=$(4,12)|0;l=J[695492];J[695492]=0;if((l|0)==1)break i;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=J[e+16>>2];J[695492]=0;of((i-j<<4)+k|0,g);e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[f+48>>2];if(!e)break o;e=J[e>>2];J[f+48>>2]=e;if(e)continue;break}}i=a+36|0;e=0;p:{while(1){if(J[b+20>>2]<(e|0)|J[b+16>>2]>(e|0))break j;a=e;g=J[b+4>>2]+(e-J[b+8>>2]<<4)|0;e=J[g+ -8>>2];J[f+52>>2]=g;while(1){q:{J[f+48>>2]=e;if(!e)break q;r:{s:{if(!((a|0)<=J[b+20>>2]&(a|0)>=J[b+16>>2])){J[695492]=0;a=ja(5018,f+88|0,2376977,2377831,619,2406756,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break s;J[695492]=0;_(5019,a|0);c=J[695492];J[695492]=0;if((c|0)!=1)break f;e=Z()|0;Fc(a);xd(b);break a}g=J[b+4>>2];j=J[b+8>>2];J[f+12>>2]=e;k=J[f+52>>2];J[f+16>>2]=k;g=g+(a-j<<4)|0;if((g|0)==(k|0))break r;J[695492]=0;da(5073,f+12|0,g|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}e=Z()|0;xd(b); -break a}g=J[e+8>>2];J[695492]=0;J[f+20>>2]=0;e=J[J[i+12>>2]+((g>>>0)%M[i+8>>2]<<2)>>2];j=J[695492];J[695492]=0;t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){if(!e)break z;while(1){if(!((g|0)==J[e+12>>2]&(g|0)==J[e+16>>2])){e=J[e+8>>2];if(e)continue;break A}break}if(!J[e+20>>2]|J[g+4>>2]<=0)break A;J[695492]=0;aa(4985,f+20|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break A;break y}break y}e=J[f+20>>2];if(!e)break t;if(J[e+4>>2]>0)break z;J[695492]=0;aa(4985,f+20|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break y}if(!J[f+ -20>>2])break t;J[695492]=0;e=$(4,12)|0;g=J[695492];J[695492]=0;if((g|0)==1)break v;J[e>>2]=0;J[e+4>>2]=0;g=J[f+20>>2];if(g)break x;g=0;break w}e=Z()|0;vc(f+20|0);xd(b);break a}J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;g=J[695492];J[695492]=0;if((g|0)==1)break v;g=J[f+20>>2]}J[e+8>>2]=g;J[695492]=0;of(c,e);e=J[695492];J[695492]=0;if((e|0)!=1)break u}e=Z()|0;vc(f+20|0);xd(b);break a}e=J[f+20>>2];J[f+20>>2]=0;if(!e)break t;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;j=J[695492];J[695492]=0;if((j|0)==1)break p;if(g)break t; -J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break p}e=J[f+48>>2];if(!e)break q;e=J[e>>2];continue}break}e=a+1|0;if((a|0)!=(d|0))continue;break}xd(b);break n}ea(0)|0;yc();B()}e=Z()|0;break a}J[695492]=0;b=J[h+24>>2];J[f+92>>2]=h;J[f+88>>2]=b;b=J[695492];J[695492]=0;if((b|0)==1)break l;b=J[f+92>>2];e=J[f+88>>2];J[f+48>>2]=e;J[f+52>>2]=b;if(!e)break n;b=a+36|0;while(1){if(J[f+52>>2]!=(h|0)){J[695492]=0;da(5073,f+48|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;e=Z()|0;break a}a= -J[e+16>>2];J[695492]=0;J[f+88>>2]=0;e=J[J[b+12>>2]+((a>>>0)%M[b+8>>2]<<2)>>2];d=J[695492];J[695492]=0;B:{C:{D:{E:{F:{G:{H:{I:{if((d|0)!=1){if(!e)break H;while(1){if(!((a|0)==J[e+12>>2]&(a|0)==J[e+16>>2])){e=J[e+8>>2];if(e)continue;break I}break}if(!J[e+20>>2]|J[a+4>>2]<=0)break I;J[695492]=0;aa(4985,f+88|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break I;break G}break G}a=J[f+88>>2];if(!a)break B;if(J[a+4>>2]>0)break H;J[695492]=0;aa(4985,f+88|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break G}if(!J[f+ -88>>2])break B;J[695492]=0;a=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break D;J[a>>2]=0;J[a+4>>2]=0;d=J[f+88>>2];if(d)break F;d=0;break E}e=Z()|0;vc(f+88|0);break a}J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break D;d=J[f+88>>2]}J[a+8>>2]=d;J[695492]=0;of(c,a);a=J[695492];J[695492]=0;if((a|0)!=1)break C}e=Z()|0;vc(f+88|0);break a}a=J[f+88>>2];J[f+88>>2]=0;if(!a)break B;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break m;if(d)break B; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break m}a=J[f+48>>2];if(!a)break n;e=J[a>>2];J[f+48>>2]=e;if(e)continue;break}}Bd(h);bc=f+112|0;return}ea(0)|0;yc();break f}e=Z()|0;break a}e=Z()|0;xd(b);break a}J[695492]=0;a=ja(5018,f+88|0,2376977,2377831,619,2406756,0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[695492]=0;_(5019,a|0);c=J[695492];J[695492]=0;if((c|0)!=1)break f;e=Z()|0;Fc(a);xd(b);break a}e=Z()|0;xd(b);break a}e=Z()|0;xd(b);break a}e=Z()|0;break a}J[695492]=0;J[f+48>>2]=e; -da(5073,f+48|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;e=Z()|0;break a}B()}e=Z()|0;xd(b);break a}e=Z()|0;break a}e=Z()|0}Bd(h);ba(e|0);B()}function Vva(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;h=bc-16|0;bc=h;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:switch(b-254|0){default:switch(b-32995|0){case 1:break k;case 3:break l;case 0:break p;case 2:break i;default:break b}case 0:J[J[c>>2]>>2]=J[a+80>>2];d=1;break a;case 2:J[J[c>>2]>>2]=J[a+56>>2];d=1;break a;case 3:J[J[c>>2]>> -2]=J[a+60>>2];d=1;break a;case 4:I[J[c>>2]>>1]=L[a+84>>1];d=1;break a;case 5:I[J[c>>2]>>1]=L[a+88>>1];d=1;break a;case 8:I[J[c>>2]>>1]=L[a+90>>1];d=1;break a;case 9:I[J[c>>2]>>1]=L[a+92>>1];d=1;break a;case 12:I[J[c>>2]>>1]=L[a+94>>1];d=1;break a;case 20:I[J[c>>2]>>1]=L[a+96>>1];d=1;break a;case 23:I[J[c>>2]>>1]=L[a+98>>1];d=1;break a;case 24:J[J[c>>2]>>2]=J[a+100>>2];d=1;break a;case 26:I[J[c>>2]>>1]=L[a+104>>1];d=1;break a;case 27:I[J[c>>2]>>1]=L[a+106>>1];d=1;break a;case 86:O[J[c>>2]>>3]=O[a+ -112>>3];d=1;break a;case 87:O[J[c>>2]>>3]=O[a+120>>3];d=1;break a;case 28:N[J[c>>2]>>2]=N[a+128>>2];d=1;break a;case 29:N[J[c>>2]>>2]=N[a+132>>2];d=1;break a;case 30:I[J[c>>2]>>1]=L[a+138>>1];d=1;break a;case 32:N[J[c>>2]>>2]=N[a+140>>2];d=1;break a;case 33:N[J[c>>2]>>2]=N[a+144>>2];d=1;break a;case 42:I[J[c>>2]>>1]=L[a+136>>1];d=1;break a;case 43:I[J[c>>2]>>1]=L[a+148>>1];I[J[c+4>>2]>>1]=L[a+150>>1];d=1;break a;case 67:I[J[c>>2]>>1]=L[a+164>>1];I[J[c+4>>2]>>1]=L[a+166>>1];d=1;break a;case 66:J[J[c>> -2]>>2]=J[a+152>>2];J[J[c+4>>2]>>2]=J[a+156>>2];J[J[c+8>>2]>>2]=J[a+160>>2];d=1;break a;case 19:case 70:J[J[c>>2]>>2]=J[a+184>>2];d=1;break a;case 85:break j;case 69:break m;case 68:break n;case 84:break o;case 25:case 71:break q;case 1:case 6:case 7:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 21:case 22:case 31:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 72:case 73:case 74:case 75:case 77:case 78:case 80:case 81:case 82:case 83:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 217:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 240:case 241:case 242:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:case 275:break b; +16>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}Pv(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F;a=J[h>>2];d=J[e>>2];if(!(O[a+16>>3]>3]))break F;J[e>>2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=gt(f,e);a=e+8|0;if(gt(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){hH(f,e,c);a=e+8|0;continue b}hH(e+8|0,b,c);a= +f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+16>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>>2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function UG(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g= +b-f>>3;switch(g|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+32>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a;return}a=b-8|0;e=J[a>>2];k=O[e+32>>3];d=J[f+8>>2];m=O[d+32>>3];c=J[f>>2];n=O[c+32>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+32>>3]>3]))break d; +J[f+8>>2]=c;J[f>>2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+32>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=b;return}Qv(f,f+8|0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+32>>3];a=J[f+8>>2];m=O[a+32>>3];e=J[f>>2];n=O[e+32>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2]; +J[f+20>>2]=d;if(!(k>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20|0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+32>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+ +4>>2];J[d+4>>2]=j;p:{if(!e)break p;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;kc[J[J[e>>2]+8>>2]](e);Gc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+32>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break o;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g| +0)<=(e|0)){e=c;break s}if(!(O[J[a>>2]+32>>3]>2]+32>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+32>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2];J[d+4>>2]=p;t:{if(!a)break t;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+32>>3]>2]+32>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>> +2];if(!(O[h+32>>3]>3]))continue}break}J[c>>2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0;e=g;o=e-2>>>1|0;a=f;d=0;while(1){g=d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+32>>3]>2]+32>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>> +2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d=i-4|0;i=J[d>>2];c=J[b>>2];J[b>>2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;kc[J[J[c>>2]+8>>2]](c);Gc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A; +kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x;g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+32>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=h;B:{if(!d)break B;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+32>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>> +2]=c-1;if(c)break x}kc[J[J[a>>2]+8>>2]](a);Gc(a)}g=e-1|0;if((e|0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=Qv(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+32>>3];a=J[h>>2];m=O[a+32>>3];e=J[f>>2];n=O[e+32>>3];D:{if(!(m>2]=d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+32>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]= +a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>>2]=d;g=1;d=J[i>>2];if(!(n>O[d+32>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+32>>3];m=O[J[h>>2]+32>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j= +J[a>>2];if(!(m>O[j+32>>3]))continue;break}J[f>>2]=j;J[a>>2]=d;d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+32>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+32>>3])continue;break}while(1){j=a;a=a-8|0;p=J[a>>2];if(!(k>O[p+32>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}$z(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F; +a=J[h>>2];d=J[e>>2];if(!(O[a+32>>3]>3]))break F;J[e>>2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=_z(f,e);a=e+8|0;if(_z(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){UG(f,e,c);a=e+8|0;continue b}UG(e+8|0,b,c);a=f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+32>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>> +2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function iH(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g=b-f>>3;switch(g|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+16>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a; +return}a=b-8|0;e=J[a>>2];k=O[e+16>>3];d=J[f+8>>2];m=O[d+16>>3];c=J[f>>2];n=O[c+16>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+16>>3]>3]))break d;J[f+8>>2]=c;J[f>>2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+16>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]= +J[a>>2];J[a>>2]=b;return}rr(f,f+8|0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+16>>3];a=J[f+8>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2];J[f+20>>2]=d;if(!(k>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20| +0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+16>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+4>>2];J[d+4>>2]=j;p:{if(!e)break p;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;kc[J[J[e>>2]+8>>2]](e);Gc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+16>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+ +4>>2];J[e+4>>2]=a-1;if(a)break o;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g|0)<=(e|0)){e=c;break s}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+16>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2]; +J[d+4>>2]=p;t:{if(!a)break t;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>>2];if(!(O[h+16>>3]>3]))continue}break}J[c>>2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0; +e=g;o=e-2>>>1|0;a=f;d=0;while(1){g=d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+16>>3]>2]+16>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>>2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d= +i-4|0;i=J[d>>2];c=J[b>>2];J[b>>2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;kc[J[J[c>>2]+8>>2]](c);Gc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x;g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+16>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>> +2];J[a+4>>2]=h;B:{if(!d)break B;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+16>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break x}kc[J[J[a>>2]+8>>2]](a);Gc(a)}g=e-1|0;if((e|0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=rr(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+16>>3];a=J[h>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];D:{if(!(m< +n)){g=0;if(!(k>2]=d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+16>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]=a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>>2]=d;g=1;d=J[i>>2];if(!(n>O[d+16>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+16>>3];m=O[J[h>>2]+16>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j=J[a>>2];if(!(m>O[j+16>>3]))continue;break}J[f>>2]=j;J[a>>2]=d;d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+16>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+16>>3])continue;break}while(1){j= +a;a=a-8|0;p=J[a>>2];if(!(k>O[p+16>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}Pv(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F;a=J[h>>2];d=J[e>>2];if(!(O[a+16>>3]>3]))break F;J[e>>2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=gt(f,e);a=e+8|0;if(gt(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){iH(f,e,c);a=e+ +8|0;continue b}iH(e+8|0,b,c);a=f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+16>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>>2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function fH(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g= +b-f>>3;switch(g|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+32>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a;return}a=b-8|0;e=J[a>>2];k=O[e+32>>3];d=J[f+8>>2];m=O[d+32>>3];c=J[f>>2];n=O[c+32>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+32>>3]>3]))break d; +J[f+8>>2]=c;J[f>>2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+32>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=b;return}Qv(f,f+8|0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+32>>3];a=J[f+8>>2];m=O[a+32>>3];e=J[f>>2];n=O[e+32>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2]; +J[f+20>>2]=d;if(!(k>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20|0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+32>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+ +4>>2];J[d+4>>2]=j;p:{if(!e)break p;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;kc[J[J[e>>2]+8>>2]](e);Gc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+32>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break o;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g| +0)<=(e|0)){e=c;break s}if(!(O[J[a>>2]+32>>3]>2]+32>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+32>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2];J[d+4>>2]=p;t:{if(!a)break t;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+32>>3]>2]+32>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>> +2];if(!(O[h+32>>3]>3]))continue}break}J[c>>2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0;e=g;o=e-2>>>1|0;a=f;d=0;while(1){g=d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+32>>3]>2]+32>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>> +2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d=i-4|0;i=J[d>>2];c=J[b>>2];J[b>>2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;kc[J[J[c>>2]+8>>2]](c);Gc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A; +kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x;g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+32>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>>2];J[a+4>>2]=h;B:{if(!d)break B;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+32>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>> +2]=c-1;if(c)break x}kc[J[J[a>>2]+8>>2]](a);Gc(a)}g=e-1|0;if((e|0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=Qv(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+32>>3];a=J[h>>2];m=O[a+32>>3];e=J[f>>2];n=O[e+32>>3];D:{if(!(m>2]=d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+32>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]= +a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>>2]=d;g=1;d=J[i>>2];if(!(n>O[d+32>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+32>>3];m=O[J[h>>2]+32>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j= +J[a>>2];if(!(m>O[j+32>>3]))continue;break}J[f>>2]=j;J[a>>2]=d;d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+32>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+32>>3])continue;break}while(1){j=a;a=a-8|0;p=J[a>>2];if(!(k>O[p+32>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}$z(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F; +a=J[h>>2];d=J[e>>2];if(!(O[a+32>>3]>3]))break F;J[e>>2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=_z(f,e);a=e+8|0;if(_z(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){fH(f,e,c);a=e+8|0;continue b}fH(e+8|0,b,c);a=f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+32>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>> +2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function eH(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;a:while(1){l=b-4|0;i=b-8|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{g=b-f>>3;switch(g|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}a=b-8|0;c=J[a>>2];e=J[f>>2];if(!(O[c+16>>3]>3]))break d;J[f>>2]=c;J[a>>2]=e;a=J[f+4>>2];b=b-4|0;J[f+4>>2]=J[b>>2];J[b>>2]=a; +return}a=b-8|0;e=J[a>>2];k=O[e+16>>3];d=J[f+8>>2];m=O[d+16>>3];c=J[f>>2];n=O[c+16>>3];l:{if(!(m>2]=e;J[a>>2]=d;a=f+12|0;c=J[a>>2];b=b-4|0;J[f+12>>2]=J[b>>2];J[b>>2]=c;b=J[f+8>>2];c=J[f>>2];if(!(O[b+16>>3]>3]))break d;J[f+8>>2]=c;J[f>>2]=b;d=f+4|0;break l}if(k>2]=e;J[a>>2]=c;a=b-4|0;break l}J[f+8>>2]=c;J[f>>2]=d;e=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=e;e=J[a>>2];if(!(n>O[e+16>>3]))break d;J[f+8>>2]=e;J[a>>2]=c;a=b-4|0}b=J[d>>2];J[d>>2]= +J[a>>2];J[a>>2]=b;return}rr(f,f+8|0,f+16|0,f+24|0,b-8|0);return}if((g|0)<=6){c=J[f+16>>2];k=O[c+16>>3];a=J[f+8>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];m:{n:{if(!(m>2]=a;J[f+8>>2]=c;a=f+12|0;d=J[a>>2];J[f+12>>2]=J[f+20>>2];J[f+20>>2]=d;if(!(k>2]=e;J[f>>2]=c;d=f+4|0;break n}if(k>2]=e;J[f>>2]=c;a=f+20|0;break n}J[f+8>>2]=e;J[f>>2]=a;a=J[f+4>>2];d=f+12|0;J[f+4>>2]=J[d>>2];J[f+12>>2]=a;if(!(k>2]=e;J[f+8>>2]=c;a=f+20| +0}c=J[d>>2];J[d>>2]=J[a>>2];J[a>>2]=c}a=f+24|0;if((b|0)==(a|0))break d;e=f+16|0;while(1){c=a;i=J[a>>2];g=J[e>>2];o:{if(!(O[i+16>>3]>3]))break o;l=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;d=a;while(1){a=e;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=g;e=J[d+4>>2];J[d+4>>2]=j;p:{if(!e)break p;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break p;kc[J[J[e>>2]+8>>2]](e);Gc(e)}q:{if((a|0)==(f|0)){a=f;break q}d=a;e=a-8|0;g=J[e>>2];if(O[i+16>>3]>3])continue}break}J[a>>2]=i;e=J[a+4>>2];J[a+4>>2]=l;if(!e)break o;a=J[e+ +4>>2];J[e+4>>2]=a-1;if(a)break o;kc[J[J[e>>2]+8>>2]](e);Gc(e)}e=c;a=e+8|0;if((b|0)!=(a|0))continue;break}break d}if(!c){if((b|0)==(f|0))break d;l=g-2>>>1|0;a=l;while(1){i=a;r:{if((a|0)>(l|0))break r;d=(a<<3)+f|0;e=a<<1;c=e|1;a=(c<<3)+f|0;e=e+2|0;s:{if((g|0)<=(e|0)){e=c;break s}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=c;break s}a=a+8|0}j=J[d>>2];if(O[J[a>>2]+16>>3]>3])break r;o=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;h=J[a>>2];while(1){c=a;p=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;J[d>>2]=h;a=J[d+4>>2]; +J[d+4>>2]=p;t:{if(!a)break t;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break t;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((e|0)<=(l|0)){e=e<<1;d=e|1;a=(d<<3)+f|0;e=e+2|0;u:{if((g|0)<=(e|0)){e=d;break u}if(!(O[J[a>>2]+16>>3]>2]+16>>3])){e=d;break u}a=a+8|0}d=c;h=J[a>>2];if(!(O[h+16>>3]>3]))continue}break}J[c>>2]=j;a=J[c+4>>2];J[c+4>>2]=o;if(!a)break r;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break r;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=i-1|0;if(i)continue;break}while(1){i=b;l=J[f+4>>2];j=J[f>>2];J[f>>2]=0;J[f+4>>2]=0; +e=g;o=e-2>>>1|0;a=f;d=0;while(1){g=d<<1;b=g|1;c=a;h=(d<<3)+a|0;a=h+8|0;g=g+2|0;v:{if((g|0)>=(e|0)){d=b;break v}d=b;b=h+16|0;if(!(O[J[h+8>>2]+16>>3]>2]+16>>3]))break v;a=b;d=g}g=J[a>>2];h=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];J[c>>2]=g;J[c+4>>2]=h;w:{if(!b)break w;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break w;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)<=(o|0))continue;break}b=i-8|0;x:{y:{if((b|0)==(a|0)){J[a>>2]=j;c=a;a=J[a+4>>2];J[c+4>>2]=l;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(!c)break y;break x}d= +i-4|0;i=J[d>>2];c=J[b>>2];J[b>>2]=0;J[d>>2]=0;J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=i;z:{if(!c)break z;i=J[c+4>>2];J[c+4>>2]=i-1;if(i)break z;kc[J[J[c>>2]+8>>2]](c);Gc(c)}J[b>>2]=j;c=J[d>>2];J[d>>2]=l;A:{if(!c)break A;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break A;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=(a+8|0)-f>>3;if((c|0)<2)break x;g=c-2>>>1|0;d=(g<<3)+f|0;i=J[a>>2];if(!(O[J[d>>2]+16>>3]>3]))break x;j=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;l=J[d>>2];while(1){c=d;h=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[a>>2]=l;d=J[a+4>> +2];J[a+4>>2]=h;B:{if(!d)break B;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break B;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if(g){a=c;g=g-1>>>1|0;d=(g<<3)+f|0;l=J[d>>2];if(O[l+16>>3]>3])continue}break}J[c>>2]=i;a=J[c+4>>2];J[c+4>>2]=j;if(!a)break x;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break x}kc[J[J[a>>2]+8>>2]](a);Gc(a)}g=e-1|0;if((e|0)>2)continue;break}break d}j=g>>>1<<3;h=j+f|0;C:{if(g>>>0>=1E3){a=g<<1&-8;g=rr(f,a+f|0,h,a+h|0,i);break C}d=J[i>>2];k=O[d+16>>3];a=J[h>>2];m=O[a+16>>3];e=J[f>>2];n=O[e+16>>3];D:{if(!(m< +n)){g=0;if(!(k>2]=d;J[i>>2]=a;a=J[h+4>>2];J[h+4>>2]=J[l>>2];J[l>>2]=a;g=1;a=J[h>>2];e=J[f>>2];if(!(O[a+16>>3]>3]))break C;J[f>>2]=a;J[h>>2]=e;a=f+4|0;g=2;e=h+4|0;break D}E:{if(k>2]=d;J[i>>2]=e;g=1;break E}J[f>>2]=a;J[h>>2]=e;a=f+4|0;d=J[a>>2];g=a;a=a+j|0;J[g>>2]=J[a>>2];J[a>>2]=d;g=1;d=J[i>>2];if(!(n>O[d+16>>3]))break C;J[h>>2]=d;J[i>>2]=e;g=2}e=l}d=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=d}c=c-1|0;a=i;d=J[f>>2];k=O[d+16>>3];m=O[J[h>>2]+16>>3];if(!(k>2];if(k>3])break e;if((e|0)==(i|0))break d;while(1){d=J[e>>2];if(k>3]){J[e>>2]=a;J[i>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[l>>2];J[l>>2]=a;e=e+8|0;break e}e=e+8|0;if((i|0)!=(e|0))continue;break}break d}j=J[a>>2];if(!(m>O[j+16>>3]))continue;break}J[f>>2]=j;J[a>>2]=d;d=J[f+4>>2];e=e-4|0;J[f+4>>2]=J[e>>2];J[e>>2]=d;g=g+1|0}e=f+8|0;if(e>>>0>=a>>>0)break f;while(1){k=O[J[h>>2]+16>>3];while(1){d=e;e=d+8|0;o=J[d>>2];if(k>O[o+16>>3])continue;break}while(1){j= +a;a=a-8|0;p=J[a>>2];if(!(k>O[p+16>>3]))continue;break}if(a>>>0>>0){e=d;break f}else{J[d>>2]=p;J[a>>2]=o;o=J[d+4>>2];j=j-4|0;J[d+4>>2]=J[j>>2];J[j>>2]=o;h=(d|0)==(h|0)?a:h;g=g+1|0;continue}}}Pv(f,f+8|0,f+16|0,b-8|0);break d}F:{if((e|0)==(h|0))break F;a=J[h>>2];d=J[e>>2];if(!(O[a+16>>3]>3]))break F;J[e>>2]=a;J[h>>2]=d;a=J[e+4>>2];J[e+4>>2]=J[h+4>>2];J[h+4>>2]=a;g=g+1|0}if(!g){d=gt(f,e);a=e+8|0;if(gt(a,b)){a=f;b=e;if(!d)continue a;break d}if(d)continue b}if((e-f|0)<(b-e|0)){eH(f,e,c);a=e+ +8|0;continue b}eH(e+8|0,b,c);a=f;b=e;continue a}d=i;if((e|0)==(d|0))break d;while(1){k=O[J[f>>2]+16>>3];while(1){a=e;e=a+8|0;j=J[a>>2];if(!(k>3]))continue;break}while(1){g=d;d=d-8|0;h=J[d>>2];if(k>3])continue;break}if(a>>>0>=d>>>0){f=a;continue c}else{J[a>>2]=h;J[d>>2]=j;j=J[a+4>>2];h=a;a=g-4|0;J[h+4>>2]=J[a>>2];J[a>>2]=j;continue}}}break}break}break}}function hdb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;i=fc-272|0;fc=i;b=J[b>>2];l=J[b+ +44>>2];J[i+216>>2]=J[b+40>>2];J[i+220>>2]=l;l=J[b+36>>2];J[i+208>>2]=J[b+32>>2];J[i+212>>2]=l;l=J[b+28>>2];J[i+200>>2]=J[b+24>>2];J[i+204>>2]=l;l=J[b+20>>2];J[i+192>>2]=J[b+16>>2];J[i+196>>2]=l;l=J[b+12>>2];J[i+184>>2]=J[b+8>>2];J[i+188>>2]=l;l=J[b+4>>2];J[i+176>>2]=J[b>>2];J[i+180>>2]=l;b=J[a+44>>2];l=J[b+44>>2];J[i+168>>2]=J[b+40>>2];J[i+172>>2]=l;l=J[b+36>>2];J[i+160>>2]=J[b+32>>2];J[i+164>>2]=l;l=J[b+28>>2];J[i+152>>2]=J[b+24>>2];J[i+156>>2]=l;l=J[b+20>>2];J[i+144>>2]=J[b+16>>2];J[i+148>>2]=l; +l=J[b+12>>2];J[i+136>>2]=J[b+8>>2];J[i+140>>2]=l;l=J[b+4>>2];J[i+128>>2]=J[b>>2];J[i+132>>2]=l;xq(i+128|0);b=J[i+172>>2];J[i+264>>2]=J[i+168>>2];J[i+268>>2]=b;b=J[i+164>>2];J[i+256>>2]=J[i+160>>2];J[i+260>>2]=b;b=J[i+156>>2];J[i+248>>2]=J[i+152>>2];J[i+252>>2]=b;b=J[i+148>>2];J[i+240>>2]=J[i+144>>2];J[i+244>>2]=b;b=J[i+140>>2];J[i+232>>2]=J[i+136>>2];J[i+236>>2]=b;b=J[i+132>>2];J[i+224>>2]=J[i+128>>2];J[i+228>>2]=b;l=i+176|0;b=Bj(i+224|0,l);m=J[b+44>>2];J[i+216>>2]=J[b+40>>2];J[i+220>>2]=m;m=J[b+ +36>>2];J[i+208>>2]=J[b+32>>2];J[i+212>>2]=m;m=J[b+28>>2];J[i+200>>2]=J[b+24>>2];J[i+204>>2]=m;m=J[b+20>>2];J[i+192>>2]=J[b+16>>2];J[i+196>>2]=m;m=J[b+12>>2];J[i+184>>2]=J[b+8>>2];J[i+188>>2]=m;m=J[b+4>>2];J[i+176>>2]=J[b>>2];J[i+180>>2]=m;xq(l);J[i+120>>2]=0;J[i+124>>2]=0;J[i+224>>2]=l;J[i+116>>2]=f;J[i+112>>2]=e;J[i+108>>2]=d;J[i+100>>2]=c;J[i+104>>2]=c;if((f|0)<0)J[i+104>>2]=P(1-e|0,f)+c;a:{b:{c:{d:{e:{f:switch(g-1|0){case 0:J[i+96>>2]=i+100;b=0;J[i+36>>2]=0;J[i+24>>2]=0;J[i+12>>2]=d;c=d<<1;J[i+ +16>>2]=c;J[i+28>>2]=e;J[i+32>>2]=1073741823%(e>>>0)^1073741823;J[i+20>>2]=1073741823%(c>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1640;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2904>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break c;c=a+1836|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;g:{if(j<4294967296&j>=0){d=~~j>>>0;break g}d=0}J[e>> +2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;h:{if(j<4294967296&j>=0){d=~~j>>>0;break h}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2307,a|0,a+1704|0,i+44|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;a=a+1836|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;i:{if(k<4294967296&k>=0){c=~~k>>>0;break i}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;j:{if(k<4294967296&k>=0){c=~~k>>>0;break j}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;case 1:J[i+ +96>>2]=i+100;b=0;J[i+36>>2]=0;J[i+20>>2]=0;J[i+24>>2]=e;c=e<<1;J[i+28>>2]=c;J[i+12>>2]=d;J[i+16>>2]=1073741823%(d>>>0)^1073741823;J[i+32>>2]=1073741823%(c>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1640;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2904>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break d;c=a+1836|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j> +1?1:j)*255+.5;k:{if(j<4294967296&j>=0){d=~~j>>>0;break k}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;l:{if(j<4294967296&j>=0){d=~~j>>>0;break l}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2308,a|0,a+1704|0,i+44|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;a=a+1836|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;m:{if(k<4294967296&k>=0){c=~~k>>>0;break m}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;n:{if(k<4294967296&k>=0){c=~~k>>>0;break n}c= +0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;case 2:J[i+96>>2]=i+100;b=0;J[i+40>>2]=0;J[i+24>>2]=0;J[i+28>>2]=e;c=e<<1;J[i+32>>2]=c;J[i+12>>2]=d;d=d<<1;J[i+16>>2]=d;J[i+36>>2]=1073741823%(c>>>0)^1073741823;J[i+20>>2]=1073741823%(d>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1640;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2904>>3]*+(h>>>0)/255;if(R(k+ +-1)<1.1920928955078125E-7)break e;c=a+1836|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;o:{if(j<4294967296&j>=0){d=~~j>>>0;break o}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;p:{if(j<4294967296&j>=0){d=~~j>>>0;break p}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2309,a|0,a+1704|0,i+44|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;a=a+1836|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;q:{if(k<4294967296&k>=0){c=~~k>>>0;break q}c=0}J[d>> +2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;r:{if(k<4294967296&k>=0){c=~~k>>>0;break r}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;default:break f}J[i+96>>2]=i+100;b=0;J[i+88>>2]=0;J[i+76>>2]=0;J[i+80>>2]=e;J[i+84>>2]=1073741823%(e>>>0)^1073741823;J[i+68>>2]=d;J[i+72>>2]=1073741823%(d>>>0)^1073741823;J[i+56>>2]=i+96;J[i+32>>2]=128;J[i+36>>2]=128;J[i+24>>2]=0;J[i+28>>2]=1071644672;J[i+16>>2]=0;J[i+20>>2]=1071644672;J[i+8>>2]=0;J[i+4>>2]=i+224;J[i>>2]=i+56;J[i+44>>2]=a+1640;J[i+52>>2]= +i;J[i+48>>2]=i+120;k=O[a+2904>>3]*+(h>>>0)/255;s:{if(!(R(k+-1)<1.1920928955078125E-7)){c=a+1836|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;t:{if(j<4294967296&j>=0){d=~~j>>>0;break t}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;u:{if(j<4294967296&j>=0){d=~~j>>>0;break u}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2303,a|0,a+1704|0,i+44|0);c=J[699344];J[699344]=0;if((c|0)==1)break s;a=a+1836|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+ +.5;v:{if(k<4294967296&k>=0){c=~~k>>>0;break v}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;w:{if(k<4294967296&k>=0){c=~~k>>>0;break w}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a}J[699344]=0;ca(2303,a|0,a+1704|0,i+44|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}break b}J[699344]=0;ca(2309,a|0,a+1704|0,i+44|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}J[699344]=0;ca(2308,a|0,a+1704|0,i+44|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}J[699344]=0;ca(2307,a| +0,a+1704|0,i+44|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}a=Z()|0;b=J[i+120>>2];if(b)uc(b);ba(a|0);B()}a=J[i+120>>2];if(a)uc(a);fc=i+272|0}function gdb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;i=fc-272|0;fc=i;b=J[b>>2];l=J[b+44>>2];J[i+216>>2]=J[b+40>>2];J[i+220>>2]=l;l=J[b+36>>2];J[i+208>>2]=J[b+32>>2];J[i+212>>2]=l;l=J[b+28>>2];J[i+200>>2]=J[b+24>>2];J[i+204>>2]=l;l=J[b+20>>2];J[i+192>>2]=J[b+16>>2];J[i+196>>2]=l;l=J[b+12>>2];J[i+184>>2]=J[b+ +8>>2];J[i+188>>2]=l;l=J[b+4>>2];J[i+176>>2]=J[b>>2];J[i+180>>2]=l;b=J[a+44>>2];l=J[b+44>>2];J[i+168>>2]=J[b+40>>2];J[i+172>>2]=l;l=J[b+36>>2];J[i+160>>2]=J[b+32>>2];J[i+164>>2]=l;l=J[b+28>>2];J[i+152>>2]=J[b+24>>2];J[i+156>>2]=l;l=J[b+20>>2];J[i+144>>2]=J[b+16>>2];J[i+148>>2]=l;l=J[b+12>>2];J[i+136>>2]=J[b+8>>2];J[i+140>>2]=l;l=J[b+4>>2];J[i+128>>2]=J[b>>2];J[i+132>>2]=l;xq(i+128|0);b=J[i+172>>2];J[i+264>>2]=J[i+168>>2];J[i+268>>2]=b;b=J[i+164>>2];J[i+256>>2]=J[i+160>>2];J[i+260>>2]=b;b=J[i+156>> +2];J[i+248>>2]=J[i+152>>2];J[i+252>>2]=b;b=J[i+148>>2];J[i+240>>2]=J[i+144>>2];J[i+244>>2]=b;b=J[i+140>>2];J[i+232>>2]=J[i+136>>2];J[i+236>>2]=b;b=J[i+132>>2];J[i+224>>2]=J[i+128>>2];J[i+228>>2]=b;l=i+176|0;b=Bj(i+224|0,l);m=J[b+44>>2];J[i+216>>2]=J[b+40>>2];J[i+220>>2]=m;m=J[b+36>>2];J[i+208>>2]=J[b+32>>2];J[i+212>>2]=m;m=J[b+28>>2];J[i+200>>2]=J[b+24>>2];J[i+204>>2]=m;m=J[b+20>>2];J[i+192>>2]=J[b+16>>2];J[i+196>>2]=m;m=J[b+12>>2];J[i+184>>2]=J[b+8>>2];J[i+188>>2]=m;m=J[b+4>>2];J[i+176>>2]=J[b>> +2];J[i+180>>2]=m;xq(l);J[i+120>>2]=0;J[i+124>>2]=0;J[i+224>>2]=l;J[i+116>>2]=f;J[i+112>>2]=e;J[i+108>>2]=d;J[i+100>>2]=c;J[i+104>>2]=c;if((f|0)<0)J[i+104>>2]=P(1-e|0,f)+c;a:{b:{c:{d:{e:{f:switch(g-1|0){case 0:J[i+96>>2]=i+100;b=0;J[i+36>>2]=0;J[i+24>>2]=0;J[i+12>>2]=d;c=d<<1;J[i+16>>2]=c;J[i+28>>2]=e;J[i+32>>2]=1073741823%(e>>>0)^1073741823;J[i+20>>2]=1073741823%(c>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+ +64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1640;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2904>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break c;c=a+1836|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;g:{if(j<4294967296&j>=0){d=~~j>>>0;break g}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;h:{if(j<4294967296&j>=0){d=~~j>>>0;break h}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2310,a|0,a+1704|0,i+44|0);c=J[699344];J[699344]= +0;if((c|0)==1)break b;a=a+1836|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;i:{if(k<4294967296&k>=0){c=~~k>>>0;break i}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;j:{if(k<4294967296&k>=0){c=~~k>>>0;break j}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;case 1:J[i+96>>2]=i+100;b=0;J[i+36>>2]=0;J[i+20>>2]=0;J[i+24>>2]=e;c=e<<1;J[i+28>>2]=c;J[i+12>>2]=d;J[i+16>>2]=1073741823%(d>>>0)^1073741823;J[i+32>>2]=1073741823%(c>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+ +80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1640;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2904>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break d;c=a+1836|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;k:{if(j<4294967296&j>=0){d=~~j>>>0;break k}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;l:{if(j<4294967296&j>=0){d=~~j>>>0;break l}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b= +0;J[699344]=0;ca(2311,a|0,a+1704|0,i+44|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;a=a+1836|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;m:{if(k<4294967296&k>=0){c=~~k>>>0;break m}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;n:{if(k<4294967296&k>=0){c=~~k>>>0;break n}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;case 2:J[i+96>>2]=i+100;b=0;J[i+40>>2]=0;J[i+24>>2]=0;J[i+28>>2]=e;c=e<<1;J[i+32>>2]=c;J[i+12>>2]=d;d=d<<1;J[i+16>>2]=d;J[i+36>>2]=1073741823%(c>>>0)^1073741823;J[i+ +20>>2]=1073741823%(d>>>0)^1073741823;J[i>>2]=i+96;J[i+88>>2]=128;J[i+92>>2]=128;J[i+80>>2]=0;J[i+84>>2]=1071644672;J[i+72>>2]=0;J[i+76>>2]=1071644672;J[i+64>>2]=0;J[i+60>>2]=i+224;J[i+56>>2]=i;J[i+44>>2]=a+1640;J[i+52>>2]=i+56;J[i+48>>2]=i+120;k=O[a+2904>>3]*+(h>>>0)/255;if(R(k+-1)<1.1920928955078125E-7)break e;c=a+1836|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;o:{if(j<4294967296&j>=0){d=~~j>>>0;break o}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;p:{if(j< +4294967296&j>=0){d=~~j>>>0;break p}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2312,a|0,a+1704|0,i+44|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;a=a+1836|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;q:{if(k<4294967296&k>=0){c=~~k>>>0;break q}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;r:{if(k<4294967296&k>=0){c=~~k>>>0;break r}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a;default:break f}J[i+96>>2]=i+100;b=0;J[i+88>>2]=0;J[i+76>>2]=0;J[i+80>>2]=e; +J[i+84>>2]=1073741823%(e>>>0)^1073741823;J[i+68>>2]=d;J[i+72>>2]=1073741823%(d>>>0)^1073741823;J[i+56>>2]=i+96;J[i+32>>2]=128;J[i+36>>2]=128;J[i+24>>2]=0;J[i+28>>2]=1071644672;J[i+16>>2]=0;J[i+20>>2]=1071644672;J[i+8>>2]=0;J[i+4>>2]=i+224;J[i>>2]=i+56;J[i+44>>2]=a+1640;J[i+52>>2]=i;J[i+48>>2]=i+120;k=O[a+2904>>3]*+(h>>>0)/255;s:{if(!(R(k+-1)<1.1920928955078125E-7)){c=a+1836|0;while(1){e=c+(b<<2)|0;j=k*(+(b|0)/255);j=(j>1?1:j)*255+.5;t:{if(j<4294967296&j>=0){d=~~j>>>0;break t}d=0}J[e>>2]=d;d=b|1;e= +c+(d<<2)|0;j=k*(+(d|0)/255);j=(j>1?1:j)*255+.5;u:{if(j<4294967296&j>=0){d=~~j>>>0;break u}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2313,a|0,a+1704|0,i+44|0);c=J[699344];J[699344]=0;if((c|0)==1)break s;a=a+1836|0;while(1){d=a+(b<<2)|0;k=+(b|0)/255*255+.5;v:{if(k<4294967296&k>=0){c=~~k>>>0;break v}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;k=+(c|0)/255*255+.5;w:{if(k<4294967296&k>=0){c=~~k>>>0;break w}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break a}J[699344]=0;ca(2313, +a|0,a+1704|0,i+44|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}break b}J[699344]=0;ca(2312,a|0,a+1704|0,i+44|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}J[699344]=0;ca(2311,a|0,a+1704|0,i+44|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}J[699344]=0;ca(2310,a|0,a+1704|0,i+44|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}a=Z()|0;b=J[i+120>>2];if(b)uc(b);ba(a|0);B()}a=J[i+120>>2];if(a)uc(a);fc=i+272|0}function lXa(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;c=fc-48|0;fc=c;k=J[a+420>>2];d=J[a+24>>2];h=J[d>>2];J[c+12>>2]=h;f=J[d+4>>2];J[c+16>>2]=f;d=J[k+24>>2];J[c+28>>2]=J[k+20>>2];J[c+32>>2]=d;d=J[k+32>>2];J[c+36>>2]=J[k+28>>2];J[c+40>>2]=d;d=J[k+16>>2];J[c+20>>2]=J[k+12>>2];J[c+24>>2]=d;J[c+44>>2]=a;a:{b:{if(J[k+36>>2]|!J[a+236>>2])break b;e=J[k+40>>2];g=J[c+24>>2];if((g|0)>0){d=g+7|0;f=J[c+20>>2]|127<<17-g;while(1){g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=f>>>16;g=J[c+16>>2]-1|0;J[c+16>>2]=g;if(!g){i=J[c+44>>2];g=J[i+ +24>>2];if(!(kc[J[g+12>>2]](i)|0))break a;J[c+12>>2]=J[g>>2];J[c+16>>2]=J[g+4>>2]}g=d;c:{if((f&16711680)!=16711680)break c;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;d=J[c+16>>2]-1|0;J[c+16>>2]=d;if(d)break c;i=J[c+44>>2];d=J[i+24>>2];if(!(kc[J[d+12>>2]](i)|0))break a;J[c+12>>2]=J[d>>2];J[c+16>>2]=J[d+4>>2]}d=g-8|0;f=f<<8;if((g|0)>15)continue;break}h=J[c+12>>2]}J[c+20>>2]=0;J[c+24>>2]=0;J[c+12>>2]=h+1;H[h|0]=255;d=J[c+16>>2]-1|0;J[c+16>>2]=d;d:{if(d){f=J[c+12>>2];break d}g=J[c+44>>2];d=J[g+24>>2];if(!(kc[J[d+ +12>>2]](g)|0))break a;f=J[d>>2];J[c+16>>2]=J[d+4>>2]}J[c+12>>2]=f+1;H[f|0]=e-48;f=J[c+16>>2]-1|0;J[c+16>>2]=f;d=J[c+44>>2];if(!f){g=J[d+24>>2];if(!(kc[J[g+12>>2]](d)|0))break a;J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}if(J[d+288>>2]<=0)break b;h=0;while(1){J[((h<<2)+c|0)+28>>2]=0;h=h+1|0;if((h|0)>2])continue;break}}n=1;if(J[a+316>>2]>0)while(1){d=q<<2;s=d+b|0;t=J[s>>2];h=I[t>>1];d=J[(a+d|0)+320>>2]<<2;u=d+c|0;m=J[u+28>>2];j=h-m|0;i=j>>31;d=J[(a+d|0)+292>>2];p=J[((J[d+24>>2]<<2)+k|0)+60>> +2];l=J[((J[d+20>>2]<<2)+k|0)+44>>2];e=J[c+44>>2];v=J[e+380>>2];r=J[e+384>>2];g=0;e:{if((h|0)==(m|0))break e;h=(i^j)-i|0;while(1){d=g;g=d+1|0;m=h>>>0>1;h=h>>>1|0;if(m)continue;break}if(d>>>0<11)break e;d=J[e>>2];J[d+20>>2]=6;kc[J[d>>2]](e)}h=J[l+(g<<2)>>2];m=J[c+24>>2];d=H[(g+l|0)+1024|0];if(!d){l=J[e>>2];J[l+20>>2]=41;kc[J[l>>2]](e)}e=h&(-1<>2]|e<<24-d;if((d|0)>=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){f=J[c+44>>2];e=J[f+24>> +2];if(!(kc[J[e+12>>2]](f)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d;f:{if((h&16711680)!=16711680)break f;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break f;f=J[c+44>>2];d=J[f+24>>2];if(!(kc[J[d+12>>2]](f)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8;if((e|0)>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h;if(g){d=d+g|0;h=(i+j&(-1<=8)while(1){g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=h>>>16;f=J[c+16>>2]- +1|0;J[c+16>>2]=f;if(!f){e=J[c+44>>2];g=J[e+24>>2];if(!(kc[J[g+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}g=d;g:{if((h&16711680)!=16711680)break g;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break g;e=J[c+44>>2];d=J[e+24>>2];if(!(kc[J[d+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=g-8|0;h=h<<8;if((g|0)>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h}h:{if((r|0)<=0)break h;e=1;i:while(1){l=0;g=e;while(1){j=L[(J[(g<<2)+v>> +2]<<1)+t>>1];if(j){if(l>>>0>=16)while(1){i=J[p+960>>2];e=H[p+1264|0];if(!e){m=J[c+44>>2];o=J[m>>2];J[o+20>>2]=41;kc[J[o>>2]](m)}d=d+e|0;h=(i&(-1<=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){i=J[c+44>>2];e=J[i+24>>2];if(!(kc[J[e+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d;j:{if((h&16711680)!=16711680)break j;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break j;i=J[c+44>> +2];d=J[i+24>>2];if(!(kc[J[d+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8;if(e>>>0>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h;e=(l|0)>31;l=l-16|0;if(e)continue;break}i=1;m=j<<16>>16;e=m>>31;e=(e^m)-e|0;k:{if(e>>>0<2)break k;while(1){j=i;i=i+1|0;o=e>>>0>3;e=e>>>1|0;if(o)continue;break}if(j>>>0<10)break k;e=J[c+44>>2];j=J[e>>2];J[j+20>>2]=6;kc[J[j>>2]](e)}e=(l<<4)+i|0;j=J[(e<<2)+p>>2];e=H[(e+p|0)+1024|0];if(!e){l=J[c+44>>2];o=J[l>>2];J[o+20>>2]=41;kc[J[o>>2]](l)}j= +j&(-1<=8)while(1){d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){j=J[c+44>>2];d=J[j+24>>2];if(!(kc[J[d+12>>2]](j)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e;l:{if((h&16711680)!=16711680)break l;e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break l;j=J[c+44>>2];e=J[j+24>>2];if(!(kc[J[e+12>>2]](j)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d-8|0;h=h<<8;if((d|0)>15)continue; +break}d=e+i|0;h=(m+(m>>15)&(-1<=8)while(1){e=J[c+12>>2];J[c+12>>2]=e+1;H[e|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){i=J[c+44>>2];e=J[i+24>>2];if(!(kc[J[e+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[e>>2];f=J[e+4>>2];J[c+16>>2]=f}e=d;m:{if((h&16711680)!=16711680)break m;d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break m;i=J[c+44>>2];d=J[i+24>>2];if(!(kc[J[d+12>>2]](i)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=e-8|0;h=h<<8; +if((e|0)>15)continue;break}J[c+24>>2]=d;J[c+20>>2]=h;e=g+1|0;if((g|0)!=(r|0))continue i;break h}l=l+1|0;e=(g|0)==(r|0);g=g+1|0;if(!e)continue;break}break}e=J[p>>2];g=H[p+1024|0];if(!g){i=J[c+44>>2];j=J[i>>2];J[j+20>>2]=41;kc[J[j>>2]](i)}e=e&(-1<=8)while(1){d=J[c+12>>2];J[c+12>>2]=d+1;H[d|0]=h>>>16;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(!f){e=J[c+44>>2];d=J[e+24>>2];if(!(kc[J[d+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[d>>2];f=J[d+4>>2];J[c+16>>2]=f}d=g;n:{if((h&16711680)!= +16711680)break n;g=J[c+12>>2];J[c+12>>2]=g+1;H[g|0]=0;f=J[c+16>>2]-1|0;J[c+16>>2]=f;if(f)break n;e=J[c+44>>2];g=J[e+24>>2];if(!(kc[J[g+12>>2]](e)|0)){n=0;break a}J[c+12>>2]=J[g>>2];f=J[g+4>>2];J[c+16>>2]=f}g=d-8|0;h=h<<8;if((d|0)>15)continue;break}J[c+24>>2]=g;J[c+20>>2]=h}J[u+28>>2]=I[J[s>>2]>>1];q=q+1|0;if((q|0)>2])continue;break}b=J[c+12>>2];d=J[a+24>>2];J[d+4>>2]=f;J[d>>2]=b;b=J[c+40>>2];J[k+28>>2]=J[c+36>>2];J[k+32>>2]=b;b=J[c+32>>2];J[k+20>>2]=J[c+28>>2];J[k+24>>2]=b;b=J[c+24>>2];J[k+ +12>>2]=J[c+20>>2];J[k+16>>2]=b;a=J[a+236>>2];if(!a)break a;b=J[k+36>>2];if(b)a=b;else J[k+40>>2]=J[k+40>>2]+1&7;J[k+36>>2]=a-1}fc=c+48|0;return n|0}function aWa(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,u=0;l=fc-16|0;fc=l;J[a+80>>2]=1;f=a+80|0;a:{b:{if(J[a+72>>2]){d=l+8|0;m=qk(a,0,f);e=qk(a,4,f);c:{if(!J[a+80>>2])break c;h=Ef(a,e+24|0,f);i=Ef(a,e+28|0,f);if(!J[a+80>>2])break c;d:{if((i|0)<0){d=f;break d}o=(e+h|0)+2|0;e:{while(1){j=o+(g<<3)|0; +p=qk(a,j,f);if(!J[a+80>>2])break c;if((p|0)==1936092788)break e;j=(g|0)==(i|0);g=g+1|0;if(!j)continue;break}d=f;break d}g=Ef(a,j+4|0,f);i=Ef(a,j+6|0,f);if(!J[a+80>>2])break c;if((b|0)<0){d=f;break d}if((b|0)>(g|0)){d=f;break d}b=qk(a,(i+(h+(e+P(b,12)|0)|0)|0)+4|0,f);if(!J[a+80>>2])break c;J[l+12>>2]=(m+(b&16777215)|0)+4}J[d>>2]=0}break b}J[l+12>>2]=0;d=qk(a,0,f);if(!J[a+80>>2])break a;if((d|0)==1953784678){J[a+76>>2]=1;d=qk(a,8,f);if(!J[a+80>>2])break a;if(!((b|0)<(d|0)&(b|0)>=0)){J[f>>2]=0;break a}t= +l,u=qk(a,(b<<2)+12|0,f),J[t+8>>2]=u;break b}J[l+8>>2]=0}if(!J[f>>2])break a;b=J[l+8>>2];i=J[l+12>>2];d=b+i|0;e=qk(a,d,f);if(!J[a+80>>2])break a;J[a+64>>2]=(e|0)==1330926671;d=Ef(a,d+4|0,f);J[a+24>>2]=d;if(!J[a+80>>2])break a;t=a,u=Gd(d,20),J[t+20>>2]=u;f:{if(J[a+24>>2]>0){b=b+12|0;d=0;while(1){e=b+i|0;h=qk(a,e,f);g=P(d,20);J[g+J[a+20>>2]>>2]=h;h=qk(a,e+4|0,f);J[(g+J[a+20>>2]|0)+4>>2]=h;h=qk(a,e+8|0,f);J[(g+J[a+20>>2]|0)+8>>2]=h+i;h=qk(a,e+12|0,f);e=J[a+20>>2];g=g+e|0;J[g+16>>2]=h;g=J[g+8>>2];if((g| +h)>=0)d=(J[a+12>>2]>=(g+h|0))+d|0;b=b+16|0;n=n+1|0;if((n|0)>2])continue;break}J[a+24>>2]=d;if(!J[a+80>>2])break a;b=0;J[a+68>>2]=0;if((d|0)<=0)break f;while(1){if(J[P(b,20)+e>>2]==1751474532){b=0;while(1){g:{if(J[P(b,20)+e>>2]==1751672161){b=0;while(1){h:{if(J[P(b,20)+e>>2]==1835104368){b=0;while(1){if(J[P(b,20)+e>>2]==1752003704)break h;b=b+1|0;if((d|0)!=(b|0))continue;break}break g}b=b+1|0;if((d|0)!=(b|0))continue;break g}break}i:{if(!J[a+64>>2]){if((Hr(a,819594)|0)<0)break g;if((Hr(a,819742)| +0)<0)break g;break i}if((Hr(a,778279)|0)<0)break g}g=Hr(a,817960);j:{if((g|0)<0)break j;b=P(g,20)+e|0;if(J[b+16>>2]<4)break j;b=J[b+8>>2];c=Ef(a,b+2|0,f);J[a+32>>2]=c;if(!J[a+80>>2])break a;t=a,u=Gd(c,20),J[t+28>>2]=u;k:{if(J[a+32>>2]<=0){d=0;break k}b=b+4|0;d=0;while(1){e=Ef(a,b,f);c=P(d,20);J[c+J[a+28>>2]>>2]=e;e=Ef(a,b+2|0,f);J[(c+J[a+28>>2]|0)+4>>2]=e;e=qk(a,b+4|0,f);h=c+J[a+28>>2]|0;J[h+8>>2]=e;i=J[a+20>>2]+P(g,20)|0;if((e|0)>2]){e=e+J[i+8>>2]|0;J[h+8>>2]=e;e=Ef(a,e,f);h=c+J[a+28>>2]| +0;J[h+16>>2]=e;e=Ef(a,J[h+8>>2]+2|0,f);J[(c+J[a+28>>2]|0)+12>>2]=e;d=d+1|0}b=b+8|0;k=k+1|0;if((k|0)>2])continue;break}}J[a+32>>2]=d;if(!J[a+80>>2])break a;e=J[a+20>>2]}t=a,u=Ef(a,J[(P(Hr(a,831717),20)+e|0)+8>>2]+4|0,f),J[t+36>>2]=u;if(!J[a+80>>2])break a;c=J[a+20>>2];b=P(Hr(a,827365),20);t=a,u=Tw(a,J[(c+b|0)+8>>2]+36|0,f),J[t+44>>2]=u;t=a,u=Tw(a,J[(b+J[a+20>>2]|0)+8>>2]+38|0,f),J[t+48>>2]=u;t=a,u=Tw(a,J[(b+J[a+20>>2]|0)+8>>2]+40|0,f),J[t+52>>2]=u;t=a,u=Tw(a,J[(b+J[a+20>>2]|0)+8>>2]+42|0,f), +J[t+56>>2]=u;b=Tw(a,J[(b+J[a+20>>2]|0)+8>>2]+50|0,f);J[a+40>>2]=b;if(!J[a+80>>2])break a;l:{if(J[a+64>>2])break l;c=J[(J[a+20>>2]+P(Hr(a,819594),20)|0)+16>>2];if((c|0)<((b?4:2)|0)){J[f>>2]=0;break a}b=b?2:1;if((c|0)>=J[a+36>>2]+1<>2]=(c>>>b|0)-1}d=0;k=0;g=fc-16|0;fc=g;J[g+12>>2]=1;m:{n:{b=J[a+24>>2];o:{if((b|0)<=0)break o;c=a;a=J[a+20>>2];while(1){if(J[a+P(d,20)>>2]!=1886352244){d=d+1|0;if((b|0)!=(d|0))continue;break o}break}b=J[(a+P(d,20)|0)+8>>2];a=qk(c,b,g+12|0);p:{if(!J[g+12>> +2])break p;if((a|0)!=163840){if((a|0)!=131072){if((a|0)!=65536)break o;e=vc(16);J[699344]=0;a=aa(3539,e|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;J[c+60>>2]=a;d=0;while(1){q:{a=J[c+60>>2];e=vc(8);J[699344]=0;b=aa(3349,e|0,J[(d<<2)+2193248>>2])|0;f=J[699344];J[699344]=0;if((f|0)==1)break q;Jg(a,b,d);d=d+1|0;if((d|0)!=258)continue;break o}break}break n}e=vc(16);J[699344]=0;a=aa(3539,e|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[c+60>>2]=a;o=Ef(c,b+32|0,g+12|0);if(!J[g+12>>2])break p; +if((o|0)<=0|J[c+36>>2]<=0)break o;a=0;q=b+34|0;f=q+(o<<1)|0;d=f;while(1){J[g+12>>2]=1;h=Ef(c,q+(k<<1)|0,g+12|0);r:{if((h|0)<=257){b=J[(h<<2)+2193248>>2];p0(J[c+60>>2],b);h=J[c+60>>2];e=vc(8);J[699344]=0;b=aa(3349,e|0,b|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1){Jg(h,b,k);b=a;break r}break n}b=h-258|0;if((b|0)!=(a|0)){e=0;d=f;if(h>>>0>=259)while(1){d=(Tf(c,d,g+12|0)+d|0)+1|0;e=e+1|0;if((e|0)!=(b|0))continue;break}a=b;if(!J[g+12>>2])break r}i=Tf(c,d,g+12|0);if(!J[g+12>>2]){b=a;break r}p=d+1|0;b=p;if(!((b^ +2147483647)>=(i|0)&(b|i)>=0&J[c+12>>2]>=(b+i|0))){b=a;break r}e=vc(8);b=J[c+8>>2];J[699344]=0;m=ga(3348,e|0,b+p|0,i|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;h=J[c+60>>2];j=0;n=0;e=0;b=J[m>>2];s:{if((b|0)<=0)break s;r=b&3;d=J[m+4>>2];t:{if(b>>>0<4){b=d;break t}s=b&-4;while(1){j=K[d+3|0]+P(K[d+2|0]+P(K[d+1|0]+P(K[d|0]+P(j,17)|0,17)|0,17)|0,17)|0;b=d+4|0;d=b;n=n+4|0;if((s|0)!=(n|0))continue;break}}if(!r)break s;while(1){j=K[b|0]+P(j,17)|0;b=b+1|0;e=e+1|0;if((r|0)!=(e|0))continue;break}}b=(j>>> +0)%M[h+4>>2]|0;d=J[J[h+12>>2]+(b<<2)>>2];u:{if(!d)break u;while(1){if(Eg(J[d>>2],m)){d=J[d+8>>2];if(d)continue;break u}break}b=J[h+12>>2]+(b<<2)|0;while(1){e=b;j=J[b>>2];b=j+8|0;if((d|0)!=(j|0))continue;break}J[e>>2]=J[d+8>>2];v:{if(!J[h>>2])break v;b=J[d>>2];if(!b)break v;uc(Zc(b))}uc(d);J[h+8>>2]=J[h+8>>2]-1}Jg(J[c+60>>2],m,k);d=i+p|0;b=a+1|0}k=k+1|0;if((o|0)<=(k|0))break o;a=b;if(J[c+36>>2]>(k|0))continue;break}break o}e=vc(16);J[699344]=0;a=aa(3539,e|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n; +J[c+60>>2]=a;if(J[c+36>>2]<=0)break o;a=b+32|0;d=0;while(1){b=Tf(c,a+d|0,g+12|0);if(!((b|0)>257|!J[g+12>>2])){b=J[(b<<2)+2193248>>2];p0(J[c+60>>2],b);f=J[c+60>>2];e=vc(8);J[699344]=0;b=aa(3349,e|0,b|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break n;Jg(f,b,d)}d=d+1|0;if((d|0)>2])continue;break}break o}a=J[c+60>>2];if(!a)break o;uc(Sh(a));J[c+60>>2]=0}fc=g+16|0;break m}a=Z()|0;uc(e);ba(a|0);B()}break a}b=b+1|0;if((d|0)!=(b|0))continue}break}J[f>>2]=0;break a}b=b+1|0;if((d|0)!=(b|0))continue; +break}if(!c|!J[a+64>>2])break f;b=0;while(1){if(J[P(b,20)+e>>2]!=1128678944){b=b+1|0;if((d|0)!=(b|0))continue;break f}break}J[a+36>>2]=0;J[a+40>>2]=0;J[a+68>>2]=1;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;break a}J[a+24>>2]=0;if(!J[a+80>>2])break a;J[a+68>>2]=0}J[f>>2]=0}fc=l+16|0}function EXa(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;e=fc+-64|0;fc=e;a=eq(a,b,c,d);J[a+264>>2]=0;J[a+268>>2]=0;J[a>>2]=840496;J[a+312>>2]=0;J[a+316>>2]=0;J[a+272>>2]=0;J[a+ +276>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+288>>2]=0;J[a+292>>2]=0;J[a+320>>2]=0;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;b=J[b+24>>2];J[699344]=0;ha(3372,c|0,b|0,e+32|0,0)|0;b=J[699344];J[699344]=0;j=a+312|0;a:{if((b|0)==1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],840591,e+16|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(J[b>>2]==6){J[e+48>>2]=13;J[699344]=0;b=ha(3449,J[e+24>>2],0,e+48|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+ +56>>3]:f;J[699344]=0;b=e+48|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;O[a+264>>3]=f-O[a+24>>3];k=O[a+16>>3];J[699344]=0;J[e+48>>2]=13;b=ha(3449,J[e+24>>2],1,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[699344]=0;b=e+48|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;O[a+272>>3]=k-f;J[699344]=0;J[e+48>>2]=13;b=ha(3449,J[e+24>>2],2,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>> +2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[699344]=0;b=e+48|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;O[a+280>>3]=f-O[a+24>>3];k=O[a+16>>3];J[699344]=0;J[e+48>>2]=13;b=ha(3449,J[e+24>>2],3,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[699344]=0;$(3370,e+48|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;O[a+288>>3]=k-f}J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)== +1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],840682,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;b:{if(J[b>>2]!=6)break b;I[a+256>>1]=1285;J[a+8>>2]=J[a+8>>2]|32768;b=J[e+24>>2];if(J[b+12>>2]<=0)break b;J[699344]=0;b=ha(3449,b|0,0,e|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(J[b>>2]==4)m=a,n=Ww(e),H[m+256|0]=n;J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[e+24>>2];if(J[b+12>>2]<2)break b;J[699344]=0;b=ha(3449,b|0,1,e|0,0)|0;c=J[699344];J[699344]=0;if((c| +0)==1)break a;if(J[b>>2]==4)m=a,n=Ww(e),H[m+257|0]=n;J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],840839,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;c:{d:{if(J[b>>2]!=6)break d;J[a+8>>2]=J[a+8>>2]|65536;c=J[e+24>>2];if(J[c+12>>2]<=0)break d;while(1){J[699344]=0;b=ha(3449,c|0,l|0,e|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294? +J[e>>2]==1?+J[e+8>>2]:O[e+8>>3]:f;c=J[a+316>>2];g=J[a+320>>2];e:{if(c>>>0>>0){O[c>>3]=f;J[a+316>>2]=c+8;break e}d=J[j>>2];i=c-d>>3;b=i+1|0;if(b>>>0>=536870912){J[699344]=0;$(2494,j|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;break c}g=g-d|0;h=g>>2;g=g>>>0>=2147483640?536870911:b>>>0>>0?h:b;f:{if(!g){h=0;break f}if(g>>>0>=536870912){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break a}J[699344]=0;h=_(4,g<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}b=(i<<3)+h|0;O[b>> +3]=f;i=b+8|0;if((c|0)!=(d|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(d|0))continue;break}J[a+320>>2]=(g<<3)+h;J[a+316>>2]=i;J[a+312>>2]=b;if(!d)break e;uc(d)}J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;l=l+1|0;c=J[e+24>>2];if((l|0)>2])continue;break}}J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],840954,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(J[b>>2]-3>>>0>=4294967294){J[a+8>> +2]=J[a+8>>2]|131072;O[a+232>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]}J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],841127,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(J[b>>2]-3>>>0>=4294967294){J[a+8>>2]=J[a+8>>2]|262144;O[a+240>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]}J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],841208,b|0,0)|0;c=J[699344];J[699344]=0;if((c| +0)==1)break a;if(!J[b>>2])J[a+8>>2]=J[a+8>>2]|524288;J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],841453,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;g:{if(J[b>>2]!=4)break g;H[a+228|0]=0;J[a+8>>2]=J[a+8>>2]|1048576;if(J[e+16>>2]!=4)break g;if(Ic(J[e+24>>2],841476))break g;H[a+228|0]=1}J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],841746,b|0,0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break a;if(J[b>>2]-3>>>0>=4294967294){J[a+8>>2]=J[a+8>>2]|2097152;O[a+248>>3]=J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]}J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;b=ha(3368,J[e+40>>2],841876,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;h:{if(J[b>>2]!=4)break h;H[a+229|0]=0;J[a+8>>2]=J[a+8>>2]|4194304;if(J[e+16>>2]!=4)break h;if(Ic(J[e+24>>2],841999))break h;H[a+229|0]=1}J[699344]=0;b=e+16|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)== +1)break a;J[a+296>>2]=0;J[a+300>>2]=0;J[a+304>>2]=0;J[a+308>>2]=0;J[699344]=0;b=ha(3368,J[e+40>>2],842249,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(J[b>>2]==6){J[a+8>>2]=J[a+8>>2]|8388608;J[699344]=0;J[e+48>>2]=13;b=ha(3449,J[e+24>>2],0,e+48|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[699344]=0;b=e+48|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;O[a+296>>3]=f;J[699344]=0;J[e+48>>2]=13;b=ha(3449, +J[e+24>>2],1,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+48>>2]==1?+J[e+56>>2]:O[e+56>>3]:f;J[699344]=0;$(3370,e+48|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;O[a+304>>3]=f}J[699344]=0;$(3370,e+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,e+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;fc=e- -64|0;return a|0}B()}c=Z()|0;b=J[j>>2];if(b){J[a+316>>2]=b;uc(b)}Ch(a);ba(c|0);B()}function VW(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;d=fc-48|0;fc=d;a:{b:{c:{d:{e=J[c>>2];g=K[e|0];if(!g)break d;while(1){f=g<<24>>24;if((f|0)==32|f-9>>>0<5){f=e+1|0;J[c>>2]=f;g=K[e+1|0];e=f;if(g)continue;break d}break}e:{f:switch((g&255)-40|0){case 0:J[c>>2]=e+1;J[d+4>>2]=0;vd(d+4|0,0);J[a>>2]=0;b=J[d+4>>2];if(!b){J[a+4>>2]=0;break c}J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break a;b=a;a=J[d+4>>2];J[b+4>>2]=a;J[d+4>>2]=0;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c| +0)!=1){if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break b;case 1:J[c>>2]=e+1;J[d+4>>2]=0;vd(d+4|0,0);J[a>>2]=1;b=J[d+4>>2];if(!b){J[a+4>>2]=0;break c}J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)!=1){b=a;a=J[d+4>>2];J[b+4>>2]=a;J[d+4>>2]=0;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break b}break a;default:if((g- +48&255)>>>0>9)break e;break;case 5:break f}b=vc(56);e=Ig(e,c,10);J[b+8>>2]=1;J[b+12>>2]=0;J[b>>2]=2401596;J[b+4>>2]=0;c=J[685894];J[b+40>>2]=0;J[b+44>>2]=0;J[b+36>>2]=c;J[b+32>>2]=0;J[b+28>>2]=c;J[b+24>>2]=0;J[b+20>>2]=e;J[b+16>>2]=c;J[b+48>>2]=0;J[b+52>>2]=0;J[699344]=0;c=b+40|0;J[c>>2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;wc(b+32|0);wc(b+24|0);wc(b+12|0);uc(nd(b));ba(a|0);B()}J[d+4>>2]=0;vd(d+4|0,b);J[a>>2]=2;b=J[d+4>>2];if(!b){J[a+4>>2]=0;break c}J[699344]= +0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)!=1){b=a;a=J[d+4>>2];J[b+4>>2]=a;J[d+4>>2]=0;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break b}break a}if((g&255)!=34)break d;J[d+36>>2]=0;J[d+40>>2]=J[685894];h=e+1|0;J[c>>2]=h;g:{h:{i:{while(1){g=0;while(1){e=K[g+h|0];if(!(!e|(e|0)==34|(e|0)==92)){g=g+1|0;continue}break}j:{k:{l:{if(g){J[699344]=0;e=ga(5339,d+28| +0,h|0,g|0)|0;f=J[699344];J[699344]=0;m:{if((f|0)!=1){J[699344]=0;ca(5292,d+4|0,d+36|0,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break m;f=J[d+4>>2];n:{if(f){h=J[J[f>>2]+28>>2];J[699344]=0;ca(h|0,d+44|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break n;c=Z()|0;break h}J[d+44>>2]=0}J[699344]=0;aa(5153,d+36|0,d+44|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){f=J[d+44>>2];J[d+44>>2]=0;if(!f)break l;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break l;J[699344]=0;$(5147, +f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break l}break b}c=Z()|0;zc(d+44|0);break h}c=Z()|0;break g}c=Z()|0;wc(e);break g}o:{e=K[h|0];if((e|0)!=92){if((e|0)!=34)break o;J[c>>2]=h+1;J[699344]=0;b=_(4,56)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break j;break i}e=h+1|0;f=K[h+1|0];if(K[b+16|0]){g=e;e=(f|0)==34;J[c>>2]=e?h+2|0:g;J[699344]=0;aa(5315,d+36|0,(e?34:92)|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break k;c=Z()|0;break g}if(!f)break o;J[c>>2]=e;p:{q:{r:{s:{t:{u:{v:{w:{f=K[e|0];if((f&248)!=48){e= +9;switch(f-97|0){case 19:break p;case 21:break r;case 5:break s;case 1:break t;case 17:break u;case 13:break v;case 0:break w;default:break q}}J[c>>2]=h+2;g=f-48|0;e=K[h+2|0];x:{if((e&248)!=48)break x;J[c>>2]=h+3;g=(e+(g<<3)|0)-48|0;e=K[h+3|0];if((e&248)!=48)break x;J[c>>2]=h+4;g=(e+(g<<3)|0)-48|0}J[699344]=0;aa(5315,d+36|0,g<<24>>24)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break k;c=Z()|0;break g}e=7;break p}e=10;break p}e=13;break p}e=8;break p}e=12;break p}e=11;break p}e=f}J[c>>2]=h+2;J[699344]= +0;aa(5315,d+36|0,e<<24>>24)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break k;c=Z()|0;break g}J[699344]=0;a=ja(5178,d+4|0,J[685886],2389637,495,2401762,0)|0;b=J[699344];J[699344]=0;y:{if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break y;B()}c=Z()|0;break g}c=Z()|0;Kc(a);break g}f=J[d+36>>2];J[d+40>>2]=J[(f?f+12|0:2743576)>>2];wc(d+4|0);wc(e);J[c>>2]=J[c>>2]+g}h=J[c>>2];continue}break}c=J[d+36>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;c=ga(5360,b|0,2,c|0)|0;e=J[699344];J[699344]= +0;z:{if((e|0)!=1){J[699344]=0;J[d+4>>2]=0;aa(5145,d+4|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;J[a>>2]=2;b=J[d+4>>2];A:{if(!b){J[a+4>>2]=0;break A}J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break z;b=a;a=J[d+4>>2];J[b+4>>2]=a;J[d+4>>2]=0;if(!a)break A;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break A;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}wc(d+36|0);break c}c=Z()|0;uc(b);break g}c=Z()| +0;zc(d+4|0);break g}c=Z()|0;break g}wc(d+4|0);wc(e)}wc(d+36|0);ba(c|0);B()}J[d+4>>2]=0;J[d+8>>2]=J[685894];B:{C:{D:{E:{F:{while(1){b=J[c>>2];J[c>>2]=b+1;e=K[b|0];if((e|0)==41)break F;if(!e){J[699344]=0;J[d+36>>2]=0;aa(5145,d+36|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break D;J[a>>2]=1;b=J[d+36>>2];if(!b){J[a+4>>2]=0;break B}J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)!=1){b=a;a=J[d+36>>2];J[b+4>>2]=a;J[d+36>>2]=0;if(!a)break B;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344]; +J[699344]=0;if((c|0)==1)break b;if(b)break B;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;break B}g=Z()|0;zc(d+36|0);break C}b=e<<24>>24;if((b|0)==32|b-9>>>0<5)break E;J[699344]=0;aa(5315,d+4|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}g=Z()|0;break C}J[c>>2]=b}J[699344]=0;b=_(4,56)|0;c=J[699344];J[699344]=0;G:{H:{I:{if((c|0)==1)break I;c=J[d+4>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;c=ga(5360,b|0,3,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break H;J[699344]= +0;J[d+36>>2]=0;aa(5145,d+36|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break I;J[a>>2]=2;b=J[d+36>>2];if(!b){J[a+4>>2]=0;break B}J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break G;b=a;a=J[d+36>>2];J[b+4>>2]=a;J[d+36>>2]=0;if(!a)break B;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break B;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break B}break b}g=Z()|0;break C}g=Z()|0;uc(b);break C}g=Z()|0;zc(d+36|0);break C}g=Z()| +0}wc(d+4|0);ba(g|0);B()}wc(d+4|0)}fc=d+48|0;return}ea(0)|0;Bc();B()}a=Z()|0;zc(d+4|0);ba(a|0);B()}function b_a(a){a=a|0;var b=0,c=0,d=0;d=J[a+404>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a:{if(c)break a;if(kc[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=216;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(kc[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}J[d+28>>2]=0;c:{if(!J[a+244>>2])break c; +b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(kc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=224;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(kc[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(kc[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2]; +J[b>>2]=c+1;H[c|0]=16;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g:{if(c)break g;if(kc[J[b+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=74;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(kc[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=70;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(kc[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=73;c= +J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(kc[J[b+12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=70;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(kc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(kc[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=K[a+248|0];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0; +J[b+4>>2]=c;m:{if(c)break m;if(kc[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=K[a+249|0];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(kc[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=K[a+250|0];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;o:{if(c)break o;if(kc[J[b+12>>2]](a)|0)break o;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}c=L[a+252>>1];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8; +d=J[b+4>>2]-1|0;J[b+4>>2]=d;p:{if(d)break p;if(kc[J[b+12>>2]](a)|0)break p;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;q:{if(c)break q;if(kc[J[b+12>>2]](a)|0)break q;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}c=L[a+254>>1];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;r:{if(d)break r;if(kc[J[b+12>>2]](a)|0)break r;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>> +2]-1|0;J[b+4>>2]=c;s:{if(c)break s;if(kc[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(kc[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break c;if(kc[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}u:{if(!J[a+256>>2])break u;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]- +1|0;J[b+4>>2]=c;v:{if(c)break v;if(kc[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=238;c=J[b+4>>2]-1|0;J[b+4>>2]=c;w:{if(c)break w;if(kc[J[b+12>>2]](a)|0)break w;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;x:{if(c)break x;if(kc[J[b+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=14;c=J[b+4>>2]-1|0;J[b+4>>2]=c;y:{if(c)break y; +if(kc[J[b+12>>2]](a)|0)break y;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=65;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(kc[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=100;c=J[b+4>>2]-1|0;J[b+4>>2]=c;A:{if(c)break A;if(kc[J[b+12>>2]](a)|0)break A;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=111;c=J[b+4>>2]-1|0;J[b+4>>2]=c;B:{if(c)break B;if(kc[J[b+12>>2]](a)|0)break B; +b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=98;c=J[b+4>>2]-1|0;J[b+4>>2]=c;C:{if(c)break C;if(kc[J[b+12>>2]](a)|0)break C;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=101;c=J[b+4>>2]-1|0;J[b+4>>2]=c;D:{if(c)break D;if(kc[J[b+12>>2]](a)|0)break D;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;E:{if(c)break E;if(kc[J[b+12>>2]](a)|0)break E;b=J[a>>2];J[b+20>>2]=25; +kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=100;c=J[b+4>>2]-1|0;J[b+4>>2]=c;F:{if(c)break F;if(kc[J[b+12>>2]](a)|0)break F;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;G:{if(c)break G;if(kc[J[b+12>>2]](a)|0)break G;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;H:{if(c)break H;if(kc[J[b+12>>2]](a)|0)break H;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>> +2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;I:{if(c)break I;if(kc[J[b+12>>2]](a)|0)break I;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;J:{if(c)break J;if(kc[J[b+12>>2]](a)|0)break J;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=J[a+80>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;K:{L:switch(d-3|0){case 0:H[c|0]=1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break u;if(!(kc[J[b+12>>2]](a)|0))break K;break u;case 2:H[c|0]=2;c=J[b+4>>2]-1| +0;J[b+4>>2]=c;if(c)break u;if(!(kc[J[b+12>>2]](a)|0))break K;break u;default:break L}H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break u;if(kc[J[b+12>>2]](a)|0)break u}b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}}function g3a(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;i=fc-160|0;fc=i;a:{b:{c:{d:{e:{f:switch(K[c|0]-4|0){case 0:break c;case 1:break f;default:break e}if(K[c+1|0]<3)break e;k=J[c+32>>2];if(!(k&65408))break d}J[d>>2]=13;break a}m=a+200|0;f=J[c+24>>2];H[m| +0]=f;h=k&63;k=k&64;e=k>>>6|0;if(!k|f&255)break b;J[d>>2]=13;break a}m=a+200|0;f=J[c+24>>2];H[m|0]=f;h=8}if(f>>>0>=256)J[a+224>>2]=(f>>>8|0)+c;g:{h:{i:{f=f&255;if(f>>>0>14)break i;k=a+28|0;if(1<>2]=J[184366];f=J[184365];J[i+48>>2]=J[184364];J[i+52>>2]=f;f=J[184363];J[i+40>>2]=J[184362];J[i+44>>2]=f;f=J[184361];J[i+32>>2]=J[184360];J[i+36>>2]=f;g=J[a+224>>2];if(!g){J[d>>2]=13;break a}if(J[b+4>>2]!=1){J[d>>2]=14;break a}c=(h<<2)+c|0;if(!Ic(c,J[a+12>>2]+4|0)){J[d>> +2]=13;break a}J[i+32>>2]=28;J[i+36>>2]=2;H[i+40|0]=K[b+8|0];I[i+42>>1]=L[b+10>>1];J[i+44>>2]=J[b+12>>2];f=J[b+16>>2];J[i+52>>2]=c;J[i+48>>2]=f;f=0;c=0;j:{if(!d)break j;h=i+32|0;k:{if(J[d>>2]>0)break k;c=J[h+16>>2];if(!(!c|!K[c|0])){c=bD(h,d);break j}l:{c=J[693200];if(c){c=ML(c,J[h+20>>2]);if(c)break l}c=bD(h,d);if(!c|J[d>>2]>0)break k;if(K[h+8|0])break j;u3(c);break j}J[c+4>>2]=J[c+4>>2]+1;f=c}c=f}if(J[d>>2]>0)break a;if(!(!J[c+220>>2]&K[J[c+12>>2]+69|0]==2)){aD(c);J[d>>2]=13;break a}if(K[b+8|0]){aD(c); +break a}f=xc(k,c+28|0,184);J[a+224>>2]=g;J[a+220>>2]=c;J[a+192>>2]=0;J[a+40>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;m:{n:{b=J[a+12>>2];switch(K[b+69|0]-1|0){case 0:break m;case 1:break n;default:break g}}if(H[b+70|0]<2)break g}o:{if(K[c+200|0]==12){b=J[J[a+36>>2]+56>>2];if((b&-2131755008)!=-2139095040)break g;b=b>>>24&127;if(!b)break g;H[a+29|0]=b;break o}b=J[c+12>>2];if(K[b+69|0]!=2|K[b+70|0]!=1|K[b+71|0]!=2)break g;b=H[f|0];if((b|0)<0)break g;f=b&255;g=f+1|0;b=ji(g<<10);if(!b){aD(c);J[d>>2]=7;break a}d= +xc(b,J[a+36>>2],f<<10);c=f<<24;b=0;while(1){h=b<<2;e=h+d|0;if(J[e>>2]<0)J[e>>2]=c;e=d+(h|4)|0;if(J[e>>2]<0)J[e>>2]=c;e=d+(h|8)|0;if(J[e>>2]<0)J[e>>2]=c;h=d+(h|12)|0;if(J[h>>2]<0)J[h>>2]=c;b=b+4|0;if((b|0)!=256)continue;break}b=d+(f<<10)|0;f=0;while(1){c=f<<2;J[c+b>>2]=-2140143616;J[b+(c|4)>>2]=-2140143616;J[b+(c|8)>>2]=-2140143616;J[b+(c|12)>>2]=-2140143616;J[b+(c|16)>>2]=-2140143616;J[b+(c|20)>>2]=-2140143616;J[b+(c|24)>>2]=-2140143616;J[b+(c|28)>>2]=-2140143616;f=f+8|0;if((f|0)!=256)continue;break}H[a+ +28|0]=g;J[a+36>>2]=d;H[a+30|0]=1}H[m|0]=219;break g}J[d>>2]=13;break a}if(K[b+8|0])break a;b=J[c+4>>2];H[a+28|0]=b;f=J[c+8>>2];j=b<<10;b=(h<<2)+c|0;J[a+48>>2]=j+b;J[a+36>>2]=b;J[a+32>>2]=f;J[a+44>>2]=J[c+12>>2]+c;J[a+52>>2]=J[c+16>>2]+c;J[a+188>>2]=J[c+20>>2]+c;J[a+196>>2]=J[c+28>>2];I[i+12>>1]=20;b=J[a+8>>2];g=i+12|0;p:{if(!g)break p;q:{if(!b)break q;h=J[b+4>>2];if(!h)break q;j=g+2|0;l=h+6|0;f=L[g>>1];b=0;r:{if((h|0)==-4)break r;b=L[h+4>>1];if(!K[h+8|0])break r;b=b<<8|(b&65280)>>>8}b=b&65535;if(f>>> +0>b>>>0)I[g>>1]=b;else b=f;b=xc(j,l,b-2|0);if(!K[h+8|0])break p;f=b;b=L[h+6>>1];I[f>>1]=b<<8|b>>>8;break p}I[g>>1]=0}b=K[i+24|0];s:{if(!(b>>>0<=6&(!K[i+25|0]|(b|0)!=6))){h=K[J[a+12>>2]+79|0]&3;H[a+201|0]=h;if(K[c+1|0]<3|h>>>0>=2)break s;b=K[c+2|0];if(K[k|0]==1){if(b>>>0<=14)break s;H[a+202|0]=1;b=J[a+52>>2];f=0;g=a+60|0;while(1){j=b+(f>>>3&536870910)|0;I[g+(f<<1)>>1]=L[(b+(f<<3&112)|0)+(L[j>>1]<<1)>>1];l=f|1;I[g+(l<<1)>>1]=L[(b+(l<<3&120)|0)+(L[j>>1]<<1)>>1];f=f+2|0;if((f|0)!=64)continue;break}I[a+ +204>>1]=4095;break s}if(b>>>0<=214)break s;H[a+202|0]=1;f=J[a+188>>2];J[a+56>>2]=f+(e?0:J[a+196>>2]);I[a+204>>1]=K[c+2|0]<<8|255;break s}h=3;H[a+201|0]=3}g=J[a+36>>2];f=0;b=-1;while(1){j=zEb(-2,f>>>2|0);l=f<<2;b=(J[g+(l|4)>>2]==(f|-2147483647)?-1:j)&((J[g+l>>2]==(f|-2147483648)?-1:j)&b);f=f+2|0;if((f|0)!=128)continue;break}J[a+208>>2]=b;if(!e)break g;g=J[c+16>>2];e=J[c+20>>2];j=J[c+36>>2];l=j<<2;h=h&1?1088:64;b=h<<1;n=J[a+196>>2]+(l+b|0)|0;c=ji(n);J[a+212>>2]=c;if(!c){J[d>>2]=7;break g}f=0;o=j;j= +h>>>1|0;d=(e-g>>>2|0)-j|0;c=Ac(c,0,n);h=J[a+52>>2];c=xc(c,h,b);g=c+b|0;xc((o-d<<2)+g|0,b+h|0,d<<2);J[a+188>>2]=g+l;J[a+52>>2]=c;b=L[a+204>>1];if(b>>>0>=63){b=b+1>>>6|0;l=(b>>>0<=16?16:b)-1>>>4|0;h=0;while(1){b=f;d=L[c+(b<<1)>>1];t:{if((d|0)==(j|0))break t;f=J[a+56>>2]+(h<<1)|0;e=L[f>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g>>2]=e;J[g+12>>2]=e+3;J[g+8>>2]=e+2;J[g+4>>2]=e+1}e=L[f+2>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+28>>2]=e+3;J[g+24>>2]=e+2;J[g+20>>2]=e+1;J[g+16>>2]=e}e=L[f+4>>1];if(e){g=c+(d<<2)|0;e= +e>>>4|0;J[g+44>>2]=e+3;J[g+40>>2]=e+2;J[g+36>>2]=e+1;J[g+32>>2]=e}e=L[f+6>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+60>>2]=e+3;J[g+56>>2]=e+2;J[g+52>>2]=e+1;J[g+48>>2]=e}e=L[f+8>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+76>>2]=e+3;J[g+72>>2]=e+2;J[g+68>>2]=e+1;J[g- -64>>2]=e}e=L[f+10>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+92>>2]=e+3;J[g+88>>2]=e+2;J[g+84>>2]=e+1;J[g+80>>2]=e}e=L[f+12>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+108>>2]=e+3;J[g+104>>2]=e+2;J[g+100>>2]=e+1;J[g+96>>2]=e}e=L[f+14>>1];if(e){g=c+(d<<2)|0; +e=e>>>4|0;J[g+124>>2]=e+3;J[g+120>>2]=e+2;J[g+116>>2]=e+1;J[g+112>>2]=e}e=L[f+16>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+140>>2]=e+3;J[g+136>>2]=e+2;J[g+132>>2]=e+1;J[g+128>>2]=e}e=L[f+18>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+156>>2]=e+3;J[g+152>>2]=e+2;J[g+148>>2]=e+1;J[g+144>>2]=e}e=L[f+20>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+172>>2]=e+3;J[g+168>>2]=e+2;J[g+164>>2]=e+1;J[g+160>>2]=e}e=L[f+22>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+188>>2]=e+3;J[g+184>>2]=e+2;J[g+180>>2]=e+1;J[g+176>>2]=e}e=L[f+24>>1]; +if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+204>>2]=e+3;J[g+200>>2]=e+2;J[g+196>>2]=e+1;J[g+192>>2]=e}e=L[f+26>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+220>>2]=e+3;J[g+216>>2]=e+2;J[g+212>>2]=e+1;J[g+208>>2]=e}e=L[f+28>>1];if(e){g=c+(d<<2)|0;e=e>>>4|0;J[g+236>>2]=e+3;J[g+232>>2]=e+2;J[g+228>>2]=e+1;J[g+224>>2]=e}f=L[f+30>>1];if(!f)break t;d=c+(d<<2)|0;f=f>>>4|0;J[d+252>>2]=f+3;J[d+248>>2]=f+2;J[d+244>>2]=f+1;J[d+240>>2]=f}f=b+1|0;h=h+16|0;if((b|0)!=(l|0))continue;break}}b=i+32|0;Ac(b,255,128);f=0;_C(J[a+36>>2], +b,0);b=K[a+28|0];if(!b)break g;while(1){c=i+32|0;if(H[c+f|0]>=64){e3(k,c,f,0,0,k);b=K[k|0]}f=f+1|0;if(f>>>0<(b&255)>>>0)continue;break}}u:{v:{if(K[a+202|0]){if(K[k|0]!=1)break v;J[a+20>>2]=737468}f=K[m|0];break u}f=K[m|0];if((f|0)!=1)break u;J[a+20>>2]=737540;break a}b=f&255;if((b|0)!=219&(b|0)!=12)break a;J[a+208>>2]=0}fc=i+160|0}function LLa(a){a=a|0;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;a=J[a+116>>2];e=a;k=J[a+204>>2];a:{b:{c:{d:{if(J[a>> +2]==3){c=J[a+204>>2];e:{if(J[c+8>>2]<=0){s=1;break e}while(1){a=J[J[c>>2]+(b<<2)>>2];if(xl(J[a>>2]))a=1;else a=Lk(J[a>>2])?-1:0;g=a+g|0;b=b+1|0;if((b|0)>2])continue;break}s=(g|0)>=0;c=J[e+204>>2];g=J[c+8>>2];if((g|0)<=0)break e;j=O[e+120>>3];l=O[e+112>>3];n=J[c>>2];a=0;while(1){f:{g:{h:{i:{b=J[n+(a<<2)>>2];switch(K[b+88|0]-1|0){case 2:break g;case 1:break h;case 0:break i;default:break f}}i=O[b+32>>3];O[b+32>>3]=O[b+40>>3];r=O[b+16>>3];O[b+16>>3]=O[b+24>>3];O[b+40>>3]=l-r;O[b+24>>3]=l-i;break f}i= +O[b+32>>3];O[b+32>>3]=l-O[b+16>>3];O[b+16>>3]=l-i;i=O[b+40>>3];O[b+40>>3]=j-O[b+24>>3];O[b+24>>3]=j-i;break f}i=O[b+40>>3];O[b+40>>3]=O[b+32>>3];r=O[b+24>>3];O[b+24>>3]=O[b+16>>3];O[b+32>>3]=j-r;O[b+16>>3]=j-i}a=a+1|0;if((g|0)!=(a|0))continue;break}}n=_Z(e,c);a=J[e+204>>2];c=J[a+8>>2];if((c|0)>0){j=O[e+120>>3];l=O[e+112>>3];g=J[a>>2];a=0;while(1){j:{k:{l:{m:{b=J[g+(a<<2)>>2];switch(K[b+88|0]-1|0){case 2:break k;case 1:break l;case 0:break m;default:break j}}i=O[b+40>>3];O[b+40>>3]=O[b+32>>3];r=O[b+ +24>>3];O[b+24>>3]=O[b+16>>3];O[b+32>>3]=l-r;O[b+16>>3]=l-i;break j}i=O[b+32>>3];O[b+32>>3]=l-O[b+16>>3];O[b+16>>3]=l-i;i=O[b+40>>3];O[b+40>>3]=j-O[b+24>>3];O[b+24>>3]=j-i;break j}i=O[b+32>>3];O[b+32>>3]=O[b+40>>3];r=O[b+16>>3];O[b+16>>3]=O[b+24>>3];O[b+40>>3]=j-r;O[b+24>>3]=j-i}a=a+1|0;if((c|0)!=(a|0))continue;break}}ZZ(e,n);break d}if(J[e+52>>2])c=VI(e,J[e+204>>2]);h=uw(e,k);s=1;if(J[k+8>>2]>0){while(1){a=J[J[k>>2]+(b<<2)>>2];if(xl(J[a>>2]))a=1;else a=Lk(J[a>>2])?-1:0;g=a+g|0;b=b+1|0;if((b|0)>2])continue;break}s=(g^-1)>>>31|0}b=BB(e,k);if(!b){No(e,k,h);a=vc(8);J[699344]=0;e=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;b=_(3352,e|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[a>>2]=b;J[a+4>>2]=1;break a}b=Z()|0;uc(e);break b}b=Z()|0;break b}a=vc(16);J[699344]=0;n=_(3352,a|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;AB(e,b,n,s);uc(Oo(b));No(e,k,h);if(J[e+24>>2]){UI(e,h);TI(e,n)}if(!c)break d;n:{if(J[c+8>>2]<=0)break n;sd(n,RI(c));a=J[c+8>>2];if((a|0)<=0)break n;b=0;while(1){g= +J[J[c>>2]+(b<<2)>>2];if(g){uc(g);a=J[c+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}uc(ld(c))}a=vc(16);J[699344]=0;k=_(3352,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){a=J[n+8>>2];if((a|0)>0)while(1){m=0;u=J[J[n>>2]+(p<<2)>>2];b=J[u>>2];if(J[b+8>>2]>0){while(1){o=0;v=J[J[b>>2]+(m<<2)>>2];a=J[v>>2];if(J[a+8>>2]>0){while(1){q=J[J[a>>2]+(o<<2)>>2];b=J[q>>2];if(J[b+8>>2]>0){g=0;while(1){c=J[J[b>>2]+(g<<2)>>2];a=vc(112);b=xc(a,c,105);d=J[b+44>>2];J[699344]=0;f=aa(3551,d|0,4)|0;t=J[699344];J[699344]=0; +o:{p:{if((t|0)==1)break p;J[b+32>>2]=f;t=d<<2;xc(f,J[c+32>>2],t);J[699344]=0;w=d+1|0;f=aa(3551,w|0,8)|0;x=J[699344];J[699344]=0;if((x|0)==1)break p;J[b+40>>2]=f;xc(f,J[c+40>>2],(d<<3)+8|0);J[699344]=0;d=aa(3551,w|0,4)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break o}b=Z()|0;break b}J[b+36>>2]=d;xc(d,J[c+36>>2],t+4|0);if(!(J[q+60>>2]|(J[J[q>>2]+8>>2]-1|0)!=(g|0)))H[b+103|0]=1;sd(k,b);g=g+1|0;b=J[q>>2];if((g|0)>2])continue;break}a=J[v>>2]}o=o+1|0;if((o|0)>2])continue;break}b=J[u>>2]}m=m+ +1|0;if((m|0)>2])continue;break}a=J[n+8>>2]}p=p+1|0;if((p|0)<(a|0))continue;break}a=J[e>>2]-1|0;if(!(a>>>0>5|!(59>>>a&1)))Bl(k,J[(a<<2)+2345556>>2]);q:{r:switch(h-1|0){case 1:o=J[k+8>>2];if((o|0)<=0)break q;q=J[k>>2];b=0;while(1){a=J[q+(b<<2)>>2];l=O[a+24>>3];j=O[e+112>>3];i=O[e+120>>3];O[a+24>>3]=i-O[a+16>>3];O[a+16>>3]=i-l;l=O[a+8>>3];O[a+8>>3]=j-O[a>>3];O[a>>3]=j-l;g=K[a+100|0];H[a+100|0]=g+2&3;c=J[a+44>>2];s:{if(g&1){if((c|0)<0)break s;d=c+1|0;m=d&3;h=J[a+40>>2];g=0;a=0;if(c>>>0>=3){p=d& +-4;c=0;while(1){d=a<<3;f=d+h|0;O[f>>3]=O[e+120>>3]-O[f>>3];f=h+(d|8)|0;O[f>>3]=O[e+120>>3]-O[f>>3];f=h+(d|16)|0;O[f>>3]=O[e+120>>3]-O[f>>3];d=h+(d|24)|0;O[d>>3]=O[e+120>>3]-O[d>>3];a=a+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break s;while(1){c=h+(a<<3)|0;O[c>>3]=O[e+120>>3]-O[c>>3];a=a+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}break s}if((c|0)<0)break s;d=c+1|0;m=d&3;h=J[a+40>>2];g=0;a=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=a<<3;f=d+h|0;O[f>>3]=O[e+112>>3]-O[f>>3];f=h+(d|8)|0;O[f>>3]=O[e+ +112>>3]-O[f>>3];f=h+(d|16)|0;O[f>>3]=O[e+112>>3]-O[f>>3];d=h+(d|24)|0;O[d>>3]=O[e+112>>3]-O[d>>3];a=a+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break s;while(1){c=h+(a<<3)|0;O[c>>3]=O[e+112>>3]-O[c>>3];a=a+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}b=b+1|0;if((o|0)!=(b|0))continue;break}break q;case 2:o=J[k+8>>2];if((o|0)<=0)break q;q=J[k>>2];b=0;while(1){a=J[q+(b<<2)>>2];l=O[a+8>>3];j=O[e+120>>3];O[a+8>>3]=O[a+24>>3];i=O[a>>3];O[a>>3]=O[a+16>>3];O[a+24>>3]=j-i;O[a+16>>3]=j-l;c=K[a+100|0]+ +3|0;H[a+100|0]=c&3;t:{if(!(c&1))break t;c=J[a+44>>2];if((c|0)<0)break t;d=c+1|0;m=d&3;h=J[a+40>>2];g=0;a=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=a<<3;f=d+h|0;O[f>>3]=O[e+120>>3]-O[f>>3];f=h+(d|8)|0;O[f>>3]=O[e+120>>3]-O[f>>3];f=h+(d|16)|0;O[f>>3]=O[e+120>>3]-O[f>>3];d=h+(d|24)|0;O[d>>3]=O[e+120>>3]-O[d>>3];a=a+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break t;while(1){c=h+(a<<3)|0;O[c>>3]=O[e+120>>3]-O[c>>3];a=a+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}b=b+1|0;if((o|0)!=(b|0))continue;break}break q; +case 0:break r;default:break q}o=J[k+8>>2];if((o|0)<=0)break q;q=J[k>>2];b=0;while(1){a=J[q+(b<<2)>>2];l=O[a+24>>3];j=O[e+112>>3];O[a+24>>3]=O[a+8>>3];i=O[a+16>>3];O[a+16>>3]=O[a>>3];O[a+8>>3]=j-i;O[a>>3]=j-l;c=K[a+100|0];H[a+100|0]=c+1&3;u:{if(!(c&1))break u;c=J[a+44>>2];if((c|0)<0)break u;d=c+1|0;m=d&3;h=J[a+40>>2];g=0;a=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=a<<3;f=d+h|0;O[f>>3]=O[e+112>>3]-O[f>>3];f=h+(d|8)|0;O[f>>3]=O[e+112>>3]-O[f>>3];f=h+(d|16)|0;O[f>>3]=O[e+112>>3]-O[f>>3];d=h+(d|24)|0;O[d>> +3]=O[e+112>>3]-O[d>>3];a=a+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break u;while(1){c=h+(a<<3)|0;O[c>>3]=O[e+112>>3]-O[c>>3];a=a+1|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}b=b+1|0;if((o|0)!=(b|0))continue;break}}a=J[n+8>>2];if((a|0)>0){b=0;while(1){e=J[J[n>>2]+(b<<2)>>2];if(e){uc(yr(e));a=J[n+8>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}uc(ld(n));a=vc(8);J[a>>2]=k;J[a+4>>2]=s;break a}b=Z()|0;break b}b=Z()|0}uc(a);ba(b|0);B()}return a|0}function Ycb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a= +vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!yg(b,e))break h;while(1){Ul(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]= +2147483632;la(2418,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2419,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+ +20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!xg(b,e))break k;while(1){Ul(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2420,b|0,f|0,d+32| +0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2421,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b; +a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o; +h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!wg(b,e))break n;while(1){Ul(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2422,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]= +0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2423,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2]; +if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>> +2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!vg(b,e))break q;while(1){Ul(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2424,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a); +a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2425,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2]; +if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function Xcb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+ +1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!yg(b,e))break h;while(1){Tl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+ +44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2426,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>> +2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2427,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>> +2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!xg(b,e))break k;while(1){Tl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2428,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+ +1560>>2];J[699344]=0;la(2429,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]- +g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!wg(b,e))break n;while(1){Tl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+ +24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2430,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2431, +b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a); +J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!vg(b,e))break q;while(1){Tl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>> +2]=0;J[d>>2]=2147483632;la(2432,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2433,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0); +a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function Wcb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+ +1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!yg(b,e))break h;while(1){Sl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b, +e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2434,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>> +2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2435,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100| +0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!xg(b,e))break k;while(1){Sl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+ +1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2436,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2437,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>> +2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!wg(b,e))break n;while(1){Sl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+ +56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2438,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>> +2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2439,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]= +J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!vg(b,e))break q;while(1){Sl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0; +J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2440,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>> +2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2441,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function Vcb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e; +case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]= +j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!yg(b,e))break h;while(1){Rl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2442,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+ +52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2443,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e= +J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>> +2]=2147483632;if(!xg(b,e))break k;while(1){Rl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2444,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2]; +if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2445,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d= +fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!wg(b,e))break n; +while(1){Rl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2446,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>> +2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2447,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+ +1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!vg(b,e))break q;while(1){Rl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b, +e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2448,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>> +2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2449,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function Ucb(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; +a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1: +f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!yg(b,e))break h;while(1){Ql(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2450,b| +0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2451,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)== +1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+ +16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!xg(b,e))break k;while(1){Ql(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2452,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2453,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a= +J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h); +a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!wg(b,e))break n;while(1){Ql(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2454,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+ +20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2455,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a); +a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+ +28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!vg(b,e))break q;while(1){Ql(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2456,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2]; +if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2457,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()| +0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function Tcb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g= +J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!yg(b,e))break h;while(1){Pl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+ +16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2458,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>> +2];J[699344]=0;la(2459,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2| +0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!xg(b,e))break k;while(1){Pl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]= +0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2460,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2461,b|0,(((f| +0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o; +if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!wg(b,e))break n;while(1){Pl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>> +2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2462,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2463,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32| +0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1: +f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!vg(b,e))break q;while(1){Pl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2464,b| +0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2465,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)== +1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function Scb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+ +100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!yg(b,e))break h;while(1){Ol(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+ +1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2466,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632; +J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2467,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>> +2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!xg(b,e))break k;while(1){Ol(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+ +56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2468,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>> +2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2469,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n; +J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!wg(b,e))break n;while(1){Ol(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0; +J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2470,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+ +12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2471,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>> +2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!vg(b,e))break q;while(1){Ol(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0; +J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2472,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]= +0;la(2473,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function $cb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+ +1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);h:{if(!J[b+12>>2])break h;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632; +if(!yg(b,e))break h;while(1){Xl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(yg(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2394,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g; +uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2395,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d; +f=a+96|0;j:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);k:{if(!J[b+12>>2])break k;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!xg(b,e))break k;while(1){Xl(e, +J[c>>2],J[c+4>>2],J[c+8>>2]);if(xg(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2396,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>> +2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2397,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){if(!(!K[b+ +1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2],J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);n:{if(!J[b+12>>2])break n;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!wg(b,e))break n;while(1){Xl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(wg(b, +e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2398,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>> +2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2399,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){if(!(!K[b+1160|0]|J[b+1172>>2]!=2)){gd(b+100|0,b,J[b+1164>>2], +J[b+1168>>2]);J[b+1172>>2]=3}Vc(b);q:{if(!J[b+12>>2])break q;J[b+1176>>2]=J[b+84>>2];a=J[e+20>>2];g=J[b+80>>2];f=(J[b+88>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!vg(b,e))break q;while(1){Xl(e,J[c>>2],J[c+4>>2],J[c+8>>2]);if(vg(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+ +48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2400,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>> +2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2401,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function cza(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=fc-112|0;fc=f;J[f+80>>2]=0;J[f+72>> +2]=0;J[f+76>>2]=0;e=f- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[f+56>>2]=0;J[f+60>>2]=0;h=Co(f+56|0,2418560);J[699344]=0;g=a+8|0;e=g;e=J[J[e+12>>2]+((b>>>0)%M[e+8>>2]<<2)>>2];i=J[699344];J[699344]=0;a:{if((i|0)!=1){b:{c:{if(!e)break c;while(1){if(!(J[e+12>>2]==(b|0)&J[e+16>>2]==(b|0))){e=J[e+8>>2];if(e)continue;break c}break}J[699344]=0;e=J[J[g+12>>2]+((b>>>0)%M[g+8>>2]<<2)>>2];i=J[699344];J[699344]=0;if((i|0)==1)break b;d:{if(e)while(1){if(J[e+12>>2]==(b|0)&J[e+16>>2]==(b|0))break d;e=J[e+8>>2];if(e)continue; +break}J[699344]=0;e=_(4,24)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=0;J[e+16>>2]=b;J[e+12>>2]=b;J[e+8>>2]=0;J[699344]=0;aa(5595,g|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b}e=J[J[e+20>>2]+8>>2];if(!e)break c;while(1){g=J[e+8>>2];J[699344]=0;ia(5596,a|0,h|0,g|0,(b|0)!=(g|0)|0);g=J[699344];J[699344]=0;if((g|0)==1){e=Z()|0;break a}e=J[e>>2];if(e)continue;break}}J[f+48>>2]=0;J[f+52>>2]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(d){d=0;J[699344]=0;b=J[h+24>>2]; +J[f+92>>2]=h;J[f+88>>2]=b;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[f+92>>2];e=J[f+88>>2];J[f+48>>2]=e;J[f+52>>2]=b;if(e){if((b|0)!=(h|0))break g;while(1){b=J[e+20>>2];d=(b|0)<(d|0)?d:b;e=J[e>>2];if(e)continue;break}}J[f+48>>2]=0;J[699344]=0;b=ha(5368,f+24|0,2418620,0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;e=J[h+24>>2];J[f+92>>2]=h;J[f+88>>2]=e;e=J[699344];J[699344]=0;if((e|0)==1)break k;g=J[f+92>>2];e=J[f+88>>2];J[f+48>>2]=e;J[f+52>>2]=g;o:{if(!e)break o;while(1){if(J[f+52>> +2]!=(h|0)){J[699344]=0;da(5243,f+48|0,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f;break e}i=J[e+20>>2];if(!((i|0)>=J[b+16>>2]&(i|0)<=J[b+20>>2])){J[699344]=0;a=ja(5178,f+88|0,2388881,2389735,619,2418660,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[699344]=0;$(5179,a|0);c=J[699344];J[699344]=0;if((c|0)!=1)break f;e=Z()|0;Kc(a);Hd(b);break a}j=J[b+8>>2];k=J[b+4>>2];J[699344]=0;g=_(4,12)|0;l=J[699344];J[699344]=0;if((l|0)==1)break i;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=J[e+16>>2];J[699344]=0;vf((i- +j<<4)+k|0,g);e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[f+48>>2];if(!e)break o;e=J[e>>2];J[f+48>>2]=e;if(e)continue;break}}i=a+36|0;e=0;p:{while(1){if(J[b+20>>2]<(e|0)|J[b+16>>2]>(e|0))break j;a=e;g=J[b+4>>2]+(e-J[b+8>>2]<<4)|0;e=J[g+8>>2];J[f+52>>2]=g;while(1){q:{J[f+48>>2]=e;if(!e)break q;r:{s:{if(!((a|0)<=J[b+20>>2]&(a|0)>=J[b+16>>2])){J[699344]=0;a=ja(5178,f+88|0,2388881,2389735,619,2418660,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break s;J[699344]=0;$(5179,a|0);c=J[699344];J[699344]=0;if((c| +0)!=1)break f;e=Z()|0;Kc(a);Hd(b);break a}g=J[b+4>>2];j=J[b+8>>2];J[f+12>>2]=e;k=J[f+52>>2];J[f+16>>2]=k;g=g+(a-j<<4)|0;if((g|0)==(k|0))break r;J[699344]=0;da(5243,f+12|0,g|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}e=Z()|0;Hd(b);break a}g=J[e+8>>2];J[699344]=0;J[f+20>>2]=0;e=J[J[i+12>>2]+((g>>>0)%M[i+8>>2]<<2)>>2];j=J[699344];J[699344]=0;t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){if(!e)break z;while(1){if(!((g|0)==J[e+12>>2]&(g|0)==J[e+16>>2])){e=J[e+8>>2];if(e)continue;break A}break}if(!J[e+20>>2]| +J[g+4>>2]<=0)break A;J[699344]=0;aa(5145,f+20|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break A;break y}break y}e=J[f+20>>2];if(!e)break t;if(J[e+4>>2]>0)break z;J[699344]=0;aa(5145,f+20|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break y}if(!J[f+20>>2])break t;J[699344]=0;e=_(4,12)|0;g=J[699344];J[699344]=0;if((g|0)==1)break v;J[e>>2]=0;J[e+4>>2]=0;g=J[f+20>>2];if(g)break x;g=0;break w}e=Z()|0;zc(f+20|0);Hd(b);break a}J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;g=J[699344];J[699344]=0;if((g|0)==1)break v; +g=J[f+20>>2]}J[e+8>>2]=g;J[699344]=0;vf(c,e);e=J[699344];J[699344]=0;if((e|0)!=1)break u}e=Z()|0;zc(f+20|0);Hd(b);break a}e=J[f+20>>2];J[f+20>>2]=0;if(!e)break t;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;j=J[699344];J[699344]=0;if((j|0)==1)break p;if(g)break t;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break p}e=J[f+48>>2];if(!e)break q;e=J[e>>2];continue}break}e=a+1|0;if((a|0)!=(d|0))continue;break}Hd(b);break n}ea(0)|0;Bc();B()}e=Z()|0;break a}J[699344]=0;b=J[h+24>>2];J[f+92>>2]= +h;J[f+88>>2]=b;b=J[699344];J[699344]=0;if((b|0)==1)break l;b=J[f+92>>2];e=J[f+88>>2];J[f+48>>2]=e;J[f+52>>2]=b;if(!e)break n;b=a+36|0;while(1){if(J[f+52>>2]!=(h|0)){J[699344]=0;da(5243,f+48|0,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f;e=Z()|0;break a}a=J[e+16>>2];J[699344]=0;J[f+88>>2]=0;e=J[J[b+12>>2]+((a>>>0)%M[b+8>>2]<<2)>>2];d=J[699344];J[699344]=0;B:{C:{D:{E:{F:{G:{H:{I:{if((d|0)!=1){if(!e)break H;while(1){if(!((a|0)==J[e+12>>2]&(a|0)==J[e+16>>2])){e=J[e+8>>2];if(e)continue;break I}break}if(!J[e+ +20>>2]|J[a+4>>2]<=0)break I;J[699344]=0;aa(5145,f+88|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break I;break G}break G}a=J[f+88>>2];if(!a)break B;if(J[a+4>>2]>0)break H;J[699344]=0;aa(5145,f+88|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break G}if(!J[f+88>>2])break B;J[699344]=0;a=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break D;J[a>>2]=0;J[a+4>>2]=0;d=J[f+88>>2];if(d)break F;d=0;break E}e=Z()|0;zc(f+88|0);break a}J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break D; +d=J[f+88>>2]}J[a+8>>2]=d;J[699344]=0;vf(c,a);a=J[699344];J[699344]=0;if((a|0)!=1)break C}e=Z()|0;zc(f+88|0);break a}a=J[f+88>>2];J[f+88>>2]=0;if(!a)break B;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break m;if(d)break B;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break m}a=J[f+48>>2];if(!a)break n;e=J[a>>2];J[f+48>>2]=e;if(e)continue;break}}Md(h);fc=f+112|0;return}ea(0)|0;Bc();break f}e=Z()|0;break a}e=Z()|0;Hd(b);break a}J[699344]=0;a=ja(5178,f+88| +0,2388881,2389735,619,2418660,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]=0;$(5179,a|0);c=J[699344];J[699344]=0;if((c|0)!=1)break f;e=Z()|0;Kc(a);Hd(b);break a}e=Z()|0;Hd(b);break a}e=Z()|0;Hd(b);break a}e=Z()|0;break a}J[699344]=0;J[f+48>>2]=e;da(5243,f+48|0,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f;e=Z()|0;break a}B()}e=Z()|0;Hd(b);break a}e=Z()|0;break a}e=Z()|0}Md(h);ba(e|0);B()}function QAa(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;h=fc-16|0;fc=h;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:switch(b- +254|0){default:switch(b-32995|0){case 1:break k;case 3:break l;case 0:break p;case 2:break i;default:break b}case 0:J[J[c>>2]>>2]=J[a+80>>2];d=1;break a;case 2:J[J[c>>2]>>2]=J[a+56>>2];d=1;break a;case 3:J[J[c>>2]>>2]=J[a+60>>2];d=1;break a;case 4:I[J[c>>2]>>1]=L[a+84>>1];d=1;break a;case 5:I[J[c>>2]>>1]=L[a+88>>1];d=1;break a;case 8:I[J[c>>2]>>1]=L[a+90>>1];d=1;break a;case 9:I[J[c>>2]>>1]=L[a+92>>1];d=1;break a;case 12:I[J[c>>2]>>1]=L[a+94>>1];d=1;break a;case 20:I[J[c>>2]>>1]=L[a+96>>1];d=1;break a; +case 23:I[J[c>>2]>>1]=L[a+98>>1];d=1;break a;case 24:J[J[c>>2]>>2]=J[a+100>>2];d=1;break a;case 26:I[J[c>>2]>>1]=L[a+104>>1];d=1;break a;case 27:I[J[c>>2]>>1]=L[a+106>>1];d=1;break a;case 86:O[J[c>>2]>>3]=O[a+112>>3];d=1;break a;case 87:O[J[c>>2]>>3]=O[a+120>>3];d=1;break a;case 28:N[J[c>>2]>>2]=N[a+128>>2];d=1;break a;case 29:N[J[c>>2]>>2]=N[a+132>>2];d=1;break a;case 30:I[J[c>>2]>>1]=L[a+138>>1];d=1;break a;case 32:N[J[c>>2]>>2]=N[a+140>>2];d=1;break a;case 33:N[J[c>>2]>>2]=N[a+144>>2];d=1;break a; +case 42:I[J[c>>2]>>1]=L[a+136>>1];d=1;break a;case 43:I[J[c>>2]>>1]=L[a+148>>1];I[J[c+4>>2]>>1]=L[a+150>>1];d=1;break a;case 67:I[J[c>>2]>>1]=L[a+164>>1];I[J[c+4>>2]>>1]=L[a+166>>1];d=1;break a;case 66:J[J[c>>2]>>2]=J[a+152>>2];J[J[c+4>>2]>>2]=J[a+156>>2];J[J[c+8>>2]>>2]=J[a+160>>2];d=1;break a;case 19:case 70:J[J[c>>2]>>2]=J[a+184>>2];d=1;break a;case 85:break j;case 69:break m;case 68:break n;case 84:break o;case 25:case 71:break q;case 1:case 6:case 7:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 21:case 22:case 31:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 72:case 73:case 74:case 75:case 77:case 78:case 80:case 81:case 82:case 83:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:case 123:case 124:case 125:case 126:case 127:case 128:case 129:case 130:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 138:case 139:case 140:case 141:case 142:case 143:case 144:case 145:case 146:case 147:case 148:case 149:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 217:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 240:case 241:case 242:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:case 275:break b; case 79:break c;case 278:break d;case 47:break e;case 276:break f;case 277:break g;case 76:break h}J[J[c>>2]>>2]=J[a+188>>2];d=1;break a}d=1;I[J[c>>2]>>1]=L[J[a+172>>2]>>1]==1&L[a+168>>1]==1;break a}I[J[c>>2]>>1]=L[a+168>>1];J[J[c+4>>2]>>2]=J[a+172>>2];d=1;break a}J[J[c>>2]>>2]=J[a+68>>2];d=1;break a}J[J[c>>2]>>2]=J[a+72>>2];d=1;break a}J[J[c>>2]>>2]=J[a+76>>2];d=1;break a}d=1;r:switch(L[a+86>>1]-1|0){case 0:I[J[c>>2]>>1]=2;break a;case 1:I[J[c>>2]>>1]=1;break a;case 2:I[J[c>>2]>>1]=3;break a;case 3:break r; default:break a}I[J[c>>2]>>1]=0;break a}I[J[c>>2]>>1]=L[a+86>>1];d=1;break a}J[J[c>>2]>>2]=J[a- -64>>2];d=1;break a}I[J[c>>2]>>1]=L[a+196>>1];J[J[c+4>>2]>>2]=J[a+200>>2];d=1;break a}I[J[c>>2]>>1]=L[a+208>>1];d=1;break a}I[J[c>>2]>>1]=L[a+204>>1];I[J[c+4>>2]>>1]=L[a+206>>1];d=1;break a}J[J[c>>2]>>2]=J[a+216>>2];d=1;if((L[a+98>>1]-L[a+168>>1]|0)<2)break a;J[J[c+4>>2]>>2]=J[a+220>>2];J[J[c+8>>2]>>2]=J[a+224>>2];break a}J[J[c>>2]>>2]=J[a+212>>2];d=1;break a}J[J[c>>2]>>2]=J[a+232>>2];d=1;break a}s:{e= -ts(a,b);t:{if(!e){c=76002;b=b>>>0>65535?72794:73422;break t}if(L[e+12>>1]==65){g=J[a+236>>2];if((g|0)>0)break s;break a}c=J[e+16>>2];b=b>>>0>65535?72794:73422}i=J[a+628>>2];a=J[a>>2];J[h+8>>2]=c;J[h+4>>2]=b;J[h>>2]=a;Nc(i,79586,75716,h);break a}f=J[a+240>>2];a=0;while(1){i=f+P(a,12)|0;if(J[J[i>>2]>>2]==(b|0)){if(K[e+15|0]){b=J[i+4>>2];u:{if(L[e+4>>1]==65533){J[J[c>>2]>>2]=b;break u}I[J[c>>2]>>1]=b}J[J[c+4>>2]>>2]=J[(f+P(a,12)|0)+8>>2];d=1;break a}v:{if(!(J[e+8>>2]==2|L[e+4>>1]>65532)&J[(f+P(a,12)| +kt(a,b);t:{if(!e){c=76018;b=b>>>0>65535?72810:73438;break t}if(L[e+12>>1]==65){g=J[a+236>>2];if((g|0)>0)break s;break a}c=J[e+16>>2];b=b>>>0>65535?72810:73438}i=J[a+628>>2];a=J[a>>2];J[h+8>>2]=c;J[h+4>>2]=b;J[h>>2]=a;Uc(i,79602,75732,h);break a}f=J[a+240>>2];a=0;while(1){i=f+P(a,12)|0;if(J[J[i>>2]>>2]==(b|0)){if(K[e+15|0]){b=J[i+4>>2];u:{if(L[e+4>>1]==65533){J[J[c>>2]>>2]=b;break u}I[J[c>>2]>>1]=b}J[J[c+4>>2]>>2]=J[(f+P(a,12)|0)+8>>2];d=1;break a}v:{if(!(J[e+8>>2]==2|L[e+4>>1]>65532)&J[(f+P(a,12)| 0)+4>>2]<2)break v;w:{x:{b=J[e>>2];switch(b-321|0){case 0:case 15:break v;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break w;default:break x}}if((b|0)==297|(b|0)==530)break v}J[J[c>>2]>>2]=J[(f+P(a,12)|0)+8>>2];d=1;break a}f=f+P(a,12)|0;if(J[f+4>>2]<=0)break a;a=J[f+8>>2];b=0;while(1){d=0;y:{z:{A:switch(J[e+8>>2]-1|0){case 0:case 6:H[J[c>>2]]=K[a|0];break z;case 5:H[J[c>>2]]=K[a|0];break z;case 2:I[J[c>>2]>>1]=L[a>>1];break z;case 7:I[J[c>> -2]>>1]=L[a>>1];break z;case 3:case 12:J[J[c>>2]>>2]=J[a>>2];break z;case 8:J[J[c>>2]>>2]=J[a>>2];break z;case 4:case 9:case 10:N[J[c>>2]>>2]=N[a>>2];break z;case 11:break A;default:break y}O[J[c>>2]>>3]=O[a>>3]}c=c+4|0;d=1}g=J[J[i>>2]+8>>2]-1|0;if(g>>>0<=12)g=J[(g<<2)+91588>>2];else g=0;a=g+a|0;b=b+1|0;if((b|0)>2])continue;break}break a}a=a+1|0;if((g|0)!=(a|0))continue;break}}bc=h+16|0;return d|0}function xFa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=bc-96|0;bc=g;a:{b:{if(!Yj(b))break b;z0(g+80|0,b);c:{d:{while(1){j=K[g+91|0];h=j<<24>>24;f=(h|0)<0;e:{f:{g:{h:{i:{j:switch((f?J[g+84>>2]:j)|0){case 4:f=f?J[g+80>>2]:g+80|0;if((K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24))!=1885957187)break i;J[695492]=0;f=g+68|0;da(4811,f|0,b|0);h=J[695492];J[695492]=0;k:{if((h|0)!=1){J[695492]=0;k=ga(4833,g|0,(H[g+79|0]<0?J[g+68>>2]:f)|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break k;if(H[g+79|0]>=0)break i;qc(J[g+68>>2]);break i}b=Z()|0;break c}b= -Z()|0;if(H[g+79|0]>=0)break c;qc(J[g+68>>2]);break c;case 15:if(Wc(f?J[g+80>>2]:g+80|0,9409,15))break i;J[695492]=0;f=g+68|0;da(4811,f|0,b|0);h=J[695492];J[695492]=0;l:{if((h|0)!=1){J[695492]=0;l=ga(4834,g|0,(H[g+79|0]<0?J[g+68>>2]:f)|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;if(H[g+79|0]>=0)break i;qc(J[g+68>>2]);break i}b=Z()|0;break c}b=Z()|0;if(H[g+79|0]>=0)break c;qc(J[g+68>>2]);break c;case 7:break j;case 0:break h;default:break i}if(Wc(f?J[g+80>>2]:g+80|0,1173,7))break i;J[695492]= -0;f=g+68|0;da(4811,f|0,b|0);h=J[695492];J[695492]=0;if((h|0)==1)break g;J[695492]=0;m=+qa(4835,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break f;J[695492]=0;O[g+56>>3]=m;da(4836,d|0,g+56|0);f=J[695492];J[695492]=0;if((f|0)==1)break f;if(H[g+79|0]<0)qc(J[g+68>>2]);n=1}J[695492]=0;f=vi(b);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(f)break e;h=H[g+91|0]}if((h|0)>=0)break b;qc(J[g+80>>2]);break b}b=Z()|0;break c}b=Z()|0;if(H[g+79|0]>=0)break c;qc(J[g+68>>2]);break c}J[695492]=0;da(3316,g+68|0,b|0); -f=J[695492];J[695492]=0;if((f|0)!=1){if(H[g+91|0]<0)qc(J[g+80>>2]);J[g+88>>2]=J[g+76>>2];f=J[g+72>>2];J[g+80>>2]=J[g+68>>2];J[g+84>>2]=f;continue}break}b=Z()|0;break c}b=Z()|0}if(H[g+91|0]>=0)break a;qc(J[g+80>>2]);ba(b|0);B()}Ri(b);m:{n:{if(!Gh(b)){j=g+80|0;J[j>>2]=0;J[j+4>>2]=0;H[j+8|0]=0;J[695492]=0;o=Qg(b);f=J[695492];J[695492]=0;if((f|0)==1)break n;while(1){o:{J[695492]=0;f=aa(4815,b|0,o|0)|0;h=J[695492];J[695492]=0;p:{q:{if((h|0)==1)break q;r:{s:{t:{u:{if(f){J[695492]=0;f=g+56|0;da(4802,f|0, -b|0);h=J[695492];J[695492]=0;v:{w:{x:{y:{if((h|0)!=1){J[695492]=0;f=aa(4825,g+68|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break y;J[695492]=0;Xf(j,f);h=J[695492];J[695492]=0;if((h|0)==1)break x;Lc(f);if(H[g+67|0]<0)qc(J[g+56>>2]);J[695492]=0;f=Fd(j,2366964);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(!f)break v;break r}b=Z()|0;break m}b=Z()|0;break w}b=Z()|0;Lc(f)}if(H[g+67|0]>=0)break m;qc(J[g+56>>2]);break m}J[695492]=0;f=Fd(j,2367044);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(f)break r; -J[695492]=0;f=Fd(j,2367112);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(f){J[695492]=0;ia(4837,a|0,b|0,c|0,d|0);f=J[695492];J[695492]=0;if((f|0)==1)break q;break p}J[695492]=0;f=Fd(j,2367140);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(f){J[695492]=0;la(4832,a|0,b|0,c|0,d|0,e|0);f=J[695492];J[695492]=0;if((f|0)==1)break q;break p}J[695492]=0;f=Fd(j,2367168);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(!((f^-1|l)&1)){J[695492]=0;i=g+44|0;J[i>>2]=0;J[i+4>>2]=0;H[i+8|0]=0;f=J[695492];J[695492]= -0;z:{if((f|0)!=1){J[695492]=0;ca(4838,b|0,i|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break z;J[695492]=0;f=J[i>>2];A:{if(K[i+8|0]){h=0;if(!f)break A;f=J[f>>2]}h=f}f=J[695492];J[695492]=0;if((f|0)==1)break z;J[695492]=0;l=ga(4834,g|0,h|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break z;Lc(i);break p}b=Z()|0;break m}b=Z()|0;Lc(i);break m}J[695492]=0;f=Fd(j,2367260);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(!((f^-1|k)&1)){J[695492]=0;i=g+32|0;J[i>>2]=0;J[i+4>>2]=0;H[i+8|0]=0;f=J[695492];J[695492]= -0;B:{if((f|0)!=1){J[695492]=0;da(4840,b|0,i|0);f=J[695492];J[695492]=0;if((f|0)==1)break B;J[695492]=0;f=J[i>>2];C:{if(K[i+8|0]){h=0;if(!f)break C;f=J[f>>2]}h=f}f=J[695492];J[695492]=0;if((f|0)==1)break B;J[695492]=0;k=ga(4833,g|0,h|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break B;Lc(i);break p}b=Z()|0;break m}b=Z()|0;Lc(i);break m}J[695492]=0;f=Fd(j,2367308);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(f){J[695492]=0;ia(4841,a|0,b|0,c|0,d|0);f=J[695492];J[695492]=0;if((f|0)!=1)break p;break q}J[695492]= -0;f=Fd(j,2366688);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(!f)break p;J[695492]=0;f=Gh(b);h=J[695492];J[695492]=0;if((h|0)==1)break q;if(f)break p;J[695492]=0;h=Qg(b);f=J[695492];J[695492]=0;if((f|0)==1)break t;while(1){J[695492]=0;f=aa(4815,b|0,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break s;if(!f)break p;J[695492]=0;f=g+56|0;da(4802,f|0,b|0);i=J[695492];J[695492]=0;D:{E:{F:{G:{H:{I:{J:{if((i|0)!=1){J[695492]=0;f=aa(4825,g+20|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break J;J[695492]= -0;Xf(j,f);i=J[695492];J[695492]=0;if((i|0)==1)break I;Lc(f);if(H[g+67|0]<0)qc(J[g+56>>2]);J[695492]=0;f=Fd(j,2366756);i=J[695492];J[695492]=0;if((i|0)==1)break s;if(!f)break D;J[695492]=0;f=g+8|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;i=J[695492];J[695492]=0;if((i|0)==1)break G;J[695492]=0;ca(4829,b|0,2366784,f|0);i=J[695492];J[695492]=0;if((i|0)==1)break F;J[695492]=0;i=Fd(f,2366820);p=J[695492];J[695492]=0;if((p|0)==1)break F;if(i)break E;Lc(f);continue}b=Z()|0;break m}b=Z()|0;break H}b=Z()|0;Lc(f)}if(H[g+ -67|0]>=0)break m;qc(J[g+56>>2]);break m}b=Z()|0;break m}b=Z()|0;Lc(f);break m}J[695492]=0;la(4832,a|0,b|0,c|0,d|0,0);h=J[695492];J[695492]=0;if((h|0)==1)break u;Lc(f);break p}J[695492]=0;f=Fd(j,2366928);i=J[695492];J[695492]=0;if((i|0)==1)break s;if(!f)continue;break}J[695492]=0;la(4832,a|0,b|0,c|0,d|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break t;break p}if(k&1){J[695492]=0;_(4842,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break n}if(l&1){J[695492]=0;_(4843,d|0);a=J[695492];J[695492]=0;if((a|0)== -1)break n}if(n){J[695492]=0;wv(d);a=J[695492];J[695492]=0;if((a|0)==1)break n}if(!(q&1))break o;J[695492]=0;RV(d);a=J[695492];J[695492]=0;if((a|0)==1)break n;break o}b=Z()|0;Lc(f);break m}b=Z()|0;break m}b=Z()|0;break m}J[695492]=0;q=ha(4846,a|0,b|0,g|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break p}b=Z()|0;break m}if(!e|!K[e|0])continue}break}Lc(j)}bc=g+96|0;return}b=Z()|0}Lc(j)}ba(b|0);B()}function Dra(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0;if(J[a+12>>2]>=0){a:{if(xT(a,J[a+8>>2]))break a;c=J[a+4>>2];if(J[c+20>>2]<=0)break a;while(1){e=J[a+8>>2];u=e;e=e<<3;A=J[e+2415520>>2];q=J[e+2415524>>2];B=J[c>>2]+(C<<4)|0;d=0;g=0;c=a+120|0;b:{if(A){if((q|0)<=0)break b;while(1){j=a+d|0;f=d+A|0;e=J[B+(f>>4<<2)>>2];h=8;c:{if(!e)break c;e=J[e+((f&15)<<2)>>2];h=8;if(!e)break c;o=L[e>>1]?2:8;H[c|0]=o;n=L[e+2>>1]?2:8;H[c+1|0]=n;t=L[e+4>>1]?2:8;H[c+2|0]=t;v=L[e+6>>1]?2:8;H[c+3|0]=v;w=L[e+8>>1]?2:8;H[c+4|0]= +2]>>1]=L[a>>1];break z;case 3:case 12:J[J[c>>2]>>2]=J[a>>2];break z;case 8:J[J[c>>2]>>2]=J[a>>2];break z;case 4:case 9:case 10:N[J[c>>2]>>2]=N[a>>2];break z;case 11:break A;default:break y}O[J[c>>2]>>3]=O[a>>3]}c=c+4|0;d=1}g=J[J[i>>2]+8>>2]-1|0;if(g>>>0<=12)g=J[(g<<2)+91604>>2];else g=0;a=g+a|0;b=b+1|0;if((b|0)>2])continue;break}break a}a=a+1|0;if((g|0)!=(a|0))continue;break}}fc=h+16|0;return d|0}function SHa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=fc-96|0;fc=g;a:{b:{if(!vk(b))break b;y2(g+80|0,b);c:{d:{while(1){j=K[g+91|0];h=j<<24>>24;f=(h|0)<0;e:{f:{g:{h:{i:{j:switch((f?J[g+84>>2]:j)|0){case 4:f=f?J[g+80>>2]:g+80|0;if((K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24))!=1885957187)break i;J[699344]=0;f=g+68|0;da(4971,f|0,b|0);h=J[699344];J[699344]=0;k:{if((h|0)!=1){J[699344]=0;k=ga(4993,g|0,(H[g+79|0]<0?J[g+68>>2]:f)|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break k;if(H[g+79|0]>=0)break i;uc(J[g+68>>2]);break i}b=Z()|0;break c}b= +Z()|0;if(H[g+79|0]>=0)break c;uc(J[g+68>>2]);break c;case 15:if(dd(f?J[g+80>>2]:g+80|0,9409,15))break i;J[699344]=0;f=g+68|0;da(4971,f|0,b|0);h=J[699344];J[699344]=0;l:{if((h|0)!=1){J[699344]=0;l=ga(4994,g|0,(H[g+79|0]<0?J[g+68>>2]:f)|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;if(H[g+79|0]>=0)break i;uc(J[g+68>>2]);break i}b=Z()|0;break c}b=Z()|0;if(H[g+79|0]>=0)break c;uc(J[g+68>>2]);break c;case 7:break j;case 0:break h;default:break i}if(dd(f?J[g+80>>2]:g+80|0,1173,7))break i;J[699344]= +0;f=g+68|0;da(4971,f|0,b|0);h=J[699344];J[699344]=0;if((h|0)==1)break g;J[699344]=0;m=+qa(4995,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break f;J[699344]=0;O[g+56>>3]=m;da(4996,d|0,g+56|0);f=J[699344];J[699344]=0;if((f|0)==1)break f;if(H[g+79|0]<0)uc(J[g+68>>2]);n=1}J[699344]=0;f=Mi(b);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(f)break e;h=H[g+91|0]}if((h|0)>=0)break b;uc(J[g+80>>2]);break b}b=Z()|0;break c}b=Z()|0;if(H[g+79|0]>=0)break c;uc(J[g+68>>2]);break c}J[699344]=0;da(3471,g+68|0,b|0); +f=J[699344];J[699344]=0;if((f|0)!=1){if(H[g+91|0]<0)uc(J[g+80>>2]);J[g+88>>2]=J[g+76>>2];f=J[g+72>>2];J[g+80>>2]=J[g+68>>2];J[g+84>>2]=f;continue}break}b=Z()|0;break c}b=Z()|0}if(H[g+91|0]>=0)break a;uc(J[g+80>>2]);ba(b|0);B()}gj(b);m:{n:{if(!Th(b)){j=g+80|0;J[j>>2]=0;J[j+4>>2]=0;H[j+8|0]=0;J[699344]=0;o=$g(b);f=J[699344];J[699344]=0;if((f|0)==1)break n;while(1){o:{J[699344]=0;f=aa(4975,b|0,o|0)|0;h=J[699344];J[699344]=0;p:{q:{if((h|0)==1)break q;r:{s:{t:{u:{if(f){J[699344]=0;f=g+56|0;da(4962,f|0, +b|0);h=J[699344];J[699344]=0;v:{w:{x:{y:{if((h|0)!=1){J[699344]=0;f=aa(4985,g+68|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break y;J[699344]=0;dg(j,f);h=J[699344];J[699344]=0;if((h|0)==1)break x;Rc(f);if(H[g+67|0]<0)uc(J[g+56>>2]);J[699344]=0;f=Qd(j,2378868);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(!f)break v;break r}b=Z()|0;break m}b=Z()|0;break w}b=Z()|0;Rc(f)}if(H[g+67|0]>=0)break m;uc(J[g+56>>2]);break m}J[699344]=0;f=Qd(j,2378948);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(f)break r; +J[699344]=0;f=Qd(j,2379016);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(f){J[699344]=0;ia(4997,a|0,b|0,c|0,d|0);f=J[699344];J[699344]=0;if((f|0)==1)break q;break p}J[699344]=0;f=Qd(j,2379044);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(f){J[699344]=0;ma(4992,a|0,b|0,c|0,d|0,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break q;break p}J[699344]=0;f=Qd(j,2379072);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(!((f^-1|l)&1)){J[699344]=0;i=g+44|0;J[i>>2]=0;J[i+4>>2]=0;H[i+8|0]=0;f=J[699344];J[699344]= +0;z:{if((f|0)!=1){J[699344]=0;ca(4998,b|0,i|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break z;J[699344]=0;f=J[i>>2];A:{if(K[i+8|0]){h=0;if(!f)break A;f=J[f>>2]}h=f}f=J[699344];J[699344]=0;if((f|0)==1)break z;J[699344]=0;l=ga(4994,g|0,h|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break z;Rc(i);break p}b=Z()|0;break m}b=Z()|0;Rc(i);break m}J[699344]=0;f=Qd(j,2379164);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(!((f^-1|k)&1)){J[699344]=0;i=g+32|0;J[i>>2]=0;J[i+4>>2]=0;H[i+8|0]=0;f=J[699344];J[699344]= +0;B:{if((f|0)!=1){J[699344]=0;da(5E3,b|0,i|0);f=J[699344];J[699344]=0;if((f|0)==1)break B;J[699344]=0;f=J[i>>2];C:{if(K[i+8|0]){h=0;if(!f)break C;f=J[f>>2]}h=f}f=J[699344];J[699344]=0;if((f|0)==1)break B;J[699344]=0;k=ga(4993,g|0,h|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break B;Rc(i);break p}b=Z()|0;break m}b=Z()|0;Rc(i);break m}J[699344]=0;f=Qd(j,2379212);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(f){J[699344]=0;ia(5001,a|0,b|0,c|0,d|0);f=J[699344];J[699344]=0;if((f|0)!=1)break p;break q}J[699344]= +0;f=Qd(j,2378592);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(!f)break p;J[699344]=0;f=Th(b);h=J[699344];J[699344]=0;if((h|0)==1)break q;if(f)break p;J[699344]=0;h=$g(b);f=J[699344];J[699344]=0;if((f|0)==1)break t;while(1){J[699344]=0;f=aa(4975,b|0,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break s;if(!f)break p;J[699344]=0;f=g+56|0;da(4962,f|0,b|0);i=J[699344];J[699344]=0;D:{E:{F:{G:{H:{I:{J:{if((i|0)!=1){J[699344]=0;f=aa(4985,g+20|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break J;J[699344]= +0;dg(j,f);i=J[699344];J[699344]=0;if((i|0)==1)break I;Rc(f);if(H[g+67|0]<0)uc(J[g+56>>2]);J[699344]=0;f=Qd(j,2378660);i=J[699344];J[699344]=0;if((i|0)==1)break s;if(!f)break D;J[699344]=0;f=g+8|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;i=J[699344];J[699344]=0;if((i|0)==1)break G;J[699344]=0;ca(4989,b|0,2378688,f|0);i=J[699344];J[699344]=0;if((i|0)==1)break F;J[699344]=0;i=Qd(f,2378724);p=J[699344];J[699344]=0;if((p|0)==1)break F;if(i)break E;Rc(f);continue}b=Z()|0;break m}b=Z()|0;break H}b=Z()|0;Rc(f)}if(H[g+ +67|0]>=0)break m;uc(J[g+56>>2]);break m}b=Z()|0;break m}b=Z()|0;Rc(f);break m}J[699344]=0;ma(4992,a|0,b|0,c|0,d|0,0);h=J[699344];J[699344]=0;if((h|0)==1)break u;Rc(f);break p}J[699344]=0;f=Qd(j,2378832);i=J[699344];J[699344]=0;if((i|0)==1)break s;if(!f)continue;break}J[699344]=0;ma(4992,a|0,b|0,c|0,d|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break t;break p}if(k&1){J[699344]=0;$(5002,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break n}if(l&1){J[699344]=0;$(5003,d|0);a=J[699344];J[699344]=0;if((a|0)== +1)break n}if(n){J[699344]=0;kw(d);a=J[699344];J[699344]=0;if((a|0)==1)break n}if(!(q&1))break o;J[699344]=0;HX(d);a=J[699344];J[699344]=0;if((a|0)==1)break n;break o}b=Z()|0;Rc(f);break m}b=Z()|0;break m}b=Z()|0;break m}J[699344]=0;q=ha(5006,a|0,b|0,g|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break p}b=Z()|0;break m}if(!e|!K[e|0])continue}break}Rc(j)}fc=g+96|0;return}b=Z()|0}Rc(j)}ba(b|0);B()}function Nta(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0;if(J[a+12>>2]>=0){a:{if(qV(a,J[a+8>>2]))break a;c=J[a+4>>2];if(J[c+20>>2]<=0)break a;while(1){e=J[a+8>>2];u=e;e=e<<3;A=J[e+2427424>>2];q=J[e+2427428>>2];B=J[c>>2]+(C<<4)|0;d=0;g=0;c=a+120|0;b:{if(A){if((q|0)<=0)break b;while(1){j=a+d|0;f=d+A|0;e=J[B+(f>>4<<2)>>2];h=8;c:{if(!e)break c;e=J[e+((f&15)<<2)>>2];h=8;if(!e)break c;o=L[e>>1]?2:8;H[c|0]=o;n=L[e+2>>1]?2:8;H[c+1|0]=n;t=L[e+4>>1]?2:8;H[c+2|0]=t;v=L[e+6>>1]?2:8;H[c+3|0]=v;w=L[e+8>>1]?2:8;H[c+4|0]= w;x=L[e+10>>1]?2:8;H[c+5|0]=x;y=L[e+12>>1]?2:8;H[c+6|0]=y;z=L[e+14>>1]?2:8;H[c+7|0]=z;r=L[e+16>>1]?2:8;H[c+8|0]=r;p=L[e+18>>1]?2:8;H[c+9|0]=p;m=L[e+20>>1]?2:8;H[c+10|0]=m;l=L[e+22>>1]?2:8;H[c+11|0]=l;k=L[e+24>>1]?2:8;H[c+12|0]=k;h=L[e+26>>1]?2:8;H[c+13|0]=h;f=L[e+28>>1]?2:8;H[c+14|0]=f;e=L[e+30>>1]?2:8;H[c+15|0]=e;h=e|(f|(h|(k|(l|(m|(p|(r|(z|(y|(x|(w|(v|(t|(o|n))))))))))))))}H[j+376|0]=h;c=c+16|0;g=g|h;d=d+1|0;if((q|0)!=(d|0))continue;break}break b}g=8;e=J[B>>2];d:{if(!e)break d;f=J[e>>2];if(!f)break d; d=1;g=1;g=K[c|0]!=1?L[f>>1]?2:8:g;H[a+120|0]=g;d=K[a+121|0]!=1?L[f+2>>1]?2:8:d;H[a+121|0]=d;e=d|g;c=1;d=1;d=K[a+122|0]!=1?L[f+4>>1]?2:8:d;H[a+122|0]=d;c=K[a+123|0]!=1?L[f+6>>1]?2:8:c;H[a+123|0]=c;e=d|e|c;c=1;d=1;d=K[a+124|0]!=1?L[f+8>>1]?2:8:d;H[a+124|0]=d;c=K[a+125|0]!=1?L[f+10>>1]?2:8:c;H[a+125|0]=c;e=d|e|c;c=1;d=1;d=K[a+126|0]!=1?L[f+12>>1]?2:8:d;H[a+126|0]=d;c=K[a+127|0]!=1?L[f+14>>1]?2:8:c;H[a+127|0]=c;e=d|e|c;c=1;d=1;d=K[a+128|0]!=1?L[f+16>>1]?2:8:d;H[a+128|0]=d;c=K[a+129|0]!=1?L[f+18>>1]?2: 8:c;H[a+129|0]=c;e=d|e|c;c=1;d=1;d=K[a+130|0]!=1?L[f+20>>1]?2:8:d;H[a+130|0]=d;c=K[a+131|0]!=1?L[f+22>>1]?2:8:c;H[a+131|0]=c;e=d|e|c;c=1;d=1;d=K[a+132|0]!=1?L[f+24>>1]?2:8:d;H[a+132|0]=d;c=K[a+133|0]!=1?L[f+26>>1]?2:8:c;H[a+133|0]=c;e=d|e|c;c=1;d=1;d=K[a+134|0]!=1?L[f+28>>1]?2:8:d;H[a+134|0]=d;c=K[a+135|0]!=1?L[f+30>>1]?2:8:c;H[a+135|0]=c;g=d|e|c}H[a+376|0]=g}e=g;e:{if(!(!(e&2)&(q|0)>=16)){e=e|4;break e}if(e>>>0<8)break e;h=a+505|0;g=e|4;f=J[((K[a+505|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;f:{if(f>>>0<= -M[b+28>>2]){J[b+20>>2]=f;h=H[h|0]&1;break f}h=ah(b,h,f)}e=h?g:e}g:{if(!(e&4)|(q|0)<=0)break g;r=e<<1&4;h:{if((u|0)>0){d=0;k=(u<<3)+a|0;while(1){p=a+d|0;i:{if(!(K[p+376|0]&8))break i;g=0;h=d+A<<2;f=J[(h>>8<<2)+B>>2];j:{if(!f)break j;m=J[f+(h>>>2&60)>>2];if(!m)break j;g=3;h=(h&12)<<1;l=h+m|0;f=L[l>>1];f=(L[l+2>>1]?f?2:1:(f|0)!=0)+(L[l+4>>1]!=0)|0;if(f>>>0>2)break j;g=f+(L[m+(h|6)>>1]!=0)|0}f=(k+(g|r)|0)+424|0;g=J[((K[f|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;k:{if(g>>>0<=M[b+28>>2]){J[b+20>>2]=g;h=H[f|0]&1; -break k}h=ah(b,f,g)}if(!h)break i;H[p+376|0]=K[p+376|0]|4}d=d+1|0;if((q|0)!=(d|0))continue;break}break h}h=(r+((u<<3)+a|0)|0)+424|0;d=0;while(1){f=a+d|0;l:{if(!(K[f+376|0]&8))break l;g=J[((K[h|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;m:{if(g>>>0<=M[b+28>>2]){J[b+20>>2]=g;g=H[h|0]&1;break m}g=ah(b,h,g)}if(!g)break l;H[f+376|0]=K[f+376|0]|4}d=d+1|0;if((q|0)!=(d|0))continue;break}}if((q|0)<=0)break g;c=a+120|0;o=J[((u<<2)+a|0)+16>>2];t=0;while(1){h=a+t|0;if(K[h+376|0]&4){f=A+t|0;k=(f>>4<<2)+B|0;d=J[k>>2];n:{o:{p:{if(d){g= -f&15;n=J[(g<<2)+d>>2];if(n){d=K[c+15|0];i=K[c+14|0];g=K[c+13|0];s=K[c+12|0];j=K[c+11|0];v=K[c+10|0];w=K[c+9|0];x=K[c+8|0];y=K[c+7|0];z=K[c+6|0];r=K[c+5|0];p=K[c+4|0];m=K[c+3|0];l=K[c+2|0];k=K[c+1|0];f=K[c|0];break n}i=J[a+4>>2];break p}i=J[a+4>>2];j=J[i+28>>2];q:{if((j|0)<=4046){d=J[i+24>>2];break q}d=rc(8164);J[d>>2]=J[i+24>>2];j=0;wc(d+4|0,0,8160);J[i+24>>2]=d}J[i+28>>2]=j+34;g=j<<1;d=(((d-g&2)+g|0)+d|0)+4|0;J[k>>2]=d;g=f&15;n=J[(g<<2)+d>>2];if(n)break o}j=J[i+28>>2];r:{if((j|0)<=4064){n=J[i+24>> -2];break r}n=rc(8164);J[n>>2]=J[i+24>>2];j=0;wc(n+4|0,0,8160);J[i+24>>2]=n;d=J[k>>2]}J[i+28>>2]=j+16;g=g<<2;J[g+d>>2]=((j<<1)+n|0)+4;n=J[g+J[k>>2]>>2]}if(A){H[c|0]=8;H[c+1|0]=8;H[c+2|0]=8;H[c+3|0]=8;H[c+4|0]=8;H[c+5|0]=8;H[c+6|0]=8;H[c+7|0]=8;d=8;H[c+8|0]=8;H[c+9|0]=8;H[c+10|0]=8;H[c+11|0]=8;H[c+12|0]=8;H[c+13|0]=8;H[c+14|0]=8;H[c+15|0]=8;i=8;g=8;s=8;j=8;v=8;w=8;x=8;y=8;z=8;r=8;p=8;m=8;l=8;k=8;f=8;break n}k=1;f=1;if(K[c|0]!=1){H[c|0]=8;f=8}if(K[c+1|0]!=1){H[c+1|0]=8;k=8}m=1;l=1;if(K[c+2|0]!=1){H[c+ +M[b+28>>2]){J[b+20>>2]=f;h=H[h|0]&1;break f}h=qh(b,h,f)}e=h?g:e}g:{if(!(e&4)|(q|0)<=0)break g;r=e<<1&4;h:{if((u|0)>0){d=0;k=(u<<3)+a|0;while(1){p=a+d|0;i:{if(!(K[p+376|0]&8))break i;g=0;h=d+A<<2;f=J[(h>>8<<2)+B>>2];j:{if(!f)break j;m=J[f+(h>>>2&60)>>2];if(!m)break j;g=3;h=(h&12)<<1;l=h+m|0;f=L[l>>1];f=(L[l+2>>1]?f?2:1:(f|0)!=0)+(L[l+4>>1]!=0)|0;if(f>>>0>2)break j;g=f+(L[m+(h|6)>>1]!=0)|0}f=(k+(g|r)|0)+424|0;g=J[((K[f|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;k:{if(g>>>0<=M[b+28>>2]){J[b+20>>2]=g;h=H[f|0]&1; +break k}h=qh(b,f,g)}if(!h)break i;H[p+376|0]=K[p+376|0]|4}d=d+1|0;if((q|0)!=(d|0))continue;break}break h}h=(r+((u<<3)+a|0)|0)+424|0;d=0;while(1){f=a+d|0;l:{if(!(K[f+376|0]&8))break l;g=J[((K[h|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;m:{if(g>>>0<=M[b+28>>2]){J[b+20>>2]=g;g=H[h|0]&1;break m}g=qh(b,h,g)}if(!g)break l;H[f+376|0]=K[f+376|0]|4}d=d+1|0;if((q|0)!=(d|0))continue;break}}if((q|0)<=0)break g;c=a+120|0;o=J[((u<<2)+a|0)+16>>2];t=0;while(1){h=a+t|0;if(K[h+376|0]&4){f=A+t|0;k=(f>>4<<2)+B|0;d=J[k>>2];n:{o:{p:{if(d){g= +f&15;n=J[(g<<2)+d>>2];if(n){d=K[c+15|0];i=K[c+14|0];g=K[c+13|0];s=K[c+12|0];j=K[c+11|0];v=K[c+10|0];w=K[c+9|0];x=K[c+8|0];y=K[c+7|0];z=K[c+6|0];r=K[c+5|0];p=K[c+4|0];m=K[c+3|0];l=K[c+2|0];k=K[c+1|0];f=K[c|0];break n}i=J[a+4>>2];break p}i=J[a+4>>2];j=J[i+28>>2];q:{if((j|0)<=4046){d=J[i+24>>2];break q}d=vc(8164);J[d>>2]=J[i+24>>2];j=0;Ac(d+4|0,0,8160);J[i+24>>2]=d}J[i+28>>2]=j+34;g=j<<1;d=(((d-g&2)+g|0)+d|0)+4|0;J[k>>2]=d;g=f&15;n=J[(g<<2)+d>>2];if(n)break o}j=J[i+28>>2];r:{if((j|0)<=4064){n=J[i+24>> +2];break r}n=vc(8164);J[n>>2]=J[i+24>>2];j=0;Ac(n+4|0,0,8160);J[i+24>>2]=n;d=J[k>>2]}J[i+28>>2]=j+16;g=g<<2;J[g+d>>2]=((j<<1)+n|0)+4;n=J[g+J[k>>2]>>2]}if(A){H[c|0]=8;H[c+1|0]=8;H[c+2|0]=8;H[c+3|0]=8;H[c+4|0]=8;H[c+5|0]=8;H[c+6|0]=8;H[c+7|0]=8;d=8;H[c+8|0]=8;H[c+9|0]=8;H[c+10|0]=8;H[c+11|0]=8;H[c+12|0]=8;H[c+13|0]=8;H[c+14|0]=8;H[c+15|0]=8;i=8;g=8;s=8;j=8;v=8;w=8;x=8;y=8;z=8;r=8;p=8;m=8;l=8;k=8;f=8;break n}k=1;f=1;if(K[c|0]!=1){H[c|0]=8;f=8}if(K[c+1|0]!=1){H[c+1|0]=8;k=8}m=1;l=1;if(K[c+2|0]!=1){H[c+ 2|0]=8;l=8}if(K[c+3|0]!=1){H[c+3|0]=8;m=8}r=1;p=1;if(K[c+4|0]!=1){H[c+4|0]=8;p=8}if(K[c+5|0]!=1){H[c+5|0]=8;r=8}y=1;z=1;if(K[c+6|0]!=1){H[c+6|0]=8;z=8}if(K[c+7|0]!=1){H[c+7|0]=8;y=8}w=1;x=1;if(K[c+8|0]!=1){H[c+8|0]=8;x=8}if(K[c+9|0]!=1){H[c+9|0]=8;w=8}j=1;v=1;if(K[c+10|0]!=1){H[c+10|0]=8;v=8}if(K[c+11|0]!=1){H[c+11|0]=8;j=8}g=1;s=1;if(K[c+12|0]!=1){H[c+12|0]=8;s=8}if(K[c+13|0]!=1){H[c+13|0]=8;g=8}d=1;i=1;if(K[c+14|0]!=1){H[c+14|0]=8;i=8}if(K[c+15|0]==1)break n;d=8;H[c+15|0]=8}g=(((((((((((((((f>>> -3&1)+(k>>>3&1)|0)+(l>>>3&1)|0)+(m>>>3&1)|0)+(p>>>3&1)|0)+(r>>>3&1)|0)+(z>>>3&1)|0)+(y>>>3&1)|0)+(x>>>3&1)|0)+(w>>>3&1)|0)+(v>>>3&1)|0)+(j>>>3&1)|0)+(s>>>3&1)|0)+(g>>>3&1)|0)+(i>>>3&1)|0)+(d>>>3&1)|0;d=0;while(1){l=c+d|0;s:{if(!(K[l|0]&8))break s;o=u?o:J[((d<<2)+a|0)+56>>2];k=((K[h+376|0]<<2&8|((g|0)>=7?7:g))+a|0)+392|0;f=J[((K[k|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;t:{if(f>>>0<=M[b+28>>2]){J[b+20>>2]=f;j=H[k|0]&1;break t}j=ah(b,k,f)}if(j){H[l|0]=K[l|0]|4;f=(o>>>1|0)+o-(o>>>3)|0;D=(d<<1)+n|0,E=fv(b,(P(J[b+ +3&1)+(k>>>3&1)|0)+(l>>>3&1)|0)+(m>>>3&1)|0)+(p>>>3&1)|0)+(r>>>3&1)|0)+(z>>>3&1)|0)+(y>>>3&1)|0)+(x>>>3&1)|0)+(w>>>3&1)|0)+(v>>>3&1)|0)+(j>>>3&1)|0)+(s>>>3&1)|0)+(g>>>3&1)|0)+(i>>>3&1)|0)+(d>>>3&1)|0;d=0;while(1){l=c+d|0;s:{if(!(K[l|0]&8))break s;o=u?o:J[((d<<2)+a|0)+56>>2];k=((K[h+376|0]<<2&8|((g|0)>=7?7:g))+a|0)+392|0;f=J[((K[k|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;t:{if(f>>>0<=M[b+28>>2]){J[b+20>>2]=f;j=H[k|0]&1;break t}j=qh(b,k,f)}if(j){H[l|0]=K[l|0]|4;f=(o>>>1|0)+o-(o>>>3)|0;D=(d<<1)+n|0,E=Wv(b,(P(J[b+ 20>>2],3)>>>3|0)+32768|0)?0-f|0:f,I[D>>1]=E}if(K[l|0]&4){g=0;break s}g=g-((g|0)>0)|0}d=d+1|0;if((d|0)!=16)continue;break}}c=c+16|0;t=t+1|0;if((q|0)!=(t|0))continue;break}}if(!(!(e&2)|(q|0)<=0)){m=a+504|0;o=a+120|0;i=J[((u<<2)+a|0)+16>>2];s=0;while(1){u:{if(!(K[(a+s|0)+376|0]&2))break u;g=s+A|0;e=J[(g>>4<<2)+B>>2];if(!e)break u;d=0;k=J[e+((g&15)<<2)>>2];if(!k)break u;while(1){if(K[d+o|0]&2){g=k+(d<<1)|0;e=I[g>>1];f=e>>31;h=(e^f)-f|0;i=u?i:J[((d<<2)+a|0)+56>>2];v:{if((h|0)<=(P(i,3)|0)){h=h+(i>>2)|0; -f=i>>1;e=h+f|0;l=J[((K[m|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;w:{if(l>>>0<=M[b+28>>2]){J[b+20>>2]=l;j=H[m|0]&1;break w}j=ah(b,m,l)}if(j)break v;e=h+(f-i|0)|0;break v}f=i>>1;e=f+h|0;if(fv(b,(P(J[b+20>>2],3)>>>3|0)+32768|0))break v;e=f+(h-i|0)|0}I[g>>1]=I[g>>1]>0?e:0-e|0}d=d+1|0;if((d|0)!=16)continue;break}}o=o+16|0;s=s+1|0;if((q|0)!=(s|0))continue;break}}C=C+1|0;c=J[a+4>>2];if((C|0)>2])continue;break}}a=wT(a)}else a=0;return a|0}function Vyb(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;i=bc-128|0;bc=i;if(b)hd(198285,0);b=0;hd(199642,0);a:{b:{c:{if(Vx(a,i+108|0)|J[i+108>>2]!=19778)break c;if(xm(a,i+112|0))break c;if(Vx(a,i+116|0))break c;if(Vx(a,i+120|0))break c;if(!xm(a,i+124|0))break b}hd(200454,0);break a}d=J9();if(d){d:{if(xm(a,d)|J[d>>2]!=40)break d;if(xm(a,d+4|0))break d;if(xm(a,d+8|0))break d;if(Vx(a,d+16|0))break d;if(Vx(a,d+20|0))break d;if(xm(a,d+24|0))break d;if(xm(a,d+28|0))break d;if(xm(a,d+32|0))break d;if(xm(a,d+36|0))break d; -if(xm(a,d+40|0))break d;if(xm(a,d+44|0))break d;b=J[d+8>>2];if((b|0)<0){J[d+8>>2]=0-b;g=1;b=1}H[d+12|0]=g;if(!b|J[d+4>>2]<=0|(J[d+16>>2]<=0|J[d+20>>2]<=0))break d;b=J[d+40>>2];if((b|J[d+44>>2])<0)break d;if(J[d+24>>2]){hd(203590,0);break d}e:{f:{if(b){b=zc(b<<4);J[d+48>>2]=b;if(!b)break d;b=J[d+40>>2];if((b|0)<=0)break f;while(1){g=J[d+48>>2];g:{b=J[a+8>>2];if(!(b&7)){e=J[a+64>>2];if((e|0)<0|(e|0)>J[a+60>>2])break g;J[a+8>>2]=b|4}f=(g+(c<<4)|0)+8|0;break e}e=c<<4;f=J[a+28>>2];J[a+28>>2]=f-1;h:{if((f| -0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+24>>2]=f+1;J[(e+g|0)+8>>2]=K[f|0];break h}b=jd(a,1);J[(e+g|0)+8>>2]=b;if((b|0)==-1)break d;b=J[a+8>>2]}i:{if(!(b&7)){f=J[a+64>>2];if((f|0)<0|(f|0)>J[a+60>>2])break i;J[a+8>>2]=b|4}f=(g+(c<<4)|0)+4|0;break e}f=J[a+28>>2];J[a+28>>2]=f-1;j:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+24>>2]=f+1;J[(e+g|0)+4>>2]=K[f|0];break j}b=jd(a,1);J[(e+g|0)+4>>2]=b;if((b|0)==-1)break d;b=J[a+8>>2]}f=e+g|0;if(b&7)break e;j=J[a+64>>2];if(!((j|0)<0|(j|0)>J[a+60>> -2])){J[a+8>>2]=b|4;break e}j=J[a+28>>2];J[a+28>>2]=j-1;k:{if((j|0)>0){J[a+60>>2]=J[a+60>>2]+1;j=J[a+24>>2];J[a+24>>2]=j+1;J[f>>2]=K[j|0];break k}b=jd(a,1);J[f>>2]=b;if((b|0)==-1)break d;b=J[a+8>>2]}l:{if(!(b&7)){f=J[a+64>>2];if((f|0)<0|(f|0)>J[a+60>>2])break l;J[a+8>>2]=b|4}f=(g+(c<<4)|0)+12|0;break e}b=J[a+28>>2];J[a+28>>2]=b-1;m:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;J[(e+g|0)+12>>2]=K[b|0];break m}b=jd(a,1);J[(e+g|0)+12>>2]=b;if((b|0)==-1)break d}b=J[d+40>>2];c=c+1|0; -if((b|0)>(c|0))continue;break}break f}b=0;J[d+48>>2]=0}n:{o:{if(J[i+116>>2]|J[i+108>>2]!=19778|(J[i+120>>2]|J[d+16>>2]!=1))break o;c=J[d+20>>2]-8|0;if((c|0)!=16?c:0)break o;if(!J[d+24>>2])break n}b=0;hd(201803,0);yu(d);break a}c=J[i+124>>2];b=(b<<2)+54|0;g=c-b|0;if((g|0)<0){b=0;hd(202343,0);break a}p:{if((b|0)==(c|0))break p;b=0;hd(203131,0);q:{while(1){c=0;if((g|0)<=0)break q;c=J[a+8>>2];if(!(c&7)){e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2])){J[a+8>>2]=c|4;c=-1;break q}c=J[a+28>>2];J[a+28>>2]=c- -1;g=g-1|0;r:{if((c|0)<=0){c=jd(a,1);break r}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0]}if((c|0)!=-1)continue}break}c=-1}if(!c)break p;yu(d);break a}s:{t:{u:{c=I9(d);v:{if(c){g=J[d+8>>2];e=J[d+4>>2];b=i;if((c|0)!=1){j=c&-2;f=0;while(1){J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=8;J[b+28>>2]=0;J[b+20>>2]=g;J[b+16>>2]=e;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=0;J[b+4>>2]=0;J[b+56>>2]=8;J[b+60>>2]=0;J[b+52>>2]=g;J[b+48>>2]=e;J[b+40>>2]=1;J[b+44>>2]=1;b=b- -64|0;f=f+2|0;if((j|0)!=(f|0))continue;break}}if(c& -1){J[b+24>>2]=8;J[b+28>>2]=0;J[b+20>>2]=g;J[b+16>>2]=e;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=0;J[b+4>>2]=0}b=Rr(c,i);if(!b)break v;if((c|0)!=3)break u;g=J[b+24>>2];J[J[g>>2]+40>>2]=0;J[J[g+4>>2]+40>>2]=1;f=2;g=g+8|0;c=1025;break t}b=Rr(c,i);if(b)break u}yu(d);break s}f=0;g=J[b+24>>2];c=769}J[J[g>>2]+40>>2]=f;J[b+28>>2]=c;k=bc-16|0;bc=k;g=d;c=J[d+20>>2]-8|0;if(!(!c|(c|0)==16)){fa(203981,204282,328,207844);B()}w:{if(!J[g+24>>2]){l=I9(g);c=J[g+20>>2];d=c;x:{y:{if((l|0)>0){d=0;wc(k+4|0,0,l<<2);while(1){e= -ek(1,J[g+4>>2]);J[(k+4|0)+(d<<2)>>2]=e;if(!e)break y;d=d+1|0;if((l|0)!=(d|0))continue;break}d=J[g+20>>2]}if(J[g+8>>2]<=0)break x;s=-1<>2],l)|0)%4|0;j=4-n|0;o=J[k+12>>2];p=J[k+8>>2];q=J[k+4>>2];t=(c|0)!=8;u=(l|0)!=3;while(1){d=0;z:{A:{if(J[g+4>>2]>0)while(1){e=J[a+8>>2];c=e&7;B:{if(!t){if(c)break y;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break A;c=J[a+28>>2];J[a+28>>2]=c-1;h=-1;C:{if((c|0)<=0){c=jd(a,1);break C}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0]}if((c| -0)==-1|(c|0)>(s|0))break x;if(J[g+40>>2]<=(c|0)){f=c;e=c;break B}e=J[g+48>>2]+(c<<4)|0;c=J[e+8>>2];f=J[e+4>>2];e=J[e>>2];break B}if(c)break y;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break A;c=J[a+28>>2];J[a+28>>2]=c-1;D:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break D}h=-1;c=jd(a,1);if((c|0)==-1)break x;e=J[a+8>>2]}if(e&7)break y;f=J[a+64>>2];if((f|0)>=0&(f|0)<=J[a+60>>2])break A;f=J[a+28>>2];J[a+28>>2]=f-1;E:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+ -24>>2]=f+1;f=K[f|0];break E}h=-1;f=jd(a,1);if((f|0)==-1)break x;e=J[a+8>>2]}h=-1;if(e&7)break x;h=J[a+64>>2];if((h|0)>=0&(h|0)<=J[a+60>>2])break A;e=J[a+28>>2];J[a+28>>2]=e-1;if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;e=J[a+24>>2];J[a+24>>2]=e+1;e=K[e|0];break B}h=-1;e=jd(a,1);if((e|0)==-1)break x}h=J[q+28>>2];r=J[q+20>>2];F:{if(!u){if((r|0)==1)h=J[h>>2]+(d<<2)|0;else h=J[h+(d<<2)>>2];J[h>>2]=e;e=J[p+28>>2];if(J[p+20>>2]==1)e=J[e>>2]+(d<<2)|0;else e=J[e+(d<<2)>>2];J[e>>2]=f;e=J[o+28>>2];if(J[o+20>>2]==1){J[J[e>> -2]+(d<<2)>>2]=c;break F}J[J[e+(d<<2)>>2]>>2]=c;break F}if((r|0)==1){J[J[h>>2]+(d<<2)>>2]=e;break F}J[J[h+(d<<2)>>2]>>2]=e}d=d+1|0;if((d|0)>2])continue;break}d=j;if(!n)break z;while(1){e=J[a+8>>2];if(e&7)break y;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break A;c=J[a+28>>2];J[a+28>>2]=c-1;G:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;J[a+24>>2]=J[a+24>>2]+1;break G}h=-1;if((jd(a,1)|0)==-1)break x}c=(d|0)>1;d=d-1|0;if(c)continue;break}break z}J[a+8>>2]=e|4;break y}if((l|0)>0){e=m^-1;d=0;while(1){if(gk(b, -d,0,K[g+12|0]?m:e+J[g+8>>2]|0,J[g+4>>2],1,J[(k+4|0)+(d<<2)>>2]))break y;d=d+1|0;if((l|0)!=(d|0))continue;break}}h=0;m=m+1|0;if((m|0)>2])continue;break}break x}h=-1}if((l|0)>0){a=0;while(1){c=J[(k+4|0)+(a<<2)>>2];if(c)dg(c);a=a+1|0;if((l|0)!=(a|0))continue;break}}bc=k+16|0;break w}fa(204679,204282,329,207844);B()}yu(g);if(!h)break a;yh(b)}b=0;break a}J[f>>2]=-1}yu(d)}b=0;hd(201080,0)}bc=i+128|0;return b|0}function V2(a,b,c,d,e){var f=0,g=0,h=Q(0),i=0,j=0,k=Q(0),l=Q(0),m=0,n=Q(0),o=0,p=0,q=Q(0), -r=0,s=0,t=Q(0),u=Q(0),v=Q(0),w=Q(0),x=0,y=0;o=bc-16|0;bc=o;if(e){q=Q(d|0);d=0;while(1){a:{b:{c:switch(J[a+88>>2]){case 0:i=J[a+140>>2];h=Q(N[i+20>>2]+q);l=Q(Q(Q(N[i+16>>2]+Q(c|0))*N[i>>2])+Q(h*N[i+8>>2]));n=N[a+112>>2];j=J[a+96>>2];f=j-1|0;k=Q(f|0);n=Q(Q(Q(l-n)*k)/Q(N[a+116>>2]-n));d:{if(Q(R(n))>2];l=Q(Q(l*N[i+4>>2])+Q(h*N[i+12>>2]));h=N[a+120>>2];h=Q(Q(Q(l-h)*k)/Q(N[a+124>>2]-h));e:{if(Q(R(h))>>0<=(J[a+104>>2]-m|0)/12>>>0?(i|0)>=0?f>>>0>>0?f:i:0:0,12)>>2]+(((g|0)>=0?f>>>0>>0?f:g:0)<<2)|0;g=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);i=g>>>16|0;f=b;j=K[a+2913|0];g=(j?g:i)&255|g&-16711936|(j?i:g)<<16&16711680;H[f|0]=g;H[f+1|0]=g>>>8;H[f+2|0]=g>>>16;H[f+3|0]=g>>>24;break b;case 2:f=J[a+172>>2];h=N[f+20>>2];l=N[f+16>>2];n=Q(Q(c|0)-l);k=Q(N[f+12>>2]-h);t=Q(N[f>>2]-l);u=Q(l-N[f+8>>2]);v=N[f+4>>2];l=Q(Q(k*t)+Q(u*Q(v-h)));f:{g:{w=Q(q-h);k=Q(Q(Q(k*n)+Q(w*u))/l);h:{if(k>2];i=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);n=Q(h*Q((i&255)>>>0));i:{if(Q(R(n))=0?f>>>0>=255?255:f:0;l=Q(R(l));j=K[g+8|0]|K[g+9|0]<<8|(K[g+10|0]<<16|K[g+11|0]<<24);n=Q(l*Q((j&255)>>>0));j:{if(Q(R(n))=0?f>>>0>=255?255:f:0)| -0;m=f>>>0>=255?255:f;n=Q(R(k));g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);k=Q(n*Q((g&255)>>>0));k:{if(Q(R(k))=0?f>>>0>=255?255:f:0)|0;H[o+12|0]=f>>>0>=255?255:f;k=Q(h*Q((i>>>16&255)>>>0));l:{if(Q(R(k))=0?f>>>0>=255?255:f:0;k=Q(l*Q((j>>>16&255)>>>0));m:{if(Q(R(k))=0?f>>>0>=255?255:f:0)|0;m=f>>>0>=255?255:f;k=Q(n*Q((g>>>16&255)>>>0)); -n:{if(Q(R(k))=0?f>>>0>=255?255:f:0)|0;H[o+14|0]=f>>>0>=255?255:f;k=Q(h*Q((i>>>8&255)>>>0));o:{if(Q(R(k))=0?f>>>0>=255?255:f:0;k=Q(l*Q((j>>>8&255)>>>0));p:{if(Q(R(k))=0?f>>>0>=255?255:f:0)|0;m=f>>>0>=255?255:f;k=Q(n*Q((g>>>8&255)>>>0));q:{if(Q(R(k))=0?f>>>0>=255?255:f:0)|0;H[o+13|0]=f>>> -0>=255?255:f;h=Q(h*Q(i>>>24>>>0));r:{if(Q(R(h))=0?f>>>0>=255?255:f:0;h=Q(l*Q(j>>>24>>>0));s:{if(Q(R(h))=0?f>>>0>=255?255:f:0)|0;i=f>>>0>=255?255:f;h=Q(n*Q(g>>>24>>>0));t:{if(Q(R(h))=0?f>>>0>=255?255:f:0)|0;H[o+15|0]=f>>>0>=255?255:f}u:{if(K[a+2913|0]){i=J[o+12>>2];f=i>>>24|0;j=i>>>16|0;g=i>>>8|0;break u}f=K[o+15|0];i=K[o+14|0];j=K[o+12|0]; -g=K[o+13|0]}f=i&255|(f<<24|(j&255)<<16|(g&255)<<8);H[b|0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24;break b;case 3:h=N[a+2932>>2];j=J[a+2948>>2]-1|0;l=Q(j>>>0);h=Q(Q(Q(Q(c|0)-h)*l)/Q(N[a+2936>>2]-h));v:{if(h=Q(0)){f=~~h>>>0;break v}f=0}i=0;g=f;m=f>>>0>j>>>0;h=N[a+2940>>2];h=Q(Q(Q(q-h)*l)/Q(N[a+2944>>2]-h));w:{if(h=Q(0)){f=~~h>>>0;break w}f=0}if(!(m|f>>>0>j>>>0)){f=J[J[a+2916>>2]+P(g,12)>>2]+(f<<2)|0;i=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24)}f=i>>>16| -0;g=K[a+2913|0];f=(g?i:f)&255|i&-16711936|(g?f:i)<<16&16711680;H[b|0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24;break b;case 4:h=N[a+2932>>2];j=J[a+2948>>2]-1|0;l=Q(j>>>0);h=Q(Q(Q(Q(c|0)-h)*l)/Q(N[a+2936>>2]-h));x:{if(h=Q(0)){f=~~h>>>0;break x}f=0}i=0;g=f;m=f>>>0>j>>>0;h=N[a+2940>>2];h=Q(Q(Q(q-h)*l)/Q(N[a+2944>>2]-h));y:{if(h=Q(0)){f=~~h>>>0;break y}f=0}if(!(m|f>>>0>j>>>0)){f=J[J[a+2916>>2]+P(g,12)>>2]+(f<<2)|0;i=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<< -24)}f=i>>>16|0;g=K[a+2913|0];f=(g?i:f)&255|i&-16711936|(g?f:i)<<16&16711680;H[b|0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24;break b;case 1:break c;default:break a}f=J[a+268>>2];h=Q(gc[J[J[f>>2]>>2]](f,Q(c|0),q));if(!(!(h!=h|N[a+80>>2]==Q(0)&h>2])&(!(h>N[a+116>>2])|N[a+84>>2]!=Q(0)))){H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;break b}z:switch(J[a+92>>2]){case 1:k=h;h=N[a+112>>2];g=J[a+96>>2]-1|0;h=Q(Q(Q(k-h)*Q(g|0))/Q(N[a+116>>2]-h));A:{if(Q(R(h))>2]>>2]+(((f|0)>=0?f>>>0>g>>>0?g:f:0)<<2)|0;f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);g=f>>>16|0;i=K[a+2913|0];f=(i?f:g)&255|f&-16711936|(i?g:f)<<16&16711680;H[b|0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24;break b;case 0:break z;default:break a}p=+Q(h*Q(512))+.5;B:{if(R(p)<2147483648){f=~~p;break B}f=-2147483648}if(!K[(f+a|0)+2400|0]){C:{D:{E:{i=J[a+328>>2];F:{if((i|0)<2)break F;h=Q(+(f|0)*.001953125);j=J[a+324>>2];if(h>2])break E;g=1;l=N[j+4>>2];if(h>2];if(h>2]+(i<<2)|0)-4|0;J[((f<<2)+a|0)+348>>2]=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);break C}g=J[a+320>>2];J[((f<<2)+a|0)+348>>2]=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);break C}m=J[a+320>>2];g=g<<2;i=m+g|0;g=g-4|0;m=g+m|0;r=K[m+3|0];x=K[i+3|0]-r|0;y=(f<<2)+a|0;s=K[m|0];k=h;h=N[g+j>>2];p=+Q(Q(k-h)/Q(l-h))*256+.5;G:{if(p<4294967296&p>=0){g=~~p>>>0;break G}g=0}s=s+(P(g,K[i|0]-s|0)>>>8| -0)&255;j=K[m+2|0];j=r+(P(g,x)>>>8|0)<<24|((P(g,K[i+2|0]-j|0)>>>8|0)+j&255)<<16;r=K[i+1|0];i=K[m+1|0];J[y+348>>2]=s|(j|((P(g,r-i|0)>>>8|0)+i&255)<<8)}H[(a+f|0)+2400|0]=1}j=(f<<2)+a|0;H:{if(K[a+2913|0]){i=J[j+348>>2];f=i>>>24|0;g=i>>>8|0;j=i>>>16|0;break H}f=K[j+351|0];g=K[j+349|0];i=K[j+350|0];j=K[j+348|0]}f=i&255|((j&255)<<16|f<<24|(g&255)<<8);H[b|0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24}b=b+4|0}c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}bc=o+16|0}function Geb(a,b,c,d,e){a=a|0;b=b| -0;c=c|0;d=d|0;e=e|0;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;j=pn(J[J[b+96>>2]+4>>2],239693);if(!j)return 11;f=nd(a,0);a:{if(f)break a;f=gc[J[j+4>>2]](a,b,c,d,e)|0;if(f)break a;l=J[b+104>>2];f=2;a=J[b+148>>2];b:{if((a|0)<=65535){if((a|0)==-1519689116|(a|0)==-1519619212)break b;break a}if((a|0)==65536|(a|0)==1953658213)break b;if((a|0)!=131072)break a}J[b+8>>2]=J[b+8>>2]|2048;f=0;if((c|0)<0)break a;f=gc[J[j+8>>2]](l,b,c,d,e)|0;if(f)break a;p=bc-128|0;bc=p;c:{d:{if(!b)break d;a=J[b+20>> -2];if(a){i=1;if(Be(a,327648))break c;if(Be(a,327668))break c;if(Be(a,327688))break c;if(Be(a,327708))break c;if(Be(a,327728))break c;if(Be(a,327748))break c;if(Be(a,327768))break c;if(Be(a,327788))break c;if(Be(a,327808))break c;if(Be(a,327828))break c;if(Be(a,327848))break c;if(Be(a,327868))break c;if(Be(a,327888))break c;if(Be(a,327908))break c;if(Be(a,327928))break c;if(Be(a,327948))break c;if(Be(a,327968))break c;if(Be(a,327988))break c;if(Be(a,328008))break c;if(Be(a,328028))break c;if(Be(a, -328048))break c;if(Be(a,328068))break c;if(Be(a,328088))break c;if(Be(a,328108))break c;if(Be(a,328128))break c;if(Be(a,328148))break c}h=wc(p,0,116);e:{f:{n=L[b+152>>1];if(!n)break f;d=0;while(1){i=0;e=1;f=0;k=g<<4;a=J[k+J[b+156>>2]>>2];g:{if((a|0)!=1668707360){h:{if((a|0)!=1886545264){if((a|0)!=1718642541)break g;f=1;break h}f=2}e=d}m=f<<3;f=0;while(1){d=J[b+156>>2]+k|0;a=P(i,24)+m|0;if(J[d+12>>2]==J[a+328180>>2]){j=a+328176|0;i:{if(f)break i;a=J[b+516>>2];if(!a){f=0;break i}f=0;if(gc[a|0](b,J[d>> -2],J[b+104>>2],0)|0)break i;o=J[b+104>>2];d=J[(J[b+156>>2]+k|0)+12>>2];if(Ue(o,d))break i;if(d>>>0>3)while(1){f=qh(o)+f|0;d=d-4|0;if(d>>>0>3)continue;break}n=3;if(d)while(1){a=J[o+32>>2];if(a>>>0>2]){J[o+32>>2]=a+1;a=H[a|0]}else a=0;f=((a<<24>>24&255)<<(n<<3))+f|0;n=n-1|0;d=d-1|0;if(d)continue;break}ne(o)}a=h+(i<<2)|0;d=J[a>>2];if(J[j>>2]==(f|0)){d=d+1|0;J[a>>2]=d}if((d|0)==3)break e}i=i+1|0;if((i|0)!=29)continue;break}n=L[b+152>>1];d=e}g=g+1|0;if(g>>>0<(n&65535)>>>0)continue;break}if(!(d& -255))break f;i=1;if(!(J[h>>2]!=3&J[h+4>>2]!=3&J[h+8>>2]!=3&J[h+12>>2]!=3&J[h+16>>2]!=3&J[h+20>>2]!=3&J[h+24>>2]!=3&J[h+28>>2]!=3&J[h+32>>2]!=3&J[h+36>>2]!=3&J[h+40>>2]!=3&J[h+44>>2]!=3&J[h+48>>2]!=3&J[h+52>>2]!=3&J[h+56>>2]!=3&J[h+60>>2]!=3&J[h+64>>2]!=3&J[h+68>>2]!=3&J[h+72>>2]!=3&J[h+76>>2]!=3&J[h+80>>2]!=3&J[h+84>>2]!=3&J[h+88>>2]!=3&J[h+92>>2]!=3&J[h+96>>2]!=3&J[h+100>>2]!=3&J[h+104>>2]!=3&J[h+108>>2]!=3&J[h+112>>2]!=3))break c;break d}i=0;while(1){a=h+(i<<2)|0;f=J[a>>2];if(i-16>>>0<=11){f=f+ -1|0;J[a>>2]=f}if((f|0)==3)break e;a=i|1;if((a|0)==29)break d;a=h+(a<<2)|0;f=J[a>>2];if(i-15>>>0<=11){f=f+1|0;J[a>>2]=f}if((f|0)==3)break e;i=i+2|0;continue}}i=1;break c}i=0}bc=p+128|0;if(i)J[b+8>>2]=J[b+8>>2]|8192;d=0;g=bc-16|0;bc=g;f=J[l+28>>2];j:{if(gc[J[b+516>>2]](b,1751412088,l,g+8|0)|0)break j;a=J[g+8>>2];if(a>>>0<8)break j;j=b+768|0;a=yi(l,a,j);J[g+12>>2]=a;k:{if(a)break k;l:{m:{k=J[j>>2];e=K[k+2|0]<<8|K[k+3|0];if(e>>>0<=255){a=K[k+4|0]|K[k+5|0]<<8|(K[k+6|0]<<16|K[k+7|0]<<24);a=a<<24|(a&65280)<< -8|(a>>>8&65280|a>>>24);m=a>>>0>4294901759?a&65535:a;a=J[g+8>>2];if(!e|m-65538>>>0>4294901761)break m}J[g+12>>2]=3;break l}q=b,r=Sc(f,1,0,e,0,g+12|0),J[q+784>>2]=r;if(J[g+12>>2])break l;n:{if(!e)break n;f=k+8|0;j=a+k|0;while(1){a=f+m|0;if(a>>>0>j>>>0)break n;H[J[b+784>>2]+d|0]=K[f|0];f=a;d=d+1|0;if((e|0)!=(d|0))continue;break}d=e}J[b+776>>2]=d;a=J[g+8>>2];J[b+780>>2]=m;J[b+772>>2]=a;break k}Sf(l,j);J[b+772>>2]=0}d=J[g+12>>2]}bc=g+16|0;f=d;if(d)break a;f=0;o:{if(!(H[b+8|0]&1))break o;if(!J[J[b+128>> -2]+52>>2]){g=bc-16|0;bc=g;d=gc[J[b+516>>2]](b,1735162214,l,b+724|0)|0;p:{q:{if((d&255)==142){J[b+724>>2]=0;a=0;break q}if(d)break p;a=0;if(J[J[b+128>>2]+52>>2])break q;a=J[l+8>>2]}J[b+728>>2]=a;d=144;if(gc[J[b+516>>2]](b,1819239265,l,g+12|0)|0)break p;f=J[g+12>>2];r:{if(L[b+210>>1]){e=2;if(f>>>0>=262144){J[g+12>>2]=262143;f=262143}break r}e=1;if(f>>>0>=131072){J[g+12>>2]=131071;f=131071}}d=f>>>e|0;J[b+760>>2]=d;a=J[b+16>>2];s:{if(a>>>0>>0)break s;a=a+1|0;if((a|0)==(d|0))break s;f=a<> -2];k=J[l+8>>2];a=L[b+152>>1];t:{if(a){j=(a<<4)+e|0;d=2147483647;i=0;while(1){m=J[e+8>>2]-k|0;a=(m|0)>0&(d|0)>(m|0);i=a?1:i;d=a?m:d;e=e+16|0;if(j>>>0>e>>>0)continue;break}if(i&255)break t}d=J[l+4>>2]-k|0}if(d>>>0>=f>>>0){J[b+760>>2]=J[b+16>>2]+1;J[g+12>>2]=f;break s}d=J[b+760>>2];a=d-1|0;J[b+16>>2]=a>>>0<=d>>>0?a:0;f=J[g+12>>2]}d=yi(l,f,b+764|0)}bc=g+16|0;f=d;if(d)break a}f=u4(b,l);if((f&255)!=142?f:0)break a;d=bc-16|0;bc=d;u:{if(gc[J[b+516>>2]](b,1718642541,l,d+12|0)|0){J[b+684>>2]=0;J[b+688>>2]= -0;f=0;break u}a=J[d+12>>2];J[b+684>>2]=a;f=yi(l,a,b+688|0)}bc=d+16|0;if((f&255)!=142?f:0)break a;d=bc-16|0;bc=d;v:{if(gc[J[b+516>>2]](b,1886545264,l,d+12|0)|0){J[b+692>>2]=0;J[b+696>>2]=0;f=0;break v}a=J[d+12>>2];J[b+692>>2]=a;f=yi(l,a,b+696|0)}bc=d+16|0;if((f&255)!=142?f:0)break a;if(!J[b+764>>2]|(J[J[b+128>>2]+52>>2]|!J[b+28>>2]))break o;a=0;g=bc-16|0;bc=g;j=J[b+760>>2];w:{if(!j)break w;x:{y:{z:{while(1){FC(b,a,g+12|0);e=J[g+12>>2];if(e)break z;a=a+1|0;if((j|0)!=(a|0))continue;break}a=0;break y}d= -a+1|0;if((j|0)==(d|0)){d=a;break x}while(1){FC(b,d,g+12|0);if(J[g+12>>2]){a=0;break w}d=d+1|0;if((j|0)!=(d|0))continue;break}}d=a;if(e)break x;a=0;break w}if(!d){a=1;break w}a=0;e=35;A:{if(!b)break A;e=6;k=g+4|0;if(!k)break A;H[k|0]=0;e=16;B:{if(J[b+16>>2]<=(d|0))break B;e=6;if(!(K[b+9|0]&2))break A;C:{D:{m=J[b+128>>2];i=J[m+40>>2];switch(i+2|0){case 0:break B;case 2:break D;default:break C}}j=J[b+96>>2];e=J[J[j>>2]+32>>2];E:{if(!e){i=0;break E}i=gc[e|0](j,239993)|0;m=J[b+128>>2]}J[m+40>>2]=i?i:-2}e= -6;if(!i)break A;j=J[i>>2];if(!j)break B;e=gc[j|0](b,d,k,8)|0}}if(K[g+4|0]!=46|e)break w;a=(K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24))==1953459758&(K[g+8|0]|K[g+9|0]<<8|(K[g+10|0]<<16|K[g+11|0]<<24))==6710628}bc=g+16|0;if(!a)break o;J[b+8>>2]=J[b+8>>2]&-2}if(!(!(J[b+8>>2]&256)|c>>>0<65536)){f=t4(b,c>>>16|0);if(f)break a;s4(b);f=0}J[b+536>>2]=1716;J[b+532>>2]=1717;J[b+528>>2]=1718;J[b+520>>2]=1719;J[b+524>>2]=1720}return f|0}function Zpa(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,y=0,z=0,A=0,C=0;d=bc-80|0;bc=d;c=bc-32|0;bc=c;a:{e=J[b>>2];f=RG(e);b:{if((f&-4)!=1296912896){a=Kc(c+8|0,2375136,2382976,862,2424426,0);break b}J[d+44>>2]=f&1;A=d,C=nk(e),J[A+52>>2]=C;e=nk(e);J[d+48>>2]=e;if((e|0)>0&J[d+52>>2]>0)break a;a=Kc(c+8|0,2375762,2382976,868,2424426,0)}J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0)}B()}bc=c+32|0;i=(f&2)>>>1|0;c=rc(108);J[695492]=0;e=$(5314,c|0)|0;f=J[695492];J[695492]= -0;if((f|0)==1){a=Z()|0;qc(c);ba(a|0);B()}J[a>>2]=0;md(a,e);c=J[a>>2];J[695492]=0;g=J[d+52>>2];f=g;e=J[d+48>>2];J[c+76>>2]=e;J[c+72>>2]=f;c=J[695492];J[695492]=0;c:{d:{if((c|0)!=1){c=(f|0)/17|0;f=(e|0)/22|0;c=(c|0)>(f|0)?c:f;c=(c|0)<=64?64:c;n=(c|0)>=500?500:c;p=((n+g|0)-1|0)/(n|0)|0;c=0;e:{f:{f=J[b>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break f;c=J[b>>2]}J[695492]=0;J[d+36>>2]=c;la(5531,d+40|0,d+36|0,g|0,e|0,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break e; -J[d+36>>2]=0;g:{h:{i:{if(!c)break i;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)==1)break h;if(b)break i;J[695492]=0;_(4987,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break h}k=J[d+40>>2];j:{k:{l:{m:{n:{o:{if((e|0)>0){w=p-1|0;s=n-1|0;j=e-1|0;x=J[d+44>>2]!=0;y=d+4|0;while(1){J[695492]=0;t=ha(5198,d+12|0,2389396,0,w|0)|0;b=J[695492];J[695492]=0;p:{q:{r:{if((b|0)!=1){h=(j|0)>(s|0)?s:j;if((g|0)<=0)break r;while(1){J[695492]=0;q=aa(5532,k|0,0)|0;b=J[695492];J[695492]=0;if((b| -0)==1)break q;if(q){z=h+1|0;e=0;r=x;b=0;l=0;while(1){i=(b|0)>(p|0)?b:p;u=l;l=L[q>>1]+l|0;f=b;c=e;s:{if(!(r&1))while(1){e=c;b=f;if((i|0)==(b|0)){b=i;break s}f=b+1|0;c=e+n|0;c=(c|0)<(g|0)?c:g;if((l|0)>=(c|0))continue;break s}t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{while(1){if((f|0)==(i|0)){b=i;e=c;break s}b=J[d+28>>2];if((b|0)>(f|0))break z;e=J[d+32>>2];if((f|0)>(e|0))break z;m=c+n|0;m=(g|0)>(m|0)?m:g;D:{if(!J[J[d+16>>2]+(f-J[d+20>>2]<<2)>>2]){J[695492]=0;b=$(4,72)|0;e=J[695492];J[695492]=0;if((e|0)==1)break D; -J[695492]=0;e=ha(5381,b|0,z|0,m-c|0,0)|0;o=J[695492];J[695492]=0;if((o|0)==1)break C;J[695492]=0;J[d>>2]=0;aa(4985,d|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;if(J[d+32>>2]<(f|0)|J[d+28>>2]>(f|0))break y;J[695492]=0;aa(4993,J[d+16>>2]+(f-J[d+20>>2]<<2)|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break B;b=J[d>>2];J[d>>2]=0;E:{if(!b)break E;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;o=J[695492];J[695492]=0;if((o|0)==1)break c;if(e)break E;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b| -0)==1)break c}e=J[d+32>>2];b=J[d+28>>2]}if((e|0)<(f|0)|(b|0)>(f|0))break v;b=J[J[d+16>>2]+(f-J[d+20>>2]<<2)>>2];if(!J[b+20>>2]){J[695492]=0;_(5017,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break A}e=L[b+14>>1];F:{if(L[b+8>>1]<=h>>>0){b=L[b+12>>1];if(J[682142]<(b+e|0))break u;b=b+J[682141]|0;break F}b=L[b+12>>1]+(J[b+20>>2]+P(e,h)|0)|0}o=(l|0)<(m|0);v=o?l:m;e=(c|0)<(u|0)?u:c;if((v|0)>(e|0))wc(b+(e-c|0)|0,1,v-e|0);e=c;b=f;f=b+1|0;c=m;if(o)break s;continue}break}c=Z()|0;break m}c=Z()|0;qc(b);break m}c= -Z()|0;vc(d);break m}c=Z()|0;break m}J[695492]=0;b=ja(5018,d+56|0,2377625,2378391,619,2424596,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break x;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break g;c=Z()|0;Fc(b);break m}J[695492]=0;b=ja(5018,d+56|0,2377625,2378391,619,2424596,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break w;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break g;c=Z()|0;Fc(b);vc(d);break m}c=Z()|0;break m}c=Z()|0;vc(d);break m}J[695492]=0;b=ja(5018,d+56|0, -2377625,2378391,619,2424596,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break t;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break g;c=Z()|0;Fc(b);break m}J[695492]=0;b=ja(5018,d+56|0,2376510,2377118,577,2381799,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break t;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break g;c=Z()|0;Fc(b);break m}c=Z()|0;break m}q=q+2|0;r=r^1;if((g|0)>(l|0))continue;break}}j=j-1|0;b=(h|0)>0;h=h-1|0;if(b)continue;break}break p}c=Z()|0;break l}while(1){G:{J[695492]= -0;aa(5532,k|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break G;j=j-1|0;b=(h|0)>0;h=h-1|0;if(b)continue;break p}break}c=Z()|0;break m}c=Z()|0;break m}if((p|0)>0){c=j+1|0;f=0;while(1){J[d+4>>2]=0;H:{I:{if(!(J[d+32>>2]<(f|0)|J[d+28>>2]>(f|0))){J[695492]=0;aa(4993,y|0,J[d+16>>2]+(f-J[d+20>>2]<<2)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break o;b=J[d+4>>2];if(!b)break H;J[695492]=0;J[d>>2]=-1;_(5445,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break o;I[d+58>>1]=c;I[d+56>>1]=P(f,n);b=J[a>>2];J[695492]=0; -b=aa(5522,b|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[d+60>>2]=b;b=J[a>>2];J[695492]=0;aa(5526,b|0,d+56|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break I}c=Z()|0;break n}J[695492]=0;b=ja(5018,d+56|0,2377625,2378391,619,2424596,0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break g;c=Z()|0;Fc(b);break n}c=Z()|0;break n}b=J[d+4>>2];J[d+4>>2]=0;if(!b)break H;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;i=J[695492];J[695492]=0;if((i|0)==1)break j; -if(e)break H;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break j}f=f+1|0;if((p|0)!=(f|0))continue;break}}xd(t);if((j|0)>=0)continue;break}k=J[d+40>>2]}J[d+40>>2]=0;if(!k)break k;J[695492]=0;a=J[k+4>>2]-1|0;J[k+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break k;J[695492]=0;_(4987,k|0);a=J[695492];J[695492]=0;if((a|0)!=1)break k}break c}c=Z()|0}rv(d)}xd(t)}b=J[d+40>>2];J[d+40>>2]=0;if(!b)break d;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break d; -J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break c}bc=d+80|0;return}break c}ea(0)|0;yc()}B()}c=Z()|0;break d}c=Z()|0;vc(d+36|0);break d}c=Z()|0}b=J[a>>2];J[a>>2]=0;J:{K:{if(!b)break K;J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;e=J[695492];J[695492]=0;if((e|0)==1)break J;if(a)break K;J[695492]=0;_(4987,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break J}ba(c|0);B()}}ea(0)|0;yc();B()}function Wra(a,b){a=a|0;b=Q(b);var c=Q(0),d=0,e=Q(0),f=0,g=0,h=Q(0),i=0,j=0,k=0,l=0,m=0,n=0,o=0,p= -Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),w=Q(0),y=Q(0),z=Q(0),A=Q(0),B=Q(0),E=Q(0),F=Q(0),G=Q(0),H=Q(0),K=0,M=0,P=0,S=0,T=0,U=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0;m=bc+-64|0;bc=m;J[m+16>>2]=0;g=J[603856];J[m+36>>2]=J[603855];J[m+40>>2]=g;g=J[603858];J[m+44>>2]=J[603857];J[m+48>>2]=g;J[m+52>>2]=J[603859];g=J[603852];J[m+20>>2]=J[603851];J[m+24>>2]=g;g=J[603854];J[m+28>>2]=J[603853];J[m+32>>2]=g;X=ch(m+4|0,m+12|0,J[J[a+4>>2]+20>>2],4);g=J[a+4>>2];o=J[g+20>>2];if((o|0)>0){Y=J[a+508>>2];Z=J[g>>2]; -_=J[m+12>>2];while(1){a=i<<4;$=a+Y|0;aa=a+Z|0;n=0;h=Q(0);while(1){g=n<<3;a=J[g+2415444>>2];ba=(a|0)<=1?1:a;e=N[(m+16|0)+(n<<2)>>2];ca=J[g+2415440>>2];g=0;while(1){d=g+ca|0;k=d>>4<<2;a=J[k+aa>>2];a:{if(!a)break a;d=(d&15)<<2;f=J[a+d>>2];a=J[k+$>>2];b:{if(a){if(!f)break a;j=J[a+d>>2];if(!j)break b;a=L[f+20>>1];d=a<<16>>31;p=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+20>>1]));a=L[f+18>>1];d=a<<16>>31;q=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+18>>1]));a=L[f+16>>1];d=a<<16>>31;r=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+16>>1]));a=L[f+ -14>>1];d=a<<16>>31;s=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+14>>1]));a=L[f+12>>1];d=a<<16>>31;t=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+12>>1]));a=L[f+10>>1];d=a<<16>>31;u=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+10>>1]));a=L[f+8>>1];d=a<<16>>31;w=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+8>>1]));a=L[f+6>>1];d=a<<16>>31;y=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+6>>1]));a=L[f+4>>1];d=a<<16>>31;z=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+4>>1]));a=L[f+2>>1];d=a<<16>>31;A=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+2>>1]));a=L[f>>1];d=a<<16>>31;B=Q(Q(((a^d)-d&65535)>>> -0)-Q(I[j>>1]));if(n){K=L[f+30>>1];M=K<<16>>31;l=L[f+28>>1];P=l<<16>>31;k=L[f+26>>1];S=k<<16>>31;d=L[f+24>>1];T=d<<16>>31;a=L[f+22>>1];f=a<<16>>31;c=Q(Q(((M^K)-M&65535)>>>0)-Q(I[j+30>>1]));E=Q(Q(e*c)*c);c=Q(Q(((l^P)-P&65535)>>>0)-Q(I[j+28>>1]));F=Q(Q(e*c)*c);c=Q(Q(((k^S)-S&65535)>>>0)-Q(I[j+26>>1]));G=Q(Q(e*c)*c);c=Q(Q(((d^T)-T&65535)>>>0)-Q(I[j+24>>1]));H=Q(Q(e*c)*c);c=Q(Q(((a^f)-f&65535)>>>0)-Q(I[j+22>>1]));h=Q(E+Q(F+Q(G+Q(H+Q(Q(Q(e*c)*c)+Q(Q(Q(e*p)*p)+Q(Q(Q(e*q)*q)+Q(Q(Q(e*r)*r)+Q(Q(Q(e*s)*s)+Q(Q(Q(e* -t)*t)+Q(Q(Q(e*u)*u)+Q(Q(Q(e*w)*w)+Q(Q(Q(e*y)*y)+Q(Q(Q(e*z)*z)+Q(Q(Q(e*A)*A)+Q(Q(Q(e*B)*B)+h))))))))))))))));break a}e=Q(12.79224967956543);K=L[f+30>>1];M=K<<16>>31;l=L[f+28>>1];P=l<<16>>31;k=L[f+26>>1];S=k<<16>>31;d=L[f+24>>1];T=d<<16>>31;a=L[f+22>>1];f=a<<16>>31;c=Q(Q(((M^K)-M&65535)>>>0)-Q(I[j+30>>1]));E=Q(Q(c*Q(12.79224967956543))*c);c=Q(Q(((l^P)-P&65535)>>>0)-Q(I[j+28>>1]));F=Q(Q(c*Q(12.79224967956543))*c);c=Q(Q(((k^S)-S&65535)>>>0)-Q(I[j+26>>1]));G=Q(Q(c*Q(12.79224967956543))*c);c=Q(Q(((d^T)- -T&65535)>>>0)-Q(I[j+24>>1]));H=Q(Q(c*Q(12.79224967956543))*c);c=Q(Q(((a^f)-f&65535)>>>0)-Q(I[j+22>>1]));h=Q(E+Q(F+Q(G+Q(H+Q(Q(Q(c*Q(45.83462142944336))*c)+Q(Q(Q(p*Q(45.83462142944336))*p)+Q(Q(Q(q*Q(45.83462142944336))*q)+Q(Q(Q(r*Q(45.83462142944336))*r)+Q(Q(Q(s*Q(45.833438873291016))*s)+Q(Q(Q(t*Q(45.833438873291016))*t)+Q(Q(Q(u*Q(45.833438873291016))*u)+Q(Q(Q(w*Q(45.833438873291016))*w)+Q(Q(Q(y*Q(51.14690017700195))*y)+Q(Q(Q(z*Q(183.2958984375))*z)+Q(Q(Q(A*Q(183.289306640625))*A)+Q(Q(Q(B*Q(2627.989013671875))* -B)+h))))))))))))))));break a}if(!f)break a}p=Q(I[f+20>>1]);q=Q(I[f+18>>1]);r=Q(I[f+16>>1]);s=Q(I[f+14>>1]);t=Q(I[f+12>>1]);u=Q(I[f+10>>1]);w=Q(I[f+8>>1]);y=Q(I[f+6>>1]);z=Q(I[f+4>>1]);A=Q(I[f+2>>1]);B=Q(I[f>>1]);if(n){c=Q(I[f+30>>1]);E=Q(Q(e*c)*c);c=Q(I[f+28>>1]);F=Q(Q(e*c)*c);c=Q(I[f+26>>1]);G=Q(Q(e*c)*c);c=Q(I[f+24>>1]);H=Q(Q(e*c)*c);c=Q(I[f+22>>1]);h=Q(E+Q(F+Q(G+Q(H+Q(Q(Q(e*c)*c)+Q(Q(Q(e*p)*p)+Q(Q(Q(e*q)*q)+Q(Q(Q(e*r)*r)+Q(Q(Q(e*s)*s)+Q(Q(Q(e*t)*t)+Q(Q(Q(e*u)*u)+Q(Q(Q(e*w)*w)+Q(Q(Q(e*y)*y)+Q(Q(Q(e* -z)*z)+Q(Q(Q(e*A)*A)+Q(Q(Q(e*B)*B)+h))))))))))))))));break a}e=Q(12.79224967956543);c=Q(I[f+30>>1]);E=Q(Q(c*Q(12.79224967956543))*c);c=Q(I[f+28>>1]);F=Q(Q(c*Q(12.79224967956543))*c);c=Q(I[f+26>>1]);G=Q(Q(c*Q(12.79224967956543))*c);c=Q(I[f+24>>1]);H=Q(Q(c*Q(12.79224967956543))*c);c=Q(I[f+22>>1]);h=Q(E+Q(F+Q(G+Q(H+Q(Q(Q(c*Q(45.83462142944336))*c)+Q(Q(Q(p*Q(45.83462142944336))*p)+Q(Q(Q(q*Q(45.83462142944336))*q)+Q(Q(Q(r*Q(45.83462142944336))*r)+Q(Q(Q(s*Q(45.833438873291016))*s)+Q(Q(Q(t*Q(45.833438873291016))* -t)+Q(Q(Q(u*Q(45.833438873291016))*u)+Q(Q(Q(w*Q(45.833438873291016))*w)+Q(Q(Q(y*Q(51.14690017700195))*y)+Q(Q(Q(z*Q(183.2958984375))*z)+Q(Q(Q(A*Q(183.289306640625))*A)+Q(Q(Q(B*Q(2627.989013671875))*B)+h))))))))))))))))}g=g+1|0;if((ba|0)!=(g|0))continue;break}n=n+1|0;if((n|0)!=10)continue;break}N[(i<<2)+_>>2]=h*Q(9.765625E-4);i=i+1|0;if((o|0)!=(i|0))continue;break}}k=0;i=o-1|0;U=V(+(i|0)*(1-+b)+.5);c:{if(R(U)<2147483648){a=~~U;break c}a=-2147483648}d=(a|0)<(o|0)?(a|0)>0?a:0:i;if((d|0)>0){l=J[m+12>>2]; -while(1){a=l+(i<<2)|0;e=N[a>>2];g=l+(k<<2)|0;h=N[g>>2];if(e>2]=e;N[a>>2]=h;e=h;h=N[g>>2]}b=N[l+((i+k|0)/2<<2)>>2];d:{if(!(b>2]=b;e=N[a>>2]}e:{if(!(e>2]=h;b=h}a=k;if((i|0)>(a|0)){h=N[g>>2];g=i;while(1){if(b>2]=b;N[l+(g<<2)>>2]=h}while(1){h=N[l+(a<<2)>>2];if(h>2];if(e(d|0);i=g?a-1|0:i;k=g? -k:a;if((d|0)>(k|0))continue;break}}e=Q(0);f:{if((d|0)>=(o|0))break f;k=(d^-1)+o|0;l=J[m+12>>2];n=o-d&3;g:{if(!n){a=d;break g}i=0;g=d;while(1){e=Q(e+N[l+(g<<2)>>2]);a=g+1|0;g=a;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(k>>>0<3)break f;k=l+12|0;n=l+8|0;g=l+4|0;while(1){i=a<<2;e=Q(Q(Q(Q(e+N[i+l>>2])+N[g+i>>2])+N[i+n>>2])+N[i+k>>2]);a=a+4|0;if((o|0)!=(a|0))continue;break}}_c(X);b=Q(Q(266342400)/Q(e/Q(o-d|0)));a=(C(b),v(2));h=Q(0);h:{if((a|0)==1065353216)break h;i:{if(a-2139095040>>>0<=2164260863){g= -a<<1;if(!g){a=bc-16|0;N[a+12>>2]=-1;h=Q(N[a+12>>2]/Q(0));break h}if((a|0)==2139095040)break i;if(!(g>>>0<4278190080&(a|0)>=0)){b=Q(b-b);h=Q(b/b);break h}a=(C(Q(b*Q(8388608))),v(2))-192937984|0}d=a-1060306944|0;g=d>>>15&240;W=+(x(2,a-(d&-8388608)|0),D())*O[g+2600696>>3]+-1;U=W*W;b=Q((O[325120]*U+(O[325121]*W+O[325122]))*U+(+(d>>23)*O[325119]+O[g+2600704>>3]+W))}h=b}bc=m- -64|0;return Q(Q(+h*10/2.302585125))}function az(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;h=bc-16|0;bc=h;j=h+ -4|0;c=bc-32|0;bc=c;a:{b:{c:{d:{k=jS(c+20|0,a+496|0);e:{if(!J[k+8>>2]){if(H[a+587|0]>=0){d=J[a+580>>2];J[j>>2]=J[a+576>>2];J[j+4>>2]=d;J[j+8>>2]=J[a+584>>2];break e}d=J[a+580>>2];e=J[a+576>>2];J[695492]=0;ca(15,j|0,e|0,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break e;g=Z()|0;break b}J[695492]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2451300;J[c+12>>2]=0;J[c+16>>2]=0;d=J[695492];J[695492]=0;if((d|0)==1)break c;J[695492]=0;ca(6474,c|0,2439772,-1);d=J[695492];J[695492]=0;f:{g:{h:{if((d|0)==1)break h;f=O[a+48>> -3];J[695492]=0;f=f*36E3;i:{if(R(f)<2147483648){e=~~f;break i}e=-2147483648}da(6475,c|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;ca(6474,c|0,2439820,-1);d=J[695492];J[695492]=0;if((d|0)==1)break h;f=O[a+24>>3];J[695492]=0;f=f*36E3;j:{if(R(f)<2147483648){e=~~f;break j}e=-2147483648}da(6475,c|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;ca(6474,c|0,2439844,-1);d=J[695492];J[695492]=0;if((d|0)==1)break h;d=J[k+4>>2];if((k|0)!=(d|0))while(1){e=J[d+8>>2];if(e>>>0<3){J[695492]= -0;ca(6474,c|0,J[(e<<2)+2451044>>2],-1);e=J[695492];J[695492]=0;if((e|0)==1)break d}k:{g=J[d+16>>2];l=d+12|0;if((g|0)==(l|0))break k;while(1){f=O[g+16>>3];m=O[a+32>>3];n=O[g+8>>3];o=O[a+8>>3];J[695492]=0;ca(6474,c|0,2439996,-1);e=J[695492];J[695492]=0;i=(e|0)==1;f=(f-o)*36E3;l:{if(R(f)<2147483648){e=~~f;break l}e=-2147483648}m:{if(i)break m;J[695492]=0;f=(n-m)*36E3;n:{if(R(f)<2147483648){i=~~f;break n}i=-2147483648}da(6475,c|0,i|0);i=J[695492];J[695492]=0;if((i|0)==1)break m;J[695492]=0;ca(6474,c| -0,2440036,-1);i=J[695492];J[695492]=0;if((i|0)==1)break m;J[695492]=0;da(6475,c|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break m;J[695492]=0;ca(6474,c|0,2440060,-1);e=J[695492];J[695492]=0;if((e|0)==1)break m;g=J[g+4>>2];if((l|0)==(g|0))break k;continue}break}g=Z()|0;Aq(c);break b}e=J[d+8>>2];if(e>>>0<3){J[695492]=0;ca(6474,c|0,J[(e<<2)+2451056>>2],-1);e=J[695492];J[695492]=0;if((e|0)==1)break d}d=J[d+4>>2];if((k|0)!=(d|0))continue;break}J[695492]=0;ca(6474,c|0,2440228,-1);d=J[695492];J[695492]= -0;if((d|0)==1)break h;J[695492]=0;ca(6474,c|0,2440272,-1);d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;da(6209,j|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;J[c+16>>2]=0;J[c+12>>2]=J[c+4>>2];d=J[695492];J[695492]=0;if((d|0)!=1)break f;g=Z()|0;if(H[j+11|0]>=0)break g;qc(J[j>>2]);Aq(c);break b}g=Z()|0}Aq(c);break b}Aq(c)}o:{if(!J[k+8>>2])break o;g=J[k+4>>2];d=J[g>>2];e=J[J[k>>2]+4>>2];J[d+4>>2]=e;J[e>>2]=d;J[k+8>>2]=0;if((g|0)==(k|0))break o;while(1){e=g;g=J[e+4>>2];p:{if(!J[e+ -20>>2])break p;d=J[e+16>>2];j=J[d>>2];i=J[J[e+12>>2]+4>>2];J[j+4>>2]=i;J[i>>2]=j;J[e+20>>2]=0;i=e+12|0;if((i|0)==(d|0))break p;while(1){j=J[d+4>>2];qc(d);d=j;if((i|0)!=(d|0))continue;break}}qc(e);if((g|0)!=(k|0))continue;break}}bc=c+32|0;break a}g=Z()|0;Aq(c);break b}g=Z()|0}iS(k);ba(g|0);B()}c=K[h+15|0];q:{r:{if(!(c<<24>>24<0?J[h+8>>2]:c)){J[695492]=0;ca(6474,b|0,2446852,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2446952,-1);d=J[695492];J[695492]=0;c=2446996;if((d|0)!= -1)break r;break q}J[695492]=0;ca(6474,b|0,2447052,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2446952,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2447104,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2447148,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2447192,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2447240,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]= -0;ca(6474,b|0,2447376,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;da(6445,b|0,h+4|0);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2447424,-1);d=J[695492];J[695492]=0;c=2447476;if((d|0)==1)break q}J[695492]=0;ca(6474,b|0,c|0,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;c=2447532;s:{if(!K[a+600|0]){J[695492]=0;ca(6474,b|0,2447580,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2447636,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;c= -J[a+76>>2];J[695492]=0;J[h>>2]=c>>>16&255|(c<<16&16711680|c&65280);da(6477,b|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break s;c=2440060;if(J[a+112>>2]!=255){J[695492]=0;ca(6474,b|0,2447704,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;c=J[a+112>>2];J[695492]=0;f=+(c|0)/255*100;t:{if(R(f)<2147483648){c=~~f;break t}c=-2147483648}da(6475,b|0,c|0);d=J[695492];J[695492]=0;c=2447772;if((d|0)==1)break q}J[695492]=0;ca(6474,b|0,c|0,-1);d=J[695492];J[695492]=0;c=2447840;if((d|0)==1)break q}J[695492]=0; -ca(6474,b|0,c|0,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;u:{if(K[a+601|0]){J[695492]=0;ca(6474,b|0,2447900,-1);c=J[695492];J[695492]=0;a=2447532;break u}J[695492]=0;ca(6474,b|0,2447960,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;f=O[a+448>>3];J[695492]=0;f=f*36E3;v:{if(R(f)<2147483648){c=~~f;break v}c=-2147483648}da(6475,b|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2439844,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2447580,-1); -c=J[695492];J[695492]=0;if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,2447636,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;c=J[a+436>>2];J[695492]=0;J[h>>2]=c>>>16&255|(c<<16&16711680|c&65280);da(6477,b|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break s;c=2440060;if(J[a+440>>2]!=255){J[695492]=0;ca(6474,b|0,2447704,-1);c=J[695492];J[695492]=0;if((c|0)==1)break q;a=J[a+440>>2];J[695492]=0;f=+(a|0)/255*100;w:{if(R(f)<2147483648){a=~~f;break w}a=-2147483648}da(6475,b|0,a|0);a=J[695492];J[695492]=0; -c=2447772;if((a|0)==1)break q}J[695492]=0;ca(6474,b|0,c|0,-1);c=J[695492];J[695492]=0;a=2447840}if((c|0)==1)break q;J[695492]=0;ca(6474,b|0,a|0,-1);a=J[695492];J[695492]=0;if((a|0)==1)break q;J[695492]=0;ca(6474,b|0,2447928,-1);a=J[695492];J[695492]=0;if((a|0)==1)break q;if(H[h+15|0]<0)qc(J[h+4>>2]);bc=h+16|0;return}}a=Z()|0;if(H[h+15|0]<0)qc(J[h+4>>2]);ba(a|0);B()}function lsa(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;h=bc-32|0;bc=h;J[a>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(c>>> -0<=1){if(!b)break h;if((d|0)==10|c)break i}j:{k:{l:{m:{e=K[b|0]|K[b+1|0]<<8;e=(e<<8|e>>>8)&65535;if(e>>>0<=65278){if(!e)break m;if((e|0)!=61371|((d|0)!=8|c?c>>>0<=2:0))break i;if(K[b+2|0]!=191)break i;e=3;f=8;break j}if((e|0)==65279)break l;if((e|0)!=65534)break i;if(K[b+2|0]|K[b+3|0]|((d|0)!=2|c?c>>>0<=3:0))break k;e=4;f=2;break j}if((d&-3)!=1|c?c>>>0<=3:0)break i;e=4;i=K[b+2|0]|K[b+3|0]<<8;i=(i<<8|i>>>8)&65535;f=1;if((i|0)==65279)break j;if((i|0)!=65534)break i;f=3;break j}if(K[b+2|0]|K[b+3|0]| -((d|0)!=4|c?c>>>0<=3:0))break k;e=4;f=4;break j}e=2;f=7}d=f;if(!c)break h;b=0-e>>>0>=c>>>0?2778709:b+e|0;e=c+e|0;c=c>>>0>=e>>>0?e:0}if(!c)break h;f=b+c|0;e=b;n:{o:switch(d|0){case 9:if(b>>>0>=f>>>0)break n;while(1){c=H[e|0];if(!c)break n;g=((c|0)<0?2:1)+g|0;e=e+1|0;if((f|0)!=(e|0))continue;break}e=f;break n;case 8:if(b>>>0>=f>>>0)break n;while(1){if(!K[e|0])break n;e=e+1|0;g=g+1|0;if((g|0)!=(c|0))continue;break}g=c;e=f;break n;case 0:case 1:case 2:case 3:case 4:if(b>>>0>=f>>>0)break n;while(1){c= -J[e>>2];if(!c)break n;g=(c>>>0>127?6:1)+g|0;e=e+4|0;if(f>>>0>e>>>0)continue;break}break n;case 5:case 6:case 7:break o;default:break n}if(b>>>0>=f>>>0)break n;while(1){if(!L[e>>1])break n;g=g+3|0;e=e+2|0;if(f>>>0>e>>>0)continue;break}}J[h+28>>2]=0;J[695492]=0;i=ha(5043,h+20|0,h+28|0,g+1|0,1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;H[J[h+28>>2]]=0;if(g){g=J[h+28>>2];J[h+16>>2]=b;p:switch(d|0){case 0:if(b>>>0>=e>>>0)break f;while(1){b=J[b>>2];if(!b)break f;J[695492]=0;g=Rj(b,g);b=J[695492];J[695492]= -0;if((b|0)!=1){b=J[h+16>>2]+4|0;J[h+16>>2]=b;if(b>>>0>>0)continue;break f}break}e=Z()|0;_c(i);break b;case 1:while(1){b=J[h+16>>2];c=b+4|0;if(c>>>0>e>>>0)break f;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b)break f;J[695492]=0;J[h+16>>2]=c;g=Rj(b,g);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}e=Z()|0;_c(i);break b;case 2:while(1){b=J[h+16>>2];c=b+4|0;if(c>>>0>e>>>0)break f;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);if(!b)break f; -J[695492]=0;J[h+16>>2]=c;g=Rj(b,g);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}e=Z()|0;_c(i);break b;case 3:while(1){b=J[h+16>>2];c=b+4|0;if(c>>>0>e>>>0)break f;b=K[b+2|0]|(K[b+3|0]|(K[b|0]<<8|K[b+1|0]<<16))<<8;if(!b)break f;J[695492]=0;J[h+16>>2]=c;g=Rj(b,g);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}e=Z()|0;_c(i);break b;case 4:while(1){b=J[h+16>>2];c=b+4|0;if(c>>>0>e>>>0)break f;b=K[b+1|0]|(K[b|0]|(K[b+3|0]<<8|K[b+2|0]<<16))<<8;if(!b)break f;J[695492]=0;J[h+16>>2]=c;g=Rj(b,g);b= -J[695492];J[695492]=0;if((b|0)!=1)continue;break}e=Z()|0;_c(i);break b;case 5:while(1){f=b+2|0;if(f>>>0>e>>>0)break f;c=L[b>>1];q:{if((c- -8192&65535)>>>0<=63487){b=f;if(!c)break f;break q}if(c>>>0>56319)break f;b=b+4|0;if(e>>>0>>0)break f;c=(c<<10&1047552|L[f>>1]&1023)+4096|0}J[695492]=0;g=Rj(c,g);c=J[695492];J[695492]=0;if((c|0)!=1)continue;break}e=Z()|0;_c(i);break b;case 6:while(1){b=J[h+16>>2];c=b+2|0;if(e>>>0>>0)break f;f=K[b|0];r:{if((f+32&255)>>>0<=247){b=K[b+1|0]|f<<8;if(!b)break f; -break r}if(f>>>0>219)break f;c=b+4|0;if(e>>>0>>0)break f;b=((K[b+2|0]<<8|f<<18)&787200|(K[b+3|0]|K[b+1|0]<<10))+65536|0}J[695492]=0;J[h+16>>2]=c;g=Rj(b,g);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}e=Z()|0;_c(i);break b;case 7:while(1){b=J[h+16>>2];c=b+2|0;if(e>>>0>>0)break f;f=K[b+1|0];s:{if((f+32&255)>>>0<=247){b=K[b|0]|f<<8;if(!b)break f;break s}if(f>>>0>219)break f;c=b+4|0;if(e>>>0>>0)break f;b=((K[b+3|0]<<8|f<<18)&787200|(K[b+2|0]|K[b|0]<<10))+65536|0}J[695492]=0;J[h+16>>2]= -c;g=Rj(b,g);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}e=Z()|0;_c(i);break b;case 8:while(1){t:{J[695492]=0;b=Gq(h+16|0,e);c=J[695492];J[695492]=0;if((c|0)==1)break t;if(!b)break f;J[695492]=0;g=Rj(b,g);b=J[695492];J[695492]=0;if((b|0)!=1)continue}break}e=Z()|0;_c(i);break b;case 9:break p;default:break f}while(1){b=J[h+16>>2];if(b>>>0>=e>>>0)break f;J[h+16>>2]=b+1;b=K[b|0];if(!b)break f;J[695492]=0;g=Rj(b,g);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}e=Z()|0;_c(i);break b}_c(i)}J[695492]= -0;b=h+28|0;da(5493,b|0,1);c=J[695492];J[695492]=0;u:{if((c|0)!=1){J[695492]=0;b=aa(4993,a|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break u;b=J[b>>2];c=J[h+28>>2];J[h+28>>2]=0;v:{if(!c)break v;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break v;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}H[J[b+12>>2]]=0;J[b+8>>2]=0;c=J[J[b>>2]+64>>2];J[695492]=0;ia(c|0,b|0,0,0,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;e=Z()|0;break b}e= -Z()|0;break b}e=Z()|0;vc(h+28|0);break b}e=Z()|0;break b}b=J[h+28>>2];c=g-b|0;w:{if((b|0)!=(g|0)){J[695492]=0;b=h+12|0;da(5493,b|0,c|0);f=J[695492];J[695492]=0;x:{if((f|0)!=1){J[695492]=0;b=aa(4993,a|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break x;g=J[b>>2];b=J[h+12>>2];J[h+12>>2]=0;y:{if(!b)break y;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(f)break y;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}tc(J[g+12>>2],J[h+28>>2],c);break w}e= -Z()|0;_c(i);break b}e=Z()|0;vc(h+12|0);_c(i);break b}J[695492]=0;b=h+12|0;da(5493,b|0,1);f=J[695492];J[695492]=0;z:{if((f|0)!=1){J[695492]=0;b=aa(4993,a|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break z;g=J[b>>2];b=J[h+12>>2];J[h+12>>2]=0;A:{if(!b)break A;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(f)break A;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[g+8>>2]=0;break w}e=Z()|0;_c(i);break b}e=Z()|0;vc(h+12|0);_c(i);break b}H[c+ -J[g+12>>2]|0]=0;J[695492]=0;ca(5443,i|0,0,1);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[J[g>>2]+64>>2];J[695492]=0;c=b;b=J[h+16>>2];ia(c|0,g|0,b|0,e-b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;_c(i)}bc=h+32|0;return}e=Z()|0;_c(i);break b}e=Z()|0;_c(i)}vc(a);ba(e|0);B()}ea(0)|0;yc();B()}function $yb(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;h=bc-4112|0;bc=h;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((li(a,h+4108|0,4)|0)!=4)break j;k:{if(!(K[h+4108|0]!=77| -K[h+4109|0]!=73|K[h+4110|0]!=70))if(K[h+4111|0]==10)break k;hd(206079,0);break a}f=L9(0);if(!f)break j;k=h;e=4096;l:while(1){b=k;m:{n:while(1){c=J[a+8>>2];o:{if(c&7)break o;while(1){p:{d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break p;c=J[a+28>>2];J[a+28>>2]=c-1;q:{r:{s:{if((c|0)<=0){c=jd(a,1);break s}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0]}if((c|0)!=35){if((c|0)==92)break r;if((c|0)==-1)break o;H[b|0]=c;b=b+1|0;if((c|0)==10)break o;c=e>>>0>2;e=e-1|0;if(c)continue n;break o}while(1){c= -J[a+8>>2];if(c&7)break o;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break p;c=J[a+28>>2];J[a+28>>2]=c-1;t:{if((c|0)<=0){c=jd(a,1);break t}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0]}switch(c+1|0){case 0:break o;case 11:break q;default:continue}}}u:{if(J[a+28>>2]<=0){c=jd(a,0);break u}c=K[J[a+24>>2]]}if((c|0)!=10)break q;c=J[a+8>>2];if(c&7)break q;d=J[a+64>>2];if(!((d|0)<0|(d|0)>J[a+60>>2])){J[a+8>>2]=c|4;break q}c=J[a+28>>2];J[a+28>>2]=c-1;if((c|0)<=0){jd(a,1);break q}J[a+60>>2]= -J[a+60>>2]+1;J[a+24>>2]=J[a+24>>2]+1}c=J[a+8>>2];if(!(c&7))continue;break o}break}J[a+8>>2]=c|4}H[b|0]=0;b=Yf(h,10);if(!b)break m;H[b|0]=0;e=4096;b=k;if(!K[h|0])continue;e=Wx(h);if(!e)break m;if(Go(e))break h;c=Or(2631072,J[e+4>>2]);c=J[(c?c:2631056)>>2];zu(e);e=4096;v:switch(c|0){case 1:break v;case 0:break i;default:continue}d=zc(36);if(!d)continue;J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;e=d+16|0;b=e;J[b>>2]=0;J[b+4>>2]=0;c=d+8|0;J[c>>2]=0;J[c+4>>2]=0;i=d+24|0;J[i>>2]=0;J[i+4>>2]=-1;w:{l=Wx(h);if(!l)break w; -g=d+20|0;if(!Go(l)){j=d+28|0;m=d+12|0;n=d+4|0;while(1){b=d;x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{o=Or(2631104,J[l+4>>2]);switch(J[(o?o:2631056)>>2]){case 0:break y;case 1:break z;case 8:break A;case 7:break B;case 6:break C;case 5:break D;case 4:break E;case 3:break F;case 2:break G;default:break x}}b=c;break y}b=m;break y}b=e;break y}b=g;break y}b=i;break y}b=j;break y}b=kq(J[l+8>>2]);J[d+32>>2]=b;if(b)break x;e=4096;continue l}b=n}p=b,q=Zf(J[l+8>>2]),J[p>>2]=q}if(!Go(l))continue;break}}zu(l);if(!J[e>>2]| -!J[g>>2])break w;b=J[f+12>>2];c=J[f+4>>2];H:{if((c|0)>2]){e=c;break H}i=c+128|0;e=i<<2;I:{if(!b){b=zc(e);break I}b=Kh(b,e)}if(!b)break w;J[f+12>>2]=b;J[f+8>>2]=i;e=J[f+4>>2];if((i|0)<=(e|0))break H;g=c-e|0;j=g+127|0;b=0;c=e;g=g&3;if(g)while(1){J[J[f+12>>2]+(c<<2)>>2]=0;c=c+1|0;b=b+1|0;if((g|0)!=(b|0))continue;break}if(j>>>0>=3)while(1){b=c<<2;J[b+J[f+12>>2]>>2]=0;J[(b+J[f+12>>2]|0)+4>>2]=0;J[(b+J[f+12>>2]|0)+8>>2]=0;J[(b+J[f+12>>2]|0)+12>>2]=0;c=c+4|0;if((i|0)!=(c|0))continue;break}b=J[f+12>> -2]}J[(e<<2)+b>>2]=d;J[f+4>>2]=e+1;e=4096;continue l}b=J[d+32>>2];if(b)qc(b);qc(d);e=4096;b=k;if(!l)continue;break}zu(l);continue}break}a=J[f+12>>2];if(a){if(J[f+4>>2]>0){a=0;while(1){b=J[J[f+12>>2]+(a<<2)>>2];e=J[b+32>>2];if(e)qc(e);qc(b);a=a+1|0;if((a|0)>2])continue;break}a=J[f+12>>2]}qc(a)}qc(f)}m=0;break a}m=mE();if(!m){j=0;e=0;i=0;break b}if(J[f+4>>2]<=0)break g;n=0;while(1){e=a;g=J[J[f+12>>2]+(n<<2)>>2];j=J[g+32>>2];if(j){c=0;k=204930;i=bc-16|0;bc=i;d=zc(68);J:{if(!d){d=0;break J}J[d+ -52>>2]=0;J[d+56>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+60>>2]=0;J[d+64>>2]=-1;J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;e=K[204930];b=0;K:{if(!e)break K;while(1){b=k;L:{M:{N:{O:{P:{Q:{e=e<<24>>24;switch(e-97|0){case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:case 21:break L;case 0:break M;case 1:break N;case 22:break O;case 17:break P;default:break Q}}if((e|0)!=43)break L;c=c|3;break L}c= -c|1;break L}c=c|18;break L}c=c|8;break L}c=c|4}k=b+1|0;e=K[b+1|0];if(e)continue;break}J[d>>2]=c;b=((c&3)==3)<<1;if(c&1)break K;b=c>>>1&1}R:{e=zc(32);if(!e){if(!(K[d+4|0]&8))break R;b=J[d+12>>2];if(!b)break R;qc(b);J[d+12>>2]=0;break R}H[e+8|0]=0;J[e>>2]=-1;J[e+4>>2]=0;J[d+52>>2]=2627256;J[d+56>>2]=e;J[i>>2]=438;b=b|c<<8&1024;b=Ou(j,c&16?b|576:b,i);J[e>>2]=b;if((b|0)<0){if(!(K[d+4|0]&8))break R;b=J[d+12>>2];if(!b)break R;qc(b);J[d+12>>2]=0;break R}if(!J[d+12>>2]){b=zc(8208);J[d+12>>2]=b;S:{if(b){k= -J[d+4>>2]|8;e=8192;break S}b=d+32|0;J[d+12>>2]=b;k=J[d+4>>2];e=1}J[d+28>>2]=0;J[d+20>>2]=e;b=b+16|0;J[d+24>>2]=b;J[d+16>>2]=b;J[d+4>>2]=k|2;break J}fa(205922,198678,703,206445);B()}qc(d);d=0}bc=i+16|0;e=d}if(!e){j=0;e=0;i=0;break c}i=0;j=kO(e,-1);if(!j){j=0;break c}k=a;if((a|0)!=(e|0)){If(e);k=0}c=J[g+8>>2];if(!c){c=J[J[J[j+24>>2]>>2]+16>>2];J[g+8>>2]=c}d=J[g+12>>2];if(!d){d=J[J[J[j+24>>2]>>2]+16>>2];J[g+12>>2]=d}b=J[g+24>>2];if(!b){b=J[J[J[j+24>>2]>>2]+24>>2];J[g+24>>2]=b}e=J[g+28>>2];if((e|0)<0){e= -J[J[J[j+24>>2]>>2]+28>>2];J[g+28>>2]=e}J[h>>2]=J[g>>2];J[h+4>>2]=J[g+4>>2];J[h+8>>2]=J[g+16>>2];l=J[g+20>>2];J[h+28>>2]=e;J[h+24>>2]=b;J[h+20>>2]=d;J[h+16>>2]=c;J[h+12>>2]=l;if(Qr(m,J[m+16>>2],h)){e=k;break c}d=Io(0,0,J[g+8>>2],J[g+12>>2]);if(!d){e=k;break c}if(hk(j,0,0,0,J[g+8>>2],J[g+12>>2],d))break d;T:{if(!J[g+28>>2]){c=J[g+12>>2];b=J[g+8>>2];break T}c=J[g+12>>2];b=J[g+8>>2];if((c|0)<=0|(b|0)<=0)break T;i=-1<>2]-1;e=0;while(1){if((b|0)>0){l=J[d+28>>2];c=0;while(1){b=J[l+(e-J[d+8>>2]<< -2)>>2]+(c-J[d+4>>2]<<2)|0;J[b>>2]=i+J[b>>2];b=J[g+8>>2];c=c+1|0;if((b|0)>(c|0))continue;break}c=J[g+12>>2]}e=e+1|0;if((c|0)>(e|0))continue;break}}if(gk(m,J[m+16>>2]-1|0,0,0,b,c,d))break d;dg(d);yh(j);n=n+1|0;b=J[f+4>>2];if((n|0)<(b|0))continue;break}a=J[f+12>>2];if(!a)break e;if((b|0)<=0)break f;a=0;while(1){b=J[J[f+12>>2]+(a<<2)>>2];e=J[b+32>>2];if(e)qc(e);qc(b);a=a+1|0;if((a|0)>2])continue;break}a=J[f+12>>2];break f}ra();B()}a=J[f+12>>2];if(!a)break e}qc(a)}qc(f);break a}e=k;i=d}yh(m)}b= -J[f+12>>2];if(b){if(J[f+4>>2]>0){c=0;while(1){b=J[J[f+12>>2]+(c<<2)>>2];k=J[b+32>>2];if(k)qc(k);qc(b);c=c+1|0;if((c|0)>2])continue;break}b=J[f+12>>2]}qc(b)}qc(f);if(!(!e|(a|0)==(e|0)))If(e);if(j)yh(j);m=0;if(!i)break a;dg(i)}bc=h+4112|0;return m|0}function fR(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,r=0,s=0,t=0,u=0,v=Q(0),w=0;h=bc-304|0;bc=h;a:{b:{if(!J[a+4>>2]){Wy(a);if(!J[a+4>>2])break b}e=K[b|0];if(!e)break a;c:{d:{e:{f:{g:{while(1){h:{e=e&255;i:{if((e|0)==32|e- -9>>>0<5){while(1){e=b;b=b+1|0;d=K[e+1|0];if((d|0)==32|d-9>>>0<5)continue;break}lk(a,0,0);while(1){b=J[a+4>>2];j:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break j}b=nf(a)}if((b|0)==32|b-9>>>0<5)continue;break}b=J[a+4>>2];d=J[a+116>>2];if((d|0)>0)d=1;else d=(d|0)>=0;if(d){b=b-1|0;J[a+4>>2]=b}b=b-J[a+44>>2]|0;f=b;d=k+J[a+124>>2]|0;g=b>>31;b=l+J[a+120>>2]|0;k=g+(b>>>0>>0?d+1|0:d)|0;l=b+f|0;k=l>>>0>>0?k+1|0:k;break i}k:{l:{m:{if(K[b|0]==37){e=K[b+1|0];if((e|0)==42)break m;if((e|0)!=37)break l}lk(a, -0,0);n:{if(K[b|0]==37){while(1){e=J[a+4>>2];o:{if((e|0)!=J[a+104>>2]){J[a+4>>2]=e+1;e=K[e|0];break o}e=nf(a)}if((e|0)==32|e-9>>>0<5)continue;break}b=b+1|0;break n}e=J[a+4>>2];if((e|0)!=J[a+104>>2]){J[a+4>>2]=e+1;e=K[e|0];break n}e=nf(a)}if(K[b|0]!=(e|0)){b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;if(q|(e|0)>=0)break a;break b}e=J[a+4>>2]-J[a+44>>2]|0;f=e;d=k+J[a+124>>2]|0;g=e>>31;e=l+J[a+120>>2]|0;k=g+(e>>>0>>0?d+1|0:d)|0;l=e+f|0;k=l>>>0>>0?k+1|0:k;e=b;break i}j= -0;e=b+2|0;break k}if(!(K[b+2|0]!=36|e-48>>>0>=10)){e=K[b+1|0]-48|0;d=bc-16|0;J[d+12>>2]=c;e=e>>>0>1?((e<<2)+c|0)-4|0:c;J[d+8>>2]=e+4;j=J[e>>2];e=b+3|0;break k}j=J[c>>2];c=c+4|0;e=b+1|0}m=0;b=0;if(K[e|0]-48>>>0<10)while(1){b=(K[e|0]+P(b,10)|0)-48|0;d=K[e+1|0];e=e+1|0;if(d-48>>>0<10)continue;break}o=K[e|0];if((o|0)==109){n=0;m=(j|0)!=0;o=K[e+1|0];i=0;e=e+1|0}d=e;e=d+1|0;f=3;g=m;p:{q:switch(o-65|0){case 39:f=d+2|0;d=K[d+1|0]==104;e=d?f:e;f=d?-2:-1;break p;case 43:f=d+2|0;d=K[d+1|0]==108;e=d?f:e;f=d? -3:1;break p;case 51:case 57:f=1;break p;case 11:f=2;break p;case 41:break p;case 0:case 2:case 4:case 5:case 6:case 18:case 23:case 26:case 32:case 34:case 35:case 36:case 37:case 38:case 40:case 45:case 46:case 47:case 50:case 52:case 55:break q;default:break d}f=0;e=d}g=f;d=K[e|0];f=(d&47)==3;r=f?1:g;p=f?d|32:d;r:{if((p|0)==91)break r;s:{if((p|0)!=110){if((p|0)!=99)break s;b=(b|0)<=1?1:b;break r}eR(j,r,l,k);break i}lk(a,0,0);while(1){d=J[a+4>>2];t:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0]; -break t}d=nf(a)}if((d|0)==32|d-9>>>0<5)continue;break}d=J[a+4>>2];f=J[a+116>>2];if((f|0)>0)f=1;else f=(f|0)>=0;if(f){d=d-1|0;J[a+4>>2]=d}d=d-J[a+44>>2]|0;f=d;g=d>>31;d=k+J[a+124>>2]|0;o=l;l=l+J[a+120>>2]|0;k=(o>>>0>l>>>0?d+1|0:d)+g|0;d=l;l=f+l|0;k=d>>>0>l>>>0?k+1|0:k}t=b;s=b>>31;lk(a,b,s);d=J[a+4>>2];u:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;break u}if((nf(a)|0)<0)break e}d=J[a+116>>2];if((d|0)>0)d=1;else d=(d|0)>=0;if(d)J[a+4>>2]=J[a+4>>2]-1;d=16;v:{w:{x:{y:{z:switch(p-88|0){default:b=p-65|0;if(b>>> -0>6|!(1<>2]-J[a+44>>2]|0;if(J[a+120>>2]!=(0-b|0)|J[a+124>>2]!=(0-((b>>31)+((b|0)!=0)|0)|0))break x;break f;case 3:case 11:case 27:if((p|16)==115){wc(h+32|0,-1,257);H[h+32|0]=0;if((p|0)!=115)break w;H[h+65|0]=0;H[h+46|0]=0;I[h+42>>1]=0;I[h+44>>1]=0;break w}f=K[e+1|0];g=(f|0)==94;wc(h+32|0,g,257);H[h+32|0]=0;d=g?e+2|0:e+1|0;A:{B:{C:{e=K[(g?2:1)+e|0];if((e|0)!=45){if((e|0)==93)break C;f=(f|0)!=94;break A}f=(f|0)!=94;H[h+78|0]=f;break B}f= +f=i>>1;e=h+f|0;l=J[((K[m|0]<<2)+b|0)+44>>2]+J[b+20>>2]|0;w:{if(l>>>0<=M[b+28>>2]){J[b+20>>2]=l;j=H[m|0]&1;break w}j=qh(b,m,l)}if(j)break v;e=h+(f-i|0)|0;break v}f=i>>1;e=f+h|0;if(Wv(b,(P(J[b+20>>2],3)>>>3|0)+32768|0))break v;e=f+(h-i|0)|0}I[g>>1]=I[g>>1]>0?e:0-e|0}d=d+1|0;if((d|0)!=16)continue;break}}o=o+16|0;s=s+1|0;if((q|0)!=(s|0))continue;break}}C=C+1|0;c=J[a+4>>2];if((C|0)>2])continue;break}}a=pV(a)}else a=0;return a|0}function NDb(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;i=fc-128|0;fc=i;if(b)rd(198301,0);b=0;rd(199658,0);a:{b:{c:{if(My(a,i+108|0)|J[i+108>>2]!=19778)break c;if(on(a,i+112|0))break c;if(My(a,i+116|0))break c;if(My(a,i+120|0))break c;if(!on(a,i+124|0))break b}rd(200470,0);break a}d=Lba();if(d){d:{if(on(a,d)|J[d>>2]!=40)break d;if(on(a,d+4|0))break d;if(on(a,d+8|0))break d;if(My(a,d+16|0))break d;if(My(a,d+20|0))break d;if(on(a,d+24|0))break d;if(on(a,d+28|0))break d;if(on(a,d+32|0))break d;if(on(a,d+36|0))break d; +if(on(a,d+40|0))break d;if(on(a,d+44|0))break d;b=J[d+8>>2];if((b|0)<0){J[d+8>>2]=0-b;g=1;b=1}H[d+12|0]=g;if(!b|J[d+4>>2]<=0|(J[d+16>>2]<=0|J[d+20>>2]<=0))break d;b=J[d+40>>2];if((b|J[d+44>>2])<0)break d;if(J[d+24>>2]){rd(203606,0);break d}e:{f:{if(b){b=Dc(b<<4);J[d+48>>2]=b;if(!b)break d;b=J[d+40>>2];if((b|0)<=0)break f;while(1){g=J[d+48>>2];g:{b=J[a+8>>2];if(!(b&7)){e=J[a+64>>2];if((e|0)<0|(e|0)>J[a+60>>2])break g;J[a+8>>2]=b|4}f=(g+(c<<4)|0)+8|0;break e}e=c<<4;f=J[a+28>>2];J[a+28>>2]=f-1;h:{if((f| +0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+24>>2]=f+1;J[(e+g|0)+8>>2]=K[f|0];break h}b=td(a,1);J[(e+g|0)+8>>2]=b;if((b|0)==-1)break d;b=J[a+8>>2]}i:{if(!(b&7)){f=J[a+64>>2];if((f|0)<0|(f|0)>J[a+60>>2])break i;J[a+8>>2]=b|4}f=(g+(c<<4)|0)+4|0;break e}f=J[a+28>>2];J[a+28>>2]=f-1;j:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+24>>2]=f+1;J[(e+g|0)+4>>2]=K[f|0];break j}b=td(a,1);J[(e+g|0)+4>>2]=b;if((b|0)==-1)break d;b=J[a+8>>2]}f=e+g|0;if(b&7)break e;j=J[a+64>>2];if(!((j|0)<0|(j|0)>J[a+60>> +2])){J[a+8>>2]=b|4;break e}j=J[a+28>>2];J[a+28>>2]=j-1;k:{if((j|0)>0){J[a+60>>2]=J[a+60>>2]+1;j=J[a+24>>2];J[a+24>>2]=j+1;J[f>>2]=K[j|0];break k}b=td(a,1);J[f>>2]=b;if((b|0)==-1)break d;b=J[a+8>>2]}l:{if(!(b&7)){f=J[a+64>>2];if((f|0)<0|(f|0)>J[a+60>>2])break l;J[a+8>>2]=b|4}f=(g+(c<<4)|0)+12|0;break e}b=J[a+28>>2];J[a+28>>2]=b-1;m:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;J[(e+g|0)+12>>2]=K[b|0];break m}b=td(a,1);J[(e+g|0)+12>>2]=b;if((b|0)==-1)break d}b=J[d+40>>2];c=c+1|0; +if((b|0)>(c|0))continue;break}break f}b=0;J[d+48>>2]=0}n:{o:{if(J[i+116>>2]|J[i+108>>2]!=19778|(J[i+120>>2]|J[d+16>>2]!=1))break o;c=J[d+20>>2]-8|0;if((c|0)!=16?c:0)break o;if(!J[d+24>>2])break n}b=0;rd(201819,0);nv(d);break a}c=J[i+124>>2];b=(b<<2)+54|0;g=c-b|0;if((g|0)<0){b=0;rd(202359,0);break a}p:{if((b|0)==(c|0))break p;b=0;rd(203147,0);q:{while(1){c=0;if((g|0)<=0)break q;c=J[a+8>>2];if(!(c&7)){e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2])){J[a+8>>2]=c|4;c=-1;break q}c=J[a+28>>2];J[a+28>>2]=c- +1;g=g-1|0;r:{if((c|0)<=0){c=td(a,1);break r}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0]}if((c|0)!=-1)continue}break}c=-1}if(!c)break p;nv(d);break a}s:{t:{u:{c=Kba(d);v:{if(c){g=J[d+8>>2];e=J[d+4>>2];b=i;if((c|0)!=1){j=c&-2;f=0;while(1){J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=8;J[b+28>>2]=0;J[b+20>>2]=g;J[b+16>>2]=e;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=0;J[b+4>>2]=0;J[b+56>>2]=8;J[b+60>>2]=0;J[b+52>>2]=g;J[b+48>>2]=e;J[b+40>>2]=1;J[b+44>>2]=1;b=b- -64|0;f=f+2|0;if((j|0)!=(f|0))continue; +break}}if(c&1){J[b+24>>2]=8;J[b+28>>2]=0;J[b+20>>2]=g;J[b+16>>2]=e;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=0;J[b+4>>2]=0}b=Hs(c,i);if(!b)break v;if((c|0)!=3)break u;g=J[b+24>>2];J[J[g>>2]+40>>2]=0;J[J[g+4>>2]+40>>2]=1;f=2;g=g+8|0;c=1025;break t}b=Hs(c,i);if(b)break u}nv(d);break s}f=0;g=J[b+24>>2];c=769}J[J[g>>2]+40>>2]=f;J[b+28>>2]=c;k=fc-16|0;fc=k;g=d;c=J[d+20>>2]-8|0;if(!(!c|(c|0)==16)){fa(203997,204298,328,207860);B()}w:{if(!J[g+24>>2]){l=Kba(g);c=J[g+20>>2];d=c;x:{y:{if((l|0)>0){d=0;Ac(k+4|0,0,l<<2); +while(1){e=Dk(1,J[g+4>>2]);J[(k+4|0)+(d<<2)>>2]=e;if(!e)break y;d=d+1|0;if((l|0)!=(d|0))continue;break}d=J[g+20>>2]}if(J[g+8>>2]<=0)break x;s=-1<>2],l)|0)%4|0;j=4-n|0;o=J[k+12>>2];p=J[k+8>>2];q=J[k+4>>2];t=(c|0)!=8;u=(l|0)!=3;while(1){d=0;z:{A:{if(J[g+4>>2]>0)while(1){e=J[a+8>>2];c=e&7;B:{if(!t){if(c)break y;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break A;c=J[a+28>>2];J[a+28>>2]=c-1;h=-1;C:{if((c|0)<=0){c=td(a,1);break C}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c| +0]}if((c|0)==-1|(c|0)>(s|0))break x;if(J[g+40>>2]<=(c|0)){f=c;e=c;break B}e=J[g+48>>2]+(c<<4)|0;c=J[e+8>>2];f=J[e+4>>2];e=J[e>>2];break B}if(c)break y;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break A;c=J[a+28>>2];J[a+28>>2]=c-1;D:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break D}h=-1;c=td(a,1);if((c|0)==-1)break x;e=J[a+8>>2]}if(e&7)break y;f=J[a+64>>2];if((f|0)>=0&(f|0)<=J[a+60>>2])break A;f=J[a+28>>2];J[a+28>>2]=f-1;E:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+ +24>>2];J[a+24>>2]=f+1;f=K[f|0];break E}h=-1;f=td(a,1);if((f|0)==-1)break x;e=J[a+8>>2]}h=-1;if(e&7)break x;h=J[a+64>>2];if((h|0)>=0&(h|0)<=J[a+60>>2])break A;e=J[a+28>>2];J[a+28>>2]=e-1;if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;e=J[a+24>>2];J[a+24>>2]=e+1;e=K[e|0];break B}h=-1;e=td(a,1);if((e|0)==-1)break x}h=J[q+28>>2];r=J[q+20>>2];F:{if(!u){if((r|0)==1)h=J[h>>2]+(d<<2)|0;else h=J[h+(d<<2)>>2];J[h>>2]=e;e=J[p+28>>2];if(J[p+20>>2]==1)e=J[e>>2]+(d<<2)|0;else e=J[e+(d<<2)>>2];J[e>>2]=f;e=J[o+28>>2];if(J[o+ +20>>2]==1){J[J[e>>2]+(d<<2)>>2]=c;break F}J[J[e+(d<<2)>>2]>>2]=c;break F}if((r|0)==1){J[J[h>>2]+(d<<2)>>2]=e;break F}J[J[h+(d<<2)>>2]>>2]=e}d=d+1|0;if((d|0)>2])continue;break}d=j;if(!n)break z;while(1){e=J[a+8>>2];if(e&7)break y;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break A;c=J[a+28>>2];J[a+28>>2]=c-1;G:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;J[a+24>>2]=J[a+24>>2]+1;break G}h=-1;if((td(a,1)|0)==-1)break x}c=(d|0)>1;d=d-1|0;if(c)continue;break}break z}J[a+8>>2]=e|4;break y}if((l|0)>0){e=m^ +-1;d=0;while(1){if(Fk(b,d,0,K[g+12|0]?m:e+J[g+8>>2]|0,J[g+4>>2],1,J[(k+4|0)+(d<<2)>>2]))break y;d=d+1|0;if((l|0)!=(d|0))continue;break}}h=0;m=m+1|0;if((m|0)>2])continue;break}break x}h=-1}if((l|0)>0){a=0;while(1){c=J[(k+4|0)+(a<<2)>>2];if(c)mg(c);a=a+1|0;if((l|0)!=(a|0))continue;break}}fc=k+16|0;break w}fa(204695,204298,329,207860);B()}nv(g);if(!h)break a;Mh(b)}b=0;break a}J[f>>2]=-1}nv(d)}b=0;rd(201096,0)}fc=i+128|0;return b|0}function wjb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;j=go(J[J[b+96>>2]+4>>2],239709);if(!j)return 11;f=yd(a,0);a:{if(f)break a;f=kc[J[j+4>>2]](a,b,c,d,e)|0;if(f)break a;l=J[b+104>>2];f=2;a=J[b+148>>2];b:{if((a|0)<=65535){if((a|0)==-1519689116|(a|0)==-1519619212)break b;break a}if((a|0)==65536|(a|0)==1953658213)break b;if((a|0)!=131072)break a}J[b+8>>2]=J[b+8>>2]|2048;f=0;if((c|0)<0)break a;f=kc[J[j+8>>2]](l,b,c,d,e)|0;if(f)break a;p=fc-128|0;fc=p;c:{d:{if(!b)break d;a=J[b+20>>2];if(a){i=1;if(Je(a,327664))break c; +if(Je(a,327684))break c;if(Je(a,327704))break c;if(Je(a,327724))break c;if(Je(a,327744))break c;if(Je(a,327764))break c;if(Je(a,327784))break c;if(Je(a,327804))break c;if(Je(a,327824))break c;if(Je(a,327844))break c;if(Je(a,327864))break c;if(Je(a,327884))break c;if(Je(a,327904))break c;if(Je(a,327924))break c;if(Je(a,327944))break c;if(Je(a,327964))break c;if(Je(a,327984))break c;if(Je(a,328004))break c;if(Je(a,328024))break c;if(Je(a,328044))break c;if(Je(a,328064))break c;if(Je(a,328084))break c; +if(Je(a,328104))break c;if(Je(a,328124))break c;if(Je(a,328144))break c;if(Je(a,328164))break c}h=Ac(p,0,116);e:{f:{n=L[b+152>>1];if(!n)break f;d=0;while(1){i=0;e=1;f=0;k=g<<4;a=J[k+J[b+156>>2]>>2];g:{if((a|0)!=1668707360){h:{if((a|0)!=1886545264){if((a|0)!=1718642541)break g;f=1;break h}f=2}e=d}m=f<<3;f=0;while(1){d=J[b+156>>2]+k|0;a=P(i,24)+m|0;if(J[d+12>>2]==J[a+328196>>2]){j=a+328192|0;i:{if(f)break i;a=J[b+516>>2];if(!a){f=0;break i}f=0;if(kc[a|0](b,J[d>>2],J[b+104>>2],0)|0)break i;o=J[b+104>> +2];d=J[(J[b+156>>2]+k|0)+12>>2];if(af(o,d))break i;if(d>>>0>3)while(1){f=Fh(o)+f|0;d=d-4|0;if(d>>>0>3)continue;break}n=3;if(d)while(1){a=J[o+32>>2];if(a>>>0>2]){J[o+32>>2]=a+1;a=H[a|0]}else a=0;f=((a<<24>>24&255)<<(n<<3))+f|0;n=n-1|0;d=d-1|0;if(d)continue;break}ve(o)}a=h+(i<<2)|0;d=J[a>>2];if(J[j>>2]==(f|0)){d=d+1|0;J[a>>2]=d}if((d|0)==3)break e}i=i+1|0;if((i|0)!=29)continue;break}n=L[b+152>>1];d=e}g=g+1|0;if(g>>>0<(n&65535)>>>0)continue;break}if(!(d&255))break f;i=1;if(!(J[h>>2]!=3&J[h+4>> +2]!=3&J[h+8>>2]!=3&J[h+12>>2]!=3&J[h+16>>2]!=3&J[h+20>>2]!=3&J[h+24>>2]!=3&J[h+28>>2]!=3&J[h+32>>2]!=3&J[h+36>>2]!=3&J[h+40>>2]!=3&J[h+44>>2]!=3&J[h+48>>2]!=3&J[h+52>>2]!=3&J[h+56>>2]!=3&J[h+60>>2]!=3&J[h+64>>2]!=3&J[h+68>>2]!=3&J[h+72>>2]!=3&J[h+76>>2]!=3&J[h+80>>2]!=3&J[h+84>>2]!=3&J[h+88>>2]!=3&J[h+92>>2]!=3&J[h+96>>2]!=3&J[h+100>>2]!=3&J[h+104>>2]!=3&J[h+108>>2]!=3&J[h+112>>2]!=3))break c;break d}i=0;while(1){a=h+(i<<2)|0;f=J[a>>2];if(i-16>>>0<=11){f=f+1|0;J[a>>2]=f}if((f|0)==3)break e;a=i|1; +if((a|0)==29)break d;a=h+(a<<2)|0;f=J[a>>2];if(i-15>>>0<=11){f=f+1|0;J[a>>2]=f}if((f|0)==3)break e;i=i+2|0;continue}}i=1;break c}i=0}fc=p+128|0;if(i)J[b+8>>2]=J[b+8>>2]|8192;d=0;g=fc-16|0;fc=g;f=J[l+28>>2];j:{if(kc[J[b+516>>2]](b,1751412088,l,g+8|0)|0)break j;a=J[g+8>>2];if(a>>>0<8)break j;j=b+768|0;a=Oi(l,a,j);J[g+12>>2]=a;k:{if(a)break k;l:{m:{k=J[j>>2];e=K[k+2|0]<<8|K[k+3|0];if(e>>>0<=255){a=K[k+4|0]|K[k+5|0]<<8|(K[k+6|0]<<16|K[k+7|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);m=a>>>0>4294901759? +a&65535:a;a=J[g+8>>2];if(!e|m-65538>>>0>4294901761)break m}J[g+12>>2]=3;break l}q=b,r=_c(f,1,0,e,0,g+12|0),J[q+784>>2]=r;if(J[g+12>>2])break l;n:{if(!e)break n;f=k+8|0;j=a+k|0;while(1){a=f+m|0;if(a>>>0>j>>>0)break n;H[J[b+784>>2]+d|0]=K[f|0];f=a;d=d+1|0;if((e|0)!=(d|0))continue;break}d=e}J[b+776>>2]=d;a=J[g+8>>2];J[b+780>>2]=m;J[b+772>>2]=a;break k}$f(l,j);J[b+772>>2]=0}d=J[g+12>>2]}fc=g+16|0;f=d;if(d)break a;f=0;o:{if(!(H[b+8|0]&1))break o;if(!J[J[b+128>>2]+52>>2]){g=fc-16|0;fc=g;d=kc[J[b+516>>2]](b, +1735162214,l,b+724|0)|0;p:{q:{if((d&255)==142){J[b+724>>2]=0;a=0;break q}if(d)break p;a=0;if(J[J[b+128>>2]+52>>2])break q;a=J[l+8>>2]}J[b+728>>2]=a;d=144;if(kc[J[b+516>>2]](b,1819239265,l,g+12|0)|0)break p;f=J[g+12>>2];r:{if(L[b+210>>1]){e=2;if(f>>>0>=262144){J[g+12>>2]=262143;f=262143}break r}e=1;if(f>>>0>=131072){J[g+12>>2]=131071;f=131071}}d=f>>>e|0;J[b+760>>2]=d;a=J[b+16>>2];s:{if(a>>>0>>0)break s;a=a+1|0;if((a|0)==(d|0))break s;f=a<>2];k=J[l+8>>2];a=L[b+152>>1];t:{if(a){j=(a<< +4)+e|0;d=2147483647;i=0;while(1){m=J[e+8>>2]-k|0;a=(m|0)>0&(d|0)>(m|0);i=a?1:i;d=a?m:d;e=e+16|0;if(j>>>0>e>>>0)continue;break}if(i&255)break t}d=J[l+4>>2]-k|0}if(d>>>0>=f>>>0){J[b+760>>2]=J[b+16>>2]+1;J[g+12>>2]=f;break s}d=J[b+760>>2];a=d-1|0;J[b+16>>2]=a>>>0<=d>>>0?a:0;f=J[g+12>>2]}d=Oi(l,f,b+764|0)}fc=g+16|0;f=d;if(d)break a}f=v6(b,l);if((f&255)!=142?f:0)break a;d=fc-16|0;fc=d;u:{if(kc[J[b+516>>2]](b,1718642541,l,d+12|0)|0){J[b+684>>2]=0;J[b+688>>2]=0;f=0;break u}a=J[d+12>>2];J[b+684>>2]=a;f=Oi(l, +a,b+688|0)}fc=d+16|0;if((f&255)!=142?f:0)break a;d=fc-16|0;fc=d;v:{if(kc[J[b+516>>2]](b,1886545264,l,d+12|0)|0){J[b+692>>2]=0;J[b+696>>2]=0;f=0;break v}a=J[d+12>>2];J[b+692>>2]=a;f=Oi(l,a,b+696|0)}fc=d+16|0;if((f&255)!=142?f:0)break a;if(!J[b+764>>2]|(J[J[b+128>>2]+52>>2]|!J[b+28>>2]))break o;a=0;g=fc-16|0;fc=g;j=J[b+760>>2];w:{if(!j)break w;x:{y:{z:{while(1){KD(b,a,g+12|0);e=J[g+12>>2];if(e)break z;a=a+1|0;if((j|0)!=(a|0))continue;break}a=0;break y}d=a+1|0;if((j|0)==(d|0)){d=a;break x}while(1){KD(b, +d,g+12|0);if(J[g+12>>2]){a=0;break w}d=d+1|0;if((j|0)!=(d|0))continue;break}}d=a;if(e)break x;a=0;break w}if(!d){a=1;break w}a=0;e=35;A:{if(!b)break A;e=6;k=g+4|0;if(!k)break A;H[k|0]=0;e=16;B:{if(J[b+16>>2]<=(d|0))break B;e=6;if(!(K[b+9|0]&2))break A;C:{D:{m=J[b+128>>2];i=J[m+40>>2];switch(i+2|0){case 0:break B;case 2:break D;default:break C}}j=J[b+96>>2];e=J[J[j>>2]+32>>2];E:{if(!e){i=0;break E}i=kc[e|0](j,240009)|0;m=J[b+128>>2]}J[m+40>>2]=i?i:-2}e=6;if(!i)break A;j=J[i>>2];if(!j)break B;e=kc[j| +0](b,d,k,8)|0}}if(K[g+4|0]!=46|e)break w;a=(K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24))==1953459758&(K[g+8|0]|K[g+9|0]<<8|(K[g+10|0]<<16|K[g+11|0]<<24))==6710628}fc=g+16|0;if(!a)break o;J[b+8>>2]=J[b+8>>2]&-2}if(!(!(J[b+8>>2]&256)|c>>>0<65536)){f=u6(b,c>>>16|0);if(f)break a;t6(b);f=0}J[b+536>>2]=1717;J[b+532>>2]=1718;J[b+528>>2]=1719;J[b+520>>2]=1720;J[b+524>>2]=1721}return f|0}function msa(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,y=0,z=0,A=0,C=0;d=fc-80|0;fc=d;c=fc-32|0;fc=c;a:{e=J[b>>2];f=cI(e);b:{if((f&-4)!=1296912896){a=Qc(c+8|0,2387040,2394880,862,2436330,0);break b}J[d+44>>2]=f&1;A=d,C=Kk(e),J[A+52>>2]=C;e=Kk(e);J[d+48>>2]=e;if((e|0)>0&J[d+52>>2]>0)break a;a=Qc(c+8|0,2387666,2394880,868,2436330,0)}J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0)}B()}fc=c+32|0;i=(f&2)>>>1|0;c=vc(108);J[699344]=0;e=_(5484,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1){a=Z()|0;uc(c);ba(a|0);B()}J[a>> +2]=0;vd(a,e);c=J[a>>2];J[699344]=0;g=J[d+52>>2];f=g;e=J[d+48>>2];J[c+76>>2]=e;J[c+72>>2]=f;c=J[699344];J[699344]=0;c:{d:{if((c|0)!=1){c=(f|0)/17|0;f=(e|0)/22|0;c=(c|0)>(f|0)?c:f;c=(c|0)<=64?64:c;n=(c|0)>=500?500:c;p=((n+g|0)-1|0)/(n|0)|0;c=0;e:{f:{f=J[b>>2];if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break f;c=J[b>>2]}J[699344]=0;J[d+36>>2]=c;ma(5702,d+40|0,d+36|0,g|0,e|0,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[d+36>>2]=0;g:{h:{i:{if(!c)break i;J[699344]= +0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)==1)break h;if(b)break i;J[699344]=0;$(5147,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break h}k=J[d+40>>2];j:{k:{l:{m:{n:{o:{if((e|0)>0){w=p-1|0;s=n-1|0;j=e-1|0;x=J[d+44>>2]!=0;y=d+4|0;while(1){J[699344]=0;t=ha(5368,d+12|0,2401300,0,w|0)|0;b=J[699344];J[699344]=0;p:{q:{r:{if((b|0)!=1){h=(j|0)>(s|0)?s:j;if((g|0)<=0)break r;while(1){J[699344]=0;q=aa(5703,k|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q;if(q){z=h+1|0;e=0;r=x;b=0;l=0;while(1){i= +(b|0)>(p|0)?b:p;u=l;l=L[q>>1]+l|0;f=b;c=e;s:{if(!(r&1))while(1){e=c;b=f;if((i|0)==(b|0)){b=i;break s}f=b+1|0;c=e+n|0;c=(c|0)<(g|0)?c:g;if((l|0)>=(c|0))continue;break s}t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{while(1){if((f|0)==(i|0)){b=i;e=c;break s}b=J[d+28>>2];if((b|0)>(f|0))break z;e=J[d+32>>2];if((f|0)>(e|0))break z;m=c+n|0;m=(g|0)>(m|0)?m:g;D:{if(!J[J[d+16>>2]+(f-J[d+20>>2]<<2)>>2]){J[699344]=0;b=_(4,72)|0;e=J[699344];J[699344]=0;if((e|0)==1)break D;J[699344]=0;e=ha(5551,b|0,z|0,m-c|0,0)|0;o=J[699344]; +J[699344]=0;if((o|0)==1)break C;J[699344]=0;J[d>>2]=0;aa(5145,d|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break D;if(J[d+32>>2]<(f|0)|J[d+28>>2]>(f|0))break y;J[699344]=0;aa(5153,J[d+16>>2]+(f-J[d+20>>2]<<2)|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break B;b=J[d>>2];J[d>>2]=0;E:{if(!b)break E;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;o=J[699344];J[699344]=0;if((o|0)==1)break c;if(e)break E;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break c}e=J[d+32>>2];b=J[d+28>>2]}if((e|0)< +(f|0)|(b|0)>(f|0))break v;b=J[J[d+16>>2]+(f-J[d+20>>2]<<2)>>2];if(!J[b+20>>2]){J[699344]=0;$(5177,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break A}e=L[b+14>>1];F:{if(L[b+8>>1]<=h>>>0){b=L[b+12>>1];if(J[685890]<(b+e|0))break u;b=b+J[685889]|0;break F}b=L[b+12>>1]+(J[b+20>>2]+P(e,h)|0)|0}o=(l|0)<(m|0);v=o?l:m;e=(c|0)<(u|0)?u:c;if((v|0)>(e|0))Ac(b+(e-c|0)|0,1,v-e|0);e=c;b=f;f=b+1|0;c=m;if(o)break s;continue}break}c=Z()|0;break m}c=Z()|0;uc(b);break m}c=Z()|0;zc(d);break m}c=Z()|0;break m}J[699344]=0; +b=ja(5178,d+56|0,2389529,2390295,619,2436500,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break x;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break g;c=Z()|0;Kc(b);break m}J[699344]=0;b=ja(5178,d+56|0,2389529,2390295,619,2436500,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break w;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break g;c=Z()|0;Kc(b);zc(d);break m}c=Z()|0;break m}c=Z()|0;zc(d);break m}J[699344]=0;b=ja(5178,d+56|0,2389529,2390295,619,2436500,0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break t;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break g;c=Z()|0;Kc(b);break m}J[699344]=0;b=ja(5178,d+56|0,2388414,2389022,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break t;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break g;c=Z()|0;Kc(b);break m}c=Z()|0;break m}q=q+2|0;r=r^1;if((g|0)>(l|0))continue;break}}j=j-1|0;b=(h|0)>0;h=h-1|0;if(b)continue;break}break p}c=Z()|0;break l}while(1){G:{J[699344]=0;aa(5703,k|0,0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break G;j=j-1|0;b=(h|0)>0;h=h-1|0;if(b)continue;break p}break}c=Z()|0;break m}c=Z()|0;break m}if((p|0)>0){c=j+1|0;f=0;while(1){J[d+4>>2]=0;H:{I:{if(!(J[d+32>>2]<(f|0)|J[d+28>>2]>(f|0))){J[699344]=0;aa(5153,y|0,J[d+16>>2]+(f-J[d+20>>2]<<2)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break o;b=J[d+4>>2];if(!b)break H;J[699344]=0;J[d>>2]=-1;$(5616,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break o;I[d+58>>1]=c;I[d+56>>1]=P(f,n);b=J[a>>2];J[699344]=0;b=aa(5693,b|0,d|0)|0;e=J[699344];J[699344]= +0;if((e|0)!=1){J[d+60>>2]=b;b=J[a>>2];J[699344]=0;aa(5697,b|0,d+56|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break I}c=Z()|0;break n}J[699344]=0;b=ja(5178,d+56|0,2389529,2390295,619,2436500,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break g;c=Z()|0;Kc(b);break n}c=Z()|0;break n}b=J[d+4>>2];J[d+4>>2]=0;if(!b)break H;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;i=J[699344];J[699344]=0;if((i|0)==1)break j;if(e)break H;J[699344]=0;$(5147,b|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break j}f=f+1|0;if((p|0)!=(f|0))continue;break}}Hd(t);if((j|0)>=0)continue;break}k=J[d+40>>2]}J[d+40>>2]=0;if(!k)break k;J[699344]=0;a=J[k+4>>2]-1|0;J[k+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break k;J[699344]=0;$(5147,k|0);a=J[699344];J[699344]=0;if((a|0)!=1)break k}break c}c=Z()|0}fw(d)}Hd(t)}b=J[d+40>>2];J[d+40>>2]=0;if(!b)break d;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break d}break c}fc=d+80|0;return}break c}ea(0)|0;Bc()}B()}c=Z()|0;break d}c=Z()|0;zc(d+36|0);break d}c=Z()|0}b=J[a>>2];J[a>>2]=0;J:{K:{if(!b)break K;J[699344]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;e=J[699344];J[699344]=0;if((e|0)==1)break J;if(a)break K;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break J}ba(c|0);B()}}ea(0)|0;Bc();B()}function bua(a,b){a=a|0;b=Q(b);var c=Q(0),d=0,e=Q(0),f=0,g=0,h=Q(0),i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),w=Q(0), +y=Q(0),z=Q(0),A=Q(0),B=Q(0),E=Q(0),F=Q(0),G=Q(0),H=Q(0),K=0,M=0,P=0,S=0,T=0,U=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0;m=fc+-64|0;fc=m;J[m+16>>2]=0;g=J[606832];J[m+36>>2]=J[606831];J[m+40>>2]=g;g=J[606834];J[m+44>>2]=J[606833];J[m+48>>2]=g;J[m+52>>2]=J[606835];g=J[606828];J[m+20>>2]=J[606827];J[m+24>>2]=g;g=J[606830];J[m+28>>2]=J[606829];J[m+32>>2]=g;X=sh(m+4|0,m+12|0,J[J[a+4>>2]+20>>2],4);g=J[a+4>>2];o=J[g+20>>2];if((o|0)>0){Y=J[a+508>>2];Z=J[g>>2];_=J[m+12>>2];while(1){a=i<<4;$=a+Y|0;aa=a+Z|0;n= +0;h=Q(0);while(1){g=n<<3;a=J[g+2427348>>2];ba=(a|0)<=1?1:a;e=N[(m+16|0)+(n<<2)>>2];ca=J[g+2427344>>2];g=0;while(1){d=g+ca|0;k=d>>4<<2;a=J[k+aa>>2];a:{if(!a)break a;d=(d&15)<<2;f=J[a+d>>2];a=J[k+$>>2];b:{if(a){if(!f)break a;j=J[a+d>>2];if(!j)break b;a=L[f+20>>1];d=a<<16>>31;p=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+20>>1]));a=L[f+18>>1];d=a<<16>>31;q=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+18>>1]));a=L[f+16>>1];d=a<<16>>31;r=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+16>>1]));a=L[f+14>>1];d=a<<16>>31;s=Q(Q(((a^d)-d&65535)>>>0)- +Q(I[j+14>>1]));a=L[f+12>>1];d=a<<16>>31;t=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+12>>1]));a=L[f+10>>1];d=a<<16>>31;u=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+10>>1]));a=L[f+8>>1];d=a<<16>>31;w=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+8>>1]));a=L[f+6>>1];d=a<<16>>31;y=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+6>>1]));a=L[f+4>>1];d=a<<16>>31;z=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+4>>1]));a=L[f+2>>1];d=a<<16>>31;A=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j+2>>1]));a=L[f>>1];d=a<<16>>31;B=Q(Q(((a^d)-d&65535)>>>0)-Q(I[j>>1]));if(n){K=L[f+30>>1];M=K<<16>>31; +l=L[f+28>>1];P=l<<16>>31;k=L[f+26>>1];S=k<<16>>31;d=L[f+24>>1];T=d<<16>>31;a=L[f+22>>1];f=a<<16>>31;c=Q(Q(((M^K)-M&65535)>>>0)-Q(I[j+30>>1]));E=Q(Q(e*c)*c);c=Q(Q(((l^P)-P&65535)>>>0)-Q(I[j+28>>1]));F=Q(Q(e*c)*c);c=Q(Q(((k^S)-S&65535)>>>0)-Q(I[j+26>>1]));G=Q(Q(e*c)*c);c=Q(Q(((d^T)-T&65535)>>>0)-Q(I[j+24>>1]));H=Q(Q(e*c)*c);c=Q(Q(((a^f)-f&65535)>>>0)-Q(I[j+22>>1]));h=Q(E+Q(F+Q(G+Q(H+Q(Q(Q(e*c)*c)+Q(Q(Q(e*p)*p)+Q(Q(Q(e*q)*q)+Q(Q(Q(e*r)*r)+Q(Q(Q(e*s)*s)+Q(Q(Q(e*t)*t)+Q(Q(Q(e*u)*u)+Q(Q(Q(e*w)*w)+Q(Q(Q(e* +y)*y)+Q(Q(Q(e*z)*z)+Q(Q(Q(e*A)*A)+Q(Q(Q(e*B)*B)+h))))))))))))))));break a}e=Q(12.79224967956543);K=L[f+30>>1];M=K<<16>>31;l=L[f+28>>1];P=l<<16>>31;k=L[f+26>>1];S=k<<16>>31;d=L[f+24>>1];T=d<<16>>31;a=L[f+22>>1];f=a<<16>>31;c=Q(Q(((M^K)-M&65535)>>>0)-Q(I[j+30>>1]));E=Q(Q(c*Q(12.79224967956543))*c);c=Q(Q(((l^P)-P&65535)>>>0)-Q(I[j+28>>1]));F=Q(Q(c*Q(12.79224967956543))*c);c=Q(Q(((k^S)-S&65535)>>>0)-Q(I[j+26>>1]));G=Q(Q(c*Q(12.79224967956543))*c);c=Q(Q(((d^T)-T&65535)>>>0)-Q(I[j+24>>1]));H=Q(Q(c*Q(12.79224967956543))* +c);c=Q(Q(((a^f)-f&65535)>>>0)-Q(I[j+22>>1]));h=Q(E+Q(F+Q(G+Q(H+Q(Q(Q(c*Q(45.83462142944336))*c)+Q(Q(Q(p*Q(45.83462142944336))*p)+Q(Q(Q(q*Q(45.83462142944336))*q)+Q(Q(Q(r*Q(45.83462142944336))*r)+Q(Q(Q(s*Q(45.833438873291016))*s)+Q(Q(Q(t*Q(45.833438873291016))*t)+Q(Q(Q(u*Q(45.833438873291016))*u)+Q(Q(Q(w*Q(45.833438873291016))*w)+Q(Q(Q(y*Q(51.14690017700195))*y)+Q(Q(Q(z*Q(183.2958984375))*z)+Q(Q(Q(A*Q(183.289306640625))*A)+Q(Q(Q(B*Q(2627.989013671875))*B)+h))))))))))))))));break a}if(!f)break a}p= +Q(I[f+20>>1]);q=Q(I[f+18>>1]);r=Q(I[f+16>>1]);s=Q(I[f+14>>1]);t=Q(I[f+12>>1]);u=Q(I[f+10>>1]);w=Q(I[f+8>>1]);y=Q(I[f+6>>1]);z=Q(I[f+4>>1]);A=Q(I[f+2>>1]);B=Q(I[f>>1]);if(n){c=Q(I[f+30>>1]);E=Q(Q(e*c)*c);c=Q(I[f+28>>1]);F=Q(Q(e*c)*c);c=Q(I[f+26>>1]);G=Q(Q(e*c)*c);c=Q(I[f+24>>1]);H=Q(Q(e*c)*c);c=Q(I[f+22>>1]);h=Q(E+Q(F+Q(G+Q(H+Q(Q(Q(e*c)*c)+Q(Q(Q(e*p)*p)+Q(Q(Q(e*q)*q)+Q(Q(Q(e*r)*r)+Q(Q(Q(e*s)*s)+Q(Q(Q(e*t)*t)+Q(Q(Q(e*u)*u)+Q(Q(Q(e*w)*w)+Q(Q(Q(e*y)*y)+Q(Q(Q(e*z)*z)+Q(Q(Q(e*A)*A)+Q(Q(Q(e*B)*B)+h)))))))))))))))); +break a}e=Q(12.79224967956543);c=Q(I[f+30>>1]);E=Q(Q(c*Q(12.79224967956543))*c);c=Q(I[f+28>>1]);F=Q(Q(c*Q(12.79224967956543))*c);c=Q(I[f+26>>1]);G=Q(Q(c*Q(12.79224967956543))*c);c=Q(I[f+24>>1]);H=Q(Q(c*Q(12.79224967956543))*c);c=Q(I[f+22>>1]);h=Q(E+Q(F+Q(G+Q(H+Q(Q(Q(c*Q(45.83462142944336))*c)+Q(Q(Q(p*Q(45.83462142944336))*p)+Q(Q(Q(q*Q(45.83462142944336))*q)+Q(Q(Q(r*Q(45.83462142944336))*r)+Q(Q(Q(s*Q(45.833438873291016))*s)+Q(Q(Q(t*Q(45.833438873291016))*t)+Q(Q(Q(u*Q(45.833438873291016))*u)+Q(Q(Q(w* +Q(45.833438873291016))*w)+Q(Q(Q(y*Q(51.14690017700195))*y)+Q(Q(Q(z*Q(183.2958984375))*z)+Q(Q(Q(A*Q(183.289306640625))*A)+Q(Q(Q(B*Q(2627.989013671875))*B)+h))))))))))))))))}g=g+1|0;if((ba|0)!=(g|0))continue;break}n=n+1|0;if((n|0)!=10)continue;break}N[(i<<2)+_>>2]=h*Q(9.765625E-4);i=i+1|0;if((o|0)!=(i|0))continue;break}}k=0;i=o-1|0;U=V(+(i|0)*(1-+b)+.5);c:{if(R(U)<2147483648){a=~~U;break c}a=-2147483648}d=(a|0)<(o|0)?(a|0)>0?a:0:i;if((d|0)>0){l=J[m+12>>2];while(1){a=l+(i<<2)|0;e=N[a>>2];g=l+(k<<2)| +0;h=N[g>>2];if(e>2]=e;N[a>>2]=h;e=h;h=N[g>>2]}b=N[l+((i+k|0)/2<<2)>>2];d:{if(!(b>2]=b;e=N[a>>2]}e:{if(!(e>2]=h;b=h}a=k;if((i|0)>(a|0)){h=N[g>>2];g=i;while(1){if(b>2]=b;N[l+(g<<2)>>2]=h}while(1){h=N[l+(a<<2)>>2];if(h>2];if(e(d|0);i=g?a-1|0:i;k=g?k:a;if((d|0)>(k|0))continue;break}}e=Q(0); +f:{if((d|0)>=(o|0))break f;k=(d^-1)+o|0;l=J[m+12>>2];n=o-d&3;g:{if(!n){a=d;break g}i=0;g=d;while(1){e=Q(e+N[l+(g<<2)>>2]);a=g+1|0;g=a;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(k>>>0<3)break f;k=l+12|0;n=l+8|0;g=l+4|0;while(1){i=a<<2;e=Q(Q(Q(Q(e+N[i+l>>2])+N[g+i>>2])+N[i+n>>2])+N[i+k>>2]);a=a+4|0;if((o|0)!=(a|0))continue;break}}hd(X);b=Q(Q(266342400)/Q(e/Q(o-d|0)));a=(C(b),v(2));h=Q(0);h:{if((a|0)==1065353216)break h;i:{if(a-2139095040>>>0<=2164260863){g=a<<1;if(!g){a=fc-16|0;N[a+12>>2]=-1;h=Q(N[a+ +12>>2]/Q(0));break h}if((a|0)==2139095040)break i;if(!(g>>>0<4278190080&(a|0)>=0)){b=Q(b-b);h=Q(b/b);break h}a=(C(Q(b*Q(8388608))),v(2))-192937984|0}d=a-1060306944|0;g=d>>>15&240;W=+(x(2,a-(d&-8388608)|0),D())*O[g+2615512>>3]+-1;U=W*W;b=Q((O[326972]*U+(O[326973]*W+O[326974]))*U+(+(d>>23)*O[326971]+O[g+2615520>>3]+W))}h=b}fc=m- -64|0;return Q(Q(+h*10/2.302585125))}function rua(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;h=fc-32|0;fc=h;J[a>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(c>>>0<= +1){if(!b)break h;if((d|0)==10|c)break i}j:{k:{l:{m:{e=K[b|0]|K[b+1|0]<<8;e=(e<<8|e>>>8)&65535;if(e>>>0<=65278){if(!e)break m;if((e|0)!=61371|((d|0)!=8|c?c>>>0<=2:0))break i;if(K[b+2|0]!=191)break i;e=3;f=8;break j}if((e|0)==65279)break l;if((e|0)!=65534)break i;if(K[b+2|0]|K[b+3|0]|((d|0)!=2|c?c>>>0<=3:0))break k;e=4;f=2;break j}if((d&-3)!=1|c?c>>>0<=3:0)break i;e=4;i=K[b+2|0]|K[b+3|0]<<8;i=(i<<8|i>>>8)&65535;f=1;if((i|0)==65279)break j;if((i|0)!=65534)break i;f=3;break j}if(K[b+2|0]|K[b+3|0]|((d| +0)!=4|c?c>>>0<=3:0))break k;e=4;f=4;break j}e=2;f=7}d=f;if(!c)break h;b=0-e>>>0>=c>>>0?2794117:b+e|0;e=c+e|0;c=c>>>0>=e>>>0?e:0}if(!c)break h;f=b+c|0;e=b;n:{o:switch(d|0){case 9:if(b>>>0>=f>>>0)break n;while(1){c=H[e|0];if(!c)break n;g=((c|0)<0?2:1)+g|0;e=e+1|0;if((f|0)!=(e|0))continue;break}e=f;break n;case 8:if(b>>>0>=f>>>0)break n;while(1){if(!K[e|0])break n;e=e+1|0;g=g+1|0;if((g|0)!=(c|0))continue;break}g=c;e=f;break n;case 0:case 1:case 2:case 3:case 4:if(b>>>0>=f>>>0)break n;while(1){c=J[e>> +2];if(!c)break n;g=(c>>>0>127?6:1)+g|0;e=e+4|0;if(f>>>0>e>>>0)continue;break}break n;case 5:case 6:case 7:break o;default:break n}if(b>>>0>=f>>>0)break n;while(1){if(!L[e>>1])break n;g=g+3|0;e=e+2|0;if(f>>>0>e>>>0)continue;break}}J[h+28>>2]=0;J[699344]=0;i=ha(5213,h+20|0,h+28|0,g+1|0,1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;H[J[h+28>>2]]=0;if(g){g=J[h+28>>2];J[h+16>>2]=b;p:switch(d|0){case 0:if(b>>>0>=e>>>0)break f;while(1){b=J[b>>2];if(!b)break f;J[699344]=0;g=nk(b,g);b=J[699344];J[699344]= +0;if((b|0)!=1){b=J[h+16>>2]+4|0;J[h+16>>2]=b;if(b>>>0>>0)continue;break f}break}e=Z()|0;hd(i);break b;case 1:while(1){b=J[h+16>>2];c=b+4|0;if(c>>>0>e>>>0)break f;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b)break f;J[699344]=0;J[h+16>>2]=c;g=nk(b,g);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}e=Z()|0;hd(i);break b;case 2:while(1){b=J[h+16>>2];c=b+4|0;if(c>>>0>e>>>0)break f;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);if(!b)break f; +J[699344]=0;J[h+16>>2]=c;g=nk(b,g);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}e=Z()|0;hd(i);break b;case 3:while(1){b=J[h+16>>2];c=b+4|0;if(c>>>0>e>>>0)break f;b=K[b+2|0]|(K[b+3|0]|(K[b|0]<<8|K[b+1|0]<<16))<<8;if(!b)break f;J[699344]=0;J[h+16>>2]=c;g=nk(b,g);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}e=Z()|0;hd(i);break b;case 4:while(1){b=J[h+16>>2];c=b+4|0;if(c>>>0>e>>>0)break f;b=K[b+1|0]|(K[b|0]|(K[b+3|0]<<8|K[b+2|0]<<16))<<8;if(!b)break f;J[699344]=0;J[h+16>>2]=c;g=nk(b,g);b= +J[699344];J[699344]=0;if((b|0)!=1)continue;break}e=Z()|0;hd(i);break b;case 5:while(1){f=b+2|0;if(f>>>0>e>>>0)break f;c=L[b>>1];q:{if((c- -8192&65535)>>>0<=63487){b=f;if(!c)break f;break q}if(c>>>0>56319)break f;b=b+4|0;if(e>>>0>>0)break f;c=(c<<10&1047552|L[f>>1]&1023)+4096|0}J[699344]=0;g=nk(c,g);c=J[699344];J[699344]=0;if((c|0)!=1)continue;break}e=Z()|0;hd(i);break b;case 6:while(1){b=J[h+16>>2];c=b+2|0;if(e>>>0>>0)break f;f=K[b|0];r:{if((f+32&255)>>>0<=247){b=K[b+1|0]|f<<8;if(!b)break f; +break r}if(f>>>0>219)break f;c=b+4|0;if(e>>>0>>0)break f;b=((K[b+2|0]<<8|f<<18)&787200|(K[b+3|0]|K[b+1|0]<<10))+65536|0}J[699344]=0;J[h+16>>2]=c;g=nk(b,g);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}e=Z()|0;hd(i);break b;case 7:while(1){b=J[h+16>>2];c=b+2|0;if(e>>>0>>0)break f;f=K[b+1|0];s:{if((f+32&255)>>>0<=247){b=K[b|0]|f<<8;if(!b)break f;break s}if(f>>>0>219)break f;c=b+4|0;if(e>>>0>>0)break f;b=((K[b+3|0]<<8|f<<18)&787200|(K[b+2|0]|K[b|0]<<10))+65536|0}J[699344]=0;J[h+16>>2]= +c;g=nk(b,g);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}e=Z()|0;hd(i);break b;case 8:while(1){t:{J[699344]=0;b=ur(h+16|0,e);c=J[699344];J[699344]=0;if((c|0)==1)break t;if(!b)break f;J[699344]=0;g=nk(b,g);b=J[699344];J[699344]=0;if((b|0)!=1)continue}break}e=Z()|0;hd(i);break b;case 9:break p;default:break f}while(1){b=J[h+16>>2];if(b>>>0>=e>>>0)break f;J[h+16>>2]=b+1;b=K[b|0];if(!b)break f;J[699344]=0;g=nk(b,g);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}e=Z()|0;hd(i);break b}hd(i)}J[699344]= +0;b=h+28|0;da(5664,b|0,1);c=J[699344];J[699344]=0;u:{if((c|0)!=1){J[699344]=0;b=aa(5153,a|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break u;b=J[b>>2];c=J[h+28>>2];J[h+28>>2]=0;v:{if(!c)break v;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break v;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}H[J[b+12>>2]]=0;J[b+8>>2]=0;c=J[J[b>>2]+64>>2];J[699344]=0;ia(c|0,b|0,0,0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;e=Z()|0;break b}e= +Z()|0;break b}e=Z()|0;zc(h+28|0);break b}e=Z()|0;break b}b=J[h+28>>2];c=g-b|0;w:{if((b|0)!=(g|0)){J[699344]=0;b=h+12|0;da(5664,b|0,c|0);f=J[699344];J[699344]=0;x:{if((f|0)!=1){J[699344]=0;b=aa(5153,a|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break x;g=J[b>>2];b=J[h+12>>2];J[h+12>>2]=0;y:{if(!b)break y;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(f)break y;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}xc(J[g+12>>2],J[h+28>>2],c);break w}e= +Z()|0;hd(i);break b}e=Z()|0;zc(h+12|0);hd(i);break b}J[699344]=0;b=h+12|0;da(5664,b|0,1);f=J[699344];J[699344]=0;z:{if((f|0)!=1){J[699344]=0;b=aa(5153,a|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break z;g=J[b>>2];b=J[h+12>>2];J[h+12>>2]=0;A:{if(!b)break A;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(f)break A;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[g+8>>2]=0;break w}e=Z()|0;hd(i);break b}e=Z()|0;zc(h+12|0);hd(i);break b}H[c+ +J[g+12>>2]|0]=0;J[699344]=0;ca(5614,i|0,0,1);b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[J[g>>2]+64>>2];J[699344]=0;c=b;b=J[h+16>>2];ia(c|0,g|0,b|0,e-b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;hd(i)}fc=h+32|0;return}e=Z()|0;hd(i);break b}e=Z()|0;hd(i)}zc(a);ba(e|0);B()}ea(0)|0;Bc();B()}function TDb(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;h=fc-4112|0;fc=h;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((Ai(a,h+4108|0,4)|0)!=4)break j;k:{if(!(K[h+4108|0]!=77| +K[h+4109|0]!=73|K[h+4110|0]!=70))if(K[h+4111|0]==10)break k;rd(206095,0);break a}f=Nba(0);if(!f)break j;k=h;e=4096;l:while(1){b=k;m:{n:while(1){c=J[a+8>>2];o:{if(c&7)break o;while(1){p:{d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break p;c=J[a+28>>2];J[a+28>>2]=c-1;q:{r:{s:{if((c|0)<=0){c=td(a,1);break s}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0]}if((c|0)!=35){if((c|0)==92)break r;if((c|0)==-1)break o;H[b|0]=c;b=b+1|0;if((c|0)==10)break o;c=e>>>0>2;e=e-1|0;if(c)continue n;break o}while(1){c= +J[a+8>>2];if(c&7)break o;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break p;c=J[a+28>>2];J[a+28>>2]=c-1;t:{if((c|0)<=0){c=td(a,1);break t}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0]}switch(c+1|0){case 0:break o;case 11:break q;default:continue}}}u:{if(J[a+28>>2]<=0){c=td(a,0);break u}c=K[J[a+24>>2]]}if((c|0)!=10)break q;c=J[a+8>>2];if(c&7)break q;d=J[a+64>>2];if(!((d|0)<0|(d|0)>J[a+60>>2])){J[a+8>>2]=c|4;break q}c=J[a+28>>2];J[a+28>>2]=c-1;if((c|0)<=0){td(a,1);break q}J[a+60>>2]= +J[a+60>>2]+1;J[a+24>>2]=J[a+24>>2]+1}c=J[a+8>>2];if(!(c&7))continue;break o}break}J[a+8>>2]=c|4}H[b|0]=0;b=eg(h,10);if(!b)break m;H[b|0]=0;e=4096;b=k;if(!K[h|0])continue;e=Ny(h);if(!e)break m;if(wp(e))break h;c=Es(2646064,J[e+4>>2]);c=J[(c?c:2646048)>>2];ov(e);e=4096;v:switch(c|0){case 1:break v;case 0:break i;default:continue}d=Dc(36);if(!d)continue;J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;e=d+16|0;b=e;J[b>>2]=0;J[b+4>>2]=0;c=d+8|0;J[c>>2]=0;J[c+4>>2]=0;i=d+24|0;J[i>>2]=0;J[i+4>>2]=-1;w:{l=Ny(h);if(!l)break w; +g=d+20|0;if(!wp(l)){j=d+28|0;m=d+12|0;n=d+4|0;while(1){b=d;x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{o=Es(2646096,J[l+4>>2]);switch(J[(o?o:2646048)>>2]){case 0:break y;case 1:break z;case 8:break A;case 7:break B;case 6:break C;case 5:break D;case 4:break E;case 3:break F;case 2:break G;default:break x}}b=c;break y}b=m;break y}b=e;break y}b=g;break y}b=i;break y}b=j;break y}b=br(J[l+8>>2]);J[d+32>>2]=b;if(b)break x;e=4096;continue l}b=n}p=b,q=fg(J[l+8>>2]),J[p>>2]=q}if(!wp(l))continue;break}}ov(l);if(!J[e>>2]| +!J[g>>2])break w;b=J[f+12>>2];c=J[f+4>>2];H:{if((c|0)>2]){e=c;break H}i=c+128|0;e=i<<2;I:{if(!b){b=Dc(e);break I}b=Yh(b,e)}if(!b)break w;J[f+12>>2]=b;J[f+8>>2]=i;e=J[f+4>>2];if((i|0)<=(e|0))break H;g=c-e|0;j=g+127|0;b=0;c=e;g=g&3;if(g)while(1){J[J[f+12>>2]+(c<<2)>>2]=0;c=c+1|0;b=b+1|0;if((g|0)!=(b|0))continue;break}if(j>>>0>=3)while(1){b=c<<2;J[b+J[f+12>>2]>>2]=0;J[(b+J[f+12>>2]|0)+4>>2]=0;J[(b+J[f+12>>2]|0)+8>>2]=0;J[(b+J[f+12>>2]|0)+12>>2]=0;c=c+4|0;if((i|0)!=(c|0))continue;break}b=J[f+12>> +2]}J[(e<<2)+b>>2]=d;J[f+4>>2]=e+1;e=4096;continue l}b=J[d+32>>2];if(b)uc(b);uc(d);e=4096;b=k;if(!l)continue;break}ov(l);continue}break}a=J[f+12>>2];if(a){if(J[f+4>>2]>0){a=0;while(1){b=J[J[f+12>>2]+(a<<2)>>2];e=J[b+32>>2];if(e)uc(e);uc(b);a=a+1|0;if((a|0)>2])continue;break}a=J[f+12>>2]}uc(a)}uc(f)}m=0;break a}m=qF();if(!m){j=0;e=0;i=0;break b}if(J[f+4>>2]<=0)break g;n=0;while(1){e=a;g=J[J[f+12>>2]+(n<<2)>>2];j=J[g+32>>2];if(j){c=0;k=204946;i=fc-16|0;fc=i;d=Dc(68);J:{if(!d){d=0;break J}J[d+ +52>>2]=0;J[d+56>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d+60>>2]=0;J[d+64>>2]=-1;J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;e=K[204946];b=0;K:{if(!e)break K;while(1){b=k;L:{M:{N:{O:{P:{Q:{e=e<<24>>24;switch(e-97|0){case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:case 21:break L;case 0:break M;case 1:break N;case 22:break O;case 17:break P;default:break Q}}if((e|0)!=43)break L;c=c|3;break L}c= +c|1;break L}c=c|18;break L}c=c|8;break L}c=c|4}k=b+1|0;e=K[b+1|0];if(e)continue;break}J[d>>2]=c;b=((c&3)==3)<<1;if(c&1)break K;b=c>>>1&1}R:{e=Dc(32);if(!e){if(!(K[d+4|0]&8))break R;b=J[d+12>>2];if(!b)break R;uc(b);J[d+12>>2]=0;break R}H[e+8|0]=0;J[e>>2]=-1;J[e+4>>2]=0;J[d+52>>2]=2642248;J[d+56>>2]=e;J[i>>2]=438;b=b|c<<8&1024;b=Cv(j,c&16?b|576:b,i);J[e>>2]=b;if((b|0)<0){if(!(K[d+4|0]&8))break R;b=J[d+12>>2];if(!b)break R;uc(b);J[d+12>>2]=0;break R}if(!J[d+12>>2]){b=Dc(8208);J[d+12>>2]=b;S:{if(b){k= +J[d+4>>2]|8;e=8192;break S}b=d+32|0;J[d+12>>2]=b;k=J[d+4>>2];e=1}J[d+28>>2]=0;J[d+20>>2]=e;b=b+16|0;J[d+24>>2]=b;J[d+16>>2]=b;J[d+4>>2]=k|2;break J}fa(205938,198694,703,206461);B()}uc(d);d=0}fc=i+16|0;e=d}if(!e){j=0;e=0;i=0;break c}i=0;j=EP(e,-1);if(!j){j=0;break c}k=a;if((a|0)!=(e|0)){Pf(e);k=0}c=J[g+8>>2];if(!c){c=J[J[J[j+24>>2]>>2]+16>>2];J[g+8>>2]=c}d=J[g+12>>2];if(!d){d=J[J[J[j+24>>2]>>2]+16>>2];J[g+12>>2]=d}b=J[g+24>>2];if(!b){b=J[J[J[j+24>>2]>>2]+24>>2];J[g+24>>2]=b}e=J[g+28>>2];if((e|0)<0){e= +J[J[J[j+24>>2]>>2]+28>>2];J[g+28>>2]=e}J[h>>2]=J[g>>2];J[h+4>>2]=J[g+4>>2];J[h+8>>2]=J[g+16>>2];l=J[g+20>>2];J[h+28>>2]=e;J[h+24>>2]=b;J[h+20>>2]=d;J[h+16>>2]=c;J[h+12>>2]=l;if(Gs(m,J[m+16>>2],h)){e=k;break c}d=yp(0,0,J[g+8>>2],J[g+12>>2]);if(!d){e=k;break c}if(Gk(j,0,0,0,J[g+8>>2],J[g+12>>2],d))break d;T:{if(!J[g+28>>2]){c=J[g+12>>2];b=J[g+8>>2];break T}c=J[g+12>>2];b=J[g+8>>2];if((c|0)<=0|(b|0)<=0)break T;i=-1<>2]-1;e=0;while(1){if((b|0)>0){l=J[d+28>>2];c=0;while(1){b=J[l+(e-J[d+8>>2]<< +2)>>2]+(c-J[d+4>>2]<<2)|0;J[b>>2]=i+J[b>>2];b=J[g+8>>2];c=c+1|0;if((b|0)>(c|0))continue;break}c=J[g+12>>2]}e=e+1|0;if((c|0)>(e|0))continue;break}}if(Fk(m,J[m+16>>2]-1|0,0,0,b,c,d))break d;mg(d);Mh(j);n=n+1|0;b=J[f+4>>2];if((n|0)<(b|0))continue;break}a=J[f+12>>2];if(!a)break e;if((b|0)<=0)break f;a=0;while(1){b=J[J[f+12>>2]+(a<<2)>>2];e=J[b+32>>2];if(e)uc(e);uc(b);a=a+1|0;if((a|0)>2])continue;break}a=J[f+12>>2];break f}ra();B()}a=J[f+12>>2];if(!a)break e}uc(a)}uc(f);break a}e=k;i=d}Mh(m)}b= +J[f+12>>2];if(b){if(J[f+4>>2]>0){c=0;while(1){b=J[J[f+12>>2]+(c<<2)>>2];k=J[b+32>>2];if(k)uc(k);uc(b);c=c+1|0;if((c|0)>2])continue;break}b=J[f+12>>2]}uc(b)}uc(f);if(!(!e|(a|0)==(e|0)))Pf(e);if(j)Mh(j);m=0;if(!i)break a;mg(i)}fc=h+4112|0;return m|0}function KS(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,r=0,s=0,t=0,u=0,v=Q(0),w=0;h=fc-304|0;fc=h;a:{b:{if(!J[a+4>>2]){Oz(a);if(!J[a+4>>2])break b}e=K[b|0];if(!e)break a;c:{d:{e:{f:{g:{while(1){h:{e=e&255;i:{if((e|0)==32|e- +9>>>0<5){while(1){e=b;b=b+1|0;d=K[e+1|0];if((d|0)==32|d-9>>>0<5)continue;break}Jk(a,0,0);while(1){b=J[a+4>>2];j:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break j}b=uf(a)}if((b|0)==32|b-9>>>0<5)continue;break}b=J[a+4>>2];d=J[a+116>>2];if((d|0)>0)d=1;else d=(d|0)>=0;if(d){b=b-1|0;J[a+4>>2]=b}b=b-J[a+44>>2]|0;f=b;d=k+J[a+124>>2]|0;g=b>>31;b=l+J[a+120>>2]|0;k=g+(b>>>0>>0?d+1|0:d)|0;l=b+f|0;k=l>>>0>>0?k+1|0:k;break i}k:{l:{m:{if(K[b|0]==37){e=K[b+1|0];if((e|0)==42)break m;if((e|0)!=37)break l}Jk(a, +0,0);n:{if(K[b|0]==37){while(1){e=J[a+4>>2];o:{if((e|0)!=J[a+104>>2]){J[a+4>>2]=e+1;e=K[e|0];break o}e=uf(a)}if((e|0)==32|e-9>>>0<5)continue;break}b=b+1|0;break n}e=J[a+4>>2];if((e|0)!=J[a+104>>2]){J[a+4>>2]=e+1;e=K[e|0];break n}e=uf(a)}if(K[b|0]!=(e|0)){b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;if(q|(e|0)>=0)break a;break b}e=J[a+4>>2]-J[a+44>>2]|0;f=e;d=k+J[a+124>>2]|0;g=e>>31;e=l+J[a+120>>2]|0;k=g+(e>>>0>>0?d+1|0:d)|0;l=e+f|0;k=l>>>0>>0?k+1|0:k;e=b;break i}j= +0;e=b+2|0;break k}if(!(K[b+2|0]!=36|e-48>>>0>=10)){e=K[b+1|0]-48|0;d=fc-16|0;J[d+12>>2]=c;e=e>>>0>1?((e<<2)+c|0)-4|0:c;J[d+8>>2]=e+4;j=J[e>>2];e=b+3|0;break k}j=J[c>>2];c=c+4|0;e=b+1|0}m=0;b=0;if(K[e|0]-48>>>0<10)while(1){b=(K[e|0]+P(b,10)|0)-48|0;d=K[e+1|0];e=e+1|0;if(d-48>>>0<10)continue;break}o=K[e|0];if((o|0)==109){n=0;m=(j|0)!=0;o=K[e+1|0];i=0;e=e+1|0}d=e;e=d+1|0;f=3;g=m;p:{q:switch(o-65|0){case 39:f=d+2|0;d=K[d+1|0]==104;e=d?f:e;f=d?-2:-1;break p;case 43:f=d+2|0;d=K[d+1|0]==108;e=d?f:e;f=d? +3:1;break p;case 51:case 57:f=1;break p;case 11:f=2;break p;case 41:break p;case 0:case 2:case 4:case 5:case 6:case 18:case 23:case 26:case 32:case 34:case 35:case 36:case 37:case 38:case 40:case 45:case 46:case 47:case 50:case 52:case 55:break q;default:break d}f=0;e=d}g=f;d=K[e|0];f=(d&47)==3;r=f?1:g;p=f?d|32:d;r:{if((p|0)==91)break r;s:{if((p|0)!=110){if((p|0)!=99)break s;b=(b|0)<=1?1:b;break r}JS(j,r,l,k);break i}Jk(a,0,0);while(1){d=J[a+4>>2];t:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0]; +break t}d=uf(a)}if((d|0)==32|d-9>>>0<5)continue;break}d=J[a+4>>2];f=J[a+116>>2];if((f|0)>0)f=1;else f=(f|0)>=0;if(f){d=d-1|0;J[a+4>>2]=d}d=d-J[a+44>>2]|0;f=d;g=d>>31;d=k+J[a+124>>2]|0;o=l;l=l+J[a+120>>2]|0;k=(o>>>0>l>>>0?d+1|0:d)+g|0;d=l;l=f+l|0;k=d>>>0>l>>>0?k+1|0:k}t=b;s=b>>31;Jk(a,b,s);d=J[a+4>>2];u:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;break u}if((uf(a)|0)<0)break e}d=J[a+116>>2];if((d|0)>0)d=1;else d=(d|0)>=0;if(d)J[a+4>>2]=J[a+4>>2]-1;d=16;v:{w:{x:{y:{z:switch(p-88|0){default:b=p-65|0;if(b>>> +0>6|!(1<>2]-J[a+44>>2]|0;if(J[a+120>>2]!=(0-b|0)|J[a+124>>2]!=(0-((b>>31)+((b|0)!=0)|0)|0))break x;break f;case 3:case 11:case 27:if((p|16)==115){Ac(h+32|0,-1,257);H[h+32|0]=0;if((p|0)!=115)break w;H[h+65|0]=0;H[h+46|0]=0;I[h+42>>1]=0;I[h+44>>1]=0;break w}f=K[e+1|0];g=(f|0)==94;Ac(h+32|0,g,257);H[h+32|0]=0;d=g?e+2|0:e+1|0;A:{B:{C:{e=K[(g?2:1)+e|0];if((e|0)!=45){if((e|0)==93)break C;f=(f|0)!=94;break A}f=(f|0)!=94;H[h+78|0]=f;break B}f= (f|0)!=94;H[h+126|0]=f}d=d+1|0}e=d;while(1){d=K[e|0];D:{if((d|0)!=45){if(!d)break e;if((d|0)==93)break w;break D}d=45;g=K[e+1|0];if(!g|(g|0)==93)break D;o=e+1|0;e=K[e-1|0];E:{if(g>>>0<=e>>>0){d=g;break E}while(1){e=e+1|0;H[e+(h+32|0)|0]=f;d=K[o|0];if(e>>>0>>0)continue;break}}e=o}H[(d+h|0)+33|0]=f;e=e+1|0;continue}case 23:d=8;break y;case 12:case 29:d=10;break y;case 1:case 2:case 4:case 5:case 6:case 7:case 8:case 10:case 16:case 18:case 19:case 20:case 21:case 22:case 25:case 26:case 28:case 30:case 31:break v; -case 0:case 24:case 32:break y;case 17:break z}d=0}b=gR(a,d,0,-1,-1);d=fc;f=J[a+4>>2]-J[a+44>>2]|0;if(J[a+120>>2]==(0-f|0)&J[a+124>>2]==(0-((f>>31)+((f|0)!=0)|0)|0))break f;if(!(!j|(p|0)!=112)){J[j>>2]=b;break v}eR(j,r,b,d);break v}if(!j)break v;b=J[h+16>>2];f=J[h+20>>2];d=J[h+8>>2];m=J[h+12>>2];F:switch(r|0){case 0:u=j,v=$Q(d,m,b,f),N[u>>2]=v;break v;case 1:u=j,w=Gy(d,m,b,f),O[u>>3]=w;break v;case 2:break F;default:break v}J[j>>2]=d;J[j+4>>2]=m;J[j+8>>2]=b;J[j+12>>2]=f;break v}o=(p|0)!=99;f=o?31: -b+1|0;G:{if((r|0)==1){d=j;if(m){d=zc(f<<2);if(!d)break g}J[h+296>>2]=0;J[h+300>>2]=0;b=0;while(1){i=d;H:{while(1){d=J[a+4>>2];I:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0];break I}d=nf(a)}if(!K[(d+h|0)+33|0])break H;H[h+27|0]=d;d=ns(h+28|0,h+27|0,1,h+296|0);if((d|0)==-2)continue;if((d|0)==-1){n=0;break e}if(i){J[(b<<2)+i>>2]=J[h+28>>2];b=b+1|0}if(!m|(b|0)!=(f|0))continue;break}g=1;n=0;f=f<<1|1;d=Vd(i,f<<2);if(d)continue;break d}break}n=0;f=i;d=h+296|0;if(d)d=J[d>>2];else d=0;if(d)break e;break G}if(m){b= -0;d=zc(f);if(!d)break g;while(1){i=d;while(1){d=J[a+4>>2];J:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0];break J}d=nf(a)}if(!K[(d+h|0)+33|0]){f=0;n=i;break G}H[b+i|0]=d;b=b+1|0;if((f|0)!=(b|0))continue;break}g=1;f=f<<1|1;d=Vd(i,f);if(d)continue;break}n=i;i=0;break d}b=0;if(j)while(1){i=J[a+4>>2];K:{if((i|0)!=J[a+104>>2]){J[a+4>>2]=i+1;i=K[i|0];break K}i=nf(a)}if(K[(i+h|0)+33|0]){H[b+j|0]=i;b=b+1|0;continue}else{f=0;i=j;n=j;break G}}while(1){b=J[a+4>>2];L:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b= -K[b|0];break L}b=nf(a)}if(K[(b+h|0)+33|0])continue;break}i=0;n=0;f=0;b=0}d=J[a+4>>2];g=J[a+116>>2];if((g|0)>0)g=1;else g=(g|0)>=0;if(g){d=d-1|0;J[a+4>>2]=d}d=d-J[a+44>>2]|0;r=d;g=d+J[a+120>>2]|0;d=J[a+124>>2]+(d>>31)|0;d=g>>>0>>0?d+1|0:d;if(!(d|g)|!(o|(g|0)==(t|0)&(d|0)==(s|0)))break h;if(m)J[j>>2]=i;M:{if((p|0)==99)break M;if(f)J[(b<<2)+f>>2]=0;if(!n){n=0;break M}H[b+n|0]=0}i=f}b=J[a+4>>2]-J[a+44>>2]|0;f=b;d=k+J[a+124>>2]|0;g=b>>31;b=l+J[a+120>>2]|0;k=g+(b>>>0>>0?d+1|0:d)|0;l=b+f|0;k=l>>>0< -b>>>0?k+1|0:k;q=((j|0)!=0)+q|0}b=e+1|0;e=K[e+1|0];if(e)continue;break a}break}i=f;break f}g=1;n=0;i=0;break d}g=m;break c}g=m}q=q?q:-1}if(!g)break a;qc(n);qc(i);break a}q=-1}bc=h+304|0;return q}function $t(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,y=0,z=0,A=0,B=0;g=bc-48|0;bc=g;r=J[a+100>>2];f=J[a+104>>2];J[g+40>>2]=0;e=J[a+736>>2];a:{b:{if(!e){c=g+44|0;i=gc[J[a+516>>2]](a,1735811442,f,c)|0;J[g+40>>2]=i;if(i){c=gc[J[a+516>>2]](a,1128678962, -f,c)|0;J[g+40>>2]=c;if(c)break a}c=gc[J[a+516>>2]](a,1719034226,f,g+44|0)|0;J[g+40>>2]=c;if(c)break a;o=J[f+8>>2];c=Me(f,327568,g+24|0);J[g+40>>2]=c;if(c)break a;l=L[g+30>>1];j=L[g+36>>1];c=Zd(r,80,g+40|0);J[a+736>>2]=c;if(J[g+40>>2])break a;i=L[g+30>>1];J[c>>2]=i;x=(j|0)==((l<<2)+6|0);break b}i=J[e>>2];c=e}t=P(i,24);q=J[a+12>>2];p=q>>>16|0;u=P(p,12);v=(i<<1)+3&-4;y=P(i,p);w=y<<2;if(!e){e=c;c=((((P(i,5)+t|0)+v|0)+u|0)+w|0)+20|0;J[e+16>>2]=c;l=Zd(r,c,g+40|0);if(J[g+40>>2])break a;J[J[a+736>>2]+12>> +case 0:case 24:case 32:break y;case 17:break z}d=0}b=LS(a,d,0,-1,-1);d=jc;f=J[a+4>>2]-J[a+44>>2]|0;if(J[a+120>>2]==(0-f|0)&J[a+124>>2]==(0-((f>>31)+((f|0)!=0)|0)|0))break f;if(!(!j|(p|0)!=112)){J[j>>2]=b;break v}JS(j,r,b,d);break v}if(!j)break v;b=J[h+16>>2];f=J[h+20>>2];d=J[h+8>>2];m=J[h+12>>2];F:switch(r|0){case 0:u=j,v=ES(d,m,b,f),N[u>>2]=v;break v;case 1:u=j,w=yz(d,m,b,f),O[u>>3]=w;break v;case 2:break F;default:break v}J[j>>2]=d;J[j+4>>2]=m;J[j+8>>2]=b;J[j+12>>2]=f;break v}o=(p|0)!=99;f=o?31: +b+1|0;G:{if((r|0)==1){d=j;if(m){d=Dc(f<<2);if(!d)break g}J[h+296>>2]=0;J[h+300>>2]=0;b=0;while(1){i=d;H:{while(1){d=J[a+4>>2];I:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0];break I}d=uf(a)}if(!K[(d+h|0)+33|0])break H;H[h+27|0]=d;d=bt(h+28|0,h+27|0,1,h+296|0);if((d|0)==-2)continue;if((d|0)==-1){n=0;break e}if(i){J[(b<<2)+i>>2]=J[h+28>>2];b=b+1|0}if(!m|(b|0)!=(f|0))continue;break}g=1;n=0;f=f<<1|1;d=fe(i,f<<2);if(d)continue;break d}break}n=0;f=i;d=h+296|0;if(d)d=J[d>>2];else d=0;if(d)break e;break G}if(m){b= +0;d=Dc(f);if(!d)break g;while(1){i=d;while(1){d=J[a+4>>2];J:{if((d|0)!=J[a+104>>2]){J[a+4>>2]=d+1;d=K[d|0];break J}d=uf(a)}if(!K[(d+h|0)+33|0]){f=0;n=i;break G}H[b+i|0]=d;b=b+1|0;if((f|0)!=(b|0))continue;break}g=1;f=f<<1|1;d=fe(i,f);if(d)continue;break}n=i;i=0;break d}b=0;if(j)while(1){i=J[a+4>>2];K:{if((i|0)!=J[a+104>>2]){J[a+4>>2]=i+1;i=K[i|0];break K}i=uf(a)}if(K[(i+h|0)+33|0]){H[b+j|0]=i;b=b+1|0;continue}else{f=0;i=j;n=j;break G}}while(1){b=J[a+4>>2];L:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b= +K[b|0];break L}b=uf(a)}if(K[(b+h|0)+33|0])continue;break}i=0;n=0;f=0;b=0}d=J[a+4>>2];g=J[a+116>>2];if((g|0)>0)g=1;else g=(g|0)>=0;if(g){d=d-1|0;J[a+4>>2]=d}d=d-J[a+44>>2]|0;r=d;g=d+J[a+120>>2]|0;d=J[a+124>>2]+(d>>31)|0;d=g>>>0>>0?d+1|0:d;if(!(d|g)|!(o|(g|0)==(t|0)&(d|0)==(s|0)))break h;if(m)J[j>>2]=i;M:{if((p|0)==99)break M;if(f)J[(b<<2)+f>>2]=0;if(!n){n=0;break M}H[b+n|0]=0}i=f}b=J[a+4>>2]-J[a+44>>2]|0;f=b;d=k+J[a+124>>2]|0;g=b>>31;b=l+J[a+120>>2]|0;k=g+(b>>>0>>0?d+1|0:d)|0;l=b+f|0;k=l>>>0< +b>>>0?k+1|0:k;q=((j|0)!=0)+q|0}b=e+1|0;e=K[e+1|0];if(e)continue;break a}break}i=f;break f}g=1;n=0;i=0;break d}g=m;break c}g=m}q=q?q:-1}if(!g)break a;uc(n);uc(i);break a}q=-1}fc=h+304|0;return q}function Qu(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,y=0,z=0,A=0,B=0;g=fc-48|0;fc=g;r=J[a+100>>2];f=J[a+104>>2];J[g+40>>2]=0;e=J[a+736>>2];a:{b:{if(!e){c=g+44|0;i=kc[J[a+516>>2]](a,1735811442,f,c)|0;J[g+40>>2]=i;if(i){c=kc[J[a+516>>2]](a,1128678962, +f,c)|0;J[g+40>>2]=c;if(c)break a}c=kc[J[a+516>>2]](a,1719034226,f,g+44|0)|0;J[g+40>>2]=c;if(c)break a;o=J[f+8>>2];c=Te(f,327584,g+24|0);J[g+40>>2]=c;if(c)break a;l=L[g+30>>1];j=L[g+36>>1];c=he(r,80,g+40|0);J[a+736>>2]=c;if(J[g+40>>2])break a;i=L[g+30>>1];J[c>>2]=i;x=(j|0)==((l<<2)+6|0);break b}i=J[e>>2];c=e}t=P(i,24);q=J[a+12>>2];p=q>>>16|0;u=P(p,12);v=(i<<1)+3&-4;y=P(i,p);w=y<<2;if(!e){e=c;c=((((P(i,5)+t|0)+v|0)+u|0)+w|0)+20|0;J[e+16>>2]=c;l=he(r,c,g+40|0);if(J[g+40>>2])break a;J[J[a+736>>2]+12>> 2]=l;s=l+20|0;j=s+v|0;J[l+12>>2]=j;J[l+8>>2]=p;J[l+4>>2]=-1;J[l>>2]=i;n=j+t|0;J[l+16>>2]=n;e=n+u|0;c:{if(q>>>0<65536)break c;m=p>>>0<=1?1:p;z=m&3;c=e;if(q>>>0>=262144){q=m&65532;while(1){J[P(d,12)+n>>2]=c;m=c;c=i<<2;m=m+c|0;J[P(d|1,12)+n>>2]=m;m=c+m|0;J[P(d|2,12)+n>>2]=m;m=c+m|0;J[P(d|3,12)+n>>2]=m;c=c+m|0;d=d+4|0;k=k+4|0;if((q|0)!=(k|0))continue;break}}if(!z)break c;k=i<<2;while(1){J[P(d,12)+n>>2]=c;d=d+1|0;c=c+k|0;h=h+1|0;if((z|0)!=(h|0))continue;break}}d:{if(!i)break d;n=i&7;d=e+w|0;k=0;e:{if(i- -1>>>0<7){c=0;break e}e=i&-8;c=0;h=0;while(1){J[P(c,24)+j>>2]=d;J[P(c|1,24)+j>>2]=d+5;J[P(c|2,24)+j>>2]=d+10;J[P(c|3,24)+j>>2]=d+15;J[P(c|4,24)+j>>2]=d+20;J[P(c|5,24)+j>>2]=d+25;J[P(c|6,24)+j>>2]=d+30;J[P(c|7,24)+j>>2]=d+35;c=c+8|0;d=d+40|0;h=h+8|0;if((e|0)!=(h|0))continue;break}}if(!n)break d;while(1){J[P(c,24)+j>>2]=d;c=c+1|0;d=d+5|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}c=nd(f,L[g+28>>1]+o|0);J[g+40>>2]=c;if(c)break a;if(i){d=J[l+12>>2];e=0;while(1){c=Me(f,327616,g+4|0);J[g+40>>2]=c;if(c)break a; -c=J[g+4>>2];J[d+16>>2]=c;J[d+4>>2]=J[g+8>>2];J[d+8>>2]=J[g+12>>2];J[d+12>>2]=J[g+16>>2];J[d+20>>2]=L[g+22>>1];H[J[d>>2]]=c>>>24;H[J[d>>2]+1|0]=L[d+18>>1];H[J[d>>2]+2|0]=J[d+16>>2]>>>8;H[J[d>>2]+3|0]=J[d+16>>2];H[J[d>>2]+4|0]=0;I[s>>1]=L[g+20>>1];c=J[d+8>>2];if(!((c|0)>=J[d+4>>2]&(c|0)<=J[d+12>>2])){J[d+12>>2]=c;J[d+4>>2]=c}s=s+2|0;d=d+24|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}d=0;c=Sc(r,4,0,y,0,g+40|0);e=J[a+736>>2];J[e+20>>2]=c;if(J[g+40>>2])break a;f:{if(!L[g+34>>1])break f;if(!K[e+24|0]){c= -J[f+8>>2];m4(a);c=nd(f,c);J[g+40>>2]=c;if(c)break a;if(!L[g+34>>1])break f}j=i<<2;o=j+(x?6:4)|0;e=J[l+16>>2];k=J[J[a+736>>2]+20>>2];h=0;while(1){c=Ue(f,o);J[g+40>>2]=c;if(c)break a;A=e,B=mf(f),J[A+4>>2]=B;mf(f);if(i){d=J[e>>2];c=0;while(1){A=d,B=qh(f),J[A>>2]=B;d=d+4|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if(x)c=mf(f);else c=65535;J[e+8>>2]=c;l4(J[a+736>>2],i,J[e>>2],k);ne(f);e=e+12|0;k=j+k|0;d=L[g+34>>1];h=h+1|0;if(d>>>0>h>>>0)continue;break}}g:{if((d|0)==(p|0))break g;c=17;d=g+4|0;e=J[a+540>> -2];if(!(gc[J[e+148>>2]](a,17,d,g)|0)){c=2;if(!(gc[J[e+148>>2]](a,2,d,g)|0))break g}if(!(gc[J[e+148>>2]](a,6,g+4|0,g)|0))break g;e=J[l+16>>2]+P(L[g+34>>1],12)|0;J[e+8>>2]=6;J[e+4>>2]=c;if(!i)break g;d=J[e>>2];c=J[l+12>>2];if(i-1>>>0>=7){f=i&-8;e=0;while(1){J[d>>2]=J[c+8>>2];J[d+4>>2]=J[c+32>>2];J[d+8>>2]=J[c+56>>2];J[d+12>>2]=J[c+80>>2];J[d+16>>2]=J[c+104>>2];J[d+20>>2]=J[c+128>>2];J[d+24>>2]=J[c+152>>2];J[d+28>>2]=J[c+176>>2];d=d+32|0;c=c+192|0;e=e+8|0;if((f|0)!=(e|0))continue;break}}f=i&7;if(!f)break g; -e=0;while(1){J[d>>2]=J[c+8>>2];d=d+4|0;c=c+24|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}c=bc-16|0;bc=c;d=J[a+736>>2];e=J[a+104>>2];h=J[e+28>>2];f=gc[J[a+516>>2]](a,1297498450,e,c+8|0)|0;J[c+12>>2]=f;h:{if(f)break h;l=J[e+8>>2];f=c+12|0;k=Wd(e,f);if(J[c+12>>2])break h;j=bg(e,2);J[c+12>>2]=j;if((k|0)!=1|j)break h;A=d,B=Zd(h,28,f),J[A+56>>2]=B;if(J[c+12>>2])break h;k=bg(e,4);J[c+12>>2]=k;if(k)break h;k=Wd(e,f);I[J[d+56>>2]>>1]=k;if(J[c+12>>2])break h;k=Wd(e,f);if(J[c+12>>2])break h;j=J[e+8>>2];l=i4(J[a+ -104>>2],J[a+736>>2],l+k|0,J[d+56>>2]+4|0);J[c+12>>2]=l;if(l)break h;f=Sc(h,12,0,L[J[d+56>>2]>>1],0,f);J[J[d+56>>2]+24>>2]=f;if(J[c+12>>2])break h;f=nd(e,j);J[c+12>>2]=f;if(f)break h;f=Ue(e,L[J[d+56>>2]>>1]<<3);J[c+12>>2]=f;if(f)break h;f=J[d+56>>2];h=L[f>>1];i:{if(!h)break i;o=J[f+24>>2];h=o+P(h,12)|0;while(1){j:{A=o,B=qh(e),J[A>>2]=B;A=o,B=mf(e),I[A+4>>1]=B;l=mf(e);I[o+6>>1]=l;k=L[o+4>>1];if(k>>>0>=M[f+4>>2]|l>>>0>=M[J[f+8>>2]+(k<<4)>>2])break j;o=o+12|0;if(h>>>0>o>>>0)continue;break i}break}J[c+ -12>>2]=8}ne(e);if(J[c+12>>2])break h;e=J[d+56>>2];d=L[e>>1];if(d){h=J[e+24>>2];e=h+P(d,12)|0;while(1){d=h4(a,J[h>>2]);if(d)I[h+8>>1]=L[d>>1];h=h+12|0;if(e>>>0>h>>>0)continue;break}}J[a+740>>2]=J[a+740>>2]|256}bc=c+16|0}if(!b)break a;c=Zd(r,J[J[a+736>>2]+16>>2],g+40|0);if(J[g+40>>2])break a;a=J[a+736>>2];l=tc(c,J[a+12>>2],J[a+16>>2]);c=(l+v|0)+20|0;f=t+c|0;J[l+16>>2]=f;J[l+12>>2]=c;a=f+u|0;j=J[l+8>>2];k:{if(!j)break k;k=0;d=0;e=a;if(j>>>0>=4){o=j&-4;h=0;while(1){J[f+P(d,12)>>2]=e;m=e;e=i<<2;n=m+e| -0;J[f+P(d|1,12)>>2]=n;n=e+n|0;J[f+P(d|2,12)>>2]=n;n=e+n|0;J[f+P(d|3,12)>>2]=n;e=e+n|0;d=d+4|0;h=h+4|0;if((o|0)!=(h|0))continue;break}}h=j&3;if(!h)break k;j=i<<2;while(1){J[f+P(d,12)>>2]=e;d=d+1|0;e=e+j|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}l:{if(!i)break l;d=a+w|0;if((i|0)!=1){h=i&-2;a=0;while(1){J[c>>2]=d;m:{n:{o:{e=J[c+16>>2];if((e|0)<=2003072103){if((e|0)==1869640570)break o;if((e|0)!=1936486004)break m;m=241252;break n}m=240838;if((e|0)==2003265652)break n;if((e|0)!=2003072104)break m;m=240975; -break n}m=241114}J[c>>2]=m}J[c+24>>2]=d+5;p:{q:{r:{s:{e=J[c+40>>2];if((e|0)<=2003072103){if((e|0)==1869640570)break s;if((e|0)!=1936486004)break p;m=241252;break q}if((e|0)==2003072104)break r;m=240838;if((e|0)==2003265652)break q;break p}m=241114;break q}m=240975}J[c+24>>2]=m}c=c+48|0;d=d+10|0;a=a+2|0;if((h|0)!=(a|0))continue;break}}if(!(i&1))break l;J[c>>2]=d;t:{u:{v:{a=J[c+16>>2];if((a|0)<=2003072103){if((a|0)==1869640570)break v;if((a|0)!=1936486004)break l;e=241252;break t}if((a|0)==2003072104)break u; -e=240838;if((a|0)==2003265652)break t;break l}e=241114;break t}e=240975}J[c>>2]=e}J[b>>2]=l}bc=g+48|0;return J[g+40>>2]}function _sa(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;h=bc-80|0;bc=h;J[h+68>>2]=0;J[h+72>>2]=J[682146];a:{f=J[b>>2];b:{c:{if(f)while(1){d=J[f+8>>2];g=(d&e>>31)+e|0;if((g|0)<0|(d|0)<=(g|0))break c;i=g;g=J[f+12>>2];f=Yf(i+g|0,38);if(!f)break c;j=f-g|0;if((j|0)<0|(d|0)<=(j|0))break c;f=Yf(g+j|0,59);if(!f)break c;l=f-g|0;if((l|0)<0)break c;J[695492]=0; -e=ha(5477,h+60|0,b|0,e|0,j-e|0)|0;d=J[695492];J[695492]=0;d:{e:{f:{g:{if((d|0)!=1){J[695492]=0;k=aa(5170,h+68|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[e>>2];J[e>>2]=0;h:{if(!d)break h;J[695492]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(e)break h;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}i:{j:{k:{m=l-j|0;d=m-1|0;if(d){J[695492]=0;i=ha(5477,h+52|0,b|0,j+1|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;d=J[i>>2];f=J[(d?d+12| -0:2728584)>>2];e=K[f|0];if(e){if((e|0)==35)break g;d=e;e=0;while(1){e=d&255^e<<6^e;d=K[f+1|0];f=f+1|0;if(d)continue;break}}J[695492]=0;f=J[J[c+12>>2]+((e>>>0)%M[c+8>>2]<<2)>>2];d=J[695492];J[695492]=0;if((d|0)==1)break j;l:{m:{n:{if(f)while(1){if(J[f+12>>2]==(e|0)){d=J[f+16>>2];o:{if(d){g=J[J[d>>2]+36>>2];J[695492]=0;d=ga(g|0,d|0,i|0,-1)|0;g=J[695492];J[695492]=0;if((g|0)!=1)break o;d=Z()|0;sc(i);break b}d=J[i>>2];if(!d)break n;d=J[d+12>>2];if(!d)break n;d=K[d|0]?-1:0}if(!d)break n}f=J[f+8>>2];if(f)continue; -break}if(!K[2778676])break m;g=J[694668];break l}J[695492]=0;aa(5170,k|0,f+24|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break f;break j}J[695492]=0;ka(5478);d=J[695492];J[695492]=0;if((d|0)==1)break j;H[2778676]=1;J[694668]=2778680;g=2778680}e=0;d=J[i>>2];f=J[(d?d+12|0:2728584)>>2];d=K[f|0];if(d)while(1){e=d&255^e<<6^e;d=K[f+1|0];f=f+1|0;if(d)continue;break}J[695492]=0;f=J[J[g+12>>2]+((e>>>0)%M[g+8>>2]<<2)>>2];d=J[695492];J[695492]=0;if((d|0)==1)break k;p:{q:{r:{s:{if(f)while(1){if(J[f+12>>2]==(e| -0)){d=J[f+16>>2];t:{if(d){n=J[J[d>>2]+36>>2];J[695492]=0;d=ga(n|0,d|0,i|0,-1)|0;n=J[695492];J[695492]=0;if((n|0)!=1)break t;d=Z()|0;sc(i);break b}d=J[i>>2];if(!d)break s;d=J[d+12>>2];if(!d)break s;d=K[d|0]?-1:0}if(!d)break s}f=J[f+8>>2];if(f)continue;break}J[695492]=0;e=ha(5477,h+20|0,b|0,j|0,m+1|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r;J[695492]=0;aa(5170,k|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;d=J[e>>2];J[e>>2]=0;if(!d)break f;J[695492]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[695492]; -J[695492]=0;if((g|0)!=1){if(e)break f;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break f}break a}J[h+28>>2]=f;J[h+32>>2]=g;d=J[694668];if((d|0)==(g|0))break p;J[695492]=0;da(5073,h+28|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)B();d=Z()|0;sc(i);break b}d=Z()|0;sc(i);break b}d=Z()|0;sc(e);sc(i);break b}J[695492]=0;aa(5170,k|0,f+24|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;break f}J[695492]=0;e=ha(5477,h+12|0,b|0,j|0,2)|0;d=J[695492];J[695492]=0;u:{if((d|0)!=1){J[695492]=0;aa(5170, -k|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break u;d=J[e>>2];J[e>>2]=0;if(!d)break d;J[695492]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break d;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break d}break a}d=Z()|0;break b}d=Z()|0;sc(e);break b}d=Z()|0;sc(i);break b}d=Z()|0;sc(i);break b}d=Z()|0;break b}d=Z()|0;sc(e);break b}d=Z()|0;break b}J[h+76>>2]=0;v:{if((K[f+1|0]|32)==120){e=Jy(f+2|0,h+76|0,16);break v}e=Jy(f+1|0,h+76|0,10)}if(J[h+76>>2]){d=h+ -28|0;e=Rj(e,d);J[695492]=0;e=ga(5169,h+44|0,d|0,e-d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;J[695492]=0;aa(5170,k|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[e>>2];J[e>>2]=0;if(!d)break f;J[695492]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break f;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break f}break a}d=Z()|0;sc(e);sc(i);break b}J[695492]=0;e=ha(5477,h+36|0,b|0,j|0,m+1|0)|0;d=J[695492];J[695492]=0;w:{if((d|0)!=1){J[695492]=0;aa(5170, -k|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break w;d=J[e>>2];J[e>>2]=0;if(!d)break f;J[695492]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break f;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break f}break a}d=Z()|0;sc(i);break b}d=Z()|0;sc(e);sc(i);break b}d=J[i>>2];J[i>>2]=0;if(!d)break d;J[695492]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break d;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break d}break a}d= -Z()|0;sc(i);break b}e=l+1|0;f=J[b>>2];if(f)continue;break}d=0}J[695492]=0;c=ha(5477,h+28|0,b|0,e|0,d-e|0)|0;d=J[695492];J[695492]=0;x:{if((d|0)!=1){J[695492]=0;e=aa(5170,h+68|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break x;d=J[c>>2];J[c>>2]=0;y:{if(!d)break y;J[695492]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(c)break y;J[695492]=0;_(4987,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[e>>2];z:{A:{B:{if(c){d=J[J[c>>2]+36>>2];J[695492]=0;d=ga(d|0,c|0,b| -0,-1)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break B;d=Z()|0;break b}c=J[b>>2];if(!c)break A;c=J[c+12>>2];if(!c)break A;d=K[c|0]?-1:0}c=e;if(d)break z}c=b}J[a>>2]=0;J[a+4>>2]=J[682146];b=J[c>>2];C:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,h+76|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break C;d=Z()|0;sc(a);break b}J[h+76>>2]=0}J[695492]=0;aa(4993,a|0,h+76|0)|0;b=J[695492];J[695492]=0;D:{if((b|0)!=1){b=J[h+76>>2];J[h+76>>2]=0;if(!b)break D;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]= -0;if((d|0)!=1){if(c)break D;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break D}break a}d=Z()|0;vc(h+76|0);sc(a);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];a=J[e>>2];J[e>>2]=0;E:{if(!a)break E;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break E;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=h+80|0;return}d=Z()|0;break b}d=Z()|0;sc(c)}sc(h+68|0);ba(d|0);B()}ea(0)|0;yc();B()}function kxa(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;e=bc-112|0;bc=e;f=kv(e+84|0,c);J[695492]=0;g=e+92|0;ca(5048,g|0,2378148,f|0);h=J[695492];J[695492]=0;a:{b:{c:{if((h|0)!=1){J[695492]=0;ca(5121,e+100|0,g|0,2378588);h=J[695492];J[695492]=0;if((h|0)!=1){sc(g);sc(f);d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{f=J[b>>2];if(!f)break m;g=J[e+100>>2];g=J[(g?g+12|0:2728584)>>2];J[695492]=0;g=ga(5419,f|0,g|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){if((g|0)<0)break m;while(1){a=J[e+100>>2];if(a)a=J[a+8>>2];else a=0;f= -a+g|0;i=f+1|0;a=J[b>>2];n:{if(!a){c=-1;break n}J[695492]=0;c=In(a,33,i);a=J[695492];J[695492]=0;if((a|0)==1)break e}o:{if((c|0)<=(g|0))break o;h=c+1|0;p:{q:{r:{s:{t:{u:{if((c|0)==(f|0))break u;c=J[b>>2];v:{w:{x:{y:{z:{A:{B:{C:{D:{if(f){k=!c;a=f;E:{if((a|0)>=0)break E;if(!c)break E;a=a+J[c+8>>2]|0}if(!(k|(a|0)<0|J[c+8>>2]<(a|0))){c=J[c+12>>2];break D}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)==1)break B;break c}if(!c)break C;a=0;c=J[c+12>>2]}if(H[a+c|0]<0)break u}J[e+92>>2]=0;J[e+96>>2]= -J[682146];J[695492]=0;a=e+76|0;c=h-i|0;ia(5143,a|0,b|0,f|0,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break A;J[695492]=0;ca(5048,e+84|0,2378148,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break z;sc(a);f=J[e+84>>2];F:{if(c){c=!f|(c|0)>=0?c:J[f+8>>2]+c|0;if(!(!f|(c|0)<0|J[f+8>>2]<(c|0))){a=J[f+12>>2];break F}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break c;g=Z()|0;break g}if(!f)break v;c=0;a=J[f+12>>2]}switch(H[a+c|0]-88|0){case 13:case 14:case 15:break w;case 0:case 23:case 29:case 32:break x; -case 12:case 17:break y;default:break v}}g=Z()|0;break d}g=Z()|0;break f}g=Z()|0;sc(e+76|0);break f}c=J[d>>2];if(c)break s;c=0;break r}c=J[d>>2];if(c)break s;c=0;break r}c=J[d>>2];G:{if(c){f=J[J[c>>2]+52>>2];J[695492]=0;j=+Aa(f|0,c|0,0,e+68|0);c=J[695492];J[695492]=0;if((c|0)!=1)break G;break t}J[e+68>>2]=-1;j=0}O[e+32>>3]=j;J[695492]=0;ga(5180,e+92|0,a|0,e+32|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break t;if(J[e+68>>2]>=0)break p;a=J[d>>2];H:{if(a){c=J[J[a>>2]+28>>2];J[695492]=0;ca(c|0,e+76|0, -a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break t;break H}J[e+76>>2]=0}J[695492]=0;aa(4993,e+92|0,e+76|0)|0;a=J[695492];J[695492]=0;I:{if((a|0)!=1){a=J[e+76>>2];J[e+76>>2]=0;if(!a)break I;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break I;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break I}break b}g=Z()|0;vc(e+76|0);break g}a=J[e+92>>2];J[e+96>>2]=J[(a?a+12|0:2728584)>>2];break p}a=J[(f?f+12|0:2728584)>>2];c=J[d>>2];J[e>>2]=J[(c?c+12|0:2728584)>> -2];J[695492]=0;ga(5180,e+92|0,a|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break q;break p}J[695492]=0;a=e+76|0;ia(5143,a|0,b|0,0,g|0);c=J[695492];J[695492]=0;J:{K:{L:{M:{N:{O:{P:{if((c|0)!=1){J[695492]=0;c=e+84|0;ca(5122,c|0,a|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break P;J[695492]=0;a=e+68|0;ia(5143,a|0,b|0,h|0,-1);f=J[695492];J[695492]=0;if((f|0)==1)break O;J[695492]=0;ca(5122,e+92|0,c|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break N;a=J[e+92>>2];Q:{if(a){c=J[J[a>>2]+28>>2];J[695492]= -0;ca(c|0,e+60|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break Q;g=Z()|0;break M}J[e+60>>2]=0}J[695492]=0;aa(4993,b|0,e+60|0)|0;a=J[695492];J[695492]=0;R:{if((a|0)!=1){a=J[e+60>>2];J[e+60>>2]=0;if(!a)break R;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break R;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break R}break b}g=Z()|0;vc(e+60|0);break M}a=J[b>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(e+92|0);sc(e+68|0);sc(e+84|0);sc(e+76|0);break o}g= -Z()|0;break d}g=Z()|0;break J}g=Z()|0;break K}g=Z()|0;break L}sc(e+92|0)}sc(e+68|0)}sc(e+84|0)}sc(e+76|0);break d}g=Z()|0;break g}f=J[J[c>>2]+40>>2];J[695492]=0;c=$(f|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break q}J[e+16>>2]=c;J[695492]=0;ga(5180,e+92|0,a|0,e+16|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break p}g=Z()|0;break g}J[695492]=0;a=e+60|0;ia(5143,a|0,b|0,0,g|0);c=J[695492];J[695492]=0;S:{T:{U:{V:{if((c|0)!=1){J[695492]=0;c=e+68|0;ca(5122,c|0,a|0,e+92|0);a=J[695492];J[695492]=0;if((a| -0)==1)break V;J[695492]=0;a=e+52|0;ia(5143,a|0,b|0,h|0,-1);f=J[695492];J[695492]=0;if((f|0)==1)break U;J[695492]=0;ca(5122,e+76|0,c|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break T;a=J[e+76>>2];W:{if(a){c=J[J[a>>2]+28>>2];J[695492]=0;ca(c|0,e+108|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break W;g=Z()|0;break k}J[e+108>>2]=0}J[695492]=0;aa(4993,b|0,e+108|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[e+108>>2];J[e+108>>2]=0;if(!a)break S;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[695492];J[695492]= -0;if((f|0)!=1){if(c)break S;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break S}break b}g=Z()|0;vc(e+108|0);break k}g=Z()|0;break g}g=Z()|0;break h}g=Z()|0;break i}g=Z()|0;break j}a=J[b>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(e+76|0);sc(e+52|0);sc(e+68|0);sc(e+60|0);sc(e+84|0);sc(e+92|0)}a=J[d>>2];if(a)a=J[a+8>>2];else a=0;c=J[b>>2];if(!c)break l;f=J[e+100>>2];f=J[(f?f+12|0:2728584)>>2];J[695492]=0;g=ga(5419,c|0,f|0,a+g|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;if((g|0)>= -0)continue;break}break l}g=Z()|0;break d}if(!c)break l;J[695492]=0;c=e+68|0;ca(5048,c|0,2376960,d|0);d=J[695492];J[695492]=0;X:{Y:{Z:{_:{$:{aa:{ba:{if((d|0)!=1){J[695492]=0;d=e+76|0;ca(5048,d|0,2379327,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break ba;J[695492]=0;f=e+84|0;ca(5412,f|0,a|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break aa;J[695492]=0;a=e+92|0;ca(5048,a|0,2375592,f|0);g=J[695492];J[695492]=0;if((g|0)==1)break $;J[695492]=0;aa(5170,b|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break _; -sc(a);sc(f);sc(d);sc(c);break l}g=Z()|0;break d}g=Z()|0;break X}g=Z()|0;break Y}g=Z()|0;break Z}g=Z()|0;sc(e+92|0)}sc(e+84|0)}sc(e+76|0)}sc(e+68|0);break d}sc(e+100|0);bc=e+112|0;return}sc(e+76|0)}sc(e+52|0)}sc(e+68|0)}sc(e+60|0)}sc(e+84|0)}sc(e+92|0);break d}g=Z()|0}sc(e+100|0);ba(g|0);B()}a=Z()|0;sc(e+92|0);break a}a=Z()|0;break a}B()}ea(0)|0;yc();B()}sc(f);ba(a|0);B()}function uY(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0, -F=0,G=0,I=0,L=0,M=0;f=bc-48|0;bc=f;J[f+32>>2]=13;J[f+16>>2]=13;a:{b:{c:{d:{e:{if(Ec(b,782815))if(Ec(b,783475))break e;b=rc(16);J[b+8>>2]=-1;J[b+12>>2]=0;J[b>>2]=2331460;break d}f:{if(Ec(b,784649))if(Ec(b,785849))break f;b=rc(56);J[b>>2]=2331560;J[b+4>>2]=c;J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;break c}g:{if(Ec(b,786404))if(Ec(b,787287))break g;b=8;a=1;g=1;h=1;i=1;if(J[d>>2]==7){b=f+16|0;Bc(J[d+8>>2],787979,b,e);a=J[f+24>>2];g=J[f+16>>2];uc(b);Bc(J[d+8>>2],788959,b,e);h=J[f+24>>2];i=J[f+16>>2];uc(b); -Bc(J[d+8>>2],789696,b,e);j=J[f+24>>2];k=J[f+16>>2];uc(b);Bc(J[d+8>>2],790455,b,e);l=J[f+24>>2];m=J[f+16>>2];uc(b);Bc(J[d+8>>2],791556,b,e);a=(g|0)!=1?1:a;i=(i|0)!=1?1:h;g=(k|0)!=1?1:j;h=J[f+16>>2]!=1?1:J[f+24>>2];uc(b);b=(m|0)!=1?8:l}d=rc(53336);J[695492]=0;b=va(3473,d|0,c|0,a|0,i|0,g|0,b|0,h|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c;break b}h:{if(Ec(b,792298))if(Ec(b,793273))break h;b=rc(148);J[b>>2]=2331760;J[b+4>>2]=c;J[b+144>>2]=0;a=b+8|0;J[b+140>>2]=a;J[b+136>>2]=a;break c}i:{if(Ec(b, -793655))if(Ec(b,794805))break i;b=1728;a=0;i=1;if(J[d>>2]==7){b=f+16|0;Bc(J[d+8>>2],795636,b,e);a=J[f+24>>2];k=J[f+16>>2];uc(b);Bc(J[d+8>>2],796059,b,e);g=J[f+24>>2];h=J[f+16>>2];uc(b);Bc(J[d+8>>2],796851,b,e);i=J[f+24>>2];j=J[f+16>>2];uc(b);Bc(J[d+8>>2],788959,b,e);l=J[f+24>>2];m=J[f+16>>2];uc(b);Bc(J[d+8>>2],797505,b,e);n=J[f+24>>2];o=J[f+16>>2];uc(b);Bc(J[d+8>>2],798374,b,e);p=J[f+24>>2];q=J[f+16>>2];uc(b);Bc(J[d+8>>2],799410,b,e);g=h?0:g;h=j?0:i;i=q?1:p;j=J[f+16>>2]?0:J[f+24>>2];a=(k|0)==1?a: -0;k=(o|0)==1?n:0;uc(b);b=(m|0)!=1?1728:l}d=rc(84);J[695492]=0;b=Da(3474,d|0,c|0,a|0,g|0,h|0,b|0,k|0,i|0,j|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c;break b}j:{if(Ec(b,799919))if(Ec(b,800675))break j;b=-1;if(J[d>>2]==7){a=f+16|0;b=Bc(J[d+8>>2],801209,a,e);b=J[b>>2]!=1?-1:J[f+24>>2];uc(a)}a=rc(3528);J[a+192>>2]=b;J[a>>2]=2331960;J[a+4>>2]=c;b=0;J[a+3468>>2]=0;J[a+188>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;wc(a+724|0,0,2736);J[a+3504>>2]=0;c=a+3496| -0;J[c>>2]=0;J[c+4>>2]=0;c=a+3488|0;J[c>>2]=0;J[c+4>>2]=0;J[a+3480>>2]=0;J[a+3484>>2]=0;if(!K[2758452]){wc(2758464,0,384);while(1){H[b+2758848|0]=b;H[b+2758849|0]=b|1;H[b+2758850|0]=b|2;H[b+2758851|0]=b|3;b=b+4|0;if((b|0)!=256)continue;break}wc(2759104,255,383);H[2758452]=1}b=a;break c}k:{if(Ec(b,802131))if(Ec(b,802657))break k;b=8;a=1;g=1;h=1;if(J[d>>2]==7){g=f+16|0;Bc(J[d+8>>2],787979,g,e);a=J[f+24>>2];b=J[f+16>>2];uc(g);Bc(J[d+8>>2],788959,g,e);h=J[f+24>>2];i=J[f+16>>2];uc(g);Bc(J[d+8>>2],789696, -g,e);j=J[f+24>>2];k=J[f+16>>2];uc(g);Bc(J[d+8>>2],790455,g,e);a=(b|0)!=1?1:a;h=(i|0)!=1?1:h;b=J[f+16>>2]!=1?8:J[f+24>>2];uc(g);g=(k|0)!=1?1:j}d=rc(34120);J[695492]=0;b=ja(3475,d|0,c|0,a|0,h|0,g|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c;break b}if(!Ec(b,803337)){if(J[d>>2]==7)Bc(J[d+8>>2],803919,f+32|0,e);a=rc(152);J[695492]=0;b=c;c=f+32|0;b=ga(3445,a|0,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;uc(c);break c}if(!Ec(b,804488)){gc[J[J[c>>2]+20>>2]](c);l:{m:{b=gc[J[J[c>>2]+28>> -2]](c)|0;n:{if((b|0)==-1){b=0;d=0;e=0;a=0;break n}d=gc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==-1){d=0;e=0;a=0;break n}e=gc[J[J[c>>2]+28>>2]](c)|0;if((e|0)==-1){e=0;a=0;break n}a=gc[J[J[c>>2]+28>>2]](c)|0;if((a|0)==-1){a=0;break n}r=gc[J[J[c>>2]+28>>2]](c)|0;if((r|0)==-1){r=0;break n}t=gc[J[J[c>>2]+28>>2]](c)|0;if((t|0)==-1){t=0;break n}u=gc[J[J[c>>2]+28>>2]](c)|0;if((u|0)==-1){u=0;break n}v=gc[J[J[c>>2]+28>>2]](c)|0;if((v|0)==-1){v=0;break n}w=gc[J[J[c>>2]+28>>2]](c)|0;if((w|0)==-1){w=0;break n}x=gc[J[J[c>> -2]+28>>2]](c)|0;if((x|0)==-1){x=0;break n}y=gc[J[J[c>>2]+28>>2]](c)|0;if((y|0)==-1){y=0;break n}z=gc[J[J[c>>2]+28>>2]](c)|0;if((z|0)==-1){z=0;break n}A=gc[J[J[c>>2]+28>>2]](c)|0;if((A|0)==-1){A=0;break n}C=gc[J[J[c>>2]+28>>2]](c)|0;if((C|0)==-1){C=0;break n}D=gc[J[J[c>>2]+28>>2]](c)|0;if((D|0)==-1){D=0;break n}E=gc[J[J[c>>2]+28>>2]](c)|0;if((E|0)==-1){E=0;break n}l=gc[J[J[c>>2]+28>>2]](c)|0;if((l|0)==-1){l=0;break n}m=gc[J[J[c>>2]+28>>2]](c)|0;if((m|0)==-1){m=0;break n}n=gc[J[J[c>>2]+28>>2]](c)|0; -if((n|0)==-1){n=0;break n}o=gc[J[J[c>>2]+28>>2]](c)|0;if((o|0)==-1){o=0;break n}g=gc[J[J[c>>2]+28>>2]](c)|0;if((g|0)==-1){g=0;break n}h=gc[J[J[c>>2]+28>>2]](c)|0;if((h|0)==-1){h=0;break n}i=gc[J[J[c>>2]+28>>2]](c)|0;if((i|0)==-1){i=0;break n}j=gc[J[J[c>>2]+28>>2]](c)|0;if((j|0)==-1){j=0;break n}k=gc[J[J[c>>2]+28>>2]](c)|0;if((k|0)==-1){k=0;break n}p=gc[J[J[c>>2]+28>>2]](c)|0;if((p|0)==-1){p=0;break n}q=gc[J[J[c>>2]+28>>2]](c)|0;if((q|0)==-1){q=0;break n}s=gc[J[J[c>>2]+28>>2]](c)|0;if((s|0)==-1){s= -0;break n}F=gc[J[J[c>>2]+28>>2]](c)|0;if((F|0)==-1){F=0;break n}G=gc[J[J[c>>2]+28>>2]](c)|0;if((G|0)!=-1)break m}G=0;break l}I=gc[J[J[c>>2]+28>>2]](c)|0;if((I|0)==-1){I=0;break l}L=gc[J[J[c>>2]+28>>2]](c)|0;if((L|0)==-1)break l;M=(L&255)==50}r=!((A|C|D)&255)&(!((b|d|e)&255)&(a&255)==12&(r&255)==106&(t&255)==80&(u&255)==32&(v&255)==32&(w&255)==13&(x&255)==10&(y&255)==135&(z&255)==10);o:{p:{q:{if((g&255)!=106|(h&255)!=112|((i&255)!=50|(j&255)!=32))break q;if((q|s|p|k)&255|(l&255)!=102|(!r|(m&255)!= -116))break q;if((n&255)!=121)break q;if((o&255)==112)break p}if(!((b&e&255)!=255|(d&255)!=79)&(a&255)==81)break p;gc[J[J[c>>2]+20>>2]](c);if(!(!(r&(!((k|p|q|s)&255)&((E&255)==24&(g&255)==109&(h&255)==106&(i&255)==112&(j&255)==50)&(F&255)==109&(G&255)==106&(I&255)==112&M))|(l&255)!=102|((m&255)!=116|(n&255)!=121)))if((o&255)==112)break o;a=rc(240);J[695492]=0;b=aa(3476,a|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break c;break a}gc[J[J[c>>2]+20>>2]](c)}a=rc(20);J[695492]=0;J[a+4>>2]=c;J[a>>2]=2331012; -J[a>>2]=827224;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;b=a;c=J[695492];J[695492]=0;if((c|0)!=1)break c;break a}a=gc[J[J[a>>2]+52>>2]](a)|0;J[f>>2]=b;xc(1,a,805040,f);b=rc(8);J[b>>2]=2332684}J[b+4>>2]=c}bc=f+48|0;return b}a=Z()|0;qc(d);ba(a|0);B()}b=Z()|0;qc(a);ba(b|0);B()}function G2(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;m=bc-16|0;bc=m;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];f=J[c+20>>2];J[c+28>>2]=f;I[f+2>>1]=0;l=J[b+20>>2];b=J[b+28>>2];f=268435454;d=268435455;h=268435455;i=268435454; -j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[m+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];i=j>>31;h=I[a+8>>1];i=(h+((i^j)-i|0)|0)-1|0}if((b|0)!=(l|0)){J[m+4>>2]=l+8;o=(b-l>>3)-1|0;b=I[l+10>>1];a=b>>31;d=I[l+8>>1];f=(d+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=h;n=0;break a}if((h|0)<=(i|0)){a=h;break a}a=J[m+8>>2];J[m+8>>2]=a+8;n=n-1|0;i=I[a+10>>1];b=i>>31;a=I[a+8>>1];i=(a+((b^i)-b|0)|0)-1|0}l=i;b:{c:{d:{if(!o){o=0;break d}if((d|0)>(f|0))break c}b=d;break b}b=J[m+4>>2];J[m+4>>2]=b+8;o=o-1|0;i=I[b+10>>1]; -f=i>>31;b=I[b+8>>1];f=(b+((f^i)-f|0)|0)-1|0}j=f;if(!((f|0)<(b|0)&(a|0)>(l|0))){h=(a|0)>(b|0)?a:b;f=((f|0)>(l|0)?l:f)-h|0;if((f|0)>=0){i=f+1|0;e:{f:{g:{if((a|0)<(b|0)){d=b-a|0;f=J[m+8>>2];e=I[f+2>>1];if((e|0)<0){f=K[J[f+4>>2]];h:{if((J[c>>2]+1|0)!=(a|0))break h;e=J[c+28>>2];g=I[e+2>>1];if((g|0)>=0|(f|0)!=K[J[e+4>>2]])break h;I[e+2>>1]=g-d;a=b;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[f+10>>1]=0-d;I[f+8>>1]=a;J[f+12>>2]=e;a=b;break g}if(!e){a=b;break e}g=J[f+ -4>>2];f=I[f>>1];tc(J[c+16>>2],g+((a|0)>(f|0)?a-f|0:0)|0,d);e=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(a|0))break j;f=I[e+2>>1];if((f|0)<=0)break j;I[e+2>>1]=d+f;f=J[c+16>>2];break i}J[c+28>>2]=e+8;f=J[c+16>>2];I[e+10>>1]=d;I[e+8>>1]=a;J[e+12>>2]=f}J[c+16>>2]=d+f;a=b;break g}if((a|0)<=(b|0))break e;d=a-b|0;f=J[m+4>>2];e=I[f+2>>1];if((e|0)<0){f=K[J[f+4>>2]];k:{if((J[c>>2]+1|0)!=(b|0))break k;e=J[c+28>>2];g=I[e+2>>1];if((g|0)>=0|(f|0)!=K[J[e+4>>2]])break k;I[e+2>>1]=g-d;break g}H[J[c+16>>2]]=f;f=J[c+28>> -2];J[c+28>>2]=f+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[f+10>>1]=0-d;I[f+8>>1]=b;J[f+12>>2]=e;break g}if(!e)break f;g=J[f+4>>2];f=I[f>>1];tc(J[c+16>>2],g+((b|0)>(f|0)?b-f|0:0)|0,d);e=J[c+28>>2];l:{m:{if((J[c>>2]+1|0)!=(b|0))break m;f=I[e+2>>1];if((f|0)<=0)break m;I[e+2>>1]=d+f;f=J[c+16>>2];break l}J[c+28>>2]=e+8;f=J[c+16>>2];I[e+10>>1]=d;I[e+8>>1]=b;J[e+12>>2]=f}J[c+16>>2]=d+f}J[c>>2]=a-1}b=a}f=i;n:{o:{p:{q:{r:{s:{t:{u:{d=J[m+4>>2];e=J[m+8>>2];switch((L[d+2>>1]>>>14&2|L[e+2>>1]>>>15)-1|0){case 2:break r; -case 1:break s;case 0:break t;default:break u}}g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(h|0)?h-d|0:0)|0;g=J[e+4>>2];e=I[e>>1];e=g+((e|0)<(h|0)?h-e|0:0)|0;g=J[c+16>>2];while(1){k=g;g=P(K[d|0]^255,K[e|0]^255);H[k|0]=g?65025-g>>>8|0:-1;g=J[c+28>>2];v:{w:{if((J[c>>2]+1|0)!=(h|0))break w;k=I[g+2>>1];if((k|0)<=0)break w;I[g+2>>1]=k+1;k=J[c+16>>2];break v}J[c+28>>2]=g+8;k=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=h;J[g+12>>2]=k}d=d+1|0;e=e+1|0;J[c>>2]=h;g=k+1|0;J[c+16>>2]=g;h=h+1|0;f=f-1|0;if(f)continue;break}break n}if(K[J[e+ -4>>2]]==255)break p;g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(h|0)?h-d|0:0)|0;g=J[c+16>>2];while(1){e=P(K[d|0]^255,K[J[J[m+8>>2]+4>>2]]^255);H[g|0]=e?65025-e>>>8|0:-1;g=J[c+28>>2];x:{y:{if((J[c>>2]+1|0)!=(h|0))break y;e=I[g+2>>1];if((e|0)<=0)break y;I[g+2>>1]=e+1;e=J[c+16>>2];break x}J[c+28>>2]=g+8;e=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=h;J[g+12>>2]=e}d=d+1|0;J[c>>2]=h;g=e+1|0;J[c+16>>2]=g;h=h+1|0;f=f-1|0;if(f)continue;break}break n}if(K[J[d+4>>2]]==255)break q;d=I[e>>1];d=J[e+4>>2]+((d|0)<(h|0)?h-d|0:0)|0; -g=J[c+16>>2];while(1){e=P(K[J[J[m+4>>2]+4>>2]]^255,K[d|0]^255);H[g|0]=e?65025-e>>>8|0:-1;g=J[c+28>>2];z:{A:{if((J[c>>2]+1|0)!=(h|0))break A;e=I[g+2>>1];if((e|0)<=0)break A;I[g+2>>1]=e+1;e=J[c+16>>2];break z}J[c+28>>2]=g+8;e=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=h;J[g+12>>2]=e}d=d+1|0;J[c>>2]=h;g=e+1|0;J[c+16>>2]=g;h=h+1|0;f=f-1|0;if(f)continue;break}break n}d=P(K[J[d+4>>2]]^255,K[J[e+4>>2]]^255);d=d?65025-d>>>8|0:255;B:{if((J[c>>2]+1|0)!=(h|0))break B;e=J[c+28>>2];g=I[e+2>>1];if((g|0)>=0|(d|0)!=K[J[e+ -4>>2]])break B;I[e+2>>1]=g-f;break o}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>>1]=0-f;I[d+8>>1]=h;J[d+12>>2]=e;break o}C:{if((J[c>>2]+1|0)!=(h|0))break C;d=J[c+28>>2];e=I[d+2>>1];if((e|0)>=0|K[J[d+4>>2]]!=255)break C;I[d+2>>1]=e-f;break o}H[J[c+16>>2]]=255;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>>1]=0-f;I[d+8>>1]=h;J[d+12>>2]=e;break o}D:{if((J[c>>2]+1|0)!=(h|0))break D;d=J[c+28>>2];e=I[d+2>>1];if((e|0)>=0|K[J[d+4>>2]]!=255)break D;I[d+ -2>>1]=e-f;break o}H[J[c+16>>2]]=255;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>>1]=0-f;I[d+8>>1]=h;J[d+12>>2]=e}J[c>>2]=(f+h|0)-1}if((j|0)>(l|0)){d=b+i|0;i=268435454;h=268435455;f=j;continue}d=268435455;b=a+i|0;a=(j|0)<(l|0);h=a?b:268435455;f=268435454;i=a?l:268435454;continue}if((a|0)<(b|0)){i=268435454;h=268435455;d=b;f=j;if((a|0)>(l|0))continue;g=l-a|0;e=g+1|0;j=J[m+8>>2];k=I[j+2>>1];E:{if((k|0)<0){d=K[J[j+4>>2]];F:{if((J[c>>2]+1|0)!=(a|0))break F;j=J[c+28>>2];k=I[j+2>>1];if((k| -0)>=0|(d|0)!=K[J[j+4>>2]])break F;I[j+2>>1]=k-e;break E}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;j=J[c+16>>2];J[c+16>>2]=j+1;I[d+10>>1]=g^-1;I[d+8>>1]=a;J[d+12>>2]=j;break E}if(!k)continue;d=I[j>>1];tc(J[c+16>>2],J[j+4>>2]+((a|0)>(d|0)?a-d|0:0)|0,e);j=J[c+28>>2];G:{H:{if((J[c>>2]+1|0)!=(a|0))break H;d=I[j+2>>1];if((d|0)<=0)break H;I[j+2>>1]=d+e;d=J[c+16>>2];break G}J[c+28>>2]=j+8;d=J[c+16>>2];I[j+10>>1]=e;I[j+8>>1]=a;J[j+12>>2]=d}J[c+16>>2]=d+e}J[c>>2]=l;d=b;continue}f=268435454;d=268435455;h= -a;i=l;if((b|0)>(j|0))continue;g=j-b|0;e=g+1|0;a=J[m+4>>2];k=I[a+2>>1];I:{if((k|0)<0){a=K[J[a+4>>2]];J:{if((J[c>>2]+1|0)!=(b|0))break J;i=J[c+28>>2];k=I[i+2>>1];if((k|0)>=0|(a|0)!=K[J[i+4>>2]])break J;I[i+2>>1]=k-e;break I}H[J[c+16>>2]]=a;a=J[c+28>>2];J[c+28>>2]=a+8;i=J[c+16>>2];J[c+16>>2]=i+1;I[a+10>>1]=g^-1;I[a+8>>1]=b;J[a+12>>2]=i;break I}if(!k)continue;i=J[a+4>>2];a=I[a>>1];tc(J[c+16>>2],i+((a|0)<(b|0)?b-a|0:0)|0,e);a=J[c+28>>2];K:{L:{if((J[c>>2]+1|0)!=(b|0))break L;i=I[a+2>>1];if((i|0)<=0)break L; -I[a+2>>1]=e+i;i=J[c+16>>2];break K}J[c+28>>2]=a+8;i=J[c+16>>2];I[a+10>>1]=e;I[a+8>>1]=b;J[a+12>>2]=i}J[c+16>>2]=e+i}J[c>>2]=j;i=l;continue}break}bc=m+16|0}function uXa(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=bc-176|0;bc=e;a:{b:{c:{d:{if(!b){d=0;break d}J[e+144>>2]=13;g=J[c+12>>2];J[e+168>>2]=J[c+8>>2];J[e+172>>2]=g;J[e+160>>2]=9;c=e+160|0;hf(c,a,e+144|0,0);uc(c);wc(e+40|0,0,104);H[e+24|0]=0;J[695492]=0;H[e+8|0]=0;ca(3202,d|0,e+24|0,e+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break c; -if(K[e+24|0]){J[695492]=0;a=$(4,4)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[a>>2]=1;J[e+60>>2]=a}if(K[e+8|0]){J[695492]=0;a=$(4,4)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[a>>2]=1;J[e+64>>2]=a}e:{f:{g:{h:{i:{j:{k:{if(J[e+144>>2]==7){J[695492]=0;a=J[e+152>>2];J[e+24>>2]=13;a=ha(3203,a|0,794291,e+24|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;if(J[a>>2]==7){J[e+8>>2]=13;J[695492]=0;ha(3203,J[e+32>>2],795271,e+8|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;if(J[e+8>>2]==4){J[695492]= -0;a=J[e+16>>2];c=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;d=Qc(a);J[695492]=0;ia(3204,c|0,a|0,d|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break i;d=Z()|0;qc(c);break a}J[695492]=0;c=$(4,12)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;if(H[d+11|0]>=0){a=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=a;J[c+8>>2]=J[d+8>>2];break i}a=J[d+4>>2];d=J[d>>2];J[695492]=0;ca(15,c|0,d|0,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i;d=Z()|0;qc(c);break a}J[695492]=0;a=$(4,12)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break f;l:{if(H[d+11|0]>=0){c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;J[a+8>>2]=J[d+8>>2];break l}c=J[d+4>>2];d=J[d>>2];J[695492]=0;ca(15,a|0,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break k}J[e+40>>2]=a;break g}J[695492]=0;a=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;m:{if(H[d+11|0]>=0){c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;J[a+8>>2]=J[d+8>>2];break m}c=J[d+4>>2];d=J[d>>2];J[695492]=0;ca(15,a|0,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break j}J[e+40>>2]=a;break e}d=Z()|0; -qc(a);break a}d=Z()|0;qc(a);break a}J[695492]=0;J[e+40>>2]=c;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],795860,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],796935,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],797494,a|0,0)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break h;J[695492]=0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],798164,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],799086,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;if(!(!J[e+16>>2]|J[e+8>>2]!=1)){a=J[e+64>>2];if(a){qc(a);J[e+64>>2]=0}J[695492]=0;a=$(4,4)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[a>>2]=1;J[e+ -64>>2]=a}J[695492]=0;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],799739,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[695492]=0;a=$(4,2)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+120>>2]=a}J[695492]=0;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],800633,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[695492]=0;a=$(4,2)|0;c= -J[695492];J[695492]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+128>>2]=a}J[695492]=0;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],801182,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[695492]=0;a=$(4,2)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+136>>2]=a}J[695492]=0;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],801828,a|0,0)|0;a=J[695492];J[695492]= -0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[695492]=0;a=$(4,2)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+132>>2]=a}J[695492]=0;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],802803,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;c=J[e+8>>2];n:{if(c-3>>>0<4294967294)break n;f=O[e+16>>3];if(!(((c|0)==1?+J[e+16>>2]:f)>50.5))break n;J[695492]=0;a=$(4,2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;A(+f);v(1)|0;f=Y((h=+(v(0)| -0),i=f,j=(c|0)==1,j?h:i)+-50.5)*65;o:{if(f<4294967296&f>=0){c=~~f>>>0;break o}c=0}I[a>>1]=c;J[e+100>>2]=a}J[695492]=0;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],803684,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],803904,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[695492]=0;a=$(4,2)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break h;I[a>>1]=J[e+16>>2];J[e+124>>2]=a}J[695492]=0;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],804471,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[695492]=0;a=$(4,2)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+116>>2]=a}J[695492]=0;a=e+8|0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],804866,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]= -0;_(3205,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;ha(3203,J[e+32>>2],805341,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;_(3205,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}d=Z()|0;break a}J[695492]=0;_(3205,e+24|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}d=Z()|0;break a}a=J[J[b>>2]+136>>2];J[695492]=0;c=a;a=e+40|0;d=ga(c|0,b|0,a|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;lo(a)}bc=e+176|0;return d|0}d=Z()|0;break a}d=Z()|0}lo(e+40|0);ba(d|0); -B()}function $xa(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;j=bc-16|0;bc=j;a:{b:{c:{d=J[a+20>>2];if(d)while(1){d:{c=J[d+8>>2];e=J[c+8>>2];e:{if(!e){if(!J[b>>2])break e;break d}J[e+4>>2]=J[e+4>>2]+1;e=J[b>>2];c=J[c+8>>2];f:{if(!c)break f;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(f)break f;J[695492]=0;_(4987,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break b}if((c|0)!=(e|0))break d;c=J[d+8>>2]}n=c,o=OR(0),J[n+16>>2]=o;J[c+20>> -2]=fc;break c}d=J[d>>2];if(d)continue;break}c=J[a+32>>2];c=(c|0)<0?c:K[a+28|0]?c:0;d=(c|0)<0;m=HU(J[b>>2]);if(!d&(c|0)<(m|0))break c;if(!d)g:{d=0;e=bc-80|0;bc=e;i=a+12|0;h:{i:{j:{k:{l:{l=c-m|0;if(!l){Es(i);J[a+36>>2]=0;break l}m:{c=J[a+16>>2];if((c|0)<=20){if(J[a+36>>2]<=(l|0))break l;while(1){if(!J[a+16>>2]){J[a+36>>2]=0;break l}c=J[a+20>>2];J[e+60>>2]=i;J[e+56>>2]=c;n:{o:{if(!c){J[e+24>>2]=i;J[e+20>>2]=c;break o}d=J[c>>2];if(!d){J[e+24>>2]=i;J[e+20>>2]=c;break n}while(1){f=J[d+8>>2];g=J[f+16>>2]; -h=J[c+8>>2];k=J[h+16>>2];f=J[f+20>>2];h=J[h+20>>2];if(g>>>0>>0&(f|0)<=(h|0)|(f|0)<(h|0)){J[e+60>>2]=i;J[e+56>>2]=d;c=d}d=J[d>>2];if(d)continue;break}J[e+24>>2]=i;J[e+20>>2]=c;if(c)break n}J[695492]=0;da(5073,e+20|0,i|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break j}c=J[J[c+8>>2]+8>>2];J[695492]=0;c=$(5347,c|0)|0;d=J[695492];J[695492]=0;p:{if((d|0)!=1){J[a+36>>2]=J[a+36>>2]-c;c=J[e+56>>2];J[e+12>>2]=c;d=J[e+60>>2];J[e+16>>2]=d;if((d|0)==(i|0)?c:0)break p;J[695492]=0;da(5073,e+12|0,i|0);a= -J[695492];J[695492]=0;if((a|0)!=1)break m;break j}break j}d=J[c+8>>2];c=J[d+8>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break j;c=J[d+8>>2]}else c=0;J[695492]=0;J[e+32>>2]=c;da(5065,i|0,e+56|0);c=J[695492];J[695492]=0;q:{r:{if((c|0)==1)break r;c=J[J[a>>2]+16>>2];J[695492]=0;da(c|0,a|0,e+32|0);c=J[695492];J[695492]=0;if((c|0)==1)break r;if(J[a+36>>2]<=0){c=0;d=J[a+20>>2];if(d)while(1){f=J[J[d+8>>2]+8>>2];J[695492]=0;f=$(5347,f|0)|0;g=J[695492];J[695492]=0;if((g| -0)==1)break r;c=c+f|0;d=J[d>>2];if(d)continue;break}J[a+36>>2]=c}c=J[e+32>>2];J[e+32>>2]=0;if(!c)break q;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break q;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break q}break k}a=Z()|0;vc(e+32|0);break a}if(J[a+36>>2]>(l|0))continue;break}break l}J[695492]=0;f=ha(5198,e+32|0,2401048,0,c-1|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j;s:{t:{u:{v:{c=J[a+20>>2];if(c)while(1){g=J[c+8>>2];J[695492]=0;J[g+4>> -2]=J[g+4>>2]+1;g=J[695492];J[695492]=0;if((g|0)==1)break h;g=J[c+8>>2];J[e+28>>2]=g;J[g+28>>2]=i;J[g+24>>2]=c;if(!(J[f+16>>2]<=(d|0)&J[f+20>>2]>=(d|0))){J[695492]=0;a=ja(5018,e+56|0,2382673,2374529,619,2404600,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break v;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break m;c=Z()|0;Fc(a);break u}J[J[f+4>>2]+(d-J[f+8>>2]<<2)>>2]=g;J[695492]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;k=J[695492];J[695492]=0;if((k|0)==1)break k;if(!h){J[695492]=0;_(4987,g|0);g= -J[695492];J[695492]=0;if((g|0)==1)break k}d=d+1|0;c=J[c>>2];if(c)continue;break}c=J[f+16>>2];if((c|0)<=0){d=J[f+20>>2];if((d|0)>=0)break t}J[695492]=0;a=ja(5018,e+56|0,2382673,2374529,619,2404600,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break s;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break m;break i}c=Z()|0}vc(e+28|0);xd(f);ba(c|0);B()}g=J[f+4>>2];h=J[f+8>>2];J[695492]=0;ia(5348,g-(h<<2)|0,(d-c|0)+1|0,4,5349);c=J[695492];J[695492]=0;if((c|0)==1)break s;d=J[f+20>>2];c=J[f+16>>2]; -w:{if(((d-c|0)+1|0)<=0)break w;g=0;while(1){if(J[a+36>>2]<=(l|0))break w;if(!((c|0)<=(g|0)&(d|0)>=(g|0))){J[695492]=0;a=ja(5018,e+56|0,2382673,2374529,619,2404600,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break m;break i}c=J[J[f+4>>2]+(g-J[f+8>>2]<<2)>>2];d=J[c+8>>2];J[695492]=0;d=$(5347,d|0)|0;h=J[695492];J[695492]=0;x:{y:{if((h|0)!=1){J[a+36>>2]=J[a+36>>2]-d;d=J[c+8>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]= -0;if((d|0)==1)break h;d=J[c+8>>2]}else d=0;J[695492]=0;J[e+56>>2]=d;da(5065,i|0,c+24|0);c=J[695492];J[695492]=0;if((c|0)==1)break y;c=J[J[a>>2]+16>>2];J[695492]=0;da(c|0,a|0,e+56|0);c=J[695492];J[695492]=0;if((c|0)==1)break y;if(J[a+36>>2]<=0){c=0;d=J[a+20>>2];if(d)while(1){h=J[J[d+8>>2]+8>>2];J[695492]=0;h=$(5347,h|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break y;c=c+h|0;d=J[d>>2];if(d)continue;break}J[a+36>>2]=c}c=J[e+56>>2];J[e+56>>2]=0;if(!c)break x;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h=J[695492]; -J[695492]=0;if((h|0)!=1){if(d)break x;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break x}break k}break h}a=Z()|0;vc(e+56|0);xd(f);break a}g=g+1|0;d=J[f+20>>2];c=J[f+16>>2];if((g|0)<((d-c|0)+1|0))continue;break}}xd(f);break l}break h}B()}bc=e+80|0;break g}ea(0)|0;yc();B()}ba(Z()|0);B()}b=Z()|0;Fc(a);xd(f);ba(b|0);B()}a=Z()|0;xd(f);break a}d=rc(32);J[d>>2]=2404556;J[d+4>>2]=0;c=0;z:{A:{B:{e=J[b>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break B; -c=J[b>>2]}e=d+8|0;J[e>>2]=c;J[695492]=0;c=KO();f=fc;i=J[695492];J[695492]=0;if((i|0)==1){c=Z()|0;vc(e);break A}J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=c;J[d+20>>2]=f;J[j+12>>2]=0;md(j+12|0,d);J[695492]=0;c=$(4,12)|0;d=J[695492];J[695492]=0;C:{if((d|0)==1)break C;J[c>>2]=0;J[c+4>>2]=0;d=J[j+12>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break C;d=J[j+12>>2]}else d=0;J[c+8>>2]=d;J[695492]=0;of(a+12|0,c);c=J[695492];J[695492]=0;if((c|0)==1)break C;c=J[j+12>>2];J[j+12>> -2]=0;D:{if(!c)break D;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break z;if(d)break D;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break z}J[a+36>>2]=J[a+36>>2]+m;gc[J[J[a>>2]+8>>2]](a,b);break c}a=Z()|0;vc(j+12|0);break a}c=Z()|0}qc(ed(d));ba(c|0);B()}break b}bc=j+16|0;return}ea(0)|0;yc();B()}ba(a|0);B()}function ycb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a=bc-320|0;bc=a;J[b>>2]=1;J[b+ -504>>2]=0;q=Dk(J[b+96>>2],240409,1);J[b+488>>2]=q;n=pn(J[J[b+96>>2]+4>>2],240559);J[b+492>>2]=n;a:{if(!n){f=11;break a}h=J[b+100>>2];g=a+4|0;wc(g,0,304);s=b,t=Zd(h,12,a),J[s+496>>2]=t;b:{if(J[a>>2])break b;J[b+500>>2]=12;f=J[b+104>>2];gc[J[J[n+4>>2]>>2]](g,0,0,h);H[a+88|0]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+76>>2]=f;g=nd(f,0);J[a+308>>2]=g;c:{d:{if(g)break d;g=Ue(f,17);J[a+308>>2]=g;if(g)break d;if(Wc(J[f+32>>2],241060,17)){g=2;J[a+308>>2]=2;ne(f);break d}ne(f);g=nd(f,0);J[a+308>>2]=g;if(g)break d;i= -J[f+4>>2];e:{if(!J[f+20>>2]){g=J[f+8>>2];j=J[f>>2];H[a+88|0]=1;J[a+84>>2]=i;J[a+80>>2]=g+j;g=bg(f,i);J[a+308>>2]=g;if(g)break d;i=J[a+84>>2];break e}j=Zd(h,i,a+308|0);J[a+80>>2]=j;g=J[a+308>>2];if(g)break d;g=mg(f,j,i);J[a+308>>2]=g;if(g)break d;J[a+84>>2]=i}h=J[a+80>>2];J[a+8>>2]=h;J[a>>2]=0;break c}if(K[a+88|0]){J[a>>2]=g;break b}f=J[a+80>>2];if(f)gc[J[h+8>>2]](h,f);h=0;J[a+80>>2]=0;f=J[a+308>>2];J[a>>2]=f;if(f)break b;i=J[a+84>>2]}J[a+16>>2]=0;J[a+4>>2]=h;g=i+h|0;J[a+12>>2]=g;gc[J[a+32>>2]](a+ -4|0);f:{g:{h:{f=J[a+4>>2];if(g>>>0>f>>>0){o=b+132|0;m=b+164|0;p=b+464|0;while(1){i:{j:{i=K[f|0];if(!((i|0)!=70|g>>>0<=f+25>>>0)){if(kd(f,241206,13))break j;f=a+4|0;gc[J[a+36>>2]](f);gc[J[a+32>>2]](f);h=J[a+4>>2];f=h;k:{if(g>>>0<=f>>>0)break k;while(1){l:{if(!(K[f|0]!=107|g>>>0<=f+5>>>0))if(!kd(f,241355,5))break l;i=a+4|0;gc[J[a+36>>2]](i);f=J[a+16>>2];if(f)break h;gc[J[a+32>>2]](i);f=J[a+4>>2];if(g>>>0>f>>>0)continue;break k}break}f=a+4|0;gc[J[a+36>>2]](f);gc[J[a+60>>2]](f,a+308|0);h=J[a+316>>2]== -3?J[a+4>>2]:h}J[a+4>>2]=h;break i}if((i|0)!=47|g>>>0<=f+2>>>0)break j;i=f+1|0;J[a+4>>2]=i;gc[J[a+36>>2]](a+4|0);f=J[a+16>>2];if(f)break h;h=J[a+4>>2];if((h|0)==(i|0))break i;k=h-i|0;if(k>>>0>21)break i;f=0;if(g>>>0<=h>>>0)break i;while(1){m:{h=P(f,36);l=h+333200|0;j=J[l>>2];if(!j|K[i|0]!=K[j|0])break m;if((Qc(j)|0)!=(k|0))break m;if(Wc(i,j,k))break m;n:{if(f-15>>>0<=3){gc[J[h+333212>>2]](b,a+4|0);f=J[a+16>>2];break n}f=J[h+333208>>2];o:{p:switch(J[h+333204>>2]-2|0){case 0:J[a+308>>2]=m;break o;case 3:J[a+ -308>>2]=p;break o;default:break p}J[a+308>>2]=o}if(f-9>>>0<=1){f=gc[J[a+72>>2]](a+4|0,l,a+308|0,0,0)|0;break n}f=gc[J[a+68>>2]](a+4|0,l,a+308|0,0,0)|0}J[a+16>>2]=f;if(!f)break i;J[a>>2]=f;break b}f=f+1|0;if((f|0)!=20)continue;break}break i}gc[J[a+36>>2]](a+4|0);f=J[a+16>>2];if(f)break h}gc[J[a+32>>2]](a+4|0);f=J[a+4>>2];if(g>>>0>f>>>0)continue;break}}f=J[a+16>>2];J[a>>2]=f;if(f)break b;if(K[b+437|0]!=42){J[a>>2]=2;break b}h=J[a+148>>2];J[b+420>>2]=h;if(!J[a+216>>2])J[a>>2]=3;i=0;J[a+216>>2]=0;J[b+ -396>>2]=J[a+204>>2];J[b+428>>2]=J[a+228>>2];J[b+432>>2]=J[a+232>>2];J[b+400>>2]=J[a+152>>2];J[b+424>>2]=J[a+176>>2];J[a+176>>2]=0;J[a+152>>2]=0;if(J[b+368>>2]!=1)break b;j=0;k=J[a+112>>2];if((k|0)<=0)break f;g=0;if((h|0)<=0)break g;while(1){l=g<<2;o=J[l+J[a+120>>2]>>2];p=g<<1;I[p+J[b+384>>2]>>1]=0;J[l+J[b+388>>2]>>2]=240981;q:{if(!o)break q;r=J[b+424>>2];f=0;while(1){m=J[(f<<2)+r>>2];if(Ec(o,m)){f=f+1|0;if((h|0)!=(f|0))continue;break q}break}I[p+J[b+384>>2]>>1]=f;J[l+J[b+388>>2]>>2]=m;if(!Ec(240981, -m))break q;j=(g|0)<(j|0)?j:g+1|0;i=(g|0)<(i|0)?g:i}g=g+1|0;if((k|0)!=(g|0))continue;break}break f}J[a>>2]=f;break b}h=0;f=0;if(k>>>0>=4){i=k&-4;while(1){I[J[b+384>>2]+(f<<1)>>1]=0;J[J[b+388>>2]+(f<<2)>>2]=240981;j=f|1;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=240981;j=f|2;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=240981;j=f|3;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=240981;f=f+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=k&3;if(!g){i=0;j=0;break f}while(1){i=0;I[J[b+ -384>>2]+(f<<1)>>1]=0;J[J[b+388>>2]+(f<<2)>>2]=240981;f=f+1|0;j=0;h=h+1|0;if((g|0)!=(h|0))continue;break}}J[b+380>>2]=j;J[b+376>>2]=i;J[b+372>>2]=J[a+92>>2]}f=J[a+144>>2];if(f)gc[f|0](a+96|0);f=J[a+252>>2];if(f)gc[f|0](a+204|0);f=J[a+200>>2];if(f)gc[f|0](a+152|0);f=J[a+304>>2];if(f)gc[f|0](a+256|0);if(!K[a+88|0]){f=J[a+20>>2];g=J[a+80>>2];if(g)gc[J[f+8>>2]](f,g);J[a+80>>2]=0}f=J[a+28>>2];if(f)gc[f|0](a+4|0);f=J[a>>2];if(f|(c|0)<0)break a;f=6;if(c&65535)break a;J[b+36>>2]=0;J[b+4>>2]=0;J[b+24>>2]=240767; -J[b+16>>2]=J[b+420>>2];c=J[b+144>>2];J[b+20>>2]=c;J[b+8>>2]=J[b+8>>2]|(K[b+156|0]?533:529)|2048;r:{if(c){f=J[b+140>>2];if(!f)break r;h=K[f|0];if(!h)break r;while(1){i=h&255;g=K[c|0];s:{if((i|0)==(g|0)){f=f+1|0;c=c+1|0;break s}i=i-32|0;if(!(!i|(i|0)==13)){t:switch(g-32|0){case 0:case 13:c=c+1|0;break s;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break r;default:break t}if(g)break r;J[b+24>>2]=f;break r}f=f+1|0}h=K[f|0];if(h)continue;break}break r}c=J[b+364>> -2];if(!c)break r;J[b+20>>2]=c}J[b+28>>2]=0;J[b+32>>2]=0;J[a+4>>2]=9;s=a,t=gh(J[J[b+96>>2]+4>>2],240862),J[s+24>>2]=t;J[a+8>>2]=J[b+496>>2];J[a+12>>2]=J[b+500>>2];if(d){J[a+32>>2]=e;J[a+28>>2]=d;J[a+4>>2]=25}f=XC(J[J[b+96>>2]+4>>2],a+4|0,0,b+504|0);if(f)break a;_5(J[J[b+504>>2]+88>>2]);c=J[b+504>>2];d=J[c+56>>2];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=d;d=J[c+64>>2];J[b+60>>2]=J[c+60>>2];J[b+64>>2]=d;I[b+68>>1]=L[c+68>>1];I[b+70>>1]=L[c+70>>1];I[b+72>>1]=L[c+72>>1];I[b+74>>1]=L[c+74>>1];I[b+76>>1]=L[c+76>> -1];I[b+78>>1]=L[c+78>>1];I[b+80>>1]=L[b+158>>1];I[b+82>>1]=L[b+160>>1];d=J[b+152>>2]!=0;J[b+12>>2]=d;if(K[c+12|0]&2)J[b+12>>2]=d|2;if(K[c+8|0]&32)J[b+8>>2]=J[b+8>>2]|32;if(!q){f=0;break a}c=J[n+32>>2];J[a+4>>2]=b;J[a+8>>2]=1970170211;J[a+12>>2]=65539;f=Ek(J[c+12>>2],0,a+4|0,0);u:{if(!f)break u;d=f&255;if((d|0)==163)break u;if((d|0)!=7)break a}I[a+12>>1]=7;f=0;v:{w:switch(J[b+368>>2]-1|0){case 1:I[a+14>>1]=0;J[a+8>>2]=1094995778;break v;case 3:I[a+14>>1]=1;J[a+8>>2]=1094992453;c=c+4|0;break v;case 0:I[a+ -14>>1]=2;J[a+8>>2]=1094992451;c=c+8|0;break v;case 2:break w;default:break a}c=c+12|0;I[a+14>>1]=3;J[a+8>>2]=1818326065}b=J[c>>2];if(!b)break a;f=Ek(b,0,a+4|0,0)}bc=a+320|0;return f|0}function $Ca(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0;a:{if(K[a+352|0]|!c)break a;f=J[a+24>>2];while(1){if(!f){J[a+16>>2]=0;i=0;q=0;g=bc-1344|0;bc=g;e=J[a+48>>2];d=1;while(1){d=fv(e,(J[e+20>>2]>>>1|0)+32768|0)|d<<1;if((d|0)<16777216)continue; -break}d=d-16777216|0;J[a+24>>2]=d;b:{c:{d:{e:{f:{g:{if(!d){d=0;break g}if(d>>>0>=4194305){a=Kc(g+32|0,2382653,2374023,230,2383776,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;break c}h:{if((d|0)<=J[a+20>>2])break h;J[a+20>>2]=d;if(!J[a+36>>2])break h;oe(a+40|0,0,1)}if(!J[a+36>>2])oe(a+40|0,J[a+20>>2],1);if(fv(e,(J[e+20>>2]>>>1|0)+32768|0))q=fv(e,(J[e+20>>2]>>>1|0)+32768|0)?2:1;d=g+1088|0;tc(d,2383824,256);J[g+1080>>2]=0;J[g+1084>>2]=0;J[g+1072>>2]=0;J[g+1076>>2]=0;i:{j:{if(J[a+ -24>>2]<=0)break j;x=a+185|0;t=a+184|0;y=a+121|0;u=a+120|0;k=a+88|0;l=a+72|0;o=a- -64|0;r=a+60|0;s=a+58|0;z=a+55|0;A=a+52|0;f=3;C=d|3;D=d|4;m=-1;j=4;while(1){k:{l:{h=(f|0)>=2?2:f;d=h+A|0;f=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;m:{if(f>>>0<=M[e+28>>2]){J[e+20>>2]=f;d=H[d|0]&1;break m}d=ah(e,d,f)}n:{if(d){f=0;d=K[g+1088|0];break n}d=h+z|0;f=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;o:{if(f>>>0<=M[e+28>>2]){J[e+20>>2]=f;d=H[d|0]&1;break o}d=ah(e,d,f)}if(d){f=1;d=K[g+1089|0];break n}f=1;d=J[(e+(K[s|0]<< -2)|0)+44>>2]+J[e+20>>2]|0;p:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[s|0]&1;break p}d=ah(e,s,d)}if(d){while(1){d=f+s|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;q:{if(h>>>0<=M[e+28>>2]){J[e+20>>2]=h;d=H[d|0]&1;break q}d=ah(e,d,h)}f=d|f<<1;if((f|0)<2)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[r|0]<<2)|0)+44>>2]+J[e+20>>2]|0;r:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[r|0]&1;break r}d=ah(e,r,d)}if(d){while(1){d=f+r|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;s:{if(h>>>0<=M[e+28>>2]){J[e+20>> -2]=h;d=H[d|0]&1;break s}d=ah(e,d,h)}f=d|f<<1;if((f|0)<4)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[o|0]<<2)|0)+44>>2]+J[e+20>>2]|0;t:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[o|0]&1;break t}d=ah(e,o,d)}if(d){while(1){d=f+o|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;u:{if(h>>>0<=M[e+28>>2]){J[e+20>>2]=h;d=H[d|0]&1;break u}d=ah(e,d,h)}f=d|f<<1;if((f|0)<8)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[l|0]<<2)|0)+44>>2]+J[e+20>>2]|0;v:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[l|0]&1;break v}d= -ah(e,l,d)}if(d){while(1){d=f+l|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;w:{if(h>>>0<=M[e+28>>2]){J[e+20>>2]=h;d=H[d|0]&1;break w}d=ah(e,d,h)}f=d|f<<1;if((f|0)<16)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[k|0]<<2)|0)+44>>2]+J[e+20>>2]|0;x:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[k|0]&1;break x}d=ah(e,k,d)}if(d){while(1){d=f+k|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;y:{if(h>>>0<=M[e+28>>2]){J[e+20>>2]=h;d=H[d|0]&1;break y}d=ah(e,d,h)}f=d|f<<1;if((f|0)<32)continue;break}d=K[(g+1088| -0)+f|0];break n}d=J[(e+(K[u|0]<<2)|0)+44>>2]+J[e+20>>2]|0;z:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[u|0]&1;break z}d=ah(e,u,d)}if(d){f=IV(e,y,6)- -64|0;d=K[f+(g+1088|0)|0];break n}d=J[(e+(K[t|0]<<2)|0)+44>>2]+J[e+20>>2]|0;A:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[t|0]&1;break A}d=ah(e,t,d)}if(!d)break l;f=IV(e,x,7)+128|0;d=K[f+(g+1088|0)|0]}H[J[a+36>>2]+i|0]=d;j=(j>>q)+j|0;if((j|0)>=268435457){J[g+1072>>2]=K[g+1075|0];J[g+1076>>2]=K[g+1079|0];J[g+1080>>2]=K[g+1083|0];J[g+1084>>2]=K[g+1087|0];j=j>>> -24|0}B:{C:{if((f|0)>=4){Zc(D,C,f-3|0);d=3;h=j;break C}h=J[(g+1072|0)+(f<<2)>>2]+j|0;d=f;if((d|0)<=0)break B}while(1){p=g+1072|0;n=d-1|0;v=J[p+(n<<2)>>2];if(v>>>0>h>>>0)break B;J[p+(d<<2)>>2]=v;p=g+1088|0;H[p+d|0]=K[n+p|0];p=d>>>0>1;d=n;if(p)continue;break}d=0}n=K[J[a+36>>2]+i|0];J[(g+1072|0)+(d<<2)>>2]=h;H[(g+1088|0)+d|0]=n;break k}H[J[a+36>>2]+i|0]=0;f=256;m=i}i=i+1|0;d=J[a+24>>2];if((i|0)<(d|0))continue;break}if((m|0)<=0)break j;if((d|0)>(m|0))break i}a=Kc(g+32|0,2382653,2374023,362,2383776,0); -J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;break c}n=ch(g+1060|0,g+1068|0,J[a+20>>2],4);d=0;wc(J[g+1068>>2],0,J[a+24>>2]<<2);wc(g+32|0,0,1024);f=J[a+36>>2];j=J[g+1068>>2];if((m|0)!=1){e=m&-2;i=0;while(1){q=g+32|0;k=K[d+f|0];l=q+(k<<2)|0;h=J[l>>2];J[j+(d<<2)>>2]=h&16777215|k<<24;J[l>>2]=h+1;k=d|1;l=K[k+f|0];o=(l<<2)+q|0;h=J[o>>2];J[j+(k<<2)>>2]=h&16777215|l<<24;J[o>>2]=h+1;d=d+2|0;i=i+2|0;if((e|0)!=(i|0))continue;break}}if(m&1){i=K[d+f|0];h=(g+32|0)+(i<<2)|0;f=J[h>>2];J[j+ -(d<<2)>>2]=f&16777215|i<<24;J[h>>2]=f+1}f=1;d=m+1|0;j=J[a+24>>2];if((d|0)<(j|0)){h=J[a+36>>2];e=J[g+1068>>2];while(1){j=K[d+h|0];k=(g+32|0)+(j<<2)|0;i=J[k>>2];J[e+(d<<2)>>2]=i&16777215|j<<24;J[k>>2]=i+1;d=d+1|0;j=J[a+24>>2];if((d|0)<(j|0))continue;break}}i=0;while(1){d=i<<2;h=g+32|0;e=d+h|0;k=J[e>>2];J[e>>2]=f;e=h+(d|4)|0;l=J[e>>2];f=f+k|0;J[e>>2]=f;e=h+(d|8)|0;k=J[e>>2];f=f+l|0;J[e>>2]=f;d=h+(d|12)|0;h=J[d>>2];e=d;d=f+k|0;J[e>>2]=d;f=d+h|0;i=i+4|0;if((i|0)!=256)continue;break}f=0;D:{if((j|0)<2)break D; -d=j-1|0;h=d&1;if((j|0)!=2){j=d&-2;i=0;while(1){f=J[J[g+1068>>2]+(f<<2)>>2];e=f>>>24|0;H[(J[a+36>>2]+d|0)-1|0]=e;d=d-2|0;f=J[(J[g+1068>>2]+(J[(g+32|0)+(e<<2)>>2]<<2)|0)+((f&16777215)<<2)>>2];e=f>>>24|0;H[d+J[a+36>>2]|0]=e;f=J[(g+32|0)+(e<<2)>>2]+(f&16777215)|0;i=i+2|0;if((j|0)!=(i|0))continue;break}}if(!h)break D;h=(J[a+36>>2]+d|0)-1|0;d=J[J[g+1068>>2]+(f<<2)>>2];f=d>>>24|0;H[h|0]=f;f=J[(g+32|0)+(f<<2)>>2]+(d&16777215)|0}if((f|0)!=(m|0)){J[695492]=0;a=ja(5018,g+8|0,2382653,2374023,404,2383776,0)|0; -b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;d=Z()|0;Fc(a);break d}d=J[a+24>>2];_c(n)}bc=g+1344|0;break b}B()}d=Z()|0}_c(n);ba(d|0);B()}b=Z()|0;Fc(a);ba(b|0);B()}f=J[a+24>>2];E:{if(d)break E;H[a+352|0]=1;f=1}d=f;f=d-1|0;J[a+24>>2]=f}i=J[a+16>>2];d=(c|0)>(f|0)?f:c;if(!(!b|!d)){b=tc(b,J[a+36>>2]+i|0,d)+d|0;i=J[a+16>>2];f=J[a+24>>2]}J[a+16>>2]=d+i;f=f-d|0;J[a+24>>2]=f;J[a+12>>2]=d+J[a+12>>2];w=d+w|0;c=c-d|0;if(!c)break a;if(!K[a+352| -0])continue;break}}return w|0}function xya(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;g=bc-48|0;bc=g;a:{b:{c:{d:{e:{f:{if(!K[b+144|0]){a=Kc(g+24|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;Fc(a);ba(b|0);B()}n=b+48|0;d=J[b+48>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;J[a>>2]=J[n>>2];break b}m=b+72|0;h=Tk(m);g:{h:{d=J[J[c+12>>2]+((h>>>0)%M[c+8>>2]<<2)>>2];i:{if(d)while(1){if((h|0)==J[d+12>>2])if(Pl(d+16| -0,m))break i;d=J[d+8>>2];if(d)continue;break}p=qv(c,m),q=0,J[p+52>>2]=q;d=g+20|0;Nm(d,J[b+108>>2]);J[g+12>>2]=0;J[g+16>>2]=J[682146];J[695492]=0;da(5108,g+8|0,d|0);d=J[695492];J[695492]=0;j:{k:{l:{m:{n:{o:{p:{q:{if((d|0)!=1){J[695492]=0;j=J[g+8>>2];d=ha(5109,j|0,g+12|0,0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break q;if(d)break n;J[695492]=0;d=ja(5018,g+24|0,J[682138],2374155,1541,2403705,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break p;J[695492]=0;_(5019,d|0);h=J[695492];J[695492]=0;if((h|0)!= -1)break f;e=ea(2411712)|0;h=cc;Fc(d);break o}e=Z()|0;break c}e=Z()|0;break d}e=ea(2411712)|0;h=cc}if((sa(2411712)|0)!=(h|0))break d;d=na(e|0)|0;h=J[J[b>>2]+64>>2];J[695492]=0;ca(h|0,b|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break m;J[695492]=0;ka(4893);d=J[695492];J[695492]=0;if((d|0)!=1)break n;e=Z()|0;break d}d=0;f=J[b+132>>2]<=1?-1:J[b+140>>2];if(!f)break l;J[695492]=0;e=g+12|0;k=ha(5109,j|0,e|0,0,0)|0;i=J[695492];J[695492]=0;h=0;r:{s:{t:{if((i|0)==1)break t;if(!k)break l;J[695492]=0;k=fd(e, -2400157,-1);i=J[695492];J[695492]=0;h=1;if((i|0)==1)break t;if(!k)break s;J[695492]=0;k=fd(e,2382374,-1);i=J[695492];J[695492]=0;if((i|0)==1)break t;J[695492]=0;_(5298,j|0);i=J[695492];J[695492]=0;if((i|0)==1)break t;d=1;if((f|0)==1)break l;J[695492]=0;i=ha(5109,j|0,e|0,0,0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break t;if(!i)break l;J[695492]=0;i=fd(e,2400157,-1);l=J[695492];J[695492]=0;h=2;if((l|0)==1)break t;if(!i)break s;J[695492]=0;i=fd(e,2382374,-1);e=J[695492];J[695492]=0;if((e|0)==1)break t; -J[695492]=0;_(5298,j|0);e=J[695492];J[695492]=0;if((e|0)==1)break t;e=f-2|0;k=!i|!k;while(1){d=h;if(!e){d=f;break l}J[695492]=0;h=ha(5109,j|0,g+12|0,0,0)|0;i=J[695492];J[695492]=0;u:{if((i|0)==1){h=d;break u}if(!h)break l;J[695492]=0;i=g+12|0;l=fd(i,2400157,-1);o=J[695492];J[695492]=0;h=d+1|0;if((o|0)==1)break u;if(!l)break s;J[695492]=0;i=fd(i,2382374,-1);l=J[695492];J[695492]=0;if((l|0)==1)break u;k=i?k:1;if(!(k|K[J[b+108>>2]+8|0])){e=0;J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;f=J[695492];J[695492]= -0;if((f|0)!=1)break j;e=ea(2411712)|0;f=cc;break r}e=e-1|0;J[695492]=0;_(5298,j|0);i=J[695492];J[695492]=0;if((i|0)!=1)continue}break}e=ea(2411712)|0;f=cc;break r}e=ea(2411712)|0;f=cc;break r}J[695492]=0;k=$(4,128)|0;f=J[695492];J[695492]=0;v:{w:{x:{y:{z:{A:{if((f|0)==1)break A;J[695492]=0;f=aa(5224,k|0,m|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break v;J[695492]=0;J[g+24>>2]=0;aa(4985,g+24|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break A;J[695492]=0;f=J[g+24>>2];J[g+4>>2]=0;aa(4985,g+4|0,j|0)| -0;e=J[695492];J[695492]=0;if((e|0)==1)break y;J[695492]=0;da(5328,f|0,J[g+4>>2]);f=J[695492];J[695492]=0;if((f|0)==1)break x;f=J[g+4>>2];J[g+4>>2]=0;B:{if(!f)break B;J[695492]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(e)break B;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}J[695492]=0;aa(4993,n|0,g+24|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break z;h=J[g+24>>2];J[g+24>>2]=0;if(!h)break l;J[695492]=0;f=J[h+4>>2]-1|0;J[h+4>>2]=f;e=J[695492]; -J[695492]=0;if((e|0)!=1){if(f)break l;J[695492]=0;_(4987,h|0);h=J[695492];J[695492]=0;if((h|0)!=1)break l}break a}e=ea(2411712)|0;f=cc;break r}e=ea(2411712)|0;f=cc;break w}e=ea(2411712)|0;f=cc;break w}e=ea(2411712)|0;f=cc;vc(g+4|0)}vc(g+24|0);break r}e=ea(2411712)|0;f=cc;qc(k)}if((sa(2411712)|0)!=(f|0))break d;e=na(e|0)|0;J[695492]=0;j=Mm(e,J[682138]);m=J[695492];J[695492]=0;f=1;if((m|0)==1)break m;if(!j){f=J[b+132>>2];if(J[b+140>>2]<0)J[b+140>>2]=(f|0)>2?h:d;f=(f|0)<2}d=J[J[b>>2]+64>>2];J[695492]= -0;ca(d|0,b|0,e|0,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break m;J[695492]=0;ka(4893);d=J[695492];J[695492]=0;if((d|0)!=1)break k;e=Z()|0;break d}e=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break d;break a}if(J[b+48>>2]|J[b+140>>2]>=0)break k;J[b+140>>2]=d}d=J[b+108>>2];J[695492]=0;da(5099,d|0,1);d=J[695492];J[695492]=0;C:{D:{if((d|0)==1)break D;d=J[n>>2];if(!d)break C;e=0;J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[a>>2]=J[n>>2];break j}e= -Z()|0;break d}if(!K[b+144|0]){J[695492]=0;a=ja(5018,g+24|0,2382727,2374155,164,2402264,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;e=Z()|0;Fc(a);break d}J[695492]=0;d=J[b+148>>2];h=J[695492];J[695492]=0;if((h|0)==1)break e;if(!(d&64)){J[695492]=0;_(5279,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}J[695492]=0;h=aa(5031,g+24|0,b+112|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;d=J[h+8>>2];E:{if(d)while(1){f=J[d+8>>2]; -J[695492]=0;ca(5339,a|0,f|0,c|0);f=J[695492];J[695492]=0;F:{if((f|0)!=1){if(!J[a>>2])break F;e=0;break E}break h}J[a>>2]=0;d=J[d>>2];if(d)continue;break}b=J[b+108>>2];J[695492]=0;e=1;da(5099,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break h}$c(h)}b=J[g+8>>2];J[g+8>>2]=0;G:{if(!b)break G;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break G;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}sc(g+12|0);b=J[g+20>>2];J[g+20>>2]=0;H:{if(!b)break H; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break g;if(c)break H;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break g}if(!e)break b}J[a>>2]=0;md(a,0);break b}e=Z()|0;$c(h);break d}ea(0)|0;yc()}B()}e=Z()|0}vc(g+8|0)}sc(g+12|0);vc(g+20|0);ba(e|0);B()}bc=g+48|0;return}ea(0)|0;yc();B()}function Ysa(){var a=0,b=0,c=0,d=0,e=0,f=0,g=0;d=bc+-64|0;bc=d;if(!K[2778708]){J[694674]=0;J[694675]=0;J[694672]=0;J[694673]=0;J[694670]=0;J[694671]=0;J[694676]=0;Jn(2778680, -2389436);H[2778708]=1}a:{b:{c:{d:{e:{f:{g:{h:{if(J[694671])break h;c=Lm(d+52|0,60);J[695492]=0;b=aa(4989,d+44|0,2386459)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;e=aa(5168,2778680,b|0)|0;a=J[695492];J[695492]=0;i:{j:{if((a|0)!=1){a=J[c>>2];if(!a)break j;f=J[J[a>>2]+28>>2];J[695492]=0;ca(f|0,d+36|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break i}break e}J[d+36>>2]=0}J[695492]=0;aa(4993,e+24|0,d+36|0)|0;a=J[695492];J[695492]=0;k:{if((a|0)!=1){a=J[d+36>>2];J[d+36>>2]=0;if(!a)break k; -J[695492]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break k;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break k}break d}a=Z()|0;vc(d+36|0);break c}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2728584)>>2];a=J[b>>2];J[b>>2]=0;l:{if(!a)break l;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break d;if(b)break l;J[695492]=0;_(4987,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break d}b=J[c>>2];J[c>>2]=0;m:{if(!b)break m;J[695492]=0;c=J[b+4>> -2]-1|0;J[b+4>>2]=c;a=J[695492];J[695492]=0;if((a|0)==1)break d;if(c)break m;J[695492]=0;_(4987,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d}c=Lm(d+52|0,62);J[695492]=0;b=aa(4989,d+36|0,2386768)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;e=aa(5168,2778680,b|0)|0;a=J[695492];J[695492]=0;n:{o:{if((a|0)!=1){a=J[c>>2];if(!a)break o;f=J[J[a>>2]+28>>2];J[695492]=0;ca(f|0,d+28|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break n}break e}J[d+28>>2]=0}J[695492]=0;aa(4993,e+24|0,d+28|0)|0; -a=J[695492];J[695492]=0;p:{if((a|0)!=1){a=J[d+28>>2];J[d+28>>2]=0;if(!a)break p;J[695492]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break p;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break p}break d}a=Z()|0;vc(d+28|0);break c}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2728584)>>2];a=J[b>>2];J[b>>2]=0;q:{if(!a)break q;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break d;if(b)break q;J[695492]=0;_(4987,a|0);b=J[695492];J[695492]= -0;if((b|0)==1)break d}b=J[c>>2];J[c>>2]=0;r:{if(!b)break r;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[695492];J[695492]=0;if((a|0)==1)break d;if(c)break r;J[695492]=0;_(4987,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d}c=Lm(d+52|0,38);J[695492]=0;b=aa(4989,d+28|0,2387077)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;e=aa(5168,2778680,b|0)|0;a=J[695492];J[695492]=0;s:{t:{if((a|0)!=1){a=J[c>>2];if(!a)break t;f=J[J[a>>2]+28>>2];J[695492]=0;ca(f|0,d+20|0,a|0,1);a=J[695492];J[695492]= -0;if((a|0)!=1)break s}break e}J[d+20>>2]=0}J[695492]=0;aa(4993,e+24|0,d+20|0)|0;a=J[695492];J[695492]=0;u:{if((a|0)!=1){a=J[d+20>>2];J[d+20>>2]=0;if(!a)break u;J[695492]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break u;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break u}break d}a=Z()|0;vc(d+20|0);break c}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2728584)>>2];a=J[b>>2];J[b>>2]=0;v:{if(!a)break v;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]= -0;if((e|0)==1)break d;if(b)break v;J[695492]=0;_(4987,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break d}b=J[c>>2];J[c>>2]=0;w:{if(!b)break w;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[695492];J[695492]=0;if((a|0)==1)break d;if(c)break w;J[695492]=0;_(4987,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d}c=Lm(d+52|0,39);J[695492]=0;b=aa(4989,d+20|0,2387295)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;e=aa(5168,2778680,b|0)|0;a=J[695492];J[695492]=0;x:{y:{if((a|0)!=1){a=J[c>>2];if(!a)break y; -f=J[J[a>>2]+28>>2];J[695492]=0;ca(f|0,d+12|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break x}break e}J[d+12>>2]=0}J[695492]=0;aa(4993,e+24|0,d+12|0)|0;a=J[695492];J[695492]=0;z:{if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;if(!a)break z;J[695492]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break z;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break z}break d}a=Z()|0;vc(d+12|0);break c}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2728584)>>2];a=J[b>>2];J[b>>2]=0;A:{if(!a)break A; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break d;if(b)break A;J[695492]=0;_(4987,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break d}b=J[c>>2];J[c>>2]=0;B:{if(!b)break B;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[695492];J[695492]=0;if((a|0)==1)break d;if(c)break B;J[695492]=0;_(4987,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d}b=Lm(d+52|0,34);J[695492]=0;c=aa(4989,d+12|0,2387610)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;e=aa(5168,2778680,c|0)| -0;a=J[695492];J[695492]=0;C:{D:{if((a|0)!=1){a=J[b>>2];if(!a)break D;f=J[J[a>>2]+28>>2];J[695492]=0;ca(f|0,d+60|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break C}a=Z()|0;sc(c);break f}J[d+60>>2]=0}J[695492]=0;aa(4993,e+24|0,d+60|0)|0;a=J[695492];J[695492]=0;E:{if((a|0)!=1){a=J[d+60>>2];J[d+60>>2]=0;if(!a)break E;J[695492]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break E;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break E}break d}a=Z()|0;vc(d+60|0); -sc(c);break f}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2728584)>>2];a=J[c>>2];J[c>>2]=0;F:{if(!a)break F;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break d;if(c)break F;J[695492]=0;_(4987,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break d}c=J[b>>2];J[b>>2]=0;if(!c)break h;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)==1)break d;if(b)break h;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break d}bc=d- -64|0;return}a=Z()|0}sc(b);ba(a| -0);B()}d=Z()|0;sc(b);break a}ea(0)|0;yc();B()}sc(b);sc(c);ba(a|0);B()}d=Z()|0}sc(c);ba(d|0);B()}function mi(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=Q(0);if(qE(a)){if(!(c?b:0)){c=K[43262]|K[43263]<<8|(K[43264]<<16|K[43265]<<24);b=K[43258]|K[43259]<<8|(K[43260]<<16|K[43261]<<24);H[a+125|0]=b;H[a+126|0]=b>>>8;H[a+127|0]=b>>>16;H[a+128|0]=b>>>24;H[a+129|0]=c;H[a+130|0]=c>>>8;H[a+131|0]=c>>>16;H[a+132|0]=c>>>24;c=K[43257]|K[43258]<<8|(K[43259]<<16|K[43260]<<24);b=K[43253]|K[43254]<<8|(K[43255]<< -16|K[43256]<<24);H[a+120|0]=b;H[a+121|0]=b>>>8;H[a+122|0]=b>>>16;H[a+123|0]=b>>>24;H[a+124|0]=c;H[a+125|0]=c>>>8;H[a+126|0]=c>>>16;H[a+127|0]=c>>>24;c=K[43249]|K[43250]<<8|(K[43251]<<16|K[43252]<<24);b=K[43245]|K[43246]<<8|(K[43247]<<16|K[43248]<<24);H[a+112|0]=b;H[a+113|0]=b>>>8;H[a+114|0]=b>>>16;H[a+115|0]=b>>>24;H[a+116|0]=c;H[a+117|0]=c>>>8;H[a+118|0]=c>>>16;H[a+119|0]=c>>>24;c=K[43241]|K[43242]<<8|(K[43243]<<16|K[43244]<<24);b=K[43237]|K[43238]<<8|(K[43239]<<16|K[43240]<<24);H[a+104|0]=b;H[a+ -105|0]=b>>>8;H[a+106|0]=b>>>16;H[a+107|0]=b>>>24;H[a+108|0]=c;H[a+109|0]=c>>>8;H[a+110|0]=c>>>16;H[a+111|0]=c>>>24;c=K[43233]|K[43234]<<8|(K[43235]<<16|K[43236]<<24);b=K[43229]|K[43230]<<8|(K[43231]<<16|K[43232]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]=b>>>16;H[a+99|0]=b>>>24;H[a+100|0]=c;H[a+101|0]=c>>>8;H[a+102|0]=c>>>16;H[a+103|0]=c>>>24;c=K[43225]|K[43226]<<8|(K[43227]<<16|K[43228]<<24);b=K[43221]|K[43222]<<8|(K[43223]<<16|K[43224]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]= -b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[43217]|K[43218]<<8|(K[43219]<<16|K[43220]<<24);b=K[43213]|K[43214]<<8|(K[43215]<<16|K[43216]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[43209]|K[43210]<<8|(K[43211]<<16|K[43212]<<24);b=K[43205]|K[43206]<<8|(K[43207]<<16|K[43208]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>> -16;H[a+79|0]=c>>>24;return 0}g=Q(Q(b>>>0)*Q(c>>>0));f=1;a:{if(d>>>0<2)break a;f=4;if(d>>>0<5)break a;f=d>>>0>8?24:8}if(Q(Q(g*Q(f>>>0))*Q(.125))>Q(1073741824)){b=K[43913]|K[43914]<<8|(K[43915]<<16|K[43916]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]=b>>>16;H[a+99|0]=b>>>24;c=K[43909]|K[43910]<<8|(K[43911]<<16|K[43912]<<24);b=K[43905]|K[43906]<<8|(K[43907]<<16|K[43908]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[43901]| -K[43902]<<8|(K[43903]<<16|K[43904]<<24);b=K[43897]|K[43898]<<8|(K[43899]<<16|K[43900]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[43893]|K[43894]<<8|(K[43895]<<16|K[43896]<<24);b=K[43889]|K[43890]<<8|(K[43891]<<16|K[43892]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}d=2;b:{c:switch(f-1|0){case 3:d=16;break b;case 7:d= -256;break b;case 0:break b;default:break c}d=0}J[a+44>>2]=d;J[a+12>>2]=40;J[a+68>>2]=e;J[a+28>>2]=0;I[a+26>>1]=f;I[a+24>>1]=1;J[a+20>>2]=c;J[a+16>>2]=b;b=P(b,f)+31>>>3&536870908;J[a+52>>2]=b;b=P(b,c);J[a+32>>2]=b;b=zc((b+(J[a+44>>2]<<2)|0)+40|0);J[a+4>>2]=b;if(!b){c=K[43994]|K[43995]<<8|(K[43996]<<16|K[43997]<<24);b=K[43990]|K[43991]<<8|(K[43992]<<16|K[43993]<<24);H[a+102|0]=b;H[a+103|0]=b>>>8;H[a+104|0]=b>>>16;H[a+105|0]=b>>>24;H[a+106|0]=c;H[a+107|0]=c>>>8;H[a+108|0]=c>>>16;H[a+109|0]=c>>>24;c= -K[43988]|K[43989]<<8|(K[43990]<<16|K[43991]<<24);b=K[43984]|K[43985]<<8|(K[43986]<<16|K[43987]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]=b>>>16;H[a+99|0]=b>>>24;H[a+100|0]=c;H[a+101|0]=c>>>8;H[a+102|0]=c>>>16;H[a+103|0]=c>>>24;c=K[43980]|K[43981]<<8|(K[43982]<<16|K[43983]<<24);b=K[43976]|K[43977]<<8|(K[43978]<<16|K[43979]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[43972]|K[43973]<<8|(K[43974]<<16|K[43975]<< -24);b=K[43968]|K[43969]<<8|(K[43970]<<16|K[43971]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[43964]|K[43965]<<8|(K[43966]<<16|K[43967]<<24);b=K[43960]|K[43961]<<8|(K[43962]<<16|K[43963]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}J[a+8>>2]=(J[a+12>>2]+(b+J[a+32>>2]|0)|0)+(J[a+44>>2]<<2);b=J[a+4>>2];b=b?J[a+44>>2]?b+ -40|0:0:0;if(b)wc(b,0,J[a+44>>2]<<2);b=J[a+960>>2];if(b){if(b){qc(b);J[a+960>>2]=0}J[a+376>>2]=0;J[a+380>>2]=0;J[a+372>>2]=J[a+16>>2];J[a+384>>2]=J[a+20>>2]}if(J[a+964>>2])SD(a);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);b=J[a+4>>2];c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24;d=K[a+48|0]|K[a+49|0]<<8|(K[a+50|0]<<16|K[a+51|0]<<24);c=K[a+44|0]|K[a+45|0]<<8|(K[a+46| -0]<<16|K[a+47|0]<<24);H[b+32|0]=c;H[b+33|0]=c>>>8;H[b+34|0]=c>>>16;H[b+35|0]=c>>>24;H[b+36|0]=d;H[b+37|0]=d>>>8;H[b+38|0]=d>>>16;H[b+39|0]=d>>>24;d=K[a+40|0]|K[a+41|0]<<8|(K[a+42|0]<<16|K[a+43|0]<<24);c=K[a+36|0]|K[a+37|0]<<8|(K[a+38|0]<<16|K[a+39|0]<<24);H[b+24|0]=c;H[b+25|0]=c>>>8;H[b+26|0]=c>>>16;H[b+27|0]=c>>>24;H[b+28|0]=d;H[b+29|0]=d>>>8;H[b+30|0]=d>>>16;H[b+31|0]=d>>>24;d=K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24);c=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);H[b+16|0]=c; -H[b+17|0]=c>>>8;H[b+18|0]=c>>>16;H[b+19|0]=c>>>24;H[b+20|0]=d;H[b+21|0]=d>>>8;H[b+22|0]=d>>>16;H[b+23|0]=d>>>24;d=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]=c>>>16;H[b+11|0]=c>>>24;H[b+12|0]=d;H[b+13|0]=d>>>8;H[b+14|0]=d>>>16;H[b+15|0]=d>>>24;b=J[a+4>>2];d:{if(!b){f=0;b=0;break d}f=J[a+4>>2];b=(b+J[b>>2]|0)+(J[a+44>>2]<<2)|0}J[a+56>>2]=b}return f|0}function Xkb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e= -e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=bc-16|0;bc=g;J[g+4>>2]=0;f=J[e+32>>2];j=J[f+100>>2];a:{b:{c:{d:{if(kd(a,241846,7))break d;e:{c=K[a+7|0];switch(c|0){case 0:case 9:case 10:case 13:case 32:break e;default:break d}}J[g+12>>2]=0;d=J[f+88>>2];k=d;d=(c?-8:-7)+b|0;h=d+1|0;i=Sc(j,1,k,k+h|0,J[f+84>>2],g+12|0);J[f+84>>2]=i;b=J[g+12>>2];if(!b){m=tc(i+J[f+88>>2]|0,c?a+8|0:a+7|0,d)+d|0,n=10,H[m|0]=n;J[f+88>>2]=h+J[f+88>>2];b=J[g+12>>2]}J[g+4>>2]=b;break c}f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{h=J[e>>2];if(!(h& -32)){if(kd(a,242589,5))break o;p:switch(K[a+5|0]){case 0:case 9:case 10:case 13:case 32:break p;default:break o}b=tl(e+40|0,242198,a,b);J[g+4>>2]=b;if(b)break b;b=J[J[e+40>>2]+4>>2];if(!b)break i;a=H[b|0];c=a&255;if(!c|!(K[(c>>>3|0)+254784|0]>>>(a&7)&1))break i;c=0;q:{r:{while(1){if(c>>>0>=429496728){b=f+48|0;a=M[e+60>>2]/20|0;c=e+4|0;break r}c=K[a+254816|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+254784|0]>>>(a&7)&1)continue;break}J[f+48>>2]=c;J[e+4>>2]=c;b=f+48|0;a=M[e+60>>2]/20|0;if(c>>> -0<=a>>>0){a=c;break q}c=e+4|0}J[b>>2]=a;J[c>>2]=a}if(!a)break h;if(a>>>0<1114112)break g;b=6;break j}s:{t:{if(kd(a,254982,7))break t;u:switch(K[a+7|0]){case 0:case 9:case 10:case 13:case 32:break u;default:break t}if(!(h&4032))break s;b=186;break j}v:{if(kd(a,254990,7))break v;w:switch(K[a+7|0]){case 0:case 9:case 10:case 13:case 32:break w;default:break v}J[e+28>>2]=0;J[e>>2]=h&-4033;break f}c=h&64;if(!(!c|J[e+28>>2]!=-1|J[J[e+36>>2]+4>>2]))break f;x:{if(kd(a,254998,9))break x;y:switch(K[a+9|0]){case 0:case 9:case 10:case 13:case 32:break y; -default:break x}if(h&4032)break k;c=J[e+24>>2];if(c)gc[J[j+8>>2]](j,c);J[e+24>>2]=0;c=e+40|0;b=tl(c,242198,a,b);J[g+4>>2]=b;if(b)break b;F6(c);a=E6(c,g+8|0);if(!a)break l;c=J[g+8>>2]+1|0;d=Sc(j,1,0,c,0,g+4|0);J[e+24>>2]=d;b=J[g+4>>2];if(b)break b;tc(d,a,c);J[e>>2]=J[e>>2]|64;break f}z:{if(kd(a,255008,8))break z;A:switch(K[a+8|0]){case 0:case 9:case 10:case 13:case 32:break A;default:break z}if(!c)break k;b=tl(e+40|0,242198,a,b);J[g+4>>2]=b;if(b)break b;c=J[e+40>>2];a=D6(J[c+4>>2]);b=(a|0)>=0;a=b? -a:-1;J[e+28>>2]=a;if(!(M[e+48>>2]<3|b)){a=D6(J[c+8>>2]);J[e+28>>2]=a}if(a-1114112>>>0<=4293853182){J[e+28>>2]=-1;break n}if((a|0)<0)break n;b=J[f+52>>2];B:{if((b|0)!=J[f+48>>2]){c=J[f+56>>2];break B}c=Sc(j,36,b,b- -64|0,J[f+56>>2],g+4|0);J[f+56>>2]=c;b=J[g+4>>2];if(b)break b;J[f+48>>2]=J[f+48>>2]- -64;b=J[f+52>>2];a=J[e+28>>2]}J[f+52>>2]=b+1;d=J[e+24>>2];b=P(b,36)+c|0;J[b+4>>2]=a;J[b>>2]=d;break m}if(h&128){c=J[e+28>>2]==-1;c=J[f+(c?68:56)>>2]+P(J[f+(c?64:52)>>2],36)|0;if(h&2048){b=J[e+8>>2];if(b>>> -0>=L[c-22>>1]){if((h|0)<0)break f;J[e>>2]=h|-2147483648;break f}h=c-24|0;d=c-36|0;c=J[d+28>>2];b=J[d+24>>2]+P(b,c)|0;f=0;d=c<<1;C:{if(!d){c=0;break C}D:{while(1){c=f;i=K[f+a|0];f=i<<24>>24;if(!(K[(i>>>3|0)+255056|0]>>>(f&7)&1))break D;H[b|0]=K[f+254816|0]+(K[b|0]<<4);f=c+1|0;if(!(!(c&1)|d>>>0<=f>>>0)){H[b+1|0]=0;b=b+1|0}if((d|0)!=(f|0))continue;break}c=d;break C}f=J[e>>2];if(f&1073741824)break C;J[e>>2]=f|1073741824}f=L[h>>1];if(f)H[b|0]=K[b|0]&K[(P(f,L[J[e+32>>2]+96>>1])&7)+255017|0];E:{if((c|0)!= -(d|0))break E;a=K[a+d|0];if(!(K[(a>>>3|0)+255056|0]>>>(a&7)&1))break E;a=J[e>>2];if(a&1073741824)break E;J[e>>2]=a|1073741824}J[e+8>>2]=J[e+8>>2]+1;break f}F:{if(kd(a,255025,6))break F;G:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break G;default:break F}b=tl(e+40|0,242198,a,b);J[g+4>>2]=b;if(b)break b;m=c-28|0,n=rx(J[J[e+40>>2]+4>>2]),I[m>>1]=n;J[e>>2]=J[e>>2]|256;break f}H:{if(kd(a,255032,6))break H;I:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break I;default:break H}b=tl(e+ -40|0,242198,a,b);J[g+4>>2]=b;if(b)break b;b=rx(J[J[e+40>>2]+4>>2]);I[c-26>>1]=b;a=J[e>>2];if(!(a&256)){m=c-28|0,n=Dd(b&65535,72E3,P(J[f+20>>2],J[f+16>>2])),I[m>>1]=n;a=J[e>>2]}J[e>>2]=a|512;break f}J:{if(kd(a,255039,3))break J;K:switch(K[a+3|0]){case 0:case 9:case 10:case 13:case 32:break K;default:break J}b=tl(e+40|0,242198,a,b);J[g+4>>2]=b;if(b)break b;a=c-36|0;d=J[e+40>>2];h=hD(J[d+4>>2]);I[a+12>>1]=h;i=hD(J[d+8>>2]);I[a+14>>1]=i;b=sx(J[d+12>>2]);I[a+16>>1]=b;d=sx(J[d+16>>2]);I[a+18>>1]=d;l=0- -d|0;I[a+22>>1]=l;k=a;a=d+i|0;I[k+20>>1]=a;d=b+h|0;I[e+22>>1]=d;a=a<<16>>16;i=I[e+18>>1];I[e+18>>1]=(a|0)>(i|0)?a:i;a=I[e+20>>1];i=l<<16>>16;I[e+20>>1]=(a|0)>(i|0)?a:i;a=d<<16>>16;d=I[e+16>>1];I[e+16>>1]=(a|0)>(d|0)?a:d;a=I[e+12>>1];I[e+12>>1]=(a|0)>(b|0)?b:a;a=I[e+14>>1];I[e+14>>1]=(a|0)<(b|0)?b:a;a=J[e>>2];if(!(a&512))I[c-26>>1]=h;L:{if(!J[J[e+36>>2]>>2])break L;b=c-36|0;c=Dd(L[b+10>>1],72E3,P(J[f+20>>2],J[f+16>>2]));a=J[e>>2];if(L[b+8>>1]==(c&65535))break L;I[b+8>>1]=c;a=a|4096}J[e>>2]=a|1024;break f}if(kd(a, -255043,6))break l;M:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break M;default:break l}b=183;if(!(h&1024))break j;a=c-36|0;d=P(L[f+96>>1],L[a+12>>1]);b=d+7>>>3|0;J[a+28>>2]=b;N:{if(d>>>0<=524280){a=P(b,L[a+14>>1]);if(a>>>0<65536)break N}b=184;break j}b=c-36|0;I[b+32>>1]=a;m=b,n=Sc(j,1,0,a,0,g+4|0),J[m+24>>2]=n;b=J[g+4>>2];if(b)break b;J[e+8>>2]=0;J[e>>2]=J[e>>2]|2048;break f}b=182;break j}Kl(J[f+56>>2],J[f+52>>2],36,1646);J[e>>2]=J[e>>2]&-2;J[d>>2]=1647;break f}b=180;break j}if(J[J[e+ -36>>2]+4>>2]){a=J[f+64>>2];O:{if((a|0)!=J[f+60>>2]){c=J[f+68>>2];break O}c=Sc(j,36,a,a+4|0,J[f+68>>2],g+4|0);J[f+68>>2]=c;b=J[g+4>>2];if(b)break b;J[f+60>>2]=J[f+60>>2]+4;a=J[f+64>>2]}b=P(a,36)+c|0;J[b>>2]=J[e+24>>2];J[f+64>>2]=a+1;J[b+4>>2]=a;break m}a=J[e+24>>2];if(a)gc[J[j+8>>2]](j,a)}J[e+24>>2]=0;J[e>>2]=J[e>>2]&1073741695|128;break f}b=3;break j}b=181}J[g+4>>2]=b;break b}J[f+48>>2]=0;J[e+4>>2]=0;b=f+48|0}a=64;J[b>>2]=64}m=f,n=Sc(j,36,0,a,0,g+4|0),J[m+56>>2]=n;b=J[g+4>>2];if(b)break b;J[e>>2]= -J[e>>2]|32}b=J[g+4>>2]}if(b)break b;b=0;break a}if(!(K[e|0]&64))break a;a=J[e+24>>2];if(a)gc[J[j+8>>2]](j,a);J[e+24>>2]=0;b=J[g+4>>2]}bc=g+16|0;return b|0}function BVa(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=bc-128|0;bc=c;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;h=Cp(c+120|0);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{d=K[b+11|0];k:{if(!(d<<24>>24<0?J[b+4>>2]:d))break k;J[695492]=0;b=aa(3314,h|0,b|0)|0;d=J[695492];J[695492]=0;l:{m:{n:{if((d|0)==1)break n;if(!b)break k;J[695492]=0;b=$(3315,h|0)| -0;d=J[695492];J[695492]=0;if((d|0)==1)break n;if(!b)break k;J[695492]=0;f=c+32|0;da(3316,f|0,h|0);d=J[695492];J[695492]=0;b=1;if((d|0)!=1){e=K[c+43|0];d=e<<24>>24;g=e;e=(d|0)<0;if(((e?J[c+36>>2]:g)|0)==4){b=e?J[c+32>>2]:f;b=(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))!=2036625250}if((d|0)<0)qc(J[c+32>>2]);if(b)break k;J[c+40>>2]=0;J[c+44>>2]=1076101120;J[c+36>>2]=4;I[c+32>>1]=0;wc(c+48|0,0,68);o:{p:{q:{r:{s:{while(1){J[695492]=0;b=vi(h);d=J[695492];J[695492]=0;if((d|0)==1)break m;if(!b)break s; -J[695492]=0;f=c+20|0;da(3316,f|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1)break r;b=0;e=K[c+31|0];d=e<<24>>24;g=e;e=(d|0)<0;if(((e?J[c+24>>2]:g)|0)==5)b=!Wc(e?J[c+20>>2]:f,838216,5);if((d|0)<0)qc(J[c+20>>2]);if(!b)continue;break}J[695492]=0;b=c+20|0;da(3318,b|0,h|0);d=J[695492];J[695492]=0;if((d|0)==1)break q;J[695492]=0;da(3319,b|0,c+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break p;if(H[c+31|0]>=0)break s;qc(J[c+20>>2])}J[695492]=0;Ri(h);b=J[695492];J[695492]=0;if((b|0)!=1)break o;b=Z()|0;break b}b= -Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[c+31|0]>=0)break b;qc(J[c+20>>2]);break b}J[695492]=0;l=Qg(h);b=J[695492];J[695492]=0;if((b|0)==1)break d;while(1){J[695492]=0;b=aa(3322,h|0,l|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;if(!b)break l;J[695492]=0;f=c+20|0;da(3316,f|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;b=1;e=K[c+31|0];g=e<<24>>24;d=(g|0)<0;b=((d?J[c+24>>2]:e)|0)==1?K[(d?J[c+20>>2]:f)|0]!=112:b;if((g|0)<0)qc(J[c+20>>2]);if(b)continue;J[695492]=0;k=Qg(h);b=J[695492];J[695492]= -0;if((b|0)==1)break g;J[695492]=0;b=Gh(h);d=J[695492];J[695492]=0;if((d|0)==1)break g;if(b)continue;J[695492]=0;b=aa(3322,h|0,k|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;if(!b)continue;while(1){J[695492]=0;da(3316,c+20|0,h|0);b=J[695492];J[695492]=0;t:{u:{if((b|0)!=1){f=K[c+31|0];b=f<<24>>24;d=(b|0)<0;v:{w:switch((d?J[c+24>>2]:f)-4|0){case 0:b=d?J[c+20>>2]:c+20|0;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))!=1851879539)break u;J[695492]=0;d=$(4,88)|0;b=J[695492];J[695492]=0;if((b|0)== -1)break i;J[695492]=0;f=aa(3324,d|0,c+32|0)|0;b=J[695492];J[695492]=0;x:{y:{z:{A:{if((b|0)!=1){B:{while(1){J[695492]=0;b=vi(h);d=J[695492];J[695492]=0;if((d|0)==1)break v;if(!b)break B;J[695492]=0;e=c+8|0;da(3316,e|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1)break A;b=0;g=K[c+19|0];d=g<<24>>24;i=g;g=(d|0)<0;if(((g?J[c+12>>2]:i)|0)==5)b=!Wc(g?J[c+8>>2]:e,838216,5);if((d|0)<0)qc(J[c+8>>2]);if(!b)continue;break}J[695492]=0;b=c+8|0;da(3318,b|0,h|0);d=J[695492];J[695492]=0;if((d|0)==1)break z;J[695492]= -0;da(3319,b|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break y;if(H[c+19|0]>=0)break B;qc(J[c+8>>2])}J[695492]=0;Ri(h);b=J[695492];J[695492]=0;if((b|0)!=1)break x;break i}b=Z()|0;qc(d);break h}b=Z()|0;break h}b=Z()|0;break h}b=Z()|0;if(H[c+19|0]>=0)break h;qc(J[c+8>>2]);break h}J[695492]=0;da(3325,c+8|0,h|0);b=J[695492];J[695492]=0;if((b|0)!=1){if(H[f+83|0]<0)qc(J[f+72>>2]);b=J[c+12>>2];J[f+72>>2]=J[c+8>>2];J[f+76>>2]=b;J[f+80>>2]=J[c+16>>2];b=J[a+4>>2];if((b|0)!=J[a+8>>2]){J[b>>2]=f;J[a+4>>2]=b+ -4;break u}C:{D:{i=J[a>>2];d=b-i|0;j=d>>2;e=j+1|0;E:{if(e>>>0>=1073741824){J[695492]=0;_(3326,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break E;break j}g=d>>1;g=d>>>0>=2147483644?1073741823:e>>>0>>0?g:e;if(!g){e=0;break C}if(g>>>0<1073741824)break D;J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break j}b=Z()|0;break h}J[695492]=0;e=$(4,g<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i}d=(j<<2)+e|0;J[d>>2]=f;f=d+4|0;if((b|0)!=(i|0)){while(1){d=d-4|0;b=b-4|0;J[d>>2]=J[b>>2];if((b|0)!=(i| -0))continue;break}b=J[a>>2]}J[a+8>>2]=(g<<2)+e;J[a+4>>2]=f;J[a>>2]=d;if(!b)break u;qc(b);break u}b=Z()|0;break h;case 1:break w;default:break t}if(Wc(d?J[c+20>>2]:c+20|0,838436,5))break u;J[695492]=0;d=$(4,88)|0;b=J[695492];J[695492]=0;F:{G:{H:{if((b|0)==1)break H;J[695492]=0;f=aa(3324,d|0,c+32|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break G;J[695492]=0;da(3318,c+8|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1)break F;if(H[f+83|0]<0)qc(J[f+72>>2]);b=J[c+12>>2];J[f+72>>2]=J[c+8>>2];J[f+76>>2]=b;J[f+ -80>>2]=J[c+16>>2];b=J[a+4>>2];if((b|0)!=J[a+8>>2]){J[b>>2]=f;J[a+4>>2]=b+4;break u}I:{J:{i=J[a>>2];d=b-i|0;j=d>>2;e=j+1|0;K:{if(e>>>0>=1073741824){J[695492]=0;_(3326,a|0);break K}g=d>>1;g=d>>>0>=2147483644?1073741823:e>>>0>>0?g:e;if(!g){e=0;break I}if(g>>>0<1073741824)break J;J[695492]=0;ka(209)}b=J[695492];J[695492]=0;if((b|0)!=1)break j;b=Z()|0;break h}J[695492]=0;e=$(4,g<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break H}d=(j<<2)+e|0;J[d>>2]=f;f=d+4|0;if((b|0)!=(i|0)){while(1){d=d-4|0;b=b-4| -0;J[d>>2]=J[b>>2];if((b|0)!=(i|0))continue;break}b=J[a>>2]}J[a+8>>2]=(g<<2)+e;J[a+4>>2]=f;J[a>>2]=d;if(!b)break u;qc(b);break u}b=Z()|0;break h}b=Z()|0;qc(d);break h}b=Z()|0;break h}b=Z()|0;break h}b=Z()|0;break b}b=K[c+31|0]}if(b<<24>>24<0)qc(J[c+20>>2]);J[695492]=0;b=aa(3322,h|0,k|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(b)continue;break}continue}}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break b}if(H[c+115|0]<0)qc(J[c+104>>2]);if(H[c+103|0]<0)qc(J[c+92>>2]);if(H[c+91|0]>=0)break k;qc(J[c+ -80>>2])}J[h>>2]=768024;a=J[h+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);bc=c+128|0;return}B()}b=Z()|0}if(H[c+31|0]>=0)break b;qc(J[c+20>>2]);break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0}if(H[c+115|0]<0)qc(J[c+104>>2]);if(H[c+103|0]<0)qc(J[c+92>>2]);if(H[c+91|0]<0)qc(J[c+80>>2])}J[h>>2]=768024;c=J[h+4>>2];if(c)gc[J[J[c>>2]+4>>2]](c);c=J[a>>2];if(c){J[a+4>>2]=c;qc(c)}ba(b|0);B()}function PH(a){var b=0,c=0,d=0,e=0,f=0,g=0;g=bc-16|0;bc=g;a:{b:{if(!J[a+28>>2]){c=J[a+56>>2];c:{d:{if((c| -0)<2)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<2-c;break c}b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-6)continue;break d}e=J[a+52>>2]}b=e>>>c-2|0}f=-2;e:{d=b<<4&48;if(L[(d<<2)+2305312>>1]==2)break e;f:{g:{if((c|0)<=2)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break g;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-5)continue;break}b=e>>>c-3|0; -break f}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<3-c}f=-3;d=b<<3&56;if(L[(d<<2)+2305312>>1]==3)break e;h:{i:{if((c|0)<=3)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break i;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-4)continue;break}b=e>>>c-4|0;break h}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<4-c}f=-4;d=b<<2&60;if(L[(d<<2)+2305312>>1]==4)break e;j:{k:{if((c|0)<=4)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break k; -b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-3)continue;break}b=e>>>c-5|0;break j}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<5-c}f=-5;d=b<<1&62;if(L[(d<<2)+2305312>>1]==5)break e;l:{m:{if((c|0)<=5)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break m;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-2)continue;break}b=e>>>c-6|0;break l}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<6-c}f=-6;d=b&63;if(L[(d<<2)+2305312>> -1]==6)break e;n:{o:{if((c|0)<=6)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<7-c;break o}b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-1)continue;break}b=e>>>c-7|0}b=b<<5&4064;if(b>>>0>=64){f=-7;d=b+-64|0;if(L[(d<<2)+2304288>>1]==7)break n}p:{q:{if((c|0)<=7)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break q;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b| -0)<0)continue;break}b=e>>>c-8|0;break p}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<8-c}b=b<<4&4080;if(b>>>0>=64){f=-8;d=b+-64|0;if(L[(d<<2)+2304288>>1]==8)break n}r:{s:{if((c|0)<=8)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break s;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<=0)continue;break}b=e>>>c-9|0;break r}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<9-c}b=b<<3&4088;if(b>>>0>=64){f=-9;d=b+-64|0;if(L[(d<<2)+2304288>>1]==9)break n}t:{u:{if((c| -0)<=9)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break u;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<2)continue;break}b=e>>>c-10|0;break t}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<10-c}b=b<<2&4092;if(b>>>0>=64){f=-10;d=b+-64|0;if(L[(d<<2)+2304288>>1]==10)break n}v:{w:{if((c|0)<=10)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break w;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<3)continue; -break}b=e>>>c-11|0;break v}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<11-c}b=b<<1&4094;if(b>>>0>=64){f=-11;d=b+-64|0;if(L[(d<<2)+2304288>>1]==11)break n}x:{y:{if((c|0)<=11)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break y;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<4)continue;break}b=e>>>c-12|0;break x}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<12-c}if(b&4032){f=-12;d=(b&4095)+-64|0;if(L[(d<<2)+2304288>>1]==12)break n}z:{if((c|0)<= -9)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<10-c;break z}b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<2)continue;break}b=e>>>c-10|0}d=-10;f=b<<3&8184;A:{if(L[(f<<2)+2303008>>1]==10)break A;B:{C:{if((c|0)<=10)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break C;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<3)continue;break}b=e>>>c-11|0;break B}c=J[a+ -56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<11-c}d=-11;f=b<<2&8188;if(L[(f<<2)+2303008>>1]==11)break A;D:{E:{if((c|0)<=11)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break E;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<4)continue;break}b=e>>>c-12|0;break D}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<12-c}d=-12;f=b<<1&8190;if(L[(f<<2)+2303008>>1]==12)break A;F:{G:{if((c|0)<=12)while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break G; -b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<5)continue;break}b=e>>>c-13|0;break F}c=J[a+56>>2];b=1;if(!c)break a;b=J[a+52>>2]<<13-c}d=-13;f=b&8191;if(L[(f<<2)+2303008>>1]!=13)break b}b=a;a=c+d|0;J[b+56>>2]=(a|0)>0?a:0;b=L[(f<<2)+2303010>>1];break a}b=a;a=c+f|0;J[b+56>>2]=(a|0)>0?a:0;b=L[(d<<2)+2304290>>1];break a}b=a;a=c+f|0;J[b+56>>2]=(a|0)>0?a:0;b=L[(d<<2)+2305314>>1];break a}f=J[a+56>>2];H:{I:{if((f|0)>=13){c=J[a+52>>2];break I}while(1){b=J[a+4>>2];d=gc[J[J[b>> -2]+28>>2]](b)|0;if((d|0)==-1){f=J[a+56>>2];b=1;if(!f)break a;d=J[a+52>>2]<<13-f;break H}b=J[a+56>>2];f=b+8|0;J[a+56>>2]=f;c=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=c;if((b|0)<5)continue;break}}d=c>>>f-13|0}e=d&8191;J:{if(e>>>0<=127){b=(e<<2)+2303008|0;break J}b=(e<<1&16380)+2304032|0;if(e>>>0<=511)break J;b=(e>>>7<<2)+2305312|0}e=I[b>>1];if((e|0)<=0){f=d&8191;break b}d=a;a=f-(e&65535)|0;J[d+56>>2]=(a|0)>0?a:0;b=L[b+2>>1];break a}b=gc[J[J[a>>2]+52>>2]](a)|0;J[g>>2]=f;xc(1,b,812064,g);J[a+80>>2]=J[a+80>>2]+ -1;b=a;a=J[a+56>>2];J[b+56>>2]=((a|0)<=1?1:a)-1;b=1}bc=g+16|0;return b<<16>>16}function LFa(a){a=a|0;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;j=bc-16|0;bc=j;J[j+12>>2]=0;J[j+8>>2]=0;m=J[a+4>>2];o=bc-32|0;bc=o;n=rc(24);J[n+12>>2]=0;J[n+20>>2]=1;fK(o,n);d=bc-48|0;bc=d;a:{if(o){b=d+4|0;P0(b,o);b=J0(b);break a}b=J0(0)}bc=d+48|0;b:{c:{i=J[m+8>>2];d=J[m+12>>2];if((i|0)==(d|0))break c;while(1){if(!J[i+16>>2])T0(m,i,i+12|0,i+16|0);i=i+20|0;if((d|0)!=(i|0))continue;break}i= -J[m+8>>2];r=J[m+12>>2];if((i|0)==(r|0))break c;while(1){d:{e=H[i+11|0]<0?J[i>>2]:i;g=0;p=bc-32|0;bc=p;d=-102;e:{if(!b)break e;if(J[b+56>>2]==1){d=hK(b);if(d)break e}k=e?e:28663;f=Qc(k);J[b+65700>>2]=0;J[b+152>>2]=0;J[b+156>>2]=8;d=b+65704|0;J[d>>2]=0;J[d+4>>2]=0;J[b+160>>2]=0;J[b+120>>2]=0;J[b+124>>2]=0;d=Dp(b,J[b+44>>2]);e=fc;h=e;J[b+148>>2]=32;J[b+144>>2]=f+46;J[b+128>>2]=d;J[b+132>>2]=e;c=zc(f+78|0);J[b+140>>2]=0;J[b+136>>2]=c;H[c+5|0]=0;H[c+4|0]=0;H[c|0]=80;H[c+1|0]=75;H[c+2|0]=1;H[c+3|0]=2;H[c+ -6|0]=20;H[c+7|0]=0;e=J[b+152>>2];H[c+8|0]=e;H[c+9|0]=e>>>8;if(e>>>0>=65536){H[c+8|0]=255;H[c+9|0]=255}e=J[b+156>>2];H[c+10|0]=e;H[c+11|0]=e>>>8;if(e>>>0>=65536){H[c+10|0]=255;H[c+11|0]=255}e=J[b+65700>>2];H[c+29|0]=f>>>8;H[c+28|0]=f;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+12|0]=e;H[c+15|0]=e>>>24;H[c+14|0]=e>>>16;H[c+13|0]=e>>>8;if(f>>>0>=65536){H[c+28|0]=255;H[c+29|0]=255}H[c+30|0]=0;H[c+31| -0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+36|0]=0;H[c+37|0]=0;f:{if(!h&(d|0)!=-1){q=J[b+65776>>2];e=d-q|0;h=h-(J[b+65780>>2]+(d>>>0>>0)|0)|0;H[c+42|0]=e;H[c+43|0]=e>>>8;H[c+44|0]=e>>>16;H[c+45|0]=e>>>24;if(!h)break f}H[c+42|0]=255;H[c+43|0]=255;H[c+44|0]=255;H[c+45|0]=255}g:{if(!f)break g;h=0;d=0;if(f>>>0>=4){e=f&-4;while(1){H[(J[b+136>>2]+d|0)+46|0]=K[d+k|0];c=d|1;H[(c+J[b+136>>2]|0)+46|0]=K[c+k|0];c=d|2;H[(c+J[b+136>>2]|0)+46|0]= -K[c+k|0];c=d|3;H[(c+J[b+136>>2]|0)+46|0]=K[c+k|0];d=d+4|0;g=g+4|0;if((e|0)!=(g|0))continue;break}}e=f&3;if(!e)break g;while(1){H[(J[b+136>>2]+d|0)+46|0]=K[d+k|0];d=d+1|0;h=h+1|0;if((e|0)!=(h|0))continue;break}}if(!J[b+136>>2]){d=-104;break e}d=b+65720|0;J[d>>2]=0;J[d+4>>2]=0;g=b+65712|0;J[g>>2]=0;d=b+65728|0;J[d>>2]=0;J[d+4>>2]=0;d=b+65736|0;J[d>>2]=0;J[d+4>>2]=0;e=bc-16|0;bc=e;c=Qc(k);f=J[b+44>>2];H[e+8|0]=80;H[e+9|0]=75;H[e+10|0]=3;H[e+11|0]=4;d=-1;h=e+8|0;h:{if((gc[J[b+8>>2]](J[b+28>>2],f,h,4)| -0)!=4)break h;f=J[b+44>>2];i:{if(J[g>>2]){H[e+8|0]=45;H[e+9|0]=0;g=gc[J[b+8>>2]](J[b+28>>2],f,h,2)|0;break i}H[e+8|0]=20;H[e+9|0]=0;g=gc[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0}if((g|0)!=2)break h;f=J[b+44>>2];g=J[b+152>>2];I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;if((gc[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0)!=2)break h;f=J[b+44>>2];g=J[b+156>>2];I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;g=e+8|0;if((gc[J[b+8>>2]](J[b+28>>2],f,g,2)|0)!=2)break h;h=J[b+44>>2];f=J[b+65700>>2];H[e+8|0]=f;H[e+9|0]=f>>>8; -H[e+10|0]=f>>>16;H[e+11|0]=f>>>24;if((gc[J[b+8>>2]](J[b+28>>2],h,g,4)|0)!=4)break h;f=J[b+44>>2];J[e+8>>2]=0;if((gc[J[b+8>>2]](J[b+28>>2],f,g,4)|0)!=4)break h;f=J[b+44>>2];j:{if(J[b+65712>>2]){J[e+8>>2]=-1;g=gc[J[b+8>>2]](J[b+28>>2],f,g,4)|0;break j}J[e+8>>2]=0;g=gc[J[b+8>>2]](J[b+28>>2],f,e+8|0,4)|0}if((g|0)!=4)break h;f=J[b+44>>2];k:{if(J[b+65712>>2]){J[e+8>>2]=-1;g=gc[J[b+8>>2]](J[b+28>>2],f,e+8|0,4)|0;break k}J[e+8>>2]=0;g=gc[J[b+8>>2]](J[b+28>>2],f,e+8|0,4)|0}if((g|0)!=4)break h;f=J[b+44>>2]; -I[e+8>>1]=c;if(c>>>0>=65536)I[e+8>>1]=65535;if((gc[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0)!=2)break h;f=J[b+44>>2];g=J[b+65712>>2]?20:0;I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;g=(gc[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0)!=2;if(!(g|!c))g=(gc[J[b+8>>2]](J[b+28>>2],J[b+44>>2],k,c)|0)!=(c|0);if(g)break h;if(!J[b+65712>>2]){d=0;break h}d=b+65720|0;s=d,t=Dp(b,J[b+44>>2]),J[s>>2]=t;J[d+4>>2]=fc;d=J[b+44>>2];H[e+8|0]=1;H[e+9|0]=0;c=d;d=e+8|0;gc[J[b+8>>2]](J[b+28>>2],c,d,2)|0;c=J[b+44>>2];H[e+8|0]=16;H[e+9|0]= -0;gc[J[b+8>>2]](J[b+28>>2],c,d,2)|0;c=J[b+44>>2];J[e+8>>2]=0;J[e+12>>2]=0;gc[J[b+8>>2]](J[b+28>>2],c,d,8)|0;c=J[b+44>>2];J[e+8>>2]=0;J[e+12>>2]=0;d=(gc[J[b+8>>2]](J[b+28>>2],c,d,8)|0)!=8?-1:0}bc=e+16|0;J[b+68>>2]=0;J[b+72>>2]=0;J[b+76>>2]=b+164;J[b+108>>2]=0;J[b+80>>2]=65536;J[b+84>>2]=0;l:{if(d)break l;if(!(J[b+160>>2]|J[b+156>>2]!=8)){J[b+104>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;d=Kw(b- -64|0,-1,8,-15,8,0,28294);if(d)break l;J[b+120>>2]=8}J[b+65760>>2]=0;J[b+56>>2]=1;d=0;break e}J[b+65760>>2]=0}bc= -p+32|0;if(d)break d;d=J[i+12>>2];c=J[i+16>>2];e=-102;m:{if(!b|!J[b+56>>2])break m;e=b+65704|0;f=$f(J[e>>2],d,c);J[b+68>>2]=c;J[b+64>>2]=d;J[e>>2]=f;k=b+164|0;p=b- -64|0;while(1){e=0;if(!J[b+68>>2])break m;d=J[b+80>>2];if(!d){c=gK(b);J[b+76>>2]=k;d=65536;J[b+80>>2]=65536;e=-1;if((c|0)==-1)break m}n:{if(!(J[b+160>>2]|J[b+156>>2]!=8)){d=J[b+84>>2];e=Ak(p,0);f=J[b+124>>2];d=J[b+84>>2]-d|0;break n}g=J[b+68>>2];f=d>>>0>g>>>0?g:d;e=0;h=0;c=b;if(g){g=0;d=0;if(f>>>0>=4){q=f&-4;while(1){H[J[b+76>>2]+d|0]=K[J[b+ -64>>2]+d|0];l=d|1;H[l+J[b+76>>2]|0]=K[l+J[b+64>>2]|0];l=d|2;H[l+J[b+76>>2]|0]=K[l+J[b+64>>2]|0];l=d|3;H[l+J[b+76>>2]|0]=K[l+J[b+64>>2]|0];d=d+4|0;h=h+4|0;if((q|0)!=(h|0))continue;break}}h=f&3;if(h)while(1){H[J[b+76>>2]+d|0]=K[J[b+64>>2]+d|0];d=d+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}h=J[b+68>>2];d=J[b+80>>2]}J[c+80>>2]=d-f;J[b+68>>2]=h-f;J[b+64>>2]=J[b+64>>2]+f;J[b+76>>2]=J[b+76>>2]+f;J[b+72>>2]=J[b+72>>2]+f;J[b+84>>2]=J[b+84>>2]+f;d=J[b+124>>2]}J[b+124>>2]=d+f;if(!e)continue;break}}if(e)break d; -if(hK(b))break d;i=i+20|0;if((r|0)!=(i|0))continue;break c}break}I0(b);J[j+12>>2]=0;J[j+8>>2]=0;break b}I0(b);b=J[n>>2];J[m>>2]=b;J[j+12>>2]=b;b=J[n+12>>2];J[m+4>>2]=b;J[j+8>>2]=b;qc(n)}bc=o+32|0;VB(J[a+4>>2]);a=rc(12);b=J[j+12>>2];d=J[j+8>>2];H[a+8|0]=1;J[a+4>>2]=d;J[a>>2]=b;bc=j+16|0;return a|0}function HN(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;s=J[a+12>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{t=J[a+8>>2];k:{if(K[t+57|0]&2){l=-1;g=Mk(65425); -if(!g)break k;J[g+12>>2]=J[J[s+32>>2]+104>>2];if(Lk(b,J[a+16>>2],g))break k;Ci(g)}i=dE(b,200315);if(!i)break c;if(!(K[i+16|0]&2))break d;l=-1;g=J[i+8>>2];h=g-1|0;J[i+8>>2]=h;l:{if((g|0)<=0){m=J[i+4>>2];h=m<<8&65280;g=(h|0)==65280?6:7;J[i+8>>2]=g;J[i+4>>2]=h|1<>2];n=J[g+8>>2];if(n&7)break k;j=J[g+64>>2];if(!((j|0)<0|(j|0)>J[g+60>>2]))break b;J[g+4>>2]=J[g+4>>2]|32;j=J[g+28>>2];J[g+28>>2]=j-1;if((j|0)>0){J[g+60>>2]=J[g+60>>2]+1;h=g;g=J[g+24>>2];J[h+24>>2]=g+1;H[g|0]=m;break l}if((Uc(g,h>>> -8|0)|0)!=-1)break l;break k}J[i+4>>2]=J[i+4>>2]|1<>2]+P(c,716)|0)+4>>2]+(d<<6)|0;h=J[g+52>>2];if(h){q=J[g+56>>2];x=q+P(h,36)|0;y=f+1|0;z=P(e,52);while(1){m:{if(!J[q+4>>2])break m;p=J[q>>2]+z|0;g=J[p+28>>2];if(!g)break m;h=J[p+24>>2];if(!h)break m;h=P(h,60)+g|0;while(1){if(!f){m=J[p+36>>2];ZD(m,J[m+12>>2]+((g-J[p+28>>2]|0)/60<<4)|0,J[g+12>>2])}m=J[g+40>>2];n:{if(!m)break n;m=J[m+32>>2];if(J[g+8>>2]|(m|0)!=(f|0))break n;j=J[p+32>>2];ZD(j,J[j+12>>2]+((g-J[p+28>>2]|0)/60<<4)|0,m)}g=g+60| -0;if((h|0)!=(g|0))continue;break}g=J[p+24>>2];if(!g)break m;o=J[p+28>>2];A=o+P(g,60)|0;while(1){m=J[o+40>>2];if(m)h=J[m+32>>2]==(f|0);else h=0;o:{if(!J[o+8>>2]){g=J[p+32>>2];if((GN(g,J[g+12>>2]+((o-J[p+28>>2]|0)/60<<4)|0,y,i)|0)<0)break a;break o}if(!(K[i+16|0]&2))break e;g=J[i+8>>2];j=g-1|0;J[i+8>>2]=j;if((g|0)<=0){l=J[i+4>>2];j=l<<8&65280;g=(j|0)==65280?6:7;J[i+8>>2]=g;J[i+4>>2]=j|h<>2];n=J[g+8>>2];if(n&7)break a;k=J[g+64>>2];if(!((k|0)<0|(k|0)>J[g+60>>2]))break b;J[g+4>>2]=J[g+4>>2]| -32;k=J[g+28>>2];J[g+28>>2]=k-1;if((k|0)>0){J[g+60>>2]=J[g+60>>2]+1;j=g;g=J[g+24>>2];J[j+24>>2]=g+1;H[g|0]=l;break o}l=-1;if((Uc(g,j>>>8|0)|0)!=-1)break o;break k}J[i+4>>2]=J[i+4>>2]|h<>2]){g=1;l=-1;j=J[p+36>>2];h=J[j+12>>2]+((o-J[p+28>>2]|0)/60<<4)|0;j=GN(j,h,1,i);if((j|0)<0)break k;while(1){if(!j){g=g+1|0;j=GN(J[p+36>>2],h,g,i);if((j|0)>=0)continue;break k}break}if(!J[h+12>>2]|(J[h+4>>2]+1|0)!=(g|0))break f}j=m;g=J[o+4>>2]+P(J[o>>2],72)|0;q:{if((g|0)==(j|0))break q; -while(1){if(J[j+32>>2]!=(f|0))break q;j=j+72|0;if((g|0)!=(j|0))continue;break}j=g}g=j-m|0;if((g|0)<72)break a;r:{s:{t:{u:{v:{g=(g|0)/72|0;switch(g-1|0){case 1:break u;case 0:break v;default:break t}}if(!(K[i+16|0]&2))break g;g=J[i+8>>2];J[i+8>>2]=g-1;if((g|0)>0)break r;l=J[i+4>>2];h=l<<8&65280;J[i+4>>2]=h;J[i+8>>2]=(h|0)==65280?6:7;g=J[i+12>>2];n=J[g+8>>2];if(n&7)break a;k=J[g+64>>2];if(!((k|0)<0|(k|0)>J[g+60>>2]))break b;J[g+4>>2]=J[g+4>>2]|32;k=J[g+28>>2];J[g+28>>2]=k-1;if((k|0)<=0){g=(Uc(g,h>>> -8|0)|0)==-1?-1:0;break s}J[g+60>>2]=J[g+60>>2]+1;h=g;g=J[g+24>>2];J[h+24>>2]=g+1;H[g|0]=l;break r}g=vu(i,2,2);break s}if(g>>>0<=5){g=vu(i,4,g-3|12);break s}if(g>>>0<=36){g=vu(i,9,g-6|480);break s}if(g>>>0>164)break a;g=vu(i,16,g-37|65408)}l=-1;if((g|0)==-1)break k}u=j-72|0;v=(j|0)==(m|0);w:{if(v){k=0;break w}l=J[m>>2];k=0;h=1;g=m;while(1){x:{if(!(!J[g+12>>2]&(g|0)!=(u|0))){n=J[g+4>>2];h=(vm(n-l|0)-(J[o+16>>2]+dq(h)|0)|0)+1|0;h=(h|0)>(k|0)?h:k;k=(h|0)>0?h:0;l=n;h=1;break x}h=h+1|0}g=g+72|0;if((j|0)!= -(g|0))continue;break}g=k;if(!g){k=0;break w}while(1){h=g;y:{z:{if(K[i+16|0]&2){g=J[i+8>>2];l=g-1|0;J[i+8>>2]=l;if((g|0)>0)break z;l=J[i+4>>2];r=l<<8&65280;g=(r|0)==65280?6:7;J[i+8>>2]=g;J[i+4>>2]=r|1<>2];n=J[g+8>>2];if(n&7)break a;w=J[g+64>>2];if(!((w|0)<0|J[g+60>>2]<(w|0)))break b;J[g+4>>2]=J[g+4>>2]|32;n=J[g+28>>2];J[g+28>>2]=n-1;if((n|0)>0){J[g+60>>2]=J[g+60>>2]+1;n=g;g=J[g+24>>2];J[n+24>>2]=g+1;H[g|0]=l;break y}l=-1;if((Uc(g,r>>>8|0)|0)==-1)break k;break y}fa(205260,198999,99,212338); -B()}J[i+4>>2]=J[i+4>>2]|1<>>0>1)continue;break}}if(!(K[i+16|0]&2))break j;g=J[i+8>>2];J[i+8>>2]=g-1;A:{if((g|0)>0)break A;r=J[i+4>>2];h=r<<8&65280;J[i+4>>2]=h;J[i+8>>2]=(h|0)==65280?6:7;l=-1;g=J[i+12>>2];n=J[g+8>>2];if(n&7)break k;l=J[g+64>>2];if(!((l|0)<0|(l|0)>J[g+60>>2]))break b;J[g+4>>2]=J[g+4>>2]|32;l=J[g+28>>2];J[g+28>>2]=l-1;if((l|0)>0){J[g+60>>2]=J[g+60>>2]+1;h=g;g=J[g+24>>2];J[h+24>>2]=g+1;H[g|0]=r;break A}l=-1;if((Uc(g,h>>>8|0)|0)==-1)break k}J[o+16>>2]=J[o+16>>2]+k;if(v)break p; -h=J[m>>2];g=1;while(1){B:{if(!(!J[m+12>>2]&(m|0)!=(u|0))){k=J[m+4>>2];n=k-h|0;if((vm(n)|0)>=(J[o+16>>2]+dq(g)|0))break i;l=-1;h=k;k=1;if((vu(i,J[o+16>>2]+dq(g)|0,n)|0)!=-1)break B;break k}k=g+1|0}g=k;m=m+72|0;if((j|0)!=(m|0))continue;break}}o=o+60|0;if((A|0)!=(o|0))continue;break}}q=q+36|0;if((x|0)!=(q|0))continue;break}}l=0;Sx(i,0);wu(i);if(K[t+57|0]&4){g=Mk(65426);if(!g)break a;Lk(b,J[a+16>>2],g);Ci(g)}a=J[(J[s+48>>2]+P(c,716)|0)+4>>2]+(d<<6)|0;c=J[a+52>>2];if(!c)break k;k=J[a+56>>2];m=k+P(c,36)| -0;e=P(e,52);while(1){C:{if(!J[k+4>>2])break C;a=e+J[k>>2]|0;d=J[a+28>>2];if(!d)break C;a=J[a+24>>2];if(!a)break C;j=P(a,60)+d|0;while(1){a=J[d+40>>2];D:{if(!a)break D;c=J[a+32>>2];if((c|0)!=(f|0)){if((c|0)<0|(c|0)>(f|0))break D;fa(203789,198999,361,212286);B()}h=0;g=a;c=J[d+4>>2]+P(J[d>>2],72)|0;E:{if((g|0)==(c|0))break E;while(1){if(J[g+32>>2]!=(f|0)){h=g;break E}g=g+72|0;if((c|0)!=(g|0))continue;break}g=c}Mg(J[d+20>>2],J[a>>2],0);c=Zi(J[d+20>>2]);if((c|0)!=J[a>>2])break h;if(xn(b,J[d+20>>2],J[g- -68>>2]-c|0))break a;J[d+40>>2]=h;J[d+8>>2]=J[d+8>>2]+((g-a|0)/72|0)}d=d+60|0;if((j|0)!=(d|0))continue;break}}k=k+36|0;if((m|0)!=(k|0))continue;break}}return l}fa(205260,198999,103,212338);B()}fa(203408,198999,318,212286);B()}fa(204210,198999,375,212286);B()}fa(205260,198999,116,212318);B()}fa(202870,198999,275,212286);B()}fa(201459,198999,255,212286);B()}fa(201459,198999,209,212286);B()}fa(200845,198999,207,212286);B()}J[g+8>>2]=n|4}return-1}function E2(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;m=bc-16|0;bc=m;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];f=J[c+20>>2];J[c+28>>2]=f;I[f+2>>1]=0;l=J[b+20>>2];b=J[b+28>>2];f=268435454;e=268435455;i=268435455;h=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[m+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];h=j>>31;i=I[a+8>>1];h=(i+((h^j)-h|0)|0)-1|0}if((b|0)!=(l|0)){J[m+4>>2]=l+8;o=(b-l>>3)-1|0;b=I[l+10>>1];a=b>>31;e=I[l+8>>1];f=(e+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=i;n=0;break a}if((i|0)<=(h|0)){a=i;break a}a=J[m+8>>2];J[m+8>>2]= -a+8;n=n-1|0;h=I[a+10>>1];b=h>>31;a=I[a+8>>1];h=(a+((b^h)-b|0)|0)-1|0}l=h;b:{c:{d:{if(!o){o=0;break d}if((e|0)>(f|0))break c}b=e;break b}b=J[m+4>>2];J[m+4>>2]=b+8;o=o-1|0;h=I[b+10>>1];f=h>>31;b=I[b+8>>1];f=(b+((f^h)-f|0)|0)-1|0}j=f;if(!((f|0)<(b|0)&(a|0)>(l|0))){i=(a|0)>(b|0)?a:b;f=((f|0)>(l|0)?l:f)-i|0;if((f|0)>=0){h=f+1|0;e:{f:{g:{if((a|0)<(b|0)){e=b-a|0;f=J[m+8>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];h:{if((J[c>>2]+1|0)!=(a|0))break h;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break h; -I[d+2>>1]=g-e;a=b;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=a;J[f+12>>2]=d;a=b;break g}if(!d){a=b;break e}d=J[f+4>>2];f=I[f>>1];tc(J[c+16>>2],d+((a|0)>(f|0)?a-f|0:0)|0,e);d=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(a|0))break j;f=I[d+2>>1];if((f|0)<=0)break j;I[d+2>>1]=e+f;f=J[c+16>>2];break i}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=a;J[d+12>>2]=f}J[c+16>>2]=e+f;a=b;break g}if((a|0)<=(b|0))break e;e=a-b|0;f=J[m+4>>2];d=I[f+2>>1]; -if((d|0)<0){f=K[J[f+4>>2]];k:{if((J[c>>2]+1|0)!=(b|0))break k;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break k;I[d+2>>1]=g-e;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=b;J[f+12>>2]=d;break g}if(!d)break f;d=J[f+4>>2];f=I[f>>1];tc(J[c+16>>2],d+((b|0)>(f|0)?b-f|0:0)|0,e);d=J[c+28>>2];l:{m:{if((J[c>>2]+1|0)!=(b|0))break m;f=I[d+2>>1];if((f|0)<=0)break m;I[d+2>>1]=e+f;f=J[c+16>>2];break l}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>> -1]=e;I[d+8>>1]=b;J[d+12>>2]=f}J[c+16>>2]=e+f}J[c>>2]=a-1}b=a}f=h;n:{o:{p:{q:{r:{e=J[m+4>>2];d=J[m+8>>2];switch((L[e+2>>1]>>>14&2|L[d+2>>1]>>>15)-1|0){case 2:break o;case 1:break p;case 0:break q;default:break r}}g=J[e+4>>2];e=I[e>>1];e=g+((e|0)<(i|0)?i-e|0:0)|0;g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(i|0)?i-d|0:0)|0;while(1){g=K[e|0];k=K[d|0];s:{if((P(g,k)|0)==65025)break s;g=P(P(k,g|-256)+65025>>>8|0,P(g,k|-256)+65025>>>8|0)>>>8|0;if((g|0)==255)break s;H[J[c+16>>2]]=g^-1;g=J[c+28>>2];t:{u:{if((J[c>>2]+ -1|0)!=(i|0))break u;k=I[g+2>>1];if((k|0)<=0)break u;I[g+2>>1]=k+1;k=J[c+16>>2];break t}J[c+28>>2]=g+8;k=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=k}J[c>>2]=i;J[c+16>>2]=k+1}e=e+1|0;d=d+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}d=J[e+4>>2];e=I[e>>1];e=d+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[e|0];g=K[J[J[m+8>>2]+4>>2]];v:{if((P(d,g)|0)==65025)break v;d=P(P(g,d|-256)+65025>>>8|0,P(d,g|-256)+65025>>>8|0)>>>8|0;if((d|0)==255)break v;H[J[c+16>>2]]=d^-1;g=J[c+28>>2];w:{x:{if((J[c>>2]+1|0)!=(i| -0))break x;d=I[g+2>>1];if((d|0)<=0)break x;I[g+2>>1]=d+1;d=J[c+16>>2];break w}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=I[d>>1];e=J[d+4>>2]+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[J[J[m+4>>2]+4>>2]];g=K[e|0];y:{if((P(d,g)|0)==65025)break y;d=P(P(g,d|-256)+65025>>>8|0,P(d,g|-256)+65025>>>8|0)>>>8|0;if((d|0)==255)break y;H[J[c+16>>2]]=d^-1;g=J[c+28>>2];z:{A:{if((J[c>>2]+1|0)!=(i|0))break A;d=I[g+2>>1]; -if((d|0)<=0)break A;I[g+2>>1]=d+1;d=J[c+16>>2];break z}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=K[J[e+4>>2]];d=K[J[d+4>>2]];if((P(e,d)|0)==65025)break n;e=P(P(d,e|-256)+65025>>>8|0,P(e,d|-256)+65025>>>8|0)>>>8|0;if((e|0)==255)break n;e=255-e|0;B:{C:{if((J[c>>2]+1|0)!=(i|0))break C;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(e|0)!=K[J[d+4>>2]])break C;I[d+2>>1]=g-f;break B}H[J[c+16>>2]]=e;e=J[c+28>>2]; -J[c+28>>2]=e+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[e+10>>1]=0-f;I[e+8>>1]=i;J[e+12>>2]=d}J[c>>2]=(f+i|0)-1}if((j|0)>(l|0)){e=b+h|0;h=268435454;i=268435455;f=j;continue}e=268435455;b=a+h|0;a=(j|0)<(l|0);i=a?b:268435455;f=268435454;h=a?l:268435454;continue}if((a|0)<(b|0)){h=268435454;i=268435455;e=b;f=j;if((a|0)>(l|0))continue;g=l-a|0;d=g+1|0;j=J[m+8>>2];k=I[j+2>>1];D:{if((k|0)<0){e=K[J[j+4>>2]];E:{if((J[c>>2]+1|0)!=(a|0))break E;j=J[c+28>>2];k=I[j+2>>1];if((k|0)>=0|(e|0)!=K[J[j+4>>2]])break E;I[j+2>>1]= -k-d;break D}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;j=J[c+16>>2];J[c+16>>2]=j+1;I[e+10>>1]=g^-1;I[e+8>>1]=a;J[e+12>>2]=j;break D}if(!k)continue;e=I[j>>1];tc(J[c+16>>2],J[j+4>>2]+((a|0)>(e|0)?a-e|0:0)|0,d);j=J[c+28>>2];F:{G:{if((J[c>>2]+1|0)!=(a|0))break G;e=I[j+2>>1];if((e|0)<=0)break G;I[j+2>>1]=d+e;e=J[c+16>>2];break F}J[c+28>>2]=j+8;e=J[c+16>>2];I[j+10>>1]=d;I[j+8>>1]=a;J[j+12>>2]=e}J[c+16>>2]=d+e}J[c>>2]=l;e=b;continue}f=268435454;e=268435455;i=a;h=l;if((b|0)>(j|0))continue;g=j-b|0;d=g+1| -0;a=J[m+4>>2];k=I[a+2>>1];H:{if((k|0)<0){a=K[J[a+4>>2]];I:{if((J[c>>2]+1|0)!=(b|0))break I;h=J[c+28>>2];k=I[h+2>>1];if((k|0)>=0|(a|0)!=K[J[h+4>>2]])break I;I[h+2>>1]=k-d;break H}H[J[c+16>>2]]=a;a=J[c+28>>2];J[c+28>>2]=a+8;h=J[c+16>>2];J[c+16>>2]=h+1;I[a+10>>1]=g^-1;I[a+8>>1]=b;J[a+12>>2]=h;break H}if(!k)continue;h=J[a+4>>2];a=I[a>>1];tc(J[c+16>>2],h+((a|0)<(b|0)?b-a|0:0)|0,d);a=J[c+28>>2];J:{K:{if((J[c>>2]+1|0)!=(b|0))break K;h=I[a+2>>1];if((h|0)<=0)break K;I[a+2>>1]=d+h;h=J[c+16>>2];break J}J[c+ -28>>2]=a+8;h=J[c+16>>2];I[a+10>>1]=d;I[a+8>>1]=b;J[a+12>>2]=h}J[c+16>>2]=d+h}J[c>>2]=j;h=l;continue}break}bc=m+16|0}function QZ(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;a:{b:{d=J[a>>2];if(!d)break b;if(rg(J[d>>2],b))break b;if(rg(J[d+4>>2],c))break b;b=J[a>>2];break a}p=a+4|0;c:{d:{e:{d=J[a+4>>2];if(!d)break e;if(rg(J[d>>2],b))break e;if(rg(J[d+4>>2],c))break e;c=4;break d}f:{d=J[a+8>>2];if(!d)break f;if(rg(J[d>>2],b))break f;if(rg(J[d+4>> -2],c))break f;c=8;break d}g:{d=J[a+12>>2];if(!d)break g;if(rg(J[d>>2],b))break g;if(rg(J[d+4>>2],c))break g;c=12;break d}d=b;j=bc-32|0;bc=j;h:{i:{j:{k:{if(!sd(c,777888))break k;if(!sd(c,779983))break k;if(!sd(c,780715))break k;J[j+28>>2]=0;J[j+24>>2]=0;t=J[c+4>>2];f=bc-32|0;bc=f;l:{m:{n:{o:{p:{m=J[689612];if(J[m+456>>2])break p;b=K[m+455|0];if(b<<24>>24<0?J[m+448>>2]:b)break o;b=f+20|0;HK(b);J[695492]=0;b=aa(2860,b|0,809064)|0;g=J[695492];J[695492]=0;q:{r:{if((g|0)!=1){g=J[b>>2];J[b>>2]=0;J[b+4>> -2]=0;h=H[b+11|0];J[b+8>>2]=0;J[695492]=0;da(3186,m|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break r;if((h|0)<0)qc(g);if(H[f+31|0]<0)qc(J[f+20>>2]);if(J[m+456>>2])break p;break o}b=Z()|0;break q}b=Z()|0;if((h|0)>=0)break q;qc(g)}if(H[f+31|0]>=0)break m;qc(J[f+20>>2]);break m}b=0;while(1){g=b;u=J[m+460>>2];if(u>>>0<=b>>>0)break o;k=J[m+456>>2];h=k+b|0;h=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);if(h>>>0>=2147483632)break n;b=b+4|0;n=b+k|0;s:{if(h>>>0<=10){H[f+31|0]=h;l=f+20|0;break s}o=(h|15)+ -1|0;l=rc(o);J[f+28>>2]=o|-2147483648;J[f+20>>2]=l;J[f+24>>2]=h}x=Zc(l,n,h)+h|0,y=0,H[x|0]=y;v=b+h|0;b=k+v|0;w=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);t:{u:{b=Qc(t);v:{if(b>>>0>=2147483632){J[695492]=0;_(1623,f+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break v;B()}w:{x:{if(b>>>0<=10){H[f+19|0]=b;h=f+8|0;break x}J[695492]=0;l=(b|15)+1|0;h=$(4,l|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break w;J[f+8>>2]=h;J[f+12>>2]=b;J[f+16>>2]=l|-2147483648}k=0;x=tc(h,t,b)+b|0,y=0,H[x|0]=y;l=K[f+31|0];n=l<<24>> -24;b=K[f+19|0];o=b<<24>>24;h=J[f+24>>2];q=b;b=(o|0)<0;y:{if((((n|0)<0?h:l)|0)!=((b?J[f+12>>2]:q)|0))break y;b=b?J[f+8>>2]:f+8|0;z:{if((n|0)>=0){h=f+20|0;if(n)break z;k=1;break y}if(!h){k=1;break y}k=!Wc(J[f+20>>2],b,h);break y}while(1){n=K[b|0];q=K[h|0];k=(n|0)==(q|0);if((n|0)!=(q|0))break y;b=b+1|0;h=h+1|0;l=l-1|0;if(l)continue;break}}if((o|0)<0)qc(J[f+8>>2]);b=v+4|0;if(!k)break u;J[j+28>>2]=J[m+456>>2]+b;J[j+24>>2]=w;break t}}b=Z()|0;if(H[f+31|0]>=0)break m;qc(J[f+20>>2]);ba(b|0);B()}b=b+w|0}if(H[f+ -31|0]<0)qc(J[f+20>>2]);if(!k)continue;break}r=g>>>0>>0}bc=f+32|0;break l}Id(f+20|0);B()}ba(b|0);B()}if(!r)break k;J[j+8>>2]=5;e=rc(48);J[695492]=0;i=Wn(e,J[j+28>>2],0,J[j+24>>2],j+8|0);b=J[695492];J[695492]=0;if((b|0)==1){a=Z()|0;break i}e=rc(24);J[695492]=0;b=$(4,8)|0;g=J[695492];J[695492]=0;A:{if((g|0)==1)break A;J[695492]=0;d=aa(3183,b|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1){a=Z()|0;qc(b);break i}J[695492]=0;b=$(4,8)|0;g=J[695492];J[695492]=0;if((g|0)==1)break A;J[695492]=0;c=aa(3183, -b|0,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1){a=Z()|0;qc(b);break i}J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=c;J[e>>2]=d;b=0;J[695492]=0;c=aa(3376,256,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break A;J[e+16>>2]=c;while(1){c=b<<3;d=c+J[e+16>>2]|0;J[d>>2]=0;J[d+4>>2]=0;d=J[e+16>>2]+(c|8)|0;J[d>>2]=0;J[d+4>>2]=0;d=J[e+16>>2]+(c|16)|0;J[d>>2]=0;J[d+4>>2]=0;c=J[e+16>>2]+(c|24)|0;J[c>>2]=0;J[c+4>>2]=0;b=b+4|0;if((b|0)!=256)continue;break}J[e+20>>2]=1;yI(e,a,3380,i);gc[J[J[i>>2]+4>>2]](i);break j}a=Z()|0;break i}B:{C:{b= -tk(J[J[689612]+32>>2],d);D:{if(!b|J[b+8>>2]<=0)break D;while(1){g=J[J[b>>2]+(s<<2)>>2];i=rc(8);J[695492]=0;g=aa(3183,i|0,g|0)|0;r=J[695492];J[695492]=0;if((r|0)==1)break C;g=_n(g,J[c+4>>2]);i=Zm(J[g+4>>2],816572);qc(Rc(g));if(i)break D;s=s+1|0;if((s|0)>2])continue;break}i=0}b=i;break B}a=Z()|0;qc(i);ba(a|0);B()}E:{if(!b){F:{if(sd(c,777888))if(sd(c,779983))break F;e=rc(24);J[695492]=0;b=$(4,8)|0;i=J[695492];J[695492]=0;G:{if((i|0)==1)break G;J[695492]=0;d=aa(3183,b|0,d|0)|0;i=J[695492];J[695492]= -0;if((i|0)==1){a=Z()|0;qc(b);break i}J[695492]=0;b=$(4,8)|0;i=J[695492];J[695492]=0;if((i|0)==1)break G;J[695492]=0;c=aa(3183,b|0,c|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1)break E;a=Z()|0;qc(b);break i}a=Z()|0;break i}if(!sd(c,780715)){e=rc(24);J[695492]=0;b=$(4,8)|0;i=J[695492];J[695492]=0;H:{if((i|0)==1)break H;J[695492]=0;d=aa(3183,b|0,d|0)|0;i=J[695492];J[695492]=0;if((i|0)==1){a=Z()|0;qc(b);break i}J[695492]=0;b=$(4,8)|0;i=J[695492];J[695492]=0;if((i|0)==1)break H;J[695492]=0;c=aa(3183,b|0, -c|0)|0;i=J[695492];J[695492]=0;if((i|0)==1){a=Z()|0;qc(b);break i}J[e+16>>2]=0;J[e+20>>2]=1;J[e+8>>2]=1;J[e+12>>2]=1;J[e+4>>2]=c;J[e>>2]=d;break j}a=Z()|0;break i}J[j+4>>2]=d;J[j>>2]=c;xc(1,-1,781433,j);break j}e=rc(24);J[695492]=0;b=$(4,8)|0;g=J[695492];J[695492]=0;I:{if((g|0)==1)break I;J[695492]=0;d=aa(3183,b|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1){a=Z()|0;qc(b);break i}J[695492]=0;b=$(4,8)|0;g=J[695492];J[695492]=0;if((g|0)==1)break I;J[695492]=0;c=aa(3183,b|0,c|0)|0;g=J[695492];J[695492]= -0;if((g|0)==1){a=Z()|0;qc(b);break i}J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=c;J[e>>2]=d;J[695492]=0;b=aa(3376,256,8)|0;c=J[695492];J[695492]=0;if((c|0)==1)break I;J[e+16>>2]=b;b=0;while(1){c=b<<3;d=c+J[e+16>>2]|0;J[d>>2]=0;J[d+4>>2]=0;d=J[e+16>>2]+(c|8)|0;J[d>>2]=0;J[d+4>>2]=0;d=J[e+16>>2]+(c|16)|0;J[d>>2]=0;J[d+4>>2]=0;c=J[e+16>>2]+(c|24)|0;J[c>>2]=0;J[c+4>>2]=0;b=b+4|0;if((b|0)!=256)continue;break}J[e+20>>2]=1;yI(e,a,3382,i);fg(i);break j}a=Z()|0;break i}J[e+16>>2]=0;J[e+20>>2]=1;J[e+8>>2]=1;J[e+12>> -2]=0;J[e+4>>2]=c;J[e>>2]=d}bc=j+32|0;b=e;break h}qc(e);ba(a|0);B()}if(!b)return 0;c=J[a+12>>2];if(c)kp(c);c=J[a+4>>2];e=J[a>>2];J[p+8>>2]=J[a+8>>2];J[p>>2]=e;J[p+4>>2]=c;break c}b=J[a+c>>2];Zc(p,a,c)}J[a>>2]=b}J[b+20>>2]=J[b+20>>2]+1;return b}function jya(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;e=bc-1088|0;bc=e;d=e+1080|0;On(d);J[695492]=0;da(5108,e+1076|0,d|0);d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((d|0)!=1){h=J[e+1076>>2];d=J[b>>2];J[695492]=0;f=e+1072|0;da(5151, -f|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break k;J[695492]=0;da(5108,e+1068|0,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break j;J[695492]=0;i=J[e+1068>>2];J[e+1060>>2]=0;J[e+1064>>2]=J[682146];d=ha(5109,i|0,e+1060|0,0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break h;if(d)break i;c=J[b>>2];if(!c){J[a>>2]=0;break g}J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[a>>2]=J[b>>2];break g}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;break d}d=J[e+1060>>2];d=J[(d?d+12|0:2728584)>> -2];J[695492]=0;ca(5160,h|0,d|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break h;l:{while(1){m:{J[695492]=0;d=e+1060|0;f=ha(5109,i|0,d|0,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break m;n:{o:{if(f){J[695492]=0;d=fd(d,2382374,-1);f=J[695492];J[695492]=0;if((f|0)==1)break m;if(d)break o;J[e+1052>>2]=0;J[e+1056>>2]=J[682146];p:{q:{while(1){d=J[J[i>>2]+8>>2];J[695492]=0;d=ga(d|0,i|0,e+16|0,1024)|0;f=J[695492];J[695492]=0;r:{if((f|0)!=1){if(d)break r;while(1){d=J[e+1052>>2];if(!(!(!d|!J[d+8>>2])&K[J[d+ -12>>2]]==10)){s:{while(1){d=J[e+1052>>2];if(!d)break s;g=J[d+8>>2];if(!g)break s;j=J[d+12>>2];t:{f=g-1|0;if(!f){d=0;break t}d=f;u:{if((g|0)<=0){d=d+g|0;if((d|0)<0)break u}if((d|0)<=(g|0))break t}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)B();a=Z()|0;break p}if(K[d+j|0]!=10)break s;J[695492]=0;ca(5166,e+1052|0,f|0,0);d=J[695492];J[695492]=0;if((d|0)!=1)continue;break}a=Z()|0;break p}J[695492]=0;d=e+1052|0;f=ga(5117,d|0,c|0,-1)|0;g=J[695492];J[695492]=0;v:{w:{x:{y:{z:{if((g|0)==1)break z; -if(!f)break w;f=J[e+1060>>2];f=J[(f?f+12|0:2728584)>>2];J[695492]=0;ca(5160,h|0,f|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break z;J[695492]=0;J[e>>2]=0;aa(4985,e|0,h|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break y;J[695492]=0;aa(5058,J[e>>2],d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break x;d=J[e>>2];J[e>>2]=0;A:{if(!d)break A;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break v;if(f)break A;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break v}J[695492]= -0;_(5162,h|0);d=J[695492];J[695492]=0;if((d|0)!=1)break w}a=Z()|0;break p}a=Z()|0;break p}a=Z()|0;vc(e);break p}sc(e+1052|0);break n}break a}J[695492]=0;ia(5143,e|0,e+1052|0,1,-1);d=J[695492];J[695492]=0;if((d|0)!=1){d=J[e>>2];B:{if(d){f=J[J[d>>2]+28>>2];J[695492]=0;ca(f|0,e+1084|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break B;a=Z()|0;sc(e);break p}J[e+1084>>2]=0}J[695492]=0;aa(4993,e+1052|0,e+1084|0)|0;d=J[695492];J[695492]=0;C:{if((d|0)!=1){d=J[e+1084>>2];J[e+1084>>2]=0;if(!d)break C;J[695492]= -0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break C;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break C}break a}a=Z()|0;vc(e+1084|0);sc(e);break p}d=J[e+1052>>2];J[e+1056>>2]=J[(d?d+12|0:2728584)>>2];sc(e);continue}break}a=Z()|0;break p}a=Z()|0;break p}J[695492]=0;d=ga(5169,e+8|0,e+16|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;aa(5170,e+1052|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break q;sc(d);continue}break}a=Z()|0;break p}a=Z()|0; -sc(d)}sc(e+1052|0);break e}J[695492]=0;_(5162,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[J[h>>2]+24>>2];J[695492]=0;_(c|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[e+1080>>2];d=J[J[c>>2]+20>>2];J[695492]=0;ha(d|0,c|0,0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;b=J[b>>2];J[695492]=0;da(5099,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;da(5158,a|0,e+1080|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;break g}d=J[e+1060>>2];d=J[(d?d+12|0:2728584)>>2];J[695492]= -0;ca(5160,h|0,d|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break m;J[695492]=0;J[e+1052>>2]=0;aa(4985,e+1052|0,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;while(1){D:{d=J[J[i>>2]+8>>2];J[695492]=0;f=ga(d|0,i|0,e+16|0,1024)|0;d=J[695492];J[695492]=0;if((d|0)==1)break D;d=J[e+1052>>2];if(!f){J[e+1052>>2]=0;E:{if(!d)break E;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break l;if(f)break E;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break l}J[695492]= -0;_(5162,h|0);d=J[695492];J[695492]=0;if((d|0)!=1)break n;a=Z()|0;break e}J[695492]=0;ga(5293,d|0,e+16|0,f|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}a=Z()|0;vc(e+1052|0);break e}J[695492]=0;_(5162,i|0);d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}a=Z()|0;break e}break a}a=Z()|0;break e}sc(e+1060|0);a=J[e+1068>>2];J[e+1068>>2]=0;F:{if(!a)break F;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break F;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]= -0;if((a|0)==1)break a}a=J[e+1072>>2];J[e+1072>>2]=0;G:{if(!a)break G;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break G;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[e+1076>>2];J[e+1076>>2]=0;H:{if(!a)break H;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break H;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[e+1080>>2];J[e+1080>>2]=0;I:{J:{if(!a)break J;J[695492]= -0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break I;if(b)break J;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break I}bc=e+1088|0;return}break a}a=Z()|0}sc(e+1060|0);vc(e+1068|0)}vc(e+1072|0)}vc(e+1076|0)}vc(e+1080|0);ba(a|0);B()}ea(0)|0;yc();B()}function bwa(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;k=bc-32|0;bc=k;J[a>>2]=0;md(a,b);a:{b:{c:{d:{e:{h=c&3;f:{if(!h)break f;g:{h:{i:{j:{k:{l:{m:{if(c&1){J[695492]=0;d=$(4,72)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break l;c=L[b+8>>1];f=L[b+10>>1];J[695492]=0;c=ha(5381,d|0,f|0,c|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break m;c=Z()|0;qc(d);break b}J[695492]=0;d=$(4,72)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;c=L[b+10>>1];f=L[b+8>>1];J[695492]=0;c=ha(5381,d|0,f|0,c|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j}J[695492]=0;aa(4985,a|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break k}c=Z()|0;break b}n:{if(J[b+24>>2]|J[b+20>>2])break n;c=J[b+36>>2];if(!c)break n;J[695492]= -0;da(5444,b|0,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break n;c=Z()|0;break b}c=L[b+16>>1];if(c-257>>>0<=4294967040){J[695492]=0;b=ja(5018,k+8|0,2376465,2373930,482,2407173,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(b);break b}e=J[a>>2];I[e+16>>1]=c;o:{if(J[e+20>>2]|c>>>0<3)break o;c=J[e+36>>2];if(!c)break o;J[695492]=0;da(5444,e|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break c}p:switch(h-1|0){case 2:break p;case 1:break h; -case 0:break i;default:break g}d=L[b+8>>1];if(!d)break g;f=L[e+8>>1];if(f){h=0;q:{while(1){r:{s:{if(J[b+20>>2])break s;c=J[b+36>>2];if(!c)break s;J[695492]=0;da(5444,b|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break r;d=L[b+8>>1]}c=L[b+14>>1];t:{if((d&65535)>>>0<=h>>>0){g=c;c=L[b+12>>1];if(J[682142]<(g+c|0))break d;g=c+J[682141]|0;break t}g=L[b+12>>1]+(J[b+20>>2]+P(c,h)|0)|0}d=0;c=f;while(1){l=K[d+g|0];u:{if(J[e+20>>2])break u;i=J[e+36>>2];if(!i)break u;J[695492]=0;da(5444,e|0,i|0);i=J[695492];J[695492]= -0;if((i|0)==1)break q}i=L[e+14>>1];c=c-1|0;v:{if(c>>>0>=L[e+8>>1]){j=i;i=L[e+12>>1];if(J[682142]<(j+i|0))break e;i=i+J[682141]|0;break v}i=L[e+12>>1]+(J[e+20>>2]+P(c,i)|0)|0}H[i+h|0]=l;d=d+1|0;if((f|0)!=(d|0))continue;break}h=h+1|0;d=L[b+8>>1];if(h>>>0>>0)continue;break g}break}c=Z()|0;break b}c=Z()|0;break b}if(J[b+20>>2])break g;c=0;while(1){w:{x:{y:{if(g)break y;h=J[b+36>>2];if(!h)break y;J[695492]=0;da(5444,b|0,h|0);d=J[695492];J[695492]=0;if((d|0)==1)break x;d=L[b+8>>1]}h=d&65535;if(h>>>0> -c>>>0|J[682142]>=(L[b+12>>1]+L[b+14>>1]|0))break w;break d}c=Z()|0;break b}c=c+1|0;if(h>>>0<=c>>>0)break g;g=J[b+20>>2];continue}}c=Z()|0;qc(d);break b}c=L[e+10>>1];if(!c)break g;f=c;while(1){z:{A:{B:{C:{D:{if(J[b+20>>2])break D;d=J[b+36>>2];if(!d)break D;J[695492]=0;da(5444,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break C}d=L[b+14>>1];E:{if(L[b+8>>1]<=j>>>0){g=d;d=L[b+12>>1];if(J[682142]<(g+d|0)){J[695492]=0;b=ja(5018,k+8|0,2387307,2387639,577,2381799,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break B; -J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(b);break b}h=d+J[682141]|0;break E}h=L[b+12>>1]+(J[b+20>>2]+P(d,j)|0)|0}f=f-1|0;d=0;if(L[b+10>>1])break A;break z}c=Z()|0;break b}c=Z()|0;break b}F:{while(1){G:{i=K[d+h|0];H:{if(J[e+20>>2])break H;g=J[e+36>>2];if(!g)break H;J[695492]=0;da(5444,e|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break G}g=L[e+14>>1];I:{if(L[e+8>>1]<=d>>>0){l=g;g=L[e+12>>1];if(J[682142]<(l+g|0)){J[695492]=0;b=ja(5018,k+8|0,2387307,2387639,577,2381799, -0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break F;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(b);break b}g=g+J[682141]|0;break I}g=L[e+12>>1]+(J[e+20>>2]+P(d,g)|0)|0}H[g+f|0]=i;d=d+1|0;if(d>>>0>1])continue;break z}break}c=Z()|0;break b}c=Z()|0;break b}j=j+1|0;if((c|0)!=(j|0))continue;break}break g}l=L[e+8>>1];if(!l)break g;g=L[e+10>>1];m=g&3;h=l;while(1){J:{K:{L:{M:{N:{O:{P:{if(J[b+20>>2])break P;c=J[b+36>>2];if(!c)break P;J[695492]=0;da(5444,b|0,c|0);c=J[695492]; -J[695492]=0;if((c|0)==1)break O}c=L[b+14>>1];Q:{if(L[b+8>>1]<=j>>>0){f=c;c=L[b+12>>1];if(J[682142]<(f+c|0)){J[695492]=0;b=ja(5018,k+8|0,2387307,2387639,577,2381799,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break N;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(b);break b}d=c+J[682141]|0;break Q}d=L[b+12>>1]+(J[b+20>>2]+P(c,j)|0)|0}R:{if(J[e+20>>2])break R;c=J[e+36>>2];if(!c)break R;J[695492]=0;da(5444,e|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break M}c=L[e+14>>1]; -h=h-1|0;S:{if(h>>>0>=L[e+8>>1]){f=c;c=L[e+12>>1];if(J[682142]<(f+c|0)){J[695492]=0;b=ja(5018,k+8|0,2387307,2387639,577,2381799,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break L;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(b);break b}i=c+J[682141]|0;break S}i=L[e+12>>1]+(J[e+20>>2]+P(c,h)|0)|0}if(!g)break J;f=0;c=g;if(m)while(1){c=c-1|0;H[i+c|0]=K[d|0];d=d+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}if(g>>>0>3)break K;break J}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0; -break b}c=Z()|0;break b}while(1){f=c+i|0;H[f-1|0]=K[d|0];H[f-2|0]=K[d+1|0];H[f-3|0]=K[d+2|0];f=c-4|0;H[f+i|0]=K[d+3|0];d=d+4|0;n=(c|0)>4;c=f;if(n)continue;break}}j=j+1|0;if((l|0)!=(j|0))continue;break}}if(L[b+16>>1]!=2)break f;J[695492]=0;_(5445,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;_(5445,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break c}bc=k+32|0;return}J[695492]=0;b=ja(5018,k+8|0,2387307,2387639,577,2381799,0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[695492]=0;_(5019,b|0); -c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(b);break b}c=Z()|0;break b}J[695492]=0;b=ja(5018,k+8|0,2387307,2387639,577,2381799,0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(b);break b}c=Z()|0;break b}c=Z()|0}vc(a);ba(c|0)}B()}function J8(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=2;a:{b:{if(!a|J[a>>2]!=1381173770)break b;if(!K[a+432|0])break a;J[a+148>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;H[a+136|0]=0;J[a+132>>2]=0;c:{d:{if(K[a+ -496|0]|K[a+344|0]){if(!(K[a+497|0]|K[a+368|0]|K[a+499|0]))break a;H[a+499|0]=0;H[a+497|0]=0;if(K[a+344|0]){e:{if(K[a+368|0]){f=a,g=J[a+484>>2]-J[a+364>>2]+gc[J[a+236>>2]](a)|0,J[f+484>>2]=g;break e}f=a,g=gc[J[a+236>>2]](a)|0,J[f+484>>2]=g}H[a+368|0]=0;d=o8(a);if(!K[a+346|0])break c;H[a+344|0]=0;xN(a);break c}f=a,g=gc[J[a+236>>2]](a)|0,J[f+484>>2]=g;break d}b=gc[J[a+236>>2]](a)|0;H[a+496|0]=1;J[a+484>>2]=b}f:{if(!(K[a+498|0]|!(J[a+464>>2]|J[a+468>>2]|J[a+472>>2]))){J[a+680>>2]=0;J[a+672>>2]=0;H[a+ -476|0]=1;J[a+664>>2]=0;J[a+656>>2]=0;I[a+648>>1]=256;J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;d=J[a+16>>2];J[a+676>>2]=d;b=J[a+20>>2];J[a+684>>2]=b;J[a+668>>2]=b;J[a+660>>2]=d;J[a+588>>2]=d;J[a+604>>2]=d<<2;Ox(a);b=gc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=b;if(!b){Dc(a,1,0,0);b=1;break f}c=J[a+680>>2];while(1){g:{if(J[a+684>>2]<=(c|0)){b=0;break g}b=gc[J[a+968>>2]](a)|0;if(b)break g;c=c+1|0;b=Jr(a);if(!b)continue}break}d=J[a+644>>2];if(d){gc[J[a+156>>2]](d,J[a+604>> -2]);J[a+644>>2]=0}if(b)break f;J[a+516>>2]=J[a+696>>2]}c=K[a+476|0];while(1){if(c&255)H[a+497|0]=0;b=K[a+498|0]-1|0;h:{i:{if((b&255)>>>0<=97){j:switch(b|0){case 0:b=ND(a);break i;case 2:case 3:Mx(a);b=0;break i;case 4:b=0;Lh(a,J[a+532>>2],0);H[a+498|0]=0;break i;case 8:c=L[a+2322>>1];k:{if(c>>>0>L[a+2324>>1])break k;while(1){if(K[a+497|0])break k;I[a+2322>>1]=c;b=c&65535;l:{if(!b)break l;b=$g(a,b);if(!b|K[b+30|0]|(!K[b+31|0]|!K[b+32|0]))break l;b=Lh(a,b,0);if(b)break i}c=c+1|0;if(L[a+2324>>1]>=(c& -65535)>>>0)continue;break}}b=0;c=K[a+497|0];H[a+498|0]=c?9:0;break h;case 9:b=0;H[a+1124|0]=0;Eo(a);break i;case 10:b=L[a+2326>>1];m:{if(b){c=$g(a,b);break m}c=J[a+528>>2]}b=Lh(a,c,0);if(b)break i;b=0;H[a+498|0]=0;break i;default:break j}Dc(a,999,0,0);b=999;break f}b=J[a+516>>2];if(!b){b=0;break i}b=gc[J[b+4>>2]](a,b)|0}c=K[a+497|0]}d=c&255;if(!d)H[a+498|0]=0;n:{if(b)break n;b=0;if(d)break n;d=J[a+516>>2];if(K[a+499|0]|!d)break n;c=J[d+8>>2];J[a+516>>2]=c;if(!(c|J[a+12>>2]!=2)){b=MD(a);c=J[a+516>> -2]}if(c)break n;H[a+502|0]=1}c=K[a+476|0];o:{if(!c){c=0;break o}d=J[a+464>>2];p:{if(!(!d|d>>>0>M[a+436>>2])){J[a+464>>2]=0;break p}d=J[a+468>>2];if(!(!d|d>>>0>M[a+440>>2])){J[a+468>>2]=0;break p}d=J[a+472>>2];if(!d|d>>>0>M[a+444>>2])break o;J[a+472>>2]=0}c=0;H[a+476|0]=0}if(b)break f;q:{if(!J[a+516>>2]|!((K[a+497|0]?0:K[a+496|0])|c))break q;if(K[a+499|0])break q;if(!K[a+500|0])continue}break}r:{if(!K[a+497|0]){if(!K[a+502|0])break r;s:{if(K[a+460|0]|!K[a+496|0])break s;d=J[a+564>>2];e=J[a+560>>2]; -if(d>>>0<=e>>>0)break s;b=J[a+556>>2];c=J[a+552>>2];if(b>>>0<=c>>>0)break s;if(!(gc[J[a+232>>2]](a,c,e,b-c|0,d-e|0)|0)){Dc(a,904,0,0);b=904;break f}H[a+502|0]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+552>>2]=0;J[a+556>>2]=0;if(K[a+500|0])break s;b=OD(a);if(b)break f}if(!K[a+497|0])break r}b=0;if(K[a+498|0])break f;H[a+498|0]=99;break f}b=0;H[a+498|0]=0;if(J[a+516>>2])break f;H[a+496|0]=0}d=b}if(d)break b;if(K[a+368|0]){f=a,g=gc[J[a+236>>2]](a)|0,J[f+364>>2]=g;return 14}d=15;if(K[a+497|0])break b;d=16;if(K[a+ -499|0])break b;d=0;H[a+496|0]=0;if(K[a+500|0])H[a+500|0]=0;if(!K[a+501|0])break b;H[a+432|0]=0;xN(a);c=J[a+548>>2];t:{if(!c)break t;e=J[c+1120>>2];u:{if(!e)break u;b=J[c+1124>>2];if(!b)break u;gc[J[a+156>>2]](b,e);c=J[a+548>>2];if(!c)break t}gc[J[a+156>>2]](c,1136);J[a+548>>2]=0}l8(a);c=J[a+688>>2];if(c)while(1){b=J[c+8>>2];gc[J[c>>2]](a,c)|0;c=b;if(b)continue;break}J[a+524>>2]=0;J[a+508>>2]=0;H[a+504|0]=0;H[a+460|0]=0;J[a+444>>2]=0;J[a+436>>2]=0;J[a+440>>2]=0;H[a+433|0]=0;J[a+688>>2]=0;J[a+692>> -2]=0;J[a+516>>2]=0;H[a+1062|0]=0;I[a+1060>>1]=0;J[a+332>>2]=0;J[a+464>>2]=0;J[a+468>>2]=0;J[a+480>>2]=0;J[a+484>>2]=0;H[a+469|0]=0;H[a+470|0]=0;H[a+471|0]=0;H[a+472|0]=0;H[a+473|0]=0;H[a+474|0]=0;H[a+475|0]=0;H[a+476|0]=0;J[a+488>>2]=0;J[a+492>>2]=0;H[a+495|0]=0;H[a+496|0]=0;H[a+497|0]=0;H[a+498|0]=0;H[a+499|0]=0;H[a+500|0]=0;H[a+501|0]=0;H[a+502|0]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+552>>2]=0;J[a+556>>2]=0;J[a+1016>>2]=0;H[a+1019|0]=0;H[a+1020|0]=0;H[a+1021|0]=0;H[a+1022|0]=0;J[a+1024>>2]=0;J[a+1028>> -2]=0;H[a+1032|0]=0;J[a+1036>>2]=0;J[a+1040>>2]=0;b=a+1044|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1051|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;J[a+1084>>2]=1;J[a+1088>>2]=2147483647;H[a+1092|0]=0;H[a+1080|0]=1;J[a+1096>>2]=0;J[a+1100>>2]=0;b=a+1104|0;J[b>>2]=0;J[b+4>>2]=0;H[a+1124|0]=0;H[a+1112|0]=1;J[a+1116>>2]=1;J[a+1120>>2]=2147483647;J[a+1128>>2]=0;J[a+1132>>2]=0;b=a+1136|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1932>>2]=0;J[a+1160>>2]=0;H[a+1148|0]=0;J[a+1144>>2]=1;b=a+ -2221|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;I[a+1150>>1]=0;I[a+1152>>1]=0;I[a+1154>>1]=0;I[a+1156>>1]=0;b=a+2216|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2208|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2200|0;J[b>>2]=0;J[b+4>>2]=0;J[a+2192>>2]=0;J[a+2196>>2]=0;c=J[a+2232>>2];v:{if(!c)break v;b=J[a+2236>>2];if(!b)break v;gc[J[a+156>>2]](b,c);J[a+2236>>2]=0}J[a+2336>>2]=0;J[a+2328>>2]=0;J[a+2332>>2]=0;I[a+2324>>1]=0;I[a+2252>>1]=0;J[a+2248>>2]=0;I[a+2244>>1]=0;J[a+2240>>2]=0;J[a+ -2232>>2]=0;J[a+2256>>2]=0;J[a+2260>>2]=0;J[a+2276>>2]=0;J[a+2280>>2]=0;J[a+2308>>2]=0;J[a+2312>>2]=0;b=a+2264|0;J[b>>2]=0;J[b+4>>2]=0;H[a+2272|0]=0;b=a+2284|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2292|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2299|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;a=a+2314|0;I[a>>1]=0;I[a+2>>1]=0;I[a+4>>1]=0;I[a+6>>1]=0}return d}Dc(a,11,0,0);return 11}function uqa(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;f=bc-32|0;bc=f;J[f+4>>2]=0; -J[f>>2]=0;e=J[J[a>>2]+16>>2];J[695492]=0;da(e|0,a|0,b|0);e=J[695492];J[695492]=0;a:{b:{c:{if((e|0)==1)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{e=J[b>>2];switch(e-2|0){case 0:case 3:break p;default:break o}}if(!d){J[695492]=0;b=ja(5018,f+8|0,2382912,2374240,946,2422139,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break n;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=Z()|0;Fc(b);break b}q:{r:{s:{if(!K[a+4|0]){J[695492]=0;e=$(4,72)|0;g=J[695492];J[695492]=0;if((g|0)==1)break s; -J[695492]=0;g=$(5516,e|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break m;J[695492]=0;J[f+8>>2]=0;e=f+8|0;aa(4985,e|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break s;J[695492]=0;aa(4993,d+4|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break r;e=J[f+8>>2];J[f+8>>2]=0;t:{if(!e)break t;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(g)break t;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}J[d>>2]=-1}J[695492]=0;aa(4993,f|0,d+4|0)|0;e=J[695492]; -J[695492]=0;if((e|0)!=1)break q;a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;vc(f+8|0);break b}e=J[b>>2]}u:{v:{w:{x:{y:{z:{A:switch(e|0){case 0:e=J[c>>2];if(!e){J[695492]=0;b=ja(5018,f+8|0,2382912,2374240,965,2422139,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=Z()|0;Fc(b);break b}g=J[J[a>>2]+28>>2];J[695492]=0;da(g|0,a|0,e|0);g=J[695492];J[695492]=0;B:{if((g|0)==1)break B;g=K[a+48|0];h=J[J[a>>2]+8>>2];J[695492]=0;g=ga(h|0,a|0,g| -0,a+68|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break B;H[a+48|0]=g;if(K[a+4|0])break z;J[695492]=0;da(5519,a|0,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break z}a=Z()|0;break b;case 2:e=J[J[a>>2]+40>>2];J[695492]=0;ca(e|0,a|0,J[f>>2],4);e=J[695492];J[695492]=0;if((e|0)==1)break c;J[695492]=0;da(5520,a|0,J[f>>2]);e=J[695492];J[695492]=0;if((e|0)==1)break c;break z;case 5:C:{if(d){g=J[c>>2];if(g)break C}J[695492]=0;b=ja(5018,f+8|0,2382912,2374240,984,2422139,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k; -J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=Z()|0;Fc(b);break b}e=J[J[a>>2]+20>>2];J[695492]=0;e=ga(e|0,a|0,d|0,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break j;h=J[d>>2];J[695492]=0;g=aa(5373,g|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break j;J[695492]=0;aa(4993,f+4|0,g+4|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;D:{if(!((e|0)<=J[a+140>>2]&(e|0)>=J[a+136>>2])){J[695492]=0;b=ja(5018,f+8|0,2381890,2382316,619,2422816,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break D; -J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=Z()|0;Fc(b);break b}e=J[a+124>>2]+(e-J[a+128>>2]<<4)|0;g=J[e+4>>2];h=J[e+8>>2];i=J[e+12>>2];e=J[e>>2];j=J[J[a>>2]+44>>2];J[695492]=0;la(j|0,a|0,J[f>>2],(h-g|0)+1|0,(e-i|0)+1|0,4);e=J[695492];J[695492]=0;if((e|0)==1)break D;e=J[d>>2];J[695492]=0;ia(5521,a|0,J[f>>2],f+4|0,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break z}a=Z()|0;break b;case 10:e=J[c>>2];if(!e){J[695492]=0;b=ja(5018,f+8|0,2382912,2374240,999,2422139,0)|0;a=J[695492]; -J[695492]=0;if((a|0)==1)break i;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=Z()|0;Fc(b);break b}g=J[J[a>>2]+12>>2];J[695492]=0;da(g|0,a|0,e+8|0);e=J[695492];J[695492]=0;if((e|0)!=1)break z;a=Z()|0;break b;case 11:break z;case 9:break A;default:break y}if(!K[a+49|0]){e=J[c>>2];if(!e){J[695492]=0;b=ja(5018,f+8|0,2382912,2374240,1012,2422139,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=Z()|0;Fc(b);break b}g= -J[J[a>>2]+24>>2];J[695492]=0;da(g|0,a|0,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break z;break c}J[a+52>>2]=0;J[a+56>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[695492]=0;ci(a+16|0,1,0);e=J[695492];J[695492]=0;if((e|0)==1)break c;J[695492]=0;ci(a+28|0,4,0);e=J[695492];J[695492]=0;if((e|0)==1)break c;J[695492]=0;ci(a+40|0,4,0);e=J[695492];J[695492]= -0;if((e|0)==1)break c;J[a+8>>2]=1}if(K[a+4|0])break v;switch(J[b>>2]-2|0){case 0:case 3:break x;default:break w}}J[695492]=0;b=ja(5018,f+8|0,2381220,2374240,1026,2422139,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=Z()|0;Fc(b);break b}E:{if(d){b=J[c>>2];if(b)break E}J[695492]=0;b=ja(5018,f+8|0,2382912,2374240,1040,2422139,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a| -0)!=1)break d;a=Z()|0;Fc(b);break b}J[695492]=0;b=aa(5522,b|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[695492]=0;ga(5523,a|0,b|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break w}a=Z()|0;break b}a=J[f>>2];if(!a)break u;J[695492]=0;_(5445,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}a=J[f>>2];J[f>>2]=0;if(!a)break u;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break u;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[f+4>> -2];J[f+4>>2]=0;F:{if(!a)break F;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(b)break F;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break e}bc=f+32|0;return}a=Z()|0;break b}a=Z()|0;qc(e);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}ea(0)|0;yc()}B()}a=Z()|0}vc(f);vc(f+4|0);ba(a|0);B()}ea(0)|0;yc();B()}function jEa(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;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;J[g+8>>2]=0;J[g+12>>2]=0;I[g+4>>1]=0;J[g>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;H[g+29|0]=0;H[g+30|0]=0;H[g+31|0]=0;H[g+32|0]=0;H[g+33|0]=0;H[g+34|0]=0;H[g+35|0]=0;H[g+36|0]=0;a:{b:{if(!a)break b;h=J[b>>2];if((h|0)>=J[c>>2])break b;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{while(1){j=J[(h<<2)+a>>2];if((j|0)!=32){if((j|0)!=40)break m;h=h+1|0;J[b>>2]=h;n=J[c>>2];if((n|0)<=(h|0))break a;m=J[(h<<2)+a>>2];if((m|0)!=32)break n;break o}h= -h+1|0;J[b>>2]=h;if(J[c>>2]>(h|0))continue;break}return 0}while(1){h=h+1|0;J[b>>2]=h;n=J[c>>2];if((n|0)<=(h|0))break a;m=J[(h<<2)+a>>2];if((m|0)==32)continue;break}}if(m-48>>>0<10)break k;j=m-45|0;if(j>>>0>24|!(1<>2]!=J[g+40>>2])break h;n=1;l=1;break i}l=1;if((m|0)!=101)break j}l=YG(a,b,c);n=J[c>>2];h=J[b>>2]}if((h|0)>=(n|0))break a;p:{while(1){q:{j=J[(h<<2)+a>>2];if((j|0)!=32){if((j|0)!=58)break a;h=h+1|0;J[b>>2]=h;m=J[c>>2];if((m|0)<=(h|0))break a;k=J[(h<<2)+ -a>>2];if((k|0)!=32)break p;break q}h=h+1|0;J[b>>2]=h;if(J[c>>2]>(h|0))continue;break a}break}while(1){h=h+1|0;J[b>>2]=h;m=J[c>>2];if((m|0)<=(h|0))break a;k=J[(h<<2)+a>>2];if((k|0)==32)continue;break}}r:{s:{if(k-48>>>0<10)break s;j=k-45|0;if(1<>>0<=24:0)break s;n=1;if((k|0)!=101)break r}n=YG(a,b,c);m=J[c>>2];h=J[b>>2]}if((h|0)>=(m|0))break a;while(1){j=J[(h<<2)+a>>2];if((j|0)!=32){if((j|0)!=41)break a;J[b>>2]=h+1;break i}h=h+1|0;J[b>>2]=h;if(J[c>>2]>(h|0))continue;break}break a}if((n| -0)<=0|(l|0)<=0)break h;J[g+44>>2]=J[g+40>>2];j=J[f>>2];h=J[e>>2];f=j-h|0;p=(f|0)>(l|0)?l:f;f=0;m=0;t:{if((h|0)==(j|0))break t;s=rc(p>>>0>1073741823?-1:p<<2);if((p|0)<=0)break t;k=(h<<1)+d|0;h=0;while(1){j=h+1|0;u:{d=L[k+(h<<1)>>1];v:{if((d- -8192&65535)>>>0<=63487){h=j;break v}if(d>>>0>=56320){h=j;break u}if((j|0)>=(p|0))break t;h=h+2|0;j=L[k+(j<<1)>>1];if((j- -8192&65535)>>>0<64512)break u;d=d<<10&982016|j&1023|65536}J[(m<<2)+s>>2]=d;m=m+1|0;if((h|0)<(p|0))continue;break t}if((h|0)<(p|0))continue; -break}}t=g+40|0;while(1){w:{if((f|0)<(m|0)){o=(f<<2)+s|0;h=J[g+44>>2];if((h|0)!=J[g+48>>2]){J[h>>2]=J[o>>2];J[g+44>>2]=h+4;break w}q=J[t>>2];l=h-q|0;j=l>>2;k=j+1|0;if(k>>>0>=1073741824)break g;d=l>>1;k=l>>>0>=2147483644?1073741823:d>>>0>k>>>0?d:k;if(k){if(k>>>0>=1073741824)break f;d=rc(k<<2)}else d=0;i=d+(j<<2)|0;J[i>>2]=J[o>>2];j=i+4|0;if((h|0)!=(q|0))while(1){i=i-4|0;h=h-4|0;J[i>>2]=J[h>>2];if((h|0)!=(q|0))continue;break}J[g+48>>2]=d+(k<<2);J[g+44>>2]=j;J[g+40>>2]=i;if(!q)break w;qc(q);break w}h= -J[g+44>>2];d=J[g+48>>2];if(h>>>0>>0){J[h>>2]=32;J[g+44>>2]=h+4;break w}o=J[t>>2];k=h-o>>2;l=k+1|0;if(l>>>0>=1073741824)break g;j=d-o|0;d=j>>1;l=j>>>0>=2147483644?1073741823:d>>>0>l>>>0?d:l;if(l){if(l>>>0>=1073741824)break f;d=rc(l<<2)}else d=0;i=d+(k<<2)|0;J[i>>2]=32;j=i+4|0;if((h|0)!=(o|0))while(1){i=i-4|0;h=h-4|0;J[i>>2]=J[h>>2];if((h|0)!=(o|0))continue;break}J[g+48>>2]=d+(l<<2);J[g+44>>2]=j;J[g+40>>2]=i;if(!o)break w;qc(o)}f=f+1|0;if((n|0)!=(f|0))continue;break}if(s)qc(s);J[e>>2]=J[e>>2]+p}i= -0;e=J[g+44>>2];d=J[g+40>>2];if((e|0)==(d|0))break a;J[g>>2]=J[d>>2];f=d;d=d+4|0;Zc(f,d,e-d|0);J[g+44>>2]=e-4;d=J[c>>2];h=J[b>>2];if((d|0)<=(h|0))break a;e=(h<<2)+a|0;f=J[e>>2];if(J[e>>2]==32)while(1){h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;if(J[(h<<2)+a>>2]==32)continue;break}if(f-48>>>0<10)break d;e=f-45|0;if(e>>>0>24|!(1<>1]=d;d=J[c>>2];h=J[b>>2]}i=1;if((d|0)<=(h|0))break a; -i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}x:{if((i|0)!=44)break x;i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}y:{z:{if(i-48>>>0<10)break z;e=i-45|0;if((i|0)==101|(1<>>0<=24:0))break z;H[g+34|0]=0;break y}r=Te(a,b,c);H[g+34|0]=1;O[g+8>>3]= -r;d=J[c>>2];h=J[b>>2]}i=1;if((d|0)<=(h|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}if((i|0)!=44)break x;i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}A:{B:{if(i-48>>>0<10)break B;e=i-45|0;if((i|0)==101|(1<>>0<=24:0))break B;H[g+35| -0]=0;break A}r=Te(a,b,c);H[g+35|0]=1;O[g+16>>3]=r;d=J[c>>2];h=J[b>>2]}i=1;if((d|0)<=(h|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}if((i|0)!=44)break x;i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}C:{if(i-48>>>0<10)break C;e=i-45|0;if((i|0)==101| -(1<>>0<=24:0))break C;H[g+36|0]=0;break x}r=Te(a,b,c);H[g+36|0]=1;O[g+24>>3]=r;d=J[c>>2];h=J[b>>2]}i=1;if((d|0)<=(h|0))break a;while(1){d=J[(h<<2)+a>>2];if((d|0)!=32){i=0;if((d|0)!=59)break a;i=1;J[b>>2]=h+1;break a}h=h+1|0;J[b>>2]=h;if(J[c>>2]>(h|0))continue;break}break a}if(!d)break a;a=J[e>>2];if((a|0)>=J[f>>2])break a;J[e>>2]=a+1;a=L[(a<<1)+d>>1];H[g+32|0]=1;J[g>>2]=a;return 1}return i|0}function HV(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0;j=bc-544|0;bc=j;e=J[a+24>>2];J[j+540>>2]=e-1;i=bc-32|0;bc=i;b=j+272|0;J[b+4>>2]=J[a+36>>2];J[b>>2]=e;c=ch(b+12|0,b+8|0,e,4);J[695492]=0;e=ha(5043,b+24|0,b+20|0,e+1|0,4)|0;l=J[695492];J[695492]=0;a:{b:{if((l|0)!=1){l=J[b>>2];if(l-1>>>0>=16777215){J[695492]=0;b=ja(5018,i+8|0,2383308,2373971,167,2384144,0)|0;a=J[695492];J[695492]=0;c:{if((a|0)!=1){J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}a=Z()|0;_c(e);break b}a=Z()| -0;Fc(b);_c(e);break b}J[J[b+20>>2]+(l<<2)>>2]=-1;bc=i+32|0;break a}a=Z()|0}_c(c);ba(a|0);B()}J[695492]=0;da(5047,b|0,j+540|0);e=J[695492];J[695492]=0;if((e|0)!=1){_c(b+24|0);_c(b+12|0);b=J[a+24>>2];d=J[a+48>>2];i=1;while(1){e=(J[d+20>>2]>>>1|0)+32768|0;b=b<<1&33554430;c=b>>>24|0;d:{if(b>>>0>=16777216){ev(d,e);break d}As(d,e)}i=i<<1|c;if((i|0)<16777216)continue;break}e=J[a+24>>2];e:{if((e|0)<=99999){As(d,(J[d+20>>2]>>>1|0)+32768|0);break e}v=1;ev(d,(J[d+20>>2]>>>1|0)+32768|0);b=(J[d+20>>2]>>>1|0)+ -32768|0;if(e>>>0<=999999){As(d,b);break e}ev(d,b);v=2}i=0;b=0;while(1){e=j+272|0;H[e+b|0]=b;c=b|1;H[c+e|0]=c;c=b|2;H[c+e|0]=c;c=b|3;H[c+e|0]=c;c=b|4;H[c+e|0]=c;c=b|5;H[c+e|0]=c;c=b|6;H[c+e|0]=c;c=e;e=b|7;H[c+e|0]=e;b=b+8|0;if((b|0)!=256)continue;break}while(1){e=j+16|0;b=j+272|0;H[e+K[b+i|0]|0]=i;c=i|1;H[e+K[c+b|0]|0]=c;c=i|2;H[e+K[c+b|0]|0]=c;c=b;b=i|3;H[e+K[c+b|0]|0]=b;i=i+4|0;if((i|0)!=256)continue;break}J[j+8>>2]=0;J[j+12>>2]=0;J[j>>2]=0;J[j+4>>2]=0;if(J[a+24>>2]>0){t=a+59|0;n=a+184|0;o=a+120| -0;p=a+88|0;q=a+72|0;r=a- -64|0;s=a+60|0;u=a+58|0;F=a+55|0;G=a+52|0;w=J[j+540>>2];b=3;l=4;while(1){f=(b|0)>=2?2:b;c=f+G|0;h=K[c|0];b=J[((h<<2)+d|0)+44>>2]+J[d+20>>2]|0;x=K[J[a+36>>2]+m|0];y=x+(j+16|0)|0;i=K[y|0];g=(m|0)!=(w|0);e=g?i:256;f:{if(!(!e^!(h&1))){Bh(d,c,b);break f}if(b>>>0>=32768){Ch(d,c,b);break f}J[d+20>>2]=b}g:{h:{if(!e)break h;c=f+F|0;f=K[c|0];b=J[((f<<2)+d|0)+44>>2]+J[d+20>>2]|0;h=!(f&1);f=(e|0)==1;i:{if(!(h^f)){Bh(d,c,b);break i}if(b>>>0>=32768){Ch(d,c,b);break i}J[d+20>>2]=b}if(f)break h; -c=K[u|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;j:{if(!(!(c&1)^e>>>0<4)){Bh(d,u,b);break j}if(b>>>0>=32768){Ch(d,u,b);break j}J[d+20>>2]=b}if(e>>>0<=3){c=K[t|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;if((c^e)&1){Bh(d,t,b);break h}if(b>>>0>=32768){Ch(d,t,b);break h}J[d+20>>2]=b;break h}c=K[s|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;k:{if(!(!(c&1)^e>>>0<8)){Bh(d,s,b);break k}if(b>>>0>=32768){Ch(d,s,b);break k}J[d+20>>2]=b}if(e>>>0<=7){c=e-4|0;b=1;while(1){h=b+s|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>> -2]|0;k=g&1;c=c<<1&6;g=c>>>2|0;l:{if((k|0)!=(g|0)){Bh(d,h,f);break l}if(f>>>0>=32768){Ch(d,h,f);break l}J[d+20>>2]=f}b=g|b<<1;if((b|0)<4)continue;break}break h}c=K[r|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;m:{if(!(!(c&1)^e>>>0<16)){Bh(d,r,b);break m}if(b>>>0>=32768){Ch(d,r,b);break m}J[d+20>>2]=b}if(e>>>0<=15){c=e-8|0;b=1;while(1){h=b+r|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&14;g=c>>>3|0;n:{if((k|0)!=(g|0)){Bh(d,h,f);break n}if(f>>>0>=32768){Ch(d,h,f);break n}J[d+20>>2]=f}b=g| -b<<1;if((b|0)<8)continue;break}break h}c=K[q|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;o:{if(!(!(c&1)^e>>>0<32)){Bh(d,q,b);break o}if(b>>>0>=32768){Ch(d,q,b);break o}J[d+20>>2]=b}if(e>>>0<=31){c=e-16|0;b=1;while(1){h=b+q|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&30;g=c>>>4|0;p:{if((k|0)!=(g|0)){Bh(d,h,f);break p}if(f>>>0>=32768){Ch(d,h,f);break p}J[d+20>>2]=f}b=g|b<<1;if((b|0)<16)continue;break}break h}c=K[p|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;q:{if(!(!(c&1)^e>>>0<64)){Bh(d,p, -b);break q}if(b>>>0>=32768){Ch(d,p,b);break q}J[d+20>>2]=b}if(e>>>0<=63){c=e-32|0;b=1;while(1){h=b+p|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&62;g=c>>>5|0;r:{if((k|0)!=(g|0)){Bh(d,h,f);break r}if(f>>>0>=32768){Ch(d,h,f);break r}J[d+20>>2]=f}b=g|b<<1;if((b|0)<32)continue;break}break h}c=K[o|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;s:{if(!(!(c&1)^e>>>0<128)){Bh(d,o,b);break s}if(b>>>0>=32768){Ch(d,o,b);break s}J[d+20>>2]=b}if(e>>>0<=127){c=e+-64|0;b=1;while(1){h=b+o|0;g=K[h|0];f= -J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&126;g=c>>>6|0;t:{if((k|0)!=(g|0)){Bh(d,h,f);break t}if(f>>>0>=32768){Ch(d,h,f);break t}J[d+20>>2]=f}b=g|b<<1;if((b|0)<64)continue;break}break h}c=K[n|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;u:{if(!(g^!(c&1))){Bh(d,n,b);break u}if(b>>>0>=32768){Ch(d,n,b);break u}J[d+20>>2]=b}if((m|0)==(w|0))break g;c=i-128|0;b=1;while(1){h=b+n|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&254;g=c>>>7|0;v:{if((k|0)!=(g|0)){Bh(d,h,f);break v}if(f>>>0>=32768){Ch(d, -h,f);break v}J[d+20>>2]=f}b=g|b<<1;if((b|0)<128)continue;break}}l=(l>>v)+l|0;if((l|0)>=268435457){J[j>>2]=K[j+3|0];J[j+4>>2]=K[j+7|0];J[j+8>>2]=K[j+11|0];J[j+12>>2]=K[j+15|0];l=l>>>24|0}w:{x:{y:{if(e>>>0>=4){i=0;b=e;h=b+1&3;if(h)while(1){g=j+272|0;c=b-1|0;f=K[g+c|0];H[b+g|0]=f;H[f+(j+16|0)|0]=b;b=c;i=i+1|0;if((h|0)!=(i|0))continue;break}i=3;if(e-4>>>0>=3)while(1){h=b-1|0;c=j+272|0;g=h+c|0;k=K[g|0];f=j+16|0;H[k+f|0]=b;z=b-2|0;A=c+z|0;C=K[A|0];H[f+C|0]=h;h=b-3|0;D=c+h|0;E=K[D|0];H[f+E|0]=z;H[b+c|0]= -k;H[A|0]=E;H[g|0]=C;g=c;c=b-4|0;g=K[g+c|0];H[D|0]=g;H[f+g|0]=h;f=(b|0)>7;b=c;if(f)continue;break}c=l;break y}c=J[(e<<2)+j>>2]+l|0;if(!e)break x}while(1){b=i-1|0;f=J[(b<<2)+j>>2];if(f>>>0>c>>>0)break w;J[(i<<2)+j>>2]=f;h=j+272|0;f=K[h+b|0];H[i+h|0]=f;H[f+(j+16|0)|0]=i;f=i>>>0>1;i=b;if(f)continue;break}}i=0}H[(j+272|0)+i|0]=x;J[(i<<2)+j>>2]=c;H[y|0]=i}b=e;m=m+1|0;if((m|0)>2])continue;break}}bc=j+544|0;return 0}a=Z()|0;_c(b+24|0);_c(b+12|0);ba(a|0);B()}function Nra(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=Q(0),l=Q(0),m=0,n=0;g=bc-48|0;bc=g;a:{b:{c:{if(!(J[c>>2]|J[c+4>>2]|N[c+8>>2]!=Q(0))){b=Kc(g+24|0,2379572,2374323,1683,2415760,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}e=J[a+12>>2];if(!e){b=Kc(g+24|0,238E4,2374323,1685,2415760,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}d:{if(J[a+56>>2])break d;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;h=rc(540);J[695492]=0;i=rz(h,e);d=J[695492]; -J[695492]=0;e:{f:{g:{if((d|0)!=1){J[i>>2]=2415352;d=J[e+8>>2];e=J[e+4>>2];J[695492]=0;ga(5501,i+508|0,e|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){a=Z()|0;qc(h);break c}J[a+56>>2]=i;if(!J[a+20>>2])break d;e=J[a+16>>2];if(!e)break d;h=rc(540);J[695492]=0;i=rz(h,e);d=J[695492];J[695492]=0;if((d|0)==1)break g;J[i>>2]=2415352;d=J[e+8>>2];e=J[e+4>>2];J[695492]=0;ga(5501,i+508|0,e|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){a=Z()|0;qc(h);break c}J[a+60>>2]=i;e=rc(540);h=J[a+20>>2];J[695492]=0;i=rz(e, -h);d=J[695492];J[695492]=0;if((d|0)==1)break f;J[i>>2]=2415352;d=J[h+8>>2];h=J[h+4>>2];J[695492]=0;ga(5501,i+508|0,h|0,d|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break e;a=Z()|0;qc(e);break c}a=Z()|0;qc(h);break c}a=Z()|0;qc(h);break c}a=Z()|0;qc(e);break c}J[a+64>>2]=i}e=J[a+32>>2];J[a+32>>2]=e+2;if(!J[a+28>>2])J[a+32>>2]=e+9;On(g+24|0);e=0;h:{i:{j:{h=J[g+24>>2];if(h){J[695492]=0;J[h+4>>2]=J[h+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[g+24>>2]}J[695492]=0;J[g+16>>2]=e;ia(5044,g+20| -0,g+16|0,1,1);e=J[695492];J[695492]=0;k:{l:{if((e|0)!=1){e=J[g+16>>2];i=0;J[g+16>>2]=0;m:{if(!e)break m;J[695492]=0;d=J[e+4>>2]-1|0;J[e+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(d)break m;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}l=Q(-1);d=J[g+20>>2];n:{o:{k=N[c+8>>2];if(!(k>Q(0))){e=1;break o}e=1;if(!(k<=Q(-1)))break o;break n}while(1){if(J[c+4>>2]>0){f=J[J[h>>2]+16>>2];J[695492]=0;f=$(f|0,h|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break l;if(J[c+4>>2]<=(f+ -J[a+32>>2]|0))break n}f=J[c>>2];if((f|0)>0&(f|0)<=(J[a+24>>2]+i|0))break n;e=J[a+56>>2];f=J[J[e>>2]+8>>2];J[695492]=0;e=aa(f|0,e|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;p:{if(!e)break p;k=N[c+8>>2];if(!(k>Q(0)))break p;f=J[a+56>>2];if(+l>=+k+-5?0:J[f+8>>2])break p;l=N[a+8>>2];J[695492]=0;l=Q(Ab(5506,f|0,Q(l)));f=J[695492];J[695492]=0;if((f|0)==1)break l}q:{if(!J[a+64>>2])break q;f=J[a+60>>2];if(!f|J[a+36>>2]>(J[a+24>>2]+i|0))break q;j=J[J[f>>2]+8>>2];J[695492]=0;f=aa(j|0,f|0,d|0)|0;j= -J[695492];J[695492]=0;if((j|0)==1)break l;j=J[a+64>>2];m=J[J[j>>2]+8>>2];J[695492]=0;j=aa(m|0,j|0,d|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break l;e=f|j|e}i=i+1|0;if(e){k=N[c+8>>2];if(!(k>Q(0)))continue;if(l>=k)break n;continue}break}e=0}c=J[g+20>>2];J[g+20>>2]=0;if(!c)break k;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break k;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break k}break a}a=Z()|0;vc(g+16|0);break h}a=Z()|0;vc(g+20|0);break h}d= -K[a+28|0];c=J[b>>2];J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break i;c=J[b>>2];J[695492]=0;J[g+12>>2]=c;da(5134,c|0,d|0);d=J[695492];J[695492]=0;r:{s:{t:{u:{v:{w:{x:{if((d|0)==1)break x;J[695492]=0;da(5134,c|0,i&255);d=J[695492];J[695492]=0;if((d|0)==1)break x;J[695492]=0;J[g+12>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!d){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}if(J[a+28>>2])break r;d=J[a+16>>2];f=J[a+ -20>>2];c=J[b>>2];J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break v;c=J[b>>2];J[695492]=0;J[g+8>>2]=c;da(5134,c|0,(f?d?1:129:129)|0);d=J[695492];J[695492]=0;if((d|0)==1)break u;J[695492]=0;da(5134,c|0,2);d=J[695492];J[695492]=0;if((d|0)==1)break u;J[695492]=0;J[g+8>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break w;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break w}break a}a=Z()|0;vc(g+12|0);break h}c=J[a+12>>2];d=J[c+4>> -2];f=J[c+8>>2];m=J[a+40>>2];j=J[a+36>>2];c=J[b>>2];J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break t;c=J[b>>2];J[695492]=0;J[g+4>>2]=c;da(5134,c|0,d>>>8&255);n=J[695492];J[695492]=0;if((n|0)==1)break s;J[695492]=0;da(5134,c|0,d&255);d=J[695492];J[695492]=0;if((d|0)==1)break s;J[695492]=0;da(5134,c|0,f>>>8&255);d=J[695492];J[695492]=0;if((d|0)==1)break s;J[695492]=0;da(5134,c|0,f&255);d=J[695492];J[695492]=0;if((d|0)==1)break s;J[695492]=0;da(5134,c|0,((j|0)>0?j:0)&255| -!m<<7);d=J[695492];J[695492]=0;if((d|0)==1)break s;J[695492]=0;J[g+4>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break r;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break r}break a}a=Z()|0;break h}a=Z()|0;vc(g+8|0);break h}a=Z()|0;break h}a=Z()|0;vc(g+4|0);break h}c=J[J[h>>2]+20>>2];J[695492]=0;ha(c|0,h|0,0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;b=J[b>>2];J[695492]=0;ga(5165,b|0,h|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[J[h>> -2]+16>>2];J[695492]=0;b=$(b|0,h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;J[a+32>>2]=b+J[a+32>>2];J[a+24>>2]=J[a+24>>2]+i;J[a+28>>2]=J[a+28>>2]+1;a=J[g+24>>2];J[g+24>>2]=0;y:{if(!a)break y;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break y;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=g+48|0;return e|0}a=Z()|0;break h}a=Z()|0}vc(g+24|0)}ba(a|0)}B()}ea(0)|0;yc();B()}function S7a(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;f=bc-16|0;bc=f;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;d=J[b+8>>2];m=a+20|0;J[m>>2]=0;c=a+12|0;J[c>>2]=0;J[c+4>>2]=0;J[a+8>>2]=d;H[f+12|0]=0;J[f+8>>2]=c;e=J[b+16>>2];k=J[b+12>>2];l=e-k|0;d=(l|0)/12|0;a:{if((e|0)!=(k|0)){b:{c:{d:{if(d>>>0>=357913942){J[695492]=0;_(2379,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;break a}J[695492]=0;c=$(4,l|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;J[a+16>>2]=c;J[a+12>>2]=c;J[a+20>>2]=c+P(d,12);d=J[b+16>>2];e=J[b+12>>2]; -J[695492]=0;d=ha(2261,m|0,e|0,d|0,c|0)|0;m=J[695492];J[695492]=0;if((m|0)!=1)break b;d=Z()|0;J[a+16>>2]=c;break c}d=Z()|0}no(f+8|0);ba(d|0);B()}J[a+16>>2]=d}c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;J[a+48>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;m=a+40|0;e:{f:{c=J[b+44>>2];d=J[b+40>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>2;if(d>>>0>=1073741824){J[695492]=0;_(2266,m|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break f}J[695492]=0;c=$(4,c|0)|0;e=J[695492];J[695492]= -0;if((e|0)==1)break f;J[a+44>>2]=c;J[a+40>>2]=c;J[a+48>>2]=(d<<2)+c;d=J[b+40>>2];e=J[b+44>>2];if((d|0)!=(e|0))while(1){N[c>>2]=N[d>>2];c=c+4|0;d=d+4|0;if((e|0)!=(d|0))continue;break}J[a+44>>2]=c}J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;e=a+52|0;g:{h:{c=J[b+56>>2];d=J[b+52>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>2;if(d>>>0>=1073741824){J[695492]=0;_(2266,e|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break h}J[695492]=0;c=$(4,c|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break h;J[a+56>>2]=c;J[a+52>>2]=c;J[a+ -60>>2]=(d<<2)+c;d=J[b+52>>2];k=J[b+56>>2];if((d|0)!=(k|0))while(1){N[c>>2]=N[d>>2];c=c+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}J[a+56>>2]=c}c=J[b+68>>2];J[a+64>>2]=J[b+64>>2];J[a+68>>2]=c;J[a+80>>2]=J[b+80>>2];c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;J[a+92>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;k=a+84|0;i:{j:{c=J[b+88>>2];d=J[b+84>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>3;if(d>>>0>=536870912){J[695492]=0;_(2264,k|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break j}J[695492]=0;c=$(4,c|0)|0;l=J[695492]; -J[695492]=0;if((l|0)==1)break j;J[a+88>>2]=c;J[a+84>>2]=c;J[a+92>>2]=(d<<3)+c;d=J[b+84>>2];l=J[b+88>>2];if((d|0)!=(l|0))while(1){i=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=i;c=c+8|0;d=d+8|0;if((l|0)!=(d|0))continue;break}J[a+88>>2]=c}J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;l=a+96|0;k:{l:{c=J[b+100>>2];d=J[b+96>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>2;if(d>>>0>=1073741824){J[695492]=0;_(2265,l|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break l}J[695492]=0;c=$(4,c|0)|0;i=J[695492];J[695492]=0;if((i|0)== -1)break l;J[a+100>>2]=c;J[a+96>>2]=c;J[a+104>>2]=(d<<2)+c;d=J[b+96>>2];j=J[b+100>>2];if((d|0)!=(j|0))while(1){i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[c|0]=i;H[c+1|0]=i>>>8;H[c+2|0]=i>>>16;H[c+3|0]=i>>>24;c=c+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}J[a+100>>2]=c}J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;i=a+108|0;m:{n:{c=J[b+112>>2];d=J[b+108>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>2;if(d>>>0>=1073741824){J[695492]=0;_(2266,i|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break n}J[695492]= -0;c=$(4,c|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break n;J[a+112>>2]=c;J[a+108>>2]=c;J[a+116>>2]=(d<<2)+c;d=J[b+108>>2];j=J[b+112>>2];if((d|0)!=(j|0))while(1){N[c>>2]=N[d>>2];c=c+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}J[a+112>>2]=c}J[a+120>>2]=0;J[a+124>>2]=0;n=a+128|0;J[n>>2]=0;H[f+12|0]=0;j=a+120|0;J[f+8>>2]=j;c=J[b+124>>2];g=J[b+120>>2];h=c-g|0;d=(h|0)/12|0;o:{p:{q:{if((c|0)!=(g|0)){if(d>>>0>=357913942){J[695492]=0;_(2380,j|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break q}J[695492]= -0;c=$(4,h|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break q;J[a+124>>2]=c;J[a+120>>2]=c;J[a+128>>2]=c+P(d,12);d=J[b+124>>2];g=J[b+120>>2];J[695492]=0;d=ha(2262,n|0,g|0,d|0,c|0)|0;n=J[695492];J[695492]=0;if((n|0)==1){d=Z()|0;J[a+124>>2]=c;break p}J[a+124>>2]=d}J[a+132>>2]=0;J[a+136>>2]=0;g=a+140|0;J[g>>2]=0;H[f+12|0]=0;n=a+132|0;J[f+8>>2]=n;c=J[b+136>>2];h=J[b+132>>2];o=c-h|0;d=(o|0)/12|0;r:{s:{if((c|0)!=(h|0)){if(d>>>0>=357913942){J[695492]=0;_(2379,n|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a; -break s}J[695492]=0;c=$(4,o|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break s;J[a+136>>2]=c;J[a+132>>2]=c;J[a+140>>2]=c+P(d,12);d=J[b+136>>2];h=J[b+132>>2];J[695492]=0;d=ha(2261,g|0,h|0,d|0,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1){d=Z()|0;J[a+136>>2]=c;break r}J[a+136>>2]=d}J[a+144>>2]=0;J[a+148>>2]=0;g=a+152|0;J[g>>2]=0;H[f+12|0]=0;c=a+144|0;J[f+8>>2]=c;h=J[b+148>>2];o=J[b+144>>2];p=h-o|0;d=(p|0)/12|0;t:{u:{if((h|0)!=(o|0)){if(d>>>0>=357913942){J[695492]=0;_(2381,c|0);b=J[695492];J[695492]=0;if((b| -0)!=1)break a;break u}J[695492]=0;c=$(4,p|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break u;J[a+148>>2]=c;J[a+144>>2]=c;J[a+152>>2]=c+P(d,12);d=J[b+148>>2];b=J[b+144>>2];J[695492]=0;b=ha(2263,g|0,b|0,d|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1){d=Z()|0;J[a+148>>2]=c;break t}J[a+148>>2]=b}bc=f+16|0;return a|0}d=Z()|0}no(f+8|0);ol(n);ol(j);break o}d=Z()|0}no(f+8|0);ol(j);break o}d=Z()|0}no(f+8|0)}b=J[i>>2];if(!b)break m;J[a+112>>2]=b;qc(b);break m}d=Z()|0;b=J[i>>2];if(!b)break m;J[a+112>>2]=b;qc(b)}b= -J[l>>2];if(!b)break k;J[a+100>>2]=b;qc(b);break k}d=Z()|0;b=J[l>>2];if(!b)break k;J[a+100>>2]=b;qc(b)}b=J[k>>2];if(!b)break i;J[a+88>>2]=b;qc(b);break i}d=Z()|0;b=J[k>>2];if(!b)break i;J[a+88>>2]=b;qc(b)}b=J[e>>2];if(!b)break g;J[a+56>>2]=b;qc(b);break g}d=Z()|0;b=J[e>>2];if(!b)break g;J[a+56>>2]=b;qc(b)}b=J[m>>2];if(!b)break e;J[a+44>>2]=b;qc(b);break e}d=Z()|0;b=J[m>>2];if(!b)break e;J[a+44>>2]=b;qc(b)}$j(a+8|0);ba(d|0);B()}B()}function Hk(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;e=bc-48|0;bc=e;f=!a;a:{if(f)break a;c=f?0:J[a+36>>2];if(!c){if(a)J[a+16>>2]=J[a+16>>2]+1;h=a;break a}xf(a,e+32|0,e+28|0,e+24|0);f=J[e+24>>2];if(f>>>0>8|!(1<>2]=0;J[g>>2]=0;J[k>>2]=0;if(!c)break b;p=J[c+12>>2];q=bd(p,4);if(!q)break b;m=bd(p,4);if(!m)break b;d=bd(p,4);if(!d)break b;J[k>>2]=q;J[g>>2]=m;J[n>>2]=d;f=0;if((p|0)<=0)break b;j=J[c>>2];k=0;if((p|0)!=1){n=p&-2;while(1){i=k<<2;g=i+j|0;J[i+q>>2]=K[g+2|0]; -J[i+m>>2]=K[g+1|0];J[d+i>>2]=K[g|0];i=i|4;g=i+j|0;J[i+q>>2]=K[g+2|0];J[i+m>>2]=K[g+1|0];J[d+i>>2]=K[g|0];k=k+2|0;l=l+2|0;if((n|0)!=(l|0))continue;break}}if(!(p&1))break b;k=k<<2;l=k+j|0;J[k+q>>2]=K[l+2|0];J[k+m>>2]=K[l+1|0];J[d+k>>2]=K[l|0]}if(f)break a;c:{d:{e:{f:{g:{if(!(!(!b&J[e+24>>2]!=1)&b>>>0<=2)){o7(c,e+20|0);if(!J[e+20>>2])break g;f=c?J[c+12>>2]:0;l=a?J[a+40>>2]:0;k=a?J[a+12>>2]:-1;break d}f=c?J[c+12>>2]:0;l=a?J[a+40>>2]:0;k=a?J[a+12>>2]:-1;switch((b>>>0>=3?3:b)|0){case 0:break e;case 1:break f; -default:break d}}b=J[e+24>>2];f=c?J[c+12>>2]:0;l=a?J[a+40>>2]:0;k=a?J[a+12>>2]:-1;if((b|0)==1)break e}g=uh(J[e+32>>2],J[e+28>>2],8);if(!g)break a;if(!(!g|!a|(a|0)==(g|0))){J[g+20>>2]=J[a+20>>2];J[g+24>>2]=J[a+24>>2]}n=g?J[g+40>>2]:0;a=g?J[g+12>>2]:-1;d=bd(f,4);if(!d)break a;f=0;if(((c?J[c+12>>2]:0)|0)>0)while(1){b=f<<2;J[b+d>>2]=(J[b+J[e+8>>2]>>2]+(J[b+J[e+16>>2]>>2]+(J[b+J[e+12>>2]>>2]<<1)|0)|0)/4;f=f+1|0;if((f|0)<((c?J[c+12>>2]:0)|0))continue;break}if(J[e+28>>2]>0)while(1){j=n+(P(a,o)<<2)|0;i=(P(k, -o)<<2)+l|0;h=0;h:{i:{j:{k:switch(J[e+24>>2]-1|0){case 7:b=0;f=0;h=J[e+32>>2];if((h|0)>3)break j;break i;case 3:f=0;b=J[e+32>>2];if((b|0)>7)while(1){b=j+(f<<3)|0;c=J[i+(f<<2)>>2];J[b>>2]=J[d+(c>>>22&60)>>2]<<16|J[d+(c>>>26&60)>>2]<<24|J[d+(c>>>18&60)>>2]<<8|J[d+(c>>>14&60)>>2];J[b+4>>2]=J[d+((c&15)<<2)>>2]|(J[d+(c>>>6&60)>>2]<<16|J[d+(c>>>10&60)>>2]<<24|J[d+(c>>>2&60)>>2]<<8);f=f+1|0;b=J[e+32>>2];h=h+8|0;if((b|0)>(h|7))continue;break}if((b|0)<=(h|0))break h;while(1){b=J[d+((J[i+(h>>>1&2147483644)>> -2]>>>((h^-1)<<2)&15)<<2)>>2];J[e+40>>2]=b;H[h+j^3]=b;h=h+1|0;if((h|0)>2])continue;break}break h;case 1:f=0;b=J[e+32>>2];if((b|0)>15)while(1){b=j+(f<<4)|0;c=J[i+(f<<2)>>2];J[b>>2]=J[d+(c>>>26&12)>>2]<<16|J[d+(c>>>28&12)>>2]<<24|J[d+(c>>>24&12)>>2]<<8|J[d+(c>>>22&12)>>2];J[b+4>>2]=J[d+(c>>>14&12)>>2]|(J[d+(c>>>18&12)>>2]<<16|J[d+(c>>>20&12)>>2]<<24|J[d+(c>>>16&12)>>2]<<8);J[b+8>>2]=J[d+(c>>>6&12)>>2]|(J[d+(c>>>10&12)>>2]<<16|J[d+(c>>>12&12)>>2]<<24|J[d+(c>>>8&12)>>2]<<8);J[b+12>>2]=J[d+((c& -3)<<2)>>2]|(J[d+(c>>>2&12)>>2]<<16|J[d+(c>>>4&12)>>2]<<24|J[d+(c&12)>>2]<<8);f=f+1|0;b=J[e+32>>2];h=h+16|0;if((b|0)>(h|15))continue;break}if((b|0)<=(h|0))break h;while(1){b=J[d+((J[i+(h>>>2&1073741820)>>2]>>>((h^-1)<<1)&3)<<2)>>2];J[e+40>>2]=b;H[h+j^3]=b;h=h+1|0;if((h|0)>2])continue;break}break h;case 0:break k;default:break a}f=0;b=J[e+32>>2];if((b|0)>31)while(1){b=j+(h<<5)|0;c=J[i+(h<<2)>>2];J[b>>2]=J[d+(c>>>28&4)>>2]<<16|J[d+(c>>>29&4)>>2]<<24|J[d+(c>>>27&4)>>2]<<8|J[d+(c>>>26&4)>>2];J[b+ -4>>2]=J[d+(c>>>22&4)>>2]|(J[d+(c>>>24&4)>>2]<<16|J[d+(c>>>25&4)>>2]<<24|J[d+(c>>>23&4)>>2]<<8);J[b+8>>2]=J[d+(c>>>18&4)>>2]|(J[d+(c>>>20&4)>>2]<<16|J[d+(c>>>21&4)>>2]<<24|J[d+(c>>>19&4)>>2]<<8);J[b+12>>2]=J[d+(c>>>14&4)>>2]|(J[d+(c>>>16&4)>>2]<<16|J[d+(c>>>17&4)>>2]<<24|J[d+(c>>>15&4)>>2]<<8);J[b+16>>2]=J[d+(c>>>10&4)>>2]|(J[d+(c>>>12&4)>>2]<<16|J[d+(c>>>13&4)>>2]<<24|J[d+(c>>>11&4)>>2]<<8);J[b+20>>2]=J[d+(c>>>6&4)>>2]|(J[d+(c>>>8&4)>>2]<<16|J[d+(c>>>9&4)>>2]<<24|J[d+(c>>>7&4)>>2]<<8);J[b+24>>2]= -J[d+(c>>>2&4)>>2]|(J[d+(c>>>4&4)>>2]<<16|J[d+(c>>>5&4)>>2]<<24|J[d+(c>>>3&4)>>2]<<8);J[b+28>>2]=J[d+((c&1)<<2)>>2]|(J[d+(c&4)>>2]<<16|J[d+(c>>>1&4)>>2]<<24|J[d+(c<<1&4)>>2]<<8);h=h+1|0;b=J[e+32>>2];f=f+32|0;if((b|0)>(f|31))continue;break}if((b|0)<=(f|0))break h;while(1){b=J[d+((J[i+(f>>>3&536870908)>>2]>>>(f^-1)&1)<<2)>>2];J[e+40>>2]=b;H[f+j^3]=b;f=f+1|0;if((f|0)>2])continue;break}break h}while(1){h=f<<2;c=J[h+i>>2];J[h+j>>2]=J[d+((c&255)<<2)>>2]|(J[d+(c>>>14&1020)>>2]<<16|J[d+(c>>>22&1020)>> -2]<<24|J[d+(c>>>6&1020)>>2]<<8);f=f+1|0;h=J[e+32>>2];b=b+4|0;if((h|0)>(b|3))continue;break}}if((b|0)>=(h|0))break h;while(1){f=J[d+(K[b+i^3]<<2)>>2];J[e+40>>2]=f;H[b+j^3]=f;b=b+1|0;if((b|0)>2])continue;break}}o=o+1|0;if((o|0)>2])continue;break}qc(d);break c}g=wf(0,a);if(!g)break a;Up(c,0,e+44|0,e+40|0,e+36|0);if(!J[e+44>>2])LM(g,g);b=bc-16|0;bc=b;l:{if(!g)break l;a=J[g+36>>2];J[b+12>>2]=a;if(!a)break l;xo(b+12|0);J[g+36>>2]=0}bc=b+16|0;break c}g=uh(J[e+32>>2],J[e+28>>2],32);if(!g)break a; -if(!(!g|!a|(a|0)==(g|0))){J[g+20>>2]=J[a+20>>2];J[g+24>>2]=J[a+24>>2]}c=g?J[g+40>>2]:0;n=g?J[g+12>>2]:-1;m=bd(f,4);if(!m)break a;b=0;if((f|0)>0)while(1){a=b<<2;d=J[a+J[e+16>>2]>>2];j=J[a+J[e+12>>2]>>2];i=J[a+J[e+8>>2]>>2];a=a+m|0;if(a)J[a>>2]=j<<16|d<<24|i<<8;b=b+1|0;if((f|0)!=(b|0))continue;break}a=J[e+28>>2];m:{if((a|0)<=0)break m;b=J[e+32>>2];if((b|0)<=0)break m;while(1){if((b|0)>0){i=c+(P(n,o)<<2)|0;j=(P(k,o)<<2)+l|0;a=0;while(1){n:{o:switch(J[e+24>>2]-1|0){case 7:d=K[a+j^3];break n;case 3:d= -J[j+(a>>>1&2147483644)>>2]>>>((a^-1)<<2)&15;break n;case 1:d=J[j+(a>>>2&1073741820)>>2]>>>((a^-1)<<1)&3;break n;case 0:break o;default:break a}d=J[j+(a>>>3&536870908)>>2]>>>(a^-1)&1}if((d|0)<(f|0)){J[i+(a<<2)>>2]=J[m+(d<<2)>>2];b=J[e+32>>2]}a=a+1|0;if((b|0)>(a|0))continue;break}a=J[e+28>>2]}o=o+1|0;if((o|0)<(a|0))continue;break}}qc(m)}qc(J[e+16>>2]);qc(J[e+12>>2]);qc(J[e+8>>2]);h=g}bc=e+48|0;return h}function hZ(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,r=0,s=0,t=0,u=0,v= -0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,N=0,Q=0,R=0;e=bc-800|0;bc=e;J[e+16>>2]=13;J[e>>2]=13;h=820396;a:{b:{c:{d:{e:{f:{g:{j=e+16|0;if(J[Bc(b,820298,j,0)>>2]!=1)break g;h=820630;m=J[e+24>>2];if(m-33>>>0<4294967264)break g;uc(j);h=821092;if(J[Bc(b,820852,j,0)>>2]!=1)break g;h=821407;p=J[e+24>>2];if(p-17>>>0<4294967280)break g;uc(j);h:{if((a|0)==4){h=821880;if(J[Bc(b,821711,j,0)>>2]!=1)break g;h=822234;q=J[e+24>>2];if(q-9>>>0<4294967289)break g;uc(j);break h}h=822796;j=e+16|0;if(J[Bc(b, -822532,j,0)>>2]!=1)break g;w=J[e+24>>2];uc(j);h=823058;if((w|0)<2)break g}h=823488;if(J[Bc(b,823405,e+16|0,0)>>2]!=6)break g;j=J[e+24>>2];if(J[j+12>>2]<6)break g;d=Mc(j,0,e,0);L=O[d+8>>3];A=J[d+8>>2];C=J[d>>2];uc(e);d=Mc(J[e+24>>2],1,e,0);N=O[d+8>>3];i=J[d+8>>2];E=J[d>>2];uc(e);Q=Pu(m);d=Mc(J[e+24>>2],2,e,0);F=J[d>>2];R=O[d+8>>3];G=J[d+8>>2];uc(e);d=Mc(J[e+24>>2],3,e,0);o=J[d>>2];D=O[d+8>>3];k=J[d+8>>2];uc(e);j=0;d=J[e+24>>2];i:{if(J[d+12>>2]<6)break i;H=+(-1<>2]==1?+J[d+8>>2]:O[d+8>>3];O[l+(e+416|0)>>3]=t;uc(e);d=Mc(J[e+24>>2],f,e,0);j=J[d>>2];x=O[d+8>>3];d=J[d+8>>2];uc(e);O[l+(e+160|0)>>3]=(((j|0)==1?+(d|0):x)-t)/H;j=h+1|0;if(h>>>0>30)break i;h=j;n=j<<1;f=n+5|0;d=J[e+24>>2];if((f|0)>2])continue;break}}d=e+16|0;uc(d);if(J[Bc(b,818578,d,0)>>2]==5)break d;if(J[e+16>>2]!=6)break e;u=J[J[e+24>>2]+12>>2];if((u|0)>32)break f;h=0;if((u|0)<=0)break d;while(1){Mc(J[e+24>>2],h,e,0);d=Sh(e,1,1,0);J[(e+672|0)+(h<<2)>>2]=d;if(!d){uc(e+16| -0);uc(e);d=0;break c}uc(e);h=h+1|0;if((u|0)!=(h|0))continue;break}break d}xc(1,-1,h,0);uc(e+16|0);break c}d=0;xc(1,-1,818908,0);break c}d=0;u=1;l=e+16|0;h=Sh(l,1,-1,0);J[e+672>>2]=h;if(h)break d;uc(l);break c}uc(e+16|0);g=rc(12);J[g>>2]=c;d=J[J[c>>2]+20>>2];J[695492]=0;_(d|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;t=(o|0)==1?+(k|0):D;D=(F|0)==1?+(G|0):R;x=Q+-1;H=(t-D)/x;t=(C|0)==1?+(A|0):L;x=(((E|0)==1?+(i|0):N)-t)/x;J[g+4>>2]=0;J[g+8>>2]=0;E=j&-2;F=j&1;G=-1<=(q|0)){f=f-q|0;r=J[g+4>>2]>>f&o;J[g+8>>2]=f;break k}l:{if((f|0)<=0){r=0;d=q;break l}J[g+8>>2]=0;d=q-f|0;r=J[g+4>>2]&(-1<>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[g+4>>2]=c;if((c|0)==-1)break j;if(d>>>0<=7){f=8-d|0;r=r<>f;J[g+8>>2]=f;break k}r=c|r<<8;c=(d|0)>8;d=d-8|0;if(c)continue;break}f=J[g+8>>2]}m:{if((f|0)>=(m|0)){f=f-m|0;k=A&J[g+4>>2]>>f;J[g+8>>2]=f;break m}n:{if((f|0)<=0){k= -0;d=m;break n}J[g+8>>2]=0;d=m-f|0;k=J[g+4>>2]&(-1<>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[g+4>>2]=c;if((c|0)==-1)break j;if(d>>>0<=7){f=8-d|0;k=k<>f;J[g+8>>2]=f;break m}k=c|k<<8;c=(d|0)>8;d=d-8|0;if(c)continue;break}f=J[g+8>>2]}o:{p:{if((f|0)>=(m|0)){f=f-m|0;i=A&J[g+4>>2]>>f;break p}q:{if((f|0)<=0){i=0;d=m;break q}J[g+8>>2]=0;i=J[g+4>>2]&(-1<>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[g+4>>2]=c;if((c|0)==-1)break j; -if(d>>>0<=7){f=8-d|0;i=i<>f;break p}i=c|i<<8;c=(d|0)>8;d=d-8|0;if(c)continue;break}break o}J[g+8>>2]=f}n=0;if(j)while(1){r:{s:{c=J[g+8>>2];if((c|0)>=(p|0)){c=c-p|0;f=J[g+4>>2]>>c&G;break s}t:{if((c|0)<=0){f=0;d=p;break t}J[g+8>>2]=0;f=J[g+4>>2]&(-1<>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[g+4>>2]=c;if((c|0)==-1)break j;if(d>>>0<=7){I=c;c=8-d|0;f=f<>c;break s}f=c|f<<8;c=(d|0)>8;d=d-8|0;if(c)continue;break}break r}J[g+8>>2]=c}J[(e+32|0)+(n<<2)>>2]= -f;n=n+1|0;if((n|0)!=(j|0))continue;break}if((l|0)==(y|0)){y=l?l<<1:16;K=Nd(K,y,272)}n=P(l,272)+K|0;O[n+8>>3]=H*+(i>>>0)+D;O[n>>3]=x*+(k>>>0)+t;u:{if(!j)break u;d=0;f=0;if((j|0)!=1)while(1){c=n+16|0;i=d<<3;k=e+32|0;O[c+i>>3]=O[i+(e+160|0)>>3]*+M[k+(d<<2)>>2]+O[i+(e+416|0)>>3];I=c;c=d|1;i=c<<3;O[I+i>>3]=O[i+(e+160|0)>>3]*+M[k+(c<<2)>>2]+O[i+(e+416|0)>>3];d=d+2|0;f=f+2|0;if((E|0)!=(f|0))continue;break}if(!F)break u;c=d<<3;O[(c+n|0)+16>>3]=O[c+(e+160|0)>>3]*+M[(e+32|0)+(d<<2)>>2]+O[c+(e+416|0)>>3]}J[g+ -4>>2]=0;J[g+8>>2]=0;d=l+1|0;f=0;if(C)continue;break}if(h>>>0<=1){c=h+1|0;continue}if((h|0)!=2){c=1;if(!r)continue}if((s|0)==(z|0)){z=s?s<<1:16;v=Nd(v,P(z,3),4)}i=P(s,12)+v|0;v:{if((h|0)==2){J[i>>2]=l-2;k=l-1|0;c=3;break v}k=s-1|0;c=i-4|0;w:{if((r|0)==1){J[i>>2]=J[(P(k,12)+v|0)+4>>2];break w}J[i>>2]=J[P(k,12)+v>>2]}k=J[c>>2];c=h}J[i+4>>2]=k;J[i+8>>2]=l;s=s+1|0;f=J[g+8>>2];continue}break}J[g+8>>2]=0;d=J[g>>2];c=J[J[d>>2]+24>>2];J[695492]=0;_(c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;qc(g); -x:{if((a|0)!=5)break x;d=(l>>>0)/(w>>>0)|0;k=d-1|0;z=w-1|0;c=P(k,z);s=c<<1;v=vd(P(c,6),4);if(d>>>0<2|w>>>0<2)break x;c=0;i=0;while(1){p=P(i,w);i=i+1|0;q=P(w,i);d=0;while(1){o=P(c,12)+v|0;y=d+q|0;J[o+8>>2]=y;m=d+p|0;h=m+1|0;J[o+4>>2]=h;J[o>>2]=m;J[o+12>>2]=h;J[o+16>>2]=y;J[o+20>>2]=y+1;c=c+2|0;d=d+1|0;if((z|0)!=(d|0))continue;break}if((i|0)<(k|0))continue;break}}c=rc(336);J[c+8>>2]=0;J[c+4>>2]=a;J[c+328>>2]=u;J[c+324>>2]=j;J[c+192>>2]=s;J[c+188>>2]=v;J[c+184>>2]=l;J[c+180>>2]=K;J[c>>2]=2206428;if((u| -0)>0)tc(c+196|0,e+672|0,u<<2);y:{if(Pv(c,b)){d=0;if(J[c+328>>2]>0)break y;d=c;break c}gc[J[J[c>>2]+4>>2]](c);d=0;break c}z:{while(1){a=J[c+8>>2];if(J[J[(c+(d<<2)|0)+196>>2]+8>>2]!=(gc[J[J[a>>2]+28>>2]](a)|0))break z;d=d+1|0;if((d|0)>2])continue;break}d=c;break c}d=0;xc(1,-1,819212,0);gc[J[J[c>>2]+4>>2]](c)}bc=e+800|0;return d}ea(0)|0;yc();B()}a=Z()|0;qc(g);ba(a|0);B()}function oD(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;p=bc-992|0;bc=p;a:{b:{q=J[a+4>> -2];if(q){i=J[a+20>>2];k=J[a+16>>2];e=qf(p+16|0,0);J[695492]=0;da(153,e|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;b=L[a+26>>1];c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;c=J[a+68>>2];h=J[695492];J[695492]=0;if((h|0)==1)break b;J[695492]=0;ma(78,e|0,i|0,k|0,b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;b=J[a+4>>2];c=J[a+44>>2];h=J[695492];J[695492]=0;if((h|0)==1)break b;J[695492]=0;ca(19,e|0,(b?c?b+40|0:0:0)|0,256);b=J[695492];J[695492]=0;if((b| -0)==1)break b;J[695492]=0;b=J[a+964>>2];c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b){J[695492]=0;$(123,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;b=J[a+960>>2];c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b){J[695492]=0;$(163,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}c:{if(L[a+26>>1]!=1){if((i|0)<=0|(k|0)<=0)break c;h=0;while(1){l=h- -64|0;g=(i|0)<(l|0)?i:l;b=0;while(1){m=b- -64|0;n=(k|0)<(m|0)?k:m;d=h;d:{if(L[a+26>>1]==24)while(1){J[a+328>>2]=(P(d,100)|0)/(i|0); -J[695492]=0;if(J[e+44>>2])c=0;else c=(J[e+56>>2]+P(J[e+52>>2],b)|0)+P(d,3)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[695492]=0;if(J[a+44>>2])f=0;else f=(J[a+56>>2]+P(J[a+52>>2],(d^-1)+i|0)|0)+P(b,3)|0;o=J[695492];J[695492]=0;j=b;if((o|0)==1)break b;while(1){H[c|0]=K[f|0];H[c+1|0]=K[f+1|0];H[c+2|0]=K[f+2|0];f=f+3|0;c=J[e+52>>2]+c|0;j=j+1|0;if((n|0)>(j|0))continue;break}d=d+1|0;if((g|0)>(d|0))continue;break d}while(1){J[a+328>>2]=(P(d,100)|0)/(i|0);f=(d^-1)+i|0;c=b;while(1){J[695492]=0;j=Fo(a, -c,f);o=J[695492];J[695492]=0;if((o|0)==1)break b;J[695492]=0;sm(e,d,c,j);j=J[695492];J[695492]=0;if((j|0)==1)break b;c=c+1|0;if((n|0)>(c|0))continue;break}d=d+1|0;if((g|0)>(d|0))continue;break}}J[695492]=0;c=J[a+964>>2];d=J[695492];J[695492]=0;if((d|0)==1)break b;e:{if(!c)break e;c=b- -64|0;f=(c|0)>(k|0)?k:c;d=h;while(1){j=(d^-1)+i|0;c=b;f:{while(1){J[695492]=0;n=K[(J[a+964>>2]+P(j,J[a+16>>2])|0)+c|0];o=J[695492];J[695492]=0;if((o|0)==1)break f;J[695492]=0;hh(e,d,c,n);n=J[695492];J[695492]=0;if((n| -0)==1)break f;c=c+1|0;if((f|0)>(c|0))continue;break}d=d+1|0;if((g|0)<=(d|0))break e;continue}break}break b}J[695492]=0;c=J[a+960>>2];d=J[695492];J[695492]=0;if((d|0)==1)break b;g:{if(!c)break g;J[e+372>>2]=i-J[a+376>>2];J[e+380>>2]=i-J[a+384>>2];J[e+384>>2]=J[a+372>>2];J[e+376>>2]=J[a+380>>2];c=b- -64|0;f=(c|0)>(k|0)?k:c;d=h;while(1){j=(d^-1)+i|0;c=b;h:{while(1){J[695492]=0;n=K[(J[a+960>>2]+P(j,J[a+16>>2])|0)+c|0];o=J[695492];J[695492]=0;if((o|0)==1)break h;J[695492]=0;Hx(e,d,c,n);n=J[695492];J[695492]= -0;if((n|0)==1)break h;c=c+1|0;if((f|0)>(c|0))continue;break}d=d+1|0;if((g|0)<=(d|0))break g;continue}break}break b}b=m;if((k|0)>(b|0))continue;break}h=l;if((i|0)>(h|0))continue;break}break c}J[695492]=0;n=df(a,0);b=J[695492];J[695492]=0;i:{if((b|0)!=1){J[695492]=0;h=df(e,0);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[e+32>>2];c=J[e+16>>2];d=J[e+52>>2];J[695492]=0;Xx(e,0);f=J[695492];J[695492]=0;if((f|0)==1)break b;if(J[a+20>>2]>0){o=(d<<3)-c|0;d=(b+h|0)-1|0;while(1){J[695492]=0;b=j+o|0;c=(b|0)/ -8|0;J[p+8>>2]=c;J[p+12>>2]=b-(c<<3);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[a+52>>2];if((b|0)>0){r=n+P(b,j)|0;c=0;s=0-J[p+8>>2]|0;l=1<>2];while(1){f=J[e+52>>2];b=((f+(h+(P(c,f)<<3)|0)|0)+s|0)-1|0;j:{if(b>>>0>>0|b>>>0>d>>>0)break j;m=c+r|0;if(H[m|0]<0){H[b|0]=l|K[b|0];f=J[e+52>>2]}g=b+f|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&64){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+(f<<1)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&32){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,3)|0;if(g>>>0>> -0|d>>>0>>0)break j;if(K[m|0]&16){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+(f<<2)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&8){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,5)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&4){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,6)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&2){H[g|0]=l|K[g|0];f=J[e+52>>2]}b=P(f,7)+b|0;if(!(H[m|0]&1)|(b>>>0>>0|b>>>0>d>>>0))break j;H[b|0]=l|K[b|0]}c=c+1|0;if((c|0)>2])continue;break}}j=j+1|0;if((j|0)>2])continue;break}}d= -0;J[695492]=0;b=J[a+964>>2];c=J[695492];J[695492]=0;if((c|0)==1)break b;if(!(!b|(k|0)<=0|(i|0)<=0))while(1){b=(d^-1)+i|0;c=0;while(1){J[695492]=0;h=K[(J[a+964>>2]+P(b,J[a+16>>2])|0)+c|0];f=J[695492];J[695492]=0;if((f|0)==1)break b;J[695492]=0;hh(e,d,c,h);h=J[695492];J[695492]=0;if((h|0)==1)break b;c=c+1|0;if((k|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}J[695492]=0;b=J[a+960>>2];c=J[695492];J[695492]=0;if((c|0)==1)break b;if(!b)break c;J[e+372>>2]=i-J[a+376>>2];J[e+380>>2]=i- -J[a+384>>2];J[e+384>>2]=J[a+372>>2];J[e+376>>2]=J[a+380>>2];if((i|0)<=0|(k|0)<=0)break c;d=0;while(1){b=(d^-1)+i|0;c=0;while(1){J[695492]=0;h=K[(J[a+960>>2]+P(b,J[a+16>>2])|0)+c|0];f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;Hx(e,d,c,h);h=J[695492];J[695492]=0;if((h|0)==1)break i;c=c+1|0;if((k|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}break c}break b}break b}J[695492]=0;ga(108,a|0,e|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[e>>2]=1032;J[695492]=0;$(13, -e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;J[695492]=0;$(14,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=p+992|0;return(q|0)!=0}a=Z()|0;J[e>>2]=1032;J[695492]=0;$(13,e|0)|0;b=J[695492];J[695492]=0;k:{if((b|0)==1)break k;J[695492]=0;$(14,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;ba(a|0);B()}}ea(0)|0;yc();B()}function m8(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=J[c+88>>2];e=J[b+88>>2];a:{b:{c:{d:{if(K[a+460|0]|!(K[a+496|0]|K[a+476|0]))break d;e:{if(!K[f+55|0])break e; -f:{g:{if(!K[e+55|0]){g=J[f+64>>2];break g}g=J[f+64>>2];if(g>>>0<=M[e+64>>2])break f}J[e+64>>2]=g;g=J[f+64>>2]}H[e+55|0]=1;if(!g)break e;if((g|0)!=1){m=g&-2;while(1){j=e+68|0;h=P(d,3);i=j+h|0;k=f+68|0;h=h+k|0;H[i|0]=K[h|0];H[i+1|0]=K[h+1|0];H[i+2|0]=K[h+2|0];h=P(d|1,3);i=h+j|0;h=h+k|0;H[i|0]=K[h|0];H[i+1|0]=K[h+1|0];H[i+2|0]=K[h+2|0];d=d+2|0;l=l+2|0;if((m|0)!=(l|0))continue;break}}if(!(g&1))break e;g=P(d,3);d=g+e|0;g=f+g|0;H[d+68|0]=K[g+68|0];H[d+69|0]=K[g+69|0];H[d+70|0]=K[g+70|0]}if(K[f+56|0]){h:{i:switch(K[a+ -325|0]){case 0:d=L[f+836>>1];I[e+838>>1]=0;I[e+840>>1]=0;I[e+842>>1]=0;I[e+844>>1]=0;I[e+836>>1]=d;I[e+846>>1]=0;break h;case 2:I[e+836>>1]=0;I[e+838>>1]=L[f+838>>1];I[e+840>>1]=L[f+840>>1];d=L[f+842>>1];J[e+844>>2]=0;I[e+842>>1]=d;break h;case 3:break i;default:break h}J[e+836>>2]=0;J[e+840>>2]=0;j:{k:{if(!K[e+56|0]){d=J[f+844>>2];break k}d=J[f+844>>2];if(d>>>0<=M[e+844>>2])break j}J[e+844>>2]=d;d=J[f+844>>2]}tc(e+848|0,f+848|0,d)}H[e+56|0]=1}if(K[f+61|0]){H[e+61|0]=1;H[e+1152|0]=K[f+1152|0];I[e+ -1154>>1]=L[f+1154>>1];I[e+1156>>1]=L[f+1156>>1];I[e+1158>>1]=L[f+1158>>1];I[e+1160>>1]=L[f+1160>>1]}if(K[f+57|0]){H[e+57|0]=1;J[e+1104>>2]=J[f+1104>>2]}if(K[f+58|0]){H[e+58|0]=1;J[e+1108>>2]=J[f+1108>>2];J[e+1112>>2]=J[f+1112>>2];J[e+1116>>2]=J[f+1116>>2];J[e+1120>>2]=J[f+1120>>2];J[e+1124>>2]=J[f+1124>>2];J[e+1128>>2]=J[f+1128>>2];J[e+1132>>2]=J[f+1132>>2];J[e+1136>>2]=J[f+1136>>2]}if(K[f+59|0]){H[e+59|0]=1;H[e+1140|0]=K[f+1140|0]}if(K[f+60|0]){H[e+60|0]=1;d=J[e+1148>>2];if(d)gc[J[a+156>>2]](d,J[e+ -1144>>2]);d=gc[J[a+152>>2]](J[f+1144>>2])|0;J[e+1148>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[f+1148>>2],J[f+1144>>2]);J[e+1144>>2]=J[f+1144>>2]}if(K[a+2272|0])break d;d=K[a+2253|0];if((d|0)==7)break d;J[a+996>>2]=0;l:{m:{n:{o:switch(K[f+44|0]-1|0){case 1:g=1183;p:switch(K[e+44|0]-1|0){case 3:g=1184;break m;case 7:g=1185;break m;case 0:break m;case 15:break p;default:break l}g=1186;break m;case 3:g=1187;q:switch(K[e+44|0]-1|0){case 1:g=1188;break m;case 7:g=1189;break m;case 0:break m;case 15:break q; -default:break l}g=1190;break m;case 7:r:switch(K[f+45|0]){case 0:case 3:case 8:g=1191;s:switch(K[e+44|0]-1|0){case 1:g=1192;break m;case 3:g=1193;break m;case 0:break m;case 15:break s;default:break l}g=1194;break m;case 2:case 10:g=1195;if(K[e+44|0]==16)break m;break l;case 4:case 12:g=1196;if(K[e+44|0]==16)break m;break l;case 6:case 14:break r;default:break l}g=1197;if(K[e+44|0]==16)break m;break l;case 15:t:switch(K[f+45|0]){case 2:case 10:g=1198;if(K[e+44|0]==8)break m;break l;case 4:case 12:g= -1199;if(K[e+44|0]==8)break m;break l;case 0:case 3:case 8:break n;case 6:case 14:break t;default:break l}g=1200;if(K[e+44|0]==8)break m;break l;case 0:break o;default:break l}g=K[e+44|0];g=g<<31|g-2>>>1;if(g>>>0>=8|!(139>>>g&1))break l;g=J[(g<<2)+218468>>2];break m}g=K[e+44|0]-1|0;i=g&255;if(i>>>0>=8|!(139>>>i&1))break l;g=J[(g<<24>>24<<2)+218500>>2]}J[a+996>>2]=g}J[a+1E3>>2]=0;u:{v:{w:switch(K[e+45|0]){case 0:case 8:if(!(1<>>0>4)break c;d=K[f+45|0];if(d>>>0>8|!(1<>>0>4)break c;y:switch(K[f+45|0]-2|0){case 0:case 8:break y;default:break c}d=1206;z:switch(K[e+44|0]-8|0){case 0:break u;case 8:break z;default:break c}d=1207;break u;case 3:if(!(1<>>0>4)break c;switch(K[f+45|0]){case 0:case 3:break v;default:break c}case 4:case 12:if(d>>>0>6)break c;A:{B:{d=1<>>0>8|!(1<>>0>6)break c; -G:{H:{d=1<>>0>=8|!(139>>>g&1))break c;d=J[(d<<24>>24<<2)+218532>>2]}H[a+568|0]=255;J[a+1E3>>2]=d;J[a+576>>2]=1;J[a+584>>2]=1;J[a+572>>2]=J[a+2268>>2];J[a+580>>2]=J[a+2264>>2];J[a+588>>2]=J[f+36>>2];J[a+604>>2]=J[e+1168>>2];J[a+544>>2]=c;J[a+536>>2]=b;e=J[a+644>>2];b=gc[J[a+152>>2]](J[f+1168>>2]<<1)|0;J[a+644>>2]=b;if(!b)break a;c=0;N:{while(1){g=J[a+644>>2];b=c;i=J[f+40>>2];if(b>>>0>=i>>>0){d=0;break N}c=J[f+1168>>2];tc(g,J[f+1176>>2]+P(c,b)|0,c);c=J[a+996>>2];O:{if(c){d=gc[c|0](a)|0; -if(d)break O}d=gc[J[a+1E3>>2]](a)|0;if(d)break O;c=b+1|0;d=Jr(a);if(!d)continue}break}g=J[a+644>>2]}if(g)gc[J[a+156>>2]](g,J[f+1168>>2]<<1);J[a+644>>2]=e;if(b>>>0>>0)break b}return 0}d=1063;Dc(a,1063,0,0)}return d}Dc(a,1,0,0);return 1}function Mya(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=bc+-64|0;bc=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(!K[a+144|0]){a=Kc(e+40|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break o;b=Z()|0;Fc(a); -break b}g=di();b=J[a+156>>2];J[695492]=0;da(5151,e+32|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;d=$(4,28)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[d+8>>2]=1;J[d+4>>2]=0;J[d>>2]=2404304;b=0;c=J[e+32>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break n;b=J[e+32>>2]}J[d+24>>2]=0;J[d+12>>2]=b;J[695492]=0;J[e+24>>2]=0;b=e+24|0;aa(4985,b|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;J[d+16>>2]=a;J[d+20>>2]=5308;J[695492]=0;da(5309,a| -0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break m;while(1){J[695492]=0;b=aa(5310,a|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;if(b)continue;break}b=J[a+120>>2];if(b)while(1){c=J[b+8>>2];J[695492]=0;c=J[c+148>>2];d=J[695492];J[695492]=0;if((d|0)==1)break h;p:{q:{r:{s:{if(c&4){J[695492]=0;d=ja(5018,e+40|0,2378893,2374155,500,2402341,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break s;J[695492]=0;_(5019,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break o;b=ea(2411712)|0;c=cc;Fc(d);break g}c=J[b+8>> -2];J[695492]=0;c=J[c+148>>2];d=J[695492];J[695492]=0;if((d|0)==1)break h;if(c&8){J[695492]=0;d=ja(5018,e+40|0,J[682139],2374155,502,2402341,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;J[695492]=0;_(5019,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break o;b=ea(2411712)|0;c=cc;Fc(d);break g}c=J[b+8>>2];J[695492]=0;c=J[c+148>>2];d=J[695492];J[695492]=0;if((d|0)==1)break h;if(c&2)break p;J[695492]=0;d=ja(5018,e+40|0,2379457,2374155,509,2402341,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break q;J[695492]= -0;_(5019,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break o;b=ea(2411712)|0;c=cc;Fc(d);break g}b=ea(2411712)|0;c=cc;break g}b=ea(2411712)|0;c=cc;break g}b=ea(2411712)|0;c=cc;break g}b=J[b>>2];if(b)continue;break}b=J[e+24>>2];J[e+24>>2]=0;t:{u:{if(!b)break u;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break t;if(c)break u;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break t}b=J[e+32>>2];J[e+32>>2]=0;if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c; -d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break a}break a}B()}b=ea(2411712)|0;c=cc;qc(ed(d));break f}b=ea(2411712)|0;c=cc;break g}b=ea(2411712)|0;c=cc;break g}b=ea(2411712)|0;c=cc;break f}b=ea(2411712)|0;c=cc;break f}b=ea(2411712)|0;c=cc;break e}b=ea(2411712)|0;c=cc}vc(e+24|0)}vc(e+32|0)}if((sa(2411712)|0)!=(c|0))break b;i=na(b|0)|0;J[695492]=0;c=Mm(i,J[682139]);b=J[695492];J[695492]=0;v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((b| -0)==1)break I;b=a+148|0;J:{if(!c){J[695492]=0;c=J[b>>2];d=J[695492];J[695492]=0;if((d|0)==1)break I;J[695492]=0;c=c&-10|8;if((c|0)!=J[b>>2])J[b>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break I;J[695492]=0;c=aa(4989,e+24|0,2379873)|0;b=J[695492];J[695492]=0;K:{L:{M:{N:{O:{P:{Q:{R:{if((b|0)!=1){J[695492]=0;d=aa(4989,e+16|0,2380512)|0;b=J[695492];J[695492]=0;if((b|0)==1)break R;J[695492]=0;b=e+32|0;ca(5122,b|0,c|0,d|0);f=J[695492];J[695492]=0;if((f|0)==1)break Q;f=J[a+80>>2];f=J[(f?f+12|0:2728584)>> -2];J[695492]=0;f=aa(4989,e+8|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break P;J[695492]=0;i=e+40|0;ca(5122,i|0,b|0,f|0);h=J[695492];J[695492]=0;if((h|0)==1)break O;h=J[J[g>>2]+24>>2];J[695492]=0;ga(h|0,g|0,a|0,i|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break N;sc(i);sc(f);sc(b);sc(d);sc(c);b=8;break J}b=ea(0)|0;break w}b=ea(0)|0;sc(c);break w}b=ea(0)|0;break K}b=ea(0)|0;break L}b=ea(0)|0;break M}b=ea(0)|0;sc(e+40|0)}sc(f)}sc(e+32|0)}sc(d);sc(c);break w}J[695492]=0;c=J[b>>2];d=J[695492];J[695492]= -0;if((d|0)==1)break I;J[695492]=0;c=c&-6|4;if((c|0)!=J[b>>2])J[b>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break I;J[695492]=0;c=aa(4989,e+24|0,2380677)|0;b=J[695492];J[695492]=0;if((b|0)==1)break H;J[695492]=0;d=aa(4989,e+16|0,2380512)|0;b=J[695492];J[695492]=0;if((b|0)==1)break G;J[695492]=0;h=e+32|0;ca(5122,h|0,c|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break F;b=J[a+80>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;f=aa(4989,e+8|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E;J[695492]=0;b= -e+40|0;ca(5122,b|0,h|0,f|0);j=J[695492];J[695492]=0;if((j|0)==1)break D;j=J[J[g>>2]+24>>2];J[695492]=0;ga(j|0,g|0,a|0,b|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break C;sc(b);sc(f);sc(h);sc(d);sc(c);J[695492]=0;c=J[i+4>>2];d=J[695492];J[695492]=0;if((d|0)==1)break y;J[695492]=0;c=aa(4989,b|0,(c?c:2377794)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break y;b=J[J[g>>2]+20>>2];J[695492]=0;ga(b|0,g|0,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break x;sc(c);b=4}c=J[J[g>>2]+40>>2];J[695492]=0;ia(c|0, -g|0,a|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break v}b=ea(0)|0;break w}b=ea(0)|0;break w}b=ea(0)|0;sc(c);break w}b=ea(0)|0;break z}b=ea(0)|0;break A}b=ea(0)|0;break B}b=ea(0)|0;sc(e+40|0)}sc(f)}sc(e+32|0)}sc(d);sc(c);break w}b=ea(0)|0;break w}b=ea(0)|0;sc(c)}na(b|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break c}ta()}J[695492]=0;b=Zg(a+148|0,1,0,66,1);c=J[695492];J[695492]=0;S:{if((c|0)!=1){if(!b)break S;b=J[J[g>>2]+40>>2];J[695492]=0;ia(b|0,g|0,a|0,66,1);a=J[695492];J[695492]= -0;if((a|0)!=1)break S}na(ea(0)|0)|0;ta()}bc=e- -64|0;return}b=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}ba(b|0);B()}ea(0)|0;yc();B()}function Tyb(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,u=0,v=0;k=bc-32|0;bc=k;if(c)hd(198207,0);a:{b:{c:{d:{e:{f:{g:{c=J[a+28>>2];switch((c>>8)-3|0){case 0:break f;case 1:break g;default:break e}}if((c|0)!=1025)hd(199351,0);J[k+12>>2]=3;d=fk(a,0);J[k+16>>2]=d;if((d|0)<0)break d; -c=fk(a,1);J[k+20>>2]=c;if((c|0)<0)break d;c=fk(a,2);J[k+24>>2]=c;if((c|0)<0)break d;o=3;break b}if((c|0)!=769)hd(199351,0);e=1;J[k+12>>2]=1;d=fk(a,0);J[k+16>>2]=d;c=-1;if((d|0)<0)break c;j=256;o=1;break b}hd(200497,0);c=-1;break a}hd(201048,0);c=-1;break a}hd(201048,0);break a}h:{g=J[a+24>>2];i=J[g+(J[k+16>>2]<<2)>>2];c=J[g+(d<<2)>>2];n=J[c+16>>2];i:{if(J[i+16>>2]!=(n|0))break i;d=J[c+20>>2];if((d|0)!=J[i+20>>2])break i;m=J[c+24>>2];if(J[i+28>>2]|(m|0)!=J[i+24>>2]|(J[i>>2]|J[i+4>>2]))break i;if(e)break h; -c=J[g+(J[k+20>>2]<<2)>>2];if((n|0)!=J[c+16>>2]|(d|0)!=J[c+20>>2]|(J[c+28>>2]|(m|0)!=J[c+24>>2]))break i;if(J[c>>2]|J[c+4>>2])break i;c=J[g+(J[k+24>>2]<<2)>>2];if((n|0)!=J[c+16>>2]|(d|0)!=J[c+20>>2]|(J[c+28>>2]|(m|0)!=J[c+24>>2]))break i;if(J[c>>2])break i;if(!J[c+4>>2])break h}hd(201995,0);c=-1;break a}c=-1;if(!(1<>>0>8)break a;f=J9();if(!f)break a;J[f+44>>2]=0;J[f+40>>2]=j;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+16>>2]=1;J[f+8>>2]=d;J[f+4>>2]=n;J[f>>2]=40;J[f+20>>2]=P(m,o);g=P(n,o); -e=(g|0)%4|0;e=P(d,(e?4-e|0:0)+g|0);J[f+28>>2]=e;if(VN(b,19778))break a;if(Dl(b,e+54|0))break a;if(Dl(b,0))break a;if(Dl(b,j<<2|54))break a;j=0;J[f>>2]=40;e=-1;j:{if(Dl(b,40))break j;if(Dl(b,J[f+4>>2]))break j;if(Dl(b,J[f+8>>2]))break j;if(VN(b,J[f+16>>2]))break j;if(VN(b,J[f+20>>2]))break j;if(Dl(b,J[f+24>>2]))break j;if(Dl(b,J[f+28>>2]))break j;if(Dl(b,J[f+32>>2]))break j;if(Dl(b,J[f+36>>2]))break j;if(Dl(b,J[f+40>>2]))break j;if(Dl(b,J[f+44>>2]))break j;e=0;if(J[f+40>>2]<=0)break j;k:{while(1){e= -J[b+8>>2];if(e&7)break k;l:{g=J[b+64>>2];if((g|0)>=0&(g|0)<=J[b+60>>2])break l;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;m:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=j;break m}e=-1;if((Uc(b,j&255)|0)==-1)break j}e=J[b+8>>2];if(e&7)break k;g=J[b+64>>2];if((g|0)>=0&(g|0)<=J[b+60>>2])break l;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;n:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=j;break n}e=-1;if((Uc(b,j&255)|0)==-1)break j}e= -J[b+8>>2];if(e&7)break k;g=J[b+64>>2];if((g|0)>=0&(g|0)<=J[b+60>>2])break l;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;o:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=j;break o}e=-1;if((Uc(b,j&255)|0)==-1)break j}e=J[b+8>>2];if(e&7)break k;g=J[b+64>>2];if((g|0)>=0&(g|0)<=J[b+60>>2])break l;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;p:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=0;break p}e=-1;if((Uc(b,0)|0)==-1)break j}e=0;j=j+1| -0;if((j|0)>2])continue;break j}break}J[b+8>>2]=e|4}e=-1}if(e)break a;o=a;r=k+16|0;a=0;l=bc-16|0;bc=l;q:{r:{g=J[f+20>>2];e=(g|0)==24;if(!(e&J[f+40>>2]>0)){p=e?3:1;wc(l+4|0,0,p<<2);break r}hd(204038,0);h=-1;break q}s:{t:{while(1){e=ek(1,J[f+4>>2]);J[(l+4|0)+(a<<2)>>2]=e;if(!e)break t;a=a+1|0;if((p|0)!=(a|0))continue;break}e=J[f+8>>2];if((e|0)<=0)break s;m=(P(p,J[f+4>>2])|0)%4|0;j=4-m|0;s=J[l+12>>2];t=J[l+8>>2];u=J[l+4>>2];n=(g|0)!=24;while(1){g=e;e=e-1|0;a=0;while(1){if(hk(o,a,0,e,J[f+4>>2], +1>>>0<7){c=0;break e}e=i&-8;c=0;h=0;while(1){J[P(c,24)+j>>2]=d;J[P(c|1,24)+j>>2]=d+5;J[P(c|2,24)+j>>2]=d+10;J[P(c|3,24)+j>>2]=d+15;J[P(c|4,24)+j>>2]=d+20;J[P(c|5,24)+j>>2]=d+25;J[P(c|6,24)+j>>2]=d+30;J[P(c|7,24)+j>>2]=d+35;c=c+8|0;d=d+40|0;h=h+8|0;if((e|0)!=(h|0))continue;break}}if(!n)break d;while(1){J[P(c,24)+j>>2]=d;c=c+1|0;d=d+5|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}c=yd(f,L[g+28>>1]+o|0);J[g+40>>2]=c;if(c)break a;if(i){d=J[l+12>>2];e=0;while(1){c=Te(f,327632,g+4|0);J[g+40>>2]=c;if(c)break a; +c=J[g+4>>2];J[d+16>>2]=c;J[d+4>>2]=J[g+8>>2];J[d+8>>2]=J[g+12>>2];J[d+12>>2]=J[g+16>>2];J[d+20>>2]=L[g+22>>1];H[J[d>>2]]=c>>>24;H[J[d>>2]+1|0]=L[d+18>>1];H[J[d>>2]+2|0]=J[d+16>>2]>>>8;H[J[d>>2]+3|0]=J[d+16>>2];H[J[d>>2]+4|0]=0;I[s>>1]=L[g+20>>1];c=J[d+8>>2];if(!((c|0)>=J[d+4>>2]&(c|0)<=J[d+12>>2])){J[d+12>>2]=c;J[d+4>>2]=c}s=s+2|0;d=d+24|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}d=0;c=_c(r,4,0,y,0,g+40|0);e=J[a+736>>2];J[e+20>>2]=c;if(J[g+40>>2])break a;f:{if(!L[g+34>>1])break f;if(!K[e+24|0]){c= +J[f+8>>2];n6(a);c=yd(f,c);J[g+40>>2]=c;if(c)break a;if(!L[g+34>>1])break f}j=i<<2;o=j+(x?6:4)|0;e=J[l+16>>2];k=J[J[a+736>>2]+20>>2];h=0;while(1){c=af(f,o);J[g+40>>2]=c;if(c)break a;A=e,B=tf(f),J[A+4>>2]=B;tf(f);if(i){d=J[e>>2];c=0;while(1){A=d,B=Fh(f),J[A>>2]=B;d=d+4|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}if(x)c=tf(f);else c=65535;J[e+8>>2]=c;m6(J[a+736>>2],i,J[e>>2],k);ve(f);e=e+12|0;k=j+k|0;d=L[g+34>>1];h=h+1|0;if(d>>>0>h>>>0)continue;break}}g:{if((d|0)==(p|0))break g;c=17;d=g+4|0;e=J[a+540>> +2];if(!(kc[J[e+148>>2]](a,17,d,g)|0)){c=2;if(!(kc[J[e+148>>2]](a,2,d,g)|0))break g}if(!(kc[J[e+148>>2]](a,6,g+4|0,g)|0))break g;e=J[l+16>>2]+P(L[g+34>>1],12)|0;J[e+8>>2]=6;J[e+4>>2]=c;if(!i)break g;d=J[e>>2];c=J[l+12>>2];if(i-1>>>0>=7){f=i&-8;e=0;while(1){J[d>>2]=J[c+8>>2];J[d+4>>2]=J[c+32>>2];J[d+8>>2]=J[c+56>>2];J[d+12>>2]=J[c+80>>2];J[d+16>>2]=J[c+104>>2];J[d+20>>2]=J[c+128>>2];J[d+24>>2]=J[c+152>>2];J[d+28>>2]=J[c+176>>2];d=d+32|0;c=c+192|0;e=e+8|0;if((f|0)!=(e|0))continue;break}}f=i&7;if(!f)break g; +e=0;while(1){J[d>>2]=J[c+8>>2];d=d+4|0;c=c+24|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}c=fc-16|0;fc=c;d=J[a+736>>2];e=J[a+104>>2];h=J[e+28>>2];f=kc[J[a+516>>2]](a,1297498450,e,c+8|0)|0;J[c+12>>2]=f;h:{if(f)break h;l=J[e+8>>2];f=c+12|0;k=ee(e,f);if(J[c+12>>2])break h;j=kg(e,2);J[c+12>>2]=j;if((k|0)!=1|j)break h;A=d,B=he(h,28,f),J[A+56>>2]=B;if(J[c+12>>2])break h;k=kg(e,4);J[c+12>>2]=k;if(k)break h;k=ee(e,f);I[J[d+56>>2]>>1]=k;if(J[c+12>>2])break h;k=ee(e,f);if(J[c+12>>2])break h;j=J[e+8>>2];l=j6(J[a+ +104>>2],J[a+736>>2],l+k|0,J[d+56>>2]+4|0);J[c+12>>2]=l;if(l)break h;f=_c(h,12,0,L[J[d+56>>2]>>1],0,f);J[J[d+56>>2]+24>>2]=f;if(J[c+12>>2])break h;f=yd(e,j);J[c+12>>2]=f;if(f)break h;f=af(e,L[J[d+56>>2]>>1]<<3);J[c+12>>2]=f;if(f)break h;f=J[d+56>>2];h=L[f>>1];i:{if(!h)break i;o=J[f+24>>2];h=o+P(h,12)|0;while(1){j:{A=o,B=Fh(e),J[A>>2]=B;A=o,B=tf(e),I[A+4>>1]=B;l=tf(e);I[o+6>>1]=l;k=L[o+4>>1];if(k>>>0>=M[f+4>>2]|l>>>0>=M[J[f+8>>2]+(k<<4)>>2])break j;o=o+12|0;if(h>>>0>o>>>0)continue;break i}break}J[c+ +12>>2]=8}ve(e);if(J[c+12>>2])break h;e=J[d+56>>2];d=L[e>>1];if(d){h=J[e+24>>2];e=h+P(d,12)|0;while(1){d=i6(a,J[h>>2]);if(d)I[h+8>>1]=L[d>>1];h=h+12|0;if(e>>>0>h>>>0)continue;break}}J[a+740>>2]=J[a+740>>2]|256}fc=c+16|0}if(!b)break a;c=he(r,J[J[a+736>>2]+16>>2],g+40|0);if(J[g+40>>2])break a;a=J[a+736>>2];l=xc(c,J[a+12>>2],J[a+16>>2]);c=(l+v|0)+20|0;f=t+c|0;J[l+16>>2]=f;J[l+12>>2]=c;a=f+u|0;j=J[l+8>>2];k:{if(!j)break k;k=0;d=0;e=a;if(j>>>0>=4){o=j&-4;h=0;while(1){J[f+P(d,12)>>2]=e;m=e;e=i<<2;n=m+e| +0;J[f+P(d|1,12)>>2]=n;n=e+n|0;J[f+P(d|2,12)>>2]=n;n=e+n|0;J[f+P(d|3,12)>>2]=n;e=e+n|0;d=d+4|0;h=h+4|0;if((o|0)!=(h|0))continue;break}}h=j&3;if(!h)break k;j=i<<2;while(1){J[f+P(d,12)>>2]=e;d=d+1|0;e=e+j|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}l:{if(!i)break l;d=a+w|0;if((i|0)!=1){h=i&-2;a=0;while(1){J[c>>2]=d;m:{n:{o:{e=J[c+16>>2];if((e|0)<=2003072103){if((e|0)==1869640570)break o;if((e|0)!=1936486004)break m;m=241268;break n}m=240854;if((e|0)==2003265652)break n;if((e|0)!=2003072104)break m;m=240991; +break n}m=241130}J[c>>2]=m}J[c+24>>2]=d+5;p:{q:{r:{s:{e=J[c+40>>2];if((e|0)<=2003072103){if((e|0)==1869640570)break s;if((e|0)!=1936486004)break p;m=241268;break q}if((e|0)==2003072104)break r;m=240854;if((e|0)==2003265652)break q;break p}m=241130;break q}m=240991}J[c+24>>2]=m}c=c+48|0;d=d+10|0;a=a+2|0;if((h|0)!=(a|0))continue;break}}if(!(i&1))break l;J[c>>2]=d;t:{u:{v:{a=J[c+16>>2];if((a|0)<=2003072103){if((a|0)==1869640570)break v;if((a|0)!=1936486004)break l;e=241268;break t}if((a|0)==2003072104)break u; +e=240854;if((a|0)==2003265652)break t;break l}e=241130;break t}e=240991}J[c>>2]=e}J[b>>2]=l}fc=g+48|0;return J[g+40>>2]}function eva(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;h=fc-80|0;fc=h;J[h+68>>2]=0;J[h+72>>2]=J[685894];a:{f=J[b>>2];b:{c:{if(f)while(1){d=J[f+8>>2];g=(d&e>>31)+e|0;if((g|0)<0|(d|0)<=(g|0))break c;i=g;g=J[f+12>>2];f=eg(i+g|0,38);if(!f)break c;j=f-g|0;if((j|0)<0|(d|0)<=(j|0))break c;f=eg(g+j|0,59);if(!f)break c;l=f-g|0;if((l|0)<0)break c;J[699344]=0; +e=ha(5648,h+60|0,b|0,e|0,j-e|0)|0;d=J[699344];J[699344]=0;d:{e:{f:{g:{if((d|0)!=1){J[699344]=0;k=aa(5340,h+68|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[e>>2];J[e>>2]=0;h:{if(!d)break h;J[699344]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(e)break h;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}i:{j:{k:{m=l-j|0;d=m-1|0;if(d){J[699344]=0;i=ha(5648,h+52|0,b|0,j+1|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;d=J[i>>2];f=J[(d?d+12| +0:2743576)>>2];e=K[f|0];if(e){if((e|0)==35)break g;d=e;e=0;while(1){e=d&255^e<<6^e;d=K[f+1|0];f=f+1|0;if(d)continue;break}}J[699344]=0;f=J[J[c+12>>2]+((e>>>0)%M[c+8>>2]<<2)>>2];d=J[699344];J[699344]=0;if((d|0)==1)break j;l:{m:{n:{if(f)while(1){if(J[f+12>>2]==(e|0)){d=J[f+16>>2];o:{if(d){g=J[J[d>>2]+36>>2];J[699344]=0;d=ga(g|0,d|0,i|0,-1)|0;g=J[699344];J[699344]=0;if((g|0)!=1)break o;d=Z()|0;wc(i);break b}d=J[i>>2];if(!d)break n;d=J[d+12>>2];if(!d)break n;d=K[d|0]?-1:0}if(!d)break n}f=J[f+8>>2];if(f)continue; +break}if(!K[2794084])break m;g=J[698520];break l}J[699344]=0;aa(5340,k|0,f+24|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break f;break j}J[699344]=0;ka(5649);d=J[699344];J[699344]=0;if((d|0)==1)break j;H[2794084]=1;J[698520]=2794088;g=2794088}e=0;d=J[i>>2];f=J[(d?d+12|0:2743576)>>2];d=K[f|0];if(d)while(1){e=d&255^e<<6^e;d=K[f+1|0];f=f+1|0;if(d)continue;break}J[699344]=0;f=J[J[g+12>>2]+((e>>>0)%M[g+8>>2]<<2)>>2];d=J[699344];J[699344]=0;if((d|0)==1)break k;p:{q:{r:{s:{if(f)while(1){if(J[f+12>>2]==(e| +0)){d=J[f+16>>2];t:{if(d){n=J[J[d>>2]+36>>2];J[699344]=0;d=ga(n|0,d|0,i|0,-1)|0;n=J[699344];J[699344]=0;if((n|0)!=1)break t;d=Z()|0;wc(i);break b}d=J[i>>2];if(!d)break s;d=J[d+12>>2];if(!d)break s;d=K[d|0]?-1:0}if(!d)break s}f=J[f+8>>2];if(f)continue;break}J[699344]=0;e=ha(5648,h+20|0,b|0,j|0,m+1|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break r;J[699344]=0;aa(5340,k|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;d=J[e>>2];J[e>>2]=0;if(!d)break f;J[699344]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[699344]; +J[699344]=0;if((g|0)!=1){if(e)break f;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break f}break a}J[h+28>>2]=f;J[h+32>>2]=g;d=J[698520];if((d|0)==(g|0))break p;J[699344]=0;da(5243,h+28|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1)B();d=Z()|0;wc(i);break b}d=Z()|0;wc(i);break b}d=Z()|0;wc(e);wc(i);break b}J[699344]=0;aa(5340,k|0,f+24|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;break f}J[699344]=0;e=ha(5648,h+12|0,b|0,j|0,2)|0;d=J[699344];J[699344]=0;u:{if((d|0)!=1){J[699344]=0;aa(5340, +k|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break u;d=J[e>>2];J[e>>2]=0;if(!d)break d;J[699344]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break d;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break d}break a}d=Z()|0;break b}d=Z()|0;wc(e);break b}d=Z()|0;wc(i);break b}d=Z()|0;wc(i);break b}d=Z()|0;break b}d=Z()|0;wc(e);break b}d=Z()|0;break b}J[h+76>>2]=0;v:{if((K[f+1|0]|32)==120){e=Bz(f+2|0,h+76|0,16);break v}e=Bz(f+1|0,h+76|0,10)}if(J[h+76>>2]){d=h+ +28|0;e=nk(e,d);J[699344]=0;e=ga(5339,h+44|0,d|0,e-d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;aa(5340,k|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[e>>2];J[e>>2]=0;if(!d)break f;J[699344]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break f;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break f}break a}d=Z()|0;wc(e);wc(i);break b}J[699344]=0;e=ha(5648,h+36|0,b|0,j|0,m+1|0)|0;d=J[699344];J[699344]=0;w:{if((d|0)!=1){J[699344]=0;aa(5340, +k|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break w;d=J[e>>2];J[e>>2]=0;if(!d)break f;J[699344]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break f;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break f}break a}d=Z()|0;wc(i);break b}d=Z()|0;wc(e);wc(i);break b}d=J[i>>2];J[i>>2]=0;if(!d)break d;J[699344]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break d;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break d}break a}d= +Z()|0;wc(i);break b}e=l+1|0;f=J[b>>2];if(f)continue;break}d=0}J[699344]=0;c=ha(5648,h+28|0,b|0,e|0,d-e|0)|0;d=J[699344];J[699344]=0;x:{if((d|0)!=1){J[699344]=0;e=aa(5340,h+68|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break x;d=J[c>>2];J[c>>2]=0;y:{if(!d)break y;J[699344]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(c)break y;J[699344]=0;$(5147,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e>>2];z:{A:{B:{if(c){d=J[J[c>>2]+36>>2];J[699344]=0;d=ga(d|0,c|0,b| +0,-1)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break B;d=Z()|0;break b}c=J[b>>2];if(!c)break A;c=J[c+12>>2];if(!c)break A;d=K[c|0]?-1:0}c=e;if(d)break z}c=b}J[a>>2]=0;J[a+4>>2]=J[685894];b=J[c>>2];C:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,h+76|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break C;d=Z()|0;wc(a);break b}J[h+76>>2]=0}J[699344]=0;aa(5153,a|0,h+76|0)|0;b=J[699344];J[699344]=0;D:{if((b|0)!=1){b=J[h+76>>2];J[h+76>>2]=0;if(!b)break D;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]= +0;if((d|0)!=1){if(c)break D;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break D}break a}d=Z()|0;zc(h+76|0);wc(a);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];a=J[e>>2];J[e>>2]=0;E:{if(!a)break E;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break E;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=h+80|0;return}d=Z()|0;break b}d=Z()|0;wc(c)}wc(h+68|0);ba(d|0);B()}ea(0)|0;Bc();B()}function Eza(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;e=fc-112|0;fc=e;f=$v(e+84|0,c);J[699344]=0;g=e+92|0;ca(5218,g|0,2390052,f|0);h=J[699344];J[699344]=0;a:{b:{c:{if((h|0)!=1){J[699344]=0;ca(5291,e+100|0,g|0,2390492);h=J[699344];J[699344]=0;if((h|0)!=1){wc(g);wc(f);d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{f=J[b>>2];if(!f)break m;g=J[e+100>>2];g=J[(g?g+12|0:2743576)>>2];J[699344]=0;g=ga(5590,f|0,g|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){if((g|0)<0)break m;while(1){a=J[e+100>>2];if(a)a=J[a+8>>2];else a=0;f= +a+g|0;i=f+1|0;a=J[b>>2];n:{if(!a){c=-1;break n}J[699344]=0;c=Bo(a,33,i);a=J[699344];J[699344]=0;if((a|0)==1)break e}o:{if((c|0)<=(g|0))break o;h=c+1|0;p:{q:{r:{s:{t:{u:{if((c|0)==(f|0))break u;c=J[b>>2];v:{w:{x:{y:{z:{A:{B:{C:{D:{if(f){k=!c;a=f;E:{if((a|0)>=0)break E;if(!c)break E;a=a+J[c+8>>2]|0}if(!(k|(a|0)<0|J[c+8>>2]<(a|0))){c=J[c+12>>2];break D}J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)==1)break B;break c}if(!c)break C;a=0;c=J[c+12>>2]}if(H[a+c|0]<0)break u}J[e+92>>2]=0;J[e+96>>2]= +J[685894];J[699344]=0;a=e+76|0;c=h-i|0;ia(5313,a|0,b|0,f|0,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break A;J[699344]=0;ca(5218,e+84|0,2390052,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break z;wc(a);f=J[e+84>>2];F:{if(c){c=!f|(c|0)>=0?c:J[f+8>>2]+c|0;if(!(!f|(c|0)<0|J[f+8>>2]<(c|0))){a=J[f+12>>2];break F}J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)break c;g=Z()|0;break g}if(!f)break v;c=0;a=J[f+12>>2]}switch(H[a+c|0]-88|0){case 13:case 14:case 15:break w;case 0:case 23:case 29:case 32:break x; +case 12:case 17:break y;default:break v}}g=Z()|0;break d}g=Z()|0;break f}g=Z()|0;wc(e+76|0);break f}c=J[d>>2];if(c)break s;c=0;break r}c=J[d>>2];if(c)break s;c=0;break r}c=J[d>>2];G:{if(c){f=J[J[c>>2]+52>>2];J[699344]=0;j=+Da(f|0,c|0,0,e+68|0);c=J[699344];J[699344]=0;if((c|0)!=1)break G;break t}J[e+68>>2]=-1;j=0}O[e+32>>3]=j;J[699344]=0;ga(5350,e+92|0,a|0,e+32|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break t;if(J[e+68>>2]>=0)break p;a=J[d>>2];H:{if(a){c=J[J[a>>2]+28>>2];J[699344]=0;ca(c|0,e+76|0, +a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break t;break H}J[e+76>>2]=0}J[699344]=0;aa(5153,e+92|0,e+76|0)|0;a=J[699344];J[699344]=0;I:{if((a|0)!=1){a=J[e+76>>2];J[e+76>>2]=0;if(!a)break I;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break I;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break I}break b}g=Z()|0;zc(e+76|0);break g}a=J[e+92>>2];J[e+96>>2]=J[(a?a+12|0:2743576)>>2];break p}a=J[(f?f+12|0:2743576)>>2];c=J[d>>2];J[e>>2]=J[(c?c+12|0:2743576)>> +2];J[699344]=0;ga(5350,e+92|0,a|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break q;break p}J[699344]=0;a=e+76|0;ia(5313,a|0,b|0,0,g|0);c=J[699344];J[699344]=0;J:{K:{L:{M:{N:{O:{P:{if((c|0)!=1){J[699344]=0;c=e+84|0;ca(5292,c|0,a|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break P;J[699344]=0;a=e+68|0;ia(5313,a|0,b|0,h|0,-1);f=J[699344];J[699344]=0;if((f|0)==1)break O;J[699344]=0;ca(5292,e+92|0,c|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break N;a=J[e+92>>2];Q:{if(a){c=J[J[a>>2]+28>>2];J[699344]= +0;ca(c|0,e+60|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break Q;g=Z()|0;break M}J[e+60>>2]=0}J[699344]=0;aa(5153,b|0,e+60|0)|0;a=J[699344];J[699344]=0;R:{if((a|0)!=1){a=J[e+60>>2];J[e+60>>2]=0;if(!a)break R;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break R;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break R}break b}g=Z()|0;zc(e+60|0);break M}a=J[b>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(e+92|0);wc(e+68|0);wc(e+84|0);wc(e+76|0);break o}g= +Z()|0;break d}g=Z()|0;break J}g=Z()|0;break K}g=Z()|0;break L}wc(e+92|0)}wc(e+68|0)}wc(e+84|0)}wc(e+76|0);break d}g=Z()|0;break g}f=J[J[c>>2]+40>>2];J[699344]=0;c=_(f|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break q}J[e+16>>2]=c;J[699344]=0;ga(5350,e+92|0,a|0,e+16|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break p}g=Z()|0;break g}J[699344]=0;a=e+60|0;ia(5313,a|0,b|0,0,g|0);c=J[699344];J[699344]=0;S:{T:{U:{V:{if((c|0)!=1){J[699344]=0;c=e+68|0;ca(5292,c|0,a|0,e+92|0);a=J[699344];J[699344]=0;if((a| +0)==1)break V;J[699344]=0;a=e+52|0;ia(5313,a|0,b|0,h|0,-1);f=J[699344];J[699344]=0;if((f|0)==1)break U;J[699344]=0;ca(5292,e+76|0,c|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break T;a=J[e+76>>2];W:{if(a){c=J[J[a>>2]+28>>2];J[699344]=0;ca(c|0,e+108|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break W;g=Z()|0;break k}J[e+108>>2]=0}J[699344]=0;aa(5153,b|0,e+108|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[e+108>>2];J[e+108>>2]=0;if(!a)break S;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[699344];J[699344]= +0;if((f|0)!=1){if(c)break S;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break S}break b}g=Z()|0;zc(e+108|0);break k}g=Z()|0;break g}g=Z()|0;break h}g=Z()|0;break i}g=Z()|0;break j}a=J[b>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(e+76|0);wc(e+52|0);wc(e+68|0);wc(e+60|0);wc(e+84|0);wc(e+92|0)}a=J[d>>2];if(a)a=J[a+8>>2];else a=0;c=J[b>>2];if(!c)break l;f=J[e+100>>2];f=J[(f?f+12|0:2743576)>>2];J[699344]=0;g=ga(5590,c|0,f|0,a+g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;if((g|0)>= +0)continue;break}break l}g=Z()|0;break d}if(!c)break l;J[699344]=0;c=e+68|0;ca(5218,c|0,2388864,d|0);d=J[699344];J[699344]=0;X:{Y:{Z:{_:{$:{aa:{ba:{if((d|0)!=1){J[699344]=0;d=e+76|0;ca(5218,d|0,2391231,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break ba;J[699344]=0;f=e+84|0;ca(5583,f|0,a|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break aa;J[699344]=0;a=e+92|0;ca(5218,a|0,2387496,f|0);g=J[699344];J[699344]=0;if((g|0)==1)break $;J[699344]=0;aa(5340,b|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break _; +wc(a);wc(f);wc(d);wc(c);break l}g=Z()|0;break d}g=Z()|0;break X}g=Z()|0;break Y}g=Z()|0;break Z}g=Z()|0;wc(e+92|0)}wc(e+84|0)}wc(e+76|0)}wc(e+68|0);break d}wc(e+100|0);fc=e+112|0;return}wc(e+76|0)}wc(e+52|0)}wc(e+68|0)}wc(e+60|0)}wc(e+84|0)}wc(e+92|0);break d}g=Z()|0}wc(e+100|0);ba(g|0);B()}a=Z()|0;wc(e+92|0);break a}a=Z()|0;break a}B()}ea(0)|0;Bc();B()}wc(f);ba(a|0);B()}function J7a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w= +0,x=0;g=fc-160|0;fc=g;f5(g+148|0,b);J[699344]=0;da(2528,g+136|0,c|0);b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[g+132>>2]=0;J[g+124>>2]=0;J[g+128>>2]=0;i=J[g+148>>2];h=J[g+152>>2];if(!((i|0)==(h|0)|J[g+136>>2]==J[g+140>>2])){j=g+32|0;while(1){b:{k=J[g+136>>2];n=J[g+140>>2];if((k|0)==(n|0))break b;c:{d:{e:{while(1){f:{J[699344]=0;m=na(2529,g+4|0,i|0,k|0,d|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[g+128>>2];c=J[g+132>>2];g:{if(b>>>0>>0){w=g,x=$n(b,j)+8|0,J[w+128>>2]=x;break g}f=J[g+ +124>>2];p=b-f>>3;b=p+1|0;if(b>>>0>=536870912){J[699344]=0;$(2530,g+124|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;break c}c=c-f|0;f=c>>2;b=c>>>0>=2147483640?536870911:b>>>0>>0?f:b;h:{if(!b){c=0;break h}if(b>>>0>=536870912){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break c;break e}J[699344]=0;c=_(4,b<<3)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e}l=(b<<3)+c|0;f=$n((p<<3)+c|0,j);p=f+8|0;b=J[g+128>>2];c=J[g+124>>2];i:{if((b|0)==(c|0)){J[g+132>>2]=l;J[g+128>>2]=p;J[g+124>>2]=f; +break i}while(1){b=b-8|0;f=$n(f-8|0,b);if((b|0)!=(c|0))continue;break}J[g+132>>2]=l;c=J[g+128>>2];J[g+128>>2]=p;b=J[g+124>>2];J[g+124>>2]=f;if((b|0)==(c|0))break i;while(1){c=c-8|0;kc[J[J[c>>2]+16>>2]](c)|0;if((b|0)!=(c|0))continue;break}}if(!b)break g;uc(b)}W4(m);k=k+8|0;if((n|0)!=(k|0))continue;break b}break}b=Z()|0;break d}b=Z()|0;W4(m)}tD(g+124|0);tD(g+136|0);break a}B()}i=i+8|0;if((h|0)!=(i|0))continue;break}}c=fc-16|0;fc=c;J[a>>2]=349612;J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;j:{k:{if((d| +0)==1)break k;J[b>>2]=0;J[b+4>>2]=0;J[b+28>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;I[b+24>>1]=0;J[a+4>>2]=b;p=J[g+128>>2];k=J[g+124>>2];l:{if((p-k|0)==8){j5(a,k);break l}if((k|0)==(p|0))break l;while(1){d=J[k+4>>2];b=J[d>>2];m:{if(!b){Zk(c,k,0,0);break m}f=J[d+16>>2];m=0;d=0;if((b|0)!=1){i=b&-2;e=0;while(1){h=m;j=J[f+(d>>>6&67108860)>>2]+(d&254)|0;m=K[j|0];j=K[j+1|0];m=(h+((m|0)!=0&!(m&64))|0)+((j|0)!=0&!(j&64))|0;d=d+2|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}if(b&1){b=K[J[f+(d>>> +6&67108860)>>2]+(d&255)|0];m=((b|0)!=0&!(b&64))+m|0}d=0;Zk(c,k,0,m);if(!m)break m;while(1){b=J[k+4>>2];n:{if(M[b>>2]<=d>>>0)break n;o:switch(K[J[J[b+16>>2]+(d>>>6&67108860)>>2]+(d&255)|0]-1|0){case 0:b=J[c>>2]+(d<<4)|0;q=O[b+8>>3];r=O[b>>3];b=J[a+4>>2];H[b+25|0]=1;j=J[b+4>>2];i=J[b>>2];l=i>>>8|0;if(j>>>0<=l>>>0){e=J[b+8>>2];p:{if(l>>>0>>0){f=J[b+12>>2];break p}J[699344]=0;f=(e<<1)+512|0;f=_(27,(f>>>0>1073741823?-1:f<<2)|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break k;h=e<<2;n=(h+f|0)+1024|0;o= +J[b+12>>2];if(o){xc(f,o,h);xc(n,J[b+16>>2],h);uc(o);i=J[b>>2];j=J[b+4>>2];e=J[b+8>>2]}J[b+16>>2]=n;J[b+12>>2]=f;J[b+8>>2]=e+256}J[699344]=0;h=_(27,4352)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;e=l<<2;J[e+f>>2]=h;J[e+J[b+16>>2]>>2]=J[e+J[b+12>>2]>>2]+4096;J[b+4>>2]=j+1}e=l<<2;f=J[e+J[b+12>>2]>>2];H[J[e+J[b+16>>2]>>2]+(i&255)|0]=1;e=(i<<4&4080)+f|0;O[e+8>>3]=q;O[e>>3]=r;J[b>>2]=J[b>>2]+1;break n;case 1:b=J[c>>2]+(d<<4)|0;q=O[b+8>>3];r=O[b>>3];b=J[a+4>>2];i=J[b>>2];l=i>>>8|0;j=J[b+4>>2];if(l>>> +0>=j>>>0){e=J[b+8>>2];q:{if(l>>>0>>0){f=J[b+12>>2];break q}J[699344]=0;f=(e<<1)+512|0;f=_(27,(f>>>0>1073741823?-1:f<<2)|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break k;h=e<<2;n=(h+f|0)+1024|0;o=J[b+12>>2];if(o){xc(f,o,h);xc(n,J[b+16>>2],h);uc(o);i=J[b>>2];j=J[b+4>>2];e=J[b+8>>2]}J[b+16>>2]=n;J[b+12>>2]=f;J[b+8>>2]=e+256}J[699344]=0;h=_(27,4352)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;e=l<<2;J[e+f>>2]=h;J[e+J[b+16>>2]>>2]=J[e+J[b+12>>2]>>2]+4096;J[b+4>>2]=j+1}e=l<<2;f=J[e+J[b+12>>2]>>2]; +H[J[e+J[b+16>>2]>>2]+(i&255)|0]=2;e=(i<<4&4080)+f|0;O[e+8>>3]=q;O[e>>3]=r;J[b>>2]=J[b>>2]+1;break n;case 3:break o;default:break n}e=J[c>>2];b=e+(d<<4)|0;q=O[b+8>>3];r=O[b>>3];d=d+2|0;e=e+(d<<4)|0;s=O[e+8>>3];t=O[e>>3];u=O[b+24>>3];v=O[b+16>>3];b=J[a+4>>2];i=J[b>>2];l=i>>>8|0;j=J[b+4>>2];if(l>>>0>=j>>>0){e=J[b+8>>2];r:{if(l>>>0>>0){f=J[b+12>>2];break r}J[699344]=0;f=(e<<1)+512|0;f=_(27,(f>>>0>1073741823?-1:f<<2)|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break k;h=e<<2;n=(h+f|0)+1024|0;o=J[b+12>> +2];if(o){xc(f,o,h);xc(n,J[b+16>>2],h);uc(o);i=J[b>>2];j=J[b+4>>2];e=J[b+8>>2]}J[b+16>>2]=n;J[b+12>>2]=f;J[b+8>>2]=e+256}J[699344]=0;h=_(27,4352)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;e=l<<2;J[e+f>>2]=h;J[e+J[b+16>>2]>>2]=J[e+J[b+12>>2]>>2]+4096;J[b+4>>2]=j+1}e=l<<2;f=J[e+J[b+12>>2]>>2];H[J[e+J[b+16>>2]>>2]+(i&255)|0]=4;e=(i<<4&4080)+f|0;O[e+8>>3]=q;O[e>>3]=r;J[b>>2]=J[b>>2]+1;J[699344]=0;J[c+12>>2]=0;e=aa(2487,b|0,c+12|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break k;H[e|0]=4;e=J[c+12>>2]; +O[e+8>>3]=u;O[e>>3]=v;J[b>>2]=J[b>>2]+1;J[699344]=0;J[c+12>>2]=0;e=aa(2487,b|0,c+12|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break k;H[e|0]=4;e=J[c+12>>2];O[e+8>>3]=s;O[e>>3]=t;J[b>>2]=J[b>>2]+1}d=d+1|0;if(m>>>0>d>>>0)continue;break}}b=J[k+4>>2];d=J[b>>2];s:{if(d){e=J[b+16>>2];b=d-1|0;if(!(K[J[e+(b>>>6&67108860)>>2]+(b&255)|0]&64))break s}b=J[a+4>>2];d=J[b>>2];if(!d)break s;d=d-1|0;if(K[J[J[b+16>>2]+(d>>>6&67108860)>>2]+(d&255)|0]-1>>>0>13)break s;J[699344]=0;J[c+12>>2]=0;d=aa(2487,b|0,c+12|0)|0; +e=J[699344];J[699344]=0;if((e|0)==1)break k;H[d|0]=79;d=J[c+12>>2];J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[b>>2]=J[b>>2]+1}b=J[c>>2];if(b){J[c+4>>2]=b;uc(b)}k=k+8|0;if((p|0)!=(k|0))continue;break}}fc=c+16|0;break j}ea(0)|0;Bc();B()}a=J[g+124>>2];if(a){b=J[g+128>>2];f=a;if((b|0)!=(f|0)){while(1){b=b-8|0;kc[J[J[b>>2]+16>>2]](b)|0;if((a|0)!=(b|0))continue;break}f=J[g+124>>2]}J[g+128>>2]=a;uc(f)}a=J[g+136>>2];if(a){b=J[g+140>>2];f=a;if((b|0)!=(f|0)){while(1){b=b-8|0;kc[J[J[b>>2]+16>>2]](b)|0; +if((a|0)!=(b|0))continue;break}f=J[g+136>>2]}J[g+140>>2]=a;uc(f)}a=J[g+148>>2];if(a){b=J[g+152>>2];f=a;if((b|0)!=(f|0)){while(1){b=b-8|0;kc[J[J[b>>2]+16>>2]](b)|0;if((a|0)!=(b|0))continue;break}f=J[g+148>>2]}J[g+152>>2]=a;uc(f)}fc=g+160|0;return}b=Z()|0}tD(g+148|0);ba(b|0);B()}function s_(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0,M=0;f=fc-48|0;fc=f;J[f+32>>2]=13;J[f+16>>2]=13;a:{b:{c:{d:{e:{if(Ic(b,784559))if(Ic(b, +785219))break e;b=vc(16);J[b+8>>2]=-1;J[b+12>>2]=0;J[b>>2]=2343348;break d}f:{if(Ic(b,786393))if(Ic(b,787593))break f;b=vc(56);J[b>>2]=2343448;J[b+4>>2]=c;J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;break c}g:{if(Ic(b,788148))if(Ic(b,789031))break g;b=8;a=1;g=1;h=1;i=1;if(J[d>>2]==7){b=f+16|0;Ec(J[d+8>>2],789723,b,e);a=J[f+24>>2];g=J[f+16>>2];yc(b);Ec(J[d+8>>2],790703,b,e);h=J[f+24>>2];i=J[f+16>>2];yc(b);Ec(J[d+8>>2],791440,b,e);j=J[f+24>>2];k=J[f+16>>2];yc(b);Ec(J[d+8>>2],792199,b,e);l=J[f+24>>2];m=J[f+ +16>>2];yc(b);Ec(J[d+8>>2],793300,b,e);a=(g|0)!=1?1:a;i=(i|0)!=1?1:h;g=(k|0)!=1?1:j;h=J[f+16>>2]!=1?1:J[f+24>>2];yc(b);b=(m|0)!=1?8:l}d=vc(53336);J[699344]=0;b=va(3648,d|0,c|0,a|0,i|0,g|0,b|0,h|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c;break b}h:{if(Ic(b,794042))if(Ic(b,795017))break h;b=vc(148);J[b>>2]=2343648;J[b+4>>2]=c;J[b+144>>2]=0;a=b+8|0;J[b+140>>2]=a;J[b+136>>2]=a;break c}i:{if(Ic(b,795434))if(Ic(b,796555))break i;b=1728;a=0;i=1;if(J[d>>2]==7){b=f+16|0;Ec(J[d+8>>2],797383,b,e);a=J[f+ +24>>2];k=J[f+16>>2];yc(b);Ec(J[d+8>>2],797812,b,e);g=J[f+24>>2];h=J[f+16>>2];yc(b);Ec(J[d+8>>2],798604,b,e);i=J[f+24>>2];j=J[f+16>>2];yc(b);Ec(J[d+8>>2],790703,b,e);l=J[f+24>>2];m=J[f+16>>2];yc(b);Ec(J[d+8>>2],799251,b,e);n=J[f+24>>2];o=J[f+16>>2];yc(b);Ec(J[d+8>>2],800113,b,e);p=J[f+24>>2];q=J[f+16>>2];yc(b);Ec(J[d+8>>2],801146,b,e);g=h?0:g;h=j?0:i;i=q?1:p;j=J[f+16>>2]?0:J[f+24>>2];a=(k|0)==1?a:0;k=(o|0)==1?n:0;yc(b);b=(m|0)!=1?1728:l}d=vc(84);J[699344]=0;b=Ia(3649,d|0,c|0,a|0,g|0,h|0,b|0,k|0,i| +0,j|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c;break b}j:{if(Ic(b,801656))if(Ic(b,802413))break j;b=-1;if(J[d>>2]==7){a=f+16|0;b=Ec(J[d+8>>2],802943,a,e);b=J[b>>2]!=1?-1:J[f+24>>2];yc(a)}a=vc(3528);J[a+192>>2]=b;J[a>>2]=2343848;J[a+4>>2]=c;b=0;J[a+3468>>2]=0;J[a+188>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;Ac(a+724|0,0,2736);J[a+3504>>2]=0;c=a+3496|0;J[c>>2]=0;J[c+4>>2]=0;c=a+3488|0;J[c>>2]=0;J[c+4>>2]=0;J[a+3480>>2]=0;J[a+3484>>2]=0;if(!K[2773860]){Ac(2773872, +0,384);while(1){H[b+2774256|0]=b;H[b+2774257|0]=b|1;H[b+2774258|0]=b|2;H[b+2774259|0]=b|3;b=b+4|0;if((b|0)!=256)continue;break}Ac(2774512,255,383);H[2773860]=1}b=a;break c}k:{if(Ic(b,803823))if(Ic(b,804389))break k;b=8;a=1;g=1;h=1;if(J[d>>2]==7){g=f+16|0;Ec(J[d+8>>2],789723,g,e);a=J[f+24>>2];b=J[f+16>>2];yc(g);Ec(J[d+8>>2],790703,g,e);h=J[f+24>>2];i=J[f+16>>2];yc(g);Ec(J[d+8>>2],791440,g,e);j=J[f+24>>2];k=J[f+16>>2];yc(g);Ec(J[d+8>>2],792199,g,e);a=(b|0)!=1?1:a;h=(i|0)!=1?1:h;b=J[f+16>>2]!=1?8:J[f+ +24>>2];yc(g);g=(k|0)!=1?1:j}d=vc(34120);J[699344]=0;b=ja(3650,d|0,c|0,a|0,h|0,g|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c;break b}if(!Ic(b,805066)){if(J[d>>2]==7)Ec(J[d+8>>2],805643,f+32|0,e);a=vc(152);J[699344]=0;b=c;c=f+32|0;b=ga(3620,a|0,b|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;yc(c);break c}if(!Ic(b,806240)){kc[J[J[c>>2]+20>>2]](c);l:{m:{b=kc[J[J[c>>2]+28>>2]](c)|0;n:{if((b|0)==-1){b=0;d=0;e=0;a=0;break n}d=kc[J[J[c>>2]+28>>2]](c)|0;if((d|0)==-1){d=0;e=0;a=0;break n}e= +kc[J[J[c>>2]+28>>2]](c)|0;if((e|0)==-1){e=0;a=0;break n}a=kc[J[J[c>>2]+28>>2]](c)|0;if((a|0)==-1){a=0;break n}r=kc[J[J[c>>2]+28>>2]](c)|0;if((r|0)==-1){r=0;break n}t=kc[J[J[c>>2]+28>>2]](c)|0;if((t|0)==-1){t=0;break n}u=kc[J[J[c>>2]+28>>2]](c)|0;if((u|0)==-1){u=0;break n}v=kc[J[J[c>>2]+28>>2]](c)|0;if((v|0)==-1){v=0;break n}w=kc[J[J[c>>2]+28>>2]](c)|0;if((w|0)==-1){w=0;break n}x=kc[J[J[c>>2]+28>>2]](c)|0;if((x|0)==-1){x=0;break n}y=kc[J[J[c>>2]+28>>2]](c)|0;if((y|0)==-1){y=0;break n}z=kc[J[J[c>>2]+ +28>>2]](c)|0;if((z|0)==-1){z=0;break n}A=kc[J[J[c>>2]+28>>2]](c)|0;if((A|0)==-1){A=0;break n}C=kc[J[J[c>>2]+28>>2]](c)|0;if((C|0)==-1){C=0;break n}D=kc[J[J[c>>2]+28>>2]](c)|0;if((D|0)==-1){D=0;break n}E=kc[J[J[c>>2]+28>>2]](c)|0;if((E|0)==-1){E=0;break n}l=kc[J[J[c>>2]+28>>2]](c)|0;if((l|0)==-1){l=0;break n}m=kc[J[J[c>>2]+28>>2]](c)|0;if((m|0)==-1){m=0;break n}n=kc[J[J[c>>2]+28>>2]](c)|0;if((n|0)==-1){n=0;break n}o=kc[J[J[c>>2]+28>>2]](c)|0;if((o|0)==-1){o=0;break n}g=kc[J[J[c>>2]+28>>2]](c)|0;if((g| +0)==-1){g=0;break n}h=kc[J[J[c>>2]+28>>2]](c)|0;if((h|0)==-1){h=0;break n}i=kc[J[J[c>>2]+28>>2]](c)|0;if((i|0)==-1){i=0;break n}j=kc[J[J[c>>2]+28>>2]](c)|0;if((j|0)==-1){j=0;break n}k=kc[J[J[c>>2]+28>>2]](c)|0;if((k|0)==-1){k=0;break n}p=kc[J[J[c>>2]+28>>2]](c)|0;if((p|0)==-1){p=0;break n}q=kc[J[J[c>>2]+28>>2]](c)|0;if((q|0)==-1){q=0;break n}s=kc[J[J[c>>2]+28>>2]](c)|0;if((s|0)==-1){s=0;break n}F=kc[J[J[c>>2]+28>>2]](c)|0;if((F|0)==-1){F=0;break n}G=kc[J[J[c>>2]+28>>2]](c)|0;if((G|0)!=-1)break m}G= +0;break l}I=kc[J[J[c>>2]+28>>2]](c)|0;if((I|0)==-1){I=0;break l}L=kc[J[J[c>>2]+28>>2]](c)|0;if((L|0)==-1)break l;M=(L&255)==50}r=!((A|C|D)&255)&(!((b|d|e)&255)&(a&255)==12&(r&255)==106&(t&255)==80&(u&255)==32&(v&255)==32&(w&255)==13&(x&255)==10&(y&255)==135&(z&255)==10);o:{p:{q:{if((g&255)!=106|(h&255)!=112|((i&255)!=50|(j&255)!=32))break q;if((q|s|p|k)&255|(l&255)!=102|(!r|(m&255)!=116))break q;if((n&255)!=121)break q;if((o&255)==112)break p}if(!((b&e&255)!=255|(d&255)!=79)&(a&255)==81)break p;kc[J[J[c>> +2]+20>>2]](c);if(!(!(r&(!((k|p|q|s)&255)&((E&255)==24&(g&255)==109&(h&255)==106&(i&255)==112&(j&255)==50)&(F&255)==109&(G&255)==106&(I&255)==112&M))|(l&255)!=102|((m&255)!=116|(n&255)!=121)))if((o&255)==112)break o;a=vc(240);J[699344]=0;b=aa(3651,a|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break c;break a}kc[J[J[c>>2]+20>>2]](c)}a=vc(20);J[699344]=0;J[a+4>>2]=c;J[a>>2]=2342900;J[a>>2]=837560;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;b=a;c=J[699344];J[699344]=0;if((c|0)!=1)break c;break a}a=kc[J[J[a>> +2]+52>>2]](a)|0;J[f>>2]=b;Cc(1,a,806794,f);b=vc(8);J[b>>2]=2344572}J[b+4>>2]=c}fc=f+48|0;return b}a=Z()|0;uc(d);ba(a|0);B()}b=Z()|0;uc(a);ba(b|0);B()}function G4(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;m=fc-16|0;fc=m;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];f=J[c+20>>2];J[c+28>>2]=f;I[f+2>>1]=0;l=J[b+20>>2];b=J[b+28>>2];f=268435454;d=268435455;h=268435455;i=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[m+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];i=j>>31;h=I[a+8>>1];i=(h+((i^ +j)-i|0)|0)-1|0}if((b|0)!=(l|0)){J[m+4>>2]=l+8;o=(b-l>>3)-1|0;b=I[l+10>>1];a=b>>31;d=I[l+8>>1];f=(d+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=h;n=0;break a}if((h|0)<=(i|0)){a=h;break a}a=J[m+8>>2];J[m+8>>2]=a+8;n=n-1|0;i=I[a+10>>1];b=i>>31;a=I[a+8>>1];i=(a+((b^i)-b|0)|0)-1|0}l=i;b:{c:{d:{if(!o){o=0;break d}if((d|0)>(f|0))break c}b=d;break b}b=J[m+4>>2];J[m+4>>2]=b+8;o=o-1|0;i=I[b+10>>1];f=i>>31;b=I[b+8>>1];f=(b+((f^i)-f|0)|0)-1|0}j=f;if(!((f|0)<(b|0)&(a|0)>(l|0))){h=(a|0)>(b|0)?a:b;f=((f|0)>(l|0)?l: +f)-h|0;if((f|0)>=0){i=f+1|0;e:{f:{g:{if((a|0)<(b|0)){d=b-a|0;f=J[m+8>>2];e=I[f+2>>1];if((e|0)<0){f=K[J[f+4>>2]];h:{if((J[c>>2]+1|0)!=(a|0))break h;e=J[c+28>>2];g=I[e+2>>1];if((g|0)>=0|(f|0)!=K[J[e+4>>2]])break h;I[e+2>>1]=g-d;a=b;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[f+10>>1]=0-d;I[f+8>>1]=a;J[f+12>>2]=e;a=b;break g}if(!e){a=b;break e}g=J[f+4>>2];f=I[f>>1];xc(J[c+16>>2],g+((a|0)>(f|0)?a-f|0:0)|0,d);e=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(a|0))break j;f=I[e+ +2>>1];if((f|0)<=0)break j;I[e+2>>1]=d+f;f=J[c+16>>2];break i}J[c+28>>2]=e+8;f=J[c+16>>2];I[e+10>>1]=d;I[e+8>>1]=a;J[e+12>>2]=f}J[c+16>>2]=d+f;a=b;break g}if((a|0)<=(b|0))break e;d=a-b|0;f=J[m+4>>2];e=I[f+2>>1];if((e|0)<0){f=K[J[f+4>>2]];k:{if((J[c>>2]+1|0)!=(b|0))break k;e=J[c+28>>2];g=I[e+2>>1];if((g|0)>=0|(f|0)!=K[J[e+4>>2]])break k;I[e+2>>1]=g-d;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[f+10>>1]=0-d;I[f+8>>1]=b;J[f+12>>2]=e;break g}if(!e)break f;g=J[f+4>> +2];f=I[f>>1];xc(J[c+16>>2],g+((b|0)>(f|0)?b-f|0:0)|0,d);e=J[c+28>>2];l:{m:{if((J[c>>2]+1|0)!=(b|0))break m;f=I[e+2>>1];if((f|0)<=0)break m;I[e+2>>1]=d+f;f=J[c+16>>2];break l}J[c+28>>2]=e+8;f=J[c+16>>2];I[e+10>>1]=d;I[e+8>>1]=b;J[e+12>>2]=f}J[c+16>>2]=d+f}J[c>>2]=a-1}b=a}f=i;n:{o:{p:{q:{r:{s:{t:{u:{d=J[m+4>>2];e=J[m+8>>2];switch((L[d+2>>1]>>>14&2|L[e+2>>1]>>>15)-1|0){case 2:break r;case 1:break s;case 0:break t;default:break u}}g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(h|0)?h-d|0:0)|0;g=J[e+4>>2];e=I[e>>1]; +e=g+((e|0)<(h|0)?h-e|0:0)|0;g=J[c+16>>2];while(1){k=g;g=P(K[d|0]^255,K[e|0]^255);H[k|0]=g?65025-g>>>8|0:-1;g=J[c+28>>2];v:{w:{if((J[c>>2]+1|0)!=(h|0))break w;k=I[g+2>>1];if((k|0)<=0)break w;I[g+2>>1]=k+1;k=J[c+16>>2];break v}J[c+28>>2]=g+8;k=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=h;J[g+12>>2]=k}d=d+1|0;e=e+1|0;J[c>>2]=h;g=k+1|0;J[c+16>>2]=g;h=h+1|0;f=f-1|0;if(f)continue;break}break n}if(K[J[e+4>>2]]==255)break p;g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(h|0)?h-d|0:0)|0;g=J[c+16>>2];while(1){e=P(K[d|0]^255,K[J[J[m+ +8>>2]+4>>2]]^255);H[g|0]=e?65025-e>>>8|0:-1;g=J[c+28>>2];x:{y:{if((J[c>>2]+1|0)!=(h|0))break y;e=I[g+2>>1];if((e|0)<=0)break y;I[g+2>>1]=e+1;e=J[c+16>>2];break x}J[c+28>>2]=g+8;e=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=h;J[g+12>>2]=e}d=d+1|0;J[c>>2]=h;g=e+1|0;J[c+16>>2]=g;h=h+1|0;f=f-1|0;if(f)continue;break}break n}if(K[J[d+4>>2]]==255)break q;d=I[e>>1];d=J[e+4>>2]+((d|0)<(h|0)?h-d|0:0)|0;g=J[c+16>>2];while(1){e=P(K[J[J[m+4>>2]+4>>2]]^255,K[d|0]^255);H[g|0]=e?65025-e>>>8|0:-1;g=J[c+28>>2];z:{A:{if((J[c>> +2]+1|0)!=(h|0))break A;e=I[g+2>>1];if((e|0)<=0)break A;I[g+2>>1]=e+1;e=J[c+16>>2];break z}J[c+28>>2]=g+8;e=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=h;J[g+12>>2]=e}d=d+1|0;J[c>>2]=h;g=e+1|0;J[c+16>>2]=g;h=h+1|0;f=f-1|0;if(f)continue;break}break n}d=P(K[J[d+4>>2]]^255,K[J[e+4>>2]]^255);d=d?65025-d>>>8|0:255;B:{if((J[c>>2]+1|0)!=(h|0))break B;e=J[c+28>>2];g=I[e+2>>1];if((g|0)>=0|(d|0)!=K[J[e+4>>2]])break B;I[e+2>>1]=g-f;break o}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>> +1]=0-f;I[d+8>>1]=h;J[d+12>>2]=e;break o}C:{if((J[c>>2]+1|0)!=(h|0))break C;d=J[c+28>>2];e=I[d+2>>1];if((e|0)>=0|K[J[d+4>>2]]!=255)break C;I[d+2>>1]=e-f;break o}H[J[c+16>>2]]=255;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>>1]=0-f;I[d+8>>1]=h;J[d+12>>2]=e;break o}D:{if((J[c>>2]+1|0)!=(h|0))break D;d=J[c+28>>2];e=I[d+2>>1];if((e|0)>=0|K[J[d+4>>2]]!=255)break D;I[d+2>>1]=e-f;break o}H[J[c+16>>2]]=255;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>>1]=0-f;I[d+8>>1]= +h;J[d+12>>2]=e}J[c>>2]=(f+h|0)-1}if((j|0)>(l|0)){d=b+i|0;i=268435454;h=268435455;f=j;continue}d=268435455;b=a+i|0;a=(j|0)<(l|0);h=a?b:268435455;f=268435454;i=a?l:268435454;continue}if((a|0)<(b|0)){i=268435454;h=268435455;d=b;f=j;if((a|0)>(l|0))continue;g=l-a|0;e=g+1|0;j=J[m+8>>2];k=I[j+2>>1];E:{if((k|0)<0){d=K[J[j+4>>2]];F:{if((J[c>>2]+1|0)!=(a|0))break F;j=J[c+28>>2];k=I[j+2>>1];if((k|0)>=0|(d|0)!=K[J[j+4>>2]])break F;I[j+2>>1]=k-e;break E}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;j=J[c+16>>2]; +J[c+16>>2]=j+1;I[d+10>>1]=g^-1;I[d+8>>1]=a;J[d+12>>2]=j;break E}if(!k)continue;d=I[j>>1];xc(J[c+16>>2],J[j+4>>2]+((a|0)>(d|0)?a-d|0:0)|0,e);j=J[c+28>>2];G:{H:{if((J[c>>2]+1|0)!=(a|0))break H;d=I[j+2>>1];if((d|0)<=0)break H;I[j+2>>1]=d+e;d=J[c+16>>2];break G}J[c+28>>2]=j+8;d=J[c+16>>2];I[j+10>>1]=e;I[j+8>>1]=a;J[j+12>>2]=d}J[c+16>>2]=d+e}J[c>>2]=l;d=b;continue}f=268435454;d=268435455;h=a;i=l;if((b|0)>(j|0))continue;g=j-b|0;e=g+1|0;a=J[m+4>>2];k=I[a+2>>1];I:{if((k|0)<0){a=K[J[a+4>>2]];J:{if((J[c>>2]+ +1|0)!=(b|0))break J;i=J[c+28>>2];k=I[i+2>>1];if((k|0)>=0|(a|0)!=K[J[i+4>>2]])break J;I[i+2>>1]=k-e;break I}H[J[c+16>>2]]=a;a=J[c+28>>2];J[c+28>>2]=a+8;i=J[c+16>>2];J[c+16>>2]=i+1;I[a+10>>1]=g^-1;I[a+8>>1]=b;J[a+12>>2]=i;break I}if(!k)continue;i=J[a+4>>2];a=I[a>>1];xc(J[c+16>>2],i+((a|0)<(b|0)?b-a|0:0)|0,e);a=J[c+28>>2];K:{L:{if((J[c>>2]+1|0)!=(b|0))break L;i=I[a+2>>1];if((i|0)<=0)break L;I[a+2>>1]=e+i;i=J[c+16>>2];break K}J[c+28>>2]=a+8;i=J[c+16>>2];I[a+10>>1]=e;I[a+8>>1]=b;J[a+12>>2]=i}J[c+16>>2]= +e+i}J[c>>2]=j;i=l;continue}break}fc=m+16|0}function nZa(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=fc-176|0;fc=e;a:{b:{c:{d:{if(!b){d=0;break d}J[e+144>>2]=13;g=J[c+12>>2];J[e+168>>2]=J[c+8>>2];J[e+172>>2]=g;J[e+160>>2]=9;c=e+160|0;jf(c,a,e+144|0,0);yc(c);Ac(e+40|0,0,104);H[e+24|0]=0;J[699344]=0;H[e+8|0]=0;ca(3367,d|0,e+24|0,e+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;if(K[e+24|0]){J[699344]=0;a=_(4,4)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[a>>2]=1;J[e+60>>2]=a}if(K[e+ +8|0]){J[699344]=0;a=_(4,4)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[a>>2]=1;J[e+64>>2]=a}e:{f:{g:{h:{i:{j:{k:{if(J[e+144>>2]==7){J[699344]=0;a=J[e+152>>2];J[e+24>>2]=13;a=ha(3368,a|0,795282,e+24|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;if(J[a>>2]==7){J[e+8>>2]=13;J[699344]=0;ha(3368,J[e+32>>2],796232,e+8|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(J[e+8>>2]==4){J[699344]=0;a=J[e+16>>2];c=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;d=Yc(a);J[699344]=0;ia(3369,c| +0,a|0,d|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break i;d=Z()|0;uc(c);break a}J[699344]=0;c=_(4,12)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(H[d+11|0]>=0){a=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=a;J[c+8>>2]=J[d+8>>2];break i}a=J[d+4>>2];d=J[d>>2];J[699344]=0;ca(15,c|0,d|0,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i;d=Z()|0;uc(c);break a}J[699344]=0;a=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;l:{if(H[d+11|0]>=0){c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;J[a+8>>2]=J[d+8>>2];break l}c= +J[d+4>>2];d=J[d>>2];J[699344]=0;ca(15,a|0,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break k}J[e+40>>2]=a;break g}J[699344]=0;a=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;m:{if(H[d+11|0]>=0){c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;J[a+8>>2]=J[d+8>>2];break m}c=J[d+4>>2];d=J[d>>2];J[699344]=0;ca(15,a|0,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break j}J[e+40>>2]=a;break e}d=Z()|0;uc(a);break a}d=Z()|0;uc(a);break a}J[699344]=0;J[e+40>>2]=c;a=e+8|0;$(3370,a|0);c=J[699344];J[699344]= +0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],796792,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],797772,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],798498,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]= +0;ha(3368,J[e+32>>2],799155,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],800137,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(!(!J[e+16>>2]|J[e+8>>2]!=1)){a=J[e+64>>2];if(a){uc(a);J[e+64>>2]=0}J[699344]=0;a=_(4,4)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[a>>2]=1;J[e+64>>2]=a}J[699344]=0;a=e+8|0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>> +2],800761,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[699344]=0;a=_(4,2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+120>>2]=a}J[699344]=0;a=e+8|0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],801635,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[699344]=0;a=_(4,2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+128>>2]=a}J[699344]=0;a=e+8|0;$(3370,a|0);c=J[699344]; +J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],802276,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[699344]=0;a=_(4,2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+136>>2]=a}J[699344]=0;a=e+8|0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],802918,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[699344]=0;a=_(4,2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;I[a>>1]=J[e+ +16>>2];J[e+132>>2]=a}J[699344]=0;a=e+8|0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],803841,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;c=J[e+8>>2];n:{if(c-3>>>0<4294967294)break n;f=O[e+16>>3];if(!(((c|0)==1?+J[e+16>>2]:f)>50.5))break n;J[699344]=0;a=_(4,2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;A(+f);v(1)|0;f=Y((h=+(v(0)|0),i=f,j=(c|0)==1,j?h:i)+-50.5)*65;o:{if(f<4294967296&f>=0){c=~~f>>>0;break o}c=0}I[a>>1]=c;J[e+100>>2]=a}J[699344]=0; +a=e+8|0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],804811,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],804944,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[699344]=0;a=_(4,2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+124>>2]=a}J[699344]=0;a=e+8|0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h; +J[699344]=0;ha(3368,J[e+32>>2],805781,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;if(J[e+8>>2]==1){J[699344]=0;a=_(4,2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;I[a>>1]=J[e+16>>2];J[e+116>>2]=a}J[699344]=0;a=e+8|0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],806223,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;$(3370,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;ha(3368,J[e+32>>2],806620,a|0,0)|0;c=J[699344]; +J[699344]=0;if((c|0)==1)break h;J[699344]=0;$(3370,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g}d=Z()|0;break a}J[699344]=0;$(3370,e+24|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e}d=Z()|0;break a}a=J[J[b>>2]+136>>2];J[699344]=0;c=a;a=e+40|0;d=ga(c|0,b|0,a|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;bp(a)}fc=e+176|0;return d|0}d=Z()|0;break a}d=Z()|0}bp(e+40|0);ba(d|0);B()}function rAa(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;j=fc-16|0;fc=j;a:{b:{c:{d= +J[a+20>>2];if(d)while(1){d:{c=J[d+8>>2];e=J[c+8>>2];e:{if(!e){if(!J[b>>2])break e;break d}J[e+4>>2]=J[e+4>>2]+1;e=J[b>>2];c=J[c+8>>2];f:{if(!c)break f;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(f)break f;J[699344]=0;$(5147,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break b}if((c|0)!=(e|0))break d;c=J[d+8>>2]}n=c,o=qT(0),J[n+16>>2]=o;J[c+20>>2]=jc;break c}d=J[d>>2];if(d)continue;break}c=J[a+32>>2];c=(c|0)<0?c:K[a+28|0]?c:0;d=(c|0)<0;m=BW(J[b>>2]);if(!d&(c| +0)<(m|0))break c;if(!d)g:{d=0;e=fc-80|0;fc=e;i=a+12|0;h:{i:{j:{k:{l:{l=c-m|0;if(!l){tt(i);J[a+36>>2]=0;break l}m:{c=J[a+16>>2];if((c|0)<=20){if(J[a+36>>2]<=(l|0))break l;while(1){if(!J[a+16>>2]){J[a+36>>2]=0;break l}c=J[a+20>>2];J[e+60>>2]=i;J[e+56>>2]=c;n:{o:{if(!c){J[e+24>>2]=i;J[e+20>>2]=c;break o}d=J[c>>2];if(!d){J[e+24>>2]=i;J[e+20>>2]=c;break n}while(1){f=J[d+8>>2];g=J[f+16>>2];h=J[c+8>>2];k=J[h+16>>2];f=J[f+20>>2];h=J[h+20>>2];if(g>>>0>>0&(f|0)<=(h|0)|(f|0)<(h|0)){J[e+60>>2]=i;J[e+56>>2]= +d;c=d}d=J[d>>2];if(d)continue;break}J[e+24>>2]=i;J[e+20>>2]=c;if(c)break n}J[699344]=0;da(5243,e+20|0,i|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break j}c=J[J[c+8>>2]+8>>2];J[699344]=0;c=_(5517,c|0)|0;d=J[699344];J[699344]=0;p:{if((d|0)!=1){J[a+36>>2]=J[a+36>>2]-c;c=J[e+56>>2];J[e+12>>2]=c;d=J[e+60>>2];J[e+16>>2]=d;if((d|0)==(i|0)?c:0)break p;J[699344]=0;da(5243,e+12|0,i|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break j}break j}d=J[c+8>>2];c=J[d+8>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>> +2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break j;c=J[d+8>>2]}else c=0;J[699344]=0;J[e+32>>2]=c;da(5235,i|0,e+56|0);c=J[699344];J[699344]=0;q:{r:{if((c|0)==1)break r;c=J[J[a>>2]+16>>2];J[699344]=0;da(c|0,a|0,e+32|0);c=J[699344];J[699344]=0;if((c|0)==1)break r;if(J[a+36>>2]<=0){c=0;d=J[a+20>>2];if(d)while(1){f=J[J[d+8>>2]+8>>2];J[699344]=0;f=_(5517,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break r;c=c+f|0;d=J[d>>2];if(d)continue;break}J[a+36>>2]=c}c=J[e+32>>2];J[e+32>>2]=0;if(!c)break q;J[699344]= +0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break q;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break q}break k}a=Z()|0;zc(e+32|0);break a}if(J[a+36>>2]>(l|0))continue;break}break l}J[699344]=0;f=ha(5368,e+32|0,2412952,0,c-1|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;s:{t:{u:{v:{c=J[a+20>>2];if(c)while(1){g=J[c+8>>2];J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;g=J[699344];J[699344]=0;if((g|0)==1)break h;g=J[c+8>>2];J[e+28>>2]=g;J[g+28>>2]=i;J[g+24>>2]=c;if(!(J[f+ +16>>2]<=(d|0)&J[f+20>>2]>=(d|0))){J[699344]=0;a=ja(5178,e+56|0,2394577,2386433,619,2416504,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break v;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;c=Z()|0;Kc(a);break u}J[J[f+4>>2]+(d-J[f+8>>2]<<2)>>2]=g;J[699344]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;k=J[699344];J[699344]=0;if((k|0)==1)break k;if(!h){J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break k}d=d+1|0;c=J[c>>2];if(c)continue;break}c=J[f+16>>2];if((c|0)<=0){d=J[f+20>>2]; +if((d|0)>=0)break t}J[699344]=0;a=ja(5178,e+56|0,2394577,2386433,619,2416504,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break s;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;break i}c=Z()|0}zc(e+28|0);Hd(f);ba(c|0);B()}g=J[f+4>>2];h=J[f+8>>2];J[699344]=0;ia(5518,g-(h<<2)|0,(d-c|0)+1|0,4,5519);c=J[699344];J[699344]=0;if((c|0)==1)break s;d=J[f+20>>2];c=J[f+16>>2];w:{if(((d-c|0)+1|0)<=0)break w;g=0;while(1){if(J[a+36>>2]<=(l|0))break w;if(!((c|0)<=(g|0)&(d|0)>=(g|0))){J[699344]=0; +a=ja(5178,e+56|0,2394577,2386433,619,2416504,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;break i}c=J[J[f+4>>2]+(g-J[f+8>>2]<<2)>>2];d=J[c+8>>2];J[699344]=0;d=_(5517,d|0)|0;h=J[699344];J[699344]=0;x:{y:{if((h|0)!=1){J[a+36>>2]=J[a+36>>2]-d;d=J[c+8>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break h;d=J[c+8>>2]}else d=0;J[699344]=0;J[e+56>>2]=d;da(5235,i|0,c+24|0);c=J[699344];J[699344]=0;if((c| +0)==1)break y;c=J[J[a>>2]+16>>2];J[699344]=0;da(c|0,a|0,e+56|0);c=J[699344];J[699344]=0;if((c|0)==1)break y;if(J[a+36>>2]<=0){c=0;d=J[a+20>>2];if(d)while(1){h=J[J[d+8>>2]+8>>2];J[699344]=0;h=_(5517,h|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break y;c=c+h|0;d=J[d>>2];if(d)continue;break}J[a+36>>2]=c}c=J[e+56>>2];J[e+56>>2]=0;if(!c)break x;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h=J[699344];J[699344]=0;if((h|0)!=1){if(d)break x;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break x}break k}break h}a= +Z()|0;zc(e+56|0);Hd(f);break a}g=g+1|0;d=J[f+20>>2];c=J[f+16>>2];if((g|0)<((d-c|0)+1|0))continue;break}}Hd(f);break l}break h}B()}fc=e+80|0;break g}ea(0)|0;Bc();B()}ba(Z()|0);B()}b=Z()|0;Kc(a);Hd(f);ba(b|0);B()}a=Z()|0;Hd(f);break a}d=vc(32);J[d>>2]=2416460;J[d+4>>2]=0;c=0;z:{A:{B:{e=J[b>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break B;c=J[b>>2]}e=d+8|0;J[e>>2]=c;J[699344]=0;c=ZP();f=jc;i=J[699344];J[699344]=0;if((i|0)==1){c=Z()|0;zc(e);break A}J[d+24>>2]=0; +J[d+28>>2]=0;J[d+16>>2]=c;J[d+20>>2]=f;J[j+12>>2]=0;vd(j+12|0,d);J[699344]=0;c=_(4,12)|0;d=J[699344];J[699344]=0;C:{if((d|0)==1)break C;J[c>>2]=0;J[c+4>>2]=0;d=J[j+12>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break C;d=J[j+12>>2]}else d=0;J[c+8>>2]=d;J[699344]=0;vf(a+12|0,c);c=J[699344];J[699344]=0;if((c|0)==1)break C;c=J[j+12>>2];J[j+12>>2]=0;D:{if(!c)break D;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break z;if(d)break D;J[699344]= +0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break z}J[a+36>>2]=J[a+36>>2]+m;kc[J[J[a>>2]+8>>2]](a,b);break c}a=Z()|0;zc(j+12|0);break a}c=Z()|0}uc(nd(d));ba(c|0);B()}break b}fc=j+16|0;return}ea(0)|0;Bc();B()}ba(a|0);B()}function ohb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a=fc-320|0;fc=a;J[b>>2]=1;J[b+504>>2]=0;q=al(J[b+96>>2],240425,1);J[b+488>>2]=q;n=go(J[J[b+96>>2]+4>>2],240575);J[b+492>>2]=n;a:{if(!n){f=11;break a}h=J[b+100>> +2];g=a+4|0;Ac(g,0,304);s=b,t=he(h,12,a),J[s+496>>2]=t;b:{if(J[a>>2])break b;J[b+500>>2]=12;f=J[b+104>>2];kc[J[J[n+4>>2]>>2]](g,0,0,h);H[a+88|0]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+76>>2]=f;g=yd(f,0);J[a+308>>2]=g;c:{d:{if(g)break d;g=af(f,17);J[a+308>>2]=g;if(g)break d;if(dd(J[f+32>>2],241076,17)){g=2;J[a+308>>2]=2;ve(f);break d}ve(f);g=yd(f,0);J[a+308>>2]=g;if(g)break d;i=J[f+4>>2];e:{if(!J[f+20>>2]){g=J[f+8>>2];j=J[f>>2];H[a+88|0]=1;J[a+84>>2]=i;J[a+80>>2]=g+j;g=kg(f,i);J[a+308>>2]=g;if(g)break d;i= +J[a+84>>2];break e}j=he(h,i,a+308|0);J[a+80>>2]=j;g=J[a+308>>2];if(g)break d;g=zg(f,j,i);J[a+308>>2]=g;if(g)break d;J[a+84>>2]=i}h=J[a+80>>2];J[a+8>>2]=h;J[a>>2]=0;break c}if(K[a+88|0]){J[a>>2]=g;break b}f=J[a+80>>2];if(f)kc[J[h+8>>2]](h,f);h=0;J[a+80>>2]=0;f=J[a+308>>2];J[a>>2]=f;if(f)break b;i=J[a+84>>2]}J[a+16>>2]=0;J[a+4>>2]=h;g=i+h|0;J[a+12>>2]=g;kc[J[a+32>>2]](a+4|0);f:{g:{h:{f=J[a+4>>2];if(g>>>0>f>>>0){o=b+132|0;m=b+164|0;p=b+464|0;while(1){i:{j:{i=K[f|0];if(!((i|0)!=70|g>>>0<=f+25>>>0)){if(ud(f, +241222,13))break j;f=a+4|0;kc[J[a+36>>2]](f);kc[J[a+32>>2]](f);h=J[a+4>>2];f=h;k:{if(g>>>0<=f>>>0)break k;while(1){l:{if(!(K[f|0]!=107|g>>>0<=f+5>>>0))if(!ud(f,241371,5))break l;i=a+4|0;kc[J[a+36>>2]](i);f=J[a+16>>2];if(f)break h;kc[J[a+32>>2]](i);f=J[a+4>>2];if(g>>>0>f>>>0)continue;break k}break}f=a+4|0;kc[J[a+36>>2]](f);kc[J[a+60>>2]](f,a+308|0);h=J[a+316>>2]==3?J[a+4>>2]:h}J[a+4>>2]=h;break i}if((i|0)!=47|g>>>0<=f+2>>>0)break j;i=f+1|0;J[a+4>>2]=i;kc[J[a+36>>2]](a+4|0);f=J[a+16>>2];if(f)break h; +h=J[a+4>>2];if((h|0)==(i|0))break i;k=h-i|0;if(k>>>0>21)break i;f=0;if(g>>>0<=h>>>0)break i;while(1){m:{h=P(f,36);l=h+333216|0;j=J[l>>2];if(!j|K[i|0]!=K[j|0])break m;if((Yc(j)|0)!=(k|0))break m;if(dd(i,j,k))break m;n:{if(f-15>>>0<=3){kc[J[h+333228>>2]](b,a+4|0);f=J[a+16>>2];break n}f=J[h+333224>>2];o:{p:switch(J[h+333220>>2]-2|0){case 0:J[a+308>>2]=m;break o;case 3:J[a+308>>2]=p;break o;default:break p}J[a+308>>2]=o}if(f-9>>>0<=1){f=kc[J[a+72>>2]](a+4|0,l,a+308|0,0,0)|0;break n}f=kc[J[a+68>>2]](a+ +4|0,l,a+308|0,0,0)|0}J[a+16>>2]=f;if(!f)break i;J[a>>2]=f;break b}f=f+1|0;if((f|0)!=20)continue;break}break i}kc[J[a+36>>2]](a+4|0);f=J[a+16>>2];if(f)break h}kc[J[a+32>>2]](a+4|0);f=J[a+4>>2];if(g>>>0>f>>>0)continue;break}}f=J[a+16>>2];J[a>>2]=f;if(f)break b;if(K[b+437|0]!=42){J[a>>2]=2;break b}h=J[a+148>>2];J[b+420>>2]=h;if(!J[a+216>>2])J[a>>2]=3;i=0;J[a+216>>2]=0;J[b+396>>2]=J[a+204>>2];J[b+428>>2]=J[a+228>>2];J[b+432>>2]=J[a+232>>2];J[b+400>>2]=J[a+152>>2];J[b+424>>2]=J[a+176>>2];J[a+176>>2]=0; +J[a+152>>2]=0;if(J[b+368>>2]!=1)break b;j=0;k=J[a+112>>2];if((k|0)<=0)break f;g=0;if((h|0)<=0)break g;while(1){l=g<<2;o=J[l+J[a+120>>2]>>2];p=g<<1;I[p+J[b+384>>2]>>1]=0;J[l+J[b+388>>2]>>2]=240997;q:{if(!o)break q;r=J[b+424>>2];f=0;while(1){m=J[(f<<2)+r>>2];if(Ic(o,m)){f=f+1|0;if((h|0)!=(f|0))continue;break q}break}I[p+J[b+384>>2]>>1]=f;J[l+J[b+388>>2]>>2]=m;if(!Ic(240997,m))break q;j=(g|0)<(j|0)?j:g+1|0;i=(g|0)<(i|0)?g:i}g=g+1|0;if((k|0)!=(g|0))continue;break}break f}J[a>>2]=f;break b}h=0;f=0;if(k>>> +0>=4){i=k&-4;while(1){I[J[b+384>>2]+(f<<1)>>1]=0;J[J[b+388>>2]+(f<<2)>>2]=240997;j=f|1;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=240997;j=f|2;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=240997;j=f|3;I[J[b+384>>2]+(j<<1)>>1]=0;J[J[b+388>>2]+(j<<2)>>2]=240997;f=f+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}g=k&3;if(!g){i=0;j=0;break f}while(1){i=0;I[J[b+384>>2]+(f<<1)>>1]=0;J[J[b+388>>2]+(f<<2)>>2]=240997;f=f+1|0;j=0;h=h+1|0;if((g|0)!=(h|0))continue;break}}J[b+380>>2]=j;J[b+376>>2]= +i;J[b+372>>2]=J[a+92>>2]}f=J[a+144>>2];if(f)kc[f|0](a+96|0);f=J[a+252>>2];if(f)kc[f|0](a+204|0);f=J[a+200>>2];if(f)kc[f|0](a+152|0);f=J[a+304>>2];if(f)kc[f|0](a+256|0);if(!K[a+88|0]){f=J[a+20>>2];g=J[a+80>>2];if(g)kc[J[f+8>>2]](f,g);J[a+80>>2]=0}f=J[a+28>>2];if(f)kc[f|0](a+4|0);f=J[a>>2];if(f|(c|0)<0)break a;f=6;if(c&65535)break a;J[b+36>>2]=0;J[b+4>>2]=0;J[b+24>>2]=240783;J[b+16>>2]=J[b+420>>2];c=J[b+144>>2];J[b+20>>2]=c;J[b+8>>2]=J[b+8>>2]|(K[b+156|0]?533:529)|2048;r:{if(c){f=J[b+140>>2];if(!f)break r; +h=K[f|0];if(!h)break r;while(1){i=h&255;g=K[c|0];s:{if((i|0)==(g|0)){f=f+1|0;c=c+1|0;break s}i=i-32|0;if(!(!i|(i|0)==13)){t:switch(g-32|0){case 0:case 13:c=c+1|0;break s;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break r;default:break t}if(g)break r;J[b+24>>2]=f;break r}f=f+1|0}h=K[f|0];if(h)continue;break}break r}c=J[b+364>>2];if(!c)break r;J[b+20>>2]=c}J[b+28>>2]=0;J[b+32>>2]=0;J[a+4>>2]=9;s=a,t=wh(J[J[b+96>>2]+4>>2],240878),J[s+24>>2]=t;J[a+8>>2]=J[b+ +496>>2];J[a+12>>2]=J[b+500>>2];if(d){J[a+32>>2]=e;J[a+28>>2]=d;J[a+4>>2]=25}f=aE(J[J[b+96>>2]+4>>2],a+4|0,0,b+504|0);if(f)break a;$7(J[J[b+504>>2]+88>>2]);c=J[b+504>>2];d=J[c+56>>2];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=d;d=J[c+64>>2];J[b+60>>2]=J[c+60>>2];J[b+64>>2]=d;I[b+68>>1]=L[c+68>>1];I[b+70>>1]=L[c+70>>1];I[b+72>>1]=L[c+72>>1];I[b+74>>1]=L[c+74>>1];I[b+76>>1]=L[c+76>>1];I[b+78>>1]=L[c+78>>1];I[b+80>>1]=L[b+158>>1];I[b+82>>1]=L[b+160>>1];d=J[b+152>>2]!=0;J[b+12>>2]=d;if(K[c+12|0]&2)J[b+12>>2]=d| +2;if(K[c+8|0]&32)J[b+8>>2]=J[b+8>>2]|32;if(!q){f=0;break a}c=J[n+32>>2];J[a+4>>2]=b;J[a+8>>2]=1970170211;J[a+12>>2]=65539;f=bl(J[c+12>>2],0,a+4|0,0);u:{if(!f)break u;d=f&255;if((d|0)==163)break u;if((d|0)!=7)break a}I[a+12>>1]=7;f=0;v:{w:switch(J[b+368>>2]-1|0){case 1:I[a+14>>1]=0;J[a+8>>2]=1094995778;break v;case 3:I[a+14>>1]=1;J[a+8>>2]=1094992453;c=c+4|0;break v;case 0:I[a+14>>1]=2;J[a+8>>2]=1094992451;c=c+8|0;break v;case 2:break w;default:break a}c=c+12|0;I[a+14>>1]=3;J[a+8>>2]=1818326065}b= +J[c>>2];if(!b)break a;f=bl(b,0,a+4|0,0)}fc=a+320|0;return f|0}function qFa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0;a:{if(K[a+352|0]|!c)break a;f=J[a+24>>2];while(1){if(!f){J[a+16>>2]=0;i=0;q=0;g=fc-1344|0;fc=g;e=J[a+48>>2];d=1;while(1){d=Wv(e,(J[e+20>>2]>>>1|0)+32768|0)|d<<1;if((d|0)<16777216)continue;break}d=d-16777216|0;J[a+24>>2]=d;b:{c:{d:{e:{f:{g:{if(!d){d=0;break g}if(d>>>0>=4194305){a=Qc(g+32|0,2394557, +2385927,230,2395680,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;break c}h:{if((d|0)<=J[a+20>>2])break h;J[a+20>>2]=d;if(!J[a+36>>2])break h;xe(a+40|0,0,1)}if(!J[a+36>>2])xe(a+40|0,J[a+20>>2],1);if(Wv(e,(J[e+20>>2]>>>1|0)+32768|0))q=Wv(e,(J[e+20>>2]>>>1|0)+32768|0)?2:1;d=g+1088|0;xc(d,2395728,256);J[g+1080>>2]=0;J[g+1084>>2]=0;J[g+1072>>2]=0;J[g+1076>>2]=0;i:{j:{if(J[a+24>>2]<=0)break j;x=a+185|0;t=a+184|0;y=a+121|0;u=a+120|0;k=a+88|0;l=a+72|0;o=a- -64|0;r=a+60|0;s=a+58| +0;z=a+55|0;A=a+52|0;f=3;C=d|3;D=d|4;m=-1;j=4;while(1){k:{l:{h=(f|0)>=2?2:f;d=h+A|0;f=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;m:{if(f>>>0<=M[e+28>>2]){J[e+20>>2]=f;d=H[d|0]&1;break m}d=qh(e,d,f)}n:{if(d){f=0;d=K[g+1088|0];break n}d=h+z|0;f=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;o:{if(f>>>0<=M[e+28>>2]){J[e+20>>2]=f;d=H[d|0]&1;break o}d=qh(e,d,f)}if(d){f=1;d=K[g+1089|0];break n}f=1;d=J[(e+(K[s|0]<<2)|0)+44>>2]+J[e+20>>2]|0;p:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[s|0]&1;break p}d=qh(e,s,d)}if(d){while(1){d= +f+s|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;q:{if(h>>>0<=M[e+28>>2]){J[e+20>>2]=h;d=H[d|0]&1;break q}d=qh(e,d,h)}f=d|f<<1;if((f|0)<2)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[r|0]<<2)|0)+44>>2]+J[e+20>>2]|0;r:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[r|0]&1;break r}d=qh(e,r,d)}if(d){while(1){d=f+r|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;s:{if(h>>>0<=M[e+28>>2]){J[e+20>>2]=h;d=H[d|0]&1;break s}d=qh(e,d,h)}f=d|f<<1;if((f|0)<4)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[o|0]<< +2)|0)+44>>2]+J[e+20>>2]|0;t:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[o|0]&1;break t}d=qh(e,o,d)}if(d){while(1){d=f+o|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;u:{if(h>>>0<=M[e+28>>2]){J[e+20>>2]=h;d=H[d|0]&1;break u}d=qh(e,d,h)}f=d|f<<1;if((f|0)<8)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[l|0]<<2)|0)+44>>2]+J[e+20>>2]|0;v:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[l|0]&1;break v}d=qh(e,l,d)}if(d){while(1){d=f+l|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;w:{if(h>>>0<=M[e+28>>2]){J[e+20>> +2]=h;d=H[d|0]&1;break w}d=qh(e,d,h)}f=d|f<<1;if((f|0)<16)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[k|0]<<2)|0)+44>>2]+J[e+20>>2]|0;x:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[k|0]&1;break x}d=qh(e,k,d)}if(d){while(1){d=f+k|0;h=J[(e+(K[d|0]<<2)|0)+44>>2]+J[e+20>>2]|0;y:{if(h>>>0<=M[e+28>>2]){J[e+20>>2]=h;d=H[d|0]&1;break y}d=qh(e,d,h)}f=d|f<<1;if((f|0)<32)continue;break}d=K[(g+1088|0)+f|0];break n}d=J[(e+(K[u|0]<<2)|0)+44>>2]+J[e+20>>2]|0;z:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[u|0]&1;break z}d= +qh(e,u,d)}if(d){f=BX(e,y,6)- -64|0;d=K[f+(g+1088|0)|0];break n}d=J[(e+(K[t|0]<<2)|0)+44>>2]+J[e+20>>2]|0;A:{if(d>>>0<=M[e+28>>2]){J[e+20>>2]=d;d=H[t|0]&1;break A}d=qh(e,t,d)}if(!d)break l;f=BX(e,x,7)+128|0;d=K[f+(g+1088|0)|0]}H[J[a+36>>2]+i|0]=d;j=(j>>q)+j|0;if((j|0)>=268435457){J[g+1072>>2]=K[g+1075|0];J[g+1076>>2]=K[g+1079|0];J[g+1080>>2]=K[g+1083|0];J[g+1084>>2]=K[g+1087|0];j=j>>>24|0}B:{C:{if((f|0)>=4){cd(D,C,f-3|0);d=3;h=j;break C}h=J[(g+1072|0)+(f<<2)>>2]+j|0;d=f;if((d|0)<=0)break B}while(1){p= +g+1072|0;n=d-1|0;v=J[p+(n<<2)>>2];if(v>>>0>h>>>0)break B;J[p+(d<<2)>>2]=v;p=g+1088|0;H[p+d|0]=K[n+p|0];p=d>>>0>1;d=n;if(p)continue;break}d=0}n=K[J[a+36>>2]+i|0];J[(g+1072|0)+(d<<2)>>2]=h;H[(g+1088|0)+d|0]=n;break k}H[J[a+36>>2]+i|0]=0;f=256;m=i}i=i+1|0;d=J[a+24>>2];if((i|0)<(d|0))continue;break}if((m|0)<=0)break j;if((d|0)>(m|0))break i}a=Qc(g+32|0,2394557,2385927,362,2395680,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;break c}n=sh(g+1060|0,g+1068|0,J[a+20>>2],4);d=0;Ac(J[g+ +1068>>2],0,J[a+24>>2]<<2);Ac(g+32|0,0,1024);f=J[a+36>>2];j=J[g+1068>>2];if((m|0)!=1){e=m&-2;i=0;while(1){q=g+32|0;k=K[d+f|0];l=q+(k<<2)|0;h=J[l>>2];J[j+(d<<2)>>2]=h&16777215|k<<24;J[l>>2]=h+1;k=d|1;l=K[k+f|0];o=(l<<2)+q|0;h=J[o>>2];J[j+(k<<2)>>2]=h&16777215|l<<24;J[o>>2]=h+1;d=d+2|0;i=i+2|0;if((e|0)!=(i|0))continue;break}}if(m&1){i=K[d+f|0];h=(g+32|0)+(i<<2)|0;f=J[h>>2];J[j+(d<<2)>>2]=f&16777215|i<<24;J[h>>2]=f+1}f=1;d=m+1|0;j=J[a+24>>2];if((d|0)<(j|0)){h=J[a+36>>2];e=J[g+1068>>2];while(1){j=K[d+ +h|0];k=(g+32|0)+(j<<2)|0;i=J[k>>2];J[e+(d<<2)>>2]=i&16777215|j<<24;J[k>>2]=i+1;d=d+1|0;j=J[a+24>>2];if((d|0)<(j|0))continue;break}}i=0;while(1){d=i<<2;h=g+32|0;e=d+h|0;k=J[e>>2];J[e>>2]=f;e=h+(d|4)|0;l=J[e>>2];f=f+k|0;J[e>>2]=f;e=h+(d|8)|0;k=J[e>>2];f=f+l|0;J[e>>2]=f;d=h+(d|12)|0;h=J[d>>2];e=d;d=f+k|0;J[e>>2]=d;f=d+h|0;i=i+4|0;if((i|0)!=256)continue;break}f=0;D:{if((j|0)<2)break D;d=j-1|0;h=d&1;if((j|0)!=2){j=d&-2;i=0;while(1){f=J[J[g+1068>>2]+(f<<2)>>2];e=f>>>24|0;H[(J[a+36>>2]+d|0)-1|0]=e;d=d-2| +0;f=J[(J[g+1068>>2]+(J[(g+32|0)+(e<<2)>>2]<<2)|0)+((f&16777215)<<2)>>2];e=f>>>24|0;H[d+J[a+36>>2]|0]=e;f=J[(g+32|0)+(e<<2)>>2]+(f&16777215)|0;i=i+2|0;if((j|0)!=(i|0))continue;break}}if(!h)break D;h=(J[a+36>>2]+d|0)-1|0;d=J[J[g+1068>>2]+(f<<2)>>2];f=d>>>24|0;H[h|0]=f;f=J[(g+32|0)+(f<<2)>>2]+(d&16777215)|0}if((f|0)!=(m|0)){J[699344]=0;a=ja(5178,g+8|0,2394557,2385927,404,2395680,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;d=Z()| +0;Kc(a);break d}d=J[a+24>>2];hd(n)}fc=g+1344|0;break b}B()}d=Z()|0}hd(n);ba(d|0);B()}b=Z()|0;Kc(a);ba(b|0);B()}f=J[a+24>>2];E:{if(d)break E;H[a+352|0]=1;f=1}d=f;f=d-1|0;J[a+24>>2]=f}i=J[a+16>>2];d=(c|0)>(f|0)?f:c;if(!(!b|!d)){b=xc(b,J[a+36>>2]+i|0,d)+d|0;i=J[a+16>>2];f=J[a+24>>2]}J[a+16>>2]=d+i;f=f-d|0;J[a+24>>2]=f;J[a+12>>2]=d+J[a+12>>2];w=d+w|0;c=c-d|0;if(!c)break a;if(!K[a+352|0])continue;break}}return w|0}function RAa(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;g=fc-48|0;fc=g;a:{b:{c:{d:{e:{f:{if(!K[b+144|0]){a=Qc(g+24|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;Kc(a);ba(b|0);B()}n=b+48|0;d=J[b+48>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;J[a>>2]=J[n>>2];break b}m=b+72|0;h=ql(m);g:{h:{d=J[J[c+12>>2]+((h>>>0)%M[c+8>>2]<<2)>>2];i:{if(d)while(1){if((h|0)==J[d+12>>2])if(Bm(d+16|0,m))break i;d=J[d+8>>2];if(d)continue;break}p=ew(c,m),q=0,J[p+52>>2]=q;d=g+20|0;Fn(d,J[b+108>>2]);J[g+12>>2]=0;J[g+16>> +2]=J[685894];J[699344]=0;da(5278,g+8|0,d|0);d=J[699344];J[699344]=0;j:{k:{l:{m:{n:{o:{p:{q:{if((d|0)!=1){J[699344]=0;j=J[g+8>>2];d=ha(5279,j|0,g+12|0,0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break q;if(d)break n;J[699344]=0;d=ja(5178,g+24|0,J[685886],2386059,1541,2415609,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break p;J[699344]=0;$(5179,d|0);h=J[699344];J[699344]=0;if((h|0)!=1)break f;e=ea(2423616)|0;h=gc;Kc(d);break o}e=Z()|0;break c}e=Z()|0;break d}e=ea(2423616)|0;h=gc}if((sa(2423616)|0)!=(h| +0))break d;d=oa(e|0)|0;h=J[J[b>>2]+64>>2];J[699344]=0;ca(h|0,b|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break m;J[699344]=0;ka(5053);d=J[699344];J[699344]=0;if((d|0)!=1)break n;e=Z()|0;break d}d=0;f=J[b+132>>2]<=1?-1:J[b+140>>2];if(!f)break l;J[699344]=0;e=g+12|0;k=ha(5279,j|0,e|0,0,0)|0;i=J[699344];J[699344]=0;h=0;r:{s:{t:{if((i|0)==1)break t;if(!k)break l;J[699344]=0;k=pd(e,2412061,-1);i=J[699344];J[699344]=0;h=1;if((i|0)==1)break t;if(!k)break s;J[699344]=0;k=pd(e,2394278,-1);i=J[699344];J[699344]= +0;if((i|0)==1)break t;J[699344]=0;$(5468,j|0);i=J[699344];J[699344]=0;if((i|0)==1)break t;d=1;if((f|0)==1)break l;J[699344]=0;i=ha(5279,j|0,e|0,0,0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break t;if(!i)break l;J[699344]=0;i=pd(e,2412061,-1);l=J[699344];J[699344]=0;h=2;if((l|0)==1)break t;if(!i)break s;J[699344]=0;i=pd(e,2394278,-1);e=J[699344];J[699344]=0;if((e|0)==1)break t;J[699344]=0;$(5468,j|0);e=J[699344];J[699344]=0;if((e|0)==1)break t;e=f-2|0;k=!i|!k;while(1){d=h;if(!e){d=f;break l}J[699344]= +0;h=ha(5279,j|0,g+12|0,0,0)|0;i=J[699344];J[699344]=0;u:{if((i|0)==1){h=d;break u}if(!h)break l;J[699344]=0;i=g+12|0;l=pd(i,2412061,-1);o=J[699344];J[699344]=0;h=d+1|0;if((o|0)==1)break u;if(!l)break s;J[699344]=0;i=pd(i,2394278,-1);l=J[699344];J[699344]=0;if((l|0)==1)break u;k=i?k:1;if(!(k|K[J[b+108>>2]+8|0])){e=0;J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break j;e=ea(2423616)|0;f=gc;break r}e=e-1|0;J[699344]=0;$(5468,j|0);i=J[699344];J[699344]=0;if((i|0)!=1)continue}break}e= +ea(2423616)|0;f=gc;break r}e=ea(2423616)|0;f=gc;break r}J[699344]=0;k=_(4,128)|0;f=J[699344];J[699344]=0;v:{w:{x:{y:{z:{A:{if((f|0)==1)break A;J[699344]=0;f=aa(5394,k|0,m|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break v;J[699344]=0;J[g+24>>2]=0;aa(5145,g+24|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break A;J[699344]=0;f=J[g+24>>2];J[g+4>>2]=0;aa(5145,g+4|0,j|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break y;J[699344]=0;da(5498,f|0,J[g+4>>2]);f=J[699344];J[699344]=0;if((f|0)==1)break x;f=J[g+4>> +2];J[g+4>>2]=0;B:{if(!f)break B;J[699344]=0;e=J[f+4>>2]-1|0;J[f+4>>2]=e;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(e)break B;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}J[699344]=0;aa(5153,n|0,g+24|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break z;h=J[g+24>>2];J[g+24>>2]=0;if(!h)break l;J[699344]=0;f=J[h+4>>2]-1|0;J[h+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)!=1){if(f)break l;J[699344]=0;$(5147,h|0);h=J[699344];J[699344]=0;if((h|0)!=1)break l}break a}e=ea(2423616)|0;f=gc; +break r}e=ea(2423616)|0;f=gc;break w}e=ea(2423616)|0;f=gc;break w}e=ea(2423616)|0;f=gc;zc(g+4|0)}zc(g+24|0);break r}e=ea(2423616)|0;f=gc;uc(k)}if((sa(2423616)|0)!=(f|0))break d;e=oa(e|0)|0;J[699344]=0;j=En(e,J[685886]);m=J[699344];J[699344]=0;f=1;if((m|0)==1)break m;if(!j){f=J[b+132>>2];if(J[b+140>>2]<0)J[b+140>>2]=(f|0)>2?h:d;f=(f|0)<2}d=J[J[b>>2]+64>>2];J[699344]=0;ca(d|0,b|0,e|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break m;J[699344]=0;ka(5053);d=J[699344];J[699344]=0;if((d|0)!=1)break k;e= +Z()|0;break d}e=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break d;break a}if(J[b+48>>2]|J[b+140>>2]>=0)break k;J[b+140>>2]=d}d=J[b+108>>2];J[699344]=0;da(5269,d|0,1);d=J[699344];J[699344]=0;C:{D:{if((d|0)==1)break D;d=J[n>>2];if(!d)break C;e=0;J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break D;J[a>>2]=J[n>>2];break j}e=Z()|0;break d}if(!K[b+144|0]){J[699344]=0;a=ja(5178,g+24|0,2394631,2386059,164,2414168,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e; +J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;e=Z()|0;Kc(a);break d}J[699344]=0;d=J[b+148>>2];h=J[699344];J[699344]=0;if((h|0)==1)break e;if(!(d&64)){J[699344]=0;$(5449,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}J[699344]=0;h=aa(5201,g+24|0,b+112|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;d=J[h+8>>2];E:{if(d)while(1){f=J[d+8>>2];J[699344]=0;ca(5509,a|0,f|0,c|0);f=J[699344];J[699344]=0;F:{if((f|0)!=1){if(!J[a>>2])break F;e=0;break E}break h}J[a>>2]=0;d=J[d>>2];if(d)continue; +break}b=J[b+108>>2];J[699344]=0;e=1;da(5269,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break h}id(h)}b=J[g+8>>2];J[g+8>>2]=0;G:{if(!b)break G;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break G;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}wc(g+12|0);b=J[g+20>>2];J[g+20>>2]=0;H:{if(!b)break H;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break g;if(c)break H;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]= +0;if((b|0)==1)break g}if(!e)break b}J[a>>2]=0;vd(a,0);break b}e=Z()|0;id(h);break d}ea(0)|0;Bc()}B()}e=Z()|0}zc(g+8|0)}wc(g+12|0);zc(g+20|0);ba(e|0);B()}fc=g+48|0;return}ea(0)|0;Bc();B()}function cva(){var a=0,b=0,c=0,d=0,e=0,f=0,g=0;d=fc+-64|0;fc=d;if(!K[2794116]){J[698526]=0;J[698527]=0;J[698524]=0;J[698525]=0;J[698522]=0;J[698523]=0;J[698528]=0;Co(2794088,2401340);H[2794116]=1}a:{b:{c:{d:{e:{f:{g:{h:{if(J[698523])break h;c=Dn(d+52|0,60);J[699344]=0;b=aa(5149,d+44|0,2398363)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break b;J[699344]=0;e=aa(5338,2794088,b|0)|0;a=J[699344];J[699344]=0;i:{j:{if((a|0)!=1){a=J[c>>2];if(!a)break j;f=J[J[a>>2]+28>>2];J[699344]=0;ca(f|0,d+36|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break i}break e}J[d+36>>2]=0}J[699344]=0;aa(5153,e+24|0,d+36|0)|0;a=J[699344];J[699344]=0;k:{if((a|0)!=1){a=J[d+36>>2];J[d+36>>2]=0;if(!a)break k;J[699344]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break k;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a| +0)!=1)break k}break d}a=Z()|0;zc(d+36|0);break c}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2743576)>>2];a=J[b>>2];J[b>>2]=0;l:{if(!a)break l;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break d;if(b)break l;J[699344]=0;$(5147,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break d}b=J[c>>2];J[c>>2]=0;m:{if(!b)break m;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[699344];J[699344]=0;if((a|0)==1)break d;if(c)break m;J[699344]=0;$(5147,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d}c= +Dn(d+52|0,62);J[699344]=0;b=aa(5149,d+36|0,2398672)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[699344]=0;e=aa(5338,2794088,b|0)|0;a=J[699344];J[699344]=0;n:{o:{if((a|0)!=1){a=J[c>>2];if(!a)break o;f=J[J[a>>2]+28>>2];J[699344]=0;ca(f|0,d+28|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break n}break e}J[d+28>>2]=0}J[699344]=0;aa(5153,e+24|0,d+28|0)|0;a=J[699344];J[699344]=0;p:{if((a|0)!=1){a=J[d+28>>2];J[d+28>>2]=0;if(!a)break p;J[699344]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[699344];J[699344]=0;if((g| +0)!=1){if(f)break p;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break p}break d}a=Z()|0;zc(d+28|0);break c}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2743576)>>2];a=J[b>>2];J[b>>2]=0;q:{if(!a)break q;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break d;if(b)break q;J[699344]=0;$(5147,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break d}b=J[c>>2];J[c>>2]=0;r:{if(!b)break r;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[699344];J[699344]=0;if((a|0)==1)break d;if(c)break r; +J[699344]=0;$(5147,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d}c=Dn(d+52|0,38);J[699344]=0;b=aa(5149,d+28|0,2398981)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[699344]=0;e=aa(5338,2794088,b|0)|0;a=J[699344];J[699344]=0;s:{t:{if((a|0)!=1){a=J[c>>2];if(!a)break t;f=J[J[a>>2]+28>>2];J[699344]=0;ca(f|0,d+20|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break s}break e}J[d+20>>2]=0}J[699344]=0;aa(5153,e+24|0,d+20|0)|0;a=J[699344];J[699344]=0;u:{if((a|0)!=1){a=J[d+20>>2];J[d+20>>2]=0;if(!a)break u; +J[699344]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break u;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break u}break d}a=Z()|0;zc(d+20|0);break c}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2743576)>>2];a=J[b>>2];J[b>>2]=0;v:{if(!a)break v;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break d;if(b)break v;J[699344]=0;$(5147,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break d}b=J[c>>2];J[c>>2]=0;w:{if(!b)break w;J[699344]=0;c=J[b+4>> +2]-1|0;J[b+4>>2]=c;a=J[699344];J[699344]=0;if((a|0)==1)break d;if(c)break w;J[699344]=0;$(5147,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d}c=Dn(d+52|0,39);J[699344]=0;b=aa(5149,d+20|0,2399199)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[699344]=0;e=aa(5338,2794088,b|0)|0;a=J[699344];J[699344]=0;x:{y:{if((a|0)!=1){a=J[c>>2];if(!a)break y;f=J[J[a>>2]+28>>2];J[699344]=0;ca(f|0,d+12|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break x}break e}J[d+12>>2]=0}J[699344]=0;aa(5153,e+24|0,d+12|0)|0; +a=J[699344];J[699344]=0;z:{if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;if(!a)break z;J[699344]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break z;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break z}break d}a=Z()|0;zc(d+12|0);break c}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2743576)>>2];a=J[b>>2];J[b>>2]=0;A:{if(!a)break A;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break d;if(b)break A;J[699344]=0;$(5147,a|0);b=J[699344];J[699344]= +0;if((b|0)==1)break d}b=J[c>>2];J[c>>2]=0;B:{if(!b)break B;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a=J[699344];J[699344]=0;if((a|0)==1)break d;if(c)break B;J[699344]=0;$(5147,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d}b=Dn(d+52|0,34);J[699344]=0;c=aa(5149,d+12|0,2399514)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;e=aa(5338,2794088,c|0)|0;a=J[699344];J[699344]=0;C:{D:{if((a|0)!=1){a=J[b>>2];if(!a)break D;f=J[J[a>>2]+28>>2];J[699344]=0;ca(f|0,d+60|0,a|0,1);a=J[699344];J[699344]= +0;if((a|0)!=1)break C}a=Z()|0;wc(c);break f}J[d+60>>2]=0}J[699344]=0;aa(5153,e+24|0,d+60|0)|0;a=J[699344];J[699344]=0;E:{if((a|0)!=1){a=J[d+60>>2];J[d+60>>2]=0;if(!a)break E;J[699344]=0;f=J[a+4>>2]-1|0;J[a+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break E;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break E}break d}a=Z()|0;zc(d+60|0);wc(c);break f}a=J[e+24>>2];J[e+28>>2]=J[(a?a+12|0:2743576)>>2];a=J[c>>2];J[c>>2]=0;F:{if(!a)break F;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e= +J[699344];J[699344]=0;if((e|0)==1)break d;if(c)break F;J[699344]=0;$(5147,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break d}c=J[b>>2];J[b>>2]=0;if(!c)break h;J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)==1)break d;if(b)break h;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break d}fc=d- -64|0;return}a=Z()|0}wc(b);ba(a|0);B()}d=Z()|0;wc(b);break a}ea(0)|0;Bc();B()}wc(b);wc(c);ba(a|0);B()}d=Z()|0}wc(c);ba(d|0);B()}function Bi(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d| +0;e=e|0;var f=0,g=Q(0);if(uF(a)){if(!(c?b:0)){c=K[43278]|K[43279]<<8|(K[43280]<<16|K[43281]<<24);b=K[43274]|K[43275]<<8|(K[43276]<<16|K[43277]<<24);H[a+125|0]=b;H[a+126|0]=b>>>8;H[a+127|0]=b>>>16;H[a+128|0]=b>>>24;H[a+129|0]=c;H[a+130|0]=c>>>8;H[a+131|0]=c>>>16;H[a+132|0]=c>>>24;c=K[43273]|K[43274]<<8|(K[43275]<<16|K[43276]<<24);b=K[43269]|K[43270]<<8|(K[43271]<<16|K[43272]<<24);H[a+120|0]=b;H[a+121|0]=b>>>8;H[a+122|0]=b>>>16;H[a+123|0]=b>>>24;H[a+124|0]=c;H[a+125|0]=c>>>8;H[a+126|0]=c>>>16;H[a+127| +0]=c>>>24;c=K[43265]|K[43266]<<8|(K[43267]<<16|K[43268]<<24);b=K[43261]|K[43262]<<8|(K[43263]<<16|K[43264]<<24);H[a+112|0]=b;H[a+113|0]=b>>>8;H[a+114|0]=b>>>16;H[a+115|0]=b>>>24;H[a+116|0]=c;H[a+117|0]=c>>>8;H[a+118|0]=c>>>16;H[a+119|0]=c>>>24;c=K[43257]|K[43258]<<8|(K[43259]<<16|K[43260]<<24);b=K[43253]|K[43254]<<8|(K[43255]<<16|K[43256]<<24);H[a+104|0]=b;H[a+105|0]=b>>>8;H[a+106|0]=b>>>16;H[a+107|0]=b>>>24;H[a+108|0]=c;H[a+109|0]=c>>>8;H[a+110|0]=c>>>16;H[a+111|0]=c>>>24;c=K[43249]|K[43250]<<8| +(K[43251]<<16|K[43252]<<24);b=K[43245]|K[43246]<<8|(K[43247]<<16|K[43248]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]=b>>>16;H[a+99|0]=b>>>24;H[a+100|0]=c;H[a+101|0]=c>>>8;H[a+102|0]=c>>>16;H[a+103|0]=c>>>24;c=K[43241]|K[43242]<<8|(K[43243]<<16|K[43244]<<24);b=K[43237]|K[43238]<<8|(K[43239]<<16|K[43240]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[43233]|K[43234]<<8|(K[43235]<<16|K[43236]<<24);b=K[43229]|K[43230]<< +8|(K[43231]<<16|K[43232]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[43225]|K[43226]<<8|(K[43227]<<16|K[43228]<<24);b=K[43221]|K[43222]<<8|(K[43223]<<16|K[43224]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}g=Q(Q(b>>>0)*Q(c>>>0));f=1;a:{if(d>>>0<2)break a;f=4;if(d>>>0<5)break a;f=d>>>0>8?24:8}if(Q(Q(g*Q(f>>>0))*Q(.125))> +Q(1073741824)){b=K[43929]|K[43930]<<8|(K[43931]<<16|K[43932]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]=b>>>16;H[a+99|0]=b>>>24;c=K[43925]|K[43926]<<8|(K[43927]<<16|K[43928]<<24);b=K[43921]|K[43922]<<8|(K[43923]<<16|K[43924]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[43917]|K[43918]<<8|(K[43919]<<16|K[43920]<<24);b=K[43913]|K[43914]<<8|(K[43915]<<16|K[43916]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16; +H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]=c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[43909]|K[43910]<<8|(K[43911]<<16|K[43912]<<24);b=K[43905]|K[43906]<<8|(K[43907]<<16|K[43908]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}d=2;b:{c:switch(f-1|0){case 3:d=16;break b;case 7:d=256;break b;case 0:break b;default:break c}d=0}J[a+44>>2]=d;J[a+12>>2]=40;J[a+68>>2]=e;J[a+28>>2]=0;I[a+26>>1]=f;I[a+24>>1]=1;J[a+20>>2]= +c;J[a+16>>2]=b;b=P(b,f)+31>>>3&536870908;J[a+52>>2]=b;b=P(b,c);J[a+32>>2]=b;b=Dc((b+(J[a+44>>2]<<2)|0)+40|0);J[a+4>>2]=b;if(!b){c=K[44010]|K[44011]<<8|(K[44012]<<16|K[44013]<<24);b=K[44006]|K[44007]<<8|(K[44008]<<16|K[44009]<<24);H[a+102|0]=b;H[a+103|0]=b>>>8;H[a+104|0]=b>>>16;H[a+105|0]=b>>>24;H[a+106|0]=c;H[a+107|0]=c>>>8;H[a+108|0]=c>>>16;H[a+109|0]=c>>>24;c=K[44004]|K[44005]<<8|(K[44006]<<16|K[44007]<<24);b=K[44E3]|K[44001]<<8|(K[44002]<<16|K[44003]<<24);H[a+96|0]=b;H[a+97|0]=b>>>8;H[a+98|0]= +b>>>16;H[a+99|0]=b>>>24;H[a+100|0]=c;H[a+101|0]=c>>>8;H[a+102|0]=c>>>16;H[a+103|0]=c>>>24;c=K[43996]|K[43997]<<8|(K[43998]<<16|K[43999]<<24);b=K[43992]|K[43993]<<8|(K[43994]<<16|K[43995]<<24);H[a+88|0]=b;H[a+89|0]=b>>>8;H[a+90|0]=b>>>16;H[a+91|0]=b>>>24;H[a+92|0]=c;H[a+93|0]=c>>>8;H[a+94|0]=c>>>16;H[a+95|0]=c>>>24;c=K[43988]|K[43989]<<8|(K[43990]<<16|K[43991]<<24);b=K[43984]|K[43985]<<8|(K[43986]<<16|K[43987]<<24);H[a+80|0]=b;H[a+81|0]=b>>>8;H[a+82|0]=b>>>16;H[a+83|0]=b>>>24;H[a+84|0]=c;H[a+85|0]= +c>>>8;H[a+86|0]=c>>>16;H[a+87|0]=c>>>24;c=K[43980]|K[43981]<<8|(K[43982]<<16|K[43983]<<24);b=K[43976]|K[43977]<<8|(K[43978]<<16|K[43979]<<24);H[a+72|0]=b;H[a+73|0]=b>>>8;H[a+74|0]=b>>>16;H[a+75|0]=b>>>24;H[a+76|0]=c;H[a+77|0]=c>>>8;H[a+78|0]=c>>>16;H[a+79|0]=c>>>24;return 0}J[a+8>>2]=(J[a+12>>2]+(b+J[a+32>>2]|0)|0)+(J[a+44>>2]<<2);b=J[a+4>>2];b=b?J[a+44>>2]?b+40|0:0:0;if(b)Ac(b,0,J[a+44>>2]<<2);b=J[a+960>>2];if(b){if(b){uc(b);J[a+960>>2]=0}J[a+376>>2]=0;J[a+380>>2]=0;J[a+372>>2]=J[a+16>>2];J[a+384>> +2]=J[a+20>>2]}if(J[a+964>>2])WE(a);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);b=J[a+4>>2];c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24;d=K[a+48|0]|K[a+49|0]<<8|(K[a+50|0]<<16|K[a+51|0]<<24);c=K[a+44|0]|K[a+45|0]<<8|(K[a+46|0]<<16|K[a+47|0]<<24);H[b+32|0]=c;H[b+33|0]=c>>>8;H[b+34|0]=c>>>16;H[b+35|0]=c>>>24;H[b+36|0]=d;H[b+37|0]=d>>>8;H[b+38|0]=d>>>16;H[b+39|0]=d>>> +24;d=K[a+40|0]|K[a+41|0]<<8|(K[a+42|0]<<16|K[a+43|0]<<24);c=K[a+36|0]|K[a+37|0]<<8|(K[a+38|0]<<16|K[a+39|0]<<24);H[b+24|0]=c;H[b+25|0]=c>>>8;H[b+26|0]=c>>>16;H[b+27|0]=c>>>24;H[b+28|0]=d;H[b+29|0]=d>>>8;H[b+30|0]=d>>>16;H[b+31|0]=d>>>24;d=K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24);c=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);H[b+16|0]=c;H[b+17|0]=c>>>8;H[b+18|0]=c>>>16;H[b+19|0]=c>>>24;H[b+20|0]=d;H[b+21|0]=d>>>8;H[b+22|0]=d>>>16;H[b+23|0]=d>>>24;d=K[a+24|0]|K[a+25|0]<<8|(K[a+ +26|0]<<16|K[a+27|0]<<24);c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]=c>>>16;H[b+11|0]=c>>>24;H[b+12|0]=d;H[b+13|0]=d>>>8;H[b+14|0]=d>>>16;H[b+15|0]=d>>>24;b=J[a+4>>2];d:{if(!b){f=0;b=0;break d}f=J[a+4>>2];b=(b+J[b>>2]|0)+(J[a+44>>2]<<2)|0}J[a+56>>2]=b}return f|0}function Npb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=fc-16|0;fc=g;J[g+4>>2]=0;f=J[e+32>>2];j=J[f+100>>2];a:{b:{c:{d:{if(ud(a,241862,7))break d;e:{c= +K[a+7|0];switch(c|0){case 0:case 9:case 10:case 13:case 32:break e;default:break d}}J[g+12>>2]=0;d=J[f+88>>2];k=d;d=(c?-8:-7)+b|0;h=d+1|0;i=_c(j,1,k,k+h|0,J[f+84>>2],g+12|0);J[f+84>>2]=i;b=J[g+12>>2];if(!b){m=xc(i+J[f+88>>2]|0,c?a+8|0:a+7|0,d)+d|0,n=10,H[m|0]=n;J[f+88>>2]=h+J[f+88>>2];b=J[g+12>>2]}J[g+4>>2]=b;break c}f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{h=J[e>>2];if(!(h&32)){if(ud(a,242605,5))break o;p:switch(K[a+5|0]){case 0:case 9:case 10:case 13:case 32:break p;default:break o}b=dm(e+40|0,242214,a,b); +J[g+4>>2]=b;if(b)break b;b=J[J[e+40>>2]+4>>2];if(!b)break i;a=H[b|0];c=a&255;if(!c|!(K[(c>>>3|0)+254800|0]>>>(a&7)&1))break i;c=0;q:{r:{while(1){if(c>>>0>=429496728){b=f+48|0;a=M[e+60>>2]/20|0;c=e+4|0;break r}c=K[a+254832|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1)continue;break}J[f+48>>2]=c;J[e+4>>2]=c;b=f+48|0;a=M[e+60>>2]/20|0;if(c>>>0<=a>>>0){a=c;break q}c=e+4|0}J[b>>2]=a;J[c>>2]=a}if(!a)break h;if(a>>>0<1114112)break g;b=6;break j}s:{t:{if(ud(a,254998,7))break t; +u:switch(K[a+7|0]){case 0:case 9:case 10:case 13:case 32:break u;default:break t}if(!(h&4032))break s;b=186;break j}v:{if(ud(a,255006,7))break v;w:switch(K[a+7|0]){case 0:case 9:case 10:case 13:case 32:break w;default:break v}J[e+28>>2]=0;J[e>>2]=h&-4033;break f}c=h&64;if(!(!c|J[e+28>>2]!=-1|J[J[e+36>>2]+4>>2]))break f;x:{if(ud(a,255014,9))break x;y:switch(K[a+9|0]){case 0:case 9:case 10:case 13:case 32:break y;default:break x}if(h&4032)break k;c=J[e+24>>2];if(c)kc[J[j+8>>2]](j,c);J[e+24>>2]=0;c= +e+40|0;b=dm(c,242214,a,b);J[g+4>>2]=b;if(b)break b;G8(c);a=F8(c,g+8|0);if(!a)break l;c=J[g+8>>2]+1|0;d=_c(j,1,0,c,0,g+4|0);J[e+24>>2]=d;b=J[g+4>>2];if(b)break b;xc(d,a,c);J[e>>2]=J[e>>2]|64;break f}z:{if(ud(a,255024,8))break z;A:switch(K[a+8|0]){case 0:case 9:case 10:case 13:case 32:break A;default:break z}if(!c)break k;b=dm(e+40|0,242214,a,b);J[g+4>>2]=b;if(b)break b;c=J[e+40>>2];a=E8(J[c+4>>2]);b=(a|0)>=0;a=b?a:-1;J[e+28>>2]=a;if(!(M[e+48>>2]<3|b)){a=E8(J[c+8>>2]);J[e+28>>2]=a}if(a-1114112>>>0<= +4293853182){J[e+28>>2]=-1;break n}if((a|0)<0)break n;b=J[f+52>>2];B:{if((b|0)!=J[f+48>>2]){c=J[f+56>>2];break B}c=_c(j,36,b,b- -64|0,J[f+56>>2],g+4|0);J[f+56>>2]=c;b=J[g+4>>2];if(b)break b;J[f+48>>2]=J[f+48>>2]- -64;b=J[f+52>>2];a=J[e+28>>2]}J[f+52>>2]=b+1;d=J[e+24>>2];b=P(b,36)+c|0;J[b+4>>2]=a;J[b>>2]=d;break m}if(h&128){c=J[e+28>>2]==-1;c=J[f+(c?68:56)>>2]+P(J[f+(c?64:52)>>2],36)|0;if(h&2048){b=J[e+8>>2];if(b>>>0>=L[c-22>>1]){if((h|0)<0)break f;J[e>>2]=h|-2147483648;break f}h=c-24|0;d=c-36|0;c= +J[d+28>>2];b=J[d+24>>2]+P(b,c)|0;f=0;d=c<<1;C:{if(!d){c=0;break C}D:{while(1){c=f;i=K[f+a|0];f=i<<24>>24;if(!(K[(i>>>3|0)+255072|0]>>>(f&7)&1))break D;H[b|0]=K[f+254832|0]+(K[b|0]<<4);f=c+1|0;if(!(!(c&1)|d>>>0<=f>>>0)){H[b+1|0]=0;b=b+1|0}if((d|0)!=(f|0))continue;break}c=d;break C}f=J[e>>2];if(f&1073741824)break C;J[e>>2]=f|1073741824}f=L[h>>1];if(f)H[b|0]=K[b|0]&K[(P(f,L[J[e+32>>2]+96>>1])&7)+255033|0];E:{if((c|0)!=(d|0))break E;a=K[a+d|0];if(!(K[(a>>>3|0)+255072|0]>>>(a&7)&1))break E;a=J[e>>2];if(a& +1073741824)break E;J[e>>2]=a|1073741824}J[e+8>>2]=J[e+8>>2]+1;break f}F:{if(ud(a,255041,6))break F;G:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break G;default:break F}b=dm(e+40|0,242214,a,b);J[g+4>>2]=b;if(b)break b;m=c-28|0,n=hy(J[J[e+40>>2]+4>>2]),I[m>>1]=n;J[e>>2]=J[e>>2]|256;break f}H:{if(ud(a,255048,6))break H;I:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break I;default:break H}b=dm(e+40|0,242214,a,b);J[g+4>>2]=b;if(b)break b;b=hy(J[J[e+40>>2]+4>>2]);I[c-26>>1]=b;a=J[e>> +2];if(!(a&256)){m=c-28|0,n=Od(b&65535,72E3,P(J[f+20>>2],J[f+16>>2])),I[m>>1]=n;a=J[e>>2]}J[e>>2]=a|512;break f}J:{if(ud(a,255055,3))break J;K:switch(K[a+3|0]){case 0:case 9:case 10:case 13:case 32:break K;default:break J}b=dm(e+40|0,242214,a,b);J[g+4>>2]=b;if(b)break b;a=c-36|0;d=J[e+40>>2];h=mE(J[d+4>>2]);I[a+12>>1]=h;i=mE(J[d+8>>2]);I[a+14>>1]=i;b=iy(J[d+12>>2]);I[a+16>>1]=b;d=iy(J[d+16>>2]);I[a+18>>1]=d;l=0-d|0;I[a+22>>1]=l;k=a;a=d+i|0;I[k+20>>1]=a;d=b+h|0;I[e+22>>1]=d;a=a<<16>>16;i=I[e+18>>1]; +I[e+18>>1]=(a|0)>(i|0)?a:i;a=I[e+20>>1];i=l<<16>>16;I[e+20>>1]=(a|0)>(i|0)?a:i;a=d<<16>>16;d=I[e+16>>1];I[e+16>>1]=(a|0)>(d|0)?a:d;a=I[e+12>>1];I[e+12>>1]=(a|0)>(b|0)?b:a;a=I[e+14>>1];I[e+14>>1]=(a|0)<(b|0)?b:a;a=J[e>>2];if(!(a&512))I[c-26>>1]=h;L:{if(!J[J[e+36>>2]>>2])break L;b=c-36|0;c=Od(L[b+10>>1],72E3,P(J[f+20>>2],J[f+16>>2]));a=J[e>>2];if(L[b+8>>1]==(c&65535))break L;I[b+8>>1]=c;a=a|4096}J[e>>2]=a|1024;break f}if(ud(a,255059,6))break l;M:switch(K[a+6|0]){case 0:case 9:case 10:case 13:case 32:break M; +default:break l}b=183;if(!(h&1024))break j;a=c-36|0;d=P(L[f+96>>1],L[a+12>>1]);b=d+7>>>3|0;J[a+28>>2]=b;N:{if(d>>>0<=524280){a=P(b,L[a+14>>1]);if(a>>>0<65536)break N}b=184;break j}b=c-36|0;I[b+32>>1]=a;m=b,n=_c(j,1,0,a,0,g+4|0),J[m+24>>2]=n;b=J[g+4>>2];if(b)break b;J[e+8>>2]=0;J[e>>2]=J[e>>2]|2048;break f}b=182;break j}vm(J[f+56>>2],J[f+52>>2],36,1647);J[e>>2]=J[e>>2]&-2;J[d>>2]=1648;break f}b=180;break j}if(J[J[e+36>>2]+4>>2]){a=J[f+64>>2];O:{if((a|0)!=J[f+60>>2]){c=J[f+68>>2];break O}c=_c(j,36, +a,a+4|0,J[f+68>>2],g+4|0);J[f+68>>2]=c;b=J[g+4>>2];if(b)break b;J[f+60>>2]=J[f+60>>2]+4;a=J[f+64>>2]}b=P(a,36)+c|0;J[b>>2]=J[e+24>>2];J[f+64>>2]=a+1;J[b+4>>2]=a;break m}a=J[e+24>>2];if(a)kc[J[j+8>>2]](j,a)}J[e+24>>2]=0;J[e>>2]=J[e>>2]&1073741695|128;break f}b=3;break j}b=181}J[g+4>>2]=b;break b}J[f+48>>2]=0;J[e+4>>2]=0;b=f+48|0}a=64;J[b>>2]=64}m=f,n=_c(j,36,0,a,0,g+4|0),J[m+56>>2]=n;b=J[g+4>>2];if(b)break b;J[e>>2]=J[e>>2]|32}b=J[g+4>>2]}if(b)break b;b=0;break a}if(!(K[e|0]&64))break a;a=J[e+24>> +2];if(a)kc[J[j+8>>2]](j,a);J[e+24>>2]=0;b=J[g+4>>2]}fc=g+16|0;return b|0}function YXa(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=fc-128|0;fc=c;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;h=uq(c+120|0);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{d=K[b+11|0];k:{if(!(d<<24>>24<0?J[b+4>>2]:d))break k;J[699344]=0;b=aa(3469,h|0,b|0)|0;d=J[699344];J[699344]=0;l:{m:{n:{if((d|0)==1)break n;if(!b)break k;J[699344]=0;b=_(3470,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;if(!b)break k;J[699344]=0;f=c+32|0; +da(3471,f|0,h|0);d=J[699344];J[699344]=0;b=1;if((d|0)!=1){e=K[c+43|0];d=e<<24>>24;g=e;e=(d|0)<0;if(((e?J[c+36>>2]:g)|0)==4){b=e?J[c+32>>2]:f;b=(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))!=2036625250}if((d|0)<0)uc(J[c+32>>2]);if(b)break k;J[c+40>>2]=0;J[c+44>>2]=1076101120;J[c+36>>2]=4;I[c+32>>1]=0;Ac(c+48|0,0,68);o:{p:{q:{r:{s:{while(1){J[699344]=0;b=Mi(h);d=J[699344];J[699344]=0;if((d|0)==1)break m;if(!b)break s;J[699344]=0;f=c+20|0;da(3471,f|0,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break r; +b=0;e=K[c+31|0];d=e<<24>>24;g=e;e=(d|0)<0;if(((e?J[c+24>>2]:g)|0)==5)b=!dd(e?J[c+20>>2]:f,851555,5);if((d|0)<0)uc(J[c+20>>2]);if(!b)continue;break}J[699344]=0;b=c+20|0;da(3473,b|0,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break q;J[699344]=0;da(3474,b|0,c+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break p;if(H[c+31|0]>=0)break s;uc(J[c+20>>2])}J[699344]=0;gj(h);b=J[699344];J[699344]=0;if((b|0)!=1)break o;b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[c+31|0]>=0)break b;uc(J[c+20>>2]); +break b}J[699344]=0;l=$g(h);b=J[699344];J[699344]=0;if((b|0)==1)break d;while(1){J[699344]=0;b=aa(3477,h|0,l|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!b)break l;J[699344]=0;f=c+20|0;da(3471,f|0,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;b=1;e=K[c+31|0];g=e<<24>>24;d=(g|0)<0;b=((d?J[c+24>>2]:e)|0)==1?K[(d?J[c+20>>2]:f)|0]!=112:b;if((g|0)<0)uc(J[c+20>>2]);if(b)continue;J[699344]=0;k=$g(h);b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;b=Th(h);d=J[699344];J[699344]=0;if((d| +0)==1)break g;if(b)continue;J[699344]=0;b=aa(3477,h|0,k|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;if(!b)continue;while(1){J[699344]=0;da(3471,c+20|0,h|0);b=J[699344];J[699344]=0;t:{u:{if((b|0)!=1){f=K[c+31|0];b=f<<24>>24;d=(b|0)<0;v:{w:switch((d?J[c+24>>2]:f)-4|0){case 0:b=d?J[c+20>>2]:c+20|0;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))!=1851879539)break u;J[699344]=0;d=_(4,88)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;f=aa(3479,d|0,c+32|0)|0;b=J[699344];J[699344]=0; +x:{y:{z:{A:{if((b|0)!=1){B:{while(1){J[699344]=0;b=Mi(h);d=J[699344];J[699344]=0;if((d|0)==1)break v;if(!b)break B;J[699344]=0;e=c+8|0;da(3471,e|0,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break A;b=0;g=K[c+19|0];d=g<<24>>24;i=g;g=(d|0)<0;if(((g?J[c+12>>2]:i)|0)==5)b=!dd(g?J[c+8>>2]:e,851555,5);if((d|0)<0)uc(J[c+8>>2]);if(!b)continue;break}J[699344]=0;b=c+8|0;da(3473,b|0,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break z;J[699344]=0;da(3474,b|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break y;if(H[c+ +19|0]>=0)break B;uc(J[c+8>>2])}J[699344]=0;gj(h);b=J[699344];J[699344]=0;if((b|0)!=1)break x;break i}b=Z()|0;uc(d);break h}b=Z()|0;break h}b=Z()|0;break h}b=Z()|0;if(H[c+19|0]>=0)break h;uc(J[c+8>>2]);break h}J[699344]=0;da(3480,c+8|0,h|0);b=J[699344];J[699344]=0;if((b|0)!=1){if(H[f+83|0]<0)uc(J[f+72>>2]);b=J[c+12>>2];J[f+72>>2]=J[c+8>>2];J[f+76>>2]=b;J[f+80>>2]=J[c+16>>2];b=J[a+4>>2];if((b|0)!=J[a+8>>2]){J[b>>2]=f;J[a+4>>2]=b+4;break u}C:{D:{i=J[a>>2];d=b-i|0;j=d>>2;e=j+1|0;E:{if(e>>>0>=1073741824){J[699344]= +0;$(3481,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break E;break j}g=d>>1;g=d>>>0>=2147483644?1073741823:e>>>0>>0?g:e;if(!g){e=0;break C}if(g>>>0<1073741824)break D;J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break j}b=Z()|0;break h}J[699344]=0;e=_(4,g<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i}d=(j<<2)+e|0;J[d>>2]=f;f=d+4|0;if((b|0)!=(i|0)){while(1){d=d-4|0;b=b-4|0;J[d>>2]=J[b>>2];if((b|0)!=(i|0))continue;break}b=J[a>>2]}J[a+8>>2]=(g<<2)+e;J[a+4>>2]=f;J[a>>2]=d;if(!b)break u; +uc(b);break u}b=Z()|0;break h;case 1:break w;default:break t}if(dd(d?J[c+20>>2]:c+20|0,851631,5))break u;J[699344]=0;d=_(4,88)|0;b=J[699344];J[699344]=0;F:{G:{H:{if((b|0)==1)break H;J[699344]=0;f=aa(3479,d|0,c+32|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break G;J[699344]=0;da(3473,c+8|0,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break F;if(H[f+83|0]<0)uc(J[f+72>>2]);b=J[c+12>>2];J[f+72>>2]=J[c+8>>2];J[f+76>>2]=b;J[f+80>>2]=J[c+16>>2];b=J[a+4>>2];if((b|0)!=J[a+8>>2]){J[b>>2]=f;J[a+4>>2]=b+4;break u}I:{J:{i= +J[a>>2];d=b-i|0;j=d>>2;e=j+1|0;K:{if(e>>>0>=1073741824){J[699344]=0;$(3481,a|0);break K}g=d>>1;g=d>>>0>=2147483644?1073741823:e>>>0>>0?g:e;if(!g){e=0;break I}if(g>>>0<1073741824)break J;J[699344]=0;ka(209)}b=J[699344];J[699344]=0;if((b|0)!=1)break j;b=Z()|0;break h}J[699344]=0;e=_(4,g<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break H}d=(j<<2)+e|0;J[d>>2]=f;f=d+4|0;if((b|0)!=(i|0)){while(1){d=d-4|0;b=b-4|0;J[d>>2]=J[b>>2];if((b|0)!=(i|0))continue;break}b=J[a>>2]}J[a+8>>2]=(g<<2)+e;J[a+4>>2]=f;J[a>> +2]=d;if(!b)break u;uc(b);break u}b=Z()|0;break h}b=Z()|0;uc(d);break h}b=Z()|0;break h}b=Z()|0;break h}b=Z()|0;break b}b=K[c+31|0]}if(b<<24>>24<0)uc(J[c+20>>2]);J[699344]=0;b=aa(3477,h|0,k|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(b)continue;break}continue}}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break b}if(H[c+115|0]<0)uc(J[c+104>>2]);if(H[c+103|0]<0)uc(J[c+92>>2]);if(H[c+91|0]>=0)break k;uc(J[c+80>>2])}J[h>>2]=769768;a=J[h+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);fc=c+128|0;return}B()}b=Z()| +0}if(H[c+31|0]>=0)break b;uc(J[c+20>>2]);break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0}if(H[c+115|0]<0)uc(J[c+104>>2]);if(H[c+103|0]<0)uc(J[c+92>>2]);if(H[c+91|0]<0)uc(J[c+80>>2])}J[h>>2]=769768;c=J[h+4>>2];if(c)kc[J[J[c>>2]+4>>2]](c);c=J[a>>2];if(c){J[a+4>>2]=c;uc(c)}ba(b|0);B()}function _I(a){var b=0,c=0,d=0,e=0,f=0,g=0;g=fc-16|0;fc=g;a:{b:{if(!J[a+28>>2]){c=J[a+56>>2];c:{d:{if((c|0)<2)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){c=J[a+56>>2]; +b=1;if(!c)break a;e=J[a+52>>2];b=e<<2-c;break c}b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-6)continue;break d}e=J[a+52>>2]}b=e>>>c-2|0}f=-2;e:{d=b<<4&48;if(L[(d<<2)+2317200>>1]==2)break e;f:{g:{if((c|0)<=2)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break g;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-5)continue;break}b=e>>>c-3|0;break f}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<3-c}f=-3;d=b<<3&56;if(L[(d<< +2)+2317200>>1]==3)break e;h:{i:{if((c|0)<=3)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break i;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-4)continue;break}b=e>>>c-4|0;break h}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<4-c}f=-4;d=b<<2&60;if(L[(d<<2)+2317200>>1]==4)break e;j:{k:{if((c|0)<=4)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break k;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-3)continue; +break}b=e>>>c-5|0;break j}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<5-c}f=-5;d=b<<1&62;if(L[(d<<2)+2317200>>1]==5)break e;l:{m:{if((c|0)<=5)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break m;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-2)continue;break}b=e>>>c-6|0;break l}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<6-c}f=-6;d=b&63;if(L[(d<<2)+2317200>>1]==6)break e;n:{o:{if((c|0)<=6)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d| +0)==-1){c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<7-c;break o}b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<-1)continue;break}b=e>>>c-7|0}b=b<<5&4064;if(b>>>0>=64){f=-7;d=b+-64|0;if(L[(d<<2)+2316176>>1]==7)break n}p:{q:{if((c|0)<=7)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break q;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<0)continue;break}b=e>>>c-8|0;break p}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b= +e<<8-c}b=b<<4&4080;if(b>>>0>=64){f=-8;d=b+-64|0;if(L[(d<<2)+2316176>>1]==8)break n}r:{s:{if((c|0)<=8)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break s;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<=0)continue;break}b=e>>>c-9|0;break r}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<9-c}b=b<<3&4088;if(b>>>0>=64){f=-9;d=b+-64|0;if(L[(d<<2)+2316176>>1]==9)break n}t:{u:{if((c|0)<=9)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break u; +b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<2)continue;break}b=e>>>c-10|0;break t}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<10-c}b=b<<2&4092;if(b>>>0>=64){f=-10;d=b+-64|0;if(L[(d<<2)+2316176>>1]==10)break n}v:{w:{if((c|0)<=10)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break w;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<3)continue;break}b=e>>>c-11|0;break v}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<< +11-c}b=b<<1&4094;if(b>>>0>=64){f=-11;d=b+-64|0;if(L[(d<<2)+2316176>>1]==11)break n}x:{y:{if((c|0)<=11)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break y;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<4)continue;break}b=e>>>c-12|0;break x}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<12-c}if(b&4032){f=-12;d=(b&4095)+-64|0;if(L[(d<<2)+2316176>>1]==12)break n}z:{if((c|0)<=9)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){c=J[a+56>>2]; +b=1;if(!c)break a;e=J[a+52>>2];b=e<<10-c;break z}b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<2)continue;break}b=e>>>c-10|0}d=-10;f=b<<3&8184;A:{if(L[(f<<2)+2314896>>1]==10)break A;B:{C:{if((c|0)<=10)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break C;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<3)continue;break}b=e>>>c-11|0;break B}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<11-c}d=-11;f=b<<2&8188;if(L[(f<<2)+ +2314896>>1]==11)break A;D:{E:{if((c|0)<=11)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break E;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b|0)<4)continue;break}b=e>>>c-12|0;break D}c=J[a+56>>2];b=1;if(!c)break a;e=J[a+52>>2];b=e<<12-c}d=-12;f=b<<1&8190;if(L[(f<<2)+2314896>>1]==12)break A;F:{G:{if((c|0)<=12)while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1)break G;b=J[a+56>>2];c=b+8|0;J[a+56>>2]=c;e=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=e;if((b| +0)<5)continue;break}b=e>>>c-13|0;break F}c=J[a+56>>2];b=1;if(!c)break a;b=J[a+52>>2]<<13-c}d=-13;f=b&8191;if(L[(f<<2)+2314896>>1]!=13)break b}b=a;a=c+d|0;J[b+56>>2]=(a|0)>0?a:0;b=L[(f<<2)+2314898>>1];break a}b=a;a=c+f|0;J[b+56>>2]=(a|0)>0?a:0;b=L[(d<<2)+2316178>>1];break a}b=a;a=c+f|0;J[b+56>>2]=(a|0)>0?a:0;b=L[(d<<2)+2317202>>1];break a}f=J[a+56>>2];H:{I:{if((f|0)>=13){c=J[a+52>>2];break I}while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){f=J[a+56>>2];b=1;if(!f)break a;d=J[a+52>>2]<< +13-f;break H}b=J[a+56>>2];f=b+8|0;J[a+56>>2]=f;c=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=c;if((b|0)<5)continue;break}}d=c>>>f-13|0}e=d&8191;J:{if(e>>>0<=127){b=(e<<2)+2314896|0;break J}b=(e<<1&16380)+2315920|0;if(e>>>0<=511)break J;b=(e>>>7<<2)+2317200|0}e=I[b>>1];if((e|0)<=0){f=d&8191;break b}d=a;a=f-(e&65535)|0;J[d+56>>2]=(a|0)>0?a:0;b=L[b+2>>1];break a}b=kc[J[J[a>>2]+52>>2]](a)|0;J[g>>2]=f;Cc(1,b,813856,g);J[a+80>>2]=J[a+80>>2]+1;b=a;a=J[a+56>>2];J[b+56>>2]=((a|0)<=1?1:a)-1;b=1}fc=g+16|0;return b<<16>> +16}function eIa(a){a=a|0;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;j=fc-16|0;fc=j;J[j+12>>2]=0;J[j+8>>2]=0;m=J[a+4>>2];o=fc-32|0;fc=o;n=vc(24);J[n+12>>2]=0;J[n+20>>2]=1;tL(o,n);d=fc-48|0;fc=d;a:{if(o){b=d+4|0;O2(b,o);b=I2(b);break a}b=I2(0)}fc=d+48|0;b:{c:{i=J[m+8>>2];d=J[m+12>>2];if((i|0)==(d|0))break c;while(1){if(!J[i+16>>2])R2(m,i,i+12|0,i+16|0);i=i+20|0;if((d|0)!=(i|0))continue;break}i=J[m+8>>2];r=J[m+12>>2];if((i|0)==(r|0))break c;while(1){d:{e=H[i+11|0]< +0?J[i>>2]:i;g=0;p=fc-32|0;fc=p;d=-102;e:{if(!b)break e;if(J[b+56>>2]==1){d=vL(b);if(d)break e}k=e?e:28679;f=Yc(k);J[b+65700>>2]=0;J[b+152>>2]=0;J[b+156>>2]=8;d=b+65704|0;J[d>>2]=0;J[d+4>>2]=0;J[b+160>>2]=0;J[b+120>>2]=0;J[b+124>>2]=0;d=vq(b,J[b+44>>2]);e=jc;h=e;J[b+148>>2]=32;J[b+144>>2]=f+46;J[b+128>>2]=d;J[b+132>>2]=e;c=Dc(f+78|0);J[b+140>>2]=0;J[b+136>>2]=c;H[c+5|0]=0;H[c+4|0]=0;H[c|0]=80;H[c+1|0]=75;H[c+2|0]=1;H[c+3|0]=2;H[c+6|0]=20;H[c+7|0]=0;e=J[b+152>>2];H[c+8|0]=e;H[c+9|0]=e>>>8;if(e>>>0>= +65536){H[c+8|0]=255;H[c+9|0]=255}e=J[b+156>>2];H[c+10|0]=e;H[c+11|0]=e>>>8;if(e>>>0>=65536){H[c+10|0]=255;H[c+11|0]=255}e=J[b+65700>>2];H[c+29|0]=f>>>8;H[c+28|0]=f;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+12|0]=e;H[c+15|0]=e>>>24;H[c+14|0]=e>>>16;H[c+13|0]=e>>>8;if(f>>>0>=65536){H[c+28|0]=255;H[c+29|0]=255}H[c+30|0]=0;H[c+31|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+38|0]=0;H[c+ +39|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+36|0]=0;H[c+37|0]=0;f:{if(!h&(d|0)!=-1){q=J[b+65776>>2];e=d-q|0;h=h-(J[b+65780>>2]+(d>>>0>>0)|0)|0;H[c+42|0]=e;H[c+43|0]=e>>>8;H[c+44|0]=e>>>16;H[c+45|0]=e>>>24;if(!h)break f}H[c+42|0]=255;H[c+43|0]=255;H[c+44|0]=255;H[c+45|0]=255}g:{if(!f)break g;h=0;d=0;if(f>>>0>=4){e=f&-4;while(1){H[(J[b+136>>2]+d|0)+46|0]=K[d+k|0];c=d|1;H[(c+J[b+136>>2]|0)+46|0]=K[c+k|0];c=d|2;H[(c+J[b+136>>2]|0)+46|0]=K[c+k|0];c=d|3;H[(c+J[b+136>>2]|0)+46|0]=K[c+k|0];d=d+4|0;g=g+4|0;if((e| +0)!=(g|0))continue;break}}e=f&3;if(!e)break g;while(1){H[(J[b+136>>2]+d|0)+46|0]=K[d+k|0];d=d+1|0;h=h+1|0;if((e|0)!=(h|0))continue;break}}if(!J[b+136>>2]){d=-104;break e}d=b+65720|0;J[d>>2]=0;J[d+4>>2]=0;g=b+65712|0;J[g>>2]=0;d=b+65728|0;J[d>>2]=0;J[d+4>>2]=0;d=b+65736|0;J[d>>2]=0;J[d+4>>2]=0;e=fc-16|0;fc=e;c=Yc(k);f=J[b+44>>2];H[e+8|0]=80;H[e+9|0]=75;H[e+10|0]=3;H[e+11|0]=4;d=-1;h=e+8|0;h:{if((kc[J[b+8>>2]](J[b+28>>2],f,h,4)|0)!=4)break h;f=J[b+44>>2];i:{if(J[g>>2]){H[e+8|0]=45;H[e+9|0]=0;g=kc[J[b+ +8>>2]](J[b+28>>2],f,h,2)|0;break i}H[e+8|0]=20;H[e+9|0]=0;g=kc[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0}if((g|0)!=2)break h;f=J[b+44>>2];g=J[b+152>>2];I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;if((kc[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0)!=2)break h;f=J[b+44>>2];g=J[b+156>>2];I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;g=e+8|0;if((kc[J[b+8>>2]](J[b+28>>2],f,g,2)|0)!=2)break h;h=J[b+44>>2];f=J[b+65700>>2];H[e+8|0]=f;H[e+9|0]=f>>>8;H[e+10|0]=f>>>16;H[e+11|0]=f>>>24;if((kc[J[b+8>>2]](J[b+28>>2],h,g,4)|0)!= +4)break h;f=J[b+44>>2];J[e+8>>2]=0;if((kc[J[b+8>>2]](J[b+28>>2],f,g,4)|0)!=4)break h;f=J[b+44>>2];j:{if(J[b+65712>>2]){J[e+8>>2]=-1;g=kc[J[b+8>>2]](J[b+28>>2],f,g,4)|0;break j}J[e+8>>2]=0;g=kc[J[b+8>>2]](J[b+28>>2],f,e+8|0,4)|0}if((g|0)!=4)break h;f=J[b+44>>2];k:{if(J[b+65712>>2]){J[e+8>>2]=-1;g=kc[J[b+8>>2]](J[b+28>>2],f,e+8|0,4)|0;break k}J[e+8>>2]=0;g=kc[J[b+8>>2]](J[b+28>>2],f,e+8|0,4)|0}if((g|0)!=4)break h;f=J[b+44>>2];I[e+8>>1]=c;if(c>>>0>=65536)I[e+8>>1]=65535;if((kc[J[b+8>>2]](J[b+28>>2], +f,e+8|0,2)|0)!=2)break h;f=J[b+44>>2];g=J[b+65712>>2]?20:0;I[e+8>>1]=g;if(g>>>0>=65536)I[e+8>>1]=65535;g=(kc[J[b+8>>2]](J[b+28>>2],f,e+8|0,2)|0)!=2;if(!(g|!c))g=(kc[J[b+8>>2]](J[b+28>>2],J[b+44>>2],k,c)|0)!=(c|0);if(g)break h;if(!J[b+65712>>2]){d=0;break h}d=b+65720|0;s=d,t=vq(b,J[b+44>>2]),J[s>>2]=t;J[d+4>>2]=jc;d=J[b+44>>2];H[e+8|0]=1;H[e+9|0]=0;c=d;d=e+8|0;kc[J[b+8>>2]](J[b+28>>2],c,d,2)|0;c=J[b+44>>2];H[e+8|0]=16;H[e+9|0]=0;kc[J[b+8>>2]](J[b+28>>2],c,d,2)|0;c=J[b+44>>2];J[e+8>>2]=0;J[e+12>>2]= +0;kc[J[b+8>>2]](J[b+28>>2],c,d,8)|0;c=J[b+44>>2];J[e+8>>2]=0;J[e+12>>2]=0;d=(kc[J[b+8>>2]](J[b+28>>2],c,d,8)|0)!=8?-1:0}fc=e+16|0;J[b+68>>2]=0;J[b+72>>2]=0;J[b+76>>2]=b+164;J[b+108>>2]=0;J[b+80>>2]=65536;J[b+84>>2]=0;l:{if(d)break l;if(!(J[b+160>>2]|J[b+156>>2]!=8)){J[b+104>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;d=zx(b- -64|0,-1,8,-15,8,0,28310);if(d)break l;J[b+120>>2]=8}J[b+65760>>2]=0;J[b+56>>2]=1;d=0;break e}J[b+65760>>2]=0}fc=p+32|0;if(d)break d;d=J[i+12>>2];c=J[i+16>>2];e=-102;m:{if(!b|!J[b+56>>2])break m; +e=b+65704|0;f=ig(J[e>>2],d,c);J[b+68>>2]=c;J[b+64>>2]=d;J[e>>2]=f;k=b+164|0;p=b- -64|0;while(1){e=0;if(!J[b+68>>2])break m;d=J[b+80>>2];if(!d){c=uL(b);J[b+76>>2]=k;d=65536;J[b+80>>2]=65536;e=-1;if((c|0)==-1)break m}n:{if(!(J[b+160>>2]|J[b+156>>2]!=8)){d=J[b+84>>2];e=Wk(p,0);f=J[b+124>>2];d=J[b+84>>2]-d|0;break n}g=J[b+68>>2];f=d>>>0>g>>>0?g:d;e=0;h=0;c=b;if(g){g=0;d=0;if(f>>>0>=4){q=f&-4;while(1){H[J[b+76>>2]+d|0]=K[J[b+64>>2]+d|0];l=d|1;H[l+J[b+76>>2]|0]=K[l+J[b+64>>2]|0];l=d|2;H[l+J[b+76>>2]|0]= +K[l+J[b+64>>2]|0];l=d|3;H[l+J[b+76>>2]|0]=K[l+J[b+64>>2]|0];d=d+4|0;h=h+4|0;if((q|0)!=(h|0))continue;break}}h=f&3;if(h)while(1){H[J[b+76>>2]+d|0]=K[J[b+64>>2]+d|0];d=d+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}h=J[b+68>>2];d=J[b+80>>2]}J[c+80>>2]=d-f;J[b+68>>2]=h-f;J[b+64>>2]=J[b+64>>2]+f;J[b+76>>2]=J[b+76>>2]+f;J[b+72>>2]=J[b+72>>2]+f;J[b+84>>2]=J[b+84>>2]+f;d=J[b+124>>2]}J[b+124>>2]=d+f;if(!e)continue;break}}if(e)break d;if(vL(b))break d;i=i+20|0;if((r|0)!=(i|0))continue;break c}break}H2(b);J[j+ +12>>2]=0;J[j+8>>2]=0;break b}H2(b);b=J[n>>2];J[m>>2]=b;J[j+12>>2]=b;b=J[n+12>>2];J[m+4>>2]=b;J[j+8>>2]=b;uc(n)}fc=o+32|0;VC(J[a+4>>2]);a=vc(12);b=J[j+12>>2];d=J[j+8>>2];H[a+8|0]=1;J[a+4>>2]=d;J[a>>2]=b;fc=j+16|0;return a|0}function ddb(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;a:{b:{c:{d=J[a+1580>>2];if(!d)break c;d:{e:{f:{d=J[d+8>>2];switch(kc[J[J[d>>2]+8>>2]](d)|0){case 2:break d;case 1:break e;case 0:break f;default:break c}}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;g:{if(!K[f+ +1468|0]){J[b+120>>2]=0;h:{if(!J[b+60>>2])break h;a=J[e+20>>2];g=J[b+104>>2];f=(J[b+112>>2]-g|0)+2|0;i:{if(f>>>0<=M[e+24>>2])break i;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break i;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!q5(b,e))break h;a=c+4|0;while(1){oh(e,J[c>>2],a);if(q5(b,e))continue;break}}break g}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]= +0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2346,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a);break g}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0; +J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2347,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break g;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;j:{if(!K[f+1468|0]){J[b+120>>2]=0;k:{if(!J[b+60>>2])break k;a=J[e+20>>2];g=J[b+104>>2];f=(J[b+112>>2]-g|0)+2|0;l:{if(f>>>0<=M[e+24>>2])break l;if(a)uc(a);J[e+ +24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break l;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!p5(b,e))break k;a=c+4|0;while(1){oh(e,J[c>>2],a);if(p5(b,e))continue;break}}break j}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]= +2147483632;la(2348,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a);break j}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2349,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break j;uc(a)}break a}e=J[J[a+1580>>2]+8>>2]+44|0;d=fc+-64|0;fc=d;f=a+96|0;m:{if(!K[f+1468|0]){J[b+120>>2]=0;n:{if(!J[b+60>>2])break n;a=J[e+20>>2];g=J[b+104>>2];f=(J[b+112>>2]-g|0)+2|0;o:{if(f>>>0<=M[e+24>>2])break o;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break o;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+ +12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!o5(b,e))break n;a=c+4|0;while(1){oh(e,J[c>>2],a);if(o5(b,e))continue;break}}break m}if(!K[f+1469|0]){J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2350,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>> +2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a);break m}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2351,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break m;uc(a)}break a}e=a+ +1672|0;d=fc+-64|0;fc=d;f=a+96|0;p:{if(!K[f+1468|0]){J[b+120>>2]=0;q:{if(!J[b+60>>2])break q;a=J[e+20>>2];g=J[b+104>>2];f=(J[b+112>>2]-g|0)+2|0;r:{if(f>>>0<=M[e+24>>2])break r;if(a)uc(a);J[e+24>>2]=f;a=vc(f>>>0>536870911?-1:f<<3);J[e+20>>2]=a;if((f|0)==J[e+16>>2])break r;h=J[e+12>>2];if(h){uc(h);a=J[e+20>>2]}J[e+16>>2]=f;i=e,j=vc(f),J[i+12>>2]=j}J[e+28>>2]=a;J[e>>2]=g;J[e+4>>2]=2147483632;if(!n5(b,e))break q;a=c+4|0;while(1){oh(e,J[c>>2],a);if(n5(b,e))continue;break}}break p}if(!K[f+1469|0]){J[d+48>> +2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[699344]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;la(2352,b|0,f|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a);break p}J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]= +0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;f=J[a+1560>>2];J[699344]=0;la(2353,b|0,(((f|0)==1?1216:1340)+a|0)+96|0,d+32|0,d|0,e|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+20>>2];if(a)uc(a);a=J[d+8>>2];if(a)uc(a);a=J[d+52>>2];if(a)uc(a);a=J[d+40>>2];if(!a)break p;uc(a)}break a}a=Z()|0;Kf(d);Kf(d+32|0);ba(a|0);B()}fc=d- -64|0}function $O(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;s=J[a+12>> +2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{t=J[a+8>>2];k:{if(K[t+57|0]&2){l=-1;g=jl(65425);if(!g)break k;J[g+12>>2]=J[J[s+32>>2]+104>>2];if(il(b,J[a+16>>2],g))break k;Si(g)}i=hF(b,200331);if(!i)break c;if(!(K[i+16|0]&2))break d;l=-1;g=J[i+8>>2];h=g-1|0;J[i+8>>2]=h;l:{if((g|0)<=0){m=J[i+4>>2];h=m<<8&65280;g=(h|0)==65280?6:7;J[i+8>>2]=g;J[i+4>>2]=h|1<>2];n=J[g+8>>2];if(n&7)break k;j=J[g+64>>2];if(!((j|0)<0|(j|0)>J[g+60>>2]))break b;J[g+4>>2]=J[g+4>>2]|32;j=J[g+28>>2];J[g+28>>2]=j-1;if((j|0)>0){J[g+ +60>>2]=J[g+60>>2]+1;h=g;g=J[g+24>>2];J[h+24>>2]=g+1;H[g|0]=m;break l}if((bd(g,h>>>8|0)|0)!=-1)break l;break k}J[i+4>>2]=J[i+4>>2]|1<>2]+P(c,716)|0)+4>>2]+(d<<6)|0;h=J[g+52>>2];if(h){q=J[g+56>>2];x=q+P(h,36)|0;y=f+1|0;z=P(e,52);while(1){m:{if(!J[q+4>>2])break m;p=J[q>>2]+z|0;g=J[p+28>>2];if(!g)break m;h=J[p+24>>2];if(!h)break m;h=P(h,60)+g|0;while(1){if(!f){m=J[p+36>>2];bF(m,J[m+12>>2]+((g-J[p+28>>2]|0)/60<<4)|0,J[g+12>>2])}m=J[g+40>>2];n:{if(!m)break n;m=J[m+32>>2];if(J[g+8>>2]|(m| +0)!=(f|0))break n;j=J[p+32>>2];bF(j,J[j+12>>2]+((g-J[p+28>>2]|0)/60<<4)|0,m)}g=g+60|0;if((h|0)!=(g|0))continue;break}g=J[p+24>>2];if(!g)break m;o=J[p+28>>2];A=o+P(g,60)|0;while(1){m=J[o+40>>2];if(m)h=J[m+32>>2]==(f|0);else h=0;o:{if(!J[o+8>>2]){g=J[p+32>>2];if((_O(g,J[g+12>>2]+((o-J[p+28>>2]|0)/60<<4)|0,y,i)|0)<0)break a;break o}if(!(K[i+16|0]&2))break e;g=J[i+8>>2];j=g-1|0;J[i+8>>2]=j;if((g|0)<=0){l=J[i+4>>2];j=l<<8&65280;g=(j|0)==65280?6:7;J[i+8>>2]=g;J[i+4>>2]=j|h<>2];n=J[g+8>>2];if(n& +7)break a;k=J[g+64>>2];if(!((k|0)<0|(k|0)>J[g+60>>2]))break b;J[g+4>>2]=J[g+4>>2]|32;k=J[g+28>>2];J[g+28>>2]=k-1;if((k|0)>0){J[g+60>>2]=J[g+60>>2]+1;j=g;g=J[g+24>>2];J[j+24>>2]=g+1;H[g|0]=l;break o}l=-1;if((bd(g,j>>>8|0)|0)!=-1)break o;break k}J[i+4>>2]=J[i+4>>2]|h<>2]){g=1;l=-1;j=J[p+36>>2];h=J[j+12>>2]+((o-J[p+28>>2]|0)/60<<4)|0;j=_O(j,h,1,i);if((j|0)<0)break k;while(1){if(!j){g=g+1|0;j=_O(J[p+36>>2],h,g,i);if((j|0)>=0)continue;break k}break}if(!J[h+12>>2]|(J[h+4>> +2]+1|0)!=(g|0))break f}j=m;g=J[o+4>>2]+P(J[o>>2],72)|0;q:{if((g|0)==(j|0))break q;while(1){if(J[j+32>>2]!=(f|0))break q;j=j+72|0;if((g|0)!=(j|0))continue;break}j=g}g=j-m|0;if((g|0)<72)break a;r:{s:{t:{u:{v:{g=(g|0)/72|0;switch(g-1|0){case 1:break u;case 0:break v;default:break t}}if(!(K[i+16|0]&2))break g;g=J[i+8>>2];J[i+8>>2]=g-1;if((g|0)>0)break r;l=J[i+4>>2];h=l<<8&65280;J[i+4>>2]=h;J[i+8>>2]=(h|0)==65280?6:7;g=J[i+12>>2];n=J[g+8>>2];if(n&7)break a;k=J[g+64>>2];if(!((k|0)<0|(k|0)>J[g+60>>2]))break b; +J[g+4>>2]=J[g+4>>2]|32;k=J[g+28>>2];J[g+28>>2]=k-1;if((k|0)<=0){g=(bd(g,h>>>8|0)|0)==-1?-1:0;break s}J[g+60>>2]=J[g+60>>2]+1;h=g;g=J[g+24>>2];J[h+24>>2]=g+1;H[g|0]=l;break r}g=kv(i,2,2);break s}if(g>>>0<=5){g=kv(i,4,g-3|12);break s}if(g>>>0<=36){g=kv(i,9,g-6|480);break s}if(g>>>0>164)break a;g=kv(i,16,g-37|65408)}l=-1;if((g|0)==-1)break k}u=j-72|0;v=(j|0)==(m|0);w:{if(v){k=0;break w}l=J[m>>2];k=0;h=1;g=m;while(1){x:{if(!(!J[g+12>>2]&(g|0)!=(u|0))){n=J[g+4>>2];h=(mn(n-l|0)-(J[o+16>>2]+Wq(h)|0)|0)+ +1|0;h=(h|0)>(k|0)?h:k;k=(h|0)>0?h:0;l=n;h=1;break x}h=h+1|0}g=g+72|0;if((j|0)!=(g|0))continue;break}g=k;if(!g){k=0;break w}while(1){h=g;y:{z:{if(K[i+16|0]&2){g=J[i+8>>2];l=g-1|0;J[i+8>>2]=l;if((g|0)>0)break z;l=J[i+4>>2];r=l<<8&65280;g=(r|0)==65280?6:7;J[i+8>>2]=g;J[i+4>>2]=r|1<>2];n=J[g+8>>2];if(n&7)break a;w=J[g+64>>2];if(!((w|0)<0|J[g+60>>2]<(w|0)))break b;J[g+4>>2]=J[g+4>>2]|32;n=J[g+28>>2];J[g+28>>2]=n-1;if((n|0)>0){J[g+60>>2]=J[g+60>>2]+1;n=g;g=J[g+24>>2];J[n+24>>2]=g+1;H[g|0]=l; +break y}l=-1;if((bd(g,r>>>8|0)|0)==-1)break k;break y}fa(205276,199015,99,212354);B()}J[i+4>>2]=J[i+4>>2]|1<>>0>1)continue;break}}if(!(K[i+16|0]&2))break j;g=J[i+8>>2];J[i+8>>2]=g-1;A:{if((g|0)>0)break A;r=J[i+4>>2];h=r<<8&65280;J[i+4>>2]=h;J[i+8>>2]=(h|0)==65280?6:7;l=-1;g=J[i+12>>2];n=J[g+8>>2];if(n&7)break k;l=J[g+64>>2];if(!((l|0)<0|(l|0)>J[g+60>>2]))break b;J[g+4>>2]=J[g+4>>2]|32;l=J[g+28>>2];J[g+28>>2]=l-1;if((l|0)>0){J[g+60>>2]=J[g+60>>2]+1;h=g;g=J[g+24>>2];J[h+24>>2]=g+1;H[g| +0]=r;break A}l=-1;if((bd(g,h>>>8|0)|0)==-1)break k}J[o+16>>2]=J[o+16>>2]+k;if(v)break p;h=J[m>>2];g=1;while(1){B:{if(!(!J[m+12>>2]&(m|0)!=(u|0))){k=J[m+4>>2];n=k-h|0;if((mn(n)|0)>=(J[o+16>>2]+Wq(g)|0))break i;l=-1;h=k;k=1;if((kv(i,J[o+16>>2]+Wq(g)|0,n)|0)!=-1)break B;break k}k=g+1|0}g=k;m=m+72|0;if((j|0)!=(m|0))continue;break}}o=o+60|0;if((A|0)!=(o|0))continue;break}}q=q+36|0;if((x|0)!=(q|0))continue;break}}l=0;Jy(i,0);lv(i);if(K[t+57|0]&4){g=jl(65426);if(!g)break a;il(b,J[a+16>>2],g);Si(g)}a=J[(J[s+ +48>>2]+P(c,716)|0)+4>>2]+(d<<6)|0;c=J[a+52>>2];if(!c)break k;k=J[a+56>>2];m=k+P(c,36)|0;e=P(e,52);while(1){C:{if(!J[k+4>>2])break C;a=e+J[k>>2]|0;d=J[a+28>>2];if(!d)break C;a=J[a+24>>2];if(!a)break C;j=P(a,60)+d|0;while(1){a=J[d+40>>2];D:{if(!a)break D;c=J[a+32>>2];if((c|0)!=(f|0)){if((c|0)<0|(c|0)>(f|0))break D;fa(203805,199015,361,212302);B()}h=0;g=a;c=J[d+4>>2]+P(J[d>>2],72)|0;E:{if((g|0)==(c|0))break E;while(1){if(J[g+32>>2]!=(f|0)){h=g;break E}g=g+72|0;if((c|0)!=(g|0))continue;break}g=c}Xg(J[d+ +20>>2],J[a>>2],0);c=tj(J[d+20>>2]);if((c|0)!=J[a>>2])break h;if(oo(b,J[d+20>>2],J[g-68>>2]-c|0))break a;J[d+40>>2]=h;J[d+8>>2]=J[d+8>>2]+((g-a|0)/72|0)}d=d+60|0;if((j|0)!=(d|0))continue;break}}k=k+36|0;if((m|0)!=(k|0))continue;break}}return l}fa(205276,199015,103,212354);B()}fa(203424,199015,318,212302);B()}fa(204226,199015,375,212302);B()}fa(205276,199015,116,212334);B()}fa(202886,199015,275,212302);B()}fa(201475,199015,255,212302);B()}fa(201475,199015,209,212302);B()}fa(200861,199015,207,212302); +B()}J[g+8>>2]=n|4}return-1}function D4(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;m=fc-16|0;fc=m;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];f=J[c+20>>2];J[c+28>>2]=f;I[f+2>>1]=0;l=J[b+20>>2];b=J[b+28>>2];f=268435454;e=268435455;i=268435455;h=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[m+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];h=j>>31;i=I[a+8>>1];h=(i+((h^j)-h|0)|0)-1|0}if((b|0)!=(l|0)){J[m+4>>2]=l+8;o=(b-l>>3)-1|0;b=I[l+10>>1];a=b>>31;e=I[l+8>>1];f=(e+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a= +i;n=0;break a}if((i|0)<=(h|0)){a=i;break a}a=J[m+8>>2];J[m+8>>2]=a+8;n=n-1|0;h=I[a+10>>1];b=h>>31;a=I[a+8>>1];h=(a+((b^h)-b|0)|0)-1|0}l=h;b:{c:{d:{if(!o){o=0;break d}if((e|0)>(f|0))break c}b=e;break b}b=J[m+4>>2];J[m+4>>2]=b+8;o=o-1|0;h=I[b+10>>1];f=h>>31;b=I[b+8>>1];f=(b+((f^h)-f|0)|0)-1|0}j=f;if(!((f|0)<(b|0)&(a|0)>(l|0))){i=(a|0)>(b|0)?a:b;f=((f|0)>(l|0)?l:f)-i|0;if((f|0)>=0){h=f+1|0;e:{f:{g:{if((a|0)<(b|0)){e=b-a|0;f=J[m+8>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];h:{if((J[c>>2]+1|0)!=(a|0))break h; +d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break h;I[d+2>>1]=g-e;a=b;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=a;J[f+12>>2]=d;a=b;break g}if(!d){a=b;break e}d=J[f+4>>2];f=I[f>>1];xc(J[c+16>>2],d+((a|0)>(f|0)?a-f|0:0)|0,e);d=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(a|0))break j;f=I[d+2>>1];if((f|0)<=0)break j;I[d+2>>1]=e+f;f=J[c+16>>2];break i}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=a;J[d+12>>2]=f}J[c+16>>2]=e+f;a=b; +break g}if((a|0)<=(b|0))break e;e=a-b|0;f=J[m+4>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];k:{if((J[c>>2]+1|0)!=(b|0))break k;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break k;I[d+2>>1]=g-e;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=b;J[f+12>>2]=d;break g}if(!d)break f;d=J[f+4>>2];f=I[f>>1];xc(J[c+16>>2],d+((b|0)>(f|0)?b-f|0:0)|0,e);d=J[c+28>>2];l:{m:{if((J[c>>2]+1|0)!=(b|0))break m;f=I[d+2>>1];if((f|0)<=0)break m;I[d+2>> +1]=e+f;f=J[c+16>>2];break l}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=b;J[d+12>>2]=f}J[c+16>>2]=e+f}J[c>>2]=a-1}b=a}f=h;n:{o:{p:{q:{r:{e=J[m+4>>2];d=J[m+8>>2];switch((L[e+2>>1]>>>14&2|L[d+2>>1]>>>15)-1|0){case 2:break o;case 1:break p;case 0:break q;default:break r}}g=J[e+4>>2];e=I[e>>1];e=g+((e|0)<(i|0)?i-e|0:0)|0;g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(i|0)?i-d|0:0)|0;while(1){g=K[e|0];k=K[d|0];s:{if((P(g,k)|0)==65025)break s;g=P(P(k,g|-256)+65025>>>8|0,P(g,k|-256)+65025>>>8|0)>>>8|0;if((g|0)== +255)break s;H[J[c+16>>2]]=g^-1;g=J[c+28>>2];t:{u:{if((J[c>>2]+1|0)!=(i|0))break u;k=I[g+2>>1];if((k|0)<=0)break u;I[g+2>>1]=k+1;k=J[c+16>>2];break t}J[c+28>>2]=g+8;k=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=k}J[c>>2]=i;J[c+16>>2]=k+1}e=e+1|0;d=d+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}d=J[e+4>>2];e=I[e>>1];e=d+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[e|0];g=K[J[J[m+8>>2]+4>>2]];v:{if((P(d,g)|0)==65025)break v;d=P(P(g,d|-256)+65025>>>8|0,P(d,g|-256)+65025>>>8|0)>>>8|0;if((d|0)==255)break v; +H[J[c+16>>2]]=d^-1;g=J[c+28>>2];w:{x:{if((J[c>>2]+1|0)!=(i|0))break x;d=I[g+2>>1];if((d|0)<=0)break x;I[g+2>>1]=d+1;d=J[c+16>>2];break w}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=I[d>>1];e=J[d+4>>2]+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[J[J[m+4>>2]+4>>2]];g=K[e|0];y:{if((P(d,g)|0)==65025)break y;d=P(P(g,d|-256)+65025>>>8|0,P(d,g|-256)+65025>>>8|0)>>>8|0;if((d|0)==255)break y;H[J[c+16>>2]]=d^-1;g= +J[c+28>>2];z:{A:{if((J[c>>2]+1|0)!=(i|0))break A;d=I[g+2>>1];if((d|0)<=0)break A;I[g+2>>1]=d+1;d=J[c+16>>2];break z}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=K[J[e+4>>2]];d=K[J[d+4>>2]];if((P(e,d)|0)==65025)break n;e=P(P(d,e|-256)+65025>>>8|0,P(e,d|-256)+65025>>>8|0)>>>8|0;if((e|0)==255)break n;e=255-e|0;B:{C:{if((J[c>>2]+1|0)!=(i|0))break C;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(e|0)!=K[J[d+4>>2]])break C; +I[d+2>>1]=g-f;break B}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[e+10>>1]=0-f;I[e+8>>1]=i;J[e+12>>2]=d}J[c>>2]=(f+i|0)-1}if((j|0)>(l|0)){e=b+h|0;h=268435454;i=268435455;f=j;continue}e=268435455;b=a+h|0;a=(j|0)<(l|0);i=a?b:268435455;f=268435454;h=a?l:268435454;continue}if((a|0)<(b|0)){h=268435454;i=268435455;e=b;f=j;if((a|0)>(l|0))continue;g=l-a|0;d=g+1|0;j=J[m+8>>2];k=I[j+2>>1];D:{if((k|0)<0){e=K[J[j+4>>2]];E:{if((J[c>>2]+1|0)!=(a|0))break E;j=J[c+28>>2];k=I[j+2>>1]; +if((k|0)>=0|(e|0)!=K[J[j+4>>2]])break E;I[j+2>>1]=k-d;break D}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;j=J[c+16>>2];J[c+16>>2]=j+1;I[e+10>>1]=g^-1;I[e+8>>1]=a;J[e+12>>2]=j;break D}if(!k)continue;e=I[j>>1];xc(J[c+16>>2],J[j+4>>2]+((a|0)>(e|0)?a-e|0:0)|0,d);j=J[c+28>>2];F:{G:{if((J[c>>2]+1|0)!=(a|0))break G;e=I[j+2>>1];if((e|0)<=0)break G;I[j+2>>1]=d+e;e=J[c+16>>2];break F}J[c+28>>2]=j+8;e=J[c+16>>2];I[j+10>>1]=d;I[j+8>>1]=a;J[j+12>>2]=e}J[c+16>>2]=d+e}J[c>>2]=l;e=b;continue}f=268435454;e=268435455; +i=a;h=l;if((b|0)>(j|0))continue;g=j-b|0;d=g+1|0;a=J[m+4>>2];k=I[a+2>>1];H:{if((k|0)<0){a=K[J[a+4>>2]];I:{if((J[c>>2]+1|0)!=(b|0))break I;h=J[c+28>>2];k=I[h+2>>1];if((k|0)>=0|(a|0)!=K[J[h+4>>2]])break I;I[h+2>>1]=k-d;break H}H[J[c+16>>2]]=a;a=J[c+28>>2];J[c+28>>2]=a+8;h=J[c+16>>2];J[c+16>>2]=h+1;I[a+10>>1]=g^-1;I[a+8>>1]=b;J[a+12>>2]=h;break H}if(!k)continue;h=J[a+4>>2];a=I[a>>1];xc(J[c+16>>2],h+((a|0)<(b|0)?b-a|0:0)|0,d);a=J[c+28>>2];J:{K:{if((J[c>>2]+1|0)!=(b|0))break K;h=I[a+2>>1];if((h|0)<=0)break K; +I[a+2>>1]=d+h;h=J[c+16>>2];break J}J[c+28>>2]=a+8;h=J[c+16>>2];I[a+10>>1]=d;I[a+8>>1]=b;J[a+12>>2]=h}J[c+16>>2]=d+h}J[c>>2]=j;h=l;continue}break}fc=m+16|0}function L$(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;a:{b:{d=J[a>>2];if(!d)break b;if(Eg(J[d>>2],b))break b;if(Eg(J[d+4>>2],c))break b;b=J[a>>2];break a}p=a+4|0;c:{d:{e:{d=J[a+4>>2];if(!d)break e;if(Eg(J[d>>2],b))break e;if(Eg(J[d+4>>2],c))break e;c=4;break d}f:{d=J[a+8>>2];if(!d)break f; +if(Eg(J[d>>2],b))break f;if(Eg(J[d+4>>2],c))break f;c=8;break d}g:{d=J[a+12>>2];if(!d)break g;if(Eg(J[d>>2],b))break g;if(Eg(J[d+4>>2],c))break g;c=12;break d}d=b;j=fc-32|0;fc=j;h:{i:{j:{k:{if(!Dd(c,779632))break k;if(!Dd(c,781727))break k;if(!Dd(c,782459))break k;J[j+28>>2]=0;J[j+24>>2]=0;t=J[c+4>>2];f=fc-32|0;fc=f;l:{m:{n:{o:{p:{m=J[693464];if(J[m+456>>2])break p;b=K[m+455|0];if(b<<24>>24<0?J[m+448>>2]:b)break o;b=f+20|0;UL(b);J[699344]=0;b=aa(3026,b|0,810856)|0;g=J[699344];J[699344]=0;q:{r:{if((g| +0)!=1){g=J[b>>2];J[b>>2]=0;J[b+4>>2]=0;h=H[b+11|0];J[b+8>>2]=0;J[699344]=0;da(3353,m|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break r;if((h|0)<0)uc(g);if(H[f+31|0]<0)uc(J[f+20>>2]);if(J[m+456>>2])break p;break o}b=Z()|0;break q}b=Z()|0;if((h|0)>=0)break q;uc(g)}if(H[f+31|0]>=0)break m;uc(J[f+20>>2]);break m}b=0;while(1){g=b;u=J[m+460>>2];if(u>>>0<=b>>>0)break o;k=J[m+456>>2];h=k+b|0;h=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);if(h>>>0>=2147483632)break n;b=b+4|0;n=b+k|0;s:{if(h>>>0<=10){H[f+ +31|0]=h;l=f+20|0;break s}o=(h|15)+1|0;l=vc(o);J[f+28>>2]=o|-2147483648;J[f+20>>2]=l;J[f+24>>2]=h}x=cd(l,n,h)+h|0,y=0,H[x|0]=y;v=b+h|0;b=k+v|0;w=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);t:{u:{b=Yc(t);v:{if(b>>>0>=2147483632){J[699344]=0;$(3030,f+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break v;B()}w:{x:{if(b>>>0<=10){H[f+19|0]=b;h=f+8|0;break x}J[699344]=0;l=(b|15)+1|0;h=_(4,l|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break w;J[f+8>>2]=h;J[f+12>>2]=b;J[f+16>>2]=l|-2147483648}k=0;x=xc(h,t,b)+b| +0,y=0,H[x|0]=y;l=K[f+31|0];n=l<<24>>24;b=K[f+19|0];o=b<<24>>24;h=J[f+24>>2];q=b;b=(o|0)<0;y:{if((((n|0)<0?h:l)|0)!=((b?J[f+12>>2]:q)|0))break y;b=b?J[f+8>>2]:f+8|0;z:{if((n|0)>=0){h=f+20|0;if(n)break z;k=1;break y}if(!h){k=1;break y}k=!dd(J[f+20>>2],b,h);break y}while(1){n=K[b|0];q=K[h|0];k=(n|0)==(q|0);if((n|0)!=(q|0))break y;b=b+1|0;h=h+1|0;l=l-1|0;if(l)continue;break}}if((o|0)<0)uc(J[f+8>>2]);b=v+4|0;if(!k)break u;J[j+28>>2]=J[m+456>>2]+b;J[j+24>>2]=w;break t}}b=Z()|0;if(H[f+31|0]>=0)break m;uc(J[f+ +20>>2]);ba(b|0);B()}b=b+w|0}if(H[f+31|0]<0)uc(J[f+20>>2]);if(!k)continue;break}r=g>>>0>>0}fc=f+32|0;break l}_d(f+20|0);B()}ba(b|0);B()}if(!r)break k;J[j+8>>2]=5;e=vc(48);J[699344]=0;i=Ln(e,J[j+28>>2],0,J[j+24>>2],j+8|0);b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;break i}e=vc(24);J[699344]=0;b=_(4,8)|0;g=J[699344];J[699344]=0;A:{if((g|0)==1)break A;J[699344]=0;d=aa(3350,b|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){a=Z()|0;uc(b);break i}J[699344]=0;b=_(4,8)|0;g=J[699344];J[699344]=0;if((g|0)== +1)break A;J[699344]=0;c=aa(3350,b|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){a=Z()|0;uc(b);break i}J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=c;J[e>>2]=d;b=0;J[699344]=0;c=aa(3551,256,8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break A;J[e+16>>2]=c;while(1){c=b<<3;d=c+J[e+16>>2]|0;J[d>>2]=0;J[d+4>>2]=0;d=J[e+16>>2]+(c|8)|0;J[d>>2]=0;J[d+4>>2]=0;d=J[e+16>>2]+(c|16)|0;J[d>>2]=0;J[d+4>>2]=0;c=J[e+16>>2]+(c|24)|0;J[c>>2]=0;J[c+4>>2]=0;b=b+4|0;if((b|0)!=256)continue;break}J[e+20>>2]=1;OJ(e,a,3555,i);kc[J[J[i>> +2]+4>>2]](i);break j}a=Z()|0;break i}B:{C:{b=Qk(J[J[693464]+32>>2],d);D:{if(!b|J[b+8>>2]<=0)break D;while(1){g=J[J[b>>2]+(s<<2)>>2];i=vc(8);J[699344]=0;g=aa(3350,i|0,g|0)|0;r=J[699344];J[699344]=0;if((r|0)==1)break C;g=Ro(g,J[c+4>>2]);i=Qn(J[g+4>>2],820943);uc(Zc(g));if(i)break D;s=s+1|0;if((s|0)>2])continue;break}i=0}b=i;break B}a=Z()|0;uc(i);ba(a|0);B()}E:{if(!b){F:{if(Dd(c,779632))if(Dd(c,781727))break F;e=vc(24);J[699344]=0;b=_(4,8)|0;i=J[699344];J[699344]=0;G:{if((i|0)==1)break G;J[699344]= +0;d=aa(3350,b|0,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1){a=Z()|0;uc(b);break i}J[699344]=0;b=_(4,8)|0;i=J[699344];J[699344]=0;if((i|0)==1)break G;J[699344]=0;c=aa(3350,b|0,c|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1)break E;a=Z()|0;uc(b);break i}a=Z()|0;break i}if(!Dd(c,782459)){e=vc(24);J[699344]=0;b=_(4,8)|0;i=J[699344];J[699344]=0;H:{if((i|0)==1)break H;J[699344]=0;d=aa(3350,b|0,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1){a=Z()|0;uc(b);break i}J[699344]=0;b=_(4,8)|0;i=J[699344];J[699344]=0;if((i| +0)==1)break H;J[699344]=0;c=aa(3350,b|0,c|0)|0;i=J[699344];J[699344]=0;if((i|0)==1){a=Z()|0;uc(b);break i}J[e+16>>2]=0;J[e+20>>2]=1;J[e+8>>2]=1;J[e+12>>2]=1;J[e+4>>2]=c;J[e>>2]=d;break j}a=Z()|0;break i}J[j+4>>2]=d;J[j>>2]=c;Cc(1,-1,783177,j);break j}e=vc(24);J[699344]=0;b=_(4,8)|0;g=J[699344];J[699344]=0;I:{if((g|0)==1)break I;J[699344]=0;d=aa(3350,b|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){a=Z()|0;uc(b);break i}J[699344]=0;b=_(4,8)|0;g=J[699344];J[699344]=0;if((g|0)==1)break I;J[699344]=0; +c=aa(3350,b|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){a=Z()|0;uc(b);break i}J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=c;J[e>>2]=d;J[699344]=0;b=aa(3551,256,8)|0;c=J[699344];J[699344]=0;if((c|0)==1)break I;J[e+16>>2]=b;b=0;while(1){c=b<<3;d=c+J[e+16>>2]|0;J[d>>2]=0;J[d+4>>2]=0;d=J[e+16>>2]+(c|8)|0;J[d>>2]=0;J[d+4>>2]=0;d=J[e+16>>2]+(c|16)|0;J[d>>2]=0;J[d+4>>2]=0;c=J[e+16>>2]+(c|24)|0;J[c>>2]=0;J[c+4>>2]=0;b=b+4|0;if((b|0)!=256)continue;break}J[e+20>>2]=1;OJ(e,a,3557,i);pg(i);break j}a=Z()|0;break i}J[e+ +16>>2]=0;J[e+20>>2]=1;J[e+8>>2]=1;J[e+12>>2]=0;J[e+4>>2]=c;J[e>>2]=d}fc=j+32|0;b=e;break h}uc(e);ba(a|0);B()}if(!b)return 0;c=J[a+12>>2];if(c)cq(c);c=J[a+4>>2];e=J[a>>2];J[p+8>>2]=J[a+8>>2];J[p>>2]=e;J[p+4>>2]=c;break c}b=J[a+c>>2];cd(p,a,c)}J[a>>2]=b}J[b+20>>2]=J[b+20>>2]+1;return b}function BAa(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;e=fc-1088|0;fc=e;d=e+1080|0;Ho(d);J[699344]=0;da(5278,e+1076|0,d|0);d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((d|0)!=1){h=J[e+1076>> +2];d=J[b>>2];J[699344]=0;f=e+1072|0;da(5321,f|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break k;J[699344]=0;da(5278,e+1068|0,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break j;J[699344]=0;i=J[e+1068>>2];J[e+1060>>2]=0;J[e+1064>>2]=J[685894];d=ha(5279,i|0,e+1060|0,0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break h;if(d)break i;c=J[b>>2];if(!c){J[a>>2]=0;break g}J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[a>>2]=J[b>>2];break g}a=Z()|0;break b}a=Z()|0;break c}a=Z()| +0;break d}d=J[e+1060>>2];d=J[(d?d+12|0:2743576)>>2];J[699344]=0;ca(5330,h|0,d|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break h;l:{while(1){m:{J[699344]=0;d=e+1060|0;f=ha(5279,i|0,d|0,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break m;n:{o:{if(f){J[699344]=0;d=pd(d,2394278,-1);f=J[699344];J[699344]=0;if((f|0)==1)break m;if(d)break o;J[e+1052>>2]=0;J[e+1056>>2]=J[685894];p:{q:{while(1){d=J[J[i>>2]+8>>2];J[699344]=0;d=ga(d|0,i|0,e+16|0,1024)|0;f=J[699344];J[699344]=0;r:{if((f|0)!=1){if(d)break r;while(1){d= +J[e+1052>>2];if(!(!(!d|!J[d+8>>2])&K[J[d+12>>2]]==10)){s:{while(1){d=J[e+1052>>2];if(!d)break s;g=J[d+8>>2];if(!g)break s;j=J[d+12>>2];t:{f=g-1|0;if(!f){d=0;break t}d=f;u:{if((g|0)<=0){d=d+g|0;if((d|0)<0)break u}if((d|0)<=(g|0))break t}J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)B();a=Z()|0;break p}if(K[d+j|0]!=10)break s;J[699344]=0;ca(5336,e+1052|0,f|0,0);d=J[699344];J[699344]=0;if((d|0)!=1)continue;break}a=Z()|0;break p}J[699344]=0;d=e+1052|0;f=ga(5287,d|0,c|0,-1)|0;g=J[699344];J[699344]= +0;v:{w:{x:{y:{z:{if((g|0)==1)break z;if(!f)break w;f=J[e+1060>>2];f=J[(f?f+12|0:2743576)>>2];J[699344]=0;ca(5330,h|0,f|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break z;J[699344]=0;J[e>>2]=0;aa(5145,e|0,h|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break y;J[699344]=0;aa(5228,J[e>>2],d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break x;d=J[e>>2];J[e>>2]=0;A:{if(!d)break A;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break v;if(f)break A;J[699344]=0;$(5147,d|0);d=J[699344]; +J[699344]=0;if((d|0)==1)break v}J[699344]=0;$(5332,h|0);d=J[699344];J[699344]=0;if((d|0)!=1)break w}a=Z()|0;break p}a=Z()|0;break p}a=Z()|0;zc(e);break p}wc(e+1052|0);break n}break a}J[699344]=0;ia(5313,e|0,e+1052|0,1,-1);d=J[699344];J[699344]=0;if((d|0)!=1){d=J[e>>2];B:{if(d){f=J[J[d>>2]+28>>2];J[699344]=0;ca(f|0,e+1084|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break B;a=Z()|0;wc(e);break p}J[e+1084>>2]=0}J[699344]=0;aa(5153,e+1052|0,e+1084|0)|0;d=J[699344];J[699344]=0;C:{if((d|0)!=1){d=J[e+1084>> +2];J[e+1084>>2]=0;if(!d)break C;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break C;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break C}break a}a=Z()|0;zc(e+1084|0);wc(e);break p}d=J[e+1052>>2];J[e+1056>>2]=J[(d?d+12|0:2743576)>>2];wc(e);continue}break}a=Z()|0;break p}a=Z()|0;break p}J[699344]=0;d=ga(5339,e+8|0,e+16|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;aa(5340,e+1052|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break q;wc(d); +continue}break}a=Z()|0;break p}a=Z()|0;wc(d)}wc(e+1052|0);break e}J[699344]=0;$(5332,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;c=J[J[h>>2]+24>>2];J[699344]=0;$(c|0,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;c=J[e+1080>>2];d=J[J[c>>2]+20>>2];J[699344]=0;ha(d|0,c|0,0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;b=J[b>>2];J[699344]=0;da(5269,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;da(5328,a|0,e+1080|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;break g}d=J[e+ +1060>>2];d=J[(d?d+12|0:2743576)>>2];J[699344]=0;ca(5330,h|0,d|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break m;J[699344]=0;J[e+1052>>2]=0;aa(5145,e+1052|0,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;while(1){D:{d=J[J[i>>2]+8>>2];J[699344]=0;f=ga(d|0,i|0,e+16|0,1024)|0;d=J[699344];J[699344]=0;if((d|0)==1)break D;d=J[e+1052>>2];if(!f){J[e+1052>>2]=0;E:{if(!d)break E;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break l;if(f)break E;J[699344]=0;$(5147,d|0);d=J[699344]; +J[699344]=0;if((d|0)==1)break l}J[699344]=0;$(5332,h|0);d=J[699344];J[699344]=0;if((d|0)!=1)break n;a=Z()|0;break e}J[699344]=0;ga(5463,d|0,e+16|0,f|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}a=Z()|0;zc(e+1052|0);break e}J[699344]=0;$(5332,i|0);d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}a=Z()|0;break e}break a}a=Z()|0;break e}wc(e+1060|0);a=J[e+1068>>2];J[e+1068>>2]=0;F:{if(!a)break F;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break F; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[e+1072>>2];J[e+1072>>2]=0;G:{if(!a)break G;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break G;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[e+1076>>2];J[e+1076>>2]=0;H:{if(!a)break H;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break H;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[e+1080>> +2];J[e+1080>>2]=0;I:{J:{if(!a)break J;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break I;if(b)break J;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break I}fc=e+1088|0;return}break a}a=Z()|0}wc(e+1060|0);zc(e+1068|0)}zc(e+1072|0)}zc(e+1076|0)}zc(e+1080|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Laa(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=2;a:{b:{if(!a|J[a>>2]!=1381173770)break b;if(!K[a+432|0])break a;J[a+148>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;H[a+136|0]=0;J[a+ +132>>2]=0;c:{d:{if(K[a+496|0]|K[a+344|0]){if(!(K[a+497|0]|K[a+368|0]|K[a+499|0]))break a;H[a+499|0]=0;H[a+497|0]=0;if(K[a+344|0]){e:{if(K[a+368|0]){f=a,g=J[a+484>>2]-J[a+364>>2]+kc[J[a+236>>2]](a)|0,J[f+484>>2]=g;break e}f=a,g=kc[J[a+236>>2]](a)|0,J[f+484>>2]=g}H[a+368|0]=0;d=qaa(a);if(!K[a+346|0])break c;H[a+344|0]=0;RO(a);break c}f=a,g=kc[J[a+236>>2]](a)|0,J[f+484>>2]=g;break d}b=kc[J[a+236>>2]](a)|0;H[a+496|0]=1;J[a+484>>2]=b}f:{if(!(K[a+498|0]|!(J[a+464>>2]|J[a+468>>2]|J[a+472>>2]))){J[a+680>> +2]=0;J[a+672>>2]=0;H[a+476|0]=1;J[a+664>>2]=0;J[a+656>>2]=0;I[a+648>>1]=256;J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;d=J[a+16>>2];J[a+676>>2]=d;b=J[a+20>>2];J[a+684>>2]=b;J[a+668>>2]=b;J[a+660>>2]=d;J[a+588>>2]=d;J[a+604>>2]=d<<2;Fy(a);b=kc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=b;if(!b){Jc(a,1,0,0);b=1;break f}c=J[a+680>>2];while(1){g:{if(J[a+684>>2]<=(c|0)){b=0;break g}b=kc[J[a+968>>2]](a)|0;if(b)break g;c=c+1|0;b=zs(a);if(!b)continue}break}d=J[a+644>>2];if(d){kc[J[a+ +156>>2]](d,J[a+604>>2]);J[a+644>>2]=0}if(b)break f;J[a+516>>2]=J[a+696>>2]}c=K[a+476|0];while(1){if(c&255)H[a+497|0]=0;b=K[a+498|0]-1|0;h:{i:{if((b&255)>>>0<=97){j:switch(b|0){case 0:b=RE(a);break i;case 2:case 3:Dy(a);b=0;break i;case 4:b=0;Zh(a,J[a+532>>2],0);H[a+498|0]=0;break i;case 8:c=L[a+2322>>1];k:{if(c>>>0>L[a+2324>>1])break k;while(1){if(K[a+497|0])break k;I[a+2322>>1]=c;b=c&65535;l:{if(!b)break l;b=ph(a,b);if(!b|K[b+30|0]|(!K[b+31|0]|!K[b+32|0]))break l;b=Zh(a,b,0);if(b)break i}c=c+1|0; +if(L[a+2324>>1]>=(c&65535)>>>0)continue;break}}b=0;c=K[a+497|0];H[a+498|0]=c?9:0;break h;case 9:b=0;H[a+1124|0]=0;up(a);break i;case 10:b=L[a+2326>>1];m:{if(b){c=ph(a,b);break m}c=J[a+528>>2]}b=Zh(a,c,0);if(b)break i;b=0;H[a+498|0]=0;break i;default:break j}Jc(a,999,0,0);b=999;break f}b=J[a+516>>2];if(!b){b=0;break i}b=kc[J[b+4>>2]](a,b)|0}c=K[a+497|0]}d=c&255;if(!d)H[a+498|0]=0;n:{if(b)break n;b=0;if(d)break n;d=J[a+516>>2];if(K[a+499|0]|!d)break n;c=J[d+8>>2];J[a+516>>2]=c;if(!(c|J[a+12>>2]!=2)){b= +QE(a);c=J[a+516>>2]}if(c)break n;H[a+502|0]=1}c=K[a+476|0];o:{if(!c){c=0;break o}d=J[a+464>>2];p:{if(!(!d|d>>>0>M[a+436>>2])){J[a+464>>2]=0;break p}d=J[a+468>>2];if(!(!d|d>>>0>M[a+440>>2])){J[a+468>>2]=0;break p}d=J[a+472>>2];if(!d|d>>>0>M[a+444>>2])break o;J[a+472>>2]=0}c=0;H[a+476|0]=0}if(b)break f;q:{if(!J[a+516>>2]|!((K[a+497|0]?0:K[a+496|0])|c))break q;if(K[a+499|0])break q;if(!K[a+500|0])continue}break}r:{if(!K[a+497|0]){if(!K[a+502|0])break r;s:{if(K[a+460|0]|!K[a+496|0])break s;d=J[a+564>> +2];e=J[a+560>>2];if(d>>>0<=e>>>0)break s;b=J[a+556>>2];c=J[a+552>>2];if(b>>>0<=c>>>0)break s;if(!(kc[J[a+232>>2]](a,c,e,b-c|0,d-e|0)|0)){Jc(a,904,0,0);b=904;break f}H[a+502|0]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+552>>2]=0;J[a+556>>2]=0;if(K[a+500|0])break s;b=SE(a);if(b)break f}if(!K[a+497|0])break r}b=0;if(K[a+498|0])break f;H[a+498|0]=99;break f}b=0;H[a+498|0]=0;if(J[a+516>>2])break f;H[a+496|0]=0}d=b}if(d)break b;if(K[a+368|0]){f=a,g=kc[J[a+236>>2]](a)|0,J[f+364>>2]=g;return 14}d=15;if(K[a+497|0])break b; +d=16;if(K[a+499|0])break b;d=0;H[a+496|0]=0;if(K[a+500|0])H[a+500|0]=0;if(!K[a+501|0])break b;H[a+432|0]=0;RO(a);c=J[a+548>>2];t:{if(!c)break t;e=J[c+1120>>2];u:{if(!e)break u;b=J[c+1124>>2];if(!b)break u;kc[J[a+156>>2]](b,e);c=J[a+548>>2];if(!c)break t}kc[J[a+156>>2]](c,1136);J[a+548>>2]=0}naa(a);c=J[a+688>>2];if(c)while(1){b=J[c+8>>2];kc[J[c>>2]](a,c)|0;c=b;if(b)continue;break}J[a+524>>2]=0;J[a+508>>2]=0;H[a+504|0]=0;H[a+460|0]=0;J[a+444>>2]=0;J[a+436>>2]=0;J[a+440>>2]=0;H[a+433|0]=0;J[a+688>>2]= +0;J[a+692>>2]=0;J[a+516>>2]=0;H[a+1062|0]=0;I[a+1060>>1]=0;J[a+332>>2]=0;J[a+464>>2]=0;J[a+468>>2]=0;J[a+480>>2]=0;J[a+484>>2]=0;H[a+469|0]=0;H[a+470|0]=0;H[a+471|0]=0;H[a+472|0]=0;H[a+473|0]=0;H[a+474|0]=0;H[a+475|0]=0;H[a+476|0]=0;J[a+488>>2]=0;J[a+492>>2]=0;H[a+495|0]=0;H[a+496|0]=0;H[a+497|0]=0;H[a+498|0]=0;H[a+499|0]=0;H[a+500|0]=0;H[a+501|0]=0;H[a+502|0]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+552>>2]=0;J[a+556>>2]=0;J[a+1016>>2]=0;H[a+1019|0]=0;H[a+1020|0]=0;H[a+1021|0]=0;H[a+1022|0]=0;J[a+1024>> +2]=0;J[a+1028>>2]=0;H[a+1032|0]=0;J[a+1036>>2]=0;J[a+1040>>2]=0;b=a+1044|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1051|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;J[a+1084>>2]=1;J[a+1088>>2]=2147483647;H[a+1092|0]=0;H[a+1080|0]=1;J[a+1096>>2]=0;J[a+1100>>2]=0;b=a+1104|0;J[b>>2]=0;J[b+4>>2]=0;H[a+1124|0]=0;H[a+1112|0]=1;J[a+1116>>2]=1;J[a+1120>>2]=2147483647;J[a+1128>>2]=0;J[a+1132>>2]=0;b=a+1136|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1932>>2]=0;J[a+1160>>2]=0;H[a+1148|0]=0;J[a+ +1144>>2]=1;b=a+2221|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;I[a+1150>>1]=0;I[a+1152>>1]=0;I[a+1154>>1]=0;I[a+1156>>1]=0;b=a+2216|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2208|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2200|0;J[b>>2]=0;J[b+4>>2]=0;J[a+2192>>2]=0;J[a+2196>>2]=0;c=J[a+2232>>2];v:{if(!c)break v;b=J[a+2236>>2];if(!b)break v;kc[J[a+156>>2]](b,c);J[a+2236>>2]=0}J[a+2336>>2]=0;J[a+2328>>2]=0;J[a+2332>>2]=0;I[a+2324>>1]=0;I[a+2252>>1]=0;J[a+2248>>2]=0;I[a+2244>>1]=0;J[a+ +2240>>2]=0;J[a+2232>>2]=0;J[a+2256>>2]=0;J[a+2260>>2]=0;J[a+2276>>2]=0;J[a+2280>>2]=0;J[a+2308>>2]=0;J[a+2312>>2]=0;b=a+2264|0;J[b>>2]=0;J[b+4>>2]=0;H[a+2272|0]=0;b=a+2284|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2292|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2299|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;a=a+2314|0;I[a>>1]=0;I[a+2>>1]=0;I[a+4>>1]=0;I[a+6>>1]=0}return d}Jc(a,11,0,0);return 11}function nya(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; +k=fc-32|0;fc=k;J[a>>2]=0;vd(a,b);a:{b:{c:{d:{e:{h=c&3;f:{if(!h)break f;g:{h:{i:{j:{k:{l:{m:{if(c&1){J[699344]=0;d=_(4,72)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;c=L[b+8>>1];f=L[b+10>>1];J[699344]=0;c=ha(5551,d|0,f|0,c|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break m;c=Z()|0;uc(d);break b}J[699344]=0;d=_(4,72)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;c=L[b+10>>1];f=L[b+8>>1];J[699344]=0;c=ha(5551,d|0,f|0,c|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break j}J[699344]=0;aa(5145,a|0,c|0)| +0;c=J[699344];J[699344]=0;if((c|0)!=1)break k}c=Z()|0;break b}n:{if(J[b+24>>2]|J[b+20>>2])break n;c=J[b+36>>2];if(!c)break n;J[699344]=0;da(5615,b|0,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break n;c=Z()|0;break b}c=L[b+16>>1];if(c-257>>>0<=4294967040){J[699344]=0;b=ja(5178,k+8|0,2388369,2385834,482,2419077,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(b);break b}e=J[a>>2];I[e+16>>1]=c;o:{if(J[e+20>>2]|c>>>0<3)break o; +c=J[e+36>>2];if(!c)break o;J[699344]=0;da(5615,e|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break c}p:switch(h-1|0){case 2:break p;case 1:break h;case 0:break i;default:break g}d=L[b+8>>1];if(!d)break g;f=L[e+8>>1];if(f){h=0;q:{while(1){r:{s:{if(J[b+20>>2])break s;c=J[b+36>>2];if(!c)break s;J[699344]=0;da(5615,b|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break r;d=L[b+8>>1]}c=L[b+14>>1];t:{if((d&65535)>>>0<=h>>>0){g=c;c=L[b+12>>1];if(J[685890]<(g+c|0))break d;g=c+J[685889]|0;break t}g=L[b+12>>1]+ +(J[b+20>>2]+P(c,h)|0)|0}d=0;c=f;while(1){l=K[d+g|0];u:{if(J[e+20>>2])break u;i=J[e+36>>2];if(!i)break u;J[699344]=0;da(5615,e|0,i|0);i=J[699344];J[699344]=0;if((i|0)==1)break q}i=L[e+14>>1];c=c-1|0;v:{if(c>>>0>=L[e+8>>1]){j=i;i=L[e+12>>1];if(J[685890]<(j+i|0))break e;i=i+J[685889]|0;break v}i=L[e+12>>1]+(J[e+20>>2]+P(c,i)|0)|0}H[i+h|0]=l;d=d+1|0;if((f|0)!=(d|0))continue;break}h=h+1|0;d=L[b+8>>1];if(h>>>0>>0)continue;break g}break}c=Z()|0;break b}c=Z()|0;break b}if(J[b+20>>2])break g;c=0;while(1){w:{x:{y:{if(g)break y; +h=J[b+36>>2];if(!h)break y;J[699344]=0;da(5615,b|0,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break x;d=L[b+8>>1]}h=d&65535;if(h>>>0>c>>>0|J[685890]>=(L[b+12>>1]+L[b+14>>1]|0))break w;break d}c=Z()|0;break b}c=c+1|0;if(h>>>0<=c>>>0)break g;g=J[b+20>>2];continue}}c=Z()|0;uc(d);break b}c=L[e+10>>1];if(!c)break g;f=c;while(1){z:{A:{B:{C:{D:{if(J[b+20>>2])break D;d=J[b+36>>2];if(!d)break D;J[699344]=0;da(5615,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break C}d=L[b+14>>1];E:{if(L[b+8>>1]<=j>>>0){g=d; +d=L[b+12>>1];if(J[685890]<(g+d|0)){J[699344]=0;b=ja(5178,k+8|0,2399211,2399543,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break B;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(b);break b}h=d+J[685889]|0;break E}h=L[b+12>>1]+(J[b+20>>2]+P(d,j)|0)|0}f=f-1|0;d=0;if(L[b+10>>1])break A;break z}c=Z()|0;break b}c=Z()|0;break b}F:{while(1){G:{i=K[d+h|0];H:{if(J[e+20>>2])break H;g=J[e+36>>2];if(!g)break H;J[699344]=0;da(5615,e|0,g|0);g=J[699344];J[699344]=0;if((g| +0)==1)break G}g=L[e+14>>1];I:{if(L[e+8>>1]<=d>>>0){l=g;g=L[e+12>>1];if(J[685890]<(l+g|0)){J[699344]=0;b=ja(5178,k+8|0,2399211,2399543,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break F;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(b);break b}g=g+J[685889]|0;break I}g=L[e+12>>1]+(J[e+20>>2]+P(d,g)|0)|0}H[g+f|0]=i;d=d+1|0;if(d>>>0>1])continue;break z}break}c=Z()|0;break b}c=Z()|0;break b}j=j+1|0;if((c|0)!=(j|0))continue;break}break g}l=L[e+8>>1];if(!l)break g; +g=L[e+10>>1];m=g&3;h=l;while(1){J:{K:{L:{M:{N:{O:{P:{if(J[b+20>>2])break P;c=J[b+36>>2];if(!c)break P;J[699344]=0;da(5615,b|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break O}c=L[b+14>>1];Q:{if(L[b+8>>1]<=j>>>0){f=c;c=L[b+12>>1];if(J[685890]<(f+c|0)){J[699344]=0;b=ja(5178,k+8|0,2399211,2399543,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break N;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(b);break b}d=c+J[685889]|0;break Q}d=L[b+12>>1]+(J[b+20>>2]+P(c,j)| +0)|0}R:{if(J[e+20>>2])break R;c=J[e+36>>2];if(!c)break R;J[699344]=0;da(5615,e|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break M}c=L[e+14>>1];h=h-1|0;S:{if(h>>>0>=L[e+8>>1]){f=c;c=L[e+12>>1];if(J[685890]<(f+c|0)){J[699344]=0;b=ja(5178,k+8|0,2399211,2399543,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break L;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(b);break b}i=c+J[685889]|0;break S}i=L[e+12>>1]+(J[e+20>>2]+P(c,h)|0)|0}if(!g)break J;f=0;c=g;if(m)while(1){c= +c-1|0;H[i+c|0]=K[d|0];d=d+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}if(g>>>0>3)break K;break J}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break b}while(1){f=c+i|0;H[f-1|0]=K[d|0];H[f-2|0]=K[d+1|0];H[f-3|0]=K[d+2|0];f=c-4|0;H[f+i|0]=K[d+3|0];d=d+4|0;n=(c|0)>4;c=f;if(n)continue;break}}j=j+1|0;if((l|0)!=(j|0))continue;break}}if(L[b+16>>1]!=2)break f;J[699344]=0;$(5616,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(5616,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break c}fc= +k+32|0;return}J[699344]=0;b=ja(5178,k+8|0,2399211,2399543,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(b);break b}c=Z()|0;break b}J[699344]=0;b=ja(5178,k+8|0,2399211,2399543,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(b);break b}c=Z()|0;break b}c=Z()|0}zc(a);ba(c|0)}B()}function Hsa(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;f=fc-32|0;fc=f;J[f+4>>2]=0;J[f>>2]=0;e=J[J[a>>2]+16>>2];J[699344]=0;da(e|0,a|0,b|0);e=J[699344];J[699344]=0;a:{b:{c:{if((e|0)==1)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{e=J[b>>2];switch(e-2|0){case 0:case 3:break p;default:break o}}if(!d){J[699344]=0;b=ja(5178,f+8|0,2394816,2386144,946,2434043,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break n;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break b}q:{r:{s:{if(!K[a+4|0]){J[699344]=0;e=_(4, +72)|0;g=J[699344];J[699344]=0;if((g|0)==1)break s;J[699344]=0;g=_(5687,e|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break m;J[699344]=0;J[f+8>>2]=0;e=f+8|0;aa(5145,e|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break s;J[699344]=0;aa(5153,d+4|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break r;e=J[f+8>>2];J[f+8>>2]=0;t:{if(!e)break t;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(g)break t;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}J[d>> +2]=-1}J[699344]=0;aa(5153,f|0,d+4|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break q;a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;zc(f+8|0);break b}e=J[b>>2]}u:{v:{w:{x:{y:{z:{A:switch(e|0){case 0:e=J[c>>2];if(!e){J[699344]=0;b=ja(5178,f+8|0,2394816,2386144,965,2434043,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break b}g=J[J[a>>2]+28>>2];J[699344]=0;da(g|0,a|0,e|0);g=J[699344];J[699344]=0;B:{if((g|0)==1)break B;g=K[a+ +48|0];h=J[J[a>>2]+8>>2];J[699344]=0;g=ga(h|0,a|0,g|0,a+68|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break B;H[a+48|0]=g;if(K[a+4|0])break z;J[699344]=0;da(5690,a|0,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break z}a=Z()|0;break b;case 2:e=J[J[a>>2]+40>>2];J[699344]=0;ca(e|0,a|0,J[f>>2],4);e=J[699344];J[699344]=0;if((e|0)==1)break c;J[699344]=0;da(5691,a|0,J[f>>2]);e=J[699344];J[699344]=0;if((e|0)==1)break c;break z;case 5:C:{if(d){g=J[c>>2];if(g)break C}J[699344]=0;b=ja(5178,f+8|0,2394816,2386144,984, +2434043,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break b}e=J[J[a>>2]+20>>2];J[699344]=0;e=ga(e|0,a|0,d|0,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break j;h=J[d>>2];J[699344]=0;g=aa(5543,g|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break j;J[699344]=0;aa(5153,f+4|0,g+4|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;D:{if(!((e|0)<=J[a+140>>2]&(e|0)>=J[a+136>>2])){J[699344]=0;b=ja(5178,f+8|0,2393794,2394220, +619,2434720,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break D;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break b}e=J[a+124>>2]+(e-J[a+128>>2]<<4)|0;g=J[e+4>>2];h=J[e+8>>2];i=J[e+12>>2];e=J[e>>2];j=J[J[a>>2]+44>>2];J[699344]=0;ma(j|0,a|0,J[f>>2],(h-g|0)+1|0,(e-i|0)+1|0,4);e=J[699344];J[699344]=0;if((e|0)==1)break D;e=J[d>>2];J[699344]=0;ia(5692,a|0,J[f>>2],f+4|0,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break z}a=Z()|0;break b;case 10:e=J[c>>2];if(!e){J[699344]= +0;b=ja(5178,f+8|0,2394816,2386144,999,2434043,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break b}g=J[J[a>>2]+12>>2];J[699344]=0;da(g|0,a|0,e+8|0);e=J[699344];J[699344]=0;if((e|0)!=1)break z;a=Z()|0;break b;case 11:break z;case 9:break A;default:break y}if(!K[a+49|0]){e=J[c>>2];if(!e){J[699344]=0;b=ja(5178,f+8|0,2394816,2386144,1012,2434043,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;$(5179,b|0); +a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break b}g=J[J[a>>2]+24>>2];J[699344]=0;da(g|0,a|0,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break z;break c}J[a+52>>2]=0;J[a+56>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[699344]=0;ri(a+16|0,1,0);e=J[699344];J[699344]=0;if((e|0)==1)break c;J[699344]=0;ri(a+28|0,4,0);e=J[699344];J[699344]= +0;if((e|0)==1)break c;J[699344]=0;ri(a+40|0,4,0);e=J[699344];J[699344]=0;if((e|0)==1)break c;J[a+8>>2]=1}if(K[a+4|0])break v;switch(J[b>>2]-2|0){case 0:case 3:break x;default:break w}}J[699344]=0;b=ja(5178,f+8|0,2393124,2386144,1026,2434043,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break b}E:{if(d){b=J[c>>2];if(b)break E}J[699344]=0;b=ja(5178,f+8|0,2394816,2386144,1040,2434043,0)|0;a=J[699344];J[699344]=0;if((a| +0)==1)break f;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=Z()|0;Kc(b);break b}J[699344]=0;b=aa(5693,b|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]=0;ga(5694,a|0,b|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break w}a=Z()|0;break b}a=J[f>>2];if(!a)break u;J[699344]=0;$(5616,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c}a=J[f>>2];J[f>>2]=0;if(!a)break u;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break u;J[699344]= +0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[f+4>>2];J[f+4>>2]=0;F:{if(!a)break F;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(b)break F;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break e}fc=f+32|0;return}a=Z()|0;break b}a=Z()|0;uc(e);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break b}ea(0)|0;Bc()}B()}a=Z()|0}zc(f);zc(f+4|0);ba(a|0);B()}ea(0)|0;Bc();B()} +function FGa(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;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;J[g+8>>2]=0;J[g+12>>2]=0;I[g+4>>1]=0;J[g>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;H[g+29|0]=0;H[g+30|0]=0;H[g+31|0]=0;H[g+32|0]=0;H[g+33|0]=0;H[g+34|0]=0;H[g+35|0]=0;H[g+36|0]=0;a:{b:{if(!a)break b;h=J[b>>2];if((h|0)>=J[c>>2])break b;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{while(1){j=J[(h<<2)+a>>2];if((j|0)!=32){if((j|0)!=40)break m;h=h+1|0;J[b>>2]=h;n=J[c>> +2];if((n|0)<=(h|0))break a;m=J[(h<<2)+a>>2];if((m|0)!=32)break n;break o}h=h+1|0;J[b>>2]=h;if(J[c>>2]>(h|0))continue;break}return 0}while(1){h=h+1|0;J[b>>2]=h;n=J[c>>2];if((n|0)<=(h|0))break a;m=J[(h<<2)+a>>2];if((m|0)==32)continue;break}}if(m-48>>>0<10)break k;j=m-45|0;if(j>>>0>24|!(1<>2]!=J[g+40>>2])break h;n=1;l=1;break i}l=1;if((m|0)!=101)break j}l=mI(a,b,c);n=J[c>>2];h=J[b>>2]}if((h|0)>=(n|0))break a;p:{while(1){q:{j=J[(h<<2)+a>>2];if((j|0)!=32){if((j|0)!= +58)break a;h=h+1|0;J[b>>2]=h;m=J[c>>2];if((m|0)<=(h|0))break a;k=J[(h<<2)+a>>2];if((k|0)!=32)break p;break q}h=h+1|0;J[b>>2]=h;if(J[c>>2]>(h|0))continue;break a}break}while(1){h=h+1|0;J[b>>2]=h;m=J[c>>2];if((m|0)<=(h|0))break a;k=J[(h<<2)+a>>2];if((k|0)==32)continue;break}}r:{s:{if(k-48>>>0<10)break s;j=k-45|0;if(1<>>0<=24:0)break s;n=1;if((k|0)!=101)break r}n=mI(a,b,c);m=J[c>>2];h=J[b>>2]}if((h|0)>=(m|0))break a;while(1){j=J[(h<<2)+a>>2];if((j|0)!=32){if((j|0)!=41)break a;J[b>>2]=h+ +1;break i}h=h+1|0;J[b>>2]=h;if(J[c>>2]>(h|0))continue;break}break a}if((n|0)<=0|(l|0)<=0)break h;J[g+44>>2]=J[g+40>>2];j=J[f>>2];h=J[e>>2];f=j-h|0;p=(f|0)>(l|0)?l:f;f=0;m=0;t:{if((h|0)==(j|0))break t;s=vc(p>>>0>1073741823?-1:p<<2);if((p|0)<=0)break t;k=(h<<1)+d|0;h=0;while(1){j=h+1|0;u:{d=L[k+(h<<1)>>1];v:{if((d- -8192&65535)>>>0<=63487){h=j;break v}if(d>>>0>=56320){h=j;break u}if((j|0)>=(p|0))break t;h=h+2|0;j=L[k+(j<<1)>>1];if((j- -8192&65535)>>>0<64512)break u;d=d<<10&982016|j&1023|65536}J[(m<< +2)+s>>2]=d;m=m+1|0;if((h|0)<(p|0))continue;break t}if((h|0)<(p|0))continue;break}}t=g+40|0;while(1){w:{if((f|0)<(m|0)){o=(f<<2)+s|0;h=J[g+44>>2];if((h|0)!=J[g+48>>2]){J[h>>2]=J[o>>2];J[g+44>>2]=h+4;break w}q=J[t>>2];l=h-q|0;j=l>>2;k=j+1|0;if(k>>>0>=1073741824)break g;d=l>>1;k=l>>>0>=2147483644?1073741823:d>>>0>k>>>0?d:k;if(k){if(k>>>0>=1073741824)break f;d=vc(k<<2)}else d=0;i=d+(j<<2)|0;J[i>>2]=J[o>>2];j=i+4|0;if((h|0)!=(q|0))while(1){i=i-4|0;h=h-4|0;J[i>>2]=J[h>>2];if((h|0)!=(q|0))continue;break}J[g+ +48>>2]=d+(k<<2);J[g+44>>2]=j;J[g+40>>2]=i;if(!q)break w;uc(q);break w}h=J[g+44>>2];d=J[g+48>>2];if(h>>>0>>0){J[h>>2]=32;J[g+44>>2]=h+4;break w}o=J[t>>2];k=h-o>>2;l=k+1|0;if(l>>>0>=1073741824)break g;j=d-o|0;d=j>>1;l=j>>>0>=2147483644?1073741823:d>>>0>l>>>0?d:l;if(l){if(l>>>0>=1073741824)break f;d=vc(l<<2)}else d=0;i=d+(k<<2)|0;J[i>>2]=32;j=i+4|0;if((h|0)!=(o|0))while(1){i=i-4|0;h=h-4|0;J[i>>2]=J[h>>2];if((h|0)!=(o|0))continue;break}J[g+48>>2]=d+(l<<2);J[g+44>>2]=j;J[g+40>>2]=i;if(!o)break w;uc(o)}f= +f+1|0;if((n|0)!=(f|0))continue;break}if(s)uc(s);J[e>>2]=J[e>>2]+p}i=0;e=J[g+44>>2];d=J[g+40>>2];if((e|0)==(d|0))break a;J[g>>2]=J[d>>2];f=d;d=d+4|0;cd(f,d,e-d|0);J[g+44>>2]=e-4;d=J[c>>2];h=J[b>>2];if((d|0)<=(h|0))break a;e=(h<<2)+a|0;f=J[e>>2];if(J[e>>2]==32)while(1){h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;if(J[(h<<2)+a>>2]==32)continue;break}if(f-48>>>0<10)break d;e=f-45|0;if(e>>>0>24|!(1<>1]=d;d=J[c>>2];h=J[b>>2]}i=1;if((d|0)<=(h|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}x:{if((i|0)!=44)break x;i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}y:{z:{if(i-48>>>0<10)break z;e=i-45|0;if((i|0)==101|(1<>>0<=24:0))break z;H[g+34|0]=0;break y}r=$e(a,b,c);H[g+34|0]=1;O[g+8>>3]=r;d=J[c>>2];h=J[b>>2]}i=1;if((d|0)<=(h|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}if((i|0)!=44)break x;i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}A:{B:{if(i-48>>>0<10)break B; +e=i-45|0;if((i|0)==101|(1<>>0<=24:0))break B;H[g+35|0]=0;break A}r=$e(a,b,c);H[g+35|0]=1;O[g+16>>3]=r;d=J[c>>2];h=J[b>>2]}i=1;if((d|0)<=(h|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)continue;break}if((i|0)!=44)break x;i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)==32)while(1){i=1;h=h+1|0;J[b>>2]=h;d=J[c>>2];if((h|0)>=(d|0))break a;i=J[(h<<2)+a>>2];if((i|0)== +32)continue;break}C:{if(i-48>>>0<10)break C;e=i-45|0;if((i|0)==101|(1<>>0<=24:0))break C;H[g+36|0]=0;break x}r=$e(a,b,c);H[g+36|0]=1;O[g+24>>3]=r;d=J[c>>2];h=J[b>>2]}i=1;if((d|0)<=(h|0))break a;while(1){d=J[(h<<2)+a>>2];if((d|0)!=32){i=0;if((d|0)!=59)break a;i=1;J[b>>2]=h+1;break a}h=h+1|0;J[b>>2]=h;if(J[c>>2]>(h|0))continue;break}break a}if(!d)break a;a=J[e>>2];if((a|0)>=J[f>>2])break a;J[e>>2]=a+1;a=L[(a<<1)+d>>1];H[g+32|0]=1;J[g>>2]=a;return 1}return i|0}function AX(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0;j=fc-544|0;fc=j;e=J[a+24>>2];J[j+540>>2]=e-1;i=fc-32|0;fc=i;b=j+272|0;J[b+4>>2]=J[a+36>>2];J[b>>2]=e;c=sh(b+12|0,b+8|0,e,4);J[699344]=0;e=ha(5213,b+24|0,b+20|0,e+1|0,4)|0;l=J[699344];J[699344]=0;a:{b:{if((l|0)!=1){l=J[b>>2];if(l-1>>>0>=16777215){J[699344]=0;b=ja(5178,i+8|0,2395212,2385875,167,2396048,0)|0;a=J[699344];J[699344]=0;c:{if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break c;B()}a=Z()|0;hd(e);break b}a=Z()|0;Kc(b);hd(e);break b}J[J[b+20>>2]+(l<<2)>>2]=-1;fc=i+32|0;break a}a=Z()|0}hd(c);ba(a|0);B()}J[699344]=0;da(5217,b|0,j+540|0);e=J[699344];J[699344]=0;if((e|0)!=1){hd(b+24|0);hd(b+12|0);b=J[a+24>>2];d=J[a+48>>2];i=1;while(1){e=(J[d+20>>2]>>>1|0)+32768|0;b=b<<1&33554430;c=b>>>24|0;d:{if(b>>>0>=16777216){Vv(d,e);break d}lt(d,e)}i=i<<1|c;if((i|0)<16777216)continue;break}e=J[a+24>>2];e:{if((e|0)<=99999){lt(d,(J[d+20>>2]>>>1|0)+32768|0);break e}v= +1;Vv(d,(J[d+20>>2]>>>1|0)+32768|0);b=(J[d+20>>2]>>>1|0)+32768|0;if(e>>>0<=999999){lt(d,b);break e}Vv(d,b);v=2}i=0;b=0;while(1){e=j+272|0;H[e+b|0]=b;c=b|1;H[c+e|0]=c;c=b|2;H[c+e|0]=c;c=b|3;H[c+e|0]=c;c=b|4;H[c+e|0]=c;c=b|5;H[c+e|0]=c;c=b|6;H[c+e|0]=c;c=e;e=b|7;H[c+e|0]=e;b=b+8|0;if((b|0)!=256)continue;break}while(1){e=j+16|0;b=j+272|0;H[e+K[b+i|0]|0]=i;c=i|1;H[e+K[c+b|0]|0]=c;c=i|2;H[e+K[c+b|0]|0]=c;c=b;b=i|3;H[e+K[c+b|0]|0]=b;i=i+4|0;if((i|0)!=256)continue;break}J[j+8>>2]=0;J[j+12>>2]=0;J[j>>2]=0; +J[j+4>>2]=0;if(J[a+24>>2]>0){t=a+59|0;n=a+184|0;o=a+120|0;p=a+88|0;q=a+72|0;r=a- -64|0;s=a+60|0;u=a+58|0;F=a+55|0;G=a+52|0;w=J[j+540>>2];b=3;l=4;while(1){f=(b|0)>=2?2:b;c=f+G|0;h=K[c|0];b=J[((h<<2)+d|0)+44>>2]+J[d+20>>2]|0;x=K[J[a+36>>2]+m|0];y=x+(j+16|0)|0;i=K[y|0];g=(m|0)!=(w|0);e=g?i:256;f:{if(!(!e^!(h&1))){Oh(d,c,b);break f}if(b>>>0>=32768){Ph(d,c,b);break f}J[d+20>>2]=b}g:{h:{if(!e)break h;c=f+F|0;f=K[c|0];b=J[((f<<2)+d|0)+44>>2]+J[d+20>>2]|0;h=!(f&1);f=(e|0)==1;i:{if(!(h^f)){Oh(d,c,b);break i}if(b>>> +0>=32768){Ph(d,c,b);break i}J[d+20>>2]=b}if(f)break h;c=K[u|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;j:{if(!(!(c&1)^e>>>0<4)){Oh(d,u,b);break j}if(b>>>0>=32768){Ph(d,u,b);break j}J[d+20>>2]=b}if(e>>>0<=3){c=K[t|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;if((c^e)&1){Oh(d,t,b);break h}if(b>>>0>=32768){Ph(d,t,b);break h}J[d+20>>2]=b;break h}c=K[s|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;k:{if(!(!(c&1)^e>>>0<8)){Oh(d,s,b);break k}if(b>>>0>=32768){Ph(d,s,b);break k}J[d+20>>2]=b}if(e>>>0<=7){c=e-4|0;b=1;while(1){h= +b+s|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&6;g=c>>>2|0;l:{if((k|0)!=(g|0)){Oh(d,h,f);break l}if(f>>>0>=32768){Ph(d,h,f);break l}J[d+20>>2]=f}b=g|b<<1;if((b|0)<4)continue;break}break h}c=K[r|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;m:{if(!(!(c&1)^e>>>0<16)){Oh(d,r,b);break m}if(b>>>0>=32768){Ph(d,r,b);break m}J[d+20>>2]=b}if(e>>>0<=15){c=e-8|0;b=1;while(1){h=b+r|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&14;g=c>>>3|0;n:{if((k|0)!=(g|0)){Oh(d,h,f);break n}if(f>>> +0>=32768){Ph(d,h,f);break n}J[d+20>>2]=f}b=g|b<<1;if((b|0)<8)continue;break}break h}c=K[q|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;o:{if(!(!(c&1)^e>>>0<32)){Oh(d,q,b);break o}if(b>>>0>=32768){Ph(d,q,b);break o}J[d+20>>2]=b}if(e>>>0<=31){c=e-16|0;b=1;while(1){h=b+q|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&30;g=c>>>4|0;p:{if((k|0)!=(g|0)){Oh(d,h,f);break p}if(f>>>0>=32768){Ph(d,h,f);break p}J[d+20>>2]=f}b=g|b<<1;if((b|0)<16)continue;break}break h}c=K[p|0];b=J[((c<<2)+d|0)+44>>2]+ +J[d+20>>2]|0;q:{if(!(!(c&1)^e>>>0<64)){Oh(d,p,b);break q}if(b>>>0>=32768){Ph(d,p,b);break q}J[d+20>>2]=b}if(e>>>0<=63){c=e-32|0;b=1;while(1){h=b+p|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&62;g=c>>>5|0;r:{if((k|0)!=(g|0)){Oh(d,h,f);break r}if(f>>>0>=32768){Ph(d,h,f);break r}J[d+20>>2]=f}b=g|b<<1;if((b|0)<32)continue;break}break h}c=K[o|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;s:{if(!(!(c&1)^e>>>0<128)){Oh(d,o,b);break s}if(b>>>0>=32768){Ph(d,o,b);break s}J[d+20>>2]=b}if(e>>>0<=127){c= +e+-64|0;b=1;while(1){h=b+o|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&126;g=c>>>6|0;t:{if((k|0)!=(g|0)){Oh(d,h,f);break t}if(f>>>0>=32768){Ph(d,h,f);break t}J[d+20>>2]=f}b=g|b<<1;if((b|0)<64)continue;break}break h}c=K[n|0];b=J[((c<<2)+d|0)+44>>2]+J[d+20>>2]|0;u:{if(!(g^!(c&1))){Oh(d,n,b);break u}if(b>>>0>=32768){Ph(d,n,b);break u}J[d+20>>2]=b}if((m|0)==(w|0))break g;c=i-128|0;b=1;while(1){h=b+n|0;g=K[h|0];f=J[((g<<2)+d|0)+44>>2]+J[d+20>>2]|0;k=g&1;c=c<<1&254;g=c>>>7|0;v:{if((k|0)!= +(g|0)){Oh(d,h,f);break v}if(f>>>0>=32768){Ph(d,h,f);break v}J[d+20>>2]=f}b=g|b<<1;if((b|0)<128)continue;break}}l=(l>>v)+l|0;if((l|0)>=268435457){J[j>>2]=K[j+3|0];J[j+4>>2]=K[j+7|0];J[j+8>>2]=K[j+11|0];J[j+12>>2]=K[j+15|0];l=l>>>24|0}w:{x:{y:{if(e>>>0>=4){i=0;b=e;h=b+1&3;if(h)while(1){g=j+272|0;c=b-1|0;f=K[g+c|0];H[b+g|0]=f;H[f+(j+16|0)|0]=b;b=c;i=i+1|0;if((h|0)!=(i|0))continue;break}i=3;if(e-4>>>0>=3)while(1){h=b-1|0;c=j+272|0;g=h+c|0;k=K[g|0];f=j+16|0;H[k+f|0]=b;z=b-2|0;A=c+z|0;C=K[A|0];H[f+C|0]= +h;h=b-3|0;D=c+h|0;E=K[D|0];H[f+E|0]=z;H[b+c|0]=k;H[A|0]=E;H[g|0]=C;g=c;c=b-4|0;g=K[g+c|0];H[D|0]=g;H[f+g|0]=h;f=(b|0)>7;b=c;if(f)continue;break}c=l;break y}c=J[(e<<2)+j>>2]+l|0;if(!e)break x}while(1){b=i-1|0;f=J[(b<<2)+j>>2];if(f>>>0>c>>>0)break w;J[(i<<2)+j>>2]=f;h=j+272|0;f=K[h+b|0];H[i+h|0]=f;H[f+(j+16|0)|0]=i;f=i>>>0>1;i=b;if(f)continue;break}}i=0}H[(j+272|0)+i|0]=x;J[(i<<2)+j>>2]=c;H[y|0]=i}b=e;m=m+1|0;if((m|0)>2])continue;break}}fc=j+544|0;return 0}a=Z()|0;hd(b+24|0);hd(b+12|0);ba(a| +0);B()}function Wta(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=Q(0),l=Q(0),m=0,n=0;g=fc-48|0;fc=g;a:{b:{c:{if(!(J[c>>2]|J[c+4>>2]|N[c+8>>2]!=Q(0))){b=Qc(g+24|0,2391476,2386227,1683,2427664,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}e=J[a+12>>2];if(!e){b=Qc(g+24|0,2391904,2386227,1685,2427664,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}d:{if(J[a+56>>2])break d;J[a+32>>2]=0;J[a+24>>2]= +0;J[a+28>>2]=0;h=vc(540);J[699344]=0;i=mA(h,e);d=J[699344];J[699344]=0;e:{f:{g:{if((d|0)!=1){J[i>>2]=2427256;d=J[e+8>>2];e=J[e+4>>2];J[699344]=0;ga(5672,i+508|0,e|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){a=Z()|0;uc(h);break c}J[a+56>>2]=i;if(!J[a+20>>2])break d;e=J[a+16>>2];if(!e)break d;h=vc(540);J[699344]=0;i=mA(h,e);d=J[699344];J[699344]=0;if((d|0)==1)break g;J[i>>2]=2427256;d=J[e+8>>2];e=J[e+4>>2];J[699344]=0;ga(5672,i+508|0,e|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){a=Z()|0;uc(h);break c}J[a+ +60>>2]=i;e=vc(540);h=J[a+20>>2];J[699344]=0;i=mA(e,h);d=J[699344];J[699344]=0;if((d|0)==1)break f;J[i>>2]=2427256;d=J[h+8>>2];h=J[h+4>>2];J[699344]=0;ga(5672,i+508|0,h|0,d|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break e;a=Z()|0;uc(e);break c}a=Z()|0;uc(h);break c}a=Z()|0;uc(h);break c}a=Z()|0;uc(e);break c}J[a+64>>2]=i}e=J[a+32>>2];J[a+32>>2]=e+2;if(!J[a+28>>2])J[a+32>>2]=e+9;Ho(g+24|0);e=0;h:{i:{j:{h=J[g+24>>2];if(h){J[699344]=0;J[h+4>>2]=J[h+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break j; +e=J[g+24>>2]}J[699344]=0;J[g+16>>2]=e;ia(5214,g+20|0,g+16|0,1,1);e=J[699344];J[699344]=0;k:{l:{if((e|0)!=1){e=J[g+16>>2];i=0;J[g+16>>2]=0;m:{if(!e)break m;J[699344]=0;d=J[e+4>>2]-1|0;J[e+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break m;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}l=Q(-1);d=J[g+20>>2];n:{o:{k=N[c+8>>2];if(!(k>Q(0))){e=1;break o}e=1;if(!(k<=Q(-1)))break o;break n}while(1){if(J[c+4>>2]>0){f=J[J[h>>2]+16>>2];J[699344]=0;f=_(f|0,h|0)|0;j=J[699344]; +J[699344]=0;if((j|0)==1)break l;if(J[c+4>>2]<=(f+J[a+32>>2]|0))break n}f=J[c>>2];if((f|0)>0&(f|0)<=(J[a+24>>2]+i|0))break n;e=J[a+56>>2];f=J[J[e>>2]+8>>2];J[699344]=0;e=aa(f|0,e|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;p:{if(!e)break p;k=N[c+8>>2];if(!(k>Q(0)))break p;f=J[a+56>>2];if(+l>=+k+-5?0:J[f+8>>2])break p;l=N[a+8>>2];J[699344]=0;l=Q(Cb(5677,f|0,Q(l)));f=J[699344];J[699344]=0;if((f|0)==1)break l}q:{if(!J[a+64>>2])break q;f=J[a+60>>2];if(!f|J[a+36>>2]>(J[a+24>>2]+i|0))break q;j= +J[J[f>>2]+8>>2];J[699344]=0;f=aa(j|0,f|0,d|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break l;j=J[a+64>>2];m=J[J[j>>2]+8>>2];J[699344]=0;j=aa(m|0,j|0,d|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break l;e=f|j|e}i=i+1|0;if(e){k=N[c+8>>2];if(!(k>Q(0)))continue;if(l>=k)break n;continue}break}e=0}c=J[g+20>>2];J[g+20>>2]=0;if(!c)break k;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break k;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break k}break a}a=Z()| +0;zc(g+16|0);break h}a=Z()|0;zc(g+20|0);break h}d=K[a+28|0];c=J[b>>2];J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break i;c=J[b>>2];J[699344]=0;J[g+12>>2]=c;da(5304,c|0,d|0);d=J[699344];J[699344]=0;r:{s:{t:{u:{v:{w:{x:{if((d|0)==1)break x;J[699344]=0;da(5304,c|0,i&255);d=J[699344];J[699344]=0;if((d|0)==1)break x;J[699344]=0;J[g+12>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!d){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)== +1)break a}if(J[a+28>>2])break r;d=J[a+16>>2];f=J[a+20>>2];c=J[b>>2];J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break v;c=J[b>>2];J[699344]=0;J[g+8>>2]=c;da(5304,c|0,(f?d?1:129:129)|0);d=J[699344];J[699344]=0;if((d|0)==1)break u;J[699344]=0;da(5304,c|0,2);d=J[699344];J[699344]=0;if((d|0)==1)break u;J[699344]=0;J[g+8>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break w;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break w}break a}a= +Z()|0;zc(g+12|0);break h}c=J[a+12>>2];d=J[c+4>>2];f=J[c+8>>2];m=J[a+40>>2];j=J[a+36>>2];c=J[b>>2];J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break t;c=J[b>>2];J[699344]=0;J[g+4>>2]=c;da(5304,c|0,d>>>8&255);n=J[699344];J[699344]=0;if((n|0)==1)break s;J[699344]=0;da(5304,c|0,d&255);d=J[699344];J[699344]=0;if((d|0)==1)break s;J[699344]=0;da(5304,c|0,f>>>8&255);d=J[699344];J[699344]=0;if((d|0)==1)break s;J[699344]=0;da(5304,c|0,f&255);d=J[699344];J[699344]=0;if((d|0)==1)break s; +J[699344]=0;da(5304,c|0,((j|0)>0?j:0)&255|!m<<7);d=J[699344];J[699344]=0;if((d|0)==1)break s;J[699344]=0;J[g+4>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break r;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break r}break a}a=Z()|0;break h}a=Z()|0;zc(g+8|0);break h}a=Z()|0;break h}a=Z()|0;zc(g+4|0);break h}c=J[J[h>>2]+20>>2];J[699344]=0;ha(c|0,h|0,0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;b=J[b>>2];J[699344]=0;ga(5335,b|0,h|0,0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break i;b=J[J[h>>2]+16>>2];J[699344]=0;b=_(b|0,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;J[a+32>>2]=b+J[a+32>>2];J[a+24>>2]=J[a+24>>2]+i;J[a+28>>2]=J[a+28>>2]+1;a=J[g+24>>2];J[g+24>>2]=0;y:{if(!a)break y;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break y;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=g+48|0;return e|0}a=Z()|0;break h}a=Z()|0}zc(g+24|0)}ba(a|0)}B()}ea(0)|0;Bc();B()}function Mcb(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;f=fc-16|0;fc=f;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;d=J[b+8>>2];m=a+20|0;J[m>>2]=0;c=a+12|0;J[c>>2]=0;J[c+4>>2]=0;J[a+8>>2]=d;H[f+12|0]=0;J[f+8>>2]=c;e=J[b+16>>2];k=J[b+12>>2];l=e-k|0;d=(l|0)/12|0;a:{if((e|0)!=(k|0)){b:{c:{d:{if(d>>>0>=357913942){J[699344]=0;$(2357,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break d;break a}J[699344]=0;c=_(4,l|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;J[a+16>>2]=c;J[a+12>>2]=c;J[a+20>> +2]=c+P(d,12);d=J[b+16>>2];e=J[b+12>>2];J[699344]=0;d=ha(2264,m|0,e|0,d|0,c|0)|0;m=J[699344];J[699344]=0;if((m|0)!=1)break b;d=Z()|0;J[a+16>>2]=c;break c}d=Z()|0}cn(f+8|0);ba(d|0);B()}J[a+16>>2]=d}c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;J[a+48>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;m=a+40|0;e:{f:{c=J[b+44>>2];d=J[b+40>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>2;if(d>>>0>=1073741824){J[699344]=0;$(2269,m|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break f}J[699344]= +0;c=_(4,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;J[a+44>>2]=c;J[a+40>>2]=c;J[a+48>>2]=(d<<2)+c;d=J[b+40>>2];e=J[b+44>>2];if((d|0)!=(e|0))while(1){N[c>>2]=N[d>>2];c=c+4|0;d=d+4|0;if((e|0)!=(d|0))continue;break}J[a+44>>2]=c}J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;e=a+52|0;g:{h:{c=J[b+56>>2];d=J[b+52>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>2;if(d>>>0>=1073741824){J[699344]=0;$(2269,e|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break h}J[699344]=0;c=_(4,c|0)|0;k=J[699344];J[699344]=0;if((k|0)== +1)break h;J[a+56>>2]=c;J[a+52>>2]=c;J[a+60>>2]=(d<<2)+c;d=J[b+52>>2];k=J[b+56>>2];if((d|0)!=(k|0))while(1){N[c>>2]=N[d>>2];c=c+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}J[a+56>>2]=c}c=J[b+68>>2];J[a+64>>2]=J[b+64>>2];J[a+68>>2]=c;J[a+80>>2]=J[b+80>>2];c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;J[a+92>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;k=a+84|0;i:{j:{c=J[b+88>>2];d=J[b+84>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>3;if(d>>>0>=536870912){J[699344]=0;$(2267,k|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a; +break j}J[699344]=0;c=_(4,c|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break j;J[a+88>>2]=c;J[a+84>>2]=c;J[a+92>>2]=(d<<3)+c;d=J[b+84>>2];l=J[b+88>>2];if((d|0)!=(l|0))while(1){i=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=i;c=c+8|0;d=d+8|0;if((l|0)!=(d|0))continue;break}J[a+88>>2]=c}J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;l=a+96|0;k:{l:{c=J[b+100>>2];d=J[b+96>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>2;if(d>>>0>=1073741824){J[699344]=0;$(2268,l|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break l}J[699344]=0;c= +_(4,c|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break l;J[a+100>>2]=c;J[a+96>>2]=c;J[a+104>>2]=(d<<2)+c;d=J[b+96>>2];j=J[b+100>>2];if((d|0)!=(j|0))while(1){i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[c|0]=i;H[c+1|0]=i>>>8;H[c+2|0]=i>>>16;H[c+3|0]=i>>>24;c=c+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}J[a+100>>2]=c}J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;i=a+108|0;m:{n:{c=J[b+112>>2];d=J[b+108>>2];if((c|0)!=(d|0)){c=c-d|0;d=c>>2;if(d>>>0>=1073741824){J[699344]=0;$(2269,i|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break a;break n}J[699344]=0;c=_(4,c|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break n;J[a+112>>2]=c;J[a+108>>2]=c;J[a+116>>2]=(d<<2)+c;d=J[b+108>>2];j=J[b+112>>2];if((d|0)!=(j|0))while(1){N[c>>2]=N[d>>2];c=c+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}J[a+112>>2]=c}J[a+120>>2]=0;J[a+124>>2]=0;n=a+128|0;J[n>>2]=0;H[f+12|0]=0;j=a+120|0;J[f+8>>2]=j;c=J[b+124>>2];g=J[b+120>>2];h=c-g|0;d=(h|0)/12|0;o:{p:{q:{if((c|0)!=(g|0)){if(d>>>0>=357913942){J[699344]=0;$(2358,j|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break a;break q}J[699344]=0;c=_(4,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break q;J[a+124>>2]=c;J[a+120>>2]=c;J[a+128>>2]=c+P(d,12);d=J[b+124>>2];g=J[b+120>>2];J[699344]=0;d=ha(2265,n|0,g|0,d|0,c|0)|0;n=J[699344];J[699344]=0;if((n|0)==1){d=Z()|0;J[a+124>>2]=c;break p}J[a+124>>2]=d}J[a+132>>2]=0;J[a+136>>2]=0;g=a+140|0;J[g>>2]=0;H[f+12|0]=0;n=a+132|0;J[f+8>>2]=n;c=J[b+136>>2];h=J[b+132>>2];o=c-h|0;d=(o|0)/12|0;r:{s:{if((c|0)!=(h|0)){if(d>>>0>=357913942){J[699344]=0;$(2357,n|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break a;break s}J[699344]=0;c=_(4,o|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break s;J[a+136>>2]=c;J[a+132>>2]=c;J[a+140>>2]=c+P(d,12);d=J[b+136>>2];h=J[b+132>>2];J[699344]=0;d=ha(2264,g|0,h|0,d|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){d=Z()|0;J[a+136>>2]=c;break r}J[a+136>>2]=d}J[a+144>>2]=0;J[a+148>>2]=0;g=a+152|0;J[g>>2]=0;H[f+12|0]=0;c=a+144|0;J[f+8>>2]=c;h=J[b+148>>2];o=J[b+144>>2];p=h-o|0;d=(p|0)/12|0;t:{u:{if((h|0)!=(o|0)){if(d>>>0>=357913942){J[699344]=0;$(2359, +c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break u}J[699344]=0;c=_(4,p|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break u;J[a+148>>2]=c;J[a+144>>2]=c;J[a+152>>2]=c+P(d,12);d=J[b+148>>2];b=J[b+144>>2];J[699344]=0;b=ha(2266,g|0,b|0,d|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1){d=Z()|0;J[a+148>>2]=c;break t}J[a+148>>2]=b}fc=f+16|0;return a|0}d=Z()|0}cn(f+8|0);jj(n);jj(j);break o}d=Z()|0}cn(f+8|0);jj(j);break o}d=Z()|0}cn(f+8|0)}b=J[i>>2];if(!b)break m;J[a+112>>2]=b;uc(b);break m}d=Z()|0;b=J[i>> +2];if(!b)break m;J[a+112>>2]=b;uc(b)}b=J[l>>2];if(!b)break k;J[a+100>>2]=b;uc(b);break k}d=Z()|0;b=J[l>>2];if(!b)break k;J[a+100>>2]=b;uc(b)}b=J[k>>2];if(!b)break i;J[a+88>>2]=b;uc(b);break i}d=Z()|0;b=J[k>>2];if(!b)break i;J[a+88>>2]=b;uc(b)}b=J[e>>2];if(!b)break g;J[a+56>>2]=b;uc(b);break g}d=Z()|0;b=J[e>>2];if(!b)break g;J[a+56>>2]=b;uc(b)}b=J[m>>2];if(!b)break e;J[a+44>>2]=b;uc(b);break e}d=Z()|0;b=J[m>>2];if(!b)break e;J[a+44>>2]=b;uc(b)}xk(a+8|0);ba(d|0);B()}B()}function el(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;e=fc-48|0;fc=e;f=!a;a:{if(f)break a;c=f?0:J[a+36>>2];if(!c){if(a)J[a+16>>2]=J[a+16>>2]+1;h=a;break a}Df(a,e+32|0,e+28|0,e+24|0);f=J[e+24>>2];if(f>>>0>8|!(1<>2]=0;J[g>>2]=0;J[k>>2]=0;if(!c)break b;p=J[c+12>>2];q=kd(p,4);if(!q)break b;m=kd(p,4);if(!m)break b;d=kd(p,4);if(!d)break b;J[k>>2]=q;J[g>>2]=m;J[n>>2]=d;f=0;if((p|0)<=0)break b;j=J[c>>2];k=0;if((p|0)!=1){n=p&-2;while(1){i= +k<<2;g=i+j|0;J[i+q>>2]=K[g+2|0];J[i+m>>2]=K[g+1|0];J[d+i>>2]=K[g|0];i=i|4;g=i+j|0;J[i+q>>2]=K[g+2|0];J[i+m>>2]=K[g+1|0];J[d+i>>2]=K[g|0];k=k+2|0;l=l+2|0;if((n|0)!=(l|0))continue;break}}if(!(p&1))break b;k=k<<2;l=k+j|0;J[k+q>>2]=K[l+2|0];J[k+m>>2]=K[l+1|0];J[d+k>>2]=K[l|0]}if(f)break a;c:{d:{e:{f:{g:{if(!(!(!b&J[e+24>>2]!=1)&b>>>0<=2)){q9(c,e+20|0);if(!J[e+20>>2])break g;f=c?J[c+12>>2]:0;l=a?J[a+40>>2]:0;k=a?J[a+12>>2]:-1;break d}f=c?J[c+12>>2]:0;l=a?J[a+40>>2]:0;k=a?J[a+12>>2]:-1;switch((b>>>0>=3? +3:b)|0){case 0:break e;case 1:break f;default:break d}}b=J[e+24>>2];f=c?J[c+12>>2]:0;l=a?J[a+40>>2]:0;k=a?J[a+12>>2]:-1;if((b|0)==1)break e}g=xh(J[e+32>>2],J[e+28>>2],8);if(!g)break a;if(!(!g|!a|(a|0)==(g|0))){J[g+20>>2]=J[a+20>>2];J[g+24>>2]=J[a+24>>2]}n=g?J[g+40>>2]:0;a=g?J[g+12>>2]:-1;d=kd(f,4);if(!d)break a;f=0;if(((c?J[c+12>>2]:0)|0)>0)while(1){b=f<<2;J[b+d>>2]=(J[b+J[e+8>>2]>>2]+(J[b+J[e+16>>2]>>2]+(J[b+J[e+12>>2]>>2]<<1)|0)|0)/4;f=f+1|0;if((f|0)<((c?J[c+12>>2]:0)|0))continue;break}if(J[e+28>> +2]>0)while(1){j=n+(P(a,o)<<2)|0;i=(P(k,o)<<2)+l|0;h=0;h:{i:{j:{k:switch(J[e+24>>2]-1|0){case 7:b=0;f=0;h=J[e+32>>2];if((h|0)>3)break j;break i;case 3:f=0;b=J[e+32>>2];if((b|0)>7)while(1){b=j+(f<<3)|0;c=J[i+(f<<2)>>2];J[b>>2]=J[d+(c>>>22&60)>>2]<<16|J[d+(c>>>26&60)>>2]<<24|J[d+(c>>>18&60)>>2]<<8|J[d+(c>>>14&60)>>2];J[b+4>>2]=J[d+((c&15)<<2)>>2]|(J[d+(c>>>6&60)>>2]<<16|J[d+(c>>>10&60)>>2]<<24|J[d+(c>>>2&60)>>2]<<8);f=f+1|0;b=J[e+32>>2];h=h+8|0;if((b|0)>(h|7))continue;break}if((b|0)<=(h|0))break h;while(1){b= +J[d+((J[i+(h>>>1&2147483644)>>2]>>>((h^-1)<<2)&15)<<2)>>2];J[e+40>>2]=b;H[h+j^3]=b;h=h+1|0;if((h|0)>2])continue;break}break h;case 1:f=0;b=J[e+32>>2];if((b|0)>15)while(1){b=j+(f<<4)|0;c=J[i+(f<<2)>>2];J[b>>2]=J[d+(c>>>26&12)>>2]<<16|J[d+(c>>>28&12)>>2]<<24|J[d+(c>>>24&12)>>2]<<8|J[d+(c>>>22&12)>>2];J[b+4>>2]=J[d+(c>>>14&12)>>2]|(J[d+(c>>>18&12)>>2]<<16|J[d+(c>>>20&12)>>2]<<24|J[d+(c>>>16&12)>>2]<<8);J[b+8>>2]=J[d+(c>>>6&12)>>2]|(J[d+(c>>>10&12)>>2]<<16|J[d+(c>>>12&12)>>2]<<24|J[d+(c>>>8&12)>> +2]<<8);J[b+12>>2]=J[d+((c&3)<<2)>>2]|(J[d+(c>>>2&12)>>2]<<16|J[d+(c>>>4&12)>>2]<<24|J[d+(c&12)>>2]<<8);f=f+1|0;b=J[e+32>>2];h=h+16|0;if((b|0)>(h|15))continue;break}if((b|0)<=(h|0))break h;while(1){b=J[d+((J[i+(h>>>2&1073741820)>>2]>>>((h^-1)<<1)&3)<<2)>>2];J[e+40>>2]=b;H[h+j^3]=b;h=h+1|0;if((h|0)>2])continue;break}break h;case 0:break k;default:break a}f=0;b=J[e+32>>2];if((b|0)>31)while(1){b=j+(h<<5)|0;c=J[i+(h<<2)>>2];J[b>>2]=J[d+(c>>>28&4)>>2]<<16|J[d+(c>>>29&4)>>2]<<24|J[d+(c>>>27&4)>> +2]<<8|J[d+(c>>>26&4)>>2];J[b+4>>2]=J[d+(c>>>22&4)>>2]|(J[d+(c>>>24&4)>>2]<<16|J[d+(c>>>25&4)>>2]<<24|J[d+(c>>>23&4)>>2]<<8);J[b+8>>2]=J[d+(c>>>18&4)>>2]|(J[d+(c>>>20&4)>>2]<<16|J[d+(c>>>21&4)>>2]<<24|J[d+(c>>>19&4)>>2]<<8);J[b+12>>2]=J[d+(c>>>14&4)>>2]|(J[d+(c>>>16&4)>>2]<<16|J[d+(c>>>17&4)>>2]<<24|J[d+(c>>>15&4)>>2]<<8);J[b+16>>2]=J[d+(c>>>10&4)>>2]|(J[d+(c>>>12&4)>>2]<<16|J[d+(c>>>13&4)>>2]<<24|J[d+(c>>>11&4)>>2]<<8);J[b+20>>2]=J[d+(c>>>6&4)>>2]|(J[d+(c>>>8&4)>>2]<<16|J[d+(c>>>9&4)>>2]<<24|J[d+ +(c>>>7&4)>>2]<<8);J[b+24>>2]=J[d+(c>>>2&4)>>2]|(J[d+(c>>>4&4)>>2]<<16|J[d+(c>>>5&4)>>2]<<24|J[d+(c>>>3&4)>>2]<<8);J[b+28>>2]=J[d+((c&1)<<2)>>2]|(J[d+(c&4)>>2]<<16|J[d+(c>>>1&4)>>2]<<24|J[d+(c<<1&4)>>2]<<8);h=h+1|0;b=J[e+32>>2];f=f+32|0;if((b|0)>(f|31))continue;break}if((b|0)<=(f|0))break h;while(1){b=J[d+((J[i+(f>>>3&536870908)>>2]>>>(f^-1)&1)<<2)>>2];J[e+40>>2]=b;H[f+j^3]=b;f=f+1|0;if((f|0)>2])continue;break}break h}while(1){h=f<<2;c=J[h+i>>2];J[h+j>>2]=J[d+((c&255)<<2)>>2]|(J[d+(c>>>14& +1020)>>2]<<16|J[d+(c>>>22&1020)>>2]<<24|J[d+(c>>>6&1020)>>2]<<8);f=f+1|0;h=J[e+32>>2];b=b+4|0;if((h|0)>(b|3))continue;break}}if((b|0)>=(h|0))break h;while(1){f=J[d+(K[b+i^3]<<2)>>2];J[e+40>>2]=f;H[b+j^3]=f;b=b+1|0;if((b|0)>2])continue;break}}o=o+1|0;if((o|0)>2])continue;break}uc(d);break c}g=Ff(0,a);if(!g)break a;Lq(c,0,e+44|0,e+40|0,e+36|0);if(!J[e+44>>2])dO(g,g);b=fc-16|0;fc=b;l:{if(!g)break l;a=J[g+36>>2];J[b+12>>2]=a;if(!a)break l;np(b+12|0);J[g+36>>2]=0}fc=b+16|0;break c}g=xh(J[e+ +32>>2],J[e+28>>2],32);if(!g)break a;if(!(!g|!a|(a|0)==(g|0))){J[g+20>>2]=J[a+20>>2];J[g+24>>2]=J[a+24>>2]}c=g?J[g+40>>2]:0;n=g?J[g+12>>2]:-1;m=kd(f,4);if(!m)break a;b=0;if((f|0)>0)while(1){a=b<<2;d=J[a+J[e+16>>2]>>2];j=J[a+J[e+12>>2]>>2];i=J[a+J[e+8>>2]>>2];a=a+m|0;if(a)J[a>>2]=j<<16|d<<24|i<<8;b=b+1|0;if((f|0)!=(b|0))continue;break}a=J[e+28>>2];m:{if((a|0)<=0)break m;b=J[e+32>>2];if((b|0)<=0)break m;while(1){if((b|0)>0){i=c+(P(n,o)<<2)|0;j=(P(k,o)<<2)+l|0;a=0;while(1){n:{o:switch(J[e+24>>2]-1|0){case 7:d= +K[a+j^3];break n;case 3:d=J[j+(a>>>1&2147483644)>>2]>>>((a^-1)<<2)&15;break n;case 1:d=J[j+(a>>>2&1073741820)>>2]>>>((a^-1)<<1)&3;break n;case 0:break o;default:break a}d=J[j+(a>>>3&536870908)>>2]>>>(a^-1)&1}if((d|0)<(f|0)){J[i+(a<<2)>>2]=J[m+(d<<2)>>2];b=J[e+32>>2]}a=a+1|0;if((b|0)>(a|0))continue;break}a=J[e+28>>2]}o=o+1|0;if((o|0)<(a|0))continue;break}}uc(m)}uc(J[e+16>>2]);uc(J[e+12>>2]);uc(J[e+8>>2]);h=g}fc=e+48|0;return h}function h$(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,N=0,Q=0,R=0;e=fc-800|0;fc=e;J[e+16>>2]=13;J[e>>2]=13;h=828796;a:{b:{c:{d:{e:{f:{g:{j=e+16|0;if(J[Ec(b,828470,j,0)>>2]!=1)break g;h=829754;m=J[e+24>>2];if(m-33>>>0<4294967264)break g;yc(j);h=830420;if(J[Ec(b,829956,j,0)>>2]!=1)break g;h=831075;p=J[e+24>>2];if(p-17>>>0<4294967280)break g;yc(j);h:{if((a|0)==4){h=831640;if(J[Ec(b,831366,j,0)>>2]!=1)break g;h=831957;q=J[e+24>>2];if(q-9>>>0<4294967289)break g;yc(j);break h}h= +832716;j=e+16|0;if(J[Ec(b,832468,j,0)>>2]!=1)break g;w=J[e+24>>2];yc(j);h=833120;if((w|0)<2)break g}h=833696;if(J[Ec(b,833461,e+16|0,0)>>2]!=6)break g;j=J[e+24>>2];if(J[j+12>>2]<6)break g;d=Sc(j,0,e,0);L=O[d+8>>3];A=J[d+8>>2];C=J[d>>2];yc(e);d=Sc(J[e+24>>2],1,e,0);N=O[d+8>>3];i=J[d+8>>2];E=J[d>>2];yc(e);Q=Dv(m);d=Sc(J[e+24>>2],2,e,0);F=J[d>>2];R=O[d+8>>3];G=J[d+8>>2];yc(e);d=Sc(J[e+24>>2],3,e,0);o=J[d>>2];D=O[d+8>>3];k=J[d+8>>2];yc(e);j=0;d=J[e+24>>2];i:{if(J[d+12>>2]<6)break i;H=+(-1<>2]==1?+J[d+8>>2]:O[d+8>>3];O[l+(e+416|0)>>3]=t;yc(e);d=Sc(J[e+24>>2],f,e,0);j=J[d>>2];x=O[d+8>>3];d=J[d+8>>2];yc(e);O[l+(e+160|0)>>3]=(((j|0)==1?+(d|0):x)-t)/H;j=h+1|0;if(h>>>0>30)break i;h=j;n=j<<1;f=n+5|0;d=J[e+24>>2];if((f|0)>2])continue;break}}d=e+16|0;yc(d);if(J[Ec(b,824574,d,0)>>2]==5)break d;if(J[e+16>>2]!=6)break e;u=J[J[e+24>>2]+12>>2];if((u|0)>32)break f;h=0;if((u|0)<=0)break d;while(1){Sc(J[e+24>>2],h,e,0);d=fi(e,1,1,0);J[(e+672|0)+(h<< +2)>>2]=d;if(!d){yc(e+16|0);yc(e);d=0;break c}yc(e);h=h+1|0;if((u|0)!=(h|0))continue;break}break d}Cc(1,-1,h,0);yc(e+16|0);break c}d=0;Cc(1,-1,825424,0);break c}d=0;u=1;l=e+16|0;h=fi(l,1,-1,0);J[e+672>>2]=h;if(h)break d;yc(l);break c}yc(e+16|0);g=vc(12);J[g>>2]=c;d=J[J[c>>2]+20>>2];J[699344]=0;$(d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;t=(o|0)==1?+(k|0):D;D=(F|0)==1?+(G|0):R;x=Q+-1;H=(t-D)/x;t=(C|0)==1?+(A|0):L;x=(((E|0)==1?+(i|0):N)-t)/x;J[g+4>>2]=0;J[g+8>>2]=0;E=j&-2;F=j&1;G=-1<=(q|0)){f=f-q|0;r=J[g+4>>2]>>f&o;J[g+8>>2]=f;break k}l:{if((f|0)<=0){r=0;d=q;break l}J[g+8>>2]=0;d=q-f|0;r=J[g+4>>2]&(-1<>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[g+4>>2]=c;if((c|0)==-1)break j;if(d>>>0<=7){f=8-d|0;r=r<>f;J[g+8>>2]=f;break k}r=c|r<<8;c=(d|0)>8;d=d-8|0;if(c)continue;break}f=J[g+8>>2]}m:{if((f|0)>=(m|0)){f=f-m|0;k=A&J[g+4>>2]>>f;J[g+8>>2]=f;break m}n:{if((f| +0)<=0){k=0;d=m;break n}J[g+8>>2]=0;d=m-f|0;k=J[g+4>>2]&(-1<>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[g+4>>2]=c;if((c|0)==-1)break j;if(d>>>0<=7){f=8-d|0;k=k<>f;J[g+8>>2]=f;break m}k=c|k<<8;c=(d|0)>8;d=d-8|0;if(c)continue;break}f=J[g+8>>2]}o:{p:{if((f|0)>=(m|0)){f=f-m|0;i=A&J[g+4>>2]>>f;break p}q:{if((f|0)<=0){i=0;d=m;break q}J[g+8>>2]=0;i=J[g+4>>2]&(-1<>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[g+4>>2]=c;if((c|0)== +-1)break j;if(d>>>0<=7){f=8-d|0;i=i<>f;break p}i=c|i<<8;c=(d|0)>8;d=d-8|0;if(c)continue;break}break o}J[g+8>>2]=f}n=0;if(j)while(1){r:{s:{c=J[g+8>>2];if((c|0)>=(p|0)){c=c-p|0;f=J[g+4>>2]>>c&G;break s}t:{if((c|0)<=0){f=0;d=p;break t}J[g+8>>2]=0;f=J[g+4>>2]&(-1<>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[g+4>>2]=c;if((c|0)==-1)break j;if(d>>>0<=7){I=c;c=8-d|0;f=f<>c;break s}f=c|f<<8;c=(d|0)>8;d=d-8|0;if(c)continue;break}break r}J[g+8>>2]=c}J[(e+32|0)+ +(n<<2)>>2]=f;n=n+1|0;if((n|0)!=(j|0))continue;break}if((l|0)==(y|0)){y=l?l<<1:16;K=Wd(K,y,272)}n=P(l,272)+K|0;O[n+8>>3]=H*+(i>>>0)+D;O[n>>3]=x*+(k>>>0)+t;u:{if(!j)break u;d=0;f=0;if((j|0)!=1)while(1){c=n+16|0;i=d<<3;k=e+32|0;O[c+i>>3]=O[i+(e+160|0)>>3]*+M[k+(d<<2)>>2]+O[i+(e+416|0)>>3];I=c;c=d|1;i=c<<3;O[I+i>>3]=O[i+(e+160|0)>>3]*+M[k+(c<<2)>>2]+O[i+(e+416|0)>>3];d=d+2|0;f=f+2|0;if((E|0)!=(f|0))continue;break}if(!F)break u;c=d<<3;O[(c+n|0)+16>>3]=O[c+(e+160|0)>>3]*+M[(e+32|0)+(d<<2)>>2]+O[c+(e+416| +0)>>3]}J[g+4>>2]=0;J[g+8>>2]=0;d=l+1|0;f=0;if(C)continue;break}if(h>>>0<=1){c=h+1|0;continue}if((h|0)!=2){c=1;if(!r)continue}if((s|0)==(z|0)){z=s?s<<1:16;v=Wd(v,P(z,3),4)}i=P(s,12)+v|0;v:{if((h|0)==2){J[i>>2]=l-2;k=l-1|0;c=3;break v}k=s-1|0;c=i-4|0;w:{if((r|0)==1){J[i>>2]=J[(P(k,12)+v|0)+4>>2];break w}J[i>>2]=J[P(k,12)+v>>2]}k=J[c>>2];c=h}J[i+4>>2]=k;J[i+8>>2]=l;s=s+1|0;f=J[g+8>>2];continue}break}J[g+8>>2]=0;d=J[g>>2];c=J[J[d>>2]+24>>2];J[699344]=0;$(c|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break b; +uc(g);x:{if((a|0)!=5)break x;d=(l>>>0)/(w>>>0)|0;k=d-1|0;z=w-1|0;c=P(k,z);s=c<<1;v=Gd(P(c,6),4);if(d>>>0<2|w>>>0<2)break x;c=0;i=0;while(1){p=P(i,w);i=i+1|0;q=P(w,i);d=0;while(1){o=P(c,12)+v|0;y=d+q|0;J[o+8>>2]=y;m=d+p|0;h=m+1|0;J[o+4>>2]=h;J[o>>2]=m;J[o+12>>2]=h;J[o+16>>2]=y;J[o+20>>2]=y+1;c=c+2|0;d=d+1|0;if((z|0)!=(d|0))continue;break}if((i|0)<(k|0))continue;break}}c=vc(336);J[c+8>>2]=0;J[c+4>>2]=a;J[c+328>>2]=u;J[c+324>>2]=j;J[c+192>>2]=s;J[c+188>>2]=v;J[c+184>>2]=l;J[c+180>>2]=K;J[c>>2]=2218316; +if((u|0)>0)xc(c+196|0,e+672|0,u<<2);y:{if(Ew(c,b)){d=0;if(J[c+328>>2]>0)break y;d=c;break c}kc[J[J[c>>2]+4>>2]](c);d=0;break c}z:{while(1){a=J[c+8>>2];if(J[J[(c+(d<<2)|0)+196>>2]+8>>2]!=(kc[J[J[a>>2]+28>>2]](a)|0))break z;d=d+1|0;if((d|0)>2])continue;break}d=c;break c}d=0;Cc(1,-1,825732,0);kc[J[J[c>>2]+4>>2]](c)}fc=e+800|0;return d}ea(0)|0;Bc();B()}a=Z()|0;uc(g);ba(a|0);B()}function sE(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;p=fc-992|0;fc=p;a:{b:{q= +J[a+4>>2];if(q){i=J[a+20>>2];k=J[a+16>>2];e=xf(p+16|0,0);J[699344]=0;da(153,e|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;b=L[a+26>>1];c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;c=J[a+68>>2];h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;na(78,e|0,i|0,k|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;b=J[a+4>>2];c=J[a+44>>2];h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;ca(19,e|0,(b?c?b+40|0:0:0)|0,256);b=J[699344];J[699344]= +0;if((b|0)==1)break b;J[699344]=0;b=J[a+964>>2];c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b){J[699344]=0;_(123,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]=0;b=J[a+960>>2];c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b){J[699344]=0;_(163,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}c:{if(L[a+26>>1]!=1){if((i|0)<=0|(k|0)<=0)break c;h=0;while(1){l=h- -64|0;g=(i|0)<(l|0)?i:l;b=0;while(1){m=b- -64|0;n=(k|0)<(m|0)?k:m;d=h;d:{if(L[a+26>>1]==24)while(1){J[a+328>>2]=(P(d,100)| +0)/(i|0);J[699344]=0;if(J[e+44>>2])c=0;else c=(J[e+56>>2]+P(J[e+52>>2],b)|0)+P(d,3)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[699344]=0;if(J[a+44>>2])f=0;else f=(J[a+56>>2]+P(J[a+52>>2],(d^-1)+i|0)|0)+P(b,3)|0;o=J[699344];J[699344]=0;j=b;if((o|0)==1)break b;while(1){H[c|0]=K[f|0];H[c+1|0]=K[f+1|0];H[c+2|0]=K[f+2|0];f=f+3|0;c=J[e+52>>2]+c|0;j=j+1|0;if((n|0)>(j|0))continue;break}d=d+1|0;if((g|0)>(d|0))continue;break d}while(1){J[a+328>>2]=(P(d,100)|0)/(i|0);f=(d^-1)+i|0;c=b;while(1){J[699344]= +0;j=vp(a,c,f);o=J[699344];J[699344]=0;if((o|0)==1)break b;J[699344]=0;jn(e,d,c,j);j=J[699344];J[699344]=0;if((j|0)==1)break b;c=c+1|0;if((n|0)>(c|0))continue;break}d=d+1|0;if((g|0)>(d|0))continue;break}}J[699344]=0;c=J[a+964>>2];d=J[699344];J[699344]=0;if((d|0)==1)break b;e:{if(!c)break e;c=b- -64|0;f=(c|0)>(k|0)?k:c;d=h;while(1){j=(d^-1)+i|0;c=b;f:{while(1){J[699344]=0;n=K[(J[a+964>>2]+P(j,J[a+16>>2])|0)+c|0];o=J[699344];J[699344]=0;if((o|0)==1)break f;J[699344]=0;yh(e,d,c,n);n=J[699344];J[699344]= +0;if((n|0)==1)break f;c=c+1|0;if((f|0)>(c|0))continue;break}d=d+1|0;if((g|0)<=(d|0))break e;continue}break}break b}J[699344]=0;c=J[a+960>>2];d=J[699344];J[699344]=0;if((d|0)==1)break b;g:{if(!c)break g;J[e+372>>2]=i-J[a+376>>2];J[e+380>>2]=i-J[a+384>>2];J[e+384>>2]=J[a+372>>2];J[e+376>>2]=J[a+380>>2];c=b- -64|0;f=(c|0)>(k|0)?k:c;d=h;while(1){j=(d^-1)+i|0;c=b;h:{while(1){J[699344]=0;n=K[(J[a+960>>2]+P(j,J[a+16>>2])|0)+c|0];o=J[699344];J[699344]=0;if((o|0)==1)break h;J[699344]=0;yy(e,d,c,n);n=J[699344]; +J[699344]=0;if((n|0)==1)break h;c=c+1|0;if((f|0)>(c|0))continue;break}d=d+1|0;if((g|0)<=(d|0))break g;continue}break}break b}b=m;if((k|0)>(b|0))continue;break}h=l;if((i|0)>(h|0))continue;break}break c}J[699344]=0;n=mf(a,0);b=J[699344];J[699344]=0;i:{if((b|0)!=1){J[699344]=0;h=mf(e,0);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[e+32>>2];c=J[e+16>>2];d=J[e+52>>2];J[699344]=0;Oy(e,0);f=J[699344];J[699344]=0;if((f|0)==1)break b;if(J[a+20>>2]>0){o=(d<<3)-c|0;d=(b+h|0)-1|0;while(1){J[699344]=0;b=j+ +o|0;c=(b|0)/8|0;J[p+8>>2]=c;J[p+12>>2]=b-(c<<3);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[a+52>>2];if((b|0)>0){r=n+P(b,j)|0;c=0;s=0-J[p+8>>2]|0;l=1<>2];while(1){f=J[e+52>>2];b=((f+(h+(P(c,f)<<3)|0)|0)+s|0)-1|0;j:{if(b>>>0>>0|b>>>0>d>>>0)break j;m=c+r|0;if(H[m|0]<0){H[b|0]=l|K[b|0];f=J[e+52>>2]}g=b+f|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&64){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+(f<<1)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&32){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,3)|0; +if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&16){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+(f<<2)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&8){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,5)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&4){H[g|0]=l|K[g|0];f=J[e+52>>2]}g=b+P(f,6)|0;if(g>>>0>>0|d>>>0>>0)break j;if(K[m|0]&2){H[g|0]=l|K[g|0];f=J[e+52>>2]}b=P(f,7)+b|0;if(!(H[m|0]&1)|(b>>>0>>0|b>>>0>d>>>0))break j;H[b|0]=l|K[b|0]}c=c+1|0;if((c|0)>2])continue;break}}j=j+1|0;if((j|0)>2])continue; +break}}d=0;J[699344]=0;b=J[a+964>>2];c=J[699344];J[699344]=0;if((c|0)==1)break b;if(!(!b|(k|0)<=0|(i|0)<=0))while(1){b=(d^-1)+i|0;c=0;while(1){J[699344]=0;h=K[(J[a+964>>2]+P(b,J[a+16>>2])|0)+c|0];f=J[699344];J[699344]=0;if((f|0)==1)break b;J[699344]=0;yh(e,d,c,h);h=J[699344];J[699344]=0;if((h|0)==1)break b;c=c+1|0;if((k|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}J[699344]=0;b=J[a+960>>2];c=J[699344];J[699344]=0;if((c|0)==1)break b;if(!b)break c;J[e+372>>2]=i-J[a+376>>2];J[e+380>> +2]=i-J[a+384>>2];J[e+384>>2]=J[a+372>>2];J[e+376>>2]=J[a+380>>2];if((i|0)<=0|(k|0)<=0)break c;d=0;while(1){b=(d^-1)+i|0;c=0;while(1){J[699344]=0;h=K[(J[a+960>>2]+P(b,J[a+16>>2])|0)+c|0];f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;yy(e,d,c,h);h=J[699344];J[699344]=0;if((h|0)==1)break i;c=c+1|0;if((k|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}break c}break b}break b}J[699344]=0;ga(108,a|0,e|0,1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[e>>2]=1032;J[699344]=0; +_(13,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;J[699344]=0;_(14,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=p+992|0;return(q|0)!=0}a=Z()|0;J[e>>2]=1032;J[699344]=0;_(13,e|0)|0;b=J[699344];J[699344]=0;k:{if((b|0)==1)break k;J[699344]=0;_(14,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;ba(a|0);B()}}ea(0)|0;Bc();B()}function oaa(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=J[c+88>>2];e=J[b+88>>2];a:{b:{c:{d:{if(K[a+460|0]|!(K[a+496|0]|K[a+476|0]))break d;e:{if(!K[f+55| +0])break e;f:{g:{if(!K[e+55|0]){g=J[f+64>>2];break g}g=J[f+64>>2];if(g>>>0<=M[e+64>>2])break f}J[e+64>>2]=g;g=J[f+64>>2]}H[e+55|0]=1;if(!g)break e;if((g|0)!=1){m=g&-2;while(1){j=e+68|0;h=P(d,3);i=j+h|0;k=f+68|0;h=h+k|0;H[i|0]=K[h|0];H[i+1|0]=K[h+1|0];H[i+2|0]=K[h+2|0];h=P(d|1,3);i=h+j|0;h=h+k|0;H[i|0]=K[h|0];H[i+1|0]=K[h+1|0];H[i+2|0]=K[h+2|0];d=d+2|0;l=l+2|0;if((m|0)!=(l|0))continue;break}}if(!(g&1))break e;g=P(d,3);d=g+e|0;g=f+g|0;H[d+68|0]=K[g+68|0];H[d+69|0]=K[g+69|0];H[d+70|0]=K[g+70|0]}if(K[f+ +56|0]){h:{i:switch(K[a+325|0]){case 0:d=L[f+836>>1];I[e+838>>1]=0;I[e+840>>1]=0;I[e+842>>1]=0;I[e+844>>1]=0;I[e+836>>1]=d;I[e+846>>1]=0;break h;case 2:I[e+836>>1]=0;I[e+838>>1]=L[f+838>>1];I[e+840>>1]=L[f+840>>1];d=L[f+842>>1];J[e+844>>2]=0;I[e+842>>1]=d;break h;case 3:break i;default:break h}J[e+836>>2]=0;J[e+840>>2]=0;j:{k:{if(!K[e+56|0]){d=J[f+844>>2];break k}d=J[f+844>>2];if(d>>>0<=M[e+844>>2])break j}J[e+844>>2]=d;d=J[f+844>>2]}xc(e+848|0,f+848|0,d)}H[e+56|0]=1}if(K[f+61|0]){H[e+61|0]=1;H[e+ +1152|0]=K[f+1152|0];I[e+1154>>1]=L[f+1154>>1];I[e+1156>>1]=L[f+1156>>1];I[e+1158>>1]=L[f+1158>>1];I[e+1160>>1]=L[f+1160>>1]}if(K[f+57|0]){H[e+57|0]=1;J[e+1104>>2]=J[f+1104>>2]}if(K[f+58|0]){H[e+58|0]=1;J[e+1108>>2]=J[f+1108>>2];J[e+1112>>2]=J[f+1112>>2];J[e+1116>>2]=J[f+1116>>2];J[e+1120>>2]=J[f+1120>>2];J[e+1124>>2]=J[f+1124>>2];J[e+1128>>2]=J[f+1128>>2];J[e+1132>>2]=J[f+1132>>2];J[e+1136>>2]=J[f+1136>>2]}if(K[f+59|0]){H[e+59|0]=1;H[e+1140|0]=K[f+1140|0]}if(K[f+60|0]){H[e+60|0]=1;d=J[e+1148>>2]; +if(d)kc[J[a+156>>2]](d,J[e+1144>>2]);d=kc[J[a+152>>2]](J[f+1144>>2])|0;J[e+1148>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[f+1148>>2],J[f+1144>>2]);J[e+1144>>2]=J[f+1144>>2]}if(K[a+2272|0])break d;d=K[a+2253|0];if((d|0)==7)break d;J[a+996>>2]=0;l:{m:{n:{o:switch(K[f+44|0]-1|0){case 1:g=1183;p:switch(K[e+44|0]-1|0){case 3:g=1184;break m;case 7:g=1185;break m;case 0:break m;case 15:break p;default:break l}g=1186;break m;case 3:g=1187;q:switch(K[e+44|0]-1|0){case 1:g=1188;break m;case 7:g=1189;break m; +case 0:break m;case 15:break q;default:break l}g=1190;break m;case 7:r:switch(K[f+45|0]){case 0:case 3:case 8:g=1191;s:switch(K[e+44|0]-1|0){case 1:g=1192;break m;case 3:g=1193;break m;case 0:break m;case 15:break s;default:break l}g=1194;break m;case 2:case 10:g=1195;if(K[e+44|0]==16)break m;break l;case 4:case 12:g=1196;if(K[e+44|0]==16)break m;break l;case 6:case 14:break r;default:break l}g=1197;if(K[e+44|0]==16)break m;break l;case 15:t:switch(K[f+45|0]){case 2:case 10:g=1198;if(K[e+44|0]==8)break m; +break l;case 4:case 12:g=1199;if(K[e+44|0]==8)break m;break l;case 0:case 3:case 8:break n;case 6:case 14:break t;default:break l}g=1200;if(K[e+44|0]==8)break m;break l;case 0:break o;default:break l}g=K[e+44|0];g=g<<31|g-2>>>1;if(g>>>0>=8|!(139>>>g&1))break l;g=J[(g<<2)+218484>>2];break m}g=K[e+44|0]-1|0;i=g&255;if(i>>>0>=8|!(139>>>i&1))break l;g=J[(g<<24>>24<<2)+218516>>2]}J[a+996>>2]=g}J[a+1E3>>2]=0;u:{v:{w:switch(K[e+45|0]){case 0:case 8:if(!(1<>>0>4)break c;d=K[f+45|0];if(d>>>0>8|!(1<< +d&265))break c;d=1201;x:switch(K[e+44|0]-1|0){case 1:d=1202;break u;case 3:d=1203;break u;case 7:d=1204;break u;case 0:break u;case 15:break x;default:break c}d=1205;break u;case 2:case 10:if(!(1<>>0>4)break c;y:switch(K[f+45|0]-2|0){case 0:case 8:break y;default:break c}d=1206;z:switch(K[e+44|0]-8|0){case 0:break u;case 8:break z;default:break c}d=1207;break u;case 3:if(!(1<>>0>4)break c;switch(K[f+45|0]){case 0:case 3:break v;default:break c}case 4:case 12:if(d>>>0>6)break c;A:{B:{d= +1<>>0>8|!(1<>> +0>6)break c;G:{H:{d=1<>>0>=8|!(139>>>g&1))break c;d=J[(d<<24>>24<<2)+218548>>2]}H[a+568|0]=255;J[a+1E3>>2]=d;J[a+576>>2]=1;J[a+584>>2]=1;J[a+572>>2]=J[a+2268>>2];J[a+580>>2]=J[a+2264>>2];J[a+588>>2]=J[f+36>>2];J[a+604>>2]=J[e+1168>>2];J[a+544>>2]=c;J[a+536>>2]=b;e=J[a+644>>2];b=kc[J[a+152>>2]](J[f+1168>>2]<<1)|0;J[a+644>>2]=b;if(!b)break a;c=0;N:{while(1){g=J[a+644>>2];b=c;i=J[f+40>>2];if(b>>>0>=i>>>0){d=0;break N}c=J[f+1168>>2];xc(g,J[f+1176>>2]+P(c,b)|0,c);c=J[a+996>>2];O:{if(c){d= +kc[c|0](a)|0;if(d)break O}d=kc[J[a+1E3>>2]](a)|0;if(d)break O;c=b+1|0;d=zs(a);if(!d)continue}break}g=J[a+644>>2]}if(g)kc[J[a+156>>2]](g,J[f+1168>>2]<<1);J[a+644>>2]=e;if(b>>>0>>0)break b}return 0}d=1063;Jc(a,1063,0,0)}return d}Jc(a,1,0,0);return 1}function fBa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=fc+-64|0;fc=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(!K[a+144|0]){a=Qc(e+40|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break o; +b=Z()|0;Kc(a);break b}g=si();b=J[a+156>>2];J[699344]=0;da(5321,e+32|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;d=_(4,28)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;J[d+8>>2]=1;J[d+4>>2]=0;J[d>>2]=2416208;b=0;c=J[e+32>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break n;b=J[e+32>>2]}J[d+24>>2]=0;J[d+12>>2]=b;J[699344]=0;J[e+24>>2]=0;b=e+24|0;aa(5145,b|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;J[d+16>>2]=a;J[d+20>>2]=5478;J[699344]= +0;da(5479,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break m;while(1){J[699344]=0;b=aa(5480,a|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;if(b)continue;break}b=J[a+120>>2];if(b)while(1){c=J[b+8>>2];J[699344]=0;c=J[c+148>>2];d=J[699344];J[699344]=0;if((d|0)==1)break h;p:{q:{r:{s:{if(c&4){J[699344]=0;d=ja(5178,e+40|0,2390797,2386059,500,2414245,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break s;J[699344]=0;$(5179,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break o;b=ea(2423616)|0;c=gc;Kc(d);break g}c= +J[b+8>>2];J[699344]=0;c=J[c+148>>2];d=J[699344];J[699344]=0;if((d|0)==1)break h;if(c&8){J[699344]=0;d=ja(5178,e+40|0,J[685887],2386059,502,2414245,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;J[699344]=0;$(5179,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break o;b=ea(2423616)|0;c=gc;Kc(d);break g}c=J[b+8>>2];J[699344]=0;c=J[c+148>>2];d=J[699344];J[699344]=0;if((d|0)==1)break h;if(c&2)break p;J[699344]=0;d=ja(5178,e+40|0,2391361,2386059,509,2414245,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q; +J[699344]=0;$(5179,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break o;b=ea(2423616)|0;c=gc;Kc(d);break g}b=ea(2423616)|0;c=gc;break g}b=ea(2423616)|0;c=gc;break g}b=ea(2423616)|0;c=gc;break g}b=J[b>>2];if(b)continue;break}b=J[e+24>>2];J[e+24>>2]=0;t:{u:{if(!b)break u;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break t;if(c)break u;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break t}b=J[e+32>>2];J[e+32>>2]=0;if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+ +4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}break a}break a}B()}b=ea(2423616)|0;c=gc;uc(nd(d));break f}b=ea(2423616)|0;c=gc;break g}b=ea(2423616)|0;c=gc;break g}b=ea(2423616)|0;c=gc;break f}b=ea(2423616)|0;c=gc;break f}b=ea(2423616)|0;c=gc;break e}b=ea(2423616)|0;c=gc}zc(e+24|0)}zc(e+32|0)}if((sa(2423616)|0)!=(c|0))break b;i=oa(b|0)|0;J[699344]=0;c=En(i,J[685887]);b=J[699344];J[699344]=0;v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((b| +0)==1)break I;b=a+148|0;J:{if(!c){J[699344]=0;c=J[b>>2];d=J[699344];J[699344]=0;if((d|0)==1)break I;J[699344]=0;c=c&-10|8;if((c|0)!=J[b>>2])J[b>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break I;J[699344]=0;c=aa(5149,e+24|0,2391777)|0;b=J[699344];J[699344]=0;K:{L:{M:{N:{O:{P:{Q:{R:{if((b|0)!=1){J[699344]=0;d=aa(5149,e+16|0,2392416)|0;b=J[699344];J[699344]=0;if((b|0)==1)break R;J[699344]=0;b=e+32|0;ca(5292,b|0,c|0,d|0);f=J[699344];J[699344]=0;if((f|0)==1)break Q;f=J[a+80>>2];f=J[(f?f+12|0:2743576)>> +2];J[699344]=0;f=aa(5149,e+8|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break P;J[699344]=0;i=e+40|0;ca(5292,i|0,b|0,f|0);h=J[699344];J[699344]=0;if((h|0)==1)break O;h=J[J[g>>2]+24>>2];J[699344]=0;ga(h|0,g|0,a|0,i|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break N;wc(i);wc(f);wc(b);wc(d);wc(c);b=8;break J}b=ea(0)|0;break w}b=ea(0)|0;wc(c);break w}b=ea(0)|0;break K}b=ea(0)|0;break L}b=ea(0)|0;break M}b=ea(0)|0;wc(e+40|0)}wc(f)}wc(e+32|0)}wc(d);wc(c);break w}J[699344]=0;c=J[b>>2];d=J[699344];J[699344]= +0;if((d|0)==1)break I;J[699344]=0;c=c&-6|4;if((c|0)!=J[b>>2])J[b>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break I;J[699344]=0;c=aa(5149,e+24|0,2392581)|0;b=J[699344];J[699344]=0;if((b|0)==1)break H;J[699344]=0;d=aa(5149,e+16|0,2392416)|0;b=J[699344];J[699344]=0;if((b|0)==1)break G;J[699344]=0;h=e+32|0;ca(5292,h|0,c|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break F;b=J[a+80>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;f=aa(5149,e+8|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break E;J[699344]=0;b= +e+40|0;ca(5292,b|0,h|0,f|0);j=J[699344];J[699344]=0;if((j|0)==1)break D;j=J[J[g>>2]+24>>2];J[699344]=0;ga(j|0,g|0,a|0,b|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break C;wc(b);wc(f);wc(h);wc(d);wc(c);J[699344]=0;c=J[i+4>>2];d=J[699344];J[699344]=0;if((d|0)==1)break y;J[699344]=0;c=aa(5149,b|0,(c?c:2389698)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break y;b=J[J[g>>2]+20>>2];J[699344]=0;ga(b|0,g|0,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break x;wc(c);b=4}c=J[J[g>>2]+40>>2];J[699344]=0;ia(c|0, +g|0,a|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break v}b=ea(0)|0;break w}b=ea(0)|0;break w}b=ea(0)|0;wc(c);break w}b=ea(0)|0;break z}b=ea(0)|0;break A}b=ea(0)|0;break B}b=ea(0)|0;wc(e+40|0)}wc(f)}wc(e+32|0)}wc(d);wc(c);break w}b=ea(0)|0;break w}b=ea(0)|0;wc(c)}oa(b|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break c}ta()}J[699344]=0;b=kh(a+148|0,1,0,66,1);c=J[699344];J[699344]=0;S:{if((c|0)!=1){if(!b)break S;b=J[J[g>>2]+40>>2];J[699344]=0;ia(b|0,g|0,a|0,66,1);a=J[699344];J[699344]= +0;if((a|0)!=1)break S}oa(ea(0)|0)|0;ta()}fc=e- -64|0;return}b=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}ba(b|0);B()}ea(0)|0;Bc();B()}function LDb(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,u=0,v=0;k=fc-32|0;fc=k;if(c)rd(198223,0);a:{b:{c:{d:{e:{f:{g:{c=J[a+28>>2];switch((c>>8)-3|0){case 0:break f;case 1:break g;default:break e}}if((c|0)!=1025)rd(199367,0);J[k+12>>2]=3;d=Ek(a,0);J[k+16>>2]=d;if((d|0)<0)break d; +c=Ek(a,1);J[k+20>>2]=c;if((c|0)<0)break d;c=Ek(a,2);J[k+24>>2]=c;if((c|0)<0)break d;o=3;break b}if((c|0)!=769)rd(199367,0);e=1;J[k+12>>2]=1;d=Ek(a,0);J[k+16>>2]=d;c=-1;if((d|0)<0)break c;j=256;o=1;break b}rd(200513,0);c=-1;break a}rd(201064,0);c=-1;break a}rd(201064,0);break a}h:{g=J[a+24>>2];i=J[g+(J[k+16>>2]<<2)>>2];c=J[g+(d<<2)>>2];n=J[c+16>>2];i:{if(J[i+16>>2]!=(n|0))break i;d=J[c+20>>2];if((d|0)!=J[i+20>>2])break i;m=J[c+24>>2];if(J[i+28>>2]|(m|0)!=J[i+24>>2]|(J[i>>2]|J[i+4>>2]))break i;if(e)break h; +c=J[g+(J[k+20>>2]<<2)>>2];if((n|0)!=J[c+16>>2]|(d|0)!=J[c+20>>2]|(J[c+28>>2]|(m|0)!=J[c+24>>2]))break i;if(J[c>>2]|J[c+4>>2])break i;c=J[g+(J[k+24>>2]<<2)>>2];if((n|0)!=J[c+16>>2]|(d|0)!=J[c+20>>2]|(J[c+28>>2]|(m|0)!=J[c+24>>2]))break i;if(J[c>>2])break i;if(!J[c+4>>2])break h}rd(202011,0);c=-1;break a}c=-1;if(!(1<>>0>8)break a;f=Lba();if(!f)break a;J[f+44>>2]=0;J[f+40>>2]=j;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+16>>2]=1;J[f+8>>2]=d;J[f+4>>2]=n;J[f>>2]=40;J[f+20>>2]=P(m,o);g=P(n,o); +e=(g|0)%4|0;e=P(d,(e?4-e|0:0)+g|0);J[f+28>>2]=e;if(nP(b,19778))break a;if(nm(b,e+54|0))break a;if(nm(b,0))break a;if(nm(b,j<<2|54))break a;j=0;J[f>>2]=40;e=-1;j:{if(nm(b,40))break j;if(nm(b,J[f+4>>2]))break j;if(nm(b,J[f+8>>2]))break j;if(nP(b,J[f+16>>2]))break j;if(nP(b,J[f+20>>2]))break j;if(nm(b,J[f+24>>2]))break j;if(nm(b,J[f+28>>2]))break j;if(nm(b,J[f+32>>2]))break j;if(nm(b,J[f+36>>2]))break j;if(nm(b,J[f+40>>2]))break j;if(nm(b,J[f+44>>2]))break j;e=0;if(J[f+40>>2]<=0)break j;k:{while(1){e= +J[b+8>>2];if(e&7)break k;l:{g=J[b+64>>2];if((g|0)>=0&(g|0)<=J[b+60>>2])break l;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;m:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=j;break m}e=-1;if((bd(b,j&255)|0)==-1)break j}e=J[b+8>>2];if(e&7)break k;g=J[b+64>>2];if((g|0)>=0&(g|0)<=J[b+60>>2])break l;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;n:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=j;break n}e=-1;if((bd(b,j&255)|0)==-1)break j}e= +J[b+8>>2];if(e&7)break k;g=J[b+64>>2];if((g|0)>=0&(g|0)<=J[b+60>>2])break l;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;o:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=j;break o}e=-1;if((bd(b,j&255)|0)==-1)break j}e=J[b+8>>2];if(e&7)break k;g=J[b+64>>2];if((g|0)>=0&(g|0)<=J[b+60>>2])break l;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;p:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=0;break p}e=-1;if((bd(b,0)|0)==-1)break j}e=0;j=j+1| +0;if((j|0)>2])continue;break j}break}J[b+8>>2]=e|4}e=-1}if(e)break a;o=a;r=k+16|0;a=0;l=fc-16|0;fc=l;q:{r:{g=J[f+20>>2];e=(g|0)==24;if(!(e&J[f+40>>2]>0)){p=e?3:1;Ac(l+4|0,0,p<<2);break r}rd(204054,0);h=-1;break q}s:{t:{while(1){e=Dk(1,J[f+4>>2]);J[(l+4|0)+(a<<2)>>2]=e;if(!e)break t;a=a+1|0;if((p|0)!=(a|0))continue;break}e=J[f+8>>2];if((e|0)<=0)break s;m=(P(p,J[f+4>>2])|0)%4|0;j=4-m|0;s=J[l+12>>2];t=J[l+8>>2];u=J[l+4>>2];n=(g|0)!=24;while(1){g=e;e=e-1|0;a=0;while(1){if(Gk(o,a,0,e,J[f+4>>2], 1,J[(l+4|0)+(J[(a<<2)+r>>2]<<2)>>2]))break t;a=a+1|0;if((p|0)!=(a|0))continue;break}u:{v:{w:{if(J[f+4>>2]<=0)break w;a=0;if(!n)while(1){d=J[u+28>>2];if(J[u+20>>2]!=1)q=J[d+(a<<2)>>2];else q=J[d>>2]+(a<<2)|0;d=J[t+28>>2];if(J[t+20>>2]!=1)i=J[d+(a<<2)>>2];else i=J[d>>2]+(a<<2)|0;d=J[s+28>>2];if(J[s+20>>2]!=1)d=J[d+(a<<2)>>2];else d=J[d>>2]+(a<<2)|0;h=J[b+8>>2];if(h&7)break t;v=K[q|0];q=K[i|0];i=K[d|0];d=J[b+64>>2];if((d|0)>=0&J[b+60>>2]>=(d|0))break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]= -d-1;x:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=i;break x}h=-1;if((Uc(b,i)|0)==-1)break s}h=J[b+8>>2];if(h&7)break t;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;y:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=q;break y}h=-1;if((Uc(b,q)|0)==-1)break s}h=J[b+8>>2];if(h&7)break t;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;z:{if((d| -0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=v;break z}h=-1;if((Uc(b,v)|0)==-1)break s}a=a+1|0;if((a|0)>2])continue;break w}while(1){d=J[(l+4|0)+(J[r>>2]<<2)>>2];i=J[d+28>>2];if(J[d+20>>2]==1)d=J[i>>2]+(a<<2)|0;else d=J[i+(a<<2)>>2];h=J[b+8>>2];if(h&7)break t;i=K[d|0];d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;A:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=i;break A}h=-1;if((Uc(b,i)|0)== --1)break s}a=a+1|0;if((a|0)>2])continue;break}}a=j;if(!m)break u;while(1){h=J[b+8>>2];if(h&7)break t;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;B:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=0;break B}h=-1;if((Uc(b,0)|0)==-1)break s}d=(a|0)>1;a=a-1|0;if(d)continue;break}break u}J[b+8>>2]=h|4;break t}h=0;if((g|0)>=2)continue;break}break s}h=-1}a=0;while(1){b=J[(l+4|0)+(a<<2)>>2];if(b)dg(b);a=a+1|0;if((p|0)!= -(a|0))continue;break}}bc=l+16|0;if(h)break a;yu(f);c=0}bc=k+32|0;return c|0}function BI(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;e=bc-784|0;bc=e;h=rc(12);J[695492]=0;J[h+8>>2]=-1;J[h+4>>2]=c;J[h>>2]=b;b=J[695492];J[695492]=0;a:{if((b|0)!=1){b=e+528|0;lf(h,b,e+12|0);c=e+272|0;if(lf(h,c,e+8|0)){k=(d|0)==8?255:(d|0)==16?65535:-1;o=e+16|1;n=c|1;m=b|1;while(1){b:{if(J[e+272>>2]==1667593077&J[e+276>>2]==7364973){if(K[e+528|0]==47){b=rc(8);J[695492]=0;g=aa(3182,b|0,m|0)|0;c=J[695492];J[695492]= -0;c:{d:{if((c|0)!=1){c=0;b=0;e:{i=J[689612];f=J[i+36>>2];if(J[f+8>>2]<=0)break e;f:{while(1){f=J[J[f>>2]+(c<<2)>>2];b=rc(8);J[695492]=0;f=aa(3183,b|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break f;f=_n(f,J[g+4>>2]);b=Zm(J[f+4>>2],816572);qc(Rc(f));if(b)break e;c=c+1|0;f=J[i+36>>2];if((c|0)>2])continue;break}b=0;break e}break a}if(!b)break d;c=BI(a,3379,b,d);fg(b);l=c?1:l;break c}break a}J[e>>2]=g;xc(1,-1,781063,e)}qc(Rc(g))}lf(h,e+528|0,e+12|0);break b}if(!Wc(e+272|0,781421,12)){g:{if(!lf(h, -e+528|0,e+12|0))break g;while(1){if(!Wc(e+528|0,782576,10))break g;h:{b=e+272|0;if(lf(h,b,e+8|0))if(Wc(b,782576,10))break h;xc(0,-1,783540,0);break g}i:{if(K[e+528|0]!=60)break i;b=J[e+12>>2];f=b+e|0;if(K[f+527|0]!=62|K[e+272|0]!=60)break i;i=J[e+8>>2];g=i+e|0;if(K[g+271|0]!=62)break i;c=0;H[g+271|0]=0;H[f+527|0]=0;j:{if((b|0)<3)break j;f=b-3|0;b=0;while(1){g=J[(K[b+m|0]<<2)+2199392>>2];if((g|0)<0)break i;c=g+(c<<4)|0;g=(b|0)!=(f|0);b=b+1|0;if(g)continue;break}if(c>>>0<=k>>>0)break j;xc(0,-1,784473, -0);i=J[e+8>>2]}AI(a,c,n,i-2|0,0);l=1;if(lf(h,e+528|0,e+12|0))continue;break g}xc(0,-1,783540,0);if(lf(h,e+528|0,e+12|0))continue;break}}lf(h,e+528|0,e+12|0);break b}if(!Wc(e+272|0,785455,13)){k:{if(!lf(h,e+528|0,e+12|0))break k;while(1){if(!Wc(e+528|0,786393,11))break k;l:{b=e+272|0;m:{if(!lf(h,b,e+8|0))break m;if(!Wc(b,786393,11))break m;b=e+16|0;if(!lf(h,b,e+4|0))break m;if(Wc(b,786393,11))break l}xc(0,-1,787180,0);break k}n:{if(K[e+528|0]!=60)break n;b=J[e+12>>2];f=b+e|0;if(K[f+527|0]!=62|K[e+ -272|0]!=60)break n;g=J[e+8>>2];i=g+e|0;if(K[i+271|0]!=62)break n;c=0;H[i+271|0]=0;H[f+527|0]=0;f=0;if((b|0)>=3){i=b-3|0;b=0;while(1){j=J[(K[b+m|0]<<2)+2199392>>2];if((j|0)<0)break n;f=j+(f<<4)|0;j=(b|0)!=(i|0);b=b+1|0;if(j)continue;break}}if((g|0)>=3){g=g-3|0;b=0;while(1){i=J[(K[b+n|0]<<2)+2199392>>2];if((i|0)<0)break n;c=i+(c<<4)|0;i=(b|0)!=(g|0);b=b+1|0;if(i)continue;break}}if(!(f>>>0<=k>>>0&c>>>0<=k>>>0)){xc(0,-1,788012,0);c=c>>>0>>0?c:k}o:{if(L[e+16>>1]==91){b=0;if(!lf(h,e+528|0,e+12|0))break o; -while(1){if(L[e+528>>1]==93)break o;p:{q:{if(K[e+528|0]!=60)break q;g=J[e+12>>2];i=g+e|0;if(K[i+527|0]!=62)break q;j=b+f|0;if(j>>>0>c>>>0)break p;H[i+527|0]=0;AI(a,j,m,g-2|0,0);l=1;break p}xc(0,-1,787180,0)}b=b+1|0;if(lf(h,e+528|0,e+12|0))continue;break}break o}r:{if(K[e+16|0]!=60)break r;g=J[e+4>>2]+e|0;if(K[g+15|0]!=62)break r;b=0;H[g+15|0]=0;if(c>>>0>>0)break o;while(1){AI(a,f,o,J[e+4>>2]-2|0,b);l=1;b=b+1|0;f=f+1|0;if(f>>>0<=c>>>0)continue;break}break o}xc(0,-1,787180,0)}if(lf(h,e+528|0,e+12| -0))continue;break k}xc(0,-1,787180,0);if(lf(h,e+528|0,e+12|0))continue;break}}lf(h,e+528|0,e+12|0);break b}if(!Wc(e+272|0,790538,13)){xc(0,-1,791347,0);s:{if(!lf(h,e+528|0,e+12|0))break s;while(1){if(!Wc(e+528|0,792192,11))break s;t:{b=e+272|0;if(lf(h,b,e+8|0))if(Wc(b,792192,11))break t;xc(0,-1,792871,0);break s}u:{if(K[e+528|0]!=60)break u;b=J[e+12>>2];c=b+e|0;if(K[c+527|0]!=62)break u;H[c+527|0]=0;v:{w:{if((b|0)>=3){f=b-3|0;c=0;b=0;while(1){g=J[(K[b+m|0]<<2)+2199392>>2];if((g|0)<0)break u;c=g+(c<< -4)|0;g=(b|0)!=(f|0);b=b+1|0;if(g)continue;break}if(c>>>0>k>>>0)xc(0,-1,793521,0);f=Zf(e+272|0);if(c>>>0>16777215)break v;break w}c=0;f=Zf(e+272|0)}b=J[a+8>>2];x:{if(c>>>0>>0){g=J[a+4>>2];break x}g=b?b<<1:256;g=c>>>0>>0?g:(c&16776960)+256|0;J[a+8>>2]=g;g=Nd(J[a+4>>2],g,4);J[a+4>>2]=g;if(M[a+8>>2]<=b>>>0)break x;while(1){J[(b<<2)+g>>2]=0;b=b+1|0;if(b>>>0>2])continue;break}}J[(c<<2)+g>>2]=f}l=1;if(lf(h,e+528|0,e+12|0))continue;break s}xc(0,-1,792871,0);if(lf(h,e+528|0,e+12|0))continue;break}}lf(h, -e+528|0,e+12|0);break b}y:{if(!Wc(e+272|0,794497,14)){xc(0,-1,795131,0);if(!lf(h,e+528|0,e+12|0))break y;while(1){if(!Wc(e+528|0,796165,12))break y;z:{b=e+272|0;A:{if(!lf(h,b,e+8|0))break A;if(!Wc(b,796165,12))break A;b=e+16|0;if(!lf(h,b,e+4|0))break A;if(Wc(b,796165,12))break z}xc(0,-1,796774,0);break y}B:{C:{if(K[e+528|0]!=60)break C;b=J[e+12>>2];c=b+e|0;if(K[c+527|0]!=62|K[e+272|0]!=60)break C;f=J[e+8>>2];i=f+e|0;if(K[i+271|0]!=62)break C;g=0;H[i+271|0]=0;H[c+527|0]=0;c=0;if((b|0)>=3){i=b-3|0; -b=0;while(1){j=J[(K[b+m|0]<<2)+2199392>>2];if((j|0)<0)break C;c=j+(c<<4)|0;j=(b|0)!=(i|0);b=b+1|0;if(j)continue;break}}if((f|0)>=3){f=f-3|0;b=0;while(1){i=J[(K[b+n|0]<<2)+2199392>>2];if((i|0)<0)break C;g=i+(g<<4)|0;i=(b|0)!=(f|0);b=b+1|0;if(i)continue;break}}if(!(c>>>0<=k>>>0&g>>>0<=k>>>0)){xc(0,-1,797615,0);g=g>>>0>>0?g:k}if(c>>>0>g>>>0)break B;i=Zf(e+16|0);while(1){if(c>>>0<=16777215){b=J[a+8>>2];D:{if(c>>>0>>0){f=J[a+4>>2];break D}f=b?b<<1:256;f=c>>>0>>0?f:(c&-256)+256|0;J[a+8>>2]=f;f= -Nd(J[a+4>>2],f,4);J[a+4>>2]=f;if(M[a+8>>2]<=b>>>0)break D;while(1){J[(b<<2)+f>>2]=0;b=b+1|0;if(b>>>0>2])continue;break}}J[(c<<2)+f>>2]=i}l=1;i=i+1|0;c=c+1|0;if(g>>>0>=c>>>0)continue;break}break B}xc(0,-1,796774,0);if(!lf(h,e+528|0,e+12|0))break y;continue}if(lf(h,e+528|0,e+12|0))continue;break}break y}ff(e+528|0,e+272|0);break b}lf(h,e+528|0,e+12|0)}if(lf(h,e+272|0,e+8|0))continue;break}}qc(h);bc=e+784|0;return l}a=Z()|0;qc(h);ba(a|0);B()}a=Z()|0;qc(b);ba(a|0);B()}function xAa(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=bc-80|0;bc=f;a:{b:{c:{d:{e:{f:{g:{h:{while(1){WU(f+72|0,a,d);g=1;i:{j:switch(J[f+72>>2]){case 0:e=H[J[d>>2]];if((e|0)==32|e-9>>>0<5){J[695492]=0;a=aa(4989,f+56|0,2387440)|0;c=J[695492];J[695492]=0;k:{l:{m:{n:{if((c|0)!=1){J[695492]=0;ca(5121,f- -64|0,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break n;sc(a);a=J[f+64>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,f+32|0,a|0,2377733,536,2389901,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;J[695492]= -0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break l;break b}e=Z()|0;break c}e=Z()|0;sc(a);break c}e=Z()|0;break k}e=Z()|0;Fc(a)}sc(f- -64|0);break c}J[695492]=0;ca(5184,f- -64|0,a|0,d|0);e=J[695492];J[695492]=0;o:{p:{q:{r:{s:{t:{u:{v:{if((e|0)!=1){e=J[f+68>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;g=J[695492];J[695492]=0;if((g|0)==1)break v}J[f+28>>2]=e;g=J[f+64>>2];if((g|0)==2)switch(J[e+8>>2]-1|0){case 1:break p;case 0:break q;default:break o}if(g>>>0>1)break o;J[695492]=0;a=aa(4989,f+20| -0,2387808)|0;c=J[695492];J[695492]=0;if((c|0)==1)break u;J[695492]=0;ca(5121,f+56|0,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break t;sc(a);a=J[f+56>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,f+32|0,a|0,2377733,548,2389901,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break s;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;e=Z()|0;Fc(a);break r}e=Z()|0;break c}e=Z()|0;break d}e=Z()|0;break e}e=Z()|0;sc(a);break e}e=Z()|0}sc(f+56|0);break e}J[695492]=0;a=aa(4989,f+56|0, -2388081)|0;c=J[695492];J[695492]=0;w:{x:{if((c|0)!=1){J[695492]=0;aa(5185,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break x;b=J[a>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=ja(5018,f+32|0,b|0,2377733,557,2389901,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break w;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b;e=Z()|0;Fc(b);sc(a);break e}e=Z()|0;break e}e=Z()|0;sc(a);break e}e=Z()|0;sc(a);break e}J[695492]=0;a=aa(4989,f+56|0,2388358)|0;c=J[695492];J[695492]=0;y:{z:{if((c|0)!= -1){J[695492]=0;aa(5185,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break z;b=J[a>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=ja(5018,f+32|0,b|0,2377733,563,2389901,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break y;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b;e=Z()|0;Fc(b);sc(a);break e}e=Z()|0;break e}e=Z()|0;sc(a);break e}e=Z()|0;sc(a);break e}J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[695492]=0;J[f>>2]=2386024;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;g=J[695492];J[695492]= -0;A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((g|0)!=1){J[695492]=0;g=f+32|0;da(5186,g|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break M;e=J[f+32>>2];e=J[(e?e+12|0:2728584)>>2];J[695492]=0;ia(5182,a|0,e|0,f|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break L;sc(g);break J}e=Z()|0;break e}e=ea(2411712)|0;g=cc;break K}e=ea(2411712)|0;g=cc;sc(f+32|0)}if((sa(2411712)|0)!=(g|0))break f;e=na(e|0)|0;J[695492]=0;e=Mm(e,J[682138]);g=J[695492];J[695492]=0;if((g|0)==1)break g;if(e){J[695492]=0;ka(5087);a=J[695492]; -J[695492]=0;if((a|0)!=1)break b;break g}J[695492]=0;ka(4893);e=J[695492];J[695492]=0;if((e|0)==1)break I}J[695492]=0;g=$(4,56)|0;e=J[695492];J[695492]=0;if((e|0)==1)break H;J[695492]=0;h=J[f+28>>2];da(5186,f+32|0,h|0);e=J[695492];J[695492]=0;if((e|0)==1)break G;e=J[f+32>>2];e=J[(e?e+12|0:2728584)>>2];J[g+8>>2]=4;J[g>>2]=2389692;J[g+4>>2]=0;J[695492]=0;i=aa(4989,g+12|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break C;J[g+24>>2]=0;e=J[682146];J[g+36>>2]=e;J[g+32>>2]=0;J[g+28>>2]=e;J[695492]=0;aa(5031, -g+40|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){e=Z()|0;sc(g+32|0);sc(g+24|0);sc(i);break B}J[695492]=0;J[f+56>>2]=0;aa(4985,f+56|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break F;J[695492]=0;e=$(4,12)|0;g=J[695492];J[695492]=0;if((g|0)==1)break E;J[e>>2]=0;J[e+4>>2]=0;g=J[f+56>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;g=J[695492];J[695492]=0;if((g|0)==1)break E;i=J[f+56>>2]}else i=0;J[e+8>>2]=i;J[695492]=0;of(c,e);e=J[695492];J[695492]=0;if((e|0)==1)break E;e=J[f+56>>2];J[f+56>>2]=0;N:{if(!e)break N; -J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(g)break N;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}sc(f+32|0);$c(f);J[695492]=0;e=J[h+4>>2]-1|0;J[h+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(!e){J[695492]=0;_(4987,h|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}e=J[f+68>>2];O:{if(!e)break O;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(g)break O;J[695492]=0;_(4987,e|0);e=J[695492]; -J[695492]=0;if((e|0)==1)break a}g=0;break i}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;break A}e=Z()|0;break D}e=Z()|0;vc(f+56|0)}sc(f+32|0);break f}e=Z()|0}ed(g);sc(f+32|0)}qc(g);break f;case 1:break i;default:break j}J[695492]=0;e=$(4,12)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;J[e>>2]=0;J[e+4>>2]=0;g=J[f+76>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;h=J[695492];J[695492]=0;if((h|0)==1)break h}J[e+8>>2]=g;g=0;J[695492]=0;of(c,e);e=J[695492];J[695492]=0;if((e|0)==1)break h}e=J[f+76>>2];P:{if(!e)break P; -J[695492]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(h)break P;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}if(!g)continue;break}bc=f+80|0;return}e=Z()|0;break c}e=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break f;break a}$c(f)}vc(f+28|0)}rv(f- -64|0)}rv(f+72|0);ba(e|0);B()}B()}ea(0)|0;yc();B()}function qza(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=bc-32|0;bc=f;a:{b:{c:{d:{if(!(J[b+92>>2]&24)){J[a>> -2]=0;md(a,0);break d}e:{f:{g:{h:{i:{j:{g=J[b+156>>2];if(g)while(1){e=0;h=J[g+8>>2];if(h){J[695492]=0;J[h+4>>2]=J[h+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[g+8>>2]}J[f+12>>2]=e;if(J[e+8>>2]==(c|0)){b=J[e+12>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[e+12>>2]}else b=0;J[a>>2]=b;J[695492]=0;J[f+12>>2]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break d;J[695492]=0;_(4987,e|0);a=J[695492];J[695492]=0;if((a|0)!= -1)break d}break c}J[695492]=0;J[f+12>>2]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break c;if(!h){J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break c}g=J[g>>2];if(g)continue;break}g=0;e=rc(28);J[695492]=0;_(5270,f+12|0);h=J[695492];J[695492]=0;if((h|0)==1)break e;J[e+8>>2]=c;J[e>>2]=2402120;J[e+4>>2]=0;h=J[f+12>>2];if(h){J[695492]=0;J[h+4>>2]=J[h+4>>2]+1;g=J[695492];J[695492]=0;if((g|0)==1)break f;g=J[f+12>>2]}J[e+24>>2]=0;J[e+16>>2]=0;J[e+12>>2]=g;J[695492]= -0;J[f+28>>2]=0;aa(4985,f+28|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;e=J[f+12>>2];J[f+12>>2]=0;k:{if(!e)break k;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break c;if(g)break k;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break c}l:{m:{n:{if(J[b+56>>2]-3>>>0<=1){e=J[b+48>>2];i=0;J[695492]=0;da(5271,f+12|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break l;J[f+8>>2]=0;o:{g=J[f+20>>2];if(!g)break o;h=-1;p:{q:{while(1){e=J[g+8>>2];J[695492]=0; -J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break q;e=J[g+8>>2];J[f+4>>2]=e;r:{s:{t:{j=K[e+52|0]&63;if((j|0)==2){J[695492]=0;i=f+4|0;aa(4993,f+8|0,i|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break t;e=Z()|0;vc(i);break p}J[f+4>>2]=0;h=((j|0)==1)+h|0;j=(h|0)==(c|0);break s}e=J[f+4>>2];J[f+4>>2]=0;j=(c|0)==(h|0);i=h+1|0;if(!e)break r}J[695492]=0;k=J[e+4>>2]-1|0;J[e+4>>2]=k;l=J[695492];J[695492]=0;if((l|0)==1)break c;if(k)break r;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)== -1)break c}if(!j){g=J[g>>2];if(g)continue}break}e=J[f+8>>2];if(!e)break o;J[695492]=0;d=f+4|0;ia(5272,d|0,b|0,e+36|0,0);e=J[695492];J[695492]=0;u:{v:{w:{if((e|0)!=1){J[695492]=0;aa(4993,J[f+28>>2]+24|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break w;d=J[f+4>>2];J[f+4>>2]=0;x:{if(!d)break x;J[695492]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)==1)break c;if(e)break x;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break c}J[J[f+28>>2]+20>>2]=c-i;J[695492]=0;c=f+4|0; -d=f+28|0;ca(5273,c|0,b|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break v;J[695492]=0;aa(4993,d|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break u;c=J[f+4>>2];J[f+4>>2]=0;y:{if(!c)break y;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break c;if(d)break y;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break c}J[695492]=0;_(5274,b|0);b=J[695492];J[695492]=0;z:{if((b|0)==1)break z;c=J[f+28>>2];b=J[c+12>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492]; -J[695492]=0;if((b|0)==1)break z;b=J[c+12>>2]}else b=0;J[a>>2]=b;a=J[f+8>>2];J[f+8>>2]=0;if(!a)break n;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break n;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break n}break c}e=Z()|0;break p}e=Z()|0;break p}e=Z()|0;vc(f+4|0);break p}e=Z()|0;break p}e=Z()|0;vc(f+4|0);break p}e=Z()|0}vc(f+8|0);$c(f+12|0);break g}$c(f+12|0)}J[695492]=0;e=f+12|0;ia(5222,e|0,b|0,c|0,d|0);c=J[695492];J[695492]=0;A:{B:{C:{D:{E:{F:{if((c| -0)!=1){if(!J[f+12>>2])break C;J[695492]=0;aa(4993,J[f+28>>2]+16|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break A;c=J[J[f+28>>2]+16>>2];J[695492]=0;c=J[c+148>>2];e=J[695492];J[695492]=0;if((e|0)==1)break i;if(!(d?c&2:1))break D;J[695492]=0;c=f+8|0;d=f+28|0;ca(5273,c|0,b|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break F;J[695492]=0;aa(4993,d|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break E;c=J[f+8>>2];J[f+8>>2]=0;G:{if(!c)break G;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]= -0;if((e|0)==1)break c;if(d)break G;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break c}J[695492]=0;_(5274,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break B;break i}e=Z()|0;break g}e=Z()|0;break h}e=Z()|0;vc(f+8|0);break h}J[695492]=0;aa(4985,f+28|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;break B}J[695492]=0;aa(4985,f+28|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A}b=J[f+28>>2];H:{if(b){c=J[b+12>>2];if(!c){J[a>>2]=0;break H}J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492]; -J[695492]=0;if((c|0)==1)break A;J[a>>2]=J[b+12>>2];break H}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break A}a=J[f+12>>2];J[f+12>>2]=0;if(!a)break m;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break m;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m}break c}e=Z()|0;break h}$c(f+12|0)}a=J[f+28>>2];J[f+28>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break c}e=Z()|0;break g}a=Z()|0;break a}e=Z()|0}vc(f+12|0)}vc(f+28|0);ba(e|0);B()}a=Z()|0;ed(e);vc(f+12|0);qc(e);break a}a=Z()|0;qc(e);break a}bc=f+32|0;return}ea(0)|0;yc();B()}a=Z()|0;vc(f+12|0)}ba(a|0);B()}function tja(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,s=0,t=0,u=0,w=0,x=0,y=0,z=0,B=0,C=0;n=bc-560|0;bc=n;J[n+44>>2]=0;A(+b);g=v(1)|0;v(0)|0;a:{if((g|0)<0){t=1;x=1639; -b=-b;A(+b);g=v(1)|0;v(0)|0;break a}if(e&2048){t=1;x=1642;break a}t=e&1;x=t?1645:1640;z=!t}b:{if((g&2146435072)==2146435072){g=t+3|0;ri(a,32,c,g,e&-65537);bi(a,x,t);d=f&32;bi(a,b!=b?d?7263:20972:d?13080:21291,3);ri(a,32,c,g,e^8192);m=(c|0)<(g|0)?g:c;break b}u=n+16|0;c:{d:{e:{b=LR(b,n+44|0);b=b+b;if(b!=0){g=J[n+44>>2];J[n+44>>2]=g-1;w=f|32;if((w|0)!=97)break e;break c}w=f|32;if((w|0)==97)break c;k=J[n+44>>2];l=(d|0)<0?6:d;break d}k=g-29|0;J[n+44>>2]=k;b=b*268435456;l=(d|0)<0?6:d}p=(n+48|0)+((k|0)>= -0?288:0)|0;h=p;while(1){if(b<4294967296&b>=0)d=~~b>>>0;else d=0;J[h>>2]=d;h=h+4|0;b=(b-+(d>>>0))*1E9;if(b!=0)continue;break}f:{if((k|0)<=0){d=k;g=h;i=p;break f}i=p;d=k;while(1){j=(d|0)>=29?29:d;g=h-4|0;g:{if(i>>>0>g>>>0)break g;o=0;while(1){d=J[g>>2];m=j&31;y=o;if((j&63)>>>0>=32){o=d<>>32-m;d=d<>>0>m>>>0?o+1|0:o,1E9,0);B=g,C=m-Dzb(o,fc,1E9,0)|0,J[B>>2]=C;g=g-4|0;if(i>>>0<=g>>>0)continue;break}if(!o)break g;i=i-4|0;J[i>>2]=o}while(1){g=h;if(i>>> +d-1;x:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=i;break x}h=-1;if((bd(b,i)|0)==-1)break s}h=J[b+8>>2];if(h&7)break t;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;y:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=q;break y}h=-1;if((bd(b,q)|0)==-1)break s}h=J[b+8>>2];if(h&7)break t;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;z:{if((d| +0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=v;break z}h=-1;if((bd(b,v)|0)==-1)break s}a=a+1|0;if((a|0)>2])continue;break w}while(1){d=J[(l+4|0)+(J[r>>2]<<2)>>2];i=J[d+28>>2];if(J[d+20>>2]==1)d=J[i>>2]+(a<<2)|0;else d=J[i+(a<<2)>>2];h=J[b+8>>2];if(h&7)break t;i=K[d|0];d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;A:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=i;break A}h=-1;if((bd(b,i)|0)== +-1)break s}a=a+1|0;if((a|0)>2])continue;break}}a=j;if(!m)break u;while(1){h=J[b+8>>2];if(h&7)break t;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break v;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;B:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=0;break B}h=-1;if((bd(b,0)|0)==-1)break s}d=(a|0)>1;a=a-1|0;if(d)continue;break}break u}J[b+8>>2]=h|4;break t}h=0;if((g|0)>=2)continue;break}break s}h=-1}a=0;while(1){b=J[(l+4|0)+(a<<2)>>2];if(b)mg(b);a=a+1|0;if((p|0)!= +(a|0))continue;break}}fc=l+16|0;if(h)break a;nv(f);c=0}fc=k+32|0;return c|0}function RJ(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;e=fc-784|0;fc=e;h=vc(12);J[699344]=0;J[h+8>>2]=-1;J[h+4>>2]=c;J[h>>2]=b;b=J[699344];J[699344]=0;a:{if((b|0)!=1){b=e+528|0;sf(h,b,e+12|0);c=e+272|0;if(sf(h,c,e+8|0)){k=(d|0)==8?255:(d|0)==16?65535:-1;o=e+16|1;n=c|1;m=b|1;while(1){b:{if(J[e+272>>2]==1667593077&J[e+276>>2]==7364973){if(K[e+528|0]==47){b=vc(8);J[699344]=0;g=aa(3349,b|0,m|0)|0;c=J[699344];J[699344]= +0;c:{d:{if((c|0)!=1){c=0;b=0;e:{i=J[693464];f=J[i+36>>2];if(J[f+8>>2]<=0)break e;f:{while(1){f=J[J[f>>2]+(c<<2)>>2];b=vc(8);J[699344]=0;f=aa(3350,b|0,f|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break f;f=Ro(f,J[g+4>>2]);b=Qn(J[f+4>>2],820943);uc(Zc(f));if(b)break e;c=c+1|0;f=J[i+36>>2];if((c|0)>2])continue;break}b=0;break e}break a}if(!b)break d;c=RJ(a,3554,b,d);pg(b);l=c?1:l;break c}break a}J[e>>2]=g;Cc(1,-1,782807,e)}uc(Zc(g))}sf(h,e+528|0,e+12|0);break b}if(!dd(e+272|0,783165,12)){g:{if(!sf(h, +e+528|0,e+12|0))break g;while(1){if(!dd(e+528|0,784320,10))break g;h:{b=e+272|0;if(sf(h,b,e+8|0))if(dd(b,784320,10))break h;Cc(0,-1,785284,0);break g}i:{if(K[e+528|0]!=60)break i;b=J[e+12>>2];f=b+e|0;if(K[f+527|0]!=62|K[e+272|0]!=60)break i;i=J[e+8>>2];g=i+e|0;if(K[g+271|0]!=62)break i;c=0;H[g+271|0]=0;H[f+527|0]=0;j:{if((b|0)<3)break j;f=b-3|0;b=0;while(1){g=J[(K[b+m|0]<<2)+2211280>>2];if((g|0)<0)break i;c=g+(c<<4)|0;g=(b|0)!=(f|0);b=b+1|0;if(g)continue;break}if(c>>>0<=k>>>0)break j;Cc(0,-1,786217, +0);i=J[e+8>>2]}QJ(a,c,n,i-2|0,0);l=1;if(sf(h,e+528|0,e+12|0))continue;break g}Cc(0,-1,785284,0);if(sf(h,e+528|0,e+12|0))continue;break}}sf(h,e+528|0,e+12|0);break b}if(!dd(e+272|0,787199,13)){k:{if(!sf(h,e+528|0,e+12|0))break k;while(1){if(!dd(e+528|0,788137,11))break k;l:{b=e+272|0;m:{if(!sf(h,b,e+8|0))break m;if(!dd(b,788137,11))break m;b=e+16|0;if(!sf(h,b,e+4|0))break m;if(dd(b,788137,11))break l}Cc(0,-1,788924,0);break k}n:{if(K[e+528|0]!=60)break n;b=J[e+12>>2];f=b+e|0;if(K[f+527|0]!=62|K[e+ +272|0]!=60)break n;g=J[e+8>>2];i=g+e|0;if(K[i+271|0]!=62)break n;c=0;H[i+271|0]=0;H[f+527|0]=0;f=0;if((b|0)>=3){i=b-3|0;b=0;while(1){j=J[(K[b+m|0]<<2)+2211280>>2];if((j|0)<0)break n;f=j+(f<<4)|0;j=(b|0)!=(i|0);b=b+1|0;if(j)continue;break}}if((g|0)>=3){g=g-3|0;b=0;while(1){i=J[(K[b+n|0]<<2)+2211280>>2];if((i|0)<0)break n;c=i+(c<<4)|0;i=(b|0)!=(g|0);b=b+1|0;if(i)continue;break}}if(!(f>>>0<=k>>>0&c>>>0<=k>>>0)){Cc(0,-1,789756,0);c=c>>>0>>0?c:k}o:{if(L[e+16>>1]==91){b=0;if(!sf(h,e+528|0,e+12|0))break o; +while(1){if(L[e+528>>1]==93)break o;p:{q:{if(K[e+528|0]!=60)break q;g=J[e+12>>2];i=g+e|0;if(K[i+527|0]!=62)break q;j=b+f|0;if(j>>>0>c>>>0)break p;H[i+527|0]=0;QJ(a,j,m,g-2|0,0);l=1;break p}Cc(0,-1,788924,0)}b=b+1|0;if(sf(h,e+528|0,e+12|0))continue;break}break o}r:{if(K[e+16|0]!=60)break r;g=J[e+4>>2]+e|0;if(K[g+15|0]!=62)break r;b=0;H[g+15|0]=0;if(c>>>0>>0)break o;while(1){QJ(a,f,o,J[e+4>>2]-2|0,b);l=1;b=b+1|0;f=f+1|0;if(f>>>0<=c>>>0)continue;break}break o}Cc(0,-1,788924,0)}if(sf(h,e+528|0,e+12| +0))continue;break k}Cc(0,-1,788924,0);if(sf(h,e+528|0,e+12|0))continue;break}}sf(h,e+528|0,e+12|0);break b}if(!dd(e+272|0,792282,13)){Cc(0,-1,793091,0);s:{if(!sf(h,e+528|0,e+12|0))break s;while(1){if(!dd(e+528|0,793936,11))break s;t:{b=e+272|0;if(sf(h,b,e+8|0))if(dd(b,793936,11))break t;Cc(0,-1,794615,0);break s}u:{if(K[e+528|0]!=60)break u;b=J[e+12>>2];c=b+e|0;if(K[c+527|0]!=62)break u;H[c+527|0]=0;v:{w:{if((b|0)>=3){f=b-3|0;c=0;b=0;while(1){g=J[(K[b+m|0]<<2)+2211280>>2];if((g|0)<0)break u;c=g+(c<< +4)|0;g=(b|0)!=(f|0);b=b+1|0;if(g)continue;break}if(c>>>0>k>>>0)Cc(0,-1,795300,0);f=fg(e+272|0);if(c>>>0>16777215)break v;break w}c=0;f=fg(e+272|0)}b=J[a+8>>2];x:{if(c>>>0>>0){g=J[a+4>>2];break x}g=b?b<<1:256;g=c>>>0>>0?g:(c&16776960)+256|0;J[a+8>>2]=g;g=Wd(J[a+4>>2],g,4);J[a+4>>2]=g;if(M[a+8>>2]<=b>>>0)break x;while(1){J[(b<<2)+g>>2]=0;b=b+1|0;if(b>>>0>2])continue;break}}J[(c<<2)+g>>2]=f}l=1;if(sf(h,e+528|0,e+12|0))continue;break s}Cc(0,-1,794615,0);if(sf(h,e+528|0,e+12|0))continue;break}}sf(h, +e+528|0,e+12|0);break b}y:{if(!dd(e+272|0,796247,14)){Cc(0,-1,796890,0);if(!sf(h,e+528|0,e+12|0))break y;while(1){if(!dd(e+528|0,797918,12))break y;z:{b=e+272|0;A:{if(!sf(h,b,e+8|0))break A;if(!dd(b,797918,12))break A;b=e+16|0;if(!sf(h,b,e+4|0))break A;if(dd(b,797918,12))break z}Cc(0,-1,798527,0);break y}B:{C:{if(K[e+528|0]!=60)break C;b=J[e+12>>2];c=b+e|0;if(K[c+527|0]!=62|K[e+272|0]!=60)break C;f=J[e+8>>2];i=f+e|0;if(K[i+271|0]!=62)break C;g=0;H[i+271|0]=0;H[c+527|0]=0;c=0;if((b|0)>=3){i=b-3|0; +b=0;while(1){j=J[(K[b+m|0]<<2)+2211280>>2];if((j|0)<0)break C;c=j+(c<<4)|0;j=(b|0)!=(i|0);b=b+1|0;if(j)continue;break}}if((f|0)>=3){f=f-3|0;b=0;while(1){i=J[(K[b+n|0]<<2)+2211280>>2];if((i|0)<0)break C;g=i+(g<<4)|0;i=(b|0)!=(f|0);b=b+1|0;if(i)continue;break}}if(!(c>>>0<=k>>>0&g>>>0<=k>>>0)){Cc(0,-1,799361,0);g=g>>>0>>0?g:k}if(c>>>0>g>>>0)break B;i=fg(e+16|0);while(1){if(c>>>0<=16777215){b=J[a+8>>2];D:{if(c>>>0>>0){f=J[a+4>>2];break D}f=b?b<<1:256;f=c>>>0>>0?f:(c&-256)+256|0;J[a+8>>2]=f;f= +Wd(J[a+4>>2],f,4);J[a+4>>2]=f;if(M[a+8>>2]<=b>>>0)break D;while(1){J[(b<<2)+f>>2]=0;b=b+1|0;if(b>>>0>2])continue;break}}J[(c<<2)+f>>2]=i}l=1;i=i+1|0;c=c+1|0;if(g>>>0>=c>>>0)continue;break}break B}Cc(0,-1,798527,0);if(!sf(h,e+528|0,e+12|0))break y;continue}if(sf(h,e+528|0,e+12|0))continue;break}break y}of(e+528|0,e+272|0);break b}sf(h,e+528|0,e+12|0)}if(sf(h,e+272|0,e+8|0))continue;break}}uc(h);fc=e+784|0;return l}a=Z()|0;uc(h);ba(a|0);B()}a=Z()|0;uc(b);ba(a|0);B()}function JCa(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=fc-80|0;fc=f;a:{b:{c:{d:{e:{f:{g:{h:{while(1){VW(f+72|0,a,d);g=1;i:{j:switch(J[f+72>>2]){case 0:e=H[J[d>>2]];if((e|0)==32|e-9>>>0<5){J[699344]=0;a=aa(5149,f+56|0,2399344)|0;c=J[699344];J[699344]=0;k:{l:{m:{n:{if((c|0)!=1){J[699344]=0;ca(5291,f- -64|0,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break n;wc(a);a=J[f+64>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,f+32|0,a|0,2389637,536,2401805,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;J[699344]= +0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break l;break b}e=Z()|0;break c}e=Z()|0;wc(a);break c}e=Z()|0;break k}e=Z()|0;Kc(a)}wc(f- -64|0);break c}J[699344]=0;ca(5354,f- -64|0,a|0,d|0);e=J[699344];J[699344]=0;o:{p:{q:{r:{s:{t:{u:{v:{if((e|0)!=1){e=J[f+68>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;g=J[699344];J[699344]=0;if((g|0)==1)break v}J[f+28>>2]=e;g=J[f+64>>2];if((g|0)==2)switch(J[e+8>>2]-1|0){case 1:break p;case 0:break q;default:break o}if(g>>>0>1)break o;J[699344]=0;a=aa(5149,f+20| +0,2399712)|0;c=J[699344];J[699344]=0;if((c|0)==1)break u;J[699344]=0;ca(5291,f+56|0,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break t;wc(a);a=J[f+56>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,f+32|0,a|0,2389637,548,2401805,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break s;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;e=Z()|0;Kc(a);break r}e=Z()|0;break c}e=Z()|0;break d}e=Z()|0;break e}e=Z()|0;wc(a);break e}e=Z()|0}wc(f+56|0);break e}J[699344]=0;a=aa(5149,f+56|0, +2399985)|0;c=J[699344];J[699344]=0;w:{x:{if((c|0)!=1){J[699344]=0;aa(5355,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break x;b=J[a>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=ja(5178,f+32|0,b|0,2389637,557,2401805,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break w;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b;e=Z()|0;Kc(b);wc(a);break e}e=Z()|0;break e}e=Z()|0;wc(a);break e}e=Z()|0;wc(a);break e}J[699344]=0;a=aa(5149,f+56|0,2400262)|0;c=J[699344];J[699344]=0;y:{z:{if((c|0)!= +1){J[699344]=0;aa(5355,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break z;b=J[a>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=ja(5178,f+32|0,b|0,2389637,563,2401805,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break y;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b;e=Z()|0;Kc(b);wc(a);break e}e=Z()|0;break e}e=Z()|0;wc(a);break e}e=Z()|0;wc(a);break e}J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[699344]=0;J[f>>2]=2397928;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;g=J[699344];J[699344]= +0;A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{if((g|0)!=1){J[699344]=0;g=f+32|0;da(5356,g|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break M;e=J[f+32>>2];e=J[(e?e+12|0:2743576)>>2];J[699344]=0;ia(5352,a|0,e|0,f|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break L;wc(g);break J}e=Z()|0;break e}e=ea(2423616)|0;g=gc;break K}e=ea(2423616)|0;g=gc;wc(f+32|0)}if((sa(2423616)|0)!=(g|0))break f;e=oa(e|0)|0;J[699344]=0;e=En(e,J[685886]);g=J[699344];J[699344]=0;if((g|0)==1)break g;if(e){J[699344]=0;ka(5257);a=J[699344]; +J[699344]=0;if((a|0)!=1)break b;break g}J[699344]=0;ka(5053);e=J[699344];J[699344]=0;if((e|0)==1)break I}J[699344]=0;g=_(4,56)|0;e=J[699344];J[699344]=0;if((e|0)==1)break H;J[699344]=0;h=J[f+28>>2];da(5356,f+32|0,h|0);e=J[699344];J[699344]=0;if((e|0)==1)break G;e=J[f+32>>2];e=J[(e?e+12|0:2743576)>>2];J[g+8>>2]=4;J[g>>2]=2401596;J[g+4>>2]=0;J[699344]=0;i=aa(5149,g+12|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break C;J[g+24>>2]=0;e=J[685894];J[g+36>>2]=e;J[g+32>>2]=0;J[g+28>>2]=e;J[699344]=0;aa(5201, +g+40|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){e=Z()|0;wc(g+32|0);wc(g+24|0);wc(i);break B}J[699344]=0;J[f+56>>2]=0;aa(5145,f+56|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break F;J[699344]=0;e=_(4,12)|0;g=J[699344];J[699344]=0;if((g|0)==1)break E;J[e>>2]=0;J[e+4>>2]=0;g=J[f+56>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;g=J[699344];J[699344]=0;if((g|0)==1)break E;i=J[f+56>>2]}else i=0;J[e+8>>2]=i;J[699344]=0;vf(c,e);e=J[699344];J[699344]=0;if((e|0)==1)break E;e=J[f+56>>2];J[f+56>>2]=0;N:{if(!e)break N; +J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(g)break N;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}wc(f+32|0);id(f);J[699344]=0;e=J[h+4>>2]-1|0;J[h+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(!e){J[699344]=0;$(5147,h|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}e=J[f+68>>2];O:{if(!e)break O;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(g)break O;J[699344]=0;$(5147,e|0);e=J[699344]; +J[699344]=0;if((e|0)==1)break a}g=0;break i}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;break A}e=Z()|0;break D}e=Z()|0;zc(f+56|0)}wc(f+32|0);break f}e=Z()|0}nd(g);wc(f+32|0)}uc(g);break f;case 1:break i;default:break j}J[699344]=0;e=_(4,12)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;J[e>>2]=0;J[e+4>>2]=0;g=J[f+76>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;h=J[699344];J[699344]=0;if((h|0)==1)break h}J[e+8>>2]=g;g=0;J[699344]=0;vf(c,e);e=J[699344];J[699344]=0;if((e|0)==1)break h}e=J[f+76>>2];P:{if(!e)break P; +J[699344]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(h)break P;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}if(!g)continue;break}fc=f+80|0;return}e=Z()|0;break c}e=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break f;break a}id(f)}zc(f+28|0)}fw(f- -64|0)}fw(f+72|0);ba(e|0);B()}B()}ea(0)|0;Bc();B()}function HBa(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=fc-32|0;fc=f;a:{b:{c:{d:{if(!(J[b+92>>2]&24)){J[a>> +2]=0;vd(a,0);break d}e:{f:{g:{h:{i:{j:{g=J[b+156>>2];if(g)while(1){e=0;h=J[g+8>>2];if(h){J[699344]=0;J[h+4>>2]=J[h+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break j;e=J[g+8>>2]}J[f+12>>2]=e;if(J[e+8>>2]==(c|0)){b=J[e+12>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[e+12>>2]}else b=0;J[a>>2]=b;J[699344]=0;J[f+12>>2]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break d;J[699344]=0;$(5147,e|0);a=J[699344];J[699344]=0;if((a|0)!= +1)break d}break c}J[699344]=0;J[f+12>>2]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break c;if(!h){J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break c}g=J[g>>2];if(g)continue;break}g=0;e=vc(28);J[699344]=0;$(5440,f+12|0);h=J[699344];J[699344]=0;if((h|0)==1)break e;J[e+8>>2]=c;J[e>>2]=2414024;J[e+4>>2]=0;h=J[f+12>>2];if(h){J[699344]=0;J[h+4>>2]=J[h+4>>2]+1;g=J[699344];J[699344]=0;if((g|0)==1)break f;g=J[f+12>>2]}J[e+24>>2]=0;J[e+16>>2]=0;J[e+12>>2]=g;J[699344]= +0;J[f+28>>2]=0;aa(5145,f+28|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;e=J[f+12>>2];J[f+12>>2]=0;k:{if(!e)break k;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break c;if(g)break k;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break c}l:{m:{n:{if(J[b+56>>2]-3>>>0<=1){e=J[b+48>>2];i=0;J[699344]=0;da(5441,f+12|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break l;J[f+8>>2]=0;o:{g=J[f+20>>2];if(!g)break o;h=-1;p:{q:{while(1){e=J[g+8>>2];J[699344]=0; +J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break q;e=J[g+8>>2];J[f+4>>2]=e;r:{s:{t:{j=K[e+52|0]&63;if((j|0)==2){J[699344]=0;i=f+4|0;aa(5153,f+8|0,i|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break t;e=Z()|0;zc(i);break p}J[f+4>>2]=0;h=((j|0)==1)+h|0;j=(h|0)==(c|0);break s}e=J[f+4>>2];J[f+4>>2]=0;j=(c|0)==(h|0);i=h+1|0;if(!e)break r}J[699344]=0;k=J[e+4>>2]-1|0;J[e+4>>2]=k;l=J[699344];J[699344]=0;if((l|0)==1)break c;if(k)break r;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)== +1)break c}if(!j){g=J[g>>2];if(g)continue}break}e=J[f+8>>2];if(!e)break o;J[699344]=0;d=f+4|0;ia(5442,d|0,b|0,e+36|0,0);e=J[699344];J[699344]=0;u:{v:{w:{if((e|0)!=1){J[699344]=0;aa(5153,J[f+28>>2]+24|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break w;d=J[f+4>>2];J[f+4>>2]=0;x:{if(!d)break x;J[699344]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)==1)break c;if(e)break x;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break c}J[J[f+28>>2]+20>>2]=c-i;J[699344]=0;c=f+4|0; +d=f+28|0;ca(5443,c|0,b|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break v;J[699344]=0;aa(5153,d|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break u;c=J[f+4>>2];J[f+4>>2]=0;y:{if(!c)break y;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break c;if(d)break y;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break c}J[699344]=0;$(5444,b|0);b=J[699344];J[699344]=0;z:{if((b|0)==1)break z;c=J[f+28>>2];b=J[c+12>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344]; +J[699344]=0;if((b|0)==1)break z;b=J[c+12>>2]}else b=0;J[a>>2]=b;a=J[f+8>>2];J[f+8>>2]=0;if(!a)break n;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break n;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break n}break c}e=Z()|0;break p}e=Z()|0;break p}e=Z()|0;zc(f+4|0);break p}e=Z()|0;break p}e=Z()|0;zc(f+4|0);break p}e=Z()|0}zc(f+8|0);id(f+12|0);break g}id(f+12|0)}J[699344]=0;e=f+12|0;ia(5392,e|0,b|0,c|0,d|0);c=J[699344];J[699344]=0;A:{B:{C:{D:{E:{F:{if((c| +0)!=1){if(!J[f+12>>2])break C;J[699344]=0;aa(5153,J[f+28>>2]+16|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break A;c=J[J[f+28>>2]+16>>2];J[699344]=0;c=J[c+148>>2];e=J[699344];J[699344]=0;if((e|0)==1)break i;if(!(d?c&2:1))break D;J[699344]=0;c=f+8|0;d=f+28|0;ca(5443,c|0,b|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break F;J[699344]=0;aa(5153,d|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break E;c=J[f+8>>2];J[f+8>>2]=0;G:{if(!c)break G;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]= +0;if((e|0)==1)break c;if(d)break G;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break c}J[699344]=0;$(5444,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break B;break i}e=Z()|0;break g}e=Z()|0;break h}e=Z()|0;zc(f+8|0);break h}J[699344]=0;aa(5145,f+28|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;break B}J[699344]=0;aa(5145,f+28|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A}b=J[f+28>>2];H:{if(b){c=J[b+12>>2];if(!c){J[a>>2]=0;break H}J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344]; +J[699344]=0;if((c|0)==1)break A;J[a>>2]=J[b+12>>2];break H}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break A}a=J[f+12>>2];J[f+12>>2]=0;if(!a)break m;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break m;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m}break c}e=Z()|0;break h}id(f+12|0)}a=J[f+28>>2];J[f+28>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break c}e=Z()|0;break g}a=Z()|0;break a}e=Z()|0}zc(f+12|0)}zc(f+28|0);ba(e|0);B()}a=Z()|0;nd(e);zc(f+12|0);uc(e);break a}a=Z()|0;uc(e);break a}fc=f+32|0;return}ea(0)|0;Bc();B()}a=Z()|0;zc(f+12|0)}ba(a|0);B()}function _ka(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,s=0,t=0,u=0,w=0,x=0,y=0,z=0,B=0,C=0;n=fc-560|0;fc=n;J[n+44>>2]=0;A(+b);g=v(1)|0;v(0)|0;a:{if((g|0)<0){t=1;x=1639; +b=-b;A(+b);g=v(1)|0;v(0)|0;break a}if(e&2048){t=1;x=1642;break a}t=e&1;x=t?1645:1640;z=!t}b:{if((g&2146435072)==2146435072){g=t+3|0;Hi(a,32,c,g,e&-65537);pi(a,x,t);d=f&32;pi(a,b!=b?d?7263:20988:d?13096:21307,3);Hi(a,32,c,g,e^8192);m=(c|0)<(g|0)?g:c;break b}u=n+16|0;c:{d:{e:{b=nT(b,n+44|0);b=b+b;if(b!=0){g=J[n+44>>2];J[n+44>>2]=g-1;w=f|32;if((w|0)!=97)break e;break c}w=f|32;if((w|0)==97)break c;k=J[n+44>>2];l=(d|0)<0?6:d;break d}k=g-29|0;J[n+44>>2]=k;b=b*268435456;l=(d|0)<0?6:d}p=(n+48|0)+((k|0)>= +0?288:0)|0;h=p;while(1){if(b<4294967296&b>=0)d=~~b>>>0;else d=0;J[h>>2]=d;h=h+4|0;b=(b-+(d>>>0))*1E9;if(b!=0)continue;break}f:{if((k|0)<=0){d=k;g=h;i=p;break f}i=p;d=k;while(1){j=(d|0)>=29?29:d;g=h-4|0;g:{if(i>>>0>g>>>0)break g;o=0;while(1){d=J[g>>2];m=j&31;y=o;if((j&63)>>>0>=32){o=d<>>32-m;d=d<>>0>m>>>0?o+1|0:o,1E9,0);B=g,C=m-vEb(o,jc,1E9,0)|0,J[B>>2]=C;g=g-4|0;if(i>>>0<=g>>>0)continue;break}if(!o)break g;i=i-4|0;J[i>>2]=o}while(1){g=h;if(i>>> 0>>0){h=g-4|0;if(!J[h>>2])continue}break}d=J[n+44>>2]-j|0;J[n+44>>2]=d;h=g;if((d|0)>0)continue;break}}if((d|0)<0){s=((l+25>>>0)/9|0)+1|0;q=(w|0)==102;while(1){d=0-d|0;m=(d|0)>=9?9:d;h:{if(g>>>0<=i>>>0){h=J[i>>2];break h}o=1E9>>>m|0;j=-1<>2];J[h>>2]=y+(d>>>m|0);d=P(o,d&j);h=h+4|0;if(h>>>0>>0)continue;break}h=J[i>>2];if(!d)break h;J[g>>2]=d;g=g+4|0}d=m+J[n+44>>2]|0;J[n+44>>2]=d;i=(!h<<2)+i|0;h=q?p:i;g=g-h>>2>(s|0)?h+(s<<2)|0:g;if((d|0)<0)continue;break}}d=0;i:{if(g>>> 0<=i>>>0)break i;d=P(p-i>>2,9);h=10;j=J[i>>2];if(j>>>0<10)break i;while(1){d=d+1|0;h=P(h,10);if(j>>>0>=h>>>0)continue;break}}h=(l-((w|0)!=102?d:0)|0)-((w|0)==103&(l|0)!=0)|0;if((h|0)<(P(g-p>>2,9)-9|0)){o=h+9216|0;j=(o|0)/9|0;s=((n+48|0)+((k|0)<0?4:292)|0)+(j<<2)|0;k=s-4096|0;h=10;m=o-P(j,9)|0;if((m|0)<=7)while(1){h=P(h,10);m=m+1|0;if((m|0)!=8)continue;break}q=J[k>>2];o=(q>>>0)/(h>>>0)|0;m=q-P(h,o)|0;j=s-4092|0;j:{if(!m&(j|0)==(g|0))break j;k:{if(!(o&1)){b=9007199254740992;if(!(H[s-4100|0]&1)|((h| 0)!=1E9|i>>>0>=k>>>0))break k}b=9007199254740994}r=(g|0)==(j|0)?1:1.5;j=h>>>1|0;r=j>>>0>m>>>0?.5:(j|0)==(m|0)?r:1.5;if(!(K[x|0]!=45|z)){r=-r;b=-b}j=q-m|0;J[k>>2]=j;if(b+r==b)break j;d=h+j|0;J[k>>2]=d;if(d>>>0>=1E9)while(1){J[k>>2]=0;k=k-4|0;if(k>>>0>>0){i=i-4|0;J[i>>2]=0}d=J[k>>2]+1|0;J[k>>2]=d;if(d>>>0>999999999)continue;break}d=P(p-i>>2,9);h=10;j=J[i>>2];if(j>>>0<10)break j;while(1){d=d+1|0;h=P(h,10);if(j>>>0>=h>>>0)continue;break}}h=k+4|0;g=g>>>0>h>>>0?h:g}while(1){j=g;o=g>>>0<=i>>>0;if(!o){g= g-4|0;if(!J[g>>2])continue}break}l:{if((w|0)!=103){k=e&8;break l}h=l?l:1;g=(h|0)>(d|0)&(d|0)>-5;l=(g?d^-1:-1)+h|0;f=(g?-1:-2)+f|0;k=e&8;if(k)break l;g=-9;m:{if(o)break m;k=J[j-4>>2];if(!k)break m;m=10;g=0;if((k>>>0)%10|0)break m;while(1){h=g;g=g+1|0;m=P(m,10);if(!((k>>>0)%(m>>>0)|0))continue;break}g=h^-1}h=P(j-p>>2,9);if((f&-33)==70){k=0;g=(g+h|0)-9|0;g=(g|0)>0?g:0;l=(g|0)>(l|0)?l:g;break l}k=0;g=((d+h|0)+g|0)-9|0;g=(g|0)>0?g:0;l=(g|0)>(l|0)?l:g}m=-1;o=k|l;if(((o?2147483645:2147483646)|0)<(l|0))break b; -q=(((o|0)!=0)+l|0)+1|0;h=f&-33;n:{if((h|0)==70){if((q^2147483647)<(d|0))break b;g=(d|0)>0?d:0;break n}g=d>>31;g=js((g^d)-g|0,0,u);if((u-g|0)<=1)while(1){g=g-1|0;H[g|0]=48;if((u-g|0)<2)continue;break}s=g-2|0;H[s|0]=f;H[g-1|0]=(d|0)<0?45:43;g=u-s|0;if((g|0)>(q^2147483647))break b}d=g+q|0;if((d|0)>(t^2147483647))break b;q=d+t|0;ri(a,32,c,q,e);bi(a,x,t);ri(a,48,c,q,e^65536);o:{p:{q:{if((h|0)==70){f=n+16|0;d=f|8;k=f|9;h=i>>>0>p>>>0?p:i;i=h;while(1){g=js(J[i>>2],0,k);r:{if((h|0)!=(i|0)){if(n+16>>>0>=g>>> -0)break r;while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}break r}if((g|0)!=(k|0))break r;H[n+24|0]=48;g=d}bi(a,g,k-g|0);i=i+4|0;if(p>>>0>=i>>>0)continue;break}if(o)bi(a,28657,1);if((l|0)<=0|i>>>0>=j>>>0)break q;while(1){g=js(J[i>>2],0,k);if(g>>>0>n+16>>>0)while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}bi(a,g,(l|0)>=9?9:l);g=l-9|0;i=i+4|0;if(j>>>0<=i>>>0)break p;d=(l|0)>9;l=g;if(d)continue;break}break p}s:{if((l|0)<0)break s;p=i>>>0>>0?j:i+4|0;f=n+16|0;d=f|8;j=f|9;h=i; -while(1){g=js(J[h>>2],0,j);if((j|0)==(g|0)){H[n+24|0]=48;g=d}t:{if((h|0)!=(i|0)){if(n+16>>>0>=g>>>0)break t;while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}break t}bi(a,g,1);g=g+1|0;if(!(k|l))break t;bi(a,28657,1)}f=j-g|0;bi(a,g,(f|0)<(l|0)?f:l);l=l-f|0;h=h+4|0;if(p>>>0<=h>>>0)break s;if((l|0)>=0)continue;break}}ri(a,48,l+18|0,18,0);bi(a,s,u-s|0);break o}g=l}ri(a,48,g+9|0,9,0)}ri(a,32,c,q,e^8192);m=(c|0)<(q|0)?q:c;break b}k=(f<<26>>31&9)+x|0;u:{if(d>>>0>11)break u;g=12-d|0;r=16;while(1){r= -r*16;g=g-1|0;if(g)continue;break}if(K[k|0]==45){b=-(r+(-b-r));break u}b=b+r-r}g=J[n+44>>2];h=g>>31;g=js((g^h)-h|0,0,u);if((u|0)==(g|0)){H[n+15|0]=48;g=n+15|0}p=t|2;i=f&32;h=J[n+44>>2];l=g-2|0;H[l|0]=f+15;H[g-1|0]=(h|0)<0?45:43;g=e&8;h=n+16|0;while(1){f=h;if(R(b)<2147483648)j=~~b;else j=-2147483648;H[h|0]=i|K[j+2612848|0];b=(b-+(j|0))*16;h=f+1|0;if(!(!((d|0)>0|g)&b==0|(h-(n+16|0)|0)!=1)){H[f+1|0]=46;h=f+2|0}if(b!=0)continue;break}m=-1;g=u-l|0;f=g+p|0;if((2147483645-f|0)<(d|0))break b;j=f;f=n+16|0; -i=h-f|0;d=d?(i-2|0)<(d|0)?d+2|0:i:i;h=j+d|0;ri(a,32,c,h,e);bi(a,k,p);ri(a,48,c,h,e^65536);bi(a,f,i);ri(a,48,d-i|0,0,0);bi(a,l,g);ri(a,32,c,h,e^8192);m=(c|0)<(h|0)?h:c}bc=n+560|0;return m|0}function sM(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;o=bc-992|0;bc=o;a:{b:{r=J[a+4>>2];if(r){n=J[a+20>>2];i=J[a+16>>2];f=qf(o+16|0,0);J[695492]=0;da(153,f|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;c=L[a+26>>1];b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]= -0;e=J[a+68>>2];b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;ma(78,f|0,n|0,i|0,c|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;c=J[a+4>>2];e=J[a+44>>2];b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;ca(19,f|0,(c?e?c+40|0:0:0)|0,256);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;e=J[a+964>>2];b=J[695492];J[695492]=0;if((b|0)==1)break b;if(e){J[695492]=0;$(123,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;e=J[a+960>>2];b=J[695492];J[695492]= -0;if((b|0)==1)break b;if(e){J[695492]=0;$(163,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}c:{if(L[a+26>>1]!=1){if((n|0)<=0|(i|0)<=0)break c;b=0;while(1){q=b- -64|0;k=(n|0)<(q|0)?n:q;e=0;while(1){p=e- -64|0;l=(i|0)<(p|0)?i:p;g=e;d:{if(L[a+26>>1]==24)while(1){J[a+328>>2]=(P(g,100)|0)/(i|0);J[695492]=0;if(J[f+44>>2])c=0;else c=(J[f+56>>2]+P(J[f+52>>2],g)|0)+P(b,3)|0;h=J[695492];J[695492]=0;if((h|0)==1)break b;J[695492]=0;if(J[a+44>>2])h=0;else h=(J[a+56>>2]+P(J[a+52>>2],b)|0)+P((g^-1)+i|0,3)| -0;j=J[695492];J[695492]=0;d=b;if((j|0)==1)break b;while(1){H[c|0]=K[h|0];H[c+1|0]=K[h+1|0];H[c+2|0]=K[h+2|0];c=c+3|0;h=J[a+52>>2]+h|0;d=d+1|0;if((k|0)>(d|0))continue;break}g=g+1|0;if((l|0)>(g|0))continue;break d}while(1){J[a+328>>2]=(P(g,100)|0)/(i|0);j=(g^-1)+i|0;c=b;while(1){J[695492]=0;d=Fo(a,j,c);h=J[695492];J[695492]=0;if((h|0)==1)break b;J[695492]=0;sm(f,c,g,d);h=J[695492];J[695492]=0;if((h|0)==1)break b;c=c+1|0;if((k|0)>(c|0))continue;break}g=g+1|0;if((l|0)>(g|0))continue;break}}J[695492]= -0;g=J[a+964>>2];c=J[695492];J[695492]=0;if((c|0)==1)break b;e:{if(!g)break e;c=e- -64|0;l=(c|0)>(i|0)?i:c;g=e;while(1){j=(g^-1)+i|0;c=b;f:{while(1){J[695492]=0;d=K[j+(J[a+964>>2]+P(J[a+16>>2],c)|0)|0];h=J[695492];J[695492]=0;if((h|0)==1)break f;J[695492]=0;hh(f,c,g,d);h=J[695492];J[695492]=0;if((h|0)==1)break f;c=c+1|0;if((k|0)>(c|0))continue;break}g=g+1|0;if((l|0)<=(g|0))break e;continue}break}break b}J[695492]=0;g=J[a+960>>2];c=J[695492];J[695492]=0;if((c|0)==1)break b;g:{if(!g){e=p;break g}J[f+ -372>>2]=J[a+384>>2];J[f+380>>2]=J[a+376>>2];J[f+384>>2]=i-J[a+380>>2];J[f+376>>2]=i-J[a+372>>2];g=e- -64|0;j=(g|0)>(i|0)?i:g;h:{while(1){d=(e^-1)+i|0;c=b;while(1){J[695492]=0;p=K[d+(J[a+960>>2]+P(J[a+16>>2],c)|0)|0];h=J[695492];J[695492]=0;if((h|0)==1)break h;J[695492]=0;Hx(f,c,e,p);h=J[695492];J[695492]=0;if((h|0)==1)break h;c=c+1|0;if((k|0)>(c|0))continue;break}e=e+1|0;if((j|0)>(e|0))continue;break}e=g;break g}break b}if((e|0)<(i|0))continue;break}b=q;if((n|0)>(b|0))continue;break}break c}J[695492]= -0;q=df(a,0);b=J[695492];J[695492]=0;i:{if((b|0)!=1){J[695492]=0;m=df(f,0);b=J[695492];J[695492]=0;if((b|0)==1)break b;e=J[f+32>>2];J[695492]=0;Xx(f,0);b=J[695492];J[695492]=0;if((b|0)==1)break b;if(J[a+20>>2]>0){k=(e+m|0)-1|0;while(1){J[695492]=0;b=(h|0)/8|0;J[o+8>>2]=b;J[o+12>>2]=h-(b<<3);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[a+52>>2];if((b|0)>0){p=m+J[o+8>>2]|0;g=q+P(b,h)|0;l=128>>>J[o+12>>2]|0;c=0;while(1){b=J[f+52>>2];e=P(b,J[f+20>>2]+(c<<3^-1)|0)+p|0;j:{if(e>>>0>>0|e>>>0>k>>>0)break j; +q=(((o|0)!=0)+l|0)+1|0;h=f&-33;n:{if((h|0)==70){if((q^2147483647)<(d|0))break b;g=(d|0)>0?d:0;break n}g=d>>31;g=_s((g^d)-g|0,0,u);if((u-g|0)<=1)while(1){g=g-1|0;H[g|0]=48;if((u-g|0)<2)continue;break}s=g-2|0;H[s|0]=f;H[g-1|0]=(d|0)<0?45:43;g=u-s|0;if((g|0)>(q^2147483647))break b}d=g+q|0;if((d|0)>(t^2147483647))break b;q=d+t|0;Hi(a,32,c,q,e);pi(a,x,t);Hi(a,48,c,q,e^65536);o:{p:{q:{if((h|0)==70){f=n+16|0;d=f|8;k=f|9;h=i>>>0>p>>>0?p:i;i=h;while(1){g=_s(J[i>>2],0,k);r:{if((h|0)!=(i|0)){if(n+16>>>0>=g>>> +0)break r;while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}break r}if((g|0)!=(k|0))break r;H[n+24|0]=48;g=d}pi(a,g,k-g|0);i=i+4|0;if(p>>>0>=i>>>0)continue;break}if(o)pi(a,28673,1);if((l|0)<=0|i>>>0>=j>>>0)break q;while(1){g=_s(J[i>>2],0,k);if(g>>>0>n+16>>>0)while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}pi(a,g,(l|0)>=9?9:l);g=l-9|0;i=i+4|0;if(j>>>0<=i>>>0)break p;d=(l|0)>9;l=g;if(d)continue;break}break p}s:{if((l|0)<0)break s;p=i>>>0>>0?j:i+4|0;f=n+16|0;d=f|8;j=f|9;h=i; +while(1){g=_s(J[h>>2],0,j);if((j|0)==(g|0)){H[n+24|0]=48;g=d}t:{if((h|0)!=(i|0)){if(n+16>>>0>=g>>>0)break t;while(1){g=g-1|0;H[g|0]=48;if(n+16>>>0>>0)continue;break}break t}pi(a,g,1);g=g+1|0;if(!(k|l))break t;pi(a,28673,1)}f=j-g|0;pi(a,g,(f|0)<(l|0)?f:l);l=l-f|0;h=h+4|0;if(p>>>0<=h>>>0)break s;if((l|0)>=0)continue;break}}Hi(a,48,l+18|0,18,0);pi(a,s,u-s|0);break o}g=l}Hi(a,48,g+9|0,9,0)}Hi(a,32,c,q,e^8192);m=(c|0)<(q|0)?q:c;break b}k=(f<<26>>31&9)+x|0;u:{if(d>>>0>11)break u;g=12-d|0;r=16;while(1){r= +r*16;g=g-1|0;if(g)continue;break}if(K[k|0]==45){b=-(r+(-b-r));break u}b=b+r-r}g=J[n+44>>2];h=g>>31;g=_s((g^h)-h|0,0,u);if((u|0)==(g|0)){H[n+15|0]=48;g=n+15|0}p=t|2;i=f&32;h=J[n+44>>2];l=g-2|0;H[l|0]=f+15;H[g-1|0]=(h|0)<0?45:43;g=e&8;h=n+16|0;while(1){f=h;if(R(b)<2147483648)j=~~b;else j=-2147483648;H[h|0]=i|K[j+2627664|0];b=(b-+(j|0))*16;h=f+1|0;if(!(!((d|0)>0|g)&b==0|(h-(n+16|0)|0)!=1)){H[f+1|0]=46;h=f+2|0}if(b!=0)continue;break}m=-1;g=u-l|0;f=g+p|0;if((2147483645-f|0)<(d|0))break b;j=f;f=n+16|0; +i=h-f|0;d=d?(i-2|0)<(d|0)?d+2|0:i:i;h=j+d|0;Hi(a,32,c,h,e);pi(a,k,p);Hi(a,48,c,h,e^65536);pi(a,f,i);Hi(a,48,d-i|0,0,0);pi(a,l,g);Hi(a,32,c,h,e^8192);m=(c|0)<(h|0)?h:c}fc=n+560|0;return m|0}function ON(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;o=fc-992|0;fc=o;a:{b:{r=J[a+4>>2];if(r){n=J[a+20>>2];i=J[a+16>>2];f=xf(o+16|0,0);J[699344]=0;da(153,f|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;c=L[a+26>>1];b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]= +0;e=J[a+68>>2];b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;na(78,f|0,n|0,i|0,c|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;c=J[a+4>>2];e=J[a+44>>2];b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;ca(19,f|0,(c?e?c+40|0:0:0)|0,256);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;e=J[a+964>>2];b=J[699344];J[699344]=0;if((b|0)==1)break b;if(e){J[699344]=0;_(123,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]=0;e=J[a+960>>2];b=J[699344];J[699344]= +0;if((b|0)==1)break b;if(e){J[699344]=0;_(163,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}c:{if(L[a+26>>1]!=1){if((n|0)<=0|(i|0)<=0)break c;b=0;while(1){q=b- -64|0;k=(n|0)<(q|0)?n:q;e=0;while(1){p=e- -64|0;l=(i|0)<(p|0)?i:p;g=e;d:{if(L[a+26>>1]==24)while(1){J[a+328>>2]=(P(g,100)|0)/(i|0);J[699344]=0;if(J[f+44>>2])c=0;else c=(J[f+56>>2]+P(J[f+52>>2],g)|0)+P(b,3)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;if(J[a+44>>2])h=0;else h=(J[a+56>>2]+P(J[a+52>>2],b)|0)+P((g^-1)+i|0,3)| +0;j=J[699344];J[699344]=0;d=b;if((j|0)==1)break b;while(1){H[c|0]=K[h|0];H[c+1|0]=K[h+1|0];H[c+2|0]=K[h+2|0];c=c+3|0;h=J[a+52>>2]+h|0;d=d+1|0;if((k|0)>(d|0))continue;break}g=g+1|0;if((l|0)>(g|0))continue;break d}while(1){J[a+328>>2]=(P(g,100)|0)/(i|0);j=(g^-1)+i|0;c=b;while(1){J[699344]=0;d=vp(a,j,c);h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;jn(f,c,g,d);h=J[699344];J[699344]=0;if((h|0)==1)break b;c=c+1|0;if((k|0)>(c|0))continue;break}g=g+1|0;if((l|0)>(g|0))continue;break}}J[699344]= +0;g=J[a+964>>2];c=J[699344];J[699344]=0;if((c|0)==1)break b;e:{if(!g)break e;c=e- -64|0;l=(c|0)>(i|0)?i:c;g=e;while(1){j=(g^-1)+i|0;c=b;f:{while(1){J[699344]=0;d=K[j+(J[a+964>>2]+P(J[a+16>>2],c)|0)|0];h=J[699344];J[699344]=0;if((h|0)==1)break f;J[699344]=0;yh(f,c,g,d);h=J[699344];J[699344]=0;if((h|0)==1)break f;c=c+1|0;if((k|0)>(c|0))continue;break}g=g+1|0;if((l|0)<=(g|0))break e;continue}break}break b}J[699344]=0;g=J[a+960>>2];c=J[699344];J[699344]=0;if((c|0)==1)break b;g:{if(!g){e=p;break g}J[f+ +372>>2]=J[a+384>>2];J[f+380>>2]=J[a+376>>2];J[f+384>>2]=i-J[a+380>>2];J[f+376>>2]=i-J[a+372>>2];g=e- -64|0;j=(g|0)>(i|0)?i:g;h:{while(1){d=(e^-1)+i|0;c=b;while(1){J[699344]=0;p=K[d+(J[a+960>>2]+P(J[a+16>>2],c)|0)|0];h=J[699344];J[699344]=0;if((h|0)==1)break h;J[699344]=0;yy(f,c,e,p);h=J[699344];J[699344]=0;if((h|0)==1)break h;c=c+1|0;if((k|0)>(c|0))continue;break}e=e+1|0;if((j|0)>(e|0))continue;break}e=g;break g}break b}if((e|0)<(i|0))continue;break}b=q;if((n|0)>(b|0))continue;break}break c}J[699344]= +0;q=mf(a,0);b=J[699344];J[699344]=0;i:{if((b|0)!=1){J[699344]=0;m=mf(f,0);b=J[699344];J[699344]=0;if((b|0)==1)break b;e=J[f+32>>2];J[699344]=0;Oy(f,0);b=J[699344];J[699344]=0;if((b|0)==1)break b;if(J[a+20>>2]>0){k=(e+m|0)-1|0;while(1){J[699344]=0;b=(h|0)/8|0;J[o+8>>2]=b;J[o+12>>2]=h-(b<<3);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[a+52>>2];if((b|0)>0){p=m+J[o+8>>2]|0;g=q+P(b,h)|0;l=128>>>J[o+12>>2]|0;c=0;while(1){b=J[f+52>>2];e=P(b,J[f+20>>2]+(c<<3^-1)|0)+p|0;j:{if(e>>>0>>0|e>>>0>k>>>0)break j; j=c+g|0;if(H[j|0]<0){H[e|0]=l|K[e|0];b=J[f+52>>2]}d=e-b|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&64){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e-(b<<1)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&32){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e+P(b,-3)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&16){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e-(b<<2)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&8){H[d|0]=l|K[d|0];b=J[f+52>>2]}d=e+P(b,-5)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&4){H[d|0]=l|K[d|0];b=J[f+52>>2]}d= -e+P(b,-6)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&2){H[d|0]=l|K[d|0];b=J[f+52>>2]}b=P(b,-7)+e|0;if(!(H[j|0]&1)|(b>>>0>>0|b>>>0>k>>>0))break j;H[b|0]=l|K[b|0]}c=c+1|0;if((c|0)>2])continue;break}}h=h+1|0;if((h|0)>2])continue;break}}d=0;J[695492]=0;e=J[a+964>>2];b=J[695492];J[695492]=0;if((b|0)==1)break b;if(!(!e|(n|0)<=0|(i|0)<=0))while(1){g=(d^-1)+i|0;c=0;while(1){J[695492]=0;e=K[g+(J[a+964>>2]+P(J[a+16>>2],c)|0)|0];b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0; -hh(f,c,d,e);b=J[695492];J[695492]=0;if((b|0)==1)break b;c=c+1|0;if((n|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}J[695492]=0;e=J[a+960>>2];b=J[695492];J[695492]=0;if((b|0)==1)break b;if(!e)break c;J[f+372>>2]=J[a+384>>2];J[f+380>>2]=J[a+376>>2];J[f+384>>2]=i-J[a+380>>2];J[f+376>>2]=i-J[a+372>>2];if((i|0)<=0|(n|0)<=0)break c;d=0;while(1){g=(d^-1)+i|0;c=0;while(1){J[695492]=0;e=K[g+(J[a+960>>2]+P(J[a+16>>2],c)|0)|0];b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;Hx(f,c, -d,e);b=J[695492];J[695492]=0;if((b|0)==1)break i;c=c+1|0;if((n|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}break c}break b}break b}J[695492]=0;ga(108,a|0,f|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[f>>2]=1032;J[695492]=0;$(13,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;J[695492]=0;$(14,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=o+992|0;return(r|0)!=0}b=Z()|0;J[f>>2]=1032;J[695492]=0;$(13,f|0)|0;a=J[695492];J[695492]=0;k:{if((a|0)==1)break k;J[695492]= -0;$(14,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;ba(b|0);B()}}ea(0)|0;yc();B()}function qCa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=bc-1104|0;bc=d;while(1){c=a;a=J[a+16>>2];if(a)continue;break}a:{b:{c:{d:{e:{f:{g:{g=c+20|0;h:{if(!Pj(g))break h;h=c+56|0;i:{a=J[c+56>>2];j:{if(!a){J[d+1100>>2]=0;break j}J[a+4>>2]=J[a+4>>2]+1;a=J[h>>2];J[d+1100>>2]=a;if(a)break i}k:{l:{m:{n:{a=J[689872];if(!a){J[695492]=0;a=$(4,28)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;J[a+4>>2]=0;J[a+24>>2]=0;J[a+ -8>>2]=0;J[a+12>>2]=0;J[a>>2]=2385980;J[a+16>>2]=0;J[a+20>>2]=0;J[695492]=0;b=a+8|0;J[b>>2]=2386024;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1){c=Z()|0;qc(ed(a));break b}J[689872]=a}J[695492]=0;J[d+1096>>2]=0;b=d+1096|0;aa(4985,b|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break n;J[695492]=0;f=d+16|0;ia(5077,f|0,a|0,g|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break m;J[695492]=0;a=aa(4993,d+1100|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[695492]=0;aa(4993, -h|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[d+16>>2];J[d+16>>2]=0;o:{if(!a)break o;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(b)break o;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[d+1096>>2];J[d+1096>>2]=0;if(!a)break i;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)!=1){if(b)break i;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i}break a}c=Z()|0;break b}c=Z()|0;break k}c= -Z()|0;vc(d+16|0)}vc(d+1096|0);break b}J[695492]=0;a=d+16|0;_(5078,a|0);b=J[695492];J[695492]=0;p:{q:{r:{s:{t:{u:{v:{w:{x:{if((b|0)!=1){J[695492]=0;f=c- -64|0;aa(4993,f|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break x;a=J[d+16>>2];J[d+16>>2]=0;y:{if(!a)break y;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(b)break y;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[c+72>>2];J[695492]=0;_(5079,a+4|0);a=J[695492];J[695492]=0;if((a|0)== -1)break w;a=J[689874];if(!a){J[695492]=0;b=$(4,32)|0;a=J[695492];J[695492]=0;if((a|0)==1)break w;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[695492]=0;a=aa(5080,b|0,2385952)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;J[689874]=a}J[695492]=0;J[d+1092>>2]=0;b=d+1092|0;aa(4985,b|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break w;J[695492]=0;ca(5081,a|0,g|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break v;a=J[d+1092>>2];J[d+1092>>2]=0;z:{if(!a)break z; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(b)break z;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[695492]=0;a=$(5082,d+1056|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break u;J[695492]=0;aa(5083,g|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[a+24>>2]=2381060;J[a>>2]=2381028;b=J[a+28>>2];if(b){e=J[b+4>>2]-1|0;J[b+4>>2]=e;if(!e)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2381060;b=J[a+20>>2];if(b){e=J[b+4>>2]-1|0;J[b+4>> -2]=e;if(!e)gc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}sc(a+8|0);b=J[d+1100>>2];a=J[b+44>>2];J[695492]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break s;a=J[b+44>>2];J[d+1052>>2]=a;b=J[J[a>>2]+20>>2];J[695492]=0;ha(b|0,a|0,0,0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break r;while(1){a=J[J[d+1100>>2]+44>>2];b=J[J[a>>2]+8>>2];J[695492]=0;e=b;b=d+16|0;a=ga(e|0,a|0,b|0,1024)|0;e=J[695492];J[695492]=0;if((e|0)==1)break q;if(!a)break p;e=J[c+76>>2];J[695492]=0;ia(5084,c|0,b|0,e|0,a|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break q;J[c+76>>2]=a+J[c+76>>2];continue}}c=Z()|0;break b}c=Z()|0;vc(d+16|0);break b}c=Z()|0;break b}c=Z()|0;vc(d+1092|0);break b}c=Z()|0;break b}c=Z()|0;ud(a);break b}c=Z()|0;break b}c=Z()|0;break d}c=Z()|0;break d}J[695492]=0;a=$(5074,g|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;if(!(J[c+16>>2]!=0|a)){H[c+8|0]=1;if(J[c+84>>2]<0){a=J[f>>2];b=J[J[a>>2]+28>>2];J[695492]=0;a=$(b|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[c+84>>2]=a}a=J[c+96>>2];if(a)while(1){b= -J[a+8>>2];if(!J[b+8>>2])J[b+8>>2]=1;a=J[a>>2];if(a)continue;break}J[695492]=0;_(5085,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break e}a=J[689872];if(!a){J[695492]=0;a=$(4,28)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[a+4>>2]=0;J[a+24>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2385980;J[a+16>>2]=0;J[a+20>>2]=0;J[695492]=0;b=a+8|0;J[b>>2]=2386024;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1){c=Z()|0;qc(ed(a));break d}J[689872]=a}J[d+12>>2]=0;J[695492]=0;b=J[d+1100>>2]; -g=d+12|0;aa(4985,g|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[695492]=0;ca(5064,a|0,b+44|0,g|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[d+12>>2];J[d+12>>2]=0;A:{if(!a)break A;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break A;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[d+1052>>2];B:{if(!a)break B;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break B;J[695492]=0; -_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[695492]=0;aa(4985,h|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[d+1100>>2];J[d+1100>>2]=0;if(!a)break h;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break h;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+1104|0;return}c=Z()|0;vc(d+12|0);break d}c=Z()|0;qc(b);break b}c=Z()|0}vc(d+1052|0);break b}c=Z()|0}vc(d+1100|0);ba(c|0);B()}ea(0)|0;yc();B()}function Dxb(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;a:{b:{c:{d:{if(J[a+84>>2]!=4)break d;d=zc(J[a+56>>2]<<5);if(!d)break c;f=J[a+56>>2];if((f|0)>0){e=J[a+88>>2];c=d;while(1){J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=J[e+16>>2];J[c+28>>2]=K[e+20|0];J[c+16>>2]=J[e+8>>2];J[c+20>>2]=J[e+12>>2];J[c+8>>2]=J[e>>2];J[c+12>>2]=J[e+4>>2];c=c+32|0;e=e+32|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}c=Rr(f,d);J[a>>2]=c;if(!c)return-1;qc(d);h=J[a+92>>2];if(!h)break d;f=0;c=zc(12);e:{f:{if(!c)break f;J[c>> -2]=0;J[c+4>>2]=100;d=zc(400);J[c+8>>2]=d;if(d){i=J[c+4>>2];g:{if((i|0)<=0)break g;if(i>>>0>=4){d=i&-4;while(1){e=f<<2;J[e+J[c+8>>2]>>2]=0;J[J[c+8>>2]+(e|4)>>2]=0;J[J[c+8>>2]+(e|8)>>2]=0;J[J[c+8>>2]+(e|12)>>2]=0;f=f+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}d=i&3;if(!d)break g;while(1){J[J[c+8>>2]+(f<<2)>>2]=0;f=f+1|0;l=l+1|0;if((d|0)!=(l|0))continue;break}}if(!J[h>>2])break e;d=J[J[h+8>>2]>>2];f=J[d+4>>2];h:{if(f>>>0<4)break h;k=J[d+8>>2];g=0;while(1){m=Fi(0,0);if(!m)break h;j=J[c+8>>2];n=J[c>> -2];d=J[c+4>>2];if((n|0)>=(d|0)){j=Kh(j,(d<<2)- -8192|0);if(!j)break h;p=d+1024|0;o=J[c+4>>2];d=J[c>>2];i:{if((o|0)<=(d|0))break i;l=0;e=d;i=o-e&3;if(i)while(1){J[J[c+8>>2]+(e<<2)>>2]=0;e=e+1|0;l=l+1|0;if((i|0)!=(l|0))continue;break}if(o+(d^-1)>>>0<3)break i;while(1){i=e<<2;J[i+J[c+8>>2]>>2]=0;J[(i+J[c+8>>2]|0)+4>>2]=0;J[(i+J[c+8>>2]|0)+8>>2]=0;J[(i+J[c+8>>2]|0)+12>>2]=0;e=e+4|0;if((o|0)!=(e|0))continue;break}}J[c+8>>2]=j;J[c+4>>2]=p;if((d|0)!=(n|0))break h}J[(n<<2)+j>>2]=m;J[c>>2]=n+1;d=K[k|0]|K[k+ -1|0]<<8|(K[k+2|0]<<16|K[k+3|0]<<24);k=k+4|0;f=f-4|0;l=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(l)while(1){if(!f){g=g+1|0;if((g|0)>=J[h>>2])break h;d=J[J[h+8>>2]+(g<<2)>>2];f=J[d+4>>2];k=J[d+8>>2]}d=f>>>0>l>>>0?l:f;if((Ko(m,k,d)|0)!=(d|0))break h;f=f-d|0;k=d+k|0;l=l-d|0;if(l)continue;break}yn(m);if(!f){g=g+1|0;if((g|0)>=J[h>>2])break e;d=J[J[h+8>>2]+(g<<2)>>2];f=J[d+4>>2];k=J[d+8>>2]}if(f>>>0>3)continue;break}}f=c;break f}qc(c)}c=J[f+8>>2];if(c){if(J[f>>2]>0){c=0;while(1){If(J[J[f+8>>2]+(c<<2)>> -2]);c=c+1|0;if((c|0)>2])continue;break}c=J[f+8>>2]}qc(c)}qc(f);c=0}J[a+96>>2]=c;if(!c)break b;e=J[a+92>>2];if(J[e>>2]>0){c=0;while(1){f=J[J[e+8>>2]+(c<<2)>>2];d=J[f+8>>2];if(d)qc(d);qc(f);c=c+1|0;if((c|0)>2])continue;break}}c=J[e+8>>2];if(c)qc(c);qc(e);J[a+92>>2]=0}c=J[b+16>>2];if(c)d=((c+J[J[a+60>>2]+60>>2]|0)-J[b+4>>2]|0)-4|0;else d=0;J[a+100>>2]=d;e=J[b+12>>2];if((e|0)>J[a+44>>2]){hd(205078,0);return-1}d=J[a+48>>2];i=d+P(e,56)|0;J[a+52>>2]=i;g=-1;f=K[b+20|0];j:{if((f|0)!=J[i+40>>2])break j; -c=J[i+44>>2];if((c|0)>0&(c|0)<=(f|0))break j;k:{if(c)break k;c=K[b+21|0];if(!c)break k;J[i+44>>2]=c}n=d+P(e,56)|0;J[n+20>>2]=0;l:{if(!J[i>>2]){J[i>>2]=1;if(J[n+32>>2])break a;j=J[a+64>>2];b=J[j+20>>2];m:{h=zc(28);n:{if(!h)break n;J[h+20>>2]=b;J[h>>2]=0;I[h+16>>1]=0;J[h+12>>2]=0;H[h+8|0]=0;b=zc(P(b,488));J[h+24>>2]=b;if(!b)break n;c=j9();J[h+4>>2]=c;if(!c){qc(J[h+24>>2]);break n}f=J[h+20>>2];if((f|0)>0){c=J[h+24>>2];if(f>>>0>=4){b=f&-4;g=0;while(1){H[c+418|0]=0;I[c+416>>1]=0;J[c+12>>2]=0;J[c>>2]=0; -J[c+488>>2]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;J[c+976>>2]=0;J[c+1464>>2]=0;H[c+906|0]=0;I[c+904>>1]=0;J[c+500>>2]=0;H[c+1394|0]=0;I[c+1392>>1]=0;J[c+988>>2]=0;H[c+493|0]=0;H[c+494|0]=0;H[c+495|0]=0;H[c+496|0]=0;H[c+1882|0]=0;I[c+1880>>1]=0;J[c+1476>>2]=0;H[c+981|0]=0;H[c+982|0]=0;H[c+983|0]=0;H[c+984|0]=0;d=c+1469|0;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;c=c+1952|0;g=g+4|0;if((b|0)!=(g|0))continue;break}}b=f&3;if(b){g=0;while(1){H[c+418|0]=0;I[c+416>>1]=0;J[c+12>>2]=0;J[c>>2]=0;H[c+ -5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;c=c+488|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}c=J[h+4>>2]}J[h>>2]=J[j>>2];H[h+8|0]=K[j+8|0];J[h+12>>2]=J[j+12>>2];H[h+16|0]=K[j+16|0];H[h+17|0]=K[j+17|0];JN(c);J[h+4>>2]=0;o=J[j+4>>2];g=0;e=zc(12);o:{if(e){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;if(J[o>>2]<=0)break o;while(1){p:{c=J[J[o+8>>2]+(g<<2)>>2];m=zc(16);if(!m)break p;b=J[c+4>>2];J[m>>2]=J[c>>2];J[m+4>>2]=b;b=J[c+12>>2];J[m+8>>2]=J[c+8>>2];J[m+12>>2]=b;c=J[e+8>>2];d=J[e>>2];b=J[e+4>>2];q:{if((d|0)<(b| -0)){b=d;break q}b=b+128|0;c=Kh(c,b<<2);if(!c)break p;J[e+8>>2]=c;J[e+4>>2]=b;b=J[e>>2];if((d|0)>=(b|0))break q;p=0;c=b;i=c-d&3;if(i)while(1){f=J[e+8>>2]+(c<<2)|0;J[f>>2]=J[f-4>>2];c=c-1|0;p=p+1|0;if((i|0)!=(p|0))continue;break}if((d^-1)+b>>>0>=3)while(1){i=c<<2;f=i+J[e+8>>2]|0;J[f>>2]=J[f-4>>2];f=i+J[e+8>>2]|0;J[f-4>>2]=J[f-8>>2];f=i+J[e+8>>2]|0;J[f-8>>2]=J[f-12>>2];f=i+J[e+8>>2]|0;J[f-12>>2]=J[f-16>>2];c=c-4|0;if((d|0)<(c|0))continue;break}c=J[e+8>>2]}J[(d<<2)+c>>2]=m;J[e>>2]=b+1;g=g+1|0;if((g|0)< -J[o>>2])continue;break o}break}b=J[e+8>>2];if(b){if(J[e>>2]>0){c=0;while(1){qc(J[J[e+8>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}b=J[e+8>>2]}qc(b)}qc(e)}e=0}J[h+4>>2]=e;if(e)break m;qc(h)}J[n+32>>2]=0;return-1}if(J[j+20>>2]>0){g=J[h+24>>2];c=J[j+24>>2];b=0;while(1){d=tc(g,c,488);c=c+488|0;g=d+488|0;b=b+1|0;if((b|0)>2])continue;break}}J[n+32>>2]=h;b=J[a+64>>2];J[b>>2]=J[b>>2]&3;d=J[b+20>>2];if((d|0)<=0)break l;c=J[b+24>>2];if(d>>>0>=8){b=d&-8;e=0;while(1){J[c+3416>>2]=0;J[c+2928>> -2]=0;J[c+2440>>2]=0;J[c+1952>>2]=0;J[c+1464>>2]=0;J[c+976>>2]=0;J[c+488>>2]=0;J[c>>2]=0;c=c+3904|0;e=e+8|0;if((b|0)!=(e|0))continue;break}}b=d&7;if(!b)break l;e=0;while(1){J[c>>2]=0;c=c+488|0;e=e+1|0;if((b|0)!=(e|0))continue;break}break l}if(K[b+21|0]!=(f-1|0))break l;J[i>>2]=2}J[a+84>>2]=16;g=0}return g|0}fa(204613,201384,453,211721);B()}ra();B()}fa(205217,201384,516,211721);B()}function BA(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;a:{b:{c:switch(J[b+ -4>>2]){case 1:case 2:case 3:break a;case 0:break c;default:break b}j=J[b+52>>2];if(J[j+8>>2]<=0)break b;while(1){BA(a,J[J[j>>2]+(l<<2)>>2],c,d);l=l+1|0;j=J[b+52>>2];if((l|0)>2])continue;break}}return}y=c;p=b;b=rc(16);J[695492]=0;h=$(3185,b|0)|0;c=J[695492];J[695492]=0;d:{if((c|0)!=1)e:{GH(a,p,h,0);l=J[h+8>>2];f:{if((l|0)<2)break f;q=J[h>>2];e=q-4|0;a=0;c=1;while(1){b=c<<2;d=J[b+q>>2];g:{h:{i:{j:{k:{j=J[b+e>>2];switch(J[j+4>>2]-1|0){case 2:break h;case 1:break i;case 0:break j;default:break k}}b= -d+24|0;d=j+32|0;break g}b=j+8|0;d=d+16|0;break g}b=j+24|0;d=d+24|0;break g}b=d+8|0;d=d+16|0}m=O[b>>3]-O[d>>3];b=m>0;k=k+(b?m:-0);a=a+b|0;c=c+1|0;if((l|0)!=(c|0))continue;break}if(!a)break f;k=k/+(a|0)}b=rc(16);J[695492]=0;w=$(3185,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;if(J[h+8>>2]>0){m=k*1.25;d=p+16|0;j=p+40|0;l=p+24|0;q=p+32|0;c=0;while(1){b=rc(16);J[695492]=0;n=$(3185,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;g=J[J[h>>2]+(c<<2)>>2];id(n,g);t=0;a=c+1|0;l:{if((a|0)>=J[h+8>>2]){c= -a;break l}f=J[J[h>>2]+(a<<2)>>2];m:{n:{o:{p:{q:{u=J[g+4>>2]-1|0;switch(u|0){case 2:break n;case 1:break o;case 0:break p;default:break q}}e=d;b=g+8|0;break m}e=l;b=g+24|0;break m}e=g+16|0;b=q;break m}e=g+32|0;b=j}i=O[b>>3]-O[e>>3];r:{s:{t:switch(J[f+4>>2]-1|0){default:e=d;b=f+8|0;break s;case 0:e=l;b=f+24|0;break s;case 1:e=f+16|0;b=q;break s;case 2:break t}e=f+32|0;b=j}k=O[b>>3]-O[e>>3];x=k-i;o=O[g+40>>3];v=o*.5;r=O[f+40>>3];if(!(x>v)|!(R(o-r)<=1))break r;u:{v:switch(u|0){default:e=f+24|0;b=g+32| -0;break u;case 0:e=g+8|0;b=f+16|0;break u;case 1:e=g+24|0;b=f+24|0;break u;case 2:break v}e=f+8|0;b=f+16|0}if(!(O[e>>3]-O[b>>3]<=m))break r;id(n,f);c=c+2|0;if((c|0)>=J[h+8>>2])break l;while(1){w:{x:{y:{z:{A:{f=J[h>>2]+(c<<2)|0;e=J[f>>2];switch(J[e+4>>2]-1|0){case 2:break x;case 1:break y;case 0:break z;default:break A}}b=e+8|0;a=d;break w}b=e+24|0;a=l;break w}b=q;a=e+16|0;break w}b=j;a=e+32|0}if(v>3]-O[a>>3])|R(o-O[e+40>>3])>1)break l;B:{C:{D:{E:{F:{b=J[f-4>>2];switch(J[b+4>>2]-1|0){case 2:break C; -case 1:break D;case 0:break E;default:break F}}a=b+32|0;b=e+24|0;break B}a=e+16|0;b=b+8|0;break B}a=e+24|0;b=b+24|0;break B}a=e+16|0;b=e+8|0}if(O[b>>3]-O[a>>3]>m)break l;id(n,e);c=c+1|0;if((c|0)>2])continue;break}break l}G:{if(!(o>r*1.5))break G;s=r*.5;if(!(x>s))break G;H:{I:switch(u|0){default:e=f+24|0;b=g+32|0;break H;case 0:e=g+8|0;b=f+16|0;break H;case 1:e=g+24|0;b=f+24|0;break H;case 2:break I}e=f+8|0;b=f+16|0}if(!(O[e>>3]-O[b>>3]<0))break G;id(n,f);b=J[h+8>>2];c=c+2|0;J:{if((b|0)<=(c| -0))break J;while(1){K:{L:{M:{N:{O:{g=J[h>>2]+(c<<2)|0;f=J[g>>2];switch(J[f+4>>2]-1|0){case 2:break L;case 1:break M;case 0:break N;default:break O}}e=d;a=f+8|0;break K}e=l;a=f+24|0;break K}e=f+16|0;a=q;break K}e=f+32|0;a=j}if(O[a>>3]-O[e>>3]-i<=s)break J;P:{Q:{R:{S:{T:{e=J[g-4>>2];switch(J[e+4>>2]-1|0){case 2:break Q;case 1:break R;case 0:break S;default:break T}}a=e+32|0;e=f+24|0;break P}a=f+16|0;e=e+8|0;break P}a=f+24|0;e=e+24|0;break P}a=f+16|0;e=f+8|0}if(O[e>>3]-O[a>>3]>m)break J;id(n,f);b=J[h+ -8>>2];c=c+1|0;if((b|0)>(c|0))continue;break}}if((b|0)<=(c|0)){t=1;break l}while(1){U:{V:{W:{X:{Y:{f=J[h>>2]+(c<<2)|0;e=J[f>>2];switch(J[e+4>>2]-1|0){case 2:break V;case 1:break W;case 0:break X;default:break Y}}b=e+8|0;a=d;break U}b=e+24|0;a=l;break U}b=q;a=e+16|0;break U}b=j;a=e+32|0}if(O[b>>3]-O[a>>3]-i>s){t=1;break l}if(R(r-O[e+40>>3])>1){t=1;break l}Z:{_:{$:{aa:{ba:{b=J[f-4>>2];switch(J[b+4>>2]-1|0){case 2:break _;case 1:break $;case 0:break aa;default:break ba}}a=b+32|0;b=e+24|0;break Z}a=e+ -16|0;b=b+8|0;break Z}a=e+24|0;b=b+24|0;break Z}a=e+16|0;b=e+8|0}if(O[b>>3]-O[a>>3]>m){t=1;break l}id(n,e);t=1;c=c+1|0;if((c|0)>2])continue;break}break l}if(!(R(o-r)<=1)){c=a;break l}ca:{da:switch(u|0){default:e=f+24|0;b=g+32|0;break ca;case 0:e=g+8|0;b=f+16|0;break ca;case 1:e=g+24|0;b=f+24|0;break ca;case 2:break da}e=f+8|0;b=f+16|0}if(!(O[e>>3]-O[b>>3]<=m)){c=a;break l}id(n,f);c=c+2|0;if((c|0)>=J[h+8>>2])break l;while(1){ea:{fa:{ga:{ha:{ia:{f=J[h>>2]+(c<<2)|0;e=J[f>>2];switch(J[e+4>>2]-1| -0){case 2:break fa;case 1:break ga;case 0:break ha;default:break ia}}b=e+8|0;a=d;break ea}b=e+24|0;a=l;break ea}b=q;a=e+16|0;break ea}b=j;a=e+32|0}if(v>3]-O[a>>3]-k|R(o-O[e+40>>3])>1)break l;ja:{ka:{la:{ma:{na:{b=J[f-4>>2];switch(J[b+4>>2]-1|0){case 2:break ka;case 1:break la;case 0:break ma;default:break na}}a=b+32|0;b=e+24|0;break ja}a=e+16|0;b=b+8|0;break ja}a=e+24|0;b=b+24|0;break ja}a=e+16|0;b=e+8|0}if(O[b>>3]-O[a>>3]>m)break l;id(n,e);c=c+1|0;if((c|0)>2])continue;break}}a=rc(40); -J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=t;J[a>>2]=n;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;f=J[n+8>>2];oa:{if((f|0)<=0)break oa;g=J[n>>2];b=J[g>>2];k=O[b+8>>3];O[a+8>>3]=k;s=O[b+24>>3];O[a+24>>3]=s;r=O[b+16>>3];O[a+16>>3]=r;o=O[b+32>>3];O[a+32>>3]=o;b=1;if((f|0)==1)break oa;while(1){e=J[g+(b<<2)>>2];i=O[e+8>>3];if(i>3]=i;k=i}i=O[e+24>>3];if(i>3]=i;s=i}i=O[e+16>>3];if(i>r){O[a+16>>3]=i;r=i}i=O[e+32>>3];if(i>o){O[a+32>>3]=i;o=i}b=b+1|0;if((f|0)!= -(b|0))continue;break}}id(w,a);if(J[h+8>>2]>(c|0))continue;break}}qc(dd(h));a=rc(56);k=O[p+32>>3];m=O[p+40>>3];s=O[p+16>>3];O[a+24>>3]=O[p+24>>3];O[a+8>>3]=s;J[a>>2]=w;J[a+40>>2]=0;J[a+44>>2]=0;O[a+32>>3]=m;O[a+16>>3]=k;J[a+48>>2]=0;J[a+52>>2]=0;break d}a=Z()|0;qc(b);ba(a|0);B()}id(y,a)}function vVa(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;e=bc+-64|0;bc=e;a=mp(a,b,c,d);J[a+212>>2]=0;J[a+216>>2]=0;J[a>>2]=831020;J[a+220>>2]=0;J[a+224>>2]=0;J[a+228>>2]=0;J[a+232>> -2]=0;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;b=J[b+24>>2];J[695492]=0;ha(3207,c|0,b|0,e+48|0,0)|0;b=J[695492];J[695492]=0;k=a+224|0;l=a+212|0;a:{b:{c:{if((b|0)!=1){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[695492]=0;b=ha(3203,J[e+56>>2],830253,e+32|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(J[b>>2]==4){J[695492]=0;aa(2808,e|0,J[e+40>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;_(3205,e+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;c=K[e+11|0];b=c<<24>>24;d:{e:{f:switch(((b| -0)<0?J[e+4>>2]:c)-7|0){case 0:if(Wc((b|0)<0?J[e>>2]:e,831117,7))break d;b=6;break e;case 1:break f;default:break d}b=(b|0)<0?J[e>>2]:e;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))!=2037149520|(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24))!=1701734732)break d;b=7}H[a+209|0]=b}J[695492]=0;b=ha(3203,J[e+56>>2],831393,e+32|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;g:{if(J[b>>2]!=6)break g;c=J[e+40>>2];if(J[c+12>>2]<=0)break g;while(1){J[695492]=0;b=ha(3283,c|0,i|0,e+16|0,0)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break b;h:{if(J[b>>2]-3>>>0>=4294967294){if(i&1)j=O[a+8>>3]-(J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]);else j=(J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3])-O[a+16>>3];c=J[a+228>>2];d=J[a+232>>2];if(c>>>0>>0){O[c>>3]=j;J[a+228>>2]=c+8;break h}g=J[k>>2];h=c-g>>3;b=h+1|0;if(b>>>0>=536870912){J[695492]=0;_(2399,k|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;break c}i:{d=d-g|0;f=d>>2;f=d>>>0>=2147483640?536870911:b>>>0>>0?f:b;j:{if(!f){d=0;break j}if(f>>>0>=536870912){J[695492]=0; -ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}J[695492]=0;d=$(4,f<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i}b=(h<<3)+d|0;O[b>>3]=j;h=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[a+232>>2]=(f<<3)+d;J[a+228>>2]=h;J[a+224>>2]=b;if(!g)break h;qc(g);break h}break b}c=J[a+228>>2];d=J[a+232>>2];if(c>>>0>>0){J[c>>2]=0;J[c+4>>2]=0;J[a+228>>2]=c+8;break h}k:{l:{m:{g=J[k>>2];h=c-g>>3;b=h+1|0;n:{if(b>>>0>=536870912){J[695492]=0;_(2399, -k|0);break n}d=d-g|0;f=d>>2;f=d>>>0>=2147483640?536870911:b>>>0>>0?f:b;if(!f){d=0;break l}if(f>>>0<536870912)break m;J[695492]=0;ka(209)}b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}J[695492]=0;d=$(4,f<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k}b=(h<<3)+d|0;J[b>>2]=0;J[b+4>>2]=0;h=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[a+232>>2]=(f<<3)+d;J[a+228>>2]=h;J[a+224>>2]=b;if(!g)break h;qc(g);break h}break b}J[695492]=0;_(3205,e+16| -0);b=J[695492];J[695492]=0;if((b|0)==1)break b;i=i+1|0;c=J[e+40>>2];if((i|0)>2])continue;break}}J[695492]=0;b=e+32|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;b=ha(3203,J[e+56>>2],828535,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;o:{if(J[b>>2]!=6)break o;I[a+210>>1]=1285;J[a+4>>2]=J[a+4>>2]|32768;b=J[e+40>>2];if(J[b+12>>2]<=0)break o;J[695492]=0;c=b;b=e+16|0;c=ha(3283,c|0,0,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(J[c>>2]==4)m=a,n=fw(b),H[m+ -210|0]=n;J[695492]=0;d=e+16|0;b=d;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;c=J[e+40>>2];if(J[c+12>>2]<2)break o;J[695492]=0;b=ha(3283,c|0,1,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(J[b>>2]==4)m=a,n=fw(d),H[m+211|0]=n;J[695492]=0;_(3205,e+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;b=e+32|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;b=ha(3203,J[e+56>>2],828696,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;p:{q:{if(J[b>> -2]!=6)break q;J[a+4>>2]=J[a+4>>2]|65536;c=J[e+40>>2];if(J[c+12>>2]<=0)break q;i=0;while(1){J[695492]=0;b=ha(3283,c|0,i|0,e+16|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;j=0;j=J[b>>2]-3>>>0>=4294967294?J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]:j;c=J[a+216>>2];d=J[a+220>>2];r:{if(c>>>0>>0){O[c>>3]=j;J[a+216>>2]=c+8;break r}s:{t:{g=J[l>>2];h=c-g>>3;b=h+1|0;u:{if(b>>>0>=536870912){J[695492]=0;_(2399,l|0);break u}d=d-g|0;f=d>>2;f=d>>>0>=2147483640?536870911:b>>>0>>0?f:b;if(!f){d=0;break s}if(f>>> -0<536870912)break t;J[695492]=0;ka(209)}b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}J[695492]=0;d=$(4,f<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}b=(h<<3)+d|0;O[b>>3]=j;h=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[a+220>>2]=(f<<3)+d;J[a+216>>2]=h;J[a+212>>2]=b;if(!g)break r;qc(g)}J[695492]=0;_(3205,e+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break p;i=i+1|0;c=J[e+40>>2];if((i|0)>2])continue;break}}J[695492]=0;b=e+32|0;_(3205, -b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;b=ha(3203,J[e+56>>2],829320,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;v:{if(J[b>>2]!=4)break v;H[a+208|0]=0;J[a+4>>2]=J[a+4>>2]|1048576;if(J[e+32>>2]!=4)break v;b=J[e+40>>2];c=1;w:{if(!Ec(b,831584))break w;if(Ec(b,831767))break v;c=2}H[a+208|0]=c}J[695492]=0;_(3205,e+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,e+48|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;if(H[e+11|0]<0)qc(J[e>>2]);bc=e- -64|0;return a| -0}break b}c=Z()|0;break a}B()}c=Z()|0;if(H[e+11|0]>=0)break a;qc(J[e>>2])}b=J[k>>2];if(b){J[a+228>>2]=b;qc(b)}b=J[l>>2];if(b){J[a+216>>2]=b;qc(b)}lh(a);ba(c|0);B()}function Cxa(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;c=bc-112|0;bc=c;e=b+8|0;a:{if(J[b+8>>2]){ei(c+108|0,b,e);break a}J[c+108>>2]=0;md(c+108|0,0)}J[695492]=0;d=$(4,12)|0;g=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if((g|0)==1)break l;J[d+8>>2]=0;J[d>>2]=2401016;J[d+4>>2]=0;J[695492]=0;J[c+104>>2]=0;aa(4985,c+104| -0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;_(5078,c+100|0);d=J[695492];J[695492]=0;if((d|0)==1)break k;d=J[c+100>>2];g=J[e>>2];if(g){J[695492]=0;da(5395,g|0,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break e}g=J[J[d>>2]+20>>2];J[695492]=0;ha(g|0,d|0,0,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;g=J[J[d>>2]+28>>2];J[695492]=0;d=$(g|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;if(!d){J[695492]=0;aa(4985,c+100|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e}if(!J[c+ -100>>2])break i;d=J[b+12>>2];g=(d|0)>0?d:0;d=J[c+108>>2];if(d)g=g-J[d+32>>2]|0;J[695492]=0;da(5396,J[c+104>>2],c+100|0);d=J[695492];J[695492]=0;if((d|0)==1)break f;if(g&3)break j;break h}b=Z()|0;break c}b=Z()|0;break d}J[c+88>>2]=0;J[c+92>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;m:{if(J[e>>2]){J[695492]=0;ca(5350,c+12|0,b|0,e|0);d=J[695492];J[695492]=0;if((d|0)!=1)break m;break f}J[695492]=0;J[c+12>>2]=0;aa(4985,c+12|0,0)|0;d=J[695492];J[695492]=0;if((d| -0)==1)break f}d=J[c+12>>2];n:{if(!d)break n;h=J[d+(J[b+12>>2]&1?12:8)>>2];J[695492]=0;J[c+12>>2]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(f)break n;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b}o:{if(J[e>>2]){J[695492]=0;ca(5350,c+12|0,b|0,e|0);break o}J[695492]=0;J[c+12>>2]=0;aa(4985,c+12|0,0)|0}d=J[695492];J[695492]=0;if((d|0)==1)break f;f=J[c+12>>2];p:{if(!f){d=0;break p}d=J[f+(J[b+12>>2]&1?8:12)>>2];J[695492]=0;J[c+12>>2]=0;i=J[f+4>>2]- -1|0;J[f+4>>2]=i;j=J[695492];J[695492]=0;if((j|0)==1)break b;if(i)break p;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break b}J[c+92>>2]=d;J[c+88>>2]=h;J[c+80>>2]=0;J[c+84>>2]=0;q:{if(g&1){r:{if(J[e>>2]){J[695492]=0;ca(5350,c+12|0,b|0,e|0);d=J[695492];J[695492]=0;if((d|0)!=1)break r;break f}J[695492]=0;J[c+12>>2]=0;aa(4985,c+12|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f}f=J[c+12>>2];s:{if(!f){d=0;break s}d=J[f+(J[b+12>>2]&1?8:12)>>2];J[695492]=0;J[c+12>>2]=0;h=J[f+4>>2]-1|0; -J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(h)break s;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break b}t:{if(J[e>>2]){J[695492]=0;ca(5350,c+12|0,b|0,e|0);break t}J[695492]=0;J[c+12>>2]=0;aa(4985,c+12|0,0)|0}e=J[695492];J[695492]=0;if((e|0)==1)break f;e=J[c+12>>2];if(!e){b=0;break q}b=J[e+(J[b+12>>2]&1?12:8)>>2];J[695492]=0;J[c+12>>2]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break q;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e| -0)!=1)break q}break b}u:{if(J[e>>2]){J[695492]=0;ca(5350,c+12|0,b|0,e|0);d=J[695492];J[695492]=0;if((d|0)!=1)break u;break f}J[695492]=0;J[c+12>>2]=0;aa(4985,c+12|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f}f=J[c+12>>2];v:{if(!f){d=0;break v}d=J[f+(J[b+12>>2]&1?12:8)>>2];J[695492]=0;J[c+12>>2]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(h)break v;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break b}w:{if(J[e>>2]){J[695492]=0;ca(5350,c+12|0,b| -0,e|0);break w}J[695492]=0;J[c+12>>2]=0;aa(4985,c+12|0,0)|0}e=J[695492];J[695492]=0;if((e|0)==1)break f;e=J[c+12>>2];if(!e){b=0;break q}b=J[e+(J[b+12>>2]&1?8:12)>>2];J[695492]=0;J[c+12>>2]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)==1)break b;if(f)break q;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break b}J[c+76>>2]=b;J[c+72>>2]=d;J[c+64>>2]=0;J[c+68>>2]=0;J[695492]=0;e=Fz(c+12|0);b=J[695492];J[695492]=0;x:{if((b|0)==1)break x;J[695492]=0;J[e+32>>2]=0;J[e+16>> -2]=0;J[e+20>>2]=0;J[e+8>>2]=1;J[e+12>>2]=1;J[e>>2]=0;J[e+4>>2]=0;J[e+24>>2]=1;J[e+28>>2]=1;b=J[695492];J[695492]=0;if((b|0)==1)break x;J[695492]=0;da(5399,e|0,c+80|0);b=J[695492];J[695492]=0;if((b|0)==1)break x;J[695492]=0;da(5400,e|0,c- -64|0);b=J[695492];J[695492]=0;if((b|0)==1)break x;J[695492]=0;Ez(e,0-g|0);b=J[695492];J[695492]=0;if((b|0)==1)break x;b=J[J[J[c+104>>2]+8>>2]+36>>2];if(!b)break h;while(1){y:{d=J[b+8>>2];g=J[J[d>>2]+32>>2];J[695492]=0;da(g|0,d|0,e|0);d=J[695492];J[695492]=0;if((d| -0)==1)break y;b=J[b>>2];if(b)continue;break h}break}break f}break f}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break g;break f}b=J[c+104>>2];if(!b){J[a>>2]=0;break g}J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[a>>2]=J[c+104>>2]}a=J[c+100>>2];J[c+100>>2]=0;z:{if(!a)break z;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(b)break z;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a= -J[c+104>>2];J[c+104>>2]=0;A:{if(!a)break A;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(b)break A;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[c+108>>2];J[c+108>>2]=0;B:{C:{if(!a)break C;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break B;if(b)break C;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break B}bc=c+112|0;return}break b}b=Z()|0;vc(c+100|0);break d}b=Z()|0;vc(c+100|0)}vc(c+104| -0)}vc(c+108|0);ba(b|0);B()}ea(0)|0;yc();B()}function bpa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc+-64|0;bc=d;if(!K[a+32|0])_o(a,0);a:{b=J[a+20>>2];if(J[b+4>>2]>=2){f=rc(52);J[695492]=0;b=aa(5267,f|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[b+4>>2]=J[b+4>>2]+1;f=J[a+20>>2];b:{if(!f)break b;c=J[f+4>>2]-1|0;J[f+4>>2]=c;if(c)break b;gc[J[J[f>>2]+4>>2]](f)}J[a+20>>2]=b}Zz(b,0,-1);b=J[a+28>>2];if(J[b+4>>2]>=2){f=rc(52);J[695492]=0;b=aa(5267,f|0,b|0)|0;c=J[695492];J[695492]=0;if((c| -0)==1)break a;J[b+4>>2]=J[b+4>>2]+1;f=J[a+28>>2];c:{if(!f)break c;c=J[f+4>>2]-1|0;J[f+4>>2]=c;if(c)break c;gc[J[J[f>>2]+4>>2]](f)}J[a+28>>2]=b}i=a+16|0;j=a+24|0;Zz(b,0,-1);b=J[a+8>>2];f=J[(b?b+12|0:2728584)>>2];d:{e:{f:{g:{h:{i:{while(1){b=K[f|0];if(!b)break i;f=f+1|0;if((b|0)!=63)continue;break}if(!K[f|0])break i;while(1){J[d+52>>2]=0;J[d+56>>2]=J[682146];j:{k:{while(1){l:{b=K[f|0];if(b){if((b|0)!=59&(b|0)!=38)break l;f=f+1|0}c=J[d+52>>2];if(!c|!J[c+8>>2])break j;e=J[c+12>>2];b=e;while(1){g=K[b| -0];if(!g|(g|0)==61)break k;b=b+1|0;continue}}J[695492]=0;aa(5145,d+52|0,b<<24>>24)|0;b=J[695492];J[695492]=0;f=f+1|0;if((b|0)!=1)continue;break}f=Z()|0;break e}J[d+44>>2]=0;g=J[682146];J[d+48>>2]=g;J[d+40>>2]=g;J[d+36>>2]=0;m:{n:{if(K[b|0]){J[695492]=0;c=ga(5169,d+28|0,e|0,b-e|0)|0;e=J[695492];J[695492]=0;o:{if((e|0)!=1){e=J[c>>2];p:{if(e){g=J[J[e>>2]+28>>2];J[695492]=0;ca(g|0,d+12|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break p;f=Z()|0;sc(c);break f}J[d+12>>2]=0}J[695492]=0;aa(4993,d+44|0,d+ -12|0)|0;e=J[695492];J[695492]=0;q:{if((e|0)!=1){e=J[d+12>>2];J[d+12>>2]=0;if(!e)break q;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break q;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break q}break d}f=Z()|0;vc(d+12|0);sc(c);break f}e=J[d+44>>2];J[d+48>>2]=J[(e?e+12|0:2728584)>>2];sc(c);c=0;e=0;g=J[d+52>>2];if(g)e=J[g+8>>2];g=J[d+44>>2];if(g)c=J[g+8>>2];J[695492]=0;b=ga(5169,d+20|0,b+1|0,(c^-1)+e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o; -c=J[b>>2];r:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break r;f=Z()|0;sc(b);break f}J[d+12>>2]=0}J[695492]=0;aa(4993,d+36|0,d+12|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break n;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break n;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break n}break d}f=Z()|0;vc(d+12|0);sc(b);break f}f=Z()|0;break f}f=Z()|0;break f}b=J[J[c>> -2]+28>>2];J[695492]=0;e=b;b=d+12|0;ca(e|0,b|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1){J[695492]=0;aa(4993,d+44|0,b|0)|0;b=J[695492];J[695492]=0;s:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break s;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break s;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break s}break d}f=Z()|0;vc(d+12|0);break f}b=J[d+44>>2];J[d+48>>2]=J[(b?b+12|0:2728584)>>2];break m}f=Z()|0;break f}c=J[d+36>>2];J[d+40>>2]=J[(c?c+ -12|0:2728584)>>2];sc(b)}b=J[a+20>>2];e=J[b+20>>2];g=J[b+24>>2];t:{u:{v:{w:{if(J[b+4>>2]>=2){J[695492]=0;c=$(4,52)|0;h=J[695492];J[695492]=0;if((h|0)==1)break w;J[695492]=0;b=aa(5267,c|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break h;J[b+4>>2]=J[b+4>>2]+1;c=J[a+20>>2];x:{if(!c)break x;h=J[c+4>>2]-1|0;J[c+4>>2]=h;if(h)break x;gc[J[J[c>>2]+4>>2]](c)}J[a+20>>2]=b}J[695492]=0;e=(g-e|0)+1|0;ca(5042,b|0,0,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break w;b=J[a+28>>2];if(J[b+4>>2]>=2){J[695492]=0;c=$(4, -52)|0;g=J[695492];J[695492]=0;if((g|0)==1)break w;J[695492]=0;b=aa(5267,c|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break g;J[b+4>>2]=J[b+4>>2]+1;c=J[a+28>>2];y:{if(!c)break y;g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(g)break y;gc[J[J[c>>2]+4>>2]](c)}J[a+28>>2]=b}J[695492]=0;ca(5042,b|0,0,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break w;J[695492]=0;da(6068,d+12|0,d+44|0);b=J[695492];J[695492]=0;if((b|0)==1)break v;J[695492]=0;c=aa(6072,i|0,e|0)|0;b=J[695492];J[695492]=0;z:{A:{B:{C:{if((b|0)!=1){b=J[d+12>> -2];if(!b)break C;g=J[J[b>>2]+28>>2];J[695492]=0;ca(g|0,d+60|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break B}f=Z()|0;break A}J[d+60>>2]=0}J[695492]=0;aa(4993,c|0,d+60|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break z;J[695492]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break z;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break z}break d}f=Z()|0;vc(d+60|0)}sc(d+12|0);break f}b=J[c>>2];J[c+4>>2]=J[(b?b+12|0:2728584)>>2]; -b=d+12|0;sc(b);J[695492]=0;da(6068,b|0,d+36|0);b=J[695492];J[695492]=0;if((b|0)==1)break u;J[695492]=0;c=aa(6072,j|0,e|0)|0;b=J[695492];J[695492]=0;D:{E:{F:{if((b|0)!=1){b=J[d+12>>2];if(!b)break F;e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d+60|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break E}f=Z()|0;break D}J[d+60>>2]=0}J[695492]=0;aa(4993,c|0,d+60|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break t;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g=J[695492];J[695492]=0;if((g| -0)!=1){if(e)break t;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break t}break d}f=Z()|0;vc(d+60|0)}sc(d+12|0);break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}b=J[c>>2];J[c+4>>2]=J[(b?b+12|0:2728584)>>2];sc(d+12|0);sc(d+36|0);sc(d+44|0)}sc(d+52|0);if(K[f|0])continue;break}}bc=d- -64|0;return}f=Z()|0;qc(c);break f}f=Z()|0;qc(c)}sc(d+36|0);sc(d+44|0)}sc(d+52|0);ba(f|0);B()}ea(0)|0;yc();B()}a=Z()|0;qc(f);ba(a|0);B()}function kK(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;c=bc-272|0;bc=c;J[c+60>>2]=0;J[c+64>>2]=0;a:{if(!b){O0(c+24|0);break a}J[c- -64>>2]=J[b+40>>2];g=J[b+36>>2];J[c+56>>2]=J[b+32>>2];J[c+60>>2]=g;g=J[b+28>>2];J[c+48>>2]=J[b+24>>2];J[c+52>>2]=g;g=J[b+20>>2];J[c+40>>2]=J[b+16>>2];J[c+44>>2]=g;g=J[b+12>>2];J[c+32>>2]=J[b+8>>2];J[c+36>>2]=g;g=J[b+4>>2];J[c+24>>2]=J[b>>2];J[c+28>>2]=g}J[c+68>>2]=0;g=c+24|0;d=J[g+28>>2];b=a;e=J[689498]&1?1:5;a=J[g>>2];if(!a)a=J[g+32>>2];f=gc[a|0](d,b,e)|0;J[c+72>>2]=f;b:{if(!f)break b; -c:{d:{e:{f:{if(dj(g,f,0,0,2))break f;g=Dp(g,f);a=fc;i=a;h=zc(1028);if(!h)break f;g:{h:{if(!a&g>>>0<5)break h;b=!a&g>>>0>=65535|(a|0)!=0;m=b?65535:g;o=b?0:a;a=4;e=0;while(1){n=c+24|0;a=a+1024|0;e=a>>>0<1024?e+1|0:e;b=n;l=(e|0)==(o|0)&a>>>0>>0|e>>>0>>0;d=l;a=d?a:m;n=g-a|0;e=d?e:o;d=e;j=i-(d+(a>>>0>g>>>0)|0)|0;if(dj(b,f,n,j,0))break h;d=!d&a>>>0>=1028|d?1028:a;if((gc[J[c+28>>2]](J[c+52>>2],f,h,d)|0)!=(d|0))break h;i:{if(d>>>0<4)break i;b=d-3|0;d=d-4|0;while(1){j:{k=b;b=d;d=h+b|0;if(!(K[d|0]!=80| -K[h+k|0]!=75|K[d+2|0]!=6))if(K[d+3|0]==7)break j;d=b-1|0;if((b|0)>0)continue;break i}break}d=j;k=b;b=b+n|0;d=k>>>0>b>>>0?d+1|0:d;if(b|d)break g}if(l)continue;break}}qc(h);break f}qc(h);a=c+24|0;if(dj(a,f,b,d,0))break f;if(eh(a,f,c))break f;if(eh(a,f,c)|J[c>>2])break f;d=c+264|0;if(io(a,f,d))break f;if(eh(a,f,c)|J[c>>2]!=1)break f;b=J[c+268>>2];m=b;g=J[c+264>>2];if(dj(a,f,g,b,0))break f;if(!(b|g)|(eh(a,f,c)|J[c>>2]!=101075792))break f;J[c+256>>2]=1;e=dj(a,J[c+72>>2],g,b,0);f=eh(a,J[c+72>>2],c+20|0); -i=io(a,J[c+72>>2],c);a=-1;b=J[c+72>>2];k:{if((gc[J[c+28>>2]](J[c+52>>2],b,d,1)|0)!=1)if(gc[J[c+48>>2]](J[c+52>>2],b)|0)break k;if((gc[J[c+28>>2]](J[c+52>>2],b,c+264|0,1)|0)!=1)if(gc[J[c+48>>2]](J[c+52>>2],b)|0)break k;a=e|(f|i)?-1:0}d=J[c+72>>2];l:{if((gc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)!=1){b=-1;if(gc[J[c+48>>2]](J[c+52>>2],d)|0)break l}if((gc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)!=1){b=-1;if(gc[J[c+48>>2]](J[c+52>>2],d)|0)break l}b=a}a=c+24|0;d=eh(a,J[c+72>>2],c+16|0);e=eh(a,J[c+72>>2],c+ -12|0);f=io(a,J[c+72>>2],c+80|0);i=io(a,J[c+72>>2],c+264|0);j=J[c+80>>2];n=J[c+84>>2];k=J[c+264>>2];h=J[c+268>>2];o=J[c+16>>2];l=J[c+12>>2];p=io(a,J[c+72>>2],c+136|0);a=io(a,J[c+72>>2],c+144|0);J[c+88>>2]=0;d=a|p?-1:(j|0)!=(k|0)|(h|0)!=(n|0)?-103:l|o?-103:f|i|(d|e)?-1:b;break e}g=0;m=0;b=c+24|0;i=J[c+72>>2];a=-1;m:{if(dj(b,i,0,0,2))break m;f=Dp(b,i);b=fc;n=b;l=zc(1028);a=-1;if(!l)break m;n:{o:{if(!b&f>>>0<5)break o;a=!b&f>>>0>=65535|(b|0)!=0;j=a?65535:f;p=a?0:b;a=4;e=0;while(1){h=c+24|0;a=a+1024|0; -e=a>>>0<1024?e+1|0:e;b=h;r=(e|0)==(p|0)&a>>>0>>0|e>>>0

      >>0;d=r;a=d?a:j;h=f-a|0;e=d?e:p;d=e;k=n-(d+(a>>>0>f>>>0)|0)|0;if(dj(b,i,h,k,0))break o;d=!d&a>>>0>=1028|d?1028:a;if((gc[J[c+28>>2]](J[c+52>>2],i,l,d)|0)!=(d|0))break o;p:{if(d>>>0<4)break p;b=d-3|0;d=d-4|0;while(1){q:{o=b;b=d;d=l+b|0;if(!(K[d|0]!=80|K[l+o|0]!=75|K[d+2|0]!=5))if(K[d+3|0]==6)break q;d=b-1|0;if((b|0)>0)continue;break p}break}d=k;k=b;b=b+h|0;d=k>>>0>b>>>0?d+1|0:d;if(b|d)break n}if(r)continue;break}}qc(l);a=-1;break m}qc(l);g= -b;m=d;a=0}d=0;J[c+256>>2]=0;b=c+24|0;e=dj(b,J[c+72>>2],g,m,0);f=eh(b,J[c+72>>2],c+20|0);r:{s:{b=J[c+72>>2];if((gc[J[c+28>>2]](J[c+52>>2],b,c+264|0,1)|0)==1){d=K[c+264|0];break s}if(!(gc[J[c+48>>2]](J[c+52>>2],b)|0))break s;J[c+16>>2]=0;a=-1;break r}a=e|f?-1:a;if((gc[J[c+28>>2]](J[c+52>>2],b,c+264|0,1)|0)==1){q=K[c+264|0]<<8|d;J[c+16>>2]=q;break r}b=gc[J[c+48>>2]](J[c+52>>2],b)|0;q=b?0:P(d,257);J[c+16>>2]=q;a=b?-1:a}f=J[c+72>>2];t:{u:{if((gc[J[c+28>>2]](J[c+52>>2],f,c+264|0,1)|0)==1){d=K[c+264|0]; -break u}e=-1;d=0;b=0;if(gc[J[c+48>>2]](J[c+52>>2],f)|0)break t}if((gc[J[c+28>>2]](J[c+52>>2],f,c+264|0,1)|0)==1){e=a;b=K[c+264|0]<<8|d;break t}b=a;a=gc[J[c+48>>2]](J[c+52>>2],f)|0;e=a?-1:b;b=a?0:P(d,257)}f=b;d=J[c+72>>2];v:{w:{if((gc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)==1){b=K[c+264|0];break w}a=-1;b=0;if(gc[J[c+48>>2]](J[c+52>>2],d)|0)break v}if((gc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)==1){a=e;b=K[c+264|0]<<8|b;break v}d=gc[J[c+48>>2]](J[c+52>>2],d)|0;a=d?-1:e;b=d?0:P(b,257)}J[c+80>>2]=b;J[c+ -84>>2]=0;x:{y:{d=J[c+72>>2];z:{if((gc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)==1){b=K[c+264|0];break z}if(gc[J[c+48>>2]](J[c+52>>2],d)|0)break y;b=0}if((gc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)==1){b=b|K[c+264|0]<<8;J[c+20>>2]=b;break x}d=gc[J[c+48>>2]](J[c+52>>2],d)|0;b=d?0:P(b,257);J[c+20>>2]=b;a=d?-1:a;break x}b=0;J[c+20>>2]=0;a=-1}i=J[c+80>>2];n=J[c+84>>2];k=eh(c+24|0,J[c+72>>2],c+20|0);J[c+136>>2]=J[c+20>>2];J[c+140>>2]=0;h=eh(c+24|0,J[c+72>>2],c+20|0);J[c+144>>2]=J[c+20>>2];J[c+148>>2]=0;j= -J[c+72>>2];A:{if((gc[J[c+28>>2]](J[c+52>>2],j,c+264|0,1)|0)==1){e=K[c+264|0];break A}if(gc[J[c+48>>2]](J[c+52>>2],j)|0)break d;e=0}d=h|k?-1:(b|0)!=(i|0)|n?-103:f|q?-103:a;if((gc[J[c+28>>2]](J[c+52>>2],j,c+264|0,1)|0)==1){J[c+88>>2]=e|K[c+264|0]<<8;break e}a=gc[J[c+48>>2]](J[c+52>>2],j)|0;J[c+88>>2]=a?0:P(e,257);if(a)break c}e=J[c+144>>2];b=e+J[c+136>>2]|0;a=J[c+140>>2]+J[c+148>>2]|0;a=b>>>0>>0?a+1|0:a;e=b>>>0>g>>>0;if(d|((a|0)==(m|0)&e|a>>>0>m>>>0))break c;J[c+248>>2]=0;J[c+252>>2]=0;J[c+128>> -2]=g;J[c+132>>2]=m;J[c+96>>2]=g-b;J[c+100>>2]=m-(a+e|0);a=zc(240);if(!a)break b;s=tc(a,c+24|0,240);a=s;J[a+80>>2]=0;J[a+84>>2]=0;b=J[a+124>>2];J[a+88>>2]=J[a+120>>2];J[a+92>>2]=b;t=a,u=!jK(a,a+128|0,a+216|0,0,0),J[t+96>>2]=u;J[a+100>>2]=0;break b}J[c+88>>2]=0}gc[J[c+44>>2]](J[c+52>>2],J[c+72>>2])|0}bc=c+272|0;return s}function f0a(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,M=0,N=0,O=0,Q=0,R=0, -S=0,T=0,U=0;f=bc-32|0;bc=f;x=J[a+12>>2];o=J[a+8>>2];u=J[a+20>>2];p=J[a+16>>2];r=J[a+4>>2];J[f+24>>2]=J[a+24>>2];m=J[r+8>>2];v=m+54|0;h=J[r+56>>2];a:{if(!(!!h&p>>>0>>0)){d=0;break a}d=1}while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!d){if(o>>>0>=x>>>0)break g;if(p>>>0>=u>>>0)break f;c=o+2|0;h=L[o>>1];if((h&63488)!=55296){k=g;break i}if(h&1024)break k;k=g;o=c;d=1;continue}if(o>>>0>=x>>>0)break h;c=L[o>>1];if((c&64512)==56320)break j;J[b>>2]=12;J[r+56>>2]=h;break c}J[b>>2]=12;J[r+56>>2]=h;o=c;break c}J[r+ -56>>2]=0;h=(c+(h<<10)|0)-56613888|0;c=o+2|0}o=c;if(!(!(1<31)){J[b>>2]=12;J[r+56>>2]=h;break c}l:{m:{if(!k){c=J[m+64>>2];j=L[(c<<1)+742652>>1];d=0;if(c-3>>>0<=1){H[f+6|0]=8;d=1}g=f+6|0;c=K[m+54|0];H[g+d|0]=c;k=d+1|0;e=Hzb(-2,c)&j&-257;c=K[m+56|0];if(c){H[k+g|0]=c;k=d|2;e=Hzb(-2,c)&e}d=e&65535;if(e&1){H[(f+6|0)+k|0]=0;k=k+1|0;d=e&65534;e=d}if(d&8){H[(f+6|0)+k|0]=3;k=k+1|0;d=e&65527;e=d}if(d&2){H[(f+6|0)+k|0]=1;k=k+1|0;d=e&65533;e=d}if(d&16){H[(f+6|0)+k|0]=4;k=k+1|0;d=e&65519;e=d}if(d& -4){H[(f+6|0)+k|0]=2;k=k+1|0;d=e&65531;e=d}if(d&32){H[(f+6|0)+k|0]=5;k=k+1|0;d=e&65503;e=d}if(d&64){H[(f+6|0)+k|0]=6;k=k+1|0;d=e&65471;e=d}if(d&128){H[(f+6|0)+k|0]=7;d=e&65407;k=k+1|0}if(!(d&256))break m;H[(f+6|0)+k|0]=8;k=k+1|0;break m}if((k|0)<=0)break l}F=h-128|0;G=h-65344|0;I=h-65216|0;y=h>>10;z=h>>>4&63;c=h-65377|0;M=(c<<1)+744320|0;w=h&15;B=1<<(w|16);s=K[r+35|0];e=0;N=(h|0)<128;O=h-160>>>0<96;A=(h|0)<65536;Q=h>>>0>127;R=(h|0)==92;S=(h|0)==126;T=(h|0)==165;U=(h|0)==8254;C=h-57344>>>0<6400;D=h- -983040>>>0>131071;E=c>>>0>62;q=0;c=0;d=0;while(1){n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{j=H[(f+6|0)+d|0];switch(j|0){case 2:break t;case 4:break u;case 3:break v;case 8:break w;case 1:break x;case 0:break y;default:break s}}if(!N)break n;break e}if(!O)break n;q=2;l=F;c=j;e=1;break d}if(E)break n;z:switch(J[m+64>>2]-3|0){case 0:H[m+55|0]=j;q=1;l=G;c=j;e=1;break d;case 1:break z;default:break n}c=K[v|0];c=(c&252)==4?3:c;q=0;l=I;e=1;break d}if(!Q){if(R)break n;if(!S)break e;break n}if(!T)break r;l=92; -break q}A:{B:{C:{D:{E:{F:{g=J[m+16>>2];if(!(A|H[g+201|0]&1))break F;i=J[g+52>>2];t=J[(i+(z<<2)|0)+(L[i+(y<<1)>>1]<<2)>>2];i=L[J[g+188>>2]+((t<<4&1048560|w)<<1)>>1];n=i>>>0<256;if(t&B){J[f+28>>2]=i;g=2;if(n)break E;break A}if(!i|D&!(s|C))break F;n=n?-1:-2;J[f+28>>2]=i;break C}i=J[g+224>>2];if(i)break D}i=!e;break o}g=2;n=Jt(i,h,f+28|0,s<<24>>24);if((n|0)==2)break B}g=-2;i=!e;if(e|(n|0)!=-2)break o}i=J[f+28>>2]}if(i>>>0>61436)break n;c=i&65280;c=(c>>>0<40705?-28672:-45056)+c<<1;t=c-256|0;e=c;c=i&255; -l=c>>>0<159;l=(l?t:e)|c+(l?c>>>0<127?-31:-32:-126);s=0;c=j;q=0;e=g;break n}g=J[m+8>>2];if(!(A|H[g+201|0]&1))break n;i=1;t=J[g+188>>2]+(w<<1)|0;g=J[g+52>>2];g=L[t+(L[(g+(z<<1)|0)+(L[g+(y<<1)>>1]<<1)>>1]<<1)>>1];n=g>>>0>3839;if(n)break p;if(s){i=-1;if(g>>>0<=2047)break n;break p}i=-1;if(g>>>0>=3072)break p;s=0;break n}G:{H:{I:{g=J[(j<<2)+m>>2];if(!(A|H[g+201|0]&1))break I;i=J[g+52>>2];t=J[(i+(z<<2)|0)+(L[i+(y<<1)>>1]<<2)>>2];i=L[J[g+188>>2]+((t<<4&1048560|w)<<1)>>1];n=i>>>0<256;if(t&B){J[f+28>>2]=i; -g=2;if(!n)break G;break n}if(!i|D&!(s|C))break I;n=n?-1:-2;J[f+28>>2]=i;break H}i=J[g+224>>2];if(!i)break n;g=2;n=Jt(i,h,f+28|0,s<<24>>24);if((n|0)==2)break G}g=-2;if(e|(n|0)!=-2)break n}i=J[f+28>>2];J:{if((j|0)!=7){l=i;s=0;c=j;break J}if((i+24159&65534)>>>0>23901|(i+95&254)>>>0>93)break n;j=i-32896|0;if(!j)break n;l=j;s=0;c=7}q=0;e=g;break n}if(!U)break n;l=126}c=j;q=0;e=1;break d}if(!(n|!e))break n;g=g&255;if(g>>>0<160)break n;l=g-128|0;q=2;s=0;c=j;e=i;break n}if(!i|!s)break n;e=0;if(E)break n; -l=L[M>>1];e=-2;s=0;c=j;q=0}d=d+1|0;if((e|0)<=0&(k|0)>(d|0))continue;break}if(e)break d}J[b>>2]=10;J[r+56>>2]=h;break c}J[r+56>>2]=h}if(J[b>>2]>0)break c;c=K[m+58|0];if(!(c|K[v|0])|!K[a+2|0]|(J[r+56>>2]|o>>>0>>0))break c;if(c){H[f+16|0]=15;H[m+58|0]=0;d=1}else d=0;if(K[v|0]){c=(f+16|0)+d|0;l=L[372232];H[c|0]=l;H[c+1|0]=l>>>8;H[c+2|0]=K[744466];H[v|0]=0;d=d+3|0}l=J[a+8>>2];c=o-l>>1;K:{if((c|0)<=0){h=-1;break K}h=c-1|0;if((L[l+(h<<1)>>1]&64512)!=56320)break K;if(h)if((L[(l+(c<<1)|0)-4>>1]&64512)!= -55296)break K;h=c-2|0}J[f+28>>2]=p;hi(r,f+16|0,d,f+28|0,u,f+24|0,h,b);p=J[f+28>>2];break c}J[b>>2]=15;break c}q=0;l=h;c=j;e=1}j=e>>31;i=(j^e)-j|0;d=0;j=K[m+58|0];if(!(q|(j|0)!=1)){H[f+16|0]=15;H[m+58|0]=0;d=1;j=0}g=q+v|0;if(K[g|0]==(c&255))g=k;else{e=c<<24>>24;j=H[e+744446|0];tc((f+16|0)+d|0,P(e,6)+744464|0,j);H[g|0]=c;d=d+j|0;j=K[m+58|0];g=0}L:{if(j<<24>>24==(q|0)){e=d;break L}e=d+1|0;c=(f+16|0)+d|0;if((q|0)==1){H[c|0]=14;H[m+58|0]=1;break L}H[c|0]=27;H[(f+16|0)+e|0]=78;e=d+2|0}j=(f+16|0)+e|0;M:{if((i| -0)==1){d=e+1|0;c=l;break M}H[(e+f|0)+17|0]=l;d=e+2|0;c=l>>>8|0}H[j|0]=c;N:switch(h-10|0){case 0:case 3:g=0;H[m+56|0]=0;break;default:break N}O:{P:switch(d-1|0){case 0:H[p|0]=K[f+16|0];p=p+1|0;c=J[f+24>>2];if(!c)break b;j=J[a+8>>2];J[f+24>>2]=c+4;J[c>>2]=(o-j>>1)-1;break b;case 1:break P;default:break O}c=p+2|0;if(c>>>0>u>>>0)break O;H[p|0]=K[f+16|0];H[p+1|0]=K[f+17|0];j=J[f+24>>2];if(!j){p=c;break b}e=(o-J[a+8>>2]>>1)+(h>>>0<65536?-1:-2)|0;J[j>>2]=e;J[f+24>>2]=j+8;J[j+4>>2]=e;p=c;break b}c=J[a+8>> -2];J[f+28>>2]=p;hi(r,f+16|0,d,f+28|0,u,f+24|0,(o-c>>1)+(h>>>0<65536?-1:-2)|0,b);p=J[f+28>>2];if(J[b>>2]<=0)break b}J[a+16>>2]=p;J[a+8>>2]=o;bc=f+32|0;return}d=0;continue}}function D2(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;m=bc-16|0;bc=m;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];f=J[c+20>>2];J[c+28>>2]=f;I[f+2>>1]=0;l=J[b+20>>2];b=J[b+28>>2];f=268435454;e=268435455;i=268435455;h=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[m+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];h=j>>31; -i=I[a+8>>1];h=(i+((h^j)-h|0)|0)-1|0}if((b|0)!=(l|0)){J[m+4>>2]=l+8;o=(b-l>>3)-1|0;b=I[l+10>>1];a=b>>31;e=I[l+8>>1];f=(e+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=i;n=0;break a}if((i|0)<=(h|0)){a=i;break a}a=J[m+8>>2];J[m+8>>2]=a+8;n=n-1|0;h=I[a+10>>1];b=h>>31;a=I[a+8>>1];h=(a+((b^h)-b|0)|0)-1|0}l=h;b:{c:{d:{if(!o){o=0;break d}if((e|0)>(f|0))break c}b=e;break b}b=J[m+4>>2];J[m+4>>2]=b+8;o=o-1|0;h=I[b+10>>1];f=h>>31;b=I[b+8>>1];f=(b+((f^h)-f|0)|0)-1|0}j=f;if(!((f|0)<(b|0)&(a|0)>(l|0))){i=(a|0)>(b|0)? -a:b;f=((f|0)>(l|0)?l:f)-i|0;if((f|0)>=0){h=f+1|0;e:{f:{g:{if((a|0)<(b|0)){e=b-a|0;f=J[m+8>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];h:{if((J[c>>2]+1|0)!=(a|0))break h;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break h;I[d+2>>1]=g-e;a=b;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=a;J[f+12>>2]=d;a=b;break g}if(!d){a=b;break e}d=J[f+4>>2];f=I[f>>1];tc(J[c+16>>2],d+((a|0)>(f|0)?a-f|0:0)|0,e);d=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!= -(a|0))break j;f=I[d+2>>1];if((f|0)<=0)break j;I[d+2>>1]=e+f;f=J[c+16>>2];break i}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=a;J[d+12>>2]=f}J[c+16>>2]=e+f;a=b;break g}if((a|0)<=(b|0))break e;e=a-b|0;f=J[m+4>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];k:{if((J[c>>2]+1|0)!=(b|0))break k;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break k;I[d+2>>1]=g-e;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=b;J[f+12>>2]=d;break g}if(!d)break f; -d=J[f+4>>2];f=I[f>>1];tc(J[c+16>>2],d+((b|0)>(f|0)?b-f|0:0)|0,e);d=J[c+28>>2];l:{m:{if((J[c>>2]+1|0)!=(b|0))break m;f=I[d+2>>1];if((f|0)<=0)break m;I[d+2>>1]=e+f;f=J[c+16>>2];break l}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=b;J[d+12>>2]=f}J[c+16>>2]=e+f}J[c>>2]=a-1}b=a}f=h;n:{o:{p:{q:{r:{e=J[m+4>>2];d=J[m+8>>2];switch((L[e+2>>1]>>>14&2|L[d+2>>1]>>>15)-1|0){case 2:break o;case 1:break p;case 0:break q;default:break r}}g=J[e+4>>2];e=I[e>>1];e=g+((e|0)<(i|0)?i-e|0:0)|0;g=J[d+4>>2];d=I[d>>1]; -d=g+((d|0)<(i|0)?i-d|0:0)|0;while(1){g=K[d|0];k=K[e|0];if((g|0)!=(k|0)){k=g-k|0;g=k>>31;H[J[c+16>>2]]=(g^k)-g;g=J[c+28>>2];s:{t:{if((J[c>>2]+1|0)!=(i|0))break t;k=I[g+2>>1];if((k|0)<=0)break t;I[g+2>>1]=k+1;k=J[c+16>>2];break s}J[c+28>>2]=g+8;k=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=k}J[c>>2]=i;J[c+16>>2]=k+1}e=e+1|0;d=d+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}d=J[e+4>>2];e=I[e>>1];e=d+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[J[J[m+8>>2]+4>>2]];g=K[e|0];if((d|0)!=(g|0)){g=d-g|0;d=g>>31; -H[J[c+16>>2]]=(d^g)-d;g=J[c+28>>2];u:{v:{if((J[c>>2]+1|0)!=(i|0))break v;d=I[g+2>>1];if((d|0)<=0)break v;I[g+2>>1]=d+1;d=J[c+16>>2];break u}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=I[d>>1];e=J[d+4>>2]+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[e|0];g=K[J[J[m+4>>2]+4>>2]];if((d|0)!=(g|0)){g=d-g|0;d=g>>31;H[J[c+16>>2]]=(d^g)-d;g=J[c+28>>2];w:{x:{if((J[c>>2]+1|0)!=(i|0))break x;d=I[g+2>>1];if((d|0)<=0)break x; -I[g+2>>1]=d+1;d=J[c+16>>2];break w}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}d=K[J[d+4>>2]];e=K[J[e+4>>2]];if((d|0)==(e|0))break n;d=d-e|0;e=d>>31;e=(d^e)-e|0;y:{z:{if((J[c>>2]+1|0)!=(i|0))break z;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(e|0)!=K[J[d+4>>2]])break z;I[d+2>>1]=g-f;break y}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[e+10>>1]=0-f;I[e+8>>1]=i;J[e+12>>2]=d}J[c>> -2]=(f+i|0)-1}if((j|0)>(l|0)){e=b+h|0;h=268435454;i=268435455;f=j;continue}e=268435455;b=a+h|0;a=(j|0)<(l|0);i=a?b:268435455;f=268435454;h=a?l:268435454;continue}if((a|0)<(b|0)){h=268435454;i=268435455;e=b;f=j;if((a|0)>(l|0))continue;g=l-a|0;d=g+1|0;j=J[m+8>>2];k=I[j+2>>1];A:{if((k|0)<0){e=K[J[j+4>>2]];B:{if((J[c>>2]+1|0)!=(a|0))break B;j=J[c+28>>2];k=I[j+2>>1];if((k|0)>=0|(e|0)!=K[J[j+4>>2]])break B;I[j+2>>1]=k-d;break A}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;j=J[c+16>>2];J[c+16>>2]=j+1;I[e+ -10>>1]=g^-1;I[e+8>>1]=a;J[e+12>>2]=j;break A}if(!k)continue;e=I[j>>1];tc(J[c+16>>2],J[j+4>>2]+((a|0)>(e|0)?a-e|0:0)|0,d);j=J[c+28>>2];C:{D:{if((J[c>>2]+1|0)!=(a|0))break D;e=I[j+2>>1];if((e|0)<=0)break D;I[j+2>>1]=d+e;e=J[c+16>>2];break C}J[c+28>>2]=j+8;e=J[c+16>>2];I[j+10>>1]=d;I[j+8>>1]=a;J[j+12>>2]=e}J[c+16>>2]=d+e}J[c>>2]=l;e=b;continue}f=268435454;e=268435455;i=a;h=l;if((b|0)>(j|0))continue;g=j-b|0;d=g+1|0;a=J[m+4>>2];k=I[a+2>>1];E:{if((k|0)<0){a=K[J[a+4>>2]];F:{if((J[c>>2]+1|0)!=(b|0))break F; -h=J[c+28>>2];k=I[h+2>>1];if((k|0)>=0|(a|0)!=K[J[h+4>>2]])break F;I[h+2>>1]=k-d;break E}H[J[c+16>>2]]=a;a=J[c+28>>2];J[c+28>>2]=a+8;h=J[c+16>>2];J[c+16>>2]=h+1;I[a+10>>1]=g^-1;I[a+8>>1]=b;J[a+12>>2]=h;break E}if(!k)continue;h=J[a+4>>2];a=I[a>>1];tc(J[c+16>>2],h+((a|0)<(b|0)?b-a|0:0)|0,d);a=J[c+28>>2];G:{H:{if((J[c>>2]+1|0)!=(b|0))break H;h=I[a+2>>1];if((h|0)<=0)break H;I[a+2>>1]=d+h;h=J[c+16>>2];break G}J[c+28>>2]=a+8;h=J[c+16>>2];I[a+10>>1]=d;I[a+8>>1]=b;J[a+12>>2]=h}J[c+16>>2]=d+h}J[c>>2]=j;h=l; -continue}break}bc=m+16|0}function yHa(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;g=bc-160|0;bc=g;a:{b:{c:{d:{e:{f:{g:{if(a){if(!d)break g;if(!b)break f;if(c>>>0<=35){c=0;Hc(d,1,2355430,0);break a}c=c-36|0;h=(c>>>0)/3|0;if((P(h,3)|0)!=(c|0)){c=0;Hc(d,1,2355430,0);break a}e=J[a+72>>2];c=g+156|0;ld(b,c,2);I[a+80>>1]=J[g+156>>2];ld(b+2|0,e+8|0,4);ld(b+6|0,e+12|0,4);ld(b+10|0,e,4);ld(b+14|0,e+4|0,4);ld(b+18|0,a+92|0,4);ld(b+22|0,a+96| -0,4);ld(b+26|0,a+84|0,4);ld(b+30|0,a+88|0,4);ld(b+34|0,c,2);c=J[g+156>>2];if(c>>>0>16384)break e;J[e+16>>2]=c;if((c|0)!=(h|0)){J[g+132>>2]=h;J[g+128>>2]=c;Hc(d,1,2355519,g+128|0);c=0;break a}c=J[e+4>>2];k=J[e+12>>2];l=J[e+8>>2];f=J[e>>2];if(!(c>>>0>>0&l>>>0>f>>>0)){J[g+120>>2]=k-c;J[g+124>>2]=0-(c>>>0>k>>>0);J[g+112>>2]=l-f;J[g+116>>2]=0-(f>>>0>l>>>0);Hc(d,1,2355633,g+112|0);c=0;break a}i=J[a+92>>2];j=J[a+96>>2];if(!(j?i:0)){J[g+4>>2]=j;J[g>>2]=i;Hc(d,1,2355699,g);c=0;break a}h:{m=J[a+84>>2];i:{if(m>>> -0>f>>>0)break i;i=i+m|0;if(f>>>0>=(i>>>0>>0?-1:i)>>>0)break i;i=J[a+88>>2];if(i>>>0>c>>>0)break i;j=i+j|0;if(c>>>0<(i>>>0>j>>>0?-1:j)>>>0)break h}c=0;Hc(d,1,2355760,0);break a}j:{if(J[a+212>>2])break j;i=J[a+204>>2];if(!i)break j;j=J[a+208>>2];if(!j)break j;f=l-f|0;c=k-c|0;if((f|0)==(i|0)&(c|0)==(j|0))break j;J[g+108>>2]=c;J[g+104>>2]=f;J[g+100>>2]=j;J[g+96>>2]=i;Hc(d,1,2355804,g+96|0);c=0;break a}f=ye(h,52);J[e+24>>2]=f;if(!f)break d;k:{if(!J[e+16>>2])break k;c=g+152|0;ld(b+36|0,c,1);h=J[g+152>> -2];j=h>>>7|0;J[f+32>>2]=j;m=(h&127)+1|0;J[f+24>>2]=m;l=J[a+212>>2];ld(b+37|0,c,1);J[f>>2]=J[g+152>>2];ld(b+38|0,c,1);h=J[g+152>>2];J[f+4>>2]=h;c=0;i=J[f>>2];if(i-256>>>0<4294967041){k=0;break b}if(!h){k=0;break b}k=0;if(h>>>0>255)break b;h=J[f+24>>2];if(h>>>0>31)break c;J[f+36>>2]=0;J[f+40>>2]=J[a+160>>2];k=1;if(M[e+16>>2]<=1)break k;j=l?0:j;l=l?0:m;b=b+39|0;while(1){ld(b,g+152|0,1);i=J[g+152>>2];h=i>>>7|0;J[f+84>>2]=h;i=(i&127)+1|0;J[f+76>>2]=i;if(!((i|0)==(l|0)&(h|0)==(j|0)|(J[a+212>>2]|K[a+176| -0]&4))){J[g+84>>2]=h;J[g+80>>2]=i;J[g+76>>2]=k;J[g+72>>2]=j;J[g+68>>2]=l;J[g+64>>2]=k;Hc(d,2,2355913,g- -64|0)}h=g+152|0;ld(b+1|0,h,1);J[f+52>>2]=J[g+152>>2];ld(b+2|0,h,1);h=J[g+152>>2];J[f+56>>2]=h;i=J[f+52>>2];if(!h|i-256>>>0<4294967041|h>>>0>=256)break b;h=J[f+76>>2];if(h>>>0>=32)break c;b=b+3|0;J[f+88>>2]=0;J[f+92>>2]=J[a+160>>2];f=f+52|0;k=k+1|0;if(k>>>0>2])continue;break}}c=0;b=J[a+92>>2];if(!b|!J[a+96>>2])break a;v=a,w=Ys(J[e+8>>2]-J[a+84>>2]|0,b),J[v+104>>2]=w;b=Ys(J[e+12>>2]-J[a+ -88>>2]|0,J[a+96>>2]);J[a+108>>2]=b;l:{f=J[a+104>>2];if(!(!f|!b))if(f>>>0<=65535/(b>>>0)>>>0)break l;J[g+20>>2]=b;J[g+16>>2]=f;Hc(d,1,2356296,g+16|0);break a}h=P(b,f);m:{if(K[a+68|0]&2){b=J[a+84>>2];c=J[a+92>>2];J[a+28>>2]=(J[a+28>>2]-b>>>0)/(c>>>0);J[a+32>>2]=(J[a+32>>2]-J[a+88>>2]>>>0)/M[a+96>>2];v=a,w=Ys(J[a+36>>2]-b|0,c),J[v+36>>2]=w;v=a,w=Ys(J[a+40>>2]-J[a+88>>2]|0,J[a+96>>2]),J[v+40>>2]=w;break m}J[a+28>>2]=0;J[a+32>>2]=0;J[a+40>>2]=b;J[a+36>>2]=f}b=ye(h,5644);J[a+156>>2]=b;if(!b){c=0;Hc(d,1, -2355865,0);break a}b=ye(J[e+16>>2],1080);J[J[a+12>>2]+5584>>2]=b;if(!J[J[a+12>>2]+5584>>2]){c=0;Hc(d,1,2355865,0);break a}b=ye(10,20);J[J[a+12>>2]+5616>>2]=b;b=J[a+12>>2];if(!J[b+5616>>2]){c=0;Hc(d,1,2355865,0);break a}J[b+5624>>2]=10;b=ye(10,20);J[J[a+12>>2]+5628>>2]=b;b=J[a+12>>2];if(!J[b+5628>>2]){c=0;Hc(d,1,2355865,0);break a}J[b+5636>>2]=10;f=J[e+16>>2];n:{if(!f)break n;k=J[e+24>>2];b=0;if((f|0)!=1){l=f&-2;c=0;while(1){i=k+P(b,52)|0;if(!J[i+32>>2])J[(J[J[a+12>>2]+5584>>2]+P(b,1080)|0)+1076>> -2]=1<>2]-1;i=b|1;j=k+P(i,52)|0;if(!J[j+32>>2])J[(J[J[a+12>>2]+5584>>2]+P(i,1080)|0)+1076>>2]=1<>2]-1;b=b+2|0;c=c+2|0;if((l|0)!=(c|0))continue;break}}if(!(f&1))break n;c=k+P(b,52)|0;if(J[c+32>>2])break n;J[(J[J[a+12>>2]+5584>>2]+P(b,1080)|0)+1076>>2]=1<>2]-1}if(h){b=J[a+156>>2];c=0;while(1){f=ye(J[e+16>>2],1080);J[b+5584>>2]=f;if(!f){c=0;Hc(d,1,2355865,0);break a}b=b+5644|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}J[a+8>>2]=4;o:{p:{n=J[e+16>>2];if(n){c=J[a+88>>2];d=J[a+96>>2]; -b=c+P(d,J[a+108>>2]-1|0)|0;d=b+d|0;b=b>>>0>d>>>0?-1:d;d=J[e+12>>2];r=b>>>0>>0?b:d;b=J[a+84>>2];d=J[a+92>>2];a=b+P(d,J[a+104>>2]-1|0)|0;d=a+d|0;a=a>>>0>d>>>0?-1:d;d=J[e+8>>2];s=a>>>0>>0?a:d;a=J[e+4>>2];k=a>>>0>>0?c:a;a=J[e>>2];l=a>>>0>>0?b:a;a=J[e+24>>2];b=0;while(1){f=J[a>>2];if(!f)break p;e=J[a+4>>2];if(!e)break p;i=0-!e|0;c=i;j=e-1|0;d=k+j|0;c=d>>>0>>0?c+1|0:c;o=Fzb(d,c,e,0);J[a+20>>2]=o;p=0-!f|0;c=p;m=f-1|0;d=l+m|0;c=d>>>0>>0?c+1|0:c;q=Fzb(d,c,f,0);J[a+16>>2]=q;d=J[a+40>>2];h= -d&31;if((d&63)>>>0>=32){c=-1<>>32-h;h=-1<>>0>j>>>0?i+1|0:i;e=Fzb(j,i,e,0)-o|0;i=e;e=e+h|0;c=i>>>0>e>>>0?c+1|0:c;i=e;e=d&31;if((d&63)>>>0>=32)c=c>>>e|0;else c=((1<>>e;J[a+12>>2]=c;c=p;e=m+s|0;c=e>>>0>>0?c+1|0:c;e=Fzb(e,c,f,0)-q|0;c=t;e=e+h|0;c=e>>>0>>0?c+1|0:c;f=e;e=d&31;if((d&63)>>>0>=32)c=c>>>e|0;else c=((1<>>e;J[a+8>>2]=c;a=a+52|0;b=b+1|0;if((n|0)!=(b|0))continue;break}}break o}fa(2340326, -2340752,172,2343334);B()}c=1;break a}fa(2346477,2346358,2059,2355413);B()}fa(2346590,2346358,2060,2355413);B()}fa(2353829,2346358,2061,2355413);B()}J[g+144>>2]=c;Hc(d,1,2355458,g+144|0);c=0;break a}c=0;J[e+16>>2]=0;Hc(d,1,2355865,0);break a}J[g+52>>2]=h;J[g+48>>2]=k;Hc(d,1,2356163,g+48|0);break a}J[g+40>>2]=h;J[g+36>>2]=i;J[g+32>>2]=k;Hc(d,1,2356058,g+32|0)}bc=g+160|0;return c|0}function Rea(){var a=0,b=0,c=0;if(K[2782228])return J[695556];if(K[2782216])a=J[695553];else{J[695963]=0;J[695962]=2624824; -J[695962]=2619664;J[695962]=2618184;J[695492]=0;b=aa(6702,2783856,30)|0;a=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((a|0)!=1){J[695492]=0;c=aa(31,2784E3,21841)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;NP(b);J[695881]=0;J[695880]=2624824;J[695880]=2619664;J[695880]=2620772;J[695492]=0;da(6703,2783848,2783520);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695883]=0;J[695882]=2624824;J[695882]=2619664;J[695882]=2620804;J[695492]=0;da(6704,2783848,2783528);a=J[695492];J[695492]=0;if((a|0)==1)break d; -J[695492]=0;JP();a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6706,2783848,2783536);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695889]=0;J[695888]=2624824;J[695888]=2619664;J[695888]=2619720;J[695492]=0;da(6707,2783848,2783552);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695891]=0;J[695890]=2624824;J[695890]=2619664;J[695890]=2619868;J[695492]=0;da(6708,2783848,2783560);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;ka(6709);a=J[695492];J[695492]=0;if((a|0)==1)break d; -J[695492]=0;da(6710,2783848,2783568);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695897]=0;J[695896]=2624824;J[695896]=2619664;J[695896]=2620016;J[695492]=0;da(6711,2783848,2783584);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695899]=0;J[695898]=2624824;J[695898]=2619664;J[695898]=2620248;J[695492]=0;da(6712,2783848,2783592);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695901]=0;J[695900]=2624824;J[695900]=2619664;J[695900]=2620132;J[695492]=0;da(6713,2783848,2783600);a=J[695492];J[695492]=0; -if((a|0)==1)break d;J[695903]=0;J[695902]=2624824;J[695902]=2619664;J[695902]=2620364;J[695492]=0;da(6714,2783848,2783608);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;ka(6715);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6716,2783848,2783616);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;ka(6717);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6718,2783848,2783640);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695919]=0;J[695918]=2624824;J[695918]=2619664; -J[695918]=2620836;J[695492]=0;da(6719,2783848,2783672);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695921]=0;J[695920]=2624824;J[695920]=2619664;J[695920]=2621080;J[695492]=0;da(6720,2783848,2783680);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695923]=0;J[695922]=2624824;J[695922]=2619664;J[695922]=2621292;J[695492]=0;da(6721,2783848,2783688);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695925]=0;J[695924]=2624824;J[695924]=2619664;J[695924]=2621524;J[695492]=0;da(6722,2783848,2783696);a=J[695492]; -J[695492]=0;if((a|0)==1)break d;J[695492]=0;J[695927]=0;J[695926]=2624824;J[695926]=2619664;J[695926]=2622508;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6724,2783848,2783704);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695929]=0;J[695928]=2624824;J[695928]=2619664;J[695928]=2622656;J[695492]=0;da(6725,2783848,2783712);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695931]=0;J[695930]=2624824;J[695930]=2619664;J[695930]=2622772;J[695492]=0;da(6726,2783848,2783720);a=J[695492];J[695492]= -0;if((a|0)==1)break d;J[695933]=0;J[695932]=2624824;J[695932]=2619664;J[695932]=2622888;J[695492]=0;da(6727,2783848,2783728);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;J[695935]=0;J[695934]=2624824;J[695934]=2619664;J[695934]=2623004;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6729,2783848,2783736);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;J[695937]=0;J[695936]=2624824;J[695936]=2619664;J[695936]=2623168;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]= -0;da(6731,2783848,2783744);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;J[695939]=0;J[695938]=2624824;J[695938]=2619664;J[695938]=2623332;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6733,2783848,2783752);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;J[695941]=0;J[695940]=2624824;J[695940]=2619664;J[695940]=2623496;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6735,2783848,2783760);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695943]=0;J[695942]=2624824; -J[695942]=2619664;J[695944]=2624752;J[695942]=2621724;J[695944]=2621772;J[695492]=0;da(6736,2783848,2783768);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695947]=0;J[695946]=2624824;J[695946]=2619664;J[695948]=2624788;J[695946]=2621988;J[695948]=2622036;J[695492]=0;da(6737,2783848,2783784);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;ka(6738);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6739,2783848,2783800);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;ka(6740); -a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6741,2783848,2783816);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;J[695959]=0;J[695958]=2624824;J[695958]=2619664;J[695958]=2623660;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(6743,2783848,2783832);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695961]=0;J[695960]=2624824;J[695960]=2619664;J[695960]=2623780;J[695492]=0;da(6744,2783848,2783840);a=J[695492];J[695492]=0;if((a|0)==1)break d;break a}a=Z()|0;break b}a= -Z()|0;break c}a=Z()|0;ad(c)}QP(b)}ba(a|0);B()}J[695552]=2783848;H[2782216]=1;J[695553]=2782208;a=2782208}a=J[a>>2];J[695555]=a;J[a+4>>2]=J[a+4>>2]+1;H[2782228]=1;J[695556]=2782220;return 2782220}function icb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=bc-144|0;bc=f;k=J[b+100>>2];g=J[b+104>>2];d=0;J[b+132>>2]=0;e=nd(g,0);J[f+140>>2]=e;h=c>>31;l=(h^c)-h&65535;a:{if(e)break a;e=Me(g,334096,f+136|0);J[f+140>>2]=e;if(e)break a;J[f+140>>2]=2;b:{c:{if(L[f+ -136>>1]!=23117)break c;e=nd(g,L[f+138>>1]);J[f+140>>2]=e;if(e)break a;e=Me(g,334128,f+130|0);J[f+140>>2]=e;if(e)break a;e=L[f+130>>1];J[f+140>>2]=2;d:{e:{f:{g:switch(e-17742|0){case 0:e=nd(g,L[f+132>>1]+L[f+138>>1]|0);J[f+140>>2]=e;if(e)break a;e=Ue(g,L[f+134>>1]-L[f+132>>1]|0);J[f+140>>2]=e;if(e)break a;j=ur(g);if(j>>>0>16)break b;i=ur(g);h:{if(i)while(1){h=ur(g);e=((J[g+8>>2]+J[g+32>>2]|0)-J[g+36>>2]|0)+4|0;if((i&65535)==32776)break h;J[g+32>>2]=(J[g+32>>2]+P(h,12)|0)+4;i=ur(g);if(i)continue;break}h= -0;e=0}ne(g);if(!(e?h:0)){J[f+140>>2]=3;break a}if(M[g+4>>2]>>0){J[f+140>>2]=3;break a}J[b>>2]=h;if((c|0)<0)break a;if(h>>>0<=l>>>0){J[f+140>>2]=6;break a}r=b,s=Zd(k,172,f+140|0),J[r+132>>2]=s;if(J[f+140>>2])break a;e=nd(g,e+P(l,12)|0);J[f+140>>2]=e;if(e)break c;e=Ue(g,12);J[f+140>>2]=e;if(e)break c;e=ur(g);J[J[b+132>>2]>>2]=e<>2]+164>>2]=e<>2]=J[g+32>>2]+8;ne(g);e=oL(J[b+132>>2],g);J[f+140>>2]=e;i=!e;break f;case 2:break g;default:break f}e=nd(g,L[f+138>>1]); -J[f+140>>2]=e;if(e)break a;e=Me(g,334160,f+108|0);J[f+140>>2]=e;if(e)break a;i:{if(!(J[f+108>>2]!=17744|L[f+112>>1]!=332|L[f+116>>1]!=224))if(L[f+118>>1]==267)break i;J[f+140>>2]=3;break a}h=0;J[b>>2]=0;if(!L[f+114>>1])break e;while(1){e=Me(g,334224,f+88|0);J[f+140>>2]=e;if(e)break a;if(J[f+120>>2]!=J[f+96>>2]){h=h+1|0;if(L[f+114>>1]<=(h&65535)>>>0)break e;continue}break}e=nd(g,J[f+104>>2]);J[f+140>>2]=e;if(e)break a;e=Me(g,334256,f+72|0);J[f+140>>2]=e;if(e)break a;if(L[f+86>>1]!=(0-L[f+84>>1]|0)){m= -J[f+104>>2];o=m+16|0;h=0;while(1){e=nd(g,(h<<3)+o|0);J[f+140>>2]=e;if(e)break a;e=Me(g,334288,f+32|0);J[f+140>>2]=e;if(e)break a;e=J[f+36>>2];if((e|0)>=0){J[f+140>>2]=3;break a}e=e&2147483647;J[f+36>>2]=e;e=e+J[f+104>>2]|0;h=nd(g,e);J[f+140>>2]=h;if(h)break a;h=Me(g,334256,f+56|0);J[f+140>>2]=h;if(h)break a;if(L[f+70>>1]!=(0-L[f+68>>1]|0)){p=e+16|0;h=0;j=0;while(1){e=nd(g,(h<<3)+p|0);J[f+140>>2]=e;if(e)break a;e=Me(g,334288,f+24|0);J[f+140>>2]=e;if(e)break a;e=J[f+28>>2];if((e|0)>=0){J[f+140>>2]= -3;break a}e=e&2147483647;J[f+28>>2]=e;e=e+J[f+104>>2]|0;h=nd(g,e);J[f+140>>2]=h;if(h)break a;h=Me(g,334256,f+40|0);J[f+140>>2]=h;if(h)break a;if(L[f+54>>1]!=(0-L[f+52>>1]|0)){q=e+16|0;h=0;i=0;while(1){e=nd(g,(h<<3)+q|0);J[f+140>>2]=e;if(e)break a;e=Me(g,334288,f+16|0);J[f+140>>2]=e;if(e)break a;if(J[f+28>>2]<0){J[f+140>>2]=3;break a}if(J[f+32>>2]==8){e=nd(g,J[f+20>>2]+m|0);J[f+140>>2]=e;if(e)break a;e=Me(g,334304,f);J[f+140>>2]=e;if(e)break a;e=J[b>>2];if((e|0)==(l|0)){e=Zd(k,172,f+140|0);J[b+132>> -2]=e;if(J[f+140>>2])break a;J[e>>2]=(J[f>>2]+J[f+104>>2]|0)-J[f+96>>2];J[e+164>>2]=J[f+4>>2];e=oL(e,g);J[f+140>>2]=e;if(e)break c;e=J[b>>2]}J[b>>2]=e+1}i=i+1|0;h=i&65535;if(h>>>0>1]+L[f+52>>1]>>>0)continue;break}}j=j+1|0;h=j&65535;if(h>>>0>1]+L[f+68>>1]>>>0)continue;break}}n=n+1|0;h=n&65535;if(h>>>0>1]+L[f+84>>1]>>>0)continue;break}}i=1}e=J[b>>2];if(!e){J[f+140>>2]=3;break a}if((e|0)>(l|0))break d;J[f+140>>2]=6;break a}J[f+140>>2]=3;break a}if(i)break a}e=J[b+132>>2];if(!e)break a; -g=J[b+100>>2];if(J[e+160>>2])Sf(J[b+104>>2],e+160|0);h=J[e+168>>2];if(h)gc[J[g+8>>2]](g,h);J[e+168>>2]=0;if(e)gc[J[g+8>>2]](g,e);J[b+132>>2]=0;break a}J[f+140>>2]=3;ne(g)}e=J[f+140>>2];J[f+88>>2]=e;g=(c|0)<0;j:{if(g&!e)break j;k:{l:{m:{if((e&255)==2){c=Zd(k,172,f+88|0);J[b+132>>2]=c;d=J[f+88>>2];if(d)break j;J[b>>2]=1;d=0;J[c>>2]=0;J[c+164>>2]=J[a+4>>2];a=oL(c,a);J[f+88>>2]=a;if(!(a|g)){if(!l)break m;J[f+88>>2]=6;break k}if(a)break k;break j}if(e)break l}a=J[b+132>>2];if(!L[a+96>>1]){J[f+88>>2]=3; -break k}J[b+4>>2]=l;c=J[b+8>>2];J[b+8>>2]=c|18;if(L[a+100>>1]==L[a+102>>1])J[b+8>>2]=c|22;if(K[a+86|0])J[b+12>>2]=J[b+12>>2]|1;if(L[a+90>>1]>=800)J[b+12>>2]=J[b+12>>2]|2;c=Sc(k,16,0,1,0,f+88|0);J[b+32>>2]=c;if(J[f+88>>2])break k;J[b+28>>2]=1;I[c+2>>1]=L[a+100>>1];I[c>>1]=L[a+84>>1]+L[a+96>>1];e=L[a+74>>1]<<6;J[c+4>>2]=e;d=L[a+78>>1];g=e;e=L[a+76>>1];e=e?e:72;g=Dd(g,e,72)+32&-64;J[c+12>>2]=g;i=d?d:72;d=L[a+96>>1]<<6;n:{if((d|0)>=(g|0)){h=J[c+4>>2];break n}J[c+12>>2]=d;h=Dd(d,72,e);J[c+4>>2]=h}r=c, -s=Dd(h,i,72)+32&-64,J[r+8>>2]=s;J[f+108>>2]=b;J[f+112>>2]=0;J[f+116>>2]=0;if(K[a+92|0]==77){I[f+116>>1]=1;J[f+112>>2]=1634889070}c=Ek(334044,0,f+108|0,0);J[f+88>>2]=c;if(c)break k;c=K[a+105|0];d=K[a+104|0];if(c>>>0>>0){J[f+88>>2]=3;break k}J[b+16>>2]=(c-d|0)+2;c=J[a+8>>2];d=J[a+116>>2];if(c>>>0<=d>>>0){J[f+88>>2]=3;break k}c=c-d|0;d=f+88|0;e=Zd(k,c+1|0,d);J[a+168>>2]=e;if(J[f+88>>2])break k;tc(e,J[a+160>>2]+J[a+116>>2]|0,c);H[c+J[a+168>>2]|0]=0;e=a;a=J[a+168>>2];a=Sc(k,1,c,Qc(a)+1|0,a,d);J[e+168>> -2]=a;if(J[f+88>>2])break k;J[b+24>>2]=240016;J[b+20>>2]=a;c=J[b+12>>2];a=c&1;if(c&2){if(a){J[b+24>>2]=240215;d=0;break j}J[b+24>>2]=240331;d=0;break j}d=0;if(!a)break j;J[b+24>>2]=240484;break j}d=e;if(!b)break j}a=J[b+100>>2];c=J[b+132>>2];if(c){if(J[c+160>>2])Sf(J[b+104>>2],c+160|0);d=J[c+168>>2];if(d)gc[J[a+8>>2]](a,d);J[c+168>>2]=0;if(c)gc[J[a+8>>2]](a,c);J[b+132>>2]=0}c=J[b+32>>2];if(c)gc[J[a+8>>2]](a,c);J[b+28>>2]=0;J[b+32>>2]=0;d=J[f+88>>2]}bc=f+144|0;return d|0}function Y2a(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,y=0,z=0,A=0,C=0,D=0;d=bc-80|0;bc=d;c=J[a>>2];J[a>>2]=c+4;e=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);c=c+8|0;J[a>>2]=c;mm(d+68|0,c,e);c=e+J[a>>2]|0;J[a>>2]=c;f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a>>2]=c;J[d+64>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;a:{b:{if((f|0)>0){c=0;c:{d:{while(1){e:{e=J[a>>2];g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[a>>2]=e;J[695492]=0;ca(1618, -d+44|0,e|0,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;J[a>>2]=g+J[a>>2];e=J[d+60>>2];f:{if(e>>>0>2]){g=J[d+48>>2];J[e>>2]=J[d+44>>2];J[e+4>>2]=g;J[e+8>>2]=J[d+52>>2];J[d+60>>2]=e+12;break f}J[695492]=0;da(2791,d+56|0,d+44|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;if(H[d+55|0]>=0)break f;qc(J[d+44>>2])}c=c+1|0;if((f|0)!=(c|0))continue;break c}break}a=Z()|0;break b}a=Z()|0;if(H[d+55|0]>=0)break b;qc(J[d+44>>2]);break b}c=J[a>>2]}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c= -c+4|0;J[a>>2]=c;J[695492]=0;ca(1618,d+44|0,c|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;break b}J[a>>2]=e+J[a>>2];J[d+32>>2]=92;J[d+36>>2]=0;H[d+43|0]=1;J[695492]=0;J[d+16>>2]=47;J[d+20>>2]=0;H[d+27|0]=1;ca(2792,d+44|0,d+32|0,d+16|0);c=J[695492];J[695492]=0;g:{h:{i:{j:{k:{if((c|0)!=1){if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+43|0]<0)qc(J[d+32>>2]);c=J[a>>2];f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[a>>2]=c+4;g=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);J[a>>2]=c+8;l=K[c+8|0]|K[c+ -9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);J[a>>2]=c+12;m=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);J[a>>2]=c+16;e=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);h=c+20|0;J[a>>2]=h;I[d+24>>1]=K[c+28|0]|K[c+29|0]<<8;i=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);J[d+16>>2]=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);J[d+20>>2]=i;c=e+h|0;J[a>>2]=c;h=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[a>>2]=c+4;i=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);J[a>>2]=c+8; -n=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);J[a>>2]=c+12;o=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);J[a>>2]=c+16;p=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);J[a>>2]=c+20;q=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);J[a>>2]=c+24;r=K[c+24|0]|K[c+25|0]<<8;J[a>>2]=c+26;s=K[c+26|0]|K[c+27|0]<<8;J[a>>2]=c+28;t=(K[c+28|0]|K[c+29|0]<<8)<<16>>16;J[a>>2]=c+30;u=(K[c+30|0]|K[c+31|0]<<8)<<16>>16;J[a>>2]=c+32;v=(K[c+32|0]|K[c+33|0]<<8)<<16>>16;J[a>>2]=c+34;w=(K[c+34|0]| -K[c+35|0]<<8)<<16>>16;J[a>>2]=c+36;x=(K[c+36|0]|K[c+37|0]<<8)<<16>>16;J[a>>2]=c+38;y=(K[c+38|0]|K[c+39|0]<<8)<<16>>16;J[a>>2]=c+40;z=(K[c+40|0]|K[c+41|0]<<8)<<16>>16;J[a>>2]=c+42;A=(K[c+42|0]|K[c+43|0]<<8)<<16>>16;J[a>>2]=c+44;C=K[c+44|0]|K[c+45|0]<<8;J[a>>2]=c+46;c=d+44|0;if((qj(c,47,0)|0)!=-1){e=K[d+55|0];a=e<<24>>24;a=(a|0)<0;if(!(a?J[d+48>>2]:e)|J[(a?J[d+44>>2]:c)>>2]!=46)break j}a=K[b+11|0];e=a<<24>>24;j=(e|0)<0?J[b+4>>2]:a;a=j+1|0;if(a>>>0<1073741808)break k;J[695492]=0;_(2793,d+32|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break h;break a}a=Z()|0;if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+43|0]>=0)break g;qc(J[d+32>>2]);break g}l:{if(a>>>0<=1){J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;H[d+43|0]=a;c=d+32|0;break l}c=a|3;if(c>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break h}J[695492]=0;k=c+1|0;c=$(4,k<<2)|0;D=J[695492];J[695492]=0;if((D|0)==1)break h;J[d+36>>2]=a;J[d+32>>2]=c;J[d+40>>2]=k|-2147483648}a=j<<2;a=Zc(c,(e|0)<0?J[b>>2]:b,a)+a|0;J[a>>2]=47;J[a+4>>2]=0;J[695492]= -0;a=K[d+55|0];b=a<<24>>24<0;a=ga(2794,d+32|0,(b?J[d+44>>2]:d+44|0)|0,(b?J[d+48>>2]:a)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;c=J[a>>2];J[d+8>>2]=J[a+4>>2];b=K[a+7|0]|K[a+8|0]<<8|(K[a+9|0]<<16|K[a+10|0]<<24);H[d+11|0]=b;H[d+12|0]=b>>>8;H[d+13|0]=b>>>16;H[d+14|0]=b>>>24;J[a>>2]=0;J[a+4>>2]=0;b=K[a+11|0];J[a+8>>2]=0;if(H[d+55|0]<0)qc(J[d+44>>2]);J[d+44>>2]=c;a=K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14|0]<<24);H[d+51|0]=a;H[d+52|0]=a>>>8;H[d+53|0]=a>>>16;H[d+54|0]=a>>>24;J[d+48>>2]=J[d+8>> -2];H[d+55|0]=b;if(H[d+43|0]>=0)break j;qc(J[d+32>>2])}J[695492]=0;b=$(4,128)|0;a=J[695492];J[695492]=0;m:{if((a|0)!=1){J[d+32>>2]=0;H[d+43|0]=0;J[695492]=0;e=fb(2795,b|0,d+68|0,d+32|0,d+44|0,f|0,l|0,g|0,m|0,d+16|0,h|0,i|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,C|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){if(H[d+43|0]<0)qc(J[d+32>>2]);a=J[d+56>>2];if((a|0)==J[d+60>>2])break m;c=e+116|0;while(1){n:{o:{b=J[e+120>>2];if((b|0)!=J[e+124>>2]){if(H[a+11|0]>=0){f=J[a+4>>2];J[b>>2]=J[a>>2]; -J[b+4>>2]=f;J[b+8>>2]=J[a+8>>2];break o}f=J[a+4>>2];g=J[a>>2];J[695492]=0;ca(15,b|0,g|0,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break o;a=Z()|0;J[e+120>>2]=b;break g}J[695492]=0;da(2796,c|0,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break n;a=Z()|0;break g}J[e+120>>2]=b+12}a=a+12|0;if((a|0)!=J[d+60>>2])continue;break}break m}a=Z()|0;if(H[d+43|0]<0)qc(J[d+32>>2]);qc(b);break g}a=Z()|0;break g}if(H[d+55|0]<0)qc(J[d+44>>2]);b=J[d+56>>2];if(b){a=b;c=J[d+60>>2];if((a|0)!=(c|0)){while(1){a=c-12|0;if(H[c- -1|0]<0)qc(J[a>>2]);c=a;if((b|0)!=(c|0))continue;break}a=J[d+56>>2]}J[d+60>>2]=b;qc(a)}if(H[d+79|0]<0)qc(J[d+68>>2]);bc=d+80|0;return e|0}a=Z()|0;if(H[d+43|0]>=0)break g;qc(J[d+32>>2]);break g}a=Z()|0}if(H[d+55|0]>=0)break b;qc(J[d+44>>2])}sg(d+56|0);if(H[d+79|0]<0)qc(J[d+68>>2]);ba(a|0);B()}B()}function F2(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;m=bc-16|0;bc=m;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];f=J[c+20>>2];J[c+28>>2]=f;I[f+2>>1]=0;l=J[b+20>>2];b=J[b+28>>2];f=268435454;e=268435455; -i=268435455;h=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[m+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];h=j>>31;i=I[a+8>>1];h=(i+((h^j)-h|0)|0)-1|0}if((b|0)!=(l|0)){J[m+4>>2]=l+8;o=(b-l>>3)-1|0;b=I[l+10>>1];a=b>>31;e=I[l+8>>1];f=(e+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=i;n=0;break a}if((i|0)<=(h|0)){a=i;break a}a=J[m+8>>2];J[m+8>>2]=a+8;n=n-1|0;h=I[a+10>>1];b=h>>31;a=I[a+8>>1];h=(a+((b^h)-b|0)|0)-1|0}l=h;b:{c:{d:{if(!o){o=0;break d}if((e|0)>(f|0))break c}b=e;break b}b=J[m+4>>2];J[m+4>>2]=b+ -8;o=o-1|0;h=I[b+10>>1];f=h>>31;b=I[b+8>>1];f=(b+((f^h)-f|0)|0)-1|0}j=f;if(!((f|0)<(b|0)&(a|0)>(l|0))){i=(a|0)>(b|0)?a:b;f=((f|0)>(l|0)?l:f)-i|0;if((f|0)>=0){h=f+1|0;e:{f:{g:{if((a|0)<(b|0)){e=b-a|0;f=J[m+8>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];h:{if((J[c>>2]+1|0)!=(a|0))break h;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break h;I[d+2>>1]=g-e;a=b;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=a;J[f+12>>2]=d;a=b;break g}if(!d){a= -b;break e}d=J[f+4>>2];f=I[f>>1];tc(J[c+16>>2],d+((a|0)>(f|0)?a-f|0:0)|0,e);d=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(a|0))break j;f=I[d+2>>1];if((f|0)<=0)break j;I[d+2>>1]=e+f;f=J[c+16>>2];break i}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=a;J[d+12>>2]=f}J[c+16>>2]=e+f;a=b;break g}if((a|0)<=(b|0))break e;e=a-b|0;f=J[m+4>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];k:{if((J[c>>2]+1|0)!=(b|0))break k;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break k;I[d+2>>1]=g-e;break g}H[J[c+16>> -2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=b;J[f+12>>2]=d;break g}if(!d)break f;d=J[f+4>>2];f=I[f>>1];tc(J[c+16>>2],d+((b|0)>(f|0)?b-f|0:0)|0,e);d=J[c+28>>2];l:{m:{if((J[c>>2]+1|0)!=(b|0))break m;f=I[d+2>>1];if((f|0)<=0)break m;I[d+2>>1]=e+f;f=J[c+16>>2];break l}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=b;J[d+12>>2]=f}J[c+16>>2]=e+f}J[c>>2]=a-1}b=a}f=h;n:{o:{p:{q:{r:{e=J[m+4>>2];d=J[m+8>>2];switch((L[e+2>>1]>>>14&2|L[d+2>>1]>>>15)-1|0){case 2:break o; -case 1:break p;case 0:break q;default:break r}}g=J[e+4>>2];e=I[e>>1];e=g+((e|0)<(i|0)?i-e|0:0)|0;g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(i|0)?i-d|0:0)|0;while(1){g=K[e|0]+K[d|0]|0;g=g>>>0>255?510-g|0:g;if(g){H[J[c+16>>2]]=g;g=J[c+28>>2];s:{t:{if((J[c>>2]+1|0)!=(i|0))break t;k=I[g+2>>1];if((k|0)<=0)break t;I[g+2>>1]=k+1;k=J[c+16>>2];break s}J[c+28>>2]=g+8;k=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=k}J[c>>2]=i;J[c+16>>2]=k+1}e=e+1|0;d=d+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}d=J[e+4>>2];e= -I[e>>1];e=d+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[e|0]+K[J[J[m+8>>2]+4>>2]]|0;d=d>>>0>255?510-d|0:d;if(d){H[J[c+16>>2]]=d;g=J[c+28>>2];u:{v:{if((J[c>>2]+1|0)!=(i|0))break v;d=I[g+2>>1];if((d|0)<=0)break v;I[g+2>>1]=d+1;d=J[c+16>>2];break u}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=I[d>>1];e=J[d+4>>2]+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[J[J[m+4>>2]+4>>2]]+K[e|0]|0;d=d>>>0>255?510-d|0:d;if(d){H[J[c+ -16>>2]]=d;g=J[c+28>>2];w:{x:{if((J[c>>2]+1|0)!=(i|0))break x;d=I[g+2>>1];if((d|0)<=0)break x;I[g+2>>1]=d+1;d=J[c+16>>2];break w}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=K[J[e+4>>2]]+K[J[d+4>>2]]|0;e=e>>>0>255?510-e|0:e;if(!e)break n;y:{z:{if((J[c>>2]+1|0)!=(i|0))break z;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(e|0)!=K[J[d+4>>2]])break z;I[d+2>>1]=g-f;break y}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]= -e+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[e+10>>1]=0-f;I[e+8>>1]=i;J[e+12>>2]=d}J[c>>2]=(f+i|0)-1}if((j|0)>(l|0)){e=b+h|0;h=268435454;i=268435455;f=j;continue}e=268435455;b=a+h|0;a=(j|0)<(l|0);i=a?b:268435455;f=268435454;h=a?l:268435454;continue}if((a|0)<(b|0)){h=268435454;i=268435455;e=b;f=j;if((a|0)>(l|0))continue;g=l-a|0;d=g+1|0;j=J[m+8>>2];k=I[j+2>>1];A:{if((k|0)<0){e=K[J[j+4>>2]];B:{if((J[c>>2]+1|0)!=(a|0))break B;j=J[c+28>>2];k=I[j+2>>1];if((k|0)>=0|(e|0)!=K[J[j+4>>2]])break B;I[j+2>>1]=k-d;break A}H[J[c+ -16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;j=J[c+16>>2];J[c+16>>2]=j+1;I[e+10>>1]=g^-1;I[e+8>>1]=a;J[e+12>>2]=j;break A}if(!k)continue;e=I[j>>1];tc(J[c+16>>2],J[j+4>>2]+((a|0)>(e|0)?a-e|0:0)|0,d);j=J[c+28>>2];C:{D:{if((J[c>>2]+1|0)!=(a|0))break D;e=I[j+2>>1];if((e|0)<=0)break D;I[j+2>>1]=d+e;e=J[c+16>>2];break C}J[c+28>>2]=j+8;e=J[c+16>>2];I[j+10>>1]=d;I[j+8>>1]=a;J[j+12>>2]=e}J[c+16>>2]=d+e}J[c>>2]=l;e=b;continue}f=268435454;e=268435455;i=a;h=l;if((b|0)>(j|0))continue;g=j-b|0;d=g+1|0;a=J[m+4>>2];k=I[a+ -2>>1];E:{if((k|0)<0){a=K[J[a+4>>2]];F:{if((J[c>>2]+1|0)!=(b|0))break F;h=J[c+28>>2];k=I[h+2>>1];if((k|0)>=0|(a|0)!=K[J[h+4>>2]])break F;I[h+2>>1]=k-d;break E}H[J[c+16>>2]]=a;a=J[c+28>>2];J[c+28>>2]=a+8;h=J[c+16>>2];J[c+16>>2]=h+1;I[a+10>>1]=g^-1;I[a+8>>1]=b;J[a+12>>2]=h;break E}if(!k)continue;h=J[a+4>>2];a=I[a>>1];tc(J[c+16>>2],h+((a|0)<(b|0)?b-a|0:0)|0,d);a=J[c+28>>2];G:{H:{if((J[c>>2]+1|0)!=(b|0))break H;h=I[a+2>>1];if((h|0)<=0)break H;I[a+2>>1]=d+h;h=J[c+16>>2];break G}J[c+28>>2]=a+8;h=J[c+16>> -2];I[a+10>>1]=d;I[a+8>>1]=b;J[a+12>>2]=h}J[c+16>>2]=d+h}J[c>>2]=j;h=l;continue}break}bc=m+16|0}function Tm(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;j=bc+-64|0;bc=j;J[j+48>>2]=13;J[j+32>>2]=13;J[j+16>>2]=13;a:{b:{c:{if((b|0)<0)break c;h=J[a+12>>2];if((h|0)<=(b|0))break c;if(!(J[a+1168>>2]==(b|0)&J[a+1172>>2]==(c|0))){r=a+1168|0;p=a+1192|0;if(J[p>>2]==(b|0)){f=24;i=p;if(J[a+1196>>2]==(c|0))break b}i=a+1216|0;if(J[i>>2]==(b|0)){f=48;if(J[a+1220>> -2]==(c|0))break b}i=a+1240|0;if(J[i>>2]==(b|0)){f=72;if(J[a+1244>>2]==(c|0))break b}i=a+1264|0;if(J[i>>2]==(b|0)){f=96;if(J[a+1268>>2]==(c|0))break b}i=a+1288|0;if(J[i>>2]==(b|0)){f=120;if(J[a+1292>>2]==(c|0))break b}i=a+1312|0;if(J[i>>2]==(b|0)){f=144;if(J[a+1316>>2]==(c|0))break b}i=a+1336|0;if(J[i>>2]==(b|0)){f=168;if(J[a+1340>>2]==(c|0))break b}i=a+1360|0;if(J[i>>2]==(b|0)){f=192;if(J[a+1364>>2]==(c|0))break b}i=a+1384|0;if(J[i>>2]==(b|0)){f=216;if(J[a+1388>>2]==(c|0))break b}i=a+1408|0;if(J[i>> -2]==(b|0)){f=240;if(J[a+1412>>2]==(c|0))break b}i=a+1432|0;if(J[i>>2]==(b|0)){f=264;if(J[a+1436>>2]==(c|0))break b}i=a+1456|0;if(J[i>>2]==(b|0)){f=288;if(J[a+1460>>2]==(c|0))break b}i=a+1480|0;if(J[i>>2]==(b|0)){f=312;if(J[a+1484>>2]==(c|0))break b}i=a+1504|0;if(J[i>>2]==(b|0)){f=336;if(J[a+1508>>2]==(c|0))break b}i=a+1528|0;if(J[i>>2]==(b|0)){f=360;if(J[a+1532>>2]==(c|0))break b}d:{e:{f:{f=J[a+8>>2];o=f+P(b,12)|0;switch(J[o+8>>2]-1|0){case 1:break e;case 0:break f;default:break c}}if(J[o+4>>2]!= -(c|0))break c;J[j+48>>2]=5;n=rc(56);J[695492]=0;l=$(4,160)|0;f=J[695492];J[695492]=0;g:{h:{i:{j:{if((f|0)==1)break j;k=J[a>>2];g=J[J[k>>2]+92>>2];h=J[o>>2];f=J[a+4>>2];J[695492]=0;m=g;g=j+48|0;h=ma(m|0,k|0,f+h|0,0,0,g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;h=ga(3494,l|0,a|0,h|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;h=ha(3308,n|0,a|0,h|0,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j;hg(h,g,1,0,0,0,0,0,0);hg(h,j+32|0,1,0,0,0,0,0,0);hg(h,j+16|0,1,0,0,0,0, -0,0);k:{if(J[j+48>>2]!=1|J[j+56>>2]!=(b|0)|(J[j+32>>2]!=1|J[j+40>>2]!=(c|0)))break k;if(J[j+16>>2]!=10)break k;if(!Ec(J[j+24>>2],782665))break g}uc(j+48|0);uc(j+32|0);uc(j+16|0);qc(qk(h));break c}a=Z()|0;break h}a=Z()|0;qc(l)}qc(n);ba(a|0);B()}hg(h,d,0,J[a+1112>>2]?a+1124|0:0,J[a+1164>>2],J[a+1156>>2],b,c,e);uc(j+48|0);uc(j+32|0);uc(j+16|0);qc(qk(h));break d}k=J[o>>2];if(!((k|0)<(h|0)&J[(f+P(k,12)|0)+8>>2]==1)){xc(1,-1,794433,0);break c}q=J[(f+P(b,12)|0)+4>>2];f=0;l:{e=J[a+80>>2];if(!(!e|(k|0)!=J[e>> -2])){f=J[a+1108>>2];J[a+596>>2]=f;J[a+1108>>2]=f+1;break l}g=J[a+592>>2];if((g|0)>=2){e=1;while(1){l=e<<2;h=J[(l+a|0)+80>>2];if(!(!h|(k|0)!=J[h>>2])){if(e&1){g=a+80|0;e=e-1|0;k=e<<2;J[g+l>>2]=J[k+g>>2];g=a+596|0;J[g+l>>2]=J[g+k>>2]}if(f){n=a+80|0;l=a+596|0;while(1){k=e<<2;f=k-4|0;g=f+n|0;J[k+n>>2]=J[g>>2];m=k+l|0;k=f+l|0;J[m>>2]=J[k>>2];m=g;f=e-2|0;g=f<<2;J[m>>2]=J[g+n>>2];J[k>>2]=J[g+l>>2];g=(e|0)>2;e=f;if(g)continue;break}}J[a+80>>2]=h;e=J[a+1108>>2];J[a+596>>2]=e;J[a+1108>>2]=e+1;e=h;break l}f= -f+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}f=rc(20);J[695492]=0;h=ga(3495,f|0,a|0,k|0)|0;e=J[695492];J[695492]=0;m:{n:{if((e|0)!=1){if(J[h+16>>2])break n;e=J[h+8>>2];o:{if(!e)break o;if(J[h+4>>2]>0){e=0;while(1){f=J[h+8>>2];J[695492]=0;_(3205,f+(e<<4)|0);f=J[695492];J[695492]=0;if((f|0)==1)break m;e=e+1|0;if((e|0)>2])continue;break}e=J[h+8>>2];if(!e)break o}qc(e)}e=J[h+12>>2];J[695492]=0;Gc(e);e=J[695492];J[695492]=0;if((e|0)==1)break m;qc(h);e=0;break l}a=Z()|0;qc(f);ba(a|0);B()}f=J[a+ -592>>2];if((f|0)==128){g=J[a+588>>2];if(g){e=J[g+8>>2];p:{if(!e)break p;if(J[g+4>>2]>0){e=0;while(1){f=J[g+8>>2];J[695492]=0;_(3205,f+(e<<4)|0);f=J[695492];J[695492]=0;if((f|0)==1)break m;e=e+1|0;if((e|0)>2])continue;break}e=J[g+8>>2];if(!e)break p}qc(e)}e=J[g+12>>2];J[695492]=0;Gc(e);e=J[695492];J[695492]=0;if((e|0)==1)break m;qc(g);f=J[a+592>>2]-1|0}else f=127;J[a+592>>2]=f}if((f|0)>0){e=f;if(e&1){k=a+80|0;g=e<<2;l=k+g|0;m=k;e=e-1|0;k=e<<2;J[l>>2]=J[m+k>>2];m=g;g=a+596|0;J[m+g>>2]=J[g+k>> -2]}if((f|0)!=1){o=a+80|0;n=a+596|0;while(1){l=e<<2;k=e-1|0;g=k<<2;f=g+o|0;J[l+o>>2]=J[f>>2];g=g+n|0;J[l+n>>2]=J[g>>2];m=f;e=e-2|0;f=e<<2;J[m>>2]=J[f+o>>2];J[g>>2]=J[f+n>>2];if(k>>>0>1)continue;break}}f=J[a+592>>2]}J[a+80>>2]=h;J[a+592>>2]=f+1;e=J[a+1108>>2];J[a+596>>2]=e;J[a+1108>>2]=e+1;e=h;break l}ea(0)|0;yc();B()}f=e;g=0;q:{if(!e)break q;r:{e=J[a+592>>2];if((e|0)<2)break r;e=e-1|0;if(J[a+1108>>2]-J[((e<<2)+a|0)+596>>2]>>>0<1001)break r;s:{g=J[((e<<2)+a|0)+80>>2];if(g){e=J[g+8>>2];t:{if(!e)break t; -if(J[g+4>>2]>0){e=0;while(1){h=J[g+8>>2];J[695492]=0;_(3205,h+(e<<4)|0);h=J[695492];J[695492]=0;if((h|0)==1)break s;e=e+1|0;if((e|0)>2])continue;break}e=J[g+8>>2];if(!e)break t}qc(e)}e=J[g+12>>2];J[695492]=0;Gc(e);e=J[695492];J[695492]=0;if((e|0)==1)break s;qc(g);e=J[a+592>>2]-1|0}J[((e<<2)+a|0)+80>>2]=0;J[a+592>>2]=e;break r}ea(0)|0;yc();B()}if(!(!((q|0)<0|(q|0)>=J[f+4>>2])&J[J[f+12>>2]+(q<<2)>>2]==(b|0))){J[d>>2]=5;g=1;break q}Ef(J[f+8>>2]+(q<<4)|0,d);g=1}if(!g)break c}if(J[i>>2]>=0)uc(a+ -1536|0);Zc(p,r,360);J[a+1172>>2]=c;J[a+1168>>2]=b;Ef(d,a+1176|0);break a}Ef(a+1176|0,d);break a}J[d>>2]=5;break a}g=J[i>>2];h=J[i+4>>2];e=J[i+8>>2];J[j+8>>2]=J[i+20>>2];b=J[i+16>>2];J[j>>2]=J[i+12>>2];J[j+4>>2]=b;Zc(p,r,f);c=a+1176|0;J[c>>2]=e;J[a+1168>>2]=g;J[a+1172>>2]=h;b=J[j+4>>2];J[a+1180>>2]=J[j>>2];J[a+1184>>2]=b;J[a+1188>>2]=J[j+8>>2];Ef(c,d)}bc=j- -64|0;return d|0}function wt(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;a:{c=J[a+36>>2];d=J[c+16>>2];b:{if(K[d|0]!=60|K[d+1|0]!=33| -(K[d+2|0]!=45|K[d+3|0]!=45))break b;m=J[a+172>>2];J[a+172>>2]=5;k=J[c+56>>2];J[a+200>>2]=J[a+200>>2]+4;J[c+16>>2]=d+4;J[c+32>>2]=J[c+32>>2]+4;d=K[d+4|0];if((d|0)==37){Od(a);c=J[a+36>>2];d=K[J[c+16>>2]]}c:{if(d&255)break c;if((Cd(c)|0)>0)break c;ze(a)}c=J[a+36>>2];d:{if(J[a+292>>2])break d;d=J[c+16>>2];if(!((d-J[c+12>>2]|0)<501|(J[c+20>>2]-d|0)>499)){Pg(a);c=J[a+36>>2];if(J[a+292>>2])break d}if((J[c+20>>2]-J[c+16>>2]|0)>249)break d;Hd(a);c=J[a+36>>2]}b=J[c+16>>2];f=K[b|0]==10;j=100;d=0;e:{while(1){f:{if(!(f& -1)){i=J[c+32>>2];break f}f=J[c+28>>2];g=b;while(1){i=1;J[c+32>>2]=1;f=f+1|0;J[c+28>>2]=f;e=K[g+1|0];b=g+1|0;g=b;if((e|0)==10)continue;break}}while(1){e=d;while(1){d=H[b|0];if(!(!((d|0)>45|(d|0)==9)&(d-32&255)>>>0>12)){i=i+1|0;b=b+1|0;continue}J[c+32>>2]=i;d=K[b|0];if((d|0)==10){f=J[c+28>>2];g=b;while(1){i=1;J[c+32>>2]=1;f=f+1|0;J[c+28>>2]=f;d=K[g+1|0];b=g+1|0;g=b;if((d|0)==10)continue;break}continue}break}f=J[c+16>>2];g:{if((f|0)==(b|0)){d=e;break g}g=J[a>>2];if(!g){d=e;break g}if(!J[g+80>>2]){d= -e;break g}f=b-f|0;h:{if(!e){h=0;i:{if((d|0)==45){e=1;if(K[b+1|0]==45)break i}e=100}j=e+f|0;d=gc[J[659450]](j)|0;if(d)break h;break a}d=f+h|0;if(d+1>>>0>>0){d=e;break h}j=(d+j|0)+100|0;d=gc[J[659452]](e,j)|0;if(d)break h;gc[J[659451]](e);break a}tc(d+h|0,J[J[a+36>>2]+16>>2],f);h=f+h|0;H[h+d|0]=0}if(!(K[a+362|0]&8|h>>>0<15000001)){Nf(a,45,15103,0);gc[J[659451]](d);return}c=J[a+36>>2];J[c+16>>2]=b;f=b;e=K[b|0];if((e|0)==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;f=b+1|0;e=K[b+1|0]}j:{if(!((e&255)!= -13|K[f+1|0]!=10)){J[c+32>>2]=1;J[c+16>>2]=f+1;J[c+28>>2]=J[c+28>>2]+1;b=f+2|0;g=K[f+2|0];break j}k:{if(J[a+292>>2])break k;if(!((b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)){Pg(a);if(J[a+292>>2])break k}b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break k;Hd(a)}if(J[a+172>>2]==-1){gc[J[659451]](d);return}c=J[a+36>>2];b=J[c+16>>2];g=K[b|0];if((g|0)!=45)break j;l:{if(K[b+1|0]!=45){g=J[c+32>>2];break l}if(K[b+2|0]==62){if((k|0)!=J[c+56>>2]){fe(a,90,29969);c=J[a+36>>2];b=J[c+16>>2]}J[a+200>>2]=J[a+200>> -2]+3;J[c+16>>2]=b+3;J[c+32>>2]=J[c+32>>2]+3;b=K[b+3|0];if((b|0)==37){Od(a);c=J[a+36>>2];b=K[J[c+16>>2]]}m:{if(b&255)break m;if((Cd(c)|0)>0)break m;ze(a)}n:{o:{p:{b=J[a>>2];if(!b)break p;b=J[b+80>>2];if(J[a+212>>2]|!b)break p;e=J[a+4>>2];if(d){gc[b|0](e,d);break o}gc[b|0](e,39181);break n}if(!d)break n}gc[J[659451]](d)}if(J[a+172>>2]!=-1)break e;break b}q:{if(d){Nf(a,80,31992,d);break q}Nf(a,80,30998,0)}b=b+1|0;c=J[a+36>>2];g=J[c+32>>2]+1|0;J[c+32>>2]=g}i=g+1|0;J[c+32>>2]=i;b=b+1|0;continue}break}f= -0;if((g&255)==9|g<<24>>24>31)continue;break}i=0;c=bc-16|0;bc=c;k=J[J[a+36>>2]+56>>2];r:{s:{if(d)break s;h=0;j=100;d=gc[J[659450]](100)|0;if(d)break s;ke(a,0);break r}t:{if(J[a+292>>2])break t;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break t;Hd(a)}u:{f=Ff(a,c+12|0);if(!f)break u;v:{w:{if((f|0)<=255){if((f|0)>31)break v;if(!(1<>>0>13)break w;break v}if(f-65536>>>0<1048576|f>>>0<55296|f-57344>>>0<8190)break v}fl(a,9,36172,f);gc[J[659451]](d);break r}b=J[a+36>>2];e=J[b+16>>2];x:{if(K[e| -0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break x}J[b+32>>2]=J[b+32>>2]+1}g=b;b=e+J[c+12>>2]|0;J[g+16>>2]=b;if(K[b|0]==37)Od(a);b=Ff(a,c+8|0);if(!b)break u;y:{z:{if((b|0)<=255){if((b|0)>31)break y;if(!(1<>>0>13)break z;break y}if(b-65536>>>0<1048576|b>>>0<55296|b-57344>>>0<8190)break y}fl(a,9,36172,f);gc[J[659451]](d);break r}e=J[a+36>>2];g=J[e+16>>2];A:{if(K[g|0]==10){J[e+32>>2]=1;J[e+28>>2]=J[e+28>>2]+1;break A}J[e+32>>2]=J[e+32>>2]+1}l=e;e=g+J[c+8>>2]|0;J[l+16>>2]=e;if(K[e|0]==37)Od(a); -e=Ff(a,c+4|0);if(!e)break u;while(1){g=b;B:{C:{D:{E:{F:{b=e;if((b|0)<=255){if((b|0)>31)break F;if(1<>>0<=13:0)break B;H[d+h|0]=0;if(b)break D;Nf(a,45,32033,d);break C}if(b-65536>>>0<1048576|b>>>0<55296)break B;if(b-57344>>>0>=8190)break E;break B}if((f|0)!=45|(g|0)!=45|(b|0)!=62)break B;H[d+h|0]=0;if((k|0)!=J[J[a+36>>2]+56>>2])fe(a,90,30020);Qd(a);b=J[a>>2];if(!b)break C;b=J[b+80>>2];if(J[a+212>>2]|!b)break C;gc[b|0](J[a+4>>2],d);break C}H[d+h|0]=0}fl(a,9,36172,b)}gc[J[659451]](d);break r}G:{if((f| -0)!=45|(g|0)!=45|(J[a+172>>2]==-1?J[a+212>>2]:0))break G;J[a+84>>2]=80;J[c>>2]=28854;Cc(0,0,0,a,0,1,80,3,0,0,0,0,32890,c);J[a+12>>2]=0;if(J[a+288>>2])break G;J[a+212>>2]=1}if(!(K[a+362|0]&8|h>>>0<15000001)){Nf(a,45,15103,0);gc[J[659451]](d);break r}H:{if(h+5>>>0>>0){e=d;break H}j=j<<1;e=gc[J[659452]](d,j)|0;if(e)break H;gc[J[659451]](d);ke(a,0);break r}d=e;I:{if(J[c+12>>2]==1){H[d+h|0]=f;h=h+1|0;break I}h=Pi(d+h|0,f)+h|0}J[c+12>>2]=J[c+8>>2];J[c+8>>2]=J[c+4>>2];J:{if(i>>>0<50){i=i+1|0;break J}K:{if(J[a+ -292>>2])break K;e=J[a+36>>2];if((J[e+20>>2]-J[e+16>>2]|0)>249)break K;Hd(a)}i=0;if(J[a+172>>2]!=-1)break J;gc[J[659451]](d);break r}e=J[a+36>>2];f=J[e+16>>2];L:{if(K[f|0]==10){J[e+32>>2]=1;J[e+28>>2]=J[e+28>>2]+1;break L}J[e+32>>2]=J[e+32>>2]+1}l=e;e=f+J[c+4>>2]|0;J[l+16>>2]=e;if(K[e|0]==37)Od(a);f=g;e=Ff(a,c+4|0);if(e)continue;M:{if(J[a+292>>2])break M;e=J[a+36>>2];g=J[e+16>>2];if(!((g-J[e+12>>2]|0)<501|(J[e+20>>2]-g|0)>499)){Pg(a);if(J[a+292>>2])break M}e=J[a+36>>2];if((J[e+20>>2]-J[e+16>>2]|0)> -249)break M;Hd(a)}e=Ff(a,c+4|0);continue}}Nf(a,45,35465,0);gc[J[659451]](d)}bc=c+16|0}J[a+172>>2]=m}return}ke(a,0);J[a+172>>2]=m}function vAa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=bc-96|0;bc=g;J[g+88>>2]=0;J[g+80>>2]=0;j=J[682146];J[g+84>>2]=j;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:switch(J[a+8>>2]-1|0){case 0:J[g>>2]=J[a+20>>2];J[695492]=0;f=ga(5180,g+80|0,2378479,g|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1)break i;break c;case 1:f=J[a+24>>2];if(f)i=J[f+8>>2];k=J[(f? -f+12|0:2728584)>>2];J[695492]=0;j=aa(4989,g+72|0,2379176)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;f=J[j>>2];l:{if(f){h=J[J[f>>2]+28>>2];J[695492]=0;ca(h|0,g- -64|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break l;f=Z()|0;sc(j);break b}J[g+64>>2]=0}J[695492]=0;aa(4993,g+80|0,g- -64|0)|0;f=J[695492];J[695492]=0;m:{if((f|0)!=1){f=J[g+64>>2];J[g+64>>2]=0;if(!f)break m;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[695492];J[695492]=0;if((l|0)!=1){if(h)break m;J[695492]=0;_(4987,f|0);f=J[695492]; -J[695492]=0;if((f|0)!=1)break m}break a}f=Z()|0;vc(g- -64|0);sc(j);break b}f=J[g+80>>2];J[g+84>>2]=J[(f?f+12|0:2728584)>>2];sc(j);j=K[k|0];n:{if(!j|(i|0)<=0)break n;while(1){f=0;o:{p:{q:{r:{s:{while(1){h=K[f+k|0];if(h>>>0<32|(h|0)==34|((h|0)==92|(h|0)==127))break s;f=f+1|0;if((i|0)!=(f|0))continue;break}f=i;break r}if(!f)break q}J[695492]=0;j=ga(5169,g+56|0,k|0,f|0)|0;h=J[695492];J[695492]=0;t:{if((h|0)!=1){J[695492]=0;ca(5122,g- -64|0,g+80|0,j|0);h=J[695492];J[695492]=0;if((h|0)==1)break t;h=J[g+ -64>>2];u:{if(h){l=J[J[h>>2]+28>>2];J[695492]=0;ca(l|0,g+48|0,h|0,1);h=J[695492];J[695492]=0;if((h|0)!=1)break u;f=Z()|0;break e}J[g+48>>2]=0}J[695492]=0;aa(4993,g+80|0,g+48|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){h=J[g+48>>2];J[g+48>>2]=0;if(!h)break p;J[695492]=0;l=J[h+4>>2]-1|0;J[h+4>>2]=l;m=J[695492];J[695492]=0;if((m|0)!=1){if(l)break p;J[695492]=0;_(4987,h|0);h=J[695492];J[695492]=0;if((h|0)!=1)break p}break a}f=Z()|0;vc(g+48|0);break e}f=Z()|0;break b}f=Z()|0;sc(j);break b}J[g+16>>2]=j&255; -Vf(g- -64|0,2380260,g+16|0);f=K[k|0];if((f|0)==34){H[g+65|0]=34;f=K[k|0]}if((f&255)==92){H[g+65|0]=92;f=K[k|0]}if((f&255)==9){H[g+65|0]=116;f=K[k|0]}if((f&255)==10){H[g+65|0]=110;f=K[k|0]}if((f&255)==13){H[g+65|0]=114;f=K[k|0]}if((f&255)==8){H[g+65|0]=98;f=K[k|0]}v:{w:{if((f&255)==12){H[g+65|0]=102;break w}if((K[g+65|0]-52&255)>>>0>251)break v}H[g+66|0]=0}J[695492]=0;j=aa(4989,g+40|0,g- -64|0)|0;f=J[695492];J[695492]=0;x:{if((f|0)!=1){J[695492]=0;ca(5122,g+48|0,g+80|0,j|0);f=J[695492];J[695492]=0; -if((f|0)==1)break x;f=J[g+48>>2];y:{if(f){h=J[J[f>>2]+28>>2];J[695492]=0;ca(h|0,g+92|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break y;f=Z()|0;break f}J[g+92>>2]=0}J[695492]=0;aa(4993,g+80|0,g+92|0)|0;f=J[695492];J[695492]=0;z:{if((f|0)!=1){f=J[g+92>>2];J[g+92>>2]=0;if(!f)break z;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[695492];J[695492]=0;if((l|0)!=1){if(h)break z;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break z}break a}f=Z()|0;vc(g+92|0);break f}f=J[g+80>>2];J[g+84>>2]= -J[(f?f+12|0:2728584)>>2];sc(g+48|0);sc(j);k=k+1|0;i=i-1|0;break o}f=Z()|0;break b}f=Z()|0;sc(j);break b}h=J[g+80>>2];J[g+84>>2]=J[(h?h+12|0:2728584)>>2];sc(g- -64|0);sc(j);k=f+k|0;i=i-f|0}j=K[k|0];if(!j)break n;if((i|0)>0)continue;break}}J[695492]=0;i=aa(4989,g+48|0,2379176)|0;f=J[695492];J[695492]=0;A:{if((f|0)!=1){J[695492]=0;ca(5122,g- -64|0,g+80|0,i|0);f=J[695492];J[695492]=0;if((f|0)==1)break A;f=J[g+64>>2];B:{if(f){k=J[J[f>>2]+28>>2];J[695492]=0;ca(k|0,g+92|0,f|0,1);f=J[695492];J[695492]=0; -if((f|0)!=1)break B;f=Z()|0;break g}J[g+92>>2]=0}J[695492]=0;aa(4993,g+80|0,g+92|0)|0;f=J[695492];J[695492]=0;C:{if((f|0)!=1){f=J[g+92>>2];J[g+92>>2]=0;if(!f)break C;J[695492]=0;k=J[f+4>>2]-1|0;J[f+4>>2]=k;j=J[695492];J[695492]=0;if((j|0)!=1){if(k)break C;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break C}break a}f=Z()|0;vc(g+92|0);break g}f=J[g+80>>2];J[g+84>>2]=J[(f?f+12|0:2728584)>>2];sc(g- -64|0);sc(i);f=g+80|0;break i}f=Z()|0;break b}f=Z()|0;sc(i);break b;case 2:i=2380591;f= -a+32|0;break j;case 3:break k;default:break h}i=2381135;f=a+12|0}f=J[f>>2];J[g+32>>2]=J[(f?f+12|0:2728584)>>2];J[695492]=0;f=ga(5180,g+80|0,i|0,g+32|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break c}f=J[f>>2];j=J[(f?f+12|0:2728584)>>2]}e=e?e:g+88|0;D:{E:{F:{if(c)break F;if(Qc(j)+J[e>>2]>>>0<71)break F;H[g+64|0]=10;i=J[J[b>>2]+12>>2];f=0;J[695492]=0;ga(i|0,b|0,g- -64|0,1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break E;H[g+64|0]=32;if((d|0)>0)while(1){i=J[J[b>>2]+12>>2];J[695492]=0;ga(i|0,b|0,g- -64| -0,1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break D;f=f+1|0;if((f|0)!=(d|0))continue;break}J[e>>2]=d}d=Qc(j);f=J[J[b>>2]+12>>2];J[695492]=0;ga(f|0,b|0,j|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;H[g+64|0]=32;d=J[J[b>>2]+12>>2];J[695492]=0;ga(d|0,b|0,g- -64|0,1)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=(Qc(j)+J[e>>2]|0)+1|0;J[e>>2]=d;if(J[a+8>>2]==4){i=Qc(j);G:{H:{f=J[a+48>>2];if(f){a=d-i|0;while(1){d=J[f+8>>2];J[695492]=0;la(5187,d|0,b|0,c|0,a|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break H; -f=J[f>>2];if(f)continue;break}}a=J[J[b>>2]+12>>2];J[695492]=0;ga(a|0,b|0,2381759,2)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break G;f=Z()|0;break b}f=Z()|0;break b}J[e>>2]=J[e>>2]+2}sc(g+80|0);bc=g+96|0;return}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break b}sc(g- -64|0);sc(i);break b}sc(g+48|0);sc(j);break b}sc(g- -64|0);sc(j);break b}f=Z()|0;break b}f=Z()|0}sc(g+80|0);ba(f|0);B()}ea(0)|0;yc();B()}function q1(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if(!e)return 0;if(J[e>>2]<=0){if(K[c|0]?!c| -!d:1){J[e>>2]=1;return 0}g=bc-336|0;bc=g;J[g+332>>2]=0;a:{b:{if(!a)break b;if(!Ec(a,730090))break b;if(!kd(a,730637,9))break b;if(!kd(a,731030,8))break b;h=1;l=0;break a}l=1}f=g+276|0;H[f+8|0]=0;J[f+4>>2]=40;J[f>>2]=f+9;J[g+328>>2]=0;H[J[g+276>>2]]=0;J[695492]=0;f=g+220|0;H[f+8|0]=0;J[f+4>>2]=40;J[f>>2]=f+9;f=J[695492];J[695492]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{if((f|0)!=1){J[g+272>>2]=0;H[J[g+220>>2]]=0;J[695492]=0;j=g+164|0;f=j;H[f+8|0]=0;J[f+4>>2]=40;J[f>>2]=f+9;f=J[695492];J[695492]=0;if((f|0)==1)break k; -J[g+216>>2]=0;H[J[g+164>>2]]=0;J[695492]=0;f=g+108|0;H[f+8|0]=0;J[f+4>>2]=40;J[f>>2]=f+9;f=J[695492];J[695492]=0;if((f|0)==1)break j;J[g+160>>2]=0;H[J[g+108>>2]]=0;if(a)break i;a=0;J[695492]=0;f=Si(g+100|0,731299);h=J[695492];J[695492]=0;if((h|0)==1)break g;h=J[f+4>>2];f=J[f>>2];J[695492]=0;ha(2882,j|0,f|0,h|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break h;break g}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}f=ls(a,47);i=Yf(a,47);J[695492]=0;j=a?K[a|0]==47:0;k=J[695492];J[695492]=0;if((k|0)== -1)break g;l:{if(!(!j&(f|0)==(i|0))){if(f){J[695492]=0;f=Si(g+92|0,f+1|0);h=J[695492];J[695492]=0;if((h|0)==1)break g;j=g+96|0;break l}J[695492]=0;f=Si(g+84|0,a);h=J[695492];J[695492]=0;if((h|0)==1)break g;j=g+88|0;break l}j=Yf(a,45);if(j){J[695492]=0;i=Si(g+76|0,j+1|0);k=J[695492];J[695492]=0;if((k|0)==1)break g;k=J[i+4>>2];i=J[i>>2];J[695492]=0;ha(2882,g+108|0,i|0,k|0,e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break g;if(!h){J[695492]=0;f=Si(g+68|0,731299);h=J[695492];J[695492]=0;if((h|0)==1)break g; -j=g+72|0;break l}J[695492]=0;ha(2882,g+164|0,a|0,j-a|0,e|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break g;a=f?a:J[g+164>>2];break h}if(!h){J[695492]=0;f=Si(g+60|0,731299);h=J[695492];J[695492]=0;if((h|0)==1)break g;j=g- -64|0;break l}J[695492]=0;f=Si(g+52|0,a);h=J[695492];J[695492]=0;if((h|0)==1)break g;j=g+56|0}h=J[j>>2];f=J[f>>2];J[695492]=0;ha(2882,g+164|0,f|0,h|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g}J[695492]=0;f=g+276|0;ha(2882,f|0,J[g+164>>2],J[g+216>>2],e|0)|0;h=J[695492];J[695492]= -0;if((h|0)==1)break g;J[695492]=0;h=g+220|0;ha(2882,h|0,J[g+164>>2],J[g+216>>2],e|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break g;j=J[g+328>>2];if(J[g+160>>2]){J[695492]=0;f=ga(2880,f|0,47,e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break g;J[695492]=0;ha(2882,f|0,J[g+108>>2],J[g+160>>2],e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;f=ga(2880,h|0,47,e|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break g;J[695492]=0;ha(2882,f|0,J[g+108>>2],J[g+160>>2],e|0)|0;f=J[695492];J[695492]=0;if((f| -0)==1)break g}J[695492]=0;h=g+276|0;i=ga(2880,h|0,47,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;f=Si(g+44|0,c);k=J[695492];J[695492]=0;if((k|0)==1)break g;k=J[f+4>>2];f=J[f>>2];J[695492]=0;ha(2882,i|0,f|0,k|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;i=g+220|0;k=ga(2880,i|0,47,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;f=Si(g+36|0,c);m=J[695492];J[695492]=0;if((m|0)==1)break g;m=J[f+4>>2];f=J[f>>2];J[695492]=0;ha(2882,k|0,f|0,m|0,e|0)|0; -f=J[695492];J[695492]=0;if((f|0)==1)break g;if(!(!b|!K[b|0])){J[695492]=0;f=Si(g+28|0,731637);k=J[695492];J[695492]=0;if((k|0)==1)break g;k=J[f+4>>2];f=J[f>>2];J[695492]=0;h=ha(2882,h|0,f|0,k|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;f=Si(g+20|0,b);k=J[695492];J[695492]=0;if((k|0)==1)break g;k=J[f+4>>2];f=J[f>>2];J[695492]=0;ha(2882,h|0,f|0,k|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;f=Si(g+12|0,731637);h=J[695492];J[695492]=0;if((h|0)==1)break g;h=J[f+ -4>>2];f=J[f>>2];J[695492]=0;h=ha(2882,i|0,f|0,h|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;f=Si(g+4|0,b);i=J[695492];J[695492]=0;if((i|0)==1)break g;i=J[f+4>>2];f=J[f>>2];J[695492]=0;ha(2882,h|0,f|0,i|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g}J[695492]=0;f=J[g+220>>2];h=pa(2879)|0;i=J[695492];J[695492]=0;if((i|0)==1)break g;j=f+j|0;m:{n:{if(!l)break n;if(Ec(b,731784))break n;o:{if(!Ec(c,731996))break o;if(!Ec(c,732088))break o;if(!Ec(c,732309))break o;if(Ec(c,732556))break n}J[695492]= -0;f=$(2886,e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break g;if(!K[f|0])break n;J[695492]=0;f=Qa(2887,729565,f|0,j|0,729565,b|0,c|0,d|0,0,g+332|0,e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break g;if(f)break m;f=0;if(J[e>>2]>0)break m}f=J[689374];if((f|0)==2){J[695492]=0;da(2888,l|0,g+332|0);f=J[695492];J[695492]=0;if((f|0)==1)break g;f=0;if(J[e>>2]>0)break m;f=J[689374]}p:{if(f&-3)break p;q:{if(h){if(!(!K[h|0]&l))break q;break p}if(l)break p}J[695492]=0;f=Qa(2887,J[g+164>>2],h|0,j|0,(a?a:731299)| -0,b|0,c|0,d|0,0,g+332|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;if(f)break m;f=0;if(J[e>>2]>0)break m;f=J[689374]}if(f>>>0<=1){f=0;J[695492]=0;da(2888,l|0,g+332|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;if(J[e>>2]>0)break m;f=J[689374]}r:{if((f|0)==3){f=0;J[695492]=0;da(2888,l|0,g+332|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;if(J[e>>2]<=0)break r;break m}f=0;if(J[e>>2]>0)break m}a=J[g+332>>2];J[e>>2]=(a|0)<=0?4:a}oh(g+108|0);oh(g+164|0);oh(g+220|0);oh(g+276|0);bc=g+336|0;break c}a= -Z()|0;oh(g+108|0)}oh(g+164|0)}oh(g+220|0)}oh(g+276|0);ba(a|0);B()}}return f}function BD(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=Q(0),l=0,m=0,n=Q(0),o=Q(0),p=0,q=0;a:{b:while(1){l=b-4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f>>2;switch(a|0){case 5:break j;case 3:break k;case 2:break l;case 0:case 1:break e;case 4:break h;default:break i}}e=b-4|0;d=J[e>>2];b=J[J[c>>2]+16>>2];a=J[f>>2];if(!(N[(d<<2)+b>>2]>2]))break e;J[f>>2]=d;J[e>>2]=a;return}e=J[J[c>> -2]+16>>2];d=b-4|0;b=J[d>>2];o=N[e+(b<<2)>>2];a=J[f+4>>2];n=N[e+(a<<2)>>2];c=J[f>>2];k=N[e+(c<<2)>>2];if(!(no))break e;J[f+4>>2]=b;J[d>>2]=a;b=J[f+4>>2];c=J[f>>2];if(!(N[e+(b<<2)>>2]>2]))break e;break a}if(n>o){J[f>>2]=b;J[d>>2]=c;return}J[f+4>>2]=c;J[f>>2]=a;a=J[d>>2];if(!(k>N[e+(a<<2)>>2]))break e;J[f+4>>2]=a;J[d>>2]=c;return}Ax(f,f+4|0,f+8|0,f+12|0,c);e=J[J[c>>2]+16>>2];d=b-4|0;b=J[d>>2];a=J[f+12>>2];if(!(N[e+(b<<2)>>2]>2]))break e;J[f+12>>2]=b;J[d>>2]=a;b=J[f+ -12>>2];k=N[e+(b<<2)>>2];a=J[f+8>>2];if(!(k>2]))break e;J[f+8>>2]=b;J[f+12>>2]=a;a=J[f+4>>2];if(!(k>2]))break e;J[f+8>>2]=a;J[f+4>>2]=b;c=J[f>>2];if(!(k>2]))break e;break a}if((a|0)<=30){a=f+4|0;g=f+8|0;i=J[J[c>>2]+16>>2];e=J[f+8>>2];o=N[i+(e<<2)>>2];d=J[f+4>>2];n=N[i+(d<<2)>>2];c=J[f>>2];k=N[i+(c<<2)>>2];m:{n:{if(!(no))break m;J[a>>2]=e;J[g>>2]=d;j=f;h=a;if(k>o)break n;break m}j=f;h=g;if(n>o)break n;J[f+4>>2]=c;J[f>>2]=d;j=a;if(!(k>o))break m}J[j>>2]= -e;J[h>>2]=c}c=f+12|0;if((c|0)==(b|0))break e;while(1){a=c;d=J[a>>2];k=N[i+(d<<2)>>2];e=J[g>>2];if(k>2]){while(1){o:{J[a>>2]=e;a=g;if((f|0)==(a|0)){a=f;break o}g=a-4|0;e=J[g>>2];if(k>2])continue}break}J[a>>2]=d}g=c;a=g+4|0;c=a;if((a|0)!=(b|0))continue;break}break e}if(!d){if((b|0)==(f|0))break e;j=c;d=b;if((b|0)!=(f|0)){h=b-f>>2;if((h|0)>=2){q=J[c>>2];p=h-2>>>1|0;b=p;while(1){i=b;p:{if((b|0)>(p|0))break p;c=(b<<2)+f|0;e=b<<1;a=e|1;b=(a<<2)+f|0;e=e+2|0;q:{if((e|0)>=(h|0)){g= -J[q+16>>2];break q}g=J[q+16>>2];if(!(N[g+(J[b>>2]<<2)>>2]>2]<<2)+g>>2]))break q;b=b+4|0;a=e}l=J[c>>2];k=N[(l<<2)+g>>2];m=J[b>>2];if(k>N[(m<<2)+g>>2])break p;while(1){r:{e=b;J[c>>2]=m;if((a|0)>(p|0))break r;a=a<<1;c=a|1;b=(c<<2)+f|0;a=a+2|0;s:{if((h|0)<=(a|0)){a=c;break s}if(!(N[(J[b>>2]<<2)+g>>2]>2]<<2)+g>>2])){a=c;break s}b=b+4|0}c=e;m=J[b>>2];if(!(k>N[(m<<2)+g>>2]))continue}break}J[e>>2]=l}b=i-1|0;if((i|0)>0)continue;break}}if((h|0)>=2)while(1){i=h;l=i-2>>>1|0;q=J[j>>2];p=J[f>> -2];b=0;a=f;while(1){e=b<<1;c=e|1;g=a;m=(b<<2)+a|0;a=m+4|0;e=e+2|0;t:{if((e|0)>=(i|0)){b=c;break t}b=c;h=J[q+16>>2];c=m+8|0;if(!(N[h+(J[m+4>>2]<<2)>>2]>2]<<2)>>2]))break t;a=c;b=e}J[g>>2]=J[a>>2];if((b|0)<=(l|0))continue;break}d=d-4|0;u:{if((d|0)==(a|0)){J[a>>2]=p;break u}J[a>>2]=J[d>>2];J[d>>2]=p;b=(a-f|0)+4>>2;if((b|0)<2)break u;l=J[q+16>>2];e=J[a>>2];k=N[l+(e<<2)>>2];b=b-2>>>1|0;g=(b<<2)+f|0;h=J[g>>2];if(!(k>N[l+(h<<2)>>2]))break u;while(1){v:{c=g;J[a>>2]=h;if(!b)break v;a=g;b=b-1>>>1| -0;g=(b<<2)+f|0;h=J[g>>2];if(k>N[l+(h<<2)>>2])continue}break}J[c>>2]=e}h=i-1|0;if((i|0)>2)continue;break}}return}j=(a<<1&-4)+f|0;w:{if(a>>>0>=1E3){a=a&-4;m=a+f|0;i=a+j|0;h=Ax(f,m,j,i,c);a=J[J[c>>2]+16>>2];g=J[l>>2];e=J[i>>2];if(!(N[a+(g<<2)>>2]>2]))break w;J[i>>2]=g;J[l>>2]=e;g=J[i>>2];e=J[j>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+1|0;break w}J[j>>2]=g;J[i>>2]=e;g=J[j>>2];e=J[m>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+2|0;break w}J[m>>2]=g;J[j>>2]=e;g=J[m>>2];e=J[f>>2];if(!(N[(g<< -2)+a>>2]>2])){h=h+3|0;break w}J[f>>2]=g;J[m>>2]=e;h=h+4|0;break w}a=J[J[c>>2]+16>>2];g=J[l>>2];o=N[a+(g<<2)>>2];e=J[j>>2];n=N[(e<<2)+a>>2];i=J[f>>2];k=N[(i<<2)+a>>2];x:{if(!(no))break w;J[j>>2]=g;J[l>>2]=e;h=1;g=J[j>>2];e=J[f>>2];if(!(N[(g<<2)+a>>2]>2]))break w;J[f>>2]=g;J[j>>2]=e;break x}if(n>o){J[f>>2]=g;J[l>>2]=i;h=1;break w}J[f>>2]=e;J[j>>2]=i;h=1;e=J[l>>2];if(!(k>N[(e<<2)+a>>2]))break w;J[j>>2]=e;J[l>>2]=i}h=2}d=d-1|0;g=l;i=J[f>>2];n=N[(i<<2)+a>>2];k=N[(J[j>> -2]<<2)+a>>2];if(!(n>2];if(n>2])break f;if((e|0)==(l|0))break e;while(1){g=J[e>>2];if(n>2]){J[e>>2]=j;J[l>>2]=g;e=e+4|0;break f}e=e+4|0;if((l|0)!=(e|0))continue;break}break e}e=J[g>>2];if(!(k>N[(e<<2)+a>>2]))continue;break}J[f>>2]=e;J[g>>2]=i;h=h+1|0}e=f+4|0;if(g>>>0<=e>>>0)break g;while(1){k=N[(J[j>>2]<<2)+a>>2];while(1){i=e;e=e+4|0;p=J[i>>2];if(k>N[(p<<2)+a>>2])continue;break}while(1){g=g-4|0;m=J[g>>2];if(!(k>N[(m<<2)+a>> -2]))continue;break}if(g>>>0>>0){e=i;break g}else{J[i>>2]=m;J[g>>2]=p;j=(j|0)==(i|0)?g:j;h=h+1|0;continue}}}Ax(f,f+4|0,f+8|0,b-4|0,c);break e}y:{if((e|0)==(j|0))break y;g=J[j>>2];k=N[(g<<2)+a>>2];i=a;a=J[e>>2];if(!(k>2]))break y;J[e>>2]=g;J[j>>2]=a;h=h+1|0}if(!h){g=G7(f,e,c);a=e+4|0;if(G7(a,b,c)){a=f;b=e;if(!g)continue b;break e}if(g)continue c}if((e-f|0)<(b-e|0)){BD(f,e,c,d);a=e+4|0;continue c}BD(e+4|0,b,c,d);a=f;b=e;continue b}g=l;if((g|0)==(e|0))break e;while(1){k=N[(J[f>>2]<<2)+ -a>>2];while(1){j=e;e=e+4|0;i=J[j>>2];if(!(k>2]))continue;break}while(1){g=g-4|0;h=J[g>>2];if(k>2])continue;break}if(g>>>0<=j>>>0){f=j;continue d}else{J[j>>2]=h;J[g>>2]=i;continue}}}break}break}break}return}J[f+4>>2]=c;J[f>>2]=b}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=Q(0),l=0,m=0,n=Q(0),o=Q(0),p=0,q=0;a:{b:while(1){l=b-4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f>>2;switch(a|0){case 5:break j;case 3:break k;case 2:break l;case 0:case 1:break e; -case 4:break h;default:break i}}e=b-4|0;d=J[e>>2];b=J[J[c>>2]+12>>2];a=J[f>>2];if(!(N[(d<<2)+b>>2]>2]))break e;J[f>>2]=d;J[e>>2]=a;return}e=J[J[c>>2]+12>>2];d=b-4|0;b=J[d>>2];o=N[e+(b<<2)>>2];a=J[f+4>>2];n=N[e+(a<<2)>>2];c=J[f>>2];k=N[e+(c<<2)>>2];if(!(no))break e;J[f+4>>2]=b;J[d>>2]=a;b=J[f+4>>2];c=J[f>>2];if(!(N[e+(b<<2)>>2]>2]))break e;break a}if(n>o){J[f>>2]=b;J[d>>2]=c;return}J[f+4>>2]=c;J[f>>2]=a;a=J[d>>2];if(!(k>N[e+(a<<2)>>2]))break e;J[f+4>>2]=a;J[d>>2]= -c;return}zx(f,f+4|0,f+8|0,f+12|0,c);e=J[J[c>>2]+12>>2];d=b-4|0;b=J[d>>2];a=J[f+12>>2];if(!(N[e+(b<<2)>>2]>2]))break e;J[f+12>>2]=b;J[d>>2]=a;b=J[f+12>>2];k=N[e+(b<<2)>>2];a=J[f+8>>2];if(!(k>2]))break e;J[f+8>>2]=b;J[f+12>>2]=a;a=J[f+4>>2];if(!(k>2]))break e;J[f+8>>2]=a;J[f+4>>2]=b;c=J[f>>2];if(!(k>2]))break e;break a}if((a|0)<=30){a=f+4|0;g=f+8|0;i=J[J[c>>2]+12>>2];e=J[f+8>>2];o=N[i+(e<<2)>>2];d=J[f+4>>2];n=N[i+(d<<2)>>2];c=J[f>>2];k=N[i+(c<<2)>>2]; -m:{n:{if(!(no))break m;J[a>>2]=e;J[g>>2]=d;j=f;h=a;if(k>o)break n;break m}j=f;h=g;if(n>o)break n;J[f+4>>2]=c;J[f>>2]=d;j=a;if(!(k>o))break m}J[j>>2]=e;J[h>>2]=c}c=f+12|0;if((c|0)==(b|0))break e;while(1){a=c;d=J[a>>2];k=N[i+(d<<2)>>2];e=J[g>>2];if(k>2]){while(1){o:{J[a>>2]=e;a=g;if((f|0)==(a|0)){a=f;break o}g=a-4|0;e=J[g>>2];if(k>2])continue}break}J[a>>2]=d}g=c;a=g+4|0;c=a;if((a|0)!=(b|0))continue;break}break e}if(!d){if((b|0)==(f|0))break e;j=c;d=b;if((b|0)!=(f| -0)){h=b-f>>2;if((h|0)>=2){q=J[c>>2];p=h-2>>>1|0;b=p;while(1){i=b;p:{if((b|0)>(p|0))break p;c=(b<<2)+f|0;e=b<<1;a=e|1;b=(a<<2)+f|0;e=e+2|0;q:{if((e|0)>=(h|0)){g=J[q+12>>2];break q}g=J[q+12>>2];if(!(N[g+(J[b>>2]<<2)>>2]>2]<<2)+g>>2]))break q;b=b+4|0;a=e}l=J[c>>2];k=N[(l<<2)+g>>2];m=J[b>>2];if(k>N[(m<<2)+g>>2])break p;while(1){r:{e=b;J[c>>2]=m;if((a|0)>(p|0))break r;a=a<<1;c=a|1;b=(c<<2)+f|0;a=a+2|0;s:{if((h|0)<=(a|0)){a=c;break s}if(!(N[(J[b>>2]<<2)+g>>2]>2]<<2)+g>>2])){a=c;break s}b= -b+4|0}c=e;m=J[b>>2];if(!(k>N[(m<<2)+g>>2]))continue}break}J[e>>2]=l}b=i-1|0;if((i|0)>0)continue;break}}if((h|0)>=2)while(1){i=h;l=i-2>>>1|0;q=J[j>>2];p=J[f>>2];b=0;a=f;while(1){e=b<<1;c=e|1;g=a;m=(b<<2)+a|0;a=m+4|0;e=e+2|0;t:{if((e|0)>=(i|0)){b=c;break t}b=c;h=J[q+12>>2];c=m+8|0;if(!(N[h+(J[m+4>>2]<<2)>>2]>2]<<2)>>2]))break t;a=c;b=e}J[g>>2]=J[a>>2];if((b|0)<=(l|0))continue;break}d=d-4|0;u:{if((d|0)==(a|0)){J[a>>2]=p;break u}J[a>>2]=J[d>>2];J[d>>2]=p;b=(a-f|0)+4>>2;if((b|0)<2)break u;l= -J[q+12>>2];e=J[a>>2];k=N[l+(e<<2)>>2];b=b-2>>>1|0;g=(b<<2)+f|0;h=J[g>>2];if(!(k>N[l+(h<<2)>>2]))break u;while(1){v:{c=g;J[a>>2]=h;if(!b)break v;a=g;b=b-1>>>1|0;g=(b<<2)+f|0;h=J[g>>2];if(k>N[l+(h<<2)>>2])continue}break}J[c>>2]=e}h=i-1|0;if((i|0)>2)continue;break}}return}j=(a<<1&-4)+f|0;w:{if(a>>>0>=1E3){a=a&-4;m=a+f|0;i=a+j|0;h=zx(f,m,j,i,c);a=J[J[c>>2]+12>>2];g=J[l>>2];e=J[i>>2];if(!(N[a+(g<<2)>>2]>2]))break w;J[i>>2]=g;J[l>>2]=e;g=J[i>>2];e=J[j>>2];if(!(N[(g<<2)+a>>2]>2])){h= -h+1|0;break w}J[j>>2]=g;J[i>>2]=e;g=J[j>>2];e=J[m>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+2|0;break w}J[m>>2]=g;J[j>>2]=e;g=J[m>>2];e=J[f>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+3|0;break w}J[f>>2]=g;J[m>>2]=e;h=h+4|0;break w}a=J[J[c>>2]+12>>2];g=J[l>>2];o=N[a+(g<<2)>>2];e=J[j>>2];n=N[(e<<2)+a>>2];i=J[f>>2];k=N[(i<<2)+a>>2];x:{if(!(no))break w;J[j>>2]=g;J[l>>2]=e;h=1;g=J[j>>2];e=J[f>>2];if(!(N[(g<<2)+a>>2]>2]))break w;J[f>>2]=g;J[j>>2]=e;break x}if(n>o){J[f>> -2]=g;J[l>>2]=i;h=1;break w}J[f>>2]=e;J[j>>2]=i;h=1;e=J[l>>2];if(!(k>N[(e<<2)+a>>2]))break w;J[j>>2]=e;J[l>>2]=i}h=2}d=d-1|0;g=l;i=J[f>>2];n=N[(i<<2)+a>>2];k=N[(J[j>>2]<<2)+a>>2];if(!(n>2];if(n>2])break f;if((e|0)==(l|0))break e;while(1){g=J[e>>2];if(n>2]){J[e>>2]=j;J[l>>2]=g;e=e+4|0;break f}e=e+4|0;if((l|0)!=(e|0))continue;break}break e}e=J[g>>2];if(!(k>N[(e<<2)+a>>2]))continue;break}J[f>>2]=e;J[g>>2]=i;h=h+1|0}e=f+4|0;if(g>>> -0<=e>>>0)break g;while(1){k=N[(J[j>>2]<<2)+a>>2];while(1){i=e;e=e+4|0;p=J[i>>2];if(k>N[(p<<2)+a>>2])continue;break}while(1){g=g-4|0;m=J[g>>2];if(!(k>N[(m<<2)+a>>2]))continue;break}if(g>>>0>>0){e=i;break g}else{J[i>>2]=m;J[g>>2]=p;j=(j|0)==(i|0)?g:j;h=h+1|0;continue}}}zx(f,f+4|0,f+8|0,b-4|0,c);break e}y:{if((e|0)==(j|0))break y;g=J[j>>2];k=N[(g<<2)+a>>2];i=a;a=J[e>>2];if(!(k>2]))break y;J[e>>2]=g;J[j>>2]=a;h=h+1|0}if(!h){g=F7(f,e,c);a=e+4|0;if(F7(a,b,c)){a=f;b=e;if(!g)continue b;break e}if(g)continue c}if((e- -f|0)<(b-e|0)){AD(f,e,c,d);a=e+4|0;continue c}AD(e+4|0,b,c,d);a=f;b=e;continue b}g=l;if((g|0)==(e|0))break e;while(1){k=N[(J[f>>2]<<2)+a>>2];while(1){j=e;e=e+4|0;i=J[j>>2];if(!(k>2]))continue;break}while(1){g=g-4|0;h=J[g>>2];if(k>2])continue;break}if(g>>>0<=j>>>0){f=j;continue d}else{J[j>>2]=h;J[g>>2]=i;continue}}}break}break}break}return}J[f+4>>2]=c;J[f>>2]=b}function VYa(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;g=bc-176|0;bc=g;a:{if(!a| -!b)break a;d=J[a+8>>2];if(!d)break a;k=J[a+52>>2];b:{if(J[d+48>>2]|!J[a+104>>2])break b;d=J[d+44>>2];if(d)if(J[d+36>>2]|J[d+40>>2]|(J[d+44>>2]|J[d+48>>2]))break b;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=94;h=J[a>>2];d=0;c:{if(!h)break c;d=0;if(J[h+108>>2]!=-554844497)break c;d=J[h+124>>2]}h=J[a+112>>2];f=J[a+108>>2];J[g+96>>2]=0;J[g+100>>2]=0;Cc(d,h,f,a,0,4,94,2,0,0,0,0,29465,g+96|0);J[a+100>>2]=0}J[a+104>>2]=0}m=qJ(a,b,g+108|0);j=QJ(J[a+8>>2],m);if(!j){b=J[g+108>>2];if(b)gc[J[659451]](b); -J[a+84>>2]=2;c=J[a>>2];b=0;d:{if(!c)break d;b=0;if(J[c+108>>2]!=-554844497)break d;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[g+4>>2]=0;J[g>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,2723,g);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}b=J[a+8>>2];d=J[b+12>>2];e:{if(!d){Ug(b,j);break e}k=k?k:d}J[a+264>>2]=-1;f:{if(!J[a+280>>2])break f;b=J[a+36>>2];if(!b)break f;b=J[b+28>>2];I[j+56>>1]=(b|0)>=65535?65535:b}ow(a,j);g:{if(!k)break g;if(J[k+4>>2]==1){Ug(k,j);break g}JB(k,j)}h:{if(J[a+32>>2])break h; -b=J[a+8>>2];d=J[b+44>>2];if(!(d|J[b+48>>2]))break h;n=J[g+108>>2];b=pB(d,m,n);h=b;if(!b){h=pB(J[J[a+8>>2]+48>>2],m,n);if(!h)break h}o=(b|0)!=0;while(1){e=J[h+44>>2];b=J[a+8>>2];if(J[b+40>>2]==1){i:{if(!e|(!J[b+48>>2]|!J[a+104>>2]))break i;while(1){j:{if(!J[e+48>>2])break j;if((rp(J[J[a+8>>2]+48>>2],J[e+60>>2],J[e+8>>2],J[e+56>>2])|0)!=(e|0))break j;if(rp(J[J[a+8>>2]+44>>2],J[e+60>>2],J[e+8>>2],J[e+56>>2]))break j;k:{l:{m:{n:{o:{f=J[e+56>>2];b=f;if(b){while(1){d=b;b=b+1|0;if(K[d|0])continue;break}b= -0;d=d-f|0;if((d|0)<0)break n;b=gc[J[659450]](d+1|0)|0;if(b)break o;b=0;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break n}i=J[e+8>>2];b=i;if(!b)break m;while(1){d=b;b=b+1|0;if(K[d|0])continue;break}b=d-i|0;if((b|0)<0)break m;f=gc[J[659450]](b+1|0)|0;if(f)break l;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break m}p=tc(b,f,d)+d|0,q=0,H[p|0]=q}f=vp(vp(b,22253),J[e+8>>2]);if(f)break k}J[a+84>>2]=2;b=0;d=J[a>>2];if(!(!d|J[d+108>>2]!=-554844497))b=J[d+124>>2];d=J[a+108>>2];f=J[a+112>>2];J[g+68>>2]=0;J[g+64>>2]=30575; -Cc(b,f,d,a,0,1,2,2,30575,0,0,0,2723,g- -64|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break i}p=tc(f,i,b)+b|0,q=0,H[p|0]=q}p:{q:{if(!c)break q;i=0;b=J[c>>2];if(!b)break q;while(1){d=f;if((d|0)==(b|0))break p;while(1){l=K[b|0];if((l|0)==K[d|0]){d=d+1|0;b=b+1|0;if(l)continue;break p}break}i=i+2|0;b=J[(i<<2)+c>>2];if(b)continue;break}}b=J[e+60>>2];if(J[a+172>>2]==-1?J[a+212>>2]:0)break p;J[a+84>>2]=538;d=0;i=J[a>>2];if(!(!i|J[i+108>>2]!=-554844497))d=J[i+124>>2];i=J[a+108>>2];l=J[a+112>>2];J[g+84>> -2]=b;J[g+80>>2]=f;Cc(d,l,i,a,0,4,538,2,f,b,0,0,31533,g+80|0);J[a+100>>2]=0}gc[J[659451]](f)}e=J[e+36>>2];if(e)continue;break}}e=J[h+44>>2]}if(e)while(1){r:{if(!J[e+48>>2])break r;s:{t:{h=J[e+56>>2];if(h){b=4071;d=h;if((d|0)==4071)break s;while(1){f=K[d|0];if((f|0)!=K[b|0])break t;b=b+1|0;d=d+1|0;if(f)continue;break}break s}b=J[e+8>>2];if((b|0)==4071)break s;d=4071;if(!b)break t;while(1){f=K[b|0];if((f|0)!=K[d|0])break t;d=d+1|0;b=b+1|0;if(f)continue;break}break s}if(!(K[a+276|0]&4))break r}b=rp(J[J[a+ -8>>2]+44>>2],J[e+60>>2],J[e+8>>2],h);if(b?(b|0)!=(e|0):0)break r;u:{v:{b=J[e+8>>2];if(b){d=J[e+56>>2];if(!d){h=b;break u}h=g+112|0;l=Qc(b);f=Qc(d);i=l+f|0;if((i|0)<49)break v;h=gc[J[659450]](i+2|0)|0;if(h)break v;J[g+48>>2]=14100;Cc(0,0,0,0,0,2,2,3,14100,0,0,0,32863,g+48|0)}J[a+84>>2]=2;d=J[a>>2];b=0;w:{if(!d)break w;b=0;if(J[d+108>>2]!=-554844497)break w;b=J[d+124>>2]}d=J[a+108>>2];h=J[a+112>>2];J[g+36>>2]=0;J[g+32>>2]=30575;Cc(b,h,d,a,0,1,2,2,30575,0,0,0,2723,g+32|0);J[a+212>>2]=1;J[a+172>>2]=-1; -J[a+84>>2]=2;break h}d=tc(h,d,f);f=d+f|0;H[f|0]=58;tc(f+1|0,b,l);H[(d+i|0)+1|0]=0}x:{y:{if(!c)break y;f=0;b=J[c>>2];if(!b)break y;while(1){d=h;if((d|0)==(b|0))break x;while(1){i=K[b|0];if((i|0)==K[d|0]){d=d+1|0;b=b+1|0;if(i)continue;break x}break}f=f+2|0;b=J[(f<<2)+c>>2];if(b)continue;break}}IB(a,h,J[e+48>>2])}if((g+112|0)==(h|0)|J[e+8>>2]==(h|0))break r;gc[J[659451]](h)}e=J[e+36>>2];if(e)continue;break}if(!o)break h;o=0;h=pB(J[J[a+8>>2]+48>>2],m,n);if(h)continue;break}}z:{if(J[a+32>>2]|!c)break z; -b=J[c>>2];if(!b)break z;e=J[c+4>>2];if(!e)break z;d=2;while(1){A:{if(K[b|0]!=120|K[b+1|0]!=109|(K[b+2|0]!=108|K[b+3|0]!=110))break A;if(K[b+4|0]!=115)break A;IB(a,b,e)}h=d<<2;b=J[h+c>>2];if(!b)break z;d=d+2|0;e=J[(h|4)+c>>2];if(e)continue;break}}b=jl(J[a+8>>2],j,J[g+108>>2]);if(!(b|!k))b=jl(J[a+8>>2],k,J[g+108>>2]);d=J[g+108>>2];B:{if(b|!d)break B;b=hl(j,0,d);d=J[g+108>>2];if(J[a+172>>2]==-1?J[a+212>>2]:0)break B;J[a+84>>2]=201;J[g+20>>2]=0;J[g+16>>2]=d;Cc(0,0,0,a,0,3,201,1,d,0,0,0,35778,g+16|0)}C:{if(!b)break C; -d=J[b+8>>2];if(!d|!(K[d|0]|J[b+12>>2])|J[j+4>>2]-1>>>0>1)break C;J[j+36>>2]=b}D:{if(!c)break D;d=J[c+4>>2];b=J[c>>2];if(J[a+32>>2]){if(!b)break D;e=2;while(1){IB(a,b,d);b=e<<2;d=J[(b|4)+c>>2];e=e+2|0;b=J[b+c>>2];if(b)continue;break}break D}if(!b|!d)break D;e=2;while(1){E:{if(!(K[b|0]!=120|K[b+1|0]!=109|(K[b+2|0]!=108|K[b+3|0]!=110)))if(K[b+4|0]==115)break E;IB(a,b,d)}d=e<<2;b=J[d+c>>2];if(!b)break D;e=e+2|0;d=J[(d|4)+c>>2];if(d)continue;break}}a=J[g+108>>2];if(!a)break a;gc[J[659451]](a)}bc=g+176| -0}function V7(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,B=0;a:{b:{c:{d:{e:{f:{g:{if(b){j=$g(a,b);if(!j){Dc(a,1045,0,0);return 1045}h=J[j+88>>2];if(K[h+33|0]){Dc(a,1071,0,0);return 1071}i=K[h+44|0];if(i>>>0<9)break g;k=K[h+45|0];if(k>>>0>12)break e;k=1<>2];if(!K[j+44|0])break c;h=J[j+52>>2];i=J[j+36>>2];if((h|0)<=(i|0))break c;k=J[j+60>>2];n=J[j+40>>2];if((k|0)<=(n|0))break c; -h=dk(a,j,h-i|0,k-n|0,8,6,0,0,0,0);if(h)break b;break d}h=WD(a,j,8,6,0)}if(h)break b;h=J[j+88>>2]}if(K[h+49|0])break d;i=0;h:{i:{j:{n=J[j+88>>2];k=K[n+44|0];if(k>>>0<8)break j;switch(K[n+45|0]-6|0){case 0:case 8:break i;default:break j}}Dc(a,1071,0,0);h=1071;break h}k:{if(K[n+49|0])break k;J[a+540>>2]=n;J[a+536>>2]=j;J[a+544>>2]=j;H[a+649|0]=0;J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;h=k>>>0>8;J[a+984>>2]=h?1020:1021;J[a+980>>2]=h?1022:1023;h=J[n+36>>2];H[a+648|0]=0;J[a+ -616>>2]=0;J[a+588>>2]=h;J[a+604>>2]=h<<2;if(k>>>0>=9){H[a+648|0]=1;J[a+604>>2]=h<<3}J[a+976>>2]=0;i=ru(a,0,0,1);if(i)break k;if(J[a+976>>2]){h=gc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=h;if(!h){Dc(a,1,0,0);h=1;break h}J[a+636>>2]=h;h=0;while(1){l:{k=h;s=J[n+40>>2];if(s>>>0<=h>>>0){i=0;break l}i=gc[J[a+980>>2]](a)|0;if(i)break l;i=gc[J[a+976>>2]](a)|0;if(i)break l;i=gc[J[a+984>>2]](a)|0;if(i)break l;h=k+1|0;i=Jr(a);if(!i)continue}break}h=J[a+644>>2];if(h)gc[J[a+156>>2]](h,J[a+604>>2]);if(k>>>0>> -0)break k}H[n+49|0]=1;i=0}h=i}if(h)break b}if(K[j+64|0]|K[j+65|0]){h=tu(a,j);if(h)break b}i=J[j+88>>2];h=K[i+44|0];m:{n:{o:switch(c|0){default:e=J[a+2332>>2];d=J[a+2328>>2];break m;case 0:J[a+2332>>2]=e;J[a+2328>>2]=d;break m;case 1:d=J[j+80>>2]+d|0;J[a+2328>>2]=d;e=J[j+84>>2]+e|0;break n;case 2:break o}d=J[a+2328>>2]+d|0;J[a+2328>>2]=d;e=J[a+2332>>2]+e|0}J[a+2332>>2]=e}J[j+84>>2]=e;J[j+80>>2]=d;J[a+540>>2]=i;J[a+536>>2]=j;p:{if(!f){e=1;h=0;break p}c=h>>>0>8;v=c;y=c?1262:1263;k=c?1264:1265;n=c?1215: -1214;s=c?1266:1267;z=c?3:2;t=h>>>0<9;A=t?1200:0;d=0;while(1){c=$g(a,L[g>>1]);q:{if(!c){h=0;break q}if(!K[c+32|0]){h=0;break q}r:{if(K[c+64|0]|K[c+65|0]){h=tu(a,c);if(h)break r}o=J[c+88>>2];J[a+616>>2]=0;J[a+584>>2]=1;J[a+576>>2]=1;H[a+568|0]=255;J[a+544>>2]=c;w=J[o+1168>>2];B=J[o+36>>2];c=K[o+44|0];H[a+2253|0]=4;p=c>>>0>8;s:{t:{u:{v:switch(K[o+45|0]){case 0:J[a+980>>2]=p?1149:1150;c=!K[o+56|0];break t;case 2:J[a+980>>2]=p?1151:1152;c=!K[o+56|0];break t;case 3:J[a+980>>2]=1153;c=!K[o+56|0];break t; -case 4:J[a+980>>2]=p?1154:1155;break u;case 6:J[a+980>>2]=p?1022:1023;break u;case 8:J[a+980>>2]=p?1149:1150;c=1;break t;case 10:J[a+980>>2]=p?1151:1152;c=1;break t;case 12:J[a+980>>2]=p?1154:1155;break u;case 14:break v;default:break s}J[a+980>>2]=p?1022:1023}c=0}H[a+649|0]=c}J[a+976>>2]=0;c=p?A:0;J[a+996>>2]=p?c:t?c:1197;h=ru(a,0,0,1);if(h)break r;J[a+1004>>2]=0;J[a+1008>>2]=0;w:{x:{y:{e=K[g+3|0];x=e-2|0;switch(x|0){case 6:break x;case 0:case 2:break y;default:break w}}if(!t){J[a+1004>>2]=1268; -break w}J[a+1004>>2]=1269;break w}if(!t){J[a+1008>>2]=1262;break w}J[a+1008>>2]=1263}h=k;z:{A:{B:switch(K[g+2|0]){case 1:h=n;break A;case 0:break A;case 2:break B;default:break z}h=s}J[a+1E3>>2]=h}C:{if(K[g+4|0]==1){h=J[g+12>>2]+J[a+2332>>2]|0;c=J[g+8>>2]+J[a+2328>>2]|0;break C}h=J[g+12>>2];c=J[g+8>>2]}m=J[j+88>>2];i=J[m+40>>2];m=J[m+36>>2];if((e|0)!=8){e=J[o+40>>2]+h|0;i=(e|0)>(i|0)?i:e;e=c+J[o+36>>2]|0;m=(e|0)>(m|0)?m:e}D:{if(K[g+16|0]==1){l=J[a+2328>>2];e=l+J[g+20>>2]|0;r=(c|0)<(e|0)?e-c|0:0;J[a+ -656>>2]=r;u=J[g+28>>2];q=(c|0)>(e|0)?c:e;J[a+672>>2]=q;c=u;u=J[a+2332>>2];c=c+u|0;e=(c|0)<(h|0)?h:c;J[a+680>>2]=e;c=(c|0)>(h|0)?c-h|0:0;J[a+664>>2]=c;h=l+J[g+24>>2]|0;l=(h|0)>(m|0)?m:h;J[a+676>>2]=l;h=J[g+32>>2]+u|0;break D}e=J[g+20>>2];r=(c|0)<(e|0)?e-c|0:0;J[a+656>>2]=r;l=J[g+28>>2];q=(c|0)>(e|0)?c:e;J[a+672>>2]=q;e=(h|0)>(l|0)?h:l;J[a+680>>2]=e;c=(h|0)<(l|0)?l-h|0:0;J[a+664>>2]=c;h=J[g+24>>2];l=(h|0)>(m|0)?m:h;J[a+676>>2]=l;h=J[g+32>>2]}i=(h|0)>(i|0)?i:h;J[a+684>>2]=i;if(r)J[a+1008>>2]=y;h=0;if((l| -0)<(q|0)|(e|0)>(i|0))break r;m=1;E:switch(x|0){case 0:case 4:m=-1;c=J[o+40>>2]+(c^-1)|0;break;default:break E}J[a+580>>2]=q;l=l-q|0;q=l<>2]](i)|0;J[a+644>>2]=h;if(!h)break a;h=gc[J[a+152>>2]](i)|0;J[a+636>>2]=h;if(!h)break a;while(1){F:{if(J[a+684>>2]<=(e|0)){h=0;break F}H[a+648|0]=p;J[a+604>>2]=w;J[a+588>>2]=B;J[a+572>>2]=c;h=gc[J[a+980>>2]](a)|0;G:{if(h){H[a+648|0]=v;break G}h=J[a+996>>2];H:{if(!h){H[a+648|0]=v;break H}h=gc[h|0](a)|0;H[a+648|0]=v;if(h)break G}h= -J[a+976>>2];if(h){h=gc[h|0](a)|0;if(h)break G}h=J[a+1004>>2];if(h){h=gc[h|0](a)|0;if(h)break G}h=J[a+1008>>2];if(h){h=gc[h|0](a)|0;if(h)break G}J[a+604>>2]=q;J[a+588>>2]=l;J[a+572>>2]=e;h=gc[J[a+1E3>>2]](a)|0}r=J[o+40>>2];c=c+m|0;c=(c|0)<0?r-1|0:(c|0)<(r|0)?c:0;e=e+1|0;if(!h)continue}break}c=J[a+636>>2];if(c)gc[J[a+156>>2]](c,i);c=J[a+644>>2];if(!c)break r;gc[J[a+156>>2]](c,i)}d=d+1|0;g=g+36|0}e=!h;if(h)break p;if(d>>>0>>0)continue;break}}if(!e)break b;if(!b){h=Lh(a,j,0);if(!h)break c;break b}if(!K[j+ -31|0]|!K[j+32|0])break c;h=Lh(a,j,0);if(h)break b}h=0;if(!K[a+497|0])break b;H[a+498|0]=11;I[a+2326>>1]=b}return h}Dc(a,1,0,0);return 1}function MX(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;h=bc-4160|0;bc=h;J[h+4140>>2]=-1;J[a+76>>2]=0;J[a+20>>2]=-1;b=J[a>>2];gc[J[J[b>>2]+20>>2]](b);m=J[a+4>>2];d=h+32|0;n=d;e=1;while(1){c=n-d|0;if(!(i|(c|0)>255)){b=h+32|0;tc(b,d,c);f=J[a>>2];g=b+c|0;i=4096-c|0;c=gc[J[J[f>>2]+40>>2]](f,g,i)|0;n=c+g|0;H[n|0]=0;i= -(c|0)<(i|0);m=(m-b|0)+d|0;d=b}if(!(!i|(d|0)!=(n|0))){m=1;if((q|0)>0){j=a+40|0;d=0;n=0;while(1){J[h+16>>2]=13;c=(d<<2)+s|0;b=J[c>>2];l=Tm(a,b,J[(J[a+8>>2]+P(b,12)|0)+4>>2],h+16|0,0);if(J[l>>2]==8){b=J[h+24>>2];b=gc[J[J[b>>2]+76>>2]](b)|0;J[h>>2]=13;Bc(b,791542,h,0);a:{if(J[h>>2]!=4)break a;e=J[h+8>>2];if(!(Ec(e,792271)|n)){J[h+4144>>2]=13;Ce(b,779280,h+4144|0);n=0;b:{if(J[h+4144>>2]!=9)break b;c=J[h+4152>>2];if((c|0)>J[a+16>>2])break b;J[a+20>>2]=c;J[a+24>>2]=J[h+4156>>2];if(J[a+40>>2]!=13)uc(j);J[j+ -8>>2]=b;J[j>>2]=7;J[b+20>>2]=J[b+20>>2]+1;n=1}uc(h+4144|0);break a}if(Ec(e,792936))break a;u=J[c>>2];b=bc-32|0;bc=b;J[b+16>>2]=13;J[b>>2]=13;c:{d:{e:{f:{c=J[l+8>>2];g=gc[J[J[c>>2]+76>>2]](c)|0;c=b+16|0;g:{if(J[Bc(g,776356,c,0)>>2]!=1){uc(c);break g}p=J[b+24>>2];uc(b+16|0);if(p-1000001>>>0<4293967296)break g;c=rc(56);J[695492]=0;e=$(4,160)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;f=J[l+8>>2];g=J[J[f>>2]+8>>2];J[695492]=0;f=$(g|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break f;J[695492]=0;f= -ga(3494,e|0,0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break f;J[695492]=0;o=ha(3308,c|0,0,f|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;g=0;while(1){hg(o,b+16|0,1,0,0,0,0,0,0);hg(o,b,1,0,0,0,0,0,0);h:{if(J[b+16>>2]!=1|J[b>>2]!=1)break h;e=J[b+24>>2];if(e>>>0>999999)break h;i:{if((e|0)>2]){i=J[a+8>>2];break i}k=(e&-256)+256|0;i=Nd(J[a+8>>2],k,12);J[a+8>>2]=i;f=J[a+12>>2];j:{if((k|0)<=(f|0))break j;c=0;v=(e|255)-f|0;t=0-f&3;if(t)while(1){r=P(f,12)+i|0;J[r+8>>2]=0;J[r>>2]=-1;f=f+1| -0;c=c+1|0;if((t|0)!=(c|0))continue;break}if(v>>>0<3)break j;while(1){c=P(f,12)+i|0;J[c+8>>2]=0;J[c+12>>2]=-1;J[c>>2]=-1;J[c+20>>2]=0;J[c+24>>2]=-1;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=-1;f=f+4|0;if((k|0)!=(f|0))continue;break}}J[a+12>>2]=k}c=P(e,12)+i|0;if(J[c+4>>2]>(g|0)?J[c+8>>2]:0)break h;J[c+4>>2]=g;J[c>>2]=u;J[c+8>>2]=2;if((e|0)<=J[a+16>>2])break h;J[a+16>>2]=e}uc(b);uc(b+16|0);g=g+1|0;if((p|0)!=(g|0))continue;break}qc(qk(o))}bc=b+32|0;break c}a=Z()|0;qc(e);break d}a=Z()|0}qc(c);ba(a|0);B()}}uc(h)}uc(l); -d=d+1|0;if((q|0)!=(d|0))continue;break}}Gc(s);if(J[a+20>>2]<0){xc(1,-1,793386,0);m=0}bc=h+4160|0;return m}k:{if(e){if(!kd(d,788977,7)){d=d+7|0;f=d+(m-(h+32|0)|0)|0;b=bc-48|0;bc=b;J[b+16>>2]=13;J[b>>2]=5;c=rc(56);J[695492]=0;e=$(4,160)|0;g=J[695492];J[695492]=0;l:{m:{n:{o:{if((g|0)==1)break o;g=J[a>>2];j=J[J[g>>2]+92>>2];J[695492]=0;f=ma(j|0,g|0,f|0,0,0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break n;J[695492]=0;f=ga(3494,e|0,0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break n;J[695492]=0;f=ha(3308, -c|0,0,f|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;hg(f,b+16|0,0,0,0,0,0,0,0);if(J[b+16>>2]==7){c=J[b+24>>2];J[b+32>>2]=13;Ce(c,779280,b+32|0);if(J[b+32>>2]==9){J[a+20>>2]=J[b+40>>2];J[a+24>>2]=J[b+44>>2];e=a+40|0;if(J[a+40>>2]!=13)uc(e);J[e+8>>2]=c;J[e>>2]=7;J[c+20>>2]=J[c+20>>2]+1}uc(b+32|0)}uc(b+16|0);qc(qk(f));bc=b+48|0;break l}a=Z()|0;break m}a=Z()|0;qc(e)}qc(c);ba(a|0);B()}e=0;continue}if(!kd(d,789821,9)){b=J[a+72>>2];e=J[a+76>>2];if((o|0)==(e|0)){o=o- -64|0;b=Nd(b,o,4);J[a+72>>2]=b; -e=J[a+76>>2]}J[a+76>>2]=e+1;J[(e<<2)+b>>2]=(m-(h+32|0)|0)+d;d=d+9|0;e=0;continue}g=K[d|0];e=g;if((e-48&255)>>>0>9)break k;e=0;u=(m-(h+32|0)|0)+d|0;f=0;while(1){p:{b=d+1|0;f=((g<<24>>24)+P(f,10)|0)-48|0;g=H[d+1|0];if((g|0)<48|g>>>0>57)break p;d=b;if((f|0)<1E8)continue}break}d=(g&255)-9|0;q:{if(d>>>0>23|!(1<>>0>23)break r;if(1<>>0>9)break q;v=h+4140|0;g=0;while(1){s:{g=(P(g,10)+(d&255)|0)-48|0;c= -b+1|0;d=H[b+1|0];if((d|0)<48|d>>>0>57)break s;b=c;if((g|0)<1E8)continue}break}b=(d&255)-9|0;t:{if(b>>>0>23|!(1<>>0>23)break u;if(1<>2];v:{if(J[a+12>>2]>(f|0)){j=J[a+8>>2];break v}k=f&-256;if((k|0)<-256)break t;l=k+256|0;j=Nd(J[a+8>>2],l,12);J[a+8>>2]=j;b=J[a+12>>2];w:{if((l|0)<=(b|0))break w;d=0;k=(k-b|0)+255|0;r=0-b&3;if(r)while(1){w=P(b,12)+j|0;J[w+8>>2]=0;J[w>>2]=-1;b=b+1| -0;d=d+1|0;if((r|0)!=(d|0))continue;break}if(k>>>0<3)break w;while(1){d=P(b,12)+j|0;J[d+8>>2]=0;J[d+12>>2]=-1;J[d>>2]=-1;J[d+20>>2]=0;J[d+24>>2]=-1;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=-1;b=b+4|0;if((l|0)!=(b|0))continue;break}}J[a+12>>2]=l}b=P(f,12)+j|0;x:{if(J[b+4>>2]>(g|0)?J[b+8>>2]:0)break x;J[b+4>>2]=g;J[b>>2]=u-t;J[b+8>>2]=1;if(J[a+16>>2]>=(f|0))break x;J[a+16>>2]=f}J[v>>2]=f}b=c}d=b;continue}e=K[d|0]}b=e&255;if((b|0)!=62|K[d+1|0]!=62){e=(b|0)==10|(b|0)==13;d=d+1|0;continue}else{d=d+2|0;e=0; -while(1){b=K[d|0];c=b-9|0;if(!(c>>>0>23|!(1<>2];if((e|0)>=0){if((q|0)==(p|0)){p=p- -64|0;s=Nd(s,p,4);e=J[h+4140>>2]}J[(q<<2)+s>>2]=e;q=q+1|0}d=d+6|0;e=0;continue}}}function e$a(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;i=bc-16|0;bc=i;r=J[a+12>>2];l=J[a+8>>2];p=J[a+4>>2];k=H[p+35|0];j=J[p+8>>2];m=J[j+80>>2];d=J[p+56>>2];o=J[a+16>>2];q=J[a+20>>2];h=!!(o>>>0>> -0?d:0);while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!h){if(l>>>0>=r>>>0)break h;if(o>>>0>=q>>>0)break i;c=l+2|0;d=L[l>>1];if((d&63488)!=55296)break j;if(d&1024)break l;l=c;h=1;continue}if(l>>>0>>0){c=L[l>>1];if((c&64512)==56320)break k;J[b>>2]=12}J[p+56>>2]=d;break h}J[b>>2]=12;J[p+56>>2]=d;l=c;break h}J[p+56>>2]=0;d=(c+(d<<10)|0)-56613888|0;c=l+2|0}l=c;f=0;if((d&-160)-32>>>0<96|(1<>>0<=10:0))break e;f=16;c=d-258|0;if(c>>>0<16&(64575>>>c&1))break e;g=d&-4;if((g|0)==280|(d&-5)-313>>> -0<2)break e;c=d-321|0;if(c>>>0<21&(1671247>>>c&1)|(g|0)==344)break e;e=d&-2;if((e|0)==350)break e;c=d-352|0;if(c>>>0<=30)break g;break f}J[b>>2]=15}J[j+80>>2]=m;J[a+16>>2]=o;J[a+8>>2]=l;bc=i+16|0;return}if(1<>>0<=22:0)break e;f=17;if((g|0)==264)break e;c=d-284|0;if(c>>>0<6&(51>>>c&1)|(g|0)==292)break e;m:switch(d-308|0){case 0:case 1:case 40:case 41:case 56:case 57:break e;default:break m}f=18;if((g|0)==372)break e;n:{o:{if((d|0)<=7689){if(d-338>>> -0<2)break o;if((d|0)!=376)break n;break o}p:switch(d-7690|0){case 2:case 3:case 4:case 5:case 6:case 7: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 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:break n; +e+P(b,-6)|0;if(d>>>0>>0|d>>>0>k>>>0)break j;if(K[j|0]&2){H[d|0]=l|K[d|0];b=J[f+52>>2]}b=P(b,-7)+e|0;if(!(H[j|0]&1)|(b>>>0>>0|b>>>0>k>>>0))break j;H[b|0]=l|K[b|0]}c=c+1|0;if((c|0)>2])continue;break}}h=h+1|0;if((h|0)>2])continue;break}}d=0;J[699344]=0;e=J[a+964>>2];b=J[699344];J[699344]=0;if((b|0)==1)break b;if(!(!e|(n|0)<=0|(i|0)<=0))while(1){g=(d^-1)+i|0;c=0;while(1){J[699344]=0;e=K[g+(J[a+964>>2]+P(J[a+16>>2],c)|0)|0];b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0; +yh(f,c,d,e);b=J[699344];J[699344]=0;if((b|0)==1)break b;c=c+1|0;if((n|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}J[699344]=0;e=J[a+960>>2];b=J[699344];J[699344]=0;if((b|0)==1)break b;if(!e)break c;J[f+372>>2]=J[a+384>>2];J[f+380>>2]=J[a+376>>2];J[f+384>>2]=i-J[a+380>>2];J[f+376>>2]=i-J[a+372>>2];if((i|0)<=0|(n|0)<=0)break c;d=0;while(1){g=(d^-1)+i|0;c=0;while(1){J[699344]=0;e=K[g+(J[a+960>>2]+P(J[a+16>>2],c)|0)|0];b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;yy(f,c, +d,e);b=J[699344];J[699344]=0;if((b|0)==1)break i;c=c+1|0;if((n|0)!=(c|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}break c}break b}break b}J[699344]=0;ga(108,a|0,f|0,1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[f>>2]=1032;J[699344]=0;_(13,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;J[699344]=0;_(14,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=o+992|0;return(r|0)!=0}b=Z()|0;J[f>>2]=1032;J[699344]=0;_(13,f|0)|0;a=J[699344];J[699344]=0;k:{if((a|0)==1)break k;J[699344]= +0;_(14,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;ba(b|0);B()}}ea(0)|0;Bc();B()}function CEa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=fc-1104|0;fc=d;while(1){c=a;a=J[a+16>>2];if(a)continue;break}a:{b:{c:{d:{e:{f:{g:{g=c+20|0;h:{if(!lk(g))break h;h=c+56|0;i:{a=J[c+56>>2];j:{if(!a){J[d+1100>>2]=0;break j}J[a+4>>2]=J[a+4>>2]+1;a=J[h>>2];J[d+1100>>2]=a;if(a)break i}k:{l:{m:{n:{a=J[693724];if(!a){J[699344]=0;a=_(4,28)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;J[a+4>>2]=0;J[a+24>>2]=0;J[a+ +8>>2]=0;J[a+12>>2]=0;J[a>>2]=2397884;J[a+16>>2]=0;J[a+20>>2]=0;J[699344]=0;b=a+8|0;J[b>>2]=2397928;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;uc(nd(a));break b}J[693724]=a}J[699344]=0;J[d+1096>>2]=0;b=d+1096|0;aa(5145,b|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break n;J[699344]=0;f=d+16|0;ia(5247,f|0,a|0,g|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break m;J[699344]=0;a=aa(5153,d+1100|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[699344]=0;aa(5153, +h|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[d+16>>2];J[d+16>>2]=0;o:{if(!a)break o;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(b)break o;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[d+1096>>2];J[d+1096>>2]=0;if(!a)break i;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)!=1){if(b)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i}break a}c=Z()|0;break b}c=Z()|0;break k}c= +Z()|0;zc(d+16|0)}zc(d+1096|0);break b}J[699344]=0;a=d+16|0;$(5248,a|0);b=J[699344];J[699344]=0;p:{q:{r:{s:{t:{u:{v:{w:{x:{if((b|0)!=1){J[699344]=0;f=c- -64|0;aa(5153,f|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break x;a=J[d+16>>2];J[d+16>>2]=0;y:{if(!a)break y;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(b)break y;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[c+72>>2];J[699344]=0;$(5249,a+4|0);a=J[699344];J[699344]=0;if((a|0)== +1)break w;a=J[693726];if(!a){J[699344]=0;b=_(4,32)|0;a=J[699344];J[699344]=0;if((a|0)==1)break w;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[699344]=0;a=aa(5250,b|0,2397856)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;J[693726]=a}J[699344]=0;J[d+1092>>2]=0;b=d+1092|0;aa(5145,b|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break w;J[699344]=0;ca(5251,a|0,g|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break v;a=J[d+1092>>2];J[d+1092>>2]=0;z:{if(!a)break z; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(b)break z;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[699344]=0;a=_(5252,d+1056|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;aa(5253,g|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[a+24>>2]=2392964;J[a>>2]=2392932;b=J[a+28>>2];if(b){e=J[b+4>>2]-1|0;J[b+4>>2]=e;if(!e)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2392964;b=J[a+20>>2];if(b){e=J[b+4>>2]-1|0;J[b+4>> +2]=e;if(!e)kc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}wc(a+8|0);b=J[d+1100>>2];a=J[b+44>>2];J[699344]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break s;a=J[b+44>>2];J[d+1052>>2]=a;b=J[J[a>>2]+20>>2];J[699344]=0;ha(b|0,a|0,0,0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break r;while(1){a=J[J[d+1100>>2]+44>>2];b=J[J[a>>2]+8>>2];J[699344]=0;e=b;b=d+16|0;a=ga(e|0,a|0,b|0,1024)|0;e=J[699344];J[699344]=0;if((e|0)==1)break q;if(!a)break p;e=J[c+76>>2];J[699344]=0;ia(5254,c|0,b|0,e|0,a|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break q;J[c+76>>2]=a+J[c+76>>2];continue}}c=Z()|0;break b}c=Z()|0;zc(d+16|0);break b}c=Z()|0;break b}c=Z()|0;zc(d+1092|0);break b}c=Z()|0;break b}c=Z()|0;Ed(a);break b}c=Z()|0;break b}c=Z()|0;break d}c=Z()|0;break d}J[699344]=0;a=_(5244,g|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;if(!(J[c+16>>2]!=0|a)){H[c+8|0]=1;if(J[c+84>>2]<0){a=J[f>>2];b=J[J[a>>2]+28>>2];J[699344]=0;a=_(b|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[c+84>>2]=a}a=J[c+96>>2];if(a)while(1){b= +J[a+8>>2];if(!J[b+8>>2])J[b+8>>2]=1;a=J[a>>2];if(a)continue;break}J[699344]=0;$(5255,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break e}a=J[693724];if(!a){J[699344]=0;a=_(4,28)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[a+4>>2]=0;J[a+24>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2397884;J[a+16>>2]=0;J[a+20>>2]=0;J[699344]=0;b=a+8|0;J[b>>2]=2397928;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;uc(nd(a));break d}J[693724]=a}J[d+12>>2]=0;J[699344]=0;b=J[d+1100>>2]; +g=d+12|0;aa(5145,g|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[699344]=0;ca(5234,a|0,b+44|0,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;a=J[d+12>>2];J[d+12>>2]=0;A:{if(!a)break A;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break A;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[d+1052>>2];B:{if(!a)break B;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break B;J[699344]=0; +$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[699344]=0;aa(5145,h|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;a=J[d+1100>>2];J[d+1100>>2]=0;if(!a)break h;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break h;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+1104|0;return}c=Z()|0;zc(d+12|0);break d}c=Z()|0;uc(b);break b}c=Z()|0}zc(d+1052|0);break b}c=Z()|0}zc(d+1100|0);ba(c|0);B()}ea(0)|0;Bc();B()}function vCb(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;a:{b:{c:{d:{if(J[a+84>>2]!=4)break d;d=Dc(J[a+56>>2]<<5);if(!d)break c;f=J[a+56>>2];if((f|0)>0){e=J[a+88>>2];c=d;while(1){J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=J[e+16>>2];J[c+28>>2]=K[e+20|0];J[c+16>>2]=J[e+8>>2];J[c+20>>2]=J[e+12>>2];J[c+8>>2]=J[e>>2];J[c+12>>2]=J[e+4>>2];c=c+32|0;e=e+32|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}c=Hs(f,d);J[a>>2]=c;if(!c)return-1;uc(d);h=J[a+92>>2];if(!h)break d;f=0;c=Dc(12);e:{f:{if(!c)break f;J[c>> +2]=0;J[c+4>>2]=100;d=Dc(400);J[c+8>>2]=d;if(d){i=J[c+4>>2];g:{if((i|0)<=0)break g;if(i>>>0>=4){d=i&-4;while(1){e=f<<2;J[e+J[c+8>>2]>>2]=0;J[J[c+8>>2]+(e|4)>>2]=0;J[J[c+8>>2]+(e|8)>>2]=0;J[J[c+8>>2]+(e|12)>>2]=0;f=f+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}d=i&3;if(!d)break g;while(1){J[J[c+8>>2]+(f<<2)>>2]=0;f=f+1|0;l=l+1|0;if((d|0)!=(l|0))continue;break}}if(!J[h>>2])break e;d=J[J[h+8>>2]>>2];f=J[d+4>>2];h:{if(f>>>0<4)break h;k=J[d+8>>2];g=0;while(1){m=Vi(0,0);if(!m)break h;j=J[c+8>>2];n=J[c>> +2];d=J[c+4>>2];if((n|0)>=(d|0)){j=Yh(j,(d<<2)- -8192|0);if(!j)break h;p=d+1024|0;o=J[c+4>>2];d=J[c>>2];i:{if((o|0)<=(d|0))break i;l=0;e=d;i=o-e&3;if(i)while(1){J[J[c+8>>2]+(e<<2)>>2]=0;e=e+1|0;l=l+1|0;if((i|0)!=(l|0))continue;break}if(o+(d^-1)>>>0<3)break i;while(1){i=e<<2;J[i+J[c+8>>2]>>2]=0;J[(i+J[c+8>>2]|0)+4>>2]=0;J[(i+J[c+8>>2]|0)+8>>2]=0;J[(i+J[c+8>>2]|0)+12>>2]=0;e=e+4|0;if((o|0)!=(e|0))continue;break}}J[c+8>>2]=j;J[c+4>>2]=p;if((d|0)!=(n|0))break h}J[(n<<2)+j>>2]=m;J[c>>2]=n+1;d=K[k|0]|K[k+ +1|0]<<8|(K[k+2|0]<<16|K[k+3|0]<<24);k=k+4|0;f=f-4|0;l=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(l)while(1){if(!f){g=g+1|0;if((g|0)>=J[h>>2])break h;d=J[J[h+8>>2]+(g<<2)>>2];f=J[d+4>>2];k=J[d+8>>2]}d=f>>>0>l>>>0?l:f;if((Ap(m,k,d)|0)!=(d|0))break h;f=f-d|0;k=d+k|0;l=l-d|0;if(l)continue;break}po(m);if(!f){g=g+1|0;if((g|0)>=J[h>>2])break e;d=J[J[h+8>>2]+(g<<2)>>2];f=J[d+4>>2];k=J[d+8>>2]}if(f>>>0>3)continue;break}}f=c;break f}uc(c)}c=J[f+8>>2];if(c){if(J[f>>2]>0){c=0;while(1){Pf(J[J[f+8>>2]+(c<<2)>> +2]);c=c+1|0;if((c|0)>2])continue;break}c=J[f+8>>2]}uc(c)}uc(f);c=0}J[a+96>>2]=c;if(!c)break b;e=J[a+92>>2];if(J[e>>2]>0){c=0;while(1){f=J[J[e+8>>2]+(c<<2)>>2];d=J[f+8>>2];if(d)uc(d);uc(f);c=c+1|0;if((c|0)>2])continue;break}}c=J[e+8>>2];if(c)uc(c);uc(e);J[a+92>>2]=0}c=J[b+16>>2];if(c)d=((c+J[J[a+60>>2]+60>>2]|0)-J[b+4>>2]|0)-4|0;else d=0;J[a+100>>2]=d;e=J[b+12>>2];if((e|0)>J[a+44>>2]){rd(205094,0);return-1}d=J[a+48>>2];i=d+P(e,56)|0;J[a+52>>2]=i;g=-1;f=K[b+20|0];j:{if((f|0)!=J[i+40>>2])break j; +c=J[i+44>>2];if((c|0)>0&(c|0)<=(f|0))break j;k:{if(c)break k;c=K[b+21|0];if(!c)break k;J[i+44>>2]=c}n=d+P(e,56)|0;J[n+20>>2]=0;l:{if(!J[i>>2]){J[i>>2]=1;if(J[n+32>>2])break a;j=J[a+64>>2];b=J[j+20>>2];m:{h=Dc(28);n:{if(!h)break n;J[h+20>>2]=b;J[h>>2]=0;I[h+16>>1]=0;J[h+12>>2]=0;H[h+8|0]=0;b=Dc(P(b,488));J[h+24>>2]=b;if(!b)break n;c=lba();J[h+4>>2]=c;if(!c){uc(J[h+24>>2]);break n}f=J[h+20>>2];if((f|0)>0){c=J[h+24>>2];if(f>>>0>=4){b=f&-4;g=0;while(1){H[c+418|0]=0;I[c+416>>1]=0;J[c+12>>2]=0;J[c>>2]= +0;J[c+488>>2]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;J[c+976>>2]=0;J[c+1464>>2]=0;H[c+906|0]=0;I[c+904>>1]=0;J[c+500>>2]=0;H[c+1394|0]=0;I[c+1392>>1]=0;J[c+988>>2]=0;H[c+493|0]=0;H[c+494|0]=0;H[c+495|0]=0;H[c+496|0]=0;H[c+1882|0]=0;I[c+1880>>1]=0;J[c+1476>>2]=0;H[c+981|0]=0;H[c+982|0]=0;H[c+983|0]=0;H[c+984|0]=0;d=c+1469|0;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;c=c+1952|0;g=g+4|0;if((b|0)!=(g|0))continue;break}}b=f&3;if(b){g=0;while(1){H[c+418|0]=0;I[c+416>>1]=0;J[c+12>>2]=0;J[c>>2]=0;H[c+ +5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;c=c+488|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}c=J[h+4>>2]}J[h>>2]=J[j>>2];H[h+8|0]=K[j+8|0];J[h+12>>2]=J[j+12>>2];H[h+16|0]=K[j+16|0];H[h+17|0]=K[j+17|0];bP(c);J[h+4>>2]=0;o=J[j+4>>2];g=0;e=Dc(12);o:{if(e){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;if(J[o>>2]<=0)break o;while(1){p:{c=J[J[o+8>>2]+(g<<2)>>2];m=Dc(16);if(!m)break p;b=J[c+4>>2];J[m>>2]=J[c>>2];J[m+4>>2]=b;b=J[c+12>>2];J[m+8>>2]=J[c+8>>2];J[m+12>>2]=b;c=J[e+8>>2];d=J[e>>2];b=J[e+4>>2];q:{if((d|0)<(b| +0)){b=d;break q}b=b+128|0;c=Yh(c,b<<2);if(!c)break p;J[e+8>>2]=c;J[e+4>>2]=b;b=J[e>>2];if((d|0)>=(b|0))break q;p=0;c=b;i=c-d&3;if(i)while(1){f=J[e+8>>2]+(c<<2)|0;J[f>>2]=J[f-4>>2];c=c-1|0;p=p+1|0;if((i|0)!=(p|0))continue;break}if((d^-1)+b>>>0>=3)while(1){i=c<<2;f=i+J[e+8>>2]|0;J[f>>2]=J[f-4>>2];f=i+J[e+8>>2]|0;J[f-4>>2]=J[f-8>>2];f=i+J[e+8>>2]|0;J[f-8>>2]=J[f-12>>2];f=i+J[e+8>>2]|0;J[f-12>>2]=J[f-16>>2];c=c-4|0;if((d|0)<(c|0))continue;break}c=J[e+8>>2]}J[(d<<2)+c>>2]=m;J[e>>2]=b+1;g=g+1|0;if((g|0)< +J[o>>2])continue;break o}break}b=J[e+8>>2];if(b){if(J[e>>2]>0){c=0;while(1){uc(J[J[e+8>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}b=J[e+8>>2]}uc(b)}uc(e)}e=0}J[h+4>>2]=e;if(e)break m;uc(h)}J[n+32>>2]=0;return-1}if(J[j+20>>2]>0){g=J[h+24>>2];c=J[j+24>>2];b=0;while(1){d=xc(g,c,488);c=c+488|0;g=d+488|0;b=b+1|0;if((b|0)>2])continue;break}}J[n+32>>2]=h;b=J[a+64>>2];J[b>>2]=J[b>>2]&3;d=J[b+20>>2];if((d|0)<=0)break l;c=J[b+24>>2];if(d>>>0>=8){b=d&-8;e=0;while(1){J[c+3416>>2]=0;J[c+2928>> +2]=0;J[c+2440>>2]=0;J[c+1952>>2]=0;J[c+1464>>2]=0;J[c+976>>2]=0;J[c+488>>2]=0;J[c>>2]=0;c=c+3904|0;e=e+8|0;if((b|0)!=(e|0))continue;break}}b=d&7;if(!b)break l;e=0;while(1){J[c>>2]=0;c=c+488|0;e=e+1|0;if((b|0)!=(e|0))continue;break}break l}if(K[b+21|0]!=(f-1|0))break l;J[i>>2]=2}J[a+84>>2]=16;g=0}return g|0}fa(204629,201400,453,211737);B()}ra();B()}fa(205233,201400,516,211737);B()}function BXa(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;e=fc+-64|0;fc=e;a=eq(a,b,c,d); +J[a+232>>2]=0;J[a+236>>2]=0;J[a>>2]=843228;J[a+240>>2]=0;J[a+244>>2]=0;J[a+248>>2]=0;J[a+252>>2]=0;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;b=J[b+24>>2];J[699344]=0;ha(3372,c|0,b|0,e+48|0,0)|0;b=J[699344];J[699344]=0;k=a+244|0;l=a+232|0;a:{b:{c:{if((b|0)!=1){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[699344]=0;b=ha(3368,J[e+56>>2],805801,e+32|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(J[b>>2]==4){J[699344]=0;aa(2974,e|0,J[e+40>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]=0;$(3370, +e+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;c=K[e+11|0];b=c<<24>>24;d:{e:{f:switch(((b|0)<0?J[e+4>>2]:c)-7|0){case 0:if(dd((b|0)<0?J[e>>2]:e,843249,7))break d;b=6;break e;case 1:break f;default:break d}b=(b|0)<0?J[e>>2]:e;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))!=2037149520|(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24))!=1701734732)break d;b=7}H[a+229|0]=b}J[699344]=0;b=ha(3368,J[e+56>>2],843551,e+32|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;g:{if(J[b>>2]!=6)break g; +c=J[e+40>>2];if(J[c+12>>2]<=0)break g;while(1){J[699344]=0;b=ha(3449,c|0,i|0,e+16|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;h:{if(J[b>>2]-3>>>0>=4294967294){if(i&1)j=O[a+16>>3]-(J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]);else j=(J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3])-O[a+24>>3];c=J[a+248>>2];d=J[a+252>>2];if(c>>>0>>0){O[c>>3]=j;J[a+248>>2]=c+8;break h}g=J[k>>2];h=c-g>>3;b=h+1|0;if(b>>>0>=536870912){J[699344]=0;$(2494,k|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break c}i:{d=d-g|0;f=d>>2; +f=d>>>0>=2147483640?536870911:b>>>0>>0?f:b;j:{if(!f){d=0;break j}if(f>>>0>=536870912){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}J[699344]=0;d=_(4,f<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i}b=(h<<3)+d|0;O[b>>3]=j;h=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[a+252>>2]=(f<<3)+d;J[a+248>>2]=h;J[a+244>>2]=b;if(!g)break h;uc(g);break h}break b}c=J[a+248>>2];d=J[a+252>>2];if(c>>>0>>0){J[c>>2]=0;J[c+4>>2]=0; +J[a+248>>2]=c+8;break h}k:{l:{m:{g=J[k>>2];h=c-g>>3;b=h+1|0;n:{if(b>>>0>=536870912){J[699344]=0;$(2494,k|0);break n}d=d-g|0;f=d>>2;f=d>>>0>=2147483640?536870911:b>>>0>>0?f:b;if(!f){d=0;break l}if(f>>>0<536870912)break m;J[699344]=0;ka(209)}b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}J[699344]=0;d=_(4,f<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k}b=(h<<3)+d|0;J[b>>2]=0;J[b+4>>2]=0;h=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[a+252>> +2]=(f<<3)+d;J[a+248>>2]=h;J[a+244>>2]=b;if(!g)break h;uc(g);break h}break b}J[699344]=0;$(3370,e+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;i=i+1|0;c=J[e+40>>2];if((i|0)>2])continue;break}}J[699344]=0;b=e+32|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;b=ha(3368,J[e+56>>2],840682,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;o:{if(J[b>>2]!=6)break o;I[a+230>>1]=1285;J[a+8>>2]=J[a+8>>2]|32768;b=J[e+40>>2];if(J[b+12>>2]<=0)break o;J[699344]=0;c=b;b=e+16| +0;c=ha(3449,c|0,0,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(J[c>>2]==4)m=a,n=Ww(b),H[m+230|0]=n;J[699344]=0;d=e+16|0;b=d;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;c=J[e+40>>2];if(J[c+12>>2]<2)break o;J[699344]=0;b=ha(3449,c|0,1,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(J[b>>2]==4)m=a,n=Ww(d),H[m+231|0]=n;J[699344]=0;$(3370,e+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]=0;b=e+32|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]= +0;b=ha(3368,J[e+56>>2],840839,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;p:{q:{if(J[b>>2]!=6)break q;J[a+8>>2]=J[a+8>>2]|65536;c=J[e+40>>2];if(J[c+12>>2]<=0)break q;i=0;while(1){J[699344]=0;b=ha(3449,c|0,i|0,e+16|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;j=0;j=J[b>>2]-3>>>0>=4294967294?J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]:j;c=J[a+236>>2];d=J[a+240>>2];r:{if(c>>>0>>0){O[c>>3]=j;J[a+236>>2]=c+8;break r}s:{t:{g=J[l>>2];h=c-g>>3;b=h+1|0;u:{if(b>>>0>=536870912){J[699344]=0;$(2494, +l|0);break u}d=d-g|0;f=d>>2;f=d>>>0>=2147483640?536870911:b>>>0>>0?f:b;if(!f){d=0;break s}if(f>>>0<536870912)break t;J[699344]=0;ka(209)}b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}J[699344]=0;d=_(4,f<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}b=(h<<3)+d|0;O[b>>3]=j;h=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[a+240>>2]=(f<<3)+d;J[a+236>>2]=h;J[a+232>>2]=b;if(!g)break r;uc(g)}J[699344]=0;$(3370,e+16|0);b=J[699344];J[699344]=0; +if((b|0)==1)break p;i=i+1|0;c=J[e+40>>2];if((i|0)>2])continue;break}}J[699344]=0;b=e+32|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;b=ha(3368,J[e+56>>2],841453,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;v:{if(J[b>>2]!=4)break v;H[a+228|0]=0;J[a+8>>2]=J[a+8>>2]|1048576;if(J[e+32>>2]!=4)break v;b=J[e+40>>2];c=1;w:{if(!Ic(b,843679))break w;if(Ic(b,843800))break v;c=2}H[a+228|0]=c}J[699344]=0;$(3370,e+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]= +0;$(3370,e+48|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;if(H[e+11|0]<0)uc(J[e>>2]);fc=e- -64|0;return a|0}break b}c=Z()|0;break a}B()}c=Z()|0;if(H[e+11|0]>=0)break a;uc(J[e>>2])}b=J[k>>2];if(b){J[a+248>>2]=b;uc(b)}b=J[l>>2];if(b){J[a+236>>2]=b;uc(b)}Ch(a);ba(c|0);B()}function AB(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;a:{b:{c:switch(J[b+4>>2]){case 1:case 2:case 3:break a;case 0:break c;default:break b}j=J[b+52>>2];if(J[j+8>>2]<=0)break b; +while(1){AB(a,J[J[j>>2]+(l<<2)>>2],c,d);l=l+1|0;j=J[b+52>>2];if((l|0)>2])continue;break}}return}y=c;p=b;b=vc(16);J[699344]=0;h=_(3352,b|0)|0;c=J[699344];J[699344]=0;d:{if((c|0)!=1)e:{QI(a,p,h,0);l=J[h+8>>2];f:{if((l|0)<2)break f;q=J[h>>2];e=q-4|0;a=0;c=1;while(1){b=c<<2;d=J[b+q>>2];g:{h:{i:{j:{k:{j=J[b+e>>2];switch(J[j+4>>2]-1|0){case 2:break h;case 1:break i;case 0:break j;default:break k}}b=d+24|0;d=j+32|0;break g}b=j+8|0;d=d+16|0;break g}b=j+24|0;d=d+24|0;break g}b=d+8|0;d=d+16|0}m=O[b>> +3]-O[d>>3];b=m>0;k=k+(b?m:-0);a=a+b|0;c=c+1|0;if((l|0)!=(c|0))continue;break}if(!a)break f;k=k/+(a|0)}b=vc(16);J[699344]=0;w=_(3352,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;if(J[h+8>>2]>0){m=k*1.25;d=p+16|0;j=p+40|0;l=p+24|0;q=p+32|0;c=0;while(1){b=vc(16);J[699344]=0;n=_(3352,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;g=J[J[h>>2]+(c<<2)>>2];sd(n,g);t=0;a=c+1|0;l:{if((a|0)>=J[h+8>>2]){c=a;break l}f=J[J[h>>2]+(a<<2)>>2];m:{n:{o:{p:{q:{u=J[g+4>>2]-1|0;switch(u|0){case 2:break n;case 1:break o; +case 0:break p;default:break q}}e=d;b=g+8|0;break m}e=l;b=g+24|0;break m}e=g+16|0;b=q;break m}e=g+32|0;b=j}i=O[b>>3]-O[e>>3];r:{s:{t:switch(J[f+4>>2]-1|0){default:e=d;b=f+8|0;break s;case 0:e=l;b=f+24|0;break s;case 1:e=f+16|0;b=q;break s;case 2:break t}e=f+32|0;b=j}k=O[b>>3]-O[e>>3];x=k-i;o=O[g+40>>3];v=o*.5;r=O[f+40>>3];if(!(x>v)|!(R(o-r)<=1))break r;u:{v:switch(u|0){default:e=f+24|0;b=g+32|0;break u;case 0:e=g+8|0;b=f+16|0;break u;case 1:e=g+24|0;b=f+24|0;break u;case 2:break v}e=f+8|0;b=f+16| +0}if(!(O[e>>3]-O[b>>3]<=m))break r;sd(n,f);c=c+2|0;if((c|0)>=J[h+8>>2])break l;while(1){w:{x:{y:{z:{A:{f=J[h>>2]+(c<<2)|0;e=J[f>>2];switch(J[e+4>>2]-1|0){case 2:break x;case 1:break y;case 0:break z;default:break A}}b=e+8|0;a=d;break w}b=e+24|0;a=l;break w}b=q;a=e+16|0;break w}b=j;a=e+32|0}if(v>3]-O[a>>3])|R(o-O[e+40>>3])>1)break l;B:{C:{D:{E:{F:{b=J[f-4>>2];switch(J[b+4>>2]-1|0){case 2:break C;case 1:break D;case 0:break E;default:break F}}a=b+32|0;b=e+24|0;break B}a=e+16|0;b=b+8|0;break B}a= +e+24|0;b=b+24|0;break B}a=e+16|0;b=e+8|0}if(O[b>>3]-O[a>>3]>m)break l;sd(n,e);c=c+1|0;if((c|0)>2])continue;break}break l}G:{if(!(o>r*1.5))break G;s=r*.5;if(!(x>s))break G;H:{I:switch(u|0){default:e=f+24|0;b=g+32|0;break H;case 0:e=g+8|0;b=f+16|0;break H;case 1:e=g+24|0;b=f+24|0;break H;case 2:break I}e=f+8|0;b=f+16|0}if(!(O[e>>3]-O[b>>3]<0))break G;sd(n,f);b=J[h+8>>2];c=c+2|0;J:{if((b|0)<=(c|0))break J;while(1){K:{L:{M:{N:{O:{g=J[h>>2]+(c<<2)|0;f=J[g>>2];switch(J[f+4>>2]-1|0){case 2:break L; +case 1:break M;case 0:break N;default:break O}}e=d;a=f+8|0;break K}e=l;a=f+24|0;break K}e=f+16|0;a=q;break K}e=f+32|0;a=j}if(O[a>>3]-O[e>>3]-i<=s)break J;P:{Q:{R:{S:{T:{e=J[g-4>>2];switch(J[e+4>>2]-1|0){case 2:break Q;case 1:break R;case 0:break S;default:break T}}a=e+32|0;e=f+24|0;break P}a=f+16|0;e=e+8|0;break P}a=f+24|0;e=e+24|0;break P}a=f+16|0;e=f+8|0}if(O[e>>3]-O[a>>3]>m)break J;sd(n,f);b=J[h+8>>2];c=c+1|0;if((b|0)>(c|0))continue;break}}if((b|0)<=(c|0)){t=1;break l}while(1){U:{V:{W:{X:{Y:{f= +J[h>>2]+(c<<2)|0;e=J[f>>2];switch(J[e+4>>2]-1|0){case 2:break V;case 1:break W;case 0:break X;default:break Y}}b=e+8|0;a=d;break U}b=e+24|0;a=l;break U}b=q;a=e+16|0;break U}b=j;a=e+32|0}if(O[b>>3]-O[a>>3]-i>s){t=1;break l}if(R(r-O[e+40>>3])>1){t=1;break l}Z:{_:{$:{aa:{ba:{b=J[f-4>>2];switch(J[b+4>>2]-1|0){case 2:break _;case 1:break $;case 0:break aa;default:break ba}}a=b+32|0;b=e+24|0;break Z}a=e+16|0;b=b+8|0;break Z}a=e+24|0;b=b+24|0;break Z}a=e+16|0;b=e+8|0}if(O[b>>3]-O[a>>3]>m){t=1;break l}sd(n, +e);t=1;c=c+1|0;if((c|0)>2])continue;break}break l}if(!(R(o-r)<=1)){c=a;break l}ca:{da:switch(u|0){default:e=f+24|0;b=g+32|0;break ca;case 0:e=g+8|0;b=f+16|0;break ca;case 1:e=g+24|0;b=f+24|0;break ca;case 2:break da}e=f+8|0;b=f+16|0}if(!(O[e>>3]-O[b>>3]<=m)){c=a;break l}sd(n,f);c=c+2|0;if((c|0)>=J[h+8>>2])break l;while(1){ea:{fa:{ga:{ha:{ia:{f=J[h>>2]+(c<<2)|0;e=J[f>>2];switch(J[e+4>>2]-1|0){case 2:break fa;case 1:break ga;case 0:break ha;default:break ia}}b=e+8|0;a=d;break ea}b=e+24|0;a=l; +break ea}b=q;a=e+16|0;break ea}b=j;a=e+32|0}if(v>3]-O[a>>3]-k|R(o-O[e+40>>3])>1)break l;ja:{ka:{la:{ma:{na:{b=J[f-4>>2];switch(J[b+4>>2]-1|0){case 2:break ka;case 1:break la;case 0:break ma;default:break na}}a=b+32|0;b=e+24|0;break ja}a=e+16|0;b=b+8|0;break ja}a=e+24|0;b=b+24|0;break ja}a=e+16|0;b=e+8|0}if(O[b>>3]-O[a>>3]>m)break l;sd(n,e);c=c+1|0;if((c|0)>2])continue;break}}a=vc(40);J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=t;J[a>>2]=n;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+ +32>>2]=0;J[a+36>>2]=0;f=J[n+8>>2];oa:{if((f|0)<=0)break oa;g=J[n>>2];b=J[g>>2];k=O[b+8>>3];O[a+8>>3]=k;s=O[b+24>>3];O[a+24>>3]=s;r=O[b+16>>3];O[a+16>>3]=r;o=O[b+32>>3];O[a+32>>3]=o;b=1;if((f|0)==1)break oa;while(1){e=J[g+(b<<2)>>2];i=O[e+8>>3];if(i>3]=i;k=i}i=O[e+24>>3];if(i>3]=i;s=i}i=O[e+16>>3];if(i>r){O[a+16>>3]=i;r=i}i=O[e+32>>3];if(i>o){O[a+32>>3]=i;o=i}b=b+1|0;if((f|0)!=(b|0))continue;break}}sd(w,a);if(J[h+8>>2]>(c|0))continue;break}}uc(ld(h));a=vc(56);k=O[p+32>>3];m=O[p+ +40>>3];s=O[p+16>>3];O[a+24>>3]=O[p+24>>3];O[a+8>>3]=s;J[a>>2]=w;J[a+40>>2]=0;J[a+44>>2]=0;O[a+32>>3]=m;O[a+16>>3]=k;J[a+48>>2]=0;J[a+52>>2]=0;break d}a=Z()|0;uc(b);ba(a|0);B()}sd(y,a)}function Wza(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;c=fc-112|0;fc=c;e=b+8|0;a:{if(J[b+8>>2]){ti(c+108|0,b,e);break a}J[c+108>>2]=0;vd(c+108|0,0)}J[699344]=0;d=_(4,12)|0;g=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if((g|0)==1)break l;J[d+8>>2]=0;J[d>>2]=2412920;J[d+4>>2]=0;J[699344]=0;J[c+104>> +2]=0;aa(5145,c+104|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;$(5248,c+100|0);d=J[699344];J[699344]=0;if((d|0)==1)break k;d=J[c+100>>2];g=J[e>>2];if(g){J[699344]=0;da(5566,g|0,d|0);g=J[699344];J[699344]=0;if((g|0)==1)break e}g=J[J[d>>2]+20>>2];J[699344]=0;ha(g|0,d|0,0,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;g=J[J[d>>2]+28>>2];J[699344]=0;d=_(g|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;if(!d){J[699344]=0;aa(5145,c+100|0,0)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break e}if(!J[c+100>>2])break i;d=J[b+12>>2];g=(d|0)>0?d:0;d=J[c+108>>2];if(d)g=g-J[d+32>>2]|0;J[699344]=0;da(5567,J[c+104>>2],c+100|0);d=J[699344];J[699344]=0;if((d|0)==1)break f;if(g&3)break j;break h}b=Z()|0;break c}b=Z()|0;break d}J[c+88>>2]=0;J[c+92>>2]=0;J[c+80>>2]=0;J[c+84>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;m:{if(J[e>>2]){J[699344]=0;ca(5520,c+12|0,b|0,e|0);d=J[699344];J[699344]=0;if((d|0)!=1)break m;break f}J[699344]=0;J[c+12>>2]=0;aa(5145,c+12|0,0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break f}d=J[c+12>>2];n:{if(!d)break n;h=J[d+(J[b+12>>2]&1?12:8)>>2];J[699344]=0;J[c+12>>2]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(f)break n;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b}o:{if(J[e>>2]){J[699344]=0;ca(5520,c+12|0,b|0,e|0);break o}J[699344]=0;J[c+12>>2]=0;aa(5145,c+12|0,0)|0}d=J[699344];J[699344]=0;if((d|0)==1)break f;f=J[c+12>>2];p:{if(!f){d=0;break p}d=J[f+(J[b+12>>2]&1?8:12)>>2];J[699344]=0;J[c+12>> +2]=0;i=J[f+4>>2]-1|0;J[f+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break b;if(i)break p;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break b}J[c+92>>2]=d;J[c+88>>2]=h;J[c+80>>2]=0;J[c+84>>2]=0;q:{if(g&1){r:{if(J[e>>2]){J[699344]=0;ca(5520,c+12|0,b|0,e|0);d=J[699344];J[699344]=0;if((d|0)!=1)break r;break f}J[699344]=0;J[c+12>>2]=0;aa(5145,c+12|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f}f=J[c+12>>2];s:{if(!f){d=0;break s}d=J[f+(J[b+12>>2]&1?8:12)>>2];J[699344]=0;J[c+12>>2]= +0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(h)break s;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break b}t:{if(J[e>>2]){J[699344]=0;ca(5520,c+12|0,b|0,e|0);break t}J[699344]=0;J[c+12>>2]=0;aa(5145,c+12|0,0)|0}e=J[699344];J[699344]=0;if((e|0)==1)break f;e=J[c+12>>2];if(!e){b=0;break q}b=J[e+(J[b+12>>2]&1?12:8)>>2];J[699344]=0;J[c+12>>2]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break q;J[699344]=0;$(5147,e|0);e=J[699344]; +J[699344]=0;if((e|0)!=1)break q}break b}u:{if(J[e>>2]){J[699344]=0;ca(5520,c+12|0,b|0,e|0);d=J[699344];J[699344]=0;if((d|0)!=1)break u;break f}J[699344]=0;J[c+12>>2]=0;aa(5145,c+12|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f}f=J[c+12>>2];v:{if(!f){d=0;break v}d=J[f+(J[b+12>>2]&1?12:8)>>2];J[699344]=0;J[c+12>>2]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(h)break v;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break b}w:{if(J[e>>2]){J[699344]=0; +ca(5520,c+12|0,b|0,e|0);break w}J[699344]=0;J[c+12>>2]=0;aa(5145,c+12|0,0)|0}e=J[699344];J[699344]=0;if((e|0)==1)break f;e=J[c+12>>2];if(!e){b=0;break q}b=J[e+(J[b+12>>2]&1?8:12)>>2];J[699344]=0;J[c+12>>2]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)==1)break b;if(f)break q;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break b}J[c+76>>2]=b;J[c+72>>2]=d;J[c+64>>2]=0;J[c+68>>2]=0;J[699344]=0;e=zA(c+12|0);b=J[699344];J[699344]=0;x:{if((b|0)==1)break x;J[699344]=0;J[e+ +32>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=1;J[e+12>>2]=1;J[e>>2]=0;J[e+4>>2]=0;J[e+24>>2]=1;J[e+28>>2]=1;b=J[699344];J[699344]=0;if((b|0)==1)break x;J[699344]=0;da(5570,e|0,c+80|0);b=J[699344];J[699344]=0;if((b|0)==1)break x;J[699344]=0;da(5571,e|0,c- -64|0);b=J[699344];J[699344]=0;if((b|0)==1)break x;J[699344]=0;yA(e,0-g|0);b=J[699344];J[699344]=0;if((b|0)==1)break x;b=J[J[J[c+104>>2]+8>>2]+36>>2];if(!b)break h;while(1){y:{d=J[b+8>>2];g=J[J[d>>2]+32>>2];J[699344]=0;da(g|0,d|0,e|0);d=J[699344]; +J[699344]=0;if((d|0)==1)break y;b=J[b>>2];if(b)continue;break h}break}break f}break f}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break g;break f}b=J[c+104>>2];if(!b){J[a>>2]=0;break g}J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[a>>2]=J[c+104>>2]}a=J[c+100>>2];J[c+100>>2]=0;z:{if(!a)break z;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(b)break z;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]= +0;if((a|0)==1)break b}a=J[c+104>>2];J[c+104>>2]=0;A:{if(!a)break A;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(b)break A;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[c+108>>2];J[c+108>>2]=0;B:{C:{if(!a)break C;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break B;if(b)break C;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break B}fc=c+112|0;return}break b}b=Z()|0;zc(c+100|0);break d}b= +Z()|0;zc(c+100|0)}zc(c+104|0)}zc(c+108|0);ba(b|0);B()}ea(0)|0;Bc();B()}function Kv(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;f=fc-16|0;fc=f;k=f+4|0;l=fc-32|0;fc=l;c=(R(O[a+608>>3])>.01?544:496)+a|0;m=c;a:{b:{c:{d:{e:{if(!J[c+8>>2]){if(H[a+603|0]<0)break e;c=J[a+596>>2];J[k>>2]=J[a+592>>2];J[k+4>>2]=c;J[k+8>>2]=J[a+600>>2];break d}g=O[c+16>>3];e=O[c+32>>3];o=O[c+24>>3];n=O[c+40>>3];c=l+12|0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2463920;J[c+12>>2]=0;J[c+16>>2]=0;J[699344]=0;ca(6686, +c|0,2452204,-1);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;e=(e-g)*36E3;f:{if(e<4294967296&e>=0){d=~~e>>>0;break f}d=0}da(6687,c|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;ca(6686,c|0,2452252,-1);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;e=(n-o)*36E3;g:{if(e<4294967296&e>=0){d=~~e>>>0;break g}d=0}da(6687,c|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;ca(6686,c|0,2452276,-1);d=J[699344];J[699344]=0;if((d|0)==1)break c;h:{i=J[m+4>>2]; +if((m|0)!=(i|0))while(1){d=J[i+8>>2];if(d>>>0<3){J[699344]=0;ca(6686,c|0,J[(d<<2)+2463672>>2],-1);d=J[699344];J[699344]=0;if((d|0)==1)break h}i:{h=J[i+16>>2];p=i+12|0;if((h|0)==(p|0))break i;while(1){e=O[h+16>>3];n=O[h+8>>3];J[699344]=0;ca(6686,c|0,2452428,-1);d=J[699344];J[699344]=0;j=(d|0)==1;e=(e-o)*36E3;j:{if(R(e)<2147483648){d=~~e;break j}d=-2147483648}k:{if(j)break k;J[699344]=0;e=(n-g)*36E3;l:{if(R(e)<2147483648){j=~~e;break l}j=-2147483648}da(6688,c|0,j|0);j=J[699344];J[699344]=0;if((j|0)== +1)break k;J[699344]=0;ca(6686,c|0,2452468,-1);j=J[699344];J[699344]=0;if((j|0)==1)break k;J[699344]=0;da(6688,c|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break k;J[699344]=0;ca(6686,c|0,2452492,-1);d=J[699344];J[699344]=0;if((d|0)==1)break k;h=J[h+4>>2];if((p|0)==(h|0))break i;continue}break}h=Z()|0;break b}d=J[i+8>>2];if(d>>>0<4){J[699344]=0;ca(6686,c|0,J[(d<<2)+2463684>>2],-1);d=J[699344];J[699344]=0;if((d|0)==1)break h}i=J[i+4>>2];if((m|0)!=(i|0))continue;break}J[699344]=0;ca(6686,c|0,2452704, +-1);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;da(3513,k|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;J[c+16>>2]=0;J[c+12>>2]=J[c+4>>2];d=J[699344];J[699344]=0;if((d|0)==1){h=Z()|0;if(H[k+11|0]>=0)break b;uc(J[k>>2]);break b}uj(c);break d}h=Z()|0;break b}Ve(k,J[a+592>>2],J[a+596>>2])}fc=l+32|0;break a}h=Z()|0}uj(c);ba(h|0);B()}c=K[f+15|0];m:{n:{if(!(c<<24>>24<0?J[f+8>>2]:c)){J[699344]=0;ca(6686,b|0,2459564,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0; +ca(6686,b|0,2459664,-1);d=J[699344];J[699344]=0;c=2459708;if((d|0)!=1)break n;break m}J[699344]=0;ca(6686,b|0,2459764,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2459664,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2459816,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2459860,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2459904,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686, +b|0,2459952,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2460088,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;da(6657,b|0,f+4|0);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2460136,-1);d=J[699344];J[699344]=0;c=2460188;if((d|0)==1)break m}J[699344]=0;ca(6686,b|0,c|0,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;c=2460244;o:{p:{if(!K[a+620|0]){if(J[a+56>>2]==3)break p;J[699344]=0;ca(6686,b|0,2460292,-1);c=J[699344];J[699344]=0;if((c| +0)==1)break m;J[699344]=0;ca(6686,b|0,2460348,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;c=J[a+76>>2];J[699344]=0;J[f>>2]=c>>>16&255|(c<<16&16711680|c&65280);da(6690,b|0,f|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;c=2452492;if(J[a+84>>2]!=255){J[699344]=0;ca(6686,b|0,2460416,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;c=J[a+84>>2];J[699344]=0;g=+(c|0)/255*100*1E3;q:{if(R(g)<2147483648){c=~~g;break q}c=-2147483648}da(6688,b|0,c|0);d=J[699344];J[699344]=0;c=2460484;if((d|0)==1)break m}J[699344]= +0;ca(6686,b|0,c|0,-1);d=J[699344];J[699344]=0;c=2460548;if((d|0)==1)break m}J[699344]=0;ca(6686,b|0,c|0,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m}r:{if(K[a+621|0]){J[699344]=0;ca(6686,b|0,2460608,-1);c=J[699344];J[699344]=0;a=2460244;break r}J[699344]=0;ca(6686,b|0,2460668,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;g=O[a+448>>3];J[699344]=0;g=g*36E3;s:{if(R(g)<2147483648){c=~~g;break s}c=-2147483648}da(6688,b|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2452276, +-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2460292,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,2460348,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;c=J[a+436>>2];J[699344]=0;J[f>>2]=c>>>16&255|(c<<16&16711680|c&65280);da(6690,b|0,f|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;c=2452492;if(J[a+440>>2]!=255){J[699344]=0;ca(6686,b|0,2460416,-1);c=J[699344];J[699344]=0;if((c|0)==1)break m;a=J[a+440>>2];J[699344]=0;g=+(a|0)/255*100;t:{if(R(g)< +2147483648){a=~~g;break t}a=-2147483648}da(6688,b|0,a|0);a=J[699344];J[699344]=0;c=2460708;if((a|0)==1)break m}J[699344]=0;ca(6686,b|0,c|0,-1);c=J[699344];J[699344]=0;a=2460548}if((c|0)==1)break m;J[699344]=0;ca(6686,b|0,a|0,-1);a=J[699344];J[699344]=0;if((a|0)==1)break m;J[699344]=0;ca(6686,b|0,2460636,-1);a=J[699344];J[699344]=0;if((a|0)==1)break m;if(H[f+15|0]<0)uc(J[f+4>>2]);fc=f+16|0;return}}a=Z()|0;if(H[f+15|0]<0)uc(J[f+4>>2]);ba(a|0);B()}function tra(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h= +0,i=0,j=0;d=fc+-64|0;fc=d;if(!K[a+32|0])Sp(a,0);a:{b=J[a+20>>2];if(J[b+4>>2]>=2){f=vc(52);J[699344]=0;b=aa(5437,f|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[b+4>>2]=J[b+4>>2]+1;f=J[a+20>>2];b:{if(!f)break b;c=J[f+4>>2]-1|0;J[f+4>>2]=c;if(c)break b;kc[J[J[f>>2]+4>>2]](f)}J[a+20>>2]=b}UA(b,0,-1);b=J[a+28>>2];if(J[b+4>>2]>=2){f=vc(52);J[699344]=0;b=aa(5437,f|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[b+4>>2]=J[b+4>>2]+1;f=J[a+28>>2];c:{if(!f)break c;c=J[f+4>>2]-1|0;J[f+4>>2]= +c;if(c)break c;kc[J[J[f>>2]+4>>2]](f)}J[a+28>>2]=b}i=a+16|0;j=a+24|0;UA(b,0,-1);b=J[a+8>>2];f=J[(b?b+12|0:2743576)>>2];d:{e:{f:{g:{h:{i:{while(1){b=K[f|0];if(!b)break i;f=f+1|0;if((b|0)!=63)continue;break}if(!K[f|0])break i;while(1){J[d+52>>2]=0;J[d+56>>2]=J[685894];j:{k:{while(1){l:{b=K[f|0];if(b){if((b|0)!=59&(b|0)!=38)break l;f=f+1|0}c=J[d+52>>2];if(!c|!J[c+8>>2])break j;e=J[c+12>>2];b=e;while(1){g=K[b|0];if(!g|(g|0)==61)break k;b=b+1|0;continue}}J[699344]=0;aa(5315,d+52|0,b<<24>>24)|0;b=J[699344]; +J[699344]=0;f=f+1|0;if((b|0)!=1)continue;break}f=Z()|0;break e}J[d+44>>2]=0;g=J[685894];J[d+48>>2]=g;J[d+40>>2]=g;J[d+36>>2]=0;m:{n:{if(K[b|0]){J[699344]=0;c=ga(5339,d+28|0,e|0,b-e|0)|0;e=J[699344];J[699344]=0;o:{if((e|0)!=1){e=J[c>>2];p:{if(e){g=J[J[e>>2]+28>>2];J[699344]=0;ca(g|0,d+12|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break p;f=Z()|0;wc(c);break f}J[d+12>>2]=0}J[699344]=0;aa(5153,d+44|0,d+12|0)|0;e=J[699344];J[699344]=0;q:{if((e|0)!=1){e=J[d+12>>2];J[d+12>>2]=0;if(!e)break q;J[699344]= +0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break q;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break q}break d}f=Z()|0;zc(d+12|0);wc(c);break f}e=J[d+44>>2];J[d+48>>2]=J[(e?e+12|0:2743576)>>2];wc(c);c=0;e=0;g=J[d+52>>2];if(g)e=J[g+8>>2];g=J[d+44>>2];if(g)c=J[g+8>>2];J[699344]=0;b=ga(5339,d+20|0,b+1|0,(c^-1)+e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;c=J[b>>2];r:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+12|0,c|0,1);c=J[699344];J[699344]=0;if((c| +0)!=1)break r;f=Z()|0;wc(b);break f}J[d+12>>2]=0}J[699344]=0;aa(5153,d+36|0,d+12|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break n;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break n;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break n}break d}f=Z()|0;zc(d+12|0);wc(b);break f}f=Z()|0;break f}f=Z()|0;break f}b=J[J[c>>2]+28>>2];J[699344]=0;e=b;b=d+12|0;ca(e|0,b|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1){J[699344]= +0;aa(5153,d+44|0,b|0)|0;b=J[699344];J[699344]=0;s:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break s;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break s;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break s}break d}f=Z()|0;zc(d+12|0);break f}b=J[d+44>>2];J[d+48>>2]=J[(b?b+12|0:2743576)>>2];break m}f=Z()|0;break f}c=J[d+36>>2];J[d+40>>2]=J[(c?c+12|0:2743576)>>2];wc(b)}b=J[a+20>>2];e=J[b+20>>2];g=J[b+24>>2];t:{u:{v:{w:{if(J[b+4>>2]>=2){J[699344]= +0;c=_(4,52)|0;h=J[699344];J[699344]=0;if((h|0)==1)break w;J[699344]=0;b=aa(5437,c|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break h;J[b+4>>2]=J[b+4>>2]+1;c=J[a+20>>2];x:{if(!c)break x;h=J[c+4>>2]-1|0;J[c+4>>2]=h;if(h)break x;kc[J[J[c>>2]+4>>2]](c)}J[a+20>>2]=b}J[699344]=0;e=(g-e|0)+1|0;ca(5212,b|0,0,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break w;b=J[a+28>>2];if(J[b+4>>2]>=2){J[699344]=0;c=_(4,52)|0;g=J[699344];J[699344]=0;if((g|0)==1)break w;J[699344]=0;b=aa(5437,c|0,b|0)|0;g=J[699344];J[699344]= +0;if((g|0)==1)break g;J[b+4>>2]=J[b+4>>2]+1;c=J[a+28>>2];y:{if(!c)break y;g=J[c+4>>2]-1|0;J[c+4>>2]=g;if(g)break y;kc[J[J[c>>2]+4>>2]](c)}J[a+28>>2]=b}J[699344]=0;ca(5212,b|0,0,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break w;J[699344]=0;da(6239,d+12|0,d+44|0);b=J[699344];J[699344]=0;if((b|0)==1)break v;J[699344]=0;c=aa(6243,i|0,e|0)|0;b=J[699344];J[699344]=0;z:{A:{B:{C:{if((b|0)!=1){b=J[d+12>>2];if(!b)break C;g=J[J[b>>2]+28>>2];J[699344]=0;ca(g|0,d+60|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break B}f= +Z()|0;break A}J[d+60>>2]=0}J[699344]=0;aa(5153,c|0,d+60|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break z;J[699344]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break z;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break z}break d}f=Z()|0;zc(d+60|0)}wc(d+12|0);break f}b=J[c>>2];J[c+4>>2]=J[(b?b+12|0:2743576)>>2];b=d+12|0;wc(b);J[699344]=0;da(6239,b|0,d+36|0);b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;c=aa(6243,j| +0,e|0)|0;b=J[699344];J[699344]=0;D:{E:{F:{if((b|0)!=1){b=J[d+12>>2];if(!b)break F;e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d+60|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break E}f=Z()|0;break D}J[d+60>>2]=0}J[699344]=0;aa(5153,c|0,d+60|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break t;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break t;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break t}break d}f=Z()|0;zc(d+60|0)}wc(d+ +12|0);break f}f=Z()|0;break f}f=Z()|0;break f}f=Z()|0;break f}b=J[c>>2];J[c+4>>2]=J[(b?b+12|0:2743576)>>2];wc(d+12|0);wc(d+36|0);wc(d+44|0)}wc(d+52|0);if(K[f|0])continue;break}}fc=d- -64|0;return}f=Z()|0;uc(c);break f}f=Z()|0;uc(c)}wc(d+36|0);wc(d+44|0)}wc(d+52|0);ba(f|0);B()}ea(0)|0;Bc();B()}a=Z()|0;uc(f);ba(a|0);B()}function _4(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;f=fc-160|0;fc=f;s=tM(a);o=uM(a);a:{b:{c:{if(!e){if((o|0)<=0)break c;while(1){n=Ox(a,j);Zk(f+148| +0,a,j,n?3:1);e=J[f+148>>2];d:{e:{f:{l=J[c>>2];g=J[c+4>>2];if((l|0)==(g|0))break f;p=(n?32:0)+e|0;k=O[p>>3];q=(l+P((g-l|0)/72|0,72)|0)-72|0;h=k-O[q>>3];m=h*h;h=O[p+8>>3];i=h-O[q+8>>3];g:{if(!(Y(m+i*i)>.01))break g;m=k;k=O[l>>3];i=m-k;t=i*i;m=h;h=O[l+8>>3];i=m-h;if(!(Y(t+i*i)<=.01))break f;if(!n|O[l+16>>3]!=0|(O[l+24>>3]!=0|O[l+32>>3]!=0))break g;if(O[l+40>>3]!=0)break g;H[l+48|0]=1;i=O[e>>3];O[l+24>>3]=O[e+8>>3]-h;O[l+16>>3]=i-k;i=O[e+16>>3];O[l+40>>3]=O[e+24>>3]-h;O[l+32>>3]=i-k}g=n?j+2|0:j;break e}J[f+ +40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+68>>2]=0;J[f+60>>2]=0;J[f+64>>2]=0;J[f+56>>2]=b;J[f+52>>2]=r;H[f+50|0]=s;H[f+49|0]=0;H[f+48|0]=n;h:{if(n){k=O[e+32>>3];O[f>>3]=k;h=O[e+40>>3];O[f+8>>3]=h;i=O[e>>3];O[f+24>>3]=O[e+8>>3]-h;O[f+16>>3]=i-k;i=O[e+16>>3];O[f+40>>3]=O[e+24>>3]-h;O[f+32>>3]=i-k;break h}k=O[e>>3];O[f>>3]=k;h=O[e+8>>3];O[f+8>>3]=h}i:{j:{if(g>>>0>2]){O[g+8>>3]=h;O[g>>3]= +k;O[g+16>>3]=O[f+16>>3];O[g+24>>3]=O[f+24>>3];O[g+32>>3]=O[f+32>>3];O[g+40>>3]=O[f+40>>3];e=J[f+52>>2];J[g+48>>2]=J[f+48>>2];J[g+52>>2]=e;e=J[f+60>>2];J[g+56>>2]=J[f+56>>2];J[g+60>>2]=e;J[g+64>>2]=J[f+64>>2];J[g+68>>2]=J[f+68>>2];J[c+4>>2]=g+72;break j}J[699344]=0;da(2503,c|0,f|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[f+68>>2];if(!e)break j;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break j;kc[J[J[e>>2]+8>>2]](e);Gc(e)}g=n?j+2|0:j;r=r+1|0;e=J[f+148>>2];if(e)break e;break d}e=Z()|0;bn(f);g=J[f+148>> +2];if(!g)break b;break a}J[f+152>>2]=e;uc(e)}j=g+1|0;if((o|0)>(j|0))continue;break}break c}if((o|0)<=0)break c;while(1){l=n&255;o=(l?-3:-1)+o|0;Zk(f+148|0,a,o,l?3:1);e=J[f+148>>2];k:{if(!l)break k;j=J[f+152>>2];if((j|0)==(e|0))break k;g=j-16|0;if(g>>>0<=e>>>0)break k;while(1){k=O[e>>3];O[e>>3]=O[g>>3];h=O[e+8>>3];j=j-8|0;O[e+8>>3]=O[j>>3];O[g>>3]=k;O[j>>3]=h;j=g;e=e+16|0;g=g-16|0;if(e>>>0>>0)continue;break}e=J[f+148>>2]}l:{m:{n:{j=J[c>>2];g=J[c+4>>2];if((j|0)==(g|0))break n;p=(((l|0)!=0)<<5)+e| +0;k=O[p>>3];q=(j+P((g-j|0)/72|0,72)|0)-72|0;h=k-O[q>>3];m=h*h;h=O[p+8>>3];i=h-O[q+8>>3];if(!(Y(m+i*i)>.01))break m;m=k;k=O[j>>3];i=m-k;t=i*i;m=h;h=O[j+8>>3];i=m-h;if(!(Y(t+i*i)<=.01))break n;if(!l|O[j+16>>3]!=0|(O[j+24>>3]!=0|O[j+32>>3]!=0))break m;if(O[j+40>>3]!=0)break m;H[j+48|0]=1;i=O[e>>3];O[j+24>>3]=O[e+8>>3]-h;O[j+16>>3]=i-k;i=O[e+16>>3];O[j+40>>3]=O[e+24>>3]-h;O[j+32>>3]=i-k;break m}J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+ +8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+68>>2]=0;J[f+60>>2]=0;J[f+64>>2]=0;J[f+56>>2]=b;J[f+52>>2]=r;H[f+50|0]=s;H[f+49|0]=0;H[f+48|0]=n;o:{if(l){k=O[e+32>>3];O[f>>3]=k;h=O[e+40>>3];O[f+8>>3]=h;i=O[e>>3];O[f+24>>3]=O[e+8>>3]-h;O[f+16>>3]=i-k;i=O[e+16>>3];O[f+40>>3]=O[e+24>>3]-h;O[f+32>>3]=i-k;break o}k=O[e>>3];O[f>>3]=k;h=O[e+8>>3];O[f+8>>3]=h}p:{if(g>>>0>2]){O[g+8>>3]=h;O[g>>3]=k;O[g+16>>3]=O[f+16>>3];O[g+24>>3]=O[f+24>>3];O[g+32>>3]=O[f+32>>3];O[g+40>>3]=O[f+40>>3];e=J[f+52>>2];J[g+ +48>>2]=J[f+48>>2];J[g+52>>2]=e;e=J[f+60>>2];J[g+56>>2]=J[f+56>>2];J[g+60>>2]=e;J[g+64>>2]=J[f+64>>2];J[g+68>>2]=J[f+68>>2];J[c+4>>2]=g+72;break p}J[699344]=0;da(2503,c|0,f|0);e=J[699344];J[699344]=0;if((e|0)==1)break l;e=J[f+68>>2];if(!e)break p;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break p;kc[J[J[e>>2]+8>>2]](e);Gc(e)}r=r+1|0}n=Ox(a,o);e=J[f+148>>2];if(e){J[f+152>>2]=e;uc(e)}if((o|0)>0)continue;break c}break}e=Z()|0;bn(f);g=J[f+148>>2];if(!g)break b;break a}q:{e=((J[c+4>>2]-J[c>>2]|0)/72|0)-(s^1)|0;if((e| +0)>0){j=e-1|0;g=0;while(1){l=J[c>>2];a=l+P(g,72)|0;O[f>>3]=O[a>>3];O[f+8>>3]=O[a+8>>3];O[f+16>>3]=O[a+16>>3];O[f+24>>3]=O[a+24>>3];O[f+32>>3]=O[a+32>>3];O[f+40>>3]=O[a+40>>3];b=J[a+60>>2];J[f+56>>2]=J[a+56>>2];J[f+60>>2]=b;b=J[a+52>>2];J[f+48>>2]=J[a+48>>2];J[f+52>>2]=b;J[f+64>>2]=J[a+64>>2];b=J[a+68>>2];J[f+68>>2]=b;a=a+72|0;a=s?(g|0)==(j|0)?l:a:a;if(b)J[b+4>>2]=J[b+4>>2]+1;O[f+72>>3]=O[a>>3];O[f+80>>3]=O[a+8>>3];O[f+88>>3]=O[a+16>>3];O[f+96>>3]=O[a+24>>3];O[f+104>>3]=O[a+32>>3];O[f+112>>3]=O[a+ +40>>3];b=J[a+60>>2];J[f+128>>2]=J[a+56>>2];J[f+132>>2]=b;b=J[a+52>>2];J[f+120>>2]=J[a+48>>2];J[f+124>>2]=b;J[f+136>>2]=J[a+64>>2];a=J[a+68>>2];J[f+140>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;a=J[d+4>>2];r:{if(a>>>0>2]){O[a>>3]=O[f>>3];O[a+8>>3]=O[f+8>>3];O[a+16>>3]=O[f+16>>3];O[a+24>>3]=O[f+24>>3];O[a+32>>3]=O[f+32>>3];O[a+40>>3]=O[f+40>>3];b=J[f+52>>2];J[a+48>>2]=J[f+48>>2];J[a+52>>2]=b;b=J[f+60>>2];J[a+56>>2]=J[f+56>>2];J[a+60>>2]=b;J[a+64>>2]=J[f+64>>2];J[a+68>>2]=J[f+68>>2];J[f+64>>2]=0;J[f+68>> +2]=0;O[a+72>>3]=O[f+72>>3];O[a+80>>3]=O[f+80>>3];O[a+88>>3]=O[f+88>>3];O[a+96>>3]=O[f+96>>3];O[a+104>>3]=O[f+104>>3];O[a+112>>3]=O[f+112>>3];b=J[f+124>>2];J[a+120>>2]=J[f+120>>2];J[a+124>>2]=b;b=J[f+132>>2];J[a+128>>2]=J[f+128>>2];J[a+132>>2]=b;J[a+136>>2]=J[f+136>>2];J[a+140>>2]=J[f+140>>2];J[f+136>>2]=0;J[f+140>>2]=0;J[d+4>>2]=a+144;break r}J[699344]=0;da(2504,d|0,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break q;a=J[f+140>>2];if(!a)break r;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break r;kc[J[J[a>>2]+8>> +2]](a);Gc(a)}a=J[f+68>>2];s:{if(!a)break s;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break s;kc[J[J[a>>2]+8>>2]](a);Gc(a)}g=g+1|0;if((e|0)!=(g|0))continue;break}}fc=f+160|0;return}e=Z()|0;nh(f)}ba(e|0);B()}J[f+152>>2]=g;uc(g);ba(e|0);B()}function xL(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;c=fc-272|0;fc=c;J[c+60>>2]=0;J[c+64>>2]=0;a:{if(!b){N2(c+24|0);break a}J[c- -64>>2]=J[b+40>>2];g=J[b+36>>2];J[c+56>>2]=J[b+32>>2];J[c+60>>2]=g;g=J[b+28>>2];J[c+48>>2]=J[b+24>>2]; +J[c+52>>2]=g;g=J[b+20>>2];J[c+40>>2]=J[b+16>>2];J[c+44>>2]=g;g=J[b+12>>2];J[c+32>>2]=J[b+8>>2];J[c+36>>2]=g;g=J[b+4>>2];J[c+24>>2]=J[b>>2];J[c+28>>2]=g}J[c+68>>2]=0;g=c+24|0;d=J[g+28>>2];b=a;e=J[693350]&1?1:5;a=J[g>>2];if(!a)a=J[g+32>>2];f=kc[a|0](d,b,e)|0;J[c+72>>2]=f;b:{if(!f)break b;c:{d:{e:{f:{if(Aj(g,f,0,0,2))break f;g=vq(g,f);a=jc;i=a;h=Dc(1028);if(!h)break f;g:{h:{if(!a&g>>>0<5)break h;b=!a&g>>>0>=65535|(a|0)!=0;m=b?65535:g;o=b?0:a;a=4;e=0;while(1){n=c+24|0;a=a+1024|0;e=a>>>0<1024?e+1|0:e; +b=n;l=(e|0)==(o|0)&a>>>0>>0|e>>>0>>0;d=l;a=d?a:m;n=g-a|0;e=d?e:o;d=e;j=i-(d+(a>>>0>g>>>0)|0)|0;if(Aj(b,f,n,j,0))break h;d=!d&a>>>0>=1028|d?1028:a;if((kc[J[c+28>>2]](J[c+52>>2],f,h,d)|0)!=(d|0))break h;i:{if(d>>>0<4)break i;b=d-3|0;d=d-4|0;while(1){j:{k=b;b=d;d=h+b|0;if(!(K[d|0]!=80|K[h+k|0]!=75|K[d+2|0]!=6))if(K[d+3|0]==7)break j;d=b-1|0;if((b|0)>0)continue;break i}break}d=j;k=b;b=b+n|0;d=k>>>0>b>>>0?d+1|0:d;if(b|d)break g}if(l)continue;break}}uc(h);break f}uc(h);a=c+24|0;if(Aj(a,f,b,d,0))break f; +if(uh(a,f,c))break f;if(uh(a,f,c)|J[c>>2])break f;d=c+264|0;if(_o(a,f,d))break f;if(uh(a,f,c)|J[c>>2]!=1)break f;b=J[c+268>>2];m=b;g=J[c+264>>2];if(Aj(a,f,g,b,0))break f;if(!(b|g)|(uh(a,f,c)|J[c>>2]!=101075792))break f;J[c+256>>2]=1;e=Aj(a,J[c+72>>2],g,b,0);f=uh(a,J[c+72>>2],c+20|0);i=_o(a,J[c+72>>2],c);a=-1;b=J[c+72>>2];k:{if((kc[J[c+28>>2]](J[c+52>>2],b,d,1)|0)!=1)if(kc[J[c+48>>2]](J[c+52>>2],b)|0)break k;if((kc[J[c+28>>2]](J[c+52>>2],b,c+264|0,1)|0)!=1)if(kc[J[c+48>>2]](J[c+52>>2],b)|0)break k; +a=e|(f|i)?-1:0}d=J[c+72>>2];l:{if((kc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)!=1){b=-1;if(kc[J[c+48>>2]](J[c+52>>2],d)|0)break l}if((kc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)!=1){b=-1;if(kc[J[c+48>>2]](J[c+52>>2],d)|0)break l}b=a}a=c+24|0;d=uh(a,J[c+72>>2],c+16|0);e=uh(a,J[c+72>>2],c+12|0);f=_o(a,J[c+72>>2],c+80|0);i=_o(a,J[c+72>>2],c+264|0);j=J[c+80>>2];n=J[c+84>>2];k=J[c+264>>2];h=J[c+268>>2];o=J[c+16>>2];l=J[c+12>>2];p=_o(a,J[c+72>>2],c+136|0);a=_o(a,J[c+72>>2],c+144|0);J[c+88>>2]=0;d=a|p?-1:(j| +0)!=(k|0)|(h|0)!=(n|0)?-103:l|o?-103:f|i|(d|e)?-1:b;break e}g=0;m=0;b=c+24|0;i=J[c+72>>2];a=-1;m:{if(Aj(b,i,0,0,2))break m;f=vq(b,i);b=jc;n=b;l=Dc(1028);a=-1;if(!l)break m;n:{o:{if(!b&f>>>0<5)break o;a=!b&f>>>0>=65535|(b|0)!=0;j=a?65535:f;p=a?0:b;a=4;e=0;while(1){h=c+24|0;a=a+1024|0;e=a>>>0<1024?e+1|0:e;b=h;r=(e|0)==(p|0)&a>>>0>>0|e>>>0

      >>0;d=r;a=d?a:j;h=f-a|0;e=d?e:p;d=e;k=n-(d+(a>>>0>f>>>0)|0)|0;if(Aj(b,i,h,k,0))break o;d=!d&a>>>0>=1028|d?1028:a;if((kc[J[c+28>>2]](J[c+52>>2],i,l,d)|0)!=(d| +0))break o;p:{if(d>>>0<4)break p;b=d-3|0;d=d-4|0;while(1){q:{o=b;b=d;d=l+b|0;if(!(K[d|0]!=80|K[l+o|0]!=75|K[d+2|0]!=5))if(K[d+3|0]==6)break q;d=b-1|0;if((b|0)>0)continue;break p}break}d=k;k=b;b=b+h|0;d=k>>>0>b>>>0?d+1|0:d;if(b|d)break n}if(r)continue;break}}uc(l);a=-1;break m}uc(l);g=b;m=d;a=0}d=0;J[c+256>>2]=0;b=c+24|0;e=Aj(b,J[c+72>>2],g,m,0);f=uh(b,J[c+72>>2],c+20|0);r:{s:{b=J[c+72>>2];if((kc[J[c+28>>2]](J[c+52>>2],b,c+264|0,1)|0)==1){d=K[c+264|0];break s}if(!(kc[J[c+48>>2]](J[c+52>>2],b)|0))break s; +J[c+16>>2]=0;a=-1;break r}a=e|f?-1:a;if((kc[J[c+28>>2]](J[c+52>>2],b,c+264|0,1)|0)==1){q=K[c+264|0]<<8|d;J[c+16>>2]=q;break r}b=kc[J[c+48>>2]](J[c+52>>2],b)|0;q=b?0:P(d,257);J[c+16>>2]=q;a=b?-1:a}f=J[c+72>>2];t:{u:{if((kc[J[c+28>>2]](J[c+52>>2],f,c+264|0,1)|0)==1){d=K[c+264|0];break u}e=-1;d=0;b=0;if(kc[J[c+48>>2]](J[c+52>>2],f)|0)break t}if((kc[J[c+28>>2]](J[c+52>>2],f,c+264|0,1)|0)==1){e=a;b=K[c+264|0]<<8|d;break t}b=a;a=kc[J[c+48>>2]](J[c+52>>2],f)|0;e=a?-1:b;b=a?0:P(d,257)}f=b;d=J[c+72>>2];v:{w:{if((kc[J[c+ +28>>2]](J[c+52>>2],d,c+264|0,1)|0)==1){b=K[c+264|0];break w}a=-1;b=0;if(kc[J[c+48>>2]](J[c+52>>2],d)|0)break v}if((kc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)==1){a=e;b=K[c+264|0]<<8|b;break v}d=kc[J[c+48>>2]](J[c+52>>2],d)|0;a=d?-1:e;b=d?0:P(b,257)}J[c+80>>2]=b;J[c+84>>2]=0;x:{y:{d=J[c+72>>2];z:{if((kc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)==1){b=K[c+264|0];break z}if(kc[J[c+48>>2]](J[c+52>>2],d)|0)break y;b=0}if((kc[J[c+28>>2]](J[c+52>>2],d,c+264|0,1)|0)==1){b=b|K[c+264|0]<<8;J[c+20>>2]=b;break x}d= +kc[J[c+48>>2]](J[c+52>>2],d)|0;b=d?0:P(b,257);J[c+20>>2]=b;a=d?-1:a;break x}b=0;J[c+20>>2]=0;a=-1}i=J[c+80>>2];n=J[c+84>>2];k=uh(c+24|0,J[c+72>>2],c+20|0);J[c+136>>2]=J[c+20>>2];J[c+140>>2]=0;h=uh(c+24|0,J[c+72>>2],c+20|0);J[c+144>>2]=J[c+20>>2];J[c+148>>2]=0;j=J[c+72>>2];A:{if((kc[J[c+28>>2]](J[c+52>>2],j,c+264|0,1)|0)==1){e=K[c+264|0];break A}if(kc[J[c+48>>2]](J[c+52>>2],j)|0)break d;e=0}d=h|k?-1:(b|0)!=(i|0)|n?-103:f|q?-103:a;if((kc[J[c+28>>2]](J[c+52>>2],j,c+264|0,1)|0)==1){J[c+88>>2]=e|K[c+264| +0]<<8;break e}a=kc[J[c+48>>2]](J[c+52>>2],j)|0;J[c+88>>2]=a?0:P(e,257);if(a)break c}e=J[c+144>>2];b=e+J[c+136>>2]|0;a=J[c+140>>2]+J[c+148>>2]|0;a=b>>>0>>0?a+1|0:a;e=b>>>0>g>>>0;if(d|((a|0)==(m|0)&e|a>>>0>m>>>0))break c;J[c+248>>2]=0;J[c+252>>2]=0;J[c+128>>2]=g;J[c+132>>2]=m;J[c+96>>2]=g-b;J[c+100>>2]=m-(a+e|0);a=Dc(240);if(!a)break b;s=xc(a,c+24|0,240);a=s;J[a+80>>2]=0;J[a+84>>2]=0;b=J[a+124>>2];J[a+88>>2]=J[a+120>>2];J[a+92>>2]=b;t=a,u=!Xr(a,a+128|0,a+216|0,0,0),J[t+96>>2]=u;J[a+100>>2]=0;break b}J[c+ +88>>2]=0}kc[J[c+44>>2]](J[c+52>>2],J[c+72>>2])|0}fc=c+272|0;return s}function X1a(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0;f=fc-32|0;fc=f;x=J[a+12>>2];o=J[a+8>>2];u=J[a+20>>2];p=J[a+16>>2];r=J[a+4>>2];J[f+24>>2]=J[a+24>>2];m=J[r+8>>2];v=m+54|0;h=J[r+56>>2];a:{if(!(!!h&p>>>0>>0)){d=0;break a}d=1}while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!d){if(o>>>0>=x>>>0)break g; +if(p>>>0>=u>>>0)break f;c=o+2|0;h=L[o>>1];if((h&63488)!=55296){k=g;break i}if(h&1024)break k;k=g;o=c;d=1;continue}if(o>>>0>=x>>>0)break h;c=L[o>>1];if((c&64512)==56320)break j;J[b>>2]=12;J[r+56>>2]=h;break c}J[b>>2]=12;J[r+56>>2]=h;o=c;break c}J[r+56>>2]=0;h=(c+(h<<10)|0)-56613888|0;c=o+2|0}o=c;if(!(!(1<31)){J[b>>2]=12;J[r+56>>2]=h;break c}l:{m:{if(!k){c=J[m+64>>2];j=L[(c<<1)+744396>>1];d=0;if(c-3>>>0<=1){H[f+6|0]=8;d=1}g=f+6|0;c=K[m+54|0];H[g+d|0]=c;k=d+1|0;e=zEb(-2,c)&j&-257; +c=K[m+56|0];if(c){H[k+g|0]=c;k=d|2;e=zEb(-2,c)&e}d=e&65535;if(e&1){H[(f+6|0)+k|0]=0;k=k+1|0;d=e&65534;e=d}if(d&8){H[(f+6|0)+k|0]=3;k=k+1|0;d=e&65527;e=d}if(d&2){H[(f+6|0)+k|0]=1;k=k+1|0;d=e&65533;e=d}if(d&16){H[(f+6|0)+k|0]=4;k=k+1|0;d=e&65519;e=d}if(d&4){H[(f+6|0)+k|0]=2;k=k+1|0;d=e&65531;e=d}if(d&32){H[(f+6|0)+k|0]=5;k=k+1|0;d=e&65503;e=d}if(d&64){H[(f+6|0)+k|0]=6;k=k+1|0;d=e&65471;e=d}if(d&128){H[(f+6|0)+k|0]=7;d=e&65407;k=k+1|0}if(!(d&256))break m;H[(f+6|0)+k|0]=8;k=k+1|0;break m}if((k|0)<=0)break l}F= +h-128|0;G=h-65344|0;I=h-65216|0;y=h>>10;z=h>>>4&63;c=h-65377|0;M=(c<<1)+746064|0;w=h&15;B=1<<(w|16);s=K[r+35|0];e=0;N=(h|0)<128;O=h-160>>>0<96;A=(h|0)<65536;Q=h>>>0>127;R=(h|0)==92;S=(h|0)==126;T=(h|0)==165;U=(h|0)==8254;C=h-57344>>>0<6400;D=h-983040>>>0>131071;E=c>>>0>62;q=0;c=0;d=0;while(1){n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{j=H[(f+6|0)+d|0];switch(j|0){case 2:break t;case 4:break u;case 3:break v;case 8:break w;case 1:break x;case 0:break y;default:break s}}if(!N)break n;break e}if(!O)break n; +q=2;l=F;c=j;e=1;break d}if(E)break n;z:switch(J[m+64>>2]-3|0){case 0:H[m+55|0]=j;q=1;l=G;c=j;e=1;break d;case 1:break z;default:break n}c=K[v|0];c=(c&252)==4?3:c;q=0;l=I;e=1;break d}if(!Q){if(R)break n;if(!S)break e;break n}if(!T)break r;l=92;break q}A:{B:{C:{D:{E:{F:{g=J[m+16>>2];if(!(A|H[g+201|0]&1))break F;i=J[g+52>>2];t=J[(i+(z<<2)|0)+(L[i+(y<<1)>>1]<<2)>>2];i=L[J[g+188>>2]+((t<<4&1048560|w)<<1)>>1];n=i>>>0<256;if(t&B){J[f+28>>2]=i;g=2;if(n)break E;break A}if(!i|D&!(s|C))break F;n=n?-1:-2;J[f+ +28>>2]=i;break C}i=J[g+224>>2];if(i)break D}i=!e;break o}g=2;n=wu(i,h,f+28|0,s<<24>>24);if((n|0)==2)break B}g=-2;i=!e;if(e|(n|0)!=-2)break o}i=J[f+28>>2]}if(i>>>0>61436)break n;c=i&65280;c=(c>>>0<40705?-28672:-45056)+c<<1;t=c-256|0;e=c;c=i&255;l=c>>>0<159;l=(l?t:e)|c+(l?c>>>0<127?-31:-32:-126);s=0;c=j;q=0;e=g;break n}g=J[m+8>>2];if(!(A|H[g+201|0]&1))break n;i=1;t=J[g+188>>2]+(w<<1)|0;g=J[g+52>>2];g=L[t+(L[(g+(z<<1)|0)+(L[g+(y<<1)>>1]<<1)>>1]<<1)>>1];n=g>>>0>3839;if(n)break p;if(s){i=-1;if(g>>>0<= +2047)break n;break p}i=-1;if(g>>>0>=3072)break p;s=0;break n}G:{H:{I:{g=J[(j<<2)+m>>2];if(!(A|H[g+201|0]&1))break I;i=J[g+52>>2];t=J[(i+(z<<2)|0)+(L[i+(y<<1)>>1]<<2)>>2];i=L[J[g+188>>2]+((t<<4&1048560|w)<<1)>>1];n=i>>>0<256;if(t&B){J[f+28>>2]=i;g=2;if(!n)break G;break n}if(!i|D&!(s|C))break I;n=n?-1:-2;J[f+28>>2]=i;break H}i=J[g+224>>2];if(!i)break n;g=2;n=wu(i,h,f+28|0,s<<24>>24);if((n|0)==2)break G}g=-2;if(e|(n|0)!=-2)break n}i=J[f+28>>2];J:{if((j|0)!=7){l=i;s=0;c=j;break J}if((i+24159&65534)>>> +0>23901|(i+95&254)>>>0>93)break n;j=i-32896|0;if(!j)break n;l=j;s=0;c=7}q=0;e=g;break n}if(!U)break n;l=126}c=j;q=0;e=1;break d}if(!(n|!e))break n;g=g&255;if(g>>>0<160)break n;l=g-128|0;q=2;s=0;c=j;e=i;break n}if(!i|!s)break n;e=0;if(E)break n;l=L[M>>1];e=-2;s=0;c=j;q=0}d=d+1|0;if((e|0)<=0&(k|0)>(d|0))continue;break}if(e)break d}J[b>>2]=10;J[r+56>>2]=h;break c}J[r+56>>2]=h}if(J[b>>2]>0)break c;c=K[m+58|0];if(!(c|K[v|0])|!K[a+2|0]|(J[r+56>>2]|o>>>0>>0))break c;if(c){H[f+16|0]=15;H[m+58|0]=0;d=1}else d= +0;if(K[v|0]){c=(f+16|0)+d|0;l=L[373104];H[c|0]=l;H[c+1|0]=l>>>8;H[c+2|0]=K[746210];H[v|0]=0;d=d+3|0}l=J[a+8>>2];c=o-l>>1;K:{if((c|0)<=0){h=-1;break K}h=c-1|0;if((L[l+(h<<1)>>1]&64512)!=56320)break K;if(h)if((L[(l+(c<<1)|0)-4>>1]&64512)!=55296)break K;h=c-2|0}J[f+28>>2]=p;wi(r,f+16|0,d,f+28|0,u,f+24|0,h,b);p=J[f+28>>2];break c}J[b>>2]=15;break c}q=0;l=h;c=j;e=1}j=e>>31;i=(j^e)-j|0;d=0;j=K[m+58|0];if(!(q|(j|0)!=1)){H[f+16|0]=15;H[m+58|0]=0;d=1;j=0}g=q+v|0;if(K[g|0]==(c&255))g=k;else{e=c<<24>>24;j=H[e+ +746190|0];xc((f+16|0)+d|0,P(e,6)+746208|0,j);H[g|0]=c;d=d+j|0;j=K[m+58|0];g=0}L:{if(j<<24>>24==(q|0)){e=d;break L}e=d+1|0;c=(f+16|0)+d|0;if((q|0)==1){H[c|0]=14;H[m+58|0]=1;break L}H[c|0]=27;H[(f+16|0)+e|0]=78;e=d+2|0}j=(f+16|0)+e|0;M:{if((i|0)==1){d=e+1|0;c=l;break M}H[(e+f|0)+17|0]=l;d=e+2|0;c=l>>>8|0}H[j|0]=c;N:switch(h-10|0){case 0:case 3:g=0;H[m+56|0]=0;break;default:break N}O:{P:switch(d-1|0){case 0:H[p|0]=K[f+16|0];p=p+1|0;c=J[f+24>>2];if(!c)break b;j=J[a+8>>2];J[f+24>>2]=c+4;J[c>>2]=(o-j>> +1)-1;break b;case 1:break P;default:break O}c=p+2|0;if(c>>>0>u>>>0)break O;H[p|0]=K[f+16|0];H[p+1|0]=K[f+17|0];j=J[f+24>>2];if(!j){p=c;break b}e=(o-J[a+8>>2]>>1)+(h>>>0<65536?-1:-2)|0;J[j>>2]=e;J[f+24>>2]=j+8;J[j+4>>2]=e;p=c;break b}c=J[a+8>>2];J[f+28>>2]=p;wi(r,f+16|0,d,f+28|0,u,f+24|0,(o-c>>1)+(h>>>0<65536?-1:-2)|0,b);p=J[f+28>>2];if(J[b>>2]<=0)break b}J[a+16>>2]=p;J[a+8>>2]=o;fc=f+32|0;return}d=0;continue}}function C4(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;m=fc-16|0;fc=m;J[c>> +2]=2147483632;J[c+16>>2]=J[c+8>>2];f=J[c+20>>2];J[c+28>>2]=f;I[f+2>>1]=0;l=J[b+20>>2];b=J[b+28>>2];f=268435454;e=268435455;i=268435455;h=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[m+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];h=j>>31;i=I[a+8>>1];h=(i+((h^j)-h|0)|0)-1|0}if((b|0)!=(l|0)){J[m+4>>2]=l+8;o=(b-l>>3)-1|0;b=I[l+10>>1];a=b>>31;e=I[l+8>>1];f=(e+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=i;n=0;break a}if((i|0)<=(h|0)){a=i;break a}a=J[m+8>>2];J[m+8>>2]=a+8;n=n-1|0;h=I[a+10>>1];b=h>>31;a=I[a+ +8>>1];h=(a+((b^h)-b|0)|0)-1|0}l=h;b:{c:{d:{if(!o){o=0;break d}if((e|0)>(f|0))break c}b=e;break b}b=J[m+4>>2];J[m+4>>2]=b+8;o=o-1|0;h=I[b+10>>1];f=h>>31;b=I[b+8>>1];f=(b+((f^h)-f|0)|0)-1|0}j=f;if(!((f|0)<(b|0)&(a|0)>(l|0))){i=(a|0)>(b|0)?a:b;f=((f|0)>(l|0)?l:f)-i|0;if((f|0)>=0){h=f+1|0;e:{f:{g:{if((a|0)<(b|0)){e=b-a|0;f=J[m+8>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];h:{if((J[c>>2]+1|0)!=(a|0))break h;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break h;I[d+2>>1]=g-e;a=b;break g}H[J[c+ +16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=a;J[f+12>>2]=d;a=b;break g}if(!d){a=b;break e}d=J[f+4>>2];f=I[f>>1];xc(J[c+16>>2],d+((a|0)>(f|0)?a-f|0:0)|0,e);d=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(a|0))break j;f=I[d+2>>1];if((f|0)<=0)break j;I[d+2>>1]=e+f;f=J[c+16>>2];break i}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=a;J[d+12>>2]=f}J[c+16>>2]=e+f;a=b;break g}if((a|0)<=(b|0))break e;e=a-b|0;f=J[m+4>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];k:{if((J[c>> +2]+1|0)!=(b|0))break k;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break k;I[d+2>>1]=g-e;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=b;J[f+12>>2]=d;break g}if(!d)break f;d=J[f+4>>2];f=I[f>>1];xc(J[c+16>>2],d+((b|0)>(f|0)?b-f|0:0)|0,e);d=J[c+28>>2];l:{m:{if((J[c>>2]+1|0)!=(b|0))break m;f=I[d+2>>1];if((f|0)<=0)break m;I[d+2>>1]=e+f;f=J[c+16>>2];break l}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=b;J[d+12>>2]=f}J[c+16>> +2]=e+f}J[c>>2]=a-1}b=a}f=h;n:{o:{p:{q:{r:{e=J[m+4>>2];d=J[m+8>>2];switch((L[e+2>>1]>>>14&2|L[d+2>>1]>>>15)-1|0){case 2:break o;case 1:break p;case 0:break q;default:break r}}g=J[e+4>>2];e=I[e>>1];e=g+((e|0)<(i|0)?i-e|0:0)|0;g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(i|0)?i-d|0:0)|0;while(1){g=K[d|0];k=K[e|0];if((g|0)!=(k|0)){k=g-k|0;g=k>>31;H[J[c+16>>2]]=(g^k)-g;g=J[c+28>>2];s:{t:{if((J[c>>2]+1|0)!=(i|0))break t;k=I[g+2>>1];if((k|0)<=0)break t;I[g+2>>1]=k+1;k=J[c+16>>2];break s}J[c+28>>2]=g+8;k=J[c+16>>2]; +I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=k}J[c>>2]=i;J[c+16>>2]=k+1}e=e+1|0;d=d+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}d=J[e+4>>2];e=I[e>>1];e=d+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[J[J[m+8>>2]+4>>2]];g=K[e|0];if((d|0)!=(g|0)){g=d-g|0;d=g>>31;H[J[c+16>>2]]=(d^g)-d;g=J[c+28>>2];u:{v:{if((J[c>>2]+1|0)!=(i|0))break v;d=I[g+2>>1];if((d|0)<=0)break v;I[g+2>>1]=d+1;d=J[c+16>>2];break u}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0; +if(f)continue;break}break n}e=I[d>>1];e=J[d+4>>2]+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[e|0];g=K[J[J[m+4>>2]+4>>2]];if((d|0)!=(g|0)){g=d-g|0;d=g>>31;H[J[c+16>>2]]=(d^g)-d;g=J[c+28>>2];w:{x:{if((J[c>>2]+1|0)!=(i|0))break x;d=I[g+2>>1];if((d|0)<=0)break x;I[g+2>>1]=d+1;d=J[c+16>>2];break w}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}d=K[J[d+4>>2]];e=K[J[e+4>>2]];if((d|0)==(e|0))break n;d=d-e|0;e=d>>31; +e=(d^e)-e|0;y:{z:{if((J[c>>2]+1|0)!=(i|0))break z;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(e|0)!=K[J[d+4>>2]])break z;I[d+2>>1]=g-f;break y}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[e+10>>1]=0-f;I[e+8>>1]=i;J[e+12>>2]=d}J[c>>2]=(f+i|0)-1}if((j|0)>(l|0)){e=b+h|0;h=268435454;i=268435455;f=j;continue}e=268435455;b=a+h|0;a=(j|0)<(l|0);i=a?b:268435455;f=268435454;h=a?l:268435454;continue}if((a|0)<(b|0)){h=268435454;i=268435455;e=b;f=j;if((a|0)>(l|0))continue;g=l-a|0;d=g+1| +0;j=J[m+8>>2];k=I[j+2>>1];A:{if((k|0)<0){e=K[J[j+4>>2]];B:{if((J[c>>2]+1|0)!=(a|0))break B;j=J[c+28>>2];k=I[j+2>>1];if((k|0)>=0|(e|0)!=K[J[j+4>>2]])break B;I[j+2>>1]=k-d;break A}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;j=J[c+16>>2];J[c+16>>2]=j+1;I[e+10>>1]=g^-1;I[e+8>>1]=a;J[e+12>>2]=j;break A}if(!k)continue;e=I[j>>1];xc(J[c+16>>2],J[j+4>>2]+((a|0)>(e|0)?a-e|0:0)|0,d);j=J[c+28>>2];C:{D:{if((J[c>>2]+1|0)!=(a|0))break D;e=I[j+2>>1];if((e|0)<=0)break D;I[j+2>>1]=d+e;e=J[c+16>>2];break C}J[c+28>> +2]=j+8;e=J[c+16>>2];I[j+10>>1]=d;I[j+8>>1]=a;J[j+12>>2]=e}J[c+16>>2]=d+e}J[c>>2]=l;e=b;continue}f=268435454;e=268435455;i=a;h=l;if((b|0)>(j|0))continue;g=j-b|0;d=g+1|0;a=J[m+4>>2];k=I[a+2>>1];E:{if((k|0)<0){a=K[J[a+4>>2]];F:{if((J[c>>2]+1|0)!=(b|0))break F;h=J[c+28>>2];k=I[h+2>>1];if((k|0)>=0|(a|0)!=K[J[h+4>>2]])break F;I[h+2>>1]=k-d;break E}H[J[c+16>>2]]=a;a=J[c+28>>2];J[c+28>>2]=a+8;h=J[c+16>>2];J[c+16>>2]=h+1;I[a+10>>1]=g^-1;I[a+8>>1]=b;J[a+12>>2]=h;break E}if(!k)continue;h=J[a+4>>2];a=I[a>>1]; +xc(J[c+16>>2],h+((a|0)<(b|0)?b-a|0:0)|0,d);a=J[c+28>>2];G:{H:{if((J[c>>2]+1|0)!=(b|0))break H;h=I[a+2>>1];if((h|0)<=0)break H;I[a+2>>1]=d+h;h=J[c+16>>2];break G}J[c+28>>2]=a+8;h=J[c+16>>2];I[a+10>>1]=d;I[a+8>>1]=b;J[a+12>>2]=h}J[c+16>>2]=d+h}J[c>>2]=j;h=l;continue}break}fc=m+16|0}function QJa(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;g=fc-160|0;fc=g;a:{b:{c:{d:{e:{f:{g:{if(a){if(!d)break g;if(!b)break f;if(c>>>0<=35){c=0;Nc(d, +1,2367334,0);break a}c=c-36|0;h=(c>>>0)/3|0;if((P(h,3)|0)!=(c|0)){c=0;Nc(d,1,2367334,0);break a}e=J[a+72>>2];c=g+156|0;wd(b,c,2);I[a+80>>1]=J[g+156>>2];wd(b+2|0,e+8|0,4);wd(b+6|0,e+12|0,4);wd(b+10|0,e,4);wd(b+14|0,e+4|0,4);wd(b+18|0,a+92|0,4);wd(b+22|0,a+96|0,4);wd(b+26|0,a+84|0,4);wd(b+30|0,a+88|0,4);wd(b+34|0,c,2);c=J[g+156>>2];if(c>>>0>16384)break e;J[e+16>>2]=c;if((c|0)!=(h|0)){J[g+132>>2]=h;J[g+128>>2]=c;Nc(d,1,2367423,g+128|0);c=0;break a}c=J[e+4>>2];k=J[e+12>>2];l=J[e+8>>2];f=J[e>>2];if(!(c>>> +0>>0&l>>>0>f>>>0)){J[g+120>>2]=k-c;J[g+124>>2]=0-(c>>>0>k>>>0);J[g+112>>2]=l-f;J[g+116>>2]=0-(f>>>0>l>>>0);Nc(d,1,2367537,g+112|0);c=0;break a}i=J[a+92>>2];j=J[a+96>>2];if(!(j?i:0)){J[g+4>>2]=j;J[g>>2]=i;Nc(d,1,2367603,g);c=0;break a}h:{m=J[a+84>>2];i:{if(m>>>0>f>>>0)break i;i=i+m|0;if(f>>>0>=(i>>>0>>0?-1:i)>>>0)break i;i=J[a+88>>2];if(i>>>0>c>>>0)break i;j=i+j|0;if(c>>>0<(i>>>0>j>>>0?-1:j)>>>0)break h}c=0;Nc(d,1,2367664,0);break a}j:{if(J[a+212>>2])break j;i=J[a+204>>2];if(!i)break j;j=J[a+ +208>>2];if(!j)break j;f=l-f|0;c=k-c|0;if((f|0)==(i|0)&(c|0)==(j|0))break j;J[g+108>>2]=c;J[g+104>>2]=f;J[g+100>>2]=j;J[g+96>>2]=i;Nc(d,1,2367708,g+96|0);c=0;break a}f=Ge(h,52);J[e+24>>2]=f;if(!f)break d;k:{if(!J[e+16>>2])break k;c=g+152|0;wd(b+36|0,c,1);h=J[g+152>>2];j=h>>>7|0;J[f+32>>2]=j;m=(h&127)+1|0;J[f+24>>2]=m;l=J[a+212>>2];wd(b+37|0,c,1);J[f>>2]=J[g+152>>2];wd(b+38|0,c,1);h=J[g+152>>2];J[f+4>>2]=h;c=0;i=J[f>>2];if(i-256>>>0<4294967041){k=0;break b}if(!h){k=0;break b}k=0;if(h>>>0>255)break b; +h=J[f+24>>2];if(h>>>0>31)break c;J[f+36>>2]=0;J[f+40>>2]=J[a+160>>2];k=1;if(M[e+16>>2]<=1)break k;j=l?0:j;l=l?0:m;b=b+39|0;while(1){wd(b,g+152|0,1);i=J[g+152>>2];h=i>>>7|0;J[f+84>>2]=h;i=(i&127)+1|0;J[f+76>>2]=i;if(!((i|0)==(l|0)&(h|0)==(j|0)|(J[a+212>>2]|K[a+176|0]&4))){J[g+84>>2]=h;J[g+80>>2]=i;J[g+76>>2]=k;J[g+72>>2]=j;J[g+68>>2]=l;J[g+64>>2]=k;Nc(d,2,2367817,g- -64|0)}h=g+152|0;wd(b+1|0,h,1);J[f+52>>2]=J[g+152>>2];wd(b+2|0,h,1);h=J[g+152>>2];J[f+56>>2]=h;i=J[f+52>>2];if(!h|i-256>>>0<4294967041| +h>>>0>=256)break b;h=J[f+76>>2];if(h>>>0>=32)break c;b=b+3|0;J[f+88>>2]=0;J[f+92>>2]=J[a+160>>2];f=f+52|0;k=k+1|0;if(k>>>0>2])continue;break}}c=0;b=J[a+92>>2];if(!b|!J[a+96>>2])break a;v=a,w=Mt(J[e+8>>2]-J[a+84>>2]|0,b),J[v+104>>2]=w;b=Mt(J[e+12>>2]-J[a+88>>2]|0,J[a+96>>2]);J[a+108>>2]=b;l:{f=J[a+104>>2];if(!(!f|!b))if(f>>>0<=65535/(b>>>0)>>>0)break l;J[g+20>>2]=b;J[g+16>>2]=f;Nc(d,1,2368200,g+16|0);break a}h=P(b,f);m:{if(K[a+68|0]&2){b=J[a+84>>2];c=J[a+92>>2];J[a+28>>2]=(J[a+28>>2]-b>>>0)/ +(c>>>0);J[a+32>>2]=(J[a+32>>2]-J[a+88>>2]>>>0)/M[a+96>>2];v=a,w=Mt(J[a+36>>2]-b|0,c),J[v+36>>2]=w;v=a,w=Mt(J[a+40>>2]-J[a+88>>2]|0,J[a+96>>2]),J[v+40>>2]=w;break m}J[a+28>>2]=0;J[a+32>>2]=0;J[a+40>>2]=b;J[a+36>>2]=f}b=Ge(h,5644);J[a+156>>2]=b;if(!b){c=0;Nc(d,1,2367769,0);break a}b=Ge(J[e+16>>2],1080);J[J[a+12>>2]+5584>>2]=b;if(!J[J[a+12>>2]+5584>>2]){c=0;Nc(d,1,2367769,0);break a}b=Ge(10,20);J[J[a+12>>2]+5616>>2]=b;b=J[a+12>>2];if(!J[b+5616>>2]){c=0;Nc(d,1,2367769,0);break a}J[b+5624>>2]=10;b=Ge(10, +20);J[J[a+12>>2]+5628>>2]=b;b=J[a+12>>2];if(!J[b+5628>>2]){c=0;Nc(d,1,2367769,0);break a}J[b+5636>>2]=10;f=J[e+16>>2];n:{if(!f)break n;k=J[e+24>>2];b=0;if((f|0)!=1){l=f&-2;c=0;while(1){i=k+P(b,52)|0;if(!J[i+32>>2])J[(J[J[a+12>>2]+5584>>2]+P(b,1080)|0)+1076>>2]=1<>2]-1;i=b|1;j=k+P(i,52)|0;if(!J[j+32>>2])J[(J[J[a+12>>2]+5584>>2]+P(i,1080)|0)+1076>>2]=1<>2]-1;b=b+2|0;c=c+2|0;if((l|0)!=(c|0))continue;break}}if(!(f&1))break n;c=k+P(b,52)|0;if(J[c+32>>2])break n;J[(J[J[a+12>>2]+5584>>2]+ +P(b,1080)|0)+1076>>2]=1<>2]-1}if(h){b=J[a+156>>2];c=0;while(1){f=Ge(J[e+16>>2],1080);J[b+5584>>2]=f;if(!f){c=0;Nc(d,1,2367769,0);break a}b=b+5644|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}J[a+8>>2]=4;o:{p:{n=J[e+16>>2];if(n){c=J[a+88>>2];d=J[a+96>>2];b=c+P(d,J[a+108>>2]-1|0)|0;d=b+d|0;b=b>>>0>d>>>0?-1:d;d=J[e+12>>2];r=b>>>0>>0?b:d;b=J[a+84>>2];d=J[a+92>>2];a=b+P(d,J[a+104>>2]-1|0)|0;d=a+d|0;a=a>>>0>d>>>0?-1:d;d=J[e+8>>2];s=a>>>0>>0?a:d;a=J[e+4>>2];k=a>>>0>>0?c:a;a=J[e>>2];l=a>>>0< +b>>>0?b:a;a=J[e+24>>2];b=0;while(1){f=J[a>>2];if(!f)break p;e=J[a+4>>2];if(!e)break p;i=0-!e|0;c=i;j=e-1|0;d=k+j|0;c=d>>>0>>0?c+1|0:c;o=xEb(d,c,e,0);J[a+20>>2]=o;p=0-!f|0;c=p;m=f-1|0;d=l+m|0;c=d>>>0>>0?c+1|0:c;q=xEb(d,c,f,0);J[a+16>>2]=q;d=J[a+40>>2];h=d&31;if((d&63)>>>0>=32){c=-1<>>32-h;h=-1<>>0>j>>>0?i+1|0:i;e=xEb(j,i,e,0)-o|0;i=e;e=e+h|0;c=i>>>0>e>>>0?c+1|0:c;i=e;e=d&31;if((d&63)>>>0>=32)c=c>>>e|0;else c=((1<>>e;J[a+12>>2]=c;c=p;e=m+s|0;c=e>>>0>>0?c+1|0:c;e=xEb(e,c,f,0)-q|0;c=t;e=e+h|0;c=e>>>0>>0?c+1|0:c;f=e;e=d&31;if((d&63)>>>0>=32)c=c>>>e|0;else c=((1<>>e;J[a+8>>2]=c;a=a+52|0;b=b+1|0;if((n|0)!=(b|0))continue;break}}break o}fa(2352222,2352648,172,2355230);B()}c=1;break a}fa(2358373,2358254,2059,2367317);B()}fa(2358486,2358254,2060,2367317);B()}fa(2365733,2358254,2061,2367317);B()}J[g+144>>2]=c;Nc(d,1,2367362,g+144|0);c=0;break a}c=0;J[e+16>>2]=0;Nc(d,1,2367769,0);break a}J[g+ +52>>2]=h;J[g+48>>2]=k;Nc(d,1,2368067,g+48|0);break a}J[g+40>>2]=h;J[g+36>>2]=i;J[g+32>>2]=k;Nc(d,1,2367962,g+32|0)}fc=g+160|0;return c|0}function zga(){var a=0,b=0,c=0;if(K[2797636])return J[699408];if(K[2797624])a=J[699405];else{J[699815]=0;J[699814]=2639640;J[699814]=2634480;J[699814]=2633E3;J[699344]=0;b=aa(6915,2799264,30)|0;a=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((a|0)!=1){J[699344]=0;c=aa(31,2799408,21857)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;dR(b);J[699733]=0;J[699732]=2639640;J[699732]= +2634480;J[699732]=2635588;J[699344]=0;da(6916,2799256,2798928);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699735]=0;J[699734]=2639640;J[699734]=2634480;J[699734]=2635620;J[699344]=0;da(6917,2799256,2798936);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;$Q();a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6919,2799256,2798944);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699741]=0;J[699740]=2639640;J[699740]=2634480;J[699740]=2634536;J[699344]=0;da(6920,2799256,2798960);a= +J[699344];J[699344]=0;if((a|0)==1)break d;J[699743]=0;J[699742]=2639640;J[699742]=2634480;J[699742]=2634684;J[699344]=0;da(6921,2799256,2798968);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ka(6922);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6923,2799256,2798976);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699749]=0;J[699748]=2639640;J[699748]=2634480;J[699748]=2634832;J[699344]=0;da(6924,2799256,2798992);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699751]=0;J[699750]= +2639640;J[699750]=2634480;J[699750]=2635064;J[699344]=0;da(6925,2799256,2799E3);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699753]=0;J[699752]=2639640;J[699752]=2634480;J[699752]=2634948;J[699344]=0;da(6926,2799256,2799008);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699755]=0;J[699754]=2639640;J[699754]=2634480;J[699754]=2635180;J[699344]=0;da(6927,2799256,2799016);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ka(6928);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6929, +2799256,2799024);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ka(6930);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6931,2799256,2799048);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699771]=0;J[699770]=2639640;J[699770]=2634480;J[699770]=2635652;J[699344]=0;da(6932,2799256,2799080);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699773]=0;J[699772]=2639640;J[699772]=2634480;J[699772]=2635896;J[699344]=0;da(6933,2799256,2799088);a=J[699344];J[699344]=0;if((a|0)==1)break d; +J[699775]=0;J[699774]=2639640;J[699774]=2634480;J[699774]=2636108;J[699344]=0;da(6934,2799256,2799096);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699777]=0;J[699776]=2639640;J[699776]=2634480;J[699776]=2636340;J[699344]=0;da(6935,2799256,2799104);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;J[699779]=0;J[699778]=2639640;J[699778]=2634480;J[699778]=2637324;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6937,2799256,2799112);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699781]= +0;J[699780]=2639640;J[699780]=2634480;J[699780]=2637472;J[699344]=0;da(6938,2799256,2799120);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699783]=0;J[699782]=2639640;J[699782]=2634480;J[699782]=2637588;J[699344]=0;da(6939,2799256,2799128);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699785]=0;J[699784]=2639640;J[699784]=2634480;J[699784]=2637704;J[699344]=0;da(6940,2799256,2799136);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;J[699787]=0;J[699786]=2639640;J[699786]=2634480;J[699786]= +2637820;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6942,2799256,2799144);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;J[699789]=0;J[699788]=2639640;J[699788]=2634480;J[699788]=2637984;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6944,2799256,2799152);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;J[699791]=0;J[699790]=2639640;J[699790]=2634480;J[699790]=2638148;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6946,2799256,2799160);a=J[699344]; +J[699344]=0;if((a|0)==1)break d;J[699344]=0;J[699793]=0;J[699792]=2639640;J[699792]=2634480;J[699792]=2638312;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6948,2799256,2799168);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699795]=0;J[699794]=2639640;J[699794]=2634480;J[699796]=2639568;J[699794]=2636540;J[699796]=2636588;J[699344]=0;da(6949,2799256,2799176);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699799]=0;J[699798]=2639640;J[699798]=2634480;J[699800]=2639604;J[699798]=2636804; +J[699800]=2636852;J[699344]=0;da(6950,2799256,2799192);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ka(6951);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6952,2799256,2799208);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ka(6953);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(6954,2799256,2799224);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;J[699811]=0;J[699810]=2639640;J[699810]=2634480;J[699810]=2638476;a=J[699344];J[699344]=0;if((a|0)== +1)break d;J[699344]=0;da(6956,2799256,2799240);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699813]=0;J[699812]=2639640;J[699812]=2634480;J[699812]=2638596;J[699344]=0;da(6957,2799256,2799248);a=J[699344];J[699344]=0;if((a|0)==1)break d;break a}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;jd(c)}gR(b)}ba(a|0);B()}J[699404]=2799256;H[2797624]=1;J[699405]=2797616;a=2797616}a=J[a>>2];J[699407]=a;J[a+4>>2]=J[a+4>>2]+1;H[2797636]=1;J[699408]=2797628;return 2797628}function _gb(a,b,c,d,e){a=a|0;b=b|0;c=c|0; +d=d|0;e=e|0;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;f=fc-144|0;fc=f;k=J[b+100>>2];g=J[b+104>>2];d=0;J[b+132>>2]=0;e=yd(g,0);J[f+140>>2]=e;h=c>>31;l=(h^c)-h&65535;a:{if(e)break a;e=Te(g,334112,f+136|0);J[f+140>>2]=e;if(e)break a;J[f+140>>2]=2;b:{c:{if(L[f+136>>1]!=23117)break c;e=yd(g,L[f+138>>1]);J[f+140>>2]=e;if(e)break a;e=Te(g,334144,f+130|0);J[f+140>>2]=e;if(e)break a;e=L[f+130>>1];J[f+140>>2]=2;d:{e:{f:{g:switch(e-17742|0){case 0:e=yd(g,L[f+132>>1]+L[f+138>>1]|0);J[f+140>> +2]=e;if(e)break a;e=af(g,L[f+134>>1]-L[f+132>>1]|0);J[f+140>>2]=e;if(e)break a;j=js(g);if(j>>>0>16)break b;i=js(g);h:{if(i)while(1){h=js(g);e=((J[g+8>>2]+J[g+32>>2]|0)-J[g+36>>2]|0)+4|0;if((i&65535)==32776)break h;J[g+32>>2]=(J[g+32>>2]+P(h,12)|0)+4;i=js(g);if(i)continue;break}h=0;e=0}ve(g);if(!(e?h:0)){J[f+140>>2]=3;break a}if(M[g+4>>2]>>0){J[f+140>>2]=3;break a}J[b>>2]=h;if((c|0)<0)break a;if(h>>>0<=l>>>0){J[f+140>>2]=6;break a}r=b,s=he(k,172,f+140|0),J[r+132>>2]=s;if(J[f+140>>2])break a; +e=yd(g,e+P(l,12)|0);J[f+140>>2]=e;if(e)break c;e=af(g,12);J[f+140>>2]=e;if(e)break c;e=js(g);J[J[b+132>>2]>>2]=e<>2]+164>>2]=e<>2]=J[g+32>>2]+8;ve(g);e=KM(J[b+132>>2],g);J[f+140>>2]=e;i=!e;break f;case 2:break g;default:break f}e=yd(g,L[f+138>>1]);J[f+140>>2]=e;if(e)break a;e=Te(g,334176,f+108|0);J[f+140>>2]=e;if(e)break a;i:{if(!(J[f+108>>2]!=17744|L[f+112>>1]!=332|L[f+116>>1]!=224))if(L[f+118>>1]==267)break i;J[f+140>>2]=3;break a}h=0;J[b>>2]=0;if(!L[f+114>>1])break e; +while(1){e=Te(g,334240,f+88|0);J[f+140>>2]=e;if(e)break a;if(J[f+120>>2]!=J[f+96>>2]){h=h+1|0;if(L[f+114>>1]<=(h&65535)>>>0)break e;continue}break}e=yd(g,J[f+104>>2]);J[f+140>>2]=e;if(e)break a;e=Te(g,334272,f+72|0);J[f+140>>2]=e;if(e)break a;if(L[f+86>>1]!=(0-L[f+84>>1]|0)){m=J[f+104>>2];o=m+16|0;h=0;while(1){e=yd(g,(h<<3)+o|0);J[f+140>>2]=e;if(e)break a;e=Te(g,334304,f+32|0);J[f+140>>2]=e;if(e)break a;e=J[f+36>>2];if((e|0)>=0){J[f+140>>2]=3;break a}e=e&2147483647;J[f+36>>2]=e;e=e+J[f+104>>2]|0; +h=yd(g,e);J[f+140>>2]=h;if(h)break a;h=Te(g,334272,f+56|0);J[f+140>>2]=h;if(h)break a;if(L[f+70>>1]!=(0-L[f+68>>1]|0)){p=e+16|0;h=0;j=0;while(1){e=yd(g,(h<<3)+p|0);J[f+140>>2]=e;if(e)break a;e=Te(g,334304,f+24|0);J[f+140>>2]=e;if(e)break a;e=J[f+28>>2];if((e|0)>=0){J[f+140>>2]=3;break a}e=e&2147483647;J[f+28>>2]=e;e=e+J[f+104>>2]|0;h=yd(g,e);J[f+140>>2]=h;if(h)break a;h=Te(g,334272,f+40|0);J[f+140>>2]=h;if(h)break a;if(L[f+54>>1]!=(0-L[f+52>>1]|0)){q=e+16|0;h=0;i=0;while(1){e=yd(g,(h<<3)+q|0);J[f+ +140>>2]=e;if(e)break a;e=Te(g,334304,f+16|0);J[f+140>>2]=e;if(e)break a;if(J[f+28>>2]<0){J[f+140>>2]=3;break a}if(J[f+32>>2]==8){e=yd(g,J[f+20>>2]+m|0);J[f+140>>2]=e;if(e)break a;e=Te(g,334320,f);J[f+140>>2]=e;if(e)break a;e=J[b>>2];if((e|0)==(l|0)){e=he(k,172,f+140|0);J[b+132>>2]=e;if(J[f+140>>2])break a;J[e>>2]=(J[f>>2]+J[f+104>>2]|0)-J[f+96>>2];J[e+164>>2]=J[f+4>>2];e=KM(e,g);J[f+140>>2]=e;if(e)break c;e=J[b>>2]}J[b>>2]=e+1}i=i+1|0;h=i&65535;if(h>>>0>1]+L[f+52>>1]>>>0)continue;break}}j= +j+1|0;h=j&65535;if(h>>>0>1]+L[f+68>>1]>>>0)continue;break}}n=n+1|0;h=n&65535;if(h>>>0>1]+L[f+84>>1]>>>0)continue;break}}i=1}e=J[b>>2];if(!e){J[f+140>>2]=3;break a}if((e|0)>(l|0))break d;J[f+140>>2]=6;break a}J[f+140>>2]=3;break a}if(i)break a}e=J[b+132>>2];if(!e)break a;g=J[b+100>>2];if(J[e+160>>2])$f(J[b+104>>2],e+160|0);h=J[e+168>>2];if(h)kc[J[g+8>>2]](g,h);J[e+168>>2]=0;if(e)kc[J[g+8>>2]](g,e);J[b+132>>2]=0;break a}J[f+140>>2]=3;ve(g)}e=J[f+140>>2];J[f+88>>2]=e;g=(c|0)<0;j:{if(g& +!e)break j;k:{l:{m:{if((e&255)==2){c=he(k,172,f+88|0);J[b+132>>2]=c;d=J[f+88>>2];if(d)break j;J[b>>2]=1;d=0;J[c>>2]=0;J[c+164>>2]=J[a+4>>2];a=KM(c,a);J[f+88>>2]=a;if(!(a|g)){if(!l)break m;J[f+88>>2]=6;break k}if(a)break k;break j}if(e)break l}a=J[b+132>>2];if(!L[a+96>>1]){J[f+88>>2]=3;break k}J[b+4>>2]=l;c=J[b+8>>2];J[b+8>>2]=c|18;if(L[a+100>>1]==L[a+102>>1])J[b+8>>2]=c|22;if(K[a+86|0])J[b+12>>2]=J[b+12>>2]|1;if(L[a+90>>1]>=800)J[b+12>>2]=J[b+12>>2]|2;c=_c(k,16,0,1,0,f+88|0);J[b+32>>2]=c;if(J[f+88>> +2])break k;J[b+28>>2]=1;I[c+2>>1]=L[a+100>>1];I[c>>1]=L[a+84>>1]+L[a+96>>1];e=L[a+74>>1]<<6;J[c+4>>2]=e;d=L[a+78>>1];g=e;e=L[a+76>>1];e=e?e:72;g=Od(g,e,72)+32&-64;J[c+12>>2]=g;i=d?d:72;d=L[a+96>>1]<<6;n:{if((d|0)>=(g|0)){h=J[c+4>>2];break n}J[c+12>>2]=d;h=Od(d,72,e);J[c+4>>2]=h}r=c,s=Od(h,i,72)+32&-64,J[r+8>>2]=s;J[f+108>>2]=b;J[f+112>>2]=0;J[f+116>>2]=0;if(K[a+92|0]==77){I[f+116>>1]=1;J[f+112>>2]=1634889070}c=bl(334060,0,f+108|0,0);J[f+88>>2]=c;if(c)break k;c=K[a+105|0];d=K[a+104|0];if(c>>>0>> +0){J[f+88>>2]=3;break k}J[b+16>>2]=(c-d|0)+2;c=J[a+8>>2];d=J[a+116>>2];if(c>>>0<=d>>>0){J[f+88>>2]=3;break k}c=c-d|0;d=f+88|0;e=he(k,c+1|0,d);J[a+168>>2]=e;if(J[f+88>>2])break k;xc(e,J[a+160>>2]+J[a+116>>2]|0,c);H[c+J[a+168>>2]|0]=0;e=a;a=J[a+168>>2];a=_c(k,1,c,Yc(a)+1|0,a,d);J[e+168>>2]=a;if(J[f+88>>2])break k;J[b+24>>2]=240032;J[b+20>>2]=a;c=J[b+12>>2];a=c&1;if(c&2){if(a){J[b+24>>2]=240231;d=0;break j}J[b+24>>2]=240347;d=0;break j}d=0;if(!a)break j;J[b+24>>2]=240500;break j}d=e;if(!b)break j}a= +J[b+100>>2];c=J[b+132>>2];if(c){if(J[c+160>>2])$f(J[b+104>>2],c+160|0);d=J[c+168>>2];if(d)kc[J[a+8>>2]](a,d);J[c+168>>2]=0;if(c)kc[J[a+8>>2]](a,c);J[b+132>>2]=0}c=J[b+32>>2];if(c)kc[J[a+8>>2]](a,c);J[b+28>>2]=0;J[b+32>>2]=0;d=J[f+88>>2]}fc=f+144|0;return d|0}function S4a(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,y=0,z=0,A=0,C=0,D=0;d=fc-80|0;fc=d;c=J[a>>2];J[a>>2]=c+4;e=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);c=c+8|0;J[a>> +2]=c;Ll(d+68|0,c,e);c=e+J[a>>2]|0;J[a>>2]=c;f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a>>2]=c;J[d+64>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;a:{b:{if((f|0)>0){c=0;c:{d:{while(1){e:{e=J[a>>2];g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);e=e+4|0;J[a>>2]=e;J[699344]=0;ca(1618,d+44|0,e|0,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break e;J[a>>2]=g+J[a>>2];e=J[d+60>>2];f:{if(e>>>0>2]){g=J[d+48>>2];J[e>>2]=J[d+44>>2];J[e+4>>2]=g;J[e+8>>2]=J[d+52>>2];J[d+60>>2]=e+12;break f}J[699344]= +0;da(2957,d+56|0,d+44|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;if(H[d+55|0]>=0)break f;uc(J[d+44>>2])}c=c+1|0;if((f|0)!=(c|0))continue;break c}break}a=Z()|0;break b}a=Z()|0;if(H[d+55|0]>=0)break b;uc(J[d+44>>2]);break b}c=J[a>>2]}e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c+4|0;J[a>>2]=c;J[699344]=0;ca(1618,d+44|0,c|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;break b}J[a>>2]=e+J[a>>2];J[d+32>>2]=92;J[d+36>>2]=0;H[d+43|0]=1;J[699344]=0;J[d+16>>2]=47;J[d+20>>2]=0;H[d+27|0]=1;ca(2958, +d+44|0,d+32|0,d+16|0);c=J[699344];J[699344]=0;g:{h:{i:{j:{k:{if((c|0)!=1){if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+43|0]<0)uc(J[d+32>>2]);c=J[a>>2];f=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[a>>2]=c+4;g=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);J[a>>2]=c+8;l=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);J[a>>2]=c+12;m=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);J[a>>2]=c+16;e=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);h=c+20|0;J[a>>2]=h;I[d+24>>1]=K[c+28|0]|K[c+ +29|0]<<8;i=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);J[d+16>>2]=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);J[d+20>>2]=i;c=e+h|0;J[a>>2]=c;h=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[a>>2]=c+4;i=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);J[a>>2]=c+8;n=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);J[a>>2]=c+12;o=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);J[a>>2]=c+16;p=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);J[a>>2]=c+20;q=K[c+20|0]|K[c+ +21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);J[a>>2]=c+24;r=K[c+24|0]|K[c+25|0]<<8;J[a>>2]=c+26;s=K[c+26|0]|K[c+27|0]<<8;J[a>>2]=c+28;t=(K[c+28|0]|K[c+29|0]<<8)<<16>>16;J[a>>2]=c+30;u=(K[c+30|0]|K[c+31|0]<<8)<<16>>16;J[a>>2]=c+32;v=(K[c+32|0]|K[c+33|0]<<8)<<16>>16;J[a>>2]=c+34;w=(K[c+34|0]|K[c+35|0]<<8)<<16>>16;J[a>>2]=c+36;x=(K[c+36|0]|K[c+37|0]<<8)<<16>>16;J[a>>2]=c+38;y=(K[c+38|0]|K[c+39|0]<<8)<<16>>16;J[a>>2]=c+40;z=(K[c+40|0]|K[c+41|0]<<8)<<16>>16;J[a>>2]=c+42;A=(K[c+42|0]|K[c+43|0]<<8)<<16>>16;J[a>> +2]=c+44;C=K[c+44|0]|K[c+45|0]<<8;J[a>>2]=c+46;c=d+44|0;if((Ci(c,47,0)|0)!=-1){e=K[d+55|0];a=e<<24>>24;a=(a|0)<0;if(!(a?J[d+48>>2]:e)|J[(a?J[d+44>>2]:c)>>2]!=46)break j}a=K[b+11|0];e=a<<24>>24;j=(e|0)<0?J[b+4>>2]:a;a=j+1|0;if(a>>>0<1073741808)break k;J[699344]=0;$(2959,d+32|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;break a}a=Z()|0;if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+43|0]>=0)break g;uc(J[d+32>>2]);break g}l:{if(a>>>0<=1){J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;H[d+43|0]=a;c=d+32|0;break l}c=a| +3;if(c>>>0>=1073741823){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break h}J[699344]=0;k=c+1|0;c=_(4,k<<2)|0;D=J[699344];J[699344]=0;if((D|0)==1)break h;J[d+36>>2]=a;J[d+32>>2]=c;J[d+40>>2]=k|-2147483648}a=j<<2;a=cd(c,(e|0)<0?J[b>>2]:b,a)+a|0;J[a>>2]=47;J[a+4>>2]=0;J[699344]=0;a=K[d+55|0];b=a<<24>>24<0;a=ga(2960,d+32|0,(b?J[d+44>>2]:d+44|0)|0,(b?J[d+48>>2]:a)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;c=J[a>>2];J[d+8>>2]=J[a+4>>2];b=K[a+7|0]|K[a+8|0]<<8|(K[a+9|0]<<16|K[a+ +10|0]<<24);H[d+11|0]=b;H[d+12|0]=b>>>8;H[d+13|0]=b>>>16;H[d+14|0]=b>>>24;J[a>>2]=0;J[a+4>>2]=0;b=K[a+11|0];J[a+8>>2]=0;if(H[d+55|0]<0)uc(J[d+44>>2]);J[d+44>>2]=c;a=K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14|0]<<24);H[d+51|0]=a;H[d+52|0]=a>>>8;H[d+53|0]=a>>>16;H[d+54|0]=a>>>24;J[d+48>>2]=J[d+8>>2];H[d+55|0]=b;if(H[d+43|0]>=0)break j;uc(J[d+32>>2])}J[699344]=0;b=_(4,128)|0;a=J[699344];J[699344]=0;m:{if((a|0)!=1){J[d+32>>2]=0;H[d+43|0]=0;J[699344]=0;e=hb(2961,b|0,d+68|0,d+32|0,d+44|0,f|0,l|0,g|0,m| +0,d+16|0,h|0,i|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,C|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){if(H[d+43|0]<0)uc(J[d+32>>2]);a=J[d+56>>2];if((a|0)==J[d+60>>2])break m;c=e+116|0;while(1){n:{o:{b=J[e+120>>2];if((b|0)!=J[e+124>>2]){if(H[a+11|0]>=0){f=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=f;J[b+8>>2]=J[a+8>>2];break o}f=J[a+4>>2];g=J[a>>2];J[699344]=0;ca(15,b|0,g|0,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break o;a=Z()|0;J[e+120>>2]=b;break g}J[699344]=0;da(2962,c|0,a|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break n;a=Z()|0;break g}J[e+120>>2]=b+12}a=a+12|0;if((a|0)!=J[d+60>>2])continue;break}break m}a=Z()|0;if(H[d+43|0]<0)uc(J[d+32>>2]);uc(b);break g}a=Z()|0;break g}if(H[d+55|0]<0)uc(J[d+44>>2]);b=J[d+56>>2];if(b){a=b;c=J[d+60>>2];if((a|0)!=(c|0)){while(1){a=c-12|0;if(H[c-1|0]<0)uc(J[a>>2]);c=a;if((b|0)!=(c|0))continue;break}a=J[d+56>>2]}J[d+60>>2]=b;uc(a)}if(H[d+79|0]<0)uc(J[d+68>>2]);fc=d+80|0;return e|0}a=Z()|0;if(H[d+43|0]>=0)break g;uc(J[d+32>>2]);break g}a=Z()|0}if(H[d+ +55|0]>=0)break b;uc(J[d+44>>2])}Ag(d+56|0);if(H[d+79|0]<0)uc(J[d+68>>2]);ba(a|0);B()}B()}function E4(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;m=fc-16|0;fc=m;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];f=J[c+20>>2];J[c+28>>2]=f;I[f+2>>1]=0;l=J[b+20>>2];b=J[b+28>>2];f=268435454;e=268435455;i=268435455;h=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[m+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];h=j>>31;i=I[a+8>>1];h=(i+((h^j)-h|0)|0)-1|0}if((b|0)!=(l|0)){J[m+4>>2]=l+8;o=(b-l>>3)-1|0; +b=I[l+10>>1];a=b>>31;e=I[l+8>>1];f=(e+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=i;n=0;break a}if((i|0)<=(h|0)){a=i;break a}a=J[m+8>>2];J[m+8>>2]=a+8;n=n-1|0;h=I[a+10>>1];b=h>>31;a=I[a+8>>1];h=(a+((b^h)-b|0)|0)-1|0}l=h;b:{c:{d:{if(!o){o=0;break d}if((e|0)>(f|0))break c}b=e;break b}b=J[m+4>>2];J[m+4>>2]=b+8;o=o-1|0;h=I[b+10>>1];f=h>>31;b=I[b+8>>1];f=(b+((f^h)-f|0)|0)-1|0}j=f;if(!((f|0)<(b|0)&(a|0)>(l|0))){i=(a|0)>(b|0)?a:b;f=((f|0)>(l|0)?l:f)-i|0;if((f|0)>=0){h=f+1|0;e:{f:{g:{if((a|0)<(b|0)){e=b-a|0; +f=J[m+8>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];h:{if((J[c>>2]+1|0)!=(a|0))break h;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break h;I[d+2>>1]=g-e;a=b;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=a;J[f+12>>2]=d;a=b;break g}if(!d){a=b;break e}d=J[f+4>>2];f=I[f>>1];xc(J[c+16>>2],d+((a|0)>(f|0)?a-f|0:0)|0,e);d=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(a|0))break j;f=I[d+2>>1];if((f|0)<=0)break j;I[d+2>>1]=e+f;f=J[c+16>>2];break i}J[c+ +28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=a;J[d+12>>2]=f}J[c+16>>2]=e+f;a=b;break g}if((a|0)<=(b|0))break e;e=a-b|0;f=J[m+4>>2];d=I[f+2>>1];if((d|0)<0){f=K[J[f+4>>2]];k:{if((J[c>>2]+1|0)!=(b|0))break k;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(f|0)!=K[J[d+4>>2]])break k;I[d+2>>1]=g-e;break g}H[J[c+16>>2]]=f;f=J[c+28>>2];J[c+28>>2]=f+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[f+10>>1]=0-e;I[f+8>>1]=b;J[f+12>>2]=d;break g}if(!d)break f;d=J[f+4>>2];f=I[f>>1];xc(J[c+16>>2],d+((b|0)>(f|0)?b-f|0:0)|0,e);d=J[c+28>> +2];l:{m:{if((J[c>>2]+1|0)!=(b|0))break m;f=I[d+2>>1];if((f|0)<=0)break m;I[d+2>>1]=e+f;f=J[c+16>>2];break l}J[c+28>>2]=d+8;f=J[c+16>>2];I[d+10>>1]=e;I[d+8>>1]=b;J[d+12>>2]=f}J[c+16>>2]=e+f}J[c>>2]=a-1}b=a}f=h;n:{o:{p:{q:{r:{e=J[m+4>>2];d=J[m+8>>2];switch((L[e+2>>1]>>>14&2|L[d+2>>1]>>>15)-1|0){case 2:break o;case 1:break p;case 0:break q;default:break r}}g=J[e+4>>2];e=I[e>>1];e=g+((e|0)<(i|0)?i-e|0:0)|0;g=J[d+4>>2];d=I[d>>1];d=g+((d|0)<(i|0)?i-d|0:0)|0;while(1){g=K[e|0]+K[d|0]|0;g=g>>>0>255?510-g| +0:g;if(g){H[J[c+16>>2]]=g;g=J[c+28>>2];s:{t:{if((J[c>>2]+1|0)!=(i|0))break t;k=I[g+2>>1];if((k|0)<=0)break t;I[g+2>>1]=k+1;k=J[c+16>>2];break s}J[c+28>>2]=g+8;k=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=k}J[c>>2]=i;J[c+16>>2]=k+1}e=e+1|0;d=d+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}d=J[e+4>>2];e=I[e>>1];e=d+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[e|0]+K[J[J[m+8>>2]+4>>2]]|0;d=d>>>0>255?510-d|0:d;if(d){H[J[c+16>>2]]=d;g=J[c+28>>2];u:{v:{if((J[c>>2]+1|0)!=(i|0))break v;d=I[g+2>>1];if((d|0)<= +0)break v;I[g+2>>1]=d+1;d=J[c+16>>2];break u}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]=d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=I[d>>1];e=J[d+4>>2]+((e|0)<(i|0)?i-e|0:0)|0;while(1){d=K[J[J[m+4>>2]+4>>2]]+K[e|0]|0;d=d>>>0>255?510-d|0:d;if(d){H[J[c+16>>2]]=d;g=J[c+28>>2];w:{x:{if((J[c>>2]+1|0)!=(i|0))break x;d=I[g+2>>1];if((d|0)<=0)break x;I[g+2>>1]=d+1;d=J[c+16>>2];break w}J[c+28>>2]=g+8;d=J[c+16>>2];I[g+10>>1]=1;I[g+8>>1]=i;J[g+12>>2]= +d}J[c>>2]=i;J[c+16>>2]=d+1}e=e+1|0;i=i+1|0;f=f-1|0;if(f)continue;break}break n}e=K[J[e+4>>2]]+K[J[d+4>>2]]|0;e=e>>>0>255?510-e|0:e;if(!e)break n;y:{z:{if((J[c>>2]+1|0)!=(i|0))break z;d=J[c+28>>2];g=I[d+2>>1];if((g|0)>=0|(e|0)!=K[J[d+4>>2]])break z;I[d+2>>1]=g-f;break y}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;d=J[c+16>>2];J[c+16>>2]=d+1;I[e+10>>1]=0-f;I[e+8>>1]=i;J[e+12>>2]=d}J[c>>2]=(f+i|0)-1}if((j|0)>(l|0)){e=b+h|0;h=268435454;i=268435455;f=j;continue}e=268435455;b=a+h|0;a=(j|0)<(l|0);i=a?b: +268435455;f=268435454;h=a?l:268435454;continue}if((a|0)<(b|0)){h=268435454;i=268435455;e=b;f=j;if((a|0)>(l|0))continue;g=l-a|0;d=g+1|0;j=J[m+8>>2];k=I[j+2>>1];A:{if((k|0)<0){e=K[J[j+4>>2]];B:{if((J[c>>2]+1|0)!=(a|0))break B;j=J[c+28>>2];k=I[j+2>>1];if((k|0)>=0|(e|0)!=K[J[j+4>>2]])break B;I[j+2>>1]=k-d;break A}H[J[c+16>>2]]=e;e=J[c+28>>2];J[c+28>>2]=e+8;j=J[c+16>>2];J[c+16>>2]=j+1;I[e+10>>1]=g^-1;I[e+8>>1]=a;J[e+12>>2]=j;break A}if(!k)continue;e=I[j>>1];xc(J[c+16>>2],J[j+4>>2]+((a|0)>(e|0)?a-e|0:0)| +0,d);j=J[c+28>>2];C:{D:{if((J[c>>2]+1|0)!=(a|0))break D;e=I[j+2>>1];if((e|0)<=0)break D;I[j+2>>1]=d+e;e=J[c+16>>2];break C}J[c+28>>2]=j+8;e=J[c+16>>2];I[j+10>>1]=d;I[j+8>>1]=a;J[j+12>>2]=e}J[c+16>>2]=d+e}J[c>>2]=l;e=b;continue}f=268435454;e=268435455;i=a;h=l;if((b|0)>(j|0))continue;g=j-b|0;d=g+1|0;a=J[m+4>>2];k=I[a+2>>1];E:{if((k|0)<0){a=K[J[a+4>>2]];F:{if((J[c>>2]+1|0)!=(b|0))break F;h=J[c+28>>2];k=I[h+2>>1];if((k|0)>=0|(a|0)!=K[J[h+4>>2]])break F;I[h+2>>1]=k-d;break E}H[J[c+16>>2]]=a;a=J[c+28>> +2];J[c+28>>2]=a+8;h=J[c+16>>2];J[c+16>>2]=h+1;I[a+10>>1]=g^-1;I[a+8>>1]=b;J[a+12>>2]=h;break E}if(!k)continue;h=J[a+4>>2];a=I[a>>1];xc(J[c+16>>2],h+((a|0)<(b|0)?b-a|0:0)|0,d);a=J[c+28>>2];G:{H:{if((J[c>>2]+1|0)!=(b|0))break H;h=I[a+2>>1];if((h|0)<=0)break H;I[a+2>>1]=d+h;h=J[c+16>>2];break G}J[c+28>>2]=a+8;h=J[c+16>>2];I[a+10>>1]=d;I[a+8>>1]=b;J[a+12>>2]=h}J[c+16>>2]=d+h}J[c>>2]=j;h=l;continue}break}fc=m+16|0}function wl(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;j=fc+-64|0;fc=j;J[j+48>>2]=13;J[j+32>>2]=13;J[j+16>>2]=13;a:{b:{c:{if((b|0)<0)break c;h=J[a+12>>2];if((h|0)<=(b|0))break c;if(!(J[a+1168>>2]==(b|0)&J[a+1172>>2]==(c|0))){r=a+1168|0;p=a+1192|0;if(J[p>>2]==(b|0)){f=24;i=p;if(J[a+1196>>2]==(c|0))break b}i=a+1216|0;if(J[i>>2]==(b|0)){f=48;if(J[a+1220>>2]==(c|0))break b}i=a+1240|0;if(J[i>>2]==(b|0)){f=72;if(J[a+1244>>2]==(c|0))break b}i=a+1264|0;if(J[i>>2]==(b|0)){f=96;if(J[a+1268>>2]==(c|0))break b}i=a+1288|0;if(J[i>>2]==(b|0)){f= +120;if(J[a+1292>>2]==(c|0))break b}i=a+1312|0;if(J[i>>2]==(b|0)){f=144;if(J[a+1316>>2]==(c|0))break b}i=a+1336|0;if(J[i>>2]==(b|0)){f=168;if(J[a+1340>>2]==(c|0))break b}i=a+1360|0;if(J[i>>2]==(b|0)){f=192;if(J[a+1364>>2]==(c|0))break b}i=a+1384|0;if(J[i>>2]==(b|0)){f=216;if(J[a+1388>>2]==(c|0))break b}i=a+1408|0;if(J[i>>2]==(b|0)){f=240;if(J[a+1412>>2]==(c|0))break b}i=a+1432|0;if(J[i>>2]==(b|0)){f=264;if(J[a+1436>>2]==(c|0))break b}i=a+1456|0;if(J[i>>2]==(b|0)){f=288;if(J[a+1460>>2]==(c|0))break b}i= +a+1480|0;if(J[i>>2]==(b|0)){f=312;if(J[a+1484>>2]==(c|0))break b}i=a+1504|0;if(J[i>>2]==(b|0)){f=336;if(J[a+1508>>2]==(c|0))break b}i=a+1528|0;if(J[i>>2]==(b|0)){f=360;if(J[a+1532>>2]==(c|0))break b}d:{e:{f:{f=J[a+8>>2];o=f+P(b,12)|0;switch(J[o+8>>2]-1|0){case 1:break e;case 0:break f;default:break c}}if(J[o+4>>2]!=(c|0))break c;J[j+48>>2]=5;n=vc(56);J[699344]=0;l=_(4,160)|0;f=J[699344];J[699344]=0;g:{h:{i:{j:{if((f|0)==1)break j;k=J[a>>2];g=J[J[k>>2]+92>>2];h=J[o>>2];f=J[a+4>>2];J[699344]=0;m=g; +g=j+48|0;h=na(m|0,k|0,f+h|0,0,0,g|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;h=ga(3669,l|0,a|0,h|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;h=ha(3467,n|0,a|0,h|0,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break j;rg(h,g,1,0,0,0,0,0,0);rg(h,j+32|0,1,0,0,0,0,0,0);rg(h,j+16|0,1,0,0,0,0,0,0);k:{if(J[j+48>>2]!=1|J[j+56>>2]!=(b|0)|(J[j+32>>2]!=1|J[j+40>>2]!=(c|0)))break k;if(J[j+16>>2]!=10)break k;if(!Ic(J[j+24>>2],784409))break g}yc(j+48|0);yc(j+32|0);yc(j+16|0);uc(Nk(h)); +break c}a=Z()|0;break h}a=Z()|0;uc(l)}uc(n);ba(a|0);B()}rg(h,d,0,J[a+1112>>2]?a+1124|0:0,J[a+1164>>2],J[a+1156>>2],b,c,e);yc(j+48|0);yc(j+32|0);yc(j+16|0);uc(Nk(h));break d}k=J[o>>2];if(!((k|0)<(h|0)&J[(f+P(k,12)|0)+8>>2]==1)){Cc(1,-1,796179,0);break c}q=J[(f+P(b,12)|0)+4>>2];f=0;l:{e=J[a+80>>2];if(!(!e|(k|0)!=J[e>>2])){f=J[a+1108>>2];J[a+596>>2]=f;J[a+1108>>2]=f+1;break l}g=J[a+592>>2];if((g|0)>=2){e=1;while(1){l=e<<2;h=J[(l+a|0)+80>>2];if(!(!h|(k|0)!=J[h>>2])){if(e&1){g=a+80|0;e=e-1|0;k=e<<2;J[g+ +l>>2]=J[k+g>>2];g=a+596|0;J[g+l>>2]=J[g+k>>2]}if(f){n=a+80|0;l=a+596|0;while(1){k=e<<2;f=k-4|0;g=f+n|0;J[k+n>>2]=J[g>>2];m=k+l|0;k=f+l|0;J[m>>2]=J[k>>2];m=g;f=e-2|0;g=f<<2;J[m>>2]=J[g+n>>2];J[k>>2]=J[g+l>>2];g=(e|0)>2;e=f;if(g)continue;break}}J[a+80>>2]=h;e=J[a+1108>>2];J[a+596>>2]=e;J[a+1108>>2]=e+1;e=h;break l}f=f+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}f=vc(20);J[699344]=0;h=ga(3670,f|0,a|0,k|0)|0;e=J[699344];J[699344]=0;m:{n:{if((e|0)!=1){if(J[h+16>>2])break n;e=J[h+8>>2];o:{if(!e)break o; +if(J[h+4>>2]>0){e=0;while(1){f=J[h+8>>2];J[699344]=0;$(3370,f+(e<<4)|0);f=J[699344];J[699344]=0;if((f|0)==1)break m;e=e+1|0;if((e|0)>2])continue;break}e=J[h+8>>2];if(!e)break o}uc(e)}e=J[h+12>>2];J[699344]=0;Mc(e);e=J[699344];J[699344]=0;if((e|0)==1)break m;uc(h);e=0;break l}a=Z()|0;uc(f);ba(a|0);B()}f=J[a+592>>2];if((f|0)==128){g=J[a+588>>2];if(g){e=J[g+8>>2];p:{if(!e)break p;if(J[g+4>>2]>0){e=0;while(1){f=J[g+8>>2];J[699344]=0;$(3370,f+(e<<4)|0);f=J[699344];J[699344]=0;if((f|0)==1)break m; +e=e+1|0;if((e|0)>2])continue;break}e=J[g+8>>2];if(!e)break p}uc(e)}e=J[g+12>>2];J[699344]=0;Mc(e);e=J[699344];J[699344]=0;if((e|0)==1)break m;uc(g);f=J[a+592>>2]-1|0}else f=127;J[a+592>>2]=f}if((f|0)>0){e=f;if(e&1){k=a+80|0;g=e<<2;l=k+g|0;m=k;e=e-1|0;k=e<<2;J[l>>2]=J[m+k>>2];m=g;g=a+596|0;J[m+g>>2]=J[g+k>>2]}if((f|0)!=1){o=a+80|0;n=a+596|0;while(1){l=e<<2;k=e-1|0;g=k<<2;f=g+o|0;J[l+o>>2]=J[f>>2];g=g+n|0;J[l+n>>2]=J[g>>2];m=f;e=e-2|0;f=e<<2;J[m>>2]=J[f+o>>2];J[g>>2]=J[f+n>>2];if(k>>>0>1)continue; +break}}f=J[a+592>>2]}J[a+80>>2]=h;J[a+592>>2]=f+1;e=J[a+1108>>2];J[a+596>>2]=e;J[a+1108>>2]=e+1;e=h;break l}ea(0)|0;Bc();B()}f=e;g=0;q:{if(!e)break q;r:{e=J[a+592>>2];if((e|0)<2)break r;e=e-1|0;if(J[a+1108>>2]-J[((e<<2)+a|0)+596>>2]>>>0<1001)break r;s:{g=J[((e<<2)+a|0)+80>>2];if(g){e=J[g+8>>2];t:{if(!e)break t;if(J[g+4>>2]>0){e=0;while(1){h=J[g+8>>2];J[699344]=0;$(3370,h+(e<<4)|0);h=J[699344];J[699344]=0;if((h|0)==1)break s;e=e+1|0;if((e|0)>2])continue;break}e=J[g+8>>2];if(!e)break t}uc(e)}e= +J[g+12>>2];J[699344]=0;Mc(e);e=J[699344];J[699344]=0;if((e|0)==1)break s;uc(g);e=J[a+592>>2]-1|0}J[((e<<2)+a|0)+80>>2]=0;J[a+592>>2]=e;break r}ea(0)|0;Bc();B()}if(!(!((q|0)<0|(q|0)>=J[f+4>>2])&J[J[f+12>>2]+(q<<2)>>2]==(b|0))){J[d>>2]=5;g=1;break q}Pe(J[f+8>>2]+(q<<4)|0,d);g=1}if(!g)break c}if(J[i>>2]>=0)yc(a+1536|0);cd(p,r,360);J[a+1172>>2]=c;J[a+1168>>2]=b;Pe(d,a+1176|0);break a}Pe(a+1176|0,d);break a}J[d>>2]=5;break a}g=J[i>>2];h=J[i+4>>2];e=J[i+8>>2];J[j+8>>2]=J[i+20>>2];b=J[i+16>>2];J[j>>2]=J[i+ +12>>2];J[j+4>>2]=b;cd(p,r,f);c=a+1176|0;J[c>>2]=e;J[a+1168>>2]=g;J[a+1172>>2]=h;b=J[j+4>>2];J[a+1180>>2]=J[j>>2];J[a+1184>>2]=b;J[a+1188>>2]=J[j+8>>2];Pe(c,d)}fc=j- -64|0;return d|0}function ju(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;a:{c=J[a+36>>2];d=J[c+16>>2];b:{if(K[d|0]!=60|K[d+1|0]!=33|(K[d+2|0]!=45|K[d+3|0]!=45))break b;m=J[a+172>>2];J[a+172>>2]=5;k=J[c+56>>2];J[a+200>>2]=J[a+200>>2]+4;J[c+16>>2]=d+4;J[c+32>>2]=J[c+32>>2]+4;d=K[d+4|0];if((d|0)==37){Yd(a);c=J[a+36>>2];d=K[J[c+ +16>>2]]}c:{if(d&255)break c;if((Nd(c)|0)>0)break c;He(a)}c=J[a+36>>2];d:{if(J[a+292>>2])break d;d=J[c+16>>2];if(!((d-J[c+12>>2]|0)<501|(J[c+20>>2]-d|0)>499)){_g(a);c=J[a+36>>2];if(J[a+292>>2])break d}if((J[c+20>>2]-J[c+16>>2]|0)>249)break d;Rd(a);c=J[a+36>>2]}b=J[c+16>>2];f=K[b|0]==10;j=100;d=0;e:{while(1){f:{if(!(f&1)){i=J[c+32>>2];break f}f=J[c+28>>2];g=b;while(1){i=1;J[c+32>>2]=1;f=f+1|0;J[c+28>>2]=f;e=K[g+1|0];b=g+1|0;g=b;if((e|0)==10)continue;break}}while(1){e=d;while(1){d=H[b|0];if(!(!((d|0)> +45|(d|0)==9)&(d-32&255)>>>0>12)){i=i+1|0;b=b+1|0;continue}J[c+32>>2]=i;d=K[b|0];if((d|0)==10){f=J[c+28>>2];g=b;while(1){i=1;J[c+32>>2]=1;f=f+1|0;J[c+28>>2]=f;d=K[g+1|0];b=g+1|0;g=b;if((d|0)==10)continue;break}continue}break}f=J[c+16>>2];g:{if((f|0)==(b|0)){d=e;break g}g=J[a>>2];if(!g){d=e;break g}if(!J[g+80>>2]){d=e;break g}f=b-f|0;h:{if(!e){h=0;i:{if((d|0)==45){e=1;if(K[b+1|0]==45)break i}e=100}j=e+f|0;d=kc[J[663198]](j)|0;if(d)break h;break a}d=f+h|0;if(d+1>>>0>>0){d=e;break h}j=(d+j|0)+100| +0;d=kc[J[663200]](e,j)|0;if(d)break h;kc[J[663199]](e);break a}xc(d+h|0,J[J[a+36>>2]+16>>2],f);h=f+h|0;H[h+d|0]=0}if(!(K[a+362|0]&8|h>>>0<15000001)){Uf(a,45,15119,0);kc[J[663199]](d);return}c=J[a+36>>2];J[c+16>>2]=b;f=b;e=K[b|0];if((e|0)==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;f=b+1|0;e=K[b+1|0]}j:{if(!((e&255)!=13|K[f+1|0]!=10)){J[c+32>>2]=1;J[c+16>>2]=f+1;J[c+28>>2]=J[c+28>>2]+1;b=f+2|0;g=K[f+2|0];break j}k:{if(J[a+292>>2])break k;if(!((b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)){_g(a);if(J[a+ +292>>2])break k}b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break k;Rd(a)}if(J[a+172>>2]==-1){kc[J[663199]](d);return}c=J[a+36>>2];b=J[c+16>>2];g=K[b|0];if((g|0)!=45)break j;l:{if(K[b+1|0]!=45){g=J[c+32>>2];break l}if(K[b+2|0]==62){if((k|0)!=J[c+56>>2]){oe(a,90,29985);c=J[a+36>>2];b=J[c+16>>2]}J[a+200>>2]=J[a+200>>2]+3;J[c+16>>2]=b+3;J[c+32>>2]=J[c+32>>2]+3;b=K[b+3|0];if((b|0)==37){Yd(a);c=J[a+36>>2];b=K[J[c+16>>2]]}m:{if(b&255)break m;if((Nd(c)|0)>0)break m;He(a)}n:{o:{p:{b=J[a>>2];if(!b)break p; +b=J[b+80>>2];if(J[a+212>>2]|!b)break p;e=J[a+4>>2];if(d){kc[b|0](e,d);break o}kc[b|0](e,39197);break n}if(!d)break n}kc[J[663199]](d)}if(J[a+172>>2]!=-1)break e;break b}q:{if(d){Uf(a,80,32008,d);break q}Uf(a,80,31014,0)}b=b+1|0;c=J[a+36>>2];g=J[c+32>>2]+1|0;J[c+32>>2]=g}i=g+1|0;J[c+32>>2]=i;b=b+1|0;continue}break}f=0;if((g&255)==9|g<<24>>24>31)continue;break}i=0;c=fc-16|0;fc=c;k=J[J[a+36>>2]+56>>2];r:{s:{if(d)break s;h=0;j=100;d=kc[J[663198]](100)|0;if(d)break s;se(a,0);break r}t:{if(J[a+292>>2])break t; +b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break t;Rd(a)}u:{f=Mf(a,c+12|0);if(!f)break u;v:{w:{if((f|0)<=255){if((f|0)>31)break v;if(!(1<>>0>13)break w;break v}if(f-65536>>>0<1048576|f>>>0<55296|f-57344>>>0<8190)break v}El(a,9,36188,f);kc[J[663199]](d);break r}b=J[a+36>>2];e=J[b+16>>2];x:{if(K[e|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break x}J[b+32>>2]=J[b+32>>2]+1}g=b;b=e+J[c+12>>2]|0;J[g+16>>2]=b;if(K[b|0]==37)Yd(a);b=Mf(a,c+8|0);if(!b)break u;y:{z:{if((b|0)<=255){if((b|0)>31)break y; +if(!(1<>>0>13)break z;break y}if(b-65536>>>0<1048576|b>>>0<55296|b-57344>>>0<8190)break y}El(a,9,36188,f);kc[J[663199]](d);break r}e=J[a+36>>2];g=J[e+16>>2];A:{if(K[g|0]==10){J[e+32>>2]=1;J[e+28>>2]=J[e+28>>2]+1;break A}J[e+32>>2]=J[e+32>>2]+1}l=e;e=g+J[c+8>>2]|0;J[l+16>>2]=e;if(K[e|0]==37)Yd(a);e=Mf(a,c+4|0);if(!e)break u;while(1){g=b;B:{C:{D:{E:{F:{b=e;if((b|0)<=255){if((b|0)>31)break F;if(1<>>0<=13:0)break B;H[d+h|0]=0;if(b)break D;Uf(a,45,32049,d);break C}if(b-65536>>>0<1048576| +b>>>0<55296)break B;if(b-57344>>>0>=8190)break E;break B}if((f|0)!=45|(g|0)!=45|(b|0)!=62)break B;H[d+h|0]=0;if((k|0)!=J[J[a+36>>2]+56>>2])oe(a,90,30036);Zd(a);b=J[a>>2];if(!b)break C;b=J[b+80>>2];if(J[a+212>>2]|!b)break C;kc[b|0](J[a+4>>2],d);break C}H[d+h|0]=0}El(a,9,36188,b)}kc[J[663199]](d);break r}G:{if((f|0)!=45|(g|0)!=45|(J[a+172>>2]==-1?J[a+212>>2]:0))break G;J[a+84>>2]=80;J[c>>2]=28870;Hc(0,0,0,a,0,1,80,3,0,0,0,0,32906,c);J[a+12>>2]=0;if(J[a+288>>2])break G;J[a+212>>2]=1}if(!(K[a+362|0]& +8|h>>>0<15000001)){Uf(a,45,15119,0);kc[J[663199]](d);break r}H:{if(h+5>>>0>>0){e=d;break H}j=j<<1;e=kc[J[663200]](d,j)|0;if(e)break H;kc[J[663199]](d);se(a,0);break r}d=e;I:{if(J[c+12>>2]==1){H[d+h|0]=f;h=h+1|0;break I}h=ej(d+h|0,f)+h|0}J[c+12>>2]=J[c+8>>2];J[c+8>>2]=J[c+4>>2];J:{if(i>>>0<50){i=i+1|0;break J}K:{if(J[a+292>>2])break K;e=J[a+36>>2];if((J[e+20>>2]-J[e+16>>2]|0)>249)break K;Rd(a)}i=0;if(J[a+172>>2]!=-1)break J;kc[J[663199]](d);break r}e=J[a+36>>2];f=J[e+16>>2];L:{if(K[f|0]==10){J[e+ +32>>2]=1;J[e+28>>2]=J[e+28>>2]+1;break L}J[e+32>>2]=J[e+32>>2]+1}l=e;e=f+J[c+4>>2]|0;J[l+16>>2]=e;if(K[e|0]==37)Yd(a);f=g;e=Mf(a,c+4|0);if(e)continue;M:{if(J[a+292>>2])break M;e=J[a+36>>2];g=J[e+16>>2];if(!((g-J[e+12>>2]|0)<501|(J[e+20>>2]-g|0)>499)){_g(a);if(J[a+292>>2])break M}e=J[a+36>>2];if((J[e+20>>2]-J[e+16>>2]|0)>249)break M;Rd(a)}e=Mf(a,c+4|0);continue}}Uf(a,45,35481,0);kc[J[663199]](d)}fc=c+16|0}J[a+172>>2]=m}return}se(a,0);J[a+172>>2]=m}function HCa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e= +e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=fc-96|0;fc=g;J[g+88>>2]=0;J[g+80>>2]=0;j=J[685894];J[g+84>>2]=j;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:switch(J[a+8>>2]-1|0){case 0:J[g>>2]=J[a+20>>2];J[699344]=0;f=ga(5350,g+80|0,2390383,g|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1)break i;break c;case 1:f=J[a+24>>2];if(f)i=J[f+8>>2];k=J[(f?f+12|0:2743576)>>2];J[699344]=0;j=aa(5149,g+72|0,2391080)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;f=J[j>>2];l:{if(f){h=J[J[f>>2]+28>>2];J[699344]=0;ca(h|0,g- -64|0,f|0,1); +f=J[699344];J[699344]=0;if((f|0)!=1)break l;f=Z()|0;wc(j);break b}J[g+64>>2]=0}J[699344]=0;aa(5153,g+80|0,g- -64|0)|0;f=J[699344];J[699344]=0;m:{if((f|0)!=1){f=J[g+64>>2];J[g+64>>2]=0;if(!f)break m;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[699344];J[699344]=0;if((l|0)!=1){if(h)break m;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break m}break a}f=Z()|0;zc(g- -64|0);wc(j);break b}f=J[g+80>>2];J[g+84>>2]=J[(f?f+12|0:2743576)>>2];wc(j);j=K[k|0];n:{if(!j|(i|0)<=0)break n;while(1){f=0; +o:{p:{q:{r:{s:{while(1){h=K[f+k|0];if(h>>>0<32|(h|0)==34|((h|0)==92|(h|0)==127))break s;f=f+1|0;if((i|0)!=(f|0))continue;break}f=i;break r}if(!f)break q}J[699344]=0;j=ga(5339,g+56|0,k|0,f|0)|0;h=J[699344];J[699344]=0;t:{if((h|0)!=1){J[699344]=0;ca(5292,g- -64|0,g+80|0,j|0);h=J[699344];J[699344]=0;if((h|0)==1)break t;h=J[g+64>>2];u:{if(h){l=J[J[h>>2]+28>>2];J[699344]=0;ca(l|0,g+48|0,h|0,1);h=J[699344];J[699344]=0;if((h|0)!=1)break u;f=Z()|0;break e}J[g+48>>2]=0}J[699344]=0;aa(5153,g+80|0,g+48|0)|0; +h=J[699344];J[699344]=0;if((h|0)!=1){h=J[g+48>>2];J[g+48>>2]=0;if(!h)break p;J[699344]=0;l=J[h+4>>2]-1|0;J[h+4>>2]=l;m=J[699344];J[699344]=0;if((m|0)!=1){if(l)break p;J[699344]=0;$(5147,h|0);h=J[699344];J[699344]=0;if((h|0)!=1)break p}break a}f=Z()|0;zc(g+48|0);break e}f=Z()|0;break b}f=Z()|0;wc(j);break b}J[g+16>>2]=j&255;cg(g- -64|0,2392164,g+16|0);f=K[k|0];if((f|0)==34){H[g+65|0]=34;f=K[k|0]}if((f&255)==92){H[g+65|0]=92;f=K[k|0]}if((f&255)==9){H[g+65|0]=116;f=K[k|0]}if((f&255)==10){H[g+65|0]=110; +f=K[k|0]}if((f&255)==13){H[g+65|0]=114;f=K[k|0]}if((f&255)==8){H[g+65|0]=98;f=K[k|0]}v:{w:{if((f&255)==12){H[g+65|0]=102;break w}if((K[g+65|0]-52&255)>>>0>251)break v}H[g+66|0]=0}J[699344]=0;j=aa(5149,g+40|0,g- -64|0)|0;f=J[699344];J[699344]=0;x:{if((f|0)!=1){J[699344]=0;ca(5292,g+48|0,g+80|0,j|0);f=J[699344];J[699344]=0;if((f|0)==1)break x;f=J[g+48>>2];y:{if(f){h=J[J[f>>2]+28>>2];J[699344]=0;ca(h|0,g+92|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break y;f=Z()|0;break f}J[g+92>>2]=0}J[699344]=0; +aa(5153,g+80|0,g+92|0)|0;f=J[699344];J[699344]=0;z:{if((f|0)!=1){f=J[g+92>>2];J[g+92>>2]=0;if(!f)break z;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;l=J[699344];J[699344]=0;if((l|0)!=1){if(h)break z;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break z}break a}f=Z()|0;zc(g+92|0);break f}f=J[g+80>>2];J[g+84>>2]=J[(f?f+12|0:2743576)>>2];wc(g+48|0);wc(j);k=k+1|0;i=i-1|0;break o}f=Z()|0;break b}f=Z()|0;wc(j);break b}h=J[g+80>>2];J[g+84>>2]=J[(h?h+12|0:2743576)>>2];wc(g- -64|0);wc(j);k=f+k|0; +i=i-f|0}j=K[k|0];if(!j)break n;if((i|0)>0)continue;break}}J[699344]=0;i=aa(5149,g+48|0,2391080)|0;f=J[699344];J[699344]=0;A:{if((f|0)!=1){J[699344]=0;ca(5292,g- -64|0,g+80|0,i|0);f=J[699344];J[699344]=0;if((f|0)==1)break A;f=J[g+64>>2];B:{if(f){k=J[J[f>>2]+28>>2];J[699344]=0;ca(k|0,g+92|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break B;f=Z()|0;break g}J[g+92>>2]=0}J[699344]=0;aa(5153,g+80|0,g+92|0)|0;f=J[699344];J[699344]=0;C:{if((f|0)!=1){f=J[g+92>>2];J[g+92>>2]=0;if(!f)break C;J[699344]=0;k= +J[f+4>>2]-1|0;J[f+4>>2]=k;j=J[699344];J[699344]=0;if((j|0)!=1){if(k)break C;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break C}break a}f=Z()|0;zc(g+92|0);break g}f=J[g+80>>2];J[g+84>>2]=J[(f?f+12|0:2743576)>>2];wc(g- -64|0);wc(i);f=g+80|0;break i}f=Z()|0;break b}f=Z()|0;wc(i);break b;case 2:i=2392495;f=a+32|0;break j;case 3:break k;default:break h}i=2393039;f=a+12|0}f=J[f>>2];J[g+32>>2]=J[(f?f+12|0:2743576)>>2];J[699344]=0;f=ga(5350,g+80|0,i|0,g+32|0)|0;i=J[699344];J[699344]=0;if((i| +0)==1)break c}f=J[f>>2];j=J[(f?f+12|0:2743576)>>2]}e=e?e:g+88|0;D:{E:{F:{if(c)break F;if(Yc(j)+J[e>>2]>>>0<71)break F;H[g+64|0]=10;i=J[J[b>>2]+12>>2];f=0;J[699344]=0;ga(i|0,b|0,g- -64|0,1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break E;H[g+64|0]=32;if((d|0)>0)while(1){i=J[J[b>>2]+12>>2];J[699344]=0;ga(i|0,b|0,g- -64|0,1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break D;f=f+1|0;if((f|0)!=(d|0))continue;break}J[e>>2]=d}d=Yc(j);f=J[J[b>>2]+12>>2];J[699344]=0;ga(f|0,b|0,j|0,d|0)|0;d=J[699344];J[699344]=0; +if((d|0)==1)break c;H[g+64|0]=32;d=J[J[b>>2]+12>>2];J[699344]=0;ga(d|0,b|0,g- -64|0,1)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=(Yc(j)+J[e>>2]|0)+1|0;J[e>>2]=d;if(J[a+8>>2]==4){i=Yc(j);G:{H:{f=J[a+48>>2];if(f){a=d-i|0;while(1){d=J[f+8>>2];J[699344]=0;ma(5357,d|0,b|0,c|0,a|0,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break H;f=J[f>>2];if(f)continue;break}}a=J[J[b>>2]+12>>2];J[699344]=0;ga(a|0,b|0,2393663,2)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break G;f=Z()|0;break b}f=Z()|0;break b}J[e>>2]=J[e>>2]+ +2}wc(g+80|0);fc=g+96|0;return}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break b}wc(g- -64|0);wc(i);break b}wc(g+48|0);wc(j);break b}wc(g- -64|0);wc(j);break b}f=Z()|0;break b}f=Z()|0}wc(g+80|0);ba(f|0);B()}ea(0)|0;Bc();B()}function o3(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if(!e)return 0;if(J[e>>2]<=0){if(K[c|0]?!c|!d:1){J[e>>2]=1;return 0}g=fc-336|0;fc=g;J[g+332>>2]=0;a:{b:{if(!a)break b;if(!Ic(a,731834))break b;if(!ud(a,732381,9))break b;if(!ud(a,732774,8))break b;h=1;l=0;break a}l=1}f=g+ +276|0;H[f+8|0]=0;J[f+4>>2]=40;J[f>>2]=f+9;J[g+328>>2]=0;H[J[g+276>>2]]=0;J[699344]=0;f=g+220|0;H[f+8|0]=0;J[f+4>>2]=40;J[f>>2]=f+9;f=J[699344];J[699344]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{if((f|0)!=1){J[g+272>>2]=0;H[J[g+220>>2]]=0;J[699344]=0;j=g+164|0;f=j;H[f+8|0]=0;J[f+4>>2]=40;J[f>>2]=f+9;f=J[699344];J[699344]=0;if((f|0)==1)break k;J[g+216>>2]=0;H[J[g+164>>2]]=0;J[699344]=0;f=g+108|0;H[f+8|0]=0;J[f+4>>2]=40;J[f>>2]=f+9;f=J[699344];J[699344]=0;if((f|0)==1)break j;J[g+160>>2]=0;H[J[g+108>>2]]=0;if(a)break i; +a=0;J[699344]=0;f=hj(g+100|0,733043);h=J[699344];J[699344]=0;if((h|0)==1)break g;h=J[f+4>>2];f=J[f>>2];J[699344]=0;ha(3049,j|0,f|0,h|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break h;break g}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}f=at(a,47);i=eg(a,47);J[699344]=0;j=a?K[a|0]==47:0;k=J[699344];J[699344]=0;if((k|0)==1)break g;l:{if(!(!j&(f|0)==(i|0))){if(f){J[699344]=0;f=hj(g+92|0,f+1|0);h=J[699344];J[699344]=0;if((h|0)==1)break g;j=g+96|0;break l}J[699344]=0;f=hj(g+84|0,a);h=J[699344];J[699344]= +0;if((h|0)==1)break g;j=g+88|0;break l}j=eg(a,45);if(j){J[699344]=0;i=hj(g+76|0,j+1|0);k=J[699344];J[699344]=0;if((k|0)==1)break g;k=J[i+4>>2];i=J[i>>2];J[699344]=0;ha(3049,g+108|0,i|0,k|0,e|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break g;if(!h){J[699344]=0;f=hj(g+68|0,733043);h=J[699344];J[699344]=0;if((h|0)==1)break g;j=g+72|0;break l}J[699344]=0;ha(3049,g+164|0,a|0,j-a|0,e|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break g;a=f?a:J[g+164>>2];break h}if(!h){J[699344]=0;f=hj(g+60|0,733043);h=J[699344]; +J[699344]=0;if((h|0)==1)break g;j=g- -64|0;break l}J[699344]=0;f=hj(g+52|0,a);h=J[699344];J[699344]=0;if((h|0)==1)break g;j=g+56|0}h=J[j>>2];f=J[f>>2];J[699344]=0;ha(3049,g+164|0,f|0,h|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g}J[699344]=0;f=g+276|0;ha(3049,f|0,J[g+164>>2],J[g+216>>2],e|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break g;J[699344]=0;h=g+220|0;ha(3049,h|0,J[g+164>>2],J[g+216>>2],e|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break g;j=J[g+328>>2];if(J[g+160>>2]){J[699344]=0;f=ga(3047, +f|0,47,e|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break g;J[699344]=0;ha(3049,f|0,J[g+108>>2],J[g+160>>2],e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;f=ga(3047,h|0,47,e|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break g;J[699344]=0;ha(3049,f|0,J[g+108>>2],J[g+160>>2],e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g}J[699344]=0;h=g+276|0;i=ga(3047,h|0,47,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;f=hj(g+44|0,c);k=J[699344];J[699344]=0;if((k|0)==1)break g;k=J[f+ +4>>2];f=J[f>>2];J[699344]=0;ha(3049,i|0,f|0,k|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;i=g+220|0;k=ga(3047,i|0,47,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;f=hj(g+36|0,c);m=J[699344];J[699344]=0;if((m|0)==1)break g;m=J[f+4>>2];f=J[f>>2];J[699344]=0;ha(3049,k|0,f|0,m|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;if(!(!b|!K[b|0])){J[699344]=0;f=hj(g+28|0,733381);k=J[699344];J[699344]=0;if((k|0)==1)break g;k=J[f+4>>2];f=J[f>>2];J[699344]=0;h=ha(3049, +h|0,f|0,k|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;f=hj(g+20|0,b);k=J[699344];J[699344]=0;if((k|0)==1)break g;k=J[f+4>>2];f=J[f>>2];J[699344]=0;ha(3049,h|0,f|0,k|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;f=hj(g+12|0,733381);h=J[699344];J[699344]=0;if((h|0)==1)break g;h=J[f+4>>2];f=J[f>>2];J[699344]=0;h=ha(3049,i|0,f|0,h|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;f=hj(g+4|0,b);i=J[699344];J[699344]=0;if((i|0)==1)break g;i=J[f+4>> +2];f=J[f>>2];J[699344]=0;ha(3049,h|0,f|0,i|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g}J[699344]=0;f=J[g+220>>2];h=pa(3046)|0;i=J[699344];J[699344]=0;if((i|0)==1)break g;j=f+j|0;m:{n:{if(!l)break n;if(Ic(b,733528))break n;o:{if(!Ic(c,733740))break o;if(!Ic(c,733832))break o;if(!Ic(c,734053))break o;if(Ic(c,734300))break n}J[699344]=0;f=_(3053,e|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break g;if(!K[f|0])break n;J[699344]=0;f=Ta(3054,731309,f|0,j|0,731309,b|0,c|0,d|0,0,g+332|0,e|0)|0;i=J[699344]; +J[699344]=0;if((i|0)==1)break g;if(f)break m;f=0;if(J[e>>2]>0)break m}f=J[693226];if((f|0)==2){J[699344]=0;da(3055,l|0,g+332|0);f=J[699344];J[699344]=0;if((f|0)==1)break g;f=0;if(J[e>>2]>0)break m;f=J[693226]}p:{if(f&-3)break p;q:{if(h){if(!(!K[h|0]&l))break q;break p}if(l)break p}J[699344]=0;f=Ta(3054,J[g+164>>2],h|0,j|0,(a?a:733043)|0,b|0,c|0,d|0,0,g+332|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;if(f)break m;f=0;if(J[e>>2]>0)break m;f=J[693226]}if(f>>>0<=1){f=0;J[699344]=0;da(3055,l| +0,g+332|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;if(J[e>>2]>0)break m;f=J[693226]}r:{if((f|0)==3){f=0;J[699344]=0;da(3055,l|0,g+332|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;if(J[e>>2]<=0)break r;break m}f=0;if(J[e>>2]>0)break m}a=J[g+332>>2];J[e>>2]=(a|0)<=0?4:a}Eh(g+108|0);Eh(g+164|0);Eh(g+220|0);Eh(g+276|0);fc=g+336|0;break c}a=Z()|0;Eh(g+108|0)}Eh(g+164|0)}Eh(g+220|0)}Eh(g+276|0);ba(a|0);B()}}return f}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=Q(0),l= +0,m=0,n=Q(0),o=Q(0),p=0,q=0;a:{b:while(1){l=b-4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f>>2;switch(a|0){case 5:break j;case 3:break k;case 2:break l;case 0:case 1:break e;case 4:break h;default:break i}}e=b-4|0;d=J[e>>2];b=J[J[c>>2]+16>>2];a=J[f>>2];if(!(N[(d<<2)+b>>2]>2]))break e;J[f>>2]=d;J[e>>2]=a;return}e=J[J[c>>2]+16>>2];d=b-4|0;b=J[d>>2];o=N[e+(b<<2)>>2];a=J[f+4>>2];n=N[e+(a<<2)>>2];c=J[f>>2];k=N[e+(c<<2)>>2];if(!(no))break e;J[f+4>>2]=b;J[d>>2]=a;b= +J[f+4>>2];c=J[f>>2];if(!(N[e+(b<<2)>>2]>2]))break e;break a}if(n>o){J[f>>2]=b;J[d>>2]=c;return}J[f+4>>2]=c;J[f>>2]=a;a=J[d>>2];if(!(k>N[e+(a<<2)>>2]))break e;J[f+4>>2]=a;J[d>>2]=c;return}ry(f,f+4|0,f+8|0,f+12|0,c);e=J[J[c>>2]+16>>2];d=b-4|0;b=J[d>>2];a=J[f+12>>2];if(!(N[e+(b<<2)>>2]>2]))break e;J[f+12>>2]=b;J[d>>2]=a;b=J[f+12>>2];k=N[e+(b<<2)>>2];a=J[f+8>>2];if(!(k>2]))break e;J[f+8>>2]=b;J[f+12>>2]=a;a=J[f+4>>2];if(!(k>2]))break e;J[f+8>>2]=a;J[f+4>> +2]=b;c=J[f>>2];if(!(k>2]))break e;break a}if((a|0)<=30){a=f+4|0;g=f+8|0;i=J[J[c>>2]+16>>2];e=J[f+8>>2];o=N[i+(e<<2)>>2];d=J[f+4>>2];n=N[i+(d<<2)>>2];c=J[f>>2];k=N[i+(c<<2)>>2];m:{n:{if(!(no))break m;J[a>>2]=e;J[g>>2]=d;j=f;h=a;if(k>o)break n;break m}j=f;h=g;if(n>o)break n;J[f+4>>2]=c;J[f>>2]=d;j=a;if(!(k>o))break m}J[j>>2]=e;J[h>>2]=c}c=f+12|0;if((c|0)==(b|0))break e;while(1){a=c;d=J[a>>2];k=N[i+(d<<2)>>2];e=J[g>>2];if(k>2]){while(1){o:{J[a>>2]=e;a=g;if((f|0)== +(a|0)){a=f;break o}g=a-4|0;e=J[g>>2];if(k>2])continue}break}J[a>>2]=d}g=c;a=g+4|0;c=a;if((a|0)!=(b|0))continue;break}break e}if(!d){if((b|0)==(f|0))break e;j=c;d=b;if((b|0)!=(f|0)){h=b-f>>2;if((h|0)>=2){q=J[c>>2];p=h-2>>>1|0;b=p;while(1){i=b;p:{if((b|0)>(p|0))break p;c=(b<<2)+f|0;e=b<<1;a=e|1;b=(a<<2)+f|0;e=e+2|0;q:{if((e|0)>=(h|0)){g=J[q+16>>2];break q}g=J[q+16>>2];if(!(N[g+(J[b>>2]<<2)>>2]>2]<<2)+g>>2]))break q;b=b+4|0;a=e}l=J[c>>2];k=N[(l<<2)+g>>2];m=J[b>>2];if(k>N[(m<<2)+ +g>>2])break p;while(1){r:{e=b;J[c>>2]=m;if((a|0)>(p|0))break r;a=a<<1;c=a|1;b=(c<<2)+f|0;a=a+2|0;s:{if((h|0)<=(a|0)){a=c;break s}if(!(N[(J[b>>2]<<2)+g>>2]>2]<<2)+g>>2])){a=c;break s}b=b+4|0}c=e;m=J[b>>2];if(!(k>N[(m<<2)+g>>2]))continue}break}J[e>>2]=l}b=i-1|0;if((i|0)>0)continue;break}}if((h|0)>=2)while(1){i=h;l=i-2>>>1|0;q=J[j>>2];p=J[f>>2];b=0;a=f;while(1){e=b<<1;c=e|1;g=a;m=(b<<2)+a|0;a=m+4|0;e=e+2|0;t:{if((e|0)>=(i|0)){b=c;break t}b=c;h=J[q+16>>2];c=m+8|0;if(!(N[h+(J[m+4>>2]<<2)>>2]< +N[h+(J[c>>2]<<2)>>2]))break t;a=c;b=e}J[g>>2]=J[a>>2];if((b|0)<=(l|0))continue;break}d=d-4|0;u:{if((d|0)==(a|0)){J[a>>2]=p;break u}J[a>>2]=J[d>>2];J[d>>2]=p;b=(a-f|0)+4>>2;if((b|0)<2)break u;l=J[q+16>>2];e=J[a>>2];k=N[l+(e<<2)>>2];b=b-2>>>1|0;g=(b<<2)+f|0;h=J[g>>2];if(!(k>N[l+(h<<2)>>2]))break u;while(1){v:{c=g;J[a>>2]=h;if(!b)break v;a=g;b=b-1>>>1|0;g=(b<<2)+f|0;h=J[g>>2];if(k>N[l+(h<<2)>>2])continue}break}J[c>>2]=e}h=i-1|0;if((i|0)>2)continue;break}}return}j=(a<<1&-4)+f|0;w:{if(a>>>0>=1E3){a=a& +-4;m=a+f|0;i=a+j|0;h=ry(f,m,j,i,c);a=J[J[c>>2]+16>>2];g=J[l>>2];e=J[i>>2];if(!(N[a+(g<<2)>>2]>2]))break w;J[i>>2]=g;J[l>>2]=e;g=J[i>>2];e=J[j>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+1|0;break w}J[j>>2]=g;J[i>>2]=e;g=J[j>>2];e=J[m>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+2|0;break w}J[m>>2]=g;J[j>>2]=e;g=J[m>>2];e=J[f>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+3|0;break w}J[f>>2]=g;J[m>>2]=e;h=h+4|0;break w}a=J[J[c>>2]+16>>2];g=J[l>>2];o=N[a+(g<<2)>>2];e=J[j>>2];n=N[(e<<2)+a>> +2];i=J[f>>2];k=N[(i<<2)+a>>2];x:{if(!(no))break w;J[j>>2]=g;J[l>>2]=e;h=1;g=J[j>>2];e=J[f>>2];if(!(N[(g<<2)+a>>2]>2]))break w;J[f>>2]=g;J[j>>2]=e;break x}if(n>o){J[f>>2]=g;J[l>>2]=i;h=1;break w}J[f>>2]=e;J[j>>2]=i;h=1;e=J[l>>2];if(!(k>N[(e<<2)+a>>2]))break w;J[j>>2]=e;J[l>>2]=i}h=2}d=d-1|0;g=l;i=J[f>>2];n=N[(i<<2)+a>>2];k=N[(J[j>>2]<<2)+a>>2];if(!(n>2];if(n>2])break f;if((e|0)==(l|0))break e;while(1){g=J[e>> +2];if(n>2]){J[e>>2]=j;J[l>>2]=g;e=e+4|0;break f}e=e+4|0;if((l|0)!=(e|0))continue;break}break e}e=J[g>>2];if(!(k>N[(e<<2)+a>>2]))continue;break}J[f>>2]=e;J[g>>2]=i;h=h+1|0}e=f+4|0;if(g>>>0<=e>>>0)break g;while(1){k=N[(J[j>>2]<<2)+a>>2];while(1){i=e;e=e+4|0;p=J[i>>2];if(k>N[(p<<2)+a>>2])continue;break}while(1){g=g-4|0;m=J[g>>2];if(!(k>N[(m<<2)+a>>2]))continue;break}if(g>>>0>>0){e=i;break g}else{J[i>>2]=m;J[g>>2]=p;j=(j|0)==(i|0)?g:j;h=h+1|0;continue}}}ry(f,f+4|0,f+8|0,b-4|0,c);break e}y:{if((e| +0)==(j|0))break y;g=J[j>>2];k=N[(g<<2)+a>>2];i=a;a=J[e>>2];if(!(k>2]))break y;J[e>>2]=g;J[j>>2]=a;h=h+1|0}if(!h){g=I9(f,e,c);a=e+4|0;if(I9(a,b,c)){a=f;b=e;if(!g)continue b;break e}if(g)continue c}if((e-f|0)<(b-e|0)){FE(f,e,c,d);a=e+4|0;continue c}FE(e+4|0,b,c,d);a=f;b=e;continue b}g=l;if((g|0)==(e|0))break e;while(1){k=N[(J[f>>2]<<2)+a>>2];while(1){j=e;e=e+4|0;i=J[j>>2];if(!(k>2]))continue;break}while(1){g=g-4|0;h=J[g>>2];if(k>2])continue;break}if(g>>>0<=j>>>0){f= +j;continue d}else{J[j>>2]=h;J[g>>2]=i;continue}}}break}break}break}return}J[f+4>>2]=c;J[f>>2]=b}function EE(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=Q(0),l=0,m=0,n=Q(0),o=Q(0),p=0,q=0;a:{b:while(1){l=b-4|0;c:while(1){f=a;d:while(1){e:{f:{g:{h:{i:{j:{k:{l:{a=b-f>>2;switch(a|0){case 5:break j;case 3:break k;case 2:break l;case 0:case 1:break e;case 4:break h;default:break i}}e=b-4|0;d=J[e>>2];b=J[J[c>>2]+12>>2];a=J[f>>2];if(!(N[(d<<2)+b>>2]>2]))break e;J[f>>2]=d;J[e>> +2]=a;return}e=J[J[c>>2]+12>>2];d=b-4|0;b=J[d>>2];o=N[e+(b<<2)>>2];a=J[f+4>>2];n=N[e+(a<<2)>>2];c=J[f>>2];k=N[e+(c<<2)>>2];if(!(no))break e;J[f+4>>2]=b;J[d>>2]=a;b=J[f+4>>2];c=J[f>>2];if(!(N[e+(b<<2)>>2]>2]))break e;break a}if(n>o){J[f>>2]=b;J[d>>2]=c;return}J[f+4>>2]=c;J[f>>2]=a;a=J[d>>2];if(!(k>N[e+(a<<2)>>2]))break e;J[f+4>>2]=a;J[d>>2]=c;return}qy(f,f+4|0,f+8|0,f+12|0,c);e=J[J[c>>2]+12>>2];d=b-4|0;b=J[d>>2];a=J[f+12>>2];if(!(N[e+(b<<2)>>2]>2]))break e;J[f+12>> +2]=b;J[d>>2]=a;b=J[f+12>>2];k=N[e+(b<<2)>>2];a=J[f+8>>2];if(!(k>2]))break e;J[f+8>>2]=b;J[f+12>>2]=a;a=J[f+4>>2];if(!(k>2]))break e;J[f+8>>2]=a;J[f+4>>2]=b;c=J[f>>2];if(!(k>2]))break e;break a}if((a|0)<=30){a=f+4|0;g=f+8|0;i=J[J[c>>2]+12>>2];e=J[f+8>>2];o=N[i+(e<<2)>>2];d=J[f+4>>2];n=N[i+(d<<2)>>2];c=J[f>>2];k=N[i+(c<<2)>>2];m:{n:{if(!(no))break m;J[a>>2]=e;J[g>>2]=d;j=f;h=a;if(k>o)break n;break m}j=f;h=g;if(n>o)break n;J[f+4>>2]=c;J[f>>2]=d;j=a;if(!(k> +o))break m}J[j>>2]=e;J[h>>2]=c}c=f+12|0;if((c|0)==(b|0))break e;while(1){a=c;d=J[a>>2];k=N[i+(d<<2)>>2];e=J[g>>2];if(k>2]){while(1){o:{J[a>>2]=e;a=g;if((f|0)==(a|0)){a=f;break o}g=a-4|0;e=J[g>>2];if(k>2])continue}break}J[a>>2]=d}g=c;a=g+4|0;c=a;if((a|0)!=(b|0))continue;break}break e}if(!d){if((b|0)==(f|0))break e;j=c;d=b;if((b|0)!=(f|0)){h=b-f>>2;if((h|0)>=2){q=J[c>>2];p=h-2>>>1|0;b=p;while(1){i=b;p:{if((b|0)>(p|0))break p;c=(b<<2)+f|0;e=b<<1;a=e|1;b=(a<<2)+f|0;e=e+2|0;q:{if((e| +0)>=(h|0)){g=J[q+12>>2];break q}g=J[q+12>>2];if(!(N[g+(J[b>>2]<<2)>>2]>2]<<2)+g>>2]))break q;b=b+4|0;a=e}l=J[c>>2];k=N[(l<<2)+g>>2];m=J[b>>2];if(k>N[(m<<2)+g>>2])break p;while(1){r:{e=b;J[c>>2]=m;if((a|0)>(p|0))break r;a=a<<1;c=a|1;b=(c<<2)+f|0;a=a+2|0;s:{if((h|0)<=(a|0)){a=c;break s}if(!(N[(J[b>>2]<<2)+g>>2]>2]<<2)+g>>2])){a=c;break s}b=b+4|0}c=e;m=J[b>>2];if(!(k>N[(m<<2)+g>>2]))continue}break}J[e>>2]=l}b=i-1|0;if((i|0)>0)continue;break}}if((h|0)>=2)while(1){i=h;l=i-2>>>1|0;q= +J[j>>2];p=J[f>>2];b=0;a=f;while(1){e=b<<1;c=e|1;g=a;m=(b<<2)+a|0;a=m+4|0;e=e+2|0;t:{if((e|0)>=(i|0)){b=c;break t}b=c;h=J[q+12>>2];c=m+8|0;if(!(N[h+(J[m+4>>2]<<2)>>2]>2]<<2)>>2]))break t;a=c;b=e}J[g>>2]=J[a>>2];if((b|0)<=(l|0))continue;break}d=d-4|0;u:{if((d|0)==(a|0)){J[a>>2]=p;break u}J[a>>2]=J[d>>2];J[d>>2]=p;b=(a-f|0)+4>>2;if((b|0)<2)break u;l=J[q+12>>2];e=J[a>>2];k=N[l+(e<<2)>>2];b=b-2>>>1|0;g=(b<<2)+f|0;h=J[g>>2];if(!(k>N[l+(h<<2)>>2]))break u;while(1){v:{c=g;J[a>>2]=h;if(!b)break v; +a=g;b=b-1>>>1|0;g=(b<<2)+f|0;h=J[g>>2];if(k>N[l+(h<<2)>>2])continue}break}J[c>>2]=e}h=i-1|0;if((i|0)>2)continue;break}}return}j=(a<<1&-4)+f|0;w:{if(a>>>0>=1E3){a=a&-4;m=a+f|0;i=a+j|0;h=qy(f,m,j,i,c);a=J[J[c>>2]+12>>2];g=J[l>>2];e=J[i>>2];if(!(N[a+(g<<2)>>2]>2]))break w;J[i>>2]=g;J[l>>2]=e;g=J[i>>2];e=J[j>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+1|0;break w}J[j>>2]=g;J[i>>2]=e;g=J[j>>2];e=J[m>>2];if(!(N[(g<<2)+a>>2]>2])){h=h+2|0;break w}J[m>>2]=g;J[j>>2]=e;g=J[m>>2];e=J[f>> +2];if(!(N[(g<<2)+a>>2]>2])){h=h+3|0;break w}J[f>>2]=g;J[m>>2]=e;h=h+4|0;break w}a=J[J[c>>2]+12>>2];g=J[l>>2];o=N[a+(g<<2)>>2];e=J[j>>2];n=N[(e<<2)+a>>2];i=J[f>>2];k=N[(i<<2)+a>>2];x:{if(!(no))break w;J[j>>2]=g;J[l>>2]=e;h=1;g=J[j>>2];e=J[f>>2];if(!(N[(g<<2)+a>>2]>2]))break w;J[f>>2]=g;J[j>>2]=e;break x}if(n>o){J[f>>2]=g;J[l>>2]=i;h=1;break w}J[f>>2]=e;J[j>>2]=i;h=1;e=J[l>>2];if(!(k>N[(e<<2)+a>>2]))break w;J[j>>2]=e;J[l>>2]=i}h=2}d=d-1|0;g=l;i=J[f>>2];n=N[(i<< +2)+a>>2];k=N[(J[j>>2]<<2)+a>>2];if(!(n>2];if(n>2])break f;if((e|0)==(l|0))break e;while(1){g=J[e>>2];if(n>2]){J[e>>2]=j;J[l>>2]=g;e=e+4|0;break f}e=e+4|0;if((l|0)!=(e|0))continue;break}break e}e=J[g>>2];if(!(k>N[(e<<2)+a>>2]))continue;break}J[f>>2]=e;J[g>>2]=i;h=h+1|0}e=f+4|0;if(g>>>0<=e>>>0)break g;while(1){k=N[(J[j>>2]<<2)+a>>2];while(1){i=e;e=e+4|0;p=J[i>>2];if(k>N[(p<<2)+a>>2])continue;break}while(1){g=g-4|0;m=J[g>>2]; +if(!(k>N[(m<<2)+a>>2]))continue;break}if(g>>>0>>0){e=i;break g}else{J[i>>2]=m;J[g>>2]=p;j=(j|0)==(i|0)?g:j;h=h+1|0;continue}}}qy(f,f+4|0,f+8|0,b-4|0,c);break e}y:{if((e|0)==(j|0))break y;g=J[j>>2];k=N[(g<<2)+a>>2];i=a;a=J[e>>2];if(!(k>2]))break y;J[e>>2]=g;J[j>>2]=a;h=h+1|0}if(!h){g=H9(f,e,c);a=e+4|0;if(H9(a,b,c)){a=f;b=e;if(!g)continue b;break e}if(g)continue c}if((e-f|0)<(b-e|0)){EE(f,e,c,d);a=e+4|0;continue c}EE(e+4|0,b,c,d);a=f;b=e;continue b}g=l;if((g|0)==(e|0))break e;while(1){k= +N[(J[f>>2]<<2)+a>>2];while(1){j=e;e=e+4|0;i=J[j>>2];if(!(k>2]))continue;break}while(1){g=g-4|0;h=J[g>>2];if(k>2])continue;break}if(g>>>0<=j>>>0){f=j;continue d}else{J[j>>2]=h;J[g>>2]=i;continue}}}break}break}break}return}J[f+4>>2]=c;J[f>>2]=b}function O_a(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;g=fc-176|0;fc=g;a:{if(!a|!b)break a;d=J[a+8>>2];if(!d)break a;k=J[a+52>>2];b:{if(J[d+48>>2]|!J[a+104>>2])break b;d=J[d+44>>2];if(d)if(J[d+ +36>>2]|J[d+40>>2]|(J[d+44>>2]|J[d+48>>2]))break b;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=94;h=J[a>>2];d=0;c:{if(!h)break c;d=0;if(J[h+108>>2]!=-554844497)break c;d=J[h+124>>2]}h=J[a+112>>2];f=J[a+108>>2];J[g+96>>2]=0;J[g+100>>2]=0;Hc(d,h,f,a,0,4,94,2,0,0,0,0,29481,g+96|0);J[a+100>>2]=0}J[a+104>>2]=0}m=CK(a,b,g+108|0);j=aL(J[a+8>>2],m);if(!j){b=J[g+108>>2];if(b)kc[J[663199]](b);J[a+84>>2]=2;c=J[a>>2];b=0;d:{if(!c)break d;b=0;if(J[c+108>>2]!=-554844497)break d;b=J[c+124>>2]}c=J[a+112>>2];d= +J[a+108>>2];J[g+4>>2]=0;J[g>>2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0,2723,g);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}b=J[a+8>>2];d=J[b+12>>2];e:{if(!d){dh(b,j);break e}k=k?k:d}J[a+264>>2]=-1;f:{if(!J[a+280>>2])break f;b=J[a+36>>2];if(!b)break f;b=J[b+28>>2];I[j+56>>1]=(b|0)>=65535?65535:b}cx(a,j);g:{if(!k)break g;if(J[k+4>>2]==1){dh(k,j);break g}IC(k,j)}h:{if(J[a+32>>2])break h;b=J[a+8>>2];d=J[b+44>>2];if(!(d|J[b+48>>2]))break h;n=J[g+108>>2];b=oC(d,m,n);h=b;if(!b){h=oC(J[J[a+8>>2]+48>> +2],m,n);if(!h)break h}o=(b|0)!=0;while(1){e=J[h+44>>2];b=J[a+8>>2];if(J[b+40>>2]==1){i:{if(!e|(!J[b+48>>2]|!J[a+104>>2]))break i;while(1){j:{if(!J[e+48>>2])break j;if((jq(J[J[a+8>>2]+48>>2],J[e+60>>2],J[e+8>>2],J[e+56>>2])|0)!=(e|0))break j;if(jq(J[J[a+8>>2]+44>>2],J[e+60>>2],J[e+8>>2],J[e+56>>2]))break j;k:{l:{m:{n:{o:{f=J[e+56>>2];b=f;if(b){while(1){d=b;b=b+1|0;if(K[d|0])continue;break}b=0;d=d-f|0;if((d|0)<0)break n;b=kc[J[663198]](d+1|0)|0;if(b)break o;b=0;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break n}i= +J[e+8>>2];b=i;if(!b)break m;while(1){d=b;b=b+1|0;if(K[d|0])continue;break}b=d-i|0;if((b|0)<0)break m;f=kc[J[663198]](b+1|0)|0;if(f)break l;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break m}p=xc(b,f,d)+d|0,q=0,H[p|0]=q}f=nq(nq(b,22269),J[e+8>>2]);if(f)break k}J[a+84>>2]=2;b=0;d=J[a>>2];if(!(!d|J[d+108>>2]!=-554844497))b=J[d+124>>2];d=J[a+108>>2];f=J[a+112>>2];J[g+68>>2]=0;J[g+64>>2]=30591;Hc(b,f,d,a,0,1,2,2,30591,0,0,0,2723,g- -64|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break i}p=xc(f,i,b)+b|0,q=0, +H[p|0]=q}p:{q:{if(!c)break q;i=0;b=J[c>>2];if(!b)break q;while(1){d=f;if((d|0)==(b|0))break p;while(1){l=K[b|0];if((l|0)==K[d|0]){d=d+1|0;b=b+1|0;if(l)continue;break p}break}i=i+2|0;b=J[(i<<2)+c>>2];if(b)continue;break}}b=J[e+60>>2];if(J[a+172>>2]==-1?J[a+212>>2]:0)break p;J[a+84>>2]=538;d=0;i=J[a>>2];if(!(!i|J[i+108>>2]!=-554844497))d=J[i+124>>2];i=J[a+108>>2];l=J[a+112>>2];J[g+84>>2]=b;J[g+80>>2]=f;Hc(d,l,i,a,0,4,538,2,f,b,0,0,31549,g+80|0);J[a+100>>2]=0}kc[J[663199]](f)}e=J[e+36>>2];if(e)continue; +break}}e=J[h+44>>2]}if(e)while(1){r:{if(!J[e+48>>2])break r;s:{t:{h=J[e+56>>2];if(h){b=4071;d=h;if((d|0)==4071)break s;while(1){f=K[d|0];if((f|0)!=K[b|0])break t;b=b+1|0;d=d+1|0;if(f)continue;break}break s}b=J[e+8>>2];if((b|0)==4071)break s;d=4071;if(!b)break t;while(1){f=K[b|0];if((f|0)!=K[d|0])break t;d=d+1|0;b=b+1|0;if(f)continue;break}break s}if(!(K[a+276|0]&4))break r}b=jq(J[J[a+8>>2]+44>>2],J[e+60>>2],J[e+8>>2],h);if(b?(b|0)!=(e|0):0)break r;u:{v:{b=J[e+8>>2];if(b){d=J[e+56>>2];if(!d){h=b;break u}h= +g+112|0;l=Yc(b);f=Yc(d);i=l+f|0;if((i|0)<49)break v;h=kc[J[663198]](i+2|0)|0;if(h)break v;J[g+48>>2]=14116;Hc(0,0,0,0,0,2,2,3,14116,0,0,0,32879,g+48|0)}J[a+84>>2]=2;d=J[a>>2];b=0;w:{if(!d)break w;b=0;if(J[d+108>>2]!=-554844497)break w;b=J[d+124>>2]}d=J[a+108>>2];h=J[a+112>>2];J[g+36>>2]=0;J[g+32>>2]=30591;Hc(b,h,d,a,0,1,2,2,30591,0,0,0,2723,g+32|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break h}d=xc(h,d,f);f=d+f|0;H[f|0]=58;xc(f+1|0,b,l);H[(d+i|0)+1|0]=0}x:{y:{if(!c)break y;f=0;b=J[c>>2];if(!b)break y; +while(1){d=h;if((d|0)==(b|0))break x;while(1){i=K[b|0];if((i|0)==K[d|0]){d=d+1|0;b=b+1|0;if(i)continue;break x}break}f=f+2|0;b=J[(f<<2)+c>>2];if(b)continue;break}}HC(a,h,J[e+48>>2])}if((g+112|0)==(h|0)|J[e+8>>2]==(h|0))break r;kc[J[663199]](h)}e=J[e+36>>2];if(e)continue;break}if(!o)break h;o=0;h=oC(J[J[a+8>>2]+48>>2],m,n);if(h)continue;break}}z:{if(J[a+32>>2]|!c)break z;b=J[c>>2];if(!b)break z;e=J[c+4>>2];if(!e)break z;d=2;while(1){A:{if(K[b|0]!=120|K[b+1|0]!=109|(K[b+2|0]!=108|K[b+3|0]!=110))break A; +if(K[b+4|0]!=115)break A;HC(a,b,e)}h=d<<2;b=J[h+c>>2];if(!b)break z;d=d+2|0;e=J[(h|4)+c>>2];if(e)continue;break}}b=Il(J[a+8>>2],j,J[g+108>>2]);if(!(b|!k))b=Il(J[a+8>>2],k,J[g+108>>2]);d=J[g+108>>2];B:{if(b|!d)break B;b=Gl(j,0,d);d=J[g+108>>2];if(J[a+172>>2]==-1?J[a+212>>2]:0)break B;J[a+84>>2]=201;J[g+20>>2]=0;J[g+16>>2]=d;Hc(0,0,0,a,0,3,201,1,d,0,0,0,35794,g+16|0)}C:{if(!b)break C;d=J[b+8>>2];if(!d|!(K[d|0]|J[b+12>>2])|J[j+4>>2]-1>>>0>1)break C;J[j+36>>2]=b}D:{if(!c)break D;d=J[c+4>>2];b=J[c>>2]; +if(J[a+32>>2]){if(!b)break D;e=2;while(1){HC(a,b,d);b=e<<2;d=J[(b|4)+c>>2];e=e+2|0;b=J[b+c>>2];if(b)continue;break}break D}if(!b|!d)break D;e=2;while(1){E:{if(!(K[b|0]!=120|K[b+1|0]!=109|(K[b+2|0]!=108|K[b+3|0]!=110)))if(K[b+4|0]==115)break E;HC(a,b,d)}d=e<<2;b=J[d+c>>2];if(!b)break D;e=e+2|0;d=J[(d|4)+c>>2];if(d)continue;break}}a=J[g+108>>2];if(!a)break a;kc[J[663199]](a)}fc=g+176|0}function X9(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,B=0; +a:{b:{c:{d:{e:{f:{g:{if(b){j=ph(a,b);if(!j){Jc(a,1045,0,0);return 1045}h=J[j+88>>2];if(K[h+33|0]){Jc(a,1071,0,0);return 1071}i=K[h+44|0];if(i>>>0<9)break g;k=K[h+45|0];if(k>>>0>12)break e;k=1<>2];if(!K[j+44|0])break c;h=J[j+52>>2];i=J[j+36>>2];if((h|0)<=(i|0))break c;k=J[j+60>>2];n=J[j+40>>2];if((k|0)<=(n|0))break c;h=Ck(a,j,h-i|0,k-n|0,8,6,0,0,0,0);if(h)break b;break d}h=_E(a,j,8,6,0)}if(h)break b;h=J[j+88>>2]}if(K[h+49|0])break d; +i=0;h:{i:{j:{n=J[j+88>>2];k=K[n+44|0];if(k>>>0<8)break j;switch(K[n+45|0]-6|0){case 0:case 8:break i;default:break j}}Jc(a,1071,0,0);h=1071;break h}k:{if(K[n+49|0])break k;J[a+540>>2]=n;J[a+536>>2]=j;J[a+544>>2]=j;H[a+649|0]=0;J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;h=k>>>0>8;J[a+984>>2]=h?1020:1021;J[a+980>>2]=h?1022:1023;h=J[n+36>>2];H[a+648|0]=0;J[a+616>>2]=0;J[a+588>>2]=h;J[a+604>>2]=h<<2;if(k>>>0>=9){H[a+648|0]=1;J[a+604>>2]=h<<3}J[a+976>>2]=0;i=gv(a,0,0,1);if(i)break k; +if(J[a+976>>2]){h=kc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=h;if(!h){Jc(a,1,0,0);h=1;break h}J[a+636>>2]=h;h=0;while(1){l:{k=h;s=J[n+40>>2];if(s>>>0<=h>>>0){i=0;break l}i=kc[J[a+980>>2]](a)|0;if(i)break l;i=kc[J[a+976>>2]](a)|0;if(i)break l;i=kc[J[a+984>>2]](a)|0;if(i)break l;h=k+1|0;i=zs(a);if(!i)continue}break}h=J[a+644>>2];if(h)kc[J[a+156>>2]](h,J[a+604>>2]);if(k>>>0>>0)break k}H[n+49|0]=1;i=0}h=i}if(h)break b}if(K[j+64|0]|K[j+65|0]){h=iv(a,j);if(h)break b}i=J[j+88>>2];h=K[i+44|0];m:{n:{o:switch(c| +0){default:e=J[a+2332>>2];d=J[a+2328>>2];break m;case 0:J[a+2332>>2]=e;J[a+2328>>2]=d;break m;case 1:d=J[j+80>>2]+d|0;J[a+2328>>2]=d;e=J[j+84>>2]+e|0;break n;case 2:break o}d=J[a+2328>>2]+d|0;J[a+2328>>2]=d;e=J[a+2332>>2]+e|0}J[a+2332>>2]=e}J[j+84>>2]=e;J[j+80>>2]=d;J[a+540>>2]=i;J[a+536>>2]=j;p:{if(!f){e=1;h=0;break p}c=h>>>0>8;v=c;y=c?1262:1263;k=c?1264:1265;n=c?1215:1214;s=c?1266:1267;z=c?3:2;t=h>>>0<9;A=t?1200:0;d=0;while(1){c=ph(a,L[g>>1]);q:{if(!c){h=0;break q}if(!K[c+32|0]){h=0;break q}r:{if(K[c+ +64|0]|K[c+65|0]){h=iv(a,c);if(h)break r}o=J[c+88>>2];J[a+616>>2]=0;J[a+584>>2]=1;J[a+576>>2]=1;H[a+568|0]=255;J[a+544>>2]=c;w=J[o+1168>>2];B=J[o+36>>2];c=K[o+44|0];H[a+2253|0]=4;p=c>>>0>8;s:{t:{u:{v:switch(K[o+45|0]){case 0:J[a+980>>2]=p?1149:1150;c=!K[o+56|0];break t;case 2:J[a+980>>2]=p?1151:1152;c=!K[o+56|0];break t;case 3:J[a+980>>2]=1153;c=!K[o+56|0];break t;case 4:J[a+980>>2]=p?1154:1155;break u;case 6:J[a+980>>2]=p?1022:1023;break u;case 8:J[a+980>>2]=p?1149:1150;c=1;break t;case 10:J[a+980>> +2]=p?1151:1152;c=1;break t;case 12:J[a+980>>2]=p?1154:1155;break u;case 14:break v;default:break s}J[a+980>>2]=p?1022:1023}c=0}H[a+649|0]=c}J[a+976>>2]=0;c=p?A:0;J[a+996>>2]=p?c:t?c:1197;h=gv(a,0,0,1);if(h)break r;J[a+1004>>2]=0;J[a+1008>>2]=0;w:{x:{y:{e=K[g+3|0];x=e-2|0;switch(x|0){case 6:break x;case 0:case 2:break y;default:break w}}if(!t){J[a+1004>>2]=1268;break w}J[a+1004>>2]=1269;break w}if(!t){J[a+1008>>2]=1262;break w}J[a+1008>>2]=1263}h=k;z:{A:{B:switch(K[g+2|0]){case 1:h=n;break A;case 0:break A; +case 2:break B;default:break z}h=s}J[a+1E3>>2]=h}C:{if(K[g+4|0]==1){h=J[g+12>>2]+J[a+2332>>2]|0;c=J[g+8>>2]+J[a+2328>>2]|0;break C}h=J[g+12>>2];c=J[g+8>>2]}m=J[j+88>>2];i=J[m+40>>2];m=J[m+36>>2];if((e|0)!=8){e=J[o+40>>2]+h|0;i=(e|0)>(i|0)?i:e;e=c+J[o+36>>2]|0;m=(e|0)>(m|0)?m:e}D:{if(K[g+16|0]==1){l=J[a+2328>>2];e=l+J[g+20>>2]|0;r=(c|0)<(e|0)?e-c|0:0;J[a+656>>2]=r;u=J[g+28>>2];q=(c|0)>(e|0)?c:e;J[a+672>>2]=q;c=u;u=J[a+2332>>2];c=c+u|0;e=(c|0)<(h|0)?h:c;J[a+680>>2]=e;c=(c|0)>(h|0)?c-h|0:0;J[a+664>> +2]=c;h=l+J[g+24>>2]|0;l=(h|0)>(m|0)?m:h;J[a+676>>2]=l;h=J[g+32>>2]+u|0;break D}e=J[g+20>>2];r=(c|0)<(e|0)?e-c|0:0;J[a+656>>2]=r;l=J[g+28>>2];q=(c|0)>(e|0)?c:e;J[a+672>>2]=q;e=(h|0)>(l|0)?h:l;J[a+680>>2]=e;c=(h|0)<(l|0)?l-h|0:0;J[a+664>>2]=c;h=J[g+24>>2];l=(h|0)>(m|0)?m:h;J[a+676>>2]=l;h=J[g+32>>2]}i=(h|0)>(i|0)?i:h;J[a+684>>2]=i;if(r)J[a+1008>>2]=y;h=0;if((l|0)<(q|0)|(e|0)>(i|0))break r;m=1;E:switch(x|0){case 0:case 4:m=-1;c=J[o+40>>2]+(c^-1)|0;break;default:break E}J[a+580>>2]=q;l=l-q|0;q=l<>2]](i)|0;J[a+644>>2]=h;if(!h)break a;h=kc[J[a+152>>2]](i)|0;J[a+636>>2]=h;if(!h)break a;while(1){F:{if(J[a+684>>2]<=(e|0)){h=0;break F}H[a+648|0]=p;J[a+604>>2]=w;J[a+588>>2]=B;J[a+572>>2]=c;h=kc[J[a+980>>2]](a)|0;G:{if(h){H[a+648|0]=v;break G}h=J[a+996>>2];H:{if(!h){H[a+648|0]=v;break H}h=kc[h|0](a)|0;H[a+648|0]=v;if(h)break G}h=J[a+976>>2];if(h){h=kc[h|0](a)|0;if(h)break G}h=J[a+1004>>2];if(h){h=kc[h|0](a)|0;if(h)break G}h=J[a+1008>>2];if(h){h=kc[h|0](a)|0;if(h)break G}J[a+ +604>>2]=q;J[a+588>>2]=l;J[a+572>>2]=e;h=kc[J[a+1E3>>2]](a)|0}r=J[o+40>>2];c=c+m|0;c=(c|0)<0?r-1|0:(c|0)<(r|0)?c:0;e=e+1|0;if(!h)continue}break}c=J[a+636>>2];if(c)kc[J[a+156>>2]](c,i);c=J[a+644>>2];if(!c)break r;kc[J[a+156>>2]](c,i)}d=d+1|0;g=g+36|0}e=!h;if(h)break p;if(d>>>0>>0)continue;break}}if(!e)break b;if(!b){h=Zh(a,j,0);if(!h)break c;break b}if(!K[j+31|0]|!K[j+32|0])break c;h=Zh(a,j,0);if(h)break b}h=0;if(!K[a+497|0])break b;H[a+498|0]=11;I[a+2326>>1]=b}return h}Jc(a,1,0,0);return 1}function KZ(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;h=fc-4160|0;fc=h;J[h+4140>>2]=-1;J[a+76>>2]=0;J[a+20>>2]=-1;b=J[a>>2];kc[J[J[b>>2]+20>>2]](b);m=J[a+4>>2];d=h+32|0;n=d;e=1;while(1){c=n-d|0;if(!(i|(c|0)>255)){b=h+32|0;xc(b,d,c);f=J[a>>2];g=b+c|0;i=4096-c|0;c=kc[J[J[f>>2]+40>>2]](f,g,i)|0;n=c+g|0;H[n|0]=0;i=(c|0)<(i|0);m=(m-b|0)+d|0;d=b}if(!(!i|(d|0)!=(n|0))){m=1;if((q|0)>0){j=a+40|0;d=0;n=0;while(1){J[h+16>>2]=13;c=(d<<2)+s|0;b=J[c>>2];l=wl(a,b,J[(J[a+8>>2]+P(b, +12)|0)+4>>2],h+16|0,0);if(J[l>>2]==8){b=J[h+24>>2];b=kc[J[J[b>>2]+76>>2]](b)|0;J[h>>2]=13;Ec(b,793286,h,0);a:{if(J[h>>2]!=4)break a;e=J[h+8>>2];if(!(Ic(e,794015)|n)){J[h+4144>>2]=13;Ke(b,781024,h+4144|0);n=0;b:{if(J[h+4144>>2]!=9)break b;c=J[h+4152>>2];if((c|0)>J[a+16>>2])break b;J[a+20>>2]=c;J[a+24>>2]=J[h+4156>>2];if(J[a+40>>2]!=13)yc(j);J[j+8>>2]=b;J[j>>2]=7;J[b+20>>2]=J[b+20>>2]+1;n=1}yc(h+4144|0);break a}if(Ic(e,794680))break a;u=J[c>>2];b=fc-32|0;fc=b;J[b+16>>2]=13;J[b>>2]=13;c:{d:{e:{f:{c= +J[l+8>>2];g=kc[J[J[c>>2]+76>>2]](c)|0;c=b+16|0;g:{if(J[Ec(g,778100,c,0)>>2]!=1){yc(c);break g}p=J[b+24>>2];yc(b+16|0);if(p-1000001>>>0<4293967296)break g;c=vc(56);J[699344]=0;e=_(4,160)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;f=J[l+8>>2];g=J[J[f>>2]+8>>2];J[699344]=0;f=_(g|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break f;J[699344]=0;f=ga(3669,e|0,0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break f;J[699344]=0;o=ha(3467,c|0,0,f|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break e;g=0;while(1){rg(o, +b+16|0,1,0,0,0,0,0,0);rg(o,b,1,0,0,0,0,0,0);h:{if(J[b+16>>2]!=1|J[b>>2]!=1)break h;e=J[b+24>>2];if(e>>>0>999999)break h;i:{if((e|0)>2]){i=J[a+8>>2];break i}k=(e&-256)+256|0;i=Wd(J[a+8>>2],k,12);J[a+8>>2]=i;f=J[a+12>>2];j:{if((k|0)<=(f|0))break j;c=0;v=(e|255)-f|0;t=0-f&3;if(t)while(1){r=P(f,12)+i|0;J[r+8>>2]=0;J[r>>2]=-1;f=f+1|0;c=c+1|0;if((t|0)!=(c|0))continue;break}if(v>>>0<3)break j;while(1){c=P(f,12)+i|0;J[c+8>>2]=0;J[c+12>>2]=-1;J[c>>2]=-1;J[c+20>>2]=0;J[c+24>>2]=-1;J[c+44>>2]=0;J[c+ +32>>2]=0;J[c+36>>2]=-1;f=f+4|0;if((k|0)!=(f|0))continue;break}}J[a+12>>2]=k}c=P(e,12)+i|0;if(J[c+4>>2]>(g|0)?J[c+8>>2]:0)break h;J[c+4>>2]=g;J[c>>2]=u;J[c+8>>2]=2;if((e|0)<=J[a+16>>2])break h;J[a+16>>2]=e}yc(b);yc(b+16|0);g=g+1|0;if((p|0)!=(g|0))continue;break}uc(Nk(o))}fc=b+32|0;break c}a=Z()|0;uc(e);break d}a=Z()|0}uc(c);ba(a|0);B()}}yc(h)}yc(l);d=d+1|0;if((q|0)!=(d|0))continue;break}}Mc(s);if(J[a+20>>2]<0){Cc(1,-1,795150,0);m=0}fc=h+4160|0;return m}k:{if(e){if(!ud(d,790721,7)){d=d+7|0;f=d+(m-(h+ +32|0)|0)|0;b=fc-48|0;fc=b;J[b+16>>2]=13;J[b>>2]=5;c=vc(56);J[699344]=0;e=_(4,160)|0;g=J[699344];J[699344]=0;l:{m:{n:{o:{if((g|0)==1)break o;g=J[a>>2];j=J[J[g>>2]+92>>2];J[699344]=0;f=na(j|0,g|0,f|0,0,0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break n;J[699344]=0;f=ga(3669,e|0,0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break n;J[699344]=0;f=ha(3467,c|0,0,f|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;rg(f,b+16|0,0,0,0,0,0,0,0);if(J[b+16>>2]==7){c=J[b+24>>2];J[b+32>>2]=13;Ke(c,781024,b+32| +0);if(J[b+32>>2]==9){J[a+20>>2]=J[b+40>>2];J[a+24>>2]=J[b+44>>2];e=a+40|0;if(J[a+40>>2]!=13)yc(e);J[e+8>>2]=c;J[e>>2]=7;J[c+20>>2]=J[c+20>>2]+1}yc(b+32|0)}yc(b+16|0);uc(Nk(f));fc=b+48|0;break l}a=Z()|0;break m}a=Z()|0;uc(e)}uc(c);ba(a|0);B()}e=0;continue}if(!ud(d,791565,9)){b=J[a+72>>2];e=J[a+76>>2];if((o|0)==(e|0)){o=o- -64|0;b=Wd(b,o,4);J[a+72>>2]=b;e=J[a+76>>2]}J[a+76>>2]=e+1;J[(e<<2)+b>>2]=(m-(h+32|0)|0)+d;d=d+9|0;e=0;continue}g=K[d|0];e=g;if((e-48&255)>>>0>9)break k;e=0;u=(m-(h+32|0)|0)+d|0; +f=0;while(1){p:{b=d+1|0;f=((g<<24>>24)+P(f,10)|0)-48|0;g=H[d+1|0];if((g|0)<48|g>>>0>57)break p;d=b;if((f|0)<1E8)continue}break}d=(g&255)-9|0;q:{if(d>>>0>23|!(1<>>0>23)break r;if(1<>>0>9)break q;v=h+4140|0;g=0;while(1){s:{g=(P(g,10)+(d&255)|0)-48|0;c=b+1|0;d=H[b+1|0];if((d|0)<48|d>>>0>57)break s;b=c;if((g|0)<1E8)continue}break}b=(d&255)-9|0;t:{if(b>>>0>23|!(1<>>0>23)break u;if(1<>2];v:{if(J[a+12>>2]>(f|0)){j=J[a+8>>2];break v}k=f&-256;if((k|0)<-256)break t;l=k+256|0;j=Wd(J[a+8>>2],l,12);J[a+8>>2]=j;b=J[a+12>>2];w:{if((l|0)<=(b|0))break w;d=0;k=(k-b|0)+255|0;r=0-b&3;if(r)while(1){w=P(b,12)+j|0;J[w+8>>2]=0;J[w>>2]=-1;b=b+1|0;d=d+1|0;if((r|0)!=(d|0))continue;break}if(k>>>0<3)break w;while(1){d=P(b,12)+j|0;J[d+8>>2]=0;J[d+12>>2]=-1;J[d>>2]=-1;J[d+20>>2]=0;J[d+24>>2]=-1;J[d+ +44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=-1;b=b+4|0;if((l|0)!=(b|0))continue;break}}J[a+12>>2]=l}b=P(f,12)+j|0;x:{if(J[b+4>>2]>(g|0)?J[b+8>>2]:0)break x;J[b+4>>2]=g;J[b>>2]=u-t;J[b+8>>2]=1;if(J[a+16>>2]>=(f|0))break x;J[a+16>>2]=f}J[v>>2]=f}b=c}d=b;continue}e=K[d|0]}b=e&255;if((b|0)!=62|K[d+1|0]!=62){e=(b|0)==10|(b|0)==13;d=d+1|0;continue}else{d=d+2|0;e=0;while(1){b=K[d|0];c=b-9|0;if(!(c>>>0>23|!(1<>2];if((e| +0)>=0){if((q|0)==(p|0)){p=p- -64|0;s=Wd(s,p,4);e=J[h+4140>>2]}J[(q<<2)+s>>2]=e;q=q+1|0}d=d+6|0;e=0;continue}}}function W0a(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;i=fc-16|0;fc=i;r=J[a+12>>2];l=J[a+8>>2];p=J[a+4>>2];k=H[p+35|0];j=J[p+8>>2];m=J[j+80>>2];d=J[p+56>>2];o=J[a+16>>2];q=J[a+20>>2];h=!!(o>>>0>>0?d:0);while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!h){if(l>>>0>=r>>>0)break h;if(o>>>0>=q>>>0)break i;c=l+2|0;d=L[l>>1];if((d&63488)!=55296)break j; +if(d&1024)break l;l=c;h=1;continue}if(l>>>0>>0){c=L[l>>1];if((c&64512)==56320)break k;J[b>>2]=12}J[p+56>>2]=d;break h}J[b>>2]=12;J[p+56>>2]=d;l=c;break h}J[p+56>>2]=0;d=(c+(d<<10)|0)-56613888|0;c=l+2|0}l=c;f=0;if((d&-160)-32>>>0<96|(1<>>0<=10:0))break e;f=16;c=d-258|0;if(c>>>0<16&(64575>>>c&1))break e;g=d&-4;if((g|0)==280|(d&-5)-313>>>0<2)break e;c=d-321|0;if(c>>>0<21&(1671247>>>c&1)|(g|0)==344)break e;e=d&-2;if((e|0)==350)break e;c=d-352|0;if(c>>>0<=30)break g;break f}J[b>>2]=15}J[j+ +80>>2]=m;J[a+16>>2]=o;J[a+8>>2]=l;fc=i+16|0;return}if(1<>>0<=22:0)break e;f=17;if((g|0)==264)break e;c=d-284|0;if(c>>>0<6&(51>>>c&1)|(g|0)==292)break e;m:switch(d-308|0){case 0:case 1:case 40:case 41:case 56:case 57:break e;default:break m}f=18;if((g|0)==372)break e;n:{o:{if((d|0)<=7689){if(d-338>>>0<2)break o;if((d|0)!=376)break n;break o}p:switch(d-7690|0){case 2:case 3:case 4:case 5:case 6:case 7: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 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 88:case 89:case 90:case 91:case 92:case 93:case 94:case 95:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:break n; case 0:case 1:case 20:case 21:case 54:case 55:case 76:case 77:case 86:case 87:case 96:case 97:case 118:case 119:case 120:case 121:case 122:case 123:break e;default:break p}if(d-7922>>>0<2)break e;if((d|0)!=8364)break n}f=19;break e}f=15;if(d-3585>>>0<58|d-3647>>>0<29)break e;f=14;q:switch(d-256|0){case 0:case 1:case 18:case 19:case 22:case 23:case 34:case 35:break e;default:break q}if((g|0)==296|(e|0)==302)break e;r:switch(d-310|0){case 0:case 1:case 2:case 5:case 6:case 15:case 16:case 20:case 21:case 22:case 23:case 32:case 33:case 48:case 49:case 50:case 51:case 52:case 53:case 60:case 61:break e; -default:break r}f=2;if((e|0)==700|(d|0)==8213|d-900>>>0<75)break e;f=3;c=d-1548|0;if(d-1569>>>0<26|(1<>>0<=19:0)|((d|0)==8203|d-1600>>>0<19))break e;if(d-1632>>>0<14)break e;c=d-65136|0;s:{if(c>>>0>=5){if(d-65142>>>0<73)break e;break s}if(23>>>c&1|d-65142>>>0<=72)break e}f=13;if((d|0)==8215|d-1488>>>0<27|(d|0)==8254)break e;f=12;if((d|0)==8470|d-1025>>>0<95)break e;f=1;c=d-286|0;if(1<>>0<=19:0)break e;h=0;if((g|0)!=536)break d}h=0;if((f|0)!=(m|0)){e=P(f,5);c=K[e+754304|0]; -while(1){H[(i+9|0)+h|0]=c;h=h+1|0;c=K[(e+h|0)+754304|0];if(c)continue;break}m=f}switch(m+1|0){case 1:break c;case 0:break d;default:break b}}g=1;e=i+4|0;c=nh(J[j+4>>2],d,e,k);t:{if((c|0)>0)break t;g=2;c=nh(J[j+8>>2],d,e,k);if((c|0)>0)break t;g=3;c=nh(J[j+12>>2],d,e,k);if((c|0)>0)break t;g=4;c=nh(J[j+16>>2],d,e,k);if((c|0)>0)break t;g=5;c=nh(J[j+20>>2],d,e,k);if((c|0)>0)break t;g=6;c=nh(J[j+24>>2],d,e,k);if((c|0)>0)break t;g=7;c=nh(J[j+28>>2],d,e,k);if((c|0)>0)break t;g=8;c=nh(J[j+32>>2],d,e,k);if((c| -0)>0)break t;g=9;c=nh(J[j+36>>2],d,e,k);if((c|0)>0)break t;g=10;c=nh(J[j+40>>2],d,e,k);if((c|0)>0)break t;g=11;c=nh(J[j+44>>2],d,e,k);if((c|0)<=0)break a}if((g|0)!=(m|0)){m=P(g,5);e=K[m+754304|0];f=0;while(1){H[(i+9|0)+h|0]=e;h=h+1|0;f=f+1|0;e=K[(m+f|0)+754304|0];if(e)continue;break}m=g}f=J[i+4>>2];while(1){e=c-1|0;H[(i+9|0)+h|0]=f>>>(e<<3);h=h+1|0;g=(c|0)>1;c=e;if(g)continue;break}break a}H[(i+9|0)+h|0]=d;h=h+1|0;break a}e=nh(J[(m<<2)+j>>2],d,i+4|0,k);if((e|0)<=0)break a;n=J[i+4>>2];g=e&3;u:{if(!g){c= +default:break r}f=2;if((e|0)==700|(d|0)==8213|d-900>>>0<75)break e;f=3;c=d-1548|0;if(d-1569>>>0<26|(1<>>0<=19:0)|((d|0)==8203|d-1600>>>0<19))break e;if(d-1632>>>0<14)break e;c=d-65136|0;s:{if(c>>>0>=5){if(d-65142>>>0<73)break e;break s}if(23>>>c&1|d-65142>>>0<=72)break e}f=13;if((d|0)==8215|d-1488>>>0<27|(d|0)==8254)break e;f=12;if((d|0)==8470|d-1025>>>0<95)break e;f=1;c=d-286|0;if(1<>>0<=19:0)break e;h=0;if((g|0)!=536)break d}h=0;if((f|0)!=(m|0)){e=P(f,5);c=K[e+756048|0]; +while(1){H[(i+9|0)+h|0]=c;h=h+1|0;c=K[(e+h|0)+756048|0];if(c)continue;break}m=f}switch(m+1|0){case 1:break c;case 0:break d;default:break b}}g=1;e=i+4|0;c=Dh(J[j+4>>2],d,e,k);t:{if((c|0)>0)break t;g=2;c=Dh(J[j+8>>2],d,e,k);if((c|0)>0)break t;g=3;c=Dh(J[j+12>>2],d,e,k);if((c|0)>0)break t;g=4;c=Dh(J[j+16>>2],d,e,k);if((c|0)>0)break t;g=5;c=Dh(J[j+20>>2],d,e,k);if((c|0)>0)break t;g=6;c=Dh(J[j+24>>2],d,e,k);if((c|0)>0)break t;g=7;c=Dh(J[j+28>>2],d,e,k);if((c|0)>0)break t;g=8;c=Dh(J[j+32>>2],d,e,k);if((c| +0)>0)break t;g=9;c=Dh(J[j+36>>2],d,e,k);if((c|0)>0)break t;g=10;c=Dh(J[j+40>>2],d,e,k);if((c|0)>0)break t;g=11;c=Dh(J[j+44>>2],d,e,k);if((c|0)<=0)break a}if((g|0)!=(m|0)){m=P(g,5);e=K[m+756048|0];f=0;while(1){H[(i+9|0)+h|0]=e;h=h+1|0;f=f+1|0;e=K[(m+f|0)+756048|0];if(e)continue;break}m=g}f=J[i+4>>2];while(1){e=c-1|0;H[(i+9|0)+h|0]=f>>>(e<<3);h=h+1|0;g=(c|0)>1;c=e;if(g)continue;break}break a}H[(i+9|0)+h|0]=d;h=h+1|0;break a}e=Dh(J[(m<<2)+j>>2],d,i+4|0,k);if((e|0)<=0)break a;n=J[i+4>>2];g=e&3;u:{if(!g){c= e;break u}f=0;c=e;while(1){c=c-1|0;H[(i+9|0)+h|0]=n>>>(c<<3);h=h+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}}if(e>>>0<4)break a;while(1){f=(i+9|0)+h|0;e=c-4|0;H[f+3|0]=n>>>(e<<3);g=c-3|0;H[f+2|0]=n>>>(g<<3);c=c<<3;H[f+1|0]=n>>>c-16;H[f|0]=n>>>c-8;h=h+4|0;c=e;if(g>>>0>1)continue;break}}e=0;v:{w:{if((h|0)>0){c=0;e=q-o|0;e=e>>>0<=q>>>0?e:0;while(1){if((c|0)==(e|0))break w;H[o|0]=K[(i+9|0)+c|0];o=o+1|0;c=c+1|0;if((h|0)!=(c|0))continue;break}e=h}c=J[b>>2];break v}J[b>>2]=15;c=15}x:{if((c|0)!=15|(e|0)>= -(h|0))break x;c=e+1|0;if(h-e&1){e=K[(i+9|0)+e|0];f=J[a+4>>2];g=H[f+63|0];H[f+63|0]=g+1;H[(f+g|0)+76|0]=e;e=c}if((c|0)==(h|0))break x;while(1){g=(i+9|0)+e|0;c=K[g|0];n=J[a+4>>2];f=H[n+63|0];H[n+63|0]=f+1;H[(f+n|0)+76|0]=c;c=K[g+1|0];f=J[a+4>>2];g=H[f+63|0];H[f+63|0]=g+1;H[(f+g|0)+76|0]=c;e=e+2|0;if((h|0)!=(e|0))continue;break}}h=0;continue}}function Dw(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(!a|!b)break a;b:{c:{d:{h=J[a+12>>2];if(h){f=h;e:{while(1){g=J[f+16>>2];if(g)while(1){if(g+20>>> -0<=b>>>0&M[g+4>>2]>=b>>>0)break e;g=J[g>>2];if(g)continue;break}f=J[f+20>>2];if(f)continue;break}f=-1;b=le(h,b,-1);if(!b)break b}f:{if(!c)break f;h=J[a+12>>2];f=h;while(1){if(!f){i=c;break f}g=J[f+16>>2];if(g)while(1){if(!(M[g+4>>2]>>0|g+20>>>0>c>>>0)){i=c;break f}g=J[g>>2];if(g)continue;break}f=J[f+20>>2];if(f)continue;break}f=-1;i=le(h,c,-1);if(!i)break b}g:{if(!d)break g;c=J[a+12>>2];f=c;while(1){if(!f){j=d;break g}g=J[f+16>>2];if(g)while(1){if(!(M[g+4>>2]>>0|g+20>>>0>d>>>0)){j=d;break g}g= -J[g>>2];if(g)continue;break}f=J[f+20>>2];if(f)continue;break}f=-1;j=le(c,d,-1);if(!j)break b}if(!b)break d;d=j;c=i}f=K[b|0];g=P(f,30);if(f){h=b;while(1){g=(f<<24>>24)+((g<<5)+(g>>>3|0)|0)^g;f=K[h+1|0];h=h+1|0;if(f)continue;break}}j=d;i=c;break c}b=0;l=1;g=0}g=(g<<5)+(g>>>3|0)^g;h:{if(!i)break h;f=K[i|0];if(!f)break h;h=i;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[h+1|0];h=h+1|0;if(f)continue;break}}g=(g<<5)+(g>>>3|0)^g;i:{if(!j)break i;f=K[j|0];if(!f)break i;h=j;while(1){g=((f<<24>>24)+(g>>> +(h|0))break x;c=e+1|0;if(h-e&1){e=K[(i+9|0)+e|0];f=J[a+4>>2];g=H[f+63|0];H[f+63|0]=g+1;H[(f+g|0)+76|0]=e;e=c}if((c|0)==(h|0))break x;while(1){g=(i+9|0)+e|0;c=K[g|0];n=J[a+4>>2];f=H[n+63|0];H[n+63|0]=f+1;H[(f+n|0)+76|0]=c;c=K[g+1|0];f=J[a+4>>2];g=H[f+63|0];H[f+63|0]=g+1;H[(f+g|0)+76|0]=c;e=e+2|0;if((h|0)!=(e|0))continue;break}}h=0;continue}}function sx(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(!a|!b)break a;b:{c:{d:{h=J[a+12>>2];if(h){f=h;e:{while(1){g=J[f+16>>2];if(g)while(1){if(g+20>>> +0<=b>>>0&M[g+4>>2]>=b>>>0)break e;g=J[g>>2];if(g)continue;break}f=J[f+20>>2];if(f)continue;break}f=-1;b=te(h,b,-1);if(!b)break b}f:{if(!c)break f;h=J[a+12>>2];f=h;while(1){if(!f){i=c;break f}g=J[f+16>>2];if(g)while(1){if(!(M[g+4>>2]>>0|g+20>>>0>c>>>0)){i=c;break f}g=J[g>>2];if(g)continue;break}f=J[f+20>>2];if(f)continue;break}f=-1;i=te(h,c,-1);if(!i)break b}g:{if(!d)break g;c=J[a+12>>2];f=c;while(1){if(!f){j=d;break g}g=J[f+16>>2];if(g)while(1){if(!(M[g+4>>2]>>0|g+20>>>0>d>>>0)){j=d;break g}g= +J[g>>2];if(g)continue;break}f=J[f+20>>2];if(f)continue;break}f=-1;j=te(c,d,-1);if(!j)break b}if(!b)break d;d=j;c=i}f=K[b|0];g=P(f,30);if(f){h=b;while(1){g=(f<<24>>24)+((g<<5)+(g>>>3|0)|0)^g;f=K[h+1|0];h=h+1|0;if(f)continue;break}}j=d;i=c;break c}b=0;l=1;g=0}g=(g<<5)+(g>>>3|0)^g;h:{if(!i)break h;f=K[i|0];if(!f)break h;h=i;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[h+1|0];h=h+1|0;if(f)continue;break}}g=(g<<5)+(g>>>3|0)^g;i:{if(!j)break i;f=K[j|0];if(!f)break i;h=j;while(1){g=((f<<24>>24)+(g>>> 3|0)|0)+(g<<5)^g;f=K[h+1|0];h=h+1|0;if(f)continue;break}}h=J[a+12>>2];g=J[a>>2]+P((g>>>0)%M[a+4>>2]|0,24)|0;m=J[g+20>>2];j:{if(!m){d=0;c=0;break j}f=J[g>>2];k:{if(h){c=0;if(f)while(1){d=g;g=f;if(!(J[d+4>>2]!=(b|0)|J[d+8>>2]!=(i|0)|J[d+12>>2]!=(j|0)))break a;c=c+1|0;f=J[g>>2];if(f)continue;break}if(J[g+4>>2]!=(b|0)|J[g+8>>2]!=(i|0)|J[g+12>>2]!=(j|0))break k;break a}c=0;if(f)while(1){d=g;g=f;l:{f=J[d+4>>2];if((f|0)!=(b|0)){h=b;if(!f|l)break l;while(1){k=K[f|0];if((k|0)!=K[h|0])break l;h=h+1|0;f=f+1| 0;if(k)continue;break}}f=J[d+8>>2];if((i|0)!=(f|0)){if(!i)break l;h=i;if(!f)break l;while(1){k=K[f|0];if((k|0)!=K[h|0])break l;h=h+1|0;f=f+1|0;if(k)continue;break}}f=J[d+12>>2];if((j|0)==(f|0))break a;if(!j)break l;h=j;if(!f)break l;while(1){d=K[f|0];if((d|0)!=K[h|0])break l;h=h+1|0;f=f+1|0;if(d)continue;break}break a}c=c+1|0;f=J[g>>2];if(f)continue;break}f=J[g+4>>2];if((f|0)!=(b|0)){if(!f|l)break k;h=b;while(1){d=K[f|0];if((d|0)!=K[h|0])break k;h=h+1|0;f=f+1|0;if(d)continue;break}}f=J[g+8>>2];if((i| -0)!=(f|0)){if(!i|!f)break k;h=i;while(1){d=K[f|0];if((d|0)!=K[h|0])break k;h=h+1|0;f=f+1|0;if(d)continue;break}}f=J[g+12>>2];if((j|0)==(f|0))break a;if(!j|!f)break k;h=j;while(1){d=K[f|0];if((d|0)!=K[h|0])break k;h=h+1|0;f=f+1|0;if(d)continue;break}break a}f=-1;k=gc[J[659447]](24)|0;if(!k)break b;h=J[a+12>>2];d=g;g=k}m:{if(h){J[g+8>>2]=i;J[g+4>>2]=b;b=j;break m}h=0;f=0;n:{if(l)break n;f=b;while(1){k=f;f=f+1|0;if(K[k|0])continue;break}f=0;k=k-b|0;if((k|0)<0)break n;l=gc[J[659450]](k+1|0)|0;if(!l){Cc(0, -0,0,0,0,1,2,3,0,0,0,0,36013,0);break n}f=tc(l,b,k);H[k+f|0]=0}J[g+4>>2]=f;o:{if(!i)break o;b=i;while(1){f=b;b=f+1|0;if(K[f|0])continue;break}b=f-i|0;if((b|0)<0)break o;f=gc[J[659450]](b+1|0)|0;if(!f){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break o}h=tc(f,i,b);H[b+h|0]=0}J[g+8>>2]=h;if(!j){b=0;break m}b=j;while(1){h=b;b=h+1|0;if(K[h|0])continue;break}b=0;h=h-j|0;if((h|0)<0)break m;i=gc[J[659450]](h+1|0)|0;if(!i){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break m}b=tc(i,j,h);H[h+b|0]=0}J[g+16>>2]=e;J[g+12>>2]= -b;J[g+20>>2]=1;f=0;J[g>>2]=0;if(m)J[d>>2]=g;J[a+8>>2]=J[a+8>>2]+1;if(c>>>0<9)break b;e=J[a+4>>2];c=e<<3;if(c-16385>>>0<4294950919)break b;j=J[a>>2];if(!j)break b;d=0;h=P(e,192);b=gc[J[659447]](h)|0;J[a>>2]=b;if(!b){J[a>>2]=j;return 0}wc(b,0,h);J[a+4>>2]=c;if((e|0)>0){while(1){c=j+P(d,24)|0;if(J[c+20>>2]){b=J[c+8>>2];f=J[c+4>>2];p:{if(!f){g=0;break p}h=K[f|0];g=P(h,30);if(!h)break p;while(1){g=(h<<24>>24)+((g<<5)+(g>>>3|0)|0)^g;h=K[f+1|0];f=f+1|0;if(h)continue;break}}f=J[c+12>>2];g=(g<<5)+(g>>>3|0)^ +0)!=(f|0)){if(!i|!f)break k;h=i;while(1){d=K[f|0];if((d|0)!=K[h|0])break k;h=h+1|0;f=f+1|0;if(d)continue;break}}f=J[g+12>>2];if((j|0)==(f|0))break a;if(!j|!f)break k;h=j;while(1){d=K[f|0];if((d|0)!=K[h|0])break k;h=h+1|0;f=f+1|0;if(d)continue;break}break a}f=-1;k=kc[J[663195]](24)|0;if(!k)break b;h=J[a+12>>2];d=g;g=k}m:{if(h){J[g+8>>2]=i;J[g+4>>2]=b;b=j;break m}h=0;f=0;n:{if(l)break n;f=b;while(1){k=f;f=f+1|0;if(K[k|0])continue;break}f=0;k=k-b|0;if((k|0)<0)break n;l=kc[J[663198]](k+1|0)|0;if(!l){Hc(0, +0,0,0,0,1,2,3,0,0,0,0,36029,0);break n}f=xc(l,b,k);H[k+f|0]=0}J[g+4>>2]=f;o:{if(!i)break o;b=i;while(1){f=b;b=f+1|0;if(K[f|0])continue;break}b=f-i|0;if((b|0)<0)break o;f=kc[J[663198]](b+1|0)|0;if(!f){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break o}h=xc(f,i,b);H[b+h|0]=0}J[g+8>>2]=h;if(!j){b=0;break m}b=j;while(1){h=b;b=h+1|0;if(K[h|0])continue;break}b=0;h=h-j|0;if((h|0)<0)break m;i=kc[J[663198]](h+1|0)|0;if(!i){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break m}b=xc(i,j,h);H[h+b|0]=0}J[g+16>>2]=e;J[g+12>>2]= +b;J[g+20>>2]=1;f=0;J[g>>2]=0;if(m)J[d>>2]=g;J[a+8>>2]=J[a+8>>2]+1;if(c>>>0<9)break b;e=J[a+4>>2];c=e<<3;if(c-16385>>>0<4294950919)break b;j=J[a>>2];if(!j)break b;d=0;h=P(e,192);b=kc[J[663195]](h)|0;J[a>>2]=b;if(!b){J[a>>2]=j;return 0}Ac(b,0,h);J[a+4>>2]=c;if((e|0)>0){while(1){c=j+P(d,24)|0;if(J[c+20>>2]){b=J[c+8>>2];f=J[c+4>>2];p:{if(!f){g=0;break p}h=K[f|0];g=P(h,30);if(!h)break p;while(1){g=(h<<24>>24)+((g<<5)+(g>>>3|0)|0)^g;h=K[f+1|0];f=f+1|0;if(h)continue;break}}f=J[c+12>>2];g=(g<<5)+(g>>>3|0)^ g;q:{if(!b)break q;h=K[b|0];if(!h)break q;while(1){g=((h<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;h=K[b+1|0];b=b+1|0;if(h)continue;break}}g=(g<<5)+(g>>>3|0)^g;r:{if(!f)break r;b=K[f|0];if(!b)break r;while(1){g=((b<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;b=K[f+1|0];f=f+1|0;if(b)continue;break}}i=J[c+4>>2];h=P((g>>>0)%M[a+4>>2]|0,24);b=h+J[a>>2]|0;J[b>>2]=J[c>>2];J[b+4>>2]=i;i=J[c+20>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=i;i=J[c+12>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=i;J[h+J[a>>2]>>2]=0}d=d+1|0;if((e|0)!=(d|0))continue; break}c=0;while(1){h=J[j+P(c,24)>>2];if(h)while(1){b=J[h+4>>2];s:{if(!b){g=0;break s}f=K[b|0];g=P(f,30);if(!f)break s;while(1){g=(f<<24>>24)+((g<<5)+(g>>>3|0)|0)^g;f=K[b+1|0];b=b+1|0;if(f)continue;break}}g=(g<<5)+(g>>>3|0)^g;b=J[h+8>>2];t:{if(!b)break t;f=K[b|0];if(!f)break t;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[b+1|0];b=b+1|0;if(f)continue;break}}g=(g<<5)+(g>>>3|0)^g;b=J[h+12>>2];u:{if(!b)break u;f=K[b|0];if(!f)break u;while(1){g=((f<<24>>24)+(g>>>3|0)|0)+(g<<5)^g;f=K[b+1|0];b=b+1|0; -if(f)continue;break}}b=J[h>>2];i=P((g>>>0)%M[a+4>>2]|0,24);d=i+J[a>>2]|0;v:{if(!J[d+20>>2]){g=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=g;g=J[h+20>>2];J[d+16>>2]=J[h+16>>2];J[d+20>>2]=g;g=J[h+12>>2];J[d+8>>2]=J[h+8>>2];J[d+12>>2]=g;J[i+J[a>>2]>>2]=0;gc[J[659451]](h);break v}J[h>>2]=J[d>>2];J[d>>2]=h}h=b;if(h)continue;break}c=c+1|0;if((e|0)!=(c|0))continue;break}}f=0;gc[J[659451]](j)}return f}return-1}function OU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-80|0;bc=d;a:{b:{c:{if(!K[b+89|0]){a=Kc(d+ -44|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;Fc(a);ba(b|0);B()}d:{e:{f:{e=b+92|0;if(!(J[e>>2]&1))break f;g:switch(J[b+56>>2]-1|0){case 2:if(!(J[e>>2]&2))break f;f=d+4|0;MG(f,J[b+48>>2],c);h:{i:{e=J[d+4>>2];j:{if(e)break j;e=J[b+48>>2];J[695492]=0;g=d+44|0;ca(5246,g|0,e|0,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;J[695492]=0;aa(4993,f|0,g|0)|0;e=J[695492];J[695492]=0;k:{l:{if((e|0)!=1){e=J[d+44>>2];J[d+44>>2]=0;m:{if(!e)break m; -J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break b;if(f)break m;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break b}e=J[d+4>>2];if(e)break j;f=J[b+48>>2];J[695492]=0;e=d+44|0;ca(5247,e|0,f|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break l;J[695492]=0;aa(4993,d+4|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break k;a=Z()|0;vc(e);break h}a=Z()|0;vc(d+44|0);break h}a=Z()|0;break h}vc(d+44|0);e=J[d+4>>2];if(!e)break f}J[695492]=0;b=ga(5173,d+44|0,e+36| -0,b+8|0)|0;c=J[695492];J[695492]=0;n:{if((c|0)!=1){J[695492]=0;aa(4991,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break n;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);a=J[d+4>>2];J[d+4>>2]=0;if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break e;J[695492]= -0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break b}a=Z()|0;break h}a=Z()|0;ud(b);break h}a=Z()|0}break a;case 3:if(!(J[e>>2]&2))break f;f=d+40|0;MG(f,J[b+48>>2],c);o:{p:{e=J[d+40>>2];q:{if(e)break q;e=J[b+48>>2];J[695492]=0;g=d+44|0;ca(5246,g|0,e|0,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break p;J[695492]=0;aa(4993,f|0,g|0)|0;e=J[695492];J[695492]=0;r:{s:{if((e|0)!=1){e=J[d+44>>2];J[d+44>>2]=0;t:{if(!e)break t;J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)== -1)break d;if(f)break t;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break d}e=J[d+40>>2];if(e)break q;f=J[b+48>>2];J[695492]=0;e=d+44|0;ca(5247,e|0,f|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break s;J[695492]=0;aa(4993,d+40|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break r;a=Z()|0;vc(e);break o}a=Z()|0;vc(d+44|0);break o}a=Z()|0;break o}vc(d+44|0);e=J[d+40>>2];if(!e)break f}J[695492]=0;c=d+4|0;da(5226,c|0,b+8|0);b=J[695492];J[695492]=0;u:{v:{w:{if((b|0)!=1){J[695492]=0;b=ga(5173, -d+44|0,e+36|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break w;J[695492]=0;aa(4991,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break v;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);J[d+28>>2]=2381060;J[d+4>>2]=2381028;a=J[d+32>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+32>> -2]=0}J[d+20>>2]=2381060;a=J[d+24>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+24>>2]=0}sc(d+12|0);a=J[d+40>>2];J[d+40>>2]=0;if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break b}a=Z()|0;break o}a=Z()|0;break u}a=Z()|0;ud(b)}ud(d+4|0);break o}a=Z()|0}vc(d+40|0);ba(a|0);B();case 0:if(!(J[e>>2]&2))break f;bV(d+4|0,J[b+108>>2],c);if(!J[d+4>>2])break f; -J[695492]=0;b=ga(5173,d+44|0,c|0,b+8|0)|0;c=J[695492];J[695492]=0;x:{y:{if((c|0)!=1){J[695492]=0;aa(4991,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break y;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);a=J[d+4>>2];J[d+4>>2]=0;if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]= -0;if((c|0)!=1){if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break b}a=Z()|0;break x}a=Z()|0;ud(b)}break a;case 1:case 4:break g;default:break f}e=d+4|0;pz(e,b+8|0);J[695492]=0;b=ga(5173,d+44|0,c|0,e|0)|0;c=J[695492];J[695492]=0;z:{A:{if((c|0)!=1){J[695492]=0;aa(4991,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break A;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060; -a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);J[d+28>>2]=2381060;J[d+4>>2]=2381028;a=J[d+32>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+32>>2]=0}J[d+20>>2]=2381060;a=J[d+24>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+24>>2]=0}sc(d+12|0);break e}a=Z()|0;break z}a=Z()|0;ud(b)}ud(d+4|0);ba(a|0);B()}Ql(a)}bc=d+80|0;return}ea(0)|0;yc()}B()}ea(0)|0;yc();B()}vc(d+4|0);ba(a|0);B()}function Lua(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;d=bc-96|0;bc=d;f=d+40|0;kG(f,2380832,c);J[695492]=0;g=d+48|0;ca(5121,g|0,f|0,2381371);c=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{if((c|0)!=1){c=J[J[b>>2]+16>>2];J[695492]=0;c=$(c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break t;J[695492]=0;i=d+56|0;ca(5121,i|0,g|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break t;J[695492]=0;j=d- -64|0;ca(5121,j|0,i|0,2381762);c=J[695492];J[695492]=0;if((c|0)==1)break s; -J[695492]=0;c=d+72|0;ca(5121,c|0,j|0,2382172);e=J[695492];J[695492]=0;if((e|0)==1)break r;J[695492]=0;h=d+32|0;ca(5428,h|0,b+24|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break q;J[695492]=0;e=d+80|0;ca(5122,e|0,c|0,h|0);k=J[695492];J[695492]=0;if((k|0)==1)break p;J[695492]=0;k=d+88|0;ca(5121,k|0,e|0,2381762);l=J[695492];J[695492]=0;if((l|0)==1)break o;sc(e);sc(h);sc(c);sc(j);sc(i);sc(g);sc(f);f=J[b+8>>2];if(!f|!J[f+8>>2])break d;J[695492]=0;ca(5048,c|0,2382471,b+8|0);f=J[695492];J[695492]=0;if((f| -0)==1)break h;J[695492]=0;ca(5121,e|0,c|0,2381762);f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;aa(5170,k|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;sc(e);sc(c);break c}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;break k}b=Z()|0;break l}b=Z()|0;break m}b=Z()|0;break n}b=Z()|0;sc(d+80|0)}sc(d+32|0)}sc(d+72|0)}sc(d- -64|0)}sc(d+56|0)}sc(d+48|0)}sc(d+40|0);ba(b|0);B()}b=Z()|0;break b}b=Z()|0;break e}b=Z()|0;sc(d+80|0)}sc(d+72|0);break b}J[695492]=0;aa(5185,d+88|0,2386641)|0;c=J[695492]; -J[695492]=0;if((c|0)!=1)break c;b=Z()|0;break b}u:{c=J[b+16>>2];if(!c|!J[c+8>>2])break u;J[695492]=0;c=d- -64|0;ca(5428,c|0,b+16|0,0);e=J[695492];J[695492]=0;v:{w:{x:{y:{z:{if((e|0)!=1){J[695492]=0;e=d+72|0;ca(5048,e|0,2386937,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break z;J[695492]=0;f=d+80|0;ca(5121,f|0,e|0,2381762);g=J[695492];J[695492]=0;if((g|0)==1)break y;J[695492]=0;aa(5170,d+88|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break x;sc(f);sc(e);sc(c);break u}b=Z()|0;break b}b=Z()|0;break v}b= -Z()|0;break w}b=Z()|0;sc(d+80|0)}sc(d+72|0)}sc(d- -64|0);break b}A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{c=J[b+48>>2];if(!((c|0)==-16777216|(c|0)==-1)){J[d+80>>2]=0;J[695492]=0;J[d+16>>2]=c;J[d+84>>2]=J[682146];c=d+80|0;e=ga(5180,c|0,2387246,d+16|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break Z;J[695492]=0;aa(5170,d+88|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break Z;sc(c)}c=2411769;e=J[b+32>>2]-1|0;if(e>>>0<=5)c=J[(e<<2)+2412828>>2];J[695492]=0;e=d- -64| -0;ca(5121,e|0,d+88|0,2390489);f=J[695492];J[695492]=0;if((f|0)==1)break W;J[695492]=0;f=d+72|0;ca(5121,f|0,e|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break V;J[695492]=0;ca(5121,d+80|0,f|0,2381762);c=J[695492];J[695492]=0;if((c|0)==1)break U;c=J[d+80>>2];if(!c)break Y;e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+56|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break X;b=Z()|0;break C}b=Z()|0;sc(d+80|0);break b}J[d+56>>2]=0}J[695492]=0;aa(4993,d+88|0,d+56|0)|0;c=J[695492];J[695492]=0;_:{if((c|0)!=1){c= -J[d+56>>2];J[d+56>>2]=0;if(!c)break _;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break _;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break _}break a}b=Z()|0;vc(d+56|0);break C}c=J[d+88>>2];J[d+92>>2]=J[(c?c+12|0:2728584)>>2];c=d+80|0;sc(c);e=d+72|0;sc(e);f=d- -64|0;sc(f);if(J[b+32>>2]){J[d+48>>2]=0;J[d+52>>2]=J[682146];J[d>>2]=J[b+40>>2];J[695492]=0;j=d+48|0;g=ga(5180,j|0,2390836,d|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break T;J[695492]=0; -i=d+56|0;ca(5048,i|0,2390705,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break T;J[695492]=0;ca(5121,f|0,i|0,2391060);g=J[695492];J[695492]=0;if((g|0)==1)break S;g=J[b+44>>2];J[695492]=0;g=aa(5120,d+40|0,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break R;J[695492]=0;ca(5122,e|0,f|0,g|0);h=J[695492];J[695492]=0;if((h|0)==1)break Q;J[695492]=0;ca(5121,c|0,e|0,2381762);h=J[695492];J[695492]=0;if((h|0)==1)break P;J[695492]=0;aa(5170,d+88|0,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break O;sc(c);sc(e);sc(g); -sc(f);sc(i);sc(j)}if(!K[b+36|0])break E;J[695492]=0;ca(5121,d+80|0,d+88|0,2391420);b=J[695492];J[695492]=0;if((b|0)==1)break G;b=J[d+80>>2];if(!b)break I;c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+72|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break H;b=Z()|0;break D}b=Z()|0;break b}b=Z()|0;break A}b=Z()|0;break B}b=Z()|0;break J}b=Z()|0;break K}b=Z()|0;break L}b=Z()|0;break M}b=Z()|0;break N}b=Z()|0;sc(d+80|0)}sc(d+72|0)}sc(g)}sc(d- -64|0)}sc(d+56|0)}sc(d+48|0);break b}J[d+72>>2]=0}J[695492]=0;aa(4993, -d+88|0,d+72|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+72>>2];J[d+72>>2]=0;if(!b)break F;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break F;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break F}break a}b=Z()|0;vc(d+72|0);break D}b=Z()|0;break b}b=J[d+88>>2];J[d+92>>2]=J[(b?b+12|0:2728584)>>2];sc(d+80|0)}J[695492]=0;ca(5121,a|0,d+88|0,2392453);a=J[695492];J[695492]=0;if((a|0)==1){b=Z()|0;break b}sc(d+88|0);bc=d+96|0;return}sc(d+80|0);break b}sc(d+ -80|0)}sc(d+72|0)}sc(d- -64|0)}sc(d+88|0);ba(b|0);B()}ea(0)|0;yc();B()}function dfb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=bc-48|0;bc=i;h=2;a:{b:{c:switch(J[a+796>>2]-1|0){case 0:case 1:if(!J[a+864>>2]){h=142;break a}e=J[J[a+804>>2]+(b<<2)>>2];b=J[a+104>>2];h=nd(b,J[a+860>>2]);if(h)break a;J[i+4>>2]=b;J[i>>2]=a;b=J[a+84>>2];I[i+16>>1]=0;J[i+12>>2]=g;J[i+8>>2]=b+76;J[i+20>>2]=J[a+860>>2];J[i+24>>2]=J[a+864>>2];g=J[a+788>>2];J[i+36>>2]=g;j=J[a+ -792>>2];J[i+40>>2]=j+g;h=3;b=P(e,48);if(j>>>0>>0)break a;g=b+g|0;b=K[g+8|0]|K[g+9|0]<<8|(K[g+10|0]<<16|K[g+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[i+28>>2]=e;b=K[g+16|0]|K[g+17|0]<<8|(K[g+18|0]<<16|K[g+19|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[i+32>>2]=b;H[i+18|0]=K[g+54|0];if(e>>>0>j>>>0|b>>>0>j-e>>>3>>>0)break a;h=x4(i,c,0,0,0,d>>>22&1);if(h)break a;if(!(d&5242880))break b;h=0;break a;case 2:break c;default:break a}b=J[J[a+804>>2]+(b<<2)>>2];d=0;I[g>>1]=0;I[g+2>> -1]=0;if(M[a+16>>2]>>0){h=6;break a}b=J[a+788>>2]+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);g=j+4|0;while(1){f=J[a+864>>2];if(f>>>0<=j>>>0){h=3;break a}b=c<<2;if(b+12>>>0>f-j>>>0){h=3;break a}h=nd(e,J[a+860>>2]+(b+g|0)|0);if(h)break a;h=Ue(e,8);if(h)break a;f=qh(e);c=qh(e);ne(e);if((c|0)==(f|0)){h=157;break a}if(c>>>0>>0){h=3;break a}b=c-f|0;if(b>>>0<8){h=3;break a}h=3;if(c>>>0>J[a+864>>2]-j>>>0)break a;h=nd(e,J[a+860>>2]+(f+j|0)| -0);if(h)break a;h=Ue(e,b);if(h)break a;mf(e);mf(e);b=qh(e);if((b|0)!=1685418085){d:{if(!((b|0)==1785751328|(b|0)==1919378028)){h=7;if((b|0)!=1953064550)break d}h=2}ne(e);break a}if((d|0)==4){h=3;ne(e);break a}c=mf(e);ne(e);d=d+1|0;if(M[a+16>>2]>=c>>>0)continue;break}h=6;break a}h=0;if(K[f+18|0]!=7)break a;o=J[J[a+84>>2]>>2];if(i){J[i>>2]=0;J[i+4>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0}g=f;m=bc-16|0;bc=m;J[m+12>>2]=0;e:{if(!o){d=33;break e}d=6;if(!g|!i)break e;f:{if((K[g+18|0]-1&255)>>> -0<=6){f=J[o>>2];H[i+18|0]=2;e=J[i>>2];j=J[g>>2];J[i>>2]=j;c=J[g+4>>2];J[i+4>>2]=c;h=J[i+8>>2];if((c|0)>0){Dzb(c,0,j,0);if(fc)break e}b=h>>31;b=M5(f,P(e,(b^h)-b|0),P(c,j),J[i+12>>2],m+12|0);J[i+12>>2]=b;d=J[m+12>>2];if(d)break e;J[i+8>>2]=J[i+8>>2]<0?0-c|0:c;break f}J[m+12>>2]=6;b=J[i+12>>2]}c=J[g+12>>2];f=J[g+8>>2];if((f|0)<0)c=P(1-J[g>>2]|0,f)+c|0;k=J[i+8>>2];if((k|0)<0)b=P(1-J[i>>2]|0,k)+b|0;g:{h:switch(K[g+18|0]-1|0){case 0:I[i+16>>1]=2;k=J[g>>2];if(!k)break g;while(1){e=J[g+4>>2];i:{if(e>>>0< -8){f=c;d=b;break i}l=e>>>3|0;d=b;f=c;while(1){e=K[f|0];H[d+7|0]=e&1;H[d|0]=e>>>7;H[d+6|0]=e>>>1&1;H[d+5|0]=e>>>2&1;H[d+4|0]=e>>>3&1;H[d+3|0]=e>>>4&1;H[d+2|0]=e>>>5&1;H[d+1|0]=e>>>6&1;f=f+1|0;d=d+8|0;l=l-1|0;if(l)continue;break}e=J[g+4>>2]}h=e&7;j:{if(!h)break j;e=K[f|0];H[d|0]=e>>>7;if((h|0)==1)break j;H[d+1|0]=e>>>6&1;if((h|0)==2)break j;H[d+2|0]=e>>>5&1;if((h|0)==3)break j;H[d+3|0]=e>>>4&1;if((h|0)==4)break j;H[d+4|0]=e>>>3&1;if((h|0)==5)break j;H[d+5|0]=e>>>2&1;if((h|0)==6)break j;H[d+6|0]=e>>> -1&1}b=J[i+8>>2]+b|0;c=J[g+8>>2]+c|0;k=k-1|0;if(k)continue;break}break g;case 1:case 4:case 5:f=J[g+4>>2];I[i+16>>1]=256;d=J[g>>2];if(!d)break g;if(d&1){b=tc(b,c,f)+J[i+8>>2]|0;c=J[g+8>>2]+c|0;e=d-1|0}else e=d;if((d|0)==1)break g;while(1){b=tc(b,c,f);c=J[g+8>>2]+c|0;b=tc(b+J[i+8>>2]|0,c,f)+J[i+8>>2]|0;c=c+J[g+8>>2]|0;e=e-2|0;if(e)continue;break}break g;case 2:I[i+16>>1]=4;k=J[g>>2];if(!k)break g;while(1){f=J[g+4>>2];k:{if(f>>>0<4){e=c;d=b;break k}h=f>>>2|0;l=h;d=b;e=c;if(f&4){f=K[e|0];H[d+3|0]=f&3; -H[d|0]=f>>>6;H[d+2|0]=f>>>2&3;H[d+1|0]=f>>>4&3;l=h-1|0;e=e+1|0;d=d+4|0}if((h|0)!=1)while(1){f=K[e|0];H[d+3|0]=f&3;H[d|0]=f>>>6;H[d+2|0]=f>>>2&3;H[d+1|0]=f>>>4&3;f=K[e+1|0];H[d+7|0]=f&3;H[d+4|0]=f>>>6;H[d+6|0]=f>>>2&3;H[d+5|0]=f>>>4&3;d=d+8|0;e=e+2|0;l=l-2|0;if(l)continue;break}f=J[g+4>>2]}f=f&3;l:{if(!f)break l;e=K[e|0];H[d|0]=e>>>6;if((f|0)==1)break l;H[d+1|0]=e>>>4&3;if((f|0)==2)break l;H[d+2|0]=e>>>2&3}b=J[i+8>>2]+b|0;c=J[g+8>>2]+c|0;k=k-1|0;if(k)continue;break}break g;case 3:I[i+16>>1]=16;n=J[g>> -2];if(!n)break g;while(1){f=J[g+4>>2];m:{if(f>>>0<2){e=c;d=b;break m}f=f>>>1|0;k=f-1|0;l=0;d=b;e=c;j=f&3;if(j)while(1){h=K[e|0];H[d+1|0]=h&15;H[d|0]=h>>>4;f=f-1|0;d=d+2|0;e=e+1|0;l=l+1|0;if((j|0)!=(l|0))continue;break}if(k>>>0>=3)while(1){h=K[e|0];H[d+1|0]=h&15;H[d|0]=h>>>4;h=K[e+1|0];H[d+3|0]=h&15;H[d+2|0]=h>>>4;h=K[e+2|0];H[d+5|0]=h&15;H[d+4|0]=h>>>4;h=K[e+3|0];H[d+7|0]=h&15;H[d+6|0]=h>>>4;d=d+8|0;e=e+4|0;f=f-4|0;if(f)continue;break}f=J[g+4>>2]}if(f&1)H[d|0]=K[e|0]>>>4;b=J[i+8>>2]+b|0;c=J[g+8>> -2]+c|0;n=n-1|0;if(n)continue;break}break g;case 6:break h;default:break g}I[i+16>>1]=256;j=J[g>>2];if(!j)break g;l=J[g+4>>2];if(!l)break g;while(1){e=b;d=c;if(l){while(1){h=K[d+3|0];if(h){f=K[d+1|0];k=P(P(f,f),46871);f=K[d|0];k=k+P(P(f,f),4732)|0;f=K[d+2|0];f=h-((k+P(P(f,f),13933)>>>16>>>0)/(h>>>0)|0)|0}else f=0;H[e|0]=f;e=e+1|0;d=d+4|0;l=l-1|0;if(l)continue;break}k=J[i+8>>2];f=J[g+8>>2]}j=j-1|0;if(!j)break g;c=c+f|0;b=b+k|0;l=J[g+4>>2];continue}}d=J[m+12>>2]}bc=m+16|0;h=d;if(d){I5(o,i);break a}H[g+ -18|0]=K[i+18|0];J[g+8>>2]=J[i+8>>2];I[g+16>>1]=L[i+16>>1];gM(J[a+84>>2],J[i+12>>2]);a=J[J[a+84>>2]+156>>2];J[a+4>>2]=J[a+4>>2]|1}bc=i+48|0;return h|0}function _H(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0;h=bc+-64|0;bc=h;a:{b:{f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;g=J[a+56>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break b;i=J[a+56>>2];i=gc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break b;l=J[a+56>>2]; -l=gc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;k=J[a+56>>2];k=gc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break b;q=J[a+56>>2];q=gc[J[J[q>>2]+28>>2]](q)|0;if((q|0)==-1)break b;m=J[a+56>>2];m=gc[J[J[m>>2]+28>>2]](m)|0;if((m|0)==-1)break b;t=J[a+56>>2];t=gc[J[J[t>>2]+28>>2]](t)|0;if((t|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;s=J[a+56>>2];s=gc[J[J[s>>2]+28>>2]](s)|0;if((s|0)==-1)break b;n=J[a+56>>2];n=gc[J[J[n>>2]+28>>2]](n)|0;if((n|0)==-1)break b;o=J[a+56>>2];o=gc[J[J[o>>2]+28>> -2]](o)|0;if((o|0)==-1)break b;u=J[a+56>>2];u=gc[J[J[u>>2]+28>>2]](u)|0;if((u|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;v=J[a+56>>2];v=gc[J[J[v>>2]+28>>2]](v)|0;if((v|0)==-1)break b;r=J[a+56>>2];y=gc[J[J[r>>2]+28>>2]](r)|0;if((y|0)==-1)break b;r=J[a+56>>2];w=gc[J[J[r>>2]+28>>2]](r)|0;if((w|0)==-1)break b;r=J[a+56>>2];j=gc[J[J[r>>2]+28>>2]](r)|0;if((j|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;r=J[a+56>>2];E=gc[J[J[r>>2]+28>>2]](r)|0;if((E|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;c:{g=l|(g<<16|f<<24|i<<8);f= -J[a+24>>2];d:{if((g>>>0)/10>>>0>f>>>0)break d;t=t|(q<<16|k<<24|m<<8);i=J[a+28>>2];y=j|(y<<16|v<<24|w<<8);r=u|(n<<16|s<<24|o<<8);if(i>>>0<(y>>>0)/10>>>0|f>>>0<(r>>>0)/10>>>0)break d;if(i>>>0>=(t>>>0)/10>>>0)break c}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,797412,0);J[a+72>>2]=1;break a}f=J[a+56>>2];n=gc[J[J[f>>2]+28>>2]](f)|0;if((n|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;if(!jt(a,h+60|0))break b;if(!jt(a,h+56|0))break b;if(!jt(a,h+12|0))break b;if(!jt(a,h+8|0))break b;if(!NA(a,h+52|0))break b;if(!NA(a,h+48|0))break b; -e:{if(!(!g|!t))if(g>>>0<2147483647/(t>>>0)>>>0)break e;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,798226,0);break a}f:{l=J[h+60>>2];g:{if(!l)break g;k=J[h+56>>2];if(!k)break g;if(l>>>0<2147483647/(k>>>0)>>>0)break f}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,798973,0);break a}if((e|0)!=1){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,799681,0);break a}h:{s=LA(a,J[d>>2]);if(s)if((gc[J[J[s>>2]+8>>2]](s)|0)==2)break h;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,799681,0);break a}f=-1;d=J[s+8>>2];if(d>>>0>=2){e=d-1|0;d=0;while(1){f=d;d=d+1|0;i=e>>>0>1; -e=e>>>1|0;if(i)continue;break}}u=n>>>1&3;d=J[J[s+12>>2]>>2];o=J[d+12>>2];w=J[d+8>>2];F=n&1;if(!F){XH(a,u,0);Vm(J[a+76>>2])}e=rc(24);J[695492]=0;q=ha(3446,e|0,b|0,g|0,t|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){v=n>>>3&1;b=P(J[q+16>>2],J[q+12>>2]);d=J[q+20>>2];i:{if(n&128){wc(d,255,b);break i}wc(d,0,b)}i=0;j:{if(v){b=0;e=rc(24);J[695492]=0;i=ha(3446,e|0,0,l|0,k|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;wc(J[i+20>>2],0,P(J[i+16>>2],J[i+12>>2]));j=k>>>0<=1?1:k;z=J[h+8>>2];d=J[h+52>>2];m=J[h+48>> -2];A=J[h+12>>2];while(1){C=P(b,d);D=A+P(b,m)|0;e=0;while(1){x=D+P(d,e)|0;k:{l:{if((x+w|0)<256|(g|0)<=x>>8)break l;x=z+(C-P(e,m)|0)|0;if((x+o|0)<256)break l;if((t|0)>x>>8)break k}x=(J[i+20>>2]+P(J[i+16>>2],b)|0)+(e>>3)|0;H[x|0]=K[x|0]|1<<((e^-1)&7)}e=e+1|0;if((l|0)!=(e|0))continue;break}b=b+1|0;if((j|0)!=(b|0))continue;break}}b=P(k,l);m=wc(vd(b,4),0,b<<2);J[h+32>>2]=u>>>0<2?3:2;J[h+36>>2]=-3;J[h+16>>2]=-1;J[h+20>>2]=-1;J[h+40>>2]=2;J[h+44>>2]=-2;J[h+24>>2]=-2;J[h+28>>2]=-2;if((f|0)>=0){z=k>>>0<=1? -1:k;A=m+12|0;C=m+8|0;D=m+4|0;w=l&3;x=l-1>>>0<3;while(1){d=it(a,F,l,k,u,0,v,i,h+32|0,h+16|0,-1);g=0;o=0;while(1){b=0;m:{if((o|0)<0){e=0;b=g;if(w)while(1){p=m+(b<<2)|0;j=J[p>>2];J[p>>2]=j&1|j<<1;b=b+1|0;e=e+1|0;if((w|0)!=(e|0))continue;break}g=g+l|0;if(x)break m;while(1){e=b<<2;p=e+m|0;j=J[p>>2];J[p>>2]=j&1|j<<1;p=e+D|0;j=J[p>>2];J[p>>2]=j&1|j<<1;p=e+C|0;j=J[p>>2];J[p>>2]=j&1|j<<1;j=e+A|0;e=J[j>>2];J[j>>2]=e&1|e<<1;b=b+4|0;if((g|0)!=(b|0))continue;break}break m}while(1){j=m+(g<<2)|0;p=0;n:{if(J[d+8>> -2]<=(b|0))break n;p=0;if(J[d+12>>2]<=(o|0))break n;p=K[J[d+20>>2]+P(J[d+16>>2],o)+(b>>>3)|0]>>>((b^-1)&7)&1}e=J[j>>2];J[j>>2]=p^e&1|e<<1;g=g+1|0;b=b+1|0;if((l|0)!=(b|0))continue;break}}o=o+1|0;if((z|0)!=(o|0))continue;break}if(d)gc[J[J[d>>2]+4>>2]](d);b=f;f=b-1|0;if((b|0)>0)continue;break}}o=n>>>4&7;u=k>>>0<=1?1:k;b=0;k=J[h+52>>2];w=J[h+8>>2];n=J[h+48>>2];j=J[h+12>>2];o:{if(!v){f=0;while(1){d=b+l|0;g=w+P(f,k)|0;e=j+P(f,n)|0;while(1){_k(q,J[J[s+12>>2]+(J[m+(b<<2)>>2]<<2)>>2],e>>8,g>>8,o);g=g-n|0;e= -e+k|0;b=b+1|0;if((d|0)!=(b|0))continue;break}b=d;f=f+1|0;if((u|0)!=(f|0))continue;break}break o}f=0;while(1){e=w+P(f,k)|0;d=j+P(f,n)|0;g=0;while(1){v=0;if(!(J[i+8>>2]<=(g|0)|J[i+12>>2]<=(f|0)|(g|f)<0))v=K[J[i+20>>2]+P(J[i+16>>2],f)+(g>>>3)|0]>>>((g^-1)&7)&1;if(!v)_k(q,J[J[s+12>>2]+(J[m+(b<<2)>>2]<<2)>>2],d>>8,e>>8,o);b=b+1|0;e=e-n|0;d=d+k|0;g=g+1|0;if((l|0)!=(g|0))continue;break}f=f+1|0;if((u|0)!=(f|0))continue;break}}Gc(m);if(i)gc[J[J[i>>2]+4>>2]](i);if(c){b=E&7;p:{if(J[a+28>>2]!=-1)break p;c=t+ -y|0;if(c>>>0<=M[a+32>>2])break p;OA(J[a+40>>2],c,J[a+36>>2])}_k(J[a+40>>2],q,r,y,b);gc[J[J[q>>2]+4>>2]](q);break a}id(J[a+48>>2],q);break a}}a=Z()|0;qc(e);ba(a|0);B()}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781526,0)}bc=h- -64|0}function eM(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,w=0,x=0,y=0;l=bc-32|0;bc=l;r=J[a>>2];f=bc-48|0;bc=f;h=J[b+20>>2];a:{b:{if(h){g=85;if(gc[h|0](b,c,0,0)|0)break a;h=J[b+4>>2];break b}g=85;h=J[b+4>>2];if(h>>>0>>0)break a}J[b+8>>2]=c;J[f+ -44>>2]=0;if(c>>>0>=h>>>0)break a;i=J[b+20>>2];c:{if(i){h=gc[i|0](b,c,f+16|0,16)|0;break c}h=h-c|0;h=h>>>0>=16?16:h;tc(f+16|0,J[b>>2]+c|0,h)}J[b+8>>2]=c+h;if(h>>>0<16)break a;h=H[f+16|0];if((h|0)<0){g=2;break a}i=H[f+20|0];if((i|0)<0){g=2;break a}j=H[f+24|0];if((j|0)<0){g=2;break a}k=H[f+28|0];if((k|0)<0){g=2;break a}h=K[f+19|0]|(K[f+17|0]<<16|(h&255)<<24|K[f+18|0]<<8);J[l+16>>2]=h;i=K[f+23|0]|(K[f+21|0]<<16|(i&255)<<24|K[f+22|0]<<8);if(!i){g=2;break a}m=K[f+31|0];k=m|(K[f+29|0]<<16|(k&255)<<24|K[f+ -30|0]<<8);j=K[f+27|0]|(K[f+25|0]<<16|(j&255)<<24|K[f+26|0]<<8);d:{if(h>>>0>>0){if((h|0)<=(i-j|0))break d;g=2;break a}if((i|0)<=(h-k|0))break d;g=2;break a}if(h>>>0>(j^2147483647)>>>0){g=2;break a}if(i>>>0>(k^2147483647)>>>0){g=2;break a}if((h+j^2147483647)<(c|0)){g=2;break a}if((i+k^2147483647)<(c|0)){g=2;break a}h=c+h|0;n=h+j|0;j=J[b+4>>2];if(n>>>0>j>>>0){g=2;break a}c=c+i|0;if(j>>>0>>0){g=2;break a}J[l+16>>2]=h;h=J[b+20>>2];e:{if(h){if(gc[h|0](b,c,0,0)|0)break a;m=K[f+31|0];break e}if(c>>> -0>M[b+4>>2])break a}J[b+8>>2]=c;H[f+15|0]=m+1;g=mg(b,f,16);if(g)break a;t=K[f|0];u=K[f+1|0];v=K[f+2|0];w=K[f+3|0];x=K[f+4|0];y=K[f+5|0];p=K[f+6|0];q=K[f+7|0];o=K[f+8|0];n=K[f+9|0];g=K[f+10|0];h=K[f+11|0];i=K[f+12|0];k=K[f+13|0];j=K[f+15|0];m=K[f+14|0];if(!(!(t|(u|(v|(w|(x|(y|(p|(q|(o|(n|(g|(h|(i|(k|(j|m)))))))))))))))|K[f+31|0]==(j|0)&K[f+30|0]==(m|0)&K[f+29|0]==(k|0)&K[f+28|0]==(i|0)&K[f+27|0]==(h|0)&K[f+26|0]==(g|0)&(n|0)==K[f+25|0]&(o|0)==K[f+24|0]&(q|0)==K[f+23|0]&(p|0)==K[f+22|0]&(y|0)==K[f+ -21|0]&(x|0)==K[f+20|0]&(w|0)==K[f+19|0]&(v|0)==K[f+18|0]&(u|0)==K[f+17|0]&(t|0)==K[f+16|0])){g=2;break a}g=J[b+8>>2]+8|0;i=J[b+20>>2];f:{g:{if(i){h=85;if(!(gc[i|0](b,g,0,0)|0))break g;break f}h=85;if(g>>>0>M[b+4>>2])break f}J[b+8>>2]=g;h=0}J[f+44>>2]=h;h=Wd(b,f+44|0);g=J[f+44>>2];if(g)break a;g=2;h=h<<16>>16;if((h|0)<0)break a;c=c+h|0;h=J[b+20>>2];h:{if(h){g=85;if(!(gc[h|0](b,c,0,0)|0))break h;break a}g=85;if(c>>>0>M[b+4>>2])break a}J[b+8>>2]=c;J[l+20>>2]=c;g=0}bc=f+48|0;c=g;i:{if(c)break i;c=1;j:{k:{l:{m:{g= -J[l+20>>2];h=J[l+16>>2];if(!S5(a,b,g,h,1347375956,1,l+12|0,l+8|0)){o=J[l+12>>2];n:{o:{if(d+1>>>0>1)break o;c=10;p=J[l+8>>2];if((p|0)<=0)break o;q=J[a>>2];f=0;while(1){d=J[o+(f<<2)>>2];g=J[b+20>>2];p:{if(g){if(gc[g|0](b,d,0,0)|0)break n;j=J[b+4>>2];break p}j=J[b+4>>2];if(j>>>0>>0)break n}J[b+8>>2]=d;if(d+3>>>0>=j>>>0)break n;q:{r:{h=J[b+20>>2];s:{if(h){g=l+28|0;if((gc[h|0](b,d,g,4)|0)!=4)break n;d=J[b+8>>2];break s}g=J[b>>2];if(!g)break r;g=d+g|0}g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24); -J[b+8>>2]=d+4;d=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(d>>>0<=16777215)break q;c=9;break l}J[b+8>>2]=d+4;d=0}g=s+6|0;if(g>>>0>(d^16777215)>>>0){c=9;break l}s=d+g|0;f=f+1|0;if((p|0)!=(f|0))continue;break}n=s+2|0;if(n>>>0<6)break o;c=6;if((n|0)<=0)break l;d=gc[J[q+4>>2]](q,n)|0;if(!d){c=64;break l}c=0;k=wc(d,0,n);H[k+2|0]=0;H[k+3|0]=0;H[k+4|0]=0;H[k+5|0]=0;H[k|0]=128;H[k+1|0]=1;t:{if((p|0)<=0){d=6;m=2;break t}m=2;d=6;h=1;j=0;while(1){g=J[o+(j<<2)>>2];f=J[b+20>>2];u:{if(f){if(!(gc[f|0](b,g,0,0)| -0))break u;break m}if(g>>>0>M[b+4>>2])break m}J[b+8>>2]=g;J[l+24>>2]=0;f=l+24|0;g=Kf(b,f);if(J[l+24>>2]|(g|0)<0)break m;f=Wd(b,f);if(J[l+24>>2])break m;J[l+24>>2]=10;if(f>>>0>=256){i=g-2|0;g=g>>>0>=i>>>0?i:0;i=f>>>8|0;v:{if((i|0)==(h|0)){f=d;c=c+g|0;break v}f=m+3|0;if(f>>>0>n>>>0)break m;h=k+m|0;H[h|0]=c;H[h+2|0]=c>>>16;H[h+1|0]=c>>>8;H[f+k|0]=c>>>24;if((i|0)==5)break t;f=d+6|0;if(n>>>0>>0)break m;h=d+k|0;H[h|0]=128;m=d+2|0;c=k+m|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[h+1|0]=i;h=i;c=g}if(f>>> -0>s>>>0)break m;d=f+g|0;if(s>>>0>>0)break m;g=mg(b,f+k|0,g);J[l+24>>2]=g;if(g)break m}j=j+1|0;if((p|0)!=(j|0))continue;break}}g=d+2|0;if(g>>>0>n>>>0)break m;b=d+k|0;H[b|0]=128;H[b+1|0]=3;d=m+3|0;if(d>>>0>n>>>0)break m;b=k+m|0;H[b|0]=c;H[b+2|0]=c>>>16;H[b+1|0]=c>>>8;H[d+k|0]=c>>>24;c=UL(a,k,g,0,241752,e)}if(o)break l;break k}c=85;break l}c=S5(a,b,g,h,1936092788,0,l+12|0,l+8|0);if(c)break i;f=J[l+12>>2];j=J[l+8>>2];c=(d|0)%(j|0)|0;i=c>>31^c;w:{if((i|0)<(j|0)){g=J[a>>2];h=J[f+(i<<2)>>2];d=J[b+20>> -2];x:{if(d){c=85;if(!(gc[d|0](b,h,0,0)|0))break x;break w}c=85;if(h>>>0>M[b+4>>2])break w}J[b+8>>2]=h;J[l+28>>2]=0;d=Kf(b,l+28|0);c=J[l+28>>2];if(c)break w;c=1;if((d|0)<=0)break w;c=9;if(d>>>0>16777215)break w;if(!a6(a,b,i,e)){c=0;break w}h=h+4|0;i=J[b+20>>2];y:{if(i){c=85;if(!(gc[i|0](b,h,0,0)|0))break y;break w}c=85;if(h>>>0>M[b+4>>2])break w}J[b+8>>2]=h;c=gc[J[g+4>>2]](g,d)|0;if(!c){c=64;break w}h=b;b=wc(c,0,d);c=mg(h,b,d);if(c){gc[J[g+8>>2]](g,b);break w}if(d>>>0>=5)c=(K[b|0]|K[b+1|0]<<8|(K[b+ -2|0]<<16|K[b+3|0]<<24))==1330926671?241946:240775;else c=240775;c=UL(a,b,d,0,c,e);break w}c=1;if(!f)break i}gc[J[r+8>>2]](r,f);if(c)break i;break j}gc[J[q+8>>2]](q,k);c=1;if(!o)break k}gc[J[r+8>>2]](r,o)}if(c)break i;j=1}J[J[e>>2]>>2]=j;c=0}bc=l+32|0;return c}function jR(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,B=0;j=bc-80|0;bc=j;J[j+76>>2]=b;y=e-192|0;z=d-384|0;B=j+55|0;s=j+56|0;a:{b:{c:{d:while(1){h=0;e:while(1){k=b;if((q^2147483647)<(h| -0))break c;q=h+q|0;f:{g:{h:{h=b;i=K[h|0];if(i)while(1){i:{b=i&255;j:{if(!b){b=h;break j}if((b|0)!=37)break i;i=h;while(1){if(K[i+1|0]!=37){b=i;break j}h=h+1|0;m=K[i+2|0];b=i+2|0;i=b;if((m|0)==37)continue;break}}h=h-k|0;A=q^2147483647;if((h|0)>(A|0))break c;if(a)bi(a,k,h);if(h)continue e;J[j+76>>2]=b;h=b+1|0;p=-1;i=H[b+1|0]-48|0;if(!(K[b+2|0]!=36|i>>>0>=10)){p=i;t=1;h=b+3|0}J[j+76>>2]=h;n=0;i=H[h|0];b=i-32|0;k:{if(b>>>0>31){m=h;break k}m=h;b=1<>2]=m; -n=b|n;i=H[h+1|0];b=i-32|0;if(b>>>0>=32)break k;h=m;b=1<>>0>=10)){b=H[i|0];i=m+3|0;t=1;n:{if(!a){J[(b<<2)+y>>2]=10;b=0;break n}b=J[(b<<3)+z>>2]}break m}if(t)break h;if(!a){J[j+76>>2]=i;t=0;r=0;break l}b=J[c>>2];J[c>>2]=b+4;t=0;b=J[b>>2]}J[j+76>>2]=i;r=b;if((b|0)>=0)break l;r=0-b|0;n=n|8192;break l}r=iR(j+76|0);if((r|0)<0)break c;i=J[j+76>>2]}h=0;l=-1;o:{if(K[i|0]!=46){b=i;v=0;break o}if(K[i+1|0]==42){b=i+2|0;p:{if(!(K[i+ -3|0]!=36|H[i+2|0]-48>>>0>=10)){b=H[b|0];q:{if(!a){J[(b<<2)+y>>2]=10;l=0;break q}l=J[(b<<3)+z>>2]}b=i+4|0;break p}if(t)break h;if(!a){l=0;break p}i=J[c>>2];J[c>>2]=i+4;l=J[i>>2]}J[j+76>>2]=b;v=(l|0)>=0;break o}J[j+76>>2]=i+1;l=iR(j+76|0);b=J[j+76>>2];v=1}while(1){x=h;o=28;w=b;i=H[b|0];if(i-123>>>0<4294967238)break b;b=b+1|0;h=K[(i+P(h,58)|0)+2612319|0];if(h-1>>>0<8)continue;break}J[j+76>>2]=b;r:{if((h|0)!=27){if(!h)break b;if((p|0)>=0){if(!a){J[(p<<2)+e>>2]=h;continue d}i=(p<<3)+d|0;h=J[i+4>>2];J[j+ -64>>2]=J[i>>2];J[j+68>>2]=h;break r}if(!a)break f;hR(j- -64|0,h,c,g);break r}if((p|0)>=0)break b;h=0;if(!a)continue e}o=-1;if(K[a|0]&32)break a;i=n&-65537;n=n&8192?i:n;p=0;u=1629;m=s;s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{h=H[w|0];h=x?(h&15)==3?h&-33:h:h;switch(h-88|0){case 11:break s;case 9:case 13:case 14:case 15:break t;case 27:break y;case 12:case 17:break B;case 23:break C;case 0:case 32:break D;case 24:break E;case 22:break F;case 29: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 g; +if(f)continue;break}}b=J[h>>2];i=P((g>>>0)%M[a+4>>2]|0,24);d=i+J[a>>2]|0;v:{if(!J[d+20>>2]){g=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=g;g=J[h+20>>2];J[d+16>>2]=J[h+16>>2];J[d+20>>2]=g;g=J[h+12>>2];J[d+8>>2]=J[h+8>>2];J[d+12>>2]=g;J[i+J[a>>2]>>2]=0;kc[J[663199]](h);break v}J[h>>2]=J[d>>2];J[d>>2]=h}h=b;if(h)continue;break}c=c+1|0;if((e|0)!=(c|0))continue;break}}f=0;kc[J[663199]](j)}return f}return-1}function Rwa(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;d=fc-96|0;fc=d;f=d+40|0;BH(f, +2392736,c);J[699344]=0;g=d+48|0;ca(5291,g|0,f|0,2393275);c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{if((c|0)!=1){c=J[J[b>>2]+16>>2];J[699344]=0;c=_(c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break t;J[699344]=0;i=d+56|0;ca(5291,i|0,g|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break t;J[699344]=0;j=d- -64|0;ca(5291,j|0,i|0,2393666);c=J[699344];J[699344]=0;if((c|0)==1)break s;J[699344]=0;c=d+72|0;ca(5291,c|0,j|0,2394076);e=J[699344];J[699344]=0;if((e|0)== +1)break r;J[699344]=0;h=d+32|0;ca(5599,h|0,b+24|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break q;J[699344]=0;e=d+80|0;ca(5292,e|0,c|0,h|0);k=J[699344];J[699344]=0;if((k|0)==1)break p;J[699344]=0;k=d+88|0;ca(5291,k|0,e|0,2393666);l=J[699344];J[699344]=0;if((l|0)==1)break o;wc(e);wc(h);wc(c);wc(j);wc(i);wc(g);wc(f);f=J[b+8>>2];if(!f|!J[f+8>>2])break d;J[699344]=0;ca(5218,c|0,2394375,b+8|0);f=J[699344];J[699344]=0;if((f|0)==1)break h;J[699344]=0;ca(5291,e|0,c|0,2393666);f=J[699344];J[699344]=0;if((f| +0)==1)break g;J[699344]=0;aa(5340,k|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break f;wc(e);wc(c);break c}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;break k}b=Z()|0;break l}b=Z()|0;break m}b=Z()|0;break n}b=Z()|0;wc(d+80|0)}wc(d+32|0)}wc(d+72|0)}wc(d- -64|0)}wc(d+56|0)}wc(d+48|0)}wc(d+40|0);ba(b|0);B()}b=Z()|0;break b}b=Z()|0;break e}b=Z()|0;wc(d+80|0)}wc(d+72|0);break b}J[699344]=0;aa(5355,d+88|0,2398545)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break c;b=Z()|0;break b}u:{c=J[b+16>>2];if(!c|!J[c+8>> +2])break u;J[699344]=0;c=d- -64|0;ca(5599,c|0,b+16|0,0);e=J[699344];J[699344]=0;v:{w:{x:{y:{z:{if((e|0)!=1){J[699344]=0;e=d+72|0;ca(5218,e|0,2398841,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break z;J[699344]=0;f=d+80|0;ca(5291,f|0,e|0,2393666);g=J[699344];J[699344]=0;if((g|0)==1)break y;J[699344]=0;aa(5340,d+88|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break x;wc(f);wc(e);wc(c);break u}b=Z()|0;break b}b=Z()|0;break v}b=Z()|0;break w}b=Z()|0;wc(d+80|0)}wc(d+72|0)}wc(d- -64|0);break b}A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{V:{W:{X:{Y:{Z:{c= +J[b+48>>2];if(!((c|0)==-16777216|(c|0)==-1)){J[d+80>>2]=0;J[699344]=0;J[d+16>>2]=c;J[d+84>>2]=J[685894];c=d+80|0;e=ga(5350,c|0,2399150,d+16|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break Z;J[699344]=0;aa(5340,d+88|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break Z;wc(c)}c=2423673;e=J[b+32>>2]-1|0;if(e>>>0<=5)c=J[(e<<2)+2424732>>2];J[699344]=0;e=d- -64|0;ca(5291,e|0,d+88|0,2402393);f=J[699344];J[699344]=0;if((f|0)==1)break W;J[699344]=0;f=d+72|0;ca(5291,f|0,e|0,c|0);c=J[699344];J[699344]=0;if((c| +0)==1)break V;J[699344]=0;ca(5291,d+80|0,f|0,2393666);c=J[699344];J[699344]=0;if((c|0)==1)break U;c=J[d+80>>2];if(!c)break Y;e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+56|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break X;b=Z()|0;break C}b=Z()|0;wc(d+80|0);break b}J[d+56>>2]=0}J[699344]=0;aa(5153,d+88|0,d+56|0)|0;c=J[699344];J[699344]=0;_:{if((c|0)!=1){c=J[d+56>>2];J[d+56>>2]=0;if(!c)break _;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break _;J[699344]=0;$(5147, +c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break _}break a}b=Z()|0;zc(d+56|0);break C}c=J[d+88>>2];J[d+92>>2]=J[(c?c+12|0:2743576)>>2];c=d+80|0;wc(c);e=d+72|0;wc(e);f=d- -64|0;wc(f);if(J[b+32>>2]){J[d+48>>2]=0;J[d+52>>2]=J[685894];J[d>>2]=J[b+40>>2];J[699344]=0;j=d+48|0;g=ga(5350,j|0,2402740,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break T;J[699344]=0;i=d+56|0;ca(5218,i|0,2402609,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break T;J[699344]=0;ca(5291,f|0,i|0,2402964);g=J[699344];J[699344]=0;if((g|0)== +1)break S;g=J[b+44>>2];J[699344]=0;g=aa(5290,d+40|0,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break R;J[699344]=0;ca(5292,e|0,f|0,g|0);h=J[699344];J[699344]=0;if((h|0)==1)break Q;J[699344]=0;ca(5291,c|0,e|0,2393666);h=J[699344];J[699344]=0;if((h|0)==1)break P;J[699344]=0;aa(5340,d+88|0,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break O;wc(c);wc(e);wc(g);wc(f);wc(i);wc(j)}if(!K[b+36|0])break E;J[699344]=0;ca(5291,d+80|0,d+88|0,2403324);b=J[699344];J[699344]=0;if((b|0)==1)break G;b=J[d+80>>2];if(!b)break I; +c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+72|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break H;b=Z()|0;break D}b=Z()|0;break b}b=Z()|0;break A}b=Z()|0;break B}b=Z()|0;break J}b=Z()|0;break K}b=Z()|0;break L}b=Z()|0;break M}b=Z()|0;break N}b=Z()|0;wc(d+80|0)}wc(d+72|0)}wc(g)}wc(d- -64|0)}wc(d+56|0)}wc(d+48|0);break b}J[d+72>>2]=0}J[699344]=0;aa(5153,d+88|0,d+72|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+72>>2];J[d+72>>2]=0;if(!b)break F;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]= +0;if((e|0)!=1){if(c)break F;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break F}break a}b=Z()|0;zc(d+72|0);break D}b=Z()|0;break b}b=J[d+88>>2];J[d+92>>2]=J[(b?b+12|0:2743576)>>2];wc(d+80|0)}J[699344]=0;ca(5291,a|0,d+88|0,2404357);a=J[699344];J[699344]=0;if((a|0)==1){b=Z()|0;break b}wc(d+88|0);fc=d+96|0;return}wc(d+80|0);break b}wc(d+80|0)}wc(d+72|0)}wc(d- -64|0)}wc(d+88|0);ba(b|0);B()}ea(0)|0;Bc();B()}function JW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-80|0;fc=d;a:{b:{c:{if(!K[b+ +89|0]){a=Qc(d+44|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;Kc(a);ba(b|0);B()}d:{e:{f:{e=b+92|0;if(!(J[e>>2]&1))break f;g:switch(J[b+56>>2]-1|0){case 2:if(!(J[e>>2]&2))break f;f=d+4|0;ZH(f,J[b+48>>2],c);h:{i:{e=J[d+4>>2];j:{if(e)break j;e=J[b+48>>2];J[699344]=0;g=d+44|0;ca(5416,g|0,e|0,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;J[699344]=0;aa(5153,f|0,g|0)|0;e=J[699344];J[699344]=0;k:{l:{if((e|0)!=1){e=J[d+44>>2];J[d+44>>2]=0; +m:{if(!e)break m;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break b;if(f)break m;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break b}e=J[d+4>>2];if(e)break j;f=J[b+48>>2];J[699344]=0;e=d+44|0;ca(5417,e|0,f|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break l;J[699344]=0;aa(5153,d+4|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break k;a=Z()|0;zc(e);break h}a=Z()|0;zc(d+44|0);break h}a=Z()|0;break h}zc(d+44|0);e=J[d+4>>2];if(!e)break f}J[699344]=0;b=ga(5343, +d+44|0,e+36|0,b+8|0)|0;c=J[699344];J[699344]=0;n:{if((c|0)!=1){J[699344]=0;aa(5151,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break n;J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);a=J[d+4>>2];J[d+4>>2]=0;if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break e; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e}break b}a=Z()|0;break h}a=Z()|0;Ed(b);break h}a=Z()|0}break a;case 3:if(!(J[e>>2]&2))break f;f=d+40|0;ZH(f,J[b+48>>2],c);o:{p:{e=J[d+40>>2];q:{if(e)break q;e=J[b+48>>2];J[699344]=0;g=d+44|0;ca(5416,g|0,e|0,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break p;J[699344]=0;aa(5153,f|0,g|0)|0;e=J[699344];J[699344]=0;r:{s:{if((e|0)!=1){e=J[d+44>>2];J[d+44>>2]=0;t:{if(!e)break t;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;g=J[699344];J[699344]= +0;if((g|0)==1)break d;if(f)break t;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break d}e=J[d+40>>2];if(e)break q;f=J[b+48>>2];J[699344]=0;e=d+44|0;ca(5417,e|0,f|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break s;J[699344]=0;aa(5153,d+40|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break r;a=Z()|0;zc(e);break o}a=Z()|0;zc(d+44|0);break o}a=Z()|0;break o}zc(d+44|0);e=J[d+40>>2];if(!e)break f}J[699344]=0;c=d+4|0;da(5396,c|0,b+8|0);b=J[699344];J[699344]=0;u:{v:{w:{if((b|0)!=1){J[699344]= +0;b=ga(5343,d+44|0,e+36|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break w;J[699344]=0;aa(5151,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break v;J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);J[d+28>>2]=2392964;J[d+4>>2]=2392932;a=J[d+32>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a); +J[d+32>>2]=0}J[d+20>>2]=2392964;a=J[d+24>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+24>>2]=0}wc(d+12|0);a=J[d+40>>2];J[d+40>>2]=0;if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e}break b}a=Z()|0;break o}a=Z()|0;break u}a=Z()|0;Ed(b)}Ed(d+4|0);break o}a=Z()|0}zc(d+40|0);ba(a|0);B();case 0:if(!(J[e>>2]&2))break f;aX(d+4|0,J[b+108>>2],c);if(!J[d+4>>2])break f; +J[699344]=0;b=ga(5343,d+44|0,c|0,b+8|0)|0;c=J[699344];J[699344]=0;x:{y:{if((c|0)!=1){J[699344]=0;aa(5151,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break y;J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);a=J[d+4>>2];J[d+4>>2]=0;if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]= +0;if((c|0)!=1){if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e}break b}a=Z()|0;break x}a=Z()|0;Ed(b)}break a;case 1:case 4:break g;default:break f}e=d+4|0;kA(e,b+8|0);J[699344]=0;b=ga(5343,d+44|0,c|0,e|0)|0;c=J[699344];J[699344]=0;z:{A:{if((c|0)!=1){J[699344]=0;aa(5151,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break A;J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964; +a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);J[d+28>>2]=2392964;J[d+4>>2]=2392932;a=J[d+32>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+32>>2]=0}J[d+20>>2]=2392964;a=J[d+24>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+24>>2]=0}wc(d+12|0);break e}a=Z()|0;break z}a=Z()|0;Ed(b)}Ed(d+4|0);ba(a|0);B()}Cm(a)}fc=d+80|0;return}ea(0)|0;Bc()}B()}ea(0)|0;Bc();B()}zc(d+4|0);ba(a|0);B()}function Vjb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=fc-48|0;fc=i;h=2;a:{b:{c:switch(J[a+796>>2]-1|0){case 0:case 1:if(!J[a+864>>2]){h=142;break a}e=J[J[a+804>>2]+(b<<2)>>2];b=J[a+104>>2];h=yd(b,J[a+860>>2]);if(h)break a;J[i+4>>2]=b;J[i>>2]=a;b=J[a+84>>2];I[i+16>>1]=0;J[i+12>>2]=g;J[i+8>>2]=b+76;J[i+20>>2]=J[a+860>>2];J[i+24>>2]=J[a+864>>2];g=J[a+788>>2];J[i+36>>2]=g;j=J[a+792>>2];J[i+40>>2]=j+g;h=3;b=P(e,48);if(j>>>0>>0)break a;g=b+g|0;b=K[g+8|0]|K[g+9|0]<< +8|(K[g+10|0]<<16|K[g+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[i+28>>2]=e;b=K[g+16|0]|K[g+17|0]<<8|(K[g+18|0]<<16|K[g+19|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[i+32>>2]=b;H[i+18|0]=K[g+54|0];if(e>>>0>j>>>0|b>>>0>j-e>>>3>>>0)break a;h=y6(i,c,0,0,0,d>>>22&1);if(h)break a;if(!(d&5242880))break b;h=0;break a;case 2:break c;default:break a}b=J[J[a+804>>2]+(b<<2)>>2];d=0;I[g>>1]=0;I[g+2>>1]=0;if(M[a+16>>2]>>0){h=6;break a}b=J[a+788>>2]+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10| +0]<<16|K[b+11|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);g=j+4|0;while(1){f=J[a+864>>2];if(f>>>0<=j>>>0){h=3;break a}b=c<<2;if(b+12>>>0>f-j>>>0){h=3;break a}h=yd(e,J[a+860>>2]+(b+g|0)|0);if(h)break a;h=af(e,8);if(h)break a;f=Fh(e);c=Fh(e);ve(e);if((c|0)==(f|0)){h=157;break a}if(c>>>0>>0){h=3;break a}b=c-f|0;if(b>>>0<8){h=3;break a}h=3;if(c>>>0>J[a+864>>2]-j>>>0)break a;h=yd(e,J[a+860>>2]+(f+j|0)|0);if(h)break a;h=af(e,b);if(h)break a;tf(e);tf(e);b=Fh(e);if((b|0)!=1685418085){d:{if(!((b| +0)==1785751328|(b|0)==1919378028)){h=7;if((b|0)!=1953064550)break d}h=2}ve(e);break a}if((d|0)==4){h=3;ve(e);break a}c=tf(e);ve(e);d=d+1|0;if(M[a+16>>2]>=c>>>0)continue;break}h=6;break a}h=0;if(K[f+18|0]!=7)break a;o=J[J[a+84>>2]>>2];if(i){J[i>>2]=0;J[i+4>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0}g=f;m=fc-16|0;fc=m;J[m+12>>2]=0;e:{if(!o){d=33;break e}d=6;if(!g|!i)break e;f:{if((K[g+18|0]-1&255)>>>0<=6){f=J[o>>2];H[i+18|0]=2;e=J[i>>2];j=J[g>>2];J[i>>2]=j;c=J[g+4>>2];J[i+4>>2]=c;h=J[i+ +8>>2];if((c|0)>0){vEb(c,0,j,0);if(jc)break e}b=h>>31;b=N7(f,P(e,(b^h)-b|0),P(c,j),J[i+12>>2],m+12|0);J[i+12>>2]=b;d=J[m+12>>2];if(d)break e;J[i+8>>2]=J[i+8>>2]<0?0-c|0:c;break f}J[m+12>>2]=6;b=J[i+12>>2]}c=J[g+12>>2];f=J[g+8>>2];if((f|0)<0)c=P(1-J[g>>2]|0,f)+c|0;k=J[i+8>>2];if((k|0)<0)b=P(1-J[i>>2]|0,k)+b|0;g:{h:switch(K[g+18|0]-1|0){case 0:I[i+16>>1]=2;k=J[g>>2];if(!k)break g;while(1){e=J[g+4>>2];i:{if(e>>>0<8){f=c;d=b;break i}l=e>>>3|0;d=b;f=c;while(1){e=K[f|0];H[d+7|0]=e&1;H[d|0]=e>>>7;H[d+6|0]= +e>>>1&1;H[d+5|0]=e>>>2&1;H[d+4|0]=e>>>3&1;H[d+3|0]=e>>>4&1;H[d+2|0]=e>>>5&1;H[d+1|0]=e>>>6&1;f=f+1|0;d=d+8|0;l=l-1|0;if(l)continue;break}e=J[g+4>>2]}h=e&7;j:{if(!h)break j;e=K[f|0];H[d|0]=e>>>7;if((h|0)==1)break j;H[d+1|0]=e>>>6&1;if((h|0)==2)break j;H[d+2|0]=e>>>5&1;if((h|0)==3)break j;H[d+3|0]=e>>>4&1;if((h|0)==4)break j;H[d+4|0]=e>>>3&1;if((h|0)==5)break j;H[d+5|0]=e>>>2&1;if((h|0)==6)break j;H[d+6|0]=e>>>1&1}b=J[i+8>>2]+b|0;c=J[g+8>>2]+c|0;k=k-1|0;if(k)continue;break}break g;case 1:case 4:case 5:f= +J[g+4>>2];I[i+16>>1]=256;d=J[g>>2];if(!d)break g;if(d&1){b=xc(b,c,f)+J[i+8>>2]|0;c=J[g+8>>2]+c|0;e=d-1|0}else e=d;if((d|0)==1)break g;while(1){b=xc(b,c,f);c=J[g+8>>2]+c|0;b=xc(b+J[i+8>>2]|0,c,f)+J[i+8>>2]|0;c=c+J[g+8>>2]|0;e=e-2|0;if(e)continue;break}break g;case 2:I[i+16>>1]=4;k=J[g>>2];if(!k)break g;while(1){f=J[g+4>>2];k:{if(f>>>0<4){e=c;d=b;break k}h=f>>>2|0;l=h;d=b;e=c;if(f&4){f=K[e|0];H[d+3|0]=f&3;H[d|0]=f>>>6;H[d+2|0]=f>>>2&3;H[d+1|0]=f>>>4&3;l=h-1|0;e=e+1|0;d=d+4|0}if((h|0)!=1)while(1){f= +K[e|0];H[d+3|0]=f&3;H[d|0]=f>>>6;H[d+2|0]=f>>>2&3;H[d+1|0]=f>>>4&3;f=K[e+1|0];H[d+7|0]=f&3;H[d+4|0]=f>>>6;H[d+6|0]=f>>>2&3;H[d+5|0]=f>>>4&3;d=d+8|0;e=e+2|0;l=l-2|0;if(l)continue;break}f=J[g+4>>2]}f=f&3;l:{if(!f)break l;e=K[e|0];H[d|0]=e>>>6;if((f|0)==1)break l;H[d+1|0]=e>>>4&3;if((f|0)==2)break l;H[d+2|0]=e>>>2&3}b=J[i+8>>2]+b|0;c=J[g+8>>2]+c|0;k=k-1|0;if(k)continue;break}break g;case 3:I[i+16>>1]=16;n=J[g>>2];if(!n)break g;while(1){f=J[g+4>>2];m:{if(f>>>0<2){e=c;d=b;break m}f=f>>>1|0;k=f-1|0;l=0; +d=b;e=c;j=f&3;if(j)while(1){h=K[e|0];H[d+1|0]=h&15;H[d|0]=h>>>4;f=f-1|0;d=d+2|0;e=e+1|0;l=l+1|0;if((j|0)!=(l|0))continue;break}if(k>>>0>=3)while(1){h=K[e|0];H[d+1|0]=h&15;H[d|0]=h>>>4;h=K[e+1|0];H[d+3|0]=h&15;H[d+2|0]=h>>>4;h=K[e+2|0];H[d+5|0]=h&15;H[d+4|0]=h>>>4;h=K[e+3|0];H[d+7|0]=h&15;H[d+6|0]=h>>>4;d=d+8|0;e=e+4|0;f=f-4|0;if(f)continue;break}f=J[g+4>>2]}if(f&1)H[d|0]=K[e|0]>>>4;b=J[i+8>>2]+b|0;c=J[g+8>>2]+c|0;n=n-1|0;if(n)continue;break}break g;case 6:break h;default:break g}I[i+16>>1]=256;j= +J[g>>2];if(!j)break g;l=J[g+4>>2];if(!l)break g;while(1){e=b;d=c;if(l){while(1){h=K[d+3|0];if(h){f=K[d+1|0];k=P(P(f,f),46871);f=K[d|0];k=k+P(P(f,f),4732)|0;f=K[d+2|0];f=h-((k+P(P(f,f),13933)>>>16>>>0)/(h>>>0)|0)|0}else f=0;H[e|0]=f;e=e+1|0;d=d+4|0;l=l-1|0;if(l)continue;break}k=J[i+8>>2];f=J[g+8>>2]}j=j-1|0;if(!j)break g;c=c+f|0;b=b+k|0;l=J[g+4>>2];continue}}d=J[m+12>>2]}fc=m+16|0;h=d;if(d){J7(o,i);break a}H[g+18|0]=K[i+18|0];J[g+8>>2]=J[i+8>>2];I[g+16>>1]=L[i+16>>1];CN(J[a+84>>2],J[i+12>>2]);a=J[J[a+ +84>>2]+156>>2];J[a+4>>2]=J[a+4>>2]|1}fc=i+48|0;return h|0}function lJ(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0;h=fc+-64|0;fc=h;a:{b:{f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;g=J[a+56>>2];g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break b;i=J[a+56>>2];i=kc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break b;l=J[a+56>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;k=J[a+56>>2];k=kc[J[J[k>> +2]+28>>2]](k)|0;if((k|0)==-1)break b;q=J[a+56>>2];q=kc[J[J[q>>2]+28>>2]](q)|0;if((q|0)==-1)break b;m=J[a+56>>2];m=kc[J[J[m>>2]+28>>2]](m)|0;if((m|0)==-1)break b;t=J[a+56>>2];t=kc[J[J[t>>2]+28>>2]](t)|0;if((t|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;s=J[a+56>>2];s=kc[J[J[s>>2]+28>>2]](s)|0;if((s|0)==-1)break b;n=J[a+56>>2];n=kc[J[J[n>>2]+28>>2]](n)|0;if((n|0)==-1)break b;o=J[a+56>>2];o=kc[J[J[o>>2]+28>>2]](o)|0;if((o|0)==-1)break b;u=J[a+56>>2];u=kc[J[J[u>>2]+28>>2]](u)|0;if((u|0)==-1)break b;J[a+68>> +2]=J[a+68>>2]+4;v=J[a+56>>2];v=kc[J[J[v>>2]+28>>2]](v)|0;if((v|0)==-1)break b;r=J[a+56>>2];y=kc[J[J[r>>2]+28>>2]](r)|0;if((y|0)==-1)break b;r=J[a+56>>2];w=kc[J[J[r>>2]+28>>2]](r)|0;if((w|0)==-1)break b;r=J[a+56>>2];j=kc[J[J[r>>2]+28>>2]](r)|0;if((j|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;r=J[a+56>>2];E=kc[J[J[r>>2]+28>>2]](r)|0;if((E|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;c:{g=l|(g<<16|f<<24|i<<8);f=J[a+24>>2];d:{if((g>>>0)/10>>>0>f>>>0)break d;t=t|(q<<16|k<<24|m<<8);i=J[a+28>>2];y=j|(y<<16|v<<24| +w<<8);r=u|(n<<16|s<<24|o<<8);if(i>>>0<(y>>>0)/10>>>0|f>>>0<(r>>>0)/10>>>0)break d;if(i>>>0>=(t>>>0)/10>>>0)break c}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,799169,0);J[a+72>>2]=1;break a}f=J[a+56>>2];n=kc[J[J[f>>2]+28>>2]](f)|0;if((n|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;if(!_t(a,h+60|0))break b;if(!_t(a,h+56|0))break b;if(!_t(a,h+12|0))break b;if(!_t(a,h+8|0))break b;if(!LB(a,h+52|0))break b;if(!LB(a,h+48|0))break b;e:{if(!(!g|!t))if(g>>>0<2147483647/(t>>>0)>>>0)break e;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,799965, +0);break a}f:{l=J[h+60>>2];g:{if(!l)break g;k=J[h+56>>2];if(!k)break g;if(l>>>0<2147483647/(k>>>0)>>>0)break f}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,800721,0);break a}if((e|0)!=1){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,801417,0);break a}h:{s=JB(a,J[d>>2]);if(s)if((kc[J[J[s>>2]+8>>2]](s)|0)==2)break h;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,801417,0);break a}f=-1;d=J[s+8>>2];if(d>>>0>=2){e=d-1|0;d=0;while(1){f=d;d=d+1|0;i=e>>>0>1;e=e>>>1|0;if(i)continue;break}}u=n>>>1&3;d=J[J[s+12>>2]>>2];o=J[d+12>>2];w=J[d+8>>2];F=n&1;if(!F){iJ(a, +u,0);Nn(J[a+76>>2])}e=vc(24);J[699344]=0;q=ha(3621,e|0,b|0,g|0,t|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){v=n>>>3&1;b=P(J[q+16>>2],J[q+12>>2]);d=J[q+20>>2];i:{if(n&128){Ac(d,255,b);break i}Ac(d,0,b)}i=0;j:{if(v){b=0;e=vc(24);J[699344]=0;i=ha(3621,e|0,0,l|0,k|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;Ac(J[i+20>>2],0,P(J[i+16>>2],J[i+12>>2]));j=k>>>0<=1?1:k;z=J[h+8>>2];d=J[h+52>>2];m=J[h+48>>2];A=J[h+12>>2];while(1){C=P(b,d);D=A+P(b,m)|0;e=0;while(1){x=D+P(d,e)|0;k:{l:{if((x+w|0)<256|(g|0)<= +x>>8)break l;x=z+(C-P(e,m)|0)|0;if((x+o|0)<256)break l;if((t|0)>x>>8)break k}x=(J[i+20>>2]+P(J[i+16>>2],b)|0)+(e>>3)|0;H[x|0]=K[x|0]|1<<((e^-1)&7)}e=e+1|0;if((l|0)!=(e|0))continue;break}b=b+1|0;if((j|0)!=(b|0))continue;break}}b=P(k,l);m=Ac(Gd(b,4),0,b<<2);J[h+32>>2]=u>>>0<2?3:2;J[h+36>>2]=-3;J[h+16>>2]=-1;J[h+20>>2]=-1;J[h+40>>2]=2;J[h+44>>2]=-2;J[h+24>>2]=-2;J[h+28>>2]=-2;if((f|0)>=0){z=k>>>0<=1?1:k;A=m+12|0;C=m+8|0;D=m+4|0;w=l&3;x=l-1>>>0<3;while(1){d=Zt(a,F,l,k,u,0,v,i,h+32|0,h+16|0,-1);g=0;o= +0;while(1){b=0;m:{if((o|0)<0){e=0;b=g;if(w)while(1){p=m+(b<<2)|0;j=J[p>>2];J[p>>2]=j&1|j<<1;b=b+1|0;e=e+1|0;if((w|0)!=(e|0))continue;break}g=g+l|0;if(x)break m;while(1){e=b<<2;p=e+m|0;j=J[p>>2];J[p>>2]=j&1|j<<1;p=e+D|0;j=J[p>>2];J[p>>2]=j&1|j<<1;p=e+C|0;j=J[p>>2];J[p>>2]=j&1|j<<1;j=e+A|0;e=J[j>>2];J[j>>2]=e&1|e<<1;b=b+4|0;if((g|0)!=(b|0))continue;break}break m}while(1){j=m+(g<<2)|0;p=0;n:{if(J[d+8>>2]<=(b|0))break n;p=0;if(J[d+12>>2]<=(o|0))break n;p=K[J[d+20>>2]+P(J[d+16>>2],o)+(b>>>3)|0]>>>((b^ +-1)&7)&1}e=J[j>>2];J[j>>2]=p^e&1|e<<1;g=g+1|0;b=b+1|0;if((l|0)!=(b|0))continue;break}}o=o+1|0;if((z|0)!=(o|0))continue;break}if(d)kc[J[J[d>>2]+4>>2]](d);b=f;f=b-1|0;if((b|0)>0)continue;break}}o=n>>>4&7;u=k>>>0<=1?1:k;b=0;k=J[h+52>>2];w=J[h+8>>2];n=J[h+48>>2];j=J[h+12>>2];o:{if(!v){f=0;while(1){d=b+l|0;g=w+P(f,k)|0;e=j+P(f,n)|0;while(1){yl(q,J[J[s+12>>2]+(J[m+(b<<2)>>2]<<2)>>2],e>>8,g>>8,o);g=g-n|0;e=e+k|0;b=b+1|0;if((d|0)!=(b|0))continue;break}b=d;f=f+1|0;if((u|0)!=(f|0))continue;break}break o}f= +0;while(1){e=w+P(f,k)|0;d=j+P(f,n)|0;g=0;while(1){v=0;if(!(J[i+8>>2]<=(g|0)|J[i+12>>2]<=(f|0)|(g|f)<0))v=K[J[i+20>>2]+P(J[i+16>>2],f)+(g>>>3)|0]>>>((g^-1)&7)&1;if(!v)yl(q,J[J[s+12>>2]+(J[m+(b<<2)>>2]<<2)>>2],d>>8,e>>8,o);b=b+1|0;e=e-n|0;d=d+k|0;g=g+1|0;if((l|0)!=(g|0))continue;break}f=f+1|0;if((u|0)!=(f|0))continue;break}}Mc(m);if(i)kc[J[J[i>>2]+4>>2]](i);if(c){b=E&7;p:{if(J[a+28>>2]!=-1)break p;c=t+y|0;if(c>>>0<=M[a+32>>2])break p;MB(J[a+40>>2],c,J[a+36>>2])}yl(J[a+40>>2],q,r,y,b);kc[J[J[q>>2]+4>> +2]](q);break a}sd(J[a+48>>2],q);break a}}a=Z()|0;uc(e);ba(a|0);B()}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783270,0)}fc=h- -64|0}function AN(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,w=0,x=0,y=0;l=fc-32|0;fc=l;r=J[a>>2];f=fc-48|0;fc=f;h=J[b+20>>2];a:{b:{if(h){g=85;if(kc[h|0](b,c,0,0)|0)break a;h=J[b+4>>2];break b}g=85;h=J[b+4>>2];if(h>>>0>>0)break a}J[b+8>>2]=c;J[f+44>>2]=0;if(c>>>0>=h>>>0)break a;i=J[b+20>>2];c:{if(i){h=kc[i|0](b,c,f+16|0,16)|0;break c}h=h-c|0; +h=h>>>0>=16?16:h;xc(f+16|0,J[b>>2]+c|0,h)}J[b+8>>2]=c+h;if(h>>>0<16)break a;h=H[f+16|0];if((h|0)<0){g=2;break a}i=H[f+20|0];if((i|0)<0){g=2;break a}j=H[f+24|0];if((j|0)<0){g=2;break a}k=H[f+28|0];if((k|0)<0){g=2;break a}h=K[f+19|0]|(K[f+17|0]<<16|(h&255)<<24|K[f+18|0]<<8);J[l+16>>2]=h;i=K[f+23|0]|(K[f+21|0]<<16|(i&255)<<24|K[f+22|0]<<8);if(!i){g=2;break a}m=K[f+31|0];k=m|(K[f+29|0]<<16|(k&255)<<24|K[f+30|0]<<8);j=K[f+27|0]|(K[f+25|0]<<16|(j&255)<<24|K[f+26|0]<<8);d:{if(h>>>0>>0){if((h|0)<=(i-j| +0))break d;g=2;break a}if((i|0)<=(h-k|0))break d;g=2;break a}if(h>>>0>(j^2147483647)>>>0){g=2;break a}if(i>>>0>(k^2147483647)>>>0){g=2;break a}if((h+j^2147483647)<(c|0)){g=2;break a}if((i+k^2147483647)<(c|0)){g=2;break a}h=c+h|0;n=h+j|0;j=J[b+4>>2];if(n>>>0>j>>>0){g=2;break a}c=c+i|0;if(j>>>0>>0){g=2;break a}J[l+16>>2]=h;h=J[b+20>>2];e:{if(h){if(kc[h|0](b,c,0,0)|0)break a;m=K[f+31|0];break e}if(c>>>0>M[b+4>>2])break a}J[b+8>>2]=c;H[f+15|0]=m+1;g=zg(b,f,16);if(g)break a;t=K[f|0];u=K[f+1|0];v= +K[f+2|0];w=K[f+3|0];x=K[f+4|0];y=K[f+5|0];p=K[f+6|0];q=K[f+7|0];o=K[f+8|0];n=K[f+9|0];g=K[f+10|0];h=K[f+11|0];i=K[f+12|0];k=K[f+13|0];j=K[f+15|0];m=K[f+14|0];if(!(!(t|(u|(v|(w|(x|(y|(p|(q|(o|(n|(g|(h|(i|(k|(j|m)))))))))))))))|K[f+31|0]==(j|0)&K[f+30|0]==(m|0)&K[f+29|0]==(k|0)&K[f+28|0]==(i|0)&K[f+27|0]==(h|0)&K[f+26|0]==(g|0)&(n|0)==K[f+25|0]&(o|0)==K[f+24|0]&(q|0)==K[f+23|0]&(p|0)==K[f+22|0]&(y|0)==K[f+21|0]&(x|0)==K[f+20|0]&(w|0)==K[f+19|0]&(v|0)==K[f+18|0]&(u|0)==K[f+17|0]&(t|0)==K[f+16|0])){g= +2;break a}g=J[b+8>>2]+8|0;i=J[b+20>>2];f:{g:{if(i){h=85;if(!(kc[i|0](b,g,0,0)|0))break g;break f}h=85;if(g>>>0>M[b+4>>2])break f}J[b+8>>2]=g;h=0}J[f+44>>2]=h;h=ee(b,f+44|0);g=J[f+44>>2];if(g)break a;g=2;h=h<<16>>16;if((h|0)<0)break a;c=c+h|0;h=J[b+20>>2];h:{if(h){g=85;if(!(kc[h|0](b,c,0,0)|0))break h;break a}g=85;if(c>>>0>M[b+4>>2])break a}J[b+8>>2]=c;J[l+20>>2]=c;g=0}fc=f+48|0;c=g;i:{if(c)break i;c=1;j:{k:{l:{m:{g=J[l+20>>2];h=J[l+16>>2];if(!T7(a,b,g,h,1347375956,1,l+12|0,l+8|0)){o=J[l+12>>2];n:{o:{if(d+ +1>>>0>1)break o;c=10;p=J[l+8>>2];if((p|0)<=0)break o;q=J[a>>2];f=0;while(1){d=J[o+(f<<2)>>2];g=J[b+20>>2];p:{if(g){if(kc[g|0](b,d,0,0)|0)break n;j=J[b+4>>2];break p}j=J[b+4>>2];if(j>>>0>>0)break n}J[b+8>>2]=d;if(d+3>>>0>=j>>>0)break n;q:{r:{h=J[b+20>>2];s:{if(h){g=l+28|0;if((kc[h|0](b,d,g,4)|0)!=4)break n;d=J[b+8>>2];break s}g=J[b>>2];if(!g)break r;g=d+g|0}g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);J[b+8>>2]=d+4;d=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(d>>>0<=16777215)break q;c=9;break l}J[b+ +8>>2]=d+4;d=0}g=s+6|0;if(g>>>0>(d^16777215)>>>0){c=9;break l}s=d+g|0;f=f+1|0;if((p|0)!=(f|0))continue;break}n=s+2|0;if(n>>>0<6)break o;c=6;if((n|0)<=0)break l;d=kc[J[q+4>>2]](q,n)|0;if(!d){c=64;break l}c=0;k=Ac(d,0,n);H[k+2|0]=0;H[k+3|0]=0;H[k+4|0]=0;H[k+5|0]=0;H[k|0]=128;H[k+1|0]=1;t:{if((p|0)<=0){d=6;m=2;break t}m=2;d=6;h=1;j=0;while(1){g=J[o+(j<<2)>>2];f=J[b+20>>2];u:{if(f){if(!(kc[f|0](b,g,0,0)|0))break u;break m}if(g>>>0>M[b+4>>2])break m}J[b+8>>2]=g;J[l+24>>2]=0;f=l+24|0;g=Rf(b,f);if(J[l+24>> +2]|(g|0)<0)break m;f=ee(b,f);if(J[l+24>>2])break m;J[l+24>>2]=10;if(f>>>0>=256){i=g-2|0;g=g>>>0>=i>>>0?i:0;i=f>>>8|0;v:{if((i|0)==(h|0)){f=d;c=c+g|0;break v}f=m+3|0;if(f>>>0>n>>>0)break m;h=k+m|0;H[h|0]=c;H[h+2|0]=c>>>16;H[h+1|0]=c>>>8;H[f+k|0]=c>>>24;if((i|0)==5)break t;f=d+6|0;if(n>>>0>>0)break m;h=d+k|0;H[h|0]=128;m=d+2|0;c=k+m|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[h+1|0]=i;h=i;c=g}if(f>>>0>s>>>0)break m;d=f+g|0;if(s>>>0>>0)break m;g=zg(b,f+k|0,g);J[l+24>>2]=g;if(g)break m}j=j+1| +0;if((p|0)!=(j|0))continue;break}}g=d+2|0;if(g>>>0>n>>>0)break m;b=d+k|0;H[b|0]=128;H[b+1|0]=3;d=m+3|0;if(d>>>0>n>>>0)break m;b=k+m|0;H[b|0]=c;H[b+2|0]=c>>>16;H[b+1|0]=c>>>8;H[d+k|0]=c>>>24;c=oN(a,k,g,0,241768,e)}if(o)break l;break k}c=85;break l}c=T7(a,b,g,h,1936092788,0,l+12|0,l+8|0);if(c)break i;f=J[l+12>>2];j=J[l+8>>2];c=(d|0)%(j|0)|0;i=c>>31^c;w:{if((i|0)<(j|0)){g=J[a>>2];h=J[f+(i<<2)>>2];d=J[b+20>>2];x:{if(d){c=85;if(!(kc[d|0](b,h,0,0)|0))break x;break w}c=85;if(h>>>0>M[b+4>>2])break w}J[b+ +8>>2]=h;J[l+28>>2]=0;d=Rf(b,l+28|0);c=J[l+28>>2];if(c)break w;c=1;if((d|0)<=0)break w;c=9;if(d>>>0>16777215)break w;if(!b8(a,b,i,e)){c=0;break w}h=h+4|0;i=J[b+20>>2];y:{if(i){c=85;if(!(kc[i|0](b,h,0,0)|0))break y;break w}c=85;if(h>>>0>M[b+4>>2])break w}J[b+8>>2]=h;c=kc[J[g+4>>2]](g,d)|0;if(!c){c=64;break w}h=b;b=Ac(c,0,d);c=zg(h,b,d);if(c){kc[J[g+8>>2]](g,b);break w}if(d>>>0>=5)c=(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))==1330926671?241962:240791;else c=240791;c=oN(a,b,d,0,c,e);break w}c=1; +if(!f)break i}kc[J[r+8>>2]](r,f);if(c)break i;break j}kc[J[q+8>>2]](q,k);c=1;if(!o)break k}kc[J[r+8>>2]](r,o)}if(c)break i;j=1}J[J[e>>2]>>2]=j;c=0}fc=l+32|0;return c}function OS(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,B=0;j=fc-80|0;fc=j;J[j+76>>2]=b;y=e-192|0;z=d-384|0;B=j+55|0;s=j+56|0;a:{b:{c:{d:while(1){h=0;e:while(1){k=b;if((q^2147483647)<(h|0))break c;q=h+q|0;f:{g:{h:{h=b;i=K[h|0];if(i)while(1){i:{b=i&255;j:{if(!b){b=h;break j}if((b| +0)!=37)break i;i=h;while(1){if(K[i+1|0]!=37){b=i;break j}h=h+1|0;m=K[i+2|0];b=i+2|0;i=b;if((m|0)==37)continue;break}}h=h-k|0;A=q^2147483647;if((h|0)>(A|0))break c;if(a)pi(a,k,h);if(h)continue e;J[j+76>>2]=b;h=b+1|0;p=-1;i=H[b+1|0]-48|0;if(!(K[b+2|0]!=36|i>>>0>=10)){p=i;t=1;h=b+3|0}J[j+76>>2]=h;n=0;i=H[h|0];b=i-32|0;k:{if(b>>>0>31){m=h;break k}m=h;b=1<>2]=m;n=b|n;i=H[h+1|0];b=i-32|0;if(b>>>0>=32)break k;h=m;b=1<>>0>=10)){b=H[i|0];i=m+3|0;t=1;n:{if(!a){J[(b<<2)+y>>2]=10;b=0;break n}b=J[(b<<3)+z>>2]}break m}if(t)break h;if(!a){J[j+76>>2]=i;t=0;r=0;break l}b=J[c>>2];J[c>>2]=b+4;t=0;b=J[b>>2]}J[j+76>>2]=i;r=b;if((b|0)>=0)break l;r=0-b|0;n=n|8192;break l}r=NS(j+76|0);if((r|0)<0)break c;i=J[j+76>>2]}h=0;l=-1;o:{if(K[i|0]!=46){b=i;v=0;break o}if(K[i+1|0]==42){b=i+2|0;p:{if(!(K[i+3|0]!=36|H[i+2|0]-48>>>0>=10)){b=H[b|0];q:{if(!a){J[(b<<2)+y>>2]=10;l=0;break q}l=J[(b<< +3)+z>>2]}b=i+4|0;break p}if(t)break h;if(!a){l=0;break p}i=J[c>>2];J[c>>2]=i+4;l=J[i>>2]}J[j+76>>2]=b;v=(l|0)>=0;break o}J[j+76>>2]=i+1;l=NS(j+76|0);b=J[j+76>>2];v=1}while(1){x=h;o=28;w=b;i=H[b|0];if(i-123>>>0<4294967238)break b;b=b+1|0;h=K[(i+P(h,58)|0)+2627135|0];if(h-1>>>0<8)continue;break}J[j+76>>2]=b;r:{if((h|0)!=27){if(!h)break b;if((p|0)>=0){if(!a){J[(p<<2)+e>>2]=h;continue d}i=(p<<3)+d|0;h=J[i+4>>2];J[j+64>>2]=J[i>>2];J[j+68>>2]=h;break r}if(!a)break f;MS(j- -64|0,h,c,g);break r}if((p|0)>= +0)break b;h=0;if(!a)continue e}o=-1;if(K[a|0]&32)break a;i=n&-65537;n=n&8192?i:n;p=0;u=1629;m=s;s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{h=H[w|0];h=x?(h&15)==3?h&-33:h:h;switch(h-88|0){case 11:break s;case 9:case 13:case 14:case 15:break t;case 27:break y;case 12:case 17:break B;case 23:break C;case 0:case 32:break D;case 24:break E;case 22:break F;case 29: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 g; default:break H}}I:switch(h-65|0){case 0:case 4:case 5:case 6:break t;case 2:break w;case 1:case 3:break g;default:break I}if((h|0)==83)break x;break g}k=J[j+64>>2];i=J[j+68>>2];u=1629;break A}h=0;J:switch(x&255){case 0:J[J[j+64>>2]>>2]=q;continue e;case 1:J[J[j+64>>2]>>2]=q;continue e;case 2:k=J[j+64>>2];J[k>>2]=q;J[k+4>>2]=q>>31;continue e;case 3:I[J[j+64>>2]>>1]=q;continue e;case 4:H[J[j+64>>2]]=q;continue e;case 6:J[J[j+64>>2]>>2]=q;continue e;case 7:break J;default:continue e}k=J[j+64>>2];J[k>> -2]=q;J[k+4>>2]=q>>31;continue e}l=l>>>0<=8?8:l;n=n|8;h=120}b=s;o=h&32;k=J[j+64>>2];i=J[j+68>>2];if(k|i)while(1){b=b-1|0;H[b|0]=o|K[(k&15)+2612848|0];x=!i&k>>>0>15|(i|0)!=0;w=i;i=i>>>4|0;k=(w&15)<<28|k>>>4;if(x)continue;break}k=b;if(!(J[j+64>>2]|J[j+68>>2])|!(n&8))break z;u=(h>>>4|0)+1629|0;p=2;break z}b=s;h=J[j+68>>2];i=h;k=J[j+64>>2];if(h|k)while(1){b=b-1|0;H[b|0]=k&7|48;w=!i&k>>>0>7|(i|0)!=0;h=i;i=h>>>3|0;k=(h&7)<<29|k>>>3;if(w)continue;break}k=b;if(!(n&8))break z;b=s-b|0;l=(b|0)<(l|0)?l:b+1|0; -break z}k=J[j+64>>2];b=J[j+68>>2];i=b;if((b|0)<0){h=0-(b+((k|0)!=0)|0)|0;i=h;k=0-k|0;J[j+64>>2]=k;J[j+68>>2]=h;p=1;u=1629;break A}if(n&2048){p=1;u=1630;break A}p=n&1;u=p?1631:1629}k=js(k,i,s)}if((l|0)<0&v)break c;n=v?n&-65537:n;b=J[j+64>>2];h=J[j+68>>2];if(!(l|(b|h)!=0)){k=s;l=0;break g}b=!(b|h)+(s-k|0)|0;l=(b|0)<(l|0)?l:b;break g}b=J[j+64>>2];k=b?b:28928;h=l>>>0>=2147483647?2147483647:l;b=pg(k,0,h);b=b?b-k|0:h;m=b+k|0;if((l|0)>=0){n=i;l=b;break g}n=i;l=b;if(K[m|0])break c;break g}if(l){i=J[j+64>> -2];break v}h=0;ri(a,32,r,0,n);break u}J[j+12>>2]=0;J[j+8>>2]=J[j+64>>2];i=j+8|0;J[j+64>>2]=i;l=-1}h=0;K:{while(1){k=J[i>>2];if(!k)break K;m=Im(j+4|0,k);k=(m|0)<0;if(!(k|m>>>0>l-h>>>0)){i=i+4|0;h=h+m|0;if(l>>>0>h>>>0)continue;break K}break}if(k)break a}o=61;if((h|0)<0)break b;ri(a,32,r,h,n);if(!h){h=0;break u}m=0;i=J[j+64>>2];while(1){k=J[i>>2];if(!k)break u;l=j+4|0;k=Im(l,k);m=k+m|0;if(m>>>0>h>>>0)break u;bi(a,l,k);i=i+4|0;if(h>>>0>m>>>0)continue;break}}ri(a,32,r,h,n^8192);h=(h|0)<(r|0)?r:h;continue e}if((l| -0)<0&v)break c;o=61;h=gc[f|0](a,O[j+64>>3],r,l,n,h)|0;if((h|0)>=0)continue e;break b}H[j+55|0]=J[j+64>>2];l=1;k=B;n=i;break g}i=K[h+1|0];h=h+1|0;continue}o=q;if(a)break a;if(!t)break f;h=1;while(1){a=J[(h<<2)+e>>2];if(a){hR((h<<3)+d|0,a,c,g);o=1;h=h+1|0;if((h|0)!=10)continue;break a}break}o=1;if(h>>>0>=10)break a;while(1){if(J[(h<<2)+e>>2])break h;h=h+1|0;if((h|0)!=10)continue;break}break a}o=28;break b}i=m-k|0;b=(i|0)<(l|0)?l:i;if((b|0)>(p^2147483647))break c;o=61;m=b+p|0;h=(m|0)<(r|0)?r:m;if((A| -0)<(h|0))break b;ri(a,32,h,m,n);bi(a,u,p);ri(a,48,h,m,n^65536);ri(a,48,b,i,0);bi(a,k,i);ri(a,32,h,m,n^8192);b=J[j+76>>2];continue}break}break}o=0;break a}o=61}J[694731]=o;o=-1}bc=j+80|0;return o}function Cza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-80|0;bc=d;a:{b:{c:{d:{e:{if(!K[b+89|0]){a=Kc(d+44|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;b=Z()|0;Fc(a);ba(b|0);B()}f=Ql(a);J[695492]=0;a=b+92|0;e=J[a>>2];g=J[695492];J[695492]=0; -if((g|0)==1)break c;if(!(e&1))break d;f:{g:{h:{i:{j:{k:{l:{m:{n:switch(J[b+56>>2]-1|0){case 4:if((c|0)<=0)break m;J[695492]=0;b=ja(5018,d+44|0,2390359,2373496,720,2401658,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;a=Z()|0;Fc(b);break b;case 3:break i;case 2:break j;case 0:break k;case 1:break n;default:break h}if((c|0)>=0)break l}J[695492]=0;aa(5083,f|0,b+8|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break d;break c}J[695492]= -0;a=J[a>>2];e=J[695492];J[695492]=0;if((e|0)==1)break c;if(!(a&4))break d;a=J[b+112>>2];J[695492]=0;b=d+44|0;ca(5248,b|0,a|0,c|0);a=J[695492];J[695492]=0;o:{if((a|0)!=1){J[695492]=0;aa(5083,f|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break o;J[d+68>>2]=2381060;J[d+44>>2]=2381028;a=J[d+72>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+72>>2]=0}J[d+60>>2]=2381060;a=J[d- -64>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+64>>2]=0}sc(d+52|0);break d}a= -Z()|0;break b}a=Z()|0;ud(d+44|0);break b}p:{e=(c|0)>0;if(e)break p;J[695492]=0;g=J[a>>2];h=J[695492];J[695492]=0;if((h|0)==1)break c;if(!(g&2))break p;J[695492]=0;b=ga(5173,d+44|0,b+116|0,b+8|0)|0;a=J[695492];J[695492]=0;q:{if((a|0)!=1){J[695492]=0;aa(5083,f|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break q;ud(b);break d}a=Z()|0;break b}a=Z()|0;ud(b);break b}J[695492]=0;a=J[a>>2];g=J[695492];J[695492]=0;if((g|0)==1)break c;if(!(a&4))break d;a=J[b+112>>2];J[695492]=0;b=d+44|0;ca(5248,b|0,a|0,(e? -c:0)|0);a=J[695492];J[695492]=0;r:{if((a|0)!=1){J[695492]=0;aa(5083,f|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break r;J[d+68>>2]=2381060;J[d+44>>2]=2381028;a=J[d+72>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+72>>2]=0}J[d+60>>2]=2381060;a=J[d- -64>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+64>>2]=0}sc(d+52|0);break d}a=Z()|0;break b}a=Z()|0;ud(d+44|0);break b}J[695492]=0;a=J[a>>2];e=J[695492];J[695492]=0;if((e|0)==1)break c;if(!(a&2))break d; -a=J[b+48>>2];J[695492]=0;ca(5249,d+4|0,a|0,((c|0)>0?c:0)|0);a=J[695492];J[695492]=0;s:{t:{u:{if((a|0)!=1){a=J[d+4>>2];if(a)break t;J[695492]=0;b=ja(5018,d+44|0,2390359,2373496,749,2401658,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break u;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;a=Z()|0;Fc(b);break s}a=Z()|0;break b}a=Z()|0;break s}J[695492]=0;b=ga(5173,d+44|0,a+36|0,b+8|0)|0;a=J[695492];J[695492]=0;v:{if((a|0)!=1){J[695492]=0;aa(5083,f|0,b|0)|0;a=J[695492];J[695492]=0;if((a| -0)==1)break v;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);a=J[d+4>>2];J[d+4>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}a=Z()|0;break s}a=Z()|0;ud(b)}vc(d+4|0);break b}J[695492]= -0;a=J[a>>2];e=J[695492];J[695492]=0;if((e|0)==1)break c;if(!(a&2))break d;a=J[b+48>>2];J[695492]=0;ca(5249,d+40|0,a|0,((c|0)>0?c:0)|0);a=J[695492];J[695492]=0;w:{x:{y:{if((a|0)!=1){a=J[d+40>>2];if(a)break x;J[695492]=0;b=ja(5018,d+44|0,2390359,2373496,761,2401658,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break y;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;a=Z()|0;Fc(b);break w}a=Z()|0;break b}a=Z()|0;break w}J[695492]=0;c=d+4|0;da(5226,c|0,b+8|0);b=J[695492];J[695492]=0;z:{A:{B:{if((b| -0)!=1){J[695492]=0;b=ga(5173,d+44|0,a+36|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break B;J[695492]=0;aa(5083,f|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break A;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);J[d+28>>2]=2381060;J[d+4>>2]=2381028;a=J[d+32>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>> -2]+4>>2]](a);J[d+32>>2]=0}J[d+20>>2]=2381060;a=J[d+24>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+24>>2]=0}sc(d+12|0);a=J[d+40>>2];J[d+40>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}a=Z()|0;break w}a=Z()|0;break z}a=Z()|0;ud(b)}ud(d+4|0)}vc(d+40|0);break b}J[695492]=0;b=ja(5018,d+44|0,2390648,2373496,767,2401658,0)|0;a=J[695492];J[695492]= -0;if((a|0)==1)break f;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;a=Z()|0;Fc(b);break b}a=Z()|0;break b}a=Z()|0;break b}B()}bc=d+80|0;return}a=Z()|0}ud(f);ba(a|0);B()}ea(0)|0;yc();B()}function R8(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;i=gc[J[J[b>>2]+36>>2]](b)|0;e=gc[J[J[b>>2]+20>>2]](b,4)|0;c=gc[J[J[b>>2]+20>>2]](b,4)|0;a:{b:switch(e|0){case 1:e=1;if(gc[J[J[b>>2]+20>>2]](b,4)|0)break a;e=gc[J[J[b>>2]+20>>2]](b,4)|0;if(e)break a;e=(gc[J[J[b>>2]+40>>2]](b)| -0)+12|0;break a;case 0:break b;default:break a}d=gc[J[J[b>>2]+40>>2]](b)|0;e=(d|0)>0?d+8|0:0}c:{while(1){d:{d=0;e:switch(c-1785737827|0){case 0:break c;case 5:break d;default:break e}gc[J[J[b>>2]+24>>2]](b,e-8|0);i=gc[J[J[b>>2]+36>>2]](b)|0;e=gc[J[J[b>>2]+20>>2]](b,4)|0;c=gc[J[J[b>>2]+20>>2]](b,4)|0;f:{g:switch(e|0){case 1:if(gc[J[J[b>>2]+20>>2]](b,4)|0)break c;e=gc[J[J[b>>2]+20>>2]](b,4)|0;if(e)break f;e=(gc[J[J[b>>2]+40>>2]](b)|0)+12|0;break f;case 0:break g;default:break f}e=gc[J[J[b>>2]+40>>2]](b)| -0;if((e|0)<=0)break c;e=e+8|0}if((c|0)!=1785737832)continue}break}g=gc[J[J[b>>2]+36>>2]](b)|0;c=gc[J[J[b>>2]+20>>2]](b,4)|0;f=gc[J[J[b>>2]+20>>2]](b,4)|0;h:{i:switch(c|0){case 1:c=1;if(gc[J[J[b>>2]+20>>2]](b,4)|0)break h;c=gc[J[J[b>>2]+20>>2]](b,4)|0;if(c)break h;c=(gc[J[J[b>>2]+40>>2]](b)|0)+12|0;break h;case 0:break i;default:break h}c=gc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}if((f|0)!=1768449138)break c;m=a,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+12>>2]=n;m=a,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+8>> -2]=n;f=gc[J[J[b>>2]+20>>2]](b,2)|0;J[a+16>>2]=f;f=bd(1,P(f,12));J[a+68>>2]=f;if(!f){J[J[a>>2]+20>>2]=1;return 0}m=a,n=gc[J[J[b>>2]+20>>2]](b,1)|0,J[m+20>>2]=n;m=a,n=gc[J[J[b>>2]+20>>2]](b,1)|0,J[m+24>>2]=n;m=a,n=gc[J[J[b>>2]+20>>2]](b,1)|0,J[m+28>>2]=n;m=a,n=gc[J[J[b>>2]+20>>2]](b,1)|0,J[m+32>>2]=n;if(((gc[J[J[b>>2]+36>>2]](b)|0)-g|0)!=(c|0))break c;g=gc[J[J[b>>2]+36>>2]](b)|0;gc[J[J[b>>2]+36>>2]](b)|0;c=gc[J[J[b>>2]+20>>2]](b,4)|0;d=gc[J[J[b>>2]+20>>2]](b,4)|0;j:{k:switch(c|0){case 1:c=1;if(gc[J[J[b>> -2]+20>>2]](b,4)|0)break j;c=gc[J[J[b>>2]+20>>2]](b,4)|0;if(c)break j;c=(gc[J[J[b>>2]+40>>2]](b)|0)+12|0;break j;case 0:break k;default:break j}c=gc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}l:{while(1){if(!d)break l;if((d|0)!=1667523942){gc[J[J[b>>2]+24>>2]](b,c-8|0);gc[J[J[b>>2]+36>>2]](b)|0;c=gc[J[J[b>>2]+20>>2]](b,4)|0;d=gc[J[J[b>>2]+20>>2]](b,4)|0;m:{n:switch(c|0){case 1:c=1;if(gc[J[J[b>>2]+20>>2]](b,4)|0)break m;c=gc[J[J[b>>2]+20>>2]](b,4)|0;if(c)break m;c=(gc[J[J[b>>2]+40>>2]](b)|0)+12|0;break m; -case 0:break n;default:break m}c=gc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}if((d|0)!=1667523942)continue}break}d=gc[J[J[b>>2]+20>>2]](b,2)|0;if((d|0)<=0)break l;c=0;while(1){gc[J[J[b>>2]+20>>2]](b,2)|0;gc[J[J[b>>2]+20>>2]](b,2)|0;gc[J[J[b>>2]+20>>2]](b,2)|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}gc[J[J[b>>2]+28>>2]](b,g);if(J[a+20>>2]==255){f=gc[J[J[b>>2]+36>>2]](b)|0;g=gc[J[J[b>>2]+20>>2]](b,4)|0;c=gc[J[J[b>>2]+20>>2]](b,4)|0;o:{p:switch(g|0){case 1:g=1;if(gc[J[J[b>>2]+20>>2]](b,4)|0)break o; -g=gc[J[J[b>>2]+20>>2]](b,4)|0;if(g)break o;g=(gc[J[J[b>>2]+40>>2]](b)|0)+12|0;break o;case 0:break p;default:break o}d=gc[J[J[b>>2]+40>>2]](b)|0;g=(d|0)>0?d+8|0:0}d=0;if((c|0)!=1651532643)break c;if(J[a+16>>2]){c=0;while(1){d=gc[J[J[b>>2]+20>>2]](b,1)|0;J[(J[a+68>>2]+P(c,12)|0)+8>>2]=d;c=c+1|0;if(c>>>0>2])continue;break}}d=0;if(((gc[J[J[b>>2]+36>>2]](b)|0)-f|0)!=(g|0))break c}k=gc[J[J[b>>2]+36>>2]](b)|0;q:{if(K[a+88|0])break q;g=gc[J[J[b>>2]+36>>2]](b)|0;c=gc[J[J[b>>2]+20>>2]](b,4)|0;d=gc[J[J[b>> -2]+20>>2]](b,4)|0;r:{s:switch(c|0){case 1:c=1;if(gc[J[J[b>>2]+20>>2]](b,4)|0)break r;c=gc[J[J[b>>2]+20>>2]](b,4)|0;if(c)break r;c=(gc[J[J[b>>2]+40>>2]](b)|0)+12|0;break r;case 0:break s;default:break r}c=gc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}t:{while(1){if((d|0)!=1668246642){if((d|0)==1785737827)break t;gc[J[J[b>>2]+24>>2]](b,c-8|0);g=gc[J[J[b>>2]+36>>2]](b)|0;c=gc[J[J[b>>2]+20>>2]](b,4)|0;d=gc[J[J[b>>2]+20>>2]](b,4)|0;u:{v:switch(c|0){case 1:c=1;if(gc[J[J[b>>2]+20>>2]](b,4)|0)break u;c=gc[J[J[b>> -2]+20>>2]](b,4)|0;if(c)break u;c=(gc[J[J[b>>2]+40>>2]](b)|0)+12|0;break u;case 0:break v;default:break u}c=gc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}if((d|0)!=1668246642)continue}break}m=a,n=gc[J[J[b>>2]+20>>2]](b,1)|0,J[m+36>>2]=n;m=a,n=gc[J[J[b>>2]+20>>2]](b,1)|0,J[m+40>>2]=n;m=a,n=gc[J[J[b>>2]+20>>2]](b,1)|0,J[m+44>>2]=n;w:{x:{y:switch(J[a+36>>2]-1|0){case 0:d=gc[J[J[b>>2]+20>>2]](b,4)|0;H[a+88|0]=1;J[a+48>>2]=d;break x;case 1:f=c-3|0;J[a+84>>2]=f;d=bd(1,f);J[a+80>>2]=d;if(!d)break w;z:{if((c| -0)<4)break z;d=0;if((c|0)!=4){l=f&-2;while(1){h=gc[J[J[b>>2]+20>>2]](b,1)|0;H[J[a+80>>2]+d|0]=h;h=gc[J[J[b>>2]+20>>2]](b,1)|0;H[J[a+80>>2]+(d|1)|0]=h;d=d+2|0;j=j+2|0;if((l|0)!=(j|0))continue;break}}if(!(f&1))break z;f=gc[J[J[b>>2]+20>>2]](b,1)|0;H[J[a+80>>2]+d|0]=f}H[a+88|0]=1;break x;default:break y}d=c+g|0;if((gc[J[J[b>>2]+36>>2]](b)|0)>(d|0))break t;n=b,o=d-(gc[J[J[b>>2]+36>>2]](b)|0)|0,m=J[J[b>>2]+24>>2],gc[m](n|0,o|0)}if(((gc[J[J[b>>2]+36>>2]](b)|0)-g|0)==(c|0))break q;break t}J[a+84>>2]=0}gc[J[J[b>> -2]+28>>2]](b,k);J[a+44>>2]=0;J[a+48>>2]=16;J[a+36>>2]=1;J[a+40>>2]=0}d=0;a=e+i|0;if((gc[J[J[b>>2]+36>>2]](b)|0)>(a|0))break c;o=b,n=a-(gc[J[J[b>>2]+36>>2]](b)|0)|0,m=J[J[b>>2]+24>>2],gc[m](o|0,n|0);d=1}return d}function $F(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;o=bc-16|0;bc=o;if(K[a+128|0]){i=J[a+188>>2];b=o;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;mo(i,a+136|0,a+160|0,a+152|0,a+144|0,b+8|0,b)}b=0;a:{if(!(R(O[a+96>>3]+-1)<.001))break a;b=0;if(!(R(O[a+104>> +2]=q;J[k+4>>2]=q>>31;continue e}l=l>>>0<=8?8:l;n=n|8;h=120}b=s;o=h&32;k=J[j+64>>2];i=J[j+68>>2];if(k|i)while(1){b=b-1|0;H[b|0]=o|K[(k&15)+2627664|0];x=!i&k>>>0>15|(i|0)!=0;w=i;i=i>>>4|0;k=(w&15)<<28|k>>>4;if(x)continue;break}k=b;if(!(J[j+64>>2]|J[j+68>>2])|!(n&8))break z;u=(h>>>4|0)+1629|0;p=2;break z}b=s;h=J[j+68>>2];i=h;k=J[j+64>>2];if(h|k)while(1){b=b-1|0;H[b|0]=k&7|48;w=!i&k>>>0>7|(i|0)!=0;h=i;i=h>>>3|0;k=(h&7)<<29|k>>>3;if(w)continue;break}k=b;if(!(n&8))break z;b=s-b|0;l=(b|0)<(l|0)?l:b+1|0; +break z}k=J[j+64>>2];b=J[j+68>>2];i=b;if((b|0)<0){h=0-(b+((k|0)!=0)|0)|0;i=h;k=0-k|0;J[j+64>>2]=k;J[j+68>>2]=h;p=1;u=1629;break A}if(n&2048){p=1;u=1630;break A}p=n&1;u=p?1631:1629}k=_s(k,i,s)}if((l|0)<0&v)break c;n=v?n&-65537:n;b=J[j+64>>2];h=J[j+68>>2];if(!(l|(b|h)!=0)){k=s;l=0;break g}b=!(b|h)+(s-k|0)|0;l=(b|0)<(l|0)?l:b;break g}b=J[j+64>>2];k=b?b:28944;h=l>>>0>=2147483647?2147483647:l;b=Cg(k,0,h);b=b?b-k|0:h;m=b+k|0;if((l|0)>=0){n=i;l=b;break g}n=i;l=b;if(K[m|0])break c;break g}if(l){i=J[j+64>> +2];break v}h=0;Hi(a,32,r,0,n);break u}J[j+12>>2]=0;J[j+8>>2]=J[j+64>>2];i=j+8|0;J[j+64>>2]=i;l=-1}h=0;K:{while(1){k=J[i>>2];if(!k)break K;m=zn(j+4|0,k);k=(m|0)<0;if(!(k|m>>>0>l-h>>>0)){i=i+4|0;h=h+m|0;if(l>>>0>h>>>0)continue;break K}break}if(k)break a}o=61;if((h|0)<0)break b;Hi(a,32,r,h,n);if(!h){h=0;break u}m=0;i=J[j+64>>2];while(1){k=J[i>>2];if(!k)break u;l=j+4|0;k=zn(l,k);m=k+m|0;if(m>>>0>h>>>0)break u;pi(a,l,k);i=i+4|0;if(h>>>0>m>>>0)continue;break}}Hi(a,32,r,h,n^8192);h=(h|0)<(r|0)?r:h;continue e}if((l| +0)<0&v)break c;o=61;h=kc[f|0](a,O[j+64>>3],r,l,n,h)|0;if((h|0)>=0)continue e;break b}H[j+55|0]=J[j+64>>2];l=1;k=B;n=i;break g}i=K[h+1|0];h=h+1|0;continue}o=q;if(a)break a;if(!t)break f;h=1;while(1){a=J[(h<<2)+e>>2];if(a){MS((h<<3)+d|0,a,c,g);o=1;h=h+1|0;if((h|0)!=10)continue;break a}break}o=1;if(h>>>0>=10)break a;while(1){if(J[(h<<2)+e>>2])break h;h=h+1|0;if((h|0)!=10)continue;break}break a}o=28;break b}i=m-k|0;b=(i|0)<(l|0)?l:i;if((b|0)>(p^2147483647))break c;o=61;m=b+p|0;h=(m|0)<(r|0)?r:m;if((A| +0)<(h|0))break b;Hi(a,32,h,m,n);pi(a,u,p);Hi(a,48,h,m,n^65536);Hi(a,48,b,i,0);pi(a,k,i);Hi(a,32,h,m,n^8192);b=J[j+76>>2];continue}break}break}o=0;break a}o=61}J[698583]=o;o=-1}fc=j+80|0;return o}function SBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-80|0;fc=d;a:{b:{c:{d:{e:{if(!K[b+89|0]){a=Qc(d+44|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;b=Z()|0;Kc(a);ba(b|0);B()}f=Cm(a);J[699344]=0;a=b+92|0;e=J[a>>2];g=J[699344];J[699344]=0; +if((g|0)==1)break c;if(!(e&1))break d;f:{g:{h:{i:{j:{k:{l:{m:{n:switch(J[b+56>>2]-1|0){case 4:if((c|0)<=0)break m;J[699344]=0;b=ja(5178,d+44|0,2402263,2385400,720,2413562,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;a=Z()|0;Kc(b);break b;case 3:break i;case 2:break j;case 0:break k;case 1:break n;default:break h}if((c|0)>=0)break l}J[699344]=0;aa(5253,f|0,b+8|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break d;break c}J[699344]= +0;a=J[a>>2];e=J[699344];J[699344]=0;if((e|0)==1)break c;if(!(a&4))break d;a=J[b+112>>2];J[699344]=0;b=d+44|0;ca(5418,b|0,a|0,c|0);a=J[699344];J[699344]=0;o:{if((a|0)!=1){J[699344]=0;aa(5253,f|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break o;J[d+68>>2]=2392964;J[d+44>>2]=2392932;a=J[d+72>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+72>>2]=0}J[d+60>>2]=2392964;a=J[d- -64>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+64>>2]=0}wc(d+52|0);break d}a= +Z()|0;break b}a=Z()|0;Ed(d+44|0);break b}p:{e=(c|0)>0;if(e)break p;J[699344]=0;g=J[a>>2];h=J[699344];J[699344]=0;if((h|0)==1)break c;if(!(g&2))break p;J[699344]=0;b=ga(5343,d+44|0,b+116|0,b+8|0)|0;a=J[699344];J[699344]=0;q:{if((a|0)!=1){J[699344]=0;aa(5253,f|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break q;Ed(b);break d}a=Z()|0;break b}a=Z()|0;Ed(b);break b}J[699344]=0;a=J[a>>2];g=J[699344];J[699344]=0;if((g|0)==1)break c;if(!(a&4))break d;a=J[b+112>>2];J[699344]=0;b=d+44|0;ca(5418,b|0,a|0,(e? +c:0)|0);a=J[699344];J[699344]=0;r:{if((a|0)!=1){J[699344]=0;aa(5253,f|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break r;J[d+68>>2]=2392964;J[d+44>>2]=2392932;a=J[d+72>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+72>>2]=0}J[d+60>>2]=2392964;a=J[d- -64>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+64>>2]=0}wc(d+52|0);break d}a=Z()|0;break b}a=Z()|0;Ed(d+44|0);break b}J[699344]=0;a=J[a>>2];e=J[699344];J[699344]=0;if((e|0)==1)break c;if(!(a&2))break d; +a=J[b+48>>2];J[699344]=0;ca(5419,d+4|0,a|0,((c|0)>0?c:0)|0);a=J[699344];J[699344]=0;s:{t:{u:{if((a|0)!=1){a=J[d+4>>2];if(a)break t;J[699344]=0;b=ja(5178,d+44|0,2402263,2385400,749,2413562,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break u;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;a=Z()|0;Kc(b);break s}a=Z()|0;break b}a=Z()|0;break s}J[699344]=0;b=ga(5343,d+44|0,a+36|0,b+8|0)|0;a=J[699344];J[699344]=0;v:{if((a|0)!=1){J[699344]=0;aa(5253,f|0,b|0)|0;a=J[699344];J[699344]=0;if((a| +0)==1)break v;J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);a=J[d+4>>2];J[d+4>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}a=Z()|0;break s}a=Z()|0;Ed(b)}zc(d+4|0);break b}J[699344]= +0;a=J[a>>2];e=J[699344];J[699344]=0;if((e|0)==1)break c;if(!(a&2))break d;a=J[b+48>>2];J[699344]=0;ca(5419,d+40|0,a|0,((c|0)>0?c:0)|0);a=J[699344];J[699344]=0;w:{x:{y:{if((a|0)!=1){a=J[d+40>>2];if(a)break x;J[699344]=0;b=ja(5178,d+44|0,2402263,2385400,761,2413562,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break y;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;a=Z()|0;Kc(b);break w}a=Z()|0;break b}a=Z()|0;break w}J[699344]=0;c=d+4|0;da(5396,c|0,b+8|0);b=J[699344];J[699344]=0;z:{A:{B:{if((b| +0)!=1){J[699344]=0;b=ga(5343,d+44|0,a+36|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break B;J[699344]=0;aa(5253,f|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break A;J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);J[d+28>>2]=2392964;J[d+4>>2]=2392932;a=J[d+32>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>> +2]+4>>2]](a);J[d+32>>2]=0}J[d+20>>2]=2392964;a=J[d+24>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+24>>2]=0}wc(d+12|0);a=J[d+40>>2];J[d+40>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}a=Z()|0;break w}a=Z()|0;break z}a=Z()|0;Ed(b)}Ed(d+4|0)}zc(d+40|0);break b}J[699344]=0;b=ja(5178,d+44|0,2402552,2385400,767,2413562,0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break f;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;a=Z()|0;Kc(b);break b}a=Z()|0;break b}a=Z()|0;break b}B()}fc=d+80|0;return}a=Z()|0}Ed(f);ba(a|0);B()}ea(0)|0;Bc();B()}function Taa(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;i=kc[J[J[b>>2]+36>>2]](b)|0;e=kc[J[J[b>>2]+20>>2]](b,4)|0;c=kc[J[J[b>>2]+20>>2]](b,4)|0;a:{b:switch(e|0){case 1:e=1;if(kc[J[J[b>>2]+20>>2]](b,4)|0)break a;e=kc[J[J[b>>2]+20>>2]](b,4)|0;if(e)break a;e=(kc[J[J[b>>2]+40>>2]](b)| +0)+12|0;break a;case 0:break b;default:break a}d=kc[J[J[b>>2]+40>>2]](b)|0;e=(d|0)>0?d+8|0:0}c:{while(1){d:{d=0;e:switch(c-1785737827|0){case 0:break c;case 5:break d;default:break e}kc[J[J[b>>2]+24>>2]](b,e-8|0);i=kc[J[J[b>>2]+36>>2]](b)|0;e=kc[J[J[b>>2]+20>>2]](b,4)|0;c=kc[J[J[b>>2]+20>>2]](b,4)|0;f:{g:switch(e|0){case 1:if(kc[J[J[b>>2]+20>>2]](b,4)|0)break c;e=kc[J[J[b>>2]+20>>2]](b,4)|0;if(e)break f;e=(kc[J[J[b>>2]+40>>2]](b)|0)+12|0;break f;case 0:break g;default:break f}e=kc[J[J[b>>2]+40>>2]](b)| +0;if((e|0)<=0)break c;e=e+8|0}if((c|0)!=1785737832)continue}break}g=kc[J[J[b>>2]+36>>2]](b)|0;c=kc[J[J[b>>2]+20>>2]](b,4)|0;f=kc[J[J[b>>2]+20>>2]](b,4)|0;h:{i:switch(c|0){case 1:c=1;if(kc[J[J[b>>2]+20>>2]](b,4)|0)break h;c=kc[J[J[b>>2]+20>>2]](b,4)|0;if(c)break h;c=(kc[J[J[b>>2]+40>>2]](b)|0)+12|0;break h;case 0:break i;default:break h}c=kc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}if((f|0)!=1768449138)break c;m=a,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+12>>2]=n;m=a,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+8>> +2]=n;f=kc[J[J[b>>2]+20>>2]](b,2)|0;J[a+16>>2]=f;f=kd(1,P(f,12));J[a+68>>2]=f;if(!f){J[J[a>>2]+20>>2]=1;return 0}m=a,n=kc[J[J[b>>2]+20>>2]](b,1)|0,J[m+20>>2]=n;m=a,n=kc[J[J[b>>2]+20>>2]](b,1)|0,J[m+24>>2]=n;m=a,n=kc[J[J[b>>2]+20>>2]](b,1)|0,J[m+28>>2]=n;m=a,n=kc[J[J[b>>2]+20>>2]](b,1)|0,J[m+32>>2]=n;if(((kc[J[J[b>>2]+36>>2]](b)|0)-g|0)!=(c|0))break c;g=kc[J[J[b>>2]+36>>2]](b)|0;kc[J[J[b>>2]+36>>2]](b)|0;c=kc[J[J[b>>2]+20>>2]](b,4)|0;d=kc[J[J[b>>2]+20>>2]](b,4)|0;j:{k:switch(c|0){case 1:c=1;if(kc[J[J[b>> +2]+20>>2]](b,4)|0)break j;c=kc[J[J[b>>2]+20>>2]](b,4)|0;if(c)break j;c=(kc[J[J[b>>2]+40>>2]](b)|0)+12|0;break j;case 0:break k;default:break j}c=kc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}l:{while(1){if(!d)break l;if((d|0)!=1667523942){kc[J[J[b>>2]+24>>2]](b,c-8|0);kc[J[J[b>>2]+36>>2]](b)|0;c=kc[J[J[b>>2]+20>>2]](b,4)|0;d=kc[J[J[b>>2]+20>>2]](b,4)|0;m:{n:switch(c|0){case 1:c=1;if(kc[J[J[b>>2]+20>>2]](b,4)|0)break m;c=kc[J[J[b>>2]+20>>2]](b,4)|0;if(c)break m;c=(kc[J[J[b>>2]+40>>2]](b)|0)+12|0;break m; +case 0:break n;default:break m}c=kc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}if((d|0)!=1667523942)continue}break}d=kc[J[J[b>>2]+20>>2]](b,2)|0;if((d|0)<=0)break l;c=0;while(1){kc[J[J[b>>2]+20>>2]](b,2)|0;kc[J[J[b>>2]+20>>2]](b,2)|0;kc[J[J[b>>2]+20>>2]](b,2)|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}kc[J[J[b>>2]+28>>2]](b,g);if(J[a+20>>2]==255){f=kc[J[J[b>>2]+36>>2]](b)|0;g=kc[J[J[b>>2]+20>>2]](b,4)|0;c=kc[J[J[b>>2]+20>>2]](b,4)|0;o:{p:switch(g|0){case 1:g=1;if(kc[J[J[b>>2]+20>>2]](b,4)|0)break o; +g=kc[J[J[b>>2]+20>>2]](b,4)|0;if(g)break o;g=(kc[J[J[b>>2]+40>>2]](b)|0)+12|0;break o;case 0:break p;default:break o}d=kc[J[J[b>>2]+40>>2]](b)|0;g=(d|0)>0?d+8|0:0}d=0;if((c|0)!=1651532643)break c;if(J[a+16>>2]){c=0;while(1){d=kc[J[J[b>>2]+20>>2]](b,1)|0;J[(J[a+68>>2]+P(c,12)|0)+8>>2]=d;c=c+1|0;if(c>>>0>2])continue;break}}d=0;if(((kc[J[J[b>>2]+36>>2]](b)|0)-f|0)!=(g|0))break c}k=kc[J[J[b>>2]+36>>2]](b)|0;q:{if(K[a+88|0])break q;g=kc[J[J[b>>2]+36>>2]](b)|0;c=kc[J[J[b>>2]+20>>2]](b,4)|0;d=kc[J[J[b>> +2]+20>>2]](b,4)|0;r:{s:switch(c|0){case 1:c=1;if(kc[J[J[b>>2]+20>>2]](b,4)|0)break r;c=kc[J[J[b>>2]+20>>2]](b,4)|0;if(c)break r;c=(kc[J[J[b>>2]+40>>2]](b)|0)+12|0;break r;case 0:break s;default:break r}c=kc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}t:{while(1){if((d|0)!=1668246642){if((d|0)==1785737827)break t;kc[J[J[b>>2]+24>>2]](b,c-8|0);g=kc[J[J[b>>2]+36>>2]](b)|0;c=kc[J[J[b>>2]+20>>2]](b,4)|0;d=kc[J[J[b>>2]+20>>2]](b,4)|0;u:{v:switch(c|0){case 1:c=1;if(kc[J[J[b>>2]+20>>2]](b,4)|0)break u;c=kc[J[J[b>> +2]+20>>2]](b,4)|0;if(c)break u;c=(kc[J[J[b>>2]+40>>2]](b)|0)+12|0;break u;case 0:break v;default:break u}c=kc[J[J[b>>2]+40>>2]](b)|0;c=(c|0)>0?c+8|0:0}if((d|0)!=1668246642)continue}break}m=a,n=kc[J[J[b>>2]+20>>2]](b,1)|0,J[m+36>>2]=n;m=a,n=kc[J[J[b>>2]+20>>2]](b,1)|0,J[m+40>>2]=n;m=a,n=kc[J[J[b>>2]+20>>2]](b,1)|0,J[m+44>>2]=n;w:{x:{y:switch(J[a+36>>2]-1|0){case 0:d=kc[J[J[b>>2]+20>>2]](b,4)|0;H[a+88|0]=1;J[a+48>>2]=d;break x;case 1:f=c-3|0;J[a+84>>2]=f;d=kd(1,f);J[a+80>>2]=d;if(!d)break w;z:{if((c| +0)<4)break z;d=0;if((c|0)!=4){l=f&-2;while(1){h=kc[J[J[b>>2]+20>>2]](b,1)|0;H[J[a+80>>2]+d|0]=h;h=kc[J[J[b>>2]+20>>2]](b,1)|0;H[J[a+80>>2]+(d|1)|0]=h;d=d+2|0;j=j+2|0;if((l|0)!=(j|0))continue;break}}if(!(f&1))break z;f=kc[J[J[b>>2]+20>>2]](b,1)|0;H[J[a+80>>2]+d|0]=f}H[a+88|0]=1;break x;default:break y}d=c+g|0;if((kc[J[J[b>>2]+36>>2]](b)|0)>(d|0))break t;n=b,o=d-(kc[J[J[b>>2]+36>>2]](b)|0)|0,m=J[J[b>>2]+24>>2],kc[m](n|0,o|0)}if(((kc[J[J[b>>2]+36>>2]](b)|0)-g|0)==(c|0))break q;break t}J[a+84>>2]=0}kc[J[J[b>> +2]+28>>2]](b,k);J[a+44>>2]=0;J[a+48>>2]=16;J[a+36>>2]=1;J[a+40>>2]=0}d=0;a=e+i|0;if((kc[J[J[b>>2]+36>>2]](b)|0)>(a|0))break c;o=b,n=a-(kc[J[J[b>>2]+36>>2]](b)|0)|0,m=J[J[b>>2]+24>>2],kc[m](o|0,n|0);d=1}return d}function qH(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;o=fc-16|0;fc=o;if(K[a+128|0]){i=J[a+188>>2];b=o;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;dp(i,a+136|0,a+160|0,a+152|0,a+144|0,b+8|0,b)}b=0;a:{if(!(R(O[a+96>>3]+-1)<.001))break a;b=0;if(!(R(O[a+104>> 3])<.001))break a;b=1}i=J[a+124>>2];if((i|0)>0){p=J[a+116>>2];while(1){j=p+(g<<5)|0;k=J[j+4>>2]!=65535;j=J[j>>2];b:{if(!(!((j|0)==9|(j|0)==65535)&(j|0)!=32)){f=f+1|0;e=(c&1)+e|0;c=0;break b}d=d+1|0;c=1}b=k?b|2:b;l=k|l;g=g+1|0;if((i|0)!=(g|0))continue;break}}c:{if(!i){H[a+128|0]=0;J[a+124>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;H[a+112|0]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>> -2]=0;J[a+84>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+144>>2]=0;J[a+148>>2]=1072693248;J[a+136>>2]=0;J[a+140>>2]=1072693248;J[a+160>>2]=0;J[a+164>>2]=0;J[a+200>>2]=0;J[a+196>>2]=J[a+192>>2];break c}J[a+256>>2]=J[a+256>>2]+1;J[a+260>>2]=J[a+260>>2]+(c+e|0);J[a+264>>2]=J[a+264>>2]+d;J[a+268>>2]=J[a+268>>2]+f;f=J[a+240>>2];d=J[f>>2];d:{if(d){g=J[f+12>>2];break d}J[f+12>>2]=1E3;d=rc(1E3);J[f>>2]=d;g=1E3}e=J[f+8>>2];c=e+60|0;if(g>>>0<=c>>>0){while(1){g=g<<1;if(c>>>0>=g>>>0)continue;break}J[f+12>>2]=g;c=tc(rc(g), -d,e);qc(d);J[f>>2]=c;f=J[a+240>>2];e=J[f+8>>2];d=J[f>>2]}H[d+e|0]=160;J[f+8>>2]=J[f+8>>2]+J[f+28>>2];c=J[a+240>>2];e=(i|0)>1?b|4:b;H[J[c>>2]+J[c+8>>2]|0]=e;J[c+8>>2]=J[c+8>>2]+J[c+28>>2];d=J[a+240>>2];b=J[d>>2]+J[d+8>>2]|0;h=O[a+48>>3]*1E4;e:{if(R(h)<2147483648){c=~~h;break e}c=-2147483648}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;J[d+8>>2]=J[d+8>>2]+4;d=J[a+240>>2];b=J[d>>2]+J[d+8>>2]|0;h=O[a+56>>3]*1E4;f:{if(R(h)<2147483648){c=~~h;break f}c=-2147483648}H[b|0]=c;H[b+1|0]=c>>>8;H[b+ +2]=0;J[a+84>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+144>>2]=0;J[a+148>>2]=1072693248;J[a+136>>2]=0;J[a+140>>2]=1072693248;J[a+160>>2]=0;J[a+164>>2]=0;J[a+200>>2]=0;J[a+196>>2]=J[a+192>>2];break c}J[a+256>>2]=J[a+256>>2]+1;J[a+260>>2]=J[a+260>>2]+(c+e|0);J[a+264>>2]=J[a+264>>2]+d;J[a+268>>2]=J[a+268>>2]+f;f=J[a+240>>2];d=J[f>>2];d:{if(d){g=J[f+12>>2];break d}J[f+12>>2]=1E3;d=vc(1E3);J[f>>2]=d;g=1E3}e=J[f+8>>2];c=e+60|0;if(g>>>0<=c>>>0){while(1){g=g<<1;if(c>>>0>=g>>>0)continue;break}J[f+12>>2]=g;c=xc(vc(g), +d,e);uc(d);J[f>>2]=c;f=J[a+240>>2];e=J[f+8>>2];d=J[f>>2]}H[d+e|0]=160;J[f+8>>2]=J[f+8>>2]+J[f+28>>2];c=J[a+240>>2];e=(i|0)>1?b|4:b;H[J[c>>2]+J[c+8>>2]|0]=e;J[c+8>>2]=J[c+8>>2]+J[c+28>>2];d=J[a+240>>2];b=J[d>>2]+J[d+8>>2]|0;h=O[a+48>>3]*1E4;e:{if(R(h)<2147483648){c=~~h;break e}c=-2147483648}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;J[d+8>>2]=J[d+8>>2]+4;d=J[a+240>>2];b=J[d>>2]+J[d+8>>2]|0;h=O[a+56>>3]*1E4;f:{if(R(h)<2147483648){c=~~h;break f}c=-2147483648}H[b|0]=c;H[b+1|0]=c>>>8;H[b+ 2|0]=c>>>16;H[b+3|0]=c>>>24;J[d+8>>2]=J[d+8>>2]+4;if(!(e&1)){d=J[a+240>>2];b=J[d>>2]+J[d+8>>2]|0;h=O[a+96>>3]*1E4;g:{if(R(h)<2147483648){c=~~h;break g}c=-2147483648}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;J[d+8>>2]=J[d+8>>2]+4;d=J[a+240>>2];b=J[d>>2]+J[d+8>>2]|0;h=O[a+104>>3]*1E4;h:{if(R(h)<2147483648){c=~~h;break h}c=-2147483648}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;J[d+8>>2]=J[d+8>>2]+4}d=J[a+240>>2];b=J[d>>2]+J[d+8>>2]|0;h=O[a+32>>3]*1E4;i:{if(R(h)<2147483648){c= ~~h;break i}c=-2147483648}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;J[d+8>>2]=J[d+8>>2]+4;d=J[a+240>>2];b=J[d>>2]+J[d+8>>2]|0;h=O[a+40>>3]*1E4;j:{if(R(h)<2147483648){c=~~h;break j}c=-2147483648}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;J[d+8>>2]=J[d+8>>2]+4;k:{l:{if((i|0)>=2){b=J[a+240>>2];j=J[b+8>>2];c=j+J[b>>2]|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[b+8>>2]=J[b+8>>2]+4;break l}j=0;if((i|0)<=0)break k}p=i-1|0;b=J[a+192>>2];h=0;d=0;r=l&1;while(1){l=b+1|0;n=J[a+116>> -2];k=K[b|0];if(k){g=J[a+240>>2];e=J[g>>2];m:{if(e){b=J[g+12>>2];break m}J[g+12>>2]=1E3;e=rc(1E3);J[g>>2]=e;b=1E3}c=J[g+8>>2];f=k+c|0;n:{if(b>>>0>f>>>0){b=e;break n}while(1){b=b<<1;if(f>>>0>=b>>>0)continue;break}J[g+12>>2]=b;b=rc(b);c=tc(b,e,c);qc(e);J[g>>2]=c;c=J[g+8>>2]}tc(b+c|0,l,k);J[g+8>>2]=k+J[g+8>>2]}g=(d<<5)+n|0;f=J[a+240>>2];c=J[f>>2];o:{if(c){b=J[f+12>>2];break o}J[f+12>>2]=1E3;c=rc(1E3);J[f>>2]=c;b=1E3}e=J[f+8>>2];n=e+20|0;if(b>>>0<=n>>>0){while(1){b=b<<1;if(n>>>0>=b>>>0)continue;break}J[f+ -12>>2]=b;b=tc(rc(b),c,e);qc(c);J[f>>2]=b;f=J[a+240>>2];e=J[f+8>>2];c=J[f>>2]}H[c+e|0]=80;J[f+8>>2]=J[f+8>>2]+J[f+28>>2];if(d){b=J[a+240>>2];e=J[b>>2]+J[b+8>>2]|0;m=O[g+8>>3]*100;p:{if(R(m)<2147483648){c=~~m;break p}c=-2147483648}H[e|0]=c;H[e+1|0]=c>>>8;J[b+8>>2]=J[b+8>>2]+2}b=J[a+240>>2];c=J[g>>2];q:{if((c|0)<=65535){e=J[b>>2]+J[b+8>>2]|0;H[e|0]=c;H[e+1|0]=c>>>8;break q}e=J[b>>2]+J[b+8>>2]|0;f=c+983040>>>10&1023|55296;H[e|0]=f;H[e+1|0]=f>>>8;e=J[b+8>>2]+2|0;J[b+8>>2]=e;e=e+J[b>>2]|0;c=c&1023|56320; +2];k=K[b|0];if(k){g=J[a+240>>2];e=J[g>>2];m:{if(e){b=J[g+12>>2];break m}J[g+12>>2]=1E3;e=vc(1E3);J[g>>2]=e;b=1E3}c=J[g+8>>2];f=k+c|0;n:{if(b>>>0>f>>>0){b=e;break n}while(1){b=b<<1;if(f>>>0>=b>>>0)continue;break}J[g+12>>2]=b;b=vc(b);c=xc(b,e,c);uc(e);J[g>>2]=c;c=J[g+8>>2]}xc(b+c|0,l,k);J[g+8>>2]=k+J[g+8>>2]}g=(d<<5)+n|0;f=J[a+240>>2];c=J[f>>2];o:{if(c){b=J[f+12>>2];break o}J[f+12>>2]=1E3;c=vc(1E3);J[f>>2]=c;b=1E3}e=J[f+8>>2];n=e+20|0;if(b>>>0<=n>>>0){while(1){b=b<<1;if(n>>>0>=b>>>0)continue;break}J[f+ +12>>2]=b;b=xc(vc(b),c,e);uc(c);J[f>>2]=b;f=J[a+240>>2];e=J[f+8>>2];c=J[f>>2]}H[c+e|0]=80;J[f+8>>2]=J[f+8>>2]+J[f+28>>2];if(d){b=J[a+240>>2];e=J[b>>2]+J[b+8>>2]|0;m=O[g+8>>3]*100;p:{if(R(m)<2147483648){c=~~m;break p}c=-2147483648}H[e|0]=c;H[e+1|0]=c>>>8;J[b+8>>2]=J[b+8>>2]+2}b=J[a+240>>2];c=J[g>>2];q:{if((c|0)<=65535){e=J[b>>2]+J[b+8>>2]|0;H[e|0]=c;H[e+1|0]=c>>>8;break q}e=J[b>>2]+J[b+8>>2]|0;f=c+983040>>>10&1023|55296;H[e|0]=f;H[e+1|0]=f>>>8;e=J[b+8>>2]+2|0;J[b+8>>2]=e;e=e+J[b>>2]|0;c=c&1023|56320; H[e|0]=c;H[e+1|0]=c>>>8}J[b+8>>2]=J[b+8>>2]+2;if(r){b=J[a+240>>2];c=J[b>>2]+J[b+8>>2]|0;e=J[g+4>>2];H[c|0]=e;H[c+1|0]=e>>>8;J[b+8>>2]=J[b+8>>2]+2}b=J[a+240>>2];e=J[b>>2]+J[b+8>>2]|0;m=O[g+16>>3]*100;r:{if(R(m)<2147483648){c=~~m;break r}c=-2147483648}H[e|0]=c;H[e+1|0]=c>>>8;J[b+8>>2]=J[b+8>>2]+2;h=d?h+O[g+8>>3]:h;q=(d|0)==(p|0)?h+O[g+16>>3]:q;b=k+l|0;d=d+1|0;if((i|0)!=(d|0))continue;break}if((i|0)<=1)break k;b=J[J[a+240>>2]>>2]+j|0;h=q*1E4;s:{if(R(h)<2147483648){c=~~h;break s}c=-2147483648}H[b|0]= c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24}H[a+128|0]=0;J[a+124>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;H[a+112|0]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+144>>2]=0;J[a+148>>2]=1072693248;J[a+136>>2]=0;J[a+140>>2]=1072693248;J[a+160>>2]=0;J[a+164>>2]=0;J[a+200>>2]=0;J[a+196>>2]=J[a+192>>2];a=J[a+240>>2];c=J[a+28>>2];d=J[a>> -2];if(d)b=J[a+12>>2];else{J[a+12>>2]=1E3;d=rc(1E3);J[a>>2]=d;b=1E3}f=J[a+8>>2];c=c+f|0;t:{if(b>>>0>c>>>0){b=d;break t}while(1){b=b<<1;if(c>>>0>=b>>>0)continue;break}J[a+12>>2]=b;b=rc(b);c=tc(b,d,f);qc(d);J[a>>2]=c;f=J[a+8>>2]}H[b+f|0]=162;J[a+8>>2]=J[a+8>>2]+J[a+28>>2]}bc=o+16|0}function iVa(a,b,c,d,e,f,g,h,i){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;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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0;o=bc-16|0;bc=o;j=J[g+40>>2];H[J[689612]+ -464|0]=1;q=rc(12);J[q+8>>2]=814292;J[q+4>>2]=816683;J[q>>2]=809748;r=a+104|0;D=f+1|0;E=-+(d|0);F=j-1>>>0>1;a:{b:{while(1){p=(t<<2)+q|0;d=J[p>>2];c:{if(h)if(Ec(h,d))break c;J[o>>2]=13;f=J[c+8>>2];J[695492]=0;d=ha(3203,f|0,d|0,o|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;d:{if(J[d>>2]==7){n=0;f=J[o+8>>2];if(J[f+16>>2]<=0)break d;while(1){e:{f:{if(!i)break f;if(!Ec(i,811476)){J[695492]=0;d=J[J[f+4>>2]+(n<<5)>>2];f=J[695492];J[695492]=0;if((f|0)==1)break a;if(Ec(d,811476))break e}if(Ec(i,840211))break f; -J[695492]=0;d=J[J[J[o+8>>2]+4>>2]+(n<<5)>>2];f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!Ec(d,811476))break e}J[695492]=0;j=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[j>>2]=0;J[j+4>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;f=j+16|0;J[f>>2]=0;J[f+4>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;d=J[p>>2];J[695492]=0;aa(2808,j+4|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;d=J[J[J[o+8>>2]+4>>2]+(n<<5)>>2];l=J[695492];J[695492]=0;if((l|0)==1)break a;J[695492]=0;aa(2808,f|0,d|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break a;g:{if(F)break g;l=K[j+27|0];k=l<<24>>24;d=(k|0)<0;if(((d?J[j+20>>2]:l)|0)==3)if(!Wc(d?J[f>>2]:f,811476,3))break g;h:{if((k|0)<0){J[j+20>>2]=3;d=J[j+16>>2];break h}H[j+27|0]=3;d=f}H[d+3|0]=0;H[d+2|0]=K[840213];l=K[840211]|K[840212]<<8;H[d|0]=l;H[d+1|0]=l>>>8}d=J[a+128>>2];l=J[J[d>>2]+492>>2];u=O[a+64>>3];v=O[a+48>>3];w=O[a+32>>3];x=O[a+80>>3];y=O[a+56>>3];z=O[a+40>>3];A=O[a+8>>3];C=O[a+72>>3];J[695492]=0;Ra(l|0,d|0,+(1-y*(A-z)+C*.5),+(u*(w-v)+E+1+x*.5));d=J[695492]; -J[695492]=0;if((d|0)==1)break a;d=J[p>>2];l=J[a+116>>2];k=J[j+16>>2];m=H[j+27|0];J[695492]=0;oa(3350,b|0,D|0,g|0,l|0,d|0,((m|0)<0?k:f)|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;d=J[a+100>>2];f=J[a+96>>2];J[695492]=0;s=$(27,P(d,f)<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;d=J[a+120>>2];J[695492]=0;G=J[d+16>>2];d=J[695492];J[695492]=0;if((d|0)==1)break a;m=J[a+100>>2];i:{if((m|0)<=0)break i;l=0;d=0;k=J[a+96>>2];if((k|0)<=0)break i;while(1){f=0;if((k|0)>0){while(1){k=((P(l,k)<<2)+G|0)+(f<< -2)|0;J[s+(d<<2)>>2]=J[k>>2];J[k>>2]=e;d=d+1|0;f=f+1|0;k=J[a+96>>2];if((f|0)<(k|0))continue;break}m=J[a+100>>2]}l=l+1|0;if((m|0)>(l|0))continue;break}}H[j|0]=0;J[j+28>>2]=s;f=J[a+108>>2];if((f|0)!=J[a+112>>2]){J[f>>2]=j;J[a+108>>2]=f+4;break e}m=J[r>>2];d=f-m|0;s=d>>2;l=s+1|0;if(l>>>0>=1073741824){J[695492]=0;_(3351,r|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;break b}k=d>>1;k=d>>>0>=2147483644?1073741823:l>>>0>>0?k:l;j:{if(!k){l=0;break j}if(k>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492]; -J[695492]=0;if((a|0)!=1)break b;break a}J[695492]=0;l=$(4,k<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a}d=(s<<2)+l|0;J[d>>2]=j;j=d+4|0;if((f|0)!=(m|0)){while(1){d=d-4|0;f=f-4|0;J[d>>2]=J[f>>2];if((f|0)!=(m|0))continue;break}f=J[r>>2]}J[a+112>>2]=(k<<2)+l;J[a+108>>2]=j;J[a+104>>2]=d;if(!f)break e;qc(f)}n=n+1|0;f=J[o+8>>2];if((n|0)>2])continue;break}break d}if(J[o>>2]==5)break d;J[695492]=0;j=$(4,32)|0;d=J[695492];J[695492]=0;k:{if((d|0)==1)break k;J[j>>2]=0;J[j+4>>2]=0;J[j+24>>2]=0;J[j+ -28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;d=J[p>>2];J[695492]=0;aa(2808,j+4|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;d=J[a+128>>2];f=J[J[d>>2]+492>>2];u=O[a+64>>3];v=O[a+48>>3];w=O[a+32>>3];x=O[a+80>>3];y=O[a+56>>3];z=O[a+40>>3];A=O[a+8>>3];C=O[a+72>>3];J[695492]=0;Ra(f|0,d|0,+(1-y*(A-z)+C*.5),+(u*(w-v)+E+1+x*.5));d=J[695492];J[695492]=0;if((d|0)==1)break k;d=J[p>>2];f=J[a+116>>2];J[695492]=0;oa(3350,b|0,D|0,g|0,f|0,d|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break k; -d=J[a+100>>2];f=J[a+96>>2];J[695492]=0;n=$(27,P(d,f)<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;d=J[a+120>>2];J[695492]=0;p=J[d+16>>2];d=J[695492];J[695492]=0;if((d|0)==1)break k;m=J[a+100>>2];l:{if((m|0)<=0)break l;l=0;d=0;k=J[a+96>>2];if((k|0)<=0)break l;while(1){f=0;if((k|0)>0){while(1){k=(p+(P(l,k)<<2)|0)+(f<<2)|0;J[n+(d<<2)>>2]=J[k>>2];J[k>>2]=e;d=d+1|0;f=f+1|0;k=J[a+96>>2];if((f|0)<(k|0))continue;break}m=J[a+100>>2]}l=l+1|0;if((m|0)>(l|0))continue;break}}H[j|0]=0;J[j+28>>2]=n;f=J[a+108>> -2];if((f|0)!=J[a+112>>2]){J[f>>2]=j;J[a+108>>2]=f+4;break d}m:{n:{n=J[r>>2];d=f-n|0;m=d>>2;l=m+1|0;o:{if(l>>>0>=1073741824){J[695492]=0;_(3351,r|0);break o}k=d>>1;k=d>>>0>=2147483644?1073741823:l>>>0>>0?k:l;if(!k){l=0;break m}if(k>>>0<1073741824)break n;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}J[695492]=0;l=$(4,k<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k}d=(m<<2)+l|0;J[d>>2]=j;j=d+4|0;if((f|0)!=(n|0)){while(1){d=d-4|0;f=f-4|0;J[d>>2]=J[f>>2];if((f|0)!=(n| -0))continue;break}f=J[r>>2]}J[a+112>>2]=(k<<2)+l;J[a+108>>2]=j;J[a+104>>2]=d;if(!f)break d;qc(f);break d}break a}J[695492]=0;_(3205,o|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}d=t>>>0<2;t=t+1|0;if(d)continue;break}H[J[689612]+464|0]=0;qc(q);bc=o+16|0;return}B()}a=Z()|0;qc(q);ba(a|0);B()}function PX(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;n=bc+-64|0;bc=n;a:{if(gc[J[J[b>>2]+32>>2]](b,778339)|0)break a;if(gc[J[J[b>>2]+32>>2]](b,788256)|0)break a;if(gc[J[J[b>>2]+ -32>>2]](b,807947)|0)break a;b:{if(gc[J[J[b>>2]+32>>2]](b,785475)|0)break b;j=si(b,808580);if(!j)break b;j=Tj(j,808844);if(!j)break b;if(!sd(J[j+4>>2],826511))break a}j=Tj(b,783698);if(!j)break a;k=J[j+4>>2]}c:{d:{e:{if(e){s=e;if(!k)break e}j=rc(16);J[695492]=0;s=aa(3365,j|0,0)|0;o=J[695492];J[695492]=0;if((o|0)!=1)break e;break d}f:{if(gc[J[J[b>>2]+32>>2]](b,778339)|0)break f;if(gc[J[J[b>>2]+32>>2]](b,807947)|0)break f;j=Tj(b,783698);if(!j)break f;q=J[j+4>>2]}g:{if(f){t=f;if(!q)break g;if(gc[J[J[b>> -2]+32>>2]](b,788256)|0)break g}j=rc(16);J[695492]=0;t=aa(3365,j|0,0)|0;o=J[695492];J[695492]=0;if((o|0)!=1)break g;break d}m=c;h:{i:{if(!k)break i;j:{if(m){J[n+52>>2]=k;J[n+48>>2]=m;m=II(n+48|0);break j}j=rc(8);J[695492]=0;m=aa(3183,j|0,k|0)|0;o=J[695492];J[695492]=0;if((o|0)==1)break h}o=tk(e,k);MI(e,k,o+1|0);k:{j=si(b,808580);if(!j)break k;j=Tj(j,808844);if(!j)break k;if(sd(J[j+4>>2],809189))break k;Xc(m,789121,0);break i}J[n+32>>2]=o;Xc(m,787279,n+32|0)}k=d;if(q){l:{if(k){J[n+20>>2]=q;J[n+16>> -2]=k;k=II(n+16|0);break l}j=rc(8);J[695492]=0;k=aa(3183,j|0,q|0)|0;o=J[695492];J[695492]=0;if((o|0)!=1)break l;break d}j=tk(f,q);MI(f,q,j+1|0);J[n>>2]=j;Xc(k,787279,n)}m:{if(gc[J[J[b>>2]+32>>2]](b,785475)|0){j=BH(a,J[m+4>>2],h);if(!(j|!g))j=BH(a,J[g+4>>2],h);n:{if(j)break n;j=tk(i,k);if(j)break n;j=0;g=si(b,782722);if(!g)break n;g=gc[J[J[g>>2]+40>>2]](g)|0;if(!g)break n;if(!(gc[J[J[g>>2]+28>>2]](g)|0))break n;g=gc[J[J[g>>2]+40>>2]](g)|0;if(!g)break n;if(!(gc[J[J[g>>2]+36>>2]](g)|0))break n;j=J[g+ -20>>2]}o:{p:{q:{r:{g=si(b,790696);s:{if(!g)break s;g=gc[J[J[g>>2]+40>>2]](g)|0;if(!g)break s;if(!(gc[J[J[g>>2]+32>>2]](g,791397)|0))break s;g=si(b,792162);if(!g)break s;g=gc[J[J[g>>2]+40>>2]](g)|0;if(!g)break s;if(!(gc[J[J[g>>2]+28>>2]](g)|0))break s;g=gc[J[J[g>>2]+40>>2]](g)|0;if(!g)break s;if(gc[J[J[g>>2]+36>>2]](g)|0)break r}if(j)break q;g=0;break o}t:{if(!j)break t;g=J[g+20>>2];if(!g)break t;h=rg(j,g);g=rc(8);if(h){J[695492]=0;j=aa(3182,g|0,792943)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break p; -break c}J[695492]=0;j=aa(3182,g|0,793643)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break p;break c}if(j)break q;g=0;break o}g=rc(8);J[695492]=0;j=aa(3183,g|0,j|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break c}g=j;break o}q=g;i=si(b,794522);if(i){g=0;j=Tj(i,795227);h=0;u:{if(!j)break u;h=0;if(!sd(J[j+4>>2],795897))break u;h=1;if(!sd(J[j+4>>2],796767))break u;h=!sd(J[j+4>>2],797488)<<1}i=Tj(i,798330);v:{if(!i)break v;if(!sd(J[i+4>>2],799020))break v;if(!sd(J[i+4>>2],799906)){g=1;break v}g=!sd(J[i+4>>2], -800620)<<1}i=rc(8);J[i+4>>2]=g;J[i>>2]=h}else i=0;o=i;h=0;g=0;w:{i=si(b,790696);if(!i)break w;x:{if(si(i,801169))break x;h=1;if(si(i,801816))break x;h=2;if(!si(i,802593))break w}i=si(b,803216);if(!i)break w;i=si(i,804058);if(!i)break w;i=gc[J[J[i>>2]+40>>2]](i)|0;if(!i)break w;if(!(gc[J[J[i>>2]+36>>2]](i)|0))break w;i=J[i+20>>2];g=rc(8);J[695492]=0;j=aa(3183,g|0,i|0)|0;i=J[695492];J[695492]=0;y:{if((i|0)==1)break y;g=rc(8);J[g+4>>2]=j;J[g>>2]=h;break w}break c}j=g;g=0;z:{b=si(b,790696);if(!b)break z; -l=si(b,804480);if(!l)break z;b=Tj(l,804875);if(!b)break z;b=J[b+4>>2];g=rc(8);J[695492]=0;p=aa(3183,g|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;b=Tj(l,805286);u=3;A:{if(!b)break A;b=J[J[b+4>>2]+4>>2];i=Yf(b,58);if(i){g=rc(8);J[695492]=0;h=ga(3181,g|0,b|0,i-b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){r=Wf(J[h+4>>2]);qc(Rc(h));v=r;r=Wf(i+1|0);u=v/(r==0?1:r);break A}break c}u=Wf(b)}b=Tj(l,805818);if(b)v=NX(J[b+4>>2]);else v=.7086614173228346;b=Tj(l,806111);if(b)r=NX(J[b+4>>2]);else r=14.173228346456694; -h=0;i=0;b=Tj(l,806641);if(b)i=Zf(J[J[b+4>>2]+4>>2]);b=Tj(l,807073);if(b)h=Zf(J[J[b+4>>2]+4>>2]);B:{b=Tj(l,807378);if(b){b=J[b+4>>2];g=rc(8);J[695492]=0;b=aa(3183,g|0,b|0)|0;l=J[695492];J[695492]=0;if((l|0)!=1)break B;break c}g=rc(8);J[695492]=0;b=aa(3182,g|0,807629)|0;l=J[695492];J[695492]=0;if((l|0)!=1)break B;break c}g=rc(48);J[g+40>>2]=b;J[g+36>>2]=h;J[g+32>>2]=i;O[g+24>>3]=r;O[g+16>>3]=v;O[g+8>>3]=u;J[g>>2]=p;break z}p=rc(24);J[695492]=0;i=$(4,8)|0;b=J[695492];J[695492]=0;C:{D:{if((b|0)==1)break D; -J[695492]=0;h=aa(3183,i|0,m|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=Z()|0;qc(i);break C}J[695492]=0;l=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break D;J[695492]=0;i=aa(3183,l|0,k|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=Z()|0;qc(l);break C}J[p+20>>2]=g;J[p+16>>2]=j;J[p+12>>2]=o;J[p+8>>2]=q;J[p+4>>2]=i;J[p>>2]=h;xg(J[a+4>>2],i,p);break m}a=Z()|0}qc(p);ba(a|0);B()}g=gc[J[J[b>>2]+32>>2]](b,789731)|0;b=gc[J[J[b>>2]+40>>2]](b)|0;if(!b)break m;g=g?m:0;while(1){if(gc[J[J[b>>2]+28>>2]](b)|0)PX(a, -b,m,k,s,t,g,h,i);b=gc[J[J[b>>2]+44>>2]](b)|0;if(b)continue;break}}if(!(!m|(c|0)==(m|0)))qc(Rc(m));if(!(!k|(d|0)==(k|0)))qc(Rc(k));if((e|0)!=(s|0))qc(Fh(s));if((f|0)!=(t|0))qc(Fh(t));bc=n- -64|0;return}}a=Z()|0;qc(j);ba(a|0);B()}a=Z()|0;qc(g);ba(a|0);B()}function Gt(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=bc-48|0;bc=i;a:{if(!a)break a;b:{c:{d:{e:{f:{g:{d=K[a|0];if(!d)break g;g=gc[J[659447]](44)|0;if(!g){J[i+32>>2]=34134;Cc(0,0,0,0,0,30,2,3,34134,0,0,0,32863,i+32|0);break a}J[g>>2]=0;J[g+ -4>>2]=0;J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;if(Ht(g,a))break f;if(!J[g>>2])break g;e=a;while(1){b=e;e=b+1|0;if(K[b|0])continue;break}b=b-a|0;if((b|0)<0)break f;f=gc[J[659450]](b+1|0)|0;if(!f){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break f}k=tc(f,a,b)+b|0,l=0,H[k|0]=l;e=0;break e}h:{i:{j:{k:{l:{if(b){e=gc[J[659447]](44)|0;if(!e){J[i>>2]=34134;Cc(0,0,0,0,0,30,2,3,34134,0,0,0,32863,i);e=0;break j}J[e>>2]=0;J[e+4>>2]=0;J[e+40>> -2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;if(!Ht(e,b))break l}if(d)break k;break d}if(!d){a=J[e+32>>2];if(a){gc[J[659451]](a);J[e+32>>2]=0}f=tp(e);break c}c=gc[J[659447]](44)|0;if(!c){J[i+16>>2]=34134;Cc(0,0,0,0,0,30,2,3,34134,0,0,0,32863,i+16|0);break j}J[c>>2]=0;J[c+4>>2]=0;J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;m:{if(!J[g>>2]){if(J[g+12>>2]|(J[g+24>>2]| -J[g+8>>2]))break m;a=J[e>>2];if(a)k=c,l=gc[J[659453]](a)|0,J[k>>2]=l;a=J[e+8>>2];n:{if(a){k=c,l=gc[J[659453]](a)|0,J[k+8>>2]=l;break n}a=J[e+12>>2];if(!a)break n;k=c,l=gc[J[659453]](a)|0,J[k+12>>2]=l;a=J[e+16>>2];if(a)k=c,l=gc[J[659453]](a)|0,J[k+16>>2]=l;J[c+20>>2]=J[e+20>>2]}a=J[e+24>>2];if(a)k=c,l=gc[J[659453]](a)|0,J[k+24>>2]=l;a=J[g+40>>2];o:{if(a){k=c,l=gc[J[659453]](a)|0,J[k+40>>2]=l;break o}a=J[g+28>>2];if(a){k=c,l=gc[J[659453]](a)|0,J[k+28>>2]=l;break o}a=J[e+40>>2];if(a){k=c,l=gc[J[659453]](a)| -0,J[k+40>>2]=l;break o}a=J[e+28>>2];if(!a)break o;k=c,l=gc[J[659453]](a)|0,J[k+28>>2]=l}a=J[g+32>>2];if(!a)break h;k=c,l=gc[J[659453]](a)|0,J[k+32>>2]=l;f=tp(c);break e}f=tp(g);break e}a=J[e>>2];if(a)k=c,l=gc[J[659453]](a)|0,J[k>>2]=l;a=J[g+40>>2];p:{if(a){k=c,l=gc[J[659453]](a)|0,J[k+40>>2]=l;break p}a=J[g+28>>2];if(!a)break p;k=c,l=gc[J[659453]](a)|0,J[k+28>>2]=l}a=J[g+32>>2];if(a)k=c,l=gc[J[659453]](a)|0,J[k+32>>2]=l;a=J[g+8>>2];if(!a){a=J[g+12>>2];if(a){k=c,l=gc[J[659453]](a)|0,J[k+12>>2]=l;a= -J[g+16>>2];if(a)k=c,l=gc[J[659453]](a)|0,J[k+16>>2]=l;J[c+20>>2]=J[g+20>>2];break i}a=J[e+8>>2];q:{if(a){k=c,l=gc[J[659453]](a)|0,J[k+8>>2]=l;break q}a=J[e+12>>2];if(!a)break q;k=c,l=gc[J[659453]](a)|0,J[k+12>>2]=l;a=J[e+16>>2];if(a)k=c,l=gc[J[659453]](a)|0,J[k+16>>2]=l;J[c+20>>2]=J[e+20>>2]}a=J[g+24>>2];if(a){if(K[a|0]==47){k=c,l=gc[J[659453]](a)|0,J[k+24>>2]=l;f=tp(c);break e}a=Qc(a)+2|0}else a=2;b=J[e+24>>2];if(b)a=Qc(b)+a|0;a=gc[J[659450]](a)|0;J[c+24>>2]=a;if(!a){a=bc-16|0;bc=a;J[a>>2]=34106; -Cc(0,0,0,0,0,30,2,3,34106,0,0,0,32863,a);bc=a+16|0;break e}H[a|0]=0;h=J[e+24>>2];r:{if(!h|!K[h|0])break r;b=0;while(1){a=b;while(1){j=K[a+h|0];if(!j)break r;d=b+1|0;if((j|0)!=47){a=a+1|0;b=d;continue}break}if((a|0)>=(f|0)){while(1){H[J[c+24>>2]+f|0]=K[J[e+24>>2]+f|0];h=(b|0)==(f|0);f=f+1|0;if(!h)continue;break}h=J[e+24>>2];f=d}b=a+1|0;if(K[h+b|0])continue;break}}H[J[c+24>>2]+f|0]=0;a=J[g+24>>2];s:{if(!a)break s;a=K[a|0];if(!a)break s;t:{if(f)break t;if(!J[e+12>>2]){f=0;break t}H[J[c+24>>2]]=47;f= -1;a=K[J[g+24>>2]];if(!a)break s}b=0;while(1){H[J[c+24>>2]+f|0]=a;f=f+1|0;b=b+1|0;a=K[b+J[g+24>>2]|0];if(a)continue;break}}H[J[c+24>>2]+f|0]=0;f=J[c+24>>2];if(f){b=f;u:{while(1){d=K[b|0];if((d|0)!=47)v:{if(!d)break u;h=b;w:while(1){x:{a=d&255;if((a|0)!=46){if(!a)break v;break x}a=K[b+1|0];if((a|0)!=47){if(a)break x;break v}a=b+2|0;while(1){d=K[a|0];b=a;a=a+1|0;if((d|0)==47)continue;break}continue}while(1){a=d&255;if(!a)break v;if((a|0)==47){a=b;while(1){d=K[a+1|0];b=a+1|0;a=b;if((d|0)==47)continue; -break}H[h|0]=47;h=h+1|0;d=K[a|0];continue w}else{H[h|0]=d;h=h+1|0;d=K[b+1|0];b=b+1|0;continue}}}}else{b=b+1|0;continue}break}H[h|0]=0;a=f;while(1){b=K[a|0];if((b|0)==47){a=a+1|0;continue}break}if(!b)break u;y:while(1){b=a;while(1){a=0;z:{A:{while(1){d=K[a+b|0];if(!d)break A;if((d|0)!=47){a=a+1|0;continue}break}d=a+1|0;a=d+b|0;if(!(K[b|0]!=46|K[b+1|0]!=46)&(d|0)==3|(K[a|0]!=46|K[a+1|0]!=46))continue y;d=K[a+2|0];if((d|0)==47)break z;if(d)continue y;H[b|0]=0}H[h|0]=0;if(K[f|0]!=47)break u;b=f;B:{while(1){a= -b;if(K[a+1|0]!=46|K[a+2|0]!=46)break B;b=a+3|0;d=K[a+3|0];if((d|0)==47)continue;break}if(d)break B;a=b}if((a|0)==(f|0))break u;d=K[a|0];if(d)while(1){H[f|0]=d;f=f+1|0;d=K[a+1|0];a=a+1|0;if(d)continue;break}H[f|0]=0;break u}a=a+3|0;d=b;while(1){j=K[a|0];H[d|0]=j;d=d+1|0;a=a+1|0;if(j)continue;break}d=b;while(1){if(d>>>0>f>>>0){d=d-1|0;if(K[d|0]==47)continue}break}if((d|0)==(f|0))continue;break}while(1){if(d>>>0<=f>>>0){a=d;continue y}a=d;b=a-1|0;d=b;if(K[b|0]!=47)continue;break}continue}}}break h}k= -c,l=gc[J[659453]](a)|0,J[k+8>>2]=l;break i}f=tp(g)}c=0;if(!g)break d;break e}a=J[g+24>>2];if(!a)break h;k=c,l=gc[J[659453]](a)|0,J[k+24>>2]=l;f=tp(c);break e}f=tp(c);break e}e=0;f=0}Xj(g)}if(!e)break b}Xj(e)}if(!c)break a;Xj(c)}bc=i+48|0;return f}function WA(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;i=bc-32|0;bc=i;J[i+16>>2]=13;J[i>>2]=13;hf(b,J[a+4>>2],i+16|0,0);a:{b:{c:{d:{e:{f:switch(J[i+16>>2]-6|0){case 0:b=i+16|0;g=J[i+24>>2];if(J[g+12>>2]<=0)break e;while(1){jg(g,c,i);e=uZ(a, -i);uc(i);if(e)break d;c=c+1|0;g=J[i+24>>2];e=J[g+12>>2];if((c|0)<(e|0))continue;break}c=0;if((e|0)<=0)break e;while(1){Mc(g,c,i,0);if(J[i>>2]!=8){xc(1,-1,791456,0);uc(i);break d}uc(i);c=c+1|0;g=J[i+24>>2];if((c|0)>2])continue;break}break e;default:xc(1,-1,791456,0);break d;case 2:break f}if(uZ(a,b))break d}id(J[a+112>>2],b);h=rc(56);g=J[a+4>>2];J[695492]=0;f=$(4,160)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;e=ga(3307,f|0,g|0,i+16|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b; -J[695492]=0;e=ha(3308,h|0,g|0,e|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[a+108>>2]=e;b=0;d=bc-560|0;bc=d;J[d+544>>2]=13;J[d+528>>2]=13;J[d+512>>2]=13;J[d+496>>2]=13;J[d+480>>2]=13;J[d+464>>2]=13;J[d+448>>2]=13;J[d+432>>2]=13;J[d+416>>2]=13;J[d+400>>2]=13;J[d+384>>2]=13;J[d+368>>2]=13;J[d+352>>2]=13;J[d+336>>2]=13;J[d+320>>2]=13;J[d+304>>2]=13;J[d+288>>2]=13;J[d+272>>2]=13;J[d+256>>2]=13;J[d+240>>2]=13;J[d+224>>2]=13;J[d+208>>2]=13;J[d+192>>2]=13;J[d+176>>2]=13;J[d+160>>2]=13;J[d+144>> -2]=13;J[d+128>>2]=13;J[d+112>>2]=13;J[d+96>>2]=13;J[d+80>>2]=13;J[d+64>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[a+24>>2]=0;hg(J[a+108>>2],d+544|0,0,0,0,0,0,0,0);g:{h:{i:{j:{c=J[d+544>>2];switch(c-9|0){case 3:break h;case 0:break j;default:break i}}c=-1;e=J[a+108>>2];k:{if(!e)break k;e=J[e+4>>2];if(J[e+8>>2]==13)break k;e=J[e+16>>2];c=gc[J[J[e>>2]+52>>2]](e)|0}xc(1,c,798337,0);uc(d+544|0);c=11;J[d+544>>2]=11}l=J[651372];g=0;l:{m:{while(1){f=J[a+24>>2];J[a+24>>2]=f+1;e=J[a+116>>2];if(!(!e| -(f|0)<100)){if(gc[e|0](J[a+120>>2])|0)break m;J[a+24>>2]=0;c=J[d+544>>2]}n:{if((c|0)==10){if(J[a+16>>2]){Um(d+544|0,l);c=0;if((g|0)>0)while(1){Ry(32);Um((d+16|0)+(c<<4)|0,l);c=c+1|0;if((g|0)!=(c|0))continue;break}Ry(10);Ji(l)}e=b;n=d+16|0;b=g;k=bc+-64|0;bc=k;o=d+544|0;m=J[o+8>>2];c=-1;h=73;while(1){f=(c+h|0)/2|0;j=Ec(P(f,148)+2699824|0,m);h=(j|0)<0?h:f;c=(j|0)<=0?f:c;if((h-c|0)>1)continue;break}o:{if(j){b=1;if(J[a+40>>2]>0)break o;c=-1;b=J[a+108>>2];p:{if(!b)break p;b=J[b+4>>2];if(J[b+8>>2]==13)break p; -b=J[b+16>>2];c=gc[J[J[b>>2]+52>>2]](b)|0}J[k+48>>2]=m;xc(1,c,799467,k+48|0);b=0;break o}h=P(c,148);f=J[h+2699828>>2];q:{if((f|0)>=0){if((b|0)<(f|0)){c=-1;f=J[a+108>>2];r:{if(!f)break r;f=J[f+4>>2];if(J[f+8>>2]==13)break r;f=J[f+16>>2];c=gc[J[J[f>>2]+52>>2]](f)|0}J[k+4>>2]=m;J[k>>2]=b;xc(1,c,799761,k);b=0;break o}if((b|0)<=(f|0))break q;n=(b-f<<4)+n|0;b=f;break q}if((0-f|0)>=(b|0))break q;c=-1;f=J[a+108>>2];s:{if(!f)break s;f=J[f+4>>2];if(J[f+8>>2]==13)break s;f=J[f+16>>2];c=gc[J[J[f>>2]+52>>2]](f)| -0}J[k+36>>2]=m;J[k+32>>2]=b;xc(0,c,800540,k+32|0)}h=j?0:h+2699824|0;t:{if((b|0)>0){c=0;while(1){j=(c<<4)+n|0;u:{v:switch(J[(h+(c<<2)|0)+8>>2]){case 1:if(J[j>>2]!=1)break t;break u;case 2:if(J[j>>2]-1>>>0>=2)break t;break u;case 3:if(J[j>>2]!=3)break t;break u;case 4:if(J[j>>2]!=4)break t;break u;case 5:if(J[j>>2]!=6)break t;break u;case 6:switch(J[j>>2]-4|0){case 0:case 3:break u;default:break t}case 7:f=J[j>>2];if(f>>>0>4)break t;if(1<> -2])break t}c=c+1|0;if((c|0)!=(b|0))continue;break}}j=J[h+140>>2];f=J[h+144>>2];h=(f>>1)+a|0;gc[(f&1?J[j+J[h>>2]>>2]:j)|0](h,n,b);b=1;break o}h=-1;b=J[a+108>>2];w:{if(!b)break w;b=J[b+4>>2];if(J[b+8>>2]==13)break w;b=J[b+16>>2];h=gc[J[J[b>>2]+52>>2]](b)|0}J[k+24>>2]=J[(J[j>>2]<<2)+2720608>>2];J[k+20>>2]=m;J[k+16>>2]=c;xc(1,h,801557,k+16|0);b=0}bc=k- -64|0;b=!b+e|0;uc(o);c=0;if((g|0)>0)while(1){uc((d+16|0)+(c<<4)|0);c=c+1|0;if((g|0)!=(c|0))continue;break}g=0;if((b|0)<501)break n;xc(1,-1,794382,0);break h}if((g| -0)<=32){e=J[d+556>>2];f=(d+16|0)+(g<<4)|0;J[f+8>>2]=J[d+552>>2];J[f+12>>2]=e;e=J[d+548>>2];J[f>>2]=J[d+544>>2];J[f+4>>2]=e;g=g+1|0;break n}c=-1;e=J[a+108>>2];x:{if(!e)break x;e=J[e+4>>2];if(J[e+8>>2]==13)break x;e=J[e+16>>2];c=gc[J[J[e>>2]+52>>2]](e)|0}xc(1,c,795234,0);if(J[a+16>>2]){vq(796491,0);Um(d+544|0,l);Ry(10);Ji(l)}uc(d+544|0)}hg(J[a+108>>2],d+544|0,0,0,0,0,0,0,0);c=J[d+544>>2];if((c|0)==9){c=-1;e=J[a+108>>2];y:{if(!e)break y;e=J[e+4>>2];if(J[e+8>>2]==13)break y;e=J[e+16>>2];c=gc[J[J[e>>2]+ -52>>2]](e)|0}xc(1,c,798337,0);uc(d+544|0);J[d+544>>2]=11;c=11}if((c|0)!=12)continue;break}uc(d+544|0);if((g|0)<=0)break g;b=-1;e=J[a+108>>2];z:{if(!e)break z;e=J[e+4>>2];if(J[e+8>>2]==13)break z;b=J[e+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0}c=0;xc(1,b,796868,0);if(!J[a+16>>2])break l;J[d>>2]=g;vq(798044,d);b=J[651372];while(1){Ry(32);Um((d+16|0)+(c<<4)|0,b);c=c+1|0;if((g|0)!=(c|0))continue;break}Ry(10);Ji(b);if((g|0)<=0)break g;break l}uc(d+544|0);if((g|0)<=0)break g}c=0;while(1){uc((d+16|0)+(c<<4)|0); -c=c+1|0;if((g|0)!=(c|0))continue;break}break g}uc(d+544|0)}bc=d+560|0;b=J[a+108>>2];if(b)qc(qk(b));J[a+108>>2]=0;a=J[a+112>>2];cj(a,J[a+8>>2]-1|0)}uc(i+16|0);bc=i+32|0;return}a=Z()|0;break a}a=Z()|0;qc(f)}qc(h);ba(a|0);B()}function c9(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;g=bc-(((b<<3)+8&1073741808)<<2)|0;a:{if((b|0)<2)break a;i=(P(1-d|0,c)<<2)+a|0;n=(b-d|0)+1>>1;l=d?n:b-n|0;b:{if((l|0)<=0)break b;o=c<<1;m=l;f=i;e=g;p=l&3;if(p){k=o<<2;while(1){j=J[f+4>>2];J[e>>2]=J[f>>2];J[e+ +2];if(d)b=J[a+12>>2];else{J[a+12>>2]=1E3;d=vc(1E3);J[a>>2]=d;b=1E3}f=J[a+8>>2];c=c+f|0;t:{if(b>>>0>c>>>0){b=d;break t}while(1){b=b<<1;if(c>>>0>=b>>>0)continue;break}J[a+12>>2]=b;b=vc(b);c=xc(b,d,f);uc(d);J[a>>2]=c;f=J[a+8>>2]}H[b+f|0]=162;J[a+8>>2]=J[a+8>>2]+J[a+28>>2]}fc=o+16|0}function rXa(a,b,c,d,e,f,g,h,i){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;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,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0;o=fc-16|0;fc=o;j=J[g+40>>2];H[J[693464]+ +464|0]=1;q=vc(12);J[q+8>>2]=825256;J[q+4>>2]=829880;J[q>>2]=808457;r=a+104|0;D=f+1|0;E=-+(d|0);F=j-1>>>0>1;a:{b:{while(1){p=(t<<2)+q|0;d=J[p>>2];c:{if(h)if(Ic(h,d))break c;J[o>>2]=13;f=J[c+8>>2];J[699344]=0;d=ha(3368,f|0,d|0,o|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;d:{if(J[d>>2]==7){n=0;f=J[o+8>>2];if(J[f+16>>2]<=0)break d;while(1){e:{f:{if(!i)break f;if(!Ic(i,819747)){J[699344]=0;d=J[J[f+4>>2]+(n<<5)>>2];f=J[699344];J[699344]=0;if((f|0)==1)break a;if(Ic(d,819747))break e}if(Ic(i,852615))break f; +J[699344]=0;d=J[J[J[o+8>>2]+4>>2]+(n<<5)>>2];f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!Ic(d,819747))break e}J[699344]=0;j=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[j>>2]=0;J[j+4>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;f=j+16|0;J[f>>2]=0;J[f+4>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;d=J[p>>2];J[699344]=0;aa(2974,j+4|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;d=J[J[J[o+8>>2]+4>>2]+(n<<5)>>2];l=J[699344];J[699344]=0;if((l|0)==1)break a;J[699344]=0;aa(2974,f|0,d|0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break a;g:{if(F)break g;l=K[j+27|0];k=l<<24>>24;d=(k|0)<0;if(((d?J[j+20>>2]:l)|0)==3)if(!dd(d?J[f>>2]:f,819747,3))break g;h:{if((k|0)<0){J[j+20>>2]=3;d=J[j+16>>2];break h}H[j+27|0]=3;d=f}H[d+3|0]=0;H[d+2|0]=K[852617];l=K[852615]|K[852616]<<8;H[d|0]=l;H[d+1|0]=l>>>8}d=J[a+128>>2];l=J[J[d>>2]+508>>2];u=O[a+64>>3];v=O[a+48>>3];w=O[a+32>>3];x=O[a+80>>3];y=O[a+56>>3];z=O[a+40>>3];A=O[a+8>>3];C=O[a+72>>3];J[699344]=0;Ua(l|0,d|0,+(1-y*(A-z)+C*.5),+(u*(w-v)+E+1+x*.5));d=J[699344]; +J[699344]=0;if((d|0)==1)break a;d=J[p>>2];l=J[a+116>>2];k=J[j+16>>2];m=H[j+27|0];J[699344]=0;la(3524,b|0,D|0,g|0,l|0,d|0,((m|0)<0?k:f)|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[a+100>>2];f=J[a+96>>2];J[699344]=0;s=_(27,P(d,f)<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[a+120>>2];J[699344]=0;G=J[d+16>>2];d=J[699344];J[699344]=0;if((d|0)==1)break a;m=J[a+100>>2];i:{if((m|0)<=0)break i;l=0;d=0;k=J[a+96>>2];if((k|0)<=0)break i;while(1){f=0;if((k|0)>0){while(1){k=((P(l,k)<<2)+G|0)+(f<< +2)|0;J[s+(d<<2)>>2]=J[k>>2];J[k>>2]=e;d=d+1|0;f=f+1|0;k=J[a+96>>2];if((f|0)<(k|0))continue;break}m=J[a+100>>2]}l=l+1|0;if((m|0)>(l|0))continue;break}}H[j|0]=0;J[j+28>>2]=s;f=J[a+108>>2];if((f|0)!=J[a+112>>2]){J[f>>2]=j;J[a+108>>2]=f+4;break e}m=J[r>>2];d=f-m|0;s=d>>2;l=s+1|0;if(l>>>0>=1073741824){J[699344]=0;$(3525,r|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;break b}k=d>>1;k=d>>>0>=2147483644?1073741823:l>>>0>>0?k:l;j:{if(!k){l=0;break j}if(k>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344]; +J[699344]=0;if((a|0)!=1)break b;break a}J[699344]=0;l=_(4,k<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a}d=(s<<2)+l|0;J[d>>2]=j;j=d+4|0;if((f|0)!=(m|0)){while(1){d=d-4|0;f=f-4|0;J[d>>2]=J[f>>2];if((f|0)!=(m|0))continue;break}f=J[r>>2]}J[a+112>>2]=(k<<2)+l;J[a+108>>2]=j;J[a+104>>2]=d;if(!f)break e;uc(f)}n=n+1|0;f=J[o+8>>2];if((n|0)>2])continue;break}break d}if(J[o>>2]==5)break d;J[699344]=0;j=_(4,32)|0;d=J[699344];J[699344]=0;k:{if((d|0)==1)break k;J[j>>2]=0;J[j+4>>2]=0;J[j+24>>2]=0;J[j+ +28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;d=J[p>>2];J[699344]=0;aa(2974,j+4|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;d=J[a+128>>2];f=J[J[d>>2]+508>>2];u=O[a+64>>3];v=O[a+48>>3];w=O[a+32>>3];x=O[a+80>>3];y=O[a+56>>3];z=O[a+40>>3];A=O[a+8>>3];C=O[a+72>>3];J[699344]=0;Ua(f|0,d|0,+(1-y*(A-z)+C*.5),+(u*(w-v)+E+1+x*.5));d=J[699344];J[699344]=0;if((d|0)==1)break k;d=J[p>>2];f=J[a+116>>2];J[699344]=0;la(3524,b|0,D|0,g|0,f|0,d|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break k; +d=J[a+100>>2];f=J[a+96>>2];J[699344]=0;n=_(27,P(d,f)<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;d=J[a+120>>2];J[699344]=0;p=J[d+16>>2];d=J[699344];J[699344]=0;if((d|0)==1)break k;m=J[a+100>>2];l:{if((m|0)<=0)break l;l=0;d=0;k=J[a+96>>2];if((k|0)<=0)break l;while(1){f=0;if((k|0)>0){while(1){k=(p+(P(l,k)<<2)|0)+(f<<2)|0;J[n+(d<<2)>>2]=J[k>>2];J[k>>2]=e;d=d+1|0;f=f+1|0;k=J[a+96>>2];if((f|0)<(k|0))continue;break}m=J[a+100>>2]}l=l+1|0;if((m|0)>(l|0))continue;break}}H[j|0]=0;J[j+28>>2]=n;f=J[a+108>> +2];if((f|0)!=J[a+112>>2]){J[f>>2]=j;J[a+108>>2]=f+4;break d}m:{n:{n=J[r>>2];d=f-n|0;m=d>>2;l=m+1|0;o:{if(l>>>0>=1073741824){J[699344]=0;$(3525,r|0);break o}k=d>>1;k=d>>>0>=2147483644?1073741823:l>>>0>>0?k:l;if(!k){l=0;break m}if(k>>>0<1073741824)break n;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}J[699344]=0;l=_(4,k<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k}d=(m<<2)+l|0;J[d>>2]=j;j=d+4|0;if((f|0)!=(n|0)){while(1){d=d-4|0;f=f-4|0;J[d>>2]=J[f>>2];if((f|0)!=(n| +0))continue;break}f=J[r>>2]}J[a+112>>2]=(k<<2)+l;J[a+108>>2]=j;J[a+104>>2]=d;if(!f)break d;uc(f);break d}break a}J[699344]=0;$(3370,o|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}d=t>>>0<2;t=t+1|0;if(d)continue;break}H[J[693464]+464|0]=0;uc(q);fc=o+16|0;return}B()}a=Z()|0;uc(q);ba(a|0);B()}function tu(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=fc-48|0;fc=i;a:{if(!a)break a;b:{c:{d:{e:{f:{g:{d=K[a|0];if(!d)break g;g=kc[J[663195]](44)|0;if(!g){J[i+32>>2]=34150;Hc(0,0,0,0,0,30,2,3,34150,0, +0,0,32879,i+32|0);break a}J[g>>2]=0;J[g+4>>2]=0;J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;if(uu(g,a))break f;if(!J[g>>2])break g;e=a;while(1){b=e;e=b+1|0;if(K[b|0])continue;break}b=b-a|0;if((b|0)<0)break f;f=kc[J[663198]](b+1|0)|0;if(!f){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break f}k=xc(f,a,b)+b|0,l=0,H[k|0]=l;e=0;break e}h:{i:{j:{k:{l:{if(b){e=kc[J[663195]](44)|0;if(!e){J[i>>2]=34150;Hc(0,0,0,0,0,30,2,3,34150,0,0,0,32879,i); +e=0;break j}J[e>>2]=0;J[e+4>>2]=0;J[e+40>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;if(!uu(e,b))break l}if(d)break k;break d}if(!d){a=J[e+32>>2];if(a){kc[J[663199]](a);J[e+32>>2]=0}f=lq(e);break c}c=kc[J[663195]](44)|0;if(!c){J[i+16>>2]=34150;Hc(0,0,0,0,0,30,2,3,34150,0,0,0,32879,i+16|0);break j}J[c>>2]=0;J[c+4>>2]=0;J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0; +m:{if(!J[g>>2]){if(J[g+12>>2]|(J[g+24>>2]|J[g+8>>2]))break m;a=J[e>>2];if(a)k=c,l=kc[J[663201]](a)|0,J[k>>2]=l;a=J[e+8>>2];n:{if(a){k=c,l=kc[J[663201]](a)|0,J[k+8>>2]=l;break n}a=J[e+12>>2];if(!a)break n;k=c,l=kc[J[663201]](a)|0,J[k+12>>2]=l;a=J[e+16>>2];if(a)k=c,l=kc[J[663201]](a)|0,J[k+16>>2]=l;J[c+20>>2]=J[e+20>>2]}a=J[e+24>>2];if(a)k=c,l=kc[J[663201]](a)|0,J[k+24>>2]=l;a=J[g+40>>2];o:{if(a){k=c,l=kc[J[663201]](a)|0,J[k+40>>2]=l;break o}a=J[g+28>>2];if(a){k=c,l=kc[J[663201]](a)|0,J[k+28>>2]=l; +break o}a=J[e+40>>2];if(a){k=c,l=kc[J[663201]](a)|0,J[k+40>>2]=l;break o}a=J[e+28>>2];if(!a)break o;k=c,l=kc[J[663201]](a)|0,J[k+28>>2]=l}a=J[g+32>>2];if(!a)break h;k=c,l=kc[J[663201]](a)|0,J[k+32>>2]=l;f=lq(c);break e}f=lq(g);break e}a=J[e>>2];if(a)k=c,l=kc[J[663201]](a)|0,J[k>>2]=l;a=J[g+40>>2];p:{if(a){k=c,l=kc[J[663201]](a)|0,J[k+40>>2]=l;break p}a=J[g+28>>2];if(!a)break p;k=c,l=kc[J[663201]](a)|0,J[k+28>>2]=l}a=J[g+32>>2];if(a)k=c,l=kc[J[663201]](a)|0,J[k+32>>2]=l;a=J[g+8>>2];if(!a){a=J[g+12>> +2];if(a){k=c,l=kc[J[663201]](a)|0,J[k+12>>2]=l;a=J[g+16>>2];if(a)k=c,l=kc[J[663201]](a)|0,J[k+16>>2]=l;J[c+20>>2]=J[g+20>>2];break i}a=J[e+8>>2];q:{if(a){k=c,l=kc[J[663201]](a)|0,J[k+8>>2]=l;break q}a=J[e+12>>2];if(!a)break q;k=c,l=kc[J[663201]](a)|0,J[k+12>>2]=l;a=J[e+16>>2];if(a)k=c,l=kc[J[663201]](a)|0,J[k+16>>2]=l;J[c+20>>2]=J[e+20>>2]}a=J[g+24>>2];if(a){if(K[a|0]==47){k=c,l=kc[J[663201]](a)|0,J[k+24>>2]=l;f=lq(c);break e}a=Yc(a)+2|0}else a=2;b=J[e+24>>2];if(b)a=Yc(b)+a|0;a=kc[J[663198]](a)|0; +J[c+24>>2]=a;if(!a){a=fc-16|0;fc=a;J[a>>2]=34122;Hc(0,0,0,0,0,30,2,3,34122,0,0,0,32879,a);fc=a+16|0;break e}H[a|0]=0;h=J[e+24>>2];r:{if(!h|!K[h|0])break r;b=0;while(1){a=b;while(1){j=K[a+h|0];if(!j)break r;d=b+1|0;if((j|0)!=47){a=a+1|0;b=d;continue}break}if((a|0)>=(f|0)){while(1){H[J[c+24>>2]+f|0]=K[J[e+24>>2]+f|0];h=(b|0)==(f|0);f=f+1|0;if(!h)continue;break}h=J[e+24>>2];f=d}b=a+1|0;if(K[h+b|0])continue;break}}H[J[c+24>>2]+f|0]=0;a=J[g+24>>2];s:{if(!a)break s;a=K[a|0];if(!a)break s;t:{if(f)break t; +if(!J[e+12>>2]){f=0;break t}H[J[c+24>>2]]=47;f=1;a=K[J[g+24>>2]];if(!a)break s}b=0;while(1){H[J[c+24>>2]+f|0]=a;f=f+1|0;b=b+1|0;a=K[b+J[g+24>>2]|0];if(a)continue;break}}H[J[c+24>>2]+f|0]=0;f=J[c+24>>2];if(f){b=f;u:{while(1){d=K[b|0];if((d|0)!=47)v:{if(!d)break u;h=b;w:while(1){x:{a=d&255;if((a|0)!=46){if(!a)break v;break x}a=K[b+1|0];if((a|0)!=47){if(a)break x;break v}a=b+2|0;while(1){d=K[a|0];b=a;a=a+1|0;if((d|0)==47)continue;break}continue}while(1){a=d&255;if(!a)break v;if((a|0)==47){a=b;while(1){d= +K[a+1|0];b=a+1|0;a=b;if((d|0)==47)continue;break}H[h|0]=47;h=h+1|0;d=K[a|0];continue w}else{H[h|0]=d;h=h+1|0;d=K[b+1|0];b=b+1|0;continue}}}}else{b=b+1|0;continue}break}H[h|0]=0;a=f;while(1){b=K[a|0];if((b|0)==47){a=a+1|0;continue}break}if(!b)break u;y:while(1){b=a;while(1){a=0;z:{A:{while(1){d=K[a+b|0];if(!d)break A;if((d|0)!=47){a=a+1|0;continue}break}d=a+1|0;a=d+b|0;if(!(K[b|0]!=46|K[b+1|0]!=46)&(d|0)==3|(K[a|0]!=46|K[a+1|0]!=46))continue y;d=K[a+2|0];if((d|0)==47)break z;if(d)continue y;H[b|0]= +0}H[h|0]=0;if(K[f|0]!=47)break u;b=f;B:{while(1){a=b;if(K[a+1|0]!=46|K[a+2|0]!=46)break B;b=a+3|0;d=K[a+3|0];if((d|0)==47)continue;break}if(d)break B;a=b}if((a|0)==(f|0))break u;d=K[a|0];if(d)while(1){H[f|0]=d;f=f+1|0;d=K[a+1|0];a=a+1|0;if(d)continue;break}H[f|0]=0;break u}a=a+3|0;d=b;while(1){j=K[a|0];H[d|0]=j;d=d+1|0;a=a+1|0;if(j)continue;break}d=b;while(1){if(d>>>0>f>>>0){d=d-1|0;if(K[d|0]==47)continue}break}if((d|0)==(f|0))continue;break}while(1){if(d>>>0<=f>>>0){a=d;continue y}a=d;b=a-1|0;d= +b;if(K[b|0]!=47)continue;break}continue}}}break h}k=c,l=kc[J[663201]](a)|0,J[k+8>>2]=l;break i}f=lq(g)}c=0;if(!g)break d;break e}a=J[g+24>>2];if(!a)break h;k=c,l=kc[J[663201]](a)|0,J[k+24>>2]=l;f=lq(c);break e}f=lq(c);break e}e=0;f=0}uk(g)}if(!e)break b}uk(e)}if(!c)break a;uk(c)}fc=i+48|0;return f}function NZ(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;n=fc+-64|0;fc=n;a:{if(kc[J[J[b>>2]+32>>2]](b,780083)|0)break a;if(kc[J[J[b>>2]+32>>2]](b,79E4)|0)break a;if(kc[J[J[b>> +2]+32>>2]](b,809707)|0)break a;b:{if(kc[J[J[b>>2]+32>>2]](b,787219)|0)break b;j=Ii(b,810360);if(!j)break b;j=pk(j,810624);if(!j)break b;if(!Dd(J[j+4>>2],836762))break a}j=pk(b,785442);if(!j)break a;k=J[j+4>>2]}c:{d:{e:{if(e){s=e;if(!k)break e}j=vc(16);J[699344]=0;s=aa(3539,j|0,0)|0;o=J[699344];J[699344]=0;if((o|0)!=1)break e;break d}f:{if(kc[J[J[b>>2]+32>>2]](b,780083)|0)break f;if(kc[J[J[b>>2]+32>>2]](b,809707)|0)break f;j=pk(b,785442);if(!j)break f;q=J[j+4>>2]}g:{if(f){t=f;if(!q)break g;if(kc[J[J[b>> +2]+32>>2]](b,79E4)|0)break g}j=vc(16);J[699344]=0;t=aa(3539,j|0,0)|0;o=J[699344];J[699344]=0;if((o|0)!=1)break g;break d}m=c;h:{i:{if(!k)break i;j:{if(m){J[n+52>>2]=k;J[n+48>>2]=m;m=XJ(n+48|0);break j}j=vc(8);J[699344]=0;m=aa(3350,j|0,k|0)|0;o=J[699344];J[699344]=0;if((o|0)==1)break h}o=Qk(e,k);$J(e,k,o+1|0);k:{j=Ii(b,810360);if(!j)break k;j=pk(j,810624);if(!j)break k;if(Dd(J[j+4>>2],810981))break k;ed(m,790865,0);break i}J[n+32>>2]=o;ed(m,789023,n+32|0)}k=d;if(q){l:{if(k){J[n+20>>2]=q;J[n+16>>2]= +k;k=XJ(n+16|0);break l}j=vc(8);J[699344]=0;k=aa(3350,j|0,q|0)|0;o=J[699344];J[699344]=0;if((o|0)!=1)break l;break d}j=Qk(f,q);$J(f,q,j+1|0);J[n>>2]=j;ed(k,789023,n)}m:{if(kc[J[J[b>>2]+32>>2]](b,787219)|0){j=KI(a,J[m+4>>2],h);if(!(j|!g))j=KI(a,J[g+4>>2],h);n:{if(j)break n;j=Qk(i,k);if(j)break n;j=0;g=Ii(b,784466);if(!g)break n;g=kc[J[J[g>>2]+40>>2]](g)|0;if(!g)break n;if(!(kc[J[J[g>>2]+28>>2]](g)|0))break n;g=kc[J[J[g>>2]+40>>2]](g)|0;if(!g)break n;if(!(kc[J[J[g>>2]+36>>2]](g)|0))break n;j=J[g+20>> +2]}o:{p:{q:{r:{g=Ii(b,792440);s:{if(!g)break s;g=kc[J[J[g>>2]+40>>2]](g)|0;if(!g)break s;if(!(kc[J[J[g>>2]+32>>2]](g,793141)|0))break s;g=Ii(b,793906);if(!g)break s;g=kc[J[J[g>>2]+40>>2]](g)|0;if(!g)break s;if(!(kc[J[J[g>>2]+28>>2]](g)|0))break s;g=kc[J[J[g>>2]+40>>2]](g)|0;if(!g)break s;if(kc[J[J[g>>2]+36>>2]](g)|0)break r}if(j)break q;g=0;break o}t:{if(!j)break t;g=J[g+20>>2];if(!g)break t;h=Eg(j,g);g=vc(8);if(h){J[699344]=0;j=aa(3349,g|0,794687)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break p;break c}J[699344]= +0;j=aa(3349,g|0,795422)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break p;break c}if(j)break q;g=0;break o}g=vc(8);J[699344]=0;j=aa(3350,g|0,j|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break c}g=j;break o}q=g;i=Ii(b,796272);if(i){g=0;j=pk(i,796986);h=0;u:{if(!j)break u;h=0;if(!Dd(J[j+4>>2],797638))break u;h=1;if(!Dd(J[j+4>>2],798520))break u;h=!Dd(J[j+4>>2],799245)<<1}i=pk(i,800069);v:{if(!i)break v;if(!Dd(J[i+4>>2],800768))break v;if(!Dd(J[i+4>>2],801643)){g=1;break v}g=!Dd(J[i+4>>2],802366)<<1}i=vc(8); +J[i+4>>2]=g;J[i>>2]=h}else i=0;o=i;h=0;g=0;w:{i=Ii(b,792440);if(!i)break w;x:{if(Ii(i,802905))break x;h=1;if(Ii(i,803516))break x;h=2;if(!Ii(i,804325))break w}i=Ii(b,804952);if(!i)break w;i=Ii(i,805793);if(!i)break w;i=kc[J[J[i>>2]+40>>2]](i)|0;if(!i)break w;if(!(kc[J[J[i>>2]+36>>2]](i)|0))break w;i=J[i+20>>2];g=vc(8);J[699344]=0;j=aa(3350,g|0,i|0)|0;i=J[699344];J[699344]=0;y:{if((i|0)==1)break y;g=vc(8);J[g+4>>2]=j;J[g>>2]=h;break w}break c}j=g;g=0;z:{b=Ii(b,792440);if(!b)break z;l=Ii(b,806232); +if(!l)break z;b=pk(l,806633);if(!b)break z;b=J[b+4>>2];g=vc(8);J[699344]=0;p=aa(3350,g|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;b=pk(l,807043);u=3;A:{if(!b)break A;b=J[J[b+4>>2]+4>>2];i=eg(b,58);if(i){g=vc(8);J[699344]=0;h=ga(3348,g|0,b|0,i-b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){r=qg(J[h+4>>2]);uc(Zc(h));v=r;r=qg(i+1|0);u=v/(r==0?1:r);break A}break c}u=qg(b)}b=pk(l,807552);if(b)v=LZ(J[b+4>>2]);else v=.7086614173228346;b=pk(l,807851);if(b)r=LZ(J[b+4>>2]);else r=14.173228346456694; +h=0;i=0;b=pk(l,808390);if(b)i=fg(J[J[b+4>>2]+4>>2]);b=pk(l,808805);if(b)h=fg(J[J[b+4>>2]+4>>2]);B:{b=pk(l,809124);if(b){b=J[b+4>>2];g=vc(8);J[699344]=0;b=aa(3350,g|0,b|0)|0;l=J[699344];J[699344]=0;if((l|0)!=1)break B;break c}g=vc(8);J[699344]=0;b=aa(3349,g|0,809393)|0;l=J[699344];J[699344]=0;if((l|0)!=1)break B;break c}g=vc(48);J[g+40>>2]=b;J[g+36>>2]=h;J[g+32>>2]=i;O[g+24>>3]=r;O[g+16>>3]=v;O[g+8>>3]=u;J[g>>2]=p;break z}p=vc(24);J[699344]=0;i=_(4,8)|0;b=J[699344];J[699344]=0;C:{D:{if((b|0)==1)break D; +J[699344]=0;h=aa(3350,i|0,m|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;uc(i);break C}J[699344]=0;l=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break D;J[699344]=0;i=aa(3350,l|0,k|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;uc(l);break C}J[p+20>>2]=g;J[p+16>>2]=j;J[p+12>>2]=o;J[p+8>>2]=q;J[p+4>>2]=i;J[p>>2]=h;Jg(J[a+4>>2],i,p);break m}a=Z()|0}uc(p);ba(a|0);B()}g=kc[J[J[b>>2]+32>>2]](b,791475)|0;b=kc[J[J[b>>2]+40>>2]](b)|0;if(!b)break m;g=g?m:0;while(1){if(kc[J[J[b>>2]+28>>2]](b)|0)NZ(a, +b,m,k,s,t,g,h,i);b=kc[J[J[b>>2]+44>>2]](b)|0;if(b)continue;break}}if(!(!m|(c|0)==(m|0)))uc(Zc(m));if(!(!k|(d|0)==(k|0)))uc(Zc(k));if((e|0)!=(s|0))uc(Sh(s));if((f|0)!=(t|0))uc(Sh(t));fc=n- -64|0;return}}a=Z()|0;uc(j);ba(a|0);B()}a=Z()|0;uc(g);ba(a|0);B()}function TB(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;i=fc-32|0;fc=i;J[i+16>>2]=13;J[i>>2]=13;jf(b,J[a+4>>2],i+16|0,0);a:{b:{c:{d:{e:{f:switch(J[i+16>>2]-6|0){case 0:b=i+16|0;g=J[i+24>>2];if(J[g+12>>2]<=0)break e;while(1){tg(g,c, +i);e=v$(a,i);yc(i);if(e)break d;c=c+1|0;g=J[i+24>>2];e=J[g+12>>2];if((c|0)<(e|0))continue;break}c=0;if((e|0)<=0)break e;while(1){Sc(g,c,i,0);if(J[i>>2]!=8){Cc(1,-1,793200,0);yc(i);break d}yc(i);c=c+1|0;g=J[i+24>>2];if((c|0)>2])continue;break}break e;default:Cc(1,-1,793200,0);break d;case 2:break f}if(v$(a,b))break d}sd(J[a+112>>2],b);h=vc(56);g=J[a+4>>2];J[699344]=0;f=_(4,160)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;e=ga(3466,f|0,g|0,i+16|0)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break b;J[699344]=0;e=ha(3467,h|0,g|0,e|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[a+108>>2]=e;b=0;d=fc-560|0;fc=d;J[d+544>>2]=13;J[d+528>>2]=13;J[d+512>>2]=13;J[d+496>>2]=13;J[d+480>>2]=13;J[d+464>>2]=13;J[d+448>>2]=13;J[d+432>>2]=13;J[d+416>>2]=13;J[d+400>>2]=13;J[d+384>>2]=13;J[d+368>>2]=13;J[d+352>>2]=13;J[d+336>>2]=13;J[d+320>>2]=13;J[d+304>>2]=13;J[d+288>>2]=13;J[d+272>>2]=13;J[d+256>>2]=13;J[d+240>>2]=13;J[d+224>>2]=13;J[d+208>>2]=13;J[d+192>>2]=13;J[d+176>>2]=13;J[d+160>>2]= +13;J[d+144>>2]=13;J[d+128>>2]=13;J[d+112>>2]=13;J[d+96>>2]=13;J[d+80>>2]=13;J[d+64>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[a+24>>2]=0;rg(J[a+108>>2],d+544|0,0,0,0,0,0,0,0);g:{h:{i:{j:{c=J[d+544>>2];switch(c-9|0){case 3:break h;case 0:break j;default:break i}}c=-1;e=J[a+108>>2];k:{if(!e)break k;e=J[e+4>>2];if(J[e+8>>2]==13)break k;e=J[e+16>>2];c=kc[J[J[e>>2]+52>>2]](e)|0}Cc(1,c,800076,0);yc(d+544|0);c=11;J[d+544>>2]=11}l=J[655076];g=0;l:{m:{while(1){f=J[a+24>>2];J[a+24>>2]=f+1;e=J[a+116>> +2];if(!(!e|(f|0)<100)){if(kc[e|0](J[a+120>>2])|0)break m;J[a+24>>2]=0;c=J[d+544>>2]}n:{if((c|0)==10){if(J[a+16>>2]){Mn(d+544|0,l);c=0;if((g|0)>0)while(1){Jz(32);Mn((d+16|0)+(c<<4)|0,l);c=c+1|0;if((g|0)!=(c|0))continue;break}Jz(10);Zi(l)}e=b;n=d+16|0;b=g;k=fc+-64|0;fc=k;o=d+544|0;m=J[o+8>>2];c=-1;h=73;while(1){f=(c+h|0)/2|0;j=Ic(P(f,148)+2714816|0,m);h=(j|0)<0?h:f;c=(j|0)<=0?f:c;if((h-c|0)>1)continue;break}o:{if(j){b=1;if(J[a+40>>2]>0)break o;c=-1;b=J[a+108>>2];p:{if(!b)break p;b=J[b+4>>2];if(J[b+ +8>>2]==13)break p;b=J[b+16>>2];c=kc[J[J[b>>2]+52>>2]](b)|0}J[k+48>>2]=m;Cc(1,c,801203,k+48|0);b=0;break o}h=P(c,148);f=J[h+2714820>>2];q:{if((f|0)>=0){if((b|0)<(f|0)){c=-1;f=J[a+108>>2];r:{if(!f)break r;f=J[f+4>>2];if(J[f+8>>2]==13)break r;f=J[f+16>>2];c=kc[J[J[f>>2]+52>>2]](f)|0}J[k+4>>2]=m;J[k>>2]=b;Cc(1,c,801490,k);b=0;break o}if((b|0)<=(f|0))break q;n=(b-f<<4)+n|0;b=f;break q}if((0-f|0)>=(b|0))break q;c=-1;f=J[a+108>>2];s:{if(!f)break s;f=J[f+4>>2];if(J[f+8>>2]==13)break s;f=J[f+16>>2];c=kc[J[J[f>> +2]+52>>2]](f)|0}J[k+36>>2]=m;J[k+32>>2]=b;Cc(0,c,802286,k+32|0)}h=j?0:h+2714816|0;t:{if((b|0)>0){c=0;while(1){j=(c<<4)+n|0;u:{v:switch(J[(h+(c<<2)|0)+8>>2]){case 1:if(J[j>>2]!=1)break t;break u;case 2:if(J[j>>2]-1>>>0>=2)break t;break u;case 3:if(J[j>>2]!=3)break t;break u;case 4:if(J[j>>2]!=4)break t;break u;case 5:if(J[j>>2]!=6)break t;break u;case 6:switch(J[j>>2]-4|0){case 0:case 3:break u;default:break t}case 7:f=J[j>>2];if(f>>>0>4)break t;if(1<> +2])break t}c=c+1|0;if((c|0)!=(b|0))continue;break}}j=J[h+140>>2];f=J[h+144>>2];h=(f>>1)+a|0;kc[(f&1?J[j+J[h>>2]>>2]:j)|0](h,n,b);b=1;break o}h=-1;b=J[a+108>>2];w:{if(!b)break w;b=J[b+4>>2];if(J[b+8>>2]==13)break w;b=J[b+16>>2];h=kc[J[J[b>>2]+52>>2]](b)|0}J[k+24>>2]=J[(J[j>>2]<<2)+2735600>>2];J[k+20>>2]=m;J[k+16>>2]=c;Cc(1,h,803295,k+16|0);b=0}fc=k- -64|0;b=!b+e|0;yc(o);c=0;if((g|0)>0)while(1){yc((d+16|0)+(c<<4)|0);c=c+1|0;if((g|0)!=(c|0))continue;break}g=0;if((b|0)<501)break n;Cc(1,-1,796128,0);break h}if((g| +0)<=32){e=J[d+556>>2];f=(d+16|0)+(g<<4)|0;J[f+8>>2]=J[d+552>>2];J[f+12>>2]=e;e=J[d+548>>2];J[f>>2]=J[d+544>>2];J[f+4>>2]=e;g=g+1|0;break n}c=-1;e=J[a+108>>2];x:{if(!e)break x;e=J[e+4>>2];if(J[e+8>>2]==13)break x;e=J[e+16>>2];c=kc[J[J[e>>2]+52>>2]](e)|0}Cc(1,c,796993,0);if(J[a+16>>2]){lr(798247,0);Mn(d+544|0,l);Jz(10);Zi(l)}yc(d+544|0)}rg(J[a+108>>2],d+544|0,0,0,0,0,0,0,0);c=J[d+544>>2];if((c|0)==9){c=-1;e=J[a+108>>2];y:{if(!e)break y;e=J[e+4>>2];if(J[e+8>>2]==13)break y;e=J[e+16>>2];c=kc[J[J[e>>2]+ +52>>2]](e)|0}Cc(1,c,800076,0);yc(d+544|0);J[d+544>>2]=11;c=11}if((c|0)!=12)continue;break}yc(d+544|0);if((g|0)<=0)break g;b=-1;e=J[a+108>>2];z:{if(!e)break z;e=J[e+4>>2];if(J[e+8>>2]==13)break z;b=J[e+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}c=0;Cc(1,b,798621,0);if(!J[a+16>>2])break l;J[d>>2]=g;lr(799793,d);b=J[655076];while(1){Jz(32);Mn((d+16|0)+(c<<4)|0,b);c=c+1|0;if((g|0)!=(c|0))continue;break}Jz(10);Zi(b);if((g|0)<=0)break g;break l}yc(d+544|0);if((g|0)<=0)break g}c=0;while(1){yc((d+16|0)+(c<<4)|0); +c=c+1|0;if((g|0)!=(c|0))continue;break}break g}yc(d+544|0)}fc=d+560|0;b=J[a+108>>2];if(b)uc(Nk(b));J[a+108>>2]=0;a=J[a+112>>2];zj(a,J[a+8>>2]-1|0)}yc(i+16|0);fc=i+32|0;return}a=Z()|0;break a}a=Z()|0;uc(f)}uc(h);ba(a|0);B()}function eba(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;g=fc-(((b<<3)+8&1073741808)<<2)|0;a:{if((b|0)<2)break a;i=(P(1-d|0,c)<<2)+a|0;n=(b-d|0)+1>>1;l=d?n:b-n|0;b:{if((l|0)<=0)break b;o=c<<1;m=l;f=i;e=g;p=l&3;if(p){k=o<<2;while(1){j=J[f+4>>2];J[e>>2]=J[f>>2];J[e+ 4>>2]=j;j=J[f+60>>2];J[e+56>>2]=J[f+56>>2];J[e+60>>2]=j;j=J[f+52>>2];J[e+48>>2]=J[f+48>>2];J[e+52>>2]=j;j=J[f+44>>2];J[e+40>>2]=J[f+40>>2];J[e+44>>2]=j;j=J[f+36>>2];J[e+32>>2]=J[f+32>>2];J[e+36>>2]=j;j=J[f+28>>2];J[e+24>>2]=J[f+24>>2];J[e+28>>2]=j;j=J[f+20>>2];J[e+16>>2]=J[f+16>>2];J[e+20>>2]=j;j=J[f+12>>2];J[e+8>>2]=J[f+8>>2];J[e+12>>2]=j;e=e- -64|0;m=m-1|0;f=f+k|0;h=h+1|0;if((p|0)!=(h|0))continue;break}}if(l>>>0<4)break b;j=o<<2;while(1){h=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=h;h=J[f+60>>2];J[e+ 56>>2]=J[f+56>>2];J[e+60>>2]=h;h=J[f+52>>2];J[e+48>>2]=J[f+48>>2];J[e+52>>2]=h;h=J[f+44>>2];J[e+40>>2]=J[f+40>>2];J[e+44>>2]=h;h=J[f+36>>2];J[e+32>>2]=J[f+32>>2];J[e+36>>2]=h;h=J[f+28>>2];J[e+24>>2]=J[f+24>>2];J[e+28>>2]=h;h=J[f+20>>2];J[e+16>>2]=J[f+16>>2];J[e+20>>2]=h;h=J[f+12>>2];J[e+8>>2]=J[f+8>>2];J[e+12>>2]=h;k=f+j|0;f=J[k+4>>2];h=e- -64|0;J[h>>2]=J[k>>2];J[h+4>>2]=f;f=J[k+12>>2];J[e+72>>2]=J[k+8>>2];J[e+76>>2]=f;f=J[k+20>>2];J[e+80>>2]=J[k+16>>2];J[e+84>>2]=f;f=J[k+28>>2];J[e+88>>2]=J[k+24>> 2];J[e+92>>2]=f;f=J[k+36>>2];J[e+96>>2]=J[k+32>>2];J[e+100>>2]=f;f=J[k+44>>2];J[e+104>>2]=J[k+40>>2];J[e+108>>2]=f;f=J[k+52>>2];J[e+112>>2]=J[k+48>>2];J[e+116>>2]=f;f=J[k+60>>2];J[e+120>>2]=J[k+56>>2];J[e+124>>2]=f;h=j+k|0;f=J[h+4>>2];J[e+128>>2]=J[h>>2];J[e+132>>2]=f;f=J[h+12>>2];J[e+136>>2]=J[h+8>>2];J[e+140>>2]=f;f=J[h+20>>2];J[e+144>>2]=J[h+16>>2];J[e+148>>2]=f;f=J[h+28>>2];J[e+152>>2]=J[h+24>>2];J[e+156>>2]=f;f=J[h+36>>2];J[e+160>>2]=J[h+32>>2];J[e+164>>2]=f;f=J[h+44>>2];J[e+168>>2]=J[h+40>> @@ -9628,11290 +10228,11855 @@ i=(c<<2)+i|0;b=f>>>0>1;f=f-1|0;if(b)continue;break}}if((l|0)<=0)break a;e=(P(c,n J[e+12>>2]=a;g=g- -64|0;i=i-1|0;e=b+e|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}if(l>>>0<4)break a;c=c<<2;while(1){a=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=a;a=J[g+60>>2];J[e+56>>2]=J[g+56>>2];J[e+60>>2]=a;a=J[g+52>>2];J[e+48>>2]=J[g+48>>2];J[e+52>>2]=a;a=J[g+44>>2];J[e+40>>2]=J[g+40>>2];J[e+44>>2]=a;a=J[g+36>>2];J[e+32>>2]=J[g+32>>2];J[e+36>>2]=a;a=J[g+28>>2];J[e+24>>2]=J[g+24>>2];J[e+28>>2]=a;a=J[g+20>>2];J[e+16>>2]=J[g+16>>2];J[e+20>>2]=a;a=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=a;a=J[g+124>>2]; d=c+e|0;b=d;J[b+56>>2]=J[g+120>>2];J[b+60>>2]=a;a=J[g+116>>2];J[b+48>>2]=J[g+112>>2];J[b+52>>2]=a;a=J[g+108>>2];J[b+40>>2]=J[g+104>>2];J[b+44>>2]=a;a=J[g+100>>2];J[b+32>>2]=J[g+96>>2];J[b+36>>2]=a;a=J[g+92>>2];J[b+24>>2]=J[g+88>>2];J[b+28>>2]=a;a=J[g+84>>2];J[b+16>>2]=J[g+80>>2];J[b+20>>2]=a;a=J[g+76>>2];J[b+8>>2]=J[g+72>>2];J[b+12>>2]=a;b=g- -64|0;a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;a=J[g+188>>2];b=c+d|0;J[b+56>>2]=J[g+184>>2];J[b+60>>2]=a;a=J[g+180>>2];J[b+48>>2]=J[g+176>>2];J[b+52>>2]=a;a= J[g+172>>2];J[b+40>>2]=J[g+168>>2];J[b+44>>2]=a;a=J[g+164>>2];J[b+32>>2]=J[g+160>>2];J[b+36>>2]=a;a=J[g+156>>2];J[b+24>>2]=J[g+152>>2];J[b+28>>2]=a;a=J[g+148>>2];J[b+16>>2]=J[g+144>>2];J[b+20>>2]=a;a=J[g+140>>2];J[b+8>>2]=J[g+136>>2];J[b+12>>2]=a;a=J[g+132>>2];J[b>>2]=J[g+128>>2];J[b+4>>2]=a;a=J[g+252>>2];b=b+c|0;J[b+56>>2]=J[g+248>>2];J[b+60>>2]=a;a=J[g+244>>2];J[b+48>>2]=J[g+240>>2];J[b+52>>2]=a;a=J[g+236>>2];J[b+40>>2]=J[g+232>>2];J[b+44>>2]=a;a=J[g+228>>2];J[b+32>>2]=J[g+224>>2];J[b+36>>2]=a; -a=J[g+220>>2];J[b+24>>2]=J[g+216>>2];J[b+28>>2]=a;a=J[g+212>>2];J[b+16>>2]=J[g+208>>2];J[b+20>>2]=a;a=J[g+204>>2];J[b+8>>2]=J[g+200>>2];J[b+12>>2]=a;a=J[g+196>>2];J[b>>2]=J[g+192>>2];J[b+4>>2]=a;e=b+c|0;g=g+256|0;a=i-5|0;i=i-4|0;if(a>>>0<4294967294)continue;break}}}function DD(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;a:while(1){k=b-4|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{a=b-f>>2;switch(a|0){case 3:break j;case 2:break k;case 0:case 1:break d; +a=J[g+220>>2];J[b+24>>2]=J[g+216>>2];J[b+28>>2]=a;a=J[g+212>>2];J[b+16>>2]=J[g+208>>2];J[b+20>>2]=a;a=J[g+204>>2];J[b+8>>2]=J[g+200>>2];J[b+12>>2]=a;a=J[g+196>>2];J[b>>2]=J[g+192>>2];J[b+4>>2]=a;e=b+c|0;g=g+256|0;a=i-5|0;i=i-4|0;if(a>>>0<4294967294)continue;break}}}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,k=0,l=0,m=0,n=0,o=0,p=0;a:while(1){k=b-4|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{a=b-f>>2;switch(a|0){case 3:break j;case 2:break k;case 0:case 1:break d; case 4:break g;case 5:break i;default:break h}}c=J[J[c>>2]+12>>2];a=b-4|0;b=J[a>>2];d=J[f>>2];if(M[J[c+(b<<2)>>2]+4>>2]>=M[J[c+(d<<2)>>2]+4>>2])break d;J[f>>2]=b;J[a>>2]=d;return}a=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[J[a+(d<<2)>>2]+4>>2];h=J[f+4>>2];k=J[J[a+(h<<2)>>2]+4>>2];c=J[f>>2];g=J[a+(c<<2)>>2];if(k>>>0>=M[g+4>>2]){if(e>>>0>=k>>>0)break d;J[f+4>>2]=d;J[b>>2]=h;b=J[f+4>>2];c=J[f>>2];if(M[J[a+(b<<2)>>2]+4>>2]>=M[J[a+(c<<2)>>2]+4>>2])break d;J[f+4>>2]=c;J[f>>2]=b;return}if(e>>>0>>0){J[f>> -2]=d;J[b>>2]=c;return}J[f+4>>2]=c;J[f>>2]=h;d=J[b>>2];if(M[J[a+(d<<2)>>2]+4>>2]>=M[g+4>>2])break d;J[f+4>>2]=d;J[b>>2]=c;return}UM(f,f+4|0,f+8|0,f+12|0,b-4|0,c);return}if((a|0)<=30){a=f+4|0;e=f+8|0;h=J[J[c>>2]+12>>2];k=J[f+8>>2];g=J[h+(k<<2)>>2];i=J[g+4>>2];l=J[f+4>>2];n=J[J[h+(l<<2)>>2]+4>>2];j=J[f>>2];m=J[h+(j<<2)>>2];l:{m:{if(n>>>0>=M[m+4>>2]){if(i>>>0>=n>>>0)break l;J[a>>2]=k;J[e>>2]=l;d=f;c=a;if(M[g+4>>2]>2])break m;break l}d=f;c=e;if(i>>>0>>0)break m;J[f+4>>2]=j;J[f>>2]=l;d=a;if(M[g+ +2]=d;J[b>>2]=c;return}J[f+4>>2]=c;J[f>>2]=h;d=J[b>>2];if(M[J[a+(d<<2)>>2]+4>>2]>=M[g+4>>2])break d;J[f+4>>2]=d;J[b>>2]=c;return}mO(f,f+4|0,f+8|0,f+12|0,b-4|0,c);return}if((a|0)<=30){a=f+4|0;e=f+8|0;h=J[J[c>>2]+12>>2];k=J[f+8>>2];g=J[h+(k<<2)>>2];i=J[g+4>>2];l=J[f+4>>2];n=J[J[h+(l<<2)>>2]+4>>2];j=J[f>>2];m=J[h+(j<<2)>>2];l:{m:{if(n>>>0>=M[m+4>>2]){if(i>>>0>=n>>>0)break l;J[a>>2]=k;J[e>>2]=l;d=f;c=a;if(M[g+4>>2]>2])break m;break l}d=f;c=e;if(i>>>0>>0)break m;J[f+4>>2]=j;J[f>>2]=l;d=a;if(M[g+ 4>>2]>=M[m+4>>2])break l}J[d>>2]=k;J[c>>2]=j}c=f+12|0;if((c|0)==(b|0))break d;while(1){a=c;d=J[a>>2];k=J[h+(d<<2)>>2];g=J[e>>2];if(M[k+4>>2]>2]+4>>2]){while(1){n:{J[a>>2]=g;a=e;if((f|0)==(a|0)){a=f;break n}e=a-4|0;g=J[e>>2];if(M[k+4>>2]>2]+4>>2])continue}break}J[a>>2]=d}e=c;a=e+4|0;c=a;if((a|0)!=(b|0))continue;break}break d}if(!d){if((b|0)==(f|0))break d;h=c;d=b;if((b|0)!=(f|0)){b=b-f>>2;if((b|0)>=2){a=b-2>>>1|0;while(1){k=a;e=(a<<2)+f|0;o:{if((b|0)<2)break o;m=b-2>>>1| 0;a=e-f|0;if((m|0)>2)break o;a=a>>1;i=a+1|0;c=(i<<2)+f|0;g=J[c>>2];a=a+2|0;p:{if((a|0)>=(b|0)){j=J[J[h>>2]+12>>2];break p}o=a;j=J[J[h>>2]+12>>2];l=J[c+4>>2];a=M[J[j+(g<<2)>>2]+4>>2]>2]+4>>2];i=a?o:i;c=a?c+4|0:c;g=a?l:g}l=J[e>>2];n=J[(l<<2)+j>>2];if(M[J[(g<<2)+j>>2]+4>>2]>2])break o;while(1){q:{a=c;J[e>>2]=g;if((i|0)>(m|0))break q;e=i<<1;i=e|1;c=(i<<2)+f|0;g=J[c>>2];e=e+2|0;if((e|0)<(b|0)){o=e;p=J[c+4>>2];e=M[J[(g<<2)+j>>2]+4>>2]>2]+4>>2];i=e?o:i;g=e?p:g;c=e?c+ 4|0:c}e=a;if(M[J[(g<<2)+j>>2]+4>>2]>=M[n+4>>2])continue}break}J[a>>2]=l}a=k-1|0;if(k)continue;break}}if((b|0)>=2)while(1){k=b;m=b-2>>>1|0;i=J[h>>2];j=J[f>>2];c=0;e=f;while(1){l=c<<1;g=l|1;c=(c<<2)+e|0;a=c+4|0;b=J[a>>2];l=l+2|0;r:{if((l|0)>=(k|0)){c=g;break r}p=l;o=g;g=J[i+12>>2];l=c+8|0;n=J[l>>2];g=M[J[g+(b<<2)>>2]+4>>2]>2]+4>>2];c=g?p:o;a=g?l:a;b=g?n:b}J[e>>2]=b;e=a;if((c|0)<=(m|0))continue;break}d=d-4|0;s:{if((d|0)==(a|0)){J[a>>2]=j;break s}J[a>>2]=J[d>>2];J[d>>2]=j;b=(a-f|0)+4>>2; -if((b|0)<2)break s;i=J[i+12>>2];m=J[a>>2];j=J[i+(m<<2)>>2];c=b-2>>>1|0;b=(c<<2)+f|0;e=J[b>>2];if(M[J[i+(e<<2)>>2]+4>>2]>=M[j+4>>2])break s;while(1){t:{g=b;J[a>>2]=e;if(!c)break t;a=b;c=c-1>>>1|0;b=(c<<2)+f|0;e=J[b>>2];if(M[J[i+(e<<2)>>2]+4>>2]>2])continue}break}J[g>>2]=m}b=k-1|0;if((k|0)>2)continue;break}}return}i=(a<<1&-4)+f|0;u:{if(a>>>0>=1E3){a=a&-4;j=UM(f,a+f|0,i,a+i|0,k,c);a=J[J[c>>2]+12>>2];break u}a=J[J[c>>2]+12>>2];h=J[k>>2];g=J[J[a+(h<<2)>>2]+4>>2];m=J[i>>2];l=J[J[(m<<2)+a>>2]+4>> +if((b|0)<2)break s;i=J[i+12>>2];m=J[a>>2];j=J[i+(m<<2)>>2];c=b-2>>>1|0;b=(c<<2)+f|0;e=J[b>>2];if(M[J[i+(e<<2)>>2]+4>>2]>=M[j+4>>2])break s;while(1){t:{g=b;J[a>>2]=e;if(!c)break t;a=b;c=c-1>>>1|0;b=(c<<2)+f|0;e=J[b>>2];if(M[J[i+(e<<2)>>2]+4>>2]>2])continue}break}J[g>>2]=m}b=k-1|0;if((k|0)>2)continue;break}}return}i=(a<<1&-4)+f|0;u:{if(a>>>0>=1E3){a=a&-4;j=mO(f,a+f|0,i,a+i|0,k,c);a=J[J[c>>2]+12>>2];break u}a=J[J[c>>2]+12>>2];h=J[k>>2];g=J[J[a+(h<<2)>>2]+4>>2];m=J[i>>2];l=J[J[(m<<2)+a>>2]+4>> 2];e=J[f>>2];n=J[(e<<2)+a>>2];v:{if(l>>>0>=M[n+4>>2]){j=0;if(g>>>0>=l>>>0)break u;J[i>>2]=h;J[k>>2]=m;j=1;e=J[i>>2];h=J[f>>2];if(M[J[(e<<2)+a>>2]+4>>2]>=M[J[(h<<2)+a>>2]+4>>2])break u;J[f>>2]=e;J[i>>2]=h;break v}if(g>>>0>>0){J[f>>2]=h;J[k>>2]=e;j=1;break u}J[f>>2]=m;J[i>>2]=e;j=1;h=J[k>>2];if(M[J[(h<<2)+a>>2]+4>>2]>=M[n+4>>2])break u;J[i>>2]=h;J[k>>2]=e}j=2}d=d-1|0;e=k;g=J[f>>2];h=J[J[(g<<2)+a>>2]+4>>2];m=J[J[(J[i>>2]<<2)+a>>2]+4>>2];if(h>>>0>=m>>>0){while(1){e=e-4|0;if((e|0)==(f|0)){g=f+4|0;e= J[k>>2];if(h>>>0>2]+4>>2])break e;if((g|0)==(k|0))break d;while(1){i=J[g>>2];if(h>>>0>2]+4>>2]){J[g>>2]=e;J[k>>2]=i;g=g+4|0;break e}g=g+4|0;if((k|0)!=(g|0))continue;break}break d}l=J[e>>2];if(m>>>0<=M[J[(l<<2)+a>>2]+4>>2])continue;break}J[f>>2]=l;J[e>>2]=g;j=j+1|0}h=f+4|0;if(h>>>0>=e>>>0)break f;while(1){m=J[J[(J[i>>2]<<2)+a>>2]+4>>2];while(1){g=h;h=h+4|0;l=J[g>>2];if(m>>>0>M[J[(l<<2)+a>>2]+4>>2])continue;break}while(1){e=e-4|0;n=J[e>>2];if(m>>>0<=M[J[(n<<2)+a>>2]+4>>2])continue; -break}if(e>>>0>>0){h=g;break f}else{J[g>>2]=n;J[e>>2]=l;i=(g|0)==(i|0)?e:i;j=j+1|0;continue}}}TM(f,f+4|0,f+8|0,b-4|0,c);break d}w:{if((h|0)==(i|0))break w;e=J[i>>2];o=J[J[(e<<2)+a>>2]+4>>2];g=a;a=J[h>>2];if(o>>>0>=M[J[g+(a<<2)>>2]+4>>2])break w;J[h>>2]=e;J[i>>2]=a;j=j+1|0}if(!j){e=I7(f,h,c);a=h+4|0;if(I7(a,b,c)){a=f;b=h;if(!e)continue a;break d}if(e)continue b}if((h-f|0)<(b-h|0)){DD(f,h,c,d);a=h+4|0;continue b}DD(h+4|0,b,c,d);a=f;b=h;continue a}e=k;if((g|0)==(e|0))break d;while(1){i=J[J[(J[f>> -2]<<2)+a>>2]+4>>2];while(1){h=g;g=h+4|0;j=J[h>>2];if(i>>>0>=M[J[(j<<2)+a>>2]+4>>2])continue;break}while(1){e=e-4|0;m=J[e>>2];if(i>>>0>2]+4>>2])continue;break}if(e>>>0<=h>>>0){f=h;continue c}else{J[h>>2]=m;J[e>>2]=j;continue}}}break}break}break}}function t0(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=bc+-64|0;bc=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!J[a+28>>2]){b=rc(60);J[695492]=0;J[b+4>>2]=1;J[b>>2]=768E3;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[b>>2]=768176;J[b+24>> -2]=0;J[b+28>>2]=0;d=b+16|0;J[d>>2]=0;J[d+4>>2]=0;J[b+12>>2]=d;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[a+24>>2]=b;J[b+8>>2]=a;gc[J[J[a>>2]+8>>2]](a)|0;J[a+28>>2]=J[a+24>>2];break l}b=rc(60);J[695492]=0;J[b+4>>2]=1;J[b>>2]=768E3;d=J[695492];J[695492]=0;if((d|0)==1)break j;J[b>>2]=768176;J[b+24>>2]=0;J[b+28>>2]=0;d=b+16|0;J[d>>2]=0;J[d+4>>2]=0;J[b+12>>2]=d;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[c+ -16>>2]=b;J[b+8>>2]=a;gc[J[J[a>>2]+8>>2]](a)|0;b=J[a+28>>2];g=b+24|0;d=J[b+28>>2];j=c+16|0;m:{e=J[g+4>>2];f=J[g+8>>2];if(e>>>0>>0){if((d|0)==(e|0)){J[d>>2]=J[j>>2];J[g+4>>2]=d+4;break m}h=(e-d|0)-4|0;i=h>>2;b=e;f=b-4|0;if(b>>>0>f>>>0)while(1){J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;if(e>>>0>f>>>0)continue;break}J[g+4>>2]=b;Zc(e-(i<<2)|0,d,h);J[d>>2]=J[((d>>>0<=j>>>0&M[g+4>>2]>j>>>0)<<2)+j>>2];break m}n:{h=J[g>>2];b=(e-h>>2)+1|0;if(b>>>0<1073741824){e=f-h|0;f=e>>1;f=e>>>0>=2147483644?1073741823:b>>>0>> -0?f:b;if(f){if(f>>>0>=1073741824)break n;b=rc(f<<2)}else b=0;i=b+(f<<2)|0;k=d-h|0;l=k>>2;e=b+(l<<2)|0;o:{p:{if((f|0)!=(l|0))break p;if((k|0)>0){e=((l+1|0)/-2<<2)+e|0;break p}e=(d|0)==(h|0)?1:k>>1;if(e>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)==1)break o;B()}J[695492]=0;i=e<<2;f=$(4,i|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break o;i=f+i|0;e=f+(e&-4)|0;if(!b)break p;qc(b);h=J[g>>2]}J[e>>2]=J[j>>2];f=e;if((d|0)!=(h|0)){b=d;while(1){f=f-4|0;b=b-4|0;J[f>>2]=J[b>>2];if((b| -0)!=(h|0))continue;break}}b=J[g+4>>2]-d|0;d=Zc(e+4|0,d,b);J[g+8>>2]=i;J[g+4>>2]=b+d;b=J[g>>2];J[g>>2]=f;if(b)qc(b);break m}a=Z()|0;if(b)qc(b);break a}ph(g);B()}Sd();B()}J[a+28>>2]=J[c+16>>2]}b=J[a+12>>2];q:{if(!b){J[c+16>>2]=0;H[c+27|0]=0;break q}b=At(b);if(!b){J[c+16>>2]=0;H[c+27|0]=0;break q}mm(c+16|0,b,Qc(b))}b=J[a+28>>2];if(H[b+59|0]<0)qc(J[b+48>>2]);d=J[c+20>>2];J[b+48>>2]=J[c+16>>2];J[b+52>>2]=d;J[b+56>>2]=J[c+24>>2];b=rc(12);d=J[a+28>>2];J[b+4>>2]=a+32;J[b+8>>2]=d;d=J[a+32>>2];J[b>>2]=d;J[d+ -4>>2]=b;J[a+32>>2]=b;J[a+40>>2]=J[a+40>>2]+1;b=J[a+12>>2];if(!b)break e;d=M$(b);b=J[a+12>>2];if((d|0)<=0)break f;r:{s:{if(b){N$(b);b=J[a+12>>2];if(b)break s}H[c+51|0]=0;b=c+40|0;break r}e=At(b);if(!e){H[c+51|0]=0;b=c+40|0;break r}b=Qc(e);if(b>>>0>=2147483632)break i;t:{if(b>>>0<=10){H[c+51|0]=b;d=c+40|0;break t}f=(b|15)+1|0;d=rc(f);J[c+48>>2]=f|-2147483648;J[c+40>>2]=d;J[c+44>>2]=b}b=Zc(d,e,b)+b|0}H[b|0]=0;b=K[c+51|0];if(!(b<<24>>24<0?J[c+44>>2]:b))break h;u:{while(1){f=J[a+28>>2];b=J[a+12>>2];J[695492]= -0;e=$(3075,b|0)|0;b=J[695492];J[695492]=0;v:{w:{x:{y:{z:{A:{if((b|0)==1)break A;B:{if(!e){H[c+11|0]=0;b=c;break B}d=Qc(e);if(d>>>0>=2147483632){J[695492]=0;_(1623,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break z;break b}C:{if(d>>>0<=10){H[c+11|0]=d;b=c;break C}J[695492]=0;g=(d|15)+1|0;b=$(4,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break A;J[c>>2]=b;J[c+4>>2]=d;J[c+8>>2]=g|-2147483648}b=Zc(b,e,d)+d|0}H[b|0]=0;D:{if(H[c+51|0]>=0){J[c+24>>2]=J[c+48>>2];b=J[c+44>>2];J[c+16>>2]=J[c+40>>2];J[c+20>>2]= -b;break D}J[695492]=0;ca(2672,c+16|0,J[c+40>>2],J[c+44>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break y}b=J[c+4>>2];J[c+28>>2]=J[c>>2];J[c+32>>2]=b;J[c+36>>2]=J[c+8>>2];J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[695492]=0;b=c+16|0;ia(3087,c+56|0,f+12|0,b|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break x;if(H[c+39|0]<0)qc(J[c+28>>2]);if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+11|0]<0)qc(J[c>>2]);b=J[a+12>>2];if(!b)break g;J[695492]=0;b=xJ(b);d=J[695492];J[695492]=0;if((d|0)==1)break u;if((b|0)==1)break v;break h}a= -Z()|0;break c}a=Z()|0;break c}a=Z()|0;break w}a=Z()|0;s0(c+16|0)}if(H[c+11|0]>=0)break c;qc(J[c>>2]);break c}E:{b=J[a+12>>2];F:{if(!b){H[c+27|0]=0;b=c+16|0;break F}J[695492]=0;d=$(3089,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E;if(!d){H[c+27|0]=0;b=c+16|0;break F}b=Qc(d);if(b>>>0>=2147483632){J[695492]=0;_(1623,c+16|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;break c}G:{if(b>>>0<=10){H[c+27|0]=b;e=c+16|0;break G}J[695492]=0;f=(b|15)+1|0;e=$(4,f|0)|0;g=J[695492];J[695492]=0;if((g| -0)==1)break E;J[c+16>>2]=e;J[c+20>>2]=b;J[c+24>>2]=f|-2147483648}b=Zc(e,d,b)+b|0}H[b|0]=0;if(H[c+51|0]<0)qc(J[c+40>>2]);J[c+48>>2]=J[c+24>>2];b=J[c+20>>2];J[c+40>>2]=J[c+16>>2];J[c+44>>2]=b;b=H[c+51|0];if((b|0)<0?J[c+44>>2]:b&255)continue;break h}break}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;qc(b);break a}a=Z()|0;qc(b);break a}Id(c+40|0);B()}b=J[a+12>>2];if(!b)break g;J[695492]=0;wJ(b);b=J[695492];J[695492]=0;if((b|0)==1)break d}if(H[c+51|0]<0)qc(J[c+40>>2]);b=J[a+12>>2]}if(!b)break e;if(!Zq(b))break e; -b=J[a+32>>2];d=J[b>>2];e=J[b+4>>2];J[d+4>>2]=e;J[e>>2]=d;J[a+40>>2]=J[a+40>>2]-1;qc(b);J[a+28>>2]=J[(J[a+40>>2]?J[a+32>>2]+8|0:a+24|0)>>2]}bc=c- -64|0;return}a=Z()|0}if(H[c+51|0]>=0)break a;qc(J[c+40>>2]);break a}B()}ba(a|0);B()}function fB(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,w=0,y=0,A=0,C=0;d=bc+-64|0;bc=d;a:{b:{c:{if(!K[a+200|0])break c;c=J[a+104>>2];J[d+32>>2]=64;f=d+32|0;gc[J[J[c>>2]+308>>2]](c,f)|0;c=J[a+104>>2];J[d+32>>2]=64;gc[J[J[c>>2]+ -312>>2]](c,f)|0;if(!J[a+196>>2])break c;u=b+16|0;d:{e:{f:while(1){c=0;while(1){f=J[a+192>>2]+j|0;e=(f>>>0)/93|0;f=J[J[a+180>>2]+(e<<2)>>2]+P(f-P(e,93)|0,44)|0;e=J[f+12>>2];if(J[f+16>>2]-e>>2>>>0<=c>>>0)g:{r=J[J[f+40>>2]+8>>2];if((r|0)>0){c=J[a+104>>2];J[d+32>>2]=32;f=d+32|0;gc[J[J[c>>2]+308>>2]](c,f)|0;c=J[a+104>>2];i=0;J[d+32>>2]=0;gc[J[J[c>>2]+412>>2]](c,f)|0;c=J[a+104>>2];gc[J[J[c>>2]+428>>2]](c)|0;while(1){J[d+48>>2]=0;J[d+52>>2]=1076101120;m=0;n=0;o=0;p=0;f=0;c=J[a+192>>2]+j|0;e=(c>>>0)/93|0; -c=J[(J[J[a+180>>2]+(e<<2)>>2]+P(c-P(e,93)|0,44)|0)+40>>2];if(J[c+8>>2]>(i|0)){c=J[c>>2]+(i<<6)|0;s=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);t=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);f=K[c+52|0]|K[c+53|0]<<8|(K[c+54|0]<<16|K[c+55|0]<<24);e=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24);x(0,e|0);x(1,f|0);p=+z();f=K[c+44|0]|K[c+45|0]<<8|(K[c+46|0]<<16|K[c+47|0]<<24);e=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);x(0,e|0);x(1,f|0);o=+z();f=K[c+36|0]|K[c+37|0]<<8|(K[c+38|0]<< -16|K[c+39|0]<<24);e=K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24);x(0,e|0);x(1,f|0);n=+z();f=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);e=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);x(0,e|0);x(1,f|0);m=+z();f=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);e=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);x(0,e|0);x(1,f|0);y=d,A=+z(),O[y+48>>3]=A;v=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);f=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24)}h=J[a+104>> -2];e=Ve(t);if(e>>>0>=1073741808)break g;h:{if(e>>>0<=1){H[d+43|0]=e;c=d+32|0;break h}c=e|3;if(c>>>0>=1073741823)break e;g=c+1|0;c=rc(g<<2);J[d+40>>2]=g|-2147483648;J[d+32>>2]=c;J[d+36>>2]=e}g=c;c=e<<2;y=Zc(g,t,c)+c|0,C=0,J[y>>2]=C;c=J[J[h>>2]+236>>2];J[695492]=0;aa(c|0,h|0,d+32|0)|0;c=J[695492];J[695492]=0;i:{j:{k:{l:{if((c|0)!=1){if(H[d+43|0]<0)qc(J[d+32>>2]);h=J[a+104>>2];e=Ve(s);if(e>>>0>=1073741808)break d;m:{if(e>>>0<=1){H[d+43|0]=e;c=d+32|0;break m}c=e|3;if(c>>>0>=1073741823)break e;g=c+1|0; -c=rc(g<<2);J[d+40>>2]=g|-2147483648;J[d+32>>2]=c;J[d+36>>2]=e}g=c;c=e<<2;y=Zc(g,s,c)+c|0,C=0,J[y>>2]=C;c=J[J[h>>2]+244>>2];J[695492]=0;aa(c|0,h|0,d+32|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;if(H[d+43|0]<0)qc(J[d+32>>2]);c=J[a+104>>2];gc[J[J[c>>2]+252>>2]](c,d+48|0)|0;c=J[a+104>>2];J[d+32>>2]=v;h=d+32|0;gc[J[J[c>>2]+260>>2]](c,h)|0;e=J[a+104>>2];c=J[a+192>>2]+j|0;g=(c>>>0)/93|0;c=J[(J[J[a+180>>2]+(g<<2)>>2]+P(c-P(g,93)|0,44)|0)+40>>2];c=J[c+8>>2]>(i|0)?J[c+4>>2]+P(i,48)|0:0;O[d+32>>3]=O[c+ -32>>3]/72*25.4;O[d+56>>3]=O[c+40>>3]/72*25.4;gc[J[J[e>>2]+396>>2]](e,c,c+8|0,c+16|0,c+24|0,h,d+56|0)|0;O[a+112>>3]=O[c>>3];O[a+120>>3]=O[c+8>>3];O[a+128>>3]=O[c+16>>3];O[a+136>>3]=O[c+24>>3];O[a+144>>3]=O[c+32>>3];O[a+152>>3]=O[c+40>>3];c=f;if(!c)break i;while(1){e=c;c=c+4|0;if(J[e>>2])continue;break}c=e-f|0;h=c>>2;switch(h|0){case 0:break i;case 1:break j;default:break k}}c=Z()|0;if(H[d+43|0]>=0)break b;qc(J[d+32>>2]);break b}c=Z()|0;if(H[d+43|0]>=0)break b;break a}e=rc(h>>>0>1073741823?-1:c);n:{if((h| -0)<=0)break n;q=0;c=0;if(h>>>0>=4){w=h&-4;k=0;while(1){g=c<<2;J[g+e>>2]=J[f+g>>2];l=g|4;J[l+e>>2]=J[f+l>>2];l=g|8;J[l+e>>2]=J[f+l>>2];g=g|12;J[g+e>>2]=J[f+g>>2];c=c+4|0;k=k+4|0;if((w|0)!=(k|0))continue;break}}g=h&3;if(!g)break n;while(1){k=c<<2;J[k+e>>2]=J[f+k>>2];c=c+1|0;q=q+1|0;if((g|0)!=(q|0))continue;break}}c=J[a+104>>2];J[d+32>>2]=0;H[d+43|0]=0;O[d+56>>3]=m/72*25.4;O[d+16>>3]=n/72*25.4;O[d+8>>3]=o/72*25.4;O[d>>3]=p/72*25.4;f=J[J[c>>2]+372>>2];J[695492]=0;za(f|0,c|0,d+32|0,e|0,h|0,d+56|0,d+16| -0,d+8|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){if(H[d+43|0]<0)qc(J[d+32>>2]);qc(e);break i}c=Z()|0;if(H[d+43|0]>=0)break b;break a}c=J[a+104>>2];J[d>>2]=0;J[d+28>>2]=J[f>>2];O[d+32>>3]=m/72*25.4;O[d+56>>3]=n/72*25.4;O[d+16>>3]=o/72*25.4;O[d+8>>3]=p/72*25.4;gc[J[J[c>>2]+368>>2]](c,d,d+28|0,d+32|0,d+56|0,d+16|0,d+8|0)|0}i=i+1|0;if((r|0)!=(i|0))continue;break}c=J[a+104>>2];J[d+32>>2]=4;gc[J[J[c>>2]+312>>2]](c,d+32|0)|0;c=J[a+104>>2];J[d+32>>2]=32;gc[J[J[c>>2]+312>>2]](c,d+32|0)|0;c=J[a+104>>2]; -gc[J[J[c>>2]+344>>2]](c)|0;c=J[a+104>>2];gc[J[J[c>>2]+432>>2]](c)|0}j=j+1|0;if(j>>>0>2])continue f;H[a+200|0]=0;gc[J[J[a>>2]+156>>2]](a,b);break c}else{i=J[J[f+24>>2]+(c>>>3&536870908)>>2];h=J[e+(c<<2)>>2];e=J[a+104>>2];J[d+32>>2]=32;f=d+32|0;gc[J[J[e>>2]+308>>2]](e,f)|0;e=J[a+104>>2];J[d+32>>2]=i>>>c&1;gc[J[J[e>>2]+412>>2]](e,f)|0;e=J[a+192>>2]+j|0;i=(e>>>0)/93|0;uk(a,h,O[b+104>>3],u,J[J[J[a+180>>2]+(i<<2)>>2]+P(e-P(i,93)|0,44)>>2]+P(c,48)|0);e=J[a+104>>2];J[d+32>>2]=4;gc[J[J[e>>2]+312>> -2]](e,f)|0;e=J[a+104>>2];J[d+32>>2]=32;gc[J[J[e>>2]+312>>2]](e,f)|0;f=J[a+104>>2];gc[J[J[f>>2]+344>>2]](f)|0;c=c+1|0;continue}break}break}Id(d+32|0);B()}Sd();B()}Id(d+32|0);B()}bc=d- -64|0;return}ba(c|0);B()}qc(J[d+32>>2]);ba(c|0);B()}function bK(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,w=0;m=bc-32|0;k=J[b>>2];c=J[b+8>>2];d=J[c>>2];l=J[c+12>>2];J[a+5200>>2]=0;J[a+5204>>2]=573;q=-1;c=0;a:{if((l|0)>0){while(1){e=(c<<2)+k|0;b:{if(L[e>>1]){e=J[a+5200>>2]+ -1|0;J[a+5200>>2]=e;J[((e<<2)+a|0)+2908>>2]=c;H[(a+c|0)+5208|0]=0;q=c;break b}I[e+2>>1]=0}c=c+1|0;if((l|0)!=(c|0))continue;break}c=J[a+5200>>2];if((c|0)>1)break a}while(1){c=c+1|0;J[a+5200>>2]=c;h=((c<<2)+a|0)+2908|0;e=q+1|0;f=(q|0)<2;c=f?e:0;J[h>>2]=c;h=c<<2;I[h+k>>1]=1;H[(a+c|0)+5208|0]=0;J[a+5800>>2]=J[a+5800>>2]-1;if(d)J[a+5804>>2]=J[a+5804>>2]-L[(d+h|0)+2>>1];q=f?e:q;c=J[a+5200>>2];if((c|0)<2)continue;break}}J[b+4>>2]=q;c=c>>>1|0;while(1){h=c;g=J[((c<<2)+a|0)+2908>>2];d=c<<1;f=J[a+5200>>2];c:{if((d| -0)>(f|0))break c;i=(a+g|0)+5208|0;n=(g<<2)+k|0;e=c;while(1){d:{if((d|0)>=(f|0)){c=d;break d}c=a+2908|0;f=d|1;j=J[c+(f<<2)>>2];p=L[(j<<2)+k>>1];o=J[c+(d<<2)>>2];c=L[(o<<2)+k>>1];if(p>>>0>=c>>>0){if((c|0)!=(p|0)){c=d;break d}c=d;d=a+5208|0;if(K[d+j|0]>K[d+o|0])break d}c=f}f=L[n>>1];d=J[((c<<2)+a|0)+2908>>2];j=L[(d<<2)+k>>1];if(f>>>0>>0){c=e;break c}if(!((f|0)!=(j|0)|K[i|0]>K[(a+d|0)+5208|0])){c=e;break c}J[((e<<2)+a|0)+2908>>2]=d;e=c;d=c<<1;f=J[a+5200>>2];if((d|0)<=(f|0))continue;break}}J[((c<<2)+ -a|0)+2908>>2]=g;c=h-1|0;if((h|0)>1)continue;break}d=J[a+5200>>2];while(1){h=l;f=d-1|0;J[a+5200>>2]=f;i=J[a+2912>>2];g=J[((d<<2)+a|0)+2908>>2];J[a+2912>>2]=g;c=1;e:{if((d|0)<3)break e;l=(a+g|0)+5208|0;d=2;n=(g<<2)+k|0;e=1;while(1){f:{if((d|0)>=(f|0)){c=d;break f}c=a+2908|0;f=d|1;j=J[c+(f<<2)>>2];p=L[(j<<2)+k>>1];o=J[c+(d<<2)>>2];c=L[(o<<2)+k>>1];if(p>>>0>=c>>>0){if((c|0)!=(p|0)){c=d;break f}c=d;d=a+5208|0;if(K[d+j|0]>K[d+o|0])break f}c=f}f=L[n>>1];d=J[((c<<2)+a|0)+2908>>2];j=L[(d<<2)+k>>1];if(f>>> -0>>0){c=e;break e}if(!((f|0)!=(j|0)|K[l|0]>K[(a+d|0)+5208|0])){c=e;break e}J[((e<<2)+a|0)+2908>>2]=d;e=c;d=c<<1;f=J[a+5200>>2];if((d|0)<=(f|0))continue;break}}d=2;l=a+2908|0;J[l+(c<<2)>>2]=g;e=J[a+5204>>2]-1|0;J[a+5204>>2]=e;c=J[a+2912>>2];J[l+(e<<2)>>2]=i;e=J[a+5204>>2]-1|0;J[a+5204>>2]=e;J[l+(e<<2)>>2]=c;n=(h<<2)+k|0;e=(c<<2)+k|0;f=(i<<2)+k|0;I[n>>1]=L[e>>1]+L[f>>1];g=a+5208|0;j=g+h|0;i=K[g+i|0];c=K[c+g|0];H[j|0]=(c>>>0>>0?i:c)+1;I[e+2>>1]=h;I[f+2>>1]=h;J[a+2912>>2]=h;f=1;c=1;e=J[a+5200>> -2];g:{if((e|0)<2)break g;while(1){h:{if((d|0)>=(e|0))break h;c=d|1;e=J[l+(c<<2)>>2];i=L[(e<<2)+k>>1];p=J[l+(d<<2)>>2];o=L[(p<<2)+k>>1];if(i>>>0>=o>>>0)if((i|0)!=(o|0)|K[e+g|0]>K[g+p|0])break h;d=c}e=L[n>>1];c=d;d=J[((c<<2)+a|0)+2908>>2];i=L[(d<<2)+k>>1];if(e>>>0>>0){c=f;break g}if(!((e|0)!=(i|0)|K[j|0]>K[(a+d|0)+5208|0])){c=f;break g}J[((f<<2)+a|0)+2908>>2]=d;f=c;d=c<<1;e=J[a+5200>>2];if((d|0)<=(e|0))continue;break}}l=h+1|0;J[((c<<2)+a|0)+2908>>2]=h;d=J[a+5200>>2];if((d|0)>1)continue;break}c=J[a+ -5204>>2]-1|0;J[a+5204>>2]=c;e=a+2908|0;J[e+(c<<2)>>2]=J[a+2912>>2];f=J[b+4>>2];c=J[b+8>>2];d=J[c+16>>2];i=J[c+8>>2];w=J[c+4>>2];n=J[c>>2];h=J[b>>2];r=a+2900|0;b=r;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;s=a+2892|0;b=s;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;t=a+2884|0;b=t;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;u=a+2876|0;b=u;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;l=0;I[(h+(J[e+(J[a+5204>>2]<<2)>>2]<<2)|0)+2>>1]=0;b=J[a+5204>>2];i:{if((b|0)>571)break i;c=b+1|0;e=0;while(1){b= -J[((c<<2)+a|0)+2908>>2];v=b<<2;j=h+v|0;g=L[(h+(L[j+2>>1]<<2)|0)+2>>1];p=(g|0)>=(d|0);o=p?d:g+1|0;I[j+2>>1]=o;j:{if((b|0)>(f|0))break j;g=((o<<1)+a|0)+2876|0;I[g>>1]=L[g>>1]+1;g=0;g=(b|0)>=(i|0)?J[w+(b-i<<2)>>2]:g;b=L[j>>1];J[a+5800>>2]=J[a+5800>>2]+P(o+g|0,b);if(!n)break j;J[a+5804>>2]=J[a+5804>>2]+P(b,L[(n+v|0)+2>>1]+g|0)}e=e+p|0;c=c+1|0;if((c|0)!=573)continue;break}if(!e)break i;g=((d<<1)+a|0)+2876|0;while(1){c=d;while(1){b=c;c=b-1|0;i=((c<<1)+a|0)+2876|0;n=L[i>>1];if(!n)continue;break}I[i>>1]= -n-1;b=((b<<1)+a|0)+2876|0;I[b>>1]=L[b>>1]+2;I[g>>1]=L[g>>1]-1;b=(e|0)>2;e=e-2|0;if(b)continue;break}if(!d)break i;c=573;while(1){e=L[((d<<1)+a|0)+2876>>1];if(e)while(1){c=c-1|0;b=J[((c<<2)+a|0)+2908>>2];if((b|0)>(f|0))continue;b=h+(b<<2)|0;g=L[b+2>>1];if((g|0)!=(d|0)){J[a+5800>>2]=J[a+5800>>2]+P(L[b>>1],d-g|0);I[b+2>>1]=d}e=e-1|0;if(e)continue;break}d=d-1|0;if(d)continue;break}}b=L[u>>1]<<1;I[m+2>>1]=b;b=b+L[a+2878>>1]<<1;I[m+4>>1]=b;b=b+L[a+2880>>1]<<1;I[m+6>>1]=b;b=b+L[a+2882>>1]<<1;I[m+8>>1]=b; -b=b+L[t>>1]<<1;I[m+10>>1]=b;b=b+L[a+2886>>1]<<1;I[m+12>>1]=b;b=b+L[a+2888>>1]<<1;I[m+14>>1]=b;b=b+L[a+2890>>1]<<1;I[m+16>>1]=b;b=b+L[s>>1]<<1;I[m+18>>1]=b;b=b+L[a+2894>>1]<<1;I[m+20>>1]=b;b=b+L[a+2896>>1]<<1;I[m+22>>1]=b;b=b+L[a+2898>>1]<<1;I[m+24>>1]=b;b=b+L[r>>1]<<1;I[m+26>>1]=b;b=b+L[a+2902>>1]<<1;I[m+28>>1]=b;I[m+30>>1]=b+L[a+2904>>1]<<1;if((q|0)>=0)while(1){h=(l<<2)+k|0;a=L[h+2>>1];if(a){b=(a<<1)+m|0;c=L[b>>1];I[b>>1]=c+1;b=a&3;d=0;k:{if(a>>>0<4){a=0;break k}g=a&65532;a=0;e=0;while(1){f=c>>> -3&1|(c>>>2&1|(c&2|(c&1|a)<<2))<<1;a=f<<1;c=c>>>4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}if(b)while(1){f=c&1|a;a=f<<1;c=c>>>1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}I[h>>1]=f}a=(l|0)!=(q|0);l=l+1|0;if(a)continue;break}}function JHa(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=Q(0),n=0,o=0;j=bc-48|0;bc=j;a:{b:{c:{d:{e:{if(b){if(!a)break e;if(!c)break d;J[a+8>>2]=1;d=j+40|0;f:{if((fi(b,d,2,c)|0)!=2)break f;ld(d,j+44|0,2);if(J[j+44>>2]!=65359)break f;J[a+8>>2]=2;d=J[b+56>>2]; -f=d-2|0;d=J[b+60>>2]-(d>>>0<2)|0;e=J[a+188>>2];J[e>>2]=f;J[e+4>>2]=d;J[j+16>>2]=f;J[j+20>>2]=d;Hc(c,4,2352414,j+16|0);i=J[a+188>>2];f=J[i>>2];g=J[i+24>>2];d=g+1|0;e=J[i+32>>2];if(d>>>0<=e>>>0){e=J[i+28>>2];break c}m=Q(Q(e>>>0)+Q(100));g:{if(m=Q(0)){d=~~m>>>0;break g}d=0}J[i+32>>2]=d;e=Tg(J[i+28>>2],P(d,24));if(e){J[i+28>>2]=e;g=J[i+24>>2];d=g+1|0;break c}qc(J[i+28>>2]);J[i+32>>2]=0;J[i+24>>2]=0;J[i+28>>2]=0;Hc(c,1,2352173,0)}Hc(c,1,2351963,0);a=0;break b}fa(2346550,2346358,8677,2351933); -B()}fa(2346477,2346358,8678,2351933);B()}fa(2346590,2346358,8679,2351933);B()}e=P(g,24)+e|0;J[e+16>>2]=2;J[e+8>>2]=f;J[e+12>>2]=f>>31;I[e>>1]=65359;J[i+24>>2]=d;if((fi(b,J[a+16>>2],2,c)|0)!=2){Hc(c,1,2346745,0);a=0;break b}ld(J[a+16>>2],j+40|0,2);h:{i:{e=J[j+40>>2];if((e|0)!=65424){while(1){g=2352768;if(e>>>0<=65279){J[j>>2]=e;Hc(c,1,2351987,j);a=0;break b}while(1){d=g;f=J[d>>2];if(f){g=d+12|0;if((e|0)!=(f|0))continue}break}j:{k:{if(f)break k;k=2;Hc(c,2,2352453,0);g=2346745;l:{m:{if((fi(b,J[a+16>> -2],2,c)|0)!=2)break m;while(1){ld(J[a+16>>2],j+44|0,2);f=2352768;e=J[j+44>>2];if(e>>>0>=65280){while(1){d=f;l=J[d>>2];if(l){f=d+12|0;if((e|0)!=(l|0))continue}break}if(!(J[d+4>>2]&J[a+8>>2])){g=2346855;break m}if(l){if((l|0)==65424){J[j+40>>2]=65424;break j}i=J[b+56>>2];f=J[a+188>>2];if(!f)break a;d=J[f+24>>2];e=d+1|0;g=J[f+32>>2];if(e>>>0<=g>>>0){g=J[f+28>>2];break l}m=Q(Q(g>>>0)+Q(100));n:{if(m=Q(0)){d=~~m>>>0;break n}d=0}J[f+32>>2]=d;g=Tg(J[f+28>>2],P(d,24));if(g){J[f+28>>2]=g; -d=J[f+24>>2];e=d+1|0;break l}qc(J[f+28>>2]);J[f+32>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;g=2352173;break m}k=k+2|0}if((fi(b,J[a+16>>2],2,c)|0)==2)continue;break}}Hc(c,1,g,0);Hc(c,1,2352038,0);a=0;break b}d=P(d,24)+g|0;J[d+16>>2]=k;g=i-k|0;J[d+8>>2]=g;J[d+12>>2]=g>>31;I[d>>1]=0;J[f+24>>2]=e;J[j+40>>2]=l;e=2352768;while(1){d=e;f=J[d>>2];if(!f)break k;e=d+12|0;if((f|0)!=(l|0))continue;break}}if(!(J[d+4>>2]&J[a+8>>2])){Hc(c,1,2346855,0);a=0;break b}if((fi(b,J[a+16>>2],2,c)|0)!=2){Hc(c,1,2346745,0);a=0;break b}ld(J[a+ -16>>2],j+36|0,2);e=J[j+36>>2];if(e>>>0<=1){Hc(c,1,2352093,0);a=0;break b}g=e-2|0;J[j+36>>2]=g;e=J[a+16>>2];if(M[a+20>>2]>>0){e=Tg(e,g);if(!e){qc(J[a+16>>2]);J[a+16>>2]=0;J[a+20>>2]=0;Hc(c,1,2347020,0);a=0;break b}J[a+16>>2]=e;g=J[j+36>>2];J[a+20>>2]=g}e=fi(b,e,g,c);if((e|0)!=J[j+36>>2]){Hc(c,1,2346745,0);a=0;break b}if(!(gc[J[d+8>>2]](a,J[a+16>>2],e,c)|0)){Hc(c,1,2352114,0);a=0;break b}i=J[b+56>>2];d=J[a+188>>2];if(!d)break a;l=J[j+36>>2];e=J[d+24>>2];k=e+1|0;g=J[d+32>>2];o:{if(k>>>0<=g>>>0){g= -J[d+28>>2];break o}m=Q(Q(g>>>0)+Q(100));p:{if(m=Q(0)){e=~~m>>>0;break p}e=0}J[d+32>>2]=e;g=Tg(J[d+28>>2],P(e,24));if(!g)break h;J[d+28>>2]=g;e=J[d+24>>2];k=e+1|0}e=P(e,24)+g|0;J[e+16>>2]=l+4;g=(i-l|0)-4|0;J[e+8>>2]=g;J[e+12>>2]=g>>31;I[e>>1]=f;J[d+24>>2]=k;if((fi(b,J[a+16>>2],2,c)|0)!=2){Hc(c,1,2346745,0);a=0;break b}o=(f|0)==65372?1:o;h=(f|0)==65362?1:h;n=(f|0)==65361?1:n;ld(J[a+16>>2],j+40|0,2);e=J[j+40>>2];if((e|0)!=65424)continue}break}if(n)break i}Hc(c,1,2352209,0);a=0;break b}if(!h){Hc(c, -1,2352255,0);a=0;break b}if(!o){Hc(c,1,2352301,0);a=0;break b}f=0;k=0;n=0;i=bc-16|0;bc=i;q:{r:{s:{t:{if(a+80|0){if(J[a+136>>2])break t;o=1;if(!(H[a+176|0]&1))break q;e=J[a+112>>2];if(!e)break r;while(1){d=J[a+116>>2]+(n<<3)|0;h=J[d>>2];if(h){g=J[d+4>>2];d=f-g|0;d=d>>>0<=f>>>0?d:0;if(f>>>0>>0){e=g-f|0;g=f+h|0;while(1){if(e>>>0<4)break s;ld(g,i+12|0,4);f=J[i+12>>2];h=e-4|0;l=f>>>0>h>>>0;d=l?f-h|0:d;e=h-f|0;k=f+k|0;g=((l?0:f)+g|0)+4|0;if(f>>>0>>0)continue;break}e=J[a+112>>2]}f=d}n=n+1|0;if(n>>> -0>>0)continue;break}if(!f)break r;o=0;Hc(c,1,2352592,0);break q}fa(2352507,2346358,3893,2352518);B()}fa(2352536,2346358,3895,2352518);B()}o=0;Hc(c,1,2352561,0);break q}f=_e(k);J[a+136>>2]=f;if(!f){o=0;Hc(c,1,2352615,0);break q}J[a+124>>2]=k;h=J[a+116>>2];u:{d=J[a+112>>2];if(d){e=0;f=0;k=0;while(1){n=k<<3;l=n+h|0;g=J[l>>2];if(g){h=J[a+136>>2]+f|0;d=J[l+4>>2];v:{if(d>>>0<=e>>>0){tc(h,g,d);f=d+f|0;e=e-d|0;break v}tc(h,g,e);f=e+f|0;h=d-e|0;if(h){e=e+g|0;while(1){if(h>>>0<4)break u;ld(e,i+8|0,4);e= -e+4|0;g=J[a+136>>2]+f|0;d=h-4|0;h=J[i+8>>2];if(d>>>0>>0){tc(g,e,d);f=d+f|0;e=J[i+8>>2]-d|0;break v}tc(g,e,h);g=J[i+8>>2];f=g+f|0;e=e+g|0;h=d-g|0;if(h)continue;break}}e=0}qc(J[n+J[a+116>>2]>>2]);h=J[a+116>>2];d=n+h|0;J[d>>2]=0;J[d+4>>2]=0;d=J[a+112>>2]}k=k+1|0;if(k>>>0>>0)continue;break}k=J[a+124>>2];f=J[a+136>>2]}J[a+144>>2]=k;J[a+120>>2]=f;J[a+112>>2]=0;qc(h);J[a+116>>2]=0;break q}o=0;Hc(c,1,2352561,0)}bc=i+16|0;if(!o){Hc(c,1,2352347,0);a=0;break b}Hc(c,4,2352373,0);c=J[a+188>>2];d=J[b+56>> -2];d=d-2|0;J[c+8>>2]=d;J[c+12>>2]=0;J[a+8>>2]=8;a=1;break b}qc(J[d+28>>2]);J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;Hc(c,1,2352173,0);a=0}bc=j+48|0;return a|0}fa(2352469,2346358,8163,2352486);B()}function _8(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=bc-(((b<<3)+8&1073741808)<<2)|0;l=(b-d|0)+1>>1;a:{if((l|0)<=0)break a;k=l;f=a;e=g;m=l&3;if(m){j=c<<2;while(1){i=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=i;i=J[f+60>>2];J[e+56>>2]=J[f+56>>2];J[e+60>>2]=i;i=J[f+52>>2];J[e+48>>2]=J[f+48>>2];J[e+52>>2]= -i;i=J[f+44>>2];J[e+40>>2]=J[f+40>>2];J[e+44>>2]=i;i=J[f+36>>2];J[e+32>>2]=J[f+32>>2];J[e+36>>2]=i;i=J[f+28>>2];J[e+24>>2]=J[f+24>>2];J[e+28>>2]=i;i=J[f+20>>2];J[e+16>>2]=J[f+16>>2];J[e+20>>2]=i;i=J[f+12>>2];J[e+8>>2]=J[f+8>>2];J[e+12>>2]=i;e=e- -64|0;k=k-1|0;f=f+j|0;h=h+1|0;if((m|0)!=(h|0))continue;break}}if(l>>>0<4)break a;i=c<<2;while(1){h=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=h;h=J[f+60>>2];J[e+56>>2]=J[f+56>>2];J[e+60>>2]=h;h=J[f+52>>2];J[e+48>>2]=J[f+48>>2];J[e+52>>2]=h;h=J[f+44>>2];J[e+40>>2]= -J[f+40>>2];J[e+44>>2]=h;h=J[f+36>>2];J[e+32>>2]=J[f+32>>2];J[e+36>>2]=h;h=J[f+28>>2];J[e+24>>2]=J[f+24>>2];J[e+28>>2]=h;h=J[f+20>>2];J[e+16>>2]=J[f+16>>2];J[e+20>>2]=h;h=J[f+12>>2];J[e+8>>2]=J[f+8>>2];J[e+12>>2]=h;j=f+i|0;f=J[j+4>>2];h=e- -64|0;J[h>>2]=J[j>>2];J[h+4>>2]=f;f=J[j+12>>2];J[e+72>>2]=J[j+8>>2];J[e+76>>2]=f;f=J[j+20>>2];J[e+80>>2]=J[j+16>>2];J[e+84>>2]=f;f=J[j+28>>2];J[e+88>>2]=J[j+24>>2];J[e+92>>2]=f;f=J[j+36>>2];J[e+96>>2]=J[j+32>>2];J[e+100>>2]=f;f=J[j+44>>2];J[e+104>>2]=J[j+40>>2]; -J[e+108>>2]=f;f=J[j+52>>2];J[e+112>>2]=J[j+48>>2];J[e+116>>2]=f;f=J[j+60>>2];J[e+120>>2]=J[j+56>>2];J[e+124>>2]=f;h=i+j|0;f=J[h+4>>2];J[e+128>>2]=J[h>>2];J[e+132>>2]=f;f=J[h+12>>2];J[e+136>>2]=J[h+8>>2];J[e+140>>2]=f;f=J[h+20>>2];J[e+144>>2]=J[h+16>>2];J[e+148>>2]=f;f=J[h+28>>2];J[e+152>>2]=J[h+24>>2];J[e+156>>2]=f;f=J[h+36>>2];J[e+160>>2]=J[h+32>>2];J[e+164>>2]=f;f=J[h+44>>2];J[e+168>>2]=J[h+40>>2];J[e+172>>2]=f;f=J[h+52>>2];J[e+176>>2]=J[h+48>>2];J[e+180>>2]=f;f=J[h+60>>2];J[e+184>>2]=J[h+56>>2]; -J[e+188>>2]=f;h=h+i|0;f=J[h+60>>2];J[e+248>>2]=J[h+56>>2];J[e+252>>2]=f;f=J[h+52>>2];J[e+240>>2]=J[h+48>>2];J[e+244>>2]=f;f=J[h+44>>2];J[e+232>>2]=J[h+40>>2];J[e+236>>2]=f;f=J[h+36>>2];J[e+224>>2]=J[h+32>>2];J[e+228>>2]=f;f=J[h+28>>2];J[e+216>>2]=J[h+24>>2];J[e+220>>2]=f;f=J[h+20>>2];J[e+208>>2]=J[h+16>>2];J[e+212>>2]=f;f=J[h+12>>2];J[e+200>>2]=J[h+8>>2];J[e+204>>2]=f;f=J[h+4>>2];J[e+192>>2]=J[h>>2];J[e+196>>2]=f;f=h+i|0;e=e+256|0;h=k-5|0;k=k-4|0;if(h>>>0<4294967294)continue;break}}k=b-l|0;if((k| -0)>0){e=(P(c,l)<<2)+a|0;f=(P(1-d|0,c)<<2)+a|0;h=c<<3;while(1){J[f>>2]=J[e>>2];J[f+4>>2]=J[e+4>>2];J[f+8>>2]=J[e+8>>2];J[f+12>>2]=J[e+12>>2];J[f+16>>2]=J[e+16>>2];J[f+20>>2]=J[e+20>>2];J[f+24>>2]=J[e+24>>2];J[f+28>>2]=J[e+28>>2];J[f+32>>2]=J[e+32>>2];J[f+36>>2]=J[e+36>>2];J[f+40>>2]=J[e+40>>2];J[f+44>>2]=J[e+44>>2];J[f+48>>2]=J[e+48>>2];J[f+52>>2]=J[e+52>>2];J[f+56>>2]=J[e+56>>2];J[f+60>>2]=J[e+60>>2];e=(c<<2)+e|0;f=f+h|0;b=k>>>0>1;k=k-1|0;if(b)continue;break}}b:{if((l|0)<=0)break b;h=c<<1;e=(P(c, -d)<<2)+a|0;c=l&3;c:{if(!c){f=l;break c}k=0;b=h<<2;f=l;while(1){a=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=a;a=J[g+60>>2];J[e+56>>2]=J[g+56>>2];J[e+60>>2]=a;a=J[g+52>>2];J[e+48>>2]=J[g+48>>2];J[e+52>>2]=a;a=J[g+44>>2];J[e+40>>2]=J[g+40>>2];J[e+44>>2]=a;a=J[g+36>>2];J[e+32>>2]=J[g+32>>2];J[e+36>>2]=a;a=J[g+28>>2];J[e+24>>2]=J[g+24>>2];J[e+28>>2]=a;a=J[g+20>>2];J[e+16>>2]=J[g+16>>2];J[e+20>>2]=a;a=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=a;g=g- -64|0;f=f-1|0;e=b+e|0;k=k+1|0;if((c|0)!=(k|0))continue;break}}if(l>>> -0<4)break b;c=h<<2;while(1){a=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=a;a=J[g+60>>2];J[e+56>>2]=J[g+56>>2];J[e+60>>2]=a;a=J[g+52>>2];J[e+48>>2]=J[g+48>>2];J[e+52>>2]=a;a=J[g+44>>2];J[e+40>>2]=J[g+40>>2];J[e+44>>2]=a;a=J[g+36>>2];J[e+32>>2]=J[g+32>>2];J[e+36>>2]=a;a=J[g+28>>2];J[e+24>>2]=J[g+24>>2];J[e+28>>2]=a;a=J[g+20>>2];J[e+16>>2]=J[g+16>>2];J[e+20>>2]=a;a=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=a;a=J[g+124>>2];d=c+e|0;b=d;J[b+56>>2]=J[g+120>>2];J[b+60>>2]=a;a=J[g+116>>2];J[b+48>>2]=J[g+112>>2]; -J[b+52>>2]=a;a=J[g+108>>2];J[b+40>>2]=J[g+104>>2];J[b+44>>2]=a;a=J[g+100>>2];J[b+32>>2]=J[g+96>>2];J[b+36>>2]=a;a=J[g+92>>2];J[b+24>>2]=J[g+88>>2];J[b+28>>2]=a;a=J[g+84>>2];J[b+16>>2]=J[g+80>>2];J[b+20>>2]=a;a=J[g+76>>2];J[b+8>>2]=J[g+72>>2];J[b+12>>2]=a;b=g- -64|0;a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;a=J[g+188>>2];b=c+d|0;J[b+56>>2]=J[g+184>>2];J[b+60>>2]=a;a=J[g+180>>2];J[b+48>>2]=J[g+176>>2];J[b+52>>2]=a;a=J[g+172>>2];J[b+40>>2]=J[g+168>>2];J[b+44>>2]=a;a=J[g+164>>2];J[b+32>>2]=J[g+160>>2]; -J[b+36>>2]=a;a=J[g+156>>2];J[b+24>>2]=J[g+152>>2];J[b+28>>2]=a;a=J[g+148>>2];J[b+16>>2]=J[g+144>>2];J[b+20>>2]=a;a=J[g+140>>2];J[b+8>>2]=J[g+136>>2];J[b+12>>2]=a;a=J[g+132>>2];J[b>>2]=J[g+128>>2];J[b+4>>2]=a;a=J[g+252>>2];b=b+c|0;J[b+56>>2]=J[g+248>>2];J[b+60>>2]=a;a=J[g+244>>2];J[b+48>>2]=J[g+240>>2];J[b+52>>2]=a;a=J[g+236>>2];J[b+40>>2]=J[g+232>>2];J[b+44>>2]=a;a=J[g+228>>2];J[b+32>>2]=J[g+224>>2];J[b+36>>2]=a;a=J[g+220>>2];J[b+24>>2]=J[g+216>>2];J[b+28>>2]=a;a=J[g+212>>2];J[b+16>>2]=J[g+208>>2]; -J[b+20>>2]=a;a=J[g+204>>2];J[b+8>>2]=J[g+200>>2];J[b+12>>2]=a;a=J[g+196>>2];J[b>>2]=J[g+192>>2];J[b+4>>2]=a;e=b+c|0;g=g+256|0;a=f-5|0;f=f-4|0;if(a>>>0<4294967294)continue;break}}}function $k(a){var b=0;b=J[a>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;b=J[a+148>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+24>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+152>>2];J[695492]=0;Gc(b); -b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+28>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+156>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+32>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+160>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+36>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+164>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+ -40>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+168>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+44>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+172>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+48>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+176>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+52>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0; -if((b|0)==1)break a;b=J[a+180>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+56>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+184>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+60>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+188>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a- -64>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+192>>2];J[695492]=0; -Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+68>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+196>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+72>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+200>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+76>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+204>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a; -b=J[a+80>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+208>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+84>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+212>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+88>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+216>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+92>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]= -0;if((b|0)==1)break a;b=J[a+220>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+96>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+224>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+100>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+228>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+104>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+232>>2];J[695492]= -0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+108>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+236>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+112>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+240>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+116>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+244>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a; -b=J[a+120>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+248>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+124>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+252>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+128>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+256>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+132>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]= -0;if((b|0)==1)break a;b=J[a+260>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+136>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+264>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+140>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+268>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+144>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+272>>2];J[695492]= -0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a}ea(0)|0;yc();B()}function R1(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,B=0;m=O[a>>3];r=O[e>>3];v=O[c+8>>3];s=O[c>>3];p=O[d>>3];w=O[e+8>>3];q=O[d+8>>3];J[b>>2]=0;t=r-p;j=m*t/g;x=w-q;n=m*x/g;y=p-s;k=m*y/f;z=q-v;l=m*z/f;a:{b:{c:{d:{t=t*z-y*x;if(!(t==0|(!(t>0)|0)==(m>0|0))){m=O[a+40>>3];r=(f>3];m=m>r?m:r;e:{f:{h=J[a+64>>2];switch(h-1|0){case 0:break b;case 1:case 2:break e; -default:break f}}a=0;if(!J[b+4>>2]){g:{if(J[b+8>>2]){e=J[b+12>>2];c=1;break g}h=J[b+16>>2];e=rc(h>>>0>1073741823?-1:h<<2);a=J[b+12>>2];h:{if(!a){c=1;a=0;break h}qc(a);c=J[b+4>>2]+1|0;h=J[b+8>>2]+J[b+16>>2]|0;a=J[b>>2]&63}J[b+8>>2]=h;J[b+12>>2]=e}A=e,B=rc(1024),J[A>>2]=B;J[b+4>>2]=c}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=q-k;O[a>>3]=p+l;break c}r=f*f;f=l-n;s=f*f;f=k-j;f=s+f*f;if(!(!(r>f)|!(f>2];if((h|0)==2){a=0;if(!e){i:{if(J[b+8>>2]){e=J[b+12>>2];c=1;break i}h=J[b+ -16>>2];e=rc(h>>>0>1073741823?-1:h<<2);a=J[b+12>>2];j:{if(!a){c=1;a=0;break j}qc(a);c=J[b+4>>2]+1|0;h=J[b+8>>2]+J[b+16>>2]|0;a=J[b>>2]&63}J[b+8>>2]=h;J[b+12>>2]=e}A=e,B=rc(1024),J[A>>2]=B;J[b+4>>2]=c}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=f;O[a>>3]=g;a=J[b>>2]+1|0;J[b>>2]=a;f=O[d+8>>3];g=O[d>>3];c=J[b+4>>2];e=a>>>6|0;if(c>>>0<=e>>>0){h=J[b+8>>2];k:{if(h>>>0>e>>>0){h=J[b+12>>2];break k}i=h+J[b+16>>2]|0;h=rc(i>>>0>1073741823?-1:i<<2);o=J[b+12>>2];if(o){tc(h,o,c<<2);qc(o);i=J[b+8>>2]+J[b+16>>2]|0;c=J[b+ -4>>2];a=J[b>>2]}J[b+8>>2]=i;J[b+12>>2]=h}A=(e<<2)+h|0,B=rc(1024),J[A>>2]=B;J[b+4>>2]=c+1}a=J[J[b+12>>2]+(e<<2)>>2]+((a&63)<<4)|0;O[a+8>>3]=f;break d}c=0;if(!e){l:{if(J[b+8>>2]){e=J[b+12>>2];h=1;break l}i=J[b+16>>2];e=rc(i>>>0>1073741823?-1:i<<2);c=J[b+12>>2];m:{if(!c){h=1;c=0;break m}qc(c);h=J[b+4>>2]+1|0;i=J[b+8>>2]+J[b+16>>2]|0;c=J[b>>2]&63}J[b+8>>2]=i;J[b+12>>2]=e}A=e,B=rc(1024),J[A>>2]=B;J[b+4>>2]=h}c=J[J[b+12>>2]>>2]+(c<<4)|0;O[c+8>>3]=f;O[c>>3]=g;e=J[b>>2]+1|0;J[b>>2]=e;f=O[d+8>>3];g=O[d>>3]; -h=J[b+4>>2];c=e>>>6|0;if(h>>>0<=c>>>0){i=J[b+8>>2];n:{if(i>>>0>c>>>0){i=J[b+12>>2];break n}o=i+J[b+16>>2]|0;i=rc(o>>>0>1073741823?-1:o<<2);u=J[b+12>>2];if(u){tc(i,u,h<<2);qc(u);o=J[b+8>>2]+J[b+16>>2]|0;h=J[b+4>>2];e=J[b>>2]}J[b+8>>2]=o;J[b+12>>2]=i}A=(c<<2)+i|0,B=rc(1024),J[A>>2]=B;J[b+4>>2]=h+1}c=J[J[b+12>>2]+(c<<2)>>2]+((e&63)<<4)|0;O[c+8>>3]=f;O[c>>3]=g;J[b>>2]=J[b>>2]+1;JK(a,b,O[d>>3],O[d+8>>3],n,-j,l,-k);f=O[d+8>>3];g=O[d>>3];c=J[b+4>>2];e=J[b>>2];a=e>>>6|0;if(c>>>0<=a>>>0){h=J[b+8>>2];o:{if(h>>> -0>a>>>0){h=J[b+12>>2];break o}i=h+J[b+16>>2]|0;h=rc(i>>>0>1073741823?-1:i<<2);o=J[b+12>>2];if(o){tc(h,o,c<<2);qc(o);i=J[b+8>>2]+J[b+16>>2]|0;e=J[b>>2];c=J[b+4>>2]}J[b+8>>2]=i;J[b+12>>2]=h}A=(a<<2)+h|0,B=rc(1024),J[A>>2]=B;J[b+4>>2]=c+1}a=J[J[b+12>>2]+(a<<2)>>2]+((e&63)<<4)|0;O[a+8>>3]=f;break d}f=(l+n)*.5;g=f*f;f=(k+j)*.5;f=Y(g+f*f);h=J[a+60>>2];if(!(!(O[a+16>>3]>O[a+48>>3]*(O[a+8>>3]-f))|(h&-2)!=2)){m=p+l;f=s+l;l=m-f;g=w-j;j=q-j;s=g-j;g=r+n;n=p+n;p=g-n;q=q-k;g=v-k;k=q-g;r=l*s-p*k;if(!(R(r)<1E-30)){j= -((g-j)*p-s*(f-n))/r;g=j*k+g;a=0;if(!J[b+4>>2]){p:{if(J[b+8>>2]){d=J[b+12>>2];e=1;break p}c=J[b+16>>2];d=rc(c>>>0>1073741823?-1:c<<2);a=J[b+12>>2];q:{if(!a){e=1;a=0;break q}qc(a);e=J[b+4>>2]+1|0;c=J[b+8>>2]+J[b+16>>2]|0;a=J[b>>2]&63}J[b+8>>2]=c;J[b+12>>2]=d}A=d,B=rc(1024),J[A>>2]=B;J[b+4>>2]=e}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=g;O[a>>3]=j*l+f;break a}a=0;if(!J[b+4>>2]){r:{if(J[b+8>>2]){d=J[b+12>>2];e=1;break r}c=J[b+16>>2];d=rc(c>>>0>1073741823?-1:c<<2);a=J[b+12>>2];s:{if(!a){e=1;a=0;break s}qc(a); -e=J[b+4>>2]+1|0;c=J[b+8>>2]+J[b+16>>2]|0;a=J[b>>2]&63}J[b+8>>2]=c;J[b+12>>2]=d}A=d,B=rc(1024),J[A>>2]=B;J[b+4>>2]=e}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=q;O[a>>3]=m;break a}t:switch(h|0){case 0:case 1:case 4:Q1(a,b,c,d,e,l,k,n,j,h,O[a+32>>3],f);return;case 2:JK(a,b,p,q,l,-k,n,-j);return;default:break t}a=0;if(!J[b+4>>2]){u:{if(J[b+8>>2]){e=J[b+12>>2];c=1;break u}h=J[b+16>>2];e=rc(h>>>0>1073741823?-1:h<<2);a=J[b+12>>2];v:{if(!a){c=1;a=0;break v}qc(a);c=J[b+4>>2]+1|0;h=J[b+8>>2]+J[b+16>>2]|0;a=J[b>> -2]&63}J[b+8>>2]=h;J[b+12>>2]=e}A=e,B=rc(1024),J[A>>2]=B;J[b+4>>2]=c}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=q-k;O[a>>3]=p+l;a=J[b>>2]+1|0;J[b>>2]=a;f=O[d+8>>3]-j;g=n+O[d>>3];e=J[b+4>>2];d=a>>>6|0;if(e>>>0<=d>>>0){c=J[b+8>>2];w:{if(c>>>0>d>>>0){c=J[b+12>>2];break w}h=c+J[b+16>>2]|0;c=rc(h>>>0>1073741823?-1:h<<2);i=J[b+12>>2];if(i){tc(c,i,e<<2);qc(i);h=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];a=J[b>>2]}J[b+8>>2]=h;J[b+12>>2]=c}A=(d<<2)+c|0,B=rc(1024),J[A>>2]=B;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((a&63)<< -4)|0;O[a+8>>3]=f;O[a>>3]=g;J[b>>2]=J[b>>2]+1;return}O[a>>3]=g}a=J[b>>2]+1|0;J[b>>2]=a;f=O[d+8>>3]-j;g=n+O[d>>3];e=J[b+4>>2];d=a>>>6|0;if(e>>>0<=d>>>0){c=J[b+8>>2];x:{if(c>>>0>d>>>0){c=J[b+12>>2];break x}h=c+J[b+16>>2]|0;c=rc(h>>>0>1073741823?-1:h<<2);i=J[b+12>>2];if(i){tc(c,i,e<<2);qc(i);h=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];a=J[b>>2]}J[b+8>>2]=h;J[b+12>>2]=c}A=(d<<2)+c|0,B=rc(1024),J[A>>2]=B;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((a&63)<<4)|0;O[a+8>>3]=f;O[a>>3]=g;break a}Q1(a,b,c,d,e,l,k,n,j,1, -m,0);return}J[b>>2]=J[b>>2]+1}function jK(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=bc-112|0;bc=g;a:{if(!a){f=-102;break a}i=-1;h=J[a+48>>2];f=J[a+76>>2]+J[a+92>>2]|0;j=J[a+88>>2];k=j+J[a+72>>2]|0;f=k>>>0>>0?f+1|0:f;b:{if(dj(a,h,k,f,0))break b;if(eh(a,J[a+48>>2],g+12|0))break b;i=J[g+12>>2]!=33639248?-103:0}c:{d:{h=J[a+48>>2];e:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+24|0,1)|0)==1){f=K[g+24|0];break e}if(gc[J[a+24>>2]](J[a+28>>2],h)|0)break d;f=0}f:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)| -0)==1){J[g+24>>2]=f|K[g+16|0]<<8;break f}h=gc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+24>>2]=h?0:P(f,257);f=-1;if(h)break c}f=i;break c}J[g+24>>2]=0;f=-1}i=f;g:{h:{h=J[a+48>>2];i:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break i}if(gc[J[a+24>>2]](J[a+28>>2],h)|0)break h;f=0}j:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+28>>2]=f|K[g+16|0]<<8;break j}h=gc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+28>>2]=h?0:P(f,257);f=-1;if(h)break g}f=i;break g}J[g+28>>2]=0;f=-1}i=f;k:{l:{h=J[a+48>>2];m:{if((gc[J[a+ -4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break m}if(gc[J[a+24>>2]](J[a+28>>2],h)|0)break l;f=0}n:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+32>>2]=f|K[g+16|0]<<8;break n}h=gc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+32>>2]=h?0:P(f,257);f=-1;if(h)break k}f=i;break k}J[g+32>>2]=0;f=-1}i=f;o:{p:{h=J[a+48>>2];q:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break q}if(gc[J[a+24>>2]](J[a+28>>2],h)|0)break p;f=0}r:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+36>>2]=f|K[g+ -16|0]<<8;break r}h=gc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+36>>2]=h?0:P(f,257);f=-1;if(h)break o}f=i;break o}J[g+36>>2]=0;f=-1}h=f;j=eh(a,J[a+48>>2],g+40|0);f=J[g+40>>2];J[g+108>>2]=(f>>>25|0)+1980;J[g+100>>2]=f>>>16&31;J[g+96>>2]=f>>>11&31;J[g+92>>2]=f>>>5&63;J[g+104>>2]=(f>>>21&15)-1;J[g+88>>2]=f<<1&62;k=eh(a,J[a+48>>2],g+44|0);l=eh(a,J[a+48>>2],g+8|0);J[g+48>>2]=J[g+8>>2];J[g+52>>2]=0;m=eh(a,J[a+48>>2],g+8|0);J[g+56>>2]=J[g+8>>2];J[g+60>>2]=0;s:{t:{i=J[a+48>>2];u:{if((gc[J[a+4>>2]](J[a+28>>2],i,g+16| -0,1)|0)==1){f=K[g+16|0];break u}if(gc[J[a+24>>2]](J[a+28>>2],i)|0)break t;f=0}v:{if((gc[J[a+4>>2]](J[a+28>>2],i,g+16|0,1)|0)==1){J[g+64>>2]=f|K[g+16|0]<<8;break v}n=P(f,257);f=gc[J[a+24>>2]](J[a+28>>2],i)|0;J[g+64>>2]=f?0:n;i=-1;if(f)break s}i=l|m|(j|k)?-1:h;break s}J[g+64>>2]=0;i=-1}w:{x:{h=J[a+48>>2];y:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break y}if(gc[J[a+24>>2]](J[a+28>>2],h)|0)break x;f=0}z:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+68>>2]=f|K[g+16|0]<<8;break z}h= -gc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+68>>2]=h?0:P(f,257);f=-1;if(h)break w}f=i;break w}J[g+68>>2]=0;f=-1}i=f;A:{B:{h=J[a+48>>2];C:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break C}if(gc[J[a+24>>2]](J[a+28>>2],h)|0)break B;f=0}D:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+72>>2]=f|K[g+16|0]<<8;break D}h=gc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+72>>2]=h?0:P(f,257);f=-1;if(h)break A}f=i;break A}J[g+72>>2]=0;f=-1}i=f;E:{F:{h=J[a+48>>2];G:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)== -1){f=K[g+16|0];break G}if(gc[J[a+24>>2]](J[a+28>>2],h)|0)break F;f=0}H:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+76>>2]=f|K[g+16|0]<<8;break H}h=gc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+76>>2]=h?0:P(f,257);f=-1;if(h)break E}f=i;break E}J[g+76>>2]=0;f=-1}I:{J:{h=J[a+48>>2];K:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){i=K[g+16|0];break K}if(gc[J[a+24>>2]](J[a+28>>2],h)|0)break J;i=0}L:{if((gc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+80>>2]=i|K[g+16|0]<<8;break L}h=gc[J[a+24>>2]](J[a+ -28>>2],h)|0;J[g+80>>2]=h?0:P(i,257);i=-1;if(h)break I}i=f;break I}J[g+80>>2]=0;i=-1}f=eh(a,J[a+48>>2],g+84|0);h=eh(a,J[a+48>>2],g+8|0);J[g+16>>2]=J[g+8>>2];J[g+20>>2]=0;f=f|h?-1:i;i=J[g+64>>2];if(!(f|!d)){h=e;if(i>>>0>>0){H[d+i|0]=0;h=i}f=0;if(!(!e|!i))f=(gc[J[a+4>>2]](J[a+28>>2],J[a+48>>2],d,h)|0)!=(h|0)?-1:0;i=i-h|0}h=J[g+68>>2];d=i+h|0;if(!(!h|f)){f=0;if((d|0)!=(h|0)){d=d-h|0;f=dj(a,J[a+48>>2],d,d>>31,1)?-1:0}l=g+56|0;m=g+48|0;d=0;while(1){j=J[a+48>>2];M:{N:{if((gc[J[a+4>>2]](J[a+28>>2],j,g+ -4|0,1)|0)==1){i=K[g+4|0];break N}e=-1;i=0;if(gc[J[a+24>>2]](J[a+28>>2],j)|0)break M}if((gc[J[a+4>>2]](J[a+28>>2],j,g+4|0,1)|0)==1){e=f;i=K[g+4|0]<<8|i;break M}e=f;f=gc[J[a+24>>2]](J[a+28>>2],j)|0;e=f?-1:e;i=f?0:P(i,257)}j=i;k=J[a+48>>2];O:{P:{if((gc[J[a+4>>2]](J[a+28>>2],k,g+4|0,1)|0)==1){i=K[g+4|0];break P}f=-1;i=0;if(gc[J[a+24>>2]](J[a+28>>2],k)|0)break O}if((gc[J[a+4>>2]](J[a+28>>2],k,g+4|0,1)|0)==1){f=e;i=K[g+4|0]<<8|i;break O}f=e;e=gc[J[a+24>>2]](J[a+28>>2],k)|0;f=e?-1:f;i=e?0:P(i,257)}Q:{if((j| -0)==1){if(!J[g+60>>2]&J[g+56>>2]==-1)f=io(a,J[a+48>>2],l)?-1:f;if(!J[g+52>>2]&J[g+48>>2]==-1)f=io(a,J[a+48>>2],m)?-1:f;if(!J[g+20>>2]&J[g+16>>2]==-1)f=io(a,J[a+48>>2],g+16|0)?-1:f;if(J[g+76>>2]==-1)f=eh(a,J[a+48>>2],g+4|0)?-1:f;h=J[g+68>>2];break Q}f=dj(a,J[a+48>>2],i,0,1)?-1:f}d=(d+i|0)+4|0;if(h>>>0>d>>>0)continue;break}}if(!(f|!b))tc(b,g+24|0,88);if(f|!c)break a;a=J[g+20>>2];J[c>>2]=J[g+16>>2];J[c+4>>2]=a;f=0}bc=g+112|0;return f}function wYa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=J[a+20>> -2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}if(!J[a+84>>2])h=a,i=gc[J[J[a+4>>2]>>2]](a,0,880)|0,J[h+84>>2]=i;J[a+72>>2]=8;J[a+56>>2]=1;J[a+60>>2]=1;EJ(a,50,1);b=J[a+120>>2];if(!b){b=gc[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+120>>2]=b}H[b+16|0]=K[56960];c=J[14239];J[b+8>>2]=J[14238];J[b+12>>2]=c;c=J[14237];J[b>>2]=J[14236];J[b+4>>2]=c;c=K[56997]|K[56998]<<8|(K[56999]<<16|K[57E3]<<24);b=J[a+120>>2];d=K[56993]|K[56994]<<8|(K[56995]<<16|K[56996]<<24);H[b+17|0]=d; -H[b+18|0]=d>>>8;H[b+19|0]=d>>>16;H[b+20|0]=d>>>24;H[b+21|0]=c;H[b+22|0]=c>>>8;H[b+23|0]=c>>>16;H[b+24|0]=c>>>24;c=K[57001]|K[57002]<<8|(K[57003]<<16|K[57004]<<24);H[b+25|0]=c;H[b+26|0]=c>>>8;H[b+27|0]=c>>>16;H[b+28|0]=c>>>24;J[J[a+120>>2]+276>>2]=0;b=J[a+136>>2];if(!b){b=gc[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+136>>2]=b}H[b+16|0]=K[57024];c=J[14255];J[b+8>>2]=J[14254];J[b+12>>2]=c;c=J[14253];J[b>>2]=J[14252];J[b+4>>2]=c;tc(J[a+136>>2]+17|0,57040,162);J[J[a+136>>2]+276>>2]=0;b=J[a+124>>2]; -if(!b){b=gc[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+124>>2]=b}H[b+16|0]=K[56992];c=J[14247];J[b+8>>2]=J[14246];J[b+12>>2]=c;c=J[14245];J[b>>2]=J[14244];J[b+4>>2]=c;c=K[56997]|K[56998]<<8|(K[56999]<<16|K[57E3]<<24);b=J[a+124>>2];d=K[56993]|K[56994]<<8|(K[56995]<<16|K[56996]<<24);H[b+17|0]=d;H[b+18|0]=d>>>8;H[b+19|0]=d>>>16;H[b+20|0]=d>>>24;H[b+21|0]=c;H[b+22|0]=c>>>8;H[b+23|0]=c>>>16;H[b+24|0]=c>>>24;c=K[57001]|K[57002]<<8|(K[57003]<<16|K[57004]<<24);H[b+25|0]=c;H[b+26|0]=c>>>8;H[b+27|0]=c>>> -16;H[b+28|0]=c>>>24;J[J[a+124>>2]+276>>2]=0;b=J[a+140>>2];if(!b){b=gc[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+140>>2]=b}H[b+16|0]=K[57232];c=J[14307];J[b+8>>2]=J[14306];J[b+12>>2]=c;c=J[14305];J[b>>2]=J[14304];J[b+4>>2]=c;tc(J[a+140>>2]+17|0,57248,162);J[J[a+140>>2]+276>>2]=0;H[a+160|0]=0;H[a+161|0]=0;H[a+162|0]=0;H[a+163|0]=0;H[a+164|0]=0;H[a+165|0]=0;H[a+166|0]=0;H[a+167|0]=0;H[a+152|0]=0;H[a+153|0]=0;H[a+154|0]=0;H[a+155|0]=0;H[a+156|0]=0;H[a+157|0]=0;H[a+158|0]=0;H[a+159|0]=0;H[a+168|0]= -1;H[a+169|0]=1;H[a+170|0]=1;H[a+171|0]=1;H[a+172|0]=1;H[a+173|0]=1;H[a+174|0]=1;H[a+175|0]=1;H[a+176|0]=1;H[a+177|0]=1;H[a+178|0]=1;H[a+179|0]=1;H[a+180|0]=1;H[a+181|0]=1;H[a+182|0]=1;H[a+183|0]=1;H[a+184|0]=5;H[a+185|0]=5;H[a+186|0]=5;H[a+187|0]=5;H[a+188|0]=5;H[a+189|0]=5;H[a+190|0]=5;H[a+191|0]=5;H[a+192|0]=5;H[a+193|0]=5;H[a+194|0]=5;H[a+195|0]=5;H[a+196|0]=5;H[a+197|0]=5;H[a+198|0]=5;H[a+199|0]=5;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;J[a+220>>2]= -0;J[a+224>>2]=1;J[a+236>>2]=0;J[a+240>>2]=0;J[a+252>>2]=65537;H[a+250|0]=0;I[a+248>>1]=257;J[a+216>>2]=J[a+72>>2]>8;a:{b:{c:switch(J[a+40>>2]){case 1:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+76>>2]=1;J[a+80>>2]=1;J[a+244>>2]=1;a=J[a+84>>2];J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=1;break a;case 4:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}J[a+256>>2]=1;J[a+244>> -2]=0;J[a+76>>2]=4;J[a+80>>2]=4;a=J[a+84>>2];J[a+264>>2]=75;J[a+176>>2]=89;J[a+88>>2]=77;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=67;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=1;J[a+276>>2]=1;J[a+200>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=1;J[a+100>>2]=1;break a;case 5:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}J[a+256>>2]=1;J[a+244>>2]=0; -J[a+76>>2]=4;J[a+80>>2]=5;a=J[a+84>>2];J[a+264>>2]=4;J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=2;J[a+276>>2]=2;break b;case 0:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}c=0;J[a+256>>2]=0;J[a+244>>2]=0;J[a+80>>2]=0;b=J[a+36>>2];J[a+76>>2]=b;d:{if(b-11>>>0<=4294967285){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=27;J[J[a>>2]+28>>2]=10;gc[J[J[a>>2]>>2]](a); -b=J[a+76>>2];if((b|0)<=0)break d}f=b&1;d=J[a+84>>2];if((b|0)!=1){g=b&-2;b=0;while(1){a=d+P(c,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=c;e=c|1;a=d+P(e,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=e;c=c+2|0;b=b+2|0;if((g|0)!=(b|0))continue;break}}if(!f)break d;a=d+P(c,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=c}break a;default:b=J[a>>2];J[b+20>>2]=10;gc[J[b>>2]](a);break a;case 2:case 3:break c}b= -J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+76>>2]=3;J[a+80>>2]=3;J[a+244>>2]=1;a=J[a+84>>2];J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1}J[a+200>>2]=1;J[a+192>>2]=1;J[a+196>>2]=1;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=1;J[a+104>>2]=1;J[a+108>>2]=1;J[a+96>>2]=1;J[a+100>>2]=1}}function CD(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;a:while(1){k= -b-4|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{a=b-f>>2;switch(a|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}c=J[J[c>>2]+12>>2];a=b-4|0;b=J[a>>2];d=J[f>>2];if(M[J[c+(b<<2)>>2]>>2]>=M[J[c+(d<<2)>>2]>>2])break d;J[f>>2]=b;J[a>>2]=d;return}a=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[J[a+(d<<2)>>2]>>2];h=J[f+4>>2];k=J[J[a+(h<<2)>>2]>>2];c=J[f>>2];g=J[a+(c<<2)>>2];if(k>>>0>=M[g>>2]){if(e>>>0>=k>>>0)break d;J[f+4>>2]=d;J[b>>2]=h;b=J[f+4>>2]; -c=J[f>>2];if(M[J[a+(b<<2)>>2]>>2]>=M[J[a+(c<<2)>>2]>>2])break d;J[f+4>>2]=c;J[f>>2]=b;return}if(e>>>0>>0){J[f>>2]=d;J[b>>2]=c;return}J[f+4>>2]=c;J[f>>2]=h;d=J[b>>2];if(M[J[a+(d<<2)>>2]>>2]>=M[g>>2])break d;J[f+4>>2]=d;J[b>>2]=c;return}SM(f,f+4|0,f+8|0,f+12|0,b-4|0,c);return}if((a|0)<=30){a=f+4|0;e=f+8|0;h=J[J[c>>2]+12>>2];k=J[f+8>>2];g=J[h+(k<<2)>>2];i=J[g>>2];l=J[f+4>>2];n=J[J[h+(l<<2)>>2]>>2];j=J[f>>2];m=J[h+(j<<2)>>2];l:{m:{if(n>>>0>=M[m>>2]){if(i>>>0>=n>>>0)break l;J[a>>2]=k;J[e>>2]=l;d=f; -c=a;if(M[g>>2]>2])break m;break l}d=f;c=e;if(i>>>0>>0)break m;J[f+4>>2]=j;J[f>>2]=l;d=a;if(M[g>>2]>=M[m>>2])break l}J[d>>2]=k;J[c>>2]=j}c=f+12|0;if((c|0)==(b|0))break d;while(1){a=c;d=J[a>>2];k=J[h+(d<<2)>>2];g=J[e>>2];if(M[k>>2]>2]>>2]){while(1){n:{J[a>>2]=g;a=e;if((f|0)==(a|0)){a=f;break n}e=a-4|0;g=J[e>>2];if(M[k>>2]>2]>>2])continue}break}J[a>>2]=d}e=c;a=e+4|0;c=a;if((a|0)!=(b|0))continue;break}break d}if(!d){if((b|0)==(f|0))break d;h=c;d=b;if((b|0)!=(f|0)){b= -b-f>>2;if((b|0)>=2){a=b-2>>>1|0;while(1){k=a;e=(a<<2)+f|0;o:{if((b|0)<2)break o;m=b-2>>>1|0;a=e-f|0;if((m|0)>2)break o;a=a>>1;i=a+1|0;c=(i<<2)+f|0;g=J[c>>2];a=a+2|0;p:{if((a|0)>=(b|0)){j=J[J[h>>2]+12>>2];break p}o=a;j=J[J[h>>2]+12>>2];l=J[c+4>>2];a=M[J[j+(g<<2)>>2]>>2]>2]>>2];i=a?o:i;c=a?c+4|0:c;g=a?l:g}l=J[e>>2];n=J[(l<<2)+j>>2];if(M[J[(g<<2)+j>>2]>>2]>2])break o;while(1){q:{a=c;J[e>>2]=g;if((i|0)>(m|0))break q;e=i<<1;i=e|1;c=(i<<2)+f|0;g=J[c>>2];e=e+2|0;if((e|0)<(b|0)){o=e; -p=J[c+4>>2];e=M[J[(g<<2)+j>>2]>>2]>2]>>2];i=e?o:i;g=e?p:g;c=e?c+4|0:c}e=a;if(M[J[(g<<2)+j>>2]>>2]>=M[n>>2])continue}break}J[a>>2]=l}a=k-1|0;if(k)continue;break}}if((b|0)>=2)while(1){k=b;m=b-2>>>1|0;i=J[h>>2];j=J[f>>2];c=0;e=f;while(1){l=c<<1;g=l|1;c=(c<<2)+e|0;a=c+4|0;b=J[a>>2];l=l+2|0;r:{if((l|0)>=(k|0)){c=g;break r}p=l;o=g;g=J[i+12>>2];l=c+8|0;n=J[l>>2];g=M[J[g+(b<<2)>>2]>>2]>2]>>2];c=g?p:o;a=g?l:a;b=g?n:b}J[e>>2]=b;e=a;if((c|0)<=(m|0))continue;break}d=d-4|0;s:{if((d| -0)==(a|0)){J[a>>2]=j;break s}J[a>>2]=J[d>>2];J[d>>2]=j;b=(a-f|0)+4>>2;if((b|0)<2)break s;i=J[i+12>>2];m=J[a>>2];j=J[i+(m<<2)>>2];c=b-2>>>1|0;b=(c<<2)+f|0;e=J[b>>2];if(M[J[i+(e<<2)>>2]>>2]>=M[j>>2])break s;while(1){t:{g=b;J[a>>2]=e;if(!c)break t;a=b;c=c-1>>>1|0;b=(c<<2)+f|0;e=J[b>>2];if(M[J[i+(e<<2)>>2]>>2]>2])continue}break}J[g>>2]=m}b=k-1|0;if((k|0)>2)continue;break}}return}i=(a<<1&-4)+f|0;u:{if(a>>>0>=1E3){a=a&-4;j=SM(f,a+f|0,i,a+i|0,k,c);a=J[J[c>>2]+12>>2];break u}a=J[J[c>>2]+12>>2];h=J[k>> -2];g=J[J[a+(h<<2)>>2]>>2];m=J[i>>2];l=J[J[(m<<2)+a>>2]>>2];e=J[f>>2];n=J[(e<<2)+a>>2];v:{if(l>>>0>=M[n>>2]){j=0;if(g>>>0>=l>>>0)break u;J[i>>2]=h;J[k>>2]=m;j=1;e=J[i>>2];h=J[f>>2];if(M[J[(e<<2)+a>>2]>>2]>=M[J[(h<<2)+a>>2]>>2])break u;J[f>>2]=e;J[i>>2]=h;break v}if(g>>>0>>0){J[f>>2]=h;J[k>>2]=e;j=1;break u}J[f>>2]=m;J[i>>2]=e;j=1;h=J[k>>2];if(M[J[(h<<2)+a>>2]>>2]>=M[n>>2])break u;J[i>>2]=h;J[k>>2]=e}j=2}d=d-1|0;e=k;g=J[f>>2];h=J[J[(g<<2)+a>>2]>>2];m=J[J[(J[i>>2]<<2)+a>>2]>>2];if(h>>>0>=m>>>0){while(1){e= -e-4|0;if((e|0)==(f|0)){g=f+4|0;e=J[k>>2];if(h>>>0>2]>>2])break e;if((g|0)==(k|0))break d;while(1){i=J[g>>2];if(h>>>0>2]>>2]){J[g>>2]=e;J[k>>2]=i;g=g+4|0;break e}g=g+4|0;if((k|0)!=(g|0))continue;break}break d}l=J[e>>2];if(m>>>0<=M[J[(l<<2)+a>>2]>>2])continue;break}J[f>>2]=l;J[e>>2]=g;j=j+1|0}h=f+4|0;if(h>>>0>=e>>>0)break f;while(1){m=J[J[(J[i>>2]<<2)+a>>2]>>2];while(1){g=h;h=h+4|0;l=J[g>>2];if(m>>>0>M[J[(l<<2)+a>>2]>>2])continue;break}while(1){e=e-4|0;n=J[e>>2];if(m>>>0<= -M[J[(n<<2)+a>>2]>>2])continue;break}if(e>>>0>>0){h=g;break f}else{J[g>>2]=n;J[e>>2]=l;i=(g|0)==(i|0)?e:i;j=j+1|0;continue}}}RM(f,f+4|0,f+8|0,b-4|0,c);break d}w:{if((h|0)==(i|0))break w;e=J[i>>2];o=J[J[(e<<2)+a>>2]>>2];g=a;a=J[h>>2];if(o>>>0>=M[J[g+(a<<2)>>2]>>2])break w;J[h>>2]=e;J[i>>2]=a;j=j+1|0}if(!j){e=H7(f,h,c);a=h+4|0;if(H7(a,b,c)){a=f;b=h;if(!e)continue a;break d}if(e)continue b}if((h-f|0)<(b-h|0)){CD(f,h,c,d);a=h+4|0;continue b}CD(h+4|0,b,c,d);a=f;b=h;continue a}e=k;if((g|0)==(e|0))break d; -while(1){i=J[J[(J[f>>2]<<2)+a>>2]>>2];while(1){h=g;g=h+4|0;j=J[h>>2];if(i>>>0>=M[J[(j<<2)+a>>2]>>2])continue;break}while(1){e=e-4|0;m=J[e>>2];if(i>>>0>2]>>2])continue;break}if(e>>>0<=h>>>0){f=h;continue c}else{J[h>>2]=m;J[e>>2]=j;continue}}}break}break}break}}function WWa(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=bc-288|0;bc=f;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(K[a+220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))break j;uk(a,J[b+596>>2],O[b+104>>3],b+16|0, -0);g=O[b+392>>3];h=J[a+104>>2];gc[J[J[h>>2]+132>>2]](h,f+284|0)|0;h=J[a+104>>2];gc[J[J[h>>2]+136>>2]](h,827E3)|0;h=rc(32);J[f>>2]=h;e=h+32|0;J[f+8>>2]=e;J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[695492]=0;J[f+4>>2]=e;m=ga(3242,f+272|0,4,f|0)|0;h=J[695492];J[695492]=0;e=(h|0)==1;g=g*255;k:{if(R(g)<2147483648){h=~~g;break k}h=-2147483648}l:{if(!e){e=J[f>>2];if(e){J[f+4>>2]=e;qc(e)}g=O[c>>3];i=J[m>>2];e=J[i>>2];N[e+4>>2]=O[c+128>>3]/72*25.4; -N[e>>2]=g/72*25.4;g=O[c+8>>3];N[e+12>>2]=O[c+136>>3]/72*25.4;N[e+8>>2]=g/72*25.4;g=O[c+16>>3];N[e+20>>2]=O[c+144>>3]/72*25.4;N[e+16>>2]=g/72*25.4;g=O[c+24>>3];N[e+28>>2]=O[c+152>>3]/72*25.4;N[e+24>>2]=g/72*25.4;g=O[c+32>>3];e=J[i+12>>2];N[e+4>>2]=O[c+160>>3]/72*25.4;N[e>>2]=g/72*25.4;g=O[c+40>>3];N[e+12>>2]=O[c+168>>3]/72*25.4;N[e+8>>2]=g/72*25.4;g=O[c+48>>3];N[e+20>>2]=O[c+176>>3]/72*25.4;N[e+16>>2]=g/72*25.4;g=O[c+56>>3];N[e+28>>2]=O[c+184>>3]/72*25.4;N[e+24>>2]=g/72*25.4;g=O[c+64>>3];e=J[i+24>> -2];N[e+4>>2]=O[c+192>>3]/72*25.4;N[e>>2]=g/72*25.4;g=O[c+72>>3];N[e+12>>2]=O[c+200>>3]/72*25.4;N[e+8>>2]=g/72*25.4;g=O[c+80>>3];N[e+20>>2]=O[c+208>>3]/72*25.4;N[e+16>>2]=g/72*25.4;g=O[c+88>>3];N[e+28>>2]=O[c+216>>3]/72*25.4;N[e+24>>2]=g/72*25.4;g=O[c+96>>3];e=J[i+36>>2];N[e+4>>2]=O[c+224>>3]/72*25.4;N[e>>2]=g/72*25.4;g=O[c+104>>3];N[e+12>>2]=O[c+232>>3]/72*25.4;N[e+8>>2]=g/72*25.4;g=O[c+112>>3];N[e+20>>2]=O[c+240>>3]/72*25.4;N[e+16>>2]=g/72*25.4;g=O[c+120>>3];N[e+28>>2]=O[c+248>>3]/72*25.4;N[e+24>> -2]=g/72*25.4;J[695492]=0;e=$(4,8)|0;i=J[695492];J[695492]=0;if((i|0)!=1)break l;c=Z()|0;break b}c=Z()|0;a=J[f>>2];if(!a)break a;J[f+4>>2]=a;qc(a);ba(c|0);B()}J[695492]=0;J[f>>2]=e;e=e+8|0;J[f+8>>2]=e;J[f+4>>2]=e;e=ga(2376,f+260|0,2,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break i;i=J[f>>2];if(i){J[f+4>>2]=i;qc(i)}J[695492]=0;i=f+248|0;J[i>>2]=2205840;J[i+4>>2]=15;J[i+8>>2]=0;l=J[695492];J[695492]=0;if((l|0)==1)break h;J[695492]=0;ca(3244,d|0,c+256|0,f|0);l=J[695492];J[695492]=0;if((l|0)==1)break g; -J[695492]=0;l=f+236|0;Oq(i,f,l,0);j=J[695492];J[695492]=0;if((j|0)==1)break f;j=J[J[e>>2]>>2];h=h<<24;k=h|(P(J[f+244>>2],255)+32768>>>16&255|(P(J[f+236>>2],255)+32768&16711680|P(J[f+240>>2],255)+32768>>>8&65280));H[j|0]=k;H[j+1|0]=k>>>8;H[j+2|0]=k>>>16;H[j+3|0]=k>>>24;J[695492]=0;ca(3244,d|0,c+512|0,f|0);j=J[695492];J[695492]=0;if((j|0)==1)break g;J[695492]=0;Oq(i,f,l,0);j=J[695492];J[695492]=0;if((j|0)==1)break f;j=J[J[e>>2]+12>>2];k=h|(P(J[f+244>>2],255)+32768>>>16&255|(P(J[f+236>>2],255)+32768& -16711680|P(J[f+240>>2],255)+32768>>>8&65280));H[j|0]=k;H[j+1|0]=k>>>8;H[j+2|0]=k>>>16;H[j+3|0]=k>>>24;J[695492]=0;ca(3244,d|0,c+768|0,f|0);j=J[695492];J[695492]=0;if((j|0)==1)break g;J[695492]=0;Oq(i,f,l,0);j=J[695492];J[695492]=0;if((j|0)==1)break f;j=J[J[e>>2]>>2];k=h|(P(J[f+244>>2],255)+32768>>>16&255|(P(J[f+236>>2],255)+32768&16711680|P(J[f+240>>2],255)+32768>>>8&65280));H[j+4|0]=k;H[j+5|0]=k>>>8;H[j+6|0]=k>>>16;H[j+7|0]=k>>>24;J[695492]=0;ca(3244,d|0,c+1024|0,f|0);c=J[695492];J[695492]=0;if((c| -0)==1)break g;J[695492]=0;Oq(i,f,l,0);c=J[695492];J[695492]=0;if((c|0)==1)break f;c=J[J[e>>2]+12>>2];d=h|(P(J[f+244>>2],255)+32768>>>16&255|(P(J[f+236>>2],255)+32768&16711680|P(J[f+240>>2],255)+32768>>>8&65280));H[c+4|0]=d;H[c+5|0]=d>>>8;H[c+6|0]=d>>>16;H[c+7|0]=d>>>24;J[695492]=0;J[f+244>>2]=0;J[f+236>>2]=0;J[f+240>>2]=0;eb(3246,f|0,m|0,l|0,e|0,0,Q(Q(0)),Q(Q(1)));c=J[695492];J[695492]=0;if((c|0)==1)break e;h=J[f+236>>2];if(h){d=J[f+240>>2];c=h;if((d|0)!=(c|0)){while(1){c=d-12|0;i=J[c>>2];if(i){J[d- -8>>2]=i;qc(i)}d=c;if((c|0)!=(h|0))continue;break}c=J[f+236>>2]}J[f+240>>2]=h;qc(c)}c=J[a+104>>2];d=ik(c,340356,340368);if(d){c=J[J[d>>2]+596>>2];J[695492]=0;da(c|0,d|0,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[a+104>>2];d=J[J[c>>2]+348>>2];J[695492]=0;aa(d|0,c|0,826956)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[a+104>>2]}J[f+236>>2]=4;d=J[J[c>>2]+312>>2];J[695492]=0;aa(d|0,c|0,f+236|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;a=J[a+104>>2];c=J[J[a>>2]+136>>2];J[695492]=0;aa(c| -0,a|0,f+284|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;_(3232,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;Qe(f+80|0);a=J[e>>2];if(a){c=a;d=J[e+4>>2];if((c|0)!=(d|0)){while(1){b=d-12|0;c=J[b>>2];if(c){J[d-8>>2]=c;qc(c)}d=b;if((a|0)!=(d|0))continue;break}c=J[e>>2]}J[e+4>>2]=a;qc(c)}a=J[m>>2];if(!a)break j;c=a;d=J[m+4>>2];if((c|0)!=(d|0)){while(1){b=d-12|0;c=J[b>>2];if(c){J[d-8>>2]=c;qc(c)}d=b;if((a|0)!=(d|0))continue;break}c=J[m>>2]}J[m+4>>2]=a;qc(c)}bc=f+288|0;return 1}c=Z()| -0;a=J[f>>2];if(!a)break b;J[f+4>>2]=a;qc(a);break b}c=Z()|0;break c}c=Z()|0;break c}c=Z()|0;break c}c=Z()|0;ol(f+236|0);break c}c=Z()|0;Qe(f+80|0)}ol(e)}ol(m)}ba(c|0);B()}function iW(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;f=bc-80|0;bc=f;g=Cp(f+72|0);h=J[a+24>>2];J[695492]=0;d=f+60|0;ca(4801,d|0,h|0,a+12|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){J[695492]=0;a=aa(3314,g|0,d|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){if(H[f+71|0]<0)qc(J[f+60>>2]);b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!a)break k; -J[695492]=0;a=$(3315,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break i;if(!a)break k;J[695492]=0;a=f+48|0;da(4802,a|0,g|0);h=J[695492];J[695492]=0;if((h|0)==1)break b;J[695492]=0;i=aa(4825,f+60|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;if(H[f+59|0]<0)qc(J[f+48>>2]);J[695492]=0;h=f+48|0;J[h>>2]=0;J[h+4>>2]=0;H[h+8|0]=0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;a=Fd(i,2366688);d=J[695492];J[695492]=0;if((d|0)==1)break j;l:{if(a){J[695492]=0;a=Gh(g);d=J[695492];J[695492]=0; -if((d|0)==1)break j;if(a)break l;J[695492]=0;a=Qg(g);d=J[695492];J[695492]=0;if((d|0)==1)break h;while(1){J[695492]=0;d=aa(4815,g|0,a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;if(!d)break l;J[695492]=0;d=f+24|0;da(4802,d|0,g|0);e=J[695492];J[695492]=0;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((e|0)!=1){J[695492]=0;d=aa(4825,f+36|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break A;J[695492]=0;Xf(i,d);e=J[695492];J[695492]=0;if((e|0)==1)break z;Lc(d);if(H[f+35|0]<0)qc(J[f+24>>2]);J[695492]= -0;d=Fd(i,2366756);e=J[695492];J[695492]=0;if((e|0)==1)break g;if(!d)break m;J[695492]=0;d=f+12|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;e=J[695492];J[695492]=0;if((e|0)==1)break x;J[695492]=0;ca(4829,g|0,2366784,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break o;J[695492]=0;e=Fd(d,2366820);j=J[695492];J[695492]=0;if((j|0)==1)break o;if(!e)break p;J[695492]=0;a=Gh(g);e=J[695492];J[695492]=0;if((e|0)==1)break w;B:{if(a)break B;J[695492]=0;a=Qg(g);e=J[695492];J[695492]=0;if((e|0)==1)break u;while(1){J[695492]= -0;e=aa(4815,g|0,a|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break v;if(!e)break B;J[695492]=0;da(4802,f|0,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break t;J[695492]=0;e=aa(4825,f+24|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break s;J[695492]=0;Xf(i,e);j=J[695492];J[695492]=0;if((j|0)==1)break r;Lc(e);if(H[f+11|0]<0)qc(J[f>>2]);J[695492]=0;e=Fd(i,2366836);j=J[695492];J[695492]=0;if((j|0)==1)break v;if(!e)continue;break}J[695492]=0;ca(4829,g|0,2366876,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break u; -J[695492]=0;a=$(4830,h|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break u;J[b>>2]=a;J[695492]=0;ca(4829,g|0,2366900,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break u;J[695492]=0;a=$(4830,h|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break u;J[c>>2]=a}Lc(d);break l}a=Z()|0;break f}a=Z()|0;break y}a=Z()|0;Lc(d)}if(H[f+35|0]>=0)break f;qc(J[f+24>>2]);break f}a=Z()|0;break f}a=Z()|0;Lc(d);break f}a=Z()|0;Lc(d);break f}a=Z()|0;Lc(d);break f}a=Z()|0;Lc(d);break f}a=Z()|0;break q}a=Z()|0;Lc(e)}if(H[f+11|0]>=0)break n; -qc(J[f>>2]);Lc(d);break f}Lc(d);continue}a=Z()|0}Lc(d);break f}J[695492]=0;d=Fd(i,2366928);e=J[695492];J[695492]=0;if((e|0)==1)break g;if(!d)continue;break}J[695492]=0;a=Gh(g);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(a)break l;J[695492]=0;a=Qg(g);d=J[695492];J[695492]=0;C:{D:{E:{F:{G:{if((d|0)==1)break G;H:{while(1){J[695492]=0;d=aa(4815,g|0,a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break H;if(!d)break l;J[695492]=0;da(4802,f|0,g|0);d=J[695492];J[695492]=0;if((d|0)==1)break F;J[695492]=0;d= -aa(4825,f+24|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break E;J[695492]=0;Xf(i,d);e=J[695492];J[695492]=0;if((e|0)==1)break D;Lc(d);if(H[f+11|0]<0)qc(J[f>>2]);J[695492]=0;d=Fd(i,2366836);e=J[695492];J[695492]=0;if((e|0)==1)break H;if(!d)continue;break}J[695492]=0;ca(4829,g|0,2366876,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break G;J[695492]=0;a=$(4830,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break G;J[b>>2]=a;J[695492]=0;ca(4829,g|0,2366900,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break G;J[695492]= -0;a=$(4830,h|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break G;J[c>>2]=a;break l}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0;break C}a=Z()|0;Lc(d)}if(H[f+11|0]>=0)break f;qc(J[f>>2]);break f}J[695492]=0;a=Fd(i,2366836);d=J[695492];J[695492]=0;if((d|0)==1)break j;if(!a)break l;J[695492]=0;ca(4829,g|0,2366876,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;J[695492]=0;a=$(4830,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;J[b>>2]=a;J[695492]=0;ca(4829,g|0,2366900,h|0);a=J[695492];J[695492]= -0;if((a|0)==1)break j;J[695492]=0;a=$(4830,h|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[c>>2]=a}Lc(h);Lc(i)}J[g>>2]=768024;a=J[g+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);bc=f+80|0;return}a=Z()|0;break f}a=Z()|0;break a}a=Z()|0;break f}a=Z()|0}Lc(h);break d}a=Z()|0}Lc(i);break a}a=Z()|0;if(H[f+59|0]>=0)break a;qc(J[f+48>>2]);break a}a=Z()|0;break a}a=Z()|0;if(H[f+71|0]>=0)break a;qc(J[f+60>>2]);break a}a=Z()|0}J[g>>2]=768024;b=J[g+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);ba(a|0);B()}function fD(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;e=bc-1488|0;bc=e;h=J[a+4>>2];l=J[h+556>>2];p=J[l+40>>2];a:{b:{c:{i=J[h+712>>2];if(J[i+1504>>2]==65535)break c;f=J[i+1192>>2];if(!f)break c;if(!c){c=0;break b}g=6;if(M[i+1196>>2]>>0)break a;c=L[f+(c<<1)>>1];if(c)break b;break a}g=6;if(M[i+20>>2]<=c>>>0)break a}J[a+164>>2]=65536;J[a+168>>2]=65536;m=d&1024?d|3:d;d:{e:{if(!b)break e;J[a+164>>2]=J[b+16>>2];J[a+168>>2]=J[b+20>>2];k=J[b+44>>2];if(m&8|(k|0)==-1)break e;f=J[b>>2];d=J[f+540>> -2];if(!J[d+96>>2])break e;if(gc[J[d+72>>2]](h,k,c,m,J[f+104>>2],a+76|0,e+708|0)|0)break e;J[a+108>>2]=0;J[a+24>>2]=L[e+710>>1]<<6;J[a+28>>2]=L[e+708>>1]<<6;j=I[e+712>>1];J[a+32>>2]=j<<6;k=I[e+714>>1];J[a+36>>2]=k<<6;J[a+40>>2]=L[e+716>>1]<<6;f=I[e+718>>1];J[a+44>>2]=f<<6;b=I[e+720>>1];J[a+48>>2]=b<<6;d=L[e+722>>1];g=b;b=m&16;J[a+104>>2]=b?g:k;J[a+100>>2]=b?f:j;J[a+72>>2]=1651078259;J[a+52>>2]=d<<6;d=e+32|0;b=e+52|0;gc[J[J[h+540>>2]+140>>2]](h,0,c,d,b);J[a+56>>2]=L[e+52>>1];if(!(!K[h+292|0]|!L[h+330>> -1])){gc[J[J[h+540>>2]+140>>2]](h,1,c,d,b);J[a+60>>2]=L[e+52>>1];break d}if(L[h+372>>1]!=65535){J[a+60>>2]=I[h+442>>1]-I[h+444>>1];break d}J[a+60>>2]=I[h+220>>1]-I[h+222>>1];break d}g=6;if(m&16384)break a;j=J[i+2024>>2];f:{if(j){g=0;f=J[i+3060>>2];g:{if(!f)break g;h:switch(K[i+3052|0]){case 0:g=K[c+f|0];break g;case 3:break h;default:break g}if(M[i+3072>>2]>c-J[i+3068>>2]>>>0){g=K[i+3076|0];break g}g=f+2|0;d=K[f+1|0]|K[f|0]<<8;k=f+J[i+3064>>2]|0;while(1){if(c>>>0>=d>>>0){f=K[g+2|0]|K[g+1|0]<<8;if(f>>> -0>c>>>0){g=K[g|0];H[i+3076|0]=g;J[i+3072>>2]=f-d;J[i+3068>>2]=d;break g}d=f;g=g+3|0;if(k>>>0>g>>>0)continue}break}g=0}j=J[(i+(((j>>>0>(g&255)>>>0?g:j-1|0)&255)<<2)|0)+2028>>2];k=J[j+68>>2];f=J[i+1440>>2];d=J[j+60>>2];J[e+40>>2]=J[j+56>>2];J[e+44>>2]=d;d=J[j+52>>2];J[e+32>>2]=J[j+48>>2];J[e+36>>2]=d;n=J[j+76>>2];o=J[j+72>>2];if((f|0)==(k|0))break f;s=a,t=Dd(J[a+164>>2],f,k),J[s+164>>2]=t;s=a,t=Dd(J[a+168>>2],f,k),J[s+168>>2]=t;r=1;break f}f=i+1428|0;d=J[f+4>>2];J[e+40>>2]=J[f>>2];J[e+44>>2]=d;f=i+ -1420|0;d=J[f+4>>2];J[e+32>>2]=J[f>>2];J[e+36>>2]=d;n=J[i+1448>>2];o=J[i+1444>>2]}J[a+108>>2]=0;J[a+72>>2]=1869968492;j=m&1;H[a+161|0]=!j;q=!(m&2);H[a+160|0]=q;gc[J[p>>2]](e+708|0,h,b,a,q,m>>>16&15,1649,1650);if(m&256)H[e+1301|0]=1;k=m&1024;H[e+774|0]=k>>>10;d=J[J[h+128>>2]+52>>2];i:{if(d){g=gc[J[J[d>>2]>>2]](J[d+4>>2],c,e+52|0)|0;J[e+28>>2]=J[e+52>>2];J[e+24>>2]=J[e+56>>2];break i}g=cD(J[h+712>>2]+1204|0,c,e+28|0,e+24|0)}if(g)break a;d=e+708|0;g=gc[J[p+4>>2]](d,b,c)|0;if(g)break a;f=e+52|0;gc[J[l+ -24>>2]](f,d,0);d=J[e+24>>2];g=gc[J[p+8>>2]](f,J[e+28>>2],d)|0;if((g&255)==164){H[a+160|0]=0;q=0;g=gc[J[p+8>>2]](f,J[e+28>>2],d)|0;r=1}f=J[J[h+128>>2]+52>>2];j:{if(f){J[e+12>>2]=d;J[e+8>>2]=J[e+28>>2];gc[J[J[f>>2]+4>>2]](J[f+4>>2],e+8|0);break j}f=J[h+712>>2];if(J[f+1236>>2])break j;Sf(J[f+1204>>2],e+28|0)}if(g)break a;g=0;k:{if(J[J[h+128>>2]+52>>2])d=0;else{f=J[i+1232>>2];if(!f)break k;g=(J[i+1236>>2]+J[f+(c<<2)>>2]|0)-1|0}J[a+140>>2]=d;J[a+136>>2]=g}gc[J[e+788>>2]](e+708|0);l=J[J[h+128>>2]+52>>2]; -l:{if(!l)break l;f=J[J[l>>2]+8>>2];if(!f)break l;J[e+12>>2]=0;J[e+8>>2]=J[e+740>>2];d=J[e+752>>2];J[e+16>>2]=J[e+748>>2];J[e+20>>2]=d;g=gc[f|0](J[l+4>>2],c,0,e+8|0)|0;J[e+740>>2]=J[e+8>>2];d=J[e+20>>2];J[e+748>>2]=J[e+16>>2];J[e+752>>2]=d;if(g)break a}if(k){J[a+32>>2]=J[e+740>>2];J[a+40>>2]=J[e+1292>>2];f=J[e+40>>2];d=J[e+44>>2];c=J[e+32>>2];b=J[e+36>>2];a=J[a+156>>2];J[a+28>>2]=o;J[a+32>>2]=n;H[a+8|0]=1;J[a+20>>2]=f;J[a+24>>2]=d;J[a+12>>2]=c;J[a+16>>2]=b;break d}m:{if(L[h+250>>1]){I[e+8>>1]=0;I[e+ -28>>1]=0;gc[J[J[h+540>>2]+140>>2]](h,0,c,e+8|0,e+28|0);d=L[e+28>>1];J[a+32>>2]=I[e+8>>1];break m}d=J[e+1292>>2]}J[a+56>>2]=d;J[a+40>>2]=d;H[J[a+156>>2]+8|0]=0;n:{if(!(!K[h+292|0]|!L[h+330>>1])){I[e+8>>1]=0;I[e+28>>1]=0;gc[J[J[h+540>>2]+140>>2]](h,1,c,e+8|0,e+28|0);J[a+48>>2]=I[e+8>>1];d=L[e+28>>1];J[a+52>>2]=d;f=1;break n}if(L[h+372>>1]!=65535)d=I[h+442>>1]-I[h+444>>1]|0;else d=I[h+220>>1]-I[h+222>>1]|0;J[a+52>>2]=d;f=0}J[a+72>>2]=1869968492;J[a+60>>2]=d;l=a+108|0;J[a+124>>2]=b?L[b+14>>1]<24?260: -4:4;o:{if(!(J[e+36>>2]|(J[e+32>>2]!=65536|J[e+44>>2]!=65536)))if(!J[e+40>>2])break o;uo(l,e+32|0);s=a,t=Pc(J[a+40>>2],J[e+32>>2]),J[s+40>>2]=t;s=a,t=Pc(J[a+52>>2],J[e+44>>2]),J[s+52>>2]=t}if(n|o){Jh(l,o,n);J[a+40>>2]=J[a+40>>2]+o;J[a+52>>2]=J[a+52>>2]+n}if(!(!r&j)){j=J[a+168>>2];k=J[a+164>>2];p:{if(J[e+776>>2]!=0&q)break p;b=I[a+110>>1];if((b|0)<=0)break p;c=b&65535;d=J[a+112>>2];while(1){s=d,t=Pc(J[d>>2],k),J[s>>2]=t;s=d,t=Pc(J[d+4>>2],j),J[s+4>>2]=t;d=d+8|0;b=c>>>0>1;c=c-1|0;if(b)continue;break}}s= -a,t=Pc(J[a+40>>2],k),J[s+40>>2]=t;s=a,t=Pc(J[a+52>>2],j),J[s+52>>2]=t}Pp(l,e+8|0);d=J[e+8>>2];J[a+24>>2]=J[e+16>>2]-d;c=J[e+12>>2];b=J[e+20>>2];J[a+36>>2]=b;J[a+32>>2]=d;J[a+28>>2]=b-c;if(f){J[a+44>>2]=d+(J[a+40>>2]/-2|0);s=a,t=Pc(J[a+48>>2],J[a+168>>2]),J[s+48>>2]=t;break d}if(!(m&16))break d;gu(a+24|0,J[a+52>>2])}g=0}bc=e+1488|0;return g}function X8(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!d){if((c|0)<2&(b|0)<=0)break a;b:{if((c|0)<=0)break b;d=0;if((c|0)!=1){h=c&-2;while(1){f=d<<3;e=f+a|0;i= -e;e=J[e>>2];e=Dzb(e,e>>31,10078,0);j=fc;e=(((j&4095)<<20|e>>>12)&1)+((j&8191)<<19|e>>>13)|0;J[i>>2]=e;e=(f|8)+a|0;f=e;e=J[e>>2];e=Dzb(e,e>>31,10078,0);i=fc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[f>>2]=e;d=d+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}}if(!(c&1))break b;d=(d<<3)+a|0;e=d;d=J[e>>2];d=Dzb(d,d>>31,10078,0);g=fc;d=(((g&4095)<<20|d>>>12)&1)+((g&8191)<<19|d>>>13)|0;J[e>>2]=d}c:{if((b|0)<=0)break c;d=1;if((b|0)!=1){h=b&-2;d=0;g=0;while(1){f=d<<3;e=f+a|0;i=e+4|0;e=J[e+4>>2];e= -Dzb(e,e>>31,13318,0);j=fc;e=(((j&4095)<<20|e>>>12)&1)+((j&8191)<<19|e>>>13)|0;J[i>>2]=e;e=(f|12)+a|0;f=e;e=J[e>>2];e=Dzb(e,e>>31,13318,0);i=fc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[f>>2]=e;d=d+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}d=d<<1|1}if(!(b&1))break c;d=(d<<2)+a|0;e=d;d=J[e>>2];d=Dzb(d,d>>31,13318,0);g=fc;d=(((g&4095)<<20|d>>>12)&1)+((g&8191)<<19|d>>>13)|0;J[e>>2]=d}g=a-4|0;d:{if((c|0)<=0)break d;e=J[a>>2];h=g+(b<<3)|0;d=J[((b|0)>0?a+4|0:h)>>2]+J[a+4>>2]|0;d=Dzb(d,d>>31, -3633,0);f=fc;d=(((f&4095)<<20|d>>>12)&1)+((f&8191)<<19|d>>>13)|0;J[a>>2]=e-d;if((c|0)==1)break d;d=1;while(1){f=d<<3;e=f+a|0;i=e;j=J[e>>2];e=J[((b|0)>(d|0)?e+4|0:h)>>2]+J[((b|0)<(d|0)?h:f+g|0)>>2]|0;e=Dzb(e,e>>31,3633,0);f=fc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=j-e;d=d+1|0;if((d|0)!=(c|0))continue;break}}if((b|0)>0){h=((c<<3)+a|0)-8|0;d=0;while(1){f=(c|0)>(d|0);e=(d<<3)+a|0;i=e+4|0;j=J[e+4>>2];d=d+1|0;e=J[((c|0)>(d|0)?(d<<3)+a|0:h)>>2]+J[(f?e:h)>>2]|0;e=Dzb(e,e>>31,7233,0); -f=fc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=j-e;if((b|0)!=(d|0))continue;break}}e:{if((c|0)<=0)break e;e=J[a>>2];h=g+(b<<3)|0;d=J[((b|0)>0?a+4|0:h)>>2]+J[a+4>>2]|0;d=Dzb(d,d>>31,434,0);f=fc;d=(((f&4095)<<20|d>>>12)&1)+((f&8191)<<19|d>>>13)|0;J[a>>2]=d+e;if((c|0)==1)break e;d=1;while(1){f=d<<3;e=f+a|0;i=e;j=J[e>>2];e=J[((b|0)>(d|0)?e+4|0:h)>>2]+J[((b|0)<(d|0)?h:f+g|0)>>2]|0;e=Dzb(e,e>>31,434,0);f=fc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=e+j;d=d+1|0;if((d| -0)!=(c|0))continue;break}}if((b|0)<=0)break a;g=((c<<3)+a|0)-8|0;d=0;while(1){h=(c|0)>(d|0);e=(d<<3)+a|0;f=e+4|0;i=J[e+4>>2];d=d+1|0;e=J[((c|0)>(d|0)?(d<<3)+a|0:g)>>2]+J[(h?e:g)>>2]|0;e=Dzb(e,e>>31,12994,0);h=fc;e=(((h&4095)<<20|e>>>12)&1)+((h&8191)<<19|e>>>13)|0;J[f>>2]=e+i;if((b|0)!=(d|0))continue;break}break a}d=(c|0)<=0;if(d&(b|0)<=1)break a;f:{if(d)break f;d=0;if((c|0)!=1){h=c&-2;while(1){f=d<<3;e=f+a|0;i=e+4|0;e=J[e+4>>2];e=Dzb(e,e>>31,10078,0);j=fc;e=(((j&4095)<<20|e>>>12)&1)+((j&8191)<<19| -e>>>13)|0;J[i>>2]=e;e=(f|12)+a|0;f=e;e=J[e>>2];e=Dzb(e,e>>31,10078,0);i=fc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[f>>2]=e;d=d+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}}if(!(c&1))break f;d=(d<<3)+a|0;e=d+4|0;d=J[d+4>>2];d=Dzb(d,d>>31,10078,0);g=fc;d=(((g&4095)<<20|d>>>12)&1)+((g&8191)<<19|d>>>13)|0;J[e>>2]=d}g:{if((b|0)<=0)break g;d=0;if((b|0)!=1){h=b&-2;g=0;while(1){f=d<<3;e=f+a|0;i=e;e=J[e>>2];e=Dzb(e,e>>31,13318,0);j=fc;e=(((j&4095)<<20|e>>>12)&1)+((j&8191)<<19|e>>>13)|0;J[i>>2]= -e;e=(f|8)+a|0;f=e;e=J[e>>2];e=Dzb(e,e>>31,13318,0);i=fc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[f>>2]=e;d=d+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}d=d<<1}if(!(b&1))break g;d=(d<<2)+a|0;e=d;d=J[e>>2];d=Dzb(d,d>>31,13318,0);g=fc;d=(((g&4095)<<20|d>>>12)&1)+((g&8191)<<19|d>>>13)|0;J[e>>2]=d}if((c|0)>0){g=((b<<3)+a|0)-8|0;d=0;while(1){h=(b|0)>(d|0);e=(d<<3)+a|0;f=e+4|0;i=J[e+4>>2];d=d+1|0;e=J[((b|0)>(d|0)?(d<<3)+a|0:g)>>2]+J[(h?e:g)>>2]|0;e=Dzb(e,e>>31,3633,0);h=fc;e=(((h&4095)<<20| -e>>>12)&1)+((h&8191)<<19|e>>>13)|0;J[f>>2]=i-e;if((c|0)!=(d|0))continue;break}}g=a-4|0;h:{if((b|0)<=0)break h;e=J[a>>2];h=g+(c<<3)|0;d=J[a+4>>2]+J[((c|0)>0?a+4|0:h)>>2]|0;d=Dzb(d,d>>31,7233,0);f=fc;d=(((f&4095)<<20|d>>>12)&1)+((f&8191)<<19|d>>>13)|0;J[a>>2]=e-d;if((b|0)==1)break h;d=1;while(1){f=d<<3;e=f+a|0;i=e;j=J[e>>2];e=J[((c|0)<(d|0)?h:f+g|0)>>2]+J[((c|0)>(d|0)?e+4|0:h)>>2]|0;e=Dzb(e,e>>31,7233,0);f=fc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=j-e;d=d+1|0;if((d|0)!=(b|0))continue; -break}}if((c|0)>0){h=((b<<3)+a|0)-8|0;d=0;while(1){f=(b|0)>(d|0);e=(d<<3)+a|0;i=e+4|0;j=J[e+4>>2];d=d+1|0;e=J[((b|0)>(d|0)?(d<<3)+a|0:h)>>2]+J[(f?e:h)>>2]|0;e=Dzb(e,e>>31,434,0);f=fc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=e+j;if((c|0)!=(d|0))continue;break}}d=1;if((b|0)<=0)break a;f=J[a>>2];h=g+(c<<3)|0;e=J[a+4>>2]+J[((c|0)>0?a+4|0:h)>>2]|0;e=Dzb(e,e>>31,12994,0);i=fc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[a>>2]=e+f;if((b|0)==1)break a;while(1){f=d<<3;e=f+a|0;i= -e;j=J[e>>2];e=J[((c|0)<(d|0)?h:f+g|0)>>2]+J[((c|0)>(d|0)?e+4|0:h)>>2]|0;e=Dzb(e,e>>31,12994,0);f=fc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=e+j;d=d+1|0;if((d|0)!=(b|0))continue;break}}}function Wyb(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,u=0,v=0,w=0,x=0;i=bc-48|0;bc=i;a:{b:{c=Wx(c?c:204201);if(c){d=Go(c);if(!d){k=1;while(1){d=Or(2631184,J[c+4>>2]);c:{if(!J[(d?d:2631056)>>2]){k=0;break c}J[i>>2]=J[c+4>>2];hd(204428,i)}d=Go(c); -if(!d)continue;break}k=!k}zu(c);if((d|0)>=0)break b}hd(199468,0);c=-1;break a}d:{e:{f:{g:{c=J[a+28>>2];switch((c>>8)-3|0){case 0:break f;case 1:break g;default:break e}}if((c|0)!=1025)hd(200427,0);J[i+4>>2]=3;d=fk(a,0);J[i+8>>2]=d;h:{if((d|0)<0)break h;c=fk(a,1);J[i+12>>2]=c;if((c|0)<0)break h;c=fk(a,2);J[i+16>>2]=c;if((c|0)<0)break h;n=3;break d}hd(201048,0);c=-1;break a}if((c|0)!=769)hd(200427,0);o=1;J[i+4>>2]=1;d=fk(a,0);J[i+8>>2]=d;c=-1;n=1;if((d|0)>=0)break d;hd(201048,0);break a}hd(201871,0); +break}if(e>>>0>>0){h=g;break f}else{J[g>>2]=n;J[e>>2]=l;i=(g|0)==(i|0)?e:i;j=j+1|0;continue}}}lO(f,f+4|0,f+8|0,b-4|0,c);break d}w:{if((h|0)==(i|0))break w;e=J[i>>2];o=J[J[(e<<2)+a>>2]+4>>2];g=a;a=J[h>>2];if(o>>>0>=M[J[g+(a<<2)>>2]+4>>2])break w;J[h>>2]=e;J[i>>2]=a;j=j+1|0}if(!j){e=K9(f,h,c);a=h+4|0;if(K9(a,b,c)){a=f;b=h;if(!e)continue a;break d}if(e)continue b}if((h-f|0)<(b-h|0)){HE(f,h,c,d);a=h+4|0;continue b}HE(h+4|0,b,c,d);a=f;b=h;continue a}e=k;if((g|0)==(e|0))break d;while(1){i=J[J[(J[f>> +2]<<2)+a>>2]+4>>2];while(1){h=g;g=h+4|0;j=J[h>>2];if(i>>>0>=M[J[(j<<2)+a>>2]+4>>2])continue;break}while(1){e=e-4|0;m=J[e>>2];if(i>>>0>2]+4>>2])continue;break}if(e>>>0<=h>>>0){f=h;continue c}else{J[h>>2]=m;J[e>>2]=j;continue}}}break}break}break}}function s2(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=fc+-64|0;fc=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!J[a+28>>2]){b=vc(60);J[699344]=0;J[b+4>>2]=1;J[b>>2]=769744;d=J[699344];J[699344]=0;if((d|0)==1)break k;J[b>>2]=769920;J[b+ +24>>2]=0;J[b+28>>2]=0;d=b+16|0;J[d>>2]=0;J[d+4>>2]=0;J[b+12>>2]=d;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[a+24>>2]=b;J[b+8>>2]=a;kc[J[J[a>>2]+8>>2]](a)|0;J[a+28>>2]=J[a+24>>2];break l}b=vc(60);J[699344]=0;J[b+4>>2]=1;J[b>>2]=769744;d=J[699344];J[699344]=0;if((d|0)==1)break j;J[b>>2]=769920;J[b+24>>2]=0;J[b+28>>2]=0;d=b+16|0;J[d>>2]=0;J[d+4>>2]=0;J[b+12>>2]=d;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]= +0;J[c+16>>2]=b;J[b+8>>2]=a;kc[J[J[a>>2]+8>>2]](a)|0;b=J[a+28>>2];g=b+24|0;d=J[b+28>>2];j=c+16|0;m:{e=J[g+4>>2];f=J[g+8>>2];if(e>>>0>>0){if((d|0)==(e|0)){J[d>>2]=J[j>>2];J[g+4>>2]=d+4;break m}h=(e-d|0)-4|0;i=h>>2;b=e;f=b-4|0;if(b>>>0>f>>>0)while(1){J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;if(e>>>0>f>>>0)continue;break}J[g+4>>2]=b;cd(e-(i<<2)|0,d,h);J[d>>2]=J[((d>>>0<=j>>>0&M[g+4>>2]>j>>>0)<<2)+j>>2];break m}n:{h=J[g>>2];b=(e-h>>2)+1|0;if(b>>>0<1073741824){e=f-h|0;f=e>>1;f=e>>>0>=2147483644?1073741823:b>>> +0>>0?f:b;if(f){if(f>>>0>=1073741824)break n;b=vc(f<<2)}else b=0;i=b+(f<<2)|0;k=d-h|0;l=k>>2;e=b+(l<<2)|0;o:{p:{if((f|0)!=(l|0))break p;if((k|0)>0){e=((l+1|0)/-2<<2)+e|0;break p}e=(d|0)==(h|0)?1:k>>1;if(e>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)==1)break o;B()}J[699344]=0;i=e<<2;f=_(4,i|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break o;i=f+i|0;e=f+(e&-4)|0;if(!b)break p;uc(b);h=J[g>>2]}J[e>>2]=J[j>>2];f=e;if((d|0)!=(h|0)){b=d;while(1){f=f-4|0;b=b-4|0;J[f>>2]=J[b>>2]; +if((b|0)!=(h|0))continue;break}}b=J[g+4>>2]-d|0;d=cd(e+4|0,d,b);J[g+8>>2]=i;J[g+4>>2]=b+d;b=J[g>>2];J[g>>2]=f;if(b)uc(b);break m}a=Z()|0;if(b)uc(b);break a}eh(g);B()}Pd();B()}J[a+28>>2]=J[c+16>>2]}b=J[a+12>>2];q:{if(!b){J[c+16>>2]=0;H[c+27|0]=0;break q}b=nu(b);if(!b){J[c+16>>2]=0;H[c+27|0]=0;break q}Ll(c+16|0,b,Yc(b))}b=J[a+28>>2];if(H[b+59|0]<0)uc(J[b+48>>2]);d=J[c+20>>2];J[b+48>>2]=J[c+16>>2];J[b+52>>2]=d;J[b+56>>2]=J[c+24>>2];b=vc(12);d=J[a+28>>2];J[b+4>>2]=a+32;J[b+8>>2]=d;d=J[a+32>>2];J[b>>2]= +d;J[d+4>>2]=b;J[a+32>>2]=b;J[a+40>>2]=J[a+40>>2]+1;b=J[a+12>>2];if(!b)break e;d=M1(b);b=J[a+12>>2];if((d|0)<=0)break f;r:{s:{if(b){N1(b);b=J[a+12>>2];if(b)break s}H[c+51|0]=0;b=c+40|0;break r}e=nu(b);if(!e){H[c+51|0]=0;b=c+40|0;break r}b=Yc(e);if(b>>>0>=2147483632)break i;t:{if(b>>>0<=10){H[c+51|0]=b;d=c+40|0;break t}f=(b|15)+1|0;d=vc(f);J[c+48>>2]=f|-2147483648;J[c+40>>2]=d;J[c+44>>2]=b}b=cd(d,e,b)+b|0}H[b|0]=0;b=K[c+51|0];if(!(b<<24>>24<0?J[c+44>>2]:b))break h;u:{while(1){f=J[a+28>>2];b=J[a+12>> +2];J[699344]=0;e=_(3242,b|0)|0;b=J[699344];J[699344]=0;v:{w:{x:{y:{z:{A:{if((b|0)==1)break A;B:{if(!e){H[c+11|0]=0;b=c;break B}d=Yc(e);if(d>>>0>=2147483632){J[699344]=0;$(3030,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break z;break b}C:{if(d>>>0<=10){H[c+11|0]=d;b=c;break C}J[699344]=0;g=(d|15)+1|0;b=_(4,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break A;J[c>>2]=b;J[c+4>>2]=d;J[c+8>>2]=g|-2147483648}b=cd(b,e,d)+d|0}H[b|0]=0;D:{if(H[c+51|0]>=0){J[c+24>>2]=J[c+48>>2];b=J[c+44>>2];J[c+16>>2]=J[c+40>> +2];J[c+20>>2]=b;break D}J[699344]=0;ca(2838,c+16|0,J[c+40>>2],J[c+44>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break y}b=J[c+4>>2];J[c+28>>2]=J[c>>2];J[c+32>>2]=b;J[c+36>>2]=J[c+8>>2];J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[699344]=0;b=c+16|0;ia(3254,c+56|0,f+12|0,b|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break x;if(H[c+39|0]<0)uc(J[c+28>>2]);if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+11|0]<0)uc(J[c>>2]);b=J[a+12>>2];if(!b)break g;J[699344]=0;b=JK(b);d=J[699344];J[699344]=0;if((d|0)==1)break u;if((b|0)== +1)break v;break h}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break w}a=Z()|0;OC(c+16|0)}if(H[c+11|0]>=0)break c;uc(J[c>>2]);break c}E:{b=J[a+12>>2];F:{if(!b){H[c+27|0]=0;b=c+16|0;break F}J[699344]=0;d=_(3256,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break E;if(!d){H[c+27|0]=0;b=c+16|0;break F}b=Yc(d);if(b>>>0>=2147483632){J[699344]=0;$(3030,c+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;break c}G:{if(b>>>0<=10){H[c+27|0]=b;e=c+16|0;break G}J[699344]=0;f=(b|15)+1|0;e=_(4,f|0)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break E;J[c+16>>2]=e;J[c+20>>2]=b;J[c+24>>2]=f|-2147483648}b=cd(e,d,b)+b|0}H[b|0]=0;if(H[c+51|0]<0)uc(J[c+40>>2]);J[c+48>>2]=J[c+24>>2];b=J[c+20>>2];J[c+40>>2]=J[c+16>>2];J[c+44>>2]=b;b=H[c+51|0];if((b|0)<0?J[c+44>>2]:b&255)continue;break h}break}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;uc(b);break a}a=Z()|0;uc(b);break a}_d(c+40|0);B()}b=J[a+12>>2];if(!b)break g;J[699344]=0;IK(b);b=J[699344];J[699344]=0;if((b|0)==1)break d}if(H[c+51|0]<0)uc(J[c+40>>2]);b=J[a+12>>2]}if(!b)break e; +if(!Mr(b))break e;b=J[a+32>>2];d=J[b>>2];e=J[b+4>>2];J[d+4>>2]=e;J[e>>2]=d;J[a+40>>2]=J[a+40>>2]-1;uc(b);J[a+28>>2]=J[(J[a+40>>2]?J[a+32>>2]+8|0:a+24|0)>>2]}fc=c- -64|0;return}a=Z()|0}if(H[c+51|0]>=0)break a;uc(J[c+40>>2]);break a}B()}ba(a|0);B()}function oL(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,w=0;m=fc-32|0;k=J[b>>2];c=J[b+8>>2];d=J[c>>2];l=J[c+12>>2];J[a+5200>>2]=0;J[a+5204>>2]=573;q=-1;c=0;a:{if((l|0)>0){while(1){e=(c<<2)+k|0;b:{if(L[e>>1]){e= +J[a+5200>>2]+1|0;J[a+5200>>2]=e;J[((e<<2)+a|0)+2908>>2]=c;H[(a+c|0)+5208|0]=0;q=c;break b}I[e+2>>1]=0}c=c+1|0;if((l|0)!=(c|0))continue;break}c=J[a+5200>>2];if((c|0)>1)break a}while(1){c=c+1|0;J[a+5200>>2]=c;h=((c<<2)+a|0)+2908|0;e=q+1|0;f=(q|0)<2;c=f?e:0;J[h>>2]=c;h=c<<2;I[h+k>>1]=1;H[(a+c|0)+5208|0]=0;J[a+5800>>2]=J[a+5800>>2]-1;if(d)J[a+5804>>2]=J[a+5804>>2]-L[(d+h|0)+2>>1];q=f?e:q;c=J[a+5200>>2];if((c|0)<2)continue;break}}J[b+4>>2]=q;c=c>>>1|0;while(1){h=c;g=J[((c<<2)+a|0)+2908>>2];d=c<<1;f=J[a+ +5200>>2];c:{if((d|0)>(f|0))break c;i=(a+g|0)+5208|0;n=(g<<2)+k|0;e=c;while(1){d:{if((d|0)>=(f|0)){c=d;break d}c=a+2908|0;f=d|1;j=J[c+(f<<2)>>2];p=L[(j<<2)+k>>1];o=J[c+(d<<2)>>2];c=L[(o<<2)+k>>1];if(p>>>0>=c>>>0){if((c|0)!=(p|0)){c=d;break d}c=d;d=a+5208|0;if(K[d+j|0]>K[d+o|0])break d}c=f}f=L[n>>1];d=J[((c<<2)+a|0)+2908>>2];j=L[(d<<2)+k>>1];if(f>>>0>>0){c=e;break c}if(!((f|0)!=(j|0)|K[i|0]>K[(a+d|0)+5208|0])){c=e;break c}J[((e<<2)+a|0)+2908>>2]=d;e=c;d=c<<1;f=J[a+5200>>2];if((d|0)<=(f|0))continue; +break}}J[((c<<2)+a|0)+2908>>2]=g;c=h-1|0;if((h|0)>1)continue;break}d=J[a+5200>>2];while(1){h=l;f=d-1|0;J[a+5200>>2]=f;i=J[a+2912>>2];g=J[((d<<2)+a|0)+2908>>2];J[a+2912>>2]=g;c=1;e:{if((d|0)<3)break e;l=(a+g|0)+5208|0;d=2;n=(g<<2)+k|0;e=1;while(1){f:{if((d|0)>=(f|0)){c=d;break f}c=a+2908|0;f=d|1;j=J[c+(f<<2)>>2];p=L[(j<<2)+k>>1];o=J[c+(d<<2)>>2];c=L[(o<<2)+k>>1];if(p>>>0>=c>>>0){if((c|0)!=(p|0)){c=d;break f}c=d;d=a+5208|0;if(K[d+j|0]>K[d+o|0])break f}c=f}f=L[n>>1];d=J[((c<<2)+a|0)+2908>>2];j=L[(d<< +2)+k>>1];if(f>>>0>>0){c=e;break e}if(!((f|0)!=(j|0)|K[l|0]>K[(a+d|0)+5208|0])){c=e;break e}J[((e<<2)+a|0)+2908>>2]=d;e=c;d=c<<1;f=J[a+5200>>2];if((d|0)<=(f|0))continue;break}}d=2;l=a+2908|0;J[l+(c<<2)>>2]=g;e=J[a+5204>>2]-1|0;J[a+5204>>2]=e;c=J[a+2912>>2];J[l+(e<<2)>>2]=i;e=J[a+5204>>2]-1|0;J[a+5204>>2]=e;J[l+(e<<2)>>2]=c;n=(h<<2)+k|0;e=(c<<2)+k|0;f=(i<<2)+k|0;I[n>>1]=L[e>>1]+L[f>>1];g=a+5208|0;j=g+h|0;i=K[g+i|0];c=K[c+g|0];H[j|0]=(c>>>0>>0?i:c)+1;I[e+2>>1]=h;I[f+2>>1]=h;J[a+2912>>2]=h;f=1; +c=1;e=J[a+5200>>2];g:{if((e|0)<2)break g;while(1){h:{if((d|0)>=(e|0))break h;c=d|1;e=J[l+(c<<2)>>2];i=L[(e<<2)+k>>1];p=J[l+(d<<2)>>2];o=L[(p<<2)+k>>1];if(i>>>0>=o>>>0)if((i|0)!=(o|0)|K[e+g|0]>K[g+p|0])break h;d=c}e=L[n>>1];c=d;d=J[((c<<2)+a|0)+2908>>2];i=L[(d<<2)+k>>1];if(e>>>0>>0){c=f;break g}if(!((e|0)!=(i|0)|K[j|0]>K[(a+d|0)+5208|0])){c=f;break g}J[((f<<2)+a|0)+2908>>2]=d;f=c;d=c<<1;e=J[a+5200>>2];if((d|0)<=(e|0))continue;break}}l=h+1|0;J[((c<<2)+a|0)+2908>>2]=h;d=J[a+5200>>2];if((d|0)>1)continue; +break}c=J[a+5204>>2]-1|0;J[a+5204>>2]=c;e=a+2908|0;J[e+(c<<2)>>2]=J[a+2912>>2];f=J[b+4>>2];c=J[b+8>>2];d=J[c+16>>2];i=J[c+8>>2];w=J[c+4>>2];n=J[c>>2];h=J[b>>2];r=a+2900|0;b=r;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;s=a+2892|0;b=s;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;t=a+2884|0;b=t;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;u=a+2876|0;b=u;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;l=0;I[(h+(J[e+(J[a+5204>>2]<<2)>>2]<<2)|0)+2>>1]=0;b=J[a+5204>>2];i:{if((b|0)>571)break i;c=b+1|0; +e=0;while(1){b=J[((c<<2)+a|0)+2908>>2];v=b<<2;j=h+v|0;g=L[(h+(L[j+2>>1]<<2)|0)+2>>1];p=(g|0)>=(d|0);o=p?d:g+1|0;I[j+2>>1]=o;j:{if((b|0)>(f|0))break j;g=((o<<1)+a|0)+2876|0;I[g>>1]=L[g>>1]+1;g=0;g=(b|0)>=(i|0)?J[w+(b-i<<2)>>2]:g;b=L[j>>1];J[a+5800>>2]=J[a+5800>>2]+P(o+g|0,b);if(!n)break j;J[a+5804>>2]=J[a+5804>>2]+P(b,L[(n+v|0)+2>>1]+g|0)}e=e+p|0;c=c+1|0;if((c|0)!=573)continue;break}if(!e)break i;g=((d<<1)+a|0)+2876|0;while(1){c=d;while(1){b=c;c=b-1|0;i=((c<<1)+a|0)+2876|0;n=L[i>>1];if(!n)continue; +break}I[i>>1]=n-1;b=((b<<1)+a|0)+2876|0;I[b>>1]=L[b>>1]+2;I[g>>1]=L[g>>1]-1;b=(e|0)>2;e=e-2|0;if(b)continue;break}if(!d)break i;c=573;while(1){e=L[((d<<1)+a|0)+2876>>1];if(e)while(1){c=c-1|0;b=J[((c<<2)+a|0)+2908>>2];if((b|0)>(f|0))continue;b=h+(b<<2)|0;g=L[b+2>>1];if((g|0)!=(d|0)){J[a+5800>>2]=J[a+5800>>2]+P(L[b>>1],d-g|0);I[b+2>>1]=d}e=e-1|0;if(e)continue;break}d=d-1|0;if(d)continue;break}}b=L[u>>1]<<1;I[m+2>>1]=b;b=b+L[a+2878>>1]<<1;I[m+4>>1]=b;b=b+L[a+2880>>1]<<1;I[m+6>>1]=b;b=b+L[a+2882>>1]<< +1;I[m+8>>1]=b;b=b+L[t>>1]<<1;I[m+10>>1]=b;b=b+L[a+2886>>1]<<1;I[m+12>>1]=b;b=b+L[a+2888>>1]<<1;I[m+14>>1]=b;b=b+L[a+2890>>1]<<1;I[m+16>>1]=b;b=b+L[s>>1]<<1;I[m+18>>1]=b;b=b+L[a+2894>>1]<<1;I[m+20>>1]=b;b=b+L[a+2896>>1]<<1;I[m+22>>1]=b;b=b+L[a+2898>>1]<<1;I[m+24>>1]=b;b=b+L[r>>1]<<1;I[m+26>>1]=b;b=b+L[a+2902>>1]<<1;I[m+28>>1]=b;I[m+30>>1]=b+L[a+2904>>1]<<1;if((q|0)>=0)while(1){h=(l<<2)+k|0;a=L[h+2>>1];if(a){b=(a<<1)+m|0;c=L[b>>1];I[b>>1]=c+1;b=a&3;d=0;k:{if(a>>>0<4){a=0;break k}g=a&65532;a=0;e=0;while(1){f= +c>>>3&1|(c>>>2&1|(c&2|(c&1|a)<<2))<<1;a=f<<1;c=c>>>4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}if(b)while(1){f=c&1|a;a=f<<1;c=c>>>1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}I[h>>1]=f}a=(l|0)!=(q|0);l=l+1|0;if(a)continue;break}}function $Ja(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=Q(0),n=0,o=0;j=fc-48|0;fc=j;a:{b:{c:{d:{e:{if(b){if(!a)break e;if(!c)break d;J[a+8>>2]=1;d=j+40|0;f:{if((ui(b,d,2,c)|0)!=2)break f;wd(d,j+44|0,2);if(J[j+44>>2]!=65359)break f;J[a+8>>2]=2;d=J[b+56>> +2];f=d-2|0;d=J[b+60>>2]-(d>>>0<2)|0;e=J[a+188>>2];J[e>>2]=f;J[e+4>>2]=d;J[j+16>>2]=f;J[j+20>>2]=d;Nc(c,4,2364318,j+16|0);i=J[a+188>>2];f=J[i>>2];g=J[i+24>>2];d=g+1|0;e=J[i+32>>2];if(d>>>0<=e>>>0){e=J[i+28>>2];break c}m=Q(Q(e>>>0)+Q(100));g:{if(m=Q(0)){d=~~m>>>0;break g}d=0}J[i+32>>2]=d;e=ch(J[i+28>>2],P(d,24));if(e){J[i+28>>2]=e;g=J[i+24>>2];d=g+1|0;break c}uc(J[i+28>>2]);J[i+32>>2]=0;J[i+24>>2]=0;J[i+28>>2]=0;Nc(c,1,2364077,0)}Nc(c,1,2363867,0);a=0;break b}fa(2358446,2358254,8677, +2363837);B()}fa(2358373,2358254,8678,2363837);B()}fa(2358486,2358254,8679,2363837);B()}e=P(g,24)+e|0;J[e+16>>2]=2;J[e+8>>2]=f;J[e+12>>2]=f>>31;I[e>>1]=65359;J[i+24>>2]=d;if((ui(b,J[a+16>>2],2,c)|0)!=2){Nc(c,1,2358649,0);a=0;break b}wd(J[a+16>>2],j+40|0,2);h:{i:{e=J[j+40>>2];if((e|0)!=65424){while(1){g=2364672;if(e>>>0<=65279){J[j>>2]=e;Nc(c,1,2363891,j);a=0;break b}while(1){d=g;f=J[d>>2];if(f){g=d+12|0;if((e|0)!=(f|0))continue}break}j:{k:{if(f)break k;k=2;Nc(c,2,2364357,0);g=2358649;l:{m:{if((ui(b, +J[a+16>>2],2,c)|0)!=2)break m;while(1){wd(J[a+16>>2],j+44|0,2);f=2364672;e=J[j+44>>2];if(e>>>0>=65280){while(1){d=f;l=J[d>>2];if(l){f=d+12|0;if((e|0)!=(l|0))continue}break}if(!(J[d+4>>2]&J[a+8>>2])){g=2358759;break m}if(l){if((l|0)==65424){J[j+40>>2]=65424;break j}i=J[b+56>>2];f=J[a+188>>2];if(!f)break a;d=J[f+24>>2];e=d+1|0;g=J[f+32>>2];if(e>>>0<=g>>>0){g=J[f+28>>2];break l}m=Q(Q(g>>>0)+Q(100));n:{if(m=Q(0)){d=~~m>>>0;break n}d=0}J[f+32>>2]=d;g=ch(J[f+28>>2],P(d,24));if(g){J[f+28>> +2]=g;d=J[f+24>>2];e=d+1|0;break l}uc(J[f+28>>2]);J[f+32>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;g=2364077;break m}k=k+2|0}if((ui(b,J[a+16>>2],2,c)|0)==2)continue;break}}Nc(c,1,g,0);Nc(c,1,2363942,0);a=0;break b}d=P(d,24)+g|0;J[d+16>>2]=k;g=i-k|0;J[d+8>>2]=g;J[d+12>>2]=g>>31;I[d>>1]=0;J[f+24>>2]=e;J[j+40>>2]=l;e=2364672;while(1){d=e;f=J[d>>2];if(!f)break k;e=d+12|0;if((f|0)!=(l|0))continue;break}}if(!(J[d+4>>2]&J[a+8>>2])){Nc(c,1,2358759,0);a=0;break b}if((ui(b,J[a+16>>2],2,c)|0)!=2){Nc(c,1,2358649,0);a=0; +break b}wd(J[a+16>>2],j+36|0,2);e=J[j+36>>2];if(e>>>0<=1){Nc(c,1,2363997,0);a=0;break b}g=e-2|0;J[j+36>>2]=g;e=J[a+16>>2];if(M[a+20>>2]>>0){e=ch(e,g);if(!e){uc(J[a+16>>2]);J[a+16>>2]=0;J[a+20>>2]=0;Nc(c,1,2358924,0);a=0;break b}J[a+16>>2]=e;g=J[j+36>>2];J[a+20>>2]=g}e=ui(b,e,g,c);if((e|0)!=J[j+36>>2]){Nc(c,1,2358649,0);a=0;break b}if(!(kc[J[d+8>>2]](a,J[a+16>>2],e,c)|0)){Nc(c,1,2364018,0);a=0;break b}i=J[b+56>>2];d=J[a+188>>2];if(!d)break a;l=J[j+36>>2];e=J[d+24>>2];k=e+1|0;g=J[d+32>>2];o:{if(k>>> +0<=g>>>0){g=J[d+28>>2];break o}m=Q(Q(g>>>0)+Q(100));p:{if(m=Q(0)){e=~~m>>>0;break p}e=0}J[d+32>>2]=e;g=ch(J[d+28>>2],P(e,24));if(!g)break h;J[d+28>>2]=g;e=J[d+24>>2];k=e+1|0}e=P(e,24)+g|0;J[e+16>>2]=l+4;g=(i-l|0)-4|0;J[e+8>>2]=g;J[e+12>>2]=g>>31;I[e>>1]=f;J[d+24>>2]=k;if((ui(b,J[a+16>>2],2,c)|0)!=2){Nc(c,1,2358649,0);a=0;break b}o=(f|0)==65372?1:o;h=(f|0)==65362?1:h;n=(f|0)==65361?1:n;wd(J[a+16>>2],j+40|0,2);e=J[j+40>>2];if((e|0)!=65424)continue}break}if(n)break i}Nc(c,1,2364113, +0);a=0;break b}if(!h){Nc(c,1,2364159,0);a=0;break b}if(!o){Nc(c,1,2364205,0);a=0;break b}f=0;k=0;n=0;i=fc-16|0;fc=i;q:{r:{s:{t:{if(a+80|0){if(J[a+136>>2])break t;o=1;if(!(H[a+176|0]&1))break q;e=J[a+112>>2];if(!e)break r;while(1){d=J[a+116>>2]+(n<<3)|0;h=J[d>>2];if(h){g=J[d+4>>2];d=f-g|0;d=d>>>0<=f>>>0?d:0;if(f>>>0>>0){e=g-f|0;g=f+h|0;while(1){if(e>>>0<4)break s;wd(g,i+12|0,4);f=J[i+12>>2];h=e-4|0;l=f>>>0>h>>>0;d=l?f-h|0:d;e=h-f|0;k=f+k|0;g=((l?0:f)+g|0)+4|0;if(f>>>0>>0)continue;break}e=J[a+ +112>>2]}f=d}n=n+1|0;if(n>>>0>>0)continue;break}if(!f)break r;o=0;Nc(c,1,2364496,0);break q}fa(2364411,2358254,3893,2364422);B()}fa(2364440,2358254,3895,2364422);B()}o=0;Nc(c,1,2364465,0);break q}f=ef(k);J[a+136>>2]=f;if(!f){o=0;Nc(c,1,2364519,0);break q}J[a+124>>2]=k;h=J[a+116>>2];u:{d=J[a+112>>2];if(d){e=0;f=0;k=0;while(1){n=k<<3;l=n+h|0;g=J[l>>2];if(g){h=J[a+136>>2]+f|0;d=J[l+4>>2];v:{if(d>>>0<=e>>>0){xc(h,g,d);f=d+f|0;e=e-d|0;break v}xc(h,g,e);f=e+f|0;h=d-e|0;if(h){e=e+g|0;while(1){if(h>>>0< +4)break u;wd(e,i+8|0,4);e=e+4|0;g=J[a+136>>2]+f|0;d=h-4|0;h=J[i+8>>2];if(d>>>0>>0){xc(g,e,d);f=d+f|0;e=J[i+8>>2]-d|0;break v}xc(g,e,h);g=J[i+8>>2];f=g+f|0;e=e+g|0;h=d-g|0;if(h)continue;break}}e=0}uc(J[n+J[a+116>>2]>>2]);h=J[a+116>>2];d=n+h|0;J[d>>2]=0;J[d+4>>2]=0;d=J[a+112>>2]}k=k+1|0;if(k>>>0>>0)continue;break}k=J[a+124>>2];f=J[a+136>>2]}J[a+144>>2]=k;J[a+120>>2]=f;J[a+112>>2]=0;uc(h);J[a+116>>2]=0;break q}o=0;Nc(c,1,2364465,0)}fc=i+16|0;if(!o){Nc(c,1,2364251,0);a=0;break b}Nc(c,4,2364277, +0);c=J[a+188>>2];d=J[b+56>>2];d=d-2|0;J[c+8>>2]=d;J[c+12>>2]=0;J[a+8>>2]=8;a=1;break b}uc(J[d+28>>2]);J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;Nc(c,1,2364077,0);a=0}fc=j+48|0;return a|0}fa(2364373,2358254,8163,2364390);B()}function aba(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=fc-(((b<<3)+8&1073741808)<<2)|0;l=(b-d|0)+1>>1;a:{if((l|0)<=0)break a;k=l;f=a;e=g;m=l&3;if(m){j=c<<2;while(1){i=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=i;i=J[f+60>>2];J[e+56>>2]=J[f+56>>2];J[e+60>>2]=i;i=J[f+52>>2];J[e+48>> +2]=J[f+48>>2];J[e+52>>2]=i;i=J[f+44>>2];J[e+40>>2]=J[f+40>>2];J[e+44>>2]=i;i=J[f+36>>2];J[e+32>>2]=J[f+32>>2];J[e+36>>2]=i;i=J[f+28>>2];J[e+24>>2]=J[f+24>>2];J[e+28>>2]=i;i=J[f+20>>2];J[e+16>>2]=J[f+16>>2];J[e+20>>2]=i;i=J[f+12>>2];J[e+8>>2]=J[f+8>>2];J[e+12>>2]=i;e=e- -64|0;k=k-1|0;f=f+j|0;h=h+1|0;if((m|0)!=(h|0))continue;break}}if(l>>>0<4)break a;i=c<<2;while(1){h=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=h;h=J[f+60>>2];J[e+56>>2]=J[f+56>>2];J[e+60>>2]=h;h=J[f+52>>2];J[e+48>>2]=J[f+48>>2];J[e+52>>2]= +h;h=J[f+44>>2];J[e+40>>2]=J[f+40>>2];J[e+44>>2]=h;h=J[f+36>>2];J[e+32>>2]=J[f+32>>2];J[e+36>>2]=h;h=J[f+28>>2];J[e+24>>2]=J[f+24>>2];J[e+28>>2]=h;h=J[f+20>>2];J[e+16>>2]=J[f+16>>2];J[e+20>>2]=h;h=J[f+12>>2];J[e+8>>2]=J[f+8>>2];J[e+12>>2]=h;j=f+i|0;f=J[j+4>>2];h=e- -64|0;J[h>>2]=J[j>>2];J[h+4>>2]=f;f=J[j+12>>2];J[e+72>>2]=J[j+8>>2];J[e+76>>2]=f;f=J[j+20>>2];J[e+80>>2]=J[j+16>>2];J[e+84>>2]=f;f=J[j+28>>2];J[e+88>>2]=J[j+24>>2];J[e+92>>2]=f;f=J[j+36>>2];J[e+96>>2]=J[j+32>>2];J[e+100>>2]=f;f=J[j+44>> +2];J[e+104>>2]=J[j+40>>2];J[e+108>>2]=f;f=J[j+52>>2];J[e+112>>2]=J[j+48>>2];J[e+116>>2]=f;f=J[j+60>>2];J[e+120>>2]=J[j+56>>2];J[e+124>>2]=f;h=i+j|0;f=J[h+4>>2];J[e+128>>2]=J[h>>2];J[e+132>>2]=f;f=J[h+12>>2];J[e+136>>2]=J[h+8>>2];J[e+140>>2]=f;f=J[h+20>>2];J[e+144>>2]=J[h+16>>2];J[e+148>>2]=f;f=J[h+28>>2];J[e+152>>2]=J[h+24>>2];J[e+156>>2]=f;f=J[h+36>>2];J[e+160>>2]=J[h+32>>2];J[e+164>>2]=f;f=J[h+44>>2];J[e+168>>2]=J[h+40>>2];J[e+172>>2]=f;f=J[h+52>>2];J[e+176>>2]=J[h+48>>2];J[e+180>>2]=f;f=J[h+60>> +2];J[e+184>>2]=J[h+56>>2];J[e+188>>2]=f;h=h+i|0;f=J[h+60>>2];J[e+248>>2]=J[h+56>>2];J[e+252>>2]=f;f=J[h+52>>2];J[e+240>>2]=J[h+48>>2];J[e+244>>2]=f;f=J[h+44>>2];J[e+232>>2]=J[h+40>>2];J[e+236>>2]=f;f=J[h+36>>2];J[e+224>>2]=J[h+32>>2];J[e+228>>2]=f;f=J[h+28>>2];J[e+216>>2]=J[h+24>>2];J[e+220>>2]=f;f=J[h+20>>2];J[e+208>>2]=J[h+16>>2];J[e+212>>2]=f;f=J[h+12>>2];J[e+200>>2]=J[h+8>>2];J[e+204>>2]=f;f=J[h+4>>2];J[e+192>>2]=J[h>>2];J[e+196>>2]=f;f=h+i|0;e=e+256|0;h=k-5|0;k=k-4|0;if(h>>>0<4294967294)continue; +break}}k=b-l|0;if((k|0)>0){e=(P(c,l)<<2)+a|0;f=(P(1-d|0,c)<<2)+a|0;h=c<<3;while(1){J[f>>2]=J[e>>2];J[f+4>>2]=J[e+4>>2];J[f+8>>2]=J[e+8>>2];J[f+12>>2]=J[e+12>>2];J[f+16>>2]=J[e+16>>2];J[f+20>>2]=J[e+20>>2];J[f+24>>2]=J[e+24>>2];J[f+28>>2]=J[e+28>>2];J[f+32>>2]=J[e+32>>2];J[f+36>>2]=J[e+36>>2];J[f+40>>2]=J[e+40>>2];J[f+44>>2]=J[e+44>>2];J[f+48>>2]=J[e+48>>2];J[f+52>>2]=J[e+52>>2];J[f+56>>2]=J[e+56>>2];J[f+60>>2]=J[e+60>>2];e=(c<<2)+e|0;f=f+h|0;b=k>>>0>1;k=k-1|0;if(b)continue;break}}b:{if((l|0)<=0)break b; +h=c<<1;e=(P(c,d)<<2)+a|0;c=l&3;c:{if(!c){f=l;break c}k=0;b=h<<2;f=l;while(1){a=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=a;a=J[g+60>>2];J[e+56>>2]=J[g+56>>2];J[e+60>>2]=a;a=J[g+52>>2];J[e+48>>2]=J[g+48>>2];J[e+52>>2]=a;a=J[g+44>>2];J[e+40>>2]=J[g+40>>2];J[e+44>>2]=a;a=J[g+36>>2];J[e+32>>2]=J[g+32>>2];J[e+36>>2]=a;a=J[g+28>>2];J[e+24>>2]=J[g+24>>2];J[e+28>>2]=a;a=J[g+20>>2];J[e+16>>2]=J[g+16>>2];J[e+20>>2]=a;a=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=a;g=g- -64|0;f=f-1|0;e=b+e|0;k=k+1|0;if((c|0)!=(k|0))continue; +break}}if(l>>>0<4)break b;c=h<<2;while(1){a=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=a;a=J[g+60>>2];J[e+56>>2]=J[g+56>>2];J[e+60>>2]=a;a=J[g+52>>2];J[e+48>>2]=J[g+48>>2];J[e+52>>2]=a;a=J[g+44>>2];J[e+40>>2]=J[g+40>>2];J[e+44>>2]=a;a=J[g+36>>2];J[e+32>>2]=J[g+32>>2];J[e+36>>2]=a;a=J[g+28>>2];J[e+24>>2]=J[g+24>>2];J[e+28>>2]=a;a=J[g+20>>2];J[e+16>>2]=J[g+16>>2];J[e+20>>2]=a;a=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=a;a=J[g+124>>2];d=c+e|0;b=d;J[b+56>>2]=J[g+120>>2];J[b+60>>2]=a;a=J[g+116>>2];J[b+48>>2]= +J[g+112>>2];J[b+52>>2]=a;a=J[g+108>>2];J[b+40>>2]=J[g+104>>2];J[b+44>>2]=a;a=J[g+100>>2];J[b+32>>2]=J[g+96>>2];J[b+36>>2]=a;a=J[g+92>>2];J[b+24>>2]=J[g+88>>2];J[b+28>>2]=a;a=J[g+84>>2];J[b+16>>2]=J[g+80>>2];J[b+20>>2]=a;a=J[g+76>>2];J[b+8>>2]=J[g+72>>2];J[b+12>>2]=a;b=g- -64|0;a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;a=J[g+188>>2];b=c+d|0;J[b+56>>2]=J[g+184>>2];J[b+60>>2]=a;a=J[g+180>>2];J[b+48>>2]=J[g+176>>2];J[b+52>>2]=a;a=J[g+172>>2];J[b+40>>2]=J[g+168>>2];J[b+44>>2]=a;a=J[g+164>>2];J[b+32>>2]= +J[g+160>>2];J[b+36>>2]=a;a=J[g+156>>2];J[b+24>>2]=J[g+152>>2];J[b+28>>2]=a;a=J[g+148>>2];J[b+16>>2]=J[g+144>>2];J[b+20>>2]=a;a=J[g+140>>2];J[b+8>>2]=J[g+136>>2];J[b+12>>2]=a;a=J[g+132>>2];J[b>>2]=J[g+128>>2];J[b+4>>2]=a;a=J[g+252>>2];b=b+c|0;J[b+56>>2]=J[g+248>>2];J[b+60>>2]=a;a=J[g+244>>2];J[b+48>>2]=J[g+240>>2];J[b+52>>2]=a;a=J[g+236>>2];J[b+40>>2]=J[g+232>>2];J[b+44>>2]=a;a=J[g+228>>2];J[b+32>>2]=J[g+224>>2];J[b+36>>2]=a;a=J[g+220>>2];J[b+24>>2]=J[g+216>>2];J[b+28>>2]=a;a=J[g+212>>2];J[b+16>>2]= +J[g+208>>2];J[b+20>>2]=a;a=J[g+204>>2];J[b+8>>2]=J[g+200>>2];J[b+12>>2]=a;a=J[g+196>>2];J[b>>2]=J[g+192>>2];J[b+4>>2]=a;e=b+c|0;g=g+256|0;a=f-5|0;f=f-4|0;if(a>>>0<4294967294)continue;break}}}function ZG(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;f=fc-80|0;fc=f;if(J[c+20>>2]>0)gU(c);a:{d=J[b+24>>2];if(d){kc[J[J[d>>2]+8>>2]](a,d,c);break a}k=b+4|0;m=J[c+12>>2];e=J[c+16>>2];n=e;d=J[c+20>>2];t=d;d=P(d,e);e=d>>31;r=J[c+24>>2];l=fU(b+36|0,r,(d^e)-e| +0);b:{e=J[b+4>>2];if(!e)break b;d=k;while(1){g=M[e+16>>2]>>0;d=g?d:e;e=J[(g?e+4|0:e)>>2];if(e)continue;break}if((d|0)==(k|0)|M[d+16>>2]>l>>>0)break b;J[a>>2]=J[d+20>>2];b=a;a=J[d+24>>2];J[b+4>>2]=a;if(!a)break a;J[a+4>>2]=J[a+4>>2]+1;break a}d=J[b+32>>2]+1|0;J[b+32>>2]=d;e=vc(32);J[e+12>>2]=0;J[e>>2]=2443812;J[e+4>>2]=0;J[e+8>>2]=0;H[e+31|0]=0;J[e+20>>2]=0;J[a+4>>2]=e;J[a>>2]=e+12;J[e+16>>2]=d;J[699344]=0;i=J[c+12>>2];d=J[699344];J[699344]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((d|0)==1)break n; +J[699344]=0;g=J[c+16>>2];d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;o=J[c+24>>2];e=J[699344];J[699344]=0;d=1;if((e|0)==1)break n;i=P(g,i);o:{if((i|0)<=0)break o;d=0;if(K[o+3|0]!=255)break o;e=o+3|0;while(1){d=d+1|0;if((i|0)!=(d|0)){g=K[e+4|0];e=e+4|0;if((g|0)==255)continue}break}d=(d|0)>=(i|0)}e=J[a>>2];J[e>>2]=d;d=J[e+4>>2];J[699344]=0;e=f+16|0;da(6634,e|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break m;J[699344]=0;g=ga(2280,e|0,0,2443620)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l; +e=J[g>>2];J[f+64>>2]=J[g+4>>2];d=K[g+7|0]|K[g+8|0]<<8|(K[g+9|0]<<16|K[g+10|0]<<24);H[f+67|0]=d;H[f+68|0]=d>>>8;H[f+69|0]=d>>>16;H[f+70|0]=d>>>24;J[g>>2]=0;J[g+4>>2]=0;d=K[g+11|0];J[g+8>>2]=0;g=J[a>>2];if(H[g+19|0]<0)uc(J[g+8>>2]);J[g+8>>2]=e;J[g+12>>2]=J[f+64>>2];e=K[f+67|0]|K[f+68|0]<<8|(K[f+69|0]<<16|K[f+70|0]<<24);H[g+15|0]=e;H[g+16|0]=e>>>8;H[g+17|0]=e>>>16;H[g+18|0]=e>>>24;H[g+19|0]=d;if(H[f+27|0]<0)uc(J[f+16>>2]);e=J[a>>2];d=J[e>>2];J[699344]=0;aa(3026,e+8|0,((d|0)==1?2443644:2443664)|0)|0; +d=J[699344];J[699344]=0;if((d|0)==1)break n;d=K[b+23|0];o=d<<24>>24;i=(o|0)<0?J[b+16>>2]:d;p=i+1|0;if(p>>>0>=1073741808){J[699344]=0;$(2959,f+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;break c}q=J[a>>2];g=J[q>>2];p:{if(p>>>0<=1){J[f+24>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;H[f+27|0]=p;h=f+16|0;break p}d=p|3;if(d>>>0>=1073741823){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break e}J[699344]=0;e=d+1|0;h=_(4,e<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;J[f+20>>2]=p;J[f+16>> +2]=h;J[f+24>>2]=e|-2147483648}d=b+12|0;e=(o|0)<0?J[d>>2]:d;d=i<<2;d=cd(h,e,d)+d|0;J[d>>2]=47;J[d+4>>2]=0;e=J[q+12>>2];d=J[q+8>>2];i=K[q+19|0];J[699344]=0;h=d;d=i<<24>>24<0;e=ga(2960,f+16|0,(d?h:q+8|0)|0,(d?e:i)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;J[f+72>>2]=J[e+8>>2];d=J[e+4>>2];J[f+64>>2]=J[e>>2];J[f+68>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;if(H[f+27|0]<0)uc(J[f+16>>2]);g=(g|0)==1?3:4;d=J[b+28>>2];if(d>>>0>>0|d>>>0>>0)break j;J[699344]=0;ga(6635,c|0,f- -64|0,g|0)|0;c=J[699344]; +J[699344]=0;if((c|0)!=1)break i;d=Z()|0;break f}d=Z()|0;break d}d=Z()|0;break d}d=Z()|0;if(H[f+27|0]>=0)break d;uc(J[f+16>>2]);break d}d=Z()|0;if(H[f+27|0]>=0)break d;uc(J[f+16>>2]);break d}J[699344]=0;e=f+16|0;J[e>>2]=0;J[e+4>>2]=0;H[e+40|0]=0;J[e+32>>2]=0;J[e+36>>2]=-1074790400;H[e+21|0]=0;H[e+22|0]=0;H[e+23|0]=0;H[e+24|0]=0;H[e+25|0]=0;H[e+26|0]=0;H[e+27|0]=0;H[e+28|0]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;c=J[699344];J[699344]=0;q:{r:{s:{t:{u:{if((c|0)!=1){J[699344]=0;J[f>>2]=m; +J[e+4>>2]=J[f>>2];c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;J[f>>2]=n;J[e+8>>2]=J[f>>2];c=J[699344];J[699344]=0;if((c|0)==1)break u;J[699344]=0;J[f>>2]=t;J[e+12>>2]=J[f>>2];c=J[699344];J[699344]=0;if((c|0)==1)break t;J[699344]=0;J[e+16>>2]=r;c=J[699344];J[699344]=0;if((c|0)==1)break g;c=J[b+28>>2];if(c>>>0>=m>>>0&c>>>0>=n>>>0)break q;s=+(m>>>0)/+(n>>>0);j=+(c|0);if(m>>>0>>0)break s;d=c;j=j/s;v:{if(R(j)<2147483648){c=~~j;break v}c=-2147483648}c=(c|0)<=1?1:c;break r}d=Z()|0;break f}d= +Z()|0;Yg(e);break f}d=Z()|0;Yg(e);break f}j=s*j;w:{if(R(j)<2147483648){d=~~j;break w}d=-2147483648}d=(d|0)<=1?1:d}J[f>>2]=d;J[699344]=0;J[f+12>>2]=c;ha(6636,e|0,f|0,f+12|0,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break q;d=Z()|0;Yg(e);break f}J[699344]=0;ga(2534,e|0,f- -64|0,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;Yg(e)}J[f>>2]=l;g=J[a>>2];J[f+4>>2]=g;h=J[a+4>>2];J[f+8>>2]=h;if(h)J[h+4>>2]=J[h+4>>2]+1;x:{e=k;d=J[e>>2];y:{z:{if(!d)break z;while(1){e=d;c=J[e+16>>2];if(c>>>0>l>>>0){k=e;d= +J[e>>2];if(d)continue;break z}if(c>>>0>=l>>>0)break y;d=J[e+4>>2];if(d)continue;break}k=e+4|0}J[699344]=0;d=_(4,28)|0;c=J[699344];J[699344]=0;if((c|0)==1)break x;J[d+16>>2]=l;J[d+24>>2]=h;J[d+20>>2]=g;J[f+4>>2]=0;J[f+8>>2]=0;J[d+8>>2]=e;J[d>>2]=0;J[d+4>>2]=0;J[k>>2]=d;a=J[J[b>>2]>>2];if(a){J[b>>2]=a;d=J[k>>2]}Oc(J[b+4>>2],d);J[b+8>>2]=J[b+8>>2]+1;h=J[f+8>>2]}A:{if(!h)break A;a=J[h+4>>2];J[h+4>>2]=a-1;if(a)break A;kc[J[J[h>>2]+8>>2]](h);Gc(h)}if(H[f+75|0]>=0)break a;uc(J[f+64>>2]);break a}d=Z()|0; +eU(f);break f}d=Z()|0;Yg(e);break f}d=Z()|0;Yg(e)}if(H[f+75|0]>=0)break d;uc(J[f+64>>2]);break d}d=Z()|0}je(a);ba(d|0);B()}B()}fc=f+80|0}function zl(a){var b=0;b=J[a>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;b=J[a+148>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+24>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+152>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a; +b=J[a+28>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+156>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+32>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+160>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+36>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+164>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+40>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)==1)break a;b=J[a+168>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+44>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+172>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+48>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+176>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+52>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+180>>2];J[699344]=0; +Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+56>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+184>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+60>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+188>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a- -64>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+192>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a; +b=J[a+68>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+196>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+72>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+200>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+76>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+204>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+80>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)==1)break a;b=J[a+208>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+84>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+212>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+88>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+216>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+92>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+220>>2];J[699344]=0; +Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+96>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+224>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+100>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+228>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+104>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+232>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a; +b=J[a+108>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+236>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+112>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+240>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+116>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+244>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+120>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)==1)break a;b=J[a+248>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+124>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+252>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+128>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+256>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+132>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+260>>2];J[699344]= +0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+136>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+264>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+140>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+268>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+144>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+272>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a; +return a}ea(0)|0;Bc();B()}function P3(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,B=0;m=O[a>>3];r=O[e>>3];v=O[c+8>>3];s=O[c>>3];p=O[d>>3];w=O[e+8>>3];q=O[d+8>>3];J[b>>2]=0;t=r-p;j=m*t/g;x=w-q;n=m*x/g;y=p-s;k=m*y/f;z=q-v;l=m*z/f;a:{b:{c:{d:{t=t*z-y*x;if(!(t==0|(!(t>0)|0)==(m>0|0))){m=O[a+40>>3];r=(f>3];m=m>r?m:r;e:{f:{h=J[a+64>>2];switch(h-1|0){case 0:break b;case 1:case 2:break e;default:break f}}a=0;if(!J[b+4>>2]){g:{if(J[b+8>> +2]){e=J[b+12>>2];c=1;break g}h=J[b+16>>2];e=vc(h>>>0>1073741823?-1:h<<2);a=J[b+12>>2];h:{if(!a){c=1;a=0;break h}uc(a);c=J[b+4>>2]+1|0;h=J[b+8>>2]+J[b+16>>2]|0;a=J[b>>2]&63}J[b+8>>2]=h;J[b+12>>2]=e}A=e,B=vc(1024),J[A>>2]=B;J[b+4>>2]=c}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=q-k;O[a>>3]=p+l;break c}r=f*f;f=l-n;s=f*f;f=k-j;f=s+f*f;if(!(!(r>f)|!(f>2];if((h|0)==2){a=0;if(!e){i:{if(J[b+8>>2]){e=J[b+12>>2];c=1;break i}h=J[b+16>>2];e=vc(h>>>0>1073741823?-1:h<<2);a=J[b+12>> +2];j:{if(!a){c=1;a=0;break j}uc(a);c=J[b+4>>2]+1|0;h=J[b+8>>2]+J[b+16>>2]|0;a=J[b>>2]&63}J[b+8>>2]=h;J[b+12>>2]=e}A=e,B=vc(1024),J[A>>2]=B;J[b+4>>2]=c}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=f;O[a>>3]=g;a=J[b>>2]+1|0;J[b>>2]=a;f=O[d+8>>3];g=O[d>>3];c=J[b+4>>2];e=a>>>6|0;if(c>>>0<=e>>>0){h=J[b+8>>2];k:{if(h>>>0>e>>>0){h=J[b+12>>2];break k}i=h+J[b+16>>2]|0;h=vc(i>>>0>1073741823?-1:i<<2);o=J[b+12>>2];if(o){xc(h,o,c<<2);uc(o);i=J[b+8>>2]+J[b+16>>2]|0;c=J[b+4>>2];a=J[b>>2]}J[b+8>>2]=i;J[b+12>>2]=h}A=(e<< +2)+h|0,B=vc(1024),J[A>>2]=B;J[b+4>>2]=c+1}a=J[J[b+12>>2]+(e<<2)>>2]+((a&63)<<4)|0;O[a+8>>3]=f;break d}c=0;if(!e){l:{if(J[b+8>>2]){e=J[b+12>>2];h=1;break l}i=J[b+16>>2];e=vc(i>>>0>1073741823?-1:i<<2);c=J[b+12>>2];m:{if(!c){h=1;c=0;break m}uc(c);h=J[b+4>>2]+1|0;i=J[b+8>>2]+J[b+16>>2]|0;c=J[b>>2]&63}J[b+8>>2]=i;J[b+12>>2]=e}A=e,B=vc(1024),J[A>>2]=B;J[b+4>>2]=h}c=J[J[b+12>>2]>>2]+(c<<4)|0;O[c+8>>3]=f;O[c>>3]=g;e=J[b>>2]+1|0;J[b>>2]=e;f=O[d+8>>3];g=O[d>>3];h=J[b+4>>2];c=e>>>6|0;if(h>>>0<=c>>>0){i=J[b+ +8>>2];n:{if(i>>>0>c>>>0){i=J[b+12>>2];break n}o=i+J[b+16>>2]|0;i=vc(o>>>0>1073741823?-1:o<<2);u=J[b+12>>2];if(u){xc(i,u,h<<2);uc(u);o=J[b+8>>2]+J[b+16>>2]|0;h=J[b+4>>2];e=J[b>>2]}J[b+8>>2]=o;J[b+12>>2]=i}A=(c<<2)+i|0,B=vc(1024),J[A>>2]=B;J[b+4>>2]=h+1}c=J[J[b+12>>2]+(c<<2)>>2]+((e&63)<<4)|0;O[c+8>>3]=f;O[c>>3]=g;J[b>>2]=J[b>>2]+1;WL(a,b,O[d>>3],O[d+8>>3],n,-j,l,-k);f=O[d+8>>3];g=O[d>>3];c=J[b+4>>2];e=J[b>>2];a=e>>>6|0;if(c>>>0<=a>>>0){h=J[b+8>>2];o:{if(h>>>0>a>>>0){h=J[b+12>>2];break o}i=h+J[b+16>> +2]|0;h=vc(i>>>0>1073741823?-1:i<<2);o=J[b+12>>2];if(o){xc(h,o,c<<2);uc(o);i=J[b+8>>2]+J[b+16>>2]|0;e=J[b>>2];c=J[b+4>>2]}J[b+8>>2]=i;J[b+12>>2]=h}A=(a<<2)+h|0,B=vc(1024),J[A>>2]=B;J[b+4>>2]=c+1}a=J[J[b+12>>2]+(a<<2)>>2]+((e&63)<<4)|0;O[a+8>>3]=f;break d}f=(l+n)*.5;g=f*f;f=(k+j)*.5;f=Y(g+f*f);h=J[a+60>>2];if(!(!(O[a+16>>3]>O[a+48>>3]*(O[a+8>>3]-f))|(h&-2)!=2)){m=p+l;f=s+l;l=m-f;g=w-j;j=q-j;s=g-j;g=r+n;n=p+n;p=g-n;q=q-k;g=v-k;k=q-g;r=l*s-p*k;if(!(R(r)<1E-30)){j=((g-j)*p-s*(f-n))/r;g=j*k+g;a=0;if(!J[b+ +4>>2]){p:{if(J[b+8>>2]){d=J[b+12>>2];e=1;break p}c=J[b+16>>2];d=vc(c>>>0>1073741823?-1:c<<2);a=J[b+12>>2];q:{if(!a){e=1;a=0;break q}uc(a);e=J[b+4>>2]+1|0;c=J[b+8>>2]+J[b+16>>2]|0;a=J[b>>2]&63}J[b+8>>2]=c;J[b+12>>2]=d}A=d,B=vc(1024),J[A>>2]=B;J[b+4>>2]=e}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=g;O[a>>3]=j*l+f;break a}a=0;if(!J[b+4>>2]){r:{if(J[b+8>>2]){d=J[b+12>>2];e=1;break r}c=J[b+16>>2];d=vc(c>>>0>1073741823?-1:c<<2);a=J[b+12>>2];s:{if(!a){e=1;a=0;break s}uc(a);e=J[b+4>>2]+1|0;c=J[b+8>>2]+J[b+16>> +2]|0;a=J[b>>2]&63}J[b+8>>2]=c;J[b+12>>2]=d}A=d,B=vc(1024),J[A>>2]=B;J[b+4>>2]=e}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=q;O[a>>3]=m;break a}t:switch(h|0){case 0:case 1:case 4:O3(a,b,c,d,e,l,k,n,j,h,O[a+32>>3],f);return;case 2:WL(a,b,p,q,l,-k,n,-j);return;default:break t}a=0;if(!J[b+4>>2]){u:{if(J[b+8>>2]){e=J[b+12>>2];c=1;break u}h=J[b+16>>2];e=vc(h>>>0>1073741823?-1:h<<2);a=J[b+12>>2];v:{if(!a){c=1;a=0;break v}uc(a);c=J[b+4>>2]+1|0;h=J[b+8>>2]+J[b+16>>2]|0;a=J[b>>2]&63}J[b+8>>2]=h;J[b+12>>2]=e}A=e, +B=vc(1024),J[A>>2]=B;J[b+4>>2]=c}a=J[J[b+12>>2]>>2]+(a<<4)|0;O[a+8>>3]=q-k;O[a>>3]=p+l;a=J[b>>2]+1|0;J[b>>2]=a;f=O[d+8>>3]-j;g=n+O[d>>3];e=J[b+4>>2];d=a>>>6|0;if(e>>>0<=d>>>0){c=J[b+8>>2];w:{if(c>>>0>d>>>0){c=J[b+12>>2];break w}h=c+J[b+16>>2]|0;c=vc(h>>>0>1073741823?-1:h<<2);i=J[b+12>>2];if(i){xc(c,i,e<<2);uc(i);h=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];a=J[b>>2]}J[b+8>>2]=h;J[b+12>>2]=c}A=(d<<2)+c|0,B=vc(1024),J[A>>2]=B;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((a&63)<<4)|0;O[a+8>>3]=f;O[a>>3]=g;J[b>> +2]=J[b>>2]+1;return}O[a>>3]=g}a=J[b>>2]+1|0;J[b>>2]=a;f=O[d+8>>3]-j;g=n+O[d>>3];e=J[b+4>>2];d=a>>>6|0;if(e>>>0<=d>>>0){c=J[b+8>>2];x:{if(c>>>0>d>>>0){c=J[b+12>>2];break x}h=c+J[b+16>>2]|0;c=vc(h>>>0>1073741823?-1:h<<2);i=J[b+12>>2];if(i){xc(c,i,e<<2);uc(i);h=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];a=J[b>>2]}J[b+8>>2]=h;J[b+12>>2]=c}A=(d<<2)+c|0,B=vc(1024),J[A>>2]=B;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((a&63)<<4)|0;O[a+8>>3]=f;O[a>>3]=g;break a}O3(a,b,c,d,e,l,k,n,j,1,m,0);return}J[b>>2]=J[b>>2]+1}function Xr(a, +b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=fc-112|0;fc=g;a:{if(!a){f=-102;break a}i=-1;h=J[a+48>>2];f=J[a+76>>2]+J[a+92>>2]|0;j=J[a+88>>2];k=j+J[a+72>>2]|0;f=k>>>0>>0?f+1|0:f;b:{if(Aj(a,h,k,f,0))break b;if(uh(a,J[a+48>>2],g+12|0))break b;i=J[g+12>>2]!=33639248?-103:0}c:{d:{h=J[a+48>>2];e:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+24|0,1)|0)==1){f=K[g+24|0];break e}if(kc[J[a+24>>2]](J[a+28>>2],h)|0)break d;f=0}f:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+24>>2]=f|K[g+16|0]<<8;break f}h= +kc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+24>>2]=h?0:P(f,257);f=-1;if(h)break c}f=i;break c}J[g+24>>2]=0;f=-1}i=f;g:{h:{h=J[a+48>>2];i:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break i}if(kc[J[a+24>>2]](J[a+28>>2],h)|0)break h;f=0}j:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+28>>2]=f|K[g+16|0]<<8;break j}h=kc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+28>>2]=h?0:P(f,257);f=-1;if(h)break g}f=i;break g}J[g+28>>2]=0;f=-1}i=f;k:{l:{h=J[a+48>>2];m:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)== +1){f=K[g+16|0];break m}if(kc[J[a+24>>2]](J[a+28>>2],h)|0)break l;f=0}n:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+32>>2]=f|K[g+16|0]<<8;break n}h=kc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+32>>2]=h?0:P(f,257);f=-1;if(h)break k}f=i;break k}J[g+32>>2]=0;f=-1}i=f;o:{p:{h=J[a+48>>2];q:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break q}if(kc[J[a+24>>2]](J[a+28>>2],h)|0)break p;f=0}r:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+36>>2]=f|K[g+16|0]<<8;break r}h=kc[J[a+24>>2]](J[a+ +28>>2],h)|0;J[g+36>>2]=h?0:P(f,257);f=-1;if(h)break o}f=i;break o}J[g+36>>2]=0;f=-1}h=f;j=uh(a,J[a+48>>2],g+40|0);f=J[g+40>>2];J[g+108>>2]=(f>>>25|0)+1980;J[g+100>>2]=f>>>16&31;J[g+96>>2]=f>>>11&31;J[g+92>>2]=f>>>5&63;J[g+104>>2]=(f>>>21&15)-1;J[g+88>>2]=f<<1&62;k=uh(a,J[a+48>>2],g+44|0);l=uh(a,J[a+48>>2],g+8|0);J[g+48>>2]=J[g+8>>2];J[g+52>>2]=0;m=uh(a,J[a+48>>2],g+8|0);J[g+56>>2]=J[g+8>>2];J[g+60>>2]=0;s:{t:{i=J[a+48>>2];u:{if((kc[J[a+4>>2]](J[a+28>>2],i,g+16|0,1)|0)==1){f=K[g+16|0];break u}if(kc[J[a+ +24>>2]](J[a+28>>2],i)|0)break t;f=0}v:{if((kc[J[a+4>>2]](J[a+28>>2],i,g+16|0,1)|0)==1){J[g+64>>2]=f|K[g+16|0]<<8;break v}n=P(f,257);f=kc[J[a+24>>2]](J[a+28>>2],i)|0;J[g+64>>2]=f?0:n;i=-1;if(f)break s}i=l|m|(j|k)?-1:h;break s}J[g+64>>2]=0;i=-1}w:{x:{h=J[a+48>>2];y:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break y}if(kc[J[a+24>>2]](J[a+28>>2],h)|0)break x;f=0}z:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+68>>2]=f|K[g+16|0]<<8;break z}h=kc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+ +68>>2]=h?0:P(f,257);f=-1;if(h)break w}f=i;break w}J[g+68>>2]=0;f=-1}i=f;A:{B:{h=J[a+48>>2];C:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break C}if(kc[J[a+24>>2]](J[a+28>>2],h)|0)break B;f=0}D:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+72>>2]=f|K[g+16|0]<<8;break D}h=kc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+72>>2]=h?0:P(f,257);f=-1;if(h)break A}f=i;break A}J[g+72>>2]=0;f=-1}i=f;E:{F:{h=J[a+48>>2];G:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){f=K[g+16|0];break G}if(kc[J[a+ +24>>2]](J[a+28>>2],h)|0)break F;f=0}H:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+76>>2]=f|K[g+16|0]<<8;break H}h=kc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+76>>2]=h?0:P(f,257);f=-1;if(h)break E}f=i;break E}J[g+76>>2]=0;f=-1}I:{J:{h=J[a+48>>2];K:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){i=K[g+16|0];break K}if(kc[J[a+24>>2]](J[a+28>>2],h)|0)break J;i=0}L:{if((kc[J[a+4>>2]](J[a+28>>2],h,g+16|0,1)|0)==1){J[g+80>>2]=i|K[g+16|0]<<8;break L}h=kc[J[a+24>>2]](J[a+28>>2],h)|0;J[g+80>>2]=h?0:P(i,257); +i=-1;if(h)break I}i=f;break I}J[g+80>>2]=0;i=-1}f=uh(a,J[a+48>>2],g+84|0);h=uh(a,J[a+48>>2],g+8|0);J[g+16>>2]=J[g+8>>2];J[g+20>>2]=0;f=f|h?-1:i;i=J[g+64>>2];if(!(f|!d)){h=e;if(i>>>0>>0){H[d+i|0]=0;h=i}f=0;if(!(!e|!i))f=(kc[J[a+4>>2]](J[a+28>>2],J[a+48>>2],d,h)|0)!=(h|0)?-1:0;i=i-h|0}h=J[g+68>>2];d=i+h|0;if(!(!h|f)){f=0;if((d|0)!=(h|0)){d=d-h|0;f=Aj(a,J[a+48>>2],d,d>>31,1)?-1:0}l=g+56|0;m=g+48|0;d=0;while(1){j=J[a+48>>2];M:{N:{if((kc[J[a+4>>2]](J[a+28>>2],j,g+4|0,1)|0)==1){i=K[g+4|0];break N}e= +-1;i=0;if(kc[J[a+24>>2]](J[a+28>>2],j)|0)break M}if((kc[J[a+4>>2]](J[a+28>>2],j,g+4|0,1)|0)==1){e=f;i=K[g+4|0]<<8|i;break M}e=f;f=kc[J[a+24>>2]](J[a+28>>2],j)|0;e=f?-1:e;i=f?0:P(i,257)}j=i;k=J[a+48>>2];O:{P:{if((kc[J[a+4>>2]](J[a+28>>2],k,g+4|0,1)|0)==1){i=K[g+4|0];break P}f=-1;i=0;if(kc[J[a+24>>2]](J[a+28>>2],k)|0)break O}if((kc[J[a+4>>2]](J[a+28>>2],k,g+4|0,1)|0)==1){f=e;i=K[g+4|0]<<8|i;break O}f=e;e=kc[J[a+24>>2]](J[a+28>>2],k)|0;f=e?-1:f;i=e?0:P(i,257)}Q:{if((j|0)==1){if(!J[g+60>>2]&J[g+56>>2]== +-1)f=_o(a,J[a+48>>2],l)?-1:f;if(!J[g+52>>2]&J[g+48>>2]==-1)f=_o(a,J[a+48>>2],m)?-1:f;if(!J[g+20>>2]&J[g+16>>2]==-1)f=_o(a,J[a+48>>2],g+16|0)?-1:f;if(J[g+76>>2]==-1)f=uh(a,J[a+48>>2],g+4|0)?-1:f;h=J[g+68>>2];break Q}f=Aj(a,J[a+48>>2],i,0,1)?-1:f}d=(d+i|0)+4|0;if(h>>>0>d>>>0)continue;break}}if(!(f|!b))xc(b,g+24|0,88);if(f|!c)break a;a=J[g+20>>2];J[c>>2]=J[g+16>>2];J[c+4>>2]=a;f=0}fc=g+112|0;return f}function B$a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+ +24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}if(!J[a+84>>2])h=a,i=kc[J[J[a+4>>2]>>2]](a,0,880)|0,J[h+84>>2]=i;J[a+72>>2]=8;J[a+56>>2]=1;J[a+60>>2]=1;nL(a,50,1);b=J[a+120>>2];if(!b){b=kc[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+120>>2]=b}H[b+16|0]=K[56976];c=J[14243];J[b+8>>2]=J[14242];J[b+12>>2]=c;c=J[14241];J[b>>2]=J[14240];J[b+4>>2]=c;c=K[57013]|K[57014]<<8|(K[57015]<<16|K[57016]<<24);b=J[a+120>>2];d=K[57009]|K[57010]<<8|(K[57011]<<16|K[57012]<<24);H[b+17|0]=d;H[b+18|0]=d>>>8;H[b+19|0]=d>>> +16;H[b+20|0]=d>>>24;H[b+21|0]=c;H[b+22|0]=c>>>8;H[b+23|0]=c>>>16;H[b+24|0]=c>>>24;c=K[57017]|K[57018]<<8|(K[57019]<<16|K[57020]<<24);H[b+25|0]=c;H[b+26|0]=c>>>8;H[b+27|0]=c>>>16;H[b+28|0]=c>>>24;J[J[a+120>>2]+276>>2]=0;b=J[a+136>>2];if(!b){b=kc[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+136>>2]=b}H[b+16|0]=K[57040];c=J[14259];J[b+8>>2]=J[14258];J[b+12>>2]=c;c=J[14257];J[b>>2]=J[14256];J[b+4>>2]=c;xc(J[a+136>>2]+17|0,57056,162);J[J[a+136>>2]+276>>2]=0;b=J[a+124>>2];if(!b){b=kc[J[J[a+4>>2]>>2]](a, +0,280)|0;J[b+276>>2]=0;J[a+124>>2]=b}H[b+16|0]=K[57008];c=J[14251];J[b+8>>2]=J[14250];J[b+12>>2]=c;c=J[14249];J[b>>2]=J[14248];J[b+4>>2]=c;c=K[57013]|K[57014]<<8|(K[57015]<<16|K[57016]<<24);b=J[a+124>>2];d=K[57009]|K[57010]<<8|(K[57011]<<16|K[57012]<<24);H[b+17|0]=d;H[b+18|0]=d>>>8;H[b+19|0]=d>>>16;H[b+20|0]=d>>>24;H[b+21|0]=c;H[b+22|0]=c>>>8;H[b+23|0]=c>>>16;H[b+24|0]=c>>>24;c=K[57017]|K[57018]<<8|(K[57019]<<16|K[57020]<<24);H[b+25|0]=c;H[b+26|0]=c>>>8;H[b+27|0]=c>>>16;H[b+28|0]=c>>>24;J[J[a+124>> +2]+276>>2]=0;b=J[a+140>>2];if(!b){b=kc[J[J[a+4>>2]>>2]](a,0,280)|0;J[b+276>>2]=0;J[a+140>>2]=b}H[b+16|0]=K[57248];c=J[14311];J[b+8>>2]=J[14310];J[b+12>>2]=c;c=J[14309];J[b>>2]=J[14308];J[b+4>>2]=c;xc(J[a+140>>2]+17|0,57264,162);J[J[a+140>>2]+276>>2]=0;H[a+160|0]=0;H[a+161|0]=0;H[a+162|0]=0;H[a+163|0]=0;H[a+164|0]=0;H[a+165|0]=0;H[a+166|0]=0;H[a+167|0]=0;H[a+152|0]=0;H[a+153|0]=0;H[a+154|0]=0;H[a+155|0]=0;H[a+156|0]=0;H[a+157|0]=0;H[a+158|0]=0;H[a+159|0]=0;H[a+168|0]=1;H[a+169|0]=1;H[a+170|0]=1;H[a+ +171|0]=1;H[a+172|0]=1;H[a+173|0]=1;H[a+174|0]=1;H[a+175|0]=1;H[a+176|0]=1;H[a+177|0]=1;H[a+178|0]=1;H[a+179|0]=1;H[a+180|0]=1;H[a+181|0]=1;H[a+182|0]=1;H[a+183|0]=1;H[a+184|0]=5;H[a+185|0]=5;H[a+186|0]=5;H[a+187|0]=5;H[a+188|0]=5;H[a+189|0]=5;H[a+190|0]=5;H[a+191|0]=5;H[a+192|0]=5;H[a+193|0]=5;H[a+194|0]=5;H[a+195|0]=5;H[a+196|0]=5;H[a+197|0]=5;H[a+198|0]=5;H[a+199|0]=5;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;J[a+220>>2]=0;J[a+224>>2]=1;J[a+236>>2]=0;J[a+ +240>>2]=0;J[a+252>>2]=65537;H[a+250|0]=0;I[a+248>>1]=257;J[a+216>>2]=J[a+72>>2]>8;a:{b:{c:switch(J[a+40>>2]){case 1:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+76>>2]=1;J[a+80>>2]=1;J[a+244>>2]=1;a=J[a+84>>2];J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=1;break a;case 4:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}J[a+256>>2]=1;J[a+244>>2]=0;J[a+76>>2]=4;J[a+80>>2]=4;a=J[a+ +84>>2];J[a+264>>2]=75;J[a+176>>2]=89;J[a+88>>2]=77;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=67;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=1;J[a+276>>2]=1;J[a+200>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=1;J[a+100>>2]=1;break a;case 5:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}J[a+256>>2]=1;J[a+244>>2]=0;J[a+76>>2]=4;J[a+80>>2]=5;a=J[a+84>>2]; +J[a+264>>2]=4;J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=2;J[a+276>>2]=2;break b;case 0:b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}c=0;J[a+256>>2]=0;J[a+244>>2]=0;J[a+80>>2]=0;b=J[a+36>>2];J[a+76>>2]=b;d:{if(b-11>>>0<=4294967285){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=27;J[J[a>>2]+28>>2]=10;kc[J[J[a>>2]>>2]](a);b=J[a+76>>2];if((b|0)<=0)break d}f=b&1; +d=J[a+84>>2];if((b|0)!=1){g=b&-2;b=0;while(1){a=d+P(c,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=c;e=c|1;a=d+P(e,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=e;c=c+2|0;b=b+2|0;if((g|0)!=(b|0))continue;break}}if(!f)break d;a=d+P(c,88)|0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=c}break a;default:b=J[a>>2];J[b+20>>2]=10;kc[J[b>>2]](a);break a;case 2:case 3:break c}b=J[a+20>>2];if((b|0)!=100){c=J[a>>2]; +J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+76>>2]=3;J[a+80>>2]=3;J[a+244>>2]=1;a=J[a+84>>2];J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1}J[a+200>>2]=1;J[a+192>>2]=1;J[a+196>>2]=1;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=1;J[a+104>>2]=1;J[a+108>>2]=1;J[a+96>>2]=1;J[a+100>>2]=1}}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;a:while(1){k=b-4|0;b:while(1){f=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{a= +b-f>>2;switch(a|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}c=J[J[c>>2]+12>>2];a=b-4|0;b=J[a>>2];d=J[f>>2];if(M[J[c+(b<<2)>>2]>>2]>=M[J[c+(d<<2)>>2]>>2])break d;J[f>>2]=b;J[a>>2]=d;return}a=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[J[a+(d<<2)>>2]>>2];h=J[f+4>>2];k=J[J[a+(h<<2)>>2]>>2];c=J[f>>2];g=J[a+(c<<2)>>2];if(k>>>0>=M[g>>2]){if(e>>>0>=k>>>0)break d;J[f+4>>2]=d;J[b>>2]=h;b=J[f+4>>2];c=J[f>>2];if(M[J[a+(b<<2)>>2]>>2]>=M[J[a+(c<<2)>>2]>>2])break d; +J[f+4>>2]=c;J[f>>2]=b;return}if(e>>>0>>0){J[f>>2]=d;J[b>>2]=c;return}J[f+4>>2]=c;J[f>>2]=h;d=J[b>>2];if(M[J[a+(d<<2)>>2]>>2]>=M[g>>2])break d;J[f+4>>2]=d;J[b>>2]=c;return}kO(f,f+4|0,f+8|0,f+12|0,b-4|0,c);return}if((a|0)<=30){a=f+4|0;e=f+8|0;h=J[J[c>>2]+12>>2];k=J[f+8>>2];g=J[h+(k<<2)>>2];i=J[g>>2];l=J[f+4>>2];n=J[J[h+(l<<2)>>2]>>2];j=J[f>>2];m=J[h+(j<<2)>>2];l:{m:{if(n>>>0>=M[m>>2]){if(i>>>0>=n>>>0)break l;J[a>>2]=k;J[e>>2]=l;d=f;c=a;if(M[g>>2]>2])break m;break l}d=f;c=e;if(i>>>0>>0)break m; +J[f+4>>2]=j;J[f>>2]=l;d=a;if(M[g>>2]>=M[m>>2])break l}J[d>>2]=k;J[c>>2]=j}c=f+12|0;if((c|0)==(b|0))break d;while(1){a=c;d=J[a>>2];k=J[h+(d<<2)>>2];g=J[e>>2];if(M[k>>2]>2]>>2]){while(1){n:{J[a>>2]=g;a=e;if((f|0)==(a|0)){a=f;break n}e=a-4|0;g=J[e>>2];if(M[k>>2]>2]>>2])continue}break}J[a>>2]=d}e=c;a=e+4|0;c=a;if((a|0)!=(b|0))continue;break}break d}if(!d){if((b|0)==(f|0))break d;h=c;d=b;if((b|0)!=(f|0)){b=b-f>>2;if((b|0)>=2){a=b-2>>>1|0;while(1){k=a;e=(a<<2)+f|0;o:{if((b|0)< +2)break o;m=b-2>>>1|0;a=e-f|0;if((m|0)>2)break o;a=a>>1;i=a+1|0;c=(i<<2)+f|0;g=J[c>>2];a=a+2|0;p:{if((a|0)>=(b|0)){j=J[J[h>>2]+12>>2];break p}o=a;j=J[J[h>>2]+12>>2];l=J[c+4>>2];a=M[J[j+(g<<2)>>2]>>2]>2]>>2];i=a?o:i;c=a?c+4|0:c;g=a?l:g}l=J[e>>2];n=J[(l<<2)+j>>2];if(M[J[(g<<2)+j>>2]>>2]>2])break o;while(1){q:{a=c;J[e>>2]=g;if((i|0)>(m|0))break q;e=i<<1;i=e|1;c=(i<<2)+f|0;g=J[c>>2];e=e+2|0;if((e|0)<(b|0)){o=e;p=J[c+4>>2];e=M[J[(g<<2)+j>>2]>>2]>2]>>2];i=e?o:i;g=e?p: +g;c=e?c+4|0:c}e=a;if(M[J[(g<<2)+j>>2]>>2]>=M[n>>2])continue}break}J[a>>2]=l}a=k-1|0;if(k)continue;break}}if((b|0)>=2)while(1){k=b;m=b-2>>>1|0;i=J[h>>2];j=J[f>>2];c=0;e=f;while(1){l=c<<1;g=l|1;c=(c<<2)+e|0;a=c+4|0;b=J[a>>2];l=l+2|0;r:{if((l|0)>=(k|0)){c=g;break r}p=l;o=g;g=J[i+12>>2];l=c+8|0;n=J[l>>2];g=M[J[g+(b<<2)>>2]>>2]>2]>>2];c=g?p:o;a=g?l:a;b=g?n:b}J[e>>2]=b;e=a;if((c|0)<=(m|0))continue;break}d=d-4|0;s:{if((d|0)==(a|0)){J[a>>2]=j;break s}J[a>>2]=J[d>>2];J[d>>2]=j;b=(a-f|0)+4>>2; +if((b|0)<2)break s;i=J[i+12>>2];m=J[a>>2];j=J[i+(m<<2)>>2];c=b-2>>>1|0;b=(c<<2)+f|0;e=J[b>>2];if(M[J[i+(e<<2)>>2]>>2]>=M[j>>2])break s;while(1){t:{g=b;J[a>>2]=e;if(!c)break t;a=b;c=c-1>>>1|0;b=(c<<2)+f|0;e=J[b>>2];if(M[J[i+(e<<2)>>2]>>2]>2])continue}break}J[g>>2]=m}b=k-1|0;if((k|0)>2)continue;break}}return}i=(a<<1&-4)+f|0;u:{if(a>>>0>=1E3){a=a&-4;j=kO(f,a+f|0,i,a+i|0,k,c);a=J[J[c>>2]+12>>2];break u}a=J[J[c>>2]+12>>2];h=J[k>>2];g=J[J[a+(h<<2)>>2]>>2];m=J[i>>2];l=J[J[(m<<2)+a>>2]>>2];e=J[f>>2]; +n=J[(e<<2)+a>>2];v:{if(l>>>0>=M[n>>2]){j=0;if(g>>>0>=l>>>0)break u;J[i>>2]=h;J[k>>2]=m;j=1;e=J[i>>2];h=J[f>>2];if(M[J[(e<<2)+a>>2]>>2]>=M[J[(h<<2)+a>>2]>>2])break u;J[f>>2]=e;J[i>>2]=h;break v}if(g>>>0>>0){J[f>>2]=h;J[k>>2]=e;j=1;break u}J[f>>2]=m;J[i>>2]=e;j=1;h=J[k>>2];if(M[J[(h<<2)+a>>2]>>2]>=M[n>>2])break u;J[i>>2]=h;J[k>>2]=e}j=2}d=d-1|0;e=k;g=J[f>>2];h=J[J[(g<<2)+a>>2]>>2];m=J[J[(J[i>>2]<<2)+a>>2]>>2];if(h>>>0>=m>>>0){while(1){e=e-4|0;if((e|0)==(f|0)){g=f+4|0;e=J[k>>2];if(h>>>0>2]>>2])break e;if((g|0)==(k|0))break d;while(1){i=J[g>>2];if(h>>>0>2]>>2]){J[g>>2]=e;J[k>>2]=i;g=g+4|0;break e}g=g+4|0;if((k|0)!=(g|0))continue;break}break d}l=J[e>>2];if(m>>>0<=M[J[(l<<2)+a>>2]>>2])continue;break}J[f>>2]=l;J[e>>2]=g;j=j+1|0}h=f+4|0;if(h>>>0>=e>>>0)break f;while(1){m=J[J[(J[i>>2]<<2)+a>>2]>>2];while(1){g=h;h=h+4|0;l=J[g>>2];if(m>>>0>M[J[(l<<2)+a>>2]>>2])continue;break}while(1){e=e-4|0;n=J[e>>2];if(m>>>0<=M[J[(n<<2)+a>>2]>>2])continue;break}if(e>>>0>>0){h=g;break f}else{J[g>> +2]=n;J[e>>2]=l;i=(g|0)==(i|0)?e:i;j=j+1|0;continue}}}jO(f,f+4|0,f+8|0,b-4|0,c);break d}w:{if((h|0)==(i|0))break w;e=J[i>>2];o=J[J[(e<<2)+a>>2]>>2];g=a;a=J[h>>2];if(o>>>0>=M[J[g+(a<<2)>>2]>>2])break w;J[h>>2]=e;J[i>>2]=a;j=j+1|0}if(!j){e=J9(f,h,c);a=h+4|0;if(J9(a,b,c)){a=f;b=h;if(!e)continue a;break d}if(e)continue b}if((h-f|0)<(b-h|0)){GE(f,h,c,d);a=h+4|0;continue b}GE(h+4|0,b,c,d);a=f;b=h;continue a}e=k;if((g|0)==(e|0))break d;while(1){i=J[J[(J[f>>2]<<2)+a>>2]>>2];while(1){h=g;g=h+4|0;j=J[h>>2]; +if(i>>>0>=M[J[(j<<2)+a>>2]>>2])continue;break}while(1){e=e-4|0;m=J[e>>2];if(i>>>0>2]>>2])continue;break}if(e>>>0<=h>>>0){f=h;continue c}else{J[h>>2]=m;J[e>>2]=j;continue}}}break}break}break}}function XX(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;f=fc-80|0;fc=f;g=uq(f+72|0);h=J[a+24>>2];J[699344]=0;d=f+60|0;ca(4961,d|0,h|0,a+12|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){J[699344]=0;a=aa(3469,g|0,d|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1){if(H[f+71|0]<0)uc(J[f+60>>2]);b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!a)break k; +J[699344]=0;a=_(3470,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break i;if(!a)break k;J[699344]=0;a=f+48|0;da(4962,a|0,g|0);h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;i=aa(4985,f+60|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;if(H[f+59|0]<0)uc(J[f+48>>2]);J[699344]=0;h=f+48|0;J[h>>2]=0;J[h+4>>2]=0;H[h+8|0]=0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;a=Qd(i,2378592);d=J[699344];J[699344]=0;if((d|0)==1)break j;l:{if(a){J[699344]=0;a=Th(g);d=J[699344];J[699344]=0; +if((d|0)==1)break j;if(a)break l;J[699344]=0;a=$g(g);d=J[699344];J[699344]=0;if((d|0)==1)break h;while(1){J[699344]=0;d=aa(4975,g|0,a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;if(!d)break l;J[699344]=0;d=f+24|0;da(4962,d|0,g|0);e=J[699344];J[699344]=0;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((e|0)!=1){J[699344]=0;d=aa(4985,f+36|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break A;J[699344]=0;dg(i,d);e=J[699344];J[699344]=0;if((e|0)==1)break z;Rc(d);if(H[f+35|0]<0)uc(J[f+24>>2]);J[699344]= +0;d=Qd(i,2378660);e=J[699344];J[699344]=0;if((e|0)==1)break g;if(!d)break m;J[699344]=0;d=f+12|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;e=J[699344];J[699344]=0;if((e|0)==1)break x;J[699344]=0;ca(4989,g|0,2378688,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break o;J[699344]=0;e=Qd(d,2378724);j=J[699344];J[699344]=0;if((j|0)==1)break o;if(!e)break p;J[699344]=0;a=Th(g);e=J[699344];J[699344]=0;if((e|0)==1)break w;B:{if(a)break B;J[699344]=0;a=$g(g);e=J[699344];J[699344]=0;if((e|0)==1)break u;while(1){J[699344]= +0;e=aa(4975,g|0,a|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break v;if(!e)break B;J[699344]=0;da(4962,f|0,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break t;J[699344]=0;e=aa(4985,f+24|0,f|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break s;J[699344]=0;dg(i,e);j=J[699344];J[699344]=0;if((j|0)==1)break r;Rc(e);if(H[f+11|0]<0)uc(J[f>>2]);J[699344]=0;e=Qd(i,2378740);j=J[699344];J[699344]=0;if((j|0)==1)break v;if(!e)continue;break}J[699344]=0;ca(4989,g|0,2378780,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break u; +J[699344]=0;a=_(4990,h|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break u;J[b>>2]=a;J[699344]=0;ca(4989,g|0,2378804,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break u;J[699344]=0;a=_(4990,h|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break u;J[c>>2]=a}Rc(d);break l}a=Z()|0;break f}a=Z()|0;break y}a=Z()|0;Rc(d)}if(H[f+35|0]>=0)break f;uc(J[f+24>>2]);break f}a=Z()|0;break f}a=Z()|0;Rc(d);break f}a=Z()|0;Rc(d);break f}a=Z()|0;Rc(d);break f}a=Z()|0;Rc(d);break f}a=Z()|0;break q}a=Z()|0;Rc(e)}if(H[f+11|0]>=0)break n; +uc(J[f>>2]);Rc(d);break f}Rc(d);continue}a=Z()|0}Rc(d);break f}J[699344]=0;d=Qd(i,2378832);e=J[699344];J[699344]=0;if((e|0)==1)break g;if(!d)continue;break}J[699344]=0;a=Th(g);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(a)break l;J[699344]=0;a=$g(g);d=J[699344];J[699344]=0;C:{D:{E:{F:{G:{if((d|0)==1)break G;H:{while(1){J[699344]=0;d=aa(4975,g|0,a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break H;if(!d)break l;J[699344]=0;da(4962,f|0,g|0);d=J[699344];J[699344]=0;if((d|0)==1)break F;J[699344]=0;d= +aa(4985,f+24|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break E;J[699344]=0;dg(i,d);e=J[699344];J[699344]=0;if((e|0)==1)break D;Rc(d);if(H[f+11|0]<0)uc(J[f>>2]);J[699344]=0;d=Qd(i,2378740);e=J[699344];J[699344]=0;if((e|0)==1)break H;if(!d)continue;break}J[699344]=0;ca(4989,g|0,2378780,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break G;J[699344]=0;a=_(4990,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break G;J[b>>2]=a;J[699344]=0;ca(4989,g|0,2378804,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break G;J[699344]= +0;a=_(4990,h|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break G;J[c>>2]=a;break l}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0;break C}a=Z()|0;Rc(d)}if(H[f+11|0]>=0)break f;uc(J[f>>2]);break f}J[699344]=0;a=Qd(i,2378740);d=J[699344];J[699344]=0;if((d|0)==1)break j;if(!a)break l;J[699344]=0;ca(4989,g|0,2378780,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;a=_(4990,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;J[b>>2]=a;J[699344]=0;ca(4989,g|0,2378804,h|0);a=J[699344];J[699344]= +0;if((a|0)==1)break j;J[699344]=0;a=_(4990,h|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;J[c>>2]=a}Rc(h);Rc(i)}J[g>>2]=769768;a=J[g+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);fc=f+80|0;return}a=Z()|0;break f}a=Z()|0;break a}a=Z()|0;break f}a=Z()|0}Rc(h);break d}a=Z()|0}Rc(i);break a}a=Z()|0;if(H[f+59|0]>=0)break a;uc(J[f+48>>2]);break a}a=Z()|0;break a}a=Z()|0;if(H[f+71|0]>=0)break a;uc(J[f+60>>2]);break a}a=Z()|0}J[g>>2]=769768;b=J[g+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);ba(a|0);B()}function kE(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;e=fc-1488|0;fc=e;h=J[a+4>>2];l=J[h+556>>2];p=J[l+40>>2];a:{b:{c:{i=J[h+712>>2];if(J[i+1504>>2]==65535)break c;f=J[i+1192>>2];if(!f)break c;if(!c){c=0;break b}g=6;if(M[i+1196>>2]>>0)break a;c=L[f+(c<<1)>>1];if(c)break b;break a}g=6;if(M[i+20>>2]<=c>>>0)break a}J[a+164>>2]=65536;J[a+168>>2]=65536;m=d&1024?d|3:d;d:{e:{if(!b)break e;J[a+164>>2]=J[b+16>>2];J[a+168>>2]=J[b+20>>2];k=J[b+44>>2];if(m&8|(k|0)==-1)break e;f=J[b>>2];d=J[f+540>> +2];if(!J[d+96>>2])break e;if(kc[J[d+72>>2]](h,k,c,m,J[f+104>>2],a+76|0,e+708|0)|0)break e;J[a+108>>2]=0;J[a+24>>2]=L[e+710>>1]<<6;J[a+28>>2]=L[e+708>>1]<<6;j=I[e+712>>1];J[a+32>>2]=j<<6;k=I[e+714>>1];J[a+36>>2]=k<<6;J[a+40>>2]=L[e+716>>1]<<6;f=I[e+718>>1];J[a+44>>2]=f<<6;b=I[e+720>>1];J[a+48>>2]=b<<6;d=L[e+722>>1];g=b;b=m&16;J[a+104>>2]=b?g:k;J[a+100>>2]=b?f:j;J[a+72>>2]=1651078259;J[a+52>>2]=d<<6;d=e+32|0;b=e+52|0;kc[J[J[h+540>>2]+140>>2]](h,0,c,d,b);J[a+56>>2]=L[e+52>>1];if(!(!K[h+292|0]|!L[h+330>> +1])){kc[J[J[h+540>>2]+140>>2]](h,1,c,d,b);J[a+60>>2]=L[e+52>>1];break d}if(L[h+372>>1]!=65535){J[a+60>>2]=I[h+442>>1]-I[h+444>>1];break d}J[a+60>>2]=I[h+220>>1]-I[h+222>>1];break d}g=6;if(m&16384)break a;j=J[i+2024>>2];f:{if(j){g=0;f=J[i+3060>>2];g:{if(!f)break g;h:switch(K[i+3052|0]){case 0:g=K[c+f|0];break g;case 3:break h;default:break g}if(M[i+3072>>2]>c-J[i+3068>>2]>>>0){g=K[i+3076|0];break g}g=f+2|0;d=K[f+1|0]|K[f|0]<<8;k=f+J[i+3064>>2]|0;while(1){if(c>>>0>=d>>>0){f=K[g+2|0]|K[g+1|0]<<8;if(f>>> +0>c>>>0){g=K[g|0];H[i+3076|0]=g;J[i+3072>>2]=f-d;J[i+3068>>2]=d;break g}d=f;g=g+3|0;if(k>>>0>g>>>0)continue}break}g=0}j=J[(i+(((j>>>0>(g&255)>>>0?g:j-1|0)&255)<<2)|0)+2028>>2];k=J[j+68>>2];f=J[i+1440>>2];d=J[j+60>>2];J[e+40>>2]=J[j+56>>2];J[e+44>>2]=d;d=J[j+52>>2];J[e+32>>2]=J[j+48>>2];J[e+36>>2]=d;n=J[j+76>>2];o=J[j+72>>2];if((f|0)==(k|0))break f;s=a,t=Od(J[a+164>>2],f,k),J[s+164>>2]=t;s=a,t=Od(J[a+168>>2],f,k),J[s+168>>2]=t;r=1;break f}f=i+1428|0;d=J[f+4>>2];J[e+40>>2]=J[f>>2];J[e+44>>2]=d;f=i+ +1420|0;d=J[f+4>>2];J[e+32>>2]=J[f>>2];J[e+36>>2]=d;n=J[i+1448>>2];o=J[i+1444>>2]}J[a+108>>2]=0;J[a+72>>2]=1869968492;j=m&1;H[a+161|0]=!j;q=!(m&2);H[a+160|0]=q;kc[J[p>>2]](e+708|0,h,b,a,q,m>>>16&15,1650,1651);if(m&256)H[e+1301|0]=1;k=m&1024;H[e+774|0]=k>>>10;d=J[J[h+128>>2]+52>>2];i:{if(d){g=kc[J[J[d>>2]>>2]](J[d+4>>2],c,e+52|0)|0;J[e+28>>2]=J[e+52>>2];J[e+24>>2]=J[e+56>>2];break i}g=hE(J[h+712>>2]+1204|0,c,e+28|0,e+24|0)}if(g)break a;d=e+708|0;g=kc[J[p+4>>2]](d,b,c)|0;if(g)break a;f=e+52|0;kc[J[l+ +24>>2]](f,d,0);d=J[e+24>>2];g=kc[J[p+8>>2]](f,J[e+28>>2],d)|0;if((g&255)==164){H[a+160|0]=0;q=0;g=kc[J[p+8>>2]](f,J[e+28>>2],d)|0;r=1}f=J[J[h+128>>2]+52>>2];j:{if(f){J[e+12>>2]=d;J[e+8>>2]=J[e+28>>2];kc[J[J[f>>2]+4>>2]](J[f+4>>2],e+8|0);break j}f=J[h+712>>2];if(J[f+1236>>2])break j;$f(J[f+1204>>2],e+28|0)}if(g)break a;g=0;k:{if(J[J[h+128>>2]+52>>2])d=0;else{f=J[i+1232>>2];if(!f)break k;g=(J[i+1236>>2]+J[f+(c<<2)>>2]|0)-1|0}J[a+140>>2]=d;J[a+136>>2]=g}kc[J[e+788>>2]](e+708|0);l=J[J[h+128>>2]+52>>2]; +l:{if(!l)break l;f=J[J[l>>2]+8>>2];if(!f)break l;J[e+12>>2]=0;J[e+8>>2]=J[e+740>>2];d=J[e+752>>2];J[e+16>>2]=J[e+748>>2];J[e+20>>2]=d;g=kc[f|0](J[l+4>>2],c,0,e+8|0)|0;J[e+740>>2]=J[e+8>>2];d=J[e+20>>2];J[e+748>>2]=J[e+16>>2];J[e+752>>2]=d;if(g)break a}if(k){J[a+32>>2]=J[e+740>>2];J[a+40>>2]=J[e+1292>>2];f=J[e+40>>2];d=J[e+44>>2];c=J[e+32>>2];b=J[e+36>>2];a=J[a+156>>2];J[a+28>>2]=o;J[a+32>>2]=n;H[a+8|0]=1;J[a+20>>2]=f;J[a+24>>2]=d;J[a+12>>2]=c;J[a+16>>2]=b;break d}m:{if(L[h+250>>1]){I[e+8>>1]=0;I[e+ +28>>1]=0;kc[J[J[h+540>>2]+140>>2]](h,0,c,e+8|0,e+28|0);d=L[e+28>>1];J[a+32>>2]=I[e+8>>1];break m}d=J[e+1292>>2]}J[a+56>>2]=d;J[a+40>>2]=d;H[J[a+156>>2]+8|0]=0;n:{if(!(!K[h+292|0]|!L[h+330>>1])){I[e+8>>1]=0;I[e+28>>1]=0;kc[J[J[h+540>>2]+140>>2]](h,1,c,e+8|0,e+28|0);J[a+48>>2]=I[e+8>>1];d=L[e+28>>1];J[a+52>>2]=d;f=1;break n}if(L[h+372>>1]!=65535)d=I[h+442>>1]-I[h+444>>1]|0;else d=I[h+220>>1]-I[h+222>>1]|0;J[a+52>>2]=d;f=0}J[a+72>>2]=1869968492;J[a+60>>2]=d;l=a+108|0;J[a+124>>2]=b?L[b+14>>1]<24?260: +4:4;o:{if(!(J[e+36>>2]|(J[e+32>>2]!=65536|J[e+44>>2]!=65536)))if(!J[e+40>>2])break o;kp(l,e+32|0);s=a,t=Wc(J[a+40>>2],J[e+32>>2]),J[s+40>>2]=t;s=a,t=Wc(J[a+52>>2],J[e+44>>2]),J[s+52>>2]=t}if(n|o){Xh(l,o,n);J[a+40>>2]=J[a+40>>2]+o;J[a+52>>2]=J[a+52>>2]+n}if(!(!r&j)){j=J[a+168>>2];k=J[a+164>>2];p:{if(J[e+776>>2]!=0&q)break p;b=I[a+110>>1];if((b|0)<=0)break p;c=b&65535;d=J[a+112>>2];while(1){s=d,t=Wc(J[d>>2],k),J[s>>2]=t;s=d,t=Wc(J[d+4>>2],j),J[s+4>>2]=t;d=d+8|0;b=c>>>0>1;c=c-1|0;if(b)continue;break}}s= +a,t=Wc(J[a+40>>2],k),J[s+40>>2]=t;s=a,t=Wc(J[a+52>>2],j),J[s+52>>2]=t}Hq(l,e+8|0);d=J[e+8>>2];J[a+24>>2]=J[e+16>>2]-d;c=J[e+12>>2];b=J[e+20>>2];J[a+36>>2]=b;J[a+32>>2]=d;J[a+28>>2]=b-c;if(f){J[a+44>>2]=d+(J[a+40>>2]/-2|0);s=a,t=Wc(J[a+48>>2],J[a+168>>2]),J[s+48>>2]=t;break d}if(!(m&16))break d;Xu(a+24|0,J[a+52>>2])}g=0}fc=e+1488|0;return g}function Zaa(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!d){if((c|0)<2&(b|0)<=0)break a;b:{if((c|0)<=0)break b;d=0;if((c|0)!=1){h=c&-2;while(1){f=d<<3;e=f+a|0; +i=e;e=J[e>>2];e=vEb(e,e>>31,10078,0);j=jc;e=(((j&4095)<<20|e>>>12)&1)+((j&8191)<<19|e>>>13)|0;J[i>>2]=e;e=(f|8)+a|0;f=e;e=J[e>>2];e=vEb(e,e>>31,10078,0);i=jc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[f>>2]=e;d=d+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}}if(!(c&1))break b;d=(d<<3)+a|0;e=d;d=J[e>>2];d=vEb(d,d>>31,10078,0);g=jc;d=(((g&4095)<<20|d>>>12)&1)+((g&8191)<<19|d>>>13)|0;J[e>>2]=d}c:{if((b|0)<=0)break c;d=1;if((b|0)!=1){h=b&-2;d=0;g=0;while(1){f=d<<3;e=f+a|0;i=e+4|0;e=J[e+4>>2]; +e=vEb(e,e>>31,13318,0);j=jc;e=(((j&4095)<<20|e>>>12)&1)+((j&8191)<<19|e>>>13)|0;J[i>>2]=e;e=(f|12)+a|0;f=e;e=J[e>>2];e=vEb(e,e>>31,13318,0);i=jc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[f>>2]=e;d=d+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}d=d<<1|1}if(!(b&1))break c;d=(d<<2)+a|0;e=d;d=J[e>>2];d=vEb(d,d>>31,13318,0);g=jc;d=(((g&4095)<<20|d>>>12)&1)+((g&8191)<<19|d>>>13)|0;J[e>>2]=d}g=a-4|0;d:{if((c|0)<=0)break d;e=J[a>>2];h=g+(b<<3)|0;d=J[((b|0)>0?a+4|0:h)>>2]+J[a+4>>2]|0;d=vEb(d,d>> +31,3633,0);f=jc;d=(((f&4095)<<20|d>>>12)&1)+((f&8191)<<19|d>>>13)|0;J[a>>2]=e-d;if((c|0)==1)break d;d=1;while(1){f=d<<3;e=f+a|0;i=e;j=J[e>>2];e=J[((b|0)>(d|0)?e+4|0:h)>>2]+J[((b|0)<(d|0)?h:f+g|0)>>2]|0;e=vEb(e,e>>31,3633,0);f=jc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=j-e;d=d+1|0;if((d|0)!=(c|0))continue;break}}if((b|0)>0){h=((c<<3)+a|0)-8|0;d=0;while(1){f=(c|0)>(d|0);e=(d<<3)+a|0;i=e+4|0;j=J[e+4>>2];d=d+1|0;e=J[((c|0)>(d|0)?(d<<3)+a|0:h)>>2]+J[(f?e:h)>>2]|0;e=vEb(e,e>>31,7233, +0);f=jc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=j-e;if((b|0)!=(d|0))continue;break}}e:{if((c|0)<=0)break e;e=J[a>>2];h=g+(b<<3)|0;d=J[((b|0)>0?a+4|0:h)>>2]+J[a+4>>2]|0;d=vEb(d,d>>31,434,0);f=jc;d=(((f&4095)<<20|d>>>12)&1)+((f&8191)<<19|d>>>13)|0;J[a>>2]=d+e;if((c|0)==1)break e;d=1;while(1){f=d<<3;e=f+a|0;i=e;j=J[e>>2];e=J[((b|0)>(d|0)?e+4|0:h)>>2]+J[((b|0)<(d|0)?h:f+g|0)>>2]|0;e=vEb(e,e>>31,434,0);f=jc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=e+j;d=d+1|0;if((d| +0)!=(c|0))continue;break}}if((b|0)<=0)break a;g=((c<<3)+a|0)-8|0;d=0;while(1){h=(c|0)>(d|0);e=(d<<3)+a|0;f=e+4|0;i=J[e+4>>2];d=d+1|0;e=J[((c|0)>(d|0)?(d<<3)+a|0:g)>>2]+J[(h?e:g)>>2]|0;e=vEb(e,e>>31,12994,0);h=jc;e=(((h&4095)<<20|e>>>12)&1)+((h&8191)<<19|e>>>13)|0;J[f>>2]=e+i;if((b|0)!=(d|0))continue;break}break a}d=(c|0)<=0;if(d&(b|0)<=1)break a;f:{if(d)break f;d=0;if((c|0)!=1){h=c&-2;while(1){f=d<<3;e=f+a|0;i=e+4|0;e=J[e+4>>2];e=vEb(e,e>>31,10078,0);j=jc;e=(((j&4095)<<20|e>>>12)&1)+((j&8191)<<19| +e>>>13)|0;J[i>>2]=e;e=(f|12)+a|0;f=e;e=J[e>>2];e=vEb(e,e>>31,10078,0);i=jc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[f>>2]=e;d=d+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}}if(!(c&1))break f;d=(d<<3)+a|0;e=d+4|0;d=J[d+4>>2];d=vEb(d,d>>31,10078,0);g=jc;d=(((g&4095)<<20|d>>>12)&1)+((g&8191)<<19|d>>>13)|0;J[e>>2]=d}g:{if((b|0)<=0)break g;d=0;if((b|0)!=1){h=b&-2;g=0;while(1){f=d<<3;e=f+a|0;i=e;e=J[e>>2];e=vEb(e,e>>31,13318,0);j=jc;e=(((j&4095)<<20|e>>>12)&1)+((j&8191)<<19|e>>>13)|0;J[i>>2]= +e;e=(f|8)+a|0;f=e;e=J[e>>2];e=vEb(e,e>>31,13318,0);i=jc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[f>>2]=e;d=d+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}d=d<<1}if(!(b&1))break g;d=(d<<2)+a|0;e=d;d=J[e>>2];d=vEb(d,d>>31,13318,0);g=jc;d=(((g&4095)<<20|d>>>12)&1)+((g&8191)<<19|d>>>13)|0;J[e>>2]=d}if((c|0)>0){g=((b<<3)+a|0)-8|0;d=0;while(1){h=(b|0)>(d|0);e=(d<<3)+a|0;f=e+4|0;i=J[e+4>>2];d=d+1|0;e=J[((b|0)>(d|0)?(d<<3)+a|0:g)>>2]+J[(h?e:g)>>2]|0;e=vEb(e,e>>31,3633,0);h=jc;e=(((h&4095)<<20| +e>>>12)&1)+((h&8191)<<19|e>>>13)|0;J[f>>2]=i-e;if((c|0)!=(d|0))continue;break}}g=a-4|0;h:{if((b|0)<=0)break h;e=J[a>>2];h=g+(c<<3)|0;d=J[a+4>>2]+J[((c|0)>0?a+4|0:h)>>2]|0;d=vEb(d,d>>31,7233,0);f=jc;d=(((f&4095)<<20|d>>>12)&1)+((f&8191)<<19|d>>>13)|0;J[a>>2]=e-d;if((b|0)==1)break h;d=1;while(1){f=d<<3;e=f+a|0;i=e;j=J[e>>2];e=J[((c|0)<(d|0)?h:f+g|0)>>2]+J[((c|0)>(d|0)?e+4|0:h)>>2]|0;e=vEb(e,e>>31,7233,0);f=jc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=j-e;d=d+1|0;if((d|0)!=(b|0))continue; +break}}if((c|0)>0){h=((b<<3)+a|0)-8|0;d=0;while(1){f=(b|0)>(d|0);e=(d<<3)+a|0;i=e+4|0;j=J[e+4>>2];d=d+1|0;e=J[((b|0)>(d|0)?(d<<3)+a|0:h)>>2]+J[(f?e:h)>>2]|0;e=vEb(e,e>>31,434,0);f=jc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=e+j;if((c|0)!=(d|0))continue;break}}d=1;if((b|0)<=0)break a;f=J[a>>2];h=g+(c<<3)|0;e=J[a+4>>2]+J[((c|0)>0?a+4|0:h)>>2]|0;e=vEb(e,e>>31,12994,0);i=jc;e=(((i&4095)<<20|e>>>12)&1)+((i&8191)<<19|e>>>13)|0;J[a>>2]=e+f;if((b|0)==1)break a;while(1){f=d<<3;e=f+a|0;i= +e;j=J[e>>2];e=J[((c|0)<(d|0)?h:f+g|0)>>2]+J[((c|0)>(d|0)?e+4|0:h)>>2]|0;e=vEb(e,e>>31,12994,0);f=jc;e=(((f&4095)<<20|e>>>12)&1)+((f&8191)<<19|e>>>13)|0;J[i>>2]=e+j;d=d+1|0;if((d|0)!=(b|0))continue;break}}}function ODb(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,u=0,v=0,w=0,x=0;i=fc-48|0;fc=i;a:{b:{c=Ny(c?c:204217);if(c){d=wp(c);if(!d){k=1;while(1){d=Es(2646176,J[c+4>>2]);c:{if(!J[(d?d:2646048)>>2]){k=0;break c}J[i>>2]=J[c+4>>2];rd(204444,i)}d=wp(c); +if(!d)continue;break}k=!k}ov(c);if((d|0)>=0)break b}rd(199484,0);c=-1;break a}d:{e:{f:{g:{c=J[a+28>>2];switch((c>>8)-3|0){case 0:break f;case 1:break g;default:break e}}if((c|0)!=1025)rd(200443,0);J[i+4>>2]=3;d=Ek(a,0);J[i+8>>2]=d;h:{if((d|0)<0)break h;c=Ek(a,1);J[i+12>>2]=c;if((c|0)<0)break h;c=Ek(a,2);J[i+16>>2]=c;if((c|0)<0)break h;n=3;break d}rd(201064,0);c=-1;break a}if((c|0)!=769)rd(200443,0);o=1;J[i+4>>2]=1;d=Ek(a,0);J[i+8>>2]=d;c=-1;n=1;if((d|0)>=0)break d;rd(201064,0);break a}rd(201887,0); c=-1;break a}i:{f=J[a+24>>2];c=J[f+(J[i+8>>2]<<2)>>2];d=J[f+(d<<2)>>2];j=J[d+16>>2];j:{if(J[c+16>>2]!=(j|0))break j;g=J[d+20>>2];if((g|0)!=J[c+20>>2])break j;e=J[d+24>>2];if((e|0)!=J[c+24>>2])break j;h=J[d+28>>2];if((h|0)!=J[c+28>>2])break j;d=J[f>>2];if(J[c+8>>2]!=J[d+8>>2])break j;q=J[d+12>>2];if((q|0)!=J[c+12>>2])break j;m=J[d>>2];if((m|0)!=J[c>>2])break j;p=J[d+4>>2];if((p|0)!=J[c+4>>2])break j;if(o)break i;c=J[f+(J[i+12>>2]<<2)>>2];if((j|0)!=J[c+16>>2]|(g|0)!=J[c+20>>2]|((e|0)!=J[c+24>>2]|(h| -0)!=J[c+28>>2]))break j;if(J[c+8>>2]!=J[d+8>>2]|(q|0)!=J[c+12>>2]|((m|0)!=J[c>>2]|(p|0)!=J[c+4>>2]))break j;c=J[f+(J[i+16>>2]<<2)>>2];if((j|0)!=J[c+16>>2]|(g|0)!=J[c+20>>2]|((e|0)!=J[c+24>>2]|(h|0)!=J[c+28>>2]))break j;if(J[c+8>>2]!=J[d+8>>2]|J[c+12>>2]!=J[d+12>>2]|J[c>>2]!=J[d>>2])break j;if((p|0)==J[c+4>>2])break i}hd(202379,0);c=-1;break a}if(h){hd(202937,0);hd(203654,0)}J[i+32>>2]=g;J[i+28>>2]=j;H[i+44|0]=(h|0)!=0;c=-1;J[i+40>>2]=-1<>2]=o?k?20530:20533:k?20531:20534;j=i+24|0;d=j; -k=bc-16|0;bc=k;h=-1;g=J[b+8>>2];k:{if(g&7)break k;f=J[d>>2];e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=g|4;break k}J[b+4>>2]=J[b+4>>2]|32;g=J[b+28>>2];J[b+28>>2]=g-1;l:{if((g|0)<=0){if((Uc(b,f>>>8&255)|0)!=-1)break l;break k}J[b+60>>2]=J[b+60>>2]+1;h=J[b+24>>2];J[b+24>>2]=h+1;H[h|0]=f>>>8}h=-1;g=J[b+8>>2];if(g&7)break k;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=g|4;break k}J[b+4>>2]=J[b+4>>2]|32;g=J[b+28>>2];J[b+28>>2]=g-1;m:{if((g|0)<=0){if((Uc(b,f&255)|0)!=-1)break m;break k}J[b+ -60>>2]=J[b+60>>2]+1;h=J[b+24>>2];J[b+24>>2]=h+1;H[h|0]=f}h=K[d+20|0];f=J[d+16>>2];g=J[d+8>>2];J[k>>2]=J[d+4>>2];J[k+4>>2]=g;J[k+8>>2]=h?0-f|0:f;El(b,204851,k);h=J[b+8>>2]<<30>>31}bc=k+16|0;if(h)break a;d=b;k=a;w=i+8|0;e=0;f=0;h=bc-320|0;bc=h;q=K9(J[j>>2]);a=J[j+16>>2];o=WN(a);J[h+316>>2]=0;J[h+308>>2]=0;J[h+312>>2]=0;n:{o:{p:{q:{if(n)while(1){b=ek(1,J[j+4>>2]);J[(h+308|0)+(f<<2)>>2]=b;if(!b)break q;f=f+1|0;if((n|0)!=(f|0))continue;break}if(J[j+8>>2]<=0)break p;if(n){p=a^-1;x=(o|0)>=32?-1:-1<>>0>=25?-1:-1<>>3|0;u=32-f|0;while(1){f=0;while(1){e=-1;a=f<<2;g=J[a+(h+308|0)>>2];if(hk(k,J[a+w>>2],0,s,J[j+4>>2],1,g))break p;J[a+(h+296|0)>>2]=J[J[g+28>>2]>>2];f=f+1|0;if((n|0)!=(f|0))continue;break}r:{if(J[j+4>>2]<=0)break r;f=0;a=0;if((q|0)!=1)while(1){g=0;while(1){l=(h+296|0)+(g<<2)|0;r=J[l>>2];e=J[r>>2];m=J[j+16>>2];J[h+16>>2]=a|g?205368:204201;e=(e|0)>(p|0)?e:p;J[h+20>>2]=(e|0)<(m|0)?e:m;e=Vf(h+32|0,204924,h+16|0);if(!((e+f|0)<80|(f|0)<=0)){El(d,205667,0);f=0}J[h>> -2]=h+32;El(d,205678,h);J[l>>2]=r+4;f=f+e|0;g=g+1|0;if((n|0)!=(g|0))continue;break}a=a+1|0;if((a|0)>2])continue;break r}while(1){m=0;s:{while(1){r=(h+296|0)+(m<<2)|0;v=J[r>>2];a=J[v>>2];a=(a|0)>(p|0)?a:p;g=J[j+16>>2];a=(a|0)<(g|0)?a:g;t:{if(K[j+20|0]){if((o|0)<=0)break t;g=(((a|0)<0?a-2&x:a)&t)<>2];if(e&7)break q;l=J[d+64>>2];if((l|0)>=0&(l|0)<=J[d+60>>2])break s;l=g>>>24|0;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;u:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+ -24>>2];J[d+24>>2]=e+1;H[e|0]=l;break u}e=-1;if((Uc(d,l)|0)==-1)break p}g=g<<8;e=a>>>0>1;a=a-1|0;if(e)continue;break}break t}if((o|0)<=0)break t;g=(a&t)<>2];if(e&7)break q;l=J[d+64>>2];if((l|0)>=0&(l|0)<=J[d+60>>2])break s;l=g>>>24|0;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;v:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=l;break v}e=-1;if((Uc(d,l)|0)==-1)break p}g=g<<8;e=a>>>0>1;a=a-1|0;if(e)continue;break}}J[r>>2]=v+4;m=m+1|0;if((m|0)!=(n| -0))continue;break}f=f+1|0;if((f|0)>=J[j+4>>2])break r;continue}break}J[d+8>>2]=e|4;break q}if((q|0)!=1)El(d,205667,0);e=-1;if(K[d+8|0]&2)break p;e=0;s=s+1|0;if((s|0)>2])continue;break}break p}if((q|0)==1)break o;f=0;while(1){El(d,205667,0);if(K[d+8|0]&2)break q;f=f+1|0;if((f|0)>2])continue;break}break p}e=-1}if(!n)break n;f=0;while(1){a=J[(h+308|0)+(f<<2)>>2];if(a)dg(a);f=f+1|0;if((n|0)!=(f|0))continue;break}break n}e=J[d+8>>2]<<30>>31}bc=h+320|0;if(e)break a;c=oE(d)?-1:0}bc=i+48|0; -return c|0}function Cz(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=1;b=L[a+32>>1];a:{if(b>>>0>6)break a;b:{c:{c=1<>1];b=1<>2];c=e;g=J[a+40>>2];d=g;h=J[a+44>>2];f=h;while(1){if((b|0)<=0)break c;if(!(L[c>>1]>255|L[d>>1]>255)){b=b-1|0;c=c+2|0;d=d+2|0;j=L[f>>1];f=f+2|0;if(j>>>0<256)continue}break}c=-1<>1]=K[d+1|0];d=b+g|0;I[d>>1]=K[d+1|0];b=b+h|0;I[b>>1]=K[b+1|0];b=-2-c|0}if(!i)break b;while(1){c= -b<<1;d=c+e|0;I[d>>1]=K[d+1|0];d=c+g|0;I[d>>1]=K[d+1|0];d=c+h|0;I[d>>1]=K[d+1|0];c=c-2|0;d=c+e|0;I[d>>1]=K[d+1|0];d=c+g|0;I[d>>1]=K[d+1|0];c=c+h|0;I[c>>1]=K[c+1|0];c=(b|0)>1;b=b-2|0;if(c)continue;break}break b}if(L[a+24>>1]==8)break a}b=L[a+24>>1];c=(b|0)==16?255:-1<>2]=b;if(!b){a=J[a>>2];Nc(J[a+628>>2],J[a>>2],82083,0);return 0}e:{f:{g:{if(L[a+32>>1]){if(c)break g;b=0;break f}h:{if(!c){b=0;break h}g=c+1&-2;b=0;while(1){H[J[a+56>>2]+b|0]=(P(c-b|0,255)|0)/(c|0);h=b|1;H[h+J[a+ -56>>2]|0]=(P(c-h|0,255)|0)/(c|0);b=b+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(c&1)break e;H[J[a+56>>2]+b|0]=(P(c-b|0,255)|0)/(c|0);break e}g=c+1&-2;b=0;while(1){H[J[a+56>>2]+b|0]=(P(b,255)>>>0)/(c>>>0);h=b|1;H[h+J[a+56>>2]|0]=(P(h,255)>>>0)/(c>>>0);b=b+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(c&1)break e;H[J[a+56>>2]+b|0]=(P(b,255)>>>0)/(c>>>0)}g=L[a+24>>1];if(g>>>0>16|L[a+32>>1]>1)break a;e=J[a+56>>2];b=zc(g>>>0>8?2048:(8/((g&255)>>>0)<<10)+1024|0);J[a+60>>2]=b;i:{j:{if(b){b=b+1024|0; +0)!=J[c+28>>2]))break j;if(J[c+8>>2]!=J[d+8>>2]|(q|0)!=J[c+12>>2]|((m|0)!=J[c>>2]|(p|0)!=J[c+4>>2]))break j;c=J[f+(J[i+16>>2]<<2)>>2];if((j|0)!=J[c+16>>2]|(g|0)!=J[c+20>>2]|((e|0)!=J[c+24>>2]|(h|0)!=J[c+28>>2]))break j;if(J[c+8>>2]!=J[d+8>>2]|J[c+12>>2]!=J[d+12>>2]|J[c>>2]!=J[d>>2])break j;if((p|0)==J[c+4>>2])break i}rd(202395,0);c=-1;break a}if(h){rd(202953,0);rd(203670,0)}J[i+32>>2]=g;J[i+28>>2]=j;H[i+44|0]=(h|0)!=0;c=-1;J[i+40>>2]=-1<>2]=o?k?20530:20533:k?20531:20534;j=i+24|0;d=j; +k=fc-16|0;fc=k;h=-1;g=J[b+8>>2];k:{if(g&7)break k;f=J[d>>2];e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=g|4;break k}J[b+4>>2]=J[b+4>>2]|32;g=J[b+28>>2];J[b+28>>2]=g-1;l:{if((g|0)<=0){if((bd(b,f>>>8&255)|0)!=-1)break l;break k}J[b+60>>2]=J[b+60>>2]+1;h=J[b+24>>2];J[b+24>>2]=h+1;H[h|0]=f>>>8}h=-1;g=J[b+8>>2];if(g&7)break k;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=g|4;break k}J[b+4>>2]=J[b+4>>2]|32;g=J[b+28>>2];J[b+28>>2]=g-1;m:{if((g|0)<=0){if((bd(b,f&255)|0)!=-1)break m;break k}J[b+ +60>>2]=J[b+60>>2]+1;h=J[b+24>>2];J[b+24>>2]=h+1;H[h|0]=f}h=K[d+20|0];f=J[d+16>>2];g=J[d+8>>2];J[k>>2]=J[d+4>>2];J[k+4>>2]=g;J[k+8>>2]=h?0-f|0:f;om(b,204867,k);h=J[b+8>>2]<<30>>31}fc=k+16|0;if(h)break a;d=b;k=a;w=i+8|0;e=0;f=0;h=fc-320|0;fc=h;q=Mba(J[j>>2]);a=J[j+16>>2];o=oP(a);J[h+316>>2]=0;J[h+308>>2]=0;J[h+312>>2]=0;n:{o:{p:{q:{if(n)while(1){b=Dk(1,J[j+4>>2]);J[(h+308|0)+(f<<2)>>2]=b;if(!b)break q;f=f+1|0;if((n|0)!=(f|0))continue;break}if(J[j+8>>2]<=0)break p;if(n){p=a^-1;x=(o|0)>=32?-1:-1<>>0>=25?-1:-1<>>3|0;u=32-f|0;while(1){f=0;while(1){e=-1;a=f<<2;g=J[a+(h+308|0)>>2];if(Gk(k,J[a+w>>2],0,s,J[j+4>>2],1,g))break p;J[a+(h+296|0)>>2]=J[J[g+28>>2]>>2];f=f+1|0;if((n|0)!=(f|0))continue;break}r:{if(J[j+4>>2]<=0)break r;f=0;a=0;if((q|0)!=1)while(1){g=0;while(1){l=(h+296|0)+(g<<2)|0;r=J[l>>2];e=J[r>>2];m=J[j+16>>2];J[h+16>>2]=a|g?205384:204217;e=(e|0)>(p|0)?e:p;J[h+20>>2]=(e|0)<(m|0)?e:m;e=cg(h+32|0,204940,h+16|0);if(!((e+f|0)<80|(f|0)<=0)){om(d,205683,0);f=0}J[h>> +2]=h+32;om(d,205694,h);J[l>>2]=r+4;f=f+e|0;g=g+1|0;if((n|0)!=(g|0))continue;break}a=a+1|0;if((a|0)>2])continue;break r}while(1){m=0;s:{while(1){r=(h+296|0)+(m<<2)|0;v=J[r>>2];a=J[v>>2];a=(a|0)>(p|0)?a:p;g=J[j+16>>2];a=(a|0)<(g|0)?a:g;t:{if(K[j+20|0]){if((o|0)<=0)break t;g=(((a|0)<0?a-2&x:a)&t)<>2];if(e&7)break q;l=J[d+64>>2];if((l|0)>=0&(l|0)<=J[d+60>>2])break s;l=g>>>24|0;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;u:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+ +24>>2];J[d+24>>2]=e+1;H[e|0]=l;break u}e=-1;if((bd(d,l)|0)==-1)break p}g=g<<8;e=a>>>0>1;a=a-1|0;if(e)continue;break}break t}if((o|0)<=0)break t;g=(a&t)<>2];if(e&7)break q;l=J[d+64>>2];if((l|0)>=0&(l|0)<=J[d+60>>2])break s;l=g>>>24|0;J[d+4>>2]=J[d+4>>2]|32;e=J[d+28>>2];J[d+28>>2]=e-1;v:{if((e|0)>0){J[d+60>>2]=J[d+60>>2]+1;e=J[d+24>>2];J[d+24>>2]=e+1;H[e|0]=l;break v}e=-1;if((bd(d,l)|0)==-1)break p}g=g<<8;e=a>>>0>1;a=a-1|0;if(e)continue;break}}J[r>>2]=v+4;m=m+1|0;if((m|0)!=(n| +0))continue;break}f=f+1|0;if((f|0)>=J[j+4>>2])break r;continue}break}J[d+8>>2]=e|4;break q}if((q|0)!=1)om(d,205683,0);e=-1;if(K[d+8|0]&2)break p;e=0;s=s+1|0;if((s|0)>2])continue;break}break p}if((q|0)==1)break o;f=0;while(1){om(d,205683,0);if(K[d+8|0]&2)break q;f=f+1|0;if((f|0)>2])continue;break}break p}e=-1}if(!n)break n;f=0;while(1){a=J[(h+308|0)+(f<<2)>>2];if(a)mg(a);f=f+1|0;if((n|0)!=(f|0))continue;break}break n}e=J[d+8>>2]<<30>>31}fc=h+320|0;if(e)break a;c=sF(d)?-1:0}fc=i+48|0; +return c|0}function HA(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=1;b=L[a+32>>1];a:{if(b>>>0>6)break a;b:{c:{c=1<>1];b=1<>2];c=e;g=J[a+40>>2];d=g;h=J[a+44>>2];f=h;while(1){if((b|0)<=0)break c;if(!(L[c>>1]>255|L[d>>1]>255)){b=b-1|0;c=c+2|0;d=d+2|0;j=L[f>>1];f=f+2|0;if(j>>>0<256)continue}break}c=-1<>1]=K[d+1|0];d=b+g|0;I[d>>1]=K[d+1|0];b=b+h|0;I[b>>1]=K[b+1|0];b=-2-c|0}if(!i)break b;while(1){c= +b<<1;d=c+e|0;I[d>>1]=K[d+1|0];d=c+g|0;I[d>>1]=K[d+1|0];d=c+h|0;I[d>>1]=K[d+1|0];c=c-2|0;d=c+e|0;I[d>>1]=K[d+1|0];d=c+g|0;I[d>>1]=K[d+1|0];c=c+h|0;I[c>>1]=K[c+1|0];c=(b|0)>1;b=b-2|0;if(c)continue;break}break b}if(L[a+24>>1]==8)break a}b=L[a+24>>1];c=(b|0)==16?255:-1<>2]=b;if(!b){a=J[a>>2];Uc(J[a+628>>2],J[a>>2],82099,0);return 0}e:{f:{g:{if(L[a+32>>1]){if(c)break g;b=0;break f}h:{if(!c){b=0;break h}g=c+1&-2;b=0;while(1){H[J[a+56>>2]+b|0]=(P(c-b|0,255)|0)/(c|0);h=b|1;H[h+J[a+ +56>>2]|0]=(P(c-h|0,255)|0)/(c|0);b=b+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(c&1)break e;H[J[a+56>>2]+b|0]=(P(c-b|0,255)|0)/(c|0);break e}g=c+1&-2;b=0;while(1){H[J[a+56>>2]+b|0]=(P(b,255)>>>0)/(c>>>0);h=b|1;H[h+J[a+56>>2]|0]=(P(h,255)>>>0)/(c>>>0);b=b+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(c&1)break e;H[J[a+56>>2]+b|0]=(P(b,255)>>>0)/(c>>>0)}g=L[a+24>>1];if(g>>>0>16|L[a+32>>1]>1)break a;e=J[a+56>>2];b=Dc(g>>>0>8?2048:(8/((g&255)>>>0)<<10)+1024|0);J[a+60>>2]=b;i:{j:{if(b){b=b+1024|0; c=0;k:switch(g-1|0){case 1:while(1){J[J[a+60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[e+(c>>>6|0)|0],65793)|-16777216;J[b+4>>2]=P(K[e+(c>>>4&3)|0],65793)|-16777216;J[b+8>>2]=P(K[e+(c>>>2&3)|0],65793)|-16777216;J[b+12>>2]=P(K[e+(c&3)|0],65793)|-16777216;b=b+16|0;c=c+1|0;if((c|0)!=256)continue;break}break i;case 3:while(1){J[J[a+60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[e+(c>>>4|0)|0],65793)|-16777216;J[b+4>>2]=P(K[e+(c&15)|0],65793)|-16777216;b=b+8|0;c=c+1|0;if((c|0)!=256)continue;break}break i;case 7:case 15:while(1){J[J[a+ -60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[c+e|0],65793)|-16777216;g=c|1;J[J[a+60>>2]+(g<<2)>>2]=b+4;J[b+4>>2]=P(K[e+g|0],65793)|-16777216;b=b+8|0;c=c+2|0;if((c|0)!=256)continue;break}break i;case 0:break j;default:break k}while(1){e=c<<2;J[e+J[a+60>>2]>>2]=b;J[J[a+60>>2]+(e|4)>>2]=b;J[J[a+60>>2]+(e|8)>>2]=b;J[J[a+60>>2]+(e|12)>>2]=b;c=c+4|0;if((c|0)!=256)continue;break}break i}a=J[a>>2];Nc(J[a+628>>2],J[a>>2],82296,0);return 0}while(1){J[J[a+60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[e+(c>>>7|0)|0],65793)|-16777216;J[b+ -4>>2]=P(K[e+(c>>>6&1)|0],65793)|-16777216;J[b+8>>2]=P(K[e+(c>>>5&1)|0],65793)|-16777216;J[b+12>>2]=P(K[e+(c>>>4&1)|0],65793)|-16777216;J[b+16>>2]=P(K[e+(c>>>3&1)|0],65793)|-16777216;J[b+20>>2]=P(K[e+(c>>>2&1)|0],65793)|-16777216;J[b+24>>2]=P(K[e+(c>>>1&1)|0],65793)|-16777216;J[b+28>>2]=P(K[e+(c&1)|0],65793)|-16777216;b=b+32|0;c=c+1|0;if((c|0)!=256)continue;break}}qc(J[a+56>>2]);J[a+56>>2]=0;return 1}b=J[a>>2];ae(J[b+628>>2],J[b>>2],81961,0)}d=1;f=L[a+24>>1];if(f>>>0>8)break a;e=J[a+44>>2];g=J[a+40>> -2];h=J[a+36>>2];b=zc((8/((f&255)>>>0)<<10)+1024|0);J[a+64>>2]=b;if(b){b=b+1024|0;c=0;l:switch(f-1|0){case 0:while(1){J[J[a+64>>2]+(c<<2)>>2]=b;d=c>>>6&67108862;J[b>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>5&2;J[b+4>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>4&2;J[b+8>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>3&2;J[b+12>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>2&2;J[b+16>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<< +60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[c+e|0],65793)|-16777216;g=c|1;J[J[a+60>>2]+(g<<2)>>2]=b+4;J[b+4>>2]=P(K[e+g|0],65793)|-16777216;b=b+8|0;c=c+2|0;if((c|0)!=256)continue;break}break i;case 0:break j;default:break k}while(1){e=c<<2;J[e+J[a+60>>2]>>2]=b;J[J[a+60>>2]+(e|4)>>2]=b;J[J[a+60>>2]+(e|8)>>2]=b;J[J[a+60>>2]+(e|12)>>2]=b;c=c+4|0;if((c|0)!=256)continue;break}break i}a=J[a>>2];Uc(J[a+628>>2],J[a>>2],82312,0);return 0}while(1){J[J[a+60>>2]+(c<<2)>>2]=b;J[b>>2]=P(K[e+(c>>>7|0)|0],65793)|-16777216;J[b+ +4>>2]=P(K[e+(c>>>6&1)|0],65793)|-16777216;J[b+8>>2]=P(K[e+(c>>>5&1)|0],65793)|-16777216;J[b+12>>2]=P(K[e+(c>>>4&1)|0],65793)|-16777216;J[b+16>>2]=P(K[e+(c>>>3&1)|0],65793)|-16777216;J[b+20>>2]=P(K[e+(c>>>2&1)|0],65793)|-16777216;J[b+24>>2]=P(K[e+(c>>>1&1)|0],65793)|-16777216;J[b+28>>2]=P(K[e+(c&1)|0],65793)|-16777216;b=b+32|0;c=c+1|0;if((c|0)!=256)continue;break}}uc(J[a+56>>2]);J[a+56>>2]=0;return 1}b=J[a>>2];le(J[b+628>>2],J[b>>2],81977,0)}d=1;f=L[a+24>>1];if(f>>>0>8)break a;e=J[a+44>>2];g=J[a+40>> +2];h=J[a+36>>2];b=Dc((8/((f&255)>>>0)<<10)+1024|0);J[a+64>>2]=b;if(b){b=b+1024|0;c=0;l:switch(f-1|0){case 0:while(1){J[J[a+64>>2]+(c<<2)>>2]=b;d=c>>>6&67108862;J[b>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>5&2;J[b+4>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>4&2;J[b+8>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>3&2;J[b+12>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>2&2;J[b+16>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<< 8)&65535|-16777216;d=1;f=c>>>1&2;J[b+20>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;f=c&2;J[b+24>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;f=c<<1&2;J[b+28>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;b=b+32|0;c=c+1|0;if((c|0)!=256)continue;break}break a;case 1:while(1){J[J[a+64>>2]+(c<<2)>>2]=b;d=c>>>5&134217726;J[b>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=c>>>3&6;J[b+4>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=1;f=c>>> 1&6;J[b+8>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;f=c<<1&6;J[b+12>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;b=b+16|0;c=c+1|0;if((c|0)!=256)continue;break}break a;case 3:while(1){J[J[a+64>>2]+(c<<2)>>2]=b;d=c>>>3&536870910;J[b>>2]=L[d+e>>1]<<16|(K[d+h|0]|L[d+g>>1]<<8)&65535|-16777216;d=1;f=c<<1&30;J[b+4>>2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;b=b+8|0;c=c+1|0;if((c|0)!=256)continue;break}break a;case 7:while(1){J[J[a+64>>2]+(c<<2)>>2]=b;f=c<<1;J[b>> -2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;b=b+4|0;c=c+1|0;if((c|0)!=256)continue;break}break a;default:break l}while(1){e=c<<2;J[e+J[a+64>>2]>>2]=b;J[J[a+64>>2]+(e|4)>>2]=b;J[J[a+64>>2]+(e|8)>>2]=b;J[J[a+64>>2]+(e|12)>>2]=b;c=c+4|0;if((c|0)!=256)continue;break}break a}d=0;a=J[a>>2];Nc(J[a+628>>2],J[a>>2],82422,0)}return d}function St(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=Q(0),q=0,r=0,s=0,t=0;g=bc-128|0;bc=g;m=g+100|0;J[m>>2]=0;J[m+ -4>>2]=0;J[m+24>>2]=1;J[m+16>>2]=0;J[m+20>>2]=0;J[m+8>>2]=0;J[m+12>>2]=0;J[g+40>>2]=0;H[g+96|0]=0;i=J[c>>2];J[g+28>>2]=2;J[g+24>>2]=i;J[g+20>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(J[b+216>>2])break j;l=J[J[b>>2]+84>>2];J[695492]=0;i=ga(l|0,b|0,i|0,g+20|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break b;if(J[b+216>>2]|(i|0)>0|J[b+204>>2]==-1)break j;l=J[c>>2];if((l|0)>=61440){J[g+36>>2]=i;J[g+32>>2]=J[g+20>>2];break i}i=J[J[b>>2]+84>>2];J[695492]=0;i=ga(i|0,b|0,l+61440|0,g+20|0)|0;l=J[695492];J[695492]= -0;if((l|0)==1)break b}J[g+32>>2]=J[g+20>>2];J[g+36>>2]=i;if((i|0)>0)break h}if(K[f|0]){tc(a,g+24|0,104);break d}if(!J[b+216>>2]){h=J[c>>2];i=J[b+284>>2];J[695492]=0;h=ga(2748,i|0,b|0,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break g;if(!h){tc(a,g+24|0,104);break d}J[695492]=0;H[g|0]=1;oa(2749,a|0,h|0,c|0,d|0,e|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;c=J[J[h>>2]+12>>2];J[695492]=0;$(c|0,h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){b=Z()|0;fj(a+76|0);break a}if(!J[a+4>>2])break d;fj(a+76| -0)}h=1;i=J[b+200>>2];if((i|0)>=0)break h;p=Q(Q(J[J[J[b+188>>2]+88>>2]+36>>2]>>6)*Q(.5));N[g+44>>2]=p;N[g+40>>2]=p;tc(a,g+24|0,104);break d}J[g+28>>2]=h;if(J[b+280>>2]){k=O[b+8>>3];s=O[b+56>>3];o=O[b+16>>3];t=O[b+72>>3];n=(k*s+o*t)*65536;k:{if(R(n)<2147483648){c=~~n;break k}c=-2147483648}J[b+220>>2]=c;n=k;k=O[b- -64>>3];r=o;o=O[b+80>>3];n=(n*k+r*o)*65536;l:{if(R(n)<2147483648){c=~~n;break l}c=-2147483648}J[b+228>>2]=c;n=O[b+24>>3];r=n*k;k=O[b+32>>3];o=(r+o*k)*65536;m:{if(R(o)<2147483648){c=~~o;break m}c= --2147483648}J[b+232>>2]=c;k=(n*s+t*k)*65536;n:{if(R(k)<2147483648){c=~~k;break n}c=-2147483648}J[b+224>>2]=c;c=J[b+188>>2];J[695492]=0;iu(c,b+220|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break b}c=J[b+288>>2]?J[J[b+284>>2]+156>>2]:40970;h=J[b+188>>2];J[695492]=0;c=ga(2751,h|0,i|0,c|0)|0;l=J[695492];J[695492]=0;o:{if((l|0)==1)break o;p:{if(!((c|0)!=131&c-17>>>0>22|J[b+288>>2]!=1)){J[695492]=0;c=ga(2751,h|0,i|0,40970)|0;h=J[695492];J[695492]=0;if((h|0)==1)break o;if(c)break p;J[b+288>>2]=0;break e}if(!c)break e}tc(a, -g+24|0,104);break d}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}J[g+16>>2]=0;c=J[J[b+188>>2]+84>>2];J[695492]=0;c=aa(2752,c|0,g+16|0)|0;h=J[695492];J[695492]=0;q:{if((h|0)!=1){if(!c)break q;tc(a,g+24|0,104);break d}b=Z()|0;break a}c=J[b+188>>2];J[695492]=0;h=aa(2753,c|0,2)|0;c=J[695492];J[695492]=0;r:{s:{t:{if((c|0)!=1){i=J[b+140>>2];c=(i|0)==1;u:{v:{if(!(!h|(i|0)!=1)){if(L[h>>1]==65535)break v;c=L[h+4>>1]<800}if(!e)break u;if(!c)break r;break s}if(e)break s;c=1}J[695492]=0;ca(2754,J[g+16>>2], -1,g|0);e=J[695492];J[695492]=0;w:{x:{y:{if((e|0)==1)break y;J[695492]=0;_(2755,J[g+16>>2]);e=J[695492];J[695492]=0;if((e|0)==1)break y;e=J[b+188>>2];h=L[e+68>>1];k=O[b+192>>3];j=J[e+84>>2];e=J[j+56>>2];N[g+52>>2]=J[g+8>>2]>>6;N[g+56>>2]=J[g+4>>2]>>6;N[g+60>>2]=J[g+12>>2]>>6;N[g+48>>2]=J[g>>2]>>6;p=Q(k*+(e|0)/+(h>>>0));N[g+40>>2]=c?Q(p+Q(1)):p;e=J[j+24>>2];N[g+64>>2]=e>>6;N[g+68>>2]=J[j+28>>2]>>6;h=J[j+40>>2];N[g+80>>2]=h>>6;N[g+72>>2]=J[j+32>>2]>>6;N[g+76>>2]=J[j+36>>2]>>6;N[g+92>>2]=J[j+52>>2]>> -6;N[g+84>>2]=J[j+44>>2]>>6;N[g+88>>2]=J[j+48>>2]>>6;if(!K[f|0]|h>>>0>63|e>>>0>=64)break x;J[g+28>>2]=2;break w}b=Z()|0;break a}if(!K[d|0])break w;H[g+96|0]=1;d=J[J[b+284>>2]+160>>2];J[695492]=0;d=aa(2756,j|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break t;if(d)break w;J[m>>2]=J[j+100>>2];J[g+104>>2]=J[j+104>>2];h=J[j+80>>2];J[g+108>>2]=h;e=J[j+76>>2];J[g+112>>2]=e;i=K[b+104|0];J[g+116>>2]=i;z:{if(i){b=h;if(!c)break z;h=b+1|0;J[g+108>>2]=h;b=h;break z}b=h+7>>3}d=b;b=P(d,e);if(!b){J[g+120>>2]=0; -J[g+124>>2]=0;break w}f=zc(b);J[g+124>>2]=0;J[g+120>>2]=f;if(!f)break w;if(!((i|0)!=0&c)){if((e|0)<=0)break w;c=J[j+84>>2];b=J[j+88>>2];if(e>>>0>=4){h=e&-4;i=0;while(1){f=tc(f,b,d);l=b+c|0;j=l+c|0;q=j+c|0;b=q+c|0;f=tc(tc(tc(d+f|0,l,d)+d|0,j,d)+d|0,q,d)+d|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}e=e&3;if(!e)break w;i=0;while(1){f=tc(f,b,d);b=b+c|0;f=d+f|0;i=i+1|0;if((e|0)!=(i|0))continue;break}break w}if((e|0)<=0|(h|0)<=0)break w;l=h-2|0;i=h-1|0;c=J[j+88>>2];while(1){A:{if(!i)break A;H[f+i|0]=K[c+ -l|0];h=i;b=l;if(!b)break A;while(1){h=K[b+c|0]+K[(c+h|0)-2|0]|0;H[b+f|0]=h>>>0>=255?255:h;h=b;b=b-1|0;if(b)continue;break}}H[f|0]=K[c|0];f=d+f|0;c=J[j+84>>2]+c|0;q=q+1|0;if((q|0)<(e|0))continue;break}}tc(a,g+24|0,104);break d}b=Z()|0;break a}b=Z()|0;break a}k=O[b+120>>3];J[695492]=0;c=J[g+16>>2]+20|0;k=k*64/25.4/3;B:{if(R(k)<2147483648){b=~~k;break B}b=-2147483648}$L(c,b,0);b=J[695492];J[695492]=0;if((b|0)==1)break c}b=J[e+4>>2];c=J[e>>2];J[695492]=0;ga(1669,J[g+16>>2]+20|0,c|0,b|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break c;tc(a,g+24|0,104)}fj(m);bc=g+128|0;return}b=Z()|0;break a}b=Z()|0}fj(m);ba(b|0);B()}function eBa(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;j=bc-32|0;bc=j;a:{b:{e=J[b>>2];c:{d:{if(!e){b=Kc(j+8|0,2383232,2374282,178,2389024,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;a=Z()|0;Fc(b);break d}e=e+36|0;h=kf(e);e:{f:{k=a+16|0;i=J[J[k+12>>2]+((h>>>0)%M[k+8>>2]<<2)>>2];if(i)while(1){if((h|0)==J[i+12>>2])if(!tj(i+16|0,e,-1))break f; -i=J[i+8>>2];if(i)continue;break}g:{if((Sz(J[c>>2],j+8|0,0,4,0)|0)!=4|(K[j+8|0]|K[j+9|0]<<8|(K[j+10|0]<<16|K[j+11|0]<<24))!=1411798081)break g;e=j+4|0;pV(e,c,4,-1);J[695492]=0;aa(4993,c|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;i=J[j+4>>2];J[j+4>>2]=0;if(!i)break g;J[695492]=0;h=J[i+4>>2]-1|0;J[i+4>>2]=h;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(h)break g;J[695492]=0;_(4987,i|0);e=J[695492];J[695492]=0;if((e|0)==1)break b}uj(Ul(k,J[b>>2]+36|0)+24|0,c);g=bc-32|0;bc=g;f=J[a+8>>2];h=J[f+ -16>>2];e=b;a=J[b>>2]+36|0;c=kf(a);h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{i=f+80|0;b=J[J[i+12>>2]+((c>>>0)%M[i+8>>2]<<2)>>2];if(b)while(1){if((c|0)==J[b+12>>2])if(!tj(b+16|0,a,-1))break r;b=J[b+8>>2];if(b)continue;break}a=J[e>>2]+20|0;k=kf(a);c=f+52|0;b=J[J[c+12>>2]+((k>>>0)%M[c+8>>2]<<2)>>2];if(b)while(1){if((k|0)==J[b+12>>2])if(!tj(b+16|0,a,-1))break q;b=J[b+8>>2];if(b)continue;break}uj(Ul(c,J[e>>2]+20|0)+24|0,e);uj(Ul(i,J[e>>2]+36|0)+24|0,e);b=J[e>>2];a=J[b+44>>2];if(!(!a|!J[a+8>>2])){a=b+44|0;k=kf(a); -c=f+108|0;b=J[J[c+12>>2]+((k>>>0)%M[c+8>>2]<<2)>>2];if(b)while(1){if((k|0)==J[b+12>>2])if(!tj(b+16|0,a,-1))break p;b=J[b+8>>2];if(b)continue;break}uj(Ul(c,J[e>>2]+44|0)+24|0,e);b=J[e>>2]}c=f+20|0;if((K[b+52|0]&63)!=3)break n;b=J[c>>2];if(!b)break n;break o}a=J[e>>2];J[695492]=0;ca(5048,g|0,2382540,a+36|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;a=J[g>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;b=ja(5018,g+8|0,a|0,2377692,662,2386411,0)|0;a=J[695492];J[695492]=0;s:{if((a|0)!=1){J[695492]=0;_(5019, -b|0);a=J[695492];J[695492]=0;if((a|0)==1)break s;break m}break l}break k}a=J[e>>2];J[695492]=0;ca(5048,g|0,2386717,a+20|0);a=J[695492];J[695492]=0;t:{if((a|0)!=1){a=J[g>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;b=ja(5018,g+8|0,a|0,2377692,664,2386411,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break t;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break k}break j}break l}a=J[e>>2];J[695492]=0;ca(5048,g|0,2387E3,a+44|0);a=J[695492];J[695492]=0;u:{if((a|0)!=1){a=J[g>>2];a=J[(a?a+ -12|0:2728584)>>2];J[695492]=0;b=ja(5018,g+8|0,a|0,2377692,671,2386411,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break u;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break k}break j}break l}while(1){if((K[J[b+8>>2]+52|0]&63)!=3){b=J[b>>2];if(b)continue;break n}break}J[695492]=0;b=ja(5018,g+8|0,2387186,2377692,680,2386411,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break j;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break i}h=(d|0)<0?h:d;b=0;a=c;while(1){a= -J[a>>2];if(a){d=(b|0)!=(h|0);b=b+1|0;if(d)continue}break}d=f+12|0;v:{if(a){J[g+12>>2]=d;J[g+8>>2]=a;a=rc(12);J[a>>2]=0;J[a+4>>2]=0;b=J[e>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;b=J[e>>2]}else b=0;J[a+8>>2]=b;XT(d,g+8|0,a);break v}a=rc(12);J[a>>2]=0;J[a+4>>2]=0;b=J[e>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;b=J[e>>2]}else b=0;J[a+8>>2]=b;of(d,a)}d=J[e>>2];w:{if((K[d+52|0]&63)!=1)break w;a=0;b=J[c>>2];x:{if(!b)break x;while(1){c=J[b+8>>2];if((c|0)==(d|0))break x;a=((K[c+52|0]&63)==1)+a|0;b=J[b>>2];if(b)continue;break}}Sl(f+ -28|0,0,(J[f+48>>2]-J[f+44>>2]|0)+1|0);c=J[f+48>>2];d=J[f+44>>2];b=c-d|0;if((b|0)>(a|0)){c=b+1|0;while(1){y:{h=c-2|0;if((h|0)>=J[f+44>>2]){c=J[f+48>>2];if((c|0)>=(h|0))break y}b=Kc(g+8|0,2388219,2388431,619,2388563,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break i}if((b|0)>(c|0)){b=Kc(g+8|0,2388219,2388431,619,2388563,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break i}c=J[f+32>>2];d=J[f+36>>2];uj(c+(b-d<<2)|0,c+(h-d<<2)|0);c=b;b=b-1|0;if((b| -0)>(a|0))continue;break}c=J[f+48>>2];d=J[f+44>>2]}if(!((a|0)<=(c|0)&(a|0)>=(d|0))){b=Kc(g+8|0,2388219,2388431,619,2388563,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break i}uj(J[f+32>>2]+(a-J[f+36>>2]<<2)|0,e);c=J[f+48>>2];h=J[f+44>>2];if(((c-h|0)+1|0)<=(a|0))break w;e=J[f+36>>2];d=J[f+32>>2];b=a;while(1){if(!((b|0)<=(c|0)&(a|0)>=(h|0))){b=Kc(g+8|0,2388219,2388431,619,2388563,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break i}J[J[d+(b-e<<2)>> -2]+56>>2]=b;b=b+1|0;c=J[f+48>>2];if((b|0)<((c-h|0)+1|0))continue;break}}bc=g+32|0;break h}B()}a=Z()|0;break a}a=Z()|0;Fc(b);break a}ba(Z()|0);B()}a=Z()|0;Fc(b);ba(a|0);B()}bc=j+32|0;return}b=Kc(j+8|0,2375318,2374282,180,2389024,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;a=Z()|0;Fc(b);break d}a=Z()|0;vc(j+4|0)}ba(a|0)}B()}ea(0)|0;yc();B()}sc(g);ba(a|0);B()}function _6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=bc-992|0;bc=h;a:{b:{c:{if(!J[a+4>>2])break c;d:switch(b- -4|0){case 0:f=1;b=L[a+26>>1];if((b|0)==4)break c;f=0;if(b>>>0>4)break c;c=qf(h+16|0,0);J[695492]=0;da(153,c|0,a|0);b=J[695492];J[695492]=0;e:{if((b|0)==1)break e;b=J[a+68>>2];d=J[a+20>>2];f=J[a+16>>2];J[695492]=0;ma(78,c|0,f|0,d|0,4,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;b=J[a+4>>2];d=J[a+44>>2];f=J[695492];J[695492]=0;if((f|0)==1)break e;J[695492]=0;f=J[a+44>>2];e=J[695492];J[695492]=0;if((e|0)==1)break e;J[695492]=0;ca(19,c|0,(b?d?b+40|0:0:0)|0,f|0);b=J[695492];J[695492]= -0;if((b|0)==1)break e;J[695492]=0;f=J[c+4>>2]!=0;b=J[695492];J[695492]=0;if((b|0)==1)break e;f:{if(!f){J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break e;ff(a+72|0,c+72|0);break f}J[695492]=0;aa(154,c|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;aa(155,c|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;e=J[a+20>>2];g:{if(J[a+332>>2]|(e|0)<=0)break g;g=J[a+16>>2];if((g|0)<=0)break g;d=0;while(1){b=0;if((g|0)>0){while(1){J[695492]=0;e=Fo(a,b,d);g=J[695492];J[695492]=0;if((g| -0)==1)break a;J[695492]=0;QD(c,b,d,e);e=J[695492];J[695492]=0;if((e|0)==1)break a;b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e=J[a+20>>2];b=J[a+332>>2]}d=d+1|0;if((e|0)<=(d|0))break g;if(!b)continue;break}}J[695492]=0;ga(108,a|0,c|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e}J[c>>2]=1032;J[695492]=0;$(13,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;$(14,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;break c}break a;case 4:f=1;b=L[a+26>>1];if((b|0)==8)break c;f= -0;if(b>>>0>8)break c;c=qf(h+16|0,0);J[695492]=0;da(153,c|0,a|0);b=J[695492];J[695492]=0;h:{if((b|0)==1)break h;b=J[a+68>>2];d=J[a+20>>2];f=J[a+16>>2];J[695492]=0;ma(78,c|0,f|0,d|0,8,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;b=J[a+4>>2];d=J[a+44>>2];f=J[695492];J[695492]=0;if((f|0)==1)break h;J[695492]=0;f=J[a+44>>2];e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;ca(19,c|0,(b?d?b+40|0:0:0)|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;f=J[c+4>>2]!=0;b= -J[695492];J[695492]=0;if((b|0)==1)break h;i:{if(!f){J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break h;ff(a+72|0,c+72|0);break i}J[695492]=0;aa(154,c|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;aa(155,c|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;e=J[a+20>>2];j:{if(J[a+332>>2]|(e|0)<=0)break j;g=J[a+16>>2];if((g|0)<=0)break j;d=0;while(1){b=0;if((g|0)>0){while(1){J[695492]=0;e=Fo(a,b,d);g=J[695492];J[695492]=0;if((g|0)==1)break a;J[695492]=0;QD(c,b,d,e);e=J[695492]; -J[695492]=0;if((e|0)==1)break a;b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e=J[a+20>>2];b=J[a+332>>2]}d=d+1|0;if((e|0)<=(d|0))break j;if(!b)continue;break}}J[695492]=0;ga(108,a|0,c|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h}J[c>>2]=1032;J[695492]=0;$(13,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;$(14,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c}break b}break a;case 20:break d;default:break c}f=1;b=L[a+26>>1];if((b|0)==24)break c;f=0;if(b>>>0>24)break c;c=qf(h+16| -0,0);J[695492]=0;da(153,c|0,a|0);b=J[695492];J[695492]=0;k:{if((b|0)==1)break k;b=J[a+68>>2];d=J[a+20>>2];f=J[a+16>>2];J[695492]=0;ma(78,c|0,f|0,d|0,24,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;f=J[c+4>>2]!=0;b=J[695492];J[695492]=0;if((b|0)==1)break k;l:{if(!f){J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break k;ff(a+72|0,c+72|0);break l}b=J[a+336>>2];if((b|0)>=0){J[695492]=0;ug(h+12|0,a,b&255);b=J[695492];J[695492]=0;if((b|0)==1)break k;J[c+340>>2]=J[h+12>>2]}J[695492]= -0;aa(154,c|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;aa(155,c|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;b=qN(a);d=J[695492];J[695492]=0;if((d|0)==1)break k;m:{if(!b)break m;J[695492]=0;b=J[a+964>>2];d=J[695492];J[695492]=0;if((d|0)==1)break k;if(b)break m;J[695492]=0;$(123,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k}e=J[a+20>>2];n:{if(J[a+332>>2]|(e|0)<=0)break n;g=J[a+16>>2];if((g|0)<=0)break n;d=0;while(1){b=0;if((g|0)>0){while(1){J[695492]=0; -tm(h+8|0,a,b,d,1);e=J[695492];J[695492]=0;if((e|0)==1)break k;J[695492]=0;J[h+4>>2]=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);lN(c,b,d,h+4|0,1);e=J[695492];J[695492]=0;if((e|0)==1)break k;b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e=J[a+20>>2];b=J[a+332>>2]}d=d+1|0;if((e|0)<=(d|0))break n;if(!b)continue;break}}J[695492]=0;ga(108,a|0,c|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k}J[c>>2]=1032;J[695492]=0;$(13,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;$(14,c|0)| -0;a=J[695492];J[695492]=0;if((a|0)!=1)break c}break b}break a}bc=h+992|0;return f|0}ea(0)|0;yc();B()}a=Z()|0;mj(c);ba(a|0);B()}function rI(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0,P=0,Q=0,S=0,T=0,U=0;l=bc-208|0;bc=l;f=J[a+28>>2];G=O[f+16>>3];H=O[f+40>>3];I=O[f+32>>3];K=O[f+24>>3];E=G*H-I*K;a:{if(R(E)<=1E-10){b=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2]; -b=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,b,822007,0);break a}p=J[f+(c?120:116)>>2];N=O[f+48>>3];P=O[f+56>>3];n=O[b+80>>3];m=O[a+48>>3];k=O[b+88>>3];j=O[a- -64>>3];o=n*m+k*j;O[l>>3]=o;h=n;n=O[a+56>>3];i=k;k=O[a+72>>3];q=h*n+i*k;O[l+8>>3]=q;h=O[b+96>>3];i=O[b+104>>3];v=n*h+k*i;O[l+24>>3]=v;w=h*m+j*i;O[l+16>>3]=w;h=m;m=O[b+112>>3];i=j;j=O[b+120>>3];A=O[a+80>>3]+(h*m+i*j);O[l+32>>3]=A;C=m*n+k*j+O[a+88>>3];O[l+40>>3]=C;m=o*v-w*q;if(R(m)<=1E-10){b=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c; -a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,b,822007,0);break a}g=J[a+8>>2];gc[J[J[g>>2]+64>>2]](g,f);L=J[a+28>>2];g=rc(672);J[695492]=0;f=ga(3389,g|0,L|0,1)|0;x=J[695492];J[695492]=0;d:{e:{if((x|0)!=1){J[a+28>>2]=f;g=J[f+380>>2];if(g)gc[J[J[g>>2]+4>>2]](g);J[f+380>>2]=0;g=J[a+28>>2];f=J[g+384>>2];if(f)gc[J[J[f>>2]+4>>2]](f);J[g+384>>2]=0;f:{g:{if(J[b+8>>2]!=2)break g;f=J[p+12>>2];if(!f)break g;g=J[a+28>>2];x=gc[J[J[f>>2]+8>>2]](f)|0;p=J[g+116>>2];if(p)gc[J[J[p>>2]+4>>2]](p);J[g+116>>2]=x;g=J[a+ -8>>2];gc[J[J[g>>2]+108>>2]](g,J[a+28>>2]);g=J[a+28>>2];p=gc[J[J[f>>2]+8>>2]](f)|0;f=J[g+120>>2];if(f)gc[J[J[f>>2]+4>>2]](f);J[g+120>>2]=p;f=J[a+8>>2];gc[J[J[f>>2]+112>>2]](f,J[a+28>>2]);f=J[a+28>>2];tc(f+252|0,f+124|0,128);f=J[a+8>>2];gc[J[J[f>>2]+116>>2]](f,J[a+28>>2]);f=J[a+8>>2];gc[J[J[f>>2]+120>>2]](f,J[a+28>>2]);J[J[a+28>>2]+664>>2]=1;break f}f=J[a+28>>2];p=rk(0);g=J[f+116>>2];if(g)gc[J[J[g>>2]+4>>2]](g);J[f+116>>2]=p;f=J[a+8>>2];gc[J[J[f>>2]+108>>2]](f,J[a+28>>2]);g=J[J[a+28>>2]+116>>2];f=l+ -80|0;gc[J[J[g>>2]+32>>2]](g,f);tc(J[a+28>>2]+124|0,f,128);g=J[a+8>>2];gc[J[J[g>>2]+116>>2]](g,J[a+28>>2]);g=J[a+28>>2];x=rk(0);p=J[g+120>>2];if(p)gc[J[J[p>>2]+4>>2]](p);J[g+120>>2]=x;g=J[a+8>>2];gc[J[J[g>>2]+112>>2]](g,J[a+28>>2]);g=J[J[a+28>>2]+120>>2];gc[J[J[g>>2]+32>>2]](g,f);tc(J[a+28>>2]+252|0,f,128);f=J[a+8>>2];gc[J[J[f>>2]+120>>2]](f,J[a+28>>2])}f=J[a+28>>2];if(c)break e;J[f+440>>2]=0;J[f+444>>2]=0;c=J[a+8>>2];gc[J[J[c>>2]+100>>2]](c,f);iI(J[a+28>>2],0,0,0);c=J[a+8>>2];gc[J[J[c>>2]+80>>2]](c, -J[a+28>>2]);if(e)break d;wj(J[a+28>>2]);c=J[a+28>>2];e=J[a+8>>2];f=J[e>>2];if(d){gc[J[f+224>>2]](e,c);break d}gc[J[f+220>>2]](e,c);break d}a=Z()|0;qc(g);ba(a|0);B()}_Y(f);c=J[a+8>>2];gc[J[J[c>>2]+228>>2]](c,J[a+28>>2])}Rf(J[a+28>>2]);c=J[a+28>>2];n=O[c+632>>3];i=O[c+648>>3];h:{if(n>i)break h;r=O[c+640>>3];k=O[c+656>>3];if(r>k)break h;j=1/m;t=j*(q*A-C*o);y=j*-q;m=n*y;s=o*j;D=s*k;h=t+(m+D);u=s*r;m=t+(m+u);s=j*(w*C-A*v);z=v*j;n=n*z;j=j*-w;F=j*k;k=s+(n+F);r=j*r;j=s+(n+r);i:{if(k -j)){n=j;break i}n=k}j:{if(hm)){k=m;break j}k=h}y=i*y;h=t+(y+u);u=i*z;i=s+(u+r);k:{if(in))break k;n=i}l:{if(hk))break l;k=h}z=-K;r=1/E;M=-I;h=t+(y+D);i=s+(u+F);m:{if(in))break m;n=i}t=r*z;s=G*r;E=H*r;y=r*M;n:{if(hk))break n;k=h}D=o*t;u=s*q;z=o*E;F=y*q;M=s*v;Q=w*t;S=y*v;T=w*E;h=O[b+16>>3];O[l+48>>3]=h;i=O[b+24>>3];O[l+56>>3]=i;o=O[b+32>>3];O[l+64>>3]=o;q=O[b+40>>3];O[l+72>>3]=q;o:{if(!(h> -o)){v=h;h=o;break o}O[l+64>>3]=h;O[l+48>>3]=o;v=o}w=D+u;D=z+F;u=Q+M;z=T+S;p:{if(!(i>q)){o=i;i=q;break p}O[l+72>>3]=i;O[l+56>>3]=q;o=q}q=O[b+48>>3];F=O[b+56>>3];O[l+24>>3]=u;O[l+16>>3]=z;O[l+8>>3]=w;O[l>>3]=D;i=m-i;m=R(F);i=W(i/m);q:{if(R(i)<2147483648){f=~~i;break q}f=-2147483648}i=P*G;G=K*N;H=N*H;I=I*P;h=j-h;j=R(q);h=W(h/j);r:{if(R(h)<2147483648){d=~~h;break r}d=-2147483648}h=s*C;q=A*t;i=G-i;C=y*C;A=A*E;t=I-H;k=V((k-o)/m);s:{if(R(k)<2147483648){g=~~k;break s}g=-2147483648}k=q+h;h=r*i;i=A+C;o=r*t; -n=V((n-v)/j);t:{if(R(n)<2147483648){p=~~n;break t}p=-2147483648}n=h+k;k=o+i;c=J[a+8>>2];if(!(gc[J[J[c>>2]+16>>2]](c)|0)){if((f|0)>(g|0)|(d|0)>(p|0))break h;U=b+128|0;e=0;while(1){h=m*+(f|0);i=u*h;h=z*h;c=d;while(1){x=c;c=J[a+116>>2];u:{if(!c)break u;if((e|0)<100){e=e+1|0;break u}e=0;if(gc[c|0](J[a+120>>2])|0)break h}o=j*+(x|0);O[l+40>>3]=n+(o*w+i);O[l+32>>3]=k+(o*D+h);Uv(a,U,J[b+64>>2]==7?J[b+72>>2]:0,l,l+48|0,0,0,0,0,0,0,0);c=x+1|0;if((p|0)!=(x|0))continue;break}c=(f|0)!=(g|0);f=f+1|0;if(c)continue; -break}break h}O[l+40>>3]=n;O[l+32>>3]=k;c=J[a+8>>2];gc[J[J[c>>2]+212>>2]](c,J[a+28>>2],a,b+128|0,J[b+8>>2],J[b+12>>2],J[b+64>>2]==7?J[b+72>>2]:0,l,l+48|0,d,f,p+1|0,g+1|0,j,m)}b=J[a+28>>2];if(J[b+668>>2])while(1){b=Zl(b);J[a+28>>2]=b;c=J[a+8>>2];gc[J[J[c>>2]+68>>2]](c,b);b=J[a+28>>2];if(J[b+668>>2])continue;break}qc(Nq(b));J[a+28>>2]=L;a=J[a+8>>2];gc[J[J[a>>2]+68>>2]](a,L)}bc=l+208|0}function Ar(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,w=0,x=0,y=0,z= -0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0;g=bc-48|0;bc=g;G=J[a>>2];x=J[a+40>>2];k=J[a+36>>2];c=J[J[a+2748>>2]+40>>2];H[g+39|0]=0;H[g+40|0]=0;H[g+41|0]=0;H[g+42|0]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+8>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g>>2]=0;J[g+4>>2]=0;d=P(b,1348)+a|0;w=d;J[d+44>>2]=0;f=J[d+68>>2];D=(c>>>0)/14|0;e=J[a+28>>2];d=J[a+24>>2];c=e+P(d,40)|0;a:{if(!b){if((d|0)<=0)break a;while(1){J[e+24>>2]=I[e+12>>1];J[e+28>>2]=I[e+14>>1];e=e+40|0;if(c>>>0>e>>>0)continue; -break}break a}if((d|0)<=0)break a;while(1){J[e+24>>2]=I[e+14>>1];J[e+28>>2]=I[e+12>>1];e=e+40|0;if(c>>>0>e>>>0)continue;break}}b:{if((k|0)>0){R=(k<<2)+x|0;u=P(b,1348)+a|0;E=u+72|0;c=f>>31;y=(c^f)-c|0;M=y;c=0;while(1){v=J[x>>2];d=H[J[v+36>>2]+3|0];f=d>>31;c:{if(((d^f)-f|0)!=(y|0))break c;e=v;d=H[e+3|0];f=d>>31;if(((d^f)-f|0)!=(y|0))break c;while(1){e=J[e+36>>2];d=H[e+3|0];f=d>>31;if(((d^f)-f|0)!=(y|0)){v=J[e+32>>2];break c}if((e|0)!=(v|0))continue;break}}n=0;l=-32E3;h=32E3;e=v;m=32E3;k=-32E3;f=0;d= -0;o=32E3;p=-32E3;N=0;j=0;s=32E3;t=-32E3;z=32E3;A=-32E3;F=0;q=0;B=32E3;C=-32E3;while(1){O=1;d:{if(!n)break d;r=J[e+28>>2];n=L[e>>1];i=n&3;p=i?p:(p|0)<(r|0)?r:p;o=i?o:(o|0)>(r|0)?r:o;i=(k|0)<(r|0);d=i?n:d;k=i?r:k;i=(m|0)>(r|0);f=i?n:f;m=i?r:m;i=J[e+24>>2];l=(l|0)<(i|0)?i:l;h=(h|0)>(i|0)?i:h;if(!((e|0)==(v|0)|H[e+3|0]!=(M|0))){O=0;break d}e:{if(j){i=J[c+36>>2];if((i|0)==J[j+40>>2])break e}J[c+40>>2]=e;I[c+4>>1]=l-h>>>1;I[c+2>>1]=h+l>>>1;if(!(!((d|f)&3)|(p-o|0)>=(D|0)))H[c|0]=K[c|0]|1;I[c+8>>1]=k;I[c+ -6>>1]=m;I[c+10>>1]=k-m;j=c;s=h;t=l;z=m;A=k;F=f;q=d;B=o;C=p;c=0;break d}f:{if(K[i+2|0]==K[e+2|0]){J[j+40>>2]=e;i=(k|0)<(A|0);k=i?A:k;I[j+8>>1]=k;c=(m|0)>(z|0);m=c?z:m;I[j+6>>1]=m;I[j+10>>1]=k-m;l=(l|0)<(t|0)?t:l;h=(h|0)>(s|0)?s:h;I[j+4>>1]=l-h>>>1;I[j+2>>1]=h+l>>>1;f=c?F:f;d=i?q:d;p=(p|0)<(C|0)?C:p;o=(o|0)>(B|0)?B:o;H[j|0]=K[j|0]&254|((f|d)&3)!=0&(p-o|0)<(D|0);break f}i=A-z|0;Q=i>>31;r=k-m|0;n=r>>31;if((i^Q)-Q>>>0>(n^r)-n>>>0){J[j+40>>2]=e;t=(l|0)>(t|0)?l:t;s=(h|0)<(s|0)?h:s;I[j+4>>1]=t-s>>>1;I[j+ -2>>1]=s+t>>>1;break f}J[c+40>>2]=e;l=(l|0)<(t|0)?t:l;h=(h|0)>(s|0)?s:h;I[c+4>>1]=l-h>>>1;I[c+2>>1]=h+l>>>1;if(!(!((d|f)&3)|(p-o|0)>=(D|0)))H[c|0]=K[c|0]|1;I[c+6>>1]=m;I[c+10>>1]=r;I[c+8>>1]=k;J[j+40>>2]=J[c+40>>2];q=J[c+36>>2];J[j+32>>2]=J[c+32>>2];J[j+36>>2]=q;q=J[c+28>>2];J[j+24>>2]=J[c+24>>2];J[j+28>>2]=q;q=J[c+20>>2];J[j+16>>2]=J[c+16>>2];J[j+20>>2]=q;q=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=q;q=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=q;s=h;t=l;z=m;A=k;F=f;q=d;B=o;C=p}J[w+44>>2]=J[w+44>>2]-1;c= -0}g:{if((e|0)==(v|0)){i=N;N=1;if(i)break g}n=1;if(!O){e=J[e+32>>2];continue}i=H[e+3|0];n=i>>31;h:{if(((i^n)-n|0)==(y|0))break h;n=0;if(J[e+36>>2]==(e|0))break h;e=J[e+32>>2];continue}J[g+44>>2]=0;c=J[w+44>>2];i:{if((c|0)<=17){if(J[u+52>>2])break i;J[u+52>>2]=E;J[u+48>>2]=18;break i}f=J[u+48>>2];if((f|0)>(c|0))break i;if((f|0)>48806445){h=64;break b}c=f>>2;j:{if((c|0)>=-4){c=(c+f|0)+4|0;if((c|0)<48806447)break j}c=48806446}d=J[u+52>>2];k:{if((d|0)==(E|0)){d=Sc(G,44,0,c,0,g+44|0);J[u+52>>2]=d;h=J[g+ -44>>2];if(h)break b;tc(d,E,792);break k}S=u,T=Sc(G,44,f,c,d,g+44|0),J[S+52>>2]=T;h=J[g+44>>2];if(h)break b}J[u+48>>2]=c;c=J[w+44>>2]}n=1;l=J[u+52>>2];J[w+44>>2]=c+1;k=P(c,44);c=k+l|0;H[c|0]=0;f=J[g+20>>2];d=J[g+16>>2];H[c+1|0]=d;H[c+2|0]=d>>>8;H[c+3|0]=d>>>16;H[c+4|0]=d>>>24;H[c+5|0]=f;H[c+6|0]=f>>>8;H[c+7|0]=f>>>16;H[c+8|0]=f>>>24;f=J[g+28>>2];d=J[g+24>>2];H[c+9|0]=d;H[c+10|0]=d>>>8;H[c+11|0]=d>>>16;H[c+12|0]=d>>>24;H[c+13|0]=f;H[c+14|0]=f>>>8;H[c+15|0]=f>>>16;H[c+16|0]=f>>>24;f=J[g+36>>2];d=J[g+ -32>>2];H[c+17|0]=d;H[c+18|0]=d>>>8;H[c+19|0]=d>>>16;H[c+20|0]=d>>>24;H[c+21|0]=f;H[c+22|0]=f>>>8;H[c+23|0]=f>>>16;H[c+24|0]=f>>>24;d=K[g+39|0]|K[g+40|0]<<8|(K[g+41|0]<<16|K[g+42|0]<<24);H[c+24|0]=d;H[c+25|0]=d>>>8;H[c+26|0]=d>>>16;H[c+27|0]=d>>>24;J[c+28>>2]=32E3;J[c+40>>2]=J[g+8>>2];d=J[g+4>>2];J[c+32>>2]=J[g>>2];J[c+36>>2]=d;H[c+1|0]=i;J[c+40>>2]=e;J[c+36>>2]=e;j=j?c-44|0:0;m=J[e+28>>2];f=L[e>>1];d=f&3;p=d?-32E3:m;o=d?32E3:m;h=J[e+24>>2];if(J[e+36>>2]==(e|0)){k=k+l|0;I[k+2>>1]=h;if(d)H[c|0]=1;I[k+ -10>>1]=0;I[k+8>>1]=m;I[k+6>>1]=m;n=0;c=0}l=h;k=m;d=f;M=i;e=J[e+32>>2];continue}break}x=x+4|0;if(R>>>0>x>>>0)continue;break}}h=0;e=J[(P(b,1348)+a|0)+52>>2];if(!e)break b;a=J[w+44>>2];if((a|0)<=0)break b;b=P(a,44)+e|0;while(1){a=J[e+36>>2];f=J[J[a+36>>2]+28>>2];d=J[a+28>>2];a=J[e+40>>2];c=J[a+28>>2];l:{m:{if((d|0)<(c|0)){if((d|0)>(f|0))I[e+10>>1]=L[e+10>>1]+(d-f>>>1|0);a=J[J[a+32>>2]+28>>2];if((a|0)<=(c|0))break l;a=a-c|0;break m}if((d|0)<(f|0))I[e+10>>1]=L[e+10>>1]+(f-d>>>1|0);a=J[J[a+32>>2]+28>>2]; -if((a|0)>=(c|0))break l;a=c-a|0}I[e+10>>1]=L[e+10>>1]+(a>>>1|0)}e=e+44|0;if(b>>>0>e>>>0)continue;break}}bc=g+48|0;return h}function rVa(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;d=bc-96|0;bc=d;k=jy(a,58,0);a:{if(k+1>>>0<2)break a;while(1){e=d+40|0;j=cP(d+80|0,a,c,k-c|0,e);n=jy(a,59,c);J[695492]=0;c=k+1|0;f=ma(3066,d+68|0,a|0,c|0,n-c|0,e|0)|0;c=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((c|0)!=1){k=jy(a,58,n);c=K[d+91|0];e=c<<24>>24<0;n:switch((e?J[d+84>> -2]:c)-5|0){case 6:break k;case 0:break l;case 5:break m;case 4:break n;case 9:break g;case 10:break h;default:break c}if(Wc(e?J[j>>2]:j,834513,9))break c;J[695492]=0;m=+Ja(3342,f|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break f;O[b+8>>3]=m;break c}k=Z()|0;break e}c=e?J[j>>2]:j;if(Wc(c,834596,10))break j;c=K[d+79|0];h=c<<24>>24;e=(h|0)<0;o:{p:{q:switch((e?J[d+72>>2]:c)-3|0){case 3:c=e?J[f>>2]:f;if(Wc(c,834636,6))if(Wc(c,834727,6))break c;H[b+1|0]=1;break c;case 2:if(!Wc(e?J[f>>2]:f,834784,5))break p; -break c;case 4:break o;case 0:break q;default:break b}if(Wc(e?J[f>>2]:f,834961,3))break c}H[b+1|0]=2;break c}if(Wc(e?J[f>>2]:f,834996,7))break c;H[b+1|0]=3;break c}if(Wc(e?J[j>>2]:j,835082,5)|K[(H[d+79|0]<0?J[f>>2]:f)|0]!=35)break c;J[695492]=0;e=ma(3066,d+56|0,f|0,1,-1,d+40|0)|0;c=J[695492];J[695492]=0;r:{s:{if((c|0)!=1){if(H[d+79|0]<0)qc(J[f>>2]);c=J[e+4>>2];J[f>>2]=J[e>>2];J[f+4>>2]=c;J[f+8>>2]=J[e+8>>2];h=0;H[d+40|0]=0;H[d+95|0]=0;H[d+55|0]=0;c=0;i=0;t:{e=H[d+79|0];switch(((e|0)<0?J[d+72>>2]: -e&255)-3|0){case 0:break s;case 3:break t;default:break r}}c=J[f>>2];J[d+8>>2]=d+55;J[d+4>>2]=d+95;J[d>>2]=d+40;Og((e|0)<0?c:f,835171,d);h=K[d+55|0];c=K[d+95|0];i=K[d+40|0];break r}break f}c=J[f>>2];J[d+24>>2]=d+55;J[d+20>>2]=d+95;J[d+16>>2]=d+40;Og((e|0)<0?c:f,835284,d+16|0);h=P(K[d+55|0],17);c=P(K[d+95|0],17);i=P(K[d+40|0],17)}O[b+40>>3]=+((h&255)>>>0)/255;O[b+32>>3]=+((c&255)>>>0)/255;O[b+24>>3]=+((i&255)>>>0)/255;break c}c=e?J[j>>2]:j;if(Wc(c,835404,11))break i;c=K[d+79|0];e=c<<24>>24<0;u:{v:{w:{x:switch((e? -J[d+72>>2]:c)-3|0){case 0:c=e?J[f>>2]:f;if(!Wc(c,835790,3))break d;if(!Wc(c,835838,3))break d;if(Wc(c,835968,3))break w;break d;case 1:c=e?J[f>>2]:f;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))!=1684828002)break v;break u;case 3:break x;default:break v}c=e?J[f>>2]:f;if(!Wc(c,835486,6))break d;if(Wc(c,836160,6))break v;break u}if(!Wc(c,836367,3))break u}if(el(f,836471))break u;if(el(f,836570))break u;if(!el(f,836659))break c}J[b+4>>2]=J[b+4>>2]|1;break c}if(Wc(c,836768,10))break c;g=K[d+79| -0];c=g<<24>>24<0;e=c?J[f>>2]:f;h=c?J[d+72>>2]:g;y:{if((h|0)==6){if(!Wc(e,835486,6)){J[b+4>>2]=J[b+4>>2]&-3;break c}if(!Wc(e,836934,6))break y;break c}if((h|0)<7)break c;g=e+h|0;c=e;while(1){c=pg(c,111,h-6|0);if(!c)break c;if(Wc(c,837061,7)){c=c+1|0;h=g-c|0;if((h|0)>=7)continue;break c}break}if((c|0)==(g|0)|(c-e|0)==-1)break c}J[b+4>>2]=J[b+4>>2]|2;break c}if(Wc(c,837180,11))break c;e=J[f>>2];c=K[d+79|0];g=c<<24>>24<0;z:{if(K[(g?e:f)|0]==39){J[695492]=0;ma(3066,d+40|0,f|0,1,(g?J[d+72>>2]:c)-2|0,d+ -95|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break z;break f}if(!g){J[d+48>>2]=J[f+8>>2];c=J[f+4>>2];J[d+40>>2]=J[f>>2];J[d+44>>2]=c;break z}J[695492]=0;ca(2672,d+40|0,e|0,J[d+72>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break f}if(H[b+59|0]<0)qc(J[b+48>>2]);c=J[d+44>>2];J[b+48>>2]=J[d+40>>2];J[b+52>>2]=c;J[b+56>>2]=J[d+48>>2];break c}if(Wc(e?J[j>>2]:j,837315,15))break c;g=K[d+79|0];c=g<<24>>24<0;e=c?J[f>>2]:f;g=c?J[d+72>>2]:g;l=e+g|0;i=e;c=g;A:{if((c|0)<12)break A;while(1){c=pg(i,108,c-11|0);if(!c)break A; -if(Wc(c,837435,12)){i=c+1|0;c=l-i|0;if((c|0)>=12)continue;break A}break}if((c|0)==(l|0)|(c-e|0)==-1)break A;J[b+4>>2]=J[b+4>>2]|8}i=e;c=g;h=(c|0)<4;if(h)break c;B:{C:{D:{while(1){c=pg(i,119,c-3|0);if(!c)break D;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))!=1685221239){i=c+1|0;c=l-i|0;if((c|0)>=4)continue;break D}break}if((c|0)==(l|0))break D;if((c-e|0)!=-1)break C}i=e;c=g;if((c|0)<9)break B;while(1){c=pg(i,117,c-8|0);if(!c)break B;if(Wc(c,837630,9)){i=c+1|0;c=l-i|0;if((c|0)>=9)continue;break B}break}if((c| -0)==(l|0)|(c-e|0)==-1)break B}J[b+4>>2]=J[b+4>>2]|16}c=e;if(h)break c;while(1){c=pg(c,110,g-3|0);if(!c)break c;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))!=1701736302){c=c+1|0;g=l-c|0;if((g|0)>=4)continue;break c}break}if((c|0)==(l|0)|(c-e|0)==-1)break c;J[b+4>>2]=J[b+4>>2]&-25;break c}if(Wc(e?J[j>>2]:j,837936,14))break c;J[b+4>>2]=J[b+4>>2]|32;J[695492]=0;m=+Ja(3342,f|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break f;O[b+16>>3]=m;if(K[(H[d+79|0]<0?J[f>>2]:f)|0]!=45|m!=0)break c;J[b+16>>2]= -1202590843;J[b+20>>2]=-1081836831;break c}k=Z()|0;if(H[d+79|0]>=0)break e;qc(J[f>>2])}if(H[d+91|0]<0)qc(J[j>>2]);ba(k|0);B()}J[b+4>>2]=J[b+4>>2]&-2}h=K[d+79|0]}if(h<<24>>24<0)qc(J[f>>2]);if(H[d+91|0]<0)qc(J[j>>2]);if((k|0)==-1)break a;c=n+1|0;if(k>>>0>c>>>0)continue;break}}bc=d+96|0}function umb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;i=bc-32|0;bc=i;f=J[c>>2];h=J[c+4>>2];J[i+24>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;j=h-f|0;o=j>>2;c=0;a:{b:{c:{if((f| -0)!=(h|0)){if(o>>>0>=1073741824){J[695492]=0;_(1587,i+16|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break a}J[695492]=0;g=$(4,j|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[i+16>>2]=g;J[i+24>>2]=(o<<2)+g;c=g;while(1){J[c>>2]=J[f>>2];c=c+4|0;f=f+4|0;if((h|0)!=(f|0))continue;break}J[i+20>>2]=c}J[695492]=0;J[i+4>>2]=b;DD(g,c,i+4|0,(c|0)!=(g|0)?62-(S(c-g>>2)<<1)|0:0);c=J[695492];J[695492]=0;d:{if((c|0)!=1){J[i+12>>2]=0;J[i+4>>2]=0;q=e?12:0;r=d+4|0;while(1){e:{if(o>>>0<=m>>>0){J[695492]=0;ca(1601, -a|0,5,0);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;ca(1601,a|0,5,o|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;_(1599,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;a=J[i+4>>2];if(a)qc(a);a=J[i+16>>2];if(a)qc(a);bc=i+32|0;return}k=J[i+16>>2];c=J[k+(m<<2)>>2];n=J[J[J[b+12>>2]+(c<<2)>>2]+4>>2];f=J[i+4>>2];g=J[i+12>>2];f:{if(f>>>0>>0){J[f>>2]=c;c=f+4|0;J[i+8>>2]=c;break f}g=g-f|0;h=g>>1;g=g>>>0>=2147483644?1073741823:h>>>0<=1?1:h;if(g>>>0>=1073741824){J[695492]=0;ka(209); -a=J[695492];J[695492]=0;if((a|0)!=1)break a;break e}J[695492]=0;g=g<<2;h=$(4,g|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break e;J[h>>2]=c;c=h+4|0;J[i+8>>2]=c;J[i+4>>2]=h;g=g+h|0;J[i+12>>2]=g;if(f)qc(f);f=h}m=m+1|0;if(m>>>0>>0){g:{while(1){h=J[k+(m<<2)>>2];if((n|0)!=J[J[J[b+12>>2]+(h<<2)>>2]+4>>2])break g;h:{if(c>>>0>>0){J[c>>2]=h;c=c+4|0;J[i+8>>2]=c;break h}i:{j:{l=J[i+4>>2];s=c-l>>2;f=s+1|0;k:{if(f>>>0>=1073741824){J[695492]=0;_(1589,i+4|0);break k}g=g-l|0;j=g>>1;g=g>>>0>=2147483644?1073741823: -f>>>0>>0?j:f;if(!g){j=0;break i}if(g>>>0<1073741824)break j;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;break e}J[695492]=0;j=$(4,g<<2)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e}f=(s<<2)+j|0;J[f>>2]=h;g=(g<<2)+j|0;h=f+4|0;if((c|0)!=(l|0))while(1){f=f-4|0;c=c-4|0;J[f>>2]=J[c>>2];if((c|0)!=(l|0))continue;break}J[i+12>>2]=g;J[i+8>>2]=h;J[i+4>>2]=f;if(l)qc(l);c=h}m=m+1|0;if((m|0)!=(o|0))continue;break}m=o}f=J[i+4>>2]}J[695492]=0;J[i+28>>2]=b;CD(f,c,i+28|0,(c|0)!=(f|0)?62-(S(c- -f>>2)<<1)|0:0);c=J[695492];J[695492]=0;l:{m:{if((c|0)!=1){J[695492]=0;l=n-q|0;ca(1601,a|0,1,l-p|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;c=0;n=J[i+4>>2];if((n|0)!=J[i+8>>2])break m;break l}break e}while(1){h=J[n>>2];f=h<<2;g=J[J[f+J[b+12>>2]>>2]>>2];J[695492]=0;p=g-q|0;ca(1601,a|0,4,p-c|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[f+J[b+12>>2]>>2];n:{if(e){J[695492]=0;c=aa(1603,c|0,6)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break n;break e}J[695492]=0;if(c)J[c+16>>2]=J[c+16>>2]+1;f=J[695492]; -J[695492]=0;if((f|0)==1)break e}J[695492]=0;J[i+28>>2]=c;Ao(c,0);c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[J[i+28>>2]+40>>2];J[695492]=0;la(1598,a|0,c|0,p|0,l|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break e;g=r;c=g;f=J[c>>2];o:{p:{if(!f)break p;while(1){c=f;f=J[c+16>>2];if((f|0)>(h|0)){g=c;f=J[c>>2];if(f)continue;break p}if((f|0)>=(h|0)){j=c;break o}f=J[c+4>>2];if(f)continue;break}g=c+4|0}J[695492]=0;j=$(4,24)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;J[j+16>>2]=h;J[j+8>>2]=c;J[j>>2]=0; -J[j+4>>2]=0;J[j+20>>2]=0;J[g>>2]=j;h=j;c=J[J[d>>2]>>2];if(c){J[d>>2]=c;h=J[g>>2]}k=J[r>>2];c=(k|0)==(h|0);H[h+12|0]=c;q:{if(c)break q;while(1){f=J[h+8>>2];if(K[f+12|0])break q;r:{c=J[f+8>>2];g=J[c>>2];if((g|0)==(f|0)){g=J[c+4>>2];if(!(!g|K[g+12|0]))break r;s:{if(J[f>>2]==(h|0)){h=f;break s}h=J[f+4>>2];k=J[h>>2];J[f+4>>2]=k;g=f;if(k){J[k+8>>2]=f;c=J[f+8>>2];g=J[c>>2]}J[h+8>>2]=c;J[((f|0)==(g|0)?c:c+4|0)>>2]=h;J[h>>2]=f;J[f+8>>2]=h;c=J[h+8>>2];f=J[c>>2]}H[h+12|0]=1;H[c+12|0]=0;g=J[f+4>>2];J[c>>2]=g; -if(g)J[g+8>>2]=c;g=J[c+8>>2];J[f+8>>2]=g;J[g+((J[g>>2]!=(c|0))<<2)>>2]=f;J[f+4>>2]=c;J[c+8>>2]=f;break q}if(!(K[g+12|0]|!g))break r;t:{if(J[f>>2]!=(h|0)){h=f;break t}g=J[h+4>>2];J[f>>2]=g;if(g){J[g+8>>2]=f;c=J[f+8>>2]}J[h+8>>2]=c;J[(J[c>>2]==(f|0)?c:c+4|0)>>2]=h;J[h+4>>2]=f;J[f+8>>2]=h;c=J[h+8>>2]}H[h+12|0]=1;H[c+12|0]=0;f=J[c+4>>2];g=J[f>>2];J[c+4>>2]=g;if(g)J[g+8>>2]=c;g=J[c+8>>2];J[f+8>>2]=g;J[g+((J[g>>2]!=(c|0))<<2)>>2]=f;J[f>>2]=c;J[c+8>>2]=f;break q}H[f+12|0]=1;H[c+12|0]=(c|0)==(k|0);H[g+12| -0]=1;h=c;if((c|0)!=(k|0))continue;break}}J[d+8>>2]=J[d+8>>2]+1}J[j+20>>2]=t;J[695492]=0;_(1584,i+28|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;t=t+1|0;c=p;n=n+4|0;if((n|0)!=J[i+8>>2])continue;break}}J[695492]=0;da(1606,a|0,4);c=J[695492];J[695492]=0;p=l;if((c|0)!=1)continue}break}c=Z()|0;a=J[i+4>>2];if(!a)break d;J[i+8>>2]=a;qc(a);break d}c=Z()|0}a=J[i+16>>2];if(!a)break b;qc(a);ba(c|0);B()}c=Z()|0;a=J[i+16>>2];if(!a)break b;J[i+20>>2]=a;qc(a)}ba(c|0);B()}B()}function uWa(a,b,c,d,e,f,g,h,i,j, -k,l,m){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;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;n=bc-144|0;bc=n;a:{b:{c:{d:{if(K[a+220|0])break d;if(!((j|0)>0&(k|0)>0))gc[J[J[a>>2]+300>>2]](a,b,c,d,e,f,g,0,0,m);if(!((e|0)>=(j|0)&(f|0)>=(k|0))){J[n+48>>2]=13;J[n+104>>2]=!l;J[n+96>>2]=1;J[n+136>>2]=(l|0)!=0;J[n+128>>2]=1;p=n+48|0;gp(p,J[a+164>>2]);Dg(J[n+56>>2],n+96|0);Dg(J[n+56>>2],n+128|0);t=rc(800);J[695492]=0;l=$(4,12)|0;o=J[695492];J[695492]=0;e:{f:{if((o| -0)==1)break f;J[695492]=0;J[l>>2]=2205736;J[l+4>>2]=15;J[l+8>>2]=0;o=J[695492];J[695492]=0;if((o|0)==1)break e;J[695492]=0;l=ma(3270,t|0,1,p|0,l|0,8)|0;o=J[695492];J[695492]=0;if((o|0)==1)break f;uc(p);gc[J[J[a>>2]+308>>2]](a,b,c,d,e,f,g,h,i,j,k,l,0,m);qc($k(l));break d}a=Z()|0;qc(t);ba(a|0);B()}a=Z()|0;qc(l);qc(t);ba(a|0);B()}c=e<<2;h=P(c,f);if((h|0)<=0)break d;y=O[b+104>>3];o=Bn(h);if(!o)break d;t=c;v=n+96|0;h=v;J[h+12>>2]=0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=349684;J[h+20>>2]=0;J[h+24>> -2]=0;H[h+28|0]=0;J[n+48>>2]=e;J[n+128>>2]=f;J[695492]=0;J[n+40>>2]=0-c;nm(h,o,n+48|0,n+128|0,n+40|0,0);c=J[695492];J[695492]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((c|0)!=1){J[695492]=0;c=$(4,36)|0;h=J[695492];J[695492]=0;if((h|0)==1)break q;h=J[g+4>>2];m=J[g+8>>2];J[695492]=0;r=ma(3265,c|0,d|0,e|0,m|0,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break p;J[695492]=0;c=$(4,36)|0;d=J[695492];J[695492]=0;if((d|0)==1)break o;J[695492]=0;s=ma(3265,c|0,i|0,j|0,1,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n; -J[695492]=0;_(3266,s|0);c=J[695492];J[695492]=0;if((c|0)==1)break o;J[695492]=0;_(3266,r|0);c=J[695492];J[695492]=0;if((c|0)==1)break o;if((e|0)==(j|0)&(f|0)==(k|0))break l;m=Bn(P(j,k));if(m)break m;qc(Yl(s));qc(Yl(r));break g}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;qc(c);break a}a=Z()|0;break a}a=Z()|0;qc(c);break a}H[n+40|0]=0;i=k-1|0;if(!((k|0)<=0|(j|0)<=0)){h=i;while(1){d=P(h,j);c=0;while(1){J[695492]=0;aa(3271,s|0,n+40|0)|0;p=J[695492];J[695492]=0;if((p|0)==1)break k;H[d+m|0]=K[n+40|0];d=d+1| -0;c=c+1|0;if((j|0)!=(c|0))continue;break}c=(h|0)>0;h=h-1|0;if(c)continue;break}}J[n+128>>2]=0;r:{s:{if(!((f|0)<=0|(e|0)<=0)){w=+(f|0)/+(k|0);x=+(e|0)/+(j|0);h=j-1|0;while(1){k=f-1|0;u=+(k|0)/w;t:{if(R(u)<2147483648){c=~~u;break t}c=-2147483648}p=P((c|0)>(i|0)?i:c,j)+m|0;d=P(k,t);c=0;while(1){J[695492]=0;aa(3271,r|0,n+128|0)|0;q=J[695492];J[695492]=0;if((q|0)==1)break s;u=+(c|0)/x;u:{if(R(u)<2147483648){q=~~u;break u}q=-2147483648}H[n+40|0]=K[((h|0)<(q|0)?h:q)+p|0];J[695492]=0;ia(3272,g|0,n+128|0, -n+48|0,0);q=J[695492];J[695492]=0;if((q|0)==1)break r;H[d+o|0]=P(J[n+56>>2],255)+32768>>>16;H[(d|1)+o|0]=P(J[n+52>>2],255)+32768>>>16;H[(d|2)+o|0]=P(J[n+48>>2],255)+32768>>>16;H[(d|3)+o|0]=0-(!K[n+40|0]|(l|0)!=0);d=d+4|0;c=c+1|0;if((e|0)!=(c|0))continue;break}c=(f|0)>1;f=k;if(c)continue;break}}qc(m);break h}a=Z()|0;break a}a=Z()|0;break a}J[n+128>>2]=0;H[n+40|0]=0;if((k|0)<=0|(j|0)<=0)break h;k=k-1|0;e=j<<2;if(l)break i;while(1){d=P(e,k);c=0;while(1){J[695492]=0;aa(3271,r|0,n+128|0)|0;f=J[695492]; -J[695492]=0;v:{if((f|0)!=1){J[695492]=0;aa(3271,s|0,n+40|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break v}a=Z()|0;break a}J[695492]=0;ia(3272,g|0,n+128|0,n+48|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break j;H[d+o|0]=P(J[n+56>>2],255)+32768>>>16;H[(d|1)+o|0]=P(J[n+52>>2],255)+32768>>>16;H[(d|2)+o|0]=P(J[n+48>>2],255)+32768>>>16;H[(d|3)+o|0]=K[n+40|0]?0:-1;d=d+4|0;c=c+1|0;if((j|0)!=(c|0))continue;break}c=(k|0)>0;k=k-1|0;if(c)continue;break}break h}a=Z()|0;break a}a=Z()|0;break a}w:{while(1){d=P(e, -k);c=0;x:{while(1){J[695492]=0;f=n+128|0;aa(3271,r|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break x;J[695492]=0;aa(3271,s|0,n+40|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break x;J[695492]=0;ia(3272,g|0,f|0,n+48|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break w;H[d+o|0]=P(J[n+56>>2],255)+32768>>>16;H[(d|1)+o|0]=P(J[n+52>>2],255)+32768>>>16;H[(d|2)+o|0]=P(J[n+48>>2],255)+32768>>>16;H[(d|3)+o|0]=255;d=d+4|0;c=c+1|0;if((j|0)!=(c|0))continue;break}c=(k|0)>0;k=k-1|0;if(c)continue;break h}break}a=Z()| -0;break a}a=Z()|0;break a}qc(Yl(s));qc(Yl(r));O[n+48>>3]=O[b+16>>3];O[n+56>>3]=-O[b+24>>3];w=O[b+32>>3];O[n+64>>3]=-w;x=O[b+40>>3];O[n+72>>3]=x;O[n+80>>3]=w+O[b+48>>3];O[n+88>>3]=y-(x+O[b+56>>3]);J[n+128>>2]=0;J[n+132>>2]=0;J[695492]=0;J[n+40>>2]=0;J[n+44>>2]=0;la(3257,a|0,n+48|0,n+128|0,n+40|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break c;a=J[a+104>>2];O[n+32>>3]=O[n+128>>3]+0;O[n+24>>3]=O[n+40>>3]+0;J[n+16>>2]=1049880894;J[n+20>>2]=1071027177;J[n+8>>2]=1049880894;J[n+12>>2]=1071027177;b=J[J[a>> -2]+376>>2];J[695492]=0;ja(b|0,a|0,v|0,n+32|0,n+24|0,n+16|0,n+8|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b}ji(v)}bc=n+144|0;return}a=Z()|0;break a}a=Z()|0}ji(v);ba(a|0);B()}function kJ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=bc-96|0;bc=f;c=J[a+36>>2];i=J[c+56>>2];J[a+200>>2]=J[a+200>>2]+3;b=J[c+16>>2];J[c+16>>2]=b+3;J[c+32>>2]=J[c+32>>2]+3;b=K[b+3|0];if((b|0)==37){Od(a);c=J[a+36>>2];b=K[J[c+16>>2]]}a:{if(b&255)break a;if((Cd(c)|0)>0)break a;while(1){c=J[a+40>>2];if((c|0)<2)break a;b:{c:{d:{if(!J[689531]){b= -c-1|0;J[a+40>>2]=b;d=J[a+48>>2];break d}J[f+80>>2]=c;d=0;gc[J[659549]](J[689514],36109,f+80|0);c=J[a+40>>2];if((c|0)<=0)break b;b=c-1|0;J[a+40>>2]=b;d=J[a+48>>2];h=0;e=0;if((c|0)==1)break c}h=J[((c<<2)+d|0)-8>>2];e=b}J[a+36>>2]=h;b=(e<<2)+d|0;d=J[b>>2];J[b>>2]=0}dh(d);b=J[a+36>>2];if(K[J[b+16>>2]])break a;if((Cd(b)|0)<=0)continue;break}}Ud(a);e:{f:{g:{h:{i:{j:{d=J[a+36>>2];b=J[d+16>>2];if(K[b|0]!=73)break j;k:switch(K[b+1|0]-71|0){case 7:if(K[b+2|0]!=67|K[b+3|0]!=76|(K[b+4|0]!=85|K[b+5|0]!=68))break j; -if(K[b+6|0]!=69)break j;J[a+200>>2]=J[a+200>>2]+7;J[d+16>>2]=b+7;J[d+32>>2]=J[d+32>>2]+7;b=K[b+7|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}l:{if(b&255)break l;if((Cd(d)|0)>0)break l;ze(a)}Ud(a);b=J[a+36>>2];if(K[J[b+16>>2]]!=91){Pe(a,83,0);qp(a);break e}if(J[b+56>>2]!=(i|0))fm(a,90,29904,0,0);Qd(a);if(J[689531]){b=J[a+36>>2];m:{if(!b)break m;e=J[b+4>>2];if(!e)break m;b=J[b+28>>2];J[f+48>>2]=e;J[f+52>>2]=b;gc[J[659549]](J[689514],29787,f+48|0)}gc[J[659549]](J[689514],33320,0)}d=J[a+36>>2]; -n:{while(1){g=J[d+16>>2];b=K[g|0];o:{if((b|0)!=93){if(b)break o;break n}if(K[g+1|0]!=93)break o;if(K[g+2|0]==62)break n}if(J[a+172>>2]==-1)break n;j=J[d+36>>2];p:{q:{r:{s:{if((b|0)==32)break s;if((b|0)==60){if(K[g+1|0]!=33|K[g+2|0]!=91)break q;kJ(a);break p}if((b-9&255)>>>0<2)break s;if((b|0)==37)break r;if((b|0)!=13)break q}Qd(a);break p}kB(a);break p}lJ(a)}d=J[a+36>>2];e=J[d+16>>2];t:{if(K[e|0])break t;c=J[a+40>>2];if((c|0)<=1)break t;while(1){u:{v:{w:{if(!J[689531]){b=c-1|0;J[a+40>>2]=b;d=J[a+ -48>>2];break w}J[f+32>>2]=c;d=0;gc[J[659549]](J[689514],36109,f+32|0);c=J[a+40>>2];if((c|0)<=0)break u;b=c-1|0;J[a+40>>2]=b;d=J[a+48>>2];h=0;e=0;if((c|0)==1)break v}h=J[((c<<2)+d|0)-8>>2];e=b}J[a+36>>2]=h;b=(e<<2)+d|0;d=J[b>>2];J[b>>2]=0}dh(d);b=J[a+36>>2];x:{if(K[J[b+16>>2]])break x;if((Cd(b)|0)>0)break x;c=J[a+40>>2];if((c|0)>=2)continue}d=J[a+36>>2];e=J[d+16>>2];if(K[e|0])break t;c=J[a+40>>2];if((c|0)>1)continue;break}}if((e|0)!=(g|0)|J[d+36>>2]!=(j|0))continue;break}Pe(a,60,0);qp(a)}if(!J[689531])break f; -c=J[a+36>>2];if(c)break i;d=33283;break g;case 0:break k;default:break j}if(K[b+2|0]!=78|K[b+3|0]!=79|(K[b+4|0]!=82|K[b+5|0]!=69))break j;J[a+200>>2]=J[a+200>>2]+6;J[d+16>>2]=b+6;J[d+32>>2]=J[d+32>>2]+6;b=K[b+6|0];if((b|0)==37){Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}y:{if(b&255)break y;if((Cd(d)|0)>0)break y;ze(a)}Ud(a);b=J[a+36>>2];if(K[J[b+16>>2]]!=91){Pe(a,83,0);qp(a);break e}if(J[b+56>>2]!=(i|0))fm(a,90,29904,0,0);Qd(a);if(J[689531]){b=J[a+36>>2];z:{if(!b)break z;e=J[b+4>>2];if(!e)break z;b=J[b+28>> -2];J[f+64>>2]=e;J[f+68>>2]=b;gc[J[659549]](J[689514],29787,f- -64|0)}gc[J[659549]](J[689514],33246,0)}h=J[a+212>>2];if(!J[a+288>>2])J[a+212>>2]=1;g=J[a+172>>2];J[a+172>>2]=15;d=0;while(1){A:{e=J[a+36>>2];b=J[e+16>>2];c=K[b|0];if(!c|J[a+172>>2]==-1)break A;B:{C:{D:{E:{if((c|0)!=60){if((c|0)!=93|K[b+1|0]!=93|K[b+2|0]!=62)break E;if(!d)break A;J[a+200>>2]=J[a+200>>2]+3;J[e+16>>2]=b+3;J[e+32>>2]=J[e+32>>2]+3;d=d-1|0;b=K[b+3|0];if((b|0)==37){Od(a);e=J[a+36>>2];b=K[J[e+16>>2]]}if(b&255)break B;if((Cd(e)| -0)<=0)break C;break B}if(K[b+1|0]!=33)break E;if(K[b+2|0]==91)break D}Qd(a);continue}J[a+200>>2]=J[a+200>>2]+3;J[e+16>>2]=b+3;J[e+32>>2]=J[e+32>>2]+3;d=d+1|0;b=K[b+3|0];if((b|0)==37){Od(a);e=J[a+36>>2];b=K[J[e+16>>2]]}if(b&255)break B;if((Cd(e)|0)>0)break B}ze(a)}if((d|0)>=0)continue}break}J[a+172>>2]=g;J[a+212>>2]=h;if(!J[689531])break f;c=J[a+36>>2];if(!c){d=33210;break g}d=33210;e=J[c+4>>2];if(e)break h;break g}if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=95;J[f>>2]=15779;Cc(0,0,0,a,0,1,95, -3,0,0,0,0,32890,f);J[a+12>>2]=0}J[a+212>>2]=1;J[a+172>>2]=-1;c=J[a+36>>2];if(!c)break e;b=J[c+40>>2];if(b){gc[b|0](J[c+12>>2]);c=J[a+36>>2];J[c+40>>2]=0}J[c+12>>2]=39181;J[c+16>>2]=39181;break e}d=33283;e=J[c+4>>2];if(!e)break g}b=J[c+28>>2];J[f+16>>2]=e;J[f+20>>2]=b;gc[J[659549]](J[689514],29787,f+16|0)}gc[J[659549]](J[689514],d,0)}F:{c=J[a+36>>2];b=J[c+16>>2];if(K[b|0])break F;if(!(J[a+292>>2]|(b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)){Pg(a);c=J[a+36>>2];if(K[J[c+16>>2]])break F}Pe(a,59,0);break e}if(J[c+ -56>>2]!=(i|0))fm(a,90,29904,0,0);if(J[a+172>>2]==-1)break e;c=J[a+36>>2];e=J[c+16>>2];b=e+3|0;if(b>>>0>M[c+20>>2])break e;J[a+200>>2]=J[a+200>>2]+3;J[c+16>>2]=b;J[c+32>>2]=J[c+32>>2]+3;b=K[e+3|0];if((b|0)==37){Od(a);c=J[a+36>>2];b=K[J[c+16>>2]]}if(b&255)break e;if((Cd(c)|0)>0)break e;ze(a)}bc=f+96|0}function uQa(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;j=bc+-64|0;bc=j;J[j+40>>2]=13;J[j+24>>2]=13;n=rc(16);J[695492]=0;e=aa(3365,n|0,1)|0;g=J[695492];J[695492]= -0;a:{b:{if((g|0)!=1)c:{J[a>>2]=e;n=rc(16);J[695492]=0;e=$(3185,n|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[a+4>>2]=e;if(J[d+16>>2]>0){n=0;while(1){p=J[J[d+4>>2]+(n<<5)>>2];e=j+40|0;Wm(d,n,e);hf(e,b,j+24|0,0);d:{if(J[j+24>>2]!=7){xc(1,-1,817869,0);break d}e:{if(J[j+40>>2]==9){e=J[j+48>>2];g=J[j+52>>2];i=J[a+4>>2];f=J[i+8>>2];if((f|0)<=0)break e;h=J[i>>2];i=0;while(1){o=J[h+(i<<2)>>2];if(!(J[o+8>>2]==(e|0)&J[o+12>>2]==(g|0))){i=i+1|0;if((f|0)!=(i|0))continue;break e}break}g=J[a>>2];e=rc(8); -J[695492]=0;i=aa(3182,e|0,p|0)|0;p=J[695492];J[695492]=0;if((p|0)!=1){xg(g,i,o);break d}break b}if(c){g=J[c>>2]+1E5|0;e=n;break e}J[j+60>>2]=-2128831035;nI(a,j+24|0,j+60|0);e=J[j+60>>2];e=e&2147483647^e>>>31;g=1E5}J[j+20>>2]=g;J[j+16>>2]=e;e=J[j+20>>2];J[j+8>>2]=J[j+16>>2];J[j+12>>2]=e;o=J[j+32>>2];k=0;q=0;h=bc-96|0;bc=h;J[h+72>>2]=13;Bc(o,774518,h+72|0,0);f:{g:{h:switch(J[h+72>>2]-3|0){case 1:g=rc(8);J[695492]=0;q=aa(3182,g|0,J[h+80>>2])|0;e=J[695492];J[695492]=0;if((e|0)!=1)break g;break a;case 0:break h; -default:break g}g=J[h+80>>2];e=rc(8);J[695492]=0;q=aa(3183,e|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b}uc(h+72|0);f=bc-128|0;bc=f;J[f+112>>2]=13;J[f+96>>2]=13;J[f+80>>2]=13;J[f+64>>2]=13;J[f+48>>2]=13;J[f+32>>2]=13;J[h+88>>2]=-1;J[h+92>>2]=-1;g=o;Bc(g,776E3,f+112|0,0);e=784969;i:{j:{if(J[f+112>>2]!=4)break j;e=J[f+120>>2];if(!Ec(e,777523)){m=1;l=1;break i}m=1;l=1;if(!Ec(e,778779))break i;l=2;if(!Ec(e,780001))break i;l=4;if(!Ec(e,781015))break i;l=5;if(!Ec(e,781631))break i;if(Ec(e,783132))break j; -k=1;m=0;l=0;break i}J[f+16>>2]=e;xc(0,-1,784171,f+16|0);m=1;l=0}e=l;uc(f+112|0);k:{if(J[Bc(g,785310,f+80|0,0)>>2]==6){i=J[f+88>>2];if(!J[i+12>>2]){xc(0,-1,786206,0);J[f+64>>2]=5;break k}if(J[Mc(i,0,f- -64|0,0)>>2]!=7)break k;if(!k)xc(0,-1,787024,0);g=J[f+72>>2];Bc(g,776E3,f+112|0,0);l:{if(J[f+112>>2]==4){i=J[f+120>>2];l=k?7:e;if(!Ec(i,788535))break l;l=!Ec(i,789414)}else l=0;l=k?l?10:e:e}e=l;uc(f+112|0);break k}J[f+64>>2]=5}k=1;m:{if(J[Bc(g,789716,f+96|0,0)>>2]!=7){g=e;break m}k=0;if(J[Ce(J[f+104>> -2],790718,f+48|0)>>2]==9){g=J[f+60>>2];J[h+88>>2]=J[f+56>>2];J[h+92>>2]=g;k=(e|0)!=1}g=f+48|0;uc(g);n:{if(J[h+88>>2]!=-1)break n;if(J[Ce(J[f+104>>2],791865,g)>>2]!=9)break n;g=J[f+60>>2];J[h+88>>2]=J[f+56>>2];J[h+92>>2]=g;if(!m){e=10;break n}k=(e|0)!=5?1:k}uc(f+48|0);o:{if(J[h+88>>2]!=-1){g=e;break o}if(J[Ce(J[f+104>>2],792604,f+48|0)>>2]!=9){g=e;break o}g=J[f+60>>2];J[h+88>>2]=J[f+56>>2];J[h+92>>2]=g;p:{if(J[hf(f+48|0,b,f+32|0,0)>>2]!=8){g=e;break p}g=J[f+40>>2];Bc(gc[J[J[g>>2]+76>>2]](g)|0,776E3, -f+112|0,0);g=784969;q:{r:{s:{if(J[f+112>>2]!=4)break s;g=J[f+120>>2];if(!Ec(g,777523)){e=(e|0)==1;k=e?k:1;g=m?1:e?1:7;break q}if(!Ec(g,780001)){e=e-1>>>0<2;k=e?k:1;g=m?2:e?2:8;break q}if(!Ec(g,781631)){e=(e|0)==5;k=e?k:1;g=m?5:e?5:10;break q}if(!Ec(g,793293)){e=(e|0)==7;g=e?8:m?2:8;k=e?k:1;break q}if(Ec(g,793646))break s;g=6;t:switch(e-1|0){case 0:g=3;break q;case 6:g=9;break q;case 9:g=11;break q;case 4:break q;default:break t}k=1;break r}J[f>>2]=g;xc(1,-1,794834,f)}g=e}uc(f+112|0)}uc(f+32|0)}uc(f+ -48|0);k=!k}uc(f+96|0);e=J[h+88>>2];u:{if((e|0)>=0){J[f+60>>2]=J[h+92>>2];J[f+56>>2]=e;J[f+48>>2]=9;e=0;hf(f+48|0,b,f+32|0,0);v:{if(J[f+32>>2]!=8)break v;e=J[f+40>>2];gc[J[J[e>>2]+20>>2]](e);i=x_(3396,J[f+40>>2]);e=J[f+40>>2];gc[J[J[e>>2]+24>>2]](e);e=1;w:switch(i|0){case 2:e=m?2:8;break v;case 3:e=8;break v;case 4:case 5:e=m?5:10;break v;case 6:e=m?3:9;break v;case 7:e=9;break v;case 0:case 1:break v;default:break w}e=0;xc(1,-1,795305,0)}uc(f+32|0);uc(f+48|0);if(e)break u}e=g}if(!((e|0)==(g|0)&k))xc(0, --1,796115,0);uc(f- -64|0);uc(f+80|0);bc=f+128|0;x:{if((e|0)<=6){g=rc(3544);k=J[j+12>>2];i=J[j+8>>2];J[h+64>>2]=i;J[h+68>>2]=k;m=J[h+92>>2];f=J[h+88>>2];J[h+56>>2]=f;J[h+60>>2]=m;J[695492]=0;J[h+16>>2]=i;J[h+20>>2]=k;J[h+8>>2]=f;J[h+12>>2]=m;e=za(3394,g|0,b|0,p|0,h+16|0,q|0,e|0,h+8|0,o|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1)break x;break a}g=rc(240);k=J[j+12>>2];i=J[j+8>>2];J[h+48>>2]=i;J[h+52>>2]=k;m=J[h+92>>2];f=J[h+88>>2];J[h+40>>2]=f;J[h+44>>2]=m;J[695492]=0;J[h+32>>2]=i;J[h+36>>2]=k;J[h+24>> -2]=f;J[h+28>>2]=m;e=za(3395,g|0,h|0,p|0,h+32|0,q|0,e|0,h+24|0,o|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1)break x;break a}bc=h+96|0;break f}if(!J[e+156>>2]){gc[J[J[e>>2]+4>>2]](e);break d}id(J[a+4>>2],e);i=J[a>>2];g=rc(8);J[695492]=0;o=aa(3182,g|0,p|0)|0;p=J[695492];J[695492]=0;if((p|0)==1)break a;xg(i,o,e)}uc(j+40|0);uc(j+24|0);n=n+1|0;if((n|0)>2])continue;break}}bc=j- -64|0;return a|0}a=Z()|0;qc(n);ba(a|0);B()}a=Z()|0;qc(e);ba(a|0);B()}a=Z()|0;qc(g);ba(a|0);B()}function mxa(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;e=bc+-64|0;bc=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{f=J[c>>2];m:{if(f){if(K[J[f+12>>2]]==3)break l;J[a>>2]=0;J[a+4>>2]=J[682146];b=J[J[f>>2]+28>>2];J[695492]=0;ca(b|0,e+52|0,f|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break m;b=Z()|0;break b}J[a>>2]=0;J[a+4>>2]=J[682146];J[e+52>>2]=0}J[695492]=0;aa(4993,a|0,e+52|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[e+52>>2];J[e+52>>2]=0;if(!b)break k;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]=0;if((f| -0)!=1){if(c)break k;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break k}break a}b=Z()|0;vc(e+52|0);break b}f=BT(f,2376181,0);n:{if((f|0)>=0)break n;f=0;d=J[c>>2];if(!d)break n;f=J[d+8>>2]}J[e+52>>2]=0;d=J[682146];J[e+56>>2]=d;J[e+48>>2]=d;J[e+44>>2]=0;J[695492]=0;h=e+36|0;d=h;ia(5143,d|0,c|0,0,f|0);g=J[695492];J[695492]=0;o:{p:{q:{r:{s:{t:{u:{if((g|0)!=1){J[695492]=0;ia(5413,b|0,d|0,e+52|0,e+44|0);d=J[695492];J[695492]=0;if((d|0)==1)break s;d=J[e+52>>2];if(J[d+8>>2]?d:0)break q;J[695492]= -0;d=fd(h,2379033,-1);g=J[695492];J[695492]=0;if((g|0)==1)break s;if(d)break u;d=2405456;break t}f=Z()|0;break c}J[695492]=0;g=e+36|0;h=fd(g,2379327,-1);d=J[695492];J[695492]=0;if((d|0)==1)break s;d=2405520;if(!h)break t;J[695492]=0;d=fd(g,2379930,-1);g=J[695492];J[695492]=0;if((g|0)==1)break s;if(d)break r;d=2405552}J[695492]=0;aa(5054,e+52|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break q}f=Z()|0;break d}J[695492]=0;f=e+20|0;ca(5048,f|0,2376960,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break o; -J[695492]=0;c=e+28|0;ca(5048,c|0,2379033,f|0);d=J[695492];J[695492]=0;v:{w:{if((d|0)!=1){J[695492]=0;ca(5412,a|0,b|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break w;sc(c);sc(f);break p}f=Z()|0;break v}f=Z()|0;sc(e+28|0)}sc(e+20|0);break d}x:{while(1){d=J[c>>2];if(d)h=J[d+8>>2];else h=0;if(h>>>0<=f>>>0)break x;J[e+28>>2]=0;J[e+32>>2]=J[682146];g=f+1|0;y:{z:{A:{B:{C:{D:{E:{F:{G:{if(f){f=!d|(f|0)>=0?f:J[d+8>>2]+f|0;if(!(!d|(f|0)<0|J[d+8>>2]<(f|0))){h=J[d+12>>2];break G}J[695492]=0;ka(5119);a=J[695492]; -J[695492]=0;if((a|0)==1)break F;B()}if(!d){f=0;break B}f=0;h=J[d+12>>2]}if(K[f+h|0]!=11)break C;f=J[d+8>>2];J[695492]=0;d=e+12|0;ia(5143,d|0,c|0,g|0,f|0);g=J[695492];J[695492]=0;if((g|0)==1)break E;J[695492]=0;ca(5412,e+20|0,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break D;d=J[e+20>>2];H:{if(d){g=J[J[d>>2]+28>>2];J[695492]=0;ca(g|0,e+60|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break H;f=Z()|0;break g}J[e+60>>2]=0}J[695492]=0;aa(4993,e+28|0,e+60|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d= -J[e+60>>2];J[e+60>>2]=0;if(!d)break A;J[695492]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break A;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break A}break a}f=Z()|0;vc(e+60|0);break g}f=Z()|0;break e}f=Z()|0;break e}f=Z()|0;break f}J[695492]=0;f=ga(5414,d|0,2377553,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break y;if((f|0)>=0)break B;f=J[c>>2];if(!f){f=0;break B}f=J[f+8>>2]}J[695492]=0;ia(5143,e+20|0,c|0,g|0,f-g|0);d=J[695492];J[695492]=0;if((d|0)!= -1){d=J[e+20>>2];I:{if(d){g=J[J[d>>2]+28>>2];J[695492]=0;ca(g|0,e+12|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break I;f=Z()|0;break i}J[e+12>>2]=0}J[695492]=0;aa(4993,e+28|0,e+12|0)|0;d=J[695492];J[695492]=0;J:{if((d|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break J;J[695492]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break J;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break J}break a}f=Z()|0;vc(e+12|0);break i}d=J[e+28>>2];J[e+32>>2]=J[(d?d+12|0:2728584)>> -2];sc(e+20|0);break z}f=Z()|0;break e}d=J[e+28>>2];J[e+32>>2]=J[(d?d+12|0:2728584)>>2];sc(e+20|0);sc(e+12|0)}J[695492]=0;i=i+1|0;d=e+28|0;ia(5415,b|0,e+52|0,i|0,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break y;sc(d);continue}break}f=Z()|0;break e}J[695492]=0;ia(5415,b|0,e+52|0,0,e+44|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[a>>2]=0;J[a+4>>2]=J[682146];b=J[e+52>>2];K:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,e+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break K;f=Z()|0;sc(a);break d}J[e+ -28>>2]=0}J[695492]=0;aa(4993,a|0,e+28|0)|0;b=J[695492];J[695492]=0;L:{if((b|0)!=1){b=J[e+28>>2];J[e+28>>2]=0;if(!b)break L;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break L;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break L}break a}f=Z()|0;vc(e+28|0);sc(a);break d}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2]}sc(e+36|0);sc(e+44|0);sc(e+52|0);break j}f=Z()|0;break d}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2]}bc=e- -64|0;return}sc(e+ -20|0);break e}f=Z()|0;break d}sc(e+20|0)}sc(e+12|0)}sc(e+28|0)}sc(e+36|0)}sc(e+44|0);sc(e+52|0);ba(f|0);B()}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function kza(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;g=bc-160|0;bc=g;j=Qj(g+124|0,J[a>>2]+72|0);J[695492]=0;e=$(5069,j|0)|0;f=J[695492];J[695492]=0;a:{b:{c:{if((f|0)==1)break c;J[695492]=0;f=J[J[d+12>>2]+((e>>>0)%M[d+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(f)while(1){if((e| -0)==J[f+12>>2]){J[695492]=0;h=aa(5066,f+16|0,j|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break j;if(h)break o}f=J[f+8>>2];if(f)continue;break}J[695492]=0;e=aa(5268,d|0,j|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;J[e+52>>2]=0;e=J[a>>2];J[695492]=0;e=$(5287,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;if((e|0)<=0)break o;e=J[a>>2];J[695492]=0;f=aa(4989,g+116|0,2398892)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;J[695492]=0;e=aa(5288,e|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break f; -sc(f);if(e)break o;e=J[a>>2];J[695492]=0;ca(5280,g+100|0,e|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break g;e=J[a>>2];J[695492]=0;ia(5282,g+96|0,e|0,0,1);e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[g+108>>2];if(e){l=g+56|0;while(1){f=0;p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{h=J[e+8>>2];if(h){J[695492]=0;J[h+4>>2]=J[h+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break y;f=J[e+8>>2]}J[g+40>>2]=f;J[695492]=0;h=aa(4989,g+88|0,2398892)|0;i=J[695492];J[695492]=0;if((i|0)==1)break r;J[695492]=0;i=aa(5288,f|0, -h|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break x;sc(h);if(i){J[695492]=0;f=aa(4991,g+48|0,f+72|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break w;J[695492]=0;h=g+4|0;da(5113,h|0,f|0);i=J[695492];J[695492]=0;if((i|0)==1)break v;J[695492]=0;i=g+84|0;k=g+96|0;ca(5289,i|0,k|0,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break u;J[695492]=0;aa(4993,k|0,i|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break t;h=J[g+84>>2];J[g+84>>2]=0;z:{if(!h)break z;J[695492]=0;i=J[h+4>>2]-1|0;J[h+4>>2]=i;k=J[695492];J[695492]= -0;if((k|0)==1)break a;if(i)break z;J[695492]=0;_(4987,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break a}sc(g+4|0);J[f>>2]=2381028;J[g+72>>2]=2381060;f=J[g+76>>2];if(f){h=J[f+4>>2]-1|0;J[f+4>>2]=h;if(!h)gc[J[J[f>>2]+4>>2]](f);J[g+76>>2]=0}J[g+64>>2]=2381060;f=J[g+68>>2];if(f){h=J[f+4>>2]-1|0;J[f+4>>2]=h;if(!h)gc[J[J[f>>2]+4>>2]](f);J[g+68>>2]=0}sc(l);f=J[g+40>>2]}J[g+40>>2]=0;if(!f)break p;J[695492]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break p;J[695492]=0;_(4987,f| -0);f=J[695492];J[695492]=0;if((f|0)!=1)break p}break a}e=Z()|0;break k}e=Z()|0;sc(h);break q}e=Z()|0;break q}e=Z()|0;ud(f);break q}e=Z()|0;break s}e=Z()|0;vc(g+84|0)}sc(g+4|0);ud(f);break q}e=Z()|0}vc(g+40|0);break k}e=J[e>>2];if(e)continue;break}}a=J[a>>2];J[695492]=0;a=aa(4991,g+4|0,a+72|0)|0;e=J[695492];J[695492]=0;A:{B:{C:{D:{E:{if((e|0)!=1){J[695492]=0;da(5113,g+40|0,a|0);e=J[695492];J[695492]=0;if((e|0)==1)break E;J[a+24>>2]=2381060;J[a>>2]=2381028;e=J[a+28>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>> -2]=f;if(!f)gc[J[J[e>>2]+4>>2]](e);J[a+28>>2]=0}J[a+16>>2]=2381060;e=J[a+20>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)gc[J[J[e>>2]+4>>2]](e);J[a+20>>2]=0}sc(a+8|0);f=0;J[695492]=0;a=g+40|0;la(5290,g+84|0,a|0,a|0,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break D;a=J[g+96>>2];if(a){J[695492]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break C;f=J[g+96>>2]}J[695492]=0;J[g>>2]=f;ia(5283,c|0,g+84|0,g|0,-1);a=J[695492];J[695492]=0;if((a|0)==1)break B;a=J[g>>2];J[g>>2]=0;F:{if(!a)break F; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(b)break F;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}f=J[g+108>>2];if(f)while(1){J[695492]=0;ia(5285,f+8|0,0,c|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;f=J[f>>2];if(f)continue;break}a=J[g+84>>2];J[g+84>>2]=0;if(!a)break A;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break A;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break A}break a}e= -Z()|0;break k}e=Z()|0;ud(a);break k}e=Z()|0;break l}e=Z()|0;break m}e=Z()|0;vc(g);break m}sc(g+40|0);a=J[g+96>>2];J[g+96>>2]=0;G:{if(!a)break G;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break G;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}$c(g+100|0)}J[j+24>>2]=2381060;J[j>>2]=2381028;a=J[j+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[j+28>>2]=0}J[j+16>>2]=2381060;a=J[j+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+ -4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[j+20>>2]=0}sc(j+8|0);bc=g+160|0;return}e=Z()|0}vc(g+84|0)}sc(g+40|0)}vc(g+96|0);break h}e=Z()|0;break b}e=Z()|0}$c(g+100|0);break b}e=Z()|0;break b}e=Z()|0;sc(f);break b}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0}ud(j);ba(e|0);B()}ea(0)|0;yc();B()}function aY(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,w=0,x=0;w=J[b+8>>2];if((w|0)>0){x=J[b>>2];while(1){a:{b:{c:{d:{b=J[(u<<2)+x>>2];c=J[b>>2];t=J[c>>2];switch(J[J[J[J[J[t>> -2]>>2]>>2]>>2]+4>>2]-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}g=O[b+32>>3];f=O[a+112>>3];O[b+32>>3]=O[b+16>>3];h=O[b+24>>3];O[b+24>>3]=O[b+8>>3];O[b+16>>3]=f-h;O[b+8>>3]=f-g;e=0;d=J[c+8>>2];if((d|0)<=0)break a;while(1){b=J[(e<<2)+t>>2];g=O[b+32>>3];O[b+32>>3]=O[b+16>>3];h=O[b+24>>3];O[b+24>>3]=O[b+8>>3];O[b+16>>3]=f-h;O[b+8>>3]=f-g;b=J[b>>2];m=J[b+8>>2];if((m|0)>0){q=J[b>>2];n=0;while(1){b=J[q+(n<<2)>>2];g=O[b+32>>3];O[b+32>>3]=O[b+16>>3];h=O[b+24>>3];O[b+24>>3]=O[b+8>>3]; -O[b+16>>3]=f-h;O[b+8>>3]=f-g;b=J[b>>2];o=J[b+8>>2];e:{if((o|0)<=0)break e;i=J[b>>2];c=0;if((o|0)!=1){r=o&-2;k=0;while(1){s=c<<2;b=J[s+i>>2];g=O[b+24>>3];O[b+24>>3]=O[b+8>>3];h=O[b+16>>3];O[b+16>>3]=O[b>>3];O[b+8>>3]=f-h;O[b>>3]=f-g;b=J[i+(s|4)>>2];g=O[b+24>>3];O[b+24>>3]=O[b+8>>3];h=O[b+16>>3];O[b+16>>3]=O[b>>3];O[b+8>>3]=f-h;O[b>>3]=f-g;c=c+2|0;k=k+2|0;if((r|0)!=(k|0))continue;break}}if(!(o&1))break e;b=J[i+(c<<2)>>2];g=O[b+24>>3];O[b+24>>3]=O[b+8>>3];h=O[b+16>>3];O[b+16>>3]=O[b>>3];O[b+8>>3]=f- -h;O[b>>3]=f-g}n=n+1|0;if((m|0)!=(n|0))continue;break}}e=e+1|0;if((d|0)!=(e|0))continue;break}break a}f=O[a+112>>3];g=O[b+32>>3];h=O[a+120>>3];O[b+32>>3]=h-O[b+24>>3];O[b+24>>3]=h-g;g=O[b+16>>3];O[b+16>>3]=f-O[b+8>>3];O[b+8>>3]=f-g;n=0;q=J[c+8>>2];if((q|0)<=0)break a;while(1){b=J[(n<<2)+t>>2];g=O[b+32>>3];f=O[a+112>>3];h=O[a+120>>3];O[b+32>>3]=h-O[b+24>>3];O[b+24>>3]=h-g;g=O[b+16>>3];O[b+16>>3]=f-O[b+8>>3];O[b+8>>3]=f-g;b=J[b>>2];r=J[b+8>>2];if((r|0)>0){s=J[b>>2];o=0;while(1){e=J[s+(o<<2)>>2];g=O[e+ -32>>3];f=O[a+112>>3];h=O[a+120>>3];O[e+32>>3]=h-O[e+24>>3];O[e+24>>3]=h-g;g=O[e+16>>3];O[e+16>>3]=f-O[e+8>>3];O[e+8>>3]=f-g;c=J[e+56>>2];f:{if((c|0)<0)break f;d=c+1|0;m=d&3;i=J[e+52>>2];k=0;b=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=b<<3;j=d+i|0;O[j>>3]=O[a+112>>3]-O[j>>3];j=i+(d|8)|0;O[j>>3]=O[a+112>>3]-O[j>>3];j=i+(d|16)|0;O[j>>3]=O[a+112>>3]-O[j>>3];d=i+(d|24)|0;O[d>>3]=O[a+112>>3]-O[d>>3];b=b+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break f;while(1){c=i+(b<<3)|0;O[c>>3]=O[a+112>>3]-O[c>> -3];b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}b=J[e>>2];p=J[b+8>>2];if((p|0)>0){j=J[b>>2];e=0;while(1){b=J[j+(e<<2)>>2];g=O[b+24>>3];f=O[a+112>>3];h=O[a+120>>3];O[b+24>>3]=h-O[b+16>>3];O[b+16>>3]=h-g;g=O[b+8>>3];O[b+8>>3]=f-O[b>>3];O[b>>3]=f-g;c=J[b+44>>2];g:{if((c|0)<0)break g;d=c+1|0;m=d&3;i=J[b+40>>2];k=0;b=0;if(c>>>0>=3){v=d&-4;c=0;while(1){d=b<<3;l=d+i|0;O[l>>3]=O[a+112>>3]-O[l>>3];l=i+(d|8)|0;O[l>>3]=O[a+112>>3]-O[l>>3];l=i+(d|16)|0;O[l>>3]=O[a+112>>3]-O[l>>3];d=i+(d|24)|0;O[d>>3]=O[a+ -112>>3]-O[d>>3];b=b+4|0;c=c+4|0;if((v|0)!=(c|0))continue;break}}if(!m)break g;while(1){c=i+(b<<3)|0;O[c>>3]=O[a+112>>3]-O[c>>3];b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}e=e+1|0;if((p|0)!=(e|0))continue;break}}o=o+1|0;if((r|0)!=(o|0))continue;break}}n=n+1|0;if((q|0)!=(n|0))continue;break}break a}g=O[b+16>>3];f=O[a+120>>3];O[b+16>>3]=O[b+32>>3];h=O[b+8>>3];O[b+8>>3]=O[b+24>>3];O[b+32>>3]=f-h;O[b+24>>3]=f-g;n=0;q=J[c+8>>2];if((q|0)<=0)break a;while(1){b=J[(n<<2)+t>>2];g=O[b+16>>3];f=O[a+120>> -3];O[b+16>>3]=O[b+32>>3];h=O[b+8>>3];O[b+8>>3]=O[b+24>>3];O[b+32>>3]=f-h;O[b+24>>3]=f-g;b=J[b>>2];r=J[b+8>>2];if((r|0)>0){s=J[b>>2];o=0;while(1){e=J[s+(o<<2)>>2];g=O[e+16>>3];f=O[a+120>>3];O[e+16>>3]=O[e+32>>3];h=O[e+8>>3];O[e+8>>3]=O[e+24>>3];O[e+32>>3]=f-h;O[e+24>>3]=f-g;c=J[e+56>>2];h:{if((c|0)<0)break h;d=c+1|0;m=d&3;i=J[e+52>>2];k=0;b=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=b<<3;j=d+i|0;O[j>>3]=O[a+120>>3]-O[j>>3];j=i+(d|8)|0;O[j>>3]=O[a+120>>3]-O[j>>3];j=i+(d|16)|0;O[j>>3]=O[a+120>>3]-O[j>>3]; -d=i+(d|24)|0;O[d>>3]=O[a+120>>3]-O[d>>3];b=b+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break h;while(1){c=i+(b<<3)|0;O[c>>3]=O[a+120>>3]-O[c>>3];b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}b=J[e>>2];p=J[b+8>>2];if((p|0)>0){j=J[b>>2];e=0;while(1){b=J[j+(e<<2)>>2];g=O[b+8>>3];f=O[a+120>>3];O[b+8>>3]=O[b+24>>3];h=O[b>>3];O[b>>3]=O[b+16>>3];O[b+24>>3]=f-h;O[b+16>>3]=f-g;c=J[b+44>>2];i:{if((c|0)<0)break i;d=c+1|0;m=d&3;i=J[b+40>>2];k=0;b=0;if(c>>>0>=3){v=d&-4;c=0;while(1){d=b<<3;l=d+i|0;O[l>> -3]=O[a+120>>3]-O[l>>3];l=i+(d|8)|0;O[l>>3]=O[a+120>>3]-O[l>>3];l=i+(d|16)|0;O[l>>3]=O[a+120>>3]-O[l>>3];d=i+(d|24)|0;O[d>>3]=O[a+120>>3]-O[d>>3];b=b+4|0;c=c+4|0;if((v|0)!=(c|0))continue;break}}if(!m)break i;while(1){c=i+(b<<3)|0;O[c>>3]=O[a+120>>3]-O[c>>3];b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}e=e+1|0;if((p|0)!=(e|0))continue;break}}o=o+1|0;if((r|0)!=(o|0))continue;break}}n=n+1|0;if((q|0)!=(n|0))continue;break}}u=u+1|0;if((w|0)!=(u|0))continue;break}}}function bjb(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;j=bc-3104|0;bc=j;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];e=J[c>>2];o=b-e|0;i=(o|0)/12|0;a:{if(!(!d|(b|0)==(e|0))){J[695492]=0;b=$(27,1024)|0;e=J[695492];J[695492]=0;b:{c:{d:{if((e|0)!=1){J[d>>2]=b;w=wc(b,0,1024);if((o|0)<=0)break b;p=(i|0)<=1?1:i;d=0;while(1){b=J[c>>2]+P(h,12)|0;e=J[b+8>>2];g=J[b+4>>2];J[695492]=0;b=$(4,12)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+8>>2]=0;J[b>>2]=0;J[b+4>> -2]=0;J[695492]=0;n=P(e,g);f=$(27,n|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break a;J[b+8>>2]=e;J[b+4>>2]=g;J[b>>2]=f;wc(f,0,n);e:{if(J[a+8>>2]!=(d|0)){J[d>>2]=b;d=d+4|0;J[a+4>>2]=d;break e}l=J[a>>2];e=d-l|0;r=e>>2;g=r+1|0;if(g>>>0>=1073741824){J[695492]=0;_(208,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;break d}f=e>>1;f=e>>>0>=2147483644?1073741823:f>>>0>g>>>0?f:g;f:{if(!f){g=0;break f}if(f>>>0>=1073741824){J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break a}J[695492]=0; -g=$(4,f<<2)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a}e=(r<<2)+g|0;J[e>>2]=b;b=e+4|0;if((d|0)!=(l|0)){while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(l|0))continue;break}d=J[a>>2]}J[a+8>>2]=(f<<2)+g;J[a+4>>2]=b;J[a>>2]=e;if(d)qc(d);d=b}k=k+n|0;h=h+1|0;if((p|0)!=(h|0))continue;break}break c}break a}B()}f=k<<3}J[695492]=0;b=$(27,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;g:{if((o|0)<=0)break g;o=(i|0)<=1?1:i;g=0;e=b;while(1){h=J[J[a>>2]+(g<<2)>>2];h:{if(!h)break h;k=P(J[h+8>>2],J[h+ -4>>2]);if(!k)break h;d=J[J[c>>2]+P(g,12)>>2];f=0;if((k|0)!=1){n=k&-2;i=0;while(1){if(K[d+3|0]>=5){l=J[h>>2];p=J[d>>2];J[e>>2]=p;J[e+4>>2]=f+l;H[e+3|0]=p>>>24|15;e=e+8|0}if(K[d+7|0]>=5){l=J[h>>2];p=J[d+4>>2];J[e>>2]=p;J[e+4>>2]=l+(f|1);H[e+3|0]=p>>>24|15;e=e+8|0}d=d+8|0;f=f+2|0;i=i+2|0;if((n|0)!=(i|0))continue;break}}if(!(k&1)|K[d+3|0]<5)break h;h=J[h>>2];d=J[d>>2];J[e>>2]=d;J[e+4>>2]=f+h;H[e+3|0]=d>>>24|15;e=e+8|0}g=g+1|0;if((o|0)!=(g|0))continue;break}if((b|0)==(e|0))break g;g=e-b|0;h=j+80|0;f=j+ -68|0;i=j+56|0;k=j+32|12;e=0;while(1){c=P(e,12);d=c+(j+32|0)|0;J[d>>2]=0;J[d+4>>2]=0;I[d+8>>1]=0;d=c+k|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>>2]=0;d=c+i|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>>2]=0;d=c+f|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>>2]=0;c=c+h|0;I[c+8>>1]=0;J[c>>2]=0;J[c+4>>2]=0;e=e+5|0;if((e|0)!=255)continue;break}I[j+24>>1]=0;J[j+16>>2]=0;J[j+20>>2]=0;I[j+8>>1]=0;J[j+32>>2]=b;p=g>>>3|0;J[j+36>>2]=p;J[j>>2]=0;J[j+4>>2]=0;d=0;if(g>>>0>=16){f=K[b|0];i=f;h=K[b+1|0];o=h;l=1;d=b;n=K[d+3|0];k=n;g=K[d+2|0];c=g;while(1){e= -K[d+3|0];n=(e|0)<(n|0)?n:e;k=(e|0)>(k|0)?k:e;e=K[d+2|0];g=(e|0)<(g|0)?g:e;c=(c|0)<(e|0)?c:e;e=K[d+1|0];o=(e|0)<(o|0)?o:e;h=(e|0)>(h|0)?h:e;e=K[d|0];i=(e|0)<(i|0)?i:e;f=(e|0)>(f|0)?f:e;d=d+8|0;l=l+1|0;if((p|0)!=(l|0))continue;break}e=i-f|0;h=o-h|0;f=(e|0)>(h|0)?e:h;c=g-c|0;g=(c|0)<(f|0)?f:c;i=n-k|0;d=(g|0)>(i|0)?g:i;c=(g|0)<(i|0)?3:(c|0)>(f|0)?2:(e|0)<(h|0)}else c=0;H[j+41|0]=c;H[j+40|0]=d;c=0;g=1;while(1){o=0;i:{if(c>>>0<3){i=-1;d=j+32|0;e=0;f=0;break i}x=g&2147483644;i=-1;e=0;d=j+32|0;f=0;n=0;while(1){k= -K[d+8|0];l=(f|0)>(k|0)?f:k;p=K[d+20|0];r=(l|0)>(p|0)?l:p;v=K[d+32|0];h=(r|0)>(v|0)?r:v;i=r>>>0>>0?e|2:l>>>0

      >>0?e|1:f>>>0>>0?e:i;f=K[d+44|0];i=f>>>0>h>>>0?e|3:i;f=(f|0)<(h|0)?h:f;d=d+48|0;e=e+4|0;n=n+4|0;if((x|0)!=(n|0))continue;break}}k=g&3;if(k)while(1){h=K[d+8|0];i=h>>>0>f>>>0?e:i;f=(f|0)>(h|0)?f:h;d=d+12|0;e=e+1|0;o=o+1|0;if((k|0)!=(o|0))continue;break}j:{if((i|0)<0){h=g;break j}J[695492]=0;e=j+32|0;d=e+P(i,12)|0;n5(d,j+16|0,j);h=J[695492];J[695492]=0;if((h|0)==1)break a;h=J[j+20>>2]; -J[d>>2]=J[j+16>>2];J[d+4>>2]=h;I[d+8>>1]=L[j+24>>1];d=e+P(g,12)|0;I[d+8>>1]=L[j+8>>1];e=J[j+4>>2];J[d>>2]=J[j>>2];J[d+4>>2]=e;c=c+1|0;h=255;g=g+1|0;if((g|0)!=255)continue}break}d=0;while(1){g=d+1|0;i=(g<<2)+w|0;a=0;f=(j+32|0)+P(d,12)|0;d=f;c=J[d>>2];k:{if(!c)break k;if(!K[d+8|0]){a=J[c>>2];break k}m=+K[c+3|0];q=+K[c+2|0];s=+K[c+1|0];t=+K[c|0];a=J[d+4>>2];l:{if(a>>>0<2)break l;d=a-1|0;k=d&1;if((a|0)!=2){d=d&-2;e=0;while(1){m=m+ +K[c+3|0]+ +K[c+11|0];q=q+ +K[c+2|0]+ +K[c+10|0];s=s+ +K[c+1|0]+ +K[c+ -9|0];t=t+ +K[c|0]+ +K[c+8|0];c=c+16|0;e=e+2|0;if((d|0)!=(e|0))continue;break}}if(!k)break l;m=m+ +K[c+3|0];q=q+ +K[c+2|0];s=s+ +K[c+1|0];t=t+ +K[c|0]}u=q;q=+(a>>>0);u=u/q+.5;m:{if(u<4294967296&u>=0){a=~~u>>>0;break m}a=0}c=a<<16;m=m/q+.5;n:{if(m<4294967296&m>=0){a=~~m>>>0;break n}a=0}c=c|a<<24;m=s/q+.5;o:{if(m<4294967296&m>=0){a=~~m>>>0;break o}a=0}a=c|a<<8;m=t/q+.5;if(m<4294967296&m>=0)a=a|~~m>>>0}J[i>>2]=a;if(J[f+4>>2]){d=J[f>>2];e=0;while(1){H[J[d+4>>2]]=g;d=d+8|0;e=e+1|0;if(e>>>0>2])continue; -break}}d=g;if((h|0)!=(d|0))continue;break}}qc(b)}bc=j+3104|0;return}c=Z()|0;b=J[a>>2];if(b){J[a+4>>2]=b;qc(b)}ba(c|0);B()}function I3(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;d=bc-496|0;bc=d;a:{b:{if(b){H[a+1796|0]=0;f=a+1772|0;J[f>>2]=0;J[f+4>>2]=0;f=a+1764|0;J[f>>2]=2147483647;J[f+4>>2]=2147483647;f=a+1756|0;J[f>>2]=0;J[f+4>>2]=0;f=a+1748|0;J[f>>2]=2147483647;J[f+4>>2]=2147483647;f=a+1708|0;J[f>>2]=0;J[f+4>>2]=0;J[a+2872>>2]=0;f=a+1788|0;J[f>> -2]=-2147483647;J[f+4>>2]=-2147483647;f=a+1780|0;J[f>>2]=2147483647;J[f+4>>2]=2147483647;f=J[c+4>>2];J[d+488>>2]=0;J[d+480>>2]=0;J[d+484>>2]=0;J[d+472>>2]=0;J[d+476>>2]=0;if(J[f>>2])while(1){i=g&255;h=g>>>6&67108860;q=K[i+J[h+J[f+16>>2]>>2]|0];h=J[h+J[f+12>>2]>>2]+(i<<4)|0;j=O[h+8>>3];l=O[h>>3];o=J[d+476>>2];i=e>>>8|0;if(o>>>0<=i>>>0){k=J[d+480>>2];c:{if(k>>>0>i>>>0){h=J[d+484>>2];break c}h=(k<<1)+512|0;h=rc(h>>>0>1073741823?-1:h<<2);m=k<<2;p=(h+m|0)+1024|0;n=J[d+484>>2];if(n){tc(h,n,m);tc(p,J[d+488>> -2],m);qc(n)}J[d+488>>2]=p;J[d+484>>2]=h;J[d+480>>2]=k+256}k=h;h=i<<2;s=k+h|0,t=rc(4352),J[s>>2]=t;J[h+J[d+488>>2]>>2]=J[h+J[d+484>>2]>>2]+4096;J[d+476>>2]=o+1}h=i<<2;i=J[h+J[d+484>>2]>>2];H[J[h+J[d+488>>2]>>2]+(e&255)|0]=q;e=(e<<4&4080)+i|0;O[e+8>>3]=j;O[e>>3]=l;e=J[d+472>>2]+1|0;J[d+472>>2]=e;g=g+1|0;if(g>>>0>2])continue;break}J[d+492>>2]=J[f+20>>2];d:{if(!K[a+2892|0]){f=0;J[695492]=0;g=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;e=J[a+56>>2];break d}J[695492]=0;e=$(4,48)|0;f=J[695492]; -J[695492]=0;if((f|0)==1)break b;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=1072693248;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=1072693248;J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[695492]=0;g=$(4,8)|0;h=J[695492];J[695492]=0;f=e;if((h|0)==1)break b}J[g+4>>2]=e;J[g>>2]=d+472;J[d+56>>2]=0;J[d+60>>2]=0;e=d- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[d+208>>2]=0;J[d+212>>2]=0;J[d+192>>2]=0;J[d+196>>2]=1072693248;J[d+72>>2]=0;J[d+76>>2]=1072693248;J[d+216>>2]=0;J[d+220>>2]=0;J[d+224>>2]=0;J[d+ -228>>2]=0;J[d+232>>2]=0;J[d+424>>2]=0;J[d+428>>2]=0;J[d+408>>2]=0;J[d+412>>2]=1072693248;J[d+256>>2]=0;J[d+260>>2]=1072693248;J[d+236>>2]=64;J[d+240>>2]=1;J[d+432>>2]=0;J[d+436>>2]=0;J[d+440>>2]=0;J[d+444>>2]=0;J[d+448>>2]=0;J[d+452>>2]=0;J[d+456>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=g;J[d+248>>2]=0;J[d+252>>2]=0;J[d+460>>2]=64;J[d+464>>2]=1;J[695492]=0;ca(2282,a+1700|0,d+40|0,0);e=J[695492];J[695492]=0;e:{f:{g:{if((e|0)==1)break g;J[a+2856>>2]=K[J[c+4>>2]+24|0];J[695492]=0;e=J[b+4>>2];h=J[695492]; -J[695492]=0;if((h|0)==1)break g;h:{if((e|0)==2){J[695492]=0;e=J[J[b+8>>2]+12>>2];h=J[695492];J[695492]=0;i:{j:{if((h|0)!=1){J[695492]=0;h=J[J[b+8>>2]+16>>2];i=J[695492];J[695492]=0;if((i|0)==1)break j;if(!e)break e;if(h)break i;break e}g=Z()|0;break f}g=Z()|0;break f}J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;k:{if(!K[b+32|0]){J[695492]=0;P2(c,d+32|0,d+24|0,d+16|0,d+8|0);c=J[695492];J[695492]=0;if((c|0)!=1){O[d+16>>3]=O[d+32>>3]+O[d+16>> -3];j=O[d+24>>3]+O[d+8>>3];break k}g=Z()|0;break f}O[d+32>>3]=O[b+40>>3];O[d+24>>3]=O[b+48>>3];O[d+16>>3]=O[b+56>>3];j=O[b- -64>>3]}O[d+8>>3]=j;J[695492]=0;c=aa(2281,d+4|0,b+20|0)|0;i=J[695492];J[695492]=0;l:{if((i|0)!=1){J[695492]=0;i=J[b+16>>2];k=J[695492];J[695492]=0;if((k|0)==1)break h;if((i|0)!=4)break l;J[695492]=0;Uw(c,(O[d+16>>3]-O[d+32>>3])/+(e>>>0),(O[d+8>>3]-O[d+24>>3])/+(h>>>0),1);e=J[695492];J[695492]=0;if((e|0)!=1)break l;g=Z()|0;Ed(c);break f}g=Z()|0;break f}J[695492]=0;e=J[b+16>>2]; -h=J[695492];J[695492]=0;if((h|0)==1)break h;m:{if((e|0)==4)break m;j=O[a+2912>>3];if(!(j>1))break m;l=O[a+24>>3];r=O[a+32>>3];J[695492]=0;Uw(c,l/j,r/j,1);e=J[695492];J[695492]=0;if((e|0)!=1)break m;g=Z()|0;Ed(c);break f}J[695492]=0;Vt(c,O[d+32>>3],O[d+24>>3],1);e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;Ck(c,a+56|0,1);e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;sC(b,c);e=J[695492];J[695492]=0;if((e|0)==1)break h;Ed(c)}J[695492]=0;da(2290,a|0,b|0);a=J[695492];J[695492]=0;if((a| -0)==1)break g;qc(g);if(!f)break e;qc(f);break e}g=Z()|0;Ed(c);break f}g=Z()|0}yC(d+40|0);break a}a=J[d+448>>2];if(a){e=a-1|0;J[d+448>>2]=e;g=J[d+456>>2]+(a<<2)|0;while(1){g=g-4|0;a=J[g>>2];if(a){qc(a);a=J[d+448>>2]}else a=e;e=a-1|0;J[d+448>>2]=e;if(a)continue;break}}a=J[d+456>>2];if(a)qc(a);a=J[d+224>>2];if(a){e=a-1|0;J[d+224>>2]=e;g=J[d+232>>2]+(a<<2)|0;while(1){g=g-4|0;a=J[g>>2];if(a){qc(a);a=J[d+224>>2]}else a=e;e=a-1|0;J[d+224>>2]=e;if(a)continue;break}}a=J[d+232>>2];if(a)qc(a);a=J[d+476>>2]; -n:{if(!a)break n;e=a-1|0;J[d+476>>2]=e;g=J[d+484>>2]+(a<<2)|0;while(1){g=g-4|0;a=J[g>>2];if(a){qc(a);a=J[d+476>>2]}else a=e;e=a-1|0;J[d+476>>2]=e;if(a)continue;break}a=J[d+484>>2];if(!a)break n;qc(a)}a=0}else a=2;bc=d+496|0;return a|0}g=Z()|0}G3(d+472|0);ba(g|0);B()}function ksa(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=bc-32|0;bc=e;d=J[d>>2];J[a>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(d){f=J[J[d+28>>2]>>2]?J[d+32>>2]:0;if(!(!b|!c)){if(f){J[695492]=0;h=c+f|0;g=ha(5043,e+20|0, -e+28|0,h|0,1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break l;tc(J[e+28>>2],J[d+24>>2],f);tc(f+J[e+28>>2]|0,b,c);c=J[e+28>>2];m:{n:{b=J[d+16>>2];o:{if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break n;d=J[d+16>>2];J[695492]=0;J[e+12>>2]=d;ia(5494,e+16|0,c|0,h|0,e+12|0);c=J[695492];J[695492]=0;if((c|0)!=1)break o;break d}d=J[d+20>>2];J[695492]=0;ia(5489,e+16|0,c|0,h|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break d}J[695492]=0;aa(4993,a|0,e+16|0)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break m;a=J[e+16>>2];J[e+16>>2]=0;p:{if(!a)break p;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break p;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}q:{if(!b)break q;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break q;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break q;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}_c(g);break i}d=Z()|0;_c(g);break b}d=Z()|0;vc(e+ -16|0);break c}r:{s:{f=J[d+16>>2];t:{if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;g=J[695492];J[695492]=0;if((g|0)==1)break s;d=J[d+16>>2];J[695492]=0;J[e+8>>2]=d;ia(5494,e+20|0,b|0,c|0,e+8|0);b=J[695492];J[695492]=0;if((b|0)!=1)break t;break f}d=J[d+20>>2];J[695492]=0;ia(5489,e+20|0,b|0,c|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break f}J[695492]=0;aa(4993,a|0,e+20|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;a=J[e+20>>2];J[e+20>>2]=0;u:{if(!a)break u;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492]; -J[695492]=0;if((c|0)==1)break a;if(b)break u;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}if(!f)break i;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break i;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break i;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i}break a}d=Z()|0;break b}d=Z()|0;vc(e+20|0);break e}if(f){J[695492]=0;c=ha(5043,e+20|0,e+28|0,f|0,1)|0;b=J[695492];J[695492]=0;v:{w:{if((b|0)!=1){tc(J[e+28>>2],J[d+24>>2],f);g=J[e+ -28>>2];b=J[d+16>>2];x:{if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;h=J[695492];J[695492]=0;if((h|0)==1)break w;d=J[d+16>>2];J[695492]=0;J[e+4>>2]=d;ia(5494,e+16|0,g|0,f|0,e+4|0);d=J[695492];J[695492]=0;if((d|0)!=1)break x;break h}d=J[d+20>>2];J[695492]=0;ia(5489,e+16|0,g|0,f|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break h}J[695492]=0;aa(4993,a|0,e+16|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break v;a=J[e+16>>2];J[e+16>>2]=0;y:{if(!a)break y;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;f=J[695492];J[695492]= -0;if((f|0)==1)break a;if(d)break y;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}z:{if(!b)break z;a=J[e+4>>2];J[e+4>>2]=0;if(!a)break z;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break z;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}_c(c);break i}d=Z()|0;break b}d=Z()|0;_c(c);break b}d=Z()|0;vc(e+16|0);break g}A:{B:{b=J[d+16>>2];C:{if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break B; -c=J[d+16>>2];J[695492]=0;J[e>>2]=c;ia(5494,e+20|0,0,0,e|0);c=J[695492];J[695492]=0;if((c|0)!=1)break C;break k}c=J[d+20>>2];J[695492]=0;ia(5489,e+20|0,0,0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break k}J[695492]=0;aa(4993,a|0,e+20|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break A;a=J[e+20>>2];J[e+20>>2]=0;D:{if(!a)break D;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break D;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}if(!b)break i; -a=J[e>>2];J[e>>2]=0;if(!a)break i;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break i;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i}break a}d=Z()|0;break b}d=Z()|0;vc(e+20|0);break j}J[695492]=0;d=e+20|0;ia(5489,d|0,b|0,c|0,8);b=J[695492];J[695492]=0;E:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break E;a=J[e+20>>2];J[e+20>>2]=0;if(!a)break i;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]= -0;if((c|0)!=1){if(b)break i;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i}break a}d=Z()|0;break b}d=Z()|0;vc(e+20|0);break b}d=Z()|0;break b}d=Z()|0}if(!b)break b;vc(e);break b}bc=e+32|0;return}d=Z()|0}if(b)vc(e+4|0);_c(c);break b}d=Z()|0}if(!f)break b;vc(e+8|0);break b}d=Z()|0}if(b)vc(e+12|0);_c(g)}vc(a);ba(d|0);B()}ea(0)|0;yc();B()}function yB(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;g=bc-112|0;bc=g;a:{if(!b)break a;d=gc[J[659447]](36)|0;if(!d){J[g>> -2]=5439;Cc(0,0,0,0,0,29,2,3,5439,0,0,0,32863,g);break a}J[d+20>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;c=J[659449];J[d+24>>2]=0;J[d+12>>2]=c;J[d+8>>2]=0;J[d+16>>2]=0;J[d>>2]=0;if((c&-2)!=2)J[d+12>>2]=4;m=g+106|0;n=g+105|0;o=g+104|0;p=g+103|0;b:{while(1){f=b;c:{d:{e:{f:{g:{while(1){c=K[f|0];if(c)if((c|0)==38){if((b|0)!=(f|0))if(Aj(d,b,f-b|0))break c;h:{i:{e=K[f+1|0];if((e|0)!=35){b=1;h=f+1|0;while(1){c=e&255;if(!c)break i;if((c|0)==59)break h;b=b+1|0;e=K[f+b|0];continue}}i=f+2|0;e=0;b=K[f+2|0]; -if((b|0)==59){b=i+1|0;break d}if((b|0)==120){c=f+3|0;h=1;f=K[f+3|0];j:{if((f|0)==59)break j;while(1){b=c;i=-48;k:{if((f-48&255)>>>0<10)break k;i=-87;if((f-97&255)>>>0<6)break k;i=-55;if((f-65&255)>>>0<6)break k;h=0;J[g+64>>2]=0;Cc(0,0,0,0,a,2,1300,2,0,0,0,0,33850,g- -64|0);e=0;break j}c=b+1|0;e=((e<<4)+i|0)+(f&255)|0;f=K[b+1|0];if((f|0)!=59)continue;break}}b=c+h|0;break d}l:{while(1){if((b-48&255)>>>0<=9){e=(P(e,10)+(b&255)|0)-48|0;f=1;b=K[i+1|0];c=i+1|0;i=c;if((b|0)!=59)continue;break l}break}f= -0;J[g+48>>2]=0;Cc(0,0,0,0,a,2,1301,2,0,0,0,0,33887,g+48|0);c=i;e=0}b=c+f|0;break d}J[g+80>>2]=h;Cc(0,0,0,0,a,2,1302,2,h,0,0,0,31956,g+80|0);break c}if((b|0)==1)break e;j=gc[J[659450]](b)|0;m:{if(!j){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break m}c=b-1|0;q=tc(j,h,c)+c|0,r=0,H[q|0]=r}n:{o:{if(!a)break o;c=J[a+44>>2];p:{if(!c)break p;c=J[c+48>>2];if(!c)break p;i=tf(c,j,0,0);if(i)break n}if(J[a+40>>2]==1)break o;c=J[a+48>>2];if(!c)break o;c=J[c+48>>2];if(!c)break o;i=tf(c,j,0,0);if(i)break n}i=Qi(j);if(i)break n; -i=0;e=1;break g}e=0;if(J[i+48>>2]!=6)break g;if(J[d+32>>2])break c;h=J[i+40>>2];c=J[d+8>>2];if(!((c|0)==J[d+24>>2]|c>>>0>2147483646))J[d+24>>2]=c;c=J[d+4>>2];if(!((c|0)==J[d+20>>2]|c>>>0>2147483646))J[d+20>>2]=c;e=J[d+12>>2];if(!h|(e|0)==2)break b;if(!Aj(d,h,-1))break f;break c}else{f=f+1|0;continue}break}if(!(l?(b|0)==(f|0):0))Aj(d,b,f-b|0);if(J[d+32>>2])break c;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;e=J[d+20>>2];b=J[d+4>>2];if((e|0)==(b|0)|b>>>0>2147483646)b=e;else J[d+ -20>>2]=b;if(!b)break c;b=gc[J[659447]](60)|0;q:{if(b){J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=3;J[b+8>>2]=773004;r:{if(!J[689540])break r;c=J[689537];if(!c)break r;gc[c|0](b)}J[b+32>>2]=a;break q}J[g+16>>2]=1832;Cc(0,0,0,0,0,2,2,3,1832,0,0,0,32863,g+16|0)}e=0;if(!(J[d+32>>2]|(J[d+28>>2]|J[d+12>>2]==2))){J[d+20>>2]=0;J[d+24>>2]=0;J[d+4>>2]= -0;J[d+8>>2]=0;e=J[d>>2];J[d>>2]=0}J[b+40>>2]=e;if(!k){l=b;break c}Ct(k,b);break c}s:{if(J[d+32>>2])break s;c=J[d+8>>2];if(!((c|0)==J[d+24>>2]|c>>>0>2147483646))J[d+24>>2]=c;h=J[d+20>>2];c=J[d+4>>2];if((h|0)==(c|0)|c>>>0>2147483646)c=h;else J[d+20>>2]=c;if(!c)break s;c=gc[J[659447]](60)|0;t:{if(c){J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+4>>2]=3;J[c+ -8>>2]=773004;u:{if(!J[689540])break u;h=J[689537];if(!h)break u;gc[h|0](c)}J[c+32>>2]=a;break t}J[g+96>>2]=1832;Cc(0,0,0,0,0,2,2,3,1832,0,0,0,32863,g+96|0)}h=0;if(!(J[d+32>>2]|(J[d+28>>2]|J[d+12>>2]==2))){J[d+20>>2]=0;J[d+24>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;h=J[d>>2];J[d>>2]=0}J[c+40>>2]=h;if(!k){k=c;l=c;break s}k=Ct(k,c)}c=PJ(a,j);if(!c){if(!j)break c;gc[J[659451]](j);break c}v:{if(J[i+12>>2]|e)break v;J[i+12>>2]=-1;e=yB(a,J[c+40>>2]);J[i+68>>2]=1;J[i+12>>2]=e;if(!e)break v;while(1){J[e+20>>2]=i;e= -J[e+24>>2];if(e)continue;break}}if(!k){k=c;l=c;break f}k=Ct(k,c)}gc[J[659451]](j)}b=(b+f|0)+1|0;continue}if(!e)continue;w:{x:{if((e|0)>=128){y:{if(e>>>0<2048){f=0;h=192;c=6;break y}if(e>>>0<65536){f=6;h=224;c=12;break y}if(e>>>0>=1114112)break x;f=12;h=240;c=18}H[g+102|0]=e>>>c|h;H[g+103|0]=e>>>f&63|128;h=(f>>>0)/6|0;c=o;z:{if(f>>>0<6)break z;H[g+104|0]=e>>>f-6&63|128;h=(h+p|0)==(c|0);c=n;if(h)break z;H[g+105|0]=e>>>f-12&63|128;c=m}c=c-(g+102|0)|0;break w}H[g+102|0]=e;c=1;break w}J[g+32>>2]=e;Cc(0, -0,0,0,0,1,9,3,0,0,0,e,35041,g+32|0);c=0}H[c+(g+102|0)|0]=0;if(J[d+32>>2])break c;c=J[d+8>>2];if(!((c|0)==J[d+24>>2]|c>>>0>2147483646))J[d+24>>2]=c;c=J[d+4>>2];if(!((c|0)==J[d+20>>2]|c>>>0>2147483646))J[d+20>>2]=c;if(J[d+12>>2]==2)break c;if(!Aj(d,g+102|0,-1))continue}break}e=J[d+12>>2]}A:{B:{C:{if((e|0)==3){f=J[d+16>>2];if(!f)break C;break B}if((e|0)==2)break A}f=J[d>>2];if(!f)break A}gc[J[659451]](f)}gc[J[659451]](d)}bc=g+112|0;return l}function sUa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j= -0,k=0;if(J[a+76>>2]>0){c=J[a+416>>2];k=J[a+84>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{f=J[k+36>>2];b=J[k+40>>2]+(f<<8)|0;if((b|0)<=2051){if((b|0)<=1025){J:switch(b-513|0){case 0:break n;case 1:break H;case 2:break c;case 3:break g;default:break J}K:switch(b-257|0){case 0:break I;case 1:break f;default:break K}switch(b-771|0){case 3:break h;case 0:break G;default:break c}}if((b|0)<=1538){L:switch(b-1026|0){case 6:break i; -case 0:break o;case 2:break F;case 1:case 3:case 4:case 5:break c;default:break L}switch(b-1285|0){case 5:break j;case 0:break E;default:break c}}M:switch(b-1539|0){case 9:break k;case 0:break p;case 3:break D;case 1:case 2:case 4:case 5:case 6:case 7:case 8:break c;default:break M}switch(b-1799|0){case 7:break l;case 0:break C;default:break c}}if((b|0)<=3077){if((b|0)<=2564)switch(b-2052|0){case 12:break m;case 0:break q;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break c; -case 4:break e;default:break d}switch(b-2565|0){case 0:break r;case 5:break B;case 1:case 2:case 3:case 4:break c;default:break A}}if((b|0)<=3590)switch(b-3078|0){case 0:break s;case 6:break z;case 1:case 2:case 3:case 4:case 5:break c;default:break y}N:switch(b-3591|0){case 0:break t;case 7:break x;case 1:case 2:case 3:case 4:case 5:case 6:break c;default:break N}switch(b-4104|0){case 0:break u;case 8:break v;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break c;default:break w}}J[((d<<2)+c|0)+ -44>>2]=432;e=0;break a}J[((d<<2)+c|0)+44>>2]=433;e=0;break a}J[((d<<2)+c|0)+44>>2]=434;e=0;break a}J[((d<<2)+c|0)+44>>2]=435;e=0;break a}J[((d<<2)+c|0)+44>>2]=436;e=0;break a}J[((d<<2)+c|0)+44>>2]=437;e=0;break a}J[((d<<2)+c|0)+44>>2]=438;e=0;break a}J[((d<<2)+c|0)+44>>2]=439;e=0;break a}if((b|0)!=2827)break c;J[((d<<2)+c|0)+44>>2]=440;e=0;break a}J[((d<<2)+c|0)+44>>2]=441;e=0;break a}if((b|0)!=3341)break c;J[((d<<2)+c|0)+44>>2]=442;e=0;break a}J[((d<<2)+c|0)+44>>2]=443;e=0;break a}if((b|0)!=3855)break c; -J[((d<<2)+c|0)+44>>2]=444;e=0;break a}J[((d<<2)+c|0)+44>>2]=445;e=0;break a}J[((d<<2)+c|0)+44>>2]=446;e=0;break a}J[((d<<2)+c|0)+44>>2]=447;e=0;break a}J[((d<<2)+c|0)+44>>2]=448;e=0;break a}J[((d<<2)+c|0)+44>>2]=449;e=0;break a}J[((d<<2)+c|0)+44>>2]=450;e=0;break a}J[((d<<2)+c|0)+44>>2]=451;e=0;break a}J[((d<<2)+c|0)+44>>2]=452;e=0;break a}J[((d<<2)+c|0)+44>>2]=453;e=0;break a}J[((d<<2)+c|0)+44>>2]=454;e=0;break a}J[((d<<2)+c|0)+44>>2]=455;e=0;break a}J[((d<<2)+c|0)+44>>2]=456;e=0;break a}J[((d<< -2)+c|0)+44>>2]=457;e=0;break a}J[((d<<2)+c|0)+44>>2]=458;e=0;break a}J[((d<<2)+c|0)+44>>2]=459;e=0;break a}J[((d<<2)+c|0)+44>>2]=460;e=0;break a}J[((d<<2)+c|0)+44>>2]=461;e=0;break a}O:switch(J[a+232>>2]){case 0:J[((d<<2)+c|0)+44>>2]=462;e=0;break a;case 1:J[((d<<2)+c|0)+44>>2]=463;e=1;break a;case 2:e=2;J[((d<<2)+c|0)+100>>2]=464;break a;default:break O}b=J[a>>2];J[b+20>>2]=49;gc[J[b>>2]](a);break a}if((b|0)==2313)break b}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=7;J[J[a>>2]+28>>2]=J[k+40>>2];gc[J[J[a>> -2]>>2]](a);break a}J[((d<<2)+c|0)+44>>2]=465;e=0}b=J[k+16>>2];P:{if(b>>>0<=3){i=J[((b<<2)+a|0)+88>>2];if(i)break P}f=J[a>>2];J[f+24>>2]=b;J[f+20>>2]=54;gc[J[J[a>>2]>>2]](a);i=J[((b<<2)+a|0)+88>>2]}Q:{R:switch(e|0){case 0:b=(b<<2)+c|0;f=J[b+84>>2];if(!f){f=gc[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+84>>2]=f}b=0;while(1){J[(b<<2)+f>>2]=L[(b<<1)+i>>1]<<3;h=b|1;J[(h<<2)+f>>2]=L[(h<<1)+i>>1]<<3;h=b|2;J[(h<<2)+f>>2]=L[(h<<1)+i>>1]<<3;h=b|3;J[(h<<2)+f>>2]=L[(h<<1)+i>>1]<<3;b=b+4|0;if((b|0)!=64)continue;break}J[((d<< -2)+c|0)+4>>2]=466;break Q;case 1:b=(b<<2)+c|0;f=J[b+84>>2];if(!f){f=gc[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+84>>2]=f}b=0;while(1){h=b<<1;J[(b<<2)+f>>2]=P(I[h+57440>>1],L[i+h>>1])+1024>>11;g=b|1;h=g<<1;J[(g<<2)+f>>2]=P(I[h+57440>>1],L[i+h>>1])+1024>>11;b=b+2|0;if((b|0)!=64)continue;break}J[((d<<2)+c|0)+4>>2]=466;break Q;case 2:b=(b<<2)+c|0;f=J[b+140>>2];if(!f){f=gc[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+140>>2]=f}h=0;b=0;while(1){j=O[(h<<3)+57568>>3];N[(b<<2)+f>>2]=1/(j*+L[(b<<1)+i>>1]*8);g=b|1;N[(g<<2)+f>>2]= -1/(j*+L[(g<<1)+i>>1]*1.387039845*8);g=b|2;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*1.306562965*8);g=b|3;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*1.175875602*8);g=b|4;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*8);g=b|5;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.785694958*8);g=b|6;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.5411961*8);g=b|7;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.275899379*8);b=b+8|0;h=h+1|0;if((h|0)!=8)continue;break}J[((d<<2)+c|0)+4>>2]=467;break Q;default:break R}b=J[a>>2];J[b+20>>2]=49;gc[J[b>>2]](a)}k=k+88|0; -d=d+1|0;if((d|0)>2])continue;break}}}function _o(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-96|0;bc=d;H[a+32|0]=1;a:{b:{c:{d:{e:{f:{g:{h:{c=J[a+8>>2];i:{if(!c|!J[c+8>>2])break i;c=d+32|0;sj(c,a,0);J[695492]=0;da(6061,d+84|0,c|0);g=J[695492];J[695492]=0;if((g|0)==1){a=Z()|0;sc(c);ba(a|0);B()}g=a+8|0;e=d+32|0;sc(e);j:{k:{l:{c=J[d+84>>2];if(!(M[c+8>>2]>1?c:0)){H[a+32|0]=0;if(b)break j;J[695492]=0;ca(5048,d+8|0,39163,g|0);a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[d+8>>2];a=J[(a?a+ -12|0:2728584)>>2];J[695492]=0;b=ja(5018,e|0,a|0,5684,373,28900,0)|0;a=J[695492];J[695492]=0;m:{n:{if((a|0)!=1){J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;break b}a=Z()|0;break m}a=Z()|0;Fc(b)}sc(d+8|0);break c}J[695492]=0;c=fd(d+84|0,14194,-1);e=J[695492];J[695492]=0;o:{p:{if((e|0)==1)break p;q:{r:{s:{t:{u:{v:{if(c)break v;w:{c=J[g>>2];e=J[c+8>>2];if((e|0)>=5){f=J[c+12>>2];if(K[f+5|0]!=47)break v;if(e>>>0>5)break w}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break b; -break p}if(K[f+6|0]==47){J[695492]=0;c=fd(g,2426688,18);e=J[695492];J[695492]=0;if((e|0)==1)break p;if(c)break v;c=J[g>>2]}J[d+76>>2]=0;J[d+80>>2]=J[682146];f=J[(c?c+12|0:2728584)>>2];c=f;while(1){e=K[c|0];if(!(!e|(e|0)==35|(e|0)==63)){c=c+1|0;continue}break}J[695492]=0;aa(5054,d+76|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;J[695492]=0;ia(5143,d+32|0,g|0,0,c-f|0);c=J[695492];J[695492]=0;x:{y:{z:{if((c|0)!=1){c=J[d+32>>2];A:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+8|0,c|0,1);c=J[695492]; -J[695492]=0;if((c|0)!=1)break A;a=Z()|0;break f}J[d+8>>2]=0}J[695492]=0;aa(4993,g|0,d+8|0)|0;c=J[695492];J[695492]=0;B:{if((c|0)!=1){c=J[d+8>>2];J[d+8>>2]=0;if(!c)break B;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break B;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break B}break a}a=Z()|0;vc(d+8|0);break f}c=J[a+8>>2];J[a+12>>2]=J[(c?c+12|0:2728584)>>2];e=d+32|0;sc(e);J[695492]=0;da(6062,d+68|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break z; -c=J[d+68>>2];if(J[c+8>>2]?c:0)break x;H[a+32|0]=0;if(b)break k;J[695492]=0;b=ja(5018,e|0,14180,5684,400,28900,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break y;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break g}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break g}J[695492]=0;c=aa(6063,d+32|0,d+68|0)|0;e=J[695492];J[695492]=0;C:{D:{E:{if((e|0)!=1){J[c>>2]=2426788;J[695492]=0;ca(5231,d+8|0,c|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break E;e=J[d+8>>2];F:{if(e){f=J[J[e>> -2]+28>>2];J[695492]=0;ca(f|0,d+92|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break F;a=Z()|0;break h}J[d+92>>2]=0}J[695492]=0;aa(4993,g|0,d+92|0)|0;e=J[695492];J[695492]=0;G:{if((e|0)!=1){e=J[d+92>>2];J[d+92>>2]=0;if(!e)break G;J[695492]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break G;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break G}break a}a=Z()|0;vc(d+92|0);break h}e=J[a+8>>2];J[a+12>>2]=J[(e?e+12|0:2728584)>>2];sc(d+8|0);J[c+24>>2]=2381060;J[c>> -2]=2381028;e=J[c+28>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)gc[J[J[e>>2]+4>>2]](e);J[c+28>>2]=0}J[c+16>>2]=2381060;e=J[c+20>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)gc[J[J[e>>2]+4>>2]](e);J[c+20>>2]=0}sc(c+8|0);c=J[g>>2];if(J[c+8>>2]?c:0)break C;H[a+32|0]=0;if(b)break k;J[695492]=0;b=ja(5018,d+8|0,21026,5684,408,28900,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break D;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break g}a=Z()|0;break g}a=Z()|0;ud(c);break g}a= -Z()|0;break g}J[695492]=0;b=d+76|0;aa(5170,g|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break u;sc(d+68|0);sc(b)}if(!K[a+32|0]){J[695492]=0;da(5112,a|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break p}J[d+8>>2]=0;J[d+12>>2]=J[682146];b=J[g>>2];if(!b)break t;c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+76|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break s;a=Z()|0;break r}a=Z()|0;break g}J[d+76>>2]=0}J[695492]=0;aa(4993,d+8|0,d+76|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+76>>2];J[d+76>>2]=0;if(!b)break q; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g=J[695492];J[695492]=0;if((g|0)!=1){if(c)break q;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break q}break a}a=Z()|0;vc(d+76|0)}sc(d+8|0);break c}b=J[d+8>>2];J[d+12>>2]=J[(b?b+12|0:2728584)>>2];sc(d+8|0);J[695492]=0;_(6064,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break p;J[695492]=0;_(6065,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break o}a=Z()|0;break c}sc(d+84|0);break i}a=Z()|0;break c}sc(d+68|0);sc(d+76|0)}sc(d+84|0)}bc=d+96|0;return}sc(d+ -8|0);ud(c)}sc(d+68|0);break d}sc(d+32|0);break d}a=Z()|0}sc(d+76|0)}sc(d+84|0);ba(a|0);B()}B()}ea(0)|0;yc();B()}function q$(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;j=bc-32|0;bc=j;b=J[a+36>>2];f=J[b+32>>2];h=J[b+28>>2];a:{if(J[a+292>>2])break a;c=J[b+16>>2];if(!((c-J[b+12>>2]|0)<501|(J[b+20>>2]-c|0)>499)){Pg(a);if(J[a+292>>2])break a}b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break a;Hd(a)}d=J[a+36>>2];b=J[d+16>>2];b:{while(1){c:{d:{e:{g=K[b|0];if((g|0)!=10){if((g|0)!=32){if((g|0)!=60)break c; -c=J[d+16>>2];f=b-c|0;if((f|0)<=0)break b;J[d+16>>2]=b;b=J[a>>2];if(!b)break b;e=J[b+68>>2];b=J[b+72>>2];if((e|0)==(b|0))break d;e=mB(a,c,f,1);b=J[a>>2];if(!e)break e;b=J[b+72>>2];if(!b)break b;gc[b|0](J[a+4>>2],c,f);break b}J[d+32>>2]=J[d+32>>2]+1;b=b+1|0;continue}e=J[d+28>>2];c=b;while(1){J[d+32>>2]=1;e=e+1|0;J[d+28>>2]=e;g=K[c+1|0];b=c+1|0;c=b;if((g|0)==10)continue;break}continue}b=J[b+68>>2];if(b)gc[b|0](J[a+4>>2],c,f);a=J[a+232>>2];if(J[a>>2]!=-1)break b;J[a>>2]=-2;break b}if(!b)break b;gc[b| -0](J[a+4>>2],c,f);break b}c=J[d+32>>2];while(1){if(K[g+773760|0])while(1){c=c+1|0;e=K[b+1|0];b=b+1|0;if(K[e+773760|0])continue;break}J[d+32>>2]=c;f:{e=K[b|0];if((e|0)!=93){if((e|0)!=10)break f;i=J[d+28>>2];e=b;while(1){c=1;J[d+32>>2]=1;i=i+1|0;J[d+28>>2]=i;g=K[e+1|0];b=e+1|0;e=b;if((g|0)==10)continue;break}continue}if(!(K[b+1|0]!=93|K[b+2|0]!=62)){g:{if(!a){J[j>>2]=2375;Cc(0,0,0,0,0,1,62,3,0,0,0,0,32890,j);break g}if(J[a+172>>2]==-1?J[a+212>>2]:0)break g;J[a+84>>2]=62;J[j+16>>2]=2375;Cc(0,0,0,a,0, -1,62,3,0,0,0,0,32890,j+16|0);J[a+12>>2]=0;if(J[a+288>>2])break g;J[a+212>>2]=1}J[J[a+36>>2]+16>>2]=b;break b}c=c+1|0;J[d+32>>2]=c;b=b+1|0;g=K[b|0];continue}break}e=J[d+16>>2];g=b-e|0;if((g|0)>0){i=J[a>>2];h:{if(!i)break h;i:{f=J[i+68>>2];if((f|0)==J[i+72>>2])break i;h=K[e|0]-9|0;if(h>>>0>23|!(1<>2]=b;f=mB(a,e,g,0);c=J[a>>2];j:{if(f){c=J[c+72>>2];if(!c)break j;gc[c|0](J[a+4>>2],e,g);break j}c=J[c+68>>2];if(c)gc[c|0](J[a+4>>2],e,g);c=J[a+232>>2];if(J[c>>2]!=-1)break j;J[c>> -2]=-2}d=J[a+36>>2];f=J[d+32>>2];h=J[d+28>>2];break h}if(f){gc[f|0](J[a+4>>2],e,g);d=J[a+36>>2];c=J[d+32>>2]}h=J[d+28>>2];f=c}if(J[a+172>>2]!=7)break b}J[d+16>>2]=b;k:{l:{c=K[b|0];if((c|0)!=13){if((c|0)==38|(c|0)==60)break b;break l}if(K[b+1|0]!=10)break l;J[d+16>>2]=b+1;J[d+32>>2]=1;J[d+28>>2]=J[d+28>>2]+1;b=b+2|0;break k}m:{if(J[a+292>>2])break m;if(!((b-J[d+12>>2]|0)<501|(J[d+20>>2]-b|0)>499)){Pg(a);if(J[a+292>>2])break m}b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break m;Hd(a)}if(J[a+172>>2]== --1)break b;d=J[a+36>>2];b=J[d+16>>2]}c=H[b|0];if((c|0)>31|(c|0)==9)continue;break}J[d+32>>2]=f;J[d+28>>2]=h;f=0;e=bc-336|0;bc=e;n:{if(J[a+292>>2])break n;b=J[a+36>>2];c=J[b+16>>2];if(!((c-J[b+12>>2]|0)<501|(J[b+20>>2]-c|0)>499)){Pg(a);if(J[a+292>>2])break n}b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break n;Hd(a)}b=Ff(a,e+12|0);c=0;o:{while(1){p:{if((b|0)==38|(b|0)==60)break p;q:{if((b|0)<=255){if(1<>>0<=13:0)break q;if((b|0)<=31)break p;if((b|0)!=93)break q;d=J[J[a+36>>2]+16>>2];if(K[d+ -1|0]!=93|K[d+2|0]!=62|(J[a+172>>2]==-1?J[a+212>>2]:0))break q;J[a+84>>2]=62;J[e>>2]=2375;Cc(0,0,0,a,0,1,62,3,0,0,0,0,32890,e);J[a+12>>2]=0;if(J[a+288>>2])break q;J[a+212>>2]=1;break q}if(b>>>0<55296|b-57344>>>0<8190)break q;if(b-65536>>>0>=1048576)break p}r:{if(J[e+12>>2]==1){H[(e+16|0)+c|0]=b;c=c+1|0;break r}c=Pi((e+16|0)+c|0,b)+c|0}if((c|0)>=300){d=e+16|0;H[d+c|0]=0;s:{if(J[a+212>>2]|!J[a>>2])break s;g=mB(a,d,c,0);b=J[a>>2];if(g){b=J[b+72>>2];if(!b)break s;gc[b|0](J[a+4>>2],d,c);break s}d=J[b+68>> -2];if(d){gc[d|0](J[a+4>>2],e+16|0,c);b=J[a>>2];c=J[b+68>>2]}else c=0;if((c|0)==J[b+72>>2])break s;b=J[a+232>>2];if(J[b>>2]!=-1)break s;J[b>>2]=-2}c=0;if(J[a+172>>2]!=7)break o}t:{if((f|0)<50){f=f+1|0;break t}u:{if(J[a+292>>2])break u;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break u;Hd(a)}f=0;if(J[a+172>>2]==-1)break o}b=J[a+36>>2];d=J[b+16>>2];v:{if(K[d|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break v}J[b+32>>2]=J[b+32>>2]+1}g=b;b=d+J[e+12>>2]|0;J[g+16>>2]=b;if(K[b|0]==37)Od(a);b=Ff(a,e+ -12|0);continue}break}w:{if(!c)break w;d=e+16|0;H[d+c|0]=0;if(J[a+212>>2]|!J[a>>2])break w;g=0;h=mB(a,d,c,0);f=J[a>>2];if(h){f=J[f+72>>2];if(!f)break w;gc[f|0](J[a+4>>2],d,c);break w}d=J[f+68>>2];if(d){gc[d|0](J[a+4>>2],e+16|0,c);f=J[a>>2];g=J[f+68>>2]}if((g|0)==J[f+72>>2])break w;c=J[a+232>>2];if(J[c>>2]!=-1)break w;J[c>>2]=-2}if(!b)break o;x:{if((b|0)<=255){if((b|0)>31)break o;if(!(1<>>0>13)break x;break o}if(b-57344>>>0<8190|b-65536>>>0<1048576)break o}fl(a,9,36307,b);b=J[a+36>>2];c= -J[b+16>>2];y:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break y}J[b+32>>2]=J[b+32>>2]+1}f=b;b=c+J[e+12>>2]|0;J[f+16>>2]=b;if(K[b|0]!=37)break o;Od(a)}bc=e+336|0}bc=j+32|0}function MU(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=bc-80|0;bc=f;a:{b:{c:{d:{e:{f:{g:{if(!K[b+89|0]){a=Kc(f+44|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;b=Z()|0;Fc(a);ba(b|0);B()}h=J[c>>2];if(!(J[h+8>>2]?h:0)){PU(a,b,-1,0);break e}h=Ql(f+44|0); -J[695492]=0;e=f+8|0;ca(5229,e|0,b|0,c|0);g=J[695492];J[695492]=0;h:{i:{if((g|0)!=1){J[695492]=0;aa(5083,h|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;J[f+32>>2]=2381060;J[f+8>>2]=2381028;e=J[f+36>>2];if(e){g=J[e+4>>2]-1|0;J[e+4>>2]=g;if(!g)gc[J[J[e>>2]+4>>2]](e);J[f+36>>2]=0}J[f+24>>2]=2381060;e=J[f+28>>2];if(e){g=J[e+4>>2]-1|0;J[e+4>>2]=g;if(!g)gc[J[J[e>>2]+4>>2]](e);J[f+28>>2]=0}sc(f+16|0);j:{k:{e=J[h+8>>2];l:{m:{if(!e|!J[e+8>>2])break m;J[695492]=0;e=f+8|0;ca(5231,e|0,h|0,0);g=J[695492]; -J[695492]=0;if((g|0)==1)break l;g=J[f+8>>2];if(!g){sc(e);break m}e=J[g+8>>2];sc(f+8|0);if(e)break j}J[695492]=0;e=$(5252,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;if(e)break j;J[695492]=0;d=J[b+92>>2];e=J[695492];J[695492]=0;if((e|0)==1)break l;if(!(d&24))break k;J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break f}b=Z()|0;break b}J[695492]=0;d=f+8|0;ca(5208,d|0,b|0,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;J[695492]=0;aa(5083,h|0,d|0)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break d;J[f+32>>2]=2381060;J[f+8>>2]=2381028;d=J[f+36>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[f+36>>2]=0}J[f+24>>2]=2381060;d=J[f+28>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[f+28>>2]=0}sc(f+16|0);d=J[b+136>>2];if(d)while(1){e=0;n:{o:{p:{g=J[d+8>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break p;e=J[d+8>>2]}J[695492]=0;J[f+8>>2]=e;g=aa(5066,e+24|0,h|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o; -e=J[f+8>>2];if(!g)break n;b=J[e+60>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break o;b=J[e+60>>2]}else b=0;J[a>>2]=b;J[695492]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break f;J[695492]=0;_(4987,e|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}break a}b=Z()|0;break b}b=Z()|0;vc(f+8|0);break b}q:{if(!e)break q;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(g)break q;J[695492]=0;_(4987,e|0); -e=J[695492];J[695492]=0;if((e|0)==1)break a}d=J[d>>2];if(d)continue;break}J[695492]=0;d=$(4,68)|0;e=J[695492];J[695492]=0;r:{s:{t:{u:{v:{w:{if((e|0)!=1){J[695492]=0;J[f+4>>2]=0;e=f+4|0;aa(4985,e|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break v;J[695492]=0;c=ja(5243,d|0,0,c|0,0,h|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1){b=Z()|0;vc(e);qc(d);break b}J[695492]=0;J[f+8>>2]=0;aa(4985,f+8|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break w;c=J[f+4>>2];J[f+4>>2]=0;x:{if(!c)break x;J[695492]=0;d=J[c+ -4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break x;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;c=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break s;J[c>>2]=0;J[c+4>>2]=0;d=J[f+8>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break s;d=J[f+8>>2]}else d=0;J[c+8>>2]=d;J[695492]=0;of(b+128|0,c);c=J[695492];J[695492]=0;if((c|0)==1)break s;J[695492]=0;J[f>>2]=0;aa(4985,f|0,b|0)|0;c=J[695492];J[695492]=0; -if((c|0)==1)break s;c=K[b+88|0];b=J[b+84>>2];J[695492]=0;la(5244,a|0,h|0,f|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break u;b=J[f>>2];J[f>>2]=0;y:{if(!b)break y;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break y;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;aa(4993,J[f+8>>2]+60|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break t;b=Z()|0;vc(a);break r}b=Z()|0;break b}b=Z()|0;vc(f+4|0);break b}b=Z()|0;qc(d);break b}b= -Z()|0;vc(f);break r}a=J[f+8>>2];J[f+8>>2]=0;if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break h;if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;break f}b=Z()|0}vc(f+8|0);break b}J[695492]=0;ia(5253,a|0,b|0,h|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;ud(f+8|0);break b}ea(0)|0;yc()}B()}J[h+24>>2]=2381060;J[h>>2]=2381028;a=J[h+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>> -2]+4>>2]](a);J[h+28>>2]=0}J[h+16>>2]=2381060;a=J[h+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[h+20>>2]=0}sc(h+8|0)}bc=f+80|0;return}b=Z()|0;ud(f+8|0);break b}b=Z()|0}ud(h);ba(b|0);B()}ea(0)|0;yc();B()}function MNa(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;f=bc-16|0;bc=f;d=J[a+8>>2];gc[J[J[d>>2]+20>>2]](d);a:{b:{d=J[a+8>>2];if((gc[J[J[d>>2]+32>>2]](d)|0)==255)break b;if(!KA(a,f+12|0,f+8|0,f+4|0))break a;while(1){c:{d:{e:{f:{g:{h:{d=J[f+12>>2];switch(d- -1785737827|0){case 5:break c;case 1:case 2:case 3:case 4:break f;case 0:break g;default:break h}}if((d|0)!=1668246642){if((d|0)!=1768449138)break f;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>> -2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;l=1;J[b>>2]=e+1;break c}d=J[a+8>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break c; -d=J[a+8>>2];j=gc[J[J[d>>2]+28>>2]](d)|0;if((j|0)==-1)break c;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;if((e|0)==1){d=J[a+8>>2];k=gc[J[J[d>>2]+28>>2]](d)|0;if((k|0)==-1)break c;d=J[a+8>>2];g=gc[J[J[d>>2]+28>>2]](d)|0;if((g|0)==-1)break c;d=J[a+8>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break c;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break c;e=d|(g<<16|k<<24|e<<8);if(e>>>0>21)break e;d=1<(h|0))){d=h;break d}J[c>>2]=g;break d}e=J[f+4>>2];if(e>>>0<4)break c;d=J[a+8>>2];gc[J[J[d>>2]+48>>2]](d,e-3|0)|0;break c}if(!l)break b;if(i)break a;break b}d=J[a+8>>2];gc[J[J[d>>2]+48>>2]](d,J[f+4>>2])|0;break c}d=h;e=i}i=J[f+4>>2];if(i>>>0>=8){h=J[a+8>>2];gc[J[J[h>>2]+48>>2]](h,i-7|0)|0}h=d;i=e}if(KA(a,f+12|0,f+8|0,f+4|0))continue;break}break a}g=bc-16|0;bc=g;j:{k:{while(1){d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)!=255){if((d|0)!=-1)continue;break j}while(1){d= -J[a+8>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==255)continue;break}l:switch(e+1|0){case 0:break j;case 1:continue;default:break l}if((e&-16)==48)continue;i=0;if(!((e|0)==79|e-146>>>0<2|(e|0)==217)){d=J[a+8>>2];h=gc[J[J[d>>2]+28>>2]](d)|0;if((h|0)==-1)break j;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break j;i=d|h<<8}m:{if((e|0)==81){d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j; -d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+ -8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2]; -if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;if(!Xn(a,g+12|0))break j;if(!Xn(a,g+12|0))break j;d=J[a+8>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break j;d=J[a+8>>2];h=gc[J[J[d>>2]+28>>2]](d)|0;if((h|0)==-1)break j;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break j;J[b>> -2]=(d&127)+1;n:{b=h|e<<8;switch(b-1|0){case 0:break k;case 2:break m;case 3:break n;default:break j}}b=3;break k}if(i>>>0<3)continue;d=J[a+8>>2];gc[J[J[d>>2]+48>>2]](d,i-2|0)|0;continue}break}b=2}J[c>>2]=b}bc=g+16|0}a=J[a+8>>2];gc[J[J[a>>2]+24>>2]](a);bc=f+16|0}function NB(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,r=0,s=0;a:{if(!a|!c)break a;if(!b)return le(a,c,-1);k=Qc(c);l=Qc(b);r=k+l|0;d=J[a+24>>2];i=J[a+8>>2];b:{if((i|0)==128){m=p0(b,l,c,k,d);break b}c:{if((l|0)<=0)break c; -if(l>>>0>=4){f=l&-4;while(1){d=P(K[b+e|0]+d|0,1025);d=P(K[(e|1)+b|0]+(d>>>6^d)|0,1025);d=P(K[(e|2)+b|0]+(d>>>6^d)|0,1025);d=P(K[(e|3)+b|0]+(d>>>6^d)|0,1025);d=d>>>6^d;e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=l&3;if(!f)break c;while(1){d=P(K[b+e|0]+d|0,1025);d=d>>>6^d;e=e+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}e=P(d,1025)+59450|0;d=e>>>6^e;d:{if((k|0)<=0)break d;f=k&3;g=0;e:{if(k>>>0<4){e=0;break e}h=k&-4;e=0;j=0;while(1){d=P(K[c+e|0]+d|0,1025);d=P(K[(e|1)+c|0]+(d>>>6^d)|0,1025);d=P(K[(e| -2)+c|0]+(d>>>6^d)|0,1025);d=P(K[(e|3)+c|0]+(d>>>6^d)|0,1025);d=d>>>6^d;e=e+4|0;j=j+4|0;if((h|0)!=(j|0))continue;break}}if(!f)break d;while(1){d=P(K[c+e|0]+d|0,1025);d=d>>>6^d;e=e+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}e=P(d,9);m=P(e>>>11^e,32769)}n=r+1|0;f:{s=(m>>>0)%(i>>>0)|0;j=J[a+4>>2]+P(s,20)|0;if(!J[j+12>>2]){j=0;break f}d=J[j>>2];if(d)while(1){e=j;j=d;g:{if(J[e+16>>2]!=(m|0)|J[e+8>>2]!=(n|0))break g;h=J[e+4>>2];if(!h)break g;d=K[b|0];f=b;e=h;while(1){g=e;d=d&255;if((d|0)!=K[e|0])break g; -e=e+1|0;if(d){f=f+1|0;d=K[f|0];if(d)continue}break}if(K[e|0]!=58)break g;e=g+2|0;d=c;while(1){f=K[d|0];if((f|0)!=K[e|0])break g;e=e+1|0;d=d+1|0;if(f)continue;break}break a}p=p+1|0;d=J[j>>2];if(d)continue;break}if(J[j+16>>2]!=(m|0)|J[j+8>>2]!=(n|0))break f;h=J[j+4>>2];if(!h)break f;d=K[b|0];f=b;e=h;while(1){g=e;d=d&255;if((d|0)!=K[e|0])break f;e=e+1|0;if(d){f=f+1|0;d=K[f|0];if(d)continue}break}if(K[e|0]!=58)break f;e=g+2|0;d=c;while(1){f=K[d|0];if((f|0)!=K[e|0])break f;e=e+1|0;d=d+1|0;if(f)continue; -break}break a}o=J[a+20>>2];h:{if(!o)break h;e=128;h=J[o+8>>2];i:{j:{k:{l:{if((i|0)==128){i=m;if((h|0)==128)break i;d=J[o+24>>2];if((l|0)<=0)break j;i=l&3;g=0;if(l>>>0>=4)break l;e=0;break k}i=m;e=h;if((e|0)!=128)break i;e=128;i=p0(b,l,c,k,J[o+24>>2]);break i}q=l&-4;e=0;f=0;while(1){d=P(K[b+e|0]+d|0,1025);d=P(K[(e|1)+b|0]+(d>>>6^d)|0,1025);d=P(K[(e|2)+b|0]+(d>>>6^d)|0,1025);d=P(K[(e|3)+b|0]+(d>>>6^d)|0,1025);d=d>>>6^d;e=e+4|0;f=f+4|0;if((q|0)!=(f|0))continue;break}}if(!i)break j;while(1){d=P(K[b+e| -0]+d|0,1025);d=d>>>6^d;e=e+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}e=P(d,1025)+59450|0;d=e>>>6^e;m:{if((k|0)<=0)break m;i=k&3;g=0;n:{if(k>>>0<4){e=0;break n}q=k&-4;e=0;f=0;while(1){d=P(K[c+e|0]+d|0,1025);d=P(K[(e|1)+c|0]+(d>>>6^d)|0,1025);d=P(K[(e|2)+c|0]+(d>>>6^d)|0,1025);d=P(K[(e|3)+c|0]+(d>>>6^d)|0,1025);d=d>>>6^d;e=e+4|0;f=f+4|0;if((q|0)!=(f|0))continue;break}}if(!i)break m;while(1){d=P(K[c+e|0]+d|0,1025);d=d>>>6^d;e=e+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}e=P(d,9);i=P(e>>>11^e,32769); -e=h}g=J[o+4>>2]+P((i>>>0)%(e>>>0)|0,20)|0;if(!J[g+12>>2])break h;d=J[g>>2];if(d)while(1){e=g;g=d;o:{if(J[e+16>>2]!=(i|0)|J[e+8>>2]!=(n|0))break o;h=J[e+4>>2];if(!h)break o;d=K[b|0];f=b;e=h;while(1){o=e;d=d&255;if((d|0)!=K[e|0])break o;e=e+1|0;if(d){f=f+1|0;d=K[f|0];if(d)continue}break}if(K[e|0]!=58)break o;e=o+2|0;d=c;while(1){f=K[d|0];if((f|0)!=K[e|0])break o;e=e+1|0;d=d+1|0;if(f)continue;break}break a}p=p+1|0;d=J[g>>2];if(d)continue;break}if(J[g+16>>2]!=(i|0)|J[g+8>>2]!=(n|0))break h;d=c;h=J[g+ -4>>2];e=h;p:{q:{f=b;r:{if(!f){g=1;if((e|0)==(d|0))break p;if(!d|!e)break q;while(1){f=K[d|0];if((f|0)==K[e|0]){e=e+1|0;d=d+1|0;if(f)continue;break r}break}break q}if(!d|!e)break q;i=K[f|0];while(1){g=e;if(K[e|0]!=(i|0))break q;e=e+1|0;if(i){f=f+1|0;i=K[f|0];if(i)continue}break}if(K[e|0]!=58)break q;e=g+2|0;while(1){f=K[d|0];if((f|0)!=K[e|0])break q;e=e+1|0;d=d+1|0;if(f)continue;break}}g=1;break p}g=0}if(g)break a}s:{t:{u:{e=J[a+16>>2];if(!e)break u;f=0;d=0;while(1){g=J[e+4>>2];if(J[e+8>>2]-g>>>0> -n>>>0)break s;h=J[e+12>>2];d=d>>>0>>0?h:d;f=f+h|0;e=J[e>>2];if(e)continue;break}e=J[a+28>>2];if(e){h=0;if(e>>>0>>0)break a}if(!d)break u;e=d<<2;break t}e=1E3}h=0;d=(r<<2)+4|0;d=e>>>0>d>>>0?e:d;e=gc[J[659447]](d+24|0)|0;if(!e)break a;J[e+16>>2]=0;J[e+12>>2]=d;g=e+20|0;J[e+4>>2]=g;J[e+8>>2]=d+g;J[e>>2]=J[a+16>>2];J[a+16>>2]=e}b=tc(g,b,l);d=J[e+4>>2]+l|0;J[e+4>>2]=d+1;H[d|0]=58;tc(J[e+4>>2],c,k);c=J[e+4>>2]+k|0;J[e+4>>2]=c+1;h=0;H[c|0]=0;J[e+16>>2]=J[e+16>>2]+1;if(!b)break a;v:{if(!j){c=J[a+4>> -2]+P(s,20)|0;J[c+8>>2]=n;J[c+4>>2]=b;J[c+16>>2]=m;J[c+12>>2]=1;J[c>>2]=0;break v}c=gc[J[659447]](20)|0;if(!c)break a;J[c+8>>2]=n;J[c+4>>2]=b;J[c+16>>2]=m;J[c+12>>2]=1;J[c>>2]=0;J[j>>2]=c}J[a+12>>2]=J[a+12>>2]+1;w:{if(p>>>0<4)break w;c=J[a+8>>2];if(c>>>0>2730)break w;q0(a,P(c,6))}h=b}return h}function eXa(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,u=0,v=0;f=bc-496|0;bc=f;a:{b:switch(J[c+4>>2]-1|0){case 0:k=O[c+248>>3];h=O[c+232>>3];e=O[c+208>>3]; -g=O[c+200>>3];n=O[c+216>>3];j=O[c+184>>3];i=O[c+192>>3];r=O[c+256>>3]+(j*O[c+224>>3]+i*O[c+240>>3]);O[b+608>>3]=r;k=k+(j*n+i*h);O[b+600>>3]=k;d=J[b+596>>2];O[d+16>>3]=r;O[d+8>>3]=k;J[d>>2]=1;k=O[c+248>>3];h=O[c+232>>3];n=O[c+216>>3];r=O[c+256>>3]+(g*O[c+224>>3]+i*O[c+240>>3]);O[b+608>>3]=r;i=k+(g*n+i*h);O[b+600>>3]=i;ie(J[b+596>>2],i,r);i=O[c+248>>3];k=O[c+232>>3];h=O[c+216>>3];n=O[c+256>>3]+(g*O[c+224>>3]+e*O[c+240>>3]);O[b+608>>3]=n;g=i+(g*h+e*k);O[b+600>>3]=g;ie(J[b+596>>2],g,n);g=O[c+248>>3]; -i=O[c+232>>3];k=O[c+216>>3];h=O[c+256>>3]+(j*O[c+224>>3]+e*O[c+240>>3]);O[b+608>>3]=h;e=g+(j*k+e*i);O[b+600>>3]=e;ie(J[b+596>>2],e,h);_f(J[b+596>>2]);d=J[b+596>>2];d=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];l=J[d+12>>2]<<3;O[b+600>>3]=O[(l+J[d>>2]|0)-8>>3];O[b+608>>3]=O[(l+J[d+4>>2]|0)-8>>3];gc[J[J[a>>2]+408>>2]](a,b,c)|0;d=1;break a;case 1:Nv(b,f+488|0,f+472|0,f+480|0,f+464|0);e=O[f+488>>3];g=O[f+472>>3];O[b+608>>3]=g;O[b+600>>3]=e;d=J[b+596>>2];O[d+16>>3]=g;O[d+8>>3]=e;J[d>>2]=1;e=O[f+488>>3];g=O[f+ -464>>3];O[b+608>>3]=g;O[b+600>>3]=e;ie(J[b+596>>2],e,g);e=O[f+480>>3];g=O[f+464>>3];O[b+608>>3]=g;O[b+600>>3]=e;ie(J[b+596>>2],e,g);e=O[f+480>>3];g=O[f+472>>3];O[b+608>>3]=g;O[b+600>>3]=e;ie(J[b+596>>2],e,g);_f(J[b+596>>2]);d=J[b+596>>2];d=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];l=J[d+12>>2]<<3;O[b+600>>3]=O[(l+J[d>>2]|0)-8>>3];O[b+608>>3]=O[(l+J[d+4>>2]|0)-8>>3];gc[J[J[a>>2]+412>>2]](a,b,c)|0;d=1;break a;case 2:e=O[c+208>>3];g=O[c+184>>3];j=O[c+224>>3];i=O[c+200>>3];n=i>3]; -i=O[c+192>>3];k=h+(i>j?j:i);O[b+608>>3]=k;h=h+(e>3]=h;d=J[b+596>>2];O[d+16>>3]=k;O[d+8>>3]=h;J[d>>2]=1;n=n+n;j=n+(i>3]=j;O[b+600>>3]=h;ie(J[b+596>>2],h,j);O[b+608>>3]=j;e=n+(e>g?e:g);O[b+600>>3]=e;ie(J[b+596>>2],e,j);O[b+608>>3]=k;O[b+600>>3]=e;ie(J[b+596>>2],e,k);_f(J[b+596>>2]);d=J[b+596>>2];d=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];l=J[d+12>>2]<<3;O[b+600>>3]=O[(l+J[d>>2]|0)-8>>3];O[b+608>>3]=O[(l+J[d+4>>2]|0)-8>>3];gc[J[J[a>>2]+416>>2]](a,b,c)|0;d=1;break a;case 3:case 4:d= -1;s=J[c+192>>2];if((s|0)<=0)break a;c:{while(1){d=J[c+324>>2];d=d>>>0>536870911?-1:d<<3;m=rc(d);p=rc(d);q=rc(d);eZ(c,l,f+456|0,f+432|0,m,f+448|0,f+424|0,p,f+440|0,f+416|0,q);t=f+288|0;kt(c,m,t);u=f+160|0;kt(c,p,u);v=f+32|0;kt(c,q,v);Rf(b);e=O[f+456>>3];g=O[f+432>>3];O[b+608>>3]=g;O[b+600>>3]=e;d=J[b+596>>2];O[d+16>>3]=g;O[d+8>>3]=e;J[d>>2]=1;e=O[f+448>>3];g=O[f+424>>3];O[b+608>>3]=g;O[b+600>>3]=e;ie(J[b+596>>2],e,g);e=O[f+440>>3];g=O[f+416>>3];O[b+608>>3]=g;O[b+600>>3]=e;ie(J[b+596>>2],e,g);_f(J[b+ -596>>2]);d=J[b+596>>2];d=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];o=J[d+12>>2]<<3;O[b+600>>3]=O[(o+J[d>>2]|0)-8>>3];O[b+608>>3]=O[(o+J[d+4>>2]|0)-8>>3];d=rc(12);J[f+20>>2]=d;o=d+12|0;J[f+28>>2]=o;J[d+8>>2]=v;J[d+4>>2]=u;J[d>>2]=t;J[f+24>>2]=o;J[695492]=0;e=O[f+456>>3];g=O[f+432>>3];j=O[f+448>>3];i=O[f+424>>3];k=O[f+440>>3];h=O[f+416>>3];d=$(4,24)|0;o=J[695492];J[695492]=0;if((o|0)==1){d=Z()|0;break c}J[f+8>>2]=d;o=d+24|0;J[f+16>>2]=o;N[d+20>>2]=h;N[d+16>>2]=k;N[d+12>>2]=i;N[d+8>>2]=j;N[d+4>>2]=g;N[d>> -2]=e;J[f+12>>2]=o;d=J[J[a>>2]+420>>2];J[695492]=0;ha(d|0,a|0,b|0,f+20|0,f+8|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[f+8>>2];if(d){J[f+12>>2]=d;qc(d)}d=J[f+20>>2];if(d){J[f+24>>2]=d;qc(d)}qc(m);qc(p);qc(q);d=1;l=l+1|0;if((s|0)!=(l|0))continue;break a}break}d=Z()|0;a=J[f+8>>2];if(!a)break c;J[f+12>>2]=a;qc(a)}a=J[f+20>>2];if(a){J[f+24>>2]=a;qc(a)}ba(d|0);B();case 5:case 6:break b;default:break a}d=1;q=J[c+184>>2];if((q|0)<=0)break a;while(1){d=J[c+180>>2];Rf(b);d=P(l,1280)+d|0;e=O[d>>3];g=O[d+ -128>>3];O[b+608>>3]=g;O[b+600>>3]=e;m=J[b+596>>2];O[m+16>>3]=g;O[m+8>>3]=e;J[m>>2]=1;g=O[d+144>>3];j=O[d+16>>3];i=O[d+136>>3];k=O[d+8>>3];e=O[d+24>>3];h=O[d+152>>3];O[b+608>>3]=h;O[b+600>>3]=e;_l(J[b+596>>2],k,i,j,g,e,h);g=O[d+216>>3];j=O[d+88>>3];i=O[d+184>>3];k=O[d+56>>3];e=O[d+120>>3];h=O[d+248>>3];O[b+608>>3]=h;O[b+600>>3]=e;_l(J[b+596>>2],k,i,j,g,e,h);g=O[d+232>>3];j=O[d+104>>3];i=O[d+240>>3];k=O[d+112>>3];e=O[d+96>>3];h=O[d+224>>3];O[b+608>>3]=h;O[b+600>>3]=e;_l(J[b+596>>2],k,i,j,g,e,h);g=O[d+ -160>>3];j=O[d+32>>3];i=O[d+192>>3];k=O[d+64>>3];e=O[d>>3];h=O[d+128>>3];O[b+608>>3]=h;O[b+600>>3]=e;_l(J[b+596>>2],k,i,j,g,e,h);_f(J[b+596>>2]);m=J[b+596>>2];m=J[(J[m+24>>2]+(J[m+28>>2]<<2)|0)-4>>2];p=J[m+12>>2]<<3;O[b+600>>3]=O[(p+J[m>>2]|0)-8>>3];O[b+608>>3]=O[(p+J[m+4>>2]|0)-8>>3];gc[J[J[a>>2]+424>>2]](a,b,d,c)|0;d=1;l=l+1|0;if((q|0)!=(l|0))continue;break}}bc=f+496|0;return d|0}function Tka(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-160|0;bc=d;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0; -J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;J[695492]=0;e=$(4,32)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if((b|0)!=1){J[d+72>>2]=e;J[d+76>>2]=6;J[d+80>>2]=-2147483640;b=J[607951];J[e+16>>2]=J[607950];J[e+20>>2]=b;b=J[607949];J[e+8>>2]=J[607948];J[e+12>>2]=b;b=J[607947];J[e>>2]=J[607946];J[e+4>>2]=b;J[e+24>>2]=0;J[695492]=0;e=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break s;J[d+16>>2]=e;J[d+20>>2]=6;J[d+24>>2]=-2147483640;b=J[607951];J[e+16>>2]=J[607950];J[e+ -20>>2]=b;b=J[607949];J[e+8>>2]=J[607948];J[e+12>>2]=b;b=J[607947];J[e>>2]=J[607946];J[e+4>>2]=b;J[e+24>>2]=0;J[695492]=0;e=ga(6441,d+116|0,d+72|0,d+16|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+83|0]<0)qc(J[d+72>>2]);J[695492]=0;b=$(4,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break p;J[d+16>>2]=b;J[d+20>>2]=8;J[d+24>>2]=-2147483636;c=J[607960];J[b+24>>2]=J[607959];J[b+28>>2]=c;c=J[607958];J[b+16>>2]=J[607957];J[b+20>>2]=c;c=J[607956];J[b+8>>2]=J[607955]; -J[b+12>>2]=c;c=J[607954];J[b>>2]=J[607953];J[b+4>>2]=c;J[b+32>>2]=0;J[695492]=0;b=$(4,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break o;J[d+60>>2]=b;J[d+64>>2]=9;J[d+68>>2]=-2147483636;J[b+32>>2]=J[607970];c=J[607969];J[b+24>>2]=J[607968];J[b+28>>2]=c;c=J[607967];J[b+16>>2]=J[607966];J[b+20>>2]=c;c=J[607965];J[b+8>>2]=J[607964];J[b+12>>2]=c;c=J[607963];J[b>>2]=J[607962];J[b+4>>2]=c;J[b+36>>2]=0;J[695492]=0;g=ga(6441,d+72|0,d+16|0,d+60|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;if(H[d+71|0]< -0)qc(J[d+60>>2]);if(H[d+27|0]<0)qc(J[d+16>>2]);J[695492]=0;b=$(4,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;J[d+60>>2]=b;J[d+64>>2]=8;J[d+68>>2]=-2147483636;c=J[607979];J[b+24>>2]=J[607978];J[b+28>>2]=c;c=J[607977];J[b+16>>2]=J[607976];J[b+20>>2]=c;c=J[607975];J[b+8>>2]=J[607974];J[b+12>>2]=c;c=J[607973];J[b>>2]=J[607972];J[b+4>>2]=c;J[b+32>>2]=0;J[695492]=0;b=$(4,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;J[d+4>>2]=b;J[d+8>>2]=9;J[d+12>>2]=-2147483636;J[b+32>>2]=J[607989];c=J[607988]; -J[b+24>>2]=J[607987];J[b+28>>2]=c;c=J[607986];J[b+16>>2]=J[607985];J[b+20>>2]=c;c=J[607984];J[b+8>>2]=J[607983];J[b+12>>2]=c;c=J[607982];J[b>>2]=J[607981];J[b+4>>2]=c;J[b+36>>2]=0;J[695492]=0;h=ga(6441,d+16|0,d+60|0,d+4|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;if(H[d+15|0]<0)qc(J[d+4>>2]);if(H[d+71|0]<0)qc(J[d+60>>2]);H[e+36|0]=1;c=g+24|0;b=H[e+11|0];if(H[g+35|0]>=0){if((b|0)<0)break h;f=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]=f;J[c+8>>2]=J[e+8>>2];break f}f=J[e>>2];i=J[e+4>>2];J[695492]=0;j= -c;c=(b|0)<0;ga(1629,j|0,(c?f:e)|0,(c?i:b&255)|0)|0;break g}b=Z()|0;break a}b=Z()|0;break q}b=Z()|0;if(H[d+27|0]>=0)break q;qc(J[d+16>>2])}if(H[d+83|0]>=0)break a;qc(J[d+72>>2]);break a}b=Z()|0;break b}b=Z()|0;break m}b=Z()|0;if(H[d+71|0]>=0)break m;qc(J[d+60>>2])}if(H[d+27|0]>=0)break b;qc(J[d+16>>2]);break b}b=Z()|0;break c}b=Z()|0;break i}b=Z()|0;if(H[d+15|0]>=0)break i;qc(J[d+4>>2])}if(H[d+71|0]>=0)break c;qc(J[d+60>>2]);break c}b=J[e+4>>2];f=J[e>>2];J[695492]=0;ga(1630,c|0,f|0,b|0)|0}b=J[695492]; -J[695492]=0;if((b|0)==1)break e;b=K[e+11|0]}J[g+40>>2]=9;c=h+24|0;t:{if(H[h+35|0]>=0){if(b<<24>>24>=0){b=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]=b;J[c+8>>2]=J[e+8>>2];break t}b=J[e+4>>2];f=J[e>>2];J[695492]=0;ga(1630,c|0,f|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break t;break e}f=J[e>>2];i=J[e+4>>2];J[695492]=0;j=c;c=b<<24>>24<0;ga(1629,j|0,(c?f:e)|0,(c?i:b&255)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e}J[h+40>>2]=9;J[695492]=0;c=$(4,52)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[c>> -2]=0;J[695492]=0;b=a+8|0;ca(6442,b|0,c+8|0,e|0);f=J[695492];J[695492]=0;if((f|0)==1){b=Z()|0;qc(c);break d}J[c+4>>2]=a;f=J[a>>2];J[c>>2]=f;J[f+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;J[695492]=0;c=$(4,52)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;J[c>>2]=0;J[695492]=0;ca(6442,b|0,c+8|0,g|0);f=J[695492];J[695492]=0;if((f|0)==1){b=Z()|0;qc(c);break d}J[c+4>>2]=a;f=J[a>>2];J[c>>2]=f;J[f+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;J[695492]=0;c=$(4,52)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;J[c>> -2]=0;J[695492]=0;ca(6442,b|0,c+8|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;qc(c);break d}J[c+4>>2]=a;b=J[a>>2];J[c>>2]=b;J[b+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;Fn(h);Fn(g);Fn(e);bc=d+160|0;return a|0}b=Z()|0}Fn(h)}Fn(g)}Fn(e)}d=a;u:{if(!J[d+8>>2])break u;a=J[d+4>>2];e=J[a>>2];c=J[J[d>>2]+4>>2];J[e+4>>2]=c;J[c>>2]=e;J[d+8>>2]=0;if((a|0)==(d|0))break u;while(1){e=J[a+4>>2];Fn(a+8|0);qc(a);a=e;if((d|0)!=(e|0))continue;break}}ba(b|0);B()}function eEa(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;g=bc-112|0;bc=g;a:{b:{c:{d:{e:{f:{g:{if(Gh(a))break g;m=g+92|0;J[m>>2]=0;J[m+4>>2]=0;H[m+8|0]=0;J[695492]=0;l=g+80|0;J[l>>2]=0;J[l+4>>2]=0;H[l+8|0]=0;e=J[695492];J[695492]=0;if((e|0)==1)break d;J[695492]=0;q=Qg(a);e=J[695492];J[695492]=0;if((e|0)==1)break e;while(1){J[695492]=0;e=aa(4815,a|0,q|0)|0;f=J[695492];J[695492]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{if((f|0)==1)break r;if(!e)break q;J[695492]=0;e=g+56|0;da(4802,e|0,a|0);f=J[695492];J[695492]= -0;if((f|0)==1)break i;J[695492]=0;e=aa(4825,g+68|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break k;J[695492]=0;Xf(m,e);f=J[695492];J[695492]=0;if((f|0)==1)break l;Lc(e);if(H[g+67|0]<0)qc(J[g+56>>2]);J[695492]=0;e=Fd(m,2373092);f=J[695492];J[695492]=0;if((f|0)==1)break r;if(!e)continue;J[695492]=0;e=Yj(a);f=J[695492];J[695492]=0;if((f|0)==1)break c;if(!e){j=0;n=0;break h}J[695492]=0;e=g+56|0;da(4810,e|0,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break m;J[695492]=0;e=aa(4825,g+44|0,e|0)|0;f=J[695492]; -J[695492]=0;if((f|0)==1)break o;J[695492]=0;Xf(l,e);f=J[695492];J[695492]=0;if((f|0)==1)break p;Lc(e);if(H[g+67|0]<0)qc(J[g+56>>2]);j=0;n=0;s:{t:{u:{while(1){J[695492]=0;e=!J[l+4>>2];f=J[695492];J[695492]=0;v:{w:{if((f|0)==1)break w;if(!e){J[695492]=0;e=Fd(l,2373144);f=J[695492];J[695492]=0;if((f|0)==1)break w;x:{if(e){J[695492]=0;e=g+56|0;da(4811,e|0,a|0);f=J[695492];J[695492]=0;y:{z:{A:{if((f|0)!=1){J[695492]=0;e=aa(4825,g+32|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break A;J[695492]=0;ca(4946, -e|0,g+108|0,g+104|0);f=J[695492];J[695492]=0;if((f|0)==1)break z;Lc(e);if(H[g+67|0]<0)qc(J[g+56>>2]);e=J[g+108>>2]&16777215;o=O[d>>3]*+J[g+104>>2];B:{if(R(o)<2147483648){f=~~o;break B}f=-2147483648}j=e|f<<24;break x}a=Z()|0;break b}a=Z()|0;break y}a=Z()|0;Lc(e)}if(H[g+67|0]>=0)break b;qc(J[g+56>>2]);break b}J[695492]=0;e=Fd(l,2373168);f=J[695492];J[695492]=0;if((f|0)==1)break w;if(!e)break x;J[695492]=0;e=g+56|0;da(4811,e|0,a|0);f=J[695492];J[695492]=0;C:{D:{E:{if((f|0)!=1){J[695492]=0;h=aa(4825, -g+20|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break E;J[695492]=0;J[g+108>>2]=0;e=J[h>>2];F:{if(K[h+8|0]){f=0;if(!e)break F;e=J[e>>2]}f=e}e=J[695492];J[695492]=0;if((e|0)==1)break D;J[695492]=0;e=J[h+4>>2];i=J[695492];J[695492]=0;if((i|0)==1)break D;J[g+104>>2]=e;n=Te(f,g+108|0,g+104|0);Lc(h);if(H[g+67|0]>=0)break x;qc(J[g+56>>2]);break x}a=Z()|0;break b}a=Z()|0;break C}a=Z()|0;Lc(h)}if(H[g+67|0]>=0)break b;qc(J[g+56>>2]);break b}J[695492]=0;e=vi(a);f=J[695492];J[695492]=0;if((f|0)==1)break w; -if(e)break v}J[695492]=0;Ri(a);e=J[695492];J[695492]=0;if((e|0)!=1)break h;break c}a=Z()|0;break b}J[695492]=0;e=g+56|0;da(4810,e|0,a|0);f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;e=aa(4825,g+8|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break u;J[695492]=0;Xf(l,e);f=J[695492];J[695492]=0;if((f|0)==1)break t;Lc(e);if(H[g+67|0]>=0)continue;qc(J[g+56>>2]);continue}break}a=Z()|0;break b}a=Z()|0;break s}a=Z()|0;Lc(e)}if(H[g+67|0]>=0)break b;qc(J[g+56>>2]);break b}a=Z()|0;break b}Lc(l);Lc(m);break g}a= -Z()|0;Lc(e);break n}a=Z()|0}if(H[g+67|0]>=0)break b;qc(J[g+56>>2]);break b}a=Z()|0;break b}a=Z()|0;Lc(e);break j}a=Z()|0}if(H[g+67|0]>=0)break b;qc(J[g+56>>2]);break b}a=Z()|0;break b}G:{H:{e=J[b+4>>2];I:{J:{K:{if((e|0)!=J[b+8>>2]){J[e>>2]=j;J[b+4>>2]=e+4;break K}h=J[b>>2];f=e-h|0;p=f>>2;i=p+1|0;if(i>>>0>=1073741824){J[695492]=0;_(4975,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break I;break f}k=f>>1;i=f>>>0>=2147483644?1073741823:i>>>0>>0?k:i;L:{if(!i){k=0;break L}if(i>>>0>1073741823)break J;J[695492]= -0;k=$(4,i<<2)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c}f=(p<<2)+k|0;J[f>>2]=j;j=f+4|0;if((e|0)!=(h|0))while(1){f=f-4|0;e=e-4|0;J[f>>2]=J[e>>2];if((e|0)!=(h|0))continue;break}J[b+8>>2]=(i<<2)+k;J[b+4>>2]=j;J[b>>2]=f;if(!h)break K;qc(h)}e=J[c+4>>2];if((e|0)!=J[c+8>>2]){O[e>>3]=n;J[c+4>>2]=e+8;continue}h=J[c>>2];f=e-h|0;k=f>>3;j=k+1|0;if(j>>>0>=536870912){J[695492]=0;_(2399,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f;break I}i=f>>2;j=f>>>0>=2147483640?536870911:i>>>0>j>>>0?i:j;if(!j){i=0;break G}if(j>>> -0<536870912)break H}J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break f}a=Z()|0;break b}J[695492]=0;i=$(4,j<<3)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c}f=(k<<3)+i|0;O[f>>3]=n;k=f+8|0;if((e|0)!=(h|0))while(1){f=f-8|0;e=e-8|0;O[f>>3]=O[e>>3];if((e|0)!=(h|0))continue;break}J[c+8>>2]=(j<<3)+i;J[c+4>>2]=k;J[c>>2]=f;if(!h)continue;qc(h);continue}}bc=g+112|0;return}B()}a=Z()|0;break b}a=Z()|0;break a}a=Z()|0}Lc(l)}Lc(m);ba(a|0);B()}function Uh(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=bc-32| -0;bc=e;a:{if(J[a+292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Hd(a)}b:{c:{f=J[a+36>>2];b=J[f+16>>2];c=K[b|0];if(!(((c&223)-65&255)>>>0<26|(c|0)==95)&(c|0)!=58)break c;c=b;while(1){d=K[c+1|0];g=c+1|0;c=g;if((d-48&255)>>>0<10|((d&223)-65&255)>>>0<26)continue;h=d-45|0;if((d|0)==95|(1<>>0<=13:0))continue;break}if(!d|d<<24>>24<0)break c;d=c-b|0;if(!(K[a+362|0]&8|(d|0)<50001)){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break b}J[a+84>>2]=110;J[e+4>>2]=14117;J[e>>2]=6556; -c=0;Cc(0,0,0,a,0,1,110,3,14117,0,0,0,32761,e);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}c=le(J[a+296>>2],b,d);b=J[a+36>>2];J[b+16>>2]=g;J[a+200>>2]=d+J[a+200>>2];J[b+32>>2]=d+J[b+32>>2];if(c)break b;c=0;ke(a,0);break b}if(!(J[a+292>>2]|(J[f+20>>2]-b|0)>249))Hd(a);if(J[a+172>>2]==-1){c=0;break b}b=Ff(a,e+28|0);d:{e:{f:{if(!(K[a+362|0]&2)){c=0;g:{h:switch(b-47|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break g;case 0:case 15:break b; -default:break h}if((b|0)!=32)break g;break b}i:{if((b|0)==58|(b&-33)-65>>>0<26|((b|0)==95|b-192>>>0<23))break i;if(b-216>>>0<31|b-248>>>0<520|(b-880>>>0<14|b-895>>>0<7297))break i;if((b&-2)==8204|b-8304>>>0<288|(b-11264>>>0<1008|b-12289>>>0<43007))break i;if(b-63744>>>0<1232|b-65008>>>0<526|b-65536>>>0<=917503)break i;break b}d=J[e+28>>2];c=J[a+36>>2];b=J[c+16>>2];j:{if(K[b|0]==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break j}J[c+32>>2]=J[c+32>>2]+1}b=b+d|0;J[c+16>>2]=b;c=0;if(K[b|0]!=37)break f; -b=0;break e}c=0;k:{l:switch(b-47|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break k;case 0:case 15:break b;default:break l}if((b|0)!=32)break k;break b}m:{if((b|0)<=255){if((b&-33)-65>>>0<26|b-192>>>0<23|(b-216>>>0<31|(b|0)>247))break m;if((b|0)==95|(b|0)==58)break m;break b}if(km(b,769396)|b-12321>>>0<9|((b|0)==12295|b-19968>>>0<20902))break m;break b}d=J[e+28>>2];c=J[a+36>>2];b=J[c+16>>2];n:{if(K[b|0]==10){J[c+32>>2]=1;J[c+28>>2]=J[c+ -28>>2]+1;break n}J[c+32>>2]=J[c+32>>2]+1}g=c;c=b+d|0;J[g+16>>2]=c;if(K[c|0]==37)Od(a);while(1){c=0;b=Ff(a,e+28|0);while(1){o:switch(b-47|0){default:if((b|0)==32)break d;break;case 0:case 15:break d;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break o}p:{q:{if((b|0)<=255){if(b-192>>>0<23|(b&-33)-65>>>0<26|(b-48>>>0<10|(b|0)>247))break p;if(b-216>>>0>=31)break q;break p}if(km(b,769396)|b-12321>>>0<9|((b|0)==12295|b-19968>>>0<20902))break p;if(km(b, -769880))break p}f=b-45|0;if((b|0)==95|(1<>>0<=13:0))break p;r:{if((b|0)>=256){if(km(b,769804))break p;b=km(b,769944);break r}b=(b|0)==183}if(!b)break d}s:{if((c|0)<101){c=c+1|0;break s}t:{if(J[a+292>>2])break t;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break t;Hd(a)}c=0;if(J[a+172>>2]==-1)break b}b=J[a+36>>2];f=J[b+16>>2];u:{if(K[f|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break u}J[b+32>>2]=J[b+32>>2]+1}g=b;b=J[e+28>>2];f=b+f|0;J[g+16>>2]=f;if(K[f|0]==37)Od(a);d=b+d|0;b=Ff(a,e+28| -0);if(b)continue;break}v:{if(J[a+292>>2])break v;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break v;Hd(a)}c=0;if(J[a+172>>2]!=-1)continue;break}break b}b=1}while(1){if(!b){Od(a);b=1;continue}while(1){w:{x:{b=Ff(a,e+28|0);switch(b-47|0){case 0:case 15:break d;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break w;default:break x}}if((b|0)==32)break d}y:{if(b-48>>>0<11|(b&-33)-65>>>0<26|((b|0)==95|b-45>>>0<2))break y;if((b|0)==183|b-65536>>> -0<917504|(b-65008>>>0<526|b-63744>>>0<1232))break y;if(b-12289>>>0<43007|b-11264>>>0<1008|(b-8304>>>0<288|b-8255>>>0<2))break y;if((b&-2)==8204|b-895>>>0<7297|(b-248>>>0<646|b-192>>>0<23))break y;if(b-216>>>0>30)break d}z:{if((c|0)<101){c=c+1|0;break z}A:{if(J[a+292>>2])break A;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break A;Hd(a)}c=0;if(J[a+172>>2]==-1)break b}b=J[a+36>>2];f=J[b+16>>2];B:{if(K[f|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break B}J[b+32>>2]=J[b+32>>2]+1}g=J[e+28>>2];d=g+d| -0;h=b;b=f+g|0;J[h+16>>2]=b;if(K[b|0]!=37)continue;break}b=0;continue}}if(!(K[a+362|0]&8|(d|0)<50001)){if(J[a+212>>2]){c=0;if(J[a+172>>2]==-1)break b}J[a+84>>2]=110;J[e+20>>2]=14117;J[e+16>>2]=6556;c=0;Cc(0,0,0,a,0,1,110,3,14117,0,0,0,32761,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}c=J[J[a+36>>2]+16>>2];if(!(K[c|0]!=10|K[c-1|0]!=13)){c=le(J[a+296>>2],c+(d^-1)|0,d);break b}c=le(J[a+296>>2],c-d|0,d)}bc=e+32|0;return c}function mza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0, -i=0;d=bc-112|0;bc=d;a:{b:{c:{d:{if(!K[b+89|0]){a=Kc(d+24|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;Fc(a);ba(b|0);B()}e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(K[b+63|0]){J[695492]=0;aa(5031,a|0,b+68|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break o;break c}J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[695492]=0;h=aa(5080,d+80|0,2401340)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;p:{if(J[b+ -56>>2]-3>>>0<=1){e=J[b+48>>2];J[695492]=0;da(5271,d- -64|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;q:{r:{s:{e=J[d+72>>2];if(e){g=d+32|0;while(1){c=J[e+8>>2];J[695492]=0;f=d+24|0;ca(5229,f|0,b|0,c+36|0);c=J[695492];J[695492]=0;if((c|0)==1)break s;J[695492]=0;c=aa(5268,h|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break r;J[c+52>>2]=0;J[d+48>>2]=2381060;J[d+24>>2]=2381028;c=J[d+52>>2];if(c){f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(!f)gc[J[J[c>>2]+4>>2]](c);J[d+52>>2]=0}J[d+40>>2]=2381060;c=J[d+44>> -2];if(c){f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(!f)gc[J[J[c>>2]+4>>2]](c);J[d+44>>2]=0}sc(g);e=J[e>>2];if(e)continue;break}}$c(d- -64|0);break p}b=Z()|0;break q}b=Z()|0;ud(d+24|0)}$c(d- -64|0);Bd(h);ba(b|0);B()}J[695492]=0;i=$(5026,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;if((i|0)<=0)break p;e=0;while(1){J[695492]=0;ia(5222,d+20|0,b|0,e|0,0);c=J[695492];J[695492]=0;t:{u:{v:{w:{x:{if((c|0)!=1){c=J[d+20>>2];J[d+48>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[695492]=0;J[d+24>>2]=0; -J[d+28>>2]=0;g=aa(5080,d+24|0,2401340)|0;f=J[695492];J[695492]=0;if((f|0)==1)break x;J[695492]=0;ca(5278,c|0,h|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break w;J[695492]=0;c=J[g+24>>2];f=d- -64|0;J[f+4>>2]=g;J[f>>2]=c;c=J[695492];J[695492]=0;if((c|0)==1)break w;c=J[d+64>>2];y:{if(!c)break y;while(1){if((g|0)!=J[d+68>>2]){J[695492]=0;da(5073,d- -64|0,g|0);c=J[695492];J[695492]=0;if((c|0)!=1)break d;break w}J[695492]=0;c=aa(5268,h|0,c+16|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break w;J[c+52>>2]= -0;c=J[d+64>>2];if(!c)break y;c=J[c>>2];J[d+64>>2]=c;if(c)continue;break}}Bd(g);c=J[d+20>>2];J[d+20>>2]=0;if(!c)break t;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;f=J[695492];J[695492]=0;if((f|0)!=1){if(g)break t;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break t}break b}c=ea(2411712)|0;f=cc;break u}c=ea(2411712)|0;f=cc;break v}c=ea(2411712)|0;f=cc;Bd(g)}vc(d+20|0)}if((sa(2411712)|0)!=(f|0))break g;c=na(c|0)|0;J[695492]=0;g=pa(5213)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]= -0;c=J[c+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break j;J[695492]=0;c=aa(4989,d+12|0,(c?c:2377794)|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j;f=J[J[g>>2]+20>>2];J[695492]=0;ga(f|0,g|0,b|0,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break k;sc(c);J[695492]=0;c=aa(4989,d+4|0,e+2395454|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;J[695492]=0;g=pa(5213)|0;f=J[695492];J[695492]=0;if((f|0)==1)break m;f=J[J[g>>2]+20>>2];J[695492]=0;ga(f|0,g|0,b|0,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break m; -sc(c);J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)==1)break a}e=e+1|0;if((i|0)!=(e|0))continue;break}}J[695492]=0;e=J[h+24>>2];c=d- -64|0;J[c+4>>2]=h;J[c>>2]=e;e=J[695492];J[695492]=0;if((e|0)==1)break e;e=J[d+64>>2];z:{if(!e)break z;g=b+68|0;while(1){if(J[d+68>>2]!=(h|0))break f;J[695492]=0;e=$(5074,e+16|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(e){f=J[d+64>>2];if(!f|J[d+68>>2]!=(h|0))break f;J[695492]=0;e=$(4,44)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[e>>2]=0;J[e+4>> -2]=0;J[e+40>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;c=e+8|0;J[c>>2]=0;J[c+4>>2]=0;J[695492]=0;aa(4991,c|0,f+16|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;of(g,e);e=J[695492];J[695492]=0;if((e|0)==1)break a}e=J[d+64>>2];if(!e)break z;e=J[e>>2];J[d+64>>2]=e;if(e)continue;break}}H[b+63|0]=1;J[695492]=0;aa(5031,a|0,b+68|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break n;Bd(h)}bc=d+112|0;return}c=Z()|0;break g}a=ea(0)|0;sc(c);break h}a=ea(0)| -0;break h}a=ea(0)|0;sc(c);break h}a=ea(0)|0;break h}a=ea(0)|0}na(a|0)|0;J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break d;c=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break b}Bd(h);ba(c|0);B()}J[695492]=0;da(5073,d- -64|0,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}B()}ba(Z()|0);B()}ea(0)|0;yc();B()}a=Z()|0;Bd(h);ba(a|0);B()}function HC(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;h=bc-32|0;bc=h;J[h>>2]=0;H[a+733|0]=0;q=J[a+100>>2];l=J[a+736>>2];a:{if(!l){e=$t(a,0);J[h>>2]=e;if(e)break a;l=J[a+736>>2]}b:{j=J[l+12>>2];i=J[j>>2];b=b>>>0>i>>>0?i:b;if(!b)break b;while(1){if(J[(f<<2)+c>>2]-65537>>>0>=4294836223){f=f+1|0;if((f|0)!=(b|0))continue;break b}break}e=6;break a}if(!(K[a+732|0]|J[l+72>>2])){f=J[a+104>>2];i=J[f+28>>2];e=gc[J[a+516>>2]](a,1735811442,f,h+24|0)|0;J[h+28>>2]=e;if(e)break a;m=J[f+8>>2];e=Me(f,327520,h+4|0);J[h+28>>2]=e;if(e)break a; -e=8;if(J[h+4>>2]!=65536)break a;g=L[h+8>>1];if((g|0)!=L[J[l+12>>2]>>1])break a;k=P(g,L[h+10>>1]);g=J[h+24>>2];if(k>>>0>g>>>1>>>0)break a;k=L[h+16>>1]+1<<(H[h+18|0]&1?2:1);if(k>>>0>g>>>0)break a;J[l+76>>2]=g;g=J[h+20>>2];e=Ue(f,k);J[h+28>>2]=e;if(e)break a;e=0;t=l,u=Sc(i,4,0,L[h+16>>1]+1|0,0,h+28|0),J[t+72>>2]=u;c:{d:{e:{if(J[h+28>>2])break e;n=g+m|0;k=m+J[h+24>>2]|0;f:{if(!(H[h+18|0]&1)){g=0;while(1){o=n+(mf(f)<<1)|0;e=e>>>0>o>>>0?e:o;J[J[l+72>>2]+(g<<2)>>2]=e>>>0>k>>>0?k:e;o=L[h+16>>1];p=o>>>0>g>>> -0;g=g+1|0;if(p)continue;break}break f}g=0;while(1){o=qh(f)+n|0;g=g>>>0>o>>>0?g:o;J[J[l+72>>2]+(e<<2)>>2]=g>>>0>k>>>0?k:g;o=L[h+16>>1];p=o>>>0>e>>>0;e=e+1|0;if(p)continue;break}}J[l+68>>2]=o;ne(f);if(!L[h+10>>1])break c;e=nd(f,m+J[h+12>>2]|0);J[h+28>>2]=e;if(e)break d;e=Ue(f,P(L[h+10>>1],L[h+8>>1])<<1);J[h+28>>2]=e;if(e)break d;e=0;t=l,u=Sc(i,4,0,P(L[h+10>>1],L[h+8>>1]),0,h+28|0),J[t+64>>2]=u;if(J[h+28>>2])break e;i=L[h+10>>1];if(i){m=0;k=L[h+8>>1];while(1){e=0;g:{if(!(k&65535)){k=0;break g}while(1){i= -mf(f);k=L[h+8>>1];J[(J[l+64>>2]+(P(m,k)<<2)|0)+(e<<2)>>2]=i<<16>>16<<2;e=e+1|0;if(k>>>0>e>>>0)continue;break}i=L[h+10>>1]}e=i&65535;m=m+1|0;if(e>>>0>m>>>0)continue;break}}J[l+60>>2]=e;ne(f);break c}ne(f)}f=J[l+72>>2];if(f)gc[J[i+8>>2]](i,f);J[l+68>>2]=0;J[l+72>>2]=0}e=J[h+28>>2];J[h>>2]=e;if(e)break a}p=J[l+4>>2];if(!p){t=l,u=Sc(q,4,0,J[j>>2],0,h),J[t+4>>2]=u;e=J[h>>2];if(e)break a}h:{i:{j:{k:{m=J[l+8>>2];if(m){f=0;if(b)break k;break j}m=Sc(q,4,0,J[j>>2],0,h);J[l+8>>2]=m;e=J[h>>2];if(e)break a;g= +2]=L[f+e>>1]<<16|(K[f+h|0]|L[g+f>>1]<<8)&65535|-16777216;b=b+4|0;c=c+1|0;if((c|0)!=256)continue;break}break a;default:break l}while(1){e=c<<2;J[e+J[a+64>>2]>>2]=b;J[J[a+64>>2]+(e|4)>>2]=b;J[J[a+64>>2]+(e|8)>>2]=b;J[J[a+64>>2]+(e|12)>>2]=b;c=c+4|0;if((c|0)!=256)continue;break}break a}d=0;a=J[a>>2];Uc(J[a+628>>2],J[a>>2],82438,0)}return d}function GJ(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0,P=0, +Q=0,S=0,T=0,U=0;l=fc-208|0;fc=l;f=J[a+28>>2];G=O[f+16>>3];H=O[f+40>>3];I=O[f+32>>3];K=O[f+24>>3];D=G*H-I*K;a:{if(R(D)<=1E-10){b=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,831765,0);break a}q=J[f+(c?120:116)>>2];P=O[f+48>>3];Q=O[f+56>>3];n=O[b+80>>3];j=O[a+48>>3];m=O[b+88>>3];i=O[a- -64>>3];p=n*j+m*i;O[l>>3]=p;k=n;n=O[a+56>>3];h=m;m=O[a+72>>3];o=k*n+h*m;O[l+8>>3]=o;h=O[b+96>>3];k=O[b+104>>3];t=n*h+m*k;O[l+24>>3]=t;w=h*j+i* +k;O[l+16>>3]=w;k=j;j=O[b+112>>3];h=i;i=O[b+120>>3];x=O[a+80>>3]+(k*j+h*i);O[l+32>>3]=x;E=j*n+m*i+O[a+88>>3];O[l+40>>3]=E;j=p*t-w*o;if(R(j)<=1E-10){b=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,831765,0);break a}g=J[a+8>>2];kc[J[J[g>>2]+64>>2]](g,f);M=J[a+28>>2];g=vc(672);J[699344]=0;f=ga(3564,g|0,M|0,1)|0;y=J[699344];J[699344]=0;d:{e:{if((y|0)!=1){J[a+28>>2]=f;g=J[f+380>>2];if(g)kc[J[J[g>>2]+4>>2]](g);J[f+380>>2]=0;g=J[a+28>> +2];f=J[g+384>>2];if(f)kc[J[J[f>>2]+4>>2]](f);J[g+384>>2]=0;f:{g:{if(J[b+8>>2]!=2)break g;f=J[q+12>>2];if(!f)break g;g=J[a+28>>2];y=kc[J[J[f>>2]+8>>2]](f)|0;q=J[g+116>>2];if(q)kc[J[J[q>>2]+4>>2]](q);J[g+116>>2]=y;g=J[a+8>>2];kc[J[J[g>>2]+108>>2]](g,J[a+28>>2]);g=J[a+28>>2];q=kc[J[J[f>>2]+8>>2]](f)|0;f=J[g+120>>2];if(f)kc[J[J[f>>2]+4>>2]](f);J[g+120>>2]=q;f=J[a+8>>2];kc[J[J[f>>2]+112>>2]](f,J[a+28>>2]);f=J[a+28>>2];xc(f+252|0,f+124|0,128);f=J[a+8>>2];kc[J[J[f>>2]+116>>2]](f,J[a+28>>2]);f=J[a+8>>2]; +kc[J[J[f>>2]+120>>2]](f,J[a+28>>2]);J[J[a+28>>2]+664>>2]=1;break f}f=J[a+28>>2];q=Ok(0);g=J[f+116>>2];if(g)kc[J[J[g>>2]+4>>2]](g);J[f+116>>2]=q;f=J[a+8>>2];kc[J[J[f>>2]+108>>2]](f,J[a+28>>2]);g=J[J[a+28>>2]+116>>2];f=l+80|0;kc[J[J[g>>2]+32>>2]](g,f);xc(J[a+28>>2]+124|0,f,128);g=J[a+8>>2];kc[J[J[g>>2]+116>>2]](g,J[a+28>>2]);g=J[a+28>>2];y=Ok(0);q=J[g+120>>2];if(q)kc[J[J[q>>2]+4>>2]](q);J[g+120>>2]=y;g=J[a+8>>2];kc[J[J[g>>2]+112>>2]](g,J[a+28>>2]);g=J[J[a+28>>2]+120>>2];kc[J[J[g>>2]+32>>2]](g,f);xc(J[a+ +28>>2]+252|0,f,128);f=J[a+8>>2];kc[J[J[f>>2]+120>>2]](f,J[a+28>>2])}f=J[a+28>>2];if(c)break e;J[f+440>>2]=0;J[f+444>>2]=0;c=J[a+8>>2];kc[J[J[c>>2]+100>>2]](c,f);uJ(J[a+28>>2],0,0,0);c=J[a+8>>2];kc[J[J[c>>2]+80>>2]](c,J[a+28>>2]);if(e)break d;Tj(J[a+28>>2]);c=J[a+28>>2];e=J[a+8>>2];f=J[e>>2];if(d){kc[J[f+224>>2]](e,c);break d}kc[J[f+220>>2]](e,c);break d}a=Z()|0;uc(g);ba(a|0);B()}b$(f);c=J[a+8>>2];kc[J[J[c>>2]+228>>2]](c,J[a+28>>2])}_f(J[a+28>>2]);c=J[a+28>>2];n=O[c+632>>3];k=O[c+648>>3];h:{if(n>k)break h; +r=O[c+640>>3];m=O[c+656>>3];if(r>m)break h;i=1/j;u=i*(o*x-E*p);z=i*-o;j=n*z;s=p*i;F=s*m;h=u+(j+F);v=s*r;j=u+(j+v);s=i*(w*E-x*t);A=t*i;n=n*A;i=i*-w;C=i*m;m=s+(n+C);r=i*r;i=s+(n+r);i:{if(mj)){m=j;break j}m=h}z=k*z;h=u+(z+v);v=k*A;k=s+(v+r);k:{if(km))break l;m=h}A=-K;r=1/D;N=-I;h=u+(z+F);k=s+(v+C);m:{if(km))break n;m=h}F=p*u;v=s*o;A=p*D;C=z*o;N=s*t;S=w*u;T=z*t;L=w*D;h=O[b+16>>3];O[l+48>>3]=h;k=O[b+24>>3];O[l+56>>3]=k;p=O[b+32>>3];O[l+64>>3]=p;o=O[b+40>>3];O[l+72>>3]=o;o:{if(!(h>p)){t=h;h=p;break o}O[l+64>>3]=h;O[l+48>>3]=p;t=p}w=F+v;F=A+C;v=S+N;A=L+T;p:{if(!(k>o)){p=k;k=o;break p}O[l+72>>3]=k;O[l+56>>3]=o;p=o}o=O[b+48>>3];C=O[b+56>>3];O[l+24>>3]=v;O[l+16>>3]=A;O[l+8>>3]=w;O[l>>3]=F;L=m-p;m=R(C);C=V(L/m);q:{if(R(C)<2147483648){c=~~C;break q}c=-2147483648}g= +c;G=Q*G;K=K*P;H=P*H;I=I*Q;L=n-t;n=R(o);o=V(L/n);r:{if(R(o)<2147483648){c=~~o;break r}c=-2147483648}q=c;o=s*E;u=x*u;s=K-G;E=z*E;x=x*D;D=I-H;j=W((j-k)/m);s:{if(R(j)<2147483648){c=~~j;break s}c=-2147483648}f=c;j=u+o;o=r*s;x=x+E;r=r*D;i=W((i-h)/n);t:{if(R(i)<2147483648){d=~~i;break t}d=-2147483648}j=o+j;i=r+x;c=J[a+8>>2];if(!(!(R(k-p-m)<.001)|(!(kc[J[J[c>>2]+16>>2]](c)|0)|!(R(h-t-n)<.001)))){O[l+40>>3]=j;O[l+32>>3]=i;c=J[a+8>>2];kc[J[J[c>>2]+212>>2]](c,J[a+28>>2],a,b+128|0,J[b+8>>2],J[b+12>>2],J[b+64>> +2]==7?J[b+72>>2]:0,l,l+48|0,d,f,q+1|0,g+1|0,n,m);break h}if((f|0)>(g|0)|(d|0)>(q|0))break h;U=b+128|0;e=0;while(1){h=m*+(f|0);k=v*h;h=A*h;c=d;while(1){y=c;c=J[a+116>>2];u:{if(!c)break u;if((e|0)<100){e=e+1|0;break u}e=0;if(kc[c|0](J[a+120>>2])|0)break h}p=n*+(y|0);O[l+40>>3]=j+(p*w+k);O[l+32>>3]=i+(p*F+h);Jw(a,U,J[b+64>>2]==7?J[b+72>>2]:0,l,l+48|0,0,0,0,0,0,0,0);c=y+1|0;if((q|0)!=(y|0))continue;break}c=(f|0)!=(g|0);f=f+1|0;if(c)continue;break}}b=J[a+28>>2];if(J[b+668>>2])while(1){b=Mm(b);J[a+28>> +2]=b;c=J[a+8>>2];kc[J[J[c>>2]+68>>2]](c,b);b=J[a+28>>2];if(J[b+668>>2])continue;break}uc(Br(b));J[a+28>>2]=M;a=J[a+8>>2];kc[J[J[a>>2]+68>>2]](a,M)}fc=l+208|0}function O7a(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;k=fc-192|0;fc=k;a:{b:{c:{d:{if(f)break d;kM(k+48|0,a,b);m=J[k+100>>2]!=J[c+52>>2]|J[k+104>>2]!=J[c+56>>2]?m:J[k+172>>2]==J[c+124>>2]&J[k+176>>2]==J[c+128>>2];i=J[k+188>>2];e:{if(!i)break e;j=J[i+4>>2];J[i+4>>2]=j-1;if(j)break e;kc[J[J[i>> +2]+8>>2]](i);Gc(i)}i=J[k+116>>2];f:{if(!i)break f;j=J[i+4>>2];J[i+4>>2]=j-1;if(j)break f;kc[J[J[i>>2]+8>>2]](i);Gc(i)}g:{h:{i:{if(!(J[b+52>>2]!=J[c+52>>2]|J[b+56>>2]!=J[c+56>>2]|J[b+124>>2]!=J[c+124>>2]))if(J[b+128>>2]==J[c+128>>2])break i;jM(k+48|0,a,b);i=0;i=J[k+100>>2]!=J[c+52>>2]|J[k+104>>2]!=J[c+56>>2]?i:J[k+172>>2]==J[c+124>>2]&J[k+176>>2]==J[c+128>>2];l=J[k+188>>2];j:{if(!l)break j;j=J[l+4>>2];J[l+4>>2]=j-1;if(j)break j;kc[J[J[l>>2]+8>>2]](l);Gc(l)}l=J[k+116>>2];k:{if(!l)break k;j=J[l+4>>2]; +J[l+4>>2]=j-1;if(j)break k;kc[J[J[l>>2]+8>>2]](l);Gc(l)}if(!(m&1))break g;j=!(d>=1E-8);if(!i)break h;break b}if(!(m&1))break d;j=!(d>=1E-8)}m=1;n=1;break a}j=!(d>=0);if(i)break b;break c}j=!(d>=0)}m=0;n=1;break a}o=1E-8;n=.99999999}l:{if(!(d<=n)|j|(!(e>=o)|!((m&1?.99999999:1)>=e)))break l;j=vc(256);O[j>>3]=O[b>>3];O[j+8>>3]=O[b+8>>3];O[j+16>>3]=O[b+16>>3];O[j+24>>3]=O[b+24>>3];O[j+32>>3]=O[b+32>>3];O[j+40>>3]=O[b+40>>3];i=J[b+52>>2];J[j+48>>2]=J[b+48>>2];J[j+52>>2]=i;i=J[b+60>>2];J[j+56>>2]=J[b+56>> +2];J[j+60>>2]=i;J[j+64>>2]=J[b+64>>2];i=J[b+68>>2];J[j+68>>2]=i;if(i)J[i+4>>2]=J[i+4>>2]+1;O[j+72>>3]=O[b+72>>3];O[j+80>>3]=O[b+80>>3];O[j+88>>3]=O[b+88>>3];O[j+96>>3]=O[b+96>>3];O[j+104>>3]=O[b+104>>3];O[j+112>>3]=O[b+112>>3];i=J[b+124>>2];J[j+120>>2]=J[b+120>>2];J[j+124>>2]=i;i=J[b+132>>2];J[j+128>>2]=J[b+128>>2];J[j+132>>2]=i;J[j+136>>2]=J[b+136>>2];b=J[b+140>>2];J[j+140>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[j+144>>2]=0;J[j+148>>2]=0;J[j+228>>2]=0;J[j+232>>2]=0;H[j+225|0]=h;H[j+224|0]=f;O[j+216>> +3]=d;H[j+191|0]=0;H[j+192|0]=0;H[j+193|0]=0;H[j+194|0]=0;J[j+184>>2]=0;J[j+188>>2]=0;J[j+176>>2]=0;J[j+180>>2]=0;J[j+168>>2]=0;J[j+172>>2]=0;J[j+160>>2]=0;J[j+164>>2]=0;J[j+152>>2]=0;J[j+156>>2]=0;J[j+200>>2]=0;J[j+204>>2]=0;J[j+196>>2]=-1;J[j+208>>2]=0;J[j+212>>2]=0;J[j+236>>2]=0;J[j+240>>2]=0;J[j+244>>2]=0;J[j+248>>2]=0;J[k+40>>2]=j;J[699344]=0;J[k+48>>2]=j;i=_(4,16)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;R4(k+48|0);ba(a|0);B()}J[i+12>>2]=j;J[i>>2]=350864;J[i+4>>2]=0;J[i+8>>2]=0;J[k+44>> +2]=i;J[699344]=0;i=_(4,256)|0;b=J[699344];J[699344]=0;m:{n:{if((b|0)!=1){O[i>>3]=O[c>>3];O[i+8>>3]=O[c+8>>3];O[i+16>>3]=O[c+16>>3];O[i+24>>3]=O[c+24>>3];O[i+32>>3]=O[c+32>>3];O[i+40>>3]=O[c+40>>3];b=J[c+52>>2];J[i+48>>2]=J[c+48>>2];J[i+52>>2]=b;b=J[c+60>>2];J[i+56>>2]=J[c+56>>2];J[i+60>>2]=b;J[i+64>>2]=J[c+64>>2];b=J[c+68>>2];J[i+68>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;O[i+72>>3]=O[c+72>>3];O[i+80>>3]=O[c+80>>3];O[i+88>>3]=O[c+88>>3];O[i+96>>3]=O[c+96>>3];O[i+104>>3]=O[c+104>>3];O[i+112>>3]=O[c+112>> +3];b=J[c+124>>2];J[i+120>>2]=J[c+120>>2];J[i+124>>2]=b;b=J[c+132>>2];J[i+128>>2]=J[c+128>>2];J[i+132>>2]=b;J[i+136>>2]=J[c+136>>2];b=J[c+140>>2];J[i+140>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[i+144>>2]=0;J[i+148>>2]=0;J[i+228>>2]=0;J[i+232>>2]=0;H[i+225|0]=h;H[i+224|0]=f;O[i+216>>3]=e;H[i+191|0]=0;H[i+192|0]=0;H[i+193|0]=0;H[i+194|0]=0;J[i+184>>2]=0;J[i+188>>2]=0;J[i+176>>2]=0;J[i+180>>2]=0;J[i+168>>2]=0;J[i+172>>2]=0;J[i+160>>2]=0;J[i+164>>2]=0;J[i+152>>2]=0;J[i+156>>2]=0;J[i+200>>2]=0;J[i+204>>2]=0; +J[i+196>>2]=-1;J[i+208>>2]=0;J[i+212>>2]=0;J[i+236>>2]=0;J[i+240>>2]=0;J[i+244>>2]=0;J[i+248>>2]=0;J[k+32>>2]=i;J[699344]=0;J[k+48>>2]=i;b=_(4,16)|0;c=J[699344];J[699344]=0;if((c|0)==1){m=Z()|0;R4(k+48|0);break n}J[b+12>>2]=i;J[b>>2]=350864;J[b+4>>2]=0;J[b+8>>2]=0;J[k+36>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[j+228>>2]=i;c=J[j+232>>2];J[j+232>>2]=b;o:{if(!c)break o;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break o;kc[J[J[c>>2]+8>>2]](c);Gc(c)}b=J[k+40>>2];h=J[k+32>>2];c=J[k+44>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[h+228>> +2]=b;j=J[h+232>>2];J[h+232>>2]=c;p:{if(!j)break p;b=J[j+4>>2];J[j+4>>2]=b-1;if(b)break p;kc[J[J[j>>2]+8>>2]](j);Gc(j)}q:{if(!g)break q;b=J[k+40>>2];g=J[k+44>>2];if(!g){if(K[b+224|0])break q;J[k+52>>2]=0;J[k+48>>2]=b;b=J[k+52>>2];J[k+8>>2]=J[k+48>>2];J[k+12>>2]=b;if(S4(a,k+8|0))break q;break m}c=1;J[g+4>>2]=J[g+4>>2]+1;if(!K[b+224|0]){J[k+52>>2]=g;J[k+48>>2]=b;J[g+4>>2]=J[g+4>>2]+1;b=J[k+52>>2];J[k+16>>2]=J[k+48>>2];J[k+20>>2]=b;c=S4(a,k+16|0)}b=J[g+4>>2];J[g+4>>2]=b-1;if(!b){kc[J[J[g>>2]+8>>2]](g); +Gc(g)}if(!c)break m}J[k+24>>2]=J[k+40>>2];b=J[k+44>>2];J[k+28>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[699344]=0;b=J[k+28>>2];J[k>>2]=J[k+24>>2];J[k+4>>2]=b;ca(2526,a|0,k|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;m=Z()|0;je(k+32|0);break n}m=Z()|0}je(k+40|0);ba(m|0);B()}b=J[k+36>>2];r:{if(!b)break r;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break r;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[k+44>>2];if(!b)break l;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break l;kc[J[J[b>>2]+8>>2]](b);Gc(b)}fc=k+192|0}function qG(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;g=fc-32|0;fc=g;J[g+24>>2]=b;J[g+28>>2]=a;while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{f=b-a>>2;switch(f|0){case 4:break i;case 2:break j;case 0:case 1:break b;case 3:break f;case 5:break h;default:break g}}b=b-4|0;J[g+24>>2]=b;if(J[b>>2]>=J[a>>2])break b;a=J[g+28>>2];b=J[a>>2];c=a;a=J[g+24>>2];J[c>>2]=J[a>>2];J[a>>2]=b;break b}b=b-4|0;J[g+24>>2]=b;CS(a,a+4|0,a+8|0,b);break b}b=b-4|0;J[g+24>>2]=b;BS(a,a+4|0,a+8|0,a+12|0,b);break b}if((f|0)<=30){e=fc-16|0;fc=e;d=a+8| +0;xz(a,a+4|0,d);c=a+12|0;while(1){J[e+12>>2]=c;if((b|0)!=(c|0)){if(J[c>>2]>2]){J[e+8>>2]=J[J[e+12>>2]>>2];J[e+4>>2]=d;c=J[e+12>>2];while(1){k:{J[c>>2]=J[J[e+4>>2]>>2];c=J[e+4>>2];if((c|0)==(a|0)){c=a;break k}d=c-4|0;J[e+4>>2]=d;if(J[e+8>>2]>2])continue}break}J[c>>2]=J[e+8>>2]}d=J[e+12>>2];c=d+4|0;continue}break}fc=e+16|0;break b}if(!d){c=(a|0)==(b|0);if(c)break b;f=fc-16|0;fc=f;J[f+12>>2]=a;if(!c){l:{c=b-a>>2;if((c|0)<2)break l;d=c-2>>>1|0;while(1){if((d|0)<0)break l;sS(a,c,(d<<2)+a|0); +d=d-1|0;continue}}d=b-a>>2;a=b;while(1){J[f+8>>2]=a;c=J[f+12>>2];l=c;if((a|0)!=(b|0)){if(J[a>>2]>2]){a=J[f+8>>2];e=J[a>>2];J[a>>2]=J[c>>2];J[c>>2]=e;a=J[f+12>>2];sS(a,d,a)}a=J[f+8>>2]+4|0;continue}break}a=b-l>>2;while(1){if((a|0)>1){i=fc-16|0;fc=i;J[i+12>>2]=l;c=a;m:{if(a>>>0<2)break m;e=J[i+12>>2];k=J[e>>2];a=0;j=fc-16|0;fc=j;m=c-2>>>1|0;while(1){h=(a<<2)+e|0;J[j+12>>2]=h+4;d=a<<1;a=d|1;d=d+2|0;if(!((d|0)>=(c|0)|J[h+4>>2]>=J[h+8>>2])){J[j+12>>2]=J[j+12>>2]+4;a=d}J[e>>2]=J[J[j+12>>2]>>2];e=J[j+ +12>>2];if((a|0)<=(m|0))continue;break}fc=j+16|0;a=b-4|0;J[i+8>>2]=a;if((a|0)==(e|0)){J[e>>2]=k;break m}J[e>>2]=J[J[i+8>>2]>>2];J[J[i+8>>2]>>2]=k;d=J[i+12>>2];j=d;a=fc-16|0;fc=a;e=e+4|0;d=e-d>>2;n:{if((d|0)<2)break n;e=e-4|0;J[a+12>>2]=e;d=d-2>>>1|0;k=j+(d<<2)|0;J[a+8>>2]=k;if(J[k>>2]>=J[e>>2])break n;J[a+4>>2]=J[J[a+12>>2]>>2];o:{while(1){J[J[a+12>>2]>>2]=J[J[a+8>>2]>>2];e=J[a+8>>2];J[a+12>>2]=e;if(!d)break o;d=d-1>>>1|0;e=j+(d<<2)|0;J[a+8>>2]=e;if(J[e>>2]>2])continue;break}e=J[a+12>>2]}J[e>> +2]=J[a+4>>2]}fc=a+16|0}fc=i+16|0;a=c-1|0;b=b-4|0;continue}break}}fc=f+16|0;break b}i=(f<<1&-4)+a|0;J[g+20>>2]=i;j=b-4|0;p:{if(f>>>0>=1E3){e=fc-32|0;fc=e;b=f&-4;l=b+a|0;J[e+24>>2]=l;J[e+28>>2]=a;J[e+20>>2]=i;k=b+i|0;J[e+16>>2]=k;J[e+12>>2]=j;f=fc-16|0;fc=f;J[f+8>>2]=l;J[f+12>>2]=a;J[f+4>>2]=i;J[f>>2]=k;b=AS(a,l,i);q:{if(J[k>>2]>=J[i>>2])break q;h=J[f+4>>2];m=J[h>>2];n=h;h=J[f>>2];J[n>>2]=J[h>>2];J[h>>2]=m;if(J[J[f+4>>2]>>2]>=J[l>>2]){b=b+1|0;break q}h=J[f+8>>2];m=J[h>>2];n=h;h=J[f+4>>2];J[n>>2]=J[h>> +2];J[h>>2]=m;if(J[J[f+8>>2]>>2]>=J[a>>2]){b=b+2|0;break q}b=b+3|0;h=J[f+12>>2];m=J[h>>2];n=h;h=J[f+8>>2];J[n>>2]=J[h>>2];J[h>>2]=m}fc=f+16|0;r:{if(J[j>>2]>=J[k>>2])break r;f=J[e+16>>2];k=J[f>>2];h=f;f=J[e+12>>2];J[h>>2]=J[f>>2];J[f>>2]=k;if(J[J[e+16>>2]>>2]>=J[i>>2]){b=b+1|0;break r}f=J[e+20>>2];i=J[f>>2];h=f;f=J[e+16>>2];J[h>>2]=J[f>>2];J[f>>2]=i;if(J[J[e+20>>2]>>2]>=J[l>>2]){b=b+2|0;break r}f=J[e+24>>2];i=J[f>>2];h=f;f=J[e+20>>2];J[h>>2]=J[f>>2];J[f>>2]=i;if(J[J[e+24>>2]>>2]>=J[a>>2]){b=b+3|0;break r}b= +b+4|0;a=J[e+28>>2];f=J[a>>2];h=a;a=J[e+24>>2];J[h>>2]=J[a>>2];J[a>>2]=f}fc=e+32|0;break p}b=AS(a,i,j)}d=d-1|0;e=J[g+28>>2];J[g+16>>2]=e;J[g+12>>2]=j;if(J[e>>2]>=J[J[g+20>>2]>>2]){while(1){a=J[g+12>>2]-4|0;J[g+12>>2]=a;f=J[g+16>>2];if((f|0)==(a|0)){J[g+16>>2]=f+4;b=J[g+24>>2];f=b-4|0;J[g+12>>2]=f;a=J[g+16>>2];if(J[e>>2]>2])break c;while(1){f=J[g+12>>2];if((f|0)==(a|0))break b;if(J[e>>2]>2]){a=J[g+16>>2];i=J[a>>2];J[a>>2]=J[f>>2];J[f>>2]=i;a=J[g+16>>2]+4|0;J[g+16>>2]=a;break c}else{a=J[g+ +16>>2]+4|0;J[g+16>>2]=a;continue}}}if(J[a>>2]>=J[J[g+20>>2]>>2])continue;break}a=J[g+16>>2];e=J[a>>2];f=a;a=J[g+12>>2];J[f>>2]=J[a>>2];J[a>>2]=e;b=b+1|0}a=J[g+16>>2]+4|0;J[g+16>>2]=a;s:{if(M[g+12>>2]<=a>>>0)break s;while(1){if(J[a>>2]>2]>>2]){a=J[g+16>>2]+4|0;J[g+16>>2]=a;continue}while(1){a=J[g+12>>2]-4|0;J[g+12>>2]=a;if(J[a>>2]>=J[J[g+20>>2]>>2])continue;break}a=J[g+16>>2];if(a>>>0>M[g+12>>2])break s;e=J[a>>2];f=a;a=J[g+12>>2];J[f>>2]=J[a>>2];J[a>>2]=e;a=J[g+16>>2];if((a|0)==J[g+20>>2])J[g+ +20>>2]=J[g+12>>2];b=b+1|0;a=a+4|0;J[g+16>>2]=a;continue}}e=J[g+20>>2];if(!((e|0)==(a|0)|J[e>>2]>=J[a>>2])){a=J[g+16>>2];f=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=f;b=b+1|0}a=J[g+28>>2];e=J[g+16>>2];if(b){b=J[g+24>>2];break e}f=zS(a,e);b=J[g+24>>2];if(zS(J[g+16>>2]+4|0,b)){if(f)break b;break d}e=J[g+16>>2];if(!f)break e;a=e+4|0;break a}b=b-4|0;J[g+24>>2]=b;xz(a,a+4|0,b);break b}if((e-a|0)<(b-e|0)){qG(a,e,c,d);a=J[g+16>>2]+4|0;break a}qG(e+4|0,b,c,d)}b=J[g+16>>2];J[g+24>>2]=b;continue}if(J[g+12>>2]==(a|0))break b; +while(1){if(J[e>>2]>2]){while(1){a=J[g+12>>2]-4|0;J[g+12>>2]=a;if(J[e>>2]>2])continue;break}a=J[g+16>>2];if(a>>>0>=M[g+12>>2])break a;f=J[a>>2];h=a;a=J[g+12>>2];J[h>>2]=J[a>>2];J[a>>2]=f}a=J[g+16>>2]+4|0;J[g+16>>2]=a;continue}}fc=g+32|0;return}J[g+28>>2]=a;continue}}function Eu(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=Q(0),q=0,r=0,s=0,t=0;g=fc-128|0;fc=g;m=g+100|0;J[m>>2]=0;J[m+4>>2]=0;J[m+24>>2]=1;J[m+16>>2]=0;J[m+20>>2]=0;J[m+8>>2]=0;J[m+ +12>>2]=0;J[g+40>>2]=0;H[g+96|0]=0;i=J[c>>2];J[g+28>>2]=2;J[g+24>>2]=i;J[g+20>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if(J[b+216>>2])break j;l=J[J[b>>2]+84>>2];J[699344]=0;i=ga(l|0,b|0,i|0,g+20|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break b;if(J[b+216>>2]|(i|0)>0|J[b+204>>2]==-1)break j;l=J[c>>2];if((l|0)>=61440){J[g+36>>2]=i;J[g+32>>2]=J[g+20>>2];break i}i=J[J[b>>2]+84>>2];J[699344]=0;i=ga(i|0,b|0,l+61440|0,g+20|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break b}J[g+32>>2]=J[g+20>>2];J[g+36>>2]=i;if((i| +0)>0)break h}if(K[f|0]){xc(a,g+24|0,104);break d}if(!J[b+216>>2]){h=J[c>>2];i=J[b+284>>2];J[699344]=0;h=ga(2914,i|0,b|0,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break g;if(!h){xc(a,g+24|0,104);break d}J[699344]=0;H[g|0]=1;la(2915,a|0,h|0,c|0,d|0,e|0,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;c=J[J[h>>2]+12>>2];J[699344]=0;_(c|0,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){b=Z()|0;Cj(a+76|0);break a}if(!J[a+4>>2])break d;Cj(a+76|0)}h=1;i=J[b+200>>2];if((i|0)>=0)break h;p=Q(Q(J[J[J[b+188>>2]+ +88>>2]+36>>2]>>6)*Q(.5));N[g+44>>2]=p;N[g+40>>2]=p;xc(a,g+24|0,104);break d}J[g+28>>2]=h;if(J[b+280>>2]){k=O[b+8>>3];s=O[b+56>>3];o=O[b+16>>3];t=O[b+72>>3];n=(k*s+o*t)*65536;k:{if(R(n)<2147483648){c=~~n;break k}c=-2147483648}J[b+220>>2]=c;n=k;k=O[b- -64>>3];r=o;o=O[b+80>>3];n=(n*k+r*o)*65536;l:{if(R(n)<2147483648){c=~~n;break l}c=-2147483648}J[b+228>>2]=c;n=O[b+24>>3];r=n*k;k=O[b+32>>3];o=(r+o*k)*65536;m:{if(R(o)<2147483648){c=~~o;break m}c=-2147483648}J[b+232>>2]=c;k=(n*s+t*k)*65536;n:{if(R(k)<2147483648){c= +~~k;break n}c=-2147483648}J[b+224>>2]=c;c=J[b+188>>2];J[699344]=0;Zu(c,b+220|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break b}c=J[b+288>>2]?J[J[b+284>>2]+156>>2]:40970;h=J[b+188>>2];J[699344]=0;c=ga(2917,h|0,i|0,c|0)|0;l=J[699344];J[699344]=0;o:{if((l|0)==1)break o;p:{if(!(c-131>>>0>10&c-17>>>0>=23|J[b+288>>2]!=1)){J[699344]=0;c=ga(2917,h|0,i|0,40970)|0;h=J[699344];J[699344]=0;if((h|0)==1)break o;if(c)break p;J[b+288>>2]=0;break e}if(!c)break e}xc(a,g+24|0,104);break d}b=Z()|0;break a}b=Z()|0;break a}b= +Z()|0;break a}J[g+16>>2]=0;c=J[J[b+188>>2]+84>>2];J[699344]=0;c=aa(2918,c|0,g+16|0)|0;h=J[699344];J[699344]=0;q:{if((h|0)!=1){if(!c)break q;xc(a,g+24|0,104);break d}b=Z()|0;break a}c=J[b+188>>2];J[699344]=0;h=aa(2919,c|0,2)|0;c=J[699344];J[699344]=0;r:{s:{t:{if((c|0)!=1){i=J[b+140>>2];c=(i|0)==1;u:{v:{if(!(!h|(i|0)!=1)){if(L[h>>1]==65535)break v;c=L[h+4>>1]<800}if(!e)break u;if(!c)break r;break s}if(e)break s;c=1}J[699344]=0;ca(2920,J[g+16>>2],1,g|0);e=J[699344];J[699344]=0;w:{x:{y:{if((e|0)==1)break y; +J[699344]=0;$(2921,J[g+16>>2]);e=J[699344];J[699344]=0;if((e|0)==1)break y;e=J[b+188>>2];h=L[e+68>>1];k=O[b+192>>3];j=J[e+84>>2];e=J[j+56>>2];N[g+52>>2]=J[g+8>>2]>>6;N[g+56>>2]=J[g+4>>2]>>6;N[g+60>>2]=J[g+12>>2]>>6;N[g+48>>2]=J[g>>2]>>6;p=Q(k*+(e|0)/+(h>>>0));N[g+40>>2]=c?Q(p+Q(1)):p;e=J[j+24>>2];N[g+64>>2]=e>>6;N[g+68>>2]=J[j+28>>2]>>6;h=J[j+40>>2];N[g+80>>2]=h>>6;N[g+72>>2]=J[j+32>>2]>>6;N[g+76>>2]=J[j+36>>2]>>6;N[g+92>>2]=J[j+52>>2]>>6;N[g+84>>2]=J[j+44>>2]>>6;N[g+88>>2]=J[j+48>>2]>>6;if(!K[f| +0]|h>>>0>63|e>>>0>=64)break x;J[g+28>>2]=2;break w}b=Z()|0;break a}if(!K[d|0])break w;H[g+96|0]=1;d=J[J[b+284>>2]+160>>2];J[699344]=0;d=aa(2922,j|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break t;if(d)break w;J[m>>2]=J[j+100>>2];J[g+104>>2]=J[j+104>>2];h=J[j+80>>2];J[g+108>>2]=h;e=J[j+76>>2];J[g+112>>2]=e;i=K[b+104|0];J[g+116>>2]=i;z:{if(i){b=h;if(!c)break z;h=b+1|0;J[g+108>>2]=h;b=h;break z}b=h+7>>3}d=b;b=P(d,e);if(!b){J[g+120>>2]=0;J[g+124>>2]=0;break w}f=Dc(b);J[g+124>>2]=0;J[g+120>>2]=f;if(!f)break w; +if(!((i|0)!=0&c)){if((e|0)<=0)break w;c=J[j+84>>2];b=J[j+88>>2];if(e>>>0>=4){h=e&-4;i=0;while(1){f=xc(f,b,d);l=b+c|0;j=l+c|0;q=j+c|0;b=q+c|0;f=xc(xc(xc(d+f|0,l,d)+d|0,j,d)+d|0,q,d)+d|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}e=e&3;if(!e)break w;i=0;while(1){f=xc(f,b,d);b=b+c|0;f=d+f|0;i=i+1|0;if((e|0)!=(i|0))continue;break}break w}if((e|0)<=0|(h|0)<=0)break w;l=h-2|0;i=h-1|0;c=J[j+88>>2];while(1){A:{if(!i)break A;H[f+i|0]=K[c+l|0];h=i;b=l;if(!b)break A;while(1){h=K[b+c|0]+K[(c+h|0)-2|0]|0;H[b+f|0]= +h>>>0>=255?255:h;h=b;b=b-1|0;if(b)continue;break}}H[f|0]=K[c|0];f=d+f|0;c=J[j+84>>2]+c|0;q=q+1|0;if((q|0)<(e|0))continue;break}}xc(a,g+24|0,104);break d}b=Z()|0;break a}b=Z()|0;break a}k=O[b+120>>3];J[699344]=0;c=J[g+16>>2]+20|0;k=k*64/25.4/3;B:{if(R(k)<2147483648){b=~~k;break B}b=-2147483648}vN(c,b,0);b=J[699344];J[699344]=0;if((b|0)==1)break c}b=J[e+4>>2];c=J[e>>2];J[699344]=0;ga(1670,J[g+16>>2]+20|0,c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;xc(a,g+24|0,104)}Cj(m);fc=g+128|0;return}b= +Z()|0;break a}b=Z()|0}Cj(m);ba(b|0);B()}function pDa(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;j=fc-32|0;fc=j;a:{b:{e=J[b>>2];c:{d:{if(!e){b=Qc(j+8|0,2395136,2386186,178,2400928,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;a=Z()|0;Kc(b);break d}e=e+36|0;h=rf(e);e:{f:{k=a+16|0;i=J[J[k+12>>2]+((h>>>0)%M[k+8>>2]<<2)>>2];if(i)while(1){if((h|0)==J[i+12>>2])if(!Qj(i+16|0,e,-1))break f;i=J[i+8>>2];if(i)continue;break}g:{if((OA(J[c>>2],j+8|0,0,4,0)|0)!=4|(K[j+ +8|0]|K[j+9|0]<<8|(K[j+10|0]<<16|K[j+11|0]<<24))!=1411798081)break g;e=j+4|0;oX(e,c,4,-1);J[699344]=0;aa(5153,c|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break e;i=J[j+4>>2];J[j+4>>2]=0;if(!i)break g;J[699344]=0;h=J[i+4>>2]-1|0;J[i+4>>2]=h;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(h)break g;J[699344]=0;$(5147,i|0);e=J[699344];J[699344]=0;if((e|0)==1)break b}Rj(Hm(k,J[b>>2]+36|0)+24|0,c);g=fc-32|0;fc=g;f=J[a+8>>2];h=J[f+16>>2];e=b;a=J[b>>2]+36|0;c=rf(a);h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{i=f+ +80|0;b=J[J[i+12>>2]+((c>>>0)%M[i+8>>2]<<2)>>2];if(b)while(1){if((c|0)==J[b+12>>2])if(!Qj(b+16|0,a,-1))break r;b=J[b+8>>2];if(b)continue;break}a=J[e>>2]+20|0;k=rf(a);c=f+52|0;b=J[J[c+12>>2]+((k>>>0)%M[c+8>>2]<<2)>>2];if(b)while(1){if((k|0)==J[b+12>>2])if(!Qj(b+16|0,a,-1))break q;b=J[b+8>>2];if(b)continue;break}Rj(Hm(c,J[e>>2]+20|0)+24|0,e);Rj(Hm(i,J[e>>2]+36|0)+24|0,e);b=J[e>>2];a=J[b+44>>2];if(!(!a|!J[a+8>>2])){a=b+44|0;k=rf(a);c=f+108|0;b=J[J[c+12>>2]+((k>>>0)%M[c+8>>2]<<2)>>2];if(b)while(1){if((k| +0)==J[b+12>>2])if(!Qj(b+16|0,a,-1))break p;b=J[b+8>>2];if(b)continue;break}Rj(Hm(c,J[e>>2]+44|0)+24|0,e);b=J[e>>2]}c=f+20|0;if((K[b+52|0]&63)!=3)break n;b=J[c>>2];if(!b)break n;break o}a=J[e>>2];J[699344]=0;ca(5218,g|0,2394444,a+36|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;a=J[g>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;b=ja(5178,g+8|0,a|0,2389596,662,2398315,0)|0;a=J[699344];J[699344]=0;s:{if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break s;break m}break l}break k}a= +J[e>>2];J[699344]=0;ca(5218,g|0,2398621,a+20|0);a=J[699344];J[699344]=0;t:{if((a|0)!=1){a=J[g>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;b=ja(5178,g+8|0,a|0,2389596,664,2398315,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break t;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break k}break j}break l}a=J[e>>2];J[699344]=0;ca(5218,g|0,2398904,a+44|0);a=J[699344];J[699344]=0;u:{if((a|0)!=1){a=J[g>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;b=ja(5178,g+8|0,a|0,2389596,671,2398315,0)|0; +a=J[699344];J[699344]=0;if((a|0)==1)break u;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break k}break j}break l}while(1){if((K[J[b+8>>2]+52|0]&63)!=3){b=J[b>>2];if(b)continue;break n}break}J[699344]=0;b=ja(5178,g+8|0,2399090,2389596,680,2398315,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break i}h=(d|0)<0?h:d;b=0;a=c;while(1){a=J[a>>2];if(a){d=(b|0)!=(h|0);b=b+1|0;if(d)continue}break}d=f+12|0;v:{if(a){J[g+ +12>>2]=d;J[g+8>>2]=a;a=vc(12);J[a>>2]=0;J[a+4>>2]=0;b=J[e>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;b=J[e>>2]}else b=0;J[a+8>>2]=b;QV(d,g+8|0,a);break v}a=vc(12);J[a>>2]=0;J[a+4>>2]=0;b=J[e>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;b=J[e>>2]}else b=0;J[a+8>>2]=b;vf(d,a)}d=J[e>>2];w:{if((K[d+52|0]&63)!=1)break w;a=0;b=J[c>>2];x:{if(!b)break x;while(1){c=J[b+8>>2];if((c|0)==(d|0))break x;a=((K[c+52|0]&63)==1)+a|0;b=J[b>>2];if(b)continue;break}}Fm(f+28|0,0,(J[f+48>>2]-J[f+44>>2]|0)+1|0);c=J[f+48>>2];d=J[f+44>>2];b=c-d| +0;if((b|0)>(a|0)){c=b+1|0;while(1){y:{h=c-2|0;if((h|0)>=J[f+44>>2]){c=J[f+48>>2];if((c|0)>=(h|0))break y}b=Qc(g+8|0,2400123,2400335,619,2400467,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break i}if((b|0)>(c|0)){b=Qc(g+8|0,2400123,2400335,619,2400467,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break i}c=J[f+32>>2];d=J[f+36>>2];Rj(c+(b-d<<2)|0,c+(h-d<<2)|0);c=b;b=b-1|0;if((b|0)>(a|0))continue;break}c=J[f+48>>2];d=J[f+44>>2]}if(!((a|0)<=(c|0)&(a| +0)>=(d|0))){b=Qc(g+8|0,2400123,2400335,619,2400467,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break i}Rj(J[f+32>>2]+(a-J[f+36>>2]<<2)|0,e);c=J[f+48>>2];h=J[f+44>>2];if(((c-h|0)+1|0)<=(a|0))break w;e=J[f+36>>2];d=J[f+32>>2];b=a;while(1){if(!((b|0)<=(c|0)&(a|0)>=(h|0))){b=Qc(g+8|0,2400123,2400335,619,2400467,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break i}J[J[d+(b-e<<2)>>2]+56>>2]=b;b=b+1|0;c=J[f+48>>2];if((b|0)<((c-h|0)+1|0))continue;break}}fc= +g+32|0;break h}B()}a=Z()|0;break a}a=Z()|0;Kc(b);break a}ba(Z()|0);B()}a=Z()|0;Kc(b);ba(a|0);B()}fc=j+32|0;return}b=Qc(j+8|0,2387222,2386186,180,2400928,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;a=Z()|0;Kc(b);break d}a=Z()|0;zc(j+4|0)}ba(a|0)}B()}ea(0)|0;Bc();B()}wc(g);ba(a|0);B()}function a9(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=fc-992|0;fc=h;a:{b:{c:{if(!J[a+4>>2])break c;d:switch(b-4|0){case 0:f=1;b=L[a+26>>1];if((b|0)==4)break c;f=0;if(b>>>0>4)break c;c=xf(h+ +16|0,0);J[699344]=0;da(153,c|0,a|0);b=J[699344];J[699344]=0;e:{if((b|0)==1)break e;b=J[a+68>>2];d=J[a+20>>2];f=J[a+16>>2];J[699344]=0;na(78,c|0,f|0,d|0,4,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;b=J[a+4>>2];d=J[a+44>>2];f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;f=J[a+44>>2];e=J[699344];J[699344]=0;if((e|0)==1)break e;J[699344]=0;ca(19,c|0,(b?d?b+40|0:0:0)|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;f=J[c+4>>2]!=0;b=J[699344];J[699344]=0;if((b| +0)==1)break e;f:{if(!f){J[699344]=0;b=J[699344];J[699344]=0;if((b|0)==1)break e;of(a+72|0,c+72|0);break f}J[699344]=0;aa(154,c|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;aa(155,c|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;e=J[a+20>>2];g:{if(J[a+332>>2]|(e|0)<=0)break g;g=J[a+16>>2];if((g|0)<=0)break g;d=0;while(1){b=0;if((g|0)>0){while(1){J[699344]=0;e=vp(a,b,d);g=J[699344];J[699344]=0;if((g|0)==1)break a;J[699344]=0;UE(c,b,d,e);e=J[699344];J[699344]=0;if((e|0)==1)break a; +b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e=J[a+20>>2];b=J[a+332>>2]}d=d+1|0;if((e|0)<=(d|0))break g;if(!b)continue;break}}J[699344]=0;ga(108,a|0,c|0,1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e}J[c>>2]=1032;J[699344]=0;_(13,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[699344]=0;_(14,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;break c}break a;case 4:f=1;b=L[a+26>>1];if((b|0)==8)break c;f=0;if(b>>>0>8)break c;c=xf(h+16|0,0);J[699344]=0;da(153,c|0,a|0);b=J[699344];J[699344]= +0;h:{if((b|0)==1)break h;b=J[a+68>>2];d=J[a+20>>2];f=J[a+16>>2];J[699344]=0;na(78,c|0,f|0,d|0,8,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;b=J[a+4>>2];d=J[a+44>>2];f=J[699344];J[699344]=0;if((f|0)==1)break h;J[699344]=0;f=J[a+44>>2];e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;ca(19,c|0,(b?d?b+40|0:0:0)|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;f=J[c+4>>2]!=0;b=J[699344];J[699344]=0;if((b|0)==1)break h;i:{if(!f){J[699344]=0;b=J[699344];J[699344]= +0;if((b|0)==1)break h;of(a+72|0,c+72|0);break i}J[699344]=0;aa(154,c|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;aa(155,c|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;e=J[a+20>>2];j:{if(J[a+332>>2]|(e|0)<=0)break j;g=J[a+16>>2];if((g|0)<=0)break j;d=0;while(1){b=0;if((g|0)>0){while(1){J[699344]=0;e=vp(a,b,d);g=J[699344];J[699344]=0;if((g|0)==1)break a;J[699344]=0;UE(c,b,d,e);e=J[699344];J[699344]=0;if((e|0)==1)break a;b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e= +J[a+20>>2];b=J[a+332>>2]}d=d+1|0;if((e|0)<=(d|0))break j;if(!b)continue;break}}J[699344]=0;ga(108,a|0,c|0,1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h}J[c>>2]=1032;J[699344]=0;_(13,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;_(14,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c}break b}break a;case 20:break d;default:break c}f=1;b=L[a+26>>1];if((b|0)==24)break c;f=0;if(b>>>0>24)break c;c=xf(h+16|0,0);J[699344]=0;da(153,c|0,a|0);b=J[699344];J[699344]=0;k:{if((b|0)==1)break k;b=J[a+ +68>>2];d=J[a+20>>2];f=J[a+16>>2];J[699344]=0;na(78,c|0,f|0,d|0,24,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;J[699344]=0;f=J[c+4>>2]!=0;b=J[699344];J[699344]=0;if((b|0)==1)break k;l:{if(!f){J[699344]=0;b=J[699344];J[699344]=0;if((b|0)==1)break k;of(a+72|0,c+72|0);break l}b=J[a+336>>2];if((b|0)>=0){J[699344]=0;Hg(h+12|0,a,b&255);b=J[699344];J[699344]=0;if((b|0)==1)break k;J[c+340>>2]=J[h+12>>2]}J[699344]=0;aa(154,c|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;J[699344]=0;aa(155,c|0, +a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;J[699344]=0;b=KO(a);d=J[699344];J[699344]=0;if((d|0)==1)break k;m:{if(!b)break m;J[699344]=0;b=J[a+964>>2];d=J[699344];J[699344]=0;if((d|0)==1)break k;if(b)break m;J[699344]=0;_(123,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k}e=J[a+20>>2];n:{if(J[a+332>>2]|(e|0)<=0)break n;g=J[a+16>>2];if((g|0)<=0)break n;d=0;while(1){b=0;if((g|0)>0){while(1){J[699344]=0;kn(h+8|0,a,b,d,1);e=J[699344];J[699344]=0;if((e|0)==1)break k;J[699344]=0;J[h+4>>2]=K[h+ +8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);FO(c,b,d,h+4|0,1);e=J[699344];J[699344]=0;if((e|0)==1)break k;b=b+1|0;g=J[a+16>>2];if((b|0)<(g|0))continue;break}e=J[a+20>>2];b=J[a+332>>2]}d=d+1|0;if((e|0)<=(d|0))break n;if(!b)continue;break}}J[699344]=0;ga(108,a|0,c|0,1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k}J[c>>2]=1032;J[699344]=0;_(13,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;_(14,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c}break b}break a}fc=h+992|0;return f|0}ea(0)| +0;Bc();B()}a=Z()|0;Jj(c);ba(a|0);B()}function CYa(a,b,c,d,e,f,g,h,i,j,k,l,m){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;l=l|0;m=m|0;var 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;n=fc-128|0;fc=n;a:{b:{c:{d:{if(K[a+229|0])break d;if(!((j|0)>0&(k|0)>0))kc[J[J[a>>2]+300>>2]](a,b,c,d,e,f,g,0,0,m);if(!((e|0)>=(j|0)&(f|0)>=(k|0))){J[n+32>>2]=13;J[n+88>>2]=!l;J[n+80>>2]=1;J[n+120>>2]=(l|0)!=0;J[n+112>>2]=1;p=n+32|0;Po(p,J[a+164>>2]);hg(J[n+40>>2],n+80|0);hg(J[n+40>>2],n+112| +0);u=vc(800);J[699344]=0;l=_(4,12)|0;o=J[699344];J[699344]=0;e:{f:{if((o|0)==1)break f;J[699344]=0;J[l>>2]=2217624;J[l+4>>2]=15;J[l+8>>2]=0;o=J[699344];J[699344]=0;if((o|0)==1)break e;J[699344]=0;l=na(3436,u|0,1,p|0,l|0,8)|0;o=J[699344];J[699344]=0;if((o|0)==1)break f;yc(p);kc[J[J[a>>2]+308>>2]](a,b,c,d,e,f,g,h,i,j,k,l,0,m);uc(zl(l));break d}a=Z()|0;uc(u);ba(a|0);B()}a=Z()|0;uc(l);uc(u);ba(a|0);B()}c=e<<2;h=P(c,f);if((h|0)<=0)break d;z=O[b+104>>3];o=so(h);if(!o)break d;u=c;w=n+80|0;h=w;J[h+12>>2]= +0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=351116;J[h+20>>2]=0;J[h+24>>2]=0;H[h+28|0]=0;J[n+32>>2]=e;J[n+112>>2]=f;J[699344]=0;J[n+24>>2]=0-c;yi(h,o,n+32|0,n+112|0,n+24|0,0);c=J[699344];J[699344]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((c|0)!=1){J[699344]=0;c=_(4,36)|0;h=J[699344];J[699344]=0;if((h|0)==1)break q;h=J[g+4>>2];m=J[g+8>>2];J[699344]=0;s=na(3426,c|0,d|0,e|0,m|0,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break p;J[699344]=0;c=_(4,36)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;J[699344]= +0;t=na(3426,c|0,i|0,j|0,1,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;$(3427,t|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;J[699344]=0;$(3427,s|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;q=O[b+392>>3]*255;r:{if(R(q)<2147483648){c=~~q;break r}c=-2147483648}c=(c|0)>0?c:0;x=(c|0)>=255?255:c;if((e|0)==(j|0)&(f|0)==(k|0))break l;m=so(P(j,k));if(m)break m;uc(Lm(t));uc(Lm(s));break g}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;uc(c);break a}a=Z()|0;break a}a=Z()|0;uc(c);break a}H[n+24| +0]=0;h=k-1|0;if(!((k|0)<=0|(j|0)<=0)){c=h;while(1){d=P(c,j);i=0;while(1){J[699344]=0;aa(3437,t|0,n+24|0)|0;p=J[699344];J[699344]=0;if((p|0)==1)break k;H[d+m|0]=K[n+24|0];d=d+1|0;i=i+1|0;if((j|0)!=(i|0))continue;break}d=(c|0)>0;c=c-1|0;if(d)continue;break}}J[n+112>>2]=0;s:{t:{if(!((f|0)<=0|(e|0)<=0)){q=+(f|0)/+(k|0);y=+(e|0)/+(j|0);c=j-1|0;while(1){k=f-1|0;v=+(k|0)/q;u:{if(R(v)<2147483648){d=~~v;break u}d=-2147483648}p=P((d|0)>(h|0)?h:d,j)+m|0;d=P(k,u);i=0;while(1){J[699344]=0;aa(3437,s|0,n+112|0)| +0;r=J[699344];J[699344]=0;if((r|0)==1)break t;v=+(i|0)/y;v:{if(R(v)<2147483648){r=~~v;break v}r=-2147483648}H[n+24|0]=K[((c|0)<(r|0)?c:r)+p|0];J[699344]=0;ia(3433,g|0,n+112|0,n+32|0,0);r=J[699344];J[699344]=0;if((r|0)==1)break s;H[d+o|0]=P(J[n+40>>2],255)+32768>>>16;H[(d|1)+o|0]=P(J[n+36>>2],255)+32768>>>16;H[(d|2)+o|0]=P(J[n+32>>2],255)+32768>>>16;H[(d|3)+o|0]=l?x:K[n+24|0]?0:x;d=d+4|0;i=i+1|0;if((i|0)!=(e|0))continue;break}d=(f|0)>1;f=k;if(d)continue;break}}uc(m);break h}a=Z()|0;break a}a=Z()|0; +break a}J[n+112>>2]=0;H[n+24|0]=0;if((k|0)<=0|(j|0)<=0)break h;k=k-1|0;c=j<<2;if(l)break i;while(1){d=P(c,k);i=0;while(1){J[699344]=0;aa(3437,s|0,n+112|0)|0;e=J[699344];J[699344]=0;w:{if((e|0)!=1){J[699344]=0;aa(3437,t|0,n+24|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break w}a=Z()|0;break a}J[699344]=0;ia(3433,g|0,n+112|0,n+32|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break j;H[d+o|0]=P(J[n+40>>2],255)+32768>>>16;H[(d|1)+o|0]=P(J[n+36>>2],255)+32768>>>16;H[(d|2)+o|0]=P(J[n+32>>2],255)+32768>>>16;H[(d| +3)+o|0]=K[n+24|0]?0:x;d=d+4|0;i=i+1|0;if((j|0)!=(i|0))continue;break}d=(k|0)>0;k=k-1|0;if(d)continue;break}break h}a=Z()|0;break a}a=Z()|0;break a}x:{while(1){d=P(c,k);i=0;y:{while(1){J[699344]=0;e=n+112|0;aa(3437,s|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break y;J[699344]=0;aa(3437,t|0,n+24|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break y;J[699344]=0;ia(3433,g|0,e|0,n+32|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break x;H[d+o|0]=P(J[n+40>>2],255)+32768>>>16;H[(d|1)+o|0]=P(J[n+36>>2],255)+32768>>> +16;H[(d|2)+o|0]=P(J[n+32>>2],255)+32768>>>16;H[(d|3)+o|0]=x;d=d+4|0;i=i+1|0;if((j|0)!=(i|0))continue;break}d=(k|0)>0;k=k-1|0;if(d)continue;break h}break}a=Z()|0;break a}a=Z()|0;break a}uc(Lm(t));uc(Lm(s));O[n+32>>3]=O[b+16>>3];O[n+40>>3]=-O[b+24>>3];q=O[b+32>>3];O[n+48>>3]=-q;y=O[b+40>>3];O[n+56>>3]=y;O[n+64>>3]=q+O[b+48>>3];O[n+72>>3]=z-(y+O[b+56>>3]);J[n+112>>2]=0;J[n+116>>2]=0;J[699344]=0;J[n+24>>2]=0;J[n+28>>2]=0;b=n+112|0;c=n+24|0;ma(3418,a|0,n+32|0,b|0,c|0,1);d=J[699344];J[699344]=0;if((d|0)== +1)break c;a=J[a+104>>2];J[n+16>>2]=1049880894;J[n+20>>2]=1071027177;J[n+8>>2]=1049880894;J[n+12>>2]=1071027177;d=J[J[a>>2]+376>>2];J[699344]=0;ja(d|0,a|0,w|0,b|0,c|0,n+16|0,n+8|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b}If(w)}fc=n+128|0;return}a=Z()|0;break a}a=Z()|0}If(w);ba(a|0);B()}function ps(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0;g=fc-48|0;fc=g;G=J[a>>2];x=J[a+40>>2]; +k=J[a+36>>2];c=J[J[a+2748>>2]+40>>2];H[g+39|0]=0;H[g+40|0]=0;H[g+41|0]=0;H[g+42|0]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+8>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g>>2]=0;J[g+4>>2]=0;d=P(b,1348)+a|0;w=d;J[d+44>>2]=0;f=J[d+68>>2];D=(c>>>0)/14|0;e=J[a+28>>2];d=J[a+24>>2];c=e+P(d,40)|0;a:{if(!b){if((d|0)<=0)break a;while(1){J[e+24>>2]=I[e+12>>1];J[e+28>>2]=I[e+14>>1];e=e+40|0;if(c>>>0>e>>>0)continue;break}break a}if((d|0)<=0)break a;while(1){J[e+24>>2]=I[e+14>>1];J[e+28>>2]=I[e+12>>1]; +e=e+40|0;if(c>>>0>e>>>0)continue;break}}b:{if((k|0)>0){R=(k<<2)+x|0;u=P(b,1348)+a|0;E=u+72|0;c=f>>31;y=(c^f)-c|0;M=y;c=0;while(1){v=J[x>>2];d=H[J[v+36>>2]+3|0];f=d>>31;c:{if(((d^f)-f|0)!=(y|0))break c;e=v;d=H[e+3|0];f=d>>31;if(((d^f)-f|0)!=(y|0))break c;while(1){e=J[e+36>>2];d=H[e+3|0];f=d>>31;if(((d^f)-f|0)!=(y|0)){v=J[e+32>>2];break c}if((e|0)!=(v|0))continue;break}}n=0;l=-32E3;h=32E3;e=v;m=32E3;k=-32E3;f=0;d=0;o=32E3;p=-32E3;N=0;j=0;s=32E3;t=-32E3;z=32E3;A=-32E3;F=0;q=0;B=32E3;C=-32E3;while(1){O= +1;d:{if(!n)break d;r=J[e+28>>2];n=L[e>>1];i=n&3;p=i?p:(p|0)<(r|0)?r:p;o=i?o:(o|0)>(r|0)?r:o;i=(k|0)<(r|0);d=i?n:d;k=i?r:k;i=(m|0)>(r|0);f=i?n:f;m=i?r:m;i=J[e+24>>2];l=(l|0)<(i|0)?i:l;h=(h|0)>(i|0)?i:h;if(!((e|0)==(v|0)|H[e+3|0]!=(M|0))){O=0;break d}e:{if(j){i=J[c+36>>2];if((i|0)==J[j+40>>2])break e}J[c+40>>2]=e;I[c+4>>1]=l-h>>>1;I[c+2>>1]=h+l>>>1;if(!(!((d|f)&3)|(p-o|0)>=(D|0)))H[c|0]=K[c|0]|1;I[c+8>>1]=k;I[c+6>>1]=m;I[c+10>>1]=k-m;j=c;s=h;t=l;z=m;A=k;F=f;q=d;B=o;C=p;c=0;break d}f:{if(K[i+2|0]==K[e+ +2|0]){J[j+40>>2]=e;i=(k|0)<(A|0);k=i?A:k;I[j+8>>1]=k;c=(m|0)>(z|0);m=c?z:m;I[j+6>>1]=m;I[j+10>>1]=k-m;l=(l|0)<(t|0)?t:l;h=(h|0)>(s|0)?s:h;I[j+4>>1]=l-h>>>1;I[j+2>>1]=h+l>>>1;f=c?F:f;d=i?q:d;p=(p|0)<(C|0)?C:p;o=(o|0)>(B|0)?B:o;H[j|0]=K[j|0]&254|((f|d)&3)!=0&(p-o|0)<(D|0);break f}i=A-z|0;Q=i>>31;r=k-m|0;n=r>>31;if((i^Q)-Q>>>0>(n^r)-n>>>0){J[j+40>>2]=e;t=(l|0)>(t|0)?l:t;s=(h|0)<(s|0)?h:s;I[j+4>>1]=t-s>>>1;I[j+2>>1]=s+t>>>1;break f}J[c+40>>2]=e;l=(l|0)<(t|0)?t:l;h=(h|0)>(s|0)?s:h;I[c+4>>1]=l-h>>>1;I[c+ +2>>1]=h+l>>>1;if(!(!((d|f)&3)|(p-o|0)>=(D|0)))H[c|0]=K[c|0]|1;I[c+6>>1]=m;I[c+10>>1]=r;I[c+8>>1]=k;J[j+40>>2]=J[c+40>>2];q=J[c+36>>2];J[j+32>>2]=J[c+32>>2];J[j+36>>2]=q;q=J[c+28>>2];J[j+24>>2]=J[c+24>>2];J[j+28>>2]=q;q=J[c+20>>2];J[j+16>>2]=J[c+16>>2];J[j+20>>2]=q;q=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=q;q=J[c+12>>2];J[j+8>>2]=J[c+8>>2];J[j+12>>2]=q;s=h;t=l;z=m;A=k;F=f;q=d;B=o;C=p}J[w+44>>2]=J[w+44>>2]-1;c=0}g:{if((e|0)==(v|0)){i=N;N=1;if(i)break g}n=1;if(!O){e=J[e+32>>2];continue}i=H[e+3|0];n=i>> +31;h:{if(((i^n)-n|0)==(y|0))break h;n=0;if(J[e+36>>2]==(e|0))break h;e=J[e+32>>2];continue}J[g+44>>2]=0;c=J[w+44>>2];i:{if((c|0)<=17){if(J[u+52>>2])break i;J[u+52>>2]=E;J[u+48>>2]=18;break i}f=J[u+48>>2];if((f|0)>(c|0))break i;if((f|0)>48806445){h=64;break b}c=f>>2;j:{if((c|0)>=-4){c=(c+f|0)+4|0;if((c|0)<48806447)break j}c=48806446}d=J[u+52>>2];k:{if((d|0)==(E|0)){d=_c(G,44,0,c,0,g+44|0);J[u+52>>2]=d;h=J[g+44>>2];if(h)break b;xc(d,E,792);break k}S=u,T=_c(G,44,f,c,d,g+44|0),J[S+52>>2]=T;h=J[g+44>> +2];if(h)break b}J[u+48>>2]=c;c=J[w+44>>2]}n=1;l=J[u+52>>2];J[w+44>>2]=c+1;k=P(c,44);c=k+l|0;H[c|0]=0;f=J[g+20>>2];d=J[g+16>>2];H[c+1|0]=d;H[c+2|0]=d>>>8;H[c+3|0]=d>>>16;H[c+4|0]=d>>>24;H[c+5|0]=f;H[c+6|0]=f>>>8;H[c+7|0]=f>>>16;H[c+8|0]=f>>>24;f=J[g+28>>2];d=J[g+24>>2];H[c+9|0]=d;H[c+10|0]=d>>>8;H[c+11|0]=d>>>16;H[c+12|0]=d>>>24;H[c+13|0]=f;H[c+14|0]=f>>>8;H[c+15|0]=f>>>16;H[c+16|0]=f>>>24;f=J[g+36>>2];d=J[g+32>>2];H[c+17|0]=d;H[c+18|0]=d>>>8;H[c+19|0]=d>>>16;H[c+20|0]=d>>>24;H[c+21|0]=f;H[c+22|0]= +f>>>8;H[c+23|0]=f>>>16;H[c+24|0]=f>>>24;d=K[g+39|0]|K[g+40|0]<<8|(K[g+41|0]<<16|K[g+42|0]<<24);H[c+24|0]=d;H[c+25|0]=d>>>8;H[c+26|0]=d>>>16;H[c+27|0]=d>>>24;J[c+28>>2]=32E3;J[c+40>>2]=J[g+8>>2];d=J[g+4>>2];J[c+32>>2]=J[g>>2];J[c+36>>2]=d;H[c+1|0]=i;J[c+40>>2]=e;J[c+36>>2]=e;j=j?c-44|0:0;m=J[e+28>>2];f=L[e>>1];d=f&3;p=d?-32E3:m;o=d?32E3:m;h=J[e+24>>2];if(J[e+36>>2]==(e|0)){k=k+l|0;I[k+2>>1]=h;if(d)H[c|0]=1;I[k+10>>1]=0;I[k+8>>1]=m;I[k+6>>1]=m;n=0;c=0}l=h;k=m;d=f;M=i;e=J[e+32>>2];continue}break}x=x+ +4|0;if(R>>>0>x>>>0)continue;break}}h=0;e=J[(P(b,1348)+a|0)+52>>2];if(!e)break b;a=J[w+44>>2];if((a|0)<=0)break b;b=P(a,44)+e|0;while(1){a=J[e+36>>2];f=J[J[a+36>>2]+28>>2];d=J[a+28>>2];a=J[e+40>>2];c=J[a+28>>2];l:{m:{if((d|0)<(c|0)){if((d|0)>(f|0))I[e+10>>1]=L[e+10>>1]+(d-f>>>1|0);a=J[J[a+32>>2]+28>>2];if((a|0)<=(c|0))break l;a=a-c|0;break m}if((d|0)<(f|0))I[e+10>>1]=L[e+10>>1]+(f-d>>>1|0);a=J[J[a+32>>2]+28>>2];if((a|0)>=(c|0))break l;a=c-a|0}I[e+10>>1]=L[e+10>>1]+(a>>>1|0)}e=e+44|0;if(b>>>0>e>>>0)continue; +break}}fc=g+48|0;return h}function VXa(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;d=fc-96|0;fc=d;k=MF(a,58,0);a:{if(k+1>>>0<2)break a;while(1){e=d+40|0;j=tQ(d+80|0,a,c,k-c|0,e);n=MF(a,59,c);J[699344]=0;c=k+1|0;f=na(3233,d+68|0,a|0,c|0,n-c|0,e|0)|0;c=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((c|0)!=1){k=MF(a,58,n);c=K[d+91|0];e=c<<24>>24<0;n:switch((e?J[d+84>>2]:c)-5|0){case 6:break k;case 0:break l;case 5:break m;case 4:break n;case 9:break g;case 10:break h; +default:break c}if(dd(e?J[j>>2]:j,847821,9))break c;J[699344]=0;m=+Oa(3485,f|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break f;O[b+8>>3]=m;break c}k=Z()|0;break e}c=e?J[j>>2]:j;if(dd(c,847922,10))break j;c=K[d+79|0];h=c<<24>>24;e=(h|0)<0;o:{p:{q:switch((e?J[d+72>>2]:c)-3|0){case 3:c=e?J[f>>2]:f;if(dd(c,848064,6))if(dd(c,848269,6))break c;H[b+1|0]=1;break c;case 2:if(!dd(e?J[f>>2]:f,848336,5))break p;break c;case 4:break o;case 0:break q;default:break b}if(dd(e?J[f>>2]:f,848478,3))break c}H[b+1|0]= +2;break c}if(dd(e?J[f>>2]:f,848492,7))break c;H[b+1|0]=3;break c}if(dd(e?J[j>>2]:j,848670,5)|K[(H[d+79|0]<0?J[f>>2]:f)|0]!=35)break c;J[699344]=0;e=na(3233,d+56|0,f|0,1,-1,d+40|0)|0;c=J[699344];J[699344]=0;r:{s:{if((c|0)!=1){if(H[d+79|0]<0)uc(J[f>>2]);c=J[e+4>>2];J[f>>2]=J[e>>2];J[f+4>>2]=c;J[f+8>>2]=J[e+8>>2];h=0;H[d+40|0]=0;H[d+95|0]=0;H[d+55|0]=0;c=0;i=0;t:{e=H[d+79|0];switch(((e|0)<0?J[d+72>>2]:e&255)-3|0){case 0:break s;case 3:break t;default:break r}}c=J[f>>2];J[d+8>>2]=d+55;J[d+4>>2]=d+95; +J[d>>2]=d+40;Zg((e|0)<0?c:f,848768,d);h=K[d+55|0];c=K[d+95|0];i=K[d+40|0];break r}break f}c=J[f>>2];J[d+24>>2]=d+55;J[d+20>>2]=d+95;J[d+16>>2]=d+40;Zg((e|0)<0?c:f,848953,d+16|0);h=P(K[d+55|0],17);c=P(K[d+95|0],17);i=P(K[d+40|0],17)}O[b+40>>3]=+((h&255)>>>0)/255;O[b+32>>3]=+((c&255)>>>0)/255;O[b+24>>3]=+((i&255)>>>0)/255;break c}c=e?J[j>>2]:j;if(dd(c,849106,11))break i;c=K[d+79|0];e=c<<24>>24<0;u:{v:{w:{x:switch((e?J[d+72>>2]:c)-3|0){case 0:c=e?J[f>>2]:f;if(!dd(c,849352,3))break d;if(!dd(c,849437, +3))break d;if(dd(c,849534,3))break w;break d;case 1:c=e?J[f>>2]:f;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))!=1684828002)break v;break u;case 3:break x;default:break v}c=e?J[f>>2]:f;if(!dd(c,849239,6))break d;if(dd(c,849823,6))break v;break u}if(!dd(c,849997,3))break u}if(Dl(f,850115))break u;if(Dl(f,850211))break u;if(!Dl(f,850340))break c}J[b+4>>2]=J[b+4>>2]|1;break c}if(dd(c,850465,10))break c;g=K[d+79|0];c=g<<24>>24<0;e=c?J[f>>2]:f;h=c?J[d+72>>2]:g;y:{if((h|0)==6){if(!dd(e,849239,6)){J[b+ +4>>2]=J[b+4>>2]&-3;break c}if(!dd(e,850614,6))break y;break c}if((h|0)<7)break c;g=e+h|0;c=e;while(1){c=Cg(c,111,h-6|0);if(!c)break c;if(dd(c,850721,7)){c=c+1|0;h=g-c|0;if((h|0)>=7)continue;break c}break}if((c|0)==(g|0)|(c-e|0)==-1)break c}J[b+4>>2]=J[b+4>>2]|2;break c}if(dd(c,850789,11))break c;e=J[f>>2];c=K[d+79|0];g=c<<24>>24<0;z:{if(K[(g?e:f)|0]==39){J[699344]=0;na(3233,d+40|0,f|0,1,(g?J[d+72>>2]:c)-2|0,d+95|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break z;break f}if(!g){J[d+48>>2]=J[f+8>>2]; +c=J[f+4>>2];J[d+40>>2]=J[f>>2];J[d+44>>2]=c;break z}J[699344]=0;ca(2838,d+40|0,e|0,J[d+72>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break f}if(H[b+59|0]<0)uc(J[b+48>>2]);c=J[d+44>>2];J[b+48>>2]=J[d+40>>2];J[b+52>>2]=c;J[b+56>>2]=J[d+48>>2];break c}if(dd(e?J[j>>2]:j,850934,15))break c;g=K[d+79|0];c=g<<24>>24<0;e=c?J[f>>2]:f;g=c?J[d+72>>2]:g;l=e+g|0;i=e;c=g;A:{if((c|0)<12)break A;while(1){c=Cg(i,108,c-11|0);if(!c)break A;if(dd(c,851056,12)){i=c+1|0;c=l-i|0;if((c|0)>=12)continue;break A}break}if((c|0)== +(l|0)|(c-e|0)==-1)break A;J[b+4>>2]=J[b+4>>2]|8}i=e;c=g;h=(c|0)<4;if(h)break c;B:{C:{D:{while(1){c=Cg(i,119,c-3|0);if(!c)break D;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))!=1685221239){i=c+1|0;c=l-i|0;if((c|0)>=4)continue;break D}break}if((c|0)==(l|0))break D;if((c-e|0)!=-1)break C}i=e;c=g;if((c|0)<9)break B;while(1){c=Cg(i,117,c-8|0);if(!c)break B;if(dd(c,851282,9)){i=c+1|0;c=l-i|0;if((c|0)>=9)continue;break B}break}if((c|0)==(l|0)|(c-e|0)==-1)break B}J[b+4>>2]=J[b+4>>2]|16}c=e;if(h)break c; +while(1){c=Cg(c,110,g-3|0);if(!c)break c;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))!=1701736302){c=c+1|0;g=l-c|0;if((g|0)>=4)continue;break c}break}if((c|0)==(l|0)|(c-e|0)==-1)break c;J[b+4>>2]=J[b+4>>2]&-25;break c}if(dd(e?J[j>>2]:j,851399,14))break c;J[b+4>>2]=J[b+4>>2]|32;J[699344]=0;m=+Oa(3485,f|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break f;O[b+16>>3]=m;if(K[(H[d+79|0]<0?J[f>>2]:f)|0]!=45|m!=0)break c;J[b+16>>2]=1202590843;J[b+20>>2]=-1081836831;break c}k=Z()|0;if(H[d+79|0]>=0)break e; +uc(J[f>>2])}if(H[d+91|0]<0)uc(J[j>>2]);ba(k|0);B()}J[b+4>>2]=J[b+4>>2]&-2}h=K[d+79|0]}if(h<<24>>24<0)uc(J[f>>2]);if(H[d+91|0]<0)uc(J[j>>2]);if((k|0)==-1)break a;c=n+1|0;if(k>>>0>c>>>0)continue;break}}fc=d+96|0}function mrb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;i=fc-32|0;fc=i;f=J[c>>2];h=J[c+4>>2];J[i+24>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;j=h-f|0;o=j>>2;c=0;a:{b:{c:{if((f|0)!=(h|0)){if(o>>>0>=1073741824){J[699344]=0;$(1587,i+16|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break c;break a}J[699344]=0;g=_(4,j|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[i+16>>2]=g;J[i+24>>2]=(o<<2)+g;c=g;while(1){J[c>>2]=J[f>>2];c=c+4|0;f=f+4|0;if((h|0)!=(f|0))continue;break}J[i+20>>2]=c}J[699344]=0;J[i+4>>2]=b;HE(g,c,i+4|0,(c|0)!=(g|0)?62-(S(c-g>>2)<<1)|0:0);c=J[699344];J[699344]=0;d:{if((c|0)!=1){J[i+12>>2]=0;J[i+4>>2]=0;q=e?12:0;r=d+4|0;while(1){e:{if(o>>>0<=m>>>0){J[699344]=0;ca(1601,a|0,5,0);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;ca(1601, +a|0,5,o|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;$(1599,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;a=J[i+4>>2];if(a)uc(a);a=J[i+16>>2];if(a)uc(a);fc=i+32|0;return}k=J[i+16>>2];c=J[k+(m<<2)>>2];n=J[J[J[b+12>>2]+(c<<2)>>2]+4>>2];f=J[i+4>>2];g=J[i+12>>2];f:{if(f>>>0>>0){J[f>>2]=c;c=f+4|0;J[i+8>>2]=c;break f}g=g-f|0;h=g>>1;g=g>>>0>=2147483644?1073741823:h>>>0<=1?1:h;if(g>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break e}J[699344]=0;g=g<< +2;h=_(4,g|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break e;J[h>>2]=c;c=h+4|0;J[i+8>>2]=c;J[i+4>>2]=h;g=g+h|0;J[i+12>>2]=g;if(f)uc(f);f=h}m=m+1|0;if(m>>>0>>0){g:{while(1){h=J[k+(m<<2)>>2];if((n|0)!=J[J[J[b+12>>2]+(h<<2)>>2]+4>>2])break g;h:{if(c>>>0>>0){J[c>>2]=h;c=c+4|0;J[i+8>>2]=c;break h}i:{j:{l=J[i+4>>2];s=c-l>>2;f=s+1|0;k:{if(f>>>0>=1073741824){J[699344]=0;$(1589,i+4|0);break k}g=g-l|0;j=g>>1;g=g>>>0>=2147483644?1073741823:f>>>0>>0?j:f;if(!g){j=0;break i}if(g>>>0<1073741824)break j;J[699344]= +0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a;break e}J[699344]=0;j=_(4,g<<2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e}f=(s<<2)+j|0;J[f>>2]=h;g=(g<<2)+j|0;h=f+4|0;if((c|0)!=(l|0))while(1){f=f-4|0;c=c-4|0;J[f>>2]=J[c>>2];if((c|0)!=(l|0))continue;break}J[i+12>>2]=g;J[i+8>>2]=h;J[i+4>>2]=f;if(l)uc(l);c=h}m=m+1|0;if((m|0)!=(o|0))continue;break}m=o}f=J[i+4>>2]}J[699344]=0;J[i+28>>2]=b;GE(f,c,i+28|0,(c|0)!=(f|0)?62-(S(c-f>>2)<<1)|0:0);c=J[699344];J[699344]=0;l:{m:{if((c|0)!=1){J[699344]=0; +l=n-q|0;ca(1601,a|0,1,l-p|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;c=0;n=J[i+4>>2];if((n|0)!=J[i+8>>2])break m;break l}break e}while(1){h=J[n>>2];f=h<<2;g=J[J[f+J[b+12>>2]>>2]>>2];J[699344]=0;p=g-q|0;ca(1601,a|0,4,p-c|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[f+J[b+12>>2]>>2];n:{if(e){J[699344]=0;c=aa(1603,c|0,6)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break n;break e}J[699344]=0;if(c)J[c+16>>2]=J[c+16>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break e}J[699344]=0;J[i+28>>2]=c;qp(c,0); +c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[J[i+28>>2]+40>>2];J[699344]=0;ma(1598,a|0,c|0,p|0,l|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break e;g=r;c=g;f=J[c>>2];o:{p:{if(!f)break p;while(1){c=f;f=J[c+16>>2];if((f|0)>(h|0)){g=c;f=J[c>>2];if(f)continue;break p}if((f|0)>=(h|0)){j=c;break o}f=J[c+4>>2];if(f)continue;break}g=c+4|0}J[699344]=0;j=_(4,24)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[j+16>>2]=h;J[j+8>>2]=c;J[j>>2]=0;J[j+4>>2]=0;J[j+20>>2]=0;J[g>>2]=j;h=j;c=J[J[d>>2]>>2];if(c){J[d>> +2]=c;h=J[g>>2]}k=J[r>>2];c=(k|0)==(h|0);H[h+12|0]=c;q:{if(c)break q;while(1){f=J[h+8>>2];if(K[f+12|0])break q;r:{c=J[f+8>>2];g=J[c>>2];if((g|0)==(f|0)){g=J[c+4>>2];if(!(!g|K[g+12|0]))break r;s:{if(J[f>>2]==(h|0)){h=f;break s}h=J[f+4>>2];k=J[h>>2];J[f+4>>2]=k;g=f;if(k){J[k+8>>2]=f;c=J[f+8>>2];g=J[c>>2]}J[h+8>>2]=c;J[((f|0)==(g|0)?c:c+4|0)>>2]=h;J[h>>2]=f;J[f+8>>2]=h;c=J[h+8>>2];f=J[c>>2]}H[h+12|0]=1;H[c+12|0]=0;g=J[f+4>>2];J[c>>2]=g;if(g)J[g+8>>2]=c;g=J[c+8>>2];J[f+8>>2]=g;J[g+((J[g>>2]!=(c|0))<<2)>> +2]=f;J[f+4>>2]=c;J[c+8>>2]=f;break q}if(!(K[g+12|0]|!g))break r;t:{if(J[f>>2]!=(h|0)){h=f;break t}g=J[h+4>>2];J[f>>2]=g;if(g){J[g+8>>2]=f;c=J[f+8>>2]}J[h+8>>2]=c;J[(J[c>>2]==(f|0)?c:c+4|0)>>2]=h;J[h+4>>2]=f;J[f+8>>2]=h;c=J[h+8>>2]}H[h+12|0]=1;H[c+12|0]=0;f=J[c+4>>2];g=J[f>>2];J[c+4>>2]=g;if(g)J[g+8>>2]=c;g=J[c+8>>2];J[f+8>>2]=g;J[g+((J[g>>2]!=(c|0))<<2)>>2]=f;J[f>>2]=c;J[c+8>>2]=f;break q}H[f+12|0]=1;H[c+12|0]=(c|0)==(k|0);H[g+12|0]=1;h=c;if((c|0)!=(k|0))continue;break}}J[d+8>>2]=J[d+8>>2]+1}J[j+ +20>>2]=t;J[699344]=0;$(1584,i+28|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;t=t+1|0;c=p;n=n+4|0;if((n|0)!=J[i+8>>2])continue;break}}J[699344]=0;da(1606,a|0,4);c=J[699344];J[699344]=0;p=l;if((c|0)!=1)continue}break}c=Z()|0;a=J[i+4>>2];if(!a)break d;J[i+8>>2]=a;uc(a);break d}c=Z()|0}a=J[i+16>>2];if(!a)break b;uc(a);ba(c|0);B()}c=Z()|0;a=J[i+16>>2];if(!a)break b;J[i+20>>2]=a;uc(a)}ba(c|0);B()}B()}function yK(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=fc-96|0;fc=f;c=J[a+36>>2];i=J[c+56>>2];J[a+ +200>>2]=J[a+200>>2]+3;b=J[c+16>>2];J[c+16>>2]=b+3;J[c+32>>2]=J[c+32>>2]+3;b=K[b+3|0];if((b|0)==37){Yd(a);c=J[a+36>>2];b=K[J[c+16>>2]]}a:{if(b&255)break a;if((Nd(c)|0)>0)break a;while(1){c=J[a+40>>2];if((c|0)<2)break a;b:{c:{d:{if(!J[693384]){b=c-1|0;J[a+40>>2]=b;d=J[a+48>>2];break d}J[f+80>>2]=c;d=0;kc[J[663297]](J[693366],36125,f+80|0);c=J[a+40>>2];if((c|0)<=0)break b;b=c-1|0;J[a+40>>2]=b;d=J[a+48>>2];h=0;e=0;if((c|0)==1)break c}h=J[((c<<2)+d|0)-8>>2];e=b}J[a+36>>2]=h;b=(e<<2)+d|0;d=J[b>>2];J[b>> +2]=0}th(d);b=J[a+36>>2];if(K[J[b+16>>2]])break a;if((Nd(b)|0)<=0)continue;break}}be(a);e:{f:{g:{h:{i:{j:{d=J[a+36>>2];b=J[d+16>>2];if(K[b|0]!=73)break j;k:switch(K[b+1|0]-71|0){case 7:if(K[b+2|0]!=67|K[b+3|0]!=76|(K[b+4|0]!=85|K[b+5|0]!=68))break j;if(K[b+6|0]!=69)break j;J[a+200>>2]=J[a+200>>2]+7;J[d+16>>2]=b+7;J[d+32>>2]=J[d+32>>2]+7;b=K[b+7|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}l:{if(b&255)break l;if((Nd(d)|0)>0)break l;He(a)}be(a);b=J[a+36>>2];if(K[J[b+16>>2]]!=91){Xe(a,83,0);iq(a); +break e}if(J[b+56>>2]!=(i|0))Um(a,90,29920,0,0);Zd(a);if(J[693384]){b=J[a+36>>2];m:{if(!b)break m;e=J[b+4>>2];if(!e)break m;b=J[b+28>>2];J[f+48>>2]=e;J[f+52>>2]=b;kc[J[663297]](J[693366],29803,f+48|0)}kc[J[663297]](J[693366],33336,0)}d=J[a+36>>2];n:{while(1){g=J[d+16>>2];b=K[g|0];o:{if((b|0)!=93){if(b)break o;break n}if(K[g+1|0]!=93)break o;if(K[g+2|0]==62)break n}if(J[a+172>>2]==-1)break n;j=J[d+36>>2];p:{q:{r:{s:{if((b|0)==32)break s;if((b|0)==60){if(K[g+1|0]!=33|K[g+2|0]!=91)break q;yK(a);break p}if((b- +9&255)>>>0<2)break s;if((b|0)==37)break r;if((b|0)!=13)break q}Zd(a);break p}jC(a);break p}zK(a)}d=J[a+36>>2];e=J[d+16>>2];t:{if(K[e|0])break t;c=J[a+40>>2];if((c|0)<=1)break t;while(1){u:{v:{w:{if(!J[693384]){b=c-1|0;J[a+40>>2]=b;d=J[a+48>>2];break w}J[f+32>>2]=c;d=0;kc[J[663297]](J[693366],36125,f+32|0);c=J[a+40>>2];if((c|0)<=0)break u;b=c-1|0;J[a+40>>2]=b;d=J[a+48>>2];h=0;e=0;if((c|0)==1)break v}h=J[((c<<2)+d|0)-8>>2];e=b}J[a+36>>2]=h;b=(e<<2)+d|0;d=J[b>>2];J[b>>2]=0}th(d);b=J[a+36>>2];x:{if(K[J[b+ +16>>2]])break x;if((Nd(b)|0)>0)break x;c=J[a+40>>2];if((c|0)>=2)continue}d=J[a+36>>2];e=J[d+16>>2];if(K[e|0])break t;c=J[a+40>>2];if((c|0)>1)continue;break}}if((e|0)!=(g|0)|J[d+36>>2]!=(j|0))continue;break}Xe(a,60,0);iq(a)}if(!J[693384])break f;c=J[a+36>>2];if(c)break i;d=33299;break g;case 0:break k;default:break j}if(K[b+2|0]!=78|K[b+3|0]!=79|(K[b+4|0]!=82|K[b+5|0]!=69))break j;J[a+200>>2]=J[a+200>>2]+6;J[d+16>>2]=b+6;J[d+32>>2]=J[d+32>>2]+6;b=K[b+6|0];if((b|0)==37){Yd(a);d=J[a+36>>2];b=K[J[d+16>> +2]]}y:{if(b&255)break y;if((Nd(d)|0)>0)break y;He(a)}be(a);b=J[a+36>>2];if(K[J[b+16>>2]]!=91){Xe(a,83,0);iq(a);break e}if(J[b+56>>2]!=(i|0))Um(a,90,29920,0,0);Zd(a);if(J[693384]){b=J[a+36>>2];z:{if(!b)break z;e=J[b+4>>2];if(!e)break z;b=J[b+28>>2];J[f+64>>2]=e;J[f+68>>2]=b;kc[J[663297]](J[693366],29803,f- -64|0)}kc[J[663297]](J[693366],33262,0)}h=J[a+212>>2];if(!J[a+288>>2])J[a+212>>2]=1;g=J[a+172>>2];J[a+172>>2]=15;d=0;while(1){A:{e=J[a+36>>2];b=J[e+16>>2];c=K[b|0];if(!c|J[a+172>>2]==-1)break A; +B:{C:{D:{E:{if((c|0)!=60){if((c|0)!=93|K[b+1|0]!=93|K[b+2|0]!=62)break E;if(!d)break A;J[a+200>>2]=J[a+200>>2]+3;J[e+16>>2]=b+3;J[e+32>>2]=J[e+32>>2]+3;d=d-1|0;b=K[b+3|0];if((b|0)==37){Yd(a);e=J[a+36>>2];b=K[J[e+16>>2]]}if(b&255)break B;if((Nd(e)|0)<=0)break C;break B}if(K[b+1|0]!=33)break E;if(K[b+2|0]==91)break D}Zd(a);continue}J[a+200>>2]=J[a+200>>2]+3;J[e+16>>2]=b+3;J[e+32>>2]=J[e+32>>2]+3;d=d+1|0;b=K[b+3|0];if((b|0)==37){Yd(a);e=J[a+36>>2];b=K[J[e+16>>2]]}if(b&255)break B;if((Nd(e)|0)>0)break B}He(a)}if((d| +0)>=0)continue}break}J[a+172>>2]=g;J[a+212>>2]=h;if(!J[693384])break f;c=J[a+36>>2];if(!c){d=33226;break g}d=33226;e=J[c+4>>2];if(e)break h;break g}if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=95;J[f>>2]=15795;Hc(0,0,0,a,0,1,95,3,0,0,0,0,32906,f);J[a+12>>2]=0}J[a+212>>2]=1;J[a+172>>2]=-1;c=J[a+36>>2];if(!c)break e;b=J[c+40>>2];if(b){kc[b|0](J[c+12>>2]);c=J[a+36>>2];J[c+40>>2]=0}J[c+12>>2]=39197;J[c+16>>2]=39197;break e}d=33299;e=J[c+4>>2];if(!e)break g}b=J[c+28>>2];J[f+16>>2]=e;J[f+20>>2]=b;kc[J[663297]](J[693366], +29803,f+16|0)}kc[J[663297]](J[693366],d,0)}F:{c=J[a+36>>2];b=J[c+16>>2];if(K[b|0])break F;if(!(J[a+292>>2]|(b-J[c+12>>2]|0)<501|(J[c+20>>2]-b|0)>499)){_g(a);c=J[a+36>>2];if(K[J[c+16>>2]])break F}Xe(a,59,0);break e}if(J[c+56>>2]!=(i|0))Um(a,90,29920,0,0);if(J[a+172>>2]==-1)break e;c=J[a+36>>2];e=J[c+16>>2];b=e+3|0;if(b>>>0>M[c+20>>2])break e;J[a+200>>2]=J[a+200>>2]+3;J[c+16>>2]=b;J[c+32>>2]=J[c+32>>2]+3;b=K[e+3|0];if((b|0)==37){Yd(a);c=J[a+36>>2];b=K[J[c+16>>2]]}if(b&255)break e;if((Nd(c)|0)>0)break e; +He(a)}fc=f+96|0}function iM(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;a:while(1){l=b-4|0;b:while(1){g=a;c:while(1){d:{e:{f:{g:{h:{i:{j:{k:{h=b-g>>2;switch(h|0){case 3:break j;case 2:break k;case 0:case 1:break d;case 4:break g;case 5:break i;default:break h}}c=J[J[c>>2]>>2];a=b-4|0;b=J[a>>2];d=J[g>>2];if(!(O[J[c+P(b,12)>>2]>>3]>2]>>3]))break d;J[g>>2]=b;J[a>>2]=d;return}a=J[J[c>>2]>>2];b=b-4|0;d=J[b>>2];j=O[J[a+P(d,12)>>2]>>3];e=J[g+4>>2];m=O[J[a+P(e,12)>>2]>> +3];c=J[g>>2];n=O[J[a+P(c,12)>>2]>>3];if(!(m>2]=d;J[b>>2]=e;b=J[g+4>>2];c=J[g>>2];if(!(O[J[a+P(b,12)>>2]>>3]>2]>>3]))break d;J[g+4>>2]=c;J[g>>2]=b;return}if(j>2]=d;J[b>>2]=c;return}J[g+4>>2]=c;J[g>>2]=e;d=J[b>>2];if(!(n>O[J[a+P(d,12)>>2]>>3]))break d;J[g+4>>2]=d;J[b>>2]=c;return}hM(g,g+4|0,g+8|0,g+12|0,b-4|0,c);return}if((h|0)<=30){a=g+4|0;e=g+8|0;c=J[J[c>>2]>>2];d=J[g+8>>2];j=O[J[c+P(d,12)>>2]>>3];f=J[g+4>>2];m=O[J[c+P(f,12)>>2]>>3];l=J[g>>2];n= +O[J[c+P(l,12)>>2]>>3];l:{m:{if(!(m>2]=d;J[e>>2]=f;i=g;h=a;if(j>2]=l;J[g>>2]=f;i=a;if(!(j>2]=d;J[h>>2]=l}d=g+12|0;if((d|0)==(b|0))break d;while(1){h=d;i=J[d>>2];j=O[J[c+P(i,12)>>2]>>3];f=J[e>>2];if(j>2]>>3]){while(1){n:{J[h>>2]=f;a=e;if((g|0)==(a|0)){a=g;break n}h=a;e=a-4|0;f=J[e>>2];if(j>2]>>3])continue}break}J[a>>2]=i}e=d;a=e+4|0;d=a;if((a|0)!=(b|0))continue;break}break d}if(!d){if((b| +0)==(g|0))break d;o=h-2>>>1|0;a=o;while(1){l=a;o:{if((a|0)>(o|0))break o;i=(a<<2)+g|0;e=a<<1;d=e|1;a=(d<<2)+g|0;k=J[J[c>>2]>>2];e=e+2|0;p:{if((h|0)<=(e|0)){e=d;break p}if(!(O[J[k+P(J[a>>2],12)>>2]>>3]>2],12)>>2]>>3])){e=d;break p}a=a+4|0}p=J[i>>2];j=O[J[k+P(p,12)>>2]>>3];d=J[a>>2];if(j>O[J[k+P(d,12)>>2]>>3])break o;while(1){q:{f=a;J[i>>2]=d;if((e|0)>(o|0))break q;e=e<<1;d=e|1;a=(d<<2)+g|0;e=e+2|0;r:{if((h|0)<=(e|0)){e=d;break r}if(!(O[J[k+P(J[a>>2],12)>>2]>>3]>2],12)>> +2]>>3])){e=d;break r}a=a+4|0}i=f;d=J[a>>2];if(!(j>O[J[k+P(d,12)>>2]>>3]))continue}break}J[f>>2]=p}a=l-1|0;if(l)continue;break}while(1){i=h;o=h-2>>>1|0;p=J[c>>2];l=J[g>>2];a=0;e=g;while(1){f=a<<1;d=f|1;h=e;k=(a<<2)+e|0;e=k+4|0;f=f+2|0;s:{if((f|0)>=(i|0)){a=d;break s}a=d;d=J[p>>2];j=O[J[d+P(J[k+4>>2],12)>>2]>>3];q=d;d=k+8|0;if(!(j>2],12)>>2]>>3]))break s;e=d;a=f}J[h>>2]=J[e>>2];if((a|0)<=(o|0))continue;break}b=b-4|0;t:{if((e|0)==(b|0)){J[e>>2]=l;break t}J[e>>2]=J[b>>2];J[b>>2]=l;a=(e-g| +0)+4>>2;if((a|0)<2)break t;l=J[J[c>>2]>>2];k=J[e>>2];j=O[J[l+P(k,12)>>2]>>3];a=a-2>>>1|0;h=(a<<2)+g|0;f=J[h>>2];if(!(j>O[J[l+P(f,12)>>2]>>3]))break t;while(1){u:{d=h;J[e>>2]=f;if(!a)break u;e=d;a=a-1>>>1|0;h=(a<<2)+g|0;f=J[h>>2];if(j>O[J[l+P(f,12)>>2]>>3])continue}break}J[d>>2]=k}h=i-1|0;if((i|0)>2)continue;break}break d}i=(h<<1&-4)+g|0;v:{if(h>>>0>=1E3){a=h&-4;h=hM(g,a+g|0,i,a+i|0,l,c);a=J[J[c>>2]>>2];break v}a=J[J[c>>2]>>2];f=J[l>>2];j=O[J[a+P(f,12)>>2]>>3];k=J[i>>2];m=O[J[P(k,12)+a>>2]>>3];e=J[g>> +2];n=O[J[P(e,12)+a>>2]>>3];w:{if(!(m>2]=f;J[l>>2]=k;h=1;e=J[i>>2];f=J[g>>2];if(!(O[J[P(e,12)+a>>2]>>3]>2]>>3]))break v;J[g>>2]=e;J[i>>2]=f;break w}if(j>2]=f;J[l>>2]=e;h=1;break v}J[g>>2]=k;J[i>>2]=e;h=1;f=J[l>>2];if(!(n>O[J[P(f,12)+a>>2]>>3]))break v;J[i>>2]=f;J[l>>2]=e}h=2}d=d-1|0;e=l;f=J[g>>2];j=O[J[P(f,12)+a>>2]>>3];m=O[J[P(J[i>>2],12)+a>>2]>>3];if(!(j>2];if(j>2]>>3])break e; +if((f|0)==(l|0))break d;while(1){h=J[f>>2];if(j>2]>>3]){J[f>>2]=e;J[l>>2]=h;f=f+4|0;break e}f=f+4|0;if((l|0)!=(f|0))continue;break}break d}k=J[e>>2];if(!(m>O[J[P(k,12)+a>>2]>>3]))continue;break}J[g>>2]=k;J[e>>2]=f;h=h+1|0}f=g+4|0;if(f>>>0>=e>>>0)break f;while(1){j=O[J[P(J[i>>2],12)+a>>2]>>3];while(1){k=f;f=f+4|0;o=J[k>>2];if(j>O[J[P(o,12)+a>>2]>>3])continue;break}while(1){e=e-4|0;p=J[e>>2];if(!(j>O[J[P(p,12)+a>>2]>>3]))continue;break}if(e>>>0>>0){f=k;break f}else{J[k>>2]=p;J[e>> +2]=o;i=(i|0)==(k|0)?e:i;h=h+1|0;continue}}}gM(g,g+4|0,g+8|0,b-4|0,J[J[c>>2]>>2]);break d}x:{if((f|0)==(i|0))break x;e=J[i>>2];j=O[J[P(e,12)+a>>2]>>3];k=a;a=J[f>>2];if(!(j>2]>>3]))break x;J[f>>2]=e;J[i>>2]=a;h=h+1|0}if(!h){e=O4(g,f,c);a=f+4|0;if(O4(a,b,c)){a=g;b=f;if(!e)continue a;break d}if(e)continue b}if((f-g|0)<(b-f|0)){iM(g,f,c,d);a=f+4|0;continue b}iM(f+4|0,b,c,d);a=g;b=f;continue a}e=l;if((f|0)==(e|0))break d;while(1){j=O[J[P(J[g>>2],12)+a>>2]>>3];while(1){h=f;f=f+4|0;i=J[h>> +2];if(!(j>2]>>3]))continue;break}while(1){e=e-4|0;k=J[e>>2];if(j>2]>>3])continue;break}if(e>>>0<=h>>>0){g=h;continue c}else{J[h>>2]=k;J[e>>2]=i;continue}}}break}break}break}}function Gza(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;e=fc+-64|0;fc=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{f=J[c>>2];m:{if(f){if(K[J[f+12>>2]]==3)break l;J[a>>2]=0;J[a+4>>2]=J[685894];b=J[J[f>>2]+28>>2];J[699344]=0;ca(b|0,e+52|0,f|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break m;b=Z()| +0;break b}J[a>>2]=0;J[a+4>>2]=J[685894];J[e+52>>2]=0}J[699344]=0;aa(5153,a|0,e+52|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[e+52>>2];J[e+52>>2]=0;if(!b)break k;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break k;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break k}break a}b=Z()|0;zc(e+52|0);break b}f=vV(f,2388085,0);n:{if((f|0)>=0)break n;f=0;d=J[c>>2];if(!d)break n;f=J[d+8>>2]}J[e+52>>2]=0;d=J[685894];J[e+56>>2]=d;J[e+48>>2]=d;J[e+44>>2]=0; +J[699344]=0;h=e+36|0;d=h;ia(5313,d|0,c|0,0,f|0);g=J[699344];J[699344]=0;o:{p:{q:{r:{s:{t:{u:{if((g|0)!=1){J[699344]=0;ia(5584,b|0,d|0,e+52|0,e+44|0);d=J[699344];J[699344]=0;if((d|0)==1)break s;d=J[e+52>>2];if(J[d+8>>2]?d:0)break q;J[699344]=0;d=pd(h,2390937,-1);g=J[699344];J[699344]=0;if((g|0)==1)break s;if(d)break u;d=2417360;break t}f=Z()|0;break c}J[699344]=0;g=e+36|0;h=pd(g,2391231,-1);d=J[699344];J[699344]=0;if((d|0)==1)break s;d=2417424;if(!h)break t;J[699344]=0;d=pd(g,2391834,-1);g=J[699344]; +J[699344]=0;if((g|0)==1)break s;if(d)break r;d=2417456}J[699344]=0;aa(5224,e+52|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break q}f=Z()|0;break d}J[699344]=0;f=e+20|0;ca(5218,f|0,2388864,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;J[699344]=0;c=e+28|0;ca(5218,c|0,2390937,f|0);d=J[699344];J[699344]=0;v:{w:{if((d|0)!=1){J[699344]=0;ca(5583,a|0,b|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break w;wc(c);wc(f);break p}f=Z()|0;break v}f=Z()|0;wc(e+28|0)}wc(e+20|0);break d}x:{while(1){d=J[c>>2]; +if(d)h=J[d+8>>2];else h=0;if(h>>>0<=f>>>0)break x;J[e+28>>2]=0;J[e+32>>2]=J[685894];g=f+1|0;y:{z:{A:{B:{C:{D:{E:{F:{G:{if(f){f=!d|(f|0)>=0?f:J[d+8>>2]+f|0;if(!(!d|(f|0)<0|J[d+8>>2]<(f|0))){h=J[d+12>>2];break G}J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)==1)break F;B()}if(!d){f=0;break B}f=0;h=J[d+12>>2]}if(K[f+h|0]!=11)break C;f=J[d+8>>2];J[699344]=0;d=e+12|0;ia(5313,d|0,c|0,g|0,f|0);g=J[699344];J[699344]=0;if((g|0)==1)break E;J[699344]=0;ca(5583,e+20|0,b|0,d|0);d=J[699344];J[699344]=0; +if((d|0)==1)break D;d=J[e+20>>2];H:{if(d){g=J[J[d>>2]+28>>2];J[699344]=0;ca(g|0,e+60|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break H;f=Z()|0;break g}J[e+60>>2]=0}J[699344]=0;aa(5153,e+28|0,e+60|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[e+60>>2];J[e+60>>2]=0;if(!d)break A;J[699344]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break A;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break A}break a}f=Z()|0;zc(e+60|0);break g}f=Z()|0;break e}f=Z()|0;break e}f= +Z()|0;break f}J[699344]=0;f=ga(5585,d|0,2389457,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break y;if((f|0)>=0)break B;f=J[c>>2];if(!f){f=0;break B}f=J[f+8>>2]}J[699344]=0;ia(5313,e+20|0,c|0,g|0,f-g|0);d=J[699344];J[699344]=0;if((d|0)!=1){d=J[e+20>>2];I:{if(d){g=J[J[d>>2]+28>>2];J[699344]=0;ca(g|0,e+12|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break I;f=Z()|0;break i}J[e+12>>2]=0}J[699344]=0;aa(5153,e+28|0,e+12|0)|0;d=J[699344];J[699344]=0;J:{if((d|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break J; +J[699344]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break J;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break J}break a}f=Z()|0;zc(e+12|0);break i}d=J[e+28>>2];J[e+32>>2]=J[(d?d+12|0:2743576)>>2];wc(e+20|0);break z}f=Z()|0;break e}d=J[e+28>>2];J[e+32>>2]=J[(d?d+12|0:2743576)>>2];wc(e+20|0);wc(e+12|0)}J[699344]=0;i=i+1|0;d=e+28|0;ia(5586,b|0,e+52|0,i|0,d|0);g=J[699344];J[699344]=0;if((g|0)==1)break y;wc(d);continue}break}f=Z()|0;break e}J[699344]=0;ia(5586, +b|0,e+52|0,0,e+44|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;J[a>>2]=0;J[a+4>>2]=J[685894];b=J[e+52>>2];K:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,e+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break K;f=Z()|0;wc(a);break d}J[e+28>>2]=0}J[699344]=0;aa(5153,a|0,e+28|0)|0;b=J[699344];J[699344]=0;L:{if((b|0)!=1){b=J[e+28>>2];J[e+28>>2]=0;if(!b)break L;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break L;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b| +0)!=1)break L}break a}f=Z()|0;zc(e+28|0);wc(a);break d}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2]}wc(e+36|0);wc(e+44|0);wc(e+52|0);break j}f=Z()|0;break d}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2]}fc=e- -64|0;return}wc(e+20|0);break e}f=Z()|0;break d}wc(e+20|0)}wc(e+12|0)}wc(e+28|0)}wc(e+36|0)}wc(e+44|0);wc(e+52|0);ba(f|0);B()}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function BBa(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;g=fc-160|0;fc=g;j=mk(g+124|0,J[a>>2]+72|0); +J[699344]=0;e=_(5239,j|0)|0;f=J[699344];J[699344]=0;a:{b:{c:{if((f|0)==1)break c;J[699344]=0;f=J[J[d+12>>2]+((e>>>0)%M[d+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(f)while(1){if((e|0)==J[f+12>>2]){J[699344]=0;h=aa(5236,f+16|0,j|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break j;if(h)break o}f=J[f+8>>2];if(f)continue;break}J[699344]=0;e=aa(5438,d|0,j|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;J[e+52>>2]=0;e=J[a>>2];J[699344]=0;e=_(5457,e|0)| +0;f=J[699344];J[699344]=0;if((f|0)==1)break d;if((e|0)<=0)break o;e=J[a>>2];J[699344]=0;f=aa(5149,g+116|0,2410796)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;J[699344]=0;e=aa(5458,e|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break f;wc(f);if(e)break o;e=J[a>>2];J[699344]=0;ca(5450,g+100|0,e|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break g;e=J[a>>2];J[699344]=0;ia(5452,g+96|0,e|0,0,1);e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[g+108>>2];if(e){l=g+56|0;while(1){f=0;p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{h= +J[e+8>>2];if(h){J[699344]=0;J[h+4>>2]=J[h+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break y;f=J[e+8>>2]}J[g+40>>2]=f;J[699344]=0;h=aa(5149,g+88|0,2410796)|0;i=J[699344];J[699344]=0;if((i|0)==1)break r;J[699344]=0;i=aa(5458,f|0,h|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break x;wc(h);if(i){J[699344]=0;f=aa(5151,g+48|0,f+72|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break w;J[699344]=0;h=g+4|0;da(5283,h|0,f|0);i=J[699344];J[699344]=0;if((i|0)==1)break v;J[699344]=0;i=g+84|0;k=g+96|0;ca(5459,i|0,k|0, +h|0);h=J[699344];J[699344]=0;if((h|0)==1)break u;J[699344]=0;aa(5153,k|0,i|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break t;h=J[g+84>>2];J[g+84>>2]=0;z:{if(!h)break z;J[699344]=0;i=J[h+4>>2]-1|0;J[h+4>>2]=i;k=J[699344];J[699344]=0;if((k|0)==1)break a;if(i)break z;J[699344]=0;$(5147,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break a}wc(g+4|0);J[f>>2]=2392932;J[g+72>>2]=2392964;f=J[g+76>>2];if(f){h=J[f+4>>2]-1|0;J[f+4>>2]=h;if(!h)kc[J[J[f>>2]+4>>2]](f);J[g+76>>2]=0}J[g+64>>2]=2392964;f=J[g+68>>2];if(f){h= +J[f+4>>2]-1|0;J[f+4>>2]=h;if(!h)kc[J[J[f>>2]+4>>2]](f);J[g+68>>2]=0}wc(l);f=J[g+40>>2]}J[g+40>>2]=0;if(!f)break p;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break p;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break p}break a}e=Z()|0;break k}e=Z()|0;wc(h);break q}e=Z()|0;break q}e=Z()|0;Ed(f);break q}e=Z()|0;break s}e=Z()|0;zc(g+84|0)}wc(g+4|0);Ed(f);break q}e=Z()|0}zc(g+40|0);break k}e=J[e>>2];if(e)continue;break}}a=J[a>>2];J[699344]=0;a=aa(5151, +g+4|0,a+72|0)|0;e=J[699344];J[699344]=0;A:{B:{C:{D:{E:{if((e|0)!=1){J[699344]=0;da(5283,g+40|0,a|0);e=J[699344];J[699344]=0;if((e|0)==1)break E;J[a+24>>2]=2392964;J[a>>2]=2392932;e=J[a+28>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)kc[J[J[e>>2]+4>>2]](e);J[a+28>>2]=0}J[a+16>>2]=2392964;e=J[a+20>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)kc[J[J[e>>2]+4>>2]](e);J[a+20>>2]=0}wc(a+8|0);f=0;J[699344]=0;a=g+40|0;ma(5460,g+84|0,a|0,a|0,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break D;a=J[g+96>>2];if(a){J[699344]= +0;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break C;f=J[g+96>>2]}J[699344]=0;J[g>>2]=f;ia(5453,c|0,g+84|0,g|0,-1);a=J[699344];J[699344]=0;if((a|0)==1)break B;a=J[g>>2];J[g>>2]=0;F:{if(!a)break F;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(b)break F;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}f=J[g+108>>2];if(f)while(1){J[699344]=0;ia(5455,f+8|0,0,c|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break n;f=J[f>>2];if(f)continue; +break}a=J[g+84>>2];J[g+84>>2]=0;if(!a)break A;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break A;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break A}break a}e=Z()|0;break k}e=Z()|0;Ed(a);break k}e=Z()|0;break l}e=Z()|0;break m}e=Z()|0;zc(g);break m}wc(g+40|0);a=J[g+96>>2];J[g+96>>2]=0;G:{if(!a)break G;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break G;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]= +0;if((a|0)==1)break a}id(g+100|0)}J[j+24>>2]=2392964;J[j>>2]=2392932;a=J[j+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[j+28>>2]=0}J[j+16>>2]=2392964;a=J[j+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[j+20>>2]=0}wc(j+8|0);fc=g+160|0;return}e=Z()|0}zc(g+84|0)}wc(g+40|0)}zc(g+96|0);break h}e=Z()|0;break b}e=Z()|0}id(g+100|0);break b}e=Z()|0;break b}e=Z()|0;wc(f);break b}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0}Ed(j);ba(e|0);B()}ea(0)|0;Bc();B()}function ZZ(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,w=0,x=0;w=J[b+8>>2];if((w|0)>0){x=J[b>>2];while(1){a:{b:{c:{d:{b=J[(u<<2)+x>>2];c=J[b>>2];t=J[c>>2];switch(J[J[J[J[J[t>>2]>>2]>>2]>>2]+4>>2]-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}g=O[b+32>>3];f=O[a+112>>3];O[b+32>>3]=O[b+16>>3];h=O[b+24>>3];O[b+24>>3]=O[b+8>>3];O[b+16>>3]=f-h;O[b+8>>3]=f-g;e=0;d=J[c+8>>2];if((d|0)<=0)break a;while(1){b=J[(e<<2)+t>>2];g=O[b+32>>3];O[b+32>>3]=O[b+16>> +3];h=O[b+24>>3];O[b+24>>3]=O[b+8>>3];O[b+16>>3]=f-h;O[b+8>>3]=f-g;b=J[b>>2];m=J[b+8>>2];if((m|0)>0){q=J[b>>2];n=0;while(1){b=J[q+(n<<2)>>2];g=O[b+32>>3];O[b+32>>3]=O[b+16>>3];h=O[b+24>>3];O[b+24>>3]=O[b+8>>3];O[b+16>>3]=f-h;O[b+8>>3]=f-g;b=J[b>>2];o=J[b+8>>2];e:{if((o|0)<=0)break e;i=J[b>>2];c=0;if((o|0)!=1){r=o&-2;k=0;while(1){s=c<<2;b=J[s+i>>2];g=O[b+24>>3];O[b+24>>3]=O[b+8>>3];h=O[b+16>>3];O[b+16>>3]=O[b>>3];O[b+8>>3]=f-h;O[b>>3]=f-g;b=J[i+(s|4)>>2];g=O[b+24>>3];O[b+24>>3]=O[b+8>>3];h=O[b+16>> +3];O[b+16>>3]=O[b>>3];O[b+8>>3]=f-h;O[b>>3]=f-g;c=c+2|0;k=k+2|0;if((r|0)!=(k|0))continue;break}}if(!(o&1))break e;b=J[i+(c<<2)>>2];g=O[b+24>>3];O[b+24>>3]=O[b+8>>3];h=O[b+16>>3];O[b+16>>3]=O[b>>3];O[b+8>>3]=f-h;O[b>>3]=f-g}n=n+1|0;if((m|0)!=(n|0))continue;break}}e=e+1|0;if((d|0)!=(e|0))continue;break}break a}f=O[a+112>>3];g=O[b+32>>3];h=O[a+120>>3];O[b+32>>3]=h-O[b+24>>3];O[b+24>>3]=h-g;g=O[b+16>>3];O[b+16>>3]=f-O[b+8>>3];O[b+8>>3]=f-g;n=0;q=J[c+8>>2];if((q|0)<=0)break a;while(1){b=J[(n<<2)+t>>2]; +g=O[b+32>>3];f=O[a+112>>3];h=O[a+120>>3];O[b+32>>3]=h-O[b+24>>3];O[b+24>>3]=h-g;g=O[b+16>>3];O[b+16>>3]=f-O[b+8>>3];O[b+8>>3]=f-g;b=J[b>>2];r=J[b+8>>2];if((r|0)>0){s=J[b>>2];o=0;while(1){e=J[s+(o<<2)>>2];g=O[e+32>>3];f=O[a+112>>3];h=O[a+120>>3];O[e+32>>3]=h-O[e+24>>3];O[e+24>>3]=h-g;g=O[e+16>>3];O[e+16>>3]=f-O[e+8>>3];O[e+8>>3]=f-g;c=J[e+56>>2];f:{if((c|0)<0)break f;d=c+1|0;m=d&3;i=J[e+52>>2];k=0;b=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=b<<3;j=d+i|0;O[j>>3]=O[a+112>>3]-O[j>>3];j=i+(d|8)|0;O[j>>3]=O[a+ +112>>3]-O[j>>3];j=i+(d|16)|0;O[j>>3]=O[a+112>>3]-O[j>>3];d=i+(d|24)|0;O[d>>3]=O[a+112>>3]-O[d>>3];b=b+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break f;while(1){c=i+(b<<3)|0;O[c>>3]=O[a+112>>3]-O[c>>3];b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}b=J[e>>2];p=J[b+8>>2];if((p|0)>0){j=J[b>>2];e=0;while(1){b=J[j+(e<<2)>>2];g=O[b+24>>3];f=O[a+112>>3];h=O[a+120>>3];O[b+24>>3]=h-O[b+16>>3];O[b+16>>3]=h-g;g=O[b+8>>3];O[b+8>>3]=f-O[b>>3];O[b>>3]=f-g;c=J[b+44>>2];g:{if((c|0)<0)break g;d=c+1|0;m= +d&3;i=J[b+40>>2];k=0;b=0;if(c>>>0>=3){v=d&-4;c=0;while(1){d=b<<3;l=d+i|0;O[l>>3]=O[a+112>>3]-O[l>>3];l=i+(d|8)|0;O[l>>3]=O[a+112>>3]-O[l>>3];l=i+(d|16)|0;O[l>>3]=O[a+112>>3]-O[l>>3];d=i+(d|24)|0;O[d>>3]=O[a+112>>3]-O[d>>3];b=b+4|0;c=c+4|0;if((v|0)!=(c|0))continue;break}}if(!m)break g;while(1){c=i+(b<<3)|0;O[c>>3]=O[a+112>>3]-O[c>>3];b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}e=e+1|0;if((p|0)!=(e|0))continue;break}}o=o+1|0;if((r|0)!=(o|0))continue;break}}n=n+1|0;if((q|0)!=(n|0))continue;break}break a}g= +O[b+16>>3];f=O[a+120>>3];O[b+16>>3]=O[b+32>>3];h=O[b+8>>3];O[b+8>>3]=O[b+24>>3];O[b+32>>3]=f-h;O[b+24>>3]=f-g;n=0;q=J[c+8>>2];if((q|0)<=0)break a;while(1){b=J[(n<<2)+t>>2];g=O[b+16>>3];f=O[a+120>>3];O[b+16>>3]=O[b+32>>3];h=O[b+8>>3];O[b+8>>3]=O[b+24>>3];O[b+32>>3]=f-h;O[b+24>>3]=f-g;b=J[b>>2];r=J[b+8>>2];if((r|0)>0){s=J[b>>2];o=0;while(1){e=J[s+(o<<2)>>2];g=O[e+16>>3];f=O[a+120>>3];O[e+16>>3]=O[e+32>>3];h=O[e+8>>3];O[e+8>>3]=O[e+24>>3];O[e+32>>3]=f-h;O[e+24>>3]=f-g;c=J[e+56>>2];h:{if((c|0)<0)break h; +d=c+1|0;m=d&3;i=J[e+52>>2];k=0;b=0;if(c>>>0>=3){p=d&-4;c=0;while(1){d=b<<3;j=d+i|0;O[j>>3]=O[a+120>>3]-O[j>>3];j=i+(d|8)|0;O[j>>3]=O[a+120>>3]-O[j>>3];j=i+(d|16)|0;O[j>>3]=O[a+120>>3]-O[j>>3];d=i+(d|24)|0;O[d>>3]=O[a+120>>3]-O[d>>3];b=b+4|0;c=c+4|0;if((p|0)!=(c|0))continue;break}}if(!m)break h;while(1){c=i+(b<<3)|0;O[c>>3]=O[a+120>>3]-O[c>>3];b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}b=J[e>>2];p=J[b+8>>2];if((p|0)>0){j=J[b>>2];e=0;while(1){b=J[j+(e<<2)>>2];g=O[b+8>>3];f=O[a+120>>3];O[b+8>>3]= +O[b+24>>3];h=O[b>>3];O[b>>3]=O[b+16>>3];O[b+24>>3]=f-h;O[b+16>>3]=f-g;c=J[b+44>>2];i:{if((c|0)<0)break i;d=c+1|0;m=d&3;i=J[b+40>>2];k=0;b=0;if(c>>>0>=3){v=d&-4;c=0;while(1){d=b<<3;l=d+i|0;O[l>>3]=O[a+120>>3]-O[l>>3];l=i+(d|8)|0;O[l>>3]=O[a+120>>3]-O[l>>3];l=i+(d|16)|0;O[l>>3]=O[a+120>>3]-O[l>>3];d=i+(d|24)|0;O[d>>3]=O[a+120>>3]-O[d>>3];b=b+4|0;c=c+4|0;if((v|0)!=(c|0))continue;break}}if(!m)break i;while(1){c=i+(b<<3)|0;O[c>>3]=O[a+120>>3]-O[c>>3];b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}e=e+ +1|0;if((p|0)!=(e|0))continue;break}}o=o+1|0;if((r|0)!=(o|0))continue;break}}n=n+1|0;if((q|0)!=(n|0))continue;break}}u=u+1|0;if((w|0)!=(u|0))continue;break}}}function Unb(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;j=fc-3104|0;fc=j;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;b=J[c+4>>2];e=J[c>>2];o=b-e|0;i=(o|0)/12|0;a:{if(!(!d|(b|0)==(e|0))){J[699344]=0;b=_(27,1024)|0;e=J[699344];J[699344]=0;b:{c:{d:{if((e|0)!=1){J[d>>2]=b;w=Ac(b,0,1024); +if((o|0)<=0)break b;p=(i|0)<=1?1:i;d=0;while(1){b=J[c>>2]+P(h,12)|0;e=J[b+8>>2];g=J[b+4>>2];J[699344]=0;b=_(4,12)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[699344]=0;n=P(e,g);f=_(27,n|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break a;J[b+8>>2]=e;J[b+4>>2]=g;J[b>>2]=f;Ac(f,0,n);e:{if(J[a+8>>2]!=(d|0)){J[d>>2]=b;d=d+4|0;J[a+4>>2]=d;break e}l=J[a>>2];e=d-l|0;r=e>>2;g=r+1|0;if(g>>>0>=1073741824){J[699344]=0;$(208,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break a; +break d}f=e>>1;f=e>>>0>=2147483644?1073741823:f>>>0>g>>>0?f:g;f:{if(!f){g=0;break f}if(f>>>0>=1073741824){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break a}J[699344]=0;g=_(4,f<<2)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a}e=(r<<2)+g|0;J[e>>2]=b;b=e+4|0;if((d|0)!=(l|0)){while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(l|0))continue;break}d=J[a>>2]}J[a+8>>2]=(f<<2)+g;J[a+4>>2]=b;J[a>>2]=e;if(d)uc(d);d=b}k=k+n|0;h=h+1|0;if((p|0)!=(h|0))continue;break}break c}break a}B()}f= +k<<3}J[699344]=0;b=_(27,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;g:{if((o|0)<=0)break g;o=(i|0)<=1?1:i;g=0;e=b;while(1){h=J[J[a>>2]+(g<<2)>>2];h:{if(!h)break h;k=P(J[h+8>>2],J[h+4>>2]);if(!k)break h;d=J[J[c>>2]+P(g,12)>>2];f=0;if((k|0)!=1){n=k&-2;i=0;while(1){if(K[d+3|0]>=5){l=J[h>>2];p=J[d>>2];J[e>>2]=p;J[e+4>>2]=f+l;H[e+3|0]=p>>>24|15;e=e+8|0}if(K[d+7|0]>=5){l=J[h>>2];p=J[d+4>>2];J[e>>2]=p;J[e+4>>2]=l+(f|1);H[e+3|0]=p>>>24|15;e=e+8|0}d=d+8|0;f=f+2|0;i=i+2|0;if((n|0)!=(i|0))continue;break}}if(!(k& +1)|K[d+3|0]<5)break h;h=J[h>>2];d=J[d>>2];J[e>>2]=d;J[e+4>>2]=f+h;H[e+3|0]=d>>>24|15;e=e+8|0}g=g+1|0;if((o|0)!=(g|0))continue;break}if((b|0)==(e|0))break g;g=e-b|0;h=j+80|0;f=j+68|0;i=j+56|0;k=j+32|12;e=0;while(1){c=P(e,12);d=c+(j+32|0)|0;J[d>>2]=0;J[d+4>>2]=0;I[d+8>>1]=0;d=c+k|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>>2]=0;d=c+i|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>>2]=0;d=c+f|0;I[d+8>>1]=0;J[d>>2]=0;J[d+4>>2]=0;c=c+h|0;I[c+8>>1]=0;J[c>>2]=0;J[c+4>>2]=0;e=e+5|0;if((e|0)!=255)continue;break}I[j+24>>1]=0;J[j+16>>2]= +0;J[j+20>>2]=0;I[j+8>>1]=0;J[j+32>>2]=b;p=g>>>3|0;J[j+36>>2]=p;J[j>>2]=0;J[j+4>>2]=0;d=0;if(g>>>0>=16){f=K[b|0];i=f;h=K[b+1|0];o=h;l=1;d=b;n=K[d+3|0];k=n;g=K[d+2|0];c=g;while(1){e=K[d+3|0];n=(e|0)<(n|0)?n:e;k=(e|0)>(k|0)?k:e;e=K[d+2|0];g=(e|0)<(g|0)?g:e;c=(c|0)<(e|0)?c:e;e=K[d+1|0];o=(e|0)<(o|0)?o:e;h=(e|0)>(h|0)?h:e;e=K[d|0];i=(e|0)<(i|0)?i:e;f=(e|0)>(f|0)?f:e;d=d+8|0;l=l+1|0;if((p|0)!=(l|0))continue;break}e=i-f|0;h=o-h|0;f=(e|0)>(h|0)?e:h;c=g-c|0;g=(c|0)<(f|0)?f:c;i=n-k|0;d=(g|0)>(i|0)?g:i;c=(g| +0)<(i|0)?3:(c|0)>(f|0)?2:(e|0)<(h|0)}else c=0;H[j+41|0]=c;H[j+40|0]=d;c=0;g=1;while(1){o=0;i:{if(c>>>0<3){i=-1;d=j+32|0;e=0;f=0;break i}x=g&2147483644;i=-1;e=0;d=j+32|0;f=0;n=0;while(1){k=K[d+8|0];l=(f|0)>(k|0)?f:k;p=K[d+20|0];r=(l|0)>(p|0)?l:p;v=K[d+32|0];h=(r|0)>(v|0)?r:v;i=r>>>0>>0?e|2:l>>>0

      >>0?e|1:f>>>0>>0?e:i;f=K[d+44|0];i=f>>>0>h>>>0?e|3:i;f=(f|0)<(h|0)?h:f;d=d+48|0;e=e+4|0;n=n+4|0;if((x|0)!=(n|0))continue;break}}k=g&3;if(k)while(1){h=K[d+8|0];i=h>>>0>f>>>0?e:i;f=(f|0)>(h|0)?f:h;d= +d+12|0;e=e+1|0;o=o+1|0;if((k|0)!=(o|0))continue;break}j:{if((i|0)<0){h=g;break j}J[699344]=0;e=j+32|0;d=e+P(i,12)|0;p7(d,j+16|0,j);h=J[699344];J[699344]=0;if((h|0)==1)break a;h=J[j+20>>2];J[d>>2]=J[j+16>>2];J[d+4>>2]=h;I[d+8>>1]=L[j+24>>1];d=e+P(g,12)|0;I[d+8>>1]=L[j+8>>1];e=J[j+4>>2];J[d>>2]=J[j>>2];J[d+4>>2]=e;c=c+1|0;h=255;g=g+1|0;if((g|0)!=255)continue}break}d=0;while(1){g=d+1|0;i=(g<<2)+w|0;a=0;f=(j+32|0)+P(d,12)|0;d=f;c=J[d>>2];k:{if(!c)break k;if(!K[d+8|0]){a=J[c>>2];break k}m=+K[c+3|0];q= ++K[c+2|0];s=+K[c+1|0];t=+K[c|0];a=J[d+4>>2];l:{if(a>>>0<2)break l;d=a-1|0;k=d&1;if((a|0)!=2){d=d&-2;e=0;while(1){m=m+ +K[c+3|0]+ +K[c+11|0];q=q+ +K[c+2|0]+ +K[c+10|0];s=s+ +K[c+1|0]+ +K[c+9|0];t=t+ +K[c|0]+ +K[c+8|0];c=c+16|0;e=e+2|0;if((d|0)!=(e|0))continue;break}}if(!k)break l;m=m+ +K[c+3|0];q=q+ +K[c+2|0];s=s+ +K[c+1|0];t=t+ +K[c|0]}u=q;q=+(a>>>0);u=u/q+.5;m:{if(u<4294967296&u>=0){a=~~u>>>0;break m}a=0}c=a<<16;m=m/q+.5;n:{if(m<4294967296&m>=0){a=~~m>>>0;break n}a=0}c=c|a<<24;m=s/q+.5;o:{if(m<4294967296& +m>=0){a=~~m>>>0;break o}a=0}a=c|a<<8;m=t/q+.5;if(m<4294967296&m>=0)a=a|~~m>>>0}J[i>>2]=a;if(J[f+4>>2]){d=J[f>>2];e=0;while(1){H[J[d+4>>2]]=g;d=d+8|0;e=e+1|0;if(e>>>0>2])continue;break}}d=g;if((h|0)!=(d|0))continue;break}}uc(b)}fc=j+3104|0;return}c=Z()|0;b=J[a>>2];if(b){J[a+4>>2]=b;uc(b)}ba(c|0);B()}function F5(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;d=fc-496|0;fc=d;a:{b:{if(b){H[a+1800|0]=0;f=a+1776|0;J[f>>2]=0;J[f+4>>2]=0;f=a+1768|0; +J[f>>2]=2147483647;J[f+4>>2]=2147483647;f=a+1760|0;J[f>>2]=0;J[f+4>>2]=0;f=a+1752|0;J[f>>2]=2147483647;J[f+4>>2]=2147483647;f=a+1712|0;J[f>>2]=0;J[f+4>>2]=0;J[a+2876>>2]=0;f=a+1792|0;J[f>>2]=-2147483647;J[f+4>>2]=-2147483647;f=a+1784|0;J[f>>2]=2147483647;J[f+4>>2]=2147483647;f=J[c+4>>2];J[d+488>>2]=0;J[d+480>>2]=0;J[d+484>>2]=0;J[d+472>>2]=0;J[d+476>>2]=0;if(J[f>>2])while(1){i=g&255;h=g>>>6&67108860;q=K[i+J[h+J[f+16>>2]>>2]|0];h=J[h+J[f+12>>2]>>2]+(i<<4)|0;j=O[h+8>>3];l=O[h>>3];o=J[d+476>>2];i=e>>> +8|0;if(o>>>0<=i>>>0){k=J[d+480>>2];c:{if(k>>>0>i>>>0){h=J[d+484>>2];break c}h=(k<<1)+512|0;h=vc(h>>>0>1073741823?-1:h<<2);m=k<<2;p=(h+m|0)+1024|0;n=J[d+484>>2];if(n){xc(h,n,m);xc(p,J[d+488>>2],m);uc(n)}J[d+488>>2]=p;J[d+484>>2]=h;J[d+480>>2]=k+256}k=h;h=i<<2;s=k+h|0,t=vc(4352),J[s>>2]=t;J[h+J[d+488>>2]>>2]=J[h+J[d+484>>2]>>2]+4096;J[d+476>>2]=o+1}h=i<<2;i=J[h+J[d+484>>2]>>2];H[J[h+J[d+488>>2]>>2]+(e&255)|0]=q;e=(e<<4&4080)+i|0;O[e+8>>3]=j;O[e>>3]=l;e=J[d+472>>2]+1|0;J[d+472>>2]=e;g=g+1|0;if(g>>>0< +M[f>>2])continue;break}J[d+492>>2]=J[f+20>>2];d:{if(!K[a+2896|0]){f=0;J[699344]=0;g=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;e=J[a+56>>2];break d}J[699344]=0;e=_(4,48)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=1072693248;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=1072693248;J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[699344]=0;g=_(4,8)|0;h=J[699344];J[699344]=0;f=e;if((h|0)==1)break b}J[g+4>>2]=e;J[g>>2]=d+472;J[d+56>>2]= +0;J[d+60>>2]=0;e=d- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[d+208>>2]=0;J[d+212>>2]=0;J[d+192>>2]=0;J[d+196>>2]=1072693248;J[d+72>>2]=0;J[d+76>>2]=1072693248;J[d+216>>2]=0;J[d+220>>2]=0;J[d+224>>2]=0;J[d+228>>2]=0;J[d+232>>2]=0;J[d+424>>2]=0;J[d+428>>2]=0;J[d+408>>2]=0;J[d+412>>2]=1072693248;J[d+256>>2]=0;J[d+260>>2]=1072693248;J[d+236>>2]=64;J[d+240>>2]=1;J[d+432>>2]=0;J[d+436>>2]=0;J[d+440>>2]=0;J[d+444>>2]=0;J[d+448>>2]=0;J[d+452>>2]=0;J[d+456>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=g;J[d+248>>2]=0;J[d+ +252>>2]=0;J[d+460>>2]=64;J[d+464>>2]=1;J[699344]=0;ca(2283,a+1704|0,d+40|0,0);e=J[699344];J[699344]=0;e:{f:{g:{if((e|0)==1)break g;J[a+2860>>2]=K[J[c+4>>2]+24|0];J[699344]=0;e=J[b+4>>2];h=J[699344];J[699344]=0;if((h|0)==1)break g;h:{if((e|0)==2){J[699344]=0;e=J[J[b+8>>2]+12>>2];h=J[699344];J[699344]=0;i:{j:{if((h|0)!=1){J[699344]=0;h=J[J[b+8>>2]+16>>2];i=J[699344];J[699344]=0;if((i|0)==1)break j;if(!e)break e;if(h)break i;break e}g=Z()|0;break f}g=Z()|0;break f}J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]= +0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;k:{if(!K[b+32|0]){J[699344]=0;uD(c,d+32|0,d+24|0,d+16|0,d+8|0);c=J[699344];J[699344]=0;if((c|0)!=1){O[d+16>>3]=O[d+32>>3]+O[d+16>>3];j=O[d+24>>3]+O[d+8>>3];break k}g=Z()|0;break f}O[d+32>>3]=O[b+40>>3];O[d+24>>3]=O[b+48>>3];O[d+16>>3]=O[b+56>>3];j=O[b- -64>>3]}O[d+8>>3]=j;J[699344]=0;c=aa(2259,d+4|0,b+20|0)|0;i=J[699344];J[699344]=0;l:{if((i|0)!=1){J[699344]=0;i=J[b+16>>2];k=J[699344];J[699344]=0;if((k|0)==1)break h;if((i|0)!=4)break l; +J[699344]=0;Lx(c,(O[d+16>>3]-O[d+32>>3])/+(e>>>0),(O[d+8>>3]-O[d+24>>3])/+(h>>>0),1);e=J[699344];J[699344]=0;if((e|0)!=1)break l;g=Z()|0;Jd(c);break f}g=Z()|0;break f}J[699344]=0;e=J[b+16>>2];h=J[699344];J[699344]=0;if((h|0)==1)break h;m:{if((e|0)==4)break m;j=O[a+2920>>3];if(!(j>1))break m;l=O[a+24>>3];r=O[a+32>>3];J[699344]=0;Lx(c,l/j,r/j,1);e=J[699344];J[699344]=0;if((e|0)!=1)break m;g=Z()|0;Jd(c);break f}J[699344]=0;ds(c,O[d+32>>3],O[d+24>>3],1);e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]= +0;Yk(c,a+56|0,1);e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;wD(b,c);e=J[699344];J[699344]=0;if((e|0)==1)break h;Jd(c)}J[699344]=0;da(2291,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;uc(g);if(!f)break e;uc(f);break e}g=Z()|0;Jd(c);break f}g=Z()|0}AD(d+40|0);break a}a=J[d+448>>2];if(a){e=a-1|0;J[d+448>>2]=e;g=J[d+456>>2]+(a<<2)|0;while(1){g=g-4|0;a=J[g>>2];if(a){uc(a);a=J[d+448>>2]}else a=e;e=a-1|0;J[d+448>>2]=e;if(a)continue;break}}a=J[d+456>>2];if(a)uc(a);a=J[d+224>>2];if(a){e= +a-1|0;J[d+224>>2]=e;g=J[d+232>>2]+(a<<2)|0;while(1){g=g-4|0;a=J[g>>2];if(a){uc(a);a=J[d+224>>2]}else a=e;e=a-1|0;J[d+224>>2]=e;if(a)continue;break}}a=J[d+232>>2];if(a)uc(a);a=J[d+476>>2];n:{if(!a)break n;e=a-1|0;J[d+476>>2]=e;g=J[d+484>>2]+(a<<2)|0;while(1){g=g-4|0;a=J[g>>2];if(a){uc(a);a=J[d+476>>2]}else a=e;e=a-1|0;J[d+476>>2]=e;if(a)continue;break}a=J[d+484>>2];if(!a)break n;uc(a)}a=0}else a=2;fc=d+496|0;return a|0}g=Z()|0}D5(d+472|0);ba(g|0);B()}function qua(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=fc-32|0;fc=e;d=J[d>>2];J[a>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(d){f=J[J[d+28>>2]>>2]?J[d+32>>2]:0;if(!(!b|!c)){if(f){J[699344]=0;h=c+f|0;g=ha(5213,e+20|0,e+28|0,h|0,1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break l;xc(J[e+28>>2],J[d+24>>2],f);xc(f+J[e+28>>2]|0,b,c);c=J[e+28>>2];m:{n:{b=J[d+16>>2];o:{if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break n;d=J[d+16>>2];J[699344]=0;J[e+12>>2]=d;ia(5665,e+16|0,c|0,h|0,e+12|0);c=J[699344];J[699344]= +0;if((c|0)!=1)break o;break d}d=J[d+20>>2];J[699344]=0;ia(5660,e+16|0,c|0,h|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break d}J[699344]=0;aa(5153,a|0,e+16|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;a=J[e+16>>2];J[e+16>>2]=0;p:{if(!a)break p;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break p;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}q:{if(!b)break q;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break q;J[699344]=0;b=J[a+4>>2]-1|0;J[a+ +4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break q;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}hd(g);break i}d=Z()|0;hd(g);break b}d=Z()|0;zc(e+16|0);break c}r:{s:{f=J[d+16>>2];t:{if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;g=J[699344];J[699344]=0;if((g|0)==1)break s;d=J[d+16>>2];J[699344]=0;J[e+8>>2]=d;ia(5665,e+20|0,b|0,c|0,e+8|0);b=J[699344];J[699344]=0;if((b|0)!=1)break t;break f}d=J[d+20>>2];J[699344]=0;ia(5660,e+20|0,b|0,c|0,d|0);b=J[699344];J[699344]=0;if((b| +0)==1)break f}J[699344]=0;aa(5153,a|0,e+20|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;a=J[e+20>>2];J[e+20>>2]=0;u:{if(!a)break u;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break u;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}if(!f)break i;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break i;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i}break a}d= +Z()|0;break b}d=Z()|0;zc(e+20|0);break e}if(f){J[699344]=0;c=ha(5213,e+20|0,e+28|0,f|0,1)|0;b=J[699344];J[699344]=0;v:{w:{if((b|0)!=1){xc(J[e+28>>2],J[d+24>>2],f);g=J[e+28>>2];b=J[d+16>>2];x:{if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;h=J[699344];J[699344]=0;if((h|0)==1)break w;d=J[d+16>>2];J[699344]=0;J[e+4>>2]=d;ia(5665,e+16|0,g|0,f|0,e+4|0);d=J[699344];J[699344]=0;if((d|0)!=1)break x;break h}d=J[d+20>>2];J[699344]=0;ia(5660,e+16|0,g|0,f|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break h}J[699344]= +0;aa(5153,a|0,e+16|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break v;a=J[e+16>>2];J[e+16>>2]=0;y:{if(!a)break y;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(d)break y;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}z:{if(!b)break z;a=J[e+4>>2];J[e+4>>2]=0;if(!a)break z;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break z;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}hd(c); +break i}d=Z()|0;break b}d=Z()|0;hd(c);break b}d=Z()|0;zc(e+16|0);break g}A:{B:{b=J[d+16>>2];C:{if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break B;c=J[d+16>>2];J[699344]=0;J[e>>2]=c;ia(5665,e+20|0,0,0,e|0);c=J[699344];J[699344]=0;if((c|0)!=1)break C;break k}c=J[d+20>>2];J[699344]=0;ia(5660,e+20|0,0,0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break k}J[699344]=0;aa(5153,a|0,e+20|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break A;a=J[e+20>>2];J[e+20>>2]=0;D:{if(!a)break D; +J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break D;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}if(!b)break i;a=J[e>>2];J[e>>2]=0;if(!a)break i;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i}break a}d=Z()|0;break b}d=Z()|0;zc(e+20|0);break j}J[699344]=0;d=e+20|0;ia(5660,d|0,b|0,c|0,8);b=J[699344];J[699344]=0;E:{if((b|0)!= +1){J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break E;a=J[e+20>>2];J[e+20>>2]=0;if(!a)break i;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i}break a}d=Z()|0;break b}d=Z()|0;zc(e+20|0);break b}d=Z()|0;break b}d=Z()|0}if(!b)break b;zc(e);break b}fc=e+32|0;return}d=Z()|0}if(b)zc(e+4|0);hd(c);break b}d=Z()|0}if(!f)break b;zc(e+8|0);break b}d=Z()|0}if(b)zc(e+12|0);hd(g)}zc(a); +ba(d|0);B()}ea(0)|0;Bc();B()}function xC(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;g=fc-112|0;fc=g;a:{if(!b)break a;d=kc[J[663195]](36)|0;if(!d){J[g>>2]=5439;Hc(0,0,0,0,0,29,2,3,5439,0,0,0,32879,g);break a}J[d+20>>2]=0;J[d+4>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;c=J[663197];J[d+24>>2]=0;J[d+12>>2]=c;J[d+8>>2]=0;J[d+16>>2]=0;J[d>>2]=0;if((c&-2)!=2)J[d+12>>2]=4;m=g+106|0;n=g+105|0;o=g+104|0;p=g+103|0;b:{while(1){f=b;c:{d:{e:{f:{g:{while(1){c=K[f|0];if(c)if((c|0)==38){if((b| +0)!=(f|0))if(Xj(d,b,f-b|0))break c;h:{i:{e=K[f+1|0];if((e|0)!=35){b=1;h=f+1|0;while(1){c=e&255;if(!c)break i;if((c|0)==59)break h;b=b+1|0;e=K[f+b|0];continue}}i=f+2|0;e=0;b=K[f+2|0];if((b|0)==59){b=i+1|0;break d}if((b|0)==120){c=f+3|0;h=1;f=K[f+3|0];j:{if((f|0)==59)break j;while(1){b=c;i=-48;k:{if((f-48&255)>>>0<10)break k;i=-87;if((f-97&255)>>>0<6)break k;i=-55;if((f-65&255)>>>0<6)break k;h=0;J[g+64>>2]=0;Hc(0,0,0,0,a,2,1300,2,0,0,0,0,33866,g- -64|0);e=0;break j}c=b+1|0;e=((e<<4)+i|0)+(f&255)|0; +f=K[b+1|0];if((f|0)!=59)continue;break}}b=c+h|0;break d}l:{while(1){if((b-48&255)>>>0<=9){e=(P(e,10)+(b&255)|0)-48|0;f=1;b=K[i+1|0];c=i+1|0;i=c;if((b|0)!=59)continue;break l}break}f=0;J[g+48>>2]=0;Hc(0,0,0,0,a,2,1301,2,0,0,0,0,33903,g+48|0);c=i;e=0}b=c+f|0;break d}J[g+80>>2]=h;Hc(0,0,0,0,a,2,1302,2,h,0,0,0,31972,g+80|0);break c}if((b|0)==1)break e;j=kc[J[663198]](b)|0;m:{if(!j){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break m}c=b-1|0;q=xc(j,h,c)+c|0,r=0,H[q|0]=r}n:{o:{if(!a)break o;c=J[a+44>>2];p:{if(!c)break p; +c=J[c+48>>2];if(!c)break p;i=Bf(c,j,0,0);if(i)break n}if(J[a+40>>2]==1)break o;c=J[a+48>>2];if(!c)break o;c=J[c+48>>2];if(!c)break o;i=Bf(c,j,0,0);if(i)break n}i=fj(j);if(i)break n;i=0;e=1;break g}e=0;if(J[i+48>>2]!=6)break g;if(J[d+32>>2])break c;h=J[i+40>>2];c=J[d+8>>2];if(!((c|0)==J[d+24>>2]|c>>>0>2147483646))J[d+24>>2]=c;c=J[d+4>>2];if(!((c|0)==J[d+20>>2]|c>>>0>2147483646))J[d+20>>2]=c;e=J[d+12>>2];if(!h|(e|0)==2)break b;if(!Xj(d,h,-1))break f;break c}else{f=f+1|0;continue}break}if(!(l?(b|0)== +(f|0):0))Xj(d,b,f-b|0);if(J[d+32>>2])break c;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;e=J[d+20>>2];b=J[d+4>>2];if((e|0)==(b|0)|b>>>0>2147483646)b=e;else J[d+20>>2]=b;if(!b)break c;b=kc[J[663195]](60)|0;q:{if(b){J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=3;J[b+8>>2]=774748;r:{if(!J[693393])break r;c=J[693390];if(!c)break r; +kc[c|0](b)}J[b+32>>2]=a;break q}J[g+16>>2]=1832;Hc(0,0,0,0,0,2,2,3,1832,0,0,0,32879,g+16|0)}e=0;if(!(J[d+32>>2]|(J[d+28>>2]|J[d+12>>2]==2))){J[d+20>>2]=0;J[d+24>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;e=J[d>>2];J[d>>2]=0}J[b+40>>2]=e;if(!k){l=b;break c}pu(k,b);break c}s:{if(J[d+32>>2])break s;c=J[d+8>>2];if(!((c|0)==J[d+24>>2]|c>>>0>2147483646))J[d+24>>2]=c;h=J[d+20>>2];c=J[d+4>>2];if((h|0)==(c|0)|c>>>0>2147483646)c=h;else J[d+20>>2]=c;if(!c)break s;c=kc[J[663195]](60)|0;t:{if(c){J[c>>2]=0;J[c+4>>2]=0;J[c+ +8>>2]=0;J[c+12>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+4>>2]=3;J[c+8>>2]=774748;u:{if(!J[693393])break u;h=J[693390];if(!h)break u;kc[h|0](c)}J[c+32>>2]=a;break t}J[g+96>>2]=1832;Hc(0,0,0,0,0,2,2,3,1832,0,0,0,32879,g+96|0)}h=0;if(!(J[d+32>>2]|(J[d+28>>2]|J[d+12>>2]==2))){J[d+20>>2]=0;J[d+24>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;h=J[d>>2];J[d>>2]=0}J[c+40>>2]=h;if(!k){k=c;l=c;break s}k=pu(k,c)}c= +_K(a,j);if(!c){if(!j)break c;kc[J[663199]](j);break c}v:{if(J[i+12>>2]|e)break v;J[i+12>>2]=-1;e=xC(a,J[c+40>>2]);J[i+68>>2]=1;J[i+12>>2]=e;if(!e)break v;while(1){J[e+20>>2]=i;e=J[e+24>>2];if(e)continue;break}}if(!k){k=c;l=c;break f}k=pu(k,c)}kc[J[663199]](j)}b=(b+f|0)+1|0;continue}if(!e)continue;w:{x:{if((e|0)>=128){y:{if(e>>>0<2048){f=0;h=192;c=6;break y}if(e>>>0<65536){f=6;h=224;c=12;break y}if(e>>>0>=1114112)break x;f=12;h=240;c=18}H[g+102|0]=e>>>c|h;H[g+103|0]=e>>>f&63|128;h=(f>>>0)/6|0;c=o; +z:{if(f>>>0<6)break z;H[g+104|0]=e>>>f-6&63|128;h=(h+p|0)==(c|0);c=n;if(h)break z;H[g+105|0]=e>>>f-12&63|128;c=m}c=c-(g+102|0)|0;break w}H[g+102|0]=e;c=1;break w}J[g+32>>2]=e;Hc(0,0,0,0,0,1,9,3,0,0,0,e,35057,g+32|0);c=0}H[c+(g+102|0)|0]=0;if(J[d+32>>2])break c;c=J[d+8>>2];if(!((c|0)==J[d+24>>2]|c>>>0>2147483646))J[d+24>>2]=c;c=J[d+4>>2];if(!((c|0)==J[d+20>>2]|c>>>0>2147483646))J[d+20>>2]=c;if(J[d+12>>2]==2)break c;if(!Xj(d,g+102|0,-1))continue}break}e=J[d+12>>2]}A:{B:{C:{if((e|0)==3){f=J[d+16>>2]; +if(!f)break C;break B}if((e|0)==2)break A}f=J[d>>2];if(!f)break A}kc[J[663199]](f)}kc[J[663199]](d)}fc=g+112|0;return l}function pZa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[a+76>>2]>0){c=J[a+416>>2];k=J[a+84>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{f=J[k+36>>2];b=J[k+40>>2]+(f<<8)|0;if((b|0)<=2051){if((b|0)<=1025){J:switch(b-513|0){case 0:break n;case 1:break H;case 2:break c;case 3:break g;default:break J}K:switch(b- +257|0){case 0:break I;case 1:break f;default:break K}switch(b-771|0){case 3:break h;case 0:break G;default:break c}}if((b|0)<=1538){L:switch(b-1026|0){case 6:break i;case 0:break o;case 2:break F;case 1:case 3:case 4:case 5:break c;default:break L}switch(b-1285|0){case 5:break j;case 0:break E;default:break c}}M:switch(b-1539|0){case 9:break k;case 0:break p;case 3:break D;case 1:case 2:case 4:case 5:case 6:case 7:case 8:break c;default:break M}switch(b-1799|0){case 7:break l;case 0:break C;default:break c}}if((b| +0)<=3077){if((b|0)<=2564)switch(b-2052|0){case 12:break m;case 0:break q;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break c;case 4:break e;default:break d}switch(b-2565|0){case 0:break r;case 5:break B;case 1:case 2:case 3:case 4:break c;default:break A}}if((b|0)<=3590)switch(b-3078|0){case 0:break s;case 6:break z;case 1:case 2:case 3:case 4:case 5:break c;default:break y}N:switch(b-3591|0){case 0:break t;case 7:break x;case 1:case 2:case 3:case 4:case 5:case 6:break c; +default:break N}switch(b-4104|0){case 0:break u;case 8:break v;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break c;default:break w}}J[((d<<2)+c|0)+44>>2]=432;e=0;break a}J[((d<<2)+c|0)+44>>2]=433;e=0;break a}J[((d<<2)+c|0)+44>>2]=434;e=0;break a}J[((d<<2)+c|0)+44>>2]=435;e=0;break a}J[((d<<2)+c|0)+44>>2]=436;e=0;break a}J[((d<<2)+c|0)+44>>2]=437;e=0;break a}J[((d<<2)+c|0)+44>>2]=438;e=0;break a}J[((d<<2)+c|0)+44>>2]=439;e=0;break a}if((b|0)!=2827)break c;J[((d<<2)+c|0)+44>>2]=440;e=0;break a}J[((d<< +2)+c|0)+44>>2]=441;e=0;break a}if((b|0)!=3341)break c;J[((d<<2)+c|0)+44>>2]=442;e=0;break a}J[((d<<2)+c|0)+44>>2]=443;e=0;break a}if((b|0)!=3855)break c;J[((d<<2)+c|0)+44>>2]=444;e=0;break a}J[((d<<2)+c|0)+44>>2]=445;e=0;break a}J[((d<<2)+c|0)+44>>2]=446;e=0;break a}J[((d<<2)+c|0)+44>>2]=447;e=0;break a}J[((d<<2)+c|0)+44>>2]=448;e=0;break a}J[((d<<2)+c|0)+44>>2]=449;e=0;break a}J[((d<<2)+c|0)+44>>2]=450;e=0;break a}J[((d<<2)+c|0)+44>>2]=451;e=0;break a}J[((d<<2)+c|0)+44>>2]=452;e=0;break a}J[((d<< +2)+c|0)+44>>2]=453;e=0;break a}J[((d<<2)+c|0)+44>>2]=454;e=0;break a}J[((d<<2)+c|0)+44>>2]=455;e=0;break a}J[((d<<2)+c|0)+44>>2]=456;e=0;break a}J[((d<<2)+c|0)+44>>2]=457;e=0;break a}J[((d<<2)+c|0)+44>>2]=458;e=0;break a}J[((d<<2)+c|0)+44>>2]=459;e=0;break a}J[((d<<2)+c|0)+44>>2]=460;e=0;break a}J[((d<<2)+c|0)+44>>2]=461;e=0;break a}O:switch(J[a+232>>2]){case 0:J[((d<<2)+c|0)+44>>2]=462;e=0;break a;case 1:J[((d<<2)+c|0)+44>>2]=463;e=1;break a;case 2:e=2;J[((d<<2)+c|0)+100>>2]=464;break a;default:break O}b= +J[a>>2];J[b+20>>2]=49;kc[J[b>>2]](a);break a}if((b|0)==2313)break b}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=7;J[J[a>>2]+28>>2]=J[k+40>>2];kc[J[J[a>>2]>>2]](a);break a}J[((d<<2)+c|0)+44>>2]=465;e=0}b=J[k+16>>2];P:{if(b>>>0<=3){i=J[((b<<2)+a|0)+88>>2];if(i)break P}f=J[a>>2];J[f+24>>2]=b;J[f+20>>2]=54;kc[J[J[a>>2]>>2]](a);i=J[((b<<2)+a|0)+88>>2]}Q:{R:switch(e|0){case 0:b=(b<<2)+c|0;f=J[b+84>>2];if(!f){f=kc[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+84>>2]=f}b=0;while(1){J[(b<<2)+f>>2]=L[(b<<1)+i>>1]<<3;h=b|1;J[(h<<2)+ +f>>2]=L[(h<<1)+i>>1]<<3;h=b|2;J[(h<<2)+f>>2]=L[(h<<1)+i>>1]<<3;h=b|3;J[(h<<2)+f>>2]=L[(h<<1)+i>>1]<<3;b=b+4|0;if((b|0)!=64)continue;break}J[((d<<2)+c|0)+4>>2]=466;break Q;case 1:b=(b<<2)+c|0;f=J[b+84>>2];if(!f){f=kc[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+84>>2]=f}b=0;while(1){h=b<<1;J[(b<<2)+f>>2]=P(I[h+57456>>1],L[i+h>>1])+1024>>11;g=b|1;h=g<<1;J[(g<<2)+f>>2]=P(I[h+57456>>1],L[i+h>>1])+1024>>11;b=b+2|0;if((b|0)!=64)continue;break}J[((d<<2)+c|0)+4>>2]=466;break Q;case 2:b=(b<<2)+c|0;f=J[b+140>>2];if(!f){f= +kc[J[J[a+4>>2]>>2]](a,1,256)|0;J[b+140>>2]=f}h=0;b=0;while(1){j=O[(h<<3)+57584>>3];N[(b<<2)+f>>2]=1/(j*+L[(b<<1)+i>>1]*8);g=b|1;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*1.387039845*8);g=b|2;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*1.306562965*8);g=b|3;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*1.175875602*8);g=b|4;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*8);g=b|5;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.785694958*8);g=b|6;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.5411961*8);g=b|7;N[(g<<2)+f>>2]=1/(j*+L[(g<<1)+i>>1]*.275899379* +8);b=b+8|0;h=h+1|0;if((h|0)!=8)continue;break}J[((d<<2)+c|0)+4>>2]=467;break Q;default:break R}b=J[a>>2];J[b+20>>2]=49;kc[J[b>>2]](a)}k=k+88|0;d=d+1|0;if((d|0)>2])continue;break}}}function Sp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-96|0;fc=d;H[a+32|0]=1;a:{b:{c:{d:{e:{f:{g:{h:{c=J[a+8>>2];i:{if(!c|!J[c+8>>2])break i;c=d+32|0;Pj(c,a,0);J[699344]=0;da(6232,d+84|0,c|0);g=J[699344];J[699344]=0;if((g|0)==1){a=Z()|0;wc(c);ba(a|0);B()}g=a+8|0;e=d+32|0;wc(e);j:{k:{l:{c=J[d+84>>2];if(!(M[c+ +8>>2]>1?c:0)){H[a+32|0]=0;if(b)break j;J[699344]=0;ca(5218,d+8|0,39179,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[d+8>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;b=ja(5178,e|0,a|0,5684,373,28916,0)|0;a=J[699344];J[699344]=0;m:{n:{if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break n;break b}a=Z()|0;break m}a=Z()|0;Kc(b)}wc(d+8|0);break c}J[699344]=0;c=pd(d+84|0,14210,-1);e=J[699344];J[699344]=0;o:{p:{if((e|0)==1)break p;q:{r:{s:{t:{u:{v:{if(c)break v;w:{c=J[g>> +2];e=J[c+8>>2];if((e|0)>=5){f=J[c+12>>2];if(K[f+5|0]!=47)break v;if(e>>>0>5)break w}J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break p}if(K[f+6|0]==47){J[699344]=0;c=pd(g,2438592,18);e=J[699344];J[699344]=0;if((e|0)==1)break p;if(c)break v;c=J[g>>2]}J[d+76>>2]=0;J[d+80>>2]=J[685894];f=J[(c?c+12|0:2743576)>>2];c=f;while(1){e=K[c|0];if(!(!e|(e|0)==35|(e|0)==63)){c=c+1|0;continue}break}J[699344]=0;aa(5224,d+76|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break e;J[699344]=0;ia(5313, +d+32|0,g|0,0,c-f|0);c=J[699344];J[699344]=0;x:{y:{z:{if((c|0)!=1){c=J[d+32>>2];A:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+8|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break A;a=Z()|0;break f}J[d+8>>2]=0}J[699344]=0;aa(5153,g|0,d+8|0)|0;c=J[699344];J[699344]=0;B:{if((c|0)!=1){c=J[d+8>>2];J[d+8>>2]=0;if(!c)break B;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break B;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break B}break a}a=Z()|0;zc(d+ +8|0);break f}c=J[a+8>>2];J[a+12>>2]=J[(c?c+12|0:2743576)>>2];e=d+32|0;wc(e);J[699344]=0;da(6233,d+68|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break z;c=J[d+68>>2];if(J[c+8>>2]?c:0)break x;H[a+32|0]=0;if(b)break k;J[699344]=0;b=ja(5178,e|0,14196,5684,400,28916,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break y;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break g}a=Z()|0;break d}a=Z()|0;break d}a=Z()|0;break g}J[699344]=0;c=aa(6234,d+32|0,d+68|0)|0;e=J[699344];J[699344]= +0;C:{D:{E:{if((e|0)!=1){J[c>>2]=2438692;J[699344]=0;ca(5401,d+8|0,c|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break E;e=J[d+8>>2];F:{if(e){f=J[J[e>>2]+28>>2];J[699344]=0;ca(f|0,d+92|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break F;a=Z()|0;break h}J[d+92>>2]=0}J[699344]=0;aa(5153,g|0,d+92|0)|0;e=J[699344];J[699344]=0;G:{if((e|0)!=1){e=J[d+92>>2];J[d+92>>2]=0;if(!e)break G;J[699344]=0;f=J[e+4>>2]-1|0;J[e+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break G;J[699344]=0;$(5147,e|0);e=J[699344]; +J[699344]=0;if((e|0)!=1)break G}break a}a=Z()|0;zc(d+92|0);break h}e=J[a+8>>2];J[a+12>>2]=J[(e?e+12|0:2743576)>>2];wc(d+8|0);J[c+24>>2]=2392964;J[c>>2]=2392932;e=J[c+28>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)kc[J[J[e>>2]+4>>2]](e);J[c+28>>2]=0}J[c+16>>2]=2392964;e=J[c+20>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)kc[J[J[e>>2]+4>>2]](e);J[c+20>>2]=0}wc(c+8|0);c=J[g>>2];if(J[c+8>>2]?c:0)break C;H[a+32|0]=0;if(b)break k;J[699344]=0;b=ja(5178,d+8|0,21042,5684,408,28916,0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break D;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break g}a=Z()|0;break g}a=Z()|0;Ed(c);break g}a=Z()|0;break g}J[699344]=0;b=d+76|0;aa(5340,g|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break u;wc(d+68|0);wc(b)}if(!K[a+32|0]){J[699344]=0;da(5282,a|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break p}J[d+8>>2]=0;J[d+12>>2]=J[685894];b=J[g>>2];if(!b)break t;c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+76|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break s; +a=Z()|0;break r}a=Z()|0;break g}J[d+76>>2]=0}J[699344]=0;aa(5153,d+8|0,d+76|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+76>>2];J[d+76>>2]=0;if(!b)break q;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g=J[699344];J[699344]=0;if((g|0)!=1){if(c)break q;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break q}break a}a=Z()|0;zc(d+76|0)}wc(d+8|0);break c}b=J[d+8>>2];J[d+12>>2]=J[(b?b+12|0:2743576)>>2];wc(d+8|0);J[699344]=0;$(6235,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break p;J[699344]=0;$(6236, +a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break o}a=Z()|0;break c}wc(d+84|0);break i}a=Z()|0;break c}wc(d+68|0);wc(d+76|0)}wc(d+84|0)}fc=d+96|0;return}wc(d+8|0);Ed(c)}wc(d+68|0);break d}wc(d+32|0);break d}a=Z()|0}wc(d+76|0)}wc(d+84|0);ba(a|0);B()}B()}ea(0)|0;Bc();B()}function q1(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;j=fc-32|0;fc=j;b=J[a+36>>2];f=J[b+32>>2];h=J[b+28>>2];a:{if(J[a+292>>2])break a;c=J[b+16>>2];if(!((c-J[b+12>>2]|0)<501|(J[b+20>>2]-c|0)>499)){_g(a);if(J[a+292>>2])break a}b=J[a+36>> +2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break a;Rd(a)}d=J[a+36>>2];b=J[d+16>>2];b:{while(1){c:{d:{e:{g=K[b|0];if((g|0)!=10){if((g|0)!=32){if((g|0)!=60)break c;c=J[d+16>>2];f=b-c|0;if((f|0)<=0)break b;J[d+16>>2]=b;b=J[a>>2];if(!b)break b;e=J[b+68>>2];b=J[b+72>>2];if((e|0)==(b|0))break d;e=lC(a,c,f,1);b=J[a>>2];if(!e)break e;b=J[b+72>>2];if(!b)break b;kc[b|0](J[a+4>>2],c,f);break b}J[d+32>>2]=J[d+32>>2]+1;b=b+1|0;continue}e=J[d+28>>2];c=b;while(1){J[d+32>>2]=1;e=e+1|0;J[d+28>>2]=e;g=K[c+1|0];b=c+1|0;c= +b;if((g|0)==10)continue;break}continue}b=J[b+68>>2];if(b)kc[b|0](J[a+4>>2],c,f);a=J[a+232>>2];if(J[a>>2]!=-1)break b;J[a>>2]=-2;break b}if(!b)break b;kc[b|0](J[a+4>>2],c,f);break b}c=J[d+32>>2];while(1){if(K[g+775504|0])while(1){c=c+1|0;e=K[b+1|0];b=b+1|0;if(K[e+775504|0])continue;break}J[d+32>>2]=c;f:{e=K[b|0];if((e|0)!=93){if((e|0)!=10)break f;i=J[d+28>>2];e=b;while(1){c=1;J[d+32>>2]=1;i=i+1|0;J[d+28>>2]=i;g=K[e+1|0];b=e+1|0;e=b;if((g|0)==10)continue;break}continue}if(!(K[b+1|0]!=93|K[b+2|0]!=62)){g:{if(!a){J[j>> +2]=2375;Hc(0,0,0,0,0,1,62,3,0,0,0,0,32906,j);break g}if(J[a+172>>2]==-1?J[a+212>>2]:0)break g;J[a+84>>2]=62;J[j+16>>2]=2375;Hc(0,0,0,a,0,1,62,3,0,0,0,0,32906,j+16|0);J[a+12>>2]=0;if(J[a+288>>2])break g;J[a+212>>2]=1}J[J[a+36>>2]+16>>2]=b;break b}c=c+1|0;J[d+32>>2]=c;b=b+1|0;g=K[b|0];continue}break}e=J[d+16>>2];g=b-e|0;if((g|0)>0){i=J[a>>2];h:{if(!i)break h;i:{f=J[i+68>>2];if((f|0)==J[i+72>>2])break i;h=K[e|0]-9|0;if(h>>>0>23|!(1<>2]=b;f=lC(a,e,g,0);c=J[a>>2];j:{if(f){c= +J[c+72>>2];if(!c)break j;kc[c|0](J[a+4>>2],e,g);break j}c=J[c+68>>2];if(c)kc[c|0](J[a+4>>2],e,g);c=J[a+232>>2];if(J[c>>2]!=-1)break j;J[c>>2]=-2}d=J[a+36>>2];f=J[d+32>>2];h=J[d+28>>2];break h}if(f){kc[f|0](J[a+4>>2],e,g);d=J[a+36>>2];c=J[d+32>>2]}h=J[d+28>>2];f=c}if(J[a+172>>2]!=7)break b}J[d+16>>2]=b;k:{l:{c=K[b|0];if((c|0)!=13){if((c|0)==38|(c|0)==60)break b;break l}if(K[b+1|0]!=10)break l;J[d+16>>2]=b+1;J[d+32>>2]=1;J[d+28>>2]=J[d+28>>2]+1;b=b+2|0;break k}m:{if(J[a+292>>2])break m;if(!((b-J[d+ +12>>2]|0)<501|(J[d+20>>2]-b|0)>499)){_g(a);if(J[a+292>>2])break m}b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break m;Rd(a)}if(J[a+172>>2]==-1)break b;d=J[a+36>>2];b=J[d+16>>2]}c=H[b|0];if((c|0)>31|(c|0)==9)continue;break}J[d+32>>2]=f;J[d+28>>2]=h;f=0;e=fc-336|0;fc=e;n:{if(J[a+292>>2])break n;b=J[a+36>>2];c=J[b+16>>2];if(!((c-J[b+12>>2]|0)<501|(J[b+20>>2]-c|0)>499)){_g(a);if(J[a+292>>2])break n}b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break n;Rd(a)}b=Mf(a,e+12|0);c=0;o:{while(1){p:{if((b|0)== +38|(b|0)==60)break p;q:{if((b|0)<=255){if(1<>>0<=13:0)break q;if((b|0)<=31)break p;if((b|0)!=93)break q;d=J[J[a+36>>2]+16>>2];if(K[d+1|0]!=93|K[d+2|0]!=62|(J[a+172>>2]==-1?J[a+212>>2]:0))break q;J[a+84>>2]=62;J[e>>2]=2375;Hc(0,0,0,a,0,1,62,3,0,0,0,0,32906,e);J[a+12>>2]=0;if(J[a+288>>2])break q;J[a+212>>2]=1;break q}if(b>>>0<55296|b-57344>>>0<8190)break q;if(b-65536>>>0>=1048576)break p}r:{if(J[e+12>>2]==1){H[(e+16|0)+c|0]=b;c=c+1|0;break r}c=ej((e+16|0)+c|0,b)+c|0}if((c|0)>=300){d=e+16| +0;H[d+c|0]=0;s:{if(J[a+212>>2]|!J[a>>2])break s;g=lC(a,d,c,0);b=J[a>>2];if(g){b=J[b+72>>2];if(!b)break s;kc[b|0](J[a+4>>2],d,c);break s}d=J[b+68>>2];if(d){kc[d|0](J[a+4>>2],e+16|0,c);b=J[a>>2];c=J[b+68>>2]}else c=0;if((c|0)==J[b+72>>2])break s;b=J[a+232>>2];if(J[b>>2]!=-1)break s;J[b>>2]=-2}c=0;if(J[a+172>>2]!=7)break o}t:{if((f|0)<50){f=f+1|0;break t}u:{if(J[a+292>>2])break u;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break u;Rd(a)}f=0;if(J[a+172>>2]==-1)break o}b=J[a+36>>2];d=J[b+16>>2];v:{if(K[d| +0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break v}J[b+32>>2]=J[b+32>>2]+1}g=b;b=d+J[e+12>>2]|0;J[g+16>>2]=b;if(K[b|0]==37)Yd(a);b=Mf(a,e+12|0);continue}break}w:{if(!c)break w;d=e+16|0;H[d+c|0]=0;if(J[a+212>>2]|!J[a>>2])break w;g=0;h=lC(a,d,c,0);f=J[a>>2];if(h){f=J[f+72>>2];if(!f)break w;kc[f|0](J[a+4>>2],d,c);break w}d=J[f+68>>2];if(d){kc[d|0](J[a+4>>2],e+16|0,c);f=J[a>>2];g=J[f+68>>2]}if((g|0)==J[f+72>>2])break w;c=J[a+232>>2];if(J[c>>2]!=-1)break w;J[c>>2]=-2}if(!b)break o;x:{if((b|0)<=255){if((b| +0)>31)break o;if(!(1<>>0>13)break x;break o}if(b-57344>>>0<8190|b-65536>>>0<1048576)break o}El(a,9,36323,b);b=J[a+36>>2];c=J[b+16>>2];y:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break y}J[b+32>>2]=J[b+32>>2]+1}f=b;b=c+J[e+12>>2]|0;J[f+16>>2]=b;if(K[b|0]!=37)break o;Yd(a)}fc=e+336|0}fc=j+32|0}function HW(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=fc-80|0;fc=f;a:{b:{c:{d:{e:{f:{g:{if(!K[b+89|0]){a=Qc(f+44|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0); +b=J[699344];J[699344]=0;if((b|0)!=1)break g;b=Z()|0;Kc(a);ba(b|0);B()}h=J[c>>2];if(!(J[h+8>>2]?h:0)){KW(a,b,-1,0);break e}h=Cm(f+44|0);J[699344]=0;e=f+8|0;ca(5399,e|0,b|0,c|0);g=J[699344];J[699344]=0;h:{i:{if((g|0)!=1){J[699344]=0;aa(5253,h|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;J[f+32>>2]=2392964;J[f+8>>2]=2392932;e=J[f+36>>2];if(e){g=J[e+4>>2]-1|0;J[e+4>>2]=g;if(!g)kc[J[J[e>>2]+4>>2]](e);J[f+36>>2]=0}J[f+24>>2]=2392964;e=J[f+28>>2];if(e){g=J[e+4>>2]-1|0;J[e+4>>2]=g;if(!g)kc[J[J[e>> +2]+4>>2]](e);J[f+28>>2]=0}wc(f+16|0);j:{k:{e=J[h+8>>2];l:{m:{if(!e|!J[e+8>>2])break m;J[699344]=0;e=f+8|0;ca(5401,e|0,h|0,0);g=J[699344];J[699344]=0;if((g|0)==1)break l;g=J[f+8>>2];if(!g){wc(e);break m}e=J[g+8>>2];wc(f+8|0);if(e)break j}J[699344]=0;e=_(5422,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;if(e)break j;J[699344]=0;d=J[b+92>>2];e=J[699344];J[699344]=0;if((e|0)==1)break l;if(!(d&24))break k;J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break f}b=Z()|0; +break b}J[699344]=0;d=f+8|0;ca(5378,d|0,b|0,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;J[699344]=0;aa(5253,h|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[f+32>>2]=2392964;J[f+8>>2]=2392932;d=J[f+36>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[f+36>>2]=0}J[f+24>>2]=2392964;d=J[f+28>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[f+28>>2]=0}wc(f+16|0);d=J[b+136>>2];if(d)while(1){e=0;n:{o:{p:{g=J[d+8>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>> +2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break p;e=J[d+8>>2]}J[699344]=0;J[f+8>>2]=e;g=aa(5236,e+24|0,h|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;e=J[f+8>>2];if(!g)break n;b=J[e+60>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break o;b=J[e+60>>2]}else b=0;J[a>>2]=b;J[699344]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break f;J[699344]=0;$(5147,e|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}break a}b=Z()|0;break b}b=Z()|0;zc(f+ +8|0);break b}q:{if(!e)break q;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(g)break q;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}d=J[d>>2];if(d)continue;break}J[699344]=0;d=_(4,68)|0;e=J[699344];J[699344]=0;r:{s:{t:{u:{v:{w:{if((e|0)!=1){J[699344]=0;J[f+4>>2]=0;e=f+4|0;aa(5145,e|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break v;J[699344]=0;c=ja(5413,d|0,0,c|0,0,h|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){b=Z()|0;zc(e);uc(d);break b}J[699344]= +0;J[f+8>>2]=0;aa(5145,f+8|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break w;c=J[f+4>>2];J[f+4>>2]=0;x:{if(!c)break x;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break x;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;c=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break s;J[c>>2]=0;J[c+4>>2]=0;d=J[f+8>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break s;d=J[f+8>>2]}else d=0;J[c+8>>2]= +d;J[699344]=0;vf(b+128|0,c);c=J[699344];J[699344]=0;if((c|0)==1)break s;J[699344]=0;J[f>>2]=0;aa(5145,f|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break s;c=K[b+88|0];b=J[b+84>>2];J[699344]=0;ma(5414,a|0,h|0,f|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break u;b=J[f>>2];J[f>>2]=0;y:{if(!b)break y;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break y;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;aa(5153,J[f+8>>2]+60| +0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break t;b=Z()|0;zc(a);break r}b=Z()|0;break b}b=Z()|0;zc(f+4|0);break b}b=Z()|0;uc(d);break b}b=Z()|0;zc(f);break r}a=J[f+8>>2];J[f+8>>2]=0;if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break h;if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;break f}b=Z()|0}zc(f+8|0);break b}J[699344]=0;ia(5423,a|0,b|0,h|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f;b=Z()|0;break b}b=Z()| +0;break b}b=Z()|0;Ed(f+8|0);break b}ea(0)|0;Bc()}B()}J[h+24>>2]=2392964;J[h>>2]=2392932;a=J[h+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[h+28>>2]=0}J[h+16>>2]=2392964;a=J[h+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[h+20>>2]=0}wc(h+8|0)}fc=f+80|0;return}b=Z()|0;Ed(f+8|0);break b}b=Z()|0}Ed(h);ba(b|0);B()}ea(0)|0;Bc();B()}function VPa(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;f=fc-16|0;fc=f;d=J[a+8>>2];kc[J[J[d>>2]+20>> +2]](d);a:{b:{d=J[a+8>>2];if((kc[J[J[d>>2]+32>>2]](d)|0)==255)break b;if(!IB(a,f+12|0,f+8|0,f+4|0))break a;while(1){c:{d:{e:{f:{g:{h:{d=J[f+12>>2];switch(d-1785737827|0){case 5:break c;case 1:case 2:case 3:case 4:break f;case 0:break g;default:break h}}if((d|0)!=1668246642){if((d|0)!=1768449138)break f;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>> +2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>> +2]](d)|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;l=1;J[b>>2]=e+1;break c}d=J[a+8>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break c;d=J[a+8>>2];j=kc[J[J[d>>2]+28>>2]](d)|0;if((j|0)==-1)break c;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break c;if((e|0)==1){d=J[a+8>>2];k=kc[J[J[d>>2]+28>>2]](d)|0;if((k|0)==-1)break c;d=J[a+8>>2];g=kc[J[J[d>>2]+28>>2]](d)|0;if((g|0)==-1)break c;d=J[a+8>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==-1)break c;d=J[a+8>>2];d=kc[J[J[d>>2]+ +28>>2]](d)|0;if((d|0)==-1)break c;e=d|(g<<16|k<<24|e<<8);if(e>>>0>21)break e;d=1<(h|0))){d=h;break d}J[c>>2]=g;break d}e=J[f+4>>2];if(e>>>0<4)break c;d=J[a+8>>2];kc[J[J[d>>2]+48>>2]](d,e-3|0)|0;break c}if(!l)break b;if(i)break a;break b}d=J[a+8>>2];kc[J[J[d>>2]+48>>2]](d,J[f+4>>2])|0;break c}d=h;e=i}i=J[f+4>>2];if(i>>>0>=8){h=J[a+8>>2];kc[J[J[h>>2]+48>>2]](h,i-7|0)|0}h=d;i=e}if(IB(a, +f+12|0,f+8|0,f+4|0))continue;break}break a}g=fc-16|0;fc=g;j:{k:{while(1){d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)!=255){if((d|0)!=-1)continue;break j}while(1){d=J[a+8>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;if((e|0)==255)continue;break}l:switch(e+1|0){case 0:break j;case 1:continue;default:break l}if((e&-16)==48)continue;i=0;if(!((e|0)==79|e-146>>>0<2|(e|0)==217)){d=J[a+8>>2];h=kc[J[J[d>>2]+28>>2]](d)|0;if((h|0)==-1)break j;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break j;i=d|h<<8}m:{if((e| +0)==81){d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j; +d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+ +8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;d=J[a+8>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)==-1)break j;if(!Qo(a,g+12|0))break j;if(!Qo(a,g+12|0))break j;d=J[a+8>>2];e=kc[J[J[d>> +2]+28>>2]](d)|0;if((e|0)==-1)break j;d=J[a+8>>2];h=kc[J[J[d>>2]+28>>2]](d)|0;if((h|0)==-1)break j;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break j;J[b>>2]=(d&127)+1;n:{b=h|e<<8;switch(b-1|0){case 0:break k;case 2:break m;case 3:break n;default:break j}}b=3;break k}if(i>>>0<3)continue;d=J[a+8>>2];kc[J[J[d>>2]+48>>2]](d,i-2|0)|0;continue}break}b=2}J[c>>2]=b}fc=g+16|0}a=J[a+8>>2];kc[J[J[a>>2]+24>>2]](a);fc=f+16|0}function MC(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,r=0,s=0;a:{if(!a|!c)break a;if(!b)return te(a,c,-1);k=Yc(c);l=Yc(b);r=k+l|0;d=J[a+24>>2];i=J[a+8>>2];b:{if((i|0)==128){m=p2(b,l,c,k,d);break b}c:{if((l|0)<=0)break c;if(l>>>0>=4){f=l&-4;while(1){d=P(K[b+e|0]+d|0,1025);d=P(K[(e|1)+b|0]+(d>>>6^d)|0,1025);d=P(K[(e|2)+b|0]+(d>>>6^d)|0,1025);d=P(K[(e|3)+b|0]+(d>>>6^d)|0,1025);d=d>>>6^d;e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=l&3;if(!f)break c;while(1){d=P(K[b+e|0]+d|0,1025);d=d>>>6^d;e=e+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}e=P(d, +1025)+59450|0;d=e>>>6^e;d:{if((k|0)<=0)break d;f=k&3;g=0;e:{if(k>>>0<4){e=0;break e}h=k&-4;e=0;j=0;while(1){d=P(K[c+e|0]+d|0,1025);d=P(K[(e|1)+c|0]+(d>>>6^d)|0,1025);d=P(K[(e|2)+c|0]+(d>>>6^d)|0,1025);d=P(K[(e|3)+c|0]+(d>>>6^d)|0,1025);d=d>>>6^d;e=e+4|0;j=j+4|0;if((h|0)!=(j|0))continue;break}}if(!f)break d;while(1){d=P(K[c+e|0]+d|0,1025);d=d>>>6^d;e=e+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}e=P(d,9);m=P(e>>>11^e,32769)}n=r+1|0;f:{s=(m>>>0)%(i>>>0)|0;j=J[a+4>>2]+P(s,20)|0;if(!J[j+12>>2]){j=0;break f}d= +J[j>>2];if(d)while(1){e=j;j=d;g:{if(J[e+16>>2]!=(m|0)|J[e+8>>2]!=(n|0))break g;h=J[e+4>>2];if(!h)break g;d=K[b|0];f=b;e=h;while(1){g=e;d=d&255;if((d|0)!=K[e|0])break g;e=e+1|0;if(d){f=f+1|0;d=K[f|0];if(d)continue}break}if(K[e|0]!=58)break g;e=g+2|0;d=c;while(1){f=K[d|0];if((f|0)!=K[e|0])break g;e=e+1|0;d=d+1|0;if(f)continue;break}break a}p=p+1|0;d=J[j>>2];if(d)continue;break}if(J[j+16>>2]!=(m|0)|J[j+8>>2]!=(n|0))break f;h=J[j+4>>2];if(!h)break f;d=K[b|0];f=b;e=h;while(1){g=e;d=d&255;if((d|0)!=K[e| +0])break f;e=e+1|0;if(d){f=f+1|0;d=K[f|0];if(d)continue}break}if(K[e|0]!=58)break f;e=g+2|0;d=c;while(1){f=K[d|0];if((f|0)!=K[e|0])break f;e=e+1|0;d=d+1|0;if(f)continue;break}break a}o=J[a+20>>2];h:{if(!o)break h;e=128;h=J[o+8>>2];i:{j:{k:{l:{if((i|0)==128){i=m;if((h|0)==128)break i;d=J[o+24>>2];if((l|0)<=0)break j;i=l&3;g=0;if(l>>>0>=4)break l;e=0;break k}i=m;e=h;if((e|0)!=128)break i;e=128;i=p2(b,l,c,k,J[o+24>>2]);break i}q=l&-4;e=0;f=0;while(1){d=P(K[b+e|0]+d|0,1025);d=P(K[(e|1)+b|0]+(d>>>6^d)| +0,1025);d=P(K[(e|2)+b|0]+(d>>>6^d)|0,1025);d=P(K[(e|3)+b|0]+(d>>>6^d)|0,1025);d=d>>>6^d;e=e+4|0;f=f+4|0;if((q|0)!=(f|0))continue;break}}if(!i)break j;while(1){d=P(K[b+e|0]+d|0,1025);d=d>>>6^d;e=e+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}e=P(d,1025)+59450|0;d=e>>>6^e;m:{if((k|0)<=0)break m;i=k&3;g=0;n:{if(k>>>0<4){e=0;break n}q=k&-4;e=0;f=0;while(1){d=P(K[c+e|0]+d|0,1025);d=P(K[(e|1)+c|0]+(d>>>6^d)|0,1025);d=P(K[(e|2)+c|0]+(d>>>6^d)|0,1025);d=P(K[(e|3)+c|0]+(d>>>6^d)|0,1025);d=d>>>6^d;e=e+4|0;f= +f+4|0;if((q|0)!=(f|0))continue;break}}if(!i)break m;while(1){d=P(K[c+e|0]+d|0,1025);d=d>>>6^d;e=e+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}e=P(d,9);i=P(e>>>11^e,32769);e=h}g=J[o+4>>2]+P((i>>>0)%(e>>>0)|0,20)|0;if(!J[g+12>>2])break h;d=J[g>>2];if(d)while(1){e=g;g=d;o:{if(J[e+16>>2]!=(i|0)|J[e+8>>2]!=(n|0))break o;h=J[e+4>>2];if(!h)break o;d=K[b|0];f=b;e=h;while(1){o=e;d=d&255;if((d|0)!=K[e|0])break o;e=e+1|0;if(d){f=f+1|0;d=K[f|0];if(d)continue}break}if(K[e|0]!=58)break o;e=o+2|0;d=c;while(1){f= +K[d|0];if((f|0)!=K[e|0])break o;e=e+1|0;d=d+1|0;if(f)continue;break}break a}p=p+1|0;d=J[g>>2];if(d)continue;break}if(J[g+16>>2]!=(i|0)|J[g+8>>2]!=(n|0))break h;d=c;h=J[g+4>>2];e=h;p:{q:{f=b;r:{if(!f){g=1;if((e|0)==(d|0))break p;if(!d|!e)break q;while(1){f=K[d|0];if((f|0)==K[e|0]){e=e+1|0;d=d+1|0;if(f)continue;break r}break}break q}if(!d|!e)break q;i=K[f|0];while(1){g=e;if(K[e|0]!=(i|0))break q;e=e+1|0;if(i){f=f+1|0;i=K[f|0];if(i)continue}break}if(K[e|0]!=58)break q;e=g+2|0;while(1){f=K[d|0];if((f| +0)!=K[e|0])break q;e=e+1|0;d=d+1|0;if(f)continue;break}}g=1;break p}g=0}if(g)break a}s:{t:{u:{e=J[a+16>>2];if(!e)break u;f=0;d=0;while(1){g=J[e+4>>2];if(J[e+8>>2]-g>>>0>n>>>0)break s;h=J[e+12>>2];d=d>>>0>>0?h:d;f=f+h|0;e=J[e>>2];if(e)continue;break}e=J[a+28>>2];if(e){h=0;if(e>>>0>>0)break a}if(!d)break u;e=d<<2;break t}e=1E3}h=0;d=(r<<2)+4|0;d=e>>>0>d>>>0?e:d;e=kc[J[663195]](d+24|0)|0;if(!e)break a;J[e+16>>2]=0;J[e+12>>2]=d;g=e+20|0;J[e+4>>2]=g;J[e+8>>2]=d+g;J[e>>2]=J[a+16>>2];J[a+16>>2]=e}b= +xc(g,b,l);d=J[e+4>>2]+l|0;J[e+4>>2]=d+1;H[d|0]=58;xc(J[e+4>>2],c,k);c=J[e+4>>2]+k|0;J[e+4>>2]=c+1;h=0;H[c|0]=0;J[e+16>>2]=J[e+16>>2]+1;if(!b)break a;v:{if(!j){c=J[a+4>>2]+P(s,20)|0;J[c+8>>2]=n;J[c+4>>2]=b;J[c+16>>2]=m;J[c+12>>2]=1;J[c>>2]=0;break v}c=kc[J[663195]](20)|0;if(!c)break a;J[c+8>>2]=n;J[c+4>>2]=b;J[c+16>>2]=m;J[c+12>>2]=1;J[c>>2]=0;J[j>>2]=c}J[a+12>>2]=J[a+12>>2]+1;w:{if(p>>>0<4)break w;c=J[a+8>>2];if(c>>>0>2730)break w;q2(a,P(c,6))}h=b}return h}function _ma(a){a=a|0;var b=0,c=0,d=0,e= +0,f=0,g=0,h=0,i=0,j=0;d=fc-160|0;fc=d;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;J[699344]=0;e=_(4,32)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if((b|0)!=1){J[d+72>>2]=e;J[d+76>>2]=6;J[d+80>>2]=-2147483640;b=J[610987];J[e+16>>2]=J[610986];J[e+20>>2]=b;b=J[610985];J[e+8>>2]=J[610984];J[e+12>>2]=b;b=J[610983];J[e>>2]=J[610982];J[e+4>>2]=b;J[e+24>>2]=0;J[699344]=0;e=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break s;J[d+16>>2]= +e;J[d+20>>2]=6;J[d+24>>2]=-2147483640;b=J[610987];J[e+16>>2]=J[610986];J[e+20>>2]=b;b=J[610985];J[e+8>>2]=J[610984];J[e+12>>2]=b;b=J[610983];J[e>>2]=J[610982];J[e+4>>2]=b;J[e+24>>2]=0;J[699344]=0;e=ga(6647,d+116|0,d+72|0,d+16|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+83|0]<0)uc(J[d+72>>2]);J[699344]=0;b=_(4,48)|0;c=J[699344];J[699344]=0;if((c|0)==1)break p;J[d+16>>2]=b;J[d+20>>2]=8;J[d+24>>2]=-2147483636;c=J[610996];J[b+24>>2]=J[610995];J[b+28>>2]=c;c=J[610994]; +J[b+16>>2]=J[610993];J[b+20>>2]=c;c=J[610992];J[b+8>>2]=J[610991];J[b+12>>2]=c;c=J[610990];J[b>>2]=J[610989];J[b+4>>2]=c;J[b+32>>2]=0;J[699344]=0;b=_(4,48)|0;c=J[699344];J[699344]=0;if((c|0)==1)break o;J[d+60>>2]=b;J[d+64>>2]=9;J[d+68>>2]=-2147483636;J[b+32>>2]=J[611006];c=J[611005];J[b+24>>2]=J[611004];J[b+28>>2]=c;c=J[611003];J[b+16>>2]=J[611002];J[b+20>>2]=c;c=J[611001];J[b+8>>2]=J[611E3];J[b+12>>2]=c;c=J[610999];J[b>>2]=J[610998];J[b+4>>2]=c;J[b+36>>2]=0;J[699344]=0;g=ga(6647,d+72|0,d+16|0,d+ +60|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;if(H[d+71|0]<0)uc(J[d+60>>2]);if(H[d+27|0]<0)uc(J[d+16>>2]);J[699344]=0;b=_(4,48)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;J[d+60>>2]=b;J[d+64>>2]=8;J[d+68>>2]=-2147483636;c=J[611015];J[b+24>>2]=J[611014];J[b+28>>2]=c;c=J[611013];J[b+16>>2]=J[611012];J[b+20>>2]=c;c=J[611011];J[b+8>>2]=J[611010];J[b+12>>2]=c;c=J[611009];J[b>>2]=J[611008];J[b+4>>2]=c;J[b+32>>2]=0;J[699344]=0;b=_(4,48)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;J[d+4>>2]=b; +J[d+8>>2]=9;J[d+12>>2]=-2147483636;J[b+32>>2]=J[611025];c=J[611024];J[b+24>>2]=J[611023];J[b+28>>2]=c;c=J[611022];J[b+16>>2]=J[611021];J[b+20>>2]=c;c=J[611020];J[b+8>>2]=J[611019];J[b+12>>2]=c;c=J[611018];J[b>>2]=J[611017];J[b+4>>2]=c;J[b+36>>2]=0;J[699344]=0;h=ga(6647,d+16|0,d+60|0,d+4|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;if(H[d+15|0]<0)uc(J[d+4>>2]);if(H[d+71|0]<0)uc(J[d+60>>2]);H[e+36|0]=1;c=g+24|0;b=H[e+11|0];if(H[g+35|0]>=0){if((b|0)<0)break h;f=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]= +f;J[c+8>>2]=J[e+8>>2];break f}f=J[e>>2];i=J[e+4>>2];J[699344]=0;j=c;c=(b|0)<0;ga(1630,j|0,(c?f:e)|0,(c?i:b&255)|0)|0;break g}b=Z()|0;break a}b=Z()|0;break q}b=Z()|0;if(H[d+27|0]>=0)break q;uc(J[d+16>>2])}if(H[d+83|0]>=0)break a;uc(J[d+72>>2]);break a}b=Z()|0;break b}b=Z()|0;break m}b=Z()|0;if(H[d+71|0]>=0)break m;uc(J[d+60>>2])}if(H[d+27|0]>=0)break b;uc(J[d+16>>2]);break b}b=Z()|0;break c}b=Z()|0;break i}b=Z()|0;if(H[d+15|0]>=0)break i;uc(J[d+4>>2])}if(H[d+71|0]>=0)break c;uc(J[d+60>>2]);break c}b= +J[e+4>>2];f=J[e>>2];J[699344]=0;ga(1631,c|0,f|0,b|0)|0}b=J[699344];J[699344]=0;if((b|0)==1)break e;b=K[e+11|0]}J[g+40>>2]=9;c=h+24|0;t:{if(H[h+35|0]>=0){if(b<<24>>24>=0){b=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]=b;J[c+8>>2]=J[e+8>>2];break t}b=J[e+4>>2];f=J[e>>2];J[699344]=0;ga(1631,c|0,f|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break t;break e}f=J[e>>2];i=J[e+4>>2];J[699344]=0;j=c;c=b<<24>>24<0;ga(1630,j|0,(c?f:e)|0,(c?i:b&255)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e}J[h+40>>2]=9;J[699344]= +0;c=_(4,52)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[c>>2]=0;J[699344]=0;b=a+8|0;ca(6648,b|0,c+8|0,e|0);f=J[699344];J[699344]=0;if((f|0)==1){b=Z()|0;uc(c);break d}J[c+4>>2]=a;f=J[a>>2];J[c>>2]=f;J[f+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;J[699344]=0;c=_(4,52)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[c>>2]=0;J[699344]=0;ca(6648,b|0,c+8|0,g|0);f=J[699344];J[699344]=0;if((f|0)==1){b=Z()|0;uc(c);break d}J[c+4>>2]=a;f=J[a>>2];J[c>>2]=f;J[f+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;J[699344]= +0;c=_(4,52)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[c>>2]=0;J[699344]=0;ca(6648,b|0,c+8|0,h|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;uc(c);break d}J[c+4>>2]=a;b=J[a>>2];J[c>>2]=b;J[b+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;yo(h);yo(g);yo(e);fc=d+160|0;return a|0}b=Z()|0}yo(h)}yo(g)}yo(e)}d=a;u:{if(!J[d+8>>2])break u;a=J[d+4>>2];e=J[a>>2];c=J[J[d>>2]+4>>2];J[e+4>>2]=c;J[c>>2]=e;J[d+8>>2]=0;if((a|0)==(d|0))break u;while(1){e=J[a+4>>2];yo(a+8|0);uc(a);a=e;if((d|0)!=(e|0))continue;break}}ba(b| +0);B()}function zGa(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;g=fc-112|0;fc=g;a:{b:{c:{d:{e:{f:{g:{if(Th(a))break g;m=g+92|0;J[m>>2]=0;J[m+4>>2]=0;H[m+8|0]=0;J[699344]=0;l=g+80|0;J[l>>2]=0;J[l+4>>2]=0;H[l+8|0]=0;e=J[699344];J[699344]=0;if((e|0)==1)break d;J[699344]=0;q=$g(a);e=J[699344];J[699344]=0;if((e|0)==1)break e;while(1){J[699344]=0;e=aa(4975,a|0,q|0)|0;f=J[699344];J[699344]=0;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{if((f|0)==1)break r;if(!e)break q;J[699344]= +0;e=g+56|0;da(4962,e|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;e=aa(4985,g+68|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break k;J[699344]=0;dg(m,e);f=J[699344];J[699344]=0;if((f|0)==1)break l;Rc(e);if(H[g+67|0]<0)uc(J[g+56>>2]);J[699344]=0;e=Qd(m,2384996);f=J[699344];J[699344]=0;if((f|0)==1)break r;if(!e)continue;J[699344]=0;e=vk(a);f=J[699344];J[699344]=0;if((f|0)==1)break c;if(!e){j=0;n=0;break h}J[699344]=0;e=g+56|0;da(4970,e|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break m; +J[699344]=0;e=aa(4985,g+44|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break o;J[699344]=0;dg(l,e);f=J[699344];J[699344]=0;if((f|0)==1)break p;Rc(e);if(H[g+67|0]<0)uc(J[g+56>>2]);j=0;n=0;s:{t:{u:{while(1){J[699344]=0;e=!J[l+4>>2];f=J[699344];J[699344]=0;v:{w:{if((f|0)==1)break w;if(!e){J[699344]=0;e=Qd(l,2385048);f=J[699344];J[699344]=0;if((f|0)==1)break w;x:{if(e){J[699344]=0;e=g+56|0;da(4971,e|0,a|0);f=J[699344];J[699344]=0;y:{z:{A:{if((f|0)!=1){J[699344]=0;e=aa(4985,g+32|0,e|0)|0;f=J[699344]; +J[699344]=0;if((f|0)==1)break A;J[699344]=0;ca(5106,e|0,g+108|0,g+104|0);f=J[699344];J[699344]=0;if((f|0)==1)break z;Rc(e);if(H[g+67|0]<0)uc(J[g+56>>2]);e=J[g+108>>2]&16777215;o=O[d>>3]*+J[g+104>>2];B:{if(R(o)<2147483648){f=~~o;break B}f=-2147483648}j=e|f<<24;break x}a=Z()|0;break b}a=Z()|0;break y}a=Z()|0;Rc(e)}if(H[g+67|0]>=0)break b;uc(J[g+56>>2]);break b}J[699344]=0;e=Qd(l,2385072);f=J[699344];J[699344]=0;if((f|0)==1)break w;if(!e)break x;J[699344]=0;e=g+56|0;da(4971,e|0,a|0);f=J[699344];J[699344]= +0;C:{D:{E:{if((f|0)!=1){J[699344]=0;h=aa(4985,g+20|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break E;J[699344]=0;J[g+108>>2]=0;e=J[h>>2];F:{if(K[h+8|0]){f=0;if(!e)break F;e=J[e>>2]}f=e}e=J[699344];J[699344]=0;if((e|0)==1)break D;J[699344]=0;e=J[h+4>>2];i=J[699344];J[699344]=0;if((i|0)==1)break D;J[g+104>>2]=e;n=$e(f,g+108|0,g+104|0);Rc(h);if(H[g+67|0]>=0)break x;uc(J[g+56>>2]);break x}a=Z()|0;break b}a=Z()|0;break C}a=Z()|0;Rc(h)}if(H[g+67|0]>=0)break b;uc(J[g+56>>2]);break b}J[699344]=0;e=Mi(a); +f=J[699344];J[699344]=0;if((f|0)==1)break w;if(e)break v}J[699344]=0;gj(a);e=J[699344];J[699344]=0;if((e|0)!=1)break h;break c}a=Z()|0;break b}J[699344]=0;e=g+56|0;da(4970,e|0,a|0);f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;e=aa(4985,g+8|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break u;J[699344]=0;dg(l,e);f=J[699344];J[699344]=0;if((f|0)==1)break t;Rc(e);if(H[g+67|0]>=0)continue;uc(J[g+56>>2]);continue}break}a=Z()|0;break b}a=Z()|0;break s}a=Z()|0;Rc(e)}if(H[g+67|0]>=0)break b;uc(J[g+56>> +2]);break b}a=Z()|0;break b}Rc(l);Rc(m);break g}a=Z()|0;Rc(e);break n}a=Z()|0}if(H[g+67|0]>=0)break b;uc(J[g+56>>2]);break b}a=Z()|0;break b}a=Z()|0;Rc(e);break j}a=Z()|0}if(H[g+67|0]>=0)break b;uc(J[g+56>>2]);break b}a=Z()|0;break b}G:{H:{e=J[b+4>>2];I:{J:{K:{if((e|0)!=J[b+8>>2]){J[e>>2]=j;J[b+4>>2]=e+4;break K}h=J[b>>2];f=e-h|0;p=f>>2;i=p+1|0;if(i>>>0>=1073741824){J[699344]=0;$(5135,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break I;break f}k=f>>1;i=f>>>0>=2147483644?1073741823:i>>>0>>0?k:i;L:{if(!i){k= +0;break L}if(i>>>0>1073741823)break J;J[699344]=0;k=_(4,i<<2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c}f=(p<<2)+k|0;J[f>>2]=j;j=f+4|0;if((e|0)!=(h|0))while(1){f=f-4|0;e=e-4|0;J[f>>2]=J[e>>2];if((e|0)!=(h|0))continue;break}J[b+8>>2]=(i<<2)+k;J[b+4>>2]=j;J[b>>2]=f;if(!h)break K;uc(h)}e=J[c+4>>2];if((e|0)!=J[c+8>>2]){O[e>>3]=n;J[c+4>>2]=e+8;continue}h=J[c>>2];f=e-h|0;k=f>>3;j=k+1|0;if(j>>>0>=536870912){J[699344]=0;$(2494,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f;break I}i=f>>2;j=f>>>0>=2147483640? +536870911:i>>>0>j>>>0?i:j;if(!j){i=0;break G}if(j>>>0<536870912)break H}J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break f}a=Z()|0;break b}J[699344]=0;i=_(4,j<<3)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c}f=(k<<3)+i|0;O[f>>3]=n;k=f+8|0;if((e|0)!=(h|0))while(1){f=f-8|0;e=e-8|0;O[f>>3]=O[e>>3];if((e|0)!=(h|0))continue;break}J[c+8>>2]=(j<<3)+i;J[c+4>>2]=k;J[c>>2]=f;if(!h)continue;uc(h);continue}}fc=g+112|0;return}B()}a=Z()|0;break b}a=Z()|0;break a}a=Z()|0}Rc(l)}Rc(m);ba(a|0);B()}function hi(a){var b= +0,c=0,d=0,e=0,f=0,g=0,h=0;e=fc-32|0;fc=e;a:{if(J[a+292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Rd(a)}b:{c:{f=J[a+36>>2];b=J[f+16>>2];c=K[b|0];if(!(((c&223)-65&255)>>>0<26|(c|0)==95)&(c|0)!=58)break c;c=b;while(1){d=K[c+1|0];g=c+1|0;c=g;if((d-48&255)>>>0<10|((d&223)-65&255)>>>0<26)continue;h=d-45|0;if((d|0)==95|(1<>>0<=13:0))continue;break}if(!d|d<<24>>24<0)break c;d=c-b|0;if(!(K[a+362|0]&8|(d|0)<50001)){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break b}J[a+84>>2]= +110;J[e+4>>2]=14133;J[e>>2]=6556;c=0;Hc(0,0,0,a,0,1,110,3,14133,0,0,0,32777,e);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}c=te(J[a+296>>2],b,d);b=J[a+36>>2];J[b+16>>2]=g;J[a+200>>2]=d+J[a+200>>2];J[b+32>>2]=d+J[b+32>>2];if(c)break b;c=0;se(a,0);break b}if(!(J[a+292>>2]|(J[f+20>>2]-b|0)>249))Rd(a);if(J[a+172>>2]==-1){c=0;break b}b=Mf(a,e+28|0);d:{e:{f:{if(!(K[a+362|0]&2)){c=0;g:{h:switch(b-47|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break g; +case 0:case 15:break b;default:break h}if((b|0)!=32)break g;break b}i:{if((b|0)==58|(b&-33)-65>>>0<26|((b|0)==95|b-192>>>0<23))break i;if(b-216>>>0<31|b-248>>>0<520|(b-880>>>0<14|b-895>>>0<7297))break i;if((b&-2)==8204|b-8304>>>0<288|(b-11264>>>0<1008|b-12289>>>0<43007))break i;if(b-63744>>>0<1232|b-65008>>>0<526|b-65536>>>0<=917503)break i;break b}d=J[e+28>>2];c=J[a+36>>2];b=J[c+16>>2];j:{if(K[b|0]==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break j}J[c+32>>2]=J[c+32>>2]+1}b=b+d|0;J[c+16>>2]=b;c=0; +if(K[b|0]!=37)break f;b=0;break e}c=0;k:{l:switch(b-47|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break k;case 0:case 15:break b;default:break l}if((b|0)!=32)break k;break b}m:{if((b|0)<=255){if((b&-33)-65>>>0<26|b-192>>>0<23|(b-216>>>0<31|(b|0)>247))break m;if((b|0)==95|(b|0)==58)break m;break b}if(Zm(b,771140)|b-12321>>>0<9|((b|0)==12295|b-19968>>>0<20902))break m;break b}d=J[e+28>>2];c=J[a+36>>2];b=J[c+16>>2];n:{if(K[b|0]==10){J[c+ +32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break n}J[c+32>>2]=J[c+32>>2]+1}g=c;c=b+d|0;J[g+16>>2]=c;if(K[c|0]==37)Yd(a);while(1){c=0;b=Mf(a,e+28|0);while(1){o:switch(b-47|0){default:if((b|0)==32)break d;break;case 0:case 15:break d;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break o}p:{q:{if((b|0)<=255){if(b-192>>>0<23|(b&-33)-65>>>0<26|(b-48>>>0<10|(b|0)>247))break p;if(b-216>>>0>=31)break q;break p}if(Zm(b,771140)|b-12321>>>0<9|((b|0)==12295|b-19968>>> +0<20902))break p;if(Zm(b,771624))break p}f=b-45|0;if((b|0)==95|(1<>>0<=13:0))break p;r:{if((b|0)>=256){if(Zm(b,771548))break p;b=Zm(b,771688);break r}b=(b|0)==183}if(!b)break d}s:{if((c|0)<101){c=c+1|0;break s}t:{if(J[a+292>>2])break t;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break t;Rd(a)}c=0;if(J[a+172>>2]==-1)break b}b=J[a+36>>2];f=J[b+16>>2];u:{if(K[f|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break u}J[b+32>>2]=J[b+32>>2]+1}g=b;b=J[e+28>>2];f=b+f|0;J[g+16>>2]=f;if(K[f|0]==37)Yd(a); +d=b+d|0;b=Mf(a,e+28|0);if(b)continue;break}v:{if(J[a+292>>2])break v;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break v;Rd(a)}c=0;if(J[a+172>>2]!=-1)continue;break}break b}b=1}while(1){if(!b){Yd(a);b=1;continue}while(1){w:{x:{b=Mf(a,e+28|0);switch(b-47|0){case 0:case 15:break d;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break w;default:break x}}if((b|0)==32)break d}y:{if(b-48>>>0<11|(b&-33)-65>>>0<26|((b|0)==95|b-45>>>0<2))break y;if((b| +0)==183|b-65536>>>0<917504|(b-65008>>>0<526|b-63744>>>0<1232))break y;if(b-12289>>>0<43007|b-11264>>>0<1008|(b-8304>>>0<288|b-8255>>>0<2))break y;if((b&-2)==8204|b-895>>>0<7297|(b-248>>>0<646|b-192>>>0<23))break y;if(b-216>>>0>30)break d}z:{if((c|0)<101){c=c+1|0;break z}A:{if(J[a+292>>2])break A;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break A;Rd(a)}c=0;if(J[a+172>>2]==-1)break b}b=J[a+36>>2];f=J[b+16>>2];B:{if(K[f|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break B}J[b+32>>2]=J[b+32>>2]+1}g= +J[e+28>>2];d=g+d|0;h=b;b=f+g|0;J[h+16>>2]=b;if(K[b|0]!=37)continue;break}b=0;continue}}if(!(K[a+362|0]&8|(d|0)<50001)){if(J[a+212>>2]){c=0;if(J[a+172>>2]==-1)break b}J[a+84>>2]=110;J[e+20>>2]=14133;J[e+16>>2]=6556;c=0;Hc(0,0,0,a,0,1,110,3,14133,0,0,0,32777,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}c=J[J[a+36>>2]+16>>2];if(!(K[c|0]!=10|K[c-1|0]!=13)){c=te(J[a+296>>2],c+(d^-1)|0,d);break b}c=te(J[a+296>>2],c-d|0,d)}fc=e+32|0;return c}function DBa(a,b){a=a|0;b=b|0;var c=0,d=0, +e=0,f=0,g=0,h=0,i=0;d=fc-112|0;fc=d;a:{b:{c:{d:{if(!K[b+89|0]){a=Qc(d+24|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=Z()|0;Kc(a);ba(b|0);B()}e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if(K[b+63|0]){J[699344]=0;aa(5201,a|0,b+68|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break o;break c}J[d+104>>2]=0;J[d+96>>2]=0;J[d+100>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[699344]=0;h=aa(5250,d+80|0,2413244)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c; +p:{if(J[b+56>>2]-3>>>0<=1){e=J[b+48>>2];J[699344]=0;da(5441,d- -64|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;q:{r:{s:{e=J[d+72>>2];if(e){g=d+32|0;while(1){c=J[e+8>>2];J[699344]=0;f=d+24|0;ca(5399,f|0,b|0,c+36|0);c=J[699344];J[699344]=0;if((c|0)==1)break s;J[699344]=0;c=aa(5438,h|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break r;J[c+52>>2]=0;J[d+48>>2]=2392964;J[d+24>>2]=2392932;c=J[d+52>>2];if(c){f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(!f)kc[J[J[c>>2]+4>>2]](c);J[d+52>>2]=0}J[d+40>>2]=2392964; +c=J[d+44>>2];if(c){f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(!f)kc[J[J[c>>2]+4>>2]](c);J[d+44>>2]=0}wc(g);e=J[e>>2];if(e)continue;break}}id(d- -64|0);break p}b=Z()|0;break q}b=Z()|0;Ed(d+24|0)}id(d- -64|0);Md(h);ba(b|0);B()}J[699344]=0;i=_(5196,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;if((i|0)<=0)break p;e=0;while(1){J[699344]=0;ia(5392,d+20|0,b|0,e|0,0);c=J[699344];J[699344]=0;t:{u:{v:{w:{x:{if((c|0)!=1){c=J[d+20>>2];J[d+48>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[699344]=0;J[d+ +24>>2]=0;J[d+28>>2]=0;g=aa(5250,d+24|0,2413244)|0;f=J[699344];J[699344]=0;if((f|0)==1)break x;J[699344]=0;ca(5448,c|0,h|0,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break w;J[699344]=0;c=J[g+24>>2];f=d- -64|0;J[f+4>>2]=g;J[f>>2]=c;c=J[699344];J[699344]=0;if((c|0)==1)break w;c=J[d+64>>2];y:{if(!c)break y;while(1){if((g|0)!=J[d+68>>2]){J[699344]=0;da(5243,d- -64|0,g|0);c=J[699344];J[699344]=0;if((c|0)!=1)break d;break w}J[699344]=0;c=aa(5438,h|0,c+16|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break w;J[c+ +52>>2]=0;c=J[d+64>>2];if(!c)break y;c=J[c>>2];J[d+64>>2]=c;if(c)continue;break}}Md(g);c=J[d+20>>2];J[d+20>>2]=0;if(!c)break t;J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;f=J[699344];J[699344]=0;if((f|0)!=1){if(g)break t;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break t}break b}c=ea(2423616)|0;f=gc;break u}c=ea(2423616)|0;f=gc;break v}c=ea(2423616)|0;f=gc;Md(g)}zc(d+20|0)}if((sa(2423616)|0)!=(f|0))break g;c=oa(c|0)|0;J[699344]=0;g=pa(5383)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i; +J[699344]=0;c=J[c+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break j;J[699344]=0;c=aa(5149,d+12|0,(c?c:2389698)|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break j;f=J[J[g>>2]+20>>2];J[699344]=0;ga(f|0,g|0,b|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break k;wc(c);J[699344]=0;c=aa(5149,d+4|0,e+2407358|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;J[699344]=0;g=pa(5383)|0;f=J[699344];J[699344]=0;if((f|0)==1)break m;f=J[J[g>>2]+20>>2];J[699344]=0;ga(f|0,g|0,b|0,c|0)|0;g=J[699344];J[699344]=0;if((g| +0)==1)break m;wc(c);J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)==1)break a}e=e+1|0;if((i|0)!=(e|0))continue;break}}J[699344]=0;e=J[h+24>>2];c=d- -64|0;J[c+4>>2]=h;J[c>>2]=e;e=J[699344];J[699344]=0;if((e|0)==1)break e;e=J[d+64>>2];z:{if(!e)break z;g=b+68|0;while(1){if(J[d+68>>2]!=(h|0))break f;J[699344]=0;e=_(5244,e+16|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(e){f=J[d+64>>2];if(!f|J[d+68>>2]!=(h|0))break f;J[699344]=0;e=_(4,44)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[e>> +2]=0;J[e+4>>2]=0;J[e+40>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;c=e+8|0;J[c>>2]=0;J[c+4>>2]=0;J[699344]=0;aa(5151,c|0,f+16|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;vf(g,e);e=J[699344];J[699344]=0;if((e|0)==1)break a}e=J[d+64>>2];if(!e)break z;e=J[e>>2];J[d+64>>2]=e;if(e)continue;break}}H[b+63|0]=1;J[699344]=0;aa(5201,a|0,b+68|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break n;Md(h)}fc=d+112|0;return}c=Z()|0;break g}a=ea(0)|0;wc(c);break h}a= +ea(0)|0;break h}a=ea(0)|0;wc(c);break h}a=ea(0)|0;break h}a=ea(0)|0}oa(a|0)|0;J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break d;c=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break g}break b}Md(h);ba(c|0);B()}J[699344]=0;da(5243,d- -64|0,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}B()}ba(Z()|0);B()}ea(0)|0;Bc();B()}a=Z()|0;Md(h);ba(a|0);B()}function MD(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;h=fc-32|0;fc=h;J[h>>2]=0;H[a+733|0]=0;q=J[a+100>>2];l=J[a+736>>2];a:{if(!l){e=Qu(a,0);J[h>>2]=e;if(e)break a;l=J[a+736>>2]}b:{j=J[l+12>>2];i=J[j>>2];b=b>>>0>i>>>0?i:b;if(!b)break b;while(1){if(J[(f<<2)+c>>2]-65537>>>0>=4294836223){f=f+1|0;if((f|0)!=(b|0))continue;break b}break}e=6;break a}if(!(K[a+732|0]|J[l+72>>2])){f=J[a+104>>2];i=J[f+28>>2];e=kc[J[a+516>>2]](a,1735811442,f,h+24|0)|0;J[h+28>>2]=e;if(e)break a;m=J[f+8>>2];e=Te(f,327536,h+4|0);J[h+28>>2]=e;if(e)break a; +e=8;if(J[h+4>>2]!=65536)break a;g=L[h+8>>1];if((g|0)!=L[J[l+12>>2]>>1])break a;k=P(g,L[h+10>>1]);g=J[h+24>>2];if(k>>>0>g>>>1>>>0)break a;k=L[h+16>>1]+1<<(H[h+18|0]&1?2:1);if(k>>>0>g>>>0)break a;J[l+76>>2]=g;g=J[h+20>>2];e=af(f,k);J[h+28>>2]=e;if(e)break a;e=0;t=l,u=_c(i,4,0,L[h+16>>1]+1|0,0,h+28|0),J[t+72>>2]=u;c:{d:{e:{if(J[h+28>>2])break e;n=g+m|0;k=m+J[h+24>>2]|0;f:{if(!(H[h+18|0]&1)){g=0;while(1){o=n+(tf(f)<<1)|0;e=e>>>0>o>>>0?e:o;J[J[l+72>>2]+(g<<2)>>2]=e>>>0>k>>>0?k:e;o=L[h+16>>1];p=o>>>0>g>>> +0;g=g+1|0;if(p)continue;break}break f}g=0;while(1){o=Fh(f)+n|0;g=g>>>0>o>>>0?g:o;J[J[l+72>>2]+(e<<2)>>2]=g>>>0>k>>>0?k:g;o=L[h+16>>1];p=o>>>0>e>>>0;e=e+1|0;if(p)continue;break}}J[l+68>>2]=o;ve(f);if(!L[h+10>>1])break c;e=yd(f,m+J[h+12>>2]|0);J[h+28>>2]=e;if(e)break d;e=af(f,P(L[h+10>>1],L[h+8>>1])<<1);J[h+28>>2]=e;if(e)break d;e=0;t=l,u=_c(i,4,0,P(L[h+10>>1],L[h+8>>1]),0,h+28|0),J[t+64>>2]=u;if(J[h+28>>2])break e;i=L[h+10>>1];if(i){m=0;k=L[h+8>>1];while(1){e=0;g:{if(!(k&65535)){k=0;break g}while(1){i= +tf(f);k=L[h+8>>1];J[(J[l+64>>2]+(P(m,k)<<2)|0)+(e<<2)>>2]=i<<16>>16<<2;e=e+1|0;if(k>>>0>e>>>0)continue;break}i=L[h+10>>1]}e=i&65535;m=m+1|0;if(e>>>0>m>>>0)continue;break}}J[l+60>>2]=e;ve(f);break c}ve(f)}f=J[l+72>>2];if(f)kc[J[i+8>>2]](i,f);J[l+68>>2]=0;J[l+72>>2]=0}e=J[h+28>>2];J[h>>2]=e;if(e)break a}p=J[l+4>>2];if(!p){t=l,u=_c(q,4,0,J[j>>2],0,h),J[t+4>>2]=u;e=J[h>>2];if(e)break a}h:{i:{j:{k:{m=J[l+8>>2];if(m){f=0;if(b)break k;break j}m=_c(q,4,0,J[j>>2],0,h);J[l+8>>2]=m;e=J[h>>2];if(e)break a;g= J[j>>2];o=1;break h}k=1;while(1){i=f<<2;o=2;if(J[i+m>>2]!=J[c+i>>2])break i;f=f+1|0;if((f|0)!=(b|0))continue;break}f=b}k=0;o=0}g=J[j>>2];j=J[a+4>>2];l:{if(j&2147418112){if(f>>>0>=g>>>0)break l;i=J[l+20>>2]+(P((j>>>16|0)-1|0,g)<<2)|0;j=f<<2;e=i+j|0;r=(f^-1)+g|0;j=j+m|0;s=g-f&3;m:{if(!s){i=f;break m}n=0;i=f;while(1){k=J[j>>2]!=J[e>>2]?1:k;j=j+4|0;e=e+4|0;i=i+1|0;n=n+1|0;if((s|0)!=(n|0))continue;break}}if(r>>>0<3)break l;while(1){k=J[j+12>>2]!=J[e+12>>2]?1:J[j+8>>2]!=J[e+8>>2]?1:J[j+4>>2]!=J[e+4>>2]? 1:J[j>>2]!=J[e>>2]?1:k;j=j+16|0;e=e+16|0;i=i+4|0;if((i|0)!=(g|0))continue;break}break l}if(f>>>0>=g>>>0)break l;n=(f^-1)+g|0;e=(f<<2)+m|0;r=g-f&3;n:{if(!r){j=f;break n}i=0;j=f;while(1){k=J[e>>2]?1:k;e=e+4|0;j=j+1|0;i=i+1|0;if((r|0)!=(i|0))continue;break}}if(n>>>0<3)break l;while(1){k=J[e+12>>2]|J[e+8>>2]|(J[e+4>>2]|J[e>>2])?1:k;e=e+16|0;j=j+4|0;if((j|0)!=(g|0))continue;break}}o:{if(k&255){if(f>>>0>=g>>>0)break h;break o}H[a+733|0]=1;e=-1;break a}while(1){if(!J[(f<<2)+m>>2]){f=f+1|0;if((g|0)!=(f|0))continue; -break h}break}o=2}J[l>>2]=g;tc(m,c,b<<2);p:{if(!d)break p;e=J[l+4>>2];m=J[a+736>>2];g=J[m>>2];b=p?b:J[l>>2];i=b>>>0>g>>>0?g:b;q:{if(!i)break q;c=J[l+8>>2];j=0;f=0;if(i>>>0>=4){l=i&-4;k=0;while(1){d=f<<2;J[d+e>>2]=J[c+d>>2];n=d|4;J[n+e>>2]=J[c+n>>2];n=d|8;J[n+e>>2]=J[c+n>>2];d=d|12;J[d+e>>2]=J[c+d>>2];f=f+4|0;k=k+4|0;if((l|0)!=(k|0))continue;break}}d=i&3;if(!d)break q;while(1){l=f<<2;J[l+e>>2]=J[c+l>>2];f=f+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}}if(b>>>0>g>>>0)wc(e+(i<<2)|0,0,b-i<<2);r:{if(!i)break r; -g=J[m+28>>2];if(!g)break r;l=0;while(1){d=L[g>>1];s:{if(d>>>0<2)break s;j=e+(l<<2)|0;b=J[j>>2];c=J[g+4>>2];f=1;while(1){k=f<<3;n=k+c|0;p=J[n+4>>2];if((p|0)>(b|0)){f=b;b=k-8|0;c=b+c|0;d=J[c+4>>2];t=j,u=Dd(f-d|0,J[n>>2]-J[c>>2]|0,p-d|0)+J[b+J[g+4>>2]>>2]|0,J[t>>2]=u;break s}f=f+1|0;if((d|0)!=(f|0))continue;break}}g=g+8|0;l=l+1|0;if((i|0)!=(l|0))continue;break}}if(!i)break p;b=J[J[m+12>>2]+12>>2];c=0;while(1){g=e+(c<<2)|0;j=J[g>>2];t:{u:{if((j|0)<0){f=J[b+4>>2];k=J[b+8>>2];d=k;break u}f=J[b+8>>2];d= -f;if(!j)break t;k=J[b+12>>2];d=f}d=Pc(j,k-f|0)+d|0}J[g>>2]=d;b=b+24|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}H[a+733|0]=1;b=J[a+704>>2];v:{if(!b)break v;w:switch(o-1|0){case 1:if(b)gc[J[q+8>>2]](q,b);J[a+704>>2]=0;t=h,u=u4(a,J[a+104>>2]),J[t>>2]=u;break v;case 0:break w;default:break v}t=h,u=k4(a,J[a+104>>2]),J[t>>2]=u}b=J[a+720>>2];if(b)gc[J[q+8>>2]](q,b);J[a+720>>2]=0;e=J[h>>2]}bc=h+32|0;return e}function rga(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0, -m=0;h=bc-48|0;bc=h;J[h+44>>2]=b;J[e>>2]=0;i=J[d+28>>2];J[h>>2]=i;J[i+4>>2]=J[i+4>>2]+1;J[695492]=0;i=$(6537,h|0)|0;j=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){j=J[h>>2];k=J[j+4>>2]-1|0;J[j+4>>2]=k;if((k|0)==-1)gc[J[J[j>>2]+8>>2]](j);switch(g-65|0){case 54:break j;case 19:break k;case 18:break l;case 17:break m;case 49:break n;case 47:break o;case 45:case 51:break p;case 12:break q;case 44:break r;case 41:break s;case 8:break t; +break h}break}o=2}J[l>>2]=g;xc(m,c,b<<2);p:{if(!d)break p;e=J[l+4>>2];m=J[a+736>>2];g=J[m>>2];b=p?b:J[l>>2];i=b>>>0>g>>>0?g:b;q:{if(!i)break q;c=J[l+8>>2];j=0;f=0;if(i>>>0>=4){l=i&-4;k=0;while(1){d=f<<2;J[d+e>>2]=J[c+d>>2];n=d|4;J[n+e>>2]=J[c+n>>2];n=d|8;J[n+e>>2]=J[c+n>>2];d=d|12;J[d+e>>2]=J[c+d>>2];f=f+4|0;k=k+4|0;if((l|0)!=(k|0))continue;break}}d=i&3;if(!d)break q;while(1){l=f<<2;J[l+e>>2]=J[c+l>>2];f=f+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}}if(b>>>0>g>>>0)Ac(e+(i<<2)|0,0,b-i<<2);r:{if(!i)break r; +g=J[m+28>>2];if(!g)break r;l=0;while(1){d=L[g>>1];s:{if(d>>>0<2)break s;j=e+(l<<2)|0;b=J[j>>2];c=J[g+4>>2];f=1;while(1){k=f<<3;n=k+c|0;p=J[n+4>>2];if((p|0)>(b|0)){f=b;b=k-8|0;c=b+c|0;d=J[c+4>>2];t=j,u=Od(f-d|0,J[n>>2]-J[c>>2]|0,p-d|0)+J[b+J[g+4>>2]>>2]|0,J[t>>2]=u;break s}f=f+1|0;if((d|0)!=(f|0))continue;break}}g=g+8|0;l=l+1|0;if((i|0)!=(l|0))continue;break}}if(!i)break p;b=J[J[m+12>>2]+12>>2];c=0;while(1){g=e+(c<<2)|0;j=J[g>>2];t:{u:{if((j|0)<0){f=J[b+4>>2];k=J[b+8>>2];d=k;break u}f=J[b+8>>2];d= +f;if(!j)break t;k=J[b+12>>2];d=f}d=Wc(j,k-f|0)+d|0}J[g>>2]=d;b=b+24|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}H[a+733|0]=1;b=J[a+704>>2];v:{if(!b)break v;w:switch(o-1|0){case 1:if(b)kc[J[q+8>>2]](q,b);J[a+704>>2]=0;t=h,u=v6(a,J[a+104>>2]),J[t>>2]=u;break v;case 0:break w;default:break v}t=h,u=l6(a,J[a+104>>2]),J[t>>2]=u}b=J[a+720>>2];if(b)kc[J[q+8>>2]](q,b);J[a+720>>2]=0;e=J[h>>2]}fc=h+32|0;return e}function Yha(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0, +m=0;h=fc-48|0;fc=h;J[h+44>>2]=b;J[e>>2]=0;i=J[d+28>>2];J[h>>2]=i;J[i+4>>2]=J[i+4>>2]+1;J[699344]=0;i=_(6750,h|0)|0;j=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){j=J[h>>2];k=J[j+4>>2]-1|0;J[j+4>>2]=k;if((k|0)==-1)kc[J[J[j>>2]+8>>2]](j);switch(g-65|0){case 54:break j;case 19:break k;case 18:break l;case 17:break m;case 49:break n;case 47:break o;case 45:case 51:break p;case 12:break q;case 44:break r;case 41:break s;case 8:break t; case 7:break u;case 5:break v;case 3:break w;case 35:case 36:break x;case 34:break y;case 1:case 33:case 39:break z;case 0:case 32:break A;case 2:case 4:case 6:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 37:case 38:case 40:case 42:case 43:case 46:case 48:case 50:case 52:case 53:break d;case 24:break f;case 56:break g;case 23:break h;case 55:break i;default:break e}}c=Z()|0;a=J[h>>2];b=J[a+4>>2]-1|0;J[a+ -4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}gQ(a,f+24|0,h+44|0,c,e,i);break b}fQ(a,f+16|0,h+44|0,c,e,i);break b}b=gc[J[J[a+8>>2]+12>>2]](a+8|0)|0;g=a;j=J[h+44>>2];a=b;B:{if(K[a+11|0]>>>7|0){b=J[a>>2];break B}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=Dn(g,j,c,d,e,f,i,b+(a<<2)|0),J[l+44>>2]=m;break b}a=Fm(h+44|0,c,e,i,2);b=J[e>>2];C:{if(!(a-1>>>0>30|b&4)){J[f+12>>2]=a;break C}J[e>>2]=b|4}break b}g=J[654507];J[h+24>>2]=J[654506]; -J[h+28>>2]=g;g=J[654505];J[h+16>>2]=J[654504];J[h+20>>2]=g;g=J[654503];J[h+8>>2]=J[654502];J[h+12>>2]=g;g=J[654501];J[h>>2]=J[654500];J[h+4>>2]=g;l=h,m=Dn(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}g=J[654515];J[h+24>>2]=J[654514];J[h+28>>2]=g;g=J[654513];J[h+16>>2]=J[654512];J[h+20>>2]=g;g=J[654511];J[h+8>>2]=J[654510];J[h+12>>2]=g;g=J[654509];J[h>>2]=J[654508];J[h+4>>2]=g;l=h,m=Dn(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}a=Fm(h+44|0,c,e,i,2);b=J[e>>2];D:{if(!((a|0)>23|b&4)){J[f+8>>2]=a;break D}J[e>> -2]=b|4}break b}a=Fm(h+44|0,c,e,i,2);b=J[e>>2];E:{if(!(a-1>>>0>11|b&4)){J[f+8>>2]=a;break E}J[e>>2]=b|4}break b}a=Fm(h+44|0,c,e,i,3);b=J[e>>2];F:{if(!((a|0)>365|b&4)){J[f+28>>2]=a;break F}J[e>>2]=b|4}break b}b=Fm(h+44|0,c,e,i,2)-1|0;a=J[e>>2];G:{if(!(b>>>0>11|a&4)){J[f+16>>2]=b;break G}J[e>>2]=a|4}break b}a=Fm(h+44|0,c,e,i,2);b=J[e>>2];H:{if(!((a|0)>59|b&4)){J[f+4>>2]=a;break H}J[e>>2]=b|4}break b}a=h+44|0;b=bc-16|0;bc=b;J[b+12>>2]=c;while(1){I:{if(Lj(a,b+12|0))break I;c=J[a>>2];d=J[c+12>>2];J:{if((d| -0)==J[c+16>>2]){c=gc[J[J[c>>2]+36>>2]](c)|0;break J}c=J[d>>2]}if(!(gc[J[J[i>>2]+12>>2]](i,1,c)|0))break I;oq(a);continue}break}if(Lj(a,b+12|0))J[e>>2]=J[e>>2]|2;bc=b+16|0;break b}g=h+44|0;b=gc[J[J[a+8>>2]+8>>2]](a+8|0)|0;K:{if(K[b+11|0]>>>7|0){a=J[b+4>>2];break K}a=K[b+11|0]&127}if(K[b+23|0]>>>7|0)d=J[b+16>>2];else d=K[b+23|0]&127;L:{if((a|0)==(0-d|0)){J[e>>2]=J[e>>2]|4;break L}c=wy(g,c,b,b+24|0,i,e,0);a=J[f+8>>2];if(!((c|0)!=(b|0)|(a|0)!=12)){J[f+8>>2]=0;break L}if(!((c-b|0)!=12|(a|0)>11))J[f+8>> -2]=a+12}break b}g=tc(h,2618064,44);l=g,m=Dn(a,b,c,d,e,f,g,g+44|0),J[l+44>>2]=m;break b}J[h+16>>2]=J[654532];g=J[654531];J[h+8>>2]=J[654530];J[h+12>>2]=g;g=J[654529];J[h>>2]=J[654528];J[h+4>>2]=g;l=h,m=Dn(a,b,c,d,e,f,h,h+20|0),J[l+44>>2]=m;break b}a=Fm(h+44|0,c,e,i,2);b=J[e>>2];M:{if(!((a|0)>60|b&4)){J[f>>2]=a;break M}J[e>>2]=b|4}break b}g=J[654543];J[h+24>>2]=J[654542];J[h+28>>2]=g;g=J[654541];J[h+16>>2]=J[654540];J[h+20>>2]=g;g=J[654539];J[h+8>>2]=J[654538];J[h+12>>2]=g;g=J[654537];J[h>>2]=J[654536]; -J[h+4>>2]=g;l=h,m=Dn(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}a=Fm(h+44|0,c,e,i,1);b=J[e>>2];N:{if(!((a|0)>6|b&4)){J[f+24>>2]=a;break N}J[e>>2]=b|4}break b}a=gc[J[J[a>>2]+20>>2]](a,b,c,d,e,f)|0;break a}b=gc[J[J[a+8>>2]+24>>2]](a+8|0)|0;g=a;j=J[h+44>>2];a=b;O:{if(K[a+11|0]>>>7|0){b=J[a>>2];break O}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=Dn(g,j,c,d,e,f,i,b+(a<<2)|0),J[l+44>>2]=m;break b}eQ(f+20|0,h+44|0,c,e,i);break b}a=Fm(h+44|0,c,e, -i,4);if(!(K[e|0]&4))J[f+20>>2]=a-1900;break b}if((g|0)==37)break c}J[e>>2]=J[e>>2]|4;break b}a=bc-16|0;bc=a;J[a+12>>2]=c;b=6;d=h+44|0;g=a+12|0;P:{Q:{if(Lj(d,g))break Q;b=4;c=J[d>>2];f=J[c+12>>2];R:{if((f|0)==J[c+16>>2]){c=gc[J[J[c>>2]+36>>2]](c)|0;break R}c=J[f>>2]}if((gc[J[J[i>>2]+52>>2]](i,c,0)|0)!=37)break Q;b=2;if(!Lj(oq(d),g))break P}J[e>>2]=J[e>>2]|b}bc=a+16|0}a=J[h+44>>2]}bc=h+48|0;return a|0}function _q(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return-1;J[a+68>>2]=0;a:{b:{e=J[a+4>> +4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}AR(a,f+24|0,h+44|0,c,e,i);break b}zR(a,f+16|0,h+44|0,c,e,i);break b}b=kc[J[J[a+8>>2]+12>>2]](a+8|0)|0;g=a;j=J[h+44>>2];a=b;B:{if(K[a+11|0]>>>7|0){b=J[a>>2];break B}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=uo(g,j,c,d,e,f,i,b+(a<<2)|0),J[l+44>>2]=m;break b}a=wn(h+44|0,c,e,i,2);b=J[e>>2];C:{if(!(a-1>>>0>30|b&4)){J[f+12>>2]=a;break C}J[e>>2]=b|4}break b}g=J[658211];J[h+24>>2]=J[658210]; +J[h+28>>2]=g;g=J[658209];J[h+16>>2]=J[658208];J[h+20>>2]=g;g=J[658207];J[h+8>>2]=J[658206];J[h+12>>2]=g;g=J[658205];J[h>>2]=J[658204];J[h+4>>2]=g;l=h,m=uo(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}g=J[658219];J[h+24>>2]=J[658218];J[h+28>>2]=g;g=J[658217];J[h+16>>2]=J[658216];J[h+20>>2]=g;g=J[658215];J[h+8>>2]=J[658214];J[h+12>>2]=g;g=J[658213];J[h>>2]=J[658212];J[h+4>>2]=g;l=h,m=uo(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}a=wn(h+44|0,c,e,i,2);b=J[e>>2];D:{if(!((a|0)>23|b&4)){J[f+8>>2]=a;break D}J[e>> +2]=b|4}break b}a=wn(h+44|0,c,e,i,2);b=J[e>>2];E:{if(!(a-1>>>0>11|b&4)){J[f+8>>2]=a;break E}J[e>>2]=b|4}break b}a=wn(h+44|0,c,e,i,3);b=J[e>>2];F:{if(!((a|0)>365|b&4)){J[f+28>>2]=a;break F}J[e>>2]=b|4}break b}b=wn(h+44|0,c,e,i,2)-1|0;a=J[e>>2];G:{if(!(b>>>0>11|a&4)){J[f+16>>2]=b;break G}J[e>>2]=a|4}break b}a=wn(h+44|0,c,e,i,2);b=J[e>>2];H:{if(!((a|0)>59|b&4)){J[f+4>>2]=a;break H}J[e>>2]=b|4}break b}a=h+44|0;b=fc-16|0;fc=b;J[b+12>>2]=c;while(1){I:{if(gk(a,b+12|0))break I;c=J[a>>2];d=J[c+12>>2];J:{if((d| +0)==J[c+16>>2]){c=kc[J[J[c>>2]+36>>2]](c)|0;break J}c=J[d>>2]}if(!(kc[J[J[i>>2]+12>>2]](i,1,c)|0))break I;dr(a);continue}break}if(gk(a,b+12|0))J[e>>2]=J[e>>2]|2;fc=b+16|0;break b}g=h+44|0;b=kc[J[J[a+8>>2]+8>>2]](a+8|0)|0;K:{if(K[b+11|0]>>>7|0){a=J[b+4>>2];break K}a=K[b+11|0]&127}if(K[b+23|0]>>>7|0)d=J[b+16>>2];else d=K[b+23|0]&127;L:{if((a|0)==(0-d|0)){J[e>>2]=J[e>>2]|4;break L}c=kz(g,c,b,b+24|0,i,e,0);a=J[f+8>>2];if(!((c|0)!=(b|0)|(a|0)!=12)){J[f+8>>2]=0;break L}if(!((c-b|0)!=12|(a|0)>11))J[f+8>> +2]=a+12}break b}g=xc(h,2632880,44);l=g,m=uo(a,b,c,d,e,f,g,g+44|0),J[l+44>>2]=m;break b}J[h+16>>2]=J[658236];g=J[658235];J[h+8>>2]=J[658234];J[h+12>>2]=g;g=J[658233];J[h>>2]=J[658232];J[h+4>>2]=g;l=h,m=uo(a,b,c,d,e,f,h,h+20|0),J[l+44>>2]=m;break b}a=wn(h+44|0,c,e,i,2);b=J[e>>2];M:{if(!((a|0)>60|b&4)){J[f>>2]=a;break M}J[e>>2]=b|4}break b}g=J[658247];J[h+24>>2]=J[658246];J[h+28>>2]=g;g=J[658245];J[h+16>>2]=J[658244];J[h+20>>2]=g;g=J[658243];J[h+8>>2]=J[658242];J[h+12>>2]=g;g=J[658241];J[h>>2]=J[658240]; +J[h+4>>2]=g;l=h,m=uo(a,b,c,d,e,f,h,h+32|0),J[l+44>>2]=m;break b}a=wn(h+44|0,c,e,i,1);b=J[e>>2];N:{if(!((a|0)>6|b&4)){J[f+24>>2]=a;break N}J[e>>2]=b|4}break b}a=kc[J[J[a>>2]+20>>2]](a,b,c,d,e,f)|0;break a}b=kc[J[J[a+8>>2]+24>>2]](a+8|0)|0;g=a;j=J[h+44>>2];a=b;O:{if(K[a+11|0]>>>7|0){b=J[a>>2];break O}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=uo(g,j,c,d,e,f,i,b+(a<<2)|0),J[l+44>>2]=m;break b}yR(f+20|0,h+44|0,c,e,i);break b}a=wn(h+44|0,c,e, +i,4);if(!(K[e|0]&4))J[f+20>>2]=a-1900;break b}if((g|0)==37)break c}J[e>>2]=J[e>>2]|4;break b}a=fc-16|0;fc=a;J[a+12>>2]=c;b=6;d=h+44|0;g=a+12|0;P:{Q:{if(gk(d,g))break Q;b=4;c=J[d>>2];f=J[c+12>>2];R:{if((f|0)==J[c+16>>2]){c=kc[J[J[c>>2]+36>>2]](c)|0;break R}c=J[f>>2]}if((kc[J[J[i>>2]+52>>2]](i,c,0)|0)!=37)break Q;b=2;if(!gk(dr(d),g))break P}J[e>>2]=J[e>>2]|b}fc=a+16|0}a=J[h+44>>2]}fc=h+48|0;return a|0}function Nr(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return-1;J[a+68>>2]=0;a:{b:{e=J[a+4>> 2];c:{if(e){b=J[a+16>>2];if((b|0)==2)break c;c=J[a+64>>2];d:{while(1){e:{if(!c){c=J[e+12>>2];if(!c)break d;J[a+64>>2]=c;b=0;break e}f:{if((b|0)==4)break f;d=J[c+4>>2];if(1<>>0<=19:0)break f;b=J[c+12>>2];if(b){J[a+64>>2]=b;J[a+72>>2]=J[a+72>>2]+1;c=b;b=0;break e}b=4;if((d|0)==2)break e}b=J[c+24>>2];if(b){J[a+64>>2]=b;c=b;b=0;break e}d=J[c+20>>2];b=2;if(!d)break e;g:switch(J[d+4>>2]-9|0){case 0:case 4:break d;default:break g}J[a+64>>2]=d;J[a+72>>2]=J[a+72>>2]-1;c=d;b=4}J[a+16>>2]=b;if(J[c+ -4>>2]-19>>>0<2)continue;break}return 1}J[a+16>>2]=2;return 0}b=J[a+20>>2];if(!b)return-1;h:{i:{if(!J[a>>2]){J[a>>2]=1;j:{k:{while(1){if((sB(a)|0)<0)break a;b=J[a+20>>2];if(J[b+52>>2])break k;if(J[a>>2]!=3&J[a+16>>2]!=5)continue;break}d=J[b+8>>2];l:{if(!d){d=J[a+64>>2];break l}d=J[d+12>>2];J[a+64>>2]=d}if(d)break j;break a}d=J[b+8>>2];m:{if(!d){d=J[a+64>>2];break m}d=J[d+12>>2];J[a+64>>2]=d}if(d)break j;J[a+64>>2]=J[J[b+64>>2]>>2]}J[a+72>>2]=0;J[a+16>>2]=1;J[b+436>>2]=5;break i}i=J[b+56>>2];f=J[a+ -16>>2];c=J[a+64>>2];g=c;b=0;break h}b=1}while(1){n:{o:{p:{q:{r:{s:{t:{u:{if(!b){v:{if(c){if((f|0)!=4)break v;while(1){b=J[c+24>>2];if(b)break u;b=0;d=J[a+20>>2];if(J[d+56>>2]!=(i|0))break u;e=J[d+52>>2];if(!(!e|(c|0)==(e|0))&(e|0)!=J[c+20>>2]|J[d+172>>2]==-1)break u;if((sB(a)|0)<0)break b;c=J[a+64>>2];if(c)continue;break}break n}return(J[a>>2]!=3?-1:0)|0}while(1){b=J[c+24>>2];if(b)break u;b=0;d=J[a+20>>2];if(J[d+56>>2]!=(i|0))break u;e=J[c+12>>2];w:{if(!e)break w;h=J[c+4>>2];if(!J[e+24>>2]&J[e+4>> -2]==3|(h|0)==5)break w;if(!(1<>>0>14)break t}e=J[d+52>>2];if(!(!e|(c|0)==(e|0))&(e|0)!=J[c+20>>2]|J[d+172>>2]==-1)break u;if((sB(a)|0)<0)break b;c=J[a+64>>2];if(c)continue;break}break n}d=1;b=J[a+64>>2];c=b;if(!b)break c;x:{if(J[b+24>>2]|J[b+4>>2]-3>>>0>1)break x;y:{if(!(!a|!b)){if(J[a+4>>2])break y;b=0;if(!J[a+20>>2])break y;z:{while(1){b=J[a+64>>2];e=J[a+20>>2];if(J[e+172>>2]==-1)break y;A:{if(!b)break A;c=b;if(J[b+24>>2])break y;while(1){c=J[c+20>>2];if(!c)break A;if(!J[c+24>>2])continue; -break}break y}if(J[a>>2]==3|J[e+56>>2]>2])break y;if((sB(a)|0)<0)break z;if(J[a>>2]!=3)continue;break}b=J[a+64>>2];break y}J[a>>2]=2}b=0}if(!b)return-1;c=J[a+64>>2];if(c)break x;return 1}B:{if(J[c+4>>2]!=5)break B;b=J[a+20>>2];if(!b|J[b+16>>2]!=1)break B;e=J[c+12>>2];if(!e){e=J[b>>2];if(!e)break B;e=J[e+20>>2];if(!e)break B;e=gc[e|0](b,J[c+8>>2])|0;c=J[a+64>>2];J[c+12>>2]=e;if(!e)break B}if(!J[e+12>>2]|J[e+4>>2]!=17)break B;C:{D:{E:{e=J[a+100>>2];if((e|0)<=0){J[a+100>>2]=10;b=gc[J[659447]](40)| -0;J[a+104>>2]=b;if(!b)break E;e=J[a+100>>2]}b=J[a+96>>2];F:{if((e|0)>(b|0)){e=J[a+104>>2];break F}J[a+100>>2]=e<<1;e=gc[J[659452]](J[a+104>>2],e<<3)|0;J[a+104>>2]=e;if(!e)break D;b=J[a+96>>2]}J[(b<<2)+e>>2]=c;J[a+96>>2]=b+1;J[a+92>>2]=c;break C}gc[J[659549]](J[689514],38989,0);break C}gc[J[659549]](J[689514],38968,0)}c=J[J[J[a+64>>2]+12>>2]+12>>2];J[a+64>>2]=c;if(c)break B;return 1}if(J[c+4>>2]!=17)break c;b=J[a+92>>2];if(!b|J[b+12>>2]!=(c|0))break c;c=0;b=J[a+96>>2];if((b|0)>0){d=b-1|0;J[a+96>>2]= +4>>2]-19>>>0<2)continue;break}return 1}J[a+16>>2]=2;return 0}b=J[a+20>>2];if(!b)return-1;h:{i:{if(!J[a>>2]){J[a>>2]=1;j:{k:{while(1){if((rC(a)|0)<0)break a;b=J[a+20>>2];if(J[b+52>>2])break k;if(J[a>>2]!=3&J[a+16>>2]!=5)continue;break}d=J[b+8>>2];l:{if(!d){d=J[a+64>>2];break l}d=J[d+12>>2];J[a+64>>2]=d}if(d)break j;break a}d=J[b+8>>2];m:{if(!d){d=J[a+64>>2];break m}d=J[d+12>>2];J[a+64>>2]=d}if(d)break j;J[a+64>>2]=J[J[b+64>>2]>>2]}J[a+72>>2]=0;J[a+16>>2]=1;J[b+436>>2]=5;break i}i=J[b+56>>2];f=J[a+ +16>>2];c=J[a+64>>2];g=c;b=0;break h}b=1}while(1){n:{o:{p:{q:{r:{s:{t:{u:{if(!b){v:{if(c){if((f|0)!=4)break v;while(1){b=J[c+24>>2];if(b)break u;b=0;d=J[a+20>>2];if(J[d+56>>2]!=(i|0))break u;e=J[d+52>>2];if(!(!e|(c|0)==(e|0))&(e|0)!=J[c+20>>2]|J[d+172>>2]==-1)break u;if((rC(a)|0)<0)break b;c=J[a+64>>2];if(c)continue;break}break n}return(J[a>>2]!=3?-1:0)|0}while(1){b=J[c+24>>2];if(b)break u;b=0;d=J[a+20>>2];if(J[d+56>>2]!=(i|0))break u;e=J[c+12>>2];w:{if(!e)break w;h=J[c+4>>2];if(!J[e+24>>2]&J[e+4>> +2]==3|(h|0)==5)break w;if(!(1<>>0>14)break t}e=J[d+52>>2];if(!(!e|(c|0)==(e|0))&(e|0)!=J[c+20>>2]|J[d+172>>2]==-1)break u;if((rC(a)|0)<0)break b;c=J[a+64>>2];if(c)continue;break}break n}d=1;b=J[a+64>>2];c=b;if(!b)break c;x:{if(J[b+24>>2]|J[b+4>>2]-3>>>0>1)break x;y:{if(!(!a|!b)){if(J[a+4>>2])break y;b=0;if(!J[a+20>>2])break y;z:{while(1){b=J[a+64>>2];e=J[a+20>>2];if(J[e+172>>2]==-1)break y;A:{if(!b)break A;c=b;if(J[b+24>>2])break y;while(1){c=J[c+20>>2];if(!c)break A;if(!J[c+24>>2])continue; +break}break y}if(J[a>>2]==3|J[e+56>>2]>2])break y;if((rC(a)|0)<0)break z;if(J[a>>2]!=3)continue;break}b=J[a+64>>2];break y}J[a>>2]=2}b=0}if(!b)return-1;c=J[a+64>>2];if(c)break x;return 1}B:{if(J[c+4>>2]!=5)break B;b=J[a+20>>2];if(!b|J[b+16>>2]!=1)break B;e=J[c+12>>2];if(!e){e=J[b>>2];if(!e)break B;e=J[e+20>>2];if(!e)break B;e=kc[e|0](b,J[c+8>>2])|0;c=J[a+64>>2];J[c+12>>2]=e;if(!e)break B}if(!J[e+12>>2]|J[e+4>>2]!=17)break B;C:{D:{E:{e=J[a+100>>2];if((e|0)<=0){J[a+100>>2]=10;b=kc[J[663195]](40)| +0;J[a+104>>2]=b;if(!b)break E;e=J[a+100>>2]}b=J[a+96>>2];F:{if((e|0)>(b|0)){e=J[a+104>>2];break F}J[a+100>>2]=e<<1;e=kc[J[663200]](J[a+104>>2],e<<3)|0;J[a+104>>2]=e;if(!e)break D;b=J[a+96>>2]}J[(b<<2)+e>>2]=c;J[a+96>>2]=b+1;J[a+92>>2]=c;break C}kc[J[663297]](J[693366],39005,0);break C}kc[J[663297]](J[693366],38984,0)}c=J[J[J[a+64>>2]+12>>2]+12>>2];J[a+64>>2]=c;if(c)break B;return 1}if(J[c+4>>2]!=17)break c;b=J[a+92>>2];if(!b|J[b+12>>2]!=(c|0))break c;c=0;b=J[a+96>>2];if((b|0)>0){d=b-1|0;J[a+96>>2]= d;c=J[a+104>>2];J[a+92>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;b=c+(d<<2)|0;c=J[b>>2];J[b>>2]=0}J[a+64>>2]=c;J[a+72>>2]=J[a+72>>2]+1;b=0;continue}if((f|0)==4)break r;d=0;e=J[c+12>>2];if(!e)break s}b=J[c+4>>2];if(b>>>0<=19){d=1;if(1<>2]=e;J[a+16>>2]=1;J[a+72>>2]=J[a+72>>2]+1;break o}b=J[c+24>>2];if(b){if(H[c+58|0]&1|(J[c+4>>2]!=1|d|(f|0)!=1))break q;J[a+16>>2]=2;f=1;break o}if(H[c+58|0]&1|(J[c+4>>2]!=1|d|(f|0)!=1))break p;J[a+16>>2]=2;f=1;break o}if(!b)break p}d=J[a+116>>2];if((d| -0)>0){if(!(K[c+58|0]&4)){J[a+16>>2]=1;J[a+64>>2]=b;break o}d=d-1|0;J[a+116>>2]=d}J[a+16>>2]=1;J[a+64>>2]=b;if(J[a+96>>2]|d)break o;b=J[b+28>>2];if(!b|J[b+4>>2]==14|K[b+58|0]&2)break o;zj(b);zJ(a,b);break o}d=1;b=J[a+116>>2];G:{if((b|0)<=0){d=b;break G}if(!(K[c+58|0]&4))break G;d=b-1|0;J[a+116>>2]=d}b=J[c+20>>2];J[a+64>>2]=b;H:{I:{if(!b)break I;switch(J[b+4>>2]-9|0){case 0:case 4:break I;default:break H}}if(J[a>>2]!=3){c=hB(J[a+20>>2],39181,0,1);J[a+16>>2]=5;d=-1;if(c)break c}J[a+72>>2]=-1;J[a+64>> -2]=0;if(J[a+116>>2]|!g|(J[a+96>>2]|J[g+4>>2]==14))break n;if(K[g+58|0]&2)break n;zj(g);zJ(a,g);break n}J:{if(J[a+96>>2]|d)break J;b=J[b+16>>2];if(!b|K[b+58|0]&2)break J;zj(b);zJ(a,b)}J[a+16>>2]=4;J[a+72>>2]=J[a+72>>2]-1}b=1;continue}break}J[a+16>>2]=5;d=0}return d|0}J[a+16>>2]=6;J[a>>2]=2;return-1}J[a+16>>2]=6;J[a>>2]=2;return-1}function yk(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;p=!b;a:{if(J[a+132>>2]>0){f=J[a>>2];if(J[f+44>>2]==2){b:{if(L[a+148>>1]|L[a+152>>1]|(L[a+156>>1]| +0)>0){if(!(K[c+58|0]&4)){J[a+16>>2]=1;J[a+64>>2]=b;break o}d=d-1|0;J[a+116>>2]=d}J[a+16>>2]=1;J[a+64>>2]=b;if(J[a+96>>2]|d)break o;b=J[b+28>>2];if(!b|J[b+4>>2]==14|K[b+58|0]&2)break o;Wj(b);LK(a,b);break o}d=1;b=J[a+116>>2];G:{if((b|0)<=0){d=b;break G}if(!(K[c+58|0]&4))break G;d=b-1|0;J[a+116>>2]=d}b=J[c+20>>2];J[a+64>>2]=b;H:{I:{if(!b)break I;switch(J[b+4>>2]-9|0){case 0:case 4:break I;default:break H}}if(J[a>>2]!=3){c=gC(J[a+20>>2],39197,0,1);J[a+16>>2]=5;d=-1;if(c)break c}J[a+72>>2]=-1;J[a+64>> +2]=0;if(J[a+116>>2]|!g|(J[a+96>>2]|J[g+4>>2]==14))break n;if(K[g+58|0]&2)break n;Wj(g);LK(a,g);break n}J:{if(J[a+96>>2]|d)break J;b=J[b+16>>2];if(!b|K[b+58|0]&2)break J;Wj(b);LK(a,b)}J[a+16>>2]=4;J[a+72>>2]=J[a+72>>2]-1}b=1;continue}break}J[a+16>>2]=5;d=0}return d|0}J[a+16>>2]=6;J[a>>2]=2;return-1}J[a+16>>2]=6;J[a>>2]=2;return-1}function Uk(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;p=!b;a:{if(J[a+132>>2]>0){f=J[a>>2];if(J[f+44>>2]==2){b:{if(L[a+148>>1]|L[a+152>>1]|(L[a+156>>1]| L[a+160>>1]))break b;if(L[a+164>>1]|L[a+168>>1]|(L[a+172>>1]|L[a+204>>1]))break b;if(L[a+208>>1]|L[a+212>>1]|(L[a+216>>1]|L[a+220>>1]))break b;if(L[a+224>>1]|L[a+228>>1]|(L[a+232>>1]|L[a+236>>1]))break b;if(L[a+240>>1]|L[a+244>>1]|(L[a+248>>1]|L[a+260>>1]))break b;if(L[a+272>>1]|(L[a+264>>1]|L[a+268>>1]))break b;c:{if(L[a+200>>1]|(L[a+184>>1]|L[a+188>>1]))break c;h=32;while(1){e=h<<2;if(L[(e+a|0)+148>>1]|L[((e|4)+a|0)+148>>1]|(L[((e|8)+a|0)+148>>1]|L[((e|12)+a|0)+148>>1]))break c;h=h+4|0;if((h|0)!= -256)continue;break}break b}g=1}J[f+44>>2]=g}bK(a,a+2840|0);bK(a,a+2852|0);e=L[a+150>>1];n=a+148|0;l=J[a+2844>>2];I[(n+(l<<2)|0)+6>>1]=65535;h=0;if((l|0)>=0){i=e?7:138;m=e?4:3;j=-1;f=0;while(1){g=e;o=f;f=f+1|0;e=L[(n+(f<<2)|0)+2>>1];k=h+1|0;d:{if(!((g|0)!=(e|0)|(k|0)>=(i|0))){h=k;break d}e:{if((m|0)>(k|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=k+L[h>>1];break e}if(g){if((g|0)!=(j|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=L[h>>1]+1}I[a+2748>>1]=L[a+2748>>1]+1;break e}if((h|0)<=9){I[a+2752>>1]=L[a+2752>>1]+1;break e}I[a+ +256)continue;break}break b}g=1}J[f+44>>2]=g}oL(a,a+2840|0);oL(a,a+2852|0);e=L[a+150>>1];n=a+148|0;l=J[a+2844>>2];I[(n+(l<<2)|0)+6>>1]=65535;h=0;if((l|0)>=0){i=e?7:138;m=e?4:3;j=-1;f=0;while(1){g=e;o=f;f=f+1|0;e=L[(n+(f<<2)|0)+2>>1];k=h+1|0;d:{if(!((g|0)!=(e|0)|(k|0)>=(i|0))){h=k;break d}e:{if((m|0)>(k|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=k+L[h>>1];break e}if(g){if((g|0)!=(j|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=L[h>>1]+1}I[a+2748>>1]=L[a+2748>>1]+1;break e}if((h|0)<=9){I[a+2752>>1]=L[a+2752>>1]+1;break e}I[a+ 2756>>1]=L[a+2756>>1]+1}h=0;f:{if(!e){m=3;i=138;break f}i=(e|0)==(g|0);m=i?3:4;i=i?6:7}j=g}if((l|0)!=(o|0))continue;break}}e=L[a+2442>>1];n=a+2440|0;l=J[a+2856>>2];I[(n+(l<<2)|0)+6>>1]=65535;h=0;if((l|0)>=0){i=e?7:138;m=e?4:3;j=-1;f=0;while(1){g=e;o=f;f=f+1|0;e=L[(n+(f<<2)|0)+2>>1];k=h+1|0;g:{if(!((g|0)!=(e|0)|(k|0)>=(i|0))){h=k;break g}h:{if((m|0)>(k|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=k+L[h>>1];break h}if(g){if((g|0)!=(j|0)){h=((g<<2)+a|0)+2684|0;I[h>>1]=L[h>>1]+1}I[a+2748>>1]=L[a+2748>>1]+1;break h}if((h| -0)<=9){I[a+2752>>1]=L[a+2752>>1]+1;break h}I[a+2756>>1]=L[a+2756>>1]+1}h=0;i:{if(!e){m=3;i=138;break i}i=(e|0)==(g|0);m=i?3:4;i=i?6:7}j=g}if((l|0)!=(o|0))continue;break}}bK(a,a+2864|0);g=J[a+5800>>2];f=18;j:{if(L[a+2746>>1])break j;f=17;if(L[a+2690>>1])break j;f=16;if(L[a+2742>>1])break j;f=15;if(L[a+2694>>1])break j;f=14;if(L[a+2738>>1])break j;f=13;if(L[a+2698>>1])break j;f=12;if(L[a+2734>>1])break j;f=11;if(L[a+2702>>1])break j;f=10;if(L[a+2730>>1])break j;f=9;if(L[a+2706>>1])break j;f=8;if(L[a+ -2726>>1])break j;f=7;if(L[a+2710>>1])break j;f=6;if(L[a+2722>>1])break j;f=5;if(L[a+2714>>1])break j;f=4;if(L[a+2718>>1])break j;f=L[a+2686>>1]?3:2}e=g+P(f,3)|0;J[a+5800>>2]=e+17;g=J[a+5804>>2]+10>>>3|0;e=e+27>>>3|0;e=e>>>0>g>>>0?g:e;break a}g=c+5|0;e=g}k:{if(!(p|e>>>0>>0)){RB(a,b,c,d);break k}b=J[a+5820>>2];if(!((e|0)!=(g|0)&J[a+136>>2]!=4)){c=d+2|0;l:{if((b|0)>=14){b=L[a+5816>>1]|c<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]= -K[a+5817|0];b=J[a+5820>>2];I[a+5816>>1]=(c&65535)>>>16-b;b=b-13|0;break l}I[a+5816>>1]=L[a+5816>>1]|c<>2]=b;C0(a,766048,767200);break k}c=d+4|0;m:{if((b|0)>=14){b=L[a+5816>>1]|c<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];h=(c&65535)>>>16-b|0;b=b-13|0;break m}h=L[a+5816>>1]|c<>2]=b;i=J[a+2844>>2];e=i+65280|0;c=J[a+2856>>2];n:{if((b|0)>=12){b=e<>1]=b;h= +0)<=9){I[a+2752>>1]=L[a+2752>>1]+1;break h}I[a+2756>>1]=L[a+2756>>1]+1}h=0;i:{if(!e){m=3;i=138;break i}i=(e|0)==(g|0);m=i?3:4;i=i?6:7}j=g}if((l|0)!=(o|0))continue;break}}oL(a,a+2864|0);g=J[a+5800>>2];f=18;j:{if(L[a+2746>>1])break j;f=17;if(L[a+2690>>1])break j;f=16;if(L[a+2742>>1])break j;f=15;if(L[a+2694>>1])break j;f=14;if(L[a+2738>>1])break j;f=13;if(L[a+2698>>1])break j;f=12;if(L[a+2734>>1])break j;f=11;if(L[a+2702>>1])break j;f=10;if(L[a+2730>>1])break j;f=9;if(L[a+2706>>1])break j;f=8;if(L[a+ +2726>>1])break j;f=7;if(L[a+2710>>1])break j;f=6;if(L[a+2722>>1])break j;f=5;if(L[a+2714>>1])break j;f=4;if(L[a+2718>>1])break j;f=L[a+2686>>1]?3:2}e=g+P(f,3)|0;J[a+5800>>2]=e+17;g=J[a+5804>>2]+10>>>3|0;e=e+27>>>3|0;e=e>>>0>g>>>0?g:e;break a}g=c+5|0;e=g}k:{if(!(p|e>>>0>>0)){RC(a,b,c,d);break k}b=J[a+5820>>2];if(!((e|0)!=(g|0)&J[a+136>>2]!=4)){c=d+2|0;l:{if((b|0)>=14){b=L[a+5816>>1]|c<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]= +K[a+5817|0];b=J[a+5820>>2];I[a+5816>>1]=(c&65535)>>>16-b;b=b-13|0;break l}I[a+5816>>1]=L[a+5816>>1]|c<>2]=b;B2(a,767792,768944);break k}c=d+4|0;m:{if((b|0)>=14){b=L[a+5816>>1]|c<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];h=(c&65535)>>>16-b|0;b=b-13|0;break m}h=L[a+5816>>1]|c<>2]=b;i=J[a+2844>>2];e=i+65280|0;c=J[a+2856>>2];n:{if((b|0)>=12){b=e<>1]=b;h= J[a+20>>2];J[a+20>>2]=h+1;H[h+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];e=(e&65535)>>>16-b|0;g=b-11|0;break n}e=e<>2]=g;o:{if((g|0)>=12){b=c<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];h=(c&65535)>>>16-b|0;b=b-11|0;break o}h=c<>2]=b;g=f+65533|0;p:{if((b|0)>=13){b=g<>1]=b;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+ -J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];e=J[a+5820>>2];b=(g&65535)>>>16-e|0;e=e-12|0;break p}e=b+4|0;b=g<>2]=e;g=0;h=a+5817|0;while(1){j=L[((K[g+767664|0]<<2)+a|0)+2686>>1];b=j<>1]=b;q:{if((e|0)>=14){e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[h|0];e=J[a+5820>>2];b=j>>>16-e|0;I[a+5816>>1]=b;e=e-13|0;break q}e=e+3|0}J[a+5820>>2]=e;j=(g|0)!=(f|0);g=g+1|0;if(j)continue;break}b=a+148|0;B0(a,b, -i);e=a+2440|0;B0(a,e,c);C0(a,b,e)}D0(a);if(d){b=J[a+5820>>2];r:{if((b|0)>=9){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];break r}if((b|0)<=0)break r;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0]}J[a+5820>>2]=0;I[a+5816>>1]=0}}function R9(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;l=bc-16|0;bc=l;d=zc(120);a:{if(!d)break a;e=_N();J[d+112>>2]=e;if(!e){ym(d);break a}h=200454;e=wc(d,0,112);b:{c:{if(Ye(a, -e))break c;if(Ye(a,e+4|0))break c;if(Ye(a,e+8|0))break c;if(Ye(a,e+12|0))break c;if(Ye(a,e+16|0))break c;if(Ye(a,e+20|0))break c;d=-1;b=e+24|0;d:{if(Fj(a,b))break d;if(Fj(a,b+4|0))break d;if(Fj(a,b+8|0))break d;if(Fj(a,b+12|0))break d;if(Fj(a,b+16|0))break d;d=Fj(a,b+20|0)?-1:0}if(d)break c;if(Ye(a,e+48|0))break c;if(Ye(a,e+52|0))break c;if(Ye(a,e+56|0))break c;if(Ye(a,e+60|0))break c;if(Ye(a,e- -64|0))break c;b=-1;c=a;a=J[c+8>>2];e:{if(a&7)break e;f:{b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f; -b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;g:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break g}d=jd(c,1);if((d|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;f=J[c+28>>2];J[c+28>>2]=f-1;h:{if((f|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;f=K[b|0];break h}f=jd(c,1);if((f|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;g=J[c+28>>2];J[c+28>>2]=g-1;i:{if((g| -0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;k=K[b|0];break i}k=jd(c,1);if((k|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;g=J[c+28>>2];J[c+28>>2]=g-1;j:{if((g|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;m=K[b|0];break j}m=jd(c,1);if((m|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;g=J[c+28>>2];J[c+28>>2]=g-1;k:{if((g|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>> -2];J[c+24>>2]=b+1;g=K[b|0];break k}g=jd(c,1);if((g|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;i=J[c+28>>2];J[c+28>>2]=i-1;l:{if((i|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;n=K[b|0];break l}n=jd(c,1);if((n|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;i=J[c+28>>2];J[c+28>>2]=i-1;m:{if((i|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;i=K[b|0];break m}i=jd(c, -1);if((i|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;a=J[c+28>>2];J[c+28>>2]=a-1;n:{if((a|0)>0){J[c+60>>2]=J[c+60>>2]+1;a=J[c+24>>2];J[c+24>>2]=a+1;a=K[a|0];break n}a=jd(c,1);if((a|0)==-1)break e}b=a;q=b>>31;a=d<<16;d=d>>31<<16|d>>>16;o=a;a=f>>>24|0;f=o|f<<8;a=a|d;d=f|k;f=d<<16;a=a<<16|d>>>16|m>>>24|g>>31;d=m<<8|f|g;f=d<<16;d=a<<16|d>>>16;o=b;a=n;b=a;a=b>>31<<8|b>>>24;b=b<<8|f|i;J[e+72>>2]=o|b<<8;J[e+76>>2]=(a|d|i>>31)<<8|b>>>24|q;b=0;break e}J[c+ -8>>2]=a|4;b=-1}if(b)break c;if(Ye(c,e+80|0))break c;a=-1;b=e+84|0;o:{if(Ye(c,b))break o;if(Ye(c,b+4|0))break o;a=Ye(c,b+8|0)?-1:0}if(a)break c;if(Ye(c,e+96|0))break c;if((Bu(c,44)|0)!=44)break c;a=J[e+108>>2];if(a){qc(a);J[e+108>>2]=0}p:{if(Ye(c,e+104|0))break p;b=zc(P(J[e+104>>2],20));J[e+108>>2]=b;if(!b){hd(201186,0);break b}a=J[e+104>>2];if((a|0)>0){while(1){if(Ye(c,b))break p;if(Ye(c,b+4|0))break p;if(Ye(c,b+8|0))break p;b=b+20|0;a=J[e+104>>2];j=j+1|0;if((a|0)>(j|0))continue;break}b=J[e+108>> -2]}Kl(b,a,20,759);q:{r:{s:{t:{k=J[e+104>>2];if((k|0)>0){j=P(k,12)+132|0;b=0;a=0;h=0;while(1){g=J[e+108>>2]+P(p,20)|0;d=J[g+4>>2];u:{if((h|0)==(d|0)){if(!b){b=0;break u}J[b>>2]=J[b>>2]+1;if(Q9(e,J[g>>2],b))break s;a=J[b>>2];J[b>>2]=a-1;if((a|0)>1){a=b;break u}a=J[J[b+8>>2]>>2];if(a)gc[a|0](b);qc(b);a=b;break u}b=d-j|0;v:{if((b|0)>0){if((Bu(c,b)|0)==(b|0))break v;break r}d=j;if((b|0)<0)break t}if(Ye(c,l+12|0))break r;if((Bu(c,4)|0)!=4)break r;w:{x:{j=J[656824];if(j){f=2627296;i=J[l+12>>2];b=j;h=2627296; -while(1){if((b|0)==(i|0))break x;b=J[h+28>>2];h=h+28|0;if(b)continue;break}}j=d+8|0;b=0;break w}while(1){if((i|0)!=(j|0)){j=J[f+28>>2];f=f+28|0;if(j)continue;break b}break}b=zc(108);if(!b)break b;J[b+4>>2]=i;J[b>>2]=1;J[b+8>>2]=f+4;wc(b+12|0,0,96);a=J[g+8>>2];if(gc[J[f+12>>2]](b,c,a-8|0)|0)break s;if(Q9(e,J[g>>2],b))break s;h=J[b>>2];J[b>>2]=h-1;j=a+d|0;a=0;if((h|0)>1)break w;h=J[J[b+8>>2]>>2];if(h)gc[h|0](b);qc(b)}h=d}p=p+1|0;if((k|0)!=(p|0))continue;break}}b=e;break a}ra();B()}a=b;ym(e);break q}ym(e); -if(a)break q;b=0;break a}d=J[a>>2];J[a>>2]=d-1;b=0;if((d|0)>1)break a;d=J[J[a+8>>2]>>2];if(d)gc[d|0](a);qc(a);break a}h=201186;a=J[e+108>>2];if(!a)break c;qc(a);J[e+108>>2]=0}hd(h,0)}ym(e);b=0}bc=l+16|0;return b}function JX(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;J[a+32>>2]=J[a+32>>2]+1;c=vA(a);f=rc(36);J[f+4>>2]=0;J[f+8>>2]=0;J[f+20>>2]=c;J[f>>2]=2336696;J[f+12>>2]=0;J[f+16>>2]=0;J[695492]=0;c=$(4,16)|0;e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((e|0)!=1){J[695492]=0;e=aa(3365,c|0,0)|0;d= -J[695492];J[695492]=0;if((d|0)==1){b=Z()|0;qc(c);J[f>>2]=2335792;while(1){a=J[f+12>>2];if(!a)break e;J[f+12>>2]=J[a+4>>2];gc[J[J[a>>2]+4>>2]](a);continue}}J[f+24>>2]=e;J[f+28>>2]=0;J[f+32>>2]=0;c=J[a+32>>2];e=J[a+36>>2];f:{if(c>>>0>=e>>>0)break f;while(1){d=K[c|0]-9|0;if(d>>>0>23|!(1<>2]=c;if((c|0)!=(e|0))continue;break}}c=IX(a);if(c){e=f+28|0;while(1){xg(J[f+24>>2],J[c>>2],c);d=J[f+32>>2];J[(d?d+12|0:e)>>2]=c;J[f+32>>2]=c;J[c+12>>2]=0;J[c+8>>2]=f;c=J[a+32>>2];d= -J[a+36>>2];g:{if(c>>>0>=d>>>0)break g;while(1){g=K[c|0]-9|0;if(g>>>0>23|!(1<>2]=c;if((c|0)!=(d|0))continue;break}}c=IX(a);if(c)continue;break}}c=J[a+32>>2];e=J[a+36>>2]-c|0;if((e|0)<2)break d;if(kd(c,787568,2))break c;J[a+32>>2]=c+2;break b}b=Z()|0;J[f>>2]=2335792}qc(f);ba(b|0);B()}if((e|0)!=1)break b}if(K[c|0]!=62)break b;J[a+32>>2]=c+1;e=a;a=rc(8);J[695492]=0;c=aa(3182,a|0,793313)|0;d=J[695492];J[695492]=0;h:{i:{j:{if((d|0)!=1){j=Dh(c,J[f+20>>2]);a=J[e+32>>2]; -c=J[e+36>>2];if(a>>>0>=c>>>0)break j;while(1){k:{d=c-a|0;g=J[j+4>>2];h=Qc(g);if((d|0)<(h|0))break k;if(kd(a,g,h))break k;a=J[j>>2]+a|0;J[e+32>>2]=a;l:{if(a>>>0>=c>>>0)break l;while(1){d=K[a|0]-9|0;if(d>>>0>23|!(1<>2]=a;if((a|0)!=(c|0))continue;break}a=c}if(K[a|0]!=62|(c-a|0)<=0)break j;J[e+32>>2]=a+1;break j}m:{n:{o:{if((d|0)>=2){if(!kd(a,793947,2)){wA(e,f);break m}p:{if(d>>>0>=9){if(kd(a,794527,9))break p;a=J[e+32>>2]+9|0;J[e+32>>2]=a;q:{g=J[e+36>>2];d=g-3|0;r:{if(d>>> -0>a>>>0){c=a;while(1){if(!kd(c,796487,3)){d=rc(28);J[695492]=0;g=$(4,8)|0;h=J[695492];J[695492]=0;s:{if((h|0)!=1){J[695492]=0;a=ga(3181,g|0,a|0,c-a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break s;J[d+4>>2]=0;J[d+8>>2]=0;H[d+24|0]=0;J[d+20>>2]=a;J[d>>2]=2336760;J[d+12>>2]=0;J[d+16>>2]=0;gc[J[J[f>>2]+48>>2]](f,d);J[e+32>>2]=J[e+32>>2]+3;break q}a=Z()|0;break r}a=Z()|0;qc(g);break r}c=c+1|0;J[e+32>>2]=c;if((c|0)!=(d|0))continue;break}}J[e+32>>2]=g;d=rc(28);J[695492]=0;c=$(4,8)|0;h=J[695492];J[695492]= -0;t:{if((h|0)!=1){J[695492]=0;a=ga(3181,c|0,a|0,g-a|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break t;J[d+4>>2]=0;J[d+8>>2]=0;H[d+24|0]=0;J[d+20>>2]=a;J[d>>2]=2336760;J[d+12>>2]=0;J[d+16>>2]=0;gc[J[J[f>>2]+48>>2]](f,d);break q}a=Z()|0;break r}a=Z()|0;qc(c)}qc(d);ba(a|0);B()}break m}if(d>>>0<4)break o}if(kd(a,795677,4))break o;xA(e,f);break m}if((d|0)!=1)break n}if(K[a|0]!=60)break n;JX(e,f);break m}a=rc(8);J[695492]=0;i=$(3184,a|0)|0;c=J[695492];J[695492]=0;u:{if((c|0)!=1){c=J[e+32>>2];h=J[e+36>>2]; -v:{if(c>>>0>=h>>>0)break v;while(1){d=K[c|0];w:{if((d|0)!=38){a=c;if((d|0)==60)break v;while(1){x:{a=a+1|0;J[e+32>>2]=a;if(a>>>0>=h>>>0)break x;d=K[a|0];if((d|0)==60)break x;if((d|0)!=38)continue}break}cf(i,c,a-c|0);break w}d=c+1|0;J[e+32>>2]=d;a=d;if(!(h>>>0<=a>>>0|K[a|0]!=35)){a=c+2|0;J[e+32>>2]=a;d=0;y:{if(a>>>0>=h>>>0)break y;if(K[a|0]==120){a=c+3|0;J[e+32>>2]=a;z:{if(a>>>0>=h>>>0)break z;while(1){A:{c=-48;g=H[a|0];B:{if((g-48&255)>>>0<10)break B;c=-87;if((g-97&255)>>>0<6)break B;c=-55;if((g- -65&255)>>>0>5)break A}a=a+1|0;J[e+32>>2]=a;d=g+((d<<4)+c|0)|0;if((a|0)!=(h|0))continue;break z}break}if((g|0)!=59)break z;J[e+32>>2]=a+1}uA(i,d);break w}while(1){c=K[a|0];if((c-48&255)>>>0<=9){a=a+1|0;J[e+32>>2]=a;d=(c+P(d,10)|0)-48|0;if((a|0)!=(h|0))continue;break y}break}if((c|0)!=59)break y;J[e+32>>2]=a+1}uA(i,d);break w}C:{D:{while(1){g=a;a=a+1|0;J[e+32>>2]=a;if(a>>>0>=h>>>0)break D;k=K[a|0];l=k-38|0;if(l>>>0>22|!(1<>2]=a; -break C}h=a-d|0}E:{F:switch(h-2|0){case 0:if(!kd(d,788919,2)){zd(i,60);break w}if(kd(d,789693,2))break E;zd(i,62);break w;case 1:if(kd(d,790551,3))break E;zd(i,38);break w;case 2:break F;default:break E}if(!kd(d,791280,4)){zd(i,39);break w}if(kd(d,792070,4))break E;zd(i,34);break w}cf(i,c,(a-d|0)+1|0)}c=J[e+32>>2];h=J[e+36>>2];if(c>>>0>>0)continue;break}}a=rc(28);J[a+4>>2]=0;J[a+8>>2]=0;H[a+24|0]=1;J[a+20>>2]=i;J[a>>2]=2336760;J[a+12>>2]=0;J[a+16>>2]=0;gc[J[J[f>>2]+48>>2]](f,a);break u}break a}}a= -J[e+32>>2];c=J[e+36>>2];if(a>>>0>>0)continue;break}break i}break a}if(!j)break h}qc(Rc(j))}}gc[J[J[b>>2]+48>>2]](b,f);return}b=Z()|0;qc(a);ba(b|0);B()}function xG(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=bc+-64|0;bc=f;J[c>>2]=1;J[d>>2]=1;J[e>>2]=96;J[695492]=0;g=f+28|0;ca(5230,g|0,a|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)!=1){b=J[J[a>>2]+20>>2];J[695492]=0;ia(b|0,f+24|0,a|0,0,g|0);a=J[695492];J[695492]=0;if((a|0)==1)break m;J[695492]= -0;a=f+20|0;da(5151,a|0,J[f+24>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break l;J[695492]=0;da(5108,f+16|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;J[f+8>>2]=0;J[695492]=0;J[f+12>>2]=J[682146];a=f+8|0;b=ha(5109,J[f+16>>2],a|0,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i;if(!b)break c;J[695492]=0;b=fd(a,2396466,-1);g=J[695492];J[695492]=0;if((g|0)==1)break i;if(!b)break j;J[695492]=0;b=fd(a,2386874,-1);g=J[695492];J[695492]=0;if((g|0)==1)break i;if(!b)break j;J[695492]=0;b=fd(a,2387166, --1);g=J[695492];J[695492]=0;if((g|0)==1)break i;if(!b)break j;J[695492]=0;a=fd(a,2387371,-1);b=J[695492];J[695492]=0;if((b|0)==1)break i;if(!a)break j;break c}a=ea(2411712)|0;c=cc;break d}a=ea(2411712)|0;c=cc;break e}a=ea(2411712)|0;c=cc;break f}a=ea(2411712)|0;c=cc;break g}b=0;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{while(1){J[695492]=0;a=f+8|0;g=ha(5109,J[f+16>>2],a|0,0,0)|0;h=J[695492];J[695492]=0;y:{z:{A:{B:{if((h|0)!=1){if(!g)break c;J[f+4>>2]=0;J[695492]=0;aa(4985,f+4|0,J[f+16>>2])|0;g=J[695492];J[695492]= -0;if((g|0)==1)break i;J[695492]=0;a=fd(a,2396924,-1);g=J[695492];J[695492]=0;if((g|0)==1)break p;if(a)break z;J[695492]=0;_(5296,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break B;J[695492]=0;da(5297,J[f>>2],J[f+4>>2]);a=J[695492];J[695492]=0;if((a|0)==1)break A;a=J[f>>2];g=J[a+8>>2];J[c>>2]=(g|0)>0?g:0;g=J[a+12>>2];J[d>>2]=(g|0)>0?g:0;g=J[a+32>>2];h=J[a+20>>2];J[e>>2]=(h|0)>0?h:0;if(g&1){g=J[c>>2];J[c>>2]=J[d>>2];J[d>>2]=g}J[695492]=0;J[f>>2]=0;g=J[a+4>>2]-1|0;J[a+4>>2]=g;h=J[695492];J[695492]=0;if((h| -0)!=1){if(g)break y;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break y}break a}break i}a=ea(2411712)|0;break o}a=ea(2411712)|0;c=cc;vc(f);break n}if(!b){J[695492]=0;a=f+8|0;b=fd(a,2398676,-1);g=J[695492];J[695492]=0;if((g|0)==1)break p;if(b){J[695492]=0;a=fd(a,2398729,-1);b=J[695492];J[695492]=0;if((b|0)==1)break p;b=0;if(a)break y}J[695492]=0;$(5126,J[f+4>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break x;J[695492]=0;$(5126,J[f+4>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break w; -J[695492]=0;$(5126,J[f+4>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break v;J[695492]=0;$(5126,J[f+4>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break u;J[695492]=0;a=$(5126,J[f+4>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=$(5126,J[f+4>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break s;J[695492]=0;g=$(5126,J[f+4>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break r;J[695492]=0;h=$(5126,J[f+4>>2])|0;i=J[695492];J[695492]=0;if((i|0)==1)break q;J[c>>2]=b|a<<8;J[d>>2]=h|g<<8;J[e>>2]= -100}b=1}J[695492]=0;_(5298,J[f+16>>2]);a=J[695492];J[695492]=0;if((a|0)==1)break p;a=J[f+4>>2];J[f+4>>2]=0;if(!a)continue;J[695492]=0;g=J[a+4>>2]-1|0;J[a+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)continue;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)continue}break}break a}a=ea(2411712)|0;break o}a=ea(2411712)|0;break o}a=ea(2411712)|0;break o}a=ea(2411712)|0;break o}a=ea(2411712)|0;break o}a=ea(2411712)|0;break o}a=ea(2411712)|0;break o}a=ea(2411712)|0;break o}a=ea(2411712)| -0}c=cc}vc(f+4|0);break h}a=ea(2411712)|0;c=cc}sc(f+8|0);vc(f+16|0)}vc(f+20|0)}vc(f+24|0)}ud(f+28|0)}if((sa(2411712)|0)==(c|0)){na(a|0)|0;ta();break b}ba(a|0);B()}sc(f+8|0);a=J[f+16>>2];J[f+16>>2]=0;C:{if(!a)break C;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break C;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break C}break a}a=J[f+20>>2];J[f+20>>2]=0;D:{if(!a)break D;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a; -if(b)break D;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[f+24>>2];J[f+24>>2]=0;E:{if(!a)break E;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break E;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[f+52>>2]=2381060;J[f+28>>2]=2381028;a=J[f+56>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[f+56>>2]=0}J[f+44>>2]=2381060;a=J[f+48>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+ -4>>2]](a);J[f+48>>2]=0}sc(f+36|0)}bc=f- -64|0;return}ea(0)|0;yc();B()}function K_(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;d=bc-96|0;bc=d;a:{b:{c:{d:{e:{f:{if(!b|!c|J[c>>2]!=9)break f;g:{h:{f=J[a+12>>2];g=J[a+16>>2];if((f|0)==(g|0))break h;e=J[c+8>>2];while(1){if((e|0)==J[J[f>>2]+4>>2])break h;f=f+4|0;if((g|0)!=(f|0))continue;break}break g}if((f|0)!=(g|0))break f}J[d+80>>2]=13;e=wc(rc(84),0,84);g=d+80|0;if(J[hf(c,b,g,0)>>2]!=7){uc(g);qc(J_(e));break f}J[e+ -4>>2]=J[c+8>>2];J[d+64>>2]=13;i:{if(J[Bc(J[d+88>>2],775062,d- -64|0,0)>>2]!=3)break i;c=rc(12);J[695492]=0;g=aa(3187,c|0,J[d+72>>2])|0;f=J[695492];J[695492]=0;j:{if((f|0)!=1){jr(d+48|0,J[g>>2],J[g+4>>2]);J[e>>2]=J[e>>2]|1;c=e+48|0;h=K[d+59|0];f=h<<24>>24;k:{l:{if(H[e+59|0]>=0){if((f|0)<0)break l;f=J[d+52>>2];J[c>>2]=J[d+48>>2];J[c+4>>2]=f;J[c+8>>2]=J[d+56>>2];break j}J[695492]=0;i=c;c=(f|0)<0;ga(3294,i|0,(c?J[d+48>>2]:d+48|0)|0,(c?J[d+52>>2]:h)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;break j}J[695492]= -0;ga(3295,c|0,J[d+48>>2],J[d+52>>2])|0;c=J[695492];J[695492]=0;if((c|0)!=1)break j}f=Z()|0;if(H[d+59|0]>=0)break b;qc(J[d+48>>2]);break b}f=Z()|0;qc(c);break b}qc(dd(g));if(H[d+59|0]>=0)break i;qc(J[d+48>>2])}c=d- -64|0;uc(c);m:{if(!Bc(J[d+88>>2],804102,c,0))break m;aJ(d+48|0,c,0);if(H[e+71|0]<0)qc(J[e+60>>2]);c=J[d+52>>2];J[e+60>>2]=J[d+48>>2];J[e+64>>2]=c;J[e+68>>2]=J[d+56>>2];c=K[e+71|0];if(c<<24>>24<0?J[e- -64>>2]:c)J[e>>2]=J[e>>2]|2;if(J[d+64>>2]!=6)break m;J[e>>2]=J[e>>2]|32;j=J[J[d+72>>2]+ -12>>2];if((j|0)<=0)break m;i=e+24|0;f=0;while(1){J[d+48>>2]=13;n:{if(J[Mc(J[d+72>>2],f,d+48|0,0)>>2]!=3)break n;h=rc(12);J[695492]=0;g=aa(3187,h|0,J[d+56>>2])|0;c=J[695492];J[695492]=0;o:{if((c|0)!=1){jr(d+32|0,J[g>>2],J[g+4>>2]);c=J[e+28>>2];p:{if(c>>>0>2]){h=J[d+36>>2];J[c>>2]=J[d+32>>2];J[c+4>>2]=h;J[c+8>>2]=J[d+40>>2];J[e+28>>2]=c+12;break p}J[695492]=0;da(3306,i|0,d+32|0);c=J[695492];J[695492]=0;if((c|0)==1)break o;if(H[d+43|0]>=0)break p;qc(J[d+32>>2])}qc(dd(g));break n}break a}f=Z()| -0;if(H[d+43|0]>=0)break b;qc(J[d+32>>2]);break b}uc(d+48|0);f=f+1|0;if((j|0)!=(f|0))continue;break}}c=d- -64|0;uc(c);q:{if(!Bc(J[d+88>>2],814903,c,0))break q;aJ(d+48|0,c,1);if(H[e+83|0]<0)qc(J[e+72>>2]);c=J[d+52>>2];J[e+72>>2]=J[d+48>>2];J[e+76>>2]=c;J[e+80>>2]=J[d+56>>2];c=K[e+83|0];if(!(c<<24>>24<0?J[e+76>>2]:c))break q;J[e>>2]=J[e>>2]|4}uc(d- -64|0);J[d+48>>2]=13;r:{if(J[Bc(J[d+88>>2],812380,d+48|0,0)>>2]!=6)break r;m=J[J[d+56>>2]+12>>2];if((m|0)>0){k=e+12|0;c=0;while(1){s:{if(J[Mc(J[d+56>>2], -c,d- -64|0,0)>>2]!=1)break s;l=J[d+72>>2];f=J[e+16>>2];h=J[e+20>>2];if(f>>>0>>0){J[f>>2]=l;J[e+16>>2]=f+4;break s}j=J[k>>2];i=f-j>>2;g=i+1|0;if(g>>>0>=1073741824)break e;n=i<<2;h=h-j|0;i=h>>1;i=h>>>0>=2147483644?1073741823:g>>>0>>0?i:g;if(i){if(i>>>0>=1073741824)break d;g=rc(i<<2)}else g=0;h=n+g|0;J[h>>2]=l;l=h+4|0;if((f|0)!=(j|0))while(1){h=h-4|0;f=f-4|0;J[h>>2]=J[f>>2];if((f|0)!=(j|0))continue;break}J[e+20>>2]=g+(i<<2);J[e+16>>2]=l;J[e+12>>2]=h;if(!j)break s;qc(j)}uc(d- -64|0);c=c+1|0;if((m| -0)!=(c|0))continue;break}}if(J[e+12>>2]==J[e+16>>2])break r;J[e>>2]=J[e>>2]|8}uc(d+48|0);J[d+32>>2]=13;t:{u:{v:{w:{if(J[Bc(J[d+88>>2],810672,d+32|0,0)>>2]!=6)break w;j=J[J[d+40>>2]+12>>2];if((j|0)>0){i=e+36|0;f=0;while(1){J[d+16>>2]=13;c=d+16|0;x:{if(!(o=Mc(J[d+40>>2],f,c,0),p=0,q=J[d+16>>2]==3,q?o:p)){uc(c);break x}h=rc(12);J[695492]=0;g=aa(3187,h|0,J[d+24>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;jr(d+4|0,J[g>>2],J[g+4>>2]);c=J[e+40>>2];y:{if(c>>>0>2]){h=J[d+8>>2];J[c>>2]=J[d+4>> -2];J[c+4>>2]=h;J[c+8>>2]=J[d+12>>2];J[e+40>>2]=c+12;break y}J[695492]=0;da(3306,i|0,d+4|0);c=J[695492];J[695492]=0;if((c|0)==1)break v;if(H[d+15|0]>=0)break y;qc(J[d+4>>2])}qc(dd(g))}f=f+1|0;if((j|0)!=(f|0))continue;break}}if(J[e+36>>2]==J[e+40>>2])break w;J[e>>2]=J[e>>2]|64}uc(d+32|0);f=J[a+16>>2];if((f|0)==J[a+20>>2])break u;J[f>>2]=e;J[a+16>>2]=f+4;break t}f=Z()|0;if(H[d+15|0]>=0)break b;qc(J[d+4>>2]);break b}j=a+12|0;i=J[j>>2];c=f-i|0;h=c>>2;g=h+1|0;if(g>>>0>=1073741824)break c;k=c>>1;g=c>>>0>= -2147483644?1073741823:g>>>0>>0?k:g;if(g){if(g>>>0>=1073741824)break d;c=rc(g<<2)}else c=0;h=c+(h<<2)|0;J[h>>2]=e;k=h+4|0;if((f|0)!=(i|0)){while(1){h=h-4|0;f=f-4|0;J[h>>2]=J[f>>2];if((f|0)!=(i|0))continue;break}f=J[j>>2]}J[a+20>>2]=c+(g<<2);J[a+16>>2]=k;J[a+12>>2]=h;if(!f)break t;qc(f)}J[d+16>>2]=13;c=d+16|0;if(J[Ce(J[d+88>>2],775727,c)>>2]==9){J[e>>2]=J[e>>2]|16;J[e+8>>2]=J[d+24>>2];K_(a,b,c)}uc(d+16|0)}bc=d+96|0;return}kj(k);B()}Sd();B()}qt(j);B()}ba(f|0);B()}a=Z()|0;qc(h);ba(a|0);B()}function yWa(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+76>>2];if((c|0)>0){b=J[a+84>>2];while(1){f=gw(a,J[b+16>>2])+f|0;b=b+88|0;d=d+1|0;c=J[a+76>>2];if((d|0)<(c|0))continue;break}}a:{b:{c:{d:{if(!J[a+212>>2]){b=194;if(J[a+264>>2])break a;if(J[a+72>>2]!=8|J[a+376>>2]!=8)break c;e=1;e:{if((c|0)<=0)break e;g=c&1;d=J[a+84>>2];if((c|0)!=1){h=c&-2;c=0;while(1){e=J[d+24>>2]<2&J[d+20>>2]<=1?e:0;e=J[d+112>>2]<2&J[d+108>>2]<=1?e:0;d=d+176|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!g|J[d+24>>2]<2&J[d+20>>2]<=1)break e; -e=0}if(!f|!e)break c;c=J[a>>2];J[c+20>>2]=77;gc[J[c+4>>2]](a,0);if(!J[a+212>>2])break d}b=J[a+264>>2]?202:201;break a}if(!J[a+264>>2])break b;break a}if(J[a+264>>2])break a;b=192;if(e)break a}b=193}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=255;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f:{if(d)break f;if(gc[J[c+12>>2]](a)|0)break f;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;g:{if(b)break g;if(gc[J[c+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25; -gc[J[b>>2]](a)}d=J[a+76>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=P(d,3)+8|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(gc[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(gc[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(!(J[a+64>>2]<65536&J[a+68>>2]<=65535)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65535;gc[J[J[a>>2]>>2]](a)}d=J[a+72>>2];b=J[a+24>>2];c=J[b>>2]; -J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(gc[J[b+12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}c=J[a+68>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;k:{if(d)break k;if(gc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(gc[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}c=J[a+64>>2];b=J[a+24>>2];d=J[b>> -2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;m:{if(d)break m;if(gc[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(gc[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}d=J[a+76>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;o:{if(c)break o;if(gc[J[b+12>>2]](a)|0)break o;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(J[a+76>>2]>0){b=J[a+84>>2]; -c=0;while(1){f=J[b>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=f;e=J[d+4>>2]-1|0;J[d+4>>2]=e;p:{if(e)break p;if(gc[J[d+12>>2]](a)|0)break p;d=J[a>>2];J[d+20>>2]=25;gc[J[d>>2]](a)}f=J[b+12>>2];g=J[b+8>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=f+(g<<4);e=J[d+4>>2]-1|0;J[d+4>>2]=e;q:{if(e)break q;if(gc[J[d+12>>2]](a)|0)break q;d=J[a>>2];J[d+20>>2]=25;gc[J[d>>2]](a)}f=J[b+16>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=f;e=J[d+4>>2]-1|0;J[d+4>>2]=e;r:{if(e)break r;if(gc[J[d+12>>2]](a)|0)break r; -d=J[a>>2];J[d+20>>2]=25;gc[J[d>>2]](a)}b=b+88|0;c=c+1|0;if((c|0)>2])continue;break}}s:{if(!J[a+264>>2]|J[a+376>>2]==8)break s;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(gc[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=218;c=J[b+4>>2]-1|0;J[b+4>>2]=c;u:{if(c)break u;if(gc[J[b+12>>2]](a)|0)break u;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+ -4>>2]-1|0;J[b+4>>2]=c;v:{if(c)break v;if(gc[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=6;c=J[b+4>>2]-1|0;J[b+4>>2]=c;w:{if(c)break w;if(gc[J[b+12>>2]](a)|0)break w;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;x:{if(c)break x;if(gc[J[b+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;y:{if(c)break y; -if(gc[J[b+12>>2]](a)|0)break y;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}c=J[a+376>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=P(c,c)-1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(gc[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break s;if(gc[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}}function ora(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;f=bc-48|0;bc=f;if(!J[a+ -36>>2]){J[a+24>>2]=0;J[a+28>>2]=0;e=J[a+12>>2];if(e){c=J[e+24>>2];if(c)while(1){d=J[c>>2];qc(c);J[e+24>>2]=d;c=d;if(c)continue;break}c=J[e>>2];if(c)qc(c);qc(e)}J[a+12>>2]=0}c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;c=J[b>>2];J[695492]=0;J[f+44>>2]=c;d=$(5126,c|0)|0;e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((e|0)==1)break f;J[695492]=0;m=$(5126,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;J[695492]=0;J[f+44>>2]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(!e){J[695492]= -0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=d&255;if((c|0)==J[a+28>>2])break e;a=Kc(f+20|0,2377094,2374197,1509,2420528,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;break d}a=Z()|0;vc(f+44|0);break c}i=J[a+24>>2];g:{h:{i:{j:{k:{l:{m:{n:{if(!c){c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;c=J[b>>2];J[695492]=0;J[f+16>>2]=c;d=$(5126,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;J[695492]=0;e=$(5126,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;J[695492]=0;J[f+ -16>>2]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(!g){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}if((d&127)!=1){a=Kc(f+20|0,2378002,2374197,1517,2420528,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break b}if((e&255)>>>0>=3){a=Kc(f+20|0,2378482,2374197,1519,2420528,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break b}c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;c=J[b>>2];J[695492]=0;J[f+12>>2]=c;g=$(5126, -c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break k;J[695492]=0;h=$(5126,c|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break k;J[695492]=0;j=$(5126,c|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break k;J[695492]=0;k=$(5126,c|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break k;if(e&254){J[695492]=0;$(5126,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k}J[695492]=0;J[f+12>>2]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;l=J[695492];J[695492]=0;if((l|0)==1)break a;if(!e){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c| -0)==1)break a}if(d<<24>>24>=0){a=Kc(f+20|0,2378760,2374197,1524,2420528,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break b}if(J[a+12>>2])break j;d=rc(32);J[d+24>>2]=0;J[d>>2]=0;c=k&255|j<<8&65280;J[d+8>>2]=c;e=h&255|g<<8&65280;J[d+4>>2]=e;c=c+31&131040;J[d+16>>2]=c;e=e+31&131040;J[d+12>>2]=e;c=P(c,e);J[d+20>>2]=c>>>10;J[695492]=0;g=c>>>6|0;e=$(27,g|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){if(c)wc(e,0,g);J[d+28>>2]=4080;J[d>>2]=e;J[a+12>>2]=d;if(!J[a+36>>2])break n;fa(2379891, -2374197,1530,2420579);B()}a=Z()|0;qc(d);break c}if(!J[a+12>>2])break i;if(J[a+36>>2])break m;fa(2380725,2374197,1535,2420579);B()}c=rc(508);J[c+8>>2]=0;J[c+12>>2]=1;J[c+4>>2]=d;J[c+16>>2]=0;d=J[605041];J[c+56>>2]=J[605040];J[c+60>>2]=d;e=J[605043];d=c- -64|0;J[d>>2]=J[605042];J[d+4>>2]=e;J[c+112>>2]=131072;J[c+116>>2]=131072;J[c+104>>2]=131072;J[c+108>>2]=131072;J[c+96>>2]=65536;J[c+100>>2]=65536;J[c+88>>2]=65536;J[c+92>>2]=65536;J[c+80>>2]=65536;J[c+84>>2]=65536;J[c+72>>2]=65536;J[c+76>>2]=65536; -J[c+52>>2]=J[605055];d=J[605054];J[c+44>>2]=J[605053];J[c+48>>2]=d;d=J[605052];J[c+36>>2]=J[605051];J[c+40>>2]=d;d=J[605050];J[c+28>>2]=J[605049];J[c+32>>2]=d;d=J[605048];J[c+20>>2]=J[605047];J[c+24>>2]=d;wc(c+392|0,0,114);J[c>>2]=2420924;J[a+36>>2]=c}c=0;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;c=J[b>>2]}J[695492]=0;J[f+8>>2]=c;ia(5044,f+20|0,f+8|0,0,1);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[f+8>>2];J[f+8>>2]=0;o:{if(!b)break o;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d| -0)==1)break a;if(c)break o;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[f+20>>2];c=(m&255)+i|0;if((c|0)>J[a+24>>2]){while(1){d=J[a+36>>2];e=J[J[d>>2]+8>>2];J[695492]=0;d=aa(e|0,d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;e=J[a+24>>2]+1|0;J[a+24>>2]=e;if((c|0)>(e|0)?d:0)continue;break}b=J[f+20>>2]}J[a+28>>2]=J[a+28>>2]+1;J[f+20>>2]=0;p:{if(!b)break p;J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(a)break p;J[695492]=0;_(4987, -b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=f+48|0;return c|0}c=f+8|0;a=Z()|0;break g}a=Z()|0;vc(f+16|0);break c}a=Z()|0;vc(f+12|0);break c}fa(2379350,2374197,1528,2420579);B()}fa(2380255,2374197,1534,2420579);B()}c=f+20|0;a=Z()|0}vc(c);break c}B()}ba(a|0);B()}b=Z()|0;Fc(a);ba(b|0);B()}ea(0)|0;yc();B()}function ijb(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;c=bc-320|0;bc=c;a:{if(!a){a=6;break a}a=19;e=J[b+8>>2];if(!(e&1))break a;a=20;f=J[b+4>>2];if(!f)break a; -d=I[f+2>>1];if(!d){a=0;break a}j=I[f>>1];if((j|0)<=0){a=0;break a}k=J[f+12>>2];if(!k|!J[f+4>>2]|(d|0)!=(I[(k+(j<<1)|0)-2>>1]+1|0))break a;d=J[b>>2];J[c+232>>2]=J[f+16>>2];a=J[f+12>>2];J[c+224>>2]=J[f+8>>2];J[c+228>>2]=a;a=J[f+4>>2];J[c+216>>2]=J[f>>2];J[c+220>>2]=a;b:{if(e&2){a=J[b+12>>2];if(!a){a=0;break a}J[c+244>>2]=a;a=J[b+28>>2];J[c+312>>2]=0;J[c+248>>2]=a;a=J[b+32>>2];J[c+164>>2]=a;d=J[b+36>>2];J[c+172>>2]=d;f=J[b+40>>2];J[c+168>>2]=f;b=J[b+44>>2];break b}if(!d){a=6;break a}f=J[d+4>>2];if(!f){a= -0;break a}b=J[d>>2];if(!b){a=0;break a}a=6;e=J[d+12>>2];if(!e)break a;a=J[d+8>>2];J[c+240>>2]=a;J[c+244>>2]=0;J[c+248>>2]=0;d=0;J[c+172>>2]=0;J[c+164>>2]=0;J[c+168>>2]=f;J[c+312>>2]=-1;J[c+236>>2]=e+((a|0)>=0?P(a,b-1|0):0);a=0}J[c+176>>2]=b;if((a|0)>=(f|0)){a=0;break a}a=0;if((b|0)<=(d|0))break a;d=0;j=bc-16512|0;bc=j;n=J[c+176>>2];b=J[c+172>>2];l=n-b|0;if(l>>>0>=129){a=l+127>>>7|0;l=((a+l|0)-1>>>0)/(a>>>0)|0}p=l<<2;a=p+15|0;J[c+200>>2]=1024-(a>>>4|0);f=a&-16;a=j+128|0;J[c+196>>2]=f+a;J[c+192>>2]= -a;c:{if((b|0)>=(n|0))break c;m=c+252|0;r=c+216|0;a=0;while(1){J[c+172>>2]=b;k=b+l|0;q=(k|0)<(n|0);f=q?k:n;J[c+176>>2]=f;J[j>>2]=f;J[j+4>>2]=b;f=j;while(1){i=J[f+4>>2];o=J[f>>2];wc(J[c+192>>2],0,p);J[c+188>>2]=1;J[c+204>>2]=0;J[c+172>>2]=J[f+4>>2];J[c+176>>2]=J[f>>2];d:{e:{f:{g:{h:{if(a){J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break h}J[695492]=0;g=ga(1669,r|0,260072,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;if(a){J[695492]=0;a=J[695492];J[695492]=0;if((a|0)==1)break h}i:{if(J[c+188>> -2])break i;d=J[c+156>>2];j:{e=J[c+192>>2]+(J[c+160>>2]-J[c+172>>2]<<2)|0;a=J[e>>2];k:{if(!a){a=0;break k}h=J[a>>2];if((d|0)<(h|0))break k;l:{while(1){b=a;if((d|0)==(h|0))break j;a=J[a+12>>2];if(a){h=J[a>>2];if((d|0)<(h|0))break l;continue}break}a=0}e=b+12|0}b=J[c+204>>2];if((b|0)>=J[c+200>>2]){J[695492]=0;da(1671,c|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break h;b=J[c+204>>2];a=J[e>>2]}J[c+204>>2]=b+1;b=J[c+196>>2]+(b<<4)|0;J[b>>2]=d;J[b+8>>2]=J[c+180>>2];d=J[c+184>>2];J[b+12>>2]=a;J[b+4>>2]=d;J[e>> -2]=b;break i}J[b+8>>2]=J[b+8>>2]+J[c+180>>2];J[b+4>>2]=J[b+4>>2]+J[c+184>>2]}if((g|0)==64)break g;if(g){d=1;break c}h=J[c+172>>2];if((h|0)>2])while(1){a=J[J[c+192>>2]+(h-J[c+172>>2]<<2)>>2];m:{n:{o:{if(!a)break o;d=J[c+164>>2];b=0;while(1){p:{if(!b)break p;g=J[a>>2];if((g|0)<=(d|0))break p;e=b>>9;q:{if(K[c+232|0]&2){e=e&511;e=e>>>0>255?e^511:e;break q}e=e^b>>31;e=(e|0)>=255?255:e}g=g-d|0;i=J[c+312>>2];if((i|0)>=0){o=i+1|0;J[c+312>>2]=o;i=P(i,6)+m|0;H[i+4|0]=e;I[i+2>>1]=g;I[i>>1]=d;if((o| -0)!=10)break p;gc[J[c+244>>2]](h,10,m,J[c+248>>2]);J[c+312>>2]=0;break p}d=(J[c+236>>2]-P(J[c+240>>2],h)|0)+d|0;r:switch(g|0){case 7:H[d|0]=e;d=d+1|0;case 6:H[d|0]=e;d=d+1|0;case 5:H[d|0]=e;d=d+1|0;case 4:H[d|0]=e;d=d+1|0;case 3:H[d|0]=e;d=d+1|0;case 2:H[d|0]=e;d=d+1|0;case 1:H[d|0]=e;break p;case 0:break p;default:break r}wc(d,e,g)}b=(J[a+4>>2]<<9)+b|0;d=J[a+8>>2];s:{if((b|0)==(d|0))break s;e=J[a>>2];if((e|0)>2])break s;g=b-d|0;d=g>>9;t:{if(K[c+232|0]&2){d=d&511;d=d>>>0>255?d^511:d;break t}d= -d^g>>31;d=(d|0)>=255?255:d}g=J[c+312>>2];if((g|0)>=0){i=g+1|0;J[c+312>>2]=i;g=P(g,6)+m|0;H[g+4|0]=d;I[g+2>>1]=1;I[g>>1]=e;if((i|0)!=10)break s;gc[J[c+244>>2]](h,10,m,J[c+248>>2]);J[c+312>>2]=0;break s}H[e+(J[c+236>>2]-P(J[c+240>>2],h)|0)|0]=d}d=J[a>>2]+1|0;a=J[a+12>>2];if(a)continue;break}if(!b)break o;a=b>>9;u:{if(K[c+232|0]&2){a=a&511;b=a>>>0>255?a^511:a;break u}a=a^b>>31;b=(a|0)>=255?255:a}e=J[c+168>>2]-d|0;a=J[c+312>>2];if((a|0)>=0){g=a+1|0;J[c+312>>2]=g;a=P(a,6)+m|0;H[a+4|0]=b;I[a+2>>1]=e;I[a>> -1]=d;a=10;if((g|0)!=10)break o;break n}a=(J[c+236>>2]-P(J[c+240>>2],h)|0)+d|0;v:switch(e|0){case 7:H[a|0]=b;a=a+1|0;case 6:H[a|0]=b;a=a+1|0;case 5:H[a|0]=b;a=a+1|0;case 4:H[a|0]=b;a=a+1|0;case 3:H[a|0]=b;a=a+1|0;case 2:H[a|0]=b;a=a+1|0;case 1:H[a|0]=b;break o;case 0:break o;default:break v}wc(a,b,e)}a=J[c+312>>2];if((a|0)<=0)break m}gc[J[c+244>>2]](h,a,m,J[c+248>>2]);J[c+312>>2]=0}h=h+1|0;if((h|0)>2])continue;break}f=f-4|0;break d}a=ea(2626124)|0;if((cc|0)!=(sa(2626124)|0))break f;na(a|0)| -0;ta()}a=o-i|0;if(a>>>0>=2)break e;d=1;break c}ba(a|0);B()}b=J[f+4>>2];J[f+8>>2]=b;J[f+4>>2]=b+(a>>1);f=f+4|0}a=1;if(f>>>0>=j>>>0)continue;break}d=0;b=k;if(q)continue;break}}bc=j+16512|0;a=d}bc=c+320|0;return a|0}function GBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-160|0;bc=e;g=Ql(e+120|0);H[a+16|0]=0;a:{b:{c:{d:{e:{f:{c=J[b>>2];g:{if(!(J[c+8>>2]?c:0)){J[695492]=0;c=aa(5114,e+48|0,a+36|0)|0;b=J[695492];J[695492]=0;h:{i:{j:{k:{l:{if((b|0)!=1){J[695492]=0;b=aa(4991,e+84|0,c|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break l;J[c+24>>2]=2381060;J[c>>2]=2381028;d=J[c+28>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)gc[J[J[d>>2]+4>>2]](d);J[c+28>>2]=0}J[c+16>>2]=2381060;d=J[c+20>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)gc[J[J[d>>2]+4>>2]](d);J[c+20>>2]=0}sc(c+8|0);if(K[b+32|0])break k;J[695492]=0;da(5112,b|0,1);c=J[695492];J[695492]=0;m:{n:{if((c|0)!=1){if(K[b+32|0])break k;c=J[a+36>>2];if(!c)break n;d=J[J[c>>2]+28>>2];J[695492]=0;ca(d|0,e+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break m}a= -Z()|0;ud(b);break b}J[e+12>>2]=0}J[695492]=0;aa(4993,a+20|0,e+12|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[e+12>>2];J[e+12>>2]=0;if(!c)break j;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break j;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break j}break a}a=Z()|0;break b}a=Z()|0;ud(c);break b}J[695492]=0;da(5113,e+12|0,b|0);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+12>>2];o:{if(c){d=J[J[c>>2]+28>>2];J[695492]=0;ca(d|0,e+4|0,c|0,1);c= -J[695492];J[695492]=0;if((c|0)!=1)break o;a=Z()|0;break c}J[e+4>>2]=0}J[695492]=0;aa(4993,a+20|0,e+4|0)|0;c=J[695492];J[695492]=0;p:{if((c|0)!=1){c=J[e+4>>2];J[e+4>>2]=0;if(!c)break p;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break p;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break p}break a}a=Z()|0;vc(e+4|0);break c}c=J[a+20>>2];J[a+24>>2]=J[(c?c+12|0:2728584)>>2];sc(e+12|0);break i}a=Z()|0;ud(b);break b}c=J[a+20>>2];J[a+24>>2]=J[(c?c+12|0: -2728584)>>2]}J[b+24>>2]=2381060;J[b>>2]=2381028;c=J[b+28>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[b+28>>2]=0}J[b+16>>2]=2381060;c=J[b+20>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[b+20>>2]=0}sc(b+8|0);break g}a=Z()|0;vc(e+12|0);ud(b);break b}J[695492]=0;d=aa(5114,e+48|0,b|0)|0;c=J[695492];J[695492]=0;q:{r:{s:{t:{u:{v:{if((c|0)!=1){J[695492]=0;c=aa(4991,e+84|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break v;J[d+24>>2]=2381060;J[d>>2]=2381028; -f=J[d+28>>2];if(f){h=J[f+4>>2]-1|0;J[f+4>>2]=h;if(!h)gc[J[J[f>>2]+4>>2]](f);J[d+28>>2]=0}J[d+16>>2]=2381060;f=J[d+20>>2];if(f){h=J[f+4>>2]-1|0;J[f+4>>2]=h;if(!h)gc[J[J[f>>2]+4>>2]](f);J[d+20>>2]=0}sc(d+8|0);w:{if(K[c+32|0])break w;J[695492]=0;da(5112,c|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break u;if(K[c+32|0])break w;J[695492]=0;b=aa(4990,e+12|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break t;J[695492]=0;aa(5083,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break s;J[b+24>>2]=2381060;J[b>> -2]=2381028;d=J[b+28>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)gc[J[J[d>>2]+4>>2]](d);J[b+28>>2]=0}J[b+16>>2]=2381060;d=J[b+20>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)gc[J[J[d>>2]+4>>2]](d);J[b+20>>2]=0}sc(b+8|0)}J[695492]=0;da(5113,e+4|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[e+4>>2];if(!b)break r;d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,e+156|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break q;a=Z()|0;break d}a=Z()|0;break b}a=Z()|0;ud(d);break b}a=Z()|0;ud(c);break b}a=Z()|0;ud(c); -break b}a=Z()|0;ud(b);ud(c);break b}J[e+156>>2]=0}J[695492]=0;aa(4993,a+20|0,e+156|0)|0;b=J[695492];J[695492]=0;x:{if((b|0)!=1){b=J[e+156>>2];J[e+156>>2]=0;if(!b)break x;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break x;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break x}break a}a=Z()|0;vc(e+156|0);break d}b=J[a+20>>2];J[a+24>>2]=J[(b?b+12|0:2728584)>>2];sc(e+4|0);J[c+24>>2]=2381060;J[c>>2]=2381028;b=J[c+28>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]= -d;if(!d)gc[J[J[b>>2]+4>>2]](b);J[c+28>>2]=0}J[c+16>>2]=2381060;b=J[c+20>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)gc[J[J[b>>2]+4>>2]](b);J[c+20>>2]=0}sc(c+8|0)}J[695492]=0;aa(5054,a+28|0,2383507)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[g+24>>2]=2381060;J[g>>2]=2381028;a=J[g+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[g+28>>2]=0}J[g+16>>2]=2381060;a=J[g+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[g+20>>2]=0}sc(g+8|0);bc=e+160|0;return}a= -Z()|0;ud(c);break b}a=Z()|0;break b}sc(e+4|0);ud(c);break b}sc(e+12|0);ud(b)}ud(g);ba(a|0);B()}ea(0)|0;yc();B()}function sVa(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;i=bc-80|0;bc=i;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;m=a+24|0;e=m;J[e>>2]=0;J[e+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[i+64>>2]=13;J[i+48>>2]=13;o=J[J[b+28>>2]+132>>2];e=J[o+16>>2];p=J[b+24>>2];J[695492]=0;e=ha(3203,e|0,830036,i- -64|0,0)|0;f=J[695492];J[695492]=0;a:{b:{c:{d:{if((f| -0)!=1){e:{if(J[e>>2]!=6)break e;e=J[i+72>>2];if(J[e+12>>2]<=0)break e;while(1){J[695492]=0;e=ga(3331,e|0,l|0,i+48|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;f:{if(J[e>>2]!=9)break f;k=J[i+56>>2];e=J[a+4>>2];h=J[a+8>>2];if(e>>>0>>0){J[e>>2]=k;J[a+4>>2]=e+4;break f}g:{h:{i:{g=J[a>>2];n=e-g>>2;f=n+1|0;j:{if(f>>>0>=1073741824){J[695492]=0;_(1589,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break j;break a}h=h-g|0;j=h>>1;h=h>>>0>=2147483644?1073741823:f>>>0>>0?j:f;if(!h){j=0;break h}if(h>>>0<1073741824)break i; -J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break a}e=Z()|0;break b}J[695492]=0;j=$(4,h<<2)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g}f=(n<<2)+j|0;J[f>>2]=k;k=f+4|0;if((e|0)!=(g|0))while(1){f=f-4|0;e=e-4|0;J[f>>2]=J[e>>2];if((e|0)!=(g|0))continue;break}J[a+8>>2]=(h<<2)+j;J[a+4>>2]=k;J[a>>2]=f;if(!g)break f;qc(g);break f}e=Z()|0;break b}J[695492]=0;_(3205,i+48|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;l=l+1|0;e=J[i+72>>2];if((l|0)>2])continue;break}}J[695492]=0;_(3205, -i- -64|0);e=J[695492];J[695492]=0;if((e|0)!=1)break c}e=Z()|0;break b}e=Z()|0;break b}J[695492]=0;n=J[J[o+32>>2]+8>>2];e=J[695492];J[695492]=0;k:{if((e|0)!=1){if((n|0)>0){l=0;while(1){J[695492]=0;e=J[J[J[o+32>>2]>>2]+(l<<2)>>2];f=J[695492];J[695492]=0;l:{if((f|0)!=1){J[i+32>>2]=13;J[i+16>>2]=13;m:{n:{o:{if(!e)break o;J[695492]=0;f=i+32|0;g=aa(3289,e|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break n;if(J[g>>2]!=9)break o;J[695492]=0;f=ha(3207,f|0,p|0,i+16|0,0)|0;g=J[695492];J[695492]=0;if((g|0)== -1)break n;if(J[f>>2]==7)break m}J[695492]=0;_(3205,i+16|0);e=J[695492];J[695492]=0;if((e|0)==1)break n;J[695492]=0;_(3205,i+32|0);e=J[695492];J[695492]=0;if((e|0)!=1)break l}e=Z()|0;break b}J[i>>2]=13;J[695492]=0;f=ga(3298,J[i+24>>2],775727,i|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break k;if(J[f>>2]==9){J[695492]=0;ca(3334,a|0,p|0,i|0);f=J[695492];J[695492]=0;if((f|0)==1)break k}J[695492]=0;_(3205,i|0);f=J[695492];J[695492]=0;if((f|0)==1)break k;J[695492]=0;_(3205,i+16|0);f=J[695492];J[695492]= -0;if((f|0)==1)break k;J[695492]=0;_(3205,i+32|0);f=J[695492];J[695492]=0;if((f|0)==1)break k;p:{q:{r:switch(J[e+40>>2]){case 0:case 1:case 2:J[695492]=0;f=$(4,400)|0;g=J[695492];J[695492]=0;if((g|0)==1)break p;J[695492]=0;g=ga(3335,f|0,b|0,e|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break q;e=Z()|0;qc(f);break b;case 3:case 4:case 5:case 6:J[695492]=0;f=$(4,344)|0;g=J[695492];J[695492]=0;if((g|0)==1)break p;J[695492]=0;g=ga(3336,f|0,b|0,e|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break q;e=Z()|0;qc(f); -break b;case 7:case 8:J[695492]=0;f=$(4,368)|0;g=J[695492];J[695492]=0;if((g|0)==1)break p;J[695492]=0;g=ga(3337,f|0,b|0,e|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break q;e=Z()|0;qc(f);break b;case 9:break r;default:break l}J[695492]=0;f=$(4,320)|0;g=J[695492];J[695492]=0;if((g|0)==1)break p;J[695492]=0;g=ga(3338,f|0,b|0,e|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break q;e=Z()|0;qc(f);break b}J[695492]=0;la(3339,g|0,b|0,e|0,c|0,d|0);f=J[695492];J[695492]=0;if((f|0)==1)break p;if(!J[e+40>>2]){J[695492]= -0;la(3340,g|0,b|0,e|0,c|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break p}e=J[a+28>>2];j=J[a+32>>2];if(e>>>0>>0){J[e>>2]=g;J[a+28>>2]=e+4;break l}s:{t:{u:{h=J[m>>2];q=e-h>>2;f=q+1|0;v:{if(f>>>0>=1073741824){J[695492]=0;_(3341,m|0);break v}j=j-h|0;k=j>>1;j=j>>>0>=2147483644?1073741823:f>>>0>>0?k:f;if(!j){k=0;break t}if(j>>>0<1073741824)break u;J[695492]=0;ka(209)}b=J[695492];J[695492]=0;if((b|0)!=1)break a;e=Z()|0;break b}J[695492]=0;k=$(4,j<<2)|0;f=J[695492];J[695492]=0;if((f|0)==1)break s}f= -(q<<2)+k|0;J[f>>2]=g;g=f+4|0;if((e|0)!=(h|0)){while(1){f=f-4|0;e=e-4|0;J[f>>2]=J[e>>2];if((e|0)!=(h|0))continue;break}e=J[m>>2]}J[a+32>>2]=(j<<2)+k;J[a+28>>2]=g;J[a+24>>2]=f;if(!e)break l;qc(e);break l}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;break b}l=l+1|0;if((n|0)!=(l|0))continue;break}}bc=i+80|0;return a|0}e=Z()|0;break b}e=Z()|0}b=J[m>>2];if(b){J[a+28>>2]=b;qc(b)}b=J[a+12>>2];if(b){J[a+16>>2]=b;qc(b)}b=J[a>>2];if(b){J[a+4>>2]=b;qc(b)}ba(e|0);B()}B()}function S6(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;m=bc-80|0;bc=m;e=vx(b,c);a:{if(e)break a;a=J[b+2740>>2];if(!(a&1)){e=R6(b,0);if(e)break a;Q6(b,d,0);a=J[b+2740>>2]}if(!(a&2)){e=R6(b,1);if(e)break a;Q6(b,d,1)}s=b+2748|0;p=b+2744|0;a=1;while(1){b:{e=J[b+2740>>2];o=a;c:{d:{if(a){if(e&1)break c;if(J[d+24>>2]|e&8)break d;P6(m+20|0,b,m+16|0,m+12|0);e=J[b+24>>2];if((e|0)<=0)break c;a=J[b+28>>2];e=a+P(e,40)|0;j=J[m+12>>2];f=J[m+16>>2];while(1){x=a,y=Pc(I[a+12>>1], -f)+j|0,J[x+16>>2]=y;a=a+40|0;if(e>>>0>a>>>0)continue;break}break c}if(e&2)break b}t=P(l,1348)+b|0;v=t- -64|0;j=J[v>>2];q=J[t+56>>2];k=j+P(q,44)|0;i=0;a=j;w=(q|0)<=0;if(!w){while(1){e=K[a+12|0];e:{if(e&4)break e;f=J[a+24>>2];g=J[a+20>>2];f:{g:{if(!g){if(!f)break e;e=J[f+20>>2];if(!e)break e;g=J[e+8>>2];J[f+8>>2]=g;H[f+12|0]=K[f+12|0]|4;e=f;f=a;break g}g=J[g+8>>2];H[a+12|0]=e|4;J[a+8>>2]=g;if(!f)break f;e=a;if(J[f+20>>2])break f}e=kD(J[p>>2],J[s>>2],l,J[f+4>>2]-J[e+4>>2]|0);H[f+12|0]=K[f+12|0]|4;J[f+ -8>>2]=e+g}i=i?i:a}g=0;a=a+44|0;if(k>>>0>a>>>0)continue;break}a=j;f=i;n=0;e=0;i=0;while(1){u=K[a+12|0];h:{if(u&4)break h;h=J[a+24>>2];if(!h){i=i+1|0;break h}i:{if(!(e&255))break i;r=n- -64|0;if((r|0)<=J[a+8>>2]&(r|0)<=J[h+8>>2])break i;i=i+1|0;break h}if(J[h+20>>2]){r=kD(J[p>>2],J[s>>2],l,J[a+4>>2]-J[h+4>>2]|0);h=J[h+8>>2];H[a+12|0]=u|4;J[a+8>>2]=h+r;break h}if(a>>>0>h>>>0){e=kD(J[p>>2],J[s>>2],l,J[a+4>>2]-J[h+4>>2]|0);h=J[h+8>>2];H[a+12|0]=u|4;n=e+h|0;J[a+8>>2]=n;e=1;break h}j:{if(!((f|0)!=0|l)){g= -O6(b,a,h,0,0);break j}O6(b,a,h,g,l)}H[a+12|0]=K[a+12|0]|4;H[h+12|0]=K[h+12|0]|4;n=J[h+8>>2];e=1;f=a}a=a+44|0;if(k>>>0>a>>>0)continue;break}}k:{if(!o)break k;e=4;f=2;a=j;l:switch(q-6|0){case 6:a=j+44|0;e=9;f=5;break;case 0:break l;default:break k}if(J[a+24>>2]!=(a+44|0))break k;g=j+P(f,44)|0;if(J[g+24>>2]!=(g+44|0))break k;f=j+P(e,44)|0;e=J[f+24>>2];if((e|0)!=(f+44|0))break k;n=(J[g+4>>2]<<1)-(J[a+4>>2]+J[f+4>>2]|0)|0;h=n>>31;if((h^n)-h>>>0>7)break k;h=J[f+8>>2];a=(J[g+8>>2]<<1)-J[a+8>>2]|0;J[f+8>> -2]=a;a=h-a|0;if(e)J[e+8>>2]=J[e+8>>2]-a;if((q|0)==12){J[j+360>>2]=J[j+360>>2]-a;J[j+492>>2]=J[j+492>>2]-a}H[f+12|0]=K[f+12|0]|4;if(!e)break k;H[e+12|0]=K[e+12|0]|4}m:{if(w)break m;a=j;if(!i)break m;while(1){f=K[a+12|0];n:{if(f&4)break n;e=J[a+28>>2];if(!e)break n;g=J[e+8>>2];e=J[e+4>>2];H[a+12|0]=f|4;J[a+8>>2]=J[a+4>>2]+(g-e|0);i=i-1|0}a=a+44|0;if(k>>>0>a>>>0)continue;break}e=j;if(!i)break m;while(1){a=e;o:{if(K[a+12|0]&4)break o;while(1){f=a;a=a-44|0;h=j>>>0>a>>>0;if(!(h|K[f-32|0]&4))continue;break}i= -e;p:{q:{r:{while(1){g=i;i=g+44|0;if(k>>>0<=i>>>0)break r;if(!(K[g+56|0]&4))continue;break}if(a>>>0>=j>>>0)break q;h=J[e+4>>2]+(J[g+52>>2]-J[g+48>>2]|0)|0;break p}if(h)break o;a=f-44|0;h=J[e+4>>2]+(J[a+8>>2]-J[a+4>>2]|0)|0;break p}i=L[i>>1];a=L[a>>1];h=J[f-36>>2];if((i|0)==(a|0))break p;a=a<<16>>16;f=J[f-36>>2];h=Dd(I[e>>1]-a|0,J[g+52>>2]-f|0,(i<<16>>16)-a|0)+f|0}J[e+8>>2]=h}e=e+44|0;if(k>>>0>e>>>0)continue;break}}a=J[t+56>>2];s:{if((a|0)<=0)break s;g=J[v>>2];j=g+P(a,44)|0;if(J[p>>2]&(o?1:2)){if(o)while(1){f= -J[g+8>>2];h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+16>>2]=f;I[a>>1]=L[a>>1]|4;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break s}while(1){f=J[g+8>>2];h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+20>>2]=f;I[a>>1]=L[a>>1]|8;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break}break s}if(o)while(1){f=J[g+ -8>>2]-J[g+4>>2]|0;h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+16>>2]=f+J[a+16>>2];I[a>>1]=L[a>>1]|4;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break s}while(1){f=J[g+8>>2]-J[g+4>>2]|0;h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+20>>2]=f+J[a+20>>2];I[a>>1]=L[a>>1]|8;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue; -break}}qM(b,l);pM(b,l)}l=1;a=0;if(o)continue}break}d=J[b+24>>2];if((d|0)<=0){e=0;break a}a=J[b+28>>2];b=a+P(d,40)|0;i=J[c+4>>2];f=J[c+8>>2];while(1){J[i>>2]=J[a+16>>2];J[i+4>>2]=J[a+20>>2];e=0;c=L[a>>1];H[f|0]=c&1?0:c&2?2:1;f=f+1|0;i=i+8|0;a=a+40|0;if(b>>>0>a>>>0)continue;break}}bc=m+80|0;return e|0}function xDa(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;c=J[a+4>>2];if(!c)return 0;e=bc-48|0;bc=e;a=J[c+12>>2];J[e+20>>2]=0;J[e+12>>2]=0;J[e+44>>2]=0;xG(a,b,e+20|0,e+12|0,e+44|0); -m=J[e+12>>2];a=J[c+12>>2];J[695492]=0;la(5E3,e+40|0,a|0,b|0,1,0);a=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((a|0)!=1){J[695492]=0;$(5001,J[e+40>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break i;a=0;J[695492]=0;da(5030,e+36|0,J[e+40>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break g;b=J[e+36>>2];if(b)break h;break d}d=ea(0)|0;break e}d=ea(0)|0;break f}a=J[b+8>>2];J[695492]=0;k=aa(5031,e+20|0,a+28|0)|0;a=J[695492];J[695492]=0;j:{k:{l:{m:{n:{if((a|0)!=1){a=zc(1E3);H[a|0]=0;H[a+1|0]=0;H[a+2| -0]=0;H[a+3|0]=0;j=J[k+8>>2];if(j)break n;h=4;break m}d=ea(0)|0;break j}b=a;h=4;d=1E3;while(1){c=J[j+8>>2];J[e+12>>2]=0;J[e+16>>2]=J[682146];c=J[c+8>>2];o:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,e+44|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break o;d=ea(0)|0;break k}J[e+44>>2]=0}J[695492]=0;aa(4993,e+12|0,e+44|0)|0;c=J[695492];J[695492]=0;p:{if((c|0)!=1){c=J[e+44>>2];J[e+44>>2]=0;if(!c)break p;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break p;J[695492]= -0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break p}break b}d=ea(0)|0;vc(e+44|0);break k}c=J[e+12>>2];J[e+16>>2]=J[(c?c+12|0:2728584)>>2];J[695492]=0;f=aa(5009,e+12|0,-1)|0;c=J[695492];J[695492]=0;q:{r:{s:{t:{u:{if((c|0)!=1){c=J[e+12>>2];if(c)c=J[c+8>>2];else c=0;g=c+4|0;v:{if(!a){h=0;d=g>>>0<=1E3?1E3:g;a=zc(d);b=a;break v}i=g+h|0;b=b+4|0;if(i>>>0<=d>>>0)break v;while(1){d=d<<1;if(i>>>0>d>>>0)continue;break}b=Vd(a,d);if(b){a=b;b=h+b|0;break v}b=tc(zc(d),a,h);qc(a);a=b;b=h+b|0}H[b|0]=c;H[b+1| -0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;b=tc(b+4|0,f,c);f=J[j+8>>2];J[695492]=0;l=$(5032,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;f=J[j+8>>2];J[695492]=0;f=$(5033,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break l;f=m-f|0;w:{x:{y:{if(!a){i=0;d=1E3;b=zc(1E3);c=b;break y}z:{i=g+h|0;h=i+4|0;if(h>>>0<=d>>>0)c=b+c|0;else{while(1){d=d<<1;if(h>>>0>d>>>0)continue;break}b=Vd(a,d);if(!b)break z;a=b;c=i+b|0}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;g=P(l,100);break x}b=zc(d);c=tc(b,a,i);qc(a);c=c+ -i|0}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;g=P(l,100);if(!b)break w;h=i+4|0;a=b}i=i+8|0;if(d>>>0>=i>>>0)c=c+4|0;else{while(1){d=d<<1;if(d>>>0>>0)continue;break}b=Vd(a,d);if(!b)break u;a=b;c=h+b|0}H[c|0]=g;H[c+1|0]=g>>>8;H[c+2|0]=g>>>16;H[c+3|0]=g>>>24;g=P(f,100);break s}h=0;d=1E3;b=zc(1E3);c=b;break t}break l}b=zc(d);c=tc(b,a,h);qc(a);c=c+h|0}H[c|0]=g;H[c+1|0]=g>>>8;H[c+2|0]=g>>>16;H[c+3|0]=g>>>24;g=P(f,100);if(!b)break r;i=h+4|0;a=b}b=c+4|0;c=i+4|0;if(c>>>0<=d>>>0)break q;while(1){d=d<<1;if(c>>> -0>d>>>0)continue;break}b=Vd(a,d);if(b){a=b;b=i+b|0;break q}b=tc(zc(d),a,i);qc(a);a=b;b=i+b|0;break q}i=0;d=1E3;a=zc(1E3);b=a}H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;c=J[j+8>>2];J[695492]=0;c=$(5034,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;c=P(c-l|0,100);A:{if(!a){h=0;d=1E3;a=zc(1E3);b=a;break A}h=i+4|0;f=i+8|0;b=b+4|0;if(f>>>0<=d>>>0)break A;while(1){d=d<<1;if(f>>>0>d>>>0)continue;break}b=Vd(a,d);if(b){a=b;b=b+h|0;break A}b=tc(zc(d),a,h);qc(a);a=b;b=h+b|0}H[b|0]=c;H[b+1| -0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=J[j+8>>2];J[695492]=0;c=$(5033,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;f=J[j+8>>2];J[695492]=0;f=$(5035,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;c=P(c-f|0,100);B:{if(!a){g=0;d=1E3;a=zc(1E3);b=a;break B}g=h+4|0;f=h+8|0;b=b+4|0;if(f>>>0<=d>>>0)break B;while(1){d=d<<1;if(f>>>0>d>>>0)continue;break}b=Vd(a,d);if(b){a=b;b=b+g|0;break B}b=tc(zc(d),a,g);qc(a);a=b;b=g+b|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;h=g+4|0;sc(e+12| -0);j=J[j>>2];if(j)continue;break}}H[a|0]=h;H[a+1|0]=h>>>8;H[a+2|0]=h>>>16;H[a+3|0]=h>>>24;$c(k);b=J[e+36>>2];J[e+36>>2]=0;if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break b}d=ea(0)|0}sc(e+12|0);if(a)qc(a);$c(k)}vc(e+36|0);break f}d=ea(0)|0}vc(e+40|0)}na(d|0)|0;ta();a=0;break c}b=J[e+40>>2];J[e+40>>2]=0;if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]= -0;if((f|0)!=1){if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}break b}bc=e+48|0;break a}ea(0)|0;yc();B()}return a|0}function DSa(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;e=bc-304|0;bc=e;J[a>>2]=2204956;J[e+288>>2]=13;J[e+272>>2]=13;J[a+2984>>2]=0;J[a+2468>>2]=0;J[a+2456>>2]=0;J[a+2460>>2]=0;a:{if(!ZA(a,c))break a;if(!J[a+1040>>2]){xc(1,-1,789941,0);break a}d=J[a+4>>2];if((d|0)>=17){J[e>>2]=16;xc(1,-1,790727,e);break a}o=a,p= -vd(1<>2]=p;if(J[b>>2]!=8){xc(1,-1,791495,0);break a}i=J[b+8>>2];b:{c:{d:{e:{f:{if(J[Bc(c,792276,e+288|0,0)>>2]!=6)break f;b=J[J[e+296>>2]+12>>2];if((b|0)!=J[a+4>>2])break f;if((b|0)>0){b=0;while(1){Mc(J[e+296>>2],b,e+272|0,0);if(J[e+272>>2]!=1){d=793419;break c}d=J[e+280>>2];J[((b<<2)+a|0)+1044>>2]=d;if((d|0)<=0){d=794204;break c}uc(e+272|0);b=b+1|0;if((b|0)>2])continue;break}}uc(e+288|0);j=vd(1<>2],4);J[a+2456>>2]=j;b=J[a+4>>2];if((b|0)!=31)while(1){h=b-1|0;d=f;g=0;if((b| -0)>=2){k=J[((h<<2)+a|0)+1044>>2];while(1){g=(d>>>h&1&(k|0)!=1)+g|0;k=J[((b<<2)+a|0)+1036>>2];g=P(g,k);d=d<<1;m=b>>>0>2;b=b-1|0;if(m)continue;break}}J[j+(f<<2)>>2]=P(J[a+8>>2],(d>>>h&1&J[a+1044>>2]!=1)+g|0);f=f+1|0;b=J[a+4>>2];if((f|0)<1<>2]!=1){xc(1,-1,796069,0);break b}k=J[e+296>>2];l=Pu(k);b=e+288|0;uc(b);b=J[Bc(c,796957,b,0)>>2]!=6;d=J[a+4>>2];g:{if(!(b|J[J[e+296>>2]+12>>2]!=d<<1)){if((d|0)<=0)break g;b=0;while(1){g=b<<1;f=e+272|0;Mc(J[e+296>>2],g, -f,0);d=797368;h=J[e+272>>2];if(h-3>>>0<4294967294)break c;j=(b<<4)+a|0;O[j+1176>>3]=(h|0)==1?+J[e+280>>2]:O[e+280>>3];uc(f);Mc(J[e+296>>2],g|1,f,0);g=J[e+272>>2];if(g-3>>>0<4294967294)break c;O[j+1184>>3]=(g|0)==1?+J[e+280>>2]:O[e+280>>3];uc(f);b=b+1|0;if((b|0)>2])continue;break}break g}if((d|0)<=0)break g;b=0;if((d|0)!=1){m=d&-2;g=a+1176|0;h=a+1044|0;f=0;while(1){j=g+(b<<4)|0;J[j>>2]=0;J[j+4>>2]=0;O[j+8>>3]=J[h+(b<<2)>>2]-1|0;n=b|1;j=g+(n<<4)|0;J[j>>2]=0;J[j+4>>2]=0;O[j+8>>3]=J[h+(n<<2)>> -2]-1|0;b=b+2|0;f=f+2|0;if((m|0)!=(f|0))continue;break}}if(!(d&1))break g;d=(b<<4)+a|0;f=d+1176|0;J[f>>2]=0;J[f+4>>2]=0;O[d+1184>>3]=J[((b<<2)+a|0)+1044>>2]-1|0}uc(e+288|0);f=J[a+4>>2];if((f|0)>0){b=0;while(1){d=(b<<4)+a|0;O[((b<<3)+a|0)+2200>>3]=(O[d+1184>>3]-O[d+1176>>3])/(O[d+24>>3]-O[d+16>>3]);b=b+1|0;if((f|0)!=(b|0))continue;break}}if(J[Bc(c,798412,e+288|0,0)>>2]!=6){d=J[a+8>>2];break e}d=J[a+8>>2];if(J[J[e+296>>2]+12>>2]!=d<<1)break e;if((d|0)<=0)break d;b=0;while(1){f=b<<1;c=e+272|0;Mc(J[e+ -296>>2],f,c,0);d=798888;g=J[e+272>>2];if(g-3>>>0<4294967294)break c;h=(b<<4)+a|0;O[h+1688>>3]=(g|0)==1?+J[e+280>>2]:O[e+280>>3];uc(c);Mc(J[e+296>>2],f|1,c,0);f=J[e+272>>2];if(f-3>>>0<4294967294)break c;O[h+1696>>3]=(f|0)==1?+J[e+280>>2]:O[e+280>>3];uc(c);b=b+1|0;if((b|0)>2])continue;break}break d}xc(1,-1,792692,0);break b}if((d|0)<=0)break d;b=0;if((d|0)!=1){j=d&-2;c=a+1688|0;f=a+528|0;g=0;while(1){h=b<<4;m=h+c|0;n=f+h|0;O[m>>3]=O[n>>3];O[m+8>>3]=O[n+8>>3];h=h|16;m=h+c|0;h=f+h|0;O[m>>3]=O[h>> -3];O[m+8>>3]=O[h+8>>3];b=b+2|0;g=g+2|0;if((j|0)!=(g|0))continue;break}}if(!(d&1))break d;b=(b<<4)+a|0;O[b+1688>>3]=O[b+528>>3];O[b+1696>>3]=O[b+536>>3]}uc(e+288|0);b=J[a+8>>2];J[a+2464>>2]=b;c=J[a+4>>2];if((c|0)>0){d=0;while(1){f=J[((d<<2)+a|0)+1044>>2];if((2147483647/(f|0)|0)<(b|0)){xc(1,-1,799842,0);break a}b=P(b,f);J[a+2464>>2]=b;d=d+1|0;if((c|0)!=(d|0))continue;break}}o=a,p=vd(b,8),J[o+2460>>2]=p;gc[J[J[i>>2]+20>>2]](i);if(J[a+2464>>2]>0){l=1/(l+-1);f=(k|0)>=32?-1:-1<>2]+28>>2]](i)|0;break h;case 8:c=gc[J[J[i>>2]+28>>2]](i)|0;c=(gc[J[J[i>>2]+28>>2]](i)|0)+(c<<8)|0;break h;case 24:c=gc[J[J[i>>2]+28>>2]](i)|0;j=gc[J[J[i>>2]+28>>2]](i)|0;m=gc[J[J[i>>2]+28>>2]](i)|0;c=(gc[J[J[i>>2]+28>>2]](i)|0)+(m+((j<<8)+(c<<16)|0)<<8)|0;break h;default:break i}if((b|0)<(k|0))while(1){d=gc[J[J[i>>2]+28>>2]](i)&255|d<<8;b=b+8|0;if((k|0)>(b|0))continue;break}b=b-k|0;c=f&d>>>b}O[J[a+2460>>2]+(g<<3)>>3]=l*+(c>>>0);g=g+1|0;if((g|0)> -2])continue;break}}gc[J[J[i>>2]+24>>2]](i);c=J[a+4>>2];j:{if((c|0)<=0)break j;b=0;if((c|0)!=1){i=c&-2;d=a+16|0;f=a+2472|0;k=0;while(1){g=b<<3;h=e+16|0;l=O[d+(b<<4)>>3];O[g+h>>3]=l;O[f+g>>3]=l+-1;j=h;g=b|1;h=g<<3;l=O[d+(g<<4)>>3];O[j+h>>3]=l;O[f+h>>3]=l+-1;b=b+2|0;k=k+2|0;if((i|0)!=(k|0))continue;break}}if(!(c&1))break j;c=b<<3;l=O[((b<<4)+a|0)+16>>3];O[c+(e+16|0)>>3]=l;O[(a+c|0)+2472>>3]=l+-1}gc[J[J[a>>2]+16>>2]](a,e+16|0,a+2728|0);J[a+2984>>2]=1;break a}xc(1,-1,d,0);uc(e+272|0)}uc(e+288|0)}bc=e+ -304|0;return a|0}function mGa(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;a=J[J[a+4>>2]+12>>2];if(a)a:{e=a+32|0;g=J[e>>2];if(!g)break a;a=e;while(1){j=J[g+16>>2]<(c|0);a=j?a:g;g=J[(j?g+4|0:g)>>2];if(g)continue;break}if((a|0)==(e|0)|J[a+16>>2]>(c|0))break a;j=J[a+20>>2];a=bc-144|0;bc=a;c=Cp(a+136|0);e=J[j+24>>2];J[695492]=0;g=a- -64|0;ca(4801,g|0,e|0,j+12|0);e=J[695492];J[695492]=0;b:{c:{if((e|0)!=1){J[695492]=0;e=aa(3314,c|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){if(H[a+ -75|0]<0)qc(J[a+64>>2]);d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!e)break n;J[695492]=0;e=$(3315,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;if(!e)break n;J[695492]=0;k=aa(4831,a- -64|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;J[695492]=0;e=a+40|0;da(4802,e|0,c|0);g=J[695492];J[695492]=0;if((g|0)==1)break f;J[695492]=0;g=aa(4825,a+52|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;if(H[a+51|0]<0)qc(J[a+40>>2]);J[695492]=0;e=Fd(g,2366688);h=J[695492];J[695492]=0;if((h|0)==1)break m; -o:{if(e){J[695492]=0;e=Gh(c);h=J[695492];J[695492]=0;if((h|0)==1)break m;if(e)break o;J[695492]=0;h=Qg(c);e=J[695492];J[695492]=0;if((e|0)==1)break j;while(1){J[695492]=0;e=aa(4815,c|0,h|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(!e)break o;J[695492]=0;e=a+28|0;da(4802,e|0,c|0);f=J[695492];J[695492]=0;p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{if((f|0)!=1){J[695492]=0;e=aa(4825,a+40|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break D;J[695492]=0;Xf(g,e);f=J[695492];J[695492]=0;if((f|0)== -1)break C;Lc(e);if(H[a+39|0]<0)qc(J[a+28>>2]);J[695492]=0;e=Fd(g,2366756);f=J[695492];J[695492]=0;if((f|0)==1)break i;if(!e)break p;J[695492]=0;e=a+16|0;J[e>>2]=0;J[e+4>>2]=0;H[e+8|0]=0;f=J[695492];J[695492]=0;if((f|0)==1)break A;J[695492]=0;ca(4829,c|0,2366784,e|0);f=J[695492];J[695492]=0;if((f|0)==1)break r;J[695492]=0;f=Fd(e,2366820);i=J[695492];J[695492]=0;if((i|0)==1)break r;if(!f)break s;J[695492]=0;h=Gh(c);f=J[695492];J[695492]=0;if((f|0)==1)break z;if(h)break t;J[695492]=0;f=Qg(c);h=J[695492]; -J[695492]=0;if((h|0)!=1){while(1){J[695492]=0;h=aa(4815,c|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break y;if(!h)break t;J[695492]=0;h=a+4|0;da(4802,h|0,c|0);i=J[695492];J[695492]=0;if((i|0)==1)break x;J[695492]=0;h=aa(4825,a+28|0,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break w;J[695492]=0;Xf(g,h);i=J[695492];J[695492]=0;if((i|0)==1)break v;Lc(h);if(H[a+15|0]<0)qc(J[a+4>>2]);J[695492]=0;h=Fd(g,2366836);i=J[695492];J[695492]=0;if((i|0)==1)break y;if(!h)continue;break}J[695492]=0;la(4832,j|0, -c|0,b|0,k|0,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break t}b=Z()|0;Lc(e);break h}b=Z()|0;break h}b=Z()|0;break B}b=Z()|0;Lc(e)}if(H[a+39|0]>=0)break h;qc(J[a+28>>2]);break h}b=Z()|0;break h}b=Z()|0;Lc(e);break h}b=Z()|0;Lc(e);break h}b=Z()|0;Lc(e);break h}b=Z()|0;break u}b=Z()|0;Lc(h)}if(H[a+15|0]>=0)break q;qc(J[a+4>>2]);Lc(e);break h}Lc(e);break o}Lc(e);continue}b=Z()|0}Lc(e);break h}J[695492]=0;e=Fd(g,2366928);f=J[695492];J[695492]=0;if((f|0)==1)break i;if(!e)continue;break}J[695492]=0;e=Gh(c); -h=J[695492];J[695492]=0;if((h|0)==1)break j;if(e)break o;J[695492]=0;h=Qg(c);e=J[695492];J[695492]=0;E:{F:{G:{H:{if((e|0)!=1){while(1){J[695492]=0;e=aa(4815,c|0,h|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break k;if(!e)break o;J[695492]=0;e=a+4|0;da(4802,e|0,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break H;J[695492]=0;e=aa(4825,a+28|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break G;J[695492]=0;Xf(g,e);f=J[695492];J[695492]=0;if((f|0)==1)break F;Lc(e);if(H[a+15|0]<0)qc(J[a+4>>2]);J[695492]=0;e=Fd(g, -2366836);f=J[695492];J[695492]=0;if((f|0)==1)break k;if(!e)continue;break}J[695492]=0;la(4832,j|0,c|0,b|0,k|0,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break o}b=Z()|0;break h}b=Z()|0;break h}b=Z()|0;break E}b=Z()|0;Lc(e)}if(H[a+15|0]>=0)break h;qc(J[a+4>>2]);break h}J[695492]=0;e=Fd(g,2366836);h=J[695492];J[695492]=0;if((h|0)==1)break m;if(!e)break o;J[695492]=0;la(4832,j|0,c|0,b|0,k|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break m}Lc(g);TV(k)}J[c>>2]=768024;b=J[c+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b); -bc=a+144|0;break b}b=Z()|0;break h}b=Z()|0;break c}b=Z()|0;break h}b=Z()|0;break h}b=Z()|0}Lc(g);break e}b=Z()|0;if(H[a+51|0]>=0)break e;qc(J[a+40>>2]);break e}b=Z()|0}TV(k);break c}b=Z()|0;break c}b=Z()|0;if(H[a+75|0]>=0)break c;qc(J[a+64>>2]);break c}b=Z()|0}J[c>>2]=768024;a=J[c+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);ba(b|0);B()}}}function Syb(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;e=bc-1168|0;bc=e;if(b)hd(198246,0);b=0;a:{if(jq(a,e+1124| -0))break a;if(jq(a,e+1128|0))break a;if(jq(a,e+1132|0))break a;if(jq(a,e+1136|0))break a;if(jq(a,e+1140|0))break a;if(jq(a,e+1144|0))break a;if(jq(a,e+1148|0))break a;if(jq(a,e+1152|0)|J[e+1124>>2]!=1504078485)break a;l=J[e+1128>>2];if((l|0)<=0)break a;i=J[e+1132>>2];if((i|0)<=0)break a;k=J[e+1136>>2];if((k|0)<=0|(k|0)>32)break a;m=J[e+1144>>2];if(!m)J[e+1140>>2]=P(i,(P(k,l)+15|0)/16|0)<<1;g=3;o=1025;b:switch(k-24|0){default:b=1;o=769;g=1;break;case 0:case 8:break b}J[e+28>>2]=0;J[e+20>>2]=i;J[e+ -16>>2]=l;J[e+8>>2]=1;J[e+12>>2]=1;J[e>>2]=0;J[e+4>>2]=0;d=(k|0)==24?8:(k|0)==32?8:k;J[e+24>>2]=d;if(!b){J[e+92>>2]=0;J[e+88>>2]=d;J[e+84>>2]=i;J[e+80>>2]=l;J[e+76>>2]=1;J[e+68>>2]=0;J[e+72>>2]=1;J[e+60>>2]=0;J[e+64>>2]=0;J[e+56>>2]=d;J[e+52>>2]=i;J[e+48>>2]=l;J[e+40>>2]=1;J[e+44>>2]=1;J[e+32>>2]=0;J[e+36>>2]=0}b=0;g=Rr(g,e);if(!g)break a;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:switch(J[e+1148>>2]){case 0:break l;case 1:break m;default:break j}hd(202295,0);c=1<=257)break h;d=J[e+1152>>2];if((k| -0)!=31)wc(e+100|0,0,((c|0)<=1?1:c)<<2);if((d|0)<0)break j;f=(d|0)/3|0;if(d-P(f,3)|(d|0)>3<>>0<3)break l;d=0;while(1){j=J[a+8>>2];if(j&7)break j;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;n:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break n}c=jd(a,1);if((c|0)==-1)break j}j=(d<<2)+e|0;J[j+100>>2]=J[j+100>>2]|c&255;d=d+1|0;if((f|0)!=(d|0))continue;break}d=0;while(1){j=J[a+8>>2];if(j&7)break j;c=J[a+64>>2];if((c|0)>=0& -(c|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;o:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break o}c=jd(a,1);if((c|0)==-1)break j}j=(d<<2)+e|0;J[j+100>>2]=J[j+100>>2]|c<<8&65280;d=d+1|0;if((f|0)!=(d|0))continue;break}d=0;while(1){j=J[a+8>>2];if(j&7)break j;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;p:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break p}c=jd(a,1);if((c|0)==-1)break j}h=(d<<2)+e| -0;j=h+100|0;J[j>>2]=J[h+100>>2]|c<<16&16711680;d=d+1|0;if((f|0)!=(d|0))continue;break}}switch(m|0){case 0:case 1:break i;case 2:break e;default:break g}}J[a+8>>2]=j|4}yh(g);break a}if(J[g+16>>2]>0){d=0;q:{while(1){r:{c=ek(1,J[g+8>>2]-J[g>>2]|0);J[(e+1156|0)+(d<<2)>>2]=c;if(!c)break r;d=d+1|0;if((d|0)>2])continue;break q}break}fa(200850,201346,262,207869);B()}p=J[e+1164>>2];q=J[e+1160>>2];j=J[e+1156>>2]}r=(k|0)==32?-1:-1<>2];if(f&7)break f;h=J[a+64>>2];if((h|0)>=0&(h|0)<=J[a+60>>2])break c;f=J[a+28>>2];J[a+28>>2]=f-1;s:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+24>>2]=f+1;f=K[f|0];break s}f=jd(a,1);if((f|0)==-1)break f}i=i<<8|f;d=d+8|0;if((k|0)>(d|0))continue;break}d=d-k|0;v=(d|0)==32?-1:-1<>d&r;h=J[j+20>>2];t:{if(J[g+16>>2]==3){w=f&255;n=J[j+28>>2];if((h|0)==1)h=J[n>>2]+(c<<2)|0;else h=J[n+(c<<2)>>2];J[h>>2]=w;n=f>>> -8&255;h=J[q+28>>2];if(J[q+20>>2]==1)h=J[h>>2]+(c<<2)|0;else h=J[h+(c<<2)>>2];J[h>>2]=n;f=f>>>16&255;h=J[p+28>>2];if(J[p+20>>2]==1){J[J[h>>2]+(c<<2)>>2]=f;break t}J[J[h+(c<<2)>>2]>>2]=f;break t}n=J[j+28>>2];if((h|0)==1){J[J[n>>2]+(c<<2)>>2]=f;break t}J[J[n+(c<<2)>>2]>>2]=f}i=i&v;c=c+1|0;if((t|0)!=(c|0))continue;break}u:{if(u)break u;f=J[a+8>>2];if(f&7)break f;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;d=J[a+28>>2];J[a+28>>2]=d-1;if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;J[a+24>>2]=J[a+24>>2]+1;break u}if((jd(a, -1)|0)==-1)break f}d=0;i=J[g+16>>2];if((i|0)>0)while(1){if(gk(g,d,0,m,l,1,J[(e+1156|0)+(d<<2)>>2]))break f;d=d+1|0;i=J[g+16>>2];if((d|0)<(i|0))continue;break}m=m+1|0;if((s|0)!=(m|0))continue;break}break d}fa(202695,201346,327,207884);B()}hd(200545,0)}yh(g);break a}hd(199426,0);yh(g);break a}a=0;if((i|0)>0)while(1){dg(J[(e+1156|0)+(a<<2)>>2]);a=a+1|0;if((a|0)>2])continue;break}J[g+28>>2]=o;v:{w:switch(k-24|0){case 0:case 8:a=J[g+24>>2];J[J[a>>2]+40>>2]=0;J[J[a+4>>2]+40>>2]=1;J[J[a+8>>2]+40>> -2]=2;break v;default:break w}J[J[J[g+24>>2]>>2]+40>>2]=0}b=g;break a}J[a+8>>2]=f|4;yh(g)}bc=e+1168|0;return b|0}function gEa(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=bc-112|0;bc=e;j=e+100|0;J[j>>2]=0;J[j+4>>2]=0;H[j+8|0]=0;J[695492]=0;f=Yj(a);h=J[695492];J[695492]=0;g=1;a:{b:{c:{if((h|0)==1)break c;d:{e:{f:{g:{h:{if(!f)break h;J[695492]=0;g=e+72|0;da(4810,g|0,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break d;J[695492]=0;g=aa(4825,e+88|0,g|0)|0;f=J[695492];J[695492]=0;if((f|0)== -1)break f;J[695492]=0;Xf(j,g);f=J[695492];J[695492]=0;if((f|0)==1)break g;Lc(g);if(H[e+83|0]<0)qc(J[e+72>>2]);g=1;i:{j:{k:{while(1){J[695492]=0;f=J[j+4>>2];h=J[695492];J[695492]=0;if((h|0)==1)break b;l:{m:{n:{o:{if(f){J[695492]=0;f=Fd(j,2371916);h=J[695492];J[695492]=0;if((h|0)==1)break b;p:{if(!(!d|f^1)){J[695492]=0;f=e+72|0;da(4811,f|0,a|0);h=J[695492];J[695492]=0;q:{if((h|0)!=1){J[695492]=0;ca(4862,d|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break q;if(H[e+83|0]>=0)break p;qc(J[e+72>>2]);break p}a= -Z()|0;break a}a=Z()|0;if(H[e+83|0]>=0)break a;qc(J[e+72>>2]);break a}J[695492]=0;f=Fd(j,2372004);h=J[695492];J[695492]=0;if((h|0)==1)break b;if(f){J[695492]=0;f=e+72|0;da(4811,f|0,a|0);h=J[695492];J[695492]=0;r:{if((h|0)!=1){J[695492]=0;ca(4862,b|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break r;if(H[e+83|0]>=0)break p;qc(J[e+72>>2]);break p}a=Z()|0;break a}a=Z()|0;if(H[e+83|0]>=0)break a;qc(J[e+72>>2]);break a}J[695492]=0;f=Fd(j,2372036);h=J[695492];J[695492]=0;if((h|0)==1)break b;if(f){J[695492]= -0;f=e+72|0;da(4811,f|0,a|0);h=J[695492];J[695492]=0;s:{if((h|0)!=1){J[695492]=0;ca(4862,c|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break s;if(H[e+83|0]>=0)break p;qc(J[e+72>>2]);break p}a=Z()|0;break a}a=Z()|0;if(H[e+83|0]>=0)break a;qc(J[e+72>>2]);break a}J[695492]=0;f=Fd(j,2372076);h=J[695492];J[695492]=0;if((h|0)==1)break b;if(!f)break p;J[695492]=0;g=e+72|0;da(4811,g|0,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break o;J[695492]=0;f=aa(4825,e+60|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break n; -if(H[e+83|0]<0)qc(J[e+72>>2]);J[695492]=0;g=Fd(f,2372112);h=J[695492];J[695492]=0;if((h|0)==1)break m;Lc(f)}J[695492]=0;f=vi(a);h=J[695492];J[695492]=0;if((h|0)==1)break b;if(f)break l}J[695492]=0;Ri(a);d=J[695492];J[695492]=0;if((d|0)==1)break c;break h}a=Z()|0;break a}a=Z()|0;if(H[e+83|0]>=0)break a;qc(J[e+72>>2]);break a}a=Z()|0;Lc(f);break a}J[695492]=0;f=e+72|0;da(4810,f|0,a|0);h=J[695492];J[695492]=0;if((h|0)!=1){J[695492]=0;f=aa(4825,e+48|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break k; -J[695492]=0;Xf(j,f);h=J[695492];J[695492]=0;if((h|0)==1)break j;Lc(f);if(H[e+83|0]>=0)continue;qc(J[e+72>>2]);continue}break}a=Z()|0;break a}a=Z()|0;break i}a=Z()|0;Lc(f)}if(H[e+83|0]>=0)break a;qc(J[e+72>>2]);break a}J[695492]=0;d=Gh(a);f=J[695492];J[695492]=0;if((f|0)==1)break c;t:{u:{v:{w:{x:{if(d)break x;J[e+80>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;J[695492]=0;d=e+36|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;f=J[695492];J[695492]=0;if((f|0)==1)break u;J[695492]=0;f=Qg(a);h=J[695492];J[695492]=0;if((h|0)== -1)break w;h=g&1;y:{while(1){z:{J[695492]=0;g=aa(4815,a|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break z;if(!g)break y;J[695492]=0;g=e+12|0;da(4802,g|0,a|0);i=J[695492];J[695492]=0;A:{B:{C:{D:{if((i|0)!=1){J[695492]=0;g=aa(4825,e+24|0,g|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break D;J[695492]=0;Xf(d,g);i=J[695492];J[695492]=0;if((i|0)==1)break C;Lc(g);if(H[e+23|0]<0)qc(J[e+12>>2]);J[695492]=0;g=Fd(d,2372144);i=J[695492];J[695492]=0;if((i|0)==1)break z;if(!g)break A;J[695492]=0;g=J[c+4>>2];i= -J[695492];J[695492]=0;if((i|0)==1)break z;if(g)break A;J[695492]=0;ca(4838,a|0,c|0,0);g=J[695492];J[695492]=0;if((g|0)!=1)continue;break z}a=Z()|0;break v}a=Z()|0;break B}a=Z()|0;Lc(g)}if(H[e+23|0]>=0)break v;qc(J[e+12>>2]);break v}J[695492]=0;g=Fd(d,2372236);i=J[695492];J[695492]=0;if((i|0)==1)break z;if(!g)continue;J[695492]=0;g=J[b+4>>2];i=J[695492];J[695492]=0;if((i|0)==1)break z;if(g)continue;J[695492]=0;ca(4974,a|0,e+72|0,h|0);g=J[695492];J[695492]=0;if((g|0)!=1)continue}break}a=Z()|0;break v}J[695492]= -0;ia(4847,b|0,(H[e+83|0]<0?J[e+72>>2]:e+72|0)|0,1,-1);a=J[695492];J[695492]=0;if((a|0)==1)break w;Lc(d);if(H[e+83|0]>=0)break x;qc(J[e+72>>2])}Lc(j);bc=e+112|0;return}a=Z()|0}Lc(d);break t}a=Z()|0}if(H[e+83|0]>=0)break a;qc(J[e+72>>2]);break a}a=Z()|0;Lc(g);break e}a=Z()|0}if(H[e+83|0]>=0)break a;qc(J[e+72>>2]);break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0}Lc(j);ba(a|0);B()}function b2a(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;d=bc-176|0;bc=d;J[d+172>>2]=0;J[d+168>>2]= -0;e=K[a+11|0];f=e<<24>>24<0;kr(f?J[a>>2]:a,f?J[a+4>>2]:e,d+172|0,d+168|0,0);a:{k=zR(J[d+172>>2]);if(k){e=rF(k);if(e)while(1){f=1;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:switch(K[e+18|0]){case 0:h=J[d+172>>2];g=Qc(h);if(g>>>0>=2147483632)break c;n:{if(g>>>0<=10){H[d+39|0]=g;f=d+28|0;break n}i=(g|15)+1|0;f=rc(i);J[d+36>>2]=i|-2147483648;J[d+28>>2]=f;J[d+32>>2]=g}l=Zc(f,h,g)+g|0,m=0,H[l|0]=m;J[695492]=0;f=aa(2668,d+28|0,28650)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;J[d+48>>2]=J[f+8>>2];g=J[f+4>>2]; -J[d+40>>2]=J[f>>2];J[d+44>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;h=e+19|0;g=Qc(h);if(g>>>0>=2147483632){J[695492]=0;_(1623,d+16|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;break a}o:{if(g>>>0<=10){H[d+27|0]=g;f=d+16|0;break o}J[695492]=0;i=(g|15)+1|0;f=$(4,i|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break k;J[d+16>>2]=f;J[d+20>>2]=g;J[d+24>>2]=i|-2147483648}l=Zc(f,h,g)+g|0,m=0,H[l|0]=m;J[695492]=0;f=K[d+27|0];g=f<<24>>24<0;f=ga(2669,d+40|0,(g?J[d+16>>2]:d+16|0)|0,(g?J[d+20>>2]:f)|0)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break i;J[d- -64>>2]=J[f+8>>2];g=J[f+4>>2];J[d+56>>2]=J[f>>2];J[d+60>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+51|0]<0)qc(J[d+40>>2]);if(H[d+39|0]<0)qc(J[d+28>>2]);g=J[d+56>>2];h=H[d+67|0];Rk((h|0)<0?g:d+56|0,d+72|0);f=J[d+76>>2]&61440;if((h|0)<0)qc(g);if((f|0)==32768)break f;f=(f|0)==16384;break;case 4:break m;case 8:break f;default:break b}if(!f|!c)break b;if(K[e+19|0]!=46)break e;break b}e=Z()|0;break g}e=Z()|0;break h}e=Z()|0;break h}e= -Z()|0;if(H[d+27|0]>=0)break h;qc(J[d+16>>2])}if(H[d+51|0]>=0)break g;qc(J[d+40>>2])}if(H[d+39|0]>=0)break d;qc(J[d+28>>2]);ba(e|0);B()}e=e+19|0;mm(d+72|0,e,Qc(e));e=K[a+11|0];g=e<<24>>24<0;p:{q:{r:{s:{t:{u:{v:{h=g?J[a+4>>2]:e;e=h+1|0;w:{if(e>>>0>=1073741808){J[695492]=0;_(2793,d+40|0);break w}if(e>>>0<=1){J[d+48>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;H[d+51|0]=e;f=d+40|0;break u}f=e|3;if(f>>>0<1073741823)break v;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;e=Z()|0;break p}J[695492]=0; -i=f+1|0;f=$(4,i<<2)|0;j=J[695492];J[695492]=0;if((j|0)==1)break t;J[d+44>>2]=e;J[d+40>>2]=f;J[d+48>>2]=i|-2147483648}e=h<<2;e=Zc(f,g?J[a>>2]:a,e)+e|0;J[e>>2]=47;J[e+4>>2]=0;J[695492]=0;e=K[d+83|0];f=e<<24>>24<0;e=ga(2794,d+40|0,(f?J[d+72>>2]:d+72|0)|0,(f?J[d+76>>2]:e)|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break s;f=d- -64|0;J[f>>2]=J[e+8>>2];g=J[e+4>>2];J[d+56>>2]=J[e>>2];J[d+60>>2]=g;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;e=J[b+4>>2];x:{if(e>>>0>2]){g=J[d+60>>2];J[e>>2]=J[d+56>>2];J[e+4>>2]= -g;J[e+8>>2]=J[f>>2];J[f>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[b+4>>2]=e+12;break x}J[695492]=0;da(2791,b|0,d+56|0);e=J[695492];J[695492]=0;if((e|0)==1)break r;if(H[d+67|0]>=0)break x;qc(J[d+56>>2])}if(H[d+51|0]<0)qc(J[d+40>>2]);if(H[d+83|0]>=0)break b;qc(J[d+72>>2]);break b}e=Z()|0;break p}e=Z()|0;break q}e=Z()|0;if(H[d+67|0]>=0)break q;qc(J[d+56>>2])}if(H[d+51|0]>=0)break p;qc(J[d+40>>2])}if(H[d+83|0]>=0)break d;qc(J[d+72>>2]);ba(e|0);B()}e=e+19|0;mm(d+72|0,e,Qc(e));e=K[a+11|0];g=e<<24>>24<0;y:{z:{A:{B:{C:{D:{E:{h= -g?J[a+4>>2]:e;e=h+1|0;F:{if(e>>>0>=1073741808){J[695492]=0;_(2793,d+56|0);break F}if(e>>>0<=1){J[d- -64>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;H[d+67|0]=e;f=d+56|0;break D}f=e|3;if(f>>>0<1073741823)break E;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;e=Z()|0;break y}J[695492]=0;i=f+1|0;f=$(4,i<<2)|0;j=J[695492];J[695492]=0;if((j|0)==1)break C;J[d+60>>2]=e;J[d+56>>2]=f;J[d+64>>2]=i|-2147483648}e=h<<2;e=Zc(f,g?J[a>>2]:a,e)+e|0;J[e>>2]=47;J[e+4>>2]=0;J[695492]=0;e=K[d+83|0];f=e<<24>>24<0; -e=ga(2794,d+56|0,(f?J[d+72>>2]:d+72|0)|0,(f?J[d+76>>2]:e)|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break B;J[d+8>>2]=J[e+8>>2];f=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;ca(2829,d|0,b|0,1);e=J[695492];J[695492]=0;if((e|0)==1)break A;if(H[d+11|0]<0)qc(J[d>>2]);if(H[d+67|0]<0)qc(J[d+56>>2]);if(H[d+83|0]>=0)break b;qc(J[d+72>>2]);break b}e=Z()|0;break y}e=Z()|0;break z}e=Z()|0;if(H[d+11|0]>=0)break z;qc(J[d>>2])}if(H[d+67|0]>=0)break y;qc(J[d+56>>2])}if(H[d+ -83|0]>=0)break d;qc(J[d+72>>2])}ba(e|0);B()}Id(d+28|0);B()}e=rF(k);if(e)continue;break}SR(k)}a=J[d+172>>2];if(a)qc(a);bc=d+176|0;return}B()}function bsa(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=bc+-64|0;bc=f;a:{b:{c:{d:{e:{f:{g:{if(J[a+36>>2]>0){a=Kc(f+28|0,2378433,2378846,178,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}e=J[a+24>>2];if(!(!e|K[e+20|0])){a=Kc(f+28|0,2379262,2378846,180,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break g;break b}J[a+36>>2]=-1;j=J[a+28>>2];h=J[a+32>>2];if((j|0)<(h|0)){j=J[a+16>>2];gc[J[J[j>>2]+20>>2]](j,h,0,0)|0;j=J[a+32>>2];J[a+28>>2]=j;e=J[a+24>>2]}h:{if(e){h=0;if(J[e+8>>2]==(j|0))break h}if(j&1){h=J[a+16>>2];j=gc[J[J[h>>2]+8>>2]](h,f+52|0,1)|0;e=J[a+24>>2];if(!j){h=0;if(!e)break h}j=j+J[a+28>>2]|0;J[a+28>>2]=j}h=j;while(1){i:{if(!e)break i;e=J[e+8>>2];if((e|0)==(h|0)){h=0;break h}if((e|0)>=(h+4|0))break i;a=Kc(f+28|0,2379846,2378846,211,2415032,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}g=bp(J[a+16>>2],f+52|0,4);h=g+J[a+28>>2]|0;J[a+32>>2]=h;J[a+28>>2]=h;e=J[a+24>>2];if(!(e|g)){h=0;break h}if((g|0)!=4){a=Kc(f+28|0,J[682138],2378846,217,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}g=K[f+55|0];i=K[f+54|0];l=K[f+52|0];k=K[f+53|0];if(!((l|0)!=83|(k|0)!=68|((i|0)!=74|(g|0)!=86))){H[a+21|0]=1;continue}if(!((l|0)!=65|(k|0)!=84|((i|0)!=38|(g|0)!=84))){H[a+20|0]=1;continue}break}if(!(!e|J[e+ -8>>2]>=(h+4|0))){a=Kc(f+28|0,2380337,2378846,236,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}e=f+56|0;h=bp(J[a+16>>2],e,4);g=h+J[a+28>>2]|0;J[a+32>>2]=g;J[a+28>>2]=g;if((h|0)!=4){a=Kc(f+28|0,J[682138],2378846,240,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}i=J[a+24>>2];h=J[f+56>>2];h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);if(!(!i|J[i+8>>2]>=(h+g|0))){a=Kc(f+28|0,2380694,2378846,246,2415032,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}k=vz(f+52|0);if((k|0)<0){a=Kc(f+28|0,2381286,2378846,251,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}j:{k:{l:{if(k){if(!(!i|J[i+8>>2]>=(g+4|0))){a=Kc(f+28|0,2381510,2378846,257,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}g=bp(J[a+16>>2],e,4);J[a+28>>2]=g+J[a+28>>2];if((g|0)!=4){a=Kc(f+28|0,J[682138],2378846,261,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break g;break b}if(vz(e))break l;i=J[a+24>>2];g=J[a+32>>2]}e=rc(24);J[e+8>>2]=g+h;J[e+4>>2]=g;J[e>>2]=i;i=J[f+56>>2];g=J[f+52>>2];H[e+20|0]=(k|0)!=0;H[e+12|0]=g;H[e+13|0]=g>>>8;H[e+14|0]=g>>>16;H[e+15|0]=g>>>24;g=k?i:0;H[e+16|0]=g;H[e+17|0]=g>>>8;H[e+18|0]=g>>>16;H[e+19|0]=g>>>24;J[a+24>>2]=e;g=mG(f+28|0,e+12|0,4);e=J[g>>2];if(!e)break k;i=J[J[e>>2]+28>>2];J[695492]=0;ca(i|0,f+20|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break j;a=Z()|0;break c}a=Kc(f+28|0,2382093,2378846, -263,2415032,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g;break b}J[f+20>>2]=0}J[695492]=0;aa(4993,b|0,f+20|0)|0;e=J[695492];J[695492]=0;m:{if((e|0)!=1){e=J[f+20>>2];J[f+20>>2]=0;if(!e)break m;J[695492]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;l=J[695492];J[695492]=0;if((l|0)!=1){if(i)break m;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break m}break a}a=Z()|0;vc(f+20|0);break c}e=J[b>>2];J[b+4>>2]=J[(e?e+12|0:2728584)>>2];sc(g);if(k){e=f+20|0;AT(e,b,2382379);g=J[a+24>> -2];J[695492]=0;g=ga(5169,f+12|0,g+16|0,4)|0;i=J[695492];J[695492]=0;n:{o:{if((i|0)!=1){J[695492]=0;ca(5122,f+28|0,e|0,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break o;e=J[f+28>>2];p:{if(e){i=J[J[e>>2]+28>>2];J[695492]=0;ca(i|0,f+60|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break p;a=Z()|0;break f}J[f+60>>2]=0}J[695492]=0;aa(4993,b|0,f+60|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){e=J[f+60>>2];J[f+60>>2]=0;if(!e)break n;J[695492]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;k=J[695492];J[695492]=0;if((k|0)!=1){if(i)break n; -J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break n}break a}a=Z()|0;vc(f+60|0);break f}a=Z()|0;break d}a=Z()|0;break e}e=b;b=J[b>>2];J[e+4>>2]=J[(b?b+12|0:2728584)>>2];sc(f+28|0);sc(g);sc(f+20|0)}if(c)J[c>>2]=j;if(!d)break h;J[d>>2]=(J[J[a+24>>2]+8>>2]-j|0)+1&-2}bc=f- -64|0;return h|0}B()}sc(f+28|0)}sc(g)}sc(f+20|0);ba(a|0);B()}sc(g);ba(a|0);B()}b=Z()|0;Fc(a);ba(b|0);B()}ea(0)|0;yc();B()}function q$a(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;a:{c=J[a+ -4>>2];b:{if(!c)break b;e=J[a+16>>2];j=J[a+20>>2];if(e>>>0>j>>>0)break b;h=J[a+8>>2];n=J[a+12>>2];if(h>>>0<=n>>>0)break a}J[b>>2]=1;return}c:{d:{e:{d=J[c+56>>2];if(d){c=e;break e}if(h>>>0>=n>>>0)break c;i=J[c+8>>2];o=L[i+6>>1]>>>7|0;f=J[a+24>>2];f:while(1){l=P(o&65535,12)+752216|0;d=h;while(1){g:{c=J[a+4>>2];if(J[c+52>>2]!=10)break g;J[c+52>>2]=0;h=J[l>>2];h:{if(e>>>0>>0){g=J[a+8>>2];H[e|0]=239;c=e+1|0;i:{if(f){g=(d-g>>1)-1|0;J[f>>2]=g;if(c>>>0>=j>>>0)break i;H[c|0]=h;J[f+4>>2]=g;f=f+8|0;break h}if(c>>> -0>=j>>>0)break i;H[c|0]=h;f=0;break h}e=J[a+4>>2];f=H[e+63|0];H[e+63|0]=f+1;H[(e+f|0)+76|0]=h;J[b>>2]=15;e=c;h=d;break c}f=H[c+63|0];H[c+63|0]=f+1;H[(c+f|0)+76|0]=239;c=J[a+4>>2];f=H[c+63|0];H[c+63|0]=f+1;H[(c+f|0)+76|0]=h;J[b>>2]=15;h=d;break c}e=e+2|0;if(J[b>>2]<=0)break g;h=d;break c}h=d+2|0;j:{d=L[d>>1];if(d>>>0<=160){c=J[a+4>>2];J[c+52>>2]=d;k:{l:{if(e>>>0>>0){c=J[a+8>>2];H[e|0]=d;if(f)break l;f=0;break k}f=H[c+63|0];H[c+63|0]=f+1;H[(c+f|0)+76|0]=d;J[b>>2]=15;break c}J[f>>2]=(h-c>>1)-1;f= -f+4|0}e=e+1|0;if(J[b>>2]>0)break c;break j}m=L[i+2>>1];m:{n:{o:{if((d|0)!=8204){if((d|0)!=8205)break o;I[i+2>>1]=0;g=m?233:217;d=8205;c=e;break n}I[i+2>>1]=0;if(!m)break j;d=8204;g=232;c=e;break n}g=65535;p:{c=d-2304|0;q:{if((c&65535)>>>0>1151){c=e;break q}l=0;if((d-2406&65535)>>>0<=65533){o=(c|0)/128|0;c=o<<7;if(K[i+24|0]|L[i+6>>1]!=(c&65408)){H[i+24|0]=0;I[i+6>>1]=c;J[i+12>>2]=J[P(o&65535,12)+752212>>2];l=1}else l=0;r:{s:{g=c&65535;if((g|0)!=256)break s;c=2562;t:switch(d-2672|0){case 0:break r; -case 1:break t;default:break s}c=2673;I[i+2>>1]=2673;break r}c=d}d=c-g|0}g=d&255;c=L[(g<<1)+753152>>1];if(!(J[i+12>>2]&K[g+752944|0]))c=(d|0)!=2353?-1:L[i+6>>1]!=768?-1:c;g=c&65535;u:{if(!l){c=e;break u}l=J[P(o&65535,12)+752216>>2];v:{w:{if(e>>>0>>0){k=J[a+8>>2];H[e|0]=239;c=e+1|0;if(f){k=(h-k>>1)-1|0;J[f>>2]=k;if(c>>>0>>0)break w;f=f+4|0;break p}f=0;if(c>>>0>=j>>>0)break p;H[c|0]=l;f=0;break v}c=J[a+4>>2];k=H[c+63|0];H[c+63|0]=k+1;H[(c+k|0)+76|0]=239;c=J[a+4>>2];k=H[c+63|0];H[c+63|0]=k+1;H[(c+ -k|0)+76|0]=l;J[b>>2]=15;c=e;break n}H[c|0]=l;J[f+4>>2]=k;f=f+8|0}c=e+2|0;if(J[b>>2]>0)break n}if((d|0)!=2417)break q;e=c;if(L[i+6>>1]==256)break m}I[i+2>>1]=0;break n}e=J[a+4>>2];k=H[e+63|0];H[e+63|0]=k+1;H[(e+k|0)+76|0]=l;J[b>>2]=15}x:{y:{if(!(L[i+6>>1]!=256|(m|0)!=2673|(!(H[d+750768|0]&1)|d-2384>>>0<4294967216))){I[i+2>>1]=0;e=g<<16|g;m=e|59392;if(c>>>0>>0){k=h-J[a+8>>2]>>1;l=k-1|0;z:{A:{B:{C:{if(m>>>0<65536){d=c;break C}H[c|0]=e>>>16;d=c+1|0;if(!f)break B;l=k-2|0;J[f>>2]=l;f=f+4|0}if(d>>>0>= -j>>>0)break A;H[d|0]=m>>>8;e=d+1|0;if(f)break z;c=0;break x}if(d>>>0>>0)break y}e=d;c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=m>>>8;c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g;J[b>>2]=15;break c}J[f>>2]=l;c=f+4|0;break x}d=J[a+4>>2];if(e&16711680){f=H[d+63|0];H[d+63|0]=f+1;H[(d+f|0)+76|0]=e>>>16;d=J[a+4>>2]}e=H[d+63|0];H[d+63|0]=e+1;H[(d+e|0)+76|0]=m>>>8;e=J[a+4>>2];d=H[e+63|0];H[e+63|0]=d+1;H[(d+e|0)+76|0]=g;J[b>>2]=15;e=c;break c}D:{E:{F:{G:{H:{I:{J:{K:{if((g|0)!=232){if((g| -0)==65535)break D;if(c>>>0>=j>>>0)break H;d=(h-J[a+8>>2]>>1)-1|0;if(g>>>0<=255)break K;H[c|0]=g>>>8;e=c+1|0;if(!f)break J;J[f>>2]=d;if(e>>>0>=j>>>0)break I;H[c+1|0]=g;J[f+4>>2]=d;e=c+2|0;f=f+8|0;break E}I[i+2>>1]=232;if(c>>>0>=j>>>0)break G;d=(h-J[a+8>>2]>>1)-1|0}H[c|0]=g;e=c+1|0;if(f)break F;f=0;break E}if(e>>>0>=j>>>0)break I;H[c+1|0]=g;e=c+2|0;f=0;break E}c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g;J[b>>2]=15;break c}if(!(g&65280))break G;e=J[a+4>>2];d=H[e+63|0];H[e+63|0]=d+1;H[(d+ -e|0)+76|0]=g>>>8}e=J[a+4>>2];d=H[e+63|0];H[e+63|0]=d+1;H[(d+e|0)+76|0]=g;J[b>>2]=15;e=c;break c}J[f>>2]=d;f=f+4|0}if(J[b>>2]<=0)break m;break c}f=10;if((d&-2048)!=55296)break d;f=12;if(d&1024)break d;break e}H[c+1|0]=m>>>8;e=c+2|0;c=0}L:{M:{if(e>>>0>>0){H[e|0]=g;if(c)break M;f=0;break L}c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g;J[b>>2]=15;break c}J[c>>2]=l;f=c+4|0}e=d+2|0;if(J[b>>2]>0)break c}if(h>>>0>>0)continue f;break c}d=h;if(n>>>0>d>>>0)continue;break}break}break c}f=0;if(h>>> -0>=n>>>0)break d;f=L[h>>1];e=(f&64512)==56320;d=e?(f+(d<<10)|0)-56613888|0:d;h=(e<<1)+h|0;f=e?10:12}e=c;J[b>>2]=f;J[J[a+4>>2]+56>>2]=d}J[a+16>>2]=e;J[a+8>>2]=h}function aU(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-48|0;bc=c;J[a>>2]=0;d=J[682146];J[a+4>>2]=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{if(b-1>>>0>6)break p;q:{r:switch(b-6|0){case 1:J[695492]=0;d=aa(4989,c+20|0,2387714)|0;b=J[695492];J[695492]=0;if((b|0)==1)break o;J[695492]=0;b=c+28|0;ca(5048,b|0,2379145,d|0);e=J[695492];J[695492]= -0;s:{if((e|0)!=1){J[695492]=0;ca(5121,c+36|0,b|0,2380757);b=J[695492];J[695492]=0;if((b|0)==1)break s;b=J[c+36>>2];t:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break t;b=Z()|0;break d}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break q;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break q;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b| -0)!=1)break q}break a}b=Z()|0;vc(c+12|0);break d}b=Z()|0;sc(d);break b}b=Z()|0;break c;case 0:J[695492]=0;J[c+16>>2]=d;J[c+12>>2]=0;b=c+12|0;aa(5145,b|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,b|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,b|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n; -J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;aa(5145,c+12|0,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;d=c+20|0;ca(5121,d|0,b|0,2379145);b=J[695492];J[695492]=0;u:{v:{if((b|0)!=1){J[695492]=0;b=c+28|0;ca(5121,b|0,d|0,2387363);d=J[695492];J[695492]=0;if((d|0)==1)break v;J[695492]=0;ca(5121,c+36|0,b|0,2380757);b=J[695492];J[695492]=0;if((b|0)==1)break u;b=J[c+36>>2];w:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0; -ca(d|0,c+44|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break w;b=Z()|0;break h}J[c+44>>2]=0}J[695492]=0;aa(4993,a|0,c+44|0)|0;b=J[695492];J[695492]=0;x:{if((b|0)!=1){b=J[c+44>>2];J[c+44>>2]=0;if(!b)break x;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break x;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break x}break a}b=Z()|0;vc(c+44|0);break h}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(c+36|0);sc(c+28|0);sc(c+20|0);sc(c+12|0);break p}b= -Z()|0;break e}b=Z()|0;break f}b=Z()|0;break g;default:break r}J[c+16>>2]=d;J[c+12>>2]=0;e=b<<1|1;d=0;while(1){J[695492]=0;f=c+12|0;aa(5145,f|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break m;g=(d|0)==(e|0);d=d+1|0;if(!g)continue;break}J[695492]=0;d=c+20|0;ca(5121,d|0,f|0,2379145);e=J[695492];J[695492]=0;y:{z:{if((e|0)!=1){J[695492]=0;e=c+28|0;ca(5121,e|0,d|0,J[(b<<2)+2407040>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break z;J[695492]=0;ca(5121,c+36|0,e|0,2381391);b=J[695492];J[695492]=0;if((b|0)== -1)break y;b=J[c+36>>2];A:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+44|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break A;b=Z()|0;break l}J[c+44>>2]=0}J[695492]=0;aa(4993,a|0,c+44|0)|0;b=J[695492];J[695492]=0;B:{if((b|0)!=1){b=J[c+44>>2];J[c+44>>2]=0;if(!b)break B;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break B;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break B}break a}b=Z()|0;vc(c+44|0);break l}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>> -2];sc(c+36|0);sc(c+28|0);sc(c+20|0);sc(c+12|0);break p}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;break k}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(c+36|0);sc(c+28|0);sc(d)}bc=c+48|0;return}b=Z()|0;break b}b=Z()|0;break e}b=Z()|0;break i}sc(c+36|0)}sc(c+28|0)}sc(c+20|0)}sc(c+12|0);break b}sc(c+36|0)}sc(c+28|0)}sc(c+20|0)}sc(c+12|0);break b}sc(c+36|0)}sc(c+28|0);sc(d)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function Pd(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;a:{if(K[a+ -96|0])break a;c=J[a+12>>2];b:{if(!(J[a+56>>2]|J[a+60>>2]))break b;if(c&4095)b=a+20|0;else{b=J[a>>2];if(b>>>0>1023)break b;c=J[a+8>>2];if(c>>>0>=b>>>0){d=J[a+4>>2];c:{if(d>>>0>b>>>0){e=J[a+16>>2];break c}h=d+256|0;e=rc(h>>>0>1073741823?-1:h<<2);i=J[a+16>>2];if(i){tc(e,i,d<<2);qc(i);h=J[a+4>>2]+256|0;c=J[a+8>>2];b=J[a>>2]}J[a+4>>2]=h;J[a+16>>2]=e}d=rc(65536);J[a>>2]=b+1;J[(b<<2)+e>>2]=d}J[a+8>>2]=c+1;b=J[a+16>>2]+(c<<2)|0}b=J[b>>2];J[a+20>>2]=b+16;d=J[a+60>>2];J[b+8>>2]=J[a+56>>2];J[b+12>>2]=d;d=J[a+ -52>>2];J[b>>2]=J[a+48>>2];J[b+4>>2]=d;c=J[a+12>>2]+1|0;J[a+12>>2]=c}J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;if(!c)break a;J[a+24>>2]=0;if(M[a+28>>2]>>0){b=J[a+32>>2];if(b)qc(b);b=c+16|0;J[a+28>>2]=b;if(b)b=rc(b>>>0>1073741823?-1:b<<2);else b=0;J[a+32>>2]=b}J[a+24>>2]=c;J[a+36>>2]=0;c=J[a+44>>2];b=J[a+92>>2]-J[a+84>>2]|0;d=b+1|0;if(d>>>0>M[a+40>>2]){if(c)qc(c);b=b+17|0;J[a+40>>2]=b;if(b)c=rc(b>>>0>536870911?-1:b<<3);else c=0;J[a+44>>2]=c}J[a+36>>2]=d;wc(c,0,d<<3);j= -J[a+12>>2];i=j>>>12|0;l=J[a+16>>2];f=l;if(j>>>0>=4096){d=J[a+44>>2];h=J[a+84>>2];e=i;while(1){e=e-1|0;c=J[f>>2];b=4096;while(1){g=d+(J[c+4>>2]-h<<3)|0;J[g>>2]=J[g>>2]+1;g=d+(J[c+20>>2]-h<<3)|0;J[g>>2]=J[g>>2]+1;g=d+(J[c+36>>2]-h<<3)|0;J[g>>2]=J[g>>2]+1;g=d+(J[c+52>>2]-h<<3)|0;J[g>>2]=J[g>>2]+1;c=c- -64|0;b=b-4|0;if(b)continue;break}f=f+4|0;if(e)continue;break}}d=j&4095;d:{if(!d)break d;e=J[a+44>>2];g=J[a+84>>2];c=J[f>>2];f=j&3;e:{if(!f){b=d;break e}h=0;b=d;while(1){k=e+(J[c+4>>2]-g<<3)|0;J[k>>2]= -J[k>>2]+1;c=c+16|0;b=b-1|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}if(d>>>0<=3)break d;while(1){f=e+(J[c+4>>2]-g<<3)|0;J[f>>2]=J[f>>2]+1;f=e+(J[c+20>>2]-g<<3)|0;J[f>>2]=J[f>>2]+1;f=e+(J[c+36>>2]-g<<3)|0;J[f>>2]=J[f>>2]+1;f=e+(J[c+52>>2]-g<<3)|0;J[f>>2]=J[f>>2]+1;c=c- -64|0;b=b-4|0;if(b)continue;break}}f=J[a+36>>2];f:{if(!f)break f;g=J[a+44>>2];h=0;c=0;b=0;if(f>>>0>=4){n=f&-4;e=0;while(1){k=c<<3;m=k+g|0;o=J[m>>2];J[m>>2]=b;m=g+(k|8)|0;p=J[m>>2];b=b+o|0;J[m>>2]=b;m=g+(k|16)|0;o=J[m>>2];b=b+p|0;J[m>> -2]=b;k=g+(k|24)|0;m=J[k>>2];b=b+o|0;J[k>>2]=b;b=b+m|0;c=c+4|0;e=e+4|0;if((n|0)!=(e|0))continue;break}}e=f&3;if(!e)break f;while(1){k=g+(c<<3)|0;n=J[k>>2];J[k>>2]=b;c=c+1|0;b=b+n|0;h=h+1|0;if((e|0)!=(h|0))continue;break}}if(j>>>0>=4096){b=J[a+84>>2];while(1){i=i-1|0;c=J[l>>2];e=4096;while(1){h=J[a+44>>2]+(J[c+4>>2]-b<<3)|0;g=J[h+4>>2];J[(J[a+32>>2]+(J[h>>2]<<2)|0)+(g<<2)>>2]=c;J[h+4>>2]=g+1;h=J[a+44>>2]+(J[c+20>>2]-b<<3)|0;g=J[h+4>>2];J[(J[a+32>>2]+(J[h>>2]<<2)|0)+(g<<2)>>2]=c+16;J[h+4>>2]=g+1;c=c+ -32|0;e=e-2|0;if(e)continue;break}l=l+4|0;if(i)continue;break}}g:{if(!d)break g;i=J[a+84>>2];c=J[l>>2];if(j&1){b=J[a+44>>2]+(J[c+4>>2]-i<<3)|0;e=J[b+4>>2];J[(J[a+32>>2]+(J[b>>2]<<2)|0)+(e<<2)>>2]=c;J[b+4>>2]=e+1;c=c+16|0;b=d-1|0}else b=d;if((d|0)==1)break g;while(1){d=J[a+44>>2]+(J[c+4>>2]-i<<3)|0;e=J[d+4>>2];J[(J[a+32>>2]+(J[d>>2]<<2)|0)+(e<<2)>>2]=c;J[d+4>>2]=e+1;d=J[a+44>>2]+(J[c+20>>2]-i<<3)|0;e=J[d+4>>2];J[(J[a+32>>2]+(J[d>>2]<<2)|0)+(e<<2)>>2]=c+16;J[d+4>>2]=e+1;c=c+32|0;b=b-2|0;if(b)continue; -break}}if(f){c=0;while(1){b=J[a+44>>2]+(c<<3)|0;d=J[b+4>>2];if(d){k=bc-320|0;bc=k;f=J[a+32>>2]+(J[b>>2]<<2)|0;h=f+(d<<2)|0;g=k;while(1){h:{b=h-f>>2;if((b|0)<=9){b=f;e=b+4|0;if(h>>>0>e>>>0)while(1){d=b;b=e;j=J[d+4>>2];l=J[j>>2];e=J[d>>2];i:{if((l|0)>=J[e>>2])break i;i=d+4|0;while(1){J[i>>2]=e;J[d>>2]=j;if((d|0)==(f|0))break i;i=d;d=d-4|0;e=J[d>>2];if((l|0)>2])continue;break}}e=b+4|0;if(h>>>0>e>>>0)continue;break}if(g>>>0>k>>>0){h=J[g-4>>2];g=g-8|0;f=J[g>>2];continue}bc=k+320|0;break h}d=J[f>> -2];b=(b<<1&-4)+f|0;J[f>>2]=J[b>>2];J[b>>2]=d;d=f+4|0;j=J[f+4>>2];l=J[j>>2];e=h-4|0;i=J[e>>2];j:{if((l|0)<=J[i>>2]){b=j;break j}J[d>>2]=i;J[e>>2]=j;b=J[d>>2];l=J[b>>2];i=j}j=J[f>>2];n=J[j>>2];k:{if((n|0)>=(l|0)){l=n;b=j;break k}J[f+4>>2]=j;J[f>>2]=b;i=J[e>>2]}if(J[i>>2]<(l|0)){J[f>>2]=i;J[e>>2]=b}while(1){l=J[f>>2];i=J[l>>2];while(1){j=J[d+4>>2];b=d+4|0;d=b;if((i|0)>J[j>>2])continue;break}while(1){e=e-4|0;d=J[e>>2];if((i|0)>2])continue;break}if(b>>>0<=e>>>0){J[b>>2]=d;J[e>>2]=j;d=b;continue}break}J[f>> -2]=d;J[e>>2]=l;l:{if((e-f|0)>(h-b|0)){d=f;i=e;f=b;break l}d=b;i=h;h=e}J[g+4>>2]=i;J[g>>2]=d;g=g+8|0;continue}break}f=J[a+36>>2]}c=c+1|0;if(f>>>0>c>>>0)continue;break}}H[a+96|0]=1}}function wQa(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;a=wc(a,0,256);d=J[b>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+12>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+8>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a>>2]=(g+e<<2)-3072;J[a+16>>2]=P(g- -(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+20>>2]=e+d;J[a+4>>2]=d+(h+f<<2);d=J[b+4>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+44>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+40>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+32>>2]=(g+e<<2)-3072;J[a+48>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+52>>2]=e+d;J[a+36>>2]=d+(h+f<<2);d=J[b+8>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+ -2|0];l=K[d+3|0];d=j-l|0;J[a+76>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+72>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+64>>2]=(g+e<<2)-3072;J[a+80>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+84>>2]=e+d;J[a+68>>2]=d+(h+f<<2);d=J[b+12>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+108>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+104>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+96>>2]=(g+e<<2)-3072;J[a+112>>2]=P(g-(e<<1)|0,5793)+ -1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+116>>2]=e+d;J[a+100>>2]=d+(h+f<<2);d=J[b+16>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+140>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+136>>2]=P(g-e|0,10033)+1024>>11;e=g+e|0;i=i+k|0;g=(e+i<<2)-3072|0;J[a+128>>2]=g;J[a+144>>2]=P(e-(i<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+148>>2]=e+d;J[a+132>>2]=d+(h+f<<2);b=J[b+20>>2]+c|0;f=K[b|0];h=K[b+5|0];c=f-h|0;e=K[b+1|0];i=K[b+4|0];d=e-i|0;k= -K[b+2|0];j=K[b+3|0];b=k-j|0;J[a+172>>2]=c-(d+b|0)<<2;f=h+f|0;h=j+k|0;J[a+168>>2]=P(f-h|0,10033)+1024>>11;f=h+f|0;h=e+i|0;J[a+176>>2]=P(f-(h<<1)|0,5793)+1024>>11;e=P(b+c|0,2998)+1024>>11;J[a+180>>2]=e+(b-d<<2);f=(h+f<<2)-3072|0;h=J[a>>2];b=f+h|0;i=J[a+96>>2];k=J[a+64>>2];j=i+k|0;J[a+64>>2]=P(b-j|0,17837)+16384>>15;b=b+j|0;j=J[a+32>>2];l=j+g|0;J[a+128>>2]=P(b-(l<<1)|0,10298)+16384>>15;J[a>>2]=P(b+l|0,14564)+16384>>15;b=k-i|0;f=h-f|0;h=P(b+f|0,5331)+16384|0;g=j-g|0;J[a+160>>2]=h+P(b-g|0,14564)>>15;J[a+ -96>>2]=P(f-(b+g|0)|0,14564)+16384>>15;J[a+32>>2]=h+P(f+g|0,14564)>>15;b=J[a+132>>2];f=J[a+36>>2];d=e+(c+d<<2)|0;h=J[a+4>>2];c=d+h|0;g=J[a+100>>2];e=J[a+68>>2];i=g+e|0;J[a+68>>2]=P(c-i|0,17837)+16384>>15;c=c+i|0;i=b+f|0;J[a+132>>2]=P(c-(i<<1)|0,10298)+16384>>15;J[a+4>>2]=P(c+i|0,14564)+16384>>15;c=e-g|0;d=h-d|0;h=P(c+d|0,5331)+16384|0;b=f-b|0;J[a+164>>2]=h+P(c-b|0,14564)>>15;J[a+100>>2]=P(d-(b+c|0)|0,14564)+16384>>15;J[a+36>>2]=h+P(b+d|0,14564)>>15;b=J[a+136>>2];c=J[a+40>>2];f=J[a+168>>2];h=J[a+8>> -2];d=f+h|0;g=J[a+104>>2];e=J[a+72>>2];i=g+e|0;J[a+72>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+136>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+8>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+168>>2]=h+P(d-b|0,14564)>>15;J[a+104>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+40>>2]=h+P(b+f|0,14564)>>15;b=J[a+140>>2];c=J[a+44>>2];f=J[a+172>>2];h=J[a+12>>2];d=f+h|0;g=J[a+108>>2];e=J[a+76>>2];i=g+e|0;J[a+76>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+140>>2]=P(d-(i<<1)| -0,10298)+16384>>15;J[a+12>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+172>>2]=h+P(d-b|0,14564)>>15;J[a+108>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+44>>2]=h+P(b+f|0,14564)>>15;b=J[a+144>>2];c=J[a+48>>2];f=J[a+176>>2];h=J[a+16>>2];d=f+h|0;g=J[a+112>>2];e=J[a+80>>2];i=g+e|0;J[a+80>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+144>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+16>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+176>>2]=h+P(d- -b|0,14564)>>15;J[a+112>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+48>>2]=h+P(b+f|0,14564)>>15;b=J[a+148>>2];c=J[a+52>>2];f=J[a+180>>2];h=J[a+20>>2];d=f+h|0;g=J[a+116>>2];e=J[a+84>>2];i=g+e|0;J[a+84>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+148>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+20>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+180>>2]=h+P(d-b|0,14564)>>15;J[a+116>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+52>>2]=h+P(b+f|0,14564)>>15}function Hpa(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;e=bc+-64|0;bc=e;J[e+36>>2]=0;J[e+40>>2]=J[682146];a:{b:{c:{d:{e:{f:{while(1){d=a;a=d+1|0;g=H[d|0];f=g;if((f|0)==32|f-9>>>0<5)continue;f=d;while(1){g:{a=g&255;h=a-47|0;if((1<>>0<=15:0)|!a)break g;a=g<<24>>24;if((a|0)==32|a-9>>>0<5)break g;g=K[f+1|0];f=f+1|0;continue}break}J[695492]=0;a=ga(5169,e+28|0,d|0,f-d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;d=J[a>>2];h:{if(d){g=J[J[d>>2]+28>>2];J[695492]=0;ca(g|0,e+20|0,d|0,1);d=J[695492];J[695492]=0; -if((d|0)!=1)break h;g=Z()|0;sc(a);break c}J[e+20>>2]=0}J[695492]=0;aa(4993,e+36|0,e+20|0)|0;d=J[695492];J[695492]=0;i:{if((d|0)!=1){d=J[e+20>>2];J[e+20>>2]=0;if(!d)break i;J[695492]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break i;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break i}break a}g=Z()|0;vc(e+20|0);sc(a);break c}d=J[e+36>>2];J[e+40>>2]=J[(d?d+12|0:2728584)>>2];if(!d){sc(a);break b}d=J[d+8>>2];sc(a);if(!d)break b;if(c){J[695492]=0;da(5138,e+ -20|0,e+36|0);a=J[695492];J[695492]=0;j:{if((a|0)!=1){a=J[e+20>>2];k:{if(a){d=J[J[a>>2]+28>>2];J[695492]=0;ca(d|0,e+12|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break k;g=Z()|0;break d}J[e+12>>2]=0}J[695492]=0;aa(4993,e+36|0,e+12|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[e+12>>2];J[e+12>>2]=0;if(!a)break j;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)!=1){if(d)break j;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break j}break a}g=Z()|0;vc(e+12|0);break d}g= -Z()|0;break c}a=J[e+36>>2];J[e+40>>2]=J[(a?a+12|0:2728584)>>2];sc(e+20|0)}J[e+12>>2]=0;J[e+16>>2]=J[682146];l:{if(K[f|0]!=61){a=f;break l}d=f+1|0;a=d;m:{n:{o:{g=K[f+1|0];switch(g-34|0){case 0:case 5:break o;default:break n}}d=f+2|0;a=d;f=K[f+2|0];p:{if((g|0)==(f|0))break p;while(1){if(!f|(f|0)==62)break p;f=K[a+1|0];a=a+1|0;if((f|0)!=(g|0))continue;break}}J[695492]=0;f=ga(5169,e+52|0,d|0,a-d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[f>>2];q:{if(d){h=J[J[d>>2]+28>>2];J[695492]=0;ca(h|0,e+60|0, -d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break q;g=Z()|0;sc(f);break f}J[e+60>>2]=0}J[695492]=0;aa(4993,e+12|0,e+60|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[e+60>>2];J[e+60>>2]=0;if(!d)break m;J[695492]=0;h=J[d+4>>2]-1|0;J[d+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break m;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break m}break a}g=Z()|0;vc(e+60|0);sc(f);break f}g=Z()|0;break f}while(1){r:{s:{t:{f=g&255;switch(f-47|0){case 0:case 15:break r;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break s; -default:break t}}if(!f)break r}f=g<<24>>24;if((f|0)==32|f-9>>>0<5)break r;g=K[a+1|0];a=a+1|0;continue}break}J[695492]=0;f=ga(5169,e+44|0,d|0,a-d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[f>>2];u:{if(d){g=J[J[d>>2]+28>>2];J[695492]=0;ca(g|0,e+60|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break u;g=Z()|0;sc(f);break f}J[e+60>>2]=0}J[695492]=0;aa(4993,e+12|0,e+60|0)|0;d=J[695492];J[695492]=0;v:{if((d|0)!=1){d=J[e+60>>2];J[e+60>>2]=0;if(!d)break v;J[695492]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[695492]; -J[695492]=0;if((h|0)!=1){if(g)break v;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break v}break a}g=Z()|0;vc(e+60|0);sc(f);break f}d=J[e+12>>2];J[e+16>>2]=J[(d?d+12|0:2728584)>>2];sc(f);break l}g=Z()|0;break f}d=J[e+12>>2];J[e+16>>2]=J[(d?d+12|0:2728584)>>2];sc(f);a=(K[a|0]==(g|0))+a|0}J[695492]=0;da(5418,e+20|0,e+12|0);f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;d=aa(5168,b|0,e+36|0)|0;f=J[695492];J[695492]=0;w:{x:{y:{z:{if((f|0)!=1){f=J[e+20>>2];if(!f)break z;g=J[J[f>>2]+28>> -2];J[695492]=0;ca(g|0,e+60|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break y}g=Z()|0;break x}J[e+60>>2]=0}J[695492]=0;aa(4993,d+24|0,e+60|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){f=J[e+60>>2];J[e+60>>2]=0;if(!f)break w;J[695492]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break w;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break w}break a}g=Z()|0;vc(e+60|0)}sc(e+20|0);break f}f=J[d+24>>2];J[d+28>>2]=J[(f?f+12|0:2728584)>>2];sc(e+20|0);sc(e+12|0);continue}break}g= -Z()|0}sc(e+12|0);break c}g=Z()|0;break c}sc(e+20|0)}sc(e+36|0);ba(g|0);B()}sc(e+36|0);bc=e- -64|0;return}ea(0)|0;yc();B()}function mdb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=(e|0)>0?e:0;a:{b:{c:{d:{e:{f:{g:switch(b|0){case 0:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+437|0];break b;case 1:if(c>>>0>3)break e;b=4;if(!d|f>>>0<4)break c;e=0;h:{i:{j:switch(c|0){case 0:a=a+440|0;break i;case 1:a=a+444|0;break i;case 2:a=a+448|0;break i;case 3:break j;default:break h}a=a+452|0}e=J[a>>2]}J[d>> -2]=e;break c;case 2:if(c>>>0>3)break e;b=4;if(!d|f>>>0<4)break c;e=0;k:{l:{m:switch(c|0){case 0:a=a+464|0;break l;case 1:a=a+468|0;break l;case 2:a=a+472|0;break l;case 3:break m;default:break k}a=a+476|0}e=J[a>>2]}J[d>>2]=e;break c;case 3:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+436|0];break b;case 4:a=J[a+364>>2];if(!a)break e;b=Qc(a)+1|0;if(!d|f>>>0>>0)break f;tc(d,a,b);break f;case 5:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+168>>2];break c;case 6:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+420>>2];break c; -case 7:if(M[a+420>>2]<=c>>>0)break e;a=J[J[a+424>>2]+(c<<2)>>2];c=Qc(a);b=c+1|0;if(!d|f>>>0>>0)break f;g=tc(d,a,b)+c|0,h=0,H[g|0]=h;break f;case 8:if(M[a+420>>2]<=c>>>0)break e;e=c<<2;c=J[e+J[a+432>>2]>>2];b=c+1|0;if(!d|f>>>0>>0)break f;g=tc(d,J[e+J[a+428>>2]>>2],c)+c|0,h=0,H[g|0]=h;break f;case 9:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+368>>2];break c;case 10:if(J[a+368>>2]!=1|M[a+372>>2]<=c>>>0)break e;c=J[J[a+388>>2]+(c<<2)>>2];a=Qc(c);b=a+1|0;if(!d|f>>>0>>0)break f;g=tc(d,c,a)+a|0,h=0, -H[g|0]=h;break f;case 11:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+404>>2];break c;case 12:b=J[a+416>>2];n:{if(b){b=zi(c,b);if(!b)break e;c=J[b>>2];break n}if(M[a+404>>2]<=c>>>0)break e}e=J[a+408>>2];if(!e)break e;c=c<<2;a=J[c+J[a+412>>2]>>2];b=a+1|0;if(!d|f>>>0>>0)break f;g=tc(d,J[c+e>>2],a)+a|0,h=0,H[g|0]=h;break f;case 13:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+288>>1];break a;case 14:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+290>>1];break a;case 15:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+176|0];break b; +J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];e=J[a+5820>>2];b=(g&65535)>>>16-e|0;e=e-12|0;break p}e=b+4|0;b=g<>2]=e;g=0;h=a+5817|0;while(1){j=L[((K[g+769408|0]<<2)+a|0)+2686>>1];b=j<>1]=b;q:{if((e|0)>=14){e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=b;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[h|0];e=J[a+5820>>2];b=j>>>16-e|0;I[a+5816>>1]=b;e=e-13|0;break q}e=e+3|0}J[a+5820>>2]=e;j=(g|0)!=(f|0);g=g+1|0;if(j)continue;break}b=a+148|0;A2(a,b, +i);e=a+2440|0;A2(a,e,c);B2(a,b,e)}C2(a);if(d){b=J[a+5820>>2];r:{if((b|0)>=9){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];break r}if((b|0)<=0)break r;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0]}J[a+5820>>2]=0;I[a+5816>>1]=0}}function Tba(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;l=fc-16|0;fc=l;d=Dc(120);a:{if(!d)break a;e=sP();J[d+112>>2]=e;if(!e){pn(d);break a}h=200470;e=Ac(d,0,112);b:{c:{if(cf(a, +e))break c;if(cf(a,e+4|0))break c;if(cf(a,e+8|0))break c;if(cf(a,e+12|0))break c;if(cf(a,e+16|0))break c;if(cf(a,e+20|0))break c;d=-1;b=e+24|0;d:{if(ak(a,b))break d;if(ak(a,b+4|0))break d;if(ak(a,b+8|0))break d;if(ak(a,b+12|0))break d;if(ak(a,b+16|0))break d;d=ak(a,b+20|0)?-1:0}if(d)break c;if(cf(a,e+48|0))break c;if(cf(a,e+52|0))break c;if(cf(a,e+56|0))break c;if(cf(a,e+60|0))break c;if(cf(a,e- -64|0))break c;b=-1;c=a;a=J[c+8>>2];e:{if(a&7)break e;f:{b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f; +b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;g:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break g}d=td(c,1);if((d|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;f=J[c+28>>2];J[c+28>>2]=f-1;h:{if((f|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;f=K[b|0];break h}f=td(c,1);if((f|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;g=J[c+28>>2];J[c+28>>2]=g-1;i:{if((g| +0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;k=K[b|0];break i}k=td(c,1);if((k|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;g=J[c+28>>2];J[c+28>>2]=g-1;j:{if((g|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;m=K[b|0];break j}m=td(c,1);if((m|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;g=J[c+28>>2];J[c+28>>2]=g-1;k:{if((g|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>> +2];J[c+24>>2]=b+1;g=K[b|0];break k}g=td(c,1);if((g|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;i=J[c+28>>2];J[c+28>>2]=i-1;l:{if((i|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;n=K[b|0];break l}n=td(c,1);if((n|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;i=J[c+28>>2];J[c+28>>2]=i-1;m:{if((i|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;i=K[b|0];break m}i=td(c, +1);if((i|0)==-1)break e;a=J[c+8>>2]}b=-1;if(a&7)break e;b=J[c+64>>2];if((b|0)>=0&(b|0)<=J[c+60>>2])break f;b=-1;a=J[c+28>>2];J[c+28>>2]=a-1;n:{if((a|0)>0){J[c+60>>2]=J[c+60>>2]+1;a=J[c+24>>2];J[c+24>>2]=a+1;a=K[a|0];break n}a=td(c,1);if((a|0)==-1)break e}b=a;q=b>>31;a=d<<16;d=d>>31<<16|d>>>16;o=a;a=f>>>24|0;f=o|f<<8;a=a|d;d=f|k;f=d<<16;a=a<<16|d>>>16|m>>>24|g>>31;d=m<<8|f|g;f=d<<16;d=a<<16|d>>>16;o=b;a=n;b=a;a=b>>31<<8|b>>>24;b=b<<8|f|i;J[e+72>>2]=o|b<<8;J[e+76>>2]=(a|d|i>>31)<<8|b>>>24|q;b=0;break e}J[c+ +8>>2]=a|4;b=-1}if(b)break c;if(cf(c,e+80|0))break c;a=-1;b=e+84|0;o:{if(cf(c,b))break o;if(cf(c,b+4|0))break o;a=cf(c,b+8|0)?-1:0}if(a)break c;if(cf(c,e+96|0))break c;if((qv(c,44)|0)!=44)break c;a=J[e+108>>2];if(a){uc(a);J[e+108>>2]=0}p:{if(cf(c,e+104|0))break p;b=Dc(P(J[e+104>>2],20));J[e+108>>2]=b;if(!b){rd(201202,0);break b}a=J[e+104>>2];if((a|0)>0){while(1){if(cf(c,b))break p;if(cf(c,b+4|0))break p;if(cf(c,b+8|0))break p;b=b+20|0;a=J[e+104>>2];j=j+1|0;if((a|0)>(j|0))continue;break}b=J[e+108>> +2]}vm(b,a,20,759);q:{r:{s:{t:{k=J[e+104>>2];if((k|0)>0){j=P(k,12)+132|0;b=0;a=0;h=0;while(1){g=J[e+108>>2]+P(p,20)|0;d=J[g+4>>2];u:{if((h|0)==(d|0)){if(!b){b=0;break u}J[b>>2]=J[b>>2]+1;if(Sba(e,J[g>>2],b))break s;a=J[b>>2];J[b>>2]=a-1;if((a|0)>1){a=b;break u}a=J[J[b+8>>2]>>2];if(a)kc[a|0](b);uc(b);a=b;break u}b=d-j|0;v:{if((b|0)>0){if((qv(c,b)|0)==(b|0))break v;break r}d=j;if((b|0)<0)break t}if(cf(c,l+12|0))break r;if((qv(c,4)|0)!=4)break r;w:{x:{j=J[660572];if(j){f=2642288;i=J[l+12>>2];b=j;h=2642288; +while(1){if((b|0)==(i|0))break x;b=J[h+28>>2];h=h+28|0;if(b)continue;break}}j=d+8|0;b=0;break w}while(1){if((i|0)!=(j|0)){j=J[f+28>>2];f=f+28|0;if(j)continue;break b}break}b=Dc(108);if(!b)break b;J[b+4>>2]=i;J[b>>2]=1;J[b+8>>2]=f+4;Ac(b+12|0,0,96);a=J[g+8>>2];if(kc[J[f+12>>2]](b,c,a-8|0)|0)break s;if(Sba(e,J[g>>2],b))break s;h=J[b>>2];J[b>>2]=h-1;j=a+d|0;a=0;if((h|0)>1)break w;h=J[J[b+8>>2]>>2];if(h)kc[h|0](b);uc(b)}h=d}p=p+1|0;if((k|0)!=(p|0))continue;break}}b=e;break a}ra();B()}a=b;pn(e);break q}pn(e); +if(a)break q;b=0;break a}d=J[a>>2];J[a>>2]=d-1;b=0;if((d|0)>1)break a;d=J[J[a+8>>2]>>2];if(d)kc[d|0](a);uc(a);break a}h=201202;a=J[e+108>>2];if(!a)break c;uc(a);J[e+108>>2]=0}rd(h,0)}pn(e);b=0}fc=l+16|0;return b}function HZ(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;J[a+32>>2]=J[a+32>>2]+1;c=tB(a);f=vc(36);J[f+4>>2]=0;J[f+8>>2]=0;J[f+20>>2]=c;J[f>>2]=2348584;J[f+12>>2]=0;J[f+16>>2]=0;J[699344]=0;c=_(4,16)|0;e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((e|0)!=1){J[699344]=0;e=aa(3539,c|0,0)|0;d= +J[699344];J[699344]=0;if((d|0)==1){b=Z()|0;uc(c);J[f>>2]=2347680;while(1){a=J[f+12>>2];if(!a)break e;J[f+12>>2]=J[a+4>>2];kc[J[J[a>>2]+4>>2]](a);continue}}J[f+24>>2]=e;J[f+28>>2]=0;J[f+32>>2]=0;c=J[a+32>>2];e=J[a+36>>2];f:{if(c>>>0>=e>>>0)break f;while(1){d=K[c|0]-9|0;if(d>>>0>23|!(1<>2]=c;if((c|0)!=(e|0))continue;break}}c=GZ(a);if(c){e=f+28|0;while(1){Jg(J[f+24>>2],J[c>>2],c);d=J[f+32>>2];J[(d?d+12|0:e)>>2]=c;J[f+32>>2]=c;J[c+12>>2]=0;J[c+8>>2]=f;c=J[a+32>>2];d= +J[a+36>>2];g:{if(c>>>0>=d>>>0)break g;while(1){g=K[c|0]-9|0;if(g>>>0>23|!(1<>2]=c;if((c|0)!=(d|0))continue;break}}c=GZ(a);if(c)continue;break}}c=J[a+32>>2];e=J[a+36>>2]-c|0;if((e|0)<2)break d;if(ud(c,789312,2))break c;J[a+32>>2]=c+2;break b}b=Z()|0;J[f>>2]=2347680}uc(f);ba(b|0);B()}if((e|0)!=1)break b}if(K[c|0]!=62)break b;J[a+32>>2]=c+1;e=a;a=vc(8);J[699344]=0;c=aa(3349,a|0,795057)|0;d=J[699344];J[699344]=0;h:{i:{j:{if((d|0)!=1){j=Qh(c,J[f+20>>2]);a=J[e+32>>2]; +c=J[e+36>>2];if(a>>>0>=c>>>0)break j;while(1){k:{d=c-a|0;g=J[j+4>>2];h=Yc(g);if((d|0)<(h|0))break k;if(ud(a,g,h))break k;a=J[j>>2]+a|0;J[e+32>>2]=a;l:{if(a>>>0>=c>>>0)break l;while(1){d=K[a|0]-9|0;if(d>>>0>23|!(1<>2]=a;if((a|0)!=(c|0))continue;break}a=c}if(K[a|0]!=62|(c-a|0)<=0)break j;J[e+32>>2]=a+1;break j}m:{n:{o:{if((d|0)>=2){if(!ud(a,795726,2)){uB(e,f);break m}p:{if(d>>>0>=9){if(ud(a,796277,9))break p;a=J[e+32>>2]+9|0;J[e+32>>2]=a;q:{g=J[e+36>>2];d=g-3|0;r:{if(d>>> +0>a>>>0){c=a;while(1){if(!ud(c,798243,3)){d=vc(28);J[699344]=0;g=_(4,8)|0;h=J[699344];J[699344]=0;s:{if((h|0)!=1){J[699344]=0;a=ga(3348,g|0,a|0,c-a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break s;J[d+4>>2]=0;J[d+8>>2]=0;H[d+24|0]=0;J[d+20>>2]=a;J[d>>2]=2348648;J[d+12>>2]=0;J[d+16>>2]=0;kc[J[J[f>>2]+48>>2]](f,d);J[e+32>>2]=J[e+32>>2]+3;break q}a=Z()|0;break r}a=Z()|0;uc(g);break r}c=c+1|0;J[e+32>>2]=c;if((c|0)!=(d|0))continue;break}}J[e+32>>2]=g;d=vc(28);J[699344]=0;c=_(4,8)|0;h=J[699344];J[699344]= +0;t:{if((h|0)!=1){J[699344]=0;a=ga(3348,c|0,a|0,g-a|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break t;J[d+4>>2]=0;J[d+8>>2]=0;H[d+24|0]=0;J[d+20>>2]=a;J[d>>2]=2348648;J[d+12>>2]=0;J[d+16>>2]=0;kc[J[J[f>>2]+48>>2]](f,d);break q}a=Z()|0;break r}a=Z()|0;uc(c)}uc(d);ba(a|0);B()}break m}if(d>>>0<4)break o}if(ud(a,797427,4))break o;vB(e,f);break m}if((d|0)!=1)break n}if(K[a|0]!=60)break n;HZ(e,f);break m}a=vc(8);J[699344]=0;i=_(3351,a|0)|0;c=J[699344];J[699344]=0;u:{if((c|0)!=1){c=J[e+32>>2];h=J[e+36>>2]; +v:{if(c>>>0>=h>>>0)break v;while(1){d=K[c|0];w:{if((d|0)!=38){a=c;if((d|0)==60)break v;while(1){x:{a=a+1|0;J[e+32>>2]=a;if(a>>>0>=h>>>0)break x;d=K[a|0];if((d|0)==60)break x;if((d|0)!=38)continue}break}kf(i,c,a-c|0);break w}d=c+1|0;J[e+32>>2]=d;a=d;if(!(h>>>0<=a>>>0|K[a|0]!=35)){a=c+2|0;J[e+32>>2]=a;d=0;y:{if(a>>>0>=h>>>0)break y;if(K[a|0]==120){a=c+3|0;J[e+32>>2]=a;z:{if(a>>>0>=h>>>0)break z;while(1){A:{c=-48;g=H[a|0];B:{if((g-48&255)>>>0<10)break B;c=-87;if((g-97&255)>>>0<6)break B;c=-55;if((g- +65&255)>>>0>5)break A}a=a+1|0;J[e+32>>2]=a;d=g+((d<<4)+c|0)|0;if((a|0)!=(h|0))continue;break z}break}if((g|0)!=59)break z;J[e+32>>2]=a+1}sB(i,d);break w}while(1){c=K[a|0];if((c-48&255)>>>0<=9){a=a+1|0;J[e+32>>2]=a;d=(c+P(d,10)|0)-48|0;if((a|0)!=(h|0))continue;break y}break}if((c|0)!=59)break y;J[e+32>>2]=a+1}sB(i,d);break w}C:{D:{while(1){g=a;a=a+1|0;J[e+32>>2]=a;if(a>>>0>=h>>>0)break D;k=K[a|0];l=k-38|0;if(l>>>0>22|!(1<>2]=a; +break C}h=a-d|0}E:{F:switch(h-2|0){case 0:if(!ud(d,790663,2)){Kd(i,60);break w}if(ud(d,791437,2))break E;Kd(i,62);break w;case 1:if(ud(d,792295,3))break E;Kd(i,38);break w;case 2:break F;default:break E}if(!ud(d,793024,4)){Kd(i,39);break w}if(ud(d,793814,4))break E;Kd(i,34);break w}kf(i,c,(a-d|0)+1|0)}c=J[e+32>>2];h=J[e+36>>2];if(c>>>0>>0)continue;break}}a=vc(28);J[a+4>>2]=0;J[a+8>>2]=0;H[a+24|0]=1;J[a+20>>2]=i;J[a>>2]=2348648;J[a+12>>2]=0;J[a+16>>2]=0;kc[J[J[f>>2]+48>>2]](f,a);break u}break a}}a= +J[e+32>>2];c=J[e+36>>2];if(a>>>0>>0)continue;break}break i}break a}if(!j)break h}uc(Zc(j))}}kc[J[J[b>>2]+48>>2]](b,f);return}b=Z()|0;uc(a);ba(b|0);B()}function LA(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=fc+-64|0;fc=f;J[c>>2]=1;J[d>>2]=1;J[e>>2]=96;J[699344]=0;g=f+28|0;ca(5400,g|0,a|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)!=1){b=J[J[a>>2]+20>>2];J[699344]=0;ia(b|0,f+24|0,a|0,0,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break m;J[699344]= +0;a=f+20|0;da(5321,a|0,J[f+24>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break l;J[699344]=0;da(5278,f+16|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;J[f+8>>2]=0;J[699344]=0;J[f+12>>2]=J[685894];a=f+8|0;b=ha(5279,J[f+16>>2],a|0,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i;if(!b)break c;J[699344]=0;b=pd(a,2408370,-1);g=J[699344];J[699344]=0;if((g|0)==1)break i;if(!b)break j;J[699344]=0;b=pd(a,2398778,-1);g=J[699344];J[699344]=0;if((g|0)==1)break i;if(!b)break j;J[699344]=0;b=pd(a,2399070, +-1);g=J[699344];J[699344]=0;if((g|0)==1)break i;if(!b)break j;J[699344]=0;a=pd(a,2399275,-1);b=J[699344];J[699344]=0;if((b|0)==1)break i;if(!a)break j;break c}a=ea(2423616)|0;c=gc;break d}a=ea(2423616)|0;c=gc;break e}a=ea(2423616)|0;c=gc;break f}a=ea(2423616)|0;c=gc;break g}b=0;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{while(1){J[699344]=0;a=f+8|0;g=ha(5279,J[f+16>>2],a|0,0,0)|0;h=J[699344];J[699344]=0;y:{z:{A:{B:{if((h|0)!=1){if(!g)break c;J[f+4>>2]=0;J[699344]=0;aa(5145,f+4|0,J[f+16>>2])|0;g=J[699344];J[699344]= +0;if((g|0)==1)break i;J[699344]=0;a=pd(a,2408828,-1);g=J[699344];J[699344]=0;if((g|0)==1)break p;if(a)break z;J[699344]=0;$(5466,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break B;J[699344]=0;da(5467,J[f>>2],J[f+4>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break A;a=J[f>>2];g=J[a+8>>2];J[c>>2]=(g|0)>0?g:0;g=J[a+12>>2];J[d>>2]=(g|0)>0?g:0;g=J[a+32>>2];h=J[a+20>>2];J[e>>2]=(h|0)>0?h:0;if(g&1){g=J[c>>2];J[c>>2]=J[d>>2];J[d>>2]=g}J[699344]=0;J[f>>2]=0;g=J[a+4>>2]-1|0;J[a+4>>2]=g;h=J[699344];J[699344]=0;if((h| +0)!=1){if(g)break y;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break y}break a}break i}a=ea(2423616)|0;break o}a=ea(2423616)|0;c=gc;zc(f);break n}if(!b){J[699344]=0;a=f+8|0;b=pd(a,2410580,-1);g=J[699344];J[699344]=0;if((g|0)==1)break p;if(b){J[699344]=0;a=pd(a,2410633,-1);b=J[699344];J[699344]=0;if((b|0)==1)break p;b=0;if(a)break y}J[699344]=0;_(5296,J[f+4>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break x;J[699344]=0;_(5296,J[f+4>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break w; +J[699344]=0;_(5296,J[f+4>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break v;J[699344]=0;_(5296,J[f+4>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break u;J[699344]=0;a=_(5296,J[f+4>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=_(5296,J[f+4>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break s;J[699344]=0;g=_(5296,J[f+4>>2])|0;h=J[699344];J[699344]=0;if((h|0)==1)break r;J[699344]=0;h=_(5296,J[f+4>>2])|0;i=J[699344];J[699344]=0;if((i|0)==1)break q;J[c>>2]=b|a<<8;J[d>>2]=h|g<<8;J[e>>2]= +100}b=1}J[699344]=0;$(5468,J[f+16>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break p;a=J[f+4>>2];J[f+4>>2]=0;if(!a)continue;J[699344]=0;g=J[a+4>>2]-1|0;J[a+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)continue;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)continue}break}break a}a=ea(2423616)|0;break o}a=ea(2423616)|0;break o}a=ea(2423616)|0;break o}a=ea(2423616)|0;break o}a=ea(2423616)|0;break o}a=ea(2423616)|0;break o}a=ea(2423616)|0;break o}a=ea(2423616)|0;break o}a=ea(2423616)| +0}c=gc}zc(f+4|0);break h}a=ea(2423616)|0;c=gc}wc(f+8|0);zc(f+16|0)}zc(f+20|0)}zc(f+24|0)}Ed(f+28|0)}if((sa(2423616)|0)==(c|0)){oa(a|0)|0;ta();break b}ba(a|0);B()}wc(f+8|0);a=J[f+16>>2];J[f+16>>2]=0;C:{if(!a)break C;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break C;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break C}break a}a=J[f+20>>2];J[f+20>>2]=0;D:{if(!a)break D;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a; +if(b)break D;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[f+24>>2];J[f+24>>2]=0;E:{if(!a)break E;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break E;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[f+52>>2]=2392964;J[f+28>>2]=2392932;a=J[f+56>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[f+56>>2]=0}J[f+44>>2]=2392964;a=J[f+48>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+ +4>>2]](a);J[f+48>>2]=0}wc(f+36|0)}fc=f- -64|0;return}ea(0)|0;Bc();B()}function e_a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+76>>2];if((c|0)>0){b=J[a+84>>2];while(1){f=dx(a,J[b+16>>2])+f|0;b=b+88|0;d=d+1|0;c=J[a+76>>2];if((d|0)<(c|0))continue;break}}a:{b:{c:{d:{if(!J[a+212>>2]){b=194;if(J[a+264>>2])break a;if(J[a+72>>2]!=8|J[a+376>>2]!=8)break c;e=1;e:{if((c|0)<=0)break e;g=c&1;d=J[a+84>>2];if((c|0)!=1){h=c&-2;c=0;while(1){e=J[d+24>>2]<2&J[d+20>>2]<=1?e:0;e=J[d+112>>2]<2&J[d+108>>2]<=1?e:0;d= +d+176|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!g|J[d+24>>2]<2&J[d+20>>2]<=1)break e;e=0}if(!f|!e)break c;c=J[a>>2];J[c+20>>2]=77;kc[J[c+4>>2]](a,0);if(!J[a+212>>2])break d}b=J[a+264>>2]?202:201;break a}if(!J[a+264>>2])break b;break a}if(J[a+264>>2])break a;b=192;if(e)break a}b=193}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=255;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f:{if(d)break f;if(kc[J[c+12>>2]](a)|0)break f;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;b=J[c+4>>2]- +1|0;J[c+4>>2]=b;g:{if(b)break g;if(kc[J[c+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=J[a+76>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;d=P(d,3)+8|0;H[c|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(kc[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(kc[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(!(J[a+64>>2]<65536&J[a+68>>2]<=65535)){b=J[a>>2];J[b+ +20>>2]=42;J[b+24>>2]=65535;kc[J[J[a>>2]>>2]](a)}d=J[a+72>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(kc[J[b+12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}c=J[a+68>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;k:{if(d)break k;if(kc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(kc[J[b+12>>2]](a)| +0)break l;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}c=J[a+64>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c>>>8;d=J[b+4>>2]-1|0;J[b+4>>2]=d;m:{if(d)break m;if(kc[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=c;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(kc[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}d=J[a+76>>2];b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;o:{if(c)break o;if(kc[J[b+12>>2]](a)| +0)break o;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(J[a+76>>2]>0){b=J[a+84>>2];c=0;while(1){f=J[b>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=f;e=J[d+4>>2]-1|0;J[d+4>>2]=e;p:{if(e)break p;if(kc[J[d+12>>2]](a)|0)break p;d=J[a>>2];J[d+20>>2]=25;kc[J[d>>2]](a)}f=J[b+12>>2];g=J[b+8>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=f+(g<<4);e=J[d+4>>2]-1|0;J[d+4>>2]=e;q:{if(e)break q;if(kc[J[d+12>>2]](a)|0)break q;d=J[a>>2];J[d+20>>2]=25;kc[J[d>>2]](a)}f=J[b+16>>2];d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e| +0]=f;e=J[d+4>>2]-1|0;J[d+4>>2]=e;r:{if(e)break r;if(kc[J[d+12>>2]](a)|0)break r;d=J[a>>2];J[d+20>>2]=25;kc[J[d>>2]](a)}b=b+88|0;c=c+1|0;if((c|0)>2])continue;break}}s:{if(!J[a+264>>2]|J[a+376>>2]==8)break s;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;t:{if(c)break t;if(kc[J[b+12>>2]](a)|0)break t;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=218;c=J[b+4>>2]-1|0;J[b+4>>2]=c;u:{if(c)break u;if(kc[J[b+12>>2]](a)|0)break u;b=J[a>> +2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;v:{if(c)break v;if(kc[J[b+12>>2]](a)|0)break v;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=6;c=J[b+4>>2]-1|0;J[b+4>>2]=c;w:{if(c)break w;if(kc[J[b+12>>2]](a)|0)break w;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;x:{if(c)break x;if(kc[J[b+12>>2]](a)|0)break x;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b= +J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;y:{if(c)break y;if(kc[J[b+12>>2]](a)|0)break y;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}c=J[a+376>>2];b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;H[d|0]=P(c,c)-1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;z:{if(c)break z;if(kc[J[b+12>>2]](a)|0)break z;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break s;if(kc[J[b+12>>2]](a)|0)break s;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}}function xta(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;f=fc-48|0;fc=f;if(!J[a+36>>2]){J[a+24>>2]=0;J[a+28>>2]=0;e=J[a+12>>2];if(e){c=J[e+24>>2];if(c)while(1){d=J[c>>2];uc(c);J[e+24>>2]=d;c=d;if(c)continue;break}c=J[e>>2];if(c)uc(c);uc(e)}J[a+12>>2]=0}c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;c=J[b>>2];J[699344]=0;J[f+44>>2]=c;d=_(5296,c|0)|0;e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((e|0)==1)break f;J[699344]=0;m=_(5296,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;J[699344]=0;J[f+44>>2]=0; +e=J[c+4>>2]-1|0;J[c+4>>2]=e;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(!e){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=d&255;if((c|0)==J[a+28>>2])break e;a=Qc(f+20|0,2388998,2386101,1509,2432432,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break d}a=Z()|0;zc(f+44|0);break c}i=J[a+24>>2];g:{h:{i:{j:{k:{l:{m:{n:{if(!c){c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;c=J[b>>2];J[699344]=0;J[f+16>>2]=c;d=_(5296,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l; +J[699344]=0;e=_(5296,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;J[699344]=0;J[f+16>>2]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(!g){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}if((d&127)!=1){a=Qc(f+20|0,2389906,2386101,1517,2432432,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break b}if((e&255)>>>0>=3){a=Qc(f+20|0,2390386,2386101,1519,2432432,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d; +break b}c=J[b>>2];J[c+4>>2]=J[c+4>>2]+1;c=J[b>>2];J[699344]=0;J[f+12>>2]=c;g=_(5296,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break k;J[699344]=0;h=_(5296,c|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break k;J[699344]=0;j=_(5296,c|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break k;J[699344]=0;k=_(5296,c|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break k;if(e&254){J[699344]=0;_(5296,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k}J[699344]=0;J[f+12>>2]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;l=J[699344];J[699344]= +0;if((l|0)==1)break a;if(!e){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}if(d<<24>>24>=0){a=Qc(f+20|0,2390664,2386101,1524,2432432,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break b}if(J[a+12>>2])break j;d=vc(32);J[d+24>>2]=0;J[d>>2]=0;c=k&255|j<<8&65280;J[d+8>>2]=c;e=h&255|g<<8&65280;J[d+4>>2]=e;c=c+31&131040;J[d+16>>2]=c;e=e+31&131040;J[d+12>>2]=e;c=P(c,e);J[d+20>>2]=c>>>10;J[699344]=0;g=c>>>6|0;e=_(27,g|0)|0;h=J[699344];J[699344]=0;if((h|0)!= +1){if(c)Ac(e,0,g);J[d+28>>2]=4080;J[d>>2]=e;J[a+12>>2]=d;if(!J[a+36>>2])break n;fa(2391795,2386101,1530,2432483);B()}a=Z()|0;uc(d);break c}if(!J[a+12>>2])break i;if(J[a+36>>2])break m;fa(2392629,2386101,1535,2432483);B()}c=vc(508);J[c+8>>2]=0;J[c+12>>2]=1;J[c+4>>2]=d;J[c+16>>2]=0;d=J[608017];J[c+56>>2]=J[608016];J[c+60>>2]=d;e=J[608019];d=c- -64|0;J[d>>2]=J[608018];J[d+4>>2]=e;J[c+112>>2]=131072;J[c+116>>2]=131072;J[c+104>>2]=131072;J[c+108>>2]=131072;J[c+96>>2]=65536;J[c+100>>2]=65536;J[c+88>>2]= +65536;J[c+92>>2]=65536;J[c+80>>2]=65536;J[c+84>>2]=65536;J[c+72>>2]=65536;J[c+76>>2]=65536;J[c+52>>2]=J[608031];d=J[608030];J[c+44>>2]=J[608029];J[c+48>>2]=d;d=J[608028];J[c+36>>2]=J[608027];J[c+40>>2]=d;d=J[608026];J[c+28>>2]=J[608025];J[c+32>>2]=d;d=J[608024];J[c+20>>2]=J[608023];J[c+24>>2]=d;Ac(c+392|0,0,114);J[c>>2]=2432828;J[a+36>>2]=c}c=0;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;c=J[b>>2]}J[699344]=0;J[f+8>>2]=c;ia(5214,f+20|0,f+8|0,0,1);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[f+8>>2];J[f+8>> +2]=0;o:{if(!b)break o;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break o;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[f+20>>2];c=(m&255)+i|0;if((c|0)>J[a+24>>2]){while(1){d=J[a+36>>2];e=J[J[d>>2]+8>>2];J[699344]=0;d=aa(e|0,d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;e=J[a+24>>2]+1|0;J[a+24>>2]=e;if((c|0)>(e|0)?d:0)continue;break}b=J[f+20>>2]}J[a+28>>2]=J[a+28>>2]+1;J[f+20>>2]=0;p:{if(!b)break p;J[699344]=0;a=J[b+4>> +2]-1|0;J[b+4>>2]=a;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(a)break p;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=f+48|0;return c|0}c=f+8|0;a=Z()|0;break g}a=Z()|0;zc(f+16|0);break c}a=Z()|0;zc(f+12|0);break c}fa(2391254,2386101,1528,2432483);B()}fa(2392159,2386101,1534,2432483);B()}c=f+20|0;a=Z()|0}zc(c);break c}B()}ba(a|0);B()}b=Z()|0;Kc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function _nb(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;c=fc-320|0;fc=c;a:{if(!a){a=6;break a}a=19;e=J[b+8>>2];if(!(e&1))break a;a=20;f=J[b+4>>2];if(!f)break a;d=I[f+2>>1];if(!d){a=0;break a}j=I[f>>1];if((j|0)<=0){a=0;break a}k=J[f+12>>2];if(!k|!J[f+4>>2]|(d|0)!=(I[(k+(j<<1)|0)-2>>1]+1|0))break a;d=J[b>>2];J[c+232>>2]=J[f+16>>2];a=J[f+12>>2];J[c+224>>2]=J[f+8>>2];J[c+228>>2]=a;a=J[f+4>>2];J[c+216>>2]=J[f>>2];J[c+220>>2]=a;b:{if(e&2){a=J[b+12>>2];if(!a){a=0;break a}J[c+244>>2]=a;a=J[b+28>>2];J[c+312>>2]=0;J[c+248>>2]=a;a=J[b+32>>2];J[c+164>>2]=a;d= +J[b+36>>2];J[c+172>>2]=d;f=J[b+40>>2];J[c+168>>2]=f;b=J[b+44>>2];break b}if(!d){a=6;break a}f=J[d+4>>2];if(!f){a=0;break a}b=J[d>>2];if(!b){a=0;break a}a=6;e=J[d+12>>2];if(!e)break a;a=J[d+8>>2];J[c+240>>2]=a;J[c+244>>2]=0;J[c+248>>2]=0;d=0;J[c+172>>2]=0;J[c+164>>2]=0;J[c+168>>2]=f;J[c+312>>2]=-1;J[c+236>>2]=e+((a|0)>=0?P(a,b-1|0):0);a=0}J[c+176>>2]=b;if((a|0)>=(f|0)){a=0;break a}a=0;if((b|0)<=(d|0))break a;d=0;j=fc-16512|0;fc=j;n=J[c+176>>2];b=J[c+172>>2];l=n-b|0;if(l>>>0>=129){a=l+127>>>7|0;l=((a+ +l|0)-1>>>0)/(a>>>0)|0}p=l<<2;a=p+15|0;J[c+200>>2]=1024-(a>>>4|0);f=a&-16;a=j+128|0;J[c+196>>2]=f+a;J[c+192>>2]=a;c:{if((b|0)>=(n|0))break c;m=c+252|0;r=c+216|0;a=0;while(1){J[c+172>>2]=b;k=b+l|0;q=(k|0)<(n|0);f=q?k:n;J[c+176>>2]=f;J[j>>2]=f;J[j+4>>2]=b;f=j;while(1){i=J[f+4>>2];o=J[f>>2];Ac(J[c+192>>2],0,p);J[c+188>>2]=1;J[c+204>>2]=0;J[c+172>>2]=J[f+4>>2];J[c+176>>2]=J[f>>2];d:{e:{f:{g:{h:{if(a){J[699344]=0;b=J[699344];J[699344]=0;if((b|0)==1)break h}J[699344]=0;g=ga(1670,r|0,260088,c|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break h;if(a){J[699344]=0;a=J[699344];J[699344]=0;if((a|0)==1)break h}i:{if(J[c+188>>2])break i;d=J[c+156>>2];j:{e=J[c+192>>2]+(J[c+160>>2]-J[c+172>>2]<<2)|0;a=J[e>>2];k:{if(!a){a=0;break k}h=J[a>>2];if((d|0)<(h|0))break k;l:{while(1){b=a;if((d|0)==(h|0))break j;a=J[a+12>>2];if(a){h=J[a>>2];if((d|0)<(h|0))break l;continue}break}a=0}e=b+12|0}b=J[c+204>>2];if((b|0)>=J[c+200>>2]){J[699344]=0;da(1672,c|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break h;b=J[c+204>>2];a=J[e>>2]}J[c+ +204>>2]=b+1;b=J[c+196>>2]+(b<<4)|0;J[b>>2]=d;J[b+8>>2]=J[c+180>>2];d=J[c+184>>2];J[b+12>>2]=a;J[b+4>>2]=d;J[e>>2]=b;break i}J[b+8>>2]=J[b+8>>2]+J[c+180>>2];J[b+4>>2]=J[b+4>>2]+J[c+184>>2]}if((g|0)==64)break g;if(g){d=1;break c}h=J[c+172>>2];if((h|0)>2])while(1){a=J[J[c+192>>2]+(h-J[c+172>>2]<<2)>>2];m:{n:{o:{if(!a)break o;d=J[c+164>>2];b=0;while(1){p:{if(!b)break p;g=J[a>>2];if((g|0)<=(d|0))break p;e=b>>9;q:{if(K[c+232|0]&2){e=e&511;e=e>>>0>255?e^511:e;break q}e=e^b>>31;e=(e|0)>=255?255: +e}g=g-d|0;i=J[c+312>>2];if((i|0)>=0){o=i+1|0;J[c+312>>2]=o;i=P(i,6)+m|0;H[i+4|0]=e;I[i+2>>1]=g;I[i>>1]=d;if((o|0)!=10)break p;kc[J[c+244>>2]](h,10,m,J[c+248>>2]);J[c+312>>2]=0;break p}d=(J[c+236>>2]-P(J[c+240>>2],h)|0)+d|0;r:switch(g|0){case 7:H[d|0]=e;d=d+1|0;case 6:H[d|0]=e;d=d+1|0;case 5:H[d|0]=e;d=d+1|0;case 4:H[d|0]=e;d=d+1|0;case 3:H[d|0]=e;d=d+1|0;case 2:H[d|0]=e;d=d+1|0;case 1:H[d|0]=e;break p;case 0:break p;default:break r}Ac(d,e,g)}b=(J[a+4>>2]<<9)+b|0;d=J[a+8>>2];s:{if((b|0)==(d|0))break s; +e=J[a>>2];if((e|0)>2])break s;g=b-d|0;d=g>>9;t:{if(K[c+232|0]&2){d=d&511;d=d>>>0>255?d^511:d;break t}d=d^g>>31;d=(d|0)>=255?255:d}g=J[c+312>>2];if((g|0)>=0){i=g+1|0;J[c+312>>2]=i;g=P(g,6)+m|0;H[g+4|0]=d;I[g+2>>1]=1;I[g>>1]=e;if((i|0)!=10)break s;kc[J[c+244>>2]](h,10,m,J[c+248>>2]);J[c+312>>2]=0;break s}H[e+(J[c+236>>2]-P(J[c+240>>2],h)|0)|0]=d}d=J[a>>2]+1|0;a=J[a+12>>2];if(a)continue;break}if(!b)break o;a=b>>9;u:{if(K[c+232|0]&2){a=a&511;b=a>>>0>255?a^511:a;break u}a=a^b>>31;b=(a|0)>=255? +255:a}e=J[c+168>>2]-d|0;a=J[c+312>>2];if((a|0)>=0){g=a+1|0;J[c+312>>2]=g;a=P(a,6)+m|0;H[a+4|0]=b;I[a+2>>1]=e;I[a>>1]=d;a=10;if((g|0)!=10)break o;break n}a=(J[c+236>>2]-P(J[c+240>>2],h)|0)+d|0;v:switch(e|0){case 7:H[a|0]=b;a=a+1|0;case 6:H[a|0]=b;a=a+1|0;case 5:H[a|0]=b;a=a+1|0;case 4:H[a|0]=b;a=a+1|0;case 3:H[a|0]=b;a=a+1|0;case 2:H[a|0]=b;a=a+1|0;case 1:H[a|0]=b;break o;case 0:break o;default:break v}Ac(a,b,e)}a=J[c+312>>2];if((a|0)<=0)break m}kc[J[c+244>>2]](h,a,m,J[c+248>>2]);J[c+312>>2]=0}h=h+ +1|0;if((h|0)>2])continue;break}f=f-4|0;break d}a=ea(2641108)|0;if((gc|0)!=(sa(2641108)|0))break f;oa(a|0)|0;ta()}a=o-i|0;if(a>>>0>=2)break e;d=1;break c}ba(a|0);B()}b=J[f+4>>2];J[f+8>>2]=b;J[f+4>>2]=b+(a>>1);f=f+4|0}a=1;if(f>>>0>=j>>>0)continue;break}d=0;b=k;if(q)continue;break}}fc=j+16512|0;a=d}fc=c+320|0;return a|0}function G0(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;d=fc-96|0;fc=d;a:{b:{c:{d:{e:{f:{if(!b|!c|J[c>>2]!=9)break f;g:{h:{f=J[a+12>>2];g=J[a+16>> +2];if((f|0)==(g|0))break h;e=J[c+8>>2];while(1){if((e|0)==J[J[f>>2]+4>>2])break h;f=f+4|0;if((g|0)!=(f|0))continue;break}break g}if((f|0)!=(g|0))break f}J[d+80>>2]=13;e=Ac(vc(84),0,84);g=d+80|0;if(J[jf(c,b,g,0)>>2]!=7){yc(g);uc(F0(e));break f}J[e+4>>2]=J[c+8>>2];J[d+64>>2]=13;i:{if(J[Ec(J[d+88>>2],776806,d- -64|0,0)>>2]!=3)break i;c=vc(12);J[699344]=0;g=aa(3354,c|0,J[d+72>>2])|0;f=J[699344];J[699344]=0;j:{if((f|0)!=1){Zr(d+48|0,J[g>>2],J[g+4>>2]);J[e>>2]=J[e>>2]|1;c=e+48|0;h=K[d+59|0];f=h<<24>>24; +k:{l:{if(H[e+59|0]>=0){if((f|0)<0)break l;f=J[d+52>>2];J[c>>2]=J[d+48>>2];J[c+4>>2]=f;J[c+8>>2]=J[d+56>>2];break j}J[699344]=0;i=c;c=(f|0)<0;ga(3483,i|0,(c?J[d+48>>2]:d+48|0)|0,(c?J[d+52>>2]:h)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;break j}J[699344]=0;ga(3484,c|0,J[d+48>>2],J[d+52>>2])|0;c=J[699344];J[699344]=0;if((c|0)!=1)break j}f=Z()|0;if(H[d+59|0]>=0)break b;uc(J[d+48>>2]);break b}f=Z()|0;uc(c);break b}uc(ld(g));if(H[d+59|0]>=0)break i;uc(J[d+48>>2])}c=d- -64|0;yc(c);m:{if(!Ec(J[d+ +88>>2],812930,c,0))break m;pK(d+48|0,c,0);if(H[e+71|0]<0)uc(J[e+60>>2]);c=J[d+52>>2];J[e+60>>2]=J[d+48>>2];J[e+64>>2]=c;J[e+68>>2]=J[d+56>>2];c=K[e+71|0];if(c<<24>>24<0?J[e- -64>>2]:c)J[e>>2]=J[e>>2]|2;if(J[d+64>>2]!=6)break m;J[e>>2]=J[e>>2]|32;j=J[J[d+72>>2]+12>>2];if((j|0)<=0)break m;i=e+24|0;f=0;while(1){J[d+48>>2]=13;n:{if(J[Sc(J[d+72>>2],f,d+48|0,0)>>2]!=3)break n;h=vc(12);J[699344]=0;g=aa(3354,h|0,J[d+56>>2])|0;c=J[699344];J[699344]=0;o:{if((c|0)!=1){Zr(d+32|0,J[g>>2],J[g+4>>2]);c=J[e+28>> +2];p:{if(c>>>0>2]){h=J[d+36>>2];J[c>>2]=J[d+32>>2];J[c+4>>2]=h;J[c+8>>2]=J[d+40>>2];J[e+28>>2]=c+12;break p}J[699344]=0;da(3503,i|0,d+32|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;if(H[d+43|0]>=0)break p;uc(J[d+32>>2])}uc(ld(g));break n}break a}f=Z()|0;if(H[d+43|0]>=0)break b;uc(J[d+32>>2]);break b}yc(d+48|0);f=f+1|0;if((j|0)!=(f|0))continue;break}}c=d- -64|0;yc(c);q:{if(!Ec(J[d+88>>2],825884,c,0))break q;pK(d+48|0,c,1);if(H[e+83|0]<0)uc(J[e+72>>2]);c=J[d+52>>2];J[e+72>>2]=J[d+48>>2]; +J[e+76>>2]=c;J[e+80>>2]=J[d+56>>2];c=K[e+83|0];if(!(c<<24>>24<0?J[e+76>>2]:c))break q;J[e>>2]=J[e>>2]|4}yc(d- -64|0);J[d+48>>2]=13;r:{if(J[Ec(J[d+88>>2],821242,d+48|0,0)>>2]!=6)break r;m=J[J[d+56>>2]+12>>2];if((m|0)>0){k=e+12|0;c=0;while(1){s:{if(J[Sc(J[d+56>>2],c,d- -64|0,0)>>2]!=1)break s;l=J[d+72>>2];f=J[e+16>>2];h=J[e+20>>2];if(f>>>0>>0){J[f>>2]=l;J[e+16>>2]=f+4;break s}j=J[k>>2];i=f-j>>2;g=i+1|0;if(g>>>0>=1073741824)break e;n=i<<2;h=h-j|0;i=h>>1;i=h>>>0>=2147483644?1073741823:g>>>0>>0? +i:g;if(i){if(i>>>0>=1073741824)break d;g=vc(i<<2)}else g=0;h=n+g|0;J[h>>2]=l;l=h+4|0;if((f|0)!=(j|0))while(1){h=h-4|0;f=f-4|0;J[h>>2]=J[f>>2];if((f|0)!=(j|0))continue;break}J[e+20>>2]=g+(i<<2);J[e+16>>2]=l;J[e+12>>2]=h;if(!j)break s;uc(j)}yc(d- -64|0);c=c+1|0;if((m|0)!=(c|0))continue;break}}if(J[e+12>>2]==J[e+16>>2])break r;J[e>>2]=J[e>>2]|8}yc(d+48|0);J[d+32>>2]=13;t:{u:{v:{w:{if(J[Ec(J[d+88>>2],819446,d+32|0,0)>>2]!=6)break w;j=J[J[d+40>>2]+12>>2];if((j|0)>0){i=e+36|0;f=0;while(1){J[d+16>>2]=13; +if(!(!Sc(J[d+40>>2],f,d+16|0,0)|J[d+16>>2]!=3)){h=vc(12);J[699344]=0;g=aa(3354,h|0,J[d+24>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;Zr(d+4|0,J[g>>2],J[g+4>>2]);c=J[e+40>>2];x:{if(c>>>0>2]){h=J[d+8>>2];J[c>>2]=J[d+4>>2];J[c+4>>2]=h;J[c+8>>2]=J[d+12>>2];J[e+40>>2]=c+12;break x}J[699344]=0;da(3503,i|0,d+4|0);c=J[699344];J[699344]=0;if((c|0)==1)break v;if(H[d+15|0]>=0)break x;uc(J[d+4>>2])}uc(ld(g))}yc(d+16|0);f=f+1|0;if((j|0)!=(f|0))continue;break}}if(J[e+36>>2]==J[e+40>>2])break w; +J[e>>2]=J[e>>2]|64}yc(d+32|0);f=J[a+16>>2];if((f|0)==J[a+20>>2])break u;J[f>>2]=e;J[a+16>>2]=f+4;break t}f=Z()|0;if(H[d+15|0]>=0)break b;uc(J[d+4>>2]);break b}j=a+12|0;i=J[j>>2];c=f-i|0;h=c>>2;g=h+1|0;if(g>>>0>=1073741824)break c;k=c>>1;g=c>>>0>=2147483644?1073741823:g>>>0>>0?k:g;if(g){if(g>>>0>=1073741824)break d;c=vc(g<<2)}else c=0;h=c+(h<<2)|0;J[h>>2]=e;k=h+4|0;if((f|0)!=(i|0)){while(1){h=h-4|0;f=f-4|0;J[h>>2]=J[f>>2];if((f|0)!=(i|0))continue;break}f=J[j>>2]}J[a+20>>2]=c+(g<<2);J[a+16>>2]=k; +J[a+12>>2]=h;if(!f)break t;uc(f)}J[d+16>>2]=13;c=d+16|0;if(J[Ke(J[d+88>>2],777471,c)>>2]==9){J[e>>2]=J[e>>2]|16;J[e+8>>2]=J[d+24>>2];G0(a,b,c)}yc(d+16|0);yc(d+80|0)}fc=d+96|0;return}qj(k);B()}Pd();B()}fu(j);B()}ba(f|0);B()}a=Z()|0;uc(h);ba(a|0);B()}function QDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-160|0;fc=e;g=Cm(e+120|0);H[a+16|0]=0;a:{b:{c:{d:{e:{f:{c=J[b>>2];g:{if(!(J[c+8>>2]?c:0)){J[699344]=0;c=aa(5284,e+48|0,a+36|0)|0;b=J[699344];J[699344]=0;h:{i:{j:{k:{l:{if((b|0)!=1){J[699344]= +0;b=aa(5151,e+84|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;J[c+24>>2]=2392964;J[c>>2]=2392932;d=J[c+28>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)kc[J[J[d>>2]+4>>2]](d);J[c+28>>2]=0}J[c+16>>2]=2392964;d=J[c+20>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)kc[J[J[d>>2]+4>>2]](d);J[c+20>>2]=0}wc(c+8|0);if(K[b+32|0])break k;J[699344]=0;da(5282,b|0,1);c=J[699344];J[699344]=0;m:{n:{if((c|0)!=1){if(K[b+32|0])break k;c=J[a+36>>2];if(!c)break n;d=J[J[c>>2]+28>>2];J[699344]=0;ca(d|0,e+12|0,c|0,1); +c=J[699344];J[699344]=0;if((c|0)!=1)break m}a=Z()|0;Ed(b);break b}J[e+12>>2]=0}J[699344]=0;aa(5153,a+20|0,e+12|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;c=J[e+12>>2];J[e+12>>2]=0;if(!c)break j;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break j;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break j}break a}a=Z()|0;break b}a=Z()|0;Ed(c);break b}J[699344]=0;da(5283,e+12|0,b|0);c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+12>>2];o:{if(c){d=J[J[c>> +2]+28>>2];J[699344]=0;ca(d|0,e+4|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break o;a=Z()|0;break c}J[e+4>>2]=0}J[699344]=0;aa(5153,a+20|0,e+4|0)|0;c=J[699344];J[699344]=0;p:{if((c|0)!=1){c=J[e+4>>2];J[e+4>>2]=0;if(!c)break p;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break p;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break p}break a}a=Z()|0;zc(e+4|0);break c}c=J[a+20>>2];J[a+24>>2]=J[(c?c+12|0:2743576)>>2];wc(e+12|0);break i}a=Z()|0;Ed(b); +break b}c=J[a+20>>2];J[a+24>>2]=J[(c?c+12|0:2743576)>>2]}J[b+24>>2]=2392964;J[b>>2]=2392932;c=J[b+28>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[b+28>>2]=0}J[b+16>>2]=2392964;c=J[b+20>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[b+20>>2]=0}wc(b+8|0);break g}a=Z()|0;zc(e+12|0);Ed(b);break b}J[699344]=0;d=aa(5284,e+48|0,b|0)|0;c=J[699344];J[699344]=0;q:{r:{s:{t:{u:{v:{if((c|0)!=1){J[699344]=0;c=aa(5151,e+84|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)== +1)break v;J[d+24>>2]=2392964;J[d>>2]=2392932;f=J[d+28>>2];if(f){h=J[f+4>>2]-1|0;J[f+4>>2]=h;if(!h)kc[J[J[f>>2]+4>>2]](f);J[d+28>>2]=0}J[d+16>>2]=2392964;f=J[d+20>>2];if(f){h=J[f+4>>2]-1|0;J[f+4>>2]=h;if(!h)kc[J[J[f>>2]+4>>2]](f);J[d+20>>2]=0}wc(d+8|0);w:{if(K[c+32|0])break w;J[699344]=0;da(5282,c|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break u;if(K[c+32|0])break w;J[699344]=0;b=aa(5150,e+12|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break t;J[699344]=0;aa(5253,c|0,b|0)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break s;J[b+24>>2]=2392964;J[b>>2]=2392932;d=J[b+28>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)kc[J[J[d>>2]+4>>2]](d);J[b+28>>2]=0}J[b+16>>2]=2392964;d=J[b+20>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)kc[J[J[d>>2]+4>>2]](d);J[b+20>>2]=0}wc(b+8|0)}J[699344]=0;da(5283,e+4|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[e+4>>2];if(!b)break r;d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,e+156|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break q;a=Z()|0;break d}a=Z()|0;break b}a=Z()|0; +Ed(d);break b}a=Z()|0;Ed(c);break b}a=Z()|0;Ed(c);break b}a=Z()|0;Ed(b);Ed(c);break b}J[e+156>>2]=0}J[699344]=0;aa(5153,a+20|0,e+156|0)|0;b=J[699344];J[699344]=0;x:{if((b|0)!=1){b=J[e+156>>2];J[e+156>>2]=0;if(!b)break x;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break x;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break x}break a}a=Z()|0;zc(e+156|0);break d}b=J[a+20>>2];J[a+24>>2]=J[(b?b+12|0:2743576)>>2];wc(e+4|0);J[c+24>>2]=2392964;J[c>>2]=2392932; +b=J[c+28>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)kc[J[J[b>>2]+4>>2]](b);J[c+28>>2]=0}J[c+16>>2]=2392964;b=J[c+20>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)kc[J[J[b>>2]+4>>2]](b);J[c+20>>2]=0}wc(c+8|0)}J[699344]=0;aa(5224,a+28|0,2395411)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[g+24>>2]=2392964;J[g>>2]=2392932;a=J[g+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[g+28>>2]=0}J[g+16>>2]=2392964;a=J[g+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>> +2]](a);J[g+20>>2]=0}wc(g+8|0);fc=e+160|0;return}a=Z()|0;Ed(c);break b}a=Z()|0;break b}wc(e+4|0);Ed(c);break b}wc(e+12|0);Ed(b)}Ed(g);ba(a|0);B()}ea(0)|0;Bc();B()}function xXa(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;i=fc-80|0;fc=i;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;m=a+24|0;e=m;J[e>>2]=0;J[e+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[i+64>>2]=13;J[i+48>>2]=13;o=J[J[b+28>>2]+132>>2];e=J[o+16>>2];p=J[b+24>>2];J[699344]=0;e=ha(3368,e| +0,842249,i- -64|0,0)|0;f=J[699344];J[699344]=0;a:{b:{c:{d:{if((f|0)!=1){e:{if(J[e>>2]!=6)break e;e=J[i+72>>2];if(J[e+12>>2]<=0)break e;while(1){J[699344]=0;e=ga(3463,e|0,l|0,i+48|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;f:{if(J[e>>2]!=9)break f;k=J[i+56>>2];e=J[a+4>>2];h=J[a+8>>2];if(e>>>0>>0){J[e>>2]=k;J[a+4>>2]=e+4;break f}g:{h:{i:{g=J[a>>2];n=e-g>>2;f=n+1|0;j:{if(f>>>0>=1073741824){J[699344]=0;$(1589,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break j;break a}h=h-g|0;j=h>>1;h=h>>>0>=2147483644? +1073741823:f>>>0>>0?j:f;if(!h){j=0;break h}if(h>>>0<1073741824)break i;J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break a}e=Z()|0;break b}J[699344]=0;j=_(4,h<<2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g}f=(n<<2)+j|0;J[f>>2]=k;k=f+4|0;if((e|0)!=(g|0))while(1){f=f-4|0;e=e-4|0;J[f>>2]=J[e>>2];if((e|0)!=(g|0))continue;break}J[a+8>>2]=(h<<2)+j;J[a+4>>2]=k;J[a>>2]=f;if(!g)break f;uc(g);break f}e=Z()|0;break b}J[699344]=0;$(3370,i+48|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;l= +l+1|0;e=J[i+72>>2];if((l|0)>2])continue;break}}J[699344]=0;$(3370,i- -64|0);e=J[699344];J[699344]=0;if((e|0)!=1)break c}e=Z()|0;break b}e=Z()|0;break b}J[699344]=0;n=J[J[o+32>>2]+8>>2];e=J[699344];J[699344]=0;k:{if((e|0)!=1){if((n|0)>0){l=0;while(1){J[699344]=0;e=J[J[J[o+32>>2]>>2]+(l<<2)>>2];f=J[699344];J[699344]=0;l:{if((f|0)!=1){J[i+32>>2]=13;J[i+16>>2]=13;m:{n:{o:{if(!e)break o;J[699344]=0;f=i+32|0;g=aa(3488,e|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break n;if(J[g>>2]!=9)break o; +J[699344]=0;f=ha(3372,f|0,p|0,i+16|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break n;if(J[f>>2]==7)break m}J[699344]=0;$(3370,i+16|0);e=J[699344];J[699344]=0;if((e|0)==1)break n;J[699344]=0;$(3370,i+32|0);e=J[699344];J[699344]=0;if((e|0)!=1)break l}e=Z()|0;break b}J[i>>2]=13;J[699344]=0;f=ga(3495,J[i+24>>2],777471,i|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break k;if(J[f>>2]==9){J[699344]=0;ca(3514,a|0,p|0,i|0);f=J[699344];J[699344]=0;if((f|0)==1)break k}J[699344]=0;$(3370,i|0);f=J[699344];J[699344]= +0;if((f|0)==1)break k;J[699344]=0;$(3370,i+16|0);f=J[699344];J[699344]=0;if((f|0)==1)break k;J[699344]=0;$(3370,i+32|0);f=J[699344];J[699344]=0;if((f|0)==1)break k;p:{q:{r:switch(J[e+40>>2]){case 0:case 1:case 2:J[699344]=0;f=_(4,424)|0;g=J[699344];J[699344]=0;if((g|0)==1)break p;J[699344]=0;g=ga(3515,f|0,b|0,e|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break q;e=Z()|0;uc(f);break b;case 3:case 4:case 5:case 6:J[699344]=0;f=_(4,368)|0;g=J[699344];J[699344]=0;if((g|0)==1)break p;J[699344]=0;g=ga(3516, +f|0,b|0,e|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break q;e=Z()|0;uc(f);break b;case 7:case 8:J[699344]=0;f=_(4,392)|0;g=J[699344];J[699344]=0;if((g|0)==1)break p;J[699344]=0;g=ga(3517,f|0,b|0,e|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break q;e=Z()|0;uc(f);break b;case 9:break r;default:break l}J[699344]=0;f=_(4,344)|0;g=J[699344];J[699344]=0;if((g|0)==1)break p;J[699344]=0;g=ga(3518,f|0,b|0,e|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break q;e=Z()|0;uc(f);break b}J[699344]=0;ma(3519,g|0,b|0,e|0, +c|0,d|0);f=J[699344];J[699344]=0;if((f|0)==1)break p;if(!J[e+40>>2]){J[699344]=0;ma(3520,g|0,b|0,e|0,c|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break p}e=J[a+28>>2];j=J[a+32>>2];if(e>>>0>>0){J[e>>2]=g;J[a+28>>2]=e+4;break l}s:{t:{u:{h=J[m>>2];q=e-h>>2;f=q+1|0;v:{if(f>>>0>=1073741824){J[699344]=0;$(3521,m|0);break v}j=j-h|0;k=j>>1;j=j>>>0>=2147483644?1073741823:f>>>0>>0?k:f;if(!j){k=0;break t}if(j>>>0<1073741824)break u;J[699344]=0;ka(209)}b=J[699344];J[699344]=0;if((b|0)!=1)break a;e=Z()| +0;break b}J[699344]=0;k=_(4,j<<2)|0;f=J[699344];J[699344]=0;if((f|0)==1)break s}f=(q<<2)+k|0;J[f>>2]=g;g=f+4|0;if((e|0)!=(h|0)){while(1){f=f-4|0;e=e-4|0;J[f>>2]=J[e>>2];if((e|0)!=(h|0))continue;break}e=J[m>>2]}J[a+32>>2]=(j<<2)+k;J[a+28>>2]=g;J[a+24>>2]=f;if(!e)break l;uc(e);break l}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;break b}l=l+1|0;if((n|0)!=(l|0))continue;break}}fc=i+80|0;return a|0}e=Z()|0;break b}e=Z()|0}b=J[m>>2];if(b){J[a+28>>2]=b;uc(b)}b=J[a+12>>2];if(b){J[a+16>>2]=b;uc(b)}b=J[a>>2];if(b){J[a+ +4>>2]=b;uc(b)}ba(e|0);B()}B()}function T8(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;m=fc-80|0;fc=m;e=ly(b,c);a:{if(e)break a;a=J[b+2740>>2];if(!(a&1)){e=S8(b,0);if(e)break a;R8(b,d,0);a=J[b+2740>>2]}if(!(a&2)){e=S8(b,1);if(e)break a;R8(b,d,1)}s=b+2748|0;p=b+2744|0;a=1;while(1){b:{e=J[b+2740>>2];o=a;c:{d:{if(a){if(e&1)break c;if(J[d+24>>2]|e&8)break d;Q8(m+20|0,b,m+16|0,m+12|0);e=J[b+24>>2];if((e|0)<=0)break c;a=J[b+28>> +2];e=a+P(e,40)|0;j=J[m+12>>2];f=J[m+16>>2];while(1){x=a,y=Wc(I[a+12>>1],f)+j|0,J[x+16>>2]=y;a=a+40|0;if(e>>>0>a>>>0)continue;break}break c}if(e&2)break b}t=P(l,1348)+b|0;v=t- -64|0;j=J[v>>2];q=J[t+56>>2];k=j+P(q,44)|0;i=0;a=j;w=(q|0)<=0;if(!w){while(1){e=K[a+12|0];e:{if(e&4)break e;f=J[a+24>>2];g=J[a+20>>2];f:{g:{if(!g){if(!f)break e;e=J[f+20>>2];if(!e)break e;g=J[e+8>>2];J[f+8>>2]=g;H[f+12|0]=K[f+12|0]|4;e=f;f=a;break g}g=J[g+8>>2];H[a+12|0]=e|4;J[a+8>>2]=g;if(!f)break f;e=a;if(J[f+20>>2])break f}e= +pE(J[p>>2],J[s>>2],l,J[f+4>>2]-J[e+4>>2]|0);H[f+12|0]=K[f+12|0]|4;J[f+8>>2]=e+g}i=i?i:a}g=0;a=a+44|0;if(k>>>0>a>>>0)continue;break}a=j;f=i;n=0;e=0;i=0;while(1){u=K[a+12|0];h:{if(u&4)break h;h=J[a+24>>2];if(!h){i=i+1|0;break h}i:{if(!(e&255))break i;r=n- -64|0;if((r|0)<=J[a+8>>2]&(r|0)<=J[h+8>>2])break i;i=i+1|0;break h}if(J[h+20>>2]){r=pE(J[p>>2],J[s>>2],l,J[a+4>>2]-J[h+4>>2]|0);h=J[h+8>>2];H[a+12|0]=u|4;J[a+8>>2]=h+r;break h}if(a>>>0>h>>>0){e=pE(J[p>>2],J[s>>2],l,J[a+4>>2]-J[h+4>>2]|0);h=J[h+8>> +2];H[a+12|0]=u|4;n=e+h|0;J[a+8>>2]=n;e=1;break h}j:{if(!((f|0)!=0|l)){g=P8(b,a,h,0,0);break j}P8(b,a,h,g,l)}H[a+12|0]=K[a+12|0]|4;H[h+12|0]=K[h+12|0]|4;n=J[h+8>>2];e=1;f=a}a=a+44|0;if(k>>>0>a>>>0)continue;break}}k:{if(!o)break k;e=4;f=2;a=j;l:switch(q-6|0){case 6:a=j+44|0;e=9;f=5;break;case 0:break l;default:break k}if(J[a+24>>2]!=(a+44|0))break k;g=j+P(f,44)|0;if(J[g+24>>2]!=(g+44|0))break k;f=j+P(e,44)|0;e=J[f+24>>2];if((e|0)!=(f+44|0))break k;n=(J[g+4>>2]<<1)-(J[a+4>>2]+J[f+4>>2]|0)|0;h=n>>31; +if((h^n)-h>>>0>7)break k;h=J[f+8>>2];a=(J[g+8>>2]<<1)-J[a+8>>2]|0;J[f+8>>2]=a;a=h-a|0;if(e)J[e+8>>2]=J[e+8>>2]-a;if((q|0)==12){J[j+360>>2]=J[j+360>>2]-a;J[j+492>>2]=J[j+492>>2]-a}H[f+12|0]=K[f+12|0]|4;if(!e)break k;H[e+12|0]=K[e+12|0]|4}m:{if(w)break m;a=j;if(!i)break m;while(1){f=K[a+12|0];n:{if(f&4)break n;e=J[a+28>>2];if(!e)break n;g=J[e+8>>2];e=J[e+4>>2];H[a+12|0]=f|4;J[a+8>>2]=J[a+4>>2]+(g-e|0);i=i-1|0}a=a+44|0;if(k>>>0>a>>>0)continue;break}e=j;if(!i)break m;while(1){a=e;o:{if(K[a+12|0]&4)break o; +while(1){f=a;a=a-44|0;h=j>>>0>a>>>0;if(!(h|K[f-32|0]&4))continue;break}i=e;p:{q:{r:{while(1){g=i;i=g+44|0;if(k>>>0<=i>>>0)break r;if(!(K[g+56|0]&4))continue;break}if(a>>>0>=j>>>0)break q;h=J[e+4>>2]+(J[g+52>>2]-J[g+48>>2]|0)|0;break p}if(h)break o;a=f-44|0;h=J[e+4>>2]+(J[a+8>>2]-J[a+4>>2]|0)|0;break p}i=L[i>>1];a=L[a>>1];h=J[f-36>>2];if((i|0)==(a|0))break p;a=a<<16>>16;f=J[f-36>>2];h=Od(I[e>>1]-a|0,J[g+52>>2]-f|0,(i<<16>>16)-a|0)+f|0}J[e+8>>2]=h}e=e+44|0;if(k>>>0>e>>>0)continue;break}}a=J[t+56>>2]; +s:{if((a|0)<=0)break s;g=J[v>>2];j=g+P(a,44)|0;if(J[p>>2]&(o?1:2)){if(o)while(1){f=J[g+8>>2];h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+16>>2]=f;I[a>>1]=L[a>>1]|4;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break s}while(1){f=J[g+8>>2];h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+20>>2]=f;I[a>>1]=L[a>>1]|8;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e| +0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break}break s}if(o)while(1){f=J[g+8>>2]-J[g+4>>2]|0;h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+16>>2]=f+J[a+16>>2];I[a>>1]=L[a>>1]|4;i=a+32|0;if((a|0)!=(k|0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break s}while(1){f=J[g+8>>2]-J[g+4>>2]|0;h=J[g+36>>2];e=h;while(1){i=e+36|0;k=J[e+40>>2];while(1){a=J[i>>2];J[a+20>>2]=f+J[a+20>>2];I[a>>1]=L[a>>1]|8;i=a+32|0;if((a|0)!=(k| +0))continue;break}e=J[e+16>>2];if((h|0)!=(e|0))continue;break}g=g+44|0;if(j>>>0>g>>>0)continue;break}}MN(b,l);LN(b,l)}l=1;a=0;if(o)continue}break}d=J[b+24>>2];if((d|0)<=0){e=0;break a}a=J[b+28>>2];b=a+P(d,40)|0;i=J[c+4>>2];f=J[c+8>>2];while(1){J[i>>2]=J[a+16>>2];J[i+4>>2]=J[a+20>>2];e=0;c=L[a>>1];H[f|0]=c&1?0:c&2?2:1;f=f+1|0;i=i+8|0;a=a+40|0;if(b>>>0>a>>>0)continue;break}}fc=m+80|0;return e|0}function OFa(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;c=J[a+4>>2];if(!c)return 0; +e=fc-48|0;fc=e;a=J[c+12>>2];J[e+20>>2]=0;J[e+12>>2]=0;J[e+44>>2]=0;LA(a,b,e+20|0,e+12|0,e+44|0);m=J[e+12>>2];a=J[c+12>>2];J[699344]=0;ma(5160,e+40|0,a|0,b|0,1,0);a=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((a|0)!=1){J[699344]=0;_(5161,J[e+40>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;a=0;J[699344]=0;da(5200,e+36|0,J[e+40>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[e+36>>2];if(b)break h;break d}d=ea(0)|0;break e}d=ea(0)|0;break f}a=J[b+8>>2];J[699344]=0;k=aa(5201,e+20|0, +a+28|0)|0;a=J[699344];J[699344]=0;j:{k:{l:{m:{n:{if((a|0)!=1){a=Dc(1E3);H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;j=J[k+8>>2];if(j)break n;h=4;break m}d=ea(0)|0;break j}b=a;h=4;d=1E3;while(1){c=J[j+8>>2];J[e+12>>2]=0;J[e+16>>2]=J[685894];c=J[c+8>>2];o:{if(c){f=J[J[c>>2]+28>>2];J[699344]=0;ca(f|0,e+44|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break o;d=ea(0)|0;break k}J[e+44>>2]=0}J[699344]=0;aa(5153,e+12|0,e+44|0)|0;c=J[699344];J[699344]=0;p:{if((c|0)!=1){c=J[e+44>>2];J[e+44>>2]=0;if(!c)break p; +J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break p;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break p}break b}d=ea(0)|0;zc(e+44|0);break k}c=J[e+12>>2];J[e+16>>2]=J[(c?c+12|0:2743576)>>2];J[699344]=0;f=aa(5169,e+12|0,-1)|0;c=J[699344];J[699344]=0;q:{r:{s:{t:{u:{if((c|0)!=1){c=J[e+12>>2];if(c)c=J[c+8>>2];else c=0;g=c+4|0;v:{if(!a){h=0;d=g>>>0<=1E3?1E3:g;a=Dc(d);b=a;break v}i=g+h|0;b=b+4|0;if(i>>>0<=d>>>0)break v;while(1){d=d<<1;if(i>>>0>d>>>0)continue; +break}b=fe(a,d);if(b){a=b;b=h+b|0;break v}b=xc(Dc(d),a,h);uc(a);a=b;b=h+b|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;b=xc(b+4|0,f,c);f=J[j+8>>2];J[699344]=0;l=_(5202,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;f=J[j+8>>2];J[699344]=0;f=_(5203,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break l;f=m-f|0;w:{x:{y:{if(!a){i=0;d=1E3;b=Dc(1E3);c=b;break y}z:{i=g+h|0;h=i+4|0;if(h>>>0<=d>>>0)c=b+c|0;else{while(1){d=d<<1;if(h>>>0>d>>>0)continue;break}b=fe(a,d);if(!b)break z;a=b;c=i+b|0}H[c| +0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;g=P(l,100);break x}b=Dc(d);c=xc(b,a,i);uc(a);c=c+i|0}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;g=P(l,100);if(!b)break w;h=i+4|0;a=b}i=i+8|0;if(d>>>0>=i>>>0)c=c+4|0;else{while(1){d=d<<1;if(d>>>0>>0)continue;break}b=fe(a,d);if(!b)break u;a=b;c=h+b|0}H[c|0]=g;H[c+1|0]=g>>>8;H[c+2|0]=g>>>16;H[c+3|0]=g>>>24;g=P(f,100);break s}h=0;d=1E3;b=Dc(1E3);c=b;break t}break l}b=Dc(d);c=xc(b,a,h);uc(a);c=c+h|0}H[c|0]=g;H[c+1|0]=g>>>8;H[c+2|0]=g>>>16;H[c+3|0]=g>>>24;g=P(f,100); +if(!b)break r;i=h+4|0;a=b}b=c+4|0;c=i+4|0;if(c>>>0<=d>>>0)break q;while(1){d=d<<1;if(c>>>0>d>>>0)continue;break}b=fe(a,d);if(b){a=b;b=i+b|0;break q}b=xc(Dc(d),a,i);uc(a);a=b;b=i+b|0;break q}i=0;d=1E3;a=Dc(1E3);b=a}H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;c=J[j+8>>2];J[699344]=0;c=_(5204,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;c=P(c-l|0,100);A:{if(!a){h=0;d=1E3;a=Dc(1E3);b=a;break A}h=i+4|0;f=i+8|0;b=b+4|0;if(f>>>0<=d>>>0)break A;while(1){d=d<<1;if(f>>>0>d>>>0)continue;break}b= +fe(a,d);if(b){a=b;b=b+h|0;break A}b=xc(Dc(d),a,h);uc(a);a=b;b=h+b|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=J[j+8>>2];J[699344]=0;c=_(5203,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;f=J[j+8>>2];J[699344]=0;f=_(5205,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;c=P(c-f|0,100);B:{if(!a){g=0;d=1E3;a=Dc(1E3);b=a;break B}g=h+4|0;f=h+8|0;b=b+4|0;if(f>>>0<=d>>>0)break B;while(1){d=d<<1;if(f>>>0>d>>>0)continue;break}b=fe(a,d);if(b){a=b;b=b+g|0;break B}b=xc(Dc(d),a,g);uc(a); +a=b;b=g+b|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;h=g+4|0;wc(e+12|0);j=J[j>>2];if(j)continue;break}}H[a|0]=h;H[a+1|0]=h>>>8;H[a+2|0]=h>>>16;H[a+3|0]=h>>>24;id(k);b=J[e+36>>2];J[e+36>>2]=0;if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}break b}d=ea(0)|0}wc(e+12|0);if(a)uc(a);id(k)}zc(e+36|0);break f}d=ea(0)|0}zc(e+40|0)}oa(d|0)|0;ta();a=0;break c}b=J[e+40>> +2];J[e+40>>2]=0;if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}break b}fc=e+48|0;break a}ea(0)|0;Bc();B()}return a|0}function RUa(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;e=fc-304|0;fc=e;J[a>>2]=2216844;J[e+288>>2]=13;J[e+272>>2]=13;J[a+2984>>2]=0;J[a+2468>>2]=0;J[a+2456>>2]=0;J[a+2460>>2]=0;a:{if(!VB(a,c))break a;if(!J[a+1040>>2]){Cc(1, +-1,791685,0);break a}d=J[a+4>>2];if((d|0)>=17){J[e>>2]=16;Cc(1,-1,792471,e);break a}o=a,p=Gd(1<>2]=p;if(J[b>>2]!=8){Cc(1,-1,793239,0);break a}i=J[b+8>>2];b:{c:{d:{e:{f:{if(J[Ec(c,794020,e+288|0,0)>>2]!=6)break f;b=J[J[e+296>>2]+12>>2];if((b|0)!=J[a+4>>2])break f;if((b|0)>0){b=0;while(1){Sc(J[e+296>>2],b,e+272|0,0);if(J[e+272>>2]!=1){d=795183;break c}d=J[e+280>>2];J[((b<<2)+a|0)+1044>>2]=d;if((d|0)<=0){d=795960;break c}yc(e+272|0);b=b+1|0;if((b|0)>2])continue;break}}yc(e+288| +0);j=Gd(1<>2],4);J[a+2456>>2]=j;b=J[a+4>>2];if((b|0)!=31)while(1){h=b-1|0;d=f;g=0;if((b|0)>=2){k=J[((h<<2)+a|0)+1044>>2];while(1){g=(d>>>h&1&(k|0)!=1)+g|0;k=J[((b<<2)+a|0)+1036>>2];g=P(g,k);d=d<<1;m=b>>>0>2;b=b-1|0;if(m)continue;break}}J[j+(f<<2)>>2]=P(J[a+8>>2],(d>>>h&1&J[a+1044>>2]!=1)+g|0);f=f+1|0;b=J[a+4>>2];if((f|0)<1<>2]!=1){Cc(1,-1,797822,0);break b}k=J[e+296>>2];l=Dv(k);b=e+288|0;yc(b);b=J[Ec(c,798698,b,0)>>2]!=6;d=J[a+4>>2];g:{if(!(b|J[J[e+ +296>>2]+12>>2]!=d<<1)){if((d|0)<=0)break g;b=0;while(1){g=b<<1;f=e+272|0;Sc(J[e+296>>2],g,f,0);d=799116;h=J[e+272>>2];if(h-3>>>0<4294967294)break c;j=(b<<4)+a|0;O[j+1176>>3]=(h|0)==1?+J[e+280>>2]:O[e+280>>3];yc(f);Sc(J[e+296>>2],g|1,f,0);g=J[e+272>>2];if(g-3>>>0<4294967294)break c;O[j+1184>>3]=(g|0)==1?+J[e+280>>2]:O[e+280>>3];yc(f);b=b+1|0;if((b|0)>2])continue;break}break g}if((d|0)<=0)break g;b=0;if((d|0)!=1){m=d&-2;g=a+1176|0;h=a+1044|0;f=0;while(1){j=g+(b<<4)|0;J[j>>2]=0;J[j+4>>2]=0;O[j+ +8>>3]=J[h+(b<<2)>>2]-1|0;n=b|1;j=g+(n<<4)|0;J[j>>2]=0;J[j+4>>2]=0;O[j+8>>3]=J[h+(n<<2)>>2]-1|0;b=b+2|0;f=f+2|0;if((m|0)!=(f|0))continue;break}}if(!(d&1))break g;d=(b<<4)+a|0;f=d+1176|0;J[f>>2]=0;J[f+4>>2]=0;O[d+1184>>3]=J[((b<<2)+a|0)+1044>>2]-1|0}yc(e+288|0);f=J[a+4>>2];if((f|0)>0){b=0;while(1){d=(b<<4)+a|0;O[((b<<3)+a|0)+2200>>3]=(O[d+1184>>3]-O[d+1176>>3])/(O[d+24>>3]-O[d+16>>3]);b=b+1|0;if((f|0)!=(b|0))continue;break}}if(J[Ec(c,800163,e+288|0,0)>>2]!=6){d=J[a+8>>2];break e}d=J[a+8>>2];if(J[J[e+ +296>>2]+12>>2]!=d<<1)break e;if((d|0)<=0)break d;b=0;while(1){f=b<<1;c=e+272|0;Sc(J[e+296>>2],f,c,0);d=800636;g=J[e+272>>2];if(g-3>>>0<4294967294)break c;h=(b<<4)+a|0;O[h+1688>>3]=(g|0)==1?+J[e+280>>2]:O[e+280>>3];yc(c);Sc(J[e+296>>2],f|1,c,0);f=J[e+272>>2];if(f-3>>>0<4294967294)break c;O[h+1696>>3]=(f|0)==1?+J[e+280>>2]:O[e+280>>3];yc(c);b=b+1|0;if((b|0)>2])continue;break}break d}Cc(1,-1,794436,0);break b}if((d|0)<=0)break d;b=0;if((d|0)!=1){j=d&-2;c=a+1688|0;f=a+528|0;g=0;while(1){h=b<<4; +m=h+c|0;n=f+h|0;O[m>>3]=O[n>>3];O[m+8>>3]=O[n+8>>3];h=h|16;m=h+c|0;h=f+h|0;O[m>>3]=O[h>>3];O[m+8>>3]=O[h+8>>3];b=b+2|0;g=g+2|0;if((j|0)!=(g|0))continue;break}}if(!(d&1))break d;b=(b<<4)+a|0;O[b+1688>>3]=O[b+528>>3];O[b+1696>>3]=O[b+536>>3]}yc(e+288|0);b=J[a+8>>2];J[a+2464>>2]=b;c=J[a+4>>2];if((c|0)>0){d=0;while(1){f=J[((d<<2)+a|0)+1044>>2];if((2147483647/(f|0)|0)<(b|0)){Cc(1,-1,801571,0);break a}b=P(b,f);J[a+2464>>2]=b;d=d+1|0;if((c|0)!=(d|0))continue;break}}o=a,p=Gd(b,8),J[o+2460>>2]=p;kc[J[J[i>> +2]+20>>2]](i);if(J[a+2464>>2]>0){l=1/(l+-1);f=(k|0)>=32?-1:-1<>2]+28>>2]](i)|0;break h;case 8:c=kc[J[J[i>>2]+28>>2]](i)|0;c=(kc[J[J[i>>2]+28>>2]](i)|0)+(c<<8)|0;break h;case 24:c=kc[J[J[i>>2]+28>>2]](i)|0;j=kc[J[J[i>>2]+28>>2]](i)|0;m=kc[J[J[i>>2]+28>>2]](i)|0;c=(kc[J[J[i>>2]+28>>2]](i)|0)+(m+((j<<8)+(c<<16)|0)<<8)|0;break h;default:break i}if((b|0)<(k|0))while(1){d=kc[J[J[i>>2]+28>>2]](i)&255|d<<8;b=b+8|0;if((k|0)>(b|0))continue; +break}b=b-k|0;c=f&d>>>b}O[J[a+2460>>2]+(g<<3)>>3]=l*+(c>>>0);g=g+1|0;if((g|0)>2])continue;break}}kc[J[J[i>>2]+24>>2]](i);c=J[a+4>>2];j:{if((c|0)<=0)break j;b=0;if((c|0)!=1){i=c&-2;d=a+16|0;f=a+2472|0;k=0;while(1){g=b<<3;h=e+16|0;l=O[d+(b<<4)>>3];O[g+h>>3]=l;O[f+g>>3]=l+-1;j=h;g=b|1;h=g<<3;l=O[d+(g<<4)>>3];O[j+h>>3]=l;O[f+h>>3]=l+-1;b=b+2|0;k=k+2|0;if((i|0)!=(k|0))continue;break}}if(!(c&1))break j;c=b<<3;l=O[((b<<4)+a|0)+16>>3];O[c+(e+16|0)>>3]=l;O[(a+c|0)+2472>>3]=l+-1}kc[J[J[a>>2]+16>> +2]](a,e+16|0,a+2728|0);J[a+2984>>2]=1;break a}Cc(1,-1,d,0);yc(e+272|0)}yc(e+288|0)}fc=e+304|0;return a|0}function TXa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=fc-160|0;fc=f;J[f+128>>2]=13;jf(e,J[b+24>>2],f+128|0,0);J[a>>2]=a+4;J[a+4>>2]=0;J[a+8>>2]=0;J[f+112>>2]=13;J[699344]=0;J[f+96>>2]=13;e=ha(3368,J[f+136>>2],807124,f+112|0,0)|0;g=J[699344];J[699344]=0;a:{b:{if((g|0)==1)break b;c:{d:{e:{f:{g:{h:{i:{j:{if(J[e>>2]==7){J[699344]=0;e=ha(3368, +J[f+120>>2],808457,f+96|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;if(J[e>>2]==8)break j}J[699344]=0;$(3370,f+112|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,f+96|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,f+128|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i;break b}J[699344]=0;$(3370,f+112|0);e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;J[f+80>>2]=13;e=f+96|0;g=f+80|0;h=ga(3486,e|0,0,g|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break c; +if(!h){J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(3370,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(3370,f+128|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i;break c}J[699344]=0;$(3370,f+96|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;e=J[J[c>>2]+20>>2];J[699344]=0;e=_(e|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;g=J[J[e>>2]+20>>2];J[699344]=0;o=_(g|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;p=J[693078];e=J[699344]; +J[699344]=0;if((e|0)==1)break g;r=J[J[f+88>>2]+16>>2];if((r|0)>0){e=0;while(1){J[f+64>>2]=13;J[699344]=0;g=f- -64|0;h=ga(3487,J[f+88>>2],e|0,g|0)|0;i=J[699344];J[699344]=0;k:{l:{if((i|0)!=1){if(J[h>>2]==9)break l;J[699344]=0;$(3370,g|0);g=J[699344];J[699344]=0;if((g|0)!=1)break k}e=Z()|0;break a}J[f+56>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+40>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;H[f+31|0]=0;H[f+30|0]=0;J[699344]=0;g=f+16|0;h=f- -64|0;i=f+48|0;Ja(3459,g|0,b|0,c|0,d|0,h|0,i|0,f+32|0,f+31|0,f+30|0);k=J[699344]; +J[699344]=0;m:{n:{o:{p:{q:{r:{if((k|0)!=1){J[699344]=0;$(3370,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break r;h=K[f+27|0];if(!(h<<24>>24<0?J[f+20>>2]:h))break m;if(aC(g))break m;h=K[f+43|0];if(h<<24>>24<0?J[f+36>>2]:h)break m;J[699344]=0;j=i;h=H[f+59|0];i=(h|0)<0;ca(1618,f+4|0,(i?J[f+48>>2]:j)|0,(i?J[f+52>>2]:h&255)|0);h=J[699344];J[699344]=0;if((h|0)==1)break q;s:{if(!p)break s;h=J[J[p>>2]+24>>2];J[699344]=0;s=aa(h|0,p|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break f;if(!s)break s;g=J[J[o>> +2]+16>>2];J[699344]=0;i=_(g|0,o|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break f;k=0;h=J[i>>2];if((h|0)!=J[i+4>>2])while(1){q=k<<2;g=J[q+h>>2];j=K[g+23|0];l=j<<24>>24<0;m=K[f+27|0];n=m<<24>>24<0;j=l?J[g+16>>2]:j;t:{u:{if((j|0)==((n?J[f+20>>2]:m)|0)){if(!j)break u;g=g+12|0;g=qd(l?J[g>>2]:g,n?J[f+16>>2]:f+16|0,j);h=J[i>>2];if(!g)break u;g=J[h+q>>2]}j=K[g+11|0];l=j<<24>>24<0;m=K[f+15|0];n=m<<24>>24<0;j=l?J[g+4>>2]:j;if((j|0)!=((n?J[f+8>>2]:m)|0))break t;if(!j)break u;g=qd(l?J[g>>2]:g,n?J[f+4>>2]:f+4| +0,j);h=J[i>>2];if(g)break t}g=J[h+q>>2];if(J[g+40>>2]!=K[f+31|0])break t;if(J[g+44>>2]==K[f+30|0])break s}k=k+1|0;if(k>>>0>2]-h>>2>>>0)continue;break}g=J[J[o>>2]+28>>2];J[699344]=0;ia(g|0,o|0,f+16|0,s|0,0);g=J[699344];J[699344]=0;if((g|0)==1)break f}J[699344]=0;g=f+4|0;J[f+148>>2]=g;la(3461,f+152|0,a|0,g|0,853832,f+148|0,f+147|0);g=J[699344];J[699344]=0;if((g|0)==1)break f;i=J[f+152>>2];g=i+28|0;if((g|0)==(f+16|0))break n;k=K[f+27|0];h=k<<24>>24;if(H[i+39|0]<0)break o;if((h|0)<0)break p;h= +J[f+20>>2];J[g>>2]=J[f+16>>2];J[g+4>>2]=h;J[g+8>>2]=J[f+24>>2];break n}e=Z()|0;break d}e=Z()|0;break e}e=Z()|0;break e}J[699344]=0;ga(1631,g|0,J[f+16>>2],J[f+20>>2])|0;g=J[699344];J[699344]=0;if((g|0)!=1)break n;break f}J[699344]=0;i=g;g=(h|0)<0;ga(1630,i|0,(g?J[f+16>>2]:f+16|0)|0,(g?J[f+20>>2]:k)|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break f}if(H[f+15|0]>=0)break m;uc(J[f+4>>2])}if(H[f+27|0]<0)uc(J[f+16>>2]);if(H[f+43|0]<0)uc(J[f+32>>2]);if(H[f+59|0]>=0)break k;uc(J[f+48>>2])}e=e+1|0;if((r|0)!= +(e|0))continue;break}}J[699344]=0;$(3370,f+80|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;$(3370,f+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}fc=f+160|0;return}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;if(H[f+15|0]>=0)break e;uc(J[f+4>>2])}if(H[f+27|0]>=0)break d;uc(J[f+16>>2])}if(H[f+43|0]<0)uc(J[f+32>>2]);if(H[f+59|0]>=0)break a;uc(J[f+48>>2]);break a}e=Z()|0;break a}e=Z()|0}dj(a,J[a+4>>2]);ba(e|0);B()}function HIa(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;a=J[J[a+4>>2]+12>>2];if(a)a:{e=a+32|0;g=J[e>>2];if(!g)break a;a=e;while(1){j=J[g+16>>2]<(c|0);a=j?a:g;g=J[(j?g+4|0:g)>>2];if(g)continue;break}if((a|0)==(e|0)|J[a+16>>2]>(c|0))break a;j=J[a+20>>2];a=fc-144|0;fc=a;c=uq(a+136|0);e=J[j+24>>2];J[699344]=0;g=a- -64|0;ca(4961,g|0,e|0,j+12|0);e=J[699344];J[699344]=0;b:{c:{if((e|0)!=1){J[699344]=0;e=aa(3469,c|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){if(H[a+75|0]<0)uc(J[a+64>>2]);d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!e)break n;J[699344]=0;e=_(3470, +c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;if(!e)break n;J[699344]=0;k=aa(4991,a- -64|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;J[699344]=0;e=a+40|0;da(4962,e|0,c|0);g=J[699344];J[699344]=0;if((g|0)==1)break f;J[699344]=0;g=aa(4985,a+52|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;if(H[a+51|0]<0)uc(J[a+40>>2]);J[699344]=0;e=Qd(g,2378592);h=J[699344];J[699344]=0;if((h|0)==1)break m;o:{if(e){J[699344]=0;e=Th(c);h=J[699344];J[699344]=0;if((h|0)==1)break m;if(e)break o;J[699344]= +0;h=$g(c);e=J[699344];J[699344]=0;if((e|0)==1)break j;while(1){J[699344]=0;e=aa(4975,c|0,h|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;if(!e)break o;J[699344]=0;e=a+28|0;da(4962,e|0,c|0);f=J[699344];J[699344]=0;p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{if((f|0)!=1){J[699344]=0;e=aa(4985,a+40|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break D;J[699344]=0;dg(g,e);f=J[699344];J[699344]=0;if((f|0)==1)break C;Rc(e);if(H[a+39|0]<0)uc(J[a+28>>2]);J[699344]=0;e=Qd(g,2378660);f=J[699344];J[699344]= +0;if((f|0)==1)break i;if(!e)break p;J[699344]=0;e=a+16|0;J[e>>2]=0;J[e+4>>2]=0;H[e+8|0]=0;f=J[699344];J[699344]=0;if((f|0)==1)break A;J[699344]=0;ca(4989,c|0,2378688,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break r;J[699344]=0;f=Qd(e,2378724);i=J[699344];J[699344]=0;if((i|0)==1)break r;if(!f)break s;J[699344]=0;h=Th(c);f=J[699344];J[699344]=0;if((f|0)==1)break z;if(h)break t;J[699344]=0;f=$g(c);h=J[699344];J[699344]=0;if((h|0)!=1){while(1){J[699344]=0;h=aa(4975,c|0,f|0)|0;i=J[699344];J[699344]=0; +if((i|0)==1)break y;if(!h)break t;J[699344]=0;h=a+4|0;da(4962,h|0,c|0);i=J[699344];J[699344]=0;if((i|0)==1)break x;J[699344]=0;h=aa(4985,a+28|0,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break w;J[699344]=0;dg(g,h);i=J[699344];J[699344]=0;if((i|0)==1)break v;Rc(h);if(H[a+15|0]<0)uc(J[a+4>>2]);J[699344]=0;h=Qd(g,2378740);i=J[699344];J[699344]=0;if((i|0)==1)break y;if(!h)continue;break}J[699344]=0;ma(4992,j|0,c|0,b|0,k|0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break t}b=Z()|0;Rc(e);break h}b=Z()|0; +break h}b=Z()|0;break B}b=Z()|0;Rc(e)}if(H[a+39|0]>=0)break h;uc(J[a+28>>2]);break h}b=Z()|0;break h}b=Z()|0;Rc(e);break h}b=Z()|0;Rc(e);break h}b=Z()|0;Rc(e);break h}b=Z()|0;break u}b=Z()|0;Rc(h)}if(H[a+15|0]>=0)break q;uc(J[a+4>>2]);Rc(e);break h}Rc(e);break o}Rc(e);continue}b=Z()|0}Rc(e);break h}J[699344]=0;e=Qd(g,2378832);f=J[699344];J[699344]=0;if((f|0)==1)break i;if(!e)continue;break}J[699344]=0;e=Th(c);h=J[699344];J[699344]=0;if((h|0)==1)break j;if(e)break o;J[699344]=0;h=$g(c);e=J[699344]; +J[699344]=0;E:{F:{G:{H:{if((e|0)!=1){while(1){J[699344]=0;e=aa(4975,c|0,h|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break k;if(!e)break o;J[699344]=0;e=a+4|0;da(4962,e|0,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break H;J[699344]=0;e=aa(4985,a+28|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break G;J[699344]=0;dg(g,e);f=J[699344];J[699344]=0;if((f|0)==1)break F;Rc(e);if(H[a+15|0]<0)uc(J[a+4>>2]);J[699344]=0;e=Qd(g,2378740);f=J[699344];J[699344]=0;if((f|0)==1)break k;if(!e)continue;break}J[699344]=0; +ma(4992,j|0,c|0,b|0,k|0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break o}b=Z()|0;break h}b=Z()|0;break h}b=Z()|0;break E}b=Z()|0;Rc(e)}if(H[a+15|0]>=0)break h;uc(J[a+4>>2]);break h}J[699344]=0;e=Qd(g,2378740);h=J[699344];J[699344]=0;if((h|0)==1)break m;if(!e)break o;J[699344]=0;ma(4992,j|0,c|0,b|0,k|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break m}Rc(g);IX(k)}J[c>>2]=769768;b=J[c+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);fc=a+144|0;break b}b=Z()|0;break h}b=Z()|0;break c}b=Z()|0;break h}b=Z()|0;break h}b= +Z()|0}Rc(g);break e}b=Z()|0;if(H[a+51|0]>=0)break e;uc(J[a+40>>2]);break e}b=Z()|0}IX(k);break c}b=Z()|0;break c}b=Z()|0;if(H[a+75|0]>=0)break c;uc(J[a+64>>2]);break c}b=Z()|0}J[c>>2]=769768;a=J[c+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);ba(b|0);B()}}}function KDb(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;e=fc-1168|0;fc=e;if(b)rd(198262,0);b=0;a:{if(ar(a,e+1124|0))break a;if(ar(a,e+1128|0))break a;if(ar(a,e+1132|0))break a;if(ar(a,e+1136|0))break a; +if(ar(a,e+1140|0))break a;if(ar(a,e+1144|0))break a;if(ar(a,e+1148|0))break a;if(ar(a,e+1152|0)|J[e+1124>>2]!=1504078485)break a;l=J[e+1128>>2];if((l|0)<=0)break a;i=J[e+1132>>2];if((i|0)<=0)break a;k=J[e+1136>>2];if((k|0)<=0|(k|0)>32)break a;m=J[e+1144>>2];if(!m)J[e+1140>>2]=P(i,(P(k,l)+15|0)/16|0)<<1;g=3;o=1025;b:switch(k-24|0){default:b=1;o=769;g=1;break;case 0:case 8:break b}J[e+28>>2]=0;J[e+20>>2]=i;J[e+16>>2]=l;J[e+8>>2]=1;J[e+12>>2]=1;J[e>>2]=0;J[e+4>>2]=0;d=(k|0)==24?8:(k|0)==32?8:k;J[e+24>> +2]=d;if(!b){J[e+92>>2]=0;J[e+88>>2]=d;J[e+84>>2]=i;J[e+80>>2]=l;J[e+76>>2]=1;J[e+68>>2]=0;J[e+72>>2]=1;J[e+60>>2]=0;J[e+64>>2]=0;J[e+56>>2]=d;J[e+52>>2]=i;J[e+48>>2]=l;J[e+40>>2]=1;J[e+44>>2]=1;J[e+32>>2]=0;J[e+36>>2]=0}b=0;g=Hs(g,e);if(!g)break a;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:switch(J[e+1148>>2]){case 0:break l;case 1:break m;default:break j}rd(202311,0);c=1<=257)break h;d=J[e+1152>>2];if((k|0)!=31)Ac(e+100|0,0,((c|0)<=1?1:c)<<2);if((d|0)<0)break j;f=(d|0)/3|0;if(d-P(f,3)|(d|0)>3<< +k)break j;if(d>>>0<3)break l;d=0;while(1){j=J[a+8>>2];if(j&7)break j;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;n:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break n}c=td(a,1);if((c|0)==-1)break j}j=(d<<2)+e|0;J[j+100>>2]=J[j+100>>2]|c&255;d=d+1|0;if((f|0)!=(d|0))continue;break}d=0;while(1){j=J[a+8>>2];if(j&7)break j;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;o:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+ +1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break o}c=td(a,1);if((c|0)==-1)break j}j=(d<<2)+e|0;J[j+100>>2]=J[j+100>>2]|c<<8&65280;d=d+1|0;if((f|0)!=(d|0))continue;break}d=0;while(1){j=J[a+8>>2];if(j&7)break j;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;p:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break p}c=td(a,1);if((c|0)==-1)break j}h=(d<<2)+e|0;j=h+100|0;J[j>>2]=J[h+100>>2]|c<<16&16711680;d=d+1|0;if((f|0)!=(d|0))continue;break}}switch(m| +0){case 0:case 1:break i;case 2:break e;default:break g}}J[a+8>>2]=j|4}Mh(g);break a}if(J[g+16>>2]>0){d=0;q:{while(1){r:{c=Dk(1,J[g+8>>2]-J[g>>2]|0);J[(e+1156|0)+(d<<2)>>2]=c;if(!c)break r;d=d+1|0;if((d|0)>2])continue;break q}break}fa(200866,201362,262,207885);B()}p=J[e+1164>>2];q=J[e+1160>>2];j=J[e+1156>>2]}r=(k|0)==32?-1:-1<>2];if(f&7)break f;h= +J[a+64>>2];if((h|0)>=0&(h|0)<=J[a+60>>2])break c;f=J[a+28>>2];J[a+28>>2]=f-1;s:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+24>>2]=f+1;f=K[f|0];break s}f=td(a,1);if((f|0)==-1)break f}i=i<<8|f;d=d+8|0;if((k|0)>(d|0))continue;break}d=d-k|0;v=(d|0)==32?-1:-1<>d&r;h=J[j+20>>2];t:{if(J[g+16>>2]==3){w=f&255;n=J[j+28>>2];if((h|0)==1)h=J[n>>2]+(c<<2)|0;else h=J[n+(c<<2)>>2];J[h>>2]=w;n=f>>>8&255;h=J[q+28>>2];if(J[q+20>>2]==1)h=J[h>>2]+(c<<2)|0;else h=J[h+(c<<2)>>2];J[h>>2]=n;f=f>>>16&255; +h=J[p+28>>2];if(J[p+20>>2]==1){J[J[h>>2]+(c<<2)>>2]=f;break t}J[J[h+(c<<2)>>2]>>2]=f;break t}n=J[j+28>>2];if((h|0)==1){J[J[n>>2]+(c<<2)>>2]=f;break t}J[J[n+(c<<2)>>2]>>2]=f}i=i&v;c=c+1|0;if((t|0)!=(c|0))continue;break}u:{if(u)break u;f=J[a+8>>2];if(f&7)break f;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;d=J[a+28>>2];J[a+28>>2]=d-1;if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;J[a+24>>2]=J[a+24>>2]+1;break u}if((td(a,1)|0)==-1)break f}d=0;i=J[g+16>>2];if((i|0)>0)while(1){if(Fk(g,d,0,m,l,1,J[(e+1156|0)+ +(d<<2)>>2]))break f;d=d+1|0;i=J[g+16>>2];if((d|0)<(i|0))continue;break}m=m+1|0;if((s|0)!=(m|0))continue;break}break d}fa(202711,201362,327,207900);B()}rd(200561,0)}Mh(g);break a}rd(199442,0);Mh(g);break a}a=0;if((i|0)>0)while(1){mg(J[(e+1156|0)+(a<<2)>>2]);a=a+1|0;if((a|0)>2])continue;break}J[g+28>>2]=o;v:{w:switch(k-24|0){case 0:case 8:a=J[g+24>>2];J[J[a>>2]+40>>2]=0;J[J[a+4>>2]+40>>2]=1;J[J[a+8>>2]+40>>2]=2;break v;default:break w}J[J[J[g+24>>2]>>2]+40>>2]=0}b=g;break a}J[a+8>>2]=f|4;Mh(g)}fc= +e+1168|0;return b|0}function BGa(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=fc-112|0;fc=e;j=e+100|0;J[j>>2]=0;J[j+4>>2]=0;H[j+8|0]=0;J[699344]=0;f=vk(a);h=J[699344];J[699344]=0;g=1;a:{b:{c:{if((h|0)==1)break c;d:{e:{f:{g:{h:{if(!f)break h;J[699344]=0;g=e+72|0;da(4970,g|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break d;J[699344]=0;g=aa(4985,e+88|0,g|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break f;J[699344]=0;dg(j,g);f=J[699344];J[699344]=0;if((f|0)==1)break g;Rc(g);if(H[e+83| +0]<0)uc(J[e+72>>2]);g=1;i:{j:{k:{while(1){J[699344]=0;f=J[j+4>>2];h=J[699344];J[699344]=0;if((h|0)==1)break b;l:{m:{n:{o:{if(f){J[699344]=0;f=Qd(j,2383820);h=J[699344];J[699344]=0;if((h|0)==1)break b;p:{if(!(!d|f^1)){J[699344]=0;f=e+72|0;da(4971,f|0,a|0);h=J[699344];J[699344]=0;q:{if((h|0)!=1){J[699344]=0;ca(5022,d|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break q;if(H[e+83|0]>=0)break p;uc(J[e+72>>2]);break p}a=Z()|0;break a}a=Z()|0;if(H[e+83|0]>=0)break a;uc(J[e+72>>2]);break a}J[699344]=0;f= +Qd(j,2383908);h=J[699344];J[699344]=0;if((h|0)==1)break b;if(f){J[699344]=0;f=e+72|0;da(4971,f|0,a|0);h=J[699344];J[699344]=0;r:{if((h|0)!=1){J[699344]=0;ca(5022,b|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break r;if(H[e+83|0]>=0)break p;uc(J[e+72>>2]);break p}a=Z()|0;break a}a=Z()|0;if(H[e+83|0]>=0)break a;uc(J[e+72>>2]);break a}J[699344]=0;f=Qd(j,2383940);h=J[699344];J[699344]=0;if((h|0)==1)break b;if(f){J[699344]=0;f=e+72|0;da(4971,f|0,a|0);h=J[699344];J[699344]=0;s:{if((h|0)!=1){J[699344]= +0;ca(5022,c|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break s;if(H[e+83|0]>=0)break p;uc(J[e+72>>2]);break p}a=Z()|0;break a}a=Z()|0;if(H[e+83|0]>=0)break a;uc(J[e+72>>2]);break a}J[699344]=0;f=Qd(j,2383980);h=J[699344];J[699344]=0;if((h|0)==1)break b;if(!f)break p;J[699344]=0;g=e+72|0;da(4971,g|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break o;J[699344]=0;f=aa(4985,e+60|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break n;if(H[e+83|0]<0)uc(J[e+72>>2]);J[699344]=0;g=Qd(f,2384016);h=J[699344]; +J[699344]=0;if((h|0)==1)break m;Rc(f)}J[699344]=0;f=Mi(a);h=J[699344];J[699344]=0;if((h|0)==1)break b;if(f)break l}J[699344]=0;gj(a);d=J[699344];J[699344]=0;if((d|0)==1)break c;break h}a=Z()|0;break a}a=Z()|0;if(H[e+83|0]>=0)break a;uc(J[e+72>>2]);break a}a=Z()|0;Rc(f);break a}J[699344]=0;f=e+72|0;da(4970,f|0,a|0);h=J[699344];J[699344]=0;if((h|0)!=1){J[699344]=0;f=aa(4985,e+48|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break k;J[699344]=0;dg(j,f);h=J[699344];J[699344]=0;if((h|0)==1)break j;Rc(f); +if(H[e+83|0]>=0)continue;uc(J[e+72>>2]);continue}break}a=Z()|0;break a}a=Z()|0;break i}a=Z()|0;Rc(f)}if(H[e+83|0]>=0)break a;uc(J[e+72>>2]);break a}J[699344]=0;d=Th(a);f=J[699344];J[699344]=0;if((f|0)==1)break c;t:{u:{v:{w:{x:{if(d)break x;J[e+80>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;J[699344]=0;d=e+36|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;f=J[699344];J[699344]=0;if((f|0)==1)break u;J[699344]=0;f=$g(a);h=J[699344];J[699344]=0;if((h|0)==1)break w;h=g&1;y:{while(1){z:{J[699344]=0;g=aa(4975,a|0,f|0)|0;i=J[699344]; +J[699344]=0;if((i|0)==1)break z;if(!g)break y;J[699344]=0;g=e+12|0;da(4962,g|0,a|0);i=J[699344];J[699344]=0;A:{B:{C:{D:{if((i|0)!=1){J[699344]=0;g=aa(4985,e+24|0,g|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break D;J[699344]=0;dg(d,g);i=J[699344];J[699344]=0;if((i|0)==1)break C;Rc(g);if(H[e+23|0]<0)uc(J[e+12>>2]);J[699344]=0;g=Qd(d,2384048);i=J[699344];J[699344]=0;if((i|0)==1)break z;if(!g)break A;J[699344]=0;g=J[c+4>>2];i=J[699344];J[699344]=0;if((i|0)==1)break z;if(g)break A;J[699344]=0;ca(4998,a| +0,c|0,0);g=J[699344];J[699344]=0;if((g|0)!=1)continue;break z}a=Z()|0;break v}a=Z()|0;break B}a=Z()|0;Rc(g)}if(H[e+23|0]>=0)break v;uc(J[e+12>>2]);break v}J[699344]=0;g=Qd(d,2384140);i=J[699344];J[699344]=0;if((i|0)==1)break z;if(!g)continue;J[699344]=0;g=J[b+4>>2];i=J[699344];J[699344]=0;if((i|0)==1)break z;if(g)continue;J[699344]=0;ca(5134,a|0,e+72|0,h|0);g=J[699344];J[699344]=0;if((g|0)!=1)continue}break}a=Z()|0;break v}J[699344]=0;ia(5007,b|0,(H[e+83|0]<0?J[e+72>>2]:e+72|0)|0,1,-1);a=J[699344]; +J[699344]=0;if((a|0)==1)break w;Rc(d);if(H[e+83|0]>=0)break x;uc(J[e+72>>2])}Rc(j);fc=e+112|0;return}a=Z()|0}Rc(d);break t}a=Z()|0}if(H[e+83|0]>=0)break a;uc(J[e+72>>2]);break a}a=Z()|0;Rc(g);break e}a=Z()|0}if(H[e+83|0]>=0)break a;uc(J[e+72>>2]);break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0}Rc(j);ba(a|0);B()}function W3a(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;d=fc-176|0;fc=d;J[d+172>>2]=0;J[d+168>>2]=0;e=K[a+11|0];f=e<<24>>24<0;_r(f?J[a>>2]:a,f?J[a+4>>2]:e,d+172|0, +d+168|0,0);a:{k=bT(J[d+172>>2]);if(k){e=BG(k);if(e)while(1){f=1;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:switch(K[e+18|0]){case 0:h=J[d+172>>2];g=Yc(h);if(g>>>0>=2147483632)break c;n:{if(g>>>0<=10){H[d+39|0]=g;f=d+28|0;break n}i=(g|15)+1|0;f=vc(i);J[d+36>>2]=i|-2147483648;J[d+28>>2]=f;J[d+32>>2]=g}l=cd(f,h,g)+g|0,m=0,H[l|0]=m;J[699344]=0;f=aa(2834,d+28|0,28666)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;J[d+48>>2]=J[f+8>>2];g=J[f+4>>2];J[d+40>>2]=J[f>>2];J[d+44>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]= +0;h=e+19|0;g=Yc(h);if(g>>>0>=2147483632){J[699344]=0;$(3030,d+16|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;break a}o:{if(g>>>0<=10){H[d+27|0]=g;f=d+16|0;break o}J[699344]=0;i=(g|15)+1|0;f=_(4,i|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break k;J[d+16>>2]=f;J[d+20>>2]=g;J[d+24>>2]=i|-2147483648}l=cd(f,h,g)+g|0,m=0,H[l|0]=m;J[699344]=0;f=K[d+27|0];g=f<<24>>24<0;f=ga(2835,d+40|0,(g?J[d+16>>2]:d+16|0)|0,(g?J[d+20>>2]:f)|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i;J[d- -64>>2]=J[f+8>>2];g=J[f+ +4>>2];J[d+56>>2]=J[f>>2];J[d+60>>2]=g;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+51|0]<0)uc(J[d+40>>2]);if(H[d+39|0]<0)uc(J[d+28>>2]);g=J[d+56>>2];h=H[d+67|0];ol((h|0)<0?g:d+56|0,d+72|0);f=J[d+76>>2]&61440;if((h|0)<0)uc(g);if((f|0)==32768)break f;f=(f|0)==16384;break;case 4:break m;case 8:break f;default:break b}if(!f|!c)break b;if(K[e+19|0]!=46)break e;break b}e=Z()|0;break g}e=Z()|0;break h}e=Z()|0;break h}e=Z()|0;if(H[d+27|0]>=0)break h;uc(J[d+16>>2])}if(H[d+51|0]>= +0)break g;uc(J[d+40>>2])}if(H[d+39|0]>=0)break d;uc(J[d+28>>2]);ba(e|0);B()}e=e+19|0;Ll(d+72|0,e,Yc(e));e=K[a+11|0];g=e<<24>>24<0;p:{q:{r:{s:{t:{u:{v:{h=g?J[a+4>>2]:e;e=h+1|0;w:{if(e>>>0>=1073741808){J[699344]=0;$(2959,d+40|0);break w}if(e>>>0<=1){J[d+48>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;H[d+51|0]=e;f=d+40|0;break u}f=e|3;if(f>>>0<1073741823)break v;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a;e=Z()|0;break p}J[699344]=0;i=f+1|0;f=_(4,i<<2)|0;j=J[699344];J[699344]=0;if((j|0)==1)break t; +J[d+44>>2]=e;J[d+40>>2]=f;J[d+48>>2]=i|-2147483648}e=h<<2;e=cd(f,g?J[a>>2]:a,e)+e|0;J[e>>2]=47;J[e+4>>2]=0;J[699344]=0;e=K[d+83|0];f=e<<24>>24<0;e=ga(2960,d+40|0,(f?J[d+72>>2]:d+72|0)|0,(f?J[d+76>>2]:e)|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break s;f=d- -64|0;J[f>>2]=J[e+8>>2];g=J[e+4>>2];J[d+56>>2]=J[e>>2];J[d+60>>2]=g;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;e=J[b+4>>2];x:{if(e>>>0>2]){g=J[d+60>>2];J[e>>2]=J[d+56>>2];J[e+4>>2]=g;J[e+8>>2]=J[f>>2];J[f>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[b+4>>2]= +e+12;break x}J[699344]=0;da(2957,b|0,d+56|0);e=J[699344];J[699344]=0;if((e|0)==1)break r;if(H[d+67|0]>=0)break x;uc(J[d+56>>2])}if(H[d+51|0]<0)uc(J[d+40>>2]);if(H[d+83|0]>=0)break b;uc(J[d+72>>2]);break b}e=Z()|0;break p}e=Z()|0;break q}e=Z()|0;if(H[d+67|0]>=0)break q;uc(J[d+56>>2])}if(H[d+51|0]>=0)break p;uc(J[d+40>>2])}if(H[d+83|0]>=0)break d;uc(J[d+72>>2]);ba(e|0);B()}e=e+19|0;Ll(d+72|0,e,Yc(e));e=K[a+11|0];g=e<<24>>24<0;y:{z:{A:{B:{C:{D:{E:{h=g?J[a+4>>2]:e;e=h+1|0;F:{if(e>>>0>=1073741808){J[699344]= +0;$(2959,d+56|0);break F}if(e>>>0<=1){J[d- -64>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;H[d+67|0]=e;f=d+56|0;break D}f=e|3;if(f>>>0<1073741823)break E;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a;e=Z()|0;break y}J[699344]=0;i=f+1|0;f=_(4,i<<2)|0;j=J[699344];J[699344]=0;if((j|0)==1)break C;J[d+60>>2]=e;J[d+56>>2]=f;J[d+64>>2]=i|-2147483648}e=h<<2;e=cd(f,g?J[a>>2]:a,e)+e|0;J[e>>2]=47;J[e+4>>2]=0;J[699344]=0;e=K[d+83|0];f=e<<24>>24<0;e=ga(2960,d+56|0,(f?J[d+72>>2]:d+72|0)|0,(f?J[d+76>>2]:e)| +0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break B;J[d+8>>2]=J[e+8>>2];f=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=f;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[699344]=0;ca(2995,d|0,b|0,1);e=J[699344];J[699344]=0;if((e|0)==1)break A;if(H[d+11|0]<0)uc(J[d>>2]);if(H[d+67|0]<0)uc(J[d+56>>2]);if(H[d+83|0]>=0)break b;uc(J[d+72>>2]);break b}e=Z()|0;break y}e=Z()|0;break z}e=Z()|0;if(H[d+11|0]>=0)break z;uc(J[d>>2])}if(H[d+67|0]>=0)break y;uc(J[d+56>>2])}if(H[d+83|0]>=0)break d;uc(J[d+72>>2])}ba(e|0);B()}_d(d+28|0);B()}e= +BG(k);if(e)continue;break}uT(k)}a=J[d+172>>2];if(a)uc(a);fc=d+176|0;return}B()}function hua(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=fc+-64|0;fc=f;a:{b:{c:{d:{e:{f:{g:{if(J[a+36>>2]>0){a=Qc(f+28|0,2390337,2390750,178,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}e=J[a+24>>2];if(!(!e|K[e+20|0])){a=Qc(f+28|0,2391166,2390750,180,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}J[a+36>>2]=-1;j= +J[a+28>>2];h=J[a+32>>2];if((j|0)<(h|0)){j=J[a+16>>2];kc[J[J[j>>2]+20>>2]](j,h,0,0)|0;j=J[a+32>>2];J[a+28>>2]=j;e=J[a+24>>2]}h:{if(e){h=0;if(J[e+8>>2]==(j|0))break h}if(j&1){h=J[a+16>>2];j=kc[J[J[h>>2]+8>>2]](h,f+52|0,1)|0;e=J[a+24>>2];if(!j){h=0;if(!e)break h}j=j+J[a+28>>2]|0;J[a+28>>2]=j}h=j;while(1){i:{if(!e)break i;e=J[e+8>>2];if((e|0)==(h|0)){h=0;break h}if((e|0)>=(h+4|0))break i;a=Qc(f+28|0,2391750,2390750,211,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}g= +Up(J[a+16>>2],f+52|0,4);h=g+J[a+28>>2]|0;J[a+32>>2]=h;J[a+28>>2]=h;e=J[a+24>>2];if(!(e|g)){h=0;break h}if((g|0)!=4){a=Qc(f+28|0,J[685886],2390750,217,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}g=K[f+55|0];i=K[f+54|0];l=K[f+52|0];k=K[f+53|0];if(!((l|0)!=83|(k|0)!=68|((i|0)!=74|(g|0)!=86))){H[a+21|0]=1;continue}if(!((l|0)!=65|(k|0)!=84|((i|0)!=38|(g|0)!=84))){H[a+20|0]=1;continue}break}if(!(!e|J[e+8>>2]>=(h+4|0))){a=Qc(f+28|0,2392241,2390750,236,2426936,0); +J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}e=f+56|0;h=Up(J[a+16>>2],e,4);g=h+J[a+28>>2]|0;J[a+32>>2]=g;J[a+28>>2]=g;if((h|0)!=4){a=Qc(f+28|0,J[685886],2390750,240,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}i=J[a+24>>2];h=J[f+56>>2];h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);if(!(!i|J[i+8>>2]>=(h+g|0))){a=Qc(f+28|0,2392598,2390750,246,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}k= +qA(f+52|0);if((k|0)<0){a=Qc(f+28|0,2393190,2390750,251,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}j:{k:{l:{if(k){if(!(!i|J[i+8>>2]>=(g+4|0))){a=Qc(f+28|0,2393414,2390750,257,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}g=Up(J[a+16>>2],e,4);J[a+28>>2]=g+J[a+28>>2];if((g|0)!=4){a=Qc(f+28|0,J[685886],2390750,261,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g;break b}if(qA(e))break l; +i=J[a+24>>2];g=J[a+32>>2]}e=vc(24);J[e+8>>2]=g+h;J[e+4>>2]=g;J[e>>2]=i;i=J[f+56>>2];g=J[f+52>>2];H[e+20|0]=(k|0)!=0;H[e+12|0]=g;H[e+13|0]=g>>>8;H[e+14|0]=g>>>16;H[e+15|0]=g>>>24;g=k?i:0;H[e+16|0]=g;H[e+17|0]=g>>>8;H[e+18|0]=g>>>16;H[e+19|0]=g>>>24;J[a+24>>2]=e;g=DH(f+28|0,e+12|0,4);e=J[g>>2];if(!e)break k;i=J[J[e>>2]+28>>2];J[699344]=0;ca(i|0,f+20|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break j;a=Z()|0;break c}a=Qc(f+28|0,2393997,2390750,263,2426936,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break g;break b}J[f+20>>2]=0}J[699344]=0;aa(5153,b|0,f+20|0)|0;e=J[699344];J[699344]=0;m:{if((e|0)!=1){e=J[f+20>>2];J[f+20>>2]=0;if(!e)break m;J[699344]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;l=J[699344];J[699344]=0;if((l|0)!=1){if(i)break m;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break m}break a}a=Z()|0;zc(f+20|0);break c}e=J[b>>2];J[b+4>>2]=J[(e?e+12|0:2743576)>>2];wc(g);if(k){e=f+20|0;uV(e,b,2394283);g=J[a+24>>2];J[699344]=0;g=ga(5339,f+12|0,g+16|0,4)|0;i=J[699344];J[699344]= +0;n:{o:{if((i|0)!=1){J[699344]=0;ca(5292,f+28|0,e|0,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break o;e=J[f+28>>2];p:{if(e){i=J[J[e>>2]+28>>2];J[699344]=0;ca(i|0,f+60|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break p;a=Z()|0;break f}J[f+60>>2]=0}J[699344]=0;aa(5153,b|0,f+60|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){e=J[f+60>>2];J[f+60>>2]=0;if(!e)break n;J[699344]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;k=J[699344];J[699344]=0;if((k|0)!=1){if(i)break n;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e| +0)!=1)break n}break a}a=Z()|0;zc(f+60|0);break f}a=Z()|0;break d}a=Z()|0;break e}e=b;b=J[b>>2];J[e+4>>2]=J[(b?b+12|0:2743576)>>2];wc(f+28|0);wc(g);wc(f+20|0)}if(c)J[c>>2]=j;if(!d)break h;J[d>>2]=(J[J[a+24>>2]+8>>2]-j|0)+1&-2}fc=f- -64|0;return h|0}B()}wc(f+28|0)}wc(g)}wc(f+20|0);ba(a|0);B()}wc(g);ba(a|0);B()}b=Z()|0;Kc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function f1a(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;a:{c=J[a+4>>2];b:{if(!c)break b;e=J[a+16>>2];j=J[a+20>>2];if(e>>> +0>j>>>0)break b;h=J[a+8>>2];n=J[a+12>>2];if(h>>>0<=n>>>0)break a}J[b>>2]=1;return}c:{d:{e:{d=J[c+56>>2];if(d){c=e;break e}if(h>>>0>=n>>>0)break c;i=J[c+8>>2];o=L[i+6>>1]>>>7|0;f=J[a+24>>2];f:while(1){l=P(o&65535,12)+753960|0;d=h;while(1){g:{c=J[a+4>>2];if(J[c+52>>2]!=10)break g;J[c+52>>2]=0;h=J[l>>2];h:{if(e>>>0>>0){g=J[a+8>>2];H[e|0]=239;c=e+1|0;i:{if(f){g=(d-g>>1)-1|0;J[f>>2]=g;if(c>>>0>=j>>>0)break i;H[c|0]=h;J[f+4>>2]=g;f=f+8|0;break h}if(c>>>0>=j>>>0)break i;H[c|0]=h;f=0;break h}e=J[a+4>> +2];f=H[e+63|0];H[e+63|0]=f+1;H[(e+f|0)+76|0]=h;J[b>>2]=15;e=c;h=d;break c}f=H[c+63|0];H[c+63|0]=f+1;H[(c+f|0)+76|0]=239;c=J[a+4>>2];f=H[c+63|0];H[c+63|0]=f+1;H[(c+f|0)+76|0]=h;J[b>>2]=15;h=d;break c}e=e+2|0;if(J[b>>2]<=0)break g;h=d;break c}h=d+2|0;j:{d=L[d>>1];if(d>>>0<=160){c=J[a+4>>2];J[c+52>>2]=d;k:{l:{if(e>>>0>>0){c=J[a+8>>2];H[e|0]=d;if(f)break l;f=0;break k}f=H[c+63|0];H[c+63|0]=f+1;H[(c+f|0)+76|0]=d;J[b>>2]=15;break c}J[f>>2]=(h-c>>1)-1;f=f+4|0}e=e+1|0;if(J[b>>2]>0)break c;break j}m=L[i+ +2>>1];m:{n:{o:{if((d|0)!=8204){if((d|0)!=8205)break o;I[i+2>>1]=0;g=m?233:217;d=8205;c=e;break n}I[i+2>>1]=0;if(!m)break j;d=8204;g=232;c=e;break n}g=65535;p:{c=d-2304|0;q:{if((c&65535)>>>0>1151){c=e;break q}l=0;if((d-2406&65535)>>>0<=65533){o=(c|0)/128|0;c=o<<7;if(K[i+24|0]|L[i+6>>1]!=(c&65408)){H[i+24|0]=0;I[i+6>>1]=c;J[i+12>>2]=J[P(o&65535,12)+753956>>2];l=1}else l=0;r:{s:{g=c&65535;if((g|0)!=256)break s;c=2562;t:switch(d-2672|0){case 0:break r;case 1:break t;default:break s}c=2673;I[i+2>>1]=2673; +break r}c=d}d=c-g|0}g=d&255;c=L[(g<<1)+754896>>1];if(!(J[i+12>>2]&K[g+754688|0]))c=(d|0)!=2353?-1:L[i+6>>1]!=768?-1:c;g=c&65535;u:{if(!l){c=e;break u}l=J[P(o&65535,12)+753960>>2];v:{w:{if(e>>>0>>0){k=J[a+8>>2];H[e|0]=239;c=e+1|0;if(f){k=(h-k>>1)-1|0;J[f>>2]=k;if(c>>>0>>0)break w;f=f+4|0;break p}f=0;if(c>>>0>=j>>>0)break p;H[c|0]=l;f=0;break v}c=J[a+4>>2];k=H[c+63|0];H[c+63|0]=k+1;H[(c+k|0)+76|0]=239;c=J[a+4>>2];k=H[c+63|0];H[c+63|0]=k+1;H[(c+k|0)+76|0]=l;J[b>>2]=15;c=e;break n}H[c|0]=l;J[f+ +4>>2]=k;f=f+8|0}c=e+2|0;if(J[b>>2]>0)break n}if((d|0)!=2417)break q;e=c;if(L[i+6>>1]==256)break m}I[i+2>>1]=0;break n}e=J[a+4>>2];k=H[e+63|0];H[e+63|0]=k+1;H[(e+k|0)+76|0]=l;J[b>>2]=15}x:{y:{if(!(L[i+6>>1]!=256|(m|0)!=2673|(!(H[d+752512|0]&1)|d-2384>>>0<4294967216))){I[i+2>>1]=0;e=g<<16|g;m=e|59392;if(c>>>0>>0){k=h-J[a+8>>2]>>1;l=k-1|0;z:{A:{B:{C:{if(m>>>0<65536){d=c;break C}H[c|0]=e>>>16;d=c+1|0;if(!f)break B;l=k-2|0;J[f>>2]=l;f=f+4|0}if(d>>>0>=j>>>0)break A;H[d|0]=m>>>8;e=d+1|0;if(f)break z; +c=0;break x}if(d>>>0>>0)break y}e=d;c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=m>>>8;c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g;J[b>>2]=15;break c}J[f>>2]=l;c=f+4|0;break x}d=J[a+4>>2];if(e&16711680){f=H[d+63|0];H[d+63|0]=f+1;H[(d+f|0)+76|0]=e>>>16;d=J[a+4>>2]}e=H[d+63|0];H[d+63|0]=e+1;H[(d+e|0)+76|0]=m>>>8;e=J[a+4>>2];d=H[e+63|0];H[e+63|0]=d+1;H[(d+e|0)+76|0]=g;J[b>>2]=15;e=c;break c}D:{E:{F:{G:{H:{I:{J:{K:{if((g|0)!=232){if((g|0)==65535)break D;if(c>>>0>=j>>>0)break H; +d=(h-J[a+8>>2]>>1)-1|0;if(g>>>0<=255)break K;H[c|0]=g>>>8;e=c+1|0;if(!f)break J;J[f>>2]=d;if(e>>>0>=j>>>0)break I;H[c+1|0]=g;J[f+4>>2]=d;e=c+2|0;f=f+8|0;break E}I[i+2>>1]=232;if(c>>>0>=j>>>0)break G;d=(h-J[a+8>>2]>>1)-1|0}H[c|0]=g;e=c+1|0;if(f)break F;f=0;break E}if(e>>>0>=j>>>0)break I;H[c+1|0]=g;e=c+2|0;f=0;break E}c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g;J[b>>2]=15;break c}if(!(g&65280))break G;e=J[a+4>>2];d=H[e+63|0];H[e+63|0]=d+1;H[(d+e|0)+76|0]=g>>>8}e=J[a+4>>2];d=H[e+63|0];H[e+ +63|0]=d+1;H[(d+e|0)+76|0]=g;J[b>>2]=15;e=c;break c}J[f>>2]=d;f=f+4|0}if(J[b>>2]<=0)break m;break c}f=10;if((d&-2048)!=55296)break d;f=12;if(d&1024)break d;break e}H[c+1|0]=m>>>8;e=c+2|0;c=0}L:{M:{if(e>>>0>>0){H[e|0]=g;if(c)break M;f=0;break L}c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g;J[b>>2]=15;break c}J[c>>2]=l;f=c+4|0}e=d+2|0;if(J[b>>2]>0)break c}if(h>>>0>>0)continue f;break c}d=h;if(n>>>0>d>>>0)continue;break}break}break c}f=0;if(h>>>0>=n>>>0)break d;f=L[h>>1];e=(f&64512)== +56320;d=e?(f+(d<<10)|0)-56613888|0:d;h=(e<<1)+h|0;f=e?10:12}e=c;J[b>>2]=f;J[J[a+4>>2]+56>>2]=d}J[a+16>>2]=e;J[a+8>>2]=h}function VV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;J[a>>2]=0;d=J[685894];J[a+4>>2]=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{if(b-1>>>0>6)break p;q:{r:switch(b-6|0){case 1:J[699344]=0;d=aa(5149,c+20|0,2399618)|0;b=J[699344];J[699344]=0;if((b|0)==1)break o;J[699344]=0;b=c+28|0;ca(5218,b|0,2391049,d|0);e=J[699344];J[699344]=0;s:{if((e|0)!=1){J[699344]=0;ca(5291, +c+36|0,b|0,2392661);b=J[699344];J[699344]=0;if((b|0)==1)break s;b=J[c+36>>2];t:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break t;b=Z()|0;break d}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break q;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break q;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break q}break a}b=Z()|0;zc(c+ +12|0);break d}b=Z()|0;wc(d);break b}b=Z()|0;break c;case 0:J[699344]=0;J[c+16>>2]=d;J[c+12>>2]=0;b=c+12|0;aa(5315,b|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,b|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,b|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)| +0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n; +J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;aa(5315,c+12|0,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break n;J[699344]=0;d=c+20|0;ca(5291,d|0,b|0,2391049);b=J[699344];J[699344]=0;u:{v:{if((b|0)!=1){J[699344]=0;b=c+28|0;ca(5291,b|0,d|0,2399267);d=J[699344];J[699344]=0;if((d|0)==1)break v;J[699344]=0;ca(5291,c+36|0,b|0,2392661);b=J[699344];J[699344]=0;if((b|0)==1)break u;b=J[c+36>>2];w:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+44|0,b|0,1);b=J[699344]; +J[699344]=0;if((b|0)!=1)break w;b=Z()|0;break h}J[c+44>>2]=0}J[699344]=0;aa(5153,a|0,c+44|0)|0;b=J[699344];J[699344]=0;x:{if((b|0)!=1){b=J[c+44>>2];J[c+44>>2]=0;if(!b)break x;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break x;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break x}break a}b=Z()|0;zc(c+44|0);break h}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(c+36|0);wc(c+28|0);wc(c+20|0);wc(c+12|0);break p}b=Z()|0;break e}b=Z()|0;break f}b= +Z()|0;break g;default:break r}J[c+16>>2]=d;J[c+12>>2]=0;e=b<<1|1;d=0;while(1){J[699344]=0;f=c+12|0;aa(5315,f|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break m;g=(d|0)==(e|0);d=d+1|0;if(!g)continue;break}J[699344]=0;d=c+20|0;ca(5291,d|0,f|0,2391049);e=J[699344];J[699344]=0;y:{z:{if((e|0)!=1){J[699344]=0;e=c+28|0;ca(5291,e|0,d|0,J[(b<<2)+2418944>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break z;J[699344]=0;ca(5291,c+36|0,e|0,2393295);b=J[699344];J[699344]=0;if((b|0)==1)break y;b=J[c+36>>2];A:{if(b){d= +J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+44|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break A;b=Z()|0;break l}J[c+44>>2]=0}J[699344]=0;aa(5153,a|0,c+44|0)|0;b=J[699344];J[699344]=0;B:{if((b|0)!=1){b=J[c+44>>2];J[c+44>>2]=0;if(!b)break B;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break B;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break B}break a}b=Z()|0;zc(c+44|0);break l}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(c+36|0);wc(c+28|0); +wc(c+20|0);wc(c+12|0);break p}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;break k}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(c+36|0);wc(c+28|0);wc(d)}fc=c+48|0;return}b=Z()|0;break b}b=Z()|0;break e}b=Z()|0;break i}wc(c+36|0)}wc(c+28|0)}wc(c+20|0)}wc(c+12|0);break b}wc(c+36|0)}wc(c+28|0)}wc(c+20|0)}wc(c+12|0);break b}wc(c+36|0)}wc(c+28|0);wc(d)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function Vc(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;a:{if(K[a+96|0])break a;c=J[a+12>>2]; +b:{if(!(J[a+56>>2]|J[a+60>>2]))break b;if(c&4095)b=a+20|0;else{b=J[a>>2];if(b>>>0>1023)break b;c=J[a+8>>2];if(c>>>0>=b>>>0){d=J[a+4>>2];c:{if(d>>>0>b>>>0){e=J[a+16>>2];break c}h=d+256|0;e=vc(h>>>0>1073741823?-1:h<<2);i=J[a+16>>2];if(i){xc(e,i,d<<2);uc(i);h=J[a+4>>2]+256|0;c=J[a+8>>2];b=J[a>>2]}J[a+4>>2]=h;J[a+16>>2]=e}d=vc(65536);J[a>>2]=b+1;J[(b<<2)+e>>2]=d}J[a+8>>2]=c+1;b=J[a+16>>2]+(c<<2)|0}b=J[b>>2];J[a+20>>2]=b+16;d=J[a+60>>2];J[b+8>>2]=J[a+56>>2];J[b+12>>2]=d;d=J[a+52>>2];J[b>>2]=J[a+48>>2]; +J[b+4>>2]=d;c=J[a+12>>2]+1|0;J[a+12>>2]=c}J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;if(!c)break a;J[a+24>>2]=0;if(M[a+28>>2]>>0){b=J[a+32>>2];if(b)uc(b);b=c+16|0;J[a+28>>2]=b;if(b)b=vc(b>>>0>1073741823?-1:b<<2);else b=0;J[a+32>>2]=b}J[a+24>>2]=c;J[a+36>>2]=0;c=J[a+44>>2];b=J[a+92>>2]-J[a+84>>2]|0;d=b+1|0;if(d>>>0>M[a+40>>2]){if(c)uc(c);b=b+17|0;J[a+40>>2]=b;if(b)c=vc(b>>>0>536870911?-1:b<<3);else c=0;J[a+44>>2]=c}J[a+36>>2]=d;Ac(c,0,d<<3);j=J[a+12>>2];i=j>>>12|0;l=J[a+ +16>>2];f=l;if(j>>>0>=4096){d=J[a+44>>2];h=J[a+84>>2];e=i;while(1){e=e-1|0;c=J[f>>2];b=4096;while(1){g=d+(J[c+4>>2]-h<<3)|0;J[g>>2]=J[g>>2]+1;g=d+(J[c+20>>2]-h<<3)|0;J[g>>2]=J[g>>2]+1;g=d+(J[c+36>>2]-h<<3)|0;J[g>>2]=J[g>>2]+1;g=d+(J[c+52>>2]-h<<3)|0;J[g>>2]=J[g>>2]+1;c=c- -64|0;b=b-4|0;if(b)continue;break}f=f+4|0;if(e)continue;break}}d=j&4095;d:{if(!d)break d;e=J[a+44>>2];g=J[a+84>>2];c=J[f>>2];f=j&3;e:{if(!f){b=d;break e}h=0;b=d;while(1){k=e+(J[c+4>>2]-g<<3)|0;J[k>>2]=J[k>>2]+1;c=c+16|0;b=b-1|0;h= +h+1|0;if((f|0)!=(h|0))continue;break}}if(d>>>0<=3)break d;while(1){f=e+(J[c+4>>2]-g<<3)|0;J[f>>2]=J[f>>2]+1;f=e+(J[c+20>>2]-g<<3)|0;J[f>>2]=J[f>>2]+1;f=e+(J[c+36>>2]-g<<3)|0;J[f>>2]=J[f>>2]+1;f=e+(J[c+52>>2]-g<<3)|0;J[f>>2]=J[f>>2]+1;c=c- -64|0;b=b-4|0;if(b)continue;break}}f=J[a+36>>2];f:{if(!f)break f;g=J[a+44>>2];h=0;c=0;b=0;if(f>>>0>=4){n=f&-4;e=0;while(1){k=c<<3;m=k+g|0;o=J[m>>2];J[m>>2]=b;m=g+(k|8)|0;p=J[m>>2];b=b+o|0;J[m>>2]=b;m=g+(k|16)|0;o=J[m>>2];b=b+p|0;J[m>>2]=b;k=g+(k|24)|0;m=J[k>>2]; +b=b+o|0;J[k>>2]=b;b=b+m|0;c=c+4|0;e=e+4|0;if((n|0)!=(e|0))continue;break}}e=f&3;if(!e)break f;while(1){k=g+(c<<3)|0;n=J[k>>2];J[k>>2]=b;c=c+1|0;b=b+n|0;h=h+1|0;if((e|0)!=(h|0))continue;break}}if(j>>>0>=4096){b=J[a+84>>2];while(1){i=i-1|0;c=J[l>>2];e=4096;while(1){h=J[a+44>>2]+(J[c+4>>2]-b<<3)|0;g=J[h+4>>2];J[(J[a+32>>2]+(J[h>>2]<<2)|0)+(g<<2)>>2]=c;J[h+4>>2]=g+1;h=J[a+44>>2]+(J[c+20>>2]-b<<3)|0;g=J[h+4>>2];J[(J[a+32>>2]+(J[h>>2]<<2)|0)+(g<<2)>>2]=c+16;J[h+4>>2]=g+1;c=c+32|0;e=e-2|0;if(e)continue; +break}l=l+4|0;if(i)continue;break}}g:{if(!d)break g;i=J[a+84>>2];c=J[l>>2];if(j&1){b=J[a+44>>2]+(J[c+4>>2]-i<<3)|0;e=J[b+4>>2];J[(J[a+32>>2]+(J[b>>2]<<2)|0)+(e<<2)>>2]=c;J[b+4>>2]=e+1;c=c+16|0;b=d-1|0}else b=d;if((d|0)==1)break g;while(1){d=J[a+44>>2]+(J[c+4>>2]-i<<3)|0;e=J[d+4>>2];J[(J[a+32>>2]+(J[d>>2]<<2)|0)+(e<<2)>>2]=c;J[d+4>>2]=e+1;d=J[a+44>>2]+(J[c+20>>2]-i<<3)|0;e=J[d+4>>2];J[(J[a+32>>2]+(J[d>>2]<<2)|0)+(e<<2)>>2]=c+16;J[d+4>>2]=e+1;c=c+32|0;b=b-2|0;if(b)continue;break}}if(f){c=0;while(1){b= +J[a+44>>2]+(c<<3)|0;d=J[b+4>>2];if(d){k=fc-320|0;fc=k;f=J[a+32>>2]+(J[b>>2]<<2)|0;h=f+(d<<2)|0;g=k;while(1){h:{b=h-f>>2;if((b|0)<=9){b=f;e=b+4|0;if(h>>>0>e>>>0)while(1){d=b;b=e;j=J[d+4>>2];l=J[j>>2];e=J[d>>2];i:{if((l|0)>=J[e>>2])break i;i=d+4|0;while(1){J[i>>2]=e;J[d>>2]=j;if((d|0)==(f|0))break i;i=d;d=d-4|0;e=J[d>>2];if((l|0)>2])continue;break}}e=b+4|0;if(h>>>0>e>>>0)continue;break}if(g>>>0>k>>>0){h=J[g-4>>2];g=g-8|0;f=J[g>>2];continue}fc=k+320|0;break h}d=J[f>>2];b=(b<<1&-4)+f|0;J[f>>2]=J[b>> +2];J[b>>2]=d;d=f+4|0;j=J[f+4>>2];l=J[j>>2];e=h-4|0;i=J[e>>2];j:{if((l|0)<=J[i>>2]){b=j;break j}J[d>>2]=i;J[e>>2]=j;b=J[d>>2];l=J[b>>2];i=j}j=J[f>>2];n=J[j>>2];k:{if((n|0)>=(l|0)){l=n;b=j;break k}J[f+4>>2]=j;J[f>>2]=b;i=J[e>>2]}if(J[i>>2]<(l|0)){J[f>>2]=i;J[e>>2]=b}while(1){l=J[f>>2];i=J[l>>2];while(1){j=J[d+4>>2];b=d+4|0;d=b;if((i|0)>J[j>>2])continue;break}while(1){e=e-4|0;d=J[e>>2];if((i|0)>2])continue;break}if(b>>>0<=e>>>0){J[b>>2]=d;J[e>>2]=j;d=b;continue}break}J[f>>2]=d;J[e>>2]=l;l:{if((e- +f|0)>(h-b|0)){d=f;i=e;f=b;break l}d=b;i=h;h=e}J[g+4>>2]=i;J[g>>2]=d;g=g+8|0;continue}break}f=J[a+36>>2]}c=c+1|0;if(f>>>0>c>>>0)continue;break}}H[a+96|0]=1}}function dVa(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;a=Ac(a,0,256);d=J[b>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+12>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+8>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a>>2]=(g+e<<2)-3072;J[a+16>>2]=P(g-(e<<1)|0,5793)+1024>>11; +e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+20>>2]=e+d;J[a+4>>2]=d+(h+f<<2);d=J[b+4>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+44>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+40>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+32>>2]=(g+e<<2)-3072;J[a+48>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+52>>2]=e+d;J[a+36>>2]=d+(h+f<<2);d=J[b+8>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l| +0;J[a+76>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+72>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+64>>2]=(g+e<<2)-3072;J[a+80>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+84>>2]=e+d;J[a+68>>2]=d+(h+f<<2);d=J[b+12>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+108>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+104>>2]=P(g-e|0,10033)+1024>>11;g=g+e|0;e=i+k|0;J[a+96>>2]=(g+e<<2)-3072;J[a+112>>2]=P(g-(e<<1)|0,5793)+1024>>11;e=d-h<<2;d= +P(d+f|0,2998)+1024>>11;J[a+116>>2]=e+d;J[a+100>>2]=d+(h+f<<2);d=J[b+16>>2]+c|0;g=K[d|0];e=K[d+5|0];f=g-e|0;i=K[d+1|0];k=K[d+4|0];h=i-k|0;j=K[d+2|0];l=K[d+3|0];d=j-l|0;J[a+140>>2]=f-(h+d|0)<<2;g=g+e|0;e=j+l|0;J[a+136>>2]=P(g-e|0,10033)+1024>>11;e=g+e|0;i=i+k|0;g=(e+i<<2)-3072|0;J[a+128>>2]=g;J[a+144>>2]=P(e-(i<<1)|0,5793)+1024>>11;e=d-h<<2;d=P(d+f|0,2998)+1024>>11;J[a+148>>2]=e+d;J[a+132>>2]=d+(h+f<<2);b=J[b+20>>2]+c|0;f=K[b|0];h=K[b+5|0];c=f-h|0;e=K[b+1|0];i=K[b+4|0];d=e-i|0;k=K[b+2|0];j=K[b+3|0]; +b=k-j|0;J[a+172>>2]=c-(d+b|0)<<2;f=h+f|0;h=j+k|0;J[a+168>>2]=P(f-h|0,10033)+1024>>11;f=h+f|0;h=e+i|0;J[a+176>>2]=P(f-(h<<1)|0,5793)+1024>>11;e=P(b+c|0,2998)+1024>>11;J[a+180>>2]=e+(b-d<<2);f=(h+f<<2)-3072|0;h=J[a>>2];b=f+h|0;i=J[a+96>>2];k=J[a+64>>2];j=i+k|0;J[a+64>>2]=P(b-j|0,17837)+16384>>15;b=b+j|0;j=J[a+32>>2];l=j+g|0;J[a+128>>2]=P(b-(l<<1)|0,10298)+16384>>15;J[a>>2]=P(b+l|0,14564)+16384>>15;b=k-i|0;f=h-f|0;h=P(b+f|0,5331)+16384|0;g=j-g|0;J[a+160>>2]=h+P(b-g|0,14564)>>15;J[a+96>>2]=P(f-(b+g|0)| +0,14564)+16384>>15;J[a+32>>2]=h+P(f+g|0,14564)>>15;b=J[a+132>>2];f=J[a+36>>2];d=e+(c+d<<2)|0;h=J[a+4>>2];c=d+h|0;g=J[a+100>>2];e=J[a+68>>2];i=g+e|0;J[a+68>>2]=P(c-i|0,17837)+16384>>15;c=c+i|0;i=b+f|0;J[a+132>>2]=P(c-(i<<1)|0,10298)+16384>>15;J[a+4>>2]=P(c+i|0,14564)+16384>>15;c=e-g|0;d=h-d|0;h=P(c+d|0,5331)+16384|0;b=f-b|0;J[a+164>>2]=h+P(c-b|0,14564)>>15;J[a+100>>2]=P(d-(b+c|0)|0,14564)+16384>>15;J[a+36>>2]=h+P(b+d|0,14564)>>15;b=J[a+136>>2];c=J[a+40>>2];f=J[a+168>>2];h=J[a+8>>2];d=f+h|0;g=J[a+104>> +2];e=J[a+72>>2];i=g+e|0;J[a+72>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+136>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+8>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+168>>2]=h+P(d-b|0,14564)>>15;J[a+104>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+40>>2]=h+P(b+f|0,14564)>>15;b=J[a+140>>2];c=J[a+44>>2];f=J[a+172>>2];h=J[a+12>>2];d=f+h|0;g=J[a+108>>2];e=J[a+76>>2];i=g+e|0;J[a+76>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+140>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+ +12>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+172>>2]=h+P(d-b|0,14564)>>15;J[a+108>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+44>>2]=h+P(b+f|0,14564)>>15;b=J[a+144>>2];c=J[a+48>>2];f=J[a+176>>2];h=J[a+16>>2];d=f+h|0;g=J[a+112>>2];e=J[a+80>>2];i=g+e|0;J[a+80>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+144>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+16>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+176>>2]=h+P(d-b|0,14564)>>15;J[a+112>> +2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+48>>2]=h+P(b+f|0,14564)>>15;b=J[a+148>>2];c=J[a+52>>2];f=J[a+180>>2];h=J[a+20>>2];d=f+h|0;g=J[a+116>>2];e=J[a+84>>2];i=g+e|0;J[a+84>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+148>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+20>>2]=P(d+i|0,14564)+16384>>15;d=e-g|0;f=h-f|0;h=P(d+f|0,5331)+16384|0;b=c-b|0;J[a+180>>2]=h+P(d-b|0,14564)>>15;J[a+116>>2]=P(f-(b+d|0)|0,14564)+16384>>15;J[a+52>>2]=h+P(b+f|0,14564)>>15}function Xra(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;e=fc+-64|0;fc=e;J[e+36>>2]=0;J[e+40>>2]=J[685894];a:{b:{c:{d:{e:{f:{while(1){d=a;a=d+1|0;g=H[d|0];f=g;if((f|0)==32|f-9>>>0<5)continue;f=d;while(1){g:{a=g&255;h=a-47|0;if((1<>>0<=15:0)|!a)break g;a=g<<24>>24;if((a|0)==32|a-9>>>0<5)break g;g=K[f+1|0];f=f+1|0;continue}break}J[699344]=0;a=ga(5339,e+28|0,d|0,f-d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;d=J[a>>2];h:{if(d){g=J[J[d>>2]+28>>2];J[699344]=0;ca(g|0,e+20|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break h;g=Z()| +0;wc(a);break c}J[e+20>>2]=0}J[699344]=0;aa(5153,e+36|0,e+20|0)|0;d=J[699344];J[699344]=0;i:{if((d|0)!=1){d=J[e+20>>2];J[e+20>>2]=0;if(!d)break i;J[699344]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break i;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break i}break a}g=Z()|0;zc(e+20|0);wc(a);break c}d=J[e+36>>2];J[e+40>>2]=J[(d?d+12|0:2743576)>>2];if(!d){wc(a);break b}d=J[d+8>>2];wc(a);if(!d)break b;if(c){J[699344]=0;da(5308,e+20|0,e+36|0);a=J[699344];J[699344]= +0;j:{if((a|0)!=1){a=J[e+20>>2];k:{if(a){d=J[J[a>>2]+28>>2];J[699344]=0;ca(d|0,e+12|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break k;g=Z()|0;break d}J[e+12>>2]=0}J[699344]=0;aa(5153,e+36|0,e+12|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[e+12>>2];J[e+12>>2]=0;if(!a)break j;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)!=1){if(d)break j;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break j}break a}g=Z()|0;zc(e+12|0);break d}g=Z()|0;break c}a=J[e+36>>2]; +J[e+40>>2]=J[(a?a+12|0:2743576)>>2];wc(e+20|0)}J[e+12>>2]=0;J[e+16>>2]=J[685894];l:{if(K[f|0]!=61){a=f;break l}d=f+1|0;a=d;m:{n:{o:{g=K[f+1|0];switch(g-34|0){case 0:case 5:break o;default:break n}}d=f+2|0;a=d;f=K[f+2|0];p:{if((g|0)==(f|0))break p;while(1){if(!f|(f|0)==62)break p;f=K[a+1|0];a=a+1|0;if((f|0)!=(g|0))continue;break}}J[699344]=0;f=ga(5339,e+52|0,d|0,a-d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[f>>2];q:{if(d){h=J[J[d>>2]+28>>2];J[699344]=0;ca(h|0,e+60|0,d|0,1);d=J[699344];J[699344]= +0;if((d|0)!=1)break q;g=Z()|0;wc(f);break f}J[e+60>>2]=0}J[699344]=0;aa(5153,e+12|0,e+60|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[e+60>>2];J[e+60>>2]=0;if(!d)break m;J[699344]=0;h=J[d+4>>2]-1|0;J[d+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break m;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break m}break a}g=Z()|0;zc(e+60|0);wc(f);break f}g=Z()|0;break f}while(1){r:{s:{t:{f=g&255;switch(f-47|0){case 0:case 15:break r;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break s; +default:break t}}if(!f)break r}f=g<<24>>24;if((f|0)==32|f-9>>>0<5)break r;g=K[a+1|0];a=a+1|0;continue}break}J[699344]=0;f=ga(5339,e+44|0,d|0,a-d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[f>>2];u:{if(d){g=J[J[d>>2]+28>>2];J[699344]=0;ca(g|0,e+60|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break u;g=Z()|0;wc(f);break f}J[e+60>>2]=0}J[699344]=0;aa(5153,e+12|0,e+60|0)|0;d=J[699344];J[699344]=0;v:{if((d|0)!=1){d=J[e+60>>2];J[e+60>>2]=0;if(!d)break v;J[699344]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[699344]; +J[699344]=0;if((h|0)!=1){if(g)break v;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break v}break a}g=Z()|0;zc(e+60|0);wc(f);break f}d=J[e+12>>2];J[e+16>>2]=J[(d?d+12|0:2743576)>>2];wc(f);break l}g=Z()|0;break f}d=J[e+12>>2];J[e+16>>2]=J[(d?d+12|0:2743576)>>2];wc(f);a=(K[a|0]==(g|0))+a|0}J[699344]=0;da(5589,e+20|0,e+12|0);f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;d=aa(5338,b|0,e+36|0)|0;f=J[699344];J[699344]=0;w:{x:{y:{z:{if((f|0)!=1){f=J[e+20>>2];if(!f)break z;g=J[J[f>>2]+28>> +2];J[699344]=0;ca(g|0,e+60|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break y}g=Z()|0;break x}J[e+60>>2]=0}J[699344]=0;aa(5153,d+24|0,e+60|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){f=J[e+60>>2];J[e+60>>2]=0;if(!f)break w;J[699344]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break w;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break w}break a}g=Z()|0;zc(e+60|0)}wc(e+20|0);break f}f=J[d+24>>2];J[d+28>>2]=J[(f?f+12|0:2743576)>>2];wc(e+20|0);wc(e+12|0);continue}break}g= +Z()|0}wc(e+12|0);break c}g=Z()|0;break c}wc(e+20|0)}wc(e+36|0);ba(g|0);B()}wc(e+36|0);fc=e- -64|0;return}ea(0)|0;Bc();B()}function cib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=(e|0)>0?e:0;a:{b:{c:{d:{e:{f:{g:switch(b|0){case 0:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+437|0];break b;case 1:if(c>>>0>3)break e;b=4;if(!d|f>>>0<4)break c;e=0;h:{i:{j:switch(c|0){case 0:a=a+440|0;break i;case 1:a=a+444|0;break i;case 2:a=a+448|0;break i;case 3:break j;default:break h}a=a+452|0}e=J[a>>2]}J[d>> +2]=e;break c;case 2:if(c>>>0>3)break e;b=4;if(!d|f>>>0<4)break c;e=0;k:{l:{m:switch(c|0){case 0:a=a+464|0;break l;case 1:a=a+468|0;break l;case 2:a=a+472|0;break l;case 3:break m;default:break k}a=a+476|0}e=J[a>>2]}J[d>>2]=e;break c;case 3:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+436|0];break b;case 4:a=J[a+364>>2];if(!a)break e;b=Yc(a)+1|0;if(!d|f>>>0>>0)break f;xc(d,a,b);break f;case 5:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+168>>2];break c;case 6:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+420>>2];break c; +case 7:if(M[a+420>>2]<=c>>>0)break e;a=J[J[a+424>>2]+(c<<2)>>2];c=Yc(a);b=c+1|0;if(!d|f>>>0>>0)break f;g=xc(d,a,b)+c|0,h=0,H[g|0]=h;break f;case 8:if(M[a+420>>2]<=c>>>0)break e;e=c<<2;c=J[e+J[a+432>>2]>>2];b=c+1|0;if(!d|f>>>0>>0)break f;g=xc(d,J[e+J[a+428>>2]>>2],c)+c|0,h=0,H[g|0]=h;break f;case 9:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+368>>2];break c;case 10:if(J[a+368>>2]!=1|M[a+372>>2]<=c>>>0)break e;c=J[J[a+388>>2]+(c<<2)>>2];a=Yc(c);b=a+1|0;if(!d|f>>>0>>0)break f;g=xc(d,c,a)+a|0,h=0, +H[g|0]=h;break f;case 11:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+404>>2];break c;case 12:b=J[a+416>>2];n:{if(b){b=Pi(c,b);if(!b)break e;c=J[b>>2];break n}if(M[a+404>>2]<=c>>>0)break e}e=J[a+408>>2];if(!e)break e;c=c<<2;a=J[c+J[a+412>>2]>>2];b=a+1|0;if(!d|f>>>0>>0)break f;g=xc(d,J[c+e>>2],a)+a|0,h=0,H[g|0]=h;break f;case 13:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+288>>1];break a;case 14:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+290>>1];break a;case 15:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+176|0];break b; case 16:if(K[a+176|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+180>>1];break a;case 24:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+276>>2];break c;case 17:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+284>>2];break c;case 25:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+280>>2];break c;case 18:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+177|0];break b;case 19:if(K[a+177|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+208>>1];break a;case 20:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+178| 0];break b;case 21:if(K[a+178|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+228>>1];break a;case 22:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+179|0];break b;case 23:if(K[a+179|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+256>>1];break a;case 26:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+292|0];break b;case 27:if(K[a+292|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+296>>1];break a;case 28:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+293|0];break b;case 29:if(K[a+ 293|0]<=c>>>0)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+322>>1];break a;case 31:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+295|0];break b;case 30:b=1;if(!d|(e|0)<=0)break c;H[d|0]=K[a+294|0];break b;case 32:if(c>>>0>1)break e;b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[((c<<1)+a|0)+360>>1];break a;case 33:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+172>>2];break c;case 34:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+356>>2];break c;case 35:b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+352>>2];break c;case 41:b=1;if(!d| -(e|0)<=0)break c;H[d|0]=K[a+156|0];break b;case 42:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+158>>1];break a;case 43:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+160>>1];break a;case 44:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+164>>1];break a;case 36:a=J[a+132>>2];if(!a)break e;b=Qc(a)+1|0;if(!d|f>>>0>>0)break f;tc(d,a,b);break f;case 37:a=J[a+136>>2];if(!a)break e;b=Qc(a)+1|0;if(!d|f>>>0>>0)break f;tc(d,a,b);break f;case 38:a=J[a+140>>2];if(!a)break e;b=Qc(a)+1|0;if(!d|f>>>0>>0)break f;tc(d,a,b);break f; -case 39:a=J[a+144>>2];if(!a)break e;b=Qc(a)+1|0;if(!d|f>>>0>>0)break f;tc(d,a,b);break f;case 45:break d;case 40:break g;default:break e}a=J[a+148>>2];if(!a)break e;b=Qc(a)+1|0;if(!d|f>>>0>>0)break f;tc(d,a,b)}if(b)break c}return-1}b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+152>>2]}return b|0}return 1}return 2}function tu(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;d=J[b+88>>2];j=J[d+40>>2];k=J[d+36>>2];a:{b:{c:{d:{if(K[d+45|0]==3){if(!(!K[d+33|0]|!L[b+ -28>>1])){Dc(a,1037,0,0);return 1037}g=WD(a,b,8,J[d+844>>2]?6:2,0);if(g)break d}e:{f:switch(K[b+64|0]){case 1:k=L[b+70>>1];c=J[d+36>>2];if(c>>>0<2)break e;k=L[b+72>>1]+k|0;if((c|0)==2)break e;k=P(L[b+66>>1],c-2|0)+k|0;break e;case 0:break e;default:break f}c=J[d+36>>2];k=(c+L[b+70>>1]|0)-1|0;if(c>>>0<3)break e;k=(L[b+72>>1]+k|0)-1|0;if((c|0)==3)break e;k=P(L[b+66>>1]-1|0,c-3|0)+k|0}g:{h:switch(K[b+65|0]){case 1:j=L[b+74>>1];c=J[d+40>>2];if(c>>>0<2)break g;j=L[b+70>>1]+j|0;if((c|0)==2)break g;j=P(L[b+ -68>>1],c-2|0)+j|0;break g;case 0:break g;default:break h}c=J[d+40>>2];j=(c+L[b+74>>1]|0)-1|0;if(c>>>0<3)break g;j=(L[b+76>>1]+j|0)-1|0;if((c|0)==3)break g;j=P(L[b+68>>1]-1|0,c-3|0)+j|0}h=P(J[d+1164>>2],k);r=P(j,h);p=gc[J[a+152>>2]](r)|0;if(!p)break b;m=b- -64|0;f=1;i:{j:{k:switch(K[d+45|0]){case 0:case 8:c=K[m|0]-1|0;if(K[d+44|0]<=8){if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212840>>2];l:switch(K[b+65|0]-1|0){case 0:e=952;break j;case 1:case 3:e=953;break j;case 2:case 4:break l;default:break i}e=954; -break j}if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212860>>2];m:switch(K[b+65|0]-1|0){case 0:e=955;break j;case 1:case 3:e=956;break j;case 2:case 4:break m;default:break i}e=957;break j;case 2:case 10:c=K[m|0]-1|0;if(K[d+44|0]<=8){if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212880>>2];n:switch(K[b+65|0]-1|0){case 0:e=958;break j;case 1:case 3:e=959;break j;case 2:case 4:break n;default:break i}e=960;break j}if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212900>>2];o:switch(K[b+65|0]-1|0){case 0:e=961;break j;case 1:case 3:e= -962;break j;case 2:case 4:break o;default:break i}e=963;break j;case 4:case 12:c=K[m|0]-1|0;if(K[d+44|0]<=8){if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212920>>2];p:switch(K[b+65|0]-1|0){case 0:e=964;break j;case 1:e=965;break j;case 2:e=966;break j;case 3:e=967;break j;case 4:break p;default:break i}e=968;break j}if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212940>>2];q:switch(K[b+65|0]-1|0){case 0:e=969;break j;case 1:e=970;break j;case 2:e=971;break j;case 3:e=972;break j;case 4:break q;default:break i}e=973; -break j;case 6:case 14:break k;default:break i}c=K[m|0]-1|0;if(K[d+44|0]<=8){if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212960>>2];r:switch(K[b+65|0]-1|0){case 0:e=974;break j;case 1:e=975;break j;case 2:e=976;break j;case 3:e=977;break j;case 4:break r;default:break i}e=978;break j}if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212980>>2];s:switch(K[b+65|0]-1|0){case 0:e=979;break j;case 1:e=980;break j;case 2:e=981;break j;case 3:e=982;break j;case 4:break s;default:break i}e=983}f=0}g=J[d+1176>>2];t:{u:{o=gc[J[a+ -152>>2]](h)|0;if(o){if(!J[d+40>>2])break t;if(f)break u;u=b+74|0;t=b+76|0;v=b+68|0;c=J[d+1168>>2];f=p;while(1){v:{if(i){l=gc[i|0](a,L[b+66>>1],L[b+70>>1],L[b+72>>1],J[d+36>>2],g,f)|0;if(!l)break v;break c}tc(f,g,h)}s=c+g|0;f=f+h|0;w:{x:{y:{z:{A:{n=J[d+40>>2];c=n-2|0;B:{if(c>>>0>>0){if(K[b+65|0]==1)break B;break x}if(!q){s=(n|0)!=1?s:0;c=u;break y}if(K[b+65|0]!=1)break A}if((n-1|0)!=(q|0))break z;c=t;break y}if((c|0)!=(q|0))break z;c=t;break y}c=v}n=L[c>>1];if(n>>>0<2)break x;c=1;if(!i)while(1){l= -gc[e|0](a,c,n,J[d+36>>2],g,s,o)|0;if(l)break w;f=tc(f,o,h)+h|0;c=c+1|0;if((n|0)!=(c|0))continue;break x}while(1){l=gc[e|0](a,c,n,J[d+36>>2],g,s,o)|0;if(l)break w;l=gc[i|0](a,L[b+66>>1],L[b+70>>1],L[b+72>>1],J[d+36>>2],o,f)|0;if(l)break a;f=f+h|0;c=c+1|0;if((n|0)!=(c|0))continue;break}}c=J[d+1168>>2];g=g+c|0;q=q+1|0;if(q>>>0>2])continue;break t}break}break a}break b}f=0;if(!i){c=p;while(1){c=tc(c,g,h)+h|0;g=J[d+1168>>2]+g|0;f=f+1|0;if(f>>>0>2])continue;break}break t}c=p;while(1){l= -gc[i|0](a,L[b+66>>1],L[b+70>>1],L[b+72>>1],J[d+36>>2],g,c)|0;if(l)break c;c=c+h|0;g=J[d+1168>>2]+g|0;f=f+1|0;if(f>>>0>2])continue;break}}gc[J[a+156>>2]](o,h);c=J[d+1176>>2];if(c)gc[J[a+156>>2]](c,J[d+1172>>2]);J[d+1172>>2]=r;J[d+1168>>2]=h;J[d+1176>>2]=p;J[d+40>>2]=j;J[d+36>>2]=k;g=0;if(!L[b+28>>1])break d;J[m>>2]=0;J[m+4>>2]=0;I[m+6>>1]=0;I[m+8>>1]=0;I[m+10>>1]=0;I[m+12>>1]=0}return g}gc[J[a+156>>2]](o,h);gc[J[a+156>>2]](p,r);return l}Dc(a,1,0,0);return 1}gc[J[a+156>>2]](o,h);gc[J[a+156>> -2]](p,r);return l}function r7(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,B=0,C=0,D=0,E=0,F=0;a:{b:{c:switch(g<<31|g-2>>>1){case 0:g=bd(256,2);if(g)while(1){if(h&1)I[g+(h<<1)>>1]=3;if(h&2){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|12}if(h&4){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|48}if(h&8){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|192}if(h&16){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|768}if(h&32){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|3072}if(h&64){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|12288}if(h&128){i=g+(h<< -1)|0;I[i>>1]=L[i>>1]|49152}h=h+1|0;if((h|0)!=256)continue;break}if(!g)break a;if((e|0)<=0)break b;i=b<<2;k=b<<1;h=0;if((d|0)<=0){if((e|0)!=1){d=e&-2;c=0;while(1){f=(P(h,k)<<2)+a|0;j=b<<2;tc(f+j|0,f,i);f=(P(k,h|1)<<2)+a|0;tc(f+j|0,f,i);h=h+2|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(!(e&1))break b;a=(P(h,k)<<2)+a|0;tc(a+(b<<2)|0,a,i);break b}b=(d+7|0)/8|0;b=(b|0)<=1?1:b;n=b&2147483646;m=b&1;o=(d|0)<9;while(1){d=(P(k,j)<<2)+a|0;l=(P(f,j)<<2)+c|0;h=0;b=0;if(!o)while(1){I[(d+(h<<1)^2)>>1]=L[(K[h+l^ -3]<<1)+g>>1];p=h|1;I[(d+(p<<1)^2)>>1]=L[(K[l+p^3]<<1)+g>>1];h=h+2|0;b=b+2|0;if((n|0)!=(b|0))continue;break}if(m)I[(d+(h<<1)^2)>>1]=L[(K[h+l^3]<<1)+g>>1];tc(d+i|0,d,i);j=j+1|0;if((j|0)!=(e|0))continue;break}break b;case 1:g=bd(256,4);if(g)while(1){if(h&1)J[g+(h<<2)>>2]=15;if(h&2){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|240}if(h&4){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|3840}if(h&8){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|61440}if(h&16){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|983040}if(h&32){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|15728640}if(h&64){i= +(e|0)<=0)break c;H[d|0]=K[a+156|0];break b;case 42:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+158>>1];break a;case 43:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+160>>1];break a;case 44:b=2;if(!d|f>>>0<2)break c;I[d>>1]=L[a+164>>1];break a;case 36:a=J[a+132>>2];if(!a)break e;b=Yc(a)+1|0;if(!d|f>>>0>>0)break f;xc(d,a,b);break f;case 37:a=J[a+136>>2];if(!a)break e;b=Yc(a)+1|0;if(!d|f>>>0>>0)break f;xc(d,a,b);break f;case 38:a=J[a+140>>2];if(!a)break e;b=Yc(a)+1|0;if(!d|f>>>0>>0)break f;xc(d,a,b);break f; +case 39:a=J[a+144>>2];if(!a)break e;b=Yc(a)+1|0;if(!d|f>>>0>>0)break f;xc(d,a,b);break f;case 45:break d;case 40:break g;default:break e}a=J[a+148>>2];if(!a)break e;b=Yc(a)+1|0;if(!d|f>>>0>>0)break f;xc(d,a,b)}if(b)break c}return-1}b=4;if(!d|f>>>0<4)break c;J[d>>2]=J[a+152>>2]}return b|0}return 1}return 2}function iv(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;d=J[b+88>>2];j=J[d+40>>2];k=J[d+36>>2];a:{b:{c:{d:{if(K[d+45|0]==3){if(!(!K[d+33|0]|!L[b+ +28>>1])){Jc(a,1037,0,0);return 1037}g=_E(a,b,8,J[d+844>>2]?6:2,0);if(g)break d}e:{f:switch(K[b+64|0]){case 1:k=L[b+70>>1];c=J[d+36>>2];if(c>>>0<2)break e;k=L[b+72>>1]+k|0;if((c|0)==2)break e;k=P(L[b+66>>1],c-2|0)+k|0;break e;case 0:break e;default:break f}c=J[d+36>>2];k=(c+L[b+70>>1]|0)-1|0;if(c>>>0<3)break e;k=(L[b+72>>1]+k|0)-1|0;if((c|0)==3)break e;k=P(L[b+66>>1]-1|0,c-3|0)+k|0}g:{h:switch(K[b+65|0]){case 1:j=L[b+74>>1];c=J[d+40>>2];if(c>>>0<2)break g;j=L[b+70>>1]+j|0;if((c|0)==2)break g;j=P(L[b+ +68>>1],c-2|0)+j|0;break g;case 0:break g;default:break h}c=J[d+40>>2];j=(c+L[b+74>>1]|0)-1|0;if(c>>>0<3)break g;j=(L[b+76>>1]+j|0)-1|0;if((c|0)==3)break g;j=P(L[b+68>>1]-1|0,c-3|0)+j|0}h=P(J[d+1164>>2],k);r=P(j,h);p=kc[J[a+152>>2]](r)|0;if(!p)break b;m=b- -64|0;f=1;i:{j:{k:switch(K[d+45|0]){case 0:case 8:c=K[m|0]-1|0;if(K[d+44|0]<=8){if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212856>>2];l:switch(K[b+65|0]-1|0){case 0:e=952;break j;case 1:case 3:e=953;break j;case 2:case 4:break l;default:break i}e=954; +break j}if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212876>>2];m:switch(K[b+65|0]-1|0){case 0:e=955;break j;case 1:case 3:e=956;break j;case 2:case 4:break m;default:break i}e=957;break j;case 2:case 10:c=K[m|0]-1|0;if(K[d+44|0]<=8){if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212896>>2];n:switch(K[b+65|0]-1|0){case 0:e=958;break j;case 1:case 3:e=959;break j;case 2:case 4:break n;default:break i}e=960;break j}if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212916>>2];o:switch(K[b+65|0]-1|0){case 0:e=961;break j;case 1:case 3:e= +962;break j;case 2:case 4:break o;default:break i}e=963;break j;case 4:case 12:c=K[m|0]-1|0;if(K[d+44|0]<=8){if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212936>>2];p:switch(K[b+65|0]-1|0){case 0:e=964;break j;case 1:e=965;break j;case 2:e=966;break j;case 3:e=967;break j;case 4:break p;default:break i}e=968;break j}if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212956>>2];q:switch(K[b+65|0]-1|0){case 0:e=969;break j;case 1:e=970;break j;case 2:e=971;break j;case 3:e=972;break j;case 4:break q;default:break i}e=973; +break j;case 6:case 14:break k;default:break i}c=K[m|0]-1|0;if(K[d+44|0]<=8){if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212976>>2];r:switch(K[b+65|0]-1|0){case 0:e=974;break j;case 1:e=975;break j;case 2:e=976;break j;case 3:e=977;break j;case 4:break r;default:break i}e=978;break j}if((c&255)>>>0<=4)i=J[(c<<24>>24<<2)+212996>>2];s:switch(K[b+65|0]-1|0){case 0:e=979;break j;case 1:e=980;break j;case 2:e=981;break j;case 3:e=982;break j;case 4:break s;default:break i}e=983}f=0}g=J[d+1176>>2];t:{u:{o=kc[J[a+ +152>>2]](h)|0;if(o){if(!J[d+40>>2])break t;if(f)break u;u=b+74|0;t=b+76|0;v=b+68|0;c=J[d+1168>>2];f=p;while(1){v:{if(i){l=kc[i|0](a,L[b+66>>1],L[b+70>>1],L[b+72>>1],J[d+36>>2],g,f)|0;if(!l)break v;break c}xc(f,g,h)}s=c+g|0;f=f+h|0;w:{x:{y:{z:{A:{n=J[d+40>>2];c=n-2|0;B:{if(c>>>0>>0){if(K[b+65|0]==1)break B;break x}if(!q){s=(n|0)!=1?s:0;c=u;break y}if(K[b+65|0]!=1)break A}if((n-1|0)!=(q|0))break z;c=t;break y}if((c|0)!=(q|0))break z;c=t;break y}c=v}n=L[c>>1];if(n>>>0<2)break x;c=1;if(!i)while(1){l= +kc[e|0](a,c,n,J[d+36>>2],g,s,o)|0;if(l)break w;f=xc(f,o,h)+h|0;c=c+1|0;if((n|0)!=(c|0))continue;break x}while(1){l=kc[e|0](a,c,n,J[d+36>>2],g,s,o)|0;if(l)break w;l=kc[i|0](a,L[b+66>>1],L[b+70>>1],L[b+72>>1],J[d+36>>2],o,f)|0;if(l)break a;f=f+h|0;c=c+1|0;if((n|0)!=(c|0))continue;break}}c=J[d+1168>>2];g=g+c|0;q=q+1|0;if(q>>>0>2])continue;break t}break}break a}break b}f=0;if(!i){c=p;while(1){c=xc(c,g,h)+h|0;g=J[d+1168>>2]+g|0;f=f+1|0;if(f>>>0>2])continue;break}break t}c=p;while(1){l= +kc[i|0](a,L[b+66>>1],L[b+70>>1],L[b+72>>1],J[d+36>>2],g,c)|0;if(l)break c;c=c+h|0;g=J[d+1168>>2]+g|0;f=f+1|0;if(f>>>0>2])continue;break}}kc[J[a+156>>2]](o,h);c=J[d+1176>>2];if(c)kc[J[a+156>>2]](c,J[d+1172>>2]);J[d+1172>>2]=r;J[d+1168>>2]=h;J[d+1176>>2]=p;J[d+40>>2]=j;J[d+36>>2]=k;g=0;if(!L[b+28>>1])break d;J[m>>2]=0;J[m+4>>2]=0;I[m+6>>1]=0;I[m+8>>1]=0;I[m+10>>1]=0;I[m+12>>1]=0}return g}kc[J[a+156>>2]](o,h);kc[J[a+156>>2]](p,r);return l}Jc(a,1,0,0);return 1}kc[J[a+156>>2]](o,h);kc[J[a+156>> +2]](p,r);return l}function t9(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,B=0,C=0,D=0,E=0,F=0;a:{b:{c:switch(g<<31|g-2>>>1){case 0:g=kd(256,2);if(g)while(1){if(h&1)I[g+(h<<1)>>1]=3;if(h&2){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|12}if(h&4){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|48}if(h&8){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|192}if(h&16){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|768}if(h&32){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|3072}if(h&64){i=g+(h<<1)|0;I[i>>1]=L[i>>1]|12288}if(h&128){i=g+(h<< +1)|0;I[i>>1]=L[i>>1]|49152}h=h+1|0;if((h|0)!=256)continue;break}if(!g)break a;if((e|0)<=0)break b;i=b<<2;k=b<<1;h=0;if((d|0)<=0){if((e|0)!=1){d=e&-2;c=0;while(1){f=(P(h,k)<<2)+a|0;j=b<<2;xc(f+j|0,f,i);f=(P(k,h|1)<<2)+a|0;xc(f+j|0,f,i);h=h+2|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(!(e&1))break b;a=(P(h,k)<<2)+a|0;xc(a+(b<<2)|0,a,i);break b}b=(d+7|0)/8|0;b=(b|0)<=1?1:b;n=b&2147483646;m=b&1;o=(d|0)<9;while(1){d=(P(k,j)<<2)+a|0;l=(P(f,j)<<2)+c|0;h=0;b=0;if(!o)while(1){I[(d+(h<<1)^2)>>1]=L[(K[h+l^ +3]<<1)+g>>1];p=h|1;I[(d+(p<<1)^2)>>1]=L[(K[l+p^3]<<1)+g>>1];h=h+2|0;b=b+2|0;if((n|0)!=(b|0))continue;break}if(m)I[(d+(h<<1)^2)>>1]=L[(K[h+l^3]<<1)+g>>1];xc(d+i|0,d,i);j=j+1|0;if((j|0)!=(e|0))continue;break}break b;case 1:g=kd(256,4);if(g)while(1){if(h&1)J[g+(h<<2)>>2]=15;if(h&2){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|240}if(h&4){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|3840}if(h&8){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|61440}if(h&16){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|983040}if(h&32){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|15728640}if(h&64){i= g+(h<<2)|0;J[i>>2]=J[i>>2]|251658240}if(h&128){i=g+(h<<2)|0;J[i>>2]=J[i>>2]|-268435456}h=h+1|0;if((h|0)!=256)continue;break}if(!g)break a;if((e|0)<=0)break b;h=(d+7|0)/8|0;h=(h|0)<=1?1:h;n=h&2147483646;m=h&1;k=b<<2;o=b<<3;p=P(b,12);while(1){i=(P(k,j)<<2)+a|0;d:{if((d|0)<=0)break d;l=(P(f,j)<<2)+c|0;h=0;b=0;if((d|0)>8)while(1){J[i+(h<<2)>>2]=J[(K[h+l^3]<<2)+g>>2];q=h|1;J[i+(q<<2)>>2]=J[(K[l+q^3]<<2)+g>>2];h=h+2|0;b=b+2|0;if((n|0)!=(b|0))continue;break}if(!m)break d;J[i+(h<<2)>>2]=J[(K[h+l^3]<<2)+g>> -2]}tc(i+k|0,i,k);tc(i+o|0,i,k);tc(i+p|0,i,k);j=j+1|0;if((j|0)!=(e|0))continue;break}break b;case 7:if((e|0)<=0)break a;i=b<<2;k=b<<4;if((d|0)<=0){c=b<<3;d=P(b,12);f=i<<2;g=P(b,20);j=P(b,24);l=P(b,28);n=b<<5;m=P(b,36);o=P(b,40);p=P(b,44);q=P(b,48);r=P(b,52);s=P(b,56);t=P(b,60);while(1){b=(P(h,k)<<2)+a|0;tc(b+i|0,b,i);tc(b+c|0,b,i);tc(b+d|0,b,i);tc(b+f|0,b,i);tc(b+g|0,b,i);tc(b+j|0,b,i);tc(b+l|0,b,i);tc(b+n|0,b,i);tc(b+m|0,b,i);tc(b+o|0,b,i);tc(b+p|0,b,i);tc(b+q|0,b,i);tc(b+r|0,b,i);tc(b+s|0,b,i);tc(b+ -t|0,b,i);h=h+1|0;if((e|0)!=(h|0))continue;break}break a}g=(d+1|0)/2|0;g=(g|0)<=1?1:g;n=g&2147483646;m=g&1;o=b<<3;p=P(b,12);q=b<<2;r=q<<2;s=P(b,20);t=P(b,24);v=P(b,28);u=b<<5;z=P(b,36);A=P(b,40);B=P(b,44);C=P(b,48);D=P(b,52);E=P(b,56);F=P(b,60);while(1){h=(P(k,j)<<2)+a|0;l=(P(f,j)<<2)+c|0;g=0;b=0;if((d|0)>=3)while(1){w=g<<2;x=l+(g>>>2&1073741820)|0;y=g<<1&28;J[h+w>>2]=J[((J[x>>2]>>>(y^30)&3)<<2)+231376>>2];J[h+(w|4)>>2]=J[((J[x>>2]>>>(y^28)&3)<<2)+231376>>2];g=g+2|0;b=b+2|0;if((n|0)!=(b|0))continue; -break}if(m)J[h+(g<<2)>>2]=J[((J[l+(g>>>2&1073741820)>>2]>>>((g^-1)<<1)&3)<<2)+231376>>2];tc(h+q|0,h,i);tc(h+o|0,h,i);tc(h+p|0,h,i);tc(h+r|0,h,i);tc(h+s|0,h,i);tc(h+t|0,h,i);tc(h+v|0,h,i);tc(h+u|0,h,i);tc(h+z|0,h,i);tc(h+A|0,h,i);tc(h+B|0,h,i);tc(h+C|0,h,i);tc(h+D|0,h,i);tc(h+E|0,h,i);tc(h+F|0,h,i);j=j+1|0;if((j|0)!=(e|0))continue;break}break a;case 3:break c;default:break a}g=bd(16,4);if(!g)break a;while(1){if(h&1)J[(h<<2)+g>>2]=255;if(h&2){i=(h<<2)+g|0;J[i>>2]=J[i>>2]|65280}if(h&4){i=(h<<2)+g|0; +2]}xc(i+k|0,i,k);xc(i+o|0,i,k);xc(i+p|0,i,k);j=j+1|0;if((j|0)!=(e|0))continue;break}break b;case 7:if((e|0)<=0)break a;i=b<<2;k=b<<4;if((d|0)<=0){c=b<<3;d=P(b,12);f=i<<2;g=P(b,20);j=P(b,24);l=P(b,28);n=b<<5;m=P(b,36);o=P(b,40);p=P(b,44);q=P(b,48);r=P(b,52);s=P(b,56);t=P(b,60);while(1){b=(P(h,k)<<2)+a|0;xc(b+i|0,b,i);xc(b+c|0,b,i);xc(b+d|0,b,i);xc(b+f|0,b,i);xc(b+g|0,b,i);xc(b+j|0,b,i);xc(b+l|0,b,i);xc(b+n|0,b,i);xc(b+m|0,b,i);xc(b+o|0,b,i);xc(b+p|0,b,i);xc(b+q|0,b,i);xc(b+r|0,b,i);xc(b+s|0,b,i);xc(b+ +t|0,b,i);h=h+1|0;if((e|0)!=(h|0))continue;break}break a}g=(d+1|0)/2|0;g=(g|0)<=1?1:g;n=g&2147483646;m=g&1;o=b<<3;p=P(b,12);q=b<<2;r=q<<2;s=P(b,20);t=P(b,24);v=P(b,28);u=b<<5;z=P(b,36);A=P(b,40);B=P(b,44);C=P(b,48);D=P(b,52);E=P(b,56);F=P(b,60);while(1){h=(P(k,j)<<2)+a|0;l=(P(f,j)<<2)+c|0;g=0;b=0;if((d|0)>=3)while(1){w=g<<2;x=l+(g>>>2&1073741820)|0;y=g<<1&28;J[h+w>>2]=J[((J[x>>2]>>>(y^30)&3)<<2)+231392>>2];J[h+(w|4)>>2]=J[((J[x>>2]>>>(y^28)&3)<<2)+231392>>2];g=g+2|0;b=b+2|0;if((n|0)!=(b|0))continue; +break}if(m)J[h+(g<<2)>>2]=J[((J[l+(g>>>2&1073741820)>>2]>>>((g^-1)<<1)&3)<<2)+231392>>2];xc(h+q|0,h,i);xc(h+o|0,h,i);xc(h+p|0,h,i);xc(h+r|0,h,i);xc(h+s|0,h,i);xc(h+t|0,h,i);xc(h+v|0,h,i);xc(h+u|0,h,i);xc(h+z|0,h,i);xc(h+A|0,h,i);xc(h+B|0,h,i);xc(h+C|0,h,i);xc(h+D|0,h,i);xc(h+E|0,h,i);xc(h+F|0,h,i);j=j+1|0;if((j|0)!=(e|0))continue;break}break a;case 3:break c;default:break a}g=kd(16,4);if(!g)break a;while(1){if(h&1)J[(h<<2)+g>>2]=255;if(h&2){i=(h<<2)+g|0;J[i>>2]=J[i>>2]|65280}if(h&4){i=(h<<2)+g|0; J[i>>2]=J[i>>2]|16711680}if(h&8){i=(h<<2)+g|0;J[i>>2]=J[i>>2]|-16777216}h=h+1|0;if((h|0)!=16)continue;break}if((e|0)<=0)break b;h=(d+3|0)/4|0;h=(h|0)<=1?1:h;p=h&2147483646;q=h&1;k=b<<2;l=b<<3;r=P(b,12);s=P(b,20);t=P(b,24);v=P(b,28);while(1){i=(P(j,l)<<2)+a|0;e:{if((d|0)<=0)break e;n=(P(f,j)<<2)+c|0;h=0;b=0;if((d|0)>4)while(1){m=h<<2;o=m&24;u=n+(h>>>1&2147483644)|0;J[i+m>>2]=J[((J[u>>2]>>>(o^28)&15)<<2)+g>>2];J[i+(m|4)>>2]=J[((J[u>>2]>>>(o^24)&15)<<2)+g>>2];h=h+2|0;b=b+2|0;if((p|0)!=(b|0))continue; -break}if(!q)break e;b=h<<2;J[b+i>>2]=J[((J[n+(h>>>1&2147483644)>>2]>>>((b^-1)&28)&15)<<2)+g>>2]}tc(i+k|0,i,k);tc(i+l|0,i,k);tc(i+r|0,i,k);tc(i+(k<<2)|0,i,k);tc(i+s|0,i,k);tc(i+t|0,i,k);tc(i+v|0,i,k);j=j+1|0;if((j|0)!=(e|0))continue;break}}qc(g)}}function rva(a){a=a|0;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;f=bc-32|0;bc=f;a:{b:{c:{d:{e:{f:{g:{h:{g=J[a+96>>2];i:{if((g|0)<=0)break i;while(1){h=b;b=b+1|0;i=J[a+128>>2];j=J[a+104>>2];while(1){j:{e=J[a+116>>2];if((e|0)<=(h|0)){c=J[a+ -120>>2];if((c|0)>=(h|0))break j}a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}n=J[a+92>>2];d=(b|0)%(n|0)|0;if(!((e|0)<=(d|0)&(d|0)<=(c|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}k:{c=J[a+108>>2];if(J[j+(h-c<<2)>>2]!=J[j+(d-c<<2)>>2])break k;l:{e=J[a+140>>2];if((e|0)<=(h|0)){c=J[a+144>>2];if((c|0)>=(h|0))break l}a=Kc(f+8|0,2392484,2393512,619,2401256, -0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if(!((d|0)<=(c|0)&(d|0)>=(e|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=J[a+132>>2];if(J[i+(h-c<<2)>>2]!=J[i+(d-c<<2)>>2])break k;c=n-1|0;if((c|0)>(d|0)){while(1){e=J[a+116>>2];c=d+1|0;if(!((e|0)<=(c|0)&J[a+120>>2]>(d|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if((d| -0)<(e|0)){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}e=J[a+108>>2];J[j+(d-e<<2)>>2]=J[j+(c-e<<2)>>2];e=J[a+140>>2];if(!((e|0)<=(c|0)&J[a+144>>2]>(d|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if((d|0)<(e|0)){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}e=d;d=J[a+132>>2];J[i+ +break}if(!q)break e;b=h<<2;J[b+i>>2]=J[((J[n+(h>>>1&2147483644)>>2]>>>((b^-1)&28)&15)<<2)+g>>2]}xc(i+k|0,i,k);xc(i+l|0,i,k);xc(i+r|0,i,k);xc(i+(k<<2)|0,i,k);xc(i+s|0,i,k);xc(i+t|0,i,k);xc(i+v|0,i,k);j=j+1|0;if((j|0)!=(e|0))continue;break}}uc(g)}}function yxa(a){a=a|0;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;f=fc-32|0;fc=f;a:{b:{c:{d:{e:{f:{g:{h:{g=J[a+96>>2];i:{if((g|0)<=0)break i;while(1){h=b;b=b+1|0;i=J[a+128>>2];j=J[a+104>>2];while(1){j:{e=J[a+116>>2];if((e|0)<=(h|0)){c=J[a+ +120>>2];if((c|0)>=(h|0))break j}a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}n=J[a+92>>2];d=(b|0)%(n|0)|0;if(!((e|0)<=(d|0)&(d|0)<=(c|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}k:{c=J[a+108>>2];if(J[j+(h-c<<2)>>2]!=J[j+(d-c<<2)>>2])break k;l:{e=J[a+140>>2];if((e|0)<=(h|0)){c=J[a+144>>2];if((c|0)>=(h|0))break l}a=Qc(f+8|0,2404388,2405416,619,2413160, +0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(!((d|0)<=(c|0)&(d|0)>=(e|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=J[a+132>>2];if(J[i+(h-c<<2)>>2]!=J[i+(d-c<<2)>>2])break k;c=n-1|0;if((c|0)>(d|0)){while(1){e=J[a+116>>2];c=d+1|0;if(!((e|0)<=(c|0)&J[a+120>>2]>(d|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if((d| +0)<(e|0)){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}e=J[a+108>>2];J[j+(d-e<<2)>>2]=J[j+(c-e<<2)>>2];e=J[a+140>>2];if(!((e|0)<=(c|0)&J[a+144>>2]>(d|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if((d|0)<(e|0)){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}e=d;d=J[a+132>>2];J[i+ (e-d<<2)>>2]=J[i+(c-d<<2)>>2];d=c;c=J[a+92>>2]-1|0;if((d|0)<(c|0))continue;break}g=J[a+96>>2]}J[a+92>>2]=c;g=g-1|0;J[a+96>>2]=g;if(c)continue;break i}break}if((b|0)<(g|0))continue;break}if((g|0)<=0)break i;b=0;while(1){h=b;n=b+2|0;b=b+1|0;l=J[a+128>>2];m=J[a+104>>2];while(1){m:{if((b|0)>=(g|0)?K[a+89|0]:0)break m;i=J[a+116>>2];if((i|0)>(h|0))break c;j=J[a+120>>2];if((j|0)<(h|0))break c;e=J[a+140>>2];if((e|0)>(h|0))break d;c=J[a+144>>2];if((c|0)<(h|0))break d;o=J[a+92>>2];d=(b|0)%(o|0)|0;if((i|0)> -(d|0)|(d|0)>(j|0))break e;if((d|0)<(e|0)|(d|0)>(c|0))break f;k=(n|0)%(o|0)|0;if((i|0)>(k|0)|(j|0)<(k|0))break g;if((c|0)<(k|0)|(e|0)>(k|0))break h;i=J[a+108>>2];e=J[(d-i<<2)+m>>2];j=J[a+132>>2];c=J[(d-j<<2)+l>>2];if((P(e-J[(k-i<<2)+m>>2]|0,c-J[(h-j<<2)+l>>2]|0)|0)!=(P(c-J[(k-j<<2)+l>>2]|0,e-J[(h-i<<2)+m>>2]|0)|0))break m;c=o-1|0;if((c|0)>(d|0)){while(1){e=J[a+116>>2];c=d+1|0;if(!((e|0)<=(c|0)&J[a+120>>2]>(d|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break b;break a}if((d|0)<(e|0)){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}e=J[a+108>>2];J[(d-e<<2)+m>>2]=J[(c-e<<2)+m>>2];e=J[a+140>>2];if(!((e|0)<=(c|0)&J[a+144>>2]>(d|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if((d|0)<(e|0)){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b; -break a}e=d;d=J[a+132>>2];J[(e-d<<2)+l>>2]=J[(c-d<<2)+l>>2];d=c;c=J[a+92>>2]-1|0;if((d|0)<(c|0))continue;break}g=J[a+96>>2]}J[a+92>>2]=c;g=g-1|0;J[a+96>>2]=g;if(c)continue;break i}break}if((b|0)<(g|0))continue;break}}bc=f+32|0;return}a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=Kc(f+8|0,2392484,2393512,619, -2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}B()}b=Z()|0;Fc(a);ba(b|0);B()}function f1a(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,u=0,v=0;i=bc-16|0;bc=i;o=J[b+12>>2];g=J[b+8>>2];j=J[b+4>>2];p=J[a+4>>2];q=J[a+16>>2];J[i+12>>2]=q;t=J[a+20>>2];d=J[p+24>>2];n=K[d+201|0];s=d+(K[p+28|0]&16?192:188)|0;h=J[j+44>>2];if(h){r=J[j+48>>2];k=K[j+36|0]}else k=0;l=(k<<24>>24)+o-((r<<24>>24)+g)|0;a:{if((l|0)<=0)break a;e=K[o-1|0];b:{if((e&192)!=128)break b;if((l|0)<2)break a;f=1;e=K[o-2|0];if((e&192)!=128)break b;if((l|0)<3)break a;f=2;e=K[o-3|0];if((e&192)==128)break a}l= +(d|0)|(d|0)>(j|0))break e;if((d|0)<(e|0)|(d|0)>(c|0))break f;k=(n|0)%(o|0)|0;if((i|0)>(k|0)|(j|0)<(k|0))break g;if((c|0)<(k|0)|(e|0)>(k|0))break h;i=J[a+108>>2];e=J[(d-i<<2)+m>>2];j=J[a+132>>2];c=J[(d-j<<2)+l>>2];if((P(e-J[(k-i<<2)+m>>2]|0,c-J[(h-j<<2)+l>>2]|0)|0)!=(P(c-J[(k-j<<2)+l>>2]|0,e-J[(h-i<<2)+m>>2]|0)|0))break m;c=o-1|0;if((c|0)>(d|0)){while(1){e=J[a+116>>2];c=d+1|0;if(!((e|0)<=(c|0)&J[a+120>>2]>(d|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break b;break a}if((d|0)<(e|0)){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}e=J[a+108>>2];J[(d-e<<2)+m>>2]=J[(c-e<<2)+m>>2];e=J[a+140>>2];if(!((e|0)<=(c|0)&J[a+144>>2]>(d|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if((d|0)<(e|0)){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b; +break a}e=d;d=J[a+132>>2];J[(e-d<<2)+l>>2]=J[(c-d<<2)+l>>2];d=c;c=J[a+92>>2]-1|0;if((d|0)<(c|0))continue;break}g=J[a+96>>2]}J[a+92>>2]=c;g=g-1|0;J[a+96>>2]=g;if(c)continue;break i}break}if((b|0)<(g|0))continue;break}}fc=f+32|0;return}a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=Qc(f+8|0,2404388,2405416,619, +2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Y2a(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,u=0,v=0;i=fc-16|0;fc=i;o=J[b+12>>2];g=J[b+8>>2];j=J[b+4>>2];p=J[a+4>>2];q=J[a+16>>2];J[i+12>>2]=q;t=J[a+20>>2];d=J[p+24>>2];n=K[d+201|0];s=d+(K[p+28|0]&16?192:188)|0;h=J[j+44>>2];if(h){r=J[j+48>>2];k=K[j+36|0]}else k=0;l=(k<<24>>24)+o-((r<<24>>24)+g)|0;a:{if((l|0)<=0)break a;e=K[o-1|0];b:{if((e&192)!=128)break b;if((l|0)<2)break a;f=1;e=K[o-2|0];if((e&192)!=128)break b;if((l|0)<3)break a;f=2;e=K[o-3|0];if((e&192)==128)break a}l= (e>>>0>191)+(e>>>0>223)|0;c:{if(e>>>0<=239)break c;l=0;if(e>>>0>253)break c;l=(e>>>0>251)+(e>>>0>247?4:3)|0}if(l>>>0<=f>>>0)break a;o=(f^-1)+o|0}e=t-q|0;u=n&1;v=J[d+208>>2];q=J[d+56>>2];t=J[d+52>>2];l=J[s>>2];d:{if(!(!h|(e|0)<=0)){H[j+36|0]=0;J[j+44>>2]=0;m=k;d=0;break d}d=1}e:{f:{g:{while(1){h:{i:{j:{k:{if(!d){l:{m:{n:{o:{p:{q:{d=r<<24>>24;r:{if((d|0)<=m<<24>>24)break r;f=J[b+12>>2];while(1){if(g>>>0>=f>>>0)break q;n=K[g|0];if((n&192)!=128)break r;g=g+1|0;h=n+(h<<6)|0;m=m+1<<24>>24;if((d|0)>(m|0))continue; -break}m=r}d=m<<24>>24;f=(m&255)!=(r&255);if(f|(m&254)!=2)break p;f=d<<2;h=h-J[f+735872>>2]|0;if((h|0)>2]|h-57344>>>0>4294965247)break m;d=h>>10;break o}e=k<<24>>24;c=m<<24>>24;g=(e-c|0)+g|0;if((c|0)>(e|0))while(1){H[(e+j|0)+37|0]=K[g|0];g=g+1|0;e=e+1|0;if((c|0)>(e|0))continue;break}J[j+48>>2]=d;H[j+36|0]=m;J[j+44>>2]=h;J[b+8>>2]=g;J[a+16>>2]=J[i+12>>2];break e}if((m&255)!=4|f|h-63512704>>>0>1048575)break m;h=h-63447168|0;f=0;if(!u)break n;d=h>>>10|0}f=J[(t+(h>>>2&252)|0)+(L[t+(d<<1)>> +break}m=r}d=m<<24>>24;f=(m&255)!=(r&255);if(f|(m&254)!=2)break p;f=d<<2;h=h-J[f+737616>>2]|0;if((h|0)>2]|h-57344>>>0>4294965247)break m;d=h>>10;break o}e=k<<24>>24;c=m<<24>>24;g=(e-c|0)+g|0;if((c|0)>(e|0))while(1){H[(e+j|0)+37|0]=K[g|0];g=g+1|0;e=e+1|0;if((c|0)>(e|0))continue;break}J[j+48>>2]=d;H[j+36|0]=m;J[j+44>>2]=h;J[b+8>>2]=g;J[a+16>>2]=J[i+12>>2];break e}if((m&255)!=4|f|h-63512704>>>0>1048575)break m;h=h-63447168|0;f=0;if(!u)break n;d=h>>>10|0}f=J[(t+(h>>>2&252)|0)+(L[t+(d<<1)>> 1]<<2)>>2]}n=h&15;d=L[l+((f<<4&1048560|n)<<1)>>1];if(f>>>(n|16)&1)break k;if(K[p+35|0]|h-57344>>>0<6400)break l;if(h-983040>>>0>131071)break j;if(d&65535)break k;break j}h=k<<24>>24;g=(h-d|0)+g|0;s:{if((d|0)<=(h|0))break s;o=d+(h^-1)|0;k=d-h&3;if(k){e=0;while(1){H[(h+j|0)+37|0]=K[g|0];h=h+1|0;g=g+1|0;e=e+1|0;if((k|0)!=(e|0))continue;break}}if(o>>>0<3)break s;while(1){e=h+j|0;H[e+37|0]=K[g|0];H[e+38|0]=K[g+1|0];H[e+39|0]=K[g+2|0];H[e+40|0]=K[g+3|0];g=g+4|0;h=h+4|0;if((d|0)!=(h|0))continue;break}}H[j+ 36|0]=m;J[b+8>>2]=g;J[a+16>>2]=J[i+12>>2];J[c>>2]=12;break e}if(!(d&65535))break j;break k}if(g>>>0>=o>>>0)break g;d=g;t:{u:{while(1){if((e|0)<=0)break h;g=d+1|0;f=H[d|0];h=f&255;if((f|0)<0)break u;if(!(v>>>(h>>>2)&1))break t;d=J[i+12>>2];J[i+12>>2]=d+1;H[d|0]=f;e=e-1|0;d=g;if((o|0)!=(d|0))continue;break}g=o;break g}v:{w:{x:{y:{if(f>>>0>=4294967265){n=K[g|0]^128;if(!(n>>>0<64&f>>>0<=4294967276)&((f|0)!=-19|n>>>0>31))break y;s=K[d+2|0]^128;if(s>>>0>63)break x;g=d+3|0;f=n|h<<6&960;d=L[(l+(L[q+(f<<1)>> 1]<<1)|0)+(s<<1)>>1];if(d)break k;h=s|f<<6;break j}if((f|0)==-32|f>>>0<4294967234)break x;n=K[g|0]^128;if(n>>>0>63)break x;g=d+2|0;f=h&31;d=L[(l+(L[q+(f<<1)>>1]<<1)|0)+(n<<1)>>1];if(d)break k;h=n|f<<6;break j}if(f>>>0>4294967279)break w}d=(f>>>0>4294967231)+(f>>>0>4294967263)|0;break v}d=0;if(f>>>0>4294967293)break v;d=(f>>>0>4294967291)+(f>>>0>4294967287?4:3)|0}m=1;r=d+1|0;k=0;d=0;continue}d=L[(l+(L[q>>1]<<1)|0)+(h<<1)>>1];if(!d)break j}if((d&65535)>>>0<=255){f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=d; -e=e-1|0;break i}f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=d>>>8;if((e|0)>=2){f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=d;e=e-2|0;break i}H[p+63|0]=1;H[p+76|0]=d;J[c>>2]=15;break f}J[i+8>>2]=735902;d=Mt(p,J[J[p+24>>2]+224>>2],h,i+8|0,735902,i+12|0,J[i+12>>2]+e|0,0,-1,H[a+2|0],c);if(J[c>>2]>0){J[p+56>>2]=d;break g}if(J[p+180>>2]>=0){J[c>>2]=-127;break g}e=J[a+20>>2]-J[i+12>>2]|0}d=1;continue}break}J[c>>2]=15;g=d;break f}if(J[c>>2]>0|J[p+180>>2]>=0)break f;c=J[b+12>>2];if(c>>>0<=g>>>0)break f;d=K[g|0];H[j+37|0]=d; +e=e-1|0;break i}f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=d>>>8;if((e|0)>=2){f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=d;e=e-2|0;break i}H[p+63|0]=1;H[p+76|0]=d;J[c>>2]=15;break f}J[i+8>>2]=737646;d=zu(p,J[J[p+24>>2]+224>>2],h,i+8|0,737646,i+12|0,J[i+12>>2]+e|0,0,-1,H[a+2|0],c);if(J[c>>2]>0){J[p+56>>2]=d;break g}if(J[p+180>>2]>=0){J[c>>2]=-127;break g}e=J[a+20>>2]-J[i+12>>2]|0}d=1;continue}break}J[c>>2]=15;g=d;break f}if(J[c>>2]>0|J[p+180>>2]>=0)break f;c=J[b+12>>2];if(c>>>0<=g>>>0)break f;d=K[g|0];H[j+37|0]=d; h=1;e=(d>>>0>191)+(d>>>0>223)|0;z:{if(d>>>0<=239)break z;e=0;if(d>>>0>253)break z;e=(d>>>0>251)+(d>>>0>247?4:3)|0}o=e+1|0;e=g+1|0;A:{if(c>>>0<=e>>>0){c=e;break A}k=c+(g^-1)|0;m=k&3;if((c-g|0)-2>>>0>=3){k=k&-4;f=0;g=j+37|0;while(1){r=K[e|0];H[g+(h<<24>>24)|0]=r;p=K[e+1|0];H[g+(h+1<<24>>24)|0]=p;l=K[e+2|0];H[g+(h+2<<24>>24)|0]=l;q=K[e+3|0];H[g+(h+3<<24>>24)|0]=q;d=q+((p+((d<<12)+(r<<6)|0)<<12)+(l<<6)|0)|0;e=e+4|0;h=h+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}if(m){g=0;while(1){k=K[e|0];H[((h<<24>> -24)+j|0)+37|0]=k;e=e+1|0;h=h+1|0;d=k+(d<<6)|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}}g=c;J[j+48>>2]=o;H[j+36|0]=h;J[j+44>>2]=d}J[b+8>>2]=g;J[a+16>>2]=J[i+12>>2]}bc=i+16|0}function gea(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;h=bc-192|0;bc=h;e=J[a+608>>2];d=J[a+604>>2];u=1;n=J[a+584>>2];o=J[n+72>>2];g=J[n+68>>2];k=J[n+64>>2];a:{b:{c:{d:{if((c|0)<=0){f=d;break d}s=d+e|0;p=J[n+88>>2];t=J[n+60>>2];l=J[n+12>>2];e:while(1){f:{g:{if(o)break g; +24)+j|0)+37|0]=k;e=e+1|0;h=h+1|0;d=k+(d<<6)|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}}g=c;J[j+48>>2]=o;H[j+36|0]=h;J[j+44>>2]=d}J[b+8>>2]=g;J[a+16>>2]=J[i+12>>2]}fc=i+16|0}function rja(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;h=fc-192|0;fc=h;e=J[a+608>>2];d=J[a+604>>2];u=1;n=J[a+584>>2];o=J[n+72>>2];g=J[n+68>>2];k=J[n+64>>2];a:{b:{c:{d:{if((c|0)<=0){f=d;break d}s=d+e|0;p=J[n+88>>2];t=J[n+60>>2];l=J[n+12>>2];e:while(1){f:{g:{if(o)break g; while(1){h:{i:{j:{if((g|0)>10){e=d;break j}if(d>>>0>=s>>>0){if(!g)break i;g=11;e=d;break j}f=g+8|0;e=d+1|0;k=K[K[d|0]+t|0]<2){g=f;break j}if(e>>>0>=s>>>0){g=11;break j}g=g+16|0;e=d+2|0;k=K[K[d+1|0]+t|0]<>>1|0;g=g-1|0;d=e;continue}}while(1){e=g;f=e;k:{if((e|0)>7)break k;if(d>>>0>=s>>>0){f=8;if(e)break k;break f}k=K[K[d|0]+t|0]<>>1|0;if(!f)continue;break}k=k>>>1|0; -g=e-1|0;e=0;f=p;l:{m:{while(1){q=0;n:{while(1){o:{if((g|0)>11){i=g;break o}if(d>>>0>=s>>>0){i=12;if(g)break o;break c}m=g+8|0;j=d+1|0;k=K[K[d|0]+t|0]<3){i=m;d=j;break o}i=12;if(j>>>0>=s>>>0){d=j;break o}i=g+16|0;k=K[K[d+1|0]+t|0]<>>g|0;g=i-g|0;o=1;i=f;p:{q:switch(K[j|0]-7|0){case 0:j=J[j+4>>2];v=j+q|0;J[f>>2]=v;i=f+4|0;q=0;e=e+j|0;if((l|0)>(e|0))break p;o=0;break l;case 5:break m;case 2:case 4:break q;default:break n}i=J[j+4>>2];q= -i+q|0;e=e+i|0;continue}break}while(1){r:{if((g|0)>12){j=g;break r}if(d>>>0>=s>>>0){j=13;if(g)break r;f=i;break c}r=g+8|0;m=d+1|0;k=K[K[d|0]+t|0]<4){j=r;d=m;break r}j=13;if(m>>>0>=s>>>0){d=m;break r}j=g+16|0;k=K[K[d+1|0]+t|0]<>>g|0;g=j-g|0;j=K[m|0];if(j-10>>>0<2){j=J[m+4>>2];q=j+q|0;e=e+j|0;continue}break}s:{t:switch(j-8|0){case 0:j=J[m+4>>2];m=j+q|0;J[f+4>>2]=m;i=f+8|0;e=e+j|0;if((l|0)>(e|0))break s;o=0;break l;case 4:break m;default:break t}f= -J[a+12>>2]&1024;j=J[(f?504:480)+a>>2];m=J[a+628>>2];r=J[a>>2];o=J[n+108>>2];J[h+80>>2]=e;J[h+76>>2]=j;J[h+72>>2]=f?88466:88523;J[h+68>>2]=o;J[h+64>>2]=r;Nc(m,95760,88300,h- -64|0);o=0;break m}f=m|v?i:f;continue}break}i=J[a+12>>2]&1024;j=J[(i?504:480)+a>>2];m=J[a+628>>2];r=J[a>>2];o=J[n+108>>2];J[h+48>>2]=e;J[h+44>>2]=j;J[h+40>>2]=i?88466:88523;J[h+36>>2]=o;J[h+32>>2]=r;Nc(m,95760,88300,h+32|0);o=0;i=f}if(!q)break l;J[i>>2]=q;i=i+4|0}u:{if((e|0)==(l|0))break u;f=J[a+12>>2]&1024;j=J[(f?504:480)+a>> -2];m=J[a+628>>2];r=J[a>>2];q=J[n+108>>2];J[h+24>>2]=l;J[h+20>>2]=e;J[h+16>>2]=j;J[h+12>>2]=f?88466:88523;J[h+8>>2]=q;J[h+4>>2]=e>>>0>>0?88855:88910;J[h>>2]=r;ae(m,95760,88772,h);f=(e|0)>(l|0);v:{if((e|0)<=(l|0)|i>>>0<=p>>>0)break v;while(1){i=i-4|0;e=e-J[i>>2]|0;f=(l|0)<(e|0);if((e|0)<=(l|0))break v;if(i>>>0>p>>>0)continue;break}}if((e|0)<(l|0)){if(i-p&4){J[i>>2]=0;i=i+4|0}J[i>>2]=l-((e|0)>0?e:0);i=i+4|0;break u}if(!f)break u;J[i+4>>2]=0;J[i>>2]=l;i=i+8|0}gc[J[n+76>>2]](b,p,i,l);J[n+108>>2]=J[n+ -108>>2]+1;f=J[n+8>>2];b=f+b|0;c=c-f|0;if((c|0)>0)continue e;e=J[a+608>>2];f=J[a+604>>2];break d}else{k=k>>>8|0;g=e-8|0;continue}}}break}if(!l){f=p;break b}c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];g=J[n+108>>2];J[h+184>>2]=l;J[h+180>>2]=0;J[h+176>>2]=f;J[h+172>>2]=c?88466:88523;J[h+168>>2]=g;J[h+164>>2]=88855;J[h+160>>2]=i;ae(e,95760,88772,h+160|0);J[p>>2]=l;if((l|0)>0){f=p+4|0;break b}J[p+4>>2]=0;f=p+8|0;break b}J[n+72>>2]=o;J[n+64>>2]=k;J[n+68>>2]=g;b=(f-d|0)+e|0;break a}c= -J[a+12>>2]&1024;i=J[(c?504:480)+a>>2];g=J[a+628>>2];j=J[a>>2];m=J[n+108>>2];J[h+144>>2]=e;J[h+140>>2]=i;J[h+136>>2]=c?88466:88523;J[h+132>>2]=m;J[h+128>>2]=j;ae(g,95760,88640,h+128|0);if(q){J[f>>2]=q;f=f+4|0}o=0;if((e|0)==(l|0))break b;c=J[a+12>>2]&1024;i=J[(c?504:480)+a>>2];g=J[a+628>>2];j=J[a>>2];m=J[n+108>>2];J[h+120>>2]=l;J[h+116>>2]=e;J[h+112>>2]=i;J[h+108>>2]=c?88466:88523;J[h+104>>2]=m;J[h+100>>2]=e>>>0>>0?88855:88910;J[h+96>>2]=j;ae(g,95760,88772,h+96|0);g=(e|0)>(l|0);w:{if((e|0)<=(l|0)| -f>>>0<=p>>>0)break w;while(1){f=f-4|0;e=e-J[f>>2]|0;g=(l|0)<(e|0);if((e|0)<=(l|0))break w;if(f>>>0>p>>>0)continue;break}}if((e|0)<(l|0)){if(f-p&4){J[f>>2]=0;f=f+4|0}J[f>>2]=l-((e|0)>0?e:0);f=f+4|0;break b}if(!g)break b;J[f+4>>2]=0;J[f>>2]=l;f=f+8|0}gc[J[n+76>>2]](b,p,f,l);J[n+72>>2]=o;J[n+64>>2]=k;J[n+68>>2]=0;u=-1;b=J[a+608>>2]+(J[a+604>>2]-d|0)|0}J[a+604>>2]=d;J[a+608>>2]=b;bc=h+192|0;return u|0}function uwa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-48|0;bc=d;J[d+40>>2]=0;J[d+44>>2]=J[682146];J[695492]= -0;da(5108,d+36|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){a=a+8|0;f=J[d+36>>2];d:{while(1){e:{J[695492]=0;b=d+40|0;c=ha(5109,f|0,b|0,0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;f:{g:{h:{if(c){J[695492]=0;b=fd(b,2377354,-1);c=J[695492];J[695492]=0;if((c|0)==1)break e;if(!b){if(J[a>>2]){J[695492]=0;b=ja(5018,d+12|0,2377605,2373412,709,2406979,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break d}J[695492]= -0;b=$(4,64)|0;c=J[695492];J[695492]=0;i:{j:{k:{l:{if((c|0)==1)break l;J[b+8>>2]=0;J[b>>2]=2407080;J[b+4>>2]=0;c=J[682146];J[b+20>>2]=0;J[b+24>>2]=0;J[b+16>>2]=1;J[b+12>>2]=c;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;c=b+44|0;J[c>>2]=0;J[c+4>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[695492]=0;J[c>>2]=2407112;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;sc(b+8|0);qc(ed(b));break d}J[b+60>>2]=0;J[695492]=0;J[d+12>>2]=0;c=d+12|0;aa(4985,c|0,b|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break l;J[695492]=0;aa(4993,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;b=J[d+12>>2];J[d+12>>2]=0;m:{if(!b)break m;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break m;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a>>2];J[695492]=0;J[d+12>>2]=0;c=d+12|0;aa(4985,c|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;J[695492]=0;da(5427,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[d+12>>2];J[d+ -12>>2]=0;if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;break f}a=Z()|0;break d}a=Z()|0;vc(d+12|0);break d}a=Z()|0;break d}a=Z()|0;vc(d+12|0);break d}J[695492]=0;b=fd(d+40|0,2378252,-1);c=J[695492];J[695492]=0;if((c|0)==1)break e;if(b)break f;if(J[a>>2]){J[695492]=0;b=ja(5018,d+12|0,2377605,2373412,716,2406979,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]= -0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break d}J[695492]=0;b=$(4,64)|0;c=J[695492];J[695492]=0;n:{o:{p:{q:{r:{if((c|0)==1)break r;J[b+8>>2]=0;J[b>>2]=2407080;J[b+4>>2]=0;c=J[682146];J[b+20>>2]=0;J[b+24>>2]=0;J[b+16>>2]=1;J[b+12>>2]=c;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;c=b+44|0;J[c>>2]=0;J[c+4>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[695492]=0;J[c>>2]=2407112;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;sc(b+8|0);qc(ed(b)); -break d}J[b+60>>2]=0;J[695492]=0;J[d+12>>2]=0;c=d+12|0;aa(4985,c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;J[695492]=0;aa(4993,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break q;b=J[d+12>>2];J[d+12>>2]=0;s:{if(!b)break s;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break s;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[d+8>>2]=0;J[695492]=0;b=d+8|0;aa(4985,b|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break p;J[695492]= -0;da(5125,d+12|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break o;b=J[d+8>>2];J[d+8>>2]=0;t:{if(!b)break t;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break t;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a>>2];J[695492]=0;da(5427,b|0,d+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break n;b=J[d+12>>2];J[d+12>>2]=0;if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break f;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f}break a}a=Z()|0;break d}a=Z()|0;vc(d+12|0);break d}a=Z()|0;break d}a=Z()|0;vc(d+8|0);break d}a=Z()|0;vc(d+12|0);break d}a=J[d+36>>2];J[d+36>>2]=0;u:{if(!a)break u;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break u;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}sc(d+40|0);bc=d+48|0;return}a=Z()|0;break d}a=Z()|0;break d}J[695492]=0;_(5162,f|0);b=J[695492];J[695492]=0;if((b|0)!=1)continue}break}a= -Z()|0}vc(d+36|0);break c}a=Z()|0}sc(d+40|0);ba(a|0);B()}B()}ea(0)|0;yc();B()}function Qf(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;k=bc-96|0;bc=k;u=i&65535;o=(e^i)&-2147483648;q=e&65535;y=q;Q=i>>>16&32767;R=e>>>16&32767;a:{b:{if(Q-32767>>>0>4294934529&R-32767>>>0>=4294934530)break b;m=e&2147483647;p=m;j=d;if(!(!d&(m|0)==2147418112?!(b|c):m>>>0<2147418112)){n=d;o=e|32768;break a}m=i& -2147483647;s=m;e=h;if(!(!e&(m|0)==2147418112?!(f|g):m>>>0<2147418112)){n=e;o=i|32768;b=f;c=g;break a}if(!(b|j|(p^2147418112|c))){if(!(e|f|(g|s))){o=2147450880;b=0;c=0;break a}o=o|2147418112;b=0;c=0;break a}if(!(e|f|(s^2147418112|g))){e=b|j;d=c|p;b=0;c=0;if(!(d|e)){o=2147450880;break a}o=o|2147418112;break a}if(!(b|j|(c|p))){b=0;c=0;break a}if(!(e|f|(g|s))){b=0;c=0;break a}if((p|0)==65535|p>>>0<65535){j=!(d|q);i=j?b:d;m=j<<6;e=S(i)+32|0;i=S(j?c:q);i=m+((i|0)==32?e:i)|0;qi(k+80|0,b,c,d,q,i-15|0);t= -16-i|0;d=J[k+88>>2];y=J[k+92>>2];c=J[k+84>>2];b=J[k+80>>2]}if(s>>>0>65535)break b;i=!(h|u);e=i?f:h;q=i<<6;j=S(e)+32|0;e=S(i?g:u);e=q+((e|0)==32?j:e)|0;qi(k- -64|0,f,g,h,u,e-15|0);t=(t-e|0)+16|0;h=J[k+72>>2];u=J[k+76>>2];f=J[k+64>>2];g=J[k+68>>2]}e=f;f=g<<15|f>>>17;i=e<<15;e=0;v=i&-32768;K=c;s=Dzb(v,e,c,0);e=fc;z=e;L=f;w=b;b=Dzb(f,0,b,0);c=b+s|0;f=fc+e|0;i=b>>>0>c>>>0?f+1|0:f;j=0;b=Dzb(w,l,v,l);p=j+b|0;f=c;e=f+fc|0;e=b>>>0>p>>>0?e+1|0:e;q=e;M=(f|0)==(e|0)&j>>>0>p>>>0|e>>>0>>0;N=d;m=Dzb(v,l,d,0); -O=fc;b=Dzb(K,l,L,l);x=b+m|0;j=fc+O|0;j=b>>>0>x>>>0?j+1|0:j;b=u<<15|h>>>17;B=h<<15|g>>>17;d=Dzb(B,0,w,l);C=d+x|0;f=fc+j|0;f=d>>>0>C>>>0?f+1|0:f;D=f;e=i;E=e+C|0;f=((e|0)==(z|0)&c>>>0>>0|e>>>0>>0)+f|0;f=e>>>0>E>>>0?f+1|0:f;u=f;g=E;c=f;F=y|65536;z=Dzb(v,l,F,r);P=fc;d=Dzb(N,n,L,l);G=d+z|0;e=fc+P|0;e=d>>>0>G>>>0?e+1|0:e;i=e;H=b|-2147483648;b=Dzb(H,0,w,l);v=b+G|0;f=fc+e|0;f=b>>>0>v>>>0?f+1|0:f;b=Dzb(B,n,K,l);r=b+v|0;I=f;f=f+fc|0;s=b>>>0>r>>>0?f+1|0:f;b=0;w=b+g|0;e=c+r|0;e=b>>>0>w>>>0?e+1|0:e;y=e;f= -e;b=w+M|0;c=b>>>0>>0?f+1|0:f;t=((R+Q|0)+t|0)-16383|0;d=Dzb(H,A,K,l);h=fc;e=Dzb(F,n,L,l);g=e+d|0;f=fc+h|0;f=e>>>0>g>>>0?f+1|0:f;l=(h|0)==(f|0)&d>>>0>g>>>0|f>>>0>>0;h=f;e=Dzb(B,n,N,n);d=e+g|0;f=fc+f|0;f=d>>>0>>0?f+1|0:f;e=f;g=(f|0)==(h|0)&d>>>0>>0|f>>>0>>0;f=0;h=g;g=g+l|0;f=h>>>0>g>>>0?1:f;h=g;g=Dzb(H,A,F,n);h=h+g|0;f=fc+f|0;M=h;g=g>>>0>h>>>0?f+1|0:f;h=d;l=e;e=(j|0)==(O|0)&m>>>0>x>>>0|j>>>0>>0;f=0;j=(j|0)==(D|0)&x>>>0>C>>>0|j>>>0>D>>>0;m=j;j=e+j|0;e=(m>>>0>j>>>0?1:f)+l|0;f=g;d=d+j| -0;e=d>>>0>>0?e+1|0:e;m=e;x=d;d=(e|0)==(l|0)&d>>>0>>0|e>>>0>>0;e=d;d=d+M|0;f=e>>>0>d>>>0?f+1|0:f;j=d;h=f;e=Dzb(B,n,F,n);l=fc;g=Dzb(H,A,N,n);d=g+e|0;f=fc+l|0;f=d>>>0>>0?f+1|0:f;g=f;f=(l|0)==(f|0)&d>>>0>>0|f>>>0>>0;A=g+j|0;e=f+h|0;e=g>>>0>A>>>0?e+1|0:e;l=A;h=e;j=d;e=0;d=e+x|0;f=j+m|0;f=d>>>0>>0?f+1|0:f;e=f;g=(m|0)==(f|0)&d>>>0>>0|f>>>0>>0;f=h;h=g;g=g+l|0;f=h>>>0>g>>>0?f+1|0:f;m=g;g=f;h=d;j=e;e=(s|0)==(I|0)&r>>>0>>0|s>>>0>>0;d=(i|0)==(P|0)&z>>>0>G>>>0|i>>>0

      >>0;i=(i| -0)==(I|0)&v>>>0>>0|i>>>0>I>>>0;d=d+i|0;d=d+e|0;r=s;i=r+h|0;e=d+j|0;f=g;d=i;e=d>>>0>>0?e+1|0:e;h=(e|0)==(j|0)&h>>>0>d>>>0|e>>>0>>0;g=h+m|0;f=h>>>0>g>>>0?f+1|0:f;j=g;g=f;h=d;f=0;i=e;r=(u|0)==(y|0)&w>>>0>>0|u>>>0>y>>>0;m=r;r=r+((u|0)==(D|0)&C>>>0>E>>>0|u>>>0>>0)|0;e=e+(m>>>0>r>>>0?1:f)|0;f=g;d=d+r|0;e=d>>>0>>0?e+1|0:e;h=(e|0)==(i|0)&d>>>0>>0|e>>>0>>0;g=h;h=h+j|0;f=g>>>0>h>>>0?f+1|0:f;i=f;c:{if(f&65536){t=t+1|0;break c}j=q>>>31|0;g=0;f=i<<1|h>>>31;h=h<<1|e>>>31;i=f;f=e<<1|d>>> -31;d=d<<1|c>>>31;e=f;f=q<<1|p>>>31;p=p<<1;q=f;f=c<<1|b>>>31;b=b<<1|j;c=f|g}if((t|0)>=32767){o=o|2147418112;b=0;c=0;break a}d:{if((t|0)<=0){g=1-t|0;if(g>>>0<=127){f=t+127|0;qi(k+48|0,p,q,b,c,f);qi(k+32|0,d,e,h,i,f);rq(k+16|0,p,q,b,c,g);rq(k,d,e,h,i,g);p=J[k+32>>2]|J[k+16>>2]|(J[k+48>>2]|J[k+56>>2]|(J[k+52>>2]|J[k+60>>2]))!=0;q=J[k+36>>2]|J[k+20>>2];b=J[k+40>>2]|J[k+24>>2];c=J[k+44>>2]|J[k+28>>2];d=J[k>>2];e=J[k+4>>2];g=J[k+8>>2];f=J[k+12>>2];break d}b=0;c=0;break a}g=h;f=i&65535|t<<16}n=g|n;o=f|o; -if(!(!b&(c|0)==-2147483648?!(p|q):(c|0)>0|(c|0)>=0)){b=d+1|0;j=b?e:e+1|0;e=o;c=j;d=!(j|b);n=d+n|0;o=d>>>0>n>>>0?e+1|0:e;break a}if(b|p|(c^-2147483648|q)){b=d;c=e;break a}f=e;b=d&1;c=b;b=b+d|0;c=c>>>0>b>>>0?f+1|0:f;d=(f|0)==(c|0)&b>>>0>>0|c>>>0>>0;f=o;n=d+n|0;o=n>>>0>>0?f+1|0:f}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=n;J[a+12>>2]=o;bc=k+96|0}function fTa(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;g=bc-112|0;bc=g;J[a+88>>2]=13;J[a+24>>2]=13;J[g+96>> -2]=13;J[g+80>>2]=13;J[g+64>>2]=13;J[g+48>>2]=13;J[g+32>>2]=13;J[a>>2]=b;J[a+104>>2]=1;J[a+4>>2]=J[b+24>>2];i=J[d>>2];b=J[d+4>>2];J[a+84>>2]=0;J[a+40>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=i;J[a+12>>2]=b;a:{if(J[Bc(c,774992,g- -64|0,0)>>2]==4){b=rc(8);J[695492]=0;i=aa(3182,b|0,J[g+72>>2])|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+16>>2]=i}b=g- -64|0;uc(b);b:{c:{if(J[Bc(c,775742,b,0)>>2]!=6)break c;d=J[g+72>>2];if(J[d+12>>2]!=4)break c;J[a+48>>2]=0;J[a+52>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0; -b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;if(J[Mc(d,0,g+48|0,0)>>2]-3>>>0>=4294967294)O[a+48>>3]=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];b=g+48|0;uc(b);if(J[Mc(J[g+72>>2],1,b,0)>>2]-3>>>0>=4294967294)O[a+56>>3]=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];b=g+48|0;uc(b);if(J[Mc(J[g+72>>2],2,b,0)>>2]-3>>>0>=4294967294)O[a+64>>3]=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];b=g+48|0;uc(b);if(J[Mc(J[g+72>>2],3,b,0)>>2]-3>>>0>=4294967294)O[a+72>>3]=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];uc(g+48|0);h=O[a+ -48>>3];j=O[a+64>>3];if(h>j){O[a+64>>3]=h;O[a+48>>3]=j}h=O[a+56>>3];j=O[a+72>>3];if(!(h>j))break b;O[a+72>>3]=h;O[a+56>>3]=j;break b}xc(1,-1,776906,0);J[a+104>>2]=0}d=g- -64|0;uc(d);i=0;b=Bc(c,778747,d,0);J[a+80>>2]=J[b>>2]==1?J[g+72>>2]:0;uc(d);J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;d:{e:{if(J[Bc(c,779707,d,0)>>2]==7){i=0;f:{if(J[Bc(J[g+72>>2],780726,g+48|0,0)>>2]!=4)break f;g:{if(J[g+48>>2]!=4)break g;b=J[g+56>>2];i=0;if(!Ec(b, -780726))break f;i=1;if(!Ec(b,782101))break f;i=2;if(!Ec(b,783120))break f;i=3;if(!Ec(b,783975))break f;if(Ec(b,784700))break g;i=4;break f}i=0}b=g+48|0;uc(b);l=1;if(J[Bc(J[g+72>>2],785561,b,0)>>2]-3>>>0>=4294967294)l=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];b=g+48|0;uc(b);if(J[Bc(J[g+72>>2],782101,b,0)>>2]!=6)break e;k=J[J[g+56>>2]+12>>2];m=vd(k,8);if((k|0)<=0)break e;b=0;while(1){d=(b<<3)+m|0;if(J[Mc(J[g+56>>2],b,g+32|0,0)>>2]-3>>>0>=4294967294)h=J[g+32>>2]==1?+J[g+40>>2]:O[g+40>>3];else h=1;O[d>>3]= -h;uc(g+32|0);b=b+1|0;if((k|0)!=(b|0))continue;break}break e}b=g- -64|0;uc(b);if(J[Bc(c,786310,b,0)>>2]!=6){l=1;break d}b=J[g+72>>2];if(J[b+12>>2]<3)break d;l=1;if(J[Mc(b,2,g+48|0,0)>>2]-3>>>0>=4294967294)l=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];d=g+48|0;uc(d);b=J[g+72>>2];if(J[b+12>>2]<4)break d;if(J[Mc(b,3,d,0)>>2]!=6){l=0;break e}i=1;k=J[J[g+56>>2]+12>>2];m=vd(k,8);if((k|0)<=0)break e;b=0;while(1){d=(b<<3)+m|0;if(J[Mc(J[g+56>>2],b,g+32|0,0)>>2]-3>>>0>=4294967294)h=J[g+32>>2]==1?+J[g+40>>2]:O[g+40>> -3];else h=1;O[d>>3]=h;uc(g+32|0);b=b+1|0;if((k|0)!=(b|0))continue;break}}uc(g+48|0)}d=g- -64|0;uc(d);b=3;j=1;h:{i:{if(J[Bc(c,787566,d,0)>>2]!=6)break i;d=J[J[g+72>>2]+12>>2];if(d>>>0>4)break i;h=0;if(!(1<>2],b,g+48|0,0)>>2]-3>>>0>=4294967294)h=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];else h=0;O[n>>3]=h;uc(g+48|0);b=b+1|0;if((d|0)!=(b|0))continue;break}o=O[g+24>>3];j=O[g+16>>3];p=O[g>>3];b=d;h=O[g+8>>3];break h}h=0}uc(g- -64|0);d=rc(64);J[d+56>>2]= -b;O[d+24>>3]=p;J[d+20>>2]=k;J[d+16>>2]=m;O[d+8>>3]=l;J[d>>2]=i;O[d+48>>3]=o;O[d+40>>3]=j;O[d+32>>3]=h;J[a+84>>2]=d;Bc(c,788261,g+96|0,0);Bc(c,789139,g+80|0,0);j:{k:{l:{if(J[g+80>>2]==4){b=rc(8);J[695492]=0;d=aa(3182,b|0,(f?f:J[g+88>>2])|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break l;break a}if(J[g+96>>2]==7){Bc(J[g+104>>2],e,g- -64|0,0);m:{if(J[g+64>>2]!=7)break m;d=J[g+72>>2];if(J[d+16>>2]!=1)break m;b=rc(8);if(!f){J[695492]=0;f=J[J[d+4>>2]>>2];d=J[695492];J[695492]=0;if((d|0)==1)break j}J[695492]= -0;f=aa(3182,b|0,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;J[a+20>>2]=f}uc(g- -64|0)}if(J[a+20>>2])break k;b=rc(8);J[695492]=0;d=aa(3182,b|0,789877)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break l;break a}J[a+20>>2]=d}uc(g+80|0);if(J[g+96>>2]==7){d=a+24|0;Bc(J[g+104>>2],e,g- -64|0,0);Ce(J[g+104>>2],e,g+48|0);n:{if(J[g+64>>2]==7){b=g+32|0;if(J[Ce(J[g+72>>2],J[J[a+20>>2]+4>>2],b)>>2]==9)Ef(b,d);uc(g+32|0);break n}if(J[g+48>>2]!=9)break n;Ef(g+48|0,d)}uc(g- -64|0);uc(g+48|0)}uc(g+96|0);Ce(c,791076, -a+88|0);bc=g+112|0;return a|0}}a=Z()|0;qc(b);ba(a|0);B()}function nVa(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;g=bc-160|0;bc=g;J[g+128>>2]=13;hf(c,J[b+24>>2],g+128|0,0);J[a>>2]=a+4;J[a+4>>2]=0;J[a+8>>2]=0;J[g+112>>2]=13;J[695492]=0;J[g+96>>2]=13;c=ha(3203,J[g+136>>2],811150,g+112|0,0)|0;h=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((h|0)==1)break i;if(J[c>>2]==7){J[695492]=0;c=ha(3203,J[g+120>>2],809748,g+96|0,0)|0;h=J[695492]; -J[695492]=0;if((h|0)==1)break i;if(J[c>>2]==8)break h}J[695492]=0;_(3205,g+112|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;_(3205,g+96|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}c=Z()|0;break a}J[695492]=0;J[g+80>>2]=13;c=g+96|0;h=g+80|0;i=ga(3345,c|0,0,h|0)|0;l=J[695492];J[695492]=0;j:{k:{if((l|0)==1)break k;if(i)break j;J[695492]=0;_(3205,g+112|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;_(3205,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;_(3205, -h|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}c=Z()|0;break a}c=J[J[d>>2]+20>>2];J[695492]=0;c=$(c|0,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break f;h=J[J[c>>2]+20>>2];J[695492]=0;l=$(h|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;p=J[689330];c=J[695492];J[695492]=0;if((c|0)==1)break e;s=J[J[g+88>>2]+16>>2];if((s|0)>0)while(1){J[g+64>>2]=13;J[695492]=0;c=g- -64|0;h=ga(3346,J[g+88>>2],q|0,c|0)|0;i=J[695492];J[695492]=0;l:{m:{if((i|0)!=1){if(J[h>>2]==9)break m;J[695492]=0; -_(3205,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break l}c=Z()|0;break a}J[g+56>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;H[g+31|0]=0;H[g+30|0]=0;J[695492]=0;c=g+16|0;h=g- -64|0;i=g+48|0;Oa(3347,c|0,b|0,d|0,e|0,g+80|0,h|0,f|0,i|0,g+32|0,g+31|0,g+30|0);k=J[695492];J[695492]=0;n:{o:{p:{q:{if((k|0)!=1){J[695492]=0;j=i;i=H[g+59|0];k=(i|0)<0;ca(1618,g+4|0,(k?J[g+48>>2]:j)|0,(k?J[g+52>>2]:i&255)|0);i=J[695492];J[695492]=0;if((i|0)==1)break q;J[695492]=0;_(3205,h|0);h=J[695492]; -J[695492]=0;if((h|0)==1)break d;h=K[g+27|0];if(!(h<<24>>24<0?J[g+20>>2]:h))break n;if($I(c))break n;r:{if(!p)break r;h=J[J[p>>2]+24>>2];J[695492]=0;t=aa(h|0,p|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;if(!t)break r;c=J[J[l>>2]+16>>2];J[695492]=0;i=$(c|0,l|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;k=0;h=J[i>>2];if((h|0)!=J[i+4>>2])while(1){r=k<<2;c=J[r+h>>2];j=K[c+23|0];m=j<<24>>24<0;n=K[g+27|0];o=n<<24>>24<0;j=m?J[c+16>>2]:j;s:{t:{if((j|0)==((o?J[g+20>>2]:n)|0)){if(!j)break t;c= -c+12|0;c=gd(m?J[c>>2]:c,o?J[g+16>>2]:g+16|0,j);h=J[i>>2];if(!c)break t;c=J[h+r>>2]}j=K[c+11|0];m=j<<24>>24<0;n=K[g+15|0];o=n<<24>>24<0;j=m?J[c+4>>2]:j;if((j|0)!=((o?J[g+8>>2]:n)|0))break s;if(!j)break t;c=gd(m?J[c>>2]:c,o?J[g+4>>2]:g+4|0,j);h=J[i>>2];if(c)break s}c=J[h+r>>2];if(J[c+40>>2]!=K[g+31|0])break s;if(J[c+44>>2]==K[g+30|0])break r}k=k+1|0;if(k>>>0>2]-h>>2>>>0)continue;break}c=J[J[l>>2]+28>>2];J[695492]=0;ia(c|0,l|0,g+16|0,t|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break d}J[695492]= -0;c=g+4|0;J[g+148>>2]=c;oa(3344,g+152|0,a|0,c|0,841605,g+148|0,g+147|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;i=J[g+152>>2];c=i+28|0;if((c|0)==(g+16|0))break n;k=K[g+27|0];h=k<<24>>24;if(H[i+39|0]<0)break o;if((h|0)<0)break p;h=J[g+20>>2];J[c>>2]=J[g+16>>2];J[c+4>>2]=h;J[c+8>>2]=J[g+24>>2];break n}c=Z()|0;break b}c=Z()|0;break c}J[695492]=0;ga(1630,c|0,J[g+16>>2],J[g+20>>2])|0;c=J[695492];J[695492]=0;if((c|0)!=1)break n;break d}J[695492]=0;i=c;c=(h|0)<0;ga(1629,i|0,(c?J[g+16>>2]:g+16|0)|0,(c? -J[g+20>>2]:k)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d}if(H[g+15|0]<0)qc(J[g+4>>2]);if(H[g+27|0]<0)qc(J[g+16>>2]);if(H[g+43|0]<0)qc(J[g+32>>2]);if(H[g+59|0]>=0)break l;qc(J[g+48>>2])}q=q+1|0;if((s|0)!=(q|0))continue;break}J[695492]=0;_(3205,g+112|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;_(3205,g+96|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;_(3205,g+80|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;_(3205,g+128|0);b=J[695492];J[695492]=0;if((b| -0)==1)break e}bc=g+160|0;return}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0;if(H[g+15|0]>=0)break c;qc(J[g+4>>2])}if(H[g+27|0]>=0)break b;qc(J[g+16>>2])}if(H[g+43|0]<0)qc(J[g+32>>2]);if(H[g+59|0]>=0)break a;qc(J[g+48>>2])}cl(a,J[a+4>>2]);ba(c|0);B()}function Zra(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=bc-16|0;bc=j;c=h<<2;p=c+P(e,3)|0;o=e<<2;d=(o+b|0)+c|0;h=(d+o|0)+c|0;o=(h+o|0)+c|0;q=(P(g,18)|0)/4|0;a:{if((e|f)&3){if(!f|!e)break a; -while(1){g=e;b:{while(1){k=d;l=h;m=o;n=b;c=i;b=K[c+17|0];d=K[c+16|0];c:switch(g-1|0){default:d:switch(f-1|0){default:_d(J[a+68>>2],K[c+15|0],d,b,j+12|0,j+8|0,j+4|0);J[m+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:_d(J[a+68>>2],K[c+11|0],d,b,j+12|0,j+8|0,j+4|0);J[l+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:_d(J[a+68>>2],K[c+7|0],d,b,j+12|0,j+8|0,j+4|0);J[k+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break d}_d(J[a+68>>2],K[c+3|0],d,b,j+ -12|0,j+8|0,j+4|0);J[n+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:e:switch(f-1|0){default:_d(J[a+68>>2],K[c+14|0],d,b,j+12|0,j+8|0,j+4|0);J[m+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:_d(J[a+68>>2],K[c+10|0],d,b,j+12|0,j+8|0,j+4|0);J[l+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:_d(J[a+68>>2],K[c+6|0],d,b,j+12|0,j+8|0,j+4|0);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break e}_d(J[a+68>>2],K[c+2|0],d,b,j+12|0,j+8|0,j+ -4|0);J[n+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:f:switch(f-1|0){default:_d(J[a+68>>2],K[c+13|0],d,b,j+12|0,j+8|0,j+4|0);J[m+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:_d(J[a+68>>2],K[c+9|0],d,b,j+12|0,j+8|0,j+4|0);J[l+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:_d(J[a+68>>2],K[c+5|0],d,b,j+12|0,j+8|0,j+4|0);J[k+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break f}_d(J[a+68>>2],K[c+1|0],d,b,j+12|0,j+8|0,j+4|0);J[n+4>>2]= -J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break c}g:switch(f-1|0){default:_d(J[a+68>>2],K[c+12|0],d,b,j+12|0,j+8|0,j+4|0);J[m>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:_d(J[a+68>>2],K[c+8|0],d,b,j+12|0,j+8|0,j+4|0);J[l>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:_d(J[a+68>>2],K[c+4|0],d,b,j+12|0,j+8|0,j+4|0);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break g}_d(J[a+68>>2],K[c|0],d,b,j+12|0,j+8|0,j+4|0);J[n>>2]=J[j+12>>2]| -J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;if(g>>>0<4)break b;i=c+18|0;o=m+16|0;h=l+16|0;d=k+16|0;b=n+16|0;g=g-4|0;if(g)continue;break}g=4}if(f>>>0<5)break a;b=g<<2;g=p<<2;o=(b+m|0)+g|0;h=g+(b+l|0)|0;d=g+(b+k|0)|0;b=g+(b+n|0)|0;f=f-4|0;i=(c+q|0)+18|0;continue}}if(f>>>0<4)break a;c=e>>>2|0;while(1){g=c;while(1){e=K[i+16|0];k=K[i+17|0];l=j+12|0;m=j+8|0;n=j+4|0;_d(J[a+68>>2],K[i|0],e,k,l,m,n);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+1|0],e,k,l,m,n);J[b+4>>2]=J[j+12>>2]|J[j+ -8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+2|0],e,k,l,m,n);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+3|0],e,k,l,m,n);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+4|0],e,k,l,m,n);J[d>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+5|0],e,k,l,m,n);J[d+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+6|0],e,k,l,m,n);J[d+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>> -2],K[i+7|0],e,k,l,m,n);J[d+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+8|0],e,k,l,m,n);J[h>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+9|0],e,k,l,m,n);J[h+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+10|0],e,k,l,m,n);J[h+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+11|0],e,k,l,m,n);J[h+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+12|0],e,k,l,m,n);J[o>>2]=J[j+12>> -2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+13|0],e,k,l,m,n);J[o+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+14|0],e,k,l,m,n);J[o+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+15|0],e,k,l,m,n);J[o+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+18|0;o=o+16|0;h=h+16|0;d=d+16|0;b=b+16|0;g=g-1|0;if(g)continue;break}i=i+q|0;e=p<<2;o=e+o|0;h=e+h|0;d=d+e|0;b=b+e|0;f=f-4|0;if(f>>>0>3)continue;break}}bc=j+16|0}function XRa(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;c=bc-160|0;bc=c;J[c+144>>2]=13;J[c+128>>2]=13;J[c+112>>2]=13;J[c+96>>2]=13;a:{if(!J[a+100>>2]){f=J[a+8>>2];if(!(gc[J[J[f>>2]+32>>2]](f)|0))break a}e=J[a+20>>2];h=J[b+8>>2];b:{while(1){if(J[e+8>>2]==7){b=c+144|0;if(J[Bc(J[e+16>>2],h,b,0)>>2]!=5)break b;uc(b)}e=J[e+104>>2];if(e)continue;break}J[c>>2]=h;xc(1,-1,784521,c);break a}if(J[c+144>>2]!=8){e=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];e=gc[J[J[a>> -2]+52>>2]](a)|0}J[c+64>>2]=h;xc(1,e,825360,c- -64|0);uc(c+144|0);break a}j=J[a+100>>2];b=J[c+152>>2];d=gc[J[J[b>>2]+76>>2]](b)|0;b=c+128|0;Ce(d,825593,b);if(JA(J[J[a>>2]+36>>2],b,c+92|0))J[a+100>>2]=J[a+100>>2]&J[c+92>>2];f=c+128|0;uc(f);b=J[c+152>>2];Bc(gc[J[J[b>>2]+76>>2]](b)|0,825754,f,0);d:{if(J[c+128>>2]==4){e=J[c+136>>2];if(!Ec(e,827560)){b=J[a+8>>2];if(!(gc[J[J[b>>2]+28>>2]](b)|0))break d;e=J[a+20>>2];e:{while(1){if(J[e+8>>2]==7){b=c+96|0;if(J[Ce(J[e+16>>2],h,b)>>2]!=5)break e;uc(b)}e=J[e+ -104>>2];if(e)continue;break}J[c+16>>2]=h;xc(1,-1,784521,c+16|0)}b=c+96|0;CZ(a,b,J[c+152>>2],0);uc(b);break d}if(!Ec(e,827686)){e=J[a+20>>2];f:{while(1){if(J[e+8>>2]==7){b=c+96|0;if(J[Ce(J[e+16>>2],h,b)>>2]!=5)break f;uc(b)}e=J[e+104>>2];if(e)continue;break}J[c+32>>2]=h;xc(1,-1,784521,c+32|0)}b=J[a+8>>2];g:{if(!(!(gc[J[J[b>>2]+20>>2]](b)|0)|J[c+96>>2]!=9)){if(!J[a+100>>2])break g;h=J[a+8>>2];f=J[c+108>>2];g=J[c+104>>2];J[c+80>>2]=g;J[c+84>>2]=f;b=J[J[h>>2]+320>>2];J[c+24>>2]=g;J[c+28>>2]=f;gc[b|0](h, -c+24|0);break g}h=c+96|0;d=bc-176|0;bc=d;J[d+160>>2]=13;J[d+144>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;h:{if(J[a+96>>2]>100)break h;if(!J[a+100>>2]){b=J[a+8>>2];if(!(gc[J[J[b>>2]+32>>2]](b)|0))break h}b=J[c+152>>2];i=gc[J[J[b>>2]+76>>2]](b)|0;Bc(i,815124,d+32|0,0);b=J[d+32>>2];if(!((b|0)==5|(b|0)==1&J[d+40>>2]==1)){e=-1;b=J[a+108>>2];i:{if(!b)break i;b=J[b+4>>2];if(J[b+8>>2]==13)break i;b=J[b+16>>2];e=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,e,815363,0)}f=d+32|0;uc(f);b=d+144|0;Bc(i,815551, -b,0);j:{k:{if(J[d+144>>2]==6){Mc(J[d+152>>2],0,f,0);O[d+64>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);Mc(J[d+152>>2],1,f,0);O[d+72>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);Mc(J[d+152>>2],2,f,0);O[d+80>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);Mc(J[d+152>>2],3,f,0);O[d+88>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);uc(b);Bc(i,816060,d+160|0,0);if(J[d+160>>2]!=6)break k;Mc(J[d+168>>2],0,f,0);O[d+96>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);Mc(J[d+168>>2],1,f,0);O[d+104>>3]=J[d+ -32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);Mc(J[d+168>>2],2,f,0);O[d+112>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);Mc(J[d+168>>2],3,f,0);O[d+120>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);Mc(J[d+168>>2],4,f,0);O[d+128>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);Mc(J[d+168>>2],5,f,0);O[d+136>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];uc(f);break j}uc(d+144|0);e=-1;b=J[a+108>>2];l:{if(!b)break l;b=J[b+4>>2];if(J[b+8>>2]==13)break l;b=J[b+16>>2];e=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,e,815828,0);break h}J[d+ -112>>2]=0;J[d+116>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+104>>2]=0;J[d+108>>2]=0;J[d+96>>2]=0;J[d+100>>2]=1072693248;J[d+128>>2]=0;J[d+132>>2]=0;J[d+120>>2]=0;J[d+124>>2]=1072693248}uc(d+160|0);Bc(i,816318,d+48|0,0);f=J[d+48>>2]==7?J[d+56>>2]:0;e=0;if(J[Bc(i,814042,d+32|0,0)>>2]==7){b=Bc(J[d+40>>2],812126,d+16|0,0);g=0;m:{if(J[b>>2]!=4)break m;g=0;if(Ec(J[b+8>>2],831380))break m;b=Bc(J[d+40>>2],830039,d,0);e=J[b>>2]?0:J[d+8>>2];uc(d);b=Bc(J[d+40>>2],814294,d,0);k=J[b>>2]?0:J[d+8>>2];uc(d);g=1}uc(d+ -16|0)}uc(d+32|0);J[a+96>>2]=J[a+96>>2]+1;Uv(a,h,f,d+96|0,d- -64|0,g,0,e,k,0,0,0);J[a+96>>2]=J[a+96>>2]-1;uc(d+48|0)}bc=d+176|0}uc(c+96|0);break d}if(!Ec(e,827959)){if(!J[a+100>>2])break d;b=J[c+152>>2];Bc(gc[J[J[b>>2]+76>>2]](b)|0,828134,c+112|0,0);b=J[a+8>>2];gc[J[J[b>>2]+324>>2]](b,J[c+152>>2],J[c+112>>2]==8?J[c+120>>2]:0);break d}b=-1;g=J[a+108>>2];n:{if(!g)break n;g=J[g+4>>2];if(J[g+8>>2]==13)break n;b=J[g+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0;e=J[c+136>>2]}J[c+48>>2]=e;xc(1,b,828315,c+48|0);break d}e= --1;b=J[a+108>>2];o:{if(!b)break o;b=J[b+4>>2];if(J[b+8>>2]==13)break o;b=J[b+16>>2];e=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,e,828434,0)}uc(c+128|0);uc(c+144|0);J[a+100>>2]=j}bc=c+160|0}function BW(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,y=0,z=0;q=bc-16|0;bc=q;J[q+8>>2]=f;r=J[(P(J[d+28>>2],76)+b|0)+28>>2];s=J[d+32>>2];a:{b:{if(J[d+40>>2])break b;o=r+P(s,152)|0;if(!J[o+24>>2])break b;k=o+28|0;while(1){c:{if(J[k+12>>2]==J[k+4>>2]|J[k+8>>2]==J[k>>2])break c;b=J[d+36>> -2];if(b>>>0>=M[k+24>>2]/40>>>0){Hc(i,1,2340963,0);break a}b=J[k+20>>2]+P(b,40)|0;xW(J[b+32>>2]);xW(J[b+36>>2]);m=P(J[b+20>>2],J[b+16>>2]);if(!m)break c;b=J[b+24>>2];if(m>>>0>=8){l=m&-8;j=0;while(1){J[b+36>>2]=0;J[b+40>>2]=0;J[b+456>>2]=0;J[b+460>>2]=0;J[b+396>>2]=0;J[b+400>>2]=0;J[b+336>>2]=0;J[b+340>>2]=0;J[b+276>>2]=0;J[b+280>>2]=0;J[b+216>>2]=0;J[b+220>>2]=0;J[b+156>>2]=0;J[b+160>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;b=b+480|0;j=j+8|0;if((l|0)!=(j|0))continue;break}}j=0;m=m&7;if(!m)break c;while(1){J[b+ -36>>2]=0;J[b+40>>2]=0;b=b+60|0;j=j+1|0;if((m|0)!=(j|0))continue;break}}k=k+36|0;n=n+1|0;if(n>>>0>2])continue;break}}m=f;d:{if(!(K[c|0]&2))break d;if(h>>>0<=5){Hc(i,2,2341406,0);break d}if(!(K[f|0]==255&K[f+1|0]==145)){Hc(i,2,2341800,0);break d}m=f+6|0;J[q+8>>2]=m}l=_e(20);if(!l)break a;e:{if(H[a+96|0]&1){m=J[a+40>>2];o=a+44|0;h=a+40|0;break e}if(K[c+5640|0]&2){m=J[c+5168>>2];o=c+5180|0;h=c+5168|0;break e}J[q+12>>2]=(f+h|0)-m;o=q+12|0;h=q+8|0}a=J[o>>2];J[l+12>>2]=0;J[l+16>>2]=0;J[l+8>>2]=m; -J[l>>2]=m;J[l+4>>2]=a+m;if(!Sm(l,1)){rX(l);a=J[l+8>>2];b=J[l>>2];Gc(l);b=(a-b|0)+m|0;f:{if(!(K[c|0]&4))break f;if(J[h>>2]+(J[o>>2]-b|0)>>>0<=1){Hc(i,2,2342693,0);break f}if(!(K[b|0]==255&K[b+1|0]==146)){Hc(i,2,2343069,0);break f}b=b+2|0}J[o>>2]=J[o>>2]+(J[h>>2]-b|0);J[h>>2]=b;J[e>>2]=0;J[g>>2]=J[q+8>>2]-f;x=1;break a}v=r+P(s,152)|0;if(J[v+24>>2]){r=v+28|0;while(1){b=J[d+36>>2];k=J[r+20>>2];g:{if(J[r+12>>2]==J[r+4>>2]|J[r+8>>2]==J[r>>2])break g;s=k+P(b,40)|0;y=P(J[s+20>>2],J[s+16>>2]);if(!y)break g; -k=J[s+24>>2];t=0;while(1){h:{i:{if(!J[k+36>>2]){a=vW(l,J[s+32>>2],t,J[d+40>>2]+1|0);break i}a=Sm(l,1)}if(!a){J[k+32>>2]=0;break h}if(!J[k+36>>2]){b=0;while(1){a=b;b=b+1|0;if(!vW(l,J[s+36>>2],t,a))continue;break}b=J[r+28>>2];J[k+28>>2]=3;J[k+24>>2]=(b-a|0)+1}a=1;j:{if(!Sm(l,1))break j;a=2;if(!Sm(l,1))break j;a=Sm(l,2);if((a|0)!=3){a=a+3|0;break j}a=Sm(l,5);if((a|0)!=31){a=a+6|0;break j}a=Sm(l,7)+37|0}J[k+32>>2]=a;b=0;while(1){a=b;b=b+1|0;if(Sm(l,1))continue;break}J[k+28>>2]=a+J[k+28>>2];k:{b=J[k+36>> -2];l:{if(!b){b=J[(J[c+5584>>2]+P(J[d+28>>2],1080)|0)+16>>2];if(!J[k+44>>2]){a=Tg(J[k>>2],240);if(!a)break k;J[k>>2]=a;wc(a+P(J[k+44>>2],24)|0,0,240);J[k+44>>2]=10}a=J[k>>2];J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+12>>2]=b&4?1:b&1?10:109;a=0;break l}j=J[k>>2];a=b-1|0;n=j+P(a,24)|0;if(J[n+4>>2]!=J[n+12>>2])break l;n=J[(J[c+5584>>2]+P(J[d+28>>2],1080)|0)+16>>2];a=J[k+44>>2];if(a>>>0>>0){p=j;j=a+10|0;a=Tg(p,P(j,24));if(!a)break k;J[k>>2]=a;wc(a+P(J[k+44>>2],24)| -0,0,240);J[k+44>>2]=j;j=J[k>>2]}a=P(b,24)+j|0;J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;j=1;m:{if(n&4)break m;j=109;if(!(n&1))break m;j=J[a-12>>2];j=(j|0)==1?2:(j|0)==10?2:1}J[a+12>>2]=j;a=b}n=J[k+32>>2];while(1){w=P(a,24);j=w+J[k>>2]|0;b=J[j+12>>2]-J[j+4>>2]|0;b=(b|0)<(n|0)?b:n;J[j+16>>2]=b;p=J[k+28>>2];j=0;if(b>>>0>=2)while(1){j=j+1|0;u=b>>>0>3;b=b>>>1|0;if(u)continue;break}b=j+p|0;if(b>>>0>=33){J[q>>2]=b;Hc(i,1,2343636,q);break k}j=Sm(l,b);b=J[k>>2];p=w+b|0;J[p+20>> -2]=j;n=n-J[p+16>>2]|0;if((n|0)<=0)break h;u=J[(J[c+5584>>2]+P(J[d+28>>2],1080)|0)+16>>2];j=J[k+44>>2];if(j>>>0>>0){j=j+10|0;b=Tg(b,P(j,24));if(!b)break k;J[k>>2]=b;wc(b+P(J[k+44>>2],24)|0,0,240);J[k+44>>2]=j;b=J[k>>2]}a=a+1|0;j=P(a,24)+b|0;J[j>>2]=0;J[j+4>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;p=1;n:{if(u&4)break n;p=109;if(!(u&1))break n;b=J[(b+w|0)+12>>2];p=(b|0)==1?2:(b|0)==10?2:1}J[j+12>>2]=p;continue}}Gc(l);break a}k=k+60|0;t=t+1|0;if((y|0)!=(t|0))continue;break}}r=r+36| -0;z=z+1|0;if(z>>>0>2])continue;break}}if(!rX(l)){Gc(l);break a}a=J[l+8>>2];b=J[l>>2];Gc(l);b=(a-b|0)+m|0;o:{if(!(K[c|0]&4))break o;if(J[h>>2]+(J[o>>2]-b|0)>>>0<=1){Hc(i,2,2342693,0);break o}if(!(K[b|0]==255&K[b+1|0]==146)){Hc(i,2,2343069,0);break o}b=b+2|0}J[o>>2]=J[o>>2]+(J[h>>2]-b|0);J[h>>2]=b;x=1;J[e>>2]=1;J[g>>2]=J[q+8>>2]-f}bc=q+16|0;return x}function A8a(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;var h=0,i=0,j=0,k=0,l=0;h=bc-272|0;bc=h;J[h+264>>2]=0;J[h+268>>2]=0;b=J[b>> -2];k=J[b+44>>2];J[h+256>>2]=J[b+40>>2];J[h+260>>2]=k;k=J[b+36>>2];J[h+248>>2]=J[b+32>>2];J[h+252>>2]=k;k=J[b+28>>2];J[h+240>>2]=J[b+24>>2];J[h+244>>2]=k;k=J[b+20>>2];J[h+232>>2]=J[b+16>>2];J[h+236>>2]=k;k=J[b+12>>2];J[h+224>>2]=J[b+8>>2];J[h+228>>2]=k;k=J[b+4>>2];J[h+216>>2]=J[b>>2];J[h+220>>2]=k;b=h+216|0;Fp(b);J[h+172>>2]=b;J[h+168>>2]=f;J[h+164>>2]=e;J[h+160>>2]=d;J[h+152>>2]=c;J[h+156>>2]=c;if((f|0)<0)J[h+156>>2]=P(1-e|0,f)+c;a:{b:{c:{d:{if(!K[a+2904|0]){J[h+148>>2]=h+152;J[h+128>>2]=h+148;J[h+ -120>>2]=0;J[h+124>>2]=0;J[h+112>>2]=0;J[h+116>>2]=0;J[695492]=0;J[h+104>>2]=0;J[h+108>>2]=0;Fa(2307,h+104|0,1);b=J[695492];J[695492]=0;e:{f:{if((b|0)!=1){c=J[h+120>>2];l=J[h+112>>2];d=l<<7;if(d){f=c+(d<<1)|0;b=0;while(1){k=c+(d-b<<1)|0;i=(1-+(b>>>0)*.00390625)*16384;i=i+(i<0?-.5:.5);g:{if(R(i)<2147483648){e=~~i;break g}e=-2147483648}I[k>>1]=e;I[f+(b<<1)>>1]=e;k=b|1;i=(1-+(k>>>0)*.00390625)*16384;i=i+(i<0?-.5:.5);h:{if(R(i)<2147483648){e=~~i;break h}e=-2147483648}I[c+(d-k<<1)>>1]=e;I[f+(k<<1)>>1]= -e;b=b+2|0;if((d|0)!=(b|0))continue;break}}I[c>>1]=L[(c+(l<<9)|0)-2>>1];J[h+96>>2]=0;J[h+100>>2]=1072693248;J[h+88>>2]=0;J[h+92>>2]=1072693248;J[h+80>>2]=0;J[h+84>>2]=1080623104;J[h+56>>2]=128;J[h+60>>2]=128;J[h+48>>2]=0;J[h+52>>2]=1071644672;J[h+40>>2]=0;J[h+44>>2]=1071644672;J[h+32>>2]=h+104;J[h+28>>2]=h+172;J[h+24>>2]=h+128;J[h+12>>2]=a+1636;J[h+20>>2]=h+24;J[h+16>>2]=h+264;i=O[a+2896>>3]*+(g>>>0)/255;if(R(i+-1)<1.1920928955078125E-7)break f;b=0;c=a+1832|0;while(1){e=c+(b<<2)|0;j=i*(+(b|0)/255); -j=(j>1?1:j)*255+.5;i:{if(j<4294967296&j>=0){d=~~j>>>0;break i}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=i*(+(d|0)/255);j=(j>1?1:j)*255+.5;j:{if(j<4294967296&j>=0){d=~~j>>>0;break j}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2308,a|0,h+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;a=a+1832|0;while(1){d=a+(b<<2)|0;i=+(b|0)/255*255+.5;k:{if(i<4294967296&i>=0){c=~~i>>>0;break k}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;i=+(c|0)/255*255+.5;l:{if(i<4294967296&i>=0){c=~~i>>>0;break l}c=0}J[d>> -2]=c;b=b+2|0;if((b|0)!=256)continue;break}break b}break e}J[695492]=0;da(2308,a|0,h+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}b=Z()|0;a=J[h+120>>2];if(!a)break d;qc(a);break d}J[h+148>>2]=h+152;J[h+128>>2]=h+148;J[h+120>>2]=0;J[h+124>>2]=0;J[h+112>>2]=0;J[h+116>>2]=0;J[695492]=0;J[h+104>>2]=0;J[h+108>>2]=0;Fa(2307,h+104|0,1);b=J[695492];J[695492]=0;m:{n:{if((b|0)!=1){c=J[h+120>>2];l=J[h+112>>2];d=l<<7;if(d){f=c+(d<<1)|0;b=0;while(1){k=c+(d-b<<1)|0;i=(1-+(b>>>0)*.00390625)*16384;i=i+(i<0?-.5: -.5);o:{if(R(i)<2147483648){e=~~i;break o}e=-2147483648}I[k>>1]=e;I[f+(b<<1)>>1]=e;k=b|1;i=(1-+(k>>>0)*.00390625)*16384;i=i+(i<0?-.5:.5);p:{if(R(i)<2147483648){e=~~i;break p}e=-2147483648}I[c+(d-k<<1)>>1]=e;I[f+(k<<1)>>1]=e;b=b+2|0;if((d|0)!=(b|0))continue;break}}I[c>>1]=L[(c+(l<<9)|0)-2>>1];J[h+96>>2]=0;J[h+100>>2]=1072693248;J[h+88>>2]=0;J[h+92>>2]=1072693248;J[h+80>>2]=0;J[h+84>>2]=1080623104;J[h+56>>2]=128;J[h+60>>2]=128;J[h+48>>2]=0;J[h+52>>2]=1071644672;J[h+40>>2]=0;J[h+44>>2]=1071644672;J[h+ -32>>2]=h+104;J[h+28>>2]=h+172;J[h+24>>2]=h+128;J[h+12>>2]=a+1636;J[h+20>>2]=h+24;J[h+16>>2]=h+264;i=O[a+2896>>3]*+(g>>>0)/255;if(R(i+-1)<1.1920928955078125E-7)break n;b=0;c=a+1832|0;while(1){e=c+(b<<2)|0;j=i*(+(b|0)/255);j=(j>1?1:j)*255+.5;q:{if(j<4294967296&j>=0){d=~~j>>>0;break q}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=i*(+(d|0)/255);j=(j>1?1:j)*255+.5;r:{if(j<4294967296&j>=0){d=~~j>>>0;break r}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[695492]=0;da(2309,a|0,h+12|0);c=J[695492];J[695492]= -0;if((c|0)==1)break m;a=a+1832|0;while(1){d=a+(b<<2)|0;i=+(b|0)/255*255+.5;s:{if(i<4294967296&i>=0){c=~~i>>>0;break s}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;i=+(c|0)/255*255+.5;t:{if(i<4294967296&i>=0){c=~~i>>>0;break t}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break c}break m}J[695492]=0;da(2309,a|0,h+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}b=Z()|0;a=J[h+120>>2];if(!a)break d;qc(a)}a=J[h+264>>2];if(a)qc(a);ba(b|0);B()}a=J[h+120>>2];if(!a)break a;qc(a);break a}a=J[h+120>>2];if(!a)break a; -qc(a)}a=J[h+264>>2];if(a)qc(a);bc=h+272|0}function jW(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-16|0;bc=d;h=1;a:{b:switch((b-a|0)/12|0){case 2:b=b-12|0;if(!(gc[J[c>>2]](b,a)|0))break a;J[d+8>>2]=J[a+8>>2];c=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[d+8>>2];a=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=a;break a;case 3:f=a+12|0;g=gc[J[c>>2]](f,a)|0;b=b-12|0;e=gc[J[c>>2]](b,f)|0;if(!g){if(!e)break a;J[d+8>>2]=J[f+8>>2];e=J[f+4>>2];J[d>>2]= -J[f>>2];J[d+4>>2]=e;J[f+8>>2]=J[b+8>>2];e=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=e;J[b+8>>2]=J[d+8>>2];e=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=e;if(!(gc[J[c>>2]](f,a)|0))break a;J[d+8>>2]=J[a+8>>2];b=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=b;J[a+8>>2]=J[f+8>>2];b=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=b;J[f+8>>2]=J[d+8>>2];a=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=a;break a}if(e){J[d+8>>2]=J[a+8>>2];c=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[d+ -8>>2];a=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=a;break a}J[d+8>>2]=J[a+8>>2];e=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=e;J[a+8>>2]=J[f+8>>2];e=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=e;J[f+8>>2]=J[d+8>>2];a=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=a;if(!(gc[J[c>>2]](b,f)|0))break a;J[d+8>>2]=J[f+8>>2];a=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=a;J[f+8>>2]=J[b+8>>2];a=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=a;J[b+8>>2]=J[d+8>>2];a=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=a;break a;case 4:zv(a,a+12|0,a+24|0,b-12|0,c);break a;case 5:f= -a+12|0;e=a+24|0;g=a+36|0;zv(a,f,e,g,c);b=b-12|0;if(!(gc[J[c>>2]](b,g)|0))break a;J[d+8>>2]=J[g+8>>2];i=J[g+4>>2];J[d>>2]=J[g>>2];J[d+4>>2]=i;J[g+8>>2]=J[b+8>>2];i=J[b+4>>2];J[g>>2]=J[b>>2];J[g+4>>2]=i;J[b+8>>2]=J[d+8>>2];i=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=i;if(!(gc[J[c>>2]](g,e)|0))break a;J[d+8>>2]=J[e+8>>2];b=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=b;J[e+8>>2]=J[g+8>>2];b=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=b;J[g+8>>2]=J[d+8>>2];b=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=b;if(!(gc[J[c>>2]](e,f)|0))break a; -J[d+8>>2]=J[f+8>>2];b=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=b;J[f+8>>2]=J[e+8>>2];b=J[e+4>>2];J[f>>2]=J[e>>2];J[f+4>>2]=b;J[e+8>>2]=J[d+8>>2];b=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=b;if(!(gc[J[c>>2]](f,a)|0))break a;J[d+8>>2]=J[a+8>>2];b=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=b;J[a+8>>2]=J[f+8>>2];b=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=b;J[f+8>>2]=J[d+8>>2];a=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=a;break a;case 0:case 1:break a;default:break b}e=a+12|0;i=gc[J[c>>2]](e,a)|0;f=a+24|0;g=gc[J[c>>2]](f,e)|0;c:{if(!i){if(!g)break c; -J[d+8>>2]=J[e+8>>2];g=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=g;J[e+8>>2]=J[f+8>>2];g=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=g;J[f+8>>2]=J[d+8>>2];g=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=g;if(!(gc[J[c>>2]](e,a)|0))break c;J[d+8>>2]=J[a+8>>2];g=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=g;J[a+8>>2]=J[e+8>>2];g=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=g;J[e+8>>2]=J[d+8>>2];g=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=g;break c}if(g){J[d+8>>2]=J[a+8>>2];e=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=e;J[a+8>>2]=J[f+8>>2];e=J[f+4>>2];J[a>> -2]=J[f>>2];J[a+4>>2]=e;J[f+8>>2]=J[d+8>>2];e=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=e;break c}J[d+8>>2]=J[a+8>>2];g=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=g;J[a+8>>2]=J[e+8>>2];g=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=g;J[e+8>>2]=J[d+8>>2];g=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=g;if(!(gc[J[c>>2]](f,e)|0))break c;J[d+8>>2]=J[e+8>>2];g=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=g;J[e+8>>2]=J[f+8>>2];g=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=g;J[f+8>>2]=J[d+8>>2];e=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=e}e=a+36|0;if((e|0)== -(b|0))break a;i=0;while(1){d:{if(!(gc[J[c>>2]](e,f)|0))break d;J[d+8>>2]=J[e+8>>2];h=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=h;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;g=e;e:{f:{while(1){h=f;if(H[g+11|0]<0)qc(J[g>>2]);f=J[h+4>>2];J[g>>2]=J[h>>2];J[g+4>>2]=f;J[g+8>>2]=J[h+8>>2];H[h+11|0]=0;J[h>>2]=0;if((a|0)==(h|0)){h=a;break f}f=J[c>>2];J[695492]=0;g=f;f=h-12|0;j=aa(g|0,d|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;g=h;if(j)continue;break}if(H[g+11|0]>=0)break f;qc(J[g>>2])}f=J[d+4>>2];J[h>>2]=J[d>> -2];J[h+4>>2]=f;J[h+8>>2]=J[d+8>>2];i=i+1|0;if((i|0)!=8)break d;h=(e+12|0)==(b|0);break a}a=Z()|0;if(H[d+11|0]<0)qc(J[d>>2]);ba(a|0);B()}f=e;e=f+12|0;if((e|0)!=(b|0))continue;break}h=1}bc=d+16|0;return h}function Fx(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;te(b,Ac(b)<<1);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{if(!Ac(b)){if((Ac(b)|0)!=1198679150)break Q;h=Ac(b);R:{if(!h)break R;while(1){if(Ac(b))break P;c=Ac(b);d=Ac(b); -S:{T:{U:{V:{W:{X:{if((c|0)<=1231975537){if((c|0)==1131180659)break V;if((c|0)==1198679110)break X;break a}if((c|0)==1231975538)break W;if((c|0)==1416785523)break U;if((c|0)!=1315774496)break a;if((d|0)!=1413830740)break O;c=Ac(b);J[a+4>>2]=c;c=zc(c<<1);J[a+8>>2]=c;if(!c)break R;wc(c,0,J[a+4>>2]<<1);af(b,J[a+8>>2],J[a+4>>2]<<1);break S}if((d|0)!=1701737837)break N;if(Ac(b))break M;if((Ac(b)|0)!=1198679110)break L;if(Ac(b))break K;if((Ac(b)|0)==1131639891)break S;fa(225352,219843,941,225272);B()}if((d| -0)!=1685026146)break J;g=be(b);if(!(R(g)<2147483648))break T;J[a>>2]=~~g;break S}if((d|0)!=1449938035)break I;c=Ac(b);I[a+12>>1]=c;d=zc(c<<16>>12);J[a+16>>2]=d;if(!d)break R;c=0;wc(d,0,I[a+12>>1]<<4);if(I[a+12>>1]<=0)break S;while(1){if((Ac(b)|0)!=1331849827)break H;te(b,Ac(b)<<1);if(Ac(b))break G;if((Ac(b)|0)!=1131180660)break F;if((Ac(b)|0)!=4)break E;if(Ac(b))break D;if((Ac(b)|0)!=1131180576)break C;if((Ac(b)|0)!=1331849827)break B;e=rm(b);d=c<<4;J[(d+J[a+16>>2]|0)+8>>2]=e;if(Ac(b))break A;if((Ac(b)| -0)!=1417244773)break z;if((Ac(b)|0)!=1701737837)break y;if(Ac(b))break x;Ac(b);if(Ac(b))break w;e=Ac(b);Y:{if((e|0)!=1433629267){f=0;if((e|0)==1181902659)break Y;f=1;if((e|0)==1113811779)break Y;fa(219530,219843,1042,225272);B()}f=2}e=f;J[(d+J[a+16>>2]|0)+12>>2]=e;if(Ac(b))break v;if((Ac(b)|0)!=1281586286)break u;if((Ac(b)|0)!=1819242087)break t;e=Ac(b);J[d+J[a+16>>2]>>2]=e;if(Ac(b))break s;if((Ac(b)|0)!=1298428014)break r;if((Ac(b)|0)!=1819242087)break q;e=Ac(b);J[(d+J[a+16>>2]|0)+4>>2]=e;c=c+1| -0;if((c|0)>1])continue;break}break S}if((d|0)!=1449938035)break p;c=Ac(b);I[a+20>>1]=c;d=zc(P(c<<16>>16,12));J[a+24>>2]=d;if(!d)break R;c=0;wc(d,0,P(I[a+20>>1],12));if(I[a+20>>1]<=0)break S;while(1){if((Ac(b)|0)!=1331849827)break o;te(b,Ac(b)<<1);if(Ac(b))break n;if((Ac(b)|0)!=1416785491)break m;if((Ac(b)|0)!=3)break l;if(Ac(b))break k;if((Ac(b)|0)!=1332765556)break j;if((Ac(b)|0)!=1433302086)break i;if((Ac(b)|0)!=592474723)break h;g=be(b);d=P(c,12);f=d+J[a+24>>2]|0;if(R(g)<2147483648)e=~~g; -else e=-2147483648;I[f+8>>1]=e;if(Ac(b))break g;if((Ac(b)|0)!=1281586286)break f;if((Ac(b)|0)!=1819242087)break e;e=Ac(b);J[d+J[a+24>>2]>>2]=e;if(Ac(b))break d;if((Ac(b)|0)!=1298428014)break c;if((Ac(b)|0)!=1819242087)break b;e=Ac(b);J[(d+J[a+24>>2]|0)+4>>2]=e;c=c+1|0;if((c|0)>1])continue;break}break S}J[a>>2]=-2147483648}h=h-1|0;if(h)continue;break}}return}fa(221262,219843,885,225272);B()}fa(225309,219843,888,225272);B()}fa(221262,219843,896,225272);B()}fa(224416,219843,912,225272);B()}fa(225323, -219843,926,225272);B()}fa(221262,219843,931,225272);B()}fa(225338,219843,934,225272);B()}fa(221262,219843,939,225272);B()}fa(225043,219843,946,225272);B()}fa(224916,219843,954,225272);B()}fa(224959,219843,972,225272);B()}fa(221262,219843,981,225272);B()}fa(225366,219843,984,225272);B()}fa(225380,219843,989,225272);B()}fa(221262,219843,992,225272);B()}fa(225397,219843,994,225272);B()}fa(224959,219843,999,225272);B()}fa(221262,219843,1007,225272);B()}fa(225411,219843,1010,225272);B()}fa(225323,219843, -1015,225272);B()}fa(221262,219843,1020,225272);B()}fa(221262,219843,1028,225272);B()}fa(221262,219843,1050,225272);B()}fa(225425,219843,1053,225272);B()}fa(225439,219843,1058,225272);B()}fa(221262,219843,1066,225272);B()}fa(225454,219843,1069,225272);B()}fa(225439,219843,1074,225272);B()}fa(224916,219843,1082,225272);B()}fa(224959,219843,1101,225272);B()}fa(221262,219843,1110,225272);B()}fa(225468,219843,1113,225272);B()}fa(225482,219843,1118,225272);B()}fa(221262,219843,1124,225272);B()}fa(225499, -219843,1127,225272);B()}fa(225513,219843,1132,225272);B()}fa(225528,219843,1136,225272);B()}fa(221262,219843,1145,225272);B()}fa(225425,219843,1148,225272);B()}fa(225439,219843,1153,225272);B()}fa(221262,219843,1161,225272);B()}fa(225454,219843,1164,225272);B()}fa(225439,219843,1169,225272);B()}fa(219530,219843,1176,225272);B()}function ylb(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,y=0,z=0,A=0,B=0;n=bc-416|0;bc=n;z=J[b+92>>2];J[a+ -40>>2]=L[b+68>>1];if(!VC(b)){Y6(a,b);c=(J[J[a>>2]+12>>2]<<3)+237248|0;f=J[c>>2];if((f|0)!=5531){A=a+7720|0;B=a+44|0;while(1){t=c;g=f+231712|0;c=K[g|0];a:{if(!c)break a;s=L[t+4>>1];w=s&2;u=w?B:A;o=1;x=s&1;q=0;r=0;while(1){d=c&255;if((d|0)!=32){b:{c:{if((d|0)==124){g=g+1|0;break c}while(1){d=K[g|0];g=g+1|0;if((d|0)==32)continue;break}if(d<<24>>24<0){c=d>>>0<240;e=d>>>0<224;f=e?1:c?2:3;d=(e?31:c?15:7)&d;e=0;c=g;while(1){d=K[c|0]&63|d<<6;c=c+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}g=f+g|0}f=0;while(1){c= -K[g|0];if((c|32)!=32){g=g+1|0;f=c;if(c<<24>>24>=0)continue;c=c>>>0<240;e=f>>>0<224;m=e?1:c?2:3;f=(e?31:c?15:7)&f;e=0;c=g;while(1){f=K[c|0]&63|f<<6;c=c+1|0;e=e+1|0;if((m|0)!=(e|0))continue;break}g=g+m|0;continue}break}if(f)break b;d=rh(J[J[a+36>>2]>>2],d);if(!d)break b;if(vo(b,d,1))break b;d=J[b+84>>2];if(I[d+110>>1]<3)break b;v=I[d+108>>1];d:{if((v|0)<=0){c=0;break d}y=J[d+120>>2];m=J[d+112>>2];f=-1;d=0;c=0;l=0;if(!w)while(1){i=I[(l<<1)+y>>1];e:{if((i|0)<=(d|0))break e;if(x){if((i-d|0)+1&1){e=J[(m+ -(d<<3)|0)+4>>2];h=(e|0)>(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break e;while(1){h=J[(m+(e<<3)|0)+4>>2];k=(h|0)>(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[(m+(d<<3)|0)+4>>2];h=p?h:k?h:c;c=(j|0)>(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}break e}if((i-d|0)+1&1){e=J[(m+(d<<3)|0)+4>>2];h=(e|0)<(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break e;while(1){h=J[(m+(e<<3)|0)+4>>2];k=(h|0)<(c|0);p=(f|0)<0;f=p?e: -k?e:f;d=e+1|0;j=J[(m+(d<<3)|0)+4>>2];h=p?h:k?h:c;c=(j|0)<(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}}d=i+1|0;l=l+1|0;if((v|0)!=(l|0))continue;break d}while(1){i=I[(l<<1)+y>>1];f:{if((i|0)<=(d|0))break f;if(x){if((i-d|0)+1&1){e=J[m+(d<<3)>>2];h=(e|0)>(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break f;while(1){h=J[m+(e<<3)>>2];k=(h|0)>(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[m+(d<<3)>>2];h=p?h:k?h:c;c=(j|0)>(h|0);k=(f|0)<0;f=k?d:c?d:f; -c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}break f}if((i-d|0)+1&1){e=J[m+(d<<3)>>2];h=(e|0)<(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break f;while(1){h=J[m+(e<<3)>>2];k=(h|0)<(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[m+(d<<3)>>2];h=p?h:k?h:c;c=(j|0)<(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}}d=i+1|0;l=l+1|0;if((v|0)!=(l|0))continue;break}}if(o){J[(n+208|0)+(q<<2)>>2]=c;q=q+1|0;break b}J[(r<<2)+n>>2]=c;r=r+1|0}o=0}c=K[g|0]; -if(c)continue;if(!(q|r))break a;g:{if(q>>>0<2)break g;d=1;c=q-1|0;f=c&1;if((q|0)!=2){m=c&-2;e=0;while(1){c=d;while(1){g=(n+208|0)+(c<<2)|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}c=d+1|0;while(1){g=(n+208|0)+(c<<2)|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}d=d+2|0;e=e+2|0;if((m|0)!=(e|0))continue;break}}if(!f)break g;while(1){c=(n+208|0)+(d<<2)|0;e=J[c>>2];g=c-4|0;f=J[g>>2];if((e|0)>=(f|0))break g; -J[c>>2]=f;J[g>>2]=e;d=d-1|0;if(d)continue;break}}h:{if(r>>>0<2)break h;d=1;c=r-1|0;f=c&1;if((r|0)!=2){m=c&-2;e=0;while(1){c=d;while(1){g=(c<<2)+n|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}c=d+1|0;while(1){g=(c<<2)+n|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}d=d+2|0;e=e+2|0;if((m|0)!=(e|0))continue;break}}if(!f)break h;while(1){c=(d<<2)+n|0;e=J[c>>2];g=c-4|0;f=J[g>>2];if((e|0)>=(f|0))break h;J[c>> -2]=f;J[g>>2]=e;d=d-1|0;if(d)continue;break}}d=J[u+216>>2];J[u+216>>2]=d+1;d=P(d,28)+u|0;c=J[(n+208|0)+(q<<1&-4)>>2];i:{j:{if(!r)break j;c=J[(r<<1&-4)+n>>2];if(!q)break j;c=J[(n+208|0)+(q<<1&-4)>>2];J[d+220>>2]=c;e=J[(r<<1&-4)+n>>2];J[d+232>>2]=e;if(((c|0)<=(e|0)^s)&1|(c|0)==(e|0))break i;c=(c+e|0)/2|0}J[d+232>>2]=c;J[d+220>>2]=c}J[d+244>>2]=s<<1&2}else{c=K[g+1|0];g=g+1|0;continue}break}}c=t+8|0;f=J[t+8>>2];if((f|0)!=5531)continue;break}}X6(a)}wr(b,z);bc=n+416|0;return 0}function zga(a,b,c,d,e,f,g, -h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;h=bc-16|0;bc=h;J[h+12>>2]=b;J[e>>2]=0;i=J[d+28>>2];J[h>>2]=i;J[i+4>>2]=J[i+4>>2]+1;J[695492]=0;i=$(6613,h|0)|0;j=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){j=J[h>>2];k=J[j+4>>2]-1|0;J[j+4>>2]=k;if((k|0)==-1)gc[J[J[j>>2]+8>>2]](j);switch(g-65|0){case 54:break j;case 19:break k;case 18:break l;case 17:break m;case 49:break n;case 47:break o;case 45:case 51:break p; -case 12:break q;case 44:break r;case 41:break s;case 8:break t;case 7:break u;case 5:break v;case 3:break w;case 35:case 36:break x;case 34:break y;case 1:case 33:case 39:break z;case 0:case 32:break A;case 2:case 4:case 6:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 37:case 38:case 40:case 42:case 43:case 46:case 48:case 50:case 52:case 53:break d;case 24:break f;case 56:break g;case 23:break h;case 55:break i; -default:break e}}c=Z()|0;a=J[h>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}jQ(a,f+24|0,h+12|0,c,e,i);break b}iQ(a,f+16|0,h+12|0,c,e,i);break b}b=gc[J[J[a+8>>2]+12>>2]](a+8|0)|0;g=a;j=J[h+12>>2];a=b;B:{if(K[a+11|0]>>>7|0){b=J[a>>2];break B}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=En(g,j,c,d,e,f,i,b+a|0),J[l+12>>2]=m;break b}a=Gm(h+12|0,c,e,i,2);b=J[e>>2];C:{if(!(a-1>>>0>30|b&4)){J[f+12>>2]=a;break C}J[e>> -2]=b|4}break b}J[h>>2]=623865125;J[h+4>>2]=2032480100;l=h,m=En(a,b,c,d,e,f,h,h+8|0),J[l+12>>2]=m;break b}J[h>>2]=623728933;J[h+4>>2]=1680158061;l=h,m=En(a,b,c,d,e,f,h,h+8|0),J[l+12>>2]=m;break b}a=Gm(h+12|0,c,e,i,2);b=J[e>>2];D:{if(!((a|0)>23|b&4)){J[f+8>>2]=a;break D}J[e>>2]=b|4}break b}a=Gm(h+12|0,c,e,i,2);b=J[e>>2];E:{if(!(a-1>>>0>11|b&4)){J[f+8>>2]=a;break E}J[e>>2]=b|4}break b}a=Gm(h+12|0,c,e,i,3);b=J[e>>2];F:{if(!((a|0)>365|b&4)){J[f+28>>2]=a;break F}J[e>>2]=b|4}break b}b=Gm(h+12|0,c,e,i,2)- -1|0;a=J[e>>2];G:{if(!(b>>>0>11|a&4)){J[f+16>>2]=b;break G}J[e>>2]=a|4}break b}a=Gm(h+12|0,c,e,i,2);b=J[e>>2];H:{if(!((a|0)>59|b&4)){J[f+4>>2]=a;break H}J[e>>2]=b|4}break b}a=h+12|0;b=bc-16|0;bc=b;J[b+12>>2]=c;while(1){I:{if(Qk(a,b+12|0))break I;c=qq(a);if((c|0)>=0)c=J[J[i+8>>2]+((c&255)<<2)>>2]&1;else c=0;if(!c)break I;gs(a);continue}break}if(Qk(a,b+12|0))J[e>>2]=J[e>>2]|2;bc=b+16|0;break b}g=h+12|0;b=gc[J[J[a+8>>2]+8>>2]](a+8|0)|0;J:{if(K[b+11|0]>>>7|0){a=J[b+4>>2];break J}a=K[b+11|0]&127}if(K[b+ -23|0]>>>7|0)d=J[b+16>>2];else d=K[b+23|0]&127;K:{if((a|0)==(0-d|0)){J[e>>2]=J[e>>2]|4;break K}c=yy(g,c,b,b+24|0,i,e,0);a=J[f+8>>2];if(!((c|0)!=(b|0)|(a|0)!=12)){J[f+8>>2]=0;break K}if(!((c-b|0)!=12|(a|0)>11))J[f+8>>2]=a+12}break b}g=K[2617976]|K[2617977]<<8|(K[2617978]<<16|K[2617979]<<24);H[h+7|0]=g;H[h+8|0]=g>>>8;H[h+9|0]=g>>>16;H[h+10|0]=g>>>24;g=K[2617973]|K[2617974]<<8|(K[2617975]<<16|K[2617976]<<24);J[h>>2]=K[2617969]|K[2617970]<<8|(K[2617971]<<16|K[2617972]<<24);J[h+4>>2]=g;l=h,m=En(a,b,c,d, -e,f,h,h+11|0),J[l+12>>2]=m;break b}H[h+4|0]=K[2617984];J[h>>2]=K[2617980]|K[2617981]<<8|(K[2617982]<<16|K[2617983]<<24);l=h,m=En(a,b,c,d,e,f,h,h+5|0),J[l+12>>2]=m;break b}a=Gm(h+12|0,c,e,i,2);b=J[e>>2];L:{if(!((a|0)>60|b&4)){J[f>>2]=a;break L}J[e>>2]=b|4}break b}J[h>>2]=624576549;J[h+4>>2]=1394948685;l=h,m=En(a,b,c,d,e,f,h,h+8|0),J[l+12>>2]=m;break b}a=Gm(h+12|0,c,e,i,1);b=J[e>>2];M:{if(!((a|0)>6|b&4)){J[f+24>>2]=a;break M}J[e>>2]=b|4}break b}a=gc[J[J[a>>2]+20>>2]](a,b,c,d,e,f)|0;break a}b=gc[J[J[a+ -8>>2]+24>>2]](a+8|0)|0;g=a;j=J[h+12>>2];a=b;N:{if(K[a+11|0]>>>7|0){b=J[a>>2];break N}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=En(g,j,c,d,e,f,i,b+a|0),J[l+12>>2]=m;break b}hQ(f+20|0,h+12|0,c,e,i);break b}a=Gm(h+12|0,c,e,i,4);if(!(K[e|0]&4))J[f+20>>2]=a-1900;break b}if((g|0)==37)break c}J[e>>2]=J[e>>2]|4;break b}a=bc-16|0;bc=a;J[a+12>>2]=c;b=6;c=h+12|0;d=a+12|0;O:{P:{if(Qk(c,d))break P;b=4;if(((m=i,n=qq(c),o=0,l=J[J[i>>2]+36>>2],gc[l](m| -0,n|0,o|0)|0)|0)!=37)break P;b=2;if(!Qk(gs(c),d))break O}J[e>>2]=J[e>>2]|b}bc=a+16|0}a=J[h+12>>2]}bc=h+16|0;return a|0}function I0(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;k=bc-16|0;bc=k;if(a){if(J[a+56>>2]==1)d=hK(a);l=J[a+65792>>2];i=Dp(a,J[a+44>>2]);m=fc;a:{if(d)break a;c=J[a+48>>2];if(!c){d=0;break a}d=0;while(1){e=J[c+8>>2];b=-1;b:{if(d)break b;if(!e){e=0;b=0;break b}d=gc[J[a+8>>2]](J[a+28>>2],J[a+44>>2],c+16|0,e)|0;e=J[c+8>>2];b=(d|0)!=(e|0)?-1:0}d=b;h=e+h|0;c=J[c>>2]; -if(c)continue;break}}c=J[a+48>>2];if(c)while(1){b=J[c>>2];qc(c);c=b;if(b)continue;break}J[a+48>>2]=0;J[a+52>>2]=0;c=J[a+65776>>2];b=i-c|0;if(!((J[a+65780>>2]+(c>>>0>i>>>0)|0)==(m|0)&(b|0)!=-1&(!J[a+65788>>2]&M[a+65784>>2]<65536))){c=Dp(a,J[a+44>>2]);n=fc;b=bc-16|0;bc=b;e=J[a+44>>2];H[b+8|0]=80;H[b+9|0]=75;H[b+10|0]=6;H[b+11|0]=6;g=e;e=b+8|0;c:{if((gc[J[a+8>>2]](J[a+28>>2],g,e,4)|0)!=4)break c;f=J[a+44>>2];H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]= -0;H[b+8|0]=44;if((gc[J[a+8>>2]](J[a+28>>2],f,e,8)|0)!=8)break c;f=J[a+44>>2];H[b+8|0]=45;H[b+9|0]=0;if((gc[J[a+8>>2]](J[a+28>>2],f,e,2)|0)!=2)break c;f=J[a+44>>2];H[b+8|0]=45;H[b+9|0]=0;if((gc[J[a+8>>2]](J[a+28>>2],f,e,2)|0)!=2)break c;f=J[a+44>>2];J[b+8>>2]=0;if((gc[J[a+8>>2]](J[a+28>>2],f,e,4)|0)!=4)break c;f=J[a+44>>2];J[b+8>>2]=0;if((gc[J[a+8>>2]](J[a+28>>2],f,e,4)|0)!=4)break c;j=J[a+44>>2];f=J[a+65788>>2];g=J[a+65784>>2];H[b+8|0]=g;H[b+9|0]=g>>>8;H[b+10|0]=g>>>16;H[b+11|0]=g>>>24;H[b+12|0]= -f;H[b+13|0]=f>>>8;H[b+14|0]=f>>>16;H[b+15|0]=f>>>24;if((gc[J[a+8>>2]](J[a+28>>2],j,e,8)|0)!=8)break c;j=J[a+44>>2];f=J[a+65788>>2];g=J[a+65784>>2];H[b+8|0]=g;H[b+9|0]=g>>>8;H[b+10|0]=g>>>16;H[b+11|0]=g>>>24;H[b+12|0]=f;H[b+13|0]=f>>>8;H[b+14|0]=f>>>16;H[b+15|0]=f>>>24;if((gc[J[a+8>>2]](J[a+28>>2],j,e,8)|0)!=8)break c;f=J[a+44>>2];H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;H[b+8|0]=h;H[b+11|0]=h>>>24;H[b+10|0]=h>>>16;H[b+9|0]=h>>>8;if((gc[J[a+8>>2]](J[a+28>>2],f,e,8)|0)!=8)break c;j=J[a+44>>2]; -g=J[a+65776>>2];f=i-g|0;g=m-(J[a+65780>>2]+(g>>>0>i>>>0)|0)|0;H[b+8|0]=f;H[b+9|0]=f>>>8;H[b+10|0]=f>>>16;H[b+11|0]=f>>>24;H[b+12|0]=g;H[b+13|0]=g>>>8;H[b+14|0]=g>>>16;H[b+15|0]=g>>>24;gc[J[a+8>>2]](J[a+28>>2],j,e,8)|0}bc=b+16|0;b=bc-16|0;bc=b;g=J[a+65776>>2];j=J[a+65780>>2];e=J[a+44>>2];H[b+8|0]=80;H[b+9|0]=75;H[b+10|0]=6;H[b+11|0]=7;f=b+8|0;d:{if((gc[J[a+8>>2]](J[a+28>>2],e,f,4)|0)!=4)break d;e=J[a+44>>2];J[b+8>>2]=0;if((gc[J[a+8>>2]](J[a+28>>2],e,f,4)|0)!=4)break d;o=J[a+44>>2];e=c-g|0;H[b+8|0]= -e;H[b+9|0]=e>>>8;H[b+10|0]=e>>>16;H[b+11|0]=e>>>24;c=n-((c>>>0>>0)+j|0)|0;H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;if((gc[J[a+8>>2]](J[a+28>>2],o,f,8)|0)!=8)break d;c=J[a+44>>2];H[b+8|0]=1;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;gc[J[a+8>>2]](J[a+28>>2],c,f,4)|0}bc=b+16|0}e:{if(d)break e;d=bc-16|0;bc=d;c=J[a+44>>2];H[d+8|0]=80;H[d+9|0]=75;H[d+10|0]=5;H[d+11|0]=6;e=-1;b=c;g=d+8|0;c=g;f:{if((gc[J[a+8>>2]](J[a+28>>2],b,c,4)|0)!=4)break f;b=J[a+44>>2];I[d+8>>1]=0;if((gc[J[a+8>>2]](J[a+ -28>>2],b,c,2)|0)!=2)break f;b=J[a+44>>2];I[d+8>>1]=0;if((gc[J[a+8>>2]](J[a+28>>2],b,c,2)|0)!=2)break f;b=J[a+44>>2];f=J[a+65788>>2];c=J[a+65784>>2];g:{if(!f&c>>>0>=65535|f){H[d+8|0]=255;H[d+9|0]=255;c=gc[J[a+8>>2]](J[a+28>>2],b,g,2)|0;break g}H[d+8|0]=c;H[d+9|0]=c>>>8;c=gc[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0}if((c|0)!=2)break f;b=J[a+44>>2];f=J[a+65788>>2];c=J[a+65784>>2];h:{if(!f&c>>>0>=65535|f){H[d+8|0]=255;H[d+9|0]=255;c=gc[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0;break h}H[d+8|0]=c;H[d+9|0]=c>>>8;c= -gc[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0}if((c|0)!=2)break f;c=J[a+44>>2];H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;h=d+8|0;if((gc[J[a+8>>2]](J[a+28>>2],c,h,4)|0)!=4)break f;b=J[a+44>>2];e=J[a+65776>>2];c=i-e|0;i=m-(J[a+65780>>2]+(e>>>0>i>>>0)|0)|0;if(!i&(c|0)==-1|i){J[d+8>>2]=-1;e=(gc[J[a+8>>2]](J[a+28>>2],b,h,4)|0)!=4?-1:0;break f}H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;e=(gc[J[a+8>>2]](J[a+28>>2],b,d+8|0,4)|0)!=4?-1:0}bc=d+16|0;if(e)break e;i:{if(!l){e=J[a+44>> -2];c=0;I[k+8>>1]=0;break i}e=J[a+44>>2];c=Qc(l);I[k+8>>1]=c;if(c>>>0<65536)break i;I[k+8>>1]=65535}if(!(!c|(gc[J[a+8>>2]](J[a+28>>2],e,k+8|0,2)|0)!=2))gc[J[a+8>>2]](J[a+28>>2],J[a+44>>2],l,c)|0}gc[J[a+20>>2]](J[a+28>>2],J[a+44>>2])|0;c=J[a+65792>>2];if(c)qc(c);qc(a)}bc=k+16|0}function hP(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;j=2625456;g=bc-144|0;bc=g;J[g+140>>2]=2625456;t=d-192|0;s=c-768|0;a:{b:{c:{d:while(1){o=61;if((m^2147483647)<(f|0))break c;m=f+m|0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{e= -j;f=J[e>>2];if(f)while(1){p:{q:{if(!f){h=e;break q}if((f|0)!=37)break p;f=e;while(1){if(J[f+4>>2]!=37){h=f;break q}e=e+4|0;i=J[f+8>>2];h=f+8|0;f=h;if((i|0)==37)continue;break}}f=e-j>>2;if((f|0)>(m^2147483647))break c;if(a)my(a,j,f);e=(e|0)!=(j|0);j=h;if(e)continue d;e=h+4|0;i=-1;j=J[h+4>>2];f=j-48|0;if(!(J[h+8>>2]!=36|f>>>0>9)){j=J[h+12>>2];p=1;i=f;e=h+12|0}n=0;f=j-32|0;if(f>>>0<=31){f=1<>2];f=j-32|0;if(f>>>0>=32)break r;e=h;f=1<>2]=e;break n}f=J[e+4>>2];e=e+4|0;continue}f=m;if(a)break a;if(!p)break j;e=1;while(1){a=J[(e<<2)+d>>2];if(a){gP((e<<4)+c|0,a,b);f=1;e=e+1|0;if((e|0)!=10)continue;break a}break}f=1;if(e>>>0>=10)break a;while(1){if(J[(e<<2)+d>>2])break b;e=e+1|0;if((e|0)!=10)continue;break}break a}J[g+140>>2]=e;if((j|0)!=42)break n;f=J[e+4>>2]-48|0;if(J[e+8>>2]!=36|f>>>0>9)break m;J[(f<<2)+d>>2]=10;f=e+12|0;p=1;k=J[(J[e+4>>2]<<4)+s>>2];break l}k=fP(g+140|0);if((k|0)<0)break c;f=J[g+140>>2]; -break k}if(p)break e;f=e+4|0;if(!a){p=0;k=0;break k}e=J[b>>2];J[b>>2]=e+4;p=0;k=J[e>>2]}if((k|0)>=0)break k;k=0-k|0;n=n|8192}e=0;l=-1;s:{if(J[f>>2]!=46){j=f;q=0;break s}if(J[f+4>>2]==42){j=J[f+8>>2];t:{if(!(J[f+12>>2]!=36|j-48>>>0>=10)){J[(j<<2)+t>>2]=10;j=f+16|0;l=J[(J[f+8>>2]<<4)+s>>2];break t}if(p)break e;j=f+8|0;l=0;if(!a)break t;f=J[b>>2];J[b>>2]=f+4;l=J[f>>2]}q=(l|0)>=0;break s}J[g+140>>2]=f+4;l=fP(g+140|0);j=J[g+140>>2];q=1}while(1){h=e;o=28;r=j;f=J[j>>2];if(f-123>>>0<4294967238)break c;j= -j+4|0;e=K[(f+P(e,58)|0)+2624911|0];if(e-1>>>0<8)continue;break}J[g+140>>2]=j;if((e|0)==27)break h;if(!e)break c;if((i|0)>=0){J[(i<<2)+d>>2]=e;e=(i<<4)+c|0;f=J[e+12>>2];J[g+128>>2]=J[e+8>>2];J[g+132>>2]=f;f=J[e+4>>2];J[g+120>>2]=J[e>>2];J[g+124>>2]=f;break g}if(a)break i}f=0;break a}gP(g+120|0,e,b);break f}if((i|0)>=0)break c}f=0;if(!a)continue}f=-1;if(K[a|0]&32)break a;u:{v:{w:{x:{y:{e=J[r>>2];e=h?(e&15)==3?e&-33:e:e;if((e|0)<=108){i=(e|0)==67;if(!i){if((e|0)==83)break y;if((e|0)!=99)break u}f=(k| -0)<=1?1:k;k=f-1|0;_r(a,k,n);e=J[g+120>>2];if(!i){h=e&255;if(h>>>0>=128)h=(e|0)==-1?-1:J[J[694782]>>2]?-1:e<<24>>24&57343;e=h}J[g+88>>2]=e;my(a,g+88|0,1);_r(a,k,n^8192);continue}z:switch(e-109|0){case 6:break w;case 0:break x;case 1:break z;default:break u}f=0;A:switch(h&255){case 0:J[J[g+120>>2]>>2]=m;continue;case 1:J[J[g+120>>2]>>2]=m;continue;case 2:e=J[g+120>>2];J[e>>2]=m;J[e+4>>2]=m>>31;continue;case 3:I[J[g+120>>2]>>1]=m;continue;case 4:H[J[g+120>>2]]=m;continue;case 6:J[J[g+120>>2]>>2]=m;continue; -case 7:break A;default:continue}e=J[g+120>>2];J[e>>2]=m;J[e+4>>2]=m>>31;continue}h=J[g+120>>2];e=h;f=l>>>0>=2147483647?2147483647:l;i=og(e,0,f);e=i?i-e>>2:f;if((l|0)<0){o=61;if(J[h+(e<<2)>>2])break c}f=(e|0)<(k|0)?k:e;i=f-e|0;_r(a,i,n);my(a,h,e);_r(a,i,n^8192);continue}i=Jl(J[694731]);J[g+120>>2]=i;break v}i=J[g+120>>2]}if(!i){J[g+120>>2]=28928;i=28928}B:{if(!l){e=0;break B}q=l>>>0>=2147483647?2147483647:l;e=0;h=i;C:{D:{while(1){r=Uo(g+92|0,h,4);if((r|0)<=0)break D;h=h+r|0;e=e+1|0;if((q|0)!=(e|0))continue; -break}e=q;break C}if((r|0)<0)break a}if((l|0)>=0)break B;o=61;if(K[h|0])break c}f=(e|0)<(k|0)?k:e;h=f-e|0;_r(a,h,n);if(e)while(1){k=g+92|0;l=Uo(k,i,4);my(a,k,1);i=i+l|0;e=e-1|0;if(e)continue;break}_r(a,h,n^8192);continue}o=61;if((l|0)<0&q)break c;J[g+72>>2]=e;h=e|32;J[g+68>>2]=H[h+2624847|0];e=n^-1;J[g- -64>>2]=(e>>>16&1)+28557;J[g+60>>2]=(e&1)+29814;J[g+56>>2]=(e>>>13&1)+28663;J[g+52>>2]=(e>>>11&1)+28723;J[g+48>>2]=(e>>>3&1)+29386;e=g+96|0;Gi(e,16,18041,g+48|0);f=0;h=h-97|0;if(h>>>0>23)continue; -h=1<>2];J[g+16>>2]=J[g+128>>2];J[g+20>>2]=f;J[g>>2]=k;J[g+4>>2]=l;f=J[g+124>>2];J[g+8>>2]=J[g+120>>2];J[g+12>>2]=f;f=Uy(a,e,g);continue}J[g+32>>2]=k;J[g+36>>2]=l;e=J[g+124>>2];J[g+40>>2]=J[g+120>>2];J[g+44>>2]=e;f=Uy(a,g+96|0,g+32|0);continue}break}o=28}J[694731]=o}f=-1}bc=g+144|0;return f}function HJ(){var a=0,b=0,c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;b=gc[J[659447]](472)|0;a:{if(!b){J[e>>2]=30666;Cc(0,0,0,0,0,1,2,3,30666,0,0,0,32863,e);break a}a=wc(b, -0,472);d=bc-112|0;bc=d;b:{if(!a){J[d>>2]=0;Cc(0,0,0,0,0,1,1,3,0,0,0,0,30698,d);b=-1;break b}J[659579]=1;J[659567]=3127;J[659566]=3128;J[659578]=3129;J[659552]=3130;J[659576]=3131;J[659557]=3132;J[659556]=3133;J[659555]=3134;J[659554]=3135;J[659553]=3136;J[659561]=3137;J[659560]=3138;J[659558]=3139;J[659577]=3140;J[659569]=3141;J[659568]=3142;J[659565]=3143;J[659564]=3144;J[659563]=3145;J[659562]=3146;J[659559]=3147;J[659575]=3106;J[659574]=3106;J[659573]=3107;J[659572]=3148;J[659571]=3149;J[659570]= -3141;b=J[a+296>>2];if(!b){c:{d:{if(!K[2758024]){b=zc(4);J[689507]=b;if(!b)break d;H[2758024]=1}b=gc[J[659447]](32)|0;if(!b)break d;J[b+28>>2]=0;J[b>>2]=1;J[b+8>>2]=128;J[b+12>>2]=0;c=gc[J[659447]](2560)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=c;if(c)break c;gc[J[659451]](b)}J[a+296>>2]=0;J[d+16>>2]=30632;Cc(0,0,0,0,0,1,2,3,30632,0,0,0,32863,d+16|0);b=-1;break b}wc(c,0,2560);J[b+24>>2]=0;J[a+296>>2]=b}J[b+28>>2]=15E6;e:{b=J[a>>2];if(b)break e;b=gc[J[659447]](128)|0;J[a>>2]=b;if(b)break e;J[d+32>>2]= -30632;Cc(0,0,0,0,0,1,2,3,30632,0,0,0,32863,d+32|0);b=-1;break b}J[b+124>>2]=0;J[b+120>>2]=3150;J[b+116>>2]=3151;J[b+56>>2]=0;J[b+60>>2]=0;J[b+108>>2]=-554844497;J[b+104>>2]=3129;J[b>>2]=3130;J[b+96>>2]=3131;J[b+20>>2]=3132;J[b+16>>2]=3133;J[b+12>>2]=3134;J[b+8>>2]=3135;J[b+4>>2]=3136;J[b+36>>2]=3137;J[b+32>>2]=3138;J[b+24>>2]=3139;J[b+100>>2]=3140;J[b+68>>2]=3141;J[b+64>>2]=3142;J[b+52>>2]=3143;J[b+48>>2]=3144;J[b+44>>2]=3145;J[b+40>>2]=3146;J[b+28>>2]=3147;J[b+92>>2]=3106;J[b+88>>2]=3106;J[b+84>> -2]=3107;J[b+80>>2]=3148;J[b+76>>2]=3149;J[b+72>>2]=3141;J[a+300>>2]=0;J[a+304>>2]=0;f:{if(!J[a+48>>2]){b=gc[J[659447]](20)|0;J[a+44>>2]=5;J[a+48>>2]=b;if(!b)break f}b=oB(a);if(b)while(1){c=J[b+4>>2];if(c)gc[J[659451]](c);c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+44>>2];if(c)gc[J[659451]](c);c=J[b+48>>2];if(c)gc[J[659451]](c);c=J[b+40>>2];g:{if(!c)break g;f=J[b+12>>2];if(!f)break g;gc[c|0](f)}c=J[b>>2];if(c)cn(c);gc[J[659451]](b);b=oB(a);if(b)continue;break}J[a+36>>2]=0;J[a+40>>2]=0;J[a+88>>2]=0;J[a+ -92>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+180>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+96>>2]=0;J[a+28>>2]=-1;J[a+32>>2]=0;h:{if(J[a+64>>2])break h;b=gc[J[659447]](40)|0;J[a+60>>2]=10;J[a+64>>2]=b;if(b)break h;J[d+64>>2]=30632;Cc(0,0,0,0,0,1,2,3,30632,0,0,0,32863,d- -64|0);J[a+60>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;b=-1;break b}J[a+52>>2]=0;J[a+56>>2]=0;i:{if(J[a+196>>2])break i;b=gc[J[659447]](40)|0;J[a+192>>2]=10;J[a+196>>2]=b;if(b)break i;J[d+80>>2]=30632;Cc(0,0,0, -0,0,1,2,3,30632,0,0,0,32863,d+80|0);J[a+60>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+192>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;b=-1;break b}J[a+184>>2]=0;J[a+188>>2]=0;j:{b=J[a+244>>2];if(b)break j;b=gc[J[659447]](40)|0;J[a+240>>2]=10;J[a+244>>2]=b;if(b)break j;J[d+96>>2]=30632;Cc(0,0,0,0,0,1,2,3,30632,0,0,0,32863,d+96|0);J[a+60>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+192>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+240>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+232>>2]=0; -J[a+236>>2]=0;b=-1;break b}J[a+236>>2]=1;J[a+240>>2]=10;J[b>>2]=-1;J[a+356>>2]=1;J[a+8>>2]=0;J[a+12>>2]=1;J[a+232>>2]=b;J[a+100>>2]=1;J[a+4>>2]=a;b=J[689533];J[a+276>>2]=b;if(b)J[a+360>>2]=J[a+360>>2]|4;b=J[689532];J[a+104>>2]=b;c=J[689534];J[a+268>>2]=c;if(c)J[a+360>>2]=J[a+360>>2]|128;J[a+280>>2]=J[689535];c=J[659551];J[a+208>>2]=c;if(!c){J[J[a>>2]+72>>2]=3152;J[a+360>>2]=J[a+360>>2]|256}J[a+108>>2]=a;J[a+116>>2]=3104;J[a+112>>2]=3105;J[a+136>>2]=-1412623820;if(b){b=J[659550];J[a+128>>2]=0;J[a+ -116>>2]=b?3104:0;J[a+360>>2]=J[a+360>>2]|16}b=0;c=J[689536];J[a+16>>2]=c;if(c)J[a+360>>2]=J[a+360>>2]|2;J[a+216>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+440>>2]=0;J[a+444>>2]=0;J[a+284>>2]=0;J[a+256>>2]=1;J[a+248>>2]=0;J[a+84>>2]=0;J[a+464>>2]=1;J[a+468>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;break b}J[d+48>>2]=30632;Cc(0,0,0,0,0,1,2,3,30632,0,0,0,32863,d+48|0);J[a+44>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;b=-1}bc=d+112|0;if((b|0)>=0)break a;yj(a);a=0}bc=e+16|0;return a}function UK(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;k=bc-16|0;bc=k;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];g=J[c+20>>2];J[c+28>>2]=g;I[g+2>>1]=0;i=J[b+20>>2];b=J[b+28>>2];g=268435454;h=268435455;d=268435455;f=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[k+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];f=j>>31;d=I[a+8>>1];f=(d+((f^j)-f|0)|0)-1|0}if((b|0)!=(i|0)){J[k+4>>2]=i+8;o=(b-i>>3)-1|0;b=I[i+10>>1];a=b>>31;h=I[i+8>>1];g=(h+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=d;n=0;break a}if((d|0)<=(f|0)){a=d; -break a}a=J[k+8>>2];J[k+8>>2]=a+8;n=n-1|0;i=I[a+10>>1];b=i>>31;a=I[a+8>>1];f=(a+((b^i)-b|0)|0)-1|0}j=f;b:{c:{d:{if(!o){o=0;break d}if((h|0)>(g|0))break c}b=h;break b}b=J[k+4>>2];J[k+4>>2]=b+8;o=o-1|0;i=I[b+10>>1];g=i>>31;b=I[b+8>>1];g=(b+((g^i)-g|0)|0)-1|0}i=g;if(!((g|0)<(b|0)&(a|0)>(j|0))){m=(g|0)>(j|0);h=(a|0)>(b|0)?a:b;g=(m?j:g)-h|0;if((g|0)>=0){g=g+1|0;e:{if((a|0)>=(b|0)){b=a;break e}f=b-a|0;d=J[k+8>>2];e=I[d+2>>1];f:{if((e|0)<0){d=K[J[d+4>>2]];g:{if((J[c>>2]+1|0)!=(a|0))break g;e=J[c+28>>2]; -l=I[e+2>>1];if((l|0)>=0|(d|0)!=K[J[e+4>>2]])break g;I[e+2>>1]=l-f;break f}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>>1]=0-f;I[d+8>>1]=a;J[d+12>>2]=e;break f}if(!e)break e;e=J[d+4>>2];d=I[d>>1];tc(J[c+16>>2],e+((a|0)>(d|0)?a-d|0:0)|0,f);e=J[c+28>>2];h:{i:{if((J[c>>2]+1|0)!=(a|0))break i;d=I[e+2>>1];if((d|0)<=0)break i;I[e+2>>1]=d+f;d=J[c+16>>2];break h}J[c+28>>2]=e+8;d=J[c+16>>2];I[e+10>>1]=f;I[e+8>>1]=a;J[e+12>>2]=d}J[c+16>>2]=d+f}J[c>>2]=b-1}a=g;j:{k:{l:{m:{n:{d= -J[k+4>>2];e=J[k+8>>2];switch((L[d+2>>1]>>>14&2|L[e+2>>1]>>>15)-1|0){case 2:break k;case 1:break l;case 0:break m;default:break n}}f=J[d+4>>2];d=I[d>>1];f=f+((d|0)<(h|0)?h-d|0:0)|0;d=I[e>>1];e=J[e+4>>2]+((d|0)<(h|0)?h-d|0:0)|0;while(1){d=P(K[e|0],K[f|0]^255);if(d){H[J[c+16>>2]]=(d|0)==65025?-1:d>>>8|0;l=J[c+28>>2];o:{p:{if((J[c>>2]+1|0)!=(h|0))break p;d=I[l+2>>1];if((d|0)<=0)break p;I[l+2>>1]=d+1;d=J[c+16>>2];break o}J[c+28>>2]=l+8;d=J[c+16>>2];I[l+10>>1]=1;I[l+8>>1]=h;J[l+12>>2]=d}J[c>>2]=h;J[c+16>> -2]=d+1}f=f+1|0;e=e+1|0;h=h+1|0;a=a-1|0;if(a)continue;break}break j}f=J[d+4>>2];d=I[d>>1];f=f+((d|0)<(h|0)?h-d|0:0)|0;while(1){d=P(K[J[J[k+8>>2]+4>>2]],K[f|0]^255);if(d){H[J[c+16>>2]]=(d|0)==65025?-1:d>>>8|0;d=J[c+28>>2];q:{r:{if((J[c>>2]+1|0)!=(h|0))break r;e=I[d+2>>1];if((e|0)<=0)break r;I[d+2>>1]=e+1;e=J[c+16>>2];break q}J[c+28>>2]=d+8;e=J[c+16>>2];I[d+10>>1]=1;I[d+8>>1]=h;J[d+12>>2]=e}J[c>>2]=h;J[c+16>>2]=e+1}f=f+1|0;h=h+1|0;a=a-1|0;if(a)continue;break}break j}if(K[J[d+4>>2]]==255)break j;d=I[e>> -1];f=J[e+4>>2]+((d|0)<(h|0)?h-d|0:0)|0;while(1){d=P(K[f|0],K[J[J[k+4>>2]+4>>2]]^255);if(d){H[J[c+16>>2]]=(d|0)==65025?-1:d>>>8|0;d=J[c+28>>2];s:{t:{if((J[c>>2]+1|0)!=(h|0))break t;e=I[d+2>>1];if((e|0)<=0)break t;I[d+2>>1]=e+1;e=J[c+16>>2];break s}J[c+28>>2]=d+8;e=J[c+16>>2];I[d+10>>1]=1;I[d+8>>1]=h;J[d+12>>2]=e}J[c>>2]=h;J[c+16>>2]=e+1}f=f+1|0;h=h+1|0;a=a-1|0;if(a)continue;break}break j}d=P(K[J[e+4>>2]],K[J[d+4>>2]]^255);if(!d)break j;d=(d|0)==65025?255:d>>>8|0;u:{v:{if((J[c>>2]+1|0)!=(h|0))break v; -f=J[c+28>>2];e=I[f+2>>1];if((e|0)>=0|(d|0)!=K[J[f+4>>2]])break v;I[f+2>>1]=e-a;break u}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;f=J[c+16>>2];J[c+16>>2]=f+1;I[d+10>>1]=0-a;I[d+8>>1]=h;J[d+12>>2]=f}J[c>>2]=(a+h|0)-1}h=b+g|0;f=268435454;d=268435455;g=i;if(m)continue;g=268435454;a=(i|0)<(j|0);f=a?j:268435454;d=a?h:268435455;h=268435455;continue}g=268435454;h=268435455;f=j;d=a;if((d|0)>=(b|0))continue;f=268435454;d=268435455;h=b;g=i;if((a|0)>(j|0))continue;l=j-a|0;e=l+1|0;b=J[k+8>>2];m=I[b+2>>1];w:{if((m| -0)<0){b=K[J[b+4>>2]];x:{if((J[c>>2]+1|0)!=(a|0))break x;g=J[c+28>>2];m=I[g+2>>1];if((m|0)>=0|(b|0)!=K[J[g+4>>2]])break x;I[g+2>>1]=m-e;break w}H[J[c+16>>2]]=b;b=J[c+28>>2];J[c+28>>2]=b+8;g=J[c+16>>2];J[c+16>>2]=g+1;I[b+10>>1]=l^-1;I[b+8>>1]=a;J[b+12>>2]=g;break w}if(!m)continue;g=J[b+4>>2];b=I[b>>1];tc(J[c+16>>2],g+((a|0)>(b|0)?a-b|0:0)|0,e);b=J[c+28>>2];y:{z:{if((J[c>>2]+1|0)!=(a|0))break z;g=I[b+2>>1];if((g|0)<=0)break z;I[b+2>>1]=e+g;g=J[c+16>>2];break y}J[c+28>>2]=b+8;g=J[c+16>>2];I[b+10>>1]= -e;I[b+8>>1]=a;J[b+12>>2]=g}J[c+16>>2]=e+g}J[c>>2]=j;g=i;continue}break}bc=k+16|0}function c7(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,y=0,z=0;p=bc-48|0;bc=p;j=!a;a:{if(j)break a;s=!b;if(s|((j?-1:J[a+8>>2])|0)!=1|(!g|((s?-1:J[b+8>>2])|0)!=1))break a;if((c|0)<=0|(d|0)<=0)break a;xf(a,p+44|0,p+40|0,0);xf(b,p+36|0,p+32|0,0);s=J[p+44>>2]-J[p+36>>2]|0;j=s>>31;if(((j^s)-j|0)>2)break a;s=J[p+40>>2]-J[p+32>>2]|0;j=s>>31;if(((j^s)-j|0)>2)break a;y=(f>=Q(0)?.5:-.5)+ -+f;b:{if(R(y)<2147483648){j=~~y;break b}j=-2147483648}x=a?J[a+12>>2]:-1;s=b?J[b+12>>2]:-1;q=J[p+40>>2];n=J[p+32>>2];m=a?J[a+40>>2]:0;l=(j|0)>0?j:0;k=l-j|0;b=b?J[b+40>>2]:0;a=j+n|0;t=(a|0)<(q|0)?a:q;j=J[p+40>>2];y=(e>=Q(0)?.5:-.5)+ +e;c:{if(R(y)<2147483648){a=~~y;break c}a=-2147483648}j=(j|0)<(t|0);e=Q(W(Q(Y(Q(Q(Q(c|0)*i)*Q(d|0))))));d:{if(Q(R(e))>2];o=m+(P(l,x)<<2)|0;m=b+(P(k,s)<<2)|0;b=a+J[p+36>>2]|0;j=J[p+44>>2];k=(b|0)<(j|0)?b: -j;b=(a|0)>0?a:0;e:{if((a|0)>=32){n=a&31;j=a&-32;k=k-j|0;b=b-j|0;o=(a>>>3&536870908)+o|0;j=s;break e}if((a|0)>-32){j=s;n=a;break e}j=a;a=a+31|0;n=j-(a&-32)|0;a=a>>5;j=a+s|0;m=m-(a<<2)|0}a=0;f:{if((b|0)>=(k|0)|(l|0)>=(t|0))break f;r=k+31>>5;if(!n){k=1;if((r|0)>0){while(1){b=0;while(1){j=a;a=b<<2;a=J[a+m>>2]&J[a+o>>2];a=(((j+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;b=b+1|0;if((r|0)!=(b|0))continue;break}if((a|0)<(q|0)){if((J[(l<<2)+h>>2]+(a-v|0)| -0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break f}break}break a}if((q|0)<=0)break a;while(1){if((J[(l<<2)+h>>2]-v|0)<(q|0)){k=0;break a}l=l+1|0;if((t|0)!=(l|0))continue;break}break f}g:{if((n|0)>0){w=32-n|0;if((j|0)<(r|0))break g;while(1){b=a;j=J[m>>2];a=J[o>>2]&j>>>n;a=(((b+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;b=1;if((r|0)>=2)while(1){u=a;k=j<>2];a=(k|j>>>n)&J[a+o>>2];a=(((u+J[((a& -255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;b=b+1|0;if((r|0)!=(b|0))continue;break}if((a|0)>=(q|0)){k=1;break a}if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break}break f}if((j|0)<=(r|0)){w=n+32|0;n=0-n|0;b=r-1|0;z=(r|0)<2;while(1){if(z)j=0;else{r=J[m>>2];k=0;while(1){j=a;a=J[(k<<2)+o>>2];u=r<>2];a=a&(u|r>>>w);a=(((j+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+ -J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;if((b|0)!=(k|0))continue;break}j=b}u=a;a=j<<2;a=J[a+m>>2]<>2];a=(((u+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;if((q|0)<=(a|0)){k=1;break a}if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break}break f}k=1;if((r|0)>0){b=n+32|0;j=0-n|0;while(1){n=J[m>>2];k=0;while(1){u=a;a=J[(k<<2)+o>>2];w=n<>2];a=a&(w|n>>> -b);a=(((u+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;if((k|0)!=(r|0))continue;break}if((a|0)<(q|0)){if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break f}break}k=1;break a}if((q|0)<=0)break a;while(1){if((J[(l<<2)+h>>2]-v|0)<(q|0)){k=0;break a}l=l+1|0;if((t|0)!=(l|0))continue;break}break f}while(1){b=a;r=J[m>>2];a=J[o>>2]&r>>>n;b=(((b+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+ -J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;k=1;a=1;if((j|0)>=2){while(1){u=r<>2];a=(u|r>>>n)&J[a+o>>2];b=(((J[((a&255)<<2)+g>>2]+b|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;k=k+1|0;if((k|0)!=(j|0))continue;break}a=j}a=a<<2;a=J[(a+m|0)-4>>2]<>2];a=(((J[((a&255)<<2)+g>>2]+b|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;if((q|0)<=(a|0)){k=1;break a}if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+ -m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break}}k=0;e=Q(Q(P(a,a)|0)/Q(P(c,d)|0));if(!(e>=i))break a;O[p+16>>3]=i;J[p+4>>2]=q;J[p>>2]=a;O[p+8>>3]=e;Ii(J[651370],226153,p)}bc=p+48|0;return k}function clb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=bc-176|0;bc=f;J[f+172>>2]=0;g=J[e+32>>2];if(g)i=J[g+100>>2];a:{b:{if(kd(a,241846,7))break b;c:{h=K[a+7|0];switch(h|0){case 0:case 9:case 10:case 13:case 32:break c;default:break b}}c=0;if(!g|!J[J[e+36>>2]+8>>2])break a; -c=J[g+100>>2];J[f+32>>2]=0;e=c;c=J[g+88>>2];b=(h?-8:-7)+b|0;d=b+1|0;e=Sc(e,1,c,d+c|0,J[g+84>>2],f+32|0);J[g+84>>2]=e;c=J[f+32>>2];if(c)break a;j=tc(e+J[g+88>>2]|0,h?a+8|0:a+7|0,b)+b|0,k=10,H[j|0]=k;J[g+88>>2]=d+J[g+88>>2];c=J[f+32>>2];break a}h=J[e>>2];if(!(h&1)){d=J[e+56>>2];c=176;if(kd(a,241958,9))break a;d:switch(K[a+9|0]){case 0:case 9:case 10:case 13:case 32:break d;default:break a}a=0;J[e+32>>2]=0;J[e>>2]=1;b=Zd(d,136,f+172|0);c=J[f+172>>2];if(c)break a;J[e+32>>2]=b;J[b+100>>2]=J[e+56>>2];J[e+ -56>>2]=0;g=b+112|0;c=h6(g,d);J[f+172>>2]=c;if(c)break a;b=252368;while(1){c=ZC(J[b>>2],a,g,d);J[f+172>>2]=c;if(c)break a;b=b+16|0;a=a+1|0;if((a|0)!=83)continue;break}a=Zd(d,24,f+172|0);J[J[e+32>>2]+92>>2]=a;c=J[f+172>>2];if(c)break a;c=h6(a,d);if(c)break a;a=J[J[e+36>>2]+12>>2];b=J[e+32>>2];J[b+36>>2]=-1;J[b+28>>2]=a;c=0;break a}e:{if(kd(a,242082,15))break e;f:switch(K[a+15|0]){case 0:case 9:case 10:case 13:case 32:break f;default:break e}c=179;if(!(h&8))break a;c=tl(e+40|0,242198,a,b);J[f+172>>2]= -c;if(c)break a;g:{h:{b=J[J[e+40>>2]+4>>2];if(!b)break h;a=H[b|0];c=a&255;if(!c|!(K[(c>>>3|0)+254784|0]>>>(a&7)&1))break h;c=0;i:{while(1){if(c>>>0>=429496728){a=J[e+32>>2];J[a+72>>2]=-1;J[e+4>>2]=-1;a=a+72|0;break i}c=K[a+254816|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+254784|0]>>>(a&7)&1)continue;break}a=J[e+32>>2];J[a+72>>2]=c;J[e+4>>2]=c;if(J[e+60>>2]>>>2>>>0>=c>>>0)break g;a=a+72|0}J[a>>2]=0;c=6;break a}c=0;J[J[e+32>>2]+72>>2]=0;J[e+4>>2]=0}a=Sc(i,16,0,c,0,f+172|0);b=J[e+32>>2];J[b+ -80>>2]=a;c=J[f+172>>2];if(c){J[b+72>>2]=0;break a}J[e>>2]=J[e>>2]|16;J[d>>2]=1644;c=0;break a}j:{if(kd(a,242294,15))break j;k:switch(K[a+15|0]){case 0:case 9:case 10:case 13:case 32:break k;default:break j}c=178;if(!(h&4))break a;c=tl(e+40|0,242198,a,b);if(c)break a;a=J[e+32>>2];b=J[e+40>>2];j=a,k=hD(J[b+4>>2]),I[j+4>>1]=k;d=hD(J[b+8>>2]);I[a+6>>1]=d;j=a,k=sx(J[b+12>>2]),I[j+8>>1]=k;b=sx(J[b+16>>2]);I[a+10>>1]=b;c=0;I[a+14>>1]=0-b;I[a+12>>1]=b+d;J[e>>2]=J[e>>2]|8;break a}l:{if(kd(a,242418,4))break l; -m:switch(K[a+4|0]){case 0:case 9:case 10:case 13:case 32:break m;default:break l}d=e+40|0;c=tl(d,242198,a,b);J[f+172>>2]=c;if(c)break a;F6(d);b=E6(d,f+32|0);if(!b){c=3;break a}a=J[J[e+32>>2]>>2];if(a)gc[J[i+8>>2]](i,a);J[J[e+32>>2]>>2]=0;d=J[f+32>>2]+1|0;a=Sc(i,1,0,d,0,f+172|0);J[J[e+32>>2]>>2]=a;c=J[f+172>>2];if(c)break a;tc(a,b,d);g=J[e+36>>2];a=bc-272|0;bc=a;d=6;b=J[e+32>>2];n:{if(!b)break n;c=J[b>>2];if(!c|!K[c|0])break n;i=J[b+100>>2];J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+12>>2]=i;J[b+28>>2]= -J[g+12>>2];g=Qc(c)+1|0;if(g>>>0>255)break n;d=a+16|0;tc(d,c,g);d=tl(a,254980,d,g);o:{if(d|J[a+8>>2]!=15)break o;c=32;p:{q:switch(H[J[J[a>>2]+44>>2]]-67|0){case 10:case 42:c=16;break p;case 0:case 32:break p;case 13:case 45:break q;default:break o}c=8}J[b+28>>2]=c}b=J[a+12>>2];if(!b)break n;c=J[a>>2];if(c)gc[J[b+8>>2]](b,c)}bc=a+272|0;c=d;if(c)break a;J[e>>2]=J[e>>2]|2;c=0;break a}r:{if(kd(a,242497,4))break r;s:switch(K[a+4|0]){case 0:case 9:case 10:case 13:case 32:break s;default:break r}c=177;if(!(h& -2))break a;c=tl(e+40|0,242198,a,b);if(c)break a;a=J[e+32>>2];b=J[e+40>>2];j=a,k=rx(J[b+4>>2]),J[j+16>>2]=k;j=a,k=rx(J[b+8>>2]),J[j+20>>2]=k;j=a,k=rx(J[b+12>>2]),J[j+24>>2]=k;t:{if(J[e+48>>2]==5){b=sx(J[b+16>>2]);if(b>>>0>=5){I[a+96>>1]=8;break t}if(b>>>0>=3){I[a+96>>1]=4;break t}if((b|0)==2){I[a+96>>1]=2;break t}I[a+96>>1]=1;break t}I[a+96>>1]=1}J[e>>2]=J[e>>2]|4;c=0;break a}c=3;if(kd(a,242589,5))break a;u:switch(K[a+5|0]){case 0:case 9:case 10:case 13:case 32:break u;default:break a}c=179;if(!(h& -8))break a;a=I[g+12>>1];J[g+40>>2]=a;J[f+16>>2]=a;a=f+32|0;Vf(a,242708,f+16|0);c=yr(J[e+32>>2],242772,a);J[f+172>>2]=c;if(c)break a;c=J[e+32>>2];b=I[c+14>>1];J[c+44>>2]=b;J[f>>2]=b;Vf(a,242708,f);c=yr(J[e+32>>2],242868,a);if(c)break a;J[d>>2]=1645;c=-1}bc=f+176|0;return c|0}function pI(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,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;h=bc-160|0;bc=h;J[h+144>>2]=13;J[h+128>>2]=13;J[h+112>>2]=13;J[h+96>>2]=13;J[h+80>> -2]=13;a:{if(d==f|e==g)break a;hf(b,J[a+4>>2],h+144|0,0);if(J[h+144>>2]==8){i=J[h+152>>2];y=gc[J[J[i>>2]+76>>2]](i)|0;Bc(y,815551,h+112|0,0);b:{c:{d:{if(J[h+112>>2]!=6)break d;i=J[h+120>>2];if(J[i+12>>2]!=4)break d;Mc(i,0,h+80|0,0);i=J[h+80>>2];if(i-3>>>0>=4294967294)o=(i|0)==1?+J[h+88>>2]:O[h+88>>3];O[h>>3]=o;i=h+80|0;uc(i);Mc(J[h+120>>2],1,i,0);i=J[h+80>>2];if(i-3>>>0>=4294967294)k=(i|0)==1?+J[h+88>>2]:O[h+88>>3];O[h+8>>3]=k;i=h+80|0;uc(i);Mc(J[h+120>>2],2,i,0);i=J[h+80>>2];if(i-3>>>0>=4294967294)t= -(i|0)==1?+J[h+88>>2]:O[h+88>>3];O[h+16>>3]=t;i=h+80|0;uc(i);Mc(J[h+120>>2],3,i,0);i=J[h+80>>2];if(i-3>>>0>=4294967294)p=(i|0)==1?+J[h+88>>2]:O[h+88>>3];O[h+24>>3]=p;q=h+80|0;uc(q);uc(h+112|0);Bc(y,816060,h+128|0,0);if(J[h+128>>2]!=6)break c;Mc(J[h+136>>2],0,q,0);u=J[h+80>>2]==1?+J[h+88>>2]:O[h+88>>3];O[h+32>>3]=u;uc(q);Mc(J[h+136>>2],1,q,0);l=O[h+88>>3];D=J[h+88>>2];E=J[h+80>>2];uc(q);Mc(J[h+136>>2],2,q,0);m=O[h+88>>3];F=J[h+88>>2];G=J[h+80>>2];uc(q);Mc(J[h+136>>2],3,q,0);n=O[h+88>>3];H=J[h+88>>2]; -I=J[h+80>>2];uc(q);Mc(J[h+136>>2],4,q,0);j=O[h+88>>3];s=J[h+88>>2];i=J[h+80>>2];uc(q);Mc(J[h+136>>2],5,q,0);z=(E|0)==1?+(D|0):l;A=(G|0)==1?+(F|0):m;v=(i|0)==1?+(s|0):j;w=J[h+80>>2]==1?+J[h+88>>2]:O[h+88>>3];uc(q);x=(I|0)==1?+(H|0):n;break b}c=-1;a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];c=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,c,815828,0);uc(h+112|0);uc(h+144|0);break a}J[h+40>>2]=0;J[h+44>>2]=0;J[h+32>>2]=0;J[h+36>>2]=1072693248;u=1;x=1}j=o*z;B=x*p;l=w+(j+B);r=k*x; -m=w+(j+r);uc(h+128|0);n=o*u;C=A*p;j=v+(n+C);o=k*A;k=v+(n+o);f:{if(jk)){n=k;break f}n=j}g:{if(m>l){j=m;m=l;break g}if(!(mn))break h;n=l}i:{if(m>r){m=r;break i}if(!(jn))break j;n=l}k:{if(m>r){m=r;break k}if(!(j>3]=x*o;O[h+48>>3]=A*p;O[h+40>>3]=z*o;O[h+32>> -3]=u*p;O[h+72>>3]=w*o+(e-m*o);O[h+64>>3]=v*p+(d-k*p);i=h+96|0;Bc(y,816318,i,0);Uv(a,b,J[h+96>>2]==7?J[h+104>>2]:0,h+32|0,h,0,0,0,0,0,0,0);uc(i)}uc(h+144|0);if(!c|!(O[c+8>>3]>0))break a;b=J[c+56>>2];if((b|0)<=0)break a;l:{m:{n:switch(b-1|0){case 0:b=0;i=J[J[a+28>>2]+120>>2];if(gc[J[J[i>>2]+12>>2]](i)|0)break m;break l;case 2:b=2;i=J[J[a+28>>2]+120>>2];if((gc[J[J[i>>2]+12>>2]](i)|0)!=2)break m;break l;case 3:break n;default:break l}b=4;i=J[J[a+28>>2]+120>>2];if((gc[J[J[i>>2]+12>>2]](i)|0)==4)break l}i= -J[a+28>>2];s=J[i+384>>2];if(s)gc[J[J[s>>2]+4>>2]](s);J[i+384>>2]=0;s=J[a+28>>2];b=rk(b);i=J[s+120>>2];if(i)gc[J[J[i>>2]+4>>2]](i);J[s+120>>2]=b;b=J[a+8>>2];gc[J[J[b>>2]+112>>2]](b,J[a+28>>2])}k=O[c+32>>3];m=O[c+40>>3];n=O[c+48>>3];b=J[a+28>>2];j=O[c+24>>3]*65536;o:{if(R(j)<2147483648){i=~~j;break o}i=-2147483648}J[b+252>>2]=i;j=n*65536;p:{if(R(j)<2147483648){i=~~j;break p}i=-2147483648}J[b+264>>2]=i;j=m*65536;q:{if(R(j)<2147483648){i=~~j;break q}i=-2147483648}J[b+260>>2]=i;j=k*65536;r:{if(R(j)<2147483648){i= -~~j;break r}i=-2147483648}J[b+256>>2]=i;b=J[a+8>>2];gc[J[J[b>>2]+120>>2]](b,J[a+28>>2]);i=J[a+28>>2];O[i+440>>3]=O[c+8>>3];b=J[a+8>>2];gc[J[J[b>>2]+100>>2]](b,i);s:{if(J[c>>2]!=1)break s;i=J[c+20>>2];if((i|0)<=0)break s;b=J[c+16>>2];b=tc(vd(i,8),b,i<<3);iI(J[a+28>>2],b,i,0);b=J[a+8>>2];gc[J[J[b>>2]+80>>2]](b,J[a+28>>2])}Rf(J[a+28>>2]);b=J[a+28>>2];O[b+608>>3]=e;O[b+600>>3]=d;b=J[b+596>>2];O[b+16>>3]=e;O[b+8>>3]=d;J[b>>2]=1;b=J[a+28>>2];O[b+608>>3]=e;O[b+600>>3]=f;ie(J[b+596>>2],f,e);if(J[c>>2]!=4){b= -J[a+28>>2];O[b+608>>3]=g;O[b+600>>3]=f;ie(J[b+596>>2],f,g);b=J[a+28>>2];O[b+608>>3]=g;O[b+600>>3]=d;ie(J[b+596>>2],d,g);i=J[a+28>>2];_f(J[i+596>>2]);b=J[i+596>>2];c=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];b=J[c+12>>2]<<3;O[i+600>>3]=O[(b+J[c>>2]|0)-8>>3];O[i+608>>3]=O[(b+J[c+4>>2]|0)-8>>3]}b=J[a+8>>2];gc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}bc=h+160|0}function kua(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F= -0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,$=0;r=bc-80|0;bc=r;D=L[b+8>>1];s=P(D,3)+3>>>2|0;A=L[b+10>>1];q=P(A,3)+3>>>2|0;a:{if(c){b:{n=J[c>>2];c:{if((n|0)<0)break c;o=J[c+4>>2];if((o|0)<0)break c;t=J[c+8>>2];if((t|0)>(q|0))break c;c=J[c+12>>2];if((c|0)<=(s|0))break b}a=Kc(r+32|0,2379157,2373889,1169,2412934,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}s=c-o|0;q=t-n|0}c=J[a+20>>2];if(c)qc(c);J[a+16>>2]=0;J[a+20>>2]=0;I[a+12>>1]=q;I[a+10>> -1]=q;I[a+8>>1]=s;c=0;u=q&65535;p=s&65535;t=P(u,p);if(t){c=rc((X=-1,Y=Dzb(t,0,3,0),$=fc,$?X:Y));J[a+16>>2]=c;J[a+20>>2]=c}C=(n>>>0)/3|0;f=(o>>>0)/3|0;a=P(f,-3)+o|0;o=0-((a|0)<0?a+3|0:a)|0;d:{if((s|0)<=(o|0))break d;n=P(C,-3)+n|0;t=0-((n|0)<0?n+3|0:n)|0;if((t|0)>=(q|0))break d;C=C+(n>>31)<<2;R=D-4|0;S=A-4|0;T=r|9;z=P(P(o,u),3)+(p?c:0)|0;v=f+(a>>31)<<2;w=L[b+12>>1];E=P(P(v,w),3)+(L[b+8>>1]?J[b+16>>2]:0)|0;U=P(w,12);V=P(u,9);while(1){n=o>>>0<=4294967293?-3:o;b=(o|0)>=0;a=b?0:0-n|0;c=s-o|0;F=(a|0)<(c| -0)&a>>>0<3;G=a>>>0<2&(c|0)>(a+1|0);M=b&(c|0)>(a+2|0);a=n^-1;p=b?r:P(a,9)+T|0;x=p+18|0;y=p+9|0;N=(b?0:P(P(a,3)+3|0,u))+z|0;O=D-v|0;Q=0-v|0;n=o+3|0;W=(v|0)>(R|0);c=t;a=C;while(1){j=(a|0)>(S|0)|W;b=c;c=b+3|0;f=P(a,3)+E|0;e:{if(!((b|o)<0|(c|0)>(q|0)|(n|0)>(s|0))){if(!j){Gz(f,w,P(b,3)+z|0,u);break e}d=f;f=r+32|0;QT(d,w,0-a|0,A-a|0,Q,O,f);Gz(f,4,P(b,3)+z|0,u);break e}if(!j){Gz(f,w,r,3);if(!F)break e;f=0-b|0;f=(f|0)>0?f:0;if(f>>>0>2)break e;j=q-b|0;if((j|0)<=(f|0))break e;i=P(b,3)+N|0;g=P(f,3);h=i+g|0;k= -g+p|0;e=K[k|0]|K[k+1|0]<<8;H[h|0]=e;H[h+1|0]=e>>>8;H[h+2|0]=K[k+2|0];k=f>>>0>1;h=f+1|0;f:{if(k|(h|0)>=(j|0))break f;d=P(h,3);e=d+i|0;d=d+p|0;l=K[d|0]|K[d+1|0]<<8;H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=K[d+2|0];if((b|0)<0)break f;e=f+2|0;if((e|0)>=(j|0))break f;d=P(e,3);e=d+i|0;d=d+p|0;l=K[d|0]|K[d+1|0]<<8;H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=K[d+2|0]}if(!G)break e;l=P(u,3);i=l+i|0;e=i+g|0;d=g+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0];g:{if((h|0)>=(j|0)|k)break g;d=P(h,3);e=d+i|0;d= -d+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0];if((b|0)<0)break g;e=f+2|0;if((e|0)>=(j|0))break g;d=P(e,3);e=d+i|0;d=d+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0]}if(!M)break e;i=i+l|0;e=i+g|0;g=g+x|0;d=K[g|0]|K[g+1|0]<<8;H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=K[g+2|0];if((h|0)>=(j|0)|k)break e;g=P(h,3);h=g+i|0;g=g+x|0;k=K[g|0]|K[g+1|0]<<8;H[h|0]=k;H[h+1|0]=k>>>8;H[h+2|0]=K[g+2|0];if((b|0)<0)break e;b=f+2|0;if((b|0)>=(j|0))break e;f=P(b,3);b=f+i|0;f=f+x|0;j= -K[f|0]|K[f+1|0]<<8;H[b|0]=j;H[b+1|0]=j>>>8;H[b+2|0]=K[f+2|0];break e}d=f;f=r+32|0;QT(d,w,0-a|0,A-a|0,Q,O,f);Gz(f,4,r,3);if(!F)break e;f=0-b|0;f=(f|0)>0?f:0;if(f>>>0>2)break e;j=q-b|0;if((j|0)<=(f|0))break e;i=P(b,3)+N|0;g=P(f,3);h=i+g|0;k=g+p|0;e=K[k|0]|K[k+1|0]<<8;H[h|0]=e;H[h+1|0]=e>>>8;H[h+2|0]=K[k+2|0];k=f>>>0>1;h=f+1|0;h:{if(k|(h|0)>=(j|0))break h;d=P(h,3);e=d+i|0;d=d+p|0;l=K[d|0]|K[d+1|0]<<8;H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=K[d+2|0];if((b|0)<0)break h;e=f+2|0;if((e|0)>=(j|0))break h;d=P(e,3); -e=d+i|0;d=d+p|0;l=K[d|0]|K[d+1|0]<<8;H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=K[d+2|0]}if(!G)break e;l=P(u,3);i=l+i|0;e=i+g|0;d=g+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0];i:{if((h|0)>=(j|0)|k)break i;d=P(h,3);e=d+i|0;d=d+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0];if((b|0)<0)break i;e=f+2|0;if((e|0)>=(j|0))break i;d=P(e,3);e=d+i|0;d=d+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0]}if(!M)break e;i=i+l|0;e=i+g|0;g=g+x|0;d=K[g|0]|K[g+1|0]<< -8;H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=K[g+2|0];if((h|0)>=(j|0)|k)break e;g=P(h,3);h=g+i|0;g=g+x|0;k=K[g|0]|K[g+1|0]<<8;H[h|0]=k;H[h+1|0]=k>>>8;H[h+2|0]=K[g+2|0];if((b|0)<0)break e;b=f+2|0;if((b|0)>=(j|0))break e;f=P(b,3);b=f+i|0;f=f+x|0;j=K[f|0]|K[f+1|0]<<8;H[b|0]=j;H[b+1|0]=j>>>8;H[b+2|0]=K[f+2|0]}a=a+4|0;if((c|0)<(q|0))continue;break}v=v+4|0;E=E+U|0;z=z+V|0;o=n;if((s|0)>(o|0))continue;break}}bc=r+80|0;return}B()}function R6(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,w=0,x=0;s=bc-16|0;bc=s;d=P(b,1348)+a|0;l=d;i=J[d+52>>2];a:{b:{if(i){d=J[d+44>>2];e=Ar(a,b);if(e)break a;if((d|0)<=0)break b;d=P(d,44)+i|0;while(1){e=J[i+36>>2];c=L[e>>1];g=K[i|0];H[i|0]=g&254;f=J[i+40>>2];c:{if((f|0)==(e|0))break c;c=c&3;while(1){k=c;e=J[e+32>>2];c=L[e>>1]&3;if(!((k|c)&65535))break c;if((e|0)!=(f|0))continue;break}H[i|0]=g|1}i=i+44|0;if(d>>>0>i>>>0)continue;break}break b}e=Ar(a,b);if(e)break a}n=J[J[a+2748>>2]+40>>2]/256|0;p=P(b,1348)+a|0;q=p+44|0;c=J[q>>2];d=J[l+52>> -2];j=J[p+68>>2];t=(b?12:4)+a|0;i=td(192,J[t>>2]);if((c|0)>0){k=P(c,44)+d|0;c=d;while(1){e=d;if((j|0)==H[c+1|0])while(1){d:{if((c|0)==(e|0)|(j|0)!=(0-H[e+1|0]|0))break d;f=I[e+2>>1]-I[c+2>>1]|0;if((f|0)<0)break d;g=I[c+8>>1];h=I[e+8>>1];r=(g|0)<(h|0)?g:h;g=I[c+6>>1];h=I[e+6>>1];g=r-((g|0)>(h|0)?g:h)|0;if((g|0)<(n|0))break d;h=f<<3;m=J[c+28>>2];if(!((h|0)>=(P(m,9)|0)|(g|0)<=J[c+32>>2]&(h|0)>=(P(m,7)|0))){J[c+32>>2]=g;J[c+28>>2]=f;J[c+20>>2]=e}m=J[e+28>>2];if((h|0)>=(P(m,9)|0)|(g|0)<=J[e+32>>2]&(h|0)>= -(P(m,7)|0))break d;J[e+32>>2]=g;J[e+28>>2]=f;J[e+20>>2]=c}e=e+44|0;if(k>>>0>e>>>0)continue;break}c=c+44|0;if(k>>>0>c>>>0)continue;break}c=d;while(1){f=J[c+20>>2];e:{if(!f|J[f+20>>2]!=(c|0))break e;n=I[f+2>>1];m=I[c+2>>1];if((n|0)<=(m|0))break e;o=J[c+28>>2];if((o|0)>=(i|0))break e;v=o<<2;e=d;while(1){f:{g:{if((c|0)==(e|0))break g;g=I[e+2>>1];if((g|0)>(m|0))break g;j=J[e+20>>2];if(!j|J[j+20>>2]!=(e|0))break g;h=I[j+2>>1];if((h|0)<(n|0)|(g|0)==(m|0)&(h|0)==(n|0))break g;g=J[e+28>>2];if((g|0)<=(o|0)| -(g|0)>=(v|0))break g;h=d;if(J[c+32>>2]<(P(J[e+32>>2],3)|0))break f;while(1){g=f;u=J[h+20>>2];h:{if((u|0)!=(e|0)){g=c;if((j|0)!=(u|0))break h}J[h+24>>2]=g;J[h+20>>2]=0}h=h+44|0;if(k>>>0>h>>>0)continue;break}}e=e+44|0;if(k>>>0>e>>>0)continue;break e}break}J[f+20>>2]=0;J[c+20>>2]=0}c=c+44|0;if(k>>>0>c>>>0)continue;break}while(1){c=J[d+20>>2];i:{if(!c|J[c+20>>2]==(d|0))break i;J[d+20>>2]=0;g=J[c+28>>2];if((g|0)>=(i|0)&J[d+28>>2]>=g<<2)break i;J[d+24>>2]=J[c+20>>2]}d=d+44|0;if(k>>>0>d>>>0)continue;break}}v= -J[a>>2];f=J[l+52>>2];d=J[q>>2];c=J[a+2748>>2];J[p+56>>2]=0;c=c+P(b,7676)|0;n=J[t>>2];j:{if((Pc(J[c+248>>2],n)|0)>=17){h=td(16,n);break j}h=J[c+248>>2]}if((d|0)>0){t=P(d,44)+f|0;u=(P(b,1348)+a|0)- -64|0;while(1){k:{l:{w=J[p+56>>2];m:{if((w|0)<=0){l=H[f+1|0];break m}m=J[u>>2];d=0;g=65535;l=K[f+1|0];i=0;while(1){e=P(i,44);k=e+m|0;n:{if(K[k+13|0]!=(l|0))break n;j=I[f+2>>1]-I[k>>1]|0;c=j>>31;j=(c^j)-c|0;if((j|0)>=(h|0)|(g|0)<=(j|0))break n;x=J[f+20>>2];if(x){c=0;r=J[(e+m|0)+36>>2];e=r;while(1){o:{o=J[e+ -20>>2];if(o){c=I[x+2>>1];o=I[o+2>>1];c=(c|0)>(o|0)?c-o|0:o-c|0;if((h|0)<=(c|0))break o}e=J[e+16>>2];if((r|0)!=(e|0))continue}break}if((c|0)>=(h|0))break n}g=j;d=k}i=i+1|0;if((w|0)!=(i|0))continue;break}if(d)break l}e=K6(q,I[f+2>>1],l<<24>>24,0,v,s+12|0);if(e)break a;d=J[s+12>>2];J[d>>2]=0;J[d+4>>2]=0;J[d+40>>2]=f;J[d+36>>2]=f;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;H[d+13|0]=K[f+1|0];c=I[f+2>>1];I[d>>1]=c;c=Pc(c,n);J[d+8>>2]=c;J[d+4>>2]=c;J[f+16>> -2]=f;break k}J[f+16>>2]=J[d+36>>2];J[J[d+40>>2]+16>>2]=f;J[d+40>>2]=f}f=f+44|0;if(t>>>0>f>>>0)continue;break}}c=J[p+56>>2];if((c|0)>0){d=J[(P(b,1348)+a|0)- -64>>2];p=d+P(c,44)|0;c=d;while(1){a=J[c+36>>2];e=a;if(e)while(1){J[e+12>>2]=c;e=J[e+16>>2];if((a|0)!=(e|0))continue;break}c=c+44|0;if(p>>>0>c>>>0)continue;break}while(1){i=0;h=0;b=J[d+36>>2];if(b){k=d+28|0;a=d+24|0;e=b;while(1){q=H[e|0]&1;n=!q;c=J[e+24>>2];p:{q:{if(c){f=J[c+12>>2]==(d|0);g=J[e+20>>2];if(f&!g)break p;if(f){j=0;f=a;break q}j=1; -f=k;g=c;break q}j=0;f=a;g=J[e+20>>2];if(!g)break p}c=J[f>>2];r:{if(c){l=I[d>>1]-I[c>>1]|0;f=l>>31;r=(f^l)-f|0;f=I[e+2>>1];l=I[g+2>>1];if((r|0)<=(((f|0)>(l|0)?f-l|0:l-f|0)|0))break r}c=J[g+12>>2]}if(j){J[k>>2]=c;H[c+12|0]=K[c+12|0]|2;break p}J[a>>2]=c}i=i+q|0;h=h+n|0;e=J[e+16>>2];if((b|0)!=(e|0))continue;break}}H[d+12|0]=(h|0)<=(i|0)&(i|0)>0;if(!(!J[d+28>>2]|!J[d+24>>2]))J[d+28>>2]=0;d=d+44|0;if(p>>>0>d>>>0)continue;break}}e=0}bc=s+16|0;return e}function Z7(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;J[a+984>>2]=0;J[a+988>>2]=0;J[a+976>>2]=0;J[a+968>>2]=0;J[a+1012>>2]=0;J[a+2276>>2]=0;J[a+2280>>2]=0;J[a+536>>2]=0;j=a+2284|0;J[j>>2]=0;J[j+4>>2]=0;a:{b:{k=$g(a,b);c:{if(k){i=J[k+88>>2];if(K[i+33|0]){if(K[k+64|0]|K[k+65|0]){i=tu(a,k);if(i)break c;i=J[k+88>>2]}J[a+2268>>2]=h;J[a+2264>>2]=g;J[a+2260>>2]=f;J[a+2256>>2]=e;H[a+2253|0]=d;H[a+2252|0]=c;J[a+2248>>2]=k;b=J[i+36>>2];J[a+316>>2]=b;c=J[i+40>>2];J[a+320>>2]=c;m=K[i+44|0];H[a+324|0]=m;j=K[i+45|0];H[a+325|0]=j;n=K[i+46|0];H[a+326| -0]=n;o=K[i+47|0];H[a+327|0]=o;p=K[i+48|0];H[a+328|0]=p;l=m;d:{if(d>>>0>6)break d;e:{f:{q=1<>>0<=c>>>0&e+g>>>0<=b>>>0)){Dc(a,1066,0,0);return 1066}J[a+320>>2]=f;J[a+316>>2]=e;c=f;b=e;n:switch(d|0){case 2:case 5:b= -(j<<7|(j<<24)-67108864>>>25)&255;if(b>>>0<6)break k;break a;case 0:break l;case 3:case 6:break n;default:break h}b=j<<7|(j<<24)-67108864>>>25;c=b&255;if(c>>>0<6)break j;break a;case 7:break h;case 0:break m}J[a+320>>2]=f;J[a+316>>2]=e}i=dk(a,k,e,f,l&255,j&255,n,o,p,0);if(i)break c;J[a+536>>2]=k;break g}if(!(51>>>b&1))break a;i=8;b=0;break i}if(!(51>>>c&1))break a;c=b&255;c=c<<3;b=c&31;if((c&63)>>>0>=32)i=2568>>>b|0;else i=((1<>>b;b=c&31;if((c&63)>>>0>=32)b=512>>>b|0;else b= -((1<>>b}j=b;H[a+336|0]=i;H[a+325|0]=j;c=f;b=e}d=J[a+528>>2];J[a+536>>2]=d;i=dk(a,d,b,c,l&255,j&255,n,o,p,1);if(i)break c;c=J[J[a+528>>2]+88>>2];d=J[k+88>>2];b=K[d+55|0];H[c+55|0]=b;j=K[d+56|0];H[c+56|0]=j;o:{if(!b)break o;e=J[d+64>>2];J[c+64>>2]=e;if(!e)break o;b=0;if((e|0)!=1){l=e&-2;g=0;while(1){m=c+68|0;h=P(b,3);f=m+h|0;i=d+68|0;h=i+h|0;H[f|0]=K[h|0];H[f+1|0]=K[h+1|0];H[f+2|0]=K[h+2|0];h=P(b|1,3);f=h+m|0;h=h+i|0;H[f|0]=K[h|0];H[f+1|0]=K[h+1|0];H[f+2|0]=K[h+2|0];b=b+2|0;g=g+ -2|0;if((l|0)!=(g|0))continue;break}}if(!(e&1))break o;e=P(b,3);b=e+c|0;e=d+e|0;H[b+68|0]=K[e+68|0];H[b+69|0]=K[e+69|0];H[b+70|0]=K[e+70|0]}if(j){I[c+836>>1]=L[d+836>>1];I[c+838>>1]=L[d+838>>1];I[c+840>>1]=L[d+840>>1];I[c+842>>1]=L[d+842>>1];J[c+844>>2]=J[d+844>>2];tc(c+848|0,d+848|0,256)}b=0;p:{if(!(K[a+496|0]|K[a+476|0])|(K[a+460|0]|!K[a+432|0]))break p;c=J[J[a+2248>>2]+88>>2];if(K[a+324|0]!=K[c+44|0])break p;b=K[a+325|0]==K[c+45|0]}H[a+2272|0]=b}i=0;q:switch(K[a+325|0]){case 0:r:switch(K[a+324| -0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1220;break b}J[a+1012>>2]=1221;break b;case 1:if(!K[a+328|0]){J[a+1012>>2]=1222;break b}J[a+1012>>2]=1223;break b;case 3:if(!K[a+328|0]){J[a+1012>>2]=1224;break b}J[a+1012>>2]=1225;break b;case 7:if(!K[a+328|0]){J[a+1012>>2]=1226;break b}J[a+1012>>2]=1227;break b;case 15:break r;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1228;break b}J[a+1012>>2]=1229;break b;case 2:s:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1230;break b}J[a+1012>>2]= -1231;break b;case 8:break s;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1232;break b}J[a+1012>>2]=1233;break b;case 3:t:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1234;break b}J[a+1012>>2]=1235;break b;case 1:if(!K[a+328|0]){J[a+1012>>2]=1236;break b}J[a+1012>>2]=1237;break b;case 3:if(!K[a+328|0]){J[a+1012>>2]=1238;break b}J[a+1012>>2]=1239;break b;case 7:break t;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1240;break b}J[a+1012>>2]=1241;break b;case 4:u:switch(K[a+324|0]-8|0){case 0:if(!K[a+ -328|0]){J[a+1012>>2]=1242;break b}J[a+1012>>2]=1243;break b;case 8:break u;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1244;break b}J[a+1012>>2]=1245;break b;case 6:break q;default:break c}v:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1246;break b}J[a+1012>>2]=1247;break b;case 8:break v;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1248;break b}J[a+1012>>2]=1249;break b}Dc(a,1058,0,0);return 1058}i=1045;Dc(a,1045,0,0)}return i}return 0}Dc(a,1059,0,0);return 1059}function JY(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:{if((d|0)==1){if((c|0)!=4)break a;J[b>>2]=J[b>>2]>>1;return}h=c+d|0;f=(h<<2)+b|0;J[f>>2]=J[f-8>>2];b:{if((d|0)==2){i=(c<<2)+b|0;d=i+4|0;J[f+4>>2]=J[d>>2];J[f+8>>2]=J[i>>2];break b}J[f+4>>2]=J[f-12>>2];if((d|0)==3){d=(c<<2)+b|0;J[f+8>>2]=J[d+4>>2];d=d+8|0;break b}J[f+8>>2]=J[f-16>>2];if((d|0)==4){d=((c<<2)+b|0)+4|0;break b}d=f-20|0}J[f+12>>2]=J[d>>2];d=(c<<2)+b|0;J[d-4>>2]=J[d+4>>2];i=d-12|0;n=i,o=Izb(J[d+8>>2],J[d+12>>2],32),J[n>>2]=o;J[i+4>>2]= -fc;if((c|0)==4)J[b>>2]=J[b+32>>2];if(J[a+36>>2]){d=3;if(h>>>0<3)break a;c=h-3|0;if(c>>>0>=2){g=(c>>>1|0)+1&-2;f=0;while(1){a=(d<<2)+b|0;i=J[a+4>>2];J[a>>2]=J[a>>2]-((i+J[a-4>>2]|0)+2>>2);J[a+8>>2]=J[a+8>>2]-((i+J[a+12>>2]|0)+2>>2);d=d+4|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(c&2)){a=(d<<2)+b|0;J[a>>2]=J[a>>2]-((J[a-4>>2]+J[a+4>>2]|0)+2>>2)}if(h>>>0<5)break a;d=4;f=h-5|0;if(f>>>0>=2){i=(f>>>1|0)+1&-2;a=0;while(1){c=d<<2;h=c+b|0;J[h>>2]=J[h>>2]+(J[(c|4)+b>>2]+J[h-4>>2]>>1);h=(c|8)+b|0;J[h>> -2]=J[h>>2]+(J[(c|12)+b>>2]+J[h-4>>2]>>1);d=d+4|0;a=a+2|0;if((i|0)!=(a|0))continue;break}}if(f&2)break a;c=d<<2;a=c+b|0;J[a>>2]=J[a>>2]+(J[(c|4)+b>>2]+J[a-4>>2]>>1);return}c:{if((h|0)==-2)break c;c=1;a=h+1|0;d=(a>>>1|0)+1|0;i=d&3;if(a>>>0>=6){g=b+24|0;l=b+16|0;j=b+8|0;m=d&-4;f=0;while(1){a=c<<2;k=a+b|0;e=+J[k>>2]*1.230174104914001;d:{if(R(e)<2147483648){d=~~e;break d}d=-2147483648}J[k>>2]=d;k=a+j|0;e=+J[k>>2]*1.230174104914001;e:{if(R(e)<2147483648){d=~~e;break e}d=-2147483648}J[k>>2]=d;k=a+l|0;e= -+J[k>>2]*1.230174104914001;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}J[k>>2]=d;d=a+g|0;e=+J[d>>2]*1.230174104914001;g:{if(R(e)<2147483648){a=~~e;break g}a=-2147483648}J[d>>2]=a;c=c+8|0;f=f+4|0;if((m|0)!=(f|0))continue;break}}if(!i)break c;d=0;while(1){f=(c<<2)+b|0;e=+J[f>>2]*1.230174104914001;h:{if(R(e)<2147483648){a=~~e;break h}a=-2147483648}J[f>>2]=a;c=c+2|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}a=h+3|0;d=(a>>>1|0)+1|0;i=d&3;f=0;c=0;if(a>>>0>=6){l=d&-4;a=0;while(1){d=c<<2;j=d+b|0;e=+J[j>> -2]*.8128930661159609;i:{if(R(e)<2147483648){g=~~e;break i}g=-2147483648}J[j>>2]=g;j=(d|8)+b|0;e=+J[j>>2]*.8128930661159609;j:{if(R(e)<2147483648){g=~~e;break j}g=-2147483648}J[j>>2]=g;j=(d|16)+b|0;e=+J[j>>2]*.8128930661159609;k:{if(R(e)<2147483648){g=~~e;break k}g=-2147483648}J[j>>2]=g;g=(d|24)+b|0;e=+J[g>>2]*.8128930661159609;l:{if(R(e)<2147483648){d=~~e;break l}d=-2147483648}J[g>>2]=d;c=c+8|0;a=a+4|0;if((l|0)!=(a|0))continue;break}}if(i)while(1){d=(c<<2)+b|0;e=+J[d>>2]*.8128930661159609;m:{if(R(e)< -2147483648){a=~~e;break m}a=-2147483648}J[d>>2]=a;c=c+2|0;f=f+1|0;if((i|0)!=(f|0))continue;break}a=-1;n:{if((h|0)!=-2){d=1;c=h+1|0;if(c>>>0>=2){l=(c>>>1|0)+1&-2;f=0;while(1){a=(d<<2)+b|0;i=J[a+4>>2];e=+(i+J[a-4>>2]|0)*-.443506852043971+ +J[a>>2];o:{if(R(e)<2147483648){g=~~e;break o}g=-2147483648}J[a>>2]=g;e=+(i+J[a+12>>2]|0)*-.443506852043971+ +J[a+8>>2];p:{if(R(e)<2147483648){g=~~e;break p}g=-2147483648}J[a+8>>2]=g;d=d+4|0;f=f+2|0;if((l|0)!=(f|0))continue;break}}if(!(c&2)){a=(d<<2)+b|0;e=+(J[a+4>> -2]+J[a-4>>2]|0)*-.443506852043971+ +J[a>>2];q:{if(R(e)<2147483648){c=~~e;break q}c=-2147483648}J[a>>2]=c}a=h+1|0;if(a>>>0<2)break n}c=2;while(1){f=c<<2;d=f+b|0;e=+(J[(f|4)+b>>2]+J[d-4>>2]|0)*-.882911075530934+ +J[d>>2];r:{if(R(e)<2147483648){f=~~e;break r}f=-2147483648}J[d>>2]=f;c=c+2|0;if(c>>>0<=a>>>0)continue;break}}d=3;s:{if(h>>>0<3)break s;c=h-3|0;if(c>>>0>=2){l=(c>>>1|0)+1&-2;f=0;while(1){a=(d<<2)+b|0;i=J[a+4>>2];e=+(i+J[a-4>>2]|0)*.052980118572961+ +J[a>>2];t:{if(R(e)<2147483648){g=~~e;break t}g= --2147483648}J[a>>2]=g;e=+(i+J[a+12>>2]|0)*.052980118572961+ +J[a+8>>2];u:{if(R(e)<2147483648){g=~~e;break u}g=-2147483648}J[a+8>>2]=g;d=d+4|0;f=f+2|0;if((l|0)!=(f|0))continue;break}}if(c&2)break s;a=(d<<2)+b|0;e=+(J[a+4>>2]+J[a-4>>2]|0)*.052980118572961+ +J[a>>2];v:{if(R(e)<2147483648){c=~~e;break v}c=-2147483648}J[a>>2]=c}c=4;f=h-1|0;if(f>>>0<4)break a;while(1){d=c<<2;a=d+b|0;e=+(J[(d|4)+b>>2]+J[a-4>>2]|0)*1.586134342059924+ +J[a>>2];w:{if(R(e)<2147483648){d=~~e;break w}d=-2147483648}J[a>>2]=d;c= -c+2|0;if(f>>>0>=c>>>0)continue;break}}}function _Ma(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;a=wc(a,0,256);d=J[b>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+8>>2]=e-i<<3;J[a>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+12>>2]=d+P(e,-15137)>>10;J[a+4>>2]=d+P(f,6270)>>10;d=J[b+4>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+40>>2]=e-i<<3;J[a+32>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512| -0;J[a+44>>2]=d+P(e,-15137)>>10;J[a+36>>2]=d+P(f,6270)>>10;d=J[b+8>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+72>>2]=e-i<<3;J[a+64>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+76>>2]=d+P(e,-15137)>>10;J[a+68>>2]=d+P(f,6270)>>10;d=J[b+12>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+104>>2]=e-i<<3;J[a+96>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+108>>2]=d+P(e,-15137)>>10;J[a+100>>2]=d+P(f,6270)>>10;d=J[b+16>>2]+c|0; -f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+136>>2]=e-i<<3;J[a+128>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+140>>2]=d+P(e,-15137)>>10;J[a+132>>2]=d+P(f,6270)>>10;d=J[b+20>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+168>>2]=e-i<<3;J[a+160>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+172>>2]=d+P(e,-15137)>>10;J[a+164>>2]=d+P(f,6270)>>10;d=J[b+24>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];i=K[d+1|0];d=h+i|0;J[a+200>>2]= -e-d<<3;d=(d+e<<3)-4096|0;J[a+192>>2]=d;e=i-h|0;g=g-f|0;f=P(e+g|0,4433)+512|0;J[a+204>>2]=f+P(e,-15137)>>10;J[a+196>>2]=f+P(g,6270)>>10;b=J[b+28>>2]+c|0;c=K[b+3|0];f=K[b|0];g=c+f|0;e=K[b+2|0];h=K[b+1|0];b=e+h|0;J[a+232>>2]=g-b<<3;b=(b+g<<3)-4096|0;J[a+224>>2]=b;g=h-e|0;f=f-c|0;c=P(g+f|0,4433)+512|0;J[a+236>>2]=c+P(g,-15137)>>10;c=c+P(f,6270)>>10;J[a+228>>2]=c;g=J[a>>2];f=g+b|0;e=J[a+128>>2];h=J[a+96>>2];i=e+h|0;j=(f+i|0)+2|0;k=J[a+160>>2];l=J[a+64>>2];m=k+l|0;n=J[a+32>>2];o=n+d|0;p=m+o|0;J[a+128>> -2]=j-p>>2;J[a>>2]=j+p>>2;i=f-i|0;j=o-m|0;f=P(i+j|0,4433)+16384|0;J[a+192>>2]=f+P(j,-15137)>>15;J[a+64>>2]=f+P(i,6270)>>15;f=h-e|0;b=g-b|0;g=P(f+b|0,-7373);d=n-d|0;i=d+f|0;e=l-k|0;j=e+b|0;h=P(i+j|0,9633)+16384|0;k=g+P(f,2446)|0;f=h+P(i,-16069)|0;J[a+224>>2]=k+f>>15;h=h+P(j,-3196)|0;i=P(e,16819);e=P(d+e|0,-20995);J[a+160>>2]=h+(i+e|0)>>15;J[a+96>>2]=f+(e+P(d,25172)|0)>>15;J[a+32>>2]=h+(g+P(b,12299)|0)>>15;d=J[a+4>>2];b=d+c|0;f=J[a+132>>2];g=J[a+100>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+164>>2];j=J[a+68>> -2];k=i+j|0;l=J[a+196>>2];m=J[a+36>>2];n=l+m|0;o=k+n|0;J[a+132>>2]=h-o>>2;J[a+4>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=P(e+h|0,4433)+16384|0;J[a+196>>2]=b+P(h,-15137)>>15;J[a+68>>2]=b+P(e,6270)>>15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=P(h+i|0,9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+228>>2]=j+b>>15;e=e+P(i,-3196)|0;h=P(g,16819);g=P(f+g|0,-20995);J[a+164>>2]=e+(h+g|0)>>15;J[a+100>>2]=b+(g+P(f,25172)|0)>>15;J[a+36>>2]=e+(d+P(c,12299)|0)>>15;c=J[a+232>>2];d=J[a+8>>2];b= -c+d|0;f=J[a+136>>2];g=J[a+104>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+168>>2];j=J[a+72>>2];k=i+j|0;l=J[a+200>>2];m=J[a+40>>2];n=l+m|0;o=k+n|0;J[a+136>>2]=h-o>>2;J[a+8>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=P(e+h|0,4433)+16384|0;J[a+200>>2]=b+P(h,-15137)>>15;J[a+72>>2]=b+P(e,6270)>>15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=P(h+i|0,9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+232>>2]=j+b>>15;e=e+P(i,-3196)|0;h=P(g,16819);g=P(f+g|0,-20995);J[a+168>>2]=e+(h+g|0)>>15;J[a+104>>2]=b+(g+ -P(f,25172)|0)>>15;J[a+40>>2]=e+(d+P(c,12299)|0)>>15;c=J[a+236>>2];d=J[a+12>>2];b=c+d|0;f=J[a+140>>2];g=J[a+108>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+172>>2];j=J[a+76>>2];k=i+j|0;l=J[a+204>>2];m=J[a+44>>2];n=l+m|0;o=k+n|0;J[a+140>>2]=h-o>>2;J[a+12>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=P(e+h|0,4433)+16384|0;J[a+204>>2]=b+P(h,-15137)>>15;J[a+76>>2]=b+P(e,6270)>>15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=P(h+i|0,9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+236>>2]=j+b>>15;e=e+P(i,-3196)| -0;h=P(g,16819);g=P(f+g|0,-20995);J[a+172>>2]=e+(h+g|0)>>15;J[a+108>>2]=b+(g+P(f,25172)|0)>>15;J[a+44>>2]=e+(d+P(c,12299)|0)>>15}function uDa(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;b=bc+-64|0;bc=b;J[a>>2]=0;i=a;J[695492]=0;a=$(4,12)|0;e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((e|0)==1)break A;J[a+8>>2]=0;J[a>>2]=2381848;J[a+4>>2]=0;J[695492]=0;J[b+60>>2]=0;aa(4985,b+60|0,a|0)|0;a=J[695492];J[695492]=0;if((a| -0)==1)break A;a=J[c>>2];J[695492]=0;e=b+56|0;da(5005,e|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break z;if(!J[b+56>>2])break f;J[695492]=0;da(5006,J[b+60>>2],e|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;a=J[c>>2];J[695492]=0;c=J[b+60>>2];a=$(5007,a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break y;J[695492]=0;d=b+48|0;ca(5008,d|0,c|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break y;J[695492]=0;c=b+44|0;J[c>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break x;J[695492]=0;e=b+40|0;J[e>>2]=0;a=J[695492]; -J[695492]=0;if((a|0)==1)break w;J[695492]=0;g=b+36|0;J[g>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break v;J[695492]=0;f=aa(5009,d|0,-1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break u;a=Qc(f);if(a>>>0>=2147483632){J[695492]=0;_(1623,b+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break u;B()}B:{if(a>>>0<=10){H[b+35|0]=a;d=b+24|0;break B}J[695492]=0;h=(a|15)+1|0;d=$(4,h|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break u;J[b+24>>2]=d;J[b+28>>2]=a;J[b+32>>2]=h|-2147483648}k=Zc(d,f,a)+a|0,l=0,H[k|0]=l;J[695492]= -0;a=b+24|0;d=aa(3091,c|0,a|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break t;C:{if(d)break C;J[695492]=0;d=b+12|0;h=a;a=H[b+35|0];f=(a|0)<0;ca(1618,d|0,(f?J[b+24>>2]:h)|0,(f?J[b+28>>2]:a&255)|0);a=J[695492];J[695492]=0;if((a|0)==1)break s;J[695492]=0;aa(5010,c|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break r;if(H[b+23|0]>=0)break C;qc(J[b+12>>2])}J[695492]=0;a=$(4,48)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;J[b+12>>2]=a;J[b+16>>2]=10;J[b+20>>2]=-2147483636;d=J[594398];J[a+32>>2]=J[594397]; -J[a+36>>2]=d;d=J[594396];J[a+24>>2]=J[594395];J[a+28>>2]=d;d=J[594394];J[a+16>>2]=J[594393];J[a+20>>2]=d;d=J[594392];J[a+8>>2]=J[594391];J[a+12>>2]=d;d=J[594390];J[a>>2]=J[594389];J[a+4>>2]=d;J[a+40>>2]=0;J[695492]=0;ga(5011,c|0,b+12|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break p;if(H[b+23|0]<0)qc(J[b+12>>2]);J[695492]=0;a=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break o;J[b+12>>2]=a;J[b+16>>2]=6;J[b+20>>2]=-2147483640;d=J[594561];J[a+16>>2]=J[594560];J[a+20>>2]=d;d=J[594559];J[a+8>>2]= -J[594558];J[a+12>>2]=d;d=J[594557];J[a>>2]=J[594556];J[a+4>>2]=d;J[a+24>>2]=0;J[695492]=0;ga(5011,e|0,b+12|0,g|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break n;if(H[b+23|0]<0)qc(J[b+12>>2]);J[695492]=0;a=$(4,48)|0;d=J[695492];J[695492]=0;if((d|0)==1)break m;J[b+12>>2]=a;J[b+16>>2]=9;J[b+20>>2]=-2147483636;J[a+32>>2]=J[594668];d=J[594667];J[a+24>>2]=J[594666];J[a+28>>2]=d;d=J[594665];J[a+16>>2]=J[594664];J[a+20>>2]=d;d=J[594663];J[a+8>>2]=J[594662];J[a+12>>2]=d;d=J[594661];J[a>>2]=J[594660];J[a+4>> -2]=d;J[a+36>>2]=0;J[695492]=0;ga(5011,g|0,b+12|0,i|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;if(H[b+23|0]<0)qc(J[b+12>>2]);if(H[b+35|0]<0)qc(J[b+24>>2]);mh(g);mh(e);mh(c);sc(b+48|0);a=J[b+56>>2];J[b+56>>2]=0;if(!a)break f;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}break a}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;break g}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a= -Z()|0;break k}a=Z()|0;break k}a=Z()|0;if(H[b+23|0]>=0)break k;qc(J[b+12>>2]);break k}a=Z()|0;break k}a=Z()|0;if(H[b+23|0]>=0)break k;qc(J[b+12>>2]);break k}a=Z()|0;break k}a=Z()|0;if(H[b+23|0]>=0)break k;qc(J[b+12>>2]);break k}a=Z()|0;break k}a=Z()|0;if(H[b+23|0]>=0)break k;qc(J[b+12>>2])}if(H[b+35|0]>=0)break j;qc(J[b+24>>2])}mh(g)}mh(e)}mh(c)}sc(b+48|0);break d}a=J[b+60>>2];J[b+60>>2]=0;D:{if(!a)break D;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break D; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=b- -64|0;return}a=Z()|0}vc(b+56|0)}vc(b+60|0)}mh(i);ba(a|0);B()}ea(0)|0;yc();B()}function G1(a,b,c,d,e,f,g,h,i,j){var 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;m=bc-16|0;bc=m;a:{if(j>>>0>32)break a;while(1){v=(e+g)*.5;w=(d+f)*.5;b:{c:{d:{e:{f:{u=c;k=i-c;l=h-b;c=(d-h)*k-l*(e-i);y=R(c);s=f-h;t=g-i;x=s*k-l*t;z=R(x);switch(((y>1E-30)<<1|z>1E-30)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break f}}c= -l*l+k*k;g:{if(c==0){c=d-b;k=c*c;c=e-u;c=k+c*c;k=s*s+t*t;break g}s=1/c;c=s*((d-b)*l+k*(e-u));s=s*((f-b)*l+k*(g-u));if(!(!(c<1)|(!(s<1)|!(c>0))))if(s>0)break a;h:{if(c<=0){c=b-d;t=c*c;c=u-e;c=t+c*c;break h}if(c>=1){c=h-d;t=c*c;c=i-e;c=t+c*c;break h}t=c*l+b-d;c=c*k+u-e;c=t*t+c*c}if(s<=0){k=b-f;l=k*k;k=u-g;k=l+k*k;break g}if(s>=1){k=h-f;l=k*k;k=i-g;k=l+k*k;break g}l=s*l+b-f;k=s*k+u-g;k=l*l+k*k}l=O[a+8>>3];if(c>k){if(!(c>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];i:{if(j>>> -0>o>>>0){j=J[a+48>>2];break i}p=j+J[a+52>>2]|0;j=rc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){tc(j,r,n<<2);qc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=rc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=e;O[j>>3]=d;J[a+36>>2]=J[a+36>>2]+1;break a}if(!(k>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];j:{if(j>>>0>o>>>0){j=J[a+48>>2];break j}p=j+J[a+52>>2]|0;j=rc(p>>>0>1073741823?-1: -p<<2);r=J[a+48>>2];if(r){tc(j,r,n<<2);qc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=rc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=g;O[j>>3]=f;J[a+36>>2]=J[a+36>>2]+1;break a}if(!(x*x<=(l*l+k*k)*O[a+8>>3]))break b;c=O[a+16>>3];if(c<.01){n=J[a+40>>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];k:{if(j>>>0>o>>>0){j=J[a+48>>2];break k}p=j+J[a+52>>2]|0;j=rc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){tc(j, -r,n<<2);qc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=rc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=v;O[j>>3]=w;J[a+36>>2]=J[a+36>>2]+1;break a}k=c;c=R(Cf(i-g,h-f)-Cf(g-e,f-d));c=c>=3.141592653589793?6.283185307179586-c:c;if(k>c){O[m+8>>3]=e;O[m>>3]=d;a=a+36|0;ko(a,m);O[m+8>>3]=g;O[m>>3]=f;ko(a,m);break a}k=O[a+24>>3];if(k==0|!(c>k))break b;O[m+8>>3]=g;O[m>>3]=f;ko(a+36|0,m);break a}if(!(c*c<=(l*l+k*k)*O[a+ -8>>3]))break b;c=O[a+16>>3];if(c<.01){n=J[a+40>>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];l:{if(j>>>0>o>>>0){j=J[a+48>>2];break l}p=j+J[a+52>>2]|0;j=rc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){tc(j,r,n<<2);qc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=rc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=v;O[j>>3]=w;J[a+36>>2]=J[a+36>>2]+1;break a}k=c;c=R(Cf(g-e,f-d)-Cf(e-u,d-b));c=c>=3.141592653589793? -6.283185307179586-c:c;if(k>c){O[m+8>>3]=e;O[m>>3]=d;a=a+36|0;ko(a,m);O[m+8>>3]=g;O[m>>3]=f;ko(a,m);break a}k=O[a+24>>3];if(k==0|!(c>k))break b;O[m+8>>3]=e;O[m>>3]=d;ko(a+36|0,m);break a}c=y+z;if(!(c*c<=(l*l+k*k)*O[a+8>>3]))break b;k=O[a+16>>3];if(k<.01){n=J[a+40>>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];m:{if(j>>>0>o>>>0){j=J[a+48>>2];break m}p=j+J[a+52>>2]|0;j=rc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){tc(j,r,n<<2);qc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+ -44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=rc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=v;O[j>>3]=w;J[a+36>>2]=J[a+36>>2]+1;break a}l=Cf(g-e,f-d);c=R(l-Cf(e-u,d-b));s=c>=3.141592653589793?6.283185307179586-c:c;c=R(Cf(i-g,h-f)-l);l=c>=3.141592653589793?6.283185307179586-c:c;if(k>s+l){O[m+8>>3]=v;O[m>>3]=w;ko(a+36|0,m);break a}c=O[a+24>>3];if(c==0)break b;if(c>3]=e;O[m>>3]=d;ko(a+36|0,m);break a}if(!(c>3]=g;O[m>>3]=f;ko(a+36|0,m);break a}d= -(b+d)*.5;c=(d+w)*.5;k=(u+e)*.5;e=(k+v)*.5;s=b;t=d;x=c;l=e;f=(f+h)*.5;d=(w+f)*.5;b=(c+d)*.5;g=(g+i)*.5;e=(v+g)*.5;c=(l+e)*.5;j=j+1|0;G1(a,s,u,t,k,x,l,b,c,j);if((j|0)!=33)continue;break}}bc=m+16|0}function g1a(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,u=0,v=0,w=0,x=0;i=bc-16|0;bc=i;n=J[b+12>>2];f=J[b+8>>2];j=J[b+4>>2];o=J[a+4>>2];m=J[a+16>>2];J[i+12>>2]=m;d=J[o+24>>2];e=K[o+28|0]&16?192:188;g=J[j+44>>2];if(g){q=K[j+36|0];p=J[j+48>>2]}else p=0;s= -K[o+35|0];r=J[a+20>>2];t=K[d+201|0];v=d+e|0;k=(q<<24>>24)+n-((p<<24>>24)+f)|0;a:{if((k|0)<=0)break a;e=K[n-1|0];b:{if((e&192)!=128)break b;if((k|0)<2)break a;h=1;e=K[n-2|0];if((e&192)!=128)break b;if((k|0)<3)break a;h=2;e=K[n-3|0];if((e&192)==128)break a}k=(e>>>0>191)+(e>>>0>223)|0;c:{if(e>>>0<=239)break c;k=0;if(e>>>0>253)break c;k=(e>>>0>251)+(e>>>0>247?4:3)|0}if(k>>>0<=h>>>0)break a;n=(h^-1)+n|0}s=s?2048:3072;u=d+60|0;w=t&1;x=J[d+208>>2];t=J[d+52>>2];k=J[v>>2];h=r-m|0;if((h|0)>0?g:0){H[j+36|0]= -0;J[j+44>>2]=0;l=q;d=1}else d=0;d:{e:{f:while(1){g:{h:{if(!d){d=f;if(n>>>0<=d>>>0)break g;while(1){i:{j:{if((h|0)>0){f=d+1|0;e=H[d|0];g=e&255;k:{if((e|0)>=0){if(!(x>>>(g>>>2)&1))break k;d=J[i+12>>2];J[i+12>>2]=d+1;H[d|0]=e;d=f;break i}l:{m:{n:{o:{p:{if(e>>>0<=4294967263){if(e>>>0<4294967234)break n;m=(K[f|0]^-128)&255;if(m>>>0>63)break n;d=d+2|0;r=g&31;e=L[(k+(L[u+(r<<1)>>1]<<1)|0)+(m<<1)>>1];if(s>>>0>e>>>0)break p;f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=e;break i}if((e|0)!=-32)break o;r=K[f|0]^128;if((r& -224)!=32)break n;m=(K[d+2|0]^-128)&255;if(m>>>0>63)break n;d=d+3|0;e=L[(k+(L[u+(r<<1)>>1]<<1)|0)+(m<<1)>>1];if(s>>>0<=e>>>0)break j}f=d;g=r<<6|m;break h}if(e>>>0>4294967279)break m}d=(e>>>0>4294967231)+(e>>>0>4294967263)|0;break l}d=0;if(e>>>0>4294967293)break l;d=(e>>>0>4294967291)+(e>>>0>4294967287?4:3)|0}l=1;p=d+1|0;q=0;d=1;continue f}e=L[(k+(L[u>>1]<<1)|0)+(g<<1)>>1];break h}J[c>>2]=15;break e}f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=e}h=h-1|0;if(d>>>0>>0)continue;break}break g}q:{r:{s:{t:{e=p<< -24>>24;u:{if((e|0)<=l<<24>>24)break u;d=J[b+12>>2];while(1){if(d>>>0<=f>>>0)break t;m=K[f|0];if((m&192)!=128)break u;f=f+1|0;g=m+(g<<6)|0;l=l+1<<24>>24;if((e|0)>(l|0))continue;break}l=p}d=g;e=l<<24>>24;g=(l&255)!=(p&255);if(g|(l&254)!=2)break s;g=d;d=e<<2;g=g-J[d+735872>>2]|0;if((g|0)>2]|g-57344>>>0>4294965247)break q;d=g;e=d>>10;break r}d=q<<24>>24;c=l<<24>>24;f=(d-c|0)+f|0;if((c|0)>(d|0))while(1){H[(d+j|0)+37|0]=K[f|0];f=f+1|0;d=d+1|0;if((c|0)>(d|0))continue;break}J[j+48>>2]=e;H[j+36| -0]=l;J[j+44>>2]=g;J[b+8>>2]=f;J[a+16>>2]=J[i+12>>2];break d}if((l&255)!=4|g|d-63512704>>>0>1048575)break q;g=d-63447168|0;e=0;if(!w)break h;e=g>>>10|0}e=L[(k+((d&15)<<1)|0)+(L[(t+(g>>>3&126)|0)+(L[t+(e<<1)>>1]<<1)>>1]<<1)>>1];break h}d=q<<24>>24;f=(d-e|0)+f|0;v:{if((d|0)>=(e|0))break v;p=e+(d^-1)|0;h=e-d&3;if(h){g=0;while(1){H[(d+j|0)+37|0]=K[f|0];d=d+1|0;f=f+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}}if(p>>>0<3)break v;while(1){g=d+j|0;H[g+37|0]=K[f|0];H[g+38|0]=K[f+1|0];H[g+39|0]=K[f+2|0];H[g+ -40|0]=K[f+3|0];f=f+4|0;d=d+4|0;if((e|0)!=(d|0))continue;break}}H[j+36|0]=l;J[b+8>>2]=f;J[a+16>>2]=J[i+12>>2];J[c>>2]=12;break d}w:{if((e&65535)>>>0>=s>>>0){d=J[i+12>>2];J[i+12>>2]=d+1;H[d|0]=e;h=h-1|0;break w}J[i+8>>2]=735900;d=Mt(o,J[J[o+24>>2]+224>>2],g,i+8|0,735900,i+12|0,J[i+12>>2]+h|0,0,-1,H[a+2|0],c);if(J[c>>2]>0){J[o+56>>2]=d;d=f;break g}if(J[o+180>>2]>=0){J[c>>2]=-127;d=f;break g}h=J[a+20>>2]-J[i+12>>2]|0}d=0;continue}break}if(J[c>>2]>0|J[o+180>>2]>=0)break e;c=J[b+12>>2];if(c>>>0<=d>>>0)break e; -e=K[d|0];H[j+37|0]=e;f=1;g=(e>>>0>191)+(e>>>0>223)|0;x:{if(e>>>0<=239)break x;g=0;if(e>>>0>253)break x;g=(e>>>0>251)+(e>>>0>247?4:3)|0}p=g+1|0;g=d+1|0;y:{if(c>>>0<=g>>>0){c=g;break y}f=c+(d^-1)|0;l=f&3;z:{if((c-d|0)-2>>>0<3){f=1;break z}q=f&-4;h=0;d=j+37|0;f=1;while(1){n=K[g|0];H[d+(f<<24>>24)|0]=n;o=K[g+1|0];H[d+(f+1<<24>>24)|0]=o;k=K[g+2|0];H[d+(f+2<<24>>24)|0]=k;m=K[g+3|0];H[d+(f+3<<24>>24)|0]=m;e=m+((o+((e<<12)+(n<<6)|0)<<12)+(k<<6)|0)|0;g=g+4|0;f=f+4|0;h=h+4|0;if((q|0)!=(h|0))continue;break}}if(l){d= -0;while(1){h=K[g|0];H[((f<<24>>24)+j|0)+37|0]=h;g=g+1|0;f=f+1|0;e=h+(e<<6)|0;d=d+1|0;if((l|0)!=(d|0))continue;break}}}d=c;J[j+48>>2]=p;H[j+36|0]=f;J[j+44>>2]=e}J[b+8>>2]=d;J[a+16>>2]=J[i+12>>2]}bc=i+16|0}function vt(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=bc-32|0;bc=h;f=J[a+36>>2];d=J[f+16>>2];a:{if(K[d|0]!=60|K[d+1|0]!=63)break a;k=J[a+172>>2];J[a+172>>2]=2;J[a+200>>2]=J[a+200>>2]+2;J[f+16>>2]=d+2;J[f+32>>2]=J[f+32>>2]+2;c=f;d=K[d+2|0];if((d|0)==37){Od(a);c=J[a+36>>2];d=K[J[c+16>>2]]}b:{if(d& -255)break b;if((Cd(c)|0)>0)break b;while(1){e=J[a+40>>2];if((e|0)<2)break b;c:{d:{e:{if(!J[689531]){g=e-1|0;J[a+40>>2]=g;c=J[a+48>>2];break e}J[h+16>>2]=e;c=0;gc[J[659549]](J[689514],36109,h+16|0);e=J[a+40>>2];if((e|0)<=0)break c;g=e-1|0;J[a+40>>2]=g;c=J[a+48>>2];j=0;d=0;if((e|0)==1)break d}j=J[((e<<2)+c|0)-8>>2];d=g}J[a+36>>2]=j;d=(d<<2)+c|0;c=J[d>>2];J[d>>2]=0}dh(c);c=J[a+36>>2];if(K[J[c+16>>2]])break b;if((Cd(c)|0)<=0)continue;break}}f:{if(J[a+292>>2])break f;c=J[a+36>>2];d=J[c+16>>2];if((d-J[c+ -12>>2]|0)<501|(J[c+20>>2]-d|0)>499)break f;Pg(a)}c=bc+-64|0;bc=c;b=a;a=Uh(b);g:{if(!a)break g;h:{i:{g=K[a|0];j:{if((g|32)!=120)break j;i=K[a+1|0];if((i|32)!=109)break j;e=K[a+2|0];if((e|32)!=108)break j;d=K[a+3|0];k:{if(!((g|0)!=120|(i|0)!=109|(e|0)!=108)){if(d)break k;fe(b,64,30939);break g}if(!d)break i}if(Eg(a,3413))break g;if(Eg(a,9912))break g;co(b,64,37752,0)}if(!zp(a,58))break g;if(!b)break h;if(J[b+172>>2]==-1?J[b+212>>2]:0)break g;J[b+84>>2]=205;J[c+20>>2]=0;J[c+24>>2]=0;J[c+16>>2]=a;Cc(0, -0,0,b,0,3,205,2,a,0,0,0,37522,c+16|0);J[b+356>>2]=0;break g}if(!b){J[c+32>>2]=14084;Cc(0,0,0,0,0,1,64,3,0,0,0,0,32890,c+32|0);break g}if(J[b+172>>2]==-1?J[b+212>>2]:0)break g;J[b+84>>2]=64;J[c+48>>2]=14084;Cc(0,0,0,b,0,1,64,3,0,0,0,0,32890,c+48|0);J[b+12>>2]=0;if(J[b+288>>2])break g;J[b+212>>2]=1;break g}J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=a;Cc(0,0,0,0,0,3,205,2,a,0,0,0,37522,c)}bc=c- -64|0;l:{m:{if(a){i=a;a=J[b+36>>2];e=J[a+16>>2];if(!(K[e|0]!=63|K[e+1|0]!=62)){if((a|0)!=(f|0)){fe(b,90,30401);f=J[b+ -36>>2];e=J[f+16>>2]}J[b+200>>2]=J[b+200>>2]+2;J[f+16>>2]=e+2;J[f+32>>2]=J[f+32>>2]+2;a=K[e+2|0];if((a|0)==37){Od(b);f=J[b+36>>2];a=K[J[f+16>>2]]}n:{if(a&255)break n;if((Cd(f)|0)>0)break n;ze(b)}a=J[b>>2];o:{if(J[b+212>>2]|!a)break o;a=J[a+76>>2];if(!a)break o;gc[a|0](J[b+4>>2],i,0)}if(J[b+172>>2]!=-1)break l;break a}a=gc[J[659450]](100)|0;if(!a){ke(b,0);break l}c=K[J[J[b+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))Nf(b,65,35192,i);Ud(b);g=100;e=Ff(b,h+28|0);j=0;c=0;while(1){p:{q:{r:{if((e|0)<= -255){if((e|0)>31)break r;d=0;if(!(1<>>0>13)break q;break p}if(e-65536>>>0<1048576|e>>>0<55296|e-57344>>>0<8190)break p;d=0;break q}if((e|0)!=63|K[J[J[b+36>>2]+16>>2]+1|0]!=62)break p;d=1}if(!(K[b+362|0]&8|c>>>0<15000001)){Nf(b,47,15125,i);gc[J[659451]](a);break l}H[a+c|0]=0;s:{if(!d){Nf(b,47,37307,i);break s}if(J[b+36>>2]!=(f|0)){fe(b,65,30401);f=J[b+36>>2]}J[b+200>>2]=J[b+200>>2]+2;c=J[f+16>>2];J[f+16>>2]=c+2;J[f+32>>2]=J[f+32>>2]+2;c=K[c+2|0];if((c|0)==37){Od(b);f=J[b+36>>2];c=K[J[f+ -16>>2]]}t:{if(c&255)break t;if((Cd(f)|0)>0)break t;ze(b)}c=J[b>>2];if(J[b+212>>2]|!c)break s;c=J[c+76>>2];if(!c)break s;gc[c|0](J[b+4>>2],i,a)}gc[J[659451]](a);break m}u:{if(c+5>>>0>>0){d=a;break u}g=g<<1;d=gc[J[659452]](a,g)|0;if(d)break u;ke(b,0);gc[J[659451]](a);break l}a=d;v:{if((j|0)<50){j=j+1|0;break v}w:{if(J[b+292>>2])break w;d=J[b+36>>2];if((J[d+20>>2]-J[d+16>>2]|0)>249)break w;Hd(b)}if(J[b+172>>2]==-1){gc[J[659451]](a);break a}j=0;if(K[b+362|0]&8|c>>>0<15000001)break v;Nf(b,47,15125, -i);gc[J[659451]](a);break l}x:{if(J[h+28>>2]==1){H[a+c|0]=e;c=c+1|0;break x}c=Pi(a+c|0,e)+c|0}d=J[b+36>>2];e=J[d+16>>2];y:{if(K[e|0]==10){J[d+32>>2]=1;J[d+28>>2]=J[d+28>>2]+1;break y}J[d+32>>2]=J[d+32>>2]+1}l=d;d=e+J[h+28>>2]|0;J[l+16>>2]=d;if(K[d|0]==37)Od(b);e=Ff(b,h+28|0);if(e)continue;z:{if(J[b+292>>2])break z;d=J[b+36>>2];e=J[d+16>>2];if(!((e-J[d+12>>2]|0)<501|(J[d+20>>2]-e|0)>499)){Pg(b);if(J[b+292>>2])break z}d=J[b+36>>2];if((J[d+20>>2]-J[d+16>>2]|0)>249)break z;Hd(b)}e=Ff(b,h+28|0);continue}}if(J[b+ -172>>2]==-1?J[b+212>>2]:0)break a;J[b+84>>2]=46;J[h>>2]=14009;Cc(0,0,0,b,0,1,46,3,0,0,0,0,32890,h);J[b+12>>2]=0;if(J[b+288>>2])break m;J[b+212>>2]=1}if(J[b+172>>2]==-1)break a}J[b+172>>2]=k}bc=h+32|0}function jp(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;c=bc+-64|0;while(1){g=d<<2;b=g+c|0;g=a+g|0;J[b>>2]=K[g+16|0]|K[g+17|0]<<8|(K[g+18|0]<<16|K[g+19|0]<<24);d=d+1|0;if((d|0)!=16)continue;break}A=J[a>>2];l=J[a+8>>2];z=J[a+ -12>>2];g=J[a+4>>2];h=J[c+60>>2];i=J[c+56>>2];m=J[c+52>>2];j=J[c+48>>2];n=J[c+44>>2];o=J[c+40>>2];p=J[c+36>>2];q=J[c+32>>2];k=J[c+28>>2];r=J[c+24>>2];s=J[c+20>>2];t=J[c+16>>2];u=J[c+12>>2];v=J[c+8>>2];w=J[c+4>>2];x=J[c>>2];J[a+80>>2]=0;c=Hzb(((((g&l)+A|0)+((g^-1)&z)|0)+x|0)-680876936|0,7)+g|0;d=Hzb((((w+z|0)+(c&g)|0)+((c^-1)&l)|0)-389564586|0,12)+c|0;b=Hzb((((l+v|0)+(c&d)|0)+(g&(d^-1))|0)+606105819|0,17)+d|0;e=Hzb((((g+u|0)+(d&b)|0)+(c&(b^-1))|0)-1044525330|0,22)+b|0;c=Hzb((((c+t|0)+(b&e)|0)+(d&(e^ --1))|0)-176418897|0,7)+e|0;d=Hzb((((d+s|0)+(c&e)|0)+(b&(c^-1))|0)+1200080426|0,12)+c|0;b=Hzb((((b+r|0)+(c&d)|0)+(e&(d^-1))|0)-1473231341|0,17)+d|0;e=Hzb((((e+k|0)+(d&b)|0)+(c&(b^-1))|0)-45705983|0,22)+b|0;f=d+p|0;d=Hzb((((c+q|0)+(b&e)|0)+(d&(e^-1))|0)+1770035416|0,7)+e|0;f=Hzb(((f+(d&e)|0)+(b&(d^-1))|0)-1958414417|0,12)+d|0;b=Hzb((((b+o|0)+(d&f)|0)+(e&(f^-1))|0)-42063|0,17)+f|0;c=Hzb((((e+n|0)+(f&b)|0)+(d&(b^-1))|0)-1990404162|0,22)+b|0;d=Hzb((((d+j|0)+(c&b)|0)+(f&(c^-1))|0)+1804603682|0,7)+c|0;e= -Hzb((((f+m|0)+(d&c)|0)+(b&(d^-1))|0)-40341101|0,12)+d|0;f=e^-1;b=Hzb((((b+i|0)+(d&e)|0)+(c&f)|0)-1502002290|0,17)+e|0;y=b^-1;B=(d+w|0)+(b&f)|0;f=Hzb((((c+h|0)+(b&e)|0)+(d&y)|0)+1236535329|0,22)+b|0;c=Hzb((B+(f&e)|0)-165796510|0,5)+f|0;d=(b+n|0)+(c&(f^-1))|0;b=Hzb((((e+r|0)+(f&y)|0)+(c&b)|0)-1069501632|0,9)+c|0;d=Hzb((d+(b&f)|0)+643717713|0,14)+b|0;e=Hzb((((f+x|0)+(b&(c^-1))|0)+(c&d)|0)-373897302|0,20)+d|0;c=Hzb((((c+s|0)+(d&(b^-1))|0)+(e&b)|0)-701558691|0,5)+e|0;b=Hzb((((b+o|0)+(e&(d^-1))|0)+(c&d)| -0)+38016083|0,9)+c|0;d=Hzb((((d+h|0)+(c&(e^-1))|0)+(b&e)|0)-660478335|0,14)+b|0;e=Hzb((((e+t|0)+(b&(c^-1))|0)+(c&d)|0)-405537848|0,20)+d|0;c=Hzb((((c+p|0)+(d&(b^-1))|0)+(e&b)|0)+568446438|0,5)+e|0;b=Hzb((((b+i|0)+(e&(d^-1))|0)+(c&d)|0)-1019803690|0,9)+c|0;d=Hzb((((d+u|0)+(c&(e^-1))|0)+(b&e)|0)-187363961|0,14)+b|0;e=Hzb((((e+q|0)+(b&(c^-1))|0)+(c&d)|0)+1163531501|0,20)+d|0;c=Hzb((((c+m|0)+(d&(b^-1))|0)+(e&b)|0)-1444681467|0,5)+e|0;f=(d+k|0)+(c&(e^-1))|0;d=Hzb((((b+v|0)+(e&(d^-1))|0)+(c&d)|0)-51403784| -0,9)+c|0;b=Hzb((f+(d&e)|0)+1735328473|0,14)+d|0;e=Hzb((((e+j|0)+(d&(c^-1))|0)+(c&b)|0)-1926607734|0,20)+b|0;f=e^b;c=Hzb(((c+s|0)+(f^d)|0)-378558|0,4)+e|0;y=b+n|0;b=Hzb(((d+q|0)+(c^f)|0)-2022574463|0,11)+c|0;d=Hzb((y+(b^(c^e))|0)+1839030562|0,16)+b|0;e=Hzb(((e+i|0)+(d^(c^b))|0)-35309556|0,23)+d|0;c=Hzb(((c+w|0)+(e^(d^b))|0)-1530992060|0,4)+e|0;b=Hzb(((b+t|0)+(c^(d^e))|0)+1272893353|0,11)+c|0;d=Hzb(((d+k|0)+(b^(c^e))|0)-155497632|0,16)+b|0;e=Hzb(((e+o|0)+(d^(c^b))|0)-1094730640|0,23)+d|0;c=Hzb(((c+ -m|0)+(e^(d^b))|0)+681279174|0,4)+e|0;b=Hzb(((b+x|0)+(c^(d^e))|0)-358537222|0,11)+c|0;d=Hzb(((d+u|0)+(b^(c^e))|0)-722521979|0,16)+b|0;e=Hzb(((e+r|0)+(d^(c^b))|0)+76029189|0,23)+d|0;c=Hzb(((c+p|0)+(e^(d^b))|0)-640364487|0,4)+e|0;b=Hzb(((b+j|0)+(c^(d^e))|0)-421815835|0,11)+c|0;d=Hzb(((d+h|0)+(b^(c^e))|0)+530742520|0,16)+b|0;f=b+k|0;k=b^-1;b=Hzb(((e+v|0)+(d^(c^b))|0)-995338651|0,23)+d|0;e=Hzb(((c+x|0)+(d^(k|b))|0)-198630844|0,6)+b|0;c=Hzb((f+((e|d^-1)^b)|0)+1126891415|0,10)+e|0;f=e+j|0;j=b+s|0;b=Hzb(((d+ -i|0)+(e^(c|b^-1))|0)-1416354905|0,15)+c|0;e=Hzb((j+(c^(b|e^-1))|0)-57434055|0,21)+b|0;d=Hzb((f+((e|c^-1)^b)|0)+1700485571|0,6)+e|0;f=e+w|0;i=b+o|0;b=Hzb(((c+u|0)+(e^(d|b^-1))|0)-1894986606|0,10)+d|0;e=Hzb((i+(d^(b|e^-1))|0)-1051523|0,15)+b|0;c=Hzb((f+((e|d^-1)^b)|0)-2054922799|0,21)+e|0;f=e+r|0;h=b+h|0;b=Hzb(((d+q|0)+(e^(c|b^-1))|0)+1873313359|0,6)+c|0;e=Hzb((h+(c^(b|e^-1))|0)-30611744|0,10)+b|0;d=Hzb((f+((e|c^-1)^b)|0)-1560198380|0,15)+e|0;c=Hzb(((c+m|0)+(e^(d|b^-1))|0)+1309151649|0,21)+d|0;b=Hzb(((b+ -t|0)+(d^(c|e^-1))|0)-145523070|0,6)+c|0;J[a>>2]=b+A;e=Hzb(((e+n|0)+(c^(b|d^-1))|0)-1120210379|0,10)+b|0;J[a+12>>2]=e+z;d=Hzb(((d+v|0)+(b^(e|c^-1))|0)+718787259|0,15)+e|0;J[a+8>>2]=d+l;C=a,D=Hzb(((c+p|0)+(e^(d|b^-1))|0)-343485551|0,21)+(d+g|0)|0,J[C+4>>2]=D}function KB(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;h=bc-16|0;bc=h;a:{if(!a)break a;e=J[a+216>>2];if(!e){c=Qi(b);if(c)break a}b:{c:{d:{e:{c=J[a+8>>2];f:{if(!c)break f;if(J[c+40>>2]==1){if((e|0)==2){J[c+40>>2]=0;e=J[c+ -44>>2];g:{h:{if(!e)break h;e=J[e+48>>2];if(!e)break h;e=tf(e,b,0,0);if(e)break g}e=J[c+48>>2];i:{if(!e)break i;e=J[e+48>>2];if(!e)break i;e=tf(e,b,0,0);if(e)break g}e=Qi(b)}J[c+40>>2]=1;break c}d=J[c+44>>2];j:{if(d){e=J[d+48>>2];if(e){e=tf(e,b,0,0);if(e)break b}e=Qi(b);if(e)break b;J[c+40>>2]=0;if(!d)break j;e=J[d+48>>2];if(!e)break j;e=tf(e,b,0,0);if(!e)break j;break e}e=Qi(b);if(e)break b;J[c+40>>2]=0}e=J[c+48>>2];k:{if(!e)break k;e=J[e+48>>2];if(!e)break k;e=tf(e,b,0,0);if(e)break e}e=Qi(b);if(e)break e; -e=0;break d}e=J[c+44>>2];l:{if(!e)break l;e=J[e+48>>2];if(!e)break l;e=tf(e,b,0,0);if(e)break b}c=J[c+48>>2];if(!c)break f;c=J[c+48>>2];if(!c)break f;e=tf(c,b,0,0);if(e)break b}e=Qi(b);break c}c=bc-16|0;bc=c;m:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break m;J[a+84>>2]=103;J[c+4>>2]=0;J[c>>2]=b;Cc(0,0,0,a,0,1,103,3,b,0,0,0,31465,c);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break m;J[a+212>>2]=1}bc=c+16|0;c=J[a+8>>2]}J[c+40>>2]=1}c=0;if(!e)break a}n:{if(J[e+12>>2]|!(J[a+104>>2]|J[a+16>>2])|J[e+48>>2]!=2)break n; -l=J[a+440>>2];c=J[e+64>>2];f=J[e+52>>2];k=h+12|0;i=bc-16|0;bc=i;o:{if(!a){d=-1;break o}j=J[a+248>>2];if((j|0)>=41){d=89;if(!(J[a+360>>2]&524288)|j>>>0>1024)break o}if(k)J[k>>2]=0;if(!(c|f)){d=-1;break o}if(!J[a+8>>2]){d=-1;break o}c=k$(c,f,a);if(!c){d=-1;break o}j=J[c>>2];J[c>>2]=J[a>>2];mw(c);f=wp(28555);if(!f){yj(c);d=-1;break o}J[f+92>>2]=64;d=J[a+8>>2];g=J[d+80>>2];if(g){J[f+80>>2]=g;YJ(g);d=J[a+8>>2]}J[f+44>>2]=J[d+44>>2];J[f+48>>2]=J[d+48>>2];d=J[d+72>>2];if(d)m=f,n=$e(d),J[m+72>>2]=n;d=zB(f, -2297);if(!d){J[c>>2]=j;yj(c);J[f+44>>2]=0;J[f+48>>2]=0;cr(f);d=-1;break o}Ug(f,d);ow(c,J[f+12>>2]);d=J[a+8>>2];p:{if(!d){J[c+8>>2]=f;break p}J[c+8>>2]=d;J[J[f+12>>2]+32>>2]=J[a+8>>2]}q:{if(J[c+292>>2])break q;d=J[c+36>>2];if((J[d+20>>2]-J[d+16>>2]|0)>249)break q;Hd(c)}g=J[c+36>>2];d=J[g+16>>2];r:{if((J[g+20>>2]-d|0)<4)break r;H[i+12|0]=K[d|0];H[i+13|0]=K[d+1|0];H[i+14|0]=K[d+2|0];H[i+15|0]=K[d+3|0];d=gr(i+12|0,4);if(!d)break r;dr(c,d)}d=J[J[c+36>>2]+16>>2];s:{if(K[d|0]!=60|K[d+1|0]!=63|(K[d+2|0]!= -120|K[d+3|0]!=109))break s;if(K[d+4|0]!=108)break s;d=K[d+5|0]-9|0;if(d>>>0>23|!(1<>2],28555))break s;if(Eg(J[J[c+36>>2]+48>>2],28555))break s;fe(c,109,30512)}d=J[a+4>>2];J[c+172>>2]=7;J[c+4>>2]=(a|0)==(d|0)?c:d;d=J[a+104>>2];J[c+104>>2]=d;J[c+100>>2]=J[a+100>>2];J[c+276>>2]=J[a+276>>2];J[c+248>>2]=J[a+248>>2]+1;J[c+16>>2]=J[a+16>>2];t:{if(!d){g=0;d=0;break t}g=J[a+112>>2];d=J[a+116>>2]}J[c+120>>2]=0;J[c+124>>2]=0;J[c+116>>2]=d;J[c+112>>2]=g;J[c+128>>2]=0;J[c+ -132>>2]=0;d=J[c+296>>2];if(d)dn(d);d=J[a+296>>2];J[c+296>>2]=d;m=c,n=le(d,9668,3),J[m+312>>2]=n;m=c,n=le(J[c+296>>2],4071,5),J[m+316>>2]=n;m=c,n=le(J[c+296>>2],14838,36),J[m+320>>2]=n;J[c+364>>2]=J[a+364>>2];J[c+348>>2]=J[a+348>>2];J[c+352>>2]=J[a+352>>2];J[c+280>>2]=J[a+280>>2];jB(c);J[a+104>>2]=J[c+104>>2];J[a+100>>2]=J[c+100>>2];g=J[J[c+36>>2]+16>>2];d=K[g|0];if(d){u:{if((d|0)==60){d=85;if(K[g+1|0]==47)break u}d=86}Pe(c,d,0)}if(J[c+52>>2]!=J[f+12>>2])Pe(c,85,0);v:{if(!J[c+12>>2]){d=J[c+84>>2]; -d=d>>>0<=1?1:d;break v}d=0;if(!k)break v;d=J[J[f+12>>2]+12>>2];J[k>>2]=d;if(d)while(1){J[d+20>>2]=0;d=J[d+24>>2];if(d)continue;break}J[J[f+12>>2]+12>>2]=0;d=0}J[c+348>>2]=0;J[c+352>>2]=0;J[c+296>>2]=0;J[c>>2]=j;yj(c);J[f+44>>2]=0;J[f+48>>2]=0;cr(f)}bc=i+16|0;w:{if(!d){g0(e,J[h+12>>2]);J[e+68>>2]=1;if(J[e+72>>2])break n;b=(J[a+440>>2]-l<<1)+2|0;J[e+72>>2]=b;a=J[e+40>>2];if(!a)break n;c=K[a|0];if(!c)break n;while(1){if((c&255)==60)break w;c=K[a+1|0];a=a+1|0;if(c)continue;break}break n}x:{if(J[a+172>> -2]==-1?J[a+212>>2]:0)break x;J[a+84>>2]=104;J[h+4>>2]=0;J[h>>2]=b;Cc(0,0,0,a,0,1,104,3,b,0,0,0,32206,h);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break x;J[a+212>>2]=1}c=0;J[a+104>>2]=0;break a}J[e+72>>2]=b|1}c=e}bc=h+16|0;return c|0}function q8a(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,y=0,z=0,A=0,C=0,D=0,E=Q(0),F=Q(0),G=0,S=0,T=0,U=0;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){g=a+1668|0;i=a+1700|0;if(!(!K[i+1160|0]|J[i+ -1172>>2]!=2)){Fe(i+100|0,i,J[i+1164>>2],J[i+1168>>2]);J[i+1172>>2]=3}Pd(i);e:{if(!J[i+12>>2])break e;J[i+1176>>2]=J[i+84>>2];d=J[g+20>>2];f=J[i+80>>2];a=(J[i+88>>2]-f|0)+2|0;f:{if(a>>>0<=M[g+24>>2])break f;if(d)qc(d);J[g+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[g+20>>2]=d;if((a|0)==J[g+16>>2])break f;j=J[g+12>>2];if(j){qc(j);d=J[g+20>>2]}J[g+16>>2]=a;T=g,U=rc(a),J[T+12>>2]=U}J[g+28>>2]=d;J[g>>2]=f;J[g+4>>2]=2147483632;a=J[b+8>>2];if(J[a>>2]!=1){J[a>>2]=1;wc(a+2168|0,0,513)}if(!lg(i,g))break e;while(1){r= -J[b>>2];s=J[b+4>>2];e=J[b+8>>2];p=J[g+20>>2];x=J[g+28>>2]-p>>3;v=J[g+8>>2];z=+(v|0);while(1){A=J[p+12>>2];a=I[p+8>>1];d=I[p+10>>1];f=d>>31;g:{h:{m=(d^f)-f|0;f=J[s+4>>2];if(m>>>0>f>>>0){j=J[s>>2];d=m+255&130816;if((d|0)==(f|0))break h;if(j)qc(j);J[s+4>>2]=d;j=rc(d<<2);J[s>>2]=j;break h}j=J[s>>2];if(d)break h;d=0;break g}y=0;f=j;t=a;while(1){h=+(t|0);u=O[e+24>>3]*(O[e+88>>3]+(h*O[e+56>>3]+O[e+72>>3]*z))+O[e+32>>3]*(O[e+96>>3]+(h*O[e+64>>3]+O[e+80>>3]*z));h=R(O[e+40>>3]+u);u=R(u+O[e+48>>3]);C=h>u?1: -0;h=(h>=1?C:u>=1?C:h)*512+.5;i:{if(R(h)<2147483648){k=~~h;break i}k=-2147483648}D=(k+e|0)+2168|0;if(!K[D|0]){l=J[e+112>>2];j:{if((l|0)>=2){h=+(k|0)*.001953125;n=J[e+108>>2];d=1;while(1){o=d<<2;E=N[o+n>>2];if(h<+E){if(!(!(h<+N[n>>2])|(d|0)!=1)){d=J[e+104>>2];J[((k<<2)+e|0)+116>>2]=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);break j}d=J[e+104>>2];l=d+o|0;q=d;d=o-4|0;o=q+d|0;w=K[o+3|0];G=K[l+3|0]-w|0;S=(k<<2)+e|0;q=K[o|0];F=N[d+n>>2];h=(h-+F)/+Q(E-F)*256+.5;k:{if(h<4294967296&h>=0){d=~~h>>>0;break k}d= -0}q=q+(P(d,K[l|0]-q|0)>>>8|0)&255;n=K[o+2|0];n=(P(d,G)>>>8|0)+w<<24|((P(d,K[l+2|0]-n|0)>>>8|0)+n&255)<<16;w=K[l+1|0];l=K[o+1|0];J[S+116>>2]=q|(n|((P(d,w-l|0)>>>8|0)+l&255)<<8);break j}d=d+1|0;if((l|0)!=(d|0))continue;break}}if((l|0)<=0)break j;d=J[e+104>>2];if(!d)break j;d=(d+(l<<2)|0)-4|0;J[((k<<2)+e|0)+116>>2]=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24)}H[D|0]=1}d=J[((k<<2)+e|0)+116>>2];H[f|0]=d;H[f+1|0]=d>>>8;H[f+2|0]=d>>>16;H[f+3|0]=d>>>24;t=t+1|0;f=f+4|0;y=y+1|0;if((y|0)!=(m|0))continue;break}d= -L[p+10>>1]}l:{if(J[r+16>>2]<(v|0)|J[r+8>>2]>(v|0))break l;k=d<<16>>16<0;f=k?0:A;t=K[A|0];d=J[r+4>>2];m:{if((a|0)>=(d|0)){d=a;break m}a=d-a|0;m=m-a|0;if((m|0)<=0)break l;f=k?0:a+f|0;j=(a<<2)+j|0}k=J[r>>2];a=J[r+12>>2];if((a|0)<(d+m|0)){a=a-d|0;if((a|0)<0)break l;m=a+1|0}Rg(k,d,v,m,j,f,t)}p=p+8|0;x=x-1|0;if(x)continue;break}if(lg(i,g))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>> -2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2342,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]= -0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2343,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+ -52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function dWa(a){a=a|0;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;e=bc-32|0;bc=e;c=J[a+4>>2];gc[J[J[c>>2]+20>>2]](c);J[a+8>>2]=0;J[a+12>>2]=0;J[e+28>>2]=0;p=4096;c=zc(4096);b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)| -0;if((d|0)!=-1)while(1){f=J[e+28>>2];if((f|0)==(p|0)){a:{b:{b=p<<1;if(!c|!b)break b;g=Vd(c,b);if(g){c=g;break a}g=zc(b);if(!g)break b;if(p)tc(g,c,p);qc(c);c=g;break a}c=0}p=b}J[e+28>>2]=f+1;H[c+f|0]=d;b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)!=-1)continue;break}J[e+20>>2]=0;J[e+16>>2]=0;J[e+12>>2]=0;H[e+11|0]=1;d=0;g=bc-8272|0;bc=g;J[g+8268>>2]=-1;p=c;k=tW(c,J[e+28>>2],g+8268|0);if(k){b=g+16|0;if(b){c=wc(b,0,8248);J[c+8248>>2]=0;J[c+8200>>2]=-1;J[c+8204>>2]=-1}h=MW(J[g+8268>>2]);J[g+12>>2]= -0;c:{if(!LW(h,b))break c;d:{if(!KW(k,h,g+12|0))break d;b=J[g+12>>2];c=J[b+8>>2]-J[b>>2]|0;l=P(c,J[b+12>>2]-J[b+4>>2]|0)>>>0>=5000001?5E6/(c>>>0)|0:l;J[e+24>>2]=0;J[e+12>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;c=J[b+24>>2];J[e+16>>2]=J[c+8>>2];J[e+20>>2]=J[c+12>>2];f=J[b+16>>2];J[e+12>>2]=f;if((f|0)>=2){m=J[c+8>>2];j=1;while(1){i=c+P(j,52)|0;if((m|0)!=J[i+8>>2]|J[c+12>>2]!=J[i+12>>2]|J[c+24>>2]!=J[i+24>>2])break c;j=j+1|0;if((f|0)!=(j|0))continue;break}}if((f|0)<=0)break c;c=P(J[e+20>>2],P(f,J[e+16>>2])); -if((c|0)<=0)break c;w=e,x=rc(c),J[w+24>>2]=x;if(!l){if(!JW(h,k,b))break d;l=0;d=(HW(h,k)|0)!=0;break c}d=1;c=J[b+4>>2];r=J[b+12>>2];if(c>>>0>=r>>>0){l=1;break c}while(1){d=J[g+12>>2];b=c;f=r-b|0;l=f>>>0>>0?f:l;c=l+b|0;if(!IW(h,d,J[d>>2],b,J[d+8>>2],c)){pX(k);GW(h);Rm(J[g+12>>2]);d=0;J[g+12>>2]=0;k=tW(p,J[e+28>>2],g+8268|0);if(!k){k=0;h=0;break c}h=MW(J[g+8268>>2]);if(!LW(h,g+16|0))break c;if(!KW(k,h,g+12|0))break c;i=J[g+12>>2];if(!IW(h,i,J[i>>2],b,J[i+8>>2],c))break c}if(!JW(h,k,J[g+12>>2])){d= -0;break c}if(!HW(h,k)){d=0;break c}i=J[e+24>>2];o=K[e+11|0];if(!o)i=P(J[e+16>>2],P(J[e+12>>2],f-l|0))+i|0;if(!i){d=0;break c}s=J[g+12>>2];b=J[s+24>>2];d=J[b+40>>2];j=-1<>2]>>d;e:{if((q|0)<=0)break e;m=j+J[b+8>>2]>>d;if((m|0)<=0)break e;b=J[e+12>>2];n=0;if(!o){f=0;j=0;while(1){f:{if((b|0)>0){n=0;while(1){if((b|0)>0){b=(f|0)/(m|0)|0;o=(b^-1)+q|0;d=0;t=f-P(b,m)<<2;while(1){H[d+i|0]=J[t+(J[(J[s+24>>2]+P(d,52)|0)+44>>2]+(P(o,J[e+16>>2])<<2)|0)>>2];d=d+1|0;b=J[e+12>>2];if((d|0)<(b|0))continue; -break}}f=f+1|0;i=b+i|0;n=n+1|0;if((m|0)!=(n|0))continue;break}break f}f=f+m|0;i=P(b,m)+i|0}j=j+1|0;if((q|0)!=(j|0))continue;break}break e}t=(f^-1)+l|0;f=0;while(1){g:{if((b|0)>0){o=P(J[e+20>>2]+(t-f|0)|0,P(J[e+16>>2],b))+i|0;j=0;while(1){if((b|0)>0){b=(n|0)/(m|0)|0;u=(b^-1)+q|0;d=0;v=n-P(b,m)<<2;while(1){H[d+o|0]=J[v+(J[(J[s+24>>2]+P(d,52)|0)+44>>2]+(P(u,J[e+16>>2])<<2)|0)>>2];d=d+1|0;b=J[e+12>>2];if((d|0)<(b|0))continue;break}}n=n+1|0;o=b+o|0;j=j+1|0;if((m|0)!=(j|0))continue;break}break g}n=m+n| -0}f=f+1|0;if((q|0)!=(f|0))continue;break}}d=1;if(c>>>0>>0)continue;break}break c}l=0}pX(k);GW(h);h:{if(!d|l)break h;l=J[g+12>>2];if(!l)break h;i=J[e+24>>2];if(!i){d=0;break h}d=1;c=J[l+24>>2];b=J[c+40>>2];f=-1<>2]>>b;if((k|0)<=0)break h;h=f+J[c+8>>2]>>b;if((h|0)<=0)break h;b=J[e+12>>2];c=0;if(!K[e+11|0]){j=0;while(1){f=0;i:{if((b|0)<=0){c=c+h|0;i=P(b,h)+i|0;break i}while(1){if((b|0)>0){b=(c|0)/(h|0)|0;m=k+(b^-1)|0;d=0;n=c-P(b,h)<<2;while(1){H[d+i|0]=J[n+(J[(J[l+24>>2]+P(d,52)| -0)+44>>2]+(P(m,J[e+16>>2])<<2)|0)>>2];d=d+1|0;b=J[e+12>>2];if((d|0)<(b|0))continue;break}}c=c+1|0;i=b+i|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}d=1;j=j+1|0;if((k|0)!=(j|0))continue;break}break h}f=0;while(1){j:{if((b|0)>0){o=P(J[e+20>>2]+(f^-1)|0,P(J[e+16>>2],b))+i|0;j=0;while(1){if((b|0)>0){b=(c|0)/(h|0)|0;m=k+(b^-1)|0;d=0;n=c-P(b,h)<<2;while(1){H[d+o|0]=J[n+(J[(J[l+24>>2]+P(d,52)|0)+44>>2]+(P(m,J[e+16>>2])<<2)|0)>>2];d=d+1|0;b=J[e+12>>2];if((d|0)<(b|0))continue;break}}c=c+1|0;o=b+o|0;j=j+1|0; -if((h|0)!=(j|0))continue;break}break j}c=c+h|0}d=1;f=f+1|0;if((k|0)!=(f|0))continue;break}}Rm(J[g+12>>2])}bc=g+8272|0;k:{if(!d){if(!p)break k;qc(p);break k}if(p)qc(p);J[a+16>>2]=J[e+24>>2];J[a+8>>2]=P(J[e+20>>2],P(J[e+16>>2],J[e+12>>2]))}bc=e+32|0}function m8a(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=Q(0),v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=Q(0),F=0,G=0,S=0,T=0;c=bc-128|0;bc=c;a:{b:{c:{e=a+96|0;d:{if(!K[e+1468|0]){i=a+1668|0;k=a+1700|0;if(!(!K[k+ -1160|0]|J[k+1172>>2]!=2)){Fe(k+100|0,k,J[k+1164>>2],J[k+1168>>2]);J[k+1172>>2]=3}Pd(k);e:{if(!J[k+12>>2])break e;J[k+1176>>2]=J[k+84>>2];e=J[i+20>>2];f=J[k+80>>2];a=(J[k+88>>2]-f|0)+2|0;f:{if(a>>>0<=M[i+24>>2])break f;if(e)qc(e);J[i+24>>2]=a;e=rc(a>>>0>536870911?-1:a<<3);J[i+20>>2]=e;if((a|0)==J[i+16>>2])break f;h=J[i+12>>2];if(h){qc(h);e=J[i+20>>2]}J[i+16>>2]=a;S=i,T=rc(a),J[S+12>>2]=T}J[i+28>>2]=e;J[i>>2]=f;J[i+4>>2]=2147483632;a=J[b+8>>2];if(J[a>>2]!=1){J[a>>2]=1;wc(a+2144|0,0,513)}if(!lg(k,i))break e; -while(1){r=J[b>>2];s=J[b+4>>2];f=J[b+8>>2];p=J[i+20>>2];x=J[i+28>>2]-p>>3;t=J[i+8>>2];z=+(t|0);while(1){A=J[p+12>>2];e=I[p+8>>1];a=I[p+10>>1];h=a>>31;g:{h:{m=(a^h)-h|0;h=J[s+4>>2];if(m>>>0>h>>>0){n=J[s>>2];a=m+255&130816;if((a|0)==(h|0))break h;if(n)qc(n);J[s+4>>2]=a;n=rc(a<<2);J[s>>2]=n;break h}n=J[s>>2];if(a)break h;a=0;break g}y=0;h=n;a=e;while(1){g=+(a|0);C=O[f+64>>3]+(g*O[f+32>>3]+O[f+48>>3]*z)-O[f+8>>3];g=O[f+72>>3]+(g*O[f+40>>3]+O[f+56>>3]*z)-O[f+16>>3];g=O[f+24>>3]*Y(C*C+g*g);g=(g>1?1:g)* -512+.5;i:{if(R(g)<2147483648){j=~~g;break i}j=-2147483648}D=(j+f|0)+2144|0;if(!K[D|0]){j:{k:{l:{l=J[f+88>>2];m:{if((l|0)<2)break m;g=+(j|0)*.001953125;o=J[f+84>>2];if(g<+N[o>>2])break l;d=1;u=N[o+4>>2];if(g<+u)break k;d=2;if((l|0)==2)break m;while(1){u=N[o+(d<<2)>>2];if(g<+u)break k;d=d+1|0;if((l|0)!=(d|0))continue;break}}d=(J[f+80>>2]+(l<<2)|0)-4|0;J[((j<<2)+f|0)+92>>2]=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);break j}d=J[f+80>>2];J[((j<<2)+f|0)+92>>2]=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+ -3|0]<<24);break j}q=J[f+80>>2];d=d<<2;l=q+d|0;d=d-4|0;q=d+q|0;v=K[q+3|0];F=K[l+3|0]-v|0;G=(j<<2)+f|0;w=K[q|0];E=N[d+o>>2];g=(g-+E)/+Q(u-E)*256+.5;n:{if(g<4294967296&g>=0){d=~~g>>>0;break n}d=0}w=w+(P(d,K[l|0]-w|0)>>>8|0)&255;o=K[q+2|0];o=(P(d,F)>>>8|0)+v<<24|((P(d,K[l+2|0]-o|0)>>>8|0)+o&255)<<16;v=K[l+1|0];l=K[q+1|0];J[G+92>>2]=w|(o|((P(d,v-l|0)>>>8|0)+l&255)<<8)}H[D|0]=1}j=J[((j<<2)+f|0)+92>>2];H[h|0]=j;H[h+1|0]=j>>>8;H[h+2|0]=j>>>16;H[h+3|0]=j>>>24;a=a+1|0;h=h+4|0;y=y+1|0;if((y|0)!=(m|0))continue; -break}a=L[p+10>>1]}o:{if(J[r+16>>2]<(t|0)|J[r+8>>2]>(t|0))break o;j=a<<16>>16<0;h=j?0:A;d=K[A|0];a=J[r+4>>2];p:{if((e|0)>=(a|0)){a=e;break p}e=a-e|0;m=m-e|0;if((m|0)<=0)break o;h=j?0:e+h|0;n=(e<<2)+n|0}j=J[r>>2];e=J[r+12>>2];if((e|0)<(a+m|0)){e=e-a|0;if((e|0)<0)break o;m=e+1|0}Rg(j,a,t,m,n,h,d)}p=p+8|0;x=x-1|0;if(x)continue;break}if(lg(k,i))continue;break}}break d}if(!K[e+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]= -0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2344,a+1700|0,e|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+ -124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;e=J[a+1560>>2];J[695492]=0;oa(2345,a+1700|0,(((e|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b; -a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function w_(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;h=bc-256|0;bc=h;c=J[a+8>>2];a:{if(!c)break a;n=h|9;j=1;while(1){f=J[a+20>>2];d=J[a+24>>2];if(k&!(!f|!d))break a;b=J[a+12>>2];e=J[a+8>>2];b:{c:{if(f)break c;f=b+e|0;if(f>>> -0>>0)break c;if(kd(c,782793,9))break c;b=f>>>0>=c+255>>>0?255:f-c|0;o=qd(h,c,b)+b|0,p=0,H[o|0]=p;b=Yf(n,47);d:{if(!b)break d;b=Cg(b+1|0,784209);if(!b)break d;o=a,p=Md(b),J[o+20>>2]=p}b=J[a+8>>2]+J[a+12>>2]|0;e:{if(b>>>0<=c>>>0)break e;f:{while(1){g:{e=K[c|0];switch(e-10|0){case 0:case 3:break f;default:break g}}c=c+1|0;if((b|0)!=(c|0))continue;break}c=b;break e}c=((e|0)==13)+c|0}c=b>>>0>c>>>0?(K[c|0]==10)+c|0:c;c=b>>>0>c>>>0?c:0;break b}h:{if(d)break h;i:{d=b+e|0;if(d>>>0>>0)break i;if(kd(c, -780569,30))break i;J[a+24>>2]=2638352;break b}if(d>>>0>>0)break h;if(kd(c,784385,19))break h;o=a,p=vd(256,4),J[o+24>>2]=p;d=0;while(1){b=d<<2;J[b+J[a+24>>2]>>2]=0;J[J[a+24>>2]+(b|4)>>2]=0;J[J[a+24>>2]+(b|8)>>2]=0;J[J[a+24>>2]+(b|12)>>2]=0;d=d+4|0;if((d|0)!=256)continue;break}b=J[a+8>>2]+J[a+12>>2]|0;j:{if(b>>>0<=c>>>0)break j;k:{while(1){l:{e=K[c|0];switch(e-10|0){case 0:case 3:break k;default:break l}}c=c+1|0;if((b|0)!=(c|0))continue;break}c=b;break j}c=((e|0)==13)+c|0}c=b>>>0>c>>>0?(K[c|0]== -10)+c|0:c;if(b>>>0<=c>>>0)break a;l=0;if(!c)break a;while(1){e=c;b=c;c=J[a+8>>2]+J[a+12>>2]|0;m:{if(b>>>0>=c>>>0)break m;n:{while(1){o:{d=K[b|0];switch(d-10|0){case 0:case 3:break n;default:break o}}b=b+1|0;if((c|0)!=(b|0))continue;break}b=c;break m}b=((d|0)==13)+b|0}b=b>>>0>>0?(K[b|0]==10)+b|0:b;c=b>>>0>>0?b:0;if(!c){c=e;break b}b=c-e|0;b=(b|0)>=255?255:b;f=qd(h,e,b);H[b+f|0]=0;b=f;while(1){d=K[b|0];if(!((d|0)!=32&(d|0)!=9)){b=b+1|0;continue}break}p:{q:{r:{if(!kd(e-4|0,785882,4)){d=!kd(b,787137, -3);break r}i=kd(e-5|0,786725,4);g=kd(b,787137,3);d=!g;if(!i)break r;if(g)break q}b=(d?3:0)+b|0;while(1){s:{t:{u:{d=K[b|0];if((d|0)!=9){if((d|0)==56)break u;if((d|0)!=32)break t}b=b+1|0;continue}if(K[b+1|0]!=35){i=10;d=56;break s}d=K[b+2|0];i=8;b=b+2|0;break s}i=10;if((d-48&255)>>>0>9)break p}g=0;f=d<<24>>24;v:{if((f|0)<48)break v;e=b;m=i|48;if((m|0)<=(f|0))break v;while(1){b=e+1|0;g=(P(i,g)+f|0)-48|0;d=H[e+1|0];if((d|0)<48)break v;f=d;e=b;if((d|0)<(m|0))continue;break}}while(1){w:{x:{y:{e=d&255;switch(e- -32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break p;case 15:break w;case 0:break x;default:break y}}if((e|0)!=9)break p}d=K[b+1|0];b=b+1|0;continue}break}e=b+1|0;b=e;while(1){z:{A:{B:{d=K[b|0];switch(d|0){case 0:case 9:break z;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break A;default:break B}}if((d|0)==32)break z}b=b+1|0;continue}break}if(g>>>0<=255){H[b|0]=0;f=g<<2;Gc(J[f+J[a+24>>2]>>2]);e=Md(e);J[f+J[a+24>>2]>>2]=e;H[b| -0]=d}while(1){e=d&255;if(!((e|0)!=32&(e|0)!=9)){d=K[b+1|0];b=b+1|0;continue}break}if(kd(b,787899,3))break p;d=b+3|0;while(1){b=K[d|0];if(!((b|0)!=32&(b|0)!=9)){d=d+1|0;continue}break}b=d+3|0;if(!kd(d,787137,3))continue;break}break p}if(!Cg(f,789540))break p;b=Cg(0,784209);if(!b)break p;if(Ec(b,781583))break p;c=e;break b}l=l+1|0;if((l|0)!=300)continue;break}break b}C:{if(k)break C;d=c+11|0;f=b+e|0;if(d>>>0>f>>>0)break C;if(kd(c,789628,11))break C;e=f>>>0>=c+266>>>0?255:f-d|0;b=qd(h,d,e);H[b+e|0]= -0;b=Yf(b,91);if(!b){k=1;break b}k=1;b=b+1|0;e=Yf(b,93);if(!e)break b;H[e|0]=0;b=Cg(b,784209);if(!b)break b;o=a,q=Wf(b),O[o+32>>3]=q;b=Cg(0,784209);if(!b)break b;o=a,q=Wf(b),O[o+40>>3]=q;b=Cg(0,784209);if(!b)break b;o=a,q=Wf(b),O[o+48>>3]=q;b=Cg(0,784209);if(!b)break b;o=a,q=Wf(b),O[o+56>>3]=q;b=Cg(0,784209);if(!b)break b;o=a,q=Wf(b),O[o+64>>3]=q;b=Cg(0,784209);if(!b)break b;o=a,q=Wf(b),O[o+72>>3]=q;break b}b=b+e|0;D:{if(b>>>0<=c>>>0)break D;E:{while(1){F:{e=K[c|0];switch(e-10|0){case 0:case 3:break E; -default:break F}}c=c+1|0;if((b|0)!=(c|0))continue;break}c=b;break D}c=((e|0)==13)+c|0}c=b>>>0>c>>>0?(K[c|0]==10)+c|0:c;c=b>>>0>c>>>0?c:0}if(j>>>0>99)break a;j=j+1|0;if(c)continue;break}}J[a+80>>2]=1;bc=h+256|0}function yza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-80|0;bc=d;a:{b:{c:{d:{if(!K[a+89|0]){a=Kc(d+44|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break a}c=-1;if(!(J[a+92>>2]&1))break c;e:{f:switch(J[a+56>>2]-1|0){case 0:case 1:case 4:if(!(J[a+ -92>>2]&4))break c;f=J[a+112>>2]+100|0;a=f;e=Tk(b);a=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];g:{if(!a)break g;while(1){h:{if((e|0)==J[a+12>>2])if(Pl(a+16|0,b))break h;a=J[a+8>>2];if(a)continue;break g}break}c=bc-32|0;bc=c;e=Tk(b);i:{j:{k:{a=J[J[f+12>>2]+((e>>>0)%M[f+8>>2]<<2)>>2];if(a)while(1){if((e|0)==J[a+12>>2])if(Pl(a+16|0,b))break k;a=J[a+8>>2];if(a)continue;break}a=Kc(c+8|0,2379503,2378920,1156,2405978,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j;break a}bc=c+32|0;break i}B()}c= -J[a+52>>2]}break c;case 2:if(!(J[a+92>>2]&2))break c;J[d+4>>2]=0;J[695492]=0;c=d+44|0;da(5226,c|0,b|0);f=J[695492];J[695492]=0;l:{if((f|0)!=1){J[695492]=0;f=aa(5066,c|0,a+8|0)|0;c=J[695492];J[695492]=0;m:{n:{o:{p:{q:{if((c|0)!=1){J[d+68>>2]=2381060;J[d+44>>2]=2381028;c=J[d+72>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+72>>2]=0}J[d+60>>2]=2381060;c=J[d- -64>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+64>>2]=0}sc(d+52|0);if(f){a=J[a+48>>2];J[695492]= -0;c=d+44|0;da(5113,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break q;J[695492]=0;b=d+40|0;ca(5167,b|0,a|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break p;J[695492]=0;aa(4993,d+4|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break o;a=J[d+40>>2];J[d+40>>2]=0;r:{if(!a)break r;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break r;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}sc(d+44|0)}a=J[d+4>>2];if(a)break m;c=-1;break c}a=Z()|0;ud(d+ -44|0);break l}a=Z()|0;break l}a=Z()|0;break n}a=Z()|0;vc(d+40|0)}sc(d+44|0);break l}c=J[a+56>>2];J[695492]=0;J[d+4>>2]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)!=1){if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break b}a=Z()|0}vc(d+4|0);ba(a|0);B();case 3:if(!(J[a+92>>2]&2))break c;J[d+40>>2]=0;J[695492]=0;c=d+44|0;da(5226,c|0,b|0);f=J[695492];J[695492]=0;s:{if((f|0)!=1){J[695492]=0;f=d+4|0;da(5226,f|0,a+8|0);e=J[695492];J[695492]=0;t:{u:{v:{w:{x:{y:{z:{if((e| -0)!=1){J[695492]=0;f=aa(5066,c|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break z;J[d+28>>2]=2381060;J[d+4>>2]=2381028;c=J[d+32>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+32>>2]=0}J[d+20>>2]=2381060;c=J[d+24>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+24>>2]=0}sc(d+12|0);J[d+68>>2]=2381060;J[d+44>>2]=2381028;c=J[d+72>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+72>>2]=0}J[d+60>>2]=2381060;c=J[d- -64>>2];if(c){e=J[c+ -4>>2]-1|0;J[c+4>>2]=e;if(!e)gc[J[J[c>>2]+4>>2]](c);J[d+64>>2]=0}sc(d+52|0);if(f){a=J[a+48>>2];J[695492]=0;c=d+44|0;da(5113,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break x;J[695492]=0;b=d+4|0;ca(5167,b|0,a|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break w;J[695492]=0;aa(4993,d+40|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break v;a=J[d+4>>2];J[d+4>>2]=0;A:{if(!a)break A;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(b)break A;J[695492]=0;_(4987,a|0); -a=J[695492];J[695492]=0;if((a|0)==1)break e}sc(d+44|0)}a=J[d+40>>2];if(a)break t;c=-1;break c}a=Z()|0;break y}a=Z()|0;ud(d+4|0)}ud(d+44|0);break s}a=Z()|0;break s}a=Z()|0;break u}a=Z()|0;vc(d+4|0)}sc(d+44|0);break s}c=J[a+56>>2];J[695492]=0;J[d+40>>2]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)!=1){if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break b}a=Z()|0}vc(d+40|0);ba(a|0);B();default:break f}a=Kc(d+44|0,2390648,2373496,815,2401700,0);J[695492]= -0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break a}ea(0)|0;yc()}B()}bc=d+80|0;return c|0}ea(0)|0;yc();B()}b=Z()|0;Fc(a);ba(b|0);B()}function GFa(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=bc-32|0;bc=f;J[f+28>>2]=0;a:{if(!(gc[J[J[b>>2]+20>>2]](b,c,f+28|0)|0)){gc[J[J[b>>2]+48>>2]](f+16|0,b,c,0);b:{c:{d:{e:{e=J[f+20>>2];c=J[f+16>>2];if((e|0)==(c|0))break e;J[695492]=0;J[f>>2]=4818;ia(4819,c|0,e|0,f|0,62-(S((e-c|0)/12|0)<<1)|0);c=J[695492];J[695492]=0;if((c| -0)==1)break c;e=J[f+16>>2];g=J[f+20>>2];if((e|0)==(g|0))break e;while(1){d=K[e+11|0];h=d<<24>>24<0;k=h?J[e>>2]:e;c=k;j=h?J[e+4>>2]:d;i=c+(j<<2)|0;h=i;d=c;if(j){f:while(1){d=c;while(1){g:{c=d+4|0;if(J[d>>2]==46){if((c|0)==(i|0))break g;if(J[c>>2]!=112)continue f;if((i|0)==(d+8|0))break g;if(J[d+8>>2]!=105)continue f;if((i|0)==(d+12|0))break g;if(J[d+12>>2]!=101)continue f;if((i|0)==(d+16|0))break g;if(J[d+16>>2]!=99)continue f;if((i|0)==(d+20|0))break g;h=J[d+20>>2]==101?d:h;continue f}d=c;if((i|0)!= -(c|0))continue}break}break}d=h}c=(d|0)==(i|0)?-1:d-k>>2;h:{if(!((c|0)==-1|(c+6|0)!=(j|0))){e=e+12|0;break h}c=J[f+16>>2];e=P((e-c|0)/12|0,12)+c|0;d=e;c=d+12|0;if((g|0)==(c|0))c=g;else{while(1){if(H[d+11|0]<0)qc(J[d>>2]);h=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=h;J[d+8>>2]=J[c+8>>2];H[c+11|0]=0;J[c>>2]=0;d=d+12|0;c=c+12|0;if((g|0)!=(c|0))continue;break}c=J[f+20>>2]}g=P((d-e|0)/12|0,12)+e|0;if((c|0)!=(g|0))while(1){d=c-12|0;if(H[c-1|0]<0)qc(J[d>>2]);c=d;if((g|0)!=(c|0))continue;break}J[f+20>>2]=g}if((e| -0)!=(g|0))continue;break}e=J[f+16>>2];if((g|0)==(e|0))break e;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;i:{j:{k:{l:{m:{while(1){J[f+12>>2]=0;c=J[J[b>>2]+20>>2];J[695492]=0;c=ga(c|0,b|0,e|0,f+12|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;n:{if(!c)break n;d=J[f+12>>2];c=J[d+4>>2];if(c>>>0>=2147483632){J[695492]=0;_(1623,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break l;B()}g=J[d>>2];o:{if(c>>>0<=10){H[f+11|0]=c;d=f;break o}J[695492]=0;h=(c|15)+1|0;d=$(4,h|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break m; -J[f>>2]=d;J[f+4>>2]=c;J[f+8>>2]=h|-2147483648}l=Zc(d,g,c)+c|0,m=0,H[l|0]=m;J[695492]=0;c=K[f+11|0];d=c<<24>>24<0;ga(2669,a|0,(d?J[f>>2]:f)|0,(d?J[f+4>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;if(H[f+11|0]>=0)break n;qc(J[f>>2])}c=J[f+12>>2];if(c){p:{if(!K[c+8|0])break p;d=J[c>>2];if(!d)break p;qc(d)}qc(c)}e=e+12|0;if((e|0)!=J[f+20>>2])continue;break}a=J[f+16>>2];break d}c=Z()|0;break i}c=Z()|0;break i}c=Z()|0;if(H[f+11|0]>=0)break i;qc(J[f>>2]);break i}c=Z()|0}if(H[a+11|0]>=0)break b; -qc(J[a>>2]);break b}H[a|0]=0;H[a+11|0]=0;a=e}if(!a)break a;if((a|0)!=(e|0)){while(1){b=e-12|0;if(H[e-1|0]<0)qc(J[b>>2]);e=b;if((a|0)!=(e|0))continue;break}e=J[f+16>>2]}J[f+20>>2]=a;qc(e);break a}c=Z()|0}sg(f+16|0);ba(c|0);B()}b=J[f+28>>2];c=J[b>>2];q:{r:{d=J[b+4>>2];if(d>>>0<=3){H[a+11|0]=d;break r}s:{t:{u:{v:switch(K[c|0]-239|0){case 0:if(K[c+1|0]!=187|K[c+2|0]!=254|K[c+3|0]!=191)break t;d=d-3|0;if(d>>>0>=2147483632)break s;c=c+3|0;w:{if(d>>>0<=10){H[a+11|0]=d;break w}e=(d|15)+1|0;b=rc(e);J[a+8>> -2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b}l=tc(a,c,d)+d|0,m=0,H[l|0]=m;break q;case 16:if(K[c+1|0]!=254)break t;e=1;if(K[c+2|0]|K[c+3|0])break u;break t;case 15:break v;default:break t}if(K[c+1|0]!=255)break t}b=c+2|0;c=d-2|0;i=c>>>1|0;j=rc((c|0)<0?-1:i<<2);x:{if(e){e=0;while(1){d=b+2|0;c=K[b+1|0]<<8;h=c|K[b|0];y:{if(c-57344>>>0<4294965248)b=d;else{e=e+1|0;if((i|0)==(e|0))break x;c=b+4|0;b=K[b+3|0];if((b&252)!=220){b=c;break y}h=(h<<10&1047552|(K[d|0]|b<<8&768))+65536|0;b=c}J[j+(g<<2)>>2]=h;g=g+ -1|0}e=e+1|0;if((i|0)>(e|0))continue;break}break x}e=0;while(1){c=K[b|0]<<8;h=c|K[b+1|0];z:{if(c-57344>>>0<4294965248)b=b+2|0;else{e=e+1|0;if((i|0)==(e|0))break x;c=b+4|0;d=K[b+2|0];if((d&252)!=220){b=c;break z}h=(h<<10&1047552|(K[b+3|0]|d<<8&768))+65536|0;b=c}J[j+(g<<2)>>2]=h;g=g+1|0}e=e+1|0;if((i|0)>(e|0))continue;break}}jr(a,j,g);qc(j);break q}if(d>>>0>=2147483632)break s;A:{if(d>>>0<=10){H[a+11|0]=d;break A}e=(d|15)+1|0;b=rc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b}break r}Id(a);B()}l= -tc(a,c,d)+d|0,m=0,H[l|0]=m}a=J[f+28>>2];if(!a)break a;B:{if(!K[a+8|0])break B;b=J[a>>2];if(!b)break B;qc(b)}qc(a)}bc=f+32|0}function mJ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=bc-80|0;bc=h;a:{if(!((c|0)<129|(J[a+360>>2]&524288?c>>>0<=2048:0))){fl(a,55,37123,c);break a}Ud(a);b:{if(J[a+292>>2])break b;e=J[a+36>>2];if((J[e+20>>2]-J[e+16>>2]|0)>249)break b;Hd(a)}e=J[a+36>>2];c:{d:{if(K[J[e+16>>2]]==40){e=J[e+56>>2];Qd(a);Ud(a);e=mJ(a,e,c+1|0);Ud(a);if(J[a+292>>2])break c;f=J[a+36>>2];if((J[f+ -20>>2]-J[f+16>>2]|0)<250)break d;break c}e=Uh(a);if(!e){if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break a;J[a+84>>2]=54;J[h+64>>2]=16026;Cc(0,0,0,a,0,1,54,3,0,0,0,0,32890,h- -64|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}e=Yq(J[a+8>>2],e,2);if(!e){ke(a,0);break a}e:{f:{g:{h:{i:{d=J[a+36>>2];if(!(J[a+292>>2]|(J[d+20>>2]-J[d+16>>2]|0)>249)){Hd(a);d=J[a+36>>2]}switch(K[J[d+16>>2]]-42|0){case 1:break g;case 0:break h;case 21:break i;default:break f}}J[e+4>>2]=2;Qd(a);break e}J[e+4>>2]=3;Qd(a); -break e}J[e+4>>2]=4;Qd(a);break e}J[e+4>>2]=1}if(J[a+292>>2])break c;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)>249)break c}Hd(a)}Ud(a);i=J[a+36>>2];j:{if(J[a+292>>2])break j;f=J[i+16>>2];if((f-J[i+12>>2]|0)<501|(J[i+20>>2]-f|0)>499)break j;Pg(a);i=J[a+36>>2]}f=K[J[i+16>>2]];if((f|0)==41)c=e;else{d=0;k:{if(J[a+172>>2]==-1){c=e;break k}l=c+1|0;g=e;while(1){l:{m:{n:{o:{c=f&255;p:{if((c|0)!=124){if((c|0)!=44)break o;c=j&255;if(!(!c|(c|0)==44)){fl(a,66,35223,c);if(!(!d|(d|0)==(g|0)))Vh(J[a+8>>2],d);f= -0;if(!g)break a;Vh(J[a+8>>2],g);break a}Qd(a);c=gc[J[659447]](28)|0;if(!c){J[h+16>>2]=17038;f=0;Cc(0,0,0,0,0,23,2,3,17038,0,0,0,32863,h+16|0);if(!(!d|(d|0)==(g|0)))Vh(J[a+8>>2],d);Vh(J[a+8>>2],g);break a}J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=3;J[c+4>>2]=1;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;if(d)break p;break n}c=j&255;if(!(!c|(c|0)==124)){fl(a,66,35223,c);if(!(!d|(d|0)==(g|0)))Vh(J[a+8>>2],d);f=0;if(!g)break a;Vh(J[a+8>>2],g);break a}Qd(a);c=gc[J[659447]](28)|0;if(!c){J[h+48>>2]=17038;f=0;Cc(0,0,0, -0,0,23,2,3,17038,0,0,0,32863,h+48|0);if(!(!d|(d|0)==(g|0)))Vh(J[a+8>>2],d);if(!g)break a;Vh(J[a+8>>2],g);break a}J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=4;J[c+4>>2]=1;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;if(!d)break n}J[e+16>>2]=c;J[c+12>>2]=d;J[c+20>>2]=e;e=c;c=g;break m}J[a+84>>2]=55;J[h>>2]=15988;Cc(0,0,0,a,0,1,55,3,0,0,0,0,32890,h);J[a+12>>2]=0;if(!J[a+288>>2])J[a+212>>2]=1;if(!(!d|(d|0)==(g|0)))Vh(J[a+8>>2],d);f=0;if(!g)break a;Vh(J[a+8>>2],g);break a}J[c+12>>2]=g;e=c;d=g;if(!d)break l}J[d+20>>2]= -e}q:{if(J[a+292>>2])break q;g=J[a+36>>2];if((J[g+20>>2]-J[g+16>>2]|0)>249)break q;Hd(a)}Ud(a);d=J[a+36>>2];if(!(J[a+292>>2]|(J[d+20>>2]-J[d+16>>2]|0)>249)){Hd(a);d=J[a+36>>2]}r:{if(K[J[d+16>>2]]==40){g=J[d+56>>2];Qd(a);Ud(a);d=mJ(a,g,l);Ud(a);break r}g=Uh(a);if(!g){s:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break s;J[a+84>>2]=54;J[h+32>>2]=16026;Cc(0,0,0,a,0,1,54,3,0,0,0,0,32890,h+32|0);J[a+12>>2]=0;if(J[a+288>>2])break s;J[a+212>>2]=1}f=0;if(!c)break a;Vh(J[a+8>>2],c);break a}d=Yq(J[a+8>>2],g,2);if(!d){f= -0;if(!c)break a;Vh(J[a+8>>2],c);break a}t:switch(K[J[J[a+36>>2]+16>>2]]-42|0){case 21:J[d+4>>2]=2;Qd(a);break r;case 0:J[d+4>>2]=3;Qd(a);break r;case 1:J[d+4>>2]=4;Qd(a);break r;default:break t}J[d+4>>2]=1}Ud(a);i=J[a+36>>2];if(!(J[a+292>>2]|(J[i+20>>2]-J[i+16>>2]|0)>249)){Hd(a);i=J[a+36>>2]}k=K[J[i+16>>2]];if((k|0)==41)break k;j=f;g=c;f=k;if(J[a+172>>2]!=-1)continue;break}}if(!(!e|!d)){J[e+16>>2]=d;J[d+20>>2]=e}}f=c;if(!(!J[a+104>>2]|J[i+56>>2]==(b|0)))fm(a,90,30203,0,0);Qd(a);u:{v:switch(K[J[J[a+ -36>>2]+16>>2]]-42|0){case 21:if(!f)break u;J[f+4>>2]=J[f+4>>2]-3>>>0<2?3:2;break u;case 0:if(!f)break u;J[f+4>>2]=3;if(J[f>>2]!=4)break u;while(1){b=J[c+12>>2];if(!(!b|(J[b+4>>2]&-2)!=2))J[b+4>>2]=1;c=J[c+16>>2];if(!c)break u;if((J[c+4>>2]&-2)==2)J[c+4>>2]=1;if(J[c>>2]==4)continue;break}break u;case 1:break v;default:break a}if(!f)break u;J[f+4>>2]=(J[f+4>>2]&-2)==2?3:4;if(!e|J[e>>2]!=4)break u;d=0;while(1){b=J[e+12>>2];if(!(!b|(J[b+4>>2]&-2)!=2)){J[b+4>>2]=1;d=1}e=J[e+16>>2];if(e){if((J[e+4>>2]& --2)==2){J[e+4>>2]=1;d=1}if(J[e>>2]==4)continue}break}if(!d)break u;J[f+4>>2]=3}Qd(a)}bc=h+80|0;return f}function Cc(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=bc-16|0;bc=t;a:{if(!g|!J[659550]&(h|0)==1)break a;b:{c:{d:{if(!(1<>>0>23)break d;q=d;if(!q|a)break d;a=J[q>>2];if(!a|J[a+108>>2]!=-554844497)break c;a=J[a+124>>2];if(!a)break c;c=J[q+4>>2];break b}if(a)break b}a=J[689516];c=a?J[689515]:c}e:{if(!m){m=gc[J[659450]](26)|0;if(!m){Cc(0,0,0,0,0,1,2,3, -0,0,0,0,36013,0);break e}H[m+25|0]=0;H[m+24|0]=K[17217];n=K[17213]|K[17214]<<8|(K[17215]<<16|K[17216]<<24);o=K[17209]|K[17210]<<8|(K[17211]<<16|K[17212]<<24);H[m+16|0]=o;H[m+17|0]=o>>>8;H[m+18|0]=o>>>16;H[m+19|0]=o>>>24;H[m+20|0]=n;H[m+21|0]=n>>>8;H[m+22|0]=n>>>16;H[m+23|0]=n>>>24;n=K[17205]|K[17206]<<8|(K[17207]<<16|K[17208]<<24);o=K[17201]|K[17202]<<8|(K[17203]<<16|K[17204]<<24);H[m+8|0]=o;H[m+9|0]=o>>>8;H[m+10|0]=o>>>16;H[m+11|0]=o>>>24;H[m+12|0]=n;H[m+13|0]=n>>>8;H[m+14|0]=n>>>16;H[m+15|0]=n>>> -24;n=K[17197]|K[17198]<<8|(K[17199]<<16|K[17200]<<24);o=K[17193]|K[17194]<<8|(K[17195]<<16|K[17196]<<24);H[m|0]=o;H[m+1|0]=o>>>8;H[m+2|0]=o>>>16;H[m+3|0]=o>>>24;H[m+4|0]=n;H[m+5|0]=n>>>8;H[m+6|0]=n>>>16;H[m+7|0]=n>>>24;s=m;break e}o=150;p=gc[J[659447]](150)|0;if(!p)break e;v=-1;while(1){s=p;if((o|0)>63999)break e;J[t+12>>2]=n;p=Il(p,o,m,n);if(!((p|0)<0|(o|0)<=(p|0))){w=(p|0)==(v|0);v=p;if(w)break e}o=((p|0)<0?100:p+1|0)+o|0;p=gc[J[659452]](s,o)|0;if(p)continue;break}}f:{if(q){o=J[q+36>>2];g:{if(!o)break g; -r=J[o+4>>2];h:{if(r)break h;r=0;m=J[q+40>>2];if((m|0)<2)break h;o=J[(J[q+48>>2]+(m<<2)|0)-8>>2];if(!o)break g;r=J[o+4>>2]}x=J[o+32>>2];u=J[o+28>>2]}n=q+384|0;p=0;break f}p=0;n=2758068;if(!e)break f;o=0;m=J[e+32>>2];if(m)p=J[m+72>>2]?e:0;i:{j:{k:{l:{while(1){if(J[e+4>>2]==1)break l;e=J[e+20>>2];if(o>>>0<=8){o=o+1|0;if(e)continue}break}if(!(e?p:1))break k;if(e)break j;break i}if(p)break j}m=J[e+32>>2];if(!m){p=0;break j}p=J[m+72>>2]?e:0}if(J[e+4>>2]!=1)break i;u=L[e+56>>1]}if(u?(u|0)!=65535:0)break f; -u=Bw(e,0)}if(J[n+4>>2]){m=J[n+8>>2];if(m)gc[J[659451]](m);m=J[n+16>>2];if(m)gc[J[659451]](m);m=J[n+24>>2];if(m)gc[J[659451]](m);m=J[n+28>>2];if(m)gc[J[659451]](m);m=J[n+32>>2];if(m)gc[J[659451]](m);J[n+16>>2]=0;J[n+20>>2]=0;J[n+48>>2]=0;J[n+40>>2]=0;J[n+44>>2]=0;J[n+32>>2]=0;J[n+36>>2]=0;J[n+24>>2]=0;J[n+28>>2]=0}J[n+12>>2]=h;J[n+8>>2]=s;J[n+4>>2]=g;J[n>>2]=f;m:{if(r){o=r;while(1){f=o;o=f+1|0;if(K[f|0])continue;break}m=0;f=f-r|0;if((f|0)>=0){g=gc[J[659450]](f+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0, -0,0,36013,0);J[n+16>>2]=0;break m}m=tc(g,r,f);H[f+m|0]=0}J[n+16>>2]=m;break m}if(!p)break m;n:{f=J[J[p+32>>2]+72>>2];o:{if(!f)break o;o=f;while(1){g=o;o=o+1|0;if(K[g|0])continue;break}g=g-f|0;if((g|0)<0)break o;m=gc[J[659450]](g+1|0)|0;if(m)break n;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[n+16>>2]=0;if(!e)break m;f=J[e+32>>2];if(!f)break m;f=J[f+72>>2];if(f){o=f;while(1){g=o;o=o+1|0;if(K[g|0])continue;break}f=il(f,g-f|0)}else f=0;J[n+16>>2]=f;break m}f=tc(m,f,g);H[f+g|0]=0;J[n+16>>2]=f}J[n+20>>2]=u; -if(i){o=i;while(1){f=o;o=f+1|0;if(K[f|0])continue;break}o=0;f=f-i|0;p:{if((f|0)<0)break p;g=gc[J[659450]](f+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break p}o=tc(g,i,f);H[f+o|0]=0}J[n+24>>2]=o}if(j){o=j;while(1){f=o;o=f+1|0;if(K[f|0])continue;break}o=0;f=f-j|0;q:{if((f|0)<0)break q;g=gc[J[659450]](f+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break q}o=tc(g,j,f);H[f+o|0]=0}J[n+28>>2]=o}if(k){o=k;while(1){f=o;o=f+1|0;if(K[f|0])continue;break}o=0;f=f-k|0;r:{if((f|0)<0)break r;g=gc[J[659450]](f+ -1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break r}o=tc(g,k,f);H[f+o|0]=0}J[n+32>>2]=o}J[n+48>>2]=e;J[n+40>>2]=x;J[n+36>>2]=l;J[n+44>>2]=d;if((n|0)!=2758068)UJ(n,2758068);if(a){gc[a|0](c,n);break a}s:{t:{u:{if(!(J[689516]|(!q|b))){a=J[q>>2];if(!a)break u;o=a+((h|0)==1?84:88)|0;c=J[q+4>>2];break t}if(b)break s}o=2638196;c=q?q:J[689514]}b=J[o>>2];if(!b)break a}v:{w:switch(b-3104|0){default:if((b|0)!=3107)break v;break;case 0:case 1:case 2:break w}j0(n,q,s,0,0);break a}if(!((b|0)!=3108&(b|0)!= -3109)){j0(n,q,s,b,c);break a}J[t>>2]=s;gc[b|0](c,4607,t)}bc=t+16|0}function o8(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=bc-16|0;bc=e;a:{b:{b=J[a+352>>2];if(b)break b;J[a+348>>2]=4200;b=gc[J[a+152>>2]](4200)|0;J[a+352>>2]=b;if(b)break b;b=1;Dc(a,1,0,0);break a}c:{d:{e:{if(!(K[a+369|0]!=1?K[a+345|0]:0)){b=PD(a,b,a+392|0,8,e+8|0);if(b)break a;if(K[a+368|0])b=a+369|0;else{if(J[e+8>>2]!=8){b=4;Dc(a,4,0,0);break a}b=1;f:{if((Hr(J[a+352>>2])|0)==-1991225785)break f;b=3;if((Hr(J[a+352>>2])|0)==-1958064569)break f; -b=2;if((Hr(J[a+352>>2])|0)==-1974645177)break f;b=1025;Dc(a,1025,0,0);break a}J[a+8>>2]=b;if((Hr(J[a+352>>2]+4|0)|0)!=218765834)break e;b=a+345|0}H[b|0]=1}b=0;if(K[a+368|0])break a;i=a+396|0;h=a+392|0;while(1){if(!(K[a+432|0]|!K[a+344|0]))H[a+497|0]=0;g:{if(J[a+400>>2]){b=J[a+516>>2];h:{i:{if(b)while(1){b=gc[J[b+4>>2]](a,b)|0;if(b)break a;b=J[a+516>>2];if(!b)break i;if(K[a+497|0]|K[a+499|0])break h;if(!(K[a+432|0]|!K[a+344|0]))H[a+497|0]=0;b=J[b+8>>2];J[a+516>>2]=b;if(!b){if(K[a+285|0]|!K[a+304|0])break i; -b=MD(a);if(b)break a;b=J[a+516>>2];if(!b)break i;if(K[a+497|0]|K[a+499|0])break h}if(!K[a+500|0])continue;break i}j:{k:switch(K[a+498|0]-1|0){case 0:b=ND(a);break j;case 1:b=kN(a);break j;case 2:case 3:b=Mx(a);break j;case 4:b=k8(a);break j;case 6:b=iN(a);break j;case 5:case 7:b=jN(a);break j;case 8:b=j8(a);break j;case 9:b=i8(a);break j;case 10:break k;default:break i}b=h8(a)}if(b)break a}if(K[a+346|0]|(K[a+497|0]|K[a+499|0]))break h;H[a+369|0]=0;b=J[a+400>>2];b=pN(a,J[b+4>>2],J[b+8>>2]);if(b)break a; -if(!K[a+502|0]|(K[a+497|0]|K[a+368|0]))break h;b=n8(a);if(b)break a}b=J[a+400>>2];c=J[b>>2];J[a+400>>2]=c;if(!c)J[a+404>>2]=0;l:{m:{if(!K[b+12|0])break m;c=J[a+160>>2];if(!c)break m;gc[c|0](a,J[b+4>>2],J[b+8>>2]);break l}c=J[b+4>>2];if(!c)break l;gc[J[a+156>>2]](c,J[b+8>>2])}gc[J[a+156>>2]](b,24);break g}f=J[a+352>>2];j=J[a+348>>2];J[e+12>>2]=0;b=J[a+516>>2];n:{o:{if(b)while(1){b=gc[J[b+4>>2]](a,b)|0;if(b)break a;b=J[a+516>>2];if(!b)break o;if(K[a+497|0])break g;if(K[a+499|0])break n;if(!(K[a+432| -0]|!K[a+344|0]))H[a+497|0]=0;b=J[b+8>>2];J[a+516>>2]=b;if(!b){if(K[a+285|0]|!K[a+304|0])break o;b=MD(a);if(b)break a;b=J[a+516>>2];if(!b)break o;if(K[a+497|0])break g;if(K[a+499|0])break n}if(!K[a+500|0])continue;break o}p:{q:switch(K[a+498|0]-1|0){case 0:b=ND(a);break p;case 1:b=kN(a);break p;case 2:case 3:b=Mx(a);break p;case 4:b=k8(a);break p;case 6:b=iN(a);break p;case 5:case 7:b=jN(a);break p;case 8:b=j8(a);break p;case 9:b=i8(a);break p;case 10:break q;default:break o}b=h8(a)}if(b)break a}if(K[a+ -497|0])break g;if(K[a+499|0])break n;r:{if(K[a+346|0])break r;s:{b=K[a+369|0];t:{if(!(b|!K[a+500|0])){H[a+496|0]=0;break t}c=0;if(b>>>0>2)break s}b=PD(a,f,h,4,e+12|0);if(b)break a;if(K[a+368|0]){H[a+369|0]=2;break r}b=Hr(f);J[a+388>>2]=b;c=4;if(b>>>0<=134217727)break s;b=1028;break a}if(K[a+368|0])break r;u:{b=K[a+369|0];if(b>>>0<=2){g=c;c=J[e+12>>2];if((g|0)!=(c|0))break u}c=J[a+388>>2]+(K[a+116|0]&15?8:4)|0;v:{d=J[a+408>>2];if(!d)break v;g=J[d+20>>2];if(c>>>0>g>>>0)break v;J[d+20>>2]=g-c;b=J[d+ -16>>2];J[d+16>>2]=b+c;H[a+369|0]=0;b=oN(a,b,c);if(b)break a;if(J[d+20>>2])break r;p8(a);break r}if(c>>>0>>0){b=PD(a,f,h,c,e+12|0);if(b)break a;if(K[a+368|0]){H[a+369|0]=3;break r}if((c|0)!=J[e+12>>2])break d;b=oN(a,f,c);if(!b)break r;break a}if(c>>>0>16777216){b=1065;break c}w:{if(b){d=J[a+360>>2];break w}J[a+396>>2]=0;b=1;d=c+1|0;J[a+356>>2]=d;d=gc[J[a+152>>2]](d)|0;J[a+360>>2]=d;if(!d)break c}b=PD(a,d,i,c,e+12|0);if(b)break a;if(K[a+368|0]){H[a+369|0]=4;break r}if((c|0)!=J[e+12>>2])break d;b= -oN(a,J[a+360>>2],c);c=J[a+360>>2];if(c){gc[J[a+156>>2]](c,J[a+356>>2]);J[a+360>>2]=0}if(!b)break r;break a}b=q8(a);if(b)break a;b=4;if(K[a+286|0]|c|(K[a+285|0]|K[a+289|0]))break c}if(K[a+497|0])break g}if(K[a+368|0]|!K[a+502|0])break g;b=n8(a);if(b)break a}if(!(J[a+516>>2]|!K[a+346|0])){b=0;break a}b=0;if(K[a+368|0]|K[a+499|0])break a;if(!K[a+497|0])continue;if(!K[a+344|0])break a;if(!K[a+432|0])continue;break}break a}b=1025;Dc(a,1025,0,0);break a}b=4}Dc(a,b,0,0)}bc=e+16|0;return b}function b0a(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0;e=bc-32|0;bc=e;w=J[a+12>>2];j=J[a+8>>2];u=J[a+20>>2];k=J[a+16>>2];l=J[a+4>>2];J[e+24>>2]=J[a+24>>2];m=J[l+8>>2];p=m+54|0;h=J[l+56>>2];a:{if(!(!!h&k>>>0>>0)){f=0;break a}f=1}while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!f){if(j>>>0>=w>>>0)break g;if(k>>>0>=u>>>0)break f;d=j+2|0;h=L[j>>1];if((h&63488)!=55296)break i;if(h&1024)break k;E=s;j=d;f=1;continue}if(j>>>0>=w>>> -0)break h;d=L[j>>1];if((d&64512)==56320)break j;J[b>>2]=12;J[l+56>>2]=h;break c}J[b>>2]=12;J[l+56>>2]=h;j=d;break c}J[l+56>>2]=0;h=(d+(h<<10)|0)-56613888|0;s=E;d=j+2|0}j=d;if((h|0)<=127){if(!(!(1<31)){J[b>>2]=12;J[l+56>>2]=h;break c}f=1;d=h;c=e;if(K[m+58|0]){H[e+17|0]=d;n=0;H[m+58|0]=0;f=2;d=15}H[c+16|0]=d;switch(h-10|0){case 0:case 3:break e;default:break d}}l:{m:{if(!n){d=K[m+55|0];c=d>>>0>1;d=c?d:1;H[e+13|0]=d;n:switch(J[m+64>>2]){case 0:if(!c){H[e+14|0]=33;n=2;break m}H[e+ -14|0]=1;n=2;break m;case 1:break n;default:break l}o:switch((d<<24>>24)-1|0){case 0:H[e+14|0]=33;H[e+15|0]=2;n=3;break m;case 1:H[e+14|0]=1;H[e+15|0]=33;n=3;break m;default:break o}H[e+14|0]=1;H[e+15|0]=2;n=3;break m}if((n|0)<=0)break l}y=h>>>10|0;z=h>>>4&63;x=h&15;A=1<<(x|16);t=K[l+35|0];B=h>>>0<65536;C=h-57344>>>0<6400;D=h-983040>>>0>131071;d=0;q=0;f=0;i=0;while(1){o=H[(e+13|0)+f|0];p:{if((o|0)<=0){c=d;break p}q:{r:{if(o>>>0>=32){s:{t:{r=J[m+12>>2];if(!(B|H[r+201|0]&1))break t;c=J[r+52>>2];c=J[(c+ -(z<<2)|0)+(L[c+(y<<1)>>1]<<2)>>2];g=J[r+188>>2]+P(c<<4&1048560|x,3)|0;o=K[g+1|0]<<8|K[g|0]<<16|K[g+2|0];g=o>>>0<256?1:o>>>0<65536?2:3;if(c&A){J[e+28>>2]=o;break s}if(!o|D&!(t|C))break t;J[e+28>>2]=o;g=0-g|0;break r}c=J[r+224>>2];if(!c){c=d;break p}g=Jt(c,h,e+28|0,t<<24>>24)}if((g|0)!=3)break r;i=2;break q}u:{v:{w:{v=J[(o<<2)+m>>2];if(!(B|H[v+201|0]&1))break w;c=J[v+52>>2];c=J[(c+(z<<2)|0)+(L[c+(y<<1)>>1]<<2)>>2];g=L[J[v+188>>2]+((c<<4&1048560|x)<<1)>>1];r=g>>>0<256;if(c&A){J[e+28>>2]=g;g=2;c=d;if(!r)break u; -break p}if(!g|D&!(t|C))break w;c=r?-1:-2;J[e+28>>2]=g;break v}c=J[v+224>>2];if(!c){c=d;break p}g=2;c=Jt(c,h,e+28|0,t<<24>>24);if((c|0)==2)break u}g=-2;if((c|0)!=-2){c=d;break p}c=d;if(i)break p}c=1;t=0;s=J[e+28>>2];i=g;q=o;break p}if((g|0)!=-3){c=d;break p}if(i){c=d;break p}t=0;i=-2}c=1;q=33;x:{y:{s=J[e+28>>2];g=s>>>16|0;switch((g&255)-129|0){case 0:break p;case 1:break y;default:break x}}c=2;q=34;break p}c=d;d=J[m+64>>2]==1;c=d?3:c;i=d?i:0;q=g-96|0}f=f+1|0;if(n>>>0>f>>>0){d=c;if((i|0)<=0)continue}break}if(!i)break l; -g=0;f=c&255;d=f+p|0;if(K[d|0]!=(q&255)){i=q<<24>>24;i=J[(((i|0)<3?i:i-30|0)<<2)+744880>>2];J[e+16>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);H[d|0]=q;n=(f|0)!=1?n:0;g=4}z:{if((f|0)==H[m+58|0]){f=g;break z}f=g|1;d=(e+16|0)+g|0;A:switch((c&255)-1|0){case 0:H[d|0]=14;H[m+58|0]=1;break z;case 1:H[d|0]=27;H[(e+16|0)+f|0]=78;f=g|2;break z;default:break A}H[d|0]=27;H[(e+16|0)+f|0]=79;f=g|2}c=(e+16|0)+f|0;d=s<<8|(s&65280)>>>8;H[c|0]=d;H[c+1|0]=d>>>8;f=f+2|0;break d}J[b>>2]=10;J[l+56>>2]=h;break c}J[l+ -56>>2]=h}if(!K[m+58|0]|J[b>>2]>0|(!K[a+2|0]|j>>>0>>0))break c;if(J[l+56>>2])break c;H[m+58|0]=0;d=J[a+8>>2];c=j-d>>1;B:{if((c|0)<=0){f=-1;break B}f=c-1|0;if((L[d+(f<<1)>>1]&64512)!=56320)break B;if(f)if((L[(d+(c<<1)|0)-4>>1]&64512)!=55296)break B;f=c-2|0}J[e+28>>2]=k;hi(l,744692,1,e+28|0,u,e+24|0,f,b);k=J[e+28>>2];break c}J[b>>2]=15;break c}n=0;H[p|0]=0;H[p+1|0]=0;H[p+2|0]=0;H[p+3|0]=0;H[p+4|0]=0;H[p+5|0]=0}C:{D:switch(f-1|0){case 0:H[k|0]=K[e+16|0];k=k+1|0;c=J[e+24>>2];if(!c)break b;d=J[a+8>> -2];J[e+24>>2]=c+4;J[c>>2]=(j-d>>1)-1;break b;case 1:break D;default:break C}d=k+2|0;if(d>>>0>u>>>0)break C;H[k|0]=K[e+16|0];H[k+1|0]=K[e+17|0];i=J[e+24>>2];if(!i){k=d;break b}c=(j-J[a+8>>2]>>1)+(h>>>0<65536?-1:-2)|0;J[i>>2]=c;J[e+24>>2]=i+8;J[i+4>>2]=c;k=d;break b}d=J[a+8>>2];J[e+28>>2]=k;hi(l,e+16|0,f,e+28|0,u,e+24|0,(j-d>>1)+(h>>>0<65536?-1:-2)|0,b);k=J[e+28>>2];if(J[b>>2]<=0)break b}J[a+16>>2]=k;J[a+8>>2]=j;bc=e+32|0;return}f=0;continue}}function fCa(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=bc-1040|0;bc=e;a:{b:{c:{if(J[a+16>>2]){b=Kc(e+16|0,2377401,2375807,918,2385491,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}g=a+20|0;if(Pj(g)){b=Kc(e+16|0,2378108,2375807,920,2385491,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}if((c|0)<0){b=Kc(e+16|0,2374889,2375807,922,2385491,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}f=e+16|0;aG(f,b); -J[695492]=0;h=fd(f,2378586,-1);i=J[695492];J[695492]=0;d:{e:{f:{g:{if((i|0)!=1){sc(f);h:{if(!h){Vz(e+12|0,b,2374679);c=J[e+12>>2];i:{while(1){j:{b=J[J[c>>2]+8>>2];J[695492]=0;d=e+16|0;b=ga(b|0,c|0,d|0,1024)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j;if(!b)break i;f=J[a+76>>2];J[695492]=0;ia(5084,a|0,d|0,f|0,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break j;J[a+76>>2]=b+J[a+76>>2];continue}break}break d}J[695492]=0;b=$(5074,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;if(!(J[a+16>>2]!=0|b)){H[a+ -8|0]=1;if(J[a+84>>2]<0){b=J[a+64>>2];c=J[J[b>>2]+28>>2];J[695492]=0;b=$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;J[a+84>>2]=b}b=J[a+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}J[695492]=0;_(5085,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break d}a=J[e+12>>2];J[e+12>>2]=0;if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break h;if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break h; -break e}if(!Pj(b))break e;Vz(e+16|0,b,2374679);f=J[e+16>>2];h=J[J[f>>2]+20>>2];J[695492]=0;ha(h|0,f|0,0,2,0)|0;f=J[695492];J[695492]=0;k:{l:{if((f|0)!=1){f=J[e+16>>2];h=J[J[f>>2]+16>>2];J[695492]=0;f=$(h|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break g;J[695492]=0;aa(5083,g|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[a+84>>2]=d;J[a+80>>2]=c;m:{if((c|0)<(f|0)){if((f|0)>(c+d|0)&(d|0)>=0)break m;b=f-c|0}else b=0;J[a+84>>2]=b}H[a+8|0]=1;J[695492]=0;aa(4985,a- -64|0,0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break g;b=J[689874];if(!b){J[695492]=0;c=$(4,32)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[695492]=0;b=aa(5080,c|0,2385952)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[689874]=b}J[695492]=0;J[e+8>>2]=0;c=e+8|0;aa(4985,c|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;J[695492]=0;ca(5098,b|0,g|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break l;b=J[e+8>>2];J[e+8>>2]=0;n:{if(!b)break n; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break n;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}o:{c=J[a+116>>2];if(c)while(1){b=J[c+8>>2];J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;p:{q:{r:{s:{if((b|0)!=1){b=J[c+8>>2];J[e+12>>2]=b;d=J[b+20>>2];if(!d)break r;g=J[b+24>>2];J[695492]=0;_(d|0,g|0);d=J[695492];J[695492]=0;if((d| -0)!=1)break r;na(ea(0)|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break s;b=J[e+12>>2];J[e+12>>2]=0;if(!b)break p;break q}a=Z()|0;break f}a=Z()|0;vc(e+12|0);break f}J[e+12>>2]=0}J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break o;if(d)break p;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break o}c=J[c>>2];if(c)continue;break}J[695492]=0;_(5079,a+108|0);a=J[695492];J[695492]=0;if((a|0)!=1){a=J[e+16>>2];J[e+16>>2]=0;if(!a)break e;J[695492]= -0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break a}a=Z()|0;break f}break a}a=Z()|0;break f}a=Z()|0;vc(e+8|0);break f}a=Z()|0;qc(c);break f}break a}a=Z()|0;sc(e+16|0);break c}a=Z()|0}vc(e+16|0);break c}bc=e+1040|0;return}a=Z()|0;vc(e+12|0)}ba(a|0)}B()}ea(0)|0;yc();B()}function wqa(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;g=bc-32|0;bc=g;h=rc(72);J[695492]= -0;l=$(5516,h|0)|0;j=J[695492];J[695492]=0;if((j|0)==1){a=Z()|0;qc(h);ba(a|0);B()}J[g+4>>2]=0;h=g+4|0;md(h,l);a:{b:{c:{d:{f=J[c>>2];if(J[f+64>>2]){J[695492]=0;ca(5442,J[g+4>>2],f|0,0);j=J[695492];J[695492]=0;if((j|0)==1)break d;J[695492]=0;aa(4993,c|0,h|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break d;f=J[c>>2]}e:{f:{g:{if(!(J[a+136>>2]<=(d|0)&J[a+140>>2]>=(d|0))){J[695492]=0;c=ja(5018,g+8|0,2381890,2382316,619,2422816,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;_(5019,c|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break c;b=Z()|0;Fc(c);break a}i=L[b+8>>1];n=L[b+10>>1];o=L[f+10>>1];d=J[a+124>>2]+(d-J[a+128>>2]<<4)|0;l=J[d+4>>2];h=J[d+8>>2];j=J[d+12>>2];k=J[d>>2];J[695492]=0;da(5517,b|0,2);d=J[695492];J[695492]=0;if((d|0)==1)break f;d=J[c>>2];J[695492]=0;e=d;d=h+1|0;m=(d+((n>>>1|0)-n|0)|0)+((d-l|0)/-2|0)|0;da(5517,e|0,2-m|0);d=J[695492];J[695492]=0;if((d|0)==1)break f;d=J[c>>2];J[695492]=0;da(5517,d|0,(m+(n-o|0)|0)+2|0);d=J[695492];J[695492]=0;if((d|0)==1)break f;J[695492]=0;_(5518,b| -0);d=J[695492];J[695492]=0;if((d|0)==1)break e;d=J[c>>2];J[695492]=0;_(5518,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break e;o=J[c>>2];if(!J[b+20>>2]){J[695492]=0;_(5017,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}j=((k-j|0)+1|0)/-2|0;f=L[b+14>>1];e=L[b+8>>1];h:{if(i>>>0>=e>>>0){d=L[b+12>>1];if(J[682142]<(d+f|0)){J[695492]=0;c=ja(5018,g+8|0,2386481,2386813,577,2381799,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;_(5019,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;b=Z()|0; -Fc(c);break a}h=J[b+20>>2];l=d+J[682141]|0;break h}h=J[b+20>>2];l=L[b+12>>1]+(h+P(f,i)|0)|0}if(!h){J[695492]=0;_(5017,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break e;f=L[b+14>>1];e=L[b+8>>1]}p=i-1|0;i:{if(!(e>>>0>p>>>0?i:0)){d=L[b+12>>1];if(J[682142]<(d+f|0)){J[695492]=0;c=ja(5018,g+8|0,2386481,2386813,577,2381799,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;_(5019,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;b=Z()|0;Fc(c);break a}h=d+J[682141]|0;break i}h=L[b+12>>1]+(J[b+20>> -2]+P(f,p)|0)|0}f=J[c>>2];if(!J[f+20>>2]){J[695492]=0;_(5017,f|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}e=L[f+14>>1];j:{k:{i=j+(k+(i>>>1|0)|0)|0;if((i|0)>=-1){d=i+1|0;if(d>>>0>1])break k}d=L[f+12>>1];if(J[682142]<(d+e|0)){J[695492]=0;c=ja(5018,g+8|0,2386481,2386813,577,2381799,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;_(5019,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;b=Z()|0;Fc(c);break a}j=d+J[682141]|0;break j}j=L[f+12>>1]+(J[f+20>>2]+P(d,e)|0)|0}e=J[c>>2];if(!J[e+ -20>>2]){J[695492]=0;_(5017,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}d=L[e+14>>1];l:{if(!(i>>>0>1]&(i|0)>=0)){f=d;d=L[e+12>>1];if(J[682142]<(f+d|0)){J[695492]=0;c=ja(5018,g+8|0,2386481,2386813,577,2381799,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;_(5019,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;b=Z()|0;Fc(c);break a}d=d+J[682141]|0;break l}d=L[e+12>>1]+(J[e+20>>2]+P(d,i)|0)|0}k=J[c>>2];if(!J[k+20>>2]){J[695492]=0;_(5017,k|0);c=J[695492];J[695492]=0;if((c|0)== -1)break e}e=L[k+14>>1];m:{n:{if((i|0)>0){c=i-1|0;if(c>>>0>1])break n}c=L[k+12>>1];if(J[682142]<(c+e|0)){J[695492]=0;c=ja(5018,g+8|0,2386481,2386813,577,2381799,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;_(5019,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c;b=Z()|0;Fc(c);break a}e=c+J[682141]|0;break m}e=L[k+12>>1]+(J[k+20>>2]+P(c,e)|0)|0}c=J[J[a>>2]+52>>2];J[695492]=0;zb(c|0,a|0,b|0,o|0,m|0,n|0,p|0,i|0,l|0,h|0,j+m|0,d+m|0,e+m|0);a=J[695492];J[695492]=0;if((a|0)==1)break e; -c=J[g+4>>2];J[g+4>>2]=0;o:{if(!c)break o;J[695492]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)==1)break b;if(b)break o;J[695492]=0;_(4987,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}bc=g+32|0;return}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}B()}ea(0)|0;yc();B()}vc(g+4|0);ba(b|0);B()}function Mlb(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;J[a>>2]=0;i=bc-32|0;bc=i;J[a>>2]=0;h=i+16|0;J[h+12>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[h>>2]=413844;J[695492]= -0;c=ga(3,h|0,b|0,0)|0;e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((e|0)!=1){if(!c)break c;J[695492]=0;c=$(27,4096)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;J[i+12>>2]=0;e=ha(28,h|0,c|0,4096,i+12|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;if(!e){qc(c);break c}J[695492]=0;_(21,h|0);e=J[695492];J[695492]=0;if((e|0)==1)break b;e=J[i+12>>2];if(z6(a,c,e)){J[a>>2]=1;break f}if(J[a>>2])break f;if(e>>>0>=4){f=2;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==944130375)break e; -if(e>>>0<=5){d=K[c|0];break h}if(!Wc(c,19858,6))break e;if(!Wc(c,19851,6))break e;d=K[c|0];if(e>>>0<16)break h;g=K[c+2|0];j=K[c+1|0];i:{if((d|0)!=137|(j|0)!=80|((g|0)!=78|K[c+3|0]!=71))break i;if(K[c+4|0]!=13|K[c+5|0]!=10|(K[c+6|0]!=26|K[c+7|0]!=10))break i;if(K[c+8|0]|K[c+9|0]|(K[c+10|0]|K[c+11|0]!=13))break i;if(K[c+12|0]!=73|K[c+13|0]!=72|K[c+14|0]!=68)break i;f=4;if(K[c+15|0]==82)break e}if(e>>>0<17)break h;j:{k:switch(j|0){case 1:switch(g-1|0){case 0:case 8:break j;default:break h}case 0:break k; -default:break h}if(!(1<>>0>11)break h}if(K[c+16|0]-8&231)break h;f=7;break e}g=1;if((e|0)!=3)break f;d=K[c|0];break g}break b}if((d|0)!=10)break g;if(K[c+1|0]>5){d=10;break g}f=8;g=K[c+3|0]-1&255;if(g>>>0>=8){d=10;break g}d=10;if(139>>>g&1)break e}g=1;if((d|0)!=255|K[c+1|0]!=216)break f;f=3;if(K[c+2|0]==255)break e}f=21;d=0;l:{if(J[a>>2])break l;m:{if(K[c|0]!=1|e>>>0<44|(K[c+1|0]|K[c+2|0]))break m;if(K[c+3|0]|K[c+40|0]!=32|(K[c+41|0]!=69|K[c+42|0]!=77))break m;d=1;if(K[c+43|0]==70)break l}d= -0}if(d)break e;f=10;d=0;n:{if(J[a>>2])break n;d=K[c|0];o:{if(!((d|0)!=215|e>>>0<6)){if(K[c+1|0]!=205|K[c+2|0]!=198|(K[c+4|0]|K[c+3|0]!=154))break o;if(K[c+5|0])break o;d=1;break n}if(K[c+1|0]|(d|0)!=1|(K[c+3|0]|K[c+2|0]!=9))break o;if(K[c+4|0])break o;d=1;if(K[c+5|0]==3)break n}d=0}if(d)break e;f=6;d=0;p:{if(J[a>>2])break p;q:{r:{s:{d=K[c|0];if(!((d|0)!=73|e>>>0<4)){if(K[c+1|0]!=73|K[c+2|0]!=42)break s;if(!K[c+3|0])break r;break s}t:switch(d-73|0){case 0:break s;case 4:break t;default:break q}if(K[c+ -2|0]|K[c+1|0]!=77)break q;d=1;if(K[c+3|0]==42)break p;break q}if(K[c+3|0]|(K[c+1|0]!=73|K[c+2|0]!=42))break q}d=1;break p}d=0}if(d)break e;f=5;d=0;u:{if(J[a>>2]|e>>>0<16|(K[c|0]|K[c+1|0]))break u;j=J[c+18>>2];if(j>>>0>>0){d=1;k=J[(c+j|0)+4>>2];j=K[c+6|0];if((k|0)==((j?j:256)|0))break u}d=0}if(d)break e;f=22;if(e6(a,c,e))break e;f=20;d=0;v:{if(J[a>>2])break v;w:{if(K[c|0]!=56|e>>>0<12|(K[c+1|0]!=66|K[c+2|0]!=80))break w;if(K[c+6|0]|K[c+3|0]!=83|(K[c+7|0]|K[c+8|0]!=24))break w;if(K[c+9|0]|K[c+ -10|0])break w;d=1;if(K[c+11|0]==24)break v}d=0}if(d)break e;f=15;d=0;x:{if(J[a>>2])break x;y:{if(K[c|0]!=89|e>>>0<16|(K[c+1|0]!=166|K[c+2|0]!=106))break y;if(K[c+5|0]|(K[c+4|0]|K[c+3|0]!=149))break y;d=1;if(K[c+15|0]==24)break x}d=0}if(d)break e;f=11;if(!(!g|e>>>0<52|K[c|0]!=255|(K[c+1|0]!=79|K[c+2|0]!=255)))if(K[c+3|0]==81)break e;if(E5(a,c,e))break e;if(j5(a,c,e))break e;f=0;if(EL(a,c,e))break e;d=0;z:{if(J[a>>2]|e>>>0<6|(K[c|0]!=86|K[c+1|0]!=67))break z;if(K[c+2|0]!=76|K[c+3|0]!=77|(K[c+4|0]!= -84|K[c+5|0]!=70))break z;if(K[c+11|0]|(K[c+9|0]|K[c+10|0]))break z;d=1}g=0;A:{if(J[a>>2])break A;B:{if(e>>>0<10)break B;C:switch(K[c|0]-67|0){case 3:if(K[c+9|0]|(K[c+1|0]!=87|K[c+2|0]!=83))break B;g=1;break A;case 0:break C;default:break B}if(K[c+1|0]!=87|K[c+2|0]!=83|K[c+8|0]!=120)break B;g=1;if(K[c+9|0]==156)break A}g=0}if(g|d)break e;J[695492]=0;b=aa(29,i|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=24;if(b)break e;f=25;b=0;e=J[i+12>>2];D:{if(e>>>0<12)break D;b=1;if((K[c|0]|K[c+1|0]<< -8|(K[c+2|0]<<16|K[c+3|0]<<24))==1413695824)break D;if(!Wc(c+10|0,39182,6))break D;b=0;if(e>>>0<528)break D;b=!Wc(c+522|0,39182,6)}if(!b)break d}J[a>>2]=f}qc(c)}ve(h);bc=i+32|0;break a}a=Z()|0;ve(h);ba(a|0);B()}return a|0}function Ofb(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;l=bc-16|0;bc=l;h=J[a+16>>2];d=K[h+6|0]|K[h+7|0]<<8|(K[h+8|0]<<16|K[h+9|0]<<24);e=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a:{if(!e)break a;i=h+10|0;b:{while(1){d=e+g>>>1|0;f=i+P(d, -11)|0;j=K[f+1|0]<<8|K[f|0]<<16|K[f+2|0];c:{if(j>>>0>c>>>0){e=d;break c}if(c>>>0<=j>>>0)break b;g=d+1|0}if(e>>>0>g>>>0)continue;break}g=0;break a}g=0;c=K[f+3|0]|K[f+4|0]<<8|(K[f+5|0]<<16|K[f+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[f+7|0]|K[f+8|0]<<8|(K[f+9|0]<<16|K[f+10|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!(c|d))break a;d:{if(!c){c=d+h|0;d=K[c+3|0];g=K[c+2|0];f=K[c+1|0];i=K[c|0];e=J[a+28>>2];J[l+4>>2]=0;i=d|(f<<16|i<<24|g<<8);f=i+1|0;e:{if(f>>>0<=e>>>0){g=J[a+32>>2]; -break e}J[a+36>>2]=b;g=Sc(b,4,e,f,J[a+32>>2],l+4|0);J[a+32>>2]=g;if(J[l+4>>2])break d;J[a+28>>2]=f}f:{if(!i)break f;a=d&1;d=c+4|0;e=0;if((i|0)!=1){b=i-a|0;f=0;while(1){c=e<<2;J[c+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(c|4)+g>>2]=K[d+7|0]|(K[d+6|0]<<8|K[d+5|0]<<16);e=e+2|0;d=d+10|0;f=f+2|0;if((b|0)!=(f|0))continue;break}}if(!a)break f;J[(e<<2)+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16)}J[(i<<2)+g>>2]=0;break a}if(!d){g=C4(a,c+h|0,b);break a}j=d+h|0;m=K[j+3|0];i=m|(K[j+1|0]<<16|K[j|0]<<24|K[j+2|0]<< -8);h=c+h|0;c=K[h+3|0];g:{h:{n=c|(K[h+1|0]<<16|K[h|0]<<24|K[h+2|0]<<8);i:{if(n){k=c&3;g=h+7|0;f=0;j:{if(n-1>>>0<3){e=0;d=g;break j}o=n-k|0;e=0;c=0;while(1){e=(K[g+12|0]+(K[g+8|0]+(K[g+4|0]+(K[g|0]+e|0)|0)|0)|0)+4|0;d=g+16|0;g=d;c=c+4|0;if((o|0)!=(c|0))continue;break}}if(k)while(1){e=(K[d|0]+e|0)+1|0;d=d+4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}if(!i)break i;if(e)break h;break g}if(i)break g}g=C4(a,h,b);break a}c=J[a+28>>2];J[l+12>>2]=0;d=(e+i|0)+1|0;k:{if(d>>>0<=c>>>0){g=J[a+32>>2];break k}J[a+36>> -2]=b;g=Sc(b,4,c,d,J[a+32>>2],l+12|0);J[a+32>>2]=g;if(J[l+12>>2])break d;J[a+28>>2]=d}o=K[j+6|0]|(K[j+5|0]<<8|K[j+4|0]<<16);f=K[h+6|0]|(K[h+5|0]<<8|K[h+4|0]<<16);a=j+9|0;b=h+8|0;j=K[h+7|0];e=0;k=1;m=1;while(1){l:{if(f+j>>>0>>0){d=j+1|0;q=d&3;c=0;m:{if(j>>>0<3){d=0;break m}r=d&-4;d=0;h=0;while(1){p=(e<<2)+g|0;J[p>>2]=d+f;J[p+4>>2]=(d|1)+f;J[p+8>>2]=(d|2)+f;J[p+12>>2]=(d|3)+f;d=d+4|0;e=e+4|0;h=h+4|0;if((r|0)!=(h|0))continue;break}}if(q)while(1){J[(e<<2)+g>>2]=d+f;d=d+1|0;e=e+1|0;c=c+1|0;if((q|0)!= -(c|0))continue;break}k=k+1|0;if(n>>>0>>0)break l;f=K[b+2|0]|(K[b+1|0]<<8|K[b|0]<<16);j=K[b+3|0];b=b+4|0;continue}if(f>>>0>o>>>0){J[(e<<2)+g>>2]=o;e=e+1|0}m=m+1|0;if(i>>>0>>0)break l;o=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);a=a+5|0;continue}break}n:{if(i>>>0>=m>>>0){J[(e<<2)+g>>2]=o;e=e+1|0;if(i>>>0<=m>>>0)break n;while(1){J[(e<<2)+g>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);e=e+1|0;a=a+5|0;m=m+1|0;if(i>>>0>m>>>0)continue;break}break n}if(k>>>0>n>>>0)break n;a=j+1|0;i=a&3;c=0;o:{if(j>>>0<3){d=0;break o}j= -a&-4;d=0;h=0;while(1){a=(e<<2)+g|0;J[a>>2]=d+f;J[a+4>>2]=(d|1)+f;J[a+8>>2]=(d|2)+f;J[a+12>>2]=(d|3)+f;d=d+4|0;e=e+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}if(i)while(1){J[(e<<2)+g>>2]=d+f;d=d+1|0;e=e+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}if(k>>>0>=n>>>0)break n;while(1){a=K[b+2|0]|(K[b+1|0]<<8|K[b|0]<<16);d=K[b+3|0];f=d+1|0;i=f&3;c=0;p:{if(d>>>0<3){d=0;break p}j=f&508;d=0;h=0;while(1){f=(e<<2)+g|0;J[f>>2]=a+d;J[f+4>>2]=a+(d|1);J[f+8>>2]=a+(d|2);J[f+12>>2]=a+(d|3);d=d+4|0;e=e+4|0;h=h+4|0;if((j| -0)!=(h|0))continue;break}}if(i)while(1){J[(e<<2)+g>>2]=a+d;d=d+1|0;e=e+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}b=b+4|0;k=k+1|0;if(n>>>0>k>>>0)continue;break}}J[(e<<2)+g>>2]=0;break a}c=J[a+28>>2];J[l+8>>2]=0;d=i+1|0;q:{if(d>>>0<=c>>>0){g=J[a+32>>2];break q}J[a+36>>2]=b;g=Sc(b,4,c,d,J[a+32>>2],l+8|0);J[a+32>>2]=g;if(J[l+8>>2])break d;J[a+28>>2]=d}a=m&1;d=j+4|0;e=0;if((i|0)!=1){b=i-a|0;f=0;while(1){c=e<<2;J[c+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(c|4)+g>>2]=K[d+7|0]|(K[d+6|0]<<8|K[d+5|0]<<16); -e=e+2|0;d=d+10|0;f=f+2|0;if((b|0)!=(f|0))continue;break}}if(a)J[(e<<2)+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(i<<2)+g>>2]=0;break a}g=0}bc=l+16|0;return g|0}function hWa(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;f=J[b+8>>2];J[a+8>>2]=f;d=J[b+12>>2];J[a+12>>2]=d;a:{b:{c:{if(d){if(d>>>0>67108862)break c;i=a,j=zc(d<<6),J[i>>2]=j;break b}J[a>>2]=0;c=0;break a}J[a>>2]=0;c=0;if(d>>>0>89478484)break a}c=zc(P(d,48))}J[a+4>>2]=c;if((f|0)>0)while(1){f=h<<6;d=f+J[b>>2]|0;c=bJ(K[d+20|0]|K[d+21| -0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24));d=f+J[a>>2]|0;H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;c=f+J[b>>2]|0;e=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);g=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);x(0,e|0);x(1,g|0);A(+z());e=v(1)|0;g=v(0)|0;H[d+24|0]=g;H[d+25|0]=g>>>8;H[d+26|0]=g>>>16;H[d+27|0]=g>>>24;H[d+28|0]=e;H[d+29|0]=e>>>8;H[d+30|0]=e>>>16;H[d+31|0]=e>>>24;e=K[c+36|0]|K[c+37|0]<<8|(K[c+38|0]<<16|K[c+39|0]<<24);g=K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+ -35|0]<<24);x(0,g|0);x(1,e|0);A(+z());e=v(1)|0;g=v(0)|0;H[d+32|0]=g;H[d+33|0]=g>>>8;H[d+34|0]=g>>>16;H[d+35|0]=g>>>24;H[d+36|0]=e;H[d+37|0]=e>>>8;H[d+38|0]=e>>>16;H[d+39|0]=e>>>24;e=K[c+44|0]|K[c+45|0]<<8|(K[c+46|0]<<16|K[c+47|0]<<24);g=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);x(0,g|0);x(1,e|0);A(+z());e=v(1)|0;g=v(0)|0;H[d+40|0]=g;H[d+41|0]=g>>>8;H[d+42|0]=g>>>16;H[d+43|0]=g>>>24;H[d+44|0]=e;H[d+45|0]=e>>>8;H[d+46|0]=e>>>16;H[d+47|0]=e>>>24;e=K[c+52|0]|K[c+53|0]<<8|(K[c+54|0]<<16|K[c+ -55|0]<<24);g=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24);x(0,g|0);x(1,e|0);A(+z());e=v(1)|0;g=v(0)|0;H[d+48|0]=g;H[d+49|0]=g>>>8;H[d+50|0]=g>>>16;H[d+51|0]=g>>>24;H[d+52|0]=e;H[d+53|0]=e>>>8;H[d+54|0]=e>>>16;H[d+55|0]=e>>>24;e=K[c+60|0]|K[c+61|0]<<8|(K[c+62|0]<<16|K[c+63|0]<<24);g=K[c+56|0]|K[c+57|0]<<8|(K[c+58|0]<<16|K[c+59|0]<<24);x(0,g|0);x(1,e|0);A(+z());e=v(1)|0;g=v(0)|0;H[d+56|0]=g;H[d+57|0]=g>>>8;H[d+58|0]=g>>>16;H[d+59|0]=g>>>24;H[d+60|0]=e;H[d+61|0]=e>>>8;H[d+62|0]=e>>>16;H[d+63| -0]=e>>>24;d=bJ(K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24));c=f+J[a>>2]|0;H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;d=f+J[b>>2]|0;c=bJ(K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24));d=f+J[a>>2]|0;H[d+4|0]=c;H[d+5|0]=c>>>8;H[d+6|0]=c>>>16;H[d+7|0]=c>>>24;c=f+J[b>>2]|0;f=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);e=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);x(0,f|0);x(1,e|0);A(+z());f=v(1)|0;e=v(0)|0;H[d+8|0]=e;H[d+9|0]=e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;H[d+ -12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;c=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;c=P(h,48);d=c+J[a+4>>2]|0;c=c+J[b+4>>2]|0;f=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=e>>>16;H[d+3|0]=e>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;f=K[c+44|0]|K[c+45|0]<<8|(K[c+46|0]<<16|K[c+47|0]<<24);e=K[c+40|0]|K[c+ -41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);H[d+40|0]=e;H[d+41|0]=e>>>8;H[d+42|0]=e>>>16;H[d+43|0]=e>>>24;H[d+44|0]=f;H[d+45|0]=f>>>8;H[d+46|0]=f>>>16;H[d+47|0]=f>>>24;f=K[c+36|0]|K[c+37|0]<<8|(K[c+38|0]<<16|K[c+39|0]<<24);e=K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24);H[d+32|0]=e;H[d+33|0]=e>>>8;H[d+34|0]=e>>>16;H[d+35|0]=e>>>24;H[d+36|0]=f;H[d+37|0]=f>>>8;H[d+38|0]=f>>>16;H[d+39|0]=f>>>24;f=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);e=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<< -24);H[d+24|0]=e;H[d+25|0]=e>>>8;H[d+26|0]=e>>>16;H[d+27|0]=e>>>24;H[d+28|0]=f;H[d+29|0]=f>>>8;H[d+30|0]=f>>>16;H[d+31|0]=f>>>24;f=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);e=K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24);H[d+16|0]=e;H[d+17|0]=e>>>8;H[d+18|0]=e>>>16;H[d+19|0]=e>>>24;H[d+20|0]=f;H[d+21|0]=f>>>8;H[d+22|0]=f>>>16;H[d+23|0]=f>>>24;f=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10| -0]=c>>>16;H[d+11|0]=c>>>24;H[d+12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;h=h+1|0;if((h|0)>2])continue;break}return a|0}function wOa(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,y=0,z=0,A=0;h=bc-16|0;bc=h;J[h+4>>2]=0;c=h+12|0;LI(J[a+20>>2],c);a:{if(!Oi(J[a+20>>2],c,h+8|0,h+4|0))break a;while(1){if(Be(J[b+4>>2],J[J[h+8>>2]+4>>2])){b=J[h+12>>2];if(b)qc(b);J[h+12>>2]=0;break a}J[h+4>>2]=0;if(Oi(J[a+20>>2],h+12|0,h+ -8|0,h+4|0))continue;break}}b=J[h+4>>2];b:{if(!b)break b;r=UZ(J[a+420>>2],b);if(r)break b;r=0;b=0;g=bc-320|0;bc=g;c:{d:{e:{m=J[h+4>>2];o=Zm(J[m+4>>2],774723);f:{if(!o){J[g>>2]=m;xc(1,-1,776491,g);break f}n=4096;l=vd(4096,4);wc(l,0,16384);g:{if(!aw(g- -64|0,o))break g;while(1){s=s+1|0;h:{c=Cg(g- -64|0,777769);if(!c)break h;k=0;b=0;e=Qc(c);if((e|0)>0)while(1){j=J[(K[b+c|0]<<2)+2199392>>2];if((j|0)<0)break h;k=j+(k<<4)|0;b=b+1|0;if((e|0)!=(b|0))continue;break}c=Cg(0,777769);if(!c)break h;j=0;b=0;i:{j:{k:{e= -Qc(c);if((e|0)>0)while(1){d=J[(K[b+c|0]<<2)+2199392>>2];if((d|0)<0)break k;j=d+(j<<4)|0;b=b+1|0;if((e|0)!=(b|0))continue;break}d=Cg(0,777769);if(!d){e=1;break i}l:{f=Qc(d);if((f|0)<=0){t=0;break l}b=0;e=1;t=0;c=J[(K[d|0]<<2)+2199392>>2];if((c|0)<0)break j;while(1){t=(t<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break l;c=J[(K[b+d|0]<<2)+2199392>>2];if((c|0)>=0)continue;break}break j}d=Cg(0,777769);if(!d){e=2;break i}m:{f=Qc(d);if((f|0)<=0){u=0;break m}e=2;b=0;u=0;c=J[(K[d|0]<<2)+2199392>>2];if((c|0)<0)break j; -while(1){u=(u<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break m;c=J[(K[b+d|0]<<2)+2199392>>2];if((c|0)>=0)continue;break}break j}d=Cg(0,777769);if(!d){e=3;break i}n:{f=Qc(d);if((f|0)<=0){v=0;break n}b=0;e=3;v=0;c=J[(K[d|0]<<2)+2199392>>2];if((c|0)<0)break j;while(1){v=(v<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break n;c=J[(K[b+d|0]<<2)+2199392>>2];if((c|0)>=0)continue;break}break j}d=Cg(0,777769);if(!d){e=4;break i}o:{f=Qc(d);if((f|0)<=0){w=0;break o}b=0;e=4;w=0;c=J[(K[d|0]<<2)+2199392>>2];if((c|0)<0)break j;while(1){w= -(w<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break o;c=J[(K[b+d|0]<<2)+2199392>>2];if((c|0)>=0)continue;break}break j}d=Cg(0,777769);if(!d){e=5;break i}p:{f=Qc(d);if((f|0)<=0){x=0;break p}b=0;e=5;x=0;c=J[(K[d|0]<<2)+2199392>>2];if((c|0)<0)break j;while(1){x=(x<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break p;c=J[(K[b+d|0]<<2)+2199392>>2];if((c|0)>=0)continue;break}break j}d=Cg(0,777769);if(!d){e=6;break i}q:{f=Qc(d);if((f|0)<=0){y=0;break q}b=0;e=6;y=0;c=J[(K[d|0]<<2)+2199392>>2];if((c|0)<0)break j;while(1){y=(y<<4)+ -c|0;b=b+1|0;if((f|0)==(b|0))break q;c=J[(K[b+d|0]<<2)+2199392>>2];if((c|0)>=0)continue;break}break j}d=Cg(0,777769);if(!d){e=7;break i}e=8;f=Qc(d);if((f|0)<=0){i=0;break i}i=0;b=0;c=J[(K[d|0]<<2)+2199392>>2];if((c|0)<0){e=7;break j}r:{while(1){b=(b<<4)+c|0;i=i+1|0;if((f|0)==(i|0))break r;c=J[(K[d+i|0]<<2)+2199392>>2];if((c|0)>=0)continue;break}i=b;e=7;break j}i=b;break i}J[g+36>>2]=m;J[g+32>>2]=s;xc(0,-1,778917,g+32|0);break h}J[g+52>>2]=m;J[g+48>>2]=s;xc(0,-1,778917,g+48|0)}c=n;if(k>>>0>=c>>>0){while(1){b= -c;c=b<<1;if(b>>>0<=k>>>0)continue;break}l=Nd(l,b,4);wc(l+(n<<2)|0,0,b-n<<2);n=b}s:{if((e|0)==1){J[(k<<2)+l>>2]=j;break s}J[(k<<2)+l>>2]=0;if((p|0)==(z|0)){z=p+16|0;A=Nd(A,z,40)}b=P(p,40)+A|0;J[b+4>>2]=j;J[b>>2]=k;t:{if((e|0)==1)break t;J[b+8>>2]=t;if((e|0)==2)break t;J[b+12>>2]=u;if((e|0)==3)break t;J[b+16>>2]=v;if((e|0)==4)break t;J[b+20>>2]=w;if((e|0)==5)break t;J[b+24>>2]=x;if((e|0)==6)break t;J[b+28>>2]=y;if((e|0)==7)break t;J[b+32>>2]=i}J[b+36>>2]=e;p=p+1|0}q=k>>>0>>0?q:k+1|0;if(aw(g- -64| -0,o))continue;break g}J[g+20>>2]=m;J[g+16>>2]=s;xc(0,-1,778917,g+16|0);if(aw(g- -64|0,o))continue;break}}fg(o);b=rc(28);J[695492]=0;c=$(4,8)|0;i=J[695492];J[695492]=0;if((i|0)==1)break e;J[695492]=0;i=aa(3183,c|0,m|0)|0;n=J[695492];J[695492]=0;if((n|0)==1){j=Z()|0;qc(c);break d}J[b+8>>2]=q;J[b>>2]=i;J[695492]=0;c=aa(3376,q|0,4)|0;i=J[695492];J[695492]=0;if((i|0)==1)break e;J[b+4>>2]=c;tc(c,l,q<<2);J[b+24>>2]=1;J[b+20>>2]=z;J[b+16>>2]=p;J[b+12>>2]=A;Gc(l)}bc=g+320|0;break c}j=Z()|0}qc(b);ba(j|0);B()}if(!b)break b; -TZ(J[a+420>>2],b);r=b}bc=h+16|0;return r|0}function iN(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+512>>2];a:{b:{c:{d:{e:{if(!K[a+288|0]){J[a+992>>2]=0;J[a+984>>2]=0;J[a+988>>2]=0;J[a+976>>2]=0;J[a+968>>2]=0;J[a+1012>>2]=0;J[a+2544>>2]=0;J[a+2548>>2]=0;J[a+608>>2]=0;J[a+536>>2]=0;b=a+2552|0;J[b>>2]=0;J[b+4>>2]=0;J[a+2560>>2]=0;e=a+498|0;if(K[a+498|0])break c;if(!c)break e;b=dk(a,c,J[a+316>>2],J[a+320>>2],K[a+337|0],K[a+336|0],K[a+341|0],K[a+342|0],K[a+343|0],1);d=c;break d}if(K[a+498|0])break b;f:switch(K[a+ -2253|0]){case 0:e=a+498|0;b=dk(a,J[a+2248>>2],J[a+316>>2],J[a+320>>2],K[a+337|0],K[a+336|0],K[a+341|0],K[a+342|0],K[a+343|0],1);d=J[a+2248>>2];break d;case 1:case 4:b=J[J[a+2248>>2]+88>>2];H[b+53|0]=K[a+337|0];H[b+54|0]=K[a+340|0];break b;case 2:case 5:H[J[J[a+2248>>2]+88>>2]+54|0]=K[a+340|0];break b;case 3:case 6:break f;default:break b}H[J[J[a+2248>>2]+88>>2]+53|0]=K[a+337|0];break b}b=dk(a,J[a+528>>2],J[a+316>>2],J[a+320>>2],K[a+337|0],K[a+336|0],K[a+341|0],K[a+342|0],K[a+343|0],1);d=J[a+528>> -2]}d=J[d+88>>2];f=K[a+340|0];H[d+50|0]=f;H[d+51|0]=K[a+338|0];g=K[a+339|0];H[d+54|0]=f;H[d+52|0]=g;if(b)break a;if(K[a+288|0])break b}c=c?c:J[a+528>>2];J[a+536>>2]=c;if(!K[c+31|0]&J[a+12>>2]!=3|(K[c+64|0]|K[c+65|0]))break b;mN(a);H[a+498|0]=0;if(K[a+497|0]){H[e|0]=7;break b}if(!K[a+496|0]|J[a+676>>2]<=J[a+672>>2]|J[a+684>>2]<=J[a+680>>2])break b;Ox(a);J[a+544>>2]=J[a+536>>2]}b=0;if(K[a+497|0])break a;J[a+1012>>2]=1250;g:{h:{i:{j:{if(!K[a+288|0])break j;switch(K[a+2253|0]){case 2:case 5:break h;case 0:break j; -default:break i}}b=K[a+337|0];k:{if((b|0)==8){H[a+648|0]=0;J[a+588>>2]=J[a+316>>2];l:switch(K[a+336|0]-8|0){case 0:J[a+980>>2]=1150;J[a+2544>>2]=1251;H[a+649|0]=1;break k;case 2:J[a+980>>2]=1152;J[a+2544>>2]=1252;H[a+649|0]=1;break k;case 4:J[a+980>>2]=1155;J[a+2544>>2]=1253;H[a+649|0]=0;break k;case 6:break l;default:break k}J[a+980>>2]=1023;J[a+2544>>2]=1254;H[a+649|0]=0;break k}H[a+648|0]=1}m:{n:switch(K[a+341|0]){case 0:o:switch(K[a+340|0]-1|0){case 0:J[a+1012>>2]=1255;break m;case 1:J[a+1012>> -2]=1256;break m;case 3:J[a+1012>>2]=1257;break m;case 7:J[a+1012>>2]=1258;break m;case 15:break o;default:break m}J[a+1012>>2]=1259;break m;case 8:break n;default:break m}if((b|0)!=8)break m;p:switch(K[a+336|0]-12|0){case 0:J[a+2548>>2]=1260;break m;case 2:break p;default:break m}J[a+2548>>2]=1261}q:{r:{s:{if(J[a+2456>>2])break s;b=gc[J[a+152>>2]](132)|0;J[a+2456>>2]=b;if(b)break s;break r}t:{if(J[a+2460>>2])break t;b=gc[J[a+152>>2]](28)|0;J[a+2460>>2]=b;if(b)break t;break r}u:{b=J[a+2452>>2];if(b)break u; -b=gc[J[a+152>>2]](488)|0;J[a+2452>>2]=b;if(b)break u;break r}J[b+12>>2]=a;v:{if(J[a+2468>>2])break v;b=gc[J[a+152>>2]](132)|0;J[a+2468>>2]=b;if(b)break v;break r}w:{if(J[a+2472>>2])break w;b=gc[J[a+152>>2]](28)|0;J[a+2472>>2]=b;if(b)break w;break r}x:{b=J[a+2464>>2];if(b)break x;b=gc[J[a+152>>2]](488)|0;J[a+2464>>2]=b;if(b)break x;break r}J[b+12>>2]=a;y:{if(J[a+2448>>2])break y;b=gc[J[a+152>>2]](132)|0;J[a+2448>>2]=b;if(b)break y;break r}z:{b=J[a+2444>>2];if(b)break z;b=gc[J[a+152>>2]](432)|0;J[a+ -2444>>2]=b;if(b)break z;break r}J[b+12>>2]=a;A:{b=J[a+2476>>2];if(b)break A;J[a+2480>>2]=65500;b=gc[J[a+152>>2]](65500)|0;J[a+2476>>2]=b;if(b)break A;break r}B:{c=J[a+2496>>2];if(!c){J[a+2500>>2]=65500;c=gc[J[a+152>>2]](65500)|0;J[a+2496>>2]=c;if(!c)break B;b=J[a+2476>>2]}J[a+2516>>2]=0;J[a+2520>>2]=0;J[a+2484>>2]=b;J[a+2524>>2]=0;J[a+2528>>2]=0;J[a+2508>>2]=0;J[a+2512>>2]=0;J[a+2504>>2]=c;J[a+2488>>2]=0;J[a+2492>>2]=0;J[a+2552>>2]=0;J[a+2556>>2]=0;H[a+2539|0]=0;H[a+2540|0]=0;H[a+2541|0]=0;H[a+2542| -0]=0;b=a+2530|0;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;b=a+2560|0;J[b>>2]=0;J[b+4>>2]=0;b=0;break q}Dc(a,1,0,0);b=1;break q}Dc(a,1,0,0);b=1}if(!b)break g;break a}Dc(a,1053,0,0);return 1053}b=1220;C:{D:switch(K[a+340|0]-1|0){case 1:b=1222;break C;case 3:b=1224;break C;case 7:b=1226;break C;case 0:break C;case 15:break D;default:break g}b=1228}J[a+1012>>2]=b}J[a+620>>2]=0;J[a+624>>2]=0;J[a+612>>2]=0;J[a+616>>2]=1;J[a+628>>2]=0;J[a+632>>2]=0;b=0}return b}function KH(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,w=0,x=0;c=bc-1600|0;bc=c;s=wc(c,0,1600);v=J[b+8>>2];if((v|0)>0){k=O[a+112>>3];l=O[a+120>>3];j=J[b>>2];while(1){t=J[j+(e<<2)>>2];i=W(O[t+40>>3]*20/l);a:{if(R(i)<2147483648){c=~~i;break a}c=-2147483648}w=(c|0)>=19?19:c;o=O[t+24>>3]*20;i=V(o/l);b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}m=(c|0)>0?c:0;i=W(o/k);c:{if(R(i)<2147483648){g=~~i;break c}g=-2147483648}h=(m|0)>(w|0);i=V(O[t+16>>3]*20/k);d:{if(R(i)<2147483648){c=~~i;break d}c= --2147483648}e:{if(h)break e;h=(c|0)>0?c:0;d=(g|0)>=19?19:g;if((h|0)>(d|0))break e;while(1){f=P(m,80)+s|0;c=h;while(1){u=rc(8);g=f+(c<<2)|0;J[u+4>>2]=J[g>>2];J[u>>2]=t;J[g>>2]=u;g=(c|0)<(d|0);c=c+1|0;if(g)continue;break}c=(m|0)<(w|0);m=m+1|0;if(c)continue;break}}e=e+1|0;if((v|0)!=(e|0))continue;break}}f=0;while(1){g=0;h=P(n,80)+s|0;while(1){f:{e=J[h+(g<<2)>>2];if(!e)break f;while(1){c=J[e+4>>2];if(!c)break f;j=J[e>>2];x=O[j+64>>3];e=c;while(1){d=J[c>>2];i=O[d+64>>3];g:{if(!(i!=x|O[j+72>>3]!=O[d+72>> -3])&O[j+80>>3]==O[d+80>>3])break g;p=O[j+32>>3];q=O[j+16>>3];r=p-q;k=O[d+32>>3];l=O[d+16>>3];o=k-l;if(!(((k>p?p:k)-(lr?r:o)>.3))break g;p=O[j+40>>3];q=O[j+24>>3];r=p-q;k=O[d+40>>3];l=O[d+24>>3];o=k-l;if(!(((k>p?p:k)-(lr?r:o)>.3))break g;f=1;H[(x+O[j+72>>3]+O[j+80>>3]>3]+O[d+80>>3]?d:j)+93|0]=1}c=J[c+4>>2];if(c)continue;break}continue}}g=g+1|0;if((g|0)!=20)continue;break}n=n+1|0;if((n|0)!=20)continue;break}m=0;h:{if(J[a+52>>2]!=1)break h;c=rc(16);J[695492]=0;m=$(3185, -c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;qc(c);ba(a|0);B()}i:{if(!f)break i;bl(b,3483);n=J[b+8>>2];if((n|0)<=0)break i;c=0;while(1){g=J[b>>2];d=J[g+(c<<2)>>2];j:{if(K[d+93|0]){h=c>>31&c;e=c;while(1){k:{a=e;if((a|0)<=0){a=h;break k}e=a-1|0;f=J[g+(e<<2)>>2];if(O[f+64>>3]!=O[d+64>>3]|O[f+72>>3]!=O[d+72>>3]|O[f+80>>3]!=O[d+80>>3])break k;if(K[f+88|0]==K[d+88|0])continue}break}e=c+1|0;h=((e|0)<(n|0)?n:e)-1|0;while(1){l:{e=c;c=c+1|0;if((n|0)<=(c|0)){e=h;break l}f=J[g+(c<<2)>>2];if(O[f+ -64>>3]!=O[d+64>>3]|O[f+72>>3]!=O[d+72>>3]|O[f+80>>3]!=O[d+80>>3])break l;if(K[f+88|0]==K[d+88|0])continue}break}if((a|0)>(e|0))break j;c=a;if(!m){while(1){h=J[J[b>>2]+(a<<2)>>2];if(h)qc(h);cj(b,a);h=(c|0)==(e|0);c=c+1|0;if(!h)continue;break}break j}while(1){id(m,J[J[b>>2]+(a<<2)>>2]);cj(b,a);h=(c|0)==(e|0);c=c+1|0;if(!h)continue;break}break j}a=c+1|0}c=a;n=J[b+8>>2];if((c|0)<(n|0))continue;break}}f=0;while(1){b=P(f,80)+s|0;c=J[b>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+4>> -2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+8>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+12>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+16>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+20>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+24>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+28>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+32>>2];if(c)while(1){a= -J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+36>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+40>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+44>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+48>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+52>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+56>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+60>>2];if(c)while(1){a=J[c+4>>2];qc(c);c= -a;if(c)continue;break}c=J[b+64>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+68>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+72>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}c=J[b+76>>2];if(c)while(1){a=J[c+4>>2];qc(c);c=a;if(c)continue;break}f=f+1|0;if((f|0)!=20)continue;break}bc=s+1600|0;return m}function ezb(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;J[a+76>>2]=0;J[a+80>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+56>>2]=0; -e=J[b+8>>2];a:{b:{c:{if(e&7)break c;d:{e:{f:{d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break g}e=jd(b,1);if((e|0)==-1)break c}H[a+12|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;h:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break h}e=jd(b,1);if((e|0)==-1)break c}H[a+13|0]=e;e=J[b+8>>2];if(e& -7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;i:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break i}e=jd(b,1);if((e|0)==-1)break c}H[a+52|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;j:{if((d|0)<=0){if((jd(b,1)|0)!=-1)break j;break c}J[b+60>>2]=J[b+60>>2]+1;J[b+24>>2]=J[b+24>>2]+1}if(Ye(b,a+16|0))break c;if(Ye(b,a+20|0))break c;if(Ye(b,a+24|0))break c;if(Ye(b, -a+28|0))break c;if(Ye(b,a+32|0))break c;if(Ye(b,a+36|0))break c;if(Ye(b,a+40|0))break c;if(Ye(b,a+44|0))break c;if(Ye(b,a+48|0))break c;if(Fj(b,a+60|0))break c;if(Fj(b,a+72|0))break c;h=K[a+12|0];k:{if(!h){f=1;break k}d=K[a+52|0];e=h&7;l:{if(h>>>0<8){f=1;break l}h=h&248;f=1;while(1){f=P(d,P(d,P(d,P(d,P(d,P(d,P(d,P(d,f))))))));g=g+8|0;if((h|0)!=(g|0))continue;break}}if(!e)break k;g=0;while(1){f=P(d,f);g=g+1|0;if((e|0)!=(g|0))continue;break}}k=P(K[a+13|0],f);d=zc(k<<2);J[a+56>>2]=d;if(!d)break b;d= -zc(P(K[a+12|0],J[a+60>>2])<<2);J[a+68>>2]=d;if(!d)break c;d=zc(K[a+12|0]<<2);J[a+64>>2]=d;if(!d)break c;h=K[a+12|0];m:{if(!h)break m;d=J[a+60>>2];g=0;e=0;if(h>>>0>=4){f=h&252;while(1){J[J[a+64>>2]+(e<<2)>>2]=J[a+68>>2]+(P(d,e)<<2);i=e|1;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+(P(d,i)<<2);i=e|2;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+(P(d,i)<<2);i=e|3;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+(P(d,i)<<2);e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}h=h&3;if(!h)break m;while(1){J[J[a+64>>2]+(e<<2)>>2]=J[a+68>>2]+ -(P(d,e)<<2);e=e+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}}d=zc(P(K[a+13|0],J[a+72>>2])<<2);J[a+80>>2]=d;if(!d)break c;d=zc(K[a+13|0]<<2);J[a+76>>2]=d;if(!d)break c;h=K[a+13|0];n:{if(!h)break n;d=J[a+72>>2];g=0;e=0;if(h>>>0>=4){f=h&252;j=0;while(1){J[J[a+76>>2]+(e<<2)>>2]=J[a+80>>2]+(P(d,e)<<2);i=e|1;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+(P(d,i)<<2);i=e|2;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+(P(d,i)<<2);i=e|3;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+(P(d,i)<<2);e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f= -h&3;if(!f)break n;while(1){J[J[a+76>>2]+(e<<2)>>2]=J[a+80>>2]+(P(d,e)<<2);e=e+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}j=K[a+12|0];if(!j)break d;f=0;g=J[a+60>>2];if((g|0)<=0)break d;while(1){e=0;if((g|0)>0){while(1){if(Fj(b,J[J[a+64>>2]+(f<<2)>>2]+(e<<2)|0))break c;e=e+1|0;g=J[a+60>>2];if((e|0)<(g|0))continue;break}j=K[a+12|0]}f=f+1|0;if(f>>>0<(j&255)>>>0)continue;break}break e}J[b+8>>2]=e|4;break c}h=K[a+13|0]}f=0;d=0;o:{if(!h)break o;g=0;j=J[a+72>>2];if((j|0)<=0){d=h;break o}d=h;while(1){e=0; -if((j|0)>0){while(1){if(Fj(b,J[J[a+76>>2]+(g<<2)>>2]+(e<<2)|0))break c;e=e+1|0;j=J[a+72>>2];if((e|0)<(j|0))continue;break}d=K[a+13|0]}g=g+1|0;if(g>>>0<(d&255)>>>0)continue;break}}if((k|0)>0){while(1){if(Fj(b,J[a+56>>2]+(f<<2)|0))break c;f=f+1|0;if((k|0)!=(f|0))continue;break}d=K[a+13|0]}h=d&255;d=K[a+12|0];g=P(d,J[a+60>>2]);j=J[a+72>>2];e=1;p:{if(!d)break p;b=K[a+52|0];if(d>>>0>=8){k=d&248;f=0;while(1){e=P(b,P(b,P(b,P(b,P(b,P(b,P(b,P(b,e))))))));f=f+8|0;if((k|0)!=(f|0))continue;break}}d=d&7;if(!d)break p; -f=0;while(1){e=P(b,e);f=f+1|0;if((d|0)!=(f|0))continue;break}}b=0;if(((g+P(h,e+j|0)<<1)+44|0)==(c|0))break a}b=J[a+56>>2];if(!b)break b;qc(b)}b=J[a+64>>2];if(b)qc(b);b=J[a+68>>2];if(b)qc(b);b=J[a+76>>2];if(b)qc(b);b=-1;a=J[a+80>>2];if(!a)break a;qc(a)}return b|0}function _pb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;a:{f=K[a+286|0];if(!(f|K[a+287|0]|(K[a+288|0]|K[a+289|0])))break a;if(K[a+290|0]|!(!K[a+289|0]|!K[a+341|0]))break a; -if(!(!K[a+288|0]|K[a+2253|0]!=7)){Dc(a,1030,0,0);return 1030}if(!(K[a+287|0]|c)){Dc(a,1028,0,0);return 1028}if(!(K[a+293|0]|(!f|K[a+325|0]!=3))){Dc(a,1032,0,0);return 1032}H[a+300|0]=1;b:{if(c){c:{if(K[a+477|0]){H[a+477|0]=0;f=Eo(a);if(f)break c;J[a+440>>2]=J[a+440>>2]+1}f=J[a+1012>>2];if(f){f=gc[f|0](a)|0;J[a+1012>>2]=0;if(f)break c}if(!K[a+2420|0]){f=D8(a);if(f)break c}J[a+2340>>2]=d;J[a+2344>>2]=c;if(!J[a+2352>>2]){J[a+2352>>2]=J[a+636>>2];J[a+2356>>2]=J[a+616>>2]+J[a+604>>2]}d:{e:{s=a+2340|0; -p=zk(s,2);if(p>>>0<=1)while(1){if(!J[a+2356>>2]){f:{if(J[a+572>>2]>=J[a+320>>2])break f;f=J[a+612>>2];g:{if((f|0)>=J[a+616>>2])break g;j=J[a+636>>2];if(!K[j+f|0])break g;i=0;k=1039;h:{i:{j:{k:{l:switch(K[f+j|0]-1|0){case 0:k=0;h=J[a+652>>2];if((h|0)>=J[a+604>>2])break i;g=j+J[a+616>>2]|0;f=h+g|0;while(1){H[f|0]=K[g|0]+K[f|0];g=g+1|0;f=f+1|0;h=h+1|0;if((h|0)>2])continue;break}break i;case 1:f=0;if(J[a+604>>2]<=0)break h;h=J[a+616>>2];f=h+j|0;g=h+J[a+640>>2]|0;k=0;h=0;while(1){H[f|0]=K[g|0]+ -K[f|0];g=g+1|0;f=f+1|0;h=h+1|0;if((h|0)>2])continue;break}break i;case 2:f=J[a+616>>2];g=f+J[a+640>>2]|0;h=f+j|0;j=J[a+652>>2];if((j|0)<=0){f=h;break j}k=j&3;if(j>>>0<4){f=h;break k}l=j&-4;f=h;while(1){H[f|0]=K[f|0]+(K[g|0]>>>1|0);H[f+1|0]=K[f+1|0]+(K[g+1|0]>>>1|0);H[f+2|0]=K[f+2|0]+(K[g+2|0]>>>1|0);H[f+3|0]=K[f+3|0]+(K[g+3|0]>>>1|0);g=g+4|0;f=f+4|0;i=i+4|0;if((l|0)!=(i|0))continue;break}break k;case 3:break l;default:break i}f=J[a+616>>2];h=f+J[a+640>>2]|0;g=h;j=f+j|0;f=j;l=J[a+652>>2]; -m:{if((l|0)<=0)break m;if(l>>>0>=4){k=l&-4;while(1){H[f|0]=K[g|0]+K[f|0];H[f+1|0]=K[g+1|0]+K[f+1|0];H[f+2|0]=K[g+2|0]+K[f+2|0];H[f+3|0]=K[g+3|0]+K[f+3|0];g=g+4|0;f=f+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}k=l&3;if(!k)break m;i=0;while(1){H[f|0]=K[g|0]+K[f|0];g=g+1|0;f=f+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}}k=0;if(J[a+604>>2]<=(l|0))break i;while(1){i=K[g|0];o=K[j|0];r=K[h|0];m=(i+o|0)-r|0;n=m-r|0;q=n>>31;q=(n^q)-q|0;t=m-o|0;n=t>>31;u=m-i|0;m=u>>31;n=(n^t)-n|0;m=(m^u)-m|0;n:{if(!(n>>>0> -m>>>0|n>>>0>q>>>0)){i=o+K[f|0]|0;break n}o=K[f|0];i=o+i|0;if(m>>>0<=q>>>0)break n;i=o+r|0}H[f|0]=i;h=h+1|0;j=j+1|0;g=g+1|0;f=f+1|0;l=l+1|0;if((l|0)>2])continue;break}break i}if(!k)break j;i=0;while(1){H[f|0]=K[f|0]+(K[g|0]>>>1|0);g=g+1|0;f=f+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}}k=0;if(J[a+604>>2]<=(j|0))break i;while(1){H[f|0]=K[f|0]+(K[g|0]+K[h|0]>>>1|0);h=h+1|0;g=g+1|0;f=f+1|0;j=j+1|0;if((j|0)>2])continue;break}}f=k}if(f)break e}f=J[a+992>>2];if(f){f=gc[f|0](a)|0;v=a,w= -Izb(J[a+636>>2],J[a+640>>2],32),J[v+636>>2]=w;J[a+640>>2]=fc;if(f)break e}o:{p:{if(K[a+289|0]){f=J[a+984>>2];if(!f)break o;f=gc[f|0](a)|0;break p}f=J[a+988>>2];if(f){f=gc[f|0](a)|0;if(f)break e}f=J[a+984>>2];if(f){f=gc[f|0](a)|0;if(f)break e}f=J[a+976>>2];if(f){f=gc[f|0](a)|0;if(f)break e}f=J[a+968>>2];if(!f)break o;f=gc[f|0](a)|0;if(f)break e;q:{if(!K[a+115|0]|J[a+12>>2]==2&M[a+320>>2]<301)break q;f=J[a+680>>2];if(J[a+516>>2]|(J[a+684>>2]-f|0)<51|((f+J[a+572>>2]|0)-J[a+664>>2]|0)%20)break q;H[a+ -502|0]=1}f=0}if(!f)break o;break e}if(!J[a+992>>2]){v=a,w=Izb(J[a+636>>2],J[a+640>>2],32),J[v+636>>2]=w;J[a+640>>2]=fc}f=Jr(a);if(!f)break f;break e}J[a+2352>>2]=J[a+636>>2];J[a+2356>>2]=J[a+616>>2]+J[a+604>>2]}r:{s:{if(!(!J[a+2344>>2]|p)){if(J[a+572>>2]>2]|K[a+568|0]<7)break r;f=1047;if(!Dc(a,1047,0,0))break s}f=0}break d}p=zk(s,2);if(p>>>0<2)continue;break}Dc(a,5,p,0);f=5;break d}Dc(a,f,0,0)}}if(f)break b}t:{if(!K[a+112|0])break t;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break b;b=J[e>>2];J[b+36>> -2]=c;f=b;b=!c;H[f+32|0]=b;if(b)break t;b=gc[J[a+152>>2]](c)|0;J[J[e>>2]+40>>2]=b;b=J[J[e>>2]+40>>2];if(!b){Dc(a,1,0,0);return 1}tc(b,d,c)}f=0}return f|0}Dc(a,1029,0,0);return 1029}function vw(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;k=bc-16|0;bc=k;a:{if(!a)break a;b:switch(J[a+4>>2]-2|0){case 0:e=Z$(b,c,a);break a;case 16:while(1){d=0;if(J[a+4>>2]==18)d=hl(0,J[a+8>>2],J[a+12>>2]);e=d;if(g){J[g>>2]=e;e=f}g=d;f=e;a=J[a>>2];if(a)continue;break}break a;case 7:case 11:e=0;c:{if(!a)break c;f=wp(J[a+ -56>>2]);e=0;if(!f)break c;e=a;a=J[a+8>>2];if(a)l=f,m=gc[J[659453]](a)|0,J[l+8>>2]=m;b=J[e+60>>2];if(b){a=b;while(1){c=a;a=a+1|0;if(K[c|0])continue;break}a=0;c=c-b|0;d:{if((c|0)<0)break d;i=gc[J[659450]](c+1|0)|0;if(!i){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}a=tc(i,b,c);H[c+a|0]=0}J[f+60>>2]=a}b=J[e+72>>2];if(b){a=b;while(1){c=a;a=a+1|0;if(K[c|0])continue;break}a=0;c=c-b|0;e:{if((c|0)<0)break e;i=gc[J[659450]](c+1|0)|0;if(!i){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break e}a=tc(i,b,c);H[c+a|0]=0}J[f+ -72>>2]=a}J[f+76>>2]=J[e+76>>2];J[f+36>>2]=J[e+36>>2];J[f+40>>2]=J[e+40>>2];f:{if(!d)break f;J[f+12>>2]=0;J[f+16>>2]=0;a=J[e+44>>2];if(a){a=BJ(a);J[f+44>>2]=a;if(!a){cr(f);e=0;break c}im(a,f);J[J[f+44>>2]+20>>2]=f}g=J[e+52>>2];if(g){c=0;d=0;while(1){a=0;if(J[g+4>>2]==18)a=hl(0,J[g+8>>2],J[g+12>>2]);b=a;if(c){J[c>>2]=a;b=d}c=a;d=b;g=J[g>>2];if(g)continue;break}J[f+52>>2]=b}g=J[e+12>>2];if(!g)break f;b=0;c=0;while(1){g:{h:{if(J[g+4>>2]==14){a=J[f+44>>2];if(!a){a=BJ(g);if(!a)break h;J[a+20>>2]=f;J[a+ -32>>2]=f;J[f+44>>2]=a}Ug(f,a);break g}a=vw(g,f,f,1);if(a)break g}J[f+12>>2]=0;J[f+16>>2]=0;break f}i:{j:{if(!c){b=0;c=a;break j}if((a|0)==(b|0))break i;J[b+24>>2]=a}J[a+28>>2]=b;b=a}g=J[g+24>>2];if(g)continue;break}J[f+12>>2]=c;while(1){a=c;c=J[a+24>>2];if(c)continue;break}J[f+16>>2]=a;e=f;break c}e=f}break a;case 8:case 10:case 12:case 13:case 14:case 15:break a;default:break b}f=gc[J[659447]](60)|0;if(!f){J[k>>2]=14550;Cc(0,0,0,0,0,2,2,3,14550,0,0,0,32863,k);break a}J[f>>2]=0;J[f+4>>2]=0;J[f+56>> -2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;e=J[a+4>>2];J[f+32>>2]=b;J[f+4>>2]=e;J[f+20>>2]=c;g=J[a+8>>2];e=773004;k:{l:{if((g|0)==773004)break l;e=773009;if((g|0)==773009)break l;e=773019;if((g|0)==773019)break l;if(!g)break k;m:{if(!b)break m;e=J[b+80>>2];if(!e)break m;e=le(e,g,-1);break l}e=$e(g)}J[f+8>>2]=e}e=J[a+4>>2];n:{if((e|0)!=1){g=J[a+40>>2];if(!g|(1<>>0<=20:0))break n; -l=f,m=$e(g),J[l+40>>2]=m;break n}I[f+56>>1]=L[a+56>>1]}if(c){o:{if(!J[689540])break o;e=J[689537];if(!e)break o;gc[e|0](f)}e=Ug(c,f);if((f|0)!=(e|0))break a}p:{if(!d)break p;e=J[a+4>>2]-1|0;q:{if((e|0)!=18?e:0)break q;h=J[a+48>>2];if(!h)break q;e=0;if(h)while(1){g=0;if(J[h+4>>2]==18)g=hl(0,J[h+8>>2],J[h+12>>2]);e=g;if(j){J[j>>2]=e;e=i}j=g;i=e;h=J[h>>2];if(h)continue;break}J[f+48>>2]=e}e=J[a+36>>2];if(e){e=jl(b,f,J[e+12>>2]);r:{if(e)break r;g=jl(J[a+32>>2],a,J[J[a+36>>2]+12>>2]);if(g){e=f;while(1){i= -e;e=J[e+20>>2];if(e)continue;break}e=hl(i,J[g+8>>2],J[g+12>>2]);break r}e=Y$(b,f,J[a+36>>2])}J[f+36>>2]=e}e=J[a+4>>2];i=e-1|0;s:{if((i|0)!=18?i:0)break s;h=J[a+44>>2];if(!h)break s;e=0;j=0;i=0;t:{u:{if(f){if(!h|J[f+4>>2]!=1)break t;break u}if(h)break u;break t}while(1){e=0;g=Z$(0,f,h);if(!g)break t;e=g;if(j){J[j+24>>2]=e;J[e+28>>2]=j;e=i}j=g;i=e;h=J[h+24>>2];if(h)continue;break}}J[f+44>>2]=e;e=J[a+4>>2]}v:{if((e|0)==5){if(!b){a=Qi(J[f+8>>2]);J[f+12>>2]=a;break v}if(J[a+32>>2]!=(b|0)){a=J[f+8>>2]; -w:{x:{if(!b)break x;d=J[b+44>>2];y:{if(!d)break y;d=J[d+48>>2];if(!d)break y;d=tf(d,a,0,0);if(d)break w}if(J[b+40>>2]==1)break x;b=J[b+48>>2];if(!b)break x;b=J[b+48>>2];if(!b)break x;d=tf(b,a,0,0);if(d)break w}d=Qi(a)}a=d;J[f+12>>2]=a;break v}a=J[a+12>>2];J[f+12>>2]=a;break v}if((d|0)==2)break p;a=J[a+12>>2];if(!a)break p;d=W$(a,b,f);J[f+12>>2]=d;if(!d){a=0;break v}e=J[d+24>>2];z:{if(!e){a=d;break z}while(1){J[d+20>>2]=f;a=e;d=a;e=J[a+24>>2];if(e)continue;break}}J[a+20>>2]=f}J[f+16>>2]=a}A:{if(!J[689540]| -c)break A;a=J[689537];if(!a)break A;gc[a|0](f)}e=f}bc=k+16|0;return e}function w8a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=bc-176|0;bc=f;a:{b:{g=J[d+88>>2];c:{if(!g)break c;h=J[d+76>>2];i=h+b|0;if((i|0)<0)break c;m=J[a+1620>>2];if((m|0)<=(b|0))break c;p=J[d+80>>2];d=p+c|0;if((d|0)<0)break c;j=K[(a+96|0)+1468|0];if(!((d|0)>=J[a+1624>>2]|(i|0)>=(m|0)|(j|(b|c)<0))){m=c;c=h;d=g;l=bc-16|0;bc=l;J[l+12>>2]=-16777216;J[l+12>>2]=J[e+8>>2]; -J[l+4>>2]=a+1636;J[l+8>>2]=J[l+12>>2];i=l+8|0;d:{if(J[a+2932>>2]==3){if((p|0)<=0)break d;h=(c|0)/3|0;s=P(h,3);while(1){e=h;a=d;j=m+n|0;g=J[l+4>>2];e:{if((j|0)>J[g+16>>2]|(j|0)>2])break e;c=J[g+4>>2];f:{if((c|0)<=(b|0)){c=b;break f}e=(b-c|0)+e|0;if((e|0)<=0)break e;a=P(c-b|0,3)+a|0}k=J[g+12>>2];if((k|0)<(c+e|0)){e=k-c|0;if((e|0)<0)break e;e=e+1|0}if(!K[i+3|0])break e;k=0;g=J[J[g>>2]>>2];r=J[g+4>>2];q=J[g+16>>2];g:{h:{if((q|0)>=0){g=P(j,q);break h}o=r-J[g>>2]|0;g=P(j,q);if((o|0)<(0-g|0))break g}k= -g+r|0}g=(c<<2)+k|0;while(1){j=K[a+2|0];k=K[i+2|0];r=K[a+1|0];q=K[i+1|0];c=K[g+2|0];o=c;t=K[i|0]-c|0;c=K[i+3|0];H[g+2|0]=o+(P(t,P(c,K[a|0]+1|0)>>>8|0)>>>8|0);o=K[g+1|0];H[g+1|0]=o+(P(q-o|0,P(c,r+1|0)>>>8|0)>>>8|0);o=k;k=K[g|0];H[g|0]=(P(o-k|0,P(c,j+1|0)>>>8|0)>>>8|0)+k;g=g+4|0;a=a+3|0;e=e-1|0;if(e)continue;break}}d=d+s|0;n=n+1|0;if((p|0)!=(n|0))continue;break}break d}if((p|0)<=0)break d;while(1){k=m+n|0;j=J[l+4>>2];i:{if((k|0)>J[j+16>>2]|(k|0)>2])break i;h=c;e=d;a=b;g=J[j+4>>2];if((a|0)<(g| -0)){h=c+(a-g|0)|0;if((h|0)<=0)break i;e=(g-a|0)+d|0;a=g}g=J[j+12>>2];if((g|0)<(a+h|0)){h=g-a|0;if((h|0)<0)break i;h=h+1|0}$K(J[j>>2],a,k,h,i,e)}d=c+d|0;n=n+1|0;if((p|0)!=(n|0))continue;break}}bc=l+16|0;break c}J[f+56>>2]=0;J[f+60>>2]=0;J[f+76>>2]=0;J[f+80>>2]=0;J[f+84>>2]=64;J[f+96>>2]=0;J[f+100>>2]=0;J[f+104>>2]=254;J[f+116>>2]=0;J[f+120>>2]=0;J[f+124>>2]=256;J[f+136>>2]=0;J[f+140>>2]=0;J[f+144>>2]=0;J[f+148>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+68>>2]=0;J[f+72>>2]=0;J[f+64>>2]=126;J[f+88>>2]=0;J[f+ -92>>2]=0;J[f+108>>2]=0;J[f+112>>2]=0;J[f+168>>2]=0;J[f+160>>2]=-2147483647;J[f+164>>2]=-2147483647;J[f+152>>2]=2147483647;J[f+156>>2]=2147483647;J[f+128>>2]=0;J[f+132>>2]=0;if((p|0)>0){m=h+3|0;n=m>>>0>536870911?-1:m<<3;j=i-1|0;while(1){J[f+16>>2]=2147483632;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[695492]=0;J[f+40>>2]=m;d=$(27,n|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;J[f+28>>2]=m;J[f+36>>2]=d;J[695492]=0;i=$(27,m|0)|0;k=J[695492];J[695492]=0;if((k| -0)==1)break b;J[f+24>>2]=i;I[d+2>>1]=0;i=tc(i,g+P(h,l)|0,h);J[f+44>>2]=d+8;I[d+10>>1]=h;I[d+8>>1]=b;J[d+12>>2]=i;J[f+20>>2]=c+l;J[f+16>>2]=j;J[f+32>>2]=i+h;J[695492]=0;da(2334,f+48|0,f+16|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=J[f+36>>2];if(d)qc(d);d=J[f+24>>2];if(d)qc(d);l=l+1|0;if((p|0)!=(l|0))continue;break}}J[695492]=0;b=J[e+4>>2];c=J[695492];J[695492]=0;j:{k:{if((c|0)!=1){if(b)break j;J[695492]=0;J[f+12>>2]=-16777216;J[f+12>>2]=J[e+8>>2];b=J[695492];J[695492]=0;if((b|0)==1)break k; -J[f+20>>2]=J[f+12>>2];J[695492]=0;J[f+16>>2]=a+1636;ca(2336,a|0,f+48|0,f+16|0);a=J[695492];J[695492]=0;if((a|0)!=1)break j;d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}a=J[f+112>>2];if(a){d=a-1|0;J[f+112>>2]=d;b=J[f+120>>2]+(a<<2)|0;while(1){b=b-4|0;a=J[b>>2];if(a){qc(a);a=J[f+112>>2]}else a=d;d=a-1|0;J[f+112>>2]=d;if(a)continue;break}}a=J[f+120>>2];if(a)qc(a);a=J[f+92>>2];if(a){d=a-1|0;J[f+92>>2]=d;b=J[f+100>>2]+(a<<2)|0;while(1){b=b-4|0;a=J[b>>2];if(a){qc(a);a=J[f+92>>2]}else a=d;d=a-1|0;J[f+ -92>>2]=d;if(a)continue;break}}a=J[f+100>>2];if(a)qc(a);wC(f+48|0)}bc=f+176|0;return 0}d=Z()|0;ee(f+16|0)}b=f+48|0;c=J[b- -64>>2];if(c){a=c-1|0;J[b+64>>2]=a;c=J[b+72>>2]+(c<<2)|0;while(1){c=c-4|0;e=J[c>>2];if(e){qc(e);a=J[b+64>>2]}e=a;a=e-1|0;J[b+64>>2]=a;if(e)continue;break}}a=J[b+72>>2];if(a)qc(a);c=J[b+44>>2];if(c){a=c-1|0;J[b+44>>2]=a;c=J[b+52>>2]+(c<<2)|0;while(1){c=c-4|0;e=J[c>>2];if(e){qc(e);a=J[b+44>>2]}e=a;a=e-1|0;J[b+44>>2]=a;if(e)continue;break}}a=J[b+52>>2];if(a)qc(a);wC(b);ba(d|0);B()} -function mMa(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=bc-16|0;bc=h;j=zc(40);J[j>>2]=0;J[695492]=0;J[h+8>>2]=0;i=ga(493,1,0,0)|0;e=J[695492];J[695492]=0;a:{b:{if((e|0)==1)break b;k=4;f=-1;c:{d:{if(!e)break d;g=J[695493];if(!g)break d;f=Jc(J[e>>2],j,4);if(!f)break c;cc=g}e=cc;e:{f:{if((f|0)==1)break f;J[h+12>>2]=i;e=J[h+12>>2];i=0;if(!e)break e;J[e+700>>2]=1E6;J[J[h+12>>2]+704>>2]=1E6;J[J[h+12>>2]+708>>2]=0;J[J[h+12>>2]+712>>2]=0;J[695492]=0;i=J[h+12>>2];if(i)J[i+156>>2]=88; -else i=0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;g:{if(!e)break g;g=J[695493];if(!g)break g;f=Jc(J[e>>2],j,4);if(!f)break c;cc=g}e=cc;if((f|0)==1)break f;j=zf(i,1,j,4);k=cc;e=0}while(1){if(e){J[695492]=0;ka(495);e=J[695492];J[695492]=0;if((e|0)==1)break b;h:{if(!e)break h;g=J[695493];if(!g)break h;if(!Jc(J[e>>2],j,k))break c;cc=g}e=cc;continue}J[695492]=0;i=J[h+12>>2];if(i){J[i+676>>2]=0;J[i+672>>2]=0;J[i+668>>2]=0}e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;i:{if(!e)break i;g=J[695493]; -if(!g)break i;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;J[695492]=0;i=J[h+12>>2];if(i){J[i+164>>2]=d;J[i+160>>2]=c;J[i+168>>2]=b}e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;j:{if(!e)break j;g=J[695493];if(!g)break j;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;J[695492]=0;i=aa(497,J[h+12>>2],a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;k:{if(!e)break k;g=J[695493];if(!g)break k;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;if(!i)J[h+ -8>>2]=1;l:{if(J[h+8>>2])break l;J[J[h+12>>2]+272>>2]=8192;i=J[h+12>>2];e=J[J[h+12>>2]+272>>2];J[695492]=0;i=aa(498,i|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;m:{if(!e)break m;g=J[695493];if(!g)break m;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;J[J[h+12>>2]+268>>2]=i;if(J[J[h+12>>2]+268>>2])break l;J[h+8>>2]=1}J[J[h+12>>2]+244>>2]=499;J[J[h+12>>2]+248>>2]=500;J[J[h+12>>2]+252>>2]=J[h+12>>2];n:{if(J[h+8>>2])break n;J[695492]=0;i=ga(501,J[h+12>>2]+212|0,57983,56)| -0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;o:{if(!e)break o;g=J[695493];if(!g)break o;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;p:switch(i+6|0){case 2:J[695492]=0;da(502,J[h+12>>2],58027);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;q:{if(!e)break q;g=J[695493];if(!g)break q;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 4:J[695492]=0;da(502,J[h+12>>2],58289);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;r:{if(!e)break r; -g=J[695493];if(!g)break r;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 0:J[695492]=0;da(502,J[h+12>>2],58526);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;s:{if(!e)break s;g=J[695493];if(!g)break s;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 6:break n;default:break p}J[695492]=0;da(502,J[h+12>>2],58768);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;t:{if(!e)break t;g=J[695493];if(!g)break t;f=Jc(J[e>>2], -j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;J[h+8>>2]=1}i=J[h+12>>2];if(J[h+8>>2]){e=J[i+268>>2];J[695492]=0;da(503,i|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;u:{if(!e)break u;g=J[695493];if(!g)break u;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;J[J[h+12>>2]+268>>2]=0;J[695492]=0;ca(504,J[h+12>>2],0,0);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;v:{if(!e)break v;g=J[695493];if(!g)break v;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;i= -0;break e}J[J[h+12>>2]+224>>2]=J[i+268>>2];J[J[h+12>>2]+228>>2]=J[J[h+12>>2]+272>>2];J[695492]=0;ca(113,J[h+12>>2],0,0);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;w:{if(!e)break w;g=J[695493];if(!g)break w;f=Jc(J[e>>2],j,k);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;break}i=J[h+12>>2]}qc(j);bc=h+16|0;break a}qc(j);ef(e,g);B()}a=Z()|0;qc(j);ba(a|0);B()}return i|0}function f8(a,b,c,d,e,f,g){var h=0,i=0,j=0;h=J[a+512>>2];if(!h)h=J[a+528>>2];i=J[h+88>>2];J[a+984>>2]=0;J[a+988>>2]=0;J[a+976>>2]= -0;J[a+968>>2]=0;j=dk(a,h,J[a+316>>2],J[a+320>>2],K[a+324|0],K[a+325|0],K[a+326|0],K[a+327|0],K[a+328|0],0);if(!j){g=(g|0)==1;H[h+32|0]=g;H[i+34|0]=g;J[a+536>>2]=h;h=J[i+1176>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{g=K[a+325|0];switch(g|0){case 3:break g;case 2:break h;case 0:break i;case 6:break e;case 4:break f;default:break a}}c=P(J[a+320>>2],J[a+316>>2]);j:{if(K[a+324|0]!=16){if(!c)break j;d=0;while(1){H[h|0]=b;h=h+1|0;d=d+1|0;if(d>>>0>2],J[a+316>>2])>>>0)continue;break}break j}if(!c)break j; -d=0;while(1){c=b<<8|b>>>8;H[h|0]=c;H[h+1|0]=c>>>8;h=h+2|0;d=d+1|0;if(d>>>0>2],J[a+316>>2])>>>0)continue;break}}if(f|!e)break b;I[i+836>>1]=b;H[i+56|0]=1;break b}g=P(J[a+320>>2],J[a+316>>2]);k:{if(K[a+324|0]!=16){if(!g)break k;g=0;while(1){H[h+2|0]=d;H[h+1|0]=c;H[h|0]=b;h=h+3|0;g=g+1|0;if(g>>>0>2],J[a+316>>2])>>>0)continue;break}break k}if(!g)break k;g=0;while(1){j=b<<8|b>>>8;H[h|0]=j;H[h+1|0]=j>>>8;j=c<<8|c>>>8;H[h+2|0]=j;H[h+3|0]=j>>>8;j=d<<8|d>>>8;H[h+4|0]=j;H[h+5|0]=j>>>8; -h=h+6|0;g=g+1|0;if(g>>>0>2],J[a+316>>2])>>>0)continue;break}}if(f|!e)break b;I[i+842>>1]=d;I[i+840>>1]=c;I[i+838>>1]=b;H[i+56|0]=1;break b}H[i+55|0]=1;j=K[a+324|0]-1|0;g=j&255;if(g>>>0>=8|!(139>>>g&1))break d;H[i+68|0]=b;H[i+70|0]=d;H[i+69|0]=c;b=j<<24>>24<<2;J[i+64>>2]=J[b+218576>>2];wc(i+71|0,0,J[b+218608>>2]);break c}c=P(J[a+320>>2],J[a+316>>2]);if(K[a+324|0]!=16){if(!c)break b;d=0;while(1){H[h+1|0]=f;H[h|0]=b;h=h+2|0;d=d+1|0;if(d>>>0>2],J[a+316>>2])>>>0)continue;break}break b}if(!c)break b; -d=0;while(1){c=b<<8|b>>>8;H[h|0]=c;H[h+1|0]=c>>>8;c=f<<8|f>>>8;H[h+2|0]=c;H[h+3|0]=c>>>8;h=h+4|0;d=d+1|0;if(d>>>0>2],J[a+316>>2])>>>0)continue;break}break b}e=P(J[a+320>>2],J[a+316>>2]);if(K[a+324|0]!=16){if(!e)break b;e=0;while(1){H[h+3|0]=f;H[h+2|0]=d;H[h+1|0]=c;H[h|0]=b;h=h+4|0;e=e+1|0;if(e>>>0>2],J[a+316>>2])>>>0)continue;break}break b}if(!e)break b;e=0;while(1){g=b<<8|b>>>8;H[h|0]=g;H[h+1|0]=g>>>8;g=c<<8|c>>>8;H[h+2|0]=g;H[h+3|0]=g>>>8;g=d<<8|d>>>8;H[h+4|0]=g;H[h+5|0]=g>>> -8;g=f<<8|f>>>8;H[h+6|0]=g;H[h+7|0]=g>>>8;h=h+8|0;e=e+1|0;if(e>>>0>2],J[a+316>>2])>>>0)continue;break}break b}H[i+68|0]=b;J[i+64>>2]=1;H[i+70|0]=d;H[i+69|0]=c}if(!e|f>>>0>254)break b;H[i+848|0]=f;J[i+844>>2]=1;H[i+56|0]=1}g=K[a+325|0]}l:{m:switch(g&255){case 0:n:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1220;break l}J[a+1012>>2]=1221;break l;case 1:if(!K[a+328|0]){J[a+1012>>2]=1222;break l}J[a+1012>>2]=1223;break l;case 3:if(!K[a+328|0]){J[a+1012>>2]=1224;break l}J[a+1012>> -2]=1225;break l;case 7:if(!K[a+328|0]){J[a+1012>>2]=1226;break l}J[a+1012>>2]=1227;break l;case 15:break n;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1228;break l}J[a+1012>>2]=1229;break l;case 2:o:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1230;break l}J[a+1012>>2]=1231;break l;case 8:break o;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1232;break l}J[a+1012>>2]=1233;break l;case 3:p:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1234;break l}J[a+1012>>2]=1235;break l; -case 1:if(!K[a+328|0]){J[a+1012>>2]=1236;break l}J[a+1012>>2]=1237;break l;case 3:if(!K[a+328|0]){J[a+1012>>2]=1238;break l}J[a+1012>>2]=1239;break l;case 7:break p;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1240;break l}J[a+1012>>2]=1241;break l;case 4:q:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1242;break l}J[a+1012>>2]=1243;break l;case 8:break q;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1244;break l}J[a+1012>>2]=1245;break l;case 6:break m;default:break l}r:switch(K[a+324| -0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1246;break l}J[a+1012>>2]=1247;break l;case 8:break r;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1248;break l}J[a+1012>>2]=1249}J[a+620>>2]=0;J[a+624>>2]=0;J[a+612>>2]=0;J[a+616>>2]=1;J[a+628>>2]=0;J[a+632>>2]=0;j=0}return j}function fOa(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;wc(a+128|0,0,128);d=J[b>>2]+c|0;f=K[d+4|0];j=K[d+3|0];e=f+j|0;g=K[d+7|0];i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+ -6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+16>>2]=k-q<<3;J[a>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+512|0;J[a+24>>2]=d+P(h,-15137)>>10;J[a+8>>2]=d+P(e,6270)>>10;d=j-f|0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k|0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0;J[a+28>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995);J[a+20>>2]=i+(h+g|0)>>10;J[a+12>>2]=d+(g+P(e,25172)|0)>>10;J[a+4>>2]=i+(j+P(f,12299)|0)>>10;d=J[b+4>>2]+c|0;f=K[d+4|0];j=K[d+3|0];e=f+j|0;g=K[d+7|0]; -i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+48>>2]=k-q<<3;J[a+32>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+512|0;J[a+56>>2]=d+P(h,-15137)>>10;J[a+40>>2]=d+P(e,6270)>>10;d=j-f|0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k|0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0;J[a+60>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995);J[a+52>>2]=i+(h+g|0)>>10;J[a+44>>2]=d+(g+P(e,25172)|0)>>10;J[a+36>>2]=i+(j+P(f,12299)| -0)>>10;d=J[b+8>>2]+c|0;f=K[d+4|0];j=K[d+3|0];e=f+j|0;g=K[d+7|0];i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+80>>2]=k-q<<3;J[a+64>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+512|0;J[a+88>>2]=d+P(h,-15137)>>10;J[a+72>>2]=d+P(e,6270)>>10;d=j-f|0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k|0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0;J[a+92>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995);J[a+84>>2]=i+(h+g| -0)>>10;J[a+76>>2]=d+(g+P(e,25172)|0)>>10;J[a+68>>2]=i+(j+P(f,12299)|0)>>10;b=J[b+12>>2]+c|0;c=K[b+4|0];d=K[b+3|0];f=c+d|0;j=K[b+7|0];e=K[b|0];g=j+e|0;i=f+g|0;h=K[b+5|0];k=K[b+2|0];l=h+k|0;m=K[b+6|0];n=K[b+1|0];b=m+n|0;o=l+b|0;J[a+112>>2]=i-o<<3;f=g-f|0;g=b-l|0;b=P(f+g|0,4433)+512|0;J[a+120>>2]=b+P(g,-15137)>>10;b=b+P(f,6270)>>10;J[a+104>>2]=b;c=d-c|0;d=e-j|0;f=P(c+d|0,-7373);j=n-m|0;l=j+c|0;e=k-h|0;h=e+d|0;g=P(l+h|0,9633)+512|0;k=g+P(l,-16069)|0;J[a+124>>2]=k+(f+P(c,2446)|0)>>10;g=g+P(h,-3196)|0; -c=P(e,16819);e=P(e+j|0,-20995);J[a+116>>2]=g+(c+e|0)>>10;c=J[a>>2];i=(i+o<<3)+-8192|0;h=(c+i|0)+2|0;l=J[a+64>>2];m=J[a+32>>2];n=l+m|0;J[a+64>>2]=h-n>>2;J[a>>2]=h+n>>2;h=m-l|0;i=c-i|0;c=P(h+i|0,4433)+16384|0;J[a+96>>2]=c+P(h,-15137)>>15;J[a+32>>2]=c+P(i,6270)>>15;c=J[a+4>>2];d=g+(f+P(d,12299)|0)>>10;f=(c+d|0)+2|0;g=J[a+68>>2];i=J[a+36>>2];h=g+i|0;J[a+68>>2]=f-h>>2;J[a+4>>2]=f+h>>2;f=i-g|0;d=c-d|0;c=P(f+d|0,4433)+16384|0;J[a+100>>2]=c+P(f,-15137)>>15;J[a+36>>2]=c+P(d,6270)>>15;c=J[a+8>>2];d=(c+b|0)+ -2|0;f=J[a+72>>2];g=J[a+40>>2];i=f+g|0;J[a+72>>2]=d-i>>2;J[a+8>>2]=d+i>>2;d=g-f|0;c=c-b|0;b=P(d+c|0,4433)+16384|0;J[a+104>>2]=b+P(d,-15137)>>15;J[a+40>>2]=b+P(c,6270)>>15;b=J[a+12>>2];c=k+(e+P(j,25172)|0)>>10;d=(b+c|0)+2|0;f=J[a+76>>2];j=J[a+44>>2];e=f+j|0;J[a+76>>2]=d-e>>2;J[a+12>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+108>>2]=b+P(d,-15137)>>15;J[a+44>>2]=b+P(c,6270)>>15;b=J[a+16>>2];c=J[a+112>>2];d=(b+c|0)+2|0;f=J[a+80>>2];j=J[a+48>>2];e=f+j|0;J[a+80>>2]=d-e>>2;J[a+16>>2]=d+e>>2;d= -j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+112>>2]=b+P(d,-15137)>>15;J[a+48>>2]=b+P(c,6270)>>15;b=J[a+20>>2];c=J[a+116>>2];d=(b+c|0)+2|0;f=J[a+84>>2];j=J[a+52>>2];e=f+j|0;J[a+84>>2]=d-e>>2;J[a+20>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+116>>2]=b+P(d,-15137)>>15;J[a+52>>2]=b+P(c,6270)>>15;b=J[a+24>>2];c=J[a+120>>2];d=(b+c|0)+2|0;f=J[a+88>>2];j=J[a+56>>2];e=f+j|0;J[a+88>>2]=d-e>>2;J[a+24>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+120>>2]=b+P(d,-15137)>>15;J[a+56>>2]=b+P(c, -6270)>>15;b=J[a+28>>2];c=J[a+124>>2];d=(b+c|0)+2|0;f=J[a+92>>2];j=J[a+60>>2];e=f+j|0;J[a+92>>2]=d-e>>2;J[a+28>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+124>>2]=b+P(d,-15137)>>15;J[a+60>>2]=b+P(c,6270)>>15}function vC(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;d=J[a+1628>>2];c=J[a+1620>>2];f=J[a+1624>>2];b=P(c,f)<<2;b=wc(rc(b),0,b);a:{if(K[a+1664|0])break a;e=J[a+1604>>2];if(!e)break a;qc(e)}H[a+1664|0]=1;J[a+1604>>2]=b;J[a+1628>>2]=d;J[a+1624>>2]=f;J[a+1620>> -2]=c;J[a+1612>>2]=b;J[a+1616>>2]=b;if((d|0)<0)J[a+1616>>2]=b+P(d,1-f|0);d=a+1636|0;J[a+1656>>2]=d;J[a+1652>>2]=f-1;J[a+1648>>2]=c-1;f=a+1640|0;J[f>>2]=0;J[f+4>>2]=0;f=d;d=a+1632|0;J[f>>2]=d;J[d>>2]=a+1612;H[a+1608|0]=1;d=rc(16);J[695492]=0;o=A2(d,b,0);b=J[695492];J[695492]=0;if((b|0)!=1){f=J[a+1600>>2];b=f+J[a+1596>>2]|0;c=J[a+1588>>2];d=J[a+1584>>2];if((b|0)==(((c|0)!=(d|0)?(c-d<<8)-1|0:0)|0)){g=bc-32|0;bc=g;b:{c:{d:{e:{f:{e=a+1580|0;b=J[e+16>>2];if(b>>>0>=1024){J[e+16>>2]=b-1024;b=J[e+4>>2];j=J[b>> -2];c=b+4|0;J[e+4>>2]=c;b=J[e+8>>2];g:{if((b|0)!=J[e+12>>2]){d=b;break g}h=J[e>>2];if(h>>>0>>0){f=((c-h>>2)+1|0)/-2<<2;b=b-c|0;d=Zc(f+c|0,c,b)+b|0;J[e+8>>2]=d;J[e+4>>2]=f+J[e+4>>2];break g}d=(b|0)==(h|0)?1:b-h>>1;if(d>>>0>=1073741824)break f;f=d<<2;i=rc(f);l=f+i|0;f=i+(d&-4)|0;d=f;h:{if((b|0)==(c|0))break h;k=b-c|0;m=k-4|0;n=(m>>>2|0)+1&7;i:{if(!n){b=d;break i}d=0;b=f;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((n|0)!=(d|0))continue;break}}d=f+k|0;if(m>>>0<28)break h;while(1){J[b>>2]=J[c>> -2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;if((d|0)!=(b|0))continue;break}}J[e+12>>2]=l;J[e+8>>2]=d;J[e+4>>2]=f;J[e>>2]=i;if(!h)break g;qc(h);d=J[e+8>>2]}J[d>>2]=j;J[e+8>>2]=J[e+8>>2]+4;break b}c=J[e+8>>2];l=J[e+4>>2];h=c-l|0;d=h>>2;b=J[e+12>>2];f=J[e>>2];i=b-f|0;if(d>>>0>2>>>0){if((b|0)!=(c|0)){p=g,q=rc(4096),J[p+12>>2]=q;y3(e,g+12|0);break b}p=g,q=rc(4096),J[p+12>>2]= -q;uC(e,g+12|0);b=J[e+4>>2];j=J[b>>2];c=b+4|0;J[e+4>>2]=c;b=J[e+8>>2];j:{if((b|0)!=J[e+12>>2]){d=b;break j}h=J[e>>2];if(h>>>0>>0){f=((c-h>>2)+1|0)/-2<<2;b=b-c|0;d=Zc(f+c|0,c,b)+b|0;J[e+8>>2]=d;J[e+4>>2]=f+J[e+4>>2];break j}d=(b|0)==(h|0)?1:b-h>>1;if(d>>>0>=1073741824)break f;f=d<<2;i=rc(f);l=f+i|0;f=i+(d&-4)|0;d=f;k:{if((b|0)==(c|0))break k;k=b-c|0;m=k-4|0;n=(m>>>2|0)+1&7;l:{if(!n){b=d;break l}d=0;b=f;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((n|0)!=(d|0))continue;break}}d=f+k|0;if(m>>> -0<28)break k;while(1){J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;if((d|0)!=(b|0))continue;break}}J[e+12>>2]=l;J[e+8>>2]=d;J[e+4>>2]=f;J[e>>2]=i;if(!h)break j;qc(h);d=J[e+8>>2]}J[d>>2]=j;J[e+8>>2]=J[e+8>>2]+4;break b}J[g+28>>2]=e+12;i=(b|0)==(f|0)?1:i>>1;if(i>>>0>=1073741824)break f;j=i<<2;f=rc(j);J[g+12>>2]=f;J[695492]=0;b=f+(d<<2)|0;J[g+20>>2]=b;J[g+24>>2]= -f+j;J[g+16>>2]=b;j=$(4,4096)|0;k=J[695492];J[695492]=0;if((k|0)==1)break d;m:{if((d|0)!=(i|0))break m;if((h|0)>0){b=((d+1|0)/-2<<2)+b|0;J[g+16>>2]=b;break m}d=(c|0)==(l|0)?1:h>>1;if(d>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)==1)break e;B()}J[695492]=0;c=d<<2;b=$(4,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;J[g+12>>2]=b;J[g+24>>2]=b+c;b=b+(d&-4)|0;J[g+16>>2]=b;qc(f);c=J[e+8>>2]}J[b>>2]=j;J[g+20>>2]=b+4;while(1){if(J[e+4>>2]==(c|0)){d=J[e>>2];J[e>>2]=J[g+12>>2]; -J[g+12>>2]=d;J[e+4>>2]=J[g+16>>2];J[g+16>>2]=c;b=J[e+8>>2];J[e+8>>2]=J[g+20>>2];J[g+20>>2]=b;f=J[e+12>>2];J[e+12>>2]=J[g+24>>2];J[g+24>>2]=f;if((b|0)!=(c|0))J[g+20>>2]=b+((c-b|0)+3&-4);if(!d)break b;qc(d);break b}J[695492]=0;c=c-4|0;da(2340,g+12|0,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}c=Z()|0;a=J[g+20>>2];b=J[g+16>>2];if((a|0)==(b|0))break c;J[g+20>>2]=a+((b-a|0)+3&-4);break c}Sd();B()}c=Z()|0;qc(j);break c}c=Z()|0}a=J[g+12>>2];if(a)qc(a);ba(c|0);B()}bc=g+32|0;d=J[a+1584>>2];f=J[a+ -1600>>2];b=f+J[a+1596>>2]|0}J[J[(b>>>8&16777212)+d>>2]+((b&1023)<<2)>>2]=o;J[a+1600>>2]=f+1;return}a=Z()|0;qc(d);ba(a|0);B()}function hzb(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;J[a+76>>2]=0;J[a+80>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+56>>2]=0;e=J[b+8>>2];a:{b:{c:{if(e&7)break c;d:{e:{f:{d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break g}e=jd(b,1);if((e|0)==-1)break c}H[a+ -12|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;h:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break h}e=jd(b,1);if((e|0)==-1)break c}H[a+13|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;i:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break i}e=jd(b,1);if((e|0)==-1)break c}H[a+52|0]=e;e=J[b+8>>2];if(e&7)break c; -d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;j:{if((d|0)<=0){if((jd(b,1)|0)!=-1)break j;break c}J[b+60>>2]=J[b+60>>2]+1;J[b+24>>2]=J[b+24>>2]+1}if(Ye(b,a+16|0))break c;if(Ye(b,a+20|0))break c;if(Ye(b,a+24|0))break c;if(Ye(b,a+28|0))break c;if(Ye(b,a+32|0))break c;if(Ye(b,a+36|0))break c;if(Ye(b,a+40|0))break c;if(Ye(b,a+44|0))break c;if(Ye(b,a+48|0))break c;if(Fj(b,a+60|0))break c;if(Fj(b,a+72|0))break c;g=K[a+12|0];k:{if(!g){f=1;break k}d=K[a+52|0];e=g&7;l:{if(g>>> -0<8){f=1;break l}g=g&248;f=1;while(1){f=P(d,P(d,P(d,P(d,P(d,P(d,P(d,P(d,f))))))));h=h+8|0;if((g|0)!=(h|0))continue;break}}if(!e)break k;h=0;while(1){f=P(d,f);h=h+1|0;if((e|0)!=(h|0))continue;break}}k=P(K[a+13|0],f);d=zc(k);J[a+56>>2]=d;if(!d)break b;d=zc(P(J[a+60>>2],K[a+12|0]));J[a+68>>2]=d;if(!d)break c;d=zc(K[a+12|0]<<2);J[a+64>>2]=d;if(!d)break c;g=K[a+12|0];m:{if(!g)break m;d=J[a+60>>2];h=0;e=0;if(g>>>0>=4){f=g&252;while(1){J[J[a+64>>2]+(e<<2)>>2]=J[a+68>>2]+P(d,e);i=e|1;J[J[a+64>>2]+(i<<2)>> -2]=J[a+68>>2]+P(d,i);i=e|2;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+P(d,i);i=e|3;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+P(d,i);e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}g=g&3;if(!g)break m;while(1){J[J[a+64>>2]+(e<<2)>>2]=J[a+68>>2]+P(d,e);e=e+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}d=zc(P(J[a+72>>2],K[a+13|0]));J[a+80>>2]=d;if(!d)break c;d=zc(K[a+13|0]<<2);J[a+76>>2]=d;if(!d)break c;g=K[a+13|0];n:{if(!g)break n;d=J[a+72>>2];h=0;e=0;if(g>>>0>=4){f=g&252;j=0;while(1){J[J[a+76>>2]+(e<<2)>>2]=J[a+80>> -2]+P(d,e);i=e|1;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+P(d,i);i=e|2;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+P(d,i);i=e|3;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+P(d,i);e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=g&3;if(!f)break n;while(1){J[J[a+76>>2]+(e<<2)>>2]=J[a+80>>2]+P(d,e);e=e+1|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}j=K[a+12|0];if(!j)break d;f=0;h=J[a+60>>2];if((h|0)<=0)break d;while(1){e=0;if((h|0)>0){while(1){if(aO(b,J[J[a+64>>2]+(f<<2)>>2]+e|0))break c;e=e+1|0;h=J[a+60>>2];if((e|0)<(h|0))continue; -break}j=K[a+12|0]}f=f+1|0;if(f>>>0<(j&255)>>>0)continue;break}break e}J[b+8>>2]=e|4;break c}g=K[a+13|0]}f=0;d=0;o:{if(!g)break o;h=0;j=J[a+72>>2];if((j|0)<=0){d=g;break o}d=g;while(1){e=0;if((j|0)>0){while(1){if(aO(b,J[J[a+76>>2]+(h<<2)>>2]+e|0))break c;e=e+1|0;j=J[a+72>>2];if((e|0)<(j|0))continue;break}d=K[a+13|0]}h=h+1|0;if(h>>>0<(d&255)>>>0)continue;break}}if((k|0)>0){while(1){if(aO(b,J[a+56>>2]+f|0))break c;f=f+1|0;if((k|0)!=(f|0))continue;break}d=K[a+13|0]}h=d&255;d=K[a+12|0];j=P(d,J[a+60>>2]); -k=J[a+72>>2];p:{if(!d){e=1;break p}b=K[a+52|0];g=d&7;q:{if(d>>>0<8){e=1;break q}d=d&248;f=0;e=1;while(1){e=P(b,P(b,P(b,P(b,P(b,P(b,P(b,P(b,e))))))));f=f+8|0;if((d|0)!=(f|0))continue;break}}if(!g)break p;f=0;while(1){e=P(b,e);f=f+1|0;if((g|0)!=(f|0))continue;break}}b=0;if(((P(h,e+k|0)+j|0)+44|0)==(c|0))break a}b=J[a+56>>2];if(!b)break b;qc(b)}b=J[a+64>>2];if(b)qc(b);b=J[a+68>>2];if(b)qc(b);b=J[a+76>>2];if(b)qc(b);b=-1;a=J[a+80>>2];if(!a)break a;qc(a)}return b|0}function rFa(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;e=bc-80|0;bc=e;f=J[a>>2];if(f)gc[J[J[f>>2]+8>>2]](f);a:{f=J[a+4>>2];g=J[a+8>>2];b:{if((f|0)!=(g|0)){c:{while(1){i=K[f+11|0];h=i<<24>>24<0;k=K[b+11|0];j=k<<24>>24<0;i=h?J[f+4>>2]:i;if((i|0)==((j?J[b+4>>2]:k)|0)){if(!i)break c;if(!gd(h?J[f>>2]:f,j?J[b>>2]:b,i))break c}f=f+12|0;if((g|0)!=(f|0))continue;break}f=g}if(J[a+8>>2]!=(f|0))break b}d:{if(J[a+12>>2]!=(f|0)){e:{if(H[b+11|0]>=0){g=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=g; -J[f+8>>2]=J[b+8>>2];break e}g=J[b+4>>2];h=J[b>>2];J[695492]=0;ca(15,f|0,h|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break a}J[a+8>>2]=f+12;break d}TK(a+4|0,b)}i=e- -64|0;j=0;h=bc-16|0;bc=h;f:{g:{f=K[b+11|0];f=f<<24>>24<0?J[b+4>>2]:f;g=f-1|0;if((g|0)>=0)while(1){h:{if(J[(g<<2)+(H[b+11|0]<0?J[b>>2]:b)>>2]==45){f=g;break h}f=f-2|0;g=Bm(h,b,f,2,h+15|0);J[695492]=0;k=aa(4895,a|0,g|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break g;H[i+j|0]=k;if(H[h+11|0]<0)qc(J[g>>2]);j=j+1|0}g=f-1|0;if((g|0)>=0)continue; -break}bc=h+16|0;break f}a=Z()|0;if(H[h+11|0]<0)qc(J[g>>2]);ba(a|0);B()}if(!(gc[J[J[d>>2]+8>>2]](d)|0)){i:{if(!B1(c))break i;J[e+16>>2]=0;bH(d,c,e+16|0);b=J[e+16>>2];if(!b)break i;j:{if(!K[b+8|0])break j;d=J[b>>2];if(!d)break j;qc(d)}qc(b)}b=e+48|0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=413844;J[695492]=0;ga(3,b|0,c|0,1)|0;c=J[695492];J[695492]=0;if((c|0)!=1)k:{J[695492]=0;d=e+16|0;ha(28,b|0,d|0,32,e+12|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;c=K[e+64|0];H[e+16|0]=c^K[e+16|0];f=K[e+ -65|0];H[e+17|0]=f^K[e+17|0];g=K[e+66|0];H[e+18|0]=g^K[e+18|0];h=K[e+67|0];H[e+19|0]=h^K[e+19|0];j=K[e+68|0];H[e+20|0]=j^K[e+20|0];i=K[e+69|0];H[e+21|0]=i^K[e+21|0];k=K[e+70|0];H[e+22|0]=k^K[e+22|0];l=K[e+71|0];H[e+23|0]=l^K[e+23|0];m=K[e+72|0];H[e+24|0]=m^K[e+24|0];n=K[e+73|0];H[e+25|0]=n^K[e+25|0];o=K[e+74|0];H[e+26|0]=o^K[e+26|0];p=K[e+75|0];H[e+27|0]=p^K[e+27|0];q=K[e+76|0];H[e+28|0]=q^K[e+28|0];r=K[e+77|0];H[e+29|0]=r^K[e+29|0];s=K[e+78|0];H[e+30|0]=s^K[e+30|0];t=K[e+79|0];H[e+31|0]=t^K[e+31| -0];H[e+32|0]=c^K[e+32|0];H[e+33|0]=f^K[e+33|0];H[e+34|0]=g^K[e+34|0];H[e+35|0]=h^K[e+35|0];H[e+36|0]=j^K[e+36|0];H[e+37|0]=i^K[e+37|0];H[e+38|0]=k^K[e+38|0];H[e+39|0]=K[e+39|0]^l;H[e+40|0]=K[e+40|0]^m;H[e+41|0]=K[e+41|0]^n;H[e+42|0]=K[e+42|0]^o;H[e+43|0]=K[e+43|0]^p;H[e+44|0]=K[e+44|0]^q;H[e+45|0]=K[e+45|0]^r;H[e+46|0]=K[e+46|0]^s;H[e+47|0]=K[e+47|0]^t;J[695492]=0;c=J[b+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break k;if(c){Xg(c,0,0);Td(d,1,32,c)}J[695492]=0;_(21,b|0);c=J[695492];J[695492]=0;if((c| -0)==1)break k;ve(b);break b}a=Z()|0;ve(b);ba(a|0);B()}if((gc[J[J[d>>2]+8>>2]](d)|0)!=1)break b;J[e+16>>2]=0;bH(d,c,e+16|0);b=J[e+16>>2];if(M[b+4>>2]>=32){b=J[b>>2];H[b|0]=K[b|0]^K[e+64|0];H[b+1|0]=K[b+1|0]^K[e+65|0];H[b+2|0]=K[b+2|0]^K[e+66|0];H[b+3|0]=K[b+3|0]^K[e+67|0];H[b+4|0]=K[b+4|0]^K[e+68|0];H[b+5|0]=K[b+5|0]^K[e+69|0];H[b+6|0]=K[b+6|0]^K[e+70|0];H[b+7|0]=K[b+7|0]^K[e+71|0];H[b+8|0]=K[b+8|0]^K[e+72|0];H[b+9|0]=K[b+9|0]^K[e+73|0];H[b+10|0]=K[b+10|0]^K[e+74|0];H[b+11|0]=K[b+11|0]^K[e+75|0];H[b+ -12|0]=K[b+12|0]^K[e+76|0];H[b+13|0]=K[b+13|0]^K[e+77|0];H[b+14|0]=K[b+14|0]^K[e+78|0];H[b+15|0]=K[b+15|0]^K[e+79|0];H[b+16|0]=K[b+16|0]^K[e+64|0];H[b+17|0]=K[b+17|0]^K[e+65|0];H[b+18|0]=K[b+18|0]^K[e+66|0];H[b+19|0]=K[b+19|0]^K[e+67|0];H[b+20|0]=K[b+20|0]^K[e+68|0];H[b+21|0]=K[b+21|0]^K[e+69|0];H[b+22|0]=K[b+22|0]^K[e+70|0];H[b+23|0]=K[b+23|0]^K[e+71|0];H[b+24|0]=K[b+24|0]^K[e+72|0];H[b+25|0]=K[b+25|0]^K[e+73|0];H[b+26|0]=K[b+26|0]^K[e+74|0];H[b+27|0]=K[b+27|0]^K[e+75|0];H[b+28|0]=K[b+28|0]^K[e+76| -0];H[b+29|0]=K[b+29|0]^K[e+77|0];H[b+30|0]=K[b+30|0]^K[e+78|0];H[b+31|0]=K[b+31|0]^K[e+79|0]}b=J[689330];if(b){d=c;c=J[e+16>>2];gc[J[J[b>>2]+16>>2]](b,d,J[c>>2],J[c+4>>2],0)|0}b=J[e+16>>2];if(!b)break b;l:{if(!K[b+8|0])break l;c=J[b>>2];if(!c)break l;qc(c)}qc(b)}a=J[a>>2];if(a)gc[J[J[a>>2]+12>>2]](a);bc=e+80|0;return}b=Z()|0;J[a+8>>2]=f;ba(b|0);B()}function QU(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=bc-32|0;bc=e;J[a>>2]=2401388;J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a; -J[695492]=0;da(5238,b|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;c=J[a+136>>2];if(c)while(1){b=0;f=J[c+8>>2];d=J[f+60>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[f+60>>2]}J[695492]=0;da(5227,b|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;da(5228,b|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!d){J[695492]=0;_(4987,b|0);b=J[695492];J[695492]= -0;if((b|0)==1)break a}c=J[c>>2];if(c)continue;break}J[695492]=0;f=a+128|0;_(5079,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;c=pa(5213)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;b=e+8|0;da(5239,b|0,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;ca(5240,e+16|0,c|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;sc(b);c=J[e+24>>2];if(c)while(1){b=0;d=J[c+8>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[c+8>> -2]}J[695492]=0;d=aa(4989,e+8|0,2377915)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;g=J[J[b>>2]+8>>2];J[695492]=0;g=aa(g|0,b|0,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;sc(d);if(g){J[695492]=0;da(5227,b|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;da(5228,b|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break a}J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(!d){J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}c=J[c>>2]; -if(c)continue;break}J[695492]=0;ka(5241);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+44>>2];if(b){J[695492]=0;da(5099,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break a}$c(e+16|0);b=J[a+168>>2];J[a+168>>2]=0;b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}$c(a+148|0);$c(f);b=J[a+124>>2];J[a+124>>2]=0;c:{if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d= -J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}sc(a+116|0);b=J[a+112>>2];J[a+112>>2]=0;d:{if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+108>>2];J[a+108>>2]=0;e:{if(!b)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break e;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+104>>2];J[a+104>>2]=0;f:{if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}$c(a+68|0);b=J[a+52>>2];J[a+52>>2]=0;g:{if(!b)break g;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break g;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+48>>2];J[a+48>>2]= -0;h:{if(!b)break h;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+44>>2];J[a+44>>2]=0;i:{if(!b)break i;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+8>>2]=2381028;J[a+32>>2]=2381060;b=J[a+36>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b); -J[a+36>>2]=0}J[a+24>>2]=2381060;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}sc(a+16|0);a=Hq(a);bc=e+32|0;return a|0}ea(0)|0;yc();B()}function L6(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,w=0,x=0,y=0;c=P(b,1348)+a|0;i=J[c- -64>>2];p=J[c+56>>2];r=i+P(p,44)|0;s=1;a:{if((b|0)==1){if((p|0)<=0)break a;l=J[a+2748>>2];s=!K[J[(J[J[l>>2]+8>>2]<<2)+247040>>2]+12|0];h=a+2744|0;c=i;while(1){k=K[c+12|0];b:{if(k&4)break b; -c:{d:{e:{f=J[c+20>>2];d=J[c+24>>2];f:{if(!f|!d)break f;e=0;if(!J[d+20>>2])break e;g=K[d+12|0];if(g&8){J[d+20>>2]=0;H[d+12|0]=g&247;f=J[c+20>>2];break f}if(!(k&8))break e;f=0;J[c+20>>2]=0;H[c+12|0]=k&247}e=!f;if(!d|f)break e;e=J[d+20>>2];if(!e)break b;f=J[e+8>>2];J[d+8>>2]=f;m=K[d+12|0]|4;H[d+12|0]=m;e=d;d=c;break d}if(e)break b;f=J[f+8>>2];J[c+8>>2]=f;m=K[c+12|0]|4;H[c+12|0]=m;if(!d)break c;e=c;if(J[d+20>>2])break c}e=J[e+4>>2];g=K[d+12|0];e=tx(J[h>>2],l,1,J[d+4>>2]-e|0,f-e|0,m&255,g);H[d+12|0]=g| -4;J[d+8>>2]=e+f}j=j?j:c}c=c+44|0;if(r>>>0>c>>>0)continue;break}}if((p|0)<=0)a=0;else{t=(p|0)>0;v=a+2748|0;w=a+2744|0;c=i;m=0;while(1){o=K[c+12|0];g:{if(o&4)break g;d=J[c+24>>2];if(!d){m=m+1|0;break g}if(J[d+20>>2]){a=J[d+4>>2];e=J[d+8>>2];a=tx(J[w>>2],J[v>>2],b,J[c+4>>2]-a|0,e-a|0,K[d+12|0],o);H[c+12|0]=o|4;J[c+8>>2]=a+e;break g}q=J[c+4>>2];if(!j){g=J[w>>2];j=J[v>>2];n=J[d+4>>2]-q|0;u=tx(g,j,b,n,0,o,K[d+12|0]);h:{if((u|0)<=95){h=q+(n>>1)|0;a=h+32&-64;e=(u|0)<65;k=a+(e?-32:-38)|0;f=h-k|0;l=f>>31;e= -a|(e?32:26);a=h-e|0;h=a>>31;a=((u|0)/-2|0)+((f^l)-l>>>0<(a^h)-h>>>0?k:e)|0;J[c+8>>2]=a;J[d+8>>2]=a+u;a=J[c+8>>2];break h}a=q+32&-64;J[c+8>>2]=a}e=o|4;H[c+12|0]=e;x=d,y=tx(g,j,b,n,a-q|0,e,K[d+12|0])+a|0,J[x+8>>2]=y;j=c;break g}f=J[j+4>>2];e=J[j+8>>2];h=J[d+4>>2]-q|0;a=K[d+12|0];n=tx(J[w>>2],J[v>>2],b,h,0,o,a);i:{if(a&4){e=J[d+8>>2]-n|0;a=c;break i}a=e+(q-f|0)|0;k=a+(h>>1)|0;j:{if((n|0)<=95){a=k+32&-64;e=(n|0)<65;g=a+(e?-32:-38)|0;f=k-g|0;l=f>>31;e=a|(e?32:26);a=k-e|0;h=a>>31;e=(f^l)-l>>>0<(a^h)-h>>> -0?g:e;a=(n|0)/2|0;J[c+8>>2]=e-a;e=a+e|0;break j}e=a+32|0;g=e&-64;a=n>>>1|0;f=(g-k|0)+a|0;l=f>>31;e=(e+h&-64)-n|0;a=e+(a-k|0)|0;h=a>>31;a=(f^l)-l>>>0<(a^h)-h>>>0?g:e;J[c+8>>2]=a;e=a+n|0}a=d}J[a+8>>2]=e;H[c+12|0]=o|4;H[d+12|0]=K[d+12|0]|4;if(c>>>0<=i>>>0)break g;e=J[c-36>>2];a=J[c+8>>2];k:{if(!s){if((a|0)>(e|0))break k;break g}if((a|0)>=(e|0))break g}a=J[d+8>>2]-e|0;d=a>>31;if((a^d)-d>>>0<17)break g;J[c+8>>2]=e}c=c+44|0;if(r>>>0>c>>>0)continue;break}a=(m|0)!=0}l:{if(b)break l;d=4;m=2;f=i;m:switch(p- -6|0){case 6:f=i+44|0;d=9;m=5;break;case 0:break m;default:break l}e=P(m,44)+i|0;g=P(d,44)+i|0;b=(J[e+4>>2]<<1)-(J[f+4>>2]+J[g+4>>2]|0)|0;c=b>>31;if((b^c)-c>>>0>7)break l;c=J[g+8>>2];b=(J[e+8>>2]<<1)-J[f+8>>2]|0;J[g+8>>2]=b;b=c-b|0;c=J[g+24>>2];if(c)J[c+8>>2]=J[c+8>>2]-b;if((p|0)==12){J[i+360>>2]=J[i+360>>2]-b;J[i+492>>2]=J[i+492>>2]-b}b=P(d,44)+i|0;H[b+12|0]=K[b+12|0]|4;if(!c)break l;H[c+12|0]=K[c+12|0]|4}if(!((!j|a)&t))break a;c=i;while(1){e=K[c+12|0];n:{if(e&4)break n;o:{p:{q:{g=J[c+28>>2];if(!g)break q; -d=J[g+4>>2];b=J[c+4>>2];a=d-b|0;f=a>>31;if((a^f)-f>>>0>79)break q;d=b+(J[g+8>>2]-d|0)|0;break p}d=c;if(!j){d=J[c+4>>2]+32&-64;J[c+8>>2]=d;j=c;break o}while(1){a=d;d=a-44|0;t=i>>>0>d>>>0;if(!(t|K[a-32|0]&4))continue;break}f=c;r:{while(1){b=f;f=b+44|0;g=r>>>0<=f>>>0;if(g)break r;if(!(K[b+56|0]&4))continue;break}if(g|t|(c>>>0<=d>>>0|c>>>0>=f>>>0))break r;f=a-44|0;d=J[f+8>>2];a=J[b+48>>2];f=J[f+4>>2];if((a|0)==(f|0))break p;d=Dd(J[c+4>>2]-f|0,J[b+52>>2]-d|0,a-f|0)+d|0;J[c+8>>2]=d;e=K[c+12|0];break o}d= -J[j+8>>2]+((J[c+4>>2]-J[j+4>>2]|0)+16&-32)|0}J[c+8>>2]=d}H[c+12|0]=e|4;s:{if(c>>>0<=i>>>0)break s;a=J[c-36>>2];t:{if(!s){if((a|0)<(d|0))break t;break s}if((a|0)<=(d|0))break s}b=J[c+24>>2];if(!b)break s;b=J[b+8>>2]-a|0;e=b>>31;if((b^e)-e>>>0<17)break s;J[c+8>>2]=a;d=a}if(!(K[c+56|0]&4)|c+44>>>0>=r>>>0)break n;e=J[c+52>>2];u:{if(!s){if((d|0)<(e|0))break u;break n}if((d|0)<=(e|0))break n}a=J[c+24>>2];if(!a)break n;a=J[a+8>>2]-J[c-36>>2]|0;b=a>>31;if((a^b)-b>>>0<17)break n;J[c+8>>2]=e}c=c+44|0;if(r>>> -0>c>>>0)continue;break}}}function o0a(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;i=J[a+4>>2];h=J[i+52>>2];n=h>>>16|0;d=J[a+24>>2];l=J[a+20>>2];e=J[a+16>>2];o=J[a+12>>2];c=J[a+8>>2];j=!(h&16777216);a:{b:while(1){c:{if(!j){j=o-c>>1;k=l-e|0;m=(j|0)<(k|0)?j:k;d:{if((m|0)<=0){j=c;break d}while(1){k=e+1|0;j=c+2|0;e:{f:{g=L[c>>1];if(!((g|0)==38|(g-32&65535)>>>0>94)){H[e|0]=g;if(d)break f;d=0;break e}H[e|0]=38;if((g|0)==38){if(l>>>0>k>>>0){H[e+1|0]=45;if(d){J[d+4>>2]=f;J[d>> -2]=f;f=f+1|0;d=d+8|0}else d=0;c=j;k=o-c>>1;e=e+2|0;g=l-e|0;m=(g|0)>(k|0)?k:g;if((m|0)>0)continue;break d}if(d){J[d>>2]=f;f=f+1|0;d=d+4|0}else d=0;H[i+63|0]=1;H[i+76|0]=45;J[b>>2]=15;e=k;break d}n=0;if(d){J[d>>2]=f;d=d+4|0}else d=0;e=k;k=f;j=1;continue b}J[d>>2]=f;f=f+1|0;d=d+4|0}g=(m|0)>1;c=j;e=k;m=m-1|0;if(g)continue;break}}p=16777216;m=0;if(j>>>0>=o>>>0)break a;if(e>>>0>=l>>>0)break c;break a}if(c>>>0>=o>>>0){m=1;f=k;j=c;break a}m=1;j=c;f=k;g:{while(1){if(e>>>0>=l>>>0)break c;g=L[j>>1];if((g-32& -65535)>>>0<=94){h:{i:{j:{k:{l:{if(!(n&255)){c=e;break l}c=h&255;if(c>>>0<=62)c=K[c+742160|0];else c=44;H[e|0]=c;c=e+1|0;if(!d)break k;J[d>>2]=f-1;d=d+4|0}g=d;if(c>>>0>>0)break h;break j}if(c>>>0>>0)break i;d=0}e=c;H[i+63|0]=1;H[i+76|0]=45;p=16777216;m=0;break c}H[e+1|0]=45;e=e+2|0;d=0;break g}H[c|0]=45;e=c+1|0;d=0;if(!g)break g;J[g>>2]=f-1;d=g+4|0;break g}m:{n:switch(n<<24>>24){case 0:c=g>>>10|0;if((c|0)!=63)c=K[c+742160|0];else c=44;H[e|0]=c;c=e+1|0;o:{if(c>>>0>>0){c=g>>>4&63;if((c|0)!= -63)c=K[c+742160|0];else c=44;H[e+1|0]=c;e=e+2|0;if(!d){d=0;break o}J[d+4>>2]=f;J[d>>2]=f;d=d+8|0;f=f+1|0;break o}if(d){J[d>>2]=f;f=f+1|0;d=d+4|0}else d=0;e=44;h=g>>>4&63;if((h|0)!=63)e=K[h+742160|0];H[i+63|0]=1;H[i+76|0]=e;J[b>>2]=15;e=c}h=g<<2&60;n=1;break m;case 1:c=((g&49152)>>>14|h)&255;if(c>>>0<=62)c=K[c+742160|0];else c=44;H[e|0]=c;c=e+1|0;p:{if(c>>>0>>0){c=g>>>8&63;if((c|0)!=63)c=K[c+742160|0];else c=44;H[e+1|0]=c;c=e+2|0;if(c>>>0>>0){c=g>>>2&63;if((c|0)!=63)c=K[c+742160|0];else c=44; -H[e+2|0]=c;e=e+3|0;if(!d){d=0;break p}J[d+8>>2]=f;J[d+4>>2]=f;J[d>>2]=f;d=d+12|0;f=f+1|0;break p}if(d){J[d+4>>2]=f;J[d>>2]=f;f=f+1|0;d=d+8|0}else d=0;e=44;h=g>>>2&63;if((h|0)!=63)e=K[h+742160|0];H[i+63|0]=1;H[i+76|0]=e;J[b>>2]=15;e=c;break p}if(d){J[d>>2]=f;f=f+1|0;d=d+4|0}else d=0;e=44;h=g>>>8&63;if((h|0)!=63)h=K[h+742160|0];else h=44;H[i+76|0]=h;h=g>>>2&63;if((h|0)!=63)e=K[h+742160|0];H[i+63|0]=2;H[i+77|0]=e;J[b>>2]=15;e=c}h=g<<4&48;n=2;break m;case 2:break n;default:break m}c=((g&61440)>>>12|h)& -255;if(c>>>0<=62)c=K[c+742160|0];else c=44;H[e|0]=c;c=e+1|0;q:{if(c>>>0>>0){c=g>>>6&63;if((c|0)!=63)c=K[c+742160|0];else c=44;H[e+1|0]=c;c=e+2|0;if(c>>>0>>0){c=g&63;if((c|0)!=63)c=K[c+742160|0];else c=44;H[e+2|0]=c;e=e+3|0;h=0;if(!d){d=0;break q}J[d+8>>2]=f;J[d+4>>2]=f;J[d>>2]=f;d=d+12|0;f=f+1|0;break q}if(d){J[d+4>>2]=f;J[d>>2]=f;f=f+1|0;d=d+8|0}else d=0;e=44;g=g&63;if((g|0)!=63)e=K[g+742160|0];H[i+63|0]=1;H[i+76|0]=e;J[b>>2]=15;h=0;e=c;break q}if(d){J[d>>2]=f;f=f+1|0;d=d+4|0}else d=0;e=44; -h=g>>>6&63;if((h|0)!=63)h=K[h+742160|0];else h=44;H[i+76|0]=h;g=g&63;if((g|0)!=63)e=K[g+742160|0];H[i+63|0]=2;H[i+77|0]=e;J[b>>2]=15;h=0;e=c}n=0}j=j+2|0;if(o>>>0>j>>>0)continue;break}break a}c=j;j=0;continue}break}J[b>>2]=15}r:{s:{t:{if(!(!K[a+2|0]|j>>>0>>0)){if(!m){c=e;break s}u:{v:{w:{if(!(n&255))break w;if(e>>>0>>0){c=h&255;if(c>>>0<=62)c=K[c+742160|0];else c=44;H[e|0]=c;c=e+1|0;if(!d)break v;J[d>>2]=f-1;d=d+4|0;e=c;break w}c=44;k=h&255;if(k>>>0<=62)c=K[k+742160|0];k=H[i+63|0];H[i+63|0]= -k+1;H[(i+k|0)+76|0]=c;J[b>>2]=15}if(e>>>0>>0)break u;c=e;break t}d=0;if(c>>>0>=l>>>0)break t;H[e+1|0]=45;c=e+2|0;break s}H[e|0]=45;c=e+1|0;if(!d){d=0;break s}J[d>>2]=f-1;d=d+4|0;break s}c=e;b=J[i+52>>2]&-268435456|(h&255|p|n<<24>>24<<16);break r}e=H[i+63|0];H[i+63|0]=e+1;H[(e+i|0)+76|0]=45;J[b>>2]=15}b=J[i+52>>2]&-268435456|16777216}J[i+52>>2]=b;J[a+24>>2]=d;J[a+16>>2]=c;J[a+8>>2]=j}function BWa(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=+d;e=e|0;f=f|0;g=g|0;h=+h;i=+i;j=+j;k=+k;l=+l;var m=0, -n=0,o=0,p=0,q=0,r=0,s=0,t=0;n=a;r=J[a+8>>2];m=r+1|0;a=J[a+12>>2];if((m|0)>(a|0)){if(!a){J[n+12>>2]=32;a=32}if((a|0)<(m|0)){while(1){a=a<<1;if((m|0)>(a|0))continue;break}J[n+12>>2]=a}m=0;a:{if(a-1>>>0>67108861)break a;p=J[n>>2];if(!p)break a;a=a<<6;m=Vd(p,a);if(m)break a;m=0;a=zc(a);if(!a)break a;m=r<<6;if(m)tc(a,p,m);qc(p);m=a}J[n>>2]=m;a=J[n+12>>2];b:{if(a-1>>>0>89478483)break b;m=J[n+4>>2];if(!m)break b;p=J[n+8>>2];a=P(a,48);o=Vd(m,a);if(o)break b;o=0;a=zc(a);if(!a)break b;o=P(p,48);if(o)tc(a,m, -o);qc(m);o=a}J[n+4>>2]=o;m=J[n+12>>2];p=m-1|0;o=J[n>>2];c:{if(!o){a=0;if(p>>>0>67108861)break c;a=zc(m<<6);break c}a=0;if(p>>>0>67108861)break c;p=J[n+8>>2];m=m<<6;a=Vd(o,m);if(a)break c;a=0;m=zc(m);if(!m)break c;a=p<<6;if(a)tc(m,o,a);qc(o);a=m}J[n>>2]=a;m=J[n+12>>2];p=m-1|0;o=J[n+4>>2];d:{if(!o){a=0;if(p>>>0>89478483)break d;a=zc(P(m,48));break d}a=0;if(p>>>0>89478483)break d;p=J[n+8>>2];m=P(m,48);a=Vd(o,m);if(a)break d;a=0;m=zc(m);if(!m)break d;a=P(p,48);if(a)tc(m,o,a);qc(o);a=m}J[n+4>>2]=a}a=K[b+ -11|0];m=a<<24>>24<0?J[b+4>>2]:a;a=m+1|0;a=rc(a>>>0>1073741823?-1:a<<2);J[a+(m<<2)>>2]=0;if((m|0)>0)while(1){s=a+(q<<2)|0,t=J[zh(b,q)>>2],J[s>>2]=t;q=q+1|0;if((m|0)!=(q|0))continue;break}o=J[n>>2];b=J[n+8>>2];m=o+(b<<6)|0;H[m|0]=a;H[m+1|0]=a>>>8;H[m+2|0]=a>>>16;H[m+3|0]=a>>>24;q=0;a=K[c+11|0];a=a<<24>>24<0?J[c+4>>2]:a;m=a+1|0;m=rc(m>>>0>1073741823?-1:m<<2);J[m+(a<<2)>>2]=0;if((a|0)>0){while(1){s=m+(q<<2)|0,t=J[zh(c,q)>>2],J[s>>2]=t;q=q+1|0;if((a|0)!=(q|0))continue;break}o=J[n>>2];b=J[n+8>>2]}a=(b<< -6)+o|0;H[a+16|0]=e;H[a+17|0]=e>>>8;H[a+18|0]=e>>>16;H[a+19|0]=e>>>24;A(+d);c=v(1)|0;e=v(0)|0;H[a+8|0]=e;H[a+9|0]=e>>>8;H[a+10|0]=e>>>16;H[a+11|0]=e>>>24;H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+4|0]=m;H[a+5|0]=m>>>8;H[a+6|0]=m>>>16;H[a+7|0]=m>>>24;q=0;a=K[g+11|0];a=a<<24>>24<0?J[g+4>>2]:a;c=a+1|0;c=rc(c>>>0>1073741823?-1:c<<2);J[c+(a<<2)>>2]=0;if((a|0)>0){while(1){s=c+(q<<2)|0,t=J[zh(g,q)>>2],J[s>>2]=t;q=q+1|0;if((a|0)!=(q|0))continue;break}o=J[n>>2];b=J[n+8>>2]}A(+l);e=v(1)| -0;a=(b<<6)+o|0;g=v(0)|0;H[a+56|0]=g;H[a+57|0]=g>>>8;H[a+58|0]=g>>>16;H[a+59|0]=g>>>24;H[a+60|0]=e;H[a+61|0]=e>>>8;H[a+62|0]=e>>>16;H[a+63|0]=e>>>24;A(+k);e=v(1)|0;g=v(0)|0;H[a+48|0]=g;H[a+49|0]=g>>>8;H[a+50|0]=g>>>16;H[a+51|0]=g>>>24;H[a+52|0]=e;H[a+53|0]=e>>>8;H[a+54|0]=e>>>16;H[a+55|0]=e>>>24;A(+j);e=v(1)|0;g=v(0)|0;H[a+40|0]=g;H[a+41|0]=g>>>8;H[a+42|0]=g>>>16;H[a+43|0]=g>>>24;H[a+44|0]=e;H[a+45|0]=e>>>8;H[a+46|0]=e>>>16;H[a+47|0]=e>>>24;A(+i);e=v(1)|0;g=v(0)|0;H[a+32|0]=g;H[a+33|0]=g>>>8;H[a+34| -0]=g>>>16;H[a+35|0]=g>>>24;H[a+36|0]=e;H[a+37|0]=e>>>8;H[a+38|0]=e>>>16;H[a+39|0]=e>>>24;A(+h);e=v(1)|0;g=v(0)|0;H[a+24|0]=g;H[a+25|0]=g>>>8;H[a+26|0]=g>>>16;H[a+27|0]=g>>>24;H[a+28|0]=e;H[a+29|0]=e>>>8;H[a+30|0]=e>>>16;H[a+31|0]=e>>>24;H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;a=J[n+4>>2]+P(b,48)|0;A(+O[f>>3]);c=v(1)|0;e=v(0)|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;A(+O[f+8>>3]);c=v(1)|0;e=v(0)|0;H[a+ -8|0]=e;H[a+9|0]=e>>>8;H[a+10|0]=e>>>16;H[a+11|0]=e>>>24;H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;A(+O[f+16>>3]);c=v(1)|0;e=v(0)|0;H[a+16|0]=e;H[a+17|0]=e>>>8;H[a+18|0]=e>>>16;H[a+19|0]=e>>>24;H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;A(+O[f+24>>3]);c=v(1)|0;e=v(0)|0;H[a+24|0]=e;H[a+25|0]=e>>>8;H[a+26|0]=e>>>16;H[a+27|0]=e>>>24;H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;A(+O[f+32>>3]);c=v(1)|0;e=v(0)|0;H[a+32|0]=e;H[a+33|0]=e>>>8;H[a+34|0]= -e>>>16;H[a+35|0]=e>>>24;H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;A(+O[f+40>>3]);c=v(1)|0;e=v(0)|0;H[a+40|0]=e;H[a+41|0]=e>>>8;H[a+42|0]=e>>>16;H[a+43|0]=e>>>24;H[a+44|0]=c;H[a+45|0]=c>>>8;H[a+46|0]=c>>>16;H[a+47|0]=c>>>24;J[n+8>>2]=b+1}function Mla(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;j=bc-16|0;bc=j;o=J[a>>2];c=J[b>>2];d=J[c+124>>2];h=O[J[d-8>>2]+16>>3];O[c+16>>3]=h;e=J[c+120>>2];k=O[J[e>>2]+8>>3];O[c+8>>3]=k;f=J[a+4>>2]; -m=O[f>>3]+1;O[c+40>>3]=m;i=J[a+8>>2];r=O[i>>3];O[c+32>>3]=r;h=h-k;O[c+24>>3]=h;O[c+48>>3]=m-r;O[c+80>>3]=O[o>>3]-O[f>>3];O[c+72>>3]=O[i>>3];O[c+112>>3]=h/+(d-e>>3>>>0);J[c+88>>2]=0;J[c+92>>2]=0;H[c+60|0]=0;e=J[o+60>>2];a:{b:{d=J[c+124>>2];c=J[c+120>>2];c:{if(d-c>>>0>=9){J[695492]=0;c=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[j+4>>2]=c;J[j+8>>2]=6;J[j+12>>2]=-2147483640;d=J[607951];J[c+16>>2]=J[607950];J[c+20>>2]=d;d=J[607949];J[c+8>>2]=J[607948];J[c+12>>2]=d;d=J[607947];J[c>>2]=J[607946]; -J[c+4>>2]=d;d=c+24|0;break c}c=J[c>>2];d=J[c+56>>2];f=J[c+60>>2];d:{if((d|0)==(f|0)){c=2431812;d=8;break d}h=O[e+16>>3]+1;c=1;while(1){e=J[d>>2];e:{if(!e)break e;e=J[e+56>>2];if(!(h>=O[e+400>>3]))break e;c=K[e+409|0]!=0&c}d=d+8|0;if((f|0)!=(d|0))continue;break}d=c&1;c=d?2431812:2431784;d=d?8:6}J[695492]=0;f=(d|3)+1|0;e=$(4,f<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;J[j+4>>2]=e;J[j+8>>2]=d;J[j+12>>2]=f|-2147483648;p=c;c=d<<2;d=tc(e,p,c)+c|0}J[d>>2]=0;break a}ea(0)|0;yc();B()}c=J[b>>2];if(H[c+ -143|0]<0)qc(J[c+132>>2]);d=J[j+8>>2];J[c+132>>2]=J[j+4>>2];J[c+136>>2]=d;J[c+140>>2]=J[j+12>>2];c=bc-32|0;bc=c;i=J[b>>2];d=J[i+120>>2];f:{g:{h:{i:{if((J[i+124>>2]-d|0)!=8)while(1){d=(l<<3)+d|0;f=J[d>>2];J[c+24>>2]=f;d=J[d+4>>2];J[c+28>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;e=J[f+60>>2];g=e-8|0;d=J[g>>2];J[c+16>>2]=d;g=J[g+4>>2];J[c+20>>2]=g;if(g){J[g+4>>2]=J[g+4>>2]+1;e=J[f+60>>2]}if(!d){e=(e-J[f+56>>2]>>3)-1|0;while(1){e=e-1|0;f=J[J[c+24>>2]+56>>2]+(e<<3)|0;d=J[f>>2];g=J[f+4>>2];if(g)J[g+4>>2]=J[g+4>> -2]+1;J[c+16>>2]=d;f=J[c+20>>2];J[c+20>>2]=g;if(f){d=J[f+4>>2];J[f+4>>2]=d-1;if(!d){gc[J[J[f>>2]+8>>2]](f);Vc(f)}d=J[c+16>>2]}if(!d)continue;break}}J[695492]=0;e=aa(6466,c|0,2439648)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;aa(6367,d+224|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;mk(e);d=J[c+20>>2];j:{if(!d)break j;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break j;gc[J[J[d>>2]+8>>2]](d);Vc(d)}d=J[c+28>>2];k:{if(!d)break k;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break k;gc[J[J[d>>2]+8>>2]](d); -Vc(d)}l=l+1|0;d=J[i+120>>2];if(l>>>0<(J[i+124>>2]-d>>3)-1>>>0)continue;break}bc=c+32|0;break f}d=Z()|0;break g}d=Z()|0;mk(e)}Ie(c+16|0);Ie(c+24|0);ba(d|0);B()}c=2;f=J[b>>2];i=J[f+120>>2];n=J[f+124>>2]-i|0;s=n>>3;l:{if(s>>>0<2)break l;g=J[i+8>>2];h=O[g+32>>3];l=J[i>>2];k=O[l+32>>3];m=R(h-k);e=m<1|!(h>k);d=R(h+O[g+48>>3]*.5-(k+O[l+48>>3]*.5))<1.5;g=R(O[g+40>>3]-O[l+40>>3])<1;if((n|0)!=16){t=i-8|0;while(1){p=d;d=c<<3;n=J[d+i>>2];h=O[n+32>>3];q=J[d+t>>2];k=O[q+32>>3];d=p&R(h+O[n+48>>3]*.5-(k+O[q+48>> -3]*.5))<1.5;g=R(O[n+40>>3]-O[q+40>>3])<1&g;e=R(h-k)<1&e;c=c+1|0;if((s|0)!=(c|0))continue;break}}if(!(!(m<1)|(!e|!g))){J[f+68>>2]=4;break l}m:{n:{if(e){J[f+68>>2]=1;d=0;break n}if(g){J[f+68>>2]=3;break l}if(d)break m;d=J[f+68>>2]!=1}if(d|m<1)break l;H[f+60|0]=1;O[f+88>>3]=O[l+32>>3]-O[f+32>>3];break l}J[f+68>>2]=2}o:{p:switch(J[o+20>>2]-2|0){default:e=J[a+12>>2];c=J[e+4>>2];break o;case 0:case 2:break p}h=O[f+8>>3];e=J[a+12>>2];c=J[e>>2];d=J[e+4>>2];if((c|0)==(d|0)){O[f+96>>3]=h+-1.5;break o}O[f+96>> -3]=h-O[J[d-8>>2]+16>>3];c=d}q:{if(M[e+8>>2]>c>>>0){J[c>>2]=f;J[c+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;J[e+4>>2]=c+8;break q}$u(e,b)}c=rc(160);J[c>>2]=2430396;J[c+4>>2]=0;J[c+8>>2]=0;J[c+16>>2]=2437856;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;d=c- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[c+72>>2]=1;J[c+80>>2]=16777215;I[c+76>>1]=0;wc(c+84|0,0,76);J[b>>2]=c+16;d=J[b+4>>2];J[b+4>>2]=c;r:{if(!d)break r;b=J[d+4>>2];J[d+4>>2]= -b-1;if(b)break r;gc[J[J[d>>2]+8>>2]](d);Vc(d)}O[J[a+8>>2]>>3]=O[o>>3];a=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;bc=j+16|0}function RR(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,w=0,x=0,y=0;i=bc-560|0;bc=i;g=c;c=(c-3|0)/24|0;t=(c|0)>0?c:0;k=g+P(t,-24)|0;n=J[(e<<2)+2451616>>2];j=d-1|0;if((n+j|0)>=0){g=d+n|0;c=t-j|0;while(1){O[(i+320|0)+(h<<3)>>3]=(c|0)<0?0:+J[(c<<2)+2451632>>2];c=c+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}q=k-24|0;g=0;h=(n|0)>0?n:0;m=(d|0)<=0;while(1){a:{if(m){f= -0;break a}r=g+j|0;c=0;f=0;while(1){f=O[(c<<3)+a>>3]*O[(i+320|0)+(r-c<<3)>>3]+f;c=c+1|0;if((d|0)!=(c|0))continue;break}}O[(g<<3)+i>>3]=f;c=(g|0)==(h|0);g=g+1|0;if(!c)continue;break}x=47-k|0;r=48-k|0;y=k-25|0;g=n;b:{while(1){f=O[(g<<3)+i>>3];c=0;h=g;o=(g|0)<=0;if(!o)while(1){m=(i+480|0)+(c<<2)|0;l=f*5.9604644775390625E-8;c:{if(R(l)<2147483648){j=~~l;break c}j=-2147483648}l=+(j|0);f=l*-16777216+f;d:{if(R(f)<2147483648){j=~~f;break d}j=-2147483648}J[m>>2]=j;h=h-1|0;f=O[(h<<3)+i>>3]+l;c=c+1|0;if((g|0)!= -(c|0))continue;break}f=To(f,q);f=f+V(f*.125)*-8;e:{if(R(f)<2147483648){m=~~f;break e}m=-2147483648}f=f-+(m|0);f:{g:{h:{u=(q|0)<=0;i:{if(!u){h=(g<<2)+i|0;j=J[h+476>>2];c=j>>r;s=h;h=j-(c<>2]=h;m=c+m|0;j=h>>x;break i}if(q)break h;j=J[((g<<2)+i|0)+476>>2]>>23}if((j|0)<=0)break f;break g}j=2;if(f>=.5)break g;j=0;break f}c=0;h=0;if(!o)while(1){s=(i+480|0)+(c<<2)|0;o=J[s>>2];v=16777215;j:{k:{if(h)break k;v=16777216;if(o)break k;h=0;break j}J[s>>2]=v-o;h=1}c=c+1|0;if((g|0)!=(c|0))continue;break}l:{if(u)break l; -c=8388607;m:switch(y|0){case 1:c=4194303;break;case 0:break m;default:break l}o=(g<<2)+i|0;J[o+476>>2]=J[o+476>>2]&c}m=m+1|0;if((j|0)!=2)break f;f=1-f;j=2;if(!h)break f;f=f-To(1,q)}if(f==0){h=0;c=g;n:{if((g|0)<=(n|0))break n;while(1){c=c-1|0;h=J[(i+480|0)+(c<<2)>>2]|h;if((c|0)>(n|0))continue;break}if(!h)break n;k=q;while(1){k=k-24|0;g=g-1|0;if(!J[(i+480|0)+(g<<2)>>2])continue;break}break b}c=1;while(1){h=c;c=c+1|0;if(!J[(i+480|0)+(n-h<<2)>>2])continue;break}h=g+h|0;while(1){j=d+g|0;g=g+1|0;O[(i+320| -0)+(j<<3)>>3]=J[(t+g<<2)+2451632>>2];c=0;f=0;if((d|0)>0)while(1){f=O[(c<<3)+a>>3]*O[(i+320|0)+(j-c<<3)>>3]+f;c=c+1|0;if((d|0)!=(c|0))continue;break}O[(g<<3)+i>>3]=f;if((g|0)<(h|0))continue;break}g=h;continue}break}f=To(f,24-k|0);o:{if(f>=16777216){d=(i+480|0)+(g<<2)|0;l=f*5.9604644775390625E-8;p:{if(R(l)<2147483648){c=~~l;break p}c=-2147483648}f=+(c|0)*-16777216+f;q:{if(R(f)<2147483648){a=~~f;break q}a=-2147483648}J[d>>2]=a;g=g+1|0;break o}if(R(f)<2147483648)c=~~f;else c=-2147483648;k=q}J[(i+480| -0)+(g<<2)>>2]=c}f=To(1,k);r:{if((g|0)<0)break r;d=g;while(1){a=d;O[(d<<3)+i>>3]=f*+J[(i+480|0)+(d<<2)>>2];d=d-1|0;f=f*5.9604644775390625E-8;if(a)continue;break}if((g|0)<0)break r;h=g;while(1){f=0;c=0;a=g-h|0;d=(a|0)>(n|0)?n:a;if((d|0)>=0)while(1){f=O[(c<<3)+2454400>>3]*O[(c+h<<3)+i>>3]+f;k=(c|0)!=(d|0);c=c+1|0;if(k)continue;break}O[(i+160|0)+(a<<3)>>3]=f;a=(h|0)>0;h=h-1|0;if(a)continue;break}}s:{t:{u:switch(e|0){case 3:v:{if((g|0)<=0)break v;f=O[(i+160|0)+(g<<3)>>3];c=g;while(1){l=f;d=i+160|0;a=c- -1|0;e=d+(a<<3)|0;w=O[e>>3];f=w+f;O[d+(c<<3)>>3]=l+(w-f);O[e>>3]=f;e=c>>>0>1;c=a;if(e)continue;break}if((g|0)<2)break v;f=O[d+(g<<3)>>3];c=g;while(1){l=f;d=i+160|0;a=c-1|0;e=d+(a<<3)|0;p=O[e>>3];f=p+f;O[d+(c<<3)>>3]=l+(p-f);O[e>>3]=f;d=c>>>0>2;c=a;if(d)continue;break}p=0;if((g|0)<=1)break v;while(1){p=p+O[(i+160|0)+(g<<3)>>3];a=(g|0)>2;g=g-1|0;if(a)continue;break}}f=O[i+160>>3];if(j)break t;O[b>>3]=f;f=O[i+168>>3];O[b+16>>3]=p;O[b+8>>3]=f;break s;case 0:f=0;if((g|0)>=0)while(1){a=g;g=g-1|0;f=f+O[(i+ -160|0)+(a<<3)>>3];if(a)continue;break}O[b>>3]=j?-f:f;break s;case 1:case 2:break u;default:break s}f=0;if((g|0)>=0){d=g;while(1){a=d;d=d-1|0;f=f+O[(i+160|0)+(a<<3)>>3];if(a)continue;break}}O[b>>3]=j?-f:f;f=O[i+160>>3]-f;c=1;if((g|0)>0)while(1){f=f+O[(i+160|0)+(c<<3)>>3];a=(c|0)!=(g|0);c=c+1|0;if(a)continue;break}O[b+8>>3]=j?-f:f;break s}O[b>>3]=-f;f=O[i+168>>3];O[b+16>>3]=-p;O[b+8>>3]=-f}bc=i+560|0;return m&7}function xX(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,r=0;l=bc- -4096|0;bc=l;d=J[c+8>>2];h=bd(1,20);J[h+8>>2]=d;J[h+12>>2]=-1414746709;if(d>>>0<=4294963200){d=bd(1,d+4096|0);J[h+4>>2]=d;m=d?h:0}Pt(m,J[c>>2]);Pt(m+16|0,J[c+16>>2]);d=J[c+8>>2];if(d)tc(J[m+4>>2],J[c+4>>2],d+1|0);e=J[a+128>>2];if(!e){e=zc(28);J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=45;J[e>>2]=0;J[e+24>>2]=-1414746709;J[e+16>>2]=0;J[e+20>>2]=0;J[a+128>>2]=e}c=l;j=4096;d=b;a:{while(1){h=d;n=c;f=K[d|0];H[c|0]=f;if(!f)break a;f=K[d+1|0];H[c+1|0]=f;if(!f)break a;f=K[d+2|0];H[c+2|0]=f;if(!f)break a;f=K[d+3|0]; -H[c+3|0]=f;if(!f)break a;c=c+4|0;d=d+4|0;j=j-4|0;if(j>>>0>4)continue;break}f=c;c=K[d|0];H[f|0]=c;if(!c)break a;c=K[h+5|0];H[n+5|0]=c;if(!c)break a;c=K[h+6|0];H[n+6|0]=c;if(!c)break a;H[n+7|0]=0}d=K[l|0];if(d){c=l;while(1){d=d<<24>>24;if((d|0)>=0)d=d-65>>>0<26?d|32:d;H[c|0]=d;d=K[c+1|0];c=c+1|0;if(d)continue;break}}d=0;h=Qc(l);b:{if((h|0)==-1)break b;c=zc(h+1|0);if(!c)break b;d=tc(c,l,h);H[h+d|0]=0}q=SH(e,d,m);if(q){n=a;a=0;c=b;c:{if(!b)break c;g=18026;b=K[b|0];d:{if(!b)break d;if((b|0)!=105){a=b; -if(((a-65>>>0<26?a|32:a)|0)!=105)break d}g=18027;a=K[c+1|0];if(!a)break d;if((a|0)!=99)if(((a-65>>>0<26?a|32:a)|0)!=99)break d;g=18028;a=K[c+2|0];if(!a)break d;if((a|0)!=99)if(((a-65>>>0<26?a|32:a)|0)!=99)break d;a=K[c+3|0];g=18029}e=1039;d=a-65>>>0<26?a|32:a;a=K[g|0];e:{if((d|0)==((a-65>>>0<26?a|32:a)|0))break e;g=17432;f:{if(!b){a=0;break f}if((b|0)!=105){a=b;if(((a-65>>>0<26?a|32:a)|0)!=105)break f}g=17433;a=K[c+1|0];if(!a)break f;if((a|0)!=112)if(((a-65>>>0<26?a|32:a)|0)!=112)break f;g=17434; -a=K[c+2|0];if(!a)break f;if((a|0)!=116)if(((a-65>>>0<26?a|32:a)|0)!=116)break f;g=17435;a=K[c+3|0];if(!a)break f;if((a|0)!=99)if(((a-65>>>0<26?a|32:a)|0)!=99)break f;a=K[c+4|0];g=17436}e=1028;d=a-65>>>0<26?a|32:a;a=K[g|0];if((d|0)==((a-65>>>0<26?a|32:a)|0))break e;a=5798;g:{if(!b){b=0;break g}if((b|0)!=120)if(((b-65>>>0<26?b|32:b)|0)!=120)break g;a=5799;b=K[c+1|0];if(!b)break g;if((b|0)!=109)if(((b-65>>>0<26?b|32:b)|0)!=109)break g;a=5800;b=K[c+2|0];if(!b)break g;if((b|0)!=112)if(((b-65>>>0<26?b| -32:b)|0)!=112)break g;b=K[c+3|0];a=5801}e=1060;a=K[a|0];if(((b-65>>>0<26?b|32:b)|0)!=((a-65>>>0<26?a|32:a)|0))break c}a=zH(J[n+128>>2],9466);if(!a)break c;k=J[a+4>>2];h=J[a+8>>2];p=k+h|0;g=p-16|0;if(!k|g>>>0<=k>>>0)break c;j=p-4|0;c=k;while(1){a=21011;b=K[c|0];h:{if(!b)break h;if((b|0)!=56)if(((b-65>>>0<26?b|32:b)|0)!=56)break h;a=21012;b=K[c+1|0];if(!b)break h;if((b|0)!=66)if(((b-65>>>0<26?b|32:b)|0)!=98)break h;a=21013;b=K[c+2|0];if(!b)break h;if((b|0)!=73)if(((b-65>>>0<26?b|32:b)|0)!=105)break h; -b=K[c+3|0];a=21014}a=K[a|0];if(((b-65>>>0<26?b|32:b)|0)!=((a-65>>>0<26?a|32:a)|0))break c;a=K[c+6|0];o=((a+c|0)+((a^-1)&1)|0)+7|0;if(o>>>0>j>>>0)break c;a=K[o+1|0];f=a>>>16|0;i=a<<16;b=f;a=K[o|0];f=a>>>8|0;i=a<<24|i;f=b|f;a=K[o+2|0];b=a>>>24|0;d=K[o+3|0];i=d|(a<<8|i);a=d&1;d=i+a|0;b=b|f;b=a>>>0>d>>>0?b+1|0:b;if(!b&d>>>0>h>>>0|b)break c;a=o+4|0;if(a>>>0>p-d>>>0)break c;b=a+d|0;if((K[c+5|0]|K[c+4|0]<<8)!=(e|0)){c=b;if(g>>>0>b>>>0)continue;break c}break}f=p-b|0;i:{if(!m){e=bd(1,20);J[e+12>>2]=-1414746709; -g=c-k|0;a=f+g|0;J[e+8>>2]=a;j=bd(1,a+4096|0);J[e+4>>2]=j;tc(j,k,g);break i}i=J[m+8>>2];e=bd(1,20);J[e+12>>2]=-1414746709;r=i+(i&1)|0;g=a-k|0;a=r+(f+g|0)|0;J[e+8>>2]=a;j=bd(1,a+4096|0);J[e+4>>2]=j;c=tc(j,k,g-4|0)+g|0;h=c-4|0;d=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);H[h|0]=d;H[h+1|0]=d>>>8;H[h+2|0]=d>>>16;H[h+3|0]=d>>>24;tc(c,J[m+4>>2],i)}tc((g+j|0)+r|0,b,f);b=J[n+128>>2];d=zc(5);if(d){H[d+4|0]=0;H[d|0]=56;H[d+1|0]=98;H[d+2|0]=105;H[d+3|0]=109}c=bd(1,20);J[c+8>>2]=a;J[c+12>>2]=-1414746709;a=bd(1,a+ -4096|0);J[c+4>>2]=a;c=a?c:0;Pt(c,0);Pt(c+16|0,J[e+16>>2]);a=J[e+8>>2];if(a)tc(J[c+4>>2],J[e+4>>2],a+1|0);SH(b,d,c);a=J[e+4>>2];if(a)qc(a);a=J[e+16>>2];if(a)qc(a);a=J[e>>2];if(a)qc(a);qc(e)}}bc=l+4096|0;return q}function cK(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,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;i=bc+-64|0;J[i+48>>2]=0;J[i+52>>2]=0;J[i+56>>2]=0;J[i+60>>2]=0;J[i+32>>2]=0;J[i+36>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0;a:{b:{c:{d:{e:{if(c){if(c>>>0>=4){n=c&-4;while(1){m=i+ -32|0;l=k<<1;g=m+(L[l+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;g=m+(L[(l|2)+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;g=m+(L[(l|4)+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;g=m+(L[(l|6)+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;k=k+4|0;h=h+4|0;if((n|0)!=(h|0))continue;break}}g=c&3;if(g)while(1){h=(i+32|0)+(L[(k<<1)+b>>1]<<1)|0;I[h>>1]=L[h>>1]+1;k=k+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}k=J[e>>2];l=15;h=L[i+62>>1];if(h)break d;break e}k=J[e>>2]}l=14;h=0;if(L[i+60>>1])break d;l=13;if(L[i+58>>1])break d;l=12;if(L[i+56>>1])break d;l=11;if(L[i+ -54>>1])break d;l=10;if(L[i+52>>1])break d;l=9;if(L[i+50>>1])break d;l=8;if(L[i+48>>1])break d;l=7;if(L[i+46>>1])break d;l=6;if(L[i+44>>1])break d;l=5;if(L[i+42>>1])break d;l=4;if(L[i+40>>1])break d;l=3;if(L[i+38>>1])break d;l=2;if(L[i+36>>1])break d;if(!L[i+34>>1]){a=J[d>>2];J[d>>2]=a+4;I[a>>1]=320;I[a+2>>1]=0;a=J[d>>2];J[d>>2]=a+4;I[a>>1]=320;I[a+2>>1]=0;m=1;break b}r=(k|0)!=0;l=1;k=1;break c}r=k>>>0>>0?k:l;p=1;k=1;while(1){if(L[(i+32|0)+(k<<1)>>1])break c;k=k+1|0;if((l|0)!=(k|0))continue;break}k= -l}j=-1;o=L[i+34>>1];if(o>>>0>2)break a;s=L[i+36>>1];g=s+(o<<1)|0;if(g>>>0>4)break a;q=L[i+38>>1];g=q+(g<<1)|0;if(g>>>0>8)break a;t=L[i+40>>1];g=t+(g<<1)|0;if(g>>>0>16)break a;u=L[i+42>>1];g=u+(g<<1)|0;if(g>>>0>32)break a;w=L[i+44>>1];g=64-(w+(g<<1)|0)|0;if((g|0)<0)break a;z=L[i+46>>1];g=(g<<1)-z|0;if((g|0)<0)break a;A=L[i+48>>1];g=(g<<1)-A|0;if((g|0)<0)break a;x=L[i+50>>1];g=(g<<1)-x|0;if((g|0)<0)break a;y=L[i+52>>1];g=(g<<1)-y|0;if((g|0)<0)break a;B=L[i+54>>1];g=(g<<1)-B|0;if((g|0)<0)break a;v=L[i+ -56>>1];g=(g<<1)-v|0;if((g|0)<0)break a;m=L[i+58>>1];g=(g<<1)-m|0;if((g|0)<0)break a;n=L[i+60>>1];g=(g<<1)-n|0;if((g|0)<0)break a;g=g<<1;if(g>>>0>>0|(!a|p?(h|0)!=(g|0):0))break a;C=k>>>0>>0;j=0;I[i+2>>1]=0;I[i+4>>1]=o;h=o+s|0;I[i+6>>1]=h;h=h+q|0;I[i+8>>1]=h;h=h+t|0;I[i+10>>1]=h;h=h+u|0;I[i+12>>1]=h;h=h+w|0;I[i+14>>1]=h;h=h+z|0;I[i+16>>1]=h;h=h+A|0;I[i+18>>1]=h;h=h+x|0;I[i+20>>1]=h;h=h+y|0;I[i+22>>1]=h;h=h+B|0;I[i+24>>1]=h;h=h+v|0;I[i+26>>1]=h;h=h+m|0;I[i+28>>1]=h;I[i+30>>1]=h+n;f:{if(!c)break f; -if((c|0)!=1){m=c&-2;h=0;while(1){g=L[(j<<1)+b>>1];if(g){g=(g<<1)+i|0;n=L[g>>1];I[g>>1]=n+1;I[(n<<1)+f>>1]=j}n=j|1;g=L[(n<<1)+b>>1];if(g){g=(g<<1)+i|0;v=L[g>>1];I[g>>1]=v+1;I[(v<<1)+f>>1]=n}j=j+2|0;h=h+2|0;if((m|0)!=(h|0))continue;break}}if(!(c&1))break f;c=L[(j<<1)+b>>1];if(!c)break f;c=(c<<1)+i|0;h=L[c>>1];I[c>>1]=h+1;I[(h<<1)+f>>1]=j}m=C?r:k;s=20;z=0;c=f;w=c;A=0;g:{h:switch(a|0){case 1:j=1;if(m>>>0>9)break a;s=257;w=765024;c=764960;A=1;break g;case 0:break g;default:break h}z=(a|0)==2;s=0;w=765152; -c=765088;if((a|0)!=2)break g;j=1;if(m>>>0>9)break a}q=1<>2];u=0;h=m;o=0;p=0;g=-1;while(1){n=1<>1];a=0;j:{if(h+1>>>0>>0)break j;if(h>>>0>>0){h=0;a=96;break j}a=h-s<<1;h=L[a+c>>1];a=K[a+w|0]}v=p>>>o|0;x=k-o|0;C=-1<>1]=h;H[y+1|0]=x;H[y|0]=a;if(j)continue;break}h=1<>>1|0;if(a&p)continue;break}h=(i+32|0)+(k<<1)|0;j=L[h>>1]-1|0;I[h>>1]=j;p=a?a+(a-1&p)|0:0;u=u+1|0;if(!(j&65535)){if((k|0)== -(l|0))break i;k=L[(L[(u<<1)+f>>1]<<1)+b>>1]}if(k>>>0<=m>>>0)continue;a=p&B;if((a|0)==(g|0))continue;break}o=o?o:m;h=k-o|0;r=1<>>0>>0){g=l-o|0;j=k;k:{while(1){j=r-L[(i+32|0)+(j<<1)>>1]|0;if((j|0)<=0)break k;r=j<<1;h=h+1|0;j=o+h|0;if(l>>>0>j>>>0)continue;break}h=g}r=1<>>0>852&A|q>>>0>592&z)break a;j=J[d>>2];g=j+(a<<2)|0;H[g+1|0]=m;H[g|0]=h;t=(n<<2)+t|0;I[g+2>>1]=t-j>>>2;g=a;continue}break}if(p){a=(p<<2)+t|0;I[a+2>>1]=0;H[a+1|0]=x;H[a|0]=64}J[d>>2]=J[d>>2]+(q<<2)}J[e>> -2]=m;j=0}return j}function ag(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;h=bc-336|0;bc=h;J[h+16>>2]=0;H[h+15|0]=1;a:{if(J[d>>2]>0)break a;b:{c:{if(!b){if(!c){b=h+48|0;break c}J[d>>2]=5;break a}if(c)break b}J[h+40>>2]=0;J[h+44>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;J[h+24>>2]=0;J[h+28>>2]=0;J[h+20>>2]=28;c=h+20|0}J[b+220>>2]=0;H[b+60|0]=0;H[b|0]=0;J[c+24>>2]=b+60;J[c+20>>2]=a;J[c+12>>2]=0;d:{if(!a){m=bc-16|0;bc=m;J[695492]=0;j=J[689355];e=J[695492];J[695492]=0;e:{if((e|0)!=1){if(!j){J[m+ -12>>2]=0;j=730072;n=bc-112|0;bc=n;if(!J[689445]){e=J[689473];if(!e){e=uR(0,0);f:{g:{h:{i:{if(!e)break i;if(!Ec(735272,e))break i;if(Ec(735274,e))break h}e=Hi(735280);if(e)break h;e=Hi(735299);if(e)break h;e=Hi(735308);if(!e)break g}if(!Ec(735272,e))break g;if(Ec(735274,e))break f}e=735313}J[689473]=e}wc(2757792,0,100);f=J[J[694782]>>2]?22390:21276;j:{k:{l:{if(!Ec(e,735313)){if(!f)break k;g=Ec(f,735368)?f:735361;if(K[g|0])break l;break k}g=j1(e,f);if(!g)break k}e=2757792;qd(2757792,g,100);H[2757891]= -0;break j}wc(2757792,0,100);m:{if(!e)break m;g=Yf(e,46);if(!g)break m;f=e;e=(g-e|0)+1|0;e=(e|0)>100?100:e;f=qd(n,f,e);H[(e+f|0)-1|0]=0;qd(2757792,g+1|0,100);H[2757891]=0;e=Yf(2757792,64);if(e)H[e|0]=0;e=j1(f,2757792);if(e)break j;e=2757792;if(K[2757792])break j}H[2757800]=K[735333];e=K[735329]|K[735330]<<8|(K[735331]<<16|K[735332]<<24);J[689448]=K[735325]|K[735326]<<8|(K[735327]<<16|K[735328]<<24);J[689449]=e;e=2757792}J[689445]=e}bc=n+112|0;e=J[689445];n:{if(!e)break n;l=dC(e,m+12|0);f=J[m+12>>2]> -0;if(!(f|!l)){e=0;o:{if(f)break o;e=J[l+24>>2];f=J[J[e+20>>2]+48>>2];if(f){e=gc[f|0](l)|0;if(e)break o;e=J[l+24>>2]}e=J[e+12>>2]+4|0}if(!e)break n}if(!l|(!K[e|0]|J[m+12>>2]>0))break n;j=Qc(e)>>>0>60?730072:e}g=m+12|0;n=0;i=bc-320|0;bc=i;J[i+24>>2]=J[183725];e=J[183724];J[i+16>>2]=J[183723];J[i+20>>2]=e;e=J[183722];J[i+8>>2]=J[183721];J[i+12>>2]=e;e=J[183720];J[i>>2]=J[183719];J[i+4>>2]=e;p=Qc(j);f=Yf(j,44);J[i+20>>2]=j;e=j;p:{if(f){J[i+252>>2]=0;H[i+92|0]=0;H[i+32|0]=0;CK(e,i+32|0,i,g);if(J[g>>2]> -0)break p;e=J[i+20>>2]}r=(f|0)!=0;AK(i+256|0,e);e=34;g=17;q:{while(1){r:{f=g;q=f<<3;o=Ec(i+256|0,J[q+733728>>2]);if((o|0)<0)break r;n=f;f=e;if(o)break r;e=J[(J[q+733732>>2]<<2)+733584>>2];break q}o=g;e=f;g=n+e>>>1|0;if((o|0)!=(g|0))continue;break}e=0}H[2757400]=r;J[689349]=e;e=tc(2757424,j,p);H[e+p|0]=0;J[689355]=e;Lt(14,2875)}bc=i+320|0;ir(l)}bc=m+16|0;e=j;break e}ea(0)|0;yc();B()}J[c+20>>2]=e;if(!e){J[d>>2]=2;break a}j=K[2757400];H[h+15|0]=j;k=J[689349];break d}s:{e=K[a|0];t:{if((e|0)!=117){if((e| -0)!=85|K[a+1|0]!=84)break s;if(K[a+2|0]==70)break t;break s}if(K[a+1|0]!=116|K[a+2|0]!=102)break s}u:{v:switch(K[a+3|0]-45|0){case 0:if(K[a+5|0]|K[a+4|0]!=56)break s;break u;case 11:break v;default:break s}if(K[a+4|0])break s}J[c+20>>2]=728994;k=738704;break a}CK(a,b,c,d);if(J[d>>2]>0)break a;g=J[c+20>>2];k=h+15|0;f=h+16|0;w:{x:{if(!zK(f))break x;if(!g){J[f>>2]=1;e=0;break w}if(!K[g|0])break x;e=p1(g,k,f);if(e>>>0>=M[689399]){if(K[g|0]!=120|K[g+1|0]!=45)break x;if(!zK(f))break x;e=g+2|0;if(!K[e|0])break x; -e=p1(e,k,f);if(e>>>0>=M[689399])break x}l=J[689397]+(L[J[689390]+(e<<1)>>1]<<1)|0}e=l}J[c+20>>2]=e;k=J[h+16>>2];y:{if(!(e?(k|0)<=0:0)){J[c+20>>2]=b;e=b;break y}if((k|0)!=-122)break y;J[d>>2]=-122}j=K[h+15|0];k=0}if(!(!(j&255)|(b|0)==(e|0)))CK(e,b,c,d);z:{if(!a)break z;AK(h+272|0,J[c+20>>2]);a=34;b=17;j=0;while(1){k=b;A:{f=b<<3;e=Ec(h+272|0,J[f+733728>>2]);if((e|0)<0)break A;j=b;k=a;if(e)break A;k=J[(J[f+733732>>2]<<2)+733584>>2];break z}e=b;a=k;b=j+a>>>1|0;if((e|0)!=(b|0))continue;break}k=0}if(k)break a; -J[c+16>>2]=0;J[c+4>>2]=1;b=0;B:{if(J[d>>2]>0)break B;a=J[c+16>>2];if(!(!a|!K[a|0])){b=cC(c,d);break B}C:{a=J[689351];if(a){a=yK(a,J[c+20>>2]);if(a)break C}a=cC(c,d);if(!a|J[d>>2]>0)break B;if(K[c+8|0]){b=a;break B}w1(a);b=a;break B}J[a+4>>2]=J[a+4>>2]+1;b=a}k=b?J[d>>2]<=0?b:0:0}bc=h+336|0;return k}function G0a(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;g=J[a+16>>2];l=J[b+4>>2];p=J[l+44>>2];if(p){t=J[l+48>>2];f=K[l+36|0]}else f=0;s=f<<24>>24;m= -J[b+12>>2];j=J[b+8>>2];i=s+(m-j|0)|0;k=t<<24>>24;a:{if((i|0)<(k|0))break a;d=J[a+20>>2]-g|0;if((d|0)<(k|0)){J[c>>2]=-127;return}i=(d|0)>(i|0)?i:d;o=i-k|0;if((o|0)<=0)break a;k=j+i|0;d=K[k+(s^-1)|0];b:{if((d&192)!=128)break b;if((o|0)<2)break a;q=1;k=k-s|0;d=K[k-2|0];if((d&192)!=128)break b;if((o|0)<3)break a;q=2;d=K[k-3|0];if((d&192)==128)break a}k=(d>>>0>191)+(d>>>0>223)|0;c:{if(d>>>0<=239)break c;k=0;if(d>>>0>253)break c;k=(d>>>0>251)+(d>>>0>247?4:3)|0}if(k>>>0<=q>>>0)break a;i=(q^-1)+i|0}d:{if(!p){e= -j;d=0;break d}H[l+36|0]=0;J[l+44>>2]=0;h=f;d=1}e:while(1){if(!d){if((i|0)>0)while(1){j=e+1|0;h=H[e|0];f:{if((h|0)>=0){H[g|0]=h;g=g+1|0;e=j;f=-1;break f}p=h&255;g:{h:{i:{j:{k:{if(h>>>0>=4294967265){d=H[j|0];if((d|0)>=0|!(d>>>0<4294967232&h>>>0<=4294967276)&((h|0)!=-19|d>>>0>4294967199))break k;f=H[e+2|0];if((f|0)>-65)break j;H[g+2|0]=f;H[g+1|0]=d;H[g|0]=h;break g}if((h|0)!=-32){if(h>>>0<4294967234)break j;f=H[j|0];if((f|0)>-65)break j;H[g+1|0]=f;H[g|0]=h;g=g+2|0;e=e+2|0;f=-2;break f}d=K[j|0];if((d& -224)!=160)break j;f=H[e+2|0];if((f|0)>-65)break j;H[g+2|0]=f;H[g+1|0]=d;H[g|0]=224;break g}if(h>>>0>=4294967280)break i}f=(h>>>0>4294967231)+(h>>>0>4294967263)|0;break h}f=0;if(h>>>0>4294967293)break h;f=(h>>>0>4294967291)+(h>>>0>4294967287?4:3)|0}h=1;t=f+1|0;f=0;d=1;continue e}g=g+3|0;e=e+3|0;f=-3}i=f+i|0;if((i|0)>0)continue;break}l:{m:{n:{if(J[c>>2]>0|e>>>0>=m>>>0)break n;if(J[a+20>>2]==(g|0)){J[c>>2]=15;break n}i=K[e|0];o:{if(i>>>0<=239){f=(i>>>0>191)+(i>>>0>223)|0;break o}f=0;if(i>>>0>253)break o; -f=(i>>>0>251)+(i>>>0>247?4:3)|0}if((f|0)>=(m-e|0)){H[l+37|0]=i;d=e+1|0;if((m|0)==(d|0)){e=1;break m}e=1;while(1){h=K[d|0];if((h&192)!=128){H[l+36|0]=e;J[c>>2]=12;m=d;break l}H[((e<<24>>24)+l|0)+37|0]=h;e=e+1|0;i=h+(i<<6)|0;d=d+1|0;if((m|0)!=(d|0))continue;break}break m}J[c>>2]=-127}m=e;break l}J[l+48>>2]=f+1;H[l+36|0]=e;J[l+44>>2]=i}J[b+8>>2]=m;J[a+16>>2]=g;return}p:{q:{r:{s:{t:{u:{v:{e=t<<24>>24;w:{if((e|0)<=h<<24>>24)break w;while(1){if(j>>>0>=m>>>0)break v;d=K[j|0];if((d&192)!=128)break w;j=j+ -1|0;p=d+(p<<6)|0;h=h+1<<24>>24;if((e|0)>(h|0))continue;break}h=t}n=h<<24>>24;d=(h&255)!=(t&255);if(d|(h&254)!=2)break u;d=n<<2;e=p-J[d+739664>>2]|0;if((e|0)>2]|e-57344>>>0>=4294965248)break s;break t}d=f<<24>>24;c=h<<24>>24;j=(d-c|0)+j|0;if((c|0)>(d|0))while(1){H[(d+l|0)+37|0]=K[j|0];j=j+1|0;d=d+1|0;if((c|0)>(d|0))continue;break}J[l+48>>2]=e;H[l+36|0]=h;J[l+44>>2]=p;J[b+8>>2]=j;J[a+16>>2]=g;return}if((h&255)!=4|d|p-63512704>>>0>=1048576)break s}k=f<<24>>24;d=0;if((k|0)<=0)break p;s=f& -3;o=0;if(f>>>0>=4)break r;e=0;break q}d=f<<24>>24;e=(d-n|0)+j|0;x:{if((d|0)>=(n|0))break x;m=(d^-1)+n|0;f=n-d&3;if(f){j=0;while(1){H[(d+l|0)+37|0]=K[e|0];d=d+1|0;e=e+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}if(m>>>0<3)break x;while(1){f=d+l|0;H[f+37|0]=K[e|0];H[f+38|0]=K[e+1|0];H[f+39|0]=K[e+2|0];H[f+40|0]=K[e+3|0];e=e+4|0;d=d+4|0;if((n|0)!=(d|0))continue;break}}H[l+36|0]=h;J[b+8>>2]=e;J[a+16>>2]=g;J[c>>2]=12;return}d=f&252;e=0;q=l+37|0;r=0;while(1){H[g|0]=K[e+q|0];H[g+1|0]=K[q+(e|1)|0];H[g+2| -0]=K[q+(e|2)|0];H[g+3|0]=K[q+(e|3)|0];e=e+4|0;g=g+4|0;r=r+4|0;if((d|0)!=(r|0))continue;break}}if(s)while(1){H[g|0]=K[(e+l|0)+37|0];e=e+1|0;g=g+1|0;o=o+1|0;if((s|0)!=(o|0))continue;break}d=f}e=(k-n|0)+j|0;y:{if(d<<24>>24>=(n|0))break y;o=(d^-1)+h|0;k=h-d&7;if(k){r=0;while(1){H[g|0]=K[e|0];d=d+1|0;g=g+1|0;e=e+1|0;r=r+1|0;if((k|0)!=(r&255))continue;break}}if((o&255)>>>0<7)break y;while(1){H[g|0]=K[e|0];H[g+1|0]=K[e+1|0];H[g+2|0]=K[e+2|0];H[g+3|0]=K[e+3|0];H[g+4|0]=K[e+4|0];H[g+5|0]=K[e+5|0];H[g+6|0]= -K[e+6|0];H[g+7|0]=K[e+7|0];g=g+8|0;e=e+8|0;d=d+8<<24>>24;if((n|0)>(d|0))continue;break}}i=i-n|0;d=0;continue}}function Qyb(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;f=bc+-64|0;bc=f;if(c)hd(198168,0);a:{b:{c:{d:{e:{c=J[a+28>>2];switch((c>>8)-3|0){case 0:break d;case 1:break e;default:break c}}if((c|0)!=1025)hd(199351,0);J[f+12>>2]=3;d=fk(a,0);J[f+16>>2]=d;f:{if((d|0)<0)break f;g=1;c=fk(a,1);J[f+20>>2]=c;if((c|0)<0)break f;c=fk(a,2);J[f+24>>2]=c;if((c| -0)<0)break f;k=3;break b}hd(200395,0);c=-1;break a}if((c|0)!=769)hd(199351,0);l=1;J[f+12>>2]=1;d=fk(a,0);J[f+16>>2]=d;c=-1;k=1;if((d|0)>=0)break b;hd(200395,0);break a}hd(201208,0);c=-1;break a}g:{e=J[a+24>>2];c=J[e+(J[f+16>>2]<<2)>>2];d=J[e+(d<<2)>>2];h=J[d+16>>2];h:{if(J[c+16>>2]!=(h|0))break h;i=J[d+20>>2];if((i|0)!=J[c+20>>2])break h;d=J[d+24>>2];if(J[c+28>>2]|(d|0)!=J[c+24>>2]|(J[c>>2]|J[c+4>>2]))break h;if(l)break g;c=J[e+(J[f+20>>2]<<2)>>2];if((h|0)!=J[c+16>>2]|(i|0)!=J[c+20>>2]|(J[c+28>>2]| -J[c+24>>2]!=(d|0)))break h;if(J[c>>2]|J[c+4>>2])break h;c=J[e+(J[f+24>>2]<<2)>>2];if((h|0)!=J[c+16>>2]|(i|0)!=J[c+20>>2]|(J[c+28>>2]|J[c+24>>2]!=(d|0)))break h;if(J[c>>2])break h;if(!J[c+4>>2])break g}hd(201922,0);c=-1;break a}if(g){c=-1;if(J[J[e+(J[f+16>>2]<<2)>>2]+24>>2]!=8|J[J[e+(J[f+20>>2]<<2)>>2]+24>>2]!=8)break a;d=24;if(J[J[e+(J[f+24>>2]<<2)>>2]+24>>2]!=8)break a}J[f+60>>2]=0;J[f+52>>2]=1;J[f+56>>2]=0;J[f+32>>2]=1504078485;J[f+36>>2]=h;J[f+44>>2]=d;J[f+40>>2]=i;e=P(i,(P(d,h)+15|0)/16|0)<<1; -J[f+48>>2]=e;c=-1;if(iq(b,1504078485))break a;if(iq(b,h))break a;if(iq(b,i))break a;if(iq(b,d))break a;if(iq(b,e))break a;if(iq(b,1))break a;if(iq(b,0))break a;if(iq(b,0))break a;c=a;p=f+16|0;a=0;i=bc-16|0;bc=i;e=-1;i:{if(J[f+52>>2]!=1)break i;j:{if(!k)break j;while(1){k:{d=ek(J[c+12>>2]-J[c+4>>2]|0,J[c+8>>2]-J[c>>2]|0);J[(i+4|0)+(a<<2)>>2]=d;if(!d)break k;a=a+1|0;if((k|0)!=(a|0))continue;break j}break}fa(202147,202578,235,207896);B()}d=J[f+40>>2];a=P(J[f+44>>2],J[f+36>>2]);J[f+48>>2]=P(d,(a+15|0)/ -16|0)<<1;l:{if((d|0)<=0)break l;q=(a+7|0)/-8&1;n=J[i+12>>2];o=J[i+8>>2];l=J[i+4>>2];m:{while(1){a=0;if(k)while(1){d=a<<2;hk(c,J[d+p>>2],0,m,J[c+8>>2]-J[c>>2]|0,1,J[d+(i+4|0)>>2]);a=a+1|0;if((k|0)!=(a|0))continue;break}h=0;a=0;g=0;n:{e=J[f+36>>2];o:{if((e|0)<=0)break o;while(1){d=J[f+44>>2];r=g<>2];j=J[o+28>>2];if(J[l+20>>2]==1)g=J[g>>2]+(h<<2)|0;else g=J[g+(h<<2)>>2];s=K[g|0];if(J[o+20>>2]==1)g=J[j>>2]+(h<<2)|0;else g=J[j+(h<<2)>>2];j=J[n+28>>2];if(J[n+ -20>>2]==1)j=J[j>>2]+(h<<2)|0;else j=J[j+(h<<2)>>2];g=J[j>>2]<<16&16711680|(J[g>>2]<<8&65280|s);break p;default:break q}g=J[l+28>>2];if(J[l+20>>2]==1)g=J[g>>2]+(h<<2)|0;else g=J[g+(h<<2)>>2];g=J[g>>2]}g=r|g&((d|0)==32?-1:-1<=8){while(1){d=J[b+8>>2];if(d&7)break m;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break n;d=a-8|0;j=g>>>d|0;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;r:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=j;break r}e=-1;if((Uc(b, -j&255)|0)==-1)break i}g=((d|0)==32?-1:-1<>>0>15;a=d;if(e)continue;break}e=J[f+36>>2]}h=h+1|0;if((h|0)<(e|0))continue;break}if((a|0)<=0)break o;e=-1;d=J[b+8>>2];if(d&7)break i;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break n;a=(-1<>>8-a;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=a;break o}e=-1;if((Uc(b,a)|0)==-1)break i}s:{if(!q)break s;d=J[b+8>>2];if(d&7)break m;a=J[b+64>>2];if((a|0)>=0&(a|0)<=J[b+ -60>>2])break n;J[b+4>>2]=J[b+4>>2]|32;a=J[b+28>>2];J[b+28>>2]=a-1;if((a|0)>0){J[b+60>>2]=J[b+60>>2]+1;a=J[b+24>>2];J[b+24>>2]=a+1;H[a|0]=0;break s}e=-1;if((Uc(b,0)|0)==-1)break i}m=m+1|0;if((m|0)>2])continue;break l}break}J[b+8>>2]=d|4}e=-1;break i}e=0;if(!k)break i;a=0;while(1){dg(J[(i+4|0)+(a<<2)>>2]);a=a+1|0;if((k|0)!=(a|0))continue;break}}bc=i+16|0;c=e?-1:0}bc=f- -64|0;return c|0}function $C(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;b=0;a:{if(!a)break a; -n=J[a+12>>2];b=n>>31;l=J[a+8>>2];c=l>>31;g=J[a+4>>2];h=g>>31;e=J[a>>2];a=e>>31;f=(b^n)-b|0;i=(c^l)-c|0;d=(h^g)-h|0;m=(a^e)-a|0;a=(d|0)>(m|0)?d:m;a=(a|0)<(i|0)?i:a;b=(a|0)<(f|0)?f:a;if(b>>>0>=23171){b:{c:{if(b>>>0<=65535){a=((b<<16|11584)>>>0)/23170|0;k=a;break c}a=2147483647;k=2147483647;if(b>>>0>1518469119)break c;a=b<<16|11585;h=b>>>16|0;c=S(h);b=32-c|0;h=a>>>b|h<>>0)/23170|0;h=P(k,-23170)+h|0;a=a<>>31;j=b>>>0>23169;h=(j?-23170:0)+b|0;k=j|k<<1;b=31-c|0;a=a<<1}if((c|0)!= -31)while(1){c=h<<1|a>>>31;j=c>>>0>23169;c=a>>>30&1|(j?2147460478:0)+c<<1;o=c>>>0>23169;h=(o?-23170:0)+c|0;k=o|(k<<2|j<<1);a=a<<2;b=b-2|0;if(b)continue;break}a=k>>31;a=(a^k)-a|0;if(k)break c;f=2147483647;k=0;m=1;break b}b=e?(m|0)==2147483647?2147483647:m:2147483647;b=g?b>>>0>d>>>0?d:b:b;b=l?b>>>0>i>>>0?i:b:b;b=n?b>>>0>f>>>0?f:b:b;if(b>>>0<=(a>>>17^65535)>>>0){f=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;m=0;break b}f=2147483647;m=0;c=a>>>1|0;d=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>d>>>0)|0;if(b>>>0>=a>>>0)break b; -h=S(b);i=32-h|0;b=d>>>i|b<>>0)/(a>>>0)|0;c=b-P(a,f)|0;b=d<>>31;i=c>>>0>=a>>>0;c=c-(i?a:0)|0;f=i|f<<1;i=31-h|0;b=b<<1}if((h|0)==31)break b;while(1){c=c<<1|b>>>31;h=c>>>0>=a>>>0;c=b>>>30&1|c-(h?a:0)<<1;d=c>>>0>=a>>>0;c=c-(d?a:0)|0;f=d|(f<<2|h<<1);b=b<<2;i=i-2|0;if(i)continue;break}}b=0;if(!((k|0)<0?0-f|0:f))break a;i=2147483647;h=2147483647;d:{if(m)break d;b=e>>31;b=(b^e)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){h=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break d}c=a>>>1|0;j=c+(b<<16)| -0;b=(b>>>16|0)+(c>>>0>j>>>0)|0;if(b>>>0>=a>>>0)break d;f=S(b);c=32-f|0;b=j>>>c|b<>>0)/(a>>>0)|0;d=b-P(a,h)|0;b=j<>>31;c=d>>>0>=a>>>0;d=d-(c?a:0)|0;h=c|h<<1;c=31-f|0;b=b<<1}if((f|0)==31)break d;while(1){d=d<<1|b>>>31;f=d>>>0>=a>>>0;d=b>>>30&1|d-(f?a:0)<<1;j=d>>>0>=a>>>0;d=d-(j?a:0)|0;h=j|(h<<2|f<<1);b=b<<2;c=c-2|0;if(c)continue;break}}j=(k|0)<0;o=e>>31|1;p=0-o|0;e:{if(m)break e;b=g>>31;b=(b^g)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){i=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break e}c= -a>>>1|0;d=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>d>>>0)|0;if(b>>>0>=a>>>0)break e;f=S(b);e=32-f|0;b=d>>>e|b<>>0)/(a>>>0)|0;c=b-P(a,i)|0;b=d<>>31;e=c>>>0>=a>>>0;c=c-(e?a:0)|0;i=e|i<<1;e=31-f|0;b=b<<1}if((f|0)==31)break e;while(1){c=c<<1|b>>>31;f=c>>>0>=a>>>0;c=b>>>30&1|c-(f?a:0)<<1;d=c>>>0>=a>>>0;c=c-(d?a:0)|0;i=d|(i<<2|f<<1);b=b<<2;e=e-2|0;if(e)continue;break}}o=j?p:o;b=g>>31|1;p=j?0-b|0:b;c=2147483647;f=2147483647;f:{if(m)break f;b=l>>31;b=(b^l)-b|0;if(b>>>0<=(a>>>17^65535)>>> -0){f=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break f}e=a>>>1|0;j=e+(b<<16)|0;b=(b>>>16|0)+(e>>>0>j>>>0)|0;if(b>>>0>=a>>>0)break f;g=S(b);e=32-g|0;b=j>>>e|b<>>0)/(a>>>0)|0;d=b-P(a,f)|0;b=j<>>31;e=d>>>0>=a>>>0;d=d-(e?a:0)|0;f=e|f<<1;e=31-g|0;b=b<<1}if((g|0)==31)break f;while(1){d=d<<1|b>>>31;g=d>>>0>=a>>>0;d=b>>>30&1|d-(g?a:0)<<1;j=d>>>0>=a>>>0;d=d-(j?a:0)|0;f=j|(f<<2|g<<1);b=b<<2;e=e-2|0;if(e)continue;break}}d=(o|0)<0;j=0-h|0;o=(p|0)<0;p=0-i|0;b=l>>31|1;q=(k|0)<0;r=((q?0-b|0: -b)|0)<0;s=0-f|0;g:{if(m)break g;b=n>>31;b=(b^n)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){c=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break g}e=a>>>1|0;k=e+(b<<16)|0;b=(b>>>16|0)+(e>>>0>k>>>0)|0;if(b>>>0>=a>>>0)break g;e=S(b);l=32-e|0;b=k>>>l|b<>>0)/(a>>>0)|0;g=b-P(a,c)|0;b=k<>>31;l=g>>>0>=a>>>0;g=g-(l?a:0)|0;c=l|c<<1;l=31-e|0;b=b<<1}if((e|0)==31)break g;while(1){g=g<<1|b>>>31;e=g>>>0>=a>>>0;g=b>>>30&1|g-(e?a:0)<<1;k=g>>>0>=a>>>0;g=g-(k?a:0)|0;c=k|(c<<2|e<<1);b=b<<2;l=l-2|0;if(l)continue; -break}}g=o?p:i;l=r?s:f;a=n>>31|1;n=((q?0-a|0:a)|0)<0?0-c|0:c;e=d?j:h}a=P(e,n);c=P(g,l);b=0;if((a|0)==(c|0))break a;b=a-c|0;a=b>>31;b=(((P(e,e)+P(g,g)|0)+P(l,l)|0)+P(n,n)>>>0)/((a^b)-a>>>0)>>>0<51}return b}function cwa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;s=bc-32|0;bc=s;a:{b:{c:{if((e|0)==1){q=bc-32|0;bc=q;d:{e=a;e:{if(L[a+10>>1]<=(c|0)|L[a+8>>1]<=(d|0)|(L[b+10>>1]+c|0)<0)break e;g=L[b+8>>1];if((g+d|0)<0)break e;if(J[b+20>>2]){f:{if(J[a+ -24>>2]|J[a+20>>2])break f;f=J[a+36>>2];if(!f)break f;Mn(a,f);g=L[b+8>>1]}if(!(g&65535))break e;a=0-c|0;a=(a|0)>0?a:0;n=a^-1;h=L[e+14>>1];j=((J[e+24>>2]+L[e+12>>1]|0)+P(h,d)|0)+c|0;i=J[b+20>>2]+L[b+12>>1]|0;while(1){f=d+l|0;g:{if((f|0)<0|(f|0)>=L[e+8>>1])break g;f=L[b+10>>1];k=L[e+10>>1]-c|0;k=(f|0)<(k|0)?f:k;if((k|0)<=(a|0))break g;g=0;f=a;h=k-f&3;if(h)while(1){r=f+j|0;H[r|0]=K[r|0]+K[f+i|0];f=f+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}if(k+n>>>0>=3)while(1){g=f+j|0;H[g|0]=K[g|0]+K[f+i|0];g=f+1| -0;h=g+j|0;H[h|0]=K[h|0]+K[g+i|0];g=f+2|0;h=g+j|0;H[h|0]=K[h|0]+K[g+i|0];g=f+3|0;h=g+j|0;H[h|0]=K[h|0]+K[g+i|0];f=f+4|0;if((k|0)!=(f|0))continue;break}g=L[b+8>>1];h=L[e+14>>1]}j=(h&65535)+j|0;i=L[b+14>>1]+i|0;l=l+1|0;if(l>>>0<(g&65535)>>>0)continue;break}break e}if(!J[b+36>>2])break e;h:{if(J[e+24>>2]|J[e+20>>2])break h;a=J[e+36>>2];if(!a)break h;Mn(e,a);g=L[b+8>>1]}a=g&65535;if(!a)break e;f=L[e+14>>1];j=a-1|0;h=(((J[e+24>>2]+L[e+12>>1]|0)+P(f,d)|0)+c|0)+P(f,j)|0;n=0-c|0;g=J[b+36>>2];while(1){f=K[g| -0];if(f>>>0<192)g=g+1|0;else{f=K[g+1|0]|f<<8&16128;g=g+2|0}l=L[b+10>>1];a=f+i|0;if((l|0)<(a|0)){b=Kc(q+8|0,2377335,2373930,601,2407202,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;break a}i:{if(!(k&255))break i;f=d+j|0;if((f|0)<0|(f|0)>=L[e+8>>1])break i;f=(c+i|0)<0?(a|0)>(n|0)?n:a:i;if((a|0)<=(f|0))break i;while(1){if(L[e+10>>1]>(c+f|0)){i=f+h|0;H[i|0]=K[i|0]+1;f=f+1|0;if((a|0)!=(f|0))continue}break}l=L[b+10>>1]}if((a|0)<(l|0))k=1-k|0;else{j=j-1|0;h=h-L[e+14>>1]|0;a=0;k= -0}i=a;if((j|0)>=0)continue;break}}bc=q+32|0;break c}B()}if((P(L[a+10>>1],e)|0)<=(c|0)|(P(L[a+8>>1],e)|0)<=(d|0)|(L[b+10>>1]+c|0)<0)break c;h=L[b+8>>1];if((h+d|0)<0)break c;if(J[b+20>>2]){j:{if(J[a+24>>2]|J[a+20>>2])break j;f=J[a+36>>2];if(!f)break j;Mn(a,f);h=L[b+8>>1]}if(!h)break c;f=(c|0)/(e|0)|0;g=c-P(f,e)|0;c=g>>31;q=c+f|0;n=g+(c&e)|0;c=(d|0)/(e|0)|0;d=d-P(c,e)|0;f=d>>31;i=(f&e)+d|0;j=L[a+14>>1];o=c+f|0;p=(J[a+24>>2]+L[a+12>>1]|0)+P(j,o)|0;k=J[b+20>>2]+L[b+12>>1]|0;while(1){k:{if((o|0)<0|L[a+ -8>>1]<=(o|0))break k;d=0;f=n;c=q;g=L[b+10>>1];if(!g)break k;while(1){if(!((c|0)<0|L[a+10>>1]<=(c|0))){g=c+p|0;H[g|0]=K[g|0]+K[d+k|0];g=L[b+10>>1]}f=f+1|0;j=(f|0)>=(e|0);f=j?0:f;c=c+j|0;d=d+1|0;if(g>>>0>d>>>0)continue;break}h=L[b+8>>1];j=L[a+14>>1]}d=i+1|0;c=(d|0)>=(e|0);i=c?0:d;p=(c?j:0)+p|0;k=L[b+14>>1]+k|0;o=c+o|0;l=l+1|0;if(h>>>0>l>>>0)continue;break}break c}if(!J[b+36>>2])break c;l:{if(J[a+24>>2]|J[a+20>>2])break l;f=J[a+36>>2];if(!f)break l;Mn(a,f);h=L[b+8>>1]}if(!h)break c;l=h-1|0;f=l+d|0;d= -(f|0)/(e|0)|0;f=f-P(d,e)|0;g=f>>31;h=(g&e)+f|0;g=d+g|0;o=(J[a+24>>2]+L[a+12>>1]|0)+P(g,L[a+14>>1])|0;q=e-1|0;k=J[b+36>>2];d=c;c=(c|0)/(e|0)|0;d=d-P(c,e)|0;i=d>>31;n=(i&e)+d|0;f=n;r=c+i|0;d=r;while(1){c=K[k|0];if(c>>>0<192)k=k+1|0;else{c=K[k+1|0]|c<<8&16128;k=k+2|0}i=L[b+10>>1];p=c+p|0;if((i|0)<(p|0)){b=Kc(s+8|0,2377335,2373930,702,2407248,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}m:{if(!c|(g|0)<0|L[a+8>>1]<=g>>>0)break m;if(!(j&255)){u=L[a+10>>1];while(1){if((d| -0)>=(u|0))break m;m=f;f=e-f|0;t=(c|0)>(f|0)?f:c;f=m+t|0;m=(f|0)>=(e|0);f=m?0:f;d=d+m|0;c=c-t|0;if((c|0)>0)continue;break}break m}while(1){if(L[a+10>>1]>(d|0)){i=e-f|0;i=(c|0)>(i|0)?i:c;if((d|0)>=0){m=d+o|0;H[m|0]=i+K[m|0]}f=f+i|0;m=(f|0)>=(e|0);f=m?0:f;d=d+m|0;c=c-i|0;if((c|0)>0)continue}break}i=L[b+10>>1]}if((i|0)>(p|0))j=1-j|0;else{l=l-1|0;p=0;if((h|0)>0)c=h-1|0;else{g=g-1|0;o=o-L[a+14>>1]|0;c=q}h=c;d=r;f=n;j=0}if((l|0)>=0)continue;break}}bc=s+32|0;return}B()}a=Z()|0;Fc(b);ba(a|0);B()}function IU(a){a= -a|0;var b=0,c=0,d=0;J[a>>2]=2402196;J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;J[695492]=0;da(5238,b|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+108>>2];if(b){J[695492]=0;ca(5100,b|0,5303,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+152>>2];if(b)qc(b);J[a+152>>2]=0;b=J[a+164>>2];J[a+164>>2]=0;b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]= -0;if((b|0)==1)break a}b=J[a+160>>2];J[a+160>>2]=0;c:{if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+156>>2];J[a+156>>2]=0;d:{if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}$c(a+112|0);b=J[a+108>>2];J[a+108>>2]=0;e:{if(!b)break e;J[695492]= -0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+72>>2]=2381028;J[a+96>>2]=2381060;b=J[a+100>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+100>>2]=0}J[a+88>>2]=2381060;b=J[a+92>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+92>>2]=0}sc(a+80|0);sc(a+60|0);sc(a+52|0);b=J[a+48>>2];J[a+48>>2]=0;f:{if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>> -2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+44>>2];J[a+44>>2]=0;g:{if(!b)break g;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break g;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+40>>2];J[a+40>>2]=0;h:{if(!b)break h;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break h;J[695492]=0;_(4987,b|0); -b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+36>>2];J[a+36>>2]=0;i:{if(!b)break i;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+32>>2];J[a+32>>2]=0;j:{if(!b)break j;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break j;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+28>>2];J[a+28>>2]=0;k:{if(!b)break k; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break k;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+24>>2];J[a+24>>2]=0;l:{if(!b)break l;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break l;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+20>>2];J[a+20>>2]=0;m:{if(!b)break m;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break m; -J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+16>>2];J[a+16>>2]=0;n:{if(!b)break n;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break n;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+12>>2];J[a+12>>2]=0;o:{if(!b)break o;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break o;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+8>>2];J[a+8>> -2]=0;p:{if(!b)break p;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break p;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}return Hq(a)|0}ea(0)|0;yc();B()}function NU(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=bc-144|0;bc=f;h=di();c=bc-16|0;bc=c;e=h- -64|0;d=e;i=J[d+24>>2];J[c+12>>2]=d;J[c+8>>2]=i;a:{b:{c:while(1){d=J[c+8>>2];if(d)while(1){if((e|0)!=J[c+12>>2])break b;if(J[d+24>>2]==(b|0)){J[c+4>>2]=e;J[c>>2]=d;J[c+8>>2]=J[d>> -2];$o(e,c);continue c}d=J[d>>2];J[c+8>>2]=d;if(d)continue;break}break}bc=c+16|0;break a}aj(c+8|0,e);B()}d:{e:{f:{g:{h:{i:{if(!(!(J[b+148>>2]&2)|!J[a+100>>2])){J[695492]=0;i=b+72|0;c=aa(4991,f+108|0,i|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;J[695492]=0;d=f+72|0;ca(5231,d|0,c|0,0);e=J[695492];J[695492]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if((e|0)!=1){J[695492]=0;ca(5250,h|0,b|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break x;sc(d);J[c+24>>2]=2381060;J[c>>2]=2381028;d=J[c+28>>2]; -if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[c+28>>2]=0}J[c+16>>2]=2381060;d=J[c+20>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[c+20>>2]=0}sc(c+8|0);y:{if(!(J[a+92>>2]&6))break y;J[695492]=0;c=aa(4991,f+72|0,i|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;J[695492]=0;e=aa(5251,a|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[c+24>>2]=2381060;J[c>>2]=2381028;d=J[c+28>>2];if(d){g=J[d+4>>2]-1|0;J[d+4>>2]=g;if(!g)gc[J[J[d>>2]+4>>2]](d);J[c+28>>2]= -0}J[c+16>>2]=2381060;d=J[c+20>>2];if(d){g=J[d+4>>2]-1|0;J[d+4>>2]=g;if(!g)gc[J[J[d>>2]+4>>2]](d);J[c+20>>2]=0}sc(c+8|0);if((e|0)<0)break y;if(!e){J[695492]=0;c=f- -64|0;ca(5231,c|0,a+8|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break f;J[695492]=0;d=f+12|0;ca(5121,d|0,c|0,2388349);g=J[695492];J[695492]=0;if((g|0)==1)break w;J[695492]=0;ca(5250,h|0,b|0,d|0);g=J[695492];J[695492]=0;if((g|0)==1)break v;sc(d);sc(c)}J[695492]=0;c=f+56|0;ca(5231,c|0,a+8|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]= -0;d=f- -64|0;ca(5121,d|0,c|0,2388561);a=J[695492];J[695492]=0;if((a|0)==1)break t;J[695492]=0;a=aa(5120,f+48|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;J[695492]=0;e=f+12|0;ca(5122,e|0,d|0,a|0);g=J[695492];J[695492]=0;if((g|0)==1)break r;J[695492]=0;ca(5250,h|0,b|0,e|0);g=J[695492];J[695492]=0;if((g|0)==1)break q;sc(e);sc(a);sc(d);sc(c)}J[695492]=0;a=aa(4991,f+12|0,i|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=f+56|0;ca(5231,c|0,a|0,0);d=J[695492];J[695492]=0;if((d|0)== -1)break m;J[695492]=0;d=f- -64|0;ca(5121,d|0,c|0,2388349);e=J[695492];J[695492]=0;if((e|0)==1)break l;J[695492]=0;ca(5250,h|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;sc(d);sc(c);J[a+24>>2]=2381060;J[a>>2]=2381028;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2381060;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}sc(a+8|0);break i}break h}a=Z()|0;sc(f+72|0);break g}b=Z()|0;break u}b=Z()|0;sc(f+ -12|0)}sc(f- -64|0);break d}b=Z()|0;break n}b=Z()|0;break o}b=Z()|0;break p}b=Z()|0;sc(f+12|0)}sc(a)}sc(f- -64|0)}sc(f+56|0);break d}b=Z()|0;break e}b=Z()|0;break j}b=Z()|0;sc(f- -64|0)}sc(f+56|0);break e}J[695492]=0;d=f+12|0;da(5239,d|0,a|0);a=J[695492];J[695492]=0;z:{A:{B:{C:{D:{if((a|0)!=1){J[695492]=0;a=aa(4991,f+108|0,b+72|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break D;c=J[a+8>>2];e=J[(c?c+12|0:2728584)>>2];J[695492]=0;c=f+72|0;ca(5121,c|0,d|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break C; -J[695492]=0;ca(5250,h|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break B;sc(c);J[a+24>>2]=2381060;J[a>>2]=2381028;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2381060;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}sc(a+8|0);sc(f+12|0);break i}break f}b=Z()|0;break z}b=Z()|0;break A}b=Z()|0;sc(f+72|0)}ud(a)}sc(f+12|0);break d}bc=f+144|0;return}a=Z()|0}ud(c);ba(a|0);B()}ba(Z()|0);B()}ud(a)}ba(b|0);B()} -function xOa(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;i=UZ(J[a+416>>2],b);a:{if(i)break a;i=0;if(!tk(J[a+16>>2],b))break a;h=bc-16|0;bc=h;J[h+12>>2]=0;J[h+8>>2]=0;j=J[b+4>>2];c=bc-48|0;bc=c;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!J[689609]){H[c+8|0]=K[775358];J[c+32>>2]=30284;H[c+11|0]=9;H[c+9|0]=0;J[c+24>>2]=J[c+8>>2];J[c+28>>2]=1714320;d=K[775354]|K[775355]<<8|(K[775356]<<16|K[775357]<<24);e=K[775350]|K[775351]<<8|(K[775352]<<16|K[775353]<<24);J[c>>2]=e;J[c+4>>2]=d;J[c+16>>2]=e; -J[c+20>>2]=d;J[695492]=0;d=c+16|0;ia(3359,c+40|0,2758428,d|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break d;if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+11|0]<0)qc(J[c>>2]);I[c+8>>1]=K[776379]|K[776380]<<8;J[c+32>>2]=19179;I[c+10>>1]=2560;J[c+24>>2]=J[c+8>>2];d=K[776375]|K[776376]<<8|(K[776377]<<16|K[776378]<<24);e=K[776371]|K[776372]<<8|(K[776373]<<16|K[776374]<<24);J[c+16>>2]=e;J[c+20>>2]=d;J[c+28>>2]=1835456;J[c>>2]=e;J[c+4>>2]=d;J[695492]=0;d=c+16|0;ia(3359,c+40|0,2758428,d|0,d|0);d=J[695492];J[695492]= -0;if((d|0)==1)break d;if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+11|0]<0)qc(J[c>>2]);d=rc(16);H[d+12|0]=0;e=K[777537]|K[777538]<<8|(K[777539]<<16|K[777540]<<24);H[d+8|0]=e;H[d+9|0]=e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;e=K[777533]|K[777534]<<8|(K[777535]<<16|K[777536]<<24);f=K[777529]|K[777530]<<8|(K[777531]<<16|K[777532]<<24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;J[695492]=0;e=c+16|0;ca(2672,e|0,d|0,12);f=J[695492];J[695492]= -0;if((f|0)==1)break l;J[c+32>>2]=18352;J[c+28>>2]=2004416;J[695492]=0;ia(3359,c|0,2758428,e|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break k;if(H[c+27|0]<0)qc(J[c+16>>2]);qc(d);H[c+11|0]=8;H[c+8|0]=0;J[c+32>>2]=22897;J[c+24>>2]=J[c+8>>2];J[c+16>>2]=1651467329;J[c+20>>2]=1380658533;J[c+28>>2]=2077824;J[c>>2]=1651467329;J[c+4>>2]=1380658533;J[695492]=0;d=c+16|0;ia(3359,c+40|0,2758428,d|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break d;if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+11|0]<0)qc(J[c>>2]);d=rc(16); -H[d+12|0]=0;e=K[780025]|K[780026]<<8|(K[780027]<<16|K[780028]<<24);H[d+8|0]=e;H[d+9|0]=e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;e=K[780021]|K[780022]<<8|(K[780023]<<16|K[780024]<<24);f=K[780017]|K[780018]<<8|(K[780019]<<16|K[780020]<<24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;J[695492]=0;e=c+16|0;ca(2672,e|0,d|0,12);f=J[695492];J[695492]=0;if((f|0)==1)break j;J[c+32>>2]=23060;J[c+28>>2]=1912176;J[695492]=0;ia(3359,c|0,2758428, -e|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;if(H[c+27|0]<0)qc(J[c+16>>2]);qc(d)}d=Qc(j);if(d>>>0>=2147483632)break e;if(d>>>0>10)break g;H[c+27|0]=d;e=c+16|0;break f}a=Z()|0;qc(d);break c}a=Z()|0;if(H[c+27|0]<0)qc(J[c+16>>2]);qc(d);break c}a=Z()|0;break h}a=Z()|0;if(H[c+27|0]>=0)break h;qc(J[c+16>>2])}qc(d);break c}f=(d|15)+1|0;e=rc(f);J[c+24>>2]=f|-2147483648;J[c+16>>2]=e;J[c+20>>2]=d}k=tc(e,j,d)+d|0,l=0,H[k|0]=l;J[695492]=0;d=Tt(2758428,c+16|0);e=J[695492];J[695492]=0;m:{n:{if((e|0)!=1){if(H[c+ -27|0]<0)qc(J[c+16>>2]);if((d|0)!=2758432)break n;f=0;e=0;break m}a=Z()|0;if(H[c+27|0]>=0)break c;qc(J[c+16>>2]);break c}f=J[d+28>>2];e=J[d+32>>2]}J[h+12>>2]=f;J[h+8>>2]=e;bc=c+48|0;c=(d|0)!=2758432;break b}Id(c+16|0);B()}a=Z()|0;if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+11|0]>=0)break c;qc(J[c>>2])}ba(a|0);B()}o:{p:{q:{if(c){g=rc(28);J[695492]=0;c=$(4,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;J[695492]=0;d=aa(3183,c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=Z()|0;qc(c);break p}e=J[h+12>>2]; -b=J[h+8>>2];J[g+8>>2]=b;J[g>>2]=d;J[695492]=0;c=aa(3376,b|0,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;J[g+4>>2]=c;tc(c,e,b<<2);J[g+20>>2]=0;J[g+24>>2]=1;J[g+12>>2]=0;J[g+16>>2]=0}bc=h+16|0;b=g;break o}a=Z()|0}qc(g);ba(a|0);B()}if(!b)break a;TZ(J[a+416>>2],b);i=b}return i|0}function iXa(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=+n;o=+o;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0;e=bc-96|0;bc=e;a:{b:{if(K[a+ -220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))break b;if(!((l-j|0)!=1|(m-k|0)!=1)){Uv(c,d,g,h,i,0,0,0,0,0,0,0);break b}if(R(O[i+16>>3]-O[i>>3]-n)>.001|R(O[i+24>>3]-O[i+8>>3]-o)>.001)break b;f=J[a+104>>2];gc[J[J[f>>2]+32>>2]](f,e+88|0)|0;f=J[a+104>>2];gc[J[J[f>>2]+24>>2]](f,e+80|0)|0;f=J[a+104>>2];gc[J[J[f>>2]+40>>2]](f,e+72|0)|0;f=J[a+104>>2];gc[J[J[f>>2]+44>>2]](f,e- -64|0)|0;n=O[e+88>>3]*O[e+72>>3]/25.4*(n/O[b+96>>3]);O[e+88>>3]=n;o=O[e+80>>3]*O[e+64>>3]/25.4*(o/O[b+104>>3]);O[e+80>>3]=o;n=ms(n); -c:{if(R(n)<2147483648){f=~~n;break c}f=-2147483648}J[e+60>>2]=f;n=ms(o);d:{if(R(n)<2147483648){p=~~n;break d}p=-2147483648}J[e+56>>2]=p;f=P(f,p)<<2;y=wc(rc(f),0,f);f=rc(48);J[695492]=0;J[f>>2]=0;J[f+4>>2]=0;H[f+40|0]=0;J[f+32>>2]=0;J[f+36>>2]=-1074790400;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;J[f+16>>2]=0;J[f+20>>2]=0;p=f;J[f+8>>2]=0;J[f+12>>2]=0;q=J[695492];J[695492]=0;e:{f:{if((q|0)!=1){J[f+16>>2]=y;J[f+4>>2]=J[e+60>>2];J[f+8>>2]=J[e+56>> -2];J[e+24>>2]=0-(J[e+60>>2]<<2);t=e+24|0;J[f+12>>2]=J[t>>2];q=gL();gc[J[J[q>>2]+460>>2]](q,J[a+160>>2]);gc[J[J[q>>2]+488>>2]](q,f);O[e+24>>3]=O[e+88>>3]*25.4/72;gc[J[J[q>>2]+36>>2]](q,t)|0;O[e+24>>3]=O[e+80>>3]*25.4/72;gc[J[J[q>>2]+28>>2]](q,t)|0;J[e+24>>2]=1;gc[J[J[q>>2]+416>>2]](q,826964,t)|0;gc[J[J[q>>2]+480>>2]](q,0);O[e+24>>3]=O[i>>3];O[e+32>>3]=O[i+8>>3];O[e+40>>3]=O[i+16>>3];O[e+48>>3]=O[i+24>>3];f=rc(224);s=J[a+168>>2];x=J[a+160>>2];J[695492]=0;s=ha(3228,f|0,q|0,x|0,s|0)|0;x=J[695492];J[695492]= -0;if((x|0)==1)break a;c=J[c>>2];J[s+164>>2]=J[c+24>>2];f=rc(128);J[695492]=0;c=Pa(3229,f|0,c|0,s|0,-1,g|0,+O[e+72>>3],+O[e+64>>3],t|0,0,0,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;WA(c,d);J[p>>2]=0;J[p+4>>2]=0;H[p+40|0]=0;J[p+32>>2]=0;J[p+36>>2]=-1074790400;H[p+21|0]=0;H[p+22|0]=0;H[p+23|0]=0;H[p+24|0]=0;H[p+25|0]=0;H[p+26|0]=0;H[p+27|0]=0;H[p+28|0]=0;J[p+16>>2]=0;J[p+20>>2]=0;J[p+8>>2]=0;J[p+12>>2]=0;qc(Vv(c));gc[J[J[q>>2]+4>>2]](q);gc[J[J[s>>2]+4>>2]](s);qc(Ng(p));f=rc(32);J[695492]=0; -J[f+12>>2]=0;J[f+16>>2]=0;J[f+4>>2]=1;J[f+8>>2]=8;J[f>>2]=349684;J[f+20>>2]=0;J[f+24>>2]=0;H[f+28|0]=0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[e+60>>2];J[e+20>>2]=c;J[e+16>>2]=J[e+56>>2];J[e+12>>2]=c<<2;p=e+20|0;nm(f,y,p,e+16|0,e+12|0,0);o=O[h+32>>3];r=O[h>>3];z=O[h+16>>3];n=O[h+40>>3];u=O[i+16>>3];v=O[h+8>>3];w=O[h+24>>3];A=O[i+24>>3];C=n+(u*v+w*A);D=O[i>>3];E=D*v;v=O[i+8>>3];n=n+(E+v*w);w=C-n;n=+(k|0)*w+n;O[b+608>>3]=n;u=o+(u*r+z*A);o=o+(D*r+v*z);r=u-o;o=+(j|0)*r+o;O[b+600>>3]=o;c=J[b+596>> -2];O[c+16>>3]=n;O[c+8>>3]=o;J[c>>2]=1;O[b+608>>3]=n;r=+(l|0)*r+u;O[b+600>>3]=r;ie(J[b+596>>2],r,n);n=+(m|0)*w+C;O[b+608>>3]=n;O[b+600>>3]=r;ie(J[b+596>>2],r,n);O[b+608>>3]=n;O[b+600>>3]=o;ie(J[b+596>>2],o,n);_f(J[b+596>>2]);c=J[b+596>>2];d=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];g=J[d+12>>2]<<3;O[b+600>>3]=O[(g+J[d>>2]|0)-8>>3];O[b+608>>3]=O[(g+J[d+4>>2]|0)-8>>3];uk(a,c,O[b+104>>3],b+16|0,0);c=J[a+104>>2];gc[J[J[c>>2]+132>>2]](c,p)|0;n=O[b+392>>3];c=J[a+104>>2];gc[J[J[c>>2]+136>>2]](c,826976)|0;c= -J[a+104>>2];gc[J[J[c>>2]+184>>2]](c,f)|0;c=J[a+104>>2];gc[J[J[c>>2]+192>>2]](c,826980)|0;n=n*255;if(!(R(n)<2147483648))break f;c=~~n;break e}break a}c=-2147483648}d=J[a+104>>2];J[e+16>>2]=c;c=e+16|0;gc[J[J[d>>2]+200>>2]](d,c)|0;d=J[a+104>>2];J[e+16>>2]=3;gc[J[J[d>>2]+308>>2]](d,c)|0;d=J[a+104>>2];gc[J[J[d>>2]+348>>2]](d,826956)|0;d=J[a+104>>2];gc[J[J[d>>2]+344>>2]](d)|0;d=J[a+104>>2];J[e+16>>2]=3;gc[J[J[d>>2]+312>>2]](d,c)|0;c=J[a+104>>2];gc[J[J[c>>2]+136>>2]](c,e+20|0)|0;a=J[a+104>>2];gc[J[J[a>> -2]+184>>2]](a,0)|0;Rf(b);gc[J[J[f>>2]+12>>2]](f)|0}bc=e+96|0;return}a=Z()|0;qc(f);ba(a|0);B()}function r_a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;while(1){a:{b:{if(M[a+116>>2]>=262){h=J[a+112>>2];d=J[a+96>>2];break b}SB(a);c=J[a+116>>2];if(!(c>>>0>=262|b))return 0;if(c){h=J[a+112>>2];d=J[a+96>>2];if(c>>>0>2)break b;J[a+100>>2]=h;J[a+120>>2]=d;g=2;J[a+96>>2]=2;break a}if(J[a+104>>2]){d=K[(J[a+56>>2]+J[a+108>>2]|0)-1|0];c=J[a+5792>>2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>> -2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]=L[c+148>>1]+1;J[a+104>>2]=0}d=J[a+108>>2];J[a+5812>>2]=d>>>0>=2?2:d;if((b|0)==4){c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;yk(a,b,d-c|0,1);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];Hh(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;c:{if(!c)break c;tc(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break c;J[d+16>>2]=J[d+8>>2]}return(J[J[a>> -2]+16>>2]?3:2)|0}d:{if(!J[a+5792>>2])break d;c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;yk(a,b,d-c|0,0);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];Hh(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;e:{if(!c)break e;tc(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break e;J[d+16>>2]=J[d+8>>2]}if(J[J[a>>2]+16>>2])break d;return 0}return 1}g=2;f=J[a+108>>2];c=J[a+84>>2]&(K[(f+ -J[a+56>>2]|0)+2|0]^J[a+72>>2]<>2]);J[a+72>>2]=c;c=J[a+68>>2]+(c<<1)|0;e=L[c>>1];I[J[a+64>>2]+((f&J[a+52>>2])<<1)>>1]=e;I[c>>1]=f;J[a+100>>2]=h;J[a+120>>2]=d;J[a+96>>2]=2;if(!e)break a;f:{if(J[a+44>>2]-262>>>0>>0|M[a+128>>2]<=d>>>0)break f;g=F0(a,e);J[a+96>>2]=g;if(g>>>0>5)break f;if(J[a+136>>2]!=1){if((g|0)!=3)break f;g=3;if(J[a+108>>2]-J[a+112>>2]>>>0<4097)break f}g=2;J[a+96>>2]=2}d=J[a+120>>2]}if(!(d>>>0<3|d>>>0>>0)){h=J[a+116>>2];c=J[a+5792>>2];f=J[a+108>>2];e=f+(J[a+100>>2]^-1)| -0;I[J[a+5796>>2]+(c<<1)>>1]=e;J[a+5792>>2]=c+1;i=c+J[a+5784>>2]|0;c=d-3|0;H[i|0]=c;c=((K[(c&255)+765728|0]<<2)+a|0)+1176|0;I[c>>1]=L[c>>1]+1;c=e-1&65535;c=((K[(c>>>0<256?c:(c>>>7|0)+256|0)+765216|0]<<2)+a|0)+2440|0;I[c>>1]=L[c>>1]+1;c=J[a+120>>2];g=c-2|0;J[a+120>>2]=g;J[a+116>>2]=(J[a+116>>2]-c|0)+1;i=(f+h|0)-3|0;d=J[a+108>>2];h=J[a+5788>>2]-1|0;f=J[a+5792>>2];while(1){c=d;d=c+1|0;J[a+108>>2]=d;if(d>>>0<=i>>>0){e=J[a+84>>2]&(K[(c+J[a+56>>2]|0)+3|0]^J[a+72>>2]<>2]);J[a+72>>2]=e;e=J[a+68>>2]+ -(e<<1)|0;I[J[a+64>>2]+((J[a+52>>2]&d)<<1)>>1]=L[e>>1];I[e>>1]=d}g=g-1|0;J[a+120>>2]=g;if(g)continue;break}J[a+96>>2]=2;J[a+104>>2]=0;c=c+2|0;J[a+108>>2]=c;if((f|0)!=(h|0))continue;e=J[a+92>>2];if((e|0)>=0)d=e+J[a+56>>2]|0;else d=0;yk(a,d,c-e|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];Hh(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;g:{if(!d)break g;tc(J[f+12>>2],J[e+16>>2],d);J[f+12>>2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+20>>2];J[f+16>>2]=J[f+16>>2]-d;c=J[e+20>>2];J[e+ -20>>2]=c-d;if((c|0)!=(d|0))break g;J[e+16>>2]=J[e+8>>2]}if(J[J[a>>2]+16>>2])continue;return 0}if(J[a+104>>2]){d=K[(J[a+56>>2]+J[a+108>>2]|0)-1|0];c=J[a+5792>>2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>>2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]=L[c+148>>1]+1;h:{if(J[a+5792>>2]!=(J[a+5788>>2]-1|0))break h;d=J[a+92>>2];if((d|0)>=0)c=d+J[a+56>>2]|0;else c=0;yk(a,c,J[a+108>>2]-d|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];Hh(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;if(!d)break h; -tc(J[f+12>>2],J[e+16>>2],d);J[f+12>>2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+20>>2];J[f+16>>2]=J[f+16>>2]-d;c=J[e+20>>2];J[e+20>>2]=c-d;if((c|0)!=(d|0))break h;J[e+16>>2]=J[e+8>>2]}J[a+108>>2]=J[a+108>>2]+1;J[a+116>>2]=J[a+116>>2]-1;if(J[J[a>>2]+16>>2])continue}else{J[a+104>>2]=1;J[a+108>>2]=J[a+108>>2]+1;J[a+116>>2]=J[a+116>>2]-1;continue}break}return 0}function n$(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=bc-32|0;bc=e;J[e+28>>2]=0;b=J[J[a+36>>2]+16>>2];a:{if(K[b|0]!=38)break a;if(K[b+ -1|0]==35){d=K[b+2|0];b=y$(a);if(!b)break a;if(J[a+256>>2]!=1){if((b|0)<=255){H[e+19|0]=0;H[e+18|0]=b;b=J[a>>2];if(!b)break a;b=J[b+68>>2];if(J[a+212>>2]|!b)break a;gc[b|0](J[a+4>>2],e+18|0,1);break a}J[e>>2]=b;b=e+18|0;Gi(b,10,(d&223)==88?20007:17411,e);d=J[a>>2];if(!d)break a;d=J[d+64>>2];if(J[a+212>>2]|!d)break a;gc[d|0](J[a+4>>2],b);break a}d=e+18|0;b=Pi(d,b);H[b+d|0]=0;c=J[a>>2];if(!c)break a;c=J[c+68>>2];if(J[a+212>>2]|!c)break a;gc[c|0](J[a+4>>2],d,b);break a}c=s$(a);if(!c|!J[a+12>>2])break a; -b:{if(J[c+8>>2]){b=J[c+48>>2];if((b|0)!=6)break b}b=J[c+40>>2];if(!b)break a;d=J[a>>2];if(!d)break a;d=J[d+68>>2];if(J[a+212>>2]|!d)break a;gc[d|0](J[a+4>>2],b,xk(b));break a}c:{d:{f=J[c+72>>2];if(J[c+12>>2]|!(K[a+360|0]&2)?f:0)break d;e:{if((b|0)==2){if(!(K[a+360|0]&18))break d;b=J[a+248>>2]+1|0;J[a+248>>2]=b;d=J[a+440>>2];g=J[a+4>>2];b=m$(J[a+8>>2],a,J[a>>2],(a|0)!=(g|0)?g:0,b,J[c+64>>2],J[c+52>>2],e+28|0);J[a+248>>2]=J[a+248>>2]-1;g=a+440|0;break e}g=a+440|0;d=J[a+440>>2];if((b|0)==1){J[a+248>> -2]=J[a+248>>2]+1;b=J[a+4>>2];b=l$(a,J[c+40>>2],(a|0)!=(b|0)?b:0,e+28|0);J[a+248>>2]=J[a+248>>2]-1;break e}xt(a,1,35014,0);b=88}J[c+72>>2]=(J[g>>2]-d<<1)+2;d=J[c+40>>2];f:{if(!d)break f;if(!zp(d,60))break f;J[c+72>>2]=J[c+72>>2]|1}if((b|0)==89){Pe(a,89,0);jm(J[e+28>>2]);break a}if(Vj(a,0,c,0)){jm(J[e+28>>2]);break a}d=J[e+28>>2];g:{if(!(!d|b)){if(!(J[c+12>>2]|J[c+48>>2]-1>>>0>1)){J[c+12>>2]=d;if(J[a+16>>2]){if(!(!(!J[d+24>>2]&J[d+4>>2]==3)&J[a+436>>2]!=5)){J[d+20>>2]=c;J[e+28>>2]=0;J[c+68>>2]=1;break g}J[c+ -68>>2]=0;g=J[a+8>>2];h=J[a+52>>2];while(1){b=d;J[b+32>>2]=g;J[b+20>>2]=h;d=J[b+24>>2];if(d)continue;break}J[c+16>>2]=b;break g}J[c+68>>2]=1;J[d+20>>2]=c;im(d,J[c+32>>2]);while(1){d=J[e+28>>2];b=J[d+24>>2];if(b){J[e+28>>2]=b;J[b+20>>2]=c;im(b,J[c+32>>2]);continue}break}J[c+16>>2]=d;J[e+28>>2]=b;break g}jm(d);J[e+28>>2]=0;break g}if(!(!b|(b|0)==27)){Nf(a,26,34077,J[c+8>>2]);Vj(a,0,c,0);break g}if(!d)break g;jm(d);J[e+28>>2]=0}if(J[c+72>>2])break c;J[c+72>>2]=2;break c}if((f|0)==1)break c;J[a+440>>2]= -J[a+440>>2]+((f|0)/2|0)}if(!J[c+12>>2]){h:{if(!f)break h;b=J[a+4>>2];b=(a|0)!=(b|0)?b:0;i:{j:{k:switch(J[c+48>>2]-1|0){case 1:d=J[a+248>>2]+1|0;J[a+248>>2]=d;d=m$(J[a+8>>2],a,J[a>>2],b,d,J[c+64>>2],J[c+52>>2],0);b=a+248|0;break j;case 0:break k;default:break i}J[a+248>>2]=J[a+248>>2]+1;d=l$(a,J[c+40>>2],b,0);b=a+248|0}J[b>>2]=J[b>>2]-1;if((d|0)!=89)break h;Pe(a,89,0);break a}xt(a,1,35014,0)}b=J[a>>2];if(!b)break a;b=J[b+64>>2];if(J[a+212>>2]|(J[a+16>>2]|!b))break a;gc[b|0](J[a+4>>2],J[c+8>>2]);break a}l:{b= -J[a>>2];if(!b)break l;b=J[b+64>>2];if(J[a+212>>2]|(J[a+16>>2]|!b))break l;gc[b|0](J[a+4>>2],J[c+8>>2]);break a}if(!J[a+16>>2]|!J[a+52>>2])break a;m:{n:{o:{p:{q:{if(!J[e+28>>2]){if(!J[c+68>>2]|J[a+436>>2]==5)break q;break o}if(J[a+436>>2]!=5)break p}b=(J[c+44>>2]+J[a+468>>2]|0)+5|0;J[a+468>>2]=b;if(Vj(a,0,c,b))break a;b=J[c+12>>2];if(!b)break m;while(1){d=V$(b,J[a+8>>2]);if(d){if(!J[d>>2])J[d>>2]=J[b>>2];d=Ug(J[a+52>>2],d)}else d=0;if(J[c+16>>2]!=(b|0)){b=J[b+24>>2];if(!b)break m;continue}break}if(!d| -J[a+436>>2]!=5|(J[d+12>>2]|J[d+4>>2]!=1))break m;I[d+58>>1]=1;break m}if(J[a+40>>2]<=0)break n}b=(J[c+44>>2]+J[a+468>>2]|0)+5|0;J[a+468>>2]=b;if(Vj(a,0,c,b))break a;g=J[c+16>>2];b=J[c+12>>2];J[c+12>>2]=0;J[c+16>>2]=0;while(1){if(b){d=J[b+24>>2];J[b+20>>2]=0;J[b+24>>2]=0;f=V$(b,J[a+8>>2]);if(f){if(!J[f>>2])J[f>>2]=J[b>>2];Ug(c,f);Ug(J[a+52>>2],b)}f=(b|0)!=(g|0);b=d;if(f)continue}break}if(J[c+68>>2])break m;J[c+68>>2]=1;break m}d=le(J[a+296>>2],1818,-1);b=J[c+12>>2];if(J[b+4>>2]==3)J[b+8>>2]=d;c=J[c+ -16>>2];if(!((c|0)==(b|0)|J[c+4>>2]!=3))J[c+8>>2]=d;g0(J[a+52>>2],b)}J[a+260>>2]=0;J[a+264>>2]=0}bc=e+32|0}function q0(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;n=-1;a:{if(b>>>0<8)break a;j=J[a+4>>2];if(!j)break a;g=J[a+8>>2];n=0;f=P(b,20);c=gc[J[659447]](f)|0;J[a+4>>2]=c;if(!c){J[a+4>>2]=j;return-1}wc(c,0,f);J[a+8>>2]=b;b:{if(!g)break b;c:{if((g|0)==128){while(1){f=P(h,20)+j|0;d:{if(!J[f+12>>2])break d;d=J[f+8>>2];c=J[f+4>>2];l=J[a+8>>2];e:{if((l|0)!=128){b=0;if(!c|(d|0)<=0)break e; -m=d&3;e=J[a+24>>2];i=0;if(d-1>>>0>=3){d=d&-4;k=0;while(1){e=P(K[b+c|0]+e|0,1025);e=P(K[c+(b|1)|0]+(e>>>6^e)|0,1025);e=P(K[c+(b|2)|0]+(e>>>6^e)|0,1025);e=P(K[c+(b|3)|0]+(e>>>6^e)|0,1025);e=e>>>6^e;b=b+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}if(m)while(1){d=P(K[b+c|0]+e|0,1025);e=d>>>6^d;b=b+1|0;i=i+1|0;if((m|0)!=(i|0))continue;break}b=P(e,9);b=P(b>>>11^b,32769);break e}if(!c){b=0;break e}b=K[c|0]<<5;f:{g:{h:{i:{j:{k:{l:{m:{n:{if((d|0)<=10)switch(d-2|0){case 0:break f;case 1:break g;case 2:break h; -case 3:break i;case 4:break j;case 5:break k;case 6:break l;case 7:break m;case 8:break n;default:break e}b=K[(c+d|0)-1|0]+b|0}b=K[c+9|0]+b|0}b=K[c+8|0]+b|0}b=K[c+7|0]+b|0}b=K[c+6|0]+b|0}b=K[c+5|0]+b|0}b=K[c+4|0]+b|0}b=K[c+3|0]+b|0}b=K[c+2|0]+b|0}b=K[c+1|0]+b|0}d=P((b>>>0)%(l>>>0)|0,20);c=d+J[a+4>>2]|0;if(J[c+12>>2]){c=gc[J[659447]](20)|0;if(!c){n=-1;break d}J[c+4>>2]=J[f+4>>2];f=J[f+8>>2];J[c+16>>2]=b;J[c+8>>2]=f;b=d+J[a+4>>2]|0;f=J[b>>2];J[c+12>>2]=1;J[c>>2]=f;J[b>>2]=c;break d}e=J[f+4>>2];J[c>> -2]=J[f>>2];J[c+4>>2]=e;J[c+16>>2]=J[f+16>>2];e=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=e;c=d+J[a+4>>2]|0;J[c+16>>2]=b;J[c>>2]=0}h=h+1|0;if((h|0)!=128)continue;break}break c}b=0;while(1){c=P(b,20)+j|0;o:{if(!J[c+12>>2])break o;d=J[c+16>>2];e=P((d>>>0)%M[a+8>>2]|0,20);f=e+J[a+4>>2]|0;if(!J[f+12>>2]){h=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=h;J[f+16>>2]=J[c+16>>2];h=J[c+12>>2];J[f+8>>2]=J[c+8>>2];J[f+12>>2]=h;c=e+J[a+4>>2]|0;J[c+16>>2]=d;J[c>>2]=0;break o}f=gc[J[659447]](20)|0;if(!f){n=-1;break o}J[f+ -4>>2]=J[c+4>>2];c=J[c+8>>2];J[f+16>>2]=d;J[f+8>>2]=c;c=e+J[a+4>>2]|0;d=J[c>>2];J[f+12>>2]=1;J[f>>2]=d;J[c>>2]=f}b=b+1|0;if((g|0)!=(b|0))continue;break}}if(!g)break b;h=0;if((g|0)==128)while(1){c=J[P(h,20)+j>>2];if(c)while(1){g=J[c+8>>2];d=J[c+4>>2];f=J[c>>2];l=J[a+8>>2];p:{if((l|0)!=128){b=0;if(!d|(g|0)<=0)break p;m=g&3;e=J[a+24>>2];i=0;if(g-1>>>0>=3){g=g&-4;k=0;while(1){e=P(K[b+d|0]+e|0,1025);e=P(K[d+(b|1)|0]+(e>>>6^e)|0,1025);e=P(K[d+(b|2)|0]+(e>>>6^e)|0,1025);e=P(K[d+(b|3)|0]+(e>>>6^e)|0,1025); -e=e>>>6^e;b=b+4|0;k=k+4|0;if((g|0)!=(k|0))continue;break}}if(m)while(1){e=P(K[b+d|0]+e|0,1025);e=e>>>6^e;b=b+1|0;i=i+1|0;if((m|0)!=(i|0))continue;break}b=P(e,9);b=P(b>>>11^b,32769);break p}if(!d){b=0;break p}b=K[d|0]<<5;q:{r:{s:{t:{u:{v:{w:{x:{y:{if((g|0)<=10)switch(g-2|0){case 0:break q;case 1:break r;case 2:break s;case 3:break t;case 4:break u;case 5:break v;case 6:break w;case 7:break x;case 8:break y;default:break p}b=K[(d+g|0)-1|0]+b|0}b=K[d+9|0]+b|0}b=K[d+8|0]+b|0}b=K[d+7|0]+b|0}b=K[d+6|0]+ -b|0}b=K[d+5|0]+b|0}b=K[d+4|0]+b|0}b=K[d+3|0]+b|0}b=K[d+2|0]+b|0}b=K[d+1|0]+b|0}e=P((b>>>0)%(l>>>0)|0,20);d=e+J[a+4>>2]|0;z:{if(J[d+12>>2]){e=J[d>>2];J[c+16>>2]=b;J[c>>2]=e;J[d>>2]=c;break z}g=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=g;J[d+16>>2]=J[c+16>>2];g=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=g;d=e+J[a+4>>2]|0;J[d+12>>2]=1;J[d+16>>2]=b;J[d>>2]=0;gc[J[659451]](c)}c=f;if(c)continue;break}h=h+1|0;if((h|0)!=128)continue;break b}while(1){b=J[P(h,20)+j>>2];if(b)while(1){c=J[b>>2];d=J[b+16>>2];e=P((d>>> -0)%M[a+8>>2]|0,20);f=e+J[a+4>>2]|0;A:{if(!J[f+12>>2]){i=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=i;J[f+16>>2]=J[b+16>>2];i=J[b+12>>2];J[f+8>>2]=J[b+8>>2];J[f+12>>2]=i;f=e+J[a+4>>2]|0;J[f+12>>2]=1;J[f+16>>2]=d;J[f>>2]=0;gc[J[659451]](b);break A}e=J[f>>2];J[b+16>>2]=d;J[b>>2]=e;J[f>>2]=b}b=c;if(c)continue;break}h=h+1|0;if((g|0)!=(h|0))continue;break}}gc[J[659451]](j)}return n}function z$a(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;d=J[a+24>>2]; -q=J[a+20>>2];e=J[a+16>>2];o=J[a+12>>2];k=J[a+8>>2];i=J[a+4>>2];n=J[i+8>>2];r=K[n+68|0];p=K[n+67|0];u=K[n+66|0];l=K[n+65|0];a:{b:{c:{s=K[n+64|0];if(s){g=-1;if(l&255)break c;c=0;break a}g=-1;if(l&255)break b;c=2;break a}c=1;break a}c=3}while(1){d:{e:{f:{g:{h:{i:{j:{k:{l:switch(c|0){case 0:l=0;if(k>>>0>=o>>>0){g=j;break d}if(e>>>0>=q>>>0){g=j;break d}f=(p<<24>>24<<2)+n|0;while(1){g=K[k|0];if(g>>>0<32){g=j;break d}k=k+1|0;m:{n:{if(g<<24>>24>=0){I[e>>1]=g;e=e+2|0;c=1;g=d;if(d)break n;d=0;break m}g=J[f>> -2]+(g&127)|0;if(g>>>0<=65535){I[e>>1]=g;e=e+2|0;c=1;g=d;if(d)break n;d=0;break m}I[e>>1]=(g>>>10|0)-10304;o:{m=e+2|0;if(q>>>0>m>>>0){I[e+2>>1]=g&1023|56320;e=e+4|0;if(d)break o;d=0;break m}f=0;if(d){J[d>>2]=j;f=d+4|0}H[i+65|0]=1;I[i+116>>1]=g&1023|56320;J[b>>2]=15;break g}J[d>>2]=j;c=2;g=d+4|0}J[g>>2]=j;d=(c<<2)+d|0}j=j+1|0;if(k>>>0>=o>>>0){g=j;break d}if(e>>>0>>0)continue;break}g=j;break d;case 1:if(k>>>0>=o>>>0)break k;p:{q:{r:{s:{t:{u:{v:{if(e>>>0>>0){t=i+37|0;w=i+38|0;c=k;while(1){j=j+1| -0;k=c+1|0;v=2;m=w;f=2;h=K[c|0];c=h;w:{x:{y:switch(l&255){case 4:c=h&31;f=5;p=h>>>5|0;break x;case 6:break p;case 5:break q;case 3:break r;case 2:break s;case 1:break x;case 0:break y;default:break w}if(1<>>0<=15){if(h>>>0>=9){f=4;v=1;m=t;c=r;B:switch(h-11|0){case 4:break i;case 0:break x;case 3:break B;default:break t}f=1;break z}u=h-1|0;f=3;break A}if(h>>>0<24)break u;p=h-24|0;f=6}v=1}m=t;c=r}H[m|0]=h;H[i+36|0]=v;l=f;r=c}c=k;if((o|0)!=(c|0))continue;break}break h}J[b>> -2]=15;break k}I[e>>1]=h;e=e+2|0;if(!d){d=0;break j}J[d>>2]=g;d=d+4|0;break j}p=h-16|0;break j}J[b>>2]=12;H[i+36|0]=1;H[i+37|0]=h;l=0;break k}I[e>>1]=r<<8|h;e=e+2|0;if(!d){d=0;break j}J[d>>2]=g;d=d+4|0;break j}c=u<<24>>24;C:{if(h<<24>>24>=0){I[e>>1]=J[(c<<2)+751744>>2]+h;e=e+2|0;f=d;c=1;if(d)break C;d=0;break j}c=J[(c<<2)+n>>2]+(h&127)|0;if(c>>>0<=65535){I[e>>1]=c;e=e+2|0;f=d;c=1;if(d)break C;d=0;break j}I[e>>1]=(c>>>10|0)-10304;D:{m=e+2|0;if(q>>>0>m>>>0){I[e+2>>1]=c&1023|56320;e=e+4|0;if(d)break D; -d=0;break j}if(d){J[d>>2]=g;f=d+4|0}else f=0;H[i+65|0]=1;I[i+116>>1]=c&1023|56320;J[b>>2]=15;l=3;break g}J[d>>2]=g;f=d+4|0;c=2}J[f>>2]=g;d=(c<<2)+d|0;break j}J[(p<<24>>24<<2)+n>>2]=((r&255)<<15|h<<7)+65536;break j}if(!h){H[i+36|0]=2;H[i+38|0]=0;l=6;break k}E:{c=(p<<24>>24<<2)+n|0;f=h<<7;F:{if(h>>>0<=103)break F;f=f+44032|0;if((h-104&255)>>>0<=63)break F;if(h>>>0<249)break E;f=J[(h<<2)+750780>>2]}J[c>>2]=f;break j}H[i+36|0]=2;H[i+38|0]=h;l=6;break k;case 2:l=0;c=k+1|0;G:{if(o>>>0<=c>>>0){g=j;break G}if(e>>> -0>=q>>>0){g=j;break G}g=j;while(1){m=j;f=K[k|0];if((f+13&255)>>>0>236)break G;I[e>>1]=K[c|0]|f<<8;f=0;if(d){J[d>>2]=g;f=d+4|0}e=e+2|0;t=k+2|0;j=m+2|0;c=k+3|0;if(o>>>0>c>>>0){k=t;g=m;d=f;if(e>>>0>>0)continue}break}d=f;g=m;k=t}c=3;continue;default:break l}s=0;H:{if(k>>>0>>0)break H;break k}I:{J:{if(e>>>0>>0){c=k;while(1){j=j+1|0;k=c+1|0;c=K[c|0];K:{L:{M:{N:switch(l&255){case 1:H[i+38|0]=c;l=2;m=2;break M;case 2:break J;case 0:break N;default:break K}f=c+32|0;if((f&255)>>>0<=18){if(c>>>0<232){s= -1;p=f;break j}if(c>>>0<240)break f;if((c|0)!=240){if((c|0)!=241)break I;l=4;break e}H[i+37|0]=240;m=1;l=1;break L}H[i+37|0]=c;l=2;m=1}r=c}H[i+36|0]=m}c=k;if((o|0)!=(c|0))continue;break}break h}J[b>>2]=15;break k}I[e>>1]=c|r<<8;e=e+2|0;if(!d){d=0;break i}J[d>>2]=g;d=d+4|0;break i}J[b>>2]=12;H[i+36|0]=1;H[i+37|0]=c;l=0}f=d;m=e;break g}c=0;continue}c=2;continue}f=d;m=e;k=o}b=J[b>>2];O:{if((b|0)>0){j=0;if((b|0)!=15)break O}j=l;if(j&255)break O;j=0;H[i+36|0]=0}H[n+68|0]=r;H[n+67|0]=p;H[n+66|0]=u;H[n+65| -0]=j;H[n+64|0]=s;J[a+24>>2]=f;J[a+16>>2]=m;J[a+8>>2]=k;return}p=c+24|0;l=6}s=1;H[i+36|0]=1;H[i+37|0]=c}c=1;continue}}function vx(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,w=0,x=0;l=bc-16|0;bc=l;J[l+12>>2]=0;J[a+1404>>2]=0;J[a+1392>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;e=J[a>>2];i=J[a+16>>2];m=J[a+8>>2];k=J[a+12>>2];t=J[a+4>>2];d=I[b>>1];a:{b:{c:{if(d>>>0<=8){if(J[a+40>>2])break b;J[a+40>>2]=a+2760;c=8;break c}c=J[a+32>>2];if(c>>>0>= -d>>>0)break b;h=c;c=d+3&-4;d=J[a+40>>2];if((d|0)==(a+2760|0)){J[a+40>>2]=0;d=0}w=a,x=Sc(e,4,h,c,d,l+12|0),J[w+40>>2]=x;if(J[l+12>>2])break a}J[a+32>>2]=c}c=I[b+2>>1];d=c+2|0;d:{if(d>>>0<=96){if(J[a+28>>2])break d;J[a+20>>2]=96;J[a+28>>2]=a+2792;break d}f=d;d=J[a+20>>2];if(f>>>0<=d>>>0)break d;h=c+11&-8;c=J[a+28>>2];if((c|0)==(a+2792|0)){J[a+28>>2]=0;c=0}w=a,x=Sc(e,40,d,h,c,l+12|0),J[w+28>>2]=x;if(J[l+12>>2])break a;J[a+20>>2]=h;c=I[b+2>>1]}J[a+24>>2]=c;c=I[b>>1];J[a+1416>>2]=-1;J[a+68>>2]=2;J[a+36>> -2]=c;if((T5(b)|0)==1){J[a+1416>>2]=1;J[a+68>>2]=-2}J[a+12>>2]=k;J[a+4>>2]=t;J[a+2752>>2]=0;J[a+2756>>2]=0;J[a+16>>2]=i;J[a+8>>2]=m;p=J[a+24>>2];if(!p)break a;h=J[a+28>>2];r=h+P(p,40)|0;s=P(L[J[J[a+2748>>2]+4>>2]+68>>1],20)>>>11|0;e=J[b+12>>2];if((p|0)>0){d=J[b+4>>2];n=J[b+8>>2];c=h;g=I[e>>1];f=c+P(g,40)|0;e=f;while(1){I[c+2>>1]=1028;j=J[d>>2];I[c+12>>1]=j;I[c+14>>1]=J[d+4>>2];j=Pc(j,t)+m|0;J[c+4>>2]=j;J[c+16>>2]=j;j=Pc(J[d+4>>2],k)+i|0;J[c+8>>2]=j;J[c+20>>2]=j;j=J[b+4>>2]+(g<<16>>16<<3)|0;I[f+12>> -1]=J[j>>2];I[f+14>>1]=J[j+4>>2];j=K[n|0]&3;I[c>>1]=j?((j|0)==2)<<1:1;u=I[c+14>>1]-I[e+14>>1]|0;j=u>>31;v=I[c+12>>1]-I[e+12>>1]|0;q=v>>31;if((j^u)-j+((q^v)-q)>>>0>>0)I[e>>1]=L[e>>1]|32;J[c+36>>2]=e;J[e+32>>2]=c;e:{if((c|0)!=(f|0)){e=c;break e}o=o+1|0;if((o|0)>=I[b>>1]){e=c;f=c;break e}g=I[J[b+12>>2]+(o<<1)>>1];e=P(g,40)+h|0;f=e}n=n+1|0;d=d+8|0;c=c+40|0;if(r>>>0>c>>>0)continue;break}e=J[b+12>>2]}b=J[a+36>>2];f:{if((b|0)<=0)break f;c=J[a+40>>2];f=c+(b<<2)|0;d=0;while(1){J[c>>2]=P(d<<16>>16,40)+h; -d=L[e>>1]+1|0;e=e+2|0;c=c+4|0;if(f>>>0>c>>>0)continue;break}if((b|0)<=0)break f;m=J[a+40>>2];j=m+(b<<2)|0;q=(s<<1)-1|0;while(1){d=J[m>>2];c=d;while(1){g:{f=c;n=I[c+12>>1];c=J[c+36>>2];if((d|0)==(c|0)){b=L[f+14>>1];break g}b=I[f+14>>1];g=b-I[c+14>>1]|0;a=g>>31;i=n-I[c+12>>1]|0;e=i>>31;if((q|0)>((a^g)-a+((e^i)-e)|0))continue}break}J[f+24>>2]=0;J[f+28>>2]=0;c=0;d=f;a=d;e=0;while(1){i=n<<16>>16;g=b<<16>>16;d=J[d+32>>2];b=I[d+14>>1];e=(b-g|0)+e|0;g=e>>31;n=I[d+12>>1];c=(n-i|0)+c|0;i=c>>31;g=(e^g)-g|0; -i=(c^i)-i|0;h:{if(g+i>>>0>>0){I[d>>1]=L[d>>1]|16;break h}k=(d-a|0)/40|0;J[a+24>>2]=k;J[d+28>>2]=0-k;k=0-c|0;i:{if((c|0)<=(e|0)){i=(e|0)<(k|0);g=i?e:c;c=g>>31;g=(c^g)-c|0;c=i?k:e;o=i?-1:2;break i}o=1;if((e|0)>=(k|0))break i;c=0-e|0;g=i;o=254}e=(P(g,14)|0)>=(c|0)?4:o;H[a+3|0]=e;c=J[a+32>>2];if((d|0)!=(c|0))while(1){H[c+3|0]=e;H[c+2|0]=e;c=J[c+32>>2];if((d|0)!=(c|0))continue;break}H[d+2|0]=e;a=(f-d|0)/40|0;J[d+24>>2]=a;c=0;J[f+28>>2]=0-a;a=d;e=0}if((d|0)!=(f|0))continue;break}m=m+4|0;if(j>>>0>m>>> -0)continue;break}}if((p|0)<=0)break a;c=h;while(1){e=L[c>>1];j:{if(e&16|K[c+2|0]!=4|K[c+3|0]!=4)break j;d=J[c+24>>2];a=P(d,40)+c|0;b=I[c+12>>1];i=I[a+12>>1]-b|0;g=b;f=J[c+28>>2];b=P(f,40)+c|0;if((i^g-I[b+12>>1])<0)break j;g=I[c+14>>1];if((g-I[b+14>>1]^I[a+14>>1]-g)<0)break j;I[c>>1]=e|16;e=b;b=(P(d-f|0,40)|0)/40|0;J[e+24>>2]=b;J[a+28>>2]=0-b}c=c+40|0;if(r>>>0>c>>>0)continue;break}if((p|0)<=0)break a;while(1){c=L[h>>1];k:{if(c&16)break k;l:{if(c&3)break l;a=K[h+3|0];b=K[h+2|0];if((a|0)==(b|0)){if((a| -0)!=4)break l;c=I[h+12>>1];e=J[h+28>>2];a=P(e,40)+h|0;d=I[h+14>>1];f=J[h+24>>2];b=P(f,40)+h|0;if(!k6(c-I[a+12>>1]|0,d-I[a+14>>1]|0,I[b+12>>1]-c|0,I[b+14>>1]-d|0))break k;c=a;a=(P(f-e|0,40)|0)/40|0;J[c+24>>2]=a;J[b+28>>2]=0-a;c=L[h>>1];break l}if(b<<24>>24!=(0-(a<<24>>24)|0))break k}I[h>>1]=c|16}h=h+40|0;if(r>>>0>h>>>0)continue;break}}bc=l+16|0;return J[l+12>>2]}function THa(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;e=bc-80|0;bc=e;i=Ni(J[a+28>>2],f+1|0);if(i){J[e+64>> -2]=13;a:{if(J[hf(i+16|0,J[i+4>>2],e- -64|0,0)>>2]!=6)break a;k=J[J[e+72>>2]+12>>2];if((k|0)<=0)break a;i=0;while(1){J[e+48>>2]=13;b:{g=e+48|0;if(J[Mc(J[e+72>>2],i,g,0)>>2]!=7){uc(g);break b}J[e+32>>2]=13;J[e+24>>2]=0;J[695492]=0;J[e+16>>2]=0;J[e+20>>2]=0;g=ha(3203,J[e+56>>2],839365,e+32|0,0)|0;h=J[695492];J[695492]=0;c:{d:{if((h|0)==1)break d;if(J[g>>2]==4){J[695492]=0;aa(2808,e+16|0,J[e+40>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break d}J[695492]=0;_(3205,e+32|0);g=J[695492];J[695492]=0;if((g| -0)==1)break d;J[695492]=0;_(3205,e+48|0);g=J[695492];J[695492]=0;if((g|0)==1)break d;J[e>>2]=13;J[695492]=0;ga(3331,J[e+72>>2],i|0,e|0)|0;g=J[695492];J[695492]=0;e:{if((g|0)==1)break e;h=K[e+27|0];g=h<<24>>24<0;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:switch((g?J[e+20>>2]:h)-4|0){case 0:g=g?J[e+16>>2]:e+16|0;if((K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24))==1954047316){J[695492]=0;h=$(4,216)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;g=ha(3562,h|0,a|0,e|0,f|0)|0;j=J[695492];J[695492]=0;if((j| -0)!=1)break f;i=Z()|0;qc(h);break c}if((K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24))!=1802398028)break o;g=0;break f;case 5:break j;case 3:break m;case 2:break n;case 4:break p;default:break i}g=g?J[e+16>>2]:e+16|0;if((K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24))!=1701147206|(K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24))!=1954047316)break l;J[695492]=0;h=$(4,288)|0;g=J[695492];J[695492]=0;q:{if((g|0)!=1){J[695492]=0;g=ha(3563,h|0,a|0,e|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break q; -J[695492]=0;la(3564,g|0,a|0,e|0,b|0,c|0);h=J[695492];J[695492]=0;if((h|0)!=1)break f}i=Z()|0;break c}i=Z()|0;qc(h);break c}if((K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24))!=1701734732)break i;J[695492]=0;h=$(4,312)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;g=ha(3565,h|0,a|0,e|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1)break f;i=Z()|0;qc(h);break c}g=g?J[e+16>>2]:e+16|0;if(Wc(g,2170291,6))if(Wc(g,2170441,6))break i;J[695492]=0;h=$(4,264)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e; -J[695492]=0;g=ha(3566,h|0,a|0,e|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1)break f;i=Z()|0;qc(h);break c}if(!Wc(g?J[e+16>>2]:e+16|0,2170498,7))break k;break i}if((K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24))!=2037149520|(K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24))!=1701734732)break i}J[695492]=0;h=$(4,240)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;g=ha(3567,h|0,a|0,e|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1)break f;i=Z()|0;qc(h);break c}if(!Wc(g?J[e+16>>2]:e+16|0,2170632, -9))break h}g=e+16|0;if(el(g,2170786))break h;if(el(g,2170853))break h;if(!el(g,2170971))break g}J[695492]=0;h=$(4,224)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;g=ha(3568,h|0,a|0,e|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1)break f;i=Z()|0;qc(h);break c}g=0;h=e+16|0;if(el(h,2171065))break f;if(el(h,2171114)){J[695492]=0;h=$(4,248)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;g=ha(3569,h|0,a|0,e|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1)break f;i=Z()|0;qc(h);break c}if(!el(e+ -16|0,2171192))break f;J[695492]=0;h=$(4,224)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;g=ha(3570,h|0,a|0,e|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1)break f;i=Z()|0;qc(h);break c}J[695492]=0;_(3205,e|0);h=J[695492];J[695492]=0;if((h|0)==1)break e;if(g){h=J[J[g>>2]+8>>2];J[695492]=0;da(h|0,g|0,d|0);h=J[695492];J[695492]=0;if((h|0)==1)break e;gc[J[J[g>>2]+4>>2]](g)}if(H[e+27|0]>=0)break b;qc(J[e+16>>2]);break b}i=Z()|0;break c}i=Z()|0}if(H[e+27|0]<0)qc(J[e+16>>2]);ba(i|0);B()}i=i+ -1|0;if((k|0)!=(i|0))continue;break}}uc(e- -64|0)}bc=e+80|0}function Q1(a,b,c,d,e,f,g,h,i,j,k,l){var 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,G=0,H=0,I=0;z=O[a+8>>3]*k;a:{b:{q=O[d>>3];r=q+f;A=O[c>>3];n=A+f;v=r-n;o=O[e+8>>3];s=O[d+8>>3];x=s-i;B=o-i-x;w=O[e>>3];y=q+h;C=w+h-y;t=s-g;D=O[c+8>>3];p=D-g;E=t-p;F=v*B-C*E;G=R(F);if(!(G<1E-30)){o=((p-x)*C-B*(n-y))/F;n=o*v+n;w=n-q;p=o*E+p;o=p-s;v=Y(w*w+o*o);if(!(z>=v))break b;e=J[b+4>>2];c=J[b>>2];d=c>>>6|0;if(e>>>0<=d>>> -0){a=J[b+8>>2];c:{if(a>>>0>d>>>0){a=J[b+12>>2];break c}j=a+J[b+16>>2]|0;a=rc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){tc(a,m,e<<2);qc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=rc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=p;O[a>>3]=n;break a}v=1;p=s;n=q;if((!((r-q)*(s-D)-(q-A)*(t-s)<0)|0)==((r-w)*(o-s)-(w-q)*(t-o)<0|0))break b;e=J[b+4>>2];c=J[b>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];d:{if(a>>>0>d>>>0){a=J[b+ -12>>2];break d}j=a+J[b+16>>2]|0;a=rc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){tc(a,m,e<<2);qc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=rc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=t;O[a>>3]=r;break a}e:switch(j-1|0){case 0:a=J[b+4>>2];e=J[b>>2];m=e>>>6|0;if(a>>>0<=m>>>0){c=J[b+8>>2];f:{if(c>>>0>m>>>0){j=J[b+12>>2];break f}c=c+J[b+16>>2]|0;j=rc(c>>>0>1073741823?-1:c<<2);u=J[b+12>>2];if(u){tc(j,u,a<<2);qc(u); -c=J[b+8>>2]+J[b+16>>2]|0;e=J[b>>2];a=J[b+4>>2]}J[b+8>>2]=c;J[b+12>>2]=j}H=(m<<2)+j|0,I=rc(1024),J[H>>2]=I;J[b+4>>2]=a+1}a=J[J[b+12>>2]+(m<<2)>>2]+((e&63)<<4)|0;O[a+8>>3]=t;O[a>>3]=r;c=J[b>>2]+1|0;J[b>>2]=c;f=O[d+8>>3]-i;g=O[d>>3]+h;e=J[b+4>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];g:{if(a>>>0>d>>>0){a=J[b+12>>2];break g}j=a+J[b+16>>2]|0;a=rc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){tc(a,m,e<<2);qc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=rc(1024), -J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=f;O[a>>3]=g;break a;case 3:JK(a,b,q,s,f,-g,h,-i);return;default:break e}if(G<1E-30){l=f;f=+J[a+24>>2]*k;k=l*f+t;a=J[b+4>>2];e=J[b>>2];m=e>>>6|0;if(a>>>0<=m>>>0){c=J[b+8>>2];h:{if(c>>>0>m>>>0){j=J[b+12>>2];break h}c=c+J[b+16>>2]|0;j=rc(c>>>0>1073741823?-1:c<<2);u=J[b+12>>2];if(u){tc(j,u,a<<2);qc(u);c=J[b+8>>2]+J[b+16>>2]|0;e=J[b>>2];a=J[b+4>>2]}J[b+8>>2]=c;J[b+12>>2]=j}H=(m<<2)+j|0,I=rc(1024),J[H>>2]=I;J[b+4>>2]=a+1}a=J[J[b+ -12>>2]+(m<<2)>>2]+((e&63)<<4)|0;O[a+8>>3]=k;O[a>>3]=g*f+r;c=J[b>>2]+1|0;J[b>>2]=c;g=O[d+8>>3]-i-h*f;f=O[d>>3]+h-i*f;e=J[b+4>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];i:{if(a>>>0>d>>>0){a=J[b+12>>2];break i}j=a+J[b+16>>2]|0;a=rc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){tc(a,m,e<<2);qc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=rc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=g;O[a>>3]=f;break a}f=(z-l)/(v-l);g=(p- -t)*f+t;e=J[b+4>>2];c=J[b>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];j:{if(a>>>0>d>>>0){a=J[b+12>>2];break j}j=a+J[b+16>>2]|0;a=rc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){tc(a,m,e<<2);qc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=rc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=g;O[a>>3]=(n-r)*f+r;d=J[b>>2]+1|0;J[b>>2]=d;e=J[b+4>>2];c=d>>>6|0;if(e>>>0<=c>>>0){a=J[b+8>>2];k:{if(a>>>0>c>>>0){a=J[b+12>>2];break k}j= -a+J[b+16>>2]|0;a=rc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){tc(a,m,e<<2);qc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(c<<2)+a|0,I=rc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(c<<2)>>2]+((d&63)<<4)|0;O[a+8>>3]=(p-x)*f+x;O[a>>3]=(n-y)*f+y;J[b>>2]=J[b>>2]+1;return}J[b>>2]=J[b>>2]+1}function LYa(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;h=bc-16|0;bc=h;a:{if(!a|!(c|d)|(!(J[a+104>>2]|J[a+276>>2])|!J[a+12>>2]))break a; -if(!J[a+8>>2])break a;f=J[a>>2];if(!f)break a;f=J[f+16>>2];if(!f)break a;f=gc[f|0](J[a+4>>2],c,d)|0;if(!f)break a;GB(J[a+8>>2],b,c,d);o=J[a+24>>2];b=0;J[a+24>>2]=0;i=J[a+256>>2];j=J[a+48>>2];k=J[a+44>>2];l=J[a+40>>2];m=J[a+36>>2];e=gc[J[659447]](20)|0;J[a+48>>2]=e;b:{if(!e){J[a+84>>2]=2;c=J[a>>2];if(!(!c|J[c+108>>2]!=-554844497))b=J[c+124>>2];c=J[a+112>>2];d=J[a+108>>2];J[h+4>>2]=0;J[h>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,3256,h);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;J[a+256>>2]=i;J[a+48>> -2]=j;J[a+44>>2]=k;J[a+40>>2]=l;J[a+36>>2]=m;break b}J[a+44>>2]=5;J[a+36>>2]=0;J[a+40>>2]=0;zt(a,f);b=J[a+36>>2];if(J[b+24>>2]>=4)dr(a,gr(J[b+16>>2],4));if(!J[f+4>>2])q=f,r=zw(d),J[q+4>>2]=r;J[f+28>>2]=1;J[f+32>>2]=1;b=J[J[a+36>>2]+16>>2];J[f+40>>2]=0;J[f+16>>2]=b;J[f+12>>2]=b;g=bc-48|0;bc=g;mw(a);c:{if(J[a+292>>2])break c;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break c;Hd(a)}d:{if(J[a+24>>2])break d;f=J[a+36>>2];b=J[f+16>>2];if((J[f+20>>2]-b|0)<4)break d;H[g+44|0]=K[b|0];H[g+45|0]=K[b+1|0]; -H[g+46|0]=K[b+2|0];H[g+47|0]=K[b+3|0];b=gr(g+44|0,4);if(!b)break d;dr(a,b)}e:{f:{b=J[J[a+36>>2]+16>>2];if(K[b|0]!=60|K[b+1|0]!=63|(K[b+2|0]!=120|K[b+3|0]!=109))break f;if(K[b+4|0]!=108)break f;nw(a);if(J[a+84>>2]!=32)break f;qp(a);break e}e=J[a+8>>2];if(!e){e=wp(28555);J[a+8>>2]=e;if(!e){ke(a,17086);break e}J[e+92>>2]=64}if(!J[e+44>>2])h0(e,0,c,d);J[a+96>>2]=1;J[a+172>>2]=3;d=J[a+36>>2];g:{while(1){h:{i:{c=J[d+16>>2];e=K[c|0];switch(e-9|0){case 0:case 1:case 4:case 23:case 28:break h;case 51:break i; -default:break g}}b=K[c+1|0];if((b|0)==63)break h;if((b|0)!=33)break g}p=J[d+36>>2];j:{if(J[a+292>>2]){b=c;break j}b=c;if((J[d+20>>2]-b|0)>249)break j;Hd(a);b=J[J[a+36>>2]+16>>2];e=K[b|0]}k:{l:{m:{d=e&255;n:{if((d|0)==32)break n;if((d|0)==60){if(K[b+1|0]!=33|K[b+2|0]!=91)break l;kJ(a);break k}if((e-9&255)>>>0<2)break n;if((d|0)==37)break m;if((d|0)!=13)break l}Qd(a);break k}kB(a);break k}lJ(a)}d=J[a+36>>2];b=J[d+16>>2];o:{if(K[b|0])break o;e=J[a+40>>2];if((e|0)<=1)break o;while(1){p:{q:{r:{if(!J[689531]){b= -e-1|0;J[a+40>>2]=b;d=J[a+48>>2];break r}J[g+32>>2]=e;d=0;gc[J[659549]](J[689514],36109,g+32|0);e=J[a+40>>2];if((e|0)<=0)break p;b=e-1|0;J[a+40>>2]=b;d=J[a+48>>2];n=0;f=0;if((e|0)==1)break q}n=J[((e<<2)+d|0)-8>>2];f=b}J[a+36>>2]=n;b=(f<<2)+d|0;d=J[b>>2];J[b>>2]=0}dh(d);b=J[a+36>>2];s:{if(K[J[b+16>>2]])break s;if((Cd(b)|0)>0)break s;e=J[a+40>>2];if((e|0)>=2)continue}d=J[a+36>>2];b=J[d+16>>2];if(K[b|0])break o;e=J[a+40>>2];if((e|0)>1)continue;break}}if((b|0)!=(c|0)|J[d+36>>2]!=(p|0))continue;break}if(J[a+ -172>>2]==-1?J[a+212>>2]:0)break g;J[a+84>>2]=60;J[g+16>>2]=3041;Cc(0,0,0,a,0,1,60,3,0,0,0,0,32890,g+16|0);J[a+12>>2]=0;if(J[a+288>>2])break g;J[a+212>>2]=1}if(!K[J[J[a+36>>2]+16>>2]]|(J[a+172>>2]==-1?J[a+212>>2]:0))break e;J[a+84>>2]=60;J[g>>2]=3041;Cc(0,0,0,a,0,1,60,3,0,0,0,0,32890,g);J[a+12>>2]=0;if(J[a+288>>2])break e;J[a+212>>2]=1}bc=g+48|0;if(J[a+40>>2]>=2)while(1){ze(a);if(J[a+40>>2]>1)continue;break}b=J[a+36>>2];if(b){c=J[b+4>>2];if(c)gc[J[659451]](c);c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+ -44>>2];if(c)gc[J[659451]](c);c=J[b+48>>2];if(c)gc[J[659451]](c);c=J[b+40>>2];t:{if(!c)break t;d=J[b+12>>2];if(!d)break t;gc[c|0](d)}c=J[b>>2];if(c)cn(c);gc[J[659451]](b)}gc[J[659451]](J[a+48>>2]);J[a+256>>2]=i;J[a+48>>2]=j;J[a+44>>2]=k;J[a+40>>2]=l;J[a+36>>2]=m;c=J[a+24>>2];if(!c)break b;b=J[a+296>>2];if(b)while(1){d=J[b+16>>2];if(d)while(1){if(c>>>0<=M[d+4>>2]&c>>>0>=d+20>>>0)break b;d=J[d>>2];if(d)continue;break}b=J[b+20>>2];if(b)continue;break}gc[J[659451]](c)}J[a+24>>2]=o}bc=h+16|0}function zZ(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;e=bc-48|0;bc=e;J[e+32>>2]=13;J[e+16>>2]=13;a:{while(1){if(J[a+40>>2]==7){f=e+16|0;if(J[Bc(J[a+48>>2],b,f,0)>>2]!=5){m=e+32|0;Ce(J[a+48>>2],b,m);g=bc-16|0;bc=g;J[g>>2]=13;b:{c:{d:switch(J[f>>2]-7|0){case 0:a=J[f+8>>2];break c;case 1:break d;default:break b}a=J[f+8>>2];a=gc[J[J[a>>2]+76>>2]](a)|0}Bc(a,811480,g,0);e:{if(J[g>>2]!=1)break e;f:switch(J[g+8>>2]-1|0){case 0:c=bc-48|0;bc=c;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]= -13;g:{h:{if(J[f>>2]==8){h=1;a=J[f+8>>2];d=gc[J[J[a>>2]+76>>2]](a)|0;i:{if(J[Bc(d,811761,c+16|0,0)>>2]==1){h=J[c+24>>2];break i}xc(0,-1,812024,0)}a=c+16|0;uc(a);b=1;j:{if(J[Bc(d,812349,a,0)>>2]==1){b=J[c+24>>2];break j}xc(0,-1,812545,0)}a=c+16|0;uc(a);k:{l:{if(J[Bc(d,812848,a,0)>>2]!=6)break l;a=J[c+24>>2];if(J[a+12>>2]!=4)break l;if(J[Mc(a,0,c,0)>>2]-3>>>0>=4294967294)n=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],1,c,0)>>2]-3>>>0>=4294967294)o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);i= -1;j=1;if(J[Mc(J[c+24>>2],2,c,0)>>2]-3>>>0>=4294967294)j=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],3,c,0)>>2]-3>>>0>=4294967294)i=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);break k}xc(1,-1,813242,0);i=1;j=1}a=c+16|0;uc(a);m:{if(J[Bc(d,813511,a,0)>>2]-3>>>0>=4294967294){p=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];break m}xc(1,-1,813846,0);p=1}a=c+16|0;uc(a);n:{if(J[Bc(d,814048,a,0)>>2]-3>>>0>=4294967294){q=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];break n}xc(1,-1,814223,0);q=1}uc(c+16|0);a=c+32|0;if(J[Bc(d, -814441,a,0)>>2]!=7){uc(a);J[c+32>>2]=5;xc(1,-1,814781,0)}r=1;o:{if(J[Bc(d,796652,c+16|0,0)>>2]!=6){k=1;break o}k=1;a=J[c+24>>2];if(J[a+12>>2]!=6)break o;if(J[Mc(a,0,c,0)>>2]-3>>>0>=4294967294)k=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],1,c,0)>>2]-3>>>0>=4294967294)l=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],2,c,0)>>2]-3>>>0>=4294967294)s=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],3,c,0)>>2]-3>>>0>=4294967294)r=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+ -24>>2],4,c,0)>>2]-3>>>0>=4294967294)t=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],5,c,0)>>2]-3>>>0>=4294967294)u=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c)}uc(c+16|0);d=rc(144);J[d+128>>2]=13;J[d+64>>2]=13;J[d>>2]=2206308;J[d+4>>2]=1;O[d+56>>3]=q;O[d+48>>3]=p;O[d+16>>3]=n;J[d+12>>2]=b;J[d+8>>2]=h;O[d+40>>3]=i;O[d+32>>3]=j;O[d+24>>3]=o;J[695492]=0;b=c+32|0;aa(3282,b|0,d- -64|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;O[d+80>>3]=k;O[d+120>>3]=u;O[d+112>>3]=t;O[d+104>>3]=r;O[d+96>>3]=s; -O[d+88>>3]=l;J[695492]=0;aa(3282,m|0,d+128|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;uc(b)}bc=c+48|0;break g}a=Z()|0;qc(d);ba(a|0);B()}break e;case 1:break f;default:break e}c=bc-32|0;bc=c;J[c+16>>2]=13;J[c>>2]=13;p:{if(J[f>>2]!=7)break p;a=J[f+8>>2];h=c+16|0;Bc(a,815109,h,0);b=iZ(h);uc(h);if(!b)break p;l=1;q:{if(J[Bc(a,796652,h,0)>>2]!=6){i=1;break q}i=1;a=J[c+24>>2];if(J[a+12>>2]!=6)break q;if(J[Mc(a,0,c,0)>>2]-3>>>0>=4294967294)i=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2], -1,c,0)>>2]-3>>>0>=4294967294)n=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],2,c,0)>>2]-3>>>0>=4294967294)k=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],3,c,0)>>2]-3>>>0>=4294967294)l=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],4,c,0)>>2]-3>>>0>=4294967294)j=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(J[c+24>>2],5,c,0)>>2]-3>>>0>=4294967294)o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c)}uc(c+16|0);d=rc(64);O[d+16>>3]=i;J[d+8>>2]=b;J[d>>2]=2206328;J[d+4>>2]=2;O[d+56>> -3]=o;O[d+48>>3]=j;O[d+40>>3]=l;O[d+32>>3]=k;O[d+24>>3]=n}bc=c+32|0}uc(g)}bc=g+16|0;uc(m);uc(f);break a}uc(e+16|0)}a=J[a+104>>2];if(a)continue;break}J[e>>2]=b;xc(1,-1,788556,e)}bc=e+48|0;return d}function SMa(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;c=bc-128|0;bc=c;J[c+112>>2]=13;J[c+96>>2]=13;J[c+80>>2]=13;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[a>>2]=J[b+24>>2];h=rc(16);J[695492]=0;e=$(3185,h|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((d|0)!=1){J[a+ -8>>2]=0;J[a+4>>2]=e;i=J[b+28>>2];if(J[i+136>>2]!=7)break c;if(J[Bc(J[i+144>>2],774598,c+112|0,0)>>2]!=6)break d;f=J[c+120>>2];if(J[f+12>>2]>0){b=0;while(1){e=c- -64|0;if(J[jg(f,b,e)>>2]==9){d=J[c+76>>2];J[c+8>>2]=J[c+72>>2];J[c+12>>2]=d;hf(e,J[a>>2],c+48|0,0);f=0;g=bc-48|0;bc=g;J[g+32>>2]=13;J[g+16>>2]=13;J[g>>2]=13;g:{if(J[c+48>>2]!=7)break g;d=g+32|0;if(J[Bc(J[c+56>>2],794486,d,0)>>2]!=3){xc(1,-1,795638,0);uc(d);break g}e=rc(12);J[695492]=0;j=aa(3187,e|0,J[g+40>>2])|0;d=J[695492];J[695492]=0;h:{i:{j:{k:{if((d| -0)!=1){h=g+32|0;uc(h);e=2;d=2;if(J[Bc(J[c+56>>2],796177,h,0)>>2]!=7)break h;if(J[Bc(J[g+40>>2],779275,g+16|0,0)>>2]!=7)break i;e=2;if(J[Bc(J[g+24>>2],796947,g,0)>>2]!=4)break j;if(J[g>>2]!=4)break k;if(Ec(J[g+8>>2],797775))break k;e=0;break j}a=Z()|0;qc(e);break a}e=1}uc(g)}h=g+16|0;uc(h);if(J[Bc(J[g+40>>2],798173,h,0)>>2]==7){d=2;l:{if(J[Bc(J[g+24>>2],799064,g,0)>>2]!=4)break l;m:{if(J[g>>2]!=4)break m;if(Ec(J[g+8>>2],797775))break m;d=0;break l}d=1}uc(g)}uc(g+16|0)}uc(g+32|0);f=rc(28);k=J[c+8>> -2];h=J[c+12>>2];J[f+20>>2]=1;J[f+24>>2]=0;J[f+16>>2]=d;J[f+12>>2]=e;J[f+8>>2]=j;J[f>>2]=k;J[f+4>>2]=h}bc=g+48|0;if(f)id(J[a+4>>2],f);uc(c+48|0)}uc(c- -64|0);b=b+1|0;f=J[c+120>>2];if((b|0)>2])continue;break}}if(J[Bc(J[i+144>>2],776369,c+96|0,0)>>2]!=7)break f;n:{if(J[Bc(J[c+104>>2],777245,c- -64|0,0)>>2]!=6)break n;b=J[c+72>>2];if(J[b+12>>2]<=0)break n;i=0;while(1){if(J[Mc(b,i,c+80|0,0)>>2]==7){b=Bc(J[c+88>>2],777973,c+48|0,0);o:{if(J[b>>2]!=4)break o;if(Ec(J[b+8>>2],779275))break o;p:{if(J[Bc(J[c+ -88>>2],774598,c+32|0,0)>>2]!=6)break p;f=0;b=J[c+40>>2];if(J[b+12>>2]<=0)break p;while(1){q:{if(J[jg(b,f,c+16|0)>>2]!=9)break q;h=J[a+4>>2];k=J[h+8>>2];if((k|0)<=0)break q;e=J[c+28>>2];d=J[c+24>>2];h=J[h>>2];b=0;while(1){j=J[h+(b<<2)>>2];if(!((d|0)==J[j>>2]&(e|0)==J[j+4>>2])){b=b+1|0;if((k|0)!=(b|0))continue;break q}break}J[j+24>>2]=1}uc(c+16|0);f=f+1|0;b=J[c+40>>2];if((f|0)>2])continue;break}}uc(c+32|0)}uc(c+48|0)}uc(c+80|0);i=i+1|0;b=J[c+72>>2];if((i|0)>2])continue;break}}b=c- -64| -0;uc(b);r:{if(J[Bc(J[c+104>>2],781004,b,0)>>2]!=6)break r;b=J[c+72>>2];if(J[b+12>>2]<=0)break r;i=0;while(1){s:{if(J[jg(b,i,c+48|0)>>2]!=9)break s;t:{h=J[a+4>>2];k=J[h+8>>2];if((k|0)>0){e=J[c+60>>2];d=J[c+56>>2];h=J[h>>2];b=0;while(1){j=J[h+(b<<2)>>2];if((d|0)==J[j>>2]&(e|0)==J[j+4>>2])break t;b=b+1|0;if((k|0)!=(b|0))continue;break}}xc(1,-1,782044,0);break s}J[j+20>>2]=0}uc(c+48|0);i=i+1|0;b=J[c+72>>2];if((i|0)>2])continue;break}}uc(c- -64|0);b=J[a+4>>2];i=J[b+8>>2];u:{if((i|0)<=0)break u; -j=J[b>>2];b=0;if((i|0)!=1){h=i&-2;f=0;while(1){e=b<<2;k=J[e+j>>2];v:{if(!J[k+24>>2])break v;d=J[k+12>>2];if((d|0)==2)break v;J[k+20>>2]=!d}e=J[j+(e|4)>>2];w:{if(!J[e+24>>2])break w;d=J[e+12>>2];if((d|0)==2)break w;J[e+20>>2]=!d}b=b+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!(i&1))break u;d=J[j+(b<<2)>>2];if(!J[d+24>>2])break u;b=J[d+12>>2];if((b|0)==2)break u;J[d+20>>2]=!b}b=c- -64|0;if(J[Bc(J[c+104>>2],782570,b,0)>>2]==6)l=a,m=CY(b,a,J[a>>2],0),J[l+8>>2]=m;uc(c- -64|0);break e}a=Z()|0;qc(h); -break a}xc(1,-1,783977,0)}uc(c+96|0)}uc(c+112|0);if(J[a+8>>2])break b}e=rc(16);J[695492]=0;d=$(4,12)|0;b=J[695492];J[695492]=0;x:{if((b|0)!=1){J[695492]=0;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;b=J[695492];J[695492]=0;if((b|0)!=1)break x;a=Z()|0;qc(d);qc(e);break a}a=Z()|0;qc(e);break a}J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=d;J[a+8>>2]=e}bc=c+128|0;return a|0}ba(a|0);B()}function dOa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+4>>2]=b;J[a>>2]=2331012;J[a+40>>2]=0;J[a+8>>2]=13;J[a>>2]=2305656;J[695492]= -0;d=$(4,44)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{if((b|0)==1)break t;J[695492]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+40>>2]=-1;J[d+32>>2]=0;J[d+36>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break s;J[a+76>>2]=d;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,2)|0;e=J[695492];J[695492]=0;if((e|0)==1)break r;J[a+80>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0, -2)|0;e=J[695492];J[695492]=0;if((e|0)==1)break q;J[a+84>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break p;J[a+88>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;J[a+92>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e| -0)==1)break n;J[a+96>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break m;J[a+100>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;J[a+104>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k;J[a+108>>2]=b; -J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;J[a+112>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;J[a+116>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;J[a+120>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;J[a+124>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;J[a+128>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;J[a+132>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t; -J[695492]=0;b=aa(3443,d|0,512)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;J[a+136>>2]=b;J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;if((b|0)==1)break t;J[695492]=0;b=aa(3443,d|0,2)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[a+140>>2]=b;J[695492]=0;b=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break t;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a+144>>2]=b;J[695492]=0;b=$(4,20)|0;d=J[695492];J[695492]=0;if((d|0)==1)break t;J[b>>2]=0;J[b+4>>2]=0;J[b+16>>2]=0;J[b+8>>2]=0;J[b+12>>2]= -0;J[a+148>>2]=b;J[695492]=0;aa(3282,c|0,a+8|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}b=Z()|0;break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d);break b}b=Z()|0;qc(d)}ba(b|0);B()}J[a+48>>2]=0;J[a+ -52>>2]=0;J[a- -64>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;return a|0}function rS(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;e=bc-16|0;bc=e;Oc(b,2432048,-1);Oc(b,2432072,-1);Oc(b,2432104,-1);if(!K[a+245|0]){Oc(b,2432156,-1);XR(b,J[a+56>>2]);Oc(b,2432228,-1)}i=a+224|0;c=i;a:{if(J[c+4>>2]==J[c+8>>2])break a;f=(O[a+48>>3]-O[a+192>>3])/+(J[c+8>>2]-J[c+4>>2]>>2>>>0)*56.69291338582678;b:{if(R(f)<2147483648){c=~~f;break b}c=-2147483648}if(!c)break a;Oc(b,2432244,-1);wg(b,c);Oc(b,2432228,-1)}c=2432320;c:{d:{if(K[a+ -110|0])break d;c=2432368;if(K[a+111|0])break d;if(K[a+109|0])Oc(b,2432420,-1);c=2432472;if(!K[a+108|0])break c}Oc(b,c,-1)}if(K[a+88|0])Oc(b,K[a+89|0]?2432520:2432572,-1);e:{f:{g:{h:{i:{j:{k:{l:{if(K[a+96|0]){Oc(b,2432620,-1);if(!(H[2778768]&1)){qS();H[2778768]=1}m:{n:{c=J[694687];o:{if(!c)break o;g=J[a+100>>2];d=2778748;while(1){h=(g|0)>J[c+16>>2];d=h?d:c;c=J[(h?c+4|0:c)>>2];if(c)continue;break}if((d|0)==2778748)break o;if((g|0)>=J[d+16>>2])break n}c=rc(32);J[e>>2]=c;J[e+4>>2]=6;J[e+8>>2]=-2147483640; -d=J[608868];J[c+16>>2]=J[608867];J[c+20>>2]=d;d=J[608866];J[c+8>>2]=J[608865];J[c+12>>2]=d;d=J[608864];J[c>>2]=J[608863];J[c+4>>2]=d;J[c+24>>2]=0;break m}if(H[d+31|0]>=0){J[e+8>>2]=J[d+28>>2];c=J[d+24>>2];J[e>>2]=J[d+20>>2];J[e+4>>2]=c;break m}Re(e,J[d+20>>2],J[d+24>>2])}J[695492]=0;da(6445,b|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break l;if(H[e+11|0]<0)qc(J[e>>2]);if(J[a+104>>2]!=J[J[a+56>>2]+28>>2]){Oc(b,2432668,-1);c=J[a+104>>2];J[e>>2]=c<<16&16711680|c&65280|c>>>16&255;Wo(b,e);Oc(b,2432712, --1)}Oc(b,2432720,-1)}if(!K[a+90|0])break g;if(!(H[2778784]&1)){J[694694]=0;J[694695]=0;J[694693]=2778776;J[695492]=0;_(6449,2778772);c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;cz(2778772,J[694694]);ba(a|0);B()}H[2778784]=1}c=J[694694];if(!c)break i;g=J[a+92>>2];d=2778776;while(1){h=g>>>0>M[c+16>>2];d=h?d:c;c=J[(h?c+4|0:c)>>2];if(c)continue;break}if((d|0)==2778776|g>>>0>2])break i;Oc(b,2432732,-1);c=J[694694];p:{if(!c)break p;d=J[a+92>>2];g=d<<16&16711680|d&65280|d>>>16&255;d=2778776;while(1){h= -g>>>0>M[c+16>>2];d=h?d:c;c=J[(h?c+4|0:c)>>2];if(c)continue;break}if((d|0)==2778776)break p;if(g>>>0>=M[d+16>>2])break k}c=rc(32);J[e>>2]=c;J[e+4>>2]=4;J[e+8>>2]=-2147483640;d=J[608873];J[c+8>>2]=J[608872];J[c+12>>2]=d;d=J[608871];J[c>>2]=J[608870];J[c+4>>2]=d;J[c+16>>2]=0;break j}c=Z()|0;if(H[e+11|0]>=0)break f;break e}if(H[d+31|0]>=0){J[e+8>>2]=J[d+28>>2];c=J[d+24>>2];J[e>>2]=J[d+20>>2];J[e+4>>2]=c;break j}Re(e,J[d+20>>2],J[d+24>>2])}J[695492]=0;da(6445,b|0,e|0);c=J[695492];J[695492]=0;if((c|0)!= -1){if(H[e+11|0]>=0)break h;qc(J[e>>2]);break h}c=Z()|0;if(H[e+11|0]>=0)break f;break e}Oc(b,2432816,-1);c=J[a+92>>2];J[e>>2]=c<<16&16711680|c&65280|c>>>16&255;Wo(b,e)}Oc(b,2432228,-1)}f=3;q:{if((J[a+84>>2]&-2)!=2){f=2;if(!K[a+245|0])break q}j=O[J[a+56>>2]+400>>3];Oc(b,2432996,-1);f=j*f;r:{if(R(f)<2147483648){c=~~f;break r}c=-2147483648}wg(b,c);Oc(b,2433052,-1);wg(b,c);Oc(b,2432228,-1);if(!K[a+245|0])break q;Oc(b,2433128,-1);zq(b,J[a+56>>2]+384|0);Oc(b,2433208,-1);zq(b,J[a+56>>2]+384|0);Oc(b,2433256, --1);zq(b,J[a+56>>2]+384|0);Oc(b,2433292,-1);c=J[a+56>>2];if(K[c+409|0]){Oc(b,2433376,-1);Oc(b,2433404,-1);c=J[a+56>>2]}if(K[c+408|0]){Oc(b,2433440,-1);Oc(b,2433468,-1);c=J[a+56>>2]}c=J[c+28>>2];if((c<<16&16711680|c&65280|c>>>16&255)==1118481)break q;Oc(b,2433504,-1);c=J[J[a+56>>2]+28>>2];J[e>>2]=c<<16&16711680|c&65280|c>>>16&255;Wo(b,e);Oc(b,2432228,-1)}c=2433572;s:switch(J[a+84>>2]-2|0){case 1:c=2433704;case 0:Oc(b,c,-1);break;default:break s}Oc(b,2433844,-1);Oc(b,2433880,-1);_y(e,i);J[695492]=0; -da(6447,b|0,e|0);c=J[695492];J[695492]=0;if((c|0)!=1){if(H[e+11|0]<0)qc(J[e>>2]);Oc(b,2433988,-1);if(K[a+244|0])Oc(b,2434016,-1);Oc(b,2434048,-1);bc=e+16|0;return}c=Z()|0;if(H[e+11|0]>=0)break f;qc(J[e>>2])}ba(c|0);B()}qc(J[e>>2]);ba(c|0);B()}function vpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{if(!(K[a+301|0]?0:K[a+285|0])|(K[a+286|0]|K[a+287|0]))break b;if(K[a+288|0]|K[a+289|0])break b;H[a+301|0]=1;c:{g=J[a+196>>2];if(!g)break c;if(gc[g|0](a)| -0)break c;Dc(a,904,0,0);return 904}d:{e:{i=a;g=0;f:{if(!K[a+114|0])break f;g=gc[J[a+152>>2]](28)|0;if(!g){Dc(a,1,0,0);g=1;break f}J[g+4>>2]=1062;J[g>>2]=1063;a=J[i+700>>2];g:{if(a){J[a+8>>2]=g;break g}J[i+696>>2]=g}J[g+8>>2]=0;J[g+12>>2]=a;J[i+700>>2]=g;J[g+16>>2]=J[i+436>>2];J[g+20>>2]=J[i+440>>2];J[g+24>>2]=J[i+444>>2];if(!(J[i+516>>2]|(K[i+496|0]|!K[i+432|0])))J[i+516>>2]=g;g=0}a=g;if(a)break e;a=$7(i);if(a)break e;a=0;if(!K[i+112|0])break e;a=gc[J[b+4>>2]](i,b,e)|0;if(a)break e;g=J[e>>2];b=!c; -H[g+32|0]=b;a=0;if(b)break e;h:{i:{a=K[d|0];switch(a-4|0){case 0:case 4:break h;default:break i}}Dc(i,1049,0,0);return 1049}H[g+33|0]=a;g=c-1|0;if(!g){b=gc[J[i+152>>2]](0)|0;if(!b)break a;a=J[e>>2];J[a+40>>2]=b;J[a+36>>2]=0;return 0}f=d+1|0;b=K[f|0];j:{if((a|0)!=4){if((b&255)>>>0>3)break j;a=f;h=g;while(1){j=a;a=b&255;j=j+(a>>>0>1?1:a?9:25)|0;a=j;while(1){b=a;a=a+1|0;if(K[b|0])continue;break}if((b-d|0)<=(c|0)){a=b-j|0;h=h-a|0;if(!h)break d;k=k+1|0;a=a+j|0;b=K[a|0];if(b>>>0<=3)continue;break j}break}b= -k+1|0;h=gc[J[i+152>>2]](P(b,36))|0;if(!h)break a;a=J[e>>2];J[a+40>>2]=h;J[a+36>>2]=b;while(1){p=K[f|0];if(p>>>0>3)break j;l=0;k:{l:{m:{if(p>>>0>1){m=0;n=0;a=f+1|0;break m}a=K[f+5|0]|K[f+6|0]<<8|(K[f+7|0]<<16|K[f+8|0]<<24);m=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+1|0]|K[f+2|0]<<8|(K[f+3|0]<<16|K[f+4|0]<<24);n=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!p)break l;a=f+9|0}o=0;j=0;f=0;break k}a=K[f+21|0]|K[f+22|0]<<8|(K[f+23|0]<<16|K[f+24|0]<<24);o=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+ -17|0]|K[f+18|0]<<8|(K[f+19|0]<<16|K[f+20|0]<<24);j=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+13|0]|K[f+14|0]<<8|(K[f+15|0]<<16|K[f+16|0]<<24);l=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=f+25|0;b=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);f=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}e=a;while(1){b=e;e=b+1|0;if(K[b|0])continue;break}k=0;n:{if((b-d|0)>(c|0)){e=0;b=g;break n}b=b-a|0;e=g-b|0;if(!e)break d}if(h){J[h+28>>2]=b;J[h+24>>2]=o;J[h+20>>2]=j;J[h+12>>2]=f;J[h+4>>2]=n;H[h|0]=p;J[h+16>> -2]=l;J[h+8>>2]=m;if(b){g=gc[J[i+152>>2]](b+1|0)|0;J[h+32>>2]=g;if(!g)break a;tc(g,a,b)}k=h+36|0}f=a+b|0;a=0;h=k;g=e;if(g)continue;break}break e}if((b&255)>>>0>3)break j;a=f;h=g;while(1){j=a;a=b&255;j=j+(a>>>0>1?1:a?5:17)|0;a=j;while(1){b=a;a=a+1|0;if(K[b|0])continue;break}if((b-d|0)<=(c|0)){a=b-j|0;h=h-a|0;if(!h)break d;k=k+1|0;a=a+j|0;b=K[a|0];if(b>>>0<=3)continue;break j}break}b=k+1|0;h=gc[J[i+152>>2]](P(b,36))|0;if(!h)break a;a=J[e>>2];J[a+40>>2]=h;J[a+36>>2]=b;while(1){j=K[f|0];if(j>>>0>3)break j; -l=0;o:{p:{q:{if(j>>>0>1){m=0;a=f+1|0;break q}a=K[f+1|0]|K[f+2|0]<<8|(K[f+3|0]<<16|K[f+4|0]<<24);m=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!j)break p;a=f+5|0}n=0;o=0;break o}a=K[f+13|0]|K[f+14|0]<<8|(K[f+15|0]<<16|K[f+16|0]<<24);n=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);o=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+5|0]|K[f+6|0]<<8|(K[f+7|0]<<16|K[f+8|0]<<24);l=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=f+17|0}e=a;while(1){b=e;e=b+1|0;if(K[b| -0])continue;break}k=0;r:{if((b-d|0)>(c|0)){e=0;b=g;break r}b=b-a|0;e=g-b|0;if(!e)break d}if(h){J[h+28>>2]=b;J[h+24>>2]=n;J[h+20>>2]=o;J[h+12>>2]=0;J[h+4>>2]=0;H[h|0]=j;J[h+16>>2]=l;J[h+8>>2]=m;if(b){g=gc[J[i+152>>2]](b+1|0)|0;J[h+32>>2]=g;if(!g)break a;tc(g,a,b)}k=h+36|0}f=a+b|0;a=0;h=k;g=e;if(g)continue;break}break e}Dc(i,1050,0,0);return 1050}return a|0}Dc(i,1051,0,0);return 1051}Dc(a,1029,0,0);return 1029}Dc(i,1,0,0);return 1}function lAa(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;h=bc-16|0;bc=h;a:{b:{i=J[b>>2];c:{if(i){k=h+8|0;j=c;e=bc-48|0;bc=e;m=ch(e+36|0,e+44|0,P(J[i+8>>2],7),1);H[J[e+44>>2]]=0;l=J[e+44>>2];b=J[i+12>>2];J[e+32>>2]=b;J[e+28>>2]=0;c=b;d:{e:{f:{while(1){g:{d=J[J[i>>2]+60>>2];J[695492]=0;f=aa(d|0,i|0,e+32|0)|0;d=J[695492];J[695492]=0;h:{i:{j:{k:{l:{m:{n:{o:{if((d|0)!=1){d=2378550;switch(f-34|0){case 26:break i;case 28:break j;case 1:case 2:case 3:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 27:break k; -case 0:break m;case 5:break n;case 4:break o;default:break l}}d=Z()|0;break f}d=2379547;break i}d=2379963;break i}d=2380320;break i}if(!f)break g}if((!(f>>>0<128|j)|f>>>0<126)&f>>>0>=32)break h;J[695492]=0;J[e>>2]=f;d=e+20|0;ca(5476,d|0,2380759,e|0);f=J[695492];J[695492]=0;p:{q:{r:{s:{t:{u:{if((f|0)!=1){J[695492]=0;J[e+16>>2]=0;f=e+16|0;aa(4985,f|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break u;g=J[J[i>>2]+32>>2];J[695492]=0;n=g;g=e+24|0;ia(n|0,g|0,i|0,d|0,f|0);d=J[695492];J[695492]=0;if((d|0)== -1)break t;J[695492]=0;aa(4993,e+28|0,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break s;d=J[e+24>>2];J[e+24>>2]=0;v:{if(!d)break v;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break e;if(f)break v;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}d=J[e+16>>2];J[e+16>>2]=0;w:{if(!d)break w;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break e;if(f)break w;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}d= -J[e+20>>2];J[e+20>>2]=0;if(!d)break p;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break p;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break p}break e}d=Z()|0;break f}d=Z()|0;break q}d=Z()|0;break r}d=Z()|0;vc(e+24|0)}vc(e+16|0)}vc(e+20|0);break f}d=J[J[e+28>>2]+12>>2];if(d)break i;break h}d=2379147}if(J[e+32>>2]!=(c|0)){b=b-c|0;l=qd(l,c,b)+b|0;c=J[e+32>>2]}o=1;if(!K[d|0])break h;l=Qc(d)+ff(l,d)|0}b=J[e+32>>2];continue}break}J[k>>2]=0;x:{y:{z:{if(o){ff(l, -c);J[695492]=0;b=e+24|0;ca(5467,b|0,i|0,J[e+44>>2]);c=J[695492];J[695492]=0;A:{if((c|0)!=1){J[695492]=0;aa(4993,k|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break A;b=J[e+24>>2];J[e+24>>2]=0;if(!b)break z;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j=J[695492];J[695492]=0;if((j|0)!=1){if(c)break z;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break z}break e}d=Z()|0;break x}d=Z()|0;vc(e+24|0);break x}J[695492]=0;aa(4985,k|0,i|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break y}b=J[e+28>> -2];J[e+28>>2]=0;B:{if(!b)break B;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j=J[695492];J[695492]=0;if((j|0)==1)break e;if(c)break B;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break e}_c(m);bc=e+48|0;break d}d=Z()|0}vc(k)}vc(e+28|0);_c(m);ba(d|0);B()}ea(0)|0;yc();B()}J[695492]=0;aa(5144,a|0,k|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[h+8>>2];J[h+8>>2]=0;if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break c;J[695492]=0;_(4987, -a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break a}J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;J[h+12>>2]=0;aa(4993,a|0,h+12|0)|0;b=J[695492];J[695492]=0;C:{if((b|0)!=1){b=J[h+12>>2];J[h+12>>2]=0;if(!b)break C;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j=J[695492];J[695492]=0;if((j|0)!=1){if(c)break C;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break C}break a}b=Z()|0;vc(h+12|0);sc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2]}bc=h+16|0;return}a=Z()|0;vc(h+8|0); -ba(a|0);B()}ea(0)|0;yc();B()}function rEa(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;f=bc-32|0;bc=f;a:{b:{c:{d:{d=H[a+11|0]<0?J[a>>2]:a;e=J[d>>2];if((e|0)!=115){if((e|0)!=35)break c;a=Bm(f+20|0,a,1,-1,f+8|0);e=K[a+11|0];d=e<<24>>24;g=(d|0)<0;e=g?J[a+4>>2]:e;if(e>>>0>5)break d;while(1){e:{i=e+1|0;f:{if(!e){J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;H[f+19|0]=i;d=f+8|0;break f}J[695492]=0;j=(i|3)+1|0;d=$(4,j<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break e;J[f+12>>2]=i; -J[f+8>>2]=d;J[f+16>>2]=j|-2147483648}J[d>>2]=48;i=d+4|0;d=J[a>>2];e=e<<2;n=Zc(i,g?d:a,e)+e|0,o=0,J[n>>2]=o;if(g)qc(d);d=J[f+12>>2];J[a>>2]=J[f+8>>2];J[a+4>>2]=d;J[a+8>>2]=J[f+16>>2];e=K[a+11|0];d=e<<24>>24;g=(d|0)<0;e=g?J[a+4>>2]:e;if(e>>>0<6)continue;break d}break}break b}if(J[d+4>>2]!=99|J[d+8>>2]!=35)break c;d=a;a=f+8|0;g=Bm(f+20|0,d,3,-1,a);J[695492]=0;ca(4969,a|0,g|0,44);a=J[695492];J[695492]=0;g:{h:{i:{j:{k:{if((a|0)!=1){l:{d=J[f+8>>2];switch(((J[f+12>>2]-d|0)/12|0)-3|0){case 1:break k;case 0:break l; -default:break i}}J[c>>2]=255;J[695492]=0;h=+qa(4835,d+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;l=+qa(4835,J[f+8>>2]+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;m=+qa(4835,J[f+8>>2]);a=J[695492];J[695492]=0;if((a|0)!=1)break j;break h}e=Z()|0;break g}J[695492]=0;h=+qa(4835,d|0);a=J[695492];J[695492]=0;m:{if((a|0)!=1){h=h*255;n:{if(R(h)<2147483648){a=~~h;break n}a=-2147483648}J[c>>2]=a;J[695492]=0;h=+qa(4835,J[f+8>>2]+36|0);a=J[695492];J[695492]=0;if((a|0)==1)break h; -J[695492]=0;l=+qa(4835,J[f+8>>2]+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break m;J[695492]=0;m=+qa(4835,J[f+8>>2]+12|0);a=J[695492];J[695492]=0;if((a|0)!=1)break j;break h}break h}break h}h=(h>1?1:h)*255;o:{if(R(h)<2147483648){a=~~h;break o}a=-2147483648}c=a<<16;h=(l>1?1:l)*255;p:{if(R(h)<2147483648){a=~~h;break p}a=-2147483648}c=c+(a<<8)|0;h=(m>1?1:m)*255;q:{if(R(h)<2147483648){a=~~h;break q}a=-2147483648}J[b>>2]=a+c;d=J[f+8>>2]}if(d){a=d;e=J[f+12>>2];if((a|0)!=(e|0)){while(1){a=e-12|0;if(H[e- -1|0]<0)qc(J[a>>2]);e=a;if((a|0)!=(d|0))continue;break}a=J[f+8>>2]}J[f+12>>2]=d;qc(a)}if(H[g+11|0]>=0)break c;qc(J[g>>2]);break c}e=Z()|0;sg(f+8|0)}if(H[g+11|0]>=0)break a;qc(J[g>>2]);break a}g=(d|0)<0;if(e>>>0<=7)while(1){i=e+1|0;r:{if(!e){J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;H[f+19|0]=i;d=f+8|0;break r}J[695492]=0;j=(i|3)+1|0;d=$(4,j<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break b;J[f+12>>2]=i;J[f+8>>2]=d;J[f+16>>2]=j|-2147483648}J[d>>2]=70;i=d+4|0;d=J[a>>2];e=e<<2;n=Zc(i,g?d:a,e)+e|0,o=0,J[n>> -2]=o;if(g)qc(d);d=J[f+12>>2];J[a>>2]=J[f+8>>2];J[a+4>>2]=d;J[a+8>>2]=J[f+16>>2];d=K[a+11|0];g=d<<24>>24<0;e=g?J[a+4>>2]:d;if(e>>>0<8)continue;break}j=a+4|0;i=J[a>>2];a=g?i:a;e=J[a>>2];d=e-48|0;s:{if(d>>>0<10)break s;if(e-97>>>0<=5){d=e-87|0;break s}d=e-65>>>0<6?e-55|0:0}k=d<<4;J[c>>2]=k;e=J[(g?i+4|0:j)>>2];d=e-48|0;t:{if(d>>>0<10)break t;if(e-97>>>0<=5){d=e-87|0;break t}d=e-65>>>0<6?e-55|0:0}J[c>>2]=d+k;c=J[a+24>>2];d=c-48|0;u:{if(d>>>0<10)break u;if(c-97>>>0<=5){d=c-87|0;break u}d=c-65>>>0<6?c-55| +g=e-1|0;e=0;f=p;l:{m:{while(1){q=0;n:{while(1){o:{if((g|0)>11){i=g;break o}if(d>>>0>=s>>>0){i=12;if(g)break o;break c}m=g+8|0;j=d+1|0;k=K[K[d|0]+t|0]<3){i=m;d=j;break o}i=12;if(j>>>0>=s>>>0){d=j;break o}i=g+16|0;k=K[K[d+1|0]+t|0]<>>g|0;g=i-g|0;o=1;i=f;p:{q:switch(K[j|0]-7|0){case 0:j=J[j+4>>2];v=j+q|0;J[f>>2]=v;i=f+4|0;q=0;e=e+j|0;if((l|0)>(e|0))break p;o=0;break l;case 5:break m;case 2:case 4:break q;default:break n}i=J[j+4>>2];q= +i+q|0;e=e+i|0;continue}break}while(1){r:{if((g|0)>12){j=g;break r}if(d>>>0>=s>>>0){j=13;if(g)break r;f=i;break c}r=g+8|0;m=d+1|0;k=K[K[d|0]+t|0]<4){j=r;d=m;break r}j=13;if(m>>>0>=s>>>0){d=m;break r}j=g+16|0;k=K[K[d+1|0]+t|0]<>>g|0;g=j-g|0;j=K[m|0];if(j-10>>>0<2){j=J[m+4>>2];q=j+q|0;e=e+j|0;continue}break}s:{t:switch(j-8|0){case 0:j=J[m+4>>2];m=j+q|0;J[f+4>>2]=m;i=f+8|0;e=e+j|0;if((l|0)>(e|0))break s;o=0;break l;case 4:break m;default:break t}f= +J[a+12>>2]&1024;j=J[(f?504:480)+a>>2];m=J[a+628>>2];r=J[a>>2];o=J[n+108>>2];J[h+80>>2]=e;J[h+76>>2]=j;J[h+72>>2]=f?88482:88539;J[h+68>>2]=o;J[h+64>>2]=r;Uc(m,95776,88316,h- -64|0);o=0;break m}f=m|v?i:f;continue}break}i=J[a+12>>2]&1024;j=J[(i?504:480)+a>>2];m=J[a+628>>2];r=J[a>>2];o=J[n+108>>2];J[h+48>>2]=e;J[h+44>>2]=j;J[h+40>>2]=i?88482:88539;J[h+36>>2]=o;J[h+32>>2]=r;Uc(m,95776,88316,h+32|0);o=0;i=f}if(!q)break l;J[i>>2]=q;i=i+4|0}u:{if((e|0)==(l|0))break u;f=J[a+12>>2]&1024;j=J[(f?504:480)+a>> +2];m=J[a+628>>2];r=J[a>>2];q=J[n+108>>2];J[h+24>>2]=l;J[h+20>>2]=e;J[h+16>>2]=j;J[h+12>>2]=f?88482:88539;J[h+8>>2]=q;J[h+4>>2]=e>>>0>>0?88871:88926;J[h>>2]=r;le(m,95776,88788,h);f=(e|0)>(l|0);v:{if((e|0)<=(l|0)|i>>>0<=p>>>0)break v;while(1){i=i-4|0;e=e-J[i>>2]|0;f=(l|0)<(e|0);if((e|0)<=(l|0))break v;if(i>>>0>p>>>0)continue;break}}if((e|0)<(l|0)){if(i-p&4){J[i>>2]=0;i=i+4|0}J[i>>2]=l-((e|0)>0?e:0);i=i+4|0;break u}if(!f)break u;J[i+4>>2]=0;J[i>>2]=l;i=i+8|0}kc[J[n+76>>2]](b,p,i,l);J[n+108>>2]=J[n+ +108>>2]+1;f=J[n+8>>2];b=f+b|0;c=c-f|0;if((c|0)>0)continue e;e=J[a+608>>2];f=J[a+604>>2];break d}else{k=k>>>8|0;g=e-8|0;continue}}}break}if(!l){f=p;break b}c=J[a+12>>2]&1024;f=J[(c?504:480)+a>>2];e=J[a+628>>2];i=J[a>>2];g=J[n+108>>2];J[h+184>>2]=l;J[h+180>>2]=0;J[h+176>>2]=f;J[h+172>>2]=c?88482:88539;J[h+168>>2]=g;J[h+164>>2]=88871;J[h+160>>2]=i;le(e,95776,88788,h+160|0);J[p>>2]=l;if((l|0)>0){f=p+4|0;break b}J[p+4>>2]=0;f=p+8|0;break b}J[n+72>>2]=o;J[n+64>>2]=k;J[n+68>>2]=g;b=(f-d|0)+e|0;break a}c= +J[a+12>>2]&1024;i=J[(c?504:480)+a>>2];g=J[a+628>>2];j=J[a>>2];m=J[n+108>>2];J[h+144>>2]=e;J[h+140>>2]=i;J[h+136>>2]=c?88482:88539;J[h+132>>2]=m;J[h+128>>2]=j;le(g,95776,88656,h+128|0);if(q){J[f>>2]=q;f=f+4|0}o=0;if((e|0)==(l|0))break b;c=J[a+12>>2]&1024;i=J[(c?504:480)+a>>2];g=J[a+628>>2];j=J[a>>2];m=J[n+108>>2];J[h+120>>2]=l;J[h+116>>2]=e;J[h+112>>2]=i;J[h+108>>2]=c?88482:88539;J[h+104>>2]=m;J[h+100>>2]=e>>>0>>0?88871:88926;J[h+96>>2]=j;le(g,95776,88788,h+96|0);g=(e|0)>(l|0);w:{if((e|0)<=(l|0)| +f>>>0<=p>>>0)break w;while(1){f=f-4|0;e=e-J[f>>2]|0;g=(l|0)<(e|0);if((e|0)<=(l|0))break w;if(f>>>0>p>>>0)continue;break}}if((e|0)<(l|0)){if(f-p&4){J[f>>2]=0;f=f+4|0}J[f>>2]=l-((e|0)>0?e:0);f=f+4|0;break b}if(!g)break b;J[f+4>>2]=0;J[f>>2]=l;f=f+8|0}kc[J[n+76>>2]](b,p,f,l);J[n+72>>2]=o;J[n+64>>2]=k;J[n+68>>2]=0;u=-1;b=J[a+608>>2]+(J[a+604>>2]-d|0)|0}J[a+604>>2]=d;J[a+608>>2]=b;fc=h+192|0;return u|0}function Hya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-48|0;fc=d;J[d+40>>2]=0;J[d+44>>2]=J[685894];J[699344]= +0;da(5278,d+36|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){a=a+8|0;f=J[d+36>>2];d:{while(1){e:{J[699344]=0;b=d+40|0;c=ha(5279,f|0,b|0,0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break e;f:{g:{h:{if(c){J[699344]=0;b=pd(b,2389258,-1);c=J[699344];J[699344]=0;if((c|0)==1)break e;if(!b){if(J[a>>2]){J[699344]=0;b=ja(5178,d+12|0,2389509,2385316,709,2418883,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break d}J[699344]= +0;b=_(4,64)|0;c=J[699344];J[699344]=0;i:{j:{k:{l:{if((c|0)==1)break l;J[b+8>>2]=0;J[b>>2]=2418984;J[b+4>>2]=0;c=J[685894];J[b+20>>2]=0;J[b+24>>2]=0;J[b+16>>2]=1;J[b+12>>2]=c;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;c=b+44|0;J[c>>2]=0;J[c+4>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[699344]=0;J[c>>2]=2419016;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;wc(b+8|0);uc(nd(b));break d}J[b+60>>2]=0;J[699344]=0;J[d+12>>2]=0;c=d+12|0;aa(5145,c|0,b|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break l;J[699344]=0;aa(5153,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;b=J[d+12>>2];J[d+12>>2]=0;m:{if(!b)break m;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break m;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a>>2];J[699344]=0;J[d+12>>2]=0;c=d+12|0;aa(5145,c|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;J[699344]=0;da(5598,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;b=J[d+12>>2];J[d+ +12>>2]=0;if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;break f}a=Z()|0;break d}a=Z()|0;zc(d+12|0);break d}a=Z()|0;break d}a=Z()|0;zc(d+12|0);break d}J[699344]=0;b=pd(d+40|0,2390156,-1);c=J[699344];J[699344]=0;if((c|0)==1)break e;if(b)break f;if(J[a>>2]){J[699344]=0;b=ja(5178,d+12|0,2389509,2385316,716,2418883,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]= +0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break d}J[699344]=0;b=_(4,64)|0;c=J[699344];J[699344]=0;n:{o:{p:{q:{r:{if((c|0)==1)break r;J[b+8>>2]=0;J[b>>2]=2418984;J[b+4>>2]=0;c=J[685894];J[b+20>>2]=0;J[b+24>>2]=0;J[b+16>>2]=1;J[b+12>>2]=c;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;c=b+44|0;J[c>>2]=0;J[c+4>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[699344]=0;J[c>>2]=2419016;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;wc(b+8|0);uc(nd(b)); +break d}J[b+60>>2]=0;J[699344]=0;J[d+12>>2]=0;c=d+12|0;aa(5145,c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;J[699344]=0;aa(5153,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q;b=J[d+12>>2];J[d+12>>2]=0;s:{if(!b)break s;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break s;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[d+8>>2]=0;J[699344]=0;b=d+8|0;aa(5145,b|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break p;J[699344]= +0;da(5295,d+12|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break o;b=J[d+8>>2];J[d+8>>2]=0;t:{if(!b)break t;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break t;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a>>2];J[699344]=0;da(5598,b|0,d+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break n;b=J[d+12>>2];J[d+12>>2]=0;if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break f;J[699344]=0;$(5147, +b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f}break a}a=Z()|0;break d}a=Z()|0;zc(d+12|0);break d}a=Z()|0;break d}a=Z()|0;zc(d+8|0);break d}a=Z()|0;zc(d+12|0);break d}a=J[d+36>>2];J[d+36>>2]=0;u:{if(!a)break u;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break u;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}wc(d+40|0);fc=d+48|0;return}a=Z()|0;break d}a=Z()|0;break d}J[699344]=0;$(5332,f|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue}break}a= +Z()|0}zc(d+36|0);break c}a=Z()|0}wc(d+40|0);ba(a|0);B()}B()}ea(0)|0;Bc();B()}function uVa(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;g=fc-112|0;fc=g;J[a+88>>2]=13;J[a+24>>2]=13;J[g+96>>2]=13;J[g+80>>2]=13;J[g+64>>2]=13;J[g+48>>2]=13;J[g+32>>2]=13;J[a>>2]=b;J[a+104>>2]=1;J[a+4>>2]=J[b+24>>2];b=J[d>>2];d=J[d+4>>2];J[a+84>>2]=0;J[a+40>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=b;J[a+12>>2]=d;a:{if(J[Ec(c,776736,g- -64|0,0)>>2]==4){b=vc(8);J[699344]=0;d=aa(3349, +b|0,J[g+72>>2])|0;k=J[699344];J[699344]=0;if((k|0)==1)break a;J[a+16>>2]=d}b=g- -64|0;yc(b);b:{c:{if(J[Ec(c,777486,b,0)>>2]!=6)break c;b=J[g+72>>2];if(J[b+12>>2]!=4)break c;J[a+48>>2]=0;J[a+52>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;if(J[Sc(b,0,g+48|0,0)>>2]-3>>>0>=4294967294)O[a+48>>3]=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];b=g+48|0;yc(b);if(J[Sc(J[g+72>>2],1,b,0)>>2]-3>>>0>=4294967294)O[a+56>>3]=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];b=g+48|0;yc(b); +if(J[Sc(J[g+72>>2],2,b,0)>>2]-3>>>0>=4294967294)O[a+64>>3]=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];b=g+48|0;yc(b);if(J[Sc(J[g+72>>2],3,b,0)>>2]-3>>>0>=4294967294)O[a+72>>3]=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];yc(g+48|0);h=O[a+48>>3];i=O[a+64>>3];if(h>i){O[a+64>>3]=h;O[a+48>>3]=i}h=O[a+56>>3];i=O[a+72>>3];if(!(h>i))break b;O[a+72>>3]=h;O[a+56>>3]=i;break b}Cc(1,-1,778650,0);J[a+104>>2]=0}b=g- -64|0;yc(b);k=0;d=Ec(c,780491,b,0);J[a+80>>2]=J[d>>2]==1?J[g+72>>2]:0;yc(b);J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]= +0;J[g+4>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=1072693248;d:{e:{f:{if(J[Ec(c,781451,b,0)>>2]==7){d=0;g:{if(J[Ec(J[g+72>>2],782470,g+48|0,0)>>2]!=4)break g;h:{if(J[g+48>>2]!=4)break h;b=J[g+56>>2];d=0;if(!Ic(b,782470))break g;d=1;if(!Ic(b,783845))break g;d=2;if(!Ic(b,784864))break g;d=3;if(!Ic(b,785719))break g;if(Ic(b,786444))break h;d=4;break g}d=0}b=g+48|0;yc(b);h=1;if(J[Ec(J[g+72>>2],787305,b,0)>>2]-3>>>0>=4294967294)h=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];b=g+48|0;yc(b);if(J[Ec(J[g+ +72>>2],783845,b,0)>>2]!=6){k=1;break f}k=1;j=J[J[g+56>>2]+12>>2];m=Gd(j,8);if((j|0)<=0)break f;b=0;while(1){l=(b<<3)+m|0;if(J[Sc(J[g+56>>2],b,g+32|0,0)>>2]-3>>>0>=4294967294)i=J[g+32>>2]==1?+J[g+40>>2]:O[g+40>>3];else i=1;O[l>>3]=i;yc(g+32|0);b=b+1|0;if((j|0)!=(b|0))continue;break}break f}b=g- -64|0;yc(b);if(J[Ec(c,788054,b,0)>>2]!=6){h=1;break e}b=J[g+72>>2];if(J[b+12>>2]<3){h=0;break e}d=0;h=1;if(J[Sc(b,2,g+48|0,0)>>2]-3>>>0>=4294967294)h=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];yc(g+48|0);b=J[g+72>> +2];if(J[b+12>>2]<4){k=1;break d}if(J[Sc(b,3,g+48|0,0)>>2]!=6){h=0;break f}k=1;j=J[J[g+56>>2]+12>>2];m=Gd(j,8);if((j|0)>0){b=0;while(1){d=(b<<3)+m|0;if(J[Sc(J[g+56>>2],b,g+32|0,0)>>2]-3>>>0>=4294967294)i=J[g+32>>2]==1?+J[g+40>>2]:O[g+40>>3];else i=1;O[d>>3]=i;yc(g+32|0);b=b+1|0;if((j|0)!=(b|0))continue;break}}d=1}yc(g+48|0);break d}d=0}b=g- -64|0;yc(b);i:{j:{if(J[Ec(c,789310,b,0)>>2]!=6)break j;l=J[J[g+72>>2]+12>>2];if(l>>>0>4|!(1<>2],b,g+48| +0,0)>>2]-3>>>0>=4294967294)i=J[g+48>>2]==1?+J[g+56>>2]:O[g+56>>3];else i=0;O[n>>3]=i;yc(g+48|0);b=b+1|0;if((l|0)!=(b|0))continue;break}yc(g- -64|0);if(!k)break i;b=vc(64);J[b+20>>2]=j;J[b+16>>2]=m;O[b+8>>3]=h;J[b>>2]=d;O[b+24>>3]=O[g>>3];O[b+32>>3]=O[g+8>>3];O[b+40>>3]=O[g+16>>3];h=O[g+24>>3];J[b+56>>2]=l;O[b+48>>3]=h;J[a+84>>2]=b;break i}yc(g- -64|0)}Ec(c,790005,g+96|0,0);Ec(c,790883,g+80|0,0);k:{l:{m:{if(J[g+80>>2]==4){b=vc(8);J[699344]=0;d=aa(3349,b|0,(f?f:J[g+88>>2])|0)|0;f=J[699344];J[699344]= +0;if((f|0)!=1)break m;break a}if(J[g+96>>2]==7){Ec(J[g+104>>2],e,g- -64|0,0);n:{if(J[g+64>>2]!=7)break n;d=J[g+72>>2];if(J[d+16>>2]!=1)break n;b=vc(8);if(!f){J[699344]=0;f=J[J[d+4>>2]>>2];d=J[699344];J[699344]=0;if((d|0)==1)break k}J[699344]=0;d=aa(3349,b|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break k;J[a+20>>2]=d}yc(g- -64|0)}if(J[a+20>>2])break l;b=vc(8);J[699344]=0;d=aa(3349,b|0,791621)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break m;break a}J[a+20>>2]=d}yc(g+80|0);if(J[g+96>>2]==7){b=a+24| +0;Ec(J[g+104>>2],e,g- -64|0,0);Ke(J[g+104>>2],e,g+48|0);o:{if(J[g+64>>2]==7){d=g+32|0;if(J[Ke(J[g+72>>2],J[J[a+20>>2]+4>>2],d)>>2]==9)Pe(d,b);yc(g+32|0);break o}if(J[g+48>>2]!=9)break o;Pe(g+48|0,b)}yc(g- -64|0);yc(g+48|0)}yc(g+96|0);Ke(c,792820,a+88|0);fc=g+112|0;return a|0}}a=Z()|0;uc(b);ba(a|0);B()}function Zf(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;k=fc-96|0;fc=k;u=i&65535;o= +(e^i)&-2147483648;q=e&65535;y=q;Q=i>>>16&32767;R=e>>>16&32767;a:{b:{if(Q-32767>>>0>4294934529&R-32767>>>0>=4294934530)break b;m=e&2147483647;p=m;j=d;if(!(!d&(m|0)==2147418112?!(b|c):m>>>0<2147418112)){n=d;o=e|32768;break a}m=i&2147483647;s=m;e=h;if(!(!e&(m|0)==2147418112?!(f|g):m>>>0<2147418112)){n=e;o=i|32768;b=f;c=g;break a}if(!(b|j|(p^2147418112|c))){if(!(e|f|(g|s))){o=2147450880;b=0;c=0;break a}o=o|2147418112;b=0;c=0;break a}if(!(e|f|(s^2147418112|g))){e=b|j;d=c|p;b=0;c=0;if(!(d|e)){o=2147450880; +break a}o=o|2147418112;break a}if(!(b|j|(c|p))){b=0;c=0;break a}if(!(e|f|(g|s))){b=0;c=0;break a}if((p|0)==65535|p>>>0<65535){j=!(d|q);i=j?b:d;m=j<<6;e=S(i)+32|0;i=S(j?c:q);i=m+((i|0)==32?e:i)|0;Gi(k+80|0,b,c,d,q,i-15|0);t=16-i|0;d=J[k+88>>2];y=J[k+92>>2];c=J[k+84>>2];b=J[k+80>>2]}if(s>>>0>65535)break b;i=!(h|u);e=i?f:h;q=i<<6;j=S(e)+32|0;e=S(i?g:u);e=q+((e|0)==32?j:e)|0;Gi(k- -64|0,f,g,h,u,e-15|0);t=(t-e|0)+16|0;h=J[k+72>>2];u=J[k+76>>2];f=J[k+64>>2];g=J[k+68>>2]}e=f;f=g<<15|f>>>17;i=e<<15;e=0;v= +i&-32768;K=c;s=vEb(v,e,c,0);e=jc;z=e;L=f;w=b;b=vEb(f,0,b,0);c=b+s|0;f=jc+e|0;i=b>>>0>c>>>0?f+1|0:f;j=0;b=vEb(w,l,v,l);p=j+b|0;f=c;e=f+jc|0;e=b>>>0>p>>>0?e+1|0:e;q=e;M=(f|0)==(e|0)&j>>>0>p>>>0|e>>>0>>0;N=d;m=vEb(v,l,d,0);O=jc;b=vEb(K,l,L,l);x=b+m|0;j=jc+O|0;j=b>>>0>x>>>0?j+1|0:j;b=u<<15|h>>>17;B=h<<15|g>>>17;d=vEb(B,0,w,l);C=d+x|0;f=jc+j|0;f=d>>>0>C>>>0?f+1|0:f;D=f;e=i;E=e+C|0;f=((e|0)==(z|0)&c>>>0>>0|e>>>0>>0)+f|0;f=e>>>0>E>>>0?f+1|0:f;u=f;g=E;c=f;F=y|65536;z=vEb(v,l,F,r);P=jc;d=vEb(N,n, +L,l);G=d+z|0;e=jc+P|0;e=d>>>0>G>>>0?e+1|0:e;i=e;H=b|-2147483648;b=vEb(H,0,w,l);v=b+G|0;f=jc+e|0;f=b>>>0>v>>>0?f+1|0:f;b=vEb(B,n,K,l);r=b+v|0;I=f;f=f+jc|0;s=b>>>0>r>>>0?f+1|0:f;b=0;w=b+g|0;e=c+r|0;e=b>>>0>w>>>0?e+1|0:e;y=e;f=e;b=w+M|0;c=b>>>0>>0?f+1|0:f;t=((R+Q|0)+t|0)-16383|0;d=vEb(H,A,K,l);h=jc;e=vEb(F,n,L,l);g=e+d|0;f=jc+h|0;f=e>>>0>g>>>0?f+1|0:f;l=(h|0)==(f|0)&d>>>0>g>>>0|f>>>0>>0;h=f;e=vEb(B,n,N,n);d=e+g|0;f=jc+f|0;f=d>>>0>>0?f+1|0:f;e=f;g=(f|0)==(h|0)&d>>>0>>0|f>>>0>>0;f=0;h=g; +g=g+l|0;f=h>>>0>g>>>0?1:f;h=g;g=vEb(H,A,F,n);h=h+g|0;f=jc+f|0;M=h;g=g>>>0>h>>>0?f+1|0:f;h=d;l=e;e=(j|0)==(O|0)&m>>>0>x>>>0|j>>>0>>0;f=0;j=(j|0)==(D|0)&x>>>0>C>>>0|j>>>0>D>>>0;m=j;j=e+j|0;e=(m>>>0>j>>>0?1:f)+l|0;f=g;d=d+j|0;e=d>>>0>>0?e+1|0:e;m=e;x=d;d=(e|0)==(l|0)&d>>>0>>0|e>>>0>>0;e=d;d=d+M|0;f=e>>>0>d>>>0?f+1|0:f;j=d;h=f;e=vEb(B,n,F,n);l=jc;g=vEb(H,A,N,n);d=g+e|0;f=jc+l|0;f=d>>>0>>0?f+1|0:f;g=f;f=(l|0)==(f|0)&d>>>0>>0|f>>>0>>0;A=g+j|0;e=f+h|0;e=g>>>0>A>>>0?e+1|0:e;l=A;h=e;j= +d;e=0;d=e+x|0;f=j+m|0;f=d>>>0>>0?f+1|0:f;e=f;g=(m|0)==(f|0)&d>>>0>>0|f>>>0>>0;f=h;h=g;g=g+l|0;f=h>>>0>g>>>0?f+1|0:f;m=g;g=f;h=d;j=e;e=(s|0)==(I|0)&r>>>0>>0|s>>>0>>0;d=(i|0)==(P|0)&z>>>0>G>>>0|i>>>0

      >>0;i=(i|0)==(I|0)&v>>>0>>0|i>>>0>I>>>0;d=d+i|0;d=d+e|0;r=s;i=r+h|0;e=d+j|0;f=g;d=i;e=d>>>0>>0?e+1|0:e;h=(e|0)==(j|0)&h>>>0>d>>>0|e>>>0>>0;g=h+m|0;f=h>>>0>g>>>0?f+1|0:f;j=g;g=f;h=d;f=0;i=e;r=(u|0)==(y|0)&w>>>0>>0|u>>>0>y>>>0;m=r;r=r+((u|0)==(D|0)&C>>>0>E>>>0|u>>>0>>0)|0; +e=e+(m>>>0>r>>>0?1:f)|0;f=g;d=d+r|0;e=d>>>0>>0?e+1|0:e;h=(e|0)==(i|0)&d>>>0>>0|e>>>0>>0;g=h;h=h+j|0;f=g>>>0>h>>>0?f+1|0:f;i=f;c:{if(f&65536){t=t+1|0;break c}j=q>>>31|0;g=0;f=i<<1|h>>>31;h=h<<1|e>>>31;i=f;f=e<<1|d>>>31;d=d<<1|c>>>31;e=f;f=q<<1|p>>>31;p=p<<1;q=f;f=c<<1|b>>>31;b=b<<1|j;c=f|g}if((t|0)>=32767){o=o|2147418112;b=0;c=0;break a}d:{if((t|0)<=0){g=1-t|0;if(g>>>0<=127){f=t+127|0;Gi(k+48|0,p,q,b,c,f);Gi(k+32|0,d,e,h,i,f);hr(k+16|0,p,q,b,c,g);hr(k,d,e,h,i,g);p=J[k+32>>2]|J[k+16>>2]|(J[k+ +48>>2]|J[k+56>>2]|(J[k+52>>2]|J[k+60>>2]))!=0;q=J[k+36>>2]|J[k+20>>2];b=J[k+40>>2]|J[k+24>>2];c=J[k+44>>2]|J[k+28>>2];d=J[k>>2];e=J[k+4>>2];g=J[k+8>>2];f=J[k+12>>2];break d}b=0;c=0;break a}g=h;f=i&65535|t<<16}n=g|n;o=f|o;if(!(!b&(c|0)==-2147483648?!(p|q):(c|0)>0|(c|0)>=0)){b=d+1|0;j=b?e:e+1|0;e=o;c=j;d=!(j|b);n=d+n|0;o=d>>>0>n>>>0?e+1|0:e;break a}if(b|p|(c^-2147483648|q)){b=d;c=e;break a}f=e;b=d&1;c=b;b=b+d|0;c=c>>>0>b>>>0?f+1|0:f;d=(f|0)==(c|0)&b>>>0>>0|c>>>0>>0;f=o;n=d+n|0;o=n>>>0>>0?f+ +1|0:f}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=n;J[a+12>>2]=o;fc=k+96|0}function idb(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;var h=0,i=0,j=0,k=0,l=0;h=fc-272|0;fc=h;J[h+264>>2]=0;J[h+268>>2]=0;b=J[b>>2];k=J[b+44>>2];J[h+256>>2]=J[b+40>>2];J[h+260>>2]=k;k=J[b+36>>2];J[h+248>>2]=J[b+32>>2];J[h+252>>2]=k;k=J[b+28>>2];J[h+240>>2]=J[b+24>>2];J[h+244>>2]=k;k=J[b+20>>2];J[h+232>>2]=J[b+16>>2];J[h+236>>2]=k;k=J[b+12>>2];J[h+224>>2]=J[b+8>>2];J[h+228>>2]=k;k=J[b+4>>2];J[h+216>>2]=J[b>>2];J[h+220>> +2]=k;b=h+216|0;xq(b);J[h+172>>2]=b;J[h+168>>2]=f;J[h+164>>2]=e;J[h+160>>2]=d;J[h+152>>2]=c;J[h+156>>2]=c;if((f|0)<0)J[h+156>>2]=P(1-e|0,f)+c;a:{b:{c:{d:{if(!K[a+2912|0]){J[h+148>>2]=h+152;J[h+128>>2]=h+148;J[h+120>>2]=0;J[h+124>>2]=0;J[h+112>>2]=0;J[h+116>>2]=0;J[699344]=0;J[h+104>>2]=0;J[h+108>>2]=0;La(2304,h+104|0,1);b=J[699344];J[699344]=0;e:{f:{if((b|0)!=1){c=J[h+120>>2];l=J[h+112>>2];d=l<<7;if(d){f=c+(d<<1)|0;b=0;while(1){k=c+(d-b<<1)|0;i=(1-+(b>>>0)*.00390625)*16384;i=i+(i<0?-.5:.5);g:{if(R(i)< +2147483648){e=~~i;break g}e=-2147483648}I[k>>1]=e;I[f+(b<<1)>>1]=e;k=b|1;i=(1-+(k>>>0)*.00390625)*16384;i=i+(i<0?-.5:.5);h:{if(R(i)<2147483648){e=~~i;break h}e=-2147483648}I[c+(d-k<<1)>>1]=e;I[f+(k<<1)>>1]=e;b=b+2|0;if((d|0)!=(b|0))continue;break}}I[c>>1]=L[(c+(l<<9)|0)-2>>1];J[h+96>>2]=0;J[h+100>>2]=1072693248;J[h+88>>2]=0;J[h+92>>2]=1072693248;J[h+80>>2]=0;J[h+84>>2]=1080623104;J[h+56>>2]=128;J[h+60>>2]=128;J[h+48>>2]=0;J[h+52>>2]=1071644672;J[h+40>>2]=0;J[h+44>>2]=1071644672;J[h+32>>2]=h+104;J[h+ +28>>2]=h+172;J[h+24>>2]=h+128;J[h+12>>2]=a+1640;J[h+20>>2]=h+24;J[h+16>>2]=h+264;i=O[a+2904>>3]*+(g>>>0)/255;if(R(i+-1)<1.1920928955078125E-7)break f;b=0;c=a+1836|0;while(1){e=c+(b<<2)|0;j=i*(+(b|0)/255);j=(j>1?1:j)*255+.5;i:{if(j<4294967296&j>=0){d=~~j>>>0;break i}d=0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=i*(+(d|0)/255);j=(j>1?1:j)*255+.5;j:{if(j<4294967296&j>=0){d=~~j>>>0;break j}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2305,a|0,a+1704|0,h+12|0);c=J[699344];J[699344]=0;if((c| +0)==1)break e;a=a+1836|0;while(1){d=a+(b<<2)|0;i=+(b|0)/255*255+.5;k:{if(i<4294967296&i>=0){c=~~i>>>0;break k}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;i=+(c|0)/255*255+.5;l:{if(i<4294967296&i>=0){c=~~i>>>0;break l}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break b}break e}J[699344]=0;ca(2305,a|0,a+1704|0,h+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}b=Z()|0;a=J[h+120>>2];if(!a)break d;uc(a);break d}J[h+148>>2]=h+152;J[h+128>>2]=h+148;J[h+120>>2]=0;J[h+124>>2]=0;J[h+112>>2]=0;J[h+116>>2]=0;J[699344]= +0;J[h+104>>2]=0;J[h+108>>2]=0;La(2304,h+104|0,1);b=J[699344];J[699344]=0;m:{n:{if((b|0)!=1){c=J[h+120>>2];l=J[h+112>>2];d=l<<7;if(d){f=c+(d<<1)|0;b=0;while(1){k=c+(d-b<<1)|0;i=(1-+(b>>>0)*.00390625)*16384;i=i+(i<0?-.5:.5);o:{if(R(i)<2147483648){e=~~i;break o}e=-2147483648}I[k>>1]=e;I[f+(b<<1)>>1]=e;k=b|1;i=(1-+(k>>>0)*.00390625)*16384;i=i+(i<0?-.5:.5);p:{if(R(i)<2147483648){e=~~i;break p}e=-2147483648}I[c+(d-k<<1)>>1]=e;I[f+(k<<1)>>1]=e;b=b+2|0;if((d|0)!=(b|0))continue;break}}I[c>>1]=L[(c+(l<<9)| +0)-2>>1];J[h+96>>2]=0;J[h+100>>2]=1072693248;J[h+88>>2]=0;J[h+92>>2]=1072693248;J[h+80>>2]=0;J[h+84>>2]=1080623104;J[h+56>>2]=128;J[h+60>>2]=128;J[h+48>>2]=0;J[h+52>>2]=1071644672;J[h+40>>2]=0;J[h+44>>2]=1071644672;J[h+32>>2]=h+104;J[h+28>>2]=h+172;J[h+24>>2]=h+128;J[h+12>>2]=a+1640;J[h+20>>2]=h+24;J[h+16>>2]=h+264;i=O[a+2904>>3]*+(g>>>0)/255;if(R(i+-1)<1.1920928955078125E-7)break n;b=0;c=a+1836|0;while(1){e=c+(b<<2)|0;j=i*(+(b|0)/255);j=(j>1?1:j)*255+.5;q:{if(j<4294967296&j>=0){d=~~j>>>0;break q}d= +0}J[e>>2]=d;d=b|1;e=c+(d<<2)|0;j=i*(+(d|0)/255);j=(j>1?1:j)*255+.5;r:{if(j<4294967296&j>=0){d=~~j>>>0;break r}d=0}J[e>>2]=d;b=b+2|0;if((b|0)!=256)continue;break}b=0;J[699344]=0;ca(2306,a|0,a+1704|0,h+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break m;a=a+1836|0;while(1){d=a+(b<<2)|0;i=+(b|0)/255*255+.5;s:{if(i<4294967296&i>=0){c=~~i>>>0;break s}c=0}J[d>>2]=c;c=b|1;d=a+(c<<2)|0;i=+(c|0)/255*255+.5;t:{if(i<4294967296&i>=0){c=~~i>>>0;break t}c=0}J[d>>2]=c;b=b+2|0;if((b|0)!=256)continue;break}break c}break m}J[699344]= +0;ca(2306,a|0,a+1704|0,h+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}b=Z()|0;a=J[h+120>>2];if(!a)break d;uc(a)}a=J[h+264>>2];if(a)uc(a);ba(b|0);B()}a=J[h+120>>2];if(!a)break a;uc(a);break a}a=J[h+120>>2];if(!a)break a;uc(a)}a=J[h+264>>2];if(a)uc(a);fc=h+272|0}function Jwa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=fc-16|0;fc=j;c=h<<2;p=c+P(e,3)|0;o=e<<2;d=(o+b|0)+c|0;h=(d+o|0)+c|0;o=(h+o|0)+c|0;q=(P(g,18)|0)/4|0;a:{if((e|f)& +3){if(!f|!e)break a;while(1){g=e;b:{while(1){k=d;l=h;m=o;n=b;c=i;b=K[c+17|0];d=K[c+16|0];c:switch(g-1|0){default:d:switch(f-1|0){default:ie(J[a+68>>2],K[c+15|0],d,b,j+12|0,j+8|0,j+4|0);J[m+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:ie(J[a+68>>2],K[c+11|0],d,b,j+12|0,j+8|0,j+4|0);J[l+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:ie(J[a+68>>2],K[c+7|0],d,b,j+12|0,j+8|0,j+4|0);J[k+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break d}ie(J[a+68>> +2],K[c+3|0],d,b,j+12|0,j+8|0,j+4|0);J[n+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:e:switch(f-1|0){default:ie(J[a+68>>2],K[c+14|0],d,b,j+12|0,j+8|0,j+4|0);J[m+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:ie(J[a+68>>2],K[c+10|0],d,b,j+12|0,j+8|0,j+4|0);J[l+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:ie(J[a+68>>2],K[c+6|0],d,b,j+12|0,j+8|0,j+4|0);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break e}ie(J[a+68>>2],K[c+2|0], +d,b,j+12|0,j+8|0,j+4|0);J[n+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:f:switch(f-1|0){default:ie(J[a+68>>2],K[c+13|0],d,b,j+12|0,j+8|0,j+4|0);J[m+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:ie(J[a+68>>2],K[c+9|0],d,b,j+12|0,j+8|0,j+4|0);J[l+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:ie(J[a+68>>2],K[c+5|0],d,b,j+12|0,j+8|0,j+4|0);J[k+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break f}ie(J[a+68>>2],K[c+1|0],d,b,j+12|0,j+8| +0,j+4|0);J[n+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break c}g:switch(f-1|0){default:ie(J[a+68>>2],K[c+12|0],d,b,j+12|0,j+8|0,j+4|0);J[m>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:ie(J[a+68>>2],K[c+8|0],d,b,j+12|0,j+8|0,j+4|0);J[l>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:ie(J[a+68>>2],K[c+4|0],d,b,j+12|0,j+8|0,j+4|0);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break g}ie(J[a+68>>2],K[c|0],d,b,j+12|0,j+8|0,j+4|0); +J[n>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;if(g>>>0<4)break b;i=c+18|0;o=m+16|0;h=l+16|0;d=k+16|0;b=n+16|0;g=g-4|0;if(g)continue;break}g=4}if(f>>>0<5)break a;b=g<<2;g=p<<2;o=(b+m|0)+g|0;h=g+(b+l|0)|0;d=g+(b+k|0)|0;b=g+(b+n|0)|0;f=f-4|0;i=(c+q|0)+18|0;continue}}if(f>>>0<4)break a;c=e>>>2|0;while(1){g=c;while(1){e=K[i+16|0];k=K[i+17|0];l=j+12|0;m=j+8|0;n=j+4|0;ie(J[a+68>>2],K[i|0],e,k,l,m,n);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+1|0],e,k,l,m,n);J[b+4>> +2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+2|0],e,k,l,m,n);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+3|0],e,k,l,m,n);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+4|0],e,k,l,m,n);J[d>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+5|0],e,k,l,m,n);J[d+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+6|0],e,k,l,m,n);J[d+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216; +ie(J[a+68>>2],K[i+7|0],e,k,l,m,n);J[d+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+8|0],e,k,l,m,n);J[h>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+9|0],e,k,l,m,n);J[h+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+10|0],e,k,l,m,n);J[h+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+11|0],e,k,l,m,n);J[h+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+12|0],e,k,l,m,n);J[o>> +2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+13|0],e,k,l,m,n);J[o+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+14|0],e,k,l,m,n);J[o+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+15|0],e,k,l,m,n);J[o+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+18|0;o=o+16|0;h=h+16|0;d=d+16|0;b=b+16|0;g=g-1|0;if(g)continue;break}i=i+q|0;e=p<<2;o=e+o|0;h=e+h|0;d=d+e|0;b=b+e|0;f=f-4|0;if(f>>>0>3)continue;break}}fc=j+16|0}function dUa(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;c=fc-160|0;fc=c;J[c+144>>2]=13;J[c+128>>2]=13;J[c+112>>2]=13;J[c+96>>2]=13;a:{if(!J[a+100>>2]){f=J[a+8>>2];if(!(kc[J[J[f>>2]+32>>2]](f)|0))break a}e=J[a+20>>2];h=J[b+8>>2];b:{while(1){if(J[e+8>>2]==7){b=c+144|0;if(J[Ec(J[e+16>>2],h,b,0)>>2]!=5)break b;yc(b)}e=J[e+104>>2];if(e)continue;break}J[c>>2]=h;Cc(1,-1,786265,c);break a}if(J[c+144>>2]!=8){e=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];e=kc[J[J[a>> +2]+52>>2]](a)|0}J[c+64>>2]=h;Cc(1,e,835590,c- -64|0);yc(c+144|0);break a}j=J[a+100>>2];b=J[c+152>>2];d=kc[J[J[b>>2]+76>>2]](b)|0;b=c+128|0;Ke(d,835837,b);if(HB(J[J[a>>2]+36>>2],b,c+92|0))J[a+100>>2]=J[a+100>>2]&J[c+92>>2];f=c+128|0;yc(f);b=J[c+152>>2];Ec(kc[J[J[b>>2]+76>>2]](b)|0,836031,f,0);d:{if(J[c+128>>2]==4){e=J[c+136>>2];if(!Ic(e,837906)){b=J[a+8>>2];if(!(kc[J[J[b>>2]+28>>2]](b)|0))break d;e=J[a+20>>2];e:{while(1){if(J[e+8>>2]==7){b=c+96|0;if(J[Ke(J[e+16>>2],h,b)>>2]!=5)break e;yc(b)}e=J[e+ +104>>2];if(e)continue;break}J[c+16>>2]=h;Cc(1,-1,786265,c+16|0)}b=c+96|0;B$(a,b,J[c+152>>2],0);yc(b);break d}if(!Ic(e,838045)){e=J[a+20>>2];f:{while(1){if(J[e+8>>2]==7){b=c+96|0;if(J[Ke(J[e+16>>2],h,b)>>2]!=5)break f;yc(b)}e=J[e+104>>2];if(e)continue;break}J[c+32>>2]=h;Cc(1,-1,786265,c+32|0)}b=J[a+8>>2];g:{if(!(!(kc[J[J[b>>2]+20>>2]](b)|0)|J[c+96>>2]!=9)){if(!J[a+100>>2])break g;h=J[a+8>>2];f=J[c+108>>2];g=J[c+104>>2];J[c+80>>2]=g;J[c+84>>2]=f;b=J[J[h>>2]+320>>2];J[c+24>>2]=g;J[c+28>>2]=f;kc[b|0](h, +c+24|0);break g}h=c+96|0;d=fc-176|0;fc=d;J[d+160>>2]=13;J[d+144>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;h:{if(J[a+96>>2]>100)break h;if(!J[a+100>>2]){b=J[a+8>>2];if(!(kc[J[J[b>>2]+32>>2]](b)|0))break h}b=J[c+152>>2];i=kc[J[J[b>>2]+76>>2]](b)|0;Ec(i,817988,d+32|0,0);b=J[d+32>>2];if(!((b|0)==5|(b|0)==1&J[d+40>>2]==1)){e=-1;b=J[a+108>>2];i:{if(!b)break i;b=J[b+4>>2];if(J[b+8>>2]==13)break i;b=J[b+16>>2];e=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,e,818726,0)}f=d+32|0;yc(f);b=d+144|0;Ec(i,818915, +b,0);j:{k:{if(J[d+144>>2]==6){Sc(J[d+152>>2],0,f,0);O[d+64>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);Sc(J[d+152>>2],1,f,0);O[d+72>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);Sc(J[d+152>>2],2,f,0);O[d+80>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);Sc(J[d+152>>2],3,f,0);O[d+88>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);yc(b);Ec(i,819660,d+160|0,0);if(J[d+160>>2]!=6)break k;Sc(J[d+168>>2],0,f,0);O[d+96>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);Sc(J[d+168>>2],1,f,0);O[d+104>>3]=J[d+ +32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);Sc(J[d+168>>2],2,f,0);O[d+112>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);Sc(J[d+168>>2],3,f,0);O[d+120>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);Sc(J[d+168>>2],4,f,0);O[d+128>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);Sc(J[d+168>>2],5,f,0);O[d+136>>3]=J[d+32>>2]==1?+J[d+40>>2]:O[d+40>>3];yc(f);break j}yc(d+144|0);e=-1;b=J[a+108>>2];l:{if(!b)break l;b=J[b+4>>2];if(J[b+8>>2]==13)break l;b=J[b+16>>2];e=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,e,819424,0);break h}J[d+ +112>>2]=0;J[d+116>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+104>>2]=0;J[d+108>>2]=0;J[d+96>>2]=0;J[d+100>>2]=1072693248;J[d+128>>2]=0;J[d+132>>2]=0;J[d+120>>2]=0;J[d+124>>2]=1072693248}yc(d+160|0);Ec(i,820122,d+48|0,0);f=J[d+48>>2]==7?J[d+56>>2]:0;e=0;if(J[Ec(i,816106,d+32|0,0)>>2]==7){b=Ec(J[d+40>>2],813921,d+16|0,0);g=0;m:{if(J[b>>2]!=4)break m;g=0;if(Ic(J[b+8>>2],841986))break m;b=Ec(J[d+40>>2],840593,d,0);e=J[b>>2]?0:J[d+8>>2];yc(d);b=Ec(J[d+40>>2],816909,d,0);k=J[b>>2]?0:J[d+8>>2];yc(d);g=1}yc(d+ +16|0)}yc(d+32|0);J[a+96>>2]=J[a+96>>2]+1;Jw(a,h,f,d+96|0,d- -64|0,g,0,e,k,0,0,0);J[a+96>>2]=J[a+96>>2]-1;yc(d+48|0)}fc=d+176|0}yc(c+96|0);break d}if(!Ic(e,838339)){if(!J[a+100>>2])break d;b=J[c+152>>2];Ec(kc[J[J[b>>2]+76>>2]](b)|0,838528,c+112|0,0);b=J[a+8>>2];kc[J[J[b>>2]+324>>2]](b,J[c+152>>2],J[c+112>>2]==8?J[c+120>>2]:0);break d}b=-1;g=J[a+108>>2];n:{if(!g)break n;g=J[g+4>>2];if(J[g+8>>2]==13)break n;b=J[g+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0;e=J[c+136>>2]}J[c+48>>2]=e;Cc(1,b,838699,c+48|0);break d}e= +-1;b=J[a+108>>2];o:{if(!b)break o;b=J[b+4>>2];if(J[b+8>>2]==13)break o;b=J[b+16>>2];e=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,e,838830,0)}yc(c+128|0);yc(c+144|0);J[a+100>>2]=j}fc=c+160|0}function rY(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,y=0,z=0;q=fc-16|0;fc=q;J[q+8>>2]=f;r=J[(P(J[d+28>>2],76)+b|0)+28>>2];s=J[d+32>>2];a:{b:{if(J[d+40>>2])break b;o=r+P(s,152)|0;if(!J[o+24>>2])break b;k=o+28|0;while(1){c:{if(J[k+12>>2]==J[k+4>>2]|J[k+8>>2]==J[k>>2])break c;b=J[d+36>> +2];if(b>>>0>=M[k+24>>2]/40>>>0){Nc(i,1,2352859,0);break a}b=J[k+20>>2]+P(b,40)|0;mY(J[b+32>>2]);mY(J[b+36>>2]);m=P(J[b+20>>2],J[b+16>>2]);if(!m)break c;b=J[b+24>>2];if(m>>>0>=8){l=m&-8;j=0;while(1){J[b+36>>2]=0;J[b+40>>2]=0;J[b+456>>2]=0;J[b+460>>2]=0;J[b+396>>2]=0;J[b+400>>2]=0;J[b+336>>2]=0;J[b+340>>2]=0;J[b+276>>2]=0;J[b+280>>2]=0;J[b+216>>2]=0;J[b+220>>2]=0;J[b+156>>2]=0;J[b+160>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;b=b+480|0;j=j+8|0;if((l|0)!=(j|0))continue;break}}j=0;m=m&7;if(!m)break c;while(1){J[b+ +36>>2]=0;J[b+40>>2]=0;b=b+60|0;j=j+1|0;if((m|0)!=(j|0))continue;break}}k=k+36|0;n=n+1|0;if(n>>>0>2])continue;break}}m=f;d:{if(!(K[c|0]&2))break d;if(h>>>0<=5){Nc(i,2,2353302,0);break d}if(!(K[f|0]==255&K[f+1|0]==145)){Nc(i,2,2353696,0);break d}m=f+6|0;J[q+8>>2]=m}l=ef(20);if(!l)break a;e:{if(H[a+96|0]&1){m=J[a+40>>2];o=a+44|0;h=a+40|0;break e}if(K[c+5640|0]&2){m=J[c+5168>>2];o=c+5180|0;h=c+5168|0;break e}J[q+12>>2]=(f+h|0)-m;o=q+12|0;h=q+8|0}a=J[o>>2];J[l+12>>2]=0;J[l+16>>2]=0;J[l+8>>2]=m; +J[l>>2]=m;J[l+4>>2]=a+m;if(!Kn(l,1)){rZ(l);a=J[l+8>>2];b=J[l>>2];Mc(l);b=(a-b|0)+m|0;f:{if(!(K[c|0]&4))break f;if(J[h>>2]+(J[o>>2]-b|0)>>>0<=1){Nc(i,2,2354589,0);break f}if(!(K[b|0]==255&K[b+1|0]==146)){Nc(i,2,2354965,0);break f}b=b+2|0}J[o>>2]=J[o>>2]+(J[h>>2]-b|0);J[h>>2]=b;J[e>>2]=0;J[g>>2]=J[q+8>>2]-f;x=1;break a}v=r+P(s,152)|0;if(J[v+24>>2]){r=v+28|0;while(1){b=J[d+36>>2];k=J[r+20>>2];g:{if(J[r+12>>2]==J[r+4>>2]|J[r+8>>2]==J[r>>2])break g;s=k+P(b,40)|0;y=P(J[s+20>>2],J[s+16>>2]);if(!y)break g; +k=J[s+24>>2];t=0;while(1){h:{i:{if(!J[k+36>>2]){a=kY(l,J[s+32>>2],t,J[d+40>>2]+1|0);break i}a=Kn(l,1)}if(!a){J[k+32>>2]=0;break h}if(!J[k+36>>2]){b=0;while(1){a=b;b=b+1|0;if(!kY(l,J[s+36>>2],t,a))continue;break}b=J[r+28>>2];J[k+28>>2]=3;J[k+24>>2]=(b-a|0)+1}a=1;j:{if(!Kn(l,1))break j;a=2;if(!Kn(l,1))break j;a=Kn(l,2);if((a|0)!=3){a=a+3|0;break j}a=Kn(l,5);if((a|0)!=31){a=a+6|0;break j}a=Kn(l,7)+37|0}J[k+32>>2]=a;b=0;while(1){a=b;b=b+1|0;if(Kn(l,1))continue;break}J[k+28>>2]=a+J[k+28>>2];k:{b=J[k+36>> +2];l:{if(!b){b=J[(J[c+5584>>2]+P(J[d+28>>2],1080)|0)+16>>2];if(!J[k+44>>2]){a=ch(J[k>>2],240);if(!a)break k;J[k>>2]=a;Ac(a+P(J[k+44>>2],24)|0,0,240);J[k+44>>2]=10}a=J[k>>2];J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+12>>2]=b&4?1:b&1?10:109;a=0;break l}j=J[k>>2];a=b-1|0;n=j+P(a,24)|0;if(J[n+4>>2]!=J[n+12>>2])break l;n=J[(J[c+5584>>2]+P(J[d+28>>2],1080)|0)+16>>2];a=J[k+44>>2];if(a>>>0>>0){p=j;j=a+10|0;a=ch(p,P(j,24));if(!a)break k;J[k>>2]=a;Ac(a+P(J[k+44>>2],24)| +0,0,240);J[k+44>>2]=j;j=J[k>>2]}a=P(b,24)+j|0;J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;j=1;m:{if(n&4)break m;j=109;if(!(n&1))break m;j=J[a-12>>2];j=(j|0)==1?2:(j|0)==10?2:1}J[a+12>>2]=j;a=b}n=J[k+32>>2];while(1){w=P(a,24);j=w+J[k>>2]|0;b=J[j+12>>2]-J[j+4>>2]|0;b=(b|0)<(n|0)?b:n;J[j+16>>2]=b;p=J[k+28>>2];j=0;if(b>>>0>=2)while(1){j=j+1|0;u=b>>>0>3;b=b>>>1|0;if(u)continue;break}b=j+p|0;if(b>>>0>=33){J[q>>2]=b;Nc(i,1,2355532,q);break k}j=Kn(l,b);b=J[k>>2];p=w+b|0;J[p+20>> +2]=j;n=n-J[p+16>>2]|0;if((n|0)<=0)break h;u=J[(J[c+5584>>2]+P(J[d+28>>2],1080)|0)+16>>2];j=J[k+44>>2];if(j>>>0>>0){j=j+10|0;b=ch(b,P(j,24));if(!b)break k;J[k>>2]=b;Ac(b+P(J[k+44>>2],24)|0,0,240);J[k+44>>2]=j;b=J[k>>2]}a=a+1|0;j=P(a,24)+b|0;J[j>>2]=0;J[j+4>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;p=1;n:{if(u&4)break n;p=109;if(!(u&1))break n;b=J[(b+w|0)+12>>2];p=(b|0)==1?2:(b|0)==10?2:1}J[j+12>>2]=p;continue}}Mc(l);break a}k=k+60|0;t=t+1|0;if((y|0)!=(t|0))continue;break}}r=r+36| +0;z=z+1|0;if(z>>>0>2])continue;break}}if(!rZ(l)){Mc(l);break a}a=J[l+8>>2];b=J[l>>2];Mc(l);b=(a-b|0)+m|0;o:{if(!(K[c|0]&4))break o;if(J[h>>2]+(J[o>>2]-b|0)>>>0<=1){Nc(i,2,2354589,0);break o}if(!(K[b|0]==255&K[b+1|0]==146)){Nc(i,2,2354965,0);break o}b=b+2|0}J[o>>2]=J[o>>2]+(J[h>>2]-b|0);J[h>>2]=b;x=1;J[e>>2]=1;J[g>>2]=J[q+8>>2]-f}fc=q+16|0;return x}function YX(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=fc-16|0;fc=d;h=1;a:{b:switch((b-a|0)/12|0){case 2:b=b-12|0;if(!(kc[J[c>>2]](b,a)|0))break a; +J[d+8>>2]=J[a+8>>2];c=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[d+8>>2];a=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=a;break a;case 3:f=a+12|0;g=kc[J[c>>2]](f,a)|0;b=b-12|0;e=kc[J[c>>2]](b,f)|0;if(!g){if(!e)break a;J[d+8>>2]=J[f+8>>2];e=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=e;J[f+8>>2]=J[b+8>>2];e=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=e;J[b+8>>2]=J[d+8>>2];e=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=e;if(!(kc[J[c>>2]](f,a)|0))break a;J[d+8>>2]=J[a+ +8>>2];b=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=b;J[a+8>>2]=J[f+8>>2];b=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=b;J[f+8>>2]=J[d+8>>2];a=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=a;break a}if(e){J[d+8>>2]=J[a+8>>2];c=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[d+8>>2];a=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=a;break a}J[d+8>>2]=J[a+8>>2];e=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=e;J[a+8>>2]=J[f+8>>2];e=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=e;J[f+8>>2]=J[d+ +8>>2];a=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=a;if(!(kc[J[c>>2]](b,f)|0))break a;J[d+8>>2]=J[f+8>>2];a=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=a;J[f+8>>2]=J[b+8>>2];a=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=a;J[b+8>>2]=J[d+8>>2];a=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=a;break a;case 4:ow(a,a+12|0,a+24|0,b-12|0,c);break a;case 5:f=a+12|0;e=a+24|0;g=a+36|0;ow(a,f,e,g,c);b=b-12|0;if(!(kc[J[c>>2]](b,g)|0))break a;J[d+8>>2]=J[g+8>>2];i=J[g+4>>2];J[d>>2]=J[g>>2];J[d+4>>2]=i;J[g+8>>2]=J[b+8>>2];i=J[b+4>>2];J[g>>2]= +J[b>>2];J[g+4>>2]=i;J[b+8>>2]=J[d+8>>2];i=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=i;if(!(kc[J[c>>2]](g,e)|0))break a;J[d+8>>2]=J[e+8>>2];b=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=b;J[e+8>>2]=J[g+8>>2];b=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=b;J[g+8>>2]=J[d+8>>2];b=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=b;if(!(kc[J[c>>2]](e,f)|0))break a;J[d+8>>2]=J[f+8>>2];b=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=b;J[f+8>>2]=J[e+8>>2];b=J[e+4>>2];J[f>>2]=J[e>>2];J[f+4>>2]=b;J[e+8>>2]=J[d+8>>2];b=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>> +2]=b;if(!(kc[J[c>>2]](f,a)|0))break a;J[d+8>>2]=J[a+8>>2];b=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=b;J[a+8>>2]=J[f+8>>2];b=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=b;J[f+8>>2]=J[d+8>>2];a=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=a;break a;case 0:case 1:break a;default:break b}e=a+12|0;i=kc[J[c>>2]](e,a)|0;f=a+24|0;g=kc[J[c>>2]](f,e)|0;c:{if(!i){if(!g)break c;J[d+8>>2]=J[e+8>>2];g=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=g;J[e+8>>2]=J[f+8>>2];g=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=g;J[f+8>>2]=J[d+8>>2];g=J[d+4>>2];J[f>> +2]=J[d>>2];J[f+4>>2]=g;if(!(kc[J[c>>2]](e,a)|0))break c;J[d+8>>2]=J[a+8>>2];g=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=g;J[a+8>>2]=J[e+8>>2];g=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=g;J[e+8>>2]=J[d+8>>2];g=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=g;break c}if(g){J[d+8>>2]=J[a+8>>2];e=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=e;J[a+8>>2]=J[f+8>>2];e=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=e;J[f+8>>2]=J[d+8>>2];e=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=e;break c}J[d+8>>2]=J[a+8>>2];g=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=g;J[a+ +8>>2]=J[e+8>>2];g=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=g;J[e+8>>2]=J[d+8>>2];g=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=g;if(!(kc[J[c>>2]](f,e)|0))break c;J[d+8>>2]=J[e+8>>2];g=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=g;J[e+8>>2]=J[f+8>>2];g=J[f+4>>2];J[e>>2]=J[f>>2];J[e+4>>2]=g;J[f+8>>2]=J[d+8>>2];e=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=e}e=a+36|0;if((e|0)==(b|0))break a;i=0;while(1){d:{if(!(kc[J[c>>2]](e,f)|0))break d;J[d+8>>2]=J[e+8>>2];h=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=h;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]= +0;g=e;e:{f:{while(1){h=f;if(H[g+11|0]<0)uc(J[g>>2]);f=J[h+4>>2];J[g>>2]=J[h>>2];J[g+4>>2]=f;J[g+8>>2]=J[h+8>>2];H[h+11|0]=0;J[h>>2]=0;if((a|0)==(h|0)){h=a;break f}f=J[c>>2];J[699344]=0;g=f;f=h-12|0;j=aa(g|0,d|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;g=h;if(j)continue;break}if(H[g+11|0]>=0)break f;uc(J[g>>2])}f=J[d+4>>2];J[h>>2]=J[d>>2];J[h+4>>2]=f;J[h+8>>2]=J[d+8>>2];i=i+1|0;if((i|0)!=8)break d;h=(e+12|0)==(b|0);break a}a=Z()|0;if(H[d+11|0]<0)uc(J[d>>2]);ba(a|0);B()}f=e;e=f+12|0;if((e| +0)!=(b|0))continue;break}h=1}fc=d+16|0;return h}function wy(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;Be(b,Fc(b)<<1);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{if(!Fc(b)){if((Fc(b)|0)!=1198679150)break Q;h=Fc(b);R:{if(!h)break R;while(1){if(Fc(b))break P;c=Fc(b);d=Fc(b);S:{T:{U:{V:{W:{X:{if((c|0)<=1231975537){if((c|0)==1131180659)break V;if((c|0)==1198679110)break X;break a}if((c|0)==1231975538)break W;if((c|0)==1416785523)break U; +if((c|0)!=1315774496)break a;if((d|0)!=1413830740)break O;c=Fc(b);J[a+4>>2]=c;c=Dc(c<<1);J[a+8>>2]=c;if(!c)break R;Ac(c,0,J[a+4>>2]<<1);gf(b,J[a+8>>2],J[a+4>>2]<<1);break S}if((d|0)!=1701737837)break N;if(Fc(b))break M;if((Fc(b)|0)!=1198679110)break L;if(Fc(b))break K;if((Fc(b)|0)==1131639891)break S;fa(225368,219859,941,225288);B()}if((d|0)!=1685026146)break J;g=me(b);if(!(R(g)<2147483648))break T;J[a>>2]=~~g;break S}if((d|0)!=1449938035)break I;c=Fc(b);I[a+12>>1]=c;d=Dc(c<<16>>12);J[a+16>>2]=d; +if(!d)break R;c=0;Ac(d,0,I[a+12>>1]<<4);if(I[a+12>>1]<=0)break S;while(1){if((Fc(b)|0)!=1331849827)break H;Be(b,Fc(b)<<1);if(Fc(b))break G;if((Fc(b)|0)!=1131180660)break F;if((Fc(b)|0)!=4)break E;if(Fc(b))break D;if((Fc(b)|0)!=1131180576)break C;if((Fc(b)|0)!=1331849827)break B;e=hn(b);d=c<<4;J[(d+J[a+16>>2]|0)+8>>2]=e;if(Fc(b))break A;if((Fc(b)|0)!=1417244773)break z;if((Fc(b)|0)!=1701737837)break y;if(Fc(b))break x;Fc(b);if(Fc(b))break w;e=Fc(b);Y:{if((e|0)!=1433629267){f=0;if((e|0)==1181902659)break Y; +f=1;if((e|0)==1113811779)break Y;fa(219546,219859,1042,225288);B()}f=2}e=f;J[(d+J[a+16>>2]|0)+12>>2]=e;if(Fc(b))break v;if((Fc(b)|0)!=1281586286)break u;if((Fc(b)|0)!=1819242087)break t;e=Fc(b);J[d+J[a+16>>2]>>2]=e;if(Fc(b))break s;if((Fc(b)|0)!=1298428014)break r;if((Fc(b)|0)!=1819242087)break q;e=Fc(b);J[(d+J[a+16>>2]|0)+4>>2]=e;c=c+1|0;if((c|0)>1])continue;break}break S}if((d|0)!=1449938035)break p;c=Fc(b);I[a+20>>1]=c;d=Dc(P(c<<16>>16,12));J[a+24>>2]=d;if(!d)break R;c=0;Ac(d,0,P(I[a+20>> +1],12));if(I[a+20>>1]<=0)break S;while(1){if((Fc(b)|0)!=1331849827)break o;Be(b,Fc(b)<<1);if(Fc(b))break n;if((Fc(b)|0)!=1416785491)break m;if((Fc(b)|0)!=3)break l;if(Fc(b))break k;if((Fc(b)|0)!=1332765556)break j;if((Fc(b)|0)!=1433302086)break i;if((Fc(b)|0)!=592474723)break h;g=me(b);d=P(c,12);f=d+J[a+24>>2]|0;if(R(g)<2147483648)e=~~g;else e=-2147483648;I[f+8>>1]=e;if(Fc(b))break g;if((Fc(b)|0)!=1281586286)break f;if((Fc(b)|0)!=1819242087)break e;e=Fc(b);J[d+J[a+24>>2]>>2]=e;if(Fc(b))break d;if((Fc(b)| +0)!=1298428014)break c;if((Fc(b)|0)!=1819242087)break b;e=Fc(b);J[(d+J[a+24>>2]|0)+4>>2]=e;c=c+1|0;if((c|0)>1])continue;break}break S}J[a>>2]=-2147483648}h=h-1|0;if(h)continue;break}}return}fa(221278,219859,885,225288);B()}fa(225325,219859,888,225288);B()}fa(221278,219859,896,225288);B()}fa(224432,219859,912,225288);B()}fa(225339,219859,926,225288);B()}fa(221278,219859,931,225288);B()}fa(225354,219859,934,225288);B()}fa(221278,219859,939,225288);B()}fa(225059,219859,946,225288);B()}fa(224932, +219859,954,225288);B()}fa(224975,219859,972,225288);B()}fa(221278,219859,981,225288);B()}fa(225382,219859,984,225288);B()}fa(225396,219859,989,225288);B()}fa(221278,219859,992,225288);B()}fa(225413,219859,994,225288);B()}fa(224975,219859,999,225288);B()}fa(221278,219859,1007,225288);B()}fa(225427,219859,1010,225288);B()}fa(225339,219859,1015,225288);B()}fa(221278,219859,1020,225288);B()}fa(221278,219859,1028,225288);B()}fa(221278,219859,1050,225288);B()}fa(225441,219859,1053,225288);B()}fa(225455, +219859,1058,225288);B()}fa(221278,219859,1066,225288);B()}fa(225470,219859,1069,225288);B()}fa(225455,219859,1074,225288);B()}fa(224932,219859,1082,225288);B()}fa(224975,219859,1101,225288);B()}fa(221278,219859,1110,225288);B()}fa(225484,219859,1113,225288);B()}fa(225498,219859,1118,225288);B()}fa(221278,219859,1124,225288);B()}fa(225515,219859,1127,225288);B()}fa(225529,219859,1132,225288);B()}fa(225544,219859,1136,225288);B()}fa(221278,219859,1145,225288);B()}fa(225441,219859,1148,225288);B()}fa(225455, +219859,1153,225288);B()}fa(221278,219859,1161,225288);B()}fa(225470,219859,1164,225288);B()}fa(225455,219859,1169,225288);B()}fa(219546,219859,1176,225288);B()}function oqb(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,y=0,z=0,A=0,B=0;n=fc-416|0;fc=n;z=J[b+92>>2];J[a+40>>2]=L[b+68>>1];if(!_D(b)){Z8(a,b);c=(J[J[a>>2]+12>>2]<<3)+237264|0;f=J[c>>2];if((f|0)!=5531){A=a+7720|0;B=a+44|0;while(1){t=c;g=f+231728|0;c=K[g|0];a:{if(!c)break a;s= +L[t+4>>1];w=s&2;u=w?B:A;o=1;x=s&1;q=0;r=0;while(1){d=c&255;if((d|0)!=32){b:{c:{if((d|0)==124){g=g+1|0;break c}while(1){d=K[g|0];g=g+1|0;if((d|0)==32)continue;break}if(d<<24>>24<0){c=d>>>0<240;e=d>>>0<224;f=e?1:c?2:3;d=(e?31:c?15:7)&d;e=0;c=g;while(1){d=K[c|0]&63|d<<6;c=c+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}g=f+g|0}f=0;while(1){c=K[g|0];if((c|32)!=32){g=g+1|0;f=c;if(c<<24>>24>=0)continue;c=c>>>0<240;e=f>>>0<224;m=e?1:c?2:3;f=(e?31:c?15:7)&f;e=0;c=g;while(1){f=K[c|0]&63|f<<6;c=c+1|0;e=e+1|0; +if((m|0)!=(e|0))continue;break}g=g+m|0;continue}break}if(f)break b;d=Gh(J[J[a+36>>2]>>2],d);if(!d)break b;if(lp(b,d,1))break b;d=J[b+84>>2];if(I[d+110>>1]<3)break b;v=I[d+108>>1];d:{if((v|0)<=0){c=0;break d}y=J[d+120>>2];m=J[d+112>>2];f=-1;d=0;c=0;l=0;if(!w)while(1){i=I[(l<<1)+y>>1];e:{if((i|0)<=(d|0))break e;if(x){if((i-d|0)+1&1){e=J[(m+(d<<3)|0)+4>>2];h=(e|0)>(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break e;while(1){h=J[(m+(e<<3)|0)+4>>2];k=(h|0)>(c|0);p=(f|0)<0; +f=p?e:k?e:f;d=e+1|0;j=J[(m+(d<<3)|0)+4>>2];h=p?h:k?h:c;c=(j|0)>(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}break e}if((i-d|0)+1&1){e=J[(m+(d<<3)|0)+4>>2];h=(e|0)<(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break e;while(1){h=J[(m+(e<<3)|0)+4>>2];k=(h|0)<(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[(m+(d<<3)|0)+4>>2];h=p?h:k?h:c;c=(j|0)<(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}}d=i+1|0;l=l+1|0;if((v|0)!= +(l|0))continue;break d}while(1){i=I[(l<<1)+y>>1];f:{if((i|0)<=(d|0))break f;if(x){if((i-d|0)+1&1){e=J[m+(d<<3)>>2];h=(e|0)>(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d|0)==(i|0))break f;while(1){h=J[m+(e<<3)>>2];k=(h|0)>(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[m+(d<<3)>>2];h=p?h:k?h:c;c=(j|0)>(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}break f}if((i-d|0)+1&1){e=J[m+(d<<3)>>2];h=(e|0)<(c|0);j=(f|0)<0;f=j?d:h?d:f;c=j?e:h?e:c;e=d+1|0}else e=d;if((d| +0)==(i|0))break f;while(1){h=J[m+(e<<3)>>2];k=(h|0)<(c|0);p=(f|0)<0;f=p?e:k?e:f;d=e+1|0;j=J[m+(d<<3)>>2];h=p?h:k?h:c;c=(j|0)<(h|0);k=(f|0)<0;f=k?d:c?d:f;c=k?j:c?j:h;e=e+2|0;if((d|0)!=(i|0))continue;break}}d=i+1|0;l=l+1|0;if((v|0)!=(l|0))continue;break}}if(o){J[(n+208|0)+(q<<2)>>2]=c;q=q+1|0;break b}J[(r<<2)+n>>2]=c;r=r+1|0}o=0}c=K[g|0];if(c)continue;if(!(q|r))break a;g:{if(q>>>0<2)break g;d=1;c=q-1|0;f=c&1;if((q|0)!=2){m=c&-2;e=0;while(1){c=d;while(1){g=(n+208|0)+(c<<2)|0;i=J[g>>2];l=g-4|0;o=J[l>> +2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}c=d+1|0;while(1){g=(n+208|0)+(c<<2)|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}d=d+2|0;e=e+2|0;if((m|0)!=(e|0))continue;break}}if(!f)break g;while(1){c=(n+208|0)+(d<<2)|0;e=J[c>>2];g=c-4|0;f=J[g>>2];if((e|0)>=(f|0))break g;J[c>>2]=f;J[g>>2]=e;d=d-1|0;if(d)continue;break}}h:{if(r>>>0<2)break h;d=1;c=r-1|0;f=c&1;if((r|0)!=2){m=c&-2;e=0;while(1){c=d;while(1){g=(c<<2)+n|0;i=J[g>>2];l= +g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}c=d+1|0;while(1){g=(c<<2)+n|0;i=J[g>>2];l=g-4|0;o=J[l>>2];if((i|0)<(o|0)){J[g>>2]=o;J[l>>2]=i;c=c-1|0;if(c)continue}break}d=d+2|0;e=e+2|0;if((m|0)!=(e|0))continue;break}}if(!f)break h;while(1){c=(d<<2)+n|0;e=J[c>>2];g=c-4|0;f=J[g>>2];if((e|0)>=(f|0))break h;J[c>>2]=f;J[g>>2]=e;d=d-1|0;if(d)continue;break}}d=J[u+216>>2];J[u+216>>2]=d+1;d=P(d,28)+u|0;c=J[(n+208|0)+(q<<1&-4)>>2];i:{j:{if(!r)break j;c=J[(r<<1&-4)+n>>2];if(!q)break j; +c=J[(n+208|0)+(q<<1&-4)>>2];J[d+220>>2]=c;e=J[(r<<1&-4)+n>>2];J[d+232>>2]=e;if(((c|0)<=(e|0)^s)&1|(c|0)==(e|0))break i;c=(c+e|0)/2|0}J[d+232>>2]=c;J[d+220>>2]=c}J[d+244>>2]=s<<1&2}else{c=K[g+1|0];g=g+1|0;continue}break}}c=t+8|0;f=J[t+8>>2];if((f|0)!=5531)continue;break}}Y8(a)}ls(b,z);fc=n+416|0;return 0}function dia(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;h=fc-16|0;fc=h;J[h+12>>2]=b;J[e>>2]=0;i=J[d+28>>2];J[h>>2]=i;J[i+4>>2]=J[i+4>>2]+1;J[699344]= +0;i=_(6826,h|0)|0;j=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((j|0)!=1){j=J[h>>2];k=J[j+4>>2]-1|0;J[j+4>>2]=k;if((k|0)==-1)kc[J[J[j>>2]+8>>2]](j);switch(g-65|0){case 54:break j;case 19:break k;case 18:break l;case 17:break m;case 49:break n;case 47:break o;case 45:case 51:break p;case 12:break q;case 44:break r;case 41:break s;case 8:break t;case 7:break u;case 5:break v;case 3:break w;case 35:case 36:break x;case 34:break y;case 1:case 33:case 39:break z; +case 0:case 32:break A;case 2:case 4:case 6:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 20:case 21:case 22:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 37:case 38:case 40:case 42:case 43:case 46:case 48:case 50:case 52:case 53:break d;case 24:break f;case 56:break g;case 23:break h;case 55:break i;default:break e}}c=Z()|0;a=J[h>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}DR(a,f+24|0,h+12|0,c,e,i);break b}CR(a,f+16|0,h+12|0,c,e,i); +break b}b=kc[J[J[a+8>>2]+12>>2]](a+8|0)|0;g=a;j=J[h+12>>2];a=b;B:{if(K[a+11|0]>>>7|0){b=J[a>>2];break B}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;l=h,m=vo(g,j,c,d,e,f,i,b+a|0),J[l+12>>2]=m;break b}a=xn(h+12|0,c,e,i,2);b=J[e>>2];C:{if(!(a-1>>>0>30|b&4)){J[f+12>>2]=a;break C}J[e>>2]=b|4}break b}J[h>>2]=623865125;J[h+4>>2]=2032480100;l=h,m=vo(a,b,c,d,e,f,h,h+8|0),J[l+12>>2]=m;break b}J[h>>2]=623728933;J[h+4>>2]=1680158061;l=h,m=vo(a,b,c,d,e,f,h, +h+8|0),J[l+12>>2]=m;break b}a=xn(h+12|0,c,e,i,2);b=J[e>>2];D:{if(!((a|0)>23|b&4)){J[f+8>>2]=a;break D}J[e>>2]=b|4}break b}a=xn(h+12|0,c,e,i,2);b=J[e>>2];E:{if(!(a-1>>>0>11|b&4)){J[f+8>>2]=a;break E}J[e>>2]=b|4}break b}a=xn(h+12|0,c,e,i,3);b=J[e>>2];F:{if(!((a|0)>365|b&4)){J[f+28>>2]=a;break F}J[e>>2]=b|4}break b}b=xn(h+12|0,c,e,i,2)-1|0;a=J[e>>2];G:{if(!(b>>>0>11|a&4)){J[f+16>>2]=b;break G}J[e>>2]=a|4}break b}a=xn(h+12|0,c,e,i,2);b=J[e>>2];H:{if(!((a|0)>59|b&4)){J[f+4>>2]=a;break H}J[e>>2]=b|4}break b}a= +h+12|0;b=fc-16|0;fc=b;J[b+12>>2]=c;while(1){I:{if(nl(a,b+12|0))break I;c=gr(a);if((c|0)>=0)c=J[J[i+8>>2]+((c&255)<<2)>>2]&1;else c=0;if(!c)break I;Xs(a);continue}break}if(nl(a,b+12|0))J[e>>2]=J[e>>2]|2;fc=b+16|0;break b}g=h+12|0;b=kc[J[J[a+8>>2]+8>>2]](a+8|0)|0;J:{if(K[b+11|0]>>>7|0){a=J[b+4>>2];break J}a=K[b+11|0]&127}if(K[b+23|0]>>>7|0)d=J[b+16>>2];else d=K[b+23|0]&127;K:{if((a|0)==(0-d|0)){J[e>>2]=J[e>>2]|4;break K}c=mz(g,c,b,b+24|0,i,e,0);a=J[f+8>>2];if(!((c|0)!=(b|0)|(a|0)!=12)){J[f+8>>2]=0; +break K}if(!((c-b|0)!=12|(a|0)>11))J[f+8>>2]=a+12}break b}g=K[2632792]|K[2632793]<<8|(K[2632794]<<16|K[2632795]<<24);H[h+7|0]=g;H[h+8|0]=g>>>8;H[h+9|0]=g>>>16;H[h+10|0]=g>>>24;g=K[2632789]|K[2632790]<<8|(K[2632791]<<16|K[2632792]<<24);J[h>>2]=K[2632785]|K[2632786]<<8|(K[2632787]<<16|K[2632788]<<24);J[h+4>>2]=g;l=h,m=vo(a,b,c,d,e,f,h,h+11|0),J[l+12>>2]=m;break b}H[h+4|0]=K[2632800];J[h>>2]=K[2632796]|K[2632797]<<8|(K[2632798]<<16|K[2632799]<<24);l=h,m=vo(a,b,c,d,e,f,h,h+5|0),J[l+12>>2]=m;break b}a= +xn(h+12|0,c,e,i,2);b=J[e>>2];L:{if(!((a|0)>60|b&4)){J[f>>2]=a;break L}J[e>>2]=b|4}break b}J[h>>2]=624576549;J[h+4>>2]=1394948685;l=h,m=vo(a,b,c,d,e,f,h,h+8|0),J[l+12>>2]=m;break b}a=xn(h+12|0,c,e,i,1);b=J[e>>2];M:{if(!((a|0)>6|b&4)){J[f+24>>2]=a;break M}J[e>>2]=b|4}break b}a=kc[J[J[a>>2]+20>>2]](a,b,c,d,e,f)|0;break a}b=kc[J[J[a+8>>2]+24>>2]](a+8|0)|0;g=a;j=J[h+12>>2];a=b;N:{if(K[a+11|0]>>>7|0){b=J[a>>2];break N}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+ +11|0]&127;l=h,m=vo(g,j,c,d,e,f,i,b+a|0),J[l+12>>2]=m;break b}BR(f+20|0,h+12|0,c,e,i);break b}a=xn(h+12|0,c,e,i,4);if(!(K[e|0]&4))J[f+20>>2]=a-1900;break b}if((g|0)==37)break c}J[e>>2]=J[e>>2]|4;break b}a=fc-16|0;fc=a;J[a+12>>2]=c;b=6;c=h+12|0;d=a+12|0;O:{P:{if(nl(c,d))break P;b=4;if(((m=i,n=gr(c),o=0,l=J[J[i>>2]+36>>2],kc[l](m|0,n|0,o|0)|0)|0)!=37)break P;b=2;if(!nl(Xs(c),d))break O}J[e>>2]=J[e>>2]|b}fc=a+16|0}a=J[h+12>>2]}fc=h+16|0;return a|0}function H2(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;k=fc-16|0;fc=k;if(a){if(J[a+56>>2]==1)d=vL(a);l=J[a+65792>>2];i=vq(a,J[a+44>>2]);m=jc;a:{if(d)break a;c=J[a+48>>2];if(!c){d=0;break a}d=0;while(1){e=J[c+8>>2];b=-1;b:{if(d)break b;if(!e){e=0;b=0;break b}d=kc[J[a+8>>2]](J[a+28>>2],J[a+44>>2],c+16|0,e)|0;e=J[c+8>>2];b=(d|0)!=(e|0)?-1:0}d=b;h=e+h|0;c=J[c>>2];if(c)continue;break}}c=J[a+48>>2];if(c)while(1){b=J[c>>2];uc(c);c=b;if(b)continue;break}J[a+48>>2]=0;J[a+52>>2]=0;c=J[a+65776>>2];b=i-c|0;if(!((J[a+65780>>2]+(c>>>0>i>>>0)| +0)==(m|0)&(b|0)!=-1&(!J[a+65788>>2]&M[a+65784>>2]<65536))){c=vq(a,J[a+44>>2]);n=jc;b=fc-16|0;fc=b;e=J[a+44>>2];H[b+8|0]=80;H[b+9|0]=75;H[b+10|0]=6;H[b+11|0]=6;g=e;e=b+8|0;c:{if((kc[J[a+8>>2]](J[a+28>>2],g,e,4)|0)!=4)break c;f=J[a+44>>2];H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+8|0]=44;if((kc[J[a+8>>2]](J[a+28>>2],f,e,8)|0)!=8)break c;f=J[a+44>>2];H[b+8|0]=45;H[b+9|0]=0;if((kc[J[a+8>>2]](J[a+28>>2],f,e,2)|0)!=2)break c;f=J[a+44>>2];H[b+8|0]= +45;H[b+9|0]=0;if((kc[J[a+8>>2]](J[a+28>>2],f,e,2)|0)!=2)break c;f=J[a+44>>2];J[b+8>>2]=0;if((kc[J[a+8>>2]](J[a+28>>2],f,e,4)|0)!=4)break c;f=J[a+44>>2];J[b+8>>2]=0;if((kc[J[a+8>>2]](J[a+28>>2],f,e,4)|0)!=4)break c;j=J[a+44>>2];f=J[a+65788>>2];g=J[a+65784>>2];H[b+8|0]=g;H[b+9|0]=g>>>8;H[b+10|0]=g>>>16;H[b+11|0]=g>>>24;H[b+12|0]=f;H[b+13|0]=f>>>8;H[b+14|0]=f>>>16;H[b+15|0]=f>>>24;if((kc[J[a+8>>2]](J[a+28>>2],j,e,8)|0)!=8)break c;j=J[a+44>>2];f=J[a+65788>>2];g=J[a+65784>>2];H[b+8|0]=g;H[b+9|0]=g>>>8; +H[b+10|0]=g>>>16;H[b+11|0]=g>>>24;H[b+12|0]=f;H[b+13|0]=f>>>8;H[b+14|0]=f>>>16;H[b+15|0]=f>>>24;if((kc[J[a+8>>2]](J[a+28>>2],j,e,8)|0)!=8)break c;f=J[a+44>>2];H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;H[b+8|0]=h;H[b+11|0]=h>>>24;H[b+10|0]=h>>>16;H[b+9|0]=h>>>8;if((kc[J[a+8>>2]](J[a+28>>2],f,e,8)|0)!=8)break c;j=J[a+44>>2];g=J[a+65776>>2];f=i-g|0;g=m-(J[a+65780>>2]+(g>>>0>i>>>0)|0)|0;H[b+8|0]=f;H[b+9|0]=f>>>8;H[b+10|0]=f>>>16;H[b+11|0]=f>>>24;H[b+12|0]=g;H[b+13|0]=g>>>8;H[b+14|0]=g>>>16;H[b+ +15|0]=g>>>24;kc[J[a+8>>2]](J[a+28>>2],j,e,8)|0}fc=b+16|0;b=fc-16|0;fc=b;g=J[a+65776>>2];j=J[a+65780>>2];e=J[a+44>>2];H[b+8|0]=80;H[b+9|0]=75;H[b+10|0]=6;H[b+11|0]=7;f=b+8|0;d:{if((kc[J[a+8>>2]](J[a+28>>2],e,f,4)|0)!=4)break d;e=J[a+44>>2];J[b+8>>2]=0;if((kc[J[a+8>>2]](J[a+28>>2],e,f,4)|0)!=4)break d;o=J[a+44>>2];e=c-g|0;H[b+8|0]=e;H[b+9|0]=e>>>8;H[b+10|0]=e>>>16;H[b+11|0]=e>>>24;c=n-((c>>>0>>0)+j|0)|0;H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;if((kc[J[a+8>>2]](J[a+28>>2],o, +f,8)|0)!=8)break d;c=J[a+44>>2];H[b+8|0]=1;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;kc[J[a+8>>2]](J[a+28>>2],c,f,4)|0}fc=b+16|0}e:{if(d)break e;d=fc-16|0;fc=d;c=J[a+44>>2];H[d+8|0]=80;H[d+9|0]=75;H[d+10|0]=5;H[d+11|0]=6;e=-1;b=c;g=d+8|0;c=g;f:{if((kc[J[a+8>>2]](J[a+28>>2],b,c,4)|0)!=4)break f;b=J[a+44>>2];I[d+8>>1]=0;if((kc[J[a+8>>2]](J[a+28>>2],b,c,2)|0)!=2)break f;b=J[a+44>>2];I[d+8>>1]=0;if((kc[J[a+8>>2]](J[a+28>>2],b,c,2)|0)!=2)break f;b=J[a+44>>2];f=J[a+65788>>2];c=J[a+65784>>2];g:{if(!f&c>>>0>=65535| +f){H[d+8|0]=255;H[d+9|0]=255;c=kc[J[a+8>>2]](J[a+28>>2],b,g,2)|0;break g}H[d+8|0]=c;H[d+9|0]=c>>>8;c=kc[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0}if((c|0)!=2)break f;b=J[a+44>>2];f=J[a+65788>>2];c=J[a+65784>>2];h:{if(!f&c>>>0>=65535|f){H[d+8|0]=255;H[d+9|0]=255;c=kc[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0;break h}H[d+8|0]=c;H[d+9|0]=c>>>8;c=kc[J[a+8>>2]](J[a+28>>2],b,d+8|0,2)|0}if((c|0)!=2)break f;c=J[a+44>>2];H[d+8|0]=h;H[d+9|0]=h>>>8;H[d+10|0]=h>>>16;H[d+11|0]=h>>>24;h=d+8|0;if((kc[J[a+8>>2]](J[a+28>>2],c, +h,4)|0)!=4)break f;b=J[a+44>>2];e=J[a+65776>>2];c=i-e|0;i=m-(J[a+65780>>2]+(e>>>0>i>>>0)|0)|0;if(!i&(c|0)==-1|i){J[d+8>>2]=-1;e=(kc[J[a+8>>2]](J[a+28>>2],b,h,4)|0)!=4?-1:0;break f}H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;e=(kc[J[a+8>>2]](J[a+28>>2],b,d+8|0,4)|0)!=4?-1:0}fc=d+16|0;if(e)break e;i:{if(!l){e=J[a+44>>2];c=0;I[k+8>>1]=0;break i}e=J[a+44>>2];c=Yc(l);I[k+8>>1]=c;if(c>>>0<65536)break i;I[k+8>>1]=65535}if(!(!c|(kc[J[a+8>>2]](J[a+28>>2],e,k+8|0,2)|0)!=2))kc[J[a+8>>2]](J[a+ +28>>2],J[a+44>>2],l,c)|0}kc[J[a+20>>2]](J[a+28>>2],J[a+44>>2])|0;c=J[a+65792>>2];if(c)uc(c);uc(a)}fc=k+16|0}function zQ(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;j=2640272;g=fc-144|0;fc=g;J[g+140>>2]=2640272;t=d-192|0;s=c-768|0;a:{b:{c:{d:while(1){o=61;if((m^2147483647)<(f|0))break c;m=f+m|0;e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{e=j;f=J[e>>2];if(f)while(1){p:{q:{if(!f){h=e;break q}if((f|0)!=37)break p;f=e;while(1){if(J[f+4>>2]!=37){h=f;break q}e=e+4|0;i=J[f+8>>2];h=f+ +8|0;f=h;if((i|0)==37)continue;break}}f=e-j>>2;if((f|0)>(m^2147483647))break c;if(a)bz(a,j,f);e=(e|0)!=(j|0);j=h;if(e)continue d;e=h+4|0;i=-1;j=J[h+4>>2];f=j-48|0;if(!(J[h+8>>2]!=36|f>>>0>9)){j=J[h+12>>2];p=1;i=f;e=h+12|0}n=0;f=j-32|0;if(f>>>0<=31){f=1<>2];f=j-32|0;if(f>>>0>=32)break r;e=h;f=1<>2]=e;break n}f=J[e+4>>2];e=e+4|0;continue}f=m;if(a)break a;if(!p)break j;e=1;while(1){a=J[(e<<2)+d>> +2];if(a){yQ((e<<4)+c|0,a,b);f=1;e=e+1|0;if((e|0)!=10)continue;break a}break}f=1;if(e>>>0>=10)break a;while(1){if(J[(e<<2)+d>>2])break b;e=e+1|0;if((e|0)!=10)continue;break}break a}J[g+140>>2]=e;if((j|0)!=42)break n;f=J[e+4>>2]-48|0;if(J[e+8>>2]!=36|f>>>0>9)break m;J[(f<<2)+d>>2]=10;f=e+12|0;p=1;k=J[(J[e+4>>2]<<4)+s>>2];break l}k=xQ(g+140|0);if((k|0)<0)break c;f=J[g+140>>2];break k}if(p)break e;f=e+4|0;if(!a){p=0;k=0;break k}e=J[b>>2];J[b>>2]=e+4;p=0;k=J[e>>2]}if((k|0)>=0)break k;k=0-k|0;n=n|8192}e= +0;l=-1;s:{if(J[f>>2]!=46){j=f;q=0;break s}if(J[f+4>>2]==42){j=J[f+8>>2];t:{if(!(J[f+12>>2]!=36|j-48>>>0>=10)){J[(j<<2)+t>>2]=10;j=f+16|0;l=J[(J[f+8>>2]<<4)+s>>2];break t}if(p)break e;j=f+8|0;l=0;if(!a)break t;f=J[b>>2];J[b>>2]=f+4;l=J[f>>2]}q=(l|0)>=0;break s}J[g+140>>2]=f+4;l=xQ(g+140|0);j=J[g+140>>2];q=1}while(1){h=e;o=28;r=j;f=J[j>>2];if(f-123>>>0<4294967238)break c;j=j+4|0;e=K[(f+P(e,58)|0)+2639727|0];if(e-1>>>0<8)continue;break}J[g+140>>2]=j;if((e|0)==27)break h;if(!e)break c;if((i|0)>=0){J[(i<< +2)+d>>2]=e;e=(i<<4)+c|0;f=J[e+12>>2];J[g+128>>2]=J[e+8>>2];J[g+132>>2]=f;f=J[e+4>>2];J[g+120>>2]=J[e>>2];J[g+124>>2]=f;break g}if(a)break i}f=0;break a}yQ(g+120|0,e,b);break f}if((i|0)>=0)break c}f=0;if(!a)continue}f=-1;if(K[a|0]&32)break a;u:{v:{w:{x:{y:{e=J[r>>2];e=h?(e&15)==3?e&-33:e:e;if((e|0)<=108){i=(e|0)==67;if(!i){if((e|0)==83)break y;if((e|0)!=99)break u}f=(k|0)<=1?1:k;k=f-1|0;Ms(a,k,n);e=J[g+120>>2];if(!i){h=e&255;if(h>>>0>=128)h=(e|0)==-1?-1:J[J[698634]>>2]?-1:e<<24>>24&57343;e=h}J[g+88>> +2]=e;bz(a,g+88|0,1);Ms(a,k,n^8192);continue}z:switch(e-109|0){case 6:break w;case 0:break x;case 1:break z;default:break u}f=0;A:switch(h&255){case 0:J[J[g+120>>2]>>2]=m;continue;case 1:J[J[g+120>>2]>>2]=m;continue;case 2:e=J[g+120>>2];J[e>>2]=m;J[e+4>>2]=m>>31;continue;case 3:I[J[g+120>>2]>>1]=m;continue;case 4:H[J[g+120>>2]]=m;continue;case 6:J[J[g+120>>2]>>2]=m;continue;case 7:break A;default:continue}e=J[g+120>>2];J[e>>2]=m;J[e+4>>2]=m>>31;continue}h=J[g+120>>2];e=h;f=l>>>0>=2147483647?2147483647: +l;i=og(e,0,f);e=i?i-e>>2:f;if((l|0)<0){o=61;if(J[h+(e<<2)>>2])break c}f=(e|0)<(k|0)?k:e;i=f-e|0;Ms(a,i,n);bz(a,h,e);Ms(a,i,n^8192);continue}i=um(J[698583]);J[g+120>>2]=i;break v}i=J[g+120>>2]}if(!i){J[g+120>>2]=28944;i=28944}B:{if(!l){e=0;break B}q=l>>>0>=2147483647?2147483647:l;e=0;h=i;C:{D:{while(1){r=Mp(g+92|0,h,4);if((r|0)<=0)break D;h=h+r|0;e=e+1|0;if((q|0)!=(e|0))continue;break}e=q;break C}if((r|0)<0)break a}if((l|0)>=0)break B;o=61;if(K[h|0])break c}f=(e|0)<(k|0)?k:e;h=f-e|0;Ms(a,h,n);if(e)while(1){k= +g+92|0;l=Mp(k,i,4);bz(a,k,1);i=i+l|0;e=e-1|0;if(e)continue;break}Ms(a,h,n^8192);continue}o=61;if((l|0)<0&q)break c;J[g+72>>2]=e;h=e|32;J[g+68>>2]=H[h+2639663|0];e=n^-1;J[g- -64>>2]=(e>>>16&1)+28573;J[g+60>>2]=(e&1)+29830;J[g+56>>2]=(e>>>13&1)+28679;J[g+52>>2]=(e>>>11&1)+28739;J[g+48>>2]=(e>>>3&1)+29402;e=g+96|0;Wi(e,16,18057,g+48|0);f=0;h=h-97|0;if(h>>>0>23)continue;h=1<>2];J[g+16>>2]=J[g+128>>2];J[g+20>>2]=f;J[g>>2]=k;J[g+4>>2]=l;f=J[g+124>>2];J[g+ +8>>2]=J[g+120>>2];J[g+12>>2]=f;f=Mz(a,e,g);continue}J[g+32>>2]=k;J[g+36>>2]=l;e=J[g+124>>2];J[g+40>>2]=J[g+120>>2];J[g+44>>2]=e;f=Mz(a,g+96|0,g+32|0);continue}break}o=28}J[698583]=o}f=-1}fc=g+144|0;return f}function TK(){var a=0,b=0,c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;b=kc[J[663195]](472)|0;a:{if(!b){J[e>>2]=30682;Hc(0,0,0,0,0,1,2,3,30682,0,0,0,32879,e);break a}a=Ac(b,0,472);d=fc-112|0;fc=d;b:{if(!a){J[d>>2]=0;Hc(0,0,0,0,0,1,1,3,0,0,0,0,30714,d);b=-1;break b}J[663326]=1;J[663314]=3294;J[663313]=3295;J[663325]= +3296;J[663299]=3297;J[663323]=3298;J[663304]=3299;J[663303]=3300;J[663302]=3301;J[663301]=3302;J[663300]=3303;J[663308]=3304;J[663307]=3305;J[663305]=3306;J[663324]=3307;J[663316]=3308;J[663315]=3309;J[663312]=3310;J[663311]=3311;J[663310]=3312;J[663309]=3313;J[663306]=3314;J[663322]=3273;J[663321]=3273;J[663320]=3274;J[663319]=3315;J[663318]=3316;J[663317]=3308;b=J[a+296>>2];if(!b){c:{d:{if(!K[2773432]){b=Dc(4);J[693359]=b;if(!b)break d;H[2773432]=1}b=kc[J[663195]](32)|0;if(!b)break d;J[b+28>>2]= +0;J[b>>2]=1;J[b+8>>2]=128;J[b+12>>2]=0;c=kc[J[663195]](2560)|0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=c;if(c)break c;kc[J[663199]](b)}J[a+296>>2]=0;J[d+16>>2]=30648;Hc(0,0,0,0,0,1,2,3,30648,0,0,0,32879,d+16|0);b=-1;break b}Ac(c,0,2560);J[b+24>>2]=0;J[a+296>>2]=b}J[b+28>>2]=15E6;e:{b=J[a>>2];if(b)break e;b=kc[J[663195]](128)|0;J[a>>2]=b;if(b)break e;J[d+32>>2]=30648;Hc(0,0,0,0,0,1,2,3,30648,0,0,0,32879,d+32|0);b=-1;break b}J[b+124>>2]=0;J[b+120>>2]=3317;J[b+116>>2]=3318;J[b+56>>2]=0;J[b+60>>2]=0;J[b+ +108>>2]=-554844497;J[b+104>>2]=3296;J[b>>2]=3297;J[b+96>>2]=3298;J[b+20>>2]=3299;J[b+16>>2]=3300;J[b+12>>2]=3301;J[b+8>>2]=3302;J[b+4>>2]=3303;J[b+36>>2]=3304;J[b+32>>2]=3305;J[b+24>>2]=3306;J[b+100>>2]=3307;J[b+68>>2]=3308;J[b+64>>2]=3309;J[b+52>>2]=3310;J[b+48>>2]=3311;J[b+44>>2]=3312;J[b+40>>2]=3313;J[b+28>>2]=3314;J[b+92>>2]=3273;J[b+88>>2]=3273;J[b+84>>2]=3274;J[b+80>>2]=3315;J[b+76>>2]=3316;J[b+72>>2]=3308;J[a+300>>2]=0;J[a+304>>2]=0;f:{if(!J[a+48>>2]){b=kc[J[663195]](20)|0;J[a+44>>2]=5;J[a+ +48>>2]=b;if(!b)break f}b=nC(a);if(b)while(1){c=J[b+4>>2];if(c)kc[J[663199]](c);c=J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+44>>2];if(c)kc[J[663199]](c);c=J[b+48>>2];if(c)kc[J[663199]](c);c=J[b+40>>2];g:{if(!c)break g;f=J[b+12>>2];if(!f)break g;kc[c|0](f)}c=J[b>>2];if(c)Vn(c);kc[J[663199]](b);b=nC(a);if(b)continue;break}J[a+36>>2]=0;J[a+40>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+180>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+96>>2]=0;J[a+28>>2]=-1;J[a+32>>2]=0;h:{if(J[a+64>>2])break h; +b=kc[J[663195]](40)|0;J[a+60>>2]=10;J[a+64>>2]=b;if(b)break h;J[d+64>>2]=30648;Hc(0,0,0,0,0,1,2,3,30648,0,0,0,32879,d- -64|0);J[a+60>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;b=-1;break b}J[a+52>>2]=0;J[a+56>>2]=0;i:{if(J[a+196>>2])break i;b=kc[J[663195]](40)|0;J[a+192>>2]=10;J[a+196>>2]=b;if(b)break i;J[d+80>>2]=30648;Hc(0,0,0,0,0,1,2,3,30648,0,0,0,32879,d+80|0);J[a+60>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+192>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+184>>2]=0; +J[a+188>>2]=0;b=-1;break b}J[a+184>>2]=0;J[a+188>>2]=0;j:{b=J[a+244>>2];if(b)break j;b=kc[J[663195]](40)|0;J[a+240>>2]=10;J[a+244>>2]=b;if(b)break j;J[d+96>>2]=30648;Hc(0,0,0,0,0,1,2,3,30648,0,0,0,32879,d+96|0);J[a+60>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+192>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+240>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+232>>2]=0;J[a+236>>2]=0;b=-1;break b}J[a+236>>2]=1;J[a+240>>2]=10;J[b>>2]=-1;J[a+356>>2]=1;J[a+8>>2]=0;J[a+12>>2]=1;J[a+232>>2]=b;J[a+100>>2]=1;J[a+4>>2]= +a;b=J[693386];J[a+276>>2]=b;if(b)J[a+360>>2]=J[a+360>>2]|4;b=J[693385];J[a+104>>2]=b;c=J[693387];J[a+268>>2]=c;if(c)J[a+360>>2]=J[a+360>>2]|128;J[a+280>>2]=J[693388];c=J[663298];J[a+208>>2]=c;if(!c){J[J[a>>2]+72>>2]=3319;J[a+360>>2]=J[a+360>>2]|256}J[a+108>>2]=a;J[a+116>>2]=3271;J[a+112>>2]=3272;J[a+136>>2]=-1412623820;if(b){b=J[693382];J[a+128>>2]=0;J[a+116>>2]=b?3271:0;J[a+360>>2]=J[a+360>>2]|16}b=0;c=J[693389];J[a+16>>2]=c;if(c)J[a+360>>2]=J[a+360>>2]|2;J[a+216>>2]=0;J[a+200>>2]=0;J[a+204>>2]= +0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+440>>2]=0;J[a+444>>2]=0;J[a+284>>2]=0;J[a+256>>2]=1;J[a+248>>2]=0;J[a+84>>2]=0;J[a+464>>2]=1;J[a+468>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;break b}J[d+48>>2]=30648;Hc(0,0,0,0,0,1,2,3,30648,0,0,0,32879,d+48|0);J[a+44>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;b=-1}fc=d+112|0;if((b|0)>=0)break a;Vj(a);a=0}fc=e+16|0;return a}function fM(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;k=fc-16|0;fc=k;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];g=J[c+20>>2];J[c+28>>2]=g;I[g+2>>1]= +0;i=J[b+20>>2];b=J[b+28>>2];g=268435454;h=268435455;d=268435455;f=268435454;j=J[a+28>>2];a=J[a+20>>2];if((j|0)!=(a|0)){J[k+8>>2]=a+8;n=(j-a>>3)-1|0;j=I[a+10>>1];f=j>>31;d=I[a+8>>1];f=(d+((f^j)-f|0)|0)-1|0}if((b|0)!=(i|0)){J[k+4>>2]=i+8;o=(b-i>>3)-1|0;b=I[i+10>>1];a=b>>31;h=I[i+8>>1];g=(h+((a^b)-a|0)|0)-1|0}while(1){a:{if(!n){a=d;n=0;break a}if((d|0)<=(f|0)){a=d;break a}a=J[k+8>>2];J[k+8>>2]=a+8;n=n-1|0;i=I[a+10>>1];b=i>>31;a=I[a+8>>1];f=(a+((b^i)-b|0)|0)-1|0}j=f;b:{c:{d:{if(!o){o=0;break d}if((h| +0)>(g|0))break c}b=h;break b}b=J[k+4>>2];J[k+4>>2]=b+8;o=o-1|0;i=I[b+10>>1];g=i>>31;b=I[b+8>>1];g=(b+((g^i)-g|0)|0)-1|0}i=g;if(!((g|0)<(b|0)&(a|0)>(j|0))){m=(g|0)>(j|0);h=(a|0)>(b|0)?a:b;g=(m?j:g)-h|0;if((g|0)>=0){g=g+1|0;e:{if((a|0)>=(b|0)){b=a;break e}f=b-a|0;d=J[k+8>>2];e=I[d+2>>1];f:{if((e|0)<0){d=K[J[d+4>>2]];g:{if((J[c>>2]+1|0)!=(a|0))break g;e=J[c+28>>2];l=I[e+2>>1];if((l|0)>=0|(d|0)!=K[J[e+4>>2]])break g;I[e+2>>1]=l-f;break f}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>> +2]=e+1;I[d+10>>1]=0-f;I[d+8>>1]=a;J[d+12>>2]=e;break f}if(!e)break e;e=J[d+4>>2];d=I[d>>1];xc(J[c+16>>2],e+((a|0)>(d|0)?a-d|0:0)|0,f);e=J[c+28>>2];h:{i:{if((J[c>>2]+1|0)!=(a|0))break i;d=I[e+2>>1];if((d|0)<=0)break i;I[e+2>>1]=d+f;d=J[c+16>>2];break h}J[c+28>>2]=e+8;d=J[c+16>>2];I[e+10>>1]=f;I[e+8>>1]=a;J[e+12>>2]=d}J[c+16>>2]=d+f}J[c>>2]=b-1}a=g;j:{k:{l:{m:{n:{d=J[k+4>>2];e=J[k+8>>2];switch((L[d+2>>1]>>>14&2|L[e+2>>1]>>>15)-1|0){case 2:break k;case 1:break l;case 0:break m;default:break n}}f=J[d+ +4>>2];d=I[d>>1];f=f+((d|0)<(h|0)?h-d|0:0)|0;d=I[e>>1];e=J[e+4>>2]+((d|0)<(h|0)?h-d|0:0)|0;while(1){d=P(K[e|0],K[f|0]^255);if(d){H[J[c+16>>2]]=(d|0)==65025?-1:d>>>8|0;l=J[c+28>>2];o:{p:{if((J[c>>2]+1|0)!=(h|0))break p;d=I[l+2>>1];if((d|0)<=0)break p;I[l+2>>1]=d+1;d=J[c+16>>2];break o}J[c+28>>2]=l+8;d=J[c+16>>2];I[l+10>>1]=1;I[l+8>>1]=h;J[l+12>>2]=d}J[c>>2]=h;J[c+16>>2]=d+1}f=f+1|0;e=e+1|0;h=h+1|0;a=a-1|0;if(a)continue;break}break j}f=J[d+4>>2];d=I[d>>1];f=f+((d|0)<(h|0)?h-d|0:0)|0;while(1){d=P(K[J[J[k+ +8>>2]+4>>2]],K[f|0]^255);if(d){H[J[c+16>>2]]=(d|0)==65025?-1:d>>>8|0;d=J[c+28>>2];q:{r:{if((J[c>>2]+1|0)!=(h|0))break r;e=I[d+2>>1];if((e|0)<=0)break r;I[d+2>>1]=e+1;e=J[c+16>>2];break q}J[c+28>>2]=d+8;e=J[c+16>>2];I[d+10>>1]=1;I[d+8>>1]=h;J[d+12>>2]=e}J[c>>2]=h;J[c+16>>2]=e+1}f=f+1|0;h=h+1|0;a=a-1|0;if(a)continue;break}break j}if(K[J[d+4>>2]]==255)break j;d=I[e>>1];f=J[e+4>>2]+((d|0)<(h|0)?h-d|0:0)|0;while(1){d=P(K[f|0],K[J[J[k+4>>2]+4>>2]]^255);if(d){H[J[c+16>>2]]=(d|0)==65025?-1:d>>>8|0;d=J[c+ +28>>2];s:{t:{if((J[c>>2]+1|0)!=(h|0))break t;e=I[d+2>>1];if((e|0)<=0)break t;I[d+2>>1]=e+1;e=J[c+16>>2];break s}J[c+28>>2]=d+8;e=J[c+16>>2];I[d+10>>1]=1;I[d+8>>1]=h;J[d+12>>2]=e}J[c>>2]=h;J[c+16>>2]=e+1}f=f+1|0;h=h+1|0;a=a-1|0;if(a)continue;break}break j}d=P(K[J[e+4>>2]],K[J[d+4>>2]]^255);if(!d)break j;d=(d|0)==65025?255:d>>>8|0;u:{v:{if((J[c>>2]+1|0)!=(h|0))break v;f=J[c+28>>2];e=I[f+2>>1];if((e|0)>=0|(d|0)!=K[J[f+4>>2]])break v;I[f+2>>1]=e-a;break u}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;f= +J[c+16>>2];J[c+16>>2]=f+1;I[d+10>>1]=0-a;I[d+8>>1]=h;J[d+12>>2]=f}J[c>>2]=(a+h|0)-1}h=b+g|0;f=268435454;d=268435455;g=i;if(m)continue;g=268435454;a=(i|0)<(j|0);f=a?j:268435454;d=a?h:268435455;h=268435455;continue}g=268435454;h=268435455;f=j;d=a;if((d|0)>=(b|0))continue;f=268435454;d=268435455;h=b;g=i;if((a|0)>(j|0))continue;l=j-a|0;e=l+1|0;b=J[k+8>>2];m=I[b+2>>1];w:{if((m|0)<0){b=K[J[b+4>>2]];x:{if((J[c>>2]+1|0)!=(a|0))break x;g=J[c+28>>2];m=I[g+2>>1];if((m|0)>=0|(b|0)!=K[J[g+4>>2]])break x;I[g+2>> +1]=m-e;break w}H[J[c+16>>2]]=b;b=J[c+28>>2];J[c+28>>2]=b+8;g=J[c+16>>2];J[c+16>>2]=g+1;I[b+10>>1]=l^-1;I[b+8>>1]=a;J[b+12>>2]=g;break w}if(!m)continue;g=J[b+4>>2];b=I[b>>1];xc(J[c+16>>2],g+((a|0)>(b|0)?a-b|0:0)|0,e);b=J[c+28>>2];y:{z:{if((J[c>>2]+1|0)!=(a|0))break z;g=I[b+2>>1];if((g|0)<=0)break z;I[b+2>>1]=e+g;g=J[c+16>>2];break y}J[c+28>>2]=b+8;g=J[c+16>>2];I[b+10>>1]=e;I[b+8>>1]=a;J[b+12>>2]=g}J[c+16>>2]=e+g}J[c>>2]=j;g=i;continue}break}fc=k+16|0}function e9(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,y=0,z=0;p=fc-48|0;fc=p;j=!a;a:{if(j)break a;s=!b;if(s|((j?-1:J[a+8>>2])|0)!=1|(!g|((s?-1:J[b+8>>2])|0)!=1))break a;if((c|0)<=0|(d|0)<=0)break a;Df(a,p+44|0,p+40|0,0);Df(b,p+36|0,p+32|0,0);s=J[p+44>>2]-J[p+36>>2]|0;j=s>>31;if(((j^s)-j|0)>2)break a;s=J[p+40>>2]-J[p+32>>2]|0;j=s>>31;if(((j^s)-j|0)>2)break a;y=(f>=Q(0)?.5:-.5)+ +f;b:{if(R(y)<2147483648){j=~~y;break b}j=-2147483648}x=a?J[a+12>>2]:-1;s=b?J[b+12>>2]:-1;q=J[p+40>>2];n=J[p+32>>2];m=a?J[a+40>> +2]:0;l=(j|0)>0?j:0;k=l-j|0;b=b?J[b+40>>2]:0;a=j+n|0;t=(a|0)<(q|0)?a:q;j=J[p+40>>2];y=(e>=Q(0)?.5:-.5)+ +e;c:{if(R(y)<2147483648){a=~~y;break c}a=-2147483648}j=(j|0)<(t|0);e=Q(W(Q(Y(Q(Q(Q(c|0)*i)*Q(d|0))))));d:{if(Q(R(e))>2];o=m+(P(l,x)<<2)|0;m=b+(P(k,s)<<2)|0;b=a+J[p+36>>2]|0;j=J[p+44>>2];k=(b|0)<(j|0)?b:j;b=(a|0)>0?a:0;e:{if((a|0)>=32){n=a&31;j=a&-32;k=k-j|0;b=b-j|0;o=(a>>>3&536870908)+o|0;j=s;break e}if((a|0)>-32){j=s;n=a;break e}j= +a;a=a+31|0;n=j-(a&-32)|0;a=a>>5;j=a+s|0;m=m-(a<<2)|0}a=0;f:{if((b|0)>=(k|0)|(l|0)>=(t|0))break f;r=k+31>>5;if(!n){k=1;if((r|0)>0){while(1){b=0;while(1){j=a;a=b<<2;a=J[a+m>>2]&J[a+o>>2];a=(((j+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;b=b+1|0;if((r|0)!=(b|0))continue;break}if((a|0)<(q|0)){if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break f}break}break a}if((q|0)<=0)break a;while(1){if((J[(l<< +2)+h>>2]-v|0)<(q|0)){k=0;break a}l=l+1|0;if((t|0)!=(l|0))continue;break}break f}g:{if((n|0)>0){w=32-n|0;if((j|0)<(r|0))break g;while(1){b=a;j=J[m>>2];a=J[o>>2]&j>>>n;a=(((b+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;b=1;if((r|0)>=2)while(1){u=a;k=j<>2];a=(k|j>>>n)&J[a+o>>2];a=(((u+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;b=b+1|0;if((r|0)!=(b|0))continue;break}if((a|0)>=(q| +0)){k=1;break a}if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break}break f}if((j|0)<=(r|0)){w=n+32|0;n=0-n|0;b=r-1|0;z=(r|0)<2;while(1){if(z)j=0;else{r=J[m>>2];k=0;while(1){j=a;a=J[(k<<2)+o>>2];u=r<>2];a=a&(u|r>>>w);a=(((j+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;if((b|0)!=(k|0))continue;break}j=b}u=a;a=j<<2;a=J[a+m>>2]<>2];a=(((u+J[((a&255)<<2)+g>> +2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;if((q|0)<=(a|0)){k=1;break a}if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break}break f}k=1;if((r|0)>0){b=n+32|0;j=0-n|0;while(1){n=J[m>>2];k=0;while(1){u=a;a=J[(k<<2)+o>>2];w=n<>2];a=a&(w|n>>>b);a=(((u+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;if((k|0)!=(r|0))continue;break}if((a| +0)<(q|0)){if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break f}break}k=1;break a}if((q|0)<=0)break a;while(1){if((J[(l<<2)+h>>2]-v|0)<(q|0)){k=0;break a}l=l+1|0;if((t|0)!=(l|0))continue;break}break f}while(1){b=a;r=J[m>>2];a=J[o>>2]&r>>>n;b=(((b+J[((a&255)<<2)+g>>2]|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;k=1;a=1;if((j|0)>=2){while(1){u=r<>2];a=(u|r>>>n)&J[a+o>>2];b=(((J[((a&255)<< +2)+g>>2]+b|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;k=k+1|0;if((k|0)!=(j|0))continue;break}a=j}a=a<<2;a=J[(a+m|0)-4>>2]<>2];a=(((J[((a&255)<<2)+g>>2]+b|0)+J[(a>>>6&1020)+g>>2]|0)+J[(a>>>14&1020)+g>>2]|0)+J[(a>>>22&1020)+g>>2]|0;if((q|0)<=(a|0)){k=1;break a}if((J[(l<<2)+h>>2]+(a-v|0)|0)<(q|0)){k=0;break a}m=(s<<2)+m|0;o=(x<<2)+o|0;l=l+1|0;if((t|0)!=(l|0))continue;break}}k=0;e=Q(Q(P(a,a)|0)/Q(P(c,d)|0));if(!(e>=i))break a;O[p+16>>3]=i;J[p+4>>2]=q;J[p>>2]= +a;O[p+8>>3]=e;Yi(J[655074],226169,p)}fc=p+48|0;return k}function Upb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=fc-176|0;fc=f;J[f+172>>2]=0;g=J[e+32>>2];if(g)i=J[g+100>>2];a:{b:{if(ud(a,241862,7))break b;c:{h=K[a+7|0];switch(h|0){case 0:case 9:case 10:case 13:case 32:break c;default:break b}}c=0;if(!g|!J[J[e+36>>2]+8>>2])break a;c=J[g+100>>2];J[f+32>>2]=0;e=c;c=J[g+88>>2];b=(h?-8:-7)+b|0;d=b+1|0;e=_c(e,1,c,d+c|0,J[g+84>>2],f+32|0);J[g+84>>2]=e;c=J[f+32>>2];if(c)break a; +j=xc(e+J[g+88>>2]|0,h?a+8|0:a+7|0,b)+b|0,k=10,H[j|0]=k;J[g+88>>2]=d+J[g+88>>2];c=J[f+32>>2];break a}h=J[e>>2];if(!(h&1)){d=J[e+56>>2];c=176;if(ud(a,241974,9))break a;d:switch(K[a+9|0]){case 0:case 9:case 10:case 13:case 32:break d;default:break a}a=0;J[e+32>>2]=0;J[e>>2]=1;b=he(d,136,f+172|0);c=J[f+172>>2];if(c)break a;J[e+32>>2]=b;J[b+100>>2]=J[e+56>>2];J[e+56>>2]=0;g=b+112|0;c=i8(g,d);J[f+172>>2]=c;if(c)break a;b=252384;while(1){c=cE(J[b>>2],a,g,d);J[f+172>>2]=c;if(c)break a;b=b+16|0;a=a+1|0;if((a| +0)!=83)continue;break}a=he(d,24,f+172|0);J[J[e+32>>2]+92>>2]=a;c=J[f+172>>2];if(c)break a;c=i8(a,d);if(c)break a;a=J[J[e+36>>2]+12>>2];b=J[e+32>>2];J[b+36>>2]=-1;J[b+28>>2]=a;c=0;break a}e:{if(ud(a,242098,15))break e;f:switch(K[a+15|0]){case 0:case 9:case 10:case 13:case 32:break f;default:break e}c=179;if(!(h&8))break a;c=dm(e+40|0,242214,a,b);J[f+172>>2]=c;if(c)break a;g:{h:{b=J[J[e+40>>2]+4>>2];if(!b)break h;a=H[b|0];c=a&255;if(!c|!(K[(c>>>3|0)+254800|0]>>>(a&7)&1))break h;c=0;i:{while(1){if(c>>> +0>=429496728){a=J[e+32>>2];J[a+72>>2]=-1;J[e+4>>2]=-1;a=a+72|0;break i}c=K[a+254832|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1)continue;break}a=J[e+32>>2];J[a+72>>2]=c;J[e+4>>2]=c;if(J[e+60>>2]>>>2>>>0>=c>>>0)break g;a=a+72|0}J[a>>2]=0;c=6;break a}c=0;J[J[e+32>>2]+72>>2]=0;J[e+4>>2]=0}a=_c(i,16,0,c,0,f+172|0);b=J[e+32>>2];J[b+80>>2]=a;c=J[f+172>>2];if(c){J[b+72>>2]=0;break a}J[e>>2]=J[e>>2]|16;J[d>>2]=1645;c=0;break a}j:{if(ud(a,242310,15))break j;k:switch(K[a+15|0]){case 0:case 9:case 10:case 13:case 32:break k; +default:break j}c=178;if(!(h&4))break a;c=dm(e+40|0,242214,a,b);if(c)break a;a=J[e+32>>2];b=J[e+40>>2];j=a,k=mE(J[b+4>>2]),I[j+4>>1]=k;d=mE(J[b+8>>2]);I[a+6>>1]=d;j=a,k=iy(J[b+12>>2]),I[j+8>>1]=k;b=iy(J[b+16>>2]);I[a+10>>1]=b;c=0;I[a+14>>1]=0-b;I[a+12>>1]=b+d;J[e>>2]=J[e>>2]|8;break a}l:{if(ud(a,242434,4))break l;m:switch(K[a+4|0]){case 0:case 9:case 10:case 13:case 32:break m;default:break l}d=e+40|0;c=dm(d,242214,a,b);J[f+172>>2]=c;if(c)break a;G8(d);b=F8(d,f+32|0);if(!b){c=3;break a}a=J[J[e+32>> +2]>>2];if(a)kc[J[i+8>>2]](i,a);J[J[e+32>>2]>>2]=0;d=J[f+32>>2]+1|0;a=_c(i,1,0,d,0,f+172|0);J[J[e+32>>2]>>2]=a;c=J[f+172>>2];if(c)break a;xc(a,b,d);g=J[e+36>>2];a=fc-272|0;fc=a;d=6;b=J[e+32>>2];n:{if(!b)break n;c=J[b>>2];if(!c|!K[c|0])break n;i=J[b+100>>2];J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+12>>2]=i;J[b+28>>2]=J[g+12>>2];g=Yc(c)+1|0;if(g>>>0>255)break n;d=a+16|0;xc(d,c,g);d=dm(a,254996,d,g);o:{if(d|J[a+8>>2]!=15)break o;c=32;p:{q:switch(H[J[J[a>>2]+44>>2]]-67|0){case 10:case 42:c=16;break p;case 0:case 32:break p; +case 13:case 45:break q;default:break o}c=8}J[b+28>>2]=c}b=J[a+12>>2];if(!b)break n;c=J[a>>2];if(c)kc[J[b+8>>2]](b,c)}fc=a+272|0;c=d;if(c)break a;J[e>>2]=J[e>>2]|2;c=0;break a}r:{if(ud(a,242513,4))break r;s:switch(K[a+4|0]){case 0:case 9:case 10:case 13:case 32:break s;default:break r}c=177;if(!(h&2))break a;c=dm(e+40|0,242214,a,b);if(c)break a;a=J[e+32>>2];b=J[e+40>>2];j=a,k=hy(J[b+4>>2]),J[j+16>>2]=k;j=a,k=hy(J[b+8>>2]),J[j+20>>2]=k;j=a,k=hy(J[b+12>>2]),J[j+24>>2]=k;t:{if(J[e+48>>2]==5){b=iy(J[b+ +16>>2]);if(b>>>0>=5){I[a+96>>1]=8;break t}if(b>>>0>=3){I[a+96>>1]=4;break t}if((b|0)==2){I[a+96>>1]=2;break t}I[a+96>>1]=1;break t}I[a+96>>1]=1}J[e>>2]=J[e>>2]|4;c=0;break a}c=3;if(ud(a,242605,5))break a;u:switch(K[a+5|0]){case 0:case 9:case 10:case 13:case 32:break u;default:break a}c=179;if(!(h&8))break a;a=I[g+12>>1];J[g+40>>2]=a;J[f+16>>2]=a;a=f+32|0;cg(a,242724,f+16|0);c=ns(J[e+32>>2],242788,a);J[f+172>>2]=c;if(c)break a;c=J[e+32>>2];b=I[c+14>>1];J[c+44>>2]=b;J[f>>2]=b;cg(a,242724,f);c=ns(J[e+ +32>>2],242884,a);if(c)break a;J[d>>2]=1646;c=-1}fc=f+176|0;return c|0}function EJ(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,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;h=fc-160|0;fc=h;J[h+144>>2]=13;J[h+128>>2]=13;J[h+112>>2]=13;J[h+96>>2]=13;J[h+80>>2]=13;a:{if(d==f|e==g)break a;jf(b,J[a+4>>2],h+144|0,0);if(J[h+144>>2]==8){i=J[h+152>>2];y=kc[J[J[i>>2]+76>>2]](i)|0;Ec(y,818915,h+112|0,0);b:{c:{d:{if(J[h+112>>2]!=6)break d;i=J[h+120>>2];if(J[i+12>>2]!=4)break d; +Sc(i,0,h+80|0,0);i=J[h+80>>2];if(i-3>>>0>=4294967294)o=(i|0)==1?+J[h+88>>2]:O[h+88>>3];O[h>>3]=o;i=h+80|0;yc(i);Sc(J[h+120>>2],1,i,0);i=J[h+80>>2];if(i-3>>>0>=4294967294)k=(i|0)==1?+J[h+88>>2]:O[h+88>>3];O[h+8>>3]=k;i=h+80|0;yc(i);Sc(J[h+120>>2],2,i,0);i=J[h+80>>2];if(i-3>>>0>=4294967294)t=(i|0)==1?+J[h+88>>2]:O[h+88>>3];O[h+16>>3]=t;i=h+80|0;yc(i);Sc(J[h+120>>2],3,i,0);i=J[h+80>>2];if(i-3>>>0>=4294967294)p=(i|0)==1?+J[h+88>>2]:O[h+88>>3];O[h+24>>3]=p;q=h+80|0;yc(q);yc(h+112|0);Ec(y,819660,h+128| +0,0);if(J[h+128>>2]!=6)break c;Sc(J[h+136>>2],0,q,0);u=J[h+80>>2]==1?+J[h+88>>2]:O[h+88>>3];O[h+32>>3]=u;yc(q);Sc(J[h+136>>2],1,q,0);l=O[h+88>>3];D=J[h+88>>2];E=J[h+80>>2];yc(q);Sc(J[h+136>>2],2,q,0);m=O[h+88>>3];F=J[h+88>>2];G=J[h+80>>2];yc(q);Sc(J[h+136>>2],3,q,0);n=O[h+88>>3];H=J[h+88>>2];I=J[h+80>>2];yc(q);Sc(J[h+136>>2],4,q,0);j=O[h+88>>3];s=J[h+88>>2];i=J[h+80>>2];yc(q);Sc(J[h+136>>2],5,q,0);z=(E|0)==1?+(D|0):l;A=(G|0)==1?+(F|0):m;v=(i|0)==1?+(s|0):j;w=J[h+80>>2]==1?+J[h+88>>2]:O[h+88>>3];yc(q); +x=(I|0)==1?+(H|0):n;break b}c=-1;a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];c=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,c,819424,0);yc(h+112|0);yc(h+144|0);break a}J[h+40>>2]=0;J[h+44>>2]=0;J[h+32>>2]=0;J[h+36>>2]=1072693248;u=1;x=1}j=o*z;B=x*p;l=w+(j+B);r=k*x;m=w+(j+r);yc(h+128|0);n=o*u;C=A*p;j=v+(n+C);o=k*A;k=v+(n+o);f:{if(jk)){n=k;break f}n=j}g:{if(m>l){j=m;m=l;break g}if(!(mn))break h;n=l}i:{if(m>r){m=r;break i}if(!(jn))break j;n=l}k:{if(m>r){m=r;break k}if(!(j>3]=x*o;O[h+48>>3]=A*p;O[h+40>>3]=z*o;O[h+32>>3]=u*p;O[h+72>>3]=w*o+(e-m*o);O[h+64>>3]=v*p+(d-k*p);i=h+96|0;Ec(y,820122,i,0);Jw(a,b,J[h+96>>2]==7?J[h+104>>2]:0,h+32|0,h,0,0,0,0,0,0,0);yc(i)}yc(h+144|0);if(!c|!(O[c+8>>3]>0))break a;b=J[c+56>>2];if((b|0)<=0)break a; +l:{m:{n:switch(b-1|0){case 0:b=0;i=J[J[a+28>>2]+120>>2];if(kc[J[J[i>>2]+12>>2]](i)|0)break m;break l;case 2:b=2;i=J[J[a+28>>2]+120>>2];if((kc[J[J[i>>2]+12>>2]](i)|0)!=2)break m;break l;case 3:break n;default:break l}b=4;i=J[J[a+28>>2]+120>>2];if((kc[J[J[i>>2]+12>>2]](i)|0)==4)break l}i=J[a+28>>2];s=J[i+384>>2];if(s)kc[J[J[s>>2]+4>>2]](s);J[i+384>>2]=0;s=J[a+28>>2];b=Ok(b);i=J[s+120>>2];if(i)kc[J[J[i>>2]+4>>2]](i);J[s+120>>2]=b;b=J[a+8>>2];kc[J[J[b>>2]+112>>2]](b,J[a+28>>2])}k=O[c+32>>3];m=O[c+40>> +3];n=O[c+48>>3];b=J[a+28>>2];j=O[c+24>>3]*65536;o:{if(R(j)<2147483648){i=~~j;break o}i=-2147483648}J[b+252>>2]=i;j=n*65536;p:{if(R(j)<2147483648){i=~~j;break p}i=-2147483648}J[b+264>>2]=i;j=m*65536;q:{if(R(j)<2147483648){i=~~j;break q}i=-2147483648}J[b+260>>2]=i;j=k*65536;r:{if(R(j)<2147483648){i=~~j;break r}i=-2147483648}J[b+256>>2]=i;b=J[a+8>>2];kc[J[J[b>>2]+120>>2]](b,J[a+28>>2]);i=J[a+28>>2];O[i+440>>3]=O[c+8>>3];b=J[a+8>>2];kc[J[J[b>>2]+100>>2]](b,i);s:{if(J[c>>2]!=1)break s;i=J[c+20>>2];if((i| +0)<=0)break s;b=J[c+16>>2];b=xc(Gd(i,8),b,i<<3);uJ(J[a+28>>2],b,i,0);b=J[a+8>>2];kc[J[J[b>>2]+80>>2]](b,J[a+28>>2])}_f(J[a+28>>2]);b=J[a+28>>2];O[b+608>>3]=e;O[b+600>>3]=d;b=J[b+596>>2];O[b+16>>3]=e;O[b+8>>3]=d;J[b>>2]=1;b=J[a+28>>2];O[b+608>>3]=e;O[b+600>>3]=f;re(J[b+596>>2],f,e);if(J[c>>2]!=4){b=J[a+28>>2];O[b+608>>3]=g;O[b+600>>3]=f;re(J[b+596>>2],f,g);b=J[a+28>>2];O[b+608>>3]=g;O[b+600>>3]=d;re(J[b+596>>2],d,g);i=J[a+28>>2];gg(J[i+596>>2]);b=J[i+596>>2];c=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2]; +b=J[c+12>>2]<<3;O[i+600>>3]=O[(b+J[c>>2]|0)-8>>3];O[i+608>>3]=O[(b+J[c+4>>2]|0)-8>>3]}b=J[a+8>>2];kc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}fc=h+160|0}function rwa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0;r=fc-80|0;fc=r;D=L[b+8>>1];s=P(D,3)+3>>>2|0;A=L[b+10>>1];q=P(A,3)+3>>>2|0;a:{if(c){b:{n=J[c>>2];c:{if((n|0)<0)break c;o=J[c+4>>2];if((o|0)<0)break c; +t=J[c+8>>2];if((t|0)>(q|0))break c;c=J[c+12>>2];if((c|0)<=(s|0))break b}a=Qc(r+32|0,2391061,2385793,1169,2424838,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}s=c-o|0;q=t-n|0}c=J[a+20>>2];if(c)uc(c);J[a+16>>2]=0;J[a+20>>2]=0;I[a+12>>1]=q;I[a+10>>1]=q;I[a+8>>1]=s;c=0;u=q&65535;p=s&65535;t=P(u,p);if(t){c=vc((X=-1,Y=vEb(t,0,3,0),_=jc,_?X:Y));J[a+16>>2]=c;J[a+20>>2]=c}C=(n>>>0)/3|0;f=(o>>>0)/3|0;a=P(f,-3)+o|0;o=0-((a|0)<0?a+3|0:a)|0;d:{if((s|0)<=(o|0))break d; +n=P(C,-3)+n|0;t=0-((n|0)<0?n+3|0:n)|0;if((t|0)>=(q|0))break d;C=C+(n>>31)<<2;R=D-4|0;S=A-4|0;T=r|9;z=P(P(o,u),3)+(p?c:0)|0;v=f+(a>>31)<<2;w=L[b+12>>1];E=P(P(v,w),3)+(L[b+8>>1]?J[b+16>>2]:0)|0;U=P(w,12);V=P(u,9);while(1){n=o>>>0<=4294967293?-3:o;b=(o|0)>=0;a=b?0:0-n|0;c=s-o|0;F=(a|0)<(c|0)&a>>>0<3;G=a>>>0<2&(c|0)>(a+1|0);M=b&(c|0)>(a+2|0);a=n^-1;p=b?r:P(a,9)+T|0;x=p+18|0;y=p+9|0;N=(b?0:P(P(a,3)+3|0,u))+z|0;O=D-v|0;Q=0-v|0;n=o+3|0;W=(v|0)>(R|0);c=t;a=C;while(1){j=(a|0)>(S|0)|W;b=c;c=b+3|0;f=P(a,3)+ +E|0;e:{if(!((b|o)<0|(c|0)>(q|0)|(n|0)>(s|0))){if(!j){AA(f,w,P(b,3)+z|0,u);break e}d=f;f=r+32|0;KV(d,w,0-a|0,A-a|0,Q,O,f);AA(f,4,P(b,3)+z|0,u);break e}if(!j){AA(f,w,r,3);if(!F)break e;f=0-b|0;f=(f|0)>0?f:0;if(f>>>0>2)break e;j=q-b|0;if((j|0)<=(f|0))break e;i=P(b,3)+N|0;g=P(f,3);h=i+g|0;k=g+p|0;e=K[k|0]|K[k+1|0]<<8;H[h|0]=e;H[h+1|0]=e>>>8;H[h+2|0]=K[k+2|0];k=f>>>0>1;h=f+1|0;f:{if(k|(h|0)>=(j|0))break f;d=P(h,3);e=d+i|0;d=d+p|0;l=K[d|0]|K[d+1|0]<<8;H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=K[d+2|0];if((b|0)< +0)break f;e=f+2|0;if((e|0)>=(j|0))break f;d=P(e,3);e=d+i|0;d=d+p|0;l=K[d|0]|K[d+1|0]<<8;H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=K[d+2|0]}if(!G)break e;l=P(u,3);i=l+i|0;e=i+g|0;d=g+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0];g:{if((h|0)>=(j|0)|k)break g;d=P(h,3);e=d+i|0;d=d+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0];if((b|0)<0)break g;e=f+2|0;if((e|0)>=(j|0))break g;d=P(e,3);e=d+i|0;d=d+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0]}if(!M)break e; +i=i+l|0;e=i+g|0;g=g+x|0;d=K[g|0]|K[g+1|0]<<8;H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=K[g+2|0];if((h|0)>=(j|0)|k)break e;g=P(h,3);h=g+i|0;g=g+x|0;k=K[g|0]|K[g+1|0]<<8;H[h|0]=k;H[h+1|0]=k>>>8;H[h+2|0]=K[g+2|0];if((b|0)<0)break e;b=f+2|0;if((b|0)>=(j|0))break e;f=P(b,3);b=f+i|0;f=f+x|0;j=K[f|0]|K[f+1|0]<<8;H[b|0]=j;H[b+1|0]=j>>>8;H[b+2|0]=K[f+2|0];break e}d=f;f=r+32|0;KV(d,w,0-a|0,A-a|0,Q,O,f);AA(f,4,r,3);if(!F)break e;f=0-b|0;f=(f|0)>0?f:0;if(f>>>0>2)break e;j=q-b|0;if((j|0)<=(f|0))break e;i=P(b,3)+N|0;g= +P(f,3);h=i+g|0;k=g+p|0;e=K[k|0]|K[k+1|0]<<8;H[h|0]=e;H[h+1|0]=e>>>8;H[h+2|0]=K[k+2|0];k=f>>>0>1;h=f+1|0;h:{if(k|(h|0)>=(j|0))break h;d=P(h,3);e=d+i|0;d=d+p|0;l=K[d|0]|K[d+1|0]<<8;H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=K[d+2|0];if((b|0)<0)break h;e=f+2|0;if((e|0)>=(j|0))break h;d=P(e,3);e=d+i|0;d=d+p|0;l=K[d|0]|K[d+1|0]<<8;H[e|0]=l;H[e+1|0]=l>>>8;H[e+2|0]=K[d+2|0]}if(!G)break e;l=P(u,3);i=l+i|0;e=i+g|0;d=g+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0];i:{if((h|0)>=(j|0)|k)break i;d= +P(h,3);e=d+i|0;d=d+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0];if((b|0)<0)break i;e=f+2|0;if((e|0)>=(j|0))break i;d=P(e,3);e=d+i|0;d=d+y|0;m=K[d|0]|K[d+1|0]<<8;H[e|0]=m;H[e+1|0]=m>>>8;H[e+2|0]=K[d+2|0]}if(!M)break e;i=i+l|0;e=i+g|0;g=g+x|0;d=K[g|0]|K[g+1|0]<<8;H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=K[g+2|0];if((h|0)>=(j|0)|k)break e;g=P(h,3);h=g+i|0;g=g+x|0;k=K[g|0]|K[g+1|0]<<8;H[h|0]=k;H[h+1|0]=k>>>8;H[h+2|0]=K[g+2|0];if((b|0)<0)break e;b=f+2|0;if((b|0)>=(j|0))break e;f=P(b,3);b= +f+i|0;f=f+x|0;j=K[f|0]|K[f+1|0]<<8;H[b|0]=j;H[b+1|0]=j>>>8;H[b+2|0]=K[f+2|0]}a=a+4|0;if((c|0)<(q|0))continue;break}v=v+4|0;E=E+U|0;z=z+V|0;o=n;if((s|0)>(o|0))continue;break}}fc=r+80|0;return}B()}function S8(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,w=0,x=0;s=fc-16|0;fc=s;d=P(b,1348)+a|0;l=d;i=J[d+52>>2];a:{b:{if(i){d=J[d+44>>2];e=ps(a,b);if(e)break a;if((d|0)<=0)break b;d=P(d,44)+i|0;while(1){e=J[i+36>>2];c=L[e>>1];g=K[i|0];H[i|0]=g&254;f=J[i+40>>2]; +c:{if((f|0)==(e|0))break c;c=c&3;while(1){k=c;e=J[e+32>>2];c=L[e>>1]&3;if(!((k|c)&65535))break c;if((e|0)!=(f|0))continue;break}H[i|0]=g|1}i=i+44|0;if(d>>>0>i>>>0)continue;break}break b}e=ps(a,b);if(e)break a}n=J[J[a+2748>>2]+40>>2]/256|0;p=P(b,1348)+a|0;q=p+44|0;c=J[q>>2];d=J[l+52>>2];j=J[p+68>>2];t=(b?12:4)+a|0;i=Cd(192,J[t>>2]);if((c|0)>0){k=P(c,44)+d|0;c=d;while(1){e=d;if((j|0)==H[c+1|0])while(1){d:{if((c|0)==(e|0)|(j|0)!=(0-H[e+1|0]|0))break d;f=I[e+2>>1]-I[c+2>>1]|0;if((f|0)<0)break d;g=I[c+ +8>>1];h=I[e+8>>1];r=(g|0)<(h|0)?g:h;g=I[c+6>>1];h=I[e+6>>1];g=r-((g|0)>(h|0)?g:h)|0;if((g|0)<(n|0))break d;h=f<<3;m=J[c+28>>2];if(!((h|0)>=(P(m,9)|0)|(g|0)<=J[c+32>>2]&(h|0)>=(P(m,7)|0))){J[c+32>>2]=g;J[c+28>>2]=f;J[c+20>>2]=e}m=J[e+28>>2];if((h|0)>=(P(m,9)|0)|(g|0)<=J[e+32>>2]&(h|0)>=(P(m,7)|0))break d;J[e+32>>2]=g;J[e+28>>2]=f;J[e+20>>2]=c}e=e+44|0;if(k>>>0>e>>>0)continue;break}c=c+44|0;if(k>>>0>c>>>0)continue;break}c=d;while(1){f=J[c+20>>2];e:{if(!f|J[f+20>>2]!=(c|0))break e;n=I[f+2>>1];m=I[c+ +2>>1];if((n|0)<=(m|0))break e;o=J[c+28>>2];if((o|0)>=(i|0))break e;v=o<<2;e=d;while(1){f:{g:{if((c|0)==(e|0))break g;g=I[e+2>>1];if((g|0)>(m|0))break g;j=J[e+20>>2];if(!j|J[j+20>>2]!=(e|0))break g;h=I[j+2>>1];if((h|0)<(n|0)|(g|0)==(m|0)&(h|0)==(n|0))break g;g=J[e+28>>2];if((g|0)<=(o|0)|(g|0)>=(v|0))break g;h=d;if(J[c+32>>2]<(P(J[e+32>>2],3)|0))break f;while(1){g=f;u=J[h+20>>2];h:{if((u|0)!=(e|0)){g=c;if((j|0)!=(u|0))break h}J[h+24>>2]=g;J[h+20>>2]=0}h=h+44|0;if(k>>>0>h>>>0)continue;break}}e=e+44| +0;if(k>>>0>e>>>0)continue;break e}break}J[f+20>>2]=0;J[c+20>>2]=0}c=c+44|0;if(k>>>0>c>>>0)continue;break}while(1){c=J[d+20>>2];i:{if(!c|J[c+20>>2]==(d|0))break i;J[d+20>>2]=0;g=J[c+28>>2];if((g|0)>=(i|0)&J[d+28>>2]>=g<<2)break i;J[d+24>>2]=J[c+20>>2]}d=d+44|0;if(k>>>0>d>>>0)continue;break}}v=J[a>>2];f=J[l+52>>2];d=J[q>>2];c=J[a+2748>>2];J[p+56>>2]=0;c=c+P(b,7676)|0;n=J[t>>2];j:{if((Wc(J[c+248>>2],n)|0)>=17){h=Cd(16,n);break j}h=J[c+248>>2]}if((d|0)>0){t=P(d,44)+f|0;u=(P(b,1348)+a|0)- -64|0;while(1){k:{l:{w= +J[p+56>>2];m:{if((w|0)<=0){l=H[f+1|0];break m}m=J[u>>2];d=0;g=65535;l=K[f+1|0];i=0;while(1){e=P(i,44);k=e+m|0;n:{if(K[k+13|0]!=(l|0))break n;j=I[f+2>>1]-I[k>>1]|0;c=j>>31;j=(c^j)-c|0;if((j|0)>=(h|0)|(g|0)<=(j|0))break n;x=J[f+20>>2];if(x){c=0;r=J[(e+m|0)+36>>2];e=r;while(1){o:{o=J[e+20>>2];if(o){c=I[x+2>>1];o=I[o+2>>1];c=(c|0)>(o|0)?c-o|0:o-c|0;if((h|0)<=(c|0))break o}e=J[e+16>>2];if((r|0)!=(e|0))continue}break}if((c|0)>=(h|0))break n}g=j;d=k}i=i+1|0;if((w|0)!=(i|0))continue;break}if(d)break l}e= +L8(q,I[f+2>>1],l<<24>>24,0,v,s+12|0);if(e)break a;d=J[s+12>>2];J[d>>2]=0;J[d+4>>2]=0;J[d+40>>2]=f;J[d+36>>2]=f;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;H[d+13|0]=K[f+1|0];c=I[f+2>>1];I[d>>1]=c;c=Wc(c,n);J[d+8>>2]=c;J[d+4>>2]=c;J[f+16>>2]=f;break k}J[f+16>>2]=J[d+36>>2];J[J[d+40>>2]+16>>2]=f;J[d+40>>2]=f}f=f+44|0;if(t>>>0>f>>>0)continue;break}}c=J[p+56>>2];if((c|0)>0){d=J[(P(b,1348)+a|0)- -64>>2];p=d+P(c,44)|0;c=d;while(1){a=J[c+36>>2];e=a;if(e)while(1){J[e+ +12>>2]=c;e=J[e+16>>2];if((a|0)!=(e|0))continue;break}c=c+44|0;if(p>>>0>c>>>0)continue;break}while(1){i=0;h=0;b=J[d+36>>2];if(b){k=d+28|0;a=d+24|0;e=b;while(1){q=H[e|0]&1;n=!q;c=J[e+24>>2];p:{q:{if(c){f=J[c+12>>2]==(d|0);g=J[e+20>>2];if(f&!g)break p;if(f){j=0;f=a;break q}j=1;f=k;g=c;break q}j=0;f=a;g=J[e+20>>2];if(!g)break p}c=J[f>>2];r:{if(c){l=I[d>>1]-I[c>>1]|0;f=l>>31;r=(f^l)-f|0;f=I[e+2>>1];l=I[g+2>>1];if((r|0)<=(((f|0)>(l|0)?f-l|0:l-f|0)|0))break r}c=J[g+12>>2]}if(j){J[k>>2]=c;H[c+12|0]=K[c+12| +0]|2;break p}J[a>>2]=c}i=i+q|0;h=h+n|0;e=J[e+16>>2];if((b|0)!=(e|0))continue;break}}H[d+12|0]=(h|0)<=(i|0)&(i|0)>0;if(!(!J[d+28>>2]|!J[d+24>>2]))J[d+28>>2]=0;d=d+44|0;if(p>>>0>d>>>0)continue;break}}e=0}fc=s+16|0;return e}function K_(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:{if((d|0)==1){if((c|0)!=4)break a;J[b>>2]=J[b>>2]>>1;return}h=c+d|0;f=(h<<2)+b|0;J[f>>2]=J[f-8>>2];b:{if((d|0)==2){i=(c<<2)+b|0;d=i+4|0;J[f+4>>2]=J[d>>2];J[f+8>>2]=J[i>>2];break b}J[f+4>>2]=J[f-12>>2];if((d|0)== +3){d=(c<<2)+b|0;J[f+8>>2]=J[d+4>>2];d=d+8|0;break b}J[f+8>>2]=J[f-16>>2];if((d|0)==4){d=((c<<2)+b|0)+4|0;break b}d=f-20|0}J[f+12>>2]=J[d>>2];d=(c<<2)+b|0;J[d-4>>2]=J[d+4>>2];i=d-12|0;n=i,o=AEb(J[d+8>>2],J[d+12>>2],32),J[n>>2]=o;J[i+4>>2]=jc;if((c|0)==4)J[b>>2]=J[b+32>>2];if(J[a+36>>2]){d=3;if(h>>>0<3)break a;c=h-3|0;if(c>>>0>=2){g=(c>>>1|0)+1&-2;f=0;while(1){a=(d<<2)+b|0;i=J[a+4>>2];J[a>>2]=J[a>>2]-((i+J[a-4>>2]|0)+2>>2);J[a+8>>2]=J[a+8>>2]-((i+J[a+12>>2]|0)+2>>2);d=d+4|0;f=f+2|0;if((g|0)!=(f|0))continue; +break}}if(!(c&2)){a=(d<<2)+b|0;J[a>>2]=J[a>>2]-((J[a-4>>2]+J[a+4>>2]|0)+2>>2)}if(h>>>0<5)break a;d=4;f=h-5|0;if(f>>>0>=2){i=(f>>>1|0)+1&-2;a=0;while(1){c=d<<2;h=c+b|0;J[h>>2]=J[h>>2]+(J[(c|4)+b>>2]+J[h-4>>2]>>1);h=(c|8)+b|0;J[h>>2]=J[h>>2]+(J[(c|12)+b>>2]+J[h-4>>2]>>1);d=d+4|0;a=a+2|0;if((i|0)!=(a|0))continue;break}}if(f&2)break a;c=d<<2;a=c+b|0;J[a>>2]=J[a>>2]+(J[(c|4)+b>>2]+J[a-4>>2]>>1);return}c:{if((h|0)==-2)break c;c=1;a=h+1|0;d=(a>>>1|0)+1|0;i=d&3;if(a>>>0>=6){g=b+24|0;l=b+16|0;j=b+8|0;m=d& +-4;f=0;while(1){a=c<<2;k=a+b|0;e=+J[k>>2]*1.230174104914001;d:{if(R(e)<2147483648){d=~~e;break d}d=-2147483648}J[k>>2]=d;k=a+j|0;e=+J[k>>2]*1.230174104914001;e:{if(R(e)<2147483648){d=~~e;break e}d=-2147483648}J[k>>2]=d;k=a+l|0;e=+J[k>>2]*1.230174104914001;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}J[k>>2]=d;d=a+g|0;e=+J[d>>2]*1.230174104914001;g:{if(R(e)<2147483648){a=~~e;break g}a=-2147483648}J[d>>2]=a;c=c+8|0;f=f+4|0;if((m|0)!=(f|0))continue;break}}if(!i)break c;d=0;while(1){f=(c<<2)+b| +0;e=+J[f>>2]*1.230174104914001;h:{if(R(e)<2147483648){a=~~e;break h}a=-2147483648}J[f>>2]=a;c=c+2|0;d=d+1|0;if((i|0)!=(d|0))continue;break}}a=h+3|0;d=(a>>>1|0)+1|0;i=d&3;f=0;c=0;if(a>>>0>=6){l=d&-4;a=0;while(1){d=c<<2;j=d+b|0;e=+J[j>>2]*.8128930661159609;i:{if(R(e)<2147483648){g=~~e;break i}g=-2147483648}J[j>>2]=g;j=(d|8)+b|0;e=+J[j>>2]*.8128930661159609;j:{if(R(e)<2147483648){g=~~e;break j}g=-2147483648}J[j>>2]=g;j=(d|16)+b|0;e=+J[j>>2]*.8128930661159609;k:{if(R(e)<2147483648){g=~~e;break k}g=-2147483648}J[j>> +2]=g;g=(d|24)+b|0;e=+J[g>>2]*.8128930661159609;l:{if(R(e)<2147483648){d=~~e;break l}d=-2147483648}J[g>>2]=d;c=c+8|0;a=a+4|0;if((l|0)!=(a|0))continue;break}}if(i)while(1){d=(c<<2)+b|0;e=+J[d>>2]*.8128930661159609;m:{if(R(e)<2147483648){a=~~e;break m}a=-2147483648}J[d>>2]=a;c=c+2|0;f=f+1|0;if((i|0)!=(f|0))continue;break}a=-1;n:{if((h|0)!=-2){d=1;c=h+1|0;if(c>>>0>=2){l=(c>>>1|0)+1&-2;f=0;while(1){a=(d<<2)+b|0;i=J[a+4>>2];e=+(i+J[a-4>>2]|0)*-.443506852043971+ +J[a>>2];o:{if(R(e)<2147483648){g=~~e;break o}g= +-2147483648}J[a>>2]=g;e=+(i+J[a+12>>2]|0)*-.443506852043971+ +J[a+8>>2];p:{if(R(e)<2147483648){g=~~e;break p}g=-2147483648}J[a+8>>2]=g;d=d+4|0;f=f+2|0;if((l|0)!=(f|0))continue;break}}if(!(c&2)){a=(d<<2)+b|0;e=+(J[a+4>>2]+J[a-4>>2]|0)*-.443506852043971+ +J[a>>2];q:{if(R(e)<2147483648){c=~~e;break q}c=-2147483648}J[a>>2]=c}a=h+1|0;if(a>>>0<2)break n}c=2;while(1){f=c<<2;d=f+b|0;e=+(J[(f|4)+b>>2]+J[d-4>>2]|0)*-.882911075530934+ +J[d>>2];r:{if(R(e)<2147483648){f=~~e;break r}f=-2147483648}J[d>>2]=f;c=c+ +2|0;if(c>>>0<=a>>>0)continue;break}}d=3;s:{if(h>>>0<3)break s;c=h-3|0;if(c>>>0>=2){l=(c>>>1|0)+1&-2;f=0;while(1){a=(d<<2)+b|0;i=J[a+4>>2];e=+(i+J[a-4>>2]|0)*.052980118572961+ +J[a>>2];t:{if(R(e)<2147483648){g=~~e;break t}g=-2147483648}J[a>>2]=g;e=+(i+J[a+12>>2]|0)*.052980118572961+ +J[a+8>>2];u:{if(R(e)<2147483648){g=~~e;break u}g=-2147483648}J[a+8>>2]=g;d=d+4|0;f=f+2|0;if((l|0)!=(f|0))continue;break}}if(c&2)break s;a=(d<<2)+b|0;e=+(J[a+4>>2]+J[a-4>>2]|0)*.052980118572961+ +J[a>>2];v:{if(R(e)<2147483648){c= +~~e;break v}c=-2147483648}J[a>>2]=c}c=4;f=h-1|0;if(f>>>0<4)break a;while(1){d=c<<2;a=d+b|0;e=+(J[(d|4)+b>>2]+J[a-4>>2]|0)*1.586134342059924+ +J[a>>2];w:{if(R(e)<2147483648){d=~~e;break w}d=-2147483648}J[a>>2]=d;c=c+2|0;if(f>>>0>=c>>>0)continue;break}}}function $9(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;J[a+984>>2]=0;J[a+988>>2]=0;J[a+976>>2]=0;J[a+968>>2]=0;J[a+1012>>2]=0;J[a+2276>>2]=0;J[a+2280>>2]=0;J[a+536>>2]=0;j=a+2284|0;J[j>>2]=0;J[j+4>>2]=0;a:{b:{k=ph(a,b);c:{if(k){i=J[k+88>> +2];if(K[i+33|0]){if(K[k+64|0]|K[k+65|0]){i=iv(a,k);if(i)break c;i=J[k+88>>2]}J[a+2268>>2]=h;J[a+2264>>2]=g;J[a+2260>>2]=f;J[a+2256>>2]=e;H[a+2253|0]=d;H[a+2252|0]=c;J[a+2248>>2]=k;b=J[i+36>>2];J[a+316>>2]=b;c=J[i+40>>2];J[a+320>>2]=c;m=K[i+44|0];H[a+324|0]=m;j=K[i+45|0];H[a+325|0]=j;n=K[i+46|0];H[a+326|0]=n;o=K[i+47|0];H[a+327|0]=o;p=K[i+48|0];H[a+328|0]=p;l=m;d:{if(d>>>0>6)break d;e:{f:{q=1<>>0<=c>>>0&e+g>>>0<=b>>>0)){Jc(a,1066,0,0);return 1066}J[a+320>>2]=f;J[a+316>>2]=e;c=f;b=e;n:switch(d|0){case 2:case 5:b=(j<<7|(j<<24)-67108864>>>25)&255;if(b>>>0<6)break k;break a;case 0:break l;case 3:case 6:break n;default:break h}b=j<<7|(j<<24)-67108864>>>25;c=b&255;if(c>>>0<6)break j;break a;case 7:break h; +case 0:break m}J[a+320>>2]=f;J[a+316>>2]=e}i=Ck(a,k,e,f,l&255,j&255,n,o,p,0);if(i)break c;J[a+536>>2]=k;break g}if(!(51>>>b&1))break a;i=8;b=0;break i}if(!(51>>>c&1))break a;c=b&255;c=c<<3;b=c&31;if((c&63)>>>0>=32)i=2568>>>b|0;else i=((1<>>b;b=c&31;if((c&63)>>>0>=32)b=512>>>b|0;else b=((1<>>b}j=b;H[a+336|0]=i;H[a+325|0]=j;c=f;b=e}d=J[a+528>>2];J[a+536>>2]=d;i=Ck(a,d,b,c,l&255,j&255,n,o,p,1);if(i)break c;c=J[J[a+528>>2]+88>>2];d=J[k+88>>2];b=K[d+55| +0];H[c+55|0]=b;j=K[d+56|0];H[c+56|0]=j;o:{if(!b)break o;e=J[d+64>>2];J[c+64>>2]=e;if(!e)break o;b=0;if((e|0)!=1){l=e&-2;g=0;while(1){m=c+68|0;h=P(b,3);f=m+h|0;i=d+68|0;h=i+h|0;H[f|0]=K[h|0];H[f+1|0]=K[h+1|0];H[f+2|0]=K[h+2|0];h=P(b|1,3);f=h+m|0;h=h+i|0;H[f|0]=K[h|0];H[f+1|0]=K[h+1|0];H[f+2|0]=K[h+2|0];b=b+2|0;g=g+2|0;if((l|0)!=(g|0))continue;break}}if(!(e&1))break o;e=P(b,3);b=e+c|0;e=d+e|0;H[b+68|0]=K[e+68|0];H[b+69|0]=K[e+69|0];H[b+70|0]=K[e+70|0]}if(j){I[c+836>>1]=L[d+836>>1];I[c+838>>1]=L[d+838>> +1];I[c+840>>1]=L[d+840>>1];I[c+842>>1]=L[d+842>>1];J[c+844>>2]=J[d+844>>2];xc(c+848|0,d+848|0,256)}b=0;p:{if(!(K[a+496|0]|K[a+476|0])|(K[a+460|0]|!K[a+432|0]))break p;c=J[J[a+2248>>2]+88>>2];if(K[a+324|0]!=K[c+44|0])break p;b=K[a+325|0]==K[c+45|0]}H[a+2272|0]=b}i=0;q:switch(K[a+325|0]){case 0:r:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1220;break b}J[a+1012>>2]=1221;break b;case 1:if(!K[a+328|0]){J[a+1012>>2]=1222;break b}J[a+1012>>2]=1223;break b;case 3:if(!K[a+328|0]){J[a+1012>> +2]=1224;break b}J[a+1012>>2]=1225;break b;case 7:if(!K[a+328|0]){J[a+1012>>2]=1226;break b}J[a+1012>>2]=1227;break b;case 15:break r;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1228;break b}J[a+1012>>2]=1229;break b;case 2:s:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1230;break b}J[a+1012>>2]=1231;break b;case 8:break s;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1232;break b}J[a+1012>>2]=1233;break b;case 3:t:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1234;break b}J[a+ +1012>>2]=1235;break b;case 1:if(!K[a+328|0]){J[a+1012>>2]=1236;break b}J[a+1012>>2]=1237;break b;case 3:if(!K[a+328|0]){J[a+1012>>2]=1238;break b}J[a+1012>>2]=1239;break b;case 7:break t;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1240;break b}J[a+1012>>2]=1241;break b;case 4:u:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1242;break b}J[a+1012>>2]=1243;break b;case 8:break u;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1244;break b}J[a+1012>>2]=1245;break b;case 6:break q;default:break c}v:switch(K[a+ +324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1246;break b}J[a+1012>>2]=1247;break b;case 8:break v;default:break c}if(!K[a+328|0]){J[a+1012>>2]=1248;break b}J[a+1012>>2]=1249;break b}Jc(a,1058,0,0);return 1058}i=1045;Jc(a,1045,0,0)}return i}return 0}Jc(a,1059,0,0);return 1059}function lRa(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;a=Ac(a,0,256);d=J[b>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+8>>2]=e-i<<3;J[a>>2]=(e+i<<3)-4096;e= +d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+12>>2]=d+P(e,-15137)>>10;J[a+4>>2]=d+P(f,6270)>>10;d=J[b+4>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+40>>2]=e-i<<3;J[a+32>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+44>>2]=d+P(e,-15137)>>10;J[a+36>>2]=d+P(f,6270)>>10;d=J[b+8>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+72>>2]=e-i<<3;J[a+64>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+76>>2]=d+P(e,-15137)>>10;J[a+68>>2]=d+P(f, +6270)>>10;d=J[b+12>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+104>>2]=e-i<<3;J[a+96>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+108>>2]=d+P(e,-15137)>>10;J[a+100>>2]=d+P(f,6270)>>10;d=J[b+16>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+136>>2]=e-i<<3;J[a+128>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+140>>2]=d+P(e,-15137)>>10;J[a+132>>2]=d+P(f,6270)>>10;d=J[b+20>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+ +1|0];i=h+d|0;J[a+168>>2]=e-i<<3;J[a+160>>2]=(e+i<<3)-4096;e=d-h|0;f=g-f|0;d=P(e+f|0,4433)+512|0;J[a+172>>2]=d+P(e,-15137)>>10;J[a+164>>2]=d+P(f,6270)>>10;d=J[b+24>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];i=K[d+1|0];d=h+i|0;J[a+200>>2]=e-d<<3;d=(d+e<<3)-4096|0;J[a+192>>2]=d;e=i-h|0;g=g-f|0;f=P(e+g|0,4433)+512|0;J[a+204>>2]=f+P(e,-15137)>>10;J[a+196>>2]=f+P(g,6270)>>10;b=J[b+28>>2]+c|0;c=K[b+3|0];f=K[b|0];g=c+f|0;e=K[b+2|0];h=K[b+1|0];b=e+h|0;J[a+232>>2]=g-b<<3;b=(b+g<<3)-4096|0;J[a+224>>2]=b; +g=h-e|0;f=f-c|0;c=P(g+f|0,4433)+512|0;J[a+236>>2]=c+P(g,-15137)>>10;c=c+P(f,6270)>>10;J[a+228>>2]=c;g=J[a>>2];f=g+b|0;e=J[a+128>>2];h=J[a+96>>2];i=e+h|0;j=(f+i|0)+2|0;k=J[a+160>>2];l=J[a+64>>2];m=k+l|0;n=J[a+32>>2];o=n+d|0;p=m+o|0;J[a+128>>2]=j-p>>2;J[a>>2]=j+p>>2;i=f-i|0;j=o-m|0;f=P(i+j|0,4433)+16384|0;J[a+192>>2]=f+P(j,-15137)>>15;J[a+64>>2]=f+P(i,6270)>>15;f=h-e|0;b=g-b|0;g=P(f+b|0,-7373);d=n-d|0;i=d+f|0;e=l-k|0;j=e+b|0;h=P(i+j|0,9633)+16384|0;k=g+P(f,2446)|0;f=h+P(i,-16069)|0;J[a+224>>2]=k+f>> +15;h=h+P(j,-3196)|0;i=P(e,16819);e=P(d+e|0,-20995);J[a+160>>2]=h+(i+e|0)>>15;J[a+96>>2]=f+(e+P(d,25172)|0)>>15;J[a+32>>2]=h+(g+P(b,12299)|0)>>15;d=J[a+4>>2];b=d+c|0;f=J[a+132>>2];g=J[a+100>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+164>>2];j=J[a+68>>2];k=i+j|0;l=J[a+196>>2];m=J[a+36>>2];n=l+m|0;o=k+n|0;J[a+132>>2]=h-o>>2;J[a+4>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=P(e+h|0,4433)+16384|0;J[a+196>>2]=b+P(h,-15137)>>15;J[a+68>>2]=b+P(e,6270)>>15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=P(h+i|0, +9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+228>>2]=j+b>>15;e=e+P(i,-3196)|0;h=P(g,16819);g=P(f+g|0,-20995);J[a+164>>2]=e+(h+g|0)>>15;J[a+100>>2]=b+(g+P(f,25172)|0)>>15;J[a+36>>2]=e+(d+P(c,12299)|0)>>15;c=J[a+232>>2];d=J[a+8>>2];b=c+d|0;f=J[a+136>>2];g=J[a+104>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+168>>2];j=J[a+72>>2];k=i+j|0;l=J[a+200>>2];m=J[a+40>>2];n=l+m|0;o=k+n|0;J[a+136>>2]=h-o>>2;J[a+8>>2]=h+o>>2;e=b-e|0;h=n-k|0;b=P(e+h|0,4433)+16384|0;J[a+200>>2]=b+P(h,-15137)>>15;J[a+72>>2]=b+P(e,6270)>> +15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=P(h+i|0,9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+232>>2]=j+b>>15;e=e+P(i,-3196)|0;h=P(g,16819);g=P(f+g|0,-20995);J[a+168>>2]=e+(h+g|0)>>15;J[a+104>>2]=b+(g+P(f,25172)|0)>>15;J[a+40>>2]=e+(d+P(c,12299)|0)>>15;c=J[a+236>>2];d=J[a+12>>2];b=c+d|0;f=J[a+140>>2];g=J[a+108>>2];e=f+g|0;h=(b+e|0)+2|0;i=J[a+172>>2];j=J[a+76>>2];k=i+j|0;l=J[a+204>>2];m=J[a+44>>2];n=l+m|0;o=k+n|0;J[a+140>>2]=h-o>>2;J[a+12>>2]=h+o>>2;e=b-e|0;h=n- +k|0;b=P(e+h|0,4433)+16384|0;J[a+204>>2]=b+P(h,-15137)>>15;J[a+76>>2]=b+P(e,6270)>>15;b=g-f|0;c=d-c|0;d=P(b+c|0,-7373);f=m-l|0;h=f+b|0;g=j-i|0;i=g+c|0;e=P(h+i|0,9633)+16384|0;j=d+P(b,2446)|0;b=e+P(h,-16069)|0;J[a+236>>2]=j+b>>15;e=e+P(i,-3196)|0;h=P(g,16819);g=P(f+g|0,-20995);J[a+172>>2]=e+(h+g|0)>>15;J[a+108>>2]=b+(g+P(f,25172)|0)>>15;J[a+44>>2]=e+(d+P(c,12299)|0)>>15}function LFa(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;b=fc+-64|0;fc=b;J[a>>2]=0;i=a;J[699344]=0;a=_(4,12)| +0;e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{if((e|0)==1)break A;J[a+8>>2]=0;J[a>>2]=2393752;J[a+4>>2]=0;J[699344]=0;J[b+60>>2]=0;aa(5145,b+60|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break A;a=J[c>>2];J[699344]=0;e=b+56|0;da(5165,e|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break z;if(!J[b+56>>2])break f;J[699344]=0;da(5166,J[b+60>>2],e|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;a=J[c>>2];J[699344]=0;c=J[b+60>>2];a=_(5167,a|0)| +0;e=J[699344];J[699344]=0;if((e|0)==1)break y;J[699344]=0;d=b+48|0;ca(5168,d|0,c|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break y;J[699344]=0;c=b+44|0;J[c>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break x;J[699344]=0;e=b+40|0;J[e>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break w;J[699344]=0;g=b+36|0;J[g>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break v;J[699344]=0;f=aa(5169,d|0,-1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break u;a=Yc(f);if(a>>>0>=2147483632){J[699344]=0;$(3030,b+24|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break u;B()}B:{if(a>>>0<=10){H[b+35|0]=a;d=b+24|0;break B}J[699344]=0;h=(a|15)+1|0;d=_(4,h|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break u;J[b+24>>2]=d;J[b+28>>2]=a;J[b+32>>2]=h|-2147483648}k=cd(d,f,a)+a|0,l=0,H[k|0]=l;J[699344]=0;a=b+24|0;d=aa(3258,c|0,a|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break t;C:{if(d)break C;J[699344]=0;d=b+12|0;h=a;a=H[b+35|0];f=(a|0)<0;ca(1618,d|0,(f?J[b+24>>2]:h)|0,(f?J[b+28>>2]:a&255)|0);a=J[699344];J[699344]=0;if((a|0)==1)break s;J[699344]= +0;aa(5170,c|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break r;if(H[b+23|0]>=0)break C;uc(J[b+12>>2])}J[699344]=0;a=_(4,48)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;J[b+12>>2]=a;J[b+16>>2]=10;J[b+20>>2]=-2147483636;d=J[597374];J[a+32>>2]=J[597373];J[a+36>>2]=d;d=J[597372];J[a+24>>2]=J[597371];J[a+28>>2]=d;d=J[597370];J[a+16>>2]=J[597369];J[a+20>>2]=d;d=J[597368];J[a+8>>2]=J[597367];J[a+12>>2]=d;d=J[597366];J[a>>2]=J[597365];J[a+4>>2]=d;J[a+40>>2]=0;J[699344]=0;ga(5171,c|0,b+12|0,e|0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break p;if(H[b+23|0]<0)uc(J[b+12>>2]);J[699344]=0;a=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;J[b+12>>2]=a;J[b+16>>2]=6;J[b+20>>2]=-2147483640;d=J[597537];J[a+16>>2]=J[597536];J[a+20>>2]=d;d=J[597535];J[a+8>>2]=J[597534];J[a+12>>2]=d;d=J[597533];J[a>>2]=J[597532];J[a+4>>2]=d;J[a+24>>2]=0;J[699344]=0;ga(5171,e|0,b+12|0,g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break n;if(H[b+23|0]<0)uc(J[b+12>>2]);J[699344]=0;a=_(4,48)|0;d=J[699344];J[699344]=0;if((d|0)==1)break m; +J[b+12>>2]=a;J[b+16>>2]=9;J[b+20>>2]=-2147483636;J[a+32>>2]=J[597644];d=J[597643];J[a+24>>2]=J[597642];J[a+28>>2]=d;d=J[597641];J[a+16>>2]=J[597640];J[a+20>>2]=d;d=J[597639];J[a+8>>2]=J[597638];J[a+12>>2]=d;d=J[597637];J[a>>2]=J[597636];J[a+4>>2]=d;J[a+36>>2]=0;J[699344]=0;ga(5171,g|0,b+12|0,i|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;if(H[b+23|0]<0)uc(J[b+12>>2]);if(H[b+35|0]<0)uc(J[b+24>>2]);mh(g);mh(e);mh(c);wc(b+48|0);a=J[b+56>>2];J[b+56>>2]=0;if(!a)break f;J[699344]=0;c=J[a+4>>2]-1|0; +J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}break a}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;break g}a=Z()|0;break h}a=Z()|0;break i}a=Z()|0;break j}a=Z()|0;break k}a=Z()|0;break k}a=Z()|0;if(H[b+23|0]>=0)break k;uc(J[b+12>>2]);break k}a=Z()|0;break k}a=Z()|0;if(H[b+23|0]>=0)break k;uc(J[b+12>>2]);break k}a=Z()|0;break k}a=Z()|0;if(H[b+23|0]>=0)break k;uc(J[b+12>>2]);break k}a=Z()|0;break k}a=Z()| +0;if(H[b+23|0]>=0)break k;uc(J[b+12>>2])}if(H[b+35|0]>=0)break j;uc(J[b+24>>2])}mh(g)}mh(e)}mh(c)}wc(b+48|0);break d}a=J[b+60>>2];J[b+60>>2]=0;D:{if(!a)break D;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break D;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=b- -64|0;return}a=Z()|0}zc(b+56|0)}zc(b+60|0)}mh(i);ba(a|0);B()}ea(0)|0;Bc();B()}function E3(a,b,c,d,e,f,g,h,i,j){var 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;m=fc-16|0;fc=m;a:{if(j>>>0>32)break a;while(1){v=(e+g)*.5;w=(d+f)*.5;b:{c:{d:{e:{f:{u=c;k=i-c;l=h-b;c=(d-h)*k-l*(e-i);y=R(c);s=f-h;t=g-i;x=s*k-l*t;z=R(x);switch(((y>1E-30)<<1|z>1E-30)-1|0){case 2:break c;case 1:break d;case 0:break e;default:break f}}c=l*l+k*k;g:{if(c==0){c=d-b;k=c*c;c=e-u;c=k+c*c;k=s*s+t*t;break g}s=1/c;c=s*((d-b)*l+k*(e-u));s=s*((f-b)*l+k*(g-u));if(!(!(c<1)|(!(s<1)|!(c>0))))if(s>0)break a;h:{if(c<=0){c=b-d;t=c*c;c=u-e;c=t+c*c;break h}if(c>=1){c=h-d;t=c*c;c=i-e;c= +t+c*c;break h}t=c*l+b-d;c=c*k+u-e;c=t*t+c*c}if(s<=0){k=b-f;l=k*k;k=u-g;k=l+k*k;break g}if(s>=1){k=h-f;l=k*k;k=i-g;k=l+k*k;break g}l=s*l+b-f;k=s*k+u-g;k=l*l+k*k}l=O[a+8>>3];if(c>k){if(!(c>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];i:{if(j>>>0>o>>>0){j=J[a+48>>2];break i}p=j+J[a+52>>2]|0;j=vc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){xc(j,r,n<<2);uc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=vc(1024),J[A>>2]=B; +J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=e;O[j>>3]=d;J[a+36>>2]=J[a+36>>2]+1;break a}if(!(k>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];j:{if(j>>>0>o>>>0){j=J[a+48>>2];break j}p=j+J[a+52>>2]|0;j=vc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){xc(j,r,n<<2);uc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=vc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=g;O[j>> +3]=f;J[a+36>>2]=J[a+36>>2]+1;break a}if(!(x*x<=(l*l+k*k)*O[a+8>>3]))break b;c=O[a+16>>3];if(c<.01){n=J[a+40>>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];k:{if(j>>>0>o>>>0){j=J[a+48>>2];break k}p=j+J[a+52>>2]|0;j=vc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){xc(j,r,n<<2);uc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=vc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=v;O[j>>3]=w;J[a+36>>2]=J[a+36>>2]+ +1;break a}k=c;c=R(qf(i-g,h-f)-qf(g-e,f-d));c=c>=3.141592653589793?6.283185307179586-c:c;if(k>c){O[m+8>>3]=e;O[m>>3]=d;a=a+36|0;ap(a,m);O[m+8>>3]=g;O[m>>3]=f;ap(a,m);break a}k=O[a+24>>3];if(k==0|!(c>k))break b;O[m+8>>3]=g;O[m>>3]=f;ap(a+36|0,m);break a}if(!(c*c<=(l*l+k*k)*O[a+8>>3]))break b;c=O[a+16>>3];if(c<.01){n=J[a+40>>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];l:{if(j>>>0>o>>>0){j=J[a+48>>2];break l}p=j+J[a+52>>2]|0;j=vc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){xc(j,r,n<<2);uc(r); +p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=vc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=v;O[j>>3]=w;J[a+36>>2]=J[a+36>>2]+1;break a}k=c;c=R(qf(g-e,f-d)-qf(e-u,d-b));c=c>=3.141592653589793?6.283185307179586-c:c;if(k>c){O[m+8>>3]=e;O[m>>3]=d;a=a+36|0;ap(a,m);O[m+8>>3]=g;O[m>>3]=f;ap(a,m);break a}k=O[a+24>>3];if(k==0|!(c>k))break b;O[m+8>>3]=e;O[m>>3]=d;ap(a+36|0,m);break a}c=y+z;if(!(c*c<=(l*l+k*k)*O[a+8>>3]))break b; +k=O[a+16>>3];if(k<.01){n=J[a+40>>2];q=J[a+36>>2];o=q>>>6|0;if(n>>>0<=o>>>0){j=J[a+44>>2];m:{if(j>>>0>o>>>0){j=J[a+48>>2];break m}p=j+J[a+52>>2]|0;j=vc(p>>>0>1073741823?-1:p<<2);r=J[a+48>>2];if(r){xc(j,r,n<<2);uc(r);p=J[a+44>>2]+J[a+52>>2]|0;q=J[a+36>>2];n=J[a+40>>2]}J[a+44>>2]=p;J[a+48>>2]=j}A=(o<<2)+j|0,B=vc(1024),J[A>>2]=B;J[a+40>>2]=n+1}j=J[J[a+48>>2]+(o<<2)>>2]+((q&63)<<4)|0;O[j+8>>3]=v;O[j>>3]=w;J[a+36>>2]=J[a+36>>2]+1;break a}l=qf(g-e,f-d);c=R(l-qf(e-u,d-b));s=c>=3.141592653589793?6.283185307179586- +c:c;c=R(qf(i-g,h-f)-l);l=c>=3.141592653589793?6.283185307179586-c:c;if(k>s+l){O[m+8>>3]=v;O[m>>3]=w;ap(a+36|0,m);break a}c=O[a+24>>3];if(c==0)break b;if(c>3]=e;O[m>>3]=d;ap(a+36|0,m);break a}if(!(c>3]=g;O[m>>3]=f;ap(a+36|0,m);break a}d=(b+d)*.5;c=(d+w)*.5;k=(u+e)*.5;e=(k+v)*.5;s=b;t=d;x=c;l=e;f=(f+h)*.5;d=(w+f)*.5;b=(c+d)*.5;g=(g+i)*.5;e=(v+g)*.5;c=(l+e)*.5;j=j+1|0;E3(a,s,u,t,k,x,l,b,c,j);if((j|0)!=33)continue;break}}fc=m+16|0}function Z2a(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,u=0,v=0,w=0,x=0;i=fc-16|0;fc=i;n=J[b+12>>2];f=J[b+8>>2];j=J[b+4>>2];o=J[a+4>>2];m=J[a+16>>2];J[i+12>>2]=m;d=J[o+24>>2];e=K[o+28|0]&16?192:188;g=J[j+44>>2];if(g){q=K[j+36|0];p=J[j+48>>2]}else p=0;s=K[o+35|0];r=J[a+20>>2];t=K[d+201|0];v=d+e|0;k=(q<<24>>24)+n-((p<<24>>24)+f)|0;a:{if((k|0)<=0)break a;e=K[n-1|0];b:{if((e&192)!=128)break b;if((k|0)<2)break a;h=1;e=K[n-2|0];if((e&192)!=128)break b;if((k|0)<3)break a;h=2;e=K[n-3|0];if((e&192)== +128)break a}k=(e>>>0>191)+(e>>>0>223)|0;c:{if(e>>>0<=239)break c;k=0;if(e>>>0>253)break c;k=(e>>>0>251)+(e>>>0>247?4:3)|0}if(k>>>0<=h>>>0)break a;n=(h^-1)+n|0}s=s?2048:3072;u=d+60|0;w=t&1;x=J[d+208>>2];t=J[d+52>>2];k=J[v>>2];h=r-m|0;if((h|0)>0?g:0){H[j+36|0]=0;J[j+44>>2]=0;l=q;d=1}else d=0;d:{e:{f:while(1){g:{h:{if(!d){d=f;if(n>>>0<=d>>>0)break g;while(1){i:{j:{if((h|0)>0){f=d+1|0;e=H[d|0];g=e&255;k:{if((e|0)>=0){if(!(x>>>(g>>>2)&1))break k;d=J[i+12>>2];J[i+12>>2]=d+1;H[d|0]=e;d=f;break i}l:{m:{n:{o:{p:{if(e>>> +0<=4294967263){if(e>>>0<4294967234)break n;m=(K[f|0]^-128)&255;if(m>>>0>63)break n;d=d+2|0;r=g&31;e=L[(k+(L[u+(r<<1)>>1]<<1)|0)+(m<<1)>>1];if(s>>>0>e>>>0)break p;f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=e;break i}if((e|0)!=-32)break o;r=K[f|0]^128;if((r&224)!=32)break n;m=(K[d+2|0]^-128)&255;if(m>>>0>63)break n;d=d+3|0;e=L[(k+(L[u+(r<<1)>>1]<<1)|0)+(m<<1)>>1];if(s>>>0<=e>>>0)break j}f=d;g=r<<6|m;break h}if(e>>>0>4294967279)break m}d=(e>>>0>4294967231)+(e>>>0>4294967263)|0;break l}d=0;if(e>>>0>4294967293)break l; +d=(e>>>0>4294967291)+(e>>>0>4294967287?4:3)|0}l=1;p=d+1|0;q=0;d=1;continue f}e=L[(k+(L[u>>1]<<1)|0)+(g<<1)>>1];break h}J[c>>2]=15;break e}f=J[i+12>>2];J[i+12>>2]=f+1;H[f|0]=e}h=h-1|0;if(d>>>0>>0)continue;break}break g}q:{r:{s:{t:{e=p<<24>>24;u:{if((e|0)<=l<<24>>24)break u;d=J[b+12>>2];while(1){if(d>>>0<=f>>>0)break t;m=K[f|0];if((m&192)!=128)break u;f=f+1|0;g=m+(g<<6)|0;l=l+1<<24>>24;if((e|0)>(l|0))continue;break}l=p}d=g;e=l<<24>>24;g=(l&255)!=(p&255);if(g|(l&254)!=2)break s;g=d;d=e<<2;g=g-J[d+ +737616>>2]|0;if((g|0)>2]|g-57344>>>0>4294965247)break q;d=g;e=d>>10;break r}d=q<<24>>24;c=l<<24>>24;f=(d-c|0)+f|0;if((c|0)>(d|0))while(1){H[(d+j|0)+37|0]=K[f|0];f=f+1|0;d=d+1|0;if((c|0)>(d|0))continue;break}J[j+48>>2]=e;H[j+36|0]=l;J[j+44>>2]=g;J[b+8>>2]=f;J[a+16>>2]=J[i+12>>2];break d}if((l&255)!=4|g|d-63512704>>>0>1048575)break q;g=d-63447168|0;e=0;if(!w)break h;e=g>>>10|0}e=L[(k+((d&15)<<1)|0)+(L[(t+(g>>>3&126)|0)+(L[t+(e<<1)>>1]<<1)>>1]<<1)>>1];break h}d=q<<24>>24;f=(d-e|0)+f|0;v:{if((d| +0)>=(e|0))break v;p=e+(d^-1)|0;h=e-d&3;if(h){g=0;while(1){H[(d+j|0)+37|0]=K[f|0];d=d+1|0;f=f+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}}if(p>>>0<3)break v;while(1){g=d+j|0;H[g+37|0]=K[f|0];H[g+38|0]=K[f+1|0];H[g+39|0]=K[f+2|0];H[g+40|0]=K[f+3|0];f=f+4|0;d=d+4|0;if((e|0)!=(d|0))continue;break}}H[j+36|0]=l;J[b+8>>2]=f;J[a+16>>2]=J[i+12>>2];J[c>>2]=12;break d}w:{if((e&65535)>>>0>=s>>>0){d=J[i+12>>2];J[i+12>>2]=d+1;H[d|0]=e;h=h-1|0;break w}J[i+8>>2]=737644;d=zu(o,J[J[o+24>>2]+224>>2],g,i+8|0,737644, +i+12|0,J[i+12>>2]+h|0,0,-1,H[a+2|0],c);if(J[c>>2]>0){J[o+56>>2]=d;d=f;break g}if(J[o+180>>2]>=0){J[c>>2]=-127;d=f;break g}h=J[a+20>>2]-J[i+12>>2]|0}d=0;continue}break}if(J[c>>2]>0|J[o+180>>2]>=0)break e;c=J[b+12>>2];if(c>>>0<=d>>>0)break e;e=K[d|0];H[j+37|0]=e;f=1;g=(e>>>0>191)+(e>>>0>223)|0;x:{if(e>>>0<=239)break x;g=0;if(e>>>0>253)break x;g=(e>>>0>251)+(e>>>0>247?4:3)|0}p=g+1|0;g=d+1|0;y:{if(c>>>0<=g>>>0){c=g;break y}f=c+(d^-1)|0;l=f&3;z:{if((c-d|0)-2>>>0<3){f=1;break z}q=f&-4;h=0;d=j+37|0;f=1; +while(1){n=K[g|0];H[d+(f<<24>>24)|0]=n;o=K[g+1|0];H[d+(f+1<<24>>24)|0]=o;k=K[g+2|0];H[d+(f+2<<24>>24)|0]=k;m=K[g+3|0];H[d+(f+3<<24>>24)|0]=m;e=m+((o+((e<<12)+(n<<6)|0)<<12)+(k<<6)|0)|0;g=g+4|0;f=f+4|0;h=h+4|0;if((q|0)!=(h|0))continue;break}}if(l){d=0;while(1){h=K[g|0];H[((f<<24>>24)+j|0)+37|0]=h;g=g+1|0;f=f+1|0;e=h+(e<<6)|0;d=d+1|0;if((l|0)!=(d|0))continue;break}}}d=c;J[j+48>>2]=p;H[j+36|0]=f;J[j+44>>2]=e}J[b+8>>2]=d;J[a+16>>2]=J[i+12>>2]}fc=i+16|0}function bq(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;c=fc+-64|0;while(1){g=d<<2;b=g+c|0;g=a+g|0;J[b>>2]=K[g+16|0]|K[g+17|0]<<8|(K[g+18|0]<<16|K[g+19|0]<<24);d=d+1|0;if((d|0)!=16)continue;break}A=J[a>>2];l=J[a+8>>2];z=J[a+12>>2];g=J[a+4>>2];h=J[c+60>>2];i=J[c+56>>2];m=J[c+52>>2];j=J[c+48>>2];n=J[c+44>>2];o=J[c+40>>2];p=J[c+36>>2];q=J[c+32>>2];k=J[c+28>>2];r=J[c+24>>2];s=J[c+20>>2];t=J[c+16>>2];u=J[c+12>>2];v=J[c+8>>2];w=J[c+4>>2];x=J[c>>2];J[a+80>>2]=0;c=zEb(((((g& +l)+A|0)+((g^-1)&z)|0)+x|0)-680876936|0,7)+g|0;d=zEb((((w+z|0)+(c&g)|0)+((c^-1)&l)|0)-389564586|0,12)+c|0;b=zEb((((l+v|0)+(c&d)|0)+(g&(d^-1))|0)+606105819|0,17)+d|0;e=zEb((((g+u|0)+(d&b)|0)+(c&(b^-1))|0)-1044525330|0,22)+b|0;c=zEb((((c+t|0)+(b&e)|0)+(d&(e^-1))|0)-176418897|0,7)+e|0;d=zEb((((d+s|0)+(c&e)|0)+(b&(c^-1))|0)+1200080426|0,12)+c|0;b=zEb((((b+r|0)+(c&d)|0)+(e&(d^-1))|0)-1473231341|0,17)+d|0;e=zEb((((e+k|0)+(d&b)|0)+(c&(b^-1))|0)-45705983|0,22)+b|0;f=d+p|0;d=zEb((((c+q|0)+(b&e)|0)+(d&(e^-1))| +0)+1770035416|0,7)+e|0;f=zEb(((f+(d&e)|0)+(b&(d^-1))|0)-1958414417|0,12)+d|0;b=zEb((((b+o|0)+(d&f)|0)+(e&(f^-1))|0)-42063|0,17)+f|0;c=zEb((((e+n|0)+(f&b)|0)+(d&(b^-1))|0)-1990404162|0,22)+b|0;d=zEb((((d+j|0)+(c&b)|0)+(f&(c^-1))|0)+1804603682|0,7)+c|0;e=zEb((((f+m|0)+(d&c)|0)+(b&(d^-1))|0)-40341101|0,12)+d|0;f=e^-1;b=zEb((((b+i|0)+(d&e)|0)+(c&f)|0)-1502002290|0,17)+e|0;y=b^-1;B=(d+w|0)+(b&f)|0;f=zEb((((c+h|0)+(b&e)|0)+(d&y)|0)+1236535329|0,22)+b|0;c=zEb((B+(f&e)|0)-165796510|0,5)+f|0;d=(b+n|0)+(c& +(f^-1))|0;b=zEb((((e+r|0)+(f&y)|0)+(c&b)|0)-1069501632|0,9)+c|0;d=zEb((d+(b&f)|0)+643717713|0,14)+b|0;e=zEb((((f+x|0)+(b&(c^-1))|0)+(c&d)|0)-373897302|0,20)+d|0;c=zEb((((c+s|0)+(d&(b^-1))|0)+(e&b)|0)-701558691|0,5)+e|0;b=zEb((((b+o|0)+(e&(d^-1))|0)+(c&d)|0)+38016083|0,9)+c|0;d=zEb((((d+h|0)+(c&(e^-1))|0)+(b&e)|0)-660478335|0,14)+b|0;e=zEb((((e+t|0)+(b&(c^-1))|0)+(c&d)|0)-405537848|0,20)+d|0;c=zEb((((c+p|0)+(d&(b^-1))|0)+(e&b)|0)+568446438|0,5)+e|0;b=zEb((((b+i|0)+(e&(d^-1))|0)+(c&d)|0)-1019803690| +0,9)+c|0;d=zEb((((d+u|0)+(c&(e^-1))|0)+(b&e)|0)-187363961|0,14)+b|0;e=zEb((((e+q|0)+(b&(c^-1))|0)+(c&d)|0)+1163531501|0,20)+d|0;c=zEb((((c+m|0)+(d&(b^-1))|0)+(e&b)|0)-1444681467|0,5)+e|0;f=(d+k|0)+(c&(e^-1))|0;d=zEb((((b+v|0)+(e&(d^-1))|0)+(c&d)|0)-51403784|0,9)+c|0;b=zEb((f+(d&e)|0)+1735328473|0,14)+d|0;e=zEb((((e+j|0)+(d&(c^-1))|0)+(c&b)|0)-1926607734|0,20)+b|0;f=e^b;c=zEb(((c+s|0)+(f^d)|0)-378558|0,4)+e|0;y=b+n|0;b=zEb(((d+q|0)+(c^f)|0)-2022574463|0,11)+c|0;d=zEb((y+(b^(c^e))|0)+1839030562|0,16)+ +b|0;e=zEb(((e+i|0)+(d^(c^b))|0)-35309556|0,23)+d|0;c=zEb(((c+w|0)+(e^(d^b))|0)-1530992060|0,4)+e|0;b=zEb(((b+t|0)+(c^(d^e))|0)+1272893353|0,11)+c|0;d=zEb(((d+k|0)+(b^(c^e))|0)-155497632|0,16)+b|0;e=zEb(((e+o|0)+(d^(c^b))|0)-1094730640|0,23)+d|0;c=zEb(((c+m|0)+(e^(d^b))|0)+681279174|0,4)+e|0;b=zEb(((b+x|0)+(c^(d^e))|0)-358537222|0,11)+c|0;d=zEb(((d+u|0)+(b^(c^e))|0)-722521979|0,16)+b|0;e=zEb(((e+r|0)+(d^(c^b))|0)+76029189|0,23)+d|0;c=zEb(((c+p|0)+(e^(d^b))|0)-640364487|0,4)+e|0;b=zEb(((b+j|0)+(c^(d^ +e))|0)-421815835|0,11)+c|0;d=zEb(((d+h|0)+(b^(c^e))|0)+530742520|0,16)+b|0;f=b+k|0;k=b^-1;b=zEb(((e+v|0)+(d^(c^b))|0)-995338651|0,23)+d|0;e=zEb(((c+x|0)+(d^(k|b))|0)-198630844|0,6)+b|0;c=zEb((f+((e|d^-1)^b)|0)+1126891415|0,10)+e|0;f=e+j|0;j=b+s|0;b=zEb(((d+i|0)+(e^(c|b^-1))|0)-1416354905|0,15)+c|0;e=zEb((j+(c^(b|e^-1))|0)-57434055|0,21)+b|0;d=zEb((f+((e|c^-1)^b)|0)+1700485571|0,6)+e|0;f=e+w|0;i=b+o|0;b=zEb(((c+u|0)+(e^(d|b^-1))|0)-1894986606|0,10)+d|0;e=zEb((i+(d^(b|e^-1))|0)-1051523|0,15)+b|0;c= +zEb((f+((e|d^-1)^b)|0)-2054922799|0,21)+e|0;f=e+r|0;h=b+h|0;b=zEb(((d+q|0)+(e^(c|b^-1))|0)+1873313359|0,6)+c|0;e=zEb((h+(c^(b|e^-1))|0)-30611744|0,10)+b|0;d=zEb((f+((e|c^-1)^b)|0)-1560198380|0,15)+e|0;c=zEb(((c+m|0)+(e^(d|b^-1))|0)+1309151649|0,21)+d|0;b=zEb(((b+t|0)+(d^(c|e^-1))|0)-145523070|0,6)+c|0;J[a>>2]=b+A;e=zEb(((e+n|0)+(c^(b|d^-1))|0)-1120210379|0,10)+b|0;J[a+12>>2]=e+z;d=zEb(((d+v|0)+(b^(e|c^-1))|0)+718787259|0,15)+e|0;J[a+8>>2]=d+l;C=a,D=zEb(((c+p|0)+(e^(d|b^-1))|0)-343485551|0,21)+(d+ +g|0)|0,J[C+4>>2]=D}function iu(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=fc-32|0;fc=h;f=J[a+36>>2];d=J[f+16>>2];a:{if(K[d|0]!=60|K[d+1|0]!=63)break a;k=J[a+172>>2];J[a+172>>2]=2;J[a+200>>2]=J[a+200>>2]+2;J[f+16>>2]=d+2;J[f+32>>2]=J[f+32>>2]+2;c=f;d=K[d+2|0];if((d|0)==37){Yd(a);c=J[a+36>>2];d=K[J[c+16>>2]]}b:{if(d&255)break b;if((Nd(c)|0)>0)break b;while(1){e=J[a+40>>2];if((e|0)<2)break b;c:{d:{e:{if(!J[693384]){g=e-1|0;J[a+40>>2]=g;c=J[a+48>>2];break e}J[h+16>>2]=e;c=0;kc[J[663297]](J[693366], +36125,h+16|0);e=J[a+40>>2];if((e|0)<=0)break c;g=e-1|0;J[a+40>>2]=g;c=J[a+48>>2];j=0;d=0;if((e|0)==1)break d}j=J[((e<<2)+c|0)-8>>2];d=g}J[a+36>>2]=j;d=(d<<2)+c|0;c=J[d>>2];J[d>>2]=0}th(c);c=J[a+36>>2];if(K[J[c+16>>2]])break b;if((Nd(c)|0)<=0)continue;break}}f:{if(J[a+292>>2])break f;c=J[a+36>>2];d=J[c+16>>2];if((d-J[c+12>>2]|0)<501|(J[c+20>>2]-d|0)>499)break f;_g(a)}c=fc+-64|0;fc=c;b=a;a=hi(b);g:{if(!a)break g;h:{i:{g=K[a|0];j:{if((g|32)!=120)break j;i=K[a+1|0];if((i|32)!=109)break j;e=K[a+2|0];if((e| +32)!=108)break j;d=K[a+3|0];k:{if(!((g|0)!=120|(i|0)!=109|(e|0)!=108)){if(d)break k;oe(b,64,30955);break g}if(!d)break i}if(Pg(a,3413))break g;if(Pg(a,9928))break g;Vo(b,64,37768,0)}if(!rq(a,58))break g;if(!b)break h;if(J[b+172>>2]==-1?J[b+212>>2]:0)break g;J[b+84>>2]=205;J[c+20>>2]=0;J[c+24>>2]=0;J[c+16>>2]=a;Hc(0,0,0,b,0,3,205,2,a,0,0,0,37538,c+16|0);J[b+356>>2]=0;break g}if(!b){J[c+32>>2]=14100;Hc(0,0,0,0,0,1,64,3,0,0,0,0,32906,c+32|0);break g}if(J[b+172>>2]==-1?J[b+212>>2]:0)break g;J[b+84>>2]= +64;J[c+48>>2]=14100;Hc(0,0,0,b,0,1,64,3,0,0,0,0,32906,c+48|0);J[b+12>>2]=0;if(J[b+288>>2])break g;J[b+212>>2]=1;break g}J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=a;Hc(0,0,0,0,0,3,205,2,a,0,0,0,37538,c)}fc=c- -64|0;l:{m:{if(a){i=a;a=J[b+36>>2];e=J[a+16>>2];if(!(K[e|0]!=63|K[e+1|0]!=62)){if((a|0)!=(f|0)){oe(b,90,30417);f=J[b+36>>2];e=J[f+16>>2]}J[b+200>>2]=J[b+200>>2]+2;J[f+16>>2]=e+2;J[f+32>>2]=J[f+32>>2]+2;a=K[e+2|0];if((a|0)==37){Yd(b);f=J[b+36>>2];a=K[J[f+16>>2]]}n:{if(a&255)break n;if((Nd(f)|0)>0)break n; +He(b)}a=J[b>>2];o:{if(J[b+212>>2]|!a)break o;a=J[a+76>>2];if(!a)break o;kc[a|0](J[b+4>>2],i,0)}if(J[b+172>>2]!=-1)break l;break a}a=kc[J[663198]](100)|0;if(!a){se(b,0);break l}c=K[J[J[b+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))Uf(b,65,35208,i);be(b);g=100;e=Mf(b,h+28|0);j=0;c=0;while(1){p:{q:{r:{if((e|0)<=255){if((e|0)>31)break r;d=0;if(!(1<>>0>13)break q;break p}if(e-65536>>>0<1048576|e>>>0<55296|e-57344>>>0<8190)break p;d=0;break q}if((e|0)!=63|K[J[J[b+36>>2]+16>>2]+1|0]!=62)break p; +d=1}if(!(K[b+362|0]&8|c>>>0<15000001)){Uf(b,47,15141,i);kc[J[663199]](a);break l}H[a+c|0]=0;s:{if(!d){Uf(b,47,37323,i);break s}if(J[b+36>>2]!=(f|0)){oe(b,65,30417);f=J[b+36>>2]}J[b+200>>2]=J[b+200>>2]+2;c=J[f+16>>2];J[f+16>>2]=c+2;J[f+32>>2]=J[f+32>>2]+2;c=K[c+2|0];if((c|0)==37){Yd(b);f=J[b+36>>2];c=K[J[f+16>>2]]}t:{if(c&255)break t;if((Nd(f)|0)>0)break t;He(b)}c=J[b>>2];if(J[b+212>>2]|!c)break s;c=J[c+76>>2];if(!c)break s;kc[c|0](J[b+4>>2],i,a)}kc[J[663199]](a);break m}u:{if(c+5>>>0>>0){d=a;break u}g= +g<<1;d=kc[J[663200]](a,g)|0;if(d)break u;se(b,0);kc[J[663199]](a);break l}a=d;v:{if((j|0)<50){j=j+1|0;break v}w:{if(J[b+292>>2])break w;d=J[b+36>>2];if((J[d+20>>2]-J[d+16>>2]|0)>249)break w;Rd(b)}if(J[b+172>>2]==-1){kc[J[663199]](a);break a}j=0;if(K[b+362|0]&8|c>>>0<15000001)break v;Uf(b,47,15141,i);kc[J[663199]](a);break l}x:{if(J[h+28>>2]==1){H[a+c|0]=e;c=c+1|0;break x}c=ej(a+c|0,e)+c|0}d=J[b+36>>2];e=J[d+16>>2];y:{if(K[e|0]==10){J[d+32>>2]=1;J[d+28>>2]=J[d+28>>2]+1;break y}J[d+32>>2]=J[d+32>>2]+ +1}l=d;d=e+J[h+28>>2]|0;J[l+16>>2]=d;if(K[d|0]==37)Yd(b);e=Mf(b,h+28|0);if(e)continue;z:{if(J[b+292>>2])break z;d=J[b+36>>2];e=J[d+16>>2];if(!((e-J[d+12>>2]|0)<501|(J[d+20>>2]-e|0)>499)){_g(b);if(J[b+292>>2])break z}d=J[b+36>>2];if((J[d+20>>2]-J[d+16>>2]|0)>249)break z;Rd(b)}e=Mf(b,h+28|0);continue}}if(J[b+172>>2]==-1?J[b+212>>2]:0)break a;J[b+84>>2]=46;J[h>>2]=14025;Hc(0,0,0,b,0,1,46,3,0,0,0,0,32906,h);J[b+12>>2]=0;if(J[b+288>>2])break m;J[b+212>>2]=1}if(J[b+172>>2]==-1)break a}J[b+172>>2]=k}fc=h+ +32|0}function JC(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;h=fc-16|0;fc=h;a:{if(!a)break a;e=J[a+216>>2];if(!e){c=fj(b);if(c)break a}b:{c:{d:{e:{c=J[a+8>>2];f:{if(!c)break f;if(J[c+40>>2]==1){if((e|0)==2){J[c+40>>2]=0;e=J[c+44>>2];g:{h:{if(!e)break h;e=J[e+48>>2];if(!e)break h;e=Bf(e,b,0,0);if(e)break g}e=J[c+48>>2];i:{if(!e)break i;e=J[e+48>>2];if(!e)break i;e=Bf(e,b,0,0);if(e)break g}e=fj(b)}J[c+40>>2]=1;break c}d=J[c+44>>2];j:{if(d){e=J[d+48>>2];if(e){e=Bf(e,b,0,0);if(e)break b}e= +fj(b);if(e)break b;J[c+40>>2]=0;if(!d)break j;e=J[d+48>>2];if(!e)break j;e=Bf(e,b,0,0);if(!e)break j;break e}e=fj(b);if(e)break b;J[c+40>>2]=0}e=J[c+48>>2];k:{if(!e)break k;e=J[e+48>>2];if(!e)break k;e=Bf(e,b,0,0);if(e)break e}e=fj(b);if(e)break e;e=0;break d}e=J[c+44>>2];l:{if(!e)break l;e=J[e+48>>2];if(!e)break l;e=Bf(e,b,0,0);if(e)break b}c=J[c+48>>2];if(!c)break f;c=J[c+48>>2];if(!c)break f;e=Bf(c,b,0,0);if(e)break b}e=fj(b);break c}c=fc-16|0;fc=c;m:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break m;J[a+ +84>>2]=103;J[c+4>>2]=0;J[c>>2]=b;Hc(0,0,0,a,0,1,103,3,b,0,0,0,31481,c);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break m;J[a+212>>2]=1}fc=c+16|0;c=J[a+8>>2]}J[c+40>>2]=1}c=0;if(!e)break a}n:{if(J[e+12>>2]|!(J[a+104>>2]|J[a+16>>2])|J[e+48>>2]!=2)break n;l=J[a+440>>2];c=J[e+64>>2];f=J[e+52>>2];k=h+12|0;i=fc-16|0;fc=i;o:{if(!a){d=-1;break o}j=J[a+248>>2];if((j|0)>=41){d=89;if(!(J[a+360>>2]&524288)|j>>>0>1024)break o}if(k)J[k>>2]=0;if(!(c|f)){d=-1;break o}if(!J[a+8>>2]){d=-1;break o}c=k1(c,f,a);if(!c){d= +-1;break o}j=J[c>>2];J[c>>2]=J[a>>2];ax(c);f=oq(28571);if(!f){Vj(c);d=-1;break o}J[f+92>>2]=64;d=J[a+8>>2];g=J[d+80>>2];if(g){J[f+80>>2]=g;iL(g);d=J[a+8>>2]}J[f+44>>2]=J[d+44>>2];J[f+48>>2]=J[d+48>>2];d=J[d+72>>2];if(d)m=f,n=ff(d),J[m+72>>2]=n;d=yC(f,2297);if(!d){J[c>>2]=j;Vj(c);J[f+44>>2]=0;J[f+48>>2]=0;Rr(f);d=-1;break o}dh(f,d);cx(c,J[f+12>>2]);d=J[a+8>>2];p:{if(!d){J[c+8>>2]=f;break p}J[c+8>>2]=d;J[J[f+12>>2]+32>>2]=J[a+8>>2]}q:{if(J[c+292>>2])break q;d=J[c+36>>2];if((J[d+20>>2]-J[d+16>>2]|0)> +249)break q;Rd(c)}g=J[c+36>>2];d=J[g+16>>2];r:{if((J[g+20>>2]-d|0)<4)break r;H[i+12|0]=K[d|0];H[i+13|0]=K[d+1|0];H[i+14|0]=K[d+2|0];H[i+15|0]=K[d+3|0];d=Vr(i+12|0,4);if(!d)break r;Sr(c,d)}d=J[J[c+36>>2]+16>>2];s:{if(K[d|0]!=60|K[d+1|0]!=63|(K[d+2|0]!=120|K[d+3|0]!=109))break s;if(K[d+4|0]!=108)break s;d=K[d+5|0]-9|0;if(d>>>0>23|!(1<>2],28571))break s;if(Pg(J[J[c+36>>2]+48>>2],28571))break s;oe(c,109,30528)}d=J[a+4>>2];J[c+172>>2]=7;J[c+4>>2]=(a|0)==(d|0)?c: +d;d=J[a+104>>2];J[c+104>>2]=d;J[c+100>>2]=J[a+100>>2];J[c+276>>2]=J[a+276>>2];J[c+248>>2]=J[a+248>>2]+1;J[c+16>>2]=J[a+16>>2];t:{if(!d){g=0;d=0;break t}g=J[a+112>>2];d=J[a+116>>2]}J[c+120>>2]=0;J[c+124>>2]=0;J[c+116>>2]=d;J[c+112>>2]=g;J[c+128>>2]=0;J[c+132>>2]=0;d=J[c+296>>2];if(d)Wn(d);d=J[a+296>>2];J[c+296>>2]=d;m=c,n=te(d,9684,3),J[m+312>>2]=n;m=c,n=te(J[c+296>>2],4071,5),J[m+316>>2]=n;m=c,n=te(J[c+296>>2],14854,36),J[m+320>>2]=n;J[c+364>>2]=J[a+364>>2];J[c+348>>2]=J[a+348>>2];J[c+352>>2]=J[a+ +352>>2];J[c+280>>2]=J[a+280>>2];iC(c);J[a+104>>2]=J[c+104>>2];J[a+100>>2]=J[c+100>>2];g=J[J[c+36>>2]+16>>2];d=K[g|0];if(d){u:{if((d|0)==60){d=85;if(K[g+1|0]==47)break u}d=86}Xe(c,d,0)}if(J[c+52>>2]!=J[f+12>>2])Xe(c,85,0);v:{if(!J[c+12>>2]){d=J[c+84>>2];d=d>>>0<=1?1:d;break v}d=0;if(!k)break v;d=J[J[f+12>>2]+12>>2];J[k>>2]=d;if(d)while(1){J[d+20>>2]=0;d=J[d+24>>2];if(d)continue;break}J[J[f+12>>2]+12>>2]=0;d=0}J[c+348>>2]=0;J[c+352>>2]=0;J[c+296>>2]=0;J[c>>2]=j;Vj(c);J[f+44>>2]=0;J[f+48>>2]=0;Rr(f)}fc= +i+16|0;w:{if(!d){g2(e,J[h+12>>2]);J[e+68>>2]=1;if(J[e+72>>2])break n;b=(J[a+440>>2]-l<<1)+2|0;J[e+72>>2]=b;a=J[e+40>>2];if(!a)break n;c=K[a|0];if(!c)break n;while(1){if((c&255)==60)break w;c=K[a+1|0];a=a+1|0;if(c)continue;break}break n}x:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break x;J[a+84>>2]=104;J[h+4>>2]=0;J[h>>2]=b;Hc(0,0,0,a,0,1,104,3,b,0,0,0,32222,h);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break x;J[a+212>>2]=1}c=0;J[a+104>>2]=0;break a}J[e+72>>2]=b|1}c=e}fc=h+16|0;return c|0}function mYa(a){a= +a|0;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;e=fc-32|0;fc=e;c=J[a+4>>2];kc[J[J[c>>2]+20>>2]](c);J[a+8>>2]=0;J[a+12>>2]=0;J[e+28>>2]=0;p=4096;c=Dc(4096);b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)!=-1)while(1){f=J[e+28>>2];if((f|0)==(p|0)){a:{b:{b=p<<1;if(!c|!b)break b;g=fe(c,b);if(g){c=g;break a}g=Dc(b);if(!g)break b;if(p)xc(g,c,p);uc(c);c=g;break a}c=0}p=b}J[e+28>>2]=f+1;H[c+f|0]=d;b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)!=-1)continue; +break}J[e+20>>2]=0;J[e+16>>2]=0;J[e+12>>2]=0;H[e+11|0]=1;d=0;g=fc-8272|0;fc=g;J[g+8268>>2]=-1;p=c;k=hY(c,J[e+28>>2],g+8268|0);if(k){b=g+16|0;if(b){c=Ac(b,0,8248);J[c+8248>>2]=0;J[c+8200>>2]=-1;J[c+8204>>2]=-1}h=EY(J[g+8268>>2]);J[g+12>>2]=0;c:{if(!DY(h,b))break c;d:{if(!CY(k,h,g+12|0))break d;b=J[g+12>>2];c=J[b+8>>2]-J[b>>2]|0;l=P(c,J[b+12>>2]-J[b+4>>2]|0)>>>0>=5000001?5E6/(c>>>0)|0:l;J[e+24>>2]=0;J[e+12>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;c=J[b+24>>2];J[e+16>>2]=J[c+8>>2];J[e+20>>2]=J[c+12>>2];f=J[b+ +16>>2];J[e+12>>2]=f;if((f|0)>=2){m=J[c+8>>2];j=1;while(1){i=c+P(j,52)|0;if((m|0)!=J[i+8>>2]|J[c+12>>2]!=J[i+12>>2]|J[c+24>>2]!=J[i+24>>2])break c;j=j+1|0;if((f|0)!=(j|0))continue;break}}if((f|0)<=0)break c;c=P(J[e+20>>2],P(f,J[e+16>>2]));if((c|0)<=0)break c;w=e,x=vc(c),J[w+24>>2]=x;if(!l){if(!BY(h,k,b))break d;l=0;d=(yY(h,k)|0)!=0;break c}d=1;c=J[b+4>>2];r=J[b+12>>2];if(c>>>0>=r>>>0){l=1;break c}while(1){d=J[g+12>>2];b=c;f=r-b|0;l=f>>>0>>0?f:l;c=l+b|0;if(!AY(h,d,J[d>>2],b,J[d+8>>2],c)){oZ(k);xY(h); +Jn(J[g+12>>2]);d=0;J[g+12>>2]=0;k=hY(p,J[e+28>>2],g+8268|0);if(!k){k=0;h=0;break c}h=EY(J[g+8268>>2]);if(!DY(h,g+16|0))break c;if(!CY(k,h,g+12|0))break c;i=J[g+12>>2];if(!AY(h,i,J[i>>2],b,J[i+8>>2],c))break c}if(!BY(h,k,J[g+12>>2])){d=0;break c}if(!yY(h,k)){d=0;break c}i=J[e+24>>2];o=K[e+11|0];if(!o)i=P(J[e+16>>2],P(J[e+12>>2],f-l|0))+i|0;if(!i){d=0;break c}s=J[g+12>>2];b=J[s+24>>2];d=J[b+40>>2];j=-1<>2]>>d;e:{if((q|0)<=0)break e;m=j+J[b+8>>2]>>d;if((m|0)<=0)break e;b=J[e+12>>2]; +n=0;if(!o){f=0;j=0;while(1){f:{if((b|0)>0){n=0;while(1){if((b|0)>0){b=(f|0)/(m|0)|0;o=(b^-1)+q|0;d=0;t=f-P(b,m)<<2;while(1){H[d+i|0]=J[t+(J[(J[s+24>>2]+P(d,52)|0)+44>>2]+(P(o,J[e+16>>2])<<2)|0)>>2];d=d+1|0;b=J[e+12>>2];if((d|0)<(b|0))continue;break}}f=f+1|0;i=b+i|0;n=n+1|0;if((m|0)!=(n|0))continue;break}break f}f=f+m|0;i=P(b,m)+i|0}j=j+1|0;if((q|0)!=(j|0))continue;break}break e}t=(f^-1)+l|0;f=0;while(1){g:{if((b|0)>0){o=P(J[e+20>>2]+(t-f|0)|0,P(J[e+16>>2],b))+i|0;j=0;while(1){if((b|0)>0){b=(n|0)/ +(m|0)|0;u=(b^-1)+q|0;d=0;v=n-P(b,m)<<2;while(1){H[d+o|0]=J[v+(J[(J[s+24>>2]+P(d,52)|0)+44>>2]+(P(u,J[e+16>>2])<<2)|0)>>2];d=d+1|0;b=J[e+12>>2];if((d|0)<(b|0))continue;break}}n=n+1|0;o=b+o|0;j=j+1|0;if((m|0)!=(j|0))continue;break}break g}n=m+n|0}f=f+1|0;if((q|0)!=(f|0))continue;break}}d=1;if(c>>>0>>0)continue;break}break c}l=0}oZ(k);xY(h);h:{if(!d|l)break h;l=J[g+12>>2];if(!l)break h;i=J[e+24>>2];if(!i){d=0;break h}d=1;c=J[l+24>>2];b=J[c+40>>2];f=-1<>2]>>b;if((k|0)<=0)break h;h= +f+J[c+8>>2]>>b;if((h|0)<=0)break h;b=J[e+12>>2];c=0;if(!K[e+11|0]){j=0;while(1){f=0;i:{if((b|0)<=0){c=c+h|0;i=P(b,h)+i|0;break i}while(1){if((b|0)>0){b=(c|0)/(h|0)|0;m=k+(b^-1)|0;d=0;n=c-P(b,h)<<2;while(1){H[d+i|0]=J[n+(J[(J[l+24>>2]+P(d,52)|0)+44>>2]+(P(m,J[e+16>>2])<<2)|0)>>2];d=d+1|0;b=J[e+12>>2];if((d|0)<(b|0))continue;break}}c=c+1|0;i=b+i|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}d=1;j=j+1|0;if((k|0)!=(j|0))continue;break}break h}f=0;while(1){j:{if((b|0)>0){o=P(J[e+20>>2]+(f^-1)|0,P(J[e+16>> +2],b))+i|0;j=0;while(1){if((b|0)>0){b=(c|0)/(h|0)|0;m=k+(b^-1)|0;d=0;n=c-P(b,h)<<2;while(1){H[d+o|0]=J[n+(J[(J[l+24>>2]+P(d,52)|0)+44>>2]+(P(m,J[e+16>>2])<<2)|0)>>2];d=d+1|0;b=J[e+12>>2];if((d|0)<(b|0))continue;break}}c=c+1|0;o=b+o|0;j=j+1|0;if((h|0)!=(j|0))continue;break}break j}c=c+h|0}d=1;f=f+1|0;if((k|0)!=(f|0))continue;break}}Jn(J[g+12>>2])}fc=g+8272|0;k:{if(!d){if(!p)break k;uc(p);break k}if(p)uc(p);J[a+16>>2]=J[e+24>>2];J[a+8>>2]=P(J[e+20>>2],P(J[e+16>>2],J[e+12>>2]))}fc=e+32|0}function qaa(a){var b= +0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=fc-16|0;fc=e;a:{b:{b=J[a+352>>2];if(b)break b;J[a+348>>2]=4200;b=kc[J[a+152>>2]](4200)|0;J[a+352>>2]=b;if(b)break b;b=1;Jc(a,1,0,0);break a}c:{d:{e:{if(!(K[a+369|0]!=1?K[a+345|0]:0)){b=TE(a,b,a+392|0,8,e+8|0);if(b)break a;if(K[a+368|0])b=a+369|0;else{if(J[e+8>>2]!=8){b=4;Jc(a,4,0,0);break a}b=1;f:{if((xs(J[a+352>>2])|0)==-1991225785)break f;b=3;if((xs(J[a+352>>2])|0)==-1958064569)break f;b=2;if((xs(J[a+352>>2])|0)==-1974645177)break f;b=1025;Jc(a,1025,0,0);break a}J[a+ +8>>2]=b;if((xs(J[a+352>>2]+4|0)|0)!=218765834)break e;b=a+345|0}H[b|0]=1}b=0;if(K[a+368|0])break a;i=a+396|0;h=a+392|0;while(1){if(!(K[a+432|0]|!K[a+344|0]))H[a+497|0]=0;g:{if(J[a+400>>2]){b=J[a+516>>2];h:{i:{if(b)while(1){b=kc[J[b+4>>2]](a,b)|0;if(b)break a;b=J[a+516>>2];if(!b)break i;if(K[a+497|0]|K[a+499|0])break h;if(!(K[a+432|0]|!K[a+344|0]))H[a+497|0]=0;b=J[b+8>>2];J[a+516>>2]=b;if(!b){if(K[a+285|0]|!K[a+304|0])break i;b=QE(a);if(b)break a;b=J[a+516>>2];if(!b)break i;if(K[a+497|0]|K[a+499|0])break h}if(!K[a+ +500|0])continue;break i}j:{k:switch(K[a+498|0]-1|0){case 0:b=RE(a);break j;case 1:b=EO(a);break j;case 2:case 3:b=Dy(a);break j;case 4:b=maa(a);break j;case 6:b=CO(a);break j;case 5:case 7:b=DO(a);break j;case 8:b=laa(a);break j;case 9:b=kaa(a);break j;case 10:break k;default:break i}b=jaa(a)}if(b)break a}if(K[a+346|0]|(K[a+497|0]|K[a+499|0]))break h;H[a+369|0]=0;b=J[a+400>>2];b=JO(a,J[b+4>>2],J[b+8>>2]);if(b)break a;if(!K[a+502|0]|(K[a+497|0]|K[a+368|0]))break h;b=paa(a);if(b)break a}b=J[a+400>> +2];c=J[b>>2];J[a+400>>2]=c;if(!c)J[a+404>>2]=0;l:{m:{if(!K[b+12|0])break m;c=J[a+160>>2];if(!c)break m;kc[c|0](a,J[b+4>>2],J[b+8>>2]);break l}c=J[b+4>>2];if(!c)break l;kc[J[a+156>>2]](c,J[b+8>>2])}kc[J[a+156>>2]](b,24);break g}f=J[a+352>>2];j=J[a+348>>2];J[e+12>>2]=0;b=J[a+516>>2];n:{o:{if(b)while(1){b=kc[J[b+4>>2]](a,b)|0;if(b)break a;b=J[a+516>>2];if(!b)break o;if(K[a+497|0])break g;if(K[a+499|0])break n;if(!(K[a+432|0]|!K[a+344|0]))H[a+497|0]=0;b=J[b+8>>2];J[a+516>>2]=b;if(!b){if(K[a+285|0]|!K[a+ +304|0])break o;b=QE(a);if(b)break a;b=J[a+516>>2];if(!b)break o;if(K[a+497|0])break g;if(K[a+499|0])break n}if(!K[a+500|0])continue;break o}p:{q:switch(K[a+498|0]-1|0){case 0:b=RE(a);break p;case 1:b=EO(a);break p;case 2:case 3:b=Dy(a);break p;case 4:b=maa(a);break p;case 6:b=CO(a);break p;case 5:case 7:b=DO(a);break p;case 8:b=laa(a);break p;case 9:b=kaa(a);break p;case 10:break q;default:break o}b=jaa(a)}if(b)break a}if(K[a+497|0])break g;if(K[a+499|0])break n;r:{if(K[a+346|0])break r;s:{b=K[a+ +369|0];t:{if(!(b|!K[a+500|0])){H[a+496|0]=0;break t}c=0;if(b>>>0>2)break s}b=TE(a,f,h,4,e+12|0);if(b)break a;if(K[a+368|0]){H[a+369|0]=2;break r}b=xs(f);J[a+388>>2]=b;c=4;if(b>>>0<=134217727)break s;b=1028;break a}if(K[a+368|0])break r;u:{b=K[a+369|0];if(b>>>0<=2){g=c;c=J[e+12>>2];if((g|0)!=(c|0))break u}c=J[a+388>>2]+(K[a+116|0]&15?8:4)|0;v:{d=J[a+408>>2];if(!d)break v;g=J[d+20>>2];if(c>>>0>g>>>0)break v;J[d+20>>2]=g-c;b=J[d+16>>2];J[d+16>>2]=b+c;H[a+369|0]=0;b=IO(a,b,c);if(b)break a;if(J[d+20>> +2])break r;raa(a);break r}if(c>>>0>>0){b=TE(a,f,h,c,e+12|0);if(b)break a;if(K[a+368|0]){H[a+369|0]=3;break r}if((c|0)!=J[e+12>>2])break d;b=IO(a,f,c);if(!b)break r;break a}if(c>>>0>16777216){b=1065;break c}w:{if(b){d=J[a+360>>2];break w}J[a+396>>2]=0;b=1;d=c+1|0;J[a+356>>2]=d;d=kc[J[a+152>>2]](d)|0;J[a+360>>2]=d;if(!d)break c}b=TE(a,d,i,c,e+12|0);if(b)break a;if(K[a+368|0]){H[a+369|0]=4;break r}if((c|0)!=J[e+12>>2])break d;b=IO(a,J[a+360>>2],c);c=J[a+360>>2];if(c){kc[J[a+156>>2]](c,J[a+356>>2]); +J[a+360>>2]=0}if(!b)break r;break a}b=saa(a);if(b)break a;b=4;if(K[a+286|0]|c|(K[a+285|0]|K[a+289|0]))break c}if(K[a+497|0])break g}if(K[a+368|0]|!K[a+502|0])break g;b=paa(a);if(b)break a}if(!(J[a+516>>2]|!K[a+346|0])){b=0;break a}b=0;if(K[a+368|0]|K[a+499|0])break a;if(!K[a+497|0])continue;if(!K[a+344|0])break a;if(!K[a+432|0])continue;break}break a}b=1025;Jc(a,1025,0,0);break a}b=4}Jc(a,b,0,0)}fc=e+16|0;return b}function u0(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; +h=fc-256|0;fc=h;c=J[a+8>>2];a:{if(!c)break a;n=h|9;j=1;while(1){f=J[a+20>>2];d=J[a+24>>2];if(k&!(!f|!d))break a;b=J[a+12>>2];e=J[a+8>>2];b:{c:{if(f)break c;f=b+e|0;if(f>>>0>>0)break c;if(ud(c,784537,9))break c;b=f>>>0>=c+255>>>0?255:f-c|0;o=Ad(h,c,b)+b|0,p=0,H[o|0]=p;b=eg(n,47);d:{if(!b)break d;b=Og(b+1|0,785953);if(!b)break d;o=a,p=Id(b),J[o+20>>2]=p}b=J[a+8>>2]+J[a+12>>2]|0;e:{if(b>>>0<=c>>>0)break e;f:{while(1){g:{e=K[c|0];switch(e-10|0){case 0:case 3:break f;default:break g}}c=c+1|0;if((b| +0)!=(c|0))continue;break}c=b;break e}c=((e|0)==13)+c|0}c=b>>>0>c>>>0?(K[c|0]==10)+c|0:c;c=b>>>0>c>>>0?c:0;break b}h:{if(d)break h;i:{d=b+e|0;if(d>>>0>>0)break i;if(ud(c,782313,30))break i;J[a+24>>2]=2653344;break b}if(d>>>0>>0)break h;if(ud(c,786129,19))break h;o=a,p=Gd(256,4),J[o+24>>2]=p;d=0;while(1){b=d<<2;J[b+J[a+24>>2]>>2]=0;J[J[a+24>>2]+(b|4)>>2]=0;J[J[a+24>>2]+(b|8)>>2]=0;J[J[a+24>>2]+(b|12)>>2]=0;d=d+4|0;if((d|0)!=256)continue;break}b=J[a+8>>2]+J[a+12>>2]|0;j:{if(b>>>0<=c>>>0)break j; +k:{while(1){l:{e=K[c|0];switch(e-10|0){case 0:case 3:break k;default:break l}}c=c+1|0;if((b|0)!=(c|0))continue;break}c=b;break j}c=((e|0)==13)+c|0}c=b>>>0>c>>>0?(K[c|0]==10)+c|0:c;if(b>>>0<=c>>>0)break a;l=0;if(!c)break a;while(1){e=c;b=c;c=J[a+8>>2]+J[a+12>>2]|0;m:{if(b>>>0>=c>>>0)break m;n:{while(1){o:{d=K[b|0];switch(d-10|0){case 0:case 3:break n;default:break o}}b=b+1|0;if((c|0)!=(b|0))continue;break}b=c;break m}b=((d|0)==13)+b|0}b=b>>>0>>0?(K[b|0]==10)+b|0:b;c=b>>>0>>0?b:0;if(!c){c=e;break b}b= +c-e|0;b=(b|0)>=255?255:b;f=Ad(h,e,b);H[b+f|0]=0;b=f;while(1){d=K[b|0];if(!((d|0)!=32&(d|0)!=9)){b=b+1|0;continue}break}p:{q:{r:{if(!ud(e-4|0,787626,4)){d=!ud(b,788881,3);break r}i=ud(e-5|0,788469,4);g=ud(b,788881,3);d=!g;if(!i)break r;if(g)break q}b=(d?3:0)+b|0;while(1){s:{t:{u:{d=K[b|0];if((d|0)!=9){if((d|0)==56)break u;if((d|0)!=32)break t}b=b+1|0;continue}if(K[b+1|0]!=35){i=10;d=56;break s}d=K[b+2|0];i=8;b=b+2|0;break s}i=10;if((d-48&255)>>>0>9)break p}g=0;f=d<<24>>24;v:{if((f|0)<48)break v;e= +b;m=i|48;if((m|0)<=(f|0))break v;while(1){b=e+1|0;g=(P(i,g)+f|0)-48|0;d=H[e+1|0];if((d|0)<48)break v;f=d;e=b;if((d|0)<(m|0))continue;break}}while(1){w:{x:{y:{e=d&255;switch(e-32|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break p;case 15:break w;case 0:break x;default:break y}}if((e|0)!=9)break p}d=K[b+1|0];b=b+1|0;continue}break}e=b+1|0;b=e;while(1){z:{A:{B:{d=K[b|0];switch(d|0){case 0:case 9:break z;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break A; +default:break B}}if((d|0)==32)break z}b=b+1|0;continue}break}if(g>>>0<=255){H[b|0]=0;f=g<<2;Mc(J[f+J[a+24>>2]>>2]);e=Id(e);J[f+J[a+24>>2]>>2]=e;H[b|0]=d}while(1){e=d&255;if(!((e|0)!=32&(e|0)!=9)){d=K[b+1|0];b=b+1|0;continue}break}if(ud(b,789643,3))break p;d=b+3|0;while(1){b=K[d|0];if(!((b|0)!=32&(b|0)!=9)){d=d+1|0;continue}break}b=d+3|0;if(!ud(d,788881,3))continue;break}break p}if(!Og(f,791284))break p;b=Og(0,785953);if(!b)break p;if(Ic(b,783327))break p;c=e;break b}l=l+1|0;if((l|0)!=300)continue; +break}break b}C:{if(k)break C;d=c+11|0;f=b+e|0;if(d>>>0>f>>>0)break C;if(ud(c,791372,11))break C;e=f>>>0>=c+266>>>0?255:f-d|0;b=Ad(h,d,e);H[b+e|0]=0;b=eg(b,91);if(!b){k=1;break b}k=1;b=b+1|0;e=eg(b,93);if(!e)break b;H[e|0]=0;b=Og(b,785953);if(!b)break b;o=a,q=qg(b),O[o+32>>3]=q;b=Og(0,785953);if(!b)break b;o=a,q=qg(b),O[o+40>>3]=q;b=Og(0,785953);if(!b)break b;o=a,q=qg(b),O[o+48>>3]=q;b=Og(0,785953);if(!b)break b;o=a,q=qg(b),O[o+56>>3]=q;b=Og(0,785953);if(!b)break b;o=a,q=qg(b),O[o+64>>3]=q;b=Og(0, +785953);if(!b)break b;o=a,q=qg(b),O[o+72>>3]=q;break b}b=b+e|0;D:{if(b>>>0<=c>>>0)break D;E:{while(1){F:{e=K[c|0];switch(e-10|0){case 0:case 3:break E;default:break F}}c=c+1|0;if((b|0)!=(c|0))continue;break}c=b;break D}c=((e|0)==13)+c|0}c=b>>>0>c>>>0?(K[c|0]==10)+c|0:c;c=b>>>0>c>>>0?c:0}if(j>>>0>99)break a;j=j+1|0;if(c)continue;break}}J[a+80>>2]=1;fc=h+256|0}function PBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-80|0;fc=d;a:{b:{c:{d:{if(!K[a+89|0]){a=Qc(d+44|0,2390221,2385400,286,2413455,0);J[699344]= +0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break a}c=-1;if(!(J[a+92>>2]&1))break c;e:{f:switch(J[a+56>>2]-1|0){case 0:case 1:case 4:if(!(J[a+92>>2]&4))break c;f=J[a+112>>2]+100|0;a=f;e=ql(b);a=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];g:{if(!a)break g;while(1){h:{if((e|0)==J[a+12>>2])if(Bm(a+16|0,b))break h;a=J[a+8>>2];if(a)continue;break g}break}c=fc-32|0;fc=c;e=ql(b);i:{j:{k:{a=J[J[f+12>>2]+((e>>>0)%M[f+8>>2]<<2)>>2];if(a)while(1){if((e|0)==J[a+12>>2])if(Bm(a+16|0,b))break k;a=J[a+ +8>>2];if(a)continue;break}a=Qc(c+8|0,2391407,2390824,1156,2417882,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j;break a}fc=c+32|0;break i}B()}c=J[a+52>>2]}break c;case 2:if(!(J[a+92>>2]&2))break c;J[d+4>>2]=0;J[699344]=0;c=d+44|0;da(5396,c|0,b|0);f=J[699344];J[699344]=0;l:{if((f|0)!=1){J[699344]=0;f=aa(5236,c|0,a+8|0)|0;c=J[699344];J[699344]=0;m:{n:{o:{p:{q:{if((c|0)!=1){J[d+68>>2]=2392964;J[d+44>>2]=2392932;c=J[d+72>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+ +4>>2]](c);J[d+72>>2]=0}J[d+60>>2]=2392964;c=J[d- -64>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[d+64>>2]=0}wc(d+52|0);if(f){a=J[a+48>>2];J[699344]=0;c=d+44|0;da(5283,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break q;J[699344]=0;b=d+40|0;ca(5337,b|0,a|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break p;J[699344]=0;aa(5153,d+4|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break o;a=J[d+40>>2];J[d+40>>2]=0;r:{if(!a)break r;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344]; +J[699344]=0;if((c|0)==1)break b;if(b)break r;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}wc(d+44|0)}a=J[d+4>>2];if(a)break m;c=-1;break c}a=Z()|0;Ed(d+44|0);break l}a=Z()|0;break l}a=Z()|0;break n}a=Z()|0;zc(d+40|0)}wc(d+44|0);break l}c=J[a+56>>2];J[699344]=0;J[d+4>>2]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)!=1){if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break b}a=Z()|0}zc(d+4|0);ba(a|0);B();case 3:if(!(J[a+92>>2]& +2))break c;J[d+40>>2]=0;J[699344]=0;c=d+44|0;da(5396,c|0,b|0);f=J[699344];J[699344]=0;s:{if((f|0)!=1){J[699344]=0;f=d+4|0;da(5396,f|0,a+8|0);e=J[699344];J[699344]=0;t:{u:{v:{w:{x:{y:{z:{if((e|0)!=1){J[699344]=0;f=aa(5236,c|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break z;J[d+28>>2]=2392964;J[d+4>>2]=2392932;c=J[d+32>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[d+32>>2]=0}J[d+20>>2]=2392964;c=J[d+24>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[d+ +24>>2]=0}wc(d+12|0);J[d+68>>2]=2392964;J[d+44>>2]=2392932;c=J[d+72>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[d+72>>2]=0}J[d+60>>2]=2392964;c=J[d- -64>>2];if(c){e=J[c+4>>2]-1|0;J[c+4>>2]=e;if(!e)kc[J[J[c>>2]+4>>2]](c);J[d+64>>2]=0}wc(d+52|0);if(f){a=J[a+48>>2];J[699344]=0;c=d+44|0;da(5283,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break x;J[699344]=0;b=d+4|0;ca(5337,b|0,a|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break w;J[699344]=0;aa(5153,d+40|0,b|0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break v;a=J[d+4>>2];J[d+4>>2]=0;A:{if(!a)break A;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(b)break A;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break e}wc(d+44|0)}a=J[d+40>>2];if(a)break t;c=-1;break c}a=Z()|0;break y}a=Z()|0;Ed(d+4|0)}Ed(d+44|0);break s}a=Z()|0;break s}a=Z()|0;break u}a=Z()|0;zc(d+4|0)}wc(d+44|0);break s}c=J[a+56>>2];J[699344]=0;J[d+40>>2]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)!=1){if(b)break c; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break b}a=Z()|0}zc(d+40|0);ba(a|0);B();default:break f}a=Qc(d+44|0,2402552,2385400,815,2413604,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break a}ea(0)|0;Bc()}B()}fc=d+80|0;return c|0}ea(0)|0;Bc();B()}b=Z()|0;Kc(a);ba(b|0);B()}function $Ha(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=fc-32|0;fc=f;J[f+28>>2]=0;a:{if(!(kc[J[J[b>>2]+20>>2]](b,c,f+28|0)|0)){kc[J[J[b>>2]+48>>2]](f+ +16|0,b,c,0);b:{c:{d:{e:{e=J[f+20>>2];c=J[f+16>>2];if((e|0)==(c|0))break e;J[699344]=0;J[f>>2]=4978;ia(4979,c|0,e|0,f|0,62-(S((e-c|0)/12|0)<<1)|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;e=J[f+16>>2];g=J[f+20>>2];if((e|0)==(g|0))break e;while(1){d=K[e+11|0];h=d<<24>>24<0;k=h?J[e>>2]:e;c=k;j=h?J[e+4>>2]:d;i=c+(j<<2)|0;h=i;d=c;if(j){f:while(1){d=c;while(1){g:{c=d+4|0;if(J[d>>2]==46){if((c|0)==(i|0))break g;if(J[c>>2]!=112)continue f;if((i|0)==(d+8|0))break g;if(J[d+8>>2]!=105)continue f;if((i|0)== +(d+12|0))break g;if(J[d+12>>2]!=101)continue f;if((i|0)==(d+16|0))break g;if(J[d+16>>2]!=99)continue f;if((i|0)==(d+20|0))break g;h=J[d+20>>2]==101?d:h;continue f}d=c;if((i|0)!=(c|0))continue}break}break}d=h}c=(d|0)==(i|0)?-1:d-k>>2;h:{if(!((c|0)==-1|(c+6|0)!=(j|0))){e=e+12|0;break h}c=J[f+16>>2];e=P((e-c|0)/12|0,12)+c|0;d=e;c=d+12|0;if((g|0)==(c|0))c=g;else{while(1){if(H[d+11|0]<0)uc(J[d>>2]);h=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=h;J[d+8>>2]=J[c+8>>2];H[c+11|0]=0;J[c>>2]=0;d=d+12|0;c=c+12|0;if((g| +0)!=(c|0))continue;break}c=J[f+20>>2]}g=P((d-e|0)/12|0,12)+e|0;if((c|0)!=(g|0))while(1){d=c-12|0;if(H[c-1|0]<0)uc(J[d>>2]);c=d;if((g|0)!=(c|0))continue;break}J[f+20>>2]=g}if((e|0)!=(g|0))continue;break}e=J[f+16>>2];if((g|0)==(e|0))break e;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;i:{j:{k:{l:{m:{while(1){J[f+12>>2]=0;c=J[J[b>>2]+20>>2];J[699344]=0;c=ga(c|0,b|0,e|0,f+12|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;n:{if(!c)break n;d=J[f+12>>2];c=J[d+4>>2];if(c>>>0>=2147483632){J[699344]=0;$(3030,f|0);b= +J[699344];J[699344]=0;if((b|0)==1)break l;B()}g=J[d>>2];o:{if(c>>>0<=10){H[f+11|0]=c;d=f;break o}J[699344]=0;h=(c|15)+1|0;d=_(4,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break m;J[f>>2]=d;J[f+4>>2]=c;J[f+8>>2]=h|-2147483648}l=cd(d,g,c)+c|0,m=0,H[l|0]=m;J[699344]=0;c=K[f+11|0];d=c<<24>>24<0;ga(2835,a|0,(d?J[f>>2]:f)|0,(d?J[f+4>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;if(H[f+11|0]>=0)break n;uc(J[f>>2])}c=J[f+12>>2];if(c){p:{if(!K[c+8|0])break p;d=J[c>>2];if(!d)break p;uc(d)}uc(c)}e= +e+12|0;if((e|0)!=J[f+20>>2])continue;break}a=J[f+16>>2];break d}c=Z()|0;break i}c=Z()|0;break i}c=Z()|0;if(H[f+11|0]>=0)break i;uc(J[f>>2]);break i}c=Z()|0}if(H[a+11|0]>=0)break b;uc(J[a>>2]);break b}H[a|0]=0;H[a+11|0]=0;a=e}if(!a)break a;if((a|0)!=(e|0)){while(1){b=e-12|0;if(H[e-1|0]<0)uc(J[b>>2]);e=b;if((a|0)!=(e|0))continue;break}e=J[f+16>>2]}J[f+20>>2]=a;uc(e);break a}c=Z()|0}Ag(f+16|0);ba(c|0);B()}b=J[f+28>>2];c=J[b>>2];q:{r:{d=J[b+4>>2];if(d>>>0<=3){H[a+11|0]=d;break r}s:{t:{u:{v:switch(K[c| +0]-239|0){case 0:if(K[c+1|0]!=187|K[c+2|0]!=254|K[c+3|0]!=191)break t;d=d-3|0;if(d>>>0>=2147483632)break s;c=c+3|0;w:{if(d>>>0<=10){H[a+11|0]=d;break w}e=(d|15)+1|0;b=vc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b}l=xc(a,c,d)+d|0,m=0,H[l|0]=m;break q;case 16:if(K[c+1|0]!=254)break t;e=1;if(K[c+2|0]|K[c+3|0])break u;break t;case 15:break v;default:break t}if(K[c+1|0]!=255)break t}b=c+2|0;c=d-2|0;i=c>>>1|0;j=vc((c|0)<0?-1:i<<2);x:{if(e){e=0;while(1){d=b+2|0;c=K[b+1|0]<<8;h=c|K[b|0];y:{if(c- +57344>>>0<4294965248)b=d;else{e=e+1|0;if((i|0)==(e|0))break x;c=b+4|0;b=K[b+3|0];if((b&252)!=220){b=c;break y}h=(h<<10&1047552|(K[d|0]|b<<8&768))+65536|0;b=c}J[j+(g<<2)>>2]=h;g=g+1|0}e=e+1|0;if((i|0)>(e|0))continue;break}break x}e=0;while(1){c=K[b|0]<<8;h=c|K[b+1|0];z:{if(c-57344>>>0<4294965248)b=b+2|0;else{e=e+1|0;if((i|0)==(e|0))break x;c=b+4|0;d=K[b+2|0];if((d&252)!=220){b=c;break z}h=(h<<10&1047552|(K[b+3|0]|d<<8&768))+65536|0;b=c}J[j+(g<<2)>>2]=h;g=g+1|0}e=e+1|0;if((i|0)>(e|0))continue;break}}Zr(a, +j,g);uc(j);break q}if(d>>>0>=2147483632)break s;A:{if(d>>>0<=10){H[a+11|0]=d;break A}e=(d|15)+1|0;b=vc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b}break r}_d(a);B()}l=xc(a,c,d)+d|0,m=0,H[l|0]=m}a=J[f+28>>2];if(!a)break a;B:{if(!K[a+8|0])break B;b=J[a>>2];if(!b)break B;uc(b)}uc(a)}fc=f+32|0}function Hc(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=fc-16|0;fc=t;a:{if(!g|!J[693382]&(h|0)==1)break a;b:{c:{d:{if(!(1<>>0>23)break d;q=d;if(!q|a)break d; +a=J[q>>2];if(!a|J[a+108>>2]!=-554844497)break c;a=J[a+124>>2];if(!a)break c;c=J[q+4>>2];break b}if(a)break b}a=J[693368];c=a?J[693367]:c}e:{if(!m){m=kc[J[663198]](26)|0;if(!m){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break e}H[m+25|0]=0;H[m+24|0]=K[17233];n=K[17229]|K[17230]<<8|(K[17231]<<16|K[17232]<<24);o=K[17225]|K[17226]<<8|(K[17227]<<16|K[17228]<<24);H[m+16|0]=o;H[m+17|0]=o>>>8;H[m+18|0]=o>>>16;H[m+19|0]=o>>>24;H[m+20|0]=n;H[m+21|0]=n>>>8;H[m+22|0]=n>>>16;H[m+23|0]=n>>>24;n=K[17221]|K[17222]<<8|(K[17223]<< +16|K[17224]<<24);o=K[17217]|K[17218]<<8|(K[17219]<<16|K[17220]<<24);H[m+8|0]=o;H[m+9|0]=o>>>8;H[m+10|0]=o>>>16;H[m+11|0]=o>>>24;H[m+12|0]=n;H[m+13|0]=n>>>8;H[m+14|0]=n>>>16;H[m+15|0]=n>>>24;n=K[17213]|K[17214]<<8|(K[17215]<<16|K[17216]<<24);o=K[17209]|K[17210]<<8|(K[17211]<<16|K[17212]<<24);H[m|0]=o;H[m+1|0]=o>>>8;H[m+2|0]=o>>>16;H[m+3|0]=o>>>24;H[m+4|0]=n;H[m+5|0]=n>>>8;H[m+6|0]=n>>>16;H[m+7|0]=n>>>24;s=m;break e}o=150;p=kc[J[663195]](150)|0;if(!p)break e;v=-1;while(1){s=p;if((o|0)>63999)break e; +J[t+12>>2]=n;p=tm(p,o,m,n);if(!((p|0)<0|(o|0)<=(p|0))){w=(p|0)==(v|0);v=p;if(w)break e}o=((p|0)<0?100:p+1|0)+o|0;p=kc[J[663200]](s,o)|0;if(p)continue;break}}f:{if(q){o=J[q+36>>2];g:{if(!o)break g;r=J[o+4>>2];h:{if(r)break h;r=0;m=J[q+40>>2];if((m|0)<2)break h;o=J[(J[q+48>>2]+(m<<2)|0)-8>>2];if(!o)break g;r=J[o+4>>2]}x=J[o+32>>2];u=J[o+28>>2]}n=q+384|0;p=0;break f}p=0;n=2773476;if(!e)break f;o=0;m=J[e+32>>2];if(m)p=J[m+72>>2]?e:0;i:{j:{k:{l:{while(1){if(J[e+4>>2]==1)break l;e=J[e+20>>2];if(o>>>0<= +8){o=o+1|0;if(e)continue}break}if(!(e?p:1))break k;if(e)break j;break i}if(p)break j}m=J[e+32>>2];if(!m){p=0;break j}p=J[m+72>>2]?e:0}if(J[e+4>>2]!=1)break i;u=L[e+56>>1]}if(u?(u|0)!=65535:0)break f;u=qx(e,0)}if(J[n+4>>2]){m=J[n+8>>2];if(m)kc[J[663199]](m);m=J[n+16>>2];if(m)kc[J[663199]](m);m=J[n+24>>2];if(m)kc[J[663199]](m);m=J[n+28>>2];if(m)kc[J[663199]](m);m=J[n+32>>2];if(m)kc[J[663199]](m);J[n+16>>2]=0;J[n+20>>2]=0;J[n+48>>2]=0;J[n+40>>2]=0;J[n+44>>2]=0;J[n+32>>2]=0;J[n+36>>2]=0;J[n+24>>2]=0; +J[n+28>>2]=0}J[n+12>>2]=h;J[n+8>>2]=s;J[n+4>>2]=g;J[n>>2]=f;m:{if(r){o=r;while(1){f=o;o=f+1|0;if(K[f|0])continue;break}m=0;f=f-r|0;if((f|0)>=0){g=kc[J[663198]](f+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);J[n+16>>2]=0;break m}m=xc(g,r,f);H[f+m|0]=0}J[n+16>>2]=m;break m}if(!p)break m;n:{f=J[J[p+32>>2]+72>>2];o:{if(!f)break o;o=f;while(1){g=o;o=o+1|0;if(K[g|0])continue;break}g=g-f|0;if((g|0)<0)break o;m=kc[J[663198]](g+1|0)|0;if(m)break n;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0)}J[n+16>>2]=0;if(!e)break m; +f=J[e+32>>2];if(!f)break m;f=J[f+72>>2];if(f){o=f;while(1){g=o;o=o+1|0;if(K[g|0])continue;break}f=Hl(f,g-f|0)}else f=0;J[n+16>>2]=f;break m}f=xc(m,f,g);H[f+g|0]=0;J[n+16>>2]=f}J[n+20>>2]=u;if(i){o=i;while(1){f=o;o=f+1|0;if(K[f|0])continue;break}o=0;f=f-i|0;p:{if((f|0)<0)break p;g=kc[J[663198]](f+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break p}o=xc(g,i,f);H[f+o|0]=0}J[n+24>>2]=o}if(j){o=j;while(1){f=o;o=f+1|0;if(K[f|0])continue;break}o=0;f=f-j|0;q:{if((f|0)<0)break q;g=kc[J[663198]](f+1| +0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break q}o=xc(g,j,f);H[f+o|0]=0}J[n+28>>2]=o}if(k){o=k;while(1){f=o;o=f+1|0;if(K[f|0])continue;break}o=0;f=f-k|0;r:{if((f|0)<0)break r;g=kc[J[663198]](f+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break r}o=xc(g,k,f);H[f+o|0]=0}J[n+32>>2]=o}J[n+48>>2]=e;J[n+40>>2]=x;J[n+36>>2]=l;J[n+44>>2]=d;if((n|0)!=2773476)eL(n,2773476);if(a){kc[a|0](c,n);break a}s:{t:{u:{if(!(J[693368]|(!q|b))){a=J[q>>2];if(!a)break u;o=a+((h|0)==1?84:88)|0;c=J[q+4>>2];break t}if(b)break s}o= +2653188;c=q?q:J[693366]}b=J[o>>2];if(!b)break a}v:{w:switch(b-3271|0){default:if((b|0)!=3274)break v;break;case 0:case 1:case 2:break w}j2(n,q,s,0,0);break a}if(!((b|0)!=3275&(b|0)!=3276)){j2(n,q,s,b,c);break a}J[t>>2]=s;kc[b|0](c,4607,t)}fc=t+16|0}function AK(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=fc-80|0;fc=h;a:{if(!((c|0)<129|(J[a+360>>2]&524288?c>>>0<=2048:0))){El(a,55,37139,c);break a}be(a);b:{if(J[a+292>>2])break b;e=J[a+36>>2];if((J[e+20>>2]-J[e+16>>2]|0)>249)break b;Rd(a)}e=J[a+ +36>>2];c:{d:{if(K[J[e+16>>2]]==40){e=J[e+56>>2];Zd(a);be(a);e=AK(a,e,c+1|0);be(a);if(J[a+292>>2])break c;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)<250)break d;break c}e=hi(a);if(!e){if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break a;J[a+84>>2]=54;J[h+64>>2]=16042;Hc(0,0,0,a,0,1,54,3,0,0,0,0,32906,h- -64|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}e=Lr(J[a+8>>2],e,2);if(!e){se(a,0);break a}e:{f:{g:{h:{i:{d=J[a+36>>2];if(!(J[a+292>>2]|(J[d+20>>2]-J[d+16>>2]|0)>249)){Rd(a);d=J[a+36>>2]}switch(K[J[d+ +16>>2]]-42|0){case 1:break g;case 0:break h;case 21:break i;default:break f}}J[e+4>>2]=2;Zd(a);break e}J[e+4>>2]=3;Zd(a);break e}J[e+4>>2]=4;Zd(a);break e}J[e+4>>2]=1}if(J[a+292>>2])break c;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)>249)break c}Rd(a)}be(a);i=J[a+36>>2];j:{if(J[a+292>>2])break j;f=J[i+16>>2];if((f-J[i+12>>2]|0)<501|(J[i+20>>2]-f|0)>499)break j;_g(a);i=J[a+36>>2]}f=K[J[i+16>>2]];if((f|0)==41)c=e;else{d=0;k:{if(J[a+172>>2]==-1){c=e;break k}l=c+1|0;g=e;while(1){l:{m:{n:{o:{c=f&255;p:{if((c| +0)!=124){if((c|0)!=44)break o;c=j&255;if(!(!c|(c|0)==44)){El(a,66,35239,c);if(!(!d|(d|0)==(g|0)))ii(J[a+8>>2],d);f=0;if(!g)break a;ii(J[a+8>>2],g);break a}Zd(a);c=kc[J[663195]](28)|0;if(!c){J[h+16>>2]=17054;f=0;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,h+16|0);if(!(!d|(d|0)==(g|0)))ii(J[a+8>>2],d);ii(J[a+8>>2],g);break a}J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=3;J[c+4>>2]=1;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;if(d)break p;break n}c=j&255;if(!(!c|(c|0)==124)){El(a,66,35239,c);if(!(!d|(d|0)==(g|0)))ii(J[a+ +8>>2],d);f=0;if(!g)break a;ii(J[a+8>>2],g);break a}Zd(a);c=kc[J[663195]](28)|0;if(!c){J[h+48>>2]=17054;f=0;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,h+48|0);if(!(!d|(d|0)==(g|0)))ii(J[a+8>>2],d);if(!g)break a;ii(J[a+8>>2],g);break a}J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=4;J[c+4>>2]=1;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;if(!d)break n}J[e+16>>2]=c;J[c+12>>2]=d;J[c+20>>2]=e;e=c;c=g;break m}J[a+84>>2]=55;J[h>>2]=16004;Hc(0,0,0,a,0,1,55,3,0,0,0,0,32906,h);J[a+12>>2]=0;if(!J[a+288>>2])J[a+212>>2]=1;if(!(!d|(d| +0)==(g|0)))ii(J[a+8>>2],d);f=0;if(!g)break a;ii(J[a+8>>2],g);break a}J[c+12>>2]=g;e=c;d=g;if(!d)break l}J[d+20>>2]=e}q:{if(J[a+292>>2])break q;g=J[a+36>>2];if((J[g+20>>2]-J[g+16>>2]|0)>249)break q;Rd(a)}be(a);d=J[a+36>>2];if(!(J[a+292>>2]|(J[d+20>>2]-J[d+16>>2]|0)>249)){Rd(a);d=J[a+36>>2]}r:{if(K[J[d+16>>2]]==40){g=J[d+56>>2];Zd(a);be(a);d=AK(a,g,l);be(a);break r}g=hi(a);if(!g){s:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break s;J[a+84>>2]=54;J[h+32>>2]=16042;Hc(0,0,0,a,0,1,54,3,0,0,0,0,32906,h+32|0);J[a+ +12>>2]=0;if(J[a+288>>2])break s;J[a+212>>2]=1}f=0;if(!c)break a;ii(J[a+8>>2],c);break a}d=Lr(J[a+8>>2],g,2);if(!d){f=0;if(!c)break a;ii(J[a+8>>2],c);break a}t:switch(K[J[J[a+36>>2]+16>>2]]-42|0){case 21:J[d+4>>2]=2;Zd(a);break r;case 0:J[d+4>>2]=3;Zd(a);break r;case 1:J[d+4>>2]=4;Zd(a);break r;default:break t}J[d+4>>2]=1}be(a);i=J[a+36>>2];if(!(J[a+292>>2]|(J[i+20>>2]-J[i+16>>2]|0)>249)){Rd(a);i=J[a+36>>2]}k=K[J[i+16>>2]];if((k|0)==41)break k;j=f;g=c;f=k;if(J[a+172>>2]!=-1)continue;break}}if(!(!e| +!d)){J[e+16>>2]=d;J[d+20>>2]=e}}f=c;if(!(!J[a+104>>2]|J[i+56>>2]==(b|0)))Um(a,90,30219,0,0);Zd(a);u:{v:switch(K[J[J[a+36>>2]+16>>2]]-42|0){case 21:if(!f)break u;J[f+4>>2]=J[f+4>>2]-3>>>0<2?3:2;break u;case 0:if(!f)break u;J[f+4>>2]=3;if(J[f>>2]!=4)break u;while(1){b=J[c+12>>2];if(!(!b|(J[b+4>>2]&-2)!=2))J[b+4>>2]=1;c=J[c+16>>2];if(!c)break u;if((J[c+4>>2]&-2)==2)J[c+4>>2]=1;if(J[c>>2]==4)continue;break}break u;case 1:break v;default:break a}if(!f)break u;J[f+4>>2]=(J[f+4>>2]&-2)==2?3:4;if(!e|J[e>> +2]!=4)break u;d=0;while(1){b=J[e+12>>2];if(!(!b|(J[b+4>>2]&-2)!=2)){J[b+4>>2]=1;d=1}e=J[e+16>>2];if(e){if((J[e+4>>2]&-2)==2){J[e+4>>2]=1;d=1}if(J[e>>2]==4)continue}break}if(!d)break u;J[f+4>>2]=3}Zd(a)}fc=h+80|0;return f}function S1a(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0;e=fc-32|0;fc=e;w=J[a+12>>2];j=J[a+8>>2];u=J[a+20>>2];k=J[a+16>>2];l=J[a+4>>2];J[e+24>>2]=J[a+24>>2];m=J[l+8>>2];p=m+54|0;h=J[l+56>> +2];a:{if(!(!!h&k>>>0>>0)){f=0;break a}f=1}while(1){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!f){if(j>>>0>=w>>>0)break g;if(k>>>0>=u>>>0)break f;d=j+2|0;h=L[j>>1];if((h&63488)!=55296)break i;if(h&1024)break k;E=s;j=d;f=1;continue}if(j>>>0>=w>>>0)break h;d=L[j>>1];if((d&64512)==56320)break j;J[b>>2]=12;J[l+56>>2]=h;break c}J[b>>2]=12;J[l+56>>2]=h;j=d;break c}J[l+56>>2]=0;h=(d+(h<<10)|0)-56613888|0;s=E;d=j+2|0}j=d;if((h|0)<=127){if(!(!(1<31)){J[b>>2]=12;J[l+56>>2]=h;break c}f=1;d=h;c= +e;if(K[m+58|0]){H[e+17|0]=d;n=0;H[m+58|0]=0;f=2;d=15}H[c+16|0]=d;switch(h-10|0){case 0:case 3:break e;default:break d}}l:{m:{if(!n){d=K[m+55|0];c=d>>>0>1;d=c?d:1;H[e+13|0]=d;n:switch(J[m+64>>2]){case 0:if(!c){H[e+14|0]=33;n=2;break m}H[e+14|0]=1;n=2;break m;case 1:break n;default:break l}o:switch((d<<24>>24)-1|0){case 0:H[e+14|0]=33;H[e+15|0]=2;n=3;break m;case 1:H[e+14|0]=1;H[e+15|0]=33;n=3;break m;default:break o}H[e+14|0]=1;H[e+15|0]=2;n=3;break m}if((n|0)<=0)break l}y=h>>>10|0;z=h>>>4&63;x=h& +15;A=1<<(x|16);t=K[l+35|0];B=h>>>0<65536;C=h-57344>>>0<6400;D=h-983040>>>0>131071;d=0;q=0;f=0;i=0;while(1){o=H[(e+13|0)+f|0];p:{if((o|0)<=0){c=d;break p}q:{r:{if(o>>>0>=32){s:{t:{r=J[m+12>>2];if(!(B|H[r+201|0]&1))break t;c=J[r+52>>2];c=J[(c+(z<<2)|0)+(L[c+(y<<1)>>1]<<2)>>2];g=J[r+188>>2]+P(c<<4&1048560|x,3)|0;o=K[g+1|0]<<8|K[g|0]<<16|K[g+2|0];g=o>>>0<256?1:o>>>0<65536?2:3;if(c&A){J[e+28>>2]=o;break s}if(!o|D&!(t|C))break t;J[e+28>>2]=o;g=0-g|0;break r}c=J[r+224>>2];if(!c){c=d;break p}g=wu(c,h,e+28| +0,t<<24>>24)}if((g|0)!=3)break r;i=2;break q}u:{v:{w:{v=J[(o<<2)+m>>2];if(!(B|H[v+201|0]&1))break w;c=J[v+52>>2];c=J[(c+(z<<2)|0)+(L[c+(y<<1)>>1]<<2)>>2];g=L[J[v+188>>2]+((c<<4&1048560|x)<<1)>>1];r=g>>>0<256;if(c&A){J[e+28>>2]=g;g=2;c=d;if(!r)break u;break p}if(!g|D&!(t|C))break w;c=r?-1:-2;J[e+28>>2]=g;break v}c=J[v+224>>2];if(!c){c=d;break p}g=2;c=wu(c,h,e+28|0,t<<24>>24);if((c|0)==2)break u}g=-2;if((c|0)!=-2){c=d;break p}c=d;if(i)break p}c=1;t=0;s=J[e+28>>2];i=g;q=o;break p}if((g|0)!=-3){c=d;break p}if(i){c= +d;break p}t=0;i=-2}c=1;q=33;x:{y:{s=J[e+28>>2];g=s>>>16|0;switch((g&255)-129|0){case 0:break p;case 1:break y;default:break x}}c=2;q=34;break p}c=d;d=J[m+64>>2]==1;c=d?3:c;i=d?i:0;q=g-96|0}f=f+1|0;if(n>>>0>f>>>0){d=c;if((i|0)<=0)continue}break}if(!i)break l;g=0;f=c&255;d=f+p|0;if(K[d|0]!=(q&255)){i=q<<24>>24;i=J[(((i|0)<3?i:i-30|0)<<2)+746624>>2];J[e+16>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);H[d|0]=q;n=(f|0)!=1?n:0;g=4}z:{if((f|0)==H[m+58|0]){f=g;break z}f=g|1;d=(e+16|0)+g|0;A:switch((c& +255)-1|0){case 0:H[d|0]=14;H[m+58|0]=1;break z;case 1:H[d|0]=27;H[(e+16|0)+f|0]=78;f=g|2;break z;default:break A}H[d|0]=27;H[(e+16|0)+f|0]=79;f=g|2}c=(e+16|0)+f|0;d=s<<8|(s&65280)>>>8;H[c|0]=d;H[c+1|0]=d>>>8;f=f+2|0;break d}J[b>>2]=10;J[l+56>>2]=h;break c}J[l+56>>2]=h}if(!K[m+58|0]|J[b>>2]>0|(!K[a+2|0]|j>>>0>>0))break c;if(J[l+56>>2])break c;H[m+58|0]=0;d=J[a+8>>2];c=j-d>>1;B:{if((c|0)<=0){f=-1;break B}f=c-1|0;if((L[d+(f<<1)>>1]&64512)!=56320)break B;if(f)if((L[(d+(c<<1)|0)-4>>1]&64512)!=55296)break B; +f=c-2|0}J[e+28>>2]=k;wi(l,746436,1,e+28|0,u,e+24|0,f,b);k=J[e+28>>2];break c}J[b>>2]=15;break c}n=0;H[p|0]=0;H[p+1|0]=0;H[p+2|0]=0;H[p+3|0]=0;H[p+4|0]=0;H[p+5|0]=0}C:{D:switch(f-1|0){case 0:H[k|0]=K[e+16|0];k=k+1|0;c=J[e+24>>2];if(!c)break b;d=J[a+8>>2];J[e+24>>2]=c+4;J[c>>2]=(j-d>>1)-1;break b;case 1:break D;default:break C}d=k+2|0;if(d>>>0>u>>>0)break C;H[k|0]=K[e+16|0];H[k+1|0]=K[e+17|0];i=J[e+24>>2];if(!i){k=d;break b}c=(j-J[a+8>>2]>>1)+(h>>>0<65536?-1:-2)|0;J[i>>2]=c;J[e+24>>2]=i+8;J[i+4>>2]= +c;k=d;break b}d=J[a+8>>2];J[e+28>>2]=k;wi(l,e+16|0,f,e+28|0,u,e+24|0,(j-d>>1)+(h>>>0<65536?-1:-2)|0,b);k=J[e+28>>2];if(J[b>>2]<=0)break b}J[a+16>>2]=k;J[a+8>>2]=j;fc=e+32|0;return}f=0;continue}}function pma(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;f=fc-16|0;fc=f;e=J[a>>2];a:{if(!e)break a;g=J[b>>2];if(!g)break a;b:{c:{d:{k=J[e+664>>2];switch(k-1|0){case 1:break c;case 0:break d;default:break a}}d=J[e+668>>2];if(d>>>0>5)break a;if(1<>2]!=7)break a}e:{f:{g:{m=J[g+664>>2];switch(m-1|0){case 1:break f;case 0:break g;default:break a}}d=J[g+668>>2];if(d>>>0>5)break a;if(1<>2]!=7)break a}d=J[b+4>>2];h:{if(!d)break h;n=J[d+4>>2];i=n+1|0;J[d+4>>2]=i;m=J[g+664>>2];k=J[e+664>>2];J[d+4>>2]=n;if(i)break h;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if((k|0)!=(m|0))break a;d=J[a>>2];h=O[d+24>>3];e=J[b>>2];if(R(h-O[e+24>>3])>.3)break a;j=O[e+8>>3];l=O[d+8>>3];i:{j:{g=J[d+672>>2];k=g-2|0;if(k){if((k|0)==14)break j;break i}if(j> +l){J[d+672>>2]=2;kc[J[J[d>>2]+28>>2]](d,e);zm(J[a>>2]+496|0,J[b>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;pl(b,a);je(a);break a}J[e+672>>2]=2;kc[J[J[e>>2]+28>>2]](e,d);zm(J[b>>2]+496|0,J[a>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;b=a;a=f+8|0;pl(b,a);je(a);break a}if(j>l){J[d+672>>2]=16;kc[J[J[d>>2]+28>>2]](d,e);zm(J[a>>2]+496|0,J[b>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;pl(b,a);je(a);break a}J[e+672>>2]=16;kc[J[J[e>>2]+28>>2]](e,d);zm(J[b>>2]+496|0,J[a>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;b=a;a= +f+8|0;pl(b,a);je(a);break a}o=R(l-j);if(!(!(R(O[d+32>>3]-O[e+32>>3])<.3)|(!(o<1.5)|!(R(O[d+48>>3]-O[e+48>>3])<.3)))){k:switch(J[d+668>>2]-5|0){case 0:if(J[e+668>>2]!=5)break a;if(j>l){J[d+672>>2]=2;kc[J[J[d>>2]+28>>2]](d,e);zm(J[a>>2]+496|0,J[b>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;pl(b,a);je(a);break a}J[e+672>>2]=2;kc[J[J[e>>2]+28>>2]](e,d);zm(J[b>>2]+496|0,J[a>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;b=a;a=f+8|0;pl(b,a);je(a);break a;case 2:break k;default:break a}if(J[e+668>>2]!=7)break a;if(j> +l){J[d+672>>2]=16;kc[J[J[d>>2]+28>>2]](d,e);zm(J[a>>2]+496|0,J[b>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;pl(b,a);je(a);break a}J[e+672>>2]=16;kc[J[J[e>>2]+28>>2]](e,d);zm(J[b>>2]+496|0,J[a>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;b=a;a=f+8|0;pl(b,a);je(a);break a}if(o>.3)break a;j=R(O[d+32>>3]+O[d+48>>3]-O[e+32>>3]);if(j>1.5){if(g)break a;l:switch(J[d+668>>2]-5|0){case 0:J[d+672>>2]=h>.3?3:1;break a;case 2:break l;default:break a}J[d+672>>2]=O[d+448>>3]>.3?15:14;break a}if(c){m:{if(g)break m;n:{o:switch(J[d+ +668>>2]-1|0){case 0:if(J[e+668>>2]!=1)break m;i=h>.3?5:4;break n;case 2:p:switch(J[e+668>>2]-1|0){case 2:i=h>.3?7:6;break n;case 0:break p;default:break m}i=h>.3?11:10;break n;case 4:c=h>.3;i=c?3:1;if(j<.7)break n;i=c?9:8;break n;case 6:break o;default:break m}if(J[e+668>>2]!=7)break m;i=O[d+448>>3]>.3?15:14}J[d+672>>2]=i}kc[J[J[d>>2]+28>>2]](d,e);zm(J[a>>2]+496|0,J[b>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;pl(b,a);je(a);break a}q:{r:switch(J[d+668>>2]-1|0){case 0:s:switch(J[e+668>>2]-1|0){case 0:if(g>>> +0>13)break a;c=1<>2]|!(c&49))break a;J[d+672>>2]=h>.3?5:4;break q}if(J[e+672>>2])break a;J[d+668>>2]=1;J[d+672>>2]=h>.3?13:12;break q;case 2:break s;default:break a}t:switch(g-10|0){case 0:case 1:if(J[e+672>>2])break a;J[d+668>>2]=3;break q;case 2:case 3:break t;default:break a}if(J[e+672>>2])break a;J[d+668>>2]=3;break q;case 2:u:switch(J[e+668>>2]-1|0){case 2:if(g>>>0>11)break a;c=1<>2])break q;break a}if(J[e+672>>2])break a; +J[d+672>>2]=h>.3?7:6;break q;case 0:break u;default:break a}if(g>>>0>13)break a;c=1<>2]|!(c&12288))break a;J[d+668>>2]=1;break q}if(J[e+672>>2])break a;J[d+668>>2]=1;J[d+672>>2]=h>.3?11:10;break q;case 4:v:{if(!(j<.7)){if(g>>>0>9)break a;c=1<>2]=h>.3?3:1;break q}if(J[e+672>>2])break a;J[d+672>>2]=h>.3?9:8;break q;case 6:break r;default:break a}if(J[e+672>>2]|(!(1<>>0>15))break a;J[d+672>>2]=O[d+448>>3]>.3?15:14}kc[J[J[d>> +2]+28>>2]](d,e);zm(J[a>>2]+496|0,J[b>>2]+496|0);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;pl(b,a);je(a)}fc=f+16|0}function pEa(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=fc-1040|0;fc=e;a:{b:{c:{if(J[a+16>>2]){b=Qc(e+16|0,2389305,2387711,918,2397395,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}g=a+20|0;if(lk(g)){b=Qc(e+16|0,2390012,2387711,920,2397395,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}if((c| +0)<0){b=Qc(e+16|0,2386793,2387711,922,2397395,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}f=e+16|0;rH(f,b);J[699344]=0;h=pd(f,2390490,-1);i=J[699344];J[699344]=0;d:{e:{f:{g:{if((i|0)!=1){wc(f);h:{if(!h){RA(e+12|0,b,2386583);c=J[e+12>>2];i:{while(1){j:{b=J[J[c>>2]+8>>2];J[699344]=0;d=e+16|0;b=ga(b|0,c|0,d|0,1024)|0;f=J[699344];J[699344]=0;if((f|0)==1)break j;if(!b)break i;f=J[a+76>>2];J[699344]=0;ia(5254,a|0,d|0,f|0,b|0);d=J[699344];J[699344]=0;if((d| +0)==1)break j;J[a+76>>2]=b+J[a+76>>2];continue}break}break d}J[699344]=0;b=_(5244,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d;if(!(J[a+16>>2]!=0|b)){H[a+8|0]=1;if(J[a+84>>2]<0){b=J[a+64>>2];c=J[J[b>>2]+28>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d;J[a+84>>2]=b}b=J[a+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}J[699344]=0;$(5255,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break d}a=J[e+12>>2];J[e+12>>2]=0;if(!a)break e; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break h;if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;break e}if(!lk(b))break e;RA(e+16|0,b,2386583);f=J[e+16>>2];h=J[J[f>>2]+20>>2];J[699344]=0;ha(h|0,f|0,0,2,0)|0;f=J[699344];J[699344]=0;k:{l:{if((f|0)!=1){f=J[e+16>>2];h=J[J[f>>2]+16>>2];J[699344]=0;f=_(h|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break g;J[699344]=0;aa(5253,g|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[a+ +84>>2]=d;J[a+80>>2]=c;m:{if((c|0)<(f|0)){if((f|0)>(c+d|0)&(d|0)>=0)break m;b=f-c|0}else b=0;J[a+84>>2]=b}H[a+8|0]=1;J[699344]=0;aa(5145,a- -64|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[693726];if(!b){J[699344]=0;c=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[699344]=0;b=aa(5250,c|0,2397856)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;J[693726]=b}J[699344]=0;J[e+8>>2]=0;c=e+ +8|0;aa(5145,c|0,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;J[699344]=0;ca(5268,b|0,g|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break l;b=J[e+8>>2];J[e+8>>2]=0;n:{if(!b)break n;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break n;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}o:{c=J[a+116>>2];if(c)while(1){b=J[c+8>>2];J[699344]=0;J[b+ +4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;p:{q:{r:{s:{if((b|0)!=1){b=J[c+8>>2];J[e+12>>2]=b;d=J[b+20>>2];if(!d)break r;g=J[b+24>>2];J[699344]=0;$(d|0,g|0);d=J[699344];J[699344]=0;if((d|0)!=1)break r;oa(ea(0)|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break s;b=J[e+12>>2];J[e+12>>2]=0;if(!b)break p;break q}a=Z()|0;break f}a=Z()|0;zc(e+12|0);break f}J[e+12>>2]=0}J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break o;if(d)break p;J[699344]=0;$(5147,b|0); +b=J[699344];J[699344]=0;if((b|0)==1)break o}c=J[c>>2];if(c)continue;break}J[699344]=0;$(5249,a+108|0);a=J[699344];J[699344]=0;if((a|0)!=1){a=J[e+16>>2];J[e+16>>2]=0;if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e}break a}a=Z()|0;break f}break a}a=Z()|0;break f}a=Z()|0;zc(e+8|0);break f}a=Z()|0;uc(c);break f}break a}a=Z()|0;wc(e+16|0);break c}a=Z()|0}zc(e+16|0);break c}fc=e+1040| +0;return}a=Z()|0;zc(e+12|0)}ba(a|0)}B()}ea(0)|0;Bc();B()}function Jsa(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;g=fc-32|0;fc=g;h=vc(72);J[699344]=0;l=_(5687,h|0)|0;j=J[699344];J[699344]=0;if((j|0)==1){a=Z()|0;uc(h);ba(a|0);B()}J[g+4>>2]=0;h=g+4|0;vd(h,l);a:{b:{c:{d:{f=J[c>>2];if(J[f+64>>2]){J[699344]=0;ca(5613,J[g+4>>2],f|0,0);j=J[699344];J[699344]=0;if((j|0)==1)break d;J[699344]=0;aa(5153,c|0,h|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break d;f=J[c>>2]}e:{f:{g:{if(!(J[a+ +136>>2]<=(d|0)&J[a+140>>2]>=(d|0))){J[699344]=0;c=ja(5178,g+8|0,2393794,2394220,619,2434720,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;$(5179,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;b=Z()|0;Kc(c);break a}i=L[b+8>>1];n=L[b+10>>1];o=L[f+10>>1];d=J[a+124>>2]+(d-J[a+128>>2]<<4)|0;l=J[d+4>>2];h=J[d+8>>2];j=J[d+12>>2];k=J[d>>2];J[699344]=0;da(5688,b|0,2);d=J[699344];J[699344]=0;if((d|0)==1)break f;d=J[c>>2];J[699344]=0;e=d;d=h+1|0;m=(d+((n>>>1|0)-n|0)|0)+((d-l|0)/-2|0)|0;da(5688, +e|0,2-m|0);d=J[699344];J[699344]=0;if((d|0)==1)break f;d=J[c>>2];J[699344]=0;da(5688,d|0,(m+(n-o|0)|0)+2|0);d=J[699344];J[699344]=0;if((d|0)==1)break f;J[699344]=0;$(5689,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;d=J[c>>2];J[699344]=0;$(5689,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;o=J[c>>2];if(!J[b+20>>2]){J[699344]=0;$(5177,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}j=((k-j|0)+1|0)/-2|0;f=L[b+14>>1];e=L[b+8>>1];h:{if(i>>>0>=e>>>0){d=L[b+12>>1];if(J[685890]<(d+f|0)){J[699344]= +0;c=ja(5178,g+8|0,2398385,2398717,577,2393703,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;$(5179,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;b=Z()|0;Kc(c);break a}h=J[b+20>>2];l=d+J[685889]|0;break h}h=J[b+20>>2];l=L[b+12>>1]+(h+P(f,i)|0)|0}if(!h){J[699344]=0;$(5177,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;f=L[b+14>>1];e=L[b+8>>1]}p=i-1|0;i:{if(!(e>>>0>p>>>0?i:0)){d=L[b+12>>1];if(J[685890]<(d+f|0)){J[699344]=0;c=ja(5178,g+8|0,2398385,2398717,577,2393703,0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break e;J[699344]=0;$(5179,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;b=Z()|0;Kc(c);break a}h=d+J[685889]|0;break i}h=L[b+12>>1]+(J[b+20>>2]+P(f,p)|0)|0}f=J[c>>2];if(!J[f+20>>2]){J[699344]=0;$(5177,f|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}e=L[f+14>>1];j:{k:{i=j+(k+(i>>>1|0)|0)|0;if((i|0)>=-1){d=i+1|0;if(d>>>0>1])break k}d=L[f+12>>1];if(J[685890]<(d+e|0)){J[699344]=0;c=ja(5178,g+8|0,2398385,2398717,577,2393703,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e; +J[699344]=0;$(5179,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;b=Z()|0;Kc(c);break a}j=d+J[685889]|0;break j}j=L[f+12>>1]+(J[f+20>>2]+P(d,e)|0)|0}e=J[c>>2];if(!J[e+20>>2]){J[699344]=0;$(5177,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}d=L[e+14>>1];l:{if(!(i>>>0>1]&(i|0)>=0)){f=d;d=L[e+12>>1];if(J[685890]<(f+d|0)){J[699344]=0;c=ja(5178,g+8|0,2398385,2398717,577,2393703,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;$(5179,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c; +b=Z()|0;Kc(c);break a}d=d+J[685889]|0;break l}d=L[e+12>>1]+(J[e+20>>2]+P(d,i)|0)|0}k=J[c>>2];if(!J[k+20>>2]){J[699344]=0;$(5177,k|0);c=J[699344];J[699344]=0;if((c|0)==1)break e}e=L[k+14>>1];m:{n:{if((i|0)>0){c=i-1|0;if(c>>>0>1])break n}c=L[k+12>>1];if(J[685890]<(c+e|0)){J[699344]=0;c=ja(5178,g+8|0,2398385,2398717,577,2393703,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;$(5179,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c;b=Z()|0;Kc(c);break a}e=c+J[685889]|0;break m}e=L[k+ +12>>1]+(J[k+20>>2]+P(c,e)|0)|0}c=J[J[a>>2]+52>>2];J[699344]=0;Bb(c|0,a|0,b|0,o|0,m|0,n|0,p|0,i|0,l|0,h|0,j+m|0,d+m|0,e+m|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;c=J[g+4>>2];J[g+4>>2]=0;o:{if(!c)break o;J[699344]=0;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)==1)break b;if(b)break o;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}fc=g+32|0;return}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}B()}ea(0)|0;Bc();B()}zc(g+4|0);ba(b|0);B()}function Dqb(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;J[a>>2]=0;i=fc-32|0;fc=i;J[a>>2]=0;h=i+16|0;J[h+12>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[h>>2]=415588;J[699344]=0;c=ga(3,h|0,b|0,0)|0;e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((e|0)!=1){if(!c)break c;J[699344]=0;c=_(27,4096)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;J[i+12>>2]=0;e=ha(28,h|0,c|0,4096,i+12|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;if(!e){uc(c);break c}J[699344]=0;$(21,h|0);e=J[699344];J[699344]=0;if((e| +0)==1)break b;e=J[i+12>>2];if(A8(a,c,e)){J[a>>2]=1;break f}if(J[a>>2])break f;if(e>>>0>=4){f=2;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==944130375)break e;if(e>>>0<=5){d=K[c|0];break h}if(!dd(c,19874,6))break e;if(!dd(c,19867,6))break e;d=K[c|0];if(e>>>0<16)break h;g=K[c+2|0];j=K[c+1|0];i:{if((d|0)!=137|(j|0)!=80|((g|0)!=78|K[c+3|0]!=71))break i;if(K[c+4|0]!=13|K[c+5|0]!=10|(K[c+6|0]!=26|K[c+7|0]!=10))break i;if(K[c+8|0]|K[c+9|0]|(K[c+10|0]|K[c+11|0]!=13))break i;if(K[c+12|0]!=73|K[c+13| +0]!=72|K[c+14|0]!=68)break i;f=4;if(K[c+15|0]==82)break e}if(e>>>0<17)break h;j:{k:switch(j|0){case 1:switch(g-1|0){case 0:case 8:break j;default:break h}case 0:break k;default:break h}if(!(1<>>0>11)break h}if(K[c+16|0]-8&231)break h;f=7;break e}g=1;if((e|0)!=3)break f;d=K[c|0];break g}break b}if((d|0)!=10)break g;if(K[c+1|0]>5){d=10;break g}f=8;g=K[c+3|0]-1&255;if(g>>>0>=8){d=10;break g}d=10;if(139>>>g&1)break e}g=1;if((d|0)!=255|K[c+1|0]!=216)break f;f=3;if(K[c+2|0]==255)break e}f=21; +d=0;l:{if(J[a>>2])break l;m:{if(K[c|0]!=1|e>>>0<44|(K[c+1|0]|K[c+2|0]))break m;if(K[c+3|0]|K[c+40|0]!=32|(K[c+41|0]!=69|K[c+42|0]!=77))break m;d=1;if(K[c+43|0]==70)break l}d=0}if(d)break e;f=10;d=0;n:{if(J[a>>2])break n;d=K[c|0];o:{if(!((d|0)!=215|e>>>0<6)){if(K[c+1|0]!=205|K[c+2|0]!=198|(K[c+4|0]|K[c+3|0]!=154))break o;if(K[c+5|0])break o;d=1;break n}if(K[c+1|0]|(d|0)!=1|(K[c+3|0]|K[c+2|0]!=9))break o;if(K[c+4|0])break o;d=1;if(K[c+5|0]==3)break n}d=0}if(d)break e;f=6;d=0;p:{if(J[a>>2])break p;q:{r:{s:{d= +K[c|0];if(!((d|0)!=73|e>>>0<4)){if(K[c+1|0]!=73|K[c+2|0]!=42)break s;if(!K[c+3|0])break r;break s}t:switch(d-73|0){case 0:break s;case 4:break t;default:break q}if(K[c+2|0]|K[c+1|0]!=77)break q;d=1;if(K[c+3|0]==42)break p;break q}if(K[c+3|0]|(K[c+1|0]!=73|K[c+2|0]!=42))break q}d=1;break p}d=0}if(d)break e;f=5;d=0;u:{if(J[a>>2]|e>>>0<16|(K[c|0]|K[c+1|0]))break u;j=J[c+18>>2];if(j>>>0>>0){d=1;k=J[(c+j|0)+4>>2];j=K[c+6|0];if((k|0)==((j?j:256)|0))break u}d=0}if(d)break e;f=22;if(f8(a,c,e))break e; +f=20;d=0;v:{if(J[a>>2])break v;w:{if(K[c|0]!=56|e>>>0<12|(K[c+1|0]!=66|K[c+2|0]!=80))break w;if(K[c+6|0]|K[c+3|0]!=83|(K[c+7|0]|K[c+8|0]!=24))break w;if(K[c+9|0]|K[c+10|0])break w;d=1;if(K[c+11|0]==24)break v}d=0}if(d)break e;f=15;d=0;x:{if(J[a>>2])break x;y:{if(K[c|0]!=89|e>>>0<16|(K[c+1|0]!=166|K[c+2|0]!=106))break y;if(K[c+5|0]|(K[c+4|0]|K[c+3|0]!=149))break y;d=1;if(K[c+15|0]==24)break x}d=0}if(d)break e;f=11;if(!(!g|e>>>0<52|K[c|0]!=255|(K[c+1|0]!=79|K[c+2|0]!=255)))if(K[c+3|0]==81)break e;if(G7(a, +c,e))break e;if(k7(a,c,e))break e;f=0;if(_M(a,c,e))break e;d=0;z:{if(J[a>>2]|e>>>0<6|(K[c|0]!=86|K[c+1|0]!=67))break z;if(K[c+2|0]!=76|K[c+3|0]!=77|(K[c+4|0]!=84|K[c+5|0]!=70))break z;if(K[c+11|0]|(K[c+9|0]|K[c+10|0]))break z;d=1}g=0;A:{if(J[a>>2])break A;B:{if(e>>>0<10)break B;C:switch(K[c|0]-67|0){case 3:if(K[c+9|0]|(K[c+1|0]!=87|K[c+2|0]!=83))break B;g=1;break A;case 0:break C;default:break B}if(K[c+1|0]!=87|K[c+2|0]!=83|K[c+8|0]!=120)break B;g=1;if(K[c+9|0]==156)break A}g=0}if(g|d)break e;J[699344]= +0;b=aa(29,i|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=24;if(b)break e;f=25;b=0;e=J[i+12>>2];D:{if(e>>>0<12)break D;b=1;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==1413695824)break D;if(!dd(c+10|0,39198,6))break D;b=0;if(e>>>0<528)break D;b=!dd(c+522|0,39198,6)}if(!b)break d}J[a>>2]=f}uc(c)}De(h);fc=i+32|0;break a}a=Z()|0;De(h);ba(a|0);B()}return a|0}function Ekb(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;l=fc-16|0;fc=l;h=J[a+16>> +2];d=K[h+6|0]|K[h+7|0]<<8|(K[h+8|0]<<16|K[h+9|0]<<24);e=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a:{if(!e)break a;i=h+10|0;b:{while(1){d=e+g>>>1|0;f=i+P(d,11)|0;j=K[f+1|0]<<8|K[f|0]<<16|K[f+2|0];c:{if(j>>>0>c>>>0){e=d;break c}if(c>>>0<=j>>>0)break b;g=d+1|0}if(e>>>0>g>>>0)continue;break}g=0;break a}g=0;c=K[f+3|0]|K[f+4|0]<<8|(K[f+5|0]<<16|K[f+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[f+7|0]|K[f+8|0]<<8|(K[f+9|0]<<16|K[f+10|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!(c|d))break a; +d:{if(!c){c=d+h|0;d=K[c+3|0];g=K[c+2|0];f=K[c+1|0];i=K[c|0];e=J[a+28>>2];J[l+4>>2]=0;i=d|(f<<16|i<<24|g<<8);f=i+1|0;e:{if(f>>>0<=e>>>0){g=J[a+32>>2];break e}J[a+36>>2]=b;g=_c(b,4,e,f,J[a+32>>2],l+4|0);J[a+32>>2]=g;if(J[l+4>>2])break d;J[a+28>>2]=f}f:{if(!i)break f;a=d&1;d=c+4|0;e=0;if((i|0)!=1){b=i-a|0;f=0;while(1){c=e<<2;J[c+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(c|4)+g>>2]=K[d+7|0]|(K[d+6|0]<<8|K[d+5|0]<<16);e=e+2|0;d=d+10|0;f=f+2|0;if((b|0)!=(f|0))continue;break}}if(!a)break f;J[(e<<2)+g>> +2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16)}J[(i<<2)+g>>2]=0;break a}if(!d){g=D6(a,c+h|0,b);break a}j=d+h|0;m=K[j+3|0];i=m|(K[j+1|0]<<16|K[j|0]<<24|K[j+2|0]<<8);h=c+h|0;c=K[h+3|0];g:{h:{n=c|(K[h+1|0]<<16|K[h|0]<<24|K[h+2|0]<<8);i:{if(n){k=c&3;g=h+7|0;f=0;j:{if(n-1>>>0<3){e=0;d=g;break j}o=n-k|0;e=0;c=0;while(1){e=(K[g+12|0]+(K[g+8|0]+(K[g+4|0]+(K[g|0]+e|0)|0)|0)|0)+4|0;d=g+16|0;g=d;c=c+4|0;if((o|0)!=(c|0))continue;break}}if(k)while(1){e=(K[d|0]+e|0)+1|0;d=d+4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}if(!i)break i; +if(e)break h;break g}if(i)break g}g=D6(a,h,b);break a}c=J[a+28>>2];J[l+12>>2]=0;d=(e+i|0)+1|0;k:{if(d>>>0<=c>>>0){g=J[a+32>>2];break k}J[a+36>>2]=b;g=_c(b,4,c,d,J[a+32>>2],l+12|0);J[a+32>>2]=g;if(J[l+12>>2])break d;J[a+28>>2]=d}o=K[j+6|0]|(K[j+5|0]<<8|K[j+4|0]<<16);f=K[h+6|0]|(K[h+5|0]<<8|K[h+4|0]<<16);a=j+9|0;b=h+8|0;j=K[h+7|0];e=0;k=1;m=1;while(1){l:{if(f+j>>>0>>0){d=j+1|0;q=d&3;c=0;m:{if(j>>>0<3){d=0;break m}r=d&-4;d=0;h=0;while(1){p=(e<<2)+g|0;J[p>>2]=d+f;J[p+4>>2]=(d|1)+f;J[p+8>>2]=(d|2)+ +f;J[p+12>>2]=(d|3)+f;d=d+4|0;e=e+4|0;h=h+4|0;if((r|0)!=(h|0))continue;break}}if(q)while(1){J[(e<<2)+g>>2]=d+f;d=d+1|0;e=e+1|0;c=c+1|0;if((q|0)!=(c|0))continue;break}k=k+1|0;if(n>>>0>>0)break l;f=K[b+2|0]|(K[b+1|0]<<8|K[b|0]<<16);j=K[b+3|0];b=b+4|0;continue}if(f>>>0>o>>>0){J[(e<<2)+g>>2]=o;e=e+1|0}m=m+1|0;if(i>>>0>>0)break l;o=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);a=a+5|0;continue}break}n:{if(i>>>0>=m>>>0){J[(e<<2)+g>>2]=o;e=e+1|0;if(i>>>0<=m>>>0)break n;while(1){J[(e<<2)+g>>2]=K[a+2|0]|(K[a+1|0]<< +8|K[a|0]<<16);e=e+1|0;a=a+5|0;m=m+1|0;if(i>>>0>m>>>0)continue;break}break n}if(k>>>0>n>>>0)break n;a=j+1|0;i=a&3;c=0;o:{if(j>>>0<3){d=0;break o}j=a&-4;d=0;h=0;while(1){a=(e<<2)+g|0;J[a>>2]=d+f;J[a+4>>2]=(d|1)+f;J[a+8>>2]=(d|2)+f;J[a+12>>2]=(d|3)+f;d=d+4|0;e=e+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}if(i)while(1){J[(e<<2)+g>>2]=d+f;d=d+1|0;e=e+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}if(k>>>0>=n>>>0)break n;while(1){a=K[b+2|0]|(K[b+1|0]<<8|K[b|0]<<16);d=K[b+3|0];f=d+1|0;i=f&3;c=0;p:{if(d>>>0< +3){d=0;break p}j=f&508;d=0;h=0;while(1){f=(e<<2)+g|0;J[f>>2]=a+d;J[f+4>>2]=a+(d|1);J[f+8>>2]=a+(d|2);J[f+12>>2]=a+(d|3);d=d+4|0;e=e+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}if(i)while(1){J[(e<<2)+g>>2]=a+d;d=d+1|0;e=e+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}b=b+4|0;k=k+1|0;if(n>>>0>k>>>0)continue;break}}J[(e<<2)+g>>2]=0;break a}c=J[a+28>>2];J[l+8>>2]=0;d=i+1|0;q:{if(d>>>0<=c>>>0){g=J[a+32>>2];break q}J[a+36>>2]=b;g=_c(b,4,c,d,J[a+32>>2],l+8|0);J[a+32>>2]=g;if(J[l+8>>2])break d;J[a+28>>2]=d}a= +m&1;d=j+4|0;e=0;if((i|0)!=1){b=i-a|0;f=0;while(1){c=e<<2;J[c+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(c|4)+g>>2]=K[d+7|0]|(K[d+6|0]<<8|K[d+5|0]<<16);e=e+2|0;d=d+10|0;f=f+2|0;if((b|0)!=(f|0))continue;break}}if(a)J[(e<<2)+g>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);J[(i<<2)+g>>2]=0;break a}g=0}fc=l+16|0;return g|0}function CQa(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,y=0,z=0,A=0;h=fc-16|0;fc=h;J[h+4>>2]=0;c=h+12|0;_J(J[a+20>>2],c);a:{if(!cj(J[a+ +20>>2],c,h+8|0,h+4|0))break a;while(1){if(Je(J[b+4>>2],J[J[h+8>>2]+4>>2])){b=J[h+12>>2];if(b)uc(b);J[h+12>>2]=0;break a}J[h+4>>2]=0;if(cj(J[a+20>>2],h+12|0,h+8|0,h+4|0))continue;break}}b=J[h+4>>2];b:{if(!b)break b;r=P$(J[a+420>>2],b);if(r)break b;r=0;b=0;g=fc-320|0;fc=g;c:{d:{e:{m=J[h+4>>2];o=Qn(J[m+4>>2],776467);f:{if(!o){J[g>>2]=m;Cc(1,-1,778235,g);break f}n=4096;l=Gd(4096,4);Ac(l,0,16384);g:{if(!Qw(g- -64|0,o))break g;while(1){s=s+1|0;h:{c=Og(g- -64|0,779513);if(!c)break h;k=0;b=0;e=Yc(c);if((e| +0)>0)while(1){j=J[(K[b+c|0]<<2)+2211280>>2];if((j|0)<0)break h;k=j+(k<<4)|0;b=b+1|0;if((e|0)!=(b|0))continue;break}c=Og(0,779513);if(!c)break h;j=0;b=0;i:{j:{k:{e=Yc(c);if((e|0)>0)while(1){d=J[(K[b+c|0]<<2)+2211280>>2];if((d|0)<0)break k;j=d+(j<<4)|0;b=b+1|0;if((e|0)!=(b|0))continue;break}d=Og(0,779513);if(!d){e=1;break i}l:{f=Yc(d);if((f|0)<=0){t=0;break l}b=0;e=1;t=0;c=J[(K[d|0]<<2)+2211280>>2];if((c|0)<0)break j;while(1){t=(t<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break l;c=J[(K[b+d|0]<<2)+2211280>>2]; +if((c|0)>=0)continue;break}break j}d=Og(0,779513);if(!d){e=2;break i}m:{f=Yc(d);if((f|0)<=0){u=0;break m}e=2;b=0;u=0;c=J[(K[d|0]<<2)+2211280>>2];if((c|0)<0)break j;while(1){u=(u<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break m;c=J[(K[b+d|0]<<2)+2211280>>2];if((c|0)>=0)continue;break}break j}d=Og(0,779513);if(!d){e=3;break i}n:{f=Yc(d);if((f|0)<=0){v=0;break n}b=0;e=3;v=0;c=J[(K[d|0]<<2)+2211280>>2];if((c|0)<0)break j;while(1){v=(v<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break n;c=J[(K[b+d|0]<<2)+2211280>>2];if((c| +0)>=0)continue;break}break j}d=Og(0,779513);if(!d){e=4;break i}o:{f=Yc(d);if((f|0)<=0){w=0;break o}b=0;e=4;w=0;c=J[(K[d|0]<<2)+2211280>>2];if((c|0)<0)break j;while(1){w=(w<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break o;c=J[(K[b+d|0]<<2)+2211280>>2];if((c|0)>=0)continue;break}break j}d=Og(0,779513);if(!d){e=5;break i}p:{f=Yc(d);if((f|0)<=0){x=0;break p}b=0;e=5;x=0;c=J[(K[d|0]<<2)+2211280>>2];if((c|0)<0)break j;while(1){x=(x<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break p;c=J[(K[b+d|0]<<2)+2211280>>2];if((c|0)>=0)continue; +break}break j}d=Og(0,779513);if(!d){e=6;break i}q:{f=Yc(d);if((f|0)<=0){y=0;break q}b=0;e=6;y=0;c=J[(K[d|0]<<2)+2211280>>2];if((c|0)<0)break j;while(1){y=(y<<4)+c|0;b=b+1|0;if((f|0)==(b|0))break q;c=J[(K[b+d|0]<<2)+2211280>>2];if((c|0)>=0)continue;break}break j}d=Og(0,779513);if(!d){e=7;break i}e=8;f=Yc(d);if((f|0)<=0){i=0;break i}i=0;b=0;c=J[(K[d|0]<<2)+2211280>>2];if((c|0)<0){e=7;break j}r:{while(1){b=(b<<4)+c|0;i=i+1|0;if((f|0)==(i|0))break r;c=J[(K[d+i|0]<<2)+2211280>>2];if((c|0)>=0)continue; +break}i=b;e=7;break j}i=b;break i}J[g+36>>2]=m;J[g+32>>2]=s;Cc(0,-1,780661,g+32|0);break h}J[g+52>>2]=m;J[g+48>>2]=s;Cc(0,-1,780661,g+48|0)}c=n;if(k>>>0>=c>>>0){while(1){b=c;c=b<<1;if(b>>>0<=k>>>0)continue;break}l=Wd(l,b,4);Ac(l+(n<<2)|0,0,b-n<<2);n=b}s:{if((e|0)==1){J[(k<<2)+l>>2]=j;break s}J[(k<<2)+l>>2]=0;if((p|0)==(z|0)){z=p+16|0;A=Wd(A,z,40)}b=P(p,40)+A|0;J[b+4>>2]=j;J[b>>2]=k;t:{if((e|0)==1)break t;J[b+8>>2]=t;if((e|0)==2)break t;J[b+12>>2]=u;if((e|0)==3)break t;J[b+16>>2]=v;if((e|0)==4)break t; +J[b+20>>2]=w;if((e|0)==5)break t;J[b+24>>2]=x;if((e|0)==6)break t;J[b+28>>2]=y;if((e|0)==7)break t;J[b+32>>2]=i}J[b+36>>2]=e;p=p+1|0}q=k>>>0>>0?q:k+1|0;if(Qw(g- -64|0,o))continue;break g}J[g+20>>2]=m;J[g+16>>2]=s;Cc(0,-1,780661,g+16|0);if(Qw(g- -64|0,o))continue;break}}pg(o);b=vc(28);J[699344]=0;c=_(4,8)|0;i=J[699344];J[699344]=0;if((i|0)==1)break e;J[699344]=0;i=aa(3350,c|0,m|0)|0;n=J[699344];J[699344]=0;if((n|0)==1){j=Z()|0;uc(c);break d}J[b+8>>2]=q;J[b>>2]=i;J[699344]=0;c=aa(3551,q|0,4)|0;i= +J[699344];J[699344]=0;if((i|0)==1)break e;J[b+4>>2]=c;xc(c,l,q<<2);J[b+24>>2]=1;J[b+20>>2]=z;J[b+16>>2]=p;J[b+12>>2]=A;Mc(l)}fc=g+320|0;break c}j=Z()|0}uc(b);ba(j|0);B()}if(!b)break b;O$(J[a+420>>2],b);r=b}fc=h+16|0;return r|0}function CO(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+512>>2];a:{b:{c:{d:{e:{if(!K[a+288|0]){J[a+992>>2]=0;J[a+984>>2]=0;J[a+988>>2]=0;J[a+976>>2]=0;J[a+968>>2]=0;J[a+1012>>2]=0;J[a+2544>>2]=0;J[a+2548>>2]=0;J[a+608>>2]=0;J[a+536>>2]=0;b=a+2552|0;J[b>>2]=0;J[b+4>>2]=0;J[a+2560>> +2]=0;e=a+498|0;if(K[a+498|0])break c;if(!c)break e;b=Ck(a,c,J[a+316>>2],J[a+320>>2],K[a+337|0],K[a+336|0],K[a+341|0],K[a+342|0],K[a+343|0],1);d=c;break d}if(K[a+498|0])break b;f:switch(K[a+2253|0]){case 0:e=a+498|0;b=Ck(a,J[a+2248>>2],J[a+316>>2],J[a+320>>2],K[a+337|0],K[a+336|0],K[a+341|0],K[a+342|0],K[a+343|0],1);d=J[a+2248>>2];break d;case 1:case 4:b=J[J[a+2248>>2]+88>>2];H[b+53|0]=K[a+337|0];H[b+54|0]=K[a+340|0];break b;case 2:case 5:H[J[J[a+2248>>2]+88>>2]+54|0]=K[a+340|0];break b;case 3:case 6:break f; +default:break b}H[J[J[a+2248>>2]+88>>2]+53|0]=K[a+337|0];break b}b=Ck(a,J[a+528>>2],J[a+316>>2],J[a+320>>2],K[a+337|0],K[a+336|0],K[a+341|0],K[a+342|0],K[a+343|0],1);d=J[a+528>>2]}d=J[d+88>>2];f=K[a+340|0];H[d+50|0]=f;H[d+51|0]=K[a+338|0];g=K[a+339|0];H[d+54|0]=f;H[d+52|0]=g;if(b)break a;if(K[a+288|0])break b}c=c?c:J[a+528>>2];J[a+536>>2]=c;if(!K[c+31|0]&J[a+12>>2]!=3|(K[c+64|0]|K[c+65|0]))break b;GO(a);H[a+498|0]=0;if(K[a+497|0]){H[e|0]=7;break b}if(!K[a+496|0]|J[a+676>>2]<=J[a+672>>2]|J[a+684>> +2]<=J[a+680>>2])break b;Fy(a);J[a+544>>2]=J[a+536>>2]}b=0;if(K[a+497|0])break a;J[a+1012>>2]=1250;g:{h:{i:{j:{if(!K[a+288|0])break j;switch(K[a+2253|0]){case 2:case 5:break h;case 0:break j;default:break i}}b=K[a+337|0];k:{if((b|0)==8){H[a+648|0]=0;J[a+588>>2]=J[a+316>>2];l:switch(K[a+336|0]-8|0){case 0:J[a+980>>2]=1150;J[a+2544>>2]=1251;H[a+649|0]=1;break k;case 2:J[a+980>>2]=1152;J[a+2544>>2]=1252;H[a+649|0]=1;break k;case 4:J[a+980>>2]=1155;J[a+2544>>2]=1253;H[a+649|0]=0;break k;case 6:break l; +default:break k}J[a+980>>2]=1023;J[a+2544>>2]=1254;H[a+649|0]=0;break k}H[a+648|0]=1}m:{n:switch(K[a+341|0]){case 0:o:switch(K[a+340|0]-1|0){case 0:J[a+1012>>2]=1255;break m;case 1:J[a+1012>>2]=1256;break m;case 3:J[a+1012>>2]=1257;break m;case 7:J[a+1012>>2]=1258;break m;case 15:break o;default:break m}J[a+1012>>2]=1259;break m;case 8:break n;default:break m}if((b|0)!=8)break m;p:switch(K[a+336|0]-12|0){case 0:J[a+2548>>2]=1260;break m;case 2:break p;default:break m}J[a+2548>>2]=1261}q:{r:{s:{if(J[a+ +2456>>2])break s;b=kc[J[a+152>>2]](132)|0;J[a+2456>>2]=b;if(b)break s;break r}t:{if(J[a+2460>>2])break t;b=kc[J[a+152>>2]](28)|0;J[a+2460>>2]=b;if(b)break t;break r}u:{b=J[a+2452>>2];if(b)break u;b=kc[J[a+152>>2]](488)|0;J[a+2452>>2]=b;if(b)break u;break r}J[b+12>>2]=a;v:{if(J[a+2468>>2])break v;b=kc[J[a+152>>2]](132)|0;J[a+2468>>2]=b;if(b)break v;break r}w:{if(J[a+2472>>2])break w;b=kc[J[a+152>>2]](28)|0;J[a+2472>>2]=b;if(b)break w;break r}x:{b=J[a+2464>>2];if(b)break x;b=kc[J[a+152>>2]](488)|0; +J[a+2464>>2]=b;if(b)break x;break r}J[b+12>>2]=a;y:{if(J[a+2448>>2])break y;b=kc[J[a+152>>2]](132)|0;J[a+2448>>2]=b;if(b)break y;break r}z:{b=J[a+2444>>2];if(b)break z;b=kc[J[a+152>>2]](432)|0;J[a+2444>>2]=b;if(b)break z;break r}J[b+12>>2]=a;A:{b=J[a+2476>>2];if(b)break A;J[a+2480>>2]=65500;b=kc[J[a+152>>2]](65500)|0;J[a+2476>>2]=b;if(b)break A;break r}B:{c=J[a+2496>>2];if(!c){J[a+2500>>2]=65500;c=kc[J[a+152>>2]](65500)|0;J[a+2496>>2]=c;if(!c)break B;b=J[a+2476>>2]}J[a+2516>>2]=0;J[a+2520>>2]=0;J[a+ +2484>>2]=b;J[a+2524>>2]=0;J[a+2528>>2]=0;J[a+2508>>2]=0;J[a+2512>>2]=0;J[a+2504>>2]=c;J[a+2488>>2]=0;J[a+2492>>2]=0;J[a+2552>>2]=0;J[a+2556>>2]=0;H[a+2539|0]=0;H[a+2540|0]=0;H[a+2541|0]=0;H[a+2542|0]=0;b=a+2530|0;I[b>>1]=0;I[b+2>>1]=0;I[b+4>>1]=0;I[b+6>>1]=0;b=a+2560|0;J[b>>2]=0;J[b+4>>2]=0;b=0;break q}Jc(a,1,0,0);b=1;break q}Jc(a,1,0,0);b=1}if(!b)break g;break a}Jc(a,1053,0,0);return 1053}b=1220;C:{D:switch(K[a+340|0]-1|0){case 1:b=1222;break C;case 3:b=1224;break C;case 7:b=1226;break C;case 0:break C; +case 15:break D;default:break g}b=1228}J[a+1012>>2]=b}J[a+620>>2]=0;J[a+624>>2]=0;J[a+612>>2]=0;J[a+616>>2]=1;J[a+628>>2]=0;J[a+632>>2]=0;b=0}return b}function VI(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,w=0,x=0;c=fc-1600|0;fc=c;s=Ac(c,0,1600);v=J[b+8>>2];if((v|0)>0){k=O[a+112>>3];l=O[a+120>>3];j=J[b>>2];while(1){t=J[j+(e<<2)>>2];i=W(O[t+40>>3]*20/l);a:{if(R(i)<2147483648){c=~~i;break a}c=-2147483648}w=(c|0)>=19?19:c;o=O[t+24>>3]*20;i=V(o/l);b:{if(R(i)< +2147483648){c=~~i;break b}c=-2147483648}m=(c|0)>0?c:0;i=W(o/k);c:{if(R(i)<2147483648){g=~~i;break c}g=-2147483648}h=(m|0)>(w|0);i=V(O[t+16>>3]*20/k);d:{if(R(i)<2147483648){c=~~i;break d}c=-2147483648}e:{if(h)break e;h=(c|0)>0?c:0;d=(g|0)>=19?19:g;if((h|0)>(d|0))break e;while(1){f=P(m,80)+s|0;c=h;while(1){u=vc(8);g=f+(c<<2)|0;J[u+4>>2]=J[g>>2];J[u>>2]=t;J[g>>2]=u;g=(c|0)<(d|0);c=c+1|0;if(g)continue;break}c=(m|0)<(w|0);m=m+1|0;if(c)continue;break}}e=e+1|0;if((v|0)!=(e|0))continue;break}}f=0;while(1){g= +0;h=P(n,80)+s|0;while(1){f:{e=J[h+(g<<2)>>2];if(!e)break f;while(1){c=J[e+4>>2];if(!c)break f;j=J[e>>2];x=O[j+64>>3];e=c;while(1){d=J[c>>2];i=O[d+64>>3];g:{if(!(i!=x|O[j+72>>3]!=O[d+72>>3])&O[j+80>>3]==O[d+80>>3])break g;p=O[j+32>>3];q=O[j+16>>3];r=p-q;k=O[d+32>>3];l=O[d+16>>3];o=k-l;if(!(((k>p?p:k)-(lr?r:o)>.3))break g;p=O[j+40>>3];q=O[j+24>>3];r=p-q;k=O[d+40>>3];l=O[d+24>>3];o=k-l;if(!(((k>p?p:k)-(lr?r:o)>.3))break g;f=1;H[(x+O[j+72>>3]+O[j+80>>3]>3]+O[d+80>>3]? +d:j)+93|0]=1}c=J[c+4>>2];if(c)continue;break}continue}}g=g+1|0;if((g|0)!=20)continue;break}n=n+1|0;if((n|0)!=20)continue;break}m=0;h:{if(J[a+52>>2]!=1)break h;c=vc(16);J[699344]=0;m=_(3352,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;uc(c);ba(a|0);B()}i:{if(!f)break i;Bl(b,3658);n=J[b+8>>2];if((n|0)<=0)break i;c=0;while(1){g=J[b>>2];d=J[g+(c<<2)>>2];j:{if(K[d+93|0]){h=c>>31&c;e=c;while(1){k:{a=e;if((a|0)<=0){a=h;break k}e=a-1|0;f=J[g+(e<<2)>>2];if(O[f+64>>3]!=O[d+64>>3]|O[f+72>>3]!= +O[d+72>>3]|O[f+80>>3]!=O[d+80>>3])break k;if(K[f+88|0]==K[d+88|0])continue}break}e=c+1|0;h=((e|0)<(n|0)?n:e)-1|0;while(1){l:{e=c;c=c+1|0;if((n|0)<=(c|0)){e=h;break l}f=J[g+(c<<2)>>2];if(O[f+64>>3]!=O[d+64>>3]|O[f+72>>3]!=O[d+72>>3]|O[f+80>>3]!=O[d+80>>3])break l;if(K[f+88|0]==K[d+88|0])continue}break}if((a|0)>(e|0))break j;c=a;if(!m){while(1){h=J[J[b>>2]+(a<<2)>>2];if(h)uc(h);zj(b,a);h=(c|0)==(e|0);c=c+1|0;if(!h)continue;break}break j}while(1){sd(m,J[J[b>>2]+(a<<2)>>2]);zj(b,a);h=(c|0)==(e|0);c=c+ +1|0;if(!h)continue;break}break j}a=c+1|0}c=a;n=J[b+8>>2];if((c|0)<(n|0))continue;break}}f=0;while(1){b=P(f,80)+s|0;c=J[b>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+4>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+8>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+12>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+16>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+20>>2];if(c)while(1){a=J[c+4>>2];uc(c);c= +a;if(c)continue;break}c=J[b+24>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+28>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+32>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+36>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+40>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+44>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+48>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c= +J[b+52>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+56>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+60>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+64>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+68>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+72>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}c=J[b+76>>2];if(c)while(1){a=J[c+4>>2];uc(c);c=a;if(c)continue;break}f=f+1|0;if((f|0)!=20)continue; +break}fc=s+1600|0;return m}function Sub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;a:{f=K[a+286|0];if(!(f|K[a+287|0]|(K[a+288|0]|K[a+289|0])))break a;if(K[a+290|0]|!(!K[a+289|0]|!K[a+341|0]))break a;if(!(!K[a+288|0]|K[a+2253|0]!=7)){Jc(a,1030,0,0);return 1030}if(!(K[a+287|0]|c)){Jc(a,1028,0,0);return 1028}if(!(K[a+293|0]|(!f|K[a+325|0]!=3))){Jc(a,1032,0,0);return 1032}H[a+300|0]=1;b:{if(c){c:{if(K[a+477|0]){H[a+477|0]=0;f=up(a); +if(f)break c;J[a+440>>2]=J[a+440>>2]+1}f=J[a+1012>>2];if(f){f=kc[f|0](a)|0;J[a+1012>>2]=0;if(f)break c}if(!K[a+2420|0]){f=Faa(a);if(f)break c}J[a+2340>>2]=d;J[a+2344>>2]=c;if(!J[a+2352>>2]){J[a+2352>>2]=J[a+636>>2];J[a+2356>>2]=J[a+616>>2]+J[a+604>>2]}d:{e:{s=a+2340|0;p=Vk(s,2);if(p>>>0<=1)while(1){if(!J[a+2356>>2]){f:{if(J[a+572>>2]>=J[a+320>>2])break f;f=J[a+612>>2];g:{if((f|0)>=J[a+616>>2])break g;j=J[a+636>>2];if(!K[j+f|0])break g;i=0;k=1039;h:{i:{j:{k:{l:switch(K[f+j|0]-1|0){case 0:k=0;h=J[a+ +652>>2];if((h|0)>=J[a+604>>2])break i;g=j+J[a+616>>2]|0;f=h+g|0;while(1){H[f|0]=K[g|0]+K[f|0];g=g+1|0;f=f+1|0;h=h+1|0;if((h|0)>2])continue;break}break i;case 1:f=0;if(J[a+604>>2]<=0)break h;h=J[a+616>>2];f=h+j|0;g=h+J[a+640>>2]|0;k=0;h=0;while(1){H[f|0]=K[g|0]+K[f|0];g=g+1|0;f=f+1|0;h=h+1|0;if((h|0)>2])continue;break}break i;case 2:f=J[a+616>>2];g=f+J[a+640>>2]|0;h=f+j|0;j=J[a+652>>2];if((j|0)<=0){f=h;break j}k=j&3;if(j>>>0<4){f=h;break k}l=j&-4;f=h;while(1){H[f|0]=K[f|0]+(K[g|0]>>> +1|0);H[f+1|0]=K[f+1|0]+(K[g+1|0]>>>1|0);H[f+2|0]=K[f+2|0]+(K[g+2|0]>>>1|0);H[f+3|0]=K[f+3|0]+(K[g+3|0]>>>1|0);g=g+4|0;f=f+4|0;i=i+4|0;if((l|0)!=(i|0))continue;break}break k;case 3:break l;default:break i}f=J[a+616>>2];h=f+J[a+640>>2]|0;g=h;j=f+j|0;f=j;l=J[a+652>>2];m:{if((l|0)<=0)break m;if(l>>>0>=4){k=l&-4;while(1){H[f|0]=K[g|0]+K[f|0];H[f+1|0]=K[g+1|0]+K[f+1|0];H[f+2|0]=K[g+2|0]+K[f+2|0];H[f+3|0]=K[g+3|0]+K[f+3|0];g=g+4|0;f=f+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}k=l&3;if(!k)break m;i=0;while(1){H[f| +0]=K[g|0]+K[f|0];g=g+1|0;f=f+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}}k=0;if(J[a+604>>2]<=(l|0))break i;while(1){i=K[g|0];o=K[j|0];r=K[h|0];m=(i+o|0)-r|0;n=m-r|0;q=n>>31;q=(n^q)-q|0;t=m-o|0;n=t>>31;u=m-i|0;m=u>>31;n=(n^t)-n|0;m=(m^u)-m|0;n:{if(!(n>>>0>m>>>0|n>>>0>q>>>0)){i=o+K[f|0]|0;break n}o=K[f|0];i=o+i|0;if(m>>>0<=q>>>0)break n;i=o+r|0}H[f|0]=i;h=h+1|0;j=j+1|0;g=g+1|0;f=f+1|0;l=l+1|0;if((l|0)>2])continue;break}break i}if(!k)break j;i=0;while(1){H[f|0]=K[f|0]+(K[g|0]>>>1|0);g=g+1|0; +f=f+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}}k=0;if(J[a+604>>2]<=(j|0))break i;while(1){H[f|0]=K[f|0]+(K[g|0]+K[h|0]>>>1|0);h=h+1|0;g=g+1|0;f=f+1|0;j=j+1|0;if((j|0)>2])continue;break}}f=k}if(f)break e}f=J[a+992>>2];if(f){f=kc[f|0](a)|0;v=a,w=AEb(J[a+636>>2],J[a+640>>2],32),J[v+636>>2]=w;J[a+640>>2]=jc;if(f)break e}o:{p:{if(K[a+289|0]){f=J[a+984>>2];if(!f)break o;f=kc[f|0](a)|0;break p}f=J[a+988>>2];if(f){f=kc[f|0](a)|0;if(f)break e}f=J[a+984>>2];if(f){f=kc[f|0](a)|0;if(f)break e}f=J[a+ +976>>2];if(f){f=kc[f|0](a)|0;if(f)break e}f=J[a+968>>2];if(!f)break o;f=kc[f|0](a)|0;if(f)break e;q:{if(!K[a+115|0]|J[a+12>>2]==2&M[a+320>>2]<301)break q;f=J[a+680>>2];if(J[a+516>>2]|(J[a+684>>2]-f|0)<51|((f+J[a+572>>2]|0)-J[a+664>>2]|0)%20)break q;H[a+502|0]=1}f=0}if(!f)break o;break e}if(!J[a+992>>2]){v=a,w=AEb(J[a+636>>2],J[a+640>>2],32),J[v+636>>2]=w;J[a+640>>2]=jc}f=zs(a);if(!f)break f;break e}J[a+2352>>2]=J[a+636>>2];J[a+2356>>2]=J[a+616>>2]+J[a+604>>2]}r:{s:{if(!(!J[a+2344>>2]|p)){if(J[a+572>> +2]>2]|K[a+568|0]<7)break r;f=1047;if(!Jc(a,1047,0,0))break s}f=0}break d}p=Vk(s,2);if(p>>>0<2)continue;break}Jc(a,5,p,0);f=5;break d}Jc(a,f,0,0)}}if(f)break b}t:{if(!K[a+112|0])break t;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break b;b=J[e>>2];J[b+36>>2]=c;f=b;b=!c;H[f+32|0]=b;if(b)break t;b=kc[J[a+152>>2]](c)|0;J[J[e>>2]+40>>2]=b;b=J[J[e>>2]+40>>2];if(!b){Jc(a,1,0,0);return 1}xc(b,d,c)}f=0}return f|0}Jc(a,1029,0,0);return 1029}function YDb(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;J[a+76>>2]=0;J[a+80>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+56>>2]=0;e=J[b+8>>2];a:{b:{c:{if(e&7)break c;d:{e:{f:{d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break g}e=td(b,1);if((e|0)==-1)break c}H[a+12|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;h:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d| +0];break h}e=td(b,1);if((e|0)==-1)break c}H[a+13|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;i:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break i}e=td(b,1);if((e|0)==-1)break c}H[a+52|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;j:{if((d|0)<=0){if((td(b,1)|0)!=-1)break j;break c}J[b+60>>2]=J[b+60>>2]+1;J[b+24>>2]=J[b+24>>2]+1}if(cf(b,a+ +16|0))break c;if(cf(b,a+20|0))break c;if(cf(b,a+24|0))break c;if(cf(b,a+28|0))break c;if(cf(b,a+32|0))break c;if(cf(b,a+36|0))break c;if(cf(b,a+40|0))break c;if(cf(b,a+44|0))break c;if(cf(b,a+48|0))break c;if(ak(b,a+60|0))break c;if(ak(b,a+72|0))break c;h=K[a+12|0];k:{if(!h){f=1;break k}d=K[a+52|0];e=h&7;l:{if(h>>>0<8){f=1;break l}h=h&248;f=1;while(1){f=P(d,P(d,P(d,P(d,P(d,P(d,P(d,P(d,f))))))));g=g+8|0;if((h|0)!=(g|0))continue;break}}if(!e)break k;g=0;while(1){f=P(d,f);g=g+1|0;if((e|0)!=(g|0))continue; +break}}k=P(K[a+13|0],f);d=Dc(k<<2);J[a+56>>2]=d;if(!d)break b;d=Dc(P(K[a+12|0],J[a+60>>2])<<2);J[a+68>>2]=d;if(!d)break c;d=Dc(K[a+12|0]<<2);J[a+64>>2]=d;if(!d)break c;h=K[a+12|0];m:{if(!h)break m;d=J[a+60>>2];g=0;e=0;if(h>>>0>=4){f=h&252;while(1){J[J[a+64>>2]+(e<<2)>>2]=J[a+68>>2]+(P(d,e)<<2);i=e|1;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+(P(d,i)<<2);i=e|2;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+(P(d,i)<<2);i=e|3;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+(P(d,i)<<2);e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}h= +h&3;if(!h)break m;while(1){J[J[a+64>>2]+(e<<2)>>2]=J[a+68>>2]+(P(d,e)<<2);e=e+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}}d=Dc(P(K[a+13|0],J[a+72>>2])<<2);J[a+80>>2]=d;if(!d)break c;d=Dc(K[a+13|0]<<2);J[a+76>>2]=d;if(!d)break c;h=K[a+13|0];n:{if(!h)break n;d=J[a+72>>2];g=0;e=0;if(h>>>0>=4){f=h&252;j=0;while(1){J[J[a+76>>2]+(e<<2)>>2]=J[a+80>>2]+(P(d,e)<<2);i=e|1;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+(P(d,i)<<2);i=e|2;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+(P(d,i)<<2);i=e|3;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>> +2]+(P(d,i)<<2);e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=h&3;if(!f)break n;while(1){J[J[a+76>>2]+(e<<2)>>2]=J[a+80>>2]+(P(d,e)<<2);e=e+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}j=K[a+12|0];if(!j)break d;f=0;g=J[a+60>>2];if((g|0)<=0)break d;while(1){e=0;if((g|0)>0){while(1){if(ak(b,J[J[a+64>>2]+(f<<2)>>2]+(e<<2)|0))break c;e=e+1|0;g=J[a+60>>2];if((e|0)<(g|0))continue;break}j=K[a+12|0]}f=f+1|0;if(f>>>0<(j&255)>>>0)continue;break}break e}J[b+8>>2]=e|4;break c}h=K[a+13|0]}f=0;d=0;o:{if(!h)break o; +g=0;j=J[a+72>>2];if((j|0)<=0){d=h;break o}d=h;while(1){e=0;if((j|0)>0){while(1){if(ak(b,J[J[a+76>>2]+(g<<2)>>2]+(e<<2)|0))break c;e=e+1|0;j=J[a+72>>2];if((e|0)<(j|0))continue;break}d=K[a+13|0]}g=g+1|0;if(g>>>0<(d&255)>>>0)continue;break}}if((k|0)>0){while(1){if(ak(b,J[a+56>>2]+(f<<2)|0))break c;f=f+1|0;if((k|0)!=(f|0))continue;break}d=K[a+13|0]}h=d&255;d=K[a+12|0];g=P(d,J[a+60>>2]);j=J[a+72>>2];e=1;p:{if(!d)break p;b=K[a+52|0];if(d>>>0>=8){k=d&248;f=0;while(1){e=P(b,P(b,P(b,P(b,P(b,P(b,P(b,P(b,e)))))))); +f=f+8|0;if((k|0)!=(f|0))continue;break}}d=d&7;if(!d)break p;f=0;while(1){e=P(b,e);f=f+1|0;if((d|0)!=(f|0))continue;break}}b=0;if(((g+P(h,e+j|0)<<1)+44|0)==(c|0))break a}b=J[a+56>>2];if(!b)break b;uc(b)}b=J[a+64>>2];if(b)uc(b);b=J[a+68>>2];if(b)uc(b);b=J[a+76>>2];if(b)uc(b);b=-1;a=J[a+80>>2];if(!a)break a;uc(a)}return b|0}function kx(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;k=fc-16|0;fc=k;a:{if(!a)break a;b:switch(J[a+4>>2]-2|0){case 0:e=Y1(b,c,a);break a;case 16:while(1){d=0;if(J[a+4>>2]== +18)d=Gl(0,J[a+8>>2],J[a+12>>2]);e=d;if(g){J[g>>2]=e;e=f}g=d;f=e;a=J[a>>2];if(a)continue;break}break a;case 7:case 11:e=0;c:{if(!a)break c;f=oq(J[a+56>>2]);e=0;if(!f)break c;e=a;a=J[a+8>>2];if(a)l=f,m=kc[J[663201]](a)|0,J[l+8>>2]=m;b=J[e+60>>2];if(b){a=b;while(1){c=a;a=a+1|0;if(K[c|0])continue;break}a=0;c=c-b|0;d:{if((c|0)<0)break d;i=kc[J[663198]](c+1|0)|0;if(!i){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}a=xc(i,b,c);H[c+a|0]=0}J[f+60>>2]=a}b=J[e+72>>2];if(b){a=b;while(1){c=a;a=a+1|0;if(K[c|0])continue; +break}a=0;c=c-b|0;e:{if((c|0)<0)break e;i=kc[J[663198]](c+1|0)|0;if(!i){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break e}a=xc(i,b,c);H[c+a|0]=0}J[f+72>>2]=a}J[f+76>>2]=J[e+76>>2];J[f+36>>2]=J[e+36>>2];J[f+40>>2]=J[e+40>>2];f:{if(!d)break f;J[f+12>>2]=0;J[f+16>>2]=0;a=J[e+44>>2];if(a){a=OK(a);J[f+44>>2]=a;if(!a){Rr(f);e=0;break c}Xm(a,f);J[J[f+44>>2]+20>>2]=f}g=J[e+52>>2];if(g){c=0;d=0;while(1){a=0;if(J[g+4>>2]==18)a=Gl(0,J[g+8>>2],J[g+12>>2]);b=a;if(c){J[c>>2]=a;b=d}c=a;d=b;g=J[g>>2];if(g)continue;break}J[f+ +52>>2]=b}g=J[e+12>>2];if(!g)break f;b=0;c=0;while(1){g:{h:{if(J[g+4>>2]==14){a=J[f+44>>2];if(!a){a=OK(g);if(!a)break h;J[a+20>>2]=f;J[a+32>>2]=f;J[f+44>>2]=a}dh(f,a);break g}a=kx(g,f,f,1);if(a)break g}J[f+12>>2]=0;J[f+16>>2]=0;break f}i:{j:{if(!c){b=0;c=a;break j}if((a|0)==(b|0))break i;J[b+24>>2]=a}J[a+28>>2]=b;b=a}g=J[g+24>>2];if(g)continue;break}J[f+12>>2]=c;while(1){a=c;c=J[a+24>>2];if(c)continue;break}J[f+16>>2]=a;e=f;break c}e=f}break a;case 8:case 10:case 12:case 13:case 14:case 15:break a; +default:break b}f=kc[J[663195]](60)|0;if(!f){J[k>>2]=14566;Hc(0,0,0,0,0,2,2,3,14566,0,0,0,32879,k);break a}J[f>>2]=0;J[f+4>>2]=0;J[f+56>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;e=J[a+4>>2];J[f+32>>2]=b;J[f+4>>2]=e;J[f+20>>2]=c;g=J[a+8>>2];e=774748;k:{l:{if((g|0)==774748)break l;e=774753;if((g|0)==774753)break l;e=774763;if((g|0)==774763)break l;if(!g)break k;m:{if(!b)break m;e=J[b+ +80>>2];if(!e)break m;e=te(e,g,-1);break l}e=ff(g)}J[f+8>>2]=e}e=J[a+4>>2];n:{if((e|0)!=1){g=J[a+40>>2];if(!g|(1<>>0<=20:0))break n;l=f,m=ff(g),J[l+40>>2]=m;break n}I[f+56>>1]=L[a+56>>1]}if(c){o:{if(!J[693393])break o;e=J[693390];if(!e)break o;kc[e|0](f)}e=dh(c,f);if((f|0)!=(e|0))break a}p:{if(!d)break p;e=J[a+4>>2]-1|0;q:{if((e|0)!=18?e:0)break q;h=J[a+48>>2];if(!h)break q;e=0;if(h)while(1){g=0;if(J[h+4>>2]==18)g=Gl(0,J[h+8>>2],J[h+12>>2]);e=g;if(j){J[j>>2]=e;e=i}j=g;i=e;h=J[h>>2];if(h)continue; +break}J[f+48>>2]=e}e=J[a+36>>2];if(e){e=Il(b,f,J[e+12>>2]);r:{if(e)break r;g=Il(J[a+32>>2],a,J[J[a+36>>2]+12>>2]);if(g){e=f;while(1){i=e;e=J[e+20>>2];if(e)continue;break}e=Gl(i,J[g+8>>2],J[g+12>>2]);break r}e=X1(b,f,J[a+36>>2])}J[f+36>>2]=e}e=J[a+4>>2];i=e-1|0;s:{if((i|0)!=18?i:0)break s;h=J[a+44>>2];if(!h)break s;e=0;j=0;i=0;t:{u:{if(f){if(!h|J[f+4>>2]!=1)break t;break u}if(h)break u;break t}while(1){e=0;g=Y1(0,f,h);if(!g)break t;e=g;if(j){J[j+24>>2]=e;J[e+28>>2]=j;e=i}j=g;i=e;h=J[h+24>>2];if(h)continue; +break}}J[f+44>>2]=e;e=J[a+4>>2]}v:{if((e|0)==5){if(!b){a=fj(J[f+8>>2]);J[f+12>>2]=a;break v}if(J[a+32>>2]!=(b|0)){a=J[f+8>>2];w:{x:{if(!b)break x;d=J[b+44>>2];y:{if(!d)break y;d=J[d+48>>2];if(!d)break y;d=Bf(d,a,0,0);if(d)break w}if(J[b+40>>2]==1)break x;b=J[b+48>>2];if(!b)break x;b=J[b+48>>2];if(!b)break x;d=Bf(b,a,0,0);if(d)break w}d=fj(a)}a=d;J[f+12>>2]=a;break v}a=J[a+12>>2];J[f+12>>2]=a;break v}if((d|0)==2)break p;a=J[a+12>>2];if(!a)break p;d=W1(a,b,f);J[f+12>>2]=d;if(!d){a=0;break v}e=J[d+24>> +2];z:{if(!e){a=d;break z}while(1){J[d+20>>2]=f;a=e;d=a;e=J[a+24>>2];if(e)continue;break}}J[a+20>>2]=f}J[f+16>>2]=a}A:{if(!J[693393]|c)break A;a=J[693390];if(!a)break A;kc[a|0](f)}e=f}fc=k+16|0;return e}function a5(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,p=0,q=0,r=0,s=0,t=0;g=fc-192|0;fc=g;i=O[f>>3];a:{o=O[e>>3];b:{if(!(!(o>=-1E-12)|!(o<=1E-12)|(!(i>=-1E-12)|!(i<=1E-12)))){h=O[c>>3];O[g+40>>3]=O[d>>3];O[g+32>>3]=h;h=an(b,g+32|0);if(h==-1){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;break b}J[699344]= +0;b=_(4,8)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a>>2]=b;c=b+8|0;J[a+8>>2]=c;O[b>>3]=h;J[a+4>>2]=c;break b}e=K[b+120|0];h=O[b+72>>3];k=O[b>>3];i=qf(-i,o);o=Me(i);s=Ee(i);c:{if(!e){J[699344]=0;n=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;O[n+24>>3]=h;O[n+16>>3]=h;O[n+8>>3]=k;O[n>>3]=k;i=O[b+80>>3];k=O[b+8>>3];J[699344]=0;q=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;O[q>>3]=k;h=i;break c}i=O[b+104>>3];r=O[b+88>>3];J[699344]=0;n=_(4,32)|0;e=J[699344];J[699344]=0;if((e| +0)==1)break a;O[n+24>>3]=h;O[n>>3]=k;O[n+16>>3]=h+i;O[n+8>>3]=h+r;i=O[b+112>>3];k=O[b+96>>3];h=O[b+80>>3];r=O[b+8>>3];J[699344]=0;q=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;O[q>>3]=r;k=h+k;i=h+i}O[q+24>>3]=h;O[q+16>>3]=i;O[q+8>>3]=k;J[g+184>>2]=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;b=0;f=0;d:{e:{f:{g:{h:{i:{j:{k:{while(1){e=t<<3;i=O[e+n>>3]-O[c>>3];k=O[e+q>>3]-O[d>>3];h=i*o-s*k;l:{if(b>>>0

      >>0){O[b>>3]=h;e=b+8|0;J[g+184>>2]=e;break l}j=b-f>>3;e=j+1|0;if(e>>>0>=536870912)break i;m=p-f| +0;l=m>>2;l=m>>>0>=2147483640?536870911:e>>>0>>0?l:e;m:{if(!l){m=0;break m}if(l>>>0>=536870912)break j;J[699344]=0;m=_(4,l<<3)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k}j=(j<<3)+m|0;O[j>>3]=h;e=j+8|0;if((b|0)!=(f|0))while(1){j=j-8|0;b=b-8|0;O[j>>3]=O[b>>3];if((b|0)!=(f|0))continue;break}p=(l<<3)+m|0;J[g+184>>2]=e;if(f)uc(f);f=j}h=i*s+o*k;n:{if(e>>>0

      >>0){O[e>>3]=h;b=e+8|0;J[g+184>>2]=b;break n}j=e-f>>3;b=j+1|0;if(b>>>0>536870911)break i;m=p-f|0;l=m>>2;l=m>>>0>=2147483640?536870911:b>>>0>> +0?l:b;o:{if(!l){m=0;break o}if(l>>>0>536870911)break j;J[699344]=0;m=_(4,l<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k}j=(j<<3)+m|0;O[j>>3]=h;b=j+8|0;if((e|0)!=(f|0))while(1){j=j-8|0;e=e-8|0;O[j>>3]=O[e>>3];if((e|0)!=(f|0))continue;break}p=(l<<3)+m|0;J[g+184>>2]=b;if(f)uc(f);f=j}t=t+1|0;if((t|0)!=4)continue;break}J[g+188>>2]=p;J[g+180>>2]=f;H[g+79|0]=0;H[g+80|0]=0;H[g+81|0]=0;H[g+82|0]=0;J[g+72>>2]=0;J[g+76>>2]=0;d=g- -64|0;c=d;J[c>>2]=0;J[c+4>>2]=0;J[g+56>>2]=0;J[g+60>>2]=0;J[g+48>>2]=0;J[g+ +52>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+84>>2]=-1;c=Ac(g+88|0,0,67);J[g+160>>2]=0;J[g+164>>2]=0;J[g+156>>2]=-1;J[g+168>>2]=0;J[g+172>>2]=0;switch((b-f>>3)-4|0){case 4:break g;case 0:break f;default:break d}}ea(0)|0;J[g+180>>2]=f;J[g+188>>2]=p;Bc();B()}J[g+180>>2]=f;J[g+188>>2]=p;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break a}J[g+180>>2]=f;J[g+188>>2]=p;J[699344]=0;$(2494,g+180|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}B()}h=O[f>>3];i=O[f+8>>3]; +J[g+56>>2]=0;J[g+60>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[g+72>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;J[g+84>>2]=-1;J[g+48>>2]=0;J[g+52>>2]=0;O[g+40>>3]=i;O[g+32>>3]=h;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;h=O[f+56>>3];i=O[f+40>>3]-h;k=O[f+48>>3];o=O[f+32>>3]-k;r=O[f+16>>3]-k;s=O[f+24>>3]-h;p:{if(!(r!=0|s!=0|o!=0)){b=0;if(i==0)break p}b=1}H[g+153|0]=0;H[g+154|0]=0;H[g+152|0]=b;O[g+144>>3]=i;O[g+136>>3]=o;O[g+128>>3]=s;O[g+120>>3]=r;O[g+112>>3]=h;O[g+104>>3]=k;break e}h=O[f>>3];i=O[f+8>>3];J[g+56>>2]=0; +J[g+60>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[g+72>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;J[g+84>>2]=-1;J[g+48>>2]=0;J[g+52>>2]=0;O[g+40>>3]=i;O[g+32>>3]=h;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;h=O[f+16>>3];i=O[f+24>>3];J[g+120>>2]=0;J[g+124>>2]=0;O[g+112>>3]=i;J[g+128>>2]=0;J[g+132>>2]=0;J[g+136>>2]=0;J[g+140>>2]=0;J[g+144>>2]=0;J[g+148>>2]=0;J[g+152>>2]=0;O[g+104>>3]=h}J[g+156>>2]=-1;J[g+168>>2]=0;J[g+172>>2]=0;J[g+160>>2]=0;J[g+164>>2]=0}J[g+28>>2]=1;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0; +J[g>>2]=0;J[g+4>>2]=1072693248;pM(g+32|0,g+28|0,g+16|0,a,g+8|0,g);a=J[g+180>>2];if(a)uc(a);uc(q);uc(n)}fc=g+192|0;return}ea(0)|0;Bc();B()}function edb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=fc-176|0;fc=f;a:{b:{g=J[d+88>>2];c:{if(!g)break c;h=J[d+76>>2];i=h+b|0;if((i|0)<0)break c;m=J[a+1624>>2];if((m|0)<=(b|0))break c;p=J[d+80>>2];d=p+c|0;if((d|0)<0)break c;j=K[(a+96|0)+1468|0];if(!((d|0)>=J[a+1628>>2]|(i|0)>=(m|0)|(j|(b|c)<0))){m= +c;c=h;d=g;l=fc-16|0;fc=l;J[l+12>>2]=-16777216;J[l+12>>2]=J[e+8>>2];J[l+4>>2]=a+1640;J[l+8>>2]=J[l+12>>2];i=l+8|0;d:{if(J[a+2940>>2]==3){if((p|0)<=0)break d;h=(c|0)/3|0;s=P(h,3);while(1){e=h;a=d;j=m+n|0;g=J[l+4>>2];e:{if((j|0)>J[g+16>>2]|(j|0)>2])break e;c=J[g+4>>2];f:{if((c|0)<=(b|0)){c=b;break f}e=(b-c|0)+e|0;if((e|0)<=0)break e;a=P(c-b|0,3)+a|0}k=J[g+12>>2];if((k|0)<(c+e|0)){e=k-c|0;if((e|0)<0)break e;e=e+1|0}if(!K[i+3|0])break e;k=0;g=J[J[g>>2]>>2];r=J[g+4>>2];q=J[g+16>>2];g:{h:{if((q|0)>= +0){g=P(j,q);break h}o=r-J[g>>2]|0;g=P(j,q);if((o|0)<(0-g|0))break g}k=g+r|0}g=(c<<2)+k|0;while(1){j=K[a+2|0];k=K[i+2|0];r=K[a+1|0];q=K[i+1|0];c=K[g+2|0];o=c;t=K[i|0]-c|0;c=K[i+3|0];H[g+2|0]=o+(P(t,P(c,K[a|0]+1|0)>>>8|0)>>>8|0);o=K[g+1|0];H[g+1|0]=o+(P(q-o|0,P(c,r+1|0)>>>8|0)>>>8|0);o=k;k=K[g|0];H[g|0]=(P(o-k|0,P(c,j+1|0)>>>8|0)>>>8|0)+k;g=g+4|0;a=a+3|0;e=e-1|0;if(e)continue;break}}d=d+s|0;n=n+1|0;if((p|0)!=(n|0))continue;break}break d}if((p|0)<=0)break d;while(1){k=m+n|0;j=J[l+4>>2];i:{if((k|0)>J[j+ +16>>2]|(k|0)>2])break i;h=c;e=d;a=b;g=J[j+4>>2];if((a|0)<(g|0)){h=c+(a-g|0)|0;if((h|0)<=0)break i;e=(g-a|0)+d|0;a=g}g=J[j+12>>2];if((g|0)<(a+h|0)){h=g-a|0;if((h|0)<0)break i;h=h+1|0}v5(J[j>>2],a,k,h,i,e)}d=c+d|0;n=n+1|0;if((p|0)!=(n|0))continue;break}}fc=l+16|0;break c}J[f+56>>2]=0;J[f+60>>2]=0;J[f+76>>2]=0;J[f+80>>2]=0;J[f+84>>2]=64;J[f+96>>2]=0;J[f+100>>2]=0;J[f+104>>2]=254;J[f+116>>2]=0;J[f+120>>2]=0;J[f+124>>2]=256;J[f+136>>2]=0;J[f+140>>2]=0;J[f+144>>2]=0;J[f+148>>2]=0;J[f+48>>2]=0;J[f+ +52>>2]=0;J[f+68>>2]=0;J[f+72>>2]=0;J[f+64>>2]=126;J[f+88>>2]=0;J[f+92>>2]=0;J[f+108>>2]=0;J[f+112>>2]=0;J[f+168>>2]=0;J[f+160>>2]=-2147483647;J[f+164>>2]=-2147483647;J[f+152>>2]=2147483647;J[f+156>>2]=2147483647;J[f+128>>2]=0;J[f+132>>2]=0;if((p|0)>0){m=h+3|0;n=m>>>0>536870911?-1:m<<3;j=i-1|0;while(1){J[f+16>>2]=2147483632;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[699344]=0;J[f+40>>2]=m;d=_(27,n|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;J[f+28>>2]=m;J[f+ +36>>2]=d;J[699344]=0;i=_(27,m|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break b;J[f+24>>2]=i;I[d+2>>1]=0;i=xc(i,g+P(h,l)|0,h);J[f+44>>2]=d+8;I[d+10>>1]=h;I[d+8>>1]=b;J[d+12>>2]=i;J[f+20>>2]=c+l;J[f+16>>2]=j;J[f+32>>2]=i+h;J[699344]=0;da(2331,f+48|0,f+16|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=J[f+36>>2];if(d)uc(d);d=J[f+24>>2];if(d)uc(d);l=l+1|0;if((p|0)!=(l|0))continue;break}}J[699344]=0;b=J[e+4>>2];c=J[699344];J[699344]=0;j:{k:{if((c|0)!=1){if(b)break j;J[699344]=0;J[f+12>>2]=-16777216; +J[f+12>>2]=J[e+8>>2];b=J[699344];J[699344]=0;if((b|0)==1)break k;J[f+20>>2]=J[f+12>>2];J[699344]=0;J[f+16>>2]=a+1640;ca(2333,a|0,f+48|0,f+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)break j;d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}a=J[f+112>>2];if(a){d=a-1|0;J[f+112>>2]=d;b=J[f+120>>2]+(a<<2)|0;while(1){b=b-4|0;a=J[b>>2];if(a){uc(a);a=J[f+112>>2]}else a=d;d=a-1|0;J[f+112>>2]=d;if(a)continue;break}}a=J[f+120>>2];if(a)uc(a);a=J[f+92>>2];if(a){d=a-1|0;J[f+92>>2]=d;b=J[f+100>>2]+(a<<2)|0;while(1){b= +b-4|0;a=J[b>>2];if(a){uc(a);a=J[f+92>>2]}else a=d;d=a-1|0;J[f+92>>2]=d;if(a)continue;break}}a=J[f+100>>2];if(a)uc(a);yD(f+48|0)}fc=f+176|0;return 0}d=Z()|0;Kf(f+16|0)}b=f+48|0;c=J[b- -64>>2];if(c){a=c-1|0;J[b+64>>2]=a;c=J[b+72>>2]+(c<<2)|0;while(1){c=c-4|0;e=J[c>>2];if(e){uc(e);a=J[b+64>>2]}e=a;a=e-1|0;J[b+64>>2]=a;if(e)continue;break}}a=J[b+72>>2];if(a)uc(a);c=J[b+44>>2];if(c){a=c-1|0;J[b+44>>2]=a;c=J[b+52>>2]+(c<<2)|0;while(1){c=c-4|0;e=J[c>>2];if(e){uc(e);a=J[b+44>>2]}e=a;a=e-1|0;J[b+44>>2]=a; +if(e)continue;break}}a=J[b+52>>2];if(a)uc(a);yD(b);ba(d|0);B()}function HQa(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=fc-16|0;fc=h;j=Dc(40);J[j>>2]=0;J[699344]=0;J[h+8>>2]=0;i=ga(493,1,0,0)|0;e=J[699344];J[699344]=0;a:{b:{if((e|0)==1)break b;k=4;f=-1;c:{d:{if(!e)break d;g=J[699345];if(!g)break d;f=Pc(J[e>>2],j,4);if(!f)break c;gc=g}e=gc;e:{f:{if((f|0)==1)break f;J[h+12>>2]=i;e=J[h+12>>2];i=0;if(!e)break e;J[e+700>>2]=1E6;J[J[h+12>>2]+704>>2]=1E6;J[J[h+12>>2]+708>>2]=0;J[J[h+ +12>>2]+712>>2]=0;J[699344]=0;i=J[h+12>>2];if(i)J[i+156>>2]=88;else i=0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;g:{if(!e)break g;g=J[699345];if(!g)break g;f=Pc(J[e>>2],j,4);if(!f)break c;gc=g}e=gc;if((f|0)==1)break f;j=Hf(i,1,j,4);k=gc;e=0}while(1){if(e){J[699344]=0;ka(495);e=J[699344];J[699344]=0;if((e|0)==1)break b;h:{if(!e)break h;g=J[699345];if(!g)break h;if(!Pc(J[e>>2],j,k))break c;gc=g}e=gc;continue}J[699344]=0;i=J[h+12>>2];if(i){J[i+676>>2]=0;J[i+672>>2]=0;J[i+668>>2]=0}e=J[699344]; +J[699344]=0;if((e|0)==1)break b;f=-1;i:{if(!e)break i;g=J[699345];if(!g)break i;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;J[699344]=0;i=J[h+12>>2];if(i){J[i+164>>2]=d;J[i+160>>2]=c;J[i+168>>2]=b}e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;j:{if(!e)break j;g=J[699345];if(!g)break j;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;J[699344]=0;i=aa(497,J[h+12>>2],a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;k:{if(!e)break k;g=J[699345];if(!g)break k; +f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;if(!i)J[h+8>>2]=1;l:{if(J[h+8>>2])break l;J[J[h+12>>2]+272>>2]=8192;i=J[h+12>>2];e=J[J[h+12>>2]+272>>2];J[699344]=0;i=aa(498,i|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;m:{if(!e)break m;g=J[699345];if(!g)break m;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;J[J[h+12>>2]+268>>2]=i;if(J[J[h+12>>2]+268>>2])break l;J[h+8>>2]=1}J[J[h+12>>2]+244>>2]=499;J[J[h+12>>2]+248>>2]=500;J[J[h+12>>2]+252>>2]=J[h+12>>2]; +n:{if(J[h+8>>2])break n;J[699344]=0;i=ga(501,J[h+12>>2]+212|0,57999,56)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;o:{if(!e)break o;g=J[699345];if(!g)break o;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;p:switch(i+6|0){case 2:J[699344]=0;da(502,J[h+12>>2],58043);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;q:{if(!e)break q;g=J[699345];if(!g)break q;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 4:J[699344]=0;da(502,J[h+12>>2], +58305);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;r:{if(!e)break r;g=J[699345];if(!g)break r;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 0:J[699344]=0;da(502,J[h+12>>2],58542);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;s:{if(!e)break s;g=J[699345];if(!g)break s;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;J[h+8>>2]=1;break n;case 6:break n;default:break p}J[699344]=0;da(502,J[h+12>>2],58784);e=J[699344];J[699344]=0;if((e|0)== +1)break b;f=-1;t:{if(!e)break t;g=J[699345];if(!g)break t;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;J[h+8>>2]=1}i=J[h+12>>2];if(J[h+8>>2]){e=J[i+268>>2];J[699344]=0;da(503,i|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;u:{if(!e)break u;g=J[699345];if(!g)break u;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;J[J[h+12>>2]+268>>2]=0;J[699344]=0;ca(504,J[h+12>>2],0,0);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;v:{if(!e)break v;g=J[699345];if(!g)break v; +f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;i=0;break e}J[J[h+12>>2]+224>>2]=J[i+268>>2];J[J[h+12>>2]+228>>2]=J[J[h+12>>2]+272>>2];J[699344]=0;ca(113,J[h+12>>2],0,0);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;w:{if(!e)break w;g=J[699345];if(!g)break w;f=Pc(J[e>>2],j,k);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;break}i=J[h+12>>2]}uc(j);fc=h+16|0;break a}uc(j);nf(e,g);B()}a=Z()|0;uc(j);ba(a|0);B()}return i|0}function haa(a,b,c,d,e,f,g){var h=0,i=0,j=0;h=J[a+512>>2];if(!h)h= +J[a+528>>2];i=J[h+88>>2];J[a+984>>2]=0;J[a+988>>2]=0;J[a+976>>2]=0;J[a+968>>2]=0;j=Ck(a,h,J[a+316>>2],J[a+320>>2],K[a+324|0],K[a+325|0],K[a+326|0],K[a+327|0],K[a+328|0],0);if(!j){g=(g|0)==1;H[h+32|0]=g;H[i+34|0]=g;J[a+536>>2]=h;h=J[i+1176>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{g=K[a+325|0];switch(g|0){case 3:break g;case 2:break h;case 0:break i;case 6:break e;case 4:break f;default:break a}}c=P(J[a+320>>2],J[a+316>>2]);j:{if(K[a+324|0]!=16){if(!c)break j;d=0;while(1){H[h|0]=b;h=h+1|0;d=d+1|0;if(d>>>0>2],J[a+316>>2])>>>0)continue;break}break j}if(!c)break j;d=0;while(1){c=b<<8|b>>>8;H[h|0]=c;H[h+1|0]=c>>>8;h=h+2|0;d=d+1|0;if(d>>>0>2],J[a+316>>2])>>>0)continue;break}}if(f|!e)break b;I[i+836>>1]=b;H[i+56|0]=1;break b}g=P(J[a+320>>2],J[a+316>>2]);k:{if(K[a+324|0]!=16){if(!g)break k;g=0;while(1){H[h+2|0]=d;H[h+1|0]=c;H[h|0]=b;h=h+3|0;g=g+1|0;if(g>>>0>2],J[a+316>>2])>>>0)continue;break}break k}if(!g)break k;g=0;while(1){j=b<<8|b>>>8;H[h|0]=j;H[h+1|0]=j>>>8;j=c<<8|c>>>8;H[h+ +2|0]=j;H[h+3|0]=j>>>8;j=d<<8|d>>>8;H[h+4|0]=j;H[h+5|0]=j>>>8;h=h+6|0;g=g+1|0;if(g>>>0>2],J[a+316>>2])>>>0)continue;break}}if(f|!e)break b;I[i+842>>1]=d;I[i+840>>1]=c;I[i+838>>1]=b;H[i+56|0]=1;break b}H[i+55|0]=1;j=K[a+324|0]-1|0;g=j&255;if(g>>>0>=8|!(139>>>g&1))break d;H[i+68|0]=b;H[i+70|0]=d;H[i+69|0]=c;b=j<<24>>24<<2;J[i+64>>2]=J[b+218592>>2];Ac(i+71|0,0,J[b+218624>>2]);break c}c=P(J[a+320>>2],J[a+316>>2]);if(K[a+324|0]!=16){if(!c)break b;d=0;while(1){H[h+1|0]=f;H[h|0]=b;h=h+2|0;d=d+ +1|0;if(d>>>0>2],J[a+316>>2])>>>0)continue;break}break b}if(!c)break b;d=0;while(1){c=b<<8|b>>>8;H[h|0]=c;H[h+1|0]=c>>>8;c=f<<8|f>>>8;H[h+2|0]=c;H[h+3|0]=c>>>8;h=h+4|0;d=d+1|0;if(d>>>0>2],J[a+316>>2])>>>0)continue;break}break b}e=P(J[a+320>>2],J[a+316>>2]);if(K[a+324|0]!=16){if(!e)break b;e=0;while(1){H[h+3|0]=f;H[h+2|0]=d;H[h+1|0]=c;H[h|0]=b;h=h+4|0;e=e+1|0;if(e>>>0>2],J[a+316>>2])>>>0)continue;break}break b}if(!e)break b;e=0;while(1){g=b<<8|b>>>8;H[h|0]=g;H[h+1|0]= +g>>>8;g=c<<8|c>>>8;H[h+2|0]=g;H[h+3|0]=g>>>8;g=d<<8|d>>>8;H[h+4|0]=g;H[h+5|0]=g>>>8;g=f<<8|f>>>8;H[h+6|0]=g;H[h+7|0]=g>>>8;h=h+8|0;e=e+1|0;if(e>>>0>2],J[a+316>>2])>>>0)continue;break}break b}H[i+68|0]=b;J[i+64>>2]=1;H[i+70|0]=d;H[i+69|0]=c}if(!e|f>>>0>254)break b;H[i+848|0]=f;J[i+844>>2]=1;H[i+56|0]=1}g=K[a+325|0]}l:{m:switch(g&255){case 0:n:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1220;break l}J[a+1012>>2]=1221;break l;case 1:if(!K[a+328|0]){J[a+1012>>2]=1222;break l}J[a+ +1012>>2]=1223;break l;case 3:if(!K[a+328|0]){J[a+1012>>2]=1224;break l}J[a+1012>>2]=1225;break l;case 7:if(!K[a+328|0]){J[a+1012>>2]=1226;break l}J[a+1012>>2]=1227;break l;case 15:break n;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1228;break l}J[a+1012>>2]=1229;break l;case 2:o:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1230;break l}J[a+1012>>2]=1231;break l;case 8:break o;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1232;break l}J[a+1012>>2]=1233;break l;case 3:p:switch(K[a+324| +0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1234;break l}J[a+1012>>2]=1235;break l;case 1:if(!K[a+328|0]){J[a+1012>>2]=1236;break l}J[a+1012>>2]=1237;break l;case 3:if(!K[a+328|0]){J[a+1012>>2]=1238;break l}J[a+1012>>2]=1239;break l;case 7:break p;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1240;break l}J[a+1012>>2]=1241;break l;case 4:q:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1242;break l}J[a+1012>>2]=1243;break l;case 8:break q;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1244; +break l}J[a+1012>>2]=1245;break l;case 6:break m;default:break l}r:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1246;break l}J[a+1012>>2]=1247;break l;case 8:break r;default:break l}if(!K[a+328|0]){J[a+1012>>2]=1248;break l}J[a+1012>>2]=1249}J[a+620>>2]=0;J[a+624>>2]=0;J[a+612>>2]=0;J[a+616>>2]=1;J[a+628>>2]=0;J[a+632>>2]=0;j=0}return j}function BSa(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;Ac(a+128|0,0,128);d=J[b>>2]+c|0;f=K[d+4|0];j=K[d+3| +0];e=f+j|0;g=K[d+7|0];i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+16>>2]=k-q<<3;J[a>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+512|0;J[a+24>>2]=d+P(h,-15137)>>10;J[a+8>>2]=d+P(e,6270)>>10;d=j-f|0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k|0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0;J[a+28>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995);J[a+20>>2]=i+(h+g|0)>>10;J[a+12>>2]=d+(g+P(e,25172)|0)>>10;J[a+4>> +2]=i+(j+P(f,12299)|0)>>10;d=J[b+4>>2]+c|0;f=K[d+4|0];j=K[d+3|0];e=f+j|0;g=K[d+7|0];i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+48>>2]=k-q<<3;J[a+32>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+512|0;J[a+56>>2]=d+P(h,-15137)>>10;J[a+40>>2]=d+P(e,6270)>>10;d=j-f|0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k|0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0;J[a+60>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995); +J[a+52>>2]=i+(h+g|0)>>10;J[a+44>>2]=d+(g+P(e,25172)|0)>>10;J[a+36>>2]=i+(j+P(f,12299)|0)>>10;d=J[b+8>>2]+c|0;f=K[d+4|0];j=K[d+3|0];e=f+j|0;g=K[d+7|0];i=K[d|0];h=g+i|0;k=e+h|0;l=K[d+5|0];m=K[d+2|0];n=l+m|0;o=K[d+6|0];p=K[d+1|0];d=o+p|0;q=n+d|0;J[a+80>>2]=k-q<<3;J[a+64>>2]=(k+q<<3)+-8192;e=h-e|0;h=d-n|0;d=P(e+h|0,4433)+512|0;J[a+88>>2]=d+P(h,-15137)>>10;J[a+72>>2]=d+P(e,6270)>>10;d=j-f|0;f=i-g|0;j=P(d+f|0,-7373);e=p-o|0;h=e+d|0;g=m-l|0;k=g+f|0;i=P(h+k|0,9633)+512|0;l=j+P(d,2446)|0;d=i+P(h,-16069)|0; +J[a+92>>2]=l+d>>10;i=i+P(k,-3196)|0;h=P(g,16819);g=P(e+g|0,-20995);J[a+84>>2]=i+(h+g|0)>>10;J[a+76>>2]=d+(g+P(e,25172)|0)>>10;J[a+68>>2]=i+(j+P(f,12299)|0)>>10;b=J[b+12>>2]+c|0;c=K[b+4|0];d=K[b+3|0];f=c+d|0;j=K[b+7|0];e=K[b|0];g=j+e|0;i=f+g|0;h=K[b+5|0];k=K[b+2|0];l=h+k|0;m=K[b+6|0];n=K[b+1|0];b=m+n|0;o=l+b|0;J[a+112>>2]=i-o<<3;f=g-f|0;g=b-l|0;b=P(f+g|0,4433)+512|0;J[a+120>>2]=b+P(g,-15137)>>10;b=b+P(f,6270)>>10;J[a+104>>2]=b;c=d-c|0;d=e-j|0;f=P(c+d|0,-7373);j=n-m|0;l=j+c|0;e=k-h|0;h=e+d|0;g=P(l+ +h|0,9633)+512|0;k=g+P(l,-16069)|0;J[a+124>>2]=k+(f+P(c,2446)|0)>>10;g=g+P(h,-3196)|0;c=P(e,16819);e=P(e+j|0,-20995);J[a+116>>2]=g+(c+e|0)>>10;c=J[a>>2];i=(i+o<<3)+-8192|0;h=(c+i|0)+2|0;l=J[a+64>>2];m=J[a+32>>2];n=l+m|0;J[a+64>>2]=h-n>>2;J[a>>2]=h+n>>2;h=m-l|0;i=c-i|0;c=P(h+i|0,4433)+16384|0;J[a+96>>2]=c+P(h,-15137)>>15;J[a+32>>2]=c+P(i,6270)>>15;c=J[a+4>>2];d=g+(f+P(d,12299)|0)>>10;f=(c+d|0)+2|0;g=J[a+68>>2];i=J[a+36>>2];h=g+i|0;J[a+68>>2]=f-h>>2;J[a+4>>2]=f+h>>2;f=i-g|0;d=c-d|0;c=P(f+d|0,4433)+16384| +0;J[a+100>>2]=c+P(f,-15137)>>15;J[a+36>>2]=c+P(d,6270)>>15;c=J[a+8>>2];d=(c+b|0)+2|0;f=J[a+72>>2];g=J[a+40>>2];i=f+g|0;J[a+72>>2]=d-i>>2;J[a+8>>2]=d+i>>2;d=g-f|0;c=c-b|0;b=P(d+c|0,4433)+16384|0;J[a+104>>2]=b+P(d,-15137)>>15;J[a+40>>2]=b+P(c,6270)>>15;b=J[a+12>>2];c=k+(e+P(j,25172)|0)>>10;d=(b+c|0)+2|0;f=J[a+76>>2];j=J[a+44>>2];e=f+j|0;J[a+76>>2]=d-e>>2;J[a+12>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+108>>2]=b+P(d,-15137)>>15;J[a+44>>2]=b+P(c,6270)>>15;b=J[a+16>>2];c=J[a+112>>2];d=(b+ +c|0)+2|0;f=J[a+80>>2];j=J[a+48>>2];e=f+j|0;J[a+80>>2]=d-e>>2;J[a+16>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+112>>2]=b+P(d,-15137)>>15;J[a+48>>2]=b+P(c,6270)>>15;b=J[a+20>>2];c=J[a+116>>2];d=(b+c|0)+2|0;f=J[a+84>>2];j=J[a+52>>2];e=f+j|0;J[a+84>>2]=d-e>>2;J[a+20>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+116>>2]=b+P(d,-15137)>>15;J[a+52>>2]=b+P(c,6270)>>15;b=J[a+24>>2];c=J[a+120>>2];d=(b+c|0)+2|0;f=J[a+88>>2];j=J[a+56>>2];e=f+j|0;J[a+88>>2]=d-e>>2;J[a+24>>2]=d+e>>2;d=j-f| +0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+120>>2]=b+P(d,-15137)>>15;J[a+56>>2]=b+P(c,6270)>>15;b=J[a+28>>2];c=J[a+124>>2];d=(b+c|0)+2|0;f=J[a+92>>2];j=J[a+60>>2];e=f+j|0;J[a+92>>2]=d-e>>2;J[a+28>>2]=d+e>>2;d=j-f|0;c=b-c|0;b=P(d+c|0,4433)+16384|0;J[a+124>>2]=b+P(d,-15137)>>15;J[a+60>>2]=b+P(c,6270)>>15}function pG(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=fc-32|0;fc=e;J[e+24>>2]=b;J[e+28>>2]=a;while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{f=b-a>>3;switch(f|0){case 4:break i;case 2:break j;case 0:case 1:break b; +case 3:break f;case 5:break h;default:break g}}b=b-8|0;J[e+24>>2]=b;if(!(O[b>>3]>3]))break b;a=J[e+28>>2];h=O[a>>3];b=a;a=J[e+24>>2];O[b>>3]=O[a>>3];O[a>>3]=h;break b}b=b-8|0;J[e+24>>2]=b;xS(a,a+8|0,a+16|0,b);break b}b=b-8|0;J[e+24>>2]=b;wS(a,a+8|0,a+16|0,a+24|0,b);break b}if((f|0)<=30){f=fc-32|0;fc=f;d=a+16|0;wz(a,a+8|0,d);c=a+24|0;while(1){J[f+28>>2]=c;if((b|0)!=(c|0)){if(O[c>>3]>3]){O[f+16>>3]=O[J[f+28>>2]>>3];J[f+12>>2]=d;c=J[f+28>>2];while(1){k:{O[c>>3]=O[J[f+12>>2]>>3];c=J[f+12>>2]; +if((c|0)==(a|0)){c=a;break k}d=c-8|0;J[f+12>>2]=d;if(O[f+16>>3]>3])continue}break}O[c>>3]=O[f+16>>3]}d=J[f+28>>2];c=d+8|0;continue}break}fc=f+32|0;break b}if(!d){c=(a|0)==(b|0);if(c)break b;g=fc-16|0;fc=g;J[g+12>>2]=a;if(!c){l:{c=b-a>>3;if((c|0)<2)break l;d=c-2>>>1|0;while(1){if((d|0)<0)break l;rS(a,c,(d<<3)+a|0);d=d-1|0;continue}}d=b-a>>3;a=b;while(1){J[g+8>>2]=a;c=J[g+12>>2];l=c;if((a|0)!=(b|0)){if(O[a>>3]>3]){a=J[g+8>>2];h=O[a>>3];O[a>>3]=O[c>>3];O[c>>3]=h;a=J[g+12>>2];rS(a,d,a)}a=J[g+ +8>>2]+8|0;continue}break}a=b-l>>3;while(1){if((a|0)>1){j=fc-16|0;fc=j;J[j+12>>2]=l;c=a;m:{if(a>>>0<2)break m;f=J[j+12>>2];h=O[f>>3];a=0;i=fc-16|0;fc=i;m=c-2>>>1|0;while(1){k=(a<<3)+f|0;J[i+12>>2]=k+8;d=a<<1;a=d|1;d=d+2|0;if(!(!(O[k+8>>3]>3])|(d|0)>=(c|0))){J[i+12>>2]=J[i+12>>2]+8;a=d}O[f>>3]=O[J[i+12>>2]>>3];f=J[i+12>>2];if((a|0)<=(m|0))continue;break}fc=i+16|0;a=b-8|0;J[j+8>>2]=a;if((a|0)==(f|0)){O[f>>3]=h;break m}O[f>>3]=O[J[j+8>>2]>>3];O[J[j+8>>2]>>3]=h;d=J[j+12>>2];i=d;a=fc-16|0;fc=a; +f=f+8|0;d=f-d>>3;n:{if((d|0)<2)break n;f=f-8|0;J[a+12>>2]=f;d=d-2>>>1|0;k=i+(d<<3)|0;J[a+8>>2]=k;if(!(O[k>>3]>3]))break n;O[a>>3]=O[J[a+12>>2]>>3];o:{while(1){O[J[a+12>>2]>>3]=O[J[a+8>>2]>>3];f=J[a+8>>2];J[a+12>>2]=f;if(!d)break o;d=d-1>>>1|0;f=i+(d<<3)|0;J[a+8>>2]=f;if(O[f>>3]>3])continue;break}f=J[a+12>>2]}O[f>>3]=O[a>>3]}fc=a+16|0}fc=j+16|0;a=c-1|0;b=b-8|0;continue}break}}fc=g+16|0;break b}g=(f<<2&-8)+a|0;J[e+20>>2]=g;j=b-8|0;p:{if(f>>>0>=1E3){b=a;a=f<<1&-8;b=vS(b,b+a|0,g,a+g|0,j);break p}b= +oG(a,g,j)}d=d-1|0;f=J[e+28>>2];J[e+16>>2]=f;J[e+12>>2]=j;if(!(O[f>>3]>2]>>3])){while(1){a=J[e+12>>2]-8|0;J[e+12>>2]=a;g=J[e+16>>2];if((g|0)==(a|0)){J[e+16>>2]=g+8;b=J[e+24>>2];g=b-8|0;J[e+12>>2]=g;a=J[e+16>>2];if(O[f>>3]>3])break c;while(1){g=J[e+12>>2];if((g|0)==(a|0))break b;if(O[f>>3]>3]){a=J[e+16>>2];h=O[a>>3];O[a>>3]=O[g>>3];O[g>>3]=h;a=J[e+16>>2]+8|0;J[e+16>>2]=a;break c}else{a=J[e+16>>2]+8|0;J[e+16>>2]=a;continue}}}if(!(O[a>>3]>2]>>3]))continue;break}a=J[e+16>> +2];h=O[a>>3];i=a;a=J[e+12>>2];O[i>>3]=O[a>>3];O[a>>3]=h;b=b+1|0}a=J[e+16>>2]+8|0;J[e+16>>2]=a;q:{if(M[e+12>>2]<=a>>>0)break q;while(1){if(O[a>>3]>2]>>3]){a=J[e+16>>2]+8|0;J[e+16>>2]=a;continue}while(1){a=J[e+12>>2]-8|0;J[e+12>>2]=a;if(!(O[a>>3]>2]>>3]))continue;break}a=J[e+16>>2];if(a>>>0>M[e+12>>2])break q;h=O[a>>3];i=a;a=J[e+12>>2];O[i>>3]=O[a>>3];O[a>>3]=h;a=J[e+16>>2];if((a|0)==J[e+20>>2])J[e+20>>2]=J[e+12>>2];b=b+1|0;a=a+8|0;J[e+16>>2]=a;continue}}f=J[e+20>>2];if(!((f|0)== +(a|0)|!(O[f>>3]>3]))){a=J[e+16>>2];h=O[a>>3];O[a>>3]=O[f>>3];O[f>>3]=h;b=b+1|0}a=J[e+28>>2];f=J[e+16>>2];if(b){b=J[e+24>>2];break e}g=uS(a,f);b=J[e+24>>2];if(uS(J[e+16>>2]+8|0,b)){if(g)break b;break d}f=J[e+16>>2];if(!g)break e;a=f+8|0;break a}b=b-8|0;J[e+24>>2]=b;wz(a,a+8|0,b);break b}if((f-a|0)<(b-f|0)){pG(a,f,c,d);a=J[e+16>>2]+8|0;break a}pG(f+8|0,b,c,d)}b=J[e+16>>2];J[e+24>>2]=b;continue}if(J[e+12>>2]==(a|0))break b;while(1){if(O[f>>3]>3]){while(1){a=J[e+12>>2]-8|0;J[e+12>>2]=a;if(O[f>> +3]>3])continue;break}a=J[e+16>>2];if(a>>>0>=M[e+12>>2])break a;h=O[a>>3];i=a;a=J[e+12>>2];O[i>>3]=O[a>>3];O[a>>3]=h}a=J[e+16>>2]+8|0;J[e+16>>2]=a;continue}}fc=e+32|0;return}J[e+28>>2]=a;continue}}function xD(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;d=J[a+1632>>2];c=J[a+1624>>2];f=J[a+1628>>2];b=P(c,f)<<2;b=Ac(vc(b),0,b);a:{if(K[a+1668|0])break a;e=J[a+1608>>2];if(!e)break a;uc(e)}H[a+1668|0]=1;J[a+1608>>2]=b;J[a+1632>>2]=d;J[a+1628>>2]=f;J[a+1624>>2]=c;J[a+1616>> +2]=b;J[a+1620>>2]=b;if((d|0)<0)J[a+1620>>2]=b+P(d,1-f|0);d=a+1640|0;J[a+1660>>2]=d;J[a+1656>>2]=f-1;J[a+1652>>2]=c-1;f=a+1644|0;J[f>>2]=0;J[f+4>>2]=0;f=d;d=a+1636|0;J[f>>2]=d;J[d>>2]=a+1616;H[a+1612|0]=1;d=vc(16);J[699344]=0;o=z4(d,b,0);b=J[699344];J[699344]=0;if((b|0)!=1){f=J[a+1604>>2];b=f+J[a+1600>>2]|0;c=J[a+1592>>2];d=J[a+1588>>2];if((b|0)==(((c|0)!=(d|0)?(c-d<<8)-1|0:0)|0)){g=fc-32|0;fc=g;b:{c:{d:{e:{f:{e=a+1584|0;b=J[e+16>>2];if(b>>>0>=1024){J[e+16>>2]=b-1024;b=J[e+4>>2];j=J[b>>2];c=b+4|0; +J[e+4>>2]=c;b=J[e+8>>2];g:{if((b|0)!=J[e+12>>2]){d=b;break g}h=J[e>>2];if(h>>>0>>0){f=((c-h>>2)+1|0)/-2<<2;b=b-c|0;d=cd(f+c|0,c,b)+b|0;J[e+8>>2]=d;J[e+4>>2]=f+J[e+4>>2];break g}d=(b|0)==(h|0)?1:b-h>>1;if(d>>>0>=1073741824)break f;f=d<<2;i=vc(f);l=f+i|0;f=i+(d&-4)|0;d=f;h:{if((b|0)==(c|0))break h;k=b-c|0;m=k-4|0;n=(m>>>2|0)+1&7;i:{if(!n){b=d;break i}d=0;b=f;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((n|0)!=(d|0))continue;break}}d=f+k|0;if(m>>>0<28)break h;while(1){J[b>>2]=J[c>>2];J[b+4>> +2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;if((d|0)!=(b|0))continue;break}}J[e+12>>2]=l;J[e+8>>2]=d;J[e+4>>2]=f;J[e>>2]=i;if(!h)break g;uc(h);d=J[e+8>>2]}J[d>>2]=j;J[e+8>>2]=J[e+8>>2]+4;break b}c=J[e+8>>2];l=J[e+4>>2];h=c-l|0;d=h>>2;b=J[e+12>>2];f=J[e>>2];i=b-f|0;if(d>>>0>2>>>0){if((b|0)!=(c|0)){p=g,q=vc(4096),J[p+12>>2]=q;yM(e,g+12|0);break b}p=g,q=vc(4096),J[p+12>>2]=q;Ku(e,g+ +12|0);b=J[e+4>>2];j=J[b>>2];c=b+4|0;J[e+4>>2]=c;b=J[e+8>>2];j:{if((b|0)!=J[e+12>>2]){d=b;break j}h=J[e>>2];if(h>>>0>>0){f=((c-h>>2)+1|0)/-2<<2;b=b-c|0;d=cd(f+c|0,c,b)+b|0;J[e+8>>2]=d;J[e+4>>2]=f+J[e+4>>2];break j}d=(b|0)==(h|0)?1:b-h>>1;if(d>>>0>=1073741824)break f;f=d<<2;i=vc(f);l=f+i|0;f=i+(d&-4)|0;d=f;k:{if((b|0)==(c|0))break k;k=b-c|0;m=k-4|0;n=(m>>>2|0)+1&7;l:{if(!n){b=d;break l}d=0;b=f;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((n|0)!=(d|0))continue;break}}d=f+k|0;if(m>>>0<28)break k; +while(1){J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;if((d|0)!=(b|0))continue;break}}J[e+12>>2]=l;J[e+8>>2]=d;J[e+4>>2]=f;J[e>>2]=i;if(!h)break j;uc(h);d=J[e+8>>2]}J[d>>2]=j;J[e+8>>2]=J[e+8>>2]+4;break b}J[g+28>>2]=e+12;i=(b|0)==(f|0)?1:i>>1;if(i>>>0>=1073741824)break f;j=i<<2;f=vc(j);J[g+12>>2]=f;J[699344]=0;b=f+(d<<2)|0;J[g+20>>2]=b;J[g+24>>2]=f+j;J[g+16>>2]= +b;j=_(4,4096)|0;k=J[699344];J[699344]=0;if((k|0)==1)break d;m:{if((d|0)!=(i|0))break m;if((h|0)>0){b=((d+1|0)/-2<<2)+b|0;J[g+16>>2]=b;break m}d=(c|0)==(l|0)?1:h>>1;if(d>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)==1)break e;B()}J[699344]=0;c=d<<2;b=_(4,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;J[g+12>>2]=b;J[g+24>>2]=b+c;b=b+(d&-4)|0;J[g+16>>2]=b;uc(f);c=J[e+8>>2]}J[b>>2]=j;J[g+20>>2]=b+4;while(1){if(J[e+4>>2]==(c|0)){d=J[e>>2];J[e>>2]=J[g+12>>2];J[g+12>>2]=d;J[e+ +4>>2]=J[g+16>>2];J[g+16>>2]=c;b=J[e+8>>2];J[e+8>>2]=J[g+20>>2];J[g+20>>2]=b;f=J[e+12>>2];J[e+12>>2]=J[g+24>>2];J[g+24>>2]=f;if((b|0)!=(c|0))J[g+20>>2]=b+((c-b|0)+3&-4);if(!d)break b;uc(d);break b}J[699344]=0;c=c-4|0;da(2335,g+12|0,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}c=Z()|0;a=J[g+20>>2];b=J[g+16>>2];if((a|0)==(b|0))break c;J[g+20>>2]=a+((b-a|0)+3&-4);break c}Pd();B()}c=Z()|0;uc(j);break c}c=Z()|0}a=J[g+12>>2];if(a)uc(a);ba(c|0);B()}fc=g+32|0;d=J[a+1588>>2];f=J[a+1604>>2];b=f+J[a+ +1600>>2]|0}J[J[(b>>>8&16777212)+d>>2]+((b&1023)<<2)>>2]=o;J[a+1604>>2]=f+1;return}a=Z()|0;uc(d);ba(a|0);B()}function Una(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;k=fc-16|0;fc=k;o=J[a>>2];c=J[b>>2];d=J[c+124>>2];i=O[J[d-8>>2]+16>>3];O[c+16>>3]=i;e=J[c+120>>2];l=O[J[e>>2]+8>>3];O[c+8>>3]=l;f=J[a+4>>2];n=O[f>>3]+1;O[c+40>>3]=n;h=J[a+8>>2];r=O[h>>3];O[c+32>>3]=r;i=i-l;O[c+24>>3]=i;O[c+48>>3]=n-r;O[c+80>>3]=O[o>>3]-O[f>>3];O[c+72>>3]=O[h>>3];O[c+112>> +3]=i/+(d-e>>3>>>0);J[c+88>>2]=0;J[c+92>>2]=0;H[c+56|0]=0;d=J[o+72>>2];a:{b:{p=J[c+124>>2];c=J[c+120>>2];c:{if(p-c>>>0>=9){J[699344]=0;c=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[k+4>>2]=c;J[k+8>>2]=6;J[k+12>>2]=-2147483640;d=J[610987];J[c+16>>2]=J[610986];J[c+20>>2]=d;d=J[610985];J[c+8>>2]=J[610984];J[c+12>>2]=d;d=J[610983];J[c>>2]=J[610982];J[c+4>>2]=d;c=c+24|0;break c}e=J[c>>2];c=J[e+56>>2];e=J[e+60>>2];d:{if((c|0)==(e|0)){d=2443956;c=8;break d}i=O[d+16>>3]+1;d=1;while(1){f=J[c>>2]; +e:{if(!f)break e;f=J[f+56>>2];if(!(i>=O[f+400>>3]))break e;d=K[f+409|0]!=0&d}c=c+8|0;if((e|0)!=(c|0))continue;break}c=d&1;d=c?2443956:2443928;c=c?8:6}J[699344]=0;f=(c|3)+1|0;e=_(4,f<<2)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;J[k+4>>2]=e;J[k+8>>2]=c;J[k+12>>2]=f|-2147483648;c=c<<2;c=xc(e,d,c)+c|0}J[c>>2]=0;break a}ea(0)|0;Bc();B()}c=J[b>>2];if(H[c+143|0]<0)uc(J[c+132>>2]);d=J[k+8>>2];J[c+132>>2]=J[k+4>>2];J[c+136>>2]=d;J[c+140>>2]=J[k+12>>2];d=fc-32|0;fc=d;h=J[b>>2];c=J[h+120>>2];f:{g:{h:{if((J[h+ +124>>2]-c|0)!=8)while(1){c=(j<<3)+c|0;f=J[c>>2];J[d+24>>2]=f;c=J[c+4>>2];J[d+28>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;e=J[f+60>>2];g=e-8|0;c=J[g>>2];J[d+16>>2]=c;g=J[g+4>>2];J[d+20>>2]=g;if(g){J[g+4>>2]=J[g+4>>2]+1;e=J[f+60>>2]}if(!c){e=(e-J[f+56>>2]>>3)-1|0;while(1){e=e-1|0;f=J[J[d+24>>2]+56>>2]+(e<<3)|0;c=J[f>>2];g=J[f+4>>2];if(g)J[g+4>>2]=J[g+4>>2]+1;J[d+16>>2]=c;f=J[d+20>>2];J[d+20>>2]=g;if(f){c=J[f+4>>2];J[f+4>>2]=c-1;if(!c){kc[J[J[f>>2]+8>>2]](f);Gc(f)}c=J[d+16>>2]}if(!c)continue;break}}J[699344]= +0;e=aa(6679,d|0,c+240|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break h;J[699344]=0;f=J[e+8>>2]-J[e+4>>2]>>2;g=J[699344];J[699344]=0;i:{j:{if((g|0)==1)break j;J[699344]=0;g=J[e+4>>2];m=J[699344];J[699344]=0;if((m|0)==1)break j;if(J[(f-1<<2)+g>>2]==32|(J[h+124>>2]-J[h+120>>2]|0)==8)break i;J[699344]=0;Ba(6680,c|0,32,0);c=J[699344];J[699344]=0;if((c|0)!=1)break i}c=Z()|0;qi(e);break g}qi(e);c=J[d+20>>2];k:{if(!c)break k;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break k;kc[J[J[c>>2]+8>>2]](c);Gc(c)}c=J[d+28>>2]; +l:{if(!c)break l;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break l;kc[J[J[c>>2]+8>>2]](c);Gc(c)}j=j+1|0;c=J[h+120>>2];if(j>>>0<(J[h+124>>2]-c>>3)-1>>>0)continue;break}fc=d+32|0;break f}c=Z()|0}je(d+16|0);je(d+24|0);ba(c|0);B()}e=2;c=J[b>>2];d=J[c+120>>2];m=J[c+124>>2]-d|0;s=m>>3;m:{if(s>>>0<2)break m;h=J[d+8>>2];i=O[h+32>>3];g=J[d>>2];l=O[g+32>>3];n=R(i-l);f=n<1|!(i>l);j=R(i+O[h+48>>3]*.5-(l+O[g+48>>3]*.5))<1.5;h=R(O[h+40>>3]-O[g+40>>3])<1;if((m|0)!=16){t=d-8|0;while(1){p=j;j=e<<3;m=J[j+d>>2];i=O[m+32>>3];q= +J[j+t>>2];l=O[q+32>>3];j=p&R(i+O[m+48>>3]*.5-(l+O[q+48>>3]*.5))<1.5;h=R(O[m+40>>3]-O[q+40>>3])<1&h;f=R(i-l)<1&f;e=e+1|0;if((s|0)!=(e|0))continue;break}}if(!(!(n<1)|(!f|!h))){J[c+64>>2]=4;break m}n:{o:{if(f){J[c+64>>2]=1;j=0;break o}if(h){J[c+64>>2]=3;break m}if(j)break n;j=J[c+64>>2]!=1}if(j|n<1)break m;H[c+56|0]=1;O[c+88>>3]=O[g+32>>3]-O[c+32>>3];break m}J[c+64>>2]=2}e=J[a+12>>2];d=J[e+4>>2];p:{if(d>>>0>2]){J[d>>2]=c;J[d+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;J[e+4>>2]=d+8;break p}Sv(e,b)}c= +vc(160);J[c+16>>2]=0;J[c+20>>2]=0;J[c>>2]=2442544;J[c+4>>2]=0;J[c+8>>2]=0;J[c+16>>2]=2450296;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;d=c- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[c+76>>2]=16777215;J[c+80>>2]=0;I[c+72>>1]=0;Ac(c+88|0,0,72);J[b>>2]=c+16;d=J[b+4>>2];J[b+4>>2]=c;q:{if(!d)break q;b=J[d+4>>2];J[d+4>>2]=b-1;if(b)break q;kc[J[J[d>>2]+8>>2]](d);Gc(d)}O[J[a+8>>2]>>3]=O[o>>3];a=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;fc= +k+16|0}function $Db(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;J[a+76>>2]=0;J[a+80>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+56>>2]=0;e=J[b+8>>2];a:{b:{c:{if(e&7)break c;d:{e:{f:{d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break g}e=td(b,1);if((e|0)==-1)break c}H[a+12|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>> +2]=d-1;h:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break h}e=td(b,1);if((e|0)==-1)break c}H[a+13|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;i:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break i}e=td(b,1);if((e|0)==-1)break c}H[a+52|0]=e;e=J[b+8>>2];if(e&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break f;d=J[b+28>>2];J[b+28>>2]=d-1;j:{if((d|0)<=0){if((td(b,1)| +0)!=-1)break j;break c}J[b+60>>2]=J[b+60>>2]+1;J[b+24>>2]=J[b+24>>2]+1}if(cf(b,a+16|0))break c;if(cf(b,a+20|0))break c;if(cf(b,a+24|0))break c;if(cf(b,a+28|0))break c;if(cf(b,a+32|0))break c;if(cf(b,a+36|0))break c;if(cf(b,a+40|0))break c;if(cf(b,a+44|0))break c;if(cf(b,a+48|0))break c;if(ak(b,a+60|0))break c;if(ak(b,a+72|0))break c;g=K[a+12|0];k:{if(!g){f=1;break k}d=K[a+52|0];e=g&7;l:{if(g>>>0<8){f=1;break l}g=g&248;f=1;while(1){f=P(d,P(d,P(d,P(d,P(d,P(d,P(d,P(d,f))))))));h=h+8|0;if((g|0)!=(h|0))continue; +break}}if(!e)break k;h=0;while(1){f=P(d,f);h=h+1|0;if((e|0)!=(h|0))continue;break}}k=P(K[a+13|0],f);d=Dc(k);J[a+56>>2]=d;if(!d)break b;d=Dc(P(J[a+60>>2],K[a+12|0]));J[a+68>>2]=d;if(!d)break c;d=Dc(K[a+12|0]<<2);J[a+64>>2]=d;if(!d)break c;g=K[a+12|0];m:{if(!g)break m;d=J[a+60>>2];h=0;e=0;if(g>>>0>=4){f=g&252;while(1){J[J[a+64>>2]+(e<<2)>>2]=J[a+68>>2]+P(d,e);i=e|1;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+P(d,i);i=e|2;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+P(d,i);i=e|3;J[J[a+64>>2]+(i<<2)>>2]=J[a+68>>2]+P(d, +i);e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}g=g&3;if(!g)break m;while(1){J[J[a+64>>2]+(e<<2)>>2]=J[a+68>>2]+P(d,e);e=e+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}d=Dc(P(J[a+72>>2],K[a+13|0]));J[a+80>>2]=d;if(!d)break c;d=Dc(K[a+13|0]<<2);J[a+76>>2]=d;if(!d)break c;g=K[a+13|0];n:{if(!g)break n;d=J[a+72>>2];h=0;e=0;if(g>>>0>=4){f=g&252;j=0;while(1){J[J[a+76>>2]+(e<<2)>>2]=J[a+80>>2]+P(d,e);i=e|1;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+P(d,i);i=e|2;J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+P(d,i);i=e|3; +J[J[a+76>>2]+(i<<2)>>2]=J[a+80>>2]+P(d,i);e=e+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=g&3;if(!f)break n;while(1){J[J[a+76>>2]+(e<<2)>>2]=J[a+80>>2]+P(d,e);e=e+1|0;h=h+1|0;if((f|0)!=(h|0))continue;break}}j=K[a+12|0];if(!j)break d;f=0;h=J[a+60>>2];if((h|0)<=0)break d;while(1){e=0;if((h|0)>0){while(1){if(uP(b,J[J[a+64>>2]+(f<<2)>>2]+e|0))break c;e=e+1|0;h=J[a+60>>2];if((e|0)<(h|0))continue;break}j=K[a+12|0]}f=f+1|0;if(f>>>0<(j&255)>>>0)continue;break}break e}J[b+8>>2]=e|4;break c}g=K[a+13|0]}f= +0;d=0;o:{if(!g)break o;h=0;j=J[a+72>>2];if((j|0)<=0){d=g;break o}d=g;while(1){e=0;if((j|0)>0){while(1){if(uP(b,J[J[a+76>>2]+(h<<2)>>2]+e|0))break c;e=e+1|0;j=J[a+72>>2];if((e|0)<(j|0))continue;break}d=K[a+13|0]}h=h+1|0;if(h>>>0<(d&255)>>>0)continue;break}}if((k|0)>0){while(1){if(uP(b,J[a+56>>2]+f|0))break c;f=f+1|0;if((k|0)!=(f|0))continue;break}d=K[a+13|0]}h=d&255;d=K[a+12|0];j=P(d,J[a+60>>2]);k=J[a+72>>2];p:{if(!d){e=1;break p}b=K[a+52|0];g=d&7;q:{if(d>>>0<8){e=1;break q}d=d&248;f=0;e=1;while(1){e= +P(b,P(b,P(b,P(b,P(b,P(b,P(b,P(b,e))))))));f=f+8|0;if((d|0)!=(f|0))continue;break}}if(!g)break p;f=0;while(1){e=P(b,e);f=f+1|0;if((g|0)!=(f|0))continue;break}}b=0;if(((P(h,e+k|0)+j|0)+44|0)==(c|0))break a}b=J[a+56>>2];if(!b)break b;uc(b)}b=J[a+64>>2];if(b)uc(b);b=J[a+68>>2];if(b)uc(b);b=J[a+76>>2];if(b)uc(b);b=-1;a=J[a+80>>2];if(!a)break a;uc(a)}return b|0}function MHa(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;e=fc-80|0;fc=e;f=J[a>>2];if(f)kc[J[J[f>> +2]+8>>2]](f);a:{f=J[a+4>>2];g=J[a+8>>2];b:{if((f|0)!=(g|0)){c:{while(1){i=K[f+11|0];h=i<<24>>24<0;k=K[b+11|0];j=k<<24>>24<0;i=h?J[f+4>>2]:i;if((i|0)==((j?J[b+4>>2]:k)|0)){if(!i)break c;if(!qd(h?J[f>>2]:f,j?J[b>>2]:b,i))break c}f=f+12|0;if((g|0)!=(f|0))continue;break}f=g}if(J[a+8>>2]!=(f|0))break b}d:{if(J[a+12>>2]!=(f|0)){e:{if(H[b+11|0]>=0){g=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=g;J[f+8>>2]=J[b+8>>2];break e}g=J[b+4>>2];h=J[b>>2];J[699344]=0;ca(15,f|0,h|0,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break a}J[a+ +8>>2]=f+12;break d}eM(a+4|0,b)}i=e- -64|0;j=0;h=fc-16|0;fc=h;f:{g:{f=K[b+11|0];f=f<<24>>24<0?J[b+4>>2]:f;g=f-1|0;if((g|0)>=0)while(1){h:{if(J[(g<<2)+(H[b+11|0]<0?J[b>>2]:b)>>2]==45){f=g;break h}f=f-2|0;g=sn(h,b,f,2,h+15|0);J[699344]=0;k=aa(5055,a|0,g|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break g;H[i+j|0]=k;if(H[h+11|0]<0)uc(J[g>>2]);j=j+1|0}g=f-1|0;if((g|0)>=0)continue;break}fc=h+16|0;break f}a=Z()|0;if(H[h+11|0]<0)uc(J[g>>2]);ba(a|0);B()}if(!(kc[J[J[d>>2]+8>>2]](d)|0)){i:{if(!z3(c))break i;J[e+ +16>>2]=0;qI(d,c,e+16|0);b=J[e+16>>2];if(!b)break i;j:{if(!K[b+8|0])break j;d=J[b>>2];if(!d)break j;uc(d)}uc(b)}b=e+48|0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=415588;J[699344]=0;ga(3,b|0,c|0,1)|0;c=J[699344];J[699344]=0;if((c|0)!=1)k:{J[699344]=0;d=e+16|0;ha(28,b|0,d|0,32,e+12|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;c=K[e+64|0];H[e+16|0]=c^K[e+16|0];f=K[e+65|0];H[e+17|0]=f^K[e+17|0];g=K[e+66|0];H[e+18|0]=g^K[e+18|0];h=K[e+67|0];H[e+19|0]=h^K[e+19|0];j=K[e+68|0];H[e+20|0]=j^K[e+20|0]; +i=K[e+69|0];H[e+21|0]=i^K[e+21|0];k=K[e+70|0];H[e+22|0]=k^K[e+22|0];l=K[e+71|0];H[e+23|0]=l^K[e+23|0];m=K[e+72|0];H[e+24|0]=m^K[e+24|0];n=K[e+73|0];H[e+25|0]=n^K[e+25|0];o=K[e+74|0];H[e+26|0]=o^K[e+26|0];p=K[e+75|0];H[e+27|0]=p^K[e+27|0];q=K[e+76|0];H[e+28|0]=q^K[e+28|0];r=K[e+77|0];H[e+29|0]=r^K[e+29|0];s=K[e+78|0];H[e+30|0]=s^K[e+30|0];t=K[e+79|0];H[e+31|0]=t^K[e+31|0];H[e+32|0]=c^K[e+32|0];H[e+33|0]=f^K[e+33|0];H[e+34|0]=g^K[e+34|0];H[e+35|0]=h^K[e+35|0];H[e+36|0]=j^K[e+36|0];H[e+37|0]=i^K[e+37| +0];H[e+38|0]=k^K[e+38|0];H[e+39|0]=K[e+39|0]^l;H[e+40|0]=K[e+40|0]^m;H[e+41|0]=K[e+41|0]^n;H[e+42|0]=K[e+42|0]^o;H[e+43|0]=K[e+43|0]^p;H[e+44|0]=K[e+44|0]^q;H[e+45|0]=K[e+45|0]^r;H[e+46|0]=K[e+46|0]^s;H[e+47|0]=K[e+47|0]^t;J[699344]=0;c=J[b+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break k;if(c){hh(c,0,0);ae(d,1,32,c)}J[699344]=0;$(21,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break k;De(b);break b}a=Z()|0;De(b);ba(a|0);B()}if((kc[J[J[d>>2]+8>>2]](d)|0)!=1)break b;J[e+16>>2]=0;qI(d,c,e+16|0);b=J[e+ +16>>2];if(M[b+4>>2]>=32){b=J[b>>2];H[b|0]=K[b|0]^K[e+64|0];H[b+1|0]=K[b+1|0]^K[e+65|0];H[b+2|0]=K[b+2|0]^K[e+66|0];H[b+3|0]=K[b+3|0]^K[e+67|0];H[b+4|0]=K[b+4|0]^K[e+68|0];H[b+5|0]=K[b+5|0]^K[e+69|0];H[b+6|0]=K[b+6|0]^K[e+70|0];H[b+7|0]=K[b+7|0]^K[e+71|0];H[b+8|0]=K[b+8|0]^K[e+72|0];H[b+9|0]=K[b+9|0]^K[e+73|0];H[b+10|0]=K[b+10|0]^K[e+74|0];H[b+11|0]=K[b+11|0]^K[e+75|0];H[b+12|0]=K[b+12|0]^K[e+76|0];H[b+13|0]=K[b+13|0]^K[e+77|0];H[b+14|0]=K[b+14|0]^K[e+78|0];H[b+15|0]=K[b+15|0]^K[e+79|0];H[b+16|0]= +K[b+16|0]^K[e+64|0];H[b+17|0]=K[b+17|0]^K[e+65|0];H[b+18|0]=K[b+18|0]^K[e+66|0];H[b+19|0]=K[b+19|0]^K[e+67|0];H[b+20|0]=K[b+20|0]^K[e+68|0];H[b+21|0]=K[b+21|0]^K[e+69|0];H[b+22|0]=K[b+22|0]^K[e+70|0];H[b+23|0]=K[b+23|0]^K[e+71|0];H[b+24|0]=K[b+24|0]^K[e+72|0];H[b+25|0]=K[b+25|0]^K[e+73|0];H[b+26|0]=K[b+26|0]^K[e+74|0];H[b+27|0]=K[b+27|0]^K[e+75|0];H[b+28|0]=K[b+28|0]^K[e+76|0];H[b+29|0]=K[b+29|0]^K[e+77|0];H[b+30|0]=K[b+30|0]^K[e+78|0];H[b+31|0]=K[b+31|0]^K[e+79|0]}b=J[693078];if(b){d=c;c=J[e+16>> +2];kc[J[J[b>>2]+16>>2]](b,d,J[c>>2],J[c+4>>2],0)|0}b=J[e+16>>2];if(!b)break b;l:{if(!K[b+8|0])break l;c=J[b>>2];if(!c)break l;uc(c)}uc(b)}a=J[a>>2];if(a)kc[J[J[a>>2]+12>>2]](a);fc=e+80|0;return}b=Z()|0;J[a+8>>2]=f;ba(b|0);B()}function LW(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=fc-32|0;fc=e;J[a>>2]=2413292;J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;J[699344]=0;da(5408,b|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;c=J[a+136>>2];if(c)while(1){b=0;f=J[c+8>>2];d= +J[f+60>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[f+60>>2]}J[699344]=0;da(5397,b|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;da(5398,b|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!d){J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}c=J[c>>2];if(c)continue;break}J[699344]=0;f=a+128|0;$(5249,f|0);b=J[699344];J[699344]=0;if((b| +0)==1)break a;J[699344]=0;c=pa(5383)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;b=e+8|0;da(5409,b|0,a|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;ca(5410,e+16|0,c|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;wc(b);c=J[e+24>>2];if(c)while(1){b=0;d=J[c+8>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[c+8>>2]}J[699344]=0;d=aa(5149,e+8|0,2389819)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;g=J[J[b>>2]+8>>2];J[699344]=0; +g=aa(g|0,b|0,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;wc(d);if(g){J[699344]=0;da(5397,b|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;da(5398,b|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break a}J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(!d){J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}c=J[c>>2];if(c)continue;break}J[699344]=0;ka(5411);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+44>>2];if(b){J[699344]= +0;da(5269,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break a}id(e+16|0);b=J[a+168>>2];J[a+168>>2]=0;b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}id(a+148|0);id(f);b=J[a+124>>2];J[a+124>>2]=0;c:{if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}wc(a+ +116|0);b=J[a+112>>2];J[a+112>>2]=0;d:{if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+108>>2];J[a+108>>2]=0;e:{if(!b)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+104>>2];J[a+104>>2]=0;f:{if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+ +4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}id(a+68|0);b=J[a+52>>2];J[a+52>>2]=0;g:{if(!b)break g;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+48>>2];J[a+48>>2]=0;h:{if(!b)break h;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break h;J[699344]= +0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+44>>2];J[a+44>>2]=0;i:{if(!b)break i;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+8>>2]=2392932;J[a+32>>2]=2392964;b=J[a+36>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+36>>2]=0}J[a+24>>2]=2392964;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}wc(a+ +16|0);a=vr(a);fc=e+32|0;return a|0}ea(0)|0;Bc();B()}function M8(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,w=0,x=0,y=0;c=P(b,1348)+a|0;i=J[c- -64>>2];p=J[c+56>>2];r=i+P(p,44)|0;s=1;a:{if((b|0)==1){if((p|0)<=0)break a;l=J[a+2748>>2];s=!K[J[(J[J[l>>2]+8>>2]<<2)+247056>>2]+12|0];h=a+2744|0;c=i;while(1){k=K[c+12|0];b:{if(k&4)break b;c:{d:{e:{f=J[c+20>>2];d=J[c+24>>2];f:{if(!f|!d)break f;e=0;if(!J[d+20>>2])break e;g=K[d+12|0];if(g&8){J[d+20>>2]=0;H[d+12|0]= +g&247;f=J[c+20>>2];break f}if(!(k&8))break e;f=0;J[c+20>>2]=0;H[c+12|0]=k&247}e=!f;if(!d|f)break e;e=J[d+20>>2];if(!e)break b;f=J[e+8>>2];J[d+8>>2]=f;m=K[d+12|0]|4;H[d+12|0]=m;e=d;d=c;break d}if(e)break b;f=J[f+8>>2];J[c+8>>2]=f;m=K[c+12|0]|4;H[c+12|0]=m;if(!d)break c;e=c;if(J[d+20>>2])break c}e=J[e+4>>2];g=K[d+12|0];e=jy(J[h>>2],l,1,J[d+4>>2]-e|0,f-e|0,m&255,g);H[d+12|0]=g|4;J[d+8>>2]=e+f}j=j?j:c}c=c+44|0;if(r>>>0>c>>>0)continue;break}}if((p|0)<=0)a=0;else{t=(p|0)>0;v=a+2748|0;w=a+2744|0;c=i;m=0; +while(1){o=K[c+12|0];g:{if(o&4)break g;d=J[c+24>>2];if(!d){m=m+1|0;break g}if(J[d+20>>2]){a=J[d+4>>2];e=J[d+8>>2];a=jy(J[w>>2],J[v>>2],b,J[c+4>>2]-a|0,e-a|0,K[d+12|0],o);H[c+12|0]=o|4;J[c+8>>2]=a+e;break g}q=J[c+4>>2];if(!j){g=J[w>>2];j=J[v>>2];n=J[d+4>>2]-q|0;u=jy(g,j,b,n,0,o,K[d+12|0]);h:{if((u|0)<=95){h=q+(n>>1)|0;a=h+32&-64;e=(u|0)<65;k=a+(e?-32:-38)|0;f=h-k|0;l=f>>31;e=a|(e?32:26);a=h-e|0;h=a>>31;a=((u|0)/-2|0)+((f^l)-l>>>0<(a^h)-h>>>0?k:e)|0;J[c+8>>2]=a;J[d+8>>2]=a+u;a=J[c+8>>2];break h}a=q+ +32&-64;J[c+8>>2]=a}e=o|4;H[c+12|0]=e;x=d,y=jy(g,j,b,n,a-q|0,e,K[d+12|0])+a|0,J[x+8>>2]=y;j=c;break g}f=J[j+4>>2];e=J[j+8>>2];h=J[d+4>>2]-q|0;a=K[d+12|0];n=jy(J[w>>2],J[v>>2],b,h,0,o,a);i:{if(a&4){e=J[d+8>>2]-n|0;a=c;break i}a=e+(q-f|0)|0;k=a+(h>>1)|0;j:{if((n|0)<=95){a=k+32&-64;e=(n|0)<65;g=a+(e?-32:-38)|0;f=k-g|0;l=f>>31;e=a|(e?32:26);a=k-e|0;h=a>>31;e=(f^l)-l>>>0<(a^h)-h>>>0?g:e;a=(n|0)/2|0;J[c+8>>2]=e-a;e=a+e|0;break j}e=a+32|0;g=e&-64;a=n>>>1|0;f=(g-k|0)+a|0;l=f>>31;e=(e+h&-64)-n|0;a=e+(a-k|0)| +0;h=a>>31;a=(f^l)-l>>>0<(a^h)-h>>>0?g:e;J[c+8>>2]=a;e=a+n|0}a=d}J[a+8>>2]=e;H[c+12|0]=o|4;H[d+12|0]=K[d+12|0]|4;if(c>>>0<=i>>>0)break g;e=J[c-36>>2];a=J[c+8>>2];k:{if(!s){if((a|0)>(e|0))break k;break g}if((a|0)>=(e|0))break g}a=J[d+8>>2]-e|0;d=a>>31;if((a^d)-d>>>0<17)break g;J[c+8>>2]=e}c=c+44|0;if(r>>>0>c>>>0)continue;break}a=(m|0)!=0}l:{if(b)break l;d=4;m=2;f=i;m:switch(p-6|0){case 6:f=i+44|0;d=9;m=5;break;case 0:break m;default:break l}e=P(m,44)+i|0;g=P(d,44)+i|0;b=(J[e+4>>2]<<1)-(J[f+4>>2]+J[g+ +4>>2]|0)|0;c=b>>31;if((b^c)-c>>>0>7)break l;c=J[g+8>>2];b=(J[e+8>>2]<<1)-J[f+8>>2]|0;J[g+8>>2]=b;b=c-b|0;c=J[g+24>>2];if(c)J[c+8>>2]=J[c+8>>2]-b;if((p|0)==12){J[i+360>>2]=J[i+360>>2]-b;J[i+492>>2]=J[i+492>>2]-b}b=P(d,44)+i|0;H[b+12|0]=K[b+12|0]|4;if(!c)break l;H[c+12|0]=K[c+12|0]|4}if(!((!j|a)&t))break a;c=i;while(1){e=K[c+12|0];n:{if(e&4)break n;o:{p:{q:{g=J[c+28>>2];if(!g)break q;d=J[g+4>>2];b=J[c+4>>2];a=d-b|0;f=a>>31;if((a^f)-f>>>0>79)break q;d=b+(J[g+8>>2]-d|0)|0;break p}d=c;if(!j){d=J[c+4>> +2]+32&-64;J[c+8>>2]=d;j=c;break o}while(1){a=d;d=a-44|0;t=i>>>0>d>>>0;if(!(t|K[a-32|0]&4))continue;break}f=c;r:{while(1){b=f;f=b+44|0;g=r>>>0<=f>>>0;if(g)break r;if(!(K[b+56|0]&4))continue;break}if(g|t|(c>>>0<=d>>>0|c>>>0>=f>>>0))break r;f=a-44|0;d=J[f+8>>2];a=J[b+48>>2];f=J[f+4>>2];if((a|0)==(f|0))break p;d=Od(J[c+4>>2]-f|0,J[b+52>>2]-d|0,a-f|0)+d|0;J[c+8>>2]=d;e=K[c+12|0];break o}d=J[j+8>>2]+((J[c+4>>2]-J[j+4>>2]|0)+16&-32)|0}J[c+8>>2]=d}H[c+12|0]=e|4;s:{if(c>>>0<=i>>>0)break s;a=J[c-36>>2];t:{if(!s){if((a| +0)<(d|0))break t;break s}if((a|0)<=(d|0))break s}b=J[c+24>>2];if(!b)break s;b=J[b+8>>2]-a|0;e=b>>31;if((b^e)-e>>>0<17)break s;J[c+8>>2]=a;d=a}if(!(K[c+56|0]&4)|c+44>>>0>=r>>>0)break n;e=J[c+52>>2];u:{if(!s){if((d|0)<(e|0))break u;break n}if((d|0)<=(e|0))break n}a=J[c+24>>2];if(!a)break n;a=J[a+8>>2]-J[c-36>>2]|0;b=a>>31;if((a^b)-b>>>0<17)break n;J[c+8>>2]=e}c=c+44|0;if(r>>>0>c>>>0)continue;break}}}function A5(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;l= +fc-16|0;fc=l;d=J[a+1604>>2];a:{if(!d)break a;c=J[a+1588>>2];b=d-1|0;f=J[a+1600>>2];j=b+f|0;j=J[J[c+(j>>>8&16777212)>>2]+((j&1023)<<2)>>2];J[a+1604>>2]=b;e=J[a+1592>>2];if((((c|0)!=(e|0)?(e-c<<8)-1|0:0)-(d+f|0)|0)+1>>>0>=2048){uc(J[e-4>>2]);J[a+1592>>2]=J[a+1592>>2]-4;b=J[a+1604>>2]}b:{if(b){b=(J[a+1600>>2]+b|0)-1|0;b=J[J[J[J[a+1588>>2]+(b>>>8&16777212)>>2]+((b&1023)<<2)>>2]+8>>2];break b}b=J[a>>2]}if(!b){if(!j)break a;kc[J[J[j>>2]+12>>2]](j)|0;break a}J[a+1620>>2]=b;c=a+1616|0;J[c>>2]=b;d=J[a+1632>> +2];if((d|0)<0)J[a+1620>>2]=b+P(d,1-J[a+1628>>2]|0);b=J[a+1576>>2];c:{if(b){d:switch(J[b+12>>2]){case 0:b=a+1636|0;a=J[a+1576>>2];z5(j,b,J[a+8>>2],J[a+12>>2]?1:4);break c;case 1:break d;default:break c}b=a+1636|0;a=J[a+1576>>2];y5(j,b,J[a+8>>2],J[a+12>>2]?1:4);break c}b=J[a+1580>>2];if(b){e:{f:{g:{b=J[b+8>>2];switch(kc[J[J[b>>2]+8>>2]](b)|0){case 2:break e;case 1:break f;case 0:break g;default:break c}}o=a+1636|0;e=J[J[J[a+1580>>2]+8>>2]+4>>2];d=J[j+8>>2];h:{if(!d)break h;a=J[o>>2];if(!J[a+8>>2]|!J[a+ +12>>2])break h;m=J[a+12>>2];if(!m)break h;s=J[a+8>>2];if(!s)break h;t=J[a+16>>2];u=K[j+13|0];while(1){f=0;a=J[o>>2];a=J[a+4>>2]+P(J[a+16>>2],(t|0)<0?m+(k^-1)|0:k)|0;while(1){b=P(P(K[d+3|0],u),(P(K[e+1|0],150)+P(K[e|0],77)|0)+P(K[e+2|0],29)>>>8|0);if(b>>>0>=65281){c=b+255>>>16|0;p=K[d|0];q=K[d+1|0];r=K[d+2|0];b=a+3|0;g=K[a|0];h=K[a+1|0];n=K[a+2|0];i=K[a+3|0];i:{if((i|0)!=255){b=c+i-(P(c,i)+255>>>8)|0;H[a+3|0]=b;g=P(g,i);b=b&255;g=(g+P(c,p)-(P(c,g)+255>>>8)>>>0)/(b>>>0)|0;h=P(h,i);h=(h+P(c,q)-(P(c, +h)+255>>>8)>>>0)/(b>>>0)|0;i=P(i,n);i=(i+P(c,r)-(P(c,i)+255>>>8)>>>0)/(b>>>0)|0;b=a;break i}H[a|0]=g+(P(c,p-g|0)>>>8|0);h=h+(P(c,q-h|0)>>>8|0)|0;i=n+(P(c,r-n|0)>>>8|0)|0;g=(c-(P(c,255)+255>>>8|0)|0)+255|0}H[a+1|0]=h;H[a+2|0]=i;H[b|0]=g}e=e+4|0;a=a+4|0;d=d+4|0;f=f+1|0;if((s|0)!=(f|0))continue;break}k=k+1|0;if((m|0)!=(k|0))continue;break}}break c}z5(j,a+1636|0,J[J[J[a+1580>>2]+8>>2]+4>>2],4);break c}y5(j,a+1636|0,J[J[J[a+1580>>2]+8>>2]+4>>2]+3|0,4);break c}d=J[a+2944>>2];if((d|0)!=3){J[l+12>>2]=d;J[l+ +8>>2]=c;a=J[j+8>>2];j:{if(!a)break j;b=J[l+8>>2];if(!J[b+8>>2]|!J[b+12>>2])break j;e=J[b+12>>2];if(!e)break j;i=J[b+8>>2];if(!i)break j;g=(d<<2)+2652640|0;h=K[j+13|0];c=0;if(J[b+16>>2]<0)while(1){b=J[l+8>>2];b=J[b+4>>2]+P(J[b+16>>2],e+(c^-1)|0)|0;d=0;while(1){f=P(h,K[a+3|0])+255|0;if(f&65280){f=f>>>8|0;kc[J[g>>2]](b,P(f,K[a+2|0])+255>>>8|0,P(f,K[a+1|0])+255>>>8|0,P(f,K[a|0])+255>>>8|0,f,255)}b=b+4|0;a=a+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+1|0;if((e|0)!=(c|0))continue;break j}while(1){b= +J[l+8>>2];b=J[b+4>>2]+P(J[b+16>>2],c)|0;d=0;while(1){f=P(h,K[a+3|0])+255|0;if(f&65280){f=f>>>8|0;kc[J[g>>2]](b,P(f,K[a+2|0])+255>>>8|0,P(f,K[a+1|0])+255>>>8|0,P(f,K[a|0])+255>>>8|0,f,255)}b=b+4|0;a=a+4|0;d=d+1|0;if((i|0)!=(d|0))continue;break}c=c+1|0;if((e|0)!=(c|0))continue;break}}break c}o=a+1636|0;d=J[j+8>>2];k:{if(!d)break k;a=J[o>>2];if(!J[a+8>>2]|!J[a+12>>2])break k;m=J[a+12>>2];if(!m)break k;r=J[a+8>>2];if(!r)break k;s=J[a+16>>2];t=K[j+13|0];while(1){f=0;a=J[o>>2];a=J[a+4>>2]+P(J[a+16>>2], +(s|0)<0?m+(i^-1)|0:i)|0;while(1){b=P(t,K[d+3|0])+255|0;l:{if(!(b&65280))break l;k=K[d+2|0];c=b>>>8|0;if((c|0)!=255){b=a+3|0;g=K[a|0];h=K[a+1|0];n=K[a+2|0];p=K[d|0];q=K[d+1|0];e=K[a+3|0];m:{if((e|0)!=255){b=c+e-(P(c,e)+255>>>8)|0;H[a+3|0]=b;g=P(e,g);b=b&255;g=(g+P(c,p)-(P(c,g)+255>>>8)>>>0)/(b>>>0)|0;h=P(e,h);h=(h+P(c,q)-(P(c,h)+255>>>8)>>>0)/(b>>>0)|0;e=P(e,n);e=(e+P(c,k)-(P(c,e)+255>>>8)>>>0)/(b>>>0)|0;b=a;break m}H[a|0]=g+(P(c,p-g|0)>>>8|0);h=h+(P(c,q-h|0)>>>8|0)|0;e=n+(P(c,k-n|0)>>>8|0)|0;g=(c- +(P(c,255)+255>>>8|0)|0)+255|0}H[a+1|0]=h;H[a+2|0]=e;H[b|0]=g;break l}H[a+2|0]=k;H[a+1|0]=K[d+1|0];b=K[d|0];H[a+3|0]=255;H[a|0]=b}a=a+4|0;d=d+4|0;f=f+1|0;if((r|0)!=(f|0))continue;break}i=i+1|0;if((m|0)!=(i|0))continue;break}}}if(!j)break a;kc[J[J[j>>2]+12>>2]](j)|0}fc=l+16|0}function f2a(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;i=J[a+4>>2];h=J[i+52>>2];n=h>>>16|0;d=J[a+24>>2];l=J[a+20>>2];e=J[a+16>>2];o=J[a+12>>2];c=J[a+8>>2];j=!(h&16777216);a:{b:while(1){c:{if(!j){j= +o-c>>1;k=l-e|0;m=(j|0)<(k|0)?j:k;d:{if((m|0)<=0){j=c;break d}while(1){k=e+1|0;j=c+2|0;e:{f:{g=L[c>>1];if(!((g|0)==38|(g-32&65535)>>>0>94)){H[e|0]=g;if(d)break f;d=0;break e}H[e|0]=38;if((g|0)==38){if(l>>>0>k>>>0){H[e+1|0]=45;if(d){J[d+4>>2]=f;J[d>>2]=f;f=f+1|0;d=d+8|0}else d=0;c=j;k=o-c>>1;e=e+2|0;g=l-e|0;m=(g|0)>(k|0)?k:g;if((m|0)>0)continue;break d}if(d){J[d>>2]=f;f=f+1|0;d=d+4|0}else d=0;H[i+63|0]=1;H[i+76|0]=45;J[b>>2]=15;e=k;break d}n=0;if(d){J[d>>2]=f;d=d+4|0}else d=0;e=k;k=f;j=1;continue b}J[d>> +2]=f;f=f+1|0;d=d+4|0}g=(m|0)>1;c=j;e=k;m=m-1|0;if(g)continue;break}}p=16777216;m=0;if(j>>>0>=o>>>0)break a;if(e>>>0>=l>>>0)break c;break a}if(c>>>0>=o>>>0){m=1;f=k;j=c;break a}m=1;j=c;f=k;g:{while(1){if(e>>>0>=l>>>0)break c;g=L[j>>1];if((g-32&65535)>>>0<=94){h:{i:{j:{k:{l:{if(!(n&255)){c=e;break l}c=h&255;if(c>>>0<=62)c=K[c+743904|0];else c=44;H[e|0]=c;c=e+1|0;if(!d)break k;J[d>>2]=f-1;d=d+4|0}g=d;if(c>>>0>>0)break h;break j}if(c>>>0>>0)break i;d=0}e=c;H[i+63|0]=1;H[i+76|0]=45;p=16777216;m= +0;break c}H[e+1|0]=45;e=e+2|0;d=0;break g}H[c|0]=45;e=c+1|0;d=0;if(!g)break g;J[g>>2]=f-1;d=g+4|0;break g}m:{n:switch(n<<24>>24){case 0:c=g>>>10|0;if((c|0)!=63)c=K[c+743904|0];else c=44;H[e|0]=c;c=e+1|0;o:{if(c>>>0>>0){c=g>>>4&63;if((c|0)!=63)c=K[c+743904|0];else c=44;H[e+1|0]=c;e=e+2|0;if(!d){d=0;break o}J[d+4>>2]=f;J[d>>2]=f;d=d+8|0;f=f+1|0;break o}if(d){J[d>>2]=f;f=f+1|0;d=d+4|0}else d=0;e=44;h=g>>>4&63;if((h|0)!=63)e=K[h+743904|0];H[i+63|0]=1;H[i+76|0]=e;J[b>>2]=15;e=c}h=g<<2&60;n=1;break m; +case 1:c=((g&49152)>>>14|h)&255;if(c>>>0<=62)c=K[c+743904|0];else c=44;H[e|0]=c;c=e+1|0;p:{if(c>>>0>>0){c=g>>>8&63;if((c|0)!=63)c=K[c+743904|0];else c=44;H[e+1|0]=c;c=e+2|0;if(c>>>0>>0){c=g>>>2&63;if((c|0)!=63)c=K[c+743904|0];else c=44;H[e+2|0]=c;e=e+3|0;if(!d){d=0;break p}J[d+8>>2]=f;J[d+4>>2]=f;J[d>>2]=f;d=d+12|0;f=f+1|0;break p}if(d){J[d+4>>2]=f;J[d>>2]=f;f=f+1|0;d=d+8|0}else d=0;e=44;h=g>>>2&63;if((h|0)!=63)e=K[h+743904|0];H[i+63|0]=1;H[i+76|0]=e;J[b>>2]=15;e=c;break p}if(d){J[d>>2]=f;f= +f+1|0;d=d+4|0}else d=0;e=44;h=g>>>8&63;if((h|0)!=63)h=K[h+743904|0];else h=44;H[i+76|0]=h;h=g>>>2&63;if((h|0)!=63)e=K[h+743904|0];H[i+63|0]=2;H[i+77|0]=e;J[b>>2]=15;e=c}h=g<<4&48;n=2;break m;case 2:break n;default:break m}c=((g&61440)>>>12|h)&255;if(c>>>0<=62)c=K[c+743904|0];else c=44;H[e|0]=c;c=e+1|0;q:{if(c>>>0>>0){c=g>>>6&63;if((c|0)!=63)c=K[c+743904|0];else c=44;H[e+1|0]=c;c=e+2|0;if(c>>>0>>0){c=g&63;if((c|0)!=63)c=K[c+743904|0];else c=44;H[e+2|0]=c;e=e+3|0;h=0;if(!d){d=0;break q}J[d+8>> +2]=f;J[d+4>>2]=f;J[d>>2]=f;d=d+12|0;f=f+1|0;break q}if(d){J[d+4>>2]=f;J[d>>2]=f;f=f+1|0;d=d+8|0}else d=0;e=44;g=g&63;if((g|0)!=63)e=K[g+743904|0];H[i+63|0]=1;H[i+76|0]=e;J[b>>2]=15;h=0;e=c;break q}if(d){J[d>>2]=f;f=f+1|0;d=d+4|0}else d=0;e=44;h=g>>>6&63;if((h|0)!=63)h=K[h+743904|0];else h=44;H[i+76|0]=h;g=g&63;if((g|0)!=63)e=K[g+743904|0];H[i+63|0]=2;H[i+77|0]=e;J[b>>2]=15;h=0;e=c}n=0}j=j+2|0;if(o>>>0>j>>>0)continue;break}break a}c=j;j=0;continue}break}J[b>>2]=15}r:{s:{t:{if(!(!K[a+2|0]|j>>>0>> +0)){if(!m){c=e;break s}u:{v:{w:{if(!(n&255))break w;if(e>>>0>>0){c=h&255;if(c>>>0<=62)c=K[c+743904|0];else c=44;H[e|0]=c;c=e+1|0;if(!d)break v;J[d>>2]=f-1;d=d+4|0;e=c;break w}c=44;k=h&255;if(k>>>0<=62)c=K[k+743904|0];k=H[i+63|0];H[i+63|0]=k+1;H[(i+k|0)+76|0]=c;J[b>>2]=15}if(e>>>0>>0)break u;c=e;break t}d=0;if(c>>>0>=l>>>0)break t;H[e+1|0]=45;c=e+2|0;break s}H[e|0]=45;c=e+1|0;if(!d){d=0;break s}J[d>>2]=f-1;d=d+4|0;break s}c=e;b=J[i+52>>2]&-268435456|(h&255|p|n<<24>>24<<16);break r}e=H[i+63|0]; +H[i+63|0]=e+1;H[(e+i|0)+76|0]=45;J[b>>2]=15}b=J[i+52>>2]&-268435456|16777216}J[i+52>>2]=b;J[a+24>>2]=d;J[a+16>>2]=c;J[a+8>>2]=j}function KYa(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=+d;e=e|0;f=f|0;g=g|0;h=+h;i=+i;j=+j;k=+k;l=+l;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;n=a;r=J[a+8>>2];m=r+1|0;a=J[a+12>>2];if((m|0)>(a|0)){if(!a){J[n+12>>2]=32;a=32}if((a|0)<(m|0)){while(1){a=a<<1;if((m|0)>(a|0))continue;break}J[n+12>>2]=a}m=0;a:{if(a-1>>>0>67108861)break a;p=J[n>>2];if(!p)break a;a=a<<6;m=fe(p,a);if(m)break a; +m=0;a=Dc(a);if(!a)break a;m=r<<6;if(m)xc(a,p,m);uc(p);m=a}J[n>>2]=m;a=J[n+12>>2];b:{if(a-1>>>0>89478483)break b;m=J[n+4>>2];if(!m)break b;p=J[n+8>>2];a=P(a,48);o=fe(m,a);if(o)break b;o=0;a=Dc(a);if(!a)break b;o=P(p,48);if(o)xc(a,m,o);uc(m);o=a}J[n+4>>2]=o;m=J[n+12>>2];p=m-1|0;o=J[n>>2];c:{if(!o){a=0;if(p>>>0>67108861)break c;a=Dc(m<<6);break c}a=0;if(p>>>0>67108861)break c;p=J[n+8>>2];m=m<<6;a=fe(o,m);if(a)break c;a=0;m=Dc(m);if(!m)break c;a=p<<6;if(a)xc(m,o,a);uc(o);a=m}J[n>>2]=a;m=J[n+12>>2];p= +m-1|0;o=J[n+4>>2];d:{if(!o){a=0;if(p>>>0>89478483)break d;a=Dc(P(m,48));break d}a=0;if(p>>>0>89478483)break d;p=J[n+8>>2];m=P(m,48);a=fe(o,m);if(a)break d;a=0;m=Dc(m);if(!m)break d;a=P(p,48);if(a)xc(m,o,a);uc(o);a=m}J[n+4>>2]=a}a=K[b+11|0];m=a<<24>>24<0?J[b+4>>2]:a;a=m+1|0;a=vc(a>>>0>1073741823?-1:a<<2);J[a+(m<<2)>>2]=0;if((m|0)>0)while(1){s=a+(q<<2)|0,t=J[_h(b,q)>>2],J[s>>2]=t;q=q+1|0;if((m|0)!=(q|0))continue;break}o=J[n>>2];b=J[n+8>>2];m=o+(b<<6)|0;H[m|0]=a;H[m+1|0]=a>>>8;H[m+2|0]=a>>>16;H[m+3| +0]=a>>>24;q=0;a=K[c+11|0];a=a<<24>>24<0?J[c+4>>2]:a;m=a+1|0;m=vc(m>>>0>1073741823?-1:m<<2);J[m+(a<<2)>>2]=0;if((a|0)>0){while(1){s=m+(q<<2)|0,t=J[_h(c,q)>>2],J[s>>2]=t;q=q+1|0;if((a|0)!=(q|0))continue;break}o=J[n>>2];b=J[n+8>>2]}a=(b<<6)+o|0;H[a+16|0]=e;H[a+17|0]=e>>>8;H[a+18|0]=e>>>16;H[a+19|0]=e>>>24;A(+d);c=v(1)|0;e=v(0)|0;H[a+8|0]=e;H[a+9|0]=e>>>8;H[a+10|0]=e>>>16;H[a+11|0]=e>>>24;H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+4|0]=m;H[a+5|0]=m>>>8;H[a+6|0]=m>>>16;H[a+7|0]= +m>>>24;q=0;a=K[g+11|0];a=a<<24>>24<0?J[g+4>>2]:a;c=a+1|0;c=vc(c>>>0>1073741823?-1:c<<2);J[c+(a<<2)>>2]=0;if((a|0)>0){while(1){s=c+(q<<2)|0,t=J[_h(g,q)>>2],J[s>>2]=t;q=q+1|0;if((a|0)!=(q|0))continue;break}o=J[n>>2];b=J[n+8>>2]}A(+l);e=v(1)|0;a=(b<<6)+o|0;g=v(0)|0;H[a+56|0]=g;H[a+57|0]=g>>>8;H[a+58|0]=g>>>16;H[a+59|0]=g>>>24;H[a+60|0]=e;H[a+61|0]=e>>>8;H[a+62|0]=e>>>16;H[a+63|0]=e>>>24;A(+k);e=v(1)|0;g=v(0)|0;H[a+48|0]=g;H[a+49|0]=g>>>8;H[a+50|0]=g>>>16;H[a+51|0]=g>>>24;H[a+52|0]=e;H[a+53|0]=e>>>8; +H[a+54|0]=e>>>16;H[a+55|0]=e>>>24;A(+j);e=v(1)|0;g=v(0)|0;H[a+40|0]=g;H[a+41|0]=g>>>8;H[a+42|0]=g>>>16;H[a+43|0]=g>>>24;H[a+44|0]=e;H[a+45|0]=e>>>8;H[a+46|0]=e>>>16;H[a+47|0]=e>>>24;A(+i);e=v(1)|0;g=v(0)|0;H[a+32|0]=g;H[a+33|0]=g>>>8;H[a+34|0]=g>>>16;H[a+35|0]=g>>>24;H[a+36|0]=e;H[a+37|0]=e>>>8;H[a+38|0]=e>>>16;H[a+39|0]=e>>>24;A(+h);e=v(1)|0;g=v(0)|0;H[a+24|0]=g;H[a+25|0]=g>>>8;H[a+26|0]=g>>>16;H[a+27|0]=g>>>24;H[a+28|0]=e;H[a+29|0]=e>>>8;H[a+30|0]=e>>>16;H[a+31|0]=e>>>24;H[a+20|0]=c;H[a+21|0]=c>>> +8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;a=J[n+4>>2]+P(b,48)|0;A(+O[f>>3]);c=v(1)|0;e=v(0)|0;H[a|0]=e;H[a+1|0]=e>>>8;H[a+2|0]=e>>>16;H[a+3|0]=e>>>24;H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]=c>>>24;A(+O[f+8>>3]);c=v(1)|0;e=v(0)|0;H[a+8|0]=e;H[a+9|0]=e>>>8;H[a+10|0]=e>>>16;H[a+11|0]=e>>>24;H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;A(+O[f+16>>3]);c=v(1)|0;e=v(0)|0;H[a+16|0]=e;H[a+17|0]=e>>>8;H[a+18|0]=e>>>16;H[a+19|0]=e>>>24;H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23| +0]=c>>>24;A(+O[f+24>>3]);c=v(1)|0;e=v(0)|0;H[a+24|0]=e;H[a+25|0]=e>>>8;H[a+26|0]=e>>>16;H[a+27|0]=e>>>24;H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;A(+O[f+32>>3]);c=v(1)|0;e=v(0)|0;H[a+32|0]=e;H[a+33|0]=e>>>8;H[a+34|0]=e>>>16;H[a+35|0]=e>>>24;H[a+36|0]=c;H[a+37|0]=c>>>8;H[a+38|0]=c>>>16;H[a+39|0]=c>>>24;A(+O[f+40>>3]);c=v(1)|0;e=v(0)|0;H[a+40|0]=e;H[a+41|0]=e>>>8;H[a+42|0]=e>>>16;H[a+43|0]=e>>>24;H[a+44|0]=c;H[a+45|0]=c>>>8;H[a+46|0]=c>>>16;H[a+47|0]=c>>>24;J[n+8>>2]=b+1}function tT(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,w=0,x=0,y=0;i=fc-560|0;fc=i;g=c;c=(c-3|0)/24|0;t=(c|0)>0?c:0;k=g+P(t,-24)|0;n=J[(e<<2)+2464240>>2];j=d-1|0;if((n+j|0)>=0){g=d+n|0;c=t-j|0;while(1){O[(i+320|0)+(h<<3)>>3]=(c|0)<0?0:+J[(c<<2)+2464256>>2];c=c+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}q=k-24|0;g=0;h=(n|0)>0?n:0;m=(d|0)<=0;while(1){a:{if(m){f=0;break a}r=g+j|0;c=0;f=0;while(1){f=O[(c<<3)+a>>3]*O[(i+320|0)+(r-c<<3)>>3]+f;c=c+1|0;if((d|0)!=(c|0))continue; +break}}O[(g<<3)+i>>3]=f;c=(g|0)==(h|0);g=g+1|0;if(!c)continue;break}x=47-k|0;r=48-k|0;y=k-25|0;g=n;b:{while(1){f=O[(g<<3)+i>>3];c=0;h=g;o=(g|0)<=0;if(!o)while(1){m=(i+480|0)+(c<<2)|0;l=f*5.960464477539063E-8;c:{if(R(l)<2147483648){j=~~l;break c}j=-2147483648}l=+(j|0);f=l*-16777216+f;d:{if(R(f)<2147483648){j=~~f;break d}j=-2147483648}J[m>>2]=j;h=h-1|0;f=O[(h<<3)+i>>3]+l;c=c+1|0;if((g|0)!=(c|0))continue;break}f=Kp(f,q);f=f+V(f*.125)*-8;e:{if(R(f)<2147483648){m=~~f;break e}m=-2147483648}f=f-+(m|0);f:{g:{h:{u= +(q|0)<=0;i:{if(!u){h=(g<<2)+i|0;j=J[h+476>>2];c=j>>r;s=h;h=j-(c<>2]=h;m=c+m|0;j=h>>x;break i}if(q)break h;j=J[((g<<2)+i|0)+476>>2]>>23}if((j|0)<=0)break f;break g}j=2;if(f>=.5)break g;j=0;break f}c=0;h=0;if(!o)while(1){s=(i+480|0)+(c<<2)|0;o=J[s>>2];v=16777215;j:{k:{if(h)break k;v=16777216;if(o)break k;h=0;break j}J[s>>2]=v-o;h=1}c=c+1|0;if((g|0)!=(c|0))continue;break}l:{if(u)break l;c=8388607;m:switch(y|0){case 1:c=4194303;break;case 0:break m;default:break l}o=(g<<2)+i|0;J[o+476>> +2]=J[o+476>>2]&c}m=m+1|0;if((j|0)!=2)break f;f=1-f;j=2;if(!h)break f;f=f-Kp(1,q)}if(f==0){h=0;c=g;n:{if((g|0)<=(n|0))break n;while(1){c=c-1|0;h=J[(i+480|0)+(c<<2)>>2]|h;if((c|0)>(n|0))continue;break}if(!h)break n;k=q;while(1){k=k-24|0;g=g-1|0;if(!J[(i+480|0)+(g<<2)>>2])continue;break}break b}c=1;while(1){h=c;c=c+1|0;if(!J[(i+480|0)+(n-h<<2)>>2])continue;break}h=g+h|0;while(1){j=d+g|0;g=g+1|0;O[(i+320|0)+(j<<3)>>3]=J[(t+g<<2)+2464256>>2];c=0;f=0;if((d|0)>0)while(1){f=O[(c<<3)+a>>3]*O[(i+320|0)+(j- +c<<3)>>3]+f;c=c+1|0;if((d|0)!=(c|0))continue;break}O[(g<<3)+i>>3]=f;if((g|0)<(h|0))continue;break}g=h;continue}break}f=Kp(f,24-k|0);o:{if(f>=16777216){d=(i+480|0)+(g<<2)|0;l=f*5.960464477539063E-8;p:{if(R(l)<2147483648){c=~~l;break p}c=-2147483648}f=+(c|0)*-16777216+f;q:{if(R(f)<2147483648){a=~~f;break q}a=-2147483648}J[d>>2]=a;g=g+1|0;break o}if(R(f)<2147483648)c=~~f;else c=-2147483648;k=q}J[(i+480|0)+(g<<2)>>2]=c}f=Kp(1,k);r:{if((g|0)<0)break r;d=g;while(1){a=d;O[(d<<3)+i>>3]=f*+J[(i+480|0)+(d<< +2)>>2];d=d-1|0;f=f*5.960464477539063E-8;if(a)continue;break}if((g|0)<0)break r;h=g;while(1){f=0;c=0;a=g-h|0;d=(a|0)>(n|0)?n:a;if((d|0)>=0)while(1){f=O[(c<<3)+2467024>>3]*O[(c+h<<3)+i>>3]+f;k=(c|0)!=(d|0);c=c+1|0;if(k)continue;break}O[(i+160|0)+(a<<3)>>3]=f;a=(h|0)>0;h=h-1|0;if(a)continue;break}}s:{t:{u:switch(e|0){case 3:v:{if((g|0)<=0)break v;f=O[(i+160|0)+(g<<3)>>3];c=g;while(1){l=f;d=i+160|0;a=c-1|0;e=d+(a<<3)|0;w=O[e>>3];f=w+f;O[d+(c<<3)>>3]=l+(w-f);O[e>>3]=f;e=c>>>0>1;c=a;if(e)continue;break}if((g| +0)<2)break v;f=O[d+(g<<3)>>3];c=g;while(1){l=f;d=i+160|0;a=c-1|0;e=d+(a<<3)|0;p=O[e>>3];f=p+f;O[d+(c<<3)>>3]=l+(p-f);O[e>>3]=f;d=c>>>0>2;c=a;if(d)continue;break}p=0;if((g|0)<=1)break v;while(1){p=p+O[(i+160|0)+(g<<3)>>3];a=(g|0)>2;g=g-1|0;if(a)continue;break}}f=O[i+160>>3];if(j)break t;O[b>>3]=f;f=O[i+168>>3];O[b+16>>3]=p;O[b+8>>3]=f;break s;case 0:f=0;if((g|0)>=0)while(1){a=g;g=g-1|0;f=f+O[(i+160|0)+(a<<3)>>3];if(a)continue;break}O[b>>3]=j?-f:f;break s;case 1:case 2:break u;default:break s}f=0;if((g| +0)>=0){d=g;while(1){a=d;d=d-1|0;f=f+O[(i+160|0)+(a<<3)>>3];if(a)continue;break}}O[b>>3]=j?-f:f;f=O[i+160>>3]-f;c=1;if((g|0)>0)while(1){f=f+O[(i+160|0)+(c<<3)>>3];a=(c|0)!=(g|0);c=c+1|0;if(a)continue;break}O[b+8>>3]=j?-f:f;break s}O[b>>3]=-f;f=O[i+168>>3];O[b+16>>3]=-p;O[b+8>>3]=-f}fc=i+560|0;return m&7}function e_(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,r=0;l=fc-4096|0;fc=l;d=J[c+8>>2];h=kd(1,20);J[h+8>>2]=d;J[h+12>>2]=-1414746709;if(d>>>0<=4294963200){d=kd(1,d+4096|0); +J[h+4>>2]=d;m=d?h:0}Gu(m,J[c>>2]);Gu(m+16|0,J[c+16>>2]);d=J[c+8>>2];if(d)xc(J[m+4>>2],J[c+4>>2],d+1|0);e=J[a+128>>2];if(!e){e=Dc(28);J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=45;J[e>>2]=0;J[e+24>>2]=-1414746709;J[e+16>>2]=0;J[e+20>>2]=0;J[a+128>>2]=e}c=l;j=4096;d=b;a:{while(1){h=d;n=c;f=K[d|0];H[c|0]=f;if(!f)break a;f=K[d+1|0];H[c+1|0]=f;if(!f)break a;f=K[d+2|0];H[c+2|0]=f;if(!f)break a;f=K[d+3|0];H[c+3|0]=f;if(!f)break a;c=c+4|0;d=d+4|0;j=j-4|0;if(j>>>0>4)continue;break}f=c;c=K[d|0];H[f|0]=c;if(!c)break a; +c=K[h+5|0];H[n+5|0]=c;if(!c)break a;c=K[h+6|0];H[n+6|0]=c;if(!c)break a;H[n+7|0]=0}d=K[l|0];if(d){c=l;while(1){d=d<<24>>24;if((d|0)>=0)d=d-65>>>0<26?d|32:d;H[c|0]=d;d=K[c+1|0];c=c+1|0;if(d)continue;break}}d=0;h=Yc(l);b:{if((h|0)==-1)break b;c=Dc(h+1|0);if(!c)break b;d=xc(c,l,h);H[h+d|0]=0}q=yJ(e,d,m);if(q){n=a;a=0;c=b;c:{if(!b)break c;g=18042;b=K[b|0];d:{if(!b)break d;if((b|0)!=105){a=b;if(((a-65>>>0<26?a|32:a)|0)!=105)break d}g=18043;a=K[c+1|0];if(!a)break d;if((a|0)!=99)if(((a-65>>>0<26?a|32:a)| +0)!=99)break d;g=18044;a=K[c+2|0];if(!a)break d;if((a|0)!=99)if(((a-65>>>0<26?a|32:a)|0)!=99)break d;a=K[c+3|0];g=18045}e=1039;d=a-65>>>0<26?a|32:a;a=K[g|0];e:{if((d|0)==((a-65>>>0<26?a|32:a)|0))break e;g=17448;f:{if(!b){a=0;break f}if((b|0)!=105){a=b;if(((a-65>>>0<26?a|32:a)|0)!=105)break f}g=17449;a=K[c+1|0];if(!a)break f;if((a|0)!=112)if(((a-65>>>0<26?a|32:a)|0)!=112)break f;g=17450;a=K[c+2|0];if(!a)break f;if((a|0)!=116)if(((a-65>>>0<26?a|32:a)|0)!=116)break f;g=17451;a=K[c+3|0];if(!a)break f; +if((a|0)!=99)if(((a-65>>>0<26?a|32:a)|0)!=99)break f;a=K[c+4|0];g=17452}e=1028;d=a-65>>>0<26?a|32:a;a=K[g|0];if((d|0)==((a-65>>>0<26?a|32:a)|0))break e;a=5798;g:{if(!b){b=0;break g}if((b|0)!=120)if(((b-65>>>0<26?b|32:b)|0)!=120)break g;a=5799;b=K[c+1|0];if(!b)break g;if((b|0)!=109)if(((b-65>>>0<26?b|32:b)|0)!=109)break g;a=5800;b=K[c+2|0];if(!b)break g;if((b|0)!=112)if(((b-65>>>0<26?b|32:b)|0)!=112)break g;b=K[c+3|0];a=5801}e=1060;a=K[a|0];if(((b-65>>>0<26?b|32:b)|0)!=((a-65>>>0<26?a|32:a)|0))break c}a= +aJ(J[n+128>>2],9466);if(!a)break c;k=J[a+4>>2];h=J[a+8>>2];p=k+h|0;g=p-16|0;if(!k|g>>>0<=k>>>0)break c;j=p-4|0;c=k;while(1){a=21027;b=K[c|0];h:{if(!b)break h;if((b|0)!=56)if(((b-65>>>0<26?b|32:b)|0)!=56)break h;a=21028;b=K[c+1|0];if(!b)break h;if((b|0)!=66)if(((b-65>>>0<26?b|32:b)|0)!=98)break h;a=21029;b=K[c+2|0];if(!b)break h;if((b|0)!=73)if(((b-65>>>0<26?b|32:b)|0)!=105)break h;b=K[c+3|0];a=21030}a=K[a|0];if(((b-65>>>0<26?b|32:b)|0)!=((a-65>>>0<26?a|32:a)|0))break c;a=K[c+6|0];o=((a+c|0)+((a^-1)& +1)|0)+7|0;if(o>>>0>j>>>0)break c;a=K[o+1|0];f=a>>>16|0;i=a<<16;b=f;a=K[o|0];f=a>>>8|0;i=a<<24|i;f=b|f;a=K[o+2|0];b=a>>>24|0;d=K[o+3|0];i=d|(a<<8|i);a=d&1;d=i+a|0;b=b|f;b=a>>>0>d>>>0?b+1|0:b;if(!b&d>>>0>h>>>0|b)break c;a=o+4|0;if(a>>>0>p-d>>>0)break c;b=a+d|0;if((K[c+5|0]|K[c+4|0]<<8)!=(e|0)){c=b;if(g>>>0>b>>>0)continue;break c}break}f=p-b|0;i:{if(!m){e=kd(1,20);J[e+12>>2]=-1414746709;g=c-k|0;a=f+g|0;J[e+8>>2]=a;j=kd(1,a+4096|0);J[e+4>>2]=j;xc(j,k,g);break i}i=J[m+8>>2];e=kd(1,20);J[e+12>>2]=-1414746709; +r=i+(i&1)|0;g=a-k|0;a=r+(f+g|0)|0;J[e+8>>2]=a;j=kd(1,a+4096|0);J[e+4>>2]=j;c=xc(j,k,g-4|0)+g|0;h=c-4|0;d=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);H[h|0]=d;H[h+1|0]=d>>>8;H[h+2|0]=d>>>16;H[h+3|0]=d>>>24;xc(c,J[m+4>>2],i)}xc((g+j|0)+r|0,b,f);b=J[n+128>>2];d=Dc(5);if(d){H[d+4|0]=0;H[d|0]=56;H[d+1|0]=98;H[d+2|0]=105;H[d+3|0]=109}c=kd(1,20);J[c+8>>2]=a;J[c+12>>2]=-1414746709;a=kd(1,a+4096|0);J[c+4>>2]=a;c=a?c:0;Gu(c,0);Gu(c+16|0,J[e+16>>2]);a=J[e+8>>2];if(a)xc(J[c+4>>2],J[e+4>>2],a+1|0);yJ(b,d,c);a=J[e+ +4>>2];if(a)uc(a);a=J[e+16>>2];if(a)uc(a);a=J[e>>2];if(a)uc(a);uc(e)}}fc=l+4096|0;return q}function qL(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,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;i=fc+-64|0;J[i+48>>2]=0;J[i+52>>2]=0;J[i+56>>2]=0;J[i+60>>2]=0;J[i+32>>2]=0;J[i+36>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0;a:{b:{c:{d:{e:{if(c){if(c>>>0>=4){n=c&-4;while(1){m=i+32|0;l=k<<1;g=m+(L[l+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;g=m+(L[(l|2)+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;g=m+(L[(l|4)+b>>1]<<1)|0;I[g>> +1]=L[g>>1]+1;g=m+(L[(l|6)+b>>1]<<1)|0;I[g>>1]=L[g>>1]+1;k=k+4|0;h=h+4|0;if((n|0)!=(h|0))continue;break}}g=c&3;if(g)while(1){h=(i+32|0)+(L[(k<<1)+b>>1]<<1)|0;I[h>>1]=L[h>>1]+1;k=k+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}k=J[e>>2];l=15;h=L[i+62>>1];if(h)break d;break e}k=J[e>>2]}l=14;h=0;if(L[i+60>>1])break d;l=13;if(L[i+58>>1])break d;l=12;if(L[i+56>>1])break d;l=11;if(L[i+54>>1])break d;l=10;if(L[i+52>>1])break d;l=9;if(L[i+50>>1])break d;l=8;if(L[i+48>>1])break d;l=7;if(L[i+46>>1])break d;l=6; +if(L[i+44>>1])break d;l=5;if(L[i+42>>1])break d;l=4;if(L[i+40>>1])break d;l=3;if(L[i+38>>1])break d;l=2;if(L[i+36>>1])break d;if(!L[i+34>>1]){a=J[d>>2];J[d>>2]=a+4;I[a>>1]=320;I[a+2>>1]=0;a=J[d>>2];J[d>>2]=a+4;I[a>>1]=320;I[a+2>>1]=0;m=1;break b}r=(k|0)!=0;l=1;k=1;break c}r=k>>>0>>0?k:l;p=1;k=1;while(1){if(L[(i+32|0)+(k<<1)>>1])break c;k=k+1|0;if((l|0)!=(k|0))continue;break}k=l}j=-1;o=L[i+34>>1];if(o>>>0>2)break a;s=L[i+36>>1];g=s+(o<<1)|0;if(g>>>0>4)break a;q=L[i+38>>1];g=q+(g<<1)|0;if(g>>>0> +8)break a;t=L[i+40>>1];g=t+(g<<1)|0;if(g>>>0>16)break a;u=L[i+42>>1];g=u+(g<<1)|0;if(g>>>0>32)break a;w=L[i+44>>1];g=64-(w+(g<<1)|0)|0;if((g|0)<0)break a;z=L[i+46>>1];g=(g<<1)-z|0;if((g|0)<0)break a;A=L[i+48>>1];g=(g<<1)-A|0;if((g|0)<0)break a;x=L[i+50>>1];g=(g<<1)-x|0;if((g|0)<0)break a;y=L[i+52>>1];g=(g<<1)-y|0;if((g|0)<0)break a;B=L[i+54>>1];g=(g<<1)-B|0;if((g|0)<0)break a;v=L[i+56>>1];g=(g<<1)-v|0;if((g|0)<0)break a;m=L[i+58>>1];g=(g<<1)-m|0;if((g|0)<0)break a;n=L[i+60>>1];g=(g<<1)-n|0;if((g| +0)<0)break a;g=g<<1;if(g>>>0>>0|(!a|p?(h|0)!=(g|0):0))break a;C=k>>>0>>0;j=0;I[i+2>>1]=0;I[i+4>>1]=o;h=o+s|0;I[i+6>>1]=h;h=h+q|0;I[i+8>>1]=h;h=h+t|0;I[i+10>>1]=h;h=h+u|0;I[i+12>>1]=h;h=h+w|0;I[i+14>>1]=h;h=h+z|0;I[i+16>>1]=h;h=h+A|0;I[i+18>>1]=h;h=h+x|0;I[i+20>>1]=h;h=h+y|0;I[i+22>>1]=h;h=h+B|0;I[i+24>>1]=h;h=h+v|0;I[i+26>>1]=h;h=h+m|0;I[i+28>>1]=h;I[i+30>>1]=h+n;f:{if(!c)break f;if((c|0)!=1){m=c&-2;h=0;while(1){g=L[(j<<1)+b>>1];if(g){g=(g<<1)+i|0;n=L[g>>1];I[g>>1]=n+1;I[(n<<1)+f>>1]=j}n=j| +1;g=L[(n<<1)+b>>1];if(g){g=(g<<1)+i|0;v=L[g>>1];I[g>>1]=v+1;I[(v<<1)+f>>1]=n}j=j+2|0;h=h+2|0;if((m|0)!=(h|0))continue;break}}if(!(c&1))break f;c=L[(j<<1)+b>>1];if(!c)break f;c=(c<<1)+i|0;h=L[c>>1];I[c>>1]=h+1;I[(h<<1)+f>>1]=j}m=C?r:k;s=20;z=0;c=f;w=c;A=0;g:{h:switch(a|0){case 1:j=1;if(m>>>0>9)break a;s=257;w=766768;c=766704;A=1;break g;case 0:break g;default:break h}z=(a|0)==2;s=0;w=766896;c=766832;if((a|0)!=2)break g;j=1;if(m>>>0>9)break a}q=1<>2];u=0;h=m;o=0;p=0;g=-1;while(1){n= +1<>1];a=0;j:{if(h+1>>>0>>0)break j;if(h>>>0>>0){h=0;a=96;break j}a=h-s<<1;h=L[a+c>>1];a=K[a+w|0]}v=p>>>o|0;x=k-o|0;C=-1<>1]=h;H[y+1|0]=x;H[y|0]=a;if(j)continue;break}h=1<>>1|0;if(a&p)continue;break}h=(i+32|0)+(k<<1)|0;j=L[h>>1]-1|0;I[h>>1]=j;p=a?a+(a-1&p)|0:0;u=u+1|0;if(!(j&65535)){if((k|0)==(l|0))break i;k=L[(L[(u<<1)+f>>1]<<1)+b>>1]}if(k>>>0<=m>>>0)continue;a=p&B;if((a|0)==(g|0))continue;break}o= +o?o:m;h=k-o|0;r=1<>>0>>0){g=l-o|0;j=k;k:{while(1){j=r-L[(i+32|0)+(j<<1)>>1]|0;if((j|0)<=0)break k;r=j<<1;h=h+1|0;j=o+h|0;if(l>>>0>j>>>0)continue;break}h=g}r=1<>>0>852&A|q>>>0>592&z)break a;j=J[d>>2];g=j+(a<<2)|0;H[g+1|0]=m;H[g|0]=h;t=(n<<2)+t|0;I[g+2>>1]=t-j>>>2;g=a;continue}break}if(p){a=(p<<2)+t|0;I[a+2>>1]=0;H[a+1|0]=x;H[a|0]=64}J[d>>2]=J[d>>2]+(q<<2)}J[e>>2]=m;j=0}return j}function jg(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;h=fc-336| +0;fc=h;J[h+16>>2]=0;H[h+15|0]=1;a:{if(J[d>>2]>0)break a;b:{c:{if(!b){if(!c){b=h+48|0;break c}J[d>>2]=5;break a}if(c)break b}J[h+40>>2]=0;J[h+44>>2]=0;J[h+32>>2]=0;J[h+36>>2]=0;J[h+24>>2]=0;J[h+28>>2]=0;J[h+20>>2]=28;c=h+20|0}J[b+220>>2]=0;H[b+60|0]=0;H[b|0]=0;J[c+24>>2]=b+60;J[c+20>>2]=a;J[c+12>>2]=0;d:{if(!a){m=fc-16|0;fc=m;J[699344]=0;j=J[693204];e=J[699344];J[699344]=0;e:{if((e|0)!=1){if(!j){J[m+12>>2]=0;j=731816;n=fc-112|0;fc=n;if(!J[693297]){e=J[693325];if(!e){e=ZS(0,0);f:{g:{h:{i:{if(!e)break i; +if(!Ic(737016,e))break i;if(Ic(737018,e))break h}e=Xi(737024);if(e)break h;e=Xi(737043);if(e)break h;e=Xi(737052);if(!e)break g}if(!Ic(737016,e))break g;if(Ic(737018,e))break f}e=737057}J[693325]=e}Ac(2773200,0,100);f=J[J[698634]>>2]?22406:21292;j:{k:{l:{if(!Ic(e,737057)){if(!f)break k;g=Ic(f,737112)?f:737105;if(K[g|0])break l;break k}g=h3(e,f);if(!g)break k}e=2773200;Ad(2773200,g,100);H[2773299]=0;break j}Ac(2773200,0,100);m:{if(!e)break m;g=eg(e,46);if(!g)break m;f=e;e=(g-e|0)+1|0;e=(e|0)>100?100: +e;f=Ad(n,f,e);H[(e+f|0)-1|0]=0;Ad(2773200,g+1|0,100);H[2773299]=0;e=eg(2773200,64);if(e)H[e|0]=0;e=h3(f,2773200);if(e)break j;e=2773200;if(K[2773200])break j}H[2773208]=K[737077];e=K[737073]|K[737074]<<8|(K[737075]<<16|K[737076]<<24);J[693300]=K[737069]|K[737070]<<8|(K[737071]<<16|K[737072]<<24);J[693301]=e;e=2773200}J[693297]=e}fc=n+112|0;e=J[693297];n:{if(!e)break n;l=cD(e,m+12|0);f=J[m+12>>2]>0;if(!(f|!l)){e=0;o:{if(f)break o;e=J[l+24>>2];f=J[J[e+20>>2]+48>>2];if(f){e=kc[f|0](l)|0;if(e)break o; +e=J[l+24>>2]}e=J[e+12>>2]+4|0}if(!e)break n}if(!l|(!K[e|0]|J[m+12>>2]>0))break n;j=Yc(e)>>>0>60?731816:e}g=m+12|0;n=0;i=fc-320|0;fc=i;J[i+24>>2]=J[184161];e=J[184160];J[i+16>>2]=J[184159];J[i+20>>2]=e;e=J[184158];J[i+8>>2]=J[184157];J[i+12>>2]=e;e=J[184156];J[i>>2]=J[184155];J[i+4>>2]=e;p=Yc(j);f=eg(j,44);J[i+20>>2]=j;e=j;p:{if(f){J[i+252>>2]=0;H[i+92|0]=0;H[i+32|0]=0;QL(e,i+32|0,i,g);if(J[g>>2]>0)break p;e=J[i+20>>2]}r=(f|0)!=0;OL(i+256|0,e);e=34;g=17;q:{while(1){r:{f=g;q=f<<3;o=Ic(i+256|0,J[q+735472>> +2]);if((o|0)<0)break r;n=f;f=e;if(o)break r;e=J[(J[q+735476>>2]<<2)+735328>>2];break q}o=g;e=f;g=n+e>>>1|0;if((o|0)!=(g|0))continue;break}e=0}H[2772796]=r;J[693198]=e;e=xc(2772832,j,p);H[e+p|0]=0;J[693204]=e;yu(14,3042)}fc=i+320|0;Yr(l)}fc=m+16|0;e=j;break e}ea(0)|0;Bc();B()}J[c+20>>2]=e;if(!e){J[d>>2]=2;break a}j=K[2772796];H[h+15|0]=j;k=J[693198];break d}s:{e=K[a|0];t:{if((e|0)!=117){if((e|0)!=85|K[a+1|0]!=84)break s;if(K[a+2|0]==70)break t;break s}if(K[a+1|0]!=116|K[a+2|0]!=102)break s}u:{v:switch(K[a+ +3|0]-45|0){case 0:if(K[a+5|0]|K[a+4|0]!=56)break s;break u;case 11:break v;default:break s}if(K[a+4|0])break s}J[c+20>>2]=730738;k=740448;break a}QL(a,b,c,d);if(J[d>>2]>0)break a;g=J[c+20>>2];k=h+15|0;f=h+16|0;w:{x:{if(!NL(f))break x;if(!g){J[f>>2]=1;e=0;break w}if(!K[g|0])break x;e=n3(g,k,f);if(e>>>0>=M[693251]){if(K[g|0]!=120|K[g+1|0]!=45)break x;if(!NL(f))break x;e=g+2|0;if(!K[e|0])break x;e=n3(e,k,f);if(e>>>0>=M[693251])break x}l=J[693249]+(L[J[693242]+(e<<1)>>1]<<1)|0}e=l}J[c+20>>2]=e;k=J[h+ +16>>2];y:{if(!(e?(k|0)<=0:0)){J[c+20>>2]=b;e=b;break y}if((k|0)!=-122)break y;J[d>>2]=-122}j=K[h+15|0];k=0}if(!(!(j&255)|(b|0)==(e|0)))QL(e,b,c,d);z:{if(!a)break z;OL(h+272|0,J[c+20>>2]);a=34;b=17;j=0;while(1){k=b;A:{f=b<<3;e=Ic(h+272|0,J[f+735472>>2]);if((e|0)<0)break A;j=b;k=a;if(e)break A;k=J[(J[f+735476>>2]<<2)+735328>>2];break z}e=b;a=k;b=j+a>>>1|0;if((e|0)!=(b|0))continue;break}k=0}if(k)break a;J[c+16>>2]=0;J[c+4>>2]=1;b=0;B:{if(J[d>>2]>0)break B;a=J[c+16>>2];if(!(!a|!K[a|0])){b=bD(c,d);break B}C:{a= +J[693200];if(a){a=ML(a,J[c+20>>2]);if(a)break C}a=bD(c,d);if(!a|J[d>>2]>0)break B;if(K[c+8|0]){b=a;break B}u3(a);b=a;break B}J[a+4>>2]=J[a+4>>2]+1;b=a}k=b?J[d>>2]<=0?b:0:0}fc=h+336|0;return k}function x2a(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;g=J[a+16>>2];l=J[b+4>>2];p=J[l+44>>2];if(p){t=J[l+48>>2];f=K[l+36|0]}else f=0;s=f<<24>>24;m=J[b+12>>2];j=J[b+8>>2];i=s+(m-j|0)|0;k=t<<24>>24;a:{if((i|0)<(k|0))break a;d=J[a+20>>2]-g|0;if((d|0)<(k|0)){J[c>> +2]=-127;return}i=(d|0)>(i|0)?i:d;o=i-k|0;if((o|0)<=0)break a;k=j+i|0;d=K[k+(s^-1)|0];b:{if((d&192)!=128)break b;if((o|0)<2)break a;q=1;k=k-s|0;d=K[k-2|0];if((d&192)!=128)break b;if((o|0)<3)break a;q=2;d=K[k-3|0];if((d&192)==128)break a}k=(d>>>0>191)+(d>>>0>223)|0;c:{if(d>>>0<=239)break c;k=0;if(d>>>0>253)break c;k=(d>>>0>251)+(d>>>0>247?4:3)|0}if(k>>>0<=q>>>0)break a;i=(q^-1)+i|0}d:{if(!p){e=j;d=0;break d}H[l+36|0]=0;J[l+44>>2]=0;h=f;d=1}e:while(1){if(!d){if((i|0)>0)while(1){j=e+1|0;h=H[e|0];f:{if((h| +0)>=0){H[g|0]=h;g=g+1|0;e=j;f=-1;break f}p=h&255;g:{h:{i:{j:{k:{if(h>>>0>=4294967265){d=H[j|0];if((d|0)>=0|!(d>>>0<4294967232&h>>>0<=4294967276)&((h|0)!=-19|d>>>0>4294967199))break k;f=H[e+2|0];if((f|0)>-65)break j;H[g+2|0]=f;H[g+1|0]=d;H[g|0]=h;break g}if((h|0)!=-32){if(h>>>0<4294967234)break j;f=H[j|0];if((f|0)>-65)break j;H[g+1|0]=f;H[g|0]=h;g=g+2|0;e=e+2|0;f=-2;break f}d=K[j|0];if((d&224)!=160)break j;f=H[e+2|0];if((f|0)>-65)break j;H[g+2|0]=f;H[g+1|0]=d;H[g|0]=224;break g}if(h>>>0>=4294967280)break i}f= +(h>>>0>4294967231)+(h>>>0>4294967263)|0;break h}f=0;if(h>>>0>4294967293)break h;f=(h>>>0>4294967291)+(h>>>0>4294967287?4:3)|0}h=1;t=f+1|0;f=0;d=1;continue e}g=g+3|0;e=e+3|0;f=-3}i=f+i|0;if((i|0)>0)continue;break}l:{m:{n:{if(J[c>>2]>0|e>>>0>=m>>>0)break n;if(J[a+20>>2]==(g|0)){J[c>>2]=15;break n}i=K[e|0];o:{if(i>>>0<=239){f=(i>>>0>191)+(i>>>0>223)|0;break o}f=0;if(i>>>0>253)break o;f=(i>>>0>251)+(i>>>0>247?4:3)|0}if((f|0)>=(m-e|0)){H[l+37|0]=i;d=e+1|0;if((m|0)==(d|0)){e=1;break m}e=1;while(1){h=K[d| +0];if((h&192)!=128){H[l+36|0]=e;J[c>>2]=12;m=d;break l}H[((e<<24>>24)+l|0)+37|0]=h;e=e+1|0;i=h+(i<<6)|0;d=d+1|0;if((m|0)!=(d|0))continue;break}break m}J[c>>2]=-127}m=e;break l}J[l+48>>2]=f+1;H[l+36|0]=e;J[l+44>>2]=i}J[b+8>>2]=m;J[a+16>>2]=g;return}p:{q:{r:{s:{t:{u:{v:{e=t<<24>>24;w:{if((e|0)<=h<<24>>24)break w;while(1){if(j>>>0>=m>>>0)break v;d=K[j|0];if((d&192)!=128)break w;j=j+1|0;p=d+(p<<6)|0;h=h+1<<24>>24;if((e|0)>(h|0))continue;break}h=t}n=h<<24>>24;d=(h&255)!=(t&255);if(d|(h&254)!=2)break u; +d=n<<2;e=p-J[d+741408>>2]|0;if((e|0)>2]|e-57344>>>0>=4294965248)break s;break t}d=f<<24>>24;c=h<<24>>24;j=(d-c|0)+j|0;if((c|0)>(d|0))while(1){H[(d+l|0)+37|0]=K[j|0];j=j+1|0;d=d+1|0;if((c|0)>(d|0))continue;break}J[l+48>>2]=e;H[l+36|0]=h;J[l+44>>2]=p;J[b+8>>2]=j;J[a+16>>2]=g;return}if((h&255)!=4|d|p-63512704>>>0>=1048576)break s}k=f<<24>>24;d=0;if((k|0)<=0)break p;s=f&3;o=0;if(f>>>0>=4)break r;e=0;break q}d=f<<24>>24;e=(d-n|0)+j|0;x:{if((d|0)>=(n|0))break x;m=(d^-1)+n|0;f=n-d&3;if(f){j= +0;while(1){H[(d+l|0)+37|0]=K[e|0];d=d+1|0;e=e+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}if(m>>>0<3)break x;while(1){f=d+l|0;H[f+37|0]=K[e|0];H[f+38|0]=K[e+1|0];H[f+39|0]=K[e+2|0];H[f+40|0]=K[e+3|0];e=e+4|0;d=d+4|0;if((n|0)!=(d|0))continue;break}}H[l+36|0]=h;J[b+8>>2]=e;J[a+16>>2]=g;J[c>>2]=12;return}d=f&252;e=0;q=l+37|0;r=0;while(1){H[g|0]=K[e+q|0];H[g+1|0]=K[q+(e|1)|0];H[g+2|0]=K[q+(e|2)|0];H[g+3|0]=K[q+(e|3)|0];e=e+4|0;g=g+4|0;r=r+4|0;if((d|0)!=(r|0))continue;break}}if(s)while(1){H[g|0]=K[(e+ +l|0)+37|0];e=e+1|0;g=g+1|0;o=o+1|0;if((s|0)!=(o|0))continue;break}d=f}e=(k-n|0)+j|0;y:{if(d<<24>>24>=(n|0))break y;o=(d^-1)+h|0;k=h-d&7;if(k){r=0;while(1){H[g|0]=K[e|0];d=d+1|0;g=g+1|0;e=e+1|0;r=r+1|0;if((k|0)!=(r&255))continue;break}}if((o&255)>>>0<7)break y;while(1){H[g|0]=K[e|0];H[g+1|0]=K[e+1|0];H[g+2|0]=K[e+2|0];H[g+3|0]=K[e+3|0];H[g+4|0]=K[e+4|0];H[g+5|0]=K[e+5|0];H[g+6|0]=K[e+6|0];H[g+7|0]=K[e+7|0];g=g+8|0;e=e+8|0;d=d+8<<24>>24;if((n|0)>(d|0))continue;break}}i=i-n|0;d=0;continue}}function IDb(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;f=fc+-64|0;fc=f;if(c)rd(198184,0);a:{b:{c:{d:{e:{c=J[a+28>>2];switch((c>>8)-3|0){case 0:break d;case 1:break e;default:break c}}if((c|0)!=1025)rd(199367,0);J[f+12>>2]=3;d=Ek(a,0);J[f+16>>2]=d;f:{if((d|0)<0)break f;g=1;c=Ek(a,1);J[f+20>>2]=c;if((c|0)<0)break f;c=Ek(a,2);J[f+24>>2]=c;if((c|0)<0)break f;k=3;break b}rd(200411,0);c=-1;break a}if((c|0)!=769)rd(199367,0);l=1;J[f+12>>2]=1;d=Ek(a,0);J[f+16>>2]=d;c=-1; +k=1;if((d|0)>=0)break b;rd(200411,0);break a}rd(201224,0);c=-1;break a}g:{e=J[a+24>>2];c=J[e+(J[f+16>>2]<<2)>>2];d=J[e+(d<<2)>>2];h=J[d+16>>2];h:{if(J[c+16>>2]!=(h|0))break h;i=J[d+20>>2];if((i|0)!=J[c+20>>2])break h;d=J[d+24>>2];if(J[c+28>>2]|(d|0)!=J[c+24>>2]|(J[c>>2]|J[c+4>>2]))break h;if(l)break g;c=J[e+(J[f+20>>2]<<2)>>2];if((h|0)!=J[c+16>>2]|(i|0)!=J[c+20>>2]|(J[c+28>>2]|J[c+24>>2]!=(d|0)))break h;if(J[c>>2]|J[c+4>>2])break h;c=J[e+(J[f+24>>2]<<2)>>2];if((h|0)!=J[c+16>>2]|(i|0)!=J[c+20>>2]| +(J[c+28>>2]|J[c+24>>2]!=(d|0)))break h;if(J[c>>2])break h;if(!J[c+4>>2])break g}rd(201938,0);c=-1;break a}if(g){c=-1;if(J[J[e+(J[f+16>>2]<<2)>>2]+24>>2]!=8|J[J[e+(J[f+20>>2]<<2)>>2]+24>>2]!=8)break a;d=24;if(J[J[e+(J[f+24>>2]<<2)>>2]+24>>2]!=8)break a}J[f+60>>2]=0;J[f+52>>2]=1;J[f+56>>2]=0;J[f+32>>2]=1504078485;J[f+36>>2]=h;J[f+44>>2]=d;J[f+40>>2]=i;e=P(i,(P(d,h)+15|0)/16|0)<<1;J[f+48>>2]=e;c=-1;if($q(b,1504078485))break a;if($q(b,h))break a;if($q(b,i))break a;if($q(b,d))break a;if($q(b,e))break a; +if($q(b,1))break a;if($q(b,0))break a;if($q(b,0))break a;c=a;p=f+16|0;a=0;i=fc-16|0;fc=i;e=-1;i:{if(J[f+52>>2]!=1)break i;j:{if(!k)break j;while(1){k:{d=Dk(J[c+12>>2]-J[c+4>>2]|0,J[c+8>>2]-J[c>>2]|0);J[(i+4|0)+(a<<2)>>2]=d;if(!d)break k;a=a+1|0;if((k|0)!=(a|0))continue;break j}break}fa(202163,202594,235,207912);B()}d=J[f+40>>2];a=P(J[f+44>>2],J[f+36>>2]);J[f+48>>2]=P(d,(a+15|0)/16|0)<<1;l:{if((d|0)<=0)break l;q=(a+7|0)/-8&1;n=J[i+12>>2];o=J[i+8>>2];l=J[i+4>>2];m:{while(1){a=0;if(k)while(1){d=a<<2; +Gk(c,J[d+p>>2],0,m,J[c+8>>2]-J[c>>2]|0,1,J[d+(i+4|0)>>2]);a=a+1|0;if((k|0)!=(a|0))continue;break}h=0;a=0;g=0;n:{e=J[f+36>>2];o:{if((e|0)<=0)break o;while(1){d=J[f+44>>2];r=g<>2];j=J[o+28>>2];if(J[l+20>>2]==1)g=J[g>>2]+(h<<2)|0;else g=J[g+(h<<2)>>2];s=K[g|0];if(J[o+20>>2]==1)g=J[j>>2]+(h<<2)|0;else g=J[j+(h<<2)>>2];j=J[n+28>>2];if(J[n+20>>2]==1)j=J[j>>2]+(h<<2)|0;else j=J[j+(h<<2)>>2];g=J[j>>2]<<16&16711680|(J[g>>2]<<8&65280|s);break p;default:break q}g= +J[l+28>>2];if(J[l+20>>2]==1)g=J[g>>2]+(h<<2)|0;else g=J[g+(h<<2)>>2];g=J[g>>2]}g=r|g&((d|0)==32?-1:-1<=8){while(1){d=J[b+8>>2];if(d&7)break m;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break n;d=a-8|0;j=g>>>d|0;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;r:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=j;break r}e=-1;if((bd(b,j&255)|0)==-1)break i}g=((d|0)==32?-1:-1<>>0>15;a=d;if(e)continue;break}e=J[f+36>>2]}h=h+1|0;if((h|0)<(e| +0))continue;break}if((a|0)<=0)break o;e=-1;d=J[b+8>>2];if(d&7)break i;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break n;a=(-1<>>8-a;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=a;break o}e=-1;if((bd(b,a)|0)==-1)break i}s:{if(!q)break s;d=J[b+8>>2];if(d&7)break m;a=J[b+64>>2];if((a|0)>=0&(a|0)<=J[b+60>>2])break n;J[b+4>>2]=J[b+4>>2]|32;a=J[b+28>>2];J[b+28>>2]=a-1;if((a|0)>0){J[b+60>>2]=J[b+60>>2]+1;a=J[b+24>>2]; +J[b+24>>2]=a+1;H[a|0]=0;break s}e=-1;if((bd(b,0)|0)==-1)break i}m=m+1|0;if((m|0)>2])continue;break l}break}J[b+8>>2]=d|4}e=-1;break i}e=0;if(!k)break i;a=0;while(1){mg(J[(i+4|0)+(a<<2)>>2]);a=a+1|0;if((k|0)!=(a|0))continue;break}}fc=i+16|0;c=e?-1:0}fc=f- -64|0;return c|0}function eE(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;b=0;a:{if(!a)break a;n=J[a+12>>2];b=n>>31;l=J[a+8>>2];c=l>>31;g=J[a+4>>2];h=g>>31;e=J[a>>2];a=e>>31;f=(b^n)-b|0;i=(c^l)-c|0;d=(h^g)- +h|0;m=(a^e)-a|0;a=(d|0)>(m|0)?d:m;a=(a|0)<(i|0)?i:a;b=(a|0)<(f|0)?f:a;if(b>>>0>=23171){b:{c:{if(b>>>0<=65535){a=((b<<16|11584)>>>0)/23170|0;k=a;break c}a=2147483647;k=2147483647;if(b>>>0>1518469119)break c;a=b<<16|11585;h=b>>>16|0;c=S(h);b=32-c|0;h=a>>>b|h<>>0)/23170|0;h=P(k,-23170)+h|0;a=a<>>31;j=b>>>0>23169;h=(j?-23170:0)+b|0;k=j|k<<1;b=31-c|0;a=a<<1}if((c|0)!=31)while(1){c=h<<1|a>>>31;j=c>>>0>23169;c=a>>>30&1|(j?2147460478:0)+c<<1;o=c>>>0>23169;h=(o?-23170:0)+c|0;k= +o|(k<<2|j<<1);a=a<<2;b=b-2|0;if(b)continue;break}a=k>>31;a=(a^k)-a|0;if(k)break c;f=2147483647;k=0;m=1;break b}b=e?(m|0)==2147483647?2147483647:m:2147483647;b=g?b>>>0>d>>>0?d:b:b;b=l?b>>>0>i>>>0?i:b:b;b=n?b>>>0>f>>>0?f:b:b;if(b>>>0<=(a>>>17^65535)>>>0){f=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;m=0;break b}f=2147483647;m=0;c=a>>>1|0;d=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>d>>>0)|0;if(b>>>0>=a>>>0)break b;h=S(b);i=32-h|0;b=d>>>i|b<>>0)/(a>>>0)|0;c=b-P(a,f)|0;b=d<>>31;i=c>>>0>=a>>>0; +c=c-(i?a:0)|0;f=i|f<<1;i=31-h|0;b=b<<1}if((h|0)==31)break b;while(1){c=c<<1|b>>>31;h=c>>>0>=a>>>0;c=b>>>30&1|c-(h?a:0)<<1;d=c>>>0>=a>>>0;c=c-(d?a:0)|0;f=d|(f<<2|h<<1);b=b<<2;i=i-2|0;if(i)continue;break}}b=0;if(!((k|0)<0?0-f|0:f))break a;i=2147483647;h=2147483647;d:{if(m)break d;b=e>>31;b=(b^e)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){h=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break d}c=a>>>1|0;j=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>j>>>0)|0;if(b>>>0>=a>>>0)break d;f=S(b);c=32-f|0;b=j>>>c|b<>>0)/(a>>>0)|0;d= +b-P(a,h)|0;b=j<>>31;c=d>>>0>=a>>>0;d=d-(c?a:0)|0;h=c|h<<1;c=31-f|0;b=b<<1}if((f|0)==31)break d;while(1){d=d<<1|b>>>31;f=d>>>0>=a>>>0;d=b>>>30&1|d-(f?a:0)<<1;j=d>>>0>=a>>>0;d=d-(j?a:0)|0;h=j|(h<<2|f<<1);b=b<<2;c=c-2|0;if(c)continue;break}}j=(k|0)<0;o=e>>31|1;p=0-o|0;e:{if(m)break e;b=g>>31;b=(b^g)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){i=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break e}c=a>>>1|0;d=c+(b<<16)|0;b=(b>>>16|0)+(c>>>0>d>>>0)|0;if(b>>>0>=a>>>0)break e;f=S(b);e=32-f|0;b=d>>>e|b<>>0)/(a>>>0)|0;c=b-P(a,i)|0;b=d<>>31;e=c>>>0>=a>>>0;c=c-(e?a:0)|0;i=e|i<<1;e=31-f|0;b=b<<1}if((f|0)==31)break e;while(1){c=c<<1|b>>>31;f=c>>>0>=a>>>0;c=b>>>30&1|c-(f?a:0)<<1;d=c>>>0>=a>>>0;c=c-(d?a:0)|0;i=d|(i<<2|f<<1);b=b<<2;e=e-2|0;if(e)continue;break}}o=j?p:o;b=g>>31|1;p=j?0-b|0:b;c=2147483647;f=2147483647;f:{if(m)break f;b=l>>31;b=(b^l)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){f=((b<<16)+(a>>>1|0)>>>0)/(a>>>0)|0;break f}e=a>>>1|0;j=e+(b<<16)|0;b=(b>>>16|0)+(e>>>0>j>>>0)|0;if(b>>> +0>=a>>>0)break f;g=S(b);e=32-g|0;b=j>>>e|b<>>0)/(a>>>0)|0;d=b-P(a,f)|0;b=j<>>31;e=d>>>0>=a>>>0;d=d-(e?a:0)|0;f=e|f<<1;e=31-g|0;b=b<<1}if((g|0)==31)break f;while(1){d=d<<1|b>>>31;g=d>>>0>=a>>>0;d=b>>>30&1|d-(g?a:0)<<1;j=d>>>0>=a>>>0;d=d-(j?a:0)|0;f=j|(f<<2|g<<1);b=b<<2;e=e-2|0;if(e)continue;break}}d=(o|0)<0;j=0-h|0;o=(p|0)<0;p=0-i|0;b=l>>31|1;q=(k|0)<0;r=((q?0-b|0:b)|0)<0;s=0-f|0;g:{if(m)break g;b=n>>31;b=(b^n)-b|0;if(b>>>0<=(a>>>17^65535)>>>0){c=((b<<16)+(a>>>1|0)>>>0)/ +(a>>>0)|0;break g}e=a>>>1|0;k=e+(b<<16)|0;b=(b>>>16|0)+(e>>>0>k>>>0)|0;if(b>>>0>=a>>>0)break g;e=S(b);l=32-e|0;b=k>>>l|b<>>0)/(a>>>0)|0;g=b-P(a,c)|0;b=k<>>31;l=g>>>0>=a>>>0;g=g-(l?a:0)|0;c=l|c<<1;l=31-e|0;b=b<<1}if((e|0)==31)break g;while(1){g=g<<1|b>>>31;e=g>>>0>=a>>>0;g=b>>>30&1|g-(e?a:0)<<1;k=g>>>0>=a>>>0;g=g-(k?a:0)|0;c=k|(c<<2|e<<1);b=b<<2;l=l-2|0;if(l)continue;break}}g=o?p:i;l=r?s:f;a=n>>31|1;n=((q?0-a|0:a)|0)<0?0-c|0:c;e=d?j:h}a=P(e,n);c=P(g,l);b=0;if((a|0)==(c| +0))break a;b=a-c|0;a=b>>31;b=(((P(e,e)+P(g,g)|0)+P(l,l)|0)+P(n,n)>>>0)/((a^b)-a>>>0)>>>0<51}return b}function oya(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;s=fc-32|0;fc=s;a:{b:{c:{if((e|0)==1){q=fc-32|0;fc=q;d:{e=a;e:{if(L[a+10>>1]<=(c|0)|L[a+8>>1]<=(d|0)|(L[b+10>>1]+c|0)<0)break e;g=L[b+8>>1];if((g+d|0)<0)break e;if(J[b+20>>2]){f:{if(J[a+24>>2]|J[a+20>>2])break f;f=J[a+36>>2];if(!f)break f;Fo(a,f);g=L[b+8>>1]}if(!(g&65535))break e; +a=0-c|0;a=(a|0)>0?a:0;n=a^-1;h=L[e+14>>1];j=((J[e+24>>2]+L[e+12>>1]|0)+P(h,d)|0)+c|0;i=J[b+20>>2]+L[b+12>>1]|0;while(1){f=d+l|0;g:{if((f|0)<0|(f|0)>=L[e+8>>1])break g;f=L[b+10>>1];k=L[e+10>>1]-c|0;k=(f|0)<(k|0)?f:k;if((k|0)<=(a|0))break g;g=0;f=a;h=k-f&3;if(h)while(1){r=f+j|0;H[r|0]=K[r|0]+K[f+i|0];f=f+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}if(k+n>>>0>=3)while(1){g=f+j|0;H[g|0]=K[g|0]+K[f+i|0];g=f+1|0;h=g+j|0;H[h|0]=K[h|0]+K[g+i|0];g=f+2|0;h=g+j|0;H[h|0]=K[h|0]+K[g+i|0];g=f+3|0;h=g+j|0;H[h|0]= +K[h|0]+K[g+i|0];f=f+4|0;if((k|0)!=(f|0))continue;break}g=L[b+8>>1];h=L[e+14>>1]}j=(h&65535)+j|0;i=L[b+14>>1]+i|0;l=l+1|0;if(l>>>0<(g&65535)>>>0)continue;break}break e}if(!J[b+36>>2])break e;h:{if(J[e+24>>2]|J[e+20>>2])break h;a=J[e+36>>2];if(!a)break h;Fo(e,a);g=L[b+8>>1]}a=g&65535;if(!a)break e;f=L[e+14>>1];j=a-1|0;h=(((J[e+24>>2]+L[e+12>>1]|0)+P(f,d)|0)+c|0)+P(f,j)|0;n=0-c|0;g=J[b+36>>2];while(1){f=K[g|0];if(f>>>0<192)g=g+1|0;else{f=K[g+1|0]|f<<8&16128;g=g+2|0}l=L[b+10>>1];a=f+i|0;if((l|0)<(a|0)){b= +Qc(q+8|0,2389239,2385834,601,2419106,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;break a}i:{if(!(k&255))break i;f=d+j|0;if((f|0)<0|(f|0)>=L[e+8>>1])break i;f=(c+i|0)<0?(a|0)>(n|0)?n:a:i;if((a|0)<=(f|0))break i;while(1){if(L[e+10>>1]>(c+f|0)){i=f+h|0;H[i|0]=K[i|0]+1;f=f+1|0;if((a|0)!=(f|0))continue}break}l=L[b+10>>1]}if((a|0)<(l|0))k=1-k|0;else{j=j-1|0;h=h-L[e+14>>1]|0;a=0;k=0}i=a;if((j|0)>=0)continue;break}}fc=q+32|0;break c}B()}if((P(L[a+10>>1],e)|0)<=(c|0)|(P(L[a+8>>1], +e)|0)<=(d|0)|(L[b+10>>1]+c|0)<0)break c;h=L[b+8>>1];if((h+d|0)<0)break c;if(J[b+20>>2]){j:{if(J[a+24>>2]|J[a+20>>2])break j;f=J[a+36>>2];if(!f)break j;Fo(a,f);h=L[b+8>>1]}if(!h)break c;f=(c|0)/(e|0)|0;g=c-P(f,e)|0;c=g>>31;q=c+f|0;n=g+(c&e)|0;c=(d|0)/(e|0)|0;d=d-P(c,e)|0;f=d>>31;i=(f&e)+d|0;j=L[a+14>>1];o=c+f|0;p=(J[a+24>>2]+L[a+12>>1]|0)+P(j,o)|0;k=J[b+20>>2]+L[b+12>>1]|0;while(1){k:{if((o|0)<0|L[a+8>>1]<=(o|0))break k;d=0;f=n;c=q;g=L[b+10>>1];if(!g)break k;while(1){if(!((c|0)<0|L[a+10>>1]<=(c|0))){g= +c+p|0;H[g|0]=K[g|0]+K[d+k|0];g=L[b+10>>1]}f=f+1|0;j=(f|0)>=(e|0);f=j?0:f;c=c+j|0;d=d+1|0;if(g>>>0>d>>>0)continue;break}h=L[b+8>>1];j=L[a+14>>1]}d=i+1|0;c=(d|0)>=(e|0);i=c?0:d;p=(c?j:0)+p|0;k=L[b+14>>1]+k|0;o=c+o|0;l=l+1|0;if(h>>>0>l>>>0)continue;break}break c}if(!J[b+36>>2])break c;l:{if(J[a+24>>2]|J[a+20>>2])break l;f=J[a+36>>2];if(!f)break l;Fo(a,f);h=L[b+8>>1]}if(!h)break c;l=h-1|0;f=l+d|0;d=(f|0)/(e|0)|0;f=f-P(d,e)|0;g=f>>31;h=(g&e)+f|0;g=d+g|0;o=(J[a+24>>2]+L[a+12>>1]|0)+P(g,L[a+14>>1])|0;q= +e-1|0;k=J[b+36>>2];d=c;c=(c|0)/(e|0)|0;d=d-P(c,e)|0;i=d>>31;n=(i&e)+d|0;f=n;r=c+i|0;d=r;while(1){c=K[k|0];if(c>>>0<192)k=k+1|0;else{c=K[k+1|0]|c<<8&16128;k=k+2|0}i=L[b+10>>1];p=c+p|0;if((i|0)<(p|0)){b=Qc(s+8|0,2389239,2385834,702,2419152,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}m:{if(!c|(g|0)<0|L[a+8>>1]<=g>>>0)break m;if(!(j&255)){u=L[a+10>>1];while(1){if((d|0)>=(u|0))break m;m=f;f=e-f|0;t=(c|0)>(f|0)?f:c;f=m+t|0;m=(f|0)>=(e|0);f=m?0:f;d=d+m|0;c=c-t|0;if((c| +0)>0)continue;break}break m}while(1){if(L[a+10>>1]>(d|0)){i=e-f|0;i=(c|0)>(i|0)?i:c;if((d|0)>=0){m=d+o|0;H[m|0]=i+K[m|0]}f=f+i|0;m=(f|0)>=(e|0);f=m?0:f;d=d+m|0;c=c-i|0;if((c|0)>0)continue}break}i=L[b+10>>1]}if((i|0)>(p|0))j=1-j|0;else{l=l-1|0;p=0;if((h|0)>0)c=h-1|0;else{g=g-1|0;o=o-L[a+14>>1]|0;c=q}h=c;d=r;f=n;j=0}if((l|0)>=0)continue;break}}fc=s+32|0;return}B()}a=Z()|0;Kc(b);ba(a|0);B()}function CW(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2414100;J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;a:{if((c| +0)==1)break a;J[699344]=0;da(5408,b|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+108>>2];if(b){J[699344]=0;ca(5270,b|0,5473,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+152>>2];if(b)uc(b);J[a+152>>2]=0;b=J[a+164>>2];J[a+164>>2]=0;b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+160>>2];J[a+160>>2]=0;c:{if(!b)break c;J[699344]=0;c=J[b+4>>2]- +1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+156>>2];J[a+156>>2]=0;d:{if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}id(a+112|0);b=J[a+108>>2];J[a+108>>2]=0;e:{if(!b)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break e; +J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+72>>2]=2392932;J[a+96>>2]=2392964;b=J[a+100>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+100>>2]=0}J[a+88>>2]=2392964;b=J[a+92>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+92>>2]=0}wc(a+80|0);wc(a+60|0);wc(a+52|0);b=J[a+48>>2];J[a+48>>2]=0;f:{if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break f;J[699344]=0;$(5147,b|0); +b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+44>>2];J[a+44>>2]=0;g:{if(!b)break g;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+40>>2];J[a+40>>2]=0;h:{if(!b)break h;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+36>>2];J[a+36>>2]=0;i:{if(!b)break i; +J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+32>>2];J[a+32>>2]=0;j:{if(!b)break j;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break j;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+28>>2];J[a+28>>2]=0;k:{if(!b)break k;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break k; +J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+24>>2];J[a+24>>2]=0;l:{if(!b)break l;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break l;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+20>>2];J[a+20>>2]=0;m:{if(!b)break m;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break m;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+16>>2];J[a+ +16>>2]=0;n:{if(!b)break n;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break n;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+12>>2];J[a+12>>2]=0;o:{if(!b)break o;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break o;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+8>>2];J[a+8>>2]=0;p:{if(!b)break p;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]= +0;if((d|0)==1)break a;if(c)break p;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}return vr(a)|0}ea(0)|0;Bc();B()}function IW(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=fc-144|0;fc=f;h=si();c=fc-16|0;fc=c;e=h- -64|0;d=e;i=J[d+24>>2];J[c+12>>2]=d;J[c+8>>2]=i;a:{b:{c:while(1){d=J[c+8>>2];if(d)while(1){if((e|0)!=J[c+12>>2])break b;if(J[d+24>>2]==(b|0)){J[c+4>>2]=e;J[c>>2]=d;J[c+8>>2]=J[d>>2];Tp(e,c);continue c}d=J[d>>2];J[c+8>>2]=d;if(d)continue;break}break}fc=c+16|0;break a}xj(c+ +8|0,e);B()}d:{e:{f:{g:{h:{i:{if(!(!(J[b+148>>2]&2)|!J[a+100>>2])){J[699344]=0;i=b+72|0;c=aa(5151,f+108|0,i|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;J[699344]=0;d=f+72|0;ca(5401,d|0,c|0,0);e=J[699344];J[699344]=0;j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if((e|0)!=1){J[699344]=0;ca(5420,h|0,b|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break x;wc(d);J[c+24>>2]=2392964;J[c>>2]=2392932;d=J[c+28>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[c+28>>2]=0}J[c+16>>2]=2392964; +d=J[c+20>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[c+20>>2]=0}wc(c+8|0);y:{if(!(J[a+92>>2]&6))break y;J[699344]=0;c=aa(5151,f+72|0,i|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;J[699344]=0;e=aa(5421,a|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;J[c+24>>2]=2392964;J[c>>2]=2392932;d=J[c+28>>2];if(d){g=J[d+4>>2]-1|0;J[d+4>>2]=g;if(!g)kc[J[J[d>>2]+4>>2]](d);J[c+28>>2]=0}J[c+16>>2]=2392964;d=J[c+20>>2];if(d){g=J[d+4>>2]-1|0;J[d+4>>2]=g;if(!g)kc[J[J[d>>2]+4>>2]](d); +J[c+20>>2]=0}wc(c+8|0);if((e|0)<0)break y;if(!e){J[699344]=0;c=f- -64|0;ca(5401,c|0,a+8|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break f;J[699344]=0;d=f+12|0;ca(5291,d|0,c|0,2400253);g=J[699344];J[699344]=0;if((g|0)==1)break w;J[699344]=0;ca(5420,h|0,b|0,d|0);g=J[699344];J[699344]=0;if((g|0)==1)break v;wc(d);wc(c)}J[699344]=0;c=f+56|0;ca(5401,c|0,a+8|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;d=f- -64|0;ca(5291,d|0,c|0,2400465);a=J[699344];J[699344]=0;if((a|0)==1)break t;J[699344]= +0;a=aa(5290,f+48|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break s;J[699344]=0;e=f+12|0;ca(5292,e|0,d|0,a|0);g=J[699344];J[699344]=0;if((g|0)==1)break r;J[699344]=0;ca(5420,h|0,b|0,e|0);g=J[699344];J[699344]=0;if((g|0)==1)break q;wc(e);wc(a);wc(d);wc(c)}J[699344]=0;a=aa(5151,f+12|0,i|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=f+56|0;ca(5401,c|0,a|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break m;J[699344]=0;d=f- -64|0;ca(5291,d|0,c|0,2400253);e=J[699344];J[699344]=0;if((e|0)== +1)break l;J[699344]=0;ca(5420,h|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break k;wc(d);wc(c);J[a+24>>2]=2392964;J[a>>2]=2392932;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2392964;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}wc(a+8|0);break i}break h}a=Z()|0;wc(f+72|0);break g}b=Z()|0;break u}b=Z()|0;wc(f+12|0)}wc(f- -64|0);break d}b=Z()|0;break n}b=Z()|0;break o}b=Z()|0;break p}b=Z()|0;wc(f+ +12|0)}wc(a)}wc(f- -64|0)}wc(f+56|0);break d}b=Z()|0;break e}b=Z()|0;break j}b=Z()|0;wc(f- -64|0)}wc(f+56|0);break e}J[699344]=0;d=f+12|0;da(5409,d|0,a|0);a=J[699344];J[699344]=0;z:{A:{B:{C:{D:{if((a|0)!=1){J[699344]=0;a=aa(5151,f+108|0,b+72|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break D;c=J[a+8>>2];e=J[(c?c+12|0:2743576)>>2];J[699344]=0;c=f+72|0;ca(5291,c|0,d|0,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break C;J[699344]=0;ca(5420,h|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break B;wc(c);J[a+ +24>>2]=2392964;J[a>>2]=2392932;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2392964;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}wc(a+8|0);wc(f+12|0);break i}break f}b=Z()|0;break z}b=Z()|0;break A}b=Z()|0;wc(f+72|0)}Ed(a)}wc(f+12|0);break d}fc=f+144|0;return}a=Z()|0}Ed(c);ba(a|0);B()}ba(Z()|0);B()}Ed(a)}ba(b|0);B()}function DQa(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;i=P$(J[a+416>> +2],b);a:{if(i)break a;i=0;if(!Qk(J[a+16>>2],b))break a;h=fc-16|0;fc=h;J[h+12>>2]=0;J[h+8>>2]=0;j=J[b+4>>2];c=fc-48|0;fc=c;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!J[693461]){H[c+8|0]=K[777102];J[c+32>>2]=30284;H[c+11|0]=9;H[c+9|0]=0;J[c+24>>2]=J[c+8>>2];J[c+28>>2]=1726544;d=K[777098]|K[777099]<<8|(K[777100]<<16|K[777101]<<24);e=K[777094]|K[777095]<<8|(K[777096]<<16|K[777097]<<24);J[c>>2]=e;J[c+4>>2]=d;J[c+16>>2]=e;J[c+20>>2]=d;J[699344]=0;d=c+16|0;ia(3533,c+40|0,2773836,d|0,d|0);d=J[699344];J[699344]= +0;if((d|0)==1)break d;if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+11|0]<0)uc(J[c>>2]);I[c+8>>1]=K[778123]|K[778124]<<8;J[c+32>>2]=19179;I[c+10>>1]=2560;J[c+24>>2]=J[c+8>>2];d=K[778119]|K[778120]<<8|(K[778121]<<16|K[778122]<<24);e=K[778115]|K[778116]<<8|(K[778117]<<16|K[778118]<<24);J[c+16>>2]=e;J[c+20>>2]=d;J[c+28>>2]=1847680;J[c>>2]=e;J[c+4>>2]=d;J[699344]=0;d=c+16|0;ia(3533,c+40|0,2773836,d|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break d;if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+11|0]<0)uc(J[c>>2]);d=vc(16); +H[d+12|0]=0;e=K[779281]|K[779282]<<8|(K[779283]<<16|K[779284]<<24);H[d+8|0]=e;H[d+9|0]=e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;e=K[779277]|K[779278]<<8|(K[779279]<<16|K[779280]<<24);f=K[779273]|K[779274]<<8|(K[779275]<<16|K[779276]<<24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;J[699344]=0;e=c+16|0;ca(2838,e|0,d|0,12);f=J[699344];J[699344]=0;if((f|0)==1)break l;J[c+32>>2]=18352;J[c+28>>2]=2016640;J[699344]=0;ia(3533,c|0,2773836, +e|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break k;if(H[c+27|0]<0)uc(J[c+16>>2]);uc(d);H[c+11|0]=8;H[c+8|0]=0;J[c+32>>2]=22897;J[c+24>>2]=J[c+8>>2];J[c+16>>2]=1651467329;J[c+20>>2]=1380658533;J[c+28>>2]=2090048;J[c>>2]=1651467329;J[c+4>>2]=1380658533;J[699344]=0;d=c+16|0;ia(3533,c+40|0,2773836,d|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break d;if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+11|0]<0)uc(J[c>>2]);d=vc(16);H[d+12|0]=0;e=K[781769]|K[781770]<<8|(K[781771]<<16|K[781772]<<24);H[d+8|0]=e;H[d+9|0]= +e>>>8;H[d+10|0]=e>>>16;H[d+11|0]=e>>>24;e=K[781765]|K[781766]<<8|(K[781767]<<16|K[781768]<<24);f=K[781761]|K[781762]<<8|(K[781763]<<16|K[781764]<<24);H[d|0]=f;H[d+1|0]=f>>>8;H[d+2|0]=f>>>16;H[d+3|0]=f>>>24;H[d+4|0]=e;H[d+5|0]=e>>>8;H[d+6|0]=e>>>16;H[d+7|0]=e>>>24;J[699344]=0;e=c+16|0;ca(2838,e|0,d|0,12);f=J[699344];J[699344]=0;if((f|0)==1)break j;J[c+32>>2]=23060;J[c+28>>2]=1924400;J[699344]=0;ia(3533,c|0,2773836,e|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;if(H[c+27|0]<0)uc(J[c+16>>2]);uc(d)}d= +Yc(j);if(d>>>0>=2147483632)break e;if(d>>>0>10)break g;H[c+27|0]=d;e=c+16|0;break f}a=Z()|0;uc(d);break c}a=Z()|0;if(H[c+27|0]<0)uc(J[c+16>>2]);uc(d);break c}a=Z()|0;break h}a=Z()|0;if(H[c+27|0]>=0)break h;uc(J[c+16>>2])}uc(d);break c}f=(d|15)+1|0;e=vc(f);J[c+24>>2]=f|-2147483648;J[c+16>>2]=e;J[c+20>>2]=d}k=xc(e,j,d)+d|0,l=0,H[k|0]=l;J[699344]=0;d=Fu(2773836,c+16|0);e=J[699344];J[699344]=0;m:{n:{if((e|0)!=1){if(H[c+27|0]<0)uc(J[c+16>>2]);if((d|0)!=2773840)break n;f=0;e=0;break m}a=Z()|0;if(H[c+27| +0]>=0)break c;uc(J[c+16>>2]);break c}f=J[d+28>>2];e=J[d+32>>2]}J[h+12>>2]=f;J[h+8>>2]=e;fc=c+48|0;c=(d|0)!=2773840;break b}_d(c+16|0);B()}a=Z()|0;if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+11|0]>=0)break c;uc(J[c>>2])}ba(a|0);B()}o:{p:{q:{if(c){g=vc(28);J[699344]=0;c=_(4,8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;J[699344]=0;d=aa(3350,c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;uc(c);break p}e=J[h+12>>2];b=J[h+8>>2];J[g+8>>2]=b;J[g>>2]=d;J[699344]=0;c=aa(3551,b|0,4)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break q;J[g+4>>2]=c;xc(c,e,b<<2);J[g+20>>2]=0;J[g+24>>2]=1;J[g+12>>2]=0;J[g+16>>2]=0}fc=h+16|0;b=g;break o}a=Z()|0}uc(g);ba(a|0);B()}if(!b)break a;O$(J[a+416>>2],b);i=b}return i|0}function YT(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;e=fc-16|0;fc=e;Tc(b,2444192,-1);Tc(b,2444216,-1);Tc(b,2444248,-1);if(K[a+112|0])Tc(b,2444300,-1);if(!K[a+237|0]){Tc(b,2444340,-1);OG(b,J[a+56>>2]);Tc(b,2444412,-1)}c=-1;i=a+240|0;d=i;a:{if(J[d+4>>2]!=J[d+8>>2]){f=(O[a+48>>3]-O[a+200>>3])/+(J[d+ +8>>2]-J[d+4>>2]>>2>>>0)*56.69291338582678;b:{if(R(f)<2147483648){d=~~f;break b}d=-2147483648}c=d-1|0;if(!c)break a}Tc(b,2444428,-1);jh(b,c);Tc(b,2444412,-1)}c=2444504;c:{d:{if(K[a+110|0])break d;c=2444552;if(K[a+111|0])break d;if(K[a+109|0])Tc(b,2444604,-1);c=2444656;if(!K[a+108|0])break c}Tc(b,c,-1)}if(K[a+88|0])Tc(b,K[a+89|0]?2444704:2444756,-1);e:{f:{g:{h:{i:{j:{k:{l:{if(K[a+96|0]){Tc(b,2444804,-1);if(!(H[2794176]&1)){XT();H[2794176]=1}m:{n:{c=J[698539];o:{if(!c)break o;g=J[a+100>>2];d=2794156; +while(1){h=(g|0)>J[c+16>>2];d=h?d:c;c=J[(h?c+4|0:c)>>2];if(c)continue;break}if((d|0)==2794156)break o;if((g|0)>=J[d+16>>2])break n}c=vc(32);J[e>>2]=c;J[e+4>>2]=6;J[e+8>>2]=-2147483640;d=J[611981];J[c+16>>2]=J[611980];J[c+20>>2]=d;d=J[611979];J[c+8>>2]=J[611978];J[c+12>>2]=d;d=J[611977];J[c>>2]=J[611976];J[c+4>>2]=d;J[c+24>>2]=0;break m}if(H[d+31|0]>=0){J[e+8>>2]=J[d+28>>2];c=J[d+24>>2];J[e>>2]=J[d+20>>2];J[e+4>>2]=c;break m}Ve(e,J[d+20>>2],J[d+24>>2])}J[699344]=0;da(6657,b|0,e|0);c=J[699344];J[699344]= +0;if((c|0)==1)break l;if(H[e+11|0]<0)uc(J[e>>2]);if(J[a+104>>2]!=J[J[a+56>>2]+28>>2]){Tc(b,2444852,-1);c=J[a+104>>2];J[e>>2]=c<<16&16711680|c&65280|c>>>16&255;Op(b,e);Tc(b,2444896,-1)}Tc(b,2444904,-1)}if(!K[a+90|0])break g;if(!(H[2794192]&1)){J[698546]=0;J[698547]=0;J[698545]=2794184;J[699344]=0;$(6660,2794180);c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;Uz(2794180,J[698546]);ba(a|0);B()}H[2794192]=1}c=J[698546];if(!c)break i;g=J[a+92>>2];d=2794184;while(1){h=g>>>0>M[c+16>>2];d=h?d:c;c=J[(h?c+4| +0:c)>>2];if(c)continue;break}if((d|0)==2794184|g>>>0>2])break i;Tc(b,2444916,-1);c=J[698546];p:{if(!c)break p;d=J[a+92>>2];g=d<<16&16711680|d&65280|d>>>16&255;d=2794184;while(1){h=g>>>0>M[c+16>>2];d=h?d:c;c=J[(h?c+4|0:c)>>2];if(c)continue;break}if((d|0)==2794184)break p;if(g>>>0>=M[d+16>>2])break k}c=vc(32);J[e>>2]=c;J[e+4>>2]=4;J[e+8>>2]=-2147483640;d=J[611986];J[c+8>>2]=J[611985];J[c+12>>2]=d;d=J[611984];J[c>>2]=J[611983];J[c+4>>2]=d;J[c+16>>2]=0;break j}c=Z()|0;if(H[e+11|0]>=0)break f; +break e}if(H[d+31|0]>=0){J[e+8>>2]=J[d+28>>2];c=J[d+24>>2];J[e>>2]=J[d+20>>2];J[e+4>>2]=c;break j}Ve(e,J[d+20>>2],J[d+24>>2])}J[699344]=0;da(6657,b|0,e|0);c=J[699344];J[699344]=0;if((c|0)!=1){if(H[e+11|0]>=0)break h;uc(J[e>>2]);break h}c=Z()|0;if(H[e+11|0]>=0)break f;break e}Tc(b,2445E3,-1);c=J[a+92>>2];J[e>>2]=c<<16&16711680|c&65280|c>>>16&255;Op(b,e)}Tc(b,2444412,-1)}f=3;q:{if((J[a+84>>2]&-2)!=2){f=2;if(!K[a+237|0])break q}j=O[J[a+56>>2]+400>>3];Tc(b,2445180,-1);f=j*f;r:{if(R(f)<2147483648){d=~~f; +break r}d=-2147483648}c=d;jh(b,c);Tc(b,2445236,-1);jh(b,c);Tc(b,2444412,-1);if(!K[a+237|0])break q;Tc(b,2445312,-1);xo(b,J[a+56>>2]+384|0);Tc(b,2445392,-1);xo(b,J[a+56>>2]+384|0);Tc(b,2445440,-1);xo(b,J[a+56>>2]+384|0);Tc(b,2445476,-1);xo(b,J[a+56>>2]+384|0);Tc(b,2445536,-1);c=J[a+56>>2];if(K[c+409|0]){Tc(b,2445620,-1);Tc(b,2445648,-1);c=J[a+56>>2]}if(K[c+408|0]){Tc(b,2445684,-1);Tc(b,2445712,-1);c=J[a+56>>2]}c=J[c+28>>2];if((c<<16&16711680|c&65280|c>>>16&255)==1118481)break q;Tc(b,2445748,-1);c= +J[J[a+56>>2]+28>>2];J[e>>2]=c<<16&16711680|c&65280|c>>>16&255;Op(b,e);Tc(b,2444412,-1)}c=2445816;s:switch(J[a+84>>2]-2|0){case 1:c=2445948;case 0:Tc(b,c,-1);break;default:break s}Tc(b,2446088,-1);Tc(b,2446124,-1);Jv(e,i);J[699344]=0;da(3512,b|0,e|0);c=J[699344];J[699344]=0;if((c|0)!=1){if(H[e+11|0]<0)uc(J[e>>2]);Tc(b,2446232,-1);if(K[a+236|0])Tc(b,2446260,-1);Tc(b,2446292,-1);fc=e+16|0;return}c=Z()|0;if(H[e+11|0]>=0)break f;uc(J[e>>2])}ba(c|0);B()}uc(J[e>>2]);ba(c|0);B()}function h0a(a,b){a=a|0;b= +b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;while(1){a:{b:{if(M[a+116>>2]>=262){h=J[a+112>>2];d=J[a+96>>2];break b}SC(a);c=J[a+116>>2];if(!(c>>>0>=262|b))return 0;if(c){h=J[a+112>>2];d=J[a+96>>2];if(c>>>0>2)break b;J[a+100>>2]=h;J[a+120>>2]=d;g=2;J[a+96>>2]=2;break a}if(J[a+104>>2]){d=K[(J[a+56>>2]+J[a+108>>2]|0)-1|0];c=J[a+5792>>2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>>2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]=L[c+148>>1]+1;J[a+104>>2]=0}d=J[a+108>>2];J[a+5812>>2]=d>>>0>=2?2:d;if((b|0)==4){c= +J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;Uk(a,b,d-c|0,1);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];Uh(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;c:{if(!c)break c;xc(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break c;J[d+16>>2]=J[d+8>>2]}return(J[J[a>>2]+16>>2]?3:2)|0}d:{if(!J[a+5792>>2])break d;c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;Uk(a,b,d-c|0,0); +J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];Uh(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;e:{if(!c)break e;xc(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break e;J[d+16>>2]=J[d+8>>2]}if(J[J[a>>2]+16>>2])break d;return 0}return 1}g=2;f=J[a+108>>2];c=J[a+84>>2]&(K[(f+J[a+56>>2]|0)+2|0]^J[a+72>>2]<>2]);J[a+72>>2]=c;c=J[a+68>>2]+(c<<1)|0;e=L[c>>1];I[J[a+64>>2]+((f&J[a+ +52>>2])<<1)>>1]=e;I[c>>1]=f;J[a+100>>2]=h;J[a+120>>2]=d;J[a+96>>2]=2;if(!e)break a;f:{if(J[a+44>>2]-262>>>0>>0|M[a+128>>2]<=d>>>0)break f;g=E2(a,e);J[a+96>>2]=g;if(g>>>0>5)break f;if(J[a+136>>2]!=1){if((g|0)!=3)break f;g=3;if(J[a+108>>2]-J[a+112>>2]>>>0<4097)break f}g=2;J[a+96>>2]=2}d=J[a+120>>2]}if(!(d>>>0<3|d>>>0>>0)){h=J[a+116>>2];c=J[a+5792>>2];f=J[a+108>>2];e=f+(J[a+100>>2]^-1)|0;I[J[a+5796>>2]+(c<<1)>>1]=e;J[a+5792>>2]=c+1;i=c+J[a+5784>>2]|0;c=d-3|0;H[i|0]=c;c=((K[(c&255)+767472|0]<< +2)+a|0)+1176|0;I[c>>1]=L[c>>1]+1;c=e-1&65535;c=((K[(c>>>0<256?c:(c>>>7|0)+256|0)+766960|0]<<2)+a|0)+2440|0;I[c>>1]=L[c>>1]+1;c=J[a+120>>2];g=c-2|0;J[a+120>>2]=g;J[a+116>>2]=(J[a+116>>2]-c|0)+1;i=(f+h|0)-3|0;d=J[a+108>>2];h=J[a+5788>>2]-1|0;f=J[a+5792>>2];while(1){c=d;d=c+1|0;J[a+108>>2]=d;if(d>>>0<=i>>>0){e=J[a+84>>2]&(K[(c+J[a+56>>2]|0)+3|0]^J[a+72>>2]<>2]);J[a+72>>2]=e;e=J[a+68>>2]+(e<<1)|0;I[J[a+64>>2]+((J[a+52>>2]&d)<<1)>>1]=L[e>>1];I[e>>1]=d}g=g-1|0;J[a+120>>2]=g;if(g)continue;break}J[a+ +96>>2]=2;J[a+104>>2]=0;c=c+2|0;J[a+108>>2]=c;if((f|0)!=(h|0))continue;e=J[a+92>>2];if((e|0)>=0)d=e+J[a+56>>2]|0;else d=0;Uk(a,d,c-e|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];Uh(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;g:{if(!d)break g;xc(J[f+12>>2],J[e+16>>2],d);J[f+12>>2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+20>>2];J[f+16>>2]=J[f+16>>2]-d;c=J[e+20>>2];J[e+20>>2]=c-d;if((c|0)!=(d|0))break g;J[e+16>>2]=J[e+8>>2]}if(J[J[a>>2]+16>>2])continue;return 0}if(J[a+104>>2]){d= +K[(J[a+56>>2]+J[a+108>>2]|0)-1|0];c=J[a+5792>>2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>>2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]=L[c+148>>1]+1;h:{if(J[a+5792>>2]!=(J[a+5788>>2]-1|0))break h;d=J[a+92>>2];if((d|0)>=0)c=d+J[a+56>>2]|0;else c=0;Uk(a,c,J[a+108>>2]-d|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];Uh(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;if(!d)break h;xc(J[f+12>>2],J[e+16>>2],d);J[f+12>>2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+20>>2];J[f+16>>2]=J[f+ +16>>2]-d;c=J[e+20>>2];J[e+20>>2]=c-d;if((c|0)!=(d|0))break h;J[e+16>>2]=J[e+8>>2]}J[a+108>>2]=J[a+108>>2]+1;J[a+116>>2]=J[a+116>>2]-1;if(J[J[a>>2]+16>>2])continue}else{J[a+104>>2]=1;J[a+108>>2]=J[a+108>>2]+1;J[a+116>>2]=J[a+116>>2]-1;continue}break}return 0}function n1(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=fc-32|0;fc=e;J[e+28>>2]=0;b=J[J[a+36>>2]+16>>2];a:{if(K[b|0]!=38)break a;if(K[b+1|0]==35){d=K[b+2|0];b=y1(a);if(!b)break a;if(J[a+256>>2]!=1){if((b|0)<=255){H[e+19|0]=0;H[e+18|0]=b;b=J[a>>2];if(!b)break a; +b=J[b+68>>2];if(J[a+212>>2]|!b)break a;kc[b|0](J[a+4>>2],e+18|0,1);break a}J[e>>2]=b;b=e+18|0;Wi(b,10,(d&223)==88?20023:17427,e);d=J[a>>2];if(!d)break a;d=J[d+64>>2];if(J[a+212>>2]|!d)break a;kc[d|0](J[a+4>>2],b);break a}d=e+18|0;b=ej(d,b);H[b+d|0]=0;c=J[a>>2];if(!c)break a;c=J[c+68>>2];if(J[a+212>>2]|!c)break a;kc[c|0](J[a+4>>2],d,b);break a}c=s1(a);if(!c|!J[a+12>>2])break a;b:{if(J[c+8>>2]){b=J[c+48>>2];if((b|0)!=6)break b}b=J[c+40>>2];if(!b)break a;d=J[a>>2];if(!d)break a;d=J[d+68>>2];if(J[a+212>> +2]|!d)break a;kc[d|0](J[a+4>>2],b,Tk(b));break a}c:{d:{f=J[c+72>>2];if(J[c+12>>2]|!(K[a+360|0]&2)?f:0)break d;e:{if((b|0)==2){if(!(K[a+360|0]&18))break d;b=J[a+248>>2]+1|0;J[a+248>>2]=b;d=J[a+440>>2];g=J[a+4>>2];b=m1(J[a+8>>2],a,J[a>>2],(a|0)!=(g|0)?g:0,b,J[c+64>>2],J[c+52>>2],e+28|0);J[a+248>>2]=J[a+248>>2]-1;g=a+440|0;break e}g=a+440|0;d=J[a+440>>2];if((b|0)==1){J[a+248>>2]=J[a+248>>2]+1;b=J[a+4>>2];b=l1(a,J[c+40>>2],(a|0)!=(b|0)?b:0,e+28|0);J[a+248>>2]=J[a+248>>2]-1;break e}ku(a,1,35030,0);b=88}J[c+ +72>>2]=(J[g>>2]-d<<1)+2;d=J[c+40>>2];f:{if(!d)break f;if(!rq(d,60))break f;J[c+72>>2]=J[c+72>>2]|1}if((b|0)==89){Xe(a,89,0);Ym(J[e+28>>2]);break a}if(sk(a,0,c,0)){Ym(J[e+28>>2]);break a}d=J[e+28>>2];g:{if(!(!d|b)){if(!(J[c+12>>2]|J[c+48>>2]-1>>>0>1)){J[c+12>>2]=d;if(J[a+16>>2]){if(!(!(!J[d+24>>2]&J[d+4>>2]==3)&J[a+436>>2]!=5)){J[d+20>>2]=c;J[e+28>>2]=0;J[c+68>>2]=1;break g}J[c+68>>2]=0;g=J[a+8>>2];h=J[a+52>>2];while(1){b=d;J[b+32>>2]=g;J[b+20>>2]=h;d=J[b+24>>2];if(d)continue;break}J[c+16>>2]=b;break g}J[c+ +68>>2]=1;J[d+20>>2]=c;Xm(d,J[c+32>>2]);while(1){d=J[e+28>>2];b=J[d+24>>2];if(b){J[e+28>>2]=b;J[b+20>>2]=c;Xm(b,J[c+32>>2]);continue}break}J[c+16>>2]=d;J[e+28>>2]=b;break g}Ym(d);J[e+28>>2]=0;break g}if(!(!b|(b|0)==27)){Uf(a,26,34093,J[c+8>>2]);sk(a,0,c,0);break g}if(!d)break g;Ym(d);J[e+28>>2]=0}if(J[c+72>>2])break c;J[c+72>>2]=2;break c}if((f|0)==1)break c;J[a+440>>2]=J[a+440>>2]+((f|0)/2|0)}if(!J[c+12>>2]){h:{if(!f)break h;b=J[a+4>>2];b=(a|0)!=(b|0)?b:0;i:{j:{k:switch(J[c+48>>2]-1|0){case 1:d=J[a+ +248>>2]+1|0;J[a+248>>2]=d;d=m1(J[a+8>>2],a,J[a>>2],b,d,J[c+64>>2],J[c+52>>2],0);b=a+248|0;break j;case 0:break k;default:break i}J[a+248>>2]=J[a+248>>2]+1;d=l1(a,J[c+40>>2],b,0);b=a+248|0}J[b>>2]=J[b>>2]-1;if((d|0)!=89)break h;Xe(a,89,0);break a}ku(a,1,35030,0)}b=J[a>>2];if(!b)break a;b=J[b+64>>2];if(J[a+212>>2]|(J[a+16>>2]|!b))break a;kc[b|0](J[a+4>>2],J[c+8>>2]);break a}l:{b=J[a>>2];if(!b)break l;b=J[b+64>>2];if(J[a+212>>2]|(J[a+16>>2]|!b))break l;kc[b|0](J[a+4>>2],J[c+8>>2]);break a}if(!J[a+16>> +2]|!J[a+52>>2])break a;m:{n:{o:{p:{q:{if(!J[e+28>>2]){if(!J[c+68>>2]|J[a+436>>2]==5)break q;break o}if(J[a+436>>2]!=5)break p}b=(J[c+44>>2]+J[a+468>>2]|0)+5|0;J[a+468>>2]=b;if(sk(a,0,c,b))break a;b=J[c+12>>2];if(!b)break m;while(1){d=V1(b,J[a+8>>2]);if(d){if(!J[d>>2])J[d>>2]=J[b>>2];d=dh(J[a+52>>2],d)}else d=0;if(J[c+16>>2]!=(b|0)){b=J[b+24>>2];if(!b)break m;continue}break}if(!d|J[a+436>>2]!=5|(J[d+12>>2]|J[d+4>>2]!=1))break m;I[d+58>>1]=1;break m}if(J[a+40>>2]<=0)break n}b=(J[c+44>>2]+J[a+468>>2]| +0)+5|0;J[a+468>>2]=b;if(sk(a,0,c,b))break a;g=J[c+16>>2];b=J[c+12>>2];J[c+12>>2]=0;J[c+16>>2]=0;while(1){if(b){d=J[b+24>>2];J[b+20>>2]=0;J[b+24>>2]=0;f=V1(b,J[a+8>>2]);if(f){if(!J[f>>2])J[f>>2]=J[b>>2];dh(c,f);dh(J[a+52>>2],b)}f=(b|0)!=(g|0);b=d;if(f)continue}break}if(J[c+68>>2])break m;J[c+68>>2]=1;break m}d=te(J[a+296>>2],1818,-1);b=J[c+12>>2];if(J[b+4>>2]==3)J[b+8>>2]=d;c=J[c+16>>2];if(!((c|0)==(b|0)|J[c+4>>2]!=3))J[c+8>>2]=d;g2(J[a+52>>2],b)}J[a+260>>2]=0;J[a+264>>2]=0}fc=e+32|0}function q2(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;n=-1;a:{if(b>>>0<8)break a;j=J[a+4>>2];if(!j)break a;g=J[a+8>>2];n=0;f=P(b,20);c=kc[J[663195]](f)|0;J[a+4>>2]=c;if(!c){J[a+4>>2]=j;return-1}Ac(c,0,f);J[a+8>>2]=b;b:{if(!g)break b;c:{if((g|0)==128){while(1){f=P(h,20)+j|0;d:{if(!J[f+12>>2])break d;d=J[f+8>>2];c=J[f+4>>2];l=J[a+8>>2];e:{if((l|0)!=128){b=0;if(!c|(d|0)<=0)break e;m=d&3;e=J[a+24>>2];i=0;if(d-1>>>0>=3){d=d&-4;k=0;while(1){e=P(K[b+c|0]+e|0,1025);e=P(K[c+(b|1)|0]+(e>>>6^e)|0,1025);e=P(K[c+ +(b|2)|0]+(e>>>6^e)|0,1025);e=P(K[c+(b|3)|0]+(e>>>6^e)|0,1025);e=e>>>6^e;b=b+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}if(m)while(1){d=P(K[b+c|0]+e|0,1025);e=d>>>6^d;b=b+1|0;i=i+1|0;if((m|0)!=(i|0))continue;break}b=P(e,9);b=P(b>>>11^b,32769);break e}if(!c){b=0;break e}b=K[c|0]<<5;f:{g:{h:{i:{j:{k:{l:{m:{n:{if((d|0)<=10)switch(d-2|0){case 0:break f;case 1:break g;case 2:break h;case 3:break i;case 4:break j;case 5:break k;case 6:break l;case 7:break m;case 8:break n;default:break e}b=K[(c+d|0)-1| +0]+b|0}b=K[c+9|0]+b|0}b=K[c+8|0]+b|0}b=K[c+7|0]+b|0}b=K[c+6|0]+b|0}b=K[c+5|0]+b|0}b=K[c+4|0]+b|0}b=K[c+3|0]+b|0}b=K[c+2|0]+b|0}b=K[c+1|0]+b|0}d=P((b>>>0)%(l>>>0)|0,20);c=d+J[a+4>>2]|0;if(J[c+12>>2]){c=kc[J[663195]](20)|0;if(!c){n=-1;break d}J[c+4>>2]=J[f+4>>2];f=J[f+8>>2];J[c+16>>2]=b;J[c+8>>2]=f;b=d+J[a+4>>2]|0;f=J[b>>2];J[c+12>>2]=1;J[c>>2]=f;J[b>>2]=c;break d}e=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=e;J[c+16>>2]=J[f+16>>2];e=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=e;c=d+J[a+4>>2]|0;J[c+16>>2]=b; +J[c>>2]=0}h=h+1|0;if((h|0)!=128)continue;break}break c}b=0;while(1){c=P(b,20)+j|0;o:{if(!J[c+12>>2])break o;d=J[c+16>>2];e=P((d>>>0)%M[a+8>>2]|0,20);f=e+J[a+4>>2]|0;if(!J[f+12>>2]){h=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=h;J[f+16>>2]=J[c+16>>2];h=J[c+12>>2];J[f+8>>2]=J[c+8>>2];J[f+12>>2]=h;c=e+J[a+4>>2]|0;J[c+16>>2]=d;J[c>>2]=0;break o}f=kc[J[663195]](20)|0;if(!f){n=-1;break o}J[f+4>>2]=J[c+4>>2];c=J[c+8>>2];J[f+16>>2]=d;J[f+8>>2]=c;c=e+J[a+4>>2]|0;d=J[c>>2];J[f+12>>2]=1;J[f>>2]=d;J[c>>2]=f}b=b+1|0; +if((g|0)!=(b|0))continue;break}}if(!g)break b;h=0;if((g|0)==128)while(1){c=J[P(h,20)+j>>2];if(c)while(1){g=J[c+8>>2];d=J[c+4>>2];f=J[c>>2];l=J[a+8>>2];p:{if((l|0)!=128){b=0;if(!d|(g|0)<=0)break p;m=g&3;e=J[a+24>>2];i=0;if(g-1>>>0>=3){g=g&-4;k=0;while(1){e=P(K[b+d|0]+e|0,1025);e=P(K[d+(b|1)|0]+(e>>>6^e)|0,1025);e=P(K[d+(b|2)|0]+(e>>>6^e)|0,1025);e=P(K[d+(b|3)|0]+(e>>>6^e)|0,1025);e=e>>>6^e;b=b+4|0;k=k+4|0;if((g|0)!=(k|0))continue;break}}if(m)while(1){e=P(K[b+d|0]+e|0,1025);e=e>>>6^e;b=b+1|0;i=i+1| +0;if((m|0)!=(i|0))continue;break}b=P(e,9);b=P(b>>>11^b,32769);break p}if(!d){b=0;break p}b=K[d|0]<<5;q:{r:{s:{t:{u:{v:{w:{x:{y:{if((g|0)<=10)switch(g-2|0){case 0:break q;case 1:break r;case 2:break s;case 3:break t;case 4:break u;case 5:break v;case 6:break w;case 7:break x;case 8:break y;default:break p}b=K[(d+g|0)-1|0]+b|0}b=K[d+9|0]+b|0}b=K[d+8|0]+b|0}b=K[d+7|0]+b|0}b=K[d+6|0]+b|0}b=K[d+5|0]+b|0}b=K[d+4|0]+b|0}b=K[d+3|0]+b|0}b=K[d+2|0]+b|0}b=K[d+1|0]+b|0}e=P((b>>>0)%(l>>>0)|0,20);d=e+J[a+4>>2]| +0;z:{if(J[d+12>>2]){e=J[d>>2];J[c+16>>2]=b;J[c>>2]=e;J[d>>2]=c;break z}g=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=g;J[d+16>>2]=J[c+16>>2];g=J[c+12>>2];J[d+8>>2]=J[c+8>>2];J[d+12>>2]=g;d=e+J[a+4>>2]|0;J[d+12>>2]=1;J[d+16>>2]=b;J[d>>2]=0;kc[J[663199]](c)}c=f;if(c)continue;break}h=h+1|0;if((h|0)!=128)continue;break b}while(1){b=J[P(h,20)+j>>2];if(b)while(1){c=J[b>>2];d=J[b+16>>2];e=P((d>>>0)%M[a+8>>2]|0,20);f=e+J[a+4>>2]|0;A:{if(!J[f+12>>2]){i=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=i;J[f+16>>2]=J[b+16>>2];i= +J[b+12>>2];J[f+8>>2]=J[b+8>>2];J[f+12>>2]=i;f=e+J[a+4>>2]|0;J[f+12>>2]=1;J[f+16>>2]=d;J[f>>2]=0;kc[J[663199]](b);break A}e=J[f>>2];J[b+16>>2]=d;J[b>>2]=e;J[f>>2]=b}b=c;if(c)continue;break}h=h+1|0;if((g|0)!=(h|0))continue;break}}kc[J[663199]](j)}return n}function o1a(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;d=J[a+24>>2];q=J[a+20>>2];e=J[a+16>>2];o=J[a+12>>2];k=J[a+8>>2];i=J[a+4>>2];n=J[i+8>>2];r=K[n+68|0];p=K[n+67|0];u=K[n+66|0];l=K[n+ +65|0];a:{b:{c:{s=K[n+64|0];if(s){g=-1;if(l&255)break c;c=0;break a}g=-1;if(l&255)break b;c=2;break a}c=1;break a}c=3}while(1){d:{e:{f:{g:{h:{i:{j:{k:{l:switch(c|0){case 0:l=0;if(k>>>0>=o>>>0){g=j;break d}if(e>>>0>=q>>>0){g=j;break d}f=(p<<24>>24<<2)+n|0;while(1){g=K[k|0];if(g>>>0<32){g=j;break d}k=k+1|0;m:{n:{if(g<<24>>24>=0){I[e>>1]=g;e=e+2|0;c=1;g=d;if(d)break n;d=0;break m}g=J[f>>2]+(g&127)|0;if(g>>>0<=65535){I[e>>1]=g;e=e+2|0;c=1;g=d;if(d)break n;d=0;break m}I[e>>1]=(g>>>10|0)-10304;o:{m=e+2| +0;if(q>>>0>m>>>0){I[e+2>>1]=g&1023|56320;e=e+4|0;if(d)break o;d=0;break m}f=0;if(d){J[d>>2]=j;f=d+4|0}H[i+65|0]=1;I[i+116>>1]=g&1023|56320;J[b>>2]=15;break g}J[d>>2]=j;c=2;g=d+4|0}J[g>>2]=j;d=(c<<2)+d|0}j=j+1|0;if(k>>>0>=o>>>0){g=j;break d}if(e>>>0>>0)continue;break}g=j;break d;case 1:if(k>>>0>=o>>>0)break k;p:{q:{r:{s:{t:{u:{v:{if(e>>>0>>0){t=i+37|0;w=i+38|0;c=k;while(1){j=j+1|0;k=c+1|0;v=2;m=w;f=2;h=K[c|0];c=h;w:{x:{y:switch(l&255){case 4:c=h&31;f=5;p=h>>>5|0;break x;case 6:break p;case 5:break q; +case 3:break r;case 2:break s;case 1:break x;case 0:break y;default:break w}if(1<>>0<=15){if(h>>>0>=9){f=4;v=1;m=t;c=r;B:switch(h-11|0){case 4:break i;case 0:break x;case 3:break B;default:break t}f=1;break z}u=h-1|0;f=3;break A}if(h>>>0<24)break u;p=h-24|0;f=6}v=1}m=t;c=r}H[m|0]=h;H[i+36|0]=v;l=f;r=c}c=k;if((o|0)!=(c|0))continue;break}break h}J[b>>2]=15;break k}I[e>>1]=h;e=e+2|0;if(!d){d=0;break j}J[d>>2]=g;d=d+4|0;break j}p=h-16|0;break j}J[b>>2]=12;H[i+36|0]=1;H[i+37| +0]=h;l=0;break k}I[e>>1]=r<<8|h;e=e+2|0;if(!d){d=0;break j}J[d>>2]=g;d=d+4|0;break j}c=u<<24>>24;C:{if(h<<24>>24>=0){I[e>>1]=J[(c<<2)+753488>>2]+h;e=e+2|0;f=d;c=1;if(d)break C;d=0;break j}c=J[(c<<2)+n>>2]+(h&127)|0;if(c>>>0<=65535){I[e>>1]=c;e=e+2|0;f=d;c=1;if(d)break C;d=0;break j}I[e>>1]=(c>>>10|0)-10304;D:{m=e+2|0;if(q>>>0>m>>>0){I[e+2>>1]=c&1023|56320;e=e+4|0;if(d)break D;d=0;break j}if(d){J[d>>2]=g;f=d+4|0}else f=0;H[i+65|0]=1;I[i+116>>1]=c&1023|56320;J[b>>2]=15;l=3;break g}J[d>>2]=g;f=d+4|0; +c=2}J[f>>2]=g;d=(c<<2)+d|0;break j}J[(p<<24>>24<<2)+n>>2]=((r&255)<<15|h<<7)+65536;break j}if(!h){H[i+36|0]=2;H[i+38|0]=0;l=6;break k}E:{c=(p<<24>>24<<2)+n|0;f=h<<7;F:{if(h>>>0<=103)break F;f=f+44032|0;if((h-104&255)>>>0<=63)break F;if(h>>>0<249)break E;f=J[(h<<2)+752524>>2]}J[c>>2]=f;break j}H[i+36|0]=2;H[i+38|0]=h;l=6;break k;case 2:l=0;c=k+1|0;G:{if(o>>>0<=c>>>0){g=j;break G}if(e>>>0>=q>>>0){g=j;break G}g=j;while(1){m=j;f=K[k|0];if((f+13&255)>>>0>236)break G;I[e>>1]=K[c|0]|f<<8;f=0;if(d){J[d>> +2]=g;f=d+4|0}e=e+2|0;t=k+2|0;j=m+2|0;c=k+3|0;if(o>>>0>c>>>0){k=t;g=m;d=f;if(e>>>0>>0)continue}break}d=f;g=m;k=t}c=3;continue;default:break l}s=0;H:{if(k>>>0>>0)break H;break k}I:{J:{if(e>>>0>>0){c=k;while(1){j=j+1|0;k=c+1|0;c=K[c|0];K:{L:{M:{N:switch(l&255){case 1:H[i+38|0]=c;l=2;m=2;break M;case 2:break J;case 0:break N;default:break K}f=c+32|0;if((f&255)>>>0<=18){if(c>>>0<232){s=1;p=f;break j}if(c>>>0<240)break f;if((c|0)!=240){if((c|0)!=241)break I;l=4;break e}H[i+37|0]=240;m=1;l=1;break L}H[i+ +37|0]=c;l=2;m=1}r=c}H[i+36|0]=m}c=k;if((o|0)!=(c|0))continue;break}break h}J[b>>2]=15;break k}I[e>>1]=c|r<<8;e=e+2|0;if(!d){d=0;break i}J[d>>2]=g;d=d+4|0;break i}J[b>>2]=12;H[i+36|0]=1;H[i+37|0]=c;l=0}f=d;m=e;break g}c=0;continue}c=2;continue}f=d;m=e;k=o}b=J[b>>2];O:{if((b|0)>0){j=0;if((b|0)!=15)break O}j=l;if(j&255)break O;j=0;H[i+36|0]=0}H[n+68|0]=r;H[n+67|0]=p;H[n+66|0]=u;H[n+65|0]=j;H[n+64|0]=s;J[a+24>>2]=f;J[a+16>>2]=m;J[a+8>>2]=k;return}p=c+24|0;l=6}s=1;H[i+36|0]=1;H[i+37|0]=c}c=1;continue}} +function ly(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,w=0,x=0;l=fc-16|0;fc=l;J[l+12>>2]=0;J[a+1404>>2]=0;J[a+1392>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;e=J[a>>2];i=J[a+16>>2];m=J[a+8>>2];k=J[a+12>>2];t=J[a+4>>2];d=I[b>>1];a:{b:{c:{if(d>>>0<=8){if(J[a+40>>2])break b;J[a+40>>2]=a+2760;c=8;break c}c=J[a+32>>2];if(c>>>0>=d>>>0)break b;h=c;c=d+3&-4;d=J[a+40>>2];if((d|0)==(a+2760|0)){J[a+40>>2]=0;d=0}w=a,x=_c(e,4,h,c,d,l+12|0),J[w+40>>2]= +x;if(J[l+12>>2])break a}J[a+32>>2]=c}c=I[b+2>>1];d=c+2|0;d:{if(d>>>0<=96){if(J[a+28>>2])break d;J[a+20>>2]=96;J[a+28>>2]=a+2792;break d}f=d;d=J[a+20>>2];if(f>>>0<=d>>>0)break d;h=c+11&-8;c=J[a+28>>2];if((c|0)==(a+2792|0)){J[a+28>>2]=0;c=0}w=a,x=_c(e,40,d,h,c,l+12|0),J[w+28>>2]=x;if(J[l+12>>2])break a;J[a+20>>2]=h;c=I[b+2>>1]}J[a+24>>2]=c;c=I[b>>1];J[a+1416>>2]=-1;J[a+68>>2]=2;J[a+36>>2]=c;if((U7(b)|0)==1){J[a+1416>>2]=1;J[a+68>>2]=-2}J[a+12>>2]=k;J[a+4>>2]=t;J[a+2752>>2]=0;J[a+2756>>2]=0;J[a+16>> +2]=i;J[a+8>>2]=m;p=J[a+24>>2];if(!p)break a;h=J[a+28>>2];r=h+P(p,40)|0;s=P(L[J[J[a+2748>>2]+4>>2]+68>>1],20)>>>11|0;e=J[b+12>>2];if((p|0)>0){d=J[b+4>>2];n=J[b+8>>2];c=h;g=I[e>>1];f=c+P(g,40)|0;e=f;while(1){I[c+2>>1]=1028;j=J[d>>2];I[c+12>>1]=j;I[c+14>>1]=J[d+4>>2];j=Wc(j,t)+m|0;J[c+4>>2]=j;J[c+16>>2]=j;j=Wc(J[d+4>>2],k)+i|0;J[c+8>>2]=j;J[c+20>>2]=j;j=J[b+4>>2]+(g<<16>>16<<3)|0;I[f+12>>1]=J[j>>2];I[f+14>>1]=J[j+4>>2];j=K[n|0]&3;I[c>>1]=j?((j|0)==2)<<1:1;u=I[c+14>>1]-I[e+14>>1]|0;j=u>>31;v=I[c+12>> +1]-I[e+12>>1]|0;q=v>>31;if((j^u)-j+((q^v)-q)>>>0>>0)I[e>>1]=L[e>>1]|32;J[c+36>>2]=e;J[e+32>>2]=c;e:{if((c|0)!=(f|0)){e=c;break e}o=o+1|0;if((o|0)>=I[b>>1]){e=c;f=c;break e}g=I[J[b+12>>2]+(o<<1)>>1];e=P(g,40)+h|0;f=e}n=n+1|0;d=d+8|0;c=c+40|0;if(r>>>0>c>>>0)continue;break}e=J[b+12>>2]}b=J[a+36>>2];f:{if((b|0)<=0)break f;c=J[a+40>>2];f=c+(b<<2)|0;d=0;while(1){J[c>>2]=P(d<<16>>16,40)+h;d=L[e>>1]+1|0;e=e+2|0;c=c+4|0;if(f>>>0>c>>>0)continue;break}if((b|0)<=0)break f;m=J[a+40>>2];j=m+(b<<2)|0;q=(s<<1)- +1|0;while(1){d=J[m>>2];c=d;while(1){g:{f=c;n=I[c+12>>1];c=J[c+36>>2];if((d|0)==(c|0)){b=L[f+14>>1];break g}b=I[f+14>>1];g=b-I[c+14>>1]|0;a=g>>31;i=n-I[c+12>>1]|0;e=i>>31;if((q|0)>((a^g)-a+((e^i)-e)|0))continue}break}J[f+24>>2]=0;J[f+28>>2]=0;c=0;d=f;a=d;e=0;while(1){i=n<<16>>16;g=b<<16>>16;d=J[d+32>>2];b=I[d+14>>1];e=(b-g|0)+e|0;g=e>>31;n=I[d+12>>1];c=(n-i|0)+c|0;i=c>>31;g=(e^g)-g|0;i=(c^i)-i|0;h:{if(g+i>>>0>>0){I[d>>1]=L[d>>1]|16;break h}k=(d-a|0)/40|0;J[a+24>>2]=k;J[d+28>>2]=0-k;k=0-c|0;i:{if((c| +0)<=(e|0)){i=(e|0)<(k|0);g=i?e:c;c=g>>31;g=(c^g)-c|0;c=i?k:e;o=i?-1:2;break i}o=1;if((e|0)>=(k|0))break i;c=0-e|0;g=i;o=254}e=(P(g,14)|0)>=(c|0)?4:o;H[a+3|0]=e;c=J[a+32>>2];if((d|0)!=(c|0))while(1){H[c+3|0]=e;H[c+2|0]=e;c=J[c+32>>2];if((d|0)!=(c|0))continue;break}H[d+2|0]=e;a=(f-d|0)/40|0;J[d+24>>2]=a;c=0;J[f+28>>2]=0-a;a=d;e=0}if((d|0)!=(f|0))continue;break}m=m+4|0;if(j>>>0>m>>>0)continue;break}}if((p|0)<=0)break a;c=h;while(1){e=L[c>>1];j:{if(e&16|K[c+2|0]!=4|K[c+3|0]!=4)break j;d=J[c+24>>2];a= +P(d,40)+c|0;b=I[c+12>>1];i=I[a+12>>1]-b|0;g=b;f=J[c+28>>2];b=P(f,40)+c|0;if((i^g-I[b+12>>1])<0)break j;g=I[c+14>>1];if((g-I[b+14>>1]^I[a+14>>1]-g)<0)break j;I[c>>1]=e|16;e=b;b=(P(d-f|0,40)|0)/40|0;J[e+24>>2]=b;J[a+28>>2]=0-b}c=c+40|0;if(r>>>0>c>>>0)continue;break}if((p|0)<=0)break a;while(1){c=L[h>>1];k:{if(c&16)break k;l:{if(c&3)break l;a=K[h+3|0];b=K[h+2|0];if((a|0)==(b|0)){if((a|0)!=4)break l;c=I[h+12>>1];e=J[h+28>>2];a=P(e,40)+h|0;d=I[h+14>>1];f=J[h+24>>2];b=P(f,40)+h|0;if(!l8(c-I[a+12>>1]|0, +d-I[a+14>>1]|0,I[b+12>>1]-c|0,I[b+14>>1]-d|0))break k;c=a;a=(P(f-e|0,40)|0)/40|0;J[c+24>>2]=a;J[b+28>>2]=0-a;c=L[h>>1];break l}if(b<<24>>24!=(0-(a<<24>>24)|0))break k}I[h>>1]=c|16}h=h+40|0;if(r>>>0>h>>>0)continue;break}}fc=l+16|0;return J[l+12>>2]}function O3(a,b,c,d,e,f,g,h,i,j,k,l){var 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,G=0,H=0,I=0;z=O[a+8>>3]*k;a:{b:{q=O[d>>3];r=q+f;A=O[c>>3];n=A+f;v=r-n;o=O[e+8>>3];s=O[d+8>>3];x=s-i;B=o-i-x;w=O[e>>3];y=q+h;C=w+h-y; +t=s-g;D=O[c+8>>3];p=D-g;E=t-p;F=v*B-C*E;G=R(F);if(!(G<1E-30)){o=((p-x)*C-B*(n-y))/F;n=o*v+n;w=n-q;p=o*E+p;o=p-s;v=Y(w*w+o*o);if(!(z>=v))break b;e=J[b+4>>2];c=J[b>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];c:{if(a>>>0>d>>>0){a=J[b+12>>2];break c}j=a+J[b+16>>2]|0;a=vc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){xc(a,m,e<<2);uc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=vc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]= +p;O[a>>3]=n;break a}v=1;p=s;n=q;if((!((r-q)*(s-D)-(q-A)*(t-s)<0)|0)==((r-w)*(o-s)-(w-q)*(t-o)<0|0))break b;e=J[b+4>>2];c=J[b>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];d:{if(a>>>0>d>>>0){a=J[b+12>>2];break d}j=a+J[b+16>>2]|0;a=vc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){xc(a,m,e<<2);uc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=vc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=t;O[a>>3]=r;break a}e:switch(j-1|0){case 0:a= +J[b+4>>2];e=J[b>>2];m=e>>>6|0;if(a>>>0<=m>>>0){c=J[b+8>>2];f:{if(c>>>0>m>>>0){j=J[b+12>>2];break f}c=c+J[b+16>>2]|0;j=vc(c>>>0>1073741823?-1:c<<2);u=J[b+12>>2];if(u){xc(j,u,a<<2);uc(u);c=J[b+8>>2]+J[b+16>>2]|0;e=J[b>>2];a=J[b+4>>2]}J[b+8>>2]=c;J[b+12>>2]=j}H=(m<<2)+j|0,I=vc(1024),J[H>>2]=I;J[b+4>>2]=a+1}a=J[J[b+12>>2]+(m<<2)>>2]+((e&63)<<4)|0;O[a+8>>3]=t;O[a>>3]=r;c=J[b>>2]+1|0;J[b>>2]=c;f=O[d+8>>3]-i;g=O[d>>3]+h;e=J[b+4>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];g:{if(a>>>0>d>>>0){a=J[b+12>>2];break g}j= +a+J[b+16>>2]|0;a=vc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){xc(a,m,e<<2);uc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=vc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=f;O[a>>3]=g;break a;case 3:WL(a,b,q,s,f,-g,h,-i);return;default:break e}if(G<1E-30){l=f;f=+J[a+24>>2]*k;k=l*f+t;a=J[b+4>>2];e=J[b>>2];m=e>>>6|0;if(a>>>0<=m>>>0){c=J[b+8>>2];h:{if(c>>>0>m>>>0){j=J[b+12>>2];break h}c=c+J[b+16>>2]|0;j=vc(c>>>0>1073741823? +-1:c<<2);u=J[b+12>>2];if(u){xc(j,u,a<<2);uc(u);c=J[b+8>>2]+J[b+16>>2]|0;e=J[b>>2];a=J[b+4>>2]}J[b+8>>2]=c;J[b+12>>2]=j}H=(m<<2)+j|0,I=vc(1024),J[H>>2]=I;J[b+4>>2]=a+1}a=J[J[b+12>>2]+(m<<2)>>2]+((e&63)<<4)|0;O[a+8>>3]=k;O[a>>3]=g*f+r;c=J[b>>2]+1|0;J[b>>2]=c;g=O[d+8>>3]-i-h*f;f=O[d>>3]+h-i*f;e=J[b+4>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];i:{if(a>>>0>d>>>0){a=J[b+12>>2];break i}j=a+J[b+16>>2]|0;a=vc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){xc(a,m,e<<2);uc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>> +2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=vc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=g;O[a>>3]=f;break a}f=(z-l)/(v-l);g=(p-t)*f+t;e=J[b+4>>2];c=J[b>>2];d=c>>>6|0;if(e>>>0<=d>>>0){a=J[b+8>>2];j:{if(a>>>0>d>>>0){a=J[b+12>>2];break j}j=a+J[b+16>>2]|0;a=vc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){xc(a,m,e<<2);uc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];c=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(d<<2)+a|0,I=vc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>> +2]+(d<<2)>>2]+((c&63)<<4)|0;O[a+8>>3]=g;O[a>>3]=(n-r)*f+r;d=J[b>>2]+1|0;J[b>>2]=d;e=J[b+4>>2];c=d>>>6|0;if(e>>>0<=c>>>0){a=J[b+8>>2];k:{if(a>>>0>c>>>0){a=J[b+12>>2];break k}j=a+J[b+16>>2]|0;a=vc(j>>>0>1073741823?-1:j<<2);m=J[b+12>>2];if(m){xc(a,m,e<<2);uc(m);j=J[b+8>>2]+J[b+16>>2]|0;e=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=j;J[b+12>>2]=a}H=(c<<2)+a|0,I=vc(1024),J[H>>2]=I;J[b+4>>2]=e+1}a=J[J[b+12>>2]+(c<<2)>>2]+((d&63)<<4)|0;O[a+8>>3]=(p-x)*f+x;O[a>>3]=(n-y)*f+y;J[b>>2]=J[b>>2]+1;return}J[b>>2]=J[b>>2]+1}function jKa(a, +b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=fc-80|0;fc=g;i=bj(J[a+28>>2],e+1|0);if(i){J[g+64>>2]=13;a:{if(J[jf(i+16|0,J[i+4>>2],g- -64|0,0)>>2]!=6)break a;k=J[J[g+72>>2]+12>>2];if((k|0)<=0)break a;i=0;while(1){J[g+48>>2]=13;b:{f=g+48|0;if(J[Sc(J[g+72>>2],i,f,0)>>2]!=7){yc(f);break b}J[g+32>>2]=13;J[g+24>>2]=0;J[699344]=0;J[g+16>>2]=0;J[g+20>>2]=0;f=ha(3368,J[g+56>>2],851676,g+32|0,0)|0;h=J[699344];J[699344]=0;c:{d:{if((h|0)==1)break d;if(J[f>>2]==4){J[699344]=0;aa(2974,g+ +16|0,J[g+40>>2])|0;f=J[699344];J[699344]=0;if((f|0)==1)break d}J[699344]=0;$(3370,g+32|0);f=J[699344];J[699344]=0;if((f|0)==1)break d;J[699344]=0;$(3370,g+48|0);f=J[699344];J[699344]=0;if((f|0)==1)break d;J[g>>2]=13;J[699344]=0;ga(3463,J[g+72>>2],i|0,g|0)|0;f=J[699344];J[699344]=0;e:{if((f|0)==1)break e;h=K[g+27|0];f=h<<24>>24<0;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:switch((f?J[g+20>>2]:h)-4|0){case 0:f=f?J[g+16>>2]:g+16|0;if((K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24))==1954047316){J[699344]=0;h=_(4, +232)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;f=ha(3731,h|0,a|0,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1)break f;i=Z()|0;uc(h);break c}if((K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24))!=1802398028)break o;f=0;break f;case 5:break j;case 3:break m;case 2:break n;case 4:break p;default:break i}f=f?J[g+16>>2]:g+16|0;if((K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24))!=1701147206|(K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24))!=1954047316)break l;J[699344]=0;h=_(4,304)|0;f= +J[699344];J[699344]=0;q:{if((f|0)!=1){J[699344]=0;f=ha(3732,h|0,a|0,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break q;J[699344]=0;ma(3733,f|0,a|0,g|0,b|0,c|0);h=J[699344];J[699344]=0;if((h|0)!=1)break f}i=Z()|0;break c}i=Z()|0;uc(h);break c}if((K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24))!=1701734732)break i;J[699344]=0;h=_(4,328)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;f=ha(3734,h|0,a|0,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1)break f;i=Z()|0;uc(h);break c}f=f?J[g+ +16>>2]:g+16|0;if(dd(f,2182094,6))if(dd(f,2182188,6))break i;J[699344]=0;h=_(4,280)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;f=ha(3735,h|0,a|0,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1)break f;i=Z()|0;uc(h);break c}if(!dd(f?J[g+16>>2]:g+16|0,2182300,7))break k;break i}if((K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24))!=2037149520|(K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24))!=1701734732)break i}J[699344]=0;h=_(4,256)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]= +0;f=ha(3736,h|0,a|0,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1)break f;i=Z()|0;uc(h);break c}if(!dd(f?J[g+16>>2]:g+16|0,2182453,9))break h}f=g+16|0;if(Dl(f,2182568))break h;if(Dl(f,2182641))break h;if(!Dl(f,2182752))break g}J[699344]=0;h=_(4,248)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;f=ha(3737,h|0,a|0,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1)break f;i=Z()|0;uc(h);break c}f=0;h=g+16|0;if(Dl(h,2182881))break f;if(Dl(h,2182946)){J[699344]=0;h=_(4,264)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break e;J[699344]=0;f=ha(3738,h|0,a|0,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1)break f;i=Z()|0;uc(h);break c}if(!Dl(g+16|0,2183022))break f;J[699344]=0;h=_(4,240)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;f=ha(3739,h|0,a|0,g|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1)break f;i=Z()|0;uc(h);break c}J[699344]=0;$(3370,g|0);h=J[699344];J[699344]=0;if((h|0)==1)break e;if(f){h=J[J[f>>2]+8>>2];J[699344]=0;da(h|0,f|0,d|0);h=J[699344];J[699344]=0;if((h|0)==1)break e;kc[J[J[f>> +2]+4>>2]](f)}if(H[g+27|0]>=0)break b;uc(J[g+16>>2]);break b}i=Z()|0;break c}i=Z()|0}if(H[g+27|0]<0)uc(J[g+16>>2]);ba(i|0);B()}i=i+1|0;if((k|0)!=(i|0))continue;break}}yc(g- -64|0)}fc=g+80|0}function cZa(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=+n;o=+o;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0;e=fc-96|0;fc=e;a:{b:{if(K[a+229|0])break b;if(!((l-j|0)!=1|(m-k|0)!=1)){Jw(c,d,g,h,i,0,0,0,0,0,0,0);break b}if(R(O[i+ +16>>3]-O[i>>3]-n)>.001|R(O[i+24>>3]-O[i+8>>3]-o)>.001)break b;f=J[a+104>>2];kc[J[J[f>>2]+32>>2]](f,e+88|0)|0;f=J[a+104>>2];kc[J[J[f>>2]+24>>2]](f,e+80|0)|0;f=J[a+104>>2];kc[J[J[f>>2]+40>>2]](f,e+72|0)|0;f=J[a+104>>2];kc[J[J[f>>2]+44>>2]](f,e- -64|0)|0;r=O[e+88>>3]*O[e+72>>3]/25.4*(n/O[b+96>>3]);O[e+88>>3]=r;s=O[e+80>>3]*O[e+64>>3]/25.4*(o/O[b+104>>3]);O[e+80>>3]=s;r=Lp(r);c:{if(R(r)<2147483648){f=~~r;break c}f=-2147483648}J[e+60>>2]=f;r=Lp(s);d:{if(R(r)<2147483648){p=~~r;break d}p=-2147483648}J[e+ +56>>2]=p;f=P(f,p)<<2;y=Ac(vc(f),0,f);f=vc(48);J[699344]=0;J[f>>2]=0;J[f+4>>2]=0;H[f+40|0]=0;J[f+32>>2]=0;J[f+36>>2]=-1074790400;H[f+21|0]=0;H[f+22|0]=0;H[f+23|0]=0;H[f+24|0]=0;H[f+25|0]=0;H[f+26|0]=0;H[f+27|0]=0;H[f+28|0]=0;J[f+16>>2]=0;J[f+20>>2]=0;p=f;J[f+8>>2]=0;J[f+12>>2]=0;q=J[699344];J[699344]=0;e:{f:{if((q|0)!=1){J[f+16>>2]=y;J[f+4>>2]=J[e+60>>2];J[f+8>>2]=J[e+56>>2];J[e+24>>2]=0-(J[e+60>>2]<<2);u=e+24|0;J[f+12>>2]=J[u>>2];q=FD();kc[J[J[q>>2]+468>>2]](q,J[a+160>>2]);kc[J[J[q>>2]+504>>2]](q, +f);O[e+24>>3]=O[e+88>>3]*25.4/72;kc[J[J[q>>2]+36>>2]](q,u)|0;O[e+24>>3]=O[e+80>>3]*25.4/72;kc[J[J[q>>2]+28>>2]](q,u)|0;J[e+24>>2]=1;kc[J[J[q>>2]+416>>2]](q,837264,u)|0;kc[J[J[q>>2]+488>>2]](q,0);O[e+24>>3]=O[i>>3];O[e+32>>3]=O[i+8>>3];O[e+40>>3]=O[i+16>>3];O[e+48>>3]=O[i+24>>3];f=vc(232);t=J[a+168>>2];x=J[a+160>>2];J[699344]=0;t=ha(3394,f|0,q|0,x|0,t|0)|0;x=J[699344];J[699344]=0;if((x|0)==1)break a;c=J[c>>2];J[t+164>>2]=J[c+24>>2];f=vc(128);J[699344]=0;c=Sa(3395,f|0,c|0,t|0,-1,g|0,+O[e+72>>3],+O[e+ +64>>3],u|0,0,0,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;TB(c,d);J[p>>2]=0;J[p+4>>2]=0;H[p+40|0]=0;J[p+32>>2]=0;J[p+36>>2]=-1074790400;H[p+21|0]=0;H[p+22|0]=0;H[p+23|0]=0;H[p+24|0]=0;H[p+25|0]=0;H[p+26|0]=0;H[p+27|0]=0;H[p+28|0]=0;J[p+16>>2]=0;J[p+20>>2]=0;J[p+8>>2]=0;J[p+12>>2]=0;uc(Kw(c));kc[J[J[q>>2]+4>>2]](q);kc[J[J[t>>2]+4>>2]](t);uc(Yg(p));f=vc(32);J[699344]=0;J[f+12>>2]=0;J[f+16>>2]=0;J[f+4>>2]=1;J[f+8>>2]=8;J[f>>2]=351116;J[f+20>>2]=0;J[f+24>>2]=0;H[f+28|0]=0;c=J[699344];J[699344]= +0;if((c|0)==1)break a;c=J[e+60>>2];J[e+20>>2]=c;J[e+16>>2]=J[e+56>>2];J[e+12>>2]=c<<2;p=e+20|0;yi(f,y,p,e+16|0,e+12|0,0);v=O[h+32>>3];z=O[h>>3];A=O[h+16>>3];C=O[h+40>>3];D=O[i>>3];s=+(j|0)*n+D;E=O[h+8>>3];F=O[i+8>>3];w=+(k|0)*o+F;G=O[h+24>>3];r=C+(s*E+w*G);O[b+608>>3]=r;s=v+(s*z+w*A);O[b+600>>3]=s;c=J[b+596>>2];O[c+16>>3]=r;O[c+8>>3]=s;J[c>>2]=1;O[b+608>>3]=r;w=v;v=D+ +(l|0)*n;o=F+ +(m|0)*o;n=w+(z*v+A*o);O[b+600>>3]=n;re(J[b+596>>2],n,r);o=C+(v*E+o*G);O[b+608>>3]=o;O[b+600>>3]=n;re(J[b+596>>2],n, +o);O[b+608>>3]=o;O[b+600>>3]=s;re(J[b+596>>2],s,o);gg(J[b+596>>2]);c=J[b+596>>2];d=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];g=J[d+12>>2]<<3;O[b+600>>3]=O[(g+J[d>>2]|0)-8>>3];O[b+608>>3]=O[(g+J[d+4>>2]|0)-8>>3];rk(a,c,O[b+104>>3],b+16|0,0);c=J[a+104>>2];kc[J[J[c>>2]+132>>2]](c,p)|0;n=O[b+392>>3];c=J[a+104>>2];kc[J[J[c>>2]+136>>2]](c,837276)|0;c=J[a+104>>2];kc[J[J[c>>2]+184>>2]](c,f)|0;c=J[a+104>>2];kc[J[J[c>>2]+192>>2]](c,837280)|0;n=n*255;if(!(R(n)<2147483648))break f;c=~~n;break e}break a}c=-2147483648}d= +J[a+104>>2];J[e+16>>2]=c;c=e+16|0;kc[J[J[d>>2]+200>>2]](d,c)|0;d=J[a+104>>2];J[e+16>>2]=3;kc[J[J[d>>2]+308>>2]](d,c)|0;d=J[a+104>>2];kc[J[J[d>>2]+348>>2]](d,837256)|0;d=J[a+104>>2];kc[J[J[d>>2]+344>>2]](d)|0;d=J[a+104>>2];J[e+16>>2]=3;kc[J[J[d>>2]+312>>2]](d,c)|0;c=J[a+104>>2];kc[J[J[c>>2]+136>>2]](c,e+20|0)|0;a=J[a+104>>2];kc[J[J[a>>2]+184>>2]](a,0)|0;_f(b);kc[J[J[f>>2]+12>>2]](f)|0}fc=e+96|0;return}a=Z()|0;uc(f);ba(a|0);B()}function F_a(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;h=fc-16|0;fc=h;a:{if(!a|!(c|d)|(!(J[a+104>>2]|J[a+276>>2])|!J[a+12>>2]))break a;if(!J[a+8>>2])break a;f=J[a>>2];if(!f)break a;f=J[f+16>>2];if(!f)break a;f=kc[f|0](J[a+4>>2],c,d)|0;if(!f)break a;FC(J[a+8>>2],b,c,d);o=J[a+24>>2];b=0;J[a+24>>2]=0;i=J[a+256>>2];j=J[a+48>>2];k=J[a+44>>2];l=J[a+40>>2];m=J[a+36>>2];e=kc[J[663195]](20)|0;J[a+48>>2]=e;b:{if(!e){J[a+84>>2]=2;c=J[a>>2];if(!(!c|J[c+108>>2]!=-554844497))b=J[c+124>>2];c=J[a+112>>2];d=J[a+108>>2];J[h+4>>2]=0;J[h>> +2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0,3256,h);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;J[a+256>>2]=i;J[a+48>>2]=j;J[a+44>>2]=k;J[a+40>>2]=l;J[a+36>>2]=m;break b}J[a+44>>2]=5;J[a+36>>2]=0;J[a+40>>2]=0;mu(a,f);b=J[a+36>>2];if(J[b+24>>2]>=4)Sr(a,Vr(J[b+16>>2],4));if(!J[f+4>>2])q=f,r=ox(d),J[q+4>>2]=r;J[f+28>>2]=1;J[f+32>>2]=1;b=J[J[a+36>>2]+16>>2];J[f+40>>2]=0;J[f+16>>2]=b;J[f+12>>2]=b;g=fc-48|0;fc=g;ax(a);c:{if(J[a+292>>2])break c;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break c;Rd(a)}d:{if(J[a+ +24>>2])break d;f=J[a+36>>2];b=J[f+16>>2];if((J[f+20>>2]-b|0)<4)break d;H[g+44|0]=K[b|0];H[g+45|0]=K[b+1|0];H[g+46|0]=K[b+2|0];H[g+47|0]=K[b+3|0];b=Vr(g+44|0,4);if(!b)break d;Sr(a,b)}e:{f:{b=J[J[a+36>>2]+16>>2];if(K[b|0]!=60|K[b+1|0]!=63|(K[b+2|0]!=120|K[b+3|0]!=109))break f;if(K[b+4|0]!=108)break f;bx(a);if(J[a+84>>2]!=32)break f;iq(a);break e}e=J[a+8>>2];if(!e){e=oq(28571);J[a+8>>2]=e;if(!e){se(a,17102);break e}J[e+92>>2]=64}if(!J[e+44>>2])h2(e,0,c,d);J[a+96>>2]=1;J[a+172>>2]=3;d=J[a+36>>2];g:{while(1){h:{i:{c= +J[d+16>>2];e=K[c|0];switch(e-9|0){case 0:case 1:case 4:case 23:case 28:break h;case 51:break i;default:break g}}b=K[c+1|0];if((b|0)==63)break h;if((b|0)!=33)break g}p=J[d+36>>2];j:{if(J[a+292>>2]){b=c;break j}b=c;if((J[d+20>>2]-b|0)>249)break j;Rd(a);b=J[J[a+36>>2]+16>>2];e=K[b|0]}k:{l:{m:{d=e&255;n:{if((d|0)==32)break n;if((d|0)==60){if(K[b+1|0]!=33|K[b+2|0]!=91)break l;yK(a);break k}if((e-9&255)>>>0<2)break n;if((d|0)==37)break m;if((d|0)!=13)break l}Zd(a);break k}jC(a);break k}zK(a)}d=J[a+36>> +2];b=J[d+16>>2];o:{if(K[b|0])break o;e=J[a+40>>2];if((e|0)<=1)break o;while(1){p:{q:{r:{if(!J[693384]){b=e-1|0;J[a+40>>2]=b;d=J[a+48>>2];break r}J[g+32>>2]=e;d=0;kc[J[663297]](J[693366],36125,g+32|0);e=J[a+40>>2];if((e|0)<=0)break p;b=e-1|0;J[a+40>>2]=b;d=J[a+48>>2];n=0;f=0;if((e|0)==1)break q}n=J[((e<<2)+d|0)-8>>2];f=b}J[a+36>>2]=n;b=(f<<2)+d|0;d=J[b>>2];J[b>>2]=0}th(d);b=J[a+36>>2];s:{if(K[J[b+16>>2]])break s;if((Nd(b)|0)>0)break s;e=J[a+40>>2];if((e|0)>=2)continue}d=J[a+36>>2];b=J[d+16>>2];if(K[b| +0])break o;e=J[a+40>>2];if((e|0)>1)continue;break}}if((b|0)!=(c|0)|J[d+36>>2]!=(p|0))continue;break}if(J[a+172>>2]==-1?J[a+212>>2]:0)break g;J[a+84>>2]=60;J[g+16>>2]=3041;Hc(0,0,0,a,0,1,60,3,0,0,0,0,32906,g+16|0);J[a+12>>2]=0;if(J[a+288>>2])break g;J[a+212>>2]=1}if(!K[J[J[a+36>>2]+16>>2]]|(J[a+172>>2]==-1?J[a+212>>2]:0))break e;J[a+84>>2]=60;J[g>>2]=3041;Hc(0,0,0,a,0,1,60,3,0,0,0,0,32906,g);J[a+12>>2]=0;if(J[a+288>>2])break e;J[a+212>>2]=1}fc=g+48|0;if(J[a+40>>2]>=2)while(1){He(a);if(J[a+40>>2]>1)continue; +break}b=J[a+36>>2];if(b){c=J[b+4>>2];if(c)kc[J[663199]](c);c=J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+44>>2];if(c)kc[J[663199]](c);c=J[b+48>>2];if(c)kc[J[663199]](c);c=J[b+40>>2];t:{if(!c)break t;d=J[b+12>>2];if(!d)break t;kc[c|0](d)}c=J[b>>2];if(c)Vn(c);kc[J[663199]](b)}kc[J[663199]](J[a+48>>2]);J[a+256>>2]=i;J[a+48>>2]=j;J[a+44>>2]=k;J[a+40>>2]=l;J[a+36>>2]=m;c=J[a+24>>2];if(!c)break b;b=J[a+296>>2];if(b)while(1){d=J[b+16>>2];if(d)while(1){if(c>>>0<=M[d+4>>2]&c>>>0>=d+20>>>0)break b;d=J[d>>2];if(d)continue; +break}b=J[b+20>>2];if(b)continue;break}kc[J[663199]](c)}J[a+24>>2]=o}fc=h+16|0}function z$(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;e=fc-48|0;fc=e;J[e+32>>2]=13;J[e+16>>2]=13;a:{while(1){if(J[a+40>>2]==7){f=e+16|0;if(J[Ec(J[a+48>>2],b,f,0)>>2]!=5){m=e+32|0;Ke(J[a+48>>2],b,m);g=fc-16|0;fc=g;J[g>>2]=13;b:{c:{d:switch(J[f>>2]-7|0){case 0:a=J[f+8>>2];break c;case 1:break d;default:break b}a=J[f+8>>2];a=kc[J[J[a>>2]+76>>2]](a)|0}Ec(a,813258,g,0);e:{if(J[g>>2]!= +1)break e;f:switch(J[g+8>>2]-1|0){case 0:c=fc-48|0;fc=c;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;g:{h:{if(J[f>>2]==8){h=1;a=J[f+8>>2];d=kc[J[J[a>>2]+76>>2]](a)|0;i:{if(J[Ec(d,813563,c+16|0,0)>>2]==1){h=J[c+24>>2];break i}Cc(0,-1,813816,0)}a=c+16|0;yc(a);b=1;j:{if(J[Ec(d,814142,a,0)>>2]==1){b=J[c+24>>2];break j}Cc(0,-1,814337,0)}a=c+16|0;yc(a);k:{l:{if(J[Ec(d,814644,a,0)>>2]!=6)break l;a=J[c+24>>2];if(J[a+12>>2]!=4)break l;if(J[Sc(a,0,c,0)>>2]-3>>>0>=4294967294)n=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c); +if(J[Sc(J[c+24>>2],1,c,0)>>2]-3>>>0>=4294967294)o=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);i=1;j=1;if(J[Sc(J[c+24>>2],2,c,0)>>2]-3>>>0>=4294967294)j=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],3,c,0)>>2]-3>>>0>=4294967294)i=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);break k}Cc(1,-1,815222,0);i=1;j=1}a=c+16|0;yc(a);m:{if(J[Ec(d,815491,a,0)>>2]-3>>>0>=4294967294){p=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];break m}Cc(1,-1,815934,0);p=1}a=c+16|0;yc(a);n:{if(J[Ec(d,816112,a,0)>>2]-3>>>0>=4294967294){q= +J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];break n}Cc(1,-1,816467,0);q=1}yc(c+16|0);a=c+32|0;if(J[Ec(d,817053,a,0)>>2]!=7){yc(a);J[c+32>>2]=5;Cc(1,-1,817365,0)}r=1;o:{if(J[Ec(d,798400,c+16|0,0)>>2]!=6){k=1;break o}k=1;a=J[c+24>>2];if(J[a+12>>2]!=6)break o;if(J[Sc(a,0,c,0)>>2]-3>>>0>=4294967294)k=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],1,c,0)>>2]-3>>>0>=4294967294)l=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],2,c,0)>>2]-3>>>0>=4294967294)s=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c); +if(J[Sc(J[c+24>>2],3,c,0)>>2]-3>>>0>=4294967294)r=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],4,c,0)>>2]-3>>>0>=4294967294)t=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],5,c,0)>>2]-3>>>0>=4294967294)u=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c)}yc(c+16|0);d=vc(144);J[d+128>>2]=13;J[d+64>>2]=13;J[d>>2]=2218196;J[d+4>>2]=1;O[d+56>>3]=q;O[d+48>>3]=p;O[d+16>>3]=n;J[d+12>>2]=b;J[d+8>>2]=h;O[d+40>>3]=i;O[d+32>>3]=j;O[d+24>>3]=o;J[699344]=0;b=c+32|0;aa(3448,b|0,d- -64|0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break h;O[d+80>>3]=k;O[d+120>>3]=u;O[d+112>>3]=t;O[d+104>>3]=r;O[d+96>>3]=s;O[d+88>>3]=l;J[699344]=0;aa(3448,m|0,d+128|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;yc(b)}fc=c+48|0;break g}a=Z()|0;uc(d);ba(a|0);B()}break e;case 1:break f;default:break e}c=fc-32|0;fc=c;J[c+16>>2]=13;J[c>>2]=13;p:{if(J[f>>2]!=7)break p;a=J[f+8>>2];h=c+16|0;Ec(a,817973,h,0);b=i$(h);yc(h);if(!b)break p;l=1;q:{if(J[Ec(a,798400,h,0)>>2]!=6){i=1;break q}i=1;a=J[c+24>>2];if(J[a+12>>2]!=6)break q; +if(J[Sc(a,0,c,0)>>2]-3>>>0>=4294967294)i=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],1,c,0)>>2]-3>>>0>=4294967294)n=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],2,c,0)>>2]-3>>>0>=4294967294)k=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],3,c,0)>>2]-3>>>0>=4294967294)l=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],4,c,0)>>2]-3>>>0>=4294967294)j=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(J[c+24>>2],5,c,0)>>2]-3>>>0>=4294967294)o=J[c>>2]==1?+J[c+8>>2]: +O[c+8>>3];yc(c)}yc(c+16|0);d=vc(64);O[d+16>>3]=i;J[d+8>>2]=b;J[d>>2]=2218216;J[d+4>>2]=2;O[d+56>>3]=o;O[d+48>>3]=j;O[d+40>>3]=l;O[d+32>>3]=k;O[d+24>>3]=n}fc=c+32|0}yc(g)}fc=g+16|0;yc(m);yc(f);break a}yc(e+16|0)}a=J[a+104>>2];if(a)continue;break}J[e>>2]=b;Cc(1,-1,790300,e)}fc=e+48|0;return d}function ePa(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;c=fc-128|0;fc=c;J[c+112>>2]=13;J[c+96>>2]=13;J[c+80>>2]=13;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[a>>2]=J[b+24>> +2];h=vc(16);J[699344]=0;e=_(3352,h|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((d|0)!=1){J[a+8>>2]=0;J[a+4>>2]=e;i=J[b+28>>2];if(J[i+136>>2]!=7)break c;if(J[Ec(J[i+144>>2],776342,c+112|0,0)>>2]!=6)break d;f=J[c+120>>2];if(J[f+12>>2]>0){b=0;while(1){e=c- -64|0;if(J[tg(f,b,e)>>2]==9){d=J[c+76>>2];J[c+8>>2]=J[c+72>>2];J[c+12>>2]=d;jf(e,J[a>>2],c+48|0,0);f=0;g=fc-48|0;fc=g;J[g+32>>2]=13;J[g+16>>2]=13;J[g>>2]=13;g:{if(J[c+48>>2]!=7)break g;d=g+32|0;if(J[Ec(J[c+56>>2],796236,d,0)>>2]!=3){Cc(1,-1, +797385,0);yc(d);break g}e=vc(12);J[699344]=0;j=aa(3354,e|0,J[g+40>>2])|0;d=J[699344];J[699344]=0;h:{i:{j:{k:{if((d|0)!=1){h=g+32|0;yc(h);e=2;d=2;if(J[Ec(J[c+56>>2],797930,h,0)>>2]!=7)break h;if(J[Ec(J[g+40>>2],781019,g+16|0,0)>>2]!=7)break i;e=2;if(J[Ec(J[g+24>>2],798688,g,0)>>2]!=4)break j;if(J[g>>2]!=4)break k;if(Ic(J[g+8>>2],799521))break k;e=0;break j}a=Z()|0;uc(e);break a}e=1}yc(g)}h=g+16|0;yc(h);if(J[Ec(J[g+40>>2],799912,h,0)>>2]==7){d=2;l:{if(J[Ec(J[g+24>>2],800812,g,0)>>2]!=4)break l;m:{if(J[g>> +2]!=4)break m;if(Ic(J[g+8>>2],799521))break m;d=0;break l}d=1}yc(g)}yc(g+16|0)}yc(g+32|0);f=vc(28);k=J[c+8>>2];h=J[c+12>>2];J[f+20>>2]=1;J[f+24>>2]=0;J[f+16>>2]=d;J[f+12>>2]=e;J[f+8>>2]=j;J[f>>2]=k;J[f+4>>2]=h}fc=g+48|0;if(f)sd(J[a+4>>2],f);yc(c+48|0)}yc(c- -64|0);b=b+1|0;f=J[c+120>>2];if((b|0)>2])continue;break}}if(J[Ec(J[i+144>>2],778113,c+96|0,0)>>2]!=7)break f;n:{if(J[Ec(J[c+104>>2],778989,c- -64|0,0)>>2]!=6)break n;b=J[c+72>>2];if(J[b+12>>2]<=0)break n;i=0;while(1){if(J[Sc(b,i,c+80|0, +0)>>2]==7){b=Ec(J[c+88>>2],779717,c+48|0,0);o:{if(J[b>>2]!=4)break o;if(Ic(J[b+8>>2],781019))break o;p:{if(J[Ec(J[c+88>>2],776342,c+32|0,0)>>2]!=6)break p;f=0;b=J[c+40>>2];if(J[b+12>>2]<=0)break p;while(1){q:{if(J[tg(b,f,c+16|0)>>2]!=9)break q;h=J[a+4>>2];k=J[h+8>>2];if((k|0)<=0)break q;e=J[c+28>>2];d=J[c+24>>2];h=J[h>>2];b=0;while(1){j=J[h+(b<<2)>>2];if(!((d|0)==J[j>>2]&(e|0)==J[j+4>>2])){b=b+1|0;if((k|0)!=(b|0))continue;break q}break}J[j+24>>2]=1}yc(c+16|0);f=f+1|0;b=J[c+40>>2];if((f|0)> +2])continue;break}}yc(c+32|0)}yc(c+48|0)}yc(c+80|0);i=i+1|0;b=J[c+72>>2];if((i|0)>2])continue;break}}b=c- -64|0;yc(b);r:{if(J[Ec(J[c+104>>2],782748,b,0)>>2]!=6)break r;b=J[c+72>>2];if(J[b+12>>2]<=0)break r;i=0;while(1){s:{if(J[tg(b,i,c+48|0)>>2]!=9)break s;t:{h=J[a+4>>2];k=J[h+8>>2];if((k|0)>0){e=J[c+60>>2];d=J[c+56>>2];h=J[h>>2];b=0;while(1){j=J[h+(b<<2)>>2];if((d|0)==J[j>>2]&(e|0)==J[j+4>>2])break t;b=b+1|0;if((k|0)!=(b|0))continue;break}}Cc(1,-1,783788,0);break s}J[j+20>>2]=0}yc(c+48|0); +i=i+1|0;b=J[c+72>>2];if((i|0)>2])continue;break}}yc(c- -64|0);b=J[a+4>>2];i=J[b+8>>2];u:{if((i|0)<=0)break u;j=J[b>>2];b=0;if((i|0)!=1){h=i&-2;f=0;while(1){e=b<<2;k=J[e+j>>2];v:{if(!J[k+24>>2])break v;d=J[k+12>>2];if((d|0)==2)break v;J[k+20>>2]=!d}e=J[j+(e|4)>>2];w:{if(!J[e+24>>2])break w;d=J[e+12>>2];if((d|0)==2)break w;J[e+20>>2]=!d}b=b+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!(i&1))break u;d=J[j+(b<<2)>>2];if(!J[d+24>>2])break u;b=J[d+12>>2];if((b|0)==2)break u;J[d+20>>2]=!b}b=c- +-64|0;if(J[Ec(J[c+104>>2],784314,b,0)>>2]==6)l=a,m=C_(b,a,J[a>>2],0),J[l+8>>2]=m;yc(c- -64|0);break e}a=Z()|0;uc(h);break a}Cc(1,-1,785721,0)}yc(c+96|0)}yc(c+112|0);if(J[a+8>>2])break b}e=vc(16);J[699344]=0;d=_(4,12)|0;b=J[699344];J[699344]=0;x:{if((b|0)!=1){J[699344]=0;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;b=J[699344];J[699344]=0;if((b|0)!=1)break x;a=Z()|0;uc(d);uc(e);break a}a=Z()|0;uc(e);break a}J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=d;J[a+8>>2]=e}fc=c+128|0;return a|0}ba(a|0);B()}function kQa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+4>>2]=b;J[a>>2]=2342900;J[a+40>>2]=0;J[a+8>>2]=13;J[a>>2]=2317544;J[699344]=0;d=_(4,44)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{if((b|0)==1)break t;J[699344]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+40>>2]=-1;J[d+32>>2]=0;J[d+36>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break s;J[a+76>>2]=d;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,2)|0;e=J[699344];J[699344]=0;if((e|0)==1)break r; +J[a+80>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,2)|0;e=J[699344];J[699344]=0;if((e|0)==1)break q;J[a+84>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break p;J[a+88>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;J[a+92>>2]=b;J[699344]=0;d=_(4,8)| +0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break n;J[a+96>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;J[a+100>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;J[a+104>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;J[a+108>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;J[a+112>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;J[a+116>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b= +aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;J[a+120>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;J[a+124>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;J[a+128>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break e;J[a+132>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,512)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;J[a+136>>2]=b;J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;if((b|0)==1)break t;J[699344]=0;b=aa(3618,d|0,2)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[a+140>>2]=b;J[699344]=0;b=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)==1)break t;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a+144>>2]=b;J[699344]=0; +b=_(4,20)|0;d=J[699344];J[699344]=0;if((d|0)==1)break t;J[b>>2]=0;J[b+4>>2]=0;J[b+16>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a+148>>2]=b;J[699344]=0;aa(3448,c|0,a+8|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}b=Z()|0;break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d); +break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d);break b}b=Z()|0;uc(d)}ba(b|0);B()}J[a+48>>2]=0;J[a+52>>2]=0;J[a- -64>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;return a|0}function nub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{if(!(K[a+301|0]?0:K[a+285|0])|(K[a+286|0]|K[a+287|0]))break b;if(K[a+288|0]|K[a+289|0])break b;H[a+301|0]=1;c:{g=J[a+196>>2];if(!g)break c;if(kc[g|0](a)|0)break c;Jc(a,904,0,0);return 904}d:{e:{i=a;g=0;f:{if(!K[a+114| +0])break f;g=kc[J[a+152>>2]](28)|0;if(!g){Jc(a,1,0,0);g=1;break f}J[g+4>>2]=1062;J[g>>2]=1063;a=J[i+700>>2];g:{if(a){J[a+8>>2]=g;break g}J[i+696>>2]=g}J[g+8>>2]=0;J[g+12>>2]=a;J[i+700>>2]=g;J[g+16>>2]=J[i+436>>2];J[g+20>>2]=J[i+440>>2];J[g+24>>2]=J[i+444>>2];if(!(J[i+516>>2]|(K[i+496|0]|!K[i+432|0])))J[i+516>>2]=g;g=0}a=g;if(a)break e;a=baa(i);if(a)break e;a=0;if(!K[i+112|0])break e;a=kc[J[b+4>>2]](i,b,e)|0;if(a)break e;g=J[e>>2];b=!c;H[g+32|0]=b;a=0;if(b)break e;h:{i:{a=K[d|0];switch(a-4|0){case 0:case 4:break h; +default:break i}}Jc(i,1049,0,0);return 1049}H[g+33|0]=a;g=c-1|0;if(!g){b=kc[J[i+152>>2]](0)|0;if(!b)break a;a=J[e>>2];J[a+40>>2]=b;J[a+36>>2]=0;return 0}f=d+1|0;b=K[f|0];j:{if((a|0)!=4){if((b&255)>>>0>3)break j;a=f;h=g;while(1){j=a;a=b&255;j=j+(a>>>0>1?1:a?9:25)|0;a=j;while(1){b=a;a=a+1|0;if(K[b|0])continue;break}if((b-d|0)<=(c|0)){a=b-j|0;h=h-a|0;if(!h)break d;k=k+1|0;a=a+j|0;b=K[a|0];if(b>>>0<=3)continue;break j}break}b=k+1|0;h=kc[J[i+152>>2]](P(b,36))|0;if(!h)break a;a=J[e>>2];J[a+40>>2]=h;J[a+ +36>>2]=b;while(1){p=K[f|0];if(p>>>0>3)break j;l=0;k:{l:{m:{if(p>>>0>1){m=0;n=0;a=f+1|0;break m}a=K[f+5|0]|K[f+6|0]<<8|(K[f+7|0]<<16|K[f+8|0]<<24);m=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+1|0]|K[f+2|0]<<8|(K[f+3|0]<<16|K[f+4|0]<<24);n=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!p)break l;a=f+9|0}o=0;j=0;f=0;break k}a=K[f+21|0]|K[f+22|0]<<8|(K[f+23|0]<<16|K[f+24|0]<<24);o=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+17|0]|K[f+18|0]<<8|(K[f+19|0]<<16|K[f+20|0]<<24);j=a<<24|(a&65280)<<8|(a>>> +8&65280|a>>>24);a=K[f+13|0]|K[f+14|0]<<8|(K[f+15|0]<<16|K[f+16|0]<<24);l=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=f+25|0;b=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);f=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24)}e=a;while(1){b=e;e=b+1|0;if(K[b|0])continue;break}k=0;n:{if((b-d|0)>(c|0)){e=0;b=g;break n}b=b-a|0;e=g-b|0;if(!e)break d}if(h){J[h+28>>2]=b;J[h+24>>2]=o;J[h+20>>2]=j;J[h+12>>2]=f;J[h+4>>2]=n;H[h|0]=p;J[h+16>>2]=l;J[h+8>>2]=m;if(b){g=kc[J[i+152>>2]](b+1|0)|0;J[h+32>>2]=g;if(!g)break a; +xc(g,a,b)}k=h+36|0}f=a+b|0;a=0;h=k;g=e;if(g)continue;break}break e}if((b&255)>>>0>3)break j;a=f;h=g;while(1){j=a;a=b&255;j=j+(a>>>0>1?1:a?5:17)|0;a=j;while(1){b=a;a=a+1|0;if(K[b|0])continue;break}if((b-d|0)<=(c|0)){a=b-j|0;h=h-a|0;if(!h)break d;k=k+1|0;a=a+j|0;b=K[a|0];if(b>>>0<=3)continue;break j}break}b=k+1|0;h=kc[J[i+152>>2]](P(b,36))|0;if(!h)break a;a=J[e>>2];J[a+40>>2]=h;J[a+36>>2]=b;while(1){j=K[f|0];if(j>>>0>3)break j;l=0;o:{p:{q:{if(j>>>0>1){m=0;a=f+1|0;break q}a=K[f+1|0]|K[f+2|0]<<8|(K[f+ +3|0]<<16|K[f+4|0]<<24);m=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!j)break p;a=f+5|0}n=0;o=0;break o}a=K[f+13|0]|K[f+14|0]<<8|(K[f+15|0]<<16|K[f+16|0]<<24);n=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);o=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[f+5|0]|K[f+6|0]<<8|(K[f+7|0]<<16|K[f+8|0]<<24);l=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=f+17|0}e=a;while(1){b=e;e=b+1|0;if(K[b|0])continue;break}k=0;r:{if((b-d|0)>(c|0)){e=0;b=g;break r}b=b-a|0;e=g- +b|0;if(!e)break d}if(h){J[h+28>>2]=b;J[h+24>>2]=n;J[h+20>>2]=o;J[h+12>>2]=0;J[h+4>>2]=0;H[h|0]=j;J[h+16>>2]=l;J[h+8>>2]=m;if(b){g=kc[J[i+152>>2]](b+1|0)|0;J[h+32>>2]=g;if(!g)break a;xc(g,a,b)}k=h+36|0}f=a+b|0;a=0;h=k;g=e;if(g)continue;break}break e}Jc(i,1050,0,0);return 1050}return a|0}Jc(i,1051,0,0);return 1051}Jc(a,1029,0,0);return 1029}Jc(i,1,0,0);return 1}function xCa(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;h=fc-16|0;fc=h;a:{b:{i=J[b>>2];c:{if(i){k=h+8|0;j= +c;e=fc-48|0;fc=e;m=sh(e+36|0,e+44|0,P(J[i+8>>2],7),1);H[J[e+44>>2]]=0;l=J[e+44>>2];b=J[i+12>>2];J[e+32>>2]=b;J[e+28>>2]=0;c=b;d:{e:{f:{while(1){g:{d=J[J[i>>2]+60>>2];J[699344]=0;f=aa(d|0,i|0,e+32|0)|0;d=J[699344];J[699344]=0;h:{i:{j:{k:{l:{m:{n:{o:{if((d|0)!=1){d=2390454;switch(f-34|0){case 26:break i;case 28:break j;case 1:case 2:case 3:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 27:break k; +case 0:break m;case 5:break n;case 4:break o;default:break l}}d=Z()|0;break f}d=2391451;break i}d=2391867;break i}d=2392224;break i}if(!f)break g}if((!(f>>>0<128|j)|f>>>0<126)&f>>>0>=32)break h;J[699344]=0;J[e>>2]=f;d=e+20|0;ca(5647,d|0,2392663,e|0);f=J[699344];J[699344]=0;p:{q:{r:{s:{t:{u:{if((f|0)!=1){J[699344]=0;J[e+16>>2]=0;f=e+16|0;aa(5145,f|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break u;g=J[J[i>>2]+32>>2];J[699344]=0;n=g;g=e+24|0;ia(n|0,g|0,i|0,d|0,f|0);d=J[699344];J[699344]=0;if((d|0)== +1)break t;J[699344]=0;aa(5153,e+28|0,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break s;d=J[e+24>>2];J[e+24>>2]=0;v:{if(!d)break v;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break e;if(f)break v;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}d=J[e+16>>2];J[e+16>>2]=0;w:{if(!d)break w;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break e;if(f)break w;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}d= +J[e+20>>2];J[e+20>>2]=0;if(!d)break p;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break p;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break p}break e}d=Z()|0;break f}d=Z()|0;break q}d=Z()|0;break r}d=Z()|0;zc(e+24|0)}zc(e+16|0)}zc(e+20|0);break f}d=J[J[e+28>>2]+12>>2];if(d)break i;break h}d=2391051}if(J[e+32>>2]!=(c|0)){b=b-c|0;l=Ad(l,c,b)+b|0;c=J[e+32>>2]}o=1;if(!K[d|0])break h;l=Yc(d)+of(l,d)|0}b=J[e+32>>2];continue}break}J[k>>2]=0;x:{y:{z:{if(o){of(l, +c);J[699344]=0;b=e+24|0;ca(5638,b|0,i|0,J[e+44>>2]);c=J[699344];J[699344]=0;A:{if((c|0)!=1){J[699344]=0;aa(5153,k|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break A;b=J[e+24>>2];J[e+24>>2]=0;if(!b)break z;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j=J[699344];J[699344]=0;if((j|0)!=1){if(c)break z;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break z}break e}d=Z()|0;break x}d=Z()|0;zc(e+24|0);break x}J[699344]=0;aa(5145,k|0,i|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break y}b=J[e+28>> +2];J[e+28>>2]=0;B:{if(!b)break B;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j=J[699344];J[699344]=0;if((j|0)==1)break e;if(c)break B;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break e}hd(m);fc=e+48|0;break d}d=Z()|0}zc(k)}zc(e+28|0);hd(m);ba(d|0);B()}ea(0)|0;Bc();B()}J[699344]=0;aa(5314,a|0,k|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[h+8>>2];J[h+8>>2]=0;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break c;J[699344]=0;$(5147, +a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break a}J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;J[h+12>>2]=0;aa(5153,a|0,h+12|0)|0;b=J[699344];J[699344]=0;C:{if((b|0)!=1){b=J[h+12>>2];J[h+12>>2]=0;if(!b)break C;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j=J[699344];J[699344]=0;if((j|0)!=1){if(c)break C;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break C}break a}b=Z()|0;zc(h+12|0);wc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2]}fc=h+16|0;return}a=Z()|0;zc(h+8|0); +ba(a|0);B()}ea(0)|0;Bc();B()}function NGa(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;f=fc-32|0;fc=f;a:{b:{c:{d:{d=H[a+11|0]<0?J[a>>2]:a;e=J[d>>2];if((e|0)!=115){if((e|0)!=35)break c;a=sn(f+20|0,a,1,-1,f+8|0);e=K[a+11|0];d=e<<24>>24;g=(d|0)<0;e=g?J[a+4>>2]:e;if(e>>>0>5)break d;while(1){e:{i=e+1|0;f:{if(!e){J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;H[f+19|0]=i;d=f+8|0;break f}J[699344]=0;j=(i|3)+1|0;d=_(4,j<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break e;J[f+12>>2]=i; +J[f+8>>2]=d;J[f+16>>2]=j|-2147483648}J[d>>2]=48;i=d+4|0;d=J[a>>2];e=e<<2;n=cd(i,g?d:a,e)+e|0,o=0,J[n>>2]=o;if(g)uc(d);d=J[f+12>>2];J[a>>2]=J[f+8>>2];J[a+4>>2]=d;J[a+8>>2]=J[f+16>>2];e=K[a+11|0];d=e<<24>>24;g=(d|0)<0;e=g?J[a+4>>2]:e;if(e>>>0<6)continue;break d}break}break b}if(J[d+4>>2]!=99|J[d+8>>2]!=35)break c;d=a;a=f+8|0;g=sn(f+20|0,d,3,-1,a);J[699344]=0;ca(5129,a|0,g|0,44);a=J[699344];J[699344]=0;g:{h:{i:{j:{k:{if((a|0)!=1){l:{d=J[f+8>>2];switch(((J[f+12>>2]-d|0)/12|0)-3|0){case 1:break k;case 0:break l; +default:break i}}J[c>>2]=255;J[699344]=0;h=+qa(4995,d+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;l=+qa(4995,J[f+8>>2]+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;m=+qa(4995,J[f+8>>2]);a=J[699344];J[699344]=0;if((a|0)!=1)break j;break h}e=Z()|0;break g}J[699344]=0;h=+qa(4995,d|0);a=J[699344];J[699344]=0;m:{if((a|0)!=1){h=h*255;n:{if(R(h)<2147483648){a=~~h;break n}a=-2147483648}J[c>>2]=a;J[699344]=0;h=+qa(4995,J[f+8>>2]+36|0);a=J[699344];J[699344]=0;if((a|0)==1)break h; +J[699344]=0;l=+qa(4995,J[f+8>>2]+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break m;J[699344]=0;m=+qa(4995,J[f+8>>2]+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break j;break h}break h}break h}h=(h>1?1:h)*255;o:{if(R(h)<2147483648){a=~~h;break o}a=-2147483648}c=a<<16;h=(l>1?1:l)*255;p:{if(R(h)<2147483648){a=~~h;break p}a=-2147483648}c=c+(a<<8)|0;h=(m>1?1:m)*255;q:{if(R(h)<2147483648){a=~~h;break q}a=-2147483648}J[b>>2]=a+c;d=J[f+8>>2]}if(d){a=d;e=J[f+12>>2];if((a|0)!=(e|0)){while(1){a=e-12|0;if(H[e- +1|0]<0)uc(J[a>>2]);e=a;if((a|0)!=(d|0))continue;break}a=J[f+8>>2]}J[f+12>>2]=d;uc(a)}if(H[g+11|0]>=0)break c;uc(J[g>>2]);break c}e=Z()|0;Ag(f+8|0)}if(H[g+11|0]>=0)break a;uc(J[g>>2]);break a}g=(d|0)<0;if(e>>>0<=7)while(1){i=e+1|0;r:{if(!e){J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;H[f+19|0]=i;d=f+8|0;break r}J[699344]=0;j=(i|3)+1|0;d=_(4,j<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break b;J[f+12>>2]=i;J[f+8>>2]=d;J[f+16>>2]=j|-2147483648}J[d>>2]=70;i=d+4|0;d=J[a>>2];e=e<<2;n=cd(i,g?d:a,e)+e|0,o=0,J[n>> +2]=o;if(g)uc(d);d=J[f+12>>2];J[a>>2]=J[f+8>>2];J[a+4>>2]=d;J[a+8>>2]=J[f+16>>2];d=K[a+11|0];g=d<<24>>24<0;e=g?J[a+4>>2]:d;if(e>>>0<8)continue;break}j=a+4|0;i=J[a>>2];a=g?i:a;e=J[a>>2];d=e-48|0;s:{if(d>>>0<10)break s;if(e-97>>>0<=5){d=e-87|0;break s}d=e-65>>>0<6?e-55|0:0}k=d<<4;J[c>>2]=k;e=J[(g?i+4|0:j)>>2];d=e-48|0;t:{if(d>>>0<10)break t;if(e-97>>>0<=5){d=e-87|0;break t}d=e-65>>>0<6?e-55|0:0}J[c>>2]=d+k;c=J[a+24>>2];d=c-48|0;u:{if(d>>>0<10)break u;if(c-97>>>0<=5){d=c-87|0;break u}d=c-65>>>0<6?c-55| 0:0}e=d<<4;J[b>>2]=e;c=J[a+28>>2];d=c-48|0;v:{if(d>>>0<10)break v;if(c-97>>>0<=5){d=c-87|0;break v}d=c-65>>>0<6?c-55|0:0}e=d+e<<4;J[b>>2]=e;c=J[a+16>>2];d=c-48|0;w:{if(d>>>0<10)break w;if(c-97>>>0<=5){d=c-87|0;break w}d=c-65>>>0<6?c-55|0:0}e=d+e<<4;J[b>>2]=e;c=J[a+20>>2];d=c-48|0;x:{if(d>>>0<10)break x;if(c-97>>>0<=5){d=c-87|0;break x}d=c-65>>>0<6?c-55|0:0}e=d+e<<4;J[b>>2]=e;c=J[a+8>>2];d=c-48|0;y:{if(d>>>0<10)break y;if(c-97>>>0<=5){d=c-87|0;break y}d=c-65>>>0<6?c-55|0:0}d=d+e<<4;J[b>>2]=d;c=J[a+ -12>>2];a=c-48|0;z:{if(a>>>0<10)break z;if(c-97>>>0<=5){a=c-87|0;break z}a=c-65>>>0<6?c-55|0:0}J[b>>2]=a+d;if(!g)break c;qc(i)}bc=f+32|0;return}e=Z()|0;if(H[a+11|0]>=0)break a;qc(J[a>>2]);ba(e|0);B()}ba(e|0);B()}function vo(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;e=35;a:{if(!a|!J[a+88>>2])break a;d=J[a+84>>2];if(!d)break a;b:{c:{e=J[d+156>>2];if(!e)break c;g=J[e+4>>2];if(!(g&1))break c;f=J[d+88>>2];if(f){e=J[J[d+4>>2]+100>>2];gc[J[e+8>>2]](e,f);e=J[d+156>>2];g= +12>>2];a=c-48|0;z:{if(a>>>0<10)break z;if(c-97>>>0<=5){a=c-87|0;break z}a=c-65>>>0<6?c-55|0:0}J[b>>2]=a+d;if(!g)break c;uc(i)}fc=f+32|0;return}e=Z()|0;if(H[a+11|0]>=0)break a;uc(J[a>>2]);ba(e|0);B()}ba(e|0);B()}function lp(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;e=35;a:{if(!a|!J[a+88>>2])break a;d=J[a+84>>2];if(!d)break a;b:{c:{e=J[d+156>>2];if(!e)break c;g=J[e+4>>2];if(!(g&1))break c;f=J[d+88>>2];if(f){e=J[J[d+4>>2]+100>>2];kc[J[e+8>>2]](e,f);e=J[d+156>>2];g= J[e+4>>2]}J[d+88>>2]=0;J[e+4>>2]=g&-2;break b}J[d+88>>2]=0}J[d+24>>2]=0;J[d+28>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+100>>2]=0;J[d+104>>2]=0;H[d+94|0]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;J[d+108>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+120>>2]=0;J[d+124>>2]=0;J[d+128>>2]=0;J[d+132>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;J[d+144>>2]=0;J[d+148>>2]=0;J[d+152>>2]=0;c=c&1024?c|2049:c;c=c&1?c&-15|10:c;i=c&4194304?c&-5: -c;j=i&2;d:{e:{c=J[a+96>>2];g=J[J[c+4>>2]+160>>2];if(i&32768|(j|!g))break e;e=J[a+8>>2];if((e&8193)!=1)break e;f:{if(i&2048)break f;h=J[a+128>>2];f=J[h>>2];if(!J[h+8>>2]){if(f)break f;break e}if(f)break e}g:{if(i&32)break g;f=J[c>>2];if(!(K[f+1|0]&4))break g;if(Be(gc[J[f+32>>2]](c,239453)|0,239843))e=J[c+28>>2]==1;else e=0;if(!(e|(K[J[c>>2]+1|0]&8)>>>3|(i&983040)!=65536)){e=J[a+8>>2];break g}e=J[a+8>>2];if(!(e&8)|!J[a+760>>2]|(L[a+286>>1]|J[a+684>>2]))break e;if(J[a+692>>2])break e}h:{if(!(e&2)|i& -8)break h;if(gc[J[J[c+12>>2]+72>>2]](d,J[a+88>>2],b,i|16384)|0)break h;c=0;if(J[d+72>>2]==1651078259)break d}e=J[a+128>>2];f=J[e+24>>2];J[e+24>>2]=0;c=gc[J[J[J[g>>2]+20>>2]+12>>2]](g,d,J[a+88>>2],b,i)|0;J[e+24>>2]=f;break d}e=gc[J[J[c+12>>2]+72>>2]](d,J[a+88>>2],b,i)|0;if(e)break a;c=0;if(J[d+72>>2]!=1869968492)break d;k=I[d+108>>1];h=I[d+110>>1];if((k|h)&65535){e=6;if((h|0)<=0|(k|0)<=0)break a;m=J[d+120>>2];g=-1;while(1){f=I[(l<<1)+m>>1];if((f|0)>=(h|0)|(g|0)>=(f|0))break a;g=f;l=l+1|0;if((l|0)!= +c;j=i&2;d:{e:{c=J[a+96>>2];g=J[J[c+4>>2]+160>>2];if(i&32768|(j|!g))break e;e=J[a+8>>2];if((e&8193)!=1)break e;f:{if(i&2048)break f;h=J[a+128>>2];f=J[h>>2];if(!J[h+8>>2]){if(f)break f;break e}if(f)break e}g:{if(i&32)break g;f=J[c>>2];if(!(K[f+1|0]&4))break g;if(Je(kc[J[f+32>>2]](c,239469)|0,239859))e=J[c+28>>2]==1;else e=0;if(!(e|(K[J[c>>2]+1|0]&8)>>>3|(i&983040)!=65536)){e=J[a+8>>2];break g}e=J[a+8>>2];if(!(e&8)|!J[a+760>>2]|(L[a+286>>1]|J[a+684>>2]))break e;if(J[a+692>>2])break e}h:{if(!(e&2)|i& +8)break h;if(kc[J[J[c+12>>2]+72>>2]](d,J[a+88>>2],b,i|16384)|0)break h;c=0;if(J[d+72>>2]==1651078259)break d}e=J[a+128>>2];f=J[e+24>>2];J[e+24>>2]=0;c=kc[J[J[J[g>>2]+20>>2]+12>>2]](g,d,J[a+88>>2],b,i)|0;J[e+24>>2]=f;break d}e=kc[J[J[c+12>>2]+72>>2]](d,J[a+88>>2],b,i)|0;if(e)break a;c=0;if(J[d+72>>2]!=1869968492)break d;k=I[d+108>>1];h=I[d+110>>1];if((k|h)&65535){e=6;if((h|0)<=0|(k|0)<=0)break a;m=J[d+120>>2];g=-1;while(1){f=I[(l<<1)+m>>1];if((f|0)>=(h|0)|(g|0)>=(f|0))break a;g=f;l=l+1|0;if((l|0)!= (k|0))continue;break}if((f|0)!=(h-1|0))break a}if(j)break d;i:{if(i>>>4&1){J[d+32>>2]=J[d+32>>2]&-64;e=J[d+44>>2];g=e&-64;J[d+44>>2]=g;f=J[d+48>>2];h=f&-64;J[d+48>>2]=h;J[d+36>>2]=J[d+36>>2]+63&-64;J[d+24>>2]=((e+J[d+24>>2]|0)+63&-64)-g;J[d+28>>2]=((f+J[d+28>>2]|0)+63&-64)-h;break i}J[d+44>>2]=J[d+44>>2]&-64;J[d+48>>2]=J[d+48>>2]&-64;e=J[d+32>>2];g=e&-64;J[d+32>>2]=g;f=J[d+36>>2];h=f+63&-64;J[d+36>>2]=h;J[d+28>>2]=h-(f-J[d+28>>2]&-64);J[d+24>>2]=((e+J[d+24>>2]|0)+63&-64)-g}J[d+40>>2]=J[d+40>>2]+32& --64;J[d+52>>2]=J[d+52>>2]+32&-64}j:{if(i&16){g=0;e=J[d+52>>2];break j}g=J[d+40>>2];e=0}J[d+64>>2]=g;J[d+68>>2]=e;if(!(!(H[a+8|0]&1)|i&8192)){e=J[a+88>>2];n=d,o=Dd(J[d+56>>2],J[e+16>>2],64),J[n+56>>2]=o;n=d,o=Dd(J[d+60>>2],J[e+20>>2],64),J[n+60>>2]=o}k:{if(i&2048)break k;h=J[a+128>>2];f=J[h+24>>2];if(!f)break k;k=d- -64|0;l:{m:{a=J[J[J[d+4>>2]+96>>2]+4>>2];e=J[a+156>>2];n:{if(!e){g=J[d+72>>2];break n}g=J[d+72>>2];if((g|0)==J[e+16>>2])break m}a=J[a+148>>2];if(a)while(1){e=J[a+8>>2];if(J[e+16>>2]==(g| -0))break m;a=J[a+4>>2];if(a)continue;break}o:{if((g|0)!=1869968492)break o;if(f&1){uo(d+108|0,h);f=J[h+24>>2]}if(!(f&2))break o;j=I[d+110>>1];if((j|0)<=0)break o;g=J[h+20>>2];f=J[h+16>>2];a=J[d+112>>2];if(j>>>0>=4){l=j&-4;e=0;while(1){J[a>>2]=f+J[a>>2];J[a+4>>2]=g+J[a+4>>2];J[a+8>>2]=f+J[a+8>>2];J[a+16>>2]=f+J[a+16>>2];J[a+24>>2]=f+J[a+24>>2];J[a+12>>2]=g+J[a+12>>2];J[a+20>>2]=g+J[a+20>>2];J[a+28>>2]=g+J[a+28>>2];a=a+32|0;e=e+4|0;if((l|0)!=(e|0))continue;break}}j=j&3;if(!j)break o;e=0;while(1){J[a>> -2]=f+J[a>>2];J[a+4>>2]=g+J[a+4>>2];a=a+8|0;e=e+1|0;if((j|0)!=(e|0))continue;break}}break l}c=gc[J[J[e+12>>2]+44>>2]](e,d,h,h+16|0)|0}aD(k,h)}e=c;J[d+12>>2]=b;J[J[d+156>>2]+40>>2]=i;if(e)break a;e=0;if(i&1)break a;a=J[d+72>>2];if((a|0)==1651078259|(a|0)==1668246896)break a;a=i>>>16&15;a=a?a:i>>>11&2;if(i&4){b=J[d+4>>2];if(!b)return 6;return m6(J[J[b+96>>2]+4>>2],d,a)|0}jM(d,a,0)}return e|0}function oMa(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;d=bc-288|0;bc=d;J[a>>2]=2330768;J[a+4>>2]=b; -J[d+272>>2]=13;J[d+256>>2]=13;J[d+240>>2]=13;J[d+224>>2]=13;J[d+208>>2]=13;J[d+192>>2]=13;J[d+176>>2]=13;J[d+160>>2]=13;J[d+144>>2]=13;J[d+128>>2]=13;J[d+112>>2]=13;J[d+96>>2]=13;J[d+80>>2]=13;J[d+64>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[a+68>>2]=0;J[a+72>>2]=0;J[a+48>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;Bc(J[c+8>>2],780724,d+272|0,0);Bc(J[c+8>>2],781766,d+256|0,0);Bc(J[c+8>>2],782669,d+240|0,0);Bc(J[c+8>>2],783716,d+224|0,0);Bc(J[c+8>>2],784700,d+208|0,0);Bc(J[c+ -8>>2],785825,d+192|0,0);Bc(J[c+8>>2],786700,d+176|0,0);Bc(J[c+8>>2],787296,d+160|0,0);Bc(J[J[J[a+4>>2]+24>>2]+48>>2],788530,d+144|0,0);a:{b:{if(!(J[d+272>>2]!=1|J[d+256>>2]!=1|(J[d+160>>2]!=1|J[d+224>>2]!=3)))if(J[d+208>>2]==3)break b;xc(1,-1,788929,0);break a}f=J[d+280>>2];J[a+52>>2]=f;b=J[d+264>>2];J[a+60>>2]=0;J[a+56>>2]=b;e=5;e=(b|0)==2|J[d+240>>2]!=1?e:J[d+248>>2]/8|0;J[a+64>>2]=1;J[a+48>>2]=e;if(!((f&-2)!=4|b-4>>>0>2)){e=d+112|0;Bc(J[c+8>>2],790240,e,0);f=d+96|0;Bc(J[c+8>>2],791071,f,0);g=d+ -80|0;Bc(J[c+8>>2],791860,g,0);c:{if(J[d+112>>2]!=7|J[d+96>>2]!=4|J[d+80>>2]!=4)break c;b=J[d+104>>2];if(Ec(b,J[d+88>>2]))break c;if(!Ec(b,792016)){uc(g);uc(f);uc(e);break a}if(J[Bc(J[d+120>>2],b,d- -64|0,0)>>2]==7){Bc(J[d+72>>2],793269,d+48|0,0);d:{if(J[d+48>>2]!=4)break d;b=J[d+56>>2];if(!Ec(b,793950)){if(J[Bc(J[d+72>>2],782669,d+32|0,0)>>2]==1)J[a+48>>2]=J[d+40>>2];uc(d+32|0);J[a+52>>2]=2;J[a+56>>2]=3;break d}if(!Ec(b,794828)){if(J[Bc(J[d+72>>2],782669,d+32|0,0)>>2]==1)J[a+48>>2]=J[d+40>>2];uc(d+ -32|0);J[a+60>>2]=1;J[a+52>>2]=2;J[a+56>>2]=3;break d}if(Ec(b,795671))break d;if(J[Bc(J[d+72>>2],782669,d+32|0,0)>>2]==1)J[a+48>>2]=J[d+40>>2];uc(d+32|0);if(J[a+48>>2]==16){J[a+60>>2]=1;J[a+52>>2]=2;J[a+56>>2]=3;break d}J[a+52>>2]=5;if(J[a+56>>2]-5>>>0>=2)J[a+56>>2]=6;J[a+60>>2]=2}uc(d+48|0)}uc(d- -64|0)}uc(d+80|0);uc(d+96|0);uc(d+112|0);if(!J[Bc(J[c+8>>2],796206,d+16|0,0)>>2])J[a+64>>2]=J[d+24>>2];uc(d+16|0);b=J[a+56>>2]}e:{if((b|0)<=4){if(J[J[d+232>>2]>>2]==32&J[J[d+216>>2]>>2]==32)break e;xc(1, --1,796905,0);break e}if(b>>>0>6)break e;f:{if(J[J[d+232>>2]>>2]<48|J[J[d+216>>2]>>2]<48|(J[d+192>>2]!=3|J[J[d+200>>2]>>2]!=32))break f;if(J[d+176>>2]!=3)break f;if(J[J[d+184>>2]>>2]==32)break e}xc(1,-1,796905,0);break a}J[a+8>>2]=J[d+168>>2];c=J[d+232>>2];b=rc(8);J[695492]=0;c=aa(3183,b|0,c|0)|0;e=J[695492];J[695492]=0;g:{h:{i:{if((e|0)==1)break i;J[a+68>>2]=c;c=J[d+216>>2];b=rc(8);J[695492]=0;c=aa(3183,b|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;J[a+72>>2]=c;j:{if(J[a+56>>2]>4)break j; -b=J[a+68>>2];if(J[b>>2]<32){while(1){zd(b,0);b=J[a+68>>2];if(J[b>>2]<32)continue;break}c=J[a+72>>2]}if(J[c>>2]>=32)break j;while(1){zd(c,0);c=J[a+72>>2];if(J[c>>2]<32)continue;break}}k:{l:{c=J[a+52>>2];if(c-1>>>0<=1){b=J[a+56>>2];if((b&-2)!=2)break l;if(J[d+144>>2]==6){if(J[Mc(J[d+152>>2],0,d+128|0,0)>>2]==3){c=Qv(J[d+136>>2]);break h}b=rc(8);J[695492]=0;c=$(3184,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break h;break i}b=rc(8);J[695492]=0;c=$(3184,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k; -J[a+84>>2]=c;break g}b=J[a+56>>2];if((c|0)!=5|b-5>>>0>1)break l;b=rc(8);J[695492]=0;c=$(3184,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k;J[a+84>>2]=c;h=a,i=Qv(J[d+200>>2]),J[h+76>>2]=i;h=a,i=Qv(J[d+184>>2]),J[h+80>>2]=i;if(J[a+48>>2]-33>>>0<=4294967263)J[a+48>>2]=32;J[a+88>>2]=1;break a}J[d+4>>2]=b;J[d>>2]=c;xc(6,-1,797517,d);break a}}a=Z()|0;qc(b);ba(a|0);B()}J[a+84>>2]=c;uc(d+128|0)}if(J[a+48>>2]-17>>>0<=4294967279)J[a+48>>2]=16;J[a+88>>2]=1}uc(d+144|0);uc(d+160|0);uc(d+176|0);uc(d+192|0); -uc(d+208|0);uc(d+224|0);uc(d+240|0);uc(d+256|0);uc(d+272|0);bc=d+288|0;return a|0}function nt(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;v=a+240|0;u=K[b|0];H[v|0]=u;k=K[b+1|0];H[a+244|0]=k;l=K[b+2|0];H[a+248|0]=l;h=K[b+3|0];H[a+252|0]=h;w=K[b+4|0];H[a+241|0]=w;m=K[b+5|0];H[a+245|0]=m;n=K[b+6|0];H[a+249|0]=n;g=K[b+7|0];H[a+253|0]=g;x=K[b+8|0];H[a+242|0]=x;o=K[b+9|0];H[a+246|0]=o;p=K[b+10|0];H[a+250|0]=p;f=K[b+11|0];H[a+254|0]=f;s=K[b+12|0];H[a+243| -0]=s;q=K[b+13|0];H[a+247|0]=q;r=K[b+14|0];H[a+251|0]=r;e=J[a+236>>2];d=e^K[b+15|0];i=f;f=J[a+232>>2];j=i^f;i=g;g=J[a+228>>2];t=i^g;i=h;h=J[a+224>>2];i=i^h;r=r^e>>>8;q=q^e>>>16;s=s^e>>>24;p=p^f>>>8;o=o^f>>>16;f=f>>>24^x;n=n^g>>>8;m=m^g>>>16;g=g>>>24^w;l=l^h>>>8;k=k^h>>>16;h=h>>>24^u;e=13;while(1){H[a+247|0]=K[(o&255)+2202528|0];H[a+243|0]=K[(s&255)+2202528|0];H[a+242|0]=K[(f&255)+2202528|0];H[a+241|0]=K[(g&255)+2202528|0];H[a+240|0]=K[(h&255)+2202528|0];H[a+246|0]=K[(m&255)+2202528|0];H[a+245|0]=K[(k& -255)+2202528|0];H[a+250|0]=K[(l&255)+2202528|0];H[a+248|0]=K[(p&255)+2202528|0];H[a+244|0]=K[(q&255)+2202528|0];H[a+255|0]=K[(i&255)+2202528|0];H[a+254|0]=K[(d&255)+2202528|0];H[a+253|0]=K[(j&255)+2202528|0];H[a+252|0]=K[(t&255)+2202528|0];H[a+251|0]=K[(n&255)+2202528|0];H[a+249|0]=K[(r&255)+2202528|0];LZ(v);d=(e<<4)+a|0;h=K[a+240|0]^K[d+3|0];H[a+240|0]=h;f=J[d>>2];i=f^K[a+252|0];H[a+252|0]=i;k=K[a+244|0]^f>>>16;H[a+244|0]=k;l=K[a+248|0]^f>>>8;H[a+248|0]=l;f=J[d+4>>2];g=K[a+241|0]^f>>>24;H[a+241| -0]=g;m=K[a+245|0]^f>>>16;H[a+245|0]=m;f=J[d+4>>2];n=K[a+249|0]^f>>>8;H[a+249|0]=n;t=f^K[a+253|0];H[a+253|0]=t;j=J[d+8>>2];f=K[a+242|0]^j>>>24;H[a+242|0]=f;o=K[a+246|0]^j>>>16;H[a+246|0]=o;p=K[a+250|0]^j>>>8;H[a+250|0]=p;j=K[a+254|0]^K[d+8|0];H[a+254|0]=j;d=J[d+12>>2];s=K[a+243|0]^d>>>24;H[a+243|0]=s;q=K[a+247|0]^d>>>16;H[a+247|0]=q;r=K[a+251|0]^d>>>8;H[a+251|0]=r;d=d^K[a+255|0];H[a+255|0]=d;u=e>>>0>1;e=e-1|0;if(u)continue;break}e=J[a>>2];t=e^K[(t&255)+2202528|0];H[a+252|0]=t;p=K[(p&255)+2202528|0]^ -e>>>8;H[a+248|0]=p;q=K[(q&255)+2202528|0]^e>>>16;H[a+244|0]=q;h=K[(h&255)+2202528|0]^e>>>24;H[a+240|0]=h;e=J[a+4>>2];j=e^K[(j&255)+2202528|0];H[a+253|0]=j;r=K[(r&255)+2202528|0]^e>>>8;H[a+249|0]=r;k=K[(k&255)+2202528|0]^e>>>16;H[a+245|0]=k;e=K[(g&255)+2202528|0]^e>>>24;H[a+241|0]=e;g=K[(d&255)+2202528|0];d=J[a+8>>2];g=g^d;H[a+254|0]=g;l=K[(l&255)+2202528|0]^d>>>8;H[a+250|0]=l;m=K[(m&255)+2202528|0]^d>>>16;H[a+246|0]=m;f=K[(f&255)+2202528|0]^d>>>24;H[a+242|0]=f;d=J[a+12>>2];i=d^K[(i&255)+2202528|0]; -H[a+255|0]=i;n=K[(n&255)+2202528|0]^d>>>8;H[a+251|0]=n;o=K[(o&255)+2202528|0]^d>>>16;H[a+247|0]=o;d=K[(s&255)+2202528|0]^d>>>24;H[a+243|0]=d;H[a+272|0]=h^K[a+256|0];H[a+273|0]=q^K[a+257|0];H[a+274|0]=p^K[a+258|0];H[a+275|0]=t^K[a+259|0];H[a+276|0]=e^K[a+260|0];H[a+277|0]=k^K[a+261|0];H[a+278|0]=r^K[a+262|0];H[a+279|0]=j^K[a+263|0];H[a+280|0]=f^K[a+264|0];H[a+281|0]=m^K[a+265|0];H[a+282|0]=l^K[a+266|0];H[a+283|0]=g^K[a+267|0];H[a+284|0]=d^K[a+268|0];H[a+285|0]=o^K[a+269|0];H[a+286|0]=n^K[a+270|0]; +-64;J[d+52>>2]=J[d+52>>2]+32&-64}j:{if(i&16){g=0;e=J[d+52>>2];break j}g=J[d+40>>2];e=0}J[d+64>>2]=g;J[d+68>>2]=e;if(!(!(H[a+8|0]&1)|i&8192)){e=J[a+88>>2];n=d,o=Od(J[d+56>>2],J[e+16>>2],64),J[n+56>>2]=o;n=d,o=Od(J[d+60>>2],J[e+20>>2],64),J[n+60>>2]=o}k:{if(i&2048)break k;h=J[a+128>>2];f=J[h+24>>2];if(!f)break k;k=d- -64|0;l:{m:{a=J[J[J[d+4>>2]+96>>2]+4>>2];e=J[a+156>>2];n:{if(!e){g=J[d+72>>2];break n}g=J[d+72>>2];if((g|0)==J[e+16>>2])break m}a=J[a+148>>2];if(a)while(1){e=J[a+8>>2];if(J[e+16>>2]==(g| +0))break m;a=J[a+4>>2];if(a)continue;break}o:{if((g|0)!=1869968492)break o;if(f&1){kp(d+108|0,h);f=J[h+24>>2]}if(!(f&2))break o;j=I[d+110>>1];if((j|0)<=0)break o;g=J[h+20>>2];f=J[h+16>>2];a=J[d+112>>2];if(j>>>0>=4){l=j&-4;e=0;while(1){J[a>>2]=f+J[a>>2];J[a+4>>2]=g+J[a+4>>2];J[a+8>>2]=f+J[a+8>>2];J[a+16>>2]=f+J[a+16>>2];J[a+24>>2]=f+J[a+24>>2];J[a+12>>2]=g+J[a+12>>2];J[a+20>>2]=g+J[a+20>>2];J[a+28>>2]=g+J[a+28>>2];a=a+32|0;e=e+4|0;if((l|0)!=(e|0))continue;break}}j=j&3;if(!j)break o;e=0;while(1){J[a>> +2]=f+J[a>>2];J[a+4>>2]=g+J[a+4>>2];a=a+8|0;e=e+1|0;if((j|0)!=(e|0))continue;break}}break l}c=kc[J[J[e+12>>2]+44>>2]](e,d,h,h+16|0)|0}fE(k,h)}e=c;J[d+12>>2]=b;J[J[d+156>>2]+40>>2]=i;if(e)break a;e=0;if(i&1)break a;a=J[d+72>>2];if((a|0)==1651078259|(a|0)==1668246896)break a;a=i>>>16&15;a=a?a:i>>>11&2;if(i&4){b=J[d+4>>2];if(!b)return 6;return n8(J[J[b+96>>2]+4>>2],d,a)|0}FN(d,a,0)}return e|0}function FOa(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;d=fc-288|0;fc=d;J[a>>2]=2342656;J[a+4>>2]=b; +J[d+272>>2]=13;J[d+256>>2]=13;J[d+240>>2]=13;J[d+224>>2]=13;J[d+208>>2]=13;J[d+192>>2]=13;J[d+176>>2]=13;J[d+160>>2]=13;J[d+144>>2]=13;J[d+128>>2]=13;J[d+112>>2]=13;J[d+96>>2]=13;J[d+80>>2]=13;J[d+64>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[a+68>>2]=0;J[a+72>>2]=0;J[a+48>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;Ec(J[c+8>>2],782468,d+272|0,0);Ec(J[c+8>>2],783510,d+256|0,0);Ec(J[c+8>>2],784413,d+240|0,0);Ec(J[c+8>>2],785460,d+224|0,0);Ec(J[c+8>>2],786444,d+208|0,0);Ec(J[c+ +8>>2],787569,d+192|0,0);Ec(J[c+8>>2],788444,d+176|0,0);Ec(J[c+8>>2],789040,d+160|0,0);Ec(J[J[J[a+4>>2]+24>>2]+48>>2],790274,d+144|0,0);a:{b:{if(!(J[d+272>>2]!=1|J[d+256>>2]!=1|(J[d+160>>2]!=1|J[d+224>>2]!=3)))if(J[d+208>>2]==3)break b;Cc(1,-1,790673,0);break a}f=J[d+280>>2];J[a+52>>2]=f;b=J[d+264>>2];J[a+60>>2]=0;J[a+56>>2]=b;e=5;e=(b|0)==2|J[d+240>>2]!=1?e:J[d+248>>2]/8|0;J[a+64>>2]=1;J[a+48>>2]=e;if(!((f&-2)!=4|b-4>>>0>2)){e=d+112|0;Ec(J[c+8>>2],791984,e,0);f=d+96|0;Ec(J[c+8>>2],792815,f,0);g=d+ +80|0;Ec(J[c+8>>2],793604,g,0);c:{if(J[d+112>>2]!=7|J[d+96>>2]!=4|J[d+80>>2]!=4)break c;b=J[d+104>>2];if(Ic(b,J[d+88>>2]))break c;if(!Ic(b,793760)){yc(g);yc(f);yc(e);break a}if(J[Ec(J[d+120>>2],b,d- -64|0,0)>>2]==7){Ec(J[d+72>>2],795013,d+48|0,0);d:{if(J[d+48>>2]!=4)break d;b=J[d+56>>2];if(!Ic(b,795729)){if(J[Ec(J[d+72>>2],784413,d+32|0,0)>>2]==1)J[a+48>>2]=J[d+40>>2];yc(d+32|0);J[a+52>>2]=2;J[a+56>>2]=3;break d}if(!Ic(b,796575)){if(J[Ec(J[d+72>>2],784413,d+32|0,0)>>2]==1)J[a+48>>2]=J[d+40>>2];yc(d+ +32|0);J[a+60>>2]=1;J[a+52>>2]=2;J[a+56>>2]=3;break d}if(Ic(b,797421))break d;if(J[Ec(J[d+72>>2],784413,d+32|0,0)>>2]==1)J[a+48>>2]=J[d+40>>2];yc(d+32|0);if(J[a+48>>2]==16){J[a+60>>2]=1;J[a+52>>2]=2;J[a+56>>2]=3;break d}J[a+52>>2]=5;if(J[a+56>>2]-5>>>0>=2)J[a+56>>2]=6;J[a+60>>2]=2}yc(d+48|0)}yc(d- -64|0)}yc(d+80|0);yc(d+96|0);yc(d+112|0);if(!J[Ec(J[c+8>>2],797959,d+16|0,0)>>2])J[a+64>>2]=J[d+24>>2];yc(d+16|0);b=J[a+56>>2]}e:{if((b|0)<=4){if(J[J[d+232>>2]>>2]==32&J[J[d+216>>2]>>2]==32)break e;Cc(1, +-1,798658,0);break e}if(b>>>0>6)break e;f:{if(J[J[d+232>>2]>>2]<48|J[J[d+216>>2]>>2]<48|(J[d+192>>2]!=3|J[J[d+200>>2]>>2]!=32))break f;if(J[d+176>>2]!=3)break f;if(J[J[d+184>>2]>>2]==32)break e}Cc(1,-1,798658,0);break a}J[a+8>>2]=J[d+168>>2];c=J[d+232>>2];b=vc(8);J[699344]=0;c=aa(3350,b|0,c|0)|0;e=J[699344];J[699344]=0;g:{h:{i:{if((e|0)==1)break i;J[a+68>>2]=c;c=J[d+216>>2];b=vc(8);J[699344]=0;c=aa(3350,b|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;J[a+72>>2]=c;j:{if(J[a+56>>2]>4)break j; +b=J[a+68>>2];if(J[b>>2]<32){while(1){Kd(b,0);b=J[a+68>>2];if(J[b>>2]<32)continue;break}c=J[a+72>>2]}if(J[c>>2]>=32)break j;while(1){Kd(c,0);c=J[a+72>>2];if(J[c>>2]<32)continue;break}}k:{l:{c=J[a+52>>2];if(c-1>>>0<=1){b=J[a+56>>2];if((b&-2)!=2)break l;if(J[d+144>>2]==6){if(J[Sc(J[d+152>>2],0,d+128|0,0)>>2]==3){c=Fw(J[d+136>>2]);break h}b=vc(8);J[699344]=0;c=_(3351,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break h;break i}b=vc(8);J[699344]=0;c=_(3351,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k; +J[a+84>>2]=c;break g}b=J[a+56>>2];if((c|0)!=5|b-5>>>0>1)break l;b=vc(8);J[699344]=0;c=_(3351,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;J[a+84>>2]=c;h=a,i=Fw(J[d+200>>2]),J[h+76>>2]=i;h=a,i=Fw(J[d+184>>2]),J[h+80>>2]=i;if(J[a+48>>2]-33>>>0<=4294967263)J[a+48>>2]=32;J[a+88>>2]=1;break a}J[d+4>>2]=b;J[d>>2]=c;Cc(6,-1,799263,d);break a}}a=Z()|0;uc(b);ba(a|0);B()}J[a+84>>2]=c;yc(d+128|0)}if(J[a+48>>2]-17>>>0<=4294967279)J[a+48>>2]=16;J[a+88>>2]=1}yc(d+144|0);yc(d+160|0);yc(d+176|0);yc(d+192|0); +yc(d+208|0);yc(d+224|0);yc(d+240|0);yc(d+256|0);yc(d+272|0);fc=d+288|0;return a|0}function cu(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;v=a+240|0;u=K[b|0];H[v|0]=u;k=K[b+1|0];H[a+244|0]=k;l=K[b+2|0];H[a+248|0]=l;h=K[b+3|0];H[a+252|0]=h;w=K[b+4|0];H[a+241|0]=w;m=K[b+5|0];H[a+245|0]=m;n=K[b+6|0];H[a+249|0]=n;g=K[b+7|0];H[a+253|0]=g;x=K[b+8|0];H[a+242|0]=x;o=K[b+9|0];H[a+246|0]=o;p=K[b+10|0];H[a+250|0]=p;f=K[b+11|0];H[a+254|0]=f;s=K[b+12|0];H[a+243| +0]=s;q=K[b+13|0];H[a+247|0]=q;r=K[b+14|0];H[a+251|0]=r;e=J[a+236>>2];d=e^K[b+15|0];i=f;f=J[a+232>>2];j=i^f;i=g;g=J[a+228>>2];t=i^g;i=h;h=J[a+224>>2];i=i^h;r=r^e>>>8;q=q^e>>>16;s=s^e>>>24;p=p^f>>>8;o=o^f>>>16;f=f>>>24^x;n=n^g>>>8;m=m^g>>>16;g=g>>>24^w;l=l^h>>>8;k=k^h>>>16;h=h>>>24^u;e=13;while(1){H[a+247|0]=K[(o&255)+2214416|0];H[a+243|0]=K[(s&255)+2214416|0];H[a+242|0]=K[(f&255)+2214416|0];H[a+241|0]=K[(g&255)+2214416|0];H[a+240|0]=K[(h&255)+2214416|0];H[a+246|0]=K[(m&255)+2214416|0];H[a+245|0]=K[(k& +255)+2214416|0];H[a+250|0]=K[(l&255)+2214416|0];H[a+248|0]=K[(p&255)+2214416|0];H[a+244|0]=K[(q&255)+2214416|0];H[a+255|0]=K[(i&255)+2214416|0];H[a+254|0]=K[(d&255)+2214416|0];H[a+253|0]=K[(j&255)+2214416|0];H[a+252|0]=K[(t&255)+2214416|0];H[a+251|0]=K[(n&255)+2214416|0];H[a+249|0]=K[(r&255)+2214416|0];G$(v);d=(e<<4)+a|0;h=K[a+240|0]^K[d+3|0];H[a+240|0]=h;f=J[d>>2];i=f^K[a+252|0];H[a+252|0]=i;k=K[a+244|0]^f>>>16;H[a+244|0]=k;l=K[a+248|0]^f>>>8;H[a+248|0]=l;f=J[d+4>>2];g=K[a+241|0]^f>>>24;H[a+241| +0]=g;m=K[a+245|0]^f>>>16;H[a+245|0]=m;f=J[d+4>>2];n=K[a+249|0]^f>>>8;H[a+249|0]=n;t=f^K[a+253|0];H[a+253|0]=t;j=J[d+8>>2];f=K[a+242|0]^j>>>24;H[a+242|0]=f;o=K[a+246|0]^j>>>16;H[a+246|0]=o;p=K[a+250|0]^j>>>8;H[a+250|0]=p;j=K[a+254|0]^K[d+8|0];H[a+254|0]=j;d=J[d+12>>2];s=K[a+243|0]^d>>>24;H[a+243|0]=s;q=K[a+247|0]^d>>>16;H[a+247|0]=q;r=K[a+251|0]^d>>>8;H[a+251|0]=r;d=d^K[a+255|0];H[a+255|0]=d;u=e>>>0>1;e=e-1|0;if(u)continue;break}e=J[a>>2];t=e^K[(t&255)+2214416|0];H[a+252|0]=t;p=K[(p&255)+2214416|0]^ +e>>>8;H[a+248|0]=p;q=K[(q&255)+2214416|0]^e>>>16;H[a+244|0]=q;h=K[(h&255)+2214416|0]^e>>>24;H[a+240|0]=h;e=J[a+4>>2];j=e^K[(j&255)+2214416|0];H[a+253|0]=j;r=K[(r&255)+2214416|0]^e>>>8;H[a+249|0]=r;k=K[(k&255)+2214416|0]^e>>>16;H[a+245|0]=k;e=K[(g&255)+2214416|0]^e>>>24;H[a+241|0]=e;g=K[(d&255)+2214416|0];d=J[a+8>>2];g=g^d;H[a+254|0]=g;l=K[(l&255)+2214416|0]^d>>>8;H[a+250|0]=l;m=K[(m&255)+2214416|0]^d>>>16;H[a+246|0]=m;f=K[(f&255)+2214416|0]^d>>>24;H[a+242|0]=f;d=J[a+12>>2];i=d^K[(i&255)+2214416|0]; +H[a+255|0]=i;n=K[(n&255)+2214416|0]^d>>>8;H[a+251|0]=n;o=K[(o&255)+2214416|0]^d>>>16;H[a+247|0]=o;d=K[(s&255)+2214416|0]^d>>>24;H[a+243|0]=d;H[a+272|0]=h^K[a+256|0];H[a+273|0]=q^K[a+257|0];H[a+274|0]=p^K[a+258|0];H[a+275|0]=t^K[a+259|0];H[a+276|0]=e^K[a+260|0];H[a+277|0]=k^K[a+261|0];H[a+278|0]=r^K[a+262|0];H[a+279|0]=j^K[a+263|0];H[a+280|0]=f^K[a+264|0];H[a+281|0]=m^K[a+265|0];H[a+282|0]=l^K[a+266|0];H[a+283|0]=g^K[a+267|0];H[a+284|0]=d^K[a+268|0];H[a+285|0]=o^K[a+269|0];H[a+286|0]=n^K[a+270|0]; e=i^K[a+271|0];H[a+287|0]=e;H[a+256|0]=K[b|0];H[a+257|0]=K[b+1|0];H[a+258|0]=K[b+2|0];H[a+259|0]=K[b+3|0];H[a+260|0]=K[b+4|0];H[a+261|0]=K[b+5|0];H[a+262|0]=K[b+6|0];H[a+263|0]=K[b+7|0];H[a+264|0]=K[b+8|0];H[a+265|0]=K[b+9|0];H[a+266|0]=K[b+10|0];H[a+267|0]=K[b+11|0];H[a+268|0]=K[b+12|0];H[a+269|0]=K[b+13|0];H[a+270|0]=K[b+14|0];b=K[b+15|0];J[a+288>>2]=0;H[a+271|0]=b;if(c){d=15;b=((e-17&255)>>>0<240?16:e)&255;a:{if(b>>>0>15)break a;c=16-b|0;f=c&3;if(b-13>>>0>=3){j=c&-4;e=0;c=a+272|0;while(1){H[c+ -d|0]=K[c+(d-b|0)|0];g=d-1|0;H[g+c|0]=K[c+(g-b|0)|0];g=d-2|0;H[g+c|0]=K[c+(g-b|0)|0];g=d-3|0;H[g+c|0]=K[c+(g-b|0)|0];d=d-4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}if(!f)break a;e=0;c=a+272|0;while(1){H[c+d|0]=K[c+(d-b|0)|0];d=d-1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}J[a+288>>2]=b}}function ixa(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;e=bc-1088|0;bc=e;i=e+1056|0;J[i>>2]=0;J[i+4>>2]=0;J[e+1048>>2]=0;J[e+1052>>2]=0;i=e+1048|0;J[i>>2]=2401360;J[i+4>>2]=0;J[i+8>>2]=0;J[i+12>> -2]=0;a:{b:{c:{d:{e:{f:{while(1){c=0;g:{while(1){d=J[J[b>>2]+8>>2];J[695492]=0;k=d;f=e+16|0;d=f+c|0;g=ga(k|0,b|0,d|0,1)|0;j=J[695492];J[695492]=0;if((j|0)==1)break f;g=!g;if(g|K[d|0]==10)break g;d=J[J[b>>2]+8>>2];J[695492]=0;k=d;d=f;f=c|1;d=d+f|0;g=ga(k|0,b|0,d|0,1)|0;j=J[695492];J[695492]=0;if((j|0)==1)break f;g=!g;if(g|K[d|0]==10)break g;c=c+2|0;if((f|0)!=1023)continue;break}J[695492]=0;a=ja(5018,e+1064|0,2375365,2373668,113,2405749,0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;break a}c=Z()|0;break b}c=Z()|0;Fc(a);break b}H[d|0]=0;i:{if(!K[e+16|0])break i;J[695492]=0;f=aa(4989,e+8|0,e+16|0)|0;d=J[695492];J[695492]=0;j:{k:{l:{m:{if((d|0)!=1){d=J[i+8>>2];if(d)while(1){J[695492]=0;c=ga(5117,d+8|0,f|0,-1)|0;j=J[695492];J[695492]=0;if((j|0)==1)break m;if(!c)break j;d=J[d>>2];if(d)continue;break}sc(f);J[695492]=0;d=aa(4989,e|0,e+16|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;J[695492]=0;c=$(5420,d|0)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break k;J[695492]=0;of(i,c);c=J[695492];J[695492]=0;if((c|0)==1)break k;sc(d);break i}c=Z()|0;break b}c=Z()|0;sc(f);break b}c=Z()|0;break b}c=Z()|0;sc(d);break b}sc(f)}if(!g)continue;break}f=J[i+4>>2];J[695492]=0;ca(5128,a+48|0,0,f-1|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[i+8>>2];if(b){d=0;while(1){if(!(J[a+64>>2]<=(d|0)&J[a+68>>2]>=(d|0))){J[695492]=0;a=ja(5018,e+16|0,2378287,2378920,619,2405900,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;_(5019,a|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break a;c=Z()|0;Fc(a);break b}g=J[a+56>>2];j=J[a+52>>2];c=J[b+8>>2];n:{if(c){l=J[J[c>>2]+28>>2];J[695492]=0;ca(l|0,e+16|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break n;c=Z()|0;break b}J[e+16>>2]=0}J[695492]=0;g=j+(d-g<<3)|0;aa(4993,g|0,e+16|0)|0;c=J[695492];J[695492]=0;o:{if((c|0)!=1){c=J[e+16>>2];J[e+16>>2]=0;if(!c)break o;J[695492]=0;j=J[c+4>>2]-1|0;J[c+4>>2]=j;l=J[695492];J[695492]=0;if((l|0)!=1){if(j)break o;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]= -0;if((c|0)!=1)break o}ea(0)|0;yc();B()}c=Z()|0;vc(e+16|0);break b}c=J[g>>2];J[g+4>>2]=J[(c?c+12|0:2728584)>>2];d=d+1|0;b=J[b>>2];if(b)continue;break}}p:{q:{r:{if((f|0)>0){c=a+12|0;g=a+100|0;j=a+72|0;l=e+24|0;d=0;while(1){if(!(J[a+64>>2]<=(d|0)&J[a+68>>2]>=(d|0))){J[695492]=0;a=ja(5018,e+1064|0,2378287,2378920,619,2405900,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;c=Z()|0;Fc(a);break b}b=J[a+52>>2];h=J[a+56>>2];J[695492]=0;b= -aa(5421,j|0,b+(d-h<<3)|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;J[b+24>>2]=d;if(!(J[a+64>>2]<=(d|0)&J[a+68>>2]>=(d|0))){J[695492]=0;a=ja(5018,e+1064|0,2378287,2378920,619,2405900,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break q;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;c=Z()|0;Fc(a);break b}b=J[a+52>>2];h=J[a+56>>2];J[695492]=0;b=ga(5173,e+16|0,b+(d-h<<3)|0,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break r;J[695492]=0;h=aa(5422,g|0,b|0)|0;k=J[695492];J[695492]=0; -if((k|0)==1)break p;J[h+52>>2]=d;J[b>>2]=2381028;J[e+40>>2]=2381060;b=J[e+44>>2];if(b){h=J[b+4>>2]-1|0;J[b+4>>2]=h;if(!h)gc[J[J[b>>2]+4>>2]](b);J[e+44>>2]=0}J[e+32>>2]=2381060;b=J[e+36>>2];if(b){h=J[b+4>>2]-1|0;J[b+4>>2]=h;if(!h)gc[J[J[b>>2]+4>>2]](b);J[e+36>>2]=0}sc(l);d=d+1|0;if((f|0)!=(d|0))continue;break}}$c(i);bc=e+1088|0;return}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;ud(b);break b}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0}$c(i);ba(c|0);B()}B()}function KZ(a,b,c){var d=0,e=0,f= +d|0]=K[c+(d-b|0)|0];g=d-1|0;H[g+c|0]=K[c+(g-b|0)|0];g=d-2|0;H[g+c|0]=K[c+(g-b|0)|0];g=d-3|0;H[g+c|0]=K[c+(g-b|0)|0];d=d-4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}if(!f)break a;e=0;c=a+272|0;while(1){H[c+d|0]=K[c+(d-b|0)|0];d=d-1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}J[a+288>>2]=b}}function Aza(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;e=fc-1088|0;fc=e;i=e+1056|0;J[i>>2]=0;J[i+4>>2]=0;J[e+1048>>2]=0;J[e+1052>>2]=0;i=e+1048|0;J[i>>2]=2413264;J[i+4>>2]=0;J[i+8>>2]=0;J[i+12>> +2]=0;a:{b:{c:{d:{e:{f:{while(1){c=0;g:{while(1){d=J[J[b>>2]+8>>2];J[699344]=0;k=d;f=e+16|0;d=f+c|0;g=ga(k|0,b|0,d|0,1)|0;j=J[699344];J[699344]=0;if((j|0)==1)break f;g=!g;if(g|K[d|0]==10)break g;d=J[J[b>>2]+8>>2];J[699344]=0;k=d;d=f;f=c|1;d=d+f|0;g=ga(k|0,b|0,d|0,1)|0;j=J[699344];J[699344]=0;if((j|0)==1)break f;g=!g;if(g|K[d|0]==10)break g;c=c+2|0;if((f|0)!=1023)continue;break}J[699344]=0;a=ja(5178,e+1064|0,2387269,2385572,113,2417653,0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){J[699344]=0;$(5179, +a|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;break a}c=Z()|0;break b}c=Z()|0;Kc(a);break b}H[d|0]=0;i:{if(!K[e+16|0])break i;J[699344]=0;f=aa(5149,e+8|0,e+16|0)|0;d=J[699344];J[699344]=0;j:{k:{l:{m:{if((d|0)!=1){d=J[i+8>>2];if(d)while(1){J[699344]=0;c=ga(5287,d+8|0,f|0,-1)|0;j=J[699344];J[699344]=0;if((j|0)==1)break m;if(!c)break j;d=J[d>>2];if(d)continue;break}wc(f);J[699344]=0;d=aa(5149,e|0,e+16|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;J[699344]=0;c=_(5591,d|0)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break k;J[699344]=0;vf(i,c);c=J[699344];J[699344]=0;if((c|0)==1)break k;wc(d);break i}c=Z()|0;break b}c=Z()|0;wc(f);break b}c=Z()|0;break b}c=Z()|0;wc(d);break b}wc(f)}if(!g)continue;break}f=J[i+4>>2];J[699344]=0;ca(5298,a+48|0,0,f-1|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[i+8>>2];if(b){d=0;while(1){if(!(J[a+64>>2]<=(d|0)&J[a+68>>2]>=(d|0))){J[699344]=0;a=ja(5178,e+16|0,2390191,2390824,619,2417804,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(5179,a|0);b= +J[699344];J[699344]=0;if((b|0)!=1)break a;c=Z()|0;Kc(a);break b}g=J[a+56>>2];j=J[a+52>>2];c=J[b+8>>2];n:{if(c){l=J[J[c>>2]+28>>2];J[699344]=0;ca(l|0,e+16|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break n;c=Z()|0;break b}J[e+16>>2]=0}J[699344]=0;g=j+(d-g<<3)|0;aa(5153,g|0,e+16|0)|0;c=J[699344];J[699344]=0;o:{if((c|0)!=1){c=J[e+16>>2];J[e+16>>2]=0;if(!c)break o;J[699344]=0;j=J[c+4>>2]-1|0;J[c+4>>2]=j;l=J[699344];J[699344]=0;if((l|0)!=1){if(j)break o;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]= +0;if((c|0)!=1)break o}ea(0)|0;Bc();B()}c=Z()|0;zc(e+16|0);break b}c=J[g>>2];J[g+4>>2]=J[(c?c+12|0:2743576)>>2];d=d+1|0;b=J[b>>2];if(b)continue;break}}p:{q:{r:{if((f|0)>0){c=a+12|0;g=a+100|0;j=a+72|0;l=e+24|0;d=0;while(1){if(!(J[a+64>>2]<=(d|0)&J[a+68>>2]>=(d|0))){J[699344]=0;a=ja(5178,e+1064|0,2390191,2390824,619,2417804,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;c=Z()|0;Kc(a);break b}b=J[a+52>>2];h=J[a+56>>2];J[699344]=0;b= +aa(5592,j|0,b+(d-h<<3)|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;J[b+24>>2]=d;if(!(J[a+64>>2]<=(d|0)&J[a+68>>2]>=(d|0))){J[699344]=0;a=ja(5178,e+1064|0,2390191,2390824,619,2417804,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break q;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;c=Z()|0;Kc(a);break b}b=J[a+52>>2];h=J[a+56>>2];J[699344]=0;b=ga(5343,e+16|0,b+(d-h<<3)|0,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break r;J[699344]=0;h=aa(5593,g|0,b|0)|0;k=J[699344];J[699344]=0; +if((k|0)==1)break p;J[h+52>>2]=d;J[b>>2]=2392932;J[e+40>>2]=2392964;b=J[e+44>>2];if(b){h=J[b+4>>2]-1|0;J[b+4>>2]=h;if(!h)kc[J[J[b>>2]+4>>2]](b);J[e+44>>2]=0}J[e+32>>2]=2392964;b=J[e+36>>2];if(b){h=J[b+4>>2]-1|0;J[b+4>>2]=h;if(!h)kc[J[J[b>>2]+4>>2]](b);J[e+36>>2]=0}wc(l);d=d+1|0;if((f|0)!=(d|0))continue;break}}id(i);fc=e+1088|0;return}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;Ed(b);break b}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0}id(i);ba(c|0);B()}B()}function F$(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;v=a+176|0;u=K[b|0];H[v|0]=u;k=K[b+1|0];H[a+180|0]=k;l=K[b+2|0];H[a+184|0]=l;h=K[b+3|0];H[a+188|0]=h;w=K[b+4|0];H[a+177|0]=w;m=K[b+5|0];H[a+181|0]=m;n=K[b+6|0];H[a+185|0]=n;g=K[b+7|0];H[a+189|0]=g;x=K[b+8|0];H[a+178|0]=x;o=K[b+9|0];H[a+182|0]=o;p=K[b+10|0];H[a+186|0]=p;f=K[b+11|0];H[a+190|0]=f;s=K[b+12|0];H[a+179|0]=s;q=K[b+13|0];H[a+183|0]=q;r=K[b+14|0];H[a+187|0]=r;e=J[a+172>>2];d=e^K[b+15|0];i=f;f=J[a+168>>2];j=i^f;i=g;g= -J[a+164>>2];t=i^g;i=h;h=J[a+160>>2];i=i^h;r=r^e>>>8;q=q^e>>>16;s=s^e>>>24;p=p^f>>>8;o=o^f>>>16;f=f>>>24^x;n=n^g>>>8;m=m^g>>>16;g=g>>>24^w;l=l^h>>>8;k=k^h>>>16;h=h>>>24^u;e=9;while(1){H[a+183|0]=K[(o&255)+2202528|0];H[a+179|0]=K[(s&255)+2202528|0];H[a+178|0]=K[(f&255)+2202528|0];H[a+177|0]=K[(g&255)+2202528|0];H[a+176|0]=K[(h&255)+2202528|0];H[a+182|0]=K[(m&255)+2202528|0];H[a+181|0]=K[(k&255)+2202528|0];H[a+186|0]=K[(l&255)+2202528|0];H[a+184|0]=K[(p&255)+2202528|0];H[a+180|0]=K[(q&255)+2202528|0]; -H[a+191|0]=K[(i&255)+2202528|0];H[a+190|0]=K[(d&255)+2202528|0];H[a+189|0]=K[(j&255)+2202528|0];H[a+188|0]=K[(t&255)+2202528|0];H[a+187|0]=K[(n&255)+2202528|0];H[a+185|0]=K[(r&255)+2202528|0];LZ(v);d=(e<<4)+a|0;h=K[a+176|0]^K[d+3|0];H[a+176|0]=h;f=J[d>>2];i=f^K[a+188|0];H[a+188|0]=i;k=K[a+180|0]^f>>>16;H[a+180|0]=k;l=K[a+184|0]^f>>>8;H[a+184|0]=l;f=J[d+4>>2];g=K[a+177|0]^f>>>24;H[a+177|0]=g;m=K[a+181|0]^f>>>16;H[a+181|0]=m;f=J[d+4>>2];n=K[a+185|0]^f>>>8;H[a+185|0]=n;t=f^K[a+189|0];H[a+189|0]=t;j= -J[d+8>>2];f=K[a+178|0]^j>>>24;H[a+178|0]=f;o=K[a+182|0]^j>>>16;H[a+182|0]=o;p=K[a+186|0]^j>>>8;H[a+186|0]=p;j=K[a+190|0]^K[d+8|0];H[a+190|0]=j;d=J[d+12>>2];s=K[a+179|0]^d>>>24;H[a+179|0]=s;q=K[a+183|0]^d>>>16;H[a+183|0]=q;r=K[a+187|0]^d>>>8;H[a+187|0]=r;d=d^K[a+191|0];H[a+191|0]=d;u=e>>>0>1;e=e-1|0;if(u)continue;break}e=J[a>>2];t=e^K[(t&255)+2202528|0];H[a+188|0]=t;p=K[(p&255)+2202528|0]^e>>>8;H[a+184|0]=p;q=K[(q&255)+2202528|0]^e>>>16;H[a+180|0]=q;h=K[(h&255)+2202528|0]^e>>>24;H[a+176|0]=h;e=J[a+ -4>>2];j=e^K[(j&255)+2202528|0];H[a+189|0]=j;r=K[(r&255)+2202528|0]^e>>>8;H[a+185|0]=r;k=K[(k&255)+2202528|0]^e>>>16;H[a+181|0]=k;e=K[(g&255)+2202528|0]^e>>>24;H[a+177|0]=e;g=K[(d&255)+2202528|0];d=J[a+8>>2];g=g^d;H[a+190|0]=g;l=K[(l&255)+2202528|0]^d>>>8;H[a+186|0]=l;m=K[(m&255)+2202528|0]^d>>>16;H[a+182|0]=m;f=K[(f&255)+2202528|0]^d>>>24;H[a+178|0]=f;d=J[a+12>>2];i=d^K[(i&255)+2202528|0];H[a+191|0]=i;n=K[(n&255)+2202528|0]^d>>>8;H[a+187|0]=n;o=K[(o&255)+2202528|0]^d>>>16;H[a+183|0]=o;d=K[(s&255)+ -2202528|0]^d>>>24;H[a+179|0]=d;H[a+208|0]=h^K[a+192|0];H[a+209|0]=q^K[a+193|0];H[a+210|0]=p^K[a+194|0];H[a+211|0]=t^K[a+195|0];H[a+212|0]=e^K[a+196|0];H[a+213|0]=k^K[a+197|0];H[a+214|0]=r^K[a+198|0];H[a+215|0]=j^K[a+199|0];H[a+216|0]=f^K[a+200|0];H[a+217|0]=m^K[a+201|0];H[a+218|0]=l^K[a+202|0];H[a+219|0]=g^K[a+203|0];H[a+220|0]=d^K[a+204|0];H[a+221|0]=o^K[a+205|0];H[a+222|0]=n^K[a+206|0];e=i^K[a+207|0];H[a+223|0]=e;H[a+192|0]=K[b|0];H[a+193|0]=K[b+1|0];H[a+194|0]=K[b+2|0];H[a+195|0]=K[b+3|0];H[a+ +J[a+164>>2];t=i^g;i=h;h=J[a+160>>2];i=i^h;r=r^e>>>8;q=q^e>>>16;s=s^e>>>24;p=p^f>>>8;o=o^f>>>16;f=f>>>24^x;n=n^g>>>8;m=m^g>>>16;g=g>>>24^w;l=l^h>>>8;k=k^h>>>16;h=h>>>24^u;e=9;while(1){H[a+183|0]=K[(o&255)+2214416|0];H[a+179|0]=K[(s&255)+2214416|0];H[a+178|0]=K[(f&255)+2214416|0];H[a+177|0]=K[(g&255)+2214416|0];H[a+176|0]=K[(h&255)+2214416|0];H[a+182|0]=K[(m&255)+2214416|0];H[a+181|0]=K[(k&255)+2214416|0];H[a+186|0]=K[(l&255)+2214416|0];H[a+184|0]=K[(p&255)+2214416|0];H[a+180|0]=K[(q&255)+2214416|0]; +H[a+191|0]=K[(i&255)+2214416|0];H[a+190|0]=K[(d&255)+2214416|0];H[a+189|0]=K[(j&255)+2214416|0];H[a+188|0]=K[(t&255)+2214416|0];H[a+187|0]=K[(n&255)+2214416|0];H[a+185|0]=K[(r&255)+2214416|0];G$(v);d=(e<<4)+a|0;h=K[a+176|0]^K[d+3|0];H[a+176|0]=h;f=J[d>>2];i=f^K[a+188|0];H[a+188|0]=i;k=K[a+180|0]^f>>>16;H[a+180|0]=k;l=K[a+184|0]^f>>>8;H[a+184|0]=l;f=J[d+4>>2];g=K[a+177|0]^f>>>24;H[a+177|0]=g;m=K[a+181|0]^f>>>16;H[a+181|0]=m;f=J[d+4>>2];n=K[a+185|0]^f>>>8;H[a+185|0]=n;t=f^K[a+189|0];H[a+189|0]=t;j= +J[d+8>>2];f=K[a+178|0]^j>>>24;H[a+178|0]=f;o=K[a+182|0]^j>>>16;H[a+182|0]=o;p=K[a+186|0]^j>>>8;H[a+186|0]=p;j=K[a+190|0]^K[d+8|0];H[a+190|0]=j;d=J[d+12>>2];s=K[a+179|0]^d>>>24;H[a+179|0]=s;q=K[a+183|0]^d>>>16;H[a+183|0]=q;r=K[a+187|0]^d>>>8;H[a+187|0]=r;d=d^K[a+191|0];H[a+191|0]=d;u=e>>>0>1;e=e-1|0;if(u)continue;break}e=J[a>>2];t=e^K[(t&255)+2214416|0];H[a+188|0]=t;p=K[(p&255)+2214416|0]^e>>>8;H[a+184|0]=p;q=K[(q&255)+2214416|0]^e>>>16;H[a+180|0]=q;h=K[(h&255)+2214416|0]^e>>>24;H[a+176|0]=h;e=J[a+ +4>>2];j=e^K[(j&255)+2214416|0];H[a+189|0]=j;r=K[(r&255)+2214416|0]^e>>>8;H[a+185|0]=r;k=K[(k&255)+2214416|0]^e>>>16;H[a+181|0]=k;e=K[(g&255)+2214416|0]^e>>>24;H[a+177|0]=e;g=K[(d&255)+2214416|0];d=J[a+8>>2];g=g^d;H[a+190|0]=g;l=K[(l&255)+2214416|0]^d>>>8;H[a+186|0]=l;m=K[(m&255)+2214416|0]^d>>>16;H[a+182|0]=m;f=K[(f&255)+2214416|0]^d>>>24;H[a+178|0]=f;d=J[a+12>>2];i=d^K[(i&255)+2214416|0];H[a+191|0]=i;n=K[(n&255)+2214416|0]^d>>>8;H[a+187|0]=n;o=K[(o&255)+2214416|0]^d>>>16;H[a+183|0]=o;d=K[(s&255)+ +2214416|0]^d>>>24;H[a+179|0]=d;H[a+208|0]=h^K[a+192|0];H[a+209|0]=q^K[a+193|0];H[a+210|0]=p^K[a+194|0];H[a+211|0]=t^K[a+195|0];H[a+212|0]=e^K[a+196|0];H[a+213|0]=k^K[a+197|0];H[a+214|0]=r^K[a+198|0];H[a+215|0]=j^K[a+199|0];H[a+216|0]=f^K[a+200|0];H[a+217|0]=m^K[a+201|0];H[a+218|0]=l^K[a+202|0];H[a+219|0]=g^K[a+203|0];H[a+220|0]=d^K[a+204|0];H[a+221|0]=o^K[a+205|0];H[a+222|0]=n^K[a+206|0];e=i^K[a+207|0];H[a+223|0]=e;H[a+192|0]=K[b|0];H[a+193|0]=K[b+1|0];H[a+194|0]=K[b+2|0];H[a+195|0]=K[b+3|0];H[a+ 196|0]=K[b+4|0];H[a+197|0]=K[b+5|0];H[a+198|0]=K[b+6|0];H[a+199|0]=K[b+7|0];H[a+200|0]=K[b+8|0];H[a+201|0]=K[b+9|0];H[a+202|0]=K[b+10|0];H[a+203|0]=K[b+11|0];H[a+204|0]=K[b+12|0];H[a+205|0]=K[b+13|0];H[a+206|0]=K[b+14|0];b=K[b+15|0];J[a+224>>2]=0;H[a+207|0]=b;if(c){d=15;b=((e-17&255)>>>0<240?16:e)&255;a:{if(b>>>0>15)break a;c=16-b|0;f=c&3;if(b-13>>>0>=3){j=c&-4;e=0;c=a+208|0;while(1){H[c+d|0]=K[c+(d-b|0)|0];g=d-1|0;H[g+c|0]=K[c+(g-b|0)|0];g=d-2|0;H[g+c|0]=K[c+(g-b|0)|0];g=d-3|0;H[g+c|0]=K[c+(g-b| -0)|0];d=d-4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}if(!f)break a;e=0;c=a+208|0;while(1){H[c+d|0]=K[c+(d-b|0)|0];d=d-1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}J[a+224>>2]=b}}function rka(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;f=bc-16|0;bc=f;e=J[a>>2];a:{if(!e)break a;g=J[b>>2];if(!g)break a;b:{c:{d:{j=J[e+604>>2];switch(j-1|0){case 1:break c;case 0:break d;default:break a}}d=J[e+608>>2];if(d>>>0>5)break a;if(1<>2]!=7)break a}e:{f:{g:{l= -J[g+604>>2];switch(l-1|0){case 1:break f;case 0:break g;default:break a}}d=J[g+608>>2];if(d>>>0>5)break a;if(1<>2]!=7)break a}d=J[b+4>>2];h:{if(!d)break h;m=J[d+4>>2];n=m+1|0;J[d+4>>2]=n;l=J[g+604>>2];j=J[e+604>>2];J[d+4>>2]=m;if(n)break h;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if((j|0)!=(l|0))break a;d=J[a>>2];h=O[d+24>>3];e=J[b>>2];if(R(h-O[e+24>>3])>.3)break a;i=O[e+8>>3];k=O[d+8>>3];i:{j:{g=J[d+612>>2];j=g-2|0;if(j){if((j|0)==14)break j;break i}if(i>k){J[d+612>>2]=2;gc[J[J[d>> -2]+28>>2]](d,e);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;Sk(b,a);Ie(a);break a}J[e+612>>2]=2;gc[J[J[e>>2]+28>>2]](e,d);J[f+8>>2]=0;J[f+12>>2]=0;b=a;a=f+8|0;Sk(b,a);Ie(a);break a}if(i>k){J[d+612>>2]=16;gc[J[J[d>>2]+28>>2]](d,e);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;Sk(b,a);Ie(a);break a}J[e+612>>2]=16;gc[J[J[e>>2]+28>>2]](e,d);J[f+8>>2]=0;J[f+12>>2]=0;b=a;a=f+8|0;Sk(b,a);Ie(a);break a}o=R(k-i);if(!(!(R(O[d+32>>3]-O[e+32>>3])<.3)|(!(o<1.5)|!(R(O[d+48>>3]-O[e+48>>3])<.3)))){k:switch(J[d+608>>2]-5|0){case 0:if(J[e+ -608>>2]!=5)break a;if(i>k){J[d+612>>2]=2;gc[J[J[d>>2]+28>>2]](d,e);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;Sk(b,a);Ie(a);break a}J[e+612>>2]=2;gc[J[J[e>>2]+28>>2]](e,d);J[f+8>>2]=0;J[f+12>>2]=0;b=a;a=f+8|0;Sk(b,a);Ie(a);break a;case 2:break k;default:break a}if(J[e+608>>2]!=7)break a;if(i>k){J[d+612>>2]=16;gc[J[J[d>>2]+28>>2]](d,e);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;Sk(b,a);Ie(a);break a}J[e+612>>2]=16;gc[J[J[e>>2]+28>>2]](e,d);J[f+8>>2]=0;J[f+12>>2]=0;b=a;a=f+8|0;Sk(b,a);Ie(a);break a}if(o>.3)break a;i=R(O[d+ -32>>3]+O[d+48>>3]-O[e+32>>3]);if(i>1.5){if(g)break a;l:switch(J[d+608>>2]-5|0){case 0:J[d+612>>2]=h>.3?3:1;break a;case 2:break l;default:break a}J[d+612>>2]=O[d+448>>3]>.3?15:14;break a}if(c){m:{if(g)break m;n:{o:switch(J[d+608>>2]-1|0){case 0:if(J[e+608>>2]!=1)break m;c=h>.3?5:4;break n;case 2:p:switch(J[e+608>>2]-1|0){case 2:c=h>.3?7:6;break n;case 0:break p;default:break m}c=h>.3?11:10;break n;case 4:a=h>.3;c=a?3:1;if(i<.7)break n;c=a?9:8;break n;case 6:break o;default:break m}if(J[e+608>>2]!= -7)break m;c=O[d+448>>3]>.3?15:14}J[d+612>>2]=c}gc[J[J[d>>2]+28>>2]](d,e);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;Sk(b,a);Ie(a);break a}q:{r:switch(J[d+608>>2]-1|0){case 0:s:switch(J[e+608>>2]-1|0){case 0:if(g>>>0>13)break a;a=1<>2]|!(a&49))break a;J[d+612>>2]=h>.3?5:4;break q}if(J[e+612>>2])break a;J[d+608>>2]=1;J[d+612>>2]=h>.3?13:12;break q;case 2:break s;default:break a}t:switch(g-10|0){case 0:case 1:if(J[e+612>>2])break a;J[d+608>>2]=3;break q;case 2:case 3:break t;default:break a}if(J[e+ -612>>2])break a;J[d+608>>2]=3;break q;case 2:u:switch(J[e+608>>2]-1|0){case 2:if(g>>>0>11)break a;a=1<>2])break q;break a}if(J[e+612>>2])break a;J[d+612>>2]=h>.3?7:6;break q;case 0:break u;default:break a}if(g>>>0>13)break a;a=1<>2]|!(a&12288))break a;J[d+608>>2]=1;break q}if(J[e+612>>2])break a;J[d+608>>2]=1;J[d+612>>2]=h>.3?11:10;break q;case 4:v:{if(!(i<.7)){if(g>>>0>9)break a;a=1<>2]=h>.3?3:1;break q}if(J[e+612>>2])break a;J[d+612>>2]=h>.3?9:8;break q;case 6:break r;default:break a}if(J[e+612>>2]|(!(1<>>0>15))break a;J[d+612>>2]=O[d+448>>3]>.3?15:14}gc[J[J[d>>2]+28>>2]](d,e);J[f+8>>2]=0;J[f+12>>2]=0;a=f+8|0;Sk(b,a);Ie(a)}bc=f+16|0}function bY(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;bl(b,3481);f=rc(16);J[695492]=0;t=$(3185,f|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)a:{while(1){k=0;i=0;q=0;c=rc(16);J[695492]=0;p=$(3185, -c|0)|0;d=J[695492];J[695492]=0;b:{c:{d:{if((d|0)!=1){e:{if(J[b+8>>2]>0)while(1){j=J[J[b>>2]+(q<<2)>>2];if(K[j+88|0]==(s|0)){f:{g:{f=J[p+8>>2];if((f|0)<=0){e=f;break g}h=O[j+24>>3];r=J[p>>2];c=-1;e=f;while(1){d=((e-c|0)/2|0)+c|0;m=h>=O[J[r+(d<<2)>>2]+16>>3];c=m?d:c;e=m?e:d;if((c|0)<(e-1|0))continue;break}if((e|0)>=(f|0))break g;n=O[j+40>>3];m=J[p>>2];h=0;d=-1;h:{while(1){c=J[m+(e<<2)>>2];l=O[c+8>>3];if(l>=n)break h;o=O[c+16>>3];g=n>3];l=(g-(lh;h=c?l:h;d=c?e:d;e=e+ -1|0;if((f|0)!=(e|0))continue;break}e=f}if(!(h>.2)|(d|0)<0)break g;c=J[J[p>>2]+(d<<2)>>2];f=i;e=d;d=k;break f}c=rc(40);f=K[j+88|0];J[695492]=0;d=$(4,16)|0;m=J[695492];J[695492]=0;if((m|0)==1)break e;J[695492]=0;m=$(3185,d|0)|0;r=J[695492];J[695492]=0;if((r|0)==1){e=Z()|0;qc(d);break c}J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=m;J[c+24>>2]=f;J[c+28>>2]=0;J[c+32>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;i:{if(J[p+8>>2]>(e|0)){d=c;f=J[J[p>>2]+(e<<2)>>2];m=J[f+32>>2];if(m){J[m+28>>2]=c;J[c+32>>2]=m;d=k}J[f+32>>2]=c;J[c+ -28>>2]=f;f=i;break i}f=c;d=c;if(!i)break i;J[i+28>>2]=c;J[c+32>>2]=i;d=k}Ym(p,e,c)}id(J[c>>2],j);h=O[j+24>>3];O[c+16>>3]=O[j+40>>3];O[c+8>>3]=h;c=e;j:{if((c|0)<=0)break j;while(1){h=O[j+24>>3];k=c-1|0;i=J[J[p>>2]+(k<<2)>>2];if(h>=O[i+16>>3])break j;O[i+16>>3]=h;if(h>O[i+8>>3])break j;cj(p,k);i=c>>>0>1;c=k;if(i)continue;break}}c=e+1|0;k:{if((c|0)>=J[p+8>>2])break k;while(1){h=O[j+40>>3];e=J[J[p>>2]+(c<<2)>>2];if(h<=O[e+8>>3])break k;O[e+8>>3]=h;if(h>3])break k;cj(p,c);if((c|0)>2])continue; -break}}i=f;k=d}q=q+1|0;if((q|0)>2])continue;break}c=rc(16);J[695492]=0;f=$(3185,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;if(k)while(1){e=J[k>>2];i=J[e+8>>2];l:{if((i|0)<=0){n=0;h=0;l=0;o=0;break l}c=1;j=J[e>>2];d=J[j>>2];o=O[d+40>>3];l=O[d+32>>3];h=O[d+24>>3];n=O[d+16>>3];if((i|0)==1)break l;while(1){d=J[j+(c<<2)>>2];g=O[d+40>>3];o=g>3];l=g>3];h=h>g?g:h;g=O[d+16>>3];n=g>2]; -J[r+4>>2]=i;d=J[r>>2];q=J[d+8>>2];m:{if((q|0)<=0)break m;j=J[d>>2];c=0;e=0;if(q>>>0>=4){u=q&-4;d=0;while(1){m=e<<2;H[J[m+j>>2]+100|0]=i;H[J[j+(m|4)>>2]+100|0]=i;H[J[j+(m|8)>>2]+100|0]=i;H[J[j+(m|12)>>2]+100|0]=i;e=e+4|0;d=d+4|0;if((u|0)!=(d|0))continue;break}}d=q&3;if(!d)break m;while(1){H[J[j+(e<<2)>>2]+100|0]=i;e=e+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}id(f,r);d=J[k+28>>2];c=J[k>>2];if(c)qc(dd(c));qc(k);k=d;if(d)continue;break}qc(dd(p));d=f;break b}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0}qc(c); -ba(e|0);B()}n:{if(!J[d+8>>2]){qc(dd(d));break n}c=rc(40);J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=d;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;e=J[d+8>>2];o:{if((e|0)<=0)break o;k=J[d>>2];d=J[k>>2];h=O[d+8>>3];O[c+8>>3]=h;n=O[d+24>>3];O[c+24>>3]=n;l=O[d+16>>3];O[c+16>>3]=l;o=O[d+32>>3];O[c+32>>3]=o;f=1;if((e|0)==1)break o;while(1){d=J[k+(f<<2)>>2];g=O[d+8>>3];if(g>3]=g;h=g}g=O[d+24>>3];if(g>3]=g;n=g}g=O[d+16>>3];if(g>l){O[c+16>>3]=g;l=g}g= -O[d+32>>3];if(g>o){O[c+32>>3]=g;o=g}f=f+1|0;if((e|0)!=(f|0))continue;break}}f=rc(16);J[695492]=0;e=$(3185,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;id(e,c);d=rc(56);h=O[c+16>>3];n=O[c+32>>3];l=O[c+8>>3];O[d+24>>3]=O[c+24>>3];O[d+8>>3]=l;J[d>>2]=e;J[d+40>>2]=0;J[d+44>>2]=0;O[d+32>>3]=n;O[d+16>>3]=h;J[d+48>>2]=0;J[d+52>>2]=0;id(t,d)}s=s+1|0;if((s|0)!=4)continue;break}return t}a=Z()|0;qc(f);ba(a|0);B()}function L0(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=bc-16|0;bc=e;c=-102;a:{if(!(J[a+ -96>>2]|J[a+100>>2])|(b|!a))break a;b=J[a+224>>2];if(b){c=J[b>>2];if(c)qc(c);J[b>>2]=0;if(J[b+72>>2]==8)kl(b+4|0);qc(b);J[a+224>>2]=0}f=J[a+76>>2]+J[a+220>>2]|0;d=J[a+216>>2];b=d+J[a+72>>2]|0;if(dj(a,J[a+48>>2],b,b>>>0>>0?f+1|0:f,0)){c=-103;break a}d=eh(a,J[a+48>>2],e+8|0);f=J[e+8>>2];b:{c:{c=J[a+48>>2];d:{if((gc[J[a+4>>2]](J[a+28>>2],c,e+15|0,1)|0)==1){b=K[e+15|0];break d}if(gc[J[a+24>>2]](J[a+28>>2],c)|0)break c;b=0}e:{if((gc[J[a+4>>2]](J[a+28>>2],c,e+15|0,1)|0)==1){J[e+4>>2]=b|K[e+15|0]<<8;break e}g= -P(b,257);b=gc[J[a+24>>2]](J[a+28>>2],c)|0;J[e+4>>2]=b?0:g;c=-1;if(b)break b}c=d?-1:(f|0)!=67324752?-103:0;break b}J[e+4>>2]=0;c=-1}d=J[a+48>>2];f:{g:{if((gc[J[a+4>>2]](J[a+28>>2],d,e+15|0,1)|0)==1){h=K[e+15|0];break g}b=-1;if(gc[J[a+24>>2]](J[a+28>>2],d)|0)break f}if((gc[J[a+4>>2]](J[a+28>>2],d,e+15|0,1)|0)==1){b=c;break f}b=c;c=gc[J[a+24>>2]](J[a+28>>2],d)|0;b=c?-1:b;h=c?0:P(h,257)}h:{i:{d=J[a+48>>2];j:{if((gc[J[a+4>>2]](J[a+28>>2],d,e+15|0,1)|0)==1){c=K[e+15|0];break j}if(gc[J[a+24>>2]](J[a+28>> -2],d)|0)break i;c=0}k:{if((gc[J[a+4>>2]](J[a+28>>2],d,e+15|0,1)|0)==1){c=c|K[e+15|0]<<8;J[e+4>>2]=c;break k}c=P(c,257);f=gc[J[a+24>>2]](J[a+28>>2],d)|0;J[e+4>>2]=f?0:c;d=-1;if(f)break h}d=b;if(b)break h;d=-103;if(J[a+140>>2]!=(c|0))break h;if(c>>>0<=12){d=0;if(1<>2]=0;d=-1}f=eh(a,J[a+48>>2],e+4|0);c=-1;b=-1;l:{if(eh(a,J[a+48>>2],e+4|0))break l;b=f?-1:d;if(b)break l;b=0;if(J[e+4>>2]==J[a+148>>2])break l;b=h&8?0:-103}m:{if(eh(a,J[a+48>>2],e+4|0))break m;if(b){c= -b;break m}c=b;b=J[e+4>>2];if((b|0)==-1)break m;c=0;if(!J[a+156>>2]&J[a+152>>2]==(b|0))break m;c=h&8?0:-103}b=-1;n:{if(eh(a,J[a+48>>2],e+4|0))break n;if(c){b=c;break n}b=c;c=J[e+4>>2];if((c|0)==-1)break n;b=0;if(!J[a+164>>2]&J[a+160>>2]==(c|0))break n;b=h&8?0:-103}f=J[a+48>>2];o:{p:{if((gc[J[a+4>>2]](J[a+28>>2],f,e+15|0,1)|0)==1){c=K[e+15|0];break p}c=0;d=0;h=0;if(gc[J[a+24>>2]](J[a+28>>2],f)|0)break o}q:{if((gc[J[a+4>>2]](J[a+28>>2],f,e+15|0,1)|0)==1){d=K[e+15|0]<<8|c;break q}d=0;h=0;if(gc[J[a+24>> -2]](J[a+28>>2],f)|0)break o;d=P(c,257)}h=0;if(b)break o;h=J[a+168>>2]==(d|0)}r:{s:{c=J[a+48>>2];t:{if((gc[J[a+4>>2]](J[a+28>>2],c,e+15|0,1)|0)==1){b=K[e+15|0];break t}if(gc[J[a+24>>2]](J[a+28>>2],c)|0)break s;b=0}u:{if((gc[J[a+4>>2]](J[a+28>>2],c,e+15|0,1)|0)==1){g=b|K[e+15|0]<<8;break u}if(gc[J[a+24>>2]](J[a+28>>2],c)|0)break s;g=P(b,257)}c=-103;if(!h)break a;h=J[a+216>>2];f=J[a+220>>2];c=-104;b=zc(208);if(!b)break a;j=zc(16384);J[b+200>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;k=g;J[b+88>>2]=g;i=d+h|0;g= -i>>>0>>0?f+1|0:f;i=i+30|0;g=i>>>0<30?g+1|0:g;J[b+80>>2]=i;J[b+84>>2]=g;J[b>>2]=j;if(!j){qc(b);break a}J[b+72>>2]=0;c=J[a+148>>2];J[b+112>>2]=0;J[b+116>>2]=c;J[b+104>>2]=0;J[b+108>>2]=0;c=J[a+140>>2];J[b+184>>2]=c;J[b+180>>2]=J[a+48>>2];g=J[a+4>>2];J[b+136>>2]=J[a>>2];J[b+140>>2]=g;g=J[a+12>>2];J[b+144>>2]=J[a+8>>2];J[b+148>>2]=g;g=J[a+20>>2];J[b+152>>2]=J[a+16>>2];J[b+156>>2]=g;g=J[a+28>>2];J[b+160>>2]=J[a+24>>2];J[b+164>>2]=g;g=J[a+36>>2];J[b+168>>2]=J[a+32>>2];J[b+172>>2]=g;J[b+176>>2]=J[a+40>> -2];g=J[a+72>>2];j=J[a+76>>2];J[b+24>>2]=0;J[b+192>>2]=g;J[b+196>>2]=j;v:{if((c|0)==12){J[b+200>>2]=1;break v}if((c|0)!=8)break v;J[b+4>>2]=0;J[b+8>>2]=0;J[b+44>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;c=dK(b+4|0,-15,28294);if(c)break r;J[b+72>>2]=8;h=J[a+216>>2];f=J[a+220>>2]}c=J[a+156>>2];J[b+120>>2]=J[a+152>>2];J[b+124>>2]=c;c=J[a+160>>2];g=J[a+164>>2];d=h+(d+k|0)|0;f=d>>>0>>0?f+1|0:f;d=d+30|0;f=d>>>0<30?f+1|0:f;J[b+64>>2]=d;J[b+68>>2]=f;J[b+128>>2]=c;J[b+132>>2]=g;c=0;J[b+8>>2]=0;J[a+228>>2]=0;J[a+224>> -2]=b;break a}c=-103;break a}qc(b)}bc=e+16|0;return c}function w2a(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;g=J[a+464>>2];if(J[a+280>>2]){c=J[g+52>>2];if(!c){if(!(gc[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){e=d<<2;f=J[(e+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[f+20>>2]<<2)+g|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0; -H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]= -0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=e+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}wc(J[((J[f+24>>2]<<2)+g|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2])continue;break}J[g+16>>2]=-16;J[g+8>>2]=0;J[g+12>>2]=0;c=J[a+280>>2]}J[g+52>>2]=c-1}c:{if(!(J[g+16>>2]==-1|J[a+364>>2]<=0)){p=J[a+428>>2];q=g+184| -0;while(1){c=m<<2;n=J[c+b>>2];c=J[(a+c|0)+368>>2]<<2;l=J[(c+a|0)+340>>2];i=J[l+20>>2];o=(i<<2)+g|0;e=c+g|0;c=J[o+56>>2]+J[e+36>>2]|0;d:{if(!Kd(a,c)){J[e+36>>2]=0;f=J[e+20>>2];break d}j=1;h=0;f=0;k=Kd(a,c+1|0);d=(k+c|0)+2|0;e:{if(!Kd(a,d))break e;c=J[o+56>>2];d=c+20|0;if(!Kd(a,d)){f=1;break e}j=0;d=c+21|0;if(!Kd(a,d)){f=2;break e}d=c+22|0;if(!Kd(a,d)){f=4;break e}d=c+23|0;if(!Kd(a,d)){f=8;break e}d=c+24|0;if(!Kd(a,d)){f=16;break e}d=c+25|0;if(!Kd(a,d)){f=32;break e}d=c+26|0;if(!Kd(a,d)){f=64;break e}d= -c+27|0;if(!Kd(a,d)){f=128;break e}d=c+28|0;if(!Kd(a,d)){f=256;break e}d=c+29|0;if(!Kd(a,d)){f=512;break e}d=c+30|0;if(!Kd(a,d)){f=1024;break e}d=c+31|0;if(!Kd(a,d)){f=2048;break e}d=c+32|0;if(!Kd(a,d)){f=4096;break e}d=c+33|0;if(!Kd(a,d)){f=8192;break e}f=16384;d=c+34|0;if(Kd(a,d))break c}i=a+i|0;f:{if(1<>1>(f|0))break f;c=k<<2;if(1<>1<(f|0)){h=c+12|0;break f}h=c+4|0}J[e+36>>2]=h;g:{if(j){d=f;break g}h=d+14|0;d=f;while(1){c=f>>>1|0;d=(Kd(a,h)?c:0)|d;j=f>>>0>3;f=c;if(j)continue; -break}}f=J[e+20>>2]+(k?d^-1:d+1|0)|0;J[e+20>>2]=f}I[n>>1]=f;h:{if(J[a+432>>2]<=0)break h;c=J[l+24>>2];j=c+a|0;h=(c<<2)+g|0;d=1;while(1){f=d;d=(J[h+120>>2]+P(d,3)|0)-3|0;if(Kd(a,d))break h;while(1){if(!Kd(a,d+1|0)){d=d+3|0;c=J[a+432>>2]>(f|0);f=f+1|0;if(c)continue;break c}break}k=Kd(a,q);c=d+2|0;i:{if(!Kd(a,c)){c=0;break i}if(!Kd(a,c)){c=1;break i}c=J[h+120>>2]+(K[j+264|0]<(f|0)?217:189)|0;j:{if(!Kd(a,c)){d=2;break j}e=c+1|0;if(!Kd(a,e)){d=4;c=e;break j}e=c+2|0;if(!Kd(a,e)){d=8;c=e;break j}e=c+3|0; -if(!Kd(a,e)){d=16;c=e;break j}e=c+4|0;if(!Kd(a,e)){d=32;c=e;break j}e=c+5|0;if(!Kd(a,e)){d=64;c=e;break j}e=c+6|0;if(!Kd(a,e)){d=128;c=e;break j}e=c+7|0;if(!Kd(a,e)){d=256;c=e;break j}e=c+8|0;if(!Kd(a,e)){d=512;c=e;break j}e=c+9|0;if(!Kd(a,e)){d=1024;c=e;break j}e=c+10|0;if(!Kd(a,e)){d=2048;c=e;break j}e=c+11|0;if(!Kd(a,e)){d=4096;c=e;break j}e=c+12|0;if(!Kd(a,e)){d=8192;c=e;break j}d=16384;c=c+13|0;if(Kd(a,c))break c}l=c+14|0;c=d;while(1){e=d>>>1|0;c=(Kd(a,l)?e:0)|c;i=d>>>0>3;d=e;if(i)continue;break}}I[(J[(f<< -2)+p>>2]<<1)+n>>1]=k?c^-1:c+1|0;d=f+1|0;if(J[a+432>>2]>(f|0))continue;break}}m=m+1|0;if((m|0)>2])continue;break}}return 1}b=J[a>>2];J[b+20>>2]=117;gc[J[b+4>>2]](a,-1);J[g+16>>2]=-1;return 1}function hK(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;m=bc-16|0;bc=m;c=-102;a:{if(!a|!J[a+56>>2])break a;J[a+68>>2]=0;b=a- -64|0;b:{if(!(J[a+160>>2]|J[a+156>>2]!=8)){c=a+164|0;while(1){if(!J[a+80>>2]){gK(a);J[a+76>>2]=c;J[a+80>>2]=65536}d=J[a+84>>2];e=Ak(b,4);J[a+124>> -2]=J[a+124>>2]+(J[a+84>>2]-d|0);if(!e)continue;break}if((e|0)!=1)break b}e=0;if(!J[a+124>>2])break b;e=(gK(a)|0)==-1?-1:0}if(!(J[a+160>>2]|J[a+156>>2]!=8)){b=go(b);J[a+120>>2]=0;e=e?e:b}if(!J[a+160>>2]){b=a+65736|0;h=J[b>>2];i=J[b+4>>2];k=J[a+65704>>2]}c=J[a+65760>>2];b=a+65728|0;g=c+J[b>>2]|0;f=J[b+4>>2]+(c>>31)|0;f=c>>>0>g>>>0?f+1|0:f;c:{if(!(!f&(g|0)==-1|(f|0)!=0|(!i&(h|0)==-1|(i|0)!=0)))if(!J[a+132>>2]&J[a+128>>2]!=-1)break c;b=J[a+136>>2];H[b+4|0]=45;H[b+5|0]=0;b=J[a+136>>2];H[b+6|0]=45;H[b+ -7|0]=0}b=J[a+136>>2];H[b+16|0]=k;H[b+17|0]=k>>>8;H[b+18|0]=k>>>16;H[b+19|0]=k>>>24;b=J[a+136>>2];d:{if(!f&(g|0)==-1|f){H[b+20|0]=255;H[b+21|0]=255;H[b+22|0]=255;H[b+23|0]=255;break d}H[b+20|0]=g;H[b+21|0]=g>>>8;H[b+22|0]=g>>>16;H[b+23|0]=g>>>24}if(J[a+108>>2]==1){b=J[a+136>>2];H[b+36|0]=1;H[b+37|0]=0}b=J[a+136>>2];e:{if(!i&(h|0)==-1|i){H[b+24|0]=255;H[b+25|0]=255;H[b+26|0]=255;H[b+27|0]=255;b=8;break e}H[b+24|0]=h;H[b+25|0]=h>>>8;H[b+26|0]=h>>>16;H[b+27|0]=h>>>24;b=0}b=!f&(g|0)==-1|f?b+8|0:b;c=b+ -8|0;d=b;b=J[a+132>>2];d=!b&J[a+128>>2]==-1|b?c:d;f:{if(!d)break f;c=-103;j=d|4;if(j>>>0>M[a+148>>2])break a;b=J[a+136>>2]+J[a+144>>2]|0;H[b+3|0]=0;H[b+2|0]=d;H[b|0]=1;H[b+1|0]=0;if(!i&(h|0)!=-1)b=b+4|0;else{H[b+4|0]=h;H[b+5|0]=h>>>8;H[b+6|0]=h>>>16;H[b+7|0]=h>>>24;H[b+8|0]=i;H[b+9|0]=i>>>8;H[b+10|0]=i>>>16;H[b+11|0]=i>>>24;b=b+12|0}if(!f&(g|0)==-1|f){H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;H[b+4|0]=f;H[b+5|0]=f>>>8;H[b+6|0]=f>>>16;H[b+7|0]=f>>>24;b=b+8|0}d=J[a+132>>2];c=J[a+128>>2]; -if(!d&(c|0)==-1|d){H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24}J[a+148>>2]=J[a+148>>2]-j;J[a+144>>2]=j+J[a+144>>2];b=j+J[a+140>>2]|0;J[a+140>>2]=b;c=J[a+136>>2];H[c+30|0]=b;H[c+31|0]=b>>>8;if(b>>>0<65536)break f;H[c+30|0]=255;H[c+31|0]=255}b=J[a+136>>2];g:{if(e){qc(b);c=e;break g}j=J[a+144>>2];h:{c=J[a+52>>2];if(!c){c=zc(4096);if(!c){c=a+48|0;J[a+52>>2]=0;break h}J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=4080;J[a+48>>2]=c;J[a+52>>2]=c}if(j){e= -J[c+4>>2];while(1){if(e)d=J[c+8>>2];else{d=zc(4096);if(!d)break h;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=4080;J[c>>2]=d;J[a+52>>2]=d;e=4080;c=d;d=0}n=(c+d|0)+16|0;d=e>>>0>>0?e:j;q=d&3;o=0;e=0;if(d>>>0>=4){r=d&-4;p=0;while(1){H[e+n|0]=K[b+e|0];l=e|1;H[l+n|0]=K[b+l|0];l=e|2;H[l+n|0]=K[b+l|0];l=e|3;H[l+n|0]=K[b+l|0];e=e+4|0;p=p+4|0;if((r|0)!=(p|0))continue;break}}if(q)while(1){H[e+n|0]=K[b+e|0];e=e+1|0;o=o+1|0;if((o|0)!=(q|0))continue;break}J[c+8>>2]=d+J[c+8>>2];e=J[c+4>>2]-d|0;J[c+4>>2]=e;b=b+d|0;j=j-d| -0;if(j)continue;break}b=J[a+136>>2]}qc(b);c=Dp(a,J[a+44>>2]);j=fc;d=J[a+44>>2];b=J[a+132>>2];e=J[a+128>>2]+14|0;b=e>>>0<14?b+1|0:b;i:{j:{if(!dj(a,d,e,b,0)){b=J[a+44>>2];H[m+11|0]=k>>>24;H[m+10|0]=k>>>16;H[m+9|0]=k>>>8;H[m+8|0]=k;b=gc[J[a+8>>2]](J[a+28>>2],b,m+8|0,4)|0;e=(b|0)!=4?-1:0;if(!i&(h|0)==-1|i|(!f&(g|0)==-1|f))break j;e=-1;if((b|0)!=4)break i;if(TB(a,J[a+44>>2],g,f,4))break i;e=TB(a,J[a+44>>2],h,i,4);break i}e=-1;if(!i&(h|0)==-1|i)break j;if(!f&(g|0)!=-1)break i}d=a+65720|0;k=J[d>>2];d=J[d+ -4>>2];if(!(k|d)){e=-103;break i}n=J[a+44>>2];b=d;d=k+4|0;b=d>>>0<4?b+1|0:b;b=dj(a,n,d,b,0)|e;e=-1;if(b)break i;if(TB(a,J[a+44>>2],h,i,8))break i;e=TB(a,J[a+44>>2],g,f,8)}c=dj(a,J[a+44>>2],c,j,0)?-1:e;break g}J[c>>2]=0;qc(J[a+136>>2]);c=-104}J[a+56>>2]=0;f=J[a+65788>>2];b=J[a+65784>>2]+1|0;f=b?f:f+1|0;J[a+65784>>2]=b;J[a+65788>>2]=f}bc=m+16|0;return c}function YWa(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=Q(0),s=Q(0),t=0;f=bc-448|0;bc=f;a:{b:{c:{d:{e:{if(K[a+ -220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))break e;uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);m=O[b+392>>3];e=J[a+104>>2];gc[J[J[e>>2]+132>>2]](e,f+444|0)|0;e=J[a+104>>2];gc[J[J[e>>2]+136>>2]](e,826996)|0;J[f+440>>2]=0;J[f+432>>2]=0;J[f+436>>2]=0;J[f+428>>2]=0;J[f+420>>2]=0;J[f+424>>2]=0;J[695492]=0;t=jZ(f+256|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;m=m*255;f:{if(R(m)<2147483648){e=~~m;break f}e=-2147483648}o=e<<24;g:{h:{i:{j:{k:{while(1){e=f+8|0;tc(e,J[J[c>>2]+(n<<2)>>2],128);J[695492]=0;Oq(t, -e,f+244|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break k;i=P(J[f+244>>2],255)+32768|0;l=P(J[f+248>>2],255)+32768>>>16|0;p=P(J[f+252>>2],255)+32768>>>16|0;e=J[f+424>>2];h=J[f+428>>2];l:{if(e>>>0>>0){g=p&255|(i&16711680|l<<8&65280)|o;H[e|0]=g;H[e+1|0]=g>>>8;H[e+2|0]=g>>>16;H[e+3|0]=g>>>24;J[f+424>>2]=e+4;break l}m:{n:{k=J[f+420>>2];q=e-k>>2;g=q+1|0;o:{if(g>>>0>=1073741824){J[695492]=0;_(2265,f+420|0);a=J[695492];J[695492]=0;if((a|0)==1)break o;break a}h=h-k|0;j=h>>1;j=h>>>0>=2147483644?1073741823: -g>>>0>>0?j:g;if(!j){h=0;break m}if(j>>>0<1073741824)break n;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a}e=Z()|0;break b}J[695492]=0;h=$(4,j<<2)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j}g=(q<<2)+h|0;i=p&255|(i&16711680|l<<8&65280)|o;H[g|0]=i;H[g+1|0]=i>>>8;H[g+2|0]=i>>>16;H[g+3|0]=i>>>24;l=g+4|0;if((e|0)!=(k|0)){while(1){g=g-4|0;e=e-4|0;i=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[g|0]=i;H[g+1|0]=i>>>8;H[g+2|0]=i>>>16;H[g+3|0]=i>>>24;if((e|0)!=(k|0))continue;break}e= -J[f+420>>2]}J[f+428>>2]=(j<<2)+h;J[f+424>>2]=l;J[f+420>>2]=g;if(!e)break l;qc(e)}e=J[d>>2]+(n<<3)|0;r=Q(+N[e+4>>2]/72*25.4);s=Q(+N[e>>2]/72*25.4);e=J[f+436>>2];h=J[f+440>>2];p:{if(e>>>0>>0){N[e+4>>2]=r;N[e>>2]=s;J[f+436>>2]=e+8;break p}q:{r:{k=J[f+432>>2];i=e-k>>3;g=i+1|0;s:{if(g>>>0>=536870912){J[695492]=0;_(2264,f+432|0);break s}h=h-k|0;j=h>>2;j=h>>>0>=2147483640?536870911:g>>>0>>0?j:g;if(!j){h=0;break q}if(j>>>0<536870912)break r;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a; -e=Z()|0;break b}J[695492]=0;h=$(4,j<<3)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i}g=(i<<3)+h|0;N[g+4>>2]=r;N[g>>2]=s;i=g+8|0;if((e|0)!=(k|0)){while(1){e=e-8|0;l=J[e+4>>2];g=g-8|0;J[g>>2]=J[e>>2];J[g+4>>2]=l;if((e|0)!=(k|0))continue;break}e=J[f+432>>2]}J[f+440>>2]=(j<<3)+h;J[f+436>>2]=i;J[f+432>>2]=g;if(!e)break p;qc(e)}n=n+1|0;if((n|0)!=3)continue;break}J[695492]=0;J[f+252>>2]=0;J[f+244>>2]=0;J[f+248>>2]=0;eb(3239,f+8|0,f+432|0,f+420|0,f+244|0,0,Q(Q(0)),Q(Q(1)));c=J[695492];J[695492]=0;if((c| -0)==1)break h;c=J[f+244>>2];if(c){J[f+248>>2]=c;qc(c)}c=J[a+104>>2];if(!c)break g;c=ik(c,340356,340368);if(!c)break g;d=J[J[c>>2]+596>>2];J[695492]=0;da(d|0,c|0,f+8|0);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[a+104>>2];d=J[J[c>>2]+348>>2];J[695492]=0;aa(d|0,c|0,826956)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break g}break d}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;a=J[f+244>>2];if(!a)break b;J[f+248>>2]=a;qc(a);break b}J[695492]=0;_(3232,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break d; -b=J[a+104>>2];J[f+244>>2]=4;c=J[J[b>>2]+312>>2];J[695492]=0;aa(c|0,b|0,f+244|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;a=J[a+104>>2];b=J[J[a>>2]+136>>2];J[695492]=0;aa(b|0,a|0,f+444|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;Qe(f+88|0);a=J[f+420>>2];if(a){J[f+424>>2]=a;qc(a)}a=J[f+432>>2];if(!a)break e;J[f+436>>2]=a;qc(a)}bc=f+448|0;return 1}e=Z()|0;Qe(f+88|0);break b}e=Z()|0}a=J[f+420>>2];if(a){J[f+424>>2]=a;qc(a)}a=J[f+432>>2];if(a){J[f+436>>2]=a;qc(a)}ba(e|0);B()}B()}function rH(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;c=bc-80|0;bc=c;f=a+4|0;d=K[a+15|0];a:{if(!(d<<24>>24<0?J[a+8>>2]:d))break a;A1(f,1);if((b|0)==(f|0))break a;g=K[b+11|0];d=g<<24>>24;if(H[a+15|0]>=0){if((d|0)>=0){d=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=d;J[f+8>>2]=J[b+8>>2];break a}yf(f,J[b>>2],J[b+4>>2]);break a}d=(d|0)<0;Df(f,d?J[b>>2]:b,d?J[b+4>>2]:g)}d=K[b+11|0];e=d<<24>>24;b:{c:{d:{e:{f:{g:{h=(e|0)<0?J[b+4>>2]:d;h:{if(h){g=h+8|0;if(g>>>0>=1073741808)break g;i:{if(g>>>0<=1){J[c+72>>2]=0;J[c+ -64>>2]=0;J[c+68>>2]=0;H[c+75|0]=g;d=c- -64|0;break i}d=g|3;if(d>>>0>=1073741823)break f;i=d+1|0;d=rc(i<<2);J[c+68>>2]=g;J[c+64>>2]=d;J[c+72>>2]=i|-2147483648}e=(e|0)<0?J[b>>2]:b;b=h<<2;b=Zc(d,e,b)+b|0;J[b+32>>2]=0;d=J[208530];J[b+24>>2]=J[208529];J[b+28>>2]=d;d=J[208528];J[b+16>>2]=J[208527];J[b+20>>2]=d;d=J[208526];J[b+8>>2]=J[208525];J[b+12>>2]=d;d=J[208524];J[b>>2]=J[208523];J[b+4>>2]=d;j:{k:{l:{m:{n:{o:{p:{q:{if(H[c+75|0]>=0){J[c+56>>2]=J[c+72>>2];b=J[c+68>>2];J[c+48>>2]=J[c+64>>2];J[c+52>>2]= -b;break q}J[695492]=0;ca(15,c+48|0,J[c+64>>2],J[c+68>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break p}g=c+48|4;d=0;while(1){J[695492]=0;b=$(3035,c+48|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;if(!b)break k;b=H[c+75|0];h=(b|0)<0;r:{s:{i=h?J[c+68>>2]:b&255;b=i+1|0;t:{if(b>>>0>=1073741808){J[695492]=0;_(2793,c+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break t;break b}if(b>>>0<=1){J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;H[c+35|0]=b;e=c+24|0;break r}e=b|3;if(e>>>0<1073741823)break s;J[695492]=0; -ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break b}b=Z()|0;break d}J[695492]=0;j=e+1|0;e=$(4,j<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break o;J[c+28>>2]=b;J[c+24>>2]=e;J[c+32>>2]=j|-2147483648}b=i<<2;b=Zc(e,h?J[c+64>>2]:c- -64|0,b)+b|0;J[b>>2]=95;J[b+4>>2]=0;J[695492]=0;b=c+12|0;d=d+1|0;da(2276,b|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break n;J[695492]=0;h=b;b=K[c+23|0];e=b<<24>>24<0;b=ga(2794,c+24|0,(e?J[c+12>>2]:h)|0,(e?J[c+16>>2]:b)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break m;h=J[b>> -2];J[c+40>>2]=J[b+4>>2];e=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[c+43|0]=e;H[c+44|0]=e>>>8;H[c+45|0]=e>>>16;H[c+46|0]=e>>>24;J[b>>2]=0;J[b+4>>2]=0;e=K[b+11|0];J[b+8>>2]=0;if(H[c+59|0]<0)qc(J[c+48>>2]);J[c+48>>2]=h;b=K[c+43|0]|K[c+44|0]<<8|(K[c+45|0]<<16|K[c+46|0]<<24);H[g+3|0]=b;H[g+4|0]=b>>>8;H[g+5|0]=b>>>16;H[g+6|0]=b>>>24;J[g>>2]=J[c+40>>2];H[c+59|0]=e;if(H[c+23|0]<0)qc(J[c+12>>2]);if(H[c+35|0]>=0)continue;qc(J[c+24>>2]);continue}}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break l}b= -Z()|0;if(H[c+23|0]>=0)break l;qc(J[c+12>>2])}if(H[c+35|0]>=0)break d;qc(J[c+24>>2]);break d}J[695492]=0;b=c+48|0;$(3039,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;u:{v:{if((b|0)==(f|0))break v;d=K[c+59|0];b=d<<24>>24;if(H[a+15|0]>=0){if((b|0)>=0){b=J[c+52>>2];J[f>>2]=J[c+48>>2];J[f+4>>2]=b;J[f+8>>2]=J[c+56>>2];break u}J[695492]=0;ga(1630,f|0,J[c+48>>2],J[c+52>>2])|0;b=J[695492];J[695492]=0;if((b|0)!=1)break v;break e}J[695492]=0;b=(b|0)<0;ga(1629,f|0,(b?J[c+48>>2]:c+48|0)|0,(b?J[c+52>>2]: -d)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e}if(H[c+59|0]>=0)break u;qc(J[c+48>>2])}if(H[c+75|0]>=0)break h;qc(J[c+64>>2]);break h}b=Z()|0;break d}w:{if(H[a+15|0]<0){J[a+8>>2]=0;b=J[a+4>>2];break w}H[a+15|0]=0;b=f}J[b>>2]=0}d=J[689612];x:{if(!d)break x;b=d+432|0;if((b|0)==(f|0))break x;e=K[a+15|0];g=e<<24>>24;if(H[d+443|0]>=0){if((g|0)>=0){a=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=a;J[b+8>>2]=J[f+8>>2];break x}yf(b,J[a+4>>2],J[a+8>>2]);break x}h=b;b=(g|0)<0;Df(h,b?J[a+4>>2]:f,b?J[a+8>>2]:e)}bc= -c+80|0;return}Id(c- -64|0);B()}Sd();B()}b=Z()|0}if(H[c+59|0]>=0)break c;qc(J[c+48>>2])}if(H[c+75|0]<0)qc(J[c+64>>2]);ba(b|0);B()}B()}function ZI(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;l=bc+-64|0;bc=l;m=J[b+24>>2];b=rc(8);e=J[e+8>>2];J[695492]=0;e=ha(3309,b|0,m|0,0,e|0)|0;n=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((n|0)!=1){b=J[f+12>>2];f=J[f+8>>2];J[l+8>>2]=f;J[l+12>>2]=b;J[l+56>>2]=f;J[l+60>>2]=b;b=qZ(e,l+8|0);H[j|0]=0;H[k|0]=0; -if(!b){qc(VA(e));J[a>>2]=0;H[a+11|0]=0;break a}f=l+44|0;W_(f,J[b+16>>2]);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;g:{if(!(g&1&J[b+32>>2]>=0)){if(!(g&2))break g;if(!$I(f))break g}J[l+40>>2]=0;J[l+32>>2]=0;J[l+36>>2]=0;J[695492]=0;f=c;c=l+32|0;oa(3227,m|0,f|0,d|0,b|0,a|0,c|0);d=J[695492];J[695492]=0;h:{if((d|0)==1)break h;J[695492]=0;f=c;c=H[l+43|0];d=(c|0)<0;ia(1626,l+20|0,(d?J[l+32>>2]:f)|0,(d?J[l+36>>2]:c&255)|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break e;if(H[h+11|0]<0)qc(J[h>>2]);c=J[l+24>>2];J[h>> -2]=J[l+20>>2];J[h+4>>2]=c;J[h+8>>2]=J[l+28>>2];J[695492]=0;ca(3202,l+32|0,j|0,k|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;if(!K[j|0])H[j|0]=J[b+24>>2]>>>18&1;if(!K[k|0])H[k|0]=K[b+24|0]>>>6&1;if(H[l+43|0]>=0)break b;qc(J[l+32>>2]);break b}break e}if(!(g&4))break b;i:{j:{k:{l:{m:{if(H[l+55|0]>=0){J[l+40>>2]=J[l+52>>2];d=J[l+48>>2];J[l+32>>2]=J[l+44>>2];J[l+36>>2]=d;break m}J[695492]=0;ca(15,l+32|0,J[l+44>>2],J[l+48>>2]);d=J[695492];J[695492]=0;if((d|0)==1)break l}J[695492]=0;b=ha(3210,m|0,c|0, -b|0,l+32|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;if(!b)break j;c=K[b+23|0];if(!(c<<24>>24<0?J[b+16>>2]:c))break j;c=K[l+55|0];if((c<<24>>24<0?J[l+48>>2]:c)>>>0<8)break k;J[695492]=0;c=l+44|0;d=aa(3191,c|0,6)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;if(J[d>>2]!=43)break k;J[695492]=0;d=aa(3191,c|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(J[d>>2]-65>>>0>=26)break k;J[695492]=0;d=aa(3191,c|0,1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(J[d>>2]-65>>>0>25)break k;J[695492]= -0;d=aa(3191,c|0,2)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(J[d>>2]-65>>>0>25)break k;J[695492]=0;d=aa(3191,c|0,3)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(J[d>>2]-65>>>0>25)break k;J[695492]=0;d=aa(3191,c|0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(J[d>>2]-65>>>0>25)break k;J[695492]=0;d=aa(3191,c|0,5)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;if(J[d>>2]-65>>>0>25)break k;J[695492]=0;ga(3310,c|0,0,7)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break k;break f}e=Z()|0;break d}c= -b+12|0;n:{if((c|0)==(a|0))break n;f=K[b+23|0];d=f<<24>>24;if(H[a+11|0]>=0){if((d|0)>=0){d=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=d;J[a+8>>2]=J[c+8>>2];break n}c=J[b+16>>2];d=J[b+12>>2];J[695492]=0;ga(1630,a|0,d|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break n;break f}g=J[b+12>>2];m=J[b+16>>2];J[695492]=0;n=c;c=(d|0)<0;ga(1629,a|0,(c?g:n)|0,(c?m:f)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f}J[695492]=0;c=H[l+55|0];d=(c|0)<0;ia(1626,l+20|0,(d?J[l+44>>2]:l+44|0)|0,(d?J[l+48>>2]:c&255)|0,0);c= -J[695492];J[695492]=0;if((c|0)==1)break f;if(H[h+11|0]<0)qc(J[h>>2]);c=J[l+24>>2];J[h>>2]=J[l+20>>2];J[h+4>>2]=c;J[h+8>>2]=J[l+28>>2];d=J[b>>2];f=J[b+4>>2];c=K[b+11|0];J[695492]=0;g=d;d=c<<24>>24<0;ia(1626,l+20|0,(d?g:b)|0,(d?f:c)|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break f;if(H[i+11|0]<0)qc(J[i>>2]);a=J[l+24>>2];J[i>>2]=J[l+20>>2];J[i+4>>2]=a;J[i+8>>2]=J[l+28>>2];if(J[b+40>>2])H[j|0]=1;if(!J[b+44>>2])break j;H[k|0]=1}if(H[l+43|0]>=0)break b;qc(J[l+32>>2]);break b}break f}e=Z()|0;qc(b);break c}e= -Z()|0;if(H[l+43|0]>=0)break d;qc(J[l+32>>2]);break d}e=Z()|0;if(H[l+43|0]>=0)break d;qc(J[l+32>>2])}if(H[a+11|0]<0)qc(J[a>>2]);if(H[l+55|0]>=0)break c;qc(J[l+44>>2]);ba(e|0);B()}ba(e|0);B()}qc(VA(e));if(H[l+55|0]>=0)break a;qc(J[l+44>>2])}bc=l- -64|0}function g2a(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;j=bc-16|0;bc=j;d=K[a+11|0];c=d<<24>>24;f=K[b+11|0];e=f<<24>>24;e=(e|0)<0;g=e?J[b+4>>2]:f;c=(c|0)<0;f=c?J[a+4>>2]:d;a:{if((g|0)==(f|0)){d=1;if(!f)break a;if(!gd(c?J[a>>2]:a, -e?J[b>>2]:b,f))break a}c=bc-416|0;bc=c;d=K[a+11|0];f=d<<24>>24;e=K[b+11|0];h=e<<24>>24;b:{c:{d:{e:{f:{g:{h:{i:{g=(h|0)<0;k=g?J[b+4>>2]:e;e=J[a+4>>2];h=(f|0)<0;i=h?e:d;j:{if((k|0)==(i|0)){d=1;if(!i)break j;if(!gd(h?J[a>>2]:a,g?J[b>>2]:b,i))break j;d=K[a+11|0];f=d;e=J[a+4>>2]}f=f<<24>>24<0;lm(c+404|0,f?J[a>>2]:a,f?e:d,0);e=J[b>>2];f=J[b+4>>2];d=K[b+11|0];J[695492]=0;g=b;b=d<<24>>24<0;ia(1626,c+392|0,(b?e:g)|0,(b?f:d)|0,0);b=J[695492];J[695492]=0;k:{l:{m:{if((b|0)!=1){J[c+312>>2]=2614216;b=J[653557]; -J[c+204>>2]=b;d=J[b-12>>2];b=c+204|0;J[d+b>>2]=J[653558];J[c+208>>2]=0;d=J[J[c+204>>2]-12>>2];J[695492]=0;b=b+d|0;d=c+212|0;da(2853,b|0,d|0);e=J[695492];J[695492]=0;k=c+312|0;if((e|0)==1)break i;J[b+72>>2]=0;J[b+76>>2]=-1;J[c+312>>2]=2614216;J[c+204>>2]=2614196;J[695492]=0;f=$(2854,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Uf(k);break d}J[c+124>>2]=2614372;b=J[653596];J[c+20>>2]=b;d=J[b-12>>2];b=c+20|0;J[d+b>>2]=J[653597];d=J[J[c+20>>2]-12>>2];J[695492]=0;b=b+d|0;d=c+24|0;da(2853,b|0,d| -0);e=J[695492];J[695492]=0;l=c+124|0;if((e|0)==1)break h;J[b+72>>2]=0;J[b+76>>2]=-1;J[c+124>>2]=2614372;J[c+20>>2]=2614352;J[695492]=0;h=$(2854,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Uf(l);break e}J[695492]=0;b=c+4|0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=413844;d=J[695492];J[695492]=0;if((d|0)==1)break m;J[695492]=0;d=ga(3,b|0,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;b=1048576;if(d){b=J[c+16>>2];J[c+12>>2]=0;J[c+16>>2]=0;d=J[c+8>>2];if(d){fg(d);J[c+8>>2]=0}if((b|0)<= -0)break l;b=(b|0)>=1048576?1048576:b}J[695492]=0;i=$(27,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;J[695492]=0;e=$(27,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;d=J[J[f>>2]+12>>2];J[695492]=0;ga(d|0,f|0,i|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;d=J[J[h>>2]+12>>2];J[695492]=0;ga(d|0,h|0,e|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break k;break g}b=Z()|0;break c}b=Z()|0;break f}i=0;e=0}d=0;J[695492]=0;b=c+204|0;ca(2855,b|0,(H[c+415|0]<0?J[c+404>>2]:c+404|0)|0,4);g=J[695492]; -J[695492]=0;if((g|0)==1)break g;n:{if(!J[c+276>>2])break n;J[695492]=0;g=c+20|0;ca(2856,g|0,(H[c+403|0]<0?J[c+392>>2]:c+392|0)|0,4);m=J[695492];J[695492]=0;if((m|0)==1)break g;if(!J[c+276>>2]|!J[c+88>>2])break n;J[695492]=0;aa(2857,g|0,f|0)|0;d=J[695492];J[695492]=0;o:{if((d|0)==1)break o;J[695492]=0;d=$(2858,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break o;if(!d){d=J[J[c+204>>2]-12>>2];J[695492]=0;b=b+d|0;da(2859,b|0,J[b+16>>2]|4);b=J[695492];J[695492]=0;if((b|0)==1)break o}J[695492]=0;b=$(2858, -h|0)|0;g=J[695492];J[695492]=0;d=1;if((g|0)==1)break o;if(b)break n;b=J[J[c+20>>2]-12>>2];J[695492]=0;b=b+(c+20|0)|0;da(2859,b|0,J[b+16>>2]|4);b=J[695492];J[695492]=0;if((b|0)!=1)break n}break g}if(i)qc(i);if(e)qc(e);ve(c+4|0);b=J[653595];J[c+20>>2]=b;J[J[b-12>>2]+(c+20|0)>>2]=J[653598];fs(h);Uf(l);b=J[653556];J[c+204>>2]=b;J[J[b-12>>2]+(c+204|0)>>2]=J[653559];fs(f);Uf(k);if(H[c+403|0]<0)qc(J[c+392>>2]);if(H[c+415|0]>=0)break j;qc(J[c+404>>2])}bc=c+416|0;break b}b=Z()|0;Uf(k);break d}b=Z()|0;Uf(l); -break e}b=Z()|0;ve(c+4|0)}hC(c+20|0)}gC(c+204|0)}if(H[c+403|0]>=0)break c;qc(J[c+392>>2])}if(H[c+415|0]<0)qc(J[c+404>>2]);ba(b|0);B()}p:{if(!d)break p;J[j+12>>2]=0;q:{r:{b=K[a+11|0];d=b<<24>>24<0;c=d?J[a>>2]:a;if(c){a=d?J[a+4>>2]:b;if(a)break r}a=Ny(0);break q}Ep(c,a,j+12|0,j+8|0,0);b=J[j+12>>2];a=Ny(b);if(!b)break q;qc(b)}if(a)break p;d=1;break a}d=0}bc=j+16|0;return d|0}function sV(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;l=bc-32|0;bc=l;a:{b:{if(Pj(a+20|0)| -J[a+16>>2]){a=Kc(l+8|0,2379098,2375807,1036,2385538,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);break b}c:{d:{g=J[a+64>>2];e:{if((gc[J[J[g>>2]+28>>2]](g)|0)<(c|0)){H[l+8|0]=0;b=J[a+64>>2];g=J[J[b>>2]+20>>2];J[695492]=0;ha(g|0,b|0,0,2,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[a+64>>2];g=J[J[b>>2]+28>>2];J[695492]=0;b=$(g|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;if((b|0)>=(c|0))break e;while(1){g=J[a+64>>2];e=J[J[g>>2]+12>>2];J[695492]= -0;ga(e|0,g|0,l+8|0,1)|0;g=J[695492];J[695492]=0;if((g|0)==1){b=Z()|0;break b}b=b+1|0;if((c|0)!=(b|0))continue;break}break e}g=J[a+64>>2];gc[J[J[g>>2]+20>>2]](g,c,0,0)|0;Os(J[a+64>>2],b,d)}k=J[a+72>>2];g=d;d=0;f=bc-32|0;bc=f;f:{g:{h:{if((c|0)<0){a=Kc(f+8|0,2374889,2375807,526,2385272,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h;break g}if((g|0)<=0){a=Kc(f+8|0,2376530,2375807,528,2385272,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h;break g}h=k+4|0; -b=J[k+12>>2];i:{if(!b)break i;i=c+g|0;while(1){if((d|0)>=(i|0))break i;e=d;j=J[b+8>>2];m=j>>31;m=(j^m)-m|0;d=m+e|0;j:{if((j|0)>=0)break j;k:{if((c|0)>(e|0)){if(!((d|0)>(i|0)|(c|0)>=(d|0))){J[b+8>>2]=e-c;J[f+12>>2]=h;J[f+8>>2]=b;e=rc(12);J[e+8>>2]=d-c;J[e>>2]=0;J[e+4>>2]=0;Kz(h,f+8|0,e);break k}if((d|0)<=(i|0))break j;J[b+8>>2]=e-c;J[f+12>>2]=h;J[f+8>>2]=b;e=rc(12);J[e+8>>2]=g;J[e>>2]=0;J[e+4>>2]=0;j=f+8|0;Kz(h,j,e);b=J[b>>2];J[f+12>>2]=h;J[f+8>>2]=b;e=rc(12);J[e+8>>2]=i-d;J[e>>2]=0;J[e+4>>2]=0;Kz(h, -j,e);if(b)break k;break i}if((d|0)<=(i|0)){J[b+8>>2]=m;break j}J[b+8>>2]=i-e;J[f+12>>2]=h;J[f+8>>2]=b;e=rc(12);J[e+8>>2]=i-d;J[e>>2]=0;J[e+4>>2]=0;Kz(h,f+8|0,e)}b=J[b>>2];if(!b)break i}b=J[b>>2];if(b)continue;break}}l:{m:{if((c|0)>(d|0)){b=rc(12);J[b+8>>2]=d-c;J[b>>2]=0;J[b+4>>2]=0;of(h,b);break m}b=c+g|0;if((b|0)<=(d|0))break l;g=b-d|0}b=rc(12);J[b+8>>2]=g;J[b>>2]=0;J[b+4>>2]=0;of(h,b)}b=J[k+12>>2];n:{if(!b)break n;d=J[b>>2];if(!d)break n;while(1){c=b;b=d;while(1){o:{d=J[c+8>>2];p:{if((d|0)<0){g= -J[b+8>>2];if((g|0)<=0)break p;break o}g=J[b+8>>2];if(!d)break p;if((g|0)<0)break o}J[c+8>>2]=d+g;J[f+12>>2]=h;J[f+8>>2]=b;b=J[b>>2];Kn(h,f+8|0);if(b)continue;break n}break}d=J[b>>2];if(d)continue;break}}bc=f+32|0;break f}B()}b=Z()|0;Fc(a);ba(b|0);B()}q:{r:{i=J[a+96>>2];if(i)while(1){d=0;b=J[i+8>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;d=J[i+8>>2]}g=J[J[a+72>>2]+12>>2];s:{t:{if(!g)break t;e=J[d+16>>2];if((e|0)<0)break t;h=e+1|0;f=J[g+8>>2];b=f>>31;b=(b^f)-b|0;c=0;u:{if((f|0)<=0)break u;f=b>>>0>>0;c=f?b: -h;if(!e)break u;c=b>>>0>=h>>>0;if(!(f&b>>>0>=e>>>0))break u;c=b-e|0}f=J[g>>2];v:{if(!f)break v;while(1){if((b|0)>(e|0))break v;k=J[f+8>>2];j=k>>31;g=b;j=(j^k)-j|0;b=b+j|0;w:{if((k|0)<=0)break w;if((e|0)>(g|0)){if((b|0)==(e|0))break w;c=((b|0)>(e|0))+c|0;break w}if((b|0)<=(h|0)){c=c+j|0;break w}c=(h-g|0)+c|0}f=J[f>>2];if(f)continue;break}}if(c){if(J[d+8>>2])break t;J[d+8>>2]=1;break t}if(!d)break s}J[695492]=0;b=J[d+4>>2]-1|0;J[d+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break r;if(b)break s;J[695492]= -0;_(4987,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break r}i=J[i>>2];if(i)continue;break}Tz(a);x:{if(J[a+84>>2]<0)break x;b=J[a+64>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)>2])break x;if(Pj(a+20|0)|J[a+16>>2])break x;H[a+8|0]=1;if(J[a+84>>2]<0){b=J[a+64>>2];n=a,o=gc[J[J[b>>2]+28>>2]](b)|0,J[n+84>>2]=o}f=J[a+96>>2];if(f)while(1){b=J[f+8>>2];if(!J[b+8>>2])J[b+8>>2]=1;f=J[f>>2];if(f)continue;break}Tz(a)}break q}ea(0)|0;yc();B()}bc=l+32|0;return}b=Z()|0;break b}b=Z()|0}ba(b|0)}B()}function Ki(a,b,c){var d= -0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=Q(0),n=0;k=bc-16|0;bc=k;J[k+12>>2]=c;g=ts(a,b);a:{if(!g)break a;if(b>>>0<=65535){g=L[g+12>>1];if(!(J[((g>>>3&8188)+a|0)+40>>2]>>>g&1))break a}e=gc[J[a+672>>2]](a,b,c)|0}b:{if(e)break b;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(b-254|0){default:p:switch(b-529|0){case 0:break i;case 3:break d;case 2:break g;case 1:break h;default:break p}switch(b-32995|0){case 2:break j;case 1:break l;case 3:break m;case 0:break n;default:break b}case 0:J[J[c>>2]>>2]=J[a+80>>2]; -break b;case 4:I[J[c>>2]>>1]=L[a+84>>1];break b;case 9:I[J[c>>2]>>1]=L[a+92>>1];break b;case 12:I[J[c>>2]>>1]=L[a+94>>1];break b;case 20:I[J[c>>2]>>1]=L[a+96>>1];break b;case 23:I[J[c>>2]>>1]=L[a+98>>1];break b;case 24:J[J[c>>2]>>2]=J[a+100>>2];break b;case 26:I[J[c>>2]>>1]=L[a+104>>1];break b;case 27:I[J[c>>2]>>1]=L[a+106>>1];break b;case 30:I[J[c>>2]>>1]=L[a+138>>1];break b;case 42:I[J[c>>2]>>1]=L[a+136>>1];break b;case 63:I[J[c>>2]>>1]=J[J[a+584>>2]>>2];break b;case 82:I[J[c>>2]>>1]=0;I[J[c+4>> -2]>>1]=-1<>1]^-1;break b;case 78:I[J[c>>2]>>1]=1;break b;case 80:I[J[c>>2]>>1]=4;break b;case 85:break k;case 84:break o;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 22:case 25:case 28:case 29:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 43:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 79:case 81:case 83:break b; -case 47:break e;case 64:break f}I[J[c>>2]>>1]=L[a+168>>1];J[J[c+4>>2]>>2]=J[a+172>>2];break b}I[J[c>>2]>>1]=L[J[a+172>>2]>>1]==1&L[a+168>>1]==1;break b}J[J[c>>2]>>2]=J[a+76>>2];break b}I[J[c>>2]>>1]=L[a+86>>1]-1;break b}I[J[c>>2]>>1]=L[a+86>>1];break b}J[J[c>>2]>>2]=J[a- -64>>2];break b}J[J[c>>2]>>2]=2626860;break b}I[J[c>>2]>>1]=L[a+204>>1];I[J[c+4>>2]>>1]=L[a+206>>1];break b}I[J[c>>2]>>1]=L[a+208>>1];break b}J[682309]=1051788566;J[682310]=1052218684;J[J[c>>2]>>2]=2729236;break b}b=J[a+216>>2];if(!b){J[a+ -216>>2]=0;J[a+220>>2]=0;J[a+224>>2]=0;e=L[a+84>>1];q:{if(e>>>0>29)break q;g=2<>2]=b;if(!b)break q;I[b>>1]=0;r:{if(!e)break r;d=1;f=1<>>0<=2?2:f)-1|0;n=j&1;h=+(f-1|0);if((e|0)!=1){j=j&-2;e=0;while(1){l=b+(d<<1)|0;i=V(We(+(d|0)/h,2.2)*65535+.5);s:{if(i<4294967296&i>=0){f=~~i>>>0;break s}f=0}I[l>>1]=f;f=d+1|0;l=b+(f<<1)|0;i=V(We(+(f|0)/h,2.2)*65535+.5);t:{if(i<4294967296&i>=0){f=~~i>>>0;break t}f=0}I[l>>1]=f;d=d+2|0;e=e+2|0;if((j|0)!=(e|0))continue;break}}if(!n)break r;e=b+ -(d<<1)|0;h=V(We(+(d|0)/h,2.2)*65535+.5);u:{if(h<4294967296&h>=0){b=~~h>>>0;break u}b=0}I[e>>1]=b}d=1;if((L[a+98>>1]-L[a+168>>1]|0)<2)break q;b=zc(g);J[a+220>>2]=b;v:{if(!b)break v;Ne(b,J[a+216>>2],g);b=zc(g);J[a+224>>2]=b;if(!b)break v;Ne(b,J[a+216>>2],g);break q}b=J[a+216>>2];if(b)qc(b);b=J[a+220>>2];if(b)qc(b);b=J[a+224>>2];if(b)qc(b);d=0;J[a+224>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0}if(!d)break c;b=J[a+216>>2]}J[J[c>>2]>>2]=b;if((L[a+98>>1]-L[a+168>>1]|0)<2)break b;J[J[c+4>>2]>>2]=J[a+220>>2];J[J[c+ -8>>2]>>2]=J[a+224>>2];break b}b=J[a+212>>2];if(!b){b=zc(24);J[a+212>>2]=b;d=0;w:{if(!b)break w;if(L[a+90>>1]!=6){d=L[a+84>>1];J[b+16>>2]=0;J[b+8>>2]=0;J[b>>2]=0;m=Q(-1<>2]=m;N[b+12>>2]=m;N[b+4>>2]=m;d=1;break w}J[b>>2]=0;J[b+4>>2]=1132396544;J[b+16>>2]=1124073472;J[b+20>>2]=1132396544;J[b+8>>2]=1124073472;J[b+12>>2]=1132396544;d=1}if(!d)break b;b=J[a+212>>2]}J[J[c>>2]>>2]=b;break b}Nc(J[a+628>>2],J[a>>2],70207,0)}bc=k+16|0}function GU(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0, -k=0,l=0;c=bc-48|0;bc=c;a:{b:{if(!K[a+144|0]){a=Kc(c+24|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);d=J[695492];J[695492]=0;if((d|0)!=1)break b;d=Z()|0;Fc(a);ba(d|0);B()}d=c+20|0;Nm(d,J[a+108>>2]);J[c+24>>2]=0;J[c+28>>2]=J[682146];J[695492]=0;da(5108,c+16|0,d|0);d=J[695492];J[695492]=0;c:{d:{e:{f:{g:{if((d|0)!=1){J[695492]=0;j=J[c+16>>2];d=ha(5109,j|0,c+24|0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if(!d)break g;i=a+148|0;g=J[a+132>>2]<=1?-1:J[a+140>>2];k=g;h:{i:{j:{k:{while(1){l:{d= -f;m:{if(k){J[695492]=0;f=ha(5109,j|0,c+24|0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1){f=d;break l}if(f)break m;g=d}if(J[a+140>>2]>=0)break g;J[a+140>>2]=g;break g}J[695492]=0;b=fd(c+24|0,2382374,-1);e=J[695492];J[695492]=0;f=d+1|0;if((e|0)==1)break l;n:{if(!b){J[695492]=0;J[c+8>>2]=0;aa(4985,c+8|0,j|0)|0;b=J[695492];J[695492]=0;o:{p:{if((b|0)!=1){J[695492]=0;ia(5304,c+12|0,a|0,J[c+8>>2],l|0);b=J[695492];J[695492]=0;l=l+1|0;if((b|0)==1)break p;b=J[c+12>>2];J[c+12>>2]=0;q:{if(!b)break q;J[695492]= -0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(e)break q;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[c+8>>2];J[c+8>>2]=0;if(!b)break n;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)!=1){if(e)break n;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break n}break a}b=ea(2411712)|0;e=cc;break o}b=ea(2411712)|0;e=cc;vc(c+8|0)}if((sa(2411712)|0)!=(e|0))break i;b=na(b|0)|0;e=J[J[a>>2]+64>>2];h=J[a+132>>2];J[695492]= -0;ca(e|0,a|0,b|0,(h|0)<2|0);b=J[695492];J[695492]=0;if((b|0)==1)break j;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break n;b=ea(2411712)|0;break k}J[695492]=0;b=fd(c+24|0,2386568,-1);e=J[695492];J[695492]=0;if((e|0)==1)break l;r:{if(!b){J[695492]=0;b=J[i>>2];e=J[695492];J[695492]=0;if((e|0)==1)break l;J[695492]=0;b=b|4096;if((b|0)!=J[i>>2])J[i>>2]=b;b=J[695492];J[695492]=0;if((b|0)!=1)break r;break l}J[695492]=0;b=c+24|0;e=fd(b,2386783,-1);h=J[695492];J[695492]=0;if((h|0)==1)break l; -if(!e)break r;J[695492]=0;b=fd(b,2387072,-1);e=J[695492];J[695492]=0;if((e|0)==1)break l;if(b)break n}J[695492]=0;b=J[i>>2];e=J[695492];J[695492]=0;if((e|0)==1)break l;J[695492]=0;b=b|2048;if((b|0)!=J[i>>2])J[i>>2]=b;b=J[695492];J[695492]=0;if((b|0)==1)break l}k=k-1|0;J[695492]=0;_(5298,j|0);b=J[695492];J[695492]=0;if((b|0)!=1)continue}break}b=ea(2411712)|0}e=cc;break i}b=ea(2411712)|0;e=cc;J[695492]=0;ka(4893);g=J[695492];J[695492]=0;if((g|0)!=1)break i;break h}if((sa(2411712)|0)!=(e|0))break e; -g=na(b|0)|0;b=J[a+132>>2];if(J[a+140>>2]<0)J[a+140>>2]=(b|0)>2?f:d;d=J[J[a>>2]+64>>2];J[695492]=0;ca(d|0,a|0,g|0,(b|0)<2|0);d=J[695492];J[695492]=0;if((d|0)!=1){J[695492]=0;ka(4893);d=J[695492];J[695492]=0;if((d|0)!=1)break g;b=Z()|0;break e}b=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break a}b=Z()|0;break d}J[695492]=0;Zg(a+148|0,0,0,64,0);d=J[695492];J[695492]=0;if((d|0)==1)break f;a=J[a+108>>2];J[695492]=0;da(5099,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break f; -a=J[c+16>>2];J[c+16>>2]=0;s:{if(!a)break s;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break s;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break s}break a}sc(c+24|0);a=J[c+20>>2];J[c+20>>2]=0;t:{if(!a)break t;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)==1)break c;if(d)break t;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}bc=c+48|0;return}b=Z()|0}vc(c+16|0)}sc(c+24|0);vc(c+20|0);ba(b|0);B()}ea(0)| -0;yc()}B()}ea(0)|0;yc();B()}function tB(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;i=bc-32|0;bc=i;a:{b:{c:{d:{e:{if(c){e=J[c+360>>2];if(e&8388608){J[c+360>>2]=e-8388608;if(J[c+464>>2]==1){b=tB(a,b,c);J[c+360>>2]=e;break a}J[i+16>>2]=a;b=0;Cc(0,0,0,0,0,8,1557,2,a,0,0,0,4491,i+16|0);J[c+360>>2]=e;break a}if(e&2048){J[c+360>>2]=e-2048;d=bc-16|0;bc=d;f=0;f:{if(!c)break f;g:{h:{if(J[c+464>>2]==1)break h;if(!a){f=tB(0,b,c);break f}if((a|0)==28622)break g;i:{j:{f=K[a|0];if((f&223)!= -70|(K[a+1|0]&223)!=84|((K[a+2|0]&223)!=80|K[a+3|0]!=58))break j;if(K[a+4|0]!=47)break j;if(K[a+5|0]!=47)break i;break g}if((a|0)==28614)break g}if((f&223)!=72|(K[a+1|0]&223)!=84|((K[a+2|0]&223)!=84|(K[a+3|0]&223)!=80))break h;if(K[a+4|0]!=58|K[a+5|0]!=47)break h;if(K[a+6|0]==47)break g}f=tB(a,b,c);break f}J[d>>2]=a;Cc(0,0,0,0,0,8,1543,2,a,0,0,0,4526,d);f=0}b=f;bc=d+16|0;J[c+360>>2]=e;break a}if(a)break e;if(!(!J[c+212>>2]|J[c+172>>2]!=-1)){b=0;break a}a=b?b:21155;b=J[c>>2];if(!b)break c;e=0;d=J[c+ -104>>2];f=J[b+(d?88:84)>>2];g=J[c+4>>2];d=d?2:1;e=J[b+108>>2]==-554844497?J[b+124>>2]:e;break b}if(!a)break d}b=a;e=0;g=bc+-64|0;bc=g;if(J[689531]){J[g+48>>2]=a;gc[J[659549]](J[689514],32769,g+48|0)}k:{if(!c)break k;a=J[689539];l:{if(a){d=gc[a|0](b,0)|0;break l}if(!K[2758164]){d=J[689542];if((d|0)<=14){a=d<<4;J[a+2758188>>2]=3121;J[a+2758184>>2]=3122;J[a+2758180>>2]=3123;J[a+2758176>>2]=3124;J[689542]=d+1}H[2758164]=1}m:{n:{if(!b)break n;a=J[689542];if((a|0)<=0)break n;while(1){o:{d=a;a=a-1|0;h=a<< -4;j=J[h+2758176>>2];p:{if(!j)break p;if(!(gc[j|0](b)|0))break p;h=gc[J[h+2758180>>2]](b)|0;if(h)break o}if(d>>>0>1)continue;break n}break}d=MJ(0);if(d){J[d>>2]=h;a=a<<4;J[d+4>>2]=J[a+2758184>>2];J[d+8>>2]=J[a+2758188>>2];break m}gc[J[(a<<4)+2758188>>2]](h)|0}d=0}}if(!d){a=J[c+212>>2];if(!b){if(!(!a|J[c+172>>2]!=-1))break k;a=J[c>>2];q:{if(!a){a=2;d=0;b=0;break q}b=J[c+104>>2];h=a+(b?88:84)|0;d=0;d=J[a+108>>2]==-554844497?J[a+124>>2]:d;a=b?2:1;e=J[c+4>>2];b=J[h>>2]}J[g>>2]=0;Cc(d,b,e,c,0,8,1549,a, -0,0,0,0,39087,g);break k}if(!(!a|J[c+172>>2]!=-1))break k;a=J[c>>2];r:{if(!a){d=0;a=2;break r}h=J[c+104>>2];e=a+(h?88:84)|0;d=0;d=J[a+108>>2]==-554844497?J[a+124>>2]:d;e=J[e>>2];k=J[c+4>>2];a=h?2:1}J[g+16>>2]=b;Cc(d,e,k,c,0,8,1549,a,b,0,0,0,38247,g+16|0);break k}a=0;f=gc[J[659447]](60)|0;if(!f){if(!(!J[c+212>>2]|J[c+172>>2]!=-1)){f=0;break k}J[c+212>>2]=1;J[c+172>>2]=-1;J[c+84>>2]=2;J[g+32>>2]=33592;f=0;Cc(0,0,0,c,0,1,2,3,33592,0,0,0,32863,g+32|0);break k}J[f+48>>2]=0;J[f+52>>2]=0;J[f+32>>2]=0;J[f+ -36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+56>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+52>>2]=-1;J[f+32>>2]=1;J[f+28>>2]=1;e=J[c+464>>2];J[c+464>>2]=e+1;J[f>>2]=d;J[f+56>>2]=e;s:{if(!b)break s;a=b;while(1){e=a;a=a+1|0;if(K[e|0])continue;break}a=0;e=e-b|0;if((e|0)<0)break s;d=gc[J[659450]](e+1|0)|0;if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break s}a=tc(d,b,e);H[e+a|0]=0}b=AB(a);e=J[f+4>>2];if(e)gc[J[659451]](e);l=f,m=zw(a),J[l+4>>2]= -m;if(a)gc[J[659451]](a);J[f+8>>2]=b;d=J[J[f>>2]+16>>2];if(!(!d|J[d+32>>2])){a=J[d+8>>2];if(!((a|0)==J[d+24>>2]|a>>>0>2147483646))J[d+24>>2]=a;e=J[d+20>>2];a=J[d+4>>2];if(!((e|0)==(a|0)|a>>>0>2147483646)){J[d+20>>2]=a;e=a}a=J[d>>2];J[f+12>>2]=a;J[f+16>>2]=a;J[f+20>>2]=a+e}if(J[c+180>>2]|!b)break k;a=b;while(1){e=a;a=a+1|0;if(K[e|0])continue;break}a=0;e=e-b|0;t:{if((e|0)<0)break t;d=gc[J[659450]](e+1|0)|0;if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break t}a=tc(d,b,e);H[e+a|0]=0}J[c+180>>2]=a}bc=g- -64| -0;b=f;break a}a=b?b:21155}d=2;e=0}J[i>>2]=a;b=0;Cc(e,f,g,c,0,8,1549,d,a,0,0,0,38247,i)}bc=i+32|0;return b|0}function x4(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,p=0,q=0;n=bc-16|0;bc=n;g=8;a:{if(e>>>0>100)break a;b:{g=J[a+32>>2];if(!g)break b;l=J[a+40>>2];j=J[a+36>>2]+J[a+28>>2]|0;h=j;while(1){k=K[h+1|0]|K[h|0]<<8;if(!(k>>>0<=b>>>0&(K[h+3|0]|K[h+2|0]<<8)>>>0>=b>>>0)){h=h+8|0;g=g-1|0;if(g)continue;break b}break}g=8;i=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);i=i<<24|(i&65280)<<8| -(i>>>8&65280|i>>>24);if(i>>>0>l-j>>>0)break a;h=i+j|0;i=h+8|0;if(i>>>0>l>>>0)break b;q=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);o=K[h+2|0];p=K[h+3|0];c:{d:{e:{f:{g:{h:{g=K[h|0]|K[h+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break g;case 0:break h;case 4:case 18:break d;case 3:break e;case 2:break f;default:break b}}g=i+(b-k<<2)|0;if(l>>>0>>0)break b;b=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+7|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+ -3|0]<<24);h=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if((b|0)!=(h|0))break c;break b}if(l>>>0>>0)break b;J[n+12>>2]=h+12;m=K[h+11|0];j=K[h+10|0];i=K[h+9|0];g=K[h+8|0];if(AL(a,n+12|0,l))break b;h=b-k|0;b=m|(i<<16|g<<24|j<<8);h=P(h,b);b=h+b|0;break c}g=i+(b-k<<1)|0;if(l>>>0>>0)break b;b=K[g+3|0]|K[g+2|0]<<8;h=K[g+1|0]|K[g|0]<<8;if((b|0)!=(h|0))break c;break b}g=h+12|0;if(l>>>0>>0|l>>>0>>0)break b;i=K[h+11|0]|(K[h+9|0]<<16|K[h+8|0]<<24|K[h+10|0]<<8);if(i-1>>>0>=(l-g>>2)-1>>>0)break b; -h=0;while(1){if((K[g+1|0]|K[g|0]<<8)==(b|0)){b=K[g+7|0]|K[g+6|0]<<8;h=K[g+3|0]|K[g+2|0]<<8;break c}g=g+4|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break b}if(l>>>0>>0)break b;J[n+12>>2]=h+12;m=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);if(AL(a,n+12|0,l))break b;j=J[n+12>>2];g=K[j|0]|K[j+1|0]<<8|(K[j+2|0]<<16|K[j+3|0]<<24);i=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);h=j+4|0;if(i-1>>>0>=l-h>>1>>>0)break b;j=m<<24|(m&65280)<<8|(m>>>8&65280|m>>>24);g=0;while(1){if((K[h+1|0]|K[h|0]<<8)!=(b| -0)){h=h+2|0;g=g+1|0;if((i|0)!=(g|0))continue;break b}break}h=P(g,j);b=j+h|0}if(b>>>0>>0)break b;j=p|o<<8;k=bc-16|0;bc=k;g=6;b=b-h|0;i=(q<<24|(q&65280)<<8|(q>>>8&65280|q>>>24))+h|0;i:{if(!b|M[a+24>>2]>>0)break i;p=J[a+4>>2];g=nd(p,i+J[a+20>>2]|0);if(g)break i;g=yi(p,b,k+8|0);if(g)break i;i=J[k+8>>2];J[k+12>>2]=i;o=b+i|0;g=7;j:{k:{l:{m:{n:{o:{p:{q:switch(j-1|0){case 0:case 1:case 7:case 16:g=6;if((b|0)<5)break j;g=J[a+12>>2];I[g>>1]=K[i|0];I[g+2>>1]=K[i+1|0];I[g+4>>1]=H[i+2|0];I[g+6>>1]=H[i+ -3|0];b=K[i+4|0];I[g+14>>1]=0;I[g+10>>1]=0;I[g+12>>1]=0;I[g+8>>1]=b;H[a+16|0]=1;J[k+12>>2]=i+5;break p;case 18:break j;case 4:break o;case 5:case 6:case 8:case 17:break q;default:break k}g=AL(a,k+12|0,o);if(g)break j}b=1713;g=7;r:switch(j-1|0){case 16:case 17:break j;case 0:case 5:break l;case 8:break m;case 7:break n;case 4:break o;case 1:case 6:break r;default:break k}g=J[a+12>>2];j=L[g>>1];g=L[g+2>>1];i=P(j,g+7>>>3|0);if(i>>>0<=P(g,j)+7>>>3>>>0)break o;if((i|0)==(o-J[k+12>>2]|0))break l}b=1714; -break l}g=0;b=J[k+12>>2]+1|0;if(b>>>0>o>>>0)break j;J[k+12>>2]=b}b=1715}if(!K[a+17|0]){if(K[a+16|0]){j=J[a+12>>2];g=L[j+2>>1];i=J[a+8>>2];m=L[j>>1];J[i>>2]=m;J[i+4>>2]=g;j=3;s:{t:{u:{v:switch(K[a+18|0]-1|0){case 0:H[i+18|0]=1;g=g+7>>>3|0;j=2;break t;case 1:H[i+18|0]=3;g=g+3>>>2|0;j=4;break t;case 3:H[i+18|0]=4;g=g+1>>>1|0;j=16;break t;case 7:H[i+18|0]=2;break u;case 31:break v;default:break s}H[i+18|0]=7;g=g<<2}j=256}I[i+16>>1]=j;J[i+8>>2]=g;j=0;if(f)break s;g=P(g,m);if(!g)break s;j=YC(J[J[a>>2]+ -84>>2],g);if(j)break s;H[a+17|0]=1;j=0}}else j=6;g=j;if(g)break j}g=0;if(f)break j;g=gc[b|0](a,J[k+12>>2],o,c,d,e)|0;break j}g=8}Sf(p,k+8|0)}bc=k+16|0;break a}g=e?21:157}bc=n+16|0;return g}function yr(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=bc-16|0;bc=f;g=J[a+100>>2];J[f+8>>2]=0;d=zi(b,J[a+92>>2]);a:{if(d){b:{c:{d:{e=J[a+80>>2];d=J[d>>2];a=e+(d<<4)|0;switch(J[a+4>>2]-1|0){case 2:break b;case 1:break c;case 0:break d;default:break a}}b=J[a+12>>2];if(b)gc[J[g+8>>2]](g,b);J[a+12>>2]=0;if(!c| -!K[c|0])break a;l=a,m=ak(g,c,f+8|0),J[l+12>>2]=m;break a}a=0;e:{if(!c)break e;g=K[c|0];if(!g)break e;b=0;g=(g|0)==45;c=g+c|0;a=H[c|0];f:{if(!(K[((a&248)>>>3|0)+254784|0]>>>(a&7)&1))break f;while(1){if((b|0)>214748362){b=2147483647;break f}b=K[a+254816|0]+P(b,10)|0;a=H[c+1|0];c=c+1|0;if(K[((a&248)>>>3|0)+254784|0]>>>(a&7)&1)continue;break}}a=g?0-b|0:b}J[(e+(d<<4)|0)+12>>2]=a;break a}b=0;g:{if(!c)break g;a=H[c|0];g=a&255;if(!g|!(K[(g>>>3|0)+254784|0]>>>(a&7)&1))break g;while(1){if(b>>>0>429496727){b= --1;break g}b=K[a+254816|0]+P(b,10)|0;a=H[c+1|0];c=c+1|0;if(K[((a&248)>>>3|0)+254784|0]>>>(a&7)&1)continue;break}}J[(e+(d<<4)|0)+12>>2]=b;break a}h:{j=a+112|0;e=zi(b,j);if(!e){e=J[a+100>>2];J[f+12>>2]=0;if(!zi(b,j)){d=J[a+108>>2];i=f+12|0;d=Sc(e,16,d,d+1|0,J[a+104>>2],i);J[a+104>>2]=d;h=J[f+12>>2];if(h)break h;d=d+(J[a+108>>2]<<4)|0;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;k=Qc(b)+1|0;i=Sc(e,1,0,k,0,i);J[d>>2]=i;h=J[f+12>>2];if(h)break h;tc(i,b,k);J[d+4>>2]=1;J[d+8>>2]=0;h=ZC(J[d>>2],J[a+108>> -2]+83|0,j,e);if(h)break h;J[a+108>>2]=J[a+108>>2]+1}J[f+8>>2]=0;e=zi(b,j)}d=J[a+76>>2];if((d|0)==J[a+72>>2]){i:{if(!d){d=Sc(g,16,0,1,0,f+8|0);J[a+80>>2]=d;if(!J[f+8>>2])break i;break a}d=Sc(g,16,d,d+1|0,J[a+80>>2],f+8|0);J[a+80>>2]=d;if(J[f+8>>2])break a}d=(J[a+72>>2]<<4)+d|0;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[a+72>>2]=J[a+72>>2]+1}h=J[a+80>>2];j=J[a+76>>2];i=h+(j<<4)|0;d=J[e>>2];j:{if(d>>>0>=83){d=(J[a+104>>2]+(d<<4)|0)-1328|0;break j}d=(d<<4)+252368|0}J[i>>2]=J[d>>2];e=J[d+4>>2];J[i+ -4>>2]=e;J[i+8>>2]=J[d+8>>2];k:{l:{m:switch(e-1|0){case 0:J[i+12>>2]=0;if(!c|!K[c|0])break k;l=i,m=ak(g,c,f+8|0),J[l+12>>2]=m;if(!J[f+8>>2])break k;break a;case 1:d=0;if(!c)break l;e=K[c|0];if(!e)break l;k=(e|0)==45;e=k+c|0;c=H[e|0];n:{if(!(K[((c&248)>>>3|0)+254784|0]>>>(c&7)&1))break n;while(1){if((d|0)>214748362){d=2147483647;break n}d=K[c+254816|0]+P(d,10)|0;c=H[e+1|0];e=e+1|0;if(K[((c&248)>>>3|0)+254784|0]>>>(c&7)&1)continue;break}}d=k?0-d|0:d;break l;case 2:break m;default:break k}d=0;if(!c)break l; -e=H[c|0];k=e&255;if(!k|!(K[(k>>>3|0)+254784|0]>>>(e&7)&1))break l;while(1){if(d>>>0>429496727){d=-1;break l}d=K[e+254816|0]+P(d,10)|0;e=H[c+1|0];c=c+1|0;if(K[((e&248)>>>3|0)+254784|0]>>>(e&7)&1)continue;break}}J[(h+(j<<4)|0)+12>>2]=d}o:{p:{if(kd(b,241846,7))break p;switch(K[b+7|0]){case 0:case 9:case 10:case 13:case 32:break o;default:break p}}c=ZC(J[i>>2],J[a+76>>2],J[a+92>>2],g);J[f+8>>2]=c;if(c)break a}J[a+76>>2]=J[a+76>>2]+1;q:{if(kd(b,243460,12))break q;r:switch(K[b+12|0]){case 0:case 9:case 10:case 13:case 32:break r; -default:break q}J[a+36>>2]=J[(h+(j<<4)|0)+12>>2];break a}s:{if(kd(b,242772,11))break s;t:switch(K[b+11|0]){case 0:case 9:case 10:case 13:case 32:break t;default:break s}J[a+40>>2]=J[(h+(j<<4)|0)+12>>2];break a}u:{if(kd(b,242868,12))break u;v:switch(K[b+12|0]){case 0:case 9:case 10:case 13:case 32:break v;default:break u}J[a+44>>2]=J[(h+(j<<4)|0)+12>>2];break a}if(kd(b,240084,7))break a;w:switch(K[b+7|0]){case 0:case 9:case 10:case 13:case 32:break w;default:break a}b=J[(h+(j<<4)|0)+12>>2];if(!b){J[f+ -8>>2]=3;break a}x:switch(K[b|0]-67|0){case 13:case 45:J[a+28>>2]=8;break a;case 10:case 42:J[a+28>>2]=16;break a;case 0:case 32:break x;default:break a}J[a+28>>2]=32;break a}J[f+8>>2]=h}bc=f+16|0;return J[f+8>>2]}function wVa(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;e=bc-80|0;bc=e;a=mp(a,b,c,d);J[a+216>>2]=0;J[a+220>>2]=0;J[a>>2]=830864;J[a+224>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;J[a+236>>2]=0;J[a+240>>2]=0;J[a+244>>2]=0;i=a+248|0;J[i>>2]=0;J[i+4>>2]=0;J[a+256>>2]=0;J[e+48>> -2]=13;J[e+32>>2]=13;J[e+16>>2]=13;b=J[b+24>>2];J[695492]=0;ha(3207,c|0,b|0,e+48|0,0)|0;b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[695492]=0;b=ha(3203,J[e+56>>2],830253,e+32|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(J[b>>2]==4){J[695492]=0;aa(2808,e|0,J[e+40>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;_(3205,e+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;c=K[e+11|0];b=c<<24>>24;b=(b|0)<0;d:{if(((b?J[e+4>>2]:c)|0)!=6)break d; -b=b?J[e>>2]:e;if(Wc(b,784642,6)){if(Wc(b,785442,6))break d;b=5}else b=4;H[a+208|0]=b}J[695492]=0;b=ha(3203,J[e+56>>2],831E3,e+32|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(J[b>>2]==6){J[a+4>>2]=J[a+4>>2]|32768;J[695492]=0;J[e+64>>2]=13;b=ha(3283,J[e+40>>2],0,e- -64|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;f=J[b>>2]-3>>>0>=4294967294?J[e+64>>2]==1?+J[e+72>>2]:O[e+72>>3]:f;J[695492]=0;b=e- -64|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;O[a+216>>3]=f;J[695492]=0;J[e+ -64>>2]=13;b=ha(3283,J[e+40>>2],1,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+64>>2]==1?+J[e+72>>2]:O[e+72>>3]:f;J[695492]=0;b=e- -64|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;O[a+240>>3]=f;J[695492]=0;J[e+64>>2]=13;b=ha(3283,J[e+40>>2],2,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+64>>2]==1?+J[e+72>>2]:O[e+72>>3]:f;J[695492]=0;b=e- -64|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b; -O[a+232>>3]=f;J[695492]=0;J[e+64>>2]=13;b=ha(3283,J[e+40>>2],3,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+64>>2]==1?+J[e+72>>2]:O[e+72>>3]:f;J[695492]=0;_(3205,e- -64|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;O[a+224>>3]=f}J[695492]=0;b=e+32|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;b=ha(3203,J[e+56>>2],828696,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;e:{f:{if(J[b>>2]!=6)break f;J[a+4>>2]=J[a+4>>2]|65536;c=J[e+ -40>>2];if(J[c+12>>2]<=0)break f;while(1){J[695492]=0;b=ha(3283,c|0,k|0,e+16|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]:f;c=J[a+252>>2];g=J[a+256>>2];g:{if(c>>>0>>0){O[c>>3]=f;J[a+252>>2]=c+8;break g}d=J[i>>2];j=c-d>>3;b=j+1|0;if(b>>>0>=536870912){J[695492]=0;_(2399,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;break c}g=g-d|0;h=g>>2;g=g>>>0>=2147483640?536870911:b>>>0>>0?h:b;h:{if(!g){h=0;break h}if(g>>>0>=536870912){J[695492]= -0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}J[695492]=0;h=$(4,g<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}b=(j<<3)+h|0;O[b>>3]=f;j=b+8|0;if((c|0)!=(d|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(d|0))continue;break}J[a+256>>2]=(g<<3)+h;J[a+252>>2]=j;J[a+248>>2]=b;if(!d)break g;qc(d)}J[695492]=0;_(3205,e+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;k=k+1|0;c=J[e+40>>2];if((k|0)>2])continue;break}}J[695492]=0;_(3205,e+32|0);b=J[695492];J[695492]=0;if((b| -0)==1)break b;J[695492]=0;_(3205,e+48|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;if(H[e+11|0]<0)qc(J[e>>2]);bc=e+80|0;return a|0}break b}c=Z()|0;break a}B()}c=Z()|0;if(H[e+11|0]>=0)break a;qc(J[e>>2])}b=J[i>>2];if(b){J[a+252>>2]=b;qc(b)}lh(a);ba(c|0);B()}function X2a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[a+36>>2]>0){l=J[a+468>>2];i=J[a+216>>2];while(1){d=b;h=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{g= -J[i+36>>2];c=J[i+40>>2]+(g<<8)|0;if((c|0)<=2051){if((c|0)<=1025){K:switch(c-513|0){case 3:break i;case 0:break p;case 1:break J;case 2:break e;default:break K}b=352;e=0;L:switch(c-257|0){case 1:break h;case 0:break a;default:break L}switch(c-771|0){case 3:break j;case 0:break I;default:break e}}if((c|0)<=1538){M:switch(c-1026|0){case 6:break k;case 0:break q;case 2:break H;case 1:case 3:case 4:case 5:break e;default:break M}switch(c-1285|0){case 5:break l;case 0:break G;default:break e}}N:switch(c- -1539|0){case 9:break m;case 0:break r;case 3:break F;case 1:case 2:case 4:case 5:case 6:case 7:case 8:break e;default:break N}switch(c-1799|0){case 7:break n;case 0:break E;default:break e}}if((c|0)<=3077){if((c|0)<=2564)switch(c-2052|0){case 12:break o;case 0:break s;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break e;case 4:break g;default:break f}switch(c-2565|0){case 0:break t;case 5:break D;case 1:case 2:case 3:case 4:break e;default:break C}}if((c|0)<=3590)switch(c- -3078|0){case 0:break u;case 6:break B;case 1:case 2:case 3:case 4:case 5:break e;default:break A}O:switch(c-3591|0){case 0:break v;case 7:break z;case 1:case 2:case 3:case 4:case 5:case 6:break e;default:break O}switch(c-4104|0){case 0:break w;case 8:break x;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break e;default:break y}}b=353;e=0;break a}b=354;break a}b=355;e=0;break a}b=356;e=0;break a}b=357;e=0;break a}b=358;e=0;break a}b=359;e=0;break a}if((c|0)!=2827)break e;b=360;e=0;break a}b=361; -e=0;break a}if((c|0)!=3341)break e;b=362;e=0;break a}b=363;e=0;break a}if((c|0)!=3855)break e;b=364;e=0;break a}b=365;e=0;break a}b=366;e=0;break a}b=367;e=0;break a}b=368;e=0;break a}b=369;e=0;break a}b=370;e=0;break a}b=371;e=0;break a}b=372;e=0;break a}b=373;e=0;break a}b=374;e=0;break a}b=375;e=0;break a}b=376;e=0;break a}b=377;e=0;break a}b=378;e=0;break a}b=379;break a}b=380;e=0;break a}b=381;break a}e=J[a+72>>2];if(e>>>0<3)break d;b=J[a>>2];J[b+20>>2]=49;gc[J[b>>2]](a);break c}if((c|0)==2313)break b}b= -J[a>>2];J[b+24>>2]=g;J[b+20>>2]=7;J[J[a>>2]+28>>2]=J[i+40>>2];gc[J[J[a>>2]>>2]](a);break c}b=J[(e<<2)+55040>>2];break a}b=d;e=h;break a}b=382;e=0}d=(k<<2)+l|0;J[d+4>>2]=b;P:{if(!J[i+52>>2]|J[d+44>>2]==(e|0))break P;h=J[i+80>>2];if(!h)break P;J[d+44>>2]=e;Q:switch(e|0){case 0:c=J[i+84>>2];d=0;while(1){J[c+(d<<2)>>2]=L[h+(d<<1)>>1];g=d|1;J[c+(g<<2)>>2]=L[h+(g<<1)>>1];g=d|2;J[c+(g<<2)>>2]=L[h+(g<<1)>>1];g=d|3;J[c+(g<<2)>>2]=L[h+(g<<1)>>1];d=d+4|0;if((d|0)!=64)continue;break}break P;case 1:c=J[i+84>> -2];d=0;while(1){g=d<<1;J[c+(d<<2)>>2]=P(I[g+54848>>1],L[h+g>>1])+2048>>12;f=d|1;g=f<<1;J[c+(f<<2)>>2]=P(I[g+54848>>1],L[h+g>>1])+2048>>12;d=d+2|0;if((d|0)!=64)continue;break}break P;case 2:c=J[i+84>>2];g=0;d=0;while(1){j=O[(g<<3)+54976>>3];N[c+(d<<2)>>2]=j*+L[h+(d<<1)>>1]*.125;f=d|1;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.387039845*.125;f=d|2;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.306562965*.125;f=d|3;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.175875602*.125;f=d|4;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.125;f=d|5;N[c+(f<< -2)>>2]=j*+L[h+(f<<1)>>1]*.785694958*.125;f=d|6;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.5411961*.125;f=d|7;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.275899379*.125;d=d+8|0;g=g+1|0;if((g|0)!=8)continue;break}break P;default:break Q}d=J[a>>2];J[d+20>>2]=49;gc[J[d>>2]](a)}i=i+88|0;k=k+1|0;if((k|0)>2])continue;break}}}function Apb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{b:{c:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break c; -if(K[a+289|0])break c;d:{if(c>>>0<2)break d;h=d;while(1){f=K[h+1|0];h=h+1|0;if(f)continue;break}h=(h-d|0)>(c|0)?c+d|0:h;g=h-d|0;j=(g^-1)+c|0;f=(c|0)!=(g|0)?j:0;if(f-1>>>0<=2)break b;k=g-1|0;if(!f){j=0;break d}g=K[h+1|0]?8:4;g=K[h+2|0]?g+4|0:g;l=K[h+3|0]?g+17|0:g;if(K[h+4|0]){if(!(f-l&3))break d;break b}f=(f|0)==(l|0);l=j;if(f)break d;break b}e:{f:{g:{if(!c)break g;g=K[d|0];f=0;h:{if(!g)break h;f=g;if(!K[a+264|0])break h;f=1;if(g>>>0>5)break h;g=g<<3;f=g&31;if((g&63)>>>0>=32)f=513>>>f|0;else f=((1<< -f)-1&513)<<32-f|17040129>>>f}m=f;if(!j)break g;n=K[h+2|0];o=K[h+1|0];if(o){f=K[h+5|0]|K[h+6|0]<<8|(K[h+7|0]<<16|K[h+8|0]<<24);q=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=h+9|0}else f=h+5|0;g=K[h+3|0];if(n){i=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);r=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);f=f+4|0}if(g&255)break f}g=0;f=0;break e}i=K[f+13|0]|K[f+14|0]<<8|(K[f+15|0]<<16|K[f+16|0]<<24);s=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);t=i<<24|(i&65280)<< -8|(i>>>8&65280|i>>>24);i=K[f+5|0]|K[f+6|0]<<8|(K[f+7|0]<<16|K[f+8|0]<<24);u=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=K[f+1|0]|K[f+2|0]<<8|(K[f+3|0]<<16|K[f+4|0]<<24);v=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);f=K[f|0]}i:{m=m&255;g=g&255;i=f&255;j:{if(K[a+114|0]){f=gc[J[a+152>>2]](64)|0;if(!f){Dc(a,1,0,0);g=1;break j}J[f+4>>2]=1052;J[f>>2]=1053;p=J[a+700>>2];k:{if(p){J[p+8>>2]=f;break k}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=p;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+ -444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+60>>2]=s;J[f+56>>2]=t;J[f+52>>2]=u;J[f+48>>2]=v;H[f+45|0]=i;H[f+44|0]=g;J[f+40>>2]=r;H[f+36|0]=n;J[f+32>>2]=q;H[f+29|0]=o;H[f+28|0]=m}g=c8(a,m,o,q,n,r,g,i,v,u,t,s)}l:{if(g)break l;if(!K[a+112|0])return 0;g=gc[J[b+4>>2]](a,b,e)|0;if(g)break l;f=J[e>>2];b=!c;H[f+32|0]=b;if(b)return 0;b=K[d|0];c=b;m:{if(!K[a+264|0])break m;c=1;if(b>>>0>5)break m;c=b<<3;b=c&31;if((c&63)>>>0>=32)c=513>>>b|0;else c=((1<>>b}J[f+ -36>>2]=k;H[f+33|0]=c;if(k){b=gc[J[a+152>>2]](k+1|0)|0;J[J[e>>2]+40>>2]=b;b=J[J[e>>2]+40>>2];if(!b)break a;tc(b,d+1|0,k)}if(!j)return 0;b=J[e>>2];c=K[h+1|0];H[b+44|0]=c;d=K[h+2|0];H[b+45|0]=d;f=K[h+3|0];H[b+46|0]=f;g=K[h+4|0];H[b+47|0]=g;if(c){c=K[h+5|0]|K[h+6|0]<<8|(K[h+7|0]<<16|K[h+8|0]<<24);J[b+48>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=h+9|0}else c=h+5|0;if(d){d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+52>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c=c+4|0}if(f){H[b+56|0]=K[c|0]; -d=K[c+1|0]|K[c+2|0]<<8|(K[c+3|0]<<16|K[c+4|0]<<24);J[b+60>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=K[c+5|0]|K[c+6|0]<<8|(K[c+7|0]<<16|K[c+8|0]<<24);J[b+64>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=K[c+9|0]|K[c+10|0]<<8|(K[c+11|0]<<16|K[c+12|0]<<24);J[b+68>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=K[c+13|0]|K[c+14|0]<<8|(K[c+15|0]<<16|K[c+16|0]<<24);J[b+72>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c=c+17|0}if(!g)return 0;d=b;b=j-l|0;J[d+76>>2]=b>>>2;g=0;if(b>>>0<4)break l;b=gc[J[a+152>> -2]](b&-4)|0;J[J[e>>2]+80>>2]=b;e=J[e>>2];d=J[e+80>>2];if(!d)break i;if(!J[e+76>>2])break l;b=0;while(1){a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[d>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=c+4|0;d=d+4|0;b=b+1|0;if(b>>>0>2])continue;break}}return g|0}break a}Dc(a,1029,0,0);return 1029}Dc(a,1028,0,0);return 1028}Dc(a,1,0,0);return 1}function fY(a,b,c,d,e,f,g,h,i,j){var 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,G=0,K=0,L=0,M=0;s=bc- -16|0;bc=s;a:{if(J[a+160>>2]){b=J[a+200>>2];if(!b){O[a+176>>3]=d;O[a+168>>3]=c}J[a+200>>2]=b+h;O[a+192>>3]=d+f;O[a+184>>3]=c+e;break a}if(!(!(J[a+148>>2]?J[a+32>>2]:0)&(!J[a+36>>2]|!J[a+152>>2]))){J[a+128>>2]=J[a+128>>2]+h;break a}m=O[b+552>>3];n=O[a+64>>3];q=O[b+16>>3];u=O[b+504>>3];if((g|0)==32)m=m+O[b+560>>3];b:{r=n;n=e;e=m*O[b+568>>3];m=n-(u*e+O[b+520>>3]*0);n=O[b+32>>3];f=f-(O[b+512>>3]*e+O[b+528>>3]*0);e=q*m+n*f;z=q*c+n*d+O[b+48>>3];c:{if(r>e+z)break c;n=O[a+112>>3];if(n-O[a+72>>3]>3];r=q*m;m=O[b+40>>3];f=r+f*m;A=O[b+56>>3]+(q*c+m*d);if(O[a+80>>3]>f+A)break c;c=O[a+120>>3];if(cn)break c;if(!(c-O[a+88>>3]>2]=J[a+128>>2]+h;break a}g=0;d:{if(!(R(f)<3)|(J[J[689612]+212>>2]|!(R(e)<3)))break d;k=J[a+156>>2];J[a+156>>2]=k+1;if((k|0)<5E4)break d;J[a+128>>2]=J[a+128>>2]+h;break a}e:{f:{if((j|0)<=0)break f;g:{while(1){k=J[(g<<2)+i>>2];if(!((k|0)==9|(k|0)==160)&(k|0)!=32)break g;g=g+1|0;if((j|0)!=(g|0))continue;break}g=j}k=(j|0)<=0;if(!k&(g|0)==(j|0))break e; -if(k)break f;g=0;while(1){l=J[a+104>>2];t=l-g|0;k=J[a+100>>2];if(!((l|0)>19999|(t|0)>7)){l=l<<1;J[a+104>>2]=l;k=Nd(k,l,4);J[a+100>>2]=k;t=J[a+104>>2]-g|0}l=J[a+96>>2];w=(g<<2)+k|0;p=J[(o<<2)+i>>2];h:{i:{if(p>>>0<=255){k=J[l+(p<<2)>>2];if((k|0)!=-1)break i}k=J[l+1028>>2];if((k|0)>0){x=J[l+1024>>2];v=-1;while(1){j:{l=(k+v|0)/2|0;y=J[x+P(l,40)>>2];if(y>>>0

      >>0){v=l;break j}if(p>>>0>>0){k=l;break j}k=0;k:{if((t|0)<=0)break k;l=x+P(l,40)|0;if(J[l+36>>2]<=0)break k;while(1){p=k<<2;J[p+w>>2]=J[(l+p| -0)+4>>2];k=k+1|0;if((t|0)<=(k|0))break k;if(J[l+36>>2]>(k|0))continue;break}}break h}if((k-v|0)>1)continue;break}}k=p}J[w>>2]=k;k=1}g=g+k|0;o=o+1|0;if((o|0)!=(j|0))continue;break}p=1;if((g|0)<=0)break f;l:{if((g|0)==1)break l;j=0;while(1){i=ok(J[J[a+100>>2]+(j<<2)>>2]);p=!i;if(!i)break l;j=j+1|0;if((j|0)!=(g|0))continue;break}}k=b+400|0;v=b+252|0;l=b+392|0;w=b+124|0;c=+(g|0);u=f/c;B=e/c;c=O[a+136>>3];i=J[a+132>>2];n=c*O[i+32>>3];q=O[i+24>>3]*c;i=0;while(1){d=+(i|0);c=d*u+A;d=d*B+z;m:{n:switch(J[a+ -144>>2]-1|0){default:m=c-q;e=B+d;c=c-n;break m;case 0:e=q+d;d=n+d;m=c;c=u+c;break m;case 1:m=n+c;e=d;d=B+d;c=q+c;break m;case 2:break n}m=u+c;e=d-n;d=d-q}t=0;if(J[a+28>>2]|J[a+44>>2]){f=(e+d)*.5;r=(m+c)*.5;t=f>3]|r>3]|f>O[b+648>>3]|r>O[b+656>>3]}j=J[b+420>>2];o:{if((J[b+592>>2]&3)==1){o=J[b+120>>2];gc[J[J[o>>2]+20>>2]](o,v,s+4|0,j);j=k;break o}o=J[b+116>>2];gc[J[J[o>>2]+20>>2]](o,w,s+4|0,j);j=l}o=J[a+204>>2];r=O[j>>3];j=rc(96);x=J[J[a+100>>2]+((p?i:(i^-1)+g|0)<<2)>>2];C=O[a+136>> -3];y=J[a+132>>2];D=J[a+152>>2];E=J[a+144>>2];F=J[b+592>>2];G=J[a+128>>2];K=J[s+4>>2];L=J[s+8>>2];M=J[s+12>>2];O[j+40>>3]=c;O[j+32>>3]=e;O[j+24>>3]=m;O[j+16>>3]=d;J[j+8>>2]=h;J[j+4>>2]=G;J[j>>2]=x;p:{if(!(d>e)){f=e;e=d;break p}O[j+32>>3]=d;O[j+16>>3]=e;f=d}q:{if(!(c>3]=m;O[j+24>>3]=c;d=m}if(e<-1E8){J[j+16>>2]=0;J[j+20>>2]=-1047013500}if(f>1E8){J[j+32>>2]=0;J[j+36>>2]=1100470148}if(c<-1E8){J[j+24>>2]=0;J[j+28>>2]=-1047013500}if(d>1E8){J[j+40>>2]=0;J[j+44>>2]=1100470148}H[j+ -91|0]=(F|0)==3|r<.001;H[j+90|0]=t;H[j+89|0]=D;H[j+88|0]=E;I[j+92>>1]=0;O[j+80>>3]=+(M|0)*1.52587890625E-5;O[j+72>>3]=+(L|0)*1.52587890625E-5;O[j+64>>3]=+(K|0)*1.52587890625E-5;O[j+56>>3]=C;J[j+48>>2]=y;id(o,j);i=i+1|0;if((i|0)!=(g|0))continue;break}}J[a+128>>2]=J[a+128>>2]+h;break a}J[a+128>>2]=J[a+128>>2]+h;a=J[a+204>>2];b=J[a+8>>2];if((b|0)<=0)break a;H[J[(J[a>>2]+(b<<2)|0)-4>>2]+92|0]=1}bc=s+16|0}function yYa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0, -l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;n=bc-80|0;bc=n;a:{if(!a)break a;o=J[a+52>>2];b:{if(!J[a+104>>2])break b;k=J[a+8>>2];if(J[k+48>>2])break b;k=J[k+44>>2];if(k)if(J[k+36>>2]|J[k+40>>2]|(J[k+44>>2]|J[k+48>>2]))break b;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=522;l=J[a>>2];k=0;c:{if(!l)break c;k=0;if(J[l+108>>2]!=-554844497)break c;k=J[l+124>>2]}l=J[a+112>>2];j=J[a+108>>2];J[n+64>>2]=0;J[n+68>>2]=0;Cc(k,l,j,a,0,4,522,2,0,0,0,0,29465,n- -64|0);J[a+100>>2]=0}J[a+104>>2]=0}k=0;d:{if(d|!c)break d;if(J[a+ -364>>2]){l=NB(J[a+296>>2],c,b);b=l?l:b;break d}if(!b){b=0;break d}j=Qc(b);l=Qc(c);m=j+l|0;p=gc[J[659450]](m+2|0)|0;if(!p){J[n+48>>2]=14100;Cc(0,0,0,0,0,2,2,3,14100,0,0,0,32863,n+48|0);break d}k=tc(p,c,l);l=l+k|0;H[l|0]=58;tc(l+1|0,b,j);H[(k+m|0)+1|0]=0}e:{j=J[a+372>>2];if(j){J[a+372>>2]=J[j+24>>2];J[a+368>>2]=J[a+368>>2]-1;J[j>>2]=0;J[j+4>>2]=0;J[j+56>>2]=0;J[j+48>>2]=0;J[j+52>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0; -J[j+12>>2]=0;J[j+4>>2]=1;f:{if(J[a+364>>2]){k=b;break f}if(k)break f;g:{h:{if(!b)break h;k=b;while(1){l=k;k=l+1|0;if(K[l|0])continue;break}l=l-b|0;if((l|0)<0)break h;k=gc[J[659450]](l+1|0)|0;if(k)break g;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[j+8>>2]=0;J[a+84>>2]=2;c=J[a>>2];b=0;i:{if(!c)break i;b=0;if(J[c+108>>2]!=-554844497)break i;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[n+36>>2]=0;J[n+32>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,4440,n+32|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}r= -tc(k,b,l)+l|0,s=0,H[r|0]=s}J[j+8>>2]=k;if(!J[689540])break e;b=J[689537];if(!b)break e;gc[b|0](j);break e}j:{if(J[a+364>>2]){j=QJ(J[a+8>>2],b);break j}l=J[a+8>>2];if(!k){j=zB(l,b);break j}j=QJ(l,k)}if(j)break e;J[a+84>>2]=2;c=J[a>>2];b=0;k:{if(!c)break k;b=0;if(J[c+108>>2]!=-554844497)break k;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[n+4>>2]=0;J[n>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,4440,n);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}l:{if(!J[a+280>>2])break l;b=J[a+36>>2];if(!b)break l; -b=J[b+28>>2];I[j+56>>1]=(b|0)>=65535?65535:b}if(!o)Ug(J[a+8>>2],j);m:{if((e|0)<=0)break m;p=j+48|0;b=0;if(!d){k=0;l=0;while(1){m=k<<2;m=hl(0,J[(m|4)+f>>2],J[f+m>>2]);if(m){J[(l?l:p)>>2]=m;l=m}k=k+2|0;b=b+1|0;if((e|0)!=(b|0))continue;break}break m}k=0;l=0;while(1){m=k<<2;q=J[m+f>>2];m=hl(0,J[(m|4)+f>>2],q);if(m){J[(l?l:p)>>2]=m;if((c|0)==(q|0))J[j+36>>2]=m;l=m}k=k+2|0;b=b+1|0;if((e|0)!=(b|0))continue;break}}J[a+264>>2]=-1;ow(a,j);n:{if(!o)break n;if(J[o+4>>2]==1){Ug(o,j);break n}JB(o,j)}g=h?g-(K[a+ -276|0]&4?0:h)|0:g;o:{if(J[j+36>>2]|!d)break o;b=jl(J[a+8>>2],o,c);J[j+36>>2]=b;if(b)break o;f=9668;p:{if((c|0)!=9668){if(!c)break p;b=c;while(1){d=K[b|0];if((d|0)!=K[f|0])break p;f=f+1|0;b=b+1|0;if(d)continue;break}}b=jl(J[a+8>>2],j,c);J[j+36>>2]=b;if(b)break o}if(!hl(j,0,c)){er(a,4440);break a}if(c){uB(a,201,34917,c,0);break o}uB(a,201,34877,0,0)}if((g|0)<=0)break a;b=0;k=0;while(1){q:{r:{c=(b<<2)+i|0;d=J[c+4>>2];s:{if(!d|J[c+8>>2])break s;if(J[a+364>>2]){d=NB(J[a+296>>2],d,J[c>>2]);if(!d)break s; -DJ(a,d,0,J[c+12>>2],J[c+16>>2]);break q}e=J[c>>2];if(!e)break s;h=Qc(e);f=Qc(d);l=h+f|0;j=gc[J[659450]](l+2|0)|0;if(j)break r;J[n+16>>2]=14100;Cc(0,0,0,0,0,2,2,3,14100,0,0,0,32863,n+16|0)}DJ(a,J[c>>2],J[c+4>>2],J[c+12>>2],J[c+16>>2]);break q}d=tc(j,d,f);f=d+f|0;H[f|0]=58;tc(f+1|0,e,h);H[(d+l|0)+1|0]=0;DJ(a,d,0,J[c+12>>2],J[c+16>>2]);gc[J[659451]](d)}b=b+5|0;k=k+1|0;if((k|0)!=(g|0))continue;break}}bc=n+80|0}function $1a(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=bc-160|0;bc=c;J[a+ -8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=K[b+11|0];g=d<<24>>24<0;a:{b:{c:{e=g?J[b+4>>2]:d;d:{if(!e)break d;J[c+156>>2]=0;J[c+152>>2]=0;d=J[b>>2];J[695492]=0;la(1636,(g?d:b)|0,e|0,c+156|0,c+152|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break c;j=zR(J[c+156>>2]);if(j){e:{f:{g:{h:{i:{j:{while(1){k:{J[695492]=0;h=$(2867,j|0)|0;d=J[695492];J[695492]=0;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if((d|0)!=1){if(!h)break e;switch(K[h+18|0]){case 4:break w;case 0:break x;default:continue}}b=Z()|0;break b}i=J[c+156>>2]; -f=Qc(i);if(f>>>0>=2147483632){J[695492]=0;_(1623,c+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break u;break a}y:{if(f>>>0<=10){H[c+23|0]=f;d=c+12|0;break y}J[695492]=0;g=(f|15)+1|0;d=$(4,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break v;J[c+12>>2]=d;J[c+16>>2]=f;J[c+20>>2]=g|-2147483648}k=Zc(d,i,f)+f|0,l=0,H[k|0]=l;J[695492]=0;e=aa(2668,c+12|0,28650)|0;d=J[695492];J[695492]=0;if((d|0)==1)break t;J[c+32>>2]=J[e+8>>2];d=J[e+4>>2];J[c+24>>2]=J[e>>2];J[c+28>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;i=h+ -19|0;f=Qc(i);if(f>>>0>=2147483632){J[695492]=0;_(1623,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;break q}z:{if(f>>>0<=10){H[c+11|0]=f;d=c;break z}J[695492]=0;g=(f|15)+1|0;d=$(4,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;J[c>>2]=d;J[c+4>>2]=f;J[c+8>>2]=g|-2147483648}k=Zc(d,i,f)+f|0,l=0,H[k|0]=l;J[695492]=0;e=K[c+11|0];d=e<<24>>24<0;e=ga(2669,c+24|0,(d?J[c>>2]:c)|0,(d?J[c+4>>2]:e)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r;J[c+48>>2]=J[e+8>>2];d=J[e+4>>2];J[c+40>>2]=J[e>> -2];J[c+44>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;if(H[c+11|0]<0)qc(J[c>>2]);if(H[c+35|0]<0)qc(J[c+24>>2]);if(H[c+23|0]<0)qc(J[c+12>>2]);g=J[c+40>>2];e=H[c+51|0];Rk((e|0)<0?g:c+40|0,c+56|0);d=J[c+60>>2]&61440;if((e|0)<0)qc(g);if((d|0)!=16384)continue}if(K[h+19|0]==46)continue;e=h+19|0;d=Qc(e);J[695492]=0;ca(1618,c+56|0,e|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break k;d=K[b+11|0];i=d<<24>>24<0;g=i?J[b+4>>2]:d;f=g+1|0;if(f>>>0<1073741808)break o;J[695492]=0;_(2793,c+24|0);break n}b=Z()|0;break b}b= -Z()|0;break b}b=Z()|0;break p}b=Z()|0;break q}b=Z()|0;if(H[c+11|0]>=0)break q;qc(J[c>>2])}if(H[c+35|0]>=0)break p;qc(J[c+24>>2])}if(H[c+23|0]>=0)break b;qc(J[c+12>>2]);break b}if(f>>>0<=1){J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;H[c+35|0]=f;h=c+24|0;break l}d=f|3;if(d>>>0<1073741823)break m;J[695492]=0;ka(209)}b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;break f}J[695492]=0;e=d+1|0;h=$(4,e<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;J[c+28>>2]=f;J[c+24>>2]=h;J[c+32>>2]=e|-2147483648}d= -g<<2;d=Zc(h,i?J[b>>2]:b,d)+d|0;J[d>>2]=47;J[d+4>>2]=0;J[695492]=0;e=K[c+67|0];d=e<<24>>24<0;e=ga(2794,c+24|0,(d?J[c+56>>2]:c+56|0)|0,(d?J[c+60>>2]:e)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[c+48>>2]=J[e+8>>2];d=J[e+4>>2];J[c+40>>2]=J[e>>2];J[c+44>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;e=J[a+4>>2];A:{if(e>>>0>2]){d=J[c+44>>2];J[e>>2]=J[c+40>>2];J[e+4>>2]=d;J[e+8>>2]=J[c+48>>2];J[c+48>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[a+4>>2]=e+12;break A}J[695492]=0;da(2791,a|0,c+40|0);d=J[695492]; -J[695492]=0;if((d|0)==1)break h;if(H[c+51|0]>=0)break A;qc(J[c+40>>2])}if(H[c+35|0]<0)qc(J[c+24>>2]);if(H[c+67|0]>=0)continue;qc(J[c+56>>2]);continue}break}b=Z()|0;break b}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;if(H[c+51|0]>=0)break g;qc(J[c+40>>2])}if(H[c+35|0]>=0)break f;qc(J[c+24>>2])}if(H[c+67|0]>=0)break b;qc(J[c+56>>2]);break b}SR(j)}a=J[c+156>>2];if(!a)break d;qc(a)}bc=c+160|0;return}b=Z()|0}sg(a);ba(b|0);B()}B()}function L4a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j= -0;f=bc+-64|0;bc=f;a:{if(!J[a+20>>2]){e=0;break a}g=K[c+11|0];h=g<<24>>24<0;lm(f+52|0,h?J[c>>2]:c,h?J[c+4>>2]:g,0);g=J[d>>2];J[695492]=0;h=f+12|0;da(2667,h|0,g|0);g=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((g|0)!=1){J[695492]=0;g=aa(2668,h|0,19865)|0;h=J[695492];J[695492]=0;if((h|0)==1)break n;J[f+32>>2]=J[g+8>>2];h=J[g+4>>2];J[f+24>>2]=J[g>>2];J[f+28>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;j=O[e>>3];J[695492]=0;j=j*100+.5;o:{if(R(j)<2147483648){e=~~j;break o}e=-2147483648}da(2667, -f|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break m;J[695492]=0;e=K[f+11|0];g=e<<24>>24<0;e=ga(2669,f+24|0,(g?J[f>>2]:f)|0,(g?J[f+4>>2]:e)|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;J[f+48>>2]=J[e+8>>2];g=J[e+4>>2];J[f+40>>2]=J[e>>2];J[f+44>>2]=g;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;e=K[f+51|0];g=e<<24>>24<0;ga(2669,f+52|0,(g?J[f+40>>2]:f+40|0)|0,(g?J[f+44>>2]:e)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k;if(H[f+51|0]<0)qc(J[f+40>>2]);if(H[f+11|0]<0)qc(J[f>>2]);if(H[f+35|0]< -0)qc(J[f+24>>2]);if(H[f+23|0]<0)qc(J[f+12>>2]);J[695492]=0;e=f+52|0;J[f+24>>2]=e;h=a+8|0;oa(2670,f+40|0,h|0,e|0,350532,f+24|0,f+12|0);e=J[695492];J[695492]=0;if((e|0)!=1){e=J[J[f+40>>2]+28>>2];if(!e)break g;a=J[J[e>>2]+8>>2];J[695492]=0;$(a|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break f}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break h}c=Z()|0;break i}c=Z()|0;break j}c=Z()|0;if(H[f+51|0]>=0)break j;qc(J[f+40>>2])}if(H[f+11|0]>=0)break i;qc(J[f>>2])}if(H[f+35|0]>=0)break h;qc(J[f+24>>2])}if(H[f+ -23|0]>=0)break b;qc(J[f+12>>2]);break b}g=J[a+20>>2];i=J[J[g>>2]+16>>2];e=0;J[695492]=0;c=aa(i|0,g|0,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;if(!c)break f;d=J[d>>2];J[695492]=0;b=ga(2671,b|0,c|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;if(!b)break f;e=J[a+36>>2];p:{if((e|0)==-1)break p;J[695492]=0;d=$(4,20)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[d>>2]=0;g=d+8|0;q:{if(H[f+63|0]>=0){i=J[f+56>>2];J[g>>2]=J[f+52>>2];J[g+4>>2]=i;J[g+8>>2]=J[f+60>>2];break q}J[695492]=0;ca(2672, -g|0,J[f+52>>2],J[f+56>>2]);e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[a+36>>2]}J[d+4>>2]=a+24;g=J[a+24>>2];J[d>>2]=g;J[g+4>>2]=d;J[a+24>>2]=d;d=J[a+32>>2]+1|0;J[a+32>>2]=d;if((d|0)<=(e|0))break p;r:{s:{t:{d=J[a+28>>2];u:{if(H[d+19|0]>=0){J[f+48>>2]=J[d+16>>2];e=J[d+12>>2];J[f+40>>2]=J[d+8>>2];J[f+44>>2]=e;break u}e=J[d+12>>2];d=J[d+8>>2];J[695492]=0;ca(2672,f+40|0,d|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break t}J[695492]=0;e=Tt(h,f+40|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;if((e| -0)==(a+12|0))break r;d=J[e+28>>2];if(!d)break s;g=J[J[d>>2]+12>>2];J[695492]=0;$(g|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break s;break c}c=Z()|0;break b}d=J[a+28>>2];g=J[d>>2];i=J[d+4>>2];J[g+4>>2]=i;J[i>>2]=g;J[a+32>>2]=J[a+32>>2]-1;if(H[d+19|0]<0)qc(J[d+8>>2]);qc(d)}J[695492]=0;p2(h,e);a=J[695492];J[695492]=0;if((a|0)==1)break c;if(H[f+51|0]>=0)break p;qc(J[f+40>>2])}J[b+168>>2]=c;a=J[J[c>>2]+8>>2];J[695492]=0;$(a|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;a=f+52|0; -J[f+24>>2]=a;oa(2670,f+40|0,h|0,a|0,350532,f+24|0,f+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;J[J[f+40>>2]+28>>2]=b;a=J[J[b>>2]+8>>2];J[695492]=0;$(a|0,b|0)|0;a=J[695492];J[695492]=0;e=b;if((a|0)==1)break e}if(H[f+63|0]>=0)break a;qc(J[f+52>>2]);break a}c=Z()|0;break b}c=Z()|0;qc(d);break b}c=Z()|0;if(H[f+51|0]>=0)break b;qc(J[f+40>>2])}if(H[f+63|0]<0)qc(J[f+52>>2]);ba(c|0);B()}bc=f- -64|0;return e|0}function Tna(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;o=bc-16|0;bc=o;m=J[c>>2];i=K[c+11|0];n=i<<24>>24<0;J[o+12>>2]=n?J[c+4>>2]:i;i=a;p=b;n=n?m:c;k=bc-16|0;bc=k;a:{b:{m=o+12|0;c:{if(!J[m>>2]){J[a>>2]=0;H[a+11|0]=0;break c}J[i>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;a=J[p>>2];c=bc-32|0;bc=c;f=k+4|0;J[f>>2]=0;H[f+11|0]=0;J[695492]=0;J[c+28>>2]=0;h=c+28|0;b=ga(6200,d|0,-1,h|0)|0;g=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((g|0)!=1){i:{if(J[c+28>>2]<=0){J[c+12>>2]=n;g=J[m>>2];J[695492]=0;a=K[J[J[b+24>>2]+12>>2]+70|0];j=J[695492];J[695492]= -0;j:{k:{l:{m:{n:{if((j|0)!=1){J[695492]=0;j=(g>>>0)/(a>>>0)|0;a=$(27,(j&1073741824?-1:j<<2)|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break j;J[695492]=0;J[c>>2]=a;Ca(6196,b|0,c|0,(j<<1)+a|0,c+12|0,g+n|0,0,1,h|0);g=J[695492];J[695492]=0;if((g|0)==1)break n;if(J[c+28>>2]>0)break k;J[695492]=0;j=J[c>>2]-a|0;ca(3525,f|0,j|0,0);g=J[695492];J[695492]=0;if((g|0)==1)break m;J[c+24>>2]=0;l=J[f>>2];q=J[f+4>>2];g=K[f+11|0];J[695492]=0;r=l;l=g<<24>>24<0;DK(l?r:f,l?q:g,c+24|0,a,j>>1,h);h=J[695492];J[695492]=0; -if((h|0)!=1){if(J[c+28>>2]>0)break l;J[695492]=0;ca(3525,f|0,J[c+24>>2],0);h=J[695492];J[695492]=0;if((h|0)!=1)break k}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;break f}if(H[f+11|0]<0){J[J[f>>2]>>2]=0;J[f+4>>2]=0;break k}H[f+11|0]=0;J[f>>2]=0}qc(a);J[695492]=0;_(6198,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i}e=Z()|0;break f}J[695492]=0;la(6199,c+12|0,a|0,n|0,m|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;if(H[f+11|0]<0)qc(J[f>>2]);a=J[c+16>>2];J[f>>2]=J[c+12>>2];J[f+4>> -2]=a;J[f+8>>2]=J[c+20>>2]}o:{p:{if(e)break p;a=K[f+11|0];if(a<<24>>24<0?J[f+4>>2]:a)break p;a=J[m>>2];if(!a)break p;if(a>>>0>=2147483632){J[695492]=0;_(1623,c+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break o;break e}q:{if(a>>>0<=10){H[c+23|0]=a;g=c+12|0;break q}J[695492]=0;b=(a|15)+1|0;g=$(4,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;J[c+12>>2]=g;J[c+16>>2]=a;J[c+20>>2]=b|-2147483648}s=tc(g,n,a)+a|0,t=0,H[s|0]=t;b=H[c+23|0];a=(b|0)<0;h=a?J[c+16>>2]:b&255;if(h>>>0>=1073741808){J[695492]=0; -_(2793,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;break g}b=J[c+12>>2];r:{s:{if(h>>>0>=2){e=h|3;if(e>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break e;break g}J[695492]=0;g=e+1|0;e=$(4,g<<2)|0;j=J[695492];J[695492]=0;if((j|0)==1)break g;J[c>>2]=e;J[c+4>>2]=h;J[c+8>>2]=g|-2147483648;break s}H[c+11|0]=h;e=c;if(!h)break r}a=a?b:c+12|0;j=h-1|0;l=h&7;t:{if(!l){b=a;break t}g=0;b=a;while(1){J[e>>2]=H[b|0];e=e+4|0;b=b+1|0;g=g+1|0;if((l|0)!=(g|0))continue;break}}if(j>>> -0<7)break r;a=a+h|0;while(1){J[e>>2]=H[b|0];J[e+4>>2]=H[b+1|0];J[e+8>>2]=H[b+2|0];J[e+12>>2]=H[b+3|0];J[e+16>>2]=H[b+4|0];J[e+20>>2]=H[b+5|0];J[e+24>>2]=H[b+6|0];J[e+28>>2]=H[b+7|0];e=e+32|0;b=b+8|0;if((a|0)!=(b|0))continue;break}}J[e>>2]=0;if(H[f+11|0]<0)qc(J[f>>2]);a=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=a;J[f+8>>2]=J[c+8>>2];if(H[c+23|0]>=0)break p;qc(J[c+12>>2])}bc=c+32|0;break d}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;if(H[c+23|0]>=0)break f;qc(J[c+12>>2])}if(H[f+11|0]<0)qc(J[f>> -2]);ba(e|0);B()}B()}b=J[m>>2];J[i+8>>2]=J[k+12>>2];a=J[k+8>>2];J[i>>2]=J[k+4>>2];J[i+4>>2]=a;c=K[i+11|0];a=c<<24>>24;e=c;c=(a|0)<0;if(!b|(c?J[i+4>>2]:e))break c;b=J[p>>2];J[695492]=0;la(6199,f|0,b|0,n|0,m|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;if(c)qc(J[i>>2]);a=J[k+8>>2];J[i>>2]=J[k+4>>2];J[i+4>>2]=a;J[i+8>>2]=J[k+12>>2]}bc=k+16|0;break a}b=Z()|0;if((a|0)<0)qc(J[i>>2]);ba(b|0);B()}bc=o+16|0}function Ala(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;J[a+8>>2]=340424;J[a+ -4>>2]=c;J[a>>2]=2430520;J[a+56>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+12>>2]=0;J[a+16>>2]=255;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=1071644672;J[695492]=0;f=$(2225,a+72|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{if((d|0)!=1){J[a+440>>2]=340520;d=a+444|0;J[d>>2]=0;J[d+4>>2]=0;J[a+452>>2]=0;J[a+456>>2]=0;J[a+460>>2]=0;J[a+464>>2]=0;J[695492]=0;ga(2226,a+456|0,2430672,5)|0;e=J[695492];J[695492]=0; -s:{t:{if((e|0)!=1){if(H[a+455|0]>=0)break t;J[a+448>>2]=0;d=J[a+444>>2];break s}b=Z()|0;if(H[a+467|0]<0)qc(J[a+456>>2]);if(H[a+455|0]>=0)break b;qc(J[a+444>>2]);break b}H[a+455|0]=0}J[d>>2]=0;I[a+488>>1]=0;J[a+480>>2]=0;J[a+484>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+492>>2]=0;J[a+496>>2]=0;J[a+500>>2]=0;J[a+504>>2]=0;J[a+576>>2]=340520;J[a+568>>2]=0;J[a+572>>2]=255;J[a+560>>2]=0;J[a+564>>2]=1075052544;J[a+556>>2]=0;J[a+552>>2]=2430628;J[a+544>>2]=0;J[a+548>>2]=120;J[a+536>>2]=0;J[a+540>>2]=0;J[a+528>> -2]=0;J[a+532>>2]=1076756480;J[a+520>>2]=0;J[a+524>>2]=1076756480;J[a+516>>2]=0;J[a+512>>2]=2430576;d=a+580|0;J[d>>2]=0;J[d+4>>2]=0;J[a+588>>2]=0;J[a+592>>2]=0;J[a+596>>2]=0;J[a+600>>2]=0;J[695492]=0;ga(2226,a+592|0,2430672,5)|0;e=J[695492];J[695492]=0;u:{v:{if((e|0)!=1){if(H[a+591|0]>=0)break v;J[a+584>>2]=0;d=J[a+580>>2];break u}b=Z()|0;if(H[a+603|0]<0)qc(J[a+592>>2]);if(H[a+591|0]>=0)break c;qc(J[a+580>>2]);break c}H[a+591|0]=0}J[d>>2]=0;I[a+624>>1]=0;J[a+616>>2]=0;J[a+620>>2]=0;J[a+608>>2]=0;J[a+ -612>>2]=0;J[a+628>>2]=0;J[a+632>>2]=0;J[a+636>>2]=0;J[a+640>>2]=0;J[695492]=0;g=$(2278,a+648|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r;H[a+687|0]=0;d=a+668|0;J[d>>2]=0;J[d+4>>2]=0;J[a+652>>2]=a+656;J[a+656>>2]=0;J[a+660>>2]=0;J[a+664>>2]=d;J[a+1728>>2]=0;H[a+1724|0]=0;J[a+696>>2]=-306674912;J[a+700>>2]=-1;J[a+688>>2]=1200;J[a+692>>2]=0;J[a+676>>2]=0;J[695492]=0;d=a+1732|0;J[d+8>>2]=0;J[d+4>>2]=d;J[d>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break q;J[695492]=0;h=$(6394,a+1744|0)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break p;J[695492]=0;i=aa(6395,a+1776|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;J[695492]=0;j=aa(6396,a+1936|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break n;J[695492]=0;k=XS(a+1984|0,c);c=J[695492];J[695492]=0;if((c|0)==1)break m;J[a+2240>>2]=0;J[a+2244>>2]=0;J[a+2232>>2]=0;J[a+2308>>2]=0;J[a+2272>>2]=0;J[a+2264>>2]=0;J[a+2268>>2]=1079115776;J[a+2256>>2]=0;J[a+2260>>2]=1079115776;H[a+2283|0]=0;H[a+2284|0]=0;H[a+2285|0]=0;H[a+2286|0]=0;H[a+2287|0]=0;H[a+2288| -0]=0;H[a+2289|0]=0;H[a+2290|0]=0;c=a+2248|0;J[c>>2]=0;J[c+4>>2]=0;c=a+2291|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;c=a+2297|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;J[695492]=0;e=$(6398,a+2312|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;c=a+2328|0;J[a+2324>>2]=c;J[c>>2]=0;J[c+4>>2]=0;J[695492]=0;da(6399,e|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break k;return a|0}b=Z()|0;break a}b=Z()|0;break d}b= -Z()|0;break e}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;Dq(a+2324|0,J[c>>2]);O2(e)}if(H[a+2295|0]<0)qc(J[a+2284>>2]);if(H[a+2283|0]<0)qc(J[a+2272>>2]);VS(k)}LS(j)}JS(i)}xS(h)}DS(d)}c=a+652|0;if(H[c+35|0]<0)qc(J[c+24>>2]);Cq(c+12|0,J[c+16>>2]);Xu(c,J[c+4>>2]);Ed(g)}kn(a+576|0)}kn(a+440|0)}ln(f)}J[a+8>>2]=340424;c=J[a+36>>2];if(c){qc(c);J[a+36>>2]=0}ba(b|0);B()}function AVa(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=bc-80|0;bc= -e;d=mp(a,b,c,d);J[d+208>>2]=0;J[d+212>>2]=0;J[d>>2]=828016;J[d+216>>2]=0;J[e+64>>2]=13;J[e+48>>2]=13;J[e+32>>2]=13;a=J[b+24>>2];J[695492]=0;ha(3207,c|0,a|0,e- -64|0,0)|0;a=J[695492];J[695492]=0;l=d+208|0;a:{b:{c:{d:{e:{f:{if((a|0)==1)break f;J[695492]=0;a=ha(3203,J[e+72>>2],828028,e+48|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;g:{h:{if(J[a>>2]!=6)break h;c=J[e+56>>2];if(J[c+12>>2]<=0)break h;while(1){J[695492]=0;a=ha(3283,c|0,j|0,e+32|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;i:{if(J[a>> -2]!=6)break i;a=0;J[e+28>>2]=0;J[e+20>>2]=0;J[e+24>>2]=0;c=J[e+40>>2];if(J[c+12>>2]<=0)break i;while(1){J[695492]=0;J[e>>2]=13;b=ha(3283,c|0,a|0,e|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;j:{if(J[b>>2]-3>>>0>=4294967294){if(a&1)k=O[d+8>>3]-(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3]);else k=(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3])-O[d+16>>3];c=J[e+24>>2];f=J[e+28>>2];if(c>>>0>>0){O[c>>3]=k;J[e+24>>2]=c+8;break j}k:{l:{m:{g=J[e+20>>2];i=c-g>>3;b=i+1|0;n:{if(b>>>0>=536870912){J[695492]=0;_(2399,e+20|0); -a=J[695492];J[695492]=0;if((a|0)==1)break n;break a}f=f-g|0;h=f>>2;h=f>>>0>=2147483640?536870911:b>>>0>>0?h:b;if(!h){f=0;break l}if(h>>>0<536870912)break m;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a}c=Z()|0;break c}J[695492]=0;f=$(4,h<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k}b=(i<<3)+f|0;O[b>>3]=k;i=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[e+28>>2]=(h<<3)+f;J[e+24>>2]=i;J[e+20>>2]=b;if(!g)break j;qc(g);break j}c= -Z()|0;break c}c=J[e+24>>2];f=J[e+28>>2];if(c>>>0>>0){J[c>>2]=0;J[c+4>>2]=0;J[e+24>>2]=c+8;break j}o:{p:{q:{g=J[e+20>>2];i=c-g>>3;b=i+1|0;r:{if(b>>>0>=536870912){J[695492]=0;_(2399,e+20|0);break r}f=f-g|0;h=f>>2;h=f>>>0>=2147483640?536870911:b>>>0>>0?h:b;if(!h){f=0;break p}if(h>>>0<536870912)break q;J[695492]=0;ka(209)}a=J[695492];J[695492]=0;if((a|0)!=1)break a;c=Z()|0;break c}J[695492]=0;f=$(4,h<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break o}b=(i<<3)+f|0;J[b>>2]=0;J[b+4>>2]=0;i=b+8|0;if((c| -0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[e+28>>2]=(h<<3)+f;J[e+24>>2]=i;J[e+20>>2]=b;if(!g)break j;qc(g);break j}c=Z()|0;break c}J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break g;a=a+1|0;c=J[e+40>>2];if((a|0)>2])continue;break}a=J[e+24>>2];s:{if((a|0)==J[e+20>>2])break s;f=J[d+212>>2];if((f|0)!=J[d+216>>2]){J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;t:{a=J[e+24>>2];b=J[e+20>>2];if((a|0)!=(b|0)){a=a-b|0;b=a>>3;if(b>>>0>=536870912){J[695492]= -0;_(2399,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break t}J[695492]=0;c=$(4,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break t;J[f+4>>2]=c;J[f>>2]=c;J[f+8>>2]=(b<<3)+c;a=J[e+20>>2];b=a;g=J[e+24>>2];if((b|0)!=(g|0))while(1){O[c>>3]=O[b>>3];c=c+8|0;b=b+8|0;if((g|0)!=(b|0))continue;break}J[f+4>>2]=c}J[d+212>>2]=f+12;break s}c=Z()|0;a=J[f>>2];if(a){J[f+4>>2]=a;qc(a)}J[d+212>>2]=f;break c}J[695492]=0;da(3327,l|0,e+20|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;a=J[e+20>>2]}if(!a)break i;J[e+ -24>>2]=a;qc(a)}j=j+1|0;c=J[e+56>>2];if((j|0)>2])continue;break}}J[695492]=0;_(3205,e+48|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;_(3205,e- -64|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;bc=e+80|0;return d|0}c=Z()|0;break c}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;break b}a=J[e+20>>2];if(!a)break b;J[e+24>>2]=a;qc(a)}ol(l);lh(d);ba(c|0);B()}B()}function Laa(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;l=bc-96|0;bc=l;i=J[a+ -584>>2];if(i){d=J[i+88>>2];a:{b:{if(!d){f=c;break b}e=J[i+100>>2];g=L[e+4>>1];h=g-d|0;c:{if((h|0)>(c|0)){f=c+d|0;J[i+88>>2]=f;j=(g+(d^-1)|0)-c|0;f=g-f&7;d:{if(!f){d=h;break d}g=0;d=h;while(1){d=d-1|0;e=J[e>>2];g=g+1|0;if((f|0)!=(g|0))continue;break}}if(j>>>0>=7)while(1){e=J[J[J[J[J[J[J[J[e>>2]>>2]>>2]>>2]>>2]>>2]>>2]>>2];d=d-8|0;if((d|0)>(c|0))continue;break}j=c-1|0;d=b+c|0;f=c&3;e:{if(!f){g=c;break e}g=c;while(1){d=d-1|0;H[d|0]=K[e+6|0];g=g-1|0;e=J[e>>2];k=k+1|0;if((f|0)!=(k|0))continue;break}}f= -0;if(j>>>0<3)break c;while(1){H[d-1|0]=K[e+6|0];e=J[e>>2];H[d-2|0]=K[e+6|0];e=J[e>>2];H[d-3|0]=K[e+6|0];d=d-4|0;e=J[e>>2];H[d|0]=K[e+6|0];e=J[e>>2];g=g-4|0;if(g)continue;break}break c}b=b+h|0;f=g+(d^-1)|0;j=h&3;f:{if(!j){d=b;g=h;break f}d=b;g=h;while(1){d=d-1|0;H[d|0]=K[e+6|0];g=g-1|0;e=J[e>>2];k=k+1|0;if((j|0)!=(k|0))continue;break}}if(f>>>0>=3)while(1){H[d-1|0]=K[e+6|0];f=J[e>>2];H[d-2|0]=K[f+6|0];f=J[f>>2];H[d-3|0]=K[f+6|0];d=d-4|0;f=J[f>>2];H[d|0]=K[f+6|0];e=J[f>>2];g=g-4|0;if(g)continue;break}J[i+ -88>>2]=0;f=c-h|0}r=1;if((c|0)<(h|0))break a}r=1;q=J[i+112>>2];m=J[i+108>>2];d=J[i+104>>2];p=J[i+84>>2];k=J[i+76>>2];n=J[i+72>>2];g=L[i+64>>1];c=J[a+604>>2];g:{h:{if((f|0)<=0)break h;while(1){i:{j:{k:{h=J[i+92>>2];if((h|0)>=(g|0)){e=K[c|0]<=(g|0))c=c+1|0;else{e=K[c+1|0]<>2]=h-g;k=n-g|0;n=e>>g;l:{o=e&p;j=o&65535;switch(j-256|0){case 1:break h;case 0:break l;default:break j}}m=J[i+116>>2]+2064|0;Hg(m,0,38888);q=J[i+116>>2]+4088|0;g=9;h=J[i+92>>2];if((h| -0)>=9)break k;p=511}b=J[a>>2];h=J[a+628>>2];J[l+16>>2]=J[a+480>>2];ae(h,b,73582,l+16|0);break h}g=k+8|0;e=K[c|0]<0)c=c+1|0;else{e=K[c+1|0]<>2]=h-9;p=511;k=g-9|0;g=9;n=e>>9;m:{n:{h=e&511;switch(h-256|0){case 1:break h;case 0:break n;default:break m}}b=J[a>>2];c=J[a+628>>2];J[l+80>>2]=J[a+472>>2];Nc(c,b,74300,l+80|0);break g}H[b|0]=e;f=f-1|0;b=b+1|0;d=J[i+116>>2]+(h<<3)|0;break i}o:{e=J[i+116>>2];if(e>>>0<=m>>>0){h=e+40952|0;if(h>>>0>m>>>0)break o}b=J[a>>2]; -c=J[a+628>>2];J[l+64>>2]=J[a+472>>2];Nc(c,b,74689,l- -64|0);break g}J[m>>2]=d;if(!(d>>>0>>0&d>>>0>=e>>>0)){b=J[a>>2];c=J[a+628>>2];J[l+48>>2]=J[a+472>>2];Nc(c,b,74689,l+48|0);break g}H[m+7|0]=K[d+7|0];I[m+4>>1]=L[d+4>>1]+1;d=j<<3;h=d+e|0;H[m+6|0]=K[(h>>>0>>0?h+7|0:m+7|0)|0];m=m+8|0;if(q>>>0>>0){p=(g|0)>=11?11:g;g=p+1|0;p=-2<>>0>=256){o=L[(d+e|0)+4>>1];if(!o){b=J[a>>2];c=J[a+628>>2];J[l+32>>2]=J[a+472>>2];Nc(c,b,75101,l+32|0);break g}if(f>>>0>>0){J[i+100>> -2]=h;d=f&65535;e=h;while(1){e=J[e>>2];if(d>>>0>1])continue;break}J[i+88>>2]=f;d=b+f|0;o=f&3;r:{if(!o){b=f;break r}j=0;b=f;while(1){d=d-1|0;H[d|0]=K[e+6|0];b=b-1|0;e=J[e>>2];j=j+1|0;if((o|0)!=(j|0))continue;break}}j=f>>>0<4;f=0;if(j){d=h;break h}while(1){H[d-1|0]=K[e+6|0];e=J[e>>2];H[d-2|0]=K[e+6|0];e=J[e>>2];H[d-3|0]=K[e+6|0];d=d-4|0;e=J[e>>2];H[d|0]=K[e+6|0];e=J[e>>2];b=b-4|0;if(b)continue;break}d=h;break h}j=b+o|0;d=j;e=h;while(1){d=d-1|0;H[d|0]=K[e+6|0];e=J[e>>2];if(!e)break q;if(b>>>0< -d>>>0)continue;break}break q}H[b|0]=o;f=f-1|0;b=b+1|0;break p}f=f-o|0;b=j}d=h}if((f|0)>0)continue;break}}J[a+604>>2]=c;J[i+112>>2]=q;J[i+108>>2]=m;J[i+104>>2]=d;J[i+84>>2]=p;J[i+76>>2]=k;J[i+72>>2]=n;I[i+64>>1]=g;if((f|0)<=0)break a;b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[l+4>>2]=f;J[l>>2]=a;Nc(c,b,75598,l)}r=0}bc=l+96|0;return r|0}fa(72282,70324,573,97871);B()}function VH(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A){var C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0;C=bc-48|0;bc=C;E=rc(24);D= -d+7>>3;J[E+16>>2]=D;J[E+12>>2]=e;J[E+8>>2]=d;J[E>>2]=2305576;J[E+4>>2]=0;a:{if(!((d|0)<=0|(e|0)<=0|(D|0)<=0))if(2147483646/(D>>>0)>>>0>e>>>0)break a;J[E+12>>2]=-1;J[E+16>>2]=2;e=-1;D=2}J[695492]=0;e=P(e,D);d=$(3441,e+1|0)|0;F=J[695492];J[695492]=0;b:{c:{if((F|0)!=1){J[E+20>>2]=d;H[d+e|0]=0;if(!l)break c;wc(d,255,e);break b}a=Z()|0;qc(E);ba(a|0);B()}wc(d,0,e)}d:{if(b){gi(J[a+144>>2],C+44|0,s);break d}bj(J[a+76>>2],C+44|0,J[a+104>>2])}J[C+44>>2]=0-(J[C+44>>2]<>2],C+40|0,s))break e;J[C+44>>2]=J[C+44>>2]+(J[C+40>>2]<>2],C+36|0,q))break f;break e}if(!bj(J[a+76>>2],C+40|0,J[a+104>>2]))break e;J[C+44>>2]=J[C+44>>2]+(J[C+40>>2]<>2],C+36|0,J[a+112>>2]))break e}K=J[C+36>>2]+K|0;G=K;g:{if(f>>>0<=I>>>0)break g;while(1){h:{i:{j:{k:{l:{if(!g){d=0;break l}if(!b)break j;e=J[a+144>>2];d=J[e+4>>2];l=J[e+8>>2];if(l>>>0>=g>>>0){F=e;e=l-g|0;J[F+8>>2]=e;d=d>>>e&N;J[C+40>>2]= -d;F=d+J[C+44>>2]|0;break k}J[e+8>>2]=0;d=d&(-1<>>0>=8)while(1){l=J[e>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;J[e+12>>2]=J[e+12>>2]+1;d=l&255|d<<8;D=D-8|0;if(D>>>0>7)continue;break}if(!D)break l;l=J[e>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;J[e+4>>2]=l;F=8-D|0;J[e+8>>2]=F;J[e+12>>2]=J[e+12>>2]+1;d=(-1<>>F|d<>2]=d;F=J[C+44>>2]+d|0;if(!b)break i}e=J[a+144>>2];if(i){gi(e,C+32|0,i);d=J[C+32>>2];break h}d=J[e+4>>2];l=J[e+8>>2];if(l>>>0>=j>>>0){D=e;e=l-j|0;J[D+8>>2]=e;d=d>>>e&M;break h}J[e+ -8>>2]=0;d=d&(-1<>>0>=8)while(1){l=J[e>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;J[e+12>>2]=J[e+12>>2]+1;d=l&255|d<<8;D=D-8|0;if(D>>>0>7)continue;break}if(!D)break h;l=J[e>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;J[e+4>>2]=l;L=8-D|0;J[e+8>>2]=L;J[e+12>>2]=J[e+12>>2]+1;d=(-1<>>L|d<>2],C+40|0,J[a+108>>2]);F=J[C+40>>2]+J[C+44>>2]|0}d=RY(J[a+76>>2],j,J[a+140>>2])}m:{if(d>>>0>=h>>>0){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,795979,0);break m}n:{o:{if(c){p:{if(b){e=J[a+144>>2];l=J[e+ -8>>2];q:{if(l){D=l-1|0;l=J[e+4>>2];break q}l=J[e>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;J[e+4>>2]=l;J[e+12>>2]=J[e+12>>2]+1;D=7}J[e+8>>2]=D;e=l>>>D&1;J[C+12>>2]=e;if(!e)break o;gi(J[a+144>>2],C+28|0,t);gi(J[a+144>>2],C+24|0,u);gi(J[a+144>>2],C+20|0,v);gi(J[a+144>>2],C+16|0,w);gi(J[a+144>>2],C+8|0,x);e=J[a+144>>2];J[e+4>>2]=0;J[e+8>>2]=0;Vm(J[a+76>>2]);break p}bj(J[a+76>>2],C+12|0,J[a+136>>2]);if(!J[C+12>>2])break o;bj(J[a+76>>2],C+28|0,J[a+128>>2]);bj(J[a+76>>2],C+24|0,J[a+132>>2]);bj(J[a+76>>2],C+20|0, -J[a+120>>2]);bj(J[a+76>>2],C+16|0,J[a+124>>2])}e=J[C+28>>2];d=J[(d<<2)+k>>2];l=J[C+24>>2];e=WH(a,e+J[d+8>>2]|0,l+J[d+12>>2]|0,y,0,d,J[C+20>>2]+((e+(e>>31)|0)/2|0)|0,J[C+16>>2]+((l+(l>>31)|0)/2|0)|0,z,A);break n}J[C+12>>2]=0}e=J[(d<<2)+k>>2]}l=J[e+12>>2]-1|0;D=J[e+8>>2]-1|0;r:{if(n){d=l;s:switch(o|0){case 0:case 1:_k(E,e,F,G,m);break r;case 2:_k(E,e,F-D|0,G,m);break r;case 3:break s;default:break r}_k(E,e,F-D|0,G,m);break r}d=D;t:{u:switch(o|0){case 0:_k(E,e,G,F-l|0,m);break t;case 2:_k(E,e,G,F-l| -0,m);break t;case 1:case 3:break u;default:break r}_k(E,e,G,F,m)}}G=d+G|0;if(!J[C+12>>2])break m;gc[J[J[e>>2]+4>>2]](e)}I=I+1|0;v:{if(b){if(gi(J[a+144>>2],C+36|0,r))break v;break g}if(!bj(J[a+76>>2],C+36|0,J[a+116>>2]))break g}G=J[C+36>>2]+(p+G|0)|0;if((f|0)!=(I|0))continue;break}break e}if(f>>>0>I>>>0)continue;break}}bc=C+48|0;return E}function tab(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=2;a:{f=J[a+456>>2];if(J[f+20>>2])break a;while(1){b:{c:{d:{e:{b=gc[J[J[a+460>>2]+4>>2]](a)|0;if((b|0)!= -1){if((b|0)!=2)break a;J[f+20>>2]=1;if(!J[f+24>>2])break e;b=2;if(!J[J[a+460>>2]+16>>2])break a;b=J[a>>2];J[b+20>>2]=61;gc[J[b>>2]](a);return 2}f:switch(J[f+24>>2]){default:b=J[a+336>>2];break b;case 1:if(!(J[a+28>>2]<65501&J[a+32>>2]<=65500)){b=J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;gc[J[J[a>>2]>>2]](a)}c=J[a+212>>2];if((c|0)!=8){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=16;gc[J[J[a>>2]>>2]](a)}e=J[a+36>>2];if((e|0)>=11){b=J[a>>2];J[b+24>>2]=e;J[b+20>>2]=27;J[J[a>>2]+28>>2]=10;gc[J[J[a>>2]>>2]](a);e=J[a+ -36>>2]}J[a+312>>2]=1;J[a+316>>2]=1;if((e|0)>0){b=J[a+216>>2];i=0;g=1;d=1;while(1){h=J[b+8>>2];g:{if(h-5>>>0>=4294967292){c=J[b+12>>2];if(c-5>>>0>4294967291)break g}c=J[a>>2];J[c+20>>2]=19;gc[J[c>>2]](a);e=J[a+36>>2];c=J[b+12>>2];g=J[a+316>>2];h=J[b+8>>2];d=J[a+312>>2]}g=(c|0)<(g|0)?g:c;J[a+316>>2]=g;d=(d|0)>(h|0)?d:h;J[a+312>>2]=d;b=b+88|0;i=i+1|0;if((i|0)<(e|0))continue;break}}if(J[a+220>>2]|(J[a+336>>2]?J[a+224>>2]:0))break d;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{b=J[a+412>>2];if((b|0)<=119)switch(b| -0){case 99:break m;case 80:break n;case 48:break o;case 35:break p;case 24:break q;case 15:break r;case 8:break s;case 3:break t;case 0:break u;case 63:break d;default:break h}if((b|0)<=194){if((b|0)==120)break l;if((b|0)==143)break k;if((b|0)!=168)break h;J[a+432>>2]=63;J[a+428>>2]=53264;J[a+424>>2]=13;b=13;break c}if((b|0)==195)break j;if((b|0)==224)break i;if((b|0)!=255)break h;J[a+432>>2]=63;J[a+428>>2]=53264;J[a+424>>2]=16;b=16;break c}J[a+432>>2]=0;J[a+428>>2]=53264;J[a+424>>2]=1;b=1;break c}J[a+ -432>>2]=3;J[a+428>>2]=54480;J[a+424>>2]=2;b=2;break c}J[a+432>>2]=8;J[a+428>>2]=54368;J[a+424>>2]=3;b=3;break c}J[a+432>>2]=15;J[a+428>>2]=54240;J[a+424>>2]=4;b=4;break c}J[a+432>>2]=24;J[a+428>>2]=54064;J[a+424>>2]=5;b=5;break c}J[a+432>>2]=35;J[a+428>>2]=53856;J[a+424>>2]=6;b=6;break c}J[a+432>>2]=48;J[a+428>>2]=53584;J[a+424>>2]=7;b=7;break c}J[a+432>>2]=63;J[a+428>>2]=53264;J[a+424>>2]=9;b=9;break c}J[a+432>>2]=63;J[a+428>>2]=53264;J[a+424>>2]=10;b=10;break c}J[a+432>>2]=63;J[a+428>>2]=53264; -J[a+424>>2]=11;b=11;break c}J[a+432>>2]=63;J[a+428>>2]=53264;J[a+424>>2]=12;b=12;break c}J[a+432>>2]=63;J[a+428>>2]=53264;J[a+424>>2]=14;b=14;break c}J[a+432>>2]=63;J[a+428>>2]=53264;J[a+424>>2]=15;b=15;break c}b=J[a>>2];J[b+20>>2]=17;J[b+24>>2]=J[a+408>>2];J[J[a>>2]+28>>2]=J[a+412>>2];J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];gc[J[J[a>>2]>>2]](a);e=J[a+36>>2];b=J[a+424>>2];break c;case 0:break f}if(!J[f+16>>2]){b=J[a>>2];J[b+20>>2]=36;gc[J[b>>2]](a)}if(!J[a+336>>2])continue;R3(a); -return 1}b=2;c=J[a+144>>2];if((c|0)>=J[a+152>>2])break a;J[a+152>>2]=c;break a}J[a+432>>2]=63;J[a+428>>2]=53264;J[a+424>>2]=8;b=8}J[a+324>>2]=b;J[a+320>>2]=b;if((e|0)>0){b=J[a+216>>2];d=0;while(1){c=J[a+424>>2];J[b+40>>2]=c;J[b+36>>2]=c;c=P(c,J[a+312>>2]);J[b+28>>2]=((c+P(J[b+8>>2],J[a+28>>2])|0)-1|0)/(c|0);c=P(J[a+424>>2],J[a+316>>2]);J[b+32>>2]=((c+P(J[b+12>>2],J[a+32>>2])|0)-1|0)/(c|0);c=J[a+312>>2];J[b+44>>2]=((c+P(J[b+8>>2],J[a+28>>2])|0)-1|0)/(c|0);c=J[a+316>>2];c=((c+P(J[b+12>>2],J[a+32>>2])| -0)-1|0)/(c|0)|0;J[b+80>>2]=0;J[b+52>>2]=1;J[b+48>>2]=c;b=b+88|0;d=d+1|0;if((d|0)>2])continue;break}b=J[a+424>>2]}b=P(J[a+316>>2],b);J[a+328>>2]=((b+J[a+32>>2]|0)-1|0)/(b|0);b=J[a+336>>2];J[J[a+456>>2]+16>>2]=J[a+224>>2]!=0|(b|0)>2]}if(!b){J[f+24>>2]=2;continue}break}J[f+24>>2]=0;return 1}return b|0}function Ylb(a){a=a|0;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;h=bc-48|0;bc=h;d=zc(1E3);H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;a:{b:{c:{if(!J[a+20>>2]){b=J[a>> -2];J[695492]=0;b=J[J[b+16>>2]+40>>2];if(b){b=J[b>>2];if(b)b=J[J[b+24>>2]+16>>2]+1|0;else b=0}else b=0;f=b;b=J[695492];J[695492]=0;if((b|0)==1)break c}H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24;b=J[a>>2];c=J[J[b>>2]+36>>2];J[695492]=0;l=$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){H[d+8|0]=l;H[d+9|0]=l>>>8;H[d+10|0]=l>>>16;H[d+11|0]=l>>>24;e=12;c=d+12|0;f=1E3;d:{if((l|0)>0)while(1){b=J[a>>2];g=J[J[b>>2]+40>>2];J[695492]=0;oa(g|0,b|0,m|0,h+40|0,h+32|0,h+16|0,h|0);b=J[695492];J[695492]= -0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)==1)break m;n=0;n:{o:switch(J[a+20>>2]){case 2:O[h+40>>3]=O[h+40>>3]/25.4*96;O[h+32>>3]=O[h+32>>3]/25.4*96;O[h+16>>3]=O[h+16>>3]/25.4*96;break n;case 0:break o;default:break n}b=J[a>>2];J[695492]=0;n=aa(1625,b|0,m|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m}o=O[h+40>>3];p=O[h+32>>3];q=O[h+16>>3];p:{if(R(q)<2147483648){i=~~q;break p}i=-2147483648}if(R(p)<2147483648)j=~~p;else j=-2147483648;if(R(o)<2147483648)k=~~o;else k=-2147483648;q:{r:{s:{t:{if(!d){e=0; -f=1E3;b=zc(1E3);c=b;break t}g=e+4|0;if(g>>>0<=f>>>0){b=d;H[c|0]=k;H[c+1|0]=k>>>8;H[c+2|0]=k>>>16;H[c+3|0]=k>>>24;break s}while(1){f=f<<1;if(g>>>0>f>>>0)continue;break}b=Vd(d,f);if(b){c=b+e|0;H[c|0]=k;H[c+1|0]=k>>>8;H[c+2|0]=k>>>16;H[c+3|0]=k>>>24;break s}b=zc(f);c=tc(b,d,e);qc(d);c=e+c|0}H[c|0]=k;H[c+1|0]=k>>>8;H[c+2|0]=k>>>16;H[c+3|0]=k>>>24;if(!b)break r;g=e+4|0}d=e+8|0;if(d>>>0<=f>>>0){e=c+4|0;H[e|0]=j;H[e+1|0]=j>>>8;H[e+2|0]=j>>>16;H[e+3|0]=j>>>24;break k}while(1){f=f<<1;if(d>>>0>f>>>0)continue; -break}c=Vd(b,f);if(!c)break q;b=c;e=g+b|0;H[e|0]=j;H[e+1|0]=j>>>8;H[e+2|0]=j>>>16;H[e+3|0]=j>>>24;break k}g=0;f=1E3;c=zc(1E3);e=c;break l}c=zc(f);d=tc(c,b,g);qc(b);e=d+g|0;break l}f=Z()|0;break d}H[e|0]=j;H[e+1|0]=j>>>8;H[e+2|0]=j>>>16;H[e+3|0]=j>>>24;if(!c)break j;d=g+4|0;b=c}g=d+4|0;if(g>>>0<=f>>>0){e=e+4|0;H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+3|0]=i>>>24;break g}while(1){f=f<<1;if(g>>>0>f>>>0)continue;break}c=Vd(b,f);if(!c)break i;b=c;e=d+b|0;H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+ -3|0]=i>>>24;break g}d=0;f=1E3;c=zc(1E3);e=c;break h}c=zc(f);e=tc(c,b,d);qc(b);e=d+e|0}H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+3|0]=i>>>24;if(!c)break f;g=d+4|0;b=c}d=d+8|0;if(d>>>0<=f>>>0){d=b;b=e+4|0;break e}while(1){f=f<<1;if(d>>>0>f>>>0)continue;break}d=Vd(b,f);if(!d){d=zc(f);tc(d,b,g);qc(b)}b=d+g|0;break e}g=0;f=1E3;d=zc(1E3);b=d}c=n;H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;e=g+4|0;c=b+4|0;m=m+1|0;if((l|0)!=(m|0))continue;break}a=J[a>>2];b=J[J[a>>2]+56>>2];J[695492]=0;g=b;b= -h+16|0;da(g|0,b|0,a|0);a=J[695492];J[695492]=0;u:{if((a|0)!=1){J[695492]=0;g=b;a=H[h+27|0];b=(a|0)<0;ia(1626,h|0,(b?J[h+16>>2]:g)|0,(b?J[h+20>>2]:a&255)|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break u;a=0;b=K[h+11|0];g=b<<24>>24<0;j=g?J[h>>2]:h;b=g?J[h+4>>2]:b;i=b+4|0;v:{if(!d){g=zc(i>>>0<=1E3?1E3:i);c=g;break v}a=e+i|0;w:{if(a>>>0<=f>>>0){g=d;break w}while(1){f=f<<1;if(a>>>0>f>>>0)continue;break}g=Vd(d,f);if(!g){g=zc(f);tc(g,d,e);qc(d)}c=e+g|0}a=e}H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]= -b>>>24;tc(c+4|0,j,b);a=a+i|0;H[g|0]=a;H[g+1|0]=a>>>8;H[g+2|0]=a>>>16;H[g+3|0]=a>>>24;if(H[h+11|0]<0)qc(J[h>>2]);if(H[h+27|0]<0)qc(J[h+16>>2]);bc=h+48|0;return g|0}f=Z()|0;break d}f=Z()|0;if(H[h+27|0]>=0)break d;qc(J[h+16>>2])}if(!d)break a;break b}f=Z()|0;break b}f=Z()|0}qc(d)}ba(f|0);B()}function Ht(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;a:{if(!b){c=-1;break a}tw(a);J[e+4>>2]=b;b:{c:{d:{e:{if(((K[b|0]&223)-65&255)>>>0>25)break e;d=b;while(1){f=d;d=d+1|0;c=K[f+1|0];if((c-48&255)>>>0<10|((c& -223)-65&255)>>>0<26)continue;g=c-43|0;if(g>>>0<=3&(g|0)!=1)continue;break}if(a){c=J[a>>2];if(c)gc[J[659451]](c);c=0;g=d-b|0;f:{if((g|0)<0)break f;h=gc[J[659450]](g+1|0)|0;if(!h){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break f}c=tc(h,b,g);H[g+c|0]=0}J[a>>2]=c;c=K[d|0]}if((c&255)!=58)break e;d=f+2|0;J[e+8>>2]=d;c=K[f+2|0];g:{if((c|0)==47){if(K[f+3|0]==47){J[e+8>>2]=f+4;if(T$(a,e+8|0))break e;if(!J[a+12>>2])J[a+20>>2]=-1;if(S$(a,e+8|0))break e;c=J[e+8>>2];break g}if(R$(a,e+8|0))break e;c=J[e+8>>2];break g}h:{i:{if((c- -48&255)>>>0<10|((c&223)-65&255)>>>0<26)break i;j:switch(c-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break i;case 4:break j;default:break h}k:{c=K[f+3|0];if((c-48&255)>>>0<10)break k;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break k;default:break h}}c=K[f+4|0];if((c-48&255)>>>0<10)break i;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i; -default:break h}}J[e+12>>2]=d;if(ar(e+12|0,0,0))break e;while(1){c=J[e+12>>2];if(K[c|0]==47){J[e+12>>2]=c+1;if(!ar(e+12|0,0,1))continue;break e}break}if(!a)break g;f=J[a+24>>2];if(f)gc[J[659451]](f);if((c|0)==(d|0)){J[a+24>>2]=0;break g}f=c-d|0;l:{if(K[a+36|0]&2){g=0;if((f|0)<0)break l;g=gc[J[659450]](f+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);J[a+24>>2]=0;break g}d=tc(g,d,f);H[d+f|0]=0;J[a+24>>2]=d;break g}g=eo(d,f)}J[a+24>>2]=g;break g}if(a){c=J[a+24>>2];if(c)gc[J[659451]](c);J[a+24>>2]= -0}c=d}J[e+4>>2]=c;d=K[c|0];if((d|0)==63){J[e+4>>2]=c+1;if(Q$(a,e+4|0))break e;c=J[e+4>>2];d=K[c|0]}if((d&255)==35){J[e+4>>2]=c+1;if(P$(a,e+4|0))break e;d=K[J[e+4>>2]]}if(!(d&255))break d;tw(a)}tw(a);J[e+8>>2]=b;m:{d=K[b|0];if((d|0)==47){if(K[b+1|0]!=47)break m;J[e+8>>2]=b+2;b=e+8|0;c=T$(a,b);if(c)break b;c=1;if(!S$(a,b))break c;break b}n:{o:{if((d-48&255)>>>0<10|((d&223)-65&255)>>>0<26)break o;p:switch(d-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break o; -case 4:break p;default:break n}q:{d=K[b+1|0];if((d-48&255)>>>0<10)break q;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break q;default:break n}}d=K[b+2|0];if((d-48&255)>>>0<10)break o;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break o;default:break n}}J[e+12>>2]=b;r:{if(!ar(e+12|0,58,0))while(1){f=J[e+12>>2];if(K[f|0]!=47)break r;J[e+12>>2]=f+1;if(!ar(e+12|0,0,1))continue;break}c= -1;break b}if(a){d=J[a+24>>2];if(d)gc[J[659451]](d);s:{if((b|0)==(f|0)){d=0;break s}c=f-b|0;if(K[a+36|0]&2){d=0;if((c|0)<0)break s;g=gc[J[659450]](c+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break s}d=tc(g,b,c);H[c+d|0]=0;break s}d=eo(b,c)}J[a+24>>2]=d}J[e+8>>2]=f;break c}if(!a)break c;b=J[a+24>>2];if(b)gc[J[659451]](b);J[a+24>>2]=0;break c}c=1;if(!R$(a,e+8|0))break c;break b}c=0;break a}d=J[e+8>>2];c=K[d|0];if((c|0)==63){J[e+8>>2]=d+1;c=-1;if(Q$(a,e+8|0))break b;d=J[e+8>>2];c=K[d|0]}if((c& -255)==35){J[e+8>>2]=d+1;c=-1;if(P$(a,e+8|0))break b;c=K[J[e+8>>2]]}if(c&255){tw(a);c=1;break b}c=0;break a}tw(a)}bc=e+16|0;return c}function Kca(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;h=bc-160|0;bc=h;e=J[a+608>>2];j=J[a+604>>2];v=1;m=J[a+584>>2];s=J[m+72>>2];g=J[m+68>>2];n=J[m+64>>2];a:{b:{if((c|0)<=0){f=j;break b}t=e+j|0;p=J[m+88>>2];u=J[m+60>>2];k=J[m+12>>2];d=J[m+4>>2];x=d&8;y=d&4;c:while(1){f=p;e=0;d:while(1){o= -0;while(1){e:{f:{g:{if((g|0)>11){d=g;break g}if(j>>>0>=t>>>0){d=12;if(g)break g;break f}l=g+8|0;i=j+1|0;n=K[K[j|0]+u|0]<3){j=i;d=l;break g}d=12;if(i>>>0>=t>>>0){j=i;break g}d=g+16|0;n=K[K[j+1|0]+u|0]<>>g|0;g=d-g|0;q=1;d=f;h:{i:{j:{k:switch(K[i|0]-7|0){case 0:i=J[i+4>>2];w=i+o|0;J[f>>2]=w;o=0;d=f+4|0;e=e+i|0;if((k|0)<=(e|0))break h;while(1){l:{if((g|0)>12){i=g;break l}if(j>>>0>=t>>>0){i=13;if(g)break l;f=d;break f}r=g+8|0;l=j+1|0;n= -K[K[j|0]+u|0]<4){j=l;i=r;break l}i=13;if(l>>>0>=t>>>0){j=l;break l}i=g+16|0;n=K[K[j+1|0]+u|0]<>>g|0;g=i-g|0;m:{i=K[l|0];if(i-10>>>0>=2){n:switch(i-8|0){case 4:break i;case 0:break n;default:break m}i=J[l+4>>2];l=i+o|0;J[f+4>>2]=l;d=f+8|0;e=e+i|0;if((k|0)<=(e|0))break h;f=l|w?d:f;continue d}i=J[l+4>>2];o=i+o|0;e=e+i|0;continue}break}f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];l=J[a+628>>2];q=J[a>>2];r=J[m+108>>2];J[h+80>>2]=e;J[h+76>>2]= -i;J[h+72>>2]=f?88466:88523;J[h+68>>2]=r;J[h+64>>2]=q;Nc(l,96433,88300,h- -64|0);break j;case 5:break i;case 2:case 4:break e;default:break k}d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];l=J[a+628>>2];q=J[a>>2];r=J[m+108>>2];J[h+48>>2]=e;J[h+44>>2]=i;J[h+40>>2]=d?88466:88523;J[h+36>>2]=r;J[h+32>>2]=q;Nc(l,96433,88300,h+32|0);d=f}q=s}s=q;if(o){J[d>>2]=o;d=d+4|0}}o:{if((e|0)==(k|0))break o;f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];l=J[a+628>>2];q=J[a>>2];r=J[m+108>>2];J[h+24>>2]=k;J[h+20>>2]=e;J[h+16>>2]=i; -J[h+12>>2]=f?88466:88523;J[h+8>>2]=r;J[h+4>>2]=e>>>0>>0?88855:88910;J[h>>2]=q;ae(l,96433,88772,h);f=(e|0)>(k|0);p:{if((e|0)<=(k|0)|d>>>0<=p>>>0)break p;while(1){d=d-4|0;e=e-J[d>>2]|0;f=(k|0)<(e|0);if((e|0)<=(k|0))break p;if(d>>>0>p>>>0)continue;break}}if((e|0)<(k|0)){if(d-p&4){J[d>>2]=0;d=d+4|0}J[d>>2]=k-((e|0)>0?e:0);d=d+4|0;break o}if(!f)break o;J[d+4>>2]=0;J[d>>2]=k;d=d+8|0}gc[J[m+76>>2]](b,p,d,k);q:{if(y){n=n>>>(g&7)|0;g=g&-8;break q}if(!x)break q;n=n>>>(g&15)|0;g=g&-16;j=(!g&j)+j|0}J[m+108>> -2]=J[m+108>>2]+1;d=J[m+8>>2];b=d+b|0;c=c-d|0;if((c|0)>0)continue c;e=J[a+608>>2];f=J[a+604>>2];break b}c=J[a+12>>2]&1024;d=J[(c?504:480)+a>>2];g=J[a+628>>2];i=J[a>>2];l=J[m+108>>2];J[h+144>>2]=e;J[h+140>>2]=d;J[h+136>>2]=c?88466:88523;J[h+132>>2]=l;J[h+128>>2]=i;ae(g,96433,88640,h+128|0);if(o){J[f>>2]=o;f=f+4|0}r:{if((e|0)==(k|0))break r;c=J[a+12>>2]&1024;d=J[(c?504:480)+a>>2];g=J[a+628>>2];i=J[a>>2];l=J[m+108>>2];J[h+120>>2]=k;J[h+116>>2]=e;J[h+112>>2]=d;J[h+108>>2]=c?88466:88523;J[h+104>>2]=l;J[h+ -100>>2]=e>>>0>>0?88855:88910;J[h+96>>2]=i;ae(g,96433,88772,h+96|0);g=(e|0)>(k|0);s:{if((e|0)<=(k|0)|f>>>0<=p>>>0)break s;while(1){f=f-4|0;e=e-J[f>>2]|0;g=(k|0)<(e|0);if((e|0)<=(k|0))break s;if(f>>>0>p>>>0)continue;break}}if((e|0)<(k|0)){if(f-p&4){J[f>>2]=0;f=f+4|0}J[f>>2]=k-((e|0)>0?e:0);f=f+4|0;break r}if(!g)break r;J[f+4>>2]=0;J[f>>2]=k;f=f+8|0}gc[J[m+76>>2]](b,p,f,k);J[m+72>>2]=s;J[m+64>>2]=n;J[m+68>>2]=0;v=-1;b=J[a+608>>2]+(J[a+604>>2]-j|0)|0;break a}d=J[i+4>>2];o=d+o|0;e=d+e|0;continue}}}}J[m+ -72>>2]=s;J[m+64>>2]=n;J[m+68>>2]=g;b=(f-j|0)+e|0}J[a+604>>2]=j;J[a+608>>2]=b;bc=h+160|0;return v|0}function YAa(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;d=bc+-64|0;bc=d;kV(d+48|0,J[a+8>>2]);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{e=J[d+56>>2];if(e){g=a+16|0;while(1){c=0;p:{q:{r:{s:{t:{u:{f=J[e+8>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break u;c=J[e+8>>2]}J[d+44>>2]=c;J[c+8>>2]=0;J[695492]=0;h=c+36|0;f=kf(h);c=J[695492];J[695492]=0;if((c|0)== -1)break e;J[695492]=0;c=J[J[g+12>>2]+((f>>>0)%M[g+8>>2]<<2)>>2];i=J[695492];J[695492]=0;if((i|0)==1)break e;if(c)while(1){if((f|0)==J[c+12>>2]){J[695492]=0;i=ga(5117,c+16|0,h|0,-1)|0;j=J[695492];J[695492]=0;if((j|0)==1)break o;if(!i)break p}c=J[c+8>>2];if(c)continue;break}J[695492]=0;ca(5048,d+12|0,2379178,J[d+44>>2]+36|0);a=J[695492];J[695492]=0;if((a|0)==1)break t;a=J[d+12>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,d+20|0,a|0,2374282,548,2389285,0)|0;b=J[695492];J[695492]=0;if((b|0)== -1)break s;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break r;break b}c=Z()|0;break c}c=Z()|0;break d}c=Z()|0;break q}c=Z()|0;Fc(a)}sc(d+12|0);break d}c=J[c+24>>2];J[695492]=0;f=Ls(c);c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[d+44>>2];J[c+12>>2]=f;if(!f){J[695492]=0;a=ja(5018,d+20|0,2379394,2374282,551,2389285,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;c=Z()|0;Fc(a);break d}J[695492]=0;f=J[c+4>>2]-1|0; -J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(!f){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}e=J[e>>2];if(e)continue;break}}J[695492]=0;da(5108,d+20|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;b=J[d+20>>2];ca(5160,b|0,2379920,1);c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;ca(5160,b|0,2380305,0);c=J[695492];J[695492]=0;if((c|0)==1)break g;c=J[a+8>>2];J[695492]=0;J[d+12>>2]=0;e=d+12|0;aa(4985,e|0,b|0)|0;g=J[695492];J[695492]=0;if((g| -0)==1)break j;J[695492]=0;ca(5161,c|0,e|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break n;c=J[d+12>>2];J[d+12>>2]=0;v:{if(!c)break v;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(e)break v;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;_(5162,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break g;if(!J[a+12>>2])break k;J[695492]=0;ca(5160,b|0,2380752,0);c=J[695492];J[695492]=0;if((c|0)==1)break g;a=J[a+12>>2];J[695492]=0;J[d+12>>2]= -0;c=d+12|0;aa(4985,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break m;J[695492]=0;da(5163,a|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break l;a=J[d+12>>2];J[d+12>>2]=0;w:{if(!a)break w;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break w;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[695492]=0;_(5162,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break k;break g}c=Z()|0;break d}c=Z()|0;vc(d+12|0);break f}c=Z()|0;break f}c=Z()|0;vc(d+ -12|0);break f}J[695492]=0;_(5162,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[J[b>>2]+24>>2];J[695492]=0;_(a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[d+20>>2];J[d+20>>2]=0;x:{if(!a)break x;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break x;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}$c(d+48|0);bc=d- -64|0;return}c=Z()|0;break f}c=Z()|0;break d}c=Z()|0;break c}c=Z()|0}vc(d+20|0);break c}c=Z()|0}vc(d+44|0)}$c(d+ -48|0);ba(c|0);B()}B()}ea(0)|0;yc();B()}function JJ(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=-1;a:{if(!b|!c)break a;f=J[b>>2];b:{if(f){e=J[f+12>>2];if(e){j=0;if((c|0)==(e|0))break a;J[f+12>>2]=c;return 0}J[f+12>>2]=c;j=0;h=J[f+16>>2];if(!h|J[h+32>>2])break a;e=J[h+8>>2];if(!((e|0)==J[h+24>>2]|e>>>0>2147483646))J[h+24>>2]=e;e=J[h+20>>2];f=J[h+4>>2];if(!((e|0)==(f|0)|f>>>0>2147483646)){J[h+20>>2]=f;e=f}if(!e)break a;e=J[c>>2];c:{if(!e)break c;d:{if(Ec(e,21436))if(Ec(e,22625))break d;c=J[b+16>> -2];if(K[c|0]!=255|K[c+1|0]!=254)break d;J[b+16>>2]=c+2}e:{if(Ec(e,21445))break e;c=J[b+16>>2];if(K[c|0]!=254|K[c+1|0]!=255)break e;J[b+16>>2]=c+2}if(Ec(e,22390))break c;c=J[b+16>>2];if(K[c|0]!=239|K[c+1|0]!=187|K[c+2|0]!=191)break c;J[b+16>>2]=c+3}e=J[b+16>>2]-J[b+12>>2]|0;Hw(h,e);c=J[b>>2];J[c+20>>2]=J[c+16>>2];c=_J();l=J[b>>2];J[l+32>>2]=e;J[l+16>>2]=c;c=0;f=J[l+20>>2];f:{if(!f|J[f+32>>2])break f;c=J[f+8>>2];if(!((c|0)==J[f+24>>2]|c>>>0>2147483646))J[f+24>>2]=c;c=J[f+20>>2];e=J[f+4>>2];if((c|0)== -(e|0)|e>>>0>2147483646)break f;J[f+20>>2]=e;c=e}g:{if(J[a+32>>2]){e=MB(l,1);break g}h=d;i=bc-96|0;bc=i;e=-1;h:{if(!l|!J[l+12>>2])break h;g=J[l+16>>2];if(!g)break h;k=J[l+20>>2];if(!k)break h;e=0;if(J[k+32>>2])break h;d=J[k+8>>2];if(!((d|0)==J[k+24>>2]|d>>>0>2147483646))J[k+24>>2]=d;d=J[k+20>>2];f=J[k+4>>2];if(!((d|0)==(f|0)|f>>>0>2147483646)){J[k+20>>2]=f;d=f}if(!d)break h;i:{if(J[g+32>>2]){e=(h|0)<0?180:h;h=d>>>0>e>>>0?e:d;e=-1;f=0;break i}e=J[g+24>>2];f=J[g+8>>2];if(!((e|0)==(f|0)|f>>>0>2147483646)){J[g+ -24>>2]=f;e=f}j=J[g+20>>2];f=J[g+4>>2];if((j|0)==(f|0)|f>>>0>2147483646)f=j;else J[g+20>>2]=f;e=e+(f^-1)|0;f=(h|0)<0?180:h;h=d>>>0>f>>>0?f:d;d=h<<1;f=1;if(e>>>0>d>>>0)break i;j:{if((d|0)<=0)break j;ZJ(g,d);if(!J[g+32>>2])break j;e=-1;f=0;break i}d=J[g+24>>2];e=J[g+8>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[g+24>>2]=e;d=e}e=J[g+20>>2];f=J[g+4>>2];if(!((e|0)==(f|0)|f>>>0>2147483646)){J[g+20>>2]=f;e=f}e=d+(e^-1)|0;f=1}d=f;J[i+92>>2]=h;J[i+88>>2]=e>>>0>=360?360:e;k:{l:{f=J[J[l+12>>2]+4>>2];if(!f)break l; -if(d){d=J[g+8>>2];if(!((d|0)==J[g+24>>2]|d>>>0>2147483646))J[g+24>>2]=d;d=J[g+20>>2];e=J[g+4>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[g+20>>2]=e;d=e}d=d+J[g>>2]|0}else d=0;j=gc[f|0](d,i+88|0,J[k+32>>2]?0:J[k>>2],i+92|0)|0;Hw(k,J[i+92>>2]);m:{if(J[g+32>>2])break m;e=J[g+24>>2];d=J[g+8>>2];if(!((e|0)==(d|0)|d>>>0>2147483646)){J[g+24>>2]=d;e=d}f=J[i+88>>2];h=J[g+20>>2];d=J[g+4>>2];if(!((h|0)==(d|0)|d>>>0>2147483646)){J[g+20>>2]=d;h=d}if(f>>>0>e-h>>>0)break m;d=f+h|0;J[g+20>>2]=d;J[g+8>>2]=e>>>0>=2147483647? -2147483647:e;J[g+4>>2]=d>>>0>=2147483647?2147483647:d;if(d>>>0>=e>>>0)break m;H[d+J[g>>2]|0]=0}e=0;switch(j+3|0){case 0:break h;case 1:break l;default:break k}}h=J[k>>2];f=K[h|0];e=K[h+1|0];d=K[h+2|0];J[i+28>>2]=K[h+3|0];J[i+24>>2]=d;J[i+20>>2]=e;J[i+16>>2]=f;d=i+32|0;Gi(d,49,19979,i+16|0);H[i+81|0]=0;J[i>>2]=d;Cc(0,0,0,0,0,27,6003,3,d,0,0,0,32391,i);e=-2;break h}e=(j|0)!=-1?j:0}bc=i+96|0}d=0;if((e|0)>=0){e=J[b>>2];f=J[e+20>>2];n:{if(!f|J[f+32>>2])break n;a=J[f+8>>2];if(!((a|0)==J[f+24>>2]|a>>>0> -2147483646))J[f+24>>2]=a;d=J[f+20>>2];a=J[f+4>>2];if((d|0)==(a|0)|a>>>0>2147483646)break n;J[f+20>>2]=a;d=a}J[e+32>>2]=J[e+32>>2]+(c-d|0);j=0;d=J[e+16>>2];if(!d|J[d+32>>2])break a;a=J[d+8>>2];if(!((a|0)==J[d+24>>2]|a>>>0>2147483646))J[d+24>>2]=a;c=J[d+20>>2];a=J[d+4>>2];if(!((c|0)==(a|0)|a>>>0>2147483646)){J[d+20>>2]=a;c=a}a=J[d>>2];J[b+12>>2]=a;J[b+16>>2]=a;J[b+20>>2]=a+c;return 0}br(a,32984,0);break b}j=0;if(J[b+24>>2])break a;br(a,30756,0)}j=-1}return j}function DH(a,b){var c=0,d=0,e=0,f=0,g=0, -h=0,i=0,j=0;g=bc-416|0;bc=g;d=J[a+4>>2];a:{if((d|0)<0)break a;b:{c:{d:{e:{c=J[b+4>>2];switch(K[c|0]-239|0){case 0:break c;case 16:break d;case 15:break e;default:break b}}if(K[c+1|0]!=255)break b;J[g+12>>2]=2;if(!RX(b,g+12|0,g+16|0))break a;d=0;while(1){d=d+1|0;if((d|0)==100){f:{if((e|0)<0)break f;d=J[a+4>>2];if((e|0)>(d|0))break f;c=-1;g:{if((d|-2147483648)>>>0<=4294967195){c=d+100|0;f=J[a+8>>2];if((c|0)<=(f|0)){c=J[a>>2];break g}d=f<<1;c=f-1073741824>>>0<3221225473?c:(c|0)>(d|0)?c:d}J[a+8>>2]=c; -c=Nd(J[a>>2],c,4);J[a>>2]=c;d=J[a+4>>2]}if((d|0)>(e|0)){c=(e<<2)+c|0;Zc(c+400|0,c,d-e<<2);c=J[a>>2]}tc((e<<2)+c|0,g+16|0,400);J[a+4>>2]=J[a+4>>2]+100}e=e+100|0;d=0}if(RX(b,g+12|0,(g+16|0)+(d<<2)|0))continue;break}if((e|0)<0|(d|0)<=0)break a;c=J[a+4>>2];if((e|0)>(c|0))break a;b=-1;h:{if((c^2147483647)>>>0>=d>>>0){b=c+d|0;f=J[a+8>>2];if((b|0)<=(f|0)){b=J[a>>2];break h}c=f<<1;b=f-1073741824>>>0<3221225473?b:(b|0)>(c|0)?b:c}J[a+8>>2]=b;b=Nd(J[a>>2],b,4);J[a>>2]=b;c=J[a+4>>2]}if((c|0)>(e|0)){b=(e<<2)+ -b|0;Zc(b+(d<<2)|0,b,c-e<<2);b=J[a>>2]}tc((e<<2)+b|0,g+16|0,d<<2);J[a+4>>2]=J[a+4>>2]+d;break a}if(K[c+1|0]!=254)break b;J[g+12>>2]=2;if(!QX(b,g+12|0,g+16|0))break a;d=0;while(1){d=d+1|0;if((d|0)==100){i:{if((e|0)<0)break i;d=J[a+4>>2];if((e|0)>(d|0))break i;c=-1;j:{if((d|-2147483648)>>>0<=4294967195){c=d+100|0;f=J[a+8>>2];if((c|0)<=(f|0)){c=J[a>>2];break j}d=f<<1;c=f-1073741824>>>0<3221225473?c:(c|0)>(d|0)?c:d}J[a+8>>2]=c;c=Nd(J[a>>2],c,4);J[a>>2]=c;d=J[a+4>>2]}if((d|0)>(e|0)){c=(e<<2)+c|0;Zc(c+400| -0,c,d-e<<2);c=J[a>>2]}tc((e<<2)+c|0,g+16|0,400);J[a+4>>2]=J[a+4>>2]+100}e=e+100|0;d=0}if(QX(b,g+12|0,(g+16|0)+(d<<2)|0))continue;break}if((e|0)<0|(d|0)<=0)break a;c=J[a+4>>2];if((e|0)>(c|0))break a;b=-1;k:{if((c^2147483647)>>>0>=d>>>0){b=c+d|0;f=J[a+8>>2];if((b|0)<=(f|0)){b=J[a>>2];break k}c=f<<1;b=f-1073741824>>>0<3221225473?b:(b|0)>(c|0)?b:c}J[a+8>>2]=b;b=Nd(J[a>>2],b,4);J[a>>2]=b;c=J[a+4>>2]}if((c|0)>(e|0)){b=(e<<2)+b|0;Zc(b+(d<<2)|0,b,c-e<<2);b=J[a>>2]}tc((e<<2)+b|0,g+16|0,d<<2);J[a+4>>2]=J[a+ -4>>2]+d;break a}if(K[c+1|0]!=187|K[c+2|0]!=191)break b;J[g+12>>2]=3;if(!zA(b,g+12|0,g+16|0))break a;d=0;while(1){d=d+1|0;if((d|0)==100){l:{if((e|0)<0)break l;d=J[a+4>>2];if((e|0)>(d|0))break l;c=-1;m:{if((d|-2147483648)>>>0<=4294967195){c=d+100|0;f=J[a+8>>2];if((c|0)<=(f|0)){c=J[a>>2];break m}d=f<<1;c=f-1073741824>>>0<3221225473?c:(c|0)>(d|0)?c:d}J[a+8>>2]=c;c=Nd(J[a>>2],c,4);J[a>>2]=c;d=J[a+4>>2]}if((d|0)>(e|0)){c=(e<<2)+c|0;Zc(c+400|0,c,d-e<<2);c=J[a>>2]}tc((e<<2)+c|0,g+16|0,400);J[a+4>>2]=J[a+ -4>>2]+100}e=e+100|0;d=0}h=g+16|0;if(zA(b,g+12|0,h+(d<<2)|0))continue;break}if((d|0)<=0)break a;n:{if((e|0)<0)break n;c=J[a+4>>2];if((c|0)<(e|0))break n;b=-1;o:{if((c^2147483647)>=(d|0)){f=J[a+8>>2];b=c+d|0;if((f|0)>=(b|0)){b=J[a>>2];break o}c=f<<1;b=f-1073741824>>>0<3221225473?b:(b|0)>(c|0)?b:c}J[a+8>>2]=b;b=Nd(J[a>>2],b,4);J[a>>2]=b;c=J[a+4>>2]}if((c|0)>(e|0)){b=(e<<2)+b|0;Zc(b+(d<<2)|0,b,c-e<<2);b=J[a>>2]}tc((e<<2)+b|0,h,d<<2);J[a+4>>2]=J[a+4>>2]+d}break a}c=-1;e=J[b>>2];p:{if((e|0)<=(d^2147483647)){c= -d+e|0;f=J[a+8>>2];if((c|0)<=(f|0))break p;d=f<<1;c=f-1073741824>>>0<3221225473?c:(c|0)>(d|0)?c:d}J[a+8>>2]=c;i=a,j=Nd(J[a>>2],c,4),J[i>>2]=j;d=J[a+4>>2]}if((d|0)>0){c=J[a>>2];Zc(c+(e<<2)|0,c,d<<2)}d=0;J[g+12>>2]=0;if((e|0)>0){c=J[a>>2];b=J[b+4>>2];while(1){J[c+(d<<2)>>2]=J[(K[b+d|0]<<2)+2724752>>2];d=J[g+12>>2]+1|0;J[g+12>>2]=d;if((d|0)<(e|0))continue;break}}J[a+4>>2]=e+J[a+4>>2]}bc=g+416|0;return a}function WD(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=J[b+88>>2];j=J[g+40>>2];h=J[g+36>>2];H[a+ -2306|0]=e;H[a+2305|0]=c;H[a+2304|0]=d;J[a+2292>>2]=0;J[a+2296>>2]=0;b=K[g+45|0];f=K[g+44|0];a:{if((f|0)==(c|0))break a;i=(b|0)==3?8:f;b:{c:{d:{if((e|0)==1){e:switch(i-1|0){case 1:e=984;f:switch(c-4|0){case 4:e=985;break b;case 0:break b;case 12:break f;default:break a}e=986;break b;case 3:e=987;g:switch(c-8|0){case 8:break g;case 0:break b;default:break a}e=988;break b;case 0:break d;case 7:break e;default:break a}e=989;if((c|0)==16)break b;break a}h:switch(i-1|0){case 1:e=990;i:switch(c-4|0){case 4:e= -991;break b;case 12:break i;case 0:break b;default:break a}e=992;break b;case 3:e=993;j:switch(c-8|0){case 8:break j;case 0:break b;default:break a}e=994;break b;case 7:break h;case 0:break c;default:break a}e=995;if((c|0)==16)break b;break a}e=c<<31|c-2>>>1;if(e>>>0>=8|!(139>>>e&1))break a;e=J[(e<<2)+213E3>>2];break b}e=c<<31|c-2>>>1;if(e>>>0>=8|!(139>>>e&1))break a;e=J[(e<<2)+213032>>2]}J[a+2296>>2]=e}k:{l:{m:{n:{if(!((b|d)&255)){b=0;if(f>>>0<=8){b=(c|0)==16?996:997;J[a+2292>>2]=b}e=(c|0)==16?2: -1;break n}if(!(b|(d|0)!=4)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1E3:b?998:999;e=b?4:2;break m}if(!(b|(d|0)!=2)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1003:b?1001:1002;e=b?6:3;break m}if(!(b|(d|0)!=6)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1006:b?1004:1005;e=b?8:4;break m}if(!((d|0)!=4|(b|0)!=4)){b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1007;b=1007}e=(c|0)==16?4:2;break n}if(!((d|0)!=6|(b|0)!=4)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1010:b?1008:1009;e=b?8:4;break m}if(!((d|0)!=2|(b|0)!=2)){b=0;if(!((c|0)!=16| -f>>>0>8)){J[a+2292>>2]=1011;b=1011}e=(c|0)==16?6:3;break n}if(!((d|0)!=6|(b|0)!=2)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1014:b?1012:1013;e=b?8:4;break m}if(!((d|0)!=2|(b|0)!=3)){b=(c|0)==16;J[a+2292>>2]=b?1015:1016;e=b?6:3;break m}e=(d|0)!=6;if(!(e|(b|0)!=3)){b=(c|0)==16;J[a+2292>>2]=b?1017:1018;e=b?8:4;break m}if(!((b|0)!=6|e)){b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1019;b=1019}e=(c|0)==16?8:4;break n}if(!((d|0)!=8|(b|0)!=8)){b=0;if(f>>>0<=8){b=(c|0)==16?996:997;J[a+2292>>2]=b}e=(c|0)==16?2:1;break n}if(!((d| -0)!=12|(b|0)!=8)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1E3:b?998:999;e=b?4:2;break m}if(!((d|0)!=10|(b|0)!=8)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1003:b?1001:1002;e=b?6:3;break m}if(!((d|0)!=14|(b|0)!=8)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1006:b?1004:1005;e=b?8:4;break m}if(!((d|0)!=12|(b|0)!=12)){b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1007;b=1007}e=(c|0)==16?4:2;break n}if(!((d|0)!=14|(b|0)!=12)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1010:b?1008:1009;e=b?8:4;break m}if(!((d|0)!=10|(b|0)!=10)){b=0;if(!((c| -0)!=16|f>>>0>8)){J[a+2292>>2]=1011;b=1011}e=(c|0)==16?6:3;break n}e=(d|0)!=14;if(!(e|(b|0)!=10)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1014:b?1012:1013;e=b?8:4;break m}if((b|0)!=14|e)break l;b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1019;b=1019}e=(c|0)==16?8:4}if(!b)break l}J[a+2308>>2]=h;J[a+2300>>2]=g;i=P(e,h);l=P(i,j);k=gc[J[a+152>>2]](l)|0;if(!k){Dc(a,1,0,0);return 1}h=J[g+1176>>2];J[a+2316>>2]=k;J[a+2312>>2]=h;o:{if(!j){b=0;f=1;break o}h=0;while(1){p:{b=gc[J[a+2292>>2]](a)|0;J[a+2312>>2]=J[a+2312>> -2]+J[g+1168>>2];J[a+2316>>2]=i+J[a+2316>>2];if(b)break p;h=h+1|0;if(j>>>0>h>>>0)continue}break}h=J[g+1176>>2];f=!b}if(h)gc[J[a+156>>2]](h,J[g+1172>>2]);J[g+1176>>2]=k;J[g+1172>>2]=l;J[g+1168>>2]=i;J[g+1164>>2]=e;H[g+45|0]=d;H[g+44|0]=c;J[g+64>>2]=0;J[g+844>>2]=0;H[g+55|0]=0;H[g+56|0]=0;if(!f)break k}b=0}return b}function C3(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;e=J[a+1600>>2];if(!e)return;c=J[a+1584>>2];b=e-1|0;i=J[a+1596>>2];d=b+i|0;l=J[J[c+(d>>>8&16777212)>> -2]+((d&1023)<<2)>>2];J[a+1600>>2]=b;d=J[a+1588>>2];if((((c|0)!=(d|0)?(d-c<<8)-1|0:0)-(e+i|0)|0)+1>>>0>=2048){qc(J[d-4>>2]);J[a+1588>>2]=J[a+1588>>2]-4;b=J[a+1600>>2]}a:{if(b){b=(J[a+1596>>2]+b|0)-1|0;b=J[J[J[J[a+1584>>2]+(b>>>8&16777212)>>2]+((b&1023)<<2)>>2]+8>>2];break a}b=J[a>>2]}b:{c:{if(!b){if(l)break c;break b}J[a+1616>>2]=b;J[a+1612>>2]=b;e=J[a+1628>>2];if((e|0)<0)J[a+1616>>2]=b+P(e,1-J[a+1624>>2]|0);b=J[a+1576>>2];d:{if(!b){m=a+1632|0;e=J[l+8>>2];e:{if(!e)break e;a=J[m>>2];if(!J[a+8>>2]|!J[a+ -12>>2])break e;n=J[a+12>>2];if(!n)break e;r=J[a+8>>2];if(!r)break e;q=K[l+13|0];while(1){a=J[m>>2];a=J[a+4>>2]+P(J[a+16>>2],h)|0;i=0;while(1){b=P(q,K[e+3|0])+255|0;f:{if(!(b&65280))break f;j=K[e+2|0];c=b>>>8|0;if((c|0)!=255){b=a+3|0;f=K[a|0];g=K[a+1|0];k=K[a+2|0];o=K[e|0];p=K[e+1|0];d=K[a+3|0];g:{if((d|0)!=255){b=c+d-(P(c,d)+255>>>8)|0;H[a+3|0]=b;f=P(d,f);b=b&255;f=(f+P(c,o)-(P(c,f)+255>>>8)>>>0)/(b>>>0)|0;g=P(d,g);g=(g+P(c,p)-(P(c,g)+255>>>8)>>>0)/(b>>>0)|0;d=P(d,k);d=(d+P(c,j)-(P(c,d)+255>>>8)>>> -0)/(b>>>0)|0;b=a;break g}H[a|0]=f+(P(c,o-f|0)>>>8|0);g=g+(P(c,p-g|0)>>>8|0)|0;d=k+(P(c,j-k|0)>>>8|0)|0;f=(c-(P(c,255)+255>>>8|0)|0)+255|0}H[a+1|0]=g;H[a+2|0]=d;H[b|0]=f;break f}H[a+2|0]=j;H[a+1|0]=K[e+1|0];b=K[e|0];H[a+3|0]=255;H[a|0]=b}a=a+4|0;e=e+4|0;i=i+1|0;if((r|0)!=(i|0))continue;break}h=h+1|0;if((n|0)!=(h|0))continue;break}}break d}h:switch(J[b+12>>2]){case 0:m=a+1632|0;a=J[a+1576>>2];d=J[a+8>>2];r=J[a+12>>2]?1:4;e=J[l+8>>2];i:{if(!e)break i;a=J[m>>2];if(!J[a+8>>2]|!J[a+12>>2])break i;q=J[a+ -12>>2];if(!q)break i;s=J[a+8>>2];if(!s)break i;t=K[l+13|0];while(1){a=J[m>>2];a=J[a+4>>2]+P(J[a+16>>2],j)|0;i=0;while(1){b=P(P(t,K[e+3|0]),(P(K[d+1|0],150)+P(K[d+2|0],77)|0)+P(K[d|0],29)>>>8|0);if(b>>>0>=65281){c=b+255>>>16|0;o=K[e|0];p=K[e+1|0];n=K[e+2|0];b=a+3|0;f=K[a|0];g=K[a+1|0];k=K[a+2|0];h=K[a+3|0];j:{if((h|0)!=255){b=c+h-(P(c,h)+255>>>8)|0;H[a+3|0]=b;f=P(f,h);b=b&255;f=(f+P(c,o)-(P(c,f)+255>>>8)>>>0)/(b>>>0)|0;g=P(g,h);g=(g+P(c,p)-(P(c,g)+255>>>8)>>>0)/(b>>>0)|0;h=P(h,k);h=(h+P(c,n)-(P(c, -h)+255>>>8)>>>0)/(b>>>0)|0;b=a;break j}H[a|0]=f+(P(c,o-f|0)>>>8|0);g=g+(P(c,p-g|0)>>>8|0)|0;h=k+(P(c,n-k|0)>>>8|0)|0;f=(c-(P(c,255)+255>>>8|0)|0)+255|0}H[a+1|0]=g;H[a+2|0]=h;H[b|0]=f}d=d+r|0;a=a+4|0;e=e+4|0;i=i+1|0;if((s|0)!=(i|0))continue;break}j=j+1|0;if((q|0)!=(j|0))continue;break}}break d;case 1:break h;default:break d}m=a+1632|0;a=J[a+1576>>2];h=J[a+8>>2];r=J[a+12>>2]?1:4;e=J[l+8>>2];k:{if(!e)break k;a=J[m>>2];if(!J[a+8>>2]|!J[a+12>>2])break k;q=J[a+12>>2];if(!q)break k;s=J[a+8>>2];if(!s)break k; -t=K[l+13|0];while(1){a=J[m>>2];a=J[a+4>>2]+P(J[a+16>>2],j)|0;i=0;while(1){b=P(K[h|0],P(t,K[e+3|0]));if(b>>>0>=65281){c=b+255>>>16|0;o=K[e|0];p=K[e+1|0];n=K[e+2|0];b=a+3|0;f=K[a|0];g=K[a+1|0];k=K[a+2|0];d=K[a+3|0];l:{if((d|0)!=255){b=c+d-(P(c,d)+255>>>8)|0;H[a+3|0]=b;f=P(d,f);b=b&255;f=(f+P(c,o)-(P(c,f)+255>>>8)>>>0)/(b>>>0)|0;g=P(d,g);g=(g+P(c,p)-(P(c,g)+255>>>8)>>>0)/(b>>>0)|0;d=P(d,k);d=(d+P(c,n)-(P(c,d)+255>>>8)>>>0)/(b>>>0)|0;b=a;break l}H[a|0]=f+(P(c,o-f|0)>>>8|0);g=g+(P(c,p-g|0)>>>8|0)|0;d= -k+(P(c,n-k|0)>>>8|0)|0;f=(c-(P(c,255)+255>>>8|0)|0)+255|0}H[a+1|0]=g;H[a+2|0]=d;H[b|0]=f}h=h+r|0;a=a+4|0;e=e+4|0;i=i+1|0;if((s|0)!=(i|0))continue;break}j=j+1|0;if((q|0)!=(j|0))continue;break}}}if(!l)break b}gc[J[J[l>>2]+12>>2]](l)|0}}function gAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-32|0;bc=d;J[d+24>>2]=0;J[d+28>>2]=J[682146];J[695492]=0;da(5108,d+20|0,b|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){a=a+8|0;b=J[d+20>>2];c:{while(1){d:{J[695492]=0;c=d+24|0;e=ha(5109,b|0,c|0,0,0)|0;f=J[695492]; -J[695492]=0;if((f|0)==1)break d;e:{f:{g:{h:{i:{if(e){J[695492]=0;c=fd(c,2399970,-1);e=J[695492];J[695492]=0;if((e|0)==1)break d;if(!c){c=J[a>>2];if(c){J[695492]=0;J[d+16>>2]=0;aa(4985,d+16|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;J[695492]=0;da(5205,c|0,J[d+16>>2]);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[d+16>>2];J[d+16>>2]=0;if(!c)break e;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c| -0)==1)break a;break e}b=Z()|0;vc(d+16|0);break c}J[695492]=0;c=d+16|0;_(5206,c|0);e=J[695492];J[695492]=0;j:{k:{l:{if((e|0)!=1){J[695492]=0;aa(4993,a|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;c=J[d+16>>2];J[d+16>>2]=0;m:{if(!c)break m;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break m;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[a>>2];J[695492]=0;J[d+16>>2]=0;aa(4985,d+16|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)== -1)break k;J[695492]=0;da(5207,c|0,J[d+16>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break j;c=J[d+16>>2];J[d+16>>2]=0;if(!c)break e;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e}break a}b=Z()|0;break c}b=Z()|0;vc(d+16|0);break c}b=Z()|0;break c}b=Z()|0;vc(d+16|0);break c}J[695492]=0;c=fd(d+24|0,2399984,-1);e=J[695492];J[695492]=0;if((e|0)==1)break d;if(c)break e;J[d+12>>2]=0;J[695492]=0;c= -d+12|0;aa(4985,c|0,J[d+20>>2])|0;e=J[695492];J[695492]=0;n:{o:{p:{q:{if((e|0)!=1){J[695492]=0;da(5125,d+16|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break q;c=J[d+12>>2];J[d+12>>2]=0;r:{if(!c)break r;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break r;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[a>>2];if(!c)break p;J[695492]=0;da(5205,c|0,J[d+16>>2]);c=J[695492];J[695492]=0;if((c|0)!=1)break o;break g}b=Z()|0;break c}b=Z()|0; -vc(d+12|0);break c}J[695492]=0;c=d+8|0;_(5206,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break n;J[695492]=0;aa(4993,a|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[d+8>>2];J[d+8>>2]=0;s:{if(!c)break s;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break s;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[a>>2];J[695492]=0;da(5207,c|0,J[d+16>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break g}c=J[d+16>>2];J[d+16>>2]=0;if(!c)break e; -J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e}break a}b=Z()|0;break f}a=J[d+20>>2];J[d+20>>2]=0;t:{if(!a)break t;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break t;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}sc(d+24|0);bc=d+32|0;return}b=Z()|0;break c}b=Z()|0;vc(d+8|0);break f}b=Z()|0}vc(d+16|0);break c}J[695492]=0;_(5162, -b|0);c=J[695492];J[695492]=0;if((c|0)!=1)continue}break}b=Z()|0}vc(d+20|0);break b}b=Z()|0}sc(d+24|0);ba(b|0);B()}ea(0)|0;yc();B()}function wza(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=bc+-64|0;bc=f;a:{b:{if(!K[b+89|0]){a=Kc(f+40|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);ba(b|0);B()}h=di();J[f+36>>2]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if(!J[b+100>>2])break v;J[695492]=0;e=f+40|0;ca(5231, -e|0,c|0,0);g=J[695492];J[695492]=0;if((g|0)==1)break e;J[695492]=0;g=f+24|0;ca(5242,g|0,h|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break t;J[695492]=0;aa(4993,f+36|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break s;e=J[f+24>>2];J[f+24>>2]=0;w:{if(!e)break w;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(g)break w;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}e=f+40|0;sc(e);g=J[f+36>>2];if(!g)break v;J[695492]=0;e=aa(4989,e|0,2377915)| -0;i=J[695492];J[695492]=0;if((i|0)==1)break q;i=J[J[g>>2]+8>>2];J[695492]=0;g=aa(i|0,g|0,e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break p;sc(e);if(g)break u}J[695492]=0;e=f+16|0;da(5239,e|0,b|0);g=J[695492];J[695492]=0;if((g|0)==1)break o;g=J[c+8>>2];g=J[(g?g+12|0:2728584)>>2];J[695492]=0;i=f+24|0;ca(5121,i|0,e|0,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break n;J[695492]=0;e=f+32|0;ca(5242,e|0,h|0,i|0);h=J[695492];J[695492]=0;if((h|0)==1)break m;J[695492]=0;aa(4993,f+36|0,e|0)|0;e=J[695492];J[695492]= -0;if((e|0)==1)break l;e=J[f+32>>2];J[f+32>>2]=0;x:{if(!e)break x;J[695492]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(h)break x;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}e=f+24|0;sc(e);sc(f+16|0);h=J[f+36>>2];if(!h)break g;J[695492]=0;e=aa(4989,e|0,2377915)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i;g=J[J[h>>2]+8>>2];J[695492]=0;h=aa(g|0,h|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;sc(e);if(!h)break g}b=J[f+36>>2];J[a>>2]=0; -J[695492]=0;aa(4985,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break f;b=Z()|0;break d}b=Z()|0;break r}b=Z()|0;vc(f+24|0)}sc(f+40|0);break d}b=Z()|0;break d}b=Z()|0;sc(e);break d}b=Z()|0;break d}b=Z()|0;break j}b=Z()|0;break k}b=Z()|0;vc(f+32|0)}sc(f+24|0)}sc(f+16|0);break d}b=Z()|0;break d}b=Z()|0;sc(e);break d}J[a>>2]=0;if(d)break f;J[f+12>>2]=0;J[695492]=0;d=f+12|0;aa(4985,d|0,b|0)|0;e=J[695492];J[695492]=0;y:{z:{A:{if((e|0)!=1){e=K[b+88|0];h=J[b+84>>2];J[695492]=0;g=f+16|0;la(5244,g|0,c|0, -d|0,h|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break A;J[695492]=0;aa(4993,a|0,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break z;c=J[f+16>>2];J[f+16>>2]=0;B:{if(!c)break B;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break B;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[f+12>>2];J[f+12>>2]=0;C:{if(!c)break C;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break C;J[695492]=0;_(4987,c| -0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[a>>2];J[695492]=0;da(5237,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;vc(a);break d}b=Z()|0;vc(a);break d}b=Z()|0;break y}b=Z()|0;vc(f+16|0)}vc(f+12|0);vc(a);break d}a=J[f+36>>2];J[f+36>>2]=0;D:{if(!a)break D;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break c;if(b)break D;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}bc=f- -64|0;return}b=Z()|0}vc(f+36|0);ba(b|0);B()}ea(0)|0;yc()}B()}ea(0)| -0;yc();B()}function le(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;a:{if(!a|!b)break a;if((c|0)<0)c=Qc(b);l=J[a+28>>2];b:{if(l){if(c>>>0>1073741823)break a;if(c>>>0>>0)break b;break a}if(c>>>0>1073741823)break a}c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{e=J[a+8>>2];if((e|0)==128){g=K[b|0]<<5;if(c>>>0<11)break m;g=K[(b+c|0)-1|0]+g|0;break l}if(!c)break c;g=c&3;i=J[a+24>>2];if(c>>>0>=4){f=c&-4;while(1){i=P(K[b+d|0]+i|0,1025);i=P(K[(d|1)+b|0]+(i>>>6^i)|0,1025);i=P(K[(d|2)+b|0]+(i>>>6^i)| -0,1025);i=P(K[(d|3)+b|0]+(i>>>6^i)|0,1025);i=i>>>6^i;d=d+4|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}if(g)while(1){f=P(K[b+d|0]+i|0,1025);i=f>>>6^f;d=d+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}d=P(i,9);g=P(d>>>11^d,32769);break c}switch(c-2|0){case 4:break h;case 5:break i;case 6:break j;case 7:break k;case 8:break l;case 0:break d;case 1:break e;case 2:break f;case 3:break g;default:break c}}g=K[b+9|0]+g|0}g=K[b+8|0]+g|0}g=K[b+7|0]+g|0}g=K[b+6|0]+g|0}g=K[b+5|0]+g|0}g=K[b+4|0]+g|0}g=K[b+3|0]+g| -0}g=K[b+2|0]+g|0}g=K[b+1|0]+g|0}n=(g>>>0)%(e>>>0)|0;i=J[a+4>>2]+P(n,20)|0;n:{if(!J[i+12>>2]){j=0;i=0;break n}j=0;h=J[i>>2];if(h)while(1){d=i;i=h;if(!(J[d+16>>2]!=(g|0)|J[d+8>>2]!=(c|0))){f=J[d+4>>2];if(!Wc(f,b,c))break a}j=j+1|0;h=J[i>>2];if(h)continue;break}if(J[i+16>>2]!=(g|0)|J[i+8>>2]!=(c|0))break n;f=J[i+4>>2];if(!Wc(f,b,c))break a}m=J[a+20>>2];o:{if(!m)break o;d=128;k=J[m+8>>2];p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{if((e|0)==128){e=g;if((k|0)==128)break p;if((c|0)>0)break B;e=0;break A}e=g; -d=k;if((d|0)!=128)break p;e=K[b|0]<<5;if((c|0)<11)break z;e=K[(b+c|0)-1|0]+e|0;break y}o=c&3;h=J[m+24>>2];f=0;C:{if(c>>>0<4){d=0;break C}p=c&-4;d=0;e=0;while(1){h=P(K[b+d|0]+h|0,1025);h=P(K[(d|1)+b|0]+(h>>>6^h)|0,1025);h=P(K[(d|2)+b|0]+(h>>>6^h)|0,1025);h=P(K[(d|3)+b|0]+(h>>>6^h)|0,1025);h=h>>>6^h;d=d+4|0;e=e+4|0;if((p|0)!=(e|0))continue;break}}if(o)while(1){e=P(K[b+d|0]+h|0,1025);h=e>>>6^e;d=d+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}d=P(h,9);e=P(d>>>11^d,32769)}d=k;break p}d=128;switch(c-2|0){case 0:break q; -case 1:break r;case 2:break s;case 3:break t;case 4:break u;case 5:break v;case 6:break w;case 7:break x;case 8:break y;default:break p}}e=K[b+9|0]+e|0}e=K[b+8|0]+e|0}e=K[b+7|0]+e|0}e=K[b+6|0]+e|0}e=K[b+5|0]+e|0}e=K[b+4|0]+e|0}e=K[b+3|0]+e|0}e=K[b+2|0]+e|0}e=K[b+1|0]+e|0;d=128}d=J[m+4>>2]+P((e>>>0)%(d>>>0)|0,20)|0;if(!J[d+12>>2])break o;f=J[d>>2];if(f)while(1){k=d;d=f;if(!(J[k+16>>2]!=(e|0)|J[k+8>>2]!=(c|0))){f=J[k+4>>2];if(!Wc(f,b,c))break a}j=j+1|0;f=J[d>>2];if(f)continue;break}if(J[d+16>>2]!=(e| -0)|J[d+8>>2]!=(c|0))break o;f=J[d+4>>2];if(!Wc(f,b,c))break a}D:{E:{F:{d=J[a+16>>2];if(!d)break F;e=0;h=0;while(1){f=J[d+4>>2];if(J[d+8>>2]-f>>>0>c>>>0)break D;f=J[d+12>>2];h=f>>>0>h>>>0?f:h;e=e+f|0;d=J[d>>2];if(d)continue;break}if(l){f=0;if(e>>>0>l>>>0)break a}if(!h)break F;d=h<<2;break E}d=1E3}f=0;e=c<<2;e=d>>>0>e>>>0?d:e;d=gc[J[659447]](e+24|0)|0;if(!d)break a;J[d+16>>2]=0;J[d+12>>2]=e;f=d+20|0;J[d+4>>2]=f;J[d+8>>2]=e+f;J[d>>2]=J[a+16>>2];J[a+16>>2]=d}b=tc(f,b,c);e=J[d+4>>2]+c|0;J[d+4>>2]=e+1; -f=0;H[e|0]=0;J[d+16>>2]=J[d+16>>2]+1;if(!b)break a;G:{if(!i){d=J[a+4>>2]+P(n,20)|0;J[d+8>>2]=c;J[d+4>>2]=b;J[d+16>>2]=g;J[d+12>>2]=1;J[d>>2]=0;break G}d=gc[J[659447]](20)|0;if(!d)break a;J[d+8>>2]=c;J[d+4>>2]=b;J[d+16>>2]=g;J[d+12>>2]=1;J[d>>2]=0;J[i>>2]=d}J[a+12>>2]=J[a+12>>2]+1;H:{if(j>>>0<4)break H;c=J[a+8>>2];if(c>>>0>2730)break H;if(q0(a,P(c,6)))break a}f=b}return f}function _cb(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;e=bc-16|0;bc= -e;k=J[b+16>>2];l=J[b+8>>2];d=J[b>>2];o=J[a+492>>2];c=gc[J[b+36>>2]](b)|0;a:{if((c|0)<0){J[b+12>>2]=3;break a}d=l-d>>3;f=(c|0)<(d|0)?c:d;if(J[b+12>>2]|!f)break a;h=b+260|0;m=b+156|0;i=b+208|0;b:{if(!J[b+152>>2]){d=f+6|0;c=gc[J[J[o>>2]>>2]](i,d,k)|0;if(c)break b;c=gc[J[J[o>>2]>>2]](m,d,k)|0;if(c)break b;c=gc[J[J[o>>2]>>2]](h,4,k)|0;J[e+12>>2]=c;if(c)break b}gc[J[b+28>>2]](b);c=3;d=J[b>>2];if(l>>>0<=d>>>0)break b;s=f+5|0;f=0;c:{d:{while(1){e:{f:{if(d+3>>>0>=l>>>0)break f;g:switch(K[d+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break g; -default:break f}h:switch(K[d|0]-100|0){case 0:if(!f|(K[d+1|0]!=101|K[d+2|0]!=102))break f;break c;case 1:break h;default:break f}if(K[d+1|0]!=110)break f;if(K[d+2|0]==100)break e}gc[J[b+32>>2]](b);n=J[b>>2];if(n>>>0>=l>>>0){J[b+12>>2]=3;break a}if(J[b+12>>2])break a;i:{if(K[d|0]!=47)break i;if(d+2>>>0>=l>>>0){J[e+12>>2]=3;break d}j=J[J[a+128>>2]+52>>2];g=J[b+8>>2];gc[J[b+28>>2]](b);j:{c=J[b>>2];k:{if(c>>>0>=g>>>0|K[c|0]-48>>>0>9)break k;c=gc[J[b+36>>2]](b)|0;gc[J[b+32>>2]](b);if((c|0)<0)break k;t= -g;q=J[b>>2];g=q+1|0;if((c|0)<(t-g|0))break j}if(j)break a;J[b+12>>2]=3;break a}J[b>>2]=(c+q|0)+1;if(J[b+12>>2])break a;if(J[b+152>>2])break i;d=d+1|0;n=n-d|0;j=gc[J[b+200>>2]](m,f,d,n+1|0)|0;J[e+12>>2]=j;if(j)break d;j=f<<2;H[n+J[j+J[b+180>>2]>>2]|0]=0;if(K[d|0]==46){d=Ec(241950,J[j+J[b+180>>2]>>2]);r=d?r:1;p=d?p:f}d=J[a+172>>2];l:{if(!((d|0)<0|(f|0)>=(s|0))){if(c>>>0<=d>>>0){J[e+12>>2]=3;break d}d=Zd(k,c,e+12|0);if(J[e+12>>2])break d;d=tc(d,g,c);gc[J[o+16>>2]](d,c,4330);g=J[a+172>>2];u=e,v=gc[J[b+ -252>>2]](i,f,g+d|0,c-g|0)|0,J[u+12>>2]=v;if(d)gc[J[k+8>>2]](k,d);d=J[e+12>>2];break l}d=gc[J[b+252>>2]](i,f,g,c)|0;J[e+12>>2]=d}if(d)break d;f=!d+f|0}gc[J[b+28>>2]](b);d=J[b>>2];if(l>>>0>d>>>0)continue}break}if(f)break c;J[b+12>>2]=3;break a}c=J[e+12>>2];break b}J[b+152>>2]=f;if(r&255){a=J[J[b+180>>2]>>2];if(!Ec(241950,a))break a;c=gc[J[b+304>>2]](h,0,a,J[J[b+184>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+304>>2]](h,1,J[J[b+232>>2]>>2],J[J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;a=p<<2;c=gc[J[b+ -304>>2]](h,2,J[a+J[b+180>>2]>>2],J[a+J[b+184>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+304>>2]](h,3,J[a+J[b+232>>2]>>2],J[a+J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+200>>2]](m,p,J[J[b+284>>2]>>2],J[J[b+288>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+252>>2]](i,p,J[J[b+284>>2]+4>>2],J[J[b+288>>2]+4>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+200>>2]](m,0,J[J[b+284>>2]+8>>2],J[J[b+288>>2]+8>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+252>>2]](i,0,J[J[b+284>>2]+12>>2],J[J[b+288>>2]+12>> -2])|0;if(c)break b;break a}H[e+8|0]=K[330896];J[e+4>>2]=K[330892]|K[330893]<<8|(K[330894]<<16|K[330895]<<24);c=gc[J[b+304>>2]](h,0,J[J[b+180>>2]>>2],J[J[b+184>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+304>>2]](h,1,J[J[b+232>>2]>>2],J[J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+200>>2]](m,0,241950,8)|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+252>>2]](i,0,e+4|0,5)|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+200>>2]](m,f,J[J[b+284>>2]>>2],J[J[b+288>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=gc[J[b+252>> -2]](i,f,J[J[b+284>>2]+4>>2],J[J[b+288>>2]+4>>2])|0;if(c)break b;J[b+152>>2]=J[b+152>>2]+1;break a}J[b+12>>2]=c}bc=e+16|0}function sv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc+-64|0;bc=c;if(!K[2759508]){Lm(2759500,50);H[2759508]=1}if(!K[2759520]){Lm(2759512,9);H[2759520]=1}g=Uk(c+56|0,2382461);a:{b:{c:switch(J[a+8>>2]-1|0){case 0:J[695492]=0;e=c+32|0;ca(5048,e|0,2373364,2759500);d=J[695492];J[695492]=0;d:{e:{f:{g:{h:{i:{j:{k:{l:{if((d|0)!=1){J[695492]=0;d=c+40|0;ca(5121,d|0,e|0,J[(b<<2)+2389664>> -2]);b=J[695492];J[695492]=0;if((b|0)==1)break l;J[695492]=0;f=c+48|0;ca(5122,f|0,d|0,2759512);b=J[695492];J[695492]=0;if((b|0)==1)break k;a=J[a+20>>2];J[695492]=0;b=aa(5120,c+24|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break j;J[695492]=0;ca(5122,c|0,f|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;J[695492]=0;aa(5170,g|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;sc(c);sc(b);sc(f);sc(d);sc(e);break b}a=Z()|0;break a}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}a=Z()|0;break g}a= -Z()|0;sc(c)}sc(b)}sc(c+48|0)}sc(c+40|0)}sc(c+32|0);break a;case 1:J[695492]=0;e=c+32|0;ca(5048,e|0,2375284,2759500);d=J[695492];J[695492]=0;m:{n:{o:{p:{q:{r:{s:{if((d|0)!=1){J[695492]=0;d=c+40|0;ca(5121,d|0,e|0,J[(b<<2)+2389664>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break s;J[695492]=0;b=c+48|0;ca(5122,b|0,d|0,2759512);f=J[695492];J[695492]=0;if((f|0)==1)break r;J[695492]=0;ca(5122,c|0,b|0,a+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break q;J[695492]=0;aa(5170,g|0,c|0)|0;a=J[695492];J[695492]=0; -if((a|0)==1)break p;sc(c);sc(b);sc(d);sc(e);break b}a=Z()|0;break a}a=Z()|0;break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;sc(c)}sc(c+48|0)}sc(c+40|0)}sc(c+32|0);break a;case 2:J[695492]=0;e=c+32|0;ca(5048,e|0,2375873,2759500);d=J[695492];J[695492]=0;t:{u:{v:{w:{x:{y:{z:{if((d|0)!=1){J[695492]=0;d=c+40|0;ca(5121,d|0,e|0,J[(b<<2)+2389664>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break z;J[695492]=0;b=c+48|0;ca(5122,b|0,d|0,2759512);f=J[695492];J[695492]=0;if((f|0)==1)break y;J[695492]=0;ca(5122,c| -0,b|0,a+32|0);a=J[695492];J[695492]=0;if((a|0)==1)break x;J[695492]=0;aa(5170,g|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break w;sc(c);sc(b);sc(d);sc(e);break b}a=Z()|0;break a}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;sc(c)}sc(c+48|0)}sc(c+40|0)}sc(c+32|0);break a;case 3:J[695492]=0;e=c+32|0;ca(5048,e|0,2376381,2759500);d=J[695492];J[695492]=0;A:{B:{C:{D:{E:{F:{G:{if((d|0)!=1){J[695492]=0;d=c+40|0;ca(5121,d|0,e|0,J[(b<<2)+2389664>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break G; -J[695492]=0;b=c+48|0;ca(5122,b|0,d|0,2759512);f=J[695492];J[695492]=0;if((f|0)==1)break F;J[695492]=0;ca(5122,c|0,b|0,a+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break E;J[695492]=0;aa(5170,g|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break D;sc(c);sc(b);sc(d);sc(e);break b}a=Z()|0;break a}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;break C}a=Z()|0;sc(c)}sc(c+48|0)}sc(c+40|0)}sc(c+32|0);break a;default:break c}J[695492]=0;a=c+48|0;ca(5048,a|0,2383300,2759500);e=J[695492];J[695492]=0;H:{I:{J:{if((e| -0)!=1){J[695492]=0;ca(5121,c|0,a|0,J[(b<<2)+2389664>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break J;J[695492]=0;aa(5170,g|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break I;sc(c);sc(a);break b}a=Z()|0;break a}a=Z()|0;break H}a=Z()|0;sc(c)}sc(c+48|0);break a}a=J[g>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;b=ja(5018,c|0,a|0,2377733,334,2389747,0)|0;a=J[695492];J[695492]=0;K:{if((a|0)!=1){J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break K;B()}a=Z()|0;break a}a=Z()|0;Fc(b)}sc(g); -ba(a|0);B()}function Gn(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,y=0;if(J[694678]<0)pT();g=e>>1;if((g|0)>=(f|0)){y=c-1|0;while(1){o=g;n=P(d,g);w=n<<1;m=(y|0)/(g|0)|0;if((m|0)>=-3){g=0;p=P(n,3);q=0-p|0;r=0-n|0;s=w<<1;j=a;while(1){k=g;t=b<<1;x=t+j|0;u=g>>>0<3;h=g+3|0;a:{b:{if(!(u|(h|0)>(m|0))){g=j;if((b|0)<=0)break a;while(1){I[g>>1]=L[g>>1]-((P(I[g+w>>1]+I[(r<<1)+g>>1]|0,9)-(I[(q<<1)+g>>1]+I[(p<<1)+g>>1]|0)|0)+16>>> -5|0);g=(o<<1)+g|0;if(x>>>0>g>>>0)continue;break}break b}if((k|0)>(m|0))break b;g=(h|0)<=(m|0)?(p<<1)+j|0:0;i=(k|1)<=(m|0)?j+w|0:0;if(!u){h=j;if((b|0)<=0)break a;while(1){l=I[(r<<1)+h>>1];v=I[(q<<1)+h>>1];I[h>>1]=L[h>>1]-((P(l+(i?I[i>>1]:0)|0,9)-(v+(g?I[g>>1]:0)|0)|0)+16>>>5|0);l=o<<1;g=g?l+g|0:0;i=i?i+l|0:0;h=h+l|0;if(x>>>0>h>>>0)continue;break}break b}if(k){h=j;if((b|0)<=0)break a;while(1){l=I[(r<<1)+h>>1];I[h>>1]=L[h>>1]-((P(l+(i?I[i>>1]:0)|0,9)-(g?I[g>>1]:0)|0)+16>>>5|0);l=o<<1;g=g?l+g|0:0;i=i? -i+l|0:0;h=h+l|0;if(x>>>0>h>>>0)continue;break}break b}h=j;if((b|0)<=0)break a;while(1){I[h>>1]=L[h>>1]-((P(i?I[i>>1]:0,9)-(g?I[g>>1]:0)|0)+16>>>5|0);l=o<<1;g=g?l+g|0:0;i=i?i+l|0:0;h=h+l|0;if(x>>>0>h>>>0)continue;break}}h=q<<1;g=h+j|0;l=t+g|0;if(!(k>>>0<6|(k|0)>(m|0))){if((b|0)<=0)break a;while(1){I[g>>1]=L[g>>1]+((P(I[g+w>>1]+I[(r<<1)+g>>1]|0,9)-(I[g+h>>1]+I[(p<<1)+g>>1]|0)|0)+8>>>4|0);g=(o<<1)+g|0;if(l>>>0>g>>>0)continue;break}break a}if(u|(b|0)<=0)break a;i=(((k-2|0)>(m|0)?r:n)<<1)+g|0;while(1){I[g>> -1]=L[g>>1]+((I[(r<<1)+g>>1]+I[i>>1]|0)+1>>>1|0);h=o<<1;i=h+i|0;g=g+h|0;if(l>>>0>g>>>0)continue;break}}g=k+2|0;j=j+s|0;if((k-1|0)<=(m|0))continue;break}}if((c|0)>0){p=e&-2;r=0;q=P(o,3);u=0-q|0;t=a;while(1){g=t;i=0;j=0;e=0;v=0;if((b|0)>0){i=(b|0)>(o|0)?I[(o<<1)+g>>1]:i;j=(b|0)>(q|0)?I[(q<<1)+g>>1]:j;e=I[g>>1]-((P(i,9)-j|0)+16>>5)|0;I[g>>1]=e;g=(p<<1)+g|0}n=(b<<1)+t|0;c:{if(n>>>0<=g>>>0){k=0;h=j;m=e;break c}l=I[g>>1];h=j;m=P(i+h|0,9);k=(q<<1)+g|0;if(k>>>0>>0)h=I[k>>1];m=l-((m-h|0)+16>>5)|0;I[g>>1]= -m;g=(p<<1)+g|0;k=i;i=j}d:{if(g>>>0>=n>>>0){j=h;l=m;break d}j=h;l=(q<<1)+g|0;if(l>>>0>>0)j=I[l>>1];l=I[g>>1]-((P(h+i|0,9)-(j+k|0)|0)+16>>5)|0;I[g>>1]=l;k=(u<<1)+g|0;I[k>>1]=L[k>>1]+((e+m|0)+1>>>1|0);g=(p<<1)+g|0;k=i;i=h;v=e;e=m}s=q<<1;h=s+g|0;if(n>>>0>h>>>0)while(1){h=I[h>>1];m=I[g>>1]-((P(i+j|0,9)-(h+k|0)|0)+16>>5)|0;I[g>>1]=m;k=(u<<1)+g|0;I[k>>1]=L[k>>1]+((P(e+l|0,9)-(m+v|0)|0)+8>>>4|0);k=i;i=j;j=h;v=e;e=l;l=m;g=(p<<1)+g|0;h=s+g|0;if(n>>>0>h>>>0)continue;break}e:{if(g>>>0>=n>>>0){h=l;break e}k= -I[g>>1]-((P(i+j|0,9)-k|0)+16>>5)|0;I[g>>1]=k;s=u<<1;h=s+g|0;I[h>>1]=L[h>>1]+((P(e+l|0,9)-(k+v|0)|0)+8>>>4|0);m=p<<1;g=m+g|0;if(n>>>0<=g>>>0){e=l;h=k;break e}i=I[g>>1]-((P(j,9)-i|0)+16>>5)|0;I[g>>1]=i;h=g+s|0;I[h>>1]=L[h>>1]+((P(k+l|0,9)-(e+i|0)|0)+8>>>4|0);g=g+m|0;if(n>>>0<=g>>>0){e=k;h=i;break e}h=I[g>>1]-(16-j>>5)|0;I[g>>1]=h;e=g+s|0;I[e>>1]=L[e>>1]+((P(i+k|0,9)-(h+l|0)|0)+8>>>4|0);e=i;g=g+m|0;if(n>>>0<=g>>>0)break e;while(1){j=e;e=h;i=g+s|0;l=P(h+j|0,9);h=I[g>>1];I[i>>1]=L[i>>1]+((l-(k+h|0)|0)+ -8>>>4|0);k=j;g=g+m|0;if(n>>>0>g>>>0)continue;break}}i=u<<1;j=i+g|0;f:{if(j>>>0>=n>>>0)break f;k=h+1|0;if(j>>>0>=t>>>0)I[j>>1]=L[j>>1]+(e+k>>>1|0);j=p<<1;e=j+g|0;g=i+e|0;if(n>>>0<=g>>>0)break f;h=h+k>>>1|0;while(1){if(g>>>0>=t>>>0)I[g>>1]=h+L[g>>1];e=e+j|0;g=i+e|0;if(n>>>0>g>>>0)continue;break}}t=t+w|0;r=o+r|0;if((r|0)<(c|0))continue;break}}e=o;g=e>>1;if((g|0)>=(f|0))continue;break}}}function Bk(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;l=H[a+201|0]&1?1088:64;p=J[a+188>> -2];m=J[a+52>>2];f=K[a+200|0];a:{if(!f){k=c?2048:3840;while(1){e=L[m+(g<<1)>>1];b:{if(e>>>0>l>>>0){n=m+(e<<1)|0;j=0;while(1){e=L[n+(j<<1)>>1];c:{if(e){h=p+(e<<1)|0;o=i&15;if(i&1){if(k>>>0<=L[h>>1])gc[J[b+4>>2]](J[b>>2],i);h=h+2|0;i=i+1|0}f=i;i=f;if((o|0)==15)break c;while(1){if(k>>>0<=L[h>>1])gc[J[b+4>>2]](J[b>>2],f);if(k>>>0<=L[h+2>>1])gc[J[b+4>>2]](J[b>>2],f+1|0);h=h+4|0;f=f+2|0;i=f;if(f&15)continue;break}break c}i=i+16|0}j=j+1|0;if((j|0)!=64)continue;break}break b}i=i+1024|0}g=g+1|0;if((l|0)!=(g| -0))continue;break}break a}k=3;d:{e:switch(f-2|0){case 1:k=4;break d;case 0:case 7:break d;default:break e}k=2}n=k<<4;o=l>>>1|0;r=k-2|0;while(1){f=L[m+(h<<1)>>1];f:{if(f>>>0>o>>>0){s=m+(f<<2)|0;i=0;while(1){f=J[s+(i<<2)>>2];g:{if(f){h=f>>>16|0;f=p+P(n,f&65535)|0;h:switch(d|0){case 0:while(1){i:{if(h&1){gc[J[b+4>>2]](J[b>>2],g);f=f+k|0;break i}if((c|0)!=1)break i;j=0;j:switch(r|0){case 2:j=K[f|0];f=f+1|0;case 1:j=K[f|0]|j;f=f+1|0;break;case 0:break j;default:break i}if(K[f+1|0]|(K[f|0]|j&255))gc[J[b+ -4>>2]](J[b>>2],g);f=f+2|0}h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 1:while(1){if(!(!(h&1)&(c|0)!=1|L[f>>1]<256))gc[J[b+4>>2]](J[b>>2],g);f=f+2|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 2:while(1){if(!(!(h&1)&(c|0)!=1|(K[f|0]+127&255)>>>0>1))gc[J[b+4>>2]](J[b>>2],g);f=f+3|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 3:while(1){if(!(!(h&1)&(c|0)!=1|(L[f>>1]+32448&65535)>>>0>28348))gc[J[b+4>>2]](J[b>>2],g);f=f+2|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g; -case 4:while(1){k:{if(!(h&1)&(c|0)!=1)break k;j=L[f>>1];if((j+24159&65535)>>>0>23901|(j+95&254)>>>0>93)break k;gc[J[b+4>>2]](J[b>>2],g)}f=f+2|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 5:while(1){l:{if(!(h&1)&(c|0)!=1)break l;j=L[f>>1];if((j+24159&65535)>>>0>23645|(j+95&254)>>>0>93)break l;gc[J[b+4>>2]](J[b>>2],g)}f=f+2|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;default:break h}J[e>>2]=5;return}g=g+16|0}i=i+1|0;if((i|0)!=64)continue;break}break f}g=g+1024|0}q=q+1|0;h=q&65535; -if(l>>>0>h>>>0)continue;break}}j=0;i=bc-48|0;bc=i;f=J[a+224>>2];m:{if(!f)break m;k=J[f+44>>2];h=3;if((d|0)!=2)h=d?2:K[a+200|0]==219?2:1;if((k|0)<=0)break m;m=f+J[f+60>>2]|0;p=f+J[f+52>>2]|0;l=f+J[f+40>>2]|0;e=0;n=d-2|0;while(1){a=L[l+(j<<1)>>1];n:{if((a|0)>(k|0)){o=l+(a<<1)|0;g=0;while(1){a=L[o+(g<<1)>>1];o:{if(a){a=p+(a<<3)|0;while(1){d=J[m+(L[a>>1]<<2)>>2];p:{if(!d)break p;if(d>>>0<=16777215){if(e>>>0<=65535){I[i>>1]=e;WB(f,b,c,h,e,i,1,d);break p}I[i+2>>1]=e&1023|56320;I[i>>1]=(e>>>10|0)-10304; -WB(f,b,c,h,e,i,2,d);break p}q:{if(!c){if((d&-1610612736)==-2147483648)break q;break p}if(d&536870912)break p}if((d>>>24&31)>>>0>>0)break p;r:{s:switch(n|0){case 0:if((d&520093696)!=50331648)break p;if((d&16711680)>>>0<8585216)break r;break p;case 1:if((d&520093696)!=33554432)break p;if((d&16777215)-33088>>>0<28349)break r;break p;case 2:if((d&520093696)!=33554432|(d+24159&65534)>>>0>23901)break p;if((d+95&254)>>>0<94)break r;break p;case 3:break s;default:break r}if((d&520093696)!=33554432|(d+ -24159&65534)>>>0>23645|(d+95&254)>>>0>93)break p}gc[J[b+4>>2]](J[b>>2],e)}a=a+2|0;e=e+1|0;if(e&15)continue;break}break o}e=e+16|0}g=g+1|0;if((g|0)!=64)continue;break}break n}e=e+1024|0}j=j+1|0;if((k|0)!=(j|0))continue;break}}bc=i+48|0}function G0(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;d=J[a+12>>2]-5|0;e=J[a+44>>2];m=d>>>0>>0?d:e;g=J[J[a>>2]+4>>2];n=(b|0)!=4;a:{while(1){h=1;f=J[a>>2];d=J[f+16>>2];c=J[a+5820>>2]+42>>3;if(d>>>0>>0)break a;j=J[a+108>>2];k=J[a+ -92>>2];i=j-k|0;e=i+J[f+4>>2]|0;d=d-c|0;c=d>>>0>e>>>0?e:d;d=c>>>0>=65535?65535:c;if(m>>>0>d>>>0)if(!c&n|(!b|(d|0)!=(e|0)))break a;h=(b|0)==4&(d|0)==(e|0);RB(a,0,0,h);H[(J[a+8>>2]+J[a+20>>2]|0)-4|0]=d;H[(J[a+8>>2]+J[a+20>>2]|0)-3|0]=d>>>8;e=d^-1;H[(J[a+8>>2]+J[a+20>>2]|0)-2|0]=e;H[(J[a+8>>2]+J[a+20>>2]|0)-1|0]=e>>>8;e=J[a>>2];c=J[e+28>>2];Hh(c);f=J[c+20>>2];l=J[e+16>>2];f=f>>>0>>0?f:l;b:{if(!f)break b;tc(J[e+12>>2],J[c+16>>2],f);J[e+12>>2]=f+J[e+12>>2];J[c+16>>2]=f+J[c+16>>2];J[e+20>>2]=f+J[e+20>> -2];J[e+16>>2]=J[e+16>>2]-f;e=J[c+20>>2];J[c+20>>2]=e-f;if((e|0)!=(f|0))break b;J[c+16>>2]=J[c+8>>2]}if((j|0)!=(k|0)){e=d>>>0>i>>>0?i:d;tc(J[J[a>>2]+12>>2],J[a+56>>2]+J[a+92>>2]|0,e);c=J[a>>2];J[c+12>>2]=e+J[c+12>>2];J[c+16>>2]=J[c+16>>2]-e;J[c+20>>2]=e+J[c+20>>2];J[a+92>>2]=e+J[a+92>>2];d=d-e|0}if(d){c=J[a>>2];e=J[c+12>>2];f=J[c+4>>2];if(f){i=f;f=d>>>0>f>>>0?f:d;J[c+4>>2]=i-f;e=tc(e,J[c>>2],f);c:{d:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:o=c,p=ho(J[c+48>>2],e,f),J[o+48>>2]=p;break c;case 1:break d; -default:break c}o=c,p=$f(J[c+48>>2],e,f),J[o+48>>2]=p}J[c>>2]=f+J[c>>2];J[c+8>>2]=f+J[c+8>>2];c=J[a>>2];e=J[c+12>>2]}J[c+12>>2]=d+e;J[c+16>>2]=J[c+16>>2]-d;J[c+20>>2]=J[c+20>>2]+d}if(!h)continue;break}f=J[a>>2];h=0}d=J[f+4>>2];e:{if((d|0)==(g|0)){d=J[a+108>>2];break e}c=g-d|0;d=J[a+44>>2];f:{if(c>>>0>=d>>>0){J[a+5808>>2]=2;tc(J[a+56>>2],J[f>>2]-d|0,d);e=J[a+44>>2];J[a+108>>2]=e;d=e;break f}e=J[a+108>>2];g:{if(c>>>0>2]-e>>>0)break g;e=e-d|0;J[a+108>>2]=e;f=J[a+56>>2];tc(f,d+f|0,e);d=J[a+5808>> -2];if(d>>>0>1)break g;J[a+5808>>2]=d+1}tc(J[a+56>>2]+J[a+108>>2]|0,J[J[a>>2]>>2]-c|0,c);d=c+J[a+108>>2]|0;J[a+108>>2]=d;e=J[a+44>>2]}J[a+92>>2]=d;f=e;e=J[a+5812>>2];f=f-e|0;J[a+5812>>2]=(c>>>0>>0?c:f)+e}if(M[a+5824>>2]>>0)J[a+5824>>2]=d;c=3;h:{if(!h)break h;i:{j:switch(b|0){case 0:case 4:break i;default:break j}if(J[J[a>>2]+4>>2])break i;c=1;if(J[a+92>>2]==(d|0))break h}e=J[a+60>>2]+(d^-1)|0;c=J[a>>2];f=J[c+4>>2];k:{if(e>>>0>=f>>>0)break k;h=J[a+92>>2];g=J[a+44>>2];if((h|0)<(g|0))break k;d= -d-g|0;J[a+108>>2]=d;J[a+92>>2]=h-g;c=J[a+56>>2];tc(c,c+g|0,d);d=J[a+5808>>2];if(d>>>0<=1)J[a+5808>>2]=d+1;e=J[a+44>>2]+e|0;d=J[a+108>>2];c=J[a>>2];f=J[c+4>>2]}e=e>>>0>>0?e:f;if(e){g=J[a+56>>2];J[c+4>>2]=f-e;d=tc(d+g|0,J[c>>2],e);l:{m:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:o=c,p=ho(J[c+48>>2],d,e),J[o+48>>2]=p;break l;case 1:break m;default:break l}o=c,p=$f(J[c+48>>2],d,e),J[o+48>>2]=p}J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];d=e+J[a+108>>2]|0;J[a+108>>2]=d}if(M[a+5824>>2]>>0)J[a+5824>>2]=d;g= -J[a+92>>2];f=d-g|0;e=J[a+12>>2]-(J[a+5820>>2]+42>>3)|0;e=e>>>0>=65535?65535:e;c=J[a+44>>2];if(f>>>0<(c>>>0>e>>>0?e:c)>>>0){c=0;if(J[J[a>>2]+4>>2]|(!b|!((b|0)==4|(d|0)!=(g|0))))break h}c=0;d=e>>>0>f>>>0?f:e;c=J[J[a>>2]+4>>2]|(b|0)!=4?c:e>>>0>=f>>>0;RB(a,g+J[a+56>>2]|0,d,c);J[a+92>>2]=d+J[a+92>>2];a=J[a>>2];b=J[a+28>>2];Hh(b);d=J[b+20>>2];e=J[a+16>>2];d=d>>>0>>0?d:e;n:{if(!d)break n;tc(J[a+12>>2],J[b+16>>2],d);J[a+12>>2]=d+J[a+12>>2];J[b+16>>2]=d+J[b+16>>2];J[a+20>>2]=d+J[a+20>>2];J[a+16>>2]=J[a+ -16>>2]-d;a=J[b+20>>2];J[b+20>>2]=a-d;if((a|0)!=(d|0))break n;J[b+16>>2]=J[b+8>>2]}c=c<<1}return c|0}function uBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=bc-48|0;bc=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{d=J[a+20>>2];if(d)while(1){f=0;g=J[d+8>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;f=J[695492];J[695492]=0;if((f|0)==1)break c;f=J[d+8>>2]}J[695492]=0;J[e+44>>2]=f;g=ga(5117,f+36|0,b|0,-1)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j;f=J[e+44>>2];k:{if(!g)break k;J[695492]=0;g=ga(5117,f+20|0, -c|0,-1)|0;h=J[695492];J[695492]=0;if((h|0)==1)break j;if(g)break k;J[695492]=0;a=aa(5135,e+4|0,c|0)|0;b=J[695492];J[695492]=0;l:{m:{n:{o:{if((b|0)!=1){J[695492]=0;ca(5048,e+12|0,2387457,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break o;b=J[e+12>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=ja(5018,e+20|0,b|0,2377692,771,2387530,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break m;break d}d=Z()|0;break i}d=Z()|0;sc(a);break i}d=Z()|0;break l}d= -Z()|0;Fc(b)}sc(e+12|0);sc(a);break i}p:{if(!f)break p;J[695492]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(g)break p;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a}d=J[d>>2];if(d)continue;break}f=kf(b);d=J[J[a+92>>2]+((f>>>0)%M[a+88>>2]<<2)>>2];if(d)while(1){if((f|0)==J[d+12>>2])if(!tj(d+16|0,b,-1))break e;d=J[d+8>>2];if(d)continue;break}J[695492]=0;a=aa(5135,e+4|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;ca(5048,e+12|0, -2387790,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;b=J[e+12>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;c=ja(5018,e+20|0,b|0,2377692,776,2387530,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;Fc(c);break f}d=Z()|0}vc(e+44|0);ba(d|0);B()}b=Z()|0;break b}b=Z()|0}sc(e+12|0);break b}f=0;b=J[d+24>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break c;f=J[d+24>>2]}J[695492]=0;J[e+12>>2]=f; -h=f+20|0;f=kf(h);b=J[695492];J[695492]=0;q:{r:{if((b|0)==1)break r;b=0;J[695492]=0;g=a+52|0;a=g;d=J[J[a+12>>2]+((f>>>0)%M[a+8>>2]<<2)>>2];a=J[695492];J[695492]=0;if((a|0)==1)break r;s:{t:{if(!d)break t;while(1){u:{if((f|0)!=J[d+12>>2])break u;J[695492]=0;a=ga(5117,d+16|0,h|0,-1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break s;if(a)break u;b=d;break t}d=J[d+8>>2];if(d)continue;break}b=0}J[695492]=0;da(5136,g|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break r;b=J[e+12>>2];a=J[c>>2];v:{if(a){d=J[J[a>> -2]+28>>2];J[695492]=0;ca(d|0,e+20|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break v;break r}J[e+20>>2]=0}J[695492]=0;aa(4993,b+20|0,e+20|0)|0;a=J[695492];J[695492]=0;w:{if((a|0)!=1){a=J[e+20>>2];J[e+20>>2]=0;if(!a)break w;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break w;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break w}break a}d=Z()|0;vc(e+20|0);break q}a=J[b+20>>2];J[b+24>>2]=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=aa(5130,g|0,c|0)|0;b= -J[695492];J[695492]=0;if((b|0)==1)break r;J[695492]=0;aa(4993,a+24|0,e+12|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break r;a=J[e+12>>2];J[e+12>>2]=0;x:{if(!a)break x;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break x;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=e+48|0;return}d=Z()|0;break q}d=Z()|0}vc(e+12|0);ba(d|0);B()}B()}ba(Z()|0);B()}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function b4(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;g=bc-16|0;bc=g;J[b+12>>2]=0;J[b>>2]=c;h=c+d|0;J[b+8>>2]=h;gc[J[b+28>>2]](b);c=J[b>>2];a:{b:{if(h>>>0<=c>>>0)break b;k=a+132|0;m=a+164|0;n=a+168|0;o=a+464|0;while(1){c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{d=K[c|0];switch(d-99|0){case 1:break i;case 0:break k;case 2:break l;default:break j}}d=c+6|0;if((d|0)==(h|0))break h;if(d>>>0>=h>>>0)break d;switch(K[c+5|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break h; -default:break d}}m:{d=c+10|0;if((d|0)==(h|0))break m;if(d>>>0>=h>>>0)break d;switch(K[c+9|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break m;default:break d}}if(kd(c,242397,9))break d;break b}if((d|0)==70)break e}if(d-48>>>0<=9){gc[J[b+32>>2]](b);e=1;l=c;if(!J[b+12>>2])break c;break b}f=c+6|0;if(!((d|0)!=82|f>>>0>=h>>>0)){if(!e|K[c+1|0]!=68)break d;J[b>>2]=l;e=J[J[a+128>>2]+52>>2];d=J[b+8>>2];gc[J[b+28>>2]](b); -n:{c=J[b>>2];o:{if(c>>>0>=d>>>0|K[c|0]-48>>>0>9)break o;c=gc[J[b+36>>2]](b)|0;gc[J[b+32>>2]](b);if((c|0)<0)break o;f=d;d=J[b>>2];if((c|0)<(f+(d^-1)|0))break n}c=3;if(e)break a;break f}J[b>>2]=(c+d|0)+1;e=0;if(!J[b+12>>2])break c;c=3;break a}if(!((d|0)!=45|f>>>0>=h>>>0)){if(!e|K[c+1|0]!=124)break d;J[b>>2]=l;e=J[J[a+128>>2]+52>>2];d=J[b+8>>2];gc[J[b+28>>2]](b);p:{c=J[b>>2];q:{if(c>>>0>=d>>>0|K[c|0]-48>>>0>9)break q;c=gc[J[b+36>>2]](b)|0;gc[J[b+32>>2]](b);if((c|0)<0)break q;f=d;d=J[b>>2];if((c|0)<(f+ -(d^-1)|0))break p}c=3;if(!e)break f;break a}J[b>>2]=(c+d|0)+1;e=0;if(!J[b+12>>2])break c;c=3;break a}if((d|0)!=47|c+2>>>0>=h>>>0)break d;i=c+1|0;J[b>>2]=i;gc[J[b+32>>2]](b);if(J[b+12>>2])break b;e=0;c=J[b>>2];if((c|0)==(i|0))break c;j=c-i|0;if(j>>>0>21|c>>>0>=h>>>0)break c;c=329200;f=242690;p=K[i|0];while(1){d=c;r:{if(K[f|0]!=(p|0))break r;if((Qc(f)|0)!=(j|0))break r;if(Wc(i,f,j))break r;i=J[c+32>>2];c=J[b+376>>2];if(!(i&(c&1?2:1)))break c;if(c&2)if(Ec(f,242568))break c;f=J[a+532>>2];if(f)c=J[f>> -2]?f:0;else c=0;i=J[d+8>>2];s:{if((i|0)==11){gc[J[d+12>>2]](a,b);c=J[b+12>>2];break s}t:{u:{v:{w:{x:{y:{z:switch(J[d+4>>2]-2|0){case 1:J[g+12>>2]=k;if(c)break y;e=g+12|0;break u;case 2:J[g+12>>2]=n;e=g+12|0;if(!c)break u;e=c+212|0;break x;case 3:J[g+12>>2]=o;e=g+12|0;if(!c)break u;e=c+284|0;break x;case 4:J[g+12>>2]=b;e=g+12|0;break u;case 5:J[g+12>>2]=a;e=g+12|0;break u;case 6:J[g+12>>2]=f;e=g+12|0;c=0;break w;case 0:break v;default:break z}J[g+12>>2]=k;e=g+12|0;break u}e=c+144|0}f=J[e>>2];c=J[c>> -2]}if(f)break t;break g}J[g+12>>2]=m;e=g+12|0}c=0}if(i-9>>>0<=1){c=gc[J[b+68>>2]](b,d,e,c,0)|0;break s}c=gc[J[b+64>>2]](b,d,e,c,0)|0}J[b+12>>2]=c;if(!c){e=0;break c}if((c&255)==162)break g;break a}c=d+36|0;f=J[d+36>>2];if(f)continue;break}break c}if(!kd(c,242288,5))break b;break d}e=0;J[b+12>>2]=0;break c}J[b+12>>2]=3;break a}A:{d=c+14|0;if((d|0)==(h|0))break A;if(d>>>0>=h>>>0)break d;switch(K[c+13|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break A; -default:break d}}if(kd(c,242456,13))break d;d=J[b+376>>2];if(d&1)J[b+376>>2]=d|2;J[b>>2]=c+13;break c}gc[J[b+32>>2]](b);e=0;if(J[b+12>>2])break b}gc[J[b+28>>2]](b);c=J[b>>2];if(h>>>0>c>>>0)continue;break}}c=J[b+12>>2]}bc=g+16|0;return c}function H$a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,O=0,Q=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;b=J[b+84>>2];n= -P(J[b+108>>2],I[c+54>>1]);g=P(J[b+44>>2],I[c+22>>1]);h=P(n+g|0,6810);i=P(J[b+100>>2],I[c+50>>1]);f=P(J[b+36>>2],I[c+18>>1]);j=P(i+f|0,6810);N=h+P(g,4209)|0;o=P(I[c+6>>1],J[b+12>>2])<<13|1024;g=P(J[b+76>>2],I[c+38>>1]);k=P(J[b+140>>2],I[c+70>>1]);p=g-k|0;r=o+P(p,2896)|0;s=P(g+k|0,6476);O=r+s|0;l=N+O>>11;Q=j+P(f,4209)|0;t=P(I[c+2>>1],J[b+4>>2])<<13|1024;g=P(J[b+68>>2],I[c+34>>1]);f=P(J[b+132>>2],I[c+66>>1]);u=g-f|0;v=t+P(u,2896)|0;w=P(f+g|0,6476);R=v+w|0;m=Q+R>>11;f=P(l+m|0,6810);x=P(J[b+96>>2],I[c+ -48>>1]);y=P(J[b+32>>2],I[c+16>>1]);k=P(x+y|0,6810);g=J[d>>2]+e|0;a=J[a+332>>2]+128|0;m=f+P(m,4209)|0;z=P(J[b+104>>2],I[c+52>>1]);A=P(J[b+40>>2],I[c+20>>1]);B=P(z+A|0,6810);A=B+P(A,4209)|0;S=P(I[c+4>>1],J[b+8>>2])<<13|1024;q=P(J[b+72>>2],I[c+36>>1]);C=P(J[b+136>>2],I[c+68>>1]);T=q-C|0;U=S+P(T,2896)|0;q=P(q+C|0,6476);C=U+q|0;D=A+C>>11;V=P(I[c+8>>1],J[b+16>>2])<<13|1024;E=P(J[b+80>>2],I[c+40>>1]);F=P(J[b+144>>2],I[c+72>>1]);W=E-F|0;X=V+P(W,2896)|0;E=P(E+F|0,6476);F=X+E|0;Y=P(J[b+112>>2],I[c+56>>1]); -G=P(J[b+48>>2],I[c+24>>1]);Z=P(Y+G|0,6810);G=Z+P(G,4209)|0;L=F+G>>11;_=D-L|0;y=k+P(y,4209)|0;$=P(I[c>>1],J[b>>2])<<13|1024;M=P(J[b+64>>2],I[c+32>>1]);b=P(J[b+128>>2],I[c+64>>1]);aa=M-b|0;ba=$+P(aa,2896)|0;M=P(b+M|0,6476);ca=ba+M|0;b=(y+ca<<2&-8192)+131072|0;c=P(_,2896)+b|0;D=P(D+L|0,6476);L=c+D|0;H[g|0]=K[a+(m+L>>>18&1023)|0];H[g+4|0]=K[a+(L-m>>>18&1023)|0];f=f+P(l,-17828)|0;c=c-D|0;H[g+1|0]=K[a+(f+c>>>18&1023)|0];H[g+3|0]=K[a+(c-f>>>18&1023)|0];H[g+2|0]=K[a+(b+P(_,268423872)>>>18&1023)|0];g=h+P(n, --17828)|0;h=r-s|0;f=g+h>>11;j=j+P(i,-17828)|0;n=v-w|0;i=j+n>>11;c=P(f+i|0,6810);b=J[d+4>>2]+e|0;i=c+P(i,4209)|0;r=P(z,-17828)+B|0;s=U-q|0;l=r+s>>11;v=P(Y,-17828)+Z|0;w=X-E|0;m=v+w>>11;z=l-m|0;k=k+P(x,-17828)|0;x=ba-M|0;B=(k+x<<2&-8192)+131072|0;q=P(z,2896)+B|0;l=P(l+m|0,6476);m=q+l|0;H[b|0]=K[a+(i+m>>>18&1023)|0];H[b+4|0]=K[a+(m-i>>>18&1023)|0];c=c+P(f,-17828)|0;f=q-l|0;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];H[b+2|0]=K[a+(B+P(z,268423872)>>>18&1023)|0];f=o+P(p,-11584)>>11; -i=t+P(u,-11584)>>11;c=P(f+i|0,6810);b=J[d+8>>2]+e|0;i=c+P(i,4209)|0;u=(P(aa,1073730240)+$<<2&-8192)+131072|0;p=P(T,-11584)+S>>11;o=P(W,-11584)+V>>11;l=p-o|0;t=u+P(l,2896)|0;p=P(p+o|0,6476);o=t+p|0;H[b|0]=K[a+(i+o>>>18&1023)|0];H[b+4|0]=K[a+(o-i>>>18&1023)|0];c=c+P(f,-17828)|0;f=t-p|0;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];H[b+2|0]=K[a+(u+P(l,268423872)>>>18&1023)|0];g=h-g>>11;h=n-j>>11;c=P(g+h|0,6810);b=J[d+12>>2]+e|0;h=c+P(h,4209)|0;k=(x-k<<2&-8192)+131072|0;j=s-r>>11;f= -w-v>>11;n=j-f|0;i=k+P(n,2896)|0;j=P(f+j|0,6476);f=i+j|0;H[b|0]=K[a+(h+f>>>18&1023)|0];H[b+4|0]=K[a+(f-h>>>18&1023)|0];c=c+P(g,-17828)|0;g=i-j|0;H[b+1|0]=K[a+(c+g>>>18&1023)|0];H[b+3|0]=K[a+(g-c>>>18&1023)|0];H[b+2|0]=K[a+(k+P(n,268423872)>>>18&1023)|0];g=O-N>>11;h=R-Q>>11;c=P(g+h|0,6810);b=J[d+16>>2]+e|0;d=c+P(h,4209)|0;f=(ca-y<<2&-8192)+131072|0;e=C-A>>11;h=F-G>>11;j=e-h|0;k=f+P(j,2896)|0;e=P(e+h|0,6476);h=k+e|0;H[b|0]=K[a+(d+h>>>18&1023)|0];H[b+4|0]=K[a+(h-d>>>18&1023)|0];c=c+P(g,-17828)|0;d=k- -e|0;H[b+1|0]=K[a+(c+d>>>18&1023)|0];H[b+3|0]=K[a+(d-c>>>18&1023)|0];H[b+2|0]=K[a+(f+P(j,268423872)>>>18&1023)|0]}function z1(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=bc-80|0;bc=h;J[h- -64>>2]=J[183131];j=J[183130];J[h+56>>2]=J[183129];J[h+60>>2]=j;j=J[183128];J[h+48>>2]=J[183127];J[h+52>>2]=j;j=J[183126];J[h+40>>2]=J[183125];J[h+44>>2]=j;J[h+32>>2]=J[183138];j=J[183137];J[h+24>>2]=J[183136];J[h+28>>2]=j;j=J[183135];J[h+16>>2]=J[183134];J[h+20>>2]=j;j=J[183133];J[h+8>>2]=J[183132];J[h+12>>2]= -j;a:{if(!d|J[d>>2]>0)break a;if(!a){J[d>>2]=1;break a}j=J[J[J[a+24>>2]+20>>2]+56>>2];b:{if(j){J[h+72>>2]=0;gc[j|0](a,0,h+72|0,d)|0;if(J[d>>2]<=0)break b;break a}J[h+72>>2]=260}c:{if(!c){j=1;J[h+76>>2]=1;c=h+76|0;break c}j=J[c>>2];J[h+76>>2]=j;if((j|0)>0)break c;J[c>>2]=J[h+72>>2];break a}k=b&7;d:{if(!k)break d;k=8-k|0;if(k>>>0>>0){j=j-k|0;J[h+76>>2]=j;b=b+k|0;break d}j=1;J[h+76>>2]=1}e:{f:{e=J[h+72>>2];if((e|0)>(j|0))break f;j=0;if(!b)break f;k=b;break e}k=Wh(e);if(!k){J[d>>2]=7;k=0;break a}J[d>> -2]=-126;e=J[h+72>>2];J[c>>2]=e;j=k}l=tc(wc(k,0,e),a,260);H[l+33|0]=0;H[l+34|0]=0;g:{h:{if(J[a+20>>2]==(a+108|0)){J[l+20>>2]=l+108;break h}e=Wh(64);J[l+20>>2]=e;if(!e)break g;f=J[a+20>>2];g=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16|K[f+7|0]<<24);i=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+3|0]=i>>>24;H[e+4|0]=g;H[e+5|0]=g>>>8;H[e+6|0]=g>>>16;H[e+7|0]=g>>>24;g=K[f+60|0]|K[f+61|0]<<8|(K[f+62|0]<<16|K[f+63|0]<<24);i=K[f+56|0]|K[f+57|0]<<8|(K[f+58|0]<<16|K[f+59| -0]<<24);H[e+56|0]=i;H[e+57|0]=i>>>8;H[e+58|0]=i>>>16;H[e+59|0]=i>>>24;H[e+60|0]=g;H[e+61|0]=g>>>8;H[e+62|0]=g>>>16;H[e+63|0]=g>>>24;g=K[f+52|0]|K[f+53|0]<<8|(K[f+54|0]<<16|K[f+55|0]<<24);i=K[f+48|0]|K[f+49|0]<<8|(K[f+50|0]<<16|K[f+51|0]<<24);H[e+48|0]=i;H[e+49|0]=i>>>8;H[e+50|0]=i>>>16;H[e+51|0]=i>>>24;H[e+52|0]=g;H[e+53|0]=g>>>8;H[e+54|0]=g>>>16;H[e+55|0]=g>>>24;g=K[f+44|0]|K[f+45|0]<<8|(K[f+46|0]<<16|K[f+47|0]<<24);i=K[f+40|0]|K[f+41|0]<<8|(K[f+42|0]<<16|K[f+43|0]<<24);H[e+40|0]=i;H[e+41|0]=i>>> -8;H[e+42|0]=i>>>16;H[e+43|0]=i>>>24;H[e+44|0]=g;H[e+45|0]=g>>>8;H[e+46|0]=g>>>16;H[e+47|0]=g>>>24;g=K[f+36|0]|K[f+37|0]<<8|(K[f+38|0]<<16|K[f+39|0]<<24);i=K[f+32|0]|K[f+33|0]<<8|(K[f+34|0]<<16|K[f+35|0]<<24);H[e+32|0]=i;H[e+33|0]=i>>>8;H[e+34|0]=i>>>16;H[e+35|0]=i>>>24;H[e+36|0]=g;H[e+37|0]=g>>>8;H[e+38|0]=g>>>16;H[e+39|0]=g>>>24;g=K[f+28|0]|K[f+29|0]<<8|(K[f+30|0]<<16|K[f+31|0]<<24);i=K[f+24|0]|K[f+25|0]<<8|(K[f+26|0]<<16|K[f+27|0]<<24);H[e+24|0]=i;H[e+25|0]=i>>>8;H[e+26|0]=i>>>16;H[e+27|0]=i>>> -24;H[e+28|0]=g;H[e+29|0]=g>>>8;H[e+30|0]=g>>>16;H[e+31|0]=g>>>24;g=K[f+20|0]|K[f+21|0]<<8|(K[f+22|0]<<16|K[f+23|0]<<24);i=K[f+16|0]|K[f+17|0]<<8|(K[f+18|0]<<16|K[f+19|0]<<24);H[e+16|0]=i;H[e+17|0]=i>>>8;H[e+18|0]=i>>>16;H[e+19|0]=i>>>24;H[e+20|0]=g;H[e+21|0]=g>>>8;H[e+22|0]=g>>>16;H[e+23|0]=g>>>24;g=K[f+12|0]|K[f+13|0]<<8|(K[f+14|0]<<16|K[f+15|0]<<24);f=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);H[e+8|0]=f;H[e+9|0]=f>>>8;H[e+10|0]=f>>>16;H[e+11|0]=f>>>24;H[e+12|0]=g;H[e+13|0]=g>>>8;H[e+14| -0]=g>>>16;H[e+15|0]=g>>>24}i:{e=J[J[J[a+24>>2]+20>>2]+56>>2];j:{if(e){k=gc[e|0](a,l,c,d)|0;if(!k)break j}if(J[d>>2]<=0)break i}if(!j)break g;a=J[j+20>>2];if((a|0)==(j+108|0))break g;Gf(a);break g}c=J[a+24>>2];if(!c|!K[c+17|0]?0:K[c+17|0])J[c+4>>2]=J[c+4>>2]+1;if((b|0)==(k|0))H[b+33|0]=1;J[h+44>>2]=k;J[h+12>>2]=k;J[h+68>>2]=0;b=h+68|0;gc[J[a+4>>2]](J[a+16>>2],h+40|0,0,0,5,b);J[h+68>>2]=0;gc[J[a>>2]](J[a+12>>2],h+8|0,0,0,0,5,b);break a}Gf(j);k=0}bc=h+80|0;return k}function Er(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0;g=bc-768|0;bc=g;te(b,Ac(b)<<1);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!Ac(b)){if((Ac(b)|0)!=1399353411)break n;if((Ac(b)|0)==2){if(Ac(b))break m;if((Ac(b)|0)!=1315774496)break l;if((Ac(b)|0)!=1413830740)break k;te(b,Ac(b)<<1)}if(Ac(b))break j;if((Ac(b)|0)!=1131574816)break i;if((Ac(b)|0)!=1449938035)break h;n=Ac(b);o:{if((n|0)>0){while(1){if((Ac(b)|0)!=1331849827)break g;te(b,Ac(b)<<1);if(Ac(b))break f; -if((Ac(b)|0)!=1131565172)break e;h=(g+512|0)+c|0;H[h|0]=0;l=(g+256|0)+c|0;H[l|0]=0;v=c+g|0;H[v|0]=0;k=Ac(b);if(k)while(1){if(Ac(b))break d;f=Ac(b);i=Ac(b);p:{q:{r:{if((f|0)!=1131312249){if((f|0)!=1450341475){if((f|0)!=1215461998)break r;if((i|0)!=1685026146)break c;j=be(b);if(!(R(j)<2147483648))break q;H[h|0]=~~j;break p}if((i|0)!=1685026146)break b;j=be(b);if(R(j)<2147483648){H[l|0]=~~j;break p}H[l|0]=0;break p}if((i|0)!=1651470188)break a;C=v,D=1-me(b)|0,H[C|0]=D;break p}fa(219530,219843,703,224886); -B()}H[h|0]=0}k=k-1|0;if(k)continue;break}c=c+1|0;if((n|0)!=(c|0))continue;break}b=K[g+512|0];if(!b)break o}wc(a,K[g+256|0],b&255)}l=n-1|0;b=K[l+(g+512|0)|0];wc(b+a|0,K[l+(g+256|0)|0],256-b|0);if((n|0)>=2){v=n-2|0;b=0;while(1){i=g+256|0;c=g+512|0;f=b+1|0;j=+K[c+f|0];h=b-1|0;h=K[b+g|0]==1?b:b>>>0>=h>>>0?h:0;m=+K[h+c|0];d=m*-.5;y=j*.5+(d+0)+0;p=y*0;k=K[g+f|0]==1?f:(b|0)==(v|0)?l:b+2|0;e=+K[k+c|0];s=d;d=+K[b+c|0];q=e*.5+(j*-1.5+(s+d*1.5));o=e*-.5+(j+j+(d*-2.5+m));w=o*0;j=p+(q*0+w)+d;d=j>0?j:0;d=d<255? -d:255;s:{if(R(d)<2147483648){c=~~d;break s}c=-2147483648}u=c+a|0;d=+K[f+i|0];t=+K[i+h|0];e=t*-.5;z=d*.5+(e+0)+0;m=z*0;r=+K[i+k|0];s=e;e=+K[b+i|0];x=r*.5+(d*-1.5+(s+e*1.5));t=r*-.5+(d+d+(e*-2.5+t));r=t*0;d=m+(x*0+r)+e;e=d>0?d:0;e=e<255?e:255;t:{if(R(e)<2147483648){b=~~e;break t}b=-2147483648}H[u|0]=b;e=x*4.470348358154297E-8;r=m+(e+r)+0;s=q*4.470348358154297E-8;w=p+(s+w)+0;m=m+(e+t*7.62939453125E-6)+0;p=p+(s+o*7.62939453125E-6)+0;e=z*.001953125+(x*7.450580596923828E-9+t*3.814697265625E-6)+0;q=y*.001953125+ -(q*7.450580596923828E-9+o*3.814697265625E-6)+0;k=0;while(1){d=d+e;o=d+.5;u:{if(R(o)<2147483648){i=~~o;break u}i=-2147483648}A=(i|0)>0?i:0;u=A>>>0<255;h=b;i=c;j=q+j;o=j+.5;v:{if(R(o)<2147483648){c=~~o;break v}c=-2147483648}b=(c|0)>0?c:0;c=b>>>0>=255?255:b;b=u?A:255;if(!((i|0)==(c|0)&(h|0)==(b|0)))H[a+c|0]=b;e=e+m;q=p+q;m=r+m;p=w+p;k=k+1|0;if((k|0)!=512)continue;break}b=f;if((l|0)!=(b|0))continue;break}}w:{if((n|0)<=0)break w;c=0;b=0;if(n>>>0>=4){i=n&-4;k=0;while(1){f=g+512|0;h=g+256|0;H[K[f+b|0]+a| -0]=K[h+b|0];l=b|1;H[K[l+f|0]+a|0]=K[h+l|0];l=b|2;H[K[l+f|0]+a|0]=K[h+l|0];u=f;f=b|3;H[K[u+f|0]+a|0]=K[f+h|0];b=b+4|0;k=k+4|0;if((i|0)!=(k|0))continue;break}}f=n&3;if(!f)break w;while(1){H[K[(g+512|0)+b|0]+a|0]=K[(g+256|0)+b|0];b=b+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}bc=g+768|0;return}fa(221262,219843,626,224886);B()}fa(224041,219843,629,224886);B()}fa(221262,219843,637,224886);B()}fa(224243,219843,640,224886);B()}fa(224416,219843,642,224886);B()}fa(221262,219843,649,224886);B()}fa(224585, -219843,652,224886);B()}fa(224916,219843,655,224886);B()}fa(224959,219843,662,224886);B()}fa(221262,219843,668,224886);B()}fa(225002,219843,671,224886);B()}fa(221262,219843,681,224886);B()}fa(225043,219843,689,224886);B()}fa(225043,219843,694,224886);B()}fa(225058,219843,699,224886);B()}function X9(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;a:{b:{if(!J[a+16>>2]){if((d|0)<=0)break b;q=J[a+28>>2];p=J[a+20>>2];while(1){m=d;i=O[b+8>>3];f=O[b>>3];k=O[b+16>> -3];e=k;c:{if(!J[a+24>>2]|p)break c;e=O[J[a+32>>2]>>3];g=J[a+36>>2];l=g-1|0;f=f*+(l|0);h=V(f);d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}e:{if((d|0)<0)break e;j=J[a+32>>2];e=O[j+(l<<3)>>3];n=g;h=W(f);f:{if(R(h)<2147483648){g=~~h;break f}g=-2147483648}if((n|0)<=(g|0))break e;e=f-+(d|0);f=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-f)+f}f=e;e=O[J[a+40>>2]>>3];g=J[a+44>>2];l=g-1|0;i=i*+(l|0);h=V(i);g:{if(R(h)<2147483648){d=~~h;break g}d=-2147483648}h:{if((d|0)<0)break h;j=J[a+40>>2];e=O[j+(l<<3)>>3];n= -g;h=W(i);i:{if(R(h)<2147483648){g=~~h;break i}g=-2147483648}if((n|0)<=(g|0))break h;e=i-+(d|0);i=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-i)+i}i=e;e=O[J[a+48>>2]>>3];g=J[a+52>>2];l=g-1|0;h=k*+(l|0);k=V(h);j:{if(R(k)<2147483648){d=~~k;break j}d=-2147483648}if((d|0)<0)break c;j=J[a+48>>2];e=O[j+(l<<3)>>3];n=g;k=W(h);k:{if(R(k)<2147483648){g=~~k;break k}g=-2147483648}if((n|0)<=(g|0))break c;e=h-+(d|0);h=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-h)+h}k=e;l:{if(!q){h=i;o=k;break l}o=O[a+144>>3]+(O[a+136>>3]*k+(O[a+ -120>>3]*f+i*O[a+128>>3]));h=O[a+112>>3]+(O[a+104>>3]*k+(O[a+88>>3]*f+i*O[a+96>>3]));f=O[a+80>>3]+(O[a+72>>3]*k+(O[a+56>>3]*f+i*O[a+64>>3]))}m:{if(!p|!J[a+24>>2])break m;e=O[J[a+32>>2]>>3];g=J[a+36>>2];l=g-1|0;f=f*+(l|0);i=V(f);n:{if(R(i)<2147483648){d=~~i;break n}d=-2147483648}o:{if((d|0)<0)break o;j=J[a+32>>2];e=O[j+(l<<3)>>3];n=g;i=W(f);p:{if(R(i)<2147483648){g=~~i;break p}g=-2147483648}if((n|0)<=(g|0))break o;e=f-+(d|0);f=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-f)+f}f=e;e=O[J[a+40>>2]>>3];g=J[a+44>> -2];l=g-1|0;i=h*+(l|0);h=V(i);q:{if(R(h)<2147483648){d=~~h;break q}d=-2147483648}r:{if((d|0)<0)break r;j=J[a+40>>2];e=O[j+(l<<3)>>3];n=g;h=W(i);s:{if(R(h)<2147483648){g=~~h;break s}g=-2147483648}if((n|0)<=(g|0))break r;e=i-+(d|0);i=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-i)+i}h=e;g=J[a+52>>2];l=g-1|0;i=o*+(l|0);k=V(i);t:{if(R(k)<2147483648){d=~~k;break t}d=-2147483648}if((d|0)<0){o=O[J[a+48>>2]>>3];break m}j=J[a+48>>2];n=g;k=W(i);u:{if(R(k)<2147483648){g=~~k;break u}g=-2147483648}if((n|0)<=(g|0)){o=O[j+ -(l<<3)>>3];break m}e=i-+(d|0);i=O[j+(d<<3)>>3];o=e*(O[j+(g<<3)>>3]-i)+i}b=b+24|0;d=m-1|0;O[c+16>>3]=o;O[c+8>>3]=h;O[c>>3]=f;c=c+24|0;if(m>>>0>1)continue;break}break b}if(J[a+20>>2])break a;if((d|0)<=0)break b;m=d-1|0;if(!J[a+24>>2]){if(d&1){i=O[a+56>>3];h=O[a+88>>3];f=O[b>>3];O[c+16>>3]=f*O[a+120>>3];O[c+8>>3]=f*h;O[c>>3]=f*i;c=c+24|0;b=b+8|0;d=d-2|0}else d=m;if(!m)break b;while(1){i=O[a+56>>3];h=O[a+88>>3];f=O[b>>3];O[c+16>>3]=f*O[a+120>>3];O[c+8>>3]=f*h;O[c>>3]=f*i;i=O[a+56>>3];h=O[a+88>>3];f=O[b+ -8>>3];O[c+40>>3]=f*O[a+120>>3];O[c+32>>3]=f*h;O[c+24>>3]=f*i;c=c+48|0;b=b+16|0;m=(d|0)==1;d=d-2|0;if(!m)continue;break}break b}l=J[a+36>>2];p=l-1|0;i=+(p|0);while(1){d=m;e=O[J[a+32>>2]>>3];f=O[b>>3]*i;h=V(f);v:{if(R(h)<2147483648){m=~~h;break v}m=-2147483648}w:{if((m|0)<0)break w;j=J[a+32>>2];e=O[j+(p<<3)>>3];h=W(f);x:{if(R(h)<2147483648){g=~~h;break x}g=-2147483648}if((g|0)>=(l|0))break w;e=f-+(m|0);f=O[j+(m<<3)>>3];e=e*(O[j+(g<<3)>>3]-f)+f}f=e;b=b+8|0;h=O[a+56>>3];k=O[a+88>>3];O[c+16>>3]=f*O[a+ -120>>3];O[c+8>>3]=f*k;O[c>>3]=f*h;m=d-1|0;c=c+24|0;if((d|0)>0)continue;break}}return 0}fa(202223,198640,846,206607);B()}function s0a(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;i=J[a+4>>2];l=J[i+52>>2];o=l>>>0<268435456?741904:742032;m=l>>>16|0;c=J[a+24>>2];j=J[a+20>>2];d=J[a+16>>2];n=J[a+12>>2];g=J[a+8>>2];h=!(l&16777216);a:{b:{c:{while(1){if(!h){d:{e:{h=n-g>>1;f=j-d|0;k=(f|0)>(h|0)?h:f;f:{if((k|0)<=0){h=g;break f}while(1){g:{h:{i:{f=L[g>>1];if(f>>>0>127)break i; -h=g+2|0;if(K[f+o|0]){H[d|0]=f;if(c)break h;c=0;break g}if((f|0)!=43)break i;H[d|0]=43;g=d+1|0;if(g>>>0>>0){H[d+1|0]=45;if(c){J[c+4>>2]=e;J[c>>2]=e;e=e+1|0;c=c+8|0}else c=0;g=h;f=n-g>>1;d=d+2|0;k=j-d|0;k=(f|0)<(k|0)?f:k;if((k|0)>0)continue;break f}if(c){J[c>>2]=e;e=e+1|0;c=c+4|0}else c=0;H[i+63|0]=1;H[i+76|0]=45;J[b>>2]=15;d=g;break f}H[d|0]=43;d=d+1|0;m=0;if(c)break e;c=0;break d}J[c>>2]=e;e=e+1|0;c=c+4|0}d=d+1|0;f=(k|0)>1;g=h;k=k-1|0;if(f)continue;break}}p=16777216;k=0;if(d>>>0>>0|h>>>0>=n>>> -0)break a;break b}J[c>>2]=e;c=c+4|0}h=1;continue}if(g>>>0>=n>>>0)break c;k=1;j:{k:{while(1){if(d>>>0>=j>>>0)break j;f=L[g>>1];if(!(f>>>0>127|!K[f+o|0])){l:{if(!(m&255))break l;H[d|0]=K[(l&255)+742160|0];d=d+1|0;if(!c){c=0;break l}J[c>>2]=e-1;c=c+4|0}if(K[f+741776|0]==255)break k;if(d>>>0>>0){H[d|0]=45;d=d+1|0;if(!c){c=0;break k}J[c>>2]=e-1;c=c+4|0;break k}H[i+63|0]=1;H[i+76|0]=45;p=16777216;k=0;break j}m:{n:switch(m<<24>>24){case 0:H[d|0]=K[(f>>>10|0)+742160|0];h=d+1|0;o:{if(h>>>0>>0){H[d+1| -0]=K[(f>>>4&63)+742160|0];d=d+2|0;if(!c){c=0;break o}J[c+4>>2]=e;J[c>>2]=e;c=c+8|0;e=e+1|0;break o}if(c){J[c>>2]=e;e=e+1|0;c=c+4|0}else c=0;H[i+63|0]=1;H[i+76|0]=K[(f>>>4&63)+742160|0];J[b>>2]=15;d=h}l=f<<2&60;m=1;break m;case 1:H[d|0]=K[(l&255|f>>>14)+742160|0];h=d+1|0;p:{if(h>>>0>>0){H[d+1|0]=K[(f>>>8&63)+742160|0];h=d+2|0;if(h>>>0>>0){H[d+2|0]=K[(f>>>2&63)+742160|0];d=d+3|0;if(!c){c=0;break p}J[c+8>>2]=e;J[c+4>>2]=e;J[c>>2]=e;c=c+12|0;e=e+1|0;break p}if(c){J[c+4>>2]=e;J[c>>2]=e;e=e+1|0;c= -c+8|0}else c=0;H[i+63|0]=1;H[i+76|0]=K[(f>>>2&63)+742160|0];J[b>>2]=15;d=h;break p}if(c){J[c>>2]=e;e=e+1|0;c=c+4|0}else c=0;H[i+63|0]=2;H[i+77|0]=K[(f>>>2&63)+742160|0];H[i+76|0]=K[(f>>>8&63)+742160|0];J[b>>2]=15;d=h}l=f<<4&48;m=2;break m;case 2:break n;default:break m}H[d|0]=K[(l&255|f>>>12)+742160|0];h=d+1|0;q:{if(h>>>0>>0){H[d+1|0]=K[(f>>>6&63)+742160|0];h=d+2|0;if(h>>>0>>0){H[d+2|0]=K[(f&63)+742160|0];d=d+3|0;l=0;if(!c){c=0;break q}J[c+8>>2]=e;J[c+4>>2]=e;J[c>>2]=e;c=c+12|0;e=e+1|0;break q}l= -0;if(c){J[c+4>>2]=e;J[c>>2]=e;e=e+1|0;c=c+8|0}else c=0;H[i+63|0]=1;H[i+76|0]=K[(f&63)+742160|0];J[b>>2]=15;d=h;break q}l=0;if(c){J[c>>2]=e;e=e+1|0;c=c+4|0}else c=0;H[i+63|0]=2;H[i+77|0]=K[(f&63)+742160|0];H[i+76|0]=K[(f>>>6&63)+742160|0];J[b>>2]=15;d=h}m=0}g=g+2|0;if(n>>>0>g>>>0)continue;break}break c}h=0;continue}break}h=g;break b}k=1;h=g;break a}J[b>>2]=15}r:{if(!(!K[a+2|0]|h>>>0>>0)){s:{if(!k){g=d;break s}t:{u:{v:{w:{if(m&255){g=K[(l&255)+742160|0];if(d>>>0>>0){H[d|0]=g;g=d+1|0;if(!c)break v; -J[c>>2]=e-1;c=c+4|0;break w}f=H[i+63|0];H[i+63|0]=f+1;H[(f+i|0)+76|0]=g;J[b>>2]=15}g=d}if(g>>>0>=j>>>0)break t;H[g|0]=45;g=g+1|0;if(c)break u;c=0;break s}c=0;if(g>>>0>=j>>>0)break t;H[d+1|0]=45;g=d+2|0;break s}J[c>>2]=e-1;c=c+4|0;break s}d=H[i+63|0];H[i+63|0]=d+1;H[(d+i|0)+76|0]=45;J[b>>2]=15}b=J[i+52>>2]&-268435456|16777216;break r}g=d;b=J[i+52>>2]&-268435456|(l&255|p|m<<24>>24<<16)}J[i+52>>2]=b;J[a+24>>2]=c;J[a+16>>2]=g;J[a+8>>2]=h}function Ywb(a){a=a|0;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;c=J[a+44>>2];f=J[a+40>>2];b=J[a+52>>2];gc[J[J[b>>2]+20>>2]](b,2)|0;gc[J[J[b>>2]+20>>2]](b,2)|0;m=f,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+8>>2]=n;m=f,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+12>>2]=n;m=f,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m>>2]=n;m=f,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+4>>2]=n;m=c,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+36>>2]=n;m=c,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+40>>2]=n;m=c,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+28>>2]=n;m=c,n=gc[J[J[b>>2]+20>>2]](b,4)|0,J[m+32>>2]=n;j=gc[J[J[b>>2]+20>>2]](b, -2)|0;J[f+16>>2]=j;d=bd(1,P(j,48));J[f+24>>2]=d;a:{if(d){d=0;if((j|0)>0)while(1){e=gc[J[J[b>>2]+20>>2]](b,1)|0;i=P(d,48);h=i+J[f+24>>2]|0;J[h+32>>2]=e>>7;J[h+24>>2]=(e&127)+1;e=gc[J[J[b>>2]+20>>2]](b,1)|0;J[i+J[f+24>>2]>>2]=e;h=gc[J[J[b>>2]+20>>2]](b,1)|0;e=i+J[f+24>>2]|0;J[e+36>>2]=0;J[e+40>>2]=0;J[e+4>>2]=h;d=d+1|0;j=J[f+16>>2];if((d|0)<(j|0))continue;break}b=J[c+36>>2];i=(b+(J[f+8>>2]+(J[c+28>>2]^-1)|0)|0)/(b|0)|0;J[c+48>>2]=i;b=J[c+40>>2];h=(b+(J[f+12>>2]+(J[c+32>>2]^-1)|0)|0)/(b|0)|0;J[c+52>> -2]=h;e=P(i,h);d=bd(1,P(e,1876));J[c+88>>2]=d;if(!d){c=J[f+24>>2];if(c){qc(c);J[f+24>>2]=0}break a}b=bd(1,e<<2);J[c+56>>2]=b;if(!b){b=J[f+24>>2];if(b){qc(b);J[f+24>>2]=0;d=J[c+88>>2];if(!d)break a}qc(d);J[c+88>>2]=0;break a}J[c+60>>2]=0;b:{if((e|0)<=0)break b;b=0;if(e>>>0>=4){l=e&-4;while(1){g=P(b,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;g=P(b|1,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;g=P(b|2,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;g=P(b|3,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]= -0;J[g>>2]=1;b=b+4|0;k=k+4|0;if((l|0)!=(k|0))continue;break}}l=e&3;if(!l)break b;k=0;while(1){g=P(b,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;b=b+1|0;k=k+1|0;if((l|0)!=(k|0))continue;break}}j=P(j,1076);b=bd(1,j);J[c+80>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;J[J[a+36>>2]+1872>>2]=b;c:{d:{if(b){b=0;if((e|0)<=0)break c;break d}b=J[f+24>>2];if(b){qc(b);J[f+24>>2]=0}b=J[c+88>>2];if(b){qc(b);J[c+88>>2]=0}b=J[c+56>>2];if(b){qc(b);J[c+56>>2]=0}break a}while(1){e:{k=bd(1,j);J[(P(b, -1876)+d|0)+1872>>2]=k;if(k?0:b)break e;b=b+1|0;if((e|0)!=(b|0))continue;break c}break}b=J[d+1872>>2];if(b){qc(b);J[d+1872>>2]=0}b=J[f+24>>2];if(b){qc(b);J[f+24>>2]=0}b=J[c+88>>2];if(b){qc(b);J[c+88>>2]=0}b=J[c+56>>2];if(b){qc(b);J[c+56>>2]=0}c=J[a+36>>2];b=J[c+1872>>2];if(b){qc(b);J[c+1872>>2]=0}break a}b=e<<2;d=bd(1,b);J[a+28>>2]=d;if(!d){b=0;if((e|0)>0)while(1){d=J[c+88>>2]+P(b,1876)|0;e=J[d+1872>>2];if(e){qc(e);J[d+1872>>2]=0;h=J[c+52>>2];i=J[c+48>>2]}b=b+1|0;if((b|0)<(P(i,h)|0))continue;break}b= -J[f+24>>2];if(b){qc(b);J[f+24>>2]=0}b=J[c+88>>2];if(b){qc(b);J[c+88>>2]=0}b=J[c+56>>2];if(b){qc(b);J[c+56>>2]=0}b=J[a+36>>2];c=J[b+1872>>2];f:{if(c){qc(c);J[b+1872>>2]=0;b=J[a+36>>2];if(!b)break f}qc(b);J[a+36>>2]=0}break a}b=bd(1,b);J[a+32>>2]=b;if(!b){b=0;if((e|0)>0)while(1){d=J[c+88>>2]+P(b,1876)|0;e=J[d+1872>>2];if(e){qc(e);J[d+1872>>2]=0;h=J[c+52>>2];i=J[c+48>>2]}b=b+1|0;if((b|0)<(P(i,h)|0))continue;break}b=J[f+24>>2];if(b){qc(b);J[f+24>>2]=0}b=J[c+88>>2];if(b){qc(b);J[c+88>>2]=0}b=J[c+56>>2]; -if(b){qc(b);J[c+56>>2]=0}b=J[a+36>>2];c=J[b+1872>>2];g:{if(c){qc(c);J[b+1872>>2]=0;b=J[a+36>>2];if(!b)break g}qc(b);J[a+36>>2]=0}c=J[a+28>>2];if(c){qc(c);J[a+28>>2]=0}break a}J[a+4>>2]=4;return}J[J[a>>2]+20>>2]=1;return}J[J[a>>2]+20>>2]=1}function Hba(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=J[a+12>>2];i=J[e+584>>2];a:{b:{c:{d:{e:{f:{g:{while(1){a=J[i+3204>>2];if(a>>>0>=19)break d;b=0;h:{i:{j:{k:{l:{m:switch(a|0){case 1:a=J[e+584>>2];b=J[a+252>>2];if(b)break l;b=0;break j;case 2:a= -J[e+584>>2];c=J[a+256>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 3:a=J[e+584>>2];c=J[a+260>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 4:a=J[e+584>>2];c=J[a+264>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 5:a=J[e+584>>2];c=J[a+268>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 6:a=J[e+584>>2];c=J[a+272>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 7:a=J[e+584>>2];c=J[a+276>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 8:a=J[e+ -584>>2];c=J[a+280>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 9:a=J[e+584>>2];c=J[a+284>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 10:a=J[e+584>>2];c=J[a+288>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 11:a=J[e+584>>2];c=J[a+292>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 12:a=J[e+584>>2];c=J[a+296>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 13:a=J[e+584>>2];c=L[a+300>>1];b=0;if(!c)break j;J[a+3208>>2]=67165695;H[a+3213|0]=c;H[a+3212| -0]=c>>>8;f=a+3208|0;d=6;b=6;break j;case 14:b=J[e+584>>2];d=K[b+194|0];if(d>>>0>=83)break c;H[b+3208|0]=255;H[b+3212|0]=8;a=0;H[b+3210|0]=0;H[b+3209|0]=K[b+304|0];H[b+3217|0]=d;f=J[b+308>>2];H[b+3216|0]=f;H[b+3211|0]=P(d,3)+8;H[b+3215|0]=f>>>8;f=b+3213|0;e=L[b+312>>1];e=e<<8|e>>>8;H[f|0]=e;H[f+1|0]=e>>>8;if(d){c=K[b+193|0];while(1){f=b+P(a,3)|0;e=b+(a+c|0)|0;H[f+3218|0]=K[e+316|0];H[f+3219|0]=K[e+319|0];H[f+3220|0]=K[e+322|0];a=a+1|0;if((d|0)!=(a|0))continue;break}d=P(d,3)+10|0}else d=10;f=b+3208| -0;J[b+3204>>2]=J[b+3204>>2]+1;break e;case 15:d=J[e+584>>2];f=K[d+194|0];if(f>>>0>=125)break b;I[d+3208>>1]=56063;H[d+3212|0]=f;H[d+3210|0]=0;H[d+3211|0]=(f<<1)+6;a=0;if(f){b=K[d+193|0];if((f|0)!=1){l=f&254;e=d+3208|0;c=d+325|0;j=d+328|0;while(1){g=e+(a<<1)|0;h=a+b|0;H[g+5|0]=K[h+c|0];H[g+6|0]=K[h+j|0];g=a|1;h=e+(g<<1)|0;g=b+g|0;H[h+5|0]=K[g+c|0];H[h+6|0]=K[g+j|0];a=a+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(f&1){e=d+(a<<1)|0;a=d+(a+b|0)|0;H[e+3213|0]=K[a+325|0];H[e+3214|0]=K[a+328|0]}a=f<< -1}f=d+3208|0;b=a+d|0;H[b+3215|0]=0;b=b+3213|0;H[b|0]=0;H[b+1|0]=63;J[d+3204>>2]=J[d+3204>>2]+1;d=a+8|0;break e;case 16:a=J[e+584>>2];d=L[a+1148>>1];if(!d){if(!Jj(a))break h;d=L[a+1148>>1];if(!d)break a}I[a+1148>>1]=0;f=J[a+1152>>2];if(J[a+1144>>2])break e;n:switch(J[a+1124>>2]-2|0){case 0:if(M[a+1128>>2]>2]){J[a+3204>>2]=17;break e}J[a+3204>>2]=18;break e;case 1:break n;default:break e}J[a+3204>>2]=18;break e;case 17:a=J[e+584>>2];H[a+3208|0]=255;J[a+3204>>2]=16;d=K[a+302|0];H[a+3209|0]= -d-48;d=d+1|0;H[a+302|0]=(d&255)!=8?d:0;f=a+3208|0;break f;case 18:break m;case 0:break g;default:break i}a=J[e+584>>2];I[a+3208>>1]=55807;f=a+3208|0;break f}f=b+4|0;d=J[b>>2]-4|0}b=d}J[a+3204>>2]=J[a+3204>>2]+1}if(!b)continue;break e}break}Nc(J[e+628>>2],90031,90068,0);ef(J[e+584>>2]+4|0,1);B()}a=J[e+584>>2];I[a+3208>>1]=55551;J[a+3204>>2]=J[a+3204>>2]+1;f=a+3208|0}d=2}J[i+1024>>2]=f;J[i+1028>>2]=d;return 1}fa(90095,70456,2057,97205);B()}fa(90159,70456,2196,97222);B()}fa(90230,70456,2232,97242);B()}fa(80381, -70456,2266,97262);B()}function c3a(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;a:{b:{if(!J[a+188>>2])break b;if(!J[b>>2]){f=rc(12);c:{if(H[a+303|0]>=0){c=J[a+296>>2];J[f>>2]=J[a+292>>2];J[f+4>>2]=c;J[f+8>>2]=J[a+300>>2];break c}c=J[a+296>>2];d=J[a+292>>2];J[695492]=0;ca(15,f|0,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[b>>2]=f}if(!J[b+12>>2]){f=rc(12);c=J[J[a+188>>2]+24>>2];d:{if(c){d=0;e:{j=K[c|0];if(!j)break e;e=c;while(1){i=d;d=d+1|0;k=K[e+1|0];e=e+1|0;if(k)continue;break}if((j| -0)!=60|i>>>0<6|(K[c+1|0]!=117|K[c+2|0]!=116))break e;if(K[c+3|0]!=102|K[c+4|0]!=56|K[c+5|0]!=62)break e;J[695492]=0;ca(1618,f|0,c+6|0,i-5|0);c=J[695492];J[695492]=0;if((c|0)!=1)break d;break a}J[695492]=0;ia(2682,f|0,c|0,d|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break a;break d}J[f>>2]=0;H[f+11|0]=0}J[b+12>>2]=f}if(!J[b+24>>2]){f=rc(4);c=J[J[a>>2]+48>>2];J[695492]=0;c=$(c|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[f>>2]=c;J[b+24>>2]=f}if(!J[b+20>>2]){f=rc(4);c=J[J[a>>2]+52>>2];J[695492]= -0;c=$(c|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[f>>2]=c;J[b+20>>2]=f}if(!J[b+28>>2]){f=rc(4);c=J[J[a>>2]+24>>2];J[695492]=0;c=$(c|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[f>>2]=c;J[b+28>>2]=f}d=qn(J[a+188>>2],2);if(!d)break b;if(!J[b+32>>2]){e=rc(10);J[b+32>>2]=e;c=K[d+40|0]|K[d+41|0]<<8;H[e+8|0]=c;H[e+9|0]=c>>>8;c=K[d+36|0]|K[d+37|0]<<8|(K[d+38|0]<<16|K[d+39|0]<<24);i=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+3|0]= -i>>>24;H[e+4|0]=c;H[e+5|0]=c>>>8;H[e+6|0]=c>>>16;H[e+7|0]=c>>>24}if(!J[b+36>>2]){c=rc(4);J[c>>2]=J[d+44>>2];J[b+36>>2]=c}if(!J[b+40>>2]){c=rc(4);J[c>>2]=J[d+48>>2];J[b+40>>2]=c}if(!J[b+44>>2]){c=rc(4);J[c>>2]=J[d+52>>2];J[b+44>>2]=c}if(!J[b+48>>2]){c=rc(4);J[c>>2]=J[d+56>>2];J[b+48>>2]=c}if(!J[b+52>>2]){c=rc(4);J[c>>2]=J[d+80>>2];J[b+52>>2]=c}if(!J[b+56>>2]){c=rc(4);J[c>>2]=J[d+84>>2];J[b+56>>2]=c}if(!J[b+60>>2]){c=rc(2);I[c>>1]=L[d+4>>1];J[b+60>>2]=c}if(!J[b+64>>2]){c=rc(2);I[c>>1]=L[d+6>>1];J[b+ -64>>2]=c}c=J[a+188>>2];a=L[c+68>>1];f:{if(a){h=1E3/+(a>>>0);if(!J[b+76>>2]){e=rc(2);g=h*+I[d+2>>1];g:{if(R(g)<2147483648){a=~~g;break g}a=-2147483648}I[e>>1]=a;J[b+76>>2]=e}if(!J[b+80>>2]){e=rc(2);g=h*+I[d+70>>1];h:{if(R(g)<2147483648){a=~~g;break h}a=-2147483648}I[e>>1]=a;J[b+80>>2]=e}if(!J[b+84>>2]){e=rc(2);g=h*+I[d+72>>1];i:{if(R(g)<2147483648){a=~~g;break i}a=-2147483648}I[e>>1]=a;J[b+84>>2]=e}if(!J[b+88>>2]){e=rc(2);g=h*+I[d+74>>1];j:{if(R(g)<2147483648){a=~~g;break j}a=-2147483648}I[e>>1]=a; -J[b+88>>2]=e}if(!J[b+92>>2]){e=rc(2);g=h*+I[d+88>>1];k:{if(R(g)<2147483648){a=~~g;break k}a=-2147483648}I[e>>1]=a;J[b+92>>2]=e}if(J[b+96>>2])break f;e=rc(2);h=h*+I[d+90>>1];l:{if(R(h)<2147483648){a=~~h;break l}a=-2147483648}I[e>>1]=a;J[b+96>>2]=e;break f}if(!J[b+76>>2]){a=rc(2);I[a>>1]=L[d+2>>1];J[b+76>>2]=a}if(!J[b+80>>2]){a=rc(2);I[a>>1]=L[d+70>>1];J[b+80>>2]=a}if(!J[b+84>>2]){a=rc(2);I[a>>1]=L[d+72>>1];J[b+84>>2]=a}if(!J[b+88>>2]){a=rc(2);I[a>>1]=L[d+74>>1];J[b+88>>2]=a}if(!J[b+92>>2]){a=rc(2); -I[a>>1]=L[d+88>>1];J[b+92>>2]=a}if(J[b+96>>2])break f;a=rc(2);I[a>>1]=L[d+90>>1];J[b+96>>2]=a}if(!J[b+68>>2]){f=rc(4);J[695492]=0;a=$(2759,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[f>>2]=a;J[b+68>>2]=f}if(J[b+100>>2])break b;a=rc(2);I[a>>1]=L[d+8>>1];J[b+100>>2]=a}return}a=Z()|0;qc(f);ba(a|0);B()}function HEa(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;c=bc+-64|0;bc=c;a:{if(!J[a+16>>2])break a;e=c+48|0;f=a+4|0;VV(e,f);d=J[a+16>>2];g=J[J[d>>2]+32>>2];J[695492]=0;d=aa(g| -0,d|0,e|0)|0;g=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{if((g|0)==1)break g;h:{if(d)break h;J[c+32>>2]=0;d=J[a+16>>2];J[695492]=0;ga(4949,d|0,e|0,c+32|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;e=J[c+32>>2];if(!e)break h;i:{if(!K[e+8|0])break i;d=J[e>>2];if(!d)break i;qc(d)}qc(e)}e=J[a+16>>2];d=J[J[e>>2]+32>>2];J[695492]=0;e=aa(d|0,e|0,c+48|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{if(!e){J[695492]=0;da(4879,c+20|0,a+20|0);e=J[695492];J[695492]= -0;if((e|0)==1)break w;J[695492]=0;da(4879,c+8|0,f|0);e=J[695492];J[695492]=0;if((e|0)==1)break v;f=K[c+19|0];e=f<<24>>24;d=K[c+31|0];g=d<<24>>24;h=(g|0)<0?J[c+24>>2]:d;i=(e|0)<0?J[c+12>>2]:f;f=h+i|0;if(f>>>0>=1073741808){J[695492]=0;_(2793,c+32|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;break b}x:{if(f>>>0<=1){J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;H[c+43|0]=f;d=c+32|0;break x}d=f|3;if(d>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break e}J[695492]=0;j=d+1| -0;d=$(4,j<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break e;J[c+36>>2]=f;J[c+32>>2]=d;J[c+40>>2]=j|-2147483648}f=h<<2;d=Zc(d,(g|0)<0?J[c+20>>2]:c+20|0,f)+f|0;f=i<<2;l=Zc(d,(e|0)<0?J[c+8>>2]:c+8|0,f)+f|0,m=0,J[l>>2]=m;if(H[c+59|0]<0){qc(J[c+48>>2]);e=K[c+19|0]}J[c+56>>2]=J[c+40>>2];f=J[c+36>>2];J[c+48>>2]=J[c+32>>2];J[c+52>>2]=f;J[c+32>>2]=0;H[c+43|0]=0;if(e<<24>>24<0)qc(J[c+8>>2]);if(H[c+31|0]<0)qc(J[c+20>>2]);f=J[a+16>>2];d=J[J[f>>2]+32>>2];e=0;J[695492]=0;f=aa(d|0,f|0,c+48|0)|0;d=J[695492];J[695492]= -0;if((d|0)==1)break g;if(!f)break j}J[c+8>>2]=0;a=J[a+16>>2];J[695492]=0;ga(4949,a|0,c+48|0,c+8|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break u;a=J[J[c+8>>2]+4>>2];J[695492]=0;a=fC(a,0);e=J[695492];J[695492]=0;if((e|0)==1)break t;J[695492]=0;J[c+4>>2]=a;e=$(27,a- -64|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break s;a=J[c+8>>2];f=J[a+4>>2];a=J[a>>2];J[695492]=0;f=eC(a,f,e,c+4|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break s;if((f|0)!=1)break n;a=J[J[b>>2]+136>>2];J[695492]=0;aa(a|0,b|0,2370840)|0; -a=J[695492];J[695492]=0;if((a|0)==1)break s;J[695492]=0;a=c+20|0;ca(1618,a|0,e|0,J[c+4>>2]);d=J[695492];J[695492]=0;if((d|0)==1)break r;J[695492]=0;a=ga(2277,a|0,0,2370844)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;J[c+40>>2]=J[a+8>>2];d=J[a+4>>2];J[c+32>>2]=J[a>>2];J[c+36>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;a=J[J[b>>2]+176>>2];J[695492]=0;aa(a|0,b|0,c+32|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break p;if(H[c+43|0]<0)qc(J[c+32>>2]);if(H[c+31|0]<0)qc(J[c+20>>2]);qc(e);a=J[c+8>>2];if(!a)break k; -if(K[a+8|0])break m;break l}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break o}a=Z()|0;if(H[c+43|0]>=0)break o;qc(J[c+32>>2])}if(H[c+31|0]>=0)break c;qc(J[c+20>>2]);break c}qc(e);a=J[c+8>>2];if(!a)break k;if(!K[a+8|0])break l}b=J[a>>2];if(!b)break l;qc(b)}qc(a)}e=(f|0)==1}if(H[c+59|0]>=0)break a;qc(J[c+48>>2]);break a}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;if(H[c+19|0]>=0)break d;qc(J[c+8>>2])}if(H[c+31|0]>=0)break c;qc(J[c+20>>2])}if(H[c+ -59|0]<0)qc(J[c+48>>2]);ba(a|0);B()}B()}bc=c- -64|0;return e|0}function uzb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=-1;a:{b:{d=J[b+8>>2];c:{if(d&7)break c;e=J[a+12>>2];c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break b;d=e>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;d:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break d}if((Uc(b,d)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break b;d=e>>>16|0;J[b+4>>2]=J[b+ -4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;e:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break e}if((Uc(b,d&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break b;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;f:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break f}if((Uc(b,d&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break b; -J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break g}if((Uc(b,e&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;e=J[a+16>>2];c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break a;d=e>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;h:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break h}if((Uc(b,d)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0& -(c|0)<=J[b+60>>2])break a;d=e>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;i:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break i}if((Uc(b,d&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break a;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;j:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break j}if((Uc(b,d&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c; -c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break a;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;k:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break k}if((Uc(b,e&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;a=J[a+20>>2];e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break a;e=a>>>24|0;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;l:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break l}if((Uc(b,e)|0)==-1)break c}c=-1;d=J[b+ -8>>2];if(d&7)break c;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break a;e=a>>>16|0;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;m:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break m}if((Uc(b,e&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break a;e=a>>>8|0;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;n:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break n}if((Uc(b,e&255)|0)==-1)break c}c= --1;d=J[b+8>>2];if(d&7)break c;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break a;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;o:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=a;break o}if((Uc(b,a&255)|0)==-1)break c}c=0}return c|0}J[b+8>>2]=d|4;return-1}J[b+8>>2]=d|4;return-1}function usa(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=bc-32|0;bc=d;H[d+15|0]=c;a:{b:{c:{d:{e:{f:{g:{h:{if(b){e=J[a>>2];if(!(!e|(b|0)>=0))b=J[e+8>>2]+b|0;if(!(!e|(b|0)<0)&J[e+ -8>>2]>=(b|0))break h;lG();B()}e=J[a>>2];if(!e)break g;b=0}g=bc-16|0;bc=g;h=d+8|0;J[h>>2]=0;i:{j:{k:{l:{m:{f=J[e+8>>2];b=(f&b>>31)+b|0;if(!((b|0)>=0&(b|0)<=(f|0))){J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)break k;break m}n:{o:{p:{q:{r:{if(K[b+J[e+12>>2]|0]==(c&255)){J[695492]=0;aa(4985,h|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;break r}if(!c){J[695492]=0;c=g+12|0;ca(5483,c|0,e|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break o;J[695492]=0;aa(4993,h|0,c|0)|0;b=J[695492]; -J[695492]=0;if((b|0)!=1){b=J[g+12>>2];J[g+12>>2]=0;if(!b)break r;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break r;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break r}break j}a=Z()|0;vc(g+12|0);break l}J[695492]=0;i=g+8|0;ca(5483,i|0,e|0,((b|0)>(f|0)?b:f)|0);f=J[695492];J[695492]=0;if((f|0)==1)break q;J[695492]=0;aa(4993,h|0,i|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break p;f=J[g+8>>2];J[g+8>>2]=0;s:{if(!f)break s;J[695492]=0;i=J[f+4>>2]-1| -0;J[f+4>>2]=i;j=J[695492];J[695492]=0;if((j|0)==1)break n;if(i)break s;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break n}H[b+J[J[h>>2]+12>>2]|0]=c;if((b|0)!=J[e+8>>2])break r;H[(b+J[J[h>>2]+12>>2]|0)+1|0]=0}bc=g+16|0;break i}a=Z()|0;break l}a=Z()|0;vc(g+8|0);break l}a=Z()|0;break l}break j}a=Z()|0}vc(h);ba(a|0)}B()}ea(0)|0;yc();B()}b=J[d+8>>2];if(!b)break f;c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+16|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break e;b=Z()|0;break a}J[695492]=0; -J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2414676;la(5463,d+8|0,d+16|0,d+15|0,0,1);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[d+16>>2]=2414580;b=J[d+28>>2];if(b){H[b|0]=0;qc(J[d+28>>2])}J[d+28>>2]=0;c=d+16|0;ed(c);b=J[d+8>>2];t:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break t;b=Z()|0;break a}J[d+16>>2]=0}J[695492]=0;aa(4993,a|0,d+16|0)|0;b=J[695492];J[695492]=0;u:{if((b|0)!=1){b=J[d+16>>2];J[d+16>>2]=0;if(!b)break u;J[695492]=0;c=J[b+4>> -2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break u;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break u}break b}b=Z()|0;vc(d+16|0);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];a=J[d+8>>2];J[d+8>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break b}J[d+16>>2]=0}J[695492]=0;aa(4993,a|0,d+16|0)|0;b=J[695492];J[695492]=0;v:{if((b| -0)!=1){b=J[d+16>>2];J[d+16>>2]=0;if(!b)break v;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break v;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break v}break b}b=Z()|0;vc(d+16|0);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];a=J[d+8>>2];J[d+8>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}bc=d+32|0; -return}a=Z()|0;bh(d+16|0);ba(a|0);B()}ea(0)|0;yc();B()}vc(d+8|0);ba(b|0);B()}function FV(a){a=a|0;var b=0,c=0,d=0;d=bc-32|0;bc=d;J[a>>2]=2384320;a:{b=J[a+16>>2];b:{c:{d:{if((b|0)>0){if((b|0)>=J[a+20>>2]){J[695492]=0;a=ja(5018,d+8|0,2379059,2373971,963,2384399,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;ea(0)|0;Fc(a);break c}b=b+J[a+36>>2]|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0; -H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;H[b+29|0]=0;H[b+30|0]=0;H[b+31|0]=0;H[b+16|0]=0;H[b+17|0]=0;H[b+18|0]=0;H[b+19|0]=0;H[b+20|0]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;J[a+24>>2]=J[a+16>>2]+1;J[695492]=0;$(5049,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d}J[a+24>>2]=0;J[a+16>>2]=0;b=J[a+48>>2];c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c| -0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)== -1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d; -c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c= -J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+ -20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+20>>2];J[695492]=0;da(5050,b|0,(c>>>1|0)+32768|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0}yc()}B()}a=TG(a);bc=d+32|0;return a|0}function LOa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=bc-1040|0;bc=f;J[f+1024>>2]=13;J[a+4>>2]= -b;J[a+792>>2]=1;J[a>>2]=d;wc(a+20|0,0,256);l=-1<<((b|0)<(e|0)?b:e);m=l^-1;gc[J[J[d>>2]+36>>2]](d,f+768|0,f+512|0,m);a:{b:{c:{d:{e:{f:switch(J[c>>2]-5|0){case 0:b=J[a>>2];e=gc[J[J[b>>2]+28>>2]](b)|0;J[a+8>>2]=e;if((e|0)<=0)break d;c=0;if((e|0)!=1){j=e&-2;d=a+280|0;h=a+536|0;while(1){b=c<<3;O[b+d>>3]=O[b+(f+768|0)>>3];O[b+h>>3]=O[b+(f+512|0)>>3];b=b|8;O[b+d>>3]=O[b+(f+768|0)>>3];O[b+h>>3]=O[b+(f+512|0)>>3];c=c+2|0;o=o+2|0;if((j|0)!=(o|0))continue;break}}if(!(e&1))break e;b=c<<3;c=b+a|0;O[c+280>>3]= -O[b+(f+768|0)>>3];O[c+536>>3]=O[b+(f+512|0)>>3];break e;case 1:break f;default:break b}b=J[J[c+8>>2]+12>>2]/2|0;J[a+8>>2]=b;d=J[a>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)>(b|0))break b;b=J[a>>2];g:{if(J[a+8>>2]<=(gc[J[J[b>>2]+28>>2]](b)|0)){b=J[a+8>>2];break g}xc(0,-1,824088,0);b=J[a>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[a+8>>2]=b}if((b|0)<=0)break d;b=0;while(1){h=b<<1;d=f+1024|0;Mc(J[c+8>>2],h,d,0);j=J[f+1024>>2];if(j-3>>>0<4294967294)break c;e=(b<<3)+a|0;O[e+280>>3]=(j|0)==1?+J[f+1032>>2]:O[f+1032>>3];uc(d); -Mc(J[c+8>>2],h|1,d,0);h=J[f+1024>>2];if(h-3>>>0<4294967294)break c;O[e+536>>3]=((h|0)==1?+J[f+1032>>2]:O[f+1032>>3])-O[e+280>>3];uc(d);b=b+1|0;e=J[a+8>>2];if((b|0)<(e|0))continue;break}}if((e|0)<=0)break d;e=0;c=0-l|0;p=+(m|0);while(1){h=vd(c,4);J[((e<<2)+a|0)+20>>2]=h;b=e<<3;j=b+(f+512|0)|0;n=O[b+(f+768|0)>>3];b=a+b|0;q=O[b+536>>3];r=O[b+280>>3];b=0;while(1){g=n;k=r+q*+(b|0)/p;h:{if(g>k)break h;i=g+O[j>>3];g=k;if(!(i> -2]=d;b=b+1|0;if((c|0)!=(b|0))continue;break}e=e+1|0;if((e|0)>2])continue;break}}J[a+12>>2]=0;J[a+16>>2]=0;b=J[a>>2];c=gc[J[J[b>>2]+12>>2]](b)|0;b=J[a>>2];if((c|0)==7){c=J[b+12>>2];J[a+12>>2]=c;h=J[b+16>>2];s=a,t=gc[J[J[c>>2]+28>>2]](c)|0,J[s+16>>2]=t;j=J[b+20>>2];b=J[a+12>>2];gc[J[J[b>>2]+36>>2]](b,f+256|0,f,h);b=0;l=0-l|0;c=J[a+16>>2];if((c|0)>0)while(1){s=(b<<2)+a|0,t=vd(l,4),J[s+148>>2]=t;b=b+1|0;c=J[a+16>>2];if((b|0)<(c|0))continue;break}g=+(m|0);i=O[a+536>>3];n=O[a+280>>3];e=0;while(1){k= -n+i*+(e|0)/g+.5;j:{if(R(k)<2147483648){d=~~k;break j}d=-2147483648}if((c|0)>0){b=0;d=(d|0)>=0?(d|0)>(h|0)?h:d:0;while(1){m=J[((b<<2)+a|0)+148>>2]+(e<<2)|0;k=+K[(j+P(c,d)|0)+b|0]/255;c=b<<3;k=(k*O[c+f>>3]+O[c+(f+256|0)>>3])*65536;k:{if(R(k)<2147483648){c=~~k;break k}c=-2147483648}J[m>>2]=c;b=b+1|0;c=J[a+16>>2];if((b|0)<(c|0))continue;break}}e=e+1|0;if((l|0)!=(e|0))continue;break}break a}if((gc[J[J[b>>2]+12>>2]](b)|0)!=8)break a;d=J[a>>2];b=J[d+16>>2];J[a+12>>2]=b;e=gc[J[J[b>>2]+28>>2]](b)|0;J[a+16>> -2]=e;b=0;c=0-l|0;d=J[d+20>>2];if((e|0)>0)while(1){s=(b<<2)+a|0,t=vd(c,4),J[s+148>>2]=t;b=b+1|0;if((b|0)>2])continue;break}n=+(m|0);e=0;while(1){g=O[a+280>>3]+O[a+536>>3]*+(e|0)/n;i=O[f+768>>3];l:{if(g>3];if(!(i>3]=g;gc[J[J[d>>2]+16>>2]](d,f+256|0,f);b=0;if(J[a+16>>2]>0)while(1){j=J[((b<<2)+a|0)+148>>2]+(e<<2)|0;g=O[(b<<3)+f>>3]*65536;m:{if(R(g)<2147483648){h=~~g;break m}h=-2147483648}J[j>>2]=h;b=b+1|0;if((b|0)>2])continue;break}e= -e+1|0;if((c|0)!=(e|0))continue;break}break a}uc(f+1024|0)}J[a+792>>2]=0}bc=f+1040|0;return a|0}function bH(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=bc-32|0;bc=f;a:{if(gc[J[J[a>>2]+32>>2]](a,b)|0){g=gc[J[J[a>>2]+20>>2]](a,b,c)|0;break a}gc[J[J[a>>2]+48>>2]](f+20|0,a,b,0);b:{c:{h=J[f+24>>2];d=J[f+20>>2];d:{if((h|0)==(d|0))break d;J[695492]=0;J[f+8>>2]=4818;ia(4819,d|0,h|0,f+8|0,62-(S((h-d|0)/12|0)<<1)|0);d=J[695492];J[695492]=0;e:{f:{if((d|0)!=1){h=J[f+20>>2];i=J[f+24>> +0)|0];d=d-4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}if(!f)break a;e=0;c=a+208|0;while(1){H[c+d|0]=K[c+(d-b|0)|0];d=d-1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}J[a+224>>2]=b}}function _Z(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;Bl(b,3656);f=vc(16);J[699344]=0;t=_(3352,f|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)a:{while(1){k=0;i=0;q=0;c=vc(16);J[699344]=0;p=_(3352,c|0)|0;d=J[699344];J[699344]=0;b:{c:{d:{if((d|0)!=1){e:{if(J[b+8>>2]>0)while(1){j=J[J[b>> +2]+(q<<2)>>2];if(K[j+88|0]==(s|0)){f:{g:{f=J[p+8>>2];if((f|0)<=0){e=f;break g}h=O[j+24>>3];r=J[p>>2];c=-1;e=f;while(1){d=((e-c|0)/2|0)+c|0;m=h>=O[J[r+(d<<2)>>2]+16>>3];c=m?d:c;e=m?e:d;if((c|0)<(e-1|0))continue;break}if((e|0)>=(f|0))break g;n=O[j+40>>3];m=J[p>>2];h=0;d=-1;h:{while(1){c=J[m+(e<<2)>>2];l=O[c+8>>3];if(l>=n)break h;o=O[c+16>>3];g=n>3];l=(g-(lh;h=c?l:h;d=c?e:d;e=e+1|0;if((f|0)!=(e|0))continue;break}e=f}if(!(h>.2)|(d|0)<0)break g;c=J[J[p>>2]+(d<<2)>>2]; +f=i;e=d;d=k;break f}c=vc(40);f=K[j+88|0];J[699344]=0;d=_(4,16)|0;m=J[699344];J[699344]=0;if((m|0)==1)break e;J[699344]=0;m=_(3352,d|0)|0;r=J[699344];J[699344]=0;if((r|0)==1){e=Z()|0;uc(d);break c}J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=m;J[c+24>>2]=f;J[c+28>>2]=0;J[c+32>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;i:{if(J[p+8>>2]>(e|0)){d=c;f=J[J[p>>2]+(e<<2)>>2];m=J[f+32>>2];if(m){J[m+28>>2]=c;J[c+32>>2]=m;d=k}J[f+32>>2]=c;J[c+28>>2]=f;f=i;break i}f=c;d=c;if(!i)break i;J[i+28>>2]=c;J[c+32>>2]=i;d=k}Pn(p,e,c)}sd(J[c>> +2],j);h=O[j+24>>3];O[c+16>>3]=O[j+40>>3];O[c+8>>3]=h;c=e;j:{if((c|0)<=0)break j;while(1){h=O[j+24>>3];k=c-1|0;i=J[J[p>>2]+(k<<2)>>2];if(h>=O[i+16>>3])break j;O[i+16>>3]=h;if(h>O[i+8>>3])break j;zj(p,k);i=c>>>0>1;c=k;if(i)continue;break}}c=e+1|0;k:{if((c|0)>=J[p+8>>2])break k;while(1){h=O[j+40>>3];e=J[J[p>>2]+(c<<2)>>2];if(h<=O[e+8>>3])break k;O[e+8>>3]=h;if(h>3])break k;zj(p,c);if((c|0)>2])continue;break}}i=f;k=d}q=q+1|0;if((q|0)>2])continue;break}c=vc(16);J[699344]=0;f=_(3352, +c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;if(k)while(1){e=J[k>>2];i=J[e+8>>2];l:{if((i|0)<=0){n=0;h=0;l=0;o=0;break l}c=1;j=J[e>>2];d=J[j>>2];o=O[d+40>>3];l=O[d+32>>3];h=O[d+24>>3];n=O[d+16>>3];if((i|0)==1)break l;while(1){d=J[j+(c<<2)>>2];g=O[d+40>>3];o=g>3];l=g>3];h=h>g?g:h;g=O[d+16>>3];n=g>2];J[r+4>>2]=i;d=J[r>>2];q=J[d+8>>2];m:{if((q|0)<=0)break m;j=J[d>>2];c=0;e=0;if(q>>>0>=4){u= +q&-4;d=0;while(1){m=e<<2;H[J[m+j>>2]+100|0]=i;H[J[j+(m|4)>>2]+100|0]=i;H[J[j+(m|8)>>2]+100|0]=i;H[J[j+(m|12)>>2]+100|0]=i;e=e+4|0;d=d+4|0;if((u|0)!=(d|0))continue;break}}d=q&3;if(!d)break m;while(1){H[J[j+(e<<2)>>2]+100|0]=i;e=e+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}sd(f,r);d=J[k+28>>2];c=J[k>>2];if(c)uc(ld(c));uc(k);k=d;if(d)continue;break}uc(ld(p));d=f;break b}e=Z()|0;break c}e=Z()|0;break c}e=Z()|0}uc(c);ba(e|0);B()}n:{if(!J[d+8>>2]){uc(ld(d));break n}c=vc(40);J[c+4>>2]=0;J[c+8>>2]=0;J[c>> +2]=d;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;e=J[d+8>>2];o:{if((e|0)<=0)break o;k=J[d>>2];d=J[k>>2];h=O[d+8>>3];O[c+8>>3]=h;n=O[d+24>>3];O[c+24>>3]=n;l=O[d+16>>3];O[c+16>>3]=l;o=O[d+32>>3];O[c+32>>3]=o;f=1;if((e|0)==1)break o;while(1){d=J[k+(f<<2)>>2];g=O[d+8>>3];if(g>3]=g;h=g}g=O[d+24>>3];if(g>3]=g;n=g}g=O[d+16>>3];if(g>l){O[c+16>>3]=g;l=g}g=O[d+32>>3];if(g>o){O[c+32>>3]=g;o=g}f=f+1|0;if((e|0)!=(f|0))continue;break}}f=vc(16); +J[699344]=0;e=_(3352,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;sd(e,c);d=vc(56);h=O[c+16>>3];n=O[c+32>>3];l=O[c+8>>3];O[d+24>>3]=O[c+24>>3];O[d+8>>3]=l;J[d>>2]=e;J[d+40>>2]=0;J[d+44>>2]=0;O[d+32>>3]=n;O[d+16>>3]=h;J[d+48>>2]=0;J[d+52>>2]=0;sd(t,d)}s=s+1|0;if((s|0)!=4)continue;break}return t}a=Z()|0;uc(f);ba(a|0);B()}function K2(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=fc-16|0;fc=e;c=-102;a:{if(!(J[a+96>>2]|J[a+100>>2])|(b|!a))break a;b=J[a+224>>2];if(b){c=J[b>>2];if(c)uc(c);J[b>>2]= +0;if(J[b+72>>2]==8)Jl(b+4|0);uc(b);J[a+224>>2]=0}f=J[a+76>>2]+J[a+220>>2]|0;d=J[a+216>>2];b=d+J[a+72>>2]|0;if(Aj(a,J[a+48>>2],b,b>>>0>>0?f+1|0:f,0)){c=-103;break a}d=uh(a,J[a+48>>2],e+8|0);f=J[e+8>>2];b:{c:{c=J[a+48>>2];d:{if((kc[J[a+4>>2]](J[a+28>>2],c,e+15|0,1)|0)==1){b=K[e+15|0];break d}if(kc[J[a+24>>2]](J[a+28>>2],c)|0)break c;b=0}e:{if((kc[J[a+4>>2]](J[a+28>>2],c,e+15|0,1)|0)==1){J[e+4>>2]=b|K[e+15|0]<<8;break e}g=P(b,257);b=kc[J[a+24>>2]](J[a+28>>2],c)|0;J[e+4>>2]=b?0:g;c=-1;if(b)break b}c= +d?-1:(f|0)!=67324752?-103:0;break b}J[e+4>>2]=0;c=-1}d=J[a+48>>2];f:{g:{if((kc[J[a+4>>2]](J[a+28>>2],d,e+15|0,1)|0)==1){h=K[e+15|0];break g}b=-1;if(kc[J[a+24>>2]](J[a+28>>2],d)|0)break f}if((kc[J[a+4>>2]](J[a+28>>2],d,e+15|0,1)|0)==1){b=c;break f}b=c;c=kc[J[a+24>>2]](J[a+28>>2],d)|0;b=c?-1:b;h=c?0:P(h,257)}h:{i:{d=J[a+48>>2];j:{if((kc[J[a+4>>2]](J[a+28>>2],d,e+15|0,1)|0)==1){c=K[e+15|0];break j}if(kc[J[a+24>>2]](J[a+28>>2],d)|0)break i;c=0}k:{if((kc[J[a+4>>2]](J[a+28>>2],d,e+15|0,1)|0)==1){c=c|K[e+ +15|0]<<8;J[e+4>>2]=c;break k}c=P(c,257);f=kc[J[a+24>>2]](J[a+28>>2],d)|0;J[e+4>>2]=f?0:c;d=-1;if(f)break h}d=b;if(b)break h;d=-103;if(J[a+140>>2]!=(c|0))break h;if(c>>>0<=12){d=0;if(1<>2]=0;d=-1}f=uh(a,J[a+48>>2],e+4|0);c=-1;b=-1;l:{if(uh(a,J[a+48>>2],e+4|0))break l;b=f?-1:d;if(b)break l;b=0;if(J[e+4>>2]==J[a+148>>2])break l;b=h&8?0:-103}m:{if(uh(a,J[a+48>>2],e+4|0))break m;if(b){c=b;break m}c=b;b=J[e+4>>2];if((b|0)==-1)break m;c=0;if(!J[a+156>>2]&J[a+152>>2]== +(b|0))break m;c=h&8?0:-103}b=-1;n:{if(uh(a,J[a+48>>2],e+4|0))break n;if(c){b=c;break n}b=c;c=J[e+4>>2];if((c|0)==-1)break n;b=0;if(!J[a+164>>2]&J[a+160>>2]==(c|0))break n;b=h&8?0:-103}f=J[a+48>>2];o:{p:{if((kc[J[a+4>>2]](J[a+28>>2],f,e+15|0,1)|0)==1){c=K[e+15|0];break p}c=0;d=0;h=0;if(kc[J[a+24>>2]](J[a+28>>2],f)|0)break o}q:{if((kc[J[a+4>>2]](J[a+28>>2],f,e+15|0,1)|0)==1){d=K[e+15|0]<<8|c;break q}d=0;h=0;if(kc[J[a+24>>2]](J[a+28>>2],f)|0)break o;d=P(c,257)}h=0;if(b)break o;h=J[a+168>>2]==(d|0)}r:{s:{c= +J[a+48>>2];t:{if((kc[J[a+4>>2]](J[a+28>>2],c,e+15|0,1)|0)==1){b=K[e+15|0];break t}if(kc[J[a+24>>2]](J[a+28>>2],c)|0)break s;b=0}u:{if((kc[J[a+4>>2]](J[a+28>>2],c,e+15|0,1)|0)==1){g=b|K[e+15|0]<<8;break u}if(kc[J[a+24>>2]](J[a+28>>2],c)|0)break s;g=P(b,257)}c=-103;if(!h)break a;h=J[a+216>>2];f=J[a+220>>2];c=-104;b=Dc(208);if(!b)break a;j=Dc(16384);J[b+200>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;k=g;J[b+88>>2]=g;i=d+h|0;g=i>>>0>>0?f+1|0:f;i=i+30|0;g=i>>>0<30?g+1|0:g;J[b+80>>2]=i;J[b+84>>2]=g;J[b>>2]=j; +if(!j){uc(b);break a}J[b+72>>2]=0;c=J[a+148>>2];J[b+112>>2]=0;J[b+116>>2]=c;J[b+104>>2]=0;J[b+108>>2]=0;c=J[a+140>>2];J[b+184>>2]=c;J[b+180>>2]=J[a+48>>2];g=J[a+4>>2];J[b+136>>2]=J[a>>2];J[b+140>>2]=g;g=J[a+12>>2];J[b+144>>2]=J[a+8>>2];J[b+148>>2]=g;g=J[a+20>>2];J[b+152>>2]=J[a+16>>2];J[b+156>>2]=g;g=J[a+28>>2];J[b+160>>2]=J[a+24>>2];J[b+164>>2]=g;g=J[a+36>>2];J[b+168>>2]=J[a+32>>2];J[b+172>>2]=g;J[b+176>>2]=J[a+40>>2];g=J[a+72>>2];j=J[a+76>>2];J[b+24>>2]=0;J[b+192>>2]=g;J[b+196>>2]=j;v:{if((c|0)== +12){J[b+200>>2]=1;break v}if((c|0)!=8)break v;J[b+4>>2]=0;J[b+8>>2]=0;J[b+44>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;c=rL(b+4|0,-15,28310);if(c)break r;J[b+72>>2]=8;h=J[a+216>>2];f=J[a+220>>2]}c=J[a+156>>2];J[b+120>>2]=J[a+152>>2];J[b+124>>2]=c;c=J[a+160>>2];g=J[a+164>>2];d=h+(d+k|0)|0;f=d>>>0>>0?f+1|0:f;d=d+30|0;f=d>>>0<30?f+1|0:f;J[b+64>>2]=d;J[b+68>>2]=f;J[b+128>>2]=c;J[b+132>>2]=g;c=0;J[b+8>>2]=0;J[a+228>>2]=0;J[a+224>>2]=b;break a}c=-103;break a}uc(b)}fc=e+16|0;return c}function Q6a(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;g=J[a+464>>2];if(J[a+280>>2]){c=J[g+52>>2];if(!c){if(!(kc[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){e=d<<2;f=J[(e+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[f+20>>2]<<2)+g|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]= +0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23| +0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=e+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Ac(J[((J[f+24>>2]<<2)+g|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2])continue;break}J[g+16>>2]=-16;J[g+8>>2]=0;J[g+12>>2]=0;c=J[a+280>>2]}J[g+52>>2]=c-1}c:{if(!(J[g+16>>2]==-1|J[a+364>>2]<=0)){p=J[a+428>>2];q=g+184|0;while(1){c=m<<2;n=J[c+b>>2];c=J[(a+c|0)+368>>2]<<2;l=J[(c+a|0)+340>>2];i=J[l+ +20>>2];o=(i<<2)+g|0;e=c+g|0;c=J[o+56>>2]+J[e+36>>2]|0;d:{if(!Ud(a,c)){J[e+36>>2]=0;f=J[e+20>>2];break d}j=1;h=0;f=0;k=Ud(a,c+1|0);d=(k+c|0)+2|0;e:{if(!Ud(a,d))break e;c=J[o+56>>2];d=c+20|0;if(!Ud(a,d)){f=1;break e}j=0;d=c+21|0;if(!Ud(a,d)){f=2;break e}d=c+22|0;if(!Ud(a,d)){f=4;break e}d=c+23|0;if(!Ud(a,d)){f=8;break e}d=c+24|0;if(!Ud(a,d)){f=16;break e}d=c+25|0;if(!Ud(a,d)){f=32;break e}d=c+26|0;if(!Ud(a,d)){f=64;break e}d=c+27|0;if(!Ud(a,d)){f=128;break e}d=c+28|0;if(!Ud(a,d)){f=256;break e}d=c+ +29|0;if(!Ud(a,d)){f=512;break e}d=c+30|0;if(!Ud(a,d)){f=1024;break e}d=c+31|0;if(!Ud(a,d)){f=2048;break e}d=c+32|0;if(!Ud(a,d)){f=4096;break e}d=c+33|0;if(!Ud(a,d)){f=8192;break e}f=16384;d=c+34|0;if(Ud(a,d))break c}i=a+i|0;f:{if(1<>1>(f|0))break f;c=k<<2;if(1<>1<(f|0)){h=c+12|0;break f}h=c+4|0}J[e+36>>2]=h;g:{if(j){d=f;break g}h=d+14|0;d=f;while(1){c=f>>>1|0;d=(Ud(a,h)?c:0)|d;j=f>>>0>3;f=c;if(j)continue;break}}f=J[e+20>>2]+(k?d^-1:d+1|0)|0;J[e+20>>2]=f}I[n>>1]=f;h:{if(J[a+ +432>>2]<=0)break h;c=J[l+24>>2];j=c+a|0;h=(c<<2)+g|0;d=1;while(1){f=d;d=(J[h+120>>2]+P(d,3)|0)-3|0;if(Ud(a,d))break h;while(1){if(!Ud(a,d+1|0)){d=d+3|0;c=J[a+432>>2]>(f|0);f=f+1|0;if(c)continue;break c}break}k=Ud(a,q);c=d+2|0;i:{if(!Ud(a,c)){c=0;break i}if(!Ud(a,c)){c=1;break i}c=J[h+120>>2]+(K[j+264|0]<(f|0)?217:189)|0;j:{if(!Ud(a,c)){d=2;break j}e=c+1|0;if(!Ud(a,e)){d=4;c=e;break j}e=c+2|0;if(!Ud(a,e)){d=8;c=e;break j}e=c+3|0;if(!Ud(a,e)){d=16;c=e;break j}e=c+4|0;if(!Ud(a,e)){d=32;c=e;break j}e= +c+5|0;if(!Ud(a,e)){d=64;c=e;break j}e=c+6|0;if(!Ud(a,e)){d=128;c=e;break j}e=c+7|0;if(!Ud(a,e)){d=256;c=e;break j}e=c+8|0;if(!Ud(a,e)){d=512;c=e;break j}e=c+9|0;if(!Ud(a,e)){d=1024;c=e;break j}e=c+10|0;if(!Ud(a,e)){d=2048;c=e;break j}e=c+11|0;if(!Ud(a,e)){d=4096;c=e;break j}e=c+12|0;if(!Ud(a,e)){d=8192;c=e;break j}d=16384;c=c+13|0;if(Ud(a,c))break c}l=c+14|0;c=d;while(1){e=d>>>1|0;c=(Ud(a,l)?e:0)|c;i=d>>>0>3;d=e;if(i)continue;break}}I[(J[(f<<2)+p>>2]<<1)+n>>1]=k?c^-1:c+1|0;d=f+1|0;if(J[a+432>>2]> +(f|0))continue;break}}m=m+1|0;if((m|0)>2])continue;break}}return 1}b=J[a>>2];J[b+20>>2]=117;kc[J[b+4>>2]](a,-1);J[g+16>>2]=-1;return 1}function vL(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;m=fc-16|0;fc=m;c=-102;a:{if(!a|!J[a+56>>2])break a;J[a+68>>2]=0;b=a- -64|0;b:{if(!(J[a+160>>2]|J[a+156>>2]!=8)){c=a+164|0;while(1){if(!J[a+80>>2]){uL(a);J[a+76>>2]=c;J[a+80>>2]=65536}d=J[a+84>>2];e=Wk(b,4);J[a+124>>2]=J[a+124>>2]+(J[a+84>>2]-d|0);if(!e)continue;break}if((e| +0)!=1)break b}e=0;if(!J[a+124>>2])break b;e=(uL(a)|0)==-1?-1:0}if(!(J[a+160>>2]|J[a+156>>2]!=8)){b=Yo(b);J[a+120>>2]=0;e=e?e:b}if(!J[a+160>>2]){b=a+65736|0;h=J[b>>2];i=J[b+4>>2];k=J[a+65704>>2]}c=J[a+65760>>2];b=a+65728|0;g=c+J[b>>2]|0;f=J[b+4>>2]+(c>>31)|0;f=c>>>0>g>>>0?f+1|0:f;c:{if(!(!f&(g|0)==-1|(f|0)!=0|(!i&(h|0)==-1|(i|0)!=0)))if(!J[a+132>>2]&J[a+128>>2]!=-1)break c;b=J[a+136>>2];H[b+4|0]=45;H[b+5|0]=0;b=J[a+136>>2];H[b+6|0]=45;H[b+7|0]=0}b=J[a+136>>2];H[b+16|0]=k;H[b+17|0]=k>>>8;H[b+18|0]= +k>>>16;H[b+19|0]=k>>>24;b=J[a+136>>2];d:{if(!f&(g|0)==-1|f){H[b+20|0]=255;H[b+21|0]=255;H[b+22|0]=255;H[b+23|0]=255;break d}H[b+20|0]=g;H[b+21|0]=g>>>8;H[b+22|0]=g>>>16;H[b+23|0]=g>>>24}if(J[a+108>>2]==1){b=J[a+136>>2];H[b+36|0]=1;H[b+37|0]=0}b=J[a+136>>2];e:{if(!i&(h|0)==-1|i){H[b+24|0]=255;H[b+25|0]=255;H[b+26|0]=255;H[b+27|0]=255;b=8;break e}H[b+24|0]=h;H[b+25|0]=h>>>8;H[b+26|0]=h>>>16;H[b+27|0]=h>>>24;b=0}b=!f&(g|0)==-1|f?b+8|0:b;c=b+8|0;d=b;b=J[a+132>>2];d=!b&J[a+128>>2]==-1|b?c:d;f:{if(!d)break f; +c=-103;j=d|4;if(j>>>0>M[a+148>>2])break a;b=J[a+136>>2]+J[a+144>>2]|0;H[b+3|0]=0;H[b+2|0]=d;H[b|0]=1;H[b+1|0]=0;if(!i&(h|0)!=-1)b=b+4|0;else{H[b+4|0]=h;H[b+5|0]=h>>>8;H[b+6|0]=h>>>16;H[b+7|0]=h>>>24;H[b+8|0]=i;H[b+9|0]=i>>>8;H[b+10|0]=i>>>16;H[b+11|0]=i>>>24;b=b+12|0}if(!f&(g|0)==-1|f){H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;H[b+4|0]=f;H[b+5|0]=f>>>8;H[b+6|0]=f>>>16;H[b+7|0]=f>>>24;b=b+8|0}d=J[a+132>>2];c=J[a+128>>2];if(!d&(c|0)==-1|d){H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3| +0]=c>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24}J[a+148>>2]=J[a+148>>2]-j;J[a+144>>2]=j+J[a+144>>2];b=j+J[a+140>>2]|0;J[a+140>>2]=b;c=J[a+136>>2];H[c+30|0]=b;H[c+31|0]=b>>>8;if(b>>>0<65536)break f;H[c+30|0]=255;H[c+31|0]=255}b=J[a+136>>2];g:{if(e){uc(b);c=e;break g}j=J[a+144>>2];h:{c=J[a+52>>2];if(!c){c=Dc(4096);if(!c){c=a+48|0;J[a+52>>2]=0;break h}J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=4080;J[a+48>>2]=c;J[a+52>>2]=c}if(j){e=J[c+4>>2];while(1){if(e)d=J[c+8>>2];else{d=Dc(4096);if(!d)break h; +J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=4080;J[c>>2]=d;J[a+52>>2]=d;e=4080;c=d;d=0}n=(c+d|0)+16|0;d=e>>>0>>0?e:j;q=d&3;o=0;e=0;if(d>>>0>=4){r=d&-4;p=0;while(1){H[e+n|0]=K[b+e|0];l=e|1;H[l+n|0]=K[b+l|0];l=e|2;H[l+n|0]=K[b+l|0];l=e|3;H[l+n|0]=K[b+l|0];e=e+4|0;p=p+4|0;if((r|0)!=(p|0))continue;break}}if(q)while(1){H[e+n|0]=K[b+e|0];e=e+1|0;o=o+1|0;if((o|0)!=(q|0))continue;break}J[c+8>>2]=d+J[c+8>>2];e=J[c+4>>2]-d|0;J[c+4>>2]=e;b=b+d|0;j=j-d|0;if(j)continue;break}b=J[a+136>>2]}uc(b);c=vq(a,J[a+44>>2]);j=jc; +d=J[a+44>>2];b=J[a+132>>2];e=J[a+128>>2]+14|0;b=e>>>0<14?b+1|0:b;i:{j:{if(!Aj(a,d,e,b,0)){b=J[a+44>>2];H[m+11|0]=k>>>24;H[m+10|0]=k>>>16;H[m+9|0]=k>>>8;H[m+8|0]=k;b=kc[J[a+8>>2]](J[a+28>>2],b,m+8|0,4)|0;e=(b|0)!=4?-1:0;if(!i&(h|0)==-1|i|(!f&(g|0)==-1|f))break j;e=-1;if((b|0)!=4)break i;if(TC(a,J[a+44>>2],g,f,4))break i;e=TC(a,J[a+44>>2],h,i,4);break i}e=-1;if(!i&(h|0)==-1|i)break j;if(!f&(g|0)!=-1)break i}d=a+65720|0;k=J[d>>2];d=J[d+4>>2];if(!(k|d)){e=-103;break i}n=J[a+44>>2];b=d;d=k+4|0;b=d>>>0< +4?b+1|0:b;b=Aj(a,n,d,b,0)|e;e=-1;if(b)break i;if(TC(a,J[a+44>>2],h,i,8))break i;e=TC(a,J[a+44>>2],g,f,8)}c=Aj(a,J[a+44>>2],c,j,0)?-1:e;break g}J[c>>2]=0;uc(J[a+136>>2]);c=-104}J[a+56>>2]=0;f=J[a+65788>>2];b=J[a+65784>>2]+1|0;f=b?f:f+1|0;J[a+65784>>2]=b;J[a+65788>>2]=f}fc=m+16|0;return c}function U4(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=fc-32|0;fc=g;j=J[a>>2];l=(b-j|0)/72|0;b=P(l,72)+j|0;a:{b:{c:{i=J[a+4>>2];f=J[a+8>>2];d:{if(i>>>0>>0){if((b|0)==(i|0)){O[b>>3]=O[c>>3];O[b+8>>3]=O[c+ +8>>3];O[b+16>>3]=O[c+16>>3];O[b+24>>3]=O[c+24>>3];O[b+32>>3]=O[c+32>>3];O[b+40>>3]=O[c+40>>3];e=J[c+52>>2];J[b+48>>2]=J[c+48>>2];J[b+52>>2]=e;e=J[c+60>>2];J[b+56>>2]=J[c+56>>2];J[b+60>>2]=e;J[b+64>>2]=J[c+64>>2];c=J[c+68>>2];J[b+68>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[a+4>>2]=b+72;break d}e=a;f=J[a+4>>2];h=f;d=b;k=b+72|0;b=P((f-k|0)/72|0,72)+b|0;if(i>>>0>b>>>0){a=b;while(1){O[h>>3]=O[a>>3];O[h+8>>3]=O[a+8>>3];O[h+16>>3]=O[a+16>>3];O[h+24>>3]=O[a+24>>3];O[h+32>>3]=O[a+32>>3];O[h+40>>3]=O[a+40>>3];m= +J[a+52>>2];J[h+48>>2]=J[a+48>>2];J[h+52>>2]=m;m=J[a+60>>2];J[h+56>>2]=J[a+56>>2];J[h+60>>2]=m;J[h+64>>2]=J[a+64>>2];J[h+68>>2]=J[a+68>>2];J[a+64>>2]=0;J[a+68>>2]=0;h=h+72|0;a=a+72|0;if(i>>>0>a>>>0)continue;break}}J[e+4>>2]=h;if((f|0)!=(k|0))while(1){f=f-72|0;b=b-72|0;O[f>>3]=O[b>>3];O[f+8>>3]=O[b+8>>3];O[f+16>>3]=O[b+16>>3];O[f+24>>3]=O[b+24>>3];O[f+32>>3]=O[b+32>>3];O[f+40>>3]=O[b+40>>3];a=J[b+52>>2];J[f+48>>2]=J[b+48>>2];J[f+52>>2]=a;a=J[b+60>>2];J[f+56>>2]=J[b+56>>2];J[f+60>>2]=a;a=b- -64|0;h= +J[a>>2];i=J[a+4>>2];J[a>>2]=0;J[a+4>>2]=0;a=J[f+68>>2];k=f- -64|0;J[k>>2]=h;J[k+4>>2]=i;e:{if(!a)break e;h=J[a+4>>2];J[a+4>>2]=h-1;if(h)break e;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(d|0))continue;break}a=P(M[e+4>>2]>c>>>0&c>>>0>=d>>>0,72)+c|0;O[d>>3]=O[a>>3];O[d+8>>3]=O[a+8>>3];b=P(l,72)+j|0;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];c=J[a+60>>2];J[b+56>>2]=J[a+56>>2];J[b+60>>2]=c;c=J[a+52>>2];J[b+48>>2]=J[a+48>>2];J[b+52>>2]=c;d=J[a+64>>2];c=J[a+68>> +2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[b- -64>>2]=d;a=J[b+68>>2];J[b+68>>2]=c;if(!a)break d;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break d;kc[J[J[a>>2]+8>>2]](a);Gc(a);break d}e=((i-j|0)/72|0)+1|0;if(e>>>0>=59652324)break c;J[g+28>>2]=a+8;f=(f-j|0)/72|0;h=f<<1;e=f>>>0>=29826161?59652323:e>>>0>>0?h:e;if(e){if(e>>>0>=59652324)break b;d=vc(P(e,72))}J[699344]=0;J[g+12>>2]=d;f=P(l,72)+d|0;J[g+20>>2]=f;J[g+24>>2]=P(e,72)+d;J[g+16>>2]=f;da(2523,g+12|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;d=J[g+16>>2];f= +J[a>>2];if((f|0)!=(b|0)){c=b;while(1){d=d-72|0;c=c-72|0;O[d>>3]=O[c>>3];O[d+8>>3]=O[c+8>>3];O[d+16>>3]=O[c+16>>3];O[d+24>>3]=O[c+24>>3];O[d+32>>3]=O[c+32>>3];O[d+40>>3]=O[c+40>>3];e=J[c+52>>2];J[d+48>>2]=J[c+48>>2];J[d+52>>2]=e;e=J[c+60>>2];J[d+56>>2]=J[c+56>>2];J[d+60>>2]=e;J[d- -64>>2]=J[c- -64>>2];e=J[c+68>>2];J[d+68>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;if((c|0)!=(f|0))continue;break}}J[g+16>>2]=d;c=J[g+20>>2];e=J[a+4>>2];if((e|0)!=(b|0)){while(1){O[c>>3]=O[b>>3];O[c+8>>3]=O[b+8>>3];O[c+16>>3]=O[b+ +16>>3];O[c+24>>3]=O[b+24>>3];O[c+32>>3]=O[b+32>>3];O[c+40>>3]=O[b+40>>3];d=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=d;d=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=d;J[c+64>>2]=J[b+64>>2];d=J[b+68>>2];J[c+68>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;c=c+72|0;b=b+72|0;if((e|0)!=(b|0))continue;break}d=J[g+16>>2];b=J[a+4>>2]}e=J[a>>2];J[a>>2]=d;J[g+16>>2]=e;J[a+4>>2]=c;J[g+20>>2]=b;c=J[a+8>>2];J[a+8>>2]=J[g+24>>2];J[g+12>>2]=e;J[g+24>>2]=c;if((b|0)!=(e|0)){while(1){a=b-72|0;J[g+20>>2]=a;a=J[a+68>>2];f:{if(!a)break f; +b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break f;kc[J[J[a>>2]+8>>2]](a);Gc(a)}b=J[g+20>>2];if((e|0)!=(b|0))continue;break}b=J[g+12>>2]}if(b)uc(b)}fc=g+32|0;return}Fg(a);B()}Pd();B()}b=Z()|0;a=J[g+20>>2];c=J[g+16>>2];if((a|0)!=(c|0))while(1){a=a-72|0;J[g+20>>2]=a;a=J[a+68>>2];g:{if(!a)break g;d=J[a+4>>2];J[a+4>>2]=d-1;if(d)break g;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[g+20>>2];if((c|0)!=(a|0))continue;break}a=J[g+12>>2];if(a)uc(a);ba(b|0);B()}function AYa(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; +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;q=fc-16|0;fc=q;if(J[a+108>>2]==16){b=J[a+104>>2];J[q+12>>2]=20480;kc[J[J[b>>2]+308>>2]](b,q+12|0)|0;c=J[a+196>>2]+J[a+192>>2]|0;b=J[a+184>>2];e=J[a+180>>2];if((c|0)==(((b|0)!=(e|0)?(b-e<<7)-1|0:0)|0)){i=fc-32|0;fc=i;a:{b:{c:{d:{e:{h=a+176|0;b=J[h+16>>2];if(b>>>0>=512){J[h+16>>2]=b-512;b=J[h+4>>2];l=J[b>>2];g=b+4|0;J[h+4>>2]=g;c=J[h+8>>2];f:{if((c|0)!=J[h+12>>2]){e=c;break f}j=J[h>>2];if(j>>>0>>0){b=((g-j>>2)+1|0)/-2<<2;c=c-g|0;e=cd(b+g|0,g,c)+ +c|0;J[h+8>>2]=e;J[h+4>>2]=b+J[h+4>>2];break f}b=(c|0)==(j|0)?1:c-j>>1;if(b>>>0>=1073741824)break e;e=b<<2;k=vc(e);n=e+k|0;b=k+(b&-4)|0;e=b;g:{if((c|0)==(g|0))break g;m=c-g|0;o=m-4|0;p=(o>>>2|0)+1&7;h:{if(!p){c=b;break h}e=0;c=b;while(1){J[c>>2]=J[g>>2];g=g+4|0;c=c+4|0;e=e+1|0;if((p|0)!=(e|0))continue;break}}e=b+m|0;if(o>>>0<28)break g;while(1){J[c>>2]=J[g>>2];J[c+4>>2]=J[g+4>>2];J[c+8>>2]=J[g+8>>2];J[c+12>>2]=J[g+12>>2];J[c+16>>2]=J[g+16>>2];J[c+20>>2]=J[g+20>>2];J[c+24>>2]=J[g+24>>2];J[c+28>>2]= +J[g+28>>2];g=g+32|0;c=c+32|0;if((e|0)!=(c|0))continue;break}}J[h+12>>2]=n;J[h+8>>2]=e;J[h+4>>2]=b;J[h>>2]=k;if(!j)break f;uc(j);e=J[h+8>>2]}J[e>>2]=l;J[h+8>>2]=J[h+8>>2]+4;break a}g=J[h+8>>2];n=J[h+4>>2];j=g-n|0;b=j>>2;c=J[h+12>>2];e=J[h>>2];k=c-e|0;if(b>>>0>2>>>0){if((c|0)!=(g|0)){r=i,s=vc(4096),J[r+12>>2]=s;yM(h,i+12|0);break a}r=i,s=vc(4096),J[r+12>>2]=s;Ku(h,i+12|0);b=J[h+4>>2];l=J[b>>2];g=b+4|0;J[h+4>>2]=g;c=J[h+8>>2];i:{if((c|0)!=J[h+12>>2]){e=c;break i}j=J[h>>2];if(j>>>0>>0){b=((g-j>> +2)+1|0)/-2<<2;c=c-g|0;e=cd(b+g|0,g,c)+c|0;J[h+8>>2]=e;J[h+4>>2]=b+J[h+4>>2];break i}b=(c|0)==(j|0)?1:c-j>>1;if(b>>>0>=1073741824)break e;e=b<<2;k=vc(e);n=e+k|0;b=k+(b&-4)|0;e=b;j:{if((c|0)==(g|0))break j;m=c-g|0;o=m-4|0;p=(o>>>2|0)+1&7;k:{if(!p){c=b;break k}e=0;c=b;while(1){J[c>>2]=J[g>>2];g=g+4|0;c=c+4|0;e=e+1|0;if((p|0)!=(e|0))continue;break}}e=b+m|0;if(o>>>0<28)break j;while(1){J[c>>2]=J[g>>2];J[c+4>>2]=J[g+4>>2];J[c+8>>2]=J[g+8>>2];J[c+12>>2]=J[g+12>>2];J[c+16>>2]=J[g+16>>2];J[c+20>>2]=J[g+20>> +2];J[c+24>>2]=J[g+24>>2];J[c+28>>2]=J[g+28>>2];g=g+32|0;c=c+32|0;if((e|0)!=(c|0))continue;break}}J[h+12>>2]=n;J[h+8>>2]=e;J[h+4>>2]=b;J[h>>2]=k;if(!j)break i;uc(j);e=J[h+8>>2]}J[e>>2]=l;J[h+8>>2]=J[h+8>>2]+4;break a}J[i+28>>2]=h+12;k=(c|0)==(e|0)?1:k>>1;if(k>>>0>=1073741824)break e;l=k<<2;e=vc(l);J[i+12>>2]=e;J[699344]=0;c=e+(b<<2)|0;J[i+20>>2]=c;J[i+24>>2]=e+l;J[i+16>>2]=c;l=_(4,4096)|0;m=J[699344];J[699344]=0;if((m|0)==1)break c;l:{if((b|0)!=(k|0))break l;if((j|0)>0){c=((b+1|0)/-2<<2)+c|0;J[i+16>> +2]=c;break l}c=(g|0)==(n|0)?1:j>>1;if(c>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)==1)break d;B()}J[699344]=0;g=c<<2;b=_(4,g|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break d;J[i+12>>2]=b;J[i+24>>2]=b+g;c=b+(c&-4)|0;J[i+16>>2]=c;uc(e);g=J[h+8>>2]}J[c>>2]=l;J[i+20>>2]=c+4;while(1){if(J[h+4>>2]==(g|0)){c=J[h>>2];J[h>>2]=J[i+12>>2];J[i+12>>2]=c;J[h+4>>2]=J[i+16>>2];J[i+16>>2]=g;b=J[h+8>>2];J[h+8>>2]=J[i+20>>2];J[i+20>>2]=b;e=J[h+12>>2];J[h+12>>2]=J[i+24>>2];J[i+24>>2]=e;if((b| +0)!=(g|0))J[i+20>>2]=b+((g-b|0)+3&-4);if(!c)break a;uc(c);break a}J[699344]=0;g=g-4|0;da(3440,i+12|0,g|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}g=Z()|0;a=J[i+20>>2];b=J[i+16>>2];if((a|0)==(b|0))break b;J[i+20>>2]=a+((b-a|0)+3&-4);break b}Pd();B()}g=Z()|0;uc(l);break b}g=Z()|0}a=J[i+12>>2];if(a)uc(a);ba(g|0);B()}fc=i+32|0;e=J[a+180>>2];c=J[a+192>>2]+J[a+196>>2]|0}b=J[(c>>>7&33554428)+e>>2]+((c&511)<<3)|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+196>>2];J[a+196>>2]=b+1;c=J[a+180>>2];a=b+J[a+192>>2]| +0;a=J[c+(a>>>7&33554428)>>2]+((a&511)<<3)|0;J[a+4>>2]=d;H[a|0]=(f|0)!=0}fc=q+16|0}function BI(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;c=fc-80|0;fc=c;f=a+4|0;d=K[a+15|0];a:{if(!(d<<24>>24<0?J[a+8>>2]:d))break a;y3(f,1);if((b|0)==(f|0))break a;g=K[b+11|0];d=g<<24>>24;if(H[a+15|0]>=0){if((d|0)>=0){d=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=d;J[f+8>>2]=J[b+8>>2];break a}Gf(f,J[b>>2],J[b+4>>2]);break a}d=(d|0)<0;Lf(f,d?J[b>>2]:b,d?J[b+4>>2]:g)}d=K[b+11|0];e=d<<24>>24;b:{c:{d:{e:{f:{g:{h=(e| +0)<0?J[b+4>>2]:d;h:{if(h){g=h+8|0;if(g>>>0>=1073741808)break g;i:{if(g>>>0<=1){J[c+72>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;H[c+75|0]=g;d=c- -64|0;break i}d=g|3;if(d>>>0>=1073741823)break f;i=d+1|0;d=vc(i<<2);J[c+68>>2]=g;J[c+64>>2]=d;J[c+72>>2]=i|-2147483648}e=(e|0)<0?J[b>>2]:b;b=h<<2;b=cd(d,e,b)+b|0;J[b+32>>2]=0;d=J[211490];J[b+24>>2]=J[211489];J[b+28>>2]=d;d=J[211488];J[b+16>>2]=J[211487];J[b+20>>2]=d;d=J[211486];J[b+8>>2]=J[211485];J[b+12>>2]=d;d=J[211484];J[b>>2]=J[211483];J[b+4>>2]=d;j:{k:{l:{m:{n:{o:{p:{q:{if(H[c+ +75|0]>=0){J[c+56>>2]=J[c+72>>2];b=J[c+68>>2];J[c+48>>2]=J[c+64>>2];J[c+52>>2]=b;break q}J[699344]=0;ca(15,c+48|0,J[c+64>>2],J[c+68>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break p}g=c+48|4;d=0;while(1){J[699344]=0;b=_(3202,c+48|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;if(!b)break k;b=H[c+75|0];h=(b|0)<0;r:{s:{i=h?J[c+68>>2]:b&255;b=i+1|0;t:{if(b>>>0>=1073741808){J[699344]=0;$(2959,c+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break t;break b}if(b>>>0<=1){J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]= +0;H[c+35|0]=b;e=c+24|0;break r}e=b|3;if(e>>>0<1073741823)break s;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break b}b=Z()|0;break d}J[699344]=0;j=e+1|0;e=_(4,j<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break o;J[c+28>>2]=b;J[c+24>>2]=e;J[c+32>>2]=j|-2147483648}b=i<<2;b=cd(e,h?J[c+64>>2]:c- -64|0,b)+b|0;J[b>>2]=95;J[b+4>>2]=0;J[699344]=0;b=c+12|0;d=d+1|0;da(2279,b|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break n;J[699344]=0;h=b;b=K[c+23|0];e=b<<24>>24<0;b=ga(2960,c+24|0,(e?J[c+12>>2]: +h)|0,(e?J[c+16>>2]:b)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;h=J[b>>2];J[c+40>>2]=J[b+4>>2];e=K[b+7|0]|K[b+8|0]<<8|(K[b+9|0]<<16|K[b+10|0]<<24);H[c+43|0]=e;H[c+44|0]=e>>>8;H[c+45|0]=e>>>16;H[c+46|0]=e>>>24;J[b>>2]=0;J[b+4>>2]=0;e=K[b+11|0];J[b+8>>2]=0;if(H[c+59|0]<0)uc(J[c+48>>2]);J[c+48>>2]=h;b=K[c+43|0]|K[c+44|0]<<8|(K[c+45|0]<<16|K[c+46|0]<<24);H[g+3|0]=b;H[g+4|0]=b>>>8;H[g+5|0]=b>>>16;H[g+6|0]=b>>>24;J[g>>2]=J[c+40>>2];H[c+59|0]=e;if(H[c+23|0]<0)uc(J[c+12>>2]);if(H[c+35|0]>=0)continue; +uc(J[c+24>>2]);continue}}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break l}b=Z()|0;if(H[c+23|0]>=0)break l;uc(J[c+12>>2])}if(H[c+35|0]>=0)break d;uc(J[c+24>>2]);break d}J[699344]=0;b=c+48|0;_(3206,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;u:{v:{if((b|0)==(f|0))break v;d=K[c+59|0];b=d<<24>>24;if(H[a+15|0]>=0){if((b|0)>=0){b=J[c+52>>2];J[f>>2]=J[c+48>>2];J[f+4>>2]=b;J[f+8>>2]=J[c+56>>2];break u}J[699344]=0;ga(1631,f|0,J[c+48>>2],J[c+52>>2])|0;b=J[699344];J[699344]=0;if((b|0)!=1)break v;break e}J[699344]= +0;b=(b|0)<0;ga(1630,f|0,(b?J[c+48>>2]:c+48|0)|0,(b?J[c+52>>2]:d)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e}if(H[c+59|0]>=0)break u;uc(J[c+48>>2])}if(H[c+75|0]>=0)break h;uc(J[c+64>>2]);break h}b=Z()|0;break d}w:{if(H[a+15|0]<0){J[a+8>>2]=0;b=J[a+4>>2];break w}H[a+15|0]=0;b=f}J[b>>2]=0}d=J[693464];x:{if(!d)break x;b=d+432|0;if((b|0)==(f|0))break x;e=K[a+15|0];g=e<<24>>24;if(H[d+443|0]>=0){if((g|0)>=0){a=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=a;J[b+8>>2]=J[f+8>>2];break x}Gf(b,J[a+4>>2],J[a+8>> +2]);break x}h=b;b=(g|0)<0;Lf(h,b?J[a+4>>2]:f,b?J[a+8>>2]:e)}fc=c+80|0;return}_d(c- -64|0);B()}Pd();B()}b=Z()|0}if(H[c+59|0]>=0)break c;uc(J[c+48>>2])}if(H[c+75|0]<0)uc(J[c+64>>2]);ba(b|0);B()}B()}function R0(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,w=0,y=0;c=fc-80|0;fc=c;a:{b:{c:{d:{e:{if(!(K[a+229|0]|K[a+228|0])){j=J[b+12>>2];b=J[a+104>>2];J[c+56>>2]=32;e=c+56|0;kc[J[J[b>>2]+308>>2]](b,e)|0;b=J[a+104>>2];J[c+56>>2]=0;kc[J[J[b>>2]+412>>2]](b,e)|0;b= +J[a+104>>2];kc[J[J[b>>2]+428>>2]](b)|0;q=J[j+8>>2];if((q|0)>0)while(1){J[c+72>>2]=0;J[c+76>>2]=1076101120;f:{if(J[j+8>>2]<=(h|0)){l=0;m=0;n=0;o=0;e=0;break f}b=J[j>>2]+(h<<6)|0;r=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);s=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);e=K[b+52|0]|K[b+53|0]<<8|(K[b+54|0]<<16|K[b+55|0]<<24);d=K[b+48|0]|K[b+49|0]<<8|(K[b+50|0]<<16|K[b+51|0]<<24);x(0,d|0);x(1,e|0);o=+z();e=K[b+44|0]|K[b+45|0]<<8|(K[b+46|0]<<16|K[b+47|0]<<24);d=K[b+40|0]|K[b+41|0]<<8|(K[b+42|0]<< +16|K[b+43|0]<<24);x(0,d|0);x(1,e|0);n=+z();e=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);d=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);x(0,d|0);x(1,e|0);m=+z();e=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);d=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);x(0,d|0);x(1,e|0);l=+z();e=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);d=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);x(0,d|0);x(1,e|0);v=c,w=+z(),O[v+72>>3]=w;t=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16| +K[b+19|0]<<24);e=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24)}g=J[a+104>>2];d=bf(s);if(d>>>0>=1073741808)break e;g:{if(d>>>0<=1){H[c+67|0]=d;b=c+56|0;break g}b=d|3;if(b>>>0>=1073741823)break d;f=b+1|0;b=vc(f<<2);J[c+64>>2]=f|-2147483648;J[c+56>>2]=b;J[c+60>>2]=d}f=b;b=d<<2;v=cd(f,s,b)+b|0,y=0,J[v>>2]=y;b=J[J[g>>2]+236>>2];J[699344]=0;aa(b|0,g|0,c+56|0)|0;b=J[699344];J[699344]=0;h:{i:{j:{k:{if((b|0)!=1){if(H[c+67|0]<0)uc(J[c+56>>2]);g=J[a+104>>2];d=bf(r);if(d>>>0>=1073741808)break c;l:{if(d>>> +0<=1){H[c+67|0]=d;b=c+56|0;break l}b=d|3;if(b>>>0>=1073741823)break d;f=b+1|0;b=vc(f<<2);J[c+64>>2]=f|-2147483648;J[c+56>>2]=b;J[c+60>>2]=d}f=b;b=d<<2;v=cd(f,r,b)+b|0,y=0,J[v>>2]=y;b=J[J[g>>2]+244>>2];J[699344]=0;aa(b|0,g|0,c+56|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;if(H[c+67|0]<0)uc(J[c+56>>2]);b=J[a+104>>2];kc[J[J[b>>2]+252>>2]](b,c+72|0)|0;b=J[a+104>>2];J[c+56>>2]=t;kc[J[J[b>>2]+260>>2]](b,c+56|0)|0;qK(a,J[j+8>>2]>(h|0)?J[j+4>>2]+P(h,48)|0:0,c+48|0,c+40|0,1);b=e;if(!b)break h;while(1){d= +b;b=b+4|0;if(J[d>>2])continue;break}b=d-e|0;g=b>>2;switch(g|0){case 0:break h;case 1:break i;default:break j}}b=Z()|0;if(H[c+67|0]>=0)break b;uc(J[c+56>>2]);break b}b=Z()|0;if(H[c+67|0]>=0)break b;break a}d=vc(g>>>0>1073741823?-1:b);m:{if((g|0)<=0)break m;p=0;b=0;if(g>>>0>=4){u=g&-4;i=0;while(1){f=b<<2;J[f+d>>2]=J[e+f>>2];k=f|4;J[k+d>>2]=J[e+k>>2];k=f|8;J[k+d>>2]=J[e+k>>2];f=f|12;J[f+d>>2]=J[e+f>>2];b=b+4|0;i=i+4|0;if((u|0)!=(i|0))continue;break}}f=g&3;if(!f)break m;while(1){i=b<<2;J[i+d>>2]=J[e+ +i>>2];b=b+1|0;p=p+1|0;if((f|0)!=(p|0))continue;break}}b=J[a+104>>2];J[c+56>>2]=0;H[c+67|0]=0;O[c+24>>3]=l/72*25.4;O[c+16>>3]=m/72*25.4;O[c+8>>3]=n/72*25.4;O[c>>3]=o/72*25.4;e=J[J[b>>2]+372>>2];J[699344]=0;za(e|0,b|0,c+56|0,d|0,g|0,c+24|0,c+16|0,c+8|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+67|0]<0)uc(J[c+56>>2]);uc(d);break h}b=Z()|0;if(H[c+67|0]>=0)break b;break a}b=J[a+104>>2];J[c>>2]=0;J[c+36>>2]=J[e>>2];O[c+56>>3]=l/72*25.4;O[c+24>>3]=m/72*25.4;O[c+16>>3]=n/72*25.4;O[c+8>>3]=o/72*25.4; +kc[J[J[b>>2]+368>>2]](b,c,c+36|0,c+56|0,c+24|0,c+16|0,c+8|0)|0}h=h+1|0;if((q|0)!=(h|0))continue;break}b=J[a+104>>2];J[c+56>>2]=32;kc[J[J[b>>2]+312>>2]](b,c+56|0)|0;b=J[a+104>>2];kc[J[J[b>>2]+344>>2]](b)|0;a=J[a+104>>2];kc[J[J[a>>2]+432>>2]](a)|0}fc=c+80|0;return}_d(c+56|0);B()}Pd();B()}_d(c+56|0);B()}ba(b|0);B()}uc(J[c+56>>2]);ba(b|0);B()}function a4a(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;j=fc-16|0;fc=j;d=K[a+11|0];c=d<<24>>24;f=K[b+11|0];e=f<<24>>24;e=(e|0)<0;g=e?J[b+4>> +2]:f;c=(c|0)<0;f=c?J[a+4>>2]:d;a:{if((g|0)==(f|0)){d=1;if(!f)break a;if(!qd(c?J[a>>2]:a,e?J[b>>2]:b,f))break a}c=fc-416|0;fc=c;d=K[a+11|0];f=d<<24>>24;e=K[b+11|0];h=e<<24>>24;b:{c:{d:{e:{f:{g:{h:{i:{g=(h|0)<0;k=g?J[b+4>>2]:e;e=J[a+4>>2];h=(f|0)<0;i=h?e:d;j:{if((k|0)==(i|0)){d=1;if(!i)break j;if(!qd(h?J[a>>2]:a,g?J[b>>2]:b,i))break j;d=K[a+11|0];f=d;e=J[a+4>>2]}f=f<<24>>24<0;_m(c+404|0,f?J[a>>2]:a,f?e:d,0);e=J[b>>2];f=J[b+4>>2];d=K[b+11|0];J[699344]=0;g=b;b=d<<24>>24<0;ia(1626,c+392|0,(b?e:g)|0,(b? +f:d)|0,0);b=J[699344];J[699344]=0;k:{l:{m:{if((b|0)!=1){J[c+312>>2]=2629032;b=J[657261];J[c+204>>2]=b;d=J[b-12>>2];b=c+204|0;J[d+b>>2]=J[657262];J[c+208>>2]=0;d=J[J[c+204>>2]-12>>2];J[699344]=0;b=b+d|0;d=c+212|0;da(3019,b|0,d|0);e=J[699344];J[699344]=0;k=c+312|0;if((e|0)==1)break i;J[b+72>>2]=0;J[b+76>>2]=-1;J[c+312>>2]=2629032;J[c+204>>2]=2629012;J[699344]=0;f=_(3020,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;bg(k);break d}J[c+124>>2]=2629188;b=J[657300];J[c+20>>2]=b;d=J[b-12>>2];b=c+20| +0;J[d+b>>2]=J[657301];d=J[J[c+20>>2]-12>>2];J[699344]=0;b=b+d|0;d=c+24|0;da(3019,b|0,d|0);e=J[699344];J[699344]=0;l=c+124|0;if((e|0)==1)break h;J[b+72>>2]=0;J[b+76>>2]=-1;J[c+124>>2]=2629188;J[c+20>>2]=2629168;J[699344]=0;h=_(3020,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;bg(l);break e}J[699344]=0;b=c+4|0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=415588;d=J[699344];J[699344]=0;if((d|0)==1)break m;J[699344]=0;d=ga(3,b|0,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;b=1048576;if(d){b= +J[c+16>>2];J[c+12>>2]=0;J[c+16>>2]=0;d=J[c+8>>2];if(d){pg(d);J[c+8>>2]=0}if((b|0)<=0)break l;b=(b|0)>=1048576?1048576:b}J[699344]=0;i=_(27,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;J[699344]=0;e=_(27,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;d=J[J[f>>2]+12>>2];J[699344]=0;ga(d|0,f|0,i|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;d=J[J[h>>2]+12>>2];J[699344]=0;ga(d|0,h|0,e|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break k;break g}b=Z()|0;break c}b=Z()|0;break f}i=0;e=0}d= +0;J[699344]=0;b=c+204|0;ca(3021,b|0,(H[c+415|0]<0?J[c+404>>2]:c+404|0)|0,4);g=J[699344];J[699344]=0;if((g|0)==1)break g;n:{if(!J[c+276>>2])break n;J[699344]=0;g=c+20|0;ca(3022,g|0,(H[c+403|0]<0?J[c+392>>2]:c+392|0)|0,4);m=J[699344];J[699344]=0;if((m|0)==1)break g;if(!J[c+276>>2]|!J[c+88>>2])break n;J[699344]=0;aa(3023,g|0,f|0)|0;d=J[699344];J[699344]=0;o:{if((d|0)==1)break o;J[699344]=0;d=_(3024,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break o;if(!d){d=J[J[c+204>>2]-12>>2];J[699344]=0;b=b+d|0;da(3025, +b|0,J[b+16>>2]|4);b=J[699344];J[699344]=0;if((b|0)==1)break o}J[699344]=0;b=_(3024,h|0)|0;g=J[699344];J[699344]=0;d=1;if((g|0)==1)break o;if(b)break n;b=J[J[c+20>>2]-12>>2];J[699344]=0;b=b+(c+20|0)|0;da(3025,b|0,J[b+16>>2]|4);b=J[699344];J[699344]=0;if((b|0)!=1)break n}break g}if(i)uc(i);if(e)uc(e);De(c+4|0);b=J[657299];J[c+20>>2]=b;J[J[b-12>>2]+(c+20|0)>>2]=J[657302];Ws(h);bg(l);b=J[657260];J[c+204>>2]=b;J[J[b-12>>2]+(c+204|0)>>2]=J[657263];Ws(f);bg(k);if(H[c+403|0]<0)uc(J[c+392>>2]);if(H[c+415| +0]>=0)break j;uc(J[c+404>>2])}fc=c+416|0;break b}b=Z()|0;bg(k);break d}b=Z()|0;bg(l);break e}b=Z()|0;De(c+4|0)}gD(c+20|0)}fD(c+204|0)}if(H[c+403|0]>=0)break c;uc(J[c+392>>2])}if(H[c+415|0]<0)uc(J[c+404>>2]);ba(b|0);B()}p:{if(!d)break p;J[j+12>>2]=0;q:{r:{b=K[a+11|0];d=b<<24>>24<0;c=d?J[a>>2]:a;if(c){a=d?J[a+4>>2]:b;if(a)break r}a=Fz(0);break q}wq(c,a,j+12|0,j+8|0,0);b=J[j+12>>2];a=Fz(b);if(!b)break q;uc(b)}if(a)break p;d=1;break a}d=0}fc=j+16|0;return d|0}function rX(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;l=fc-32|0;fc=l;a:{b:{if(lk(a+20|0)|J[a+16>>2]){a=Qc(l+8|0,2391002,2387711,1036,2397442,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);break b}c:{d:{g=J[a+64>>2];e:{if((kc[J[J[g>>2]+28>>2]](g)|0)<(c|0)){H[l+8|0]=0;b=J[a+64>>2];g=J[J[b>>2]+20>>2];J[699344]=0;ha(g|0,b|0,0,2,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[a+64>>2];g=J[J[b>>2]+28>>2];J[699344]=0;b=_(g|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)== +1)break c;if((b|0)>=(c|0))break e;while(1){g=J[a+64>>2];e=J[J[g>>2]+12>>2];J[699344]=0;ga(e|0,g|0,l+8|0,1)|0;g=J[699344];J[699344]=0;if((g|0)==1){b=Z()|0;break b}b=b+1|0;if((c|0)!=(b|0))continue;break}break e}g=J[a+64>>2];kc[J[J[g>>2]+20>>2]](g,c,0,0)|0;Dt(J[a+64>>2],b,d)}k=J[a+72>>2];g=d;d=0;f=fc-32|0;fc=f;f:{g:{h:{if((c|0)<0){a=Qc(f+8|0,2386793,2387711,526,2397176,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h;break g}if((g|0)<=0){a=Qc(f+8|0,2388434,2387711,528,2397176,0); +J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h;break g}h=k+4|0;b=J[k+12>>2];i:{if(!b)break i;i=c+g|0;while(1){if((d|0)>=(i|0))break i;e=d;j=J[b+8>>2];m=j>>31;m=(j^m)-m|0;d=m+e|0;j:{if((j|0)>=0)break j;k:{if((c|0)>(e|0)){if(!((d|0)>(i|0)|(c|0)>=(d|0))){J[b+8>>2]=e-c;J[f+12>>2]=h;J[f+8>>2]=b;e=vc(12);J[e+8>>2]=d-c;J[e>>2]=0;J[e+4>>2]=0;EA(h,f+8|0,e);break k}if((d|0)<=(i|0))break j;J[b+8>>2]=e-c;J[f+12>>2]=h;J[f+8>>2]=b;e=vc(12);J[e+8>>2]=g;J[e>>2]=0;J[e+4>>2]=0;j=f+8|0;EA(h,j,e); +b=J[b>>2];J[f+12>>2]=h;J[f+8>>2]=b;e=vc(12);J[e+8>>2]=i-d;J[e>>2]=0;J[e+4>>2]=0;EA(h,j,e);if(b)break k;break i}if((d|0)<=(i|0)){J[b+8>>2]=m;break j}J[b+8>>2]=i-e;J[f+12>>2]=h;J[f+8>>2]=b;e=vc(12);J[e+8>>2]=i-d;J[e>>2]=0;J[e+4>>2]=0;EA(h,f+8|0,e)}b=J[b>>2];if(!b)break i}b=J[b>>2];if(b)continue;break}}l:{m:{if((c|0)>(d|0)){b=vc(12);J[b+8>>2]=d-c;J[b>>2]=0;J[b+4>>2]=0;vf(h,b);break m}b=c+g|0;if((b|0)<=(d|0))break l;g=b-d|0}b=vc(12);J[b+8>>2]=g;J[b>>2]=0;J[b+4>>2]=0;vf(h,b)}b=J[k+12>>2];n:{if(!b)break n; +d=J[b>>2];if(!d)break n;while(1){c=b;b=d;while(1){o:{d=J[c+8>>2];p:{if((d|0)<0){g=J[b+8>>2];if((g|0)<=0)break p;break o}g=J[b+8>>2];if(!d)break p;if((g|0)<0)break o}J[c+8>>2]=d+g;J[f+12>>2]=h;J[f+8>>2]=b;b=J[b>>2];Do(h,f+8|0);if(b)continue;break n}break}d=J[b>>2];if(d)continue;break}}fc=f+32|0;break f}B()}b=Z()|0;Kc(a);ba(b|0);B()}q:{r:{i=J[a+96>>2];if(i)while(1){d=0;b=J[i+8>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;d=J[i+8>>2]}g=J[J[a+72>>2]+12>>2];s:{t:{if(!g)break t;e=J[d+16>>2];if((e|0)<0)break t;h=e+1| +0;f=J[g+8>>2];b=f>>31;b=(b^f)-b|0;c=0;u:{if((f|0)<=0)break u;f=b>>>0>>0;c=f?b:h;if(!e)break u;c=b>>>0>=h>>>0;if(!(f&b>>>0>=e>>>0))break u;c=b-e|0}f=J[g>>2];v:{if(!f)break v;while(1){if((b|0)>(e|0))break v;k=J[f+8>>2];j=k>>31;g=b;j=(j^k)-j|0;b=b+j|0;w:{if((k|0)<=0)break w;if((e|0)>(g|0)){if((b|0)==(e|0))break w;c=((b|0)>(e|0))+c|0;break w}if((b|0)<=(h|0)){c=c+j|0;break w}c=(h-g|0)+c|0}f=J[f>>2];if(f)continue;break}}if(c){if(J[d+8>>2])break t;J[d+8>>2]=1;break t}if(!d)break s}J[699344]=0;b=J[d+4>> +2]-1|0;J[d+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break r;if(b)break s;J[699344]=0;$(5147,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break r}i=J[i>>2];if(i)continue;break}PA(a);x:{if(J[a+84>>2]<0)break x;b=J[a+64>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)>2])break x;if(lk(a+20|0)|J[a+16>>2])break x;H[a+8|0]=1;if(J[a+84>>2]<0){b=J[a+64>>2];n=a,o=kc[J[J[b>>2]+28>>2]](b)|0,J[n+84>>2]=o}f=J[a+96>>2];if(f)while(1){b=J[f+8>>2];if(!J[b+8>>2])J[b+8>>2]=1;f=J[f>>2];if(f)continue;break}PA(a)}break q}ea(0)| +0;Bc();B()}fc=l+32|0;return}b=Z()|0;break b}b=Z()|0}ba(b|0)}B()}function $i(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=Q(0),n=0;k=fc-16|0;fc=k;J[k+12>>2]=c;g=kt(a,b);a:{if(!g)break a;if(b>>>0<=65535){g=L[g+12>>1];if(!(J[((g>>>3&8188)+a|0)+40>>2]>>>g&1))break a}e=kc[J[a+672>>2]](a,b,c)|0}b:{if(e)break b;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(b-254|0){default:p:switch(b-529|0){case 0:break i;case 3:break d;case 2:break g;case 1:break h;default:break p}switch(b-32995|0){case 2:break j;case 1:break l; +case 3:break m;case 0:break n;default:break b}case 0:J[J[c>>2]>>2]=J[a+80>>2];break b;case 4:I[J[c>>2]>>1]=L[a+84>>1];break b;case 9:I[J[c>>2]>>1]=L[a+92>>1];break b;case 12:I[J[c>>2]>>1]=L[a+94>>1];break b;case 20:I[J[c>>2]>>1]=L[a+96>>1];break b;case 23:I[J[c>>2]>>1]=L[a+98>>1];break b;case 24:J[J[c>>2]>>2]=J[a+100>>2];break b;case 26:I[J[c>>2]>>1]=L[a+104>>1];break b;case 27:I[J[c>>2]>>1]=L[a+106>>1];break b;case 30:I[J[c>>2]>>1]=L[a+138>>1];break b;case 42:I[J[c>>2]>>1]=L[a+136>>1];break b;case 63:I[J[c>> +2]>>1]=J[J[a+584>>2]>>2];break b;case 82:I[J[c>>2]>>1]=0;I[J[c+4>>2]>>1]=-1<>1]^-1;break b;case 78:I[J[c>>2]>>1]=1;break b;case 80:I[J[c>>2]>>1]=4;break b;case 85:break k;case 84:break o;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 22:case 25:case 28:case 29:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 43:case 44:case 45:case 46:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 79:case 81:case 83:break b; +case 47:break e;case 64:break f}I[J[c>>2]>>1]=L[a+168>>1];J[J[c+4>>2]>>2]=J[a+172>>2];break b}I[J[c>>2]>>1]=L[J[a+172>>2]>>1]==1&L[a+168>>1]==1;break b}J[J[c>>2]>>2]=J[a+76>>2];break b}I[J[c>>2]>>1]=L[a+86>>1]-1;break b}I[J[c>>2]>>1]=L[a+86>>1];break b}J[J[c>>2]>>2]=J[a- -64>>2];break b}J[J[c>>2]>>2]=2641852;break b}I[J[c>>2]>>1]=L[a+204>>1];I[J[c+4>>2]>>1]=L[a+206>>1];break b}I[J[c>>2]>>1]=L[a+208>>1];break b}J[686057]=1051788566;J[686058]=1052218684;J[J[c>>2]>>2]=2744228;break b}b=J[a+216>>2];if(!b){J[a+ +216>>2]=0;J[a+220>>2]=0;J[a+224>>2]=0;e=L[a+84>>1];q:{if(e>>>0>29)break q;g=2<>2]=b;if(!b)break q;I[b>>1]=0;r:{if(!e)break r;d=1;f=1<>>0<=2?2:f)-1|0;n=j&1;h=+(f-1|0);if((e|0)!=1){j=j&-2;e=0;while(1){l=b+(d<<1)|0;i=V(_e(+(d|0)/h,2.2)*65535+.5);s:{if(i<4294967296&i>=0){f=~~i>>>0;break s}f=0}I[l>>1]=f;f=d+1|0;l=b+(f<<1)|0;i=V(_e(+(f|0)/h,2.2)*65535+.5);t:{if(i<4294967296&i>=0){f=~~i>>>0;break t}f=0}I[l>>1]=f;d=d+2|0;e=e+2|0;if((j|0)!=(e|0))continue;break}}if(!n)break r;e=b+ +(d<<1)|0;h=V(_e(+(d|0)/h,2.2)*65535+.5);u:{if(h<4294967296&h>=0){b=~~h>>>0;break u}b=0}I[e>>1]=b}d=1;if((L[a+98>>1]-L[a+168>>1]|0)<2)break q;b=Dc(g);J[a+220>>2]=b;v:{if(!b)break v;Ue(b,J[a+216>>2],g);b=Dc(g);J[a+224>>2]=b;if(!b)break v;Ue(b,J[a+216>>2],g);break q}b=J[a+216>>2];if(b)uc(b);b=J[a+220>>2];if(b)uc(b);b=J[a+224>>2];if(b)uc(b);d=0;J[a+224>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0}if(!d)break c;b=J[a+216>>2]}J[J[c>>2]>>2]=b;if((L[a+98>>1]-L[a+168>>1]|0)<2)break b;J[J[c+4>>2]>>2]=J[a+220>>2];J[J[c+ +8>>2]>>2]=J[a+224>>2];break b}b=J[a+212>>2];if(!b){b=Dc(24);J[a+212>>2]=b;d=0;w:{if(!b)break w;if(L[a+90>>1]!=6){d=L[a+84>>1];J[b+16>>2]=0;J[b+8>>2]=0;J[b>>2]=0;m=Q(-1<>2]=m;N[b+12>>2]=m;N[b+4>>2]=m;d=1;break w}J[b>>2]=0;J[b+4>>2]=1132396544;J[b+16>>2]=1124073472;J[b+20>>2]=1132396544;J[b+8>>2]=1124073472;J[b+12>>2]=1132396544;d=1}if(!d)break b;b=J[a+212>>2]}J[J[c>>2]>>2]=b;break b}Uc(J[a+628>>2],J[a>>2],70223,0)}fc=k+16|0}function AW(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0, +k=0,l=0;c=fc-48|0;fc=c;a:{b:{if(!K[a+144|0]){a=Qc(c+24|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);d=J[699344];J[699344]=0;if((d|0)!=1)break b;d=Z()|0;Kc(a);ba(d|0);B()}d=c+20|0;Fn(d,J[a+108>>2]);J[c+24>>2]=0;J[c+28>>2]=J[685894];J[699344]=0;da(5278,c+16|0,d|0);d=J[699344];J[699344]=0;c:{d:{e:{f:{g:{if((d|0)!=1){J[699344]=0;j=J[c+16>>2];d=ha(5279,j|0,c+24|0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;if(!d)break g;i=a+148|0;g=J[a+132>>2]<=1?-1:J[a+140>>2];k=g;h:{i:{j:{k:{while(1){l:{d= +f;m:{if(k){J[699344]=0;f=ha(5279,j|0,c+24|0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1){f=d;break l}if(f)break m;g=d}if(J[a+140>>2]>=0)break g;J[a+140>>2]=g;break g}J[699344]=0;b=pd(c+24|0,2394278,-1);e=J[699344];J[699344]=0;f=d+1|0;if((e|0)==1)break l;n:{if(!b){J[699344]=0;J[c+8>>2]=0;aa(5145,c+8|0,j|0)|0;b=J[699344];J[699344]=0;o:{p:{if((b|0)!=1){J[699344]=0;ia(5474,c+12|0,a|0,J[c+8>>2],l|0);b=J[699344];J[699344]=0;l=l+1|0;if((b|0)==1)break p;b=J[c+12>>2];J[c+12>>2]=0;q:{if(!b)break q;J[699344]= +0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(e)break q;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[c+8>>2];J[c+8>>2]=0;if(!b)break n;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)!=1){if(e)break n;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break n}break a}b=ea(2423616)|0;e=gc;break o}b=ea(2423616)|0;e=gc;zc(c+8|0)}if((sa(2423616)|0)!=(e|0))break i;b=oa(b|0)|0;e=J[J[a>>2]+64>>2];h=J[a+132>>2];J[699344]= +0;ca(e|0,a|0,b|0,(h|0)<2|0);b=J[699344];J[699344]=0;if((b|0)==1)break j;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1)break n;b=ea(2423616)|0;break k}J[699344]=0;b=pd(c+24|0,2398472,-1);e=J[699344];J[699344]=0;if((e|0)==1)break l;r:{if(!b){J[699344]=0;b=J[i>>2];e=J[699344];J[699344]=0;if((e|0)==1)break l;J[699344]=0;b=b|4096;if((b|0)!=J[i>>2])J[i>>2]=b;b=J[699344];J[699344]=0;if((b|0)!=1)break r;break l}J[699344]=0;b=c+24|0;e=pd(b,2398687,-1);h=J[699344];J[699344]=0;if((h|0)==1)break l; +if(!e)break r;J[699344]=0;b=pd(b,2398976,-1);e=J[699344];J[699344]=0;if((e|0)==1)break l;if(b)break n}J[699344]=0;b=J[i>>2];e=J[699344];J[699344]=0;if((e|0)==1)break l;J[699344]=0;b=b|2048;if((b|0)!=J[i>>2])J[i>>2]=b;b=J[699344];J[699344]=0;if((b|0)==1)break l}k=k-1|0;J[699344]=0;$(5468,j|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue}break}b=ea(2423616)|0}e=gc;break i}b=ea(2423616)|0;e=gc;J[699344]=0;ka(5053);g=J[699344];J[699344]=0;if((g|0)!=1)break i;break h}if((sa(2423616)|0)!=(e|0))break e; +g=oa(b|0)|0;b=J[a+132>>2];if(J[a+140>>2]<0)J[a+140>>2]=(b|0)>2?f:d;d=J[J[a>>2]+64>>2];J[699344]=0;ca(d|0,a|0,g|0,(b|0)<2|0);d=J[699344];J[699344]=0;if((d|0)!=1){J[699344]=0;ka(5053);d=J[699344];J[699344]=0;if((d|0)!=1)break g;b=Z()|0;break e}b=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break e}break a}b=Z()|0;break d}J[699344]=0;kh(a+148|0,0,0,64,0);d=J[699344];J[699344]=0;if((d|0)==1)break f;a=J[a+108>>2];J[699344]=0;da(5269,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break f; +a=J[c+16>>2];J[c+16>>2]=0;s:{if(!a)break s;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break s;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break s}break a}wc(c+24|0);a=J[c+20>>2];J[c+20>>2]=0;t:{if(!a)break t;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)==1)break c;if(d)break t;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c}fc=c+48|0;return}b=Z()|0}zc(c+16|0)}wc(c+24|0);zc(c+20|0);ba(b|0);B()}ea(0)| +0;Bc()}B()}ea(0)|0;Bc();B()}function DYa(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,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;k=fc-112|0;fc=k;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(!K[a+229|0]){l=k+80|0;J[l+12>>2]=0;J[l+16>>2]=0;J[l+4>>2]=1;J[l+8>>2]=8;J[l>>2]=351116;J[l+20>>2]=0;J[l+24>>2]=0;H[l+28|0]=0;i=J[J[d>>2]+12>>2];J[699344]=0;j=_(i|0,d|0)|0;i=J[699344];J[699344]=0;j:{k:{l:{m:{if((i|0)!=1){q=J[g+8>>2];if(!((j|0)!=6|h|(q|0)!=3)){J[699344]= +0;i=ha(3429,a|0,l|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;if(i)break k}r=e<<2;c=P(r,f);if((c|0)<=0)break j;t=so(c);if(!t)break j;J[699344]=0;i=_(4,36)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break l;break b}d=Z()|0;break a}d=Z()|0;break a}c=J[g+4>>2];J[699344]=0;o=na(3426,i|0,d|0,e|0,q|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[699344]=0;$(3427,o|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;p=O[b+392>>3];J[699344]=0;v=J[o+8>>2];d=J[699344];J[699344]=0;p=p*255;n:{if(R(p)< +2147483648){c=~~p;break n}c=-2147483648}if((d|0)==1)break d;J[699344]=0;j=J[o+16>>2];d=J[699344];J[699344]=0;if((d|0)==1)break e;y=J[b+420>>2];J[699344]=0;i=_(3432,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;d=(j|0)/(v|0)|0;o:{if((f|0)<=0)break o;n=f-1|0;w=(d|0)<(e|0)?d:e;if((w|0)<=0)while(1){J[699344]=0;d=_(3428,o|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;if(!d)Ac(P(n,r)+t|0,0,r);c=(n|0)>0;n=n-1|0;if(c)continue;break o}c=(c|0)>0?c:0;j=(c|0)>=255?255:c;z=i-1|0;while(1){J[699344]=0;m= +_(3428,o|0)|0;c=J[699344];J[699344]=0;p:{q:{if((c|0)!=1){d=P(n,r)+t|0;u=0;if(!m)break q;while(1){r:{s:{t:{u:{v:{w:switch(z|0){case 0:c=J[J[g+20>>2]+(K[m|0]<<2)>>2];c=(c|0)>=65536?65536:c;c=P((c|0)>0?c:0,255)+32768>>>16|0;H[d+1|0]=c;H[d+2|0]=c;H[d|0]=c;break v;case 1:c=J[J[g+20>>2]+(K[m|0]<<2)>>2];c=(c|0)>=65536?65536:c;H[d+2|0]=P((c|0)>0?c:0,255)+32768>>>16;c=J[J[g+24>>2]+(K[m+1|0]<<2)>>2];c=(c|0)>=65536?65536:c;H[d+1|0]=P((c|0)>0?c:0,255)+32768>>>16;c=J[J[g+28>>2]+(K[m+2|0]<<2)>>2];c=(c|0)>=65536? +65536:c;H[d|0]=P((c|0)>0?c:0,255)+32768>>>16;break v;default:break w}J[699344]=0;ia(3433,g|0,m|0,k+32|0,y|0);c=J[699344];J[699344]=0;if((c|0)==1)break u;H[d|0]=P(J[k+40>>2],255)+32768>>>16;H[d+1|0]=P(J[k+36>>2],255)+32768>>>16;H[d+2|0]=P(J[k+32>>2],255)+32768>>>16}if(!h){i=j;break r}if((q|0)<=0)break s;i=j;s=K[m|0];if((s|0)>2])break r;c=0;if((s|0)<=J[h+4>>2])break t;break r}d=Z()|0;break a}while(1){x:{c=c+1|0;if((q|0)==(c|0))break x;i=K[c+m|0];s=c<<3;if((i|0)>2])break x;if((i|0)<=J[(s| +4)+h>>2])continue}break}i=j;if((c|0)<(q|0))break r}i=0}H[d+3|0]=i;d=d+4|0;m=m+v|0;u=u+1|0;if((w|0)!=(u|0))continue;break}break p}d=Z()|0;break a}Ac(d,0,r)}c=(n|0)>0;n=n-1|0;if(c)continue;break}}J[699344]=0;$(3434,o|0);c=J[699344];J[699344]=0;if((c|0)==1){d=Z()|0;break a}uc(Lm(o));J[k+32>>2]=e;J[k+24>>2]=f;J[699344]=0;J[k+16>>2]=0-(e<<2);yi(l,t,k+32|0,k+24|0,k+16|0,0);c=J[699344];J[699344]=0;if((c|0)!=1)break k;d=Z()|0;break a}O[k+32>>3]=O[b+16>>3];O[k+40>>3]=-O[b+24>>3];x=O[b+32>>3];O[k+48>>3]=-x; +p=O[b+40>>3];O[k+56>>3]=p;O[k+64>>3]=x+O[b+48>>3];O[k+72>>3]=O[b+104>>3]-(p+O[b+56>>3]);J[k+24>>2]=0;J[k+28>>2]=0;J[699344]=0;J[k+16>>2]=0;J[k+20>>2]=0;d=k+24|0;c=k+16|0;ma(3418,a|0,k+32|0,d|0,c|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break i;b=J[a+104>>2];J[k+8>>2]=1049880894;J[k+12>>2]=1071027177;J[k>>2]=1049880894;J[k+4>>2]=1071027177;a=J[J[b>>2]+376>>2];J[699344]=0;ja(a|0,b|0,l|0,d|0,c|0,k+8|0,k|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h}If(l)}fc=k+112|0;return}d=Z()|0;break a}d=Z()|0; +break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;uc(i);break a}d=Z()|0}If(l);ba(d|0);B()}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;i=fc-32|0;fc=i;a:{b:{c:{d:{e:{if(c){e=J[c+360>>2];if(e&8388608){J[c+360>>2]=e-8388608;if(J[c+464>>2]==1){b=sC(a,b,c);J[c+360>>2]=e;break a}J[i+16>>2]=a;b=0;Hc(0,0,0,0,0,8,1557,2,a,0,0,0,4491,i+16|0);J[c+360>>2]=e;break a}if(e&2048){J[c+360>>2]=e-2048;d=fc-16|0;fc=d;f=0;f:{if(!c)break f;g:{h:{if(J[c+ +464>>2]==1)break h;if(!a){f=sC(0,b,c);break f}if((a|0)==28638)break g;i:{j:{f=K[a|0];if((f&223)!=70|(K[a+1|0]&223)!=84|((K[a+2|0]&223)!=80|K[a+3|0]!=58))break j;if(K[a+4|0]!=47)break j;if(K[a+5|0]!=47)break i;break g}if((a|0)==28630)break g}if((f&223)!=72|(K[a+1|0]&223)!=84|((K[a+2|0]&223)!=84|(K[a+3|0]&223)!=80))break h;if(K[a+4|0]!=58|K[a+5|0]!=47)break h;if(K[a+6|0]==47)break g}f=sC(a,b,c);break f}J[d>>2]=a;Hc(0,0,0,0,0,8,1543,2,a,0,0,0,4526,d);f=0}b=f;fc=d+16|0;J[c+360>>2]=e;break a}if(a)break e; +if(!(!J[c+212>>2]|J[c+172>>2]!=-1)){b=0;break a}a=b?b:21171;b=J[c>>2];if(!b)break c;e=0;d=J[c+104>>2];f=J[b+(d?88:84)>>2];g=J[c+4>>2];d=d?2:1;e=J[b+108>>2]==-554844497?J[b+124>>2]:e;break b}if(!a)break d}b=a;e=0;g=fc+-64|0;fc=g;if(J[693384]){J[g+48>>2]=a;kc[J[663297]](J[693366],32785,g+48|0)}k:{if(!c)break k;a=J[693392];l:{if(a){d=kc[a|0](b,0)|0;break l}if(!K[2773576]){d=J[693395];if((d|0)<=14){a=d<<4;J[a+2773596>>2]=3288;J[a+2773592>>2]=3289;J[a+2773588>>2]=3290;J[a+2773584>>2]=3291;J[693395]=d+ +1}H[2773576]=1}m:{n:{if(!b)break n;a=J[693395];if((a|0)<=0)break n;while(1){o:{d=a;a=a-1|0;h=a<<4;j=J[h+2773584>>2];p:{if(!j)break p;if(!(kc[j|0](b)|0))break p;h=kc[J[h+2773588>>2]](b)|0;if(h)break o}if(d>>>0>1)continue;break n}break}d=XK(0);if(d){J[d>>2]=h;a=a<<4;J[d+4>>2]=J[a+2773592>>2];J[d+8>>2]=J[a+2773596>>2];break m}kc[J[(a<<4)+2773596>>2]](h)|0}d=0}}if(!d){a=J[c+212>>2];if(!b){if(!(!a|J[c+172>>2]!=-1))break k;a=J[c>>2];q:{if(!a){a=2;d=0;b=0;break q}b=J[c+104>>2];h=a+(b?88:84)|0;d=0;d=J[a+ +108>>2]==-554844497?J[a+124>>2]:d;a=b?2:1;e=J[c+4>>2];b=J[h>>2]}J[g>>2]=0;Hc(d,b,e,c,0,8,1549,a,0,0,0,0,39103,g);break k}if(!(!a|J[c+172>>2]!=-1))break k;a=J[c>>2];r:{if(!a){d=0;a=2;break r}h=J[c+104>>2];e=a+(h?88:84)|0;d=0;d=J[a+108>>2]==-554844497?J[a+124>>2]:d;e=J[e>>2];k=J[c+4>>2];a=h?2:1}J[g+16>>2]=b;Hc(d,e,k,c,0,8,1549,a,b,0,0,0,38263,g+16|0);break k}a=0;f=kc[J[663195]](60)|0;if(!f){if(!(!J[c+212>>2]|J[c+172>>2]!=-1)){f=0;break k}J[c+212>>2]=1;J[c+172>>2]=-1;J[c+84>>2]=2;J[g+32>>2]=33608;f= +0;Hc(0,0,0,c,0,1,2,3,33608,0,0,0,32879,g+32|0);break k}J[f+48>>2]=0;J[f+52>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+56>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+52>>2]=-1;J[f+32>>2]=1;J[f+28>>2]=1;e=J[c+464>>2];J[c+464>>2]=e+1;J[f>>2]=d;J[f+56>>2]=e;s:{if(!b)break s;a=b;while(1){e=a;a=a+1|0;if(K[e|0])continue;break}a=0;e=e-b|0;if((e|0)<0)break s;d=kc[J[663198]](e+1|0)|0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029, +0);break s}a=xc(d,b,e);H[e+a|0]=0}b=zC(a);e=J[f+4>>2];if(e)kc[J[663199]](e);l=f,m=ox(a),J[l+4>>2]=m;if(a)kc[J[663199]](a);J[f+8>>2]=b;d=J[J[f>>2]+16>>2];if(!(!d|J[d+32>>2])){a=J[d+8>>2];if(!((a|0)==J[d+24>>2]|a>>>0>2147483646))J[d+24>>2]=a;e=J[d+20>>2];a=J[d+4>>2];if(!((e|0)==(a|0)|a>>>0>2147483646)){J[d+20>>2]=a;e=a}a=J[d>>2];J[f+12>>2]=a;J[f+16>>2]=a;J[f+20>>2]=a+e}if(J[c+180>>2]|!b)break k;a=b;while(1){e=a;a=a+1|0;if(K[e|0])continue;break}a=0;e=e-b|0;t:{if((e|0)<0)break t;d=kc[J[663198]](e+1|0)| +0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break t}a=xc(d,b,e);H[e+a|0]=0}J[c+180>>2]=a}fc=g- -64|0;b=f;break a}a=b?b:21171}d=2;e=0}J[i>>2]=a;b=0;Hc(e,f,g,c,0,8,1549,d,a,0,0,0,38263,i)}fc=i+32|0;return b|0}function y6(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,p=0,q=0;n=fc-16|0;fc=n;g=8;a:{if(e>>>0>100)break a;b:{g=J[a+32>>2];if(!g)break b;l=J[a+40>>2];j=J[a+36>>2]+J[a+28>>2]|0;h=j;while(1){k=K[h+1|0]|K[h|0]<<8;if(!(k>>>0<=b>>>0&(K[h+3|0]|K[h+2|0]<<8)>>>0>=b>>>0)){h=h+8|0;g=g-1|0;if(g)continue; +break b}break}g=8;i=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);i=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);if(i>>>0>l-j>>>0)break a;h=i+j|0;i=h+8|0;if(i>>>0>l>>>0)break b;q=K[h+4|0]|K[h+5|0]<<8|(K[h+6|0]<<16|K[h+7|0]<<24);o=K[h+2|0];p=K[h+3|0];c:{d:{e:{f:{g:{h:{g=K[h|0]|K[h+1|0]<<8;switch(((g<<8|g>>>8)&65535)-1|0){case 1:break g;case 0:break h;case 4:case 18:break d;case 3:break e;case 2:break f;default:break b}}g=i+(b-k<<2)|0;if(l>>>0>>0)break b;b=K[g+4|0]|K[g+5|0]<<8|(K[g+6|0]<<16|K[g+ +7|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);g=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);h=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if((b|0)!=(h|0))break c;break b}if(l>>>0>>0)break b;J[n+12>>2]=h+12;m=K[h+11|0];j=K[h+10|0];i=K[h+9|0];g=K[h+8|0];if(WM(a,n+12|0,l))break b;h=b-k|0;b=m|(i<<16|g<<24|j<<8);h=P(h,b);b=h+b|0;break c}g=i+(b-k<<1)|0;if(l>>>0>>0)break b;b=K[g+3|0]|K[g+2|0]<<8;h=K[g+1|0]|K[g|0]<<8;if((b|0)!=(h|0))break c;break b}g=h+12|0;if(l>>>0>>0|l>>>0>>0)break b; +i=K[h+11|0]|(K[h+9|0]<<16|K[h+8|0]<<24|K[h+10|0]<<8);if(i-1>>>0>=(l-g>>2)-1>>>0)break b;h=0;while(1){if((K[g+1|0]|K[g|0]<<8)==(b|0)){b=K[g+7|0]|K[g+6|0]<<8;h=K[g+3|0]|K[g+2|0]<<8;break c}g=g+4|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break b}if(l>>>0>>0)break b;J[n+12>>2]=h+12;m=K[h+8|0]|K[h+9|0]<<8|(K[h+10|0]<<16|K[h+11|0]<<24);if(WM(a,n+12|0,l))break b;j=J[n+12>>2];g=K[j|0]|K[j+1|0]<<8|(K[j+2|0]<<16|K[j+3|0]<<24);i=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);h=j+4|0;if(i-1>>>0>=l-h>>1>>>0)break b; +j=m<<24|(m&65280)<<8|(m>>>8&65280|m>>>24);g=0;while(1){if((K[h+1|0]|K[h|0]<<8)!=(b|0)){h=h+2|0;g=g+1|0;if((i|0)!=(g|0))continue;break b}break}h=P(g,j);b=j+h|0}if(b>>>0>>0)break b;j=p|o<<8;k=fc-16|0;fc=k;g=6;b=b-h|0;i=(q<<24|(q&65280)<<8|(q>>>8&65280|q>>>24))+h|0;i:{if(!b|M[a+24>>2]>>0)break i;p=J[a+4>>2];g=yd(p,i+J[a+20>>2]|0);if(g)break i;g=Oi(p,b,k+8|0);if(g)break i;i=J[k+8>>2];J[k+12>>2]=i;o=b+i|0;g=7;j:{k:{l:{m:{n:{o:{p:{q:switch(j-1|0){case 0:case 1:case 7:case 16:g=6;if((b|0)<5)break j; +g=J[a+12>>2];I[g>>1]=K[i|0];I[g+2>>1]=K[i+1|0];I[g+4>>1]=H[i+2|0];I[g+6>>1]=H[i+3|0];b=K[i+4|0];I[g+14>>1]=0;I[g+10>>1]=0;I[g+12>>1]=0;I[g+8>>1]=b;H[a+16|0]=1;J[k+12>>2]=i+5;break p;case 18:break j;case 4:break o;case 5:case 6:case 8:case 17:break q;default:break k}g=WM(a,k+12|0,o);if(g)break j}b=1714;g=7;r:switch(j-1|0){case 16:case 17:break j;case 0:case 5:break l;case 8:break m;case 7:break n;case 4:break o;case 1:case 6:break r;default:break k}g=J[a+12>>2];j=L[g>>1];g=L[g+2>>1];i=P(j,g+7>>>3| +0);if(i>>>0<=P(g,j)+7>>>3>>>0)break o;if((i|0)==(o-J[k+12>>2]|0))break l}b=1715;break l}g=0;b=J[k+12>>2]+1|0;if(b>>>0>o>>>0)break j;J[k+12>>2]=b}b=1716}if(!K[a+17|0]){if(K[a+16|0]){j=J[a+12>>2];g=L[j+2>>1];i=J[a+8>>2];m=L[j>>1];J[i>>2]=m;J[i+4>>2]=g;j=3;s:{t:{u:{v:switch(K[a+18|0]-1|0){case 0:H[i+18|0]=1;g=g+7>>>3|0;j=2;break t;case 1:H[i+18|0]=3;g=g+3>>>2|0;j=4;break t;case 3:H[i+18|0]=4;g=g+1>>>1|0;j=16;break t;case 7:H[i+18|0]=2;break u;case 31:break v;default:break s}H[i+18|0]=7;g=g<<2}j=256}I[i+ +16>>1]=j;J[i+8>>2]=g;j=0;if(f)break s;g=P(g,m);if(!g)break s;j=bE(J[J[a>>2]+84>>2],g);if(j)break s;H[a+17|0]=1;j=0}}else j=6;g=j;if(g)break j}g=0;if(f)break j;g=kc[b|0](a,J[k+12>>2],o,c,d,e)|0;break j}g=8}$f(p,k+8|0)}fc=k+16|0;break a}g=e?21:157}fc=n+16|0;return g}function ns(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=fc-16|0;fc=f;g=J[a+100>>2];J[f+8>>2]=0;d=Pi(b,J[a+92>>2]);a:{if(d){b:{c:{d:{e=J[a+80>>2];d=J[d>>2];a=e+(d<<4)|0;switch(J[a+4>>2]-1|0){case 2:break b;case 1:break c;case 0:break d; +default:break a}}b=J[a+12>>2];if(b)kc[J[g+8>>2]](g,b);J[a+12>>2]=0;if(!c|!K[c|0])break a;l=a,m=zk(g,c,f+8|0),J[l+12>>2]=m;break a}a=0;e:{if(!c)break e;g=K[c|0];if(!g)break e;b=0;g=(g|0)==45;c=g+c|0;a=H[c|0];f:{if(!(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1))break f;while(1){if((b|0)>214748362){b=2147483647;break f}b=K[a+254832|0]+P(b,10)|0;a=H[c+1|0];c=c+1|0;if(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1)continue;break}}a=g?0-b|0:b}J[(e+(d<<4)|0)+12>>2]=a;break a}b=0;g:{if(!c)break g;a=H[c|0];g=a&255;if(!g| +!(K[(g>>>3|0)+254800|0]>>>(a&7)&1))break g;while(1){if(b>>>0>429496727){b=-1;break g}b=K[a+254832|0]+P(b,10)|0;a=H[c+1|0];c=c+1|0;if(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1)continue;break}}J[(e+(d<<4)|0)+12>>2]=b;break a}h:{j=a+112|0;e=Pi(b,j);if(!e){e=J[a+100>>2];J[f+12>>2]=0;if(!Pi(b,j)){d=J[a+108>>2];i=f+12|0;d=_c(e,16,d,d+1|0,J[a+104>>2],i);J[a+104>>2]=d;h=J[f+12>>2];if(h)break h;d=d+(J[a+108>>2]<<4)|0;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;k=Yc(b)+1|0;i=_c(e,1,0,k,0,i);J[d>>2]=i;h=J[f+ +12>>2];if(h)break h;xc(i,b,k);J[d+4>>2]=1;J[d+8>>2]=0;h=cE(J[d>>2],J[a+108>>2]+83|0,j,e);if(h)break h;J[a+108>>2]=J[a+108>>2]+1}J[f+8>>2]=0;e=Pi(b,j)}d=J[a+76>>2];if((d|0)==J[a+72>>2]){i:{if(!d){d=_c(g,16,0,1,0,f+8|0);J[a+80>>2]=d;if(!J[f+8>>2])break i;break a}d=_c(g,16,d,d+1|0,J[a+80>>2],f+8|0);J[a+80>>2]=d;if(J[f+8>>2])break a}d=(J[a+72>>2]<<4)+d|0;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[a+72>>2]=J[a+72>>2]+1}h=J[a+80>>2];j=J[a+76>>2];i=h+(j<<4)|0;d=J[e>>2];j:{if(d>>>0>=83){d=(J[a+104>> +2]+(d<<4)|0)-1328|0;break j}d=(d<<4)+252384|0}J[i>>2]=J[d>>2];e=J[d+4>>2];J[i+4>>2]=e;J[i+8>>2]=J[d+8>>2];k:{l:{m:switch(e-1|0){case 0:J[i+12>>2]=0;if(!c|!K[c|0])break k;l=i,m=zk(g,c,f+8|0),J[l+12>>2]=m;if(!J[f+8>>2])break k;break a;case 1:d=0;if(!c)break l;e=K[c|0];if(!e)break l;k=(e|0)==45;e=k+c|0;c=H[e|0];n:{if(!(K[((c&248)>>>3|0)+254800|0]>>>(c&7)&1))break n;while(1){if((d|0)>214748362){d=2147483647;break n}d=K[c+254832|0]+P(d,10)|0;c=H[e+1|0];e=e+1|0;if(K[((c&248)>>>3|0)+254800|0]>>>(c&7)&1)continue; +break}}d=k?0-d|0:d;break l;case 2:break m;default:break k}d=0;if(!c)break l;e=H[c|0];k=e&255;if(!k|!(K[(k>>>3|0)+254800|0]>>>(e&7)&1))break l;while(1){if(d>>>0>429496727){d=-1;break l}d=K[e+254832|0]+P(d,10)|0;e=H[c+1|0];c=c+1|0;if(K[((e&248)>>>3|0)+254800|0]>>>(e&7)&1)continue;break}}J[(h+(j<<4)|0)+12>>2]=d}o:{p:{if(ud(b,241862,7))break p;switch(K[b+7|0]){case 0:case 9:case 10:case 13:case 32:break o;default:break p}}c=cE(J[i>>2],J[a+76>>2],J[a+92>>2],g);J[f+8>>2]=c;if(c)break a}J[a+76>>2]=J[a+76>> +2]+1;q:{if(ud(b,243476,12))break q;r:switch(K[b+12|0]){case 0:case 9:case 10:case 13:case 32:break r;default:break q}J[a+36>>2]=J[(h+(j<<4)|0)+12>>2];break a}s:{if(ud(b,242788,11))break s;t:switch(K[b+11|0]){case 0:case 9:case 10:case 13:case 32:break t;default:break s}J[a+40>>2]=J[(h+(j<<4)|0)+12>>2];break a}u:{if(ud(b,242884,12))break u;v:switch(K[b+12|0]){case 0:case 9:case 10:case 13:case 32:break v;default:break u}J[a+44>>2]=J[(h+(j<<4)|0)+12>>2];break a}if(ud(b,240100,7))break a;w:switch(K[b+ +7|0]){case 0:case 9:case 10:case 13:case 32:break w;default:break a}b=J[(h+(j<<4)|0)+12>>2];if(!b){J[f+8>>2]=3;break a}x:switch(K[b|0]-67|0){case 13:case 45:J[a+28>>2]=8;break a;case 10:case 42:J[a+28>>2]=16;break a;case 0:case 32:break x;default:break a}J[a+28>>2]=32;break a}J[f+8>>2]=h}fc=f+16|0;return J[f+8>>2]}function CXa(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;e=fc-80|0;fc=e;a=eq(a,b,c,d);J[a+232>>2]=0;J[a+236>>2]=0;J[a>>2]=843080;J[a+240>>2]=0;J[a+244>>2]=0;J[a+248>> +2]=0;J[a+252>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;i=a+264|0;J[i>>2]=0;J[i+4>>2]=0;J[a+272>>2]=0;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;b=J[b+24>>2];J[699344]=0;ha(3372,c|0,b|0,e+48|0,0)|0;b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[699344]=0;b=ha(3368,J[e+56>>2],805801,e+32|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(J[b>>2]==4){J[699344]=0;aa(2974,e|0,J[e+40>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]=0;$(3370,e+32|0);b=J[699344];J[699344]= +0;if((b|0)==1)break b;c=K[e+11|0];b=c<<24>>24;b=(b|0)<0;d:{if(((b?J[e+4>>2]:c)|0)!=6)break d;b=b?J[e>>2]:e;if(dd(b,786386,6)){if(dd(b,787186,6))break d;b=5}else b=4;H[a+228|0]=b}J[699344]=0;b=ha(3368,J[e+56>>2],843212,e+32|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(J[b>>2]==6){J[a+8>>2]=J[a+8>>2]|32768;J[699344]=0;J[e+64>>2]=13;b=ha(3449,J[e+40>>2],0,e- -64|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;f=J[b>>2]-3>>>0>=4294967294?J[e+64>>2]==1?+J[e+72>>2]:O[e+72>>3]:f;J[699344]=0; +b=e- -64|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;O[a+232>>3]=f;J[699344]=0;J[e+64>>2]=13;b=ha(3449,J[e+40>>2],1,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+64>>2]==1?+J[e+72>>2]:O[e+72>>3]:f;J[699344]=0;b=e- -64|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;O[a+256>>3]=f;J[699344]=0;J[e+64>>2]=13;b=ha(3449,J[e+40>>2],2,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+64>>2]==1?+J[e+72>> +2]:O[e+72>>3]:f;J[699344]=0;b=e- -64|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;O[a+248>>3]=f;J[699344]=0;J[e+64>>2]=13;b=ha(3449,J[e+40>>2],3,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+64>>2]==1?+J[e+72>>2]:O[e+72>>3]:f;J[699344]=0;$(3370,e- -64|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;O[a+240>>3]=f}J[699344]=0;b=e+32|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;b=ha(3368,J[e+56>>2],840839,b|0,0)|0;c=J[699344]; +J[699344]=0;if((c|0)==1)break b;e:{f:{if(J[b>>2]!=6)break f;J[a+8>>2]=J[a+8>>2]|65536;c=J[e+40>>2];if(J[c+12>>2]<=0)break f;while(1){J[699344]=0;b=ha(3449,c|0,k|0,e+16|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]:f;c=J[a+268>>2];g=J[a+272>>2];g:{if(c>>>0>>0){O[c>>3]=f;J[a+268>>2]=c+8;break g}d=J[i>>2];j=c-d>>3;b=j+1|0;if(b>>>0>=536870912){J[699344]=0;$(2494,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break c}g=g-d| +0;h=g>>2;g=g>>>0>=2147483640?536870911:b>>>0>>0?h:b;h:{if(!g){h=0;break h}if(g>>>0>=536870912){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}J[699344]=0;h=_(4,g<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}b=(j<<3)+h|0;O[b>>3]=f;j=b+8|0;if((c|0)!=(d|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(d|0))continue;break}J[a+272>>2]=(g<<3)+h;J[a+268>>2]=j;J[a+264>>2]=b;if(!d)break g;uc(d)}J[699344]=0;$(3370,e+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;k= +k+1|0;c=J[e+40>>2];if((k|0)>2])continue;break}}J[699344]=0;$(3370,e+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,e+48|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;if(H[e+11|0]<0)uc(J[e>>2]);fc=e+80|0;return a|0}break b}c=Z()|0;break a}B()}c=Z()|0;if(H[e+11|0]>=0)break a;uc(J[e>>2])}b=J[i>>2];if(b){J[a+268>>2]=b;uc(b)}Ch(a);ba(c|0);B()}function ZYa(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=Q(0),s=Q(0),t=0;f=fc-448|0; +fc=f;a:{b:{c:{d:{e:{f:{if(K[a+229|0])break f;rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);m=O[b+392>>3];e=J[a+104>>2];kc[J[J[e>>2]+132>>2]](e,f+444|0)|0;e=J[a+104>>2];kc[J[J[e>>2]+136>>2]](e,837296)|0;J[f+440>>2]=0;J[f+432>>2]=0;J[f+436>>2]=0;J[f+428>>2]=0;J[f+420>>2]=0;J[f+424>>2]=0;J[699344]=0;t=j$(f+256|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;m=m*255;g:{if(R(m)<2147483648){e=~~m;break g}e=-2147483648}o=e<<24;h:{i:{j:{k:{while(1){e=f+8|0;xc(e,J[J[c>>2]+(n<<2)>>2],128);J[699344]=0;zJ(t,e,f+244| +0,0);e=J[699344];J[699344]=0;if((e|0)==1)break k;i=P(J[f+244>>2],255)+32768|0;l=P(J[f+248>>2],255)+32768>>>16|0;p=P(J[f+252>>2],255)+32768>>>16|0;e=J[f+424>>2];h=J[f+428>>2];l:{if(e>>>0>>0){g=p&255|(i&16711680|l<<8&65280)|o;H[e|0]=g;H[e+1|0]=g>>>8;H[e+2|0]=g>>>16;H[e+3|0]=g>>>24;J[f+424>>2]=e+4;break l}m:{n:{k=J[f+420>>2];q=e-k>>2;g=q+1|0;o:{if(g>>>0>=1073741824){J[699344]=0;$(2268,f+420|0);a=J[699344];J[699344]=0;if((a|0)==1)break o;break a}h=h-k|0;j=h>>1;j=h>>>0>=2147483644?1073741823:g>>>0< +j>>>0?j:g;if(!j){h=0;break m}if(j>>>0<1073741824)break n;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a}e=Z()|0;break b}J[699344]=0;h=_(4,j<<2)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j}g=(q<<2)+h|0;i=p&255|(i&16711680|l<<8&65280)|o;H[g|0]=i;H[g+1|0]=i>>>8;H[g+2|0]=i>>>16;H[g+3|0]=i>>>24;l=g+4|0;if((e|0)!=(k|0)){while(1){g=g-4|0;e=e-4|0;i=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[g|0]=i;H[g+1|0]=i>>>8;H[g+2|0]=i>>>16;H[g+3|0]=i>>>24;if((e|0)!=(k|0))continue;break}e=J[f+ +420>>2]}J[f+428>>2]=(j<<2)+h;J[f+424>>2]=l;J[f+420>>2]=g;if(!e)break l;uc(e)}e=J[d>>2]+(n<<3)|0;r=Q(+N[e+4>>2]/72*25.4);s=Q(+N[e>>2]/72*25.4);e=J[f+436>>2];h=J[f+440>>2];p:{if(e>>>0>>0){N[e+4>>2]=r;N[e>>2]=s;J[f+436>>2]=e+8;break p}q:{r:{k=J[f+432>>2];i=e-k>>3;g=i+1|0;s:{if(g>>>0>=536870912){J[699344]=0;$(2267,f+432|0);break s}h=h-k|0;j=h>>2;j=h>>>0>=2147483640?536870911:g>>>0>>0?j:g;if(!j){h=0;break q}if(j>>>0<536870912)break r;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a; +e=Z()|0;break b}J[699344]=0;h=_(4,j<<3)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i}g=(i<<3)+h|0;N[g+4>>2]=r;N[g>>2]=s;i=g+8|0;if((e|0)!=(k|0)){while(1){e=e-8|0;l=J[e+4>>2];g=g-8|0;J[g>>2]=J[e>>2];J[g+4>>2]=l;if((e|0)!=(k|0))continue;break}e=J[f+432>>2]}J[f+440>>2]=(j<<3)+h;J[f+436>>2]=i;J[f+432>>2]=g;if(!e)break p;uc(e)}n=n+1|0;if((n|0)!=3)continue;break}J[699344]=0;J[f+252>>2]=0;J[f+244>>2]=0;J[f+248>>2]=0;gb(3404,f+8|0,f+432|0,f+420|0,f+244|0,0,Q(Q(0)),Q(Q(1)));c=J[699344];J[699344]=0;if((c| +0)==1)break e;c=J[f+244>>2];if(c){J[f+248>>2]=c;uc(c)}c=J[a+104>>2];d=J[J[c>>2]+456>>2];J[699344]=0;da(d|0,c|0,f+8|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[a+104>>2];d=J[J[c>>2]+348>>2];J[699344]=0;aa(d|0,c|0,837256)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[699344]=0;$(3399,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h;break c}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;break b}b=J[a+104>>2];J[f+244>>2]=4;c=J[J[b>>2]+312>>2];J[699344]=0;aa(c|0,b|0,f+244|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break c;a=J[a+104>>2];b=J[J[a>>2]+136>>2];J[699344]=0;aa(b|0,a|0,f+444|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;Se(f+88|0);a=J[f+420>>2];if(a){J[f+424>>2]=a;uc(a)}a=J[f+432>>2];if(!a)break f;J[f+436>>2]=a;uc(a)}fc=f+448|0;return 1}e=Z()|0;a=J[f+244>>2];if(!a)break b;J[f+248>>2]=a;uc(a);break b}e=Z()|0;break b}e=Z()|0;Se(f+88|0)}a=J[f+420>>2];if(a){J[f+424>>2]=a;uc(a)}a=J[f+432>>2];if(a){J[f+436>>2]=a;uc(a)}ba(e|0);B()}B()}function z7a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0, +i=0,j=0,k=0,l=0;if(J[a+36>>2]>0){l=J[a+468>>2];i=J[a+216>>2];while(1){d=b;h=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{g=J[i+36>>2];c=J[i+40>>2]+(g<<8)|0;if((c|0)<=2051){if((c|0)<=1025){K:switch(c-513|0){case 3:break i;case 0:break p;case 1:break J;case 2:break e;default:break K}b=352;e=0;L:switch(c-257|0){case 1:break h;case 0:break a;default:break L}switch(c-771|0){case 3:break j;case 0:break I;default:break e}}if((c|0)<=1538){M:switch(c- +1026|0){case 6:break k;case 0:break q;case 2:break H;case 1:case 3:case 4:case 5:break e;default:break M}switch(c-1285|0){case 5:break l;case 0:break G;default:break e}}N:switch(c-1539|0){case 9:break m;case 0:break r;case 3:break F;case 1:case 2:case 4:case 5:case 6:case 7:case 8:break e;default:break N}switch(c-1799|0){case 7:break n;case 0:break E;default:break e}}if((c|0)<=3077){if((c|0)<=2564)switch(c-2052|0){case 12:break o;case 0:break s;case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:break e; +case 4:break g;default:break f}switch(c-2565|0){case 0:break t;case 5:break D;case 1:case 2:case 3:case 4:break e;default:break C}}if((c|0)<=3590)switch(c-3078|0){case 0:break u;case 6:break B;case 1:case 2:case 3:case 4:case 5:break e;default:break A}O:switch(c-3591|0){case 0:break v;case 7:break z;case 1:case 2:case 3:case 4:case 5:case 6:break e;default:break O}switch(c-4104|0){case 0:break w;case 8:break x;case 1:case 2:case 3:case 4:case 5:case 6:case 7:break e;default:break y}}b=353;e=0;break a}b= +354;break a}b=355;e=0;break a}b=356;e=0;break a}b=357;e=0;break a}b=358;e=0;break a}b=359;e=0;break a}if((c|0)!=2827)break e;b=360;e=0;break a}b=361;e=0;break a}if((c|0)!=3341)break e;b=362;e=0;break a}b=363;e=0;break a}if((c|0)!=3855)break e;b=364;e=0;break a}b=365;e=0;break a}b=366;e=0;break a}b=367;e=0;break a}b=368;e=0;break a}b=369;e=0;break a}b=370;e=0;break a}b=371;e=0;break a}b=372;e=0;break a}b=373;e=0;break a}b=374;e=0;break a}b=375;e=0;break a}b=376;e=0;break a}b=377;e=0;break a}b=378; +e=0;break a}b=379;break a}b=380;e=0;break a}b=381;break a}e=J[a+72>>2];if(e>>>0<3)break d;b=J[a>>2];J[b+20>>2]=49;kc[J[b>>2]](a);break c}if((c|0)==2313)break b}b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=7;J[J[a>>2]+28>>2]=J[i+40>>2];kc[J[J[a>>2]>>2]](a);break c}b=J[(e<<2)+55056>>2];break a}b=d;e=h;break a}b=382;e=0}d=(k<<2)+l|0;J[d+4>>2]=b;P:{if(!J[i+52>>2]|J[d+44>>2]==(e|0))break P;h=J[i+80>>2];if(!h)break P;J[d+44>>2]=e;Q:switch(e|0){case 0:c=J[i+84>>2];d=0;while(1){J[c+(d<<2)>>2]=L[h+(d<<1)>>1];g=d|1;J[c+ +(g<<2)>>2]=L[h+(g<<1)>>1];g=d|2;J[c+(g<<2)>>2]=L[h+(g<<1)>>1];g=d|3;J[c+(g<<2)>>2]=L[h+(g<<1)>>1];d=d+4|0;if((d|0)!=64)continue;break}break P;case 1:c=J[i+84>>2];d=0;while(1){g=d<<1;J[c+(d<<2)>>2]=P(I[g+54864>>1],L[h+g>>1])+2048>>12;f=d|1;g=f<<1;J[c+(f<<2)>>2]=P(I[g+54864>>1],L[h+g>>1])+2048>>12;d=d+2|0;if((d|0)!=64)continue;break}break P;case 2:c=J[i+84>>2];g=0;d=0;while(1){j=O[(g<<3)+54992>>3];N[c+(d<<2)>>2]=j*+L[h+(d<<1)>>1]*.125;f=d|1;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.387039845*.125;f=d|2;N[c+ +(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.306562965*.125;f=d|3;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*1.175875602*.125;f=d|4;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.125;f=d|5;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.785694958*.125;f=d|6;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.5411961*.125;f=d|7;N[c+(f<<2)>>2]=j*+L[h+(f<<1)>>1]*.275899379*.125;d=d+8|0;g=g+1|0;if((g|0)!=8)continue;break}break P;default:break Q}d=J[a>>2];J[d+20>>2]=49;kc[J[d>>2]](a)}i=i+88|0;k=k+1|0;if((k|0)>2])continue;break}}}function sub(a,b,c,d,e){a=a|0;b= +b|0;c=c|0;d=d|0;e=e|0;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;a:{b:{c:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;d:{if(c>>>0<2)break d;h=d;while(1){f=K[h+1|0];h=h+1|0;if(f)continue;break}h=(h-d|0)>(c|0)?c+d|0:h;g=h-d|0;j=(g^-1)+c|0;f=(c|0)!=(g|0)?j:0;if(f-1>>>0<=2)break b;k=g-1|0;if(!f){j=0;break d}g=K[h+1|0]?8:4;g=K[h+2|0]?g+4|0:g;l=K[h+3|0]?g+17|0:g;if(K[h+4|0]){if(!(f-l&3))break d;break b}f=(f|0)==(l|0);l=j;if(f)break d;break b}e:{f:{g:{if(!c)break g; +g=K[d|0];f=0;h:{if(!g)break h;f=g;if(!K[a+264|0])break h;f=1;if(g>>>0>5)break h;g=g<<3;f=g&31;if((g&63)>>>0>=32)f=513>>>f|0;else f=((1<>>f}m=f;if(!j)break g;n=K[h+2|0];o=K[h+1|0];if(o){f=K[h+5|0]|K[h+6|0]<<8|(K[h+7|0]<<16|K[h+8|0]<<24);q=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=h+9|0}else f=h+5|0;g=K[h+3|0];if(n){i=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);r=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);f=f+4|0}if(g&255)break f}g=0;f=0;break e}i=K[f+13|0]|K[f+14|0]<<8|(K[f+ +15|0]<<16|K[f+16|0]<<24);s=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=K[f+9|0]|K[f+10|0]<<8|(K[f+11|0]<<16|K[f+12|0]<<24);t=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=K[f+5|0]|K[f+6|0]<<8|(K[f+7|0]<<16|K[f+8|0]<<24);u=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);i=K[f+1|0]|K[f+2|0]<<8|(K[f+3|0]<<16|K[f+4|0]<<24);v=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);f=K[f|0]}i:{m=m&255;g=g&255;i=f&255;j:{if(K[a+114|0]){f=kc[J[a+152>>2]](64)|0;if(!f){Jc(a,1,0,0);g=1;break j}J[f+4>>2]=1052;J[f>>2]=1053;p=J[a+700>>2];k:{if(p){J[p+ +8>>2]=f;break k}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=p;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+60>>2]=s;J[f+56>>2]=t;J[f+52>>2]=u;J[f+48>>2]=v;H[f+45|0]=i;H[f+44|0]=g;J[f+40>>2]=r;H[f+36|0]=n;J[f+32>>2]=q;H[f+29|0]=o;H[f+28|0]=m}g=eaa(a,m,o,q,n,r,g,i,v,u,t,s)}l:{if(g)break l;if(!K[a+112|0])return 0;g=kc[J[b+4>>2]](a,b,e)|0;if(g)break l;f=J[e>>2];b=!c;H[f+32|0]=b;if(b)return 0;b=K[d|0];c=b;m:{if(!K[a+ +264|0])break m;c=1;if(b>>>0>5)break m;c=b<<3;b=c&31;if((c&63)>>>0>=32)c=513>>>b|0;else c=((1<>>b}J[f+36>>2]=k;H[f+33|0]=c;if(k){b=kc[J[a+152>>2]](k+1|0)|0;J[J[e>>2]+40>>2]=b;b=J[J[e>>2]+40>>2];if(!b)break a;xc(b,d+1|0,k)}if(!j)return 0;b=J[e>>2];c=K[h+1|0];H[b+44|0]=c;d=K[h+2|0];H[b+45|0]=d;f=K[h+3|0];H[b+46|0]=f;g=K[h+4|0];H[b+47|0]=g;if(c){c=K[h+5|0]|K[h+6|0]<<8|(K[h+7|0]<<16|K[h+8|0]<<24);J[b+48>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=h+9|0}else c=h+5|0;if(d){d= +K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+52>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c=c+4|0}if(f){H[b+56|0]=K[c|0];d=K[c+1|0]|K[c+2|0]<<8|(K[c+3|0]<<16|K[c+4|0]<<24);J[b+60>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=K[c+5|0]|K[c+6|0]<<8|(K[c+7|0]<<16|K[c+8|0]<<24);J[b+64>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=K[c+9|0]|K[c+10|0]<<8|(K[c+11|0]<<16|K[c+12|0]<<24);J[b+68>>2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=K[c+13|0]|K[c+14|0]<<8|(K[c+15|0]<<16|K[c+16|0]<<24);J[b+72>> +2]=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c=c+17|0}if(!g)return 0;d=b;b=j-l|0;J[d+76>>2]=b>>>2;g=0;if(b>>>0<4)break l;b=kc[J[a+152>>2]](b&-4)|0;J[J[e>>2]+80>>2]=b;e=J[e>>2];d=J[e+80>>2];if(!d)break i;if(!J[e+76>>2])break l;b=0;while(1){a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[d>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=c+4|0;d=d+4|0;b=b+1|0;if(b>>>0>2])continue;break}}return g|0}break a}Jc(a,1029,0,0);return 1029}Jc(a,1028,0,0);return 1028}Jc(a,1,0,0);return 1}function nK(a, +b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;j=fc-80|0;fc=j;H[h|0]=0;H[i|0]=0;b=J[b+24>>2];J[j+64>>2]=13;k=j- -64|0;a:{if(J[wl(b,J[e+8>>2],J[e+12>>2],k,0)>>2]!=7){yc(k);J[a>>2]=0;H[a+11|0]=0;break a}k=J[e+12>>2];e=J[e+8>>2];J[j+56>>2]=e;J[j+60>>2]=k;J[j+8>>2]=e;J[j+12>>2]=k;e=u$(b,808021,j+8|0,J[j+72>>2]);yc(j- -64|0);if(!e){J[a>>2]=0;H[a+11|0]=0;break a}k=j+44|0;W0(k,J[e+16>>2]);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;b:{c:{d:{e:{if(J[e+32>>2]<0)if(!aC(k))break e; +J[j+40>>2]=0;J[j+32>>2]=0;J[j+36>>2]=0;J[699344]=0;g=b;b=j+32|0;la(3392,g|0,c|0,d|0,e|0,a|0,b|0);c=J[699344];J[699344]=0;f:{if((c|0)==1)break f;J[699344]=0;d=b;b=H[j+43|0];c=(b|0)<0;ia(1626,j+20|0,(c?J[j+32>>2]:d)|0,(c?J[j+36>>2]:b&255)|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break d;if(H[f+11|0]<0)uc(J[f>>2]);b=J[j+24>>2];J[f>>2]=J[j+20>>2];J[f+4>>2]=b;J[f+8>>2]=J[j+28>>2];J[699344]=0;ca(3367,j+32|0,h|0,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;if(!K[h|0])H[h|0]=J[e+24>>2]>>>18&1;if(!K[i| +0])H[i|0]=K[e+24|0]>>>6&1;if(H[j+43|0]>=0)break b;uc(J[j+32>>2]);break b}break d}g:{h:{i:{j:{k:{if(H[j+55|0]>=0){J[j+40>>2]=J[j+52>>2];d=J[j+48>>2];J[j+32>>2]=J[j+44>>2];J[j+36>>2]=d;break k}J[699344]=0;ca(15,j+32|0,J[j+44>>2],J[j+48>>2]);d=J[699344];J[699344]=0;if((d|0)==1)break j}J[699344]=0;b=ha(3375,b|0,c|0,e|0,j+32|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;if(!b)break h;c=K[b+23|0];if(!(c<<24>>24<0?J[b+16>>2]:c))break h;c=K[j+55|0];if((c<<24>>24<0?J[j+48>>2]:c)>>>0<8)break i;J[699344]= +0;c=j+44|0;d=aa(3358,c|0,6)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;if(J[d>>2]!=43)break i;J[699344]=0;d=aa(3358,c|0,0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;if(J[d>>2]-65>>>0>=26)break i;J[699344]=0;d=aa(3358,c|0,1)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;if(J[d>>2]-65>>>0>25)break i;J[699344]=0;d=aa(3358,c|0,2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;if(J[d>>2]-65>>>0>25)break i;J[699344]=0;d=aa(3358,c|0,3)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;if(J[d>>2]-65>>> +0>25)break i;J[699344]=0;d=aa(3358,c|0,4)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;if(J[d>>2]-65>>>0>25)break i;J[699344]=0;d=aa(3358,c|0,5)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;if(J[d>>2]-65>>>0>25)break i;J[699344]=0;ga(3468,c|0,0,7)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break i;break g}e=Z()|0;break c}c=b+12|0;l:{if((c|0)==(a|0))break l;k=K[b+23|0];d=k<<24>>24;if(H[a+11|0]>=0){if((d|0)>=0){d=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=d;J[a+8>>2]=J[c+8>>2];break l}c=J[b+16>>2];d=J[b+12>> +2];J[699344]=0;ga(1631,a|0,d|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break l;break g}m=J[b+12>>2];n=J[b+16>>2];J[699344]=0;l=c;c=(d|0)<0;ga(1630,a|0,(c?m:l)|0,(c?n:k)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g}J[699344]=0;c=H[j+55|0];d=(c|0)<0;ia(1626,j+20|0,(d?J[j+44>>2]:j+44|0)|0,(d?J[j+48>>2]:c&255)|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break g;if(H[f+11|0]<0)uc(J[f>>2]);c=J[j+24>>2];J[f>>2]=J[j+20>>2];J[f+4>>2]=c;J[f+8>>2]=J[j+28>>2];d=J[b>>2];f=J[b+4>>2];c=K[b+11|0];J[699344]=0; +l=d;d=c<<24>>24<0;ia(1626,j+20|0,(d?l:b)|0,(d?f:c)|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break g;if(H[g+11|0]<0)uc(J[g>>2]);a=J[j+24>>2];J[g>>2]=J[j+20>>2];J[g+4>>2]=a;J[g+8>>2]=J[j+28>>2];H[h|0]=J[b+40>>2]!=0;H[i|0]=J[b+44>>2]!=0}if(H[j+43|0]>=0)break b;uc(J[j+32>>2]);break b}e=Z()|0;if(H[j+43|0]>=0)break c;uc(J[j+32>>2]);break c}e=Z()|0;if(H[j+43|0]>=0)break c;uc(J[j+32>>2])}if(H[a+11|0]<0)uc(J[a>>2]);if(H[j+55|0]<0)uc(J[j+44>>2]);ba(e|0);B()}kc[J[J[e>>2]+4>>2]](e);if(H[j+55|0]>=0)break a;uc(J[j+ +44>>2])}fc=j+80|0}function b_(a,b,c,d,e,f,g,h,i,j){var 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,G=0,K=0,L=0,M=0;s=fc-16|0;fc=s;a:{if(J[a+160>>2]){b=J[a+200>>2];if(!b){O[a+176>>3]=d;O[a+168>>3]=c}J[a+200>>2]=b+h;O[a+192>>3]=d+f;O[a+184>>3]=c+e;break a}if(!(!(J[a+148>>2]?J[a+32>>2]:0)&(!J[a+36>>2]|!J[a+152>>2]))){J[a+128>>2]=J[a+128>>2]+h;break a}m=O[b+552>>3];n=O[a+64>>3];q=O[b+16>>3];u=O[b+504>>3];if((g|0)==32)m=m+O[b+560>>3];b:{r=n;n=e;e=m*O[b+568>> +3];m=n-(u*e+O[b+520>>3]*0);n=O[b+32>>3];f=f-(O[b+512>>3]*e+O[b+528>>3]*0);e=q*m+n*f;z=q*c+n*d+O[b+48>>3];c:{if(r>e+z)break c;n=O[a+112>>3];if(n-O[a+72>>3]>3];r=q*m;m=O[b+40>>3];f=r+f*m;A=O[b+56>>3]+(q*c+m*d);if(O[a+80>>3]>f+A)break c;c=O[a+120>>3];if(cn)break c;if(!(c-O[a+88>>3]>2]=J[a+128>>2]+h;break a}g=0;d:{if(!(R(f)<3)|(J[J[693464]+212>>2]|!(R(e)<3)))break d;k=J[a+156>>2];J[a+156>>2]=k+1;if((k|0)<5E4)break d;J[a+128>>2]=J[a+128>>2]+h;break a}e:{f:{if((j| +0)<=0)break f;g:{while(1){k=J[(g<<2)+i>>2];if(!((k|0)==9|(k|0)==160)&(k|0)!=32)break g;g=g+1|0;if((j|0)!=(g|0))continue;break}g=j}k=(j|0)<=0;if(!k&(g|0)==(j|0))break e;if(k)break f;g=0;while(1){l=J[a+104>>2];t=l-g|0;k=J[a+100>>2];if(!((l|0)>19999|(t|0)>7)){l=l<<1;J[a+104>>2]=l;k=Wd(k,l,4);J[a+100>>2]=k;t=J[a+104>>2]-g|0}l=J[a+96>>2];w=(g<<2)+k|0;p=J[(o<<2)+i>>2];h:{i:{if(p>>>0<=255){k=J[l+(p<<2)>>2];if((k|0)!=-1)break i}k=J[l+1028>>2];if((k|0)>0){x=J[l+1024>>2];v=-1;while(1){j:{l=(k+v|0)/2|0;y=J[x+ +P(l,40)>>2];if(y>>>0

      >>0){v=l;break j}if(p>>>0>>0){k=l;break j}k=0;k:{if((t|0)<=0)break k;l=x+P(l,40)|0;if(J[l+36>>2]<=0)break k;while(1){p=k<<2;J[p+w>>2]=J[(l+p|0)+4>>2];k=k+1|0;if((t|0)<=(k|0))break k;if(J[l+36>>2]>(k|0))continue;break}}break h}if((k-v|0)>1)continue;break}}k=p}J[w>>2]=k;k=1}g=g+k|0;o=o+1|0;if((o|0)!=(j|0))continue;break}p=1;if((g|0)<=0)break f;l:{if((g|0)==1)break l;j=0;while(1){i=Lk(J[J[a+100>>2]+(j<<2)>>2]);p=!i;if(!i)break l;j=j+1|0;if((j|0)!=(g|0))continue;break}}k=b+400| +0;v=b+252|0;l=b+392|0;w=b+124|0;c=+(g|0);u=f/c;B=e/c;c=O[a+136>>3];i=J[a+132>>2];n=c*O[i+32>>3];q=O[i+24>>3]*c;i=0;while(1){d=+(i|0);c=d*u+A;d=d*B+z;m:{n:switch(J[a+144>>2]-1|0){default:m=c-q;e=B+d;c=c-n;break m;case 0:e=q+d;d=n+d;m=c;c=u+c;break m;case 1:m=n+c;e=d;d=B+d;c=q+c;break m;case 2:break n}m=u+c;e=d-n;d=d-q}t=0;if(J[a+28>>2]|J[a+44>>2]){f=(e+d)*.5;r=(m+c)*.5;t=f>3]|r>3]|f>O[b+648>>3]|r>O[b+656>>3]}j=J[b+420>>2];o:{if((J[b+592>>2]&3)==1){o=J[b+120>>2];kc[J[J[o>>2]+20>>2]](o, +v,s+4|0,j);j=k;break o}o=J[b+116>>2];kc[J[J[o>>2]+20>>2]](o,w,s+4|0,j);j=l}o=J[a+204>>2];r=O[j>>3];j=vc(96);x=J[J[a+100>>2]+((p?i:(i^-1)+g|0)<<2)>>2];C=O[a+136>>3];y=J[a+132>>2];D=J[a+152>>2];E=J[a+144>>2];F=J[b+592>>2];G=J[a+128>>2];K=J[s+4>>2];L=J[s+8>>2];M=J[s+12>>2];O[j+40>>3]=c;O[j+32>>3]=e;O[j+24>>3]=m;O[j+16>>3]=d;J[j+8>>2]=h;J[j+4>>2]=G;J[j>>2]=x;p:{if(!(d>e)){f=e;e=d;break p}O[j+32>>3]=d;O[j+16>>3]=e;f=d}q:{if(!(c>3]=m;O[j+24>>3]=c;d=m}if(e<-1E8){J[j+16>>2]=0; +J[j+20>>2]=-1047013500}if(f>1E8){J[j+32>>2]=0;J[j+36>>2]=1100470148}if(c<-1E8){J[j+24>>2]=0;J[j+28>>2]=-1047013500}if(d>1E8){J[j+40>>2]=0;J[j+44>>2]=1100470148}H[j+91|0]=(F|0)==3|r<.001;H[j+90|0]=t;H[j+89|0]=D;H[j+88|0]=E;I[j+92>>1]=0;O[j+80>>3]=+(M|0)*1.52587890625E-5;O[j+72>>3]=+(L|0)*1.52587890625E-5;O[j+64>>3]=+(K|0)*1.52587890625E-5;O[j+56>>3]=C;J[j+48>>2]=y;sd(o,j);i=i+1|0;if((i|0)!=(g|0))continue;break}}J[a+128>>2]=J[a+128>>2]+h;break a}J[a+128>>2]=J[a+128>>2]+h;a=J[a+204>>2];b=J[a+8>>2];if((b| +0)<=0)break a;H[J[(J[a>>2]+(b<<2)|0)-4>>2]+92|0]=1}fc=s+16|0}function Wl(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,Q=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=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;r=J[a+20>>2];G=J[a+28>>2]-r>>3;D=J[a+8>>2];while(1){V=J[r+12>>2];E=I[r+8>>1];a=I[r+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){o=J[c>>2];break a}o=J[c>>2];f=e;e=a+ +255&130816;if((f|0)==(e|0))break a;if(o)uc(o);J[c+4>>2]=e;o=vc(e<<2);J[c>>2]=o}y=o;e=J[d+4>>2];f=J[e>>2];W=O[f+32>>3];X=O[f>>3];da=O[f+16>>3];Y=O[f+40>>3];Z=O[f+8>>3];z=O[d+16>>3];s=O[f+24>>3];i=O[d+24>>3];p=a;m=(a|0)<=1?1:a;J[e+24>>2]=m;J[e+4>>2]=m;L=z+ +(E|0);z=s;s=i+ +(D|0);_=z*s;i=(Y+(Z*L+_))*256;i=i+(i<0?-.5:.5);b:{if(R(i)<2147483648){g=~~i;break b}g=-2147483648}J[e+40>>2]=g;z=s*da;i=(W+(L*X+z))*256;i=i+(i<0?-.5:.5);c:{if(R(i)<2147483648){f=~~i;break c}f=-2147483648}J[e+20>>2]=f;s=L+ +(p>>>0); +i=(Y+(s*Z+_))*256;i=i+(i<0?-.5:.5);d:{if(R(i)<2147483648){h=~~i;break d}h=-2147483648}h=h-g|0;g=(h|0)/(m|0)|0;A=h-P(g,m)|0;j=(A|0)<=0;J[e+28>>2]=g-j;i=(W+(s*X+z))*256;i=i+(i<0?-.5:.5);e:{if(R(i)<2147483648){g=~~i;break e}g=-2147483648}g=g-f|0;f=(g|0)/(m|0)|0;t=f;h=g-P(f,m)|0;f=(h|0)<=0;J[e+8>>2]=t-f;g=A+(j?p:0)|0;J[e+32>>2]=g;f=h+(f?p:0)|0;J[e+12>>2]=f;J[e+36>>2]=g-p;J[e+16>>2]=f-p;f=J[d+8>>2];e=J[f+8>>2];$=e<<8;n=J[d>>2];l=J[J[n>>2]>>2];B=J[l+12>>2];M=B-1|0;ea=J[d+36>>2]-(P(e,J[d+44>>2])>>1)|0;e= +P(e,J[d+40>>2]);fa=J[d+32>>2]-(e>>1)|0;ga=e+255>>8;k=J[d+4>>2];u=J[k+36>>2];v=J[k+16>>2];w=J[k+40>>2];x=J[k+20>>2];ha=J[k+28>>2];ia=J[k+32>>2];ja=J[k+8>>2];ka=J[k+12>>2];aa=J[d+48>>2];ba=J[d+52>>2];ca=J[f+16>>2];while(1){f=w+ea|0;h=f>>8;J[n+12>>2]=h;e=x+fa|0;j=e>>8;J[n+4>>2]=j;J[n+8>>2]=j;A=P((e^-1)&255,aa);m=P((f^-1)&255,ba);f:{g:{if((h|0)<0){e=J[l+8>>2];break g}e=J[l+8>>2];if((j|0)<0|(h|0)>=(B|0)|j+ga>>>0>e>>>0)break g;N=j<<2;f=N+(J[l+4>>2]+P(J[l+16>>2],h)|0)|0;J[n+16>>2]=f;t=j;e=f;break f}f=0; +J[n+16>>2]=0;N=j<<2;g=(h|0)>0?h:0;t=(j|0)>0?j:0;e=(J[l+4>>2]+P(J[l+16>>2],(g|0)<(B|0)?g:M)|0)+(((e|0)>(t|0)?t:e-1|0)<<2)|0}A=A>>8;F=m>>8;C=0;Q=8192;S=8192;T=8192;U=8192;while(1){g=(h|0)>0?h:0;la=(g|0)<(B|0)?g:M;ma=I[(F<<1)+ca>>1];m=j;g=A;while(1){q=P(I[(g<<1)+ca>>1],ma)- -8192>>14;C=q+C|0;U=P(q,K[e+3|0])+U|0;T=P(q,K[e+2|0])+T|0;S=P(q,K[e+1|0])+S|0;Q=P(q,K[e|0])+Q|0;g=g+aa|0;if((g|0)<($|0)){if(f){f=f+4|0;J[n+16>>2]=f;e=f}else{m=m+1|0;J[n+4>>2]=m;f=0;q=(m|0)>0?m:0;e=J[l+8>>2];e=(J[l+4>>2]+P(J[l+16>> +2],la)|0)+(((e|0)>(q|0)?q:e-1|0)<<2)|0}continue}break}F=F+ba|0;if(($|0)>(F|0)){J[n+4>>2]=j;g=h+1|0;J[n+12>>2]=g;if(!(!f|(h|0)<-1|(g|0)>=(B|0))){f=(J[l+4>>2]+P(g,J[l+16>>2])|0)+N|0;J[n+16>>2]=f;h=g;e=f;continue}f=0;e=(g|0)>0?g:0;h=J[l+4>>2]+P(J[l+16>>2],(e|0)<(B|0)?e:M)|0;e=J[l+8>>2];e=h+(((e|0)>(t|0)?t:e-1|0)<<2)|0;J[n+16>>2]=0;h=g;continue}break}e=(U|0)/(C|0)|0;e=(e|0)>0?e:0;H[y+3|0]=e>>>0>=255?255:e;e=(Q|0)/(C|0)|0;e=(e|0)>0?e:0;H[y+2|0]=e>>>0>=255?255:e;e=(S|0)/(C|0)|0;e=(e|0)>0?e:0;H[y+1|0]=e>>> +0>=255?255:e;e=(T|0)/(C|0)|0;e=(e|0)>0?e:0;H[y|0]=e>>>0>=255?255:e;x=x+ja|0;J[k+20>>2]=x;v=v+ka|0;J[k+16>>2]=v;if((v|0)>0){x=x+1|0;J[k+20>>2]=x;v=v-J[k+4>>2]|0;J[k+16>>2]=v}w=w+ha|0;J[k+40>>2]=w;u=u+ia|0;J[k+36>>2]=u;if((u|0)>0){w=w+1|0;J[k+40>>2]=w;u=u-J[k+24>>2]|0;J[k+36>>2]=u}y=y+4|0;p=p-1|0;if(p)continue;break}h:{if(J[b+16>>2]<(D|0)|J[b+8>>2]>(D|0))break h;f=I[r+10>>1]<0;h=f?0:V;g=K[V|0];e=J[b+4>>2];i:{if((E|0)>=(e|0)){e=E;break i}j=e-E|0;a=a-j|0;if((a|0)<=0)break h;h=f?0:h+j|0;o=(j<<2)+o|0}j= +J[b>>2];f=J[b+12>>2];if((f|0)<(a+e|0)){a=f-e|0;if((a|0)<0)break h;a=a+1|0}_k(j,e,D,a,o,h,g)}r=r+8|0;G=G-1|0;if(G)continue;break}}function Vl(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,Q=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=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;r=J[a+20>>2];G=J[a+28>>2]-r>>3;D=J[a+8>>2];while(1){V=J[r+12>>2];E=I[r+8>>1];a=I[r+10>>1];e=a>>31;a=(a^e)-e|0; +e=J[c+4>>2];a:{if(a>>>0<=e>>>0){o=J[c>>2];break a}o=J[c>>2];f=e;e=a+255&130816;if((f|0)==(e|0))break a;if(o)uc(o);J[c+4>>2]=e;o=vc(e<<2);J[c>>2]=o}y=o;e=J[d+4>>2];f=J[e>>2];W=O[f+32>>3];X=O[f>>3];da=O[f+16>>3];Y=O[f+40>>3];Z=O[f+8>>3];z=O[d+16>>3];s=O[f+24>>3];i=O[d+24>>3];p=a;m=(a|0)<=1?1:a;J[e+24>>2]=m;J[e+4>>2]=m;L=z+ +(E|0);z=s;s=i+ +(D|0);_=z*s;i=(Y+(Z*L+_))*256;i=i+(i<0?-.5:.5);b:{if(R(i)<2147483648){g=~~i;break b}g=-2147483648}J[e+40>>2]=g;z=s*da;i=(W+(L*X+z))*256;i=i+(i<0?-.5:.5);c:{if(R(i)< +2147483648){f=~~i;break c}f=-2147483648}J[e+20>>2]=f;s=L+ +(p>>>0);i=(Y+(s*Z+_))*256;i=i+(i<0?-.5:.5);d:{if(R(i)<2147483648){h=~~i;break d}h=-2147483648}h=h-g|0;g=(h|0)/(m|0)|0;A=h-P(g,m)|0;j=(A|0)<=0;J[e+28>>2]=g-j;i=(W+(s*X+z))*256;i=i+(i<0?-.5:.5);e:{if(R(i)<2147483648){g=~~i;break e}g=-2147483648}g=g-f|0;f=(g|0)/(m|0)|0;t=f;h=g-P(f,m)|0;f=(h|0)<=0;J[e+8>>2]=t-f;g=A+(j?p:0)|0;J[e+32>>2]=g;f=h+(f?p:0)|0;J[e+12>>2]=f;J[e+36>>2]=g-p;J[e+16>>2]=f-p;f=J[d+8>>2];e=J[f+8>>2];$=e<<8;n=J[d>>2];l=J[J[n>> +2]>>2];B=J[l+12>>2];M=B-1|0;ea=J[d+36>>2]-(P(e,J[d+44>>2])>>1)|0;e=P(e,J[d+40>>2]);fa=J[d+32>>2]-(e>>1)|0;ga=e+255>>8;k=J[d+4>>2];u=J[k+36>>2];v=J[k+16>>2];w=J[k+40>>2];x=J[k+20>>2];ha=J[k+28>>2];ia=J[k+32>>2];ja=J[k+8>>2];ka=J[k+12>>2];aa=J[d+48>>2];ba=J[d+52>>2];ca=J[f+16>>2];while(1){f=w+ea|0;h=f>>8;J[n+12>>2]=h;e=x+fa|0;j=e>>8;J[n+4>>2]=j;J[n+8>>2]=j;A=P((e^-1)&255,aa);m=P((f^-1)&255,ba);f:{g:{if((h|0)<0){e=J[l+8>>2];break g}e=J[l+8>>2];if((j|0)<0|(h|0)>=(B|0)|j+ga>>>0>e>>>0)break g;N=j<<2;f= +N+(J[l+4>>2]+P(J[l+16>>2],h)|0)|0;J[n+16>>2]=f;t=j;e=f;break f}f=0;J[n+16>>2]=0;N=j<<2;g=(h|0)>0?h:0;t=(j|0)>0?j:0;e=(J[l+4>>2]+P(J[l+16>>2],(g|0)<(B|0)?g:M)|0)+(((e|0)>(t|0)?t:e-1|0)<<2)|0}A=A>>8;F=m>>8;C=0;Q=8192;S=8192;T=8192;U=8192;while(1){g=(h|0)>0?h:0;la=(g|0)<(B|0)?g:M;ma=I[(F<<1)+ca>>1];m=j;g=A;while(1){q=P(I[(g<<1)+ca>>1],ma)- -8192>>14;C=q+C|0;U=P(q,K[e+3|0])+U|0;T=P(q,K[e+2|0])+T|0;S=P(q,K[e+1|0])+S|0;Q=P(q,K[e|0])+Q|0;g=g+aa|0;if((g|0)<($|0)){if(f){f=f+4|0;J[n+16>>2]=f;e=f}else{m=m+1| +0;J[n+4>>2]=m;f=0;q=(m|0)>0?m:0;e=J[l+8>>2];e=(J[l+4>>2]+P(J[l+16>>2],la)|0)+(((e|0)>(q|0)?q:e-1|0)<<2)|0}continue}break}F=F+ba|0;if(($|0)>(F|0)){J[n+4>>2]=j;g=h+1|0;J[n+12>>2]=g;if(!(!f|(h|0)<-1|(g|0)>=(B|0))){f=(J[l+4>>2]+P(g,J[l+16>>2])|0)+N|0;J[n+16>>2]=f;h=g;e=f;continue}f=0;e=(g|0)>0?g:0;h=J[l+4>>2]+P(J[l+16>>2],(e|0)<(B|0)?e:M)|0;e=J[l+8>>2];e=h+(((e|0)>(t|0)?t:e-1|0)<<2)|0;J[n+16>>2]=0;h=g;continue}break}e=(U|0)/(C|0)|0;e=(e|0)>0?e:0;H[y+3|0]=e>>>0>=255?255:e;e=(T|0)/(C|0)|0;e=(e|0)>0?e:0; +H[y+2|0]=e>>>0>=255?255:e;e=(S|0)/(C|0)|0;e=(e|0)>0?e:0;H[y+1|0]=e>>>0>=255?255:e;e=(Q|0)/(C|0)|0;e=(e|0)>0?e:0;H[y|0]=e>>>0>=255?255:e;x=x+ja|0;J[k+20>>2]=x;v=v+ka|0;J[k+16>>2]=v;if((v|0)>0){x=x+1|0;J[k+20>>2]=x;v=v-J[k+4>>2]|0;J[k+16>>2]=v}w=w+ha|0;J[k+40>>2]=w;u=u+ia|0;J[k+36>>2]=u;if((u|0)>0){w=w+1|0;J[k+40>>2]=w;u=u-J[k+24>>2]|0;J[k+36>>2]=u}y=y+4|0;p=p-1|0;if(p)continue;break}h:{if(J[b+16>>2]<(D|0)|J[b+8>>2]>(D|0))break h;f=I[r+10>>1]<0;h=f?0:V;g=K[V|0];e=J[b+4>>2];i:{if((E|0)>=(e|0)){e=E;break i}j= +e-E|0;a=a-j|0;if((a|0)<=0)break h;h=f?0:h+j|0;o=(j<<2)+o|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+e|0)){a=f-e|0;if((a|0)<0)break h;a=a+1|0}_k(j,e,D,a,o,h,g)}r=r+8|0;G=G-1|0;if(G)continue;break}}function r_a(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;n=fc-80|0;fc=n;a:{if(!a)break a;o=J[a+52>>2];b:{if(!J[a+104>>2])break b;k=J[a+8>>2];if(J[k+48>>2])break b;k=J[k+44>>2];if(k)if(J[k+36>>2]|J[k+40>>2]|(J[k+44>>2]|J[k+48>>2]))break b; +if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=522;l=J[a>>2];k=0;c:{if(!l)break c;k=0;if(J[l+108>>2]!=-554844497)break c;k=J[l+124>>2]}l=J[a+112>>2];j=J[a+108>>2];J[n+64>>2]=0;J[n+68>>2]=0;Hc(k,l,j,a,0,4,522,2,0,0,0,0,29481,n- -64|0);J[a+100>>2]=0}J[a+104>>2]=0}k=0;d:{if(d|!c)break d;if(J[a+364>>2]){l=MC(J[a+296>>2],c,b);b=l?l:b;break d}if(!b){b=0;break d}j=Yc(b);l=Yc(c);m=j+l|0;p=kc[J[663198]](m+2|0)|0;if(!p){J[n+48>>2]=14116;Hc(0,0,0,0,0,2,2,3,14116,0,0,0,32879,n+48|0);break d}k=xc(p,c,l);l=l+ +k|0;H[l|0]=58;xc(l+1|0,b,j);H[(k+m|0)+1|0]=0}e:{j=J[a+372>>2];if(j){J[a+372>>2]=J[j+24>>2];J[a+368>>2]=J[a+368>>2]-1;J[j>>2]=0;J[j+4>>2]=0;J[j+56>>2]=0;J[j+48>>2]=0;J[j+52>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;J[j+4>>2]=1;f:{if(J[a+364>>2]){k=b;break f}if(k)break f;g:{h:{if(!b)break h;k=b;while(1){l=k;k=l+1|0;if(K[l|0])continue;break}l=l-b|0;if((l|0)<0)break h;k=kc[J[663198]](l+1|0)|0;if(k)break g;Hc(0, +0,0,0,0,1,2,3,0,0,0,0,36029,0)}J[j+8>>2]=0;J[a+84>>2]=2;c=J[a>>2];b=0;i:{if(!c)break i;b=0;if(J[c+108>>2]!=-554844497)break i;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[n+36>>2]=0;J[n+32>>2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0,4440,n+32|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}r=xc(k,b,l)+l|0,s=0,H[r|0]=s}J[j+8>>2]=k;if(!J[693393])break e;b=J[693390];if(!b)break e;kc[b|0](j);break e}j:{if(J[a+364>>2]){j=aL(J[a+8>>2],b);break j}l=J[a+8>>2];if(!k){j=yC(l,b);break j}j=aL(l,k)}if(j)break e; +J[a+84>>2]=2;c=J[a>>2];b=0;k:{if(!c)break k;b=0;if(J[c+108>>2]!=-554844497)break k;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[n+4>>2]=0;J[n>>2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0,4440,n);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}l:{if(!J[a+280>>2])break l;b=J[a+36>>2];if(!b)break l;b=J[b+28>>2];I[j+56>>1]=(b|0)>=65535?65535:b}if(!o)dh(J[a+8>>2],j);m:{if((e|0)<=0)break m;p=j+48|0;b=0;if(!d){k=0;l=0;while(1){m=k<<2;m=Gl(0,J[(m|4)+f>>2],J[f+m>>2]);if(m){J[(l?l:p)>>2]=m;l=m}k=k+2|0;b=b+1|0; +if((e|0)!=(b|0))continue;break}break m}k=0;l=0;while(1){m=k<<2;q=J[m+f>>2];m=Gl(0,J[(m|4)+f>>2],q);if(m){J[(l?l:p)>>2]=m;if((c|0)==(q|0))J[j+36>>2]=m;l=m}k=k+2|0;b=b+1|0;if((e|0)!=(b|0))continue;break}}J[a+264>>2]=-1;cx(a,j);n:{if(!o)break n;if(J[o+4>>2]==1){dh(o,j);break n}IC(o,j)}g=h?g-(K[a+276|0]&4?0:h)|0:g;o:{if(J[j+36>>2]|!d)break o;b=Il(J[a+8>>2],o,c);J[j+36>>2]=b;if(b)break o;f=9684;p:{if((c|0)!=9684){if(!c)break p;b=c;while(1){d=K[b|0];if((d|0)!=K[f|0])break p;f=f+1|0;b=b+1|0;if(d)continue; +break}}b=Il(J[a+8>>2],j,c);J[j+36>>2]=b;if(b)break o}if(!Gl(j,0,c)){Tr(a,4440);break a}if(c){tC(a,201,34933,c,0);break o}tC(a,201,34893,0,0)}if((g|0)<=0)break a;b=0;k=0;while(1){q:{r:{c=(b<<2)+i|0;d=J[c+4>>2];s:{if(!d|J[c+8>>2])break s;if(J[a+364>>2]){d=MC(J[a+296>>2],d,J[c>>2]);if(!d)break s;QK(a,d,0,J[c+12>>2],J[c+16>>2]);break q}e=J[c>>2];if(!e)break s;h=Yc(e);f=Yc(d);l=h+f|0;j=kc[J[663198]](l+2|0)|0;if(j)break r;J[n+16>>2]=14116;Hc(0,0,0,0,0,2,2,3,14116,0,0,0,32879,n+16|0)}QK(a,J[c>>2],J[c+4>> +2],J[c+12>>2],J[c+16>>2]);break q}d=xc(j,d,f);f=d+f|0;H[f|0]=58;xc(f+1|0,e,h);H[(d+l|0)+1|0]=0;QK(a,d,0,J[c+12>>2],J[c+16>>2]);kc[J[663199]](d)}b=b+5|0;k=k+1|0;if((k|0)!=(g|0))continue;break}}fc=n+80|0}function U3a(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=fc-160|0;fc=c;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=K[b+11|0];g=d<<24>>24<0;a:{b:{c:{e=g?J[b+4>>2]:d;d:{if(!e)break d;J[c+156>>2]=0;J[c+152>>2]=0;d=J[b>>2];J[699344]=0;ma(1637,(g?d:b)|0,e|0,c+156|0,c+152|0,0);d=J[699344];J[699344]= +0;if((d|0)==1)break c;j=bT(J[c+156>>2]);if(j){e:{f:{g:{h:{i:{j:{while(1){k:{J[699344]=0;h=_(3034,j|0)|0;d=J[699344];J[699344]=0;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if((d|0)!=1){if(!h)break e;switch(K[h+18|0]){case 4:break w;case 0:break x;default:continue}}b=Z()|0;break b}i=J[c+156>>2];f=Yc(i);if(f>>>0>=2147483632){J[699344]=0;$(3030,c+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break u;break a}y:{if(f>>>0<=10){H[c+23|0]=f;d=c+12|0;break y}J[699344]=0;g=(f|15)+1|0;d=_(4,g|0)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break v;J[c+12>>2]=d;J[c+16>>2]=f;J[c+20>>2]=g|-2147483648}k=cd(d,i,f)+f|0,l=0,H[k|0]=l;J[699344]=0;e=aa(2834,c+12|0,28666)|0;d=J[699344];J[699344]=0;if((d|0)==1)break t;J[c+32>>2]=J[e+8>>2];d=J[e+4>>2];J[c+24>>2]=J[e>>2];J[c+28>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;i=h+19|0;f=Yc(i);if(f>>>0>=2147483632){J[699344]=0;$(3030,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;break q}z:{if(f>>>0<=10){H[c+11|0]=f;d=c;break z}J[699344]=0;g=(f|15)+1|0;d=_(4,g|0)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break s;J[c>>2]=d;J[c+4>>2]=f;J[c+8>>2]=g|-2147483648}k=cd(d,i,f)+f|0,l=0,H[k|0]=l;J[699344]=0;e=K[c+11|0];d=e<<24>>24<0;e=ga(2835,c+24|0,(d?J[c>>2]:c)|0,(d?J[c+4>>2]:e)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break r;J[c+48>>2]=J[e+8>>2];d=J[e+4>>2];J[c+40>>2]=J[e>>2];J[c+44>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;if(H[c+11|0]<0)uc(J[c>>2]);if(H[c+35|0]<0)uc(J[c+24>>2]);if(H[c+23|0]<0)uc(J[c+12>>2]);g=J[c+40>>2];e=H[c+51|0];ol((e|0)<0?g:c+40|0,c+56|0);d=J[c+60>>2]&61440;if((e|0)<0)uc(g); +if((d|0)!=16384)continue}if(K[h+19|0]==46)continue;e=h+19|0;d=Yc(e);J[699344]=0;ca(1618,c+56|0,e|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break k;d=K[b+11|0];i=d<<24>>24<0;g=i?J[b+4>>2]:d;f=g+1|0;if(f>>>0<1073741808)break o;J[699344]=0;$(2959,c+24|0);break n}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break p}b=Z()|0;break q}b=Z()|0;if(H[c+11|0]>=0)break q;uc(J[c>>2])}if(H[c+35|0]>=0)break p;uc(J[c+24>>2])}if(H[c+23|0]>=0)break b;uc(J[c+12>>2]);break b}if(f>>>0<=1){J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>> +2]=0;H[c+35|0]=f;h=c+24|0;break l}d=f|3;if(d>>>0<1073741823)break m;J[699344]=0;ka(209)}b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;break f}J[699344]=0;e=d+1|0;h=_(4,e<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;J[c+28>>2]=f;J[c+24>>2]=h;J[c+32>>2]=e|-2147483648}d=g<<2;d=cd(h,i?J[b>>2]:b,d)+d|0;J[d>>2]=47;J[d+4>>2]=0;J[699344]=0;e=K[c+67|0];d=e<<24>>24<0;e=ga(2960,c+24|0,(d?J[c+56>>2]:c+56|0)|0,(d?J[c+60>>2]:e)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;J[c+48>>2]=J[e+8>>2];d= +J[e+4>>2];J[c+40>>2]=J[e>>2];J[c+44>>2]=d;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;e=J[a+4>>2];A:{if(e>>>0>2]){d=J[c+44>>2];J[e>>2]=J[c+40>>2];J[e+4>>2]=d;J[e+8>>2]=J[c+48>>2];J[c+48>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[a+4>>2]=e+12;break A}J[699344]=0;da(2957,a|0,c+40|0);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(H[c+51|0]>=0)break A;uc(J[c+40>>2])}if(H[c+35|0]<0)uc(J[c+24>>2]);if(H[c+67|0]>=0)continue;uc(J[c+56>>2]);continue}break}b=Z()|0;break b}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;if(H[c+ +51|0]>=0)break g;uc(J[c+40>>2])}if(H[c+35|0]>=0)break f;uc(J[c+24>>2])}if(H[c+67|0]>=0)break b;uc(J[c+56>>2]);break b}uT(j)}a=J[c+156>>2];if(!a)break d;uc(a)}fc=c+160|0;return}b=Z()|0}Ag(a);ba(b|0);B()}B()}function Pqb(a){a=a|0;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;g=fc-48|0;fc=g;c=Dc(1E3);H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;l=a;a:{b:{c:{d:{if(!J[a+20>>2]){a=J[a+16>>2];J[699344]=0;a=J[J[a+16>>2]+40>>2];if(a){a=J[a>>2];if(a)a=J[J[a+24>>2]+16>>2]+1|0;else a=0}else a= +0;e=a;a=J[699344];J[699344]=0;if((a|0)==1)break d}H[c+4|0]=e;H[c+5|0]=e>>>8;H[c+6|0]=e>>>16;H[c+7|0]=e>>>24;a=J[l+16>>2];b=J[J[a>>2]+36>>2];J[699344]=0;k=_(b|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){H[c+8|0]=k;H[c+9|0]=k>>>8;H[c+10|0]=k>>>16;H[c+11|0]=k>>>24;d=12;b=c+12|0;e=1E3;e:{if((k|0)>0)while(1){a=J[l+16>>2];f=J[J[a>>2]+40>>2];J[699344]=0;la(f|0,a|0,m|0,g+40|0,g+32|0,g+16|0,g|0);a=J[699344];J[699344]=0;f:{g:{h:{i:{j:{k:{l:{m:{n:{if((a|0)==1)break n;n=0;o:{p:switch(J[l+20>>2]){case 2:O[g+ +40>>3]=O[g+40>>3]/25.4*96;O[g+32>>3]=O[g+32>>3]/25.4*96;O[g+16>>3]=O[g+16>>3]/25.4*96;break o;case 0:break p;default:break o}a=J[l+16>>2];J[699344]=0;n=aa(1625,a|0,m|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break n}o=O[g+40>>3];p=O[g+32>>3];q=O[g+16>>3];q:{if(R(q)<2147483648){h=~~q;break q}h=-2147483648}if(R(p)<2147483648)i=~~p;else i=-2147483648;if(R(o)<2147483648)j=~~o;else j=-2147483648;r:{s:{t:{u:{if(!c){d=0;e=1E3;a=Dc(1E3);b=a;break u}f=d+4|0;if(f>>>0<=e>>>0){a=c;H[b|0]=j;H[b+1|0]=j>>>8;H[b+ +2|0]=j>>>16;H[b+3|0]=j>>>24;break t}while(1){e=e<<1;if(f>>>0>e>>>0)continue;break}a=fe(c,e);if(a){b=a+d|0;H[b|0]=j;H[b+1|0]=j>>>8;H[b+2|0]=j>>>16;H[b+3|0]=j>>>24;break t}a=Dc(e);b=xc(a,c,d);uc(c);b=d+b|0}H[b|0]=j;H[b+1|0]=j>>>8;H[b+2|0]=j>>>16;H[b+3|0]=j>>>24;if(!a)break s;f=d+4|0}c=d+8|0;if(c>>>0<=e>>>0){d=b+4|0;H[d|0]=i;H[d+1|0]=i>>>8;H[d+2|0]=i>>>16;H[d+3|0]=i>>>24;break l}while(1){e=e<<1;if(c>>>0>e>>>0)continue;break}b=fe(a,e);if(!b)break r;a=b;d=f+a|0;H[d|0]=i;H[d+1|0]=i>>>8;H[d+2|0]=i>>>16; +H[d+3|0]=i>>>24;break l}f=0;e=1E3;b=Dc(1E3);d=b;break m}b=Dc(e);c=xc(b,a,f);uc(a);d=c+f|0;break m}e=Z()|0;break e}H[d|0]=i;H[d+1|0]=i>>>8;H[d+2|0]=i>>>16;H[d+3|0]=i>>>24;if(!b)break k;c=f+4|0;a=b}f=c+4|0;if(f>>>0<=e>>>0){d=d+4|0;H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;break h}while(1){e=e<<1;if(f>>>0>e>>>0)continue;break}b=fe(a,e);if(!b)break j;a=b;d=c+a|0;H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;break h}c=0;e=1E3;b=Dc(1E3);d=b;break i}b=Dc(e);d=xc(b,a,c);uc(a);d=c+ +d|0}H[d|0]=h;H[d+1|0]=h>>>8;H[d+2|0]=h>>>16;H[d+3|0]=h>>>24;if(!b)break g;f=c+4|0;a=b}c=c+8|0;if(c>>>0<=e>>>0){c=a;a=d+4|0;break f}while(1){e=e<<1;if(c>>>0>e>>>0)continue;break}c=fe(a,e);if(!c){c=Dc(e);xc(c,a,f);uc(a)}a=c+f|0;break f}f=0;e=1E3;c=Dc(1E3);a=c}b=n;H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;d=f+4|0;b=a+4|0;m=m+1|0;if((k|0)!=(m|0))continue;break}a=J[l+16>>2];f=J[J[a>>2]+56>>2];J[699344]=0;h=f;f=g+16|0;da(h|0,f|0,a|0);a=J[699344];J[699344]=0;v:{if((a|0)!=1){J[699344]=0;h=f; +a=H[g+27|0];f=(a|0)<0;ia(1626,g|0,(f?J[g+16>>2]:h)|0,(f?J[g+20>>2]:a&255)|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break v;a=0;f=K[g+11|0];h=f<<24>>24<0;j=h?J[g>>2]:g;h=h?J[g+4>>2]:f;i=h+4|0;w:{if(!c){f=Dc(i>>>0<=1E3?1E3:i);b=f;break w}a=d+i|0;x:{if(a>>>0<=e>>>0){f=c;break x}while(1){e=e<<1;if(a>>>0>e>>>0)continue;break}f=fe(c,e);if(!f){f=Dc(e);xc(f,c,d);uc(c)}b=d+f|0}a=d}H[b|0]=h;H[b+1|0]=h>>>8;H[b+2|0]=h>>>16;H[b+3|0]=h>>>24;xc(b+4|0,j,h);a=a+i|0;H[f|0]=a;H[f+1|0]=a>>>8;H[f+2|0]=a>>>16;H[f+3|0]= +a>>>24;if(H[g+11|0]<0)uc(J[g>>2]);if(H[g+27|0]<0)uc(J[g+16>>2]);fc=g+48|0;break a}e=Z()|0;break e}e=Z()|0;if(H[g+27|0]>=0)break e;uc(J[g+16>>2])}if(!c)break b;break c}e=Z()|0;break c}e=Z()|0}uc(c)}ba(e|0);B()}return f|0}function D6a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=fc+-64|0;fc=f;a:{if(!J[a+20>>2]){e=0;break a}g=K[c+11|0];h=g<<24>>24<0;_m(f+52|0,h?J[c>>2]:c,h?J[c+4>>2]:g,0);g=J[d>>2];J[699344]=0;h=f+12|0;da(2833,h|0,g|0);g=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((g| +0)!=1){J[699344]=0;g=aa(2834,h|0,19881)|0;h=J[699344];J[699344]=0;if((h|0)==1)break n;J[f+32>>2]=J[g+8>>2];h=J[g+4>>2];J[f+24>>2]=J[g>>2];J[f+28>>2]=h;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;j=O[e>>3];J[699344]=0;j=j*100+.5;o:{if(R(j)<2147483648){e=~~j;break o}e=-2147483648}da(2833,f|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break m;J[699344]=0;e=K[f+11|0];g=e<<24>>24<0;e=ga(2835,f+24|0,(g?J[f>>2]:f)|0,(g?J[f+4>>2]:e)|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;J[f+48>>2]=J[e+8>>2];g=J[e+4>>2];J[f+ +40>>2]=J[e>>2];J[f+44>>2]=g;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[699344]=0;e=K[f+51|0];g=e<<24>>24<0;ga(2835,f+52|0,(g?J[f+40>>2]:f+40|0)|0,(g?J[f+44>>2]:e)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;if(H[f+51|0]<0)uc(J[f+40>>2]);if(H[f+11|0]<0)uc(J[f>>2]);if(H[f+35|0]<0)uc(J[f+24>>2]);if(H[f+23|0]<0)uc(J[f+12>>2]);J[699344]=0;e=f+52|0;J[f+24>>2]=e;h=a+8|0;la(2836,f+40|0,h|0,e|0,352288,f+24|0,f+12|0);e=J[699344];J[699344]=0;if((e|0)!=1){e=J[J[f+40>>2]+28>>2];if(!e)break g;a=J[J[e>>2]+8>>2];J[699344]= +0;_(a|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break f}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break h}c=Z()|0;break i}c=Z()|0;break j}c=Z()|0;if(H[f+51|0]>=0)break j;uc(J[f+40>>2])}if(H[f+11|0]>=0)break i;uc(J[f>>2])}if(H[f+35|0]>=0)break h;uc(J[f+24>>2])}if(H[f+23|0]>=0)break b;uc(J[f+12>>2]);break b}g=J[a+20>>2];i=J[J[g>>2]+16>>2];e=0;J[699344]=0;c=aa(i|0,g|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;if(!c)break f;d=J[d>>2];J[699344]=0;b=ga(2837,b|0,c|0,d|0)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break e;if(!b)break f;e=J[a+36>>2];p:{if((e|0)==-1)break p;J[699344]=0;d=_(4,20)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;J[d>>2]=0;g=d+8|0;q:{if(H[f+63|0]>=0){i=J[f+56>>2];J[g>>2]=J[f+52>>2];J[g+4>>2]=i;J[g+8>>2]=J[f+60>>2];break q}J[699344]=0;ca(2838,g|0,J[f+52>>2],J[f+56>>2]);e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[a+36>>2]}J[d+4>>2]=a+24;g=J[a+24>>2];J[d>>2]=g;J[g+4>>2]=d;J[a+24>>2]=d;d=J[a+32>>2]+1|0;J[a+32>>2]=d;if((d|0)<=(e|0))break p;r:{s:{t:{d=J[a+28>>2];u:{if(H[d+ +19|0]>=0){J[f+48>>2]=J[d+16>>2];e=J[d+12>>2];J[f+40>>2]=J[d+8>>2];J[f+44>>2]=e;break u}e=J[d+12>>2];d=J[d+8>>2];J[699344]=0;ca(2838,f+40|0,d|0,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break t}J[699344]=0;e=Fu(h,f+40|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;if((e|0)==(a+12|0))break r;d=J[e+28>>2];if(!d)break s;g=J[J[d>>2]+12>>2];J[699344]=0;_(g|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break s;break c}c=Z()|0;break b}d=J[a+28>>2];g=J[d>>2];i=J[d+4>>2];J[g+4>>2]=i;J[i>>2]=g;J[a+32>>2]=J[a+ +32>>2]-1;if(H[d+19|0]<0)uc(J[d+8>>2]);uc(d)}J[699344]=0;o4(h,e);a=J[699344];J[699344]=0;if((a|0)==1)break c;if(H[f+51|0]>=0)break p;uc(J[f+40>>2])}J[b+168>>2]=c;a=J[J[c>>2]+8>>2];J[699344]=0;_(a|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;a=f+52|0;J[f+24>>2]=a;la(2836,f+40|0,h|0,a|0,352288,f+24|0,f+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;J[J[f+40>>2]+28>>2]=b;a=J[J[b>>2]+8>>2];J[699344]=0;_(a|0,b|0)|0;a=J[699344];J[699344]=0;e=b;if((a|0)==1)break e}if(H[f+63|0]>=0)break a; +uc(J[f+52>>2]);break a}c=Z()|0;break b}c=Z()|0;uc(d);break b}c=Z()|0;if(H[f+51|0]>=0)break b;uc(J[f+40>>2])}if(H[f+63|0]<0)uc(J[f+52>>2]);ba(c|0);B()}fc=f- -64|0;return e|0}function iqa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;o=fc-16|0;fc=o;m=J[c>>2];i=K[c+11|0];n=i<<24>>24<0;J[o+12>>2]=n?J[c+4>>2]:i;i=a;p=b;n=n?m:c;k=fc-16|0;fc=k;a:{b:{m=o+12|0;c:{if(!J[m>>2]){J[a>>2]=0;H[a+11|0]=0;break c}J[i>>2]=0;J[i+4>>2]=0;J[i+8>>2]=0;a=J[p>>2]; +c=fc-32|0;fc=c;f=k+4|0;J[f>>2]=0;H[f+11|0]=0;J[699344]=0;J[c+28>>2]=0;h=c+28|0;b=ga(6371,d|0,-1,h|0)|0;g=J[699344];J[699344]=0;d:{e:{f:{g:{h:{if((g|0)!=1){i:{if(J[c+28>>2]<=0){J[c+12>>2]=n;g=J[m>>2];J[699344]=0;a=K[J[J[b+24>>2]+12>>2]+70|0];j=J[699344];J[699344]=0;j:{k:{l:{m:{n:{if((j|0)!=1){J[699344]=0;j=(g>>>0)/(a>>>0)|0;a=_(27,(j&1073741824?-1:j<<2)|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break j;J[699344]=0;J[c>>2]=a;Ha(6367,b|0,c|0,(j<<1)+a|0,c+12|0,g+n|0,0,1,h|0);g=J[699344];J[699344]=0;if((g| +0)==1)break n;if(J[c+28>>2]>0)break k;J[699344]=0;j=J[c>>2]-a|0;ca(3702,f|0,j|0,0);g=J[699344];J[699344]=0;if((g|0)==1)break m;J[c+24>>2]=0;l=J[f>>2];q=J[f+4>>2];g=K[f+11|0];J[699344]=0;r=l;l=g<<24>>24<0;RL(l?r:f,l?q:g,c+24|0,a,j>>1,h);h=J[699344];J[699344]=0;if((h|0)!=1){if(J[c+28>>2]>0)break l;J[699344]=0;ca(3702,f|0,J[c+24>>2],0);h=J[699344];J[699344]=0;if((h|0)!=1)break k}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;break f}if(H[f+11|0]<0){J[J[f>>2]>>2]=0;J[f+4>>2]=0;break k}H[f+11| +0]=0;J[f>>2]=0}uc(a);J[699344]=0;$(6369,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i}e=Z()|0;break f}J[699344]=0;ma(6370,c+12|0,a|0,n|0,m|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;if(H[f+11|0]<0)uc(J[f>>2]);a=J[c+16>>2];J[f>>2]=J[c+12>>2];J[f+4>>2]=a;J[f+8>>2]=J[c+20>>2]}o:{p:{if(e)break p;a=K[f+11|0];if(a<<24>>24<0?J[f+4>>2]:a)break p;a=J[m>>2];if(!a)break p;if(a>>>0>=2147483632){J[699344]=0;$(3030,c+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break o;break e}q:{if(a>>>0<=10){H[c+23|0]= +a;g=c+12|0;break q}J[699344]=0;b=(a|15)+1|0;g=_(4,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;J[c+12>>2]=g;J[c+16>>2]=a;J[c+20>>2]=b|-2147483648}s=xc(g,n,a)+a|0,t=0,H[s|0]=t;b=H[c+23|0];a=(b|0)<0;h=a?J[c+16>>2]:b&255;if(h>>>0>=1073741808){J[699344]=0;$(2959,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;break g}b=J[c+12>>2];r:{s:{if(h>>>0>=2){e=h|3;if(e>>>0>=1073741823){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break e;break g}J[699344]=0;g=e+1|0;e=_(4,g<<2)|0;j=J[699344];J[699344]= +0;if((j|0)==1)break g;J[c>>2]=e;J[c+4>>2]=h;J[c+8>>2]=g|-2147483648;break s}H[c+11|0]=h;e=c;if(!h)break r}a=a?b:c+12|0;j=h-1|0;l=h&7;t:{if(!l){b=a;break t}g=0;b=a;while(1){J[e>>2]=H[b|0];e=e+4|0;b=b+1|0;g=g+1|0;if((l|0)!=(g|0))continue;break}}if(j>>>0<7)break r;a=a+h|0;while(1){J[e>>2]=H[b|0];J[e+4>>2]=H[b+1|0];J[e+8>>2]=H[b+2|0];J[e+12>>2]=H[b+3|0];J[e+16>>2]=H[b+4|0];J[e+20>>2]=H[b+5|0];J[e+24>>2]=H[b+6|0];J[e+28>>2]=H[b+7|0];e=e+32|0;b=b+8|0;if((a|0)!=(b|0))continue;break}}J[e>>2]=0;if(H[f+11| +0]<0)uc(J[f>>2]);a=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=a;J[f+8>>2]=J[c+8>>2];if(H[c+23|0]>=0)break p;uc(J[c+12>>2])}fc=c+32|0;break d}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;break f}e=Z()|0;if(H[c+23|0]>=0)break f;uc(J[c+12>>2])}if(H[f+11|0]<0)uc(J[f>>2]);ba(e|0);B()}B()}b=J[m>>2];J[i+8>>2]=J[k+12>>2];a=J[k+8>>2];J[i>>2]=J[k+4>>2];J[i+4>>2]=a;c=K[i+11|0];a=c<<24>>24;e=c;c=(a|0)<0;if(!b|(c?J[i+4>>2]:e))break c;b=J[p>>2];J[699344]=0;ma(6370,f|0,b|0,n|0,m|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break b; +if(c)uc(J[i>>2]);a=J[k+8>>2];J[i>>2]=J[k+4>>2];J[i+4>>2]=a;J[i+8>>2]=J[k+12>>2]}fc=k+16|0;break a}b=Z()|0;if((a|0)<0)uc(J[i>>2]);ba(b|0);B()}fc=o+16|0}function FXa(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=fc-80|0;fc=e;d=eq(a,b,c,d);J[d+228>>2]=0;J[d+232>>2]=0;J[d>>2]=840332;J[d+236>>2]=0;J[e+64>>2]=13;J[e+48>>2]=13;J[e+32>>2]=13;a=J[b+24>>2];J[699344]=0;ha(3372,c|0,a|0,e- -64|0,0)|0;a=J[699344];J[699344]=0;l=d+228|0;a:{b:{c:{d:{e:{f:{if((a|0)==1)break f;J[699344]=0;a= +ha(3368,J[e+72>>2],840349,e+48|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;g:{h:{if(J[a>>2]!=6)break h;c=J[e+56>>2];if(J[c+12>>2]<=0)break h;while(1){J[699344]=0;a=ha(3449,c|0,j|0,e+32|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;i:{if(J[a>>2]!=6)break i;a=0;J[e+28>>2]=0;J[e+20>>2]=0;J[e+24>>2]=0;c=J[e+40>>2];if(J[c+12>>2]<=0)break i;while(1){J[699344]=0;J[e>>2]=13;b=ha(3449,c|0,a|0,e|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;j:{if(J[b>>2]-3>>>0>=4294967294){if(a&1)k=O[d+16>> +3]-(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3]);else k=(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3])-O[d+24>>3];c=J[e+24>>2];f=J[e+28>>2];if(c>>>0>>0){O[c>>3]=k;J[e+24>>2]=c+8;break j}k:{l:{m:{g=J[e+20>>2];i=c-g>>3;b=i+1|0;n:{if(b>>>0>=536870912){J[699344]=0;$(2494,e+20|0);a=J[699344];J[699344]=0;if((a|0)==1)break n;break a}f=f-g|0;h=f>>2;h=f>>>0>=2147483640?536870911:b>>>0>>0?h:b;if(!h){f=0;break l}if(h>>>0<536870912)break m;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a}c=Z()|0;break c}J[699344]= +0;f=_(4,h<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k}b=(i<<3)+f|0;O[b>>3]=k;i=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[e+28>>2]=(h<<3)+f;J[e+24>>2]=i;J[e+20>>2]=b;if(!g)break j;uc(g);break j}c=Z()|0;break c}c=J[e+24>>2];f=J[e+28>>2];if(c>>>0>>0){J[c>>2]=0;J[c+4>>2]=0;J[e+24>>2]=c+8;break j}o:{p:{q:{g=J[e+20>>2];i=c-g>>3;b=i+1|0;r:{if(b>>>0>=536870912){J[699344]=0;$(2494,e+20|0);break r}f=f-g|0;h=f>>2;h=f>>>0>=2147483640?536870911:b>>> +0>>0?h:b;if(!h){f=0;break p}if(h>>>0<536870912)break q;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break a;c=Z()|0;break c}J[699344]=0;f=_(4,h<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break o}b=(i<<3)+f|0;J[b>>2]=0;J[b+4>>2]=0;i=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[e+28>>2]=(h<<3)+f;J[e+24>>2]=i;J[e+20>>2]=b;if(!g)break j;uc(g);break j}c=Z()|0;break c}J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;a=a+ +1|0;c=J[e+40>>2];if((a|0)>2])continue;break}a=J[e+24>>2];s:{if((a|0)==J[e+20>>2])break s;f=J[d+232>>2];if((f|0)!=J[d+236>>2]){J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;t:{a=J[e+24>>2];b=J[e+20>>2];if((a|0)!=(b|0)){a=a-b|0;b=a>>3;if(b>>>0>=536870912){J[699344]=0;$(2494,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break t}J[699344]=0;c=_(4,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break t;J[f+4>>2]=c;J[f>>2]=c;J[f+8>>2]=(b<<3)+c;a=J[e+20>>2];b=a;g=J[e+24>>2];if((b|0)!=(g|0))while(1){O[c>>3]=O[b>> +3];c=c+8|0;b=b+8|0;if((g|0)!=(b|0))continue;break}J[f+4>>2]=c}J[d+232>>2]=f+12;break s}c=Z()|0;a=J[f>>2];if(a){J[f+4>>2]=a;uc(a)}J[d+232>>2]=f;break c}J[699344]=0;da(2514,l|0,e+20|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;a=J[e+20>>2]}if(!a)break i;J[e+24>>2]=a;uc(a)}j=j+1|0;c=J[e+56>>2];if((j|0)>2])continue;break}}J[699344]=0;$(3370,e+48|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;$(3370,e- -64|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;fc=e+80|0;return d|0}c=Z()| +0;break c}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;break b}a=J[e+20>>2];if(!a)break b;J[e+24>>2]=a;uc(a)}jj(l);Ch(d);ba(c|0);B()}B()}function Nca(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;l=fc-96|0;fc=l;i=J[a+584>>2];if(i){d=J[i+88>>2];a:{b:{if(!d){f=c;break b}e=J[i+100>>2];g=L[e+4>>1];h=g-d|0;c:{if((h|0)>(c|0)){f=c+d|0;J[i+88>>2]=f;j=(g+(d^-1)|0)-c|0;f=g-f&7;d:{if(!f){d=h;break d}g=0;d=h;while(1){d=d-1|0;e=J[e>>2];g=g+1|0;if((f|0)!=(g|0))continue; +break}}if(j>>>0>=7)while(1){e=J[J[J[J[J[J[J[J[e>>2]>>2]>>2]>>2]>>2]>>2]>>2]>>2];d=d-8|0;if((d|0)>(c|0))continue;break}j=c-1|0;d=b+c|0;f=c&3;e:{if(!f){g=c;break e}g=c;while(1){d=d-1|0;H[d|0]=K[e+6|0];g=g-1|0;e=J[e>>2];k=k+1|0;if((f|0)!=(k|0))continue;break}}f=0;if(j>>>0<3)break c;while(1){H[d-1|0]=K[e+6|0];e=J[e>>2];H[d-2|0]=K[e+6|0];e=J[e>>2];H[d-3|0]=K[e+6|0];d=d-4|0;e=J[e>>2];H[d|0]=K[e+6|0];e=J[e>>2];g=g-4|0;if(g)continue;break}break c}b=b+h|0;f=g+(d^-1)|0;j=h&3;f:{if(!j){d=b;g=h;break f}d=b;g= +h;while(1){d=d-1|0;H[d|0]=K[e+6|0];g=g-1|0;e=J[e>>2];k=k+1|0;if((j|0)!=(k|0))continue;break}}if(f>>>0>=3)while(1){H[d-1|0]=K[e+6|0];f=J[e>>2];H[d-2|0]=K[f+6|0];f=J[f>>2];H[d-3|0]=K[f+6|0];d=d-4|0;f=J[f>>2];H[d|0]=K[f+6|0];e=J[f>>2];g=g-4|0;if(g)continue;break}J[i+88>>2]=0;f=c-h|0}r=1;if((c|0)<(h|0))break a}r=1;q=J[i+112>>2];m=J[i+108>>2];d=J[i+104>>2];p=J[i+84>>2];k=J[i+76>>2];n=J[i+72>>2];g=L[i+64>>1];c=J[a+604>>2];g:{h:{if((f|0)<=0)break h;while(1){i:{j:{k:{h=J[i+92>>2];if((h|0)>=(g|0)){e=K[c|0]<< +k|n;n=k+8|0;if((n|0)>=(g|0))c=c+1|0;else{e=K[c+1|0]<>2]=h-g;k=n-g|0;n=e>>g;l:{o=e&p;j=o&65535;switch(j-256|0){case 1:break h;case 0:break l;default:break j}}m=J[i+116>>2]+2064|0;Sg(m,0,38888);q=J[i+116>>2]+4088|0;g=9;h=J[i+92>>2];if((h|0)>=9)break k;p=511}b=J[a>>2];h=J[a+628>>2];J[l+16>>2]=J[a+480>>2];le(h,b,73598,l+16|0);break h}g=k+8|0;e=K[c|0]<0)c=c+1|0;else{e=K[c+1|0]<>2]=h-9;p=511;k=g-9|0;g=9;n=e>>9;m:{n:{h=e&511;switch(h- +256|0){case 1:break h;case 0:break n;default:break m}}b=J[a>>2];c=J[a+628>>2];J[l+80>>2]=J[a+472>>2];Uc(c,b,74316,l+80|0);break g}H[b|0]=e;f=f-1|0;b=b+1|0;d=J[i+116>>2]+(h<<3)|0;break i}o:{e=J[i+116>>2];if(e>>>0<=m>>>0){h=e+40952|0;if(h>>>0>m>>>0)break o}b=J[a>>2];c=J[a+628>>2];J[l+64>>2]=J[a+472>>2];Uc(c,b,74705,l- -64|0);break g}J[m>>2]=d;if(!(d>>>0>>0&d>>>0>=e>>>0)){b=J[a>>2];c=J[a+628>>2];J[l+48>>2]=J[a+472>>2];Uc(c,b,74705,l+48|0);break g}H[m+7|0]=K[d+7|0];I[m+4>>1]=L[d+4>>1]+1;d=j<<3;h=d+ +e|0;H[m+6|0]=K[(h>>>0>>0?h+7|0:m+7|0)|0];m=m+8|0;if(q>>>0>>0){p=(g|0)>=11?11:g;g=p+1|0;p=-2<>>0>=256){o=L[(d+e|0)+4>>1];if(!o){b=J[a>>2];c=J[a+628>>2];J[l+32>>2]=J[a+472>>2];Uc(c,b,75117,l+32|0);break g}if(f>>>0>>0){J[i+100>>2]=h;d=f&65535;e=h;while(1){e=J[e>>2];if(d>>>0>1])continue;break}J[i+88>>2]=f;d=b+f|0;o=f&3;r:{if(!o){b=f;break r}j=0;b=f;while(1){d=d-1|0;H[d|0]=K[e+6|0];b=b-1|0;e=J[e>>2];j=j+1|0;if((o|0)!=(j|0))continue;break}}j=f>>>0<4;f=0;if(j){d= +h;break h}while(1){H[d-1|0]=K[e+6|0];e=J[e>>2];H[d-2|0]=K[e+6|0];e=J[e>>2];H[d-3|0]=K[e+6|0];d=d-4|0;e=J[e>>2];H[d|0]=K[e+6|0];e=J[e>>2];b=b-4|0;if(b)continue;break}d=h;break h}j=b+o|0;d=j;e=h;while(1){d=d-1|0;H[d|0]=K[e+6|0];e=J[e>>2];if(!e)break q;if(b>>>0>>0)continue;break}break q}H[b|0]=o;f=f-1|0;b=b+1|0;break p}f=f-o|0;b=j}d=h}if((f|0)>0)continue;break}}J[a+604>>2]=c;J[i+112>>2]=q;J[i+108>>2]=m;J[i+104>>2]=d;J[i+84>>2]=p;J[i+76>>2]=k;J[i+72>>2]=n;I[i+64>>1]=g;if((f|0)<=0)break a;b=J[a>>2]; +c=J[a+628>>2];a=J[a+472>>2];J[l+4>>2]=f;J[l>>2]=a;Uc(c,b,75614,l)}r=0}fc=l+96|0;return r|0}fa(72298,70340,573,97887);B()}function gJ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A){var C=0,D=0,E=0,F=0,G=0,I=0,K=0,L=0,M=0,N=0;C=fc-48|0;fc=C;E=vc(24);D=d+7>>3;J[E+16>>2]=D;J[E+12>>2]=e;J[E+8>>2]=d;J[E>>2]=2317464;J[E+4>>2]=0;a:{if(!((d|0)<=0|(e|0)<=0|(D|0)<=0))if(2147483646/(D>>>0)>>>0>e>>>0)break a;J[E+12>>2]=-1;J[E+16>>2]=2;e=-1;D=2}J[699344]=0;e=P(e,D);d=_(3616,e+1|0)|0;F=J[699344];J[699344]= +0;b:{c:{if((F|0)!=1){J[E+20>>2]=d;H[d+e|0]=0;if(!l)break c;Ac(d,255,e);break b}a=Z()|0;uc(E);ba(a|0);B()}Ac(d,0,e)}d:{if(b){vi(J[a+144>>2],C+44|0,s);break d}yj(J[a+76>>2],C+44|0,J[a+104>>2])}J[C+44>>2]=0-(J[C+44>>2]<>2],C+40|0,s))break e;J[C+44>>2]=J[C+44>>2]+(J[C+40>>2]<>2],C+36|0,q))break f;break e}if(!yj(J[a+76>>2],C+40|0,J[a+104>>2]))break e;J[C+44>>2]=J[C+44>>2]+(J[C+40>>2]<< +g);if(!yj(J[a+76>>2],C+36|0,J[a+112>>2]))break e}K=J[C+36>>2]+K|0;G=K;g:{if(f>>>0<=I>>>0)break g;while(1){h:{i:{j:{k:{l:{if(!g){d=0;break l}if(!b)break j;e=J[a+144>>2];d=J[e+4>>2];l=J[e+8>>2];if(l>>>0>=g>>>0){F=e;e=l-g|0;J[F+8>>2]=e;d=d>>>e&N;J[C+40>>2]=d;F=d+J[C+44>>2]|0;break k}J[e+8>>2]=0;d=d&(-1<>>0>=8)while(1){l=J[e>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;J[e+12>>2]=J[e+12>>2]+1;d=l&255|d<<8;D=D-8|0;if(D>>>0>7)continue;break}if(!D)break l;l=J[e>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;J[e+ +4>>2]=l;F=8-D|0;J[e+8>>2]=F;J[e+12>>2]=J[e+12>>2]+1;d=(-1<>>F|d<>2]=d;F=J[C+44>>2]+d|0;if(!b)break i}e=J[a+144>>2];if(i){vi(e,C+32|0,i);d=J[C+32>>2];break h}d=J[e+4>>2];l=J[e+8>>2];if(l>>>0>=j>>>0){D=e;e=l-j|0;J[D+8>>2]=e;d=d>>>e&M;break h}J[e+8>>2]=0;d=d&(-1<>>0>=8)while(1){l=J[e>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;J[e+12>>2]=J[e+12>>2]+1;d=l&255|d<<8;D=D-8|0;if(D>>>0>7)continue;break}if(!D)break h;l=J[e>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;J[e+4>>2]=l;L=8-D|0;J[e+8>> +2]=L;J[e+12>>2]=J[e+12>>2]+1;d=(-1<>>L|d<>2],C+40|0,J[a+108>>2]);F=J[C+40>>2]+J[C+44>>2]|0}d=U_(J[a+76>>2],j,J[a+140>>2])}m:{if(d>>>0>=h>>>0){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,797720,0);break m}n:{o:{if(c){p:{if(b){e=J[a+144>>2];l=J[e+8>>2];q:{if(l){D=l-1|0;l=J[e+4>>2];break q}l=J[e>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;J[e+4>>2]=l;J[e+12>>2]=J[e+12>>2]+1;D=7}J[e+8>>2]=D;e=l>>>D&1;J[C+12>>2]=e;if(!e)break o;vi(J[a+144>>2],C+28|0,t);vi(J[a+144>>2],C+24|0,u);vi(J[a+144>>2],C+20| +0,v);vi(J[a+144>>2],C+16|0,w);vi(J[a+144>>2],C+8|0,x);e=J[a+144>>2];J[e+4>>2]=0;J[e+8>>2]=0;Nn(J[a+76>>2]);break p}yj(J[a+76>>2],C+12|0,J[a+136>>2]);if(!J[C+12>>2])break o;yj(J[a+76>>2],C+28|0,J[a+128>>2]);yj(J[a+76>>2],C+24|0,J[a+132>>2]);yj(J[a+76>>2],C+20|0,J[a+120>>2]);yj(J[a+76>>2],C+16|0,J[a+124>>2])}e=J[C+28>>2];d=J[(d<<2)+k>>2];l=J[C+24>>2];e=hJ(a,e+J[d+8>>2]|0,l+J[d+12>>2]|0,y,0,d,J[C+20>>2]+((e+(e>>31)|0)/2|0)|0,J[C+16>>2]+((l+(l>>31)|0)/2|0)|0,z,A);break n}J[C+12>>2]=0}e=J[(d<<2)+k>>2]}l= +J[e+12>>2]-1|0;D=J[e+8>>2]-1|0;r:{if(n){d=l;s:switch(o|0){case 0:case 1:yl(E,e,F,G,m);break r;case 2:yl(E,e,F-D|0,G,m);break r;case 3:break s;default:break r}yl(E,e,F-D|0,G,m);break r}d=D;t:{u:switch(o|0){case 0:yl(E,e,G,F-l|0,m);break t;case 2:yl(E,e,G,F-l|0,m);break t;case 1:case 3:break u;default:break r}yl(E,e,G,F,m)}}G=d+G|0;if(!J[C+12>>2])break m;kc[J[J[e>>2]+4>>2]](e)}I=I+1|0;v:{if(b){if(vi(J[a+144>>2],C+36|0,r))break v;break g}if(!yj(J[a+76>>2],C+36|0,J[a+116>>2]))break g}G=J[C+36>>2]+(p+ +G|0)|0;if((f|0)!=(I|0))continue;break}break e}if(f>>>0>I>>>0)continue;break}}fc=C+48|0;return E}function kfb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=2;a:{f=J[a+456>>2];if(J[f+20>>2])break a;while(1){b:{c:{d:{e:{b=kc[J[J[a+460>>2]+4>>2]](a)|0;if((b|0)!=1){if((b|0)!=2)break a;J[f+20>>2]=1;if(!J[f+24>>2])break e;b=2;if(!J[J[a+460>>2]+16>>2])break a;b=J[a>>2];J[b+20>>2]=61;kc[J[b>>2]](a);return 2}f:switch(J[f+24>>2]){default:b=J[a+336>>2];break b;case 1:if(!(J[a+28>>2]<65501&J[a+32>>2]<=65500)){b= +J[a>>2];J[b+20>>2]=42;J[b+24>>2]=65500;kc[J[J[a>>2]>>2]](a)}c=J[a+212>>2];if((c|0)!=8){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=16;kc[J[J[a>>2]>>2]](a)}e=J[a+36>>2];if((e|0)>=11){b=J[a>>2];J[b+24>>2]=e;J[b+20>>2]=27;J[J[a>>2]+28>>2]=10;kc[J[J[a>>2]>>2]](a);e=J[a+36>>2]}J[a+312>>2]=1;J[a+316>>2]=1;if((e|0)>0){b=J[a+216>>2];i=0;g=1;d=1;while(1){h=J[b+8>>2];g:{if(h-5>>>0>=4294967292){c=J[b+12>>2];if(c-5>>>0>4294967291)break g}c=J[a>>2];J[c+20>>2]=19;kc[J[c>>2]](a);e=J[a+36>>2];c=J[b+12>>2];g=J[a+316>>2];h= +J[b+8>>2];d=J[a+312>>2]}g=(c|0)<(g|0)?g:c;J[a+316>>2]=g;d=(d|0)>(h|0)?d:h;J[a+312>>2]=d;b=b+88|0;i=i+1|0;if((i|0)<(e|0))continue;break}}if(J[a+220>>2]|(J[a+336>>2]?J[a+224>>2]:0))break d;h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{b=J[a+412>>2];if((b|0)<=119)switch(b|0){case 99:break m;case 80:break n;case 48:break o;case 35:break p;case 24:break q;case 15:break r;case 8:break s;case 3:break t;case 0:break u;case 63:break d;default:break h}if((b|0)<=194){if((b|0)==120)break l;if((b|0)==143)break k; +if((b|0)!=168)break h;J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=13;b=13;break c}if((b|0)==195)break j;if((b|0)==224)break i;if((b|0)!=255)break h;J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=16;b=16;break c}J[a+432>>2]=0;J[a+428>>2]=53280;J[a+424>>2]=1;b=1;break c}J[a+432>>2]=3;J[a+428>>2]=54496;J[a+424>>2]=2;b=2;break c}J[a+432>>2]=8;J[a+428>>2]=54384;J[a+424>>2]=3;b=3;break c}J[a+432>>2]=15;J[a+428>>2]=54256;J[a+424>>2]=4;b=4;break c}J[a+432>>2]=24;J[a+428>>2]=54080;J[a+424>>2]=5;b=5;break c}J[a+ +432>>2]=35;J[a+428>>2]=53872;J[a+424>>2]=6;b=6;break c}J[a+432>>2]=48;J[a+428>>2]=53600;J[a+424>>2]=7;b=7;break c}J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=9;b=9;break c}J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=10;b=10;break c}J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=11;b=11;break c}J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=12;b=12;break c}J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=14;b=14;break c}J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=15;b=15;break c}b=J[a>>2];J[b+20>>2]=17; +J[b+24>>2]=J[a+408>>2];J[J[a>>2]+28>>2]=J[a+412>>2];J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];kc[J[J[a>>2]>>2]](a);e=J[a+36>>2];b=J[a+424>>2];break c;case 0:break f}if(!J[f+16>>2]){b=J[a>>2];J[b+20>>2]=36;kc[J[b>>2]](a)}if(!J[a+336>>2])continue;S5(a);return 1}b=2;c=J[a+144>>2];if((c|0)>=J[a+152>>2])break a;J[a+152>>2]=c;break a}J[a+432>>2]=63;J[a+428>>2]=53280;J[a+424>>2]=8;b=8}J[a+324>>2]=b;J[a+320>>2]=b;if((e|0)>0){b=J[a+216>>2];d=0;while(1){c=J[a+424>>2];J[b+40>>2]=c;J[b+36>>2]= +c;c=P(c,J[a+312>>2]);J[b+28>>2]=((c+P(J[b+8>>2],J[a+28>>2])|0)-1|0)/(c|0);c=P(J[a+424>>2],J[a+316>>2]);J[b+32>>2]=((c+P(J[b+12>>2],J[a+32>>2])|0)-1|0)/(c|0);c=J[a+312>>2];J[b+44>>2]=((c+P(J[b+8>>2],J[a+28>>2])|0)-1|0)/(c|0);c=J[a+316>>2];c=((c+P(J[b+12>>2],J[a+32>>2])|0)-1|0)/(c|0)|0;J[b+80>>2]=0;J[b+52>>2]=1;J[b+48>>2]=c;b=b+88|0;d=d+1|0;if((d|0)>2])continue;break}b=J[a+424>>2]}b=P(J[a+316>>2],b);J[a+328>>2]=((b+J[a+32>>2]|0)-1|0)/(b|0);b=J[a+336>>2];J[J[a+456>>2]+16>>2]=J[a+224>>2]!=0|(b| +0)>2]}if(!b){J[f+24>>2]=2;continue}break}J[f+24>>2]=0;return 1}return b|0}function uu(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;a:{if(!b){c=-1;break a}ix(a);J[e+4>>2]=b;b:{c:{d:{e:{if(((K[b|0]&223)-65&255)>>>0>25)break e;d=b;while(1){f=d;d=d+1|0;c=K[f+1|0];if((c-48&255)>>>0<10|((c&223)-65&255)>>>0<26)continue;g=c-43|0;if(g>>>0<=3&(g|0)!=1)continue;break}if(a){c=J[a>>2];if(c)kc[J[663199]](c);c=0;g=d-b|0;f:{if((g|0)<0)break f;h=kc[J[663198]](g+1|0)|0;if(!h){Hc(0,0,0,0,0,1,2,3,0,0,0,0, +36029,0);break f}c=xc(h,b,g);H[g+c|0]=0}J[a>>2]=c;c=K[d|0]}if((c&255)!=58)break e;d=f+2|0;J[e+8>>2]=d;c=K[f+2|0];g:{if((c|0)==47){if(K[f+3|0]==47){J[e+8>>2]=f+4;if(T1(a,e+8|0))break e;if(!J[a+12>>2])J[a+20>>2]=-1;if(S1(a,e+8|0))break e;c=J[e+8>>2];break g}if(R1(a,e+8|0))break e;c=J[e+8>>2];break g}h:{i:{if((c-48&255)>>>0<10|((c&223)-65&255)>>>0<26)break i;j:switch(c-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break i; +case 4:break j;default:break h}k:{c=K[f+3|0];if((c-48&255)>>>0<10)break k;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break k;default:break h}}c=K[f+4|0];if((c-48&255)>>>0<10)break i;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i;default:break h}}J[e+12>>2]=d;if(Pr(e+12|0,0,0))break e;while(1){c=J[e+12>>2];if(K[c|0]==47){J[e+12>>2]=c+1;if(!Pr(e+12|0,0,1))continue;break e}break}if(!a)break g; +f=J[a+24>>2];if(f)kc[J[663199]](f);if((c|0)==(d|0)){J[a+24>>2]=0;break g}f=c-d|0;l:{if(K[a+36|0]&2){g=0;if((f|0)<0)break l;g=kc[J[663198]](f+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);J[a+24>>2]=0;break g}d=xc(g,d,f);H[d+f|0]=0;J[a+24>>2]=d;break g}g=Wo(d,f)}J[a+24>>2]=g;break g}if(a){c=J[a+24>>2];if(c)kc[J[663199]](c);J[a+24>>2]=0}c=d}J[e+4>>2]=c;d=K[c|0];if((d|0)==63){J[e+4>>2]=c+1;if(Q1(a,e+4|0))break e;c=J[e+4>>2];d=K[c|0]}if((d&255)==35){J[e+4>>2]=c+1;if(P1(a,e+4|0))break e;d=K[J[e+4>> +2]]}if(!(d&255))break d;ix(a)}ix(a);J[e+8>>2]=b;m:{d=K[b|0];if((d|0)==47){if(K[b+1|0]!=47)break m;J[e+8>>2]=b+2;b=e+8|0;c=T1(a,b);if(c)break b;c=1;if(!S1(a,b))break c;break b}n:{o:{if((d-48&255)>>>0<10|((d&223)-65&255)>>>0<26)break o;p:switch(d-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break o;case 4:break p;default:break n}q:{d=K[b+1|0];if((d-48&255)>>>0<10)break q;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break q; +default:break n}}d=K[b+2|0];if((d-48&255)>>>0<10)break o;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break o;default:break n}}J[e+12>>2]=b;r:{if(!Pr(e+12|0,58,0))while(1){f=J[e+12>>2];if(K[f|0]!=47)break r;J[e+12>>2]=f+1;if(!Pr(e+12|0,0,1))continue;break}c=1;break b}if(a){d=J[a+24>>2];if(d)kc[J[663199]](d);s:{if((b|0)==(f|0)){d=0;break s}c=f-b|0;if(K[a+36|0]&2){d=0;if((c|0)<0)break s;g=kc[J[663198]](c+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0, +0,0,0,36029,0);break s}d=xc(g,b,c);H[c+d|0]=0;break s}d=Wo(b,c)}J[a+24>>2]=d}J[e+8>>2]=f;break c}if(!a)break c;b=J[a+24>>2];if(b)kc[J[663199]](b);J[a+24>>2]=0;break c}c=1;if(!R1(a,e+8|0))break c;break b}c=0;break a}d=J[e+8>>2];c=K[d|0];if((c|0)==63){J[e+8>>2]=d+1;c=-1;if(Q1(a,e+8|0))break b;d=J[e+8>>2];c=K[d|0]}if((c&255)==35){J[e+8>>2]=d+1;c=-1;if(P1(a,e+8|0))break b;c=K[J[e+8>>2]]}if(c&255){ix(a);c=1;break b}c=0;break a}ix(a)}fc=e+16|0;return c}function u$(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k= +0,l=0,m=0;g=fc-96|0;fc=g;J[g+72>>2]=13;Ec(d,776262,g+72|0,0);a:{b:{c:{d:{e:switch(J[g+72>>2]-3|0){case 1:i=vc(8);J[699344]=0;m=aa(3349,i|0,J[g+80>>2])|0;f=J[699344];J[699344]=0;if((f|0)!=1)break d;break c;case 0:break e;default:break d}i=J[g+80>>2];f=vc(8);J[699344]=0;m=aa(3350,f|0,i|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break a}yc(g+72|0);l=a;e=fc-128|0;fc=e;J[e+112>>2]=13;J[e+96>>2]=13;J[e+80>>2]=13;J[e+64>>2]=13;J[e+48>>2]=13;J[e+32>>2]=13;J[g+88>>2]=-1;J[g+92>>2]=-1;a=d;Ec(a,777744,e+112|0, +0);f=786713;f:{g:{if(J[e+112>>2]!=4)break g;f=J[e+120>>2];if(!Ic(f,779267)){k=1;j=1;break f}k=1;j=1;if(!Ic(f,780523))break f;j=2;if(!Ic(f,781745))break f;j=4;if(!Ic(f,782759))break f;j=5;if(!Ic(f,783375))break f;if(Ic(f,784876))break g;h=1;k=0;j=0;break f}J[e+16>>2]=f;Cc(0,-1,785915,e+16|0);k=1;j=0}f=j;yc(e+112|0);h:{if(J[Ec(a,787054,e+80|0,0)>>2]==6){i=J[e+88>>2];if(!J[i+12>>2]){Cc(0,-1,787950,0);J[e+64>>2]=5;break h}if(J[Sc(i,0,e- -64|0,0)>>2]!=7)break h;if(!h)Cc(0,-1,788768,0);a=J[e+72>>2];Ec(a, +777744,e+112|0,0);i:{if(J[e+112>>2]==4){i=J[e+120>>2];j=h?7:f;if(!Ic(i,790279))break i;j=!Ic(i,791158)}else j=0;j=h?j?10:f:f}f=j;yc(e+112|0);break h}J[e+64>>2]=5}h=1;j:{if(J[Ec(a,791460,e+96|0,0)>>2]!=7){a=f;break j}h=0;if(J[Ke(J[e+104>>2],792462,e+48|0)>>2]==9){a=J[e+60>>2];J[g+88>>2]=J[e+56>>2];J[g+92>>2]=a;h=(f|0)!=1}a=e+48|0;yc(a);k:{if(J[g+88>>2]!=-1)break k;if(J[Ke(J[e+104>>2],793609,a)>>2]!=9)break k;a=J[e+60>>2];J[g+88>>2]=J[e+56>>2];J[g+92>>2]=a;if(!k){f=10;break k}h=(f|0)!=5?1:h}yc(e+48| +0);l:{if(J[g+88>>2]!=-1){a=f;break l}if(J[Ke(J[e+104>>2],794348,e+48|0)>>2]!=9){a=f;break l}a=J[e+60>>2];J[g+88>>2]=J[e+56>>2];J[g+92>>2]=a;m:{if(J[jf(e+48|0,l,e+32|0,0)>>2]!=8){a=f;break m}a=J[e+40>>2];Ec(kc[J[J[a>>2]+76>>2]](a)|0,777744,e+112|0,0);a=786713;n:{o:{p:{if(J[e+112>>2]!=4)break p;a=J[e+120>>2];if(!Ic(a,779267)){a=(f|0)==1;h=a?h:1;a=k?1:a?1:7;break n}if(!Ic(a,781745)){a=f-1>>>0<2;h=a?h:1;a=k?2:a?2:8;break n}if(!Ic(a,783375)){a=(f|0)==5;h=a?h:1;a=k?5:a?5:10;break n}if(!Ic(a,795037)){f= +(f|0)==7;a=f?8:k?2:8;h=f?h:1;break n}if(Ic(a,795425))break p;a=6;q:switch(f-1|0){case 0:a=3;break n;case 6:a=9;break n;case 9:a=11;break n;case 4:break n;default:break q}h=1;break o}J[e>>2]=a;Cc(1,-1,796581,e)}a=f}yc(e+112|0)}yc(e+32|0)}yc(e+48|0);h=!h}yc(e+96|0);f=J[g+88>>2];r:{if((f|0)>=0){J[e+60>>2]=J[g+92>>2];J[e+56>>2]=f;J[e+48>>2]=9;f=0;jf(e+48|0,l,e+32|0,0);s:{if(J[e+32>>2]!=8)break s;f=J[e+40>>2];kc[J[J[f>>2]+20>>2]](f);i=x0(3571,J[e+40>>2]);f=J[e+40>>2];kc[J[J[f>>2]+24>>2]](f);f=1;t:switch(i| +0){case 2:f=k?2:8;break s;case 3:f=8;break s;case 4:case 5:f=k?5:10;break s;case 6:f=k?3:9;break s;case 7:f=9;break s;case 0:case 1:break s;default:break t}f=0;Cc(1,-1,797055,0)}yc(e+32|0);yc(e+48|0);if(f)break r}f=a}if(!((a|0)==(f|0)&h))Cc(0,-1,797868,0);yc(e- -64|0);yc(e+80|0);fc=e+128|0;if((f|0)<=6){i=vc(3544);e=J[c+4>>2];c=J[c>>2];J[g+64>>2]=c;J[g+68>>2]=e;h=J[g+92>>2];a=J[g+88>>2];J[g+56>>2]=a;J[g+60>>2]=h;J[699344]=0;J[g+16>>2]=c;J[g+20>>2]=e;J[g+8>>2]=a;J[g+12>>2]=h;d=za(3569,i|0,l|0,b|0,g+ +16|0,m|0,f|0,g+8|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b;break c}i=vc(240);l=J[c+4>>2];c=J[c>>2];J[g+48>>2]=c;J[g+52>>2]=l;e=J[g+92>>2];a=J[g+88>>2];J[g+40>>2]=a;J[g+44>>2]=e;J[699344]=0;J[g+32>>2]=c;J[g+36>>2]=l;J[g+24>>2]=a;J[g+28>>2]=e;d=za(3570,i|0,g|0,b|0,g+32|0,m|0,f|0,g+24|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}a=Z()|0;uc(i);ba(a|0);B()}fc=g+96|0;return d}a=Z()|0;uc(f);ba(a|0);B()}function Aha(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;h=fc-160|0;fc=h;e=J[a+608>>2];j=J[a+604>>2];v=1;m=J[a+584>>2];s=J[m+72>>2];g=J[m+68>>2];n=J[m+64>>2];a:{b:{if((c|0)<=0){f=j;break b}t=e+j|0;p=J[m+88>>2];u=J[m+60>>2];k=J[m+12>>2];d=J[m+4>>2];x=d&8;y=d&4;c:while(1){f=p;e=0;d:while(1){o=0;while(1){e:{f:{g:{if((g|0)>11){d=g;break g}if(j>>>0>=t>>>0){d=12;if(g)break g;break f}l=g+8|0;i=j+1|0;n=K[K[j|0]+u|0]<3){j=i;d=l;break g}d=12;if(i>>>0>=t>>>0){j=i;break g}d=g+16|0;n=K[K[j+1|0]+u|0]<>>g|0;g=d-g|0;q=1;d=f;h:{i:{j:{k:switch(K[i|0]-7|0){case 0:i=J[i+4>>2];w=i+o|0;J[f>>2]=w;o=0;d=f+4|0;e=e+i|0;if((k|0)<=(e|0))break h;while(1){l:{if((g|0)>12){i=g;break l}if(j>>>0>=t>>>0){i=13;if(g)break l;f=d;break f}r=g+8|0;l=j+1|0;n=K[K[j|0]+u|0]<4){j=l;i=r;break l}i=13;if(l>>>0>=t>>>0){j=l;break l}i=g+16|0;n=K[K[j+1|0]+u|0]<>>g|0;g=i-g|0;m:{i=K[l|0];if(i-10>>>0>=2){n:switch(i-8|0){case 4:break i; +case 0:break n;default:break m}i=J[l+4>>2];l=i+o|0;J[f+4>>2]=l;d=f+8|0;e=e+i|0;if((k|0)<=(e|0))break h;f=l|w?d:f;continue d}i=J[l+4>>2];o=i+o|0;e=e+i|0;continue}break}f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];l=J[a+628>>2];q=J[a>>2];r=J[m+108>>2];J[h+80>>2]=e;J[h+76>>2]=i;J[h+72>>2]=f?88482:88539;J[h+68>>2]=r;J[h+64>>2]=q;Uc(l,96449,88316,h- -64|0);break j;case 5:break i;case 2:case 4:break e;default:break k}d=J[a+12>>2]&1024;i=J[(d?504:480)+a>>2];l=J[a+628>>2];q=J[a>>2];r=J[m+108>>2];J[h+48>>2]=e; +J[h+44>>2]=i;J[h+40>>2]=d?88482:88539;J[h+36>>2]=r;J[h+32>>2]=q;Uc(l,96449,88316,h+32|0);d=f}q=s}s=q;if(o){J[d>>2]=o;d=d+4|0}}o:{if((e|0)==(k|0))break o;f=J[a+12>>2]&1024;i=J[(f?504:480)+a>>2];l=J[a+628>>2];q=J[a>>2];r=J[m+108>>2];J[h+24>>2]=k;J[h+20>>2]=e;J[h+16>>2]=i;J[h+12>>2]=f?88482:88539;J[h+8>>2]=r;J[h+4>>2]=e>>>0>>0?88871:88926;J[h>>2]=q;le(l,96449,88788,h);f=(e|0)>(k|0);p:{if((e|0)<=(k|0)|d>>>0<=p>>>0)break p;while(1){d=d-4|0;e=e-J[d>>2]|0;f=(k|0)<(e|0);if((e|0)<=(k|0))break p;if(d>>> +0>p>>>0)continue;break}}if((e|0)<(k|0)){if(d-p&4){J[d>>2]=0;d=d+4|0}J[d>>2]=k-((e|0)>0?e:0);d=d+4|0;break o}if(!f)break o;J[d+4>>2]=0;J[d>>2]=k;d=d+8|0}kc[J[m+76>>2]](b,p,d,k);q:{if(y){n=n>>>(g&7)|0;g=g&-8;break q}if(!x)break q;n=n>>>(g&15)|0;g=g&-16;j=(!g&j)+j|0}J[m+108>>2]=J[m+108>>2]+1;d=J[m+8>>2];b=d+b|0;c=c-d|0;if((c|0)>0)continue c;e=J[a+608>>2];f=J[a+604>>2];break b}c=J[a+12>>2]&1024;d=J[(c?504:480)+a>>2];g=J[a+628>>2];i=J[a>>2];l=J[m+108>>2];J[h+144>>2]=e;J[h+140>>2]=d;J[h+136>>2]=c?88482: +88539;J[h+132>>2]=l;J[h+128>>2]=i;le(g,96449,88656,h+128|0);if(o){J[f>>2]=o;f=f+4|0}r:{if((e|0)==(k|0))break r;c=J[a+12>>2]&1024;d=J[(c?504:480)+a>>2];g=J[a+628>>2];i=J[a>>2];l=J[m+108>>2];J[h+120>>2]=k;J[h+116>>2]=e;J[h+112>>2]=d;J[h+108>>2]=c?88482:88539;J[h+104>>2]=l;J[h+100>>2]=e>>>0>>0?88871:88926;J[h+96>>2]=i;le(g,96449,88788,h+96|0);g=(e|0)>(k|0);s:{if((e|0)<=(k|0)|f>>>0<=p>>>0)break s;while(1){f=f-4|0;e=e-J[f>>2]|0;g=(k|0)<(e|0);if((e|0)<=(k|0))break s;if(f>>>0>p>>>0)continue;break}}if((e| +0)<(k|0)){if(f-p&4){J[f>>2]=0;f=f+4|0}J[f>>2]=k-((e|0)>0?e:0);f=f+4|0;break r}if(!g)break r;J[f+4>>2]=0;J[f>>2]=k;f=f+8|0}kc[J[m+76>>2]](b,p,f,k);J[m+72>>2]=s;J[m+64>>2]=n;J[m+68>>2]=0;v=-1;b=J[a+608>>2]+(J[a+604>>2]-j|0)|0;break a}d=J[i+4>>2];o=d+o|0;e=d+e|0;continue}}}}J[m+72>>2]=s;J[m+64>>2]=n;J[m+68>>2]=g;b=(f-j|0)+e|0}J[a+604>>2]=j;J[a+608>>2]=b;fc=h+160|0;return v|0}function hDa(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;d=fc+-64|0;fc=d;jX(d+48|0,J[a+8>>2]);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{e= +J[d+56>>2];if(e){g=a+16|0;while(1){c=0;p:{q:{r:{s:{t:{u:{f=J[e+8>>2];if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break u;c=J[e+8>>2]}J[d+44>>2]=c;J[c+8>>2]=0;J[699344]=0;h=c+36|0;f=rf(h);c=J[699344];J[699344]=0;if((c|0)==1)break e;J[699344]=0;c=J[J[g+12>>2]+((f>>>0)%M[g+8>>2]<<2)>>2];i=J[699344];J[699344]=0;if((i|0)==1)break e;if(c)while(1){if((f|0)==J[c+12>>2]){J[699344]=0;i=ga(5287,c+16|0,h|0,-1)|0;j=J[699344];J[699344]=0;if((j|0)==1)break o;if(!i)break p}c=J[c+8>> +2];if(c)continue;break}J[699344]=0;ca(5218,d+12|0,2391082,J[d+44>>2]+36|0);a=J[699344];J[699344]=0;if((a|0)==1)break t;a=J[d+12>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,d+20|0,a|0,2386186,548,2401189,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break s;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break r;break b}c=Z()|0;break c}c=Z()|0;break d}c=Z()|0;break q}c=Z()|0;Kc(a)}wc(d+12|0);break d}c=J[c+24>>2];J[699344]=0;f=At(c);c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[d+ +44>>2];J[c+12>>2]=f;if(!f){J[699344]=0;a=ja(5178,d+20|0,2391298,2386186,551,2401189,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;c=Z()|0;Kc(a);break d}J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(!f){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}e=J[e>>2];if(e)continue;break}}J[699344]=0;da(5278,d+20|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0; +b=J[d+20>>2];ca(5330,b|0,2391824,1);c=J[699344];J[699344]=0;if((c|0)==1)break g;J[699344]=0;ca(5330,b|0,2392209,0);c=J[699344];J[699344]=0;if((c|0)==1)break g;c=J[a+8>>2];J[699344]=0;J[d+12>>2]=0;e=d+12|0;aa(5145,e|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;J[699344]=0;ca(5331,c|0,e|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break n;c=J[d+12>>2];J[d+12>>2]=0;v:{if(!c)break v;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(e)break v;J[699344]=0;$(5147, +c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;$(5332,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break g;if(!J[a+12>>2])break k;J[699344]=0;ca(5330,b|0,2392656,0);c=J[699344];J[699344]=0;if((c|0)==1)break g;a=J[a+12>>2];J[699344]=0;J[d+12>>2]=0;c=d+12|0;aa(5145,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;J[699344]=0;da(5333,a|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;a=J[d+12>>2];J[d+12>>2]=0;w:{if(!a)break w;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]= +0;if((e|0)==1)break a;if(c)break w;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[699344]=0;$(5332,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break k;break g}c=Z()|0;break d}c=Z()|0;zc(d+12|0);break f}c=Z()|0;break f}c=Z()|0;zc(d+12|0);break f}J[699344]=0;$(5332,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;a=J[J[b>>2]+24>>2];J[699344]=0;$(a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;a=J[d+20>>2];J[d+20>>2]=0;x:{if(!a)break x;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b; +c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break x;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}id(d+48|0);fc=d- -64|0;return}c=Z()|0;break f}c=Z()|0;break d}c=Z()|0;break c}c=Z()|0}zc(d+20|0);break c}c=Z()|0}zc(d+44|0)}id(d+48|0);ba(c|0);B()}B()}ea(0)|0;Bc();B()}function UK(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=-1;a:{if(!b|!c)break a;f=J[b>>2];b:{if(f){e=J[f+12>>2];if(e){j=0;if((c|0)==(e|0))break a;J[f+12>>2]=c;return 0}J[f+12>>2]=c;j=0;h=J[f+16>>2];if(!h|J[h+ +32>>2])break a;e=J[h+8>>2];if(!((e|0)==J[h+24>>2]|e>>>0>2147483646))J[h+24>>2]=e;e=J[h+20>>2];f=J[h+4>>2];if(!((e|0)==(f|0)|f>>>0>2147483646)){J[h+20>>2]=f;e=f}if(!e)break a;e=J[c>>2];c:{if(!e)break c;d:{if(Ic(e,21452))if(Ic(e,22641))break d;c=J[b+16>>2];if(K[c|0]!=255|K[c+1|0]!=254)break d;J[b+16>>2]=c+2}e:{if(Ic(e,21461))break e;c=J[b+16>>2];if(K[c|0]!=254|K[c+1|0]!=255)break e;J[b+16>>2]=c+2}if(Ic(e,22406))break c;c=J[b+16>>2];if(K[c|0]!=239|K[c+1|0]!=187|K[c+2|0]!=191)break c;J[b+16>>2]=c+3}e= +J[b+16>>2]-J[b+12>>2]|0;wx(h,e);c=J[b>>2];J[c+20>>2]=J[c+16>>2];c=kL();l=J[b>>2];J[l+32>>2]=e;J[l+16>>2]=c;c=0;f=J[l+20>>2];f:{if(!f|J[f+32>>2])break f;c=J[f+8>>2];if(!((c|0)==J[f+24>>2]|c>>>0>2147483646))J[f+24>>2]=c;c=J[f+20>>2];e=J[f+4>>2];if((c|0)==(e|0)|e>>>0>2147483646)break f;J[f+20>>2]=e;c=e}g:{if(J[a+32>>2]){e=LC(l,1);break g}h=d;i=fc-96|0;fc=i;e=-1;h:{if(!l|!J[l+12>>2])break h;g=J[l+16>>2];if(!g)break h;k=J[l+20>>2];if(!k)break h;e=0;if(J[k+32>>2])break h;d=J[k+8>>2];if(!((d|0)==J[k+24>> +2]|d>>>0>2147483646))J[k+24>>2]=d;d=J[k+20>>2];f=J[k+4>>2];if(!((d|0)==(f|0)|f>>>0>2147483646)){J[k+20>>2]=f;d=f}if(!d)break h;i:{if(J[g+32>>2]){e=(h|0)<0?180:h;h=d>>>0>e>>>0?e:d;e=-1;f=0;break i}e=J[g+24>>2];f=J[g+8>>2];if(!((e|0)==(f|0)|f>>>0>2147483646)){J[g+24>>2]=f;e=f}j=J[g+20>>2];f=J[g+4>>2];if((j|0)==(f|0)|f>>>0>2147483646)f=j;else J[g+20>>2]=f;e=e+(f^-1)|0;f=(h|0)<0?180:h;h=d>>>0>f>>>0?f:d;d=h<<1;f=1;if(e>>>0>d>>>0)break i;j:{if((d|0)<=0)break j;jL(g,d);if(!J[g+32>>2])break j;e=-1;f=0;break i}d= +J[g+24>>2];e=J[g+8>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[g+24>>2]=e;d=e}e=J[g+20>>2];f=J[g+4>>2];if(!((e|0)==(f|0)|f>>>0>2147483646)){J[g+20>>2]=f;e=f}e=d+(e^-1)|0;f=1}d=f;J[i+92>>2]=h;J[i+88>>2]=e>>>0>=360?360:e;k:{l:{f=J[J[l+12>>2]+4>>2];if(!f)break l;if(d){d=J[g+8>>2];if(!((d|0)==J[g+24>>2]|d>>>0>2147483646))J[g+24>>2]=d;d=J[g+20>>2];e=J[g+4>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[g+20>>2]=e;d=e}d=d+J[g>>2]|0}else d=0;j=kc[f|0](d,i+88|0,J[k+32>>2]?0:J[k>>2],i+92|0)|0;wx(k,J[i+92>>2]);m:{if(J[g+ +32>>2])break m;e=J[g+24>>2];d=J[g+8>>2];if(!((e|0)==(d|0)|d>>>0>2147483646)){J[g+24>>2]=d;e=d}f=J[i+88>>2];h=J[g+20>>2];d=J[g+4>>2];if(!((h|0)==(d|0)|d>>>0>2147483646)){J[g+20>>2]=d;h=d}if(f>>>0>e-h>>>0)break m;d=f+h|0;J[g+20>>2]=d;J[g+8>>2]=e>>>0>=2147483647?2147483647:e;J[g+4>>2]=d>>>0>=2147483647?2147483647:d;if(d>>>0>=e>>>0)break m;H[d+J[g>>2]|0]=0}e=0;switch(j+3|0){case 0:break h;case 1:break l;default:break k}}h=J[k>>2];f=K[h|0];e=K[h+1|0];d=K[h+2|0];J[i+28>>2]=K[h+3|0];J[i+24>>2]=d;J[i+20>> +2]=e;J[i+16>>2]=f;d=i+32|0;Wi(d,49,19995,i+16|0);H[i+81|0]=0;J[i>>2]=d;Hc(0,0,0,0,0,27,6003,3,d,0,0,0,32407,i);e=-2;break h}e=(j|0)!=-1?j:0}fc=i+96|0}d=0;if((e|0)>=0){e=J[b>>2];f=J[e+20>>2];n:{if(!f|J[f+32>>2])break n;a=J[f+8>>2];if(!((a|0)==J[f+24>>2]|a>>>0>2147483646))J[f+24>>2]=a;d=J[f+20>>2];a=J[f+4>>2];if((d|0)==(a|0)|a>>>0>2147483646)break n;J[f+20>>2]=a;d=a}J[e+32>>2]=J[e+32>>2]+(c-d|0);j=0;d=J[e+16>>2];if(!d|J[d+32>>2])break a;a=J[d+8>>2];if(!((a|0)==J[d+24>>2]|a>>>0>2147483646))J[d+24>>2]= +a;c=J[d+20>>2];a=J[d+4>>2];if(!((c|0)==(a|0)|a>>>0>2147483646)){J[d+20>>2]=a;c=a}a=J[d>>2];J[b+12>>2]=a;J[b+16>>2]=a;J[b+20>>2]=a+c;return 0}Qr(a,33E3,0);break b}j=0;if(J[b+24>>2])break a;Qr(a,30772,0)}j=-1}return j}function NI(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=fc-416|0;fc=g;d=J[a+4>>2];a:{if((d|0)<0)break a;b:{c:{d:{e:{c=J[b+4>>2];switch(K[c|0]-239|0){case 0:break c;case 16:break d;case 15:break e;default:break b}}if(K[c+1|0]!=255)break b;J[g+12>>2]=2;if(!PZ(b,g+12|0,g+16|0))break a;d=0; +while(1){d=d+1|0;if((d|0)==100){f:{if((e|0)<0)break f;d=J[a+4>>2];if((e|0)>(d|0))break f;c=-1;g:{if((d|-2147483648)>>>0<=4294967195){c=d+100|0;f=J[a+8>>2];if((c|0)<=(f|0)){c=J[a>>2];break g}d=f<<1;c=f-1073741824>>>0<3221225473?c:(c|0)>(d|0)?c:d}J[a+8>>2]=c;c=Wd(J[a>>2],c,4);J[a>>2]=c;d=J[a+4>>2]}if((d|0)>(e|0)){c=(e<<2)+c|0;cd(c+400|0,c,d-e<<2);c=J[a>>2]}xc((e<<2)+c|0,g+16|0,400);J[a+4>>2]=J[a+4>>2]+100}e=e+100|0;d=0}if(PZ(b,g+12|0,(g+16|0)+(d<<2)|0))continue;break}if((e|0)<0|(d|0)<=0)break a;c=J[a+ +4>>2];if((e|0)>(c|0))break a;b=-1;h:{if((c^2147483647)>>>0>=d>>>0){b=c+d|0;f=J[a+8>>2];if((b|0)<=(f|0)){b=J[a>>2];break h}c=f<<1;b=f-1073741824>>>0<3221225473?b:(b|0)>(c|0)?b:c}J[a+8>>2]=b;b=Wd(J[a>>2],b,4);J[a>>2]=b;c=J[a+4>>2]}if((c|0)>(e|0)){b=(e<<2)+b|0;cd(b+(d<<2)|0,b,c-e<<2);b=J[a>>2]}xc((e<<2)+b|0,g+16|0,d<<2);J[a+4>>2]=J[a+4>>2]+d;break a}if(K[c+1|0]!=254)break b;J[g+12>>2]=2;if(!OZ(b,g+12|0,g+16|0))break a;d=0;while(1){d=d+1|0;if((d|0)==100){i:{if((e|0)<0)break i;d=J[a+4>>2];if((e|0)>(d| +0))break i;c=-1;j:{if((d|-2147483648)>>>0<=4294967195){c=d+100|0;f=J[a+8>>2];if((c|0)<=(f|0)){c=J[a>>2];break j}d=f<<1;c=f-1073741824>>>0<3221225473?c:(c|0)>(d|0)?c:d}J[a+8>>2]=c;c=Wd(J[a>>2],c,4);J[a>>2]=c;d=J[a+4>>2]}if((d|0)>(e|0)){c=(e<<2)+c|0;cd(c+400|0,c,d-e<<2);c=J[a>>2]}xc((e<<2)+c|0,g+16|0,400);J[a+4>>2]=J[a+4>>2]+100}e=e+100|0;d=0}if(OZ(b,g+12|0,(g+16|0)+(d<<2)|0))continue;break}if((e|0)<0|(d|0)<=0)break a;c=J[a+4>>2];if((e|0)>(c|0))break a;b=-1;k:{if((c^2147483647)>>>0>=d>>>0){b=c+d|0; +f=J[a+8>>2];if((b|0)<=(f|0)){b=J[a>>2];break k}c=f<<1;b=f-1073741824>>>0<3221225473?b:(b|0)>(c|0)?b:c}J[a+8>>2]=b;b=Wd(J[a>>2],b,4);J[a>>2]=b;c=J[a+4>>2]}if((c|0)>(e|0)){b=(e<<2)+b|0;cd(b+(d<<2)|0,b,c-e<<2);b=J[a>>2]}xc((e<<2)+b|0,g+16|0,d<<2);J[a+4>>2]=J[a+4>>2]+d;break a}if(K[c+1|0]!=187|K[c+2|0]!=191)break b;J[g+12>>2]=3;if(!xB(b,g+12|0,g+16|0))break a;d=0;while(1){d=d+1|0;if((d|0)==100){l:{if((e|0)<0)break l;d=J[a+4>>2];if((e|0)>(d|0))break l;c=-1;m:{if((d|-2147483648)>>>0<=4294967195){c=d+100| +0;f=J[a+8>>2];if((c|0)<=(f|0)){c=J[a>>2];break m}d=f<<1;c=f-1073741824>>>0<3221225473?c:(c|0)>(d|0)?c:d}J[a+8>>2]=c;c=Wd(J[a>>2],c,4);J[a>>2]=c;d=J[a+4>>2]}if((d|0)>(e|0)){c=(e<<2)+c|0;cd(c+400|0,c,d-e<<2);c=J[a>>2]}xc((e<<2)+c|0,g+16|0,400);J[a+4>>2]=J[a+4>>2]+100}e=e+100|0;d=0}h=g+16|0;if(xB(b,g+12|0,h+(d<<2)|0))continue;break}if((d|0)<=0)break a;n:{if((e|0)<0)break n;c=J[a+4>>2];if((c|0)<(e|0))break n;b=-1;o:{if((c^2147483647)>=(d|0)){f=J[a+8>>2];b=c+d|0;if((f|0)>=(b|0)){b=J[a>>2];break o}c=f<< +1;b=f-1073741824>>>0<3221225473?b:(b|0)>(c|0)?b:c}J[a+8>>2]=b;b=Wd(J[a>>2],b,4);J[a>>2]=b;c=J[a+4>>2]}if((c|0)>(e|0)){b=(e<<2)+b|0;cd(b+(d<<2)|0,b,c-e<<2);b=J[a>>2]}xc((e<<2)+b|0,h,d<<2);J[a+4>>2]=J[a+4>>2]+d}break a}c=-1;e=J[b>>2];p:{if((e|0)<=(d^2147483647)){c=d+e|0;f=J[a+8>>2];if((c|0)<=(f|0))break p;d=f<<1;c=f-1073741824>>>0<3221225473?c:(c|0)>(d|0)?c:d}J[a+8>>2]=c;i=a,j=Wd(J[a>>2],c,4),J[i>>2]=j;d=J[a+4>>2]}if((d|0)>0){c=J[a>>2];cd(c+(e<<2)|0,c,d<<2)}d=0;J[g+12>>2]=0;if((e|0)>0){c=J[a>>2];b= +J[b+4>>2];while(1){J[c+(d<<2)>>2]=J[(K[b+d|0]<<2)+2739744>>2];d=J[g+12>>2]+1|0;J[g+12>>2]=d;if((d|0)<(e|0))continue;break}}J[a+4>>2]=e+J[a+4>>2]}fc=g+416|0;return a}function _E(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=J[b+88>>2];j=J[g+40>>2];h=J[g+36>>2];H[a+2306|0]=e;H[a+2305|0]=c;H[a+2304|0]=d;J[a+2292>>2]=0;J[a+2296>>2]=0;b=K[g+45|0];f=K[g+44|0];a:{if((f|0)==(c|0))break a;i=(b|0)==3?8:f;b:{c:{d:{if((e|0)==1){e:switch(i-1|0){case 1:e=984;f:switch(c-4|0){case 4:e=985;break b;case 0:break b;case 12:break f; +default:break a}e=986;break b;case 3:e=987;g:switch(c-8|0){case 8:break g;case 0:break b;default:break a}e=988;break b;case 0:break d;case 7:break e;default:break a}e=989;if((c|0)==16)break b;break a}h:switch(i-1|0){case 1:e=990;i:switch(c-4|0){case 4:e=991;break b;case 12:break i;case 0:break b;default:break a}e=992;break b;case 3:e=993;j:switch(c-8|0){case 8:break j;case 0:break b;default:break a}e=994;break b;case 7:break h;case 0:break c;default:break a}e=995;if((c|0)==16)break b;break a}e=c<< +31|c-2>>>1;if(e>>>0>=8|!(139>>>e&1))break a;e=J[(e<<2)+213016>>2];break b}e=c<<31|c-2>>>1;if(e>>>0>=8|!(139>>>e&1))break a;e=J[(e<<2)+213048>>2]}J[a+2296>>2]=e}k:{l:{m:{n:{if(!((b|d)&255)){b=0;if(f>>>0<=8){b=(c|0)==16?996:997;J[a+2292>>2]=b}e=(c|0)==16?2:1;break n}if(!(b|(d|0)!=4)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1E3:b?998:999;e=b?4:2;break m}if(!(b|(d|0)!=2)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1003:b?1001:1002;e=b?6:3;break m}if(!(b|(d|0)!=6)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1006:b?1004:1005; +e=b?8:4;break m}if(!((d|0)!=4|(b|0)!=4)){b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1007;b=1007}e=(c|0)==16?4:2;break n}if(!((d|0)!=6|(b|0)!=4)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1010:b?1008:1009;e=b?8:4;break m}if(!((d|0)!=2|(b|0)!=2)){b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1011;b=1011}e=(c|0)==16?6:3;break n}if(!((d|0)!=6|(b|0)!=2)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1014:b?1012:1013;e=b?8:4;break m}if(!((d|0)!=2|(b|0)!=3)){b=(c|0)==16;J[a+2292>>2]=b?1015:1016;e=b?6:3;break m}e=(d|0)!=6;if(!(e| +(b|0)!=3)){b=(c|0)==16;J[a+2292>>2]=b?1017:1018;e=b?8:4;break m}if(!((b|0)!=6|e)){b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1019;b=1019}e=(c|0)==16?8:4;break n}if(!((d|0)!=8|(b|0)!=8)){b=0;if(f>>>0<=8){b=(c|0)==16?996:997;J[a+2292>>2]=b}e=(c|0)==16?2:1;break n}if(!((d|0)!=12|(b|0)!=8)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1E3:b?998:999;e=b?4:2;break m}if(!((d|0)!=10|(b|0)!=8)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1003:b?1001:1002;e=b?6:3;break m}if(!((d|0)!=14|(b|0)!=8)){b=(c|0)==16;J[a+2292>>2]=f>>>0>= +9?1006:b?1004:1005;e=b?8:4;break m}if(!((d|0)!=12|(b|0)!=12)){b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1007;b=1007}e=(c|0)==16?4:2;break n}if(!((d|0)!=14|(b|0)!=12)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1010:b?1008:1009;e=b?8:4;break m}if(!((d|0)!=10|(b|0)!=10)){b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]=1011;b=1011}e=(c|0)==16?6:3;break n}e=(d|0)!=14;if(!(e|(b|0)!=10)){b=(c|0)==16;J[a+2292>>2]=f>>>0>=9?1014:b?1012:1013;e=b?8:4;break m}if((b|0)!=14|e)break l;b=0;if(!((c|0)!=16|f>>>0>8)){J[a+2292>>2]= +1019;b=1019}e=(c|0)==16?8:4}if(!b)break l}J[a+2308>>2]=h;J[a+2300>>2]=g;i=P(e,h);l=P(i,j);k=kc[J[a+152>>2]](l)|0;if(!k){Jc(a,1,0,0);return 1}h=J[g+1176>>2];J[a+2316>>2]=k;J[a+2312>>2]=h;o:{if(!j){b=0;f=1;break o}h=0;while(1){p:{b=kc[J[a+2292>>2]](a)|0;J[a+2312>>2]=J[a+2312>>2]+J[g+1168>>2];J[a+2316>>2]=i+J[a+2316>>2];if(b)break p;h=h+1|0;if(j>>>0>h>>>0)continue}break}h=J[g+1176>>2];f=!b}if(h)kc[J[a+156>>2]](h,J[g+1172>>2]);J[g+1176>>2]=k;J[g+1172>>2]=l;J[g+1168>>2]=i;J[g+1164>>2]=e;H[g+45|0]=d;H[g+ +44|0]=c;J[g+64>>2]=0;J[g+844>>2]=0;H[g+55|0]=0;H[g+56|0]=0;if(!f)break k}b=0}return b}function Bna(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;J[a+8>>2]=340456;J[a+4>>2]=c;J[a>>2]=2442668;J[a+56>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+12>>2]=0;J[a+16>>2]=255;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=1071644672;J[699344]=0;f=_(2226,a+72|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{if((d| +0)!=1){J[a+440>>2]=340552;d=a+444|0;J[d>>2]=0;J[d+4>>2]=0;J[a+452>>2]=0;J[a+456>>2]=0;J[a+460>>2]=0;J[a+464>>2]=0;J[699344]=0;ga(2227,a+456|0,2442820,5)|0;e=J[699344];J[699344]=0;s:{t:{if((e|0)!=1){if(H[a+455|0]>=0)break t;J[a+448>>2]=0;d=J[a+444>>2];break s}b=Z()|0;if(H[a+467|0]<0)uc(J[a+456>>2]);if(H[a+455|0]>=0)break b;uc(J[a+444>>2]);break b}H[a+455|0]=0}J[d>>2]=0;I[a+488>>1]=0;J[a+480>>2]=0;J[a+484>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+492>>2]=0;J[a+496>>2]=0;J[a+500>>2]=0;J[a+504>>2]=0;J[a+ +576>>2]=340552;J[a+568>>2]=0;J[a+572>>2]=255;J[a+560>>2]=0;J[a+564>>2]=1075052544;J[a+556>>2]=0;J[a+552>>2]=2442776;J[a+544>>2]=0;J[a+548>>2]=120;J[a+536>>2]=0;J[a+540>>2]=0;J[a+528>>2]=0;J[a+532>>2]=1076756480;J[a+520>>2]=0;J[a+524>>2]=1076756480;J[a+516>>2]=0;J[a+512>>2]=2442724;d=a+580|0;J[d>>2]=0;J[d+4>>2]=0;J[a+588>>2]=0;J[a+592>>2]=0;J[a+596>>2]=0;J[a+600>>2]=0;J[699344]=0;ga(2227,a+592|0,2442820,5)|0;e=J[699344];J[699344]=0;u:{v:{if((e|0)!=1){if(H[a+591|0]>=0)break v;J[a+584>>2]=0;d=J[a+580>> +2];break u}b=Z()|0;if(H[a+603|0]<0)uc(J[a+592>>2]);if(H[a+591|0]>=0)break c;uc(J[a+580>>2]);break c}H[a+591|0]=0}J[d>>2]=0;I[a+624>>1]=0;J[a+616>>2]=0;J[a+620>>2]=0;J[a+608>>2]=0;J[a+612>>2]=0;J[a+628>>2]=0;J[a+632>>2]=0;J[a+636>>2]=0;J[a+640>>2]=0;J[699344]=0;g=_(2256,a+648|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break r;H[a+675|0]=0;J[a+652>>2]=a+656;J[a+656>>2]=0;J[a+660>>2]=0;H[a+1716|0]=0;J[a+692>>2]=-1;J[a+684>>2]=0;J[a+688>>2]=-306674912;J[a+676>>2]=0;J[a+680>>2]=1200;J[a+664>>2]=0;J[699344]= +0;d=a+1720|0;J[d+8>>2]=0;J[d+4>>2]=d;J[d>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break q;J[699344]=0;h=_(6606,a+1736|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break p;J[699344]=0;i=aa(6607,a+1768|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;J[699344]=0;j=aa(6608,a+1928|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;k=_(6609,a+1976|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;J[a+2704>>2]=0;J[a+2708>>2]=0;J[a+2696>>2]=0;J[a+2772>>2]=0;J[a+2736>>2]=0;J[a+2728>>2]=0;J[a+ +2732>>2]=1079115776;J[a+2720>>2]=0;J[a+2724>>2]=1079115776;H[a+2747|0]=0;H[a+2748|0]=0;H[a+2749|0]=0;H[a+2750|0]=0;H[a+2751|0]=0;H[a+2752|0]=0;H[a+2753|0]=0;H[a+2754|0]=0;c=a+2712|0;J[c>>2]=0;J[c+4>>2]=0;c=a+2755|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;c=a+2761|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;J[699344]=0;e=_(6610,a+2776|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;c=a+2792|0;J[a+2788>>2]=c; +J[c>>2]=0;J[c+4>>2]=0;J[699344]=0;da(6611,e|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break k;return a|0}b=Z()|0;break a}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;qr(a+2788|0,J[c>>2]);e5(e)}if(H[a+2759|0]<0)uc(J[a+2748>>2]);if(H[a+2747|0]<0)uc(J[a+2736>>2]);GU(k)}rU(j)}pU(i)}cU(h)}jU(d)}c=a+652|0;if(H[c+23|0]<0)uc(J[c+12>>2]);pr(c,J[c+4>>2]);Jd(g)}yk(a+576|0)}yk(a+440|0)}bo(f)}J[a+8>>2]=340456;c=J[a+36>>2];if(c){uc(c); +J[a+36>>2]=0}ba(b|0);B()}function sCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-32|0;fc=d;J[d+24>>2]=0;J[d+28>>2]=J[685894];J[699344]=0;da(5278,d+20|0,b|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){a=a+8|0;b=J[d+20>>2];c:{while(1){d:{J[699344]=0;c=d+24|0;e=ha(5279,b|0,c|0,0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;e:{f:{g:{h:{i:{if(e){J[699344]=0;c=pd(c,2411874,-1);e=J[699344];J[699344]=0;if((e|0)==1)break d;if(!c){c=J[a>>2];if(c){J[699344]=0;J[d+16>>2]=0;aa(5145,d+16|0,b|0)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break i;J[699344]=0;da(5375,c|0,J[d+16>>2]);c=J[699344];J[699344]=0;if((c|0)!=1){c=J[d+16>>2];J[d+16>>2]=0;if(!c)break e;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;break e}b=Z()|0;zc(d+16|0);break c}J[699344]=0;c=d+16|0;$(5376,c|0);e=J[699344];J[699344]=0;j:{k:{l:{if((e|0)!=1){J[699344]=0;aa(5153,a|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;c= +J[d+16>>2];J[d+16>>2]=0;m:{if(!c)break m;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break m;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[a>>2];J[699344]=0;J[d+16>>2]=0;aa(5145,d+16|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;J[699344]=0;da(5377,c|0,J[d+16>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break j;c=J[d+16>>2];J[d+16>>2]=0;if(!c)break e;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!= +1){if(e)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break e}break a}b=Z()|0;break c}b=Z()|0;zc(d+16|0);break c}b=Z()|0;break c}b=Z()|0;zc(d+16|0);break c}J[699344]=0;c=pd(d+24|0,2411888,-1);e=J[699344];J[699344]=0;if((e|0)==1)break d;if(c)break e;J[d+12>>2]=0;J[699344]=0;c=d+12|0;aa(5145,c|0,J[d+20>>2])|0;e=J[699344];J[699344]=0;n:{o:{p:{q:{if((e|0)!=1){J[699344]=0;da(5295,d+16|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break q;c=J[d+12>>2];J[d+12>>2]=0;r:{if(!c)break r;J[699344]= +0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break r;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[a>>2];if(!c)break p;J[699344]=0;da(5375,c|0,J[d+16>>2]);c=J[699344];J[699344]=0;if((c|0)!=1)break o;break g}b=Z()|0;break c}b=Z()|0;zc(d+12|0);break c}J[699344]=0;c=d+8|0;$(5376,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break n;J[699344]=0;aa(5153,a|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;c=J[d+8>>2];J[d+8>>2]=0;s:{if(!c)break s; +J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break s;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[a>>2];J[699344]=0;da(5377,c|0,J[d+16>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break g}c=J[d+16>>2];J[d+16>>2]=0;if(!c)break e;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break e}break a}b=Z()|0;break f}a=J[d+20>>2];J[d+20>>2]= +0;t:{if(!a)break t;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break t;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}wc(d+24|0);fc=d+32|0;return}b=Z()|0;break c}b=Z()|0;zc(d+8|0);break f}b=Z()|0}zc(d+16|0);break c}J[699344]=0;$(5332,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)continue}break}b=Z()|0}zc(d+20|0);break b}b=Z()|0}wc(d+24|0);ba(b|0);B()}ea(0)|0;Bc();B()}function NBa(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=fc+-64|0;fc=f;a:{b:{if(!K[b+89|0]){a=Qc(f+40|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);ba(b|0);B()}h=si();J[f+36>>2]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if(!J[b+100>>2])break v;J[699344]=0;e=f+40|0;ca(5401,e|0,c|0,0);g=J[699344];J[699344]=0;if((g|0)==1)break e;J[699344]=0;g=f+24|0;ca(5412,g|0,h|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break t;J[699344]=0;aa(5153,f+36|0,g|0)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break s;e=J[f+24>>2];J[f+24>>2]=0;w:{if(!e)break w;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(g)break w;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}e=f+40|0;wc(e);g=J[f+36>>2];if(!g)break v;J[699344]=0;e=aa(5149,e|0,2389819)|0;i=J[699344];J[699344]=0;if((i|0)==1)break q;i=J[J[g>>2]+8>>2];J[699344]=0;g=aa(i|0,g|0,e|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break p;wc(e);if(g)break u}J[699344]=0;e=f+16|0;da(5409,e|0,b| +0);g=J[699344];J[699344]=0;if((g|0)==1)break o;g=J[c+8>>2];g=J[(g?g+12|0:2743576)>>2];J[699344]=0;i=f+24|0;ca(5291,i|0,e|0,g|0);e=J[699344];J[699344]=0;if((e|0)==1)break n;J[699344]=0;e=f+32|0;ca(5412,e|0,h|0,i|0);h=J[699344];J[699344]=0;if((h|0)==1)break m;J[699344]=0;aa(5153,f+36|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;e=J[f+32>>2];J[f+32>>2]=0;x:{if(!e)break x;J[699344]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(h)break x;J[699344]=0;$(5147,e|0);e= +J[699344];J[699344]=0;if((e|0)==1)break a}e=f+24|0;wc(e);wc(f+16|0);h=J[f+36>>2];if(!h)break g;J[699344]=0;e=aa(5149,e|0,2389819)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i;g=J[J[h>>2]+8>>2];J[699344]=0;h=aa(g|0,h|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;wc(e);if(!h)break g}b=J[f+36>>2];J[a>>2]=0;J[699344]=0;aa(5145,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break f;b=Z()|0;break d}b=Z()|0;break r}b=Z()|0;zc(f+24|0)}wc(f+40|0);break d}b=Z()|0;break d}b=Z()|0;wc(e);break d}b=Z()| +0;break d}b=Z()|0;break j}b=Z()|0;break k}b=Z()|0;zc(f+32|0)}wc(f+24|0)}wc(f+16|0);break d}b=Z()|0;break d}b=Z()|0;wc(e);break d}J[a>>2]=0;if(d)break f;J[f+12>>2]=0;J[699344]=0;d=f+12|0;aa(5145,d|0,b|0)|0;e=J[699344];J[699344]=0;y:{z:{A:{if((e|0)!=1){e=K[b+88|0];h=J[b+84>>2];J[699344]=0;g=f+16|0;ma(5414,g|0,c|0,d|0,h|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break A;J[699344]=0;aa(5153,a|0,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break z;c=J[f+16>>2];J[f+16>>2]=0;B:{if(!c)break B;J[699344]=0;d= +J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break B;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[f+12>>2];J[f+12>>2]=0;C:{if(!c)break C;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break C;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[a>>2];J[699344]=0;da(5407,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;zc(a);break d}b=Z()|0;zc(a);break d}b=Z()|0;break y}b= +Z()|0;zc(f+16|0)}zc(f+12|0);zc(a);break d}a=J[f+36>>2];J[f+36>>2]=0;D:{if(!a)break D;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break c;if(b)break D;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c}fc=f- -64|0;return}b=Z()|0}zc(f+36|0);ba(b|0);B()}ea(0)|0;Bc()}B()}ea(0)|0;Bc();B()}function te(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;a:{if(!a|!b)break a;if((c|0)<0)c=Yc(b);l=J[a+28>>2];b:{if(l){if(c>>>0>1073741823)break a;if(c>>> +0>>0)break b;break a}if(c>>>0>1073741823)break a}c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{e=J[a+8>>2];if((e|0)==128){g=K[b|0]<<5;if(c>>>0<11)break m;g=K[(b+c|0)-1|0]+g|0;break l}if(!c)break c;g=c&3;i=J[a+24>>2];if(c>>>0>=4){f=c&-4;while(1){i=P(K[b+d|0]+i|0,1025);i=P(K[(d|1)+b|0]+(i>>>6^i)|0,1025);i=P(K[(d|2)+b|0]+(i>>>6^i)|0,1025);i=P(K[(d|3)+b|0]+(i>>>6^i)|0,1025);i=i>>>6^i;d=d+4|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}if(g)while(1){f=P(K[b+d|0]+i|0,1025);i=f>>>6^f;d=d+1|0;j=j+1|0;if((g|0)!=(j|0))continue; +break}d=P(i,9);g=P(d>>>11^d,32769);break c}switch(c-2|0){case 4:break h;case 5:break i;case 6:break j;case 7:break k;case 8:break l;case 0:break d;case 1:break e;case 2:break f;case 3:break g;default:break c}}g=K[b+9|0]+g|0}g=K[b+8|0]+g|0}g=K[b+7|0]+g|0}g=K[b+6|0]+g|0}g=K[b+5|0]+g|0}g=K[b+4|0]+g|0}g=K[b+3|0]+g|0}g=K[b+2|0]+g|0}g=K[b+1|0]+g|0}n=(g>>>0)%(e>>>0)|0;i=J[a+4>>2]+P(n,20)|0;n:{if(!J[i+12>>2]){j=0;i=0;break n}j=0;h=J[i>>2];if(h)while(1){d=i;i=h;if(!(J[d+16>>2]!=(g|0)|J[d+8>>2]!=(c|0))){f= +J[d+4>>2];if(!dd(f,b,c))break a}j=j+1|0;h=J[i>>2];if(h)continue;break}if(J[i+16>>2]!=(g|0)|J[i+8>>2]!=(c|0))break n;f=J[i+4>>2];if(!dd(f,b,c))break a}m=J[a+20>>2];o:{if(!m)break o;d=128;k=J[m+8>>2];p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{if((e|0)==128){e=g;if((k|0)==128)break p;if((c|0)>0)break B;e=0;break A}e=g;d=k;if((d|0)!=128)break p;e=K[b|0]<<5;if((c|0)<11)break z;e=K[(b+c|0)-1|0]+e|0;break y}o=c&3;h=J[m+24>>2];f=0;C:{if(c>>>0<4){d=0;break C}p=c&-4;d=0;e=0;while(1){h=P(K[b+d|0]+h|0,1025);h=P(K[(d| +1)+b|0]+(h>>>6^h)|0,1025);h=P(K[(d|2)+b|0]+(h>>>6^h)|0,1025);h=P(K[(d|3)+b|0]+(h>>>6^h)|0,1025);h=h>>>6^h;d=d+4|0;e=e+4|0;if((p|0)!=(e|0))continue;break}}if(o)while(1){e=P(K[b+d|0]+h|0,1025);h=e>>>6^e;d=d+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}d=P(h,9);e=P(d>>>11^d,32769)}d=k;break p}d=128;switch(c-2|0){case 0:break q;case 1:break r;case 2:break s;case 3:break t;case 4:break u;case 5:break v;case 6:break w;case 7:break x;case 8:break y;default:break p}}e=K[b+9|0]+e|0}e=K[b+8|0]+e|0}e=K[b+7|0]+ +e|0}e=K[b+6|0]+e|0}e=K[b+5|0]+e|0}e=K[b+4|0]+e|0}e=K[b+3|0]+e|0}e=K[b+2|0]+e|0}e=K[b+1|0]+e|0;d=128}d=J[m+4>>2]+P((e>>>0)%(d>>>0)|0,20)|0;if(!J[d+12>>2])break o;f=J[d>>2];if(f)while(1){k=d;d=f;if(!(J[k+16>>2]!=(e|0)|J[k+8>>2]!=(c|0))){f=J[k+4>>2];if(!dd(f,b,c))break a}j=j+1|0;f=J[d>>2];if(f)continue;break}if(J[d+16>>2]!=(e|0)|J[d+8>>2]!=(c|0))break o;f=J[d+4>>2];if(!dd(f,b,c))break a}D:{E:{F:{d=J[a+16>>2];if(!d)break F;e=0;h=0;while(1){f=J[d+4>>2];if(J[d+8>>2]-f>>>0>c>>>0)break D;f=J[d+12>>2];h=f>>> +0>h>>>0?f:h;e=e+f|0;d=J[d>>2];if(d)continue;break}if(l){f=0;if(e>>>0>l>>>0)break a}if(!h)break F;d=h<<2;break E}d=1E3}f=0;e=c<<2;e=d>>>0>e>>>0?d:e;d=kc[J[663195]](e+24|0)|0;if(!d)break a;J[d+16>>2]=0;J[d+12>>2]=e;f=d+20|0;J[d+4>>2]=f;J[d+8>>2]=e+f;J[d>>2]=J[a+16>>2];J[a+16>>2]=d}b=xc(f,b,c);e=J[d+4>>2]+c|0;J[d+4>>2]=e+1;f=0;H[e|0]=0;J[d+16>>2]=J[d+16>>2]+1;if(!b)break a;G:{if(!i){d=J[a+4>>2]+P(n,20)|0;J[d+8>>2]=c;J[d+4>>2]=b;J[d+16>>2]=g;J[d+12>>2]=1;J[d>>2]=0;break G}d=kc[J[663195]](20)|0;if(!d)break a; +J[d+8>>2]=c;J[d+4>>2]=b;J[d+16>>2]=g;J[d+12>>2]=1;J[d>>2]=0;J[i>>2]=d}J[a+12>>2]=J[a+12>>2]+1;H:{if(j>>>0<4)break H;c=J[a+8>>2];if(c>>>0>2730)break H;if(q2(a,P(c,6)))break a}f=b}return f}function Qhb(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;e=fc-16|0;fc=e;k=J[b+16>>2];l=J[b+8>>2];d=J[b>>2];o=J[a+492>>2];c=kc[J[b+36>>2]](b)|0;a:{if((c|0)<0){J[b+12>>2]=3;break a}d=l-d>>3;f=(c|0)<(d|0)?c:d;if(J[b+12>>2]|!f)break a;h=b+260|0;m=b+156|0;i=b+208| +0;b:{if(!J[b+152>>2]){d=f+6|0;c=kc[J[J[o>>2]>>2]](i,d,k)|0;if(c)break b;c=kc[J[J[o>>2]>>2]](m,d,k)|0;if(c)break b;c=kc[J[J[o>>2]>>2]](h,4,k)|0;J[e+12>>2]=c;if(c)break b}kc[J[b+28>>2]](b);c=3;d=J[b>>2];if(l>>>0<=d>>>0)break b;s=f+5|0;f=0;c:{d:{while(1){e:{f:{if(d+3>>>0>=l>>>0)break f;g:switch(K[d+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break g;default:break f}h:switch(K[d|0]-100|0){case 0:if(!f|(K[d+1|0]!= +101|K[d+2|0]!=102))break f;break c;case 1:break h;default:break f}if(K[d+1|0]!=110)break f;if(K[d+2|0]==100)break e}kc[J[b+32>>2]](b);n=J[b>>2];if(n>>>0>=l>>>0){J[b+12>>2]=3;break a}if(J[b+12>>2])break a;i:{if(K[d|0]!=47)break i;if(d+2>>>0>=l>>>0){J[e+12>>2]=3;break d}j=J[J[a+128>>2]+52>>2];g=J[b+8>>2];kc[J[b+28>>2]](b);j:{c=J[b>>2];k:{if(c>>>0>=g>>>0|K[c|0]-48>>>0>9)break k;c=kc[J[b+36>>2]](b)|0;kc[J[b+32>>2]](b);if((c|0)<0)break k;t=g;q=J[b>>2];g=q+1|0;if((c|0)<(t-g|0))break j}if(j)break a;J[b+ +12>>2]=3;break a}J[b>>2]=(c+q|0)+1;if(J[b+12>>2])break a;if(J[b+152>>2])break i;d=d+1|0;n=n-d|0;j=kc[J[b+200>>2]](m,f,d,n+1|0)|0;J[e+12>>2]=j;if(j)break d;j=f<<2;H[n+J[j+J[b+180>>2]>>2]|0]=0;if(K[d|0]==46){d=Ic(241966,J[j+J[b+180>>2]>>2]);r=d?r:1;p=d?p:f}d=J[a+172>>2];l:{if(!((d|0)<0|(f|0)>=(s|0))){if(c>>>0<=d>>>0){J[e+12>>2]=3;break d}d=he(k,c,e+12|0);if(J[e+12>>2])break d;d=xc(d,g,c);kc[J[o+16>>2]](d,c,4330);g=J[a+172>>2];u=e,v=kc[J[b+252>>2]](i,f,g+d|0,c-g|0)|0,J[u+12>>2]=v;if(d)kc[J[k+8>>2]](k, +d);d=J[e+12>>2];break l}d=kc[J[b+252>>2]](i,f,g,c)|0;J[e+12>>2]=d}if(d)break d;f=!d+f|0}kc[J[b+28>>2]](b);d=J[b>>2];if(l>>>0>d>>>0)continue}break}if(f)break c;J[b+12>>2]=3;break a}c=J[e+12>>2];break b}J[b+152>>2]=f;if(r&255){a=J[J[b+180>>2]>>2];if(!Ic(241966,a))break a;c=kc[J[b+304>>2]](h,0,a,J[J[b+184>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+304>>2]](h,1,J[J[b+232>>2]>>2],J[J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;a=p<<2;c=kc[J[b+304>>2]](h,2,J[a+J[b+180>>2]>>2],J[a+J[b+184>>2]>>2])|0;J[e+ +12>>2]=c;if(c)break b;c=kc[J[b+304>>2]](h,3,J[a+J[b+232>>2]>>2],J[a+J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+200>>2]](m,p,J[J[b+284>>2]>>2],J[J[b+288>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+252>>2]](i,p,J[J[b+284>>2]+4>>2],J[J[b+288>>2]+4>>2])|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+200>>2]](m,0,J[J[b+284>>2]+8>>2],J[J[b+288>>2]+8>>2])|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+252>>2]](i,0,J[J[b+284>>2]+12>>2],J[J[b+288>>2]+12>>2])|0;if(c)break b;break a}H[e+8|0]=K[330912];J[e+4>>2]=K[330908]| +K[330909]<<8|(K[330910]<<16|K[330911]<<24);c=kc[J[b+304>>2]](h,0,J[J[b+180>>2]>>2],J[J[b+184>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+304>>2]](h,1,J[J[b+232>>2]>>2],J[J[b+236>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+200>>2]](m,0,241966,8)|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+252>>2]](i,0,e+4|0,5)|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+200>>2]](m,f,J[J[b+284>>2]>>2],J[J[b+288>>2]>>2])|0;J[e+12>>2]=c;if(c)break b;c=kc[J[b+252>>2]](i,f,J[J[b+284>>2]+4>>2],J[J[b+288>>2]+4>>2])|0;if(c)break b; +J[b+152>>2]=J[b+152>>2]+1;break a}J[b+12>>2]=c}fc=e+16|0}function gw(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc+-64|0;fc=c;if(!K[2774916]){Dn(2774908,50);H[2774916]=1}if(!K[2774928]){Dn(2774920,9);H[2774928]=1}g=rl(c+56|0,2394365);a:{b:{c:switch(J[a+8>>2]-1|0){case 0:J[699344]=0;e=c+32|0;ca(5218,e|0,2385268,2774908);d=J[699344];J[699344]=0;d:{e:{f:{g:{h:{i:{j:{k:{l:{if((d|0)!=1){J[699344]=0;d=c+40|0;ca(5291,d|0,e|0,J[(b<<2)+2401568>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break l;J[699344]=0;f= +c+48|0;ca(5292,f|0,d|0,2774920);b=J[699344];J[699344]=0;if((b|0)==1)break k;a=J[a+20>>2];J[699344]=0;b=aa(5290,c+24|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;ca(5292,c|0,f|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;aa(5340,g|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;wc(c);wc(b);wc(f);wc(d);wc(e);break b}a=Z()|0;break a}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;break f}a=Z()|0;break g}a=Z()|0;wc(c)}wc(b)}wc(c+48|0)}wc(c+40|0)}wc(c+32|0);break a;case 1:J[699344]= +0;e=c+32|0;ca(5218,e|0,2387188,2774908);d=J[699344];J[699344]=0;m:{n:{o:{p:{q:{r:{s:{if((d|0)!=1){J[699344]=0;d=c+40|0;ca(5291,d|0,e|0,J[(b<<2)+2401568>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break s;J[699344]=0;b=c+48|0;ca(5292,b|0,d|0,2774920);f=J[699344];J[699344]=0;if((f|0)==1)break r;J[699344]=0;ca(5292,c|0,b|0,a+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break q;J[699344]=0;aa(5340,g|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;wc(c);wc(b);wc(d);wc(e);break b}a=Z()|0;break a}a=Z()|0; +break m}a=Z()|0;break n}a=Z()|0;break o}a=Z()|0;wc(c)}wc(c+48|0)}wc(c+40|0)}wc(c+32|0);break a;case 2:J[699344]=0;e=c+32|0;ca(5218,e|0,2387777,2774908);d=J[699344];J[699344]=0;t:{u:{v:{w:{x:{y:{z:{if((d|0)!=1){J[699344]=0;d=c+40|0;ca(5291,d|0,e|0,J[(b<<2)+2401568>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break z;J[699344]=0;b=c+48|0;ca(5292,b|0,d|0,2774920);f=J[699344];J[699344]=0;if((f|0)==1)break y;J[699344]=0;ca(5292,c|0,b|0,a+32|0);a=J[699344];J[699344]=0;if((a|0)==1)break x;J[699344]=0;aa(5340, +g|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break w;wc(c);wc(b);wc(d);wc(e);break b}a=Z()|0;break a}a=Z()|0;break t}a=Z()|0;break u}a=Z()|0;break v}a=Z()|0;wc(c)}wc(c+48|0)}wc(c+40|0)}wc(c+32|0);break a;case 3:J[699344]=0;e=c+32|0;ca(5218,e|0,2388285,2774908);d=J[699344];J[699344]=0;A:{B:{C:{D:{E:{F:{G:{if((d|0)!=1){J[699344]=0;d=c+40|0;ca(5291,d|0,e|0,J[(b<<2)+2401568>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break G;J[699344]=0;b=c+48|0;ca(5292,b|0,d|0,2774920);f=J[699344];J[699344]=0;if((f|0)== +1)break F;J[699344]=0;ca(5292,c|0,b|0,a+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break E;J[699344]=0;aa(5340,g|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break D;wc(c);wc(b);wc(d);wc(e);break b}a=Z()|0;break a}a=Z()|0;break A}a=Z()|0;break B}a=Z()|0;break C}a=Z()|0;wc(c)}wc(c+48|0)}wc(c+40|0)}wc(c+32|0);break a;default:break c}J[699344]=0;a=c+48|0;ca(5218,a|0,2395204,2774908);e=J[699344];J[699344]=0;H:{I:{J:{if((e|0)!=1){J[699344]=0;ca(5291,c|0,a|0,J[(b<<2)+2401568>>2]);b=J[699344];J[699344]=0; +if((b|0)==1)break J;J[699344]=0;aa(5340,g|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break I;wc(c);wc(a);break b}a=Z()|0;break a}a=Z()|0;break H}a=Z()|0;wc(c)}wc(c+48|0);break a}a=J[g>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;b=ja(5178,c|0,a|0,2389637,334,2401651,0)|0;a=J[699344];J[699344]=0;K:{if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break K;B()}a=Z()|0;break a}a=Z()|0;Kc(b)}wc(g);ba(a|0);B()}function zo(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,y=0;if(J[698530]<0)fV();g=e>>1;if((g|0)>=(f|0)){y=c-1|0;while(1){o=g;n=P(d,g);w=n<<1;m=(y|0)/(g|0)|0;if((m|0)>=-3){g=0;p=P(n,3);q=0-p|0;r=0-n|0;s=w<<1;j=a;while(1){k=g;t=b<<1;x=t+j|0;u=g>>>0<3;h=g+3|0;a:{b:{if(!(u|(h|0)>(m|0))){g=j;if((b|0)<=0)break a;while(1){I[g>>1]=L[g>>1]-((P(I[g+w>>1]+I[(r<<1)+g>>1]|0,9)-(I[(q<<1)+g>>1]+I[(p<<1)+g>>1]|0)|0)+16>>>5|0);g=(o<<1)+g|0;if(x>>>0>g>>>0)continue;break}break b}if((k|0)>(m|0))break b;g= +(h|0)<=(m|0)?(p<<1)+j|0:0;i=(k|1)<=(m|0)?j+w|0:0;if(!u){h=j;if((b|0)<=0)break a;while(1){l=I[(r<<1)+h>>1];v=I[(q<<1)+h>>1];I[h>>1]=L[h>>1]-((P(l+(i?I[i>>1]:0)|0,9)-(v+(g?I[g>>1]:0)|0)|0)+16>>>5|0);l=o<<1;g=g?l+g|0:0;i=i?i+l|0:0;h=h+l|0;if(x>>>0>h>>>0)continue;break}break b}if(k){h=j;if((b|0)<=0)break a;while(1){l=I[(r<<1)+h>>1];I[h>>1]=L[h>>1]-((P(l+(i?I[i>>1]:0)|0,9)-(g?I[g>>1]:0)|0)+16>>>5|0);l=o<<1;g=g?l+g|0:0;i=i?i+l|0:0;h=h+l|0;if(x>>>0>h>>>0)continue;break}break b}h=j;if((b|0)<=0)break a;while(1){I[h>> +1]=L[h>>1]-((P(i?I[i>>1]:0,9)-(g?I[g>>1]:0)|0)+16>>>5|0);l=o<<1;g=g?l+g|0:0;i=i?i+l|0:0;h=h+l|0;if(x>>>0>h>>>0)continue;break}}h=q<<1;g=h+j|0;l=t+g|0;if(!(k>>>0<6|(k|0)>(m|0))){if((b|0)<=0)break a;while(1){I[g>>1]=L[g>>1]+((P(I[g+w>>1]+I[(r<<1)+g>>1]|0,9)-(I[g+h>>1]+I[(p<<1)+g>>1]|0)|0)+8>>>4|0);g=(o<<1)+g|0;if(l>>>0>g>>>0)continue;break}break a}if(u|(b|0)<=0)break a;i=(((k-2|0)>(m|0)?r:n)<<1)+g|0;while(1){I[g>>1]=L[g>>1]+((I[(r<<1)+g>>1]+I[i>>1]|0)+1>>>1|0);h=o<<1;i=h+i|0;g=g+h|0;if(l>>>0>g>>>0)continue; +break}}g=k+2|0;j=j+s|0;if((k-1|0)<=(m|0))continue;break}}if((c|0)>0){p=e&-2;r=0;q=P(o,3);u=0-q|0;t=a;while(1){g=t;i=0;j=0;e=0;v=0;if((b|0)>0){i=(b|0)>(o|0)?I[(o<<1)+g>>1]:i;j=(b|0)>(q|0)?I[(q<<1)+g>>1]:j;e=I[g>>1]-((P(i,9)-j|0)+16>>5)|0;I[g>>1]=e;g=(p<<1)+g|0}n=(b<<1)+t|0;c:{if(n>>>0<=g>>>0){k=0;h=j;m=e;break c}l=I[g>>1];h=j;m=P(i+h|0,9);k=(q<<1)+g|0;if(k>>>0>>0)h=I[k>>1];m=l-((m-h|0)+16>>5)|0;I[g>>1]=m;g=(p<<1)+g|0;k=i;i=j}d:{if(g>>>0>=n>>>0){j=h;l=m;break d}j=h;l=(q<<1)+g|0;if(l>>>0>>0)j= +I[l>>1];l=I[g>>1]-((P(h+i|0,9)-(j+k|0)|0)+16>>5)|0;I[g>>1]=l;k=(u<<1)+g|0;I[k>>1]=L[k>>1]+((e+m|0)+1>>>1|0);g=(p<<1)+g|0;k=i;i=h;v=e;e=m}s=q<<1;h=s+g|0;if(n>>>0>h>>>0)while(1){h=I[h>>1];m=I[g>>1]-((P(i+j|0,9)-(h+k|0)|0)+16>>5)|0;I[g>>1]=m;k=(u<<1)+g|0;I[k>>1]=L[k>>1]+((P(e+l|0,9)-(m+v|0)|0)+8>>>4|0);k=i;i=j;j=h;v=e;e=l;l=m;g=(p<<1)+g|0;h=s+g|0;if(n>>>0>h>>>0)continue;break}e:{if(g>>>0>=n>>>0){h=l;break e}k=I[g>>1]-((P(i+j|0,9)-k|0)+16>>5)|0;I[g>>1]=k;s=u<<1;h=s+g|0;I[h>>1]=L[h>>1]+((P(e+l|0,9)-(k+ +v|0)|0)+8>>>4|0);m=p<<1;g=m+g|0;if(n>>>0<=g>>>0){e=l;h=k;break e}i=I[g>>1]-((P(j,9)-i|0)+16>>5)|0;I[g>>1]=i;h=g+s|0;I[h>>1]=L[h>>1]+((P(k+l|0,9)-(e+i|0)|0)+8>>>4|0);g=g+m|0;if(n>>>0<=g>>>0){e=k;h=i;break e}h=I[g>>1]-(16-j>>5)|0;I[g>>1]=h;e=g+s|0;I[e>>1]=L[e>>1]+((P(i+k|0,9)-(h+l|0)|0)+8>>>4|0);e=i;g=g+m|0;if(n>>>0<=g>>>0)break e;while(1){j=e;e=h;i=g+s|0;l=P(h+j|0,9);h=I[g>>1];I[i>>1]=L[i>>1]+((l-(k+h|0)|0)+8>>>4|0);k=j;g=g+m|0;if(n>>>0>g>>>0)continue;break}}i=u<<1;j=i+g|0;f:{if(j>>>0>=n>>>0)break f; +k=h+1|0;if(j>>>0>=t>>>0)I[j>>1]=L[j>>1]+(e+k>>>1|0);j=p<<1;e=j+g|0;g=i+e|0;if(n>>>0<=g>>>0)break f;h=h+k>>>1|0;while(1){if(g>>>0>=t>>>0)I[g>>1]=h+L[g>>1];e=e+j|0;g=i+e|0;if(n>>>0>g>>>0)continue;break}}t=t+w|0;r=o+r|0;if((r|0)<(c|0))continue;break}}e=o;g=e>>1;if((g|0)>=(f|0))continue;break}}}function Xk(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;l=H[a+201|0]&1?1088:64;p=J[a+188>>2];m=J[a+52>>2];f=K[a+200|0];a:{if(!f){k=c?2048:3840;while(1){e=L[m+(g<<1)>>1];b:{if(e>>>0>l>>> +0){n=m+(e<<1)|0;j=0;while(1){e=L[n+(j<<1)>>1];c:{if(e){h=p+(e<<1)|0;o=i&15;if(i&1){if(k>>>0<=L[h>>1])kc[J[b+4>>2]](J[b>>2],i);h=h+2|0;i=i+1|0}f=i;i=f;if((o|0)==15)break c;while(1){if(k>>>0<=L[h>>1])kc[J[b+4>>2]](J[b>>2],f);if(k>>>0<=L[h+2>>1])kc[J[b+4>>2]](J[b>>2],f+1|0);h=h+4|0;f=f+2|0;i=f;if(f&15)continue;break}break c}i=i+16|0}j=j+1|0;if((j|0)!=64)continue;break}break b}i=i+1024|0}g=g+1|0;if((l|0)!=(g|0))continue;break}break a}k=3;d:{e:switch(f-2|0){case 1:k=4;break d;case 0:case 7:break d;default:break e}k= +2}n=k<<4;o=l>>>1|0;r=k-2|0;while(1){f=L[m+(h<<1)>>1];f:{if(f>>>0>o>>>0){s=m+(f<<2)|0;i=0;while(1){f=J[s+(i<<2)>>2];g:{if(f){h=f>>>16|0;f=p+P(n,f&65535)|0;h:switch(d|0){case 0:while(1){i:{if(h&1){kc[J[b+4>>2]](J[b>>2],g);f=f+k|0;break i}if((c|0)!=1)break i;j=0;j:switch(r|0){case 2:j=K[f|0];f=f+1|0;case 1:j=K[f|0]|j;f=f+1|0;break;case 0:break j;default:break i}if(K[f+1|0]|(K[f|0]|j&255))kc[J[b+4>>2]](J[b>>2],g);f=f+2|0}h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 1:while(1){if(!(!(h&1)&(c| +0)!=1|L[f>>1]<256))kc[J[b+4>>2]](J[b>>2],g);f=f+2|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 2:while(1){if(!(!(h&1)&(c|0)!=1|(K[f|0]+127&255)>>>0>1))kc[J[b+4>>2]](J[b>>2],g);f=f+3|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 3:while(1){if(!(!(h&1)&(c|0)!=1|(L[f>>1]+32448&65535)>>>0>28348))kc[J[b+4>>2]](J[b>>2],g);f=f+2|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 4:while(1){k:{if(!(h&1)&(c|0)!=1)break k;j=L[f>>1];if((j+24159&65535)>>>0>23901|(j+95&254)>>>0>93)break k; +kc[J[b+4>>2]](J[b>>2],g)}f=f+2|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;case 5:while(1){l:{if(!(h&1)&(c|0)!=1)break l;j=L[f>>1];if((j+24159&65535)>>>0>23645|(j+95&254)>>>0>93)break l;kc[J[b+4>>2]](J[b>>2],g)}f=f+2|0;h=h>>>1|0;g=g+1|0;if(g&15)continue;break}break g;default:break h}J[e>>2]=5;return}g=g+16|0}i=i+1|0;if((i|0)!=64)continue;break}break f}g=g+1024|0}q=q+1|0;h=q&65535;if(l>>>0>h>>>0)continue;break}}j=0;i=fc-48|0;fc=i;f=J[a+224>>2];m:{if(!f)break m;k=J[f+44>>2];h=3;if((d|0)!=2)h= +d?2:K[a+200|0]==219?2:1;if((k|0)<=0)break m;m=f+J[f+60>>2]|0;p=f+J[f+52>>2]|0;l=f+J[f+40>>2]|0;e=0;n=d-2|0;while(1){a=L[l+(j<<1)>>1];n:{if((a|0)>(k|0)){o=l+(a<<1)|0;g=0;while(1){a=L[o+(g<<1)>>1];o:{if(a){a=p+(a<<3)|0;while(1){d=J[m+(L[a>>1]<<2)>>2];p:{if(!d)break p;if(d>>>0<=16777215){if(e>>>0<=65535){I[i>>1]=e;WC(f,b,c,h,e,i,1,d);break p}I[i+2>>1]=e&1023|56320;I[i>>1]=(e>>>10|0)-10304;WC(f,b,c,h,e,i,2,d);break p}q:{if(!c){if((d&-1610612736)==-2147483648)break q;break p}if(d&536870912)break p}if((d>>> +24&31)>>>0>>0)break p;r:{s:switch(n|0){case 0:if((d&520093696)!=50331648)break p;if((d&16711680)>>>0<8585216)break r;break p;case 1:if((d&520093696)!=33554432)break p;if((d&16777215)-33088>>>0<28349)break r;break p;case 2:if((d&520093696)!=33554432|(d+24159&65534)>>>0>23901)break p;if((d+95&254)>>>0<94)break r;break p;case 3:break s;default:break r}if((d&520093696)!=33554432|(d+24159&65534)>>>0>23645|(d+95&254)>>>0>93)break p}kc[J[b+4>>2]](J[b>>2],e)}a=a+2|0;e=e+1|0;if(e&15)continue;break}break o}e= +e+16|0}g=g+1|0;if((g|0)!=64)continue;break}break n}e=e+1024|0}j=j+1|0;if((k|0)!=(j|0))continue;break}}fc=i+48|0}function F2(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;d=J[a+12>>2]-5|0;e=J[a+44>>2];m=d>>>0>>0?d:e;g=J[J[a>>2]+4>>2];n=(b|0)!=4;a:{while(1){h=1;f=J[a>>2];d=J[f+16>>2];c=J[a+5820>>2]+42>>3;if(d>>>0>>0)break a;j=J[a+108>>2];k=J[a+92>>2];i=j-k|0;e=i+J[f+4>>2]|0;d=d-c|0;c=d>>>0>e>>>0?e:d;d=c>>>0>=65535?65535:c;if(m>>>0>d>>>0)if(!c&n|(!b|(d|0)!=(e|0)))break a; +h=(b|0)==4&(d|0)==(e|0);RC(a,0,0,h);H[(J[a+8>>2]+J[a+20>>2]|0)-4|0]=d;H[(J[a+8>>2]+J[a+20>>2]|0)-3|0]=d>>>8;e=d^-1;H[(J[a+8>>2]+J[a+20>>2]|0)-2|0]=e;H[(J[a+8>>2]+J[a+20>>2]|0)-1|0]=e>>>8;e=J[a>>2];c=J[e+28>>2];Uh(c);f=J[c+20>>2];l=J[e+16>>2];f=f>>>0>>0?f:l;b:{if(!f)break b;xc(J[e+12>>2],J[c+16>>2],f);J[e+12>>2]=f+J[e+12>>2];J[c+16>>2]=f+J[c+16>>2];J[e+20>>2]=f+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-f;e=J[c+20>>2];J[c+20>>2]=e-f;if((e|0)!=(f|0))break b;J[c+16>>2]=J[c+8>>2]}if((j|0)!=(k|0)){e=d>>>0>i>>> +0?i:d;xc(J[J[a>>2]+12>>2],J[a+56>>2]+J[a+92>>2]|0,e);c=J[a>>2];J[c+12>>2]=e+J[c+12>>2];J[c+16>>2]=J[c+16>>2]-e;J[c+20>>2]=e+J[c+20>>2];J[a+92>>2]=e+J[a+92>>2];d=d-e|0}if(d){c=J[a>>2];e=J[c+12>>2];f=J[c+4>>2];if(f){i=f;f=d>>>0>f>>>0?f:d;J[c+4>>2]=i-f;e=xc(e,J[c>>2],f);c:{d:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:o=c,p=Zo(J[c+48>>2],e,f),J[o+48>>2]=p;break c;case 1:break d;default:break c}o=c,p=ig(J[c+48>>2],e,f),J[o+48>>2]=p}J[c>>2]=f+J[c>>2];J[c+8>>2]=f+J[c+8>>2];c=J[a>>2];e=J[c+12>>2]}J[c+12>>2]= +d+e;J[c+16>>2]=J[c+16>>2]-d;J[c+20>>2]=J[c+20>>2]+d}if(!h)continue;break}f=J[a>>2];h=0}d=J[f+4>>2];e:{if((d|0)==(g|0)){d=J[a+108>>2];break e}c=g-d|0;d=J[a+44>>2];f:{if(c>>>0>=d>>>0){J[a+5808>>2]=2;xc(J[a+56>>2],J[f>>2]-d|0,d);e=J[a+44>>2];J[a+108>>2]=e;d=e;break f}e=J[a+108>>2];g:{if(c>>>0>2]-e>>>0)break g;e=e-d|0;J[a+108>>2]=e;f=J[a+56>>2];xc(f,d+f|0,e);d=J[a+5808>>2];if(d>>>0>1)break g;J[a+5808>>2]=d+1}xc(J[a+56>>2]+J[a+108>>2]|0,J[J[a>>2]>>2]-c|0,c);d=c+J[a+108>>2]|0;J[a+108>>2]=d;e=J[a+ +44>>2]}J[a+92>>2]=d;f=e;e=J[a+5812>>2];f=f-e|0;J[a+5812>>2]=(c>>>0>>0?c:f)+e}if(M[a+5824>>2]>>0)J[a+5824>>2]=d;c=3;h:{if(!h)break h;i:{j:switch(b|0){case 0:case 4:break i;default:break j}if(J[J[a>>2]+4>>2])break i;c=1;if(J[a+92>>2]==(d|0))break h}e=J[a+60>>2]+(d^-1)|0;c=J[a>>2];f=J[c+4>>2];k:{if(e>>>0>=f>>>0)break k;h=J[a+92>>2];g=J[a+44>>2];if((h|0)<(g|0))break k;d=d-g|0;J[a+108>>2]=d;J[a+92>>2]=h-g;c=J[a+56>>2];xc(c,c+g|0,d);d=J[a+5808>>2];if(d>>>0<=1)J[a+5808>>2]=d+1;e=J[a+44>>2]+e|0;d=J[a+ +108>>2];c=J[a>>2];f=J[c+4>>2]}e=e>>>0>>0?e:f;if(e){g=J[a+56>>2];J[c+4>>2]=f-e;d=xc(d+g|0,J[c>>2],e);l:{m:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:o=c,p=Zo(J[c+48>>2],d,e),J[o+48>>2]=p;break l;case 1:break m;default:break l}o=c,p=ig(J[c+48>>2],d,e),J[o+48>>2]=p}J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];d=e+J[a+108>>2]|0;J[a+108>>2]=d}if(M[a+5824>>2]>>0)J[a+5824>>2]=d;g=J[a+92>>2];f=d-g|0;e=J[a+12>>2]-(J[a+5820>>2]+42>>3)|0;e=e>>>0>=65535?65535:e;c=J[a+44>>2];if(f>>>0<(c>>>0>e>>>0?e:c)>>>0){c=0;if(J[J[a>> +2]+4>>2]|(!b|!((b|0)==4|(d|0)!=(g|0))))break h}c=0;d=e>>>0>f>>>0?f:e;c=J[J[a>>2]+4>>2]|(b|0)!=4?c:e>>>0>=f>>>0;RC(a,g+J[a+56>>2]|0,d,c);J[a+92>>2]=d+J[a+92>>2];a=J[a>>2];b=J[a+28>>2];Uh(b);d=J[b+20>>2];e=J[a+16>>2];d=d>>>0>>0?d:e;n:{if(!d)break n;xc(J[a+12>>2],J[b+16>>2],d);J[a+12>>2]=d+J[a+12>>2];J[b+16>>2]=d+J[b+16>>2];J[a+20>>2]=d+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-d;a=J[b+20>>2];J[b+20>>2]=a-d;if((a|0)!=(d|0))break n;J[b+16>>2]=J[b+8>>2]}c=c<<1}return c|0}function EDa(a,b,c){a=a|0;b=b|0;c=c| +0;var d=0,e=0,f=0,g=0,h=0;e=fc-48|0;fc=e;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{d=J[a+20>>2];if(d)while(1){f=0;g=J[d+8>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break c;f=J[d+8>>2]}J[699344]=0;J[e+44>>2]=f;g=ga(5287,f+36|0,b|0,-1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break j;f=J[e+44>>2];k:{if(!g)break k;J[699344]=0;g=ga(5287,f+20|0,c|0,-1)|0;h=J[699344];J[699344]=0;if((h|0)==1)break j;if(g)break k;J[699344]=0;a=aa(5305,e+4|0,c|0)|0;b=J[699344];J[699344]=0;l:{m:{n:{o:{if((b| +0)!=1){J[699344]=0;ca(5218,e+12|0,2399361,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break o;b=J[e+12>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=ja(5178,e+20|0,b|0,2389596,771,2399434,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break m;break d}d=Z()|0;break i}d=Z()|0;wc(a);break i}d=Z()|0;break l}d=Z()|0;Kc(b)}wc(e+12|0);wc(a);break i}p:{if(!f)break p;J[699344]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a; +if(g)break p;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}d=J[d>>2];if(d)continue;break}f=rf(b);d=J[J[a+92>>2]+((f>>>0)%M[a+88>>2]<<2)>>2];if(d)while(1){if((f|0)==J[d+12>>2])if(!Qj(d+16|0,b,-1))break e;d=J[d+8>>2];if(d)continue;break}J[699344]=0;a=aa(5305,e+4|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;ca(5218,e+12|0,2399694,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;b=J[e+12>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;c=ja(5178,e+20|0,b|0,2389596, +776,2399434,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=Z()|0;Kc(c);break f}d=Z()|0}zc(e+44|0);ba(d|0);B()}b=Z()|0;break b}b=Z()|0}wc(e+12|0);break b}f=0;b=J[d+24>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break c;f=J[d+24>>2]}J[699344]=0;J[e+12>>2]=f;h=f+20|0;f=rf(h);b=J[699344];J[699344]=0;q:{r:{if((b|0)==1)break r;b=0;J[699344]=0;g=a+52|0;a=g;d=J[J[a+12>>2]+((f>>>0)%M[a+8>>2]<<2)>>2]; +a=J[699344];J[699344]=0;if((a|0)==1)break r;s:{t:{if(!d)break t;while(1){u:{if((f|0)!=J[d+12>>2])break u;J[699344]=0;a=ga(5287,d+16|0,h|0,-1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break s;if(a)break u;b=d;break t}d=J[d+8>>2];if(d)continue;break}b=0}J[699344]=0;da(5306,g|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break r;b=J[e+12>>2];a=J[c>>2];v:{if(a){d=J[J[a>>2]+28>>2];J[699344]=0;ca(d|0,e+20|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break v;break r}J[e+20>>2]=0}J[699344]=0;aa(5153,b+20|0,e+20| +0)|0;a=J[699344];J[699344]=0;w:{if((a|0)!=1){a=J[e+20>>2];J[e+20>>2]=0;if(!a)break w;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break w;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break w}break a}d=Z()|0;zc(e+20|0);break q}a=J[b+20>>2];J[b+24>>2]=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=aa(5300,g|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;J[699344]=0;aa(5153,a+24|0,e+12|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break r;a=J[e+12>>2];J[e+ +12>>2]=0;x:{if(!a)break x;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break x;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=e+48|0;return}d=Z()|0;break q}d=Z()|0}zc(e+12|0);ba(d|0);B()}B()}ba(Z()|0);B()}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function c6(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;g=fc-16|0;fc=g;J[b+12>>2]=0;J[b>>2]=c;h=c+d|0;J[b+8>>2]=h;kc[J[b+28>>2]](b);c=J[b>>2];a:{b:{if(h>>>0<=c>>>0)break b;k=a+ +132|0;m=a+164|0;n=a+168|0;o=a+464|0;while(1){c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{d=K[c|0];switch(d-99|0){case 1:break i;case 0:break k;case 2:break l;default:break j}}d=c+6|0;if((d|0)==(h|0))break h;if(d>>>0>=h>>>0)break d;switch(K[c+5|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break h;default:break d}}m:{d=c+10|0;if((d|0)==(h|0))break m;if(d>>>0>=h>>>0)break d;switch(K[c+9|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break m; +default:break d}}if(ud(c,242413,9))break d;break b}if((d|0)==70)break e}if(d-48>>>0<=9){kc[J[b+32>>2]](b);e=1;l=c;if(!J[b+12>>2])break c;break b}f=c+6|0;if(!((d|0)!=82|f>>>0>=h>>>0)){if(!e|K[c+1|0]!=68)break d;J[b>>2]=l;e=J[J[a+128>>2]+52>>2];d=J[b+8>>2];kc[J[b+28>>2]](b);n:{c=J[b>>2];o:{if(c>>>0>=d>>>0|K[c|0]-48>>>0>9)break o;c=kc[J[b+36>>2]](b)|0;kc[J[b+32>>2]](b);if((c|0)<0)break o;f=d;d=J[b>>2];if((c|0)<(f+(d^-1)|0))break n}c=3;if(e)break a;break f}J[b>>2]=(c+d|0)+1;e=0;if(!J[b+12>>2])break c; +c=3;break a}if(!((d|0)!=45|f>>>0>=h>>>0)){if(!e|K[c+1|0]!=124)break d;J[b>>2]=l;e=J[J[a+128>>2]+52>>2];d=J[b+8>>2];kc[J[b+28>>2]](b);p:{c=J[b>>2];q:{if(c>>>0>=d>>>0|K[c|0]-48>>>0>9)break q;c=kc[J[b+36>>2]](b)|0;kc[J[b+32>>2]](b);if((c|0)<0)break q;f=d;d=J[b>>2];if((c|0)<(f+(d^-1)|0))break p}c=3;if(!e)break f;break a}J[b>>2]=(c+d|0)+1;e=0;if(!J[b+12>>2])break c;c=3;break a}if((d|0)!=47|c+2>>>0>=h>>>0)break d;i=c+1|0;J[b>>2]=i;kc[J[b+32>>2]](b);if(J[b+12>>2])break b;e=0;c=J[b>>2];if((c|0)==(i|0))break c; +j=c-i|0;if(j>>>0>21|c>>>0>=h>>>0)break c;c=329216;f=242706;p=K[i|0];while(1){d=c;r:{if(K[f|0]!=(p|0))break r;if((Yc(f)|0)!=(j|0))break r;if(dd(i,f,j))break r;i=J[c+32>>2];c=J[b+376>>2];if(!(i&(c&1?2:1)))break c;if(c&2)if(Ic(f,242584))break c;f=J[a+532>>2];if(f)c=J[f>>2]?f:0;else c=0;i=J[d+8>>2];s:{if((i|0)==11){kc[J[d+12>>2]](a,b);c=J[b+12>>2];break s}t:{u:{v:{w:{x:{y:{z:switch(J[d+4>>2]-2|0){case 1:J[g+12>>2]=k;if(c)break y;e=g+12|0;break u;case 2:J[g+12>>2]=n;e=g+12|0;if(!c)break u;e=c+212|0;break x; +case 3:J[g+12>>2]=o;e=g+12|0;if(!c)break u;e=c+284|0;break x;case 4:J[g+12>>2]=b;e=g+12|0;break u;case 5:J[g+12>>2]=a;e=g+12|0;break u;case 6:J[g+12>>2]=f;e=g+12|0;c=0;break w;case 0:break v;default:break z}J[g+12>>2]=k;e=g+12|0;break u}e=c+144|0}f=J[e>>2];c=J[c>>2]}if(f)break t;break g}J[g+12>>2]=m;e=g+12|0}c=0}if(i-9>>>0<=1){c=kc[J[b+68>>2]](b,d,e,c,0)|0;break s}c=kc[J[b+64>>2]](b,d,e,c,0)|0}J[b+12>>2]=c;if(!c){e=0;break c}if((c&255)==162)break g;break a}c=d+36|0;f=J[d+36>>2];if(f)continue;break}break c}if(!ud(c, +242304,5))break b;break d}e=0;J[b+12>>2]=0;break c}J[b+12>>2]=3;break a}A:{d=c+14|0;if((d|0)==(h|0))break A;if(d>>>0>=h>>>0)break d;switch(K[c+13|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break A;default:break d}}if(ud(c,242472,13))break d;d=J[b+376>>2];if(d&1)J[b+376>>2]=d|2;J[b>>2]=c+13;break c}kc[J[b+32>>2]](b);e=0;if(J[b+12>>2])break b}kc[J[b+28>>2]](b);c=J[b>>2];if(h>>>0>c>>>0)continue;break}}c=J[b+12>> +2]}fc=g+16|0;return c}function f4a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,O=0,Q=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;b=J[b+84>>2];n=P(J[b+108>>2],I[c+54>>1]);g=P(J[b+44>>2],I[c+22>>1]);h=P(n+g|0,6810);i=P(J[b+100>>2],I[c+50>>1]);f=P(J[b+36>>2],I[c+18>>1]);j=P(i+f|0,6810);N=h+P(g,4209)|0;o=P(I[c+6>>1],J[b+12>>2])<<13|1024;g=P(J[b+76>>2],I[c+38>>1]); +k=P(J[b+140>>2],I[c+70>>1]);p=g-k|0;r=o+P(p,2896)|0;s=P(g+k|0,6476);O=r+s|0;l=N+O>>11;Q=j+P(f,4209)|0;t=P(I[c+2>>1],J[b+4>>2])<<13|1024;g=P(J[b+68>>2],I[c+34>>1]);f=P(J[b+132>>2],I[c+66>>1]);u=g-f|0;v=t+P(u,2896)|0;w=P(f+g|0,6476);R=v+w|0;m=Q+R>>11;f=P(l+m|0,6810);x=P(J[b+96>>2],I[c+48>>1]);y=P(J[b+32>>2],I[c+16>>1]);k=P(x+y|0,6810);g=J[d>>2]+e|0;a=J[a+332>>2]+128|0;m=f+P(m,4209)|0;z=P(J[b+104>>2],I[c+52>>1]);A=P(J[b+40>>2],I[c+20>>1]);B=P(z+A|0,6810);A=B+P(A,4209)|0;S=P(I[c+4>>1],J[b+8>>2])<<13| +1024;q=P(J[b+72>>2],I[c+36>>1]);C=P(J[b+136>>2],I[c+68>>1]);T=q-C|0;U=S+P(T,2896)|0;q=P(q+C|0,6476);C=U+q|0;D=A+C>>11;V=P(I[c+8>>1],J[b+16>>2])<<13|1024;E=P(J[b+80>>2],I[c+40>>1]);F=P(J[b+144>>2],I[c+72>>1]);W=E-F|0;X=V+P(W,2896)|0;E=P(E+F|0,6476);F=X+E|0;Y=P(J[b+112>>2],I[c+56>>1]);G=P(J[b+48>>2],I[c+24>>1]);Z=P(Y+G|0,6810);G=Z+P(G,4209)|0;L=F+G>>11;_=D-L|0;y=k+P(y,4209)|0;$=P(I[c>>1],J[b>>2])<<13|1024;M=P(J[b+64>>2],I[c+32>>1]);b=P(J[b+128>>2],I[c+64>>1]);aa=M-b|0;ba=$+P(aa,2896)|0;M=P(b+M|0,6476); +ca=ba+M|0;b=(y+ca<<2&-8192)+131072|0;c=P(_,2896)+b|0;D=P(D+L|0,6476);L=c+D|0;H[g|0]=K[a+(m+L>>>18&1023)|0];H[g+4|0]=K[a+(L-m>>>18&1023)|0];f=f+P(l,-17828)|0;c=c-D|0;H[g+1|0]=K[a+(f+c>>>18&1023)|0];H[g+3|0]=K[a+(c-f>>>18&1023)|0];H[g+2|0]=K[a+(b+P(_,268423872)>>>18&1023)|0];g=h+P(n,-17828)|0;h=r-s|0;f=g+h>>11;j=j+P(i,-17828)|0;n=v-w|0;i=j+n>>11;c=P(f+i|0,6810);b=J[d+4>>2]+e|0;i=c+P(i,4209)|0;r=P(z,-17828)+B|0;s=U-q|0;l=r+s>>11;v=P(Y,-17828)+Z|0;w=X-E|0;m=v+w>>11;z=l-m|0;k=k+P(x,-17828)|0;x=ba-M|0; +B=(k+x<<2&-8192)+131072|0;q=P(z,2896)+B|0;l=P(l+m|0,6476);m=q+l|0;H[b|0]=K[a+(i+m>>>18&1023)|0];H[b+4|0]=K[a+(m-i>>>18&1023)|0];c=c+P(f,-17828)|0;f=q-l|0;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];H[b+2|0]=K[a+(B+P(z,268423872)>>>18&1023)|0];f=o+P(p,-11584)>>11;i=t+P(u,-11584)>>11;c=P(f+i|0,6810);b=J[d+8>>2]+e|0;i=c+P(i,4209)|0;u=(P(aa,1073730240)+$<<2&-8192)+131072|0;p=P(T,-11584)+S>>11;o=P(W,-11584)+V>>11;l=p-o|0;t=u+P(l,2896)|0;p=P(p+o|0,6476);o=t+p|0;H[b|0]=K[a+(i+o>>>18& +1023)|0];H[b+4|0]=K[a+(o-i>>>18&1023)|0];c=c+P(f,-17828)|0;f=t-p|0;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];H[b+2|0]=K[a+(u+P(l,268423872)>>>18&1023)|0];g=h-g>>11;h=n-j>>11;c=P(g+h|0,6810);b=J[d+12>>2]+e|0;h=c+P(h,4209)|0;k=(x-k<<2&-8192)+131072|0;j=s-r>>11;f=w-v>>11;n=j-f|0;i=k+P(n,2896)|0;j=P(f+j|0,6476);f=i+j|0;H[b|0]=K[a+(h+f>>>18&1023)|0];H[b+4|0]=K[a+(f-h>>>18&1023)|0];c=c+P(g,-17828)|0;g=i-j|0;H[b+1|0]=K[a+(c+g>>>18&1023)|0];H[b+3|0]=K[a+(g-c>>>18&1023)|0];H[b+2|0]=K[a+ +(k+P(n,268423872)>>>18&1023)|0];g=O-N>>11;h=R-Q>>11;c=P(g+h|0,6810);b=J[d+16>>2]+e|0;d=c+P(h,4209)|0;f=(ca-y<<2&-8192)+131072|0;e=C-A>>11;h=F-G>>11;j=e-h|0;k=f+P(j,2896)|0;e=P(e+h|0,6476);h=k+e|0;H[b|0]=K[a+(d+h>>>18&1023)|0];H[b+4|0]=K[a+(h-d>>>18&1023)|0];c=c+P(g,-17828)|0;d=k-e|0;H[b+1|0]=K[a+(c+d>>>18&1023)|0];H[b+3|0]=K[a+(d-c>>>18&1023)|0];H[b+2|0]=K[a+(f+P(j,268423872)>>>18&1023)|0]}function x3(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=fc-80|0;fc=h;J[h- -64>>2]=J[183567];j=J[183566];J[h+ +56>>2]=J[183565];J[h+60>>2]=j;j=J[183564];J[h+48>>2]=J[183563];J[h+52>>2]=j;j=J[183562];J[h+40>>2]=J[183561];J[h+44>>2]=j;J[h+32>>2]=J[183574];j=J[183573];J[h+24>>2]=J[183572];J[h+28>>2]=j;j=J[183571];J[h+16>>2]=J[183570];J[h+20>>2]=j;j=J[183569];J[h+8>>2]=J[183568];J[h+12>>2]=j;a:{if(!d|J[d>>2]>0)break a;if(!a){J[d>>2]=1;break a}j=J[J[J[a+24>>2]+20>>2]+56>>2];b:{if(j){J[h+72>>2]=0;kc[j|0](a,0,h+72|0,d)|0;if(J[d>>2]<=0)break b;break a}J[h+72>>2]=260}c:{if(!c){j=1;J[h+76>>2]=1;c=h+76|0;break c}j=J[c>> +2];J[h+76>>2]=j;if((j|0)>0)break c;J[c>>2]=J[h+72>>2];break a}k=b&7;d:{if(!k)break d;k=8-k|0;if(k>>>0>>0){j=j-k|0;J[h+76>>2]=j;b=b+k|0;break d}j=1;J[h+76>>2]=1}e:{f:{e=J[h+72>>2];if((e|0)>(j|0))break f;j=0;if(!b)break f;k=b;break e}k=ji(e);if(!k){J[d>>2]=7;k=0;break a}J[d>>2]=-126;e=J[h+72>>2];J[c>>2]=e;j=k}l=xc(Ac(k,0,e),a,260);H[l+33|0]=0;H[l+34|0]=0;g:{h:{if(J[a+20>>2]==(a+108|0)){J[l+20>>2]=l+108;break h}e=ji(64);J[l+20>>2]=e;if(!e)break g;f=J[a+20>>2];g=K[f+4|0]|K[f+5|0]<<8|(K[f+6|0]<<16| +K[f+7|0]<<24);i=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);H[e|0]=i;H[e+1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+3|0]=i>>>24;H[e+4|0]=g;H[e+5|0]=g>>>8;H[e+6|0]=g>>>16;H[e+7|0]=g>>>24;g=K[f+60|0]|K[f+61|0]<<8|(K[f+62|0]<<16|K[f+63|0]<<24);i=K[f+56|0]|K[f+57|0]<<8|(K[f+58|0]<<16|K[f+59|0]<<24);H[e+56|0]=i;H[e+57|0]=i>>>8;H[e+58|0]=i>>>16;H[e+59|0]=i>>>24;H[e+60|0]=g;H[e+61|0]=g>>>8;H[e+62|0]=g>>>16;H[e+63|0]=g>>>24;g=K[f+52|0]|K[f+53|0]<<8|(K[f+54|0]<<16|K[f+55|0]<<24);i=K[f+48|0]|K[f+49|0]<<8|(K[f+50|0]<< +16|K[f+51|0]<<24);H[e+48|0]=i;H[e+49|0]=i>>>8;H[e+50|0]=i>>>16;H[e+51|0]=i>>>24;H[e+52|0]=g;H[e+53|0]=g>>>8;H[e+54|0]=g>>>16;H[e+55|0]=g>>>24;g=K[f+44|0]|K[f+45|0]<<8|(K[f+46|0]<<16|K[f+47|0]<<24);i=K[f+40|0]|K[f+41|0]<<8|(K[f+42|0]<<16|K[f+43|0]<<24);H[e+40|0]=i;H[e+41|0]=i>>>8;H[e+42|0]=i>>>16;H[e+43|0]=i>>>24;H[e+44|0]=g;H[e+45|0]=g>>>8;H[e+46|0]=g>>>16;H[e+47|0]=g>>>24;g=K[f+36|0]|K[f+37|0]<<8|(K[f+38|0]<<16|K[f+39|0]<<24);i=K[f+32|0]|K[f+33|0]<<8|(K[f+34|0]<<16|K[f+35|0]<<24);H[e+32|0]=i;H[e+ +33|0]=i>>>8;H[e+34|0]=i>>>16;H[e+35|0]=i>>>24;H[e+36|0]=g;H[e+37|0]=g>>>8;H[e+38|0]=g>>>16;H[e+39|0]=g>>>24;g=K[f+28|0]|K[f+29|0]<<8|(K[f+30|0]<<16|K[f+31|0]<<24);i=K[f+24|0]|K[f+25|0]<<8|(K[f+26|0]<<16|K[f+27|0]<<24);H[e+24|0]=i;H[e+25|0]=i>>>8;H[e+26|0]=i>>>16;H[e+27|0]=i>>>24;H[e+28|0]=g;H[e+29|0]=g>>>8;H[e+30|0]=g>>>16;H[e+31|0]=g>>>24;g=K[f+20|0]|K[f+21|0]<<8|(K[f+22|0]<<16|K[f+23|0]<<24);i=K[f+16|0]|K[f+17|0]<<8|(K[f+18|0]<<16|K[f+19|0]<<24);H[e+16|0]=i;H[e+17|0]=i>>>8;H[e+18|0]=i>>>16;H[e+ +19|0]=i>>>24;H[e+20|0]=g;H[e+21|0]=g>>>8;H[e+22|0]=g>>>16;H[e+23|0]=g>>>24;g=K[f+12|0]|K[f+13|0]<<8|(K[f+14|0]<<16|K[f+15|0]<<24);f=K[f+8|0]|K[f+9|0]<<8|(K[f+10|0]<<16|K[f+11|0]<<24);H[e+8|0]=f;H[e+9|0]=f>>>8;H[e+10|0]=f>>>16;H[e+11|0]=f>>>24;H[e+12|0]=g;H[e+13|0]=g>>>8;H[e+14|0]=g>>>16;H[e+15|0]=g>>>24}i:{e=J[J[J[a+24>>2]+20>>2]+56>>2];j:{if(e){k=kc[e|0](a,l,c,d)|0;if(!k)break j}if(J[d>>2]<=0)break i}if(!j)break g;a=J[j+20>>2];if((a|0)==(j+108|0))break g;Nf(a);break g}c=J[a+24>>2];if(!c|!K[c+17| +0]?0:K[c+17|0])J[c+4>>2]=J[c+4>>2]+1;if((b|0)==(k|0))H[b+33|0]=1;J[h+44>>2]=k;J[h+12>>2]=k;J[h+68>>2]=0;b=h+68|0;kc[J[a+4>>2]](J[a+16>>2],h+40|0,0,0,5,b);J[h+68>>2]=0;kc[J[a>>2]](J[a+12>>2],h+8|0,0,0,0,5,b);break a}Nf(j);k=0}fc=h+80|0;return k}function us(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0;g=fc-768|0;fc=g;Be(b,Fc(b)<<1);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!Fc(b)){if((Fc(b)|0)!=1399353411)break n;if((Fc(b)|0)== +2){if(Fc(b))break m;if((Fc(b)|0)!=1315774496)break l;if((Fc(b)|0)!=1413830740)break k;Be(b,Fc(b)<<1)}if(Fc(b))break j;if((Fc(b)|0)!=1131574816)break i;if((Fc(b)|0)!=1449938035)break h;n=Fc(b);o:{if((n|0)>0){while(1){if((Fc(b)|0)!=1331849827)break g;Be(b,Fc(b)<<1);if(Fc(b))break f;if((Fc(b)|0)!=1131565172)break e;h=(g+512|0)+c|0;H[h|0]=0;l=(g+256|0)+c|0;H[l|0]=0;v=c+g|0;H[v|0]=0;k=Fc(b);if(k)while(1){if(Fc(b))break d;f=Fc(b);i=Fc(b);p:{q:{r:{if((f|0)!=1131312249){if((f|0)!=1450341475){if((f|0)!=1215461998)break r; +if((i|0)!=1685026146)break c;j=me(b);if(!(R(j)<2147483648))break q;H[h|0]=~~j;break p}if((i|0)!=1685026146)break b;j=me(b);if(R(j)<2147483648){H[l|0]=~~j;break p}H[l|0]=0;break p}if((i|0)!=1651470188)break a;C=v,D=1-ue(b)|0,H[C|0]=D;break p}fa(219546,219859,703,224902);B()}H[h|0]=0}k=k-1|0;if(k)continue;break}c=c+1|0;if((n|0)!=(c|0))continue;break}b=K[g+512|0];if(!b)break o}Ac(a,K[g+256|0],b&255)}l=n-1|0;b=K[l+(g+512|0)|0];Ac(b+a|0,K[l+(g+256|0)|0],256-b|0);if((n|0)>=2){v=n-2|0;b=0;while(1){i=g+256| +0;c=g+512|0;f=b+1|0;j=+K[c+f|0];h=b-1|0;h=K[b+g|0]==1?b:b>>>0>=h>>>0?h:0;m=+K[h+c|0];d=m*-.5;y=j*.5+(d+0)+0;p=y*0;k=K[g+f|0]==1?f:(b|0)==(v|0)?l:b+2|0;e=+K[k+c|0];s=d;d=+K[b+c|0];q=e*.5+(j*-1.5+(s+d*1.5));o=e*-.5+(j+j+(d*-2.5+m));w=o*0;j=p+(q*0+w)+d;d=j>0?j:0;d=d<255?d:255;s:{if(R(d)<2147483648){c=~~d;break s}c=-2147483648}u=c+a|0;d=+K[f+i|0];t=+K[i+h|0];e=t*-.5;z=d*.5+(e+0)+0;m=z*0;r=+K[i+k|0];s=e;e=+K[b+i|0];x=r*.5+(d*-1.5+(s+e*1.5));t=r*-.5+(d+d+(e*-2.5+t));r=t*0;d=m+(x*0+r)+e;e=d>0?d:0;e=e<255? +e:255;t:{if(R(e)<2147483648){b=~~e;break t}b=-2147483648}H[u|0]=b;e=x*4.470348358154297E-8;r=m+(e+r)+0;s=q*4.470348358154297E-8;w=p+(s+w)+0;m=m+(e+t*7.62939453125E-6)+0;p=p+(s+o*7.62939453125E-6)+0;e=z*.001953125+(x*7.450580596923828E-9+t*3.814697265625E-6)+0;q=y*.001953125+(q*7.450580596923828E-9+o*3.814697265625E-6)+0;k=0;while(1){d=d+e;o=d+.5;u:{if(R(o)<2147483648){i=~~o;break u}i=-2147483648}A=(i|0)>0?i:0;u=A>>>0<255;h=b;i=c;j=q+j;o=j+.5;v:{if(R(o)<2147483648){c=~~o;break v}c=-2147483648}b=(c| +0)>0?c:0;c=b>>>0>=255?255:b;b=u?A:255;if(!((i|0)==(c|0)&(h|0)==(b|0)))H[a+c|0]=b;e=e+m;q=p+q;m=r+m;p=w+p;k=k+1|0;if((k|0)!=512)continue;break}b=f;if((l|0)!=(b|0))continue;break}}w:{if((n|0)<=0)break w;c=0;b=0;if(n>>>0>=4){i=n&-4;k=0;while(1){f=g+512|0;h=g+256|0;H[K[f+b|0]+a|0]=K[h+b|0];l=b|1;H[K[l+f|0]+a|0]=K[h+l|0];l=b|2;H[K[l+f|0]+a|0]=K[h+l|0];u=f;f=b|3;H[K[u+f|0]+a|0]=K[f+h|0];b=b+4|0;k=k+4|0;if((i|0)!=(k|0))continue;break}}f=n&3;if(!f)break w;while(1){H[K[(g+512|0)+b|0]+a|0]=K[(g+256|0)+b|0]; +b=b+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}fc=g+768|0;return}fa(221278,219859,626,224902);B()}fa(224057,219859,629,224902);B()}fa(221278,219859,637,224902);B()}fa(224259,219859,640,224902);B()}fa(224432,219859,642,224902);B()}fa(221278,219859,649,224902);B()}fa(224601,219859,652,224902);B()}fa(224932,219859,655,224902);B()}fa(224975,219859,662,224902);B()}fa(221278,219859,668,224902);B()}fa(225018,219859,671,224902);B()}fa(221278,219859,681,224902);B()}fa(225059,219859,689,224902);B()}fa(225059, +219859,694,224902);B()}fa(225074,219859,699,224902);B()}function Zba(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;a:{b:{if(!J[a+16>>2]){if((d|0)<=0)break b;q=J[a+28>>2];p=J[a+20>>2];while(1){m=d;i=O[b+8>>3];f=O[b>>3];k=O[b+16>>3];e=k;c:{if(!J[a+24>>2]|p)break c;e=O[J[a+32>>2]>>3];g=J[a+36>>2];l=g-1|0;f=f*+(l|0);h=V(f);d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}e:{if((d|0)<0)break e;j=J[a+32>>2];e=O[j+(l<<3)>>3];n=g;h=W(f);f:{if(R(h)<2147483648){g= +~~h;break f}g=-2147483648}if((n|0)<=(g|0))break e;e=f-+(d|0);f=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-f)+f}f=e;e=O[J[a+40>>2]>>3];g=J[a+44>>2];l=g-1|0;i=i*+(l|0);h=V(i);g:{if(R(h)<2147483648){d=~~h;break g}d=-2147483648}h:{if((d|0)<0)break h;j=J[a+40>>2];e=O[j+(l<<3)>>3];n=g;h=W(i);i:{if(R(h)<2147483648){g=~~h;break i}g=-2147483648}if((n|0)<=(g|0))break h;e=i-+(d|0);i=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-i)+i}i=e;e=O[J[a+48>>2]>>3];g=J[a+52>>2];l=g-1|0;h=k*+(l|0);k=V(h);j:{if(R(k)<2147483648){d=~~k;break j}d= +-2147483648}if((d|0)<0)break c;j=J[a+48>>2];e=O[j+(l<<3)>>3];n=g;k=W(h);k:{if(R(k)<2147483648){g=~~k;break k}g=-2147483648}if((n|0)<=(g|0))break c;e=h-+(d|0);h=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-h)+h}k=e;l:{if(!q){h=i;o=k;break l}o=O[a+144>>3]+(O[a+136>>3]*k+(O[a+120>>3]*f+i*O[a+128>>3]));h=O[a+112>>3]+(O[a+104>>3]*k+(O[a+88>>3]*f+i*O[a+96>>3]));f=O[a+80>>3]+(O[a+72>>3]*k+(O[a+56>>3]*f+i*O[a+64>>3]))}m:{if(!p|!J[a+24>>2])break m;e=O[J[a+32>>2]>>3];g=J[a+36>>2];l=g-1|0;f=f*+(l|0);i=V(f);n:{if(R(i)< +2147483648){d=~~i;break n}d=-2147483648}o:{if((d|0)<0)break o;j=J[a+32>>2];e=O[j+(l<<3)>>3];n=g;i=W(f);p:{if(R(i)<2147483648){g=~~i;break p}g=-2147483648}if((n|0)<=(g|0))break o;e=f-+(d|0);f=O[j+(d<<3)>>3];e=e*(O[j+(g<<3)>>3]-f)+f}f=e;e=O[J[a+40>>2]>>3];g=J[a+44>>2];l=g-1|0;i=h*+(l|0);h=V(i);q:{if(R(h)<2147483648){d=~~h;break q}d=-2147483648}r:{if((d|0)<0)break r;j=J[a+40>>2];e=O[j+(l<<3)>>3];n=g;h=W(i);s:{if(R(h)<2147483648){g=~~h;break s}g=-2147483648}if((n|0)<=(g|0))break r;e=i-+(d|0);i=O[j+(d<< +3)>>3];e=e*(O[j+(g<<3)>>3]-i)+i}h=e;g=J[a+52>>2];l=g-1|0;i=o*+(l|0);k=V(i);t:{if(R(k)<2147483648){d=~~k;break t}d=-2147483648}if((d|0)<0){o=O[J[a+48>>2]>>3];break m}j=J[a+48>>2];n=g;k=W(i);u:{if(R(k)<2147483648){g=~~k;break u}g=-2147483648}if((n|0)<=(g|0)){o=O[j+(l<<3)>>3];break m}e=i-+(d|0);i=O[j+(d<<3)>>3];o=e*(O[j+(g<<3)>>3]-i)+i}b=b+24|0;d=m-1|0;O[c+16>>3]=o;O[c+8>>3]=h;O[c>>3]=f;c=c+24|0;if(m>>>0>1)continue;break}break b}if(J[a+20>>2])break a;if((d|0)<=0)break b;m=d-1|0;if(!J[a+24>>2]){if(d& +1){i=O[a+56>>3];h=O[a+88>>3];f=O[b>>3];O[c+16>>3]=f*O[a+120>>3];O[c+8>>3]=f*h;O[c>>3]=f*i;c=c+24|0;b=b+8|0;d=d-2|0}else d=m;if(!m)break b;while(1){i=O[a+56>>3];h=O[a+88>>3];f=O[b>>3];O[c+16>>3]=f*O[a+120>>3];O[c+8>>3]=f*h;O[c>>3]=f*i;i=O[a+56>>3];h=O[a+88>>3];f=O[b+8>>3];O[c+40>>3]=f*O[a+120>>3];O[c+32>>3]=f*h;O[c+24>>3]=f*i;c=c+48|0;b=b+16|0;m=(d|0)==1;d=d-2|0;if(!m)continue;break}break b}l=J[a+36>>2];p=l-1|0;i=+(p|0);while(1){d=m;e=O[J[a+32>>2]>>3];f=O[b>>3]*i;h=V(f);v:{if(R(h)<2147483648){m=~~h; +break v}m=-2147483648}w:{if((m|0)<0)break w;j=J[a+32>>2];e=O[j+(p<<3)>>3];h=W(f);x:{if(R(h)<2147483648){g=~~h;break x}g=-2147483648}if((g|0)>=(l|0))break w;e=f-+(m|0);f=O[j+(m<<3)>>3];e=e*(O[j+(g<<3)>>3]-f)+f}f=e;b=b+8|0;h=O[a+56>>3];k=O[a+88>>3];O[c+16>>3]=f*O[a+120>>3];O[c+8>>3]=f*k;O[c>>3]=f*h;m=d-1|0;c=c+24|0;if((d|0)>0)continue;break}}return 0}fa(202239,198656,846,206623);B()}function i2a(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;i=J[a+4>>2];l=J[i+52>>2];o= +l>>>0<268435456?743648:743776;m=l>>>16|0;c=J[a+24>>2];j=J[a+20>>2];d=J[a+16>>2];n=J[a+12>>2];g=J[a+8>>2];h=!(l&16777216);a:{b:{c:{while(1){if(!h){d:{e:{h=n-g>>1;f=j-d|0;k=(f|0)>(h|0)?h:f;f:{if((k|0)<=0){h=g;break f}while(1){g:{h:{i:{f=L[g>>1];if(f>>>0>127)break i;h=g+2|0;if(K[f+o|0]){H[d|0]=f;if(c)break h;c=0;break g}if((f|0)!=43)break i;H[d|0]=43;g=d+1|0;if(g>>>0>>0){H[d+1|0]=45;if(c){J[c+4>>2]=e;J[c>>2]=e;e=e+1|0;c=c+8|0}else c=0;g=h;f=n-g>>1;d=d+2|0;k=j-d|0;k=(f|0)<(k|0)?f:k;if((k|0)>0)continue; +break f}if(c){J[c>>2]=e;e=e+1|0;c=c+4|0}else c=0;H[i+63|0]=1;H[i+76|0]=45;J[b>>2]=15;d=g;break f}H[d|0]=43;d=d+1|0;m=0;if(c)break e;c=0;break d}J[c>>2]=e;e=e+1|0;c=c+4|0}d=d+1|0;f=(k|0)>1;g=h;k=k-1|0;if(f)continue;break}}p=16777216;k=0;if(d>>>0>>0|h>>>0>=n>>>0)break a;break b}J[c>>2]=e;c=c+4|0}h=1;continue}if(g>>>0>=n>>>0)break c;k=1;j:{k:{while(1){if(d>>>0>=j>>>0)break j;f=L[g>>1];if(!(f>>>0>127|!K[f+o|0])){l:{if(!(m&255))break l;H[d|0]=K[(l&255)+743904|0];d=d+1|0;if(!c){c=0;break l}J[c>>2]=e- +1;c=c+4|0}if(K[f+743520|0]==255)break k;if(d>>>0>>0){H[d|0]=45;d=d+1|0;if(!c){c=0;break k}J[c>>2]=e-1;c=c+4|0;break k}H[i+63|0]=1;H[i+76|0]=45;p=16777216;k=0;break j}m:{n:switch(m<<24>>24){case 0:H[d|0]=K[(f>>>10|0)+743904|0];h=d+1|0;o:{if(h>>>0>>0){H[d+1|0]=K[(f>>>4&63)+743904|0];d=d+2|0;if(!c){c=0;break o}J[c+4>>2]=e;J[c>>2]=e;c=c+8|0;e=e+1|0;break o}if(c){J[c>>2]=e;e=e+1|0;c=c+4|0}else c=0;H[i+63|0]=1;H[i+76|0]=K[(f>>>4&63)+743904|0];J[b>>2]=15;d=h}l=f<<2&60;m=1;break m;case 1:H[d|0]=K[(l& +255|f>>>14)+743904|0];h=d+1|0;p:{if(h>>>0>>0){H[d+1|0]=K[(f>>>8&63)+743904|0];h=d+2|0;if(h>>>0>>0){H[d+2|0]=K[(f>>>2&63)+743904|0];d=d+3|0;if(!c){c=0;break p}J[c+8>>2]=e;J[c+4>>2]=e;J[c>>2]=e;c=c+12|0;e=e+1|0;break p}if(c){J[c+4>>2]=e;J[c>>2]=e;e=e+1|0;c=c+8|0}else c=0;H[i+63|0]=1;H[i+76|0]=K[(f>>>2&63)+743904|0];J[b>>2]=15;d=h;break p}if(c){J[c>>2]=e;e=e+1|0;c=c+4|0}else c=0;H[i+63|0]=2;H[i+77|0]=K[(f>>>2&63)+743904|0];H[i+76|0]=K[(f>>>8&63)+743904|0];J[b>>2]=15;d=h}l=f<<4&48;m=2;break m;case 2:break n; +default:break m}H[d|0]=K[(l&255|f>>>12)+743904|0];h=d+1|0;q:{if(h>>>0>>0){H[d+1|0]=K[(f>>>6&63)+743904|0];h=d+2|0;if(h>>>0>>0){H[d+2|0]=K[(f&63)+743904|0];d=d+3|0;l=0;if(!c){c=0;break q}J[c+8>>2]=e;J[c+4>>2]=e;J[c>>2]=e;c=c+12|0;e=e+1|0;break q}l=0;if(c){J[c+4>>2]=e;J[c>>2]=e;e=e+1|0;c=c+8|0}else c=0;H[i+63|0]=1;H[i+76|0]=K[(f&63)+743904|0];J[b>>2]=15;d=h;break q}l=0;if(c){J[c>>2]=e;e=e+1|0;c=c+4|0}else c=0;H[i+63|0]=2;H[i+77|0]=K[(f&63)+743904|0];H[i+76|0]=K[(f>>>6&63)+743904|0];J[b>>2]=15; +d=h}m=0}g=g+2|0;if(n>>>0>g>>>0)continue;break}break c}h=0;continue}break}h=g;break b}k=1;h=g;break a}J[b>>2]=15}r:{if(!(!K[a+2|0]|h>>>0>>0)){s:{if(!k){g=d;break s}t:{u:{v:{w:{if(m&255){g=K[(l&255)+743904|0];if(d>>>0>>0){H[d|0]=g;g=d+1|0;if(!c)break v;J[c>>2]=e-1;c=c+4|0;break w}f=H[i+63|0];H[i+63|0]=f+1;H[(f+i|0)+76|0]=g;J[b>>2]=15}g=d}if(g>>>0>=j>>>0)break t;H[g|0]=45;g=g+1|0;if(c)break u;c=0;break s}c=0;if(g>>>0>=j>>>0)break t;H[d+1|0]=45;g=d+2|0;break s}J[c>>2]=e-1;c=c+4|0;break s}d=H[i+ +63|0];H[i+63|0]=d+1;H[(d+i|0)+76|0]=45;J[b>>2]=15}b=J[i+52>>2]&-268435456|16777216;break r}g=d;b=J[i+52>>2]&-268435456|(l&255|p|m<<24>>24<<16)}J[i+52>>2]=b;J[a+24>>2]=c;J[a+16>>2]=g;J[a+8>>2]=h}function QBb(a){a=a|0;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;c=J[a+44>>2];f=J[a+40>>2];b=J[a+52>>2];kc[J[J[b>>2]+20>>2]](b,2)|0;kc[J[J[b>>2]+20>>2]](b,2)|0;m=f,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+8>>2]=n;m=f,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+12>>2]=n;m=f,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m>>2]= +n;m=f,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+4>>2]=n;m=c,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+36>>2]=n;m=c,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+40>>2]=n;m=c,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+28>>2]=n;m=c,n=kc[J[J[b>>2]+20>>2]](b,4)|0,J[m+32>>2]=n;j=kc[J[J[b>>2]+20>>2]](b,2)|0;J[f+16>>2]=j;d=kd(1,P(j,48));J[f+24>>2]=d;a:{if(d){d=0;if((j|0)>0)while(1){e=kc[J[J[b>>2]+20>>2]](b,1)|0;i=P(d,48);h=i+J[f+24>>2]|0;J[h+32>>2]=e>>7;J[h+24>>2]=(e&127)+1;e=kc[J[J[b>>2]+20>>2]](b,1)|0;J[i+J[f+24>>2]>>2]=e;h=kc[J[J[b>>2]+ +20>>2]](b,1)|0;e=i+J[f+24>>2]|0;J[e+36>>2]=0;J[e+40>>2]=0;J[e+4>>2]=h;d=d+1|0;j=J[f+16>>2];if((d|0)<(j|0))continue;break}b=J[c+36>>2];i=(b+(J[f+8>>2]+(J[c+28>>2]^-1)|0)|0)/(b|0)|0;J[c+48>>2]=i;b=J[c+40>>2];h=(b+(J[f+12>>2]+(J[c+32>>2]^-1)|0)|0)/(b|0)|0;J[c+52>>2]=h;e=P(i,h);d=kd(1,P(e,1876));J[c+88>>2]=d;if(!d){c=J[f+24>>2];if(c){uc(c);J[f+24>>2]=0}break a}b=kd(1,e<<2);J[c+56>>2]=b;if(!b){b=J[f+24>>2];if(b){uc(b);J[f+24>>2]=0;d=J[c+88>>2];if(!d)break a}uc(d);J[c+88>>2]=0;break a}J[c+60>>2]=0;b:{if((e| +0)<=0)break b;b=0;if(e>>>0>=4){l=e&-4;while(1){g=P(b,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;g=P(b|1,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;g=P(b|2,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;g=P(b|3,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;b=b+4|0;k=k+4|0;if((l|0)!=(k|0))continue;break}}l=e&3;if(!l)break b;k=0;while(1){g=P(b,1876)+d|0;J[g+420>>2]=0;J[g+424>>2]=0;J[g>>2]=1;b=b+1|0;k=k+1|0;if((l|0)!=(k|0))continue;break}}j=P(j,1076);b=kd(1,j);J[c+80>>2]=0;J[c+72>>2]=0;J[c+ +76>>2]=0;J[c+64>>2]=0;J[c+68>>2]=0;J[J[a+36>>2]+1872>>2]=b;c:{d:{if(b){b=0;if((e|0)<=0)break c;break d}b=J[f+24>>2];if(b){uc(b);J[f+24>>2]=0}b=J[c+88>>2];if(b){uc(b);J[c+88>>2]=0}b=J[c+56>>2];if(b){uc(b);J[c+56>>2]=0}break a}while(1){e:{k=kd(1,j);J[(P(b,1876)+d|0)+1872>>2]=k;if(k?0:b)break e;b=b+1|0;if((e|0)!=(b|0))continue;break c}break}b=J[d+1872>>2];if(b){uc(b);J[d+1872>>2]=0}b=J[f+24>>2];if(b){uc(b);J[f+24>>2]=0}b=J[c+88>>2];if(b){uc(b);J[c+88>>2]=0}b=J[c+56>>2];if(b){uc(b);J[c+56>>2]=0}c=J[a+ +36>>2];b=J[c+1872>>2];if(b){uc(b);J[c+1872>>2]=0}break a}b=e<<2;d=kd(1,b);J[a+28>>2]=d;if(!d){b=0;if((e|0)>0)while(1){d=J[c+88>>2]+P(b,1876)|0;e=J[d+1872>>2];if(e){uc(e);J[d+1872>>2]=0;h=J[c+52>>2];i=J[c+48>>2]}b=b+1|0;if((b|0)<(P(i,h)|0))continue;break}b=J[f+24>>2];if(b){uc(b);J[f+24>>2]=0}b=J[c+88>>2];if(b){uc(b);J[c+88>>2]=0}b=J[c+56>>2];if(b){uc(b);J[c+56>>2]=0}b=J[a+36>>2];c=J[b+1872>>2];f:{if(c){uc(c);J[b+1872>>2]=0;b=J[a+36>>2];if(!b)break f}uc(b);J[a+36>>2]=0}break a}b=kd(1,b);J[a+32>>2]= +b;if(!b){b=0;if((e|0)>0)while(1){d=J[c+88>>2]+P(b,1876)|0;e=J[d+1872>>2];if(e){uc(e);J[d+1872>>2]=0;h=J[c+52>>2];i=J[c+48>>2]}b=b+1|0;if((b|0)<(P(i,h)|0))continue;break}b=J[f+24>>2];if(b){uc(b);J[f+24>>2]=0}b=J[c+88>>2];if(b){uc(b);J[c+88>>2]=0}b=J[c+56>>2];if(b){uc(b);J[c+56>>2]=0}b=J[a+36>>2];c=J[b+1872>>2];g:{if(c){uc(c);J[b+1872>>2]=0;b=J[a+36>>2];if(!b)break g}uc(b);J[a+36>>2]=0}c=J[a+28>>2];if(c){uc(c);J[a+28>>2]=0}break a}J[a+4>>2]=4;return}J[J[a>>2]+20>>2]=1;return}J[J[a>>2]+20>>2]=1}function eea(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=J[a+12>>2];i=J[e+584>>2];a:{b:{c:{d:{e:{f:{g:{while(1){a=J[i+3204>>2];if(a>>>0>=19)break d;b=0;h:{i:{j:{k:{l:{m:switch(a|0){case 1:a=J[e+584>>2];b=J[a+252>>2];if(b)break l;b=0;break j;case 2:a=J[e+584>>2];c=J[a+256>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 3:a=J[e+584>>2];c=J[a+260>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 4:a=J[e+584>>2];c=J[a+264>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 5:a=J[e+584>> +2];c=J[a+268>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 6:a=J[e+584>>2];c=J[a+272>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 7:a=J[e+584>>2];c=J[a+276>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 8:a=J[e+584>>2];c=J[a+280>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 9:a=J[e+584>>2];c=J[a+284>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 10:a=J[e+584>>2];c=J[a+288>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 11:a=J[e+584>>2]; +c=J[a+292>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 12:a=J[e+584>>2];c=J[a+296>>2];b=0;if(!c)break j;f=c+4|0;d=J[c>>2]-4|0;break k;case 13:a=J[e+584>>2];c=L[a+300>>1];b=0;if(!c)break j;J[a+3208>>2]=67165695;H[a+3213|0]=c;H[a+3212|0]=c>>>8;f=a+3208|0;d=6;b=6;break j;case 14:b=J[e+584>>2];d=K[b+194|0];if(d>>>0>=83)break c;H[b+3208|0]=255;H[b+3212|0]=8;a=0;H[b+3210|0]=0;H[b+3209|0]=K[b+304|0];H[b+3217|0]=d;f=J[b+308>>2];H[b+3216|0]=f;H[b+3211|0]=P(d,3)+8;H[b+3215|0]=f>>>8;f=b+3213|0;e= +L[b+312>>1];e=e<<8|e>>>8;H[f|0]=e;H[f+1|0]=e>>>8;if(d){c=K[b+193|0];while(1){f=b+P(a,3)|0;e=b+(a+c|0)|0;H[f+3218|0]=K[e+316|0];H[f+3219|0]=K[e+319|0];H[f+3220|0]=K[e+322|0];a=a+1|0;if((d|0)!=(a|0))continue;break}d=P(d,3)+10|0}else d=10;f=b+3208|0;J[b+3204>>2]=J[b+3204>>2]+1;break e;case 15:d=J[e+584>>2];f=K[d+194|0];if(f>>>0>=125)break b;I[d+3208>>1]=56063;H[d+3212|0]=f;H[d+3210|0]=0;H[d+3211|0]=(f<<1)+6;a=0;if(f){b=K[d+193|0];if((f|0)!=1){l=f&254;e=d+3208|0;c=d+325|0;j=d+328|0;while(1){g=e+(a<<1)| +0;h=a+b|0;H[g+5|0]=K[h+c|0];H[g+6|0]=K[h+j|0];g=a|1;h=e+(g<<1)|0;g=b+g|0;H[h+5|0]=K[g+c|0];H[h+6|0]=K[g+j|0];a=a+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(f&1){e=d+(a<<1)|0;a=d+(a+b|0)|0;H[e+3213|0]=K[a+325|0];H[e+3214|0]=K[a+328|0]}a=f<<1}f=d+3208|0;b=a+d|0;H[b+3215|0]=0;b=b+3213|0;H[b|0]=0;H[b+1|0]=63;J[d+3204>>2]=J[d+3204>>2]+1;d=a+8|0;break e;case 16:a=J[e+584>>2];d=L[a+1148>>1];if(!d){if(!ek(a))break h;d=L[a+1148>>1];if(!d)break a}I[a+1148>>1]=0;f=J[a+1152>>2];if(J[a+1144>>2])break e;n:switch(J[a+ +1124>>2]-2|0){case 0:if(M[a+1128>>2]>2]){J[a+3204>>2]=17;break e}J[a+3204>>2]=18;break e;case 1:break n;default:break e}J[a+3204>>2]=18;break e;case 17:a=J[e+584>>2];H[a+3208|0]=255;J[a+3204>>2]=16;d=K[a+302|0];H[a+3209|0]=d-48;d=d+1|0;H[a+302|0]=(d&255)!=8?d:0;f=a+3208|0;break f;case 18:break m;case 0:break g;default:break i}a=J[e+584>>2];I[a+3208>>1]=55807;f=a+3208|0;break f}f=b+4|0;d=J[b>>2]-4|0}b=d}J[a+3204>>2]=J[a+3204>>2]+1}if(!b)continue;break e}break}Uc(J[e+628>>2],90047,90084,0); +nf(J[e+584>>2]+4|0,1);B()}a=J[e+584>>2];I[a+3208>>1]=55551;J[a+3204>>2]=J[a+3204>>2]+1;f=a+3208|0}d=2}J[i+1024>>2]=f;J[i+1028>>2]=d;return 1}fa(90111,70472,2057,97221);B()}fa(90175,70472,2196,97238);B()}fa(90246,70472,2232,97258);B()}fa(80397,70472,2266,97278);B()}function foa(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;g=J[a+4>>2];a:{if((b|0)==(c|0)|(g|0)==(a|0))break a;while(1){J[g+8>>2]=J[b+8>>2];b:{if((b|0)==(g|0))break b;e=J[b+16>>2];l=b+12|0;d=J[g+16>>2]; +j=g+12|0;c:{if((e|0)==(l|0)|(d|0)==(j|0))break c;while(1){f=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=f;f=J[e+20>>2];J[d+16>>2]=J[e+16>>2];J[d+20>>2]=f;d=J[d+4>>2];e=J[e+4>>2];if((l|0)==(e|0))break c;if((d|0)!=(j|0))continue;break}}if((d|0)==(j|0)){if((e|0)==(l|0))break b;f=vc(24);J[f>>2]=0;O[f+8>>3]=O[e+8>>3];O[f+16>>3]=O[e+16>>3];m=1;d:{k=J[e+4>>2];e:{if((l|0)==(k|0)){e=f;break e}d=f;while(1){J[699344]=0;e=_(4,24)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;O[e+8>>3]=O[k+8>>3];O[e+16>>3]=O[k+ +16>>3];J[d+4>>2]=e;J[e>>2]=d;m=m+1|0;d=e;k=J[k+4>>2];if((l|0)!=(k|0))continue;break}}d=J[j>>2];J[d+4>>2]=f;J[f>>2]=d;J[j>>2]=e;J[e+4>>2]=j;J[j+8>>2]=J[j+8>>2]+m;break b}oa(ea(0)|0)|0;while(1){a=J[d>>2];uc(d);d=a;if(d)continue;break}J[699344]=0;ka(5052);a=J[699344];J[699344]=0;f:{if((a|0)==1){b=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break f;ea(0)|0;Bc()}B()}ba(b|0);B()}e=J[d>>2];f=J[J[g+12>>2]+4>>2];J[e+4>>2]=f;J[f>>2]=e;while(1){f=J[d+4>>2];J[g+20>>2]=J[g+20>>2]-1;uc(d);d= +f;if((j|0)!=(d|0))continue;break}}g=J[g+4>>2];b=J[b+4>>2];if((c|0)==(b|0))break a;if((a|0)!=(g|0))continue;break}}if((a|0)==(g|0)){g=a;d=0;g:{if((b|0)==(c|0))break g;f=c;c=vc(24);J[c>>2]=0;a=J[b+8>>2];J[c+20>>2]=0;e=c+12|0;J[c+16>>2]=e;J[c+8>>2]=a;J[e>>2]=e;h:{i:{j:{k:{l:{m:{n:{i=J[b+16>>2];j=b+12|0;if((i|0)!=(j|0)){a=e;while(1){J[699344]=0;h=_(4,24)|0;l=J[699344];J[699344]=0;if((l|0)==1)break n;O[h+8>>3]=O[i+8>>3];o=O[i+16>>3];J[h+4>>2]=e;O[h+16>>3]=o;J[h>>2]=a;J[a+4>>2]=h;d=d+1|0;J[c+20>>2]=d;J[c+ +12>>2]=h;a=h;i=J[i+4>>2];if((j|0)!=(i|0))continue;break}}k=1;o:{n=J[b+4>>2];p:{if((f|0)==(n|0)){b=c;break p}a=c;while(1){J[699344]=0;b=_(4,24)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;d=J[n+8>>2];m=0;J[b+20>>2]=0;e=b+12|0;J[b+16>>2]=e;J[b+8>>2]=d;J[e>>2]=e;d=e;i=J[n+16>>2];j=n+12|0;if((i|0)!=(j|0))while(1){J[699344]=0;h=_(4,24)|0;l=J[699344];J[699344]=0;if((l|0)==1)break m;O[h+8>>3]=O[i+8>>3];o=O[i+16>>3];J[h+4>>2]=e;O[h+16>>3]=o;J[h>>2]=d;J[d+4>>2]=h;m=m+1|0;J[b+20>>2]=m;J[b+12>>2]=h;d=h;i= +J[i+4>>2];if((j|0)!=(i|0))continue;break}J[a+4>>2]=b;J[b>>2]=a;k=k+1|0;a=b;n=J[n+4>>2];if((f|0)!=(n|0))continue;break}}a=J[g>>2];J[a+4>>2]=c;J[c>>2]=a;J[g>>2]=b;J[b+4>>2]=g;J[g+8>>2]=J[g+8>>2]+k;break g}d=ea(0)|0;b=0;break l}i=Z()|0;Am(e);break k}d=ea(0)|0;Am(e)}c=b;oa(d|0)|0;while(1){b=a;q:{if(!J[b+20>>2])break q;d=J[b+16>>2];e=J[d>>2];f=J[J[b+12>>2]+4>>2];J[e+4>>2]=f;J[f>>2]=e;J[b+20>>2]=0;f=b+12|0;if((f|0)==(d|0))break q;while(1){a=J[d+4>>2];uc(d);d=a;if((f|0)!=(d|0))continue;break}}a=J[b>>2]; +uc(b);if(a)continue;break}J[699344]=0;ka(5052);a=J[699344];J[699344]=0;if((a|0)!=1)break h;i=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break i;if(!c)break j}uc(c)}ba(i|0);B()}ea(0)|0;Bc()}B()}return}c=J[g>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;while(1){c=g;g=J[c+4>>2];J[a+8>>2]=J[a+8>>2]-1;r:{if(!J[c+20>>2])break r;d=J[c+16>>2];f=J[d>>2];b=J[J[c+12>>2]+4>>2];J[f+4>>2]=b;J[b>>2]=f;J[c+20>>2]=0;f=c+12|0;if((f|0)==(d|0))break r;while(1){b=J[d+4>>2];uc(d);d=b;if((f|0)!=(b|0))continue; +break}}uc(c);if((a|0)!=(g|0))continue;break}}function Z4a(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;a:{b:{if(!J[a+188>>2])break b;if(!J[b>>2]){f=vc(12);c:{if(H[a+303|0]>=0){c=J[a+296>>2];J[f>>2]=J[a+292>>2];J[f+4>>2]=c;J[f+8>>2]=J[a+300>>2];break c}c=J[a+296>>2];d=J[a+292>>2];J[699344]=0;ca(15,f|0,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[b>>2]=f}if(!J[b+12>>2]){f=vc(12);c=J[J[a+188>>2]+24>>2];d:{if(c){d=0;e:{j=K[c|0];if(!j)break e;e=c;while(1){i=d;d=d+1|0;k=K[e+1|0];e= +e+1|0;if(k)continue;break}if((j|0)!=60|i>>>0<6|(K[c+1|0]!=117|K[c+2|0]!=116))break e;if(K[c+3|0]!=102|K[c+4|0]!=56|K[c+5|0]!=62)break e;J[699344]=0;ca(1618,f|0,c+6|0,i-5|0);c=J[699344];J[699344]=0;if((c|0)!=1)break d;break a}J[699344]=0;ia(2848,f|0,c|0,d|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break a;break d}J[f>>2]=0;H[f+11|0]=0}J[b+12>>2]=f}if(!J[b+24>>2]){f=vc(4);c=J[J[a>>2]+48>>2];J[699344]=0;c=_(c|0,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[f>>2]=c;J[b+24>>2]=f}if(!J[b+20>>2]){f= +vc(4);c=J[J[a>>2]+52>>2];J[699344]=0;c=_(c|0,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[f>>2]=c;J[b+20>>2]=f}if(!J[b+28>>2]){f=vc(4);c=J[J[a>>2]+24>>2];J[699344]=0;c=_(c|0,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[f>>2]=c;J[b+28>>2]=f}d=ho(J[a+188>>2],2);if(!d)break b;if(!J[b+32>>2]){e=vc(10);J[b+32>>2]=e;c=K[d+40|0]|K[d+41|0]<<8;H[e+8|0]=c;H[e+9|0]=c>>>8;c=K[d+36|0]|K[d+37|0]<<8|(K[d+38|0]<<16|K[d+39|0]<<24);i=K[d+32|0]|K[d+33|0]<<8|(K[d+34|0]<<16|K[d+35|0]<<24);H[e|0]=i;H[e+ +1|0]=i>>>8;H[e+2|0]=i>>>16;H[e+3|0]=i>>>24;H[e+4|0]=c;H[e+5|0]=c>>>8;H[e+6|0]=c>>>16;H[e+7|0]=c>>>24}if(!J[b+36>>2]){c=vc(4);J[c>>2]=J[d+44>>2];J[b+36>>2]=c}if(!J[b+40>>2]){c=vc(4);J[c>>2]=J[d+48>>2];J[b+40>>2]=c}if(!J[b+44>>2]){c=vc(4);J[c>>2]=J[d+52>>2];J[b+44>>2]=c}if(!J[b+48>>2]){c=vc(4);J[c>>2]=J[d+56>>2];J[b+48>>2]=c}if(!J[b+52>>2]){c=vc(4);J[c>>2]=J[d+80>>2];J[b+52>>2]=c}if(!J[b+56>>2]){c=vc(4);J[c>>2]=J[d+84>>2];J[b+56>>2]=c}if(!J[b+60>>2]){c=vc(2);I[c>>1]=L[d+4>>1];J[b+60>>2]=c}if(!J[b+64>> +2]){c=vc(2);I[c>>1]=L[d+6>>1];J[b+64>>2]=c}c=J[a+188>>2];a=L[c+68>>1];f:{if(a){h=1E3/+(a>>>0);if(!J[b+76>>2]){e=vc(2);g=h*+I[d+2>>1];g:{if(R(g)<2147483648){a=~~g;break g}a=-2147483648}I[e>>1]=a;J[b+76>>2]=e}if(!J[b+80>>2]){e=vc(2);g=h*+I[d+70>>1];h:{if(R(g)<2147483648){a=~~g;break h}a=-2147483648}I[e>>1]=a;J[b+80>>2]=e}if(!J[b+84>>2]){e=vc(2);g=h*+I[d+72>>1];i:{if(R(g)<2147483648){a=~~g;break i}a=-2147483648}I[e>>1]=a;J[b+84>>2]=e}if(!J[b+88>>2]){e=vc(2);g=h*+I[d+74>>1];j:{if(R(g)<2147483648){a=~~g; +break j}a=-2147483648}I[e>>1]=a;J[b+88>>2]=e}if(!J[b+92>>2]){e=vc(2);g=h*+I[d+88>>1];k:{if(R(g)<2147483648){a=~~g;break k}a=-2147483648}I[e>>1]=a;J[b+92>>2]=e}if(J[b+96>>2])break f;e=vc(2);h=h*+I[d+90>>1];l:{if(R(h)<2147483648){a=~~h;break l}a=-2147483648}I[e>>1]=a;J[b+96>>2]=e;break f}if(!J[b+76>>2]){a=vc(2);I[a>>1]=L[d+2>>1];J[b+76>>2]=a}if(!J[b+80>>2]){a=vc(2);I[a>>1]=L[d+70>>1];J[b+80>>2]=a}if(!J[b+84>>2]){a=vc(2);I[a>>1]=L[d+72>>1];J[b+84>>2]=a}if(!J[b+88>>2]){a=vc(2);I[a>>1]=L[d+74>>1];J[b+ +88>>2]=a}if(!J[b+92>>2]){a=vc(2);I[a>>1]=L[d+88>>1];J[b+92>>2]=a}if(J[b+96>>2])break f;a=vc(2);I[a>>1]=L[d+90>>1];J[b+96>>2]=a}if(!J[b+68>>2]){f=vc(4);J[699344]=0;a=_(2925,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[f>>2]=a;J[b+68>>2]=f}if(J[b+100>>2])break b;a=vc(2);I[a>>1]=L[d+8>>1];J[b+100>>2]=a}return}a=Z()|0;uc(f);ba(a|0);B()}function aHa(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;c=fc+-64|0;fc=c;a:{if(!J[a+16>>2])break a;e=c+48|0;f=a+4|0;KX(e,f);d=J[a+16>>2];g= +J[J[d>>2]+32>>2];J[699344]=0;d=aa(g|0,d|0,e|0)|0;g=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{if((g|0)==1)break g;h:{if(d)break h;J[c+32>>2]=0;d=J[a+16>>2];J[699344]=0;ga(5109,d|0,e|0,c+32|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;e=J[c+32>>2];if(!e)break h;i:{if(!K[e+8|0])break i;d=J[e>>2];if(!d)break i;uc(d)}uc(e)}e=J[a+16>>2];d=J[J[e>>2]+32>>2];J[699344]=0;e=aa(d|0,e|0,c+48|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{if(!e){J[699344]=0;da(5039, +c+20|0,a+20|0);e=J[699344];J[699344]=0;if((e|0)==1)break w;J[699344]=0;da(5039,c+8|0,f|0);e=J[699344];J[699344]=0;if((e|0)==1)break v;f=K[c+19|0];e=f<<24>>24;d=K[c+31|0];g=d<<24>>24;h=(g|0)<0?J[c+24>>2]:d;i=(e|0)<0?J[c+12>>2]:f;f=h+i|0;if(f>>>0>=1073741808){J[699344]=0;$(2959,c+32|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;break b}x:{if(f>>>0<=1){J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;H[c+43|0]=f;d=c+32|0;break x}d=f|3;if(d>>>0>=1073741823){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!= +1)break b;break e}J[699344]=0;j=d+1|0;d=_(4,j<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break e;J[c+36>>2]=f;J[c+32>>2]=d;J[c+40>>2]=j|-2147483648}f=h<<2;d=cd(d,(g|0)<0?J[c+20>>2]:c+20|0,f)+f|0;f=i<<2;l=cd(d,(e|0)<0?J[c+8>>2]:c+8|0,f)+f|0,m=0,J[l>>2]=m;if(H[c+59|0]<0){uc(J[c+48>>2]);e=K[c+19|0]}J[c+56>>2]=J[c+40>>2];f=J[c+36>>2];J[c+48>>2]=J[c+32>>2];J[c+52>>2]=f;J[c+32>>2]=0;H[c+43|0]=0;if(e<<24>>24<0)uc(J[c+8>>2]);if(H[c+31|0]<0)uc(J[c+20>>2]);f=J[a+16>>2];d=J[J[f>>2]+32>>2];e=0;J[699344]=0;f=aa(d| +0,f|0,c+48|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;if(!f)break j}J[c+8>>2]=0;a=J[a+16>>2];J[699344]=0;ga(5109,a|0,c+48|0,c+8|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break u;a=J[J[c+8>>2]+4>>2];J[699344]=0;a=eD(a,0);e=J[699344];J[699344]=0;if((e|0)==1)break t;J[699344]=0;J[c+4>>2]=a;e=_(27,a- -64|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break s;a=J[c+8>>2];f=J[a+4>>2];a=J[a>>2];J[699344]=0;f=dD(a,f,e,c+4|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break s;if((f|0)!=1)break n;a=J[J[b>>2]+136>> +2];J[699344]=0;aa(a|0,b|0,2382744)|0;a=J[699344];J[699344]=0;if((a|0)==1)break s;J[699344]=0;a=c+20|0;ca(1618,a|0,e|0,J[c+4>>2]);d=J[699344];J[699344]=0;if((d|0)==1)break r;J[699344]=0;a=ga(2280,a|0,0,2382748)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;J[c+40>>2]=J[a+8>>2];d=J[a+4>>2];J[c+32>>2]=J[a>>2];J[c+36>>2]=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;a=J[J[b>>2]+176>>2];J[699344]=0;aa(a|0,b|0,c+32|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;if(H[c+43|0]<0)uc(J[c+32>>2]);if(H[c+31|0]<0)uc(J[c+ +20>>2]);uc(e);a=J[c+8>>2];if(!a)break k;if(K[a+8|0])break m;break l}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break o}a=Z()|0;if(H[c+43|0]>=0)break o;uc(J[c+32>>2])}if(H[c+31|0]>=0)break c;uc(J[c+20>>2]);break c}uc(e);a=J[c+8>>2];if(!a)break k;if(!K[a+8|0])break l}b=J[a>>2];if(!b)break l;uc(b)}uc(a)}e=(f|0)==1}if(H[c+59|0]>=0)break a;uc(J[c+48>>2]);break a}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;if(H[c+19|0]>=0)break d;uc(J[c+8>>2])}if(H[c+ +31|0]>=0)break c;uc(J[c+20>>2])}if(H[c+59|0]<0)uc(J[c+48>>2]);ba(a|0);B()}B()}fc=c- -64|0;return e|0}function mEb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=-1;a:{b:{d=J[b+8>>2];c:{if(d&7)break c;e=J[a+12>>2];c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break b;d=e>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;d:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break d}if((bd(b,d)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+ +60>>2])break b;d=e>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;e:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break e}if((bd(b,d&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break b;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;f:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break f}if((bd(b,d&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>> +2];if((c|0)>=0&(c|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break g}if((bd(b,e&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;e=J[a+16>>2];c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break a;d=e>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;h:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break h}if((bd(b,d)|0)==-1)break c}c=-1;d=J[b+8>>2]; +if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break a;d=e>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;i:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break i}if((bd(b,d&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break a;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;f=J[b+28>>2];J[b+28>>2]=f-1;j:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break j}if((bd(b,d&255)|0)== +-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break a;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;k:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break k}if((bd(b,e&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;a=J[a+20>>2];e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break a;e=a>>>24|0;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;l:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break l}if((bd(b, +e)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break a;e=a>>>16|0;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;m:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break m}if((bd(b,e&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break a;e=a>>>8|0;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;n:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break n}if((bd(b, +e&255)|0)==-1)break c}c=-1;d=J[b+8>>2];if(d&7)break c;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break a;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;o:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=a;break o}if((bd(b,a&255)|0)==-1)break c}c=0}return c|0}J[b+8>>2]=d|4;return-1}J[b+8>>2]=d|4;return-1}function Aua(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=fc-32|0;fc=d;H[d+15|0]=c;a:{b:{c:{d:{e:{f:{g:{h:{if(b){e=J[a>>2];if(!(!e|(b|0)>=0))b=J[e+8>>2]+ +b|0;if(!(!e|(b|0)<0)&J[e+8>>2]>=(b|0))break h;CH();B()}e=J[a>>2];if(!e)break g;b=0}g=fc-16|0;fc=g;h=d+8|0;J[h>>2]=0;i:{j:{k:{l:{m:{f=J[e+8>>2];b=(f&b>>31)+b|0;if(!((b|0)>=0&(b|0)<=(f|0))){J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)break k;break m}n:{o:{p:{q:{r:{if(K[b+J[e+12>>2]|0]==(c&255)){J[699344]=0;aa(5145,h|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;break r}if(!c){J[699344]=0;c=g+12|0;ca(5654,c|0,e|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break o;J[699344]=0;aa(5153, +h|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[g+12>>2];J[g+12>>2]=0;if(!b)break r;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break r;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break r}break j}a=Z()|0;zc(g+12|0);break l}J[699344]=0;i=g+8|0;ca(5654,i|0,e|0,((b|0)>(f|0)?b:f)|0);f=J[699344];J[699344]=0;if((f|0)==1)break q;J[699344]=0;aa(5153,h|0,i|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break p;f=J[g+8>>2];J[g+8>>2]=0;s:{if(!f)break s;J[699344]= +0;i=J[f+4>>2]-1|0;J[f+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break n;if(i)break s;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break n}H[b+J[J[h>>2]+12>>2]|0]=c;if((b|0)!=J[e+8>>2])break r;H[(b+J[J[h>>2]+12>>2]|0)+1|0]=0}fc=g+16|0;break i}a=Z()|0;break l}a=Z()|0;zc(g+8|0);break l}a=Z()|0;break l}break j}a=Z()|0}zc(h);ba(a|0)}B()}ea(0)|0;Bc();B()}b=J[d+8>>2];if(!b)break f;c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+16|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break e;b=Z()|0;break a}J[699344]= +0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2426580;ma(5634,d+8|0,d+16|0,d+15|0,0,1);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[d+16>>2]=2426484;b=J[d+28>>2];if(b){H[b|0]=0;uc(J[d+28>>2])}J[d+28>>2]=0;c=d+16|0;nd(c);b=J[d+8>>2];t:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,c|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break t;b=Z()|0;break a}J[d+16>>2]=0}J[699344]=0;aa(5153,a|0,d+16|0)|0;b=J[699344];J[699344]=0;u:{if((b|0)!=1){b=J[d+16>>2];J[d+16>>2]=0;if(!b)break u;J[699344]=0;c=J[b+ +4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break u;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break u}break b}b=Z()|0;zc(d+16|0);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];a=J[d+8>>2];J[d+8>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break b}J[d+16>>2]=0}J[699344]=0;aa(5153,a|0,d+16|0)|0;b=J[699344];J[699344]=0;v:{if((b| +0)!=1){b=J[d+16>>2];J[d+16>>2]=0;if(!b)break v;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break v;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break v}break b}b=Z()|0;zc(d+16|0);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];a=J[d+8>>2];J[d+8>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}fc=d+32|0; +return}a=Z()|0;rh(d+16|0);ba(a|0);B()}ea(0)|0;Bc();B()}zc(d+8|0);ba(b|0);B()}function zX(a){a=a|0;var b=0,c=0,d=0;d=fc-32|0;fc=d;J[a>>2]=2396224;a:{b=J[a+16>>2];b:{c:{d:{if((b|0)>0){if((b|0)>=J[a+20>>2]){J[699344]=0;a=ja(5178,d+8|0,2390963,2385875,963,2396303,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;ea(0)|0;Kc(a);break c}b=b+J[a+36>>2]|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0; +H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;H[b+29|0]=0;H[b+30|0]=0;H[b+31|0]=0;H[b+16|0]=0;H[b+17|0]=0;H[b+18|0]=0;H[b+19|0]=0;H[b+20|0]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;J[a+24>>2]=J[a+16>>2]+1;J[699344]=0;_(5219,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d}J[a+24>>2]=0;J[a+16>>2]=0;b=J[a+48>>2];c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c| +0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)== +1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d; +c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c= +J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+ +20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+20>>2];J[699344]=0;da(5220,b|0,(c>>>1|0)+32768|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0}Bc()}B()}a=gI(a);fc=d+32|0;return a|0}function TQa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=fc-1040|0;fc=f;J[f+1024>>2]=13;J[a+4>>2]= +b;J[a+792>>2]=1;J[a>>2]=d;Ac(a+20|0,0,256);l=-1<<((b|0)<(e|0)?b:e);m=l^-1;kc[J[J[d>>2]+36>>2]](d,f+768|0,f+512|0,m);a:{b:{c:{d:{e:{f:switch(J[c>>2]-5|0){case 0:b=J[a>>2];e=kc[J[J[b>>2]+28>>2]](b)|0;J[a+8>>2]=e;if((e|0)<=0)break d;c=0;if((e|0)!=1){j=e&-2;d=a+280|0;h=a+536|0;while(1){b=c<<3;O[b+d>>3]=O[b+(f+768|0)>>3];O[b+h>>3]=O[b+(f+512|0)>>3];b=b|8;O[b+d>>3]=O[b+(f+768|0)>>3];O[b+h>>3]=O[b+(f+512|0)>>3];c=c+2|0;o=o+2|0;if((j|0)!=(o|0))continue;break}}if(!(e&1))break e;b=c<<3;c=b+a|0;O[c+280>>3]= +O[b+(f+768|0)>>3];O[c+536>>3]=O[b+(f+512|0)>>3];break e;case 1:break f;default:break b}b=J[J[c+8>>2]+12>>2]/2|0;J[a+8>>2]=b;d=J[a>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)>(b|0))break b;b=J[a>>2];g:{if(J[a+8>>2]<=(kc[J[J[b>>2]+28>>2]](b)|0)){b=J[a+8>>2];break g}Cc(0,-1,834309,0);b=J[a>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[a+8>>2]=b}if((b|0)<=0)break d;b=0;while(1){h=b<<1;d=f+1024|0;Sc(J[c+8>>2],h,d,0);j=J[f+1024>>2];if(j-3>>>0<4294967294)break c;e=(b<<3)+a|0;O[e+280>>3]=(j|0)==1?+J[f+1032>>2]:O[f+1032>>3];yc(d); +Sc(J[c+8>>2],h|1,d,0);h=J[f+1024>>2];if(h-3>>>0<4294967294)break c;O[e+536>>3]=((h|0)==1?+J[f+1032>>2]:O[f+1032>>3])-O[e+280>>3];yc(d);b=b+1|0;e=J[a+8>>2];if((b|0)<(e|0))continue;break}}if((e|0)<=0)break d;e=0;c=0-l|0;p=+(m|0);while(1){h=Gd(c,4);J[((e<<2)+a|0)+20>>2]=h;b=e<<3;j=b+(f+512|0)|0;n=O[b+(f+768|0)>>3];b=a+b|0;q=O[b+536>>3];r=O[b+280>>3];b=0;while(1){g=n;k=r+q*+(b|0)/p;h:{if(g>k)break h;i=g+O[j>>3];g=k;if(!(i> +2]=d;b=b+1|0;if((c|0)!=(b|0))continue;break}e=e+1|0;if((e|0)>2])continue;break}}J[a+12>>2]=0;J[a+16>>2]=0;b=J[a>>2];c=kc[J[J[b>>2]+12>>2]](b)|0;b=J[a>>2];if((c|0)==7){c=J[b+12>>2];J[a+12>>2]=c;h=J[b+16>>2];s=a,t=kc[J[J[c>>2]+28>>2]](c)|0,J[s+16>>2]=t;j=J[b+20>>2];b=J[a+12>>2];kc[J[J[b>>2]+36>>2]](b,f+256|0,f,h);b=0;l=0-l|0;c=J[a+16>>2];if((c|0)>0)while(1){s=(b<<2)+a|0,t=Gd(l,4),J[s+148>>2]=t;b=b+1|0;c=J[a+16>>2];if((b|0)<(c|0))continue;break}g=+(m|0);i=O[a+536>>3];n=O[a+280>>3];e=0;while(1){k= +n+i*+(e|0)/g+.5;j:{if(R(k)<2147483648){d=~~k;break j}d=-2147483648}if((c|0)>0){b=0;d=(d|0)>=0?(d|0)>(h|0)?h:d:0;while(1){m=J[((b<<2)+a|0)+148>>2]+(e<<2)|0;k=+K[(j+P(c,d)|0)+b|0]/255;c=b<<3;k=(k*O[c+f>>3]+O[c+(f+256|0)>>3])*65536;k:{if(R(k)<2147483648){c=~~k;break k}c=-2147483648}J[m>>2]=c;b=b+1|0;c=J[a+16>>2];if((b|0)<(c|0))continue;break}}e=e+1|0;if((l|0)!=(e|0))continue;break}break a}if((kc[J[J[b>>2]+12>>2]](b)|0)!=8)break a;d=J[a>>2];b=J[d+16>>2];J[a+12>>2]=b;e=kc[J[J[b>>2]+28>>2]](b)|0;J[a+16>> +2]=e;b=0;c=0-l|0;d=J[d+20>>2];if((e|0)>0)while(1){s=(b<<2)+a|0,t=Gd(c,4),J[s+148>>2]=t;b=b+1|0;if((b|0)>2])continue;break}n=+(m|0);e=0;while(1){g=O[a+280>>3]+O[a+536>>3]*+(e|0)/n;i=O[f+768>>3];l:{if(g>3];if(!(i>3]=g;kc[J[J[d>>2]+16>>2]](d,f+256|0,f);b=0;if(J[a+16>>2]>0)while(1){j=J[((b<<2)+a|0)+148>>2]+(e<<2)|0;g=O[(b<<3)+f>>3]*65536;m:{if(R(g)<2147483648){h=~~g;break m}h=-2147483648}J[j>>2]=h;b=b+1|0;if((b|0)>2])continue;break}e= +e+1|0;if((c|0)!=(e|0))continue;break}break a}yc(f+1024|0)}J[a+792>>2]=0}fc=f+1040|0;return a|0}function qI(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=fc-32|0;fc=f;a:{if(kc[J[J[a>>2]+32>>2]](a,b)|0){g=kc[J[J[a>>2]+20>>2]](a,b,c)|0;break a}kc[J[J[a>>2]+48>>2]](f+20|0,a,b,0);b:{c:{h=J[f+24>>2];d=J[f+20>>2];d:{if((h|0)==(d|0))break d;J[699344]=0;J[f+8>>2]=4978;ia(4979,d|0,h|0,f+8|0,62-(S((h-d|0)/12|0)<<1)|0);d=J[699344];J[699344]=0;e:{f:{if((d|0)!=1){h=J[f+20>>2];i=J[f+24>> 2];if((h|0)==(i|0))break d;while(1){e=K[h+11|0];g=e<<24>>24<0;k=g?J[h>>2]:h;d=k;l=g?J[h+4>>2]:e;g=d+(l<<2)|0;j=g;e=d;if(l){g:while(1){e=d;while(1){h:{d=e+4|0;if(J[e>>2]==46){if((d|0)==(g|0))break h;if(J[d>>2]!=112)continue g;if((g|0)==(e+8|0))break h;if(J[e+8>>2]!=105)continue g;if((g|0)==(e+12|0))break h;if(J[e+12>>2]!=101)continue g;if((g|0)==(e+16|0))break h;if(J[e+16>>2]!=99)continue g;if((g|0)==(e+20|0))break h;j=J[e+20>>2]==101?e:j;continue g}e=d;if((g|0)!=(e|0))continue}break}break}e=j}d=(e| -0)==(g|0)?-1:e-k>>2;i:{if(!((d|0)==-1|(l|0)!=(d+6|0))){h=h+12|0;break i}d=J[f+20>>2];h=P((h-d|0)/12|0,12)+d|0;e=h;d=e+12|0;if((i|0)==(d|0))g=i;else{while(1){if(H[e+11|0]<0)qc(J[e>>2]);g=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=g;J[e+8>>2]=J[d+8>>2];H[d+11|0]=0;J[d>>2]=0;e=e+12|0;d=d+12|0;if((i|0)!=(d|0))continue;break}g=J[f+24>>2]}i=P((e-h|0)/12|0,12)+h|0;if((g|0)!=(i|0))while(1){d=g-12|0;if(H[g-1|0]<0)qc(J[d>>2]);g=d;if((d|0)!=(i|0))continue;break}J[f+24>>2]=i}if((h|0)!=(i|0))continue;break}h=J[f+20>> -2];if((i|0)==(h|0)){g=0;break d}J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;d=0;i=0;while(1){j:{J[f+4>>2]=0;e=J[J[a>>2]+20>>2];J[695492]=0;e=ga(e|0,a|0,h|0,f+4|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;if(e){k:{if(J[f+16>>2]!=(d|0)){J[d>>2]=J[f+4>>2];d=d+4|0;J[f+12>>2]=d;break k}k=J[f+8>>2];e=d-k|0;m=e>>2;g=m+1|0;if(g>>>0>=1073741824){J[695492]=0;_(4896,f+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break f}j=e>>1;l=e>>>0>=2147483644?1073741823:g>>>0>>0?j:g;l:{if(!l){j=0;break l}if(l>>>0>= -1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break f;break c}J[695492]=0;j=$(4,l<<2)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j}e=(m<<2)+j|0;J[e>>2]=J[f+4>>2];g=e+4|0;if((d|0)!=(k|0)){while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(k|0))continue;break}d=J[f+8>>2]}J[f+16>>2]=(l<<2)+j;J[f+12>>2]=g;J[f+8>>2]=e;if(d)qc(d);d=g}i=J[J[f+4>>2]+4>>2]+i|0}h=h+12|0;if((h|0)!=J[f+24>>2])continue;break e}break}break c}d=Z()|0;break b}B()}m:{if(!i){j=J[f+8>>2];break m}J[695492]=0; -l=$(27,i|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;j=J[f+8>>2];if((j|0)!=(d|0)){h=0;g=j;while(1){e=J[g>>2];k=J[e+4>>2];if(k){tc(h+l|0,J[e>>2],k);h=h+k|0}n:{if(!K[e+8|0])break n;k=J[e>>2];if(!k)break n;qc(k)}qc(e);g=g+4|0;if((g|0)!=(d|0))continue;break}}d=J[J[a>>2]+44>>2];J[695492]=0;da(d|0,a|0,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;d=J[J[a>>2]+24>>2];J[695492]=0;ia(d|0,a|0,b|0,l|0,i|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;a=$(4,12)|0;b=J[695492];J[695492]=0;if((b| -0)==1)break c;H[a+8|0]=1;J[a+4>>2]=i;J[a>>2]=l;J[c>>2]=a}if(j)qc(j);g=(i|0)!=0;h=J[f+20>>2]}if(!h)break a;e=J[f+24>>2];d=h;if((e|0)!=(d|0)){while(1){a=e-12|0;if(H[e-1|0]<0)qc(J[a>>2]);e=a;if((h|0)!=(e|0))continue;break}d=J[f+20>>2]}J[f+24>>2]=h;qc(d);break a}d=Z()|0;a=J[f+8>>2];if(!a)break b;J[f+12>>2]=a;qc(a)}sg(f+20|0);ba(d|0);B()}bc=f+32|0;return g|0}function Mxa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;b=a+8|0;a:{if(J[a+8>>2]){ei(c+28|0,a,b);break a}J[c+28>>2]=0;md(c+28|0,0)}b:{c:{d:{e:{if(J[b>> -2]){J[695492]=0;ca(5353,c+24|0,a|0,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break e;break d}J[695492]=0;J[c+24>>2]=0;aa(4985,c+24|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d}f:{g:{h:{if(J[b>>2]){J[695492]=0;ca(5351,c+20|0,a|0,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break h;break g}J[695492]=0;J[c+20>>2]=0;aa(4985,c+20|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g}i:{j:{k:{if(J[b>>2]){J[695492]=0;ca(5352,c+16|0,a|0,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break k;break j}J[695492]=0;J[c+ -16>>2]=0;aa(4985,c+16|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j}l:{m:{n:{if(J[b>>2]){J[695492]=0;ca(5354,c+12|0,a|0,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break n;break m}J[695492]=0;J[c+12>>2]=0;aa(4985,c+12|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break m}o:{p:{q:{if(J[b>>2]){J[695492]=0;ca(5355,c+8|0,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break q;break p}J[695492]=0;J[c+8>>2]=0;aa(4985,c+8|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break p}r:{s:{d=J[c+28>>2];a=0;t:{u:{if(!d)break u; -b=J[d+8>>2];a=0;if((b|0)<=0)break u;d=J[d+12>>2];a=0;if((d|0)<=0)break u;e=J[c+24>>2];a=0;if(!e)break u;a=0;if((b|0)!=J[e+72>>2])break u;a=0;if((d|0)!=J[e+76>>2])break u;a=J[c+20>>2];v:{if(a){J[695492]=0;a=J[a+12>>2];if(a)a=J[a+4>>2];else a=0;e=J[695492];J[695492]=0;if((e|0)==1)break s;J[695492]=0;e=J[J[c+20>>2]+12>>2];if(e)e=J[e+8>>2];else e=0;f=J[695492];J[695492]=0;if((f|0)==1)break s;e=Is(b,d,a,e);break v}e=J[c+16>>2];a=0;if(!e)break u;e=Is(b,d,L[e+10>>1],L[e+8>>1])}a=0;if(e-13>>>0<4294967284)break u; -if(!J[c+8>>2]){e=J[c+12>>2];if(!e){a=0;break t}a=0;if(Is(b,d,L[e+10>>1],L[e+8>>1])-13>>>0<4294967284)break u}a=J[c+24>>2]!=0}b=J[c+8>>2];J[c+8>>2]=0;w:{if(!b)break w;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break w;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}b=J[c+12>>2];J[c+12>>2]=0;if(!b)break t;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break t;J[695492]=0;_(4987,b|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break b}b=J[c+16>>2];J[c+16>>2]=0;x:{if(!b)break x;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break x;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}b=J[c+20>>2];J[c+20>>2]=0;y:{if(!b)break y;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break y;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}b=J[c+24>>2];J[c+24>>2]=0;z:{if(!b)break z;J[695492]= -0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break z;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}b=J[c+28>>2];J[c+28>>2]=0;A:{if(!b)break A;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break r;if(d)break A;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break r}bc=c+32|0;return a|0}a=Z()|0;vc(c+8|0);break o}break b}a=Z()|0}vc(c+12|0);break l}a=Z()|0}vc(c+16|0);break i}a=Z()|0}vc(c+20|0);break f}a= -Z()|0}vc(c+24|0);break c}a=Z()|0}vc(c+28|0);ba(a|0);B()}ea(0)|0;yc();B()}function ZH(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;f=bc-48|0;bc=f;a:{b:{c:{d:{e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;h=J[a+56>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break d;g=J[a+56>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break d;i=J[a+56>>2];i=gc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+4;k=J[a+56>>2];k=gc[J[J[k>>2]+28>> -2]](k)|0;if((k|0)==-1)break d;j=J[a+56>>2];j=gc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break d;l=J[a+56>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break d;m=J[a+56>>2];m=gc[J[J[m>>2]+28>>2]](m)|0;if((m|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+4;n=J[a+56>>2];n=gc[J[J[n>>2]+28>>2]](n)|0;if((n|0)==-1)break d;o=J[a+56>>2];o=gc[J[J[o>>2]+28>>2]](o)|0;if((o|0)==-1)break d;p=J[a+56>>2];p=gc[J[J[p>>2]+28>>2]](p)|0;if((p|0)==-1)break d;q=J[a+56>>2];q=gc[J[J[q>>2]+28>>2]](q)|0;if((q|0)==-1)break d;J[a+68>>2]=J[a+ -68>>2]+4;r=J[a+56>>2];r=gc[J[J[r>>2]+28>>2]](r)|0;if((r|0)==-1)break d;s=J[a+56>>2];s=gc[J[J[s>>2]+28>>2]](s)|0;if((s|0)==-1)break d;t=J[a+56>>2];t=gc[J[J[t>>2]+28>>2]](t)|0;if((t|0)==-1)break d;u=J[a+56>>2];u=gc[J[J[u>>2]+28>>2]](u)|0;if((u|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+4;v=J[a+56>>2];v=gc[J[J[v>>2]+28>>2]](v)|0;if((v|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;e:{i=i|(h<<16|e<<24|g<<8);if(i){h=m|(j<<16|k<<24|l<<8);if(h)break e}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,800484,0);break a}f:{e=J[a+24>>2];g:{if(e>>> -0<(i>>>0)/10>>>0)break g;g=J[a+28>>2];j=u|(s<<16|r<<24|t<<8);k=q|(o<<16|n<<24|p<<8);if(g>>>0<(j>>>0)/10>>>0|(k>>>0)/10>>>0>e>>>0)break g;if(g>>>0>=(h>>>0)/10>>>0)break f}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,801116,0);J[a+72>>2]=1;break a}e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;l=e>>>3&1;g=e>>>1&3;if(e&1)break c;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;h:{if(!g){if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+16>>2]=e&128?e|-256:e;e=J[a+56>>2];e=gc[J[J[e>>2]+ -28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f>>2]=e&128?e|-256:e;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+20>>2]=e&128?e|-256:e;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+4>>2]=e&128?e|-256:e;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+24>>2]=e&128?e|-256:e;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1; -J[f+8>>2]=e&128?e|-256:e;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+28>>2]=e&128?e|-256:e;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+12>>2]=e&128?e|-256:e;break h}if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+16>>2]=e&128?e|-256:e;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f>>2]=e&128?e|-256:e}XH(a,g,0);Vm(J[a+76>>2]);e=it(a,0,i,h,g,l,0,0,f+16|0,f,0);break b}xc(1, -gc[J[J[a>>2]+52>>2]](a)|0,781526,0);break a}e=it(a,1,i,h,g,l,0,0,f+16|0,f,d-18|0)}if(c){b=v&7;i:{if(J[a+28>>2]!=-1)break i;c=h+j|0;if(c>>>0<=M[a+32>>2])break i;OA(J[a+40>>2],c,J[a+36>>2])}_k(J[a+40>>2],e,k,j,b);if(e)gc[J[J[e>>2]+4>>2]](e);if((d|0)!=-1)break a;jt(a,f+44|0);break a}J[e+4>>2]=b;id(J[a+48>>2],e)}bc=f+48|0}function pY(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{f=LH(a,b);c:{if(f){if((f|0)==9999)break c;b=J[a+3524>>2];while(1){d:{if(b){h=J[a+3520>>2];b=b-1|0;break d}b=J[a+4>>2]; -h=gc[J[J[b>>2]+28>>2]](b)|0;e:{if((h|0)!=255){if((h|0)!=-1)break e;break a}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=816157;if(b)break b}J[a+3520>>2]=h;b=7}J[a+3524>>2]=b;g=h>>>b&1|g<<1;i=i+1|0;if((i|0)!=(f|0))continue;break}h=0;f=(1<(g|0)?(-1<>2]+f|0;J[d>>2]=b;J[e>>2]=b;wc(e+4|0,0,252);m=1;while(1){b=J[a+3524>>2];i=0;h=0;while(1){f:{if(b){g=J[a+3520>>2];b=b-1|0;break f}b=J[a+4>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;g:{if((g| -0)!=255){if((g|0)!=-1)break g;break a}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=816157;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;i=g>>>b&1|i<<1&131070;d=i&65535;h=h+1|0;f=(h<<1)+c|0;j=L[f+18>>1];if(d>>>0>>0){j=815934;break b}k=L[f+52>>1];f=d-j|0;if((k|0)<=(f|0)){j=815934;if((h|0)!=16)continue;break b}break}i=0;d=0;f=K[((K[c+h|0]+(f&65535)|0)+c|0)+86|0];h:{if((f|0)!=240)break h;i:{while(1){j:{if(b){g=J[a+3520>>2];b=b-1|0;break j}b=J[a+4>>2];g=gc[J[J[b>> -2]+28>>2]](b)|0;k:{if((g|0)!=255){if((g|0)!=-1)break k;break a}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=816157;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;d=g>>>b&1|d<<1&131070;h=d&65535;i=i+1|0;f=(i<<1)+c|0;j=L[f+18>>1];if(h>>>0>>0){j=815934;break b}k=L[f+52>>1];f=h-j|0;if((k|0)>(f|0))break i;if((i|0)!=16)continue;break}j=815934;break b}h=0;k=0;f=K[((K[c+i|0]+(f&65535)|0)+c|0)+86|0];d=16;if((f|0)!=240)break h;l:{while(1){m:{if(b){g=J[a+3520>>2];b=b-1| -0;break m}b=J[a+4>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;n:{if((g|0)!=255){if((g|0)!=-1)break n;break a}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=816157;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;h=g>>>b&1|h<<1&131070;d=h&65535;k=k+1|0;i=(k<<1)+c|0;f=L[i+18>>1];if(d>>>0>>0){j=815934;break b}f=d-f|0;if((f|0)>1])break l;if((k|0)!=16)continue;break}j=815934;break b}h=0;i=0;f=K[((K[c+k|0]+(f&65535)|0)+c|0)+86|0];d=32;if((f|0)!=240)break h;o:{while(1){p:{if(b){g= -J[a+3520>>2];b=b-1|0;break p}b=J[a+4>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;q:{if((g|0)!=255){if((g|0)!=-1)break q;break a}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=816157;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;h=g>>>b&1|h<<1&131070;d=h&65535;i=i+1|0;f=(i<<1)+c|0;j=L[f+18>>1];if(d>>>0>>0){j=815934;break b}d=d-j|0;if((d|0)>1])break o;if((i|0)!=16)continue;break}j=815934;break b}f=K[((K[c+i|0]+(d&65535)|0)+c|0)+86|0];d=48}h=1;l=f&255;if(!l)break c;h= -0;f=0;i=0;k=l&15;if(k)while(1){if(b)b=b-1|0;else{b=J[a+4>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;r:{if((g|0)!=255){if((g|0)!=-1)break r;break a}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=816157;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;i=g>>>b&1|i<<1;f=f+1|0;if((k|0)!=(f|0))continue;break}g=(1<(i|0)?(-1<>>4)+m|0;if((b|0)>63)break c;J[(J[(b<<2)+2332064>>2]<<2)+e>>2]=g;m=b+1|0;if((b|0)!=63)continue;break}}return h}xc(1, -gc[J[J[a>>2]+52>>2]](a)|0,j,0);return 0}return 0}function g0a(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;h=bc-16|0;bc=h;e=J[a+8>>2];J[h+8>>2]=e;m=J[a+4>>2];g=J[m+8>>2];o=g+48|0;n=J[a+12>>2];i=J[a+16>>2];a:{b:{c:{if(J[g+60>>2]){j=e;break c}if(!(K[m+36|0]!=1|e>>>0>=n>>>0|M[a+20>>2]<=i>>>0)){H[m+36|0]=0;p=H[H[g+52|0]+o|0];k=K[m+37|0];break b}c=0;break a}c=1;break a}c=2}d:while(1){e:{f:{g:{h:{i:{j:switch(c|0){case 0:if(e>>>0>=n>>>0)break h;j=e;while(1){k:{if(M[a+ +0)==(g|0)?-1:e-k>>2;i:{if(!((d|0)==-1|(l|0)!=(d+6|0))){h=h+12|0;break i}d=J[f+20>>2];h=P((h-d|0)/12|0,12)+d|0;e=h;d=e+12|0;if((i|0)==(d|0))g=i;else{while(1){if(H[e+11|0]<0)uc(J[e>>2]);g=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=g;J[e+8>>2]=J[d+8>>2];H[d+11|0]=0;J[d>>2]=0;e=e+12|0;d=d+12|0;if((i|0)!=(d|0))continue;break}g=J[f+24>>2]}i=P((e-h|0)/12|0,12)+h|0;if((g|0)!=(i|0))while(1){d=g-12|0;if(H[g-1|0]<0)uc(J[d>>2]);g=d;if((d|0)!=(i|0))continue;break}J[f+24>>2]=i}if((h|0)!=(i|0))continue;break}h=J[f+20>> +2];if((i|0)==(h|0)){g=0;break d}J[f+16>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;d=0;i=0;while(1){j:{J[f+4>>2]=0;e=J[J[a>>2]+20>>2];J[699344]=0;e=ga(e|0,a|0,h|0,f+4|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;if(e){k:{if(J[f+16>>2]!=(d|0)){J[d>>2]=J[f+4>>2];d=d+4|0;J[f+12>>2]=d;break k}k=J[f+8>>2];e=d-k|0;m=e>>2;g=m+1|0;if(g>>>0>=1073741824){J[699344]=0;$(5056,f+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break f}j=e>>1;l=e>>>0>=2147483644?1073741823:g>>>0>>0?j:g;l:{if(!l){j=0;break l}if(l>>>0>= +1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break f;break c}J[699344]=0;j=_(4,l<<2)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j}e=(m<<2)+j|0;J[e>>2]=J[f+4>>2];g=e+4|0;if((d|0)!=(k|0)){while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(k|0))continue;break}d=J[f+8>>2]}J[f+16>>2]=(l<<2)+j;J[f+12>>2]=g;J[f+8>>2]=e;if(d)uc(d);d=g}i=J[J[f+4>>2]+4>>2]+i|0}h=h+12|0;if((h|0)!=J[f+24>>2])continue;break e}break}break c}d=Z()|0;break b}B()}m:{if(!i){j=J[f+8>>2];break m}J[699344]=0; +l=_(27,i|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;j=J[f+8>>2];if((j|0)!=(d|0)){h=0;g=j;while(1){e=J[g>>2];k=J[e+4>>2];if(k){xc(h+l|0,J[e>>2],k);h=h+k|0}n:{if(!K[e+8|0])break n;k=J[e>>2];if(!k)break n;uc(k)}uc(e);g=g+4|0;if((g|0)!=(d|0))continue;break}}d=J[J[a>>2]+44>>2];J[699344]=0;da(d|0,a|0,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;d=J[J[a>>2]+24>>2];J[699344]=0;ia(d|0,a|0,b|0,l|0,i|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;a=_(4,12)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break c;H[a+8|0]=1;J[a+4>>2]=i;J[a>>2]=l;J[c>>2]=a}if(j)uc(j);g=(i|0)!=0;h=J[f+20>>2]}if(!h)break a;e=J[f+24>>2];d=h;if((e|0)!=(d|0)){while(1){a=e-12|0;if(H[e-1|0]<0)uc(J[a>>2]);e=a;if((h|0)!=(e|0))continue;break}d=J[f+20>>2]}J[f+24>>2]=h;uc(d);break a}d=Z()|0;a=J[f+8>>2];if(!a)break b;J[f+12>>2]=a;uc(a)}Ag(f+20|0);ba(d|0);B()}fc=f+32|0;return g|0}function hW(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;b=a+8|0;a:{if(J[a+8>>2]){ti(c+28|0,a,b);break a}J[c+28>>2]=0;vd(c+28|0,0)}b:{c:{d:{e:{if(J[b>> +2]){J[699344]=0;ca(5523,c+24|0,a|0,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break e;break d}J[699344]=0;J[c+24>>2]=0;aa(5145,c+24|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d}f:{g:{h:{if(J[b>>2]){J[699344]=0;ca(5521,c+20|0,a|0,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break h;break g}J[699344]=0;J[c+20>>2]=0;aa(5145,c+20|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g}i:{j:{k:{if(J[b>>2]){J[699344]=0;ca(5522,c+16|0,a|0,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break k;break j}J[699344]=0;J[c+ +16>>2]=0;aa(5145,c+16|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j}l:{m:{n:{if(J[b>>2]){J[699344]=0;ca(5524,c+12|0,a|0,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break n;break m}J[699344]=0;J[c+12>>2]=0;aa(5145,c+12|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break m}o:{p:{q:{if(J[b>>2]){J[699344]=0;ca(5525,c+8|0,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break q;break p}J[699344]=0;J[c+8>>2]=0;aa(5145,c+8|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p}r:{s:{d=J[c+28>>2];a=0;t:{u:{if(!d)break u; +b=J[d+8>>2];a=0;if((b|0)<=0)break u;d=J[d+12>>2];a=0;if((d|0)<=0)break u;e=J[c+24>>2];a=0;if(!e)break u;a=0;if((b|0)!=J[e+72>>2])break u;a=0;if((d|0)!=J[e+76>>2])break u;a=J[c+20>>2];v:{if(a){J[699344]=0;a=J[a+12>>2];if(a)a=J[a+4>>2];else a=0;e=J[699344];J[699344]=0;if((e|0)==1)break s;J[699344]=0;e=J[J[c+20>>2]+12>>2];if(e)e=J[e+8>>2];else e=0;f=J[699344];J[699344]=0;if((f|0)==1)break s;e=xt(b,d,a,e);break v}e=J[c+16>>2];a=0;if(!e)break u;e=xt(b,d,L[e+10>>1],L[e+8>>1])}a=0;if(e-13>>>0<4294967284)break u; +if(!J[c+8>>2]){e=J[c+12>>2];if(!e){a=0;break t}a=0;if(xt(b,d,L[e+10>>1],L[e+8>>1])-13>>>0<4294967284)break u}a=J[c+24>>2]!=0}b=J[c+8>>2];J[c+8>>2]=0;w:{if(!b)break w;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break w;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[c+12>>2];J[c+12>>2]=0;if(!b)break t;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break t;J[699344]=0;$(5147,b|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break b}b=J[c+16>>2];J[c+16>>2]=0;x:{if(!b)break x;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break x;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[c+20>>2];J[c+20>>2]=0;y:{if(!b)break y;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break y;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[c+24>>2];J[c+24>>2]=0;z:{if(!b)break z;J[699344]= +0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break z;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[c+28>>2];J[c+28>>2]=0;A:{if(!b)break A;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break r;if(d)break A;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break r}fc=c+32|0;return a|0}a=Z()|0;zc(c+8|0);break o}break b}a=Z()|0}zc(c+12|0);break l}a=Z()|0}zc(c+16|0);break i}a=Z()|0}zc(c+20|0);break f}a= +Z()|0}zc(c+24|0);break c}a=Z()|0}zc(c+28|0);ba(a|0);B()}ea(0)|0;Bc();B()}function kJ(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;f=fc-48|0;fc=f;a:{b:{c:{d:{e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;h=J[a+56>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break d;g=J[a+56>>2];g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break d;i=J[a+56>>2];i=kc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+4;k=J[a+56>>2];k=kc[J[J[k>>2]+28>> +2]](k)|0;if((k|0)==-1)break d;j=J[a+56>>2];j=kc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break d;l=J[a+56>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break d;m=J[a+56>>2];m=kc[J[J[m>>2]+28>>2]](m)|0;if((m|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+4;n=J[a+56>>2];n=kc[J[J[n>>2]+28>>2]](n)|0;if((n|0)==-1)break d;o=J[a+56>>2];o=kc[J[J[o>>2]+28>>2]](o)|0;if((o|0)==-1)break d;p=J[a+56>>2];p=kc[J[J[p>>2]+28>>2]](p)|0;if((p|0)==-1)break d;q=J[a+56>>2];q=kc[J[J[q>>2]+28>>2]](q)|0;if((q|0)==-1)break d;J[a+68>>2]=J[a+ +68>>2]+4;r=J[a+56>>2];r=kc[J[J[r>>2]+28>>2]](r)|0;if((r|0)==-1)break d;s=J[a+56>>2];s=kc[J[J[s>>2]+28>>2]](s)|0;if((s|0)==-1)break d;t=J[a+56>>2];t=kc[J[J[t>>2]+28>>2]](t)|0;if((t|0)==-1)break d;u=J[a+56>>2];u=kc[J[J[u>>2]+28>>2]](u)|0;if((u|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+4;v=J[a+56>>2];v=kc[J[J[v>>2]+28>>2]](v)|0;if((v|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;e:{i=i|(h<<16|e<<24|g<<8);if(i){h=m|(j<<16|k<<24|l<<8);if(h)break e}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,802220,0);break a}f:{e=J[a+24>>2];g:{if(e>>> +0<(i>>>0)/10>>>0)break g;g=J[a+28>>2];j=u|(s<<16|r<<24|t<<8);k=q|(o<<16|n<<24|p<<8);if(g>>>0<(j>>>0)/10>>>0|(k>>>0)/10>>>0>e>>>0)break g;if(g>>>0>=(h>>>0)/10>>>0)break f}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,802852,0);J[a+72>>2]=1;break a}e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;l=e>>>3&1;g=e>>>1&3;if(e&1)break c;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;h:{if(!g){if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+16>>2]=e&128?e|-256:e;e=J[a+56>>2];e=kc[J[J[e>>2]+ +28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f>>2]=e&128?e|-256:e;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+20>>2]=e&128?e|-256:e;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+4>>2]=e&128?e|-256:e;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+24>>2]=e&128?e|-256:e;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1; +J[f+8>>2]=e&128?e|-256:e;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+28>>2]=e&128?e|-256:e;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+12>>2]=e&128?e|-256:e;break h}if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f+16>>2]=e&128?e|-256:e;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break d;J[a+68>>2]=J[a+68>>2]+1;J[f>>2]=e&128?e|-256:e}iJ(a,g,0);Nn(J[a+76>>2]);e=Zt(a,0,i,h,g,l,0,0,f+16|0,f,0);break b}Cc(1, +kc[J[J[a>>2]+52>>2]](a)|0,783270,0);break a}e=Zt(a,1,i,h,g,l,0,0,f+16|0,f,d-18|0)}if(c){b=v&7;i:{if(J[a+28>>2]!=-1)break i;c=h+j|0;if(c>>>0<=M[a+32>>2])break i;MB(J[a+40>>2],c,J[a+36>>2])}yl(J[a+40>>2],e,k,j,b);if(e)kc[J[J[e>>2]+4>>2]](e);if((d|0)!=-1)break a;_t(a,f+44|0);break a}J[e+4>>2]=b;sd(J[a+48>>2],e)}fc=f+48|0}function m_(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{f=WI(a,b);c:{if(f){if((f|0)==9999)break c;b=J[a+3524>>2];while(1){d:{if(b){h=J[a+3520>>2];b=b-1|0;break d}b=J[a+4>>2]; +h=kc[J[J[b>>2]+28>>2]](b)|0;e:{if((h|0)!=255){if((h|0)!=-1)break e;break a}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=819751;if(b)break b}J[a+3520>>2]=h;b=7}J[a+3524>>2]=b;g=h>>>b&1|g<<1;i=i+1|0;if((i|0)!=(f|0))continue;break}h=0;f=(1<(g|0)?(-1<>2]+f|0;J[d>>2]=b;J[e>>2]=b;Ac(e+4|0,0,252);m=1;while(1){b=J[a+3524>>2];i=0;h=0;while(1){f:{if(b){g=J[a+3520>>2];b=b-1|0;break f}b=J[a+4>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;g:{if((g| +0)!=255){if((g|0)!=-1)break g;break a}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=819751;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;i=g>>>b&1|i<<1&131070;d=i&65535;h=h+1|0;f=(h<<1)+c|0;j=L[f+18>>1];if(d>>>0>>0){j=819545;break b}k=L[f+52>>1];f=d-j|0;if((k|0)<=(f|0)){j=819545;if((h|0)!=16)continue;break b}break}i=0;d=0;f=K[((K[c+h|0]+(f&65535)|0)+c|0)+86|0];h:{if((f|0)!=240)break h;i:{while(1){j:{if(b){g=J[a+3520>>2];b=b-1|0;break j}b=J[a+4>>2];g=kc[J[J[b>> +2]+28>>2]](b)|0;k:{if((g|0)!=255){if((g|0)!=-1)break k;break a}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=819751;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;d=g>>>b&1|d<<1&131070;h=d&65535;i=i+1|0;f=(i<<1)+c|0;j=L[f+18>>1];if(h>>>0>>0){j=819545;break b}k=L[f+52>>1];f=h-j|0;if((k|0)>(f|0))break i;if((i|0)!=16)continue;break}j=819545;break b}h=0;k=0;f=K[((K[c+i|0]+(f&65535)|0)+c|0)+86|0];d=16;if((f|0)!=240)break h;l:{while(1){m:{if(b){g=J[a+3520>>2];b=b-1| +0;break m}b=J[a+4>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;n:{if((g|0)!=255){if((g|0)!=-1)break n;break a}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=819751;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;h=g>>>b&1|h<<1&131070;d=h&65535;k=k+1|0;i=(k<<1)+c|0;f=L[i+18>>1];if(d>>>0>>0){j=819545;break b}f=d-f|0;if((f|0)>1])break l;if((k|0)!=16)continue;break}j=819545;break b}h=0;i=0;f=K[((K[c+k|0]+(f&65535)|0)+c|0)+86|0];d=32;if((f|0)!=240)break h;o:{while(1){p:{if(b){g= +J[a+3520>>2];b=b-1|0;break p}b=J[a+4>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;q:{if((g|0)!=255){if((g|0)!=-1)break q;break a}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=819751;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;h=g>>>b&1|h<<1&131070;d=h&65535;i=i+1|0;f=(i<<1)+c|0;j=L[f+18>>1];if(d>>>0>>0){j=819545;break b}d=d-j|0;if((d|0)>1])break o;if((i|0)!=16)continue;break}j=819545;break b}f=K[((K[c+i|0]+(d&65535)|0)+c|0)+86|0];d=48}h=1;l=f&255;if(!l)break c;h= +0;f=0;i=0;k=l&15;if(k)while(1){if(b)b=b-1|0;else{b=J[a+4>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;r:{if((g|0)!=255){if((g|0)!=-1)break r;break a}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==255)continue;break}j=819751;if(b)break b}J[a+3520>>2]=g;b=7}J[a+3524>>2]=b;i=g>>>b&1|i<<1;f=f+1|0;if((k|0)!=(f|0))continue;break}g=(1<(i|0)?(-1<>>4)+m|0;if((b|0)>63)break c;J[(J[(b<<2)+2343952>>2]<<2)+e>>2]=g;m=b+1|0;if((b|0)!=63)continue;break}}return h}Cc(1, +kc[J[J[a>>2]+52>>2]](a)|0,j,0);return 0}return 0}function Y1a(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;h=fc-16|0;fc=h;e=J[a+8>>2];J[h+8>>2]=e;m=J[a+4>>2];g=J[m+8>>2];o=g+48|0;n=J[a+12>>2];i=J[a+16>>2];a:{b:{c:{if(J[g+60>>2]){j=e;break c}if(!(K[m+36|0]!=1|e>>>0>=n>>>0|M[a+20>>2]<=i>>>0)){H[m+36|0]=0;p=H[H[g+52|0]+o|0];k=K[m+37|0];break b}c=0;break a}c=1;break a}c=2}d:while(1){e:{f:{g:{h:{i:{j:switch(c|0){case 0:if(e>>>0>=n>>>0)break h;j=e;while(1){k:{if(M[a+ 20>>2]>i>>>0){e=j+1|0;c=K[j|0];f=c<<24>>24;l:{m:{n:{o:{p:{q:{r:{s:{t:{u:switch(c-10|0){case 5:c=0;if(J[g+64>>2]!=3)break l;break k;case 4:if(J[g+64>>2]==3){H[g+49|0]=8;c=1;break k}J[h+8>>2]=e;H[g+68|0]=0;d=65535;c=14;break i;case 17:J[h+8>>2]=j;m=J[a+4>>2];c=1;continue d;case 0:case 3:J[h+8>>2]=e;v:{w:{d=K[o|0];switch(d|0){case 0:case 3:break v;default:break w}}d=0;H[o|0]=0}H[g+68|0]=0;H[g+52|0]=0;H[g+50|0]=0;break t;default:break u}J[h+8>>2]=e;H[g+68|0]=0;l=H[g+52|0];d=K[l+o|0];if(J[g+64>>2]!=4| (f+95&255)>>>0>62)break t;if((d&252)!=4)break s}p=d<<24>>24;switch(p|0){case 8:break n;case 3:break o;case 2:break p;case 1:break q;case 0:break r;default:break m}}d=c+65216|0;if((l|0)<2)break i;H[g+52|0]=K[g+53|0];break i}d=(f|0)<0?65535:c;break i}H[g+52|0]=K[g+53|0];d=(f|0)<0?65535:c+128|0;break i}d=65535;if((f|0)>=0)d=L[J[J[g+8>>2]+36>>2]+(((f^128)&255)<<2)>>1];H[g+52|0]=K[g+53|0];break i}d=65535;if((f|0)<0)break i;if(f>>>0<92){d=c;break i}d=165;if((c|0)==92)break i;if((c|0)!=126){d=c;break i}d= 8254;break i}d=(f-33&255)>>>0>=63?65535:c+65344|0;break i}if(e>>>0>>0){k=c;c=2;continue d}H[J[a+4>>2]+37|0]=f;H[J[a+4>>2]+36|0]=1;break h}J[h+8>>2]=e;H[g+68|0]=0;d=65535;c=15;break i}J[b>>2]=15;e=j;break h}H[g+52|0]=c;j=e;if((e|0)!=(n|0))continue;break}e=n;break h;case 1:break g;default:break j}f=K[e|0];c=f-33|0;if(!((k+223&254)>>>0>93|(c&255)>>>0>93)){e=e+1|0;J[h+8>>2]=e;c=f|k<<8;d=c;x:{y:switch(p-4|0){case 0:d=k&1;H[h+15|0]=f+(d?f>>>0<96?31:32:126);d=d+k|0;f=d&255;l=f>>>1|0;H[h+14|0]=f>>>0<96? -l+112|0:d<<24>>24>=0?l-80|0:0;break x;case 3:d=c+32896|0;break;default:break y}d=d<<8|(d&65280)>>>8;H[h+14|0]=d;H[h+15|0]=d>>>8}d=en(J[(p<<2)+g>>2],h+14|0,2);break i}d=65535;if((c&255)>>>0<94){c=k;break i}if(!(!(1<>>0>31)){c=k;break i}e=e+1|0;J[h+8>>2]=e;c=(f|k<<8)+65536|0}if(d>>>0<=65533){f=J[a+24>>2];if(f)J[f+(i-J[a+16>>2]<<1)>>2]=((c>>>0<256?-1:-2)+e|0)-J[a+8>>2];I[i>>1]=d;i=i+2|0;break e}if(d>>>0>=65536){I[i>>1]=(d+67043328>>>10|0)-10240;z:{A:{B:{f=J[a+24>>2];C:{if(!f){c=i+2|0; -if(c>>>0>2])break B;break C}l=J[a+16>>2];q=((c>>>0<256?-1:-2)+e|0)-J[a+8>>2]|0;J[f+(i-l<<1)>>2]=q;c=i+2|0;if(c>>>0>2])break A}i=c;c=J[a+4>>2];f=H[c+65|0];H[c+65|0]=f+1;I[(c+(f<<1)|0)+116>>1]=d&1023|56320;break e}I[c>>1]=d&1023|56320;break z}I[c>>1]=d&1023|56320;J[f+(c-l<<1)>>2]=q}i=i+4|0;break e}j=J[a+4>>2];k=1;if(c>>>0>=256){H[j+38|0]=c;k=2;c=c>>>8|0}H[j+36|0]=k;H[j+37|0]=c;J[b>>2]=(d|0)==65534?10:12}J[a+8>>2]=e;J[a+16>>2]=i;break f}c=K[m+36|0];ZB(m,h+8|0,n,1,b);D:{E:{F:{G:{H:{if(J[g+ -64>>2]){e=J[b>>2];break H}e=J[b>>2];if(!J[g+60>>2])break G}if((e|0)>0)break D;break F}if((e|0)>0)break D;if(K[g+68|0])break E}if(!J[g+60>>2])H[g+68|0]=1;e=J[h+8>>2];break e}J[b>>2]=18;b=J[a+4>>2];J[b+256>>2]=2;H[b+36|0]=c+(J[h+8>>2]-j|0)}J[a+16>>2]=i;J[a+8>>2]=J[h+8>>2];H[g+68|0]=0}bc=h+16|0;return}c=0;continue}}function U3(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;f=bc-1312|0;bc=f;k=J[a+4>>2];l=J[k+328>>2];J[f+1308>>2]=0;o=J[k+136>>2];p=J[k+100>>2]; -m=J[J[k+128>>2]+52>>2];a:{b:{if(m){c=gc[J[J[m>>2]>>2]](J[m+4>>2],b,f+652|0)|0;J[f+1308>>2]=c;if(c)break a;j=J[k+288>>2];c=j&255;c:{if(!c)break c;l=j&3;e=J[f+652>>2];if(c>>>0<4)d=0;else{n=j&252;while(1){c=e;e=c+4|0;d=d+4|0;if((n|0)!=(d&255))continue;break}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(!l)break c;while(1){d=K[e|0]|d<<8;e=e+1|0;i=i+1|0;if((l|0)!=(i&255))continue;break}}e=J[f+656>>2];d:{if(!e){e=0;break d}h=e-j|0;e=Zd(p,h,f+1308|0);if(J[f+ -1308>>2])break d;tc(e,J[f+652>>2]+J[k+288>>2]|0,h)}gc[J[J[m>>2]+4>>2]](J[m+4>>2],f+652|0);if(!J[f+1308>>2])break b;break a}c=J[k+292>>2]+J[k+288>>2]|0;j=nd(l,(J[k+284>>2]+J[k+308>>2]|0)+P(c,b)|0);J[f+1308>>2]=j;if(j)break a;c=Ue(l,c<<1);J[f+1308>>2]=c;if(c)break a;c=J[l+32>>2];n=J[k+288>>2];g=n&255;if(g){e=c;if(g>>>0>=4){j=n&252;while(1){g=e;e=e+4|0;d=d+4|0;if((j|0)!=(d&255))continue;break}d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}g=n&3;if(g)while(1){d= +l+112|0:d<<24>>24>=0?l-80|0:0;break x;case 3:d=c+32896|0;break;default:break y}d=d<<8|(d&65280)>>>8;H[h+14|0]=d;H[h+15|0]=d>>>8}d=Xn(J[(p<<2)+g>>2],h+14|0,2);break i}d=65535;if((c&255)>>>0<94){c=k;break i}if(!(!(1<>>0>31)){c=k;break i}e=e+1|0;J[h+8>>2]=e;c=(f|k<<8)+65536|0}if(d>>>0<=65533){f=J[a+24>>2];if(f)J[f+(i-J[a+16>>2]<<1)>>2]=((c>>>0<256?-1:-2)+e|0)-J[a+8>>2];I[i>>1]=d;i=i+2|0;break e}if(d>>>0>=65536){I[i>>1]=(d+67043328>>>10|0)-10240;z:{A:{B:{f=J[a+24>>2];C:{if(!f){c=i+2|0; +if(c>>>0>2])break B;break C}l=J[a+16>>2];q=((c>>>0<256?-1:-2)+e|0)-J[a+8>>2]|0;J[f+(i-l<<1)>>2]=q;c=i+2|0;if(c>>>0>2])break A}i=c;c=J[a+4>>2];f=H[c+65|0];H[c+65|0]=f+1;I[(c+(f<<1)|0)+116>>1]=d&1023|56320;break e}I[c>>1]=d&1023|56320;break z}I[c>>1]=d&1023|56320;J[f+(c-l<<1)>>2]=q}i=i+4|0;break e}j=J[a+4>>2];k=1;if(c>>>0>=256){H[j+38|0]=c;k=2;c=c>>>8|0}H[j+36|0]=k;H[j+37|0]=c;J[b>>2]=(d|0)==65534?10:12}J[a+8>>2]=e;J[a+16>>2]=i;break f}c=K[m+36|0];ZC(m,h+8|0,n,1,b);D:{E:{F:{G:{H:{if(J[g+ +64>>2]){e=J[b>>2];break H}e=J[b>>2];if(!J[g+60>>2])break G}if((e|0)>0)break D;break F}if((e|0)>0)break D;if(K[g+68|0])break E}if(!J[g+60>>2])H[g+68|0]=1;e=J[h+8>>2];break e}J[b>>2]=18;b=J[a+4>>2];J[b+256>>2]=2;H[b+36|0]=c+(J[h+8>>2]-j|0)}J[a+16>>2]=i;J[a+8>>2]=J[h+8>>2];H[g+68|0]=0}fc=h+16|0;return}c=0;continue}}function V5(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;f=fc-1312|0;fc=f;k=J[a+4>>2];l=J[k+328>>2];J[f+1308>>2]=0;o=J[k+136>>2];p=J[k+100>>2]; +m=J[J[k+128>>2]+52>>2];a:{b:{if(m){c=kc[J[J[m>>2]>>2]](J[m+4>>2],b,f+652|0)|0;J[f+1308>>2]=c;if(c)break a;j=J[k+288>>2];c=j&255;c:{if(!c)break c;l=j&3;e=J[f+652>>2];if(c>>>0<4)d=0;else{n=j&252;while(1){c=e;e=c+4|0;d=d+4|0;if((n|0)!=(d&255))continue;break}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(!l)break c;while(1){d=K[e|0]|d<<8;e=e+1|0;i=i+1|0;if((l|0)!=(i&255))continue;break}}e=J[f+656>>2];d:{if(!e){e=0;break d}h=e-j|0;e=he(p,h,f+1308|0);if(J[f+ +1308>>2])break d;xc(e,J[f+652>>2]+J[k+288>>2]|0,h)}kc[J[J[m>>2]+4>>2]](J[m+4>>2],f+652|0);if(!J[f+1308>>2])break b;break a}c=J[k+292>>2]+J[k+288>>2]|0;j=yd(l,(J[k+284>>2]+J[k+308>>2]|0)+P(c,b)|0);J[f+1308>>2]=j;if(j)break a;c=af(l,c<<1);J[f+1308>>2]=c;if(c)break a;c=J[l+32>>2];n=J[k+288>>2];g=n&255;if(g){e=c;if(g>>>0>=4){j=n&252;while(1){g=e;e=e+4|0;d=d+4|0;if((j|0)!=(d&255))continue;break}d=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}g=n&3;if(g)while(1){d= K[e|0]|d<<8;e=e+1|0;h=h+1|0;if((g|0)!=(h&255))continue;break}c=(n&255)+c|0}h=0;j=K[k+292|0];e:{if(!j)break e;e=c;if(j>>>0>=4){q=j&252;g=0;while(1){i=e;e=e+4|0;g=g+4|0;if((q|0)!=(g&255))continue;break}g=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24)}g=j&3;if(g)while(1){i=K[e|0]|i<<8;e=e+1|0;h=h+1|0;if((g|0)!=(h&255))continue;break}q=j&3;e=(c+j|0)+n|0;g=0;if(j>>>0<4)h=0;else{j=j&252;h=0;while(1){c=e;e=c+4|0;h=h+4|0;if((j|0)!=(h&255))continue;break}c=K[c|0]| -K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(!q)break e;while(1){h=K[e|0]|h<<8;e=e+1|0;g=g+1|0;if((q|0)!=(g&255))continue;break}}ne(l);f:{g:{if(!(!(M[l+4>>2]>>0|M[k+300>>2]<=d>>>0)&h>>>0>=i>>>0)){J[f+1308>>2]=9;break g}h=h-i|0;if(h)break f}g=0;e=0;break a}g=0;e=Zd(p,h,f+1308|0);if(J[f+1308>>2])break a;c=TC(l,J[k+308>>2]+i|0,e,h);J[f+1308>>2]=c;if(c)break a}c=J[k+316>>2]+(d<<3)|0;J[a+1364>>2]=J[c>>2];c=J[c+4>>2];J[a+1372>>2]=0;J[a+1376>>2]=0;J[a+1368>>2]= -c;c=J[k+304>>2]+P(d,252)|0;d=J[c+220>>2];J[a+1380>>2]=J[c+216>>2];J[a+1384>>2]=d;i=J[c+228>>2];d=a+1388|0;J[d>>2]=J[c+224>>2];J[d+4>>2]=i;d=J[c+236>>2];J[a+1396>>2]=J[c+232>>2];J[a+1400>>2]=d;d=J[c+4>>2];J[a+1360>>2]=d;i=(d|0)>=0;d=i?d:0;if(d>>>0<=h>>>0){if(i)gc[J[o+16>>2]](e,h,4330);h:{if(K[a+70|0]){d=gc[J[J[o+12>>2]+8>>2]](a,e+d|0,h-d|0)|0;J[f+1308>>2]=d;g=0;break h}i=f+652|0;gc[J[o+24>>2]](i,a,1);gc[J[o+28>>2]](k,c,f);J[f+1188>>2]=f;c=e+d|0;h=h-d|0;d=gc[J[J[o+12>>2]+12>>2]](i,c,h)|0;J[f+1308>> -2]=d;g=0;if((d&255)!=164)break h;H[J[a+8>>2]+160|0]=0;d=gc[J[J[o+12>>2]+12>>2]](i,c,h)|0;J[f+1308>>2]=d;g=1}if(!J[J[m>>2]+8>>2]|(d|!m))break a;c=J[a+32>>2];J[f+656>>2]=0;J[f+652>>2]=((c+(c>>31)|0)+32768&-65536)>>16;c=J[a+40>>2];J[f+660>>2]=(((c>>31)+c|0)+32768&-65536)>>16;c=J[a+44>>2];J[f+664>>2]=(((c>>31)+c|0)+32768&-65536)>>16;r=f,s=gc[J[J[m>>2]+8>>2]](J[m+4>>2],b,0,f+652|0)|0,J[r+1308>>2]=s;J[a+32>>2]=J[f+652>>2]<<16;J[a+40>>2]=J[f+660>>2]<<16;J[a+44>>2]=J[f+664>>2]<<16;break a}J[f+1308>>2]=9}if(e)gc[J[p+ -8>>2]](p,e);H[J[a+8>>2]+161|0]=g;bc=f+1312|0;return J[f+1308>>2]}function $L(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,K=0,M=0,N=0,O=0,Q=0,R=0;if(!a)return 20;w=(c|0)/2|0;x=(b|0)/2|0;a:{if(c+1>>>0<3&b+1>>>0<=2)break a;y=T5(a);if((y|0)==2)return(L[a>>1]?6:0)|0;F=I[a>>1];if((F|0)<=0)break a;D=J[a+4>>2];g=w>>31;z=(g^w)-g|0;O=z>>>16|0;G=z&65535;g=x>>31;A=(g^x)-g|0;Q=A>>>16|0;H=A&65535;R=J[a+ +K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}if(!q)break e;while(1){h=K[e|0]|h<<8;e=e+1|0;g=g+1|0;if((q|0)!=(g&255))continue;break}}ve(l);f:{g:{if(!(!(M[l+4>>2]>>0|M[k+300>>2]<=d>>>0)&h>>>0>=i>>>0)){J[f+1308>>2]=9;break g}h=h-i|0;if(h)break f}g=0;e=0;break a}g=0;e=he(p,h,f+1308|0);if(J[f+1308>>2])break a;c=YD(l,J[k+308>>2]+i|0,e,h);J[f+1308>>2]=c;if(c)break a}c=J[k+316>>2]+(d<<3)|0;J[a+1364>>2]=J[c>>2];c=J[c+4>>2];J[a+1372>>2]=0;J[a+1376>>2]=0;J[a+1368>>2]= +c;c=J[k+304>>2]+P(d,252)|0;d=J[c+220>>2];J[a+1380>>2]=J[c+216>>2];J[a+1384>>2]=d;i=J[c+228>>2];d=a+1388|0;J[d>>2]=J[c+224>>2];J[d+4>>2]=i;d=J[c+236>>2];J[a+1396>>2]=J[c+232>>2];J[a+1400>>2]=d;d=J[c+4>>2];J[a+1360>>2]=d;i=(d|0)>=0;d=i?d:0;if(d>>>0<=h>>>0){if(i)kc[J[o+16>>2]](e,h,4330);h:{if(K[a+70|0]){d=kc[J[J[o+12>>2]+8>>2]](a,e+d|0,h-d|0)|0;J[f+1308>>2]=d;g=0;break h}i=f+652|0;kc[J[o+24>>2]](i,a,1);kc[J[o+28>>2]](k,c,f);J[f+1188>>2]=f;c=e+d|0;h=h-d|0;d=kc[J[J[o+12>>2]+12>>2]](i,c,h)|0;J[f+1308>> +2]=d;g=0;if((d&255)!=164)break h;H[J[a+8>>2]+160|0]=0;d=kc[J[J[o+12>>2]+12>>2]](i,c,h)|0;J[f+1308>>2]=d;g=1}if(!J[J[m>>2]+8>>2]|(d|!m))break a;c=J[a+32>>2];J[f+656>>2]=0;J[f+652>>2]=((c+(c>>31)|0)+32768&-65536)>>16;c=J[a+40>>2];J[f+660>>2]=(((c>>31)+c|0)+32768&-65536)>>16;c=J[a+44>>2];J[f+664>>2]=(((c>>31)+c|0)+32768&-65536)>>16;r=f,s=kc[J[J[m>>2]+8>>2]](J[m+4>>2],b,0,f+652|0)|0,J[r+1308>>2]=s;J[a+32>>2]=J[f+652>>2]<<16;J[a+40>>2]=J[f+660>>2]<<16;J[a+44>>2]=J[f+664>>2]<<16;break a}J[f+1308>>2]=9}if(e)kc[J[p+ +8>>2]](p,e);H[J[a+8>>2]+161|0]=g;fc=f+1312|0;return J[f+1308>>2]}function vN(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,K=0,M=0,N=0,O=0,Q=0,R=0;if(!a)return 20;w=(c|0)/2|0;x=(b|0)/2|0;a:{if(c+1>>>0<3&b+1>>>0<=2)break a;y=U7(a);if((y|0)==2)return(L[a>>1]?6:0)|0;F=I[a>>1];if((F|0)<=0)break a;D=J[a+4>>2];g=w>>31;z=(g^w)-g|0;O=z>>>16|0;G=z&65535;g=x>>31;A=(g^x)-g|0;Q=A>>>16|0;H=A&65535;R=J[a+ 12>>2];while(1){v=I[(E<<1)+R>>1];b:{if((v|0)==(B|0))break b;C=-1;u=B;K=0;e=0;M=0;N=0;p=0;j=0;a=v;if((a|0)==-1)break b;while(1){h=N;i=M;g=K;c:{if((u|0)!=(C|0)){h=(u<<3)+D|0;r=J[h+4>>2];i=(a<<3)+D|0;d=J[i+4>>2];n=r-d|0;g=n>>31;g=(g^n)-g|0;h=J[h>>2];i=J[i>>2];d:{if((h|0)==(i|0)){if((d|0)==(r|0))break c;i=0;h=(n|0)<0?-65536:65536;break d}k=h-i|0;i=k>>31;f=(i^k)-i|0;if((d|0)==(r|0)){h=0;i=(k|0)<0?-65536:65536;g=f;break d}h=f>>>0>g>>>0?f+(g>>>1|0)|0:(f>>>1|0)+g|0;i=S(h);l=(-1431655766>>>i>>>0>h>>>0?-15: -16)+i|0;d=(l|0)<=0;e:{if(!d){s=f<>>0>>0?s+(m>>>1|0)|0:(s>>>1|0)+m|0;break e}i=0-l|0;h=h>>>i|0;m=g>>>i|0;s=f>>>i|0}h=65536-h|0;while(1){r=(P(h,s)>>16)+s|0;f=(P(h,m)>>16)+m|0;g=P((P(r,r)+P(f,f)|0)/-512|0,h+65536>>8);h=(g>>>16|0)+h|0;if((g|0)>65535)continue;break}h=(n|0)<0?0-f|0:f;i=(k|0)<0?0-r|0:r;g=((P(s,r)+P(f,m)|0)/65536|0)+65536|0;if(!d){g=g+(1<>>l|0;break d}g=g<<0-l}if(!g)break c}f:{if(!e)break f;if((C|0)<0){M=p;C=a;K=e;N=j}f=0;d=i>>31;o=(d^i)-d|0;d=p>>31;l=(d^p)-d|0;g:{if((o>>> 8|0)+l>>>0<=8190){k=P(l,o)+32768>>>16|0;break g}d=l&65535;k=P(d,o>>>16|0)+P(o,l>>>16|0)+(P(d,o&65535)+32768>>>16)|0}d=k;q=0-d|0;d=p>>31|1;t=(((i|0)<0?0-d|0:d)|0)<0?q:k;d=h>>31;m=(d^h)-d|0;d=j>>31;n=(d^j)-d|0;h:{if((m>>>8|0)+n>>>0<=8190){k=P(m,n)+32768>>>16|0;break h}d=n&65535;k=P(d,m>>>16|0)+P(m,n>>>16|0)+(P(d,m&65535)+32768>>>16)|0}d=k;q=0-d|0;d=j>>31|1;s=t+((((h|0)<0?0-d|0:d)|0)<0?q:k)|0;d=0;i:{if((s|0)<-61439)break i;if(o+(n>>>8|0)>>>0<=8190)d=P(o,n)+32768>>>16|0;else{f=o&65535;d=P(f,n>>>16|0)+ P(n,o>>>16|0)+(P(f,n&65535)+32768>>>16)|0}f=d;k=0-f|0;f=i>>31|1;f=(((j|0)<0?0-f|0:f)|0)<0?k:d;d=h+j|0;t=s+65536|0;if(m+(l>>>8|0)>>>0<=8190)k=P(l,m)+32768>>>16|0;else{j=m&65535;k=P(j,l>>>16|0)+P(l,m>>>16|0)+(P(j,l&65535)+32768>>>16)|0}j=k;q=0-j|0;j=h>>31|1;f=f+((((p|0)<0?0-j|0:j)|0)<0?k:q)|0;m=y?f:0-f|0;l=(e|0)<(g|0)?e:g;j=0-d|0;e=f>>31;q=(e^f)-e|0;n=q>>>8|0;j:{if(n+A>>>0<=8190){e=P(q,A)+32768>>>16|0;break j}e=P(q>>>16|0,H)+P(q,Q)+(P(q&65535,H)+32768>>>16)|0}f=y?d:j;k=(m|0)<0;j=k^(b|0)<-1?0-e|0:e; -e=l>>31;o=(e^l)-e|0;r=o+(t>>>8|0)>>>0>8190;k:{if(!r){e=P(o,t)+32768>>>16|0;break k}e=o&65535;e=P(e,t>>>16|0)+P(t,o>>>16|0)+(P(e,s&65535)+32768>>>16)|0}d=(l|0)<0;l:{if((j|0)<=((d?0-e|0:e)|0)){f=Dd(f,x,t);break l}f=Dd(f,l,m)}e=i+p|0;p=y?0-e|0:e;if(n+z>>>0<=8190)e=P(q,z)+32768>>>16|0;else e=P(q>>>16|0,G)+P(q,O)+(P(q&65535,G)+32768>>>16)|0;j=(c|0)<-1^k?0-e|0:e;if(r){e=o&65535;e=P(e,t>>>16|0)+P(t,o>>>16|0)+(P(e,s&65535)+32768>>>16)|0}else e=P(o,t)+32768>>>16|0;if((j|0)<=((d?0-e|0:e)|0)){d=Dd(p,w,t);break i}d= -Dd(p,l,m)}k=d;if((a|0)==(u|0))break f;j=k+w|0;e=f+x|0;while(1){p=(a<<3)+D|0;J[p>>2]=e+J[p>>2];J[p+4>>2]=j+J[p+4>>2];a=(a|0)<(v|0)?a+1|0:B;if((u|0)!=(a|0))continue;break}}j=h;p=i;e=g;a=u}u=(u|0)<(v|0)?u+1|0:B;if((u|0)==(a|0))break b;if((a|0)!=(C|0))continue;break}}B=v+1|0;E=E+1|0;if((F|0)!=(E|0))continue;break}}return 0}function Vpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=bc-48|0;bc=g;J[g+40>>2]=0;J[g+36>>2]=0;a:{b:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+ -288|0]))break b;if(K[a+289|0])break b;f=1029;Dc(a,1029,0,0);break a}c:{if(!(K[a+292|0]|(K[a+300|0]|K[a+293|0])))if(!K[a+291|0])break c;f=1029;Dc(a,1029,0,0);break a}d:{e:{if(!(K[a+288|0]|(K[a+286|0]|K[a+287|0])))if(!K[a+289|0])break e;f=d;if(c>>>0>=2)break d;f=1028;Dc(a,1028,0,0);break a}f=d;if((c|0)!=1)break d;f=1028;Dc(a,1028,0,0);break a}while(1){l=f;f=f+1|0;if(K[l|0])continue;break}m=l-d|0;if((m|0)>(c|0)){f=1043;Dc(a,1043,0,0);break a}f:{n=c-2|0;f=su(a,l+2|0,n-m|0,g+36|0,g+40|0,g+44|0);if(f){if(!kd(d, -212802,21)){f=0;if((c|0)!=2615)break a;b=J[54667];J[g+24>>2]=J[54666];J[g+28>>2]=b;b=J[54665];J[g+16>>2]=J[54664];J[g+20>>2]=b;b=J[54663];J[g+8>>2]=J[54662];J[g+12>>2]=b;b=J[54661];J[g>>2]=J[54660];J[g+4>>2]=b;f=U7(a,g,1,215729,e);if(!f)break f;b=J[g+36>>2];if(!b)break a;gc[J[a+156>>2]](b,J[g+40>>2]);break a}b=J[g+36>>2];if(!b)break a;gc[J[a+156>>2]](b,J[g+40>>2]);break a}g:{h:{i:{j:{k:{if(!(K[a+286|0]|K[a+287|0])){l:{if(!(K[a+288|0]|K[a+289|0])){H[a+311|0]=(c|0)!=0;break l}H[a+298|0]=1}if(K[a+288| -0]|K[a+289|0])break k;if(c)break j;f=J[a+2236>>2];if(f)gc[J[a+156>>2]](f,J[a+2232>>2]);J[a+2232>>2]=0;J[a+2236>>2]=0;f=0;h=0;break i}H[a+298|0]=1}if(K[a+288|0]){h=J[a+528>>2];j=h;f=h+88|0;i=J[h+88>>2];h=J[i+1148>>2];if(h)gc[J[a+156>>2]](h,J[i+1144>>2]);i=J[g+44>>2];h=gc[J[a+152>>2]](i)|0;J[J[j+88>>2]+1148>>2]=h;if(h)break h;f=1;Dc(a,1,0,0);break a}j=J[a+512>>2];if(!j)j=J[a+528>>2];f=j+88|0;i=J[j+88>>2];h=J[i+1148>>2];if(h)gc[J[a+156>>2]](h,J[i+1144>>2]);i=J[g+44>>2];h=gc[J[a+152>>2]](i)|0;J[J[j+88>> -2]+1148>>2]=h;if(!h){f=1;Dc(a,1,0,0);break a}break h}f=J[g+44>>2];h=gc[J[a+152>>2]](f)|0;J[a+2236>>2]=h;if(!h){f=1;Dc(a,1,0,0);break a}tc(h,J[g+36>>2],f);J[a+2232>>2]=f;h=J[a+2236>>2]}j=0;m:{if(!K[a+114|0])break m;i=!c;n:{k=gc[J[a+152>>2]](40)|0;if(!k)break n;J[k+4>>2]=1036;J[k>>2]=1037;j=J[a+700>>2];o:{if(j){J[j+8>>2]=k;break o}J[a+696>>2]=k}J[k+8>>2]=0;J[k+12>>2]=j;J[a+700>>2]=k;J[k+16>>2]=J[a+436>>2];J[k+20>>2]=J[a+440>>2];J[k+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>> -2]=k;J[k+32>>2]=f;H[k+28|0]=i;if(f){i=gc[J[a+152>>2]](f)|0;J[k+36>>2]=i;if(!i)break n;tc(i,h,f)}j=0;break m}Dc(a,1,0,0);j=1}f=j;if(!f)break g;break a}tc(h,J[g+36>>2],i);f=J[f>>2];H[f+60|0]=1;J[f+1144>>2]=i}p:{if(!K[a+112|0]){b=J[g+36>>2];break p}f=gc[J[b+4>>2]](a,b,e)|0;if(f){b=J[g+36>>2];if(!b)break a;gc[J[a+156>>2]](b,J[g+40>>2]);break a}f=J[e>>2];h=!c;H[f+32|0]=h;b=J[g+36>>2];if(h)break p;q:{r:{s:{if(!b){f=d;while(1){l=f;f=f+1|0;if(K[l|0])continue;break}m=l-d|0;if((m|0)>(c|0)){f=1043;Dc(a,1043, -0,0);break a}f=su(a,l+2|0,n-m|0,g+36|0,g+40|0,g+44|0);if(f)break s;f=J[e>>2]}J[f+36>>2]=m;if((d|0)==(l|0))break q;f=1;b=gc[J[a+152>>2]](m+1|0)|0;J[J[e>>2]+40>>2]=b;c=J[e>>2];b=J[c+40>>2];if(b)break r;Dc(a,1,0,0);break a}b=J[g+36>>2];if(!b)break a;gc[J[a+156>>2]](b,J[g+40>>2]);break a}tc(b,d,J[c+36>>2]);f=J[e>>2]}H[f+44|0]=K[l+1|0];c=J[g+44>>2];J[f+48>>2]=c;b=gc[J[a+152>>2]](c)|0;J[J[e>>2]+52>>2]=b;b=J[J[e>>2]+52>>2];if(!b){f=1;Dc(a,1,0,0);break a}d=b;b=J[g+36>>2];tc(d,b,c)}f=0;if(!b)break a;gc[J[a+ -156>>2]](b,J[g+40>>2]);break a}f=0}bc=g+48|0;return f|0}function Nu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=bc-16|0;bc=i;d=J[a+12>>2];a:{if(!(d&64)){f=bc+-64|0;bc=f;b:{if(!J[a+8>>2]){d=J[a+628>>2];J[f>>2]=J[a>>2];Nc(d,92304,72116,f);d=0;break b}d=J[a+12>>2];if(d>>>10&1){Nc(J[a+628>>2],J[a>>2],73177,0);d=0;break b}e=J[a+40>>2];if(!(e&2)){d=J[a+628>>2];J[f+16>>2]=J[a>>2];Nc(d,92304,73816,f+16|0);d=0;break b}e=e&1048576;c:{if(L[a+98>>1]==1){if(e)break c;I[a+138>>1]=1;break c}if(e)break c;d=J[a+ -628>>2];J[f+48>>2]=J[a>>2];Nc(d,92304,74346,f+48|0);d=0;break b}d:{if(J[a+184>>2])break d;d=J[a+40>>2];e:{if(K[a+13|0]&4){e=L[a+98>>1];if(!(J[a+60>>2]|!(d&4)))break e;e=bT(a);break e}e=L[a+98>>1];if(!(J[a+60>>2]|!(d&131072)))break e;e=kT(a)}d=e;J[a+180>>2]=d;J[a+176>>2]=d;if(L[a+138>>1]==2)J[a+176>>2]=(d>>>0)/L[a+98>>1];j=a,k=zc(d<<2),J[j+184>>2]=k;d=zc(J[a+180>>2]<<2);J[a+188>>2]=d;e=0;g=J[a+184>>2];if(!(!g|!d)){Hg(g,0,J[a+180>>2]<<2);Hg(J[a+188>>2],0,J[a+180>>2]<<2);J[a+40>>2]=J[a+40>>2]|50331648; -e=1}d=J[a+12>>2];if(e)break d;J[a+180>>2]=0;e=J[a+628>>2];g=J[a>>2];J[f+36>>2]=d&1024?75019:75415;J[f+32>>2]=g;Nc(e,92304,74474,f+32|0);d=0;break b}if(d&1024)d=Ol(a);else d=-1;J[a+508>>2]=d;j=a,k=_i(a),J[j+588>>2]=k;J[a+12>>2]=J[a+12>>2]|64;d=1}bc=f- -64|0;if(!d){f=-1;break a}d=J[a+12>>2]}if(!(J[a+596>>2]?d&16:0)){f=-1;d=bc-16|0;bc=d;e=J[a+596>>2];if(e){if(K[a+13|0]&2){qc(e);J[a+12>>2]=J[a+12>>2]&-513}J[a+596>>2]=0}if(K[a+13|0]&4)e=J[a+508>>2];else e=ys(a);g=(e|0)<=8192?8192:e;e=zc(g);f:{if(!e){e= -J[a+628>>2];J[d>>2]=J[a>>2];Nc(e,92336,75928,d);e=0;break f}h=J[a+12>>2]|512;J[a+608>>2]=0;J[a+600>>2]=g;J[a+596>>2]=e;J[a+604>>2]=e;J[a+12>>2]=h|16;e=1}bc=d+16|0;if(!e)break a}d=L[a+138>>1];g:{h:{i:{j:{h=M[a+60>>2]>c>>>0;if(!h){if((d|0)!=2)break j;Nc(J[a+628>>2],J[a>>2],69170,0);f=-1;break a}if((d|0)!=2)break i;d=L[a+98>>1];if(!d){b=J[a>>2];a=J[a+628>>2];J[i+4>>2]=d;J[i>>2]=0;Nc(a,b,70292,i);f=-1;break a}d=(c>>>0)/M[a+100>>2]|0;break h}J[a+60>>2]=c+1}d=(c>>>0)/M[a+100>>2]|0}f=J[a+180>>2];if(d>>> -0>>0)break g;e=bc-16|0;bc=e;k:{if(L[a+138>>1]==1){f=Kh(J[a+184>>2],(f<<2)+4|0);g=Kh(J[a+188>>2],(J[a+180>>2]<<2)+4|0);l:{if(!(g?f:0)){if(f)qc(f);if(g)qc(g);J[a+180>>2]=0;f=J[a+628>>2];J[e>>2]=J[a>>2];Nc(f,92304,77479,e);f=0;break l}J[a+188>>2]=g;J[a+184>>2]=f;Hg(f+(J[a+180>>2]<<2)|0,0,4);Hg(J[a+188>>2]+(J[a+180>>2]<<2)|0,0,4);J[a+180>>2]=J[a+180>>2]+1;f=1}bc=e+16|0;break k}fa(76863,77299,594,92357);B()}if(f)break g;f=-1;break a}if((d|0)!=J[a+480>>2]){f=-1;e=0;g=J[a+12>>2];m:{if(!(g&64))break m; -if(g&4096){J[a+12>>2]=g&-4097;if(!(gc[J[a+536>>2]](a)|0))break m}e=gf(a)}if(!e)break a;J[a+480>>2]=d;e=J[a+176>>2];n:{if(!(!h&d>>>0>=e>>>0)){g=J[a+100>>2];break n}e=0;h=J[a+60>>2];g=J[a+100>>2];if(h>>>0<0-g>>>0)e=((g+h|0)-1>>>0)/(g>>>0)|0;J[a+176>>2]=e}J[a+472>>2]=P((d>>>0)%(e>>>0)|0,g);if(!(K[a+12|0]&32)){if(!(gc[J[a+524>>2]](a)|0))break a;J[a+12>>2]=J[a+12>>2]|32}J[a+608>>2]=0;J[a+604>>2]=J[a+596>>2];e=J[a+188>>2]+(d<<2)|0;if(J[e>>2]){J[e>>2]=0;J[a+484>>2]=0}if(!(gc[J[a+532>>2]](a,0)|0))break a; -J[a+12>>2]=J[a+12>>2]|4096}f=J[a+472>>2];if((f|0)!=(c|0)){if(c>>>0>>0){J[a+604>>2]=J[a+596>>2];f=P(J[a+100>>2],(d>>>0)%M[a+176>>2]|0);J[a+472>>2]=f}if(!(gc[J[a+568>>2]](a,c-f|0)|0)){f=-1;break a}J[a+472>>2]=c}gc[J[a+652>>2]](a,b,J[a+588>>2]);f=gc[J[a+544>>2]](a,b,J[a+588>>2],0)|0;J[a+472>>2]=c+1}bc=i+16|0;return f}function PEa(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;f=bc-144|0;bc=f;h=f+116|0;J[h>>2]=0;J[h+4>>2]=0;H[h+8|0]=0;J[695492]=0;i=f+104|0;J[i>>2]=0;J[i+4>>2]=0;H[i+8| -0]=0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[695492]=0;k=Qg(b);c=J[695492];J[695492]=0;b:{if((c|0)!=1){l=a+12|0;c:{d:{while(1){J[695492]=0;c=aa(4815,b|0,k|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;if(!c)break d;J[695492]=0;c=f+80|0;da(4802,c|0,b|0);d=J[695492];J[695492]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((d|0)!=1){J[695492]=0;c=aa(4825,f+92|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break m;J[695492]=0;Xf(h,c);d=J[695492];J[695492]=0;if((d|0)==1)break l;Lc(c);if(H[f+91|0]<0)qc(J[f+80>>2]); -J[695492]=0;c=Fd(h,2370452);d=J[695492];J[695492]=0;if((d|0)==1)break c;if(!c)break e;J[695492]=0;c=f+68|0;J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;d=J[695492];J[695492]=0;if((d|0)==1)break j;J[695492]=0;d=f+56|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;e=J[695492];J[695492]=0;if((e|0)==1)break i;J[695492]=0;e=f+44|0;J[e>>2]=0;J[e+4>>2]=0;H[e+8|0]=0;g=J[695492];J[695492]=0;if((g|0)==1)break g;J[695492]=0;ia(4894,b|0,d|0,e|0,c|0);g=J[695492];J[695492]=0;n:{if((g|0)==1)break n;J[695492]=0;g=J[c+4>>2];j=J[695492];J[695492]= -0;if((j|0)==1)break n;if(!g)break h;J[695492]=0;g=J[d+4>>2];j=J[695492];J[695492]=0;if((j|0)==1)break n;if(!g)break h;J[695492]=0;ca(4938,a|0,c|0,d|0);g=J[695492];J[695492]=0;if((g|0)!=1)break h}b=Z()|0;Lc(e);break f}b=Z()|0;break b}b=Z()|0;break k}b=Z()|0;Lc(c)}if(H[f+91|0]>=0)break b;qc(J[f+80>>2]);break b}b=Z()|0;break b}b=Z()|0;Lc(c);break b}Lc(e);Lc(d);Lc(c);continue}b=Z()|0}Lc(d);Lc(c);break b}J[695492]=0;c=Fd(h,2370504);d=J[695492];J[695492]=0;if((d|0)==1)break c;o:{p:{if(c)break p;J[695492]= -0;c=Fd(h,2370568);d=J[695492];J[695492]=0;if((d|0)==1)break c;if(c)break p;J[695492]=0;c=Fd(h,2370612);d=J[695492];J[695492]=0;if((d|0)==1)break c;if(c)break p;J[695492]=0;c=Fd(h,2370692);d=J[695492];J[695492]=0;if((d|0)==1)break c;if(!c)break o}J[695492]=0;c=f+32|0;J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;d=J[695492];J[695492]=0;q:{r:{s:{t:{if((d|0)!=1){J[695492]=0;J[f+80>>2]=0;J[f+84>>2]=1072693248;g=f+80|0;e=ga(4939,b|0,g|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break q;if(!e)break r;J[695492]=0;d= -Vl(f+128|0,c);j=J[695492];J[695492]=0;if((j|0)==1)break t;J[f+140>>2]=e;J[695492]=0;ia(4941,g|0,l|0,d|0,d|0);e=J[695492];J[695492]=0;if((e|0)!=1)break s;b=Z()|0;Lc(d);Lc(c);break b}b=Z()|0;break b}b=Z()|0;Lc(c);break b}Lc(d)}Lc(c);continue}b=Z()|0;Lc(c);break b}J[695492]=0;c=Fd(h,2370772);d=J[695492];J[695492]=0;if((d|0)==1)break c;if(!c)continue;J[695492]=0;c=f+20|0;J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;d=J[695492];J[695492]=0;u:{v:{if((d|0)!=1){J[695492]=0;d=f+8|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;e= -J[695492];J[695492]=0;if((e|0)==1)break u;J[695492]=0;ca(4942,b|0,d|0,c|0);e=J[695492];J[695492]=0;w:{if((e|0)==1)break w;J[695492]=0;e=J[c+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break w;if(!e)break v;J[695492]=0;e=J[d+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break w;if(!e)break v;J[695492]=0;ca(4943,a|0,c|0,d|0);e=J[695492];J[695492]=0;if((e|0)!=1)break v}b=Z()|0;Lc(d);Lc(c);break b}b=Z()|0;break b}Lc(d);Lc(c);continue}break}b=Z()|0;Lc(c);break b}Lc(i);Lc(h);bc=f+144|0;return}b=Z()|0;break b}b= -Z()|0}Lc(i);break a}b=Z()|0}Lc(h);ba(b|0);B()}function mOa(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,u=0,v=0;wc(a+160|0,0,96);d=a;while(1){f=J[(g<<2)+b>>2]+c|0;j=K[f+4|0];k=K[f+5|0];e=j-k|0;l=K[f|0];n=K[f+9|0];h=l-n|0;s=e+h|0;o=K[f+2|0];t=K[f+7|0];u=o-t|0;p=K[f+1|0];q=K[f+8|0];i=p-q|0;r=K[f+3|0];v=K[f+6|0];f=r-v|0;m=i-f|0;J[d+20>>2]=s-(u+m|0)<<2;j=j+k|0;k=l+n|0;l=j+k|0;r=r+v|0;p=p+q|0;q=r+p|0;o=o+t|0;J[d>>2]=(l+(q+o|0)<<2)-5120;n=o<<1;J[d+16>> +e=l>>31;o=(e^l)-e|0;r=o+(t>>>8|0)>>>0>8190;k:{if(!r){e=P(o,t)+32768>>>16|0;break k}e=o&65535;e=P(e,t>>>16|0)+P(t,o>>>16|0)+(P(e,s&65535)+32768>>>16)|0}d=(l|0)<0;l:{if((j|0)<=((d?0-e|0:e)|0)){f=Od(f,x,t);break l}f=Od(f,l,m)}e=i+p|0;p=y?0-e|0:e;if(n+z>>>0<=8190)e=P(q,z)+32768>>>16|0;else e=P(q>>>16|0,G)+P(q,O)+(P(q&65535,G)+32768>>>16)|0;j=(c|0)<-1^k?0-e|0:e;if(r){e=o&65535;e=P(e,t>>>16|0)+P(t,o>>>16|0)+(P(e,s&65535)+32768>>>16)|0}else e=P(o,t)+32768>>>16|0;if((j|0)<=((d?0-e|0:e)|0)){d=Od(p,w,t);break i}d= +Od(p,l,m)}k=d;if((a|0)==(u|0))break f;j=k+w|0;e=f+x|0;while(1){p=(a<<3)+D|0;J[p>>2]=e+J[p>>2];J[p+4>>2]=j+J[p+4>>2];a=(a|0)<(v|0)?a+1|0:B;if((u|0)!=(a|0))continue;break}}j=h;p=i;e=g;a=u}u=(u|0)<(v|0)?u+1|0:B;if((u|0)==(a|0))break b;if((a|0)!=(C|0))continue;break}}B=v+1|0;E=E+1|0;if((F|0)!=(E|0))continue;break}}return 0}function Nub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=fc-48|0;fc=g;J[g+40>>2]=0;J[g+36>>2]=0;a:{b:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+ +288|0]))break b;if(K[a+289|0])break b;f=1029;Jc(a,1029,0,0);break a}c:{if(!(K[a+292|0]|(K[a+300|0]|K[a+293|0])))if(!K[a+291|0])break c;f=1029;Jc(a,1029,0,0);break a}d:{e:{if(!(K[a+288|0]|(K[a+286|0]|K[a+287|0])))if(!K[a+289|0])break e;f=d;if(c>>>0>=2)break d;f=1028;Jc(a,1028,0,0);break a}f=d;if((c|0)!=1)break d;f=1028;Jc(a,1028,0,0);break a}while(1){l=f;f=f+1|0;if(K[l|0])continue;break}m=l-d|0;if((m|0)>(c|0)){f=1043;Jc(a,1043,0,0);break a}f:{n=c-2|0;f=hv(a,l+2|0,n-m|0,g+36|0,g+40|0,g+44|0);if(f){if(!ud(d, +212818,21)){f=0;if((c|0)!=2615)break a;b=J[54671];J[g+24>>2]=J[54670];J[g+28>>2]=b;b=J[54669];J[g+16>>2]=J[54668];J[g+20>>2]=b;b=J[54667];J[g+8>>2]=J[54666];J[g+12>>2]=b;b=J[54665];J[g>>2]=J[54664];J[g+4>>2]=b;f=W9(a,g,1,215745,e);if(!f)break f;b=J[g+36>>2];if(!b)break a;kc[J[a+156>>2]](b,J[g+40>>2]);break a}b=J[g+36>>2];if(!b)break a;kc[J[a+156>>2]](b,J[g+40>>2]);break a}g:{h:{i:{j:{k:{if(!(K[a+286|0]|K[a+287|0])){l:{if(!(K[a+288|0]|K[a+289|0])){H[a+311|0]=(c|0)!=0;break l}H[a+298|0]=1}if(K[a+288| +0]|K[a+289|0])break k;if(c)break j;f=J[a+2236>>2];if(f)kc[J[a+156>>2]](f,J[a+2232>>2]);J[a+2232>>2]=0;J[a+2236>>2]=0;f=0;h=0;break i}H[a+298|0]=1}if(K[a+288|0]){h=J[a+528>>2];j=h;f=h+88|0;i=J[h+88>>2];h=J[i+1148>>2];if(h)kc[J[a+156>>2]](h,J[i+1144>>2]);i=J[g+44>>2];h=kc[J[a+152>>2]](i)|0;J[J[j+88>>2]+1148>>2]=h;if(h)break h;f=1;Jc(a,1,0,0);break a}j=J[a+512>>2];if(!j)j=J[a+528>>2];f=j+88|0;i=J[j+88>>2];h=J[i+1148>>2];if(h)kc[J[a+156>>2]](h,J[i+1144>>2]);i=J[g+44>>2];h=kc[J[a+152>>2]](i)|0;J[J[j+88>> +2]+1148>>2]=h;if(!h){f=1;Jc(a,1,0,0);break a}break h}f=J[g+44>>2];h=kc[J[a+152>>2]](f)|0;J[a+2236>>2]=h;if(!h){f=1;Jc(a,1,0,0);break a}xc(h,J[g+36>>2],f);J[a+2232>>2]=f;h=J[a+2236>>2]}j=0;m:{if(!K[a+114|0])break m;i=!c;n:{k=kc[J[a+152>>2]](40)|0;if(!k)break n;J[k+4>>2]=1036;J[k>>2]=1037;j=J[a+700>>2];o:{if(j){J[j+8>>2]=k;break o}J[a+696>>2]=k}J[k+8>>2]=0;J[k+12>>2]=j;J[a+700>>2]=k;J[k+16>>2]=J[a+436>>2];J[k+20>>2]=J[a+440>>2];J[k+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>> +2]=k;J[k+32>>2]=f;H[k+28|0]=i;if(f){i=kc[J[a+152>>2]](f)|0;J[k+36>>2]=i;if(!i)break n;xc(i,h,f)}j=0;break m}Jc(a,1,0,0);j=1}f=j;if(!f)break g;break a}xc(h,J[g+36>>2],i);f=J[f>>2];H[f+60|0]=1;J[f+1144>>2]=i}p:{if(!K[a+112|0]){b=J[g+36>>2];break p}f=kc[J[b+4>>2]](a,b,e)|0;if(f){b=J[g+36>>2];if(!b)break a;kc[J[a+156>>2]](b,J[g+40>>2]);break a}f=J[e>>2];h=!c;H[f+32|0]=h;b=J[g+36>>2];if(h)break p;q:{r:{s:{if(!b){f=d;while(1){l=f;f=f+1|0;if(K[l|0])continue;break}m=l-d|0;if((m|0)>(c|0)){f=1043;Jc(a,1043, +0,0);break a}f=hv(a,l+2|0,n-m|0,g+36|0,g+40|0,g+44|0);if(f)break s;f=J[e>>2]}J[f+36>>2]=m;if((d|0)==(l|0))break q;f=1;b=kc[J[a+152>>2]](m+1|0)|0;J[J[e>>2]+40>>2]=b;c=J[e>>2];b=J[c+40>>2];if(b)break r;Jc(a,1,0,0);break a}b=J[g+36>>2];if(!b)break a;kc[J[a+156>>2]](b,J[g+40>>2]);break a}xc(b,d,J[c+36>>2]);f=J[e>>2]}H[f+44|0]=K[l+1|0];c=J[g+44>>2];J[f+48>>2]=c;b=kc[J[a+152>>2]](c)|0;J[J[e>>2]+52>>2]=b;b=J[J[e>>2]+52>>2];if(!b){f=1;Jc(a,1,0,0);break a}d=b;b=J[g+36>>2];xc(d,b,c)}f=0;if(!b)break a;kc[J[a+ +156>>2]](b,J[g+40>>2]);break a}f=0}fc=g+48|0;return f|0}function Nv(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=fc-16|0;fc=i;d=J[a+12>>2];a:{if(!(d&64)){f=fc+-64|0;fc=f;b:{if(!J[a+8>>2]){d=J[a+628>>2];J[f>>2]=J[a>>2];Uc(d,92320,72132,f);d=0;break b}d=J[a+12>>2];if(d>>>10&1){Uc(J[a+628>>2],J[a>>2],73193,0);d=0;break b}e=J[a+40>>2];if(!(e&2)){d=J[a+628>>2];J[f+16>>2]=J[a>>2];Uc(d,92320,73832,f+16|0);d=0;break b}e=e&1048576;c:{if(L[a+98>>1]==1){if(e)break c;I[a+138>>1]=1;break c}if(e)break c;d=J[a+ +628>>2];J[f+48>>2]=J[a>>2];Uc(d,92320,74362,f+48|0);d=0;break b}d:{if(J[a+184>>2])break d;d=J[a+40>>2];e:{if(K[a+13|0]&4){e=L[a+98>>1];if(!(J[a+60>>2]|!(d&4)))break e;e=kV(a);break e}e=L[a+98>>1];if(!(J[a+60>>2]|!(d&131072)))break e;e=sV(a)}d=e;J[a+180>>2]=d;J[a+176>>2]=d;if(L[a+138>>1]==2)J[a+176>>2]=(d>>>0)/L[a+98>>1];j=a,k=Dc(d<<2),J[j+184>>2]=k;d=Dc(J[a+180>>2]<<2);J[a+188>>2]=d;e=0;g=J[a+184>>2];if(!(!g|!d)){Sg(g,0,J[a+180>>2]<<2);Sg(J[a+188>>2],0,J[a+180>>2]<<2);J[a+40>>2]=J[a+40>>2]|50331648; +e=1}d=J[a+12>>2];if(e)break d;J[a+180>>2]=0;e=J[a+628>>2];g=J[a>>2];J[f+36>>2]=d&1024?75035:75431;J[f+32>>2]=g;Uc(e,92320,74490,f+32|0);d=0;break b}if(d&1024)d=Dm(a);else d=-1;J[a+508>>2]=d;j=a,k=wj(a),J[j+588>>2]=k;J[a+12>>2]=J[a+12>>2]|64;d=1}fc=f- -64|0;if(!d){f=-1;break a}d=J[a+12>>2]}if(!(J[a+596>>2]?d&16:0)){f=-1;d=fc-16|0;fc=d;e=J[a+596>>2];if(e){if(K[a+13|0]&2){uc(e);J[a+12>>2]=J[a+12>>2]&-513}J[a+596>>2]=0}if(K[a+13|0]&4)e=J[a+508>>2];else e=ot(a);g=(e|0)<=8192?8192:e;e=Dc(g);f:{if(!e){e= +J[a+628>>2];J[d>>2]=J[a>>2];Uc(e,92352,75944,d);e=0;break f}h=J[a+12>>2]|512;J[a+608>>2]=0;J[a+600>>2]=g;J[a+596>>2]=e;J[a+604>>2]=e;J[a+12>>2]=h|16;e=1}fc=d+16|0;if(!e)break a}d=L[a+138>>1];g:{h:{i:{j:{h=M[a+60>>2]>c>>>0;if(!h){if((d|0)!=2)break j;Uc(J[a+628>>2],J[a>>2],69186,0);f=-1;break a}if((d|0)!=2)break i;d=L[a+98>>1];if(!d){b=J[a>>2];a=J[a+628>>2];J[i+4>>2]=d;J[i>>2]=0;Uc(a,b,70308,i);f=-1;break a}d=(c>>>0)/M[a+100>>2]|0;break h}J[a+60>>2]=c+1}d=(c>>>0)/M[a+100>>2]|0}f=J[a+180>>2];if(d>>> +0>>0)break g;e=fc-16|0;fc=e;k:{if(L[a+138>>1]==1){f=Yh(J[a+184>>2],(f<<2)+4|0);g=Yh(J[a+188>>2],(J[a+180>>2]<<2)+4|0);l:{if(!(g?f:0)){if(f)uc(f);if(g)uc(g);J[a+180>>2]=0;f=J[a+628>>2];J[e>>2]=J[a>>2];Uc(f,92320,77495,e);f=0;break l}J[a+188>>2]=g;J[a+184>>2]=f;Sg(f+(J[a+180>>2]<<2)|0,0,4);Sg(J[a+188>>2]+(J[a+180>>2]<<2)|0,0,4);J[a+180>>2]=J[a+180>>2]+1;f=1}fc=e+16|0;break k}fa(76879,77315,594,92373);B()}if(f)break g;f=-1;break a}if((d|0)!=J[a+480>>2]){f=-1;e=0;g=J[a+12>>2];m:{if(!(g&64))break m; +if(g&4096){J[a+12>>2]=g&-4097;if(!(kc[J[a+536>>2]](a)|0))break m}e=pf(a)}if(!e)break a;J[a+480>>2]=d;e=J[a+176>>2];n:{if(!(!h&d>>>0>=e>>>0)){g=J[a+100>>2];break n}e=0;h=J[a+60>>2];g=J[a+100>>2];if(h>>>0<0-g>>>0)e=((g+h|0)-1>>>0)/(g>>>0)|0;J[a+176>>2]=e}J[a+472>>2]=P((d>>>0)%(e>>>0)|0,g);if(!(K[a+12|0]&32)){if(!(kc[J[a+524>>2]](a)|0))break a;J[a+12>>2]=J[a+12>>2]|32}J[a+608>>2]=0;J[a+604>>2]=J[a+596>>2];e=J[a+188>>2]+(d<<2)|0;if(J[e>>2]){J[e>>2]=0;J[a+484>>2]=0}if(!(kc[J[a+532>>2]](a,0)|0))break a; +J[a+12>>2]=J[a+12>>2]|4096}f=J[a+472>>2];if((f|0)!=(c|0)){if(c>>>0>>0){J[a+604>>2]=J[a+596>>2];f=P(J[a+100>>2],(d>>>0)%M[a+176>>2]|0);J[a+472>>2]=f}if(!(kc[J[a+568>>2]](a,c-f|0)|0)){f=-1;break a}J[a+472>>2]=c}kc[J[a+652>>2]](a,b,J[a+588>>2]);f=kc[J[a+544>>2]](a,b,J[a+588>>2],0)|0;J[a+472>>2]=c+1}fc=i+16|0;return f}function iHa(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;f=fc-144|0;fc=f;h=f+116|0;J[h>>2]=0;J[h+4>>2]=0;H[h+8|0]=0;J[699344]=0;i=f+104|0;J[i>>2]=0;J[i+4>>2]=0;H[i+8| +0]=0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[699344]=0;k=$g(b);c=J[699344];J[699344]=0;b:{if((c|0)!=1){l=a+12|0;c:{d:{while(1){J[699344]=0;c=aa(4975,b|0,k|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!c)break d;J[699344]=0;c=f+80|0;da(4962,c|0,b|0);d=J[699344];J[699344]=0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((d|0)!=1){J[699344]=0;c=aa(4985,f+92|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break m;J[699344]=0;dg(h,c);d=J[699344];J[699344]=0;if((d|0)==1)break l;Rc(c);if(H[f+91|0]<0)uc(J[f+80>>2]); +J[699344]=0;c=Qd(h,2382356);d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!c)break e;J[699344]=0;c=f+68|0;J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;d=J[699344];J[699344]=0;if((d|0)==1)break j;J[699344]=0;d=f+56|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;e=J[699344];J[699344]=0;if((e|0)==1)break i;J[699344]=0;e=f+44|0;J[e>>2]=0;J[e+4>>2]=0;H[e+8|0]=0;g=J[699344];J[699344]=0;if((g|0)==1)break g;J[699344]=0;ia(5054,b|0,d|0,e|0,c|0);g=J[699344];J[699344]=0;n:{if((g|0)==1)break n;J[699344]=0;g=J[c+4>>2];j=J[699344];J[699344]= +0;if((j|0)==1)break n;if(!g)break h;J[699344]=0;g=J[d+4>>2];j=J[699344];J[699344]=0;if((j|0)==1)break n;if(!g)break h;J[699344]=0;ca(5098,a|0,c|0,d|0);g=J[699344];J[699344]=0;if((g|0)!=1)break h}b=Z()|0;Rc(e);break f}b=Z()|0;break b}b=Z()|0;break k}b=Z()|0;Rc(c)}if(H[f+91|0]>=0)break b;uc(J[f+80>>2]);break b}b=Z()|0;break b}b=Z()|0;Rc(c);break b}Rc(e);Rc(d);Rc(c);continue}b=Z()|0}Rc(d);Rc(c);break b}J[699344]=0;c=Qd(h,2382408);d=J[699344];J[699344]=0;if((d|0)==1)break c;o:{p:{if(c)break p;J[699344]= +0;c=Qd(h,2382472);d=J[699344];J[699344]=0;if((d|0)==1)break c;if(c)break p;J[699344]=0;c=Qd(h,2382516);d=J[699344];J[699344]=0;if((d|0)==1)break c;if(c)break p;J[699344]=0;c=Qd(h,2382596);d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!c)break o}J[699344]=0;c=f+32|0;J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;d=J[699344];J[699344]=0;q:{r:{s:{t:{if((d|0)!=1){J[699344]=0;J[f+80>>2]=0;J[f+84>>2]=1072693248;g=f+80|0;e=ga(5099,b|0,g|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break q;if(!e)break r;J[699344]=0;d= +Im(f+128|0,c);j=J[699344];J[699344]=0;if((j|0)==1)break t;J[f+140>>2]=e;J[699344]=0;ia(5101,g|0,l|0,d|0,d|0);e=J[699344];J[699344]=0;if((e|0)!=1)break s;b=Z()|0;Rc(d);Rc(c);break b}b=Z()|0;break b}b=Z()|0;Rc(c);break b}Rc(d)}Rc(c);continue}b=Z()|0;Rc(c);break b}J[699344]=0;c=Qd(h,2382676);d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!c)continue;J[699344]=0;c=f+20|0;J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;d=J[699344];J[699344]=0;u:{v:{if((d|0)!=1){J[699344]=0;d=f+8|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;e= +J[699344];J[699344]=0;if((e|0)==1)break u;J[699344]=0;ca(5102,b|0,d|0,c|0);e=J[699344];J[699344]=0;w:{if((e|0)==1)break w;J[699344]=0;e=J[c+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break w;if(!e)break v;J[699344]=0;e=J[d+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break w;if(!e)break v;J[699344]=0;ca(5103,a|0,c|0,d|0);e=J[699344];J[699344]=0;if((e|0)!=1)break v}b=Z()|0;Rc(d);Rc(c);break b}b=Z()|0;break b}Rc(d);Rc(c);continue}break}b=Z()|0;Rc(c);break b}Rc(i);Rc(h);fc=f+144|0;return}b=Z()|0;break b}b= +Z()|0}Rc(i);break a}b=Z()|0}Rc(h);ba(b|0);B()}function LSa(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,u=0,v=0;Ac(a+160|0,0,96);d=a;while(1){f=J[(g<<2)+b>>2]+c|0;j=K[f+4|0];k=K[f+5|0];e=j-k|0;l=K[f|0];n=K[f+9|0];h=l-n|0;s=e+h|0;o=K[f+2|0];t=K[f+7|0];u=o-t|0;p=K[f+1|0];q=K[f+8|0];i=p-q|0;r=K[f+3|0];v=K[f+6|0];f=r-v|0;m=i-f|0;J[d+20>>2]=s-(u+m|0)<<2;j=j+k|0;k=l+n|0;l=j+k|0;r=r+v|0;p=p+q|0;q=r+p|0;o=o+t|0;J[d>>2]=(l+(q+o|0)<<2)-5120;n=o<<1;J[d+16>> 2]=(P(q-n|0,-3580)+P(l-n|0,9373)|0)+1024>>11;k=k-j|0;l=p-r|0;j=P(k+l|0,6810)+1024|0;J[d+24>>2]=j+P(l,-17828)>>11;J[d+8>>2]=j+P(k,4209)>>11;j=(P(h-e|0,7791)+P(f+i|0,-4815)|0)+1024|0;k=u<<13;m=((m<<12)-k|0)+P(m+s|0,2531)|0;J[d+28>>2]=j-m>>11;J[d+12>>2]=j+m>>11;J[d+4>>2]=(((k+(P(h,11443)+P(i,10323)|0)|0)+P(f,5260)|0)+P(e,1812)|0)+1024>>11;d=d+32|0;g=g+1|0;if((g|0)!=5)continue;break}b=J[a+128>>2];c=J[a>>2];d=b+c|0;f=J[a+96>>2];g=J[a+32>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+64>>2];i=P(d-(e<< 2)|0,3707);J[a+128>>2]=h-i>>15;J[a+64>>2]=h+i>>15;J[a>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+96>>2]=b+P(d,-22820)>>15;J[a+32>>2]=b+P(c,5387)>>15;b=J[a+100>>2];c=J[a+36>>2];d=b+c|0;f=J[a+132>>2];g=J[a+4>>2];e=f+g|0;h=d+e|0;i=J[a+68>>2];J[a+4>>2]=P(h+i|0,10486)+16384>>15;d=P(e-d|0,8290)+16384|0;e=P(h-(i<<2)|0,3707);J[a+132>>2]=d-e>>15;J[a+68>>2]=d+e>>15;c=c-b|0;d=g-f|0;b=P(c+d|0,8716)+16384|0;J[a+36>>2]=b+P(d,5387)>>15;J[a+100>>2]=b+P(c,-22820)>>15;b=J[a+136>>2];c= J[a+8>>2];d=b+c|0;f=J[a+104>>2];g=J[a+40>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+72>>2];i=P(d-(e<<2)|0,3707);J[a+136>>2]=h-i>>15;J[a+72>>2]=h+i>>15;J[a+8>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+104>>2]=b+P(d,-22820)>>15;J[a+40>>2]=b+P(c,5387)>>15;b=J[a+140>>2];c=J[a+12>>2];d=b+c|0;f=J[a+108>>2];g=J[a+44>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+76>>2];i=P(d-(e<<2)|0,3707);J[a+140>>2]=h-i>>15;J[a+76>>2]=h+i>>15;J[a+12>>2]=P(d+e|0,10486)+16384>>15; d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+108>>2]=b+P(d,-22820)>>15;J[a+44>>2]=b+P(c,5387)>>15;b=J[a+144>>2];c=J[a+16>>2];d=b+c|0;f=J[a+112>>2];g=J[a+48>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+80>>2];i=P(d-(e<<2)|0,3707);J[a+144>>2]=h-i>>15;J[a+80>>2]=h+i>>15;J[a+16>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+112>>2]=b+P(d,-22820)>>15;J[a+48>>2]=b+P(c,5387)>>15;b=J[a+148>>2];c=J[a+20>>2];d=b+c|0;f=J[a+116>>2];g=J[a+52>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d= d+e|0;e=J[a+84>>2];i=P(d-(e<<2)|0,3707);J[a+148>>2]=h-i>>15;J[a+84>>2]=h+i>>15;J[a+20>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+116>>2]=b+P(d,-22820)>>15;J[a+52>>2]=b+P(c,5387)>>15;b=J[a+152>>2];c=J[a+24>>2];d=b+c|0;f=J[a+120>>2];g=J[a+56>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+88>>2];i=P(d-(e<<2)|0,3707);J[a+152>>2]=h-i>>15;J[a+88>>2]=h+i>>15;J[a+24>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+120>>2]=b+P(d,-22820)>>15;J[a+56>> -2]=b+P(c,5387)>>15;b=J[a+156>>2];c=J[a+28>>2];d=b+c|0;f=J[a+124>>2];g=J[a+60>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+92>>2];i=P(d-(e<<2)|0,3707);J[a+156>>2]=h-i>>15;J[a+92>>2]=h+i>>15;J[a+28>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+124>>2]=b+P(d,-22820)>>15;J[a+60>>2]=b+P(c,5387)>>15}function gR(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;m=bc-16|0;bc=m;a:{if(!((b|0)!=1&b>>>0<=36)){J[694731]=28;d=0;e=0;break a}while(1){f=J[a+4>>2];b:{if((f|0)!=J[a+ -104>>2]){J[a+4>>2]=f+1;f=K[f|0];break b}f=nf(a)}if((f|0)==32|f-9>>>0<5)continue;break}c:{d:switch(f-43|0){case 0:case 2:break d;default:break c}l=(f|0)==45?-1:0;f=J[a+4>>2];if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break c}f=nf(a)}e:{f:{g:{h:{if(!((b|0)!=0&(b|0)!=16|(f|0)!=48)){f=J[a+4>>2];i:{if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break i}f=nf(a)}if((f&-33)==88){b=16;f=J[a+4>>2];j:{if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break j}f=nf(a)}if(K[f+2612865|0]<16)break g;d=0;e=0;b=J[a+ -116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;k:{if(b){b=J[a+4>>2];J[a+4>>2]=b-1;if(!c)break k;J[a+4>>2]=b-2;break a}if(c)break a}lk(a,0,0);break a}if(b)break h;b=8;break g}b=b?b:10;if(b>>>0>K[f+2612865|0])break h;d=0;e=0;b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;lk(a,0,0);J[694731]=28;break a}if((b|0)!=10)break g;c=f-48|0;if(c>>>0<=9){f=0;while(1){f=P(f,10)+c|0;h=f>>>0<429496729;b=J[a+4>>2];l:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break l}b=nf(a)}c=b-48|0;if(h&c>>> -0<=9)continue;break}h=f}if(c>>>0>9)break e;b=Dzb(h,0,10,0);j=fc;while(1){i=j;h=b+c|0;i=h>>>0>>0?i+1|0:i;b=(i|0)==429496729&h>>>0<2576980378|i>>>0<429496729;f=J[a+4>>2];m:{if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break m}f=nf(a)}g=f-48|0;if(!(b&g>>>0<=9)){b=10;if(g>>>0<=9)break f;break e}b=Dzb(h,i,10,0);j=fc;c=g;if((j|0)==-1&(c^-1)>>>0>=b>>>0|(j|0)!=-1)continue;break}b=10;break f}if(b-1&b){g=K[f+2612865|0];if(g>>>0>>0){c=0;while(1){c=P(b,c)+g|0;h=c>>>0<119304647;f=J[a+4>>2];n:{if((f|0)!= -J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break n}f=nf(a)}g=K[f+2612865|0];if(h&g>>>0>>0)continue;break}h=c}if(b>>>0<=g>>>0)break f;while(1){c=Dzb(h,i,b,0);j=fc;g=g&255;if((j|0)==-1&(g^-1)>>>0>>0)break f;i=j;h=c+g|0;i=h>>>0>>0?i+1|0:i;f=J[a+4>>2];o:{if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break o}f=nf(a)}g=K[f+2612865|0];if(b>>>0<=g>>>0)break f;ai(m,b,0,0,0,h,i,0,0);if(!(J[m+8>>2]|J[m+12>>2]))continue;break}break f}j=H[(P(b,23)>>>5&7)+2613121|0];c=K[f+2612865|0];if(c>>>0>>0){while(1){g= -g<>>0<134217728;c=J[a+4>>2];p:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;f=K[c|0];break p}f=nf(a)}c=K[f+2612865|0];if(h&c>>>0>>0)continue;break}h=g}if(b>>>0<=c>>>0)break f;k=j&31;if((j&63)>>>0>=32){g=0;k=-1>>>k|0}else{g=-1>>>k|0;k=g|(1<>>0>k>>>0)break f;while(1){n=c&255;f=h;c=j&31;if((j&63)>>>0>=32){i=f<>>32-c|i<>2];q:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;f=K[c|0];break q}f=nf(a)}c=K[f+2612865|0];if(b>>>0<=c>>>0)break f;if((i| -0)==(g|0)&h>>>0<=k>>>0|i>>>0>>0)continue;break}}if(K[f+2612865|0]>=b>>>0)break e;while(1){c=J[a+4>>2];r:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break r}c=nf(a)}if(K[c+2612865|0]>>0)continue;break}J[694731]=68;l=d&1?0:l;h=d;i=e}b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;s:{if((e|0)==(i|0)&d>>>0>h>>>0|e>>>0>i>>>0)break s;if(!(l|d&1)){J[694731]=68;a=d;d=a-1|0;e=e-!a|0;break a}if((e|0)==(i|0)&d>>>0>=h>>>0|e>>>0>i>>>0)break s;J[694731]=68;break a}a=h^l;d=a-l|0; -b=l>>31;e=(b^i)-((a>>>0>>0)+b|0)|0}bc=m+16|0;fc=e;return d}function _yb(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;f=bc-80|0;bc=f;if(!(!c|!K[c|0]))hd(205401,0);c=-1;n=iO(205469);a:{if((n|0)<0){hd(205779,0);break a}e=L9(J[a+16>>2]);if(!e)break a;J[e>>2]=1296647690;c=J[a+16>>2];J[e+4>>2]=c;if((c|0)>0)while(1){c=zc(36);d=h<<2;J[d+J[e+12>>2]>>2]=c;c=J[d+J[e+12>>2]>>2];d=J[d+J[a+24>>2]>>2];J[c>>2]=J[d>>2];J[c+4>>2]=J[d+4>>2];J[c+8>>2]=J[d+16>>2];J[c+12>>2]=J[d+20>> -2];J[c+16>>2]=J[d+8>>2];J[c+20>>2]=J[d+12>>2];J[c+24>>2]=J[d+24>>2];d=J[d+28>>2];J[c+32>>2]=0;J[c+28>>2]=d;h=h+1|0;if((h|0)>2])continue;break}c=J[b+8>>2];b:{if(c&7)break b;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break b}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)<=0){Uc(b,77);break b}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=77}c=J[b+8>>2];c:{if(c&7)break c;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break c}J[b+4>>2]=J[b+4>> -2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)<=0){Uc(b,73);break c}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=73}c=J[b+8>>2];d:{if(c&7)break d;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break d}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)<=0){Uc(b,70);break d}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=70}c=J[b+8>>2];e:{if(c&7)break e;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break e}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+ -28>>2]=c-1;if((c|0)<=0){Uc(b,10);break e}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=10}if(J[e+4>>2]>0){d=0;while(1){c=J[J[e+12>>2]+(d<<2)>>2];i=J[c>>2];g=J[c+4>>2];h=J[c+16>>2];j=J[c+20>>2];l=J[c+8>>2];m=J[c+12>>2];o=J[c+28>>2];J[f+40>>2]=J[c+24>>2];J[f+44>>2]=o;J[f+32>>2]=l;J[f+36>>2]=m;J[f+24>>2]=h;J[f+28>>2]=j;J[f+16>>2]=i;J[f+20>>2]=g;El(b,207095,f+16|0);c=J[c+32>>2];if(c){J[f>>2]=c;El(b,207312,f)}El(b,207521,0);d=d+1|0;if((d|0)>2])continue;break}}El(b,207554,0);f:{c=J[e+ -4>>2];g:{h:{if((c|0)>0){while(1){g=J[J[e+12>>2]+(k<<2)>>2];if(!J[g+32>>2]){j=mE();if(!j){d=0;break f}J[f+48>>2]=0;J[f+52>>2]=0;J[f+56>>2]=J[g+16>>2];J[f+60>>2]=J[g+20>>2];J[f+64>>2]=J[g+8>>2];J[f+68>>2]=J[g+12>>2];c=J[g+24>>2];d=0;J[f+76>>2]=0;J[f+72>>2]=c;if(Qr(j,J[j+16>>2],f+48|0))break f;i=Io(0,0,J[g+8>>2],J[g+12>>2]);if(!i)break f;if(hk(a,k,0,0,J[g+8>>2],J[g+12>>2],i)){d=i;break f}i:{if(!J[g+28>>2]){c=J[g+12>>2];h=J[g+8>>2];break i}c=J[g+12>>2];h=J[g+8>>2];if((c|0)<=0|(h|0)<=0)break i;l=1<>2]-1;while(1){if((h|0)>0){m=J[i+28>>2];c=0;while(1){h=J[(d-J[i+8>>2]<<2)+m>>2]+(c-J[i+4>>2]<<2)|0;J[h>>2]=J[h>>2]+l;c=c+1|0;h=J[g+8>>2];if((c|0)<(h|0))continue;break}c=J[g+12>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}}if(gk(j,0,0,0,h,c,i)){d=i;break f}dg(i);d=0;if(jO(j,b,n,0))break f;yh(j);c=J[e+4>>2]}k=k+1|0;if((k|0)<(c|0))continue;break}d=J[e+12>>2];if(!d)break g;if((c|0)<=0)break h;c=0;while(1){a=J[J[e+12>>2]+(c<<2)>>2];b=J[a+32>>2];if(b)qc(b);qc(a);c=c+1|0;if((c|0)>2])continue;break}d= -J[e+12>>2];break h}d=J[e+12>>2];if(!d)break g}qc(d)}qc(e);c=0;break a}a=J[e+12>>2];if(a){if(J[e+4>>2]>0){c=0;while(1){a=J[J[e+12>>2]+(c<<2)>>2];b=J[a+32>>2];if(b)qc(b);qc(a);c=c+1|0;if((c|0)>2])continue;break}a=J[e+12>>2]}qc(a)}qc(e);if(j)yh(j);c=-1;if(!d)break a;dg(d)}bc=f+80|0;return c|0}function pH(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;h=J[a>>2];f=J[a+12>>2]<<5;k=h+f|0;q=h-f|0;f=J[a+16>>2];l=J[a+28>>2];m=J[a+20>>2];g=J[a+8>>2];a:{b:{if(b&15|d>>>0<8|k&15){if(f>>> +2]=b+P(c,5387)>>15;b=J[a+156>>2];c=J[a+28>>2];d=b+c|0;f=J[a+124>>2];g=J[a+60>>2];e=f+g|0;h=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+92>>2];i=P(d-(e<<2)|0,3707);J[a+156>>2]=h-i>>15;J[a+92>>2]=h+i>>15;J[a+28>>2]=P(d+e|0,10486)+16384>>15;d=g-f|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+124>>2]=b+P(d,-22820)>>15;J[a+60>>2]=b+P(c,5387)>>15}function LS(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;m=fc-16|0;fc=m;a:{if(!((b|0)!=1&b>>>0<=36)){J[698583]=28;d=0;e=0;break a}while(1){f=J[a+4>>2];b:{if((f|0)!=J[a+ +104>>2]){J[a+4>>2]=f+1;f=K[f|0];break b}f=uf(a)}if((f|0)==32|f-9>>>0<5)continue;break}c:{d:switch(f-43|0){case 0:case 2:break d;default:break c}l=(f|0)==45?-1:0;f=J[a+4>>2];if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break c}f=uf(a)}e:{f:{g:{h:{if(!((b|0)!=0&(b|0)!=16|(f|0)!=48)){f=J[a+4>>2];i:{if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break i}f=uf(a)}if((f&-33)==88){b=16;f=J[a+4>>2];j:{if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break j}f=uf(a)}if(K[f+2627681|0]<16)break g;d=0;e=0;b=J[a+ +116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;k:{if(b){b=J[a+4>>2];J[a+4>>2]=b-1;if(!c)break k;J[a+4>>2]=b-2;break a}if(c)break a}Jk(a,0,0);break a}if(b)break h;b=8;break g}b=b?b:10;if(b>>>0>K[f+2627681|0])break h;d=0;e=0;b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;Jk(a,0,0);J[698583]=28;break a}if((b|0)!=10)break g;c=f-48|0;if(c>>>0<=9){f=0;while(1){f=P(f,10)+c|0;h=f>>>0<429496729;b=J[a+4>>2];l:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break l}b=uf(a)}c=b-48|0;if(h&c>>> +0<=9)continue;break}h=f}if(c>>>0>9)break e;b=vEb(h,0,10,0);j=jc;while(1){i=j;h=b+c|0;i=h>>>0>>0?i+1|0:i;b=(i|0)==429496729&h>>>0<2576980378|i>>>0<429496729;f=J[a+4>>2];m:{if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break m}f=uf(a)}g=f-48|0;if(!(b&g>>>0<=9)){b=10;if(g>>>0<=9)break f;break e}b=vEb(h,i,10,0);j=jc;c=g;if((j|0)==-1&(c^-1)>>>0>=b>>>0|(j|0)!=-1)continue;break}b=10;break f}if(b-1&b){g=K[f+2627681|0];if(g>>>0>>0){c=0;while(1){c=P(b,c)+g|0;h=c>>>0<119304647;f=J[a+4>>2];n:{if((f|0)!= +J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break n}f=uf(a)}g=K[f+2627681|0];if(h&g>>>0>>0)continue;break}h=c}if(b>>>0<=g>>>0)break f;while(1){c=vEb(h,i,b,0);j=jc;g=g&255;if((j|0)==-1&(g^-1)>>>0>>0)break f;i=j;h=c+g|0;i=h>>>0>>0?i+1|0:i;f=J[a+4>>2];o:{if((f|0)!=J[a+104>>2]){J[a+4>>2]=f+1;f=K[f|0];break o}f=uf(a)}g=K[f+2627681|0];if(b>>>0<=g>>>0)break f;oi(m,b,0,0,0,h,i,0,0);if(!(J[m+8>>2]|J[m+12>>2]))continue;break}break f}j=H[(P(b,23)>>>5&7)+2627937|0];c=K[f+2627681|0];if(c>>>0>>0){while(1){g= +g<>>0<134217728;c=J[a+4>>2];p:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;f=K[c|0];break p}f=uf(a)}c=K[f+2627681|0];if(h&c>>>0>>0)continue;break}h=g}if(b>>>0<=c>>>0)break f;k=j&31;if((j&63)>>>0>=32){g=0;k=-1>>>k|0}else{g=-1>>>k|0;k=g|(1<>>0>k>>>0)break f;while(1){n=c&255;f=h;c=j&31;if((j&63)>>>0>=32){i=f<>>32-c|i<>2];q:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;f=K[c|0];break q}f=uf(a)}c=K[f+2627681|0];if(b>>>0<=c>>>0)break f;if((i| +0)==(g|0)&h>>>0<=k>>>0|i>>>0>>0)continue;break}}if(K[f+2627681|0]>=b>>>0)break e;while(1){c=J[a+4>>2];r:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break r}c=uf(a)}if(K[c+2627681|0]>>0)continue;break}J[698583]=68;l=d&1?0:l;h=d;i=e}b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;s:{if((e|0)==(i|0)&d>>>0>h>>>0|e>>>0>i>>>0)break s;if(!(l|d&1)){J[698583]=68;a=d;d=a-1|0;e=e-!a|0;break a}if((e|0)==(i|0)&d>>>0>=h>>>0|e>>>0>i>>>0)break s;J[698583]=68;break a}a=h^l;d=a-l|0; +b=l>>31;e=(b^i)-((a>>>0>>0)+b|0)|0}fc=m+16|0;jc=e;return d}function SDb(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;f=fc-80|0;fc=f;if(!(!c|!K[c|0]))rd(205417,0);c=-1;n=CP(205485);a:{if((n|0)<0){rd(205795,0);break a}e=Nba(J[a+16>>2]);if(!e)break a;J[e>>2]=1296647690;c=J[a+16>>2];J[e+4>>2]=c;if((c|0)>0)while(1){c=Dc(36);d=h<<2;J[d+J[e+12>>2]>>2]=c;c=J[d+J[e+12>>2]>>2];d=J[d+J[a+24>>2]>>2];J[c>>2]=J[d>>2];J[c+4>>2]=J[d+4>>2];J[c+8>>2]=J[d+16>>2];J[c+12>>2]=J[d+20>> +2];J[c+16>>2]=J[d+8>>2];J[c+20>>2]=J[d+12>>2];J[c+24>>2]=J[d+24>>2];d=J[d+28>>2];J[c+32>>2]=0;J[c+28>>2]=d;h=h+1|0;if((h|0)>2])continue;break}c=J[b+8>>2];b:{if(c&7)break b;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break b}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)<=0){bd(b,77);break b}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=77}c=J[b+8>>2];c:{if(c&7)break c;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break c}J[b+4>>2]=J[b+4>> +2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)<=0){bd(b,73);break c}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=73}c=J[b+8>>2];d:{if(c&7)break d;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break d}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)<=0){bd(b,70);break d}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=70}c=J[b+8>>2];e:{if(c&7)break e;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break e}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+ +28>>2]=c-1;if((c|0)<=0){bd(b,10);break e}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=10}if(J[e+4>>2]>0){d=0;while(1){c=J[J[e+12>>2]+(d<<2)>>2];i=J[c>>2];g=J[c+4>>2];h=J[c+16>>2];j=J[c+20>>2];l=J[c+8>>2];m=J[c+12>>2];o=J[c+28>>2];J[f+40>>2]=J[c+24>>2];J[f+44>>2]=o;J[f+32>>2]=l;J[f+36>>2]=m;J[f+24>>2]=h;J[f+28>>2]=j;J[f+16>>2]=i;J[f+20>>2]=g;om(b,207111,f+16|0);c=J[c+32>>2];if(c){J[f>>2]=c;om(b,207328,f)}om(b,207537,0);d=d+1|0;if((d|0)>2])continue;break}}om(b,207570,0);f:{c=J[e+ +4>>2];g:{h:{if((c|0)>0){while(1){g=J[J[e+12>>2]+(k<<2)>>2];if(!J[g+32>>2]){j=qF();if(!j){d=0;break f}J[f+48>>2]=0;J[f+52>>2]=0;J[f+56>>2]=J[g+16>>2];J[f+60>>2]=J[g+20>>2];J[f+64>>2]=J[g+8>>2];J[f+68>>2]=J[g+12>>2];c=J[g+24>>2];d=0;J[f+76>>2]=0;J[f+72>>2]=c;if(Gs(j,J[j+16>>2],f+48|0))break f;i=yp(0,0,J[g+8>>2],J[g+12>>2]);if(!i)break f;if(Gk(a,k,0,0,J[g+8>>2],J[g+12>>2],i)){d=i;break f}i:{if(!J[g+28>>2]){c=J[g+12>>2];h=J[g+8>>2];break i}c=J[g+12>>2];h=J[g+8>>2];if((c|0)<=0|(h|0)<=0)break i;l=1<>2]-1;while(1){if((h|0)>0){m=J[i+28>>2];c=0;while(1){h=J[(d-J[i+8>>2]<<2)+m>>2]+(c-J[i+4>>2]<<2)|0;J[h>>2]=J[h>>2]+l;c=c+1|0;h=J[g+8>>2];if((c|0)<(h|0))continue;break}c=J[g+12>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}}if(Fk(j,0,0,0,h,c,i)){d=i;break f}mg(i);d=0;if(DP(j,b,n,0))break f;Mh(j);c=J[e+4>>2]}k=k+1|0;if((k|0)<(c|0))continue;break}d=J[e+12>>2];if(!d)break g;if((c|0)<=0)break h;c=0;while(1){a=J[J[e+12>>2]+(c<<2)>>2];b=J[a+32>>2];if(b)uc(b);uc(a);c=c+1|0;if((c|0)>2])continue;break}d= +J[e+12>>2];break h}d=J[e+12>>2];if(!d)break g}uc(d)}uc(e);c=0;break a}a=J[e+12>>2];if(a){if(J[e+4>>2]>0){c=0;while(1){a=J[J[e+12>>2]+(c<<2)>>2];b=J[a+32>>2];if(b)uc(b);uc(a);c=c+1|0;if((c|0)>2])continue;break}a=J[e+12>>2]}uc(a)}uc(e);if(j)Mh(j);c=-1;if(!d)break a;mg(d)}fc=f+80|0;return c|0}function AI(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;h=J[a>>2];f=J[a+12>>2]<<5;k=h+f|0;q=h-f|0;f=J[a+16>>2];l=J[a+28>>2];m=J[a+20>>2];g=J[a+8>>2];a:{b:{if(b&15|d>>>0<8|k&15){if(f>>> 0>=m>>>0)break a;c:switch(d-1|0){case 0:i=(f^-1)+m|0;h=m-f&3;if(h)while(1){N[(f<<6)+k>>2]=N[(f<<2)+b>>2];f=f+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(i>>>0<3)break a;while(1){N[(f<<6)+k>>2]=N[(f<<2)+b>>2];e=f+1|0;N[(e<<6)+k>>2]=N[(e<<2)+b>>2];e=f+2|0;N[(e<<6)+k>>2]=N[(e<<2)+b>>2];e=f+3|0;N[(e<<6)+k>>2]=N[(e<<2)+b>>2];f=f+4|0;if((m|0)!=(f|0))continue;break}break a;case 1:break c;default:break b}e=f+1|0;i=(c<<2)+b|0;if(m-f&1){h=(f<<6)+k|0;f=f<<2;N[h>>2]=N[f+b>>2];N[h+4>>2]=N[f+i>>2];f=e}if((e| 0)==(m|0))break a;while(1){h=(f<<6)+k|0;e=f<<2;N[h>>2]=N[e+b>>2];N[h+4>>2]=N[e+i>>2];e=f+1|0;h=(e<<6)+k|0;e=e<<2;N[h>>2]=N[e+b>>2];N[h+4>>2]=N[e+i>>2];f=f+2|0;if((m|0)!=(f|0))continue;break}break a}if(f>>>0>=m>>>0)break a;h=(c<<2)+b|0;while(1){i=(f<<6)+k|0;N[i>>2]=N[(f<<2)+b>>2];e=c+f|0;N[i+4>>2]=N[(e<<2)+b>>2];e=c+e|0;N[i+8>>2]=N[(e<<2)+b>>2];e=c+e|0;N[i+12>>2]=N[(e<<2)+b>>2];e=c+e|0;N[i+16>>2]=N[(e<<2)+b>>2];e=c+e|0;N[i+20>>2]=N[(e<<2)+b>>2];e=c+e<<2;N[i+24>>2]=N[e+b>>2];N[i+28>>2]=N[e+h>>2];f= f+1|0;if((m|0)!=(f|0))continue;break}break a}j=(c<<2)+b|0;n=(d|0)==3;p=(d|0)==4;i=(d|0)==5;h=(d|0)==7;while(1){o=(f<<6)+k|0;N[o>>2]=N[(f<<2)+b>>2];e=c+f|0;N[o+4>>2]=N[(e<<2)+b>>2];e=c+e|0;N[o+8>>2]=N[(e<<2)+b>>2];d:{if(n)break d;e=c+e|0;N[o+12>>2]=N[(e<<2)+b>>2];if(p)break d;e=c+e|0;N[o+16>>2]=N[(e<<2)+b>>2];if(i)break d;e=c+e|0;N[o+20>>2]=N[(e<<2)+b>>2];if((d|0)==6)break d;e=c+e<<2;N[o+24>>2]=N[e+b>>2];if(h)break d;N[o+28>>2]=N[e+j>>2]}f=f+1|0;if((m|0)!=(f|0))continue;break}}j=q+32|0;g=(g<<2)+b| 0;b=J[a+24>>2];e:{if(g&15|d>>>0<8|j&15){if(b>>>0>=l>>>0)break e;f:switch(d-1|0){case 0:d=(b^-1)+l|0;a=l-b&3;if(a){c=0;while(1){N[j+(b<<6)>>2]=N[g+(b<<2)>>2];b=b+1|0;c=c+1|0;if((a|0)!=(c|0))continue;break}}if(d>>>0<3)break e;while(1){N[j+(b<<6)>>2]=N[g+(b<<2)>>2];a=b+1|0;N[j+(a<<6)>>2]=N[g+(a<<2)>>2];a=b+2|0;N[j+(a<<6)>>2]=N[g+(a<<2)>>2];a=b+3|0;N[j+(a<<6)>>2]=N[g+(a<<2)>>2];b=b+4|0;if((l|0)!=(b|0))continue;break}break e;case 1:a=b+1|0;d=g+(c<<2)|0;if(l-b&1){c=j+(b<<6)|0;b=b<<2;N[c>>2]=N[b+g>>2];N[c+ 4>>2]=N[b+d>>2];b=a}if((a|0)==(l|0))break e;while(1){c=j+(b<<6)|0;a=b<<2;N[c>>2]=N[a+g>>2];N[c+4>>2]=N[a+d>>2];a=b+1|0;c=j+(a<<6)|0;a=a<<2;N[c>>2]=N[a+g>>2];N[c+4>>2]=N[a+d>>2];b=b+2|0;if((l|0)!=(b|0))continue;break}break e;default:break f}p=g+(c<<2)|0;i=(d|0)==3;h=(d|0)==4;f=(d|0)==5;e=(d|0)==7;while(1){n=j+(b<<6)|0;N[n>>2]=N[g+(b<<2)>>2];a=b+c|0;N[n+4>>2]=N[g+(a<<2)>>2];a=a+c|0;N[n+8>>2]=N[g+(a<<2)>>2];g:{if(i)break g;a=a+c|0;N[n+12>>2]=N[g+(a<<2)>>2];if(h)break g;a=a+c|0;N[n+16>>2]=N[g+(a<<2)>> 2];if(f)break g;a=a+c|0;N[n+20>>2]=N[g+(a<<2)>>2];if((d|0)==6)break g;a=a+c<<2;N[n+24>>2]=N[a+g>>2];if(e)break g;N[n+28>>2]=N[a+p>>2]}b=b+1|0;if((l|0)!=(b|0))continue;break}break e}if(b>>>0>=l>>>0)break e;d=g+(c<<2)|0;while(1){e=j+(b<<6)|0;N[e>>2]=N[g+(b<<2)>>2];a=b+c|0;N[e+4>>2]=N[g+(a<<2)>>2];a=a+c|0;N[e+8>>2]=N[g+(a<<2)>>2];a=a+c|0;N[e+12>>2]=N[g+(a<<2)>>2];a=a+c|0;N[e+16>>2]=N[g+(a<<2)>>2];a=a+c|0;N[e+20>>2]=N[g+(a<<2)>>2];a=a+c<<2;N[e+24>>2]=N[a+g>>2];N[e+28>>2]=N[a+d>>2];b=b+1|0;if((l|0)!=(b| -0))continue;break}}}function g8a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){g=a+1668|0;h=a+1700|0;if(!(!K[h+1160|0]|J[h+1172>>2]!=2)){Fe(h+100|0,h,J[h+1164>>2],J[h+1168>>2]);J[h+1172>>2]=3}Pd(h);e:{if(!J[h+12>>2])break e;J[h+1176>>2]=J[h+84>>2];d=J[g+20>>2];i=J[h+80>>2];a=(J[h+88>>2]-i|0)+2|0;f:{if(a>>>0<=M[g+24>>2])break f;if(d)qc(d);J[g+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[g+20>> -2]=d;if((a|0)==J[g+16>>2])break f;j=J[g+12>>2];if(j){qc(j);d=J[g+20>>2]}J[g+16>>2]=a;v=g,w=rc(a),J[v+12>>2]=w}J[g+28>>2]=d;J[g>>2]=i;J[g+4>>2]=2147483632;a=J[b+8>>2];d=J[J[a+4>>2]>>2];e=O[d>>3];f=e*e;e=O[d+16>>3];f=Y(f+e*e);e=O[d+8>>3];k=e*e;e=O[d+24>>3];k=Y(k+e*e);o=f*k;e=O[a+56>>3];if(o>e){f=f*e/o;k=e*k/(k*f)}f=f<1?1:f;f=O[a+64>>3]*(e=0){d=~~f>>>0;break g}d=0}J[a+40>>2]=d;k=k<1?1:k;e=O[a+72>>3]*(e= -0){d=~~e>>>0;break h}d=0}J[a+44>>2]=d;e=1/o*256+.5;i:{if(e<4294967296&e>=0){d=~~e>>>0;break i}d=0}J[a+48>>2]=d;e=1/k*256+.5;j:{if(e<4294967296&e>=0){d=~~e>>>0;break j}d=0}J[a+52>>2]=d;if(!lg(h,g))break e;while(1){p=J[b>>2];q=J[b+4>>2];t=J[b+8>>2];m=J[g+20>>2];s=J[g+28>>2]-m>>3;r=J[g+8>>2];while(1){a=J[m+12>>2];d=I[m+8>>1];j=I[m+10>>1];i=j>>31;j=(i^j)-i|0;l=J[q+4>>2];k:{if(j>>>0<=l>>>0){i=J[q>>2];break k}i=J[q>>2];n=l;l=j+255&130816;if((n|0)==(l|0))break k;if(i)qc(i);J[q+4>>2]=l;i=rc(l<<2);J[q>>2]= -i}o3(t,i,d,r,j);l:{if(J[p+16>>2]<(r|0)|J[p+8>>2]>(r|0))break l;n=I[m+10>>1]<0;l=n?0:a;u=K[a|0];a=J[p+4>>2];m:{if((d|0)>=(a|0)){a=d;break m}d=a-d|0;j=j-d|0;if((j|0)<=0)break l;l=n?0:d+l|0;i=(d<<2)+i|0}n=J[p>>2];d=J[p+12>>2];if((d|0)<(a+j|0)){d=d-a|0;if((d|0)<0)break l;j=d+1|0}Rg(n,a,r,j,i,l,u)}m=m+8|0;s=s-1|0;if(s)continue;break}if(lg(h,g))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0; -J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2348,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+ -124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2349,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b; -a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function f8a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){g=a+1668|0;h=a+1700|0;if(!(!K[h+1160|0]|J[h+1172>>2]!=2)){Fe(h+100|0,h,J[h+1164>> -2],J[h+1168>>2]);J[h+1172>>2]=3}Pd(h);e:{if(!J[h+12>>2])break e;J[h+1176>>2]=J[h+84>>2];d=J[g+20>>2];i=J[h+80>>2];a=(J[h+88>>2]-i|0)+2|0;f:{if(a>>>0<=M[g+24>>2])break f;if(d)qc(d);J[g+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[g+20>>2]=d;if((a|0)==J[g+16>>2])break f;j=J[g+12>>2];if(j){qc(j);d=J[g+20>>2]}J[g+16>>2]=a;v=g,w=rc(a),J[v+12>>2]=w}J[g+28>>2]=d;J[g>>2]=i;J[g+4>>2]=2147483632;a=J[b+8>>2];d=J[J[a+4>>2]>>2];e=O[d>>3];f=e*e;e=O[d+16>>3];f=Y(f+e*e);e=O[d+8>>3];k=e*e;e=O[d+24>>3];k=Y(k+e*e);o=f* -k;e=O[a+56>>3];if(o>e){f=f*e/o;k=e*k/(k*f)}f=f<1?1:f;f=O[a+64>>3]*(e=0){d=~~f>>>0;break g}d=0}J[a+40>>2]=d;k=k<1?1:k;e=O[a+72>>3]*(e=0){d=~~e>>>0;break h}d=0}J[a+44>>2]=d;e=1/o*256+.5;i:{if(e<4294967296&e>=0){d=~~e>>>0;break i}d=0}J[a+48>>2]=d;e=1/k*256+.5;j:{if(e<4294967296&e>=0){d=~~e>>>0;break j}d=0}J[a+52>>2]=d;if(!lg(h,g))break e;while(1){p=J[b>>2];q=J[b+4>>2];t=J[b+8>>2];m=J[g+20>>2];s=J[g+28>> -2]-m>>3;r=J[g+8>>2];while(1){a=J[m+12>>2];d=I[m+8>>1];j=I[m+10>>1];i=j>>31;j=(i^j)-i|0;l=J[q+4>>2];k:{if(j>>>0<=l>>>0){i=J[q>>2];break k}i=J[q>>2];n=l;l=j+255&130816;if((n|0)==(l|0))break k;if(i)qc(i);J[q+4>>2]=l;i=rc(l<<2);J[q>>2]=i}m3(t,i,d,r,j);l:{if(J[p+16>>2]<(r|0)|J[p+8>>2]>(r|0))break l;n=I[m+10>>1]<0;l=n?0:a;u=K[a|0];a=J[p+4>>2];m:{if((d|0)>=(a|0)){a=d;break m}d=a-d|0;j=j-d|0;if((j|0)<=0)break l;l=n?0:d+l|0;i=(d<<2)+i|0}n=J[p>>2];d=J[p+12>>2];if((d|0)<(a+j|0)){d=d-a|0;if((d|0)<0)break l;j= -d+1|0}Rg(n,a,r,j,i,l,u)}m=m+8|0;s=s-1|0;if(s)continue;break}if(lg(h,g))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2350,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]= -0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]= -0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2351,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function sMa(a,b,c, -d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=+d;e=+e;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,u=0;o=bc-16|0;bc=o;if(J[J[689612]+404>>2]){J[o>>2]=c;vq(786829,o)}m=Ni(J[a+28>>2],c);l=bc-144|0;bc=l;J[l+140>>2]=h;J[l+128>>2]=0;J[l+132>>2]=0;J[l+120>>2]=0;J[l+124>>2]=0;J[l+112>>2]=0;J[l+116>>2]=0;J[l+104>>2]=0;J[l+108>>2]=0;J[l+88>>2]=13;a:{b:{if(gc[J[J[b>>2]+40>>2]](b,m,d,e,f,g,h,-1,-1,-1,-1,i,j,k)|0){a=J[J[m+12>>2]+168>>2]+f|0;f=(a|0)>359?a-360|0:(a|0)<0?a+360|0:a;zY(m,f,g, -gc[J[J[b>>2]+8>>2]](b)|0,l+104|0,l+140|0);a=J[m+12>>2];g=a+32|0;if(J[J[689612]+404>>2]){c=J[m+12>>2];p=O[c>>3];q=O[c+8>>3];r=O[c+16>>3];O[l+72>>3]=O[c+24>>3];O[l- -64>>3]=r;O[l+56>>3]=q;O[l+48>>3]=p;Sy(794002,l+48|0);p=O[a+40>>3];q=O[a+48>>3];r=O[a+32>>3];O[l+40>>3]=O[a+56>>3];O[l+32>>3]=q;O[l+24>>3]=p;O[l+16>>3]=r;Sy(794860,l+16|0);J[l>>2]=J[J[m+12>>2]+168>>2];vq(795761,l)}c=rc(128);a=J[m+12>>2];h=J[a+288>>2];n=J[m+8>>2];s=J[m>>2];a=J[a+280>>2];J[695492]=0;b=Pa(3229,c|0,s|0,b|0,n|0,((a|0)==7?h:0)| -0,+d,+e,l+104|0,(J[l+140>>2]?g:0)|0,f|0,j|0,k|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;a=m+32|0;hf(a,J[m+4>>2],l+88|0,0);if(J[l+88>>2]!=5){c=J[b+8>>2];gc[J[J[c>>2]+64>>2]](c,J[b+28>>2]);t=b,u=Mv(J[b+28>>2]),J[t+28>>2]=u;WA(b,a);c=J[b+28>>2];if(J[c+668>>2])while(1){a=Zl(c);J[b+28>>2]=a;c=J[b+8>>2];gc[J[J[c>>2]+68>>2]](c,a);c=J[b+28>>2];if(J[c+668>>2])continue;break}if(J[J[b+104>>2]+8>>2]>0)while(1){BZ(b,b,b);if(J[J[b+104>>2]+8>>2]>0)continue;break}}f=l+88|0;uc(f);if(J[J[689612]+332>>2]){c= -rc(12);a=J[m>>2];g=J[m+4>>2];J[695492]=0;g=ha(3207,m+16|0,g|0,f|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break b;J[695492]=0;a=ga(3466,c|0,a|0,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;uc(f);c=0;if(J[a+8>>2]>0)while(1){l_(J[J[a+4>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}c:{if(J[a+8>>2]<=0)break c;if(J[J[689612]+404>>2])uF(2182684);if(J[a+8>>2]<=0)break c;c=0;while(1){if(j)if(gc[j|0](k)|0)break c;g=c<<2;f=J[J[g+J[a+4>>2]>>2]+16>>2];d:{e:{if(!sd(f,796900))break e;if(!sd(f, -797589))break e;if(!sd(f,798179))break e;if(!sd(f,799123))break e;if(!sd(f,799913))break e;if(!sd(f,800613))break e;if(!sd(f,801224))break e;if(!sd(f,801836))break e;if(!sd(f,802660))break e;if(!sd(f,803704))break e;if(sd(f,803912))break d}g_(J[g+J[a+4>>2]>>2],b,i)}c=c+1|0;if((c|0)>2])continue;break}}c=0;g=J[a+8>>2];if((g|0)>0)while(1){f=J[J[a+4>>2]+(c<<2)>>2];if(f){qc(EI(f));g=J[a+8>>2]}c=c+1|0;if((g|0)>(c|0))continue;break}c=J[a+4>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1){ea(0)| -0;yc();B()}qc(a)}f:{if(!J[J[689612]+336>>2])break f;n=J[J[J[m>>2]+28>>2]+132>>2];if(!n)break f;if(j)if(gc[j|0](k)|0)break f;k=J[m+8>>2];g=0;c=J[n+32>>2];if(J[c+8>>2]>0)while(1){c=J[J[c>>2]+(g<<2)>>2];h=0;a=bc-48|0;bc=a;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;g:{if(J[Bc(J[c+32>>2],784444,a+32|0,0)>>2]==6){j=J[a+40>>2];if(J[j+12>>2]<=0)break g;while(1){f=a+16|0;jg(j,h,f);hf(f,J[J[J[c>>2]>>2]+24>>2],a,0);$A(c,k,b,i,f,a,807518,0,1);uc(a);uc(f);h=h+1|0;j=J[a+40>>2];if((h|0)>2])continue;break}break g}$A(c, -k,b,i,c+8|0,c+24|0,807518,0,1)}uc(a+32|0);bc=a+48|0;g=g+1|0;c=J[n+32>>2];if((g|0)>2])continue;break}}qc(Vv(b))}bc=l+144|0;break a}a=Z()|0;qc(c);ba(a|0);B()}bc=o+16|0}function tGa(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;d=bc-80|0;bc=d;e=J[J[a+4>>2]+8>>2];if(e){gc[J[J[e>>2]+4>>2]](e);J[J[a+4>>2]+8>>2]=0}e=K[b+11|0];g=e<<24>>24;a:{b:{c:{d:{f=(g|0)<0?J[b+4>>2]:e;c=f+5|0;if(c>>>0<1073741808){e:{if(c>>>0<=1){J[d+72>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;H[d+75|0]=c;e=d- -64|0;break e}e= -c|3;if(e>>>0>=1073741823)break d;h=e+1|0;e=rc(h<<2);J[d+68>>2]=c;J[d+64>>2]=e;J[d+72>>2]=h|-2147483648}c=e;e=f<<2;e=Zc(c,(g|0)<0?J[b>>2]:b,e)+e|0;J[e+20>>2]=0;J[e+16>>2]=J[591026];c=J[591025];J[e+8>>2]=J[591024];J[e+12>>2]=c;c=J[591023];J[e>>2]=J[591022];J[e+4>>2]=c;g=d- -64|4;e=0;f:{g:{h:{i:{j:{k:{l:{while(1){m:{J[695492]=0;c=$(3035,d- -64|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break m;if(!c)break f;c=K[b+11|0];h=c<<24>>24<0;n:{o:{i=h?J[b+4>>2]:c;c=i+4|0;p:{if(c>>>0>=1073741808){J[695492]=0;_(2793, -d+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break p;break a}if(c>>>0<=1){J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;H[d+35|0]=c;f=d+24|0;break n}f=c|3;if(f>>>0<1073741823)break o;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a}e=Z()|0;break b}J[695492]=0;j=f+1|0;f=$(4,j<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break l;J[d+28>>2]=c;J[d+24>>2]=f;J[d+32>>2]=j|-2147483648}c=i<<2;c=Zc(f,h?J[b>>2]:b,c)+c|0;J[c+16>>2]=0;f=J[591031];J[c+8>>2]=J[591030];J[c+12>>2]=f;f=J[591029];J[c>>2]=J[591028]; -J[c+4>>2]=f;J[695492]=0;c=d+12|0;da(2276,c|0,e|0);f=J[695492];J[695492]=0;if((f|0)==1)break k;J[695492]=0;h=c;c=K[d+23|0];f=c<<24>>24<0;c=ga(2794,d+24|0,(f?J[d+12>>2]:h)|0,(f?J[d+16>>2]:c)|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j;J[d+48>>2]=J[c+8>>2];f=J[c+4>>2];J[d+40>>2]=J[c>>2];J[d+44>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[695492]=0;c=aa(2860,d+40|0,2364132)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;h=J[c>>2];J[d+56>>2]=J[c+4>>2];f=K[c+7|0]|K[c+8|0]<<8|(K[c+9|0]<<16|K[c+10|0]<<24); -H[d+59|0]=f;H[d+60|0]=f>>>8;H[d+61|0]=f>>>16;H[d+62|0]=f>>>24;J[c>>2]=0;J[c+4>>2]=0;f=K[c+11|0];J[c+8>>2]=0;if(H[d+75|0]<0)qc(J[d+64>>2]);J[d+64>>2]=h;c=K[d+59|0]|K[d+60|0]<<8|(K[d+61|0]<<16|K[d+62|0]<<24);H[g+3|0]=c;H[g+4|0]=c>>>8;H[g+5|0]=c>>>16;H[g+6|0]=c>>>24;J[g>>2]=J[d+56>>2];H[d+75|0]=f;if(H[d+51|0]<0)qc(J[d+40>>2]);if(H[d+23|0]<0)qc(J[d+12>>2]);if(H[d+35|0]<0)qc(J[d+24>>2]);e=e+1|0;continue}break}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;break g}e=Z()|0;break h}e=Z()|0;if(H[d+51|0]>=0)break h; -qc(J[d+40>>2])}if(H[d+23|0]>=0)break g;qc(J[d+12>>2])}if(H[d+35|0]>=0)break b;qc(J[d+24>>2]);break b}J[695492]=0;$(3039,d- -64|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;b=$(4,16)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2364172;J[b+12>>2]=0;c=b+4|0;q:{r:{s:{if(H[d+75|0]>=0){e=J[d+68>>2];J[c>>2]=J[d+64>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+72>>2];break s}J[695492]=0;ga(1630,c|0,J[d+64>>2],J[d+68>>2])|0;e=J[695492];J[695492]=0;if((e|0)==1)break r}g=K[b+ -15|0];e=g<<24>>24<0;g=e?J[b+8>>2]:g;if(!g)break q;g=g-1|0;if(J[(g<<2)+(e?J[c>>2]:c)>>2]!=47)break q;J[695492]=0;ca(2805,c|0,g|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break q}e=Z()|0;if(H[b+15|0]<0)qc(J[c>>2]);qc(b);break b}J[J[a+4>>2]+8>>2]=b;if(H[d+75|0]<0)qc(J[d+64>>2]);bc=d+80|0;return}Id(d- -64|0);B()}Sd();B()}e=Z()|0}if(H[d+75|0]<0)qc(J[d+64>>2]);ba(e|0);B()}B()}function CA(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;m=bc-16|0;bc=m;c=rc(16);J[695492]=0;k=$(3185,c|0)| -0;d=J[695492];J[695492]=0;a:{b:{c:{if((d|0)!=1){while(1){c=rc(16);J[695492]=0;e=$(3185,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;c=0;d=J[b+8>>2];if((d|0)>0)while(1){f=J[J[b>>2]+(c<<2)>>2];if(!(K[f+88|0]!=(n|0)|(K[f+91|0]?J[a+40>>2]:0)|(K[f+90|0]?J[a+44>>2]:0))){id(e,f);d=J[b+8>>2]}c=c+1|0;if((d|0)>(c|0))continue;break}o=(n<<2)+m|0;J[o>>2]=0;d:{if(J[e+8>>2]<=0)break d;c=n&1;bl(e,c?3482:3481);d=0;i=J[e+8>>2];e:{if(c){if((i|0)<=0)break e;while(1){f=d+1|0;f:{g:{if((f|0)>=(i|0))break g;h=J[J[e>> -2]+(d<<2)>>2];l=O[h+56>>3];g=l*.1;l=l*.2;c=f;while(1){j=J[J[e>>2]+(c<<2)>>2];if(g<=O[j+24>>3]-O[h+24>>3])break g;h:{if(!(!(l>R(O[j+16>>3]-O[h+16>>3]))|J[j>>2]!=J[h>>2]|(!(l>R(O[j+32>>3]-O[h+32>>3]))|!(g>R(O[j+40>>3]-O[h+40>>3]))))){if(!(K[j+91|0]|!K[h+91|0])){cj(e,d);i=J[e+8>>2];break f}if(K[j+92|0])H[h+92|0]=1;cj(e,c);i=J[e+8>>2];break h}c=c+1|0}if((c|0)<(i|0))continue;break}}d=f}if((d|0)<(i|0))continue;break}break e}if((i|0)<=0)break e;while(1){f=d+1|0;i:{j:{if((f|0)>=(i|0))break j;h=J[J[e>>2]+ -(d<<2)>>2];l=O[h+56>>3];g=l*.2;l=l*.1;c=f;while(1){j=J[J[e>>2]+(c<<2)>>2];if(l<=O[j+16>>3]-O[h+16>>3])break j;k:{if(!(!(l>R(O[j+32>>3]-O[h+32>>3]))|J[j>>2]!=J[h>>2]|(!(g>R(O[j+24>>3]-O[h+24>>3]))|!(g>R(O[j+40>>3]-O[h+40>>3]))))){if(!(K[j+91|0]|!K[h+91|0])){cj(e,d);i=J[e+8>>2];break i}if(K[j+92|0])H[h+92|0]=1;cj(e,c);i=J[e+8>>2];break k}c=c+1|0}if((c|0)<(i|0))continue;break}}d=f}if((d|0)<(i|0))continue;break}}d=J[e+8>>2];if(J[a+28>>2]){c=0;if((d|0)<=0)break d;while(1){l:{if(K[J[J[e>>2]+(c<<2)>>2]+ -90|0]){id(k,cj(e,c));d=J[e+8>>2];break l}c=c+1|0}if((c|0)<(d|0))continue;break}}if((d|0)<=0)break d;p=o,q=et(a,e,n),J[p>>2]=q}qc(dd(e));n=n+1|0;if((n|0)!=4)continue;break}b=J[m>>2];m:{if(!b){a=J[m+4>>2];if(a)qc(Vn(a));a=J[m+8>>2];if(a)qc(Vn(a));c=0;a=J[m+12>>2];if(!a)break m;qc(Vn(a));break m}n:{if(!J[b+4>>2]){c=b;break n}c=rc(56);J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c>>2]=1;J[c+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[695492]=0;f=$(4, -16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;d=$(3185,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){d=Z()|0;qc(f);break a}J[c+52>>2]=d;g=O[b+16>>3];o:{if(!J[d+8>>2]){O[c+16>>3]=g;O[c+24>>3]=O[b+24>>3];O[c+32>>3]=O[b+32>>3];O[c+40>>3]=O[b+40>>3];break o}if(g>3])O[c+16>>3]=g;g=O[b+24>>3];if(g>3])O[c+24>>3]=g;g=O[b+32>>3];if(g>O[c+32>>3])O[c+32>>3]=g;g=O[b+40>>3];if(!(g>O[c+40>>3]))break o;O[c+40>>3]=g}id(d,b);J[c+4>>2]=0}b=J[m+4>>2];if(b)AA(a,b,c);b=J[m+8>>2];if(b)AA(a, -b,c);b=J[m+12>>2];if(b)AA(a,b,c);if(!J[k+8>>2])break m;bl(k,3481);if(J[k+8>>2])while(1){b=cj(k,0);p:{q:{if(K[b+88|0])break q;e=ZX(a,b,c);if(!e)break q;id(J[e+52>>2],b);d=J[k+8>>2];if((d|0)<=0)break p;f=0;while(1){i=J[J[k>>2]+(f<<2)>>2];if(O[i+16>>3]>O[b+56>>3]*.5+O[b+32>>3])break q;g=(O[i+24>>3]+O[i+40>>3])*.5;r:{if(!(!(g>O[e+24>>3])|!(g>3]))){b=cj(k,f);id(J[e+52>>2],b);d=J[k+8>>2];break r}f=f+1|0}if((d|0)>(f|0))continue;break}}d=J[k+8>>2]}if(d)continue;break}}qc(dd(k));bc=m+16|0;return c}d= -Z()|0;break a}d=Z()|0;break a}d=Z()|0}qc(c);ba(d|0);B()}function lB(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;a:{if(J[a+292>>2])break a;e=J[a+36>>2];f=J[e+16>>2];if((f-J[e+12>>2]|0)<501|(J[e+20>>2]-f|0)>499)break a;Pg(a)}J[b>>2]=0;b:{c:{d:{e=J[a+36>>2];f=J[e+16>>2];switch(K[f|0]-80|0){case 0:break c;case 3:break d;default:break b}}if(K[f+1|0]!=89|K[f+2|0]!=83|(K[f+3|0]!=84|K[f+4|0]!=69))break b;if(K[f+5|0]!=77)break b;J[a+200>>2]=J[a+200>>2]+6;J[e+16>>2]=f+6;J[e+32>>2]=J[e+32>>2]+ -6;b=K[f+6|0];if((b|0)==37){Od(a);e=J[a+36>>2];b=K[J[e+16>>2]]}e:{if(b&255)break e;if((Cd(e)|0)>0)break e;ze(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))fe(a,65,38005);Ud(a);j=r$(a);if(j)break b;Pe(a,70,0);return 0}if(K[f+1|0]!=85|K[f+2|0]!=66|(K[f+3|0]!=76|K[f+4|0]!=73))break b;if(K[f+5|0]!=67)break b;J[a+200>>2]=J[a+200>>2]+6;J[e+16>>2]=f+6;J[e+32>>2]=J[e+32>>2]+6;f=K[f+6|0];if((f|0)==37){Od(a);e=J[a+36>>2];f=K[J[e+16>>2]]}f:{if(f&255)break f;if((Cd(e)|0)>0)break f;ze(a)}f=K[J[J[a+ -36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))fe(a,65,38067);Ud(a);f=b;e=0;h=bc-48|0;bc=h;d=a;o=J[d+172>>2];g:{if(J[d+292>>2])break g;b=J[d+36>>2];a=J[b+16>>2];if((a-J[b+12>>2]|0)<501|(J[b+20>>2]-a|0)>499)break g;Pg(d)}h:{i:{j:{k:{i=K[J[J[d+36>>2]+16>>2]];switch(i-34|0){case 0:break i;case 5:break j;default:break k}}if(!(!J[d+212>>2]|J[d+172>>2]!=-1)){a=0;break h}J[d+84>>2]=43;J[h>>2]=16061;a=0;Cc(0,0,0,d,0,1,43,3,0,0,0,0,32890,h);J[d+12>>2]=0;if(J[d+288>>2])break h;J[d+212>>2]=1;break h}i=39}Qd(d); -b=gc[J[659450]](100)|0;if(!b){a=0;ke(d,0);break h}J[d+172>>2]=16;g=K[J[J[d+36>>2]+16>>2]];n=(i|0)!=(g|0);l:{if((g|0)==(i|0)){a=b;break l}if(!K[g+768352|0]){a=b;break l}k=100;while(1){m:{l=e+1|0;if((l|0)<(k|0)){a=b;break m}if(!(K[d+362|0]&8|(k|0)<50001)){n:{if(J[d+172>>2]==-1?J[d+212>>2]:0)break n;J[d+84>>2]=110;J[h+36>>2]=21467;J[h+32>>2]=6556;Cc(0,0,0,d,0,1,110,3,21467,0,0,0,32761,h+32|0);J[d+12>>2]=0;if(J[d+288>>2])break n;J[d+212>>2]=1}a=0;gc[J[659451]](b);break h}k=k<<1;a=gc[J[659452]](b,k)|0; -if(a)break m;a=0;ke(d,0);gc[J[659451]](b);break h}H[a+e|0]=g;o:{if((m|0)<50){m=m+1|0;break o}p:{if(J[d+292>>2])break p;b=J[d+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break p;Hd(d)}m=0;if(J[d+172>>2]!=-1)break o;gc[J[659451]](a);a=0;break h}Qd(d);e=J[d+36>>2];b=J[e+16>>2];g=K[b|0];if(!g){q:{if(J[d+292>>2])break q;if((J[e+20>>2]-b|0)<=249){Hd(d);e=J[d+36>>2];if(J[d+292>>2])break q}b=J[e+16>>2];if((b-J[e+12>>2]|0)<501|(J[e+20>>2]-b|0)>499)break q;Pg(d);e=J[d+36>>2]}g=K[J[e+16>>2]]}n=(g|0)!=(i|0);if((g| -0)==(i|0))break l;b=a;e=l;if(K[g+768352|0])continue;break}}H[a+l|0]=0;r:{if(n){if(J[d+172>>2]==-1?J[d+212>>2]:0)break r;J[d+84>>2]=44;J[h+16>>2]=16091;Cc(0,0,0,d,0,1,44,3,0,0,0,0,32890,h+16|0);J[d+12>>2]=0;if(J[d+288>>2])break r;J[d+212>>2]=1;break r}Qd(d)}J[d+172>>2]=o}bc=h+48|0;J[f>>2]=a;if(!a)Pe(d,71,0);s:{if(c){a=K[J[J[d+36>>2]+16>>2]]-9|0;if(1<>>0<=23:0)break s;fe(d,65,33062);break s}a=J[d+36>>2];if(!(J[d+292>>2]|(J[a+20>>2]-J[a+16>>2]|0)>249)){Hd(d);a=J[d+36>>2]}a=J[a+16>>2];b= -K[a|0];c=b-9|0;if(c>>>0>23|!(1<>>0>30)break b;b=1<>2];g=g*6;j=g*.5;k=j*f;l=g*e+c;O[i+80>>3]=k+l;n=-j;o=n*e;g=g*f+d;O[i+88>>3]=o+g;Xc(b,806781,i+80|0);b=J[a+40>>2];O[i+72>>3]=o+d;O[i+64>>3]=k+c;Xc(b,807228,i- --64|0);b=J[a+40>>2];e=j*e;O[i+56>>3]=e+d;d=n*f;O[i+48>>3]=d+c;Xc(b,807228,i+48|0);b=J[a+40>>2];O[i+40>>3]=e+g;O[i+32>>3]=d+l;Xc(b,807228,i+32|0);od(J[a+40>>2],h?817779:818059);break a;case 1:g=g*6*.5;c=g*e+c;b=bc-224|0;bc=b;m=J[a+40>>2];d=g*f+d;O[b+216>>3]=d;e=c+g;O[b+208>>3]=e;Xc(m,806781,b+208|0);m=J[a+40>>2];f=d+g;O[b+200>>3]=f;O[b+192>>3]=c;O[b+184>>3]=f;j=g*.55228475;k=j+c;O[b+176>>3]=k;l=j+d;O[b+168>>3]=l;O[b+160>>3]=e;Xc(m,818805,b+160|0);m=J[a+40>>2];O[b+152>>3]=d;j=c-g;O[b+144>>3]=j;O[b+ -136>>3]=l;O[b+128>>3]=j;O[b+120>>3]=f;l=g*-.55228475;n=l+c;O[b+112>>3]=n;Xc(m,818805,b+112|0);m=J[a+40>>2];f=d-g;O[b+104>>3]=f;O[b+96>>3]=c;O[b+88>>3]=f;O[b+80>>3]=n;c=l+d;O[b+72>>3]=c;O[b+64>>3]=j;Xc(m,818805,b- -64|0);m=J[a+40>>2];O[b+56>>3]=d;O[b+48>>3]=e;O[b+40>>3]=c;O[b+32>>3]=e;O[b+24>>3]=f;O[b+16>>3]=k;Xc(m,818805,b+16|0);a=J[a+40>>2];J[b>>2]=h?818227:818351;Xc(a,819124,b);bc=b+224|0;break a;case 2:b=J[a+40>>2];O[i+144>>3]=c;O[i+152>>3]=d;Xc(b,806781,i+144|0);b=J[a+40>>2];g=g*6;k=g*.5;j=k* -e;k=k*f;l=k+d;O[i+136>>3]=j+l;n=j+c;O[i+128>>3]=n-k;Xc(b,807228,i+128|0);b=J[a+40>>2];O[i+120>>3]=g*f+d;O[i+112>>3]=g*e+c;Xc(b,807228,i+112|0);b=J[a+40>>2];O[i+104>>3]=l-j;O[i+96>>3]=k+n;Xc(b,807228,i+96|0);od(J[a+40>>2],h?817779:818059);break a;case 3:b=J[a+40>>2];g=g*10;j=g*.8660254037844387;k=j*f+d;g=g*.49999999999999994;l=g*e;O[i+200>>3]=k-l;f=g*f;e=j*e+c;O[i+192>>3]=f+e;Xc(b,806781,i+192|0);b=J[a+40>>2];O[i+184>>3]=d;O[i+176>>3]=c;Xc(b,807228,i+176|0);b=J[a+40>>2];O[i+168>>3]=l+k;O[i+160>>3]= -e-f;Xc(b,807228,i+160|0);od(J[a+40>>2],802489);break a;case 4:b=J[a+40>>2];g=g*10;j=g*.8660254037844387;k=j*f+d;g=g*.49999999999999994;l=g*e;O[i+248>>3]=k-l;f=g*f;e=j*e+c;O[i+240>>3]=f+e;Xc(b,806781,i+240|0);b=J[a+40>>2];O[i+232>>3]=d;O[i+224>>3]=c;Xc(b,807228,i+224|0);b=J[a+40>>2];O[i+216>>3]=l+k;O[i+208>>3]=e-f;Xc(b,807228,i+208|0);od(J[a+40>>2],h?817779:818059);break a;case 5:b=J[a+40>>2];g=g*6*.5;e=g*e;O[i+280>>3]=d-e;f=g*f;O[i+272>>3]=f+c;Xc(b,806781,i+272|0);b=J[a+40>>2];O[i+264>>3]=e+d;O[i+ -256>>3]=c-f;Xc(b,807228,i+256|0);od(J[a+40>>2],802489);break a;case 6:b=J[a+40>>2];g=g*10;j=g*.49999999999999994;k=j*e;O[i+328>>3]=d-k;j=j*f;O[i+320>>3]=j+c;Xc(b,806781,i+320|0);b=J[a+40>>2];g=g*.8660254037844387;O[i+312>>3]=g*f+d;O[i+304>>3]=g*e+c;Xc(b,807228,i+304|0);b=J[a+40>>2];O[i+296>>3]=k+d;O[i+288>>3]=c-j;Xc(b,807228,i+288|0);od(J[a+40>>2],802489);break a;case 7:b=J[a+40>>2];g=g*10;j=g*.49999999999999994;k=j*e;O[i+376>>3]=d-k;j=j*f;O[i+368>>3]=j+c;Xc(b,806781,i+368|0);b=J[a+40>>2];g=g*.8660254037844387; -O[i+360>>3]=g*f+d;O[i+352>>3]=g*e+c;Xc(b,807228,i+352|0);b=J[a+40>>2];O[i+344>>3]=k+d;O[i+336>>3]=c-j;Xc(b,807228,i+336|0);od(J[a+40>>2],h?817779:818059);break a;case 8:break b;default:break a}b=J[a+40>>2];g=g*6*.5;j=g*.8660254037844387;k=j*e;g=g*.49999999999999994;l=g*f;O[i+24>>3]=d-k-l;f=j*f;e=g*e;O[i+16>>3]=f+c-e;Xc(b,806781,i+16|0);b=J[a+40>>2];O[i+8>>3]=l+(k+d);O[i>>3]=e+(c-f);Xc(b,807228,i);od(J[a+40>>2],802489)}bc=i+384|0}function xNa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;J[c+ -16>>2]=13;J[c>>2]=13;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;a:{if(J[b+12>>2]<=1){xc(0,-1,795057,0);break a}jg(b,0,c+16|0);b:{c:{d:switch(J[c+16>>2]-1|0){case 8:J[a+8>>2]=J[c+24>>2];J[a+12>>2]=J[c+28>>2];f=1;break c;default:xc(0,-1,795952,0);break b;case 0:break d}J[a+8>>2]=J[c+24>>2]+1}J[a+4>>2]=f;d=c+16|0;uc(d);Mc(b,1,d,0);e:{f:{g:{h:{if(J[c+16>>2]!= -4)break h;d=J[c+24>>2];if(!Ec(d,796964)){J[a>>2]=0;i:{j:{k:{l:{if(J[b+12>>2]<=2){J[a+56>>2]=0;break l}Mc(b,2,c,0);d=J[c>>2];m:{if((d|0)==5){J[a+56>>2]=0;break m}if(d-3>>>0<4294967294)break e;J[a+56>>2]=1;O[a+16>>3]=(d|0)==1?+J[c+8>>2]:O[c+8>>3]}uc(c);if(J[b+12>>2]>3)break k}J[a+60>>2]=0;break j}Mc(b,3,c,0);d=J[c>>2];n:{if((d|0)==5){J[a+60>>2]=0;break n}if(d-3>>>0<4294967294)break e;J[a+60>>2]=1;O[a+40>>3]=(d|0)==1?+J[c+8>>2]:O[c+8>>3]}uc(c);if(J[b+12>>2]>4)break i}J[a+64>>2]=0;break f}Mc(b,4,c,0); -b=J[c>>2];if((b|0)==5){J[a+64>>2]=0;uc(c);break f}if(b-3>>>0<4294967294)break e;J[a+64>>2]=1;O[a+48>>3]=(b|0)==1?+J[c+8>>2]:O[c+8>>3];uc(c);break f}if(!Ec(d,798268)){if(J[b+12>>2]>1)break g;xc(0,-1,795057,0);break b}if(!Ec(d,799389)){if(J[b+12>>2]<=2){xc(0,-1,795057,0);break b}J[a>>2]=2;d=Mc(b,2,c,0);b=J[c>>2];if(J[d>>2]-3>>>0>=4294967294){e=O[c+8>>3];d=J[c+8>>2];J[a+60>>2]=1;O[a+40>>3]=(b|0)==1?+(d|0):e;uc(c);break f}if((b|0)==5){J[a+60>>2]=0;uc(c);break f}xc(0,-1,797665,0);J[a>>2]=1;uc(c);break f}if(!Ec(d, -799929)){if(J[b+12>>2]<=2){xc(0,-1,795057,0);break b}J[a>>2]=3;d=Mc(b,2,c,0);b=J[c>>2];if(J[d>>2]-3>>>0>=4294967294){e=O[c+8>>3];d=J[c+8>>2];J[a+56>>2]=1;O[a+16>>3]=(b|0)==1?+(d|0):e;uc(c);break f}if((b|0)==5){J[a+56>>2]=0;uc(c);break f}xc(0,-1,797665,0);J[a>>2]=1;uc(c);break f}if(!Ec(d,800679)){if(J[b+12>>2]<=5){xc(0,-1,795057,0);break b}J[a>>2]=4;o:{if(J[Mc(b,2,c,0)>>2]-3>>>0>=4294967294){O[a+16>>3]=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];break o}xc(0,-1,797665,0);J[a>>2]=1}uc(c);if(J[Mc(b,3,c,0)>>2]-3>>> -0<=4294967293){xc(0,-1,797665,0);J[a>>2]=1}O[a+24>>3]=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(b,4,c,0)>>2]-3>>>0<=4294967293){xc(0,-1,797665,0);J[a>>2]=1}O[a+32>>3]=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);if(J[Mc(b,5,c,0)>>2]-3>>>0<=4294967293){xc(0,-1,797665,0);J[a>>2]=1}O[a+40>>3]=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];uc(c);break f}if(!Ec(d,801537)){if(J[b+12>>2]<=1){xc(0,-1,795057,0);break b}J[a>>2]=5;break f}if(!Ec(d,802406)){if(J[b+12>>2]<=2){xc(0,-1,795057,0);break b}J[a>>2]=6;d=Mc(b,2,c,0);b= -J[c>>2];if(J[d>>2]-3>>>0>=4294967294){e=O[c+8>>3];d=J[c+8>>2];J[a+60>>2]=1;O[a+40>>3]=(b|0)==1?+(d|0):e;uc(c);break f}if((b|0)==5){J[a+60>>2]=0;uc(c);break f}xc(0,-1,797665,0);J[a>>2]=1;uc(c);break f}if(Ec(d,802809))break h;if(J[b+12>>2]<=2){xc(0,-1,795057,0);break b}J[a>>2]=7;d=Mc(b,2,c,0);b=J[c>>2];if(J[d>>2]-3>>>0>=4294967294){e=O[c+8>>3];d=J[c+8>>2];J[a+56>>2]=1;O[a+16>>3]=(b|0)==1?+(d|0):e;uc(c);break f}if((b|0)==5){J[a+56>>2]=0;uc(c);break f}xc(0,-1,797665,0);J[a>>2]=1;uc(c);break f}xc(0,-1, -803282,0);break b}J[a>>2]=1}uc(c+16|0);J[a+68>>2]=1;break a}xc(0,-1,797665,0);uc(c)}uc(c+16|0)}bc=c+32|0;return a|0}function tya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-32|0;bc=d;h=J[b>>2];c=J[a>>2];e=c;a:{b:{c:{d:{if(J[c+148>>2]&16){if(J[c+148>>2]&128){e=J[c+40>>2];if(e)break d}if(J[c+148>>2]&16)break c;break b}e=J[e+40>>2];if(!e)break b}if(!(gc[J[J[e>>2]+28>>2]](e)|0))break b;if(gc[J[J[h>>2]+16>>2]](h)|0)gc[J[J[h>>2]+12>>2]](h,2378639,1)|0;b=J[J[a>>2]+40>>2];gc[J[J[b>>2]+20>>2]](b, -0,0,0)|0;CV(h,J[J[a>>2]+40>>2],0);break b}e=d+24|0;Nm(e,J[J[a>>2]+108>>2]);J[695492]=0;da(5108,d+20|0,e|0);e=J[695492];J[695492]=0;e:{f:{g:{if((e|0)!=1){J[695492]=0;e=J[d+20>>2];J[d+12>>2]=0;J[d+16>>2]=J[682146];c=ha(5109,e|0,d+12|0,0,0)|0;f=J[695492];J[695492]=0;h:{if((f|0)==1)break h;i:{if(!c)break i;j:{k:{l:{m:{n:{while(1){J[695492]=0;c=d+12|0;f=ha(5109,e|0,c|0,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break g;if(!f)break i;J[695492]=0;f=fd(c,2404416,-1);g=J[695492];J[695492]=0;if((g|0)==1)break g; -o:{p:{if(f){J[695492]=0;c=fd(c,2404421,-1);f=J[695492];J[695492]=0;if((f|0)==1)break g;if(c)break p}c=J[J[h>>2]+16>>2];J[695492]=0;c=$(c|0,h|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;if(c){c=J[J[h>>2]+12>>2];J[695492]=0;ga(c|0,h|0,2378639,1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g}J[695492]=0;da(5108,d+8|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break o;c=J[d+12>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;f=J[d+8>>2];ca(5160,f|0,c|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]= -0;J[d+4>>2]=0;aa(4985,d+4|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break m;J[695492]=0;c=J[d+4>>2];J[d+28>>2]=0;aa(4985,d+28|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break l;J[695492]=0;ga(5165,J[d+28>>2],c|0,0)|0;c=J[695492];J[695492]=0;q:{if((c|0)!=1){c=J[d+28>>2];J[d+28>>2]=0;if(!c)break q;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)!=1){if(g)break q;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break q}break a}e=Z()|0;vc(d+28|0);break k}c=J[d+ -4>>2];J[d+4>>2]=0;r:{if(!c)break r;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(g)break r;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;_(5162,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break n;c=J[d+8>>2];J[d+8>>2]=0;if(!c)break p;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break p;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}J[695492]=0;_(5162,e|0);c=J[695492]; -J[695492]=0;if((c|0)!=1)continue;break g}break}e=Z()|0;break f}e=Z()|0;break j}e=Z()|0;break j}e=Z()|0}vc(d+4|0)}vc(d+8|0);break f}a=J[J[a>>2]+108>>2];J[695492]=0;da(5099,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break h;sc(d+12|0);a=J[d+20>>2];J[d+20>>2]=0;s:{if(!a)break s;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(b)break s;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[d+24>>2];J[d+24>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>> -2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}e=Z()|0;break f}e=Z()|0;break e}e=Z()|0}sc(d+12|0);vc(d+20|0)}vc(d+24|0);ba(e|0);B()}bc=d+32|0;return}ea(0)|0;yc();B()}function lx(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;h=bc-48|0;bc=h;i=J[a+11748>>2]==2;k=i?a+11760|0:a+11776|0;m=J[k+4>>2];s=1;j=(i?11760:11776)+a|0;o=J[j>>2];n=J[c>>2];g=J[c+4>>2];a:{if(!((o|0)!= -(n|0)|(g|0)!=(m|0))){i=0;break a}t=i?a+11752|0:a+11768|0;p=J[t+4>>2];q=o;o=(i?11752:11768)+a|0;i=J[o>>2];u=(e-g|0)+16>>5;q=Pc((q-i|0)+16>>5,u);r=(m-p|0)+16>>5;m=(d-n|0)+16>>5;r=Pc(r,m);if((q|0)==(r|0)){i=0;break a}l=td(Pc((n-i|0)+16>>5,u)-Pc((g-p|0)+16>>5,m)|0,q-r|0);i=J[o>>2];i=Pc(l,J[j>>2]-i|0)+i|0;m=J[t+4>>2];n=Pc(l,J[k+4>>2]-m|0);l=J[o>>2];p=J[j>>2];if((l|0)==(p|0)){o=i-l|0;g=o>>31;i=J[a+11700>>2]>((g^o)-g|0)?l:i}l=m+n|0;g=J[t+4>>2];m=J[k+4>>2];if((g|0)==(m|0)){n=l-g|0;k=n>>31;l=J[a+11700>>2]> -((k^n)-k|0)?g:l}k=J[c>>2];if((k|0)==(d|0)){n=i-d|0;g=n>>31;i=J[a+11700>>2]>((g^n)-g|0)?d:i}g=J[c+4>>2];if((g|0)==(e|0)){n=l-e|0;d=n>>31;l=J[a+11700>>2]>((d^n)-d|0)?e:l}e=((k+p|0)/-2|0)+i|0;d=e>>31;d=(d^e)-d|0;e=J[a+11696>>2];if((d|0)>(e|0))break a;g=((g+m|0)/-2|0)+l|0;d=g>>31;if((e|0)<((d^g)-d|0))break a;J[j>>2]=i;J[j+4>>2]=l;s=0}e=J[a+11732>>2];d=J[a+11728>>2];J[h+8>>2]=d;J[h+12>>2]=e;b:{c:{d:switch(J[a+11748>>2]-2|0){case 0:j=d;J[h+40>>2]=2;e:{if(f){d=J[a+11764>>2];k=Pc(J[a+11644>>2],J[a+11760>> -2]);m=Pc(J[a+11648>>2],d);g=pm(a+3876|0,d);d=k+m|0;k=(Pc(J[J[a>>2]+64>>2],d)+Pc(J[J[a>>2]+72>>2],g)|0)+J[a+11656>>2]|0;break e}d=J[a+11764>>2];k=Pc(J[a+11644>>2],J[a+11760>>2]);m=Pc(J[a+11648>>2],d);g=pm(b,d);d=k+m|0;k=(Pc(J[J[a>>2]+64>>2],d)+Pc(J[J[a>>2]+72>>2],g)|0)+J[a+11656>>2]|0}J[h+16>>2]=k;d=(Pc(J[J[a>>2]+68>>2],d)+Pc(J[J[a>>2]+76>>2],g)|0)+J[a+11660>>2]|0;J[h+20>>2]=d;if((j|0)==(k|0)&(d|0)==(e|0))break b;e=J[a+4>>2];g=e+4|0;d=h+16|0;break c;case 2:break d;default:break b}J[h+40>>2]=4;d=J[a+ -11764>>2];e=Pc(J[a+11644>>2],J[a+11760>>2]);j=Pc(J[a+11648>>2],d);d=pm(b,d);e=e+j|0;v=h,w=(Pc(J[J[a>>2]+64>>2],e)+Pc(J[J[a>>2]+72>>2],d)|0)+J[a+11656>>2]|0,J[v+16>>2]=w;e=Pc(J[J[a>>2]+68>>2],e)+Pc(J[J[a>>2]+76>>2],d)|0;d=a+11660|0;J[h+20>>2]=e+J[d>>2];e=J[a+11772>>2];j=Pc(J[a+11644>>2],J[a+11768>>2]);g=Pc(J[a+11648>>2],e);e=pm(b,e);j=g+j|0;v=h,w=(Pc(J[J[a>>2]+64>>2],j)+Pc(J[J[a>>2]+72>>2],e)|0)+J[a+11656>>2]|0,J[v+24>>2]=w;v=h,w=(Pc(J[J[a>>2]+68>>2],j)+Pc(J[J[a>>2]+76>>2],e)|0)+J[d>>2]|0,J[v+28>> -2]=w;e=J[a+11780>>2];j=Pc(J[a+11644>>2],J[a+11776>>2]);g=Pc(J[a+11648>>2],e);e=pm(b,e);j=g+j|0;v=h,w=(Pc(J[J[a>>2]+64>>2],j)+Pc(J[J[a>>2]+72>>2],e)|0)+J[a+11656>>2]|0,J[v+32>>2]=w;v=h,w=(Pc(J[J[a>>2]+68>>2],j)+Pc(J[J[a>>2]+76>>2],e)|0)+J[d>>2]|0,J[v+36>>2]=w;e=J[a+4>>2];g=e+12|0;d=h+32|0}gc[J[g>>2]](e,h+8|0);e=J[d+4>>2];J[a+11728>>2]=J[d>>2];J[a+11732>>2]=e}f:{if(!(f|s))break f;g:{if(f){b=J[c+4>>2];f=Pc(J[a+11644>>2],J[c>>2])+Pc(J[a+11648>>2],b)|0;b=pm(a+3876|0,b);break g}d=J[c+4>>2];f=Pc(J[a+11644>> -2],J[c>>2])+Pc(J[a+11648>>2],d)|0;b=pm(b,d)}v=h,w=(Pc(J[J[a>>2]+64>>2],f)+Pc(J[J[a>>2]+72>>2],b)|0)+J[a+11656>>2]|0,J[v+16>>2]=w;b=(Pc(J[J[a>>2]+68>>2],f)+Pc(J[J[a>>2]+76>>2],b)|0)+J[a+11660>>2]|0;J[h+20>>2]=b;if(J[h+16>>2]==J[a+11728>>2]&(b|0)==J[a+11732>>2])break f;J[h+40>>2]=2;b=J[a+11732>>2];J[h+8>>2]=J[a+11728>>2];J[h+12>>2]=b;b=J[a+4>>2];gc[J[b+4>>2]](b,h+8|0);b=J[h+20>>2];J[a+11728>>2]=J[h+16>>2];J[a+11732>>2]=b}if(!s){J[c>>2]=i;J[c+4>>2]=l}bc=h+48|0}function aXa(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=Q(0),n=0,o=0,p=0,q=0,r=0,s=0,t=Q(0);f=bc-384|0;bc=f;a:{if(!(K[a+220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))){d=J[a+104>>2];gc[J[J[d>>2]+132>>2]](d,f+380|0)|0;uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);p=O[b+392>>3];d=J[a+104>>2];gc[J[J[d>>2]+136>>2]](d,826988)|0;j=O[c+216>>3];o=O[c+224>>3];q=O[c+200>>3];r=O[c+208>>3];s=O[c+184>>3];N[f+20>>2]=O[c+192>>3]/72*25.4;N[f+16>>2]=s/72*25.4;N[f+8>>2]=r/72*25.4;N[f+4>>2]=q/72*25.4;m=Q(j);i=J[c+364>>2]!=0;g=J[c+368>>2]!=0;k= -bc-32|0;bc=k;e=f+144|0;d=e;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=1065353216;J[d+32>>2]=0;J[d+36>>2]=0;J[d+76>>2]=0;J[d+80>>2]=1;J[d+68>>2]=0;J[d+72>>2]=0;J[d+60>>2]=1056964608;J[d+64>>2]=1065353216;I[d+56>>1]=0;J[d+48>>2]=1065353216;J[d+52>>2]=1065353216;J[d+8>>2]=0;J[d+12>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+84>>2]=1;h=d+88|0;d=h;J[d>>2]=0;J[d+4>>2]=0;J[e+96>>2]=0;J[e+100>>2]=0;J[e+104>>2]=0;J[e+108>>2]=0;J[e+120>>2]=0;J[e+124>>2]=0;J[e+128>>2]=0;J[e+132>>2]=0;J[e+136>>2]=0;J[e+140>>2]=0; -J[695492]=0;d=$(4,24)|0;l=J[695492];J[695492]=0;if((l|0)==1){a=Z()|0;$j(h);ba(a|0);B()}h=d+24|0;J[e+140>>2]=h;J[e+132>>2]=d;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[e+136>>2]=h;wc(e+148|0,0,88);J[e+80>>2]=1;J[e+84>>2]=1;N[e+76>>2]=g>>>0;N[e+72>>2]=i>>>0;J[695492]=0;h=Ka(3235,k|0,256,Q(m),Q(Q(o)))|0;d=J[695492];J[695492]=0;b:{if((d|0)!=1){J[e+88>>2]=J[h>>2];d=J[e+92>>2];if(d){g=d;i=J[e+96>>2];if((d|0)!=(i|0)){while(1){g=i-12|0;l=J[g>>2];if(l){J[i-8>>2]=l;qc(l)}i=g; -if((d|0)!=(g|0))continue;break}g=J[e+92>>2]}J[e+96>>2]=d;qc(g);J[e+100>>2]=0;J[e+92>>2]=0;J[e+96>>2]=0}J[e+92>>2]=J[h+4>>2];J[e+96>>2]=J[h+8>>2];J[e+100>>2]=J[h+12>>2];d=J[h+20>>2];J[e+104>>2]=J[h+16>>2];J[e+108>>2]=d;d=J[h+28>>2];J[e+112>>2]=J[h+24>>2];J[e+116>>2]=d;H[e+144|0]=1;d=J[f+20>>2];J[e+148>>2]=J[f+16>>2];J[e+152>>2]=d;d=J[f+8>>2];J[e+156>>2]=J[f+4>>2];J[e+160>>2]=d;bc=k+32|0;break b}a=Z()|0;Qe(e+80|0);ba(a|0);B()}d=J[f+232>>2];if(d){t=Q((o-j)/+(d>>>0));i=J[c+8>>2];j=p*255;c:{if(R(j)<2147483648){d= -~~j;break c}d=-2147483648}while(1){J[695492]=0;g=f+16|0;hb(3234,c|0,+m,g|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[J[i>>2]+20>>2];J[695492]=0;ia(e|0,i|0,g|0,f+4|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[J[i>>2]+16>>2];J[695492]=0;ia(e|0,i|0,g|0,f|0,0);g=J[695492];J[695492]=0;if((g|0)==1)break a;e=J[f+12>>2];h=J[f+8>>2];k=J[f+4>>2];g=J[J[f+236>>2]>>2]+(n<<2)|0;H[g+3|0]=d;H[g+2|0]=P(k,255)+32768>>>16;H[g+1|0]=P(h,255)+32768>>>16;H[g|0]=P(e,255)+32768>>>16;m=Q(m+t);n=n+1|0;if(n>>> -0>2])continue;break}}c=J[a+104>>2];d=ik(c,340356,340368);if(d){c=J[J[d>>2]+596>>2];J[695492]=0;da(c|0,d|0,f+144|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[a+104>>2];d=J[J[c>>2]+348>>2];J[695492]=0;aa(d|0,c|0,826956)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[a+104>>2]}J[f+16>>2]=4;d=J[J[c>>2]+312>>2];J[695492]=0;aa(d|0,c|0,f+16|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;a=J[a+104>>2];c=J[J[a>>2]+136>>2];J[695492]=0;aa(c|0,a|0,f+380|0)|0;a=J[695492];J[695492]=0;if((a| -0)==1)break a;J[695492]=0;_(3232,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;Qe(f+224|0)}bc=f+384|0;return 1}a=Z()|0;Qe(f+224|0);ba(a|0);B()}function Wpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+300|0]|K[a+293|0]|(K[a+292|0]|K[a+291|0]))break b;d:{e:{f:{g:{g=K[a+286|0];if(!g){f=K[a+287|0];if(!f){if(!(K[a+288|0]|K[a+289|0]))break g;if((c|0)!=32)break a; -if(f)break e;break f}if((c|0)!=32)break a;break e}if((c|0)==32)break e;break a}if(!(c&-33))break f;break a}if(K[a+288|0]|K[a+289|0])break e;H[a+309|0]=(c|0)!=0;break d}H[a+296|0]=1}f=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);i=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);j=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+16|0]|K[d+17|0]<<8|(K[d+ -18|0]<<16|K[d+19|0]<<24);k=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);l=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);m=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);n=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);o=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);h:{i:{j:{if(!(K[a+288|0]|(K[a+287|0]|g)))if(!K[a+289|0])break j; -k:{if(!K[a+288|0]){f=J[a+512>>2];if(f)break k}f=J[a+528>>2]}f=J[f+88>>2];J[f+1136>>2]=h;J[f+1132>>2]=i;J[f+1128>>2]=j;J[f+1124>>2]=k;J[f+1120>>2]=l;J[f+1116>>2]=m;J[f+1112>>2]=n;J[f+1108>>2]=o;H[f+58|0]=1;break i}if(c){J[a+2224>>2]=h;J[a+2220>>2]=i;J[a+2216>>2]=j;J[a+2212>>2]=k;J[a+2208>>2]=l;J[a+2204>>2]=m;J[a+2200>>2]=n;J[a+2196>>2]=o}f=0;l:{if(!K[a+114|0])break l;p=!c;f=gc[J[a+152>>2]](64)|0;if(!f){Dc(a,1,0,0);f=1;break l}J[f+4>>2]=1032;J[f>>2]=1033;g=J[a+700>>2];m:{if(g){J[g+8>>2]=f;break m}J[a+ -696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+60>>2]=h;J[f+56>>2]=i;J[f+52>>2]=j;J[f+48>>2]=k;J[f+44>>2]=l;J[f+40>>2]=m;J[f+36>>2]=n;J[f+32>>2]=o;H[f+28|0]=p;f=0}if(f)break h}n:{if(!K[a+112|0])break n;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break h;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break n;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280| -b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+44>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[a+48>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[a+52>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);J[a+56>>2]=b<<24|(b& -65280)<<8|(b>>>8&65280|b>>>24);b=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);J[a+60>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);J[b+64>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}f=0}return f|0}Dc(a,1029,0,0);return 1029}Dc(a,1028,0,0);return 1028}function e$(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0;l=bc+-64|0;bc=l;a:{if(J[a+292>>2])break a;g=J[a+36>>2];if((J[g+20>>2]-J[g+16>>2]|0)>249)break a;Hd(a)}g=J[a+36>>2];i=J[g+16>>2]; -b:{if(!(K[i|0]==60&K[i+1|0]==47)){if(J[a+172>>2]==-1?J[a+212>>2]:0)break b;J[a+84>>2]=74;J[l+48>>2]=15080;Cc(0,0,0,a,0,1,74,3,0,0,0,0,32890,l+48|0);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}J[a+200>>2]=J[a+200>>2]+2;J[g+16>>2]=i+2;J[g+32>>2]=J[g+32>>2]+2;i=K[i+2|0];if((i|0)==37){Od(a);g=J[a+36>>2];i=K[J[g+16>>2]]}c:{if(i&255)break c;if((Cd(g)|0)>0)break c;while(1){h=J[a+40>>2];if((h|0)<2)break c;d:{e:{f:{if(!J[689531]){k=h-1|0;J[a+40>>2]=k;g=J[a+48>>2];break f}J[l+32>>2]=h;g=0;gc[J[659549]](J[689514], -36109,l+32|0);h=J[a+40>>2];if((h|0)<=0)break d;k=h-1|0;J[a+40>>2]=k;g=J[a+48>>2];j=0;i=0;if((h|0)==1)break e}j=k;i=J[((h<<2)+g|0)-8>>2]}J[a+36>>2]=i;i=(j<<2)+g|0;g=J[i>>2];J[i>>2]=0}dh(g);g=J[a+36>>2];if(K[J[g+16>>2]])break c;if((Cd(g)|0)<=0)continue;break}}g:{h:{i:{j=(f|0)<=0;if(j)break i;g=J[a+36>>2];i=J[g+16>>2];m=J[g+20>>2]-i|0;if(m>>>0>>0)break i;g=0;k=J[a+184>>2];j:if(!(j|(k|0)==(i|0))){g=-1;if(!i)break j;g=1;if(!k)break j;g=kd(i,k,f)}if(g)break i;h=1;g=J[a+36>>2];i=J[g+16>>2];if(!(K[i+f| -0]!=62|f>>>0>=m>>>0)){d=f+1|0;J[g+16>>2]=d+i;J[g+32>>2]=d+J[g+32>>2];break g}J[g+16>>2]=f+i;J[g+32>>2]=J[g+32>>2]+f;break h}i=J[a+184>>2];if(!b){h=h$(a,i);break h}k=J[a+36>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249)){Hd(a);k=J[a+36>>2]}k:{g=J[k+16>>2];h=K[g|0];l:{if(!h)break l;f=b;while(1){j=K[f|0];if((j|0)==(h&255)){f=f+1|0;h=K[g+1|0];g=g+1|0;if(h)continue;break l}break}if(j|(h&255)!=58)break l;f=g+1|0;h=K[g+1|0];m:{n:{if(!h){g=i;break n}g=i;while(1){j=K[g|0];if((j|0)!=(h&255))break m;g= -g+1|0;h=K[f+1|0];f=f+1|0;if(h)continue;break}}j=K[g|0];h=0}if(j&255)break l;g=h&255;j=g-9|0;if((1<>>0<=23:0)|(g|0)==62)break k}f=iJ(a,l+60|0);h=(f|0)==(i|0)?J[l+60>>2]==(b|0)?1:f:f;break h}J[k+16>>2]=f;h=1}o:{if(J[a+292>>2])break o;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)>249)break o;Hd(a)}if(J[a+172>>2]==-1)break b;Ud(a);f=J[a+36>>2];g=J[f+16>>2];p:{if(K[g|0]!=62){if(J[a+172>>2]==-1?J[a+212>>2]:0)break p;J[a+84>>2]=73;J[l+16>>2]=29271;Cc(0,0,0,a,0,1,73,3,0,0,0,0,32890,l+16|0);J[a+12>> -2]=0;if(J[a+288>>2])break p;J[a+212>>2]=1;break p}J[f+16>>2]=g+1;J[f+32>>2]=J[f+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(K[g+1|0])break p;Cd(f)}if((h|0)==1)break g;f=h?h:14306;q:{if(d)break q;d=J[a+52>>2];if(!d){d=0;break q}d=L[d+56>>1]}iB(a,76,32620,J[a+184>>2],d,f)}d=J[a>>2];r:{if(!d)break r;d=J[d+120>>2];if(J[a+212>>2]|!d)break r;gc[d|0](J[a+4>>2],J[a+184>>2],b,c)}b=J[a+236>>2];if((b|0)>0){d=b-1|0;J[a+236>>2]=d;c=J[a+244>>2];J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1}if(!e|!J[a+336>> -2])break b;h=J[a+328>>2];if((h|0)<(e|0)){J[l>>2]=e;gc[J[659549]](J[689514],36633,l);h=J[a+328>>2];e=h}if((h|0)<=0|(e|0)<=0)break b;if(e>>>0>=4){c=e&-4;f=0;while(1){b=h<<2;J[(b+J[a+336>>2]|0)-4>>2]=0;J[(b+J[a+336>>2]|0)-8>>2]=0;J[(b+J[a+336>>2]|0)-12>>2]=0;h=h-4|0;J[J[a+336>>2]+(h<<2)>>2]=0;f=f+4|0;if((c|0)!=(f|0))continue;break}}b=e&3;if(b){g=0;while(1){h=h-1|0;J[J[a+336>>2]+(h<<2)>>2]=0;g=g+1|0;if((b|0)!=(g|0))continue;break}}J[a+328>>2]=h}bc=l- -64|0}function ZWa(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=Q(0),n=Q(0),o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=Q(0);f=bc-384|0;bc=f;a:{if(!(K[a+220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))){uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);p=O[b+392>>3];d=J[a+104>>2];gc[J[J[d>>2]+132>>2]](d,f+380|0)|0;d=J[a+104>>2];gc[J[J[d>>2]+136>>2]](d,826992)|0;k=O[c+232>>3];o=O[c+240>>3];q=O[c+200>>3];r=O[c+224>>3];s=O[c+208>>3];t=O[c+216>>3];u=O[c+184>>3];N[f+20>>2]=O[c+192>>3]/72*25.4;N[f+16>>2]=u/72*25.4;N[f+8>>2]=t/72*25.4;N[f+4>>2]=s/72*25.4;m=Q(k); -i=J[c+380>>2]!=0;h=J[c+384>>2]!=0;l=bc-32|0;bc=l;e=f+144|0;d=e;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+28>>2]=1065353216;J[d+32>>2]=0;J[d+36>>2]=0;J[d+76>>2]=0;J[d+80>>2]=1;J[d+68>>2]=0;J[d+72>>2]=0;J[d+60>>2]=1056964608;J[d+64>>2]=1065353216;I[d+56>>1]=0;J[d+48>>2]=1065353216;J[d+52>>2]=1065353216;J[d+8>>2]=0;J[d+12>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+84>>2]=1;g=d+88|0;d=g;J[d>>2]=0;J[d+4>>2]=0;J[e+96>>2]=0;J[e+100>>2]=0;J[e+104>>2]=0;J[e+108>>2]=0;J[e+120>>2]=0;J[e+124>>2]=0;J[e+128>>2]=0;J[e+132>> -2]=0;J[e+136>>2]=0;J[e+140>>2]=0;J[695492]=0;d=$(4,24)|0;j=J[695492];J[695492]=0;if((j|0)==1){a=Z()|0;$j(g);ba(a|0);B()}n=Q(q/72*25.4);v=Q(r/72*25.4);g=d+24|0;J[e+140>>2]=g;J[e+132>>2]=d;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[e+136>>2]=g;wc(e+148|0,0,88);J[e+80>>2]=1;J[e+84>>2]=1;N[e+76>>2]=h>>>0;N[e+72>>2]=i>>>0;J[695492]=0;g=Ka(3235,l|0,256,Q(m),Q(Q(o)))|0;d=J[695492];J[695492]=0;b:{if((d|0)!=1){J[e+88>>2]=J[g>>2];d=J[e+92>>2];if(d){h=d;i=J[e+96>>2];if((d|0)!= -(i|0)){while(1){h=i-12|0;j=J[h>>2];if(j){J[i-8>>2]=j;qc(j)}i=h;if((d|0)!=(h|0))continue;break}h=J[e+92>>2]}J[e+96>>2]=d;qc(h);J[e+100>>2]=0;J[e+92>>2]=0;J[e+96>>2]=0}J[e+92>>2]=J[g+4>>2];J[e+96>>2]=J[g+8>>2];J[e+100>>2]=J[g+12>>2];d=J[g+20>>2];J[e+104>>2]=J[g+16>>2];J[e+108>>2]=d;d=J[g+28>>2];J[e+112>>2]=J[g+24>>2];J[e+116>>2]=d;d=J[f+20>>2];J[e>>2]=J[f+16>>2];J[e+4>>2]=d;d=J[f+8>>2];i=J[f+4>>2];N[e+20>>2]=v;N[e+16>>2]=n;J[e+8>>2]=i;J[e+12>>2]=d;bc=l+32|0;break b}a=Z()|0;Qe(e+80|0);ba(a|0);B()}d= -J[f+232>>2];if(d){n=Q((o-k)/+(d>>>0));e=J[c+8>>2];k=p*255;c:{if(R(k)<2147483648){d=~~k;break c}d=-2147483648}i=0;while(1){J[695492]=0;h=f+16|0;hb(3236,c|0,+m,h|0);g=J[695492];J[695492]=0;if((g|0)==1)break a;g=J[J[e>>2]+20>>2];J[695492]=0;ia(g|0,e|0,h|0,f+4|0,0);h=J[695492];J[695492]=0;if((h|0)==1)break a;g=J[f+12>>2];l=J[f+8>>2];j=J[f+4>>2];h=J[J[f+236>>2]>>2]+(i<<2)|0;H[h+3|0]=d;H[h+2|0]=P(j,255)+32768>>>16;H[h+1|0]=P(l,255)+32768>>>16;H[h|0]=P(g,255)+32768>>>16;m=Q(m+n);i=i+1|0;if(i>>>0> -2])continue;break}}c=J[a+104>>2];d=ik(c,340356,340368);if(d){c=J[J[d>>2]+596>>2];J[695492]=0;da(c|0,d|0,f+144|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[a+104>>2];d=J[J[c>>2]+348>>2];J[695492]=0;aa(d|0,c|0,826956)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[a+104>>2]}J[f+16>>2]=4;d=J[J[c>>2]+312>>2];J[695492]=0;aa(d|0,c|0,f+16|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;a=J[a+104>>2];c=J[J[a>>2]+136>>2];J[695492]=0;aa(c|0,a|0,f+380|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a; -J[695492]=0;_(3232,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;Qe(f+224|0)}bc=f+384|0;return 1}a=Z()|0;Qe(f+224|0);ba(a|0);B()}function A$a(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;m=J[a+20>>2];d=J[a+16>>2];k=J[a+12>>2];h=J[a+8>>2];g=J[a+4>>2];j=J[g+8>>2];n=K[j+68|0];l=K[j+67|0];r=K[j+66|0];i=K[j+65|0];a:{b:{c:{p=K[j+64|0];if(p){if(i&255)break c;c=0;break a}if(i&255)break b;c=2;break a}c=1;break a}c=3}while(1){d:{e:{f:{g:{h:{i:{j:{k:{l:{m:switch(c| -0){case 0:i=0;if(h>>>0>=k>>>0|d>>>0>=m>>>0)break d;q=(l<<24>>24<<2)+j|0;while(1){c=K[h|0];if(c>>>0<32)break d;h=h+1|0;n:{if(c<<24>>24>=0){I[d>>1]=c;d=d+2|0;break n}c=J[q>>2]+(c&127)|0;if(c>>>0<=65535){I[d>>1]=c;d=d+2|0;break n}I[d>>1]=(c>>>10|0)-10304;f=c&1023|-9216;c=d+2|0;if(m>>>0<=c>>>0)break l;I[d+2>>1]=f;d=d+4|0}if(h>>>0>=k>>>0)break d;if(d>>>0>>0)continue;break}break d;case 1:if(h>>>0>=k>>>0){c=d;break g}o:{p:{q:{r:{s:{t:{u:{if(d>>>0>>0){q=g+37|0;t=g+38|0;c=h;while(1){h=c+1|0;s=2;f=t; -o=2;e=K[c|0];c=e;v:{w:{x:switch(i&255){case 4:c=e&31;o=5;l=e>>>5|0;break w;case 6:break o;case 5:break p;case 3:break q;case 2:break r;case 1:break w;case 0:break x;default:break v}if(1<>>0<=15){if(e>>>0>=9){o=4;s=1;f=q;c=n;A:switch(e-11|0){case 4:break j;case 0:break w;case 3:break A;default:break s}o=1;break y}r=e-1|0;o=3;break z}if(e>>>0<24)break t;l=e-24|0;o=6}s=1}f=q;c=n}H[f|0]=e;H[g+36|0]=s;i=o;n=c}c=h;if((k|0)!=(c|0))continue;break}break h}J[b>>2]=15;c=d;break g}I[d>> -1]=e;d=d+2|0;break k}l=e-16|0;break k}J[b>>2]=12;H[g+36|0]=1;H[g+37|0]=e;break i}I[d>>1]=n<<8|e;d=d+2|0;break k}c=r<<24>>24;if(e<<24>>24>=0){I[d>>1]=J[(c<<2)+751744>>2]+e;d=d+2|0;break k}c=J[(c<<2)+j>>2]+(e&127)|0;if(c>>>0<=65535){I[d>>1]=c;d=d+2|0;break k}I[d>>1]=(c>>>10|0)-10304;f=c&1023|-9216;c=d+2|0;if(m>>>0>c>>>0){I[d+2>>1]=f;d=d+4|0;break k}H[g+65|0]=1;I[g+116>>1]=f;J[b>>2]=15;i=3;break g}J[(l<<24>>24<<2)+j>>2]=((n&255)<<15|e<<7)+65536;break k}B:{if(!e){H[g+36|0]=2;H[g+38|0]=0;break B}C:{f= -(l<<24>>24<<2)+j|0;c=e<<7;D:{if(e>>>0<=103)break D;c=c+44032|0;if((e-104&255)>>>0<=63)break D;if(e>>>0<249)break C;c=J[(e<<2)+750780>>2]}J[f>>2]=c;break k}H[g+36|0]=2;H[g+38|0]=e}i=6;c=d;break g;case 2:i=0;c=h+1|0;E:{if(k>>>0<=c>>>0|d>>>0>=m>>>0)break E;while(1){f=K[h|0];if((f+13&255)>>>0>236)break E;I[d>>1]=K[c|0]|f<<8;f=h+2|0;d=d+2|0;c=h+3|0;if(k>>>0>c>>>0){h=f;if(d>>>0>>0)continue}break}h=f}c=3;continue;default:break m}p=0;if(h>>>0>=k>>>0){c=d;break g}F:{G:{if(d>>>0>>0){c=h;while(1){h=c+ -1|0;c=K[c|0];H:{I:{J:{K:switch(i&255){case 1:H[g+38|0]=c;i=2;f=2;break J;case 2:break F;case 0:break K;default:break H}f=c+32|0;if((f&255)>>>0<=18){if(c>>>0<232){p=1;l=f;break k}if(c>>>0<240)break f;if((c|0)!=240){if((c|0)!=241)break G;i=4;break e}H[g+37|0]=240;f=1;i=1;break I}H[g+37|0]=c;i=2;f=1}n=c}H[g+36|0]=f}c=h;if((k|0)!=(c|0))continue;break}break h}J[b>>2]=15;c=d;break g}J[b>>2]=12;H[g+36|0]=1;H[g+37|0]=c;break i}I[d>>1]=c|n<<8;d=d+2|0;break j}H[g+65|0]=1;I[g+116>>1]=f;J[b>>2]=15;break g}c= -0;continue}c=2;continue}i=0;c=d;break g}c=d;h=k}b=J[b>>2];L:{if((b|0)>0){d=0;if((b|0)!=15)break L}d=i;if(d&255)break L;d=0;H[g+36|0]=0}H[j+68|0]=n;H[j+67|0]=l;H[j+66|0]=r;H[j+65|0]=d;H[j+64|0]=p;J[a+16>>2]=c;J[a+8>>2]=h;return}l=c+24|0;i=6}p=1;H[g+36|0]=1;H[g+37|0]=c}c=1;continue}}function T_(a){a=a|0;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;f=bc-32|0;bc=f;a:{b:{c:{d:{e:{b=J[a+16>>2];if(b>>>0>=93){J[a+16>>2]=b-93;b=J[a+4>>2];i=J[b>>2];c=b+4|0;J[a+4>>2]=c;b=J[a+8>>2];f:{if((b|0)!= -J[a+12>>2]){d=b;break f}g=J[a>>2];if(g>>>0>>0){e=((c-g>>2)+1|0)/-2<<2;b=b-c|0;d=Zc(e+c|0,c,b)+b|0;J[a+8>>2]=d;J[a+4>>2]=e+J[a+4>>2];break f}d=(b|0)==(g|0)?1:b-g>>1;if(d>>>0>=1073741824)break e;e=d<<2;h=rc(e);k=e+h|0;e=h+(d&-4)|0;d=e;g:{if((b|0)==(c|0))break g;j=b-c|0;l=j-4|0;m=(l>>>2|0)+1&7;h:{if(!m){b=d;break h}d=0;b=e;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}d=e+j|0;if(l>>>0<28)break g;while(1){J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+ -12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;if((d|0)!=(b|0))continue;break}}J[a+12>>2]=k;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=h;if(!g)break f;qc(g);d=J[a+8>>2]}J[d>>2]=i;J[a+8>>2]=J[a+8>>2]+4;break a}c=J[a+8>>2];k=J[a+4>>2];g=c-k|0;d=g>>2;b=J[a+12>>2];e=J[a>>2];h=b-e|0;if(d>>>0>2>>>0){if((b|0)!=(c|0)){n=f,o=rc(4092),J[n+12>>2]=o;y3(a,f+12|0);break a}n=f,o=rc(4092),J[n+12>>2]=o;uC(a,f+12|0);b=J[a+4>>2];i=J[b>>2];c=b+4|0; -J[a+4>>2]=c;b=J[a+8>>2];i:{if((b|0)!=J[a+12>>2]){d=b;break i}g=J[a>>2];if(g>>>0>>0){e=((c-g>>2)+1|0)/-2<<2;b=b-c|0;d=Zc(e+c|0,c,b)+b|0;J[a+8>>2]=d;J[a+4>>2]=e+J[a+4>>2];break i}d=(b|0)==(g|0)?1:b-g>>1;if(d>>>0>=1073741824)break e;e=d<<2;h=rc(e);k=e+h|0;e=h+(d&-4)|0;d=e;j:{if((b|0)==(c|0))break j;j=b-c|0;l=j-4|0;m=(l>>>2|0)+1&7;k:{if(!m){b=d;break k}d=0;b=e;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}d=e+j|0;if(l>>>0<28)break j;while(1){J[b>>2]=J[c>>2];J[b+4>> -2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;if((d|0)!=(b|0))continue;break}}J[a+12>>2]=k;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=h;if(!g)break i;qc(g);d=J[a+8>>2]}J[d>>2]=i;J[a+8>>2]=J[a+8>>2]+4;break a}J[f+28>>2]=a+12;h=(b|0)==(e|0)?1:h>>1;if(h>>>0>=1073741824)break e;i=h<<2;e=rc(i);J[f+12>>2]=e;J[695492]=0;b=e+(d<<2)|0;J[f+20>>2]=b;J[f+24>>2]=e+i;J[f+16>>2]=b;i=$(4,4092)|0;j=J[695492];J[695492]= -0;if((j|0)==1)break c;l:{if((d|0)!=(h|0))break l;if((g|0)>0){b=((d+1|0)/-2<<2)+b|0;J[f+16>>2]=b;break l}d=(c|0)==(k|0)?1:g>>1;if(d>>>0>=1073741824){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)==1)break d;B()}J[695492]=0;c=d<<2;b=$(4,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[f+12>>2]=b;J[f+24>>2]=b+c;b=b+(d&-4)|0;J[f+16>>2]=b;qc(e);c=J[a+8>>2]}J[b>>2]=i;J[f+20>>2]=b+4;while(1){if(J[a+4>>2]==(c|0)){d=J[a>>2];J[a>>2]=J[f+12>>2];J[f+12>>2]=d;J[a+4>>2]=J[f+16>>2];J[f+16>>2]=c;b=J[a+ -8>>2];J[a+8>>2]=J[f+20>>2];J[f+20>>2]=b;e=J[a+12>>2];J[a+12>>2]=J[f+24>>2];J[f+24>>2]=e;if((b|0)!=(c|0))J[f+20>>2]=b+((c-b|0)+3&-4);if(!d)break a;qc(d);break a}J[695492]=0;c=c-4|0;da(3200,f+12|0,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}c=Z()|0;a=J[f+20>>2];b=J[f+16>>2];if((a|0)==(b|0))break b;J[f+20>>2]=a+((b-a|0)+3&-4);break b}Sd();B()}c=Z()|0;qc(i);break b}c=Z()|0}a=J[f+12>>2];if(a)qc(a);ba(c|0);B()}bc=f+32|0}function _ub(a){a=a|0;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;f=J[a+572>>2];b=J[a+664>>2];a:{if((f|0)<(b|0)|(f|0)>=J[a+668>>2])break a;f=gc[J[a+220>>2]](a,J[a+680>>2]+(f-b|0)|0)|0;c=gc[J[a+228>>2]](a,(J[a+680>>2]+J[a+572>>2]|0)-J[a+664>>2]|0)|0;d=f;f=J[a+580>>2];e=J[a+672>>2];d=(d+(f<<1)|0)+(e<<1)|0;b=J[a+656>>2];j=b+f|0;b=(b|0)/J[a+584>>2]|0;f=e+(c+f|0)|0;c=J[a+660>>2];e=K[a+649|0];h=J[a+644>>2];b:{if(!K[a+648|0]){b=h+(b<<2)|0;if(!e)break b;if((c|0)<=(j|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;H[f|0]=K[b+3| -0];b=b+4|0;c=J[a+584>>2];f=c+f|0;d=(c<<1)+d|0;j=c+j|0;if((j|0)>2])continue;break}break a}b=h+(b<<3)|0;if(e){if((c|0)<=(j|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;H[f|0]=K[b+6|0];b=b+8|0;c=J[a+584>>2];f=c+f|0;d=(c<<1)+d|0;j=c+j|0;if((j|0)>2])continue;break}break a}if((c|0)<=(j|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{d:{if((c|0)!=65535){e=K[f|0];e=e<<8|e;if(e)break d}H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d| -0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;c=K[b+6|0];break c}if((e|0)==65535){e=K[b+4|0]|K[b+5|0]<<8;h=K[b+2|0]|K[b+3|0]<<8;k=P(c,(h<<8|h>>>8)&65535);h=K[d|0];i=K[d+1|0];g=h>>>3&28|i<<5;l=g<<8&64512|g;g=c^65535;k=(k+P(l,g)|0)+32768|0;k=(k>>>16|0)+k|0;l=K[b|0]|K[b+1|0]<<8;h=(P(c,(l<<8|l>>>8)&65535)+P(g,h<<11&63488|h<<3)|0)+32768|0;H[d+1|0]=k>>>29|(h>>>16|0)+h>>>24&248;e=(P((e<<8|e>>>8)&65535,c)+P(P(g,i&248),257)|0)+32768|0;H[d|0]=k>>>21&224|(e>>>16|0)+e>>>27;c=c>>>8|0;break c}h=K[b+4|0]|K[b+5|0]<<8;i=c^65535; -k=P(i,e^65535)^-1;l=k>>>16|0;c=(c<<16>>>0)/(l>>>0)|0;g=K[b+2|0]|K[b+3|0]<<8;m=P(c,(g<<8|g>>>8)&65535);e=(P(e,i)>>>0)/(l>>>0)|0;g=K[d|0];l=K[d+1|0];i=g>>>3&28|l<<5;i=(m+P(e,i<<8&64512|i)|0)+32767|0;m=P(e,g<<11&63488|g<<3);g=K[b|0]|K[b+1|0]<<8;H[d+1|0]=i>>>29|(m+P(c,(g<<8|g>>>8)&65535)|0)+32767>>>24&248;H[d|0]=i>>>21&224|(P(P(e,l&248),257)+P(c,(h<<8|h>>>8)&65535)|0)+32767>>>27;c=k>>>24|0}H[f|0]=c}b=b+8|0;c=J[a+584>>2];f=c+f|0;d=(c<<1)+d|0;j=c+j|0;if((j|0)>2])continue;break}break a}if((c|0)<= -(j|0))break a;while(1){c=K[b+3|0];if(c){e:{f:{if((c|0)!=255){e=K[f|0];if(e)break f}H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;c=K[b+3|0];break e}if((e|0)==255){h=K[b+2|0];e=c^255;g=K[d+1|0];i=K[d|0];k=(P(K[b+1|0],c)+P(e,(g<<5|i>>>3)&252)|0)+128|0;k=(k>>>8&255)+k|0;g=(P(e,g&248)+P(K[b|0],c)|0)+128|0;H[d+1|0]=k>>>13&7|(g>>>8&255)+g>>>8&248;e=(P(e,i<<3&248)+P(c,h)|0)+128|0;H[d|0]=(e>>>8&255)+e>>>11&31|k>>>5&224;break e}g=K[b+2|0];h=c<<8;i=c^255;c=P(i,e^255)>>>8^-1;k=c&255;h= -(h>>>0)/(k>>>0)|0;e=(P(e,i)>>>0)/(k>>>0)|0;i=(P(h,K[b+1|0])+P(e,K[d+1|0])|0)+127|0;H[d+1|0]=i>>>13&7|(P(h,K[b|0])+P(e,K[d|0])|0)+127>>>8&248;H[d|0]=(P(h,g)+P(e,K[d+2|0])|0)+127>>>11&31|i>>>5&224}H[f|0]=c}b=b+4|0;c=J[a+584>>2];f=c+f|0;d=(c<<1)+d|0;j=c+j|0;if((j|0)>2])continue;break}}f=J[a+680>>2]+J[a+572>>2]|0;b=J[a+664>>2];d=J[a+556>>2];j=J[a+672>>2];g:{if((j|0)>=J[a+552>>2]){if(d)break g;d=0}J[a+552>>2]=j}c=d;d=J[a+676>>2];if((c|0)<(d|0))J[a+556>>2]=d;d=J[a+564>>2];f=f-b|0;h:{if((f|0)>= -J[a+560>>2]){if(d)break h;d=0}J[a+560>>2]=f}if((d|0)<=(f|0))J[a+564>>2]=f+1;return 0}function T$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=bc-16|0;bc=g;f=J[b>>2];c=f;a:{while(1){b:{e=K[c|0];d=(e&223)-65|0;c:{if((e-48&255)>>>0<10|(d&255)>>>0<26)break c;d:switch(e-33|0){case 31:break b;case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 62:case 93:break c;case 4:break d;default:break a}e:{d=K[c+1|0];if((d-48&255)>>>0<10)break e;switch(d- -65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break e;default:break a}}d=K[c+2|0];if((d-48&255)>>>0<10)break c;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break c;default:break a}}c=((e|0)==37?3:1)+c|0;continue}break}f:{if(!a)break f;e=J[a+16>>2];if(e)gc[J[659451]](e);d=c-f|0;g:{if(K[a+36|0]&2){e=0;if(!f|(d|0)<0)break g;e=gc[J[659450]](d+1|0)|0;if(!e){e=0;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013, -0);break g}j=tc(e,f,d)+d|0,k=0,H[j|0]=k;break g}e=eo(f,d)}J[a+16>>2]=e;if(K[c|0]==64)break f;f=J[b>>2];break a}f=c+1|0}h:{i:{j:{k:{e=K[f|0];l:{if((e|0)==91){e=f;while(1){c=e;d=K[c+1|0];if(!d)break k;e=c+1|0;if((d|0)!=93)continue;break}J[g+12>>2]=c+2;break l}m:{if((e-48&255)>>>0>9)break m;c=K[f+1|0];d=f+1|0;n:{if((c-48&255)>>>0>9)break n;if((e|0)==48)break m;d=K[f+2|0];if((d-48&255)>>>0>9){c=d;d=f+2|0;break n}o:switch(e-49|0){case 1:if((c&255)>>>0>53)break m;break;case 0:break o;default:break m}c= -K[f+3|0];d=f+3|0}if((c&255)!=46)break m;c=d;J[g+12>>2]=c+1;d=K[c+1|0];if((d-48&255)>>>0>9)break m;i=K[c+2|0];h=c+2|0;p:{if((i-48&255)>>>0>9)break p;if((d|0)==48)break m;h=c+3|0;if((K[c+3|0]-48&255)>>>0>9)break p;q:switch(d-49|0){case 0:h=c+4|0;break p;case 1:break q;default:break m}c=c+4|0;h=c;if(i>>>0<=52)break p;if((i|0)!=53)break m;h=c}d=h;J[g+12>>2]=d;if(K[d|0]!=46)break m;if(L$(g+12|0)|K[J[g+12>>2]]!=46)break m;if(!L$(g+12|0))break l}c=f;while(1){r:{s:{if((e-48&255)>>>0<10|((e&-33)-65&255)>>> -0<26)break s;t:switch((e&255)-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 26:case 28:case 62:case 93:break s;case 4:break t;default:break r}u:{d=K[c+1|0];if((d-48&255)>>>0<10)break u;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break u;default:break r}}d=K[c+2|0];if((d-48&255)>>>0<10)break s;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break s; -default:break r}}c=((e&255)==37?3:1)+c|0;e=K[c|0];continue}break}J[g+12>>2]=c}if(!a){d=J[g+12>>2];break i}c=J[a+8>>2];if(c)gc[J[659451]](c);J[a+8>>2]=0;c=J[a+12>>2];if(c)gc[J[659451]](c);d=J[g+12>>2];if((f|0)!=(d|0)){e=d-f|0;if(!(K[a+36|0]&2))break j;c=0;if((e|0)>=0){c=gc[J[659450]](e+1|0)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);J[a+12>>2]=0;break i}c=tc(c,f,e);H[e+c|0]=0}J[a+12>>2]=c;break i}J[a+12>>2]=0;d=f;break i}f=1;break h}j=a,k=eo(f,e),J[j+12>>2]=k}v:{if(K[d|0]!=58)break v;e=K[d+1|0]; -f=1;if((e-48&255)>>>0>9)break h;c=d+1|0;f=0;while(1){f=(P(f,10)+(e&255)|0)-48|0;e=K[c+1|0];d=c+1|0;c=d;if((e-48&255)>>>0<10)continue;break}if(!a)break v;J[a+20>>2]=f&2147483647}J[b>>2]=d;f=0}bc=g+16|0;return f}function aB(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;f=bc-80|0;bc=f;J[f+64>>2]=13;J[f+48>>2]=13;J[f+32>>2]=13;J[f+16>>2]=13;J[f>>2]=13;hf(b,J[J[a>>2]+24>>2],f- -64|0,0);a:{if(J[f+64>>2]!=7){xc(1,-1,783651,0);break a}if(J[Bc(J[f+72>>2],784444,f+48|0,0)>>2]==6)while(1){d=J[f+ -56>>2];g=J[d+12>>2];if((g|0)<=(e|0)){e=0;if((g|0)>0)while(1){b=f+32|0;jg(d,e,b);aB(a,b);uc(b);e=e+1|0;d=J[f+56>>2];if((e|0)>2])continue;break}uc(f+48|0);break a}g=0;Mc(d,e,f+16|0,0);if(J[f+16>>2]==7){g=J[Bc(J[f+24>>2],785271,f,0)>>2]==5;uc(f)}e=e+1|0;uc(f+16|0);if(!g)continue;break}uc(f+48|0);e=0;c=bc+-64|0;bc=c;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;o=b;l=a;hf(b,J[J[a>>2]+24>>2],c+48|0,0);a=J[Bc(J[c+56>>2],786439,c,0)>>2];b=rc(12);b:{c:{d:{if((a|0)==3){J[695492]=0;aa(3187,b| -0,J[c+8>>2])|0;a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=b;b=Z()|0;break c}J[695492]=0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;a=J[695492];J[695492]=0;if((a|0)!=1)break d;a=b;b=Z()|0;break c}uc(c);m=1;e:{if(J[Bc(J[c+56>>2],787291,c,0)>>2]!=4)break e;m=0;a=rc(8);J[695492]=0;h=aa(3182,a|0,J[c+8>>2])|0;d=J[695492];J[695492]=0;if((d|0)!=1)break e;b=Z()|0;break c}uc(c);d=J[Bc(J[c+56>>2],788083,c,0)>>2];a=J[c+8>>2];uc(c);Bc(J[c+56>>2],785271,c+32|0,0);d=(d|0)==1;i=d?a:0;f:{if(J[c+32>>2]!=7)break f;d=d&(a| -0)!=0;while(1){if(J[Bc(J[c+40>>2],786439,c,0)>>2]==3){if(J[b+4>>2])VX(b);DH(b,J[c+8>>2])}uc(c);if(!h){h=0;g:{if(J[Bc(J[c+40>>2],787291,c,0)>>2]!=4)break g;a=rc(8);J[695492]=0;h=aa(3182,a|0,J[c+8>>2])|0;g=J[695492];J[695492]=0;if((g|0)!=1)break g;b=Z()|0;break c}uc(c)}if(d)d=1;else{a=Bc(J[c+40>>2],788083,c,0);d=J[c+8>>2];a=J[a>>2]==1;i=a?d:i;uc(c);d=a&(d|0)!=0}Bc(J[c+40>>2],785271,c+16|0,0);uc(c+32|0);a=J[c+28>>2];J[c+40>>2]=J[c+24>>2];J[c+44>>2]=a;g=J[c+20>>2];a=J[c+16>>2];J[c+32>>2]=a;J[c+36>>2]= -g;if((a|0)!=7)break f;a=e>>>0<49;e=e+1|0;if(a)continue;break}}uc(c+32|0);h:{i:{j:{if(!h){xc(1,-1,789036,0);break j}k:{if(!J[l+36>>2]){e=0;break k}e=bc-16|0;bc=e;d=rc(8);J[695492]=0;a=$(3184,d|0)|0;g=J[695492];J[695492]=0;l:{if((g|0)!=1){if(J[b+4>>2]>0)while(1){d=e+8|0;cf(a,d,TX(J[J[b>>2]+(j<<2)>>2],d,8));j=j+1|0;if((j|0)>2])continue;break}bc=e+16|0;break l}a=Z()|0;qc(d);ba(a|0);B()}g=a;k=J[a>>2];if((k|0)>0){a=0;while(1){e=a+1|0;j=(e|0)<(k|0)?k:e;n=J[g+4>>2];e=a;m:{while(1){d=e+1|0;if(K[e+n| -0]==46)break m;e=d;if((j|0)!=(d|0))continue;break}d=j}n:{if(K[a+n|0]!=35){a=d;break n}dm(g,a,d-a|0);k=J[g>>2]}if((a|0)<(k|0))continue;break}}e=tk(J[J[l+36>>2]+4>>2],g);qc(Rc(g))}o:{p:{if(!sd(h,789795)){d=0;if(i&65536)break p;d=i&32768?1:2;break p}if(!sd(h,790439)){if(e){d=6;if(J[e+20>>2])break p}d=3;if(i&1048576)break p;d=i&4096?4:5;break p}d=i&131072?7:8;if(!sd(h,791539))break p;if(sd(h,792264))break o;d=9}qc(Rc(h));a=rc(64);J[a+24>>2]=13;J[a+8>>2]=13;J[a>>2]=l;J[695492]=0;aa(3282,o|0,a+8|0)|0;g= -J[695492];J[695492]=0;if((g|0)==1)break h;J[695492]=0;aa(3282,c+48|0,a+24|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;J[a+56>>2]=e;J[a+52>>2]=m;J[a+48>>2]=i;J[a+44>>2]=b;J[a+40>>2]=d;break i}xc(1,-1,792981,0);qc(Rc(h))}qc(dd(b));a=0}uc(c+48|0);bc=c- -64|0;break b}b=Z()|0}qc(a);ba(b|0);B()}if(!a)break a;id(J[l+32>>2],a)}uc(f- -64|0);bc=f+80|0}function Xy(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=Q(0);d=bc-240|0;bc=d;g=Lf(a,L[b>>1]);a:{b:{c:{c=J[b+4>>2];if(c>>>0>=2){d:{e:{f:{g:switch(L[b+2>>1]-1|0){case 0:case 5:c= -Sg(a,c,1,92240);if(!c)break a;e=zF(a,b,c);break e;case 2:case 7:c=Sg(a,c,2,92240);if(!c)break a;e=J[b+4>>2];if(e>>>0>2)break f;if(L[a+456>>1]==19789){h:{i:switch(e-1|0){case 0:f=J[b+8>>2];break h;case 1:break i;default:break b}f=J[b+8>>2];I[c+2>>1]=f}I[c>>1]=f>>>16;break b}j:switch(e-1|0){case 1:break j;case 0:break d;default:break b}e=J[b+8>>2];I[c+2>>1]=e>>>16;I[c>>1]=e;break b;case 3:case 8:c=Sg(a,c,4,92240);if(!c)break a;if(J[b+4>>2]==1){J[c>>2]=J[b+8>>2];break b}e=(Oh(a,b,c)|0)!=0;break e;case 4:case 9:c= -Sg(a,c,4,92240);if(!c)break a;e=CR(a,b,c);break e;case 10:c=Sg(a,c,4,92240);if(!c)break a;if(J[b+4>>2]==1){N[c>>2]=N[b+8>>2];break b}e=(Oh(a,b,c)|0)!=0;break e;case 11:c=Sg(a,c,8,92240);if(!c)break a;e=(Oh(a,b,c)|0)!=0;break e;case 1:case 6:break g;default:break a}c=Sg(a,c+1|0,1,92240);if(!c)break a;e=J[b+4>>2];if(e>>>0<=4){J[d+232>>2]=J[b+8>>2];f=d+232|0;if(K[a+12|0]&128){Yo(f);e=J[b+4>>2]}Ne(c,f,e);break c}if(Oh(a,b,c))break c;qc(c);break a}e=Oh(a,b,c)}if(e)break b;qc(c);break a}I[c>>1]=J[b+8>> -2];break b}if(!c){f=J[a>>2];e=J[a+628>>2];c=J[Lf(a,L[b>>1])+16>>2];a=J[b+4>>2];J[d+40>>2]=1;J[d+36>>2]=a;J[d+32>>2]=c;ae(e,f,82715,d+32|0);f=0;break a}k:{l:{m:{n:{o:{e=L[b+2>>1];switch(e-1|0){case 1:case 6:break k;case 11:break l;case 4:case 9:case 10:break m;case 3:case 8:break n;case 0:case 2:case 5:case 7:break o;default:break a}}p:switch(J[g+8>>2]-4|0){case 0:case 5:break n;default:break p}c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+464>>2]+(e<<2)>>2]|0;c=J[J[a+468>>2]+(e<<2)>>2]&c;I[d+232>> -1]=c;b=L[b>>1];if(K[g+15|0]){J[d+64>>2]=1;J[d+68>>2]=d+232;f=$d(a,b,d- -64|0);break a}J[d+48>>2]=c&65535;f=$d(a,b,d+48|0);break a}c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+464>>2]+(e<<2)>>2]|0;c=J[J[a+468>>2]+(e<<2)>>2]&c;J[d+232>>2]=c;b=L[b>>1];if(K[g+15|0]){J[d+96>>2]=1;J[d+100>>2]=d+232;f=$d(a,b,d+96|0);break a}J[d+80>>2]=c;f=$d(a,b,d+80|0);break a}q:{if((e|0)==11){c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+464>>2]+44>>2]|0;J[d+228>>2]=J[J[a+468>>2]+44>>2]&c;Ne(d+232|0,d+228|0,4);i=N[d+ -232>>2];break q}i=Q(1);if(!Oh(a,b,d+232|0))break q;h=J[d+232>>2];c=J[d+236>>2];if(c){if(L[b+2>>1]==5){i=Q(Q(h>>>0)/Q(c>>>0));break q}i=Q(Q(h|0)/Q(c|0));break q}f=J[a>>2];e=J[a+628>>2];c=J[Lf(a,L[b>>1])+16>>2];J[d+148>>2]=h;J[d+144>>2]=c;Nc(e,f,88345,d+144|0)}N[d+224>>2]=i;b=L[b>>1];if(K[g+15|0]){J[d+128>>2]=1;J[d+132>>2]=d+224;f=$d(a,b,d+128|0);break a}O[d+112>>3]=i;f=$d(a,b,d+112|0);break a}c=d+232|0;if(!Oh(a,b,c))break a;b=L[b>>1];r:{if(K[g+15|0]){J[d+176>>2]=1;J[d+180>>2]=c;a=$d(a,b,d+176|0);break r}O[d+ -160>>3]=O[d+232>>3];a=$d(a,b,d+160|0)}f=(a|0)!=0;break a}J[d+232>>2]=J[b+8>>2];e=d+228|0;c=d+232|0;if(K[a+12|0]&128){Yo(c);h=J[b+4>>2]}else h=1;Ne(e,c,h);H[d+229|0]=0;b=L[b>>1];if(K[g+15|0]){J[d+208>>2]=1;J[d+212>>2]=e;f=$d(a,b,d+208|0);break a}J[d+192>>2]=d+228;f=$d(a,b,d+192|0);break a}H[J[b+4>>2]+c|0]=0}e=L[b>>1];if(K[g+15|0]){b=J[b+4>>2];J[d+20>>2]=c;J[d+16>>2]=b;f=$d(a,e,d+16|0);qc(c);break a}J[d>>2]=c;f=$d(a,e,d);qc(c)}bc=d+240|0;return f}function $T(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0; -c=bc-48|0;bc=c;J[a>>2]=0;d=J[682146];J[a+4>>2]=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if(b>>>0>7)break m;n:{o:switch(b-6|0){case 1:J[695492]=0;d=aa(4989,c+20|0,2387714)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[695492]=0;b=c+28|0;ca(5048,b|0,2381756,d|0);e=J[695492];J[695492]=0;p:{if((e|0)!=1){J[695492]=0;ca(5121,c+36|0,b|0,2380757);b=J[695492];J[695492]=0;if((b|0)==1)break p;b=J[c+36>>2];q:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break q; -b=Z()|0;break d}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break n;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break n;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break n}break a}b=Z()|0;vc(c+12|0);break d}b=Z()|0;sc(d);break b}b=Z()|0;break c;case 0:J[695492]=0;d=aa(4989,c+20|0,2387363)|0;b=J[695492];J[695492]=0;r:{s:{if((b|0)!=1){J[695492]=0;b=c+28|0;ca(5048,b|0,2381756, -d|0);e=J[695492];J[695492]=0;if((e|0)==1)break s;J[695492]=0;ca(5121,c+36|0,b|0,2381391);b=J[695492];J[695492]=0;if((b|0)==1)break r;b=J[c+36>>2];t:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break t;b=Z()|0;break f}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;u:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break u;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break u;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break u}break a}b=Z()|0;vc(c+12|0);break f}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(c+36|0);sc(c+28|0);sc(d);break m}b=Z()|0;break b}b=Z()|0;sc(d);break b}b=Z()|0;break e;default:break o}J[c+16>>2]=d;J[c+12>>2]=0;e=b<<1|1;d=0;while(1){J[695492]=0;f=c+12|0;aa(5145,f|0,32)|0;g=J[695492];J[695492]=0;if((g|0)==1)break k;g=(d|0)==(e|0);d=d+1|0;if(!g)continue;break}J[695492]=0;d=c+20|0;ca(5121,d|0,f|0,2381756);e=J[695492];J[695492]=0;v:{w:{if((e|0)!=1){J[695492]= -0;e=c+28|0;ca(5121,e|0,d|0,J[(b<<2)+2407040>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break w;J[695492]=0;ca(5121,c+36|0,e|0,2381391);b=J[695492];J[695492]=0;if((b|0)==1)break v;b=J[c+36>>2];x:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+44|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break x;b=Z()|0;break j}J[c+44>>2]=0}J[695492]=0;aa(4993,a|0,c+44|0)|0;b=J[695492];J[695492]=0;y:{if((b|0)!=1){b=J[c+44>>2];J[c+44>>2]=0;if(!b)break y;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0; -if((e|0)!=1){if(d)break y;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break y}break a}b=Z()|0;vc(c+44|0);break j}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(c+36|0);sc(c+28|0);sc(c+20|0);sc(c+12|0);break m}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(c+36|0);sc(c+28|0);sc(d)}bc=c+48|0;return}b=Z()|0;break b}b=Z()|0;break g}sc(c+36|0)}sc(c+28|0)}sc(c+20|0)}sc(c+12|0);break b}sc(c+36|0)}sc(c+28|0);sc(d);break b}sc(c+36|0)}sc(c+ -28|0);sc(d)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function dxb(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;e=bc+-64|0;bc=e;b=0;d=J[a+8>>2];a:{if(d&7)break a;b:{c:{b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break c;b=J[a+28>>2];J[a+28>>2]=b-1;d:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;f=K[b|0];break d}f=jd(a,1);if((f|0)==-1){b=0;break a}d=J[a+8>>2]}b=0;if(d&7)break a;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break c;b=J[a+28>>2]; -J[a+28>>2]=b-1;if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break b}b=jd(a,1);if((b|0)!=-1)break b;b=0;break a}J[a+8>>2]=d|4;b=0;break a}if((b&255|f<<8&65280)!=20551){b=0;break a}b=nj(a);if((b|0)==-1){b=0;break a}if(!((b|0)==32|b-9>>>0<5)){b=0;break a}while(1){b=nj(a);if((b|0)==-1){b=0;break a}if((b|0)==32|b-9>>>0<5)continue;break}d=nj(a);if((d|0)==-1){b=0;break a}d=d<<24;f=b<<24;e:{if((f|0)==1291845632){b=1;if((d|0)==1275068416)break e}b=0;if((f|0)!=1275068416|(d|0)!= -1291845632)break a}H[e+48|0]=b;while(1){b=nj(a);if((b|0)==-1){b=0;break a}if(!((b|0)==32|b-9>>>0<5))continue;break}while(1){d=nj(a);if((d|0)==-1){b=0;break a}if((d|0)==32|d-9>>>0<5)continue;break}b=0;f:switch(d-43|0){case 2:b=1;break;case 0:break f;default:break a}H[e+49|0]=b;while(1){b=0;d=nj(a);if((d|0)==-1)break a;if(!((d|0)==32|d-9>>>0<5))continue;break}if(DN(a,e+52|0))break a;if(DN(a,e+56|0))break a;if(DN(a,e+60|0))break a;d=mE();if(!d)break a;J[e+20>>2]=1;J[e+24>>2]=1;J[e+12>>2]=0;J[e+16>>2]= -0;g=J[e+56>>2];J[e+28>>2]=g;k=J[e+60>>2];J[e+32>>2]=k;c=J[e+52>>2];J[e+36>>2]=c;m=K[e+49|0];J[e+40>>2]=m;g:{h:{if(Qr(d,0,e+12|0))break h;f=ek(1,g);if(!f)break h;if(!k)break g;n=(c+7|0)/8|0;i:{if(!g){a=0;while(1){if(gk(d,0,0,a,0,1,f))break i;a=a+1|0;if((k|0)!=(a|0))continue;break}break g}if((c|0)>32)break i;if((c|0)>0){q=(n|0)<=1?1:n;o=1<>2];if(c&7)break i;l=J[a+64>>2];if((l|0)>=0&(l|0)<=J[a+ -60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;l:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break l}c=jd(a,1);if((c|0)==-1)break i}j=(c&255)<<((h^-1)+n<<3)|j;h=h+1|0;if((q|0)!=(h|0))continue;break}c=j&r;J[J[J[f+28>>2]>>2]+(i<<2)>>2]=c-(m?c&s?o:0:0);i=i+1|0;if((i|0)!=(g|0))continue;break j}while(1){j=0;h=0;while(1){c=J[a+8>>2];if(c&7)break i;l=J[a+64>>2];if((l|0)>=0&(l|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;m:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2]; -J[a+24>>2]=c+1;c=K[c|0];break m}c=jd(a,1);if((c|0)==-1)break i}j=(c&255)<<(h<<3)|j;h=h+1|0;if((q|0)!=(h|0))continue;break}c=j&r;J[J[J[f+28>>2]>>2]+(i<<2)>>2]=c-(m?c&s?o:0:0);i=i+1|0;if((i|0)!=(g|0))continue;break}break j}J[a+8>>2]=c|4;break i}if(gk(d,0,0,p,g,1,f))break i;p=p+1|0;if((p|0)!=(k|0))continue;break}break g}c=g<<2;a=0;if(!m)while(1){wc(J[J[f+28>>2]>>2],0,c);if(gk(d,0,0,a,g,1,f))break i;a=a+1|0;if((k|0)!=(a|0))continue;break g}while(1){wc(J[J[f+28>>2]>>2],0,c);if(gk(d,0,0,a,g,1,f))break i; -a=a+1|0;if((k|0)!=(a|0))continue;break}break g}dg(f)}yh(d);break a}dg(f);J[d+28>>2]=769;J[J[J[d+24>>2]>>2]+40>>2]=0;b=d}bc=e- -64|0;return b|0}function hE(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;h=bc-16|0;bc=h;d=zc(160);a:{if(!d){d=0;break a}J[d>>2]=2631852;b:{if(Di(a,h+12|0))break b;if(Di(a,d+8|0))break b;f=2631840;c:{if(!J[657801])break c;g=J[d+8>>2];b=2631200;while(1){if((g|0)==J[b>>2]){f=b;break c}c=b;b=b+32|0;if(J[c+36>>2])continue;break}}J[d+4>>2]=f;J[d>>2]=f+12;c=J[h+12>>2]; -J[d+12>>2]=c;d:{e:{f:{g:{if((c|0)==1){b=0;c=J[a+8>>2];if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;h:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;i=K[b|0];break h}i=jd(a,1);if((i|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;i:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;f=K[b|0];break i}f=jd(a,1);if((f|0)==-1)break d;c=J[a+8>>2]}b= -0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;j:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;j=K[b|0];break j}j=jd(a,1);if((j|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;k:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;k=K[b|0];break k}k=jd(a,1);if((k|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+ -60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;l:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;l=K[b|0];break l}l=jd(a,1);if((l|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;m:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;e=K[b|0];break m}e=jd(a,1);if((e|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;n:{if((b| -0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;g=K[b|0];break n}g=jd(a,1);if((g|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break g}b=jd(a,1);if((b|0)==-1)break d;break g}b=c-8|0;break f}m=b&255;c=k&255|(j<<8&65280|(f<<16&16711680|i<<24));b=c>>>16|0;c=e&255|(l<<8&65280|c<<16);b=b<<16|c>>>16;c=m|(g<<8&65280|c<<16);if((b|0)==1|b>>>0>1){hd(207251, -0);c=-1}J[d+12>>2]=c;b=c-16|0}J[d+16>>2]=b;b=0;if(c-1>>>0<7)break b;if(!(K[J[d+4>>2]+8|0]&3)){c=Fi(0,0);if(!c)break b;if(xn(c,a,J[d+16>>2])){hd(207367,0);b=c;break b}yn(c);o:{a=J[J[d>>2]+8>>2];if(!a)break o;if(!(gc[a|0](d,c)|0))break o;hd(207500,0);b=c;break b}If(c)}if(J[682644]<=0)break a;f=J[651370];e=bc-32|0;bc=e;b=2631840;p:{if(!J[657801])break p;g=J[d+8>>2];a=2631200;while(1){if((g|0)==J[a>>2]){b=a;break p}c=a;a=a+32|0;if(J[c+36>>2])continue;break}}Td(207700,9,1,f);c=J[d+8>>2];a=J[d+12>>2];J[e+ -4>>2]=J[b+4>>2];J[e+8>>2]=34;J[e+12>>2]=c;J[e+16>>2]=a;J[e>>2]=34;cd(f,207997,e);a=J[J[d>>2]+16>>2];if(a)gc[a|0](d,f);bc=e+32|0;break a}J[a+8>>2]=c|4}b=0}a=J[J[d>>2]+4>>2];if(a)gc[a|0](d);qc(d);d=0;if(!b)break a;If(b)}bc=h+16|0;return d}function Q8(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;c=bd(1,24);if(!c)return 0;H[c|0]=1;g=c;c=bd(1,92);a:{if(c){J[c>>2]=g;e=bd(1,56);b:{if(e){J[e>>2]=g;d=bd(1,1876);J[e+36>>2]=d;if(!d){J[g+20>>2]=1;qc(e);break b}J[c+4>>2]=e;break a}J[g+20>>2]=1}Rx(0);qc(c); -c=0;break a}J[g+20>>2]=1;c=0}J[g+12>>2]=c;if(!c){qc(g);return 0}J[g+4>>2]=2;J[g+8>>2]=0;e=J[c+4>>2];c:{if(!b|!e)break c;d=bd(1,96);if(!d){J[J[e>>2]+20>>2]=1;break c}J[d+12>>2]=J[b>>2];J[d+16>>2]=J[b+4>>2];J[d+20>>2]=J[b+8>>2];J[e+44>>2]=d}d:{e:{f:{if(J[g+20>>2]){Rx(e);a=J[c+80>>2];if(a){qc(a);J[c+80>>2]=0}a=J[c+68>>2];if(a){qc(a);J[c+68>>2]=0}b=0;a=J[c+64>>2];if(a)break f;break e}b=0;g:{if(!c|!a)break g;h=gc[J[J[a>>2]+36>>2]](a)|0;f=gc[J[J[a>>2]+20>>2]](a,4)|0;e=gc[J[J[a>>2]+20>>2]](a,4)|0;h:{i:switch(f| -0){case 1:f=1;if(gc[J[J[a>>2]+20>>2]](a,4)|0)break h;f=gc[J[J[a>>2]+20>>2]](a,4)|0;if(f)break h;f=(gc[J[J[a>>2]+40>>2]](a)|0)+12|0;break h;case 0:break i;default:break h}d=gc[J[J[a>>2]+40>>2]](a)|0;f=(d|0)>0?d+8|0:0}if((e|0)!=1783636E3)break g;if((gc[J[J[a>>2]+20>>2]](a,4)|0)!=218793738)break g;if(((gc[J[J[a>>2]+36>>2]](a)|0)-h|0)!=(f|0))break g;h=gc[J[J[a>>2]+36>>2]](a)|0;f=gc[J[J[a>>2]+20>>2]](a,4)|0;e=gc[J[J[a>>2]+20>>2]](a,4)|0;j:{k:switch(f|0){case 1:f=1;if(gc[J[J[a>>2]+20>>2]](a,4)|0)break j; -f=gc[J[J[a>>2]+20>>2]](a,4)|0;if(f)break j;f=(gc[J[J[a>>2]+40>>2]](a)|0)+12|0;break j;case 0:break k;default:break j}d=gc[J[J[a>>2]+40>>2]](a)|0;f=(d|0)>0?d+8|0:0}if((e|0)!=1718909296)break g;i=c,j=gc[J[J[a>>2]+20>>2]](a,4)|0,J[i+52>>2]=j;e=gc[J[J[a>>2]+20>>2]](a,4)|0;d=(f-16|0)/4|0;J[c+60>>2]=d;J[c+56>>2]=e;d=d<<2;e=bd(1,d);J[c+64>>2]=e;if(!e){J[J[c>>2]+20>>2]=1;break g}gc[J[J[a>>2]+16>>2]](a,e,d);if(((gc[J[J[a>>2]+36>>2]](a)|0)-h|0)!=(f|0))break g;if(!R8(c,a))break g;gc[J[J[a>>2]+36>>2]](a)|0;b= -gc[J[J[a>>2]+20>>2]](a,4)|0;d=gc[J[J[a>>2]+20>>2]](a,4)|0;l:{m:switch(b|0){case 1:b=1;if(gc[J[J[a>>2]+20>>2]](a,4)|0)break l;b=gc[J[J[a>>2]+20>>2]](a,4)|0;if(b)break l;b=(gc[J[J[a>>2]+40>>2]](a)|0)+12|0;break l;case 0:break m;default:break l}b=gc[J[J[a>>2]+40>>2]](a)|0;b=(b|0)>0?b+8|0:0}n:{if((d|0)==1785737827)break n;gc[J[J[a>>2]+24>>2]](a,b-8|0);gc[J[J[a>>2]+36>>2]](a)|0;b=gc[J[J[a>>2]+20>>2]](a,4)|0;d=gc[J[J[a>>2]+20>>2]](a,4)|0;o:{p:switch(b|0){case 0:b=gc[J[J[a>>2]+40>>2]](a)|0;b=(b|0)>0?b+8| -0:0;break o;case 1:break p;default:break o}b=1;if(gc[J[J[a>>2]+20>>2]](a,4)|0)break o;b=gc[J[J[a>>2]+20>>2]](a,4)|0;if(b)break o;b=(gc[J[J[a>>2]+40>>2]](a)|0)+12|0}if((d|0)==1785737827)break n;while(1){gc[J[J[a>>2]+24>>2]](a,b-8|0);gc[J[J[a>>2]+36>>2]](a)|0;b=gc[J[J[a>>2]+20>>2]](a,4)|0;d=gc[J[J[a>>2]+20>>2]](a,4)|0;q:{r:switch(b|0){case 1:b=1;if(gc[J[J[a>>2]+20>>2]](a,4)|0)break q;b=gc[J[J[a>>2]+20>>2]](a,4)|0;if(b)break q;b=(gc[J[J[a>>2]+40>>2]](a)|0)+12|0;break q;case 0:break r;default:break q}b= -gc[J[J[a>>2]+40>>2]](a)|0;b=(b|0)>0?b+8|0:0}if((d|0)!=1785737827)continue;break}}d=gc[J[J[a>>2]+36>>2]](a)|0;J[c+76>>2]=b-8;J[c+72>>2]=d;b=AN(J[c+4>>2],a)}c=J[g+12>>2];if(!c)break d;Rx(J[c+4>>2]);a=J[c+80>>2];if(a){qc(a);J[c+80>>2]=0}a=J[c+68>>2];if(a){qc(a);J[c+68>>2]=0}a=J[c+64>>2];if(!a)break e}qc(a)}qc(c)}qc(g);return b|0}function YH(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,w=0;m=bc-16|0;bc=m;a:{b:{f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b; -g=J[a+56>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break b;i=J[a+56>>2];i=gc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break b;k=J[a+56>>2];k=gc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;j=J[a+56>>2];j=gc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break b;h=J[a+56>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break b;l=J[a+56>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break b;n=J[a+56>>2];n=gc[J[J[n>>2]+28>>2]](n)|0;if((n|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;o=J[a+56>>2];o=gc[J[J[o>> -2]+28>>2]](o)|0;if((o|0)==-1)break b;p=J[a+56>>2];p=gc[J[J[p>>2]+28>>2]](p)|0;if((p|0)==-1)break b;q=J[a+56>>2];q=gc[J[J[q>>2]+28>>2]](q)|0;if((q|0)==-1)break b;r=J[a+56>>2];r=gc[J[J[r>>2]+28>>2]](r)|0;if((r|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;s=J[a+56>>2];s=gc[J[J[s>>2]+28>>2]](s)|0;if((s|0)==-1)break b;t=J[a+56>>2];t=gc[J[J[t>>2]+28>>2]](t)|0;if((t|0)==-1)break b;u=J[a+56>>2];u=gc[J[J[u>>2]+28>>2]](u)|0;if((u|0)==-1)break b;v=J[a+56>>2];v=gc[J[J[v>>2]+28>>2]](v)|0;if((v|0)==-1)break b;J[a+68>> -2]=J[a+68>>2]+4;w=J[a+56>>2];w=gc[J[J[w>>2]+28>>2]](w)|0;if((w|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;c:{i=k|(g<<16|f<<24|i<<8);if(i){g=n|(h<<16|j<<24|l<<8);if(g)break c}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,803852,0);break a}d:{f=J[a+24>>2];e:{if(f>>>0<(i>>>0)/10>>>0)break e;h=J[a+28>>2];j=v|(t<<16|s<<24|u<<8);k=r|(p<<16|o<<24|q<<8);if(h>>>0<(j>>>0)/10>>>0|(k>>>0)/10>>>0>f>>>0)break e;if(h>>>0>=(g>>>0)/10>>>0)break d}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,804324,0);J[a+72>>2]=1;break a}f=J[a+56>>2];h=gc[J[J[f>> -2]+28>>2]](f)|0;if((h|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;l=h&1;if(!l){f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;J[m+8>>2]=f&128?f|-256:f;f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;J[m>>2]=f&128?f|-256:f;f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;J[m+12>>2]=f&128?f|-256:f;f=J[a+56>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;J[m+4>>2]= -f&128?f|-256:f}f:{if(!c&(e|0)!=0|J[a+28>>2]!=-1)break f;f=g+j|0;if(f>>>0<=M[a+32>>2])break f;OA(J[a+40>>2],f,J[a+36>>2])}if(e>>>0>=2){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,804739,0);break a}g:{if((e|0)==1){f=LA(a,J[d>>2]);if(f)if(!(gc[J[J[f>>2]+8>>2]](f)|0))break g;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,805183,0);break a}f=aI(J[a+40>>2],k,j,i,g)}MA(a,l,0);Vm(J[a+76>>2]);g=WH(a,i,g,l,h>>>1&1,f,0,0,m+8|0,m);h:{if(c){_k(J[a+40>>2],g,k,j,w&7);gc[J[J[g>>2]+4>>2]](g);break h}J[g+4>>2]=b;id(J[a+48>>2],g)}if((e|0)==1){c= -J[d>>2];b=0;i:{d=J[a+52>>2];e=J[d+8>>2];if((e|0)<=0)break i;f=J[d>>2];while(1){if((c|0)!=J[J[f+(b<<2)>>2]+4>>2]){b=b+1|0;if((e|0)!=(b|0))continue;break i}break}cj(d,b);break a}a=J[a+48>>2];d=J[a+8>>2];if((d|0)>0){e=J[a>>2];b=0;while(1){if((c|0)==J[J[e+(b<<2)>>2]+4>>2]){cj(a,b);break a}b=b+1|0;if((d|0)!=(b|0))continue;break}}break a}gc[J[J[f>>2]+4>>2]](f);break a}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,781526,0)}bc=m+16|0}function QL(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=zc(16);if(c){J[c+12>>2]= -1665;J[c+4>>2]=1666;J[c>>2]=0;J[c+8>>2]=1667}if(!c)return 7;b=6;a:if(!(!c|!a)){d=gc[J[c+4>>2]](c,208)|0;b=64;if(!d)break a;wc(d+16|0,0,188);J[d+204>>2]=1;J[d+12>>2]=4;J[d+4>>2]=2;J[d+8>>2]=10;J[d>>2]=c;J[a>>2]=d;b=0}j=b;b:{if(b){qc(c);break b}b=J[a>>2];hj(b,247720);hj(b,326676);hj(b,328936);hj(b,255196);hj(b,330900);hj(b,260724);hj(b,333012);hj(b,333920);hj(b,260096);hj(b,261452);hj(b,324192);hj(b,262088);hj(b,324376);hj(b,324648);hj(b,260012);hj(b,252184)}i=J[a>>2];h=bc-432|0;bc=h;c:{c=Hi(239612); -if(!c)break c;while(1){b=0;d:{e:{f:{d=c;e=K[d|0];switch(e|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break e;case 0:break c;case 9:break d;default:break f}}if((e|0)==32)break d}g:{h:{i:{while(1){a=e&255;if(!a){e=b;break g}if((a|0)==58){e=b;break g}a=h+288|0;H[a+b|0]=e;e=b|1;f=K[d+1|0];if(!(!f|(f|0)==58)){H[a+e|0]=f;e=b|2;f=K[d+2|0];if(!f|(f|0)==58)break h;H[a+e|0]=f;e=b|3;f=K[d+3|0];if(!f|(f|0)==58)break i;H[a+e|0]=f;d=d+4|0;e=128;b=b+4|0;if((b|0)==128)break g;e=K[d|0];continue}break}d= -d+1|0;break g}d=d+3|0;break g}d=d+2|0}H[(h+288|0)+e|0]=0;if((d|0)==(c|0)|K[d|0]!=58)break c;a=1;e=d+1|0;b=0;j:{while(1){c=K[e|0];if(!c){c=b;break j}if((c|0)==61){c=b;break j}H[(h+144|0)+b|0]=c;c=b|1;f=a+1|0;e=f+d|0;g=K[e|0];if(!g){a=f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;c=b|2;f=a+2|0;e=f+d|0;g=K[e|0];if(!g){a=f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;c=b|3;f=a+3|0;e=f+d|0;g=K[e|0];if(!g){a=f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;a=a+4|0;e=d+a|0;c=128;b= -b+4|0;if((b|0)!=128)continue;break}a=129}H[(h+144|0)+c|0]=0;if((a|0)==1|K[e|0]!=61)break c;a=1;c=e+1|0;b=0;k:{while(1){f=a;d=b;l:{m:{g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break l;default:break m}}if((g|0)!=32)break l;break k}H[b+h|0]=g;d=b|1;n:{o:{f=a+1|0;c=e+f|0;g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break n;default:break o}}if((g|0)==32)break k}H[d+h|0]=g;d=b|2;p:{q:{f=a+2|0; -c=e+f|0;g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break p;default:break q}}if((g|0)==32)break k}H[d+h|0]=g;d=b|3;r:{s:{f=a+3|0;c=e+f|0;g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break r;default:break s}}if((g|0)==32)break k}H[d+h|0]=g;a=a+4|0;c=e+a|0;d=128;b=b+4|0;if((b|0)!=128)continue;break}f=129}H[d+h|0]=0;t:{u:{a=K[c|0];switch(a|0){case 0:case 9:break t;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break c; -default:break u}}if((a|0)!=32)break c}if((f|0)==1)break c;b=h+288|0;d=h+144|0;v:{if(!i)break v;w:{if(!h|(!b|!d))break w;a=i+20|0;f=J[i+16>>2];e=a+(f<<2)|0;x:{if((f|0)<=0)break x;while(1){if(!Ec(J[J[J[a>>2]>>2]+8>>2],b))break x;a=a+4|0;if(e>>>0>a>>>0)continue;break}}if((a|0)==(e|0))break v;b=J[a>>2];e=J[J[b>>2]+32>>2];if(!e)break w;b=gc[e|0](b,242019)|0;if(!b)break w;b=J[b>>2];if(!b)break w;gc[b|0](J[a>>2],d,h,1)|0}}if(!K[c|0])break c}c=c+1|0;continue}}bc=h+432|0;return j|0}function wSa(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,u=0,v=0,w=0,x=0,y=0,z=0;n=bc-640|0;bc=n;a:{b:{c:{d:{e:{h=J[a+4>>2];if((h|0)>0){while(1){d=e<<3;if(O[d+b>>3]!=O[(a+d|0)+2472>>3])break e;e=e+1|0;if((h|0)!=(e|0))continue;break}break d}if(!h)break d;break b}if((e|0)!=(h|0))break c}g=J[a+8>>2];if((g|0)<=0)break a;e=0;if(g>>>0>=4){d=g&-4;h=a+2728|0;while(1){f=e<<3;O[f+c>>3]=O[f+h>>3];b=f|8;O[b+c>>3]=O[b+h>>3];b=f|16;O[b+c>>3]=O[b+h>>3];b=f|24;O[b+c>>3]=O[b+h>>3];e=e+ -4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}d=g&3;if(!d)break a;while(1){b=e<<3;O[b+c>>3]=O[(a+b|0)+2728>>3];e=e+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}break a}e=0;if((h|0)<=0)break b;while(1){i=0;g=e<<2;k=J[(g+a|0)+1044>>2];l=k-1|0;q=e<<3;d=(e<<4)+a|0;m=(O[q+b>>3]-O[d+16>>3])*O[(a+q|0)+2200>>3]+O[d+1176>>3];f:{if(!(m>=0))break f;i=m;m=+(l|0);if(!(i>m))break f;i=m}g=g+(n+512|0)|0;f=k-2|0;if(R(i)<2147483648)d=~~i;else d=-2147483648;d=(k|0)>1?(d|0)==(l|0)?f:d:d;J[g>>2]=d;i=i-+(d|0);O[n+q>>3]=i; -O[q+(n+256|0)>>3]=1-i;e=e+1|0;if((h|0)!=(e|0))continue;break}e=0;if((h|0)<=1)break b;d=h;while(1){g=d-1|0;e=P(J[((d<<2)+a|0)+1036>>2],J[(n+512|0)+(g<<2)>>2]+e|0);f=d>>>0>2;d=g;if(f)continue;break}}p=J[a+8>>2];if((p|0)>0){g=1<>2]+(P(J[n+512>>2]+e|0,p)<<3)|0;r=J[a+2468>>2];s=J[a+2456>>2];q=(h|0)==31;while(1){g:{if(!q){l=(t<<3)+z|0;f=0;e=0;j=0;if(v>>>0>=4)while(1){O[(e<<3)+r>>3]=O[l+(J[(e<<2)+s>>2]<<3)>>3];d=e|1;O[(d<<3)+r>>3]=O[l+(J[(d<<2)+s>>2]<<3)>> -3];d=e|2;O[(d<<3)+r>>3]=O[l+(J[(d<<2)+s>>2]<<3)>>3];d=e|3;O[(d<<3)+r>>3]=O[l+(J[(d<<2)+s>>2]<<3)>>3];e=e+4|0;j=j+4|0;if((y|0)!=(j|0))continue;break}if(w)while(1){O[(e<<3)+r>>3]=O[l+(J[(e<<2)+s>>2]<<3)>>3];e=e+1|0;f=f+1|0;if((w|0)!=(f|0))continue;break}if((h|0)<=0)break g}o=J[a+2468>>2];u=0;f=g;while(1){h:{if((f|0)<=0)break h;x=f-1|0;d=u<<3;m=O[d+n>>3];i=O[d+(n+256|0)>>3];d=0;if(f>>>0>=3){k=(x>>>1|0)+1&-2;j=0;while(1){e=d<<3;O[(d<<2)+o>>3]=i*O[e+o>>3]+m*O[(e|8)+o>>3];l=d|2;O[(l<<2)+o>>3]=i*O[(l<<3)+ -o>>3]+m*O[(e|24)+o>>3];d=d+4|0;j=j+2|0;if((k|0)!=(j|0))continue;break}}if(x&2)break h;e=(d<<2)+o|0;d=d<<3;O[e>>3]=i*O[d+o>>3]+m*O[(d|8)+o>>3]}f=f>>1;u=u+1|0;if((h|0)!=(u|0))continue;break}}f=(t<<4)+a|0;i=O[f+1688>>3];d=(t<<3)+c|0;m=O[r>>3]*(O[f+1696>>3]-i)+i;O[d>>3]=m;i=O[f+528>>3];i:{if(!(m>3];if(!(m>i))break i}O[d>>3]=i}t=t+1|0;if((t|0)!=(p|0))continue;break}}j:{if((h|0)<=0)break j;j=0;e=0;if(h>>>0>=4){g=h&-4;l=a+2472|0;k=0;while(1){f=e<<3;O[f+l>>3]=O[b+f>>3];d=f|8;O[d+l>>3]=O[b+ -d>>3];d=f|16;O[d+l>>3]=O[b+d>>3];d=f|24;O[d+l>>3]=O[b+d>>3];e=e+4|0;k=k+4|0;if((g|0)!=(k|0))continue;break}}g=h&3;if(!g)break j;while(1){d=e<<3;O[(d+a|0)+2472>>3]=O[b+d>>3];e=e+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}}if((p|0)<=0)break a;j=0;e=0;if(p>>>0>=4){d=p&-4;f=a+2728|0;k=0;while(1){g=e<<3;O[g+f>>3]=O[c+g>>3];b=g|8;O[b+f>>3]=O[b+c>>3];b=g|16;O[b+f>>3]=O[b+c>>3];b=g|24;O[b+f>>3]=O[b+c>>3];e=e+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}d=p&3;if(!d)break a;while(1){b=e<<3;O[(b+a|0)+2728>>3]= -O[b+c>>3];e=e+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}}bc=n+640|0}function ipb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;m=bc-1280|0;bc=m;a:{if(!(K[a+285|0]|K[a+288|0])){c=1029;Dc(a,1029,0,0);break a}if(!c){c=1028;Dc(a,1028,0,0);break a}l=K[d|0];if(l>>>0>=6){c=1053;Dc(a,1053,0,0);break a}if(K[a+325|0]!=3){c=1037;Dc(a,1037,0,0);break a}wc(m+512|0,0,768);wc(m+256|0,255,256);i=wc(m,0,256);f=c-1|0;c=d+1|0;b:{c:{d:{e:{if(l>>>0<=1)while(1){f:switch(f|0){case 1:break b; -case 0:break e;default:break f}j=K[c+1|0];h=K[c|0];if(j>>>0>>0)break c;d=f-2|0;g=j-h|0;if(d>>>0>>0)break d;o=j>>>0>>0;n=j+1|0;g:{if(!(g+1&1)){g=h;c=c+2|0;break g}d=(i+512|0)+P(h,3)|0;H[d|0]=K[c+2|0];H[d+1|0]=K[c+3|0];H[d+2|0]=K[c+4|0];H[i+h|0]=1;g=h+1|0;f=f-5|0;d=f;c=c+5|0}k=o?k:n;if((h|0)==(j|0))continue;while(1){f=(i+512|0)+P(g,3)|0;H[f|0]=K[c|0];H[f+1|0]=K[c+1|0];H[f+2|0]=K[c+2|0];H[g+i|0]=1;H[f+3|0]=K[c+3|0];H[f+4|0]=K[c+4|0];H[f+5|0]=K[c+5|0];f=g+1|0;H[f+i|0]=1;g=g+2|0;d=d-6| -0;c=c+6|0;if((f|0)!=(j|0))continue;break}f=d;continue}d=l&254;if((d|0)==2){o=(d|0)==4;while(1){h:switch(f|0){case 1:break b;case 0:break e;default:break h}d=K[c|0];h=K[c+1|0];if(d>>>0>h>>>0)break c;n=h-d|0;j=n+1|0;if(f-2>>>0<(o?j<<2:j)>>>0)break d;c=c+2|0;p=d+f|0;g=0;f=j&3;if(f)while(1){j=K[c|0];H[d+i|0]=1;H[(i+256|0)+d|0]=j;d=d+1|0;c=c+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}if(n>>>0>=3)while(1){g=K[c|0];H[d+i|0]=1;f=i+256|0;H[f+d|0]=g;g=K[c+1|0];j=d+1|0;H[j+i|0]=1;H[f+j|0]=g;g=K[c+2|0];j=d+2| -0;H[j+i|0]=1;H[f+j|0]=g;j=K[c+3|0];g=d+3|0;H[g+i|0]=1;H[f+g|0]=j;d=d+4|0;c=c+4|0;if((g|0)!=(h|0))continue;break}k=h>>>0>>0?k:h+1|0;f=(p-3|0)-h|0;continue}}j=(d|0)==4;while(1){i:switch(f|0){case 1:break b;case 0:break e;default:break i}d=K[c|0];g=K[c+1|0];if(d>>>0>g>>>0)break c;f=f-2|0;h=(g-d|0)+1|0;if(f>>>0<(j?h<<2:h)>>>0)break d;k=g>>>0>>0?k:g+1|0;c=c+2|0;while(1){h=(i+512|0)+P(d,3)|0;H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];h=K[c+3|0];H[d+i|0]=1;H[(i+256|0)+d|0]=h;f=f-4|0;c=c+4|0; -h=(d|0)==(g|0);d=d+1|0;if(!h)continue;break}continue}}j:{k:switch(K[a+324|0]-1|0){case 0:if(k>>>0<3)break j;c=1054;Dc(a,1054,0,0);break a;case 1:if(k>>>0<5)break j;c=1054;Dc(a,1054,0,0);break a;case 3:break k;default:break j}if(k>>>0<17)break j;c=1054;Dc(a,1054,0,0);break a}d=i+512|0;f=i+256|0;l:{m:{if(!K[a+114|0])break m;c=gc[J[a+152>>2]](1316)|0;if(!c){Dc(a,1,0,0);c=1;break l}J[c+32>>2]=k;H[c+28|0]=l;J[c+4>>2]=1074;J[c>>2]=1075;tc(c+36|0,d,768);tc(c+804|0,f,256);tc(c+1060|0,i,256);g=J[a+700>>2]; -n:{if(g){J[g+8>>2]=c;break n}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=g;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(J[a+516>>2]|(K[a+496|0]|!K[a+432|0]))break m;J[a+516>>2]=c}c=X7(a,l,k,d,f,i)}if(c)break a;if(!K[a+112|0]){c=0;break a}c=gc[J[b+4>>2]](a,b,e)|0;if(c)break a;b=J[e>>2];J[b+36>>2]=k;H[b+32|0]=l;c=0;d=0;while(1){a=b+P(d,5)|0;e=(i+512|0)+P(d,3)|0;H[a+40|0]=K[e|0];H[a+41|0]=K[e+1|0];H[a+42|0]=K[e+2|0];H[a+43|0]=K[(i+256|0)+d|0];H[a+44|0]=K[d+i|0];d=d+ -1|0;if((d|0)!=256)continue;break}break a}c=1028;Dc(a,1028,0,0);break a}c=1054;Dc(a,1054,0,0);break a}c=1028;Dc(a,1028,0,0)}bc=m+1280|0;return c|0}function oga(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;if(!d){d=J[a+584>>2];if(d){k=(c|0)/J[d+8>>2]|0;a:{b:{if(J[d>>2]==1){j=b;break b}if(J[d+16>>2]<(k|0))break a;j=J[d+12>>2];gc[J[d+20>>2]](d,b,k)}c=J[a+600>>2];g=c-J[a+608>>2]|0;d=J[a+604>>2];if((k|0)>0){c=0;while(1){if((g|0)<=3){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-g;if(!gf(a))return-1; -g=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}b=c;f=b;c:{if((b|0)>=(k|0))break c;while(1){e=1;f=b;i=I[(b<<1)+j>>1]&-256;d:{while(1){b=e+f|0;if((k|0)<=(b|0)){h=e;break d}e:{if((i|0)!=K[((b<<1)+j|0)+1|0]<<8){h=e;break e}h=e+1|0;b=h+f|0;if((k|0)<=(b|0))break d;if((i|0)!=K[((b<<1)+j|0)+1|0]<<8)break e;h=129;e=e+2|0;if((e|0)!=129)continue;break c}break}if(h>>>0<=3)continue;break c}break}f=h>>>0>3?f:b}f:{g:{if((f-c&-2)!=2)break g;b=c+1|0;e=L[(c<<1)+j>>1];i=(e&65280)<<16>>16;while(1){if((i|0)!=K[((b<<1)+j|0)+ -1|0]<<8)break g;b=b+1|0;if((f|0)!=(b|0))continue;break}H[d+1|0]=e>>>8;H[d|0]=((c^-1)+f|0)+127;g=g-2|0;d=d+2|0;c=f;break f}if((c|0)>=(f|0))break f;while(1){b=f-c|0;i=(b|0)>=127?127:b;if((i+3|0)>(g|0)){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-g;if(!gf(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}H[d|0]=i;d=d+1|0;g=g-1|0;if((c|0)==(f|0)){c=f;break f}e=0;b=i;l=b&3;if(l)while(1){H[d|0]=K[((c<<1)+j|0)+1|0];d=d+1|0;c=c+1|0;b=b-1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}if(i-1>>>0>=3)while(1){e=(c<< -1)+j|0;H[d|0]=K[e+1|0];H[d+1|0]=K[e+3|0];H[d+2|0]=K[e+5|0];H[d+3|0]=K[e+7|0];d=d+4|0;c=c+4|0;b=b-4|0;if(b)continue;break}g=g-i|0;if((c|0)<(f|0))continue;break}}b=0;h:{if((h|0)<4){h=0;break h}H[d|0]=h+126;H[d+1|0]=K[((f<<1)+j|0)+1|0];g=g-2|0;d=d+2|0}c=c+h|0;if((k|0)>(c|0))continue;break}while(1){if((g|0)<=3){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-g;if(!gf(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}c=b;f=b;i:{if((b|0)>=(k|0))break i;while(1){e=1;f=c;i=L[(c<<1)+j>>1]&255;j:{while(1){c=e+f| -0;if((k|0)<=(c|0)){h=e;break j}k:{if(i^K[(c<<1)+j|0]){h=e;break k}h=e+1|0;c=h+f|0;if((k|0)<=(c|0))break j;if(i^K[(c<<1)+j|0])break k;h=129;e=e+2|0;if((e|0)!=129)continue;break i}break}if(h>>>0<=3)continue;break i}break}f=h>>>0>3?f:c}l:{m:{if((f-b&-2)!=2)break m;c=b+1|0;e=L[(b<<1)+j>>1];while(1){if(K[(c<<1)+j|0]^e&255)break m;c=c+1|0;if((f|0)!=(c|0))continue;break}H[d+1|0]=e;H[d|0]=((b^-1)+f|0)+127;g=g-2|0;d=d+2|0;b=f;break l}if((b|0)>=(f|0))break l;while(1){c=f-b|0;i=(c|0)>=127?127:c;if((i+3|0)>(g| -0)){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-g;if(!gf(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}H[d|0]=i;d=d+1|0;g=g-1|0;if((b|0)==(f|0)){b=f;break l}e=0;c=i;l=c&3;if(l)while(1){H[d|0]=K[(b<<1)+j|0];d=d+1|0;b=b+1|0;c=c-1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}if(i-1>>>0>=3)while(1){e=(b<<1)+j|0;H[d|0]=K[e|0];H[d+1|0]=K[e+2|0];H[d+2|0]=K[e+4|0];H[d+3|0]=K[e+6|0];d=d+4|0;b=b+4|0;c=c-4|0;if(c)continue;break}g=g-i|0;if((b|0)<(f|0))continue;break}}n:{if((h|0)<4){h=0;break n}H[d|0]=h+126;H[d+ -1|0]=K[(f<<1)+j|0];g=g-2|0;d=d+2|0}b=b+h|0;if((k|0)>(b|0))continue;break}c=J[a+600>>2]}J[a+604>>2]=d;J[a+608>>2]=c-g;return 1}fa(77124,70356,390,93934);B()}fa(74413,70356,383,93934);B()}fa(76906,70356,382,93934);B()}function $ub(a){a=a|0;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;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=gc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+(b<<2)|0)+P(J[a+672>>2],3)|0;c=b;b=J[a+656>>2];h=c+b|0;b=(b|0)/J[a+ -584>>2]|0;c=J[a+660>>2];e=K[a+649|0];f=J[a+644>>2];b:{if(!K[a+648|0]){b=f+(b<<2)|0;if(!e)break b;if((c|0)<=(h|0))break a;while(1){H[d+1|0]=K[b+2|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b|0]>>>3;H[d+2|0]=K[b+3|0];b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}b=f+(b<<3)|0;if(e){if((c|0)<=(h|0))break a;while(1){H[d+1|0]=K[b+4|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b|0]>>>3;H[d+2|0]=K[b+6|0];b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)> -2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;d:{if((c|0)!=65535){e=K[d+2|0];e=e<<8|e;if(e)break d}H[d+1|0]=K[b+4|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b|0]>>>3;H[d+2|0]=K[b+6|0];break c}if((e|0)==65535){e=K[b|0]|K[b+1|0]<<8;f=K[b+2|0]|K[b+3|0]<<8;g=P(c,(f<<8|f>>>8)&65535);f=K[d|0];j=K[d+1|0];i=f>>>3&28|j<<5;k=i<<8&64512|i;i=c^65535;g=(g+P(k,i)|0)+32768|0;g=(g>>>16|0)+g|0;k=K[b+4|0]|K[b+5|0]<<8;f=(P(c,(k<<8|k>>>8)&65535)+ -P(i,f<<11&63488|f<<3)|0)+32768|0;H[d+1|0]=g>>>29|(f>>>16|0)+f>>>24&248;c=(P((e<<8|e>>>8)&65535,c)+P(P(i,j&248),257)|0)+32768|0;H[d|0]=g>>>21&224|(c>>>16|0)+c>>>27;break c}i=K[d+1|0];f=K[d|0];j=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;k=K[b+4|0]|K[b+5|0]<<8;l=c^65535;m=P(l,e^65535)^-1;H[d+2|0]=m>>>24;e=P(e,l);l=m>>>16|0;e=(e>>>0)/(l>>>0)|0;c=(c<<16>>>0)/(l>>>0)|0;l=P(c,(g<<8|g>>>8)&65535);g=f>>>3&28|i<<5;g=(l+P(e,g<<8&64512|g)|0)+32767|0;H[d+1|0]=(P(e,f<<11&63488|f<<3)+P(c,(k<<8|k>>>8)&65535)|0)+ -32767>>>24&248|g>>>29;H[d|0]=g>>>21&224|(P(P(e,i&248),257)+P(c,(j<<8|j>>>8)&65535)|0)+32767>>>27}b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+3|0];e:{if(!c)break e;f:{if((c|0)!=255){e=K[d+2|0];if(e)break f}H[d+1|0]=K[b+2|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b|0]>>>3;H[d+2|0]=K[b+3|0];break e}i=K[d|0];j=K[d+1|0];f=i>>>3&28|j<<5;i=i<<3;j=j&-8;if((e|0)==255){g=K[b+2|0];e=c^255;f=(P(e,f&255)+P(c,K[b+1|0])|0)+128| -0;f=(f>>>8&255)+f|0;i=(P(e,i&255)+P(c,K[b|0])|0)+128|0;H[d|0]=f>>>5&224|(i>>>8&255)+i>>>11&31;c=(P(e,j&255)+P(c,g)|0)+128|0;H[d+1|0]=(c>>>8&255)+c>>>8&248|f>>>13&7;break e}g=K[b|0];k=K[b+2|0];l=K[b+1|0];m=c^255;n=P(m,e^255)>>>8^-1;H[d+2|0]=n;o=f&255;f=n&255;e=(P(e,m)>>>0)/(f>>>0)|0;c=(c<<8>>>0)/(f>>>0)|0;f=(P(o,e)+P(c,l)|0)+127|0;H[d+1|0]=(P(e,j&255)+P(c,k)|0)+127>>>8&248|f>>>13&7;H[d|0]=f>>>5&224|(P(e,i&255)+P(c,g)|0)+127>>>11&31}b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue; -break}}d=J[a+680>>2]+J[a+572>>2]|0;h=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];g:{if((c|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-h|0;h:{if((d|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function avb(a){a=a|0;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;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=gc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0; -b=J[a+580>>2];d=(c+(b<<2)|0)+P(J[a+672>>2],3)|0;c=b;b=J[a+656>>2];h=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];e=J[a+644>>2];b:{if(!K[a+648|0]){b=e+(b<<2)|0;if(!f)break b;if((c|0)<=(h|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;H[d+2|0]=K[b+3|0];b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}b=e+(b<<3)|0;if(f){if((c|0)<=(h|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+ -4|0]>>>3;H[d+2|0]=K[b+6|0];b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;d:{if((c|0)!=65535){f=K[d+2|0];f=f<<8|f;if(f)break d}H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;H[d+2|0]=K[b+6|0];break c}if((f|0)==65535){f=K[b+4|0]|K[b+5|0]<<8;e=K[b+2|0]|K[b+3|0]<<8;g=P(c,(e<<8|e>>>8)&65535);e=K[d|0];j=K[d+1|0];i=e>>>3&28|j<<5;k=i<<8&64512|i;i=c^65535; -g=(g+P(k,i)|0)+32768|0;g=(g>>>16|0)+g|0;l=K[b|0]|K[b+1|0]<<8;e=(P(c,(l<<8|l>>>8)&65535)+P(i,e<<11&63488|e<<3)|0)+32768|0;H[d+1|0]=g>>>29|(e>>>16|0)+e>>>24&248;c=(P((f<<8|f>>>8)&65535,c)+P(P(i,j&248),257)|0)+32768|0;H[d|0]=g>>>21&224|(c>>>16|0)+c>>>27;break c}i=K[d+1|0];e=K[d|0];j=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;l=K[b+4|0]|K[b+5|0]<<8;m=c^65535;k=P(m,f^65535)^-1;H[d+2|0]=k>>>24;n=(g<<8|g>>>8)&65535;g=k>>>16|0;c=(c<<16>>>0)/(g>>>0)|0;f=(P(f,m)>>>0)/(g>>>0)|0;k=e>>>3&28|i<<5;g=(P(n,c)+P(f, -k<<8&64512|k)|0)+32767|0;H[d+1|0]=g>>>29|(P(f,e<<11&63488|e<<3)+P(c,(j<<8|j>>>8)&65535)|0)+32767>>>24&248;H[d|0]=g>>>21&224|(P(P(f,i&248),257)+P(c,(l<<8|l>>>8)&65535)|0)+32767>>>27}b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+3|0];e:{if(!c)break e;f:{if((c|0)!=255){f=K[d+2|0];if(f)break f}H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;H[d+2|0]=K[b+3|0];break e}i=K[d|0];j=K[d+1|0];e=i>>>3&28|j<<5; -i=i<<3;j=j&-8;if((f|0)==255){g=K[b|0];f=c^255;i=(P(f,i&255)+P(c,K[b+2|0])|0)+128|0;e=(P(f,e&255)+P(c,K[b+1|0])|0)+128|0;e=(e>>>8&255)+e|0;H[d|0]=(i>>>8&255)+i>>>11&31|e>>>5&224;c=(P(f,j&255)+P(c,g)|0)+128|0;H[d+1|0]=e>>>13&7|(c>>>8&255)+c>>>8&248;break e}g=K[b+2|0];l=K[b+1|0];m=K[b|0];k=c^255;n=P(k,f^255)>>>8^-1;H[d+2|0]=n;o=e&255;e=n&255;f=(P(f,k)>>>0)/(e>>>0)|0;c=(c<<8>>>0)/(e>>>0)|0;e=(P(o,f)+P(c,l)|0)+127|0;H[d+1|0]=e>>>13&7|(P(f,j&255)+P(c,m)|0)+127>>>8&248;H[d|0]=(P(f,i&255)+P(c,g)|0)+127>>> -11&31|e>>>5&224}b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;h=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];g:{if((c|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-h|0;h:{if((d|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function sh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=bc-16|0;bc=j;g=J[a>>2];a:{b:{f=J[a+4>>2];c:{if(!f){f= -0;break c}if(J[a+40>>2])break c;e=f<<1;if((e|0)<0){d=6;break b}if(e){d=10;if(e>>>0>268435455)break b;f=f<<4;d=gc[J[g+4>>2]](g,f)|0;if(!d){d=64;J[a+40>>2]=0;break a}wc(d,0,f);f=J[a+4>>2]}H[a+16|0]=1;J[a+40>>2]=d;i=(f<<3)+d|0;J[a+44>>2]=i;e=J[a+24>>2];if(e)h=e+(I[a+22>>1]<<3)|0;else h=0;J[a+60>>2]=h;k=a- -64|0;e=J[a+28>>2];if(e)h=e+I[a+22>>1]|0;else h=0;J[k>>2]=h;e=J[a+32>>2];if(e)h=e+(I[a+20>>1]<<1)|0;else h=0;J[a+68>>2]=h;e=I[a+22>>1]<<3;J[a+80>>2]=e+i;J[a+76>>2]=d+e}d:{e:{f:{b=I[a+58>>1]+(I[a+22>> -1]+b|0)|0;k=b>>>0<=f>>>0;g:{if(k){b=f;break g}d=10;e=b+7|0;b=e&-8;if(b>>>0>32767)break a;d=J[a+24>>2];if((f|e)<0)break f;h:{i:{j:{if(!b){if(d)gc[J[g+8>>2]](g,d);e=0;J[a+24>>2]=0;i=a+28|0;d=J[i>>2];if(!d)break j;gc[J[g+8>>2]](g,d);break j}h=(b|0)<=(f|0);k:{if(!f){e=gc[J[g+4>>2]](g,b<<3)|0;d=!e<<6;break k}i=gc[J[g+12>>2]](g,f<<3,b<<3,d)|0;e=i?i:d;d=!i<<6}l:{if(e?h|d:1){J[a+24>>2]=e;if(!d)break l;break e}wc((f<<3)+e|0,0,b-f<<3);J[a+24>>2]=e}i=a+28|0;m:{if(!f){e=gc[J[g+4>>2]](g,b)|0;d=!e<<6;break m}e= -J[a+28>>2];d=gc[J[g+12>>2]](g,f,b,e)|0;e=d?d:e;d=!d<<6}if(d|h|!e)break i;wc(f+e|0,0,b-f|0)}J[j+12>>2]=0;J[i>>2]=e;break h}J[j+12>>2]=d;J[a+28>>2]=e;if(d)break e}if(K[a+16|0]){e=Sc(g,8,f<<1,b<<1,J[a+40>>2],j+12|0);J[a+40>>2]=e;d=J[j+12>>2];if(d)break e;d=b<<3;f=f<<3;Zc(d+e|0,f+e|0,f);J[a+44>>2]=d+J[a+40>>2]}J[a+4>>2]=b}if(!(J[a+40>>2]|!b)){f=b<<1;if((f|0)<0){d=6;break d}n:{if(!f){f=0;break n}d=10;if(f>>>0>268435455)break d;d=J[a>>2];b=b<<4;f=gc[J[d+4>>2]](d,b)|0;if(!f){d=64;J[a+40>>2]=0;break a}wc(f, -0,b);b=J[a+4>>2]}H[a+16|0]=1;J[a+40>>2]=f;d=(b<<3)+f|0;J[a+44>>2]=d;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;h=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[h>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;b=I[a+22>>1]<<3;J[a+80>>2]=b+d;J[a+76>>2]=b+f}d=0;J[j+12>>2]=0;b=I[a+56>>1]+(I[a+20>>1]+c|0)|0;c=J[a+8>>2];o:{if(b>>>0>c>>>0){d=10;b=b+3&-4;if(b>>>0>32767)break a;l=a,m=Sc(g,2,c,b,J[a+32>>2],j+12|0),J[l+32>>2]=m;d=J[j+12>>2];if(d)break e;J[a+8>> -2]=b;break o}if(k)break a}d=0;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;c=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[c>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;if(!K[a+16|0])break a;b=I[a+22>>1]<<3;J[a+76>>2]=b+J[a+40>>2];J[a+80>>2]=b+J[a+44>>2];break a}J[a+24>>2]=d;d=6}b=J[a>>2];c=J[a+24>>2];if(c)gc[J[b+8>>2]](b,c);J[a+24>>2]=0;c=J[a+28>>2];if(c)gc[J[b+8>>2]](b,c);J[a+28>>2]=0;c=J[a+32>>2];if(c)gc[J[b+8>>2]](b,c);J[a+32>>2]=0;c=J[a+40>>2]; -if(c)gc[J[b+8>>2]](b,c);J[a+40>>2]=0;c=J[a+52>>2];if(c)gc[J[b+8>>2]](b,c);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+36>>2]=0;J[a+88>>2]=J[a+52>>2];b=J[a+48>>2];J[a+80>>2]=J[a+44>>2];J[a+84>>2]=b;b=J[a+40>>2];J[a+72>>2]=J[a+36>>2];J[a+76>>2]=b;b=J[a+32>>2];J[a+64>>2]=J[a+28>>2];J[a+68>>2]=b;b=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>>2]=b;break a}J[a+40>>2]=0;break a}J[a+40>>2]=0}bc=j+16|0;return d}function Noa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0, -h=0;g=nL(a+16|0);J[695492]=0;h=$(2225,a+384|0)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[a+752>>2]=340520;b=a+756|0;J[b>>2]=0;J[b+4>>2]=0;J[a+764>>2]=0;J[a+768>>2]=0;J[a+772>>2]=0;J[a+776>>2]=0;J[695492]=0;ga(2226,a+768|0,2427620,5)|0;c=J[695492];J[695492]=0;i:{j:{if((c|0)!=1){if(H[a+767|0]>=0)break j;J[a+760>>2]=0;b=J[a+756>>2];break i}b=Z()|0;if(H[a+779|0]<0)qc(J[a+768>>2]);if(H[a+767|0]>=0)break b;qc(J[a+756>>2]);break b}H[a+767|0]=0}f=a+752|0;J[b>>2]=0;I[a+800>>1]=0;J[a+ -792>>2]=0;J[a+796>>2]=0;J[a+784>>2]=0;J[a+788>>2]=0;J[a+804>>2]=0;J[a+808>>2]=0;J[a+812>>2]=0;J[a+816>>2]=0;b=a+836|0;J[b>>2]=0;J[b+4>>2]=0;J[a+832>>2]=340520;J[a+844>>2]=0;J[a+848>>2]=0;J[a+852>>2]=0;J[a+856>>2]=0;J[695492]=0;ga(2226,a+848|0,2427620,5)|0;c=J[695492];J[695492]=0;k:{l:{if((c|0)!=1){if(H[a+847|0]>=0)break l;J[a+840>>2]=0;b=J[a+836>>2];break k}b=Z()|0;if(H[a+859|0]<0)qc(J[a+848>>2]);if(H[a+847|0]>=0)break c;qc(J[a+836>>2]);break c}H[a+847|0]=0}J[b>>2]=0;I[a+880>>1]=0;J[a+872>>2]=0;J[a+ -876>>2]=0;J[a+864>>2]=0;J[a+868>>2]=0;J[a+884>>2]=0;J[a+888>>2]=0;J[a+892>>2]=0;J[a+896>>2]=0;J[695492]=0;d=$(2278,a+920|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;c=$(2278,a+924|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[a+944>>2]=2427564;b=a+968|0;J[b>>2]=0;J[b+4>>2]=0;J[a+952>>2]=0;J[a+956>>2]=0;J[a+964>>2]=b;J[a+976>>2]=0;J[a+980>>2]=0;J[a+948>>2]=0;J[a+984>>2]=0;J[a+988>>2]=0;J[a+992>>2]=0;J[a+996>>2]=0;J[a+1E3>>2]=0;J[a+1004>>2]=0;b=a+1024|0;J[b>>2]=0;J[b+4>>2]=0;b= -a+1032|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1040|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1048|0;J[b>>2]=0;J[b+4>>2]=0;H[a+1056|0]=0;b=a+1064|0;J[b>>2]=1E3;J[b+4>>2]=0;J[695492]=0;e=$(27,32008)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[e+4>>2]=1E3;d=e+32008|0;c=e+8|0;b=c;while(1){J[b+128>>2]=0;J[b+132>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+152>>2]=0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+120>>2]=0;J[b+112>>2]= -0;J[b+116>>2]=0;J[b+88>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;b=b+160|0;if((d|0)!=(b|0))continue;break}J[a+936>>2]=0;H[a+928|0]=1;b=a+1096|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1088|0;J[b>>2]=0;J[b+4>>2]=1072693248;b=a+1080|0;J[b>>2]=0;J[b+4>>2]=1072693248;H[a+1072|0]=0;J[a+1060>>2]=c;b=a+1104|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1136|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1144|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1200|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1192|0;J[b>>2]=-1717986918;J[b+4>>2]=1069128089;b=a+1160| -0;J[b>>2]=4;J[b+4>>2]=1;b=a+1152|0;J[b>>2]=8;J[b+4>>2]=4;b=a+1208|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1216|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1224|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1232|0;J[b>>2]=8;J[b+4>>2]=4;b=a+1240|0;J[b>>2]=4;J[b+4>>2]=1;J[a+912>>2]=0;J[a+916>>2]=0;J[a+904>>2]=0;J[a+1264>>2]=0;J[a+1268>>2]=0;b=a+1269|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;J[a+824>>2]=f;return a|0}b=Z()|0;break a}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;gT(a+944|0);Ed(c)}Ed(d)}kn(a+ -832|0)}kn(f)}ln(h)}ln(g);ba(b|0);B()}function sva(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0;i=bc-32|0;bc=i;x=2412256;a:{b:{j=K[a+89|0];n=J[a+92>>2];c:{if(((n|0)<2?j:0)|!j&(n|0)<3)break c;x=2378639;j=J[a+96>>2];if((j|0)<=0)break c;q=J[a+132>>2];r=J[a+128>>2];s=J[a+144>>2];y=J[a+140>>2];t=J[a+108>>2];u=J[a+104>>2];v=J[a+120>>2];z=J[a+116>>2];while(1){a=b+2|0;if((j|0)<=(a|0))a=b+1|0;else{A=b+1| -0;d:{e:{f:{if((b|0)<(z|0)|(b|0)>(v|0))while(1){a=a+1|0;if(((a|0)%(n|0)|0)!=(b|0))break f;if((a|0)!=(j|0))continue;break d}if((b|0)<(y|0)|(b|0)>(s|0))while(1){a=a+1|0;if(((a|0)%(n|0)|0)!=(b|0)){a=Kc(i+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if((a|0)!=(j|0))continue;break d}if((b|0)>=(v|0))break e;G=(b-q<<2)+r|0;H=(b-t<<2)+u|0;I=(A-q<<2)+r|0;L=(A-t<<2)+u|0;while(1){g:{C=a+1|0;c=(C|0)%(n|0)|0;if((c|0)==(b|0))break g;h:{i:{j:{k:{if((b| -0)<(s|0)){if((a|0)<(z|0)|(a|0)>(v|0))break k;if((a|0)<(y|0)|(a|0)>(s|0))break j;if((c|0)<(z|0)|(c|0)>(v|0))break i;if((c|0)<(y|0)|(c|0)>(s|0))break h;f=J[H>>2];k=J[(a-t<<2)+u>>2];w=f-k|0;l=J[(c-q<<2)+r>>2];d=J[(a-q<<2)+r>>2];e=l-d|0;m=J[G>>2];D=d-m|0;c=J[(c-t<<2)+u>>2];g=c-k|0;a=P(w,e)+P(D,g)|0;o=J[L>>2];E=o-k|0;p=J[I>>2];F=d-p|0;h=P(e,E)+P(g,F)|0;l:{if(!(a|h)){h=P(e,m-d|0)+P(g,w)|0;w=(h|0)<0?-1:(h|0)!=0;h=P(e,m-l|0)+P(g,f-c|0)|0;a=1;if((P(w,(h|0)<0?-1:(h|0)!=0)|0)<=0)break l;d=P(e,p-d|0)+P(g,E)| -0;h=(d|0)<0?-1:(d|0)!=0;d=P(e,p-l|0)+P(g,o-c|0)|0;a=1;if((P(h,(d|0)<0?-1:(d|0)!=0)|0)<=0)break l;d=p-m|0;e=o-f|0;g=P(d,D)+P(e,k-f|0)|0;k=P(d,F)+P(e,k-o|0)|0;a=1;if((P((g|0)<0?-1:(g|0)!=0,(k|0)<0?-1:(k|0)!=0)|0)<=0)break l;a=P(d,l-m|0)+P(e,c-f|0)|0;f=(a|0)<0?-1:(a|0)!=0;a=P(d,l-p|0)+P(e,c-o|0)|0;a=(P(f,(a|0)<0?-1:(a|0)!=0)|0)<=0;break l}e=m-l|0;l=o-f|0;g=c-f|0;c=p-m|0;e=P(e,l)+P(g,c)|0;f=P(l,m-d|0)+P(c,k-f|0)|0;if((P((e|0)<0?-1:(e|0)!=0,(f|0)<0?-1:(f|0)!=0)|0)<=0)a=(P((a|0)<0?-1:(a|0)!=0,(h|0)<0?-1: -(h|0)!=0)|0)<=0;else a=0}if(!a)break g;x=2412288;break c}a=Kc(i+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=Kc(i+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=Kc(i+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=Kc(i+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0; -if((b|0)!=1)break b;break a}a=Kc(i+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=C;if((j|0)!=(a|0))continue;break}break d}a=Kc(i+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}while(1){a=a+1|0;if(((a|0)%(n|0)|0)==(b|0)){if((a|0)!=(j|0))continue;break d}break}a=Kc(i+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a= -A}b=a;if((j|0)!=(b|0))continue;break}}bc=i+32|0;return x|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function eX(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=bc-176|0;bc=e;a:{if(b&384){Td(2350134,11,1,c);break a}b:{if(!(b&1))break b;g=J[a+72>>2];if(!g)break b;d=bc-80|0;bc=d;Td(2350347,13,1,c);H[d+79|0]=0;H[d+78|0]=9;f=J[g+4>>2];J[d+68>>2]=J[g>>2];J[d+72>>2]=f;i=d+78|0;J[d+64>>2]=i;cd(c,2350361,d- -64|0);f=J[g+12>>2];J[d+52>>2]=J[g+8>>2];J[d+56>>2]=f;J[d+48>>2]=i;cd(c,2350410,d+48| -0);J[d+36>>2]=J[g+16>>2];J[d+32>>2]=i;cd(c,2350536,d+32|0);if(!(!J[g+24>>2]|!J[g+16>>2]))while(1){l=d+78|0;J[d+16>>2]=l;J[d+20>>2]=h;cd(c,2350588,d+16|0);i=J[g+24>>2];f=bc-48|0;bc=f;H[f+46|0]=9;H[f+47|0]=0;H[f+45|0]=9;j=P(h,52)+i|0;i=J[j+4>>2];J[f+36>>2]=J[j>>2];J[f+40>>2]=i;i=f+45|0;J[f+32>>2]=i;cd(c,2350976,f+32|0);J[f+20>>2]=J[j+24>>2];J[f+16>>2]=i;cd(c,2350993,f+16|0);J[f+4>>2]=J[j+32>>2];J[f>>2]=i;cd(c,2351062,f);bc=f+48|0;J[d>>2]=l;cd(c,2350638,d);h=h+1|0;if(h>>>0>2])continue;break}Td(2350687, -2,1,c);bc=d+80|0}if(!(!(b&2)|!J[a+72>>2])){Td(2358768,36,1,c);g=J[a+88>>2];J[e+160>>2]=J[a+84>>2];J[e+164>>2]=g;cd(c,2358805,e+160|0);g=J[a+96>>2];J[e+144>>2]=J[a+92>>2];J[e+148>>2]=g;cd(c,2358823,e+144|0);g=J[a+108>>2];J[e+128>>2]=J[a+104>>2];J[e+132>>2]=g;cd(c,2358841,e+128|0);dX(J[a+12>>2],J[J[a+72>>2]+16>>2],c);Td(2350687,2,1,c)}c:{if(!(b&8)|!J[a+72>>2])break c;g=P(J[a+104>>2],J[a+108>>2]);if(!g)break c;d=J[a+156>>2];while(1){dX(d,J[J[a+72>>2]+16>>2],c);d=d+5644|0;k=k+1|0;if((g|0)!=(k|0))continue; -break}}if(!(b&16))break a;h=J[a+188>>2];Td(2358495,37,1,c);g=J[h>>2];b=J[h+4>>2];a=J[h+12>>2];J[e+120>>2]=J[h+8>>2];J[e+124>>2]=a;J[e+112>>2]=g;J[e+116>>2]=b;cd(c,2358533,e+112|0);Td(2358600,17,1,c);if(!(!J[h+28>>2]|!J[h+24>>2])){d=0;while(1){a=J[h+28>>2]+P(d,24)|0;f=L[a>>1];g=J[a+8>>2];b=J[a+12>>2];J[e+96>>2]=J[a+16>>2];J[e+88>>2]=g;J[e+92>>2]=b;J[e+80>>2]=f;cd(c,2358618,e+80|0);d=d+1|0;if(d>>>0>2])continue;break}}Td(2358490,4,1,c);f=J[h+40>>2];d:{if(!f)break d;g=J[h+36>>2];if(!g)break d; -a=0;d=0;if(g>>>0>=4){b=g&-4;while(1){a=J[(f+P(d|3,40)|0)+4>>2]+(J[(f+P(d|2,40)|0)+4>>2]+(J[(f+P(d|1,40)|0)+4>>2]+(J[(f+P(d,40)|0)+4>>2]+a|0)|0)|0)|0;d=d+4|0;m=m+4|0;if((b|0)!=(m|0))continue;break}}b=g&3;if(b)while(1){a=J[(f+P(d,40)|0)+4>>2]+a|0;d=d+1|0;n=n+1|0;if((b|0)!=(n|0))continue;break}if(!a)break d;Td(2358649,16,1,c);if(J[h+36>>2]){k=J[h+40>>2];i=0;while(1){j=P(i,40);m=J[(j+k|0)+4>>2];J[e+68>>2]=m;J[e+64>>2]=i;cd(c,2358666,e- -64|0);k=J[h+40>>2];e:{if(!m)break e;d=0;if(!J[(j+k|0)+16>>2])break e; -while(1){l=J[(j+J[h+40>>2]|0)+16>>2]+P(d,24)|0;n=J[l>>2];f=J[l+4>>2];g=J[l+8>>2];b=J[l+12>>2];a=J[l+20>>2];J[e+56>>2]=J[l+16>>2];J[e+60>>2]=a;J[e+48>>2]=g;J[e+52>>2]=b;J[e+40>>2]=n;J[e+44>>2]=f;J[e+32>>2]=d;cd(c,2358702,e+32|0);d=d+1|0;if((m|0)!=(d|0))continue;break}k=J[h+40>>2]}a=j+k|0;f:{if(!J[a+24>>2])break f;d=0;if(!J[a+20>>2])break f;while(1){a=J[(j+k|0)+24>>2]+P(d,24)|0;f=L[a>>1];g=J[a+8>>2];b=J[a+12>>2];J[e+16>>2]=J[a+16>>2];J[e+8>>2]=g;J[e+12>>2]=b;J[e>>2]=f;cd(c,2358618,e);d=d+1|0;k=J[h+ -40>>2];if(d>>>0>2])continue;break}}i=i+1|0;if(i>>>0>2])continue;break}}Td(2358490,4,1,c)}Td(2350687,2,1,c)}bc=e+176|0}function Aba(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;g=bc+-64|0;bc=g;a:{b:{c:{d=J[a+584>>2];if(d){if(!J[d+16>>2])break c;c=zc(40);J[c>>2]=0;c=zf(d+624|0,1,c,4);k=cc;d:{e:{while(1){if(f)break d;J[695492]=0;_(668,d|0);j=J[695492];J[695492]=0;if((j|0)==1)break b;i=-1;f:{g:{if(!j)break g;f=J[695493];if(!f)break g;i=Jc(J[j>>2],c,k);if(!i)break f;cc= -f}f=cc;if((i|0)!=1)break e;continue}break}break a}e=1}qc(c);h:{if(!e)break h;if((EO(d,1)|0)!=1)break h;i:{if(K[a+13|0]&4){e=J[a+72>>2];c=J[a+68>>2];f=Km(a);break i}c=J[a+60>>2]-J[a+472>>2]|0;e=J[a+100>>2];e=c>>>0>>0?c:e;c=J[a+56>>2];f=dT(a)}J[d+840>>2]=f;j:{if(!b){b=c;break j}if(L[a+138>>1]!=2){b=c;break j}b=0;f=L[d+834>>1];if(0-f>>>0>c>>>0)b=((c+f|0)-1>>>0)/(f>>>0)|0;c=L[d+836>>1];if(0-c>>>0<=e>>>0){e=0;break j}e=((c+e|0)-1>>>0)/(c>>>0)|0}c=J[d+28>>2];f=J[d+32>>2];if(!(c>>>0>=b>>>0&f>>>0>=e>>> -0)){i=J[a+628>>2];J[g+60>>2]=f;J[g+56>>2]=c;J[g+52>>2]=e;J[g+48>>2]=b;ae(i,97691,79889,g+48|0);c=J[d+28>>2]}f=J[d+32>>2];if(!(f>>>0<=e>>>0&b>>>0>=c>>>0)){a=J[a+628>>2];J[g+12>>2]=f;J[g+8>>2]=c;J[g+4>>2]=e;J[g>>2]=b;Nc(a,97691,80209,g);break h}c=J[d+36>>2];e=L[a+138>>1];if((c|0)!=(((e|0)!=1?1:L[a+98>>1])|0)){Nc(J[a+628>>2],97691,80561,0);break h}if(J[d+212>>2]!=L[a+84>>1]){Nc(J[a+628>>2],97691,80837,0);break h}c=J[d+216>>2];b=J[c+8>>2];k:{if((e|0)==1){e=L[d+834>>1];f=L[d+836>>1];c=J[c+12>>2];l:{if((e| -0)==(b|0)&(f|0)==(c|0))break l;i=J[a+628>>2];J[g+44>>2]=f;J[g+40>>2]=e;J[g+36>>2]=c;J[g+32>>2]=b;ae(i,97691,81285,g+32|0);b=J[d+216>>2];if(!(J[b+8>>2]<=L[d+834>>1]&J[b+12>>2]<=L[d+836>>1])){Nc(J[a+628>>2],97691,81573,0);break h}if(ts(a,33918))break l;b=J[a+628>>2];c=J[d+216>>2];e=J[c+12>>2];J[g+16>>2]=J[c+8>>2];J[g+20>>2]=e;ae(b,97691,81820,g+16|0);b=J[d+216>>2];I[d+834>>1]=J[b+8>>2];I[d+836>>1]=J[b+12>>2]}b=J[d+36>>2];if((b|0)<2)break k;c=J[d+216>>2];h=1;while(1){e=c+P(h,88)|0;if(!(J[e+8>>2]!=1| -J[e+12>>2]!=1)){h=h+1|0;if((b|0)!=(h|0))continue;break k}break}h=0;Nc(J[a+628>>2],97691,81920,0);break h}if((b|0)==1&J[c+12>>2]==1)break k;Nc(J[a+628>>2],97691,81920,0);break h}m:{n:{if(!(L[a+138>>1]!=1|L[d+832>>1]!=6|J[d+924>>2]!=1)){J[d+40>>2]=3;J[d+44>>2]=2;break n}J[d+40>>2]=0;J[d+44>>2]=0;if(L[a+138>>1]!=1)break n;b=0;h=655;c=1;if(L[d+834>>1]!=1)break m;c=1;if(L[d+836>>1]!=1)break m}b=1;h=645;c=0}J[d+68>>2]=c;J[a+556>>2]=h;J[a+548>>2]=h;J[a+540>>2]=h;f=0;e=0;c=zc(40);J[c>>2]=0;c=zf(d+624|0,1, -c,4);h=cc;o:{p:{while(1){if(f)break o;J[695492]=0;$(77,d|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break b;i=-1;q:{r:{if(!j)break r;f=J[695493];if(!f)break r;i=Jc(J[j>>2],c,h);if(!i)break q;cc=f}f=cc;if((i|0)!=1)break p;continue}break}break a}e=1}qc(c);h=(e|0)!=0;if(!e|b)break h;a=J[a+584>>2];c=J[d+216>>2];e=0;i=0;h=J[d+36>>2];s:{if((h|0)>0)while(1){f=J[c+8>>2];j=J[c+12>>2];k=zO(a,J[c+28>>2]<<3,j<<3);b=0;if(!k)break s;J[(a+(i<<2)|0)+844>>2]=k;c=c+88|0;e=P(f,j)+e|0;i=i+1|0;if((h|0)!=(i|0))continue; -break}J[a+888>>2]=e;b=1}if(!b){h=0;break h}J[d+884>>2]=8;h=1}bc=g- -64|0;return h|0}fa(75254,70490,691,97691);B()}fa(79097,70490,692,97691);B()}a=Z()|0;qc(c);ba(a|0);B()}qc(c);ef(j,f);B()}function Sl(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;l=bc-32|0;bc=l;d=c-b|0;a:{if((d|0)<=-2){a=Kc(l+8|0,2382816,2373759,178,2411600,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}b:{c:{if((d|0)==-1){b=J[a+16>>2];if((b|0)<=J[a+20>>2]){c= -J[a>>2];d=J[c+16>>2];gc[d|0](gc[J[c+4>>2]](J[a+4>>2],b-J[a+8>>2]|0)|0,(J[a+20>>2]-J[a+16>>2]|0)+1|0)}b=J[a+4>>2];if(b)qc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0;break c}e=J[a+12>>2];d=J[a+8>>2];if(!((e|0)<(c|0)|(d|0)>(b|0))){e=J[a+16>>2];d:{e:{if((e|0)>(b|0)){e=J[a>>2];h=J[e+8>>2];g=gc[J[e+4>>2]](J[a+4>>2],b-d|0)|0;e=J[a+16>>2];d=b;break e}if((b|0)<=(e|0))break d;g=J[a>>2];h=J[g+16>>2];g=gc[J[g+4>>2]](J[a+4>>2],e-d|0)|0;e=b;d=J[a+16>>2]}gc[h|0](g,e-d|0)}d=J[a+20>>2];f:{g:{if((d| -0)<(c|0)){e=J[a>>2];h=J[e+8>>2];g=gc[J[e+4>>2]](J[a+4>>2],(d-J[a+8>>2]|0)+1|0)|0;e=J[a+20>>2];d=c;break g}if((c|0)>=(d|0))break f;d=J[a>>2];h=J[d+16>>2];g=gc[J[d+4>>2]](J[a+4>>2],(c-J[a+8>>2]|0)+1|0)|0;e=c;d=J[a+20>>2]}gc[h|0](g,d-e|0)}J[a+20>>2]=c;J[a+16>>2]=b;break c}f=e;e=(d|0)>(e|0);h=e?b:f;g=e?b:d;if((g|0)>(b|0))while(1){d=h-g|0;d=(d|0)>=32768?32768:d;g=g-((d|0)<=8?8:d)|0;if((g|0)>(b|0))continue;break}if((c|0)>(h|0))while(1){d=h-g|0;d=(d|0)>=32768?32768:d;h=((d|0)<=8?8:d)+h|0;if((h|0)<(c|0))continue; -break}d=P(J[J[a>>2]>>2],(h-g|0)+1|0);k=wc(rc(d),0,d);h:{d=J[a+16>>2];i:{j:{if((d|0)>(b|0)){d=J[a>>2];e=J[d+8>>2];d=J[d+4>>2];J[695492]=0;d=aa(d|0,k|0,b-g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;f=J[a+16>>2];J[695492]=0;da(e|0,d|0,f-b|0);d=J[695492];J[695492]=0;if((d|0)==1)break i;e=J[a+16>>2];break j}e=b;if((b|0)<=(d|0))break j;e=J[a+4>>2];f=J[a>>2];j=J[f+16>>2];f=J[f+4>>2];i=J[a+8>>2];J[695492]=0;d=aa(f|0,e|0,d-i|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[a+16>>2];J[695492]=0; -da(j|0,d|0,b-e|0);d=J[695492];J[695492]=0;e=b;if((d|0)==1)break i}f=J[a+20>>2];k:{if((f|0)<(c|0)){d=J[a>>2];j=J[d+8>>2];d=J[d+4>>2];J[695492]=0;d=aa(d|0,k|0,(f-g|0)+1|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;f=J[a+20>>2];J[695492]=0;da(j|0,d|0,c-f|0);d=J[695492];J[695492]=0;if((d|0)==1)break i;d=J[a+20>>2];break k}d=c;if((f|0)<=(d|0))break k;d=J[a+4>>2];f=J[a>>2];j=J[f+16>>2];f=J[f+4>>2];i=J[a+8>>2];J[695492]=0;d=aa(f|0,d|0,(c-i|0)+1|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;f=J[a+ -20>>2];J[695492]=0;da(j|0,d|0,f-c|0);f=J[695492];J[695492]=0;d=c;if((f|0)==1)break i}if((d|0)<(e|0))break h;f=J[a>>2];j=J[f+12>>2];f=J[f+4>>2];J[695492]=0;f=aa(f|0,k|0,e-g|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break i;i=J[a+4>>2];m=J[J[a>>2]+4>>2];n=J[a+8>>2];J[695492]=0;i=aa(m|0,i|0,e-n|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break i;J[695492]=0;ia(j|0,f|0,i|0,(d-e|0)+1|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break h}na(ea(0)|0)|0;qc(k);J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!= -1)break a;a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break b;ba(a|0);B()}d=J[a+4>>2];if(d)qc(d);J[a+20>>2]=c;J[a+16>>2]=b;J[a+12>>2]=h;J[a+8>>2]=g;J[a+4>>2]=k}bc=l+32|0;return}ea(0)|0;yc()}B()}function uba(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0),l=Q(0),m=0;e=bc-144|0;bc=e;f=J[a+584>>2];cy(a,1,0);a:{b:{c:{if(f){if(J[f+16>>2])break c;J[f+36>>2]=1;J[f+40>>2]=0;b=zc(40);J[b>>2]=0;b=zf(f+624|0,1,b,4);i=cc;d:{e:{while(1){if(d)break d;J[695492]=0;_(96,f|0);d=J[695492]; -J[695492]=0;if((d|0)==1){a=Z()|0;qc(b);ba(a|0);B()}c=-1;f:{g:{if(!d)break g;g=J[695493];if(!g)break g;c=Jc(J[d>>2],b,i);if(!c)break f;cc=g}d=cc;if((c|0)!=1)break e;continue}break}qc(b);ef(d,g);B()}h=1}qc(b);h:{if(!h)break h;b=L[a+90>>1];I[f+832>>1]=b;i:{j:switch(b-3|0){case 3:I[f+834>>1]=L[a+204>>1];I[f+836>>1]=L[a+206>>1];J[e+80>>2]=e+140;if(ce(a,532,e+80|0))break i;b=L[a+84>>1];J[e+112>>2]=0;b=1<>2]=k;l=Q(b>>1);N[e+128>>2]=l;N[e+124>>2]=k;N[e+120>>2]=l;N[e+116>>2]=k;J[e+64>> -2]=e+112;$d(a,532,e- -64|0);break i;case 0:case 1:a=J[a+628>>2];J[e+96>>2]=b;Nc(a,97712,82534,e+96|0);break h;default:break j}I[f+834>>1]=1;I[f+836>>1]=1}b=L[a+84>>1];if((b|0)!=8){a=J[a+628>>2];J[e+48>>2]=b;Nc(a,97712,82664,e+48|0);break h}J[f+72>>2]=8;k:{if(K[a+13|0]&4){b=L[f+836>>1]<<3;if(M[a+72>>2]%(b>>>0)|0){a=J[a+628>>2];J[e+32>>2]=b;Nc(a,97712,82778,e+32|0);break h}b=L[f+834>>1]<<3;if(!(M[a+68>>2]%(b>>>0)|0))break k;a=J[a+628>>2];J[e+16>>2]=b;Nc(a,97712,82986,e+16|0);break h}b=J[a+100>>2];if(b>>> -0>=M[a+60>>2])break k;j=b;b=L[f+836>>1]<<3;if(!((j>>>0)%(b>>>0)|0))break k;a=J[a+628>>2];J[e>>2]=b;Nc(a,97712,86966,e);break h}l:{if(K[f+928|0]&3){b=J[f+912>>2];if(b)if(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24)|(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24)))break l;b=J[a+584>>2];cy(a,0,0);if(!BO(b,J[b+920>>2]))break h;c=0;i=0;d=zc(40);J[d>>2]=0;g=zf(b+624|0,1,d,4);j=cc;m:{n:{while(1){if(c)break m;J[695492]=0;IJ(b,1);d=J[695492];J[695492]=0;if((d|0)==1)break b;h=-1;o:{p:{if(!d)break p;c=J[695493]; -if(!c)break p;h=Jc(J[d>>2],g,j);if(!h)break o;cc=c}c=cc;if((h|0)!=1)break n;continue}break}break a}i=1}qc(g);if(!i)break h;c=J[b+928>>2];q:{if(!(c&1))break q;d=J[b+88>>2];if(d)J[d+128>>2]=0;if(L[b+832>>1]!=6)break q;d=J[b+92>>2];if(!d)break q;J[d+128>>2]=0}r:{if(!(c&2))break r;c=J[b+120>>2];if(c)J[c+276>>2]=0;c=J[b+136>>2];if(c)J[c+276>>2]=0;if(L[b+832>>1]!=6)break r;c=J[b+124>>2];if(c)J[c+276>>2]=0;c=J[b+140>>2];if(!c)break r;J[c+276>>2]=0}c=J[b+912>>2];if(c)qc(c);J[b+916>>2]=1E3;c=zc(1E3);J[b+912>> -2]=c;if(!c){J[b+916>>2]=0;Nc(J[J[b+828>>2]+628>>2],87245,87391,0);break h}J[b+796>>2]=662;J[b+792>>2]=663;J[b+788>>2]=664;J[b+24>>2]=b+780;c=0;i=0;d=zc(40);J[d>>2]=0;g=zf(b+624|0,1,d,4);j=cc;s:{t:{while(1){if(c)break s;J[695492]=0;_(670,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;h=-1;u:{v:{if(!d)break v;c=J[695493];if(!c)break v;h=Jc(J[d>>2],g,j);if(!h)break u;cc=c}c=cc;if((h|0)!=1)break t;continue}break}break a}i=1}qc(g);if(!i)break h;J[a+12>>2]=J[a+12>>2]|8;J[a+48>>2]=J[a+48>>2]|4;break l}J[a+ -48>>2]=J[a+48>>2]&-5}J[f+796>>2]=665;J[f+792>>2]=666;J[f+788>>2]=667;J[f+24>>2]=f+780;m=1}bc=e+144|0;return m|0}fa(75254,70490,1172,97712);B()}fa(82240,70490,1173,97712);B()}a=Z()|0;qc(g);ba(a|0);B()}qc(g);ef(d,c);B()}function Mp(a,b,c){var d=0,e=0,f=0,g=0,h=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;d=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=d+(K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24))|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;d=K[c+64|0]|K[c+ -65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24)|b<>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;if((e|0)>=8){f=c+72|0;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);while(1){e=b+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330|0]=e>>>16;H[c+331|0]=e>>>24;H[(b+c|0)+72|0]=d;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);if((b|0)>=255){d=J[a+1096>>2];gc[J[J[d>>2]+44>>2]](d,b&255)|0;b=J[a+1096>>2];gc[J[J[b>>2]+16>>2]](b,f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<< -24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0;H[c+331|0]=0;b=0}d=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=d;H[c+65|0]=d>>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}}b=(K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24))+1|0;H[c+32|0]=b;H[c+33|0]=b>>>8;H[c+34|0]=b>>>16;H[c+35|0]=b>>>24;g=K[c+36|0]|K[c+37|0]<<8|(K[c+38|0]<< -16|K[c+39|0]<<24);if((g|0)<=(b|0)){h=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);f=h+1|0;H[c+24|0]=f;H[c+25|0]=f>>>8;H[c+26|0]=f>>>16;H[c+27|0]=f>>>24;f=g+(1<>>8;H[c+38|0]=f>>>16;H[c+39|0]=f>>>24}if((b|0)>=(K[c+44|0]|K[c+45|0]<<8|(K[c+46|0]<<16|K[c+47|0]<<24))){b=(K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24))+e|0;H[c+68|0]=b;H[c+69|0]=b>>>8;H[c+70|0]=b>>>16;H[c+71|0]=b>>>24;d=(K[c+56|0]|K[c+57|0]<<8|(K[c+58|0]<<16|K[c+59|0]<<24))<>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;if((b|0)>=8){f=c+72|0;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);while(1){e=b+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330|0]=e>>>16;H[c+331|0]=e>>>24;H[(b+c|0)+72|0]=d;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);if((b|0)>=255){d=J[a+1096>>2];gc[J[J[d>>2]+44>>2]](d,b&255)|0;b=J[a+1096>>2];gc[J[J[b>>2]+16>>2]](b,f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0;H[c+331|0]= -0;b=0}d=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=d;H[c+65|0]=d>>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}}H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=1;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;a=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);H[c+24|0]=a;H[c+25| -0]=a>>>8;H[c+26|0]=a>>>16;H[c+27|0]=a>>>24;a=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);H[c+36|0]=a;H[c+37|0]=a>>>8;H[c+38|0]=a>>>16;H[c+39|0]=a>>>24;a=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24);H[c+44|0]=a;H[c+45|0]=a>>>8;H[c+46|0]=a>>>16;H[c+47|0]=a>>>24}}function We(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,w=0,y=0,B=0,C=0,D=0,E=0;o=bc-16|0;bc=o;A(+b);e=v(1)|0;l=v(0)|0;A(+a);f=v(1)|0;c=v(0)|0;r=e>>>20|0;s=r&2047;t=s-1086|0;j=f>>>20| -0;a:{b:{if(t>>>0>4294967167&j-2047>>>0>=4294965250)break b;q=l<<1;g=e<<1|l>>>31;h=g+2097152|0;if(!q&(h|0)==2097152|h>>>0<2097152){d=1;if(!(g|q)|!c&(f|0)==1072693248)break a;h=f<<1;f=c;c=h|c>>>31;f=f<<1;if(!((!q&(g|0)==-2097152|g>>>0<4292870144)&(!f&(c|0)==-2097152|c>>>0<4292870144))){d=a+b;break a}if(!f&(c|0)==2145386496)break a;d=((e|0)>0|(e|0)>=0)^c>>>0>2145386495?0:b*b;break a}g=(f<<1|c>>>31)+2097152|0;if(!(c<<1)&(g|0)==2097152|g>>>0<2097152){d=a*a;if((f|0)<0)d=(yR(l,e)|0)==1?-d:d;if((e|0)>0|(e| -0)>=0)break a;c=bc-16|0;O[c+8>>3]=1/d;d=O[c+8>>3];break a}if((f|0)<0){c=yR(l,e);if(!c){a=a-a;d=a/a;break a}j=j&2047;p=((c|0)==1)<<18;A(+a);f=v(1)|0;c=v(0)|0;f=f&2147483647}if(t>>>0<=4294967167){d=1;g=(f|0)==1072693248;if(g&!c)break a;if(s>>>0<=957){d=((c|0)!=0&g|f>>>0>1072693248?b:-b)+1;break a}if((!c&(f|0)==1072693248|f>>>0<1072693248)!=(r>>>0<2048|0)){c=bc-16|0;O[c+8>>3]=3.105036184601418E231;d=O[c+8>>3]*3.105036184601418E231;break a}c=bc-16|0;O[c+8>>3]=1.2882297539194267E-231;d=O[c+8>>3]*1.2882297539194267E-231; -break a}if(j)break b;A(+(a*4503599627370496));f=v(1)|0;c=v(0)|0;f=(f&2147483647)-54525952|0}x(0,l&-134217728);x(1,e|0);u=+z();e=f-1072076117|0;g=e;k=+(e>>20);h=(e>>>13&127)<<5;B=k*O[325151]+O[h+2601296>>3];l=0;e=c-l|0;g=f-((g&-1048576)+(c>>>0>>0)|0)|0;c=g;x(0,0);x(1,(e- -2147483648>>>0<2147483648?c+1|0:c)|0);a=+z();i=O[h+2601272>>3];d=a*i+-1;x(0,e|0);x(1,c|0);w=(+z()-a)*i;a=d+w;m=O[325152];i=a*m;y=k*O[325150]+O[h+2601288>>3];k=a+y;n=d;d=d*m;n=n*d;m=k+n;n=B+(a+(y-k))+w*(i+d)+(n+(k-m));d=a*i;a=n+ -a*d*(d*(d*(a*O[325158]+O[325157])+(a*O[325156]+O[325155]))+(a*O[325154]+O[325153]));d=m+a;O[o+8>>3]=a+(m-d);A(+d);c=v(1)|0;x(0,v(0)&-134217728);x(1,c|0);i=+z();a=u*i;b=(b-u)*i+(O[o+8>>3]+(d-i))*b;A(+a);c=v(1)|0;v(0)|0;c:{d:{j=c>>>20&2047;if(j-969>>>0<63)break d;if(j>>>0<969){a=a+1;d=p?-a:a;break c}c=j>>>0<1033;j=0;if(c)break d;A(+a);c=v(1)|0;v(0)|0;if((c|0)<0){c=bc-16|0;O[c+8>>3]=p?-1.2882297539194267E-231:1.2882297539194267E-231;d=O[c+8>>3]*1.2882297539194267E-231;break c}c=bc-16|0;O[c+8>>3]=p?-3.105036184601418E231: -3.105036184601418E231;d=O[c+8>>3]*3.105036184601418E231;break c}d=O[306822];i=O[306821]*a+d;d=i-d;a=d*O[306824]+(d*O[306823]+a)+b;b=a*a;d=b*b*(a*O[306828]+O[306827]);b=b*(a*O[306826]+O[306825]);A(+i);v(1)|0;f=v(0)|0;e=f<<4&2032;a=d+(b+(O[e+2454680>>3]+a));e=e+2454688|0;g=J[e>>2];h=J[e+4>>2];e=f+p|0;c=g;g=e<<13;e=0;c=c+e|0;h=g+h|0;h=c>>>0>>0?h+1|0:h;if(!j){e:{if(!(f&-2147483648)){x(0,c|0);x(1,h-1058013184|0);b=+z();d=(b*a+b)*5.4861240687936887E303;break e}x(0,c|0);g=h+1071644672|0;x(1,g|0);b=+z(); -i=b*a;a=i+b;if(R(a)<1){c=bc-16|0;O[c+8>>3]=2.2250738585072014E-308;O[c+8>>3]=O[c+8>>3]*2.2250738585072014E-308;x(0,0);x(1,g&-2147483648);d=a<0?-1:1;k=a+d;a=k+(i+(b-a)+(a+(d-k)))-d;a=(C=+z(),D=a,E=a==0,E?C:D)}d=a*2.2250738585072014E-308}break c}x(0,c|0);x(1,h|0);b=+z();d=b*a+b}}bc=o+16|0;return d}function whb(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;l=bc-16|0;bc=l;c=wc(c,0,652);f=K[b+8|0];H[c+188|0]=f;a:{if(!f)break a;if(f>>>0>=4){i=f&252;g=c+192|0;h=b+12|0;while(1){J[g+(d<< -2)>>2]=I[h+(d<<1)>>1];k=d|1;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];k=d|2;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];k=d|3;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];d=d+4|0;j=j+4|0;if((i|0)!=(j|0))continue;break}}f=f&3;if(!f)break a;j=0;while(1){J[(c+(d<<2)|0)+192>>2]=I[((d<<1)+b|0)+12>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+9|0];H[c+189|0]=g;b:{if(!g)break b;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+248|0;i=b+40|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<< -1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break b;while(1){J[(c+(d<<2)|0)+248>>2]=I[((d<<1)+b|0)+40>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+10|0];H[c+190|0]=g;c:{if(!g)break c;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+288|0;i=b+60|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f= -g&3;if(!f)break c;while(1){J[(c+(d<<2)|0)+288>>2]=I[((d<<1)+b|0)+60>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+11|0];H[c+191|0]=g;d:{if(!g)break d;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+344|0;i=b+88|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break d;while(1){J[(c+(d<<2)|0)+344>>2]=I[((d<<1)+b|0)+88>>1];d=d+1|0;j=j+1|0;if((f| -0)!=(j|0))continue;break}}J[c+384>>2]=J[b+108>>2];J[c+388>>2]=J[b+112>>2];J[c+392>>2]=J[b+116>>2];J[c+396>>2]=L[b+120>>1];J[c+400>>2]=L[b+122>>1];g=K[b+124|0];H[c+404|0]=g;e:{if(!g)break e;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+408|0;i=b+128|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break e;while(1){J[(c+(d<<2)|0)+408>>2]=I[((d<<1)+b| -0)+128>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+125|0];H[c+405|0]=g;f:{if(!g)break f;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+460|0;i=b+154|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break f;while(1){J[(c+(d<<2)|0)+460>>2]=I[((d<<1)+b|0)+154>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}H[c+512|0]=K[b+126|0];J[c+520>> -2]=J[b+4>>2];J[c+524>>2]=J[b+184>>2];b=J[b+180>>2];J[c+552>>2]=c;J[c+528>>2]=b;g:{h:{a=J[a+128>>2];d=J[a+60>>2];if((d|0)==-1)break h;J[c+648>>2]=d;if(!d)break h;while(1){b=d<<13^d;b=b>>>17^b;d=b<<5^b;if((d|0)<0)continue;break}J[a+60>>2]=d;break g}a=l+4^(l+8^l+12);a=a>>>20^a>>>10^a;J[c+648>>2]=a?a:29572}bc=l+16|0}function C5(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;i=bc-16|0;bc=i;m=J[a+72>>2];k=J[a+64>>2];j=J[a+68>>2];a:{if(!c)break a;b:{c:{d:{e:{f:{g:switch(J[a>>2]){case 0:if(nd(J[a+ -164>>2],2))break f;if((XL(J[a+164>>2],i+12|0,1)|0)!=1)break f;h=K[i+12|0];J[a+44>>2]=h&128;f=h&31;J[a+40>>2]=f;d=1<>2]=d-256;if(f>>>0>16)break f;J[a+52>>2]=9;J[a+56>>2]=h>>>7;J[a+60>>2]=f>>>0>9?256:d-255|0;m=0;f=SC(a);if(f>>>0>255)break f;if(b)H[b|0]=f;if(c>>>0<2)break e;h=1;J[a>>2]=1;j=f;k=f;break;case 2:break d;case 1:break g;default:break a}d=0;break c}f=0;break b}d=1;j=f;k=f;break a}d=1}while(1){h:{i:{j:{k:{if(!d){d=SC(a);f=h;if((d|0)<0)break b;if((d|0)!=256)break k;if(!J[a+44>>2]){m= -256;break j}H[a+32|0]=1;j=0;J[a+56>>2]=0;d=SC(a);if((d|0)<0)break h;while(1){if((d|0)!=256){k=0;break k}if(!J[a+44>>2]){k=0;m=256;break j}H[a+32|0]=1;J[a+56>>2]=0;d=SC(a);if((d|0)>=0)continue;break}break h}l:{if(b){while(1){h=J[a+92>>2];if(!h)break l;h=h-1|0;J[a+92>>2]=h;H[b+e|0]=K[h+J[a+88>>2]|0];e=e+1|0;if((e|0)!=(c|0))continue;break}d=c;break a}d=J[a+92>>2];while(1){if(!d)break l;d=d-1|0;J[a+92>>2]=d;e=e+1|0;if((e|0)!=(c|0))continue;break}d=c;break a}h=e;d=J[a+56>>2];if(d>>>0>2]){g=J[a+ -84>>2];if(g>>>0<=d>>>0){d=g?g+(g>>>2|0)|0:512;l=Sc(J[a+168>>2],3,g,d,J[a+76>>2],i+12|0);J[a+76>>2]=l;f=e;if(J[i+12>>2])break b;f=l+(d<<1)|0;J[a+80>>2]=f;Zc(f,l+(g<<1)|0,g);J[a+84>>2]=d;d=J[a+56>>2]}I[J[a+76>>2]+(d<<1)>>1]=k;H[J[a+80>>2]+d|0]=j;J[a+56>>2]=J[a+56>>2]+1}J[a>>2]=1;k=m;d=0;continue}m=d;g=d;if(d>>>0<256)break i}m:{g=m;d=g-256|0;e=J[a+56>>2];if(d>>>0>>0)break m;f=h;if(d>>>0>e>>>0)break b;d=J[a+92>>2];e=J[a+96>>2];n:{if(d>>>0>>0){e=J[a+88>>2];break n}f=((e>>>1|0)+e|0)+4|0;l=J[a+168>> -2];o:{p:{q:{r:{g=J[a+88>>2];if((g|0)!=(a+100|0)){d=65536;if(f>>>0>65536)break r;d=f;break q}g=0;J[a+88>>2]=0;d=f>>>0>=65536?65536:f;e=0;break q}if((e|0)==65536)break p}e=Sc(l,1,e,d,g,i+12|0);J[a+88>>2]=e;if(!J[i+12>>2])break o}f=h;break b}J[a+96>>2]=d;d=J[a+92>>2]}J[a+92>>2]=d+1;H[d+e|0]=j;g=k;if(g>>>0>=256)break m;break i}l=a+100|0;d=J[a+76>>2];while(1){f=h;if(!d)break b;d=J[a+88>>2];e=J[a+92>>2];f=J[a+96>>2];if(e>>>0>=f>>>0){e=((f>>>1|0)+f|0)+4|0;n=J[a+168>>2];s:{t:{u:{if((d|0)!=(l|0)){if(e>>>0<= -65536)break u;e=65536;if((f|0)==65536)break t;break u}d=0;J[a+88>>2]=0;e=e>>>0>=65536?65536:e;f=0}d=Sc(n,1,f,e,d,i+12|0);J[a+88>>2]=d;if(!J[i+12>>2])break s}f=h;break b}J[a+96>>2]=e;e=J[a+92>>2]}f=g-256|0;g=K[f+J[a+80>>2]|0];J[a+92>>2]=e+1;H[d+e|0]=g;d=J[a+76>>2];g=L[d+(f<<1)>>1];if(g>>>0>255)continue;break}}d=J[a+92>>2];e=J[a+96>>2];v:{if(d>>>0>>0){e=J[a+88>>2];break v}f=((e>>>1|0)+e|0)+4|0;l=J[a+168>>2];w:{x:{y:{z:{j=J[a+88>>2];if((j|0)!=(a+100|0)){d=65536;if(f>>>0>65536)break z;d=f;break y}j= -0;J[a+88>>2]=0;d=f>>>0>=65536?65536:f;e=0;break y}if((e|0)==65536)break x}e=Sc(l,1,e,d,j,i+12|0);J[a+88>>2]=e;if(!J[i+12>>2])break w}j=g;f=h;break b}J[a+96>>2]=d;d=J[a+92>>2]}J[a+92>>2]=d+1;H[d+e|0]=g;J[a>>2]=2;j=g;e=h;d=1;continue}break}k=0;f=h}d=f;J[a>>2]=3}J[a+72>>2]=m;J[a+68>>2]=j;J[a+64>>2]=k;bc=i+16|0;return d}function msa(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=bc-16|0;bc=f;J[a>>2]=0;a:{b:{c:{d:{e:{f:{g:{e=J[d>>2];h:{if(!e)break h;J[695492]=0;g=f+12|0;da(5488,g|0,e|0);e=J[695492]; -J[695492]=0;i:{j:{if((e|0)!=1){J[695492]=0;d=aa(4993,d|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;d=J[d>>2];e=J[f+12>>2];J[f+12>>2]=0;if(!e)break i;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break i;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break i}break a}d=Z()|0;break b}d=Z()|0;vc(f+12|0);break b}if(!d)break h;if(J[d+8>>2])break g}J[695492]=0;d=f+12|0;ia(5489,d|0,b|0,c|0,10);b=J[695492];J[695492]=0;k:{if((b|0)!=1){J[695492]=0;aa(4993, -a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;a=J[f+12>>2];J[f+12>>2]=0;if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}break a}d=Z()|0;break b}d=Z()|0;vc(f+12|0);break b}J[695492]=0;e=Hn(d,2383428,-1);g=J[695492];J[695492]=0;if((g|0)==1)break c;l:{if(e){J[695492]=0;e=Hn(d,2374729,-1);g=J[695492];J[695492]=0;if((g|0)==1)break c;if(e)break l}J[695492]=0;d=f+12|0;ia(5489, -d|0,b|0,c|0,8);b=J[695492];J[695492]=0;m:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;a=J[f+12>>2];J[f+12>>2]=0;if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}break a}d=Z()|0;break b}d=Z()|0;vc(f+12|0);break b}J[695492]=0;e=Hn(d,2375465,-1);g=J[695492];J[695492]=0;if((g|0)==1)break c;n:{o:{if(!e)break o;J[695492]=0;e=Hn(d,2376105, --1);g=J[695492];J[695492]=0;if((g|0)==1)break c;if(!e)break o;J[695492]=0;e=Hn(d,2376788,-1);g=J[695492];J[695492]=0;if((g|0)==1)break c;if(!e)break o;J[695492]=0;e=Hn(d,2376788,-1);g=J[695492];J[695492]=0;if((g|0)==1)break c;if(e)break n}J[695492]=0;d=f+12|0;ia(5489,d|0,b|0,c|0,5);b=J[695492];J[695492]=0;p:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break p;a=J[f+12>>2];J[f+12>>2]=0;if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0; -if((c|0)!=1){if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}break a}d=Z()|0;break b}d=Z()|0;vc(f+12|0);break b}J[695492]=0;e=Hn(d,2377391,-1);g=J[695492];J[695492]=0;if((g|0)==1)break c;q:{if(e){J[695492]=0;d=Hn(d,2378080,-1);e=J[695492];J[695492]=0;if((e|0)==1)break c;if(d)break q}J[695492]=0;d=f+12|0;ia(5489,d|0,b|0,c|0,0);b=J[695492];J[695492]=0;r:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;vc(d);break f}d=Z()|0;break b}d= -Z()|0;vc(f+12|0);break b}J[695492]=0;d=f+12|0;ia(5489,d|0,b|0,c|0,10);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;vc(d)}bc=f+16|0;return}d=Z()|0;break b}d=Z()|0;vc(f+12|0);break b}d=Z()|0}vc(a);ba(d|0);B()}ea(0)|0;yc();B()}function Uaa(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;i=bc-144|0;bc=i;a:{b:{c:{h=J[a+584>>2];if(h){if(J[h+116>>2]){e=J[h+88>>2];d:{if(!e){e=c;break d}d= -J[h+100>>2];f=L[d+4>>1]-e|0;e:{if((f|0)>(c|0)){J[h+88>>2]=c+e;e=f;while(1){f:{d=J[d>>2];e=e-1|0;if((e|0)<=(c|0))break f;if(d)continue}break}if(!d){e=c;break e}g=b+c|0;e=c;while(1){g=g-1|0;H[g|0]=K[d+6|0];e=e-1|0;if(!e)break e;d=J[d>>2];if(d)continue;break}break e}b=b+f|0;g=b;e=f;while(1){g:{j=J[d>>2];g=g-1|0;H[g|0]=K[d+6|0];e=e-1|0;if(!e)break g;d=j;if(d)continue}break}J[h+88>>2]=0;e=c-f|0}s=1;if((c|0)<(f|0))break a}s=1;q=J[h+112>>2];k=J[h+108>>2];d=J[h+104>>2];n=J[h+84>>2];l=J[h+76>>2];c=J[h+72>> -2];m=L[h+64>>1];j=J[a+604>>2];if((e|0)<=0)break c;while(1){f=J[h+92>>2];if((f|0)<(m|0)){b=J[a>>2];f=J[a+628>>2];J[i+16>>2]=J[a+480>>2];ae(f,b,73582,i+16|0);break c}c=K[j|0]|c<<8;g=l+8|0;if((m|0)<=(g|0))j=j+1|0;else{g=l+16|0;c=K[j+1|0]|c<<8;j=j+2|0}J[h+92>>2]=f-m;h:{i:{j:{l=g-m|0;p=c>>l&n;o=p&65535;switch(o-256|0){case 0:break j;case 1:break c;default:break i}}k=J[h+116>>2]+2064|0;Hg(k,0,38888);q=J[h+116>>2]+4080|0;g=J[h+92>>2];if((g|0)<=8){b=J[a>>2];f=J[a+628>>2];J[i+112>>2]=J[a+480>>2];ae(f,b,73582, -i+112|0);n=511;m=9;break c}c=K[j|0]|c<<8;k:{if((l|0)>0){j=j+1|0;f=l+8|0;break k}c=K[j+1|0]|c<<8;j=j+2|0;f=l+16|0}J[h+92>>2]=g-9;n=511;m=9;l:{m:{l=f-9|0;f=c>>l;switch((f&511)-256|0){case 0:break m;case 1:break c;default:break l}}b=J[a>>2];c=J[a+628>>2];J[i+128>>2]=J[a+472>>2];Nc(c,b,74300,i+128|0);break b}H[b|0]=f;e=e-1|0;d=J[h+116>>2]+((f&511)<<3)|0;b=b+1|0;break h}n:{g=J[h+116>>2];if(g>>>0<=k>>>0){f=g+40952|0;if(f>>>0>k>>>0)break n}b=J[a>>2];c=J[a+628>>2];J[i+96>>2]=J[a+472>>2];Nc(c,b,74300,i+96| -0);break b}J[k>>2]=d;if(!(d>>>0>>0&d>>>0>=g>>>0)){b=J[a>>2];c=J[a+628>>2];J[i+80>>2]=J[a+472>>2];Nc(c,b,74300,i+80|0);break b}H[k+7|0]=K[d+7|0];I[k+4>>1]=L[d+4>>1]+1;d=o<<3;f=d+g|0;H[k+6|0]=K[(f>>>0>>0?f+7|0:k+7|0)|0];k=k+8|0;if(q>>>0>>0){n=(m|0)>=11?11:m;m=n+1|0;n=-2<>>0>=256){r=L[(d+g|0)+4>>1];if(!r){b=J[a>>2];c=J[a+628>>2];J[i+32>>2]=J[a+472>>2];Nc(c,b,76680,i+32|0);break b}if(e>>>0>>0){J[h+100>>2]=f;g=e&65535;d=f;o:{while(1){d=J[d>>2];if(!d)break o;if(g>>> -0>1])continue;break}J[h+88>>2]=e;g=b+e|0;while(1){p:{g=g-1|0;H[g|0]=K[d+6|0];d=J[d>>2];e=e-1|0;if(!e)break p;if(d)continue}break}if(!d)break o;b=J[a>>2];d=J[a+628>>2];J[i+48>>2]=J[a+472>>2];Nc(d,b,77875,i+48|0)}d=f;break c}p=b+r|0;d=p;g=f;while(1){q:{o=J[g>>2];d=d-1|0;H[d|0]=K[g+6|0];if(!o)break q;g=o;if(b>>>0>>0)continue}break}if(o){b=J[a>>2];d=J[a+628>>2];J[i+64>>2]=J[a+472>>2];Nc(d,b,77875,i- -64|0);d=f;break c}e=e-r|0;d=f;b=p;break h}H[b|0]=p;e=e-1|0;d=f;b=b+1|0}if((e|0)>0)continue; -break}break c}fa(76199,70324,364,97887);B()}fa(72282,70324,363,97887);B()}J[a+604>>2]=j;J[h+112>>2]=q;J[h+108>>2]=k;J[h+104>>2]=d;J[h+84>>2]=n;J[h+76>>2]=l;J[h+72>>2]=c;I[h+64>>1]=m;if((e|0)<=0)break a;b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[i+4>>2]=e;J[i>>2]=a;Nc(c,b,77355,i)}s=0}bc=i+144|0;return s|0}function qDa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;var e=0,f=0;e=bc-176|0;bc=e;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;b=ga(4874,e+32|0,b|0,24)|0;a=J[695492];J[695492]=0;a:{if((a|0)!=1){J[e+24>> -2]=0;J[e+16>>2]=0;J[e+20>>2]=0;while(1){J[695492]=0;a=ga(4875,b|0,e+16|0,44)|0;f=J[695492];J[695492]=0;b:{c:{d:{if((f|0)!=1){if(K[(a+J[J[a>>2]-12>>2]|0)+16|0]&5)break c;f=J[e+8>>2];if((f|0)!=J[e+12>>2]){if(H[e+27|0]>=0){a=J[e+20>>2];J[f>>2]=J[e+16>>2];J[f+4>>2]=a;J[f+8>>2]=J[e+24>>2];break b}J[695492]=0;ca(15,f|0,J[e+16>>2],J[e+20>>2]);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;J[e+8>>2]=f;break d}J[695492]=0;da(2796,e+4|0,e+16|0);a=J[695492];J[695492]=0;if((a|0)!=1)continue}a=Z()|0}if(H[e+ -27|0]<0)qc(J[e+16>>2]);bA(b);break a}if(H[e+27|0]<0)qc(J[e+16>>2]);J[b+64>>2]=2369932;J[b>>2]=2369892;J[b+12>>2]=2369744;J[b+8>>2]=2369912;if(H[b+55|0]<0)qc(J[b+44>>2]);Nh(b+12|0);Uf(b- -64|0);e:{f:{f=J[e+4>>2];if((J[e+8>>2]-f|0)/12>>>0>3){b=0;a=K[f+11|0];g:{if(!(a<<24>>24<0?J[f+4>>2]:a))break g;J[695492]=0;b=ga(4968,f|0,0,10)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break g;na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;b=ga(5036,f|0,0,10)|0;a=J[695492];J[695492]= -0;if((a|0)!=1)break g;na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;b=0;if((a|0)==1)break e}O[c>>3]=+(b|0)*d;b=J[e+4>>2];if((J[e+8>>2]-b|0)/12>>>0<2)break f;a=0;f=K[b+23|0];h:{if(!(f<<24>>24<0?J[b+16>>2]:f))break h;J[695492]=0;b=b+12|0;a=ga(4968,b|0,0,10)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break h;na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;a=ga(5036,b|0,0,10)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break h;na(ea(0)|0)|0;J[695492]=0;ka(4893); -b=J[695492];J[695492]=0;a=0;if((b|0)==1)break e}O[c+8>>3]=+(a|0)*d;b=J[e+4>>2];if((J[e+8>>2]-b|0)/12>>>0<3)break f;a=0;f=K[b+35|0];i:{if(!(f<<24>>24<0?J[b+28>>2]:f))break i;J[695492]=0;b=b+24|0;a=ga(4968,b|0,0,10)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break i;na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;a=ga(5036,b|0,0,10)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break i;na(ea(0)|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;a=0;if((b|0)==1)break e}O[c+ -16>>3]=+(a|0)*d;b=J[e+4>>2];if((J[e+8>>2]-b|0)/12>>>0<4)break f;a=0;f=K[b+47|0];j:{if(!(f<<24>>24<0?J[b+40>>2]:f))break j;J[695492]=0;b=b+36|0;a=ga(4968,b|0,0,10)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break j;na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;a=ga(5036,b|0,0,10)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break j;na(ea(0)|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;a=0;if((b|0)==1)break e}O[c+24>>3]=+(a|0)*d;f=J[e+4>>2]}if(f){a=J[e+8>>2];b= -f;if((a|0)!=(b|0)){while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>>2]);a=b;if((b|0)!=(f|0))continue;break}b=J[e+4>>2]}J[e+8>>2]=f;qc(b)}bc=e+176|0;return}J[695492]=0;_(4876,e+4|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;B()}a=Z()|0;break a}J[e+8>>2]=f+12;continue}}a=Z()|0}sg(e+4|0);ba(a|0);B()}function Om(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{j=K[a+409|0];if(j){e=J[a+356>>2];l=K[a+399|0];d=J[a+320>>2];f=J[a+376>>2];if(f)if((f|0)!=((j>>>0>=8?P(j>>>3|0,d):P(d,j)+7>>>3|0)|0))break c; -if(!d)break b;k=P(d,j);f=k&7;h=0;d:{if(!f)break d;i=((j>>>0>7?P(j>>>3|0,d):k+7>>>3|0)+b|0)-1|0;m=K[i|0];h=255<>>f|0}f=e+1|0;e:{f:{g:{if(!K[a+398|0])break g;g=J[a+208>>2];if(!(g&2)|l>>>0>5)break g;h:{i:switch(c|0){case 0:e=l&1;break h;case 1:break i;default:break g}e=1;if(!(l&1))break g}k=e<<3-(l+1>>>1|0)&7;if(k>>>0>=d>>>0)break e;if(j>>>0<=7){k=(j|0)!=1?(j|0)==2?1:2:0;e=8/(j>>>0)|0;j:{if(g&65536){a=(P(k,12)+(l<<1&508)|0)+68576|0;if(c)break j;a=(P(k,24)+(l<<2)|0)+68432| -0;break j}a=(P(k,12)+(l<<1&508)|0)+68612|0;if(c)break j;a=(P(k,24)+(l<<2)|0)+68504|0}a=J[a>>2];while(1){c=a&255;if(c){if((c|0)!=255)c=K[f|0]&a|K[b|0]&(a^-1);else c=K[f|0];H[b|0]=c}if(d>>>0<=e>>>0)break f;a=Hzb(a,24);f=f+1|0;b=b+1|0;d=d-e|0;continue}}if(j&7)break a;e=j>>>3|0;h=P(e,d-k|0);i=e;if(c){a=e<<(6-l>>>1);i=a>>>0>>0?a:h}c=P(e,k);a=c+f|0;d=b+c|0;g=e<<(7-l>>>1);k:switch(i-1|0){case 2:H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];if(g>>>0>=h>>>0)break e;while(1){d=d+g|0;a=a+g|0;H[d|0]=K[a| -0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];h=h-g|0;if(g>>>0>>0)continue;break}break e;case 0:H[d|0]=K[a|0];if(g>>>0>=h>>>0)break e;while(1){d=d+g|0;a=a+g|0;H[d|0]=K[a|0];h=h-g|0;if(g>>>0>>0)continue;break}break e;case 1:while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];if(g>>>0>=h>>>0)break e;d=d+g|0;a=a+g|0;h=h-g|0;if(h>>>0>1)continue;break}H[d|0]=K[a|0];return;default:break k}if(!((g|(a|i))&1|(d&1|i>>>0>15))){b=g-i|0;if(!((g|(a|d|i))&3)){f=0;b=b&-4;e=h;while(1){c=f;f=i;while(1){J[d>>2]=J[a>>2];d=d+4|0; -a=a+4|0;f=f-4|0;if(f)continue;break}if(g>>>0>=e>>>0)break e;f=c+1|0;d=b+d|0;a=a+b|0;e=e-g|0;if(i>>>0<=e>>>0)continue;break}f=e&7;if(f){b=0;while(1){H[d|0]=K[a|0];e=e-1|0;d=d+1|0;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(((g^-1)+h|0)-P(c,g)>>>0<7)break e;while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];H[d+3|0]=K[a+3|0];H[d+4|0]=K[a+4|0];H[d+5|0]=K[a+5|0];H[d+6|0]=K[a+6|0];H[d+7|0]=K[a+7|0];d=d+8|0;a=a+8|0;e=e-8|0;if(e)continue;break}break e}f=0;b=b&-2;e=h;while(1){c=f;f=i;while(1){I[d>> -1]=L[a>>1];d=d+2|0;a=a+2|0;f=f-2|0;if(f)continue;break}if(g>>>0>=e>>>0)break e;f=c+1|0;d=b+d|0;a=a+b|0;e=e-g|0;if(i>>>0<=e>>>0)continue;break}f=e&7;if(f){b=0;while(1){H[d|0]=K[a|0];e=e-1|0;d=d+1|0;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(((g^-1)+h|0)-P(c,g)>>>0<7)break e;while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];H[d+3|0]=K[a+3|0];H[d+4|0]=K[a+4|0];H[d+5|0]=K[a+5|0];H[d+6|0]=K[a+6|0];H[d+7|0]=K[a+7|0];d=d+8|0;a=a+8|0;e=e-8|0;if(e)continue;break}break e}tc(d,a,i);if(g>>>0>= -h>>>0)break e;while(1){d=d+g|0;a=a+g|0;h=h-g|0;i=h>>>0>i>>>0?i:h;tc(d,a,i);if(g>>>0>>0)continue;break}break e}tc(b,f,j>>>0>7?P(j>>>3|0,d):k+7>>>3|0)}if(!i)break e;H[i|0]=K[i|0]&(h^-1)|h&m}return}Ad(a,68339);B()}Ad(a,68364);B()}Ad(a,68400);B()}Ad(a,68648);B()}function Zwa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-32|0;bc=c;f=J[b>>2];d=J[a+36>>2];if(d)qc(Bd(d));d=J[a+64>>2];if(d)qc(Bd(d));J[a+64>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{e=Ns(f);if(e&127){b=Kc(c+8|0,2376485, -2374110,569,2406156,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break b}h=nk(f);if(h>>>0>=65536){b=Kc(c+8|0,2377160,2374110,573,2406156,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break b}d=0;Sl(a+40|0,0,h-1|0);if(h)while(1){bp(f,c+4|0,3);if(!(J[a+56>>2]<=(d|0)&J[a+60>>2]>=(d|0))){b=Kc(c+8|0,2377625,2378391,619,2406264,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break b}H[J[a+44>>2]+(d-J[a+48>>2]<<2)|0]=K[c+4|0];if(!(J[a+ -56>>2]<=(d|0)&J[a+60>>2]>=(d|0))){b=Kc(c+8|0,2377625,2378391,619,2406264,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break b}H[(J[a+44>>2]+(d-J[a+48>>2]<<2)|0)+1|0]=K[c+5|0];if(!(J[a+56>>2]<=(d|0)&J[a+60>>2]>=(d|0))){b=Kc(c+8|0,2377625,2378391,619,2406264,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break b}g=K[c+6|0];H[(J[a+44>>2]+(d-J[a+48>>2]<<2)|0)+2|0]=g;if(!(J[a+56>>2]<=(d|0)&J[a+60>>2]>=(d|0))){b=Kc(c+8|0,2377625,2378391,619,2406264,0);J[695492]= -0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break b}H[(J[a+44>>2]+(d-J[a+48>>2]<<2)|0)+3|0]=(P(K[c+5|0],9)+(K[c+4|0]<<1)|0)+P(g,5)>>>4;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!(e&128))break c;f=Ms(f);if((f|0)<0){b=Kc(c+8|0,2377160,2374110,591,2406156,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break b}Sl(a+8|0,0,f-1|0);d=0;e=J[b>>2];if(e){J[e+4>>2]=J[e+4>>2]+1;d=J[b>>2]}J[695492]=0;J[c>>2]=d;da(5125,c+4|0,c|0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c>> -2];J[c>>2]=0;i:{if(!b)break i;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}e=J[c+4>>2];b=e;if(!f)break d;d=0;while(1){J[695492]=0;b=$(5176,e|0)|0;g=J[695492];J[695492]=0;j:{k:{if((g|0)!=1){g=b<<16>>16;if((g|0)>=0&(g|0)<(h|0))break j;J[695492]=0;b=ja(5018,c+8|0,2377160,2374110,600,2406156,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]= -0;if((a|0)!=1)break h;a=Z()|0;Fc(b);c=c+4|0;break f}a=Z()|0;c=c+4|0;break f}a=Z()|0;c=c+4|0;break f}if(!(J[a+28>>2]<(d|0)|J[a+24>>2]>(d|0))){I[J[a+12>>2]+(d-J[a+16>>2]<<1)>>1]=b;d=d+1|0;if((f|0)==(d|0))break e;continue}break}J[695492]=0;b=ja(5018,c+8|0,2377625,2378391,619,2405264,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;a=Z()|0;Fc(b);c=c+4|0;break f}a=Z()|0;break f}B()}a=Z()|0;c=c+4|0}vc(c);ba(a|0);B()}b=J[c+4>>2]}J[c+4>> -2]=0;a=b;if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=c+32|0;return}a=Z()|0;Fc(b);ba(a|0);B()}ea(0)|0;yc();B()}function k$a(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;m=J[a+4>>2];v=m+37|0;c=J[m+44>>2];h=c?c:64;j=J[a+24>>2];q=J[a+20>>2];f=J[a+16>>2];r=J[a+12>>2];d=J[a+8>>2];g=H[m+36|0];a:{b:{u=J[m+48>>2];i= -u&3;c:{if(!i){t=q;break c}if((g|0)<=0){t=q;break c}n=-1;t=q;if(f>>>0>>0)break b}c=0;break a}c=1}d:{e:while(1){f:{g:{if(!c){c=t-f>>1;o=r-d|0;i=(c|0)<(o|0)?c:o;h:{if((i|0)<=0)break h;while(1){c=K[d|0];i:{if(c-80<<24>>24>=0){c=(c+h|0)-144|0;if((c|0)>12287)break h;I[f>>1]=c;J[j>>2]=l;h=c&-128|64;break i}if(c>>>0>32)break h;I[f>>1]=c;J[j>>2]=l;h=(c|0)!=32?64:h}d=d+1|0;f=f+2|0;j=j+4|0;l=l+1|0;c=(i|0)>1;i=i-1|0;if(c)continue;break}i=0}c=0;break g}l=l+i|0;o=u>>2;while(1){if(d>>>0>=r>>>0){c=d;break d}c= -K[d|0];H[(g<<24>>24)+v|0]=c;if(c>>>0<=32)c=H[c+753808|0];else c=c-13|0;j:{k:{l:{p=i-1|0;switch(p|0){case 0:break j;case 1:break l;default:break k}}c=P(c,243);break j}c=P(c,59049)}g=g+1|0;d=d+1|0;s=12;if((c|0)<0){c=d;break f}o=c+o|0;i=p;if(i)continue;break}i=0;p=0;g=0;c=d;k=h+o|0;if(k>>>0>1114111)break f;c=1}while(1){m:{n:{o:{p:{if(!c){q:{if(f>>>0>=q>>>0){c=d;break q}n=l;c=d;while(1){if(c>>>0>=r>>>0)break d;d=c+1|0;l=n+1|0;e=K[c|0];if(e-80<<24>>24>=0){c=d;break p}r:{if(e>>>0<33){c=d;break r}s:{if(!((e- -37&255)>>>0>213|d>>>0>=r>>>0)){p=d;d=c;break s}if((e|0)==255){while(1){n=l;if(d>>>0>=r>>>0){h=64;c=d;break d}c=d+1|0;l=n+1|0;e=K[d|0];if(e-80<<24>>24>=0){h=64;break p}if(e>>>0<33){h=64;break r}if(!((e-37&255)>>>0>213|c>>>0>=r>>>0)){h=64;p=c;break s}d=c;if((e|0)==255)continue;break}h=64}H[v|0]=e;t:{u:{if(e>>>0>=80){if(e>>>0<=250){g=P(e,243)-50480|0;i=1;break t}g=187660;i=3;if(e>>>0>253)break t;g=P(e,59049)-14810786|0;break u}if(e>>>0>=37){g=P(e,243)-19504|0;i=1;break t}g=-14536567;i=3;if(e>>>0<34)break t; -g=P(e,59049)-2195326|0}i=2}u=i|g<<2;g=1;c=1;continue e}o=P(e,243)+(e>>>0>143?-50480:-19504)|0;c=d+2|0;d=K[d+1|0];v:{w:{if(d>>>0>=33){s=d-13|0;break w}s=H[d+753808|0];l=d&31;if((d&63)>>>0>=32)d=1>>>l|0;else d=((1<>>l;if(d&1)break v}l=n+2|0;k=(h+o|0)+s|0;if(k>>>0<1114112)break o}H[m+37|0]=e;H[m+38|0]=K[p|0];g=2;s=12;break f}I[f>>1]=e;J[j>>2]=n;h=(e|0)!=32?64:h;j=j+4|0;n=l;f=f+2|0;if(q>>>0>f>>>0)continue;break}}s=15;if(c>>>0>>0)break f;break d}x:{y:{z:{A:{B:{if(k-55204>>> -0>=4294924444){h=12400;if(k>>>0<12448)break B;h=30481;if(k-19968>>>0<20902)break B;h=49617;if(k>>>0>44031)break B;h=k&2147483520|64;break B}h=k&2147483520|64;if(k>>>0>65535)break A}I[f>>1]=k;f=f+2|0;c=1;g=j;break z}I[f>>1]=(k>>>10|0)-10304;c=2;g=f+2|0;if(g>>>0>=q>>>0)break y;I[f+2>>1]=k&1023|56320;J[j>>2]=n;f=f+4|0;g=j+4|0}J[g>>2]=n;j=(c<<2)+j|0;g=p;break x}J[j>>2]=n;H[m+65|0]=1;I[m+116>>1]=k&1023|56320;j=j+4|0;s=15;f=g;g=p;c=d;break f}c=0;continue}k=(e+h|0)-144|0;if((k|0)>12287)break o;I[f>>1]=k; -J[j>>2]=n;j=j+4|0;f=f+2|0;h=k&-128|64;t=J[a+20>>2];d=c;break n}p=g;d=c;break m}c=0;continue e}c=1;continue}}break}J[b>>2]=s}b=J[b>>2];H[m+36|0]=g;b=(b|0)==12;J[m+48>>2]=b?0:o<<2|i;J[m+44>>2]=b?64:h;J[a+24>>2]=j;J[a+16>>2]=f;J[a+8>>2]=c}function sQa(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;a=wc(a,0,256);d=J[b>>2]+c|0;g=K[d+3|0];f=K[d+1|0];e=g+f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a>>2]=(k+d<<3)-5120;e=P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+16>>2]=e-d>>10; -J[a+8>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+12>>2]=d+P(g,-17828)>>10;J[a+4>>2]=d+P(f,4209)>>10;d=J[b+4>>2]+c|0;g=K[d+3|0];f=K[d+1|0];e=g+f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a+32>>2]=(k+d<<3)-5120;e=P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+48>>2]=e-d>>10;J[a+40>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+44>>2]=d+P(g,-17828)>>10;J[a+36>>2]=d+P(f,4209)>>10;d=J[b+8>>2]+c|0;g=K[d+3|0];f=K[d+1|0];e=g+f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a+ -64>>2]=(k+d<<3)-5120;e=P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+80>>2]=e-d>>10;J[a+72>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+76>>2]=d+P(g,-17828)>>10;J[a+68>>2]=d+P(f,4209)>>10;d=J[b+12>>2]+c|0;g=K[d+3|0];f=K[d+2|0];e=K[d+1|0];i=e+g|0;h=K[d+4|0];j=K[d|0];k=h+j|0;l=i+k|0;d=(f+l<<3)-5120|0;J[a+96>>2]=d;i=P(k-i|0,6476)+512|0;f=P(l-(f<<2)|0,2896);J[a+112>>2]=i-f>>10;J[a+104>>2]=f+i>>10;f=e-g|0;e=j-h|0;g=P(f+e|0,6810)+512|0;J[a+108>>2]=g+P(f,-17828)>>10;J[a+100>>2]=g+P(e,4209)>>10;b= -J[b+16>>2]+c|0;c=K[b+4|0];g=K[b|0];f=c+g|0;e=K[b+3|0];i=K[b+1|0];h=e+i|0;j=P(f-h|0,6476)+512|0;f=f+h|0;h=K[b+2|0];b=P(f-(h<<2)|0,2896);J[a+144>>2]=j-b>>10;J[a+136>>2]=b+j>>10;e=i-e|0;g=g-c|0;b=P(e+g|0,6810)+512|0;J[a+140>>2]=b+P(e,-17828)>>10;c=(f+h<<3)-5120|0;f=J[a>>2];e=c+f|0;i=J[a+32>>2];h=i+d|0;j=P(e-h|0,8290)+16384|0;e=e+h|0;h=J[a+64>>2];k=P(e-(h<<2)|0,3707);J[a+128>>2]=j-k>>15;J[a+64>>2]=j+k>>15;J[a>>2]=P(e+h|0,10486)+16384>>15;d=i-d|0;f=f-c|0;c=P(d+f|0,8716)+16384|0;J[a+96>>2]=c+P(d,-22820)>> -15;J[a+32>>2]=c+P(f,5387)>>15;b=b+P(g,4209)>>10;c=J[a+4>>2];d=b+c|0;g=J[a+100>>2];f=J[a+36>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+68>>2];h=P(d-(e<<2)|0,3707);J[a+132>>2]=i-h>>15;J[a+68>>2]=h+i>>15;J[a+4>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+100>>2]=b+P(d,-22820)>>15;J[a+36>>2]=b+P(c,5387)>>15;b=J[a+136>>2];c=J[a+8>>2];d=b+c|0;g=J[a+104>>2];f=J[a+40>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+72>>2];h=P(d-(e<<2)|0,3707);J[a+136>>2]=i-h>>15;J[a+72>> -2]=h+i>>15;J[a+8>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+104>>2]=b+P(d,-22820)>>15;J[a+40>>2]=b+P(c,5387)>>15;b=J[a+140>>2];c=J[a+12>>2];d=b+c|0;g=J[a+108>>2];f=J[a+44>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+76>>2];h=P(d-(e<<2)|0,3707);J[a+140>>2]=i-h>>15;J[a+76>>2]=h+i>>15;J[a+12>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+108>>2]=b+P(d,-22820)>>15;J[a+44>>2]=b+P(c,5387)>>15;b=J[a+144>>2];c=J[a+16>>2];d=b+c|0;g=J[a+112>>2];f= -J[a+48>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+80>>2];h=P(d-(e<<2)|0,3707);J[a+144>>2]=i-h>>15;J[a+80>>2]=h+i>>15;J[a+16>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+112>>2]=b+P(d,-22820)>>15;J[a+48>>2]=b+P(c,5387)>>15}function gjb(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;i=bc+-64|0;bc=i;J[i+60>>2]=0;h=b+108|0;n=J[a+8>>2];a:{b:{if(J[b+72>>2]!=J[a+16>>2]){J[i+60>>2]=6;break b}if(!((c|0)!=2&c>>>0<=4)){J[i+60>>2]=19; -break b}if(H[J[b+156>>2]+4|0]&1){e=J[b+88>>2];if(e)gc[J[n+8>>2]](n,e);J[b+88>>2]=0;e=J[b+156>>2];J[e+4>>2]=J[e+4>>2]&-2}if(jM(b,c,d)){J[i+60>>2]=98;break b}g=b+76|0;e=J[g>>2];c:{if(!e)break c;f=J[b+84>>2];if(!f)break c;p=b,q=Sc(n,f,0,e,0,i+60|0),J[p+88>>2]=q;if(J[i+60>>2])break b;e=J[b+156>>2];J[e+4>>2]=J[e+4>>2]|1;e=J[b+76>>2]<<6;l=(K[b+94|0]==6?(e|0)/3|0:e)-(J[b+104>>2]<<6)|0;m=0-(J[b+100>>2]<<6)|0;if(d){m=J[d>>2]+m|0;l=J[d+4>>2]+l|0}if(l|m)Jh(h,m,l);d:{e:{if(c>>>0<=1){if(K[b+124|0]&64){f=bc+-64| -0;bc=f;d=J[h+4>>2];if(d)e=(I[h+2>>1]<<3)+d|0;else e=0;c=98;j=J[g+4>>2];f:{if(j&1073733632)break f;J[f+56>>2]=j<<2;J[f+48>>2]=0;J[f+52>>2]=0;J[f+28>>2]=1672;J[f+24>>2]=3;J[f+20>>2]=h;J[f+44>>2]=f+8;j=J[g>>2];J[f+60>>2]=j<<2;k=J[g+12>>2];c=J[g+8>>2];J[f+12>>2]=c;J[f+8>>2]=k+((c|0)>=0?P(c,j-1|0):0);if(d>>>0>>0){c=d;while(1){J[c>>2]=J[c>>2]<<2;J[c+4>>2]=J[c+4>>2]<<2;c=c+8|0;if(e>>>0>c>>>0)continue;break}c=gc[J[a+56>>2]](J[a+52>>2],f+16|0)|0;if(d>>>0>=e>>>0)break f;while(1){J[d>>2]=J[d>>2]/4;J[d+4>> -2]=J[d+4>>2]/4;d=d+8|0;if(e>>>0>d>>>0)continue;break}break f}c=gc[J[a+56>>2]](J[a+52>>2],f+16|0)|0}bc=f- -64|0;d=c;break e}J[i+20>>2]=1;J[i+16>>2]=h;J[i+12>>2]=g;d=gc[J[a+56>>2]](J[a+52>>2],i+12|0)|0;break e}g:switch(c-3|0){default:a=J[i+60>>2];break d;case 0:e=bc+-64|0;bc=e;f=J[a+4>>2];J[e+48>>2]=0;J[e+52>>2]=0;J[e+28>>2]=1673;J[e+24>>2]=3;J[e+20>>2]=h;J[e+44>>2]=e+8;J[e+56>>2]=J[g+4>>2];d=J[g>>2];J[e+60>>2]=d;j=J[g+12>>2];c=J[g+8>>2];J[e+12>>2]=c;J[e+8>>2]=j+((c|0)>=0?P(c,d-1|0):0);g=f+184|0;Jh(h, -0-J[f+180>>2]|0,0-J[g>>2]|0);d=gc[J[a+56>>2]](J[a+52>>2],e+16|0)|0;h:{if(d){c=f+180|0;break h}J[e+8>>2]=J[e+8>>2]+1;c=f+188|0;g=f+192|0;Jh(h,J[f+180>>2]-J[c>>2]|0,J[f+184>>2]-J[g>>2]|0);d=gc[J[a+56>>2]](J[a+52>>2],e+16|0)|0;if(d)break h;J[e+8>>2]=J[e+8>>2]+1;c=f+196|0;g=f+200|0;Jh(h,J[f+188>>2]-J[c>>2]|0,J[f+192>>2]-J[g>>2]|0);d=gc[J[a+56>>2]](J[a+52>>2],e+16|0)|0}Jh(h,J[c>>2],J[g>>2]);bc=e- -64|0;break e;case 1:break g}f=bc-48|0;bc=f;e=J[a+4>>2];k=J[g+8>>2];J[f+8>>2]=1;J[f+4>>2]=h;J[f>>2]=g;J[g+ -8>>2]=P(k,3);J[g>>2]=M[g>>2]/3;Jh(h,0-J[e+184>>2]|0,J[e+180>>2]);d=gc[J[a+56>>2]](J[a+52>>2],f)|0;j=J[e+184>>2];c=J[e+180>>2];i:{if(d)break i;J[g+12>>2]=k+J[g+12>>2];Jh(h,j-J[e+192>>2]|0,J[e+188>>2]-c|0);d=gc[J[a+56>>2]](J[a+52>>2],f)|0;c=J[e+188>>2];j=J[e+192>>2];o=J[g+12>>2]-k|0;J[g+12>>2]=o;if(d)break i;k=k<<1;J[g+12>>2]=k+o;Jh(h,j-J[e+200>>2]|0,J[e+196>>2]-c|0);d=gc[J[a+56>>2]](J[a+52>>2],f)|0;c=J[e+196>>2];j=J[e+200>>2];J[g+12>>2]=J[g+12>>2]-k}Jh(h,j,0-c|0);J[g+8>>2]=J[g+8>>2]/3;J[g>>2]=P(J[g>> -2],3);bc=f+48|0}a=d;J[i+60>>2]=a}if(a)break b}J[b+72>>2]=1651078259;break a}if(!(H[J[b+156>>2]+4|0]&1))break a;a=J[b+88>>2];if(a)gc[J[n+8>>2]](n,a);J[b+88>>2]=0;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2}if(l|m)Jh(h,0-m|0,0-l|0);bc=i- -64|0;return J[i+60>>2]}function z_(a){a=a|0;var b=0,c=0,d=0,e=0;d=J[a+420>>2];b=J[d+12>>2];c=(b+J[d+16>>2]|0)-1&-65536;c=((b|0)>(c|0)?c|32768:c)<>2];J[d+12>>2]=c;b=J[d+32>>2];a:{if(c>>>0>=134217728){b:{if((b|0)<0)break b;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>> -2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(gc[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=b+1;b=J[c+4>>2]-1|0;J[c+4>>2]=b;d:{if(b)break d;if(gc[J[c+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(J[d+32>>2]!=254)break b;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break b;if(gc[J[b+12>>2]](a)|0)break b; -b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+20>>2];J[d+20>>2]=0;J[d+24>>2]=b+J[d+24>>2];break a}e:{if(!b){J[d+24>>2]=J[d+24>>2]+1;break e}if((b|0)<0)break e;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(gc[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break e;if(gc[J[c+12>> -2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(!J[d+20>>2])break a;if(J[d+24>>2])while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g:{if(c)break g;if(gc[J[b+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(gc[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2]; -J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(gc[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+20>>2]-1|0;J[d+20>>2]=b;if(b)continue;break}}c=J[d+12>>2];j:{if(!(c&134215680))break j;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(gc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}c=J[d+12>>2]}b=J[a+24>>2];e=J[b>>2];J[b>> -2]=e+1;H[e|0]=c>>>19;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(gc[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}m:{if((J[d+12>>2]&133693440)!=133693440)break m;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break m;if(gc[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}e=J[d+12>>2];if(!(e&522240))break j;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=e>>>11;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(gc[J[b+12>>2]](a)|0)break n;b=J[a>> -2];J[b+20>>2]=25;gc[J[b>>2]](a)}if((J[d+12>>2]&522240)!=522240)break j;d=J[a+24>>2];b=J[d>>2];J[d>>2]=b+1;H[b|0]=0;b=J[d+4>>2]-1|0;J[d+4>>2]=b;if(b)break j;if(gc[J[d+12>>2]](a)|0)break j;d=J[a>>2];J[d+20>>2]=25;gc[J[d>>2]](a)}}function qI(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0;h=bc-32|0;bc=h;l=J[b+8>>2];o=J[a+8>>2];gc[J[J[o>>2]+64>>2]](o,J[a+28>>2]);o=J[a+28>>2];C=rc(672);J[695492]=0;p=ga(3389,C|0,o|0,1)|0;E=J[695492]; -J[695492]=0;if((E|0)!=1){J[a+28>>2]=p;a:{if(c){_Y(p);c=J[a+8>>2];gc[J[J[c>>2]+228>>2]](c,J[a+28>>2]);c=J[a+28>>2];J[c+408>>2]=J[c+412>>2];break a}if(e)break a;wj(p);c=J[a+28>>2];e=J[a+8>>2];p=J[e>>2];if(d){gc[J[p+224>>2]](e,c);break a}gc[J[p+220>>2]](e,c)}Rf(J[a+28>>2]);c=J[a+28>>2];g=O[c+16>>3];i=O[c+40>>3];j=O[c+32>>3];x=O[c+24>>3];f=g*i-j*x;b:{if(R(f)<=1E-10){b=-1;c=J[a+108>>2];c:{if(!c)break c;c=J[c+4>>2];if(J[c+8>>2]==13)break c;b=J[c+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,b,822335,0);break b}q= -O[b+16>>3];m=O[a+48>>3];r=O[b+24>>3];s=O[a- -64>>3];t=q*m+r*s;f=1/f;y=i*f;z=f*-j;n=q;q=O[a+56>>3];k=r;r=O[a+72>>3];u=n*q+k*r;D=t*y+z*u;n=t;t=f*-x;A=g*f;u=n*t+A*u;k=O[b+32>>3];v=O[b+40>>3];w=k*m+s*v;k=k*q+r*v;v=w*y+z*k;k=w*t+A*k;n=j;j=O[c+56>>3];w=O[c+48>>3];n=f*(n*j-w*i);i=O[b+48>>3];F=i*m;m=O[b+56>>3];s=O[a+80>>3]+(F+s*m);i=i*q+r*m+O[a+88>>3];m=n+(s*y+z*i);f=f*(x*w-j*g)+(s*t+A*i);kI(c,D,u,v,k,m,f);b=J[a+8>>2];gc[J[J[b>>2]+76>>2]](b,J[a+28>>2],D,u,v,k,m,f);if(J[l+176>>2]){f=O[l+144>>3];O[h+24>>3]= -f;g=O[l+152>>3];O[h+16>>3]=g;i=O[l+160>>3];O[h+8>>3]=i;j=O[l+168>>3];O[h>>3]=j;b=J[a+28>>2];O[b+608>>3]=g;O[b+600>>3]=f;b=J[b+596>>2];O[b+16>>3]=g;O[b+8>>3]=f;J[b>>2]=1;b=J[a+28>>2];O[b+608>>3]=g;O[b+600>>3]=i;ie(J[b+596>>2],i,g);b=J[a+28>>2];O[b+608>>3]=j;O[b+600>>3]=i;ie(J[b+596>>2],i,j);b=J[a+28>>2];O[b+608>>3]=j;O[b+600>>3]=f;ie(J[b+596>>2],f,j);b=J[a+28>>2];_f(J[b+596>>2]);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+ -J[c+4>>2]|0)-8>>3];wj(J[a+28>>2]);b=J[a+8>>2];gc[J[J[b>>2]+220>>2]](b,J[a+28>>2]);Rf(J[a+28>>2])}b=J[a+28>>2];c=J[l+8>>2];d=gc[J[J[c>>2]+8>>2]](c)|0;c=J[b+116>>2];if(c)gc[J[J[c>>2]+4>>2]](c);J[b+116>>2]=d;b=J[a+8>>2];gc[J[J[b>>2]+108>>2]](b,J[a+28>>2]);if(J[l+140>>2]){tc(J[a+28>>2]+124|0,l+12|0,128);b=J[a+8>>2];gc[J[J[b>>2]+116>>2]](b,J[a+28>>2]);Nv(J[a+28>>2],h+24|0,h+16|0,h+8|0,h);f=O[h+24>>3];b=J[a+28>>2];g=O[h+16>>3];O[b+608>>3]=g;O[b+600>>3]=f;b=J[b+596>>2];O[b+16>>3]=g;O[b+8>>3]=f;J[b>>2]=1; -f=O[h+8>>3];b=J[a+28>>2];g=O[h+16>>3];O[b+608>>3]=g;O[b+600>>3]=f;ie(J[b+596>>2],f,g);f=O[h+8>>3];b=J[a+28>>2];g=O[h>>3];O[b+608>>3]=g;O[b+600>>3]=f;ie(J[b+596>>2],f,g);f=O[h+24>>3];b=J[a+28>>2];g=O[h>>3];O[b+608>>3]=g;O[b+600>>3]=f;ie(J[b+596>>2],f,g);b=J[a+28>>2];_f(J[b+596>>2]);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];b=J[a+8>>2];gc[J[J[b>>2]+204>>2]](b,J[a+28>>2]);Rf(J[a+28>>2])}wZ(a,l)}b=J[a+28>> -2];if(J[b+668>>2])while(1){b=Zl(b);J[a+28>>2]=b;c=J[a+8>>2];gc[J[J[c>>2]+68>>2]](c,b);b=J[a+28>>2];if(J[b+668>>2])continue;break}qc(Nq(b));J[a+28>>2]=o;a=J[a+8>>2];gc[J[J[a>>2]+68>>2]](a,o);bc=h+32|0;return}a=Z()|0;qc(C);ba(a|0);B()}function u$(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;e=bc-80|0;bc=e;J[e+72>>2]=0;a:{b:{c:{d:{i=K[J[J[a+36>>2]+16>>2]];switch(i-34|0){case 0:break b;case 5:break c;default:break d}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break a;J[a+84>>2]=36;J[e>>2]=16138;Cc(0, -0,0,a,0,1,36,3,0,0,0,0,32890,e);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}i=39}g=gc[J[659450]](100)|0;if(!g){ke(a,0);break a}J[a+172>>2]=11;e:{k=J[a+36>>2];if(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249)break e;Hd(a);if(J[a+172>>2]!=-1)break e;gc[J[659451]](g);break a}Qd(a);j=100;d=Ff(a,e+76|0);while(1){f:{g:{if((d|0)<=255){if((d|0)>31)break g;if(d>>>0>13)break f;if(1<>>0<1048576|d>>>0<55296)break g;if(d-57344>>>0>8189)break f}if(!((d|0)!=(i|0)|J[a+ -36>>2]!=(k|0))){d=i;break f}if(J[a+172>>2]==-1)break f;h:{if((h+5|0)<(j|0)){c=g;break h}j=j<<1;c=gc[J[659452]](g,j)|0;if(c)break h;c=0;ke(a,0);gc[J[659451]](g);break a}g=c;i:{if(J[e+76>>2]==1){H[c+h|0]=d;h=h+1|0;break i}h=Pi(g+h|0,d)+h|0}d=J[a+36>>2];c=J[d+16>>2];j:{if(K[c|0]==10){J[d+32>>2]=1;J[d+28>>2]=J[d+28>>2]+1;break j}J[d+32>>2]=J[d+32>>2]+1}f=c+J[e+76>>2]|0;J[d+16>>2]=f;c=K[f|0];if((c|0)==37){Od(a);d=J[a+36>>2];f=J[d+16>>2];c=K[f|0]}k:{if(c&255)break k;c=J[a+40>>2];if((c|0)<=1)break k;while(1){l:{m:{n:{if(!J[689531]){f= -c-1|0;J[a+40>>2]=f;d=J[a+48>>2];break n}J[e+64>>2]=c;d=0;gc[J[659549]](J[689514],36109,e- -64|0);c=J[a+40>>2];if((c|0)<=0)break l;f=c-1|0;J[a+40>>2]=f;d=J[a+48>>2];m=0;l=0;if((c|0)==1)break m}m=J[((c<<2)+d|0)-8>>2];l=f}c=l;J[a+36>>2]=m;c=(c<<2)+d|0;d=J[c>>2];J[c>>2]=0}dh(d);c=J[a+36>>2];o:{if(K[J[c+16>>2]])break o;if((Cd(c)|0)>0)break o;c=J[a+40>>2];if((c|0)>=2)continue}d=J[a+36>>2];f=J[d+16>>2];if(K[f|0])break k;c=J[a+40>>2];if((c|0)>1)continue;break}}if(!(J[a+292>>2]|(J[d+20>>2]-f|0)>249))Hd(a); -d=Ff(a,e+76|0);if(d)continue;p:{if(J[a+292>>2])break p;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break p;Hd(a)}d=Ff(a,e+76|0);continue}break}c=0;H[g+h|0]=0;q:{if(J[a+172>>2]!=-1){c=g;break q}gc[J[659451]](g);break a}while(1){r:{J[e+72>>2]=c;s:{t:{u:{v:{f=K[c|0];switch(f-37|0){case 0:break u;case 1:break v;default:break t}}if(K[c+1|0]==35)break s}J[e+72>>2]=c+1;c=sJ(a,e+72|0);if(!(K[J[e+72>>2]]==59?c:0))fl(a,87,31896,f);w:{if((f|0)!=37|J[a+216>>2]!=1|(J[a+40>>2]!=1|(J[a+172>>2]==-1?J[a+212>>2]: -0)))break w;J[a+84>>2]=88;J[e+48>>2]=3128;Cc(0,0,0,a,0,1,88,3,0,0,0,0,32890,e+48|0);J[a+12>>2]=0;if(J[a+288>>2])break w;J[a+212>>2]=1}if(c)gc[J[659451]](c);c=J[e+72>>2];if(!K[c|0])break r;break s}if(!f)break r}c=c+1|0;continue}break}if((d|0)!=(i|0)){x:{if(!a){J[e+16>>2]=16138;Cc(0,0,0,0,0,1,37,3,0,0,0,0,32890,e+16|0);break x}if(J[a+172>>2]==-1?J[a+212>>2]:0)break x;J[a+84>>2]=37;J[e+32>>2]=16138;Cc(0,0,0,a,0,1,37,3,0,0,0,0,32890,e+32|0);J[a+12>>2]=0;if(J[a+288>>2])break x;J[a+212>>2]=1}c=0;gc[J[659451]](g); -break a}Qd(a);d=J[a+248>>2];J[a+248>>2]=d+1;c=0;if(!(!a|!g)){c=yt(a,g,xk(g),2);d=J[a+248>>2]-1|0}J[a+248>>2]=d;if(b){J[b>>2]=g;break a}gc[J[659451]](g)}bc=e+80|0;return c}function $l(a,b,c,d){a=a|0;b=+b;c=+c;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;f=bc-272|0;bc=f;e=wc(f,0,256);O[e+264>>3]=c;O[e+256>>3]=b;a:{if(J[a+392>>2]<=0){a=0;f=0;break a}while(1){h=J[((g<<2)+a|0)+264>>2];gc[J[J[h>>2]+16>>2]](h,e+256|0,e+(g<<3)|0);g=g+1|0;if((g|0)>2])continue;break}b= -O[e+128>>3]*65536;b:{if(R(b)<2147483648){a=~~b;break b}a=-2147483648}g=a;b=O[e+120>>3]*65536;c:{if(R(b)<2147483648){a=~~b;break c}a=-2147483648}b=O[e+112>>3]*65536;d:{if(R(b)<2147483648){i=~~b;break d}i=-2147483648}b=O[e+104>>3]*65536;e:{if(R(b)<2147483648){j=~~b;break e}j=-2147483648}b=O[e+96>>3]*65536;f:{if(R(b)<2147483648){k=~~b;break f}k=-2147483648}b=O[e+88>>3]*65536;g:{if(R(b)<2147483648){l=~~b;break g}l=-2147483648}b=O[e+80>>3]*65536;h:{if(R(b)<2147483648){m=~~b;break h}m=-2147483648}b=O[e+ -72>>3]*65536;i:{if(R(b)<2147483648){n=~~b;break i}n=-2147483648}b=O[e+64>>3]*65536;j:{if(R(b)<2147483648){o=~~b;break j}o=-2147483648}b=O[e+56>>3]*65536;k:{if(R(b)<2147483648){p=~~b;break k}p=-2147483648}b=O[e+48>>3]*65536;l:{if(R(b)<2147483648){q=~~b;break l}q=-2147483648}b=O[e+40>>3]*65536;m:{if(R(b)<2147483648){r=~~b;break m}r=-2147483648}b=O[e+32>>3]*65536;n:{if(R(b)<2147483648){s=~~b;break n}s=-2147483648}b=O[e+24>>3]*65536;o:{if(R(b)<2147483648){t=~~b;break o}t=-2147483648}b=O[e+16>>3]*65536; -p:{if(R(b)<2147483648){u=~~b;break p}u=-2147483648}b=O[e+8>>3]*65536;q:{if(R(b)<2147483648){f=~~b;break q}f=-2147483648}h=f;b=O[e>>3]*65536;if(R(b)<2147483648){f=~~b;break a}f=-2147483648}J[d+64>>2]=g;J[d+60>>2]=a;J[d+56>>2]=i;J[d+52>>2]=j;J[d+48>>2]=k;J[d+44>>2]=l;J[d+40>>2]=m;J[d+36>>2]=n;J[d+32>>2]=o;J[d+28>>2]=p;J[d+24>>2]=q;J[d+20>>2]=r;J[d+16>>2]=s;J[d+12>>2]=t;J[d+8>>2]=u;J[d+4>>2]=h;J[d>>2]=f;b=O[e+136>>3]*65536;r:{if(R(b)<2147483648){a=~~b;break r}a=-2147483648}J[d+68>>2]=a;b=O[e+144>>3]* -65536;s:{if(R(b)<2147483648){a=~~b;break s}a=-2147483648}J[d+72>>2]=a;b=O[e+152>>3]*65536;t:{if(R(b)<2147483648){a=~~b;break t}a=-2147483648}J[d+76>>2]=a;b=O[e+160>>3]*65536;u:{if(R(b)<2147483648){a=~~b;break u}a=-2147483648}J[d+80>>2]=a;b=O[e+168>>3]*65536;v:{if(R(b)<2147483648){a=~~b;break v}a=-2147483648}J[d+84>>2]=a;b=O[e+176>>3]*65536;w:{if(R(b)<2147483648){a=~~b;break w}a=-2147483648}J[d+88>>2]=a;b=O[e+184>>3]*65536;x:{if(R(b)<2147483648){a=~~b;break x}a=-2147483648}J[d+92>>2]=a;b=O[e+192>> -3]*65536;y:{if(R(b)<2147483648){a=~~b;break y}a=-2147483648}J[d+96>>2]=a;b=O[e+200>>3]*65536;z:{if(R(b)<2147483648){a=~~b;break z}a=-2147483648}J[d+100>>2]=a;b=O[e+208>>3]*65536;A:{if(R(b)<2147483648){a=~~b;break A}a=-2147483648}J[d+104>>2]=a;b=O[e+216>>3]*65536;B:{if(R(b)<2147483648){a=~~b;break B}a=-2147483648}J[d+108>>2]=a;b=O[e+224>>3]*65536;C:{if(R(b)<2147483648){a=~~b;break C}a=-2147483648}J[d+112>>2]=a;b=O[e+232>>3]*65536;D:{if(R(b)<2147483648){a=~~b;break D}a=-2147483648}J[d+116>>2]=a;b=O[e+ -240>>3]*65536;E:{if(R(b)<2147483648){a=~~b;break E}a=-2147483648}J[d+120>>2]=a;b=O[e+248>>3]*65536;F:{if(R(b)<2147483648){a=~~b;break F}a=-2147483648}J[d+124>>2]=a;bc=e+272|0}function MFa(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=bc-48|0;bc=e;Jq(e+36|0,b,c);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{c=J[b+4>>2];b=J[c+8>>2];k=J[c+12>>2];if((b|0)==(k|0))break a;b:{if(d)while(1){d=K[b+11|0];c=d<<24>>24<0;g=c?J[b+4>>2]:d;h=c?J[b>>2]:b;d=K[e+47|0];c=d<<24>>24<0;f=c?J[e+40>>2]:d; -c:{if(f){if((f|0)>(g|0))break c;i=g+h|0;j=c?J[e+36>>2]:e+36|0;l=H[j|0];d=g;c=h;while(1){d=(d-f|0)+1|0;if(!d)break c;c=pg(c,l,d);if(!c)break c;if(Wc(c,j,f)){c=c+1|0;d=i-c|0;if((f|0)<=(d|0))continue;break c}break}if((c|0)==(i|0)|(c|0)!=(h|0))break c}J[695492]=0;c=e+8|0;ca(1618,c|0,h|0,g|0);d=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((d|0)!=1){J[695492]=0;ga(4752,c|0,(H[e+19|0]<0?J[e+8>>2]:c)|0,47)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[e+32>>2]=J[e+16>>2];J[e+16>>2]=0;c=J[e+12>>2];J[e+24>>2]= -J[e+8>>2];J[e+28>>2]=c;J[e+8>>2]=0;J[e+12>>2]=0;c=J[a+4>>2];if(c>>>0>2])break e;J[695492]=0;da(2791,a|0,e+24|0);c=J[695492];J[695492]=0;if((c|0)==1)break g;if(H[e+35|0]>=0)break d;qc(J[e+24>>2]);break d}b=Z()|0;break b}b=Z()|0;break f}b=Z()|0;if(H[e+35|0]>=0)break f;qc(J[e+24>>2])}if(H[e+19|0]>=0)break b;qc(J[e+8>>2]);break b}d=J[e+28>>2];J[c>>2]=J[e+24>>2];J[c+4>>2]=d;J[c+8>>2]=J[e+32>>2];J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[a+4>>2]=c+12}if(H[e+19|0]>=0)break c;qc(J[e+8>>2])}b=b+20|0; -if((k|0)!=(b|0))continue;break a}while(1){d=K[b+11|0];c=d<<24>>24<0;h=c?J[b+4>>2]:d;g=c?J[b>>2]:b;d=K[e+47|0];c=d<<24>>24<0;i:{f=c?J[e+40>>2]:d;j:{if(f){if((f|0)>(h|0))break i;i=g+h|0;j=c?J[e+36>>2]:e+36|0;l=H[j|0];d=h;c=g;while(1){d=(d-f|0)+1|0;if(!d)break i;c=pg(c,l,d);if(!c)break i;if(Wc(c,j,f)){c=c+1|0;d=i-c|0;if((f|0)<=(d|0))continue;break i}break}if((c|0)==(i|0)|(c|0)!=(g|0)|f>>>0>=h>>>0)break i;break j}if(!h)break i}c=f+g|0;d=g+h|0;while(1){f=K[c|0];if(!((f|0)==47|(f|0)==92)){c=c+1|0;if((d| -0)!=(c|0))continue;break i}break}if((c|0)==(d|0))break i;c=c-g|0;if((c|0)==-1)break i;c=c+1|0;k:{if(c>>>0>=h>>>0)break k;c=c+g|0;while(1){f=K[c|0];if(!((f|0)==47|(f|0)==92)){c=c+1|0;if((d|0)!=(c|0))continue;break k}break}if((c|0)==(d|0))break k;if((c-g|0)!=-1)break i}J[695492]=0;c=e+8|0;ca(1618,c|0,g|0,h|0);d=J[695492];J[695492]=0;l:{m:{n:{if((d|0)!=1){J[695492]=0;ga(4752,c|0,(H[e+19|0]<0?J[e+8>>2]:c)|0,47)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;J[e+32>>2]=J[e+16>>2];J[e+16>>2]=0;c=J[e+12>> -2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=c;J[e+8>>2]=0;J[e+12>>2]=0;c=J[a+4>>2];o:{if(c>>>0>2]){d=J[e+28>>2];J[c>>2]=J[e+24>>2];J[c+4>>2]=d;J[c+8>>2]=J[e+32>>2];J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[a+4>>2]=c+12;break o}J[695492]=0;da(2791,a|0,e+24|0);c=J[695492];J[695492]=0;if((c|0)==1)break m;if(H[e+35|0]>=0)break o;qc(J[e+24>>2])}if(H[e+19|0]>=0)break i;qc(J[e+8>>2]);break i}b=Z()|0;break b}b=Z()|0;break l}b=Z()|0;if(H[e+35|0]>=0)break l;qc(J[e+24>>2])}if(H[e+19|0]>=0)break b;qc(J[e+8>>2]); -break b}b=b+20|0;if((k|0)!=(b|0))continue;break}break a}sg(a);if(H[e+47|0]<0)qc(J[e+36>>2]);ba(b|0);B()}if(H[e+47|0]<0)qc(J[e+36>>2]);bc=e+48|0}function bj(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[a+20>>2]=1;q=he(a,1,c);d=J[a+20>>2];h=d<<1;d=d>>>0<256?q|h:h&254|q|256;J[a+20>>2]=d;f=he(a,d,c);d=J[a+20>>2];h=d<<1;d=d>>>0<256?f|h:f|h&254|256;J[a+20>>2]=d;h=he(a,d,c);d=J[a+20>>2];e=d<<1;d=d>>>0<256?h|e:h|e&254|256;J[a+20>>2]=d;d=he(a,d,c);e=J[a+20>>2];g=e<<1;e=e>>>0<256?d| -g:d|g&254|256;J[a+20>>2]=e;a:{b:{if(f){if(h){h=he(a,e,c);f=J[a+20>>2];e=f<<1;f=f>>>0<256?h|e:h|e&254|256;J[a+20>>2]=f;if(!d){d=he(a,f,c);f=J[a+20>>2];e=f<<1;f=f>>>0<256?d|e:d|e&254|256;J[a+20>>2]=f;f=he(a,f,c);e=J[a+20>>2];g=e<<1;e=e>>>0<256?f|g:f|g&254|256;J[a+20>>2]=e;e=he(a,e,c);g=J[a+20>>2];i=g<<1;g=g>>>0<256?e|i:e|i&254|256;J[a+20>>2]=g;g=he(a,g,c);i=J[a+20>>2];j=i<<1;i=i>>>0<256?g|j:g|j&254|256;J[a+20>>2]=i;m=a;c=he(a,i,c);a=J[a+20>>2];i=a<<1;J[m+20>>2]=a>>>0<256?c|i:c|i&254|256;a=(c|(g|((f| -(h<<2|d<<1))<<2|e<<1))<<1)+20|0;break a}f=he(a,f,c);d=J[a+20>>2];e=d<<1;d=d>>>0<256?f|e:f|e&254|256;J[a+20>>2]=d;if(!h){d=he(a,d,c);h=J[a+20>>2];e=h<<1;h=h>>>0<256?d|e:d|e&254|256;J[a+20>>2]=h;h=he(a,h,c);e=J[a+20>>2];g=e<<1;e=e>>>0<256?h|g:h|g&254|256;J[a+20>>2]=e;e=he(a,e,c);g=J[a+20>>2];i=g<<1;g=g>>>0<256?e|i:e|i&254|256;J[a+20>>2]=g;g=he(a,g,c);i=J[a+20>>2];j=i<<1;i=i>>>0<256?g|j:g|j&254|256;J[a+20>>2]=i;i=he(a,i,c);j=J[a+20>>2];k=j<<1;j=j>>>0<256?i|k:i|k&254|256;J[a+20>>2]=j;j=he(a,j,c);k=J[a+ -20>>2];n=k<<1;k=k>>>0<256?j|n:j|n&254|256;J[a+20>>2]=k;m=a;c=he(a,k,c);a=J[a+20>>2];k=a<<1;J[m+20>>2]=a>>>0<256?c|k:c|k&254|256;a=(c|(j|((g|((h|(f<<2|d<<1))<<2|e<<1))<<2|i<<1))<<1)+84|0;break a}if(!f)break b;f=0;h=0;while(1){e=he(a,d,c);d=J[a+20>>2];g=d<<1;d=d>>>0<256?e|g:e|g&254|256;J[a+20>>2]=d;h=e|h<<1;f=f+1|0;if((f|0)!=32)continue;break}a=h+4436|0;break a}h=he(a,e,c);f=J[a+20>>2];e=f<<1;f=f>>>0<256?h|e:h|e&254|256;J[a+20>>2]=f;f=he(a,f,c);e=J[a+20>>2];g=e<<1;e=e>>>0<256?f|g:f|g&254|256;J[a+20>> -2]=e;m=a;c=he(a,e,c);a=J[a+20>>2];e=a<<1;J[m+20>>2]=a>>>0<256?c|e:c|e&254|256;a=c|((f|(h<<1|d<<2))<<1)+4;break a}a=d|h<<1;break a}h=he(a,d,c);d=J[a+20>>2];f=d<<1;d=d>>>0<256?h|f:h|f&254|256;J[a+20>>2]=d;f=he(a,d,c);d=J[a+20>>2];e=d<<1;d=d>>>0<256?f|e:f|e&254|256;J[a+20>>2]=d;e=he(a,d,c);d=J[a+20>>2];g=d<<1;d=d>>>0<256?e|g:e|g&254|256;J[a+20>>2]=d;g=he(a,d,c);d=J[a+20>>2];i=d<<1;d=d>>>0<256?g|i:g|i&254|256;J[a+20>>2]=d;i=he(a,d,c);d=J[a+20>>2];j=d<<1;d=d>>>0<256?i|j:i|j&254|256;J[a+20>>2]=d;j=he(a, -d,c);d=J[a+20>>2];k=d<<1;d=d>>>0<256?j|k:j|k&254|256;J[a+20>>2]=d;k=he(a,d,c);d=J[a+20>>2];n=d<<1;d=d>>>0<256?k|n:k|n&254|256;J[a+20>>2]=d;n=he(a,d,c);d=J[a+20>>2];o=d<<1;d=d>>>0<256?n|o:n|o&254|256;J[a+20>>2]=d;o=he(a,d,c);d=J[a+20>>2];p=d<<1;d=d>>>0<256?o|p:o|p&254|256;J[a+20>>2]=d;p=he(a,d,c);d=J[a+20>>2];l=d<<1;d=d>>>0<256?p|l:p|l&254|256;J[a+20>>2]=d;d=he(a,d,c);l=J[a+20>>2];m=l<<1;l=l>>>0<256?d|m:d|m&254|256;J[a+20>>2]=l;m=a;c=he(a,l,c);a=J[a+20>>2];l=a<<1;J[m+20>>2]=a>>>0<256?c|l:c|l&254|256; -a=(c|(d|((o|((k|((i|((e|(h<<2|f<<1))<<2|g<<1))<<2|j<<1))<<2|n<<1))<<2|p<<1))<<1)+340|0}if(q){if(!a)return 0;a=0-a|0}J[b>>2]=a;return 1}function ap(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=bc-16|0;bc=h;b=J[a+344>>2]+1|0;J[a+344>>2]=b;a:{if(b>>>0>2])break a;if(K[a+398|0]){J[a+344>>2]=0;wc(J[a+352>>2],0,J[a+336>>2]+1|0);b:{g=K[a+399|0];f=g+1|0;b=f&255;if(b>>>0>6)break b;e=K[b+68824|0];d=(e+J[a+320>>2]|0)+(K[b+68817|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);c:{if(K[a+208|0]&2)break c;c=K[b+68723|0];b= -(c+J[a+324>>2]|0)+(K[b+68716|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+2|0;b=f&255;if(b>>>0>6)break b;e=K[b+68824|0];d=(e+J[a+320>>2]|0)+(K[b+68817|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68723|0];b=(c+J[a+324>>2]|0)+(K[b+68716|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+3|0;b=f&255;if(b>>>0>6)break b;e=K[b+68824|0];d=(e+J[a+320>>2]|0)+(K[b+68817|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c; -c=K[b+68723|0];b=(c+J[a+324>>2]|0)+(K[b+68716|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+4|0;b=f&255;if(b>>>0>6)break b;e=K[b+68824|0];d=(e+J[a+320>>2]|0)+(K[b+68817|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68723|0];b=(c+J[a+324>>2]|0)+(K[b+68716|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+5|0;b=f&255;if(b>>>0>6)break b;e=K[b+68824|0];d=(e+J[a+320>>2]|0)+(K[b+68817|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+ -208|0]&2)break c;c=K[b+68723|0];b=(c+J[a+324>>2]|0)+(K[b+68716|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+6|0;b=f&255;if(b>>>0>6)break b;e=K[b+68824|0];d=(e+J[a+320>>2]|0)+(K[b+68817|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68723|0];b=(c+J[a+324>>2]|0)+(K[b+68716|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+7|0;if(g>>>0<249)break b;b=f&255;e=K[b+68824|0];d=(e+J[a+320>>2]|0)+(K[b+68817|0]^-1)|0;J[a+340>>2]= -(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68723|0];b=(c+J[a+324>>2]|0)+(K[b+68716|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+8|0;d=f&255;if(d>>>0>6)break b;b=K[d+68824|0];J[a+340>>2]=((b+J[a+320>>2]|0)+(K[d+68817|0]^-1)>>>0)/(b>>>0);if(K[a+208|0]&2)break c;b=K[d+68723|0];J[a+328>>2]=((b+J[a+324>>2]|0)+(K[d+68716|0]^-1)>>>0)/(b>>>0)}H[a+399|0]=f;break a}H[a+399|0]=f}if(!(K[a+204|0]&32)){J[a+228>>2]=1;J[a+224>>2]=h+15;d=a+212|0;d:{while(1){if(!J[a+216>>2]){b=J[a+ -380>>2];e:{while(1){if(b)break e;Ld(a,0);b=dA(a);J[a+380>>2]=b;if(J[a+348>>2]==1229209940)continue;break}Ad(a,68730);B()}f=J[a+272>>2];J[a+216>>2]=f;c=J[a+268>>2];J[a+212>>2]=c;if(b>>>0>>0){J[a+216>>2]=b;f=b}qg(a,c,f);pe(a,c,f);J[a+380>>2]=J[a+380>>2]-J[a+216>>2]}b=zk(d,1);f:{if(b){if((b|0)==1){if(J[a+380>>2]|(J[a+216>>2]|!J[a+228>>2]))break f;break d}b=a;a=J[a+236>>2];Ad(b,a?a:68774);B()}if(J[a+228>>2])continue}break}Yc(a,68752)}J[a+228>>2]=0;J[a+200>>2]=J[a+200>>2]|8;J[a+204>>2]=J[a+204>>2]| -32}if(J[a+380>>2]|J[a+216>>2])Yc(a,68794);Jw(a+212|0);J[a+200>>2]=J[a+200>>2]|8}bc=h+16|0}function lt(a,b,c){a=a|0;b=+b;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;e=bc-272|0;bc=e;O[e+264>>3]=b;d=wc(e,0,256);a:{if(J[a+376>>2]<=0){a=0;e=0;break a}while(1){g=J[((f<<2)+a|0)+248>>2];gc[J[J[g>>2]+16>>2]](g,d+264|0,d+(f<<3)|0);f=f+1|0;if((f|0)>2])continue;break}b=O[d+128>>3]*65536;b:{if(R(b)<2147483648){a=~~b;break b}a=-2147483648}f=a;b=O[d+120>>3]*65536;c:{if(R(b)< -2147483648){a=~~b;break c}a=-2147483648}b=O[d+112>>3]*65536;d:{if(R(b)<2147483648){h=~~b;break d}h=-2147483648}b=O[d+104>>3]*65536;e:{if(R(b)<2147483648){i=~~b;break e}i=-2147483648}b=O[d+96>>3]*65536;f:{if(R(b)<2147483648){j=~~b;break f}j=-2147483648}b=O[d+88>>3]*65536;g:{if(R(b)<2147483648){k=~~b;break g}k=-2147483648}b=O[d+80>>3]*65536;h:{if(R(b)<2147483648){l=~~b;break h}l=-2147483648}b=O[d+72>>3]*65536;i:{if(R(b)<2147483648){m=~~b;break i}m=-2147483648}b=O[d+64>>3]*65536;j:{if(R(b)<2147483648){n= -~~b;break j}n=-2147483648}b=O[d+56>>3]*65536;k:{if(R(b)<2147483648){o=~~b;break k}o=-2147483648}b=O[d+48>>3]*65536;l:{if(R(b)<2147483648){p=~~b;break l}p=-2147483648}b=O[d+40>>3]*65536;m:{if(R(b)<2147483648){q=~~b;break m}q=-2147483648}b=O[d+32>>3]*65536;n:{if(R(b)<2147483648){r=~~b;break n}r=-2147483648}b=O[d+24>>3]*65536;o:{if(R(b)<2147483648){s=~~b;break o}s=-2147483648}b=O[d+16>>3]*65536;p:{if(R(b)<2147483648){t=~~b;break p}t=-2147483648}b=O[d+8>>3]*65536;q:{if(R(b)<2147483648){e=~~b;break q}e= --2147483648}g=e;b=O[d>>3]*65536;if(R(b)<2147483648){e=~~b;break a}e=-2147483648}J[c+64>>2]=f;J[c+60>>2]=a;J[c+56>>2]=h;J[c+52>>2]=i;J[c+48>>2]=j;J[c+44>>2]=k;J[c+40>>2]=l;J[c+36>>2]=m;J[c+32>>2]=n;J[c+28>>2]=o;J[c+24>>2]=p;J[c+20>>2]=q;J[c+16>>2]=r;J[c+12>>2]=s;J[c+8>>2]=t;J[c+4>>2]=g;J[c>>2]=e;b=O[d+136>>3]*65536;r:{if(R(b)<2147483648){a=~~b;break r}a=-2147483648}J[c+68>>2]=a;b=O[d+144>>3]*65536;s:{if(R(b)<2147483648){a=~~b;break s}a=-2147483648}J[c+72>>2]=a;b=O[d+152>>3]*65536;t:{if(R(b)<2147483648){a= -~~b;break t}a=-2147483648}J[c+76>>2]=a;b=O[d+160>>3]*65536;u:{if(R(b)<2147483648){a=~~b;break u}a=-2147483648}J[c+80>>2]=a;b=O[d+168>>3]*65536;v:{if(R(b)<2147483648){a=~~b;break v}a=-2147483648}J[c+84>>2]=a;b=O[d+176>>3]*65536;w:{if(R(b)<2147483648){a=~~b;break w}a=-2147483648}J[c+88>>2]=a;b=O[d+184>>3]*65536;x:{if(R(b)<2147483648){a=~~b;break x}a=-2147483648}J[c+92>>2]=a;b=O[d+192>>3]*65536;y:{if(R(b)<2147483648){a=~~b;break y}a=-2147483648}J[c+96>>2]=a;b=O[d+200>>3]*65536;z:{if(R(b)<2147483648){a= -~~b;break z}a=-2147483648}J[c+100>>2]=a;b=O[d+208>>3]*65536;A:{if(R(b)<2147483648){a=~~b;break A}a=-2147483648}J[c+104>>2]=a;b=O[d+216>>3]*65536;B:{if(R(b)<2147483648){a=~~b;break B}a=-2147483648}J[c+108>>2]=a;b=O[d+224>>3]*65536;C:{if(R(b)<2147483648){a=~~b;break C}a=-2147483648}J[c+112>>2]=a;b=O[d+232>>3]*65536;D:{if(R(b)<2147483648){a=~~b;break D}a=-2147483648}J[c+116>>2]=a;b=O[d+240>>3]*65536;E:{if(R(b)<2147483648){a=~~b;break E}a=-2147483648}J[c+120>>2]=a;b=O[d+248>>3]*65536;F:{if(R(b)<2147483648){a= -~~b;break F}a=-2147483648}J[c+124>>2]=a;bc=d+272|0}function TA(a,b,c){a=a|0;b=+b;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;e=bc-272|0;bc=e;O[e+264>>3]=b;d=wc(e,0,256);a:{if(J[a+360>>2]<=0){a=0;e=0;break a}while(1){g=J[((f<<2)+a|0)+232>>2];gc[J[J[g>>2]+16>>2]](g,d+264|0,d+(f<<3)|0);f=f+1|0;if((f|0)>2])continue;break}b=O[d+128>>3]*65536;b:{if(R(b)<2147483648){a=~~b;break b}a=-2147483648}f=a;b=O[d+120>>3]*65536;c:{if(R(b)<2147483648){a=~~b;break c}a=-2147483648}b= -O[d+112>>3]*65536;d:{if(R(b)<2147483648){h=~~b;break d}h=-2147483648}b=O[d+104>>3]*65536;e:{if(R(b)<2147483648){i=~~b;break e}i=-2147483648}b=O[d+96>>3]*65536;f:{if(R(b)<2147483648){j=~~b;break f}j=-2147483648}b=O[d+88>>3]*65536;g:{if(R(b)<2147483648){k=~~b;break g}k=-2147483648}b=O[d+80>>3]*65536;h:{if(R(b)<2147483648){l=~~b;break h}l=-2147483648}b=O[d+72>>3]*65536;i:{if(R(b)<2147483648){m=~~b;break i}m=-2147483648}b=O[d+64>>3]*65536;j:{if(R(b)<2147483648){n=~~b;break j}n=-2147483648}b=O[d+56>>3]* -65536;k:{if(R(b)<2147483648){o=~~b;break k}o=-2147483648}b=O[d+48>>3]*65536;l:{if(R(b)<2147483648){p=~~b;break l}p=-2147483648}b=O[d+40>>3]*65536;m:{if(R(b)<2147483648){q=~~b;break m}q=-2147483648}b=O[d+32>>3]*65536;n:{if(R(b)<2147483648){r=~~b;break n}r=-2147483648}b=O[d+24>>3]*65536;o:{if(R(b)<2147483648){s=~~b;break o}s=-2147483648}b=O[d+16>>3]*65536;p:{if(R(b)<2147483648){t=~~b;break p}t=-2147483648}b=O[d+8>>3]*65536;q:{if(R(b)<2147483648){e=~~b;break q}e=-2147483648}g=e;b=O[d>>3]*65536;if(R(b)< -2147483648){e=~~b;break a}e=-2147483648}J[c+64>>2]=f;J[c+60>>2]=a;J[c+56>>2]=h;J[c+52>>2]=i;J[c+48>>2]=j;J[c+44>>2]=k;J[c+40>>2]=l;J[c+36>>2]=m;J[c+32>>2]=n;J[c+28>>2]=o;J[c+24>>2]=p;J[c+20>>2]=q;J[c+16>>2]=r;J[c+12>>2]=s;J[c+8>>2]=t;J[c+4>>2]=g;J[c>>2]=e;b=O[d+136>>3]*65536;r:{if(R(b)<2147483648){a=~~b;break r}a=-2147483648}J[c+68>>2]=a;b=O[d+144>>3]*65536;s:{if(R(b)<2147483648){a=~~b;break s}a=-2147483648}J[c+72>>2]=a;b=O[d+152>>3]*65536;t:{if(R(b)<2147483648){a=~~b;break t}a=-2147483648}J[c+76>> -2]=a;b=O[d+160>>3]*65536;u:{if(R(b)<2147483648){a=~~b;break u}a=-2147483648}J[c+80>>2]=a;b=O[d+168>>3]*65536;v:{if(R(b)<2147483648){a=~~b;break v}a=-2147483648}J[c+84>>2]=a;b=O[d+176>>3]*65536;w:{if(R(b)<2147483648){a=~~b;break w}a=-2147483648}J[c+88>>2]=a;b=O[d+184>>3]*65536;x:{if(R(b)<2147483648){a=~~b;break x}a=-2147483648}J[c+92>>2]=a;b=O[d+192>>3]*65536;y:{if(R(b)<2147483648){a=~~b;break y}a=-2147483648}J[c+96>>2]=a;b=O[d+200>>3]*65536;z:{if(R(b)<2147483648){a=~~b;break z}a=-2147483648}J[c+100>> -2]=a;b=O[d+208>>3]*65536;A:{if(R(b)<2147483648){a=~~b;break A}a=-2147483648}J[c+104>>2]=a;b=O[d+216>>3]*65536;B:{if(R(b)<2147483648){a=~~b;break B}a=-2147483648}J[c+108>>2]=a;b=O[d+224>>3]*65536;C:{if(R(b)<2147483648){a=~~b;break C}a=-2147483648}J[c+112>>2]=a;b=O[d+232>>3]*65536;D:{if(R(b)<2147483648){a=~~b;break D}a=-2147483648}J[c+116>>2]=a;b=O[d+240>>3]*65536;E:{if(R(b)<2147483648){a=~~b;break E}a=-2147483648}J[c+120>>2]=a;b=O[d+248>>3]*65536;F:{if(R(b)<2147483648){a=~~b;break F}a=-2147483648}J[c+ -124>>2]=a;bc=d+272|0}function Rpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0;f=bc-16|0;bc=f;a:{b:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;g=1029;Dc(a,1029,0,0);break a}if(c>>>0>5){g=d;while(1){j=g;g=g+1|0;if(K[j|0])continue;break}s=j+3|0;q=s;while(1){h=q;q=h+1|0;if(K[h|0])continue;break}l=q;while(1){i=l;l=i+1|0;if(K[i|0])continue;break}m=j-d|0;if(!(!((m|0)>(c|0)|(h-d|0)>(c| -0))&(i-d|0)<=(c|0))){g=1043;Dc(a,1043,0,0);break a}if((d|0)==(j|0)){g=1044;Dc(a,1044,0,0);break a}t=K[g|0];if(t>>>0>=2){g=1038;Dc(a,1038,0,0);break a}if(K[j+2|0]){g=1038;Dc(a,1038,0,0);break a}J[f+12>>2]=0;J[f+4>>2]=0;k=i-h|0;n=h-j|0;r=c-(k+(n+m|0)|0)|0;o=r-1|0;u=k-1|0;v=n-3|0;h=0;c=0;i=0;c:{if(!J[a+192>>2])break c;d:{if(t){g=su(a,l,o,f+4|0,f+8|0,f+12|0);if(!g)break d;b=J[f+4>>2];if(!b)break a;gc[J[a+156>>2]](b,J[f+8>>2]);break a}J[f+8>>2]=r;J[f+12>>2]=o;c=gc[J[a+152>>2]](r)|0;J[f+4>>2]=c;if(!c){g= -1;Dc(a,1,0,0);break a}tc(c,l,o)}g=m+1|0;i=gc[J[a+152>>2]](g)|0;w=n-2|0;c=gc[J[a+152>>2]](w)|0;h=gc[J[a+152>>2]](k)|0;if(h?!i|!c:1){if(h)gc[J[a+156>>2]](h,k);if(c)gc[J[a+156>>2]](c,w);if(i)gc[J[a+156>>2]](i,g);b=J[f+4>>2];if(b)gc[J[a+156>>2]](b,J[f+8>>2]);g=1;Dc(a,1,0,0);break a}x=tc(i,d,m);y=tc(c,s,v);z=tc(h,q,u);p=J[f+4>>2];if(gc[J[a+192>>2]](a,2,x,p,y,z)|0)break c;gc[J[a+156>>2]](z,k);gc[J[a+156>>2]](y,w);gc[J[a+156>>2]](x,g);if(p)gc[J[a+156>>2]](p,J[f+8>>2]);g=904;Dc(a,904,0,0);break a}e:{if(!K[a+ -112|0])break e;g=gc[J[b+4>>2]](a,b,e)|0;if(g){if(h)gc[J[a+156>>2]](h,k);if(c)gc[J[a+156>>2]](c,n-2|0);if(i)gc[J[a+156>>2]](i,m+1|0);if(!p)break a;gc[J[a+156>>2]](p,J[f+8>>2]);break a}b=J[e>>2];J[b+52>>2]=u;J[b+44>>2]=v;J[b+32>>2]=m;H[b+40|0]=K[j+1|0];H[b+41|0]=K[j+2|0];f:{if(!o|p)break f;if(t){g=su(a,l,o,f+4|0,f+8|0,f+12|0);if(!g)break f;if(h)gc[J[a+156>>2]](h,k);if(c)gc[J[a+156>>2]](c,n-2|0);if(i)gc[J[a+156>>2]](i,m+1|0);b=J[f+4>>2];if(!b)break a;gc[J[a+156>>2]](b,J[f+8>>2]);break a}J[f+8>>2]=r; -J[f+12>>2]=o;b=gc[J[a+152>>2]](r)|0;J[f+4>>2]=b;if(!b){g=1;Dc(a,1,0,0);break a}tc(b,l,o)}g=m+1|0;b=gc[J[a+152>>2]](g)|0;J[J[e>>2]+36>>2]=b;l=n-2|0;b=gc[J[a+152>>2]](l)|0;J[J[e>>2]+48>>2]=b;b=gc[J[a+152>>2]](k)|0;J[J[e>>2]+56>>2]=b;b=J[e>>2];j=J[b+36>>2];if(J[b+56>>2]?!j|!J[b+48>>2]:1){if(h)gc[J[a+156>>2]](h,k);if(c)gc[J[a+156>>2]](c,l);if(i)gc[J[a+156>>2]](i,g);b=J[f+4>>2];if(b)gc[J[a+156>>2]](b,J[f+8>>2]);g=1;Dc(a,1,0,0);break a}tc(j,d,m);tc(J[J[e>>2]+48>>2],s,v);tc(J[J[e>>2]+56>>2],q,u);b=J[f+12>> -2];J[J[e>>2]+60>>2]=b;if(!b)break e;d=gc[J[a+152>>2]](b+1|0)|0;J[J[e>>2]+64>>2]=d;d=J[J[e>>2]+64>>2];if(!d){if(h)gc[J[a+156>>2]](h,k);if(c)gc[J[a+156>>2]](c,l);if(i)gc[J[a+156>>2]](i,g);b=J[f+4>>2];if(b)gc[J[a+156>>2]](b,J[f+8>>2]);g=1;Dc(a,1,0,0);break a}tc(d,J[f+4>>2],b)}if(h)gc[J[a+156>>2]](h,k);if(c)gc[J[a+156>>2]](c,n-2|0);if(i)gc[J[a+156>>2]](i,m+1|0);g=0;b=J[f+4>>2];if(!b)break a;gc[J[a+156>>2]](b,J[f+8>>2]);break a}g=1028;Dc(a,1028,0,0)}bc=f+16|0;return g|0}function zw(a){var b=0,c=0,d=0, -e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=bc-32|0;bc=h;a:{if(!a)break a;a=K[a|0]!=47|K[a+1|0]!=47?a:K[a+2|0]==47?a:a+1|0;b:{b=gc[J[659447]](44)|0;if(!b){J[h+16>>2]=34134;Cc(0,0,0,0,0,30,2,3,34134,0,0,0,32863,h+16|0);break b}J[b>>2]=0;J[b+4>>2]=0;J[b+40>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;c=Ht(b,a);Xj(b);if(c)break b;b=a;while(1){c=b;b=b+1|0;if(K[c|0])continue;break}b=0;c=c-a|0;if((c|0)<0)break a;d=gc[J[659450]](c+1|0)|0;if(!d){Cc(0,0,0, -0,0,1,2,3,0,0,0,0,36013,0);break a}b=tc(d,a,c);H[c+b|0]=0;break a}c=K[a|0];c:{if(!c)break c;b=a;while(1){d:{if((c&255)==58){if((b|0)==28625)break d;if(!kd(b,28625,3))break d}c=K[b+1|0];b=b+1|0;if(c)continue;break c}break}c=b-a|0;if(c-21>>>0<4294967276)break c;b=0;while(1){if(((K[a+b|0]&223)-65&255)>>>0>=26)break c;b=b+1|0;if((c|0)!=(b|0))continue;break}b=0;e=bc+-64|0;bc=e;i=a;e:{if(!a)break e;if(K[a|0]){b=a;while(1){c=d;d=c+1|0;f=K[b+1|0];b=b+1|0;if(f)continue;break}d=0;f=c+21|0;c=gc[J[659450]](f)| -0;if(c){b=K[i|0];if(b)while(1){if((f-d|0)<=3){f:{g:{if((f|0)>=1048577){J[e+32>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,e+32|0);break g}f=f<<1;b=gc[J[659452]](c,f|1)|0;if(b)break f;J[e+48>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,e+48|0)}J[e+16>>2]=33960;b=0;Cc(0,0,0,0,0,30,2,3,33960,0,0,0,32863,e+16|0);gc[J[659451]](c);break e}c=b;b=K[i|0]}h:{i:{if((b-48&255)>>>0<10|(b+-64&255)>>>0<27|(b-97&255)>>>0<26)break i;j:{k:{j=b&255;switch(j-33|0){case 0:case 6:case 7:case 8:case 9:case 12:case 13:case 62:break i; -case 1:case 2:case 3:case 4:case 5:case 10:case 11:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:break j;default:break k}}if((j|0)==126)break i}g=22213;k=K[22213]; -if(k)while(1){if((j|0)==(k|0))break i;k=K[g+1|0];g=g+1|0;if(k)continue;break}g=c+d|0;H[g|0]=37;b=b&15;H[g+2|0]=b>>>0<10?b|48:b+55|0;b=j>>>4|0;H[g+1|0]=j>>>0<160?b|48:b+55|0;d=d+3|0;break h}H[c+d|0]=b;d=d+1|0}b=K[i+1|0];i=i+1|0;if(b)continue;break}H[c+d|0]=0;b=c;break e}J[e>>2]=33960;b=0;Cc(0,0,0,0,0,30,2,3,33960,0,0,0,32863,e);break e}c=gc[J[659450]](1)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break e}H[c|0]=0;b=c}bc=e- -64|0;if(!b)break c;c=gc[J[659447]](44)|0;if(!c){J[h>>2]=34134;Cc(0,0,0,0, -0,30,2,3,34134,0,0,0,32863,h);break c}J[c>>2]=0;J[c+4>>2]=0;J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;d=Ht(c,b);Xj(c);if(!d)break a}c=a;while(1){d=c;c=c+1|0;if(K[d|0])continue;break}b=0;c=d-a|0;if((c|0)<0)break a;d=gc[J[659450]](c+1|0)|0;if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break a}b=tc(d,a,c);H[c+b|0]=0}bc=h+32|0;return b}function Ypb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(!(K[a+285| -0]|K[a+286|0]|(K[a+287|0]|K[a+288|0])))break c;if(K[a+300|0]|K[a+289|0])break c;if(!(K[a+287|0]|!K[a+294|0])){Dc(a,1031,0,0);return 1031}if(c>>>0>=257)break b;d:{e:{f:{g:{g=K[a+286|0];if(g|K[a+287|0]|K[a+288|0]){h:{i:{f=K[a+325|0];switch(f-4|0){case 0:case 2:break i;default:break h}}Dc(a,1030,0,0);return 1030}j:{if(c){if(!(f|(c|0)==2)|!((c|0)==6|(f|0)!=2))break b;if((f|0)!=3)break j;f=J[a+512>>2];if(!f)f=J[a+528>>2];if(M[J[f+88>>2]+64>>2]>=c>>>0)break j;break b}if(K[a+307|0])break j;Dc(a,1034,0,0); -return 1034}if(g)break g}if(K[a+287|0])break g;k:{if(K[a+288|0]){H[a+294|0]=1;break k}H[a+307|0]=1}if(K[a+288|0])break f;J[a+1932>>2]=c;h=tc(a+1936|0,d,c);f=0;l:{if(!K[a+114|0])break l;f=gc[J[a+152>>2]](288)|0;if(!f){Dc(a,1,0,0);f=1;break l}J[f+4>>2]=1028;J[f>>2]=1029;g=J[a+700>>2];m:{if(g){J[g+8>>2]=f;break m}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+28>>2]= -c;tc(f+32|0,h,256);f=0}if(!f)break e;break d}H[a+294|0]=1}if(K[a+288|0]){f=J[J[a+528>>2]+88>>2];n:{o:switch(K[a+325|0]){case 0:g=K[d|0]|K[d+1|0]<<8;I[f+838>>1]=0;I[f+840>>1]=0;I[f+842>>1]=0;I[f+844>>1]=0;I[f+846>>1]=0;I[f+836>>1]=g<<8|g>>>8;break n;case 2:I[f+836>>1]=0;g=K[d|0]|K[d+1|0]<<8;I[f+838>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[f+840>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;J[f+844>>2]=0;I[f+842>>1]=g<<8|g>>>8;break n;case 3:break o;default:break n}J[f+844>>2]=c;J[f+836>>2]=0;J[f+840>>2]=0; -tc(f+848|0,d,c)}H[f+56|0]=1;break e}f=J[a+512>>2];if(!f)f=J[a+528>>2];h=J[f+88>>2];H[h+56|0]=1;p:{q:{if(c){i=K[a+325|0];g=d;f=c;break q}i=K[a+325|0];f=J[a+1932>>2];if(!(i|(f|0)==2)|!((f|0)==6|(i|0)!=2))break a;g=a+1936|0;if((i|0)!=3)break q;if(M[h+64>>2]>=f>>>0?f:0)break p;break a}r:switch(i|0){case 0:f=K[g|0]|K[g+1|0]<<8;I[h+838>>1]=0;I[h+840>>1]=0;I[h+842>>1]=0;I[h+844>>1]=0;I[h+846>>1]=0;I[h+836>>1]=f<<8|f>>>8;break e;case 3:break p;case 2:break r;default:break e}I[h+836>>1]=0;f=K[g|0]|K[g+1|0]<< -8;I[h+838>>1]=f<<8|f>>>8;f=K[g+2|0]|K[g+3|0]<<8;I[h+840>>1]=f<<8|f>>>8;f=K[g+4|0]|K[g+5|0]<<8;J[h+844>>2]=0;I[h+842>>1]=f<<8|f>>>8;break e}J[h+844>>2]=f;J[h+836>>2]=0;J[h+840>>2]=0;tc(h+848|0,g,f)}f=0;if(!K[a+112|0])break d;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break d;if(K[a+286|0]|K[a+287|0]|K[a+288|0]){f=0;b=J[e>>2];H[b+33|0]=0;a=K[a+325|0];H[b+34|0]=a;if(!c){H[b+32|0]=1;return 0}H[b+32|0]=0;s:switch(a|0){case 0:a=K[d|0]|K[d+1|0]<<8;I[b+296>>1]=a<<8|a>>>8;return 0;case 2:a=K[d|0]|K[d+1|0]<<8;I[b+298>> -1]=a<<8|a>>>8;a=K[d+2|0]|K[d+3|0]<<8;I[b+300>>1]=a<<8|a>>>8;a=K[d+4|0]|K[d+5|0]<<8;I[b+302>>1]=a<<8|a>>>8;return 0;case 3:break s;default:break d}J[b+36>>2]=c;tc(b+40|0,d,c);return 0}a=J[e>>2];J[a+304>>2]=c;H[a+33|0]=1;H[a+34|0]=0;H[a+32|0]=!c;tc(a+308|0,d,c);f=0}return f|0}Dc(a,1029,0,0);return 1029}Dc(a,1028,0,0);return 1028}Dc(a,1035,0,0);return 1035}function kvb(a){a=a|0;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;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a; -b=gc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;g=gc[J[a+228>>2]](a,(J[a+680>>2]+J[a+572>>2]|0)-J[a+664>>2]|0)|0;e=b;b=J[a+580>>2];c=J[a+672>>2];d=(e+P(b,3)|0)+P(c,3)|0;e=J[a+656>>2];h=e+b|0;e=(e|0)/J[a+584>>2]|0;g=c+(b+g|0)|0;c=J[a+660>>2];f=K[a+649|0];b=J[a+644>>2];b:{if(!K[a+648|0]){b=b+(e<<2)|0;if(!f)break b;if((c|0)<=(h|0))break a;while(1){H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0];H[g|0]=K[b+3|0];b=b+4|0;c=J[a+584>>2];g=c+g|0;d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}b= -b+(e<<3)|0;if(f){if((c|0)<=(h|0))break a;while(1){H[d|0]=K[b|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b+4|0];H[g|0]=K[b+6|0];b=b+8|0;c=J[a+584>>2];g=c+g|0;d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;d:{if((c|0)!=65535){e=K[g|0];e=e<<8|e;if(e)break d}H[d|0]=K[b|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b+4|0];H[g|0]=K[b+6|0];break c}if((e|0)==65535){e=K[b|0]|K[b+1|0]<<8;f=K[b+2|0]|K[b+3|0]<<8;i=K[b+4|0]| -K[b+5|0]<<8;j=P(c,(i<<8|i>>>8)&65535);i=K[d+2|0];k=i<<8|i;i=c^65535;j=(j+P(k,i)|0)+32768|0;H[d+2|0]=(j>>>16|0)+j>>>24;j=P((f<<8|f>>>8)&65535,c);f=K[d+1|0];f=(j+P(i,f<<8|f)|0)+32768|0;H[d+1|0]=(f>>>16|0)+f>>>24;e=P((e<<8|e>>>8)&65535,c);c=K[d|0];c=(e+P(i,c<<8|c)|0)+32768|0;H[d|0]=(c>>>16|0)+c>>>24;break c}f=K[d|0];i=K[d+1|0];j=K[b|0]|K[b+1|0]<<8;k=K[b+2|0]|K[b+3|0]<<8;l=c^65535;n=P(l,e^65535)^-1;m=n>>>16|0;e=(P(e,l)>>>0)/(m>>>0)|0;o=K[d+2|0];c=(c<<16>>>0)/(m>>>0)|0;l=K[b+4|0]|K[b+5|0]<<8;H[d+2|0]= -(P(e,o<<8|o)+P(c,(l<<8|l>>>8)&65535)|0)+32767>>>24;H[d+1|0]=(P(e,i|i<<8)+P(c,(k<<8|k>>>8)&65535)|0)+32767>>>24;H[d|0]=(P(e,f|f<<8)+P(c,(j<<8|j>>>8)&65535)|0)+32767>>>24;H[g|0]=n>>>24}b=b+8|0;c=J[a+584>>2];g=c+g|0;d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+3|0];e:{if(!c)break e;f:{if((c|0)!=255){e=K[g|0];if(e)break f}H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0];H[g|0]=K[b+3|0];break e}if((e|0)==255){e=c^255;f=(P(c,K[b|0])+P(e,K[d|0])| -0)+128|0;H[d|0]=(f>>>8&255)+f>>>8;f=(P(c,K[b+1|0])+P(e,K[d+1|0])|0)+128|0;H[d+1|0]=(f>>>8&255)+f>>>8;c=(P(c,K[b+2|0])+P(e,K[d+2|0])|0)+128|0;H[d+2|0]=(c>>>8&255)+c>>>8;break e}f=K[b|0];i=K[b+1|0];j=c^255;k=P(j,e^255)>>>8^-1;m=k&255;c=(c<<8>>>0)/(m>>>0)|0;e=(P(e,j)>>>0)/(m>>>0)|0;H[d+2|0]=(P(c,K[b+2|0])+P(e,K[d+2|0])|0)+127>>>8;H[d+1|0]=(P(c,i)+P(e,K[d+1|0])|0)+127>>>8;H[d|0]=(P(c,f)+P(e,K[d|0])|0)+127>>>8;H[g|0]=k}b=b+4|0;c=J[a+584>>2];g=c+g|0;d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}}d= -J[a+680>>2]+J[a+572>>2]|0;g=J[a+664>>2];b=J[a+556>>2];h=J[a+672>>2];g:{if((h|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=h}e=b;b=J[a+676>>2];if((e|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-g|0;h:{if((d|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function Gpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if(!(1<>>0<=28:0)){Dc(a,1028,0,0); -return 1028}f=K[d|0]|K[d+1|0]<<8;I[a+1016>>1]=f<<8|f>>>8;b:{c:{d:{e:{f:{g:{if(c>>>0<=2){I[a+1018>>1]=0;break g}i=1;H[a+1018|0]=1;H[a+1019|0]=K[d+2|0];if((c|0)!=3)break f}i=0;I[a+1020>>1]=0;break e}H[a+1020|0]=1;H[a+1021|0]=K[d+3|0];if(c>>>0>4)break d}J[a+1024>>2]=0;J[a+1028>>2]=0;H[a+1022|0]=0;break c}H[a+1022|0]=1;f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+1024>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+1028>>2]=f<<24|(f&65280)<< -8|(f>>>8&65280|f>>>24);j=1;if(c>>>0<13)break c;H[a+1032|0]=1;f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[a+1036>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[a+1040>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);J[a+1044>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);J[a+1048>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=1;break b}J[a+ -1036>>2]=0;J[a+1040>>2]=0;H[a+1032|0]=0;f=a+1044|0;J[f>>2]=0;J[f+4>>2]=0;f=0}h=0;h:{if(!K[a+114|0])break h;g=gc[J[a+152>>2]](64)|0;if(!g){Dc(a,1,0,0);h=1;break h}J[g+4>>2]=1044;J[g>>2]=1045;h=J[a+700>>2];i:{if(h){J[h+8>>2]=g;break i}J[a+696>>2]=g}J[g+8>>2]=0;J[g+12>>2]=h;J[a+700>>2]=g;J[g+16>>2]=J[a+436>>2];J[g+20>>2]=J[a+440>>2];J[g+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=g;I[g+28>>1]=L[a+1016>>1];H[g+30|0]=K[a+1018|0];H[g+31|0]=K[a+1019|0];H[g+32|0]=K[a+1020|0]; -H[g+33|0]=K[a+1021|0];H[g+34|0]=K[a+1022|0];J[g+36>>2]=J[a+1024>>2];J[g+40>>2]=J[a+1028>>2];H[g+44|0]=K[a+1032|0];J[g+48>>2]=J[a+1036>>2];J[g+52>>2]=J[a+1040>>2];J[g+56>>2]=J[a+1044>>2];J[g+60>>2]=J[a+1048>>2];h=0}j:{if(h)break j;h=g8(a);if(h)break j;h=0;if(!K[a+112|0])break j;h=gc[J[b+4>>2]](a,b,e)|0;if(h)break j;b=J[e>>2];a=K[d|0]|K[d+1|0]<<8;I[b+32>>1]=a<<8|a>>>8;k:{if(c>>>0>=3){H[b+34|0]=1;H[b+35|0]=K[d+2|0];break k}H[b+34|0]=0}l:{if(i){H[b+36|0]=1;H[b+37|0]=K[d+3|0];break l}H[b+36|0]=0}m:{if(j){H[b+ -38|0]=1;a=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[b+40>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[b+44>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break m}H[b+38|0]=0}if(f){H[b+48|0]=1;a=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[b+52>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[b+56>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<< -16|K[d+23|0]<<24);J[b+60>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);J[b+64>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}h=0;H[b+48|0]=0}return h|0}Dc(a,1029,0,0);return 1029}function xr(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;l=J[a+88>>2];n=l+12|0;a:{b:{c:{d:{if(H[a+8|0]&1){e:{f:{g:{h:{i:{j:{k:{p=J[b>>2];switch(p|0){case 3:break i;case 2:break j;case 0:break k;case 1:break g;case 4:break h;default:break e}}e= -L[a+68>>1];f=e;break e}e=J[a+60>>2]-J[a+52>>2]|0;d=J[a- -64>>2]-J[a+56>>2]|0;break f}e=I[a+76>>1];d=I[a+70>>1]-I[a+72>>1]|0;break f}c=J[b+4>>2];J[l+16>>2]=c;b=J[b+8>>2];J[l+20>>2]=b;if(!c)break c;if(b)break b;break d}e=I[a+70>>1]-I[a+72>>1]|0;d=e}c=d;c=c>>31;f=(d^c)-c|0;c=e>>31;e=(c^e)-c|0}d=J[b+4>>2];i=d;c=J[b+12>>2];if(c)i=(P(c,d)+36|0)/72|0;g=J[b+8>>2];m=g;b=J[b+16>>2];if(b)m=(P(b,g)+36|0)/72|0;l:{if(d){c=2147483647;m:{if(!e)break m;b=i>>31;h=(b^i)-b|0;if(h>>>0<=(e>>>17^65535)>>>0){c=((h<<16)+ -(e>>>1|0)>>>0)/(e>>>0)|0;break m}b=h<<16;d=b+(e>>>1|0)|0;b=(h>>>16|0)+(b>>>0>d>>>0)|0;if(b>>>0>=e>>>0)break m;o=S(b);j=32-o|0;b=d>>>j|b<>>0)/(e>>>0)|0;k=b-P(c,e)|0;b=d<>>31;h=d>>>0>=e>>>0;k=d-(h?e:0)|0;c=h|c<<1;j=31-o|0;b=b<<1}if((o|0)==31)break m;while(1){d=k<<1|b>>>31;o=d>>>0>=e>>>0;d=b>>>30&1|d-(o?e:0)<<1;h=d>>>0>=e>>>0;k=d-(h?e:0)|0;c=c<<2|o<<1|h;b=b<<2;j=j-2|0;if(j)continue;break}}c=(i|0)<0?0-c|0:c;J[l+16>>2]=c;if(g){b=2147483647;n:{if(!f)break n;d=m>>31;h=(d^m)-d| -0;if(h>>>0<=(f>>>17^65535)>>>0){b=((h<<16)+(f>>>1|0)>>>0)/(f>>>0)|0;break n}d=h<<16;g=d+(f>>>1|0)|0;d=(h>>>16|0)+(d>>>0>g>>>0)|0;if(d>>>0>=f>>>0)break n;h=S(d);j=32-h|0;d=g>>>j|d<>>0)/(f>>>0)|0;k=d-P(b,f)|0;e=g<>>31;g=d>>>0>=f>>>0;k=d-(g?f:0)|0;j=31-h|0;e=e<<1;b=g|b<<1}if((h|0)==31)break n;while(1){d=k<<1|e>>>31;h=d>>>0>=f>>>0;d=e>>>30&1|d-(h?f:0)<<1;g=d>>>0>=f>>>0;k=d-(g?f:0)|0;b=g|(b<<2|h<<1);e=e<<2;j=j-2|0;if(j)continue;break}}b=(m|0)<0?0-b|0:b;J[l+20>>2]=b;if((p|0)!= -3)break l;if((b|0)<=(c|0))break c;break d}J[l+20>>2]=c;m=Dd(i,f,e);b=c;break l}i=2147483647;o:{if(!f)break o;b=m>>31;d=(b^m)-b|0;if(d>>>0<=(f>>>17^65535)>>>0){i=((d<<16)+(f>>>1|0)>>>0)/(f>>>0)|0;break o}b=d<<16;c=b+(f>>>1|0)|0;b=(d>>>16|0)+(b>>>0>c>>>0)|0;if(b>>>0>=f>>>0)break o;g=S(b);k=32-g|0;b=c>>>k|b<>>0)/(f>>>0)|0;j=b-P(f,i)|0;b=c<>>31;d=c>>>0>=f>>>0;j=c-(d?f:0)|0;i=d|i<<1;k=31-g|0;b=b<<1}if((g|0)==31)break o;while(1){c=j<<1|b>>>31;g=c>>>0>=f>>>0;c=b>>>30&1|c-(g?f: -0)<<1;d=c>>>0>=f>>>0;j=c-(d?f:0)|0;i=d|(i<<2|g<<1);b=b<<2;k=k-2|0;if(k)continue;break}}b=(m|0)<0?0-i|0:i;J[l+16>>2]=b;J[l+20>>2]=b;i=Dd(m,e,f);c=b}if(!p)break a;break b}J[n>>2]=0;J[n+4>>2]=0;J[n+24>>2]=0;J[n+16>>2]=0;J[n+20>>2]=0;J[n+8>>2]=0;J[n+12>>2]=0;J[l+16>>2]=65536;J[l+20>>2]=65536;return}J[l+20>>2]=c;b=c;break b}J[l+16>>2]=b;c=b}d=(c|0)<0;g=L[a+68>>1];e=c;c=c>>31;c=(e^c)-c|0;p:{if(g+(c>>>8|0)>>>0<=8190){c=P(c,g)+32768>>>16|0;break p}c=P(g,c>>>16|0)+(P(g,c&65535)+32768>>>16|0)|0}i=d?0-c|0:c; -c=b>>31;c=(c^b)-c|0;q:{if(g+(c>>>8|0)>>>0<=8190){c=P(c,g)+32768>>>16|0;break q}c=P(g,c>>>16|0)+(P(g,c&65535)+32768>>>16|0)|0}m=(b|0)<0?0-c|0:c}I[l+14>>1]=m+32>>>6;I[l+12>>1]=i+32>>>6;Z5(a,n)}function cV(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;g=J[a>>2];e=K[a+8|0];a:{b:{if(!e){j=c?L[c+8>>1]:0;d=K[a+9|0];if(d>>>0<=7){c:{d:switch(d-1|0){case 0:j=0-(j&1)&255;if(!g)break c;e=b+g|0;d=0-g&7;h=g-1|0;f=(h>>>3|0)+b|0;if(h){k=g&-2;h=0;while(1){H[e-1|0]=K[f|0]>>>d&1?-1:0;e=e-2|0;i=f;f=(d|0)== -7;i=i-f|0;d=f?0:d+1|0;H[e|0]=K[i|0]>>>d&1?-1:0;f=(d|0)==7;d=f?0:d+1|0;f=i-f|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c;H[e-1|0]=K[f|0]>>>d&1?-1:0;break c;case 1:j=P(j&3,85);if(!g)break c;e=b+g|0;h=g-1|0;f=(h>>>2|0)+b|0;d=((g<<1)+6^-1)&6;if(h){k=g&-2;h=0;while(1){H[e-1|0]=P(K[f|0]>>>d&3,85);e=e-2|0;i=f;f=(d|0)==6;i=i-f|0;d=f?0:d+2|0;H[e|0]=P(K[i|0]>>>d&3,85);f=(d|0)==6;d=f?0:d+2|0;f=i-f|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c;H[e-1|0]=P(K[f|0]>>>d&3,85);break c; -case 3:break d;default:break c}j=P(j&15,17);if(!g)break c;e=b+g|0;d=g<<2&4;h=g-1|0;f=(h>>>1|0)+b|0;if(h){k=g&-2;h=0;while(1){i=K[f|0]>>>d|0;H[e-1|0]=i&15|i<<4;e=e-2|0;i=f;f=(d|0)!=0;i=i-f|0;l=!d;d=K[i|0]>>>(l<<2)|0;H[e|0]=d&15|d<<4;d=f<<2;f=i-l|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c;i=e-1|0;e=K[f|0]>>>d|0;H[i|0]=e&15|e<<4}H[a+11|0]=8;H[a+9|0]=8;J[a+4>>2]=g;d=8}if(!c)break a;e:{f:switch(d-8|0){case 0:if(!g)break e;e=b+g|0;d=(g<<1)+b|0;if((g|0)!=1){b=g&-2;f=0;while(1){c=e-1|0;H[d- -1|0]=K[c|0]!=(j|0)?-1:0;H[d-2|0]=K[c|0];e=e-2|0;H[d-3|0]=K[e|0]!=(j|0)?-1:0;d=d-4|0;H[d|0]=K[e|0];f=f+2|0;if((b|0)!=(f|0))continue;break}}if(!(g&1))break e;b=e-1|0;H[d-1|0]=K[b|0]!=(j|0)?-1:0;H[d-2|0]=K[b|0];break e;case 8:break f;default:break e}if(!g)break e;f=(j&65280)>>>8|0;c=J[a+4>>2];e=c+b|0;d=(c<<1)+b|0;b=0;h=j&255;while(1){j=e-1|0;i=d-1|0;e=e-2|0;g:{if((f|0)==K[e|0]){c=0;if((h|0)==K[j|0])break g}c=255}H[i|0]=c;H[d-2|0]=c;H[d-3|0]=K[j|0];d=d-4|0;H[d|0]=K[e|0];b=b+1|0;if((g|0)!=(b|0))continue; -break}}H[a+10|0]=2;H[a+8|0]=4;b=K[a+9|0]<<1;H[a+11|0]=b;b=b&254;if(b>>>0>=8){b=P(b>>>3|0,g);break b}b=P(b,g)+7>>>3|0;break b}if(!c|(e|0)!=2)break a;h:{i:switch(K[a+9|0]-8|0){case 0:if(!g)break h;e=J[a+4>>2]+b|0;d=(g<<2)+b|0;f=L[c+2>>1]&255;k=L[c+4>>1]&255;i=L[c+6>>1]&255;while(1){c=e-1|0;l=d-1|0;b=e-3|0;j:{if(!((f|0)!=K[b|0]|(k|0)!=K[e-2|0])){j=0;if((i|0)==K[c|0])break j}j=255}H[l|0]=j;H[d-2|0]=K[c|0];H[d-3|0]=K[e-2|0];d=d-4|0;H[d|0]=K[b|0];e=b;h=h+1|0;if((h|0)!=(g|0))continue;break}break h;case 8:break i; -default:break h}if(!g)break h;h=L[c+6>>1];k=h>>>8|0;i=L[c+4>>1];l=i>>>8|0;c=L[c+2>>1];m=c>>>8|0;e=J[a+4>>2]+b|0;d=(g<<3)+b|0;b=0;n=c&255;while(1){f=e-1|0;o=d-1|0;c=e-6|0;k:{l:{if(K[c|0]!=(m|0)|K[e-5|0]!=(n|0)|((l|0)!=K[e-4|0]|K[e-3|0]!=(i&255)))break l;if((k|0)!=K[e-2|0])break l;j=0;if(K[f|0]==(h&255))break k}j=255}H[o|0]=j;H[d-2|0]=j;H[d-3|0]=K[f|0];H[d-4|0]=K[e-2|0];H[d-5|0]=K[e-3|0];H[d-6|0]=K[e-4|0];H[d-7|0]=K[e-5|0];d=d-8|0;H[d|0]=K[c|0];e=c;b=b+1|0;if((g|0)!=(b|0))continue;break}}H[a+10|0]= -4;H[a+8|0]=6;b=K[a+9|0]<<2;H[a+11|0]=b;b=b&252;if(b>>>0>=8){b=P(b>>>3|0,g);break b}b=P(b,g)+7>>>3|0}J[a+4>>2]=b}}function s_a(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;a:{while(1){b:{c:{if(M[a+116>>2]<=261){SB(a);c=J[a+116>>2];if(!(c>>>0>=262|b))return 0;if(!c)break a;if(c>>>0<3)break c}e=J[a+108>>2];c=J[a+84>>2]&(K[(e+J[a+56>>2]|0)+2|0]^J[a+72>>2]<>2]);J[a+72>>2]=c;c=J[a+68>>2]+(c<<1)|0;d=L[c>>1];I[J[a+64>>2]+((e&J[a+52>>2])<<1)>>1]=d;I[c>>1]=e;if(!d|J[a+44>> -2]-262>>>0>>0)break c;d=F0(a,d);J[a+96>>2]=d;break b}d=J[a+96>>2]}d:{if(d>>>0>=3){c=J[a+5792>>2];e=J[a+108>>2]-J[a+112>>2]|0;I[J[a+5796>>2]+(c<<1)>>1]=e;J[a+5792>>2]=c+1;i=c+J[a+5784>>2]|0;c=d-3|0;H[i|0]=c;c=((K[(c&255)+765728|0]<<2)+a|0)+1176|0;I[c>>1]=L[c>>1]+1;c=e-1&65535;c=((K[(c>>>0<256?c:(c>>>7|0)+256|0)+765216|0]<<2)+a|0)+2440|0;I[c>>1]=L[c>>1]+1;d=J[a+96>>2];c=J[a+116>>2]-d|0;J[a+116>>2]=c;j=J[a+5788>>2]-1|0;k=J[a+5792>>2];if(!(c>>>0<3|d>>>0>M[a+128>>2])){g=d-1|0;J[a+96>>2]=g;l=J[a+56>> -2]+3|0;h=J[a+72>>2];d=J[a+108>>2];m=J[a+52>>2];n=J[a+64>>2];o=J[a+68>>2];i=J[a+84>>2];f=J[a+88>>2];while(1){c=d;d=c+1|0;J[a+108>>2]=d;h=(K[c+l|0]^h<>2]=h;e=(h<<1)+o|0;I[((d&m)<<1)+n>>1]=L[e>>1];I[e>>1]=d;g=g-1|0;J[a+96>>2]=g;if(g)continue;break}d=c+2|0;J[a+108>>2]=d;if((j|0)!=(k|0))continue;break d}J[a+96>>2]=0;d=d+J[a+108>>2]|0;J[a+108>>2]=d;e=J[a+56>>2]+d|0;c=K[e|0];J[a+72>>2]=c;J[a+72>>2]=J[a+84>>2]&(K[e+1|0]^c<>2]);if((j|0)!=(k|0))continue;break d}d=K[J[a+56>>2]+J[a+108>> -2]|0];c=J[a+5792>>2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>>2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]=L[c+148>>1]+1;J[a+116>>2]=J[a+116>>2]-1;d=J[a+108>>2]+1|0;J[a+108>>2]=d;if(J[a+5792>>2]!=(J[a+5788>>2]-1|0))continue}e=J[a+92>>2];if((e|0)>=0)c=e+J[a+56>>2]|0;else c=0;yk(a,c,d-e|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];Hh(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;e:{if(!d)break e;tc(J[f+12>>2],J[e+16>>2],d);J[f+12>>2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+ -20>>2];J[f+16>>2]=J[f+16>>2]-d;c=J[e+20>>2];J[e+20>>2]=c-d;if((c|0)!=(d|0))break e;J[e+16>>2]=J[e+8>>2]}if(J[J[a>>2]+16>>2])continue;break}return 0}d=J[a+108>>2];J[a+5812>>2]=d>>>0>=2?2:d;if((b|0)==4){c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;yk(a,b,d-c|0,1);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];Hh(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;f:{if(!c)break f;tc(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]- -c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break f;J[d+16>>2]=J[d+8>>2]}return(J[J[a>>2]+16>>2]?3:2)|0}g:{if(!J[a+5792>>2])break g;c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;yk(a,b,d-c|0,0);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];Hh(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;h:{if(!c)break h;tc(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break h;J[d+16>>2]= -J[d+8>>2]}if(J[J[a>>2]+16>>2])break g;return 0}return 1}function r6(a,b){var c=0,d=0,e=0,f=0,g=0;e=bc+-64|0;bc=e;a:{b:{c:{d:{e:{c=H[b|0];switch(c-97|0){case 17:break c;case 0:case 22:break e;default:break d}}g=(c|0)==119?578:66;break b}J[e>>2]=b;Nc(0,83134,69371,e);c=0;break a}g=(K[b+1|0]==43)<<1}c=zc(Qc(43499)+689|0);if(!c){J[e+16>>2]=43499;Nc(a,83134,70566,e+16|0);c=0;break a}Hg(c,0,688);d=c+688|0;J[c>>2]=d;ff(d,43499);I[c+476>>1]=65535;J[c+8>>2]=g&2;J[c+480>>2]=-1;J[c+484>>2]=0;J[c+628>>2]=a;J[c+ -472>>2]=-1;J[c+648>>2]=182;J[c+644>>2]=181;J[c+640>>2]=180;J[c+636>>2]=179;J[c+632>>2]=178;J[c+624>>2]=184;J[c+620>>2]=183;Bq(c);d=g?1:2049;J[c+12>>2]=d;f:switch(g|0){case 0:case 2:d=d|32768;J[c+12>>2]=d;break;default:break f}f=K[b|0];g:{if(!f)break g;if(!g){a=b;while(1){h:{i:{j:switch((f<<24>>24)-66|0){case 33:d=d&-32769;break i;case 1:d=d|32768;break i;case 43:d=d&-2049;break i;case 11:d=d|2048;break i;case 6:d=d&-4|2;break i;case 10:d=d&-4|2;break i;case 0:d=d&-4|1;break i;case 38:break j;default:break h}d= -d|65536}J[c+12>>2]=d}f=K[a+1|0];a=a+1|0;if(f)continue;break}break g}if(!(g&64)){a=b;while(1){k:{l:{m:switch((f<<24>>24)-66|0){case 6:d=d&-4|2;break l;case 10:d=d&-4|2;break l;case 0:d=d&-4|1;break l;case 38:break m;default:break k}d=d|65536}J[c+12>>2]=d}f=K[a+1|0];a=a+1|0;if(f)continue;break}break g}a=b;while(1){n:{o:{p:switch((f<<24>>24)-66|0){case 32:d=d|128;break o;case 0:d=d&-4|1;break o;case 10:d=d&-4|2;break o;case 6:d=d&-4|2;break o;case 38:break p;default:break n}d=d|65536}J[c+12>>2]=d}f= -K[a+1|0];a=a+1|0;if(f)continue;break}}q:{r:{s:{if(!(K[c+9|0]&2)){if((gc[J[c+632>>2]](J[c+628>>2],c+456|0,8)|0)==8)break s;if(!J[c+8>>2])break r;d=J[c+12>>2]}a=c+458|0;I[a>>1]=42;b=d&128;I[c+456>>1]=b?19789:18761;if(b){b=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=b}J[c+460>>2]=0;gc[J[c+640>>2]](J[c+628>>2],0,0)|0;if((gc[J[c+636>>2]](J[c+628>>2],c+456|0,8)|0)!=8){Nc(J[c+628>>2],43499,72076,0);break q}J[c+468>>2]=83152;if(L[c+456>>1]==19789){J[c+12>>2]=J[c+12>>2]|128;a=83216}else a=83280;J[c+464>>2]=a;if(!Mz(c))break q; -I[c+32>>1]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;break a}a=L[c+456>>1];if(!((a|0)==18761|(a|0)==19789)){b=J[c+628>>2];J[e+36>>2]=a;J[e+32>>2]=a;Nc(b,43499,72802,e+32|0);break q}J[c+468>>2]=83152;d=J[c+12>>2];if((a|0)==19789){d=d|128;J[c+12>>2]=d;a=83216}else a=83280;J[c+464>>2]=a;if(d&128){a=K[c+459|0];H[c+459|0]=K[c+458|0];H[c+458|0]=a;Yo(c+460|0)}t:{u:{v:{a=L[c+458>>1];switch(a-42|0){case 0:break t;case 1:break v;default:break u}}Nc(J[c+628>>2],43499,73338,0);break q}b=J[c+628>>2];J[e+52>>2]= -a;J[e+48>>2]=a;Nc(b,43499,73909,e+48|0);break q}J[c+604>>2]=0;J[c+596>>2]=0;J[c+600>>2]=0;a=J[c+12>>2];J[c+12>>2]=a|512;if(a&65536)break a;b=H[b|0]-97|0;if(b){if((b|0)!=17)break q;J[c+20>>2]=J[c+460>>2];w:{if(!(a&2048))break w;if(gc[J[c+620>>2]](J[c+628>>2],c+612|0,c+616|0)|0)break w;J[c+12>>2]=J[c+12>>2]&-2049}if(!TR(c))break q;J[c+608>>2]=-1;J[c+12>>2]=J[c+12>>2]|16;break a}if(!Mz(c))break q;break a}Nc(J[c+628>>2],43499,71479,0)}J[c+8>>2]=0;iU(c);c=0}bc=e- -64|0;return c}function Uv(a,b,c,d,e,f, -g,h,i,j,k,l){var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;m=bc-192|0;bc=m;J[m+48>>2]=13;J[m+32>>2]=13;J[m+16>>2]=13;J[m>>2]=13;p=rc(112);r=J[a+20>>2];s=J[a+4>>2];J[695492]=0;c=ha(3390,p|0,s|0,c|0,r|0)|0;r=J[695492];J[695492]=0;if((r|0)==1){a=Z()|0;qc(p);ba(a|0);B()}J[a+20>>2]=c;c=J[a+8>>2];gc[J[J[c>>2]+64>>2]](c,J[a+28>>2]);c=Mv(J[a+28>>2]);J[a+28>>2]=c;Rf(c);r=J[a+108>>2];kI(J[a+28>>2],O[d>>3],O[d+8>>3],O[d+16>>3],O[d+24>>3],O[d+32>>3],O[d+40>>3]);c=J[a+8>>2];gc[J[J[c>>2]+76>>2]](c,J[a+28>>2], -O[d>>3],O[d+8>>3],O[d+16>>3],O[d+24>>3],O[d+32>>3],O[d+40>>3]);n=O[e>>3];c=J[a+28>>2];o=O[e+8>>3];O[c+608>>3]=o;O[c+600>>3]=n;c=J[c+596>>2];O[c+16>>3]=o;O[c+8>>3]=n;J[c>>2]=1;n=O[e+16>>3];c=J[a+28>>2];o=O[e+8>>3];O[c+608>>3]=o;O[c+600>>3]=n;ie(J[c+596>>2],n,o);n=O[e+16>>3];c=J[a+28>>2];o=O[e+24>>3];O[c+608>>3]=o;O[c+600>>3]=n;ie(J[c+596>>2],n,o);n=O[e>>3];c=J[a+28>>2];o=O[e+24>>3];O[c+608>>3]=o;O[c+600>>3]=n;ie(J[c+596>>2],n,o);c=J[a+28>>2];_f(J[c+596>>2]);d=J[c+596>>2];d=J[(J[d+24>>2]+(J[d+28>>2]<< -2)|0)-4>>2];p=J[d+12>>2]<<3;O[c+600>>3]=O[(p+J[d>>2]|0)-8>>3];O[c+608>>3]=O[(p+J[d+4>>2]|0)-8>>3];wj(J[a+28>>2]);c=J[a+8>>2];gc[J[J[c>>2]+220>>2]](c,J[a+28>>2]);Rf(J[a+28>>2]);p=f|g;if(p){hf(b,J[a+4>>2],m+48|0,0);c=J[m+56>>2];if(J[Bc(gc[J[J[c>>2]+76>>2]](c)|0,814042,m+32|0,0)>>2]==7){c=m+16|0;if(J[Bc(J[m+40>>2],830379,c,0)>>2]!=5)q=am(c,0);uc(m+16|0)}uc(m+32|0);uc(m+48|0);c=J[a+8>>2];gc[J[J[c>>2]+344>>2]](c,J[a+28>>2]);c=J[a+8>>2];gc[J[J[c>>2]+328>>2]](c,J[a+28>>2],e,q,h,i,g)}n=O[a+48>>3];c=J[a+28>> -2];O[a+48>>3]=O[c+16>>3];o=O[a+56>>3];O[a+56>>3]=O[c+24>>3];d=a- -64|0;t=O[d>>3];O[d>>3]=O[c+32>>3];u=O[a+72>>3];O[a+72>>3]=O[c+40>>3];v=O[a+80>>3];O[a+80>>3]=O[c+48>>3];w=O[a+88>>3];O[a+88>>3]=O[c+56>>3];d=J[a+8>>2];gc[J[J[d>>2]+64>>2]](d,c);c=J[a+28>>2];d=rc(672);J[695492]=0;h=ga(3389,d|0,c|0,1)|0;i=J[695492];J[695492]=0;if((i|0)==1){a=Z()|0;qc(d);ba(a|0);B()}J[a+28>>2]=h;WA(a,b);d=J[a+28>>2];if(J[d+668>>2])while(1){b=Zl(d);J[a+28>>2]=b;d=J[a+8>>2];gc[J[J[d>>2]+68>>2]](d,b);d=J[a+28>>2];if(J[d+ -668>>2])continue;break}qc(Nq(d));J[a+28>>2]=c;b=J[a+8>>2];gc[J[J[b>>2]+68>>2]](b,c);if(p){b=J[a+8>>2];gc[J[J[b>>2]+332>>2]](b,J[a+28>>2])}J[a+108>>2]=r;O[a+48>>3]=n;O[a+88>>3]=w;O[a+80>>3]=v;O[a+72>>3]=u;O[a- -64>>3]=t;O[a+56>>3]=o;b=Zl(J[a+28>>2]);J[a+28>>2]=b;c=J[a+8>>2];gc[J[J[c>>2]+68>>2]](c,b);b=J[a+20>>2];c=J[b+104>>2];qc(sI(b));J[a+20>>2]=c;a:{if(g){wc(m- -64|0,0,128);b:{if(J[l>>2]==6){b=J[l+8>>2];if(J[b+12>>2]<=0)break b;d=0;while(1){Mc(b,d,m,0);b=J[m>>2];if(b-3>>>0>=4294967294){c=(m- -64| -0)+(d<<2)|0;n=((b|0)==1?+J[m+8>>2]:O[m+8>>3])*65536;c:{if(R(n)<2147483648){b=~~n;break c}b=-2147483648}J[c>>2]=b}uc(m);if(d>>>0>30)break b;d=d+1|0;b=J[l+8>>2];if((d|0)>2])continue;break}break b}if(!q)break b;gc[J[J[q>>2]+32>>2]](q,m- -64|0)}b=J[a+8>>2];gc[J[J[b>>2]+340>>2]](b,J[a+28>>2],e,j,k,m- -64|0);break a}if(!f)break a;b=J[a+8>>2];gc[J[J[b>>2]+336>>2]](b,J[a+28>>2],e)}if(q)gc[J[J[q>>2]+4>>2]](q);bc=m+192|0}function vX(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=1E3;c=zc(1E3); -H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;g=4;i=J[a>>2];k=J[a+4>>2];a:{if((i|0)==(k|0)){f=c;break a}f=c;while(1){a=K[i+11|0];b=a<<24>>24<0;j=b?J[i>>2]:i;b=b?J[i+4>>2]:a;d=b+4|0;b:{if(!f){g=0;e=d>>>0<=1E3?1E3:d;a=zc(e);f=a;break b}a=d+g|0;if(a>>>0<=e>>>0){a=c+4|0;break b}while(1){e=e<<1;if(a>>>0>e>>>0)continue;break}c=Vd(f,e);if(c){a=c+g|0;f=c;break b}c=tc(zc(e),f,g);qc(f);a=c+g|0;f=c}H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;j=tc(a+4|0,j,b);h=O[i+16>>3]*100;c:{if(R(h)<2147483648){c= -~~h;break c}c=-2147483648}d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if(!f){a=0;e=1E3;b=zc(1E3);j=b;break v}w:{a=d+g|0;g=a+4|0;if(g>>>0<=e>>>0)b=b+j|0;else{while(1){e=e<<1;if(g>>>0>e>>>0)continue;break}b=Vd(f,e);if(!b)break w;f=b;b=b+a|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;h=O[i+24>>3]*100;if(!(R(h)<2147483648))break u;d=~~h;break t}j=zc(e);b=tc(j,f,a);qc(f);b=a+b|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;h=O[i+24>>3]*100;x:{if(R(h)<2147483648){d= -~~h;break x}d=-2147483648}if(!j)break s;g=a+4|0;f=j;break t}d=-2147483648}a=a+8|0;if(e>>>0>=a>>>0)b=b+4|0;else{while(1){e=e<<1;if(e>>>0>>0)continue;break}c=Vd(f,e);if(!c)break q;f=c;b=c+g|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+32>>3]*100;if(!(R(h)<2147483648))break r;d=~~h;break o}g=0;e=1E3;b=zc(1E3);c=b;break p}d=-2147483648;break o}c=zc(e);a=tc(c,f,g);qc(f);b=a+g|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+32>>3]*100;y:{if(R(h)<2147483648){d=~~h;break y}d= --2147483648}if(!c)break n;a=g+4|0;f=c}g=a+4|0;if(g>>>0<=e>>>0)b=b+4|0;else{while(1){e=e<<1;if(g>>>0>e>>>0)continue;break}c=Vd(f,e);if(!c)break l;f=c;b=c+a|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+40>>3]*100;if(!(R(h)<2147483648))break m;d=~~h;break j}a=0;e=1E3;b=zc(1E3);c=b;break k}d=-2147483648;break j}c=zc(e);b=tc(c,f,a);qc(f);b=a+b|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+40>>3]*100;z:{if(R(h)<2147483648){d=~~h;break z}d=-2147483648}if(!c)break i;g= -a+4|0;f=c}a=a+8|0;if(e>>>0>=a>>>0)b=b+4|0;else{while(1){e=e<<1;if(e>>>0>>0)continue;break}c=Vd(f,e);if(!c)break g;f=c;b=c+g|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+48>>3]*100;if(!(R(h)<2147483648))break h;d=~~h;break e}g=0;e=1E3;b=zc(1E3);c=b;break f}d=-2147483648;break e}c=zc(e);a=tc(c,f,g);qc(f);b=a+g|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+48>>3]*100;A:{if(R(h)<2147483648){d=~~h;break A}d=-2147483648}if(c){a=g+4|0;f=c;break e}a=0;e=1E3;c=zc(1E3); -f=c;break d}c=a+4|0;if(c>>>0<=e>>>0){c=b+4|0;break d}while(1){e=e<<1;if(c>>>0>e>>>0)continue;break}b=Vd(f,e);if(b){c=a+b|0;f=b;break d}b=tc(zc(e),f,a);qc(f);c=a+b|0;f=b}H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;g=a+4|0;i=i+56|0;if((k|0)!=(i|0))continue;break}}H[f|0]=g;H[f+1|0]=g>>>8;H[f+2|0]=g>>>16;H[f+3|0]=g>>>24;return f|0}function RT(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;f=bc-80|0;bc=f;if(!K[b+88|0]){k=b,l=gc[J[J[b>>2]+36>>2]](b)|0,J[k+72>>2]=l;k=b,l=gc[J[J[b>> -2]+44>>2]](b)|0,J[k+76>>2]=l;k=b,l=gc[J[J[b>>2]+40>>2]](b)|0,J[k+80>>2]=l;i=gc[J[J[b>>2]+48>>2]](b)|0;H[b+88|0]=1;J[b+84>>2]=i}i=kv(f+24|0,J[b+72>>2]);J[695492]=0;ca(5121,f+32|0,i|0,2380365);d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{if((d|0)!=1){s:{if(K[b+88|0]){d=J[b+84>>2];break s}d=J[J[b>>2]+36>>2];J[695492]=0;d=$(d|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break r;J[b+72>>2]=d;d=J[J[b>>2]+44>>2];J[695492]=0;d=$(d|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)== -1)break r;J[b+76>>2]=d;d=J[J[b>>2]+40>>2];J[695492]=0;d=$(d|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break r;J[b+80>>2]=d;d=J[J[b>>2]+48>>2];J[695492]=0;d=$(d|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break r;H[b+88|0]=1;J[b+84>>2]=d}J[695492]=0;g=c-1|0;c=aa(5120,f+16|0,g-d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break r;J[695492]=0;d=f+40|0;ca(5122,d|0,f+32|0,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break q;J[695492]=0;ca(5121,f+48|0,d|0,2380365);d=J[695492];J[695492]=0;if((d|0)==1)break p; -if(!K[b+88|0]){d=J[J[b>>2]+36>>2];J[695492]=0;d=$(d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;J[b+72>>2]=d;d=J[J[b>>2]+44>>2];J[695492]=0;d=$(d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;J[b+76>>2]=d;d=J[J[b>>2]+40>>2];J[695492]=0;d=$(d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;J[b+80>>2]=d;d=J[J[b>>2]+48>>2];J[695492]=0;d=$(d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;H[b+88|0]=1;J[b+84>>2]=d}d=J[b+76>>2];J[695492]=0;d=aa(5120,f+8|0,d|0)|0;e=J[695492];J[695492]= -0;if((e|0)==1)break o;J[695492]=0;e=f+56|0;ca(5122,e|0,f+48|0,d|0);h=J[695492];J[695492]=0;if((h|0)==1)break n;J[695492]=0;ca(5121,f- -64|0,e|0,2380365);e=J[695492];J[695492]=0;if((e|0)==1)break m;if(!K[b+88|0]){e=J[J[b>>2]+36>>2];J[695492]=0;e=$(e|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break l;J[b+72>>2]=e;e=J[J[b>>2]+44>>2];J[695492]=0;e=$(e|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break l;J[b+76>>2]=e;e=J[J[b>>2]+40>>2];J[695492]=0;e=$(e|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break l; -J[b+80>>2]=e;e=J[J[b>>2]+48>>2];J[695492]=0;e=$(e|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break l;H[b+88|0]=1;J[b+84>>2]=e}e=J[b+80>>2];J[695492]=0;g=aa(5120,f|0,g-e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break l;J[695492]=0;e=f+72|0;h=f- -64|0;ca(5122,e|0,h|0,g|0);j=J[695492];J[695492]=0;if((j|0)==1)break k;J[695492]=0;ca(5459,a|0,b|0,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;sc(e);sc(g);sc(h);sc(f+56|0);sc(d);sc(f+48|0);sc(f+40|0);sc(c);sc(f+32|0);sc(i);bc=f+80|0;return}b=Z()|0;break a}b= -Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;sc(f+72|0)}sc(g)}sc(f- -64|0)}sc(f+56|0)}sc(d)}sc(f+48|0)}sc(f+40|0)}sc(c)}sc(f+32|0)}sc(i);ba(b|0);B()}function FBa(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;d=bc-48|0;bc=d;a:{b:{c:{if(!(K[a+16|0]|b)){j=a+20|0;b=J[a+20>>2];if(b)b=J[b+8>>2]?j:a+36|0;else b=a+36|0;J[d+36>>2]=0;J[d+40>>2]=J[682146];d:{b=J[b>>2];e:{f:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c| -0,d+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;break e}J[d+28>>2]=0}J[695492]=0;aa(4993,d+36|0,d+28|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+28>>2];J[d+28>>2]=0;if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break a}b=Z()|0;vc(d+28|0)}sc(d+36|0);ba(b|0);B()}b=J[d+36>>2];J[d+40>>2]=J[(b?b+12|0:2728584)>>2];J[695492]=0;e=d+36|0;b=aa(5115,d+20|0,e|0)| -0;c=J[695492];J[695492]=0;g:{h:{i:{j:{k:{l:{if((c|0)!=1){J[695492]=0;c=aa(5116,d+28|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i;J[695492]=0;e=ga(5117,c|0,e|0,-1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;sc(c);sc(b);if(!e)break g;H[a+16|0]=1;b=1;c=J[d+36>>2];if(c)b=J[c+8>>2]<<1|1;J[695492]=0;i=ha(5043,d+8|0,d+16|0,b|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;g=J[d+16>>2];e=J[d+36>>2];if(!e)break h;c=K[J[e+12>>2]];if(!c)break h;b=1;while(1){f=0;m:{n:{o:{if(e){J[695492]=0;f=aa(5118, -e|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o}f=f-b|0;if((f|0)<=1)if((f|0)!=1|c<<24>>24>=0)break n;while(1){H[g+1|0]=K[(c&15)+2386192|0];H[g|0]=K[((c&240)>>>4|0)+2386192|0];g=g+2|0;e=J[d+36>>2];p:{if(b){h=!e;c=b;q:{if((b|0)>=0)break q;c=b;if(!e)break q;c=J[e+8>>2]+b|0}if(h|(c|0)<0|J[e+8>>2]<(c|0))break l;h=J[e+12>>2];break p}if(!e)break h;c=0;h=J[e+12>>2]}c=K[c+h|0];if(!c)break h;b=b+1|0;h=(f|0)>1;f=f-1|0;if(h)continue;break}break m}a=Z()|0;_c(i);break b}H[g|0]=c;e=J[d+36>>2];r:{s:{if(b){f= -!e;c=b;t:{if((b|0)>=0)break t;c=b;if(!e)break t;c=J[e+8>>2]+b|0}if(f|(c|0)<0|J[e+8>>2]<(c|0))break l;f=J[e+12>>2];break s}c=0;if(!e)break r;c=0;f=J[e+12>>2]}c=K[c+f|0]}g=g+1|0;b=b+1|0}if(c&255)continue;break}break h}a=Z()|0;break b}J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)!=1)B();a=Z()|0;_c(i);break b}a=Z()|0;break b}a=Z()|0;sc(c);sc(b);break b}a=Z()|0;sc(b);break b}H[g|0]=0;b=J[d+36>>2];u:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+44|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break u; -break c}J[d+44>>2]=0}J[695492]=0;aa(4993,a+28|0,d+44|0)|0;b=J[695492];J[695492]=0;v:{if((b|0)!=1){b=J[d+44>>2];J[d+44>>2]=0;if(!b)break v;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break v;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break v}break a}a=Z()|0;vc(d+44|0);_c(i);break b}b=J[a+28>>2];J[a+32>>2]=J[(b?b+12|0:2728584)>>2];J[695492]=0;aa(5054,j|0,J[d+16>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;_c(i)}H[a+16|0]=1;sc(d+36|0)}bc=d+ -48|0;b=J[a+20>>2];if(b)a=J[b+8>>2]?a+20|0:a+36|0;else a=a+36|0;return a|0}a=Z()|0;_c(i)}sc(d+36|0);ba(a|0);B()}ea(0)|0;yc();B()}function $pb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(!(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))){f=1029;break a}f=1029;if(K[a+300|0]|K[a+289|0])break a;if(!(K[a+287|0]|!K[a+293|0])){f=1031;break a}f=1028;if((c>>>0)%3|c>>>0>768)break a;b:{c:{d:{e:{f:{g:{g=K[a+286|0];if(g|K[a+287|0]|K[a+288|0]){f=1030;h=K[a+325|0];if(h>>>0>6| -!(1<>>0)/3|0;J[a+332>>2]=h;if(K[a+288|0])break d;J[a+1160>>2]=h;i:{if(f>>>0<3)break i;g=0;f=d;if((c-3&65535)>>>0>=3){j=h&32766;i=a+1164|0;while(1){k=i+P(g,3)|0;H[k|0]=K[f|0];H[k+1|0]=K[f+1|0];H[k+2|0]=K[f+2|0];k=i+P(g|1,3)|0;H[k|0]=K[f+3|0];H[k+1|0]=K[f+4|0];H[k+2|0]=K[f+5|0];g=g+2|0;f=f+6|0;l=l+2|0;if((j|0)!=(l|0))continue;break}}if(!(h& -1))break i;g=P(g,3)+a|0;H[g+1164|0]=K[f|0];H[g+1165|0]=K[f+1|0];H[g+1166|0]=K[f+2|0]}g=0;j:{if(!K[a+114|0])break j;i=a+1164|0;f=gc[J[a+152>>2]](800)|0;if(!f){Dc(a,1,0,0);g=1;break j}J[f+4>>2]=1026;J[f>>2]=1027;g=J[a+700>>2];k:{if(g){J[g+8>>2]=f;break k}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+28>>2]=h;tc(f+32|0,i,768);g=0}if(!g)break c;break b}H[a+293|0]=1; -h=((c&65535)>>>0)/3|0;J[a+332>>2]=h}if(K[a+288|0]){i=J[J[a+528>>2]+88>>2];J[i+64>>2]=h;H[i+55|0]=1;if(!h){h=0;break c}g=0;f=d;if((h|0)!=1){m=h&32766;k=i+68|0;while(1){j=k+P(g,3)|0;H[j|0]=K[f|0];H[j+1|0]=K[f+1|0];H[j+2|0]=K[f+2|0];j=k+P(g|1,3)|0;H[j|0]=K[f+3|0];H[j+1|0]=K[f+4|0];H[j+2|0]=K[f+5|0];g=g+2|0;f=f+6|0;l=l+2|0;if((m|0)!=(l|0))continue;break}}if(!(h&1))break c;g=i+P(g,3)|0;H[g+68|0]=K[f|0];H[g+69|0]=K[f+1|0];H[g+70|0]=K[f+2|0];break c}f=J[a+512>>2];if(!f)f=J[a+528>>2];i=J[f+88>>2];H[i+55| -0]=1;if(!c){l=J[a+1160>>2];J[i+64>>2]=l;tc(i+68|0,a+1164|0,768);if(!K[a+307|0])break c;H[i+56|0]=1;f=1035;g=J[a+1932>>2];if(l>>>0<=g-1>>>0)break a;J[i+844>>2]=g;tc(i+848|0,a+1936|0,g);break c}J[i+64>>2]=h;if(!h){h=0;break c}g=0;f=d;if((h|0)!=1){m=h&32766;k=i+68|0;while(1){j=k+P(g,3)|0;H[j|0]=K[f|0];H[j+1|0]=K[f+1|0];H[j+2|0]=K[f+2|0];j=k+P(g|1,3)|0;H[j|0]=K[f+3|0];H[j+1|0]=K[f+4|0];H[j+2|0]=K[f+5|0];g=g+2|0;f=f+6|0;l=l+2|0;if((m|0)!=(l|0))continue;break}}if(!(h&1))break c;g=i+P(g,3)|0;H[g+68|0]=K[f| -0];H[g+69|0]=K[f+1|0];H[g+70|0]=K[f+2|0]}g=0;if(!K[a+112|0])break b;g=gc[J[b+4>>2]](a,b,e)|0;if(g)break b;e=J[e>>2];J[e+36>>2]=h;H[e+32|0]=!c;g=0;if(!h)break b;i=h&1;l:{if((h|0)==1){a=0;break l}h=h&32766;a=0;c=e+40|0;b=0;while(1){f=c+P(a,3)|0;H[f|0]=K[d|0];H[f+1|0]=K[d+1|0];H[f+2|0]=K[d+2|0];f=c+P(a|1,3)|0;H[f|0]=K[d+3|0];H[f+1|0]=K[d+4|0];H[f+2|0]=K[d+5|0];a=a+2|0;d=d+6|0;b=b+2|0;if((h|0)!=(b|0))continue;break}}if(!i)break b;a=e+P(a,3)|0;H[a+40|0]=K[d|0];H[a+41|0]=K[d+1|0];H[a+42|0]=K[d+2|0]}return g| -0}Dc(a,f,0,0);return f|0}function S1(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;J[b>>2]=0;k=O[a>>3];j=O[c>>3];l=k*((O[d>>3]-j)/e);o=O[c+8>>3];k=(O[d+8>>3]-o)/e*k;e=0;a:{b:switch(J[a+56>>2]-1|0){case 0:e=+J[a+24>>2];q=k*e;e=l*e;default:if(!J[b+4>>2]){c:{if(J[b+8>>2]){d=J[b+12>>2];a=1;break c}g=J[b+16>>2];d=rc(g>>>0>1073741823?-1:g<<2);a=J[b+12>>2];if(a){qc(a);f=J[b>>2]&63;g=J[b+8>>2]+J[b+16>>2]|0;a=J[b+4>>2]+1|0}else a=1;J[b+8>>2]=g;J[b+12>>2]=d}r=d,s=rc(1024),J[r>>2]=s; -J[b+4>>2]=a}a=J[J[b+12>>2]>>2]+(f<<4)|0;O[a+8>>3]=o+l-q;O[a>>3]=j-k-e;d=J[b>>2]+1|0;J[b>>2]=d;l=O[c+8>>3]-l;e=k+O[c>>3]-e;f=J[b+4>>2];c=d>>>6|0;if(f>>>0<=c>>>0){a=J[b+8>>2];d:{if(a>>>0>c>>>0){a=J[b+12>>2];break d}g=a+J[b+16>>2]|0;a=rc(g>>>0>1073741823?-1:g<<2);h=J[b+12>>2];if(h){tc(a,h,f<<2);qc(h);g=J[b+8>>2]+J[b+16>>2]|0;f=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=g;J[b+12>>2]=a}r=(c<<2)+a|0,s=rc(1024),J[r>>2]=s;J[b+4>>2]=f+1}d=J[J[b+12>>2]+(c<<2)>>2]+((d&63)<<4)|0;O[d>>3]=e;e=l-q;break a;case 1:break b}e=O[a+ -8>>3];e=Zy(e/(e+.125/O[a+48>>3]));e=3.141592653589793/(e+e);e:{if(R(e)<2147483648){h=~~e;break e}h=-2147483648}d=0;if(!J[b+4>>2]){f:{if(J[b+8>>2]){f=J[b+12>>2];g=1;break f}i=J[b+16>>2];f=rc(i>>>0>1073741823?-1:i<<2);d=J[b+12>>2];g:{if(!d){g=1;d=0;break g}qc(d);g=J[b+4>>2]+1|0;i=J[b+8>>2]+J[b+16>>2]|0;d=J[b>>2]&63}J[b+8>>2]=i;J[b+12>>2]=f}r=f,s=rc(1024),J[r>>2]=s;J[b+4>>2]=g}q=3.141592653589793/+(h+1|0);d=J[J[b+12>>2]>>2]+(d<<4)|0;O[d+8>>3]=o+l;O[d>>3]=j-k;d=J[b>>2]+1|0;J[b>>2]=d;h:{if(J[a+24>>2]> -0){if((h|0)<=0)break h;g=0;e=Cf(l,-k);while(1){j=O[a>>3];e=q+e;o=j*xe(e)+O[c+8>>3];j=j*He(e)+O[c>>3];i=J[b+4>>2];m=d>>>6|0;if(i>>>0<=m>>>0){f=J[b+8>>2];i:{if(f>>>0>m>>>0){f=J[b+12>>2];break i}n=f+J[b+16>>2]|0;f=rc(n>>>0>1073741823?-1:n<<2);p=J[b+12>>2];if(p){tc(f,p,i<<2);qc(p);n=J[b+8>>2]+J[b+16>>2]|0;i=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=n;J[b+12>>2]=f}r=(m<<2)+f|0,s=rc(1024),J[r>>2]=s;J[b+4>>2]=i+1}d=J[J[b+12>>2]+(m<<2)>>2]+((d&63)<<4)|0;O[d+8>>3]=o;O[d>>3]=j;d=J[b>>2]+1|0;J[b>>2]=d;g=g+1|0;if((h|0)!= -(g|0))continue;break}break h}if((h|0)<=0)break h;g=0;e=Cf(-l,k);while(1){j=O[a>>3];e=e-q;o=j*xe(e)+O[c+8>>3];j=j*He(e)+O[c>>3];i=J[b+4>>2];m=d>>>6|0;if(i>>>0<=m>>>0){f=J[b+8>>2];j:{if(f>>>0>m>>>0){f=J[b+12>>2];break j}n=f+J[b+16>>2]|0;f=rc(n>>>0>1073741823?-1:n<<2);p=J[b+12>>2];if(p){tc(f,p,i<<2);qc(p);n=J[b+8>>2]+J[b+16>>2]|0;i=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=n;J[b+12>>2]=f}r=(m<<2)+f|0,s=rc(1024),J[r>>2]=s;J[b+4>>2]=i+1}d=J[J[b+12>>2]+(m<<2)>>2]+((d&63)<<4)|0;O[d+8>>3]=o;O[d>>3]=j;d=J[b>>2]+1|0;J[b>> -2]=d;g=g+1|0;if((h|0)!=(g|0))continue;break}}e=O[c+8>>3];k=k+O[c>>3];f=J[b+4>>2];c=d>>>6|0;if(f>>>0<=c>>>0){a=J[b+8>>2];k:{if(a>>>0>c>>>0){a=J[b+12>>2];break k}g=a+J[b+16>>2]|0;a=rc(g>>>0>1073741823?-1:g<<2);h=J[b+12>>2];if(h){tc(a,h,f<<2);qc(h);g=J[b+8>>2]+J[b+16>>2]|0;f=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=g;J[b+12>>2]=a}r=(c<<2)+a|0,s=rc(1024),J[r>>2]=s;J[b+4>>2]=f+1}d=J[J[b+12>>2]+(c<<2)>>2]+((d&63)<<4)|0;O[d>>3]=k;e=e-l}O[d+8>>3]=e;J[b>>2]=J[b>>2]+1}function Of(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j= -0,k=0,l=0;i=bc-16|0;bc=i;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];g=J[c+20>>2];J[c+28>>2]=g;I[g+2>>1]=0;d=J[a+28>>2];g=J[a+20>>2];a:{if((d|0)==(g|0))break a;h=J[b+28>>2];b=J[b+20>>2];if((h|0)==(b|0))break a;a=d-g>>3;J[i+8>>2]=g+8;J[i+4>>2]=b+8;b=h-b>>3;while(1){f=J[i+8>>2];k=I[f+2>>1];g=k>>31;e=J[i+4>>2];l=I[e+2>>1];d=l>>31;h=(g^k)-g|0;g=I[f>>1];k=h+g|0;h=(d^l)-d|0;d=I[e>>1];l=h+d|0;h=(k|0)<(l|0)?k:l;g=(d|0)<(g|0)?g:d;if((h|0)>(g|0)){h=h-g|0;b:{c:{d:{e:{f:switch((L[e+2>>1]>>>14&2|L[f+2>>1]>>>15)-1| -0){default:d=I[e>>1];d=J[e+4>>2]+((d|0)<(g|0)?g-d|0:0)|0;e=I[f>>1];e=J[f+4>>2]+((e|0)<(g|0)?g-e|0:0)|0;f=J[c+16>>2];while(1){j=f;f=P(K[d|0],K[e|0]);H[j|0]=(f|0)==65025?-1:f>>>8|0;f=J[c+28>>2];g:{h:{if((J[c>>2]+1|0)!=(g|0))break h;j=I[f+2>>1];if((j|0)<=0)break h;I[f+2>>1]=j+1;j=J[c+16>>2];break g}J[c+28>>2]=f+8;j=J[c+16>>2];I[f+10>>1]=1;I[f+8>>1]=g;J[f+12>>2]=j}d=d+1|0;e=e+1|0;J[c>>2]=g;f=j+1|0;J[c+16>>2]=f;g=g+1|0;h=h-1|0;if(h)continue;break}break b;case 0:d=I[e>>1];d=J[e+4>>2]+((d|0)<(g|0)?g-d|0: -0)|0;if(K[J[f+4>>2]]==255)break d;f=J[c+16>>2];while(1){e=P(K[d|0],K[J[J[i+8>>2]+4>>2]]);H[f|0]=(e|0)==65025?-1:e>>>8|0;f=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(g|0))break j;e=I[f+2>>1];if((e|0)<=0)break j;I[f+2>>1]=e+1;e=J[c+16>>2];break i}J[c+28>>2]=f+8;e=J[c+16>>2];I[f+10>>1]=1;I[f+8>>1]=g;J[f+12>>2]=e}d=d+1|0;J[c>>2]=g;f=e+1|0;J[c+16>>2]=f;g=g+1|0;h=h-1|0;if(h)continue;break}break b;case 1:d=I[f>>1];d=J[f+4>>2]+((d|0)<(g|0)?g-d|0:0)|0;if(K[J[e+4>>2]]==255)break e;f=J[c+16>>2];while(1){e=P(K[J[J[i+ -4>>2]+4>>2]],K[d|0]);H[f|0]=(e|0)==65025?-1:e>>>8|0;f=J[c+28>>2];k:{l:{if((J[c>>2]+1|0)!=(g|0))break l;e=I[f+2>>1];if((e|0)<=0)break l;I[f+2>>1]=e+1;e=J[c+16>>2];break k}J[c+28>>2]=f+8;e=J[c+16>>2];I[f+10>>1]=1;I[f+8>>1]=g;J[f+12>>2]=e}d=d+1|0;J[c>>2]=g;f=e+1|0;J[c+16>>2]=f;g=g+1|0;h=h-1|0;if(h)continue;break}break b;case 2:break f}d=P(K[J[e+4>>2]],K[J[f+4>>2]]);d=(d|0)==65025?255:d>>>8|0;m:{if((J[c>>2]+1|0)!=(g|0))break m;e=J[c+28>>2];f=I[e+2>>1];if((f|0)>=0|(d|0)!=K[J[e+4>>2]])break m;I[e+2>>1]= -f-h;break c}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>>1]=0-h;I[d+8>>1]=g;J[d+12>>2]=e;break c}tc(J[c+16>>2],d,h);e=J[c+28>>2];n:{o:{if((J[c>>2]+1|0)!=(g|0))break o;d=I[e+2>>1];if((d|0)<=0)break o;I[e+2>>1]=d+h;d=J[c+16>>2];break n}J[c+28>>2]=e+8;d=J[c+16>>2];I[e+10>>1]=h;I[e+8>>1]=g;J[e+12>>2]=d}J[c+16>>2]=d+h;break c}tc(J[c+16>>2],d,h);e=J[c+28>>2];p:{q:{if((J[c>>2]+1|0)!=(g|0))break q;d=I[e+2>>1];if((d|0)<=0)break q;I[e+2>>1]=d+h;d=J[c+16>>2];break p}J[c+28>> -2]=e+8;d=J[c+16>>2];I[e+10>>1]=h;I[e+8>>1]=g;J[e+12>>2]=d}J[c+16>>2]=d+h}J[c>>2]=(g+h|0)-1}}r:{if((k|0)==(l|0)){a=a-1|0;if(a)J[i+8>>2]=J[i+8>>2]+8;b=b-1|0;if(!b)break a;J[i+4>>2]=J[i+4>>2]+8;break r}if((k|0)<(l|0)){a=a-1|0;if(!a)break a;J[i+8>>2]=J[i+8>>2]+8;break r}b=b-1|0;if(!b)break a;J[i+4>>2]=J[i+4>>2]+8}if(!a)break a;if(b)continue;break}}bc=i+16|0}function Mpa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;h=bc-32|0;bc=h;J[a>>2]=0;J[a+4>>2]=J[682146];j=b+16|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{i= -J[b+16>>2];if(i)g=J[i+8>>2];else g=0;f=J[b+24>>2];g=g-f|0;if(!g){J[695492]=0;f=ha(5043,h+20|0,h+12|0,327680,1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break i;while(1){i=J[J[b>>2]+8>>2];J[695492]=0;i=ga(i|0,b|0,J[h+12>>2],327680)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;if(!i){_c(f);break e}i=J[j>>2];if(i)g=J[i+8>>2];else g=0;g=g-J[b+24>>2]|0;if(!g)continue;break}_c(f);i=J[b+16>>2];f=J[b+24>>2]}if(i)break g;i=-1;break f}b=Z()|0;break b}b=Z()|0;_c(f);break b}J[695492]=0;i=In(i,d<<24>>24,f);f=J[695492]; -J[695492]=0;j:{k:{l:{m:{n:{o:{if((f|0)!=1){f=J[b+24>>2];if((i|0)<0)break f;d=e+i|0;e=c+f|0;d=c?(d|0)<(e|0)?d:e:d;if((d|0)<=(f|0))break k;J[695492]=0;ia(5143,h+12|0,j|0,f|0,d-f|0);c=J[695492];J[695492]=0;if((c|0)==1)break m;c=J[h+12>>2];if(!c)break o;e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,h+28|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break n;b=Z()|0;break j}b=Z()|0;break b}J[h+28>>2]=0}J[695492]=0;aa(4993,a|0,h+28|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[h+28>>2];J[h+28>>2]=0;if(!c)break l; -J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break l;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break l}break a}b=Z()|0;vc(h+28|0);break j}b=Z()|0;break b}c=J[a>>2];J[a+4>>2]=J[(c?c+12|0:2728584)>>2];sc(h+12|0)}J[b+24>>2]=d;g=0;p:{j=J[a>>2];q:{if(!j){f=0;break q}f=0;while(1){J[695492]=0;c=In(j,10,g);d=J[695492];J[695492]=0;if((d|0)==1)break p;if((c|0)<0)break q;f=f+1|0;g=c+1|0;j=J[a>>2];if(j)continue;break}}J[b+28>>2]=J[b+28>>2]+f;break e}b=Z()| -0;break b}sc(h+12|0);break b}J[695492]=0;ia(5143,h+12|0,j|0,f|0,g|0);f=J[695492];J[695492]=0;r:{s:{if((f|0)!=1){f=J[h+12>>2];t:{if(f){g=J[J[f>>2]+28>>2];J[695492]=0;ca(g|0,h+28|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break t;b=Z()|0;break c}J[h+28>>2]=0}J[695492]=0;aa(4993,a|0,h+28|0)|0;f=J[695492];J[695492]=0;u:{if((f|0)!=1){f=J[h+28>>2];J[h+28>>2]=0;if(!f)break u;J[695492]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;k=J[695492];J[695492]=0;if((k|0)!=1){if(g)break u;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]= -0;if((f|0)!=1)break u}break a}b=Z()|0;vc(h+28|0);break c}f=J[a>>2];J[a+4>>2]=J[(f?f+12|0:2728584)>>2];sc(h+12|0);g=0;k=0;f=J[j>>2];if(f)k=J[f+8>>2];J[b+24>>2]=k;j=J[a>>2];v:{if(!j){f=0;break v}f=0;while(1){J[695492]=0;g=In(j,10,g);j=J[695492];J[695492]=0;if((j|0)==1)break d;if((g|0)>=0){f=f+1|0;g=g+1|0;j=J[a>>2];if(j)continue}break}k=J[b+24>>2]}J[b+28>>2]=J[b+28>>2]+f;f=J[J[b>>2]+36>>2];J[695492]=0;g=f;f=h+12|0;la(g|0,f|0,b|0,(c?(c-i|0)+k|0:0)|0,d|0,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break s; -J[695492]=0;aa(5170,a|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break r;sc(f);break e}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;sc(h+12|0);break b}bc=h+32|0;return}b=Z()|0;break b}sc(h+12|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function vWa(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,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;j=bc-128|0;bc=j;a:{b:{if(K[a+220|0])break b;p=e<<2;c=P(p,f);if((c|0)<=0)break b;x=O[b+104>>3];q=Bn(c);if(!q)break b; -r=J[g+8>>2];c=rc(36);i=J[g+4>>2];J[695492]=0;m=ma(3265,c|0,d|0,e|0,r|0,i|0)|0;d=J[695492];J[695492]=0;c:{d:{if((d|0)!=1){c=J[m>>2];gc[J[J[c>>2]+20>>2]](c);d=J[a+212>>2];if(d){i=d&31;c=J[a+208>>2];n=c+(d>>>3&536870908)|0;d=0;while(1){l=J[c>>2]>>>d|l;k=(d|0)==31;d=k?0:d+1|0;c=(k<<2)+c|0;if((n|0)!=(c|0)|(d|0)!=(i|0))continue;break}}if(K[a+202|0])break d;n=255;break c}a=Z()|0;qc(c);ba(a|0);B()}n=0;if(K[a+203|0]!=0&l)break c;o=O[b+392>>3]*255;if(o<4294967296&o>=0){n=~~o>>>0;break c}n=0}t=J[m+8>>2];c=J[m+ -16>>2]/(t|0)|0;d=cZ(g);e:{if((f|0)<=0)break e;i=f-1|0;u=(c|0)<(e|0)?c:e;if((u|0)<=0)while(1){if(!HA(m))wc(P(i,p)+q|0,0,p);c=(i|0)>0;i=i-1|0;if(c)continue;break e}y=d-1|0;while(1){d=P(i,p)+q|0;l=HA(m);f:{if(l){s=0;while(1){g:{h:switch(y|0){case 0:c=J[J[g+20>>2]+(K[l|0]<<2)>>2];c=(c|0)>=65536?65536:c;c=P((c|0)>0?c:0,255)+32768>>>16|0;H[d+1|0]=c;H[d+2|0]=c;H[d|0]=c;break g;case 1:c=J[J[g+20>>2]+(K[l|0]<<2)>>2];c=(c|0)>=65536?65536:c;H[d+2|0]=P((c|0)>0?c:0,255)+32768>>>16;c=J[J[g+24>>2]+(K[l+1|0]<<2)>> -2];c=(c|0)>=65536?65536:c;H[d+1|0]=P((c|0)>0?c:0,255)+32768>>>16;c=J[J[g+28>>2]+(K[l+2|0]<<2)>>2];c=(c|0)>=65536?65536:c;H[d|0]=P((c|0)>0?c:0,255)+32768>>>16;break g;default:break h}dZ(g,l,j+48|0,0);H[d|0]=P(J[j+56>>2],255)+32768>>>16;H[d+1|0]=P(J[j+52>>2],255)+32768>>>16;H[d+2|0]=P(J[j+48>>2],255)+32768>>>16}i:{j:{if(!h)break j;k=0;if((r|0)<=0)break i;k=K[l|0];if((k|0)>2])break j;c=0;if((k|0)>J[h+4>>2])break j;while(1){k:{c=c+1|0;if((r|0)==(c|0))break k;v=K[c+l|0];k=c<<3;if((v|0)>2])break k; -if((v|0)<=J[(k|4)+h>>2])continue}break}k=0;if((c|0)>=(r|0))break i}k=n}H[d+3|0]=k;d=d+4|0;l=l+t|0;s=s+1|0;if((u|0)!=(s|0))continue;break}break f}wc(d,0,p)}c=(i|0)>0;i=i-1|0;if(c)continue;break}}c=j+96|0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+4>>2]=1;J[c+8>>2]=8;J[c>>2]=349684;J[c+20>>2]=0;J[c+24>>2]=0;H[c+28|0]=0;J[j+48>>2]=e;J[j+40>>2]=f;J[695492]=0;J[j+32>>2]=0-(e<<2);d=j+48|0;e=j+40|0;f=j+32|0;nm(c,q,d,e,f,0);g=J[695492];J[695492]=0;if((g|0)==1)break a;J[695492]=0;_(3268,m|0);g=J[695492];J[695492]=0;if((g| -0)==1)break a;qc(Yl(m));O[j+48>>3]=O[b+16>>3];O[j+56>>3]=-O[b+24>>3];o=O[b+32>>3];O[j+64>>3]=-o;w=O[b+40>>3];O[j+72>>3]=w;O[j+80>>3]=o+O[b+48>>3];O[j+88>>3]=x-(w+O[b+56>>3]);J[j+40>>2]=0;J[j+44>>2]=0;J[695492]=0;J[j+32>>2]=0;J[j+36>>2]=0;la(3257,a|0,d|0,e|0,f|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break a;a=J[a+104>>2];O[j+24>>3]=O[j+40>>3]+0;O[j+16>>3]=O[j+32>>3]+0;J[j+8>>2]=1049880894;J[j+12>>2]=1071027177;J[j>>2]=1049880894;J[j+4>>2]=1071027177;b=J[J[a>>2]+376>>2];J[695492]=0;ja(b|0,a|0,c|0, -j+24|0,j+16|0,j+8|0,j|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;ji(c)}bc=j+128|0;return}a=Z()|0;ji(c);ba(a|0);B()}function o3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,Q=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;g=J[a+4>>2];f=J[g>>2];F=O[f+32>>3];G=O[f>>3];V=O[f+16>>3];L=O[f+40>>3];M=O[f+8>>3];u=O[a+16>>3];o=O[f+24>>3];h=O[a+24>>3];l=(e|0)<=1?1:e;J[g+24>>2]=l;J[g+4>>2]=l;y=u+ +(c| -0);u=o;o=h+ +(d|0);N=u*o;h=(L+(M*y+N))*256;h=h+(h<0?-.5:.5);a:{if(R(h)<2147483648){d=~~h;break a}d=-2147483648}J[g+40>>2]=d;u=o*V;h=(F+(y*G+u))*256;h=h+(h<0?-.5:.5);b:{if(R(h)<2147483648){c=~~h;break b}c=-2147483648}J[g+20>>2]=c;o=y+ +(e>>>0);h=(L+(o*M+N))*256;h=h+(h<0?-.5:.5);c:{if(R(h)<2147483648){f=~~h;break c}f=-2147483648}f=f-d|0;d=(f|0)/(l|0)|0;v=f-P(d,l)|0;k=(v|0)<=0;J[g+28>>2]=d-k;h=(F+(o*G+u))*256;h=h+(h<0?-.5:.5);d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}d=d-c|0;c=(d|0)/(l|0)|0; -p=c;f=d-P(c,l)|0;c=(f|0)<=0;J[g+8>>2]=p-c;d=v+(k?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e;d=J[a+8>>2];c=J[d+8>>2];Q=c<<8;m=J[a>>2];j=J[J[m>>2]>>2];w=J[j+12>>2];z=w-1|0;W=J[a+36>>2]-(P(c,J[a+44>>2])>>1)|0;c=P(c,J[a+40>>2]);X=J[a+32>>2]-(c>>1)|0;Y=c+255>>8;i=J[a+4>>2];q=J[i+36>>2];r=J[i+16>>2];s=J[i+40>>2];t=J[i+20>>2];Z=J[i+28>>2];_=J[i+32>>2];$=J[i+8>>2];aa=J[i+12>>2];S=J[a+48>>2];T=J[a+52>>2];U=J[d+16>>2];while(1){c=s+W|0;f=c>>8;J[m+12>>2]=f;a=t+X|0;k=a>>8;J[m+ -4>>2]=k;J[m+8>>2]=k;v=P((a^-1)&255,S);d=P((c^-1)&255,T);e:{f:{if((f|0)<0){a=J[j+8>>2];break f}a=J[j+8>>2];if((k|0)<0|(f|0)>=(w|0)|k+Y>>>0>a>>>0)break f;A=k<<2;g=A+(J[j+4>>2]+P(J[j+16>>2],f)|0)|0;J[m+16>>2]=g;p=k;a=g;break e}g=0;J[m+16>>2]=0;A=k<<2;c=(f|0)>0?f:0;p=(k|0)>0?k:0;a=(J[j+4>>2]+P(J[j+16>>2],(c|0)<(w|0)?c:z)|0)+(((a|0)>(p|0)?p:a-1|0)<<2)|0}v=v>>8;x=d>>8;c=0;B=8192;C=8192;D=8192;E=8192;while(1){d=(f|0)>0?f:0;ba=(d|0)<(w|0)?d:z;ca=I[(x<<1)+U>>1];l=k;d=v;while(1){g:{n=P(I[(d<<1)+U>>1],ca)- -8192>> -14;c=n+c|0;E=P(n,K[a+3|0])+E|0;D=P(n,K[a+2|0])+D|0;C=P(n,K[a+1|0])+C|0;B=P(n,K[a|0])+B|0;d=d+S|0;if((Q|0)<=(d|0))break g;if(g){g=g+4|0;J[m+16>>2]=g;a=g}else{l=l+1|0;J[m+4>>2]=l;g=0;n=(l|0)>0?l:0;a=J[j+8>>2];a=(J[j+4>>2]+P(J[j+16>>2],ba)|0)+(((a|0)>(n|0)?n:a-1|0)<<2)|0}continue}break}x=x+T|0;if((Q|0)>(x|0)){J[m+4>>2]=k;d=f+1|0;J[m+12>>2]=d;if(!(!g|(f|0)<-1|(d|0)>=(w|0))){g=(J[j+4>>2]+P(d,J[j+16>>2])|0)+A|0;J[m+16>>2]=g;f=d;a=g;continue}g=0;a=(d|0)>0?d:0;f=J[j+4>>2]+P(J[j+16>>2],(a|0)<(w|0)?a:z)|0; -a=J[j+8>>2];a=f+(((a|0)>(p|0)?p:a-1|0)<<2)|0;J[m+16>>2]=0;f=d;continue}break}a=(E|0)/(c|0)|0;a=(a|0)>0?a:0;H[b+3|0]=a>>>0>=255?255:a;a=(B|0)/(c|0)|0;a=(a|0)>0?a:0;H[b+2|0]=a>>>0>=255?255:a;a=(C|0)/(c|0)|0;a=(a|0)>0?a:0;H[b+1|0]=a>>>0>=255?255:a;a=(D|0)/(c|0)|0;a=(a|0)>0?a:0;H[b|0]=a>>>0>=255?255:a;t=t+$|0;J[i+20>>2]=t;r=r+aa|0;J[i+16>>2]=r;if((r|0)>0){t=t+1|0;J[i+20>>2]=t;r=r-J[i+4>>2]|0;J[i+16>>2]=r}s=s+Z|0;J[i+40>>2]=s;q=q+_|0;J[i+36>>2]=q;if((q|0)>0){s=s+1|0;J[i+40>>2]=s;q=q-J[i+24>>2]|0;J[i+36>> -2]=q}b=b+4|0;e=e-1|0;if(e)continue;break}}function m3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,Q=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;g=J[a+4>>2];f=J[g>>2];F=O[f+32>>3];G=O[f>>3];V=O[f+16>>3];L=O[f+40>>3];M=O[f+8>>3];u=O[a+16>>3];o=O[f+24>>3];h=O[a+24>>3];l=(e|0)<=1?1:e;J[g+24>>2]=l;J[g+4>>2]=l;y=u+ +(c|0);u=o;o=h+ +(d|0);N=u*o;h=(L+(M*y+N))*256;h=h+(h<0?-.5:.5);a:{if(R(h)<2147483648){d= -~~h;break a}d=-2147483648}J[g+40>>2]=d;u=o*V;h=(F+(y*G+u))*256;h=h+(h<0?-.5:.5);b:{if(R(h)<2147483648){c=~~h;break b}c=-2147483648}J[g+20>>2]=c;o=y+ +(e>>>0);h=(L+(o*M+N))*256;h=h+(h<0?-.5:.5);c:{if(R(h)<2147483648){f=~~h;break c}f=-2147483648}f=f-d|0;d=(f|0)/(l|0)|0;v=f-P(d,l)|0;k=(v|0)<=0;J[g+28>>2]=d-k;h=(F+(o*G+u))*256;h=h+(h<0?-.5:.5);d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}d=d-c|0;c=(d|0)/(l|0)|0;p=c;f=d-P(c,l)|0;c=(f|0)<=0;J[g+8>>2]=p-c;d=v+(k?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+ -12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e;d=J[a+8>>2];c=J[d+8>>2];Q=c<<8;m=J[a>>2];j=J[J[m>>2]>>2];w=J[j+12>>2];z=w-1|0;W=J[a+36>>2]-(P(c,J[a+44>>2])>>1)|0;c=P(c,J[a+40>>2]);X=J[a+32>>2]-(c>>1)|0;Y=c+255>>8;i=J[a+4>>2];q=J[i+36>>2];r=J[i+16>>2];s=J[i+40>>2];t=J[i+20>>2];Z=J[i+28>>2];_=J[i+32>>2];$=J[i+8>>2];aa=J[i+12>>2];S=J[a+48>>2];T=J[a+52>>2];U=J[d+16>>2];while(1){c=s+W|0;f=c>>8;J[m+12>>2]=f;a=t+X|0;k=a>>8;J[m+4>>2]=k;J[m+8>>2]=k;v=P((a^-1)&255,S);d=P((c^-1)&255,T);e:{f:{if((f|0)<0){a=J[j+8>>2]; -break f}a=J[j+8>>2];if((k|0)<0|(f|0)>=(w|0)|k+Y>>>0>a>>>0)break f;A=k<<2;g=A+(J[j+4>>2]+P(J[j+16>>2],f)|0)|0;J[m+16>>2]=g;p=k;a=g;break e}g=0;J[m+16>>2]=0;A=k<<2;c=(f|0)>0?f:0;p=(k|0)>0?k:0;a=(J[j+4>>2]+P(J[j+16>>2],(c|0)<(w|0)?c:z)|0)+(((a|0)>(p|0)?p:a-1|0)<<2)|0}v=v>>8;x=d>>8;c=0;B=8192;C=8192;D=8192;E=8192;while(1){d=(f|0)>0?f:0;ba=(d|0)<(w|0)?d:z;ca=I[(x<<1)+U>>1];l=k;d=v;while(1){g:{n=P(I[(d<<1)+U>>1],ca)- -8192>>14;c=n+c|0;E=P(n,K[a+3|0])+E|0;D=P(n,K[a+2|0])+D|0;C=P(n,K[a+1|0])+C|0;B=P(n,K[a| -0])+B|0;d=d+S|0;if((Q|0)<=(d|0))break g;if(g){g=g+4|0;J[m+16>>2]=g;a=g}else{l=l+1|0;J[m+4>>2]=l;g=0;n=(l|0)>0?l:0;a=J[j+8>>2];a=(J[j+4>>2]+P(J[j+16>>2],ba)|0)+(((a|0)>(n|0)?n:a-1|0)<<2)|0}continue}break}x=x+T|0;if((Q|0)>(x|0)){J[m+4>>2]=k;d=f+1|0;J[m+12>>2]=d;if(!(!g|(f|0)<-1|(d|0)>=(w|0))){g=(J[j+4>>2]+P(d,J[j+16>>2])|0)+A|0;J[m+16>>2]=g;f=d;a=g;continue}g=0;a=(d|0)>0?d:0;f=J[j+4>>2]+P(J[j+16>>2],(a|0)<(w|0)?a:z)|0;a=J[j+8>>2];a=f+(((a|0)>(p|0)?p:a-1|0)<<2)|0;J[m+16>>2]=0;f=d;continue}break}a=(E| -0)/(c|0)|0;a=(a|0)>0?a:0;H[b+3|0]=a>>>0>=255?255:a;a=(D|0)/(c|0)|0;a=(a|0)>0?a:0;H[b+2|0]=a>>>0>=255?255:a;a=(C|0)/(c|0)|0;a=(a|0)>0?a:0;H[b+1|0]=a>>>0>=255?255:a;a=(B|0)/(c|0)|0;a=(a|0)>0?a:0;H[b|0]=a>>>0>=255?255:a;t=t+$|0;J[i+20>>2]=t;r=r+aa|0;J[i+16>>2]=r;if((r|0)>0){t=t+1|0;J[i+20>>2]=t;r=r-J[i+4>>2]|0;J[i+16>>2]=r}s=s+Z|0;J[i+40>>2]=s;q=q+_|0;J[i+36>>2]=q;if((q|0)>0){s=s+1|0;J[i+40>>2]=s;q=q-J[i+24>>2]|0;J[i+36>>2]=q}b=b+4|0;e=e-1|0;if(e)continue;break}}function JT(){var a=0,b=0,c=0;a:{if(K[2778400])break a; -H[2778400]=1;wc(2762018,0,1022);a=-255;b=-255;while(1){c=b<<1;I[c+2763552>>1]=b+8>>>4;I[c+2763554>>1]=b+9>>>4;I[c+2763556>>1]=b+10>>>4;c=b+3|0;if((c|0)==256)while(1){b=a<<1;I[b+2764576>>1]=b+8>>>4;I[b+2764578>>1]=b+10>>>4;I[b+2764580>>1]=b+12>>>4;b=a+3|0;if((b|0)==256){b=-255;while(1){a=b<<1;c=P(b,3);I[a+2765600>>1]=c+8>>>4;I[a+2765602>>1]=c+11>>>4;I[a+2765604>>1]=c+14>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){I[(b<<1)+2766624>>1]=(b<<2)+8>>>4;a=b+1|0;I[(a<<1)+2766624>>1]=(a<<2)+8>>>4;a=b+2|0;I[(a<< -1)+2766624>>1]=(a<<2)+8>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,5);I[a+2767648>>1]=c+8>>>4;I[a+2767650>>1]=c+13>>>4;I[a+2767652>>1]=c+18>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,6);I[a+2768672>>1]=c+8>>>4;I[a+2768674>>1]=c+14>>>4;I[a+2768676>>1]=c+20>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,7);I[a+2769696>>1]=c+8>>>4;I[a+2769698>>1]=c+15>>>4;I[a+2769700>>1]=c+22>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){I[(b<<1)+2770720>>1]=(b<<3)+8>>>4;a=b+1|0;I[(a<< -1)+2770720>>1]=(a<<3)+8>>>4;a=b+2|0;I[(a<<1)+2770720>>1]=(a<<3)+8>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,9);I[a+2771744>>1]=c+8>>>4;I[a+2771746>>1]=c+17>>>4;I[a+2771748>>1]=c+26>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,10);I[a+2772768>>1]=c+8>>>4;I[a+2772770>>1]=c+18>>>4;I[a+2772772>>1]=c+28>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,11);I[a+2773792>>1]=c+8>>>4;I[a+2773794>>1]=c+19>>>4;I[a+2773796>>1]=c+30>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<< -1;c=P(b,12);I[a+2774816>>1]=c+8>>>4;I[a+2774818>>1]=c+20>>>4;I[a+2774820>>1]=c+32>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,13);I[a+2775840>>1]=c+8>>>4;I[a+2775842>>1]=c+21>>>4;I[a+2775844>>1]=c+34>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,14);I[a+2776864>>1]=c+8>>>4;I[a+2776866>>1]=c+22>>>4;I[a+2776868>>1]=c+36>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,15);I[a+2777888>>1]=c+8>>>4;I[a+2777890>>1]=c+23>>>4;I[a+2777892>>1]=c+38>>>4;a=b+3|0;if((a|0)==256)break a; -I[(a<<1)+2777888>>1]=P(a,15)+8>>>4;b=b+4|0;continue}}else{I[(a<<1)+2776864>>1]=P(a,14)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2775840>>1]=P(a,13)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2774816>>1]=P(a,12)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2773792>>1]=P(a,11)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2772768>>1]=P(a,10)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2771744>>1]=P(a,9)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2770720>>1]=(a<<3)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2769696>>1]=P(a,7)+8>>> -4;b=b+4|0;continue}}}else{I[(a<<1)+2768672>>1]=P(a,6)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2767648>>1]=P(a,5)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2766624>>1]=(a<<2)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2765600>>1]=P(a,3)+8>>>4;b=b+4|0;continue}}}else{b=b<<1;I[b+2764576>>1]=b+8>>>4;a=a+4|0;continue}}else{I[(c<<1)+2763552>>1]=b+11>>>4;b=b+4|0;continue}}}}function Z7a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=0,o=0;d=bc-48|0;bc=d;a:{b:{c:switch(b- -5|0){case 4:b=J[c+164>>2];O[d+16>>3]=N[b>>2];O[d>>3]=N[b+4>>2];e=a+56|0;g=d+16|0;je(e,g,d);N[b>>2]=O[d+16>>3];N[b+4>>2]=O[d>>3];a=J[c+164>>2];O[d+16>>3]=N[a+8>>2];O[d>>3]=N[a+12>>2];je(e,g,d);N[a+8>>2]=O[d+16>>3];N[a+12>>2]=O[d>>3];a=J[c+164>>2];O[d+16>>3]=N[a+16>>2];O[d>>3]=N[a+20>>2];je(e,g,d);N[a+16>>2]=O[d+16>>3];N[a+20>>2]=O[d>>3];break a;case 3:O[d+16>>3]=N[c+148>>2];O[d>>3]=N[c+152>>2];a=a+56|0;b=d+16|0;je(a,b,d);N[c+148>>2]=O[d+16>>3];N[c+152>>2]=O[d>>3];O[d+16>>3]=N[c+156>>2];O[d>>3]=N[c+ -160>>2];je(a,b,d);N[c+156>>2]=O[d+16>>3];N[c+160>>2]=O[d>>3];break a;case 0:a=a+56|0;b=J[a>>2];N[c+16>>2]=Y(R(O[b>>3]*O[b+24>>3]-O[b+16>>3]*O[b+8>>3]))*+N[c+16>>2];b=J[a>>2];N[c+20>>2]=Y(R(O[b>>3]*O[b+24>>3]-O[b+16>>3]*O[b+8>>3]))*+N[c+20>>2];O[d+16>>3]=N[c>>2];O[d>>3]=N[c+4>>2];b=d+16|0;je(a,b,d);N[c>>2]=O[d+16>>3];N[c+4>>2]=O[d>>3];O[d+16>>3]=N[c+8>>2];O[d>>3]=N[c+12>>2];je(a,b,d);N[c+8>>2]=O[d+16>>3];N[c+12>>2]=O[d>>3];break a;default:if((b|0)==100)break b;break;case 1:case 2:break c}if((b&-2)!= -10)break a;a=a+56|0;b=0;while(1){e=P(b,12);g=J[e+J[c+200>>2]>>2];O[d+16>>3]=N[g>>2];O[d>>3]=N[g+4>>2];f=d+16|0;je(a,f,d);N[g>>2]=O[d+16>>3];N[g+4>>2]=O[d>>3];g=J[e+J[c+200>>2]>>2];O[d+16>>3]=N[g+8>>2];O[d>>3]=N[g+12>>2];je(a,f,d);N[g+8>>2]=O[d+16>>3];N[g+12>>2]=O[d>>3];g=J[e+J[c+200>>2]>>2];O[d+16>>3]=N[g+16>>2];O[d>>3]=N[g+20>>2];je(a,f,d);N[g+16>>2]=O[d+16>>3];N[g+20>>2]=O[d>>3];e=J[e+J[c+200>>2]>>2];O[d+16>>3]=N[e+24>>2];O[d>>3]=N[e+28>>2];je(a,f,d);N[e+24>>2]=O[d+16>>3];N[e+28>>2]=O[d>>3];b=b+ -1|0;if((b|0)!=4)continue;break}break a}f=rc(24);J[f>>2]=0;J[f+4>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;d:{e:{f:{g:{h:{o=c+120|0;b=J[o>>2];n=J[c+124>>2];if((b|0)!=(n|0)){e=n-b|0;if((e|0)<0){J[695492]=0;_(2266,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;B()}J[695492]=0;e=$(4,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;g=e;while(1){N[g>>2]=N[b>>2];g=g+4|0;b=b+4|0;if((n|0)!=(b|0))continue;break}}J[695492]=0;K2(a+56|0,d+16|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break f;h=N[d+16>>2];j=N[e>>2];i=N[d+24>>2];k=N[e+4>>2];N[f>>2]=Q(h*j)+Q(i*k);l=j;j=N[d+20>>2];m=k;k=N[d+28>>2];N[f+4>>2]=Q(l*j)+Q(m*k);l=N[e+8>>2];m=N[e+12>>2];N[f+12>>2]=Q(j*l)+Q(k*m);N[f+8>>2]=Q(h*l)+Q(i*m);l=h;h=N[e+16>>2];m=i;i=N[e+20>>2];N[f+16>>2]=N[d+32>>2]+Q(Q(l*h)+Q(m*i));N[f+20>>2]=N[d+36>>2]+Q(Q(j*h)+Q(k*i));J[695492]=0;ca(2367,o|0,f|0,f+24|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g;c=Z()|0;break e}c=Z()|0;e=J[d>>2];if(!e)break d;J[d+4>>2]=e;break e}i=N[f+12>> -2];h=Q(Q(i*N[f>>2])-Q(N[f+8>>2]*N[f+4>>2]));a=J[c+132>>2];N[a>>2]=i/h;N[a+4>>2]=Q(-N[f+4>>2])/h;N[a+8>>2]=Q(-N[f+8>>2])/h;N[a+12>>2]=N[f>>2]/h;N[a+16>>2]=-N[f+16>>2];N[a+20>>2]=-N[f+20>>2];qc(e);qc(f);break a}c=Z()|0;if(!e)break d}qc(e)}qc(f);ba(c|0);B()}bc=d+48|0}function pzb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[b+8>>2];a:{b:{if(d&7)break b;e=J[a+12>>2];c:{c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+ -60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break d}if((Uc(b,d)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break e}if((Uc(b,d&255)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;f:{if((c|0)>0){J[b+60>>2]= -J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break f}if((Uc(b,d&255)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=e;break g}if((Uc(b,e&255)|0)==-1)break b}if(mO(b,J[a+16>>2]))break b;d=J[b+8>>2];if(d&7)break b;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;h:{if((e|0)<= -0){if((Uc(b,0)|0)!=-1)break h;break b}J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=0}d=J[b+8>>2];if(d&7)break b;e=J[a+20>>2];c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;i:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break i}if((Uc(b,d)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c- -1;j:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break j}if((Uc(b,d&255)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;k:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break k}if((Uc(b,d&255)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;l:{if((d| -0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=e;break l}if((Uc(b,e&255)|0)==-1)break b}if(xh(b,4,J[a+24>>2],0))break b;if((Ko(b,J[a+28>>2],J[a+24>>2]<<1)|0)!=J[a+24>>2]<<1)break b;if(xh(b,2,J[a+32>>2],0))break b;d=J[b+8>>2];if(d&7)break b;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;m:{if((e|0)<=0){if((Uc(b,K[a+36|0])|0)==-1)break b;d=K[a+36|0];break m}J[b+60>>2]=J[b+60>>2]+1;d=K[a+36|0];e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]= -d}if(d&255){d=0;if((Ko(b,a+37|0,67)|0)!=67)break b;break a}d=0;if((ay(b,67)|0)!=67)break b;break a}J[b+8>>2]=d|4}d=-1}return d|0}function oV(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=bc-16|0;bc=g;J[a>>2]=2385428;J[695492]=0;da(5099,a|0,1);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;J[695492]=0;d=a+20|0;b=$(5074,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;b:{c:{if(!b|J[a+4>>2]<2)break c;c=J[689874];if(!c){J[695492]=0;b=$(4,32)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[b>>2]=0;J[b+ -4>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[695492]=0;c=aa(5080,b|0,2385952)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[689874]=c}J[695492]=0;J[g+12>>2]=0;b=g+12|0;aa(4985,b|0,a|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[695492]=0;ca(5081,c|0,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[g+12>>2];J[g+12>>2]=0;if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0; -_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}f=1;b=0;c=J[a+16>>2];d:{if(!c)break d;J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[a+16>>2];if(!c)break d;f=0;J[695492]=0;ca(5100,c|0,5091,a|0);d=J[695492];J[695492]=0;b=c;if((d|0)==1)break a}J[695492]=0;ca(5100,a|0,5091,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;d=J[a+116>>2];if(!(!d|f))while(1){c=0;e=J[d+8>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[d+ -8>>2]}e=J[c+24>>2];h=J[c+20>>2];J[695492]=0;ca(5100,b|0,h|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(!e){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}d=J[d>>2];if(d)continue;break}c=J[a+72>>2];if(c){$c(c+4|0);qc(c)}c=J[a+12>>2];if(c)qc(c);e:{if(f)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break a}$c(a+108|0);$c(a+88|0);b=J[a+64>>2];J[a+64>>2]=0;f:{if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+56>>2];J[a+56>>2]=0;g:{if(!b)break g;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break g;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+20>>2]=2381028;J[a+44>>2]= -2381060;b=J[a+48>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+48>>2]=0}J[a+36>>2]=2381060;b=J[a+40>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+40>>2]=0}sc(a+28|0);b=J[a+16>>2];J[a+16>>2]=0;h:{if(!b)break h;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}a=ed(a);bc=g+16|0;return a|0}ea(0)|0;qc(b);yc();B()}ea(0)|0;yc();B()}function rj(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;j=bc-112|0;bc=j;k=i&2147483647;a:{b:{m=e&2147483647;l=2147418112;n=!(b|c);if(!(d|m?m-l>>>0<2147549184:n)){o=k-l|0;if(!h&(o|0)==-2147418112?f|g:(o|0)==-2147418112&(h|0)!=0|o>>>0>2147549184)break b}if(!(!d&(m|0)==2147418112?n:m>>>0<2147418112)){h=d;i=e|32768;f=b;g=c;break a}if(!(!h&(k|0)==2147418112?!(f|g):k>>>0<2147418112)){i=i|32768;break a}if(!(b|d|(m^2147418112|c))){l=d;d=!(b^f|d^h|(c^g|e^i^-2147483648));h=d?0:l;i=d?2147450880:e;f= -d?0:b;g=d?0:c;break a}l=f|h;if(!(l|(k^2147418112|g)))break a;if(!(b|d|(c|m))){if(g|k|l)break a;f=b&f;g=c&g;h=d&h;i=e&i;break a}if(f|h|(g|k))break b;f=b;g=c;h=d;i=e;break a}l=(k|0)==(m|0);r=l&(d|0)==(h|0)?(c|0)==(g|0)&b>>>0>>0|c>>>0>>0:l&d>>>0>>0|k>>>0>m>>>0;n=r;m=n?f:b;o=n?g:c;l=n?i:e;s=l;n=n?h:d;q=l&65535;d=r?d:h;e=r?e:i;t=e;l=e>>>16&32767;p=s>>>16&32767;if(!p){e=!(n|q);i=e;k=e?m:n;e=e<<6;i=S(i?o:q);e=e+((i|0)==32?S(k)+32|0:i)|0;qi(j+96|0,m,o,n,q,e-15|0);n=J[j+104>>2];q=J[j+108>>2];o=J[j+ -100>>2];p=16-e|0;m=J[j+96>>2]}f=r?b:f;g=r?c:g;h=d;i=t&65535;if(!l){b=!(d|i);e=b;k=b?f:d;b=b<<6;e=S(e?g:i);b=b+((e|0)==32?S(k)+32|0:e)|0;qi(j+80|0,f,g,d,i,b-15|0);l=16-b|0;h=J[j+88>>2];i=J[j+92>>2];g=J[j+84>>2];f=J[j+80>>2]}c=i<<3|h>>>29;b=h<<3|g>>>29;c=c|524288;e=n<<3|o>>>29;h=q<<3|n>>>29;r=s^t;i=g<<3|f>>>29;d=f<<3;c:{if((l|0)==(p|0))break c;f=p-l|0;if(f>>>0>127){b=0;c=0;i=0;d=1;break c}qi(j- -64|0,d,i,b,c,128-f|0);rq(j+48|0,d,i,b,c,f);b=J[j+56>>2];c=J[j+60>>2];i=J[j+52>>2];d=J[j+48>>2]|(J[j+64>> -2]|J[j+72>>2]|(J[j+68>>2]|J[j+76>>2]))!=0}n=d;k=i;l=e;q=h|524288;i=o<<3|m>>>29;o=m<<3;m=i;d:{if((r|0)<0){f=0;g=0;h=0;i=0;if(!(n^o|b^e|(k^m|c^q)))break a;d=o-n|0;e=m-((n>>>0>o>>>0)+k|0)|0;f=l-b|0;g=(k|0)==(m|0)&n>>>0>o>>>0|k>>>0>m>>>0;h=f-g|0;b=(q-((b>>>0>l>>>0)+c|0)|0)-(f>>>0>>0)|0;i=b;if(b>>>0>524287)break d;c=!(b|h);g=c;i=g?d:h;c=g<<6;g=S(g?e:b);c=c+((g|0)==32?S(i)+32|0:g)|0;f=b;b=c-12|0;qi(j+32|0,d,e,h,f,b);p=p-b|0;h=J[j+40>>2];i=J[j+44>>2];d=J[j+32>>2];e=J[j+36>>2];break d}e=k+m|0;d=n+o|0; -e=d>>>0>>0?e+1|0:e;f=(k|0)==(e|0)&d>>>0>>0|e>>>0>>0;k=c+q|0;b=b+l|0;k=b>>>0>>0?k+1|0:k;h=b+f|0;i=h>>>0>>0?k+1|0:k;if(!(i&1048576))break d;d=n&1|((e&1)<<31|d>>>1);e=h<<31|e>>>1;p=p+1|0;h=(i&1)<<31|h>>>1;i=i>>>1|0}c=0;b=s&-2147483648;o=b;if((p|0)>=32767){h=c;i=b|2147418112;f=0;g=0;break a}l=0;e:{if((p|0)>0){l=p;break e}qi(j+16|0,d,e,h,i,p+127|0);rq(j,d,e,h,i,1-p|0);d=J[j>>2]|(J[j+16>>2]|J[j+24>>2]|(J[j+20>>2]|J[j+28>>2]))!=0;e=J[j+4>>2];h=J[j+8>>2];i=J[j+12>>2]}m=d&7;d=(e&7)<<29|d>>> -3;f=(m>>>0>4)+d|0;b=h<<29|e>>>3;g=d>>>0>f>>>0?b+1|0:b;d=(b|0)==(g|0)&d>>>0>f>>>0|b>>>0>g>>>0;b=c|((i&7)<<29|h>>>3);h=d+b|0;i=o|(i>>>3&65535|l<<16);i=b>>>0>h>>>0?i+1|0:i;f:{if((m|0)==4){b=0;k=g+b|0;d=f;c=f&1;f=f+c|0;g=d>>>0>f>>>0?k+1|0:k;b=(b|0)==(g|0)&c>>>0>f>>>0|b>>>0>g>>>0;h=b+h|0;i=b>>>0>h>>>0?i+1|0:i;break f}if(!m)break a}}J[a>>2]=f;J[a+4>>2]=g;J[a+8>>2]=h;J[a+12>>2]=i;bc=j+112|0}function $lb(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;i=bc-16|0;bc=i;if(!J[688836])k=2755344, -l=fL(),J[k>>2]=l;d=rc(24);J[d>>2]=348616;J[d+4>>2]=1;J[d+20>>2]=1;g=d+12|0;J[g>>2]=0;J[g+4>>2]=0;J[d+8>>2]=g;g=J[689330];if(!((g|0)==(d|0)|!g))gc[J[J[g>>2]+12>>2]](g)|0;J[689330]=d;g=rc(24);d=J[688836];J[g+12>>2]=0;J[g+16>>2]=0;J[g>>2]=0;J[g+4>>2]=d;e=J[J[d>>2]+8>>2];J[695492]=0;$(e|0,d|0)|0;d=J[695492];J[695492]=0;a:{if((d|0)==1)break a;d=J[g+4>>2];e=J[J[d>>2]+52>>2];J[695492]=0;d=$(e|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[g+8>>2]=d;J[695492]=0;d=pa(1619)|0;e=J[695492];J[695492]= -0;if((e|0)==1)break a;e=J[g+4>>2];f=J[J[e>>2]+24>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;f=J[J[d>>2]+24>>2];J[695492]=0;da(f|0,d|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;J[i+12>>2]=8;e=J[J[d>>2]+20>>2];J[695492]=0;da(e|0,d|0,i+12|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[g+8>>2];f=J[J[e>>2]+68>>2];J[695492]=0;da(f|0,e|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;J[g+20>>2]=-1;b:{c:{if((b|0)<6)break c;f=((b|0)>=1024?1024:b)-6|0;e=0;d=0;while(1){if(!kd(a+ -d|0,28659,5))break b;h=(d|0)==(f|0);d=d+1|0;if(!h)continue;break}if(K[a|0]!=65|(b|0)<8|(K[a+1|0]!=84|K[a+2|0]!=38))break c;if(K[a+3|0]!=84|K[a+4|0]!=70|(K[a+5|0]!=79|K[a+6|0]!=82))break c;e=1;if(K[a+7|0]==77)break b}e=2}d=bc-48|0;bc=d;J[g+20>>2]=e;d:{e:{f:{g:{h:{i:{j:switch(e|0){case 0:e=rc(20);f=J[g+4>>2];J[695492]=0;f=aa(1620,e|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break i;break f;case 1:e=rc(8);f=J[g+4>>2];J[695492]=0;f=aa(1621,e|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break i;break f; -case 2:e=rc(8);f=J[g+4>>2];J[695492]=0;f=aa(1622,e|0,f|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break i;break f;default:break j}f=J[g>>2];if(f)break h;break g}J[g>>2]=f}J[d+32>>2]=0;H[d+43|0]=0;k:{l:{m:{n:{if(c){f=Qc(c);if(f>>>0>=2147483632){J[695492]=0;_(1623,d+20|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;B()}o:{if(f>>>0<=10){H[d+31|0]=f;e=d+20|0;break o}J[695492]=0;h=(f|15)+1|0;e=$(4,h|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break n;J[d+20>>2]=e;J[d+24>>2]=f;J[d+28>>2]=h|-2147483648}k=tc(e, -c,f)+f|0,l=0,H[k|0]=l;J[695492]=0;c=H[d+31|0];e=(c|0)<0;ca(1618,d+8|0,(e?J[d+20>>2]:d+20|0)|0,(e?J[d+24>>2]:c&255)|0);c=J[695492];J[695492]=0;if((c|0)==1)break m;J[d+40>>2]=J[d+16>>2];c=J[d+12>>2];J[d+32>>2]=J[d+8>>2];J[d+36>>2]=c;if(H[d+31|0]<0)qc(J[d+20>>2]);f=J[g>>2]}J[d+20>>2]=0;H[d+31|0]=0;c=J[J[f>>2]+12>>2];J[695492]=0;e=a;a=d+32|0;ja(c|0,f|0,e|0,b|0,d+20|0,a|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;if(H[d+31|0]<0)qc(J[d+20>>2]);if(H[d+43|0]>=0)break g;qc(J[d+32>>2]);break g}a=Z()| -0;break e}a=Z()|0;if(H[d+31|0]>=0)break k;qc(J[d+20>>2]);break e}a=Z()|0;if(H[d+31|0]<0)qc(J[d+20>>2]);if(H[d+43|0]>=0)break k;qc(J[d+32>>2])}break e}bc=d+48|0;break d}a=Z()|0;qc(e)}ba(a|0);B()}bc=i+16|0;return g|0}a=Z()|0;qc(g);ba(a|0);B()}function I4(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;d=J[a+16>>2];n=K[d+6|0]<<8|K[d+7|0]&254;if(!n)return 0;w=J[a>>2];y=J[w+508>>2]+J[w+512>>2]|0;e=J[b>>2];o=e+1|0;q=c?o:e;u=n+2|0;r=d+14|0;v= -n>>>1|0;g=v;a:{b:{c:{d:{e:{while(1){f:{e=g+l|0;f=(e&-2)+r|0;h=K[f|0]<<8|K[f+1|0];d=e>>>1|0;f=f+u|0;i=K[f|0]<<8|K[f+1|0];if(q>>>0>=i>>>0){if(h>>>0>=q>>>0)break f;l=d+1|0}else g=d;if(g>>>0>l>>>0)continue;break e}break}g=0;f=f+n|0;k=f+n|0;x=K[k|0]<<8|K[k+1|0];m=(i|0)==65535&(h|0)==65535&v-1>>>0<=d>>>0&(x|0)!=0&(k+x|0)+2>>>0>y>>>0;p=m?0:x;f=K[f|0]|K[f+1|0]<<8;A=(f<<8|f>>>8)<<16>>16;j=m?1:A;g:{h:{i:{if(K[a+20|0]&2){s=d+1|0;l=(p|0)==65535?s:d;if(e>>>0<2)break i;g=d-1|0;m=g<<1;e=r+m|0;t=K[e|0]<<8|K[e+1| -0];if(t>>>0>>0)break i;B=r+u|0;j:{while(1){k:{f=t;e=g;z=m+B|0;j=z+n|0;k=j+n|0;p=K[k|0]<<8|K[k+1|0];l=(p|0)==65535?l:e;if(!e)break k;g=e-1|0;m=g<<1;t=r+m|0;t=K[t|0]<<8|K[t+1|0];if(t>>>0>=q>>>0)continue;break j}break}e=0}g=K[j|0]|K[j+1|0]<<8;j=(g<<8|g>>>8)<<16>>16;m=K[z+1|0]|K[z|0]<<8;break h}e=d;f=h;if((p|0)==65535)break c;break g}e=d;f=h;m=i}if((l|0)==(s|0)){if((d|0)!=(e|0)){j=A;p=x;m=i;f=h}g=0;if(s>>>0>=v>>>0){e=d;break c}l=d;e=d;h=(s<<1)+r|0;k=u+h|0;i=K[k|0]<<8|K[k+1|0];l:{if(q>>>0>>0)break l; -m:{while(1){n:{m=i;e=s;f=h;j=(u+f|0)+n|0;k=j+n|0;p=K[k|0]<<8|K[k+1|0];l=(p|0)==65535?l:e;s=e+1|0;if((v|0)==(s|0))break n;h=(s<<1)+r|0;k=u+h|0;i=K[k|0]<<8|K[k+1|0];if(q>>>0>=i>>>0)continue;break m}break}e=K[j|0]|K[j+1|0]<<8;j=(e<<8|e>>>8)<<16>>16;e=v-1|0;f=K[f+1|0]|K[f|0]<<8;break l}h=K[j|0]|K[j+1|0]<<8;j=(h<<8|h>>>8)<<16>>16;f=K[f+1|0]|K[f|0]<<8}if((d|0)==(l|0))break c}if((e|0)==(l|0)){d=l;h=f;i=m;break g}d=(l<<1)+r|0;h=K[d|0]<<8|K[d+1|0];d=d+u|0;i=K[d|0]<<8|K[d+1|0];d=d+n|0;k=d+n|0;p=K[k|0]<<8|K[k+ -1|0];d=K[d|0]|K[d+1|0]<<8;j=(d<<8|d>>>8)<<16>>16;d=l}if(p){e=((q-i<<1)+p|0)+k|0;o:{if(!c)break o;g=0;if(e>>>0<=y>>>0)break o;f=h;o=q;e=d;break b}e=K[e+1|0]|K[e|0]<<8;if(!e)break e;e=e+j&65535;g=e>>>0>2]?e:0;break d}e=j+q|0;g=e&65535;if(!c)break a;p:{if(M[w+16>>2]>g>>>0)break p;c=h+j|0;q:{if((e|0)>=0)break q;g=0;if((c|0)<0)break q;o=0-j|0;break p}o=(e|0)<65536?(c|0)>65535?65536-j|0:o:o;g=0}f=h;e=d;break b}g=0}e=d;f=h}if(!c)break a}c=g;if(f>>>0>>0){g=0;e=e+1|0;if((v|0)==(e|0))break a}r:{s:{h= -J[a+32>>2];if(h>>>0>e>>>0){m=h-1|0;g=h<<1;while(1){d=(e<<1)+r|0;f=K[d|0]<<8|K[d+1|0];J[a+44>>2]=f;d=d+g|0;i=d+2|0;l=K[i|0]<<8|K[d+3|0];J[a+40>>2]=l;d=g+i|0;i=K[d|0]|K[d+1|0]<<8;J[a+48>>2]=(i<<8|i>>>8)<<16>>16;i=d+g|0;d=K[i|0]<<8|K[i+1|0];t:{u:{v:{if((l|0)!=65535|e>>>0>>0|(f|0)!=65535)break v;f=0;if(!d)break u;if((d+i|0)+2>>>0<=y>>>0)break v;J[a+48>>2]=1;break u}if((d|0)==65535)break t;f=d?d+i|0:0}J[a+36>>2]=e;J[a+52>>2]=f;J[a+24>>2]=o;if(!c)break s;J[a+28>>2]=c;break r}e=e+1|0;if((h|0)!=(e|0))continue; -break}}if(c)break r;return 0}H4(a);c=J[a+28>>2];if(!c)return 0;o=J[a+24>>2]}J[b>>2]=o;g=c}return g}function qc(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!a)break a;d=a-8|0;b=J[a-4>>2];a=b&-8;f=d+a|0;b:{if(b&1)break b;if(!(b&3))break a;b=J[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=b>>>3|0;b=J[d+12>>2];c=J[d+8>>2];if((b|0)==(c|0)){i=2781472,j=J[695368]&Hzb(-2,e),J[i>>2]=j;break b}J[c+12>>2]=b;J[b+8>>2]=c;break b}h=J[d+24>>2];b=J[d+12>> -2];if((d|0)!=(b|0)){c=J[d+8>>2];J[c+12>>2]=b;J[b+8>>2]=c;break c}e=d+20|0;c=J[e>>2];if(!c){c=J[d+16>>2];if(!c)break d;e=d+16|0}while(1){g=e;b=c;e=b+20|0;c=J[e>>2];if(c)continue;e=b+16|0;c=J[b+16>>2];if(c)continue;break}J[g>>2]=0;break c}b=J[f+4>>2];if((b&3)!=3)break b;J[695370]=a;J[f+4>>2]=b&-2;J[d+4>>2]=a|1;J[f>>2]=a;return}b=0}if(!h)break b;c=J[d+28>>2];e=(c<<2)+2781776|0;e:{if(J[e>>2]==(d|0)){J[e>>2]=b;if(b)break e;i=2781476,j=J[695369]&Hzb(-2,c),J[i>>2]=j;break b}J[h+(J[h+16>>2]==(d|0)?16:20)>> -2]=b;if(!b)break b}J[b+24>>2]=h;c=J[d+16>>2];if(c){J[b+16>>2]=c;J[c+24>>2]=b}c=J[d+20>>2];if(!c)break b;J[b+20>>2]=c;J[c+24>>2]=b}if(d>>>0>=f>>>0)break a;b=J[f+4>>2];if(!(b&1))break a;f:{g:{h:{i:{if(!(b&2)){if(J[695374]==(f|0)){J[695374]=d;a=J[695371]+a|0;J[695371]=a;J[d+4>>2]=a|1;if(J[695373]!=(d|0))break a;J[695370]=0;J[695373]=0;return}if(J[695373]==(f|0)){J[695373]=d;a=J[695370]+a|0;J[695370]=a;J[d+4>>2]=a|1;J[a+d>>2]=a;return}a=(b&-8)+a|0;if(b>>>0<=255){e=b>>>3|0;b=J[f+12>>2];c=J[f+8>>2];if((b| -0)==(c|0)){i=2781472,j=J[695368]&Hzb(-2,e),J[i>>2]=j;break g}J[c+12>>2]=b;J[b+8>>2]=c;break g}h=J[f+24>>2];b=J[f+12>>2];if((f|0)!=(b|0)){c=J[f+8>>2];J[c+12>>2]=b;J[b+8>>2]=c;break h}e=f+20|0;c=J[e>>2];if(!c){c=J[f+16>>2];if(!c)break i;e=f+16|0}while(1){g=e;b=c;e=b+20|0;c=J[e>>2];if(c)continue;e=b+16|0;c=J[b+16>>2];if(c)continue;break}J[g>>2]=0;break h}J[f+4>>2]=b&-2;J[d+4>>2]=a|1;J[a+d>>2]=a;break f}b=0}if(!h)break g;c=J[f+28>>2];e=(c<<2)+2781776|0;j:{if(J[e>>2]==(f|0)){J[e>>2]=b;if(b)break j;i=2781476, -j=J[695369]&Hzb(-2,c),J[i>>2]=j;break g}J[h+(J[h+16>>2]==(f|0)?16:20)>>2]=b;if(!b)break g}J[b+24>>2]=h;c=J[f+16>>2];if(c){J[b+16>>2]=c;J[c+24>>2]=b}c=J[f+20>>2];if(!c)break g;J[b+20>>2]=c;J[c+24>>2]=b}J[d+4>>2]=a|1;J[a+d>>2]=a;if(J[695373]!=(d|0))break f;J[695370]=a;return}if(a>>>0<=255){b=(a&-8)+2781512|0;c=J[695368];a=1<<(a>>>3);k:{if(!(c&a)){J[695368]=a|c;a=b;break k}a=J[b+8>>2]}J[b+8>>2]=d;J[a+12>>2]=d;J[d+12>>2]=b;J[d+8>>2]=a;return}c=31;if(a>>>0<=16777215){b=S(a>>>8|0);c=((a>>>38-b&1)-(b<<1)| -0)+62|0}J[d+28>>2]=c;J[d+16>>2]=0;J[d+20>>2]=0;b=(c<<2)+2781776|0;l:{m:{e=J[695369];g=1<>2]=d;J[d+24>>2]=b;break n}c=a<<((c|0)!=31?25-(c>>>1|0)|0:0);b=J[b>>2];while(1){e=b;if((J[b+4>>2]&-8)==(a|0))break m;g=c>>>29|0;c=c<<1;g=b+(g&4)|0;b=J[g+16>>2];if(b)continue;break}J[g+16>>2]=d;J[d+24>>2]=e}J[d+12>>2]=d;J[d+8>>2]=d;break l}a=J[e+8>>2];J[a+12>>2]=d;J[e+8>>2]=d;J[d+24>>2]=0;J[d+12>>2]=e;J[d+8>>2]=a}a=J[695376]-1|0;J[695376]=a?a:-1}}function C8a(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;h=bc-16|0;bc=h;e=J[b>>2];d=J[e>>2];p=J[d>>2];J[J[p>>2]+20>>2]=c;c=p;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+24>>2]=0;J[c+28>>2]=-1;J[c+208>>2]=0;J[c+212>>2]=-1;J[c+176>>2]=0;J[c+180>>2]=0;J[c+400>>2]=0;J[c+404>>2]=0;J[d+364>>2]=0;J[e+156>>2]=0;if(K[a+96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1172>>2]=0;J[a+88>>2]=-2147483647; -J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}p=a+100|0;while(1){a:{k=h+8|0;e=J[b>>2];j=e+8|0;l=e+176|0;o=e+168|0;while(1){b:{c:{d:{e:switch(J[e+156>>2]){case 1:c=J[e+160>>2];break d;case 2:break c;case 0:break e;default:continue}d=J[e>>2];g=d+8|0;m=d+384|0;n=d+376|0;while(1){f:{g:{h:{i:switch(J[d+364>>2]){case 1:c=J[d+368>>2];break h;case 2:break g;case 0:break i;default:continue}c=Yt(J[d>>2],n,m);J[d+364>>2]=1;J[d+368>>2]= -c}if(!c){c=0;break f}J[g+320>>2]=0;J[g+340>>2]=0;J[g+344>>2]=0;Ot(g,O[n>>3],O[m>>3],1);j:{while(1){c=Yt(J[d>>2],o,l);if(c-1>>>0<=13){J[d+368>>2]=c;f=O[o>>3];if((c|0)==1){O[n>>3]=f;O[m>>3]=O[l>>3];break j}Ot(g,f,O[l>>3],c);continue}if(!c){J[d+368>>2]=0;break j}if((c&15)!=15)continue;break}Ot(g,O[o>>3],O[l>>3],c)}N1(g);J[d+364>>2]=2}c=M1(g,o,l);if(c)break f;J[d+364>>2]=1;continue}break}J[e+156>>2]=1;J[e+160>>2]=c}if(!c){c=0;break b}J[j+120>>2]=0;J[j+124>>2]=0;J[j+72>>2]=0;Qt(j,O[o>>3],O[l>>3],1);k:{while(1){d= -J[e>>2];g=d+8|0;m=d+384|0;n=d+376|0;c=J[d+364>>2];l:{m:{while(1){n:{o:{p:switch(c|0){case 1:c=J[d+368>>2];break o;case 2:break n;case 0:break p;default:continue}c=Yt(J[d>>2],n,m);J[d+364>>2]=1;J[d+368>>2]=c}if(!c)break m;J[g+320>>2]=0;J[g+340>>2]=0;J[g+344>>2]=0;Ot(g,O[n>>3],O[m>>3],1);q:{while(1){c=Yt(J[d>>2],k,h);if(c-1>>>0<=13){J[d+368>>2]=c;f=O[k>>3];if((c|0)==1){O[n>>3]=f;O[m>>3]=O[h>>3];break q}Ot(g,f,O[h>>3],c);continue}if(!c){J[d+368>>2]=0;break q}if((c&15)!=15)continue;break}Ot(g,O[k>>3], -O[h>>3],c)}N1(g);J[d+364>>2]=2}c=M1(g,k,h);if(!c){c=1;J[d+364>>2]=1;continue}break}if(c>>>0>14)break l;J[e+160>>2]=c;f=O[k>>3];if((c|0)==1){O[o>>3]=f;O[l>>3]=O[h>>3];break k}Qt(j,f,O[h>>3],c);continue}J[e+160>>2]=0;break k}if((c&15)!=15)continue;break}Qt(j,O[k>>3],O[h>>3],c)}U1(j);J[e+156>>2]=2}c=T1(j,k,h);if(c)break b;J[e+156>>2]=1;continue}break}if(c-1>>>0>=14){if(!c)break a;if((c&-49)!=79|J[a+1172>>2]!=2)continue;Fe(p,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3;continue}e=J[b+4>>2];i=O[h+8>>3]; -q=O[h>>3];f=O[e+32>>3]+(i*O[e>>3]+q*O[e+16>>3]);O[h+8>>3]=f;i=O[e+40>>3]+(i*O[e+8>>3]+q*O[e+24>>3]);O[h>>3]=i;if((c|0)==1)aL(a,f,i);else{i=i*256;i=i+(i<0?-.5:.5);r:{if(R(i)<2147483648){c=~~i;break r}c=-2147483648}f=f*256;f=f+(f<0?-.5:.5);s:{if(R(f)<2147483648){d=~~f;break s}d=-2147483648}Fe(p,a,d,c);J[a+1172>>2]=2}continue}break}bc=h+16|0}function eVa(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;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;k=bc-48| -0;bc=k;H[J[689612]+464|0]=1;J[k+32>>2]=13;hf(f,J[b+24>>2],k+32|0,0);m=rc(12);J[m+8>>2]=814292;J[m+4>>2]=816683;J[m>>2]=809748;p=a+104|0;r=-+(d|0);a:{b:{c:{d:{e:{while(1){d=(q<<2)+m|0;j=J[d>>2];f:{if(g)if(Ec(g,j))break f;J[k+16>>2]=13;h=J[c+8>>2];J[695492]=0;j=ha(3203,h|0,j|0,k+16|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;g:{if(J[j>>2]!=8)break g;J[695492]=0;j=$(4,32)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;J[j>>2]=0;J[j+4>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+ -8>>2]=0;J[j+12>>2]=0;h=J[d>>2];J[695492]=0;aa(2808,j+4|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;h=J[a+128>>2];i=J[J[h>>2]+492>>2];s=O[a+64>>3];t=O[a+48>>3];u=O[a+32>>3];v=O[a+80>>3];w=O[a+56>>3];x=O[a+40>>3];y=O[a+8>>3];z=O[a+72>>3];J[695492]=0;Ra(i|0,h|0,+(1-w*(y-x)+z*.5),+(s*(u-t)+r+1+v*.5));h=J[695492];J[695492]=0;if((h|0)==1)break e;h=J[f+12>>2];i=J[f+8>>2];J[695492]=0;J[k+8>>2]=i;J[k+12>>2]=h;h=$(4,112)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;d=J[d>>2];J[695492]=0;d=ja(3354, -h|0,b|0,J[k+40>>2],k+8|0,d|0,0)|0;i=J[695492];J[695492]=0;h:{if((i|0)!=1){J[695492]=0;_(3355,d|0);h=J[695492];J[695492]=0;if((h|0)==1)break b;h=J[a+116>>2];J[695492]=0;ca(3356,d|0,h|0,0);h=J[695492];J[695492]=0;if((h|0)!=1)break h;break b}d=Z()|0;qc(h);break a}qc(EI(d));d=J[a+100>>2];h=J[a+96>>2];J[695492]=0;n=$(27,P(d,h)<<2)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;d=J[a+120>>2];J[695492]=0;A=J[d+16>>2];d=J[695492];J[695492]=0;if((d|0)==1)break b;o=J[a+100>>2];i:{if((o|0)<=0)break i;l=0;h=0; -i=J[a+96>>2];if((i|0)<=0)break i;while(1){d=0;if((i|0)>0){while(1){i=((P(i,l)<<2)+A|0)+(d<<2)|0;J[n+(h<<2)>>2]=J[i>>2];J[i>>2]=e;h=h+1|0;d=d+1|0;i=J[a+96>>2];if((d|0)<(i|0))continue;break}o=J[a+100>>2]}l=l+1|0;if((o|0)>(l|0))continue;break}}H[j|0]=0;J[j+28>>2]=n;d=J[a+108>>2];if((d|0)!=J[a+112>>2]){J[d>>2]=j;J[a+108>>2]=d+4;break g}j:{k:{n=J[p>>2];h=d-n|0;o=h>>2;i=o+1|0;l:{if(i>>>0>=1073741824){J[695492]=0;_(3351,p|0);a=J[695492];J[695492]=0;if((a|0)==1)break l;break c}l=h>>1;l=h>>>0>=2147483644? -1073741823:i>>>0>>0?l:i;if(!l){i=0;break j}if(l>>>0<1073741824)break k;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break c}d=Z()|0;break a}J[695492]=0;i=$(4,l<<2)|0;h=J[695492];J[695492]=0;if((h|0)==1)break b}h=(o<<2)+i|0;J[h>>2]=j;j=h+4|0;if((d|0)!=(n|0)){while(1){h=h-4|0;d=d-4|0;J[h>>2]=J[d>>2];if((d|0)!=(n|0))continue;break}d=J[p>>2]}J[a+112>>2]=(l<<2)+i;J[a+108>>2]=j;J[a+104>>2]=h;if(!d)break g;qc(d)}J[695492]=0;_(3205,k+16|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}d=q>>>0< -2;q=q+1|0;if(d)continue;break}J[695492]=0;_(3205,k+32|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;d=Z()|0;break a}d=Z()|0;break a}H[J[689612]+464|0]=0;qc(m);bc=k+48|0;return}B()}d=Z()|0}qc(m);ba(d|0);B()}function e0a(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;g=bc-32|0;bc=g;f=J[a+8>>2];J[g>>2]=f;e=J[a+12>>2];a:{b:{c:{d:{e:{f:{g:{h=J[a+4>>2];d=J[h+8>>2];if(J[d+64>>2]==1){i=a+8|0;c=L[a>>1];c=c>>>0>=28?28:c;tc(g+4|0,a,c);I[g+4>>1]=c;J[g+8>>2]=J[d+40>>2];if(J[d+60>>2])break g; -c=0;break b}j=J[a+16>>2];m=J[J[d+40>>2]+24>>2];if(J[d+60>>2])break e;if(K[h+36|0]!=1|e>>>0<=f>>>0|M[a+20>>2]<=j>>>0)break f;H[h+36|0]=0;i=K[h+37|0];break d}c=1;break b}c=0;break c}c=1;break c}c=2}while(1){h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:switch(c|0){case 0:if(e>>>0<=f>>>0)break k;if(M[a+20>>2]<=j>>>0)break l;s:{t:{while(1){c=f+1|0;u:{v:{w:{k=K[f|0];switch(k-14|0){case 13:break s;case 1:break v;case 0:break w;default:break q}}H[d+68|0]=1;H[d+52|0]=1;break u}H[d+52|0]=0;if(K[d+68|0])break t}f=c;if((c| -0)!=(e|0))continue;break}c=e;break j}H[d+68|0]=0;J[b>>2]=18;b=J[a+4>>2];H[b+37|0]=15;J[b+256>>2]=2;H[J[a+4>>2]+36|0]=1;break j}J[g>>2]=f;h=J[a+4>>2];c=1;continue;case 1:break r;default:break p}H[d+68|0]=0;ZB(h,g,e,2,b);f=J[g>>2];if(J[b>>2]<=0)break h;J[a+8>>2]=f;break i}J[g>>2]=c;H[d+68|0]=0;l=k<<24>>24;i=l&255;if(K[d+52|0]!=1)break n;if(c>>>0>=e>>>0)break o;f=c;c=2;continue}k=65535;l=i&65535;c=K[f|0];n=c-33|0;if(!((i+223&254)>>>0>93|(n&255)>>>0>93)){H[g+5|0]=c^128;H[g+4|0]=i^128;f=f+1|0;J[g>>2]= -f;i=c|l<<8;k=en(m,g+4|0,2);break m}if((n&255)>>>0<94|(1<>>0<=31:0))break m;f=f+1|0;J[g>>2]=f;i=c|l<<8;break m}H[J[a+4>>2]+37|0]=l;H[J[a+4>>2]+36|0]=1;break j}k=65535;if((l|0)>=0)k=en(m,f,1);f=c}if((k|0)<=65533){c=J[a+24>>2];if(c)J[c+(j-J[a+16>>2]<<1)>>2]=(((i&65535)>>>0<256?-1:-2)+f|0)-J[a+8>>2];I[j>>1]=k;j=j+2|0;break h}c=J[a+4>>2];if((i&65535)>>>0<256)f=1;else{H[c+38|0]=i;i=(i&65280)>>>8|0;f=2}H[c+36|0]=f;H[c+37|0]=i;J[b>>2]=(k|0)==65534?10:12;c=J[g>>2];break j}J[b>>2]=15}c=f}J[a+ -8>>2]=c}J[a+16>>2]=j;break a}c=0;continue}}while(1)if(c){ZB(h,i,e,2,b);c=0;continue}else{h=J[b>>2];if((h|0)>0)break a;e=J[a+8>>2];d=J[a+12>>2];if(e>>>0>=d>>>0)break a;J[g+12>>2]=e;c=e;x:{while(1){if(K[c|0]==27)break x;c=c+1|0;if((d|0)!=(c|0))continue;break}c=d}J[g+16>>2]=c;y:{if((c|0)==(e|0))break y;e=J[g+8>>2];h=J[a+4>>2];d=K[h+36|0];c=d<<24>>24;if((c|0)>0){tc(e+37|0,h+37|0,d);c=K[J[a+4>>2]+36|0]}H[e+36|0]=c;xK(g+4|0,b);c=J[a+24>>2];z:{if(!c)break z;e=J[i>>2];if((e|0)==(f|0))break z;d=J[a+16>>2]; -h=J[g+20>>2];if(d>>>0>=h>>>0)break z;e=e-f|0;while(1){j=J[c>>2];if((j|0)>=0)J[c>>2]=e+j;c=c+4|0;d=d+2|0;if(h>>>0>d>>>0)continue;break}}J[a+8>>2]=J[g+12>>2];J[a+16>>2]=J[g+20>>2];J[a+24>>2]=J[g+28>>2];c=J[g+8>>2];e=K[c+36|0];d=e<<24>>24;if((d|0)>0){tc(J[a+4>>2]+37|0,c+37|0,e);d=K[c+36|0]}e=J[a+4>>2];H[e+36|0]=d;h=J[b>>2];if((h|0)!=15)break y;h=K[c+65|0];d=h<<24>>24;if((d|0)<=0)h=15;else{tc(e+116|0,c+116|0,h);e=J[a+4>>2];d=K[c+65|0];h=J[b>>2]}H[e+65|0]=d;H[c+65|0]=0}if((h|0)>0)break a;e=J[a+12>>2]; -if((e|0)==J[a+8>>2])break a;h=J[a+4>>2];c=1;continue}}bc=g+32|0}function fvb(a){a=a|0;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;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;f=gc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;b=J[a+580>>2];c=(f+(b<<2)|0)+(J[a+672>>2]<<2)|0;f=b;b=J[a+656>>2];g=f+b|0;b=(b|0)/J[a+584>>2]|0;d=J[a+660>>2];e=K[a+649|0];h=J[a+644>>2];b:{if(!K[a+648|0]){b=h+(b<<2)|0;if(!e)break b;if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+3|0];H[c+1| -0]=K[b+2|0];H[c+2|0]=K[b+1|0];H[c+3|0]=K[b|0];b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}b=h+(b<<3)|0;if(e){if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+6|0];H[c+1|0]=K[b+4|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b|0];b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+6|0]|K[b+7|0]<<8;d=(d<<8|d>>>8)&65535;c:{if(!d)break c;d:{if((d|0)!=65535){e=K[c|0];e=e<<8|e;if(e)break d}H[c|0]=K[b+6|0]; -H[c+1|0]=K[b+4|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b|0];break c}if((e|0)==65535){e=K[b+2|0]|K[b+3|0]<<8;h=K[b+4|0]|K[b+5|0]<<8;i=K[b|0]|K[b+1|0]<<8;f=P(d,(i<<8|i>>>8)&65535);i=K[c+3|0];j=i<<8|i;i=d^65535;f=(f+P(j,i)|0)+32768|0;H[c+3|0]=(f>>>16|0)+f>>>24;f=P((e<<8|e>>>8)&65535,d);e=K[c+2|0];e=(f+P(i,e<<8|e)|0)+32768|0;H[c+2|0]=(e>>>16|0)+e>>>24;f=P((h<<8|h>>>8)&65535,d);d=K[c+1|0];d=(f+P(i,d<<8|d)|0)+32768|0;H[c+1|0]=(d>>>16|0)+d>>>24;break c}h=K[c+1|0];i=K[c+2|0];f=K[c+3|0];k=K[b|0]|K[b+1|0]<<8;l=K[b+ -2|0]|K[b+3|0]<<8;j=K[b+4|0]|K[b+5|0]<<8;m=d^65535;n=P(m,e^65535)^-1;H[c|0]=n>>>24;o=f|f<<8;f=n>>>16|0;e=(P(e,m)>>>0)/(f>>>0)|0;d=(d<<16>>>0)/(f>>>0)|0;H[c+3|0]=(P(o,e)+P(d,(k<<8|k>>>8)&65535)|0)+32767>>>24;H[c+2|0]=(P(e,i|i<<8)+P(d,(l<<8|l>>>8)&65535)|0)+32767>>>24;H[c+1|0]=(P(e,h|h<<8)+P(d,(j<<8|j>>>8)&65535)|0)+32767>>>24}b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+3|0];e:{if(!d)break e;f:{if((d|0)!=255){e=K[c|0]; -if(e)break f}H[c|0]=d;H[c+1|0]=K[b+2|0];H[c+2|0]=K[b+1|0];H[c+3|0]=K[b|0];break e}if((e|0)==255){e=d^255;h=(P(d,K[b+2|0])+P(e,K[c+1|0])|0)+128|0;H[c+1|0]=(h>>>8&255)+h>>>8;h=(P(d,K[b+1|0])+P(e,K[c+2|0])|0)+128|0;H[c+2|0]=(h>>>8&255)+h>>>8;d=(P(d,K[b|0])+P(e,K[c+3|0])|0)+128|0;H[c+3|0]=(d>>>8&255)+d>>>8;break e}h=K[b+2|0];i=K[b+1|0];f=K[b|0];k=d^255;l=P(k,e^255)>>>8^-1;H[c|0]=l;j=f;f=l&255;d=(d<<8>>>0)/(f>>>0)|0;e=(P(e,k)>>>0)/(f>>>0)|0;H[c+3|0]=(P(j,d)+P(e,K[c+3|0])|0)+127>>>8;H[c+2|0]=(P(d,i)+P(e, -K[c+2|0])|0)+127>>>8;H[c+1|0]=(P(d,h)+P(e,K[c+1|0])|0)+127>>>8}b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}}c=J[a+680>>2]+J[a+572>>2]|0;g=J[a+664>>2];b=J[a+556>>2];d=J[a+672>>2];g:{if((d|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=d}f=b;b=J[a+676>>2];if((f|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];c=c-g|0;h:{if((c|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=c}if((b|0)<=(c|0))J[a+564>>2]=c+1;return 0}function ovb(a){a=a|0;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;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;f=gc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;b=J[a+580>>2];c=(f+(b<<2)|0)+(J[a+672>>2]<<2)|0;f=b;b=J[a+656>>2];h=f+b|0;b=(b|0)/J[a+584>>2]|0;d=J[a+660>>2];e=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!e)break b;if((d|0)<=(h|0))break a;while(1){H[c|0]=K[b|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+3|0];b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;h=d+h|0;if((h|0)>2])continue;break}break a}b= -g+(b<<3)|0;if(e){if((d|0)<=(h|0))break a;while(1){H[c|0]=K[b|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b+4|0];H[c+3|0]=K[b+6|0];b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;h=d+h|0;if((h|0)>2])continue;break}break a}if((d|0)<=(h|0))break a;while(1){d=K[b+6|0]|K[b+7|0]<<8;d=(d<<8|d>>>8)&65535;c:{if(!d)break c;d:{if((d|0)!=65535){e=K[c+3|0];e=e<<8|e;if(e)break d}H[c|0]=K[b|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b+4|0];H[c+3|0]=K[b+6|0];break c}if((e|0)==65535){e=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;i=K[b+4|0]|K[b+ -5|0]<<8;f=P(d,(i<<8|i>>>8)&65535);i=K[c+2|0];j=i<<8|i;i=d^65535;f=(f+P(j,i)|0)+32768|0;H[c+2|0]=(f>>>16|0)+f>>>24;f=P((g<<8|g>>>8)&65535,d);g=K[c+1|0];g=(f+P(i,g<<8|g)|0)+32768|0;H[c+1|0]=(g>>>16|0)+g>>>24;f=P((e<<8|e>>>8)&65535,d);d=K[c|0];d=(f+P(i,d<<8|d)|0)+32768|0;H[c|0]=(d>>>16|0)+d>>>24;break c}g=K[c|0];i=K[c+1|0];f=K[c+2|0];k=K[b|0]|K[b+1|0]<<8;l=K[b+2|0]|K[b+3|0]<<8;j=K[b+4|0]|K[b+5|0]<<8;m=d^65535;n=P(m,e^65535)^-1;H[c+3|0]=n>>>24;o=f|f<<8;f=n>>>16|0;e=(P(e,m)>>>0)/(f>>>0)|0;d=(d<<16>>>0)/ -(f>>>0)|0;H[c+2|0]=(P(o,e)+P(d,(j<<8|j>>>8)&65535)|0)+32767>>>24;H[c+1|0]=(P(e,i|i<<8)+P(d,(l<<8|l>>>8)&65535)|0)+32767>>>24;H[c|0]=(P(e,g|g<<8)+P(d,(k<<8|k>>>8)&65535)|0)+32767>>>24}b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;h=d+h|0;if((h|0)>2])continue;break}break a}if((d|0)<=(h|0))break a;while(1){d=K[b+3|0];e:{if(!d)break e;f:{if((d|0)!=255){e=K[c+3|0];if(e)break f}H[c|0]=K[b|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+3|0];break e}if((e|0)==255){e=d^255;g=(P(d,K[b|0])+P(e,K[c|0])|0)+ -128|0;H[c|0]=(g>>>8&255)+g>>>8;g=(P(d,K[b+1|0])+P(e,K[c+1|0])|0)+128|0;H[c+1|0]=(g>>>8&255)+g>>>8;d=(P(d,K[b+2|0])+P(e,K[c+2|0])|0)+128|0;H[c+2|0]=(d>>>8&255)+d>>>8;break e}g=K[b|0];i=K[b+1|0];f=K[b+2|0];k=d^255;l=P(k,e^255)>>>8^-1;H[c+3|0]=l;j=f;f=l&255;d=(d<<8>>>0)/(f>>>0)|0;e=(P(e,k)>>>0)/(f>>>0)|0;H[c+2|0]=(P(j,d)+P(e,K[c+2|0])|0)+127>>>8;H[c+1|0]=(P(d,i)+P(e,K[c+1|0])|0)+127>>>8;H[c|0]=(P(d,g)+P(e,K[c|0])|0)+127>>>8}b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;h=d+h|0;if((h|0)>2])continue;break}}c= -J[a+680>>2]+J[a+572>>2]|0;h=J[a+664>>2];b=J[a+556>>2];d=J[a+672>>2];g:{if((d|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=d}f=b;b=J[a+676>>2];if((f|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];c=c-h|0;h:{if((c|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=c}if((b|0)<=(c|0))J[a+564>>2]=c+1;return 0}function hvb(a){a=a|0;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;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;f=gc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;b=J[a+580>> -2];c=(f+(b<<2)|0)+(J[a+672>>2]<<2)|0;f=b;b=J[a+656>>2];g=f+b|0;b=(b|0)/J[a+584>>2]|0;d=J[a+660>>2];e=K[a+649|0];h=J[a+644>>2];b:{if(!K[a+648|0]){b=h+(b<<2)|0;if(!e)break b;if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+2|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b|0];H[c+3|0]=K[b+3|0];b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}b=h+(b<<3)|0;if(e){if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+4|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b|0];H[c+3|0]=K[b+6|0];b=b+8|0;d=J[a+584>>2]; -c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+6|0]|K[b+7|0]<<8;d=(d<<8|d>>>8)&65535;c:{if(!d)break c;d:{if((d|0)!=65535){e=K[c+3|0];e=e<<8|e;if(e)break d}H[c|0]=K[b+4|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b|0];H[c+3|0]=K[b+6|0];break c}if((e|0)==65535){e=K[b+2|0]|K[b+3|0]<<8;h=K[b+4|0]|K[b+5|0]<<8;i=K[b|0]|K[b+1|0]<<8;f=P(d,(i<<8|i>>>8)&65535);i=K[c+2|0];j=i<<8|i;i=d^65535;f=(f+P(j,i)|0)+32768|0;H[c+2|0]=(f>>>16|0)+f>>>24;f=P((e<<8|e>>>8)&65535, -d);e=K[c+1|0];e=(f+P(i,e<<8|e)|0)+32768|0;H[c+1|0]=(e>>>16|0)+e>>>24;f=P((h<<8|h>>>8)&65535,d);d=K[c|0];d=(f+P(i,d<<8|d)|0)+32768|0;H[c|0]=(d>>>16|0)+d>>>24;break c}h=K[c|0];i=K[c+1|0];f=K[c+2|0];k=K[b|0]|K[b+1|0]<<8;l=K[b+2|0]|K[b+3|0]<<8;j=K[b+4|0]|K[b+5|0]<<8;m=d^65535;n=P(m,e^65535)^-1;H[c+3|0]=n>>>24;o=f|f<<8;f=n>>>16|0;e=(P(e,m)>>>0)/(f>>>0)|0;d=(d<<16>>>0)/(f>>>0)|0;H[c+2|0]=(P(o,e)+P(d,(k<<8|k>>>8)&65535)|0)+32767>>>24;H[c+1|0]=(P(e,i|i<<8)+P(d,(l<<8|l>>>8)&65535)|0)+32767>>>24;H[c|0]=(P(e, -h|h<<8)+P(d,(j<<8|j>>>8)&65535)|0)+32767>>>24}b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+3|0];e:{if(!d)break e;f:{if((d|0)!=255){e=K[c+3|0];if(e)break f}H[c|0]=K[b+2|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b|0];H[c+3|0]=K[b+3|0];break e}if((e|0)==255){e=d^255;h=(P(d,K[b+2|0])+P(e,K[c|0])|0)+128|0;H[c|0]=(h>>>8&255)+h>>>8;h=(P(d,K[b+1|0])+P(e,K[c+1|0])|0)+128|0;H[c+1|0]=(h>>>8&255)+h>>>8;d=(P(d,K[b|0])+P(e,K[c+2|0])|0)+128| -0;H[c+2|0]=(d>>>8&255)+d>>>8;break e}h=K[b+2|0];i=K[b+1|0];f=K[b|0];k=d^255;l=P(k,e^255)>>>8^-1;H[c+3|0]=l;j=f;f=l&255;d=(d<<8>>>0)/(f>>>0)|0;e=(P(e,k)>>>0)/(f>>>0)|0;H[c+2|0]=(P(j,d)+P(e,K[c+2|0])|0)+127>>>8;H[c+1|0]=(P(d,i)+P(e,K[c+1|0])|0)+127>>>8;H[c|0]=(P(d,h)+P(e,K[c|0])|0)+127>>>8}b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}}c=J[a+680>>2]+J[a+572>>2]|0;g=J[a+664>>2];b=J[a+556>>2];d=J[a+672>>2];g:{if((d|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=d}f=b;b= -J[a+676>>2];if((f|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];c=c-g|0;h:{if((c|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=c}if((b|0)<=(c|0))J[a+564>>2]=c+1;return 0}function Y7a(a,b,c){a=a|0;b=b|0;c=c|0;var d=Q(0),e=0,f=0,g=0,h=0,i=0,j=Q(0),k=0,l=0,m=Q(0);e=tc(a+8|0,b,80);f=a+88|0;dx(f,b+80|0);N[a+244>>2]=Q(1)/N[a+52>>2];b=J[f>>2];if((b|0)==4){z3(a,0);b=J[a+88>>2]}if((b|0)==3){z3(a,1);b=J[a+88>>2]}a:{b:{c:{d:{if((b|0)!=1)break d;e:{f:{g:switch(c-5|0){case 0:c=rc(288);J[695492]=0;b=aa(2368,c|0,e|0)|0; -e=J[695492];J[695492]=0;if((e|0)!=1)break e;a=Z()|0;break a;case 1:b=rc(276);h=O[a+256>>3];d=N[a+264>>2];i=O[a+248>>3];J[b>>2]=348880;tc(b+12|0,e,80);J[695492]=0;aa(2369,b+92|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;N[b+256>>2]=d;d=Q(Q(1)/d);N[b+260>>2]=d;N[b+264>>2]=Q(1)/N[a+56>>2];j=N[a+60>>2];N[b+248>>2]=Q(N[b+44>>2]*d)+Q(i);N[b+252>>2]=Q(N[b+48>>2]*d)+Q(h);d=N[b+52>>2];l=b,m=tR(d),N[l+8>>2]=m;l=b,m=PR(d),N[l+4>>2]=m;N[b+268>>2]=Q(1)/j;break e;case 2:b=rc(272);h=O[a+256>>3];d=N[a+264>> -2];i=O[a+248>>3];J[b>>2]=348932;tc(b+12|0,e,80);J[695492]=0;aa(2369,b+92|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){N[b+256>>2]=d;d=Q(Q(1)/d);N[b+260>>2]=d;N[b+264>>2]=Q(1)/N[a+56>>2];j=N[a+60>>2];N[b+248>>2]=Q(N[b+44>>2]*d)+Q(i);N[b+252>>2]=Q(N[b+48>>2]*d)+Q(h);d=N[b+52>>2];l=b,m=tR(d),N[l+8>>2]=m;l=b,m=PR(d),N[l+4>>2]=m;N[b+268>>2]=Q(1)/j;break e}break c;case 3:b=rc(284);J[b+12>>2]=0;J[b+16>>2]=0;J[b>>2]=348984;J[b+20>>2]=0;J[b+24>>2]=0;tc(b+48|0,e,80);J[695492]=0;aa(2369,b+128|0,f|0)|0;c=J[695492]; -J[695492]=0;if((c|0)!=1){c=J[a+160>>2];J[b+12>>2]=J[a+156>>2];J[b+16>>2]=c;c=J[a+168>>2];J[b+20>>2]=J[a+164>>2];J[b+24>>2]=c;break e}break c;case 4:c=rc(248);J[c>>2]=349040;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+36>>2]=0;J[c+40>>2]=1065353216;J[c+52>>2]=0;J[c+56>>2]=0;J[c+96>>2]=1;J[c+88>>2]=0;J[c+92>>2]=1;J[c+80>>2]=0;J[c+84>>2]=0;J[c+72>>2]=1056964608;J[c+76>>2]=1065353216;I[c+68>>1]=0;J[c+60>>2]=1065353216;J[c+64>>2]=1065353216;g=c+100|0;b=g;J[b>>2]=0; -J[b+4>>2]=0;J[c+108>>2]=0;J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+132>>2]=0;J[c+136>>2]=0;J[c+140>>2]=0;J[c+144>>2]=0;J[c+148>>2]=0;J[c+152>>2]=0;J[695492]=0;b=$(4,24)|0;k=J[695492];J[695492]=0;if((k|0)==1){a=Z()|0;$j(g);break a}g=b+24|0;J[c+152>>2]=g;J[c+144>>2]=b;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[c+148>>2]=g;wc(c+160|0,0,88);tc(c+12|0,e,80);J[695492]=0;b=c+92|0;aa(2370,b|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break f;a=Z()|0;Qe(b);break a;case 5:c= -rc(284);J[695492]=0;b=ga(2371,c|0,e|0,1)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break e;a=Z()|0;break a;case 6:c=rc(284);J[695492]=0;b=ga(2371,c|0,e|0,0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break e;a=Z()|0;break a;default:break g}if((c|0)==100)break d;Td(340399,16,1,J[651370]);c=rc(12);J[c>>2]=349148;J[695492]=0;b=KO();e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;J[694792]=b-1;J[694793]=0;b=J[695492];J[695492]=0;if((b|0)==1)break b}b=c}J[a+268>>2]=b}return}a=Z()|0;c=b;break a}a=Z()|0}qc(c); -ba(a|0);B()}function p9(){var a=0,b=0,c=0,d=0,e=0,f=0,g=Q(0),h=Q(0),i=0,j=Q(0),k=0,l=0;J[688794]=0;J[688795]=4;J[688792]=0;J[688793]=3;wc(2755184,0,132);J[688829]=46;while(1){c=(a>>>4&1)+(a>>>6&1)|0;d=(((a>>>3&1)+(a&1)|0)+(a>>>1&1)|0)+(a>>>2&1)|0;b=9;a:{b:switch((a>>>5&1)+(a>>>7|0)|0){case 0:b=4;c:switch(c|0){case 0:b=d?(d|0)==1?2:3:1;break a;case 1:break a;default:break c}b=5;break a;case 1:break b;default:break a}b=8;if(c)break a;b=d?7:6}J[(a<<2)+2730592>>2]=b;a=a+1|0;if((a|0)!=256)continue;break}a= -0;while(1){c=(a>>>4&1)+(a>>>6&1)|0;d=(((a>>>3&1)+(a&1)|0)+(a>>>1&1)|0)+(a>>>2&1)|0;b=9;d:{e:switch((a>>>5&1)+(a>>>7|0)|0){case 1:b=8;if(c)break d;b=d?7:6;break d;case 0:break e;default:break d}b=4;f:switch(c|0){case 0:b=d?(d|0)==1?2:3:1;break d;case 1:break d;default:break f}b=5}J[(a<<2|1024)+2730592>>2]=b;a=a+1|0;if((a|0)!=256)continue;break}a=0;while(1){c=(a>>>5&1)+(a>>>7|0)|0;d=(((a>>>3&1)+(a&1)|0)+(a>>>1&1)|0)+(a>>>2&1)|0;b=9;g:{h:switch((a>>>4&1)+(a>>>6&1)|0){case 1:b=8;if(c)break g;b=d?7:6; -break g;case 0:break h;default:break g}b=4;i:switch(c|0){case 0:b=d?(d|0)==1?2:3:1;break g;case 1:break g;default:break i}b=5}J[(a<<2|2048)+2730592>>2]=b;a=a+1|0;if((a|0)!=256)continue;break}a=0;while(1){d=(a>>>5&1)+(a>>>7|0)+((a>>>4&1)+(a>>>6&1))|0;b=9;j:{k:switch((((a>>>3&1)+(a&1)|0)+(a>>>1&1)|0)+(a>>>2&1)|0){case 2:b=d?8:7;break j;case 1:b=d?(d|0)==1?5:6:4;break j;case 0:break k;default:break j}b=d?(d|0)==1?2:3:1}J[(a<<2|3072)+2730592>>2]=b;a=a+1|0;if((a|0)!=256)continue;break}a=0;while(1){b=a<< -4;c=b&272;e=b&1088;d=(c|0)==16|(e|0)==64;c=(c|0)==272|(e|0)==1088;l=(a<<2)+2734688|0;e=b&544;b=b&2176;k=(e|0)==544|(b|0)==2176;e=(e|0)==32|(b|0)==128;b=k^e;l:{if(!b){i=0;if(!(d^c))break l}i=(e^-1|k)&(b|(c|!d))}J[l>>2]=i;a=a+1|0;if((a|0)!=256)continue;break}b=0;while(1){a=0;d=b<<4;c=d&272;e=d&1088;c=((c|0)==16|(e|0)==64)-((c|0)==272|(e|0)==1088)|0;i=0-c|0;e=c;c=d&544;d=d&2176;c=((c|0)==32|(d|0)==128)-((c|0)==544|(d|0)==2176)|0;d=(c|0)<0?i:e;J[(b<<2)+2735712>>2]=c?(d|0)==-1?15:d?17:16:d?14:13;b=b+1| -0;if((b|0)!=256)continue;break}while(1){b=a<<2;d=a&8192;J[b+2736736>>2]=d?12:a&254?11:10;J[(b|4)+2736736>>2]=d?12:11;a=a+2|0;if((a|0)!=2048)continue;break}b=0;while(1){a=b<<2;J[a+2744928>>2]=12;J[a+2744932>>2]=12;J[a+2744936>>2]=12;J[a+2744940>>2]=12;b=b+4|0;if((b|0)!=2048)continue;break}a=0;while(1){b=a<<2;e=b+2753120|0;g=Q(Q(a|0)*Q(.015625));h=Q(g*g);j=Q(g+Q(-1.5));f=V(+Q(h-Q(j*j))*64+.5)*.015625*8192;m:{if(R(f)<2147483648){c=~~f;break m}c=-2147483648}J[e>>2]=c;e=b+2753632|0;f=V(+h*64+.5)*.015625* -8192;n:{if(R(f)<2147483648){c=~~f;break n}c=-2147483648}J[e>>2]=c;e=b+2754144|0;h=Q(g+Q(-1));h=Q(h*h);g=a&64?j:Q(g+Q(-.5));f=V(+Q(h-Q(g*g))*64+.5)*.015625*8192;o:{if(R(f)<2147483648){c=~~f;break o}c=-2147483648}J[e>>2]=c;e=b+2754656|0;f=V(+h*64+.5)*.015625*8192;p:{if(R(f)<2147483648){c=~~f;break p}c=-2147483648}J[e>>2]=c;a=a+1|0;if((a|0)!=128)continue;break}}function dL(a){var b=0,c=0,d=0,e=0,f=0;a:{b=J[a+1576>>2];if(b){d=J[J[b>>2]+12>>2];J[695492]=0;$(d|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)== -1)break a;J[a+1576>>2]=0}d=J[a+1600>>2];if(d)while(1){c=J[a+1584>>2];b=d-1|0;e=J[a+1596>>2];f=b+e|0;f=J[J[c+(f>>>8&16777212)>>2]+((f&1023)<<2)>>2];if(f){b=J[J[f>>2]+12>>2];J[695492]=0;$(b|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;d=J[a+1600>>2];b=d-1|0;e=J[a+1596>>2];c=b+e|0;J[J[J[a+1584>>2]+(c>>>8&16777212)>>2]+((c&1023)<<2)>>2]=0;c=J[a+1584>>2]}J[a+1600>>2]=b;f=J[a+1588>>2];if((((c|0)!=(f|0)?(f-c<<8)-1|0:0)-(d+e|0)|0)+1>>>0>=2048){qc(J[f-4>>2]);J[a+1588>>2]=J[a+1588>>2]-4;b=J[a+1600>> -2]}d=b;if(b)continue;break}d=a+2920|0;b=J[d>>2];e=J[d+4>>2];if((b|0)!=(e|0)){while(1){c=J[b>>2];if(c){e=J[c>>2];if(e){qc(pr(e));J[c>>2]=0}e=J[c+4>>2];if(e)qc(Ed(e));qc(c);e=J[d+4>>2]}b=b+4|0;if((e|0)!=(b|0))continue;break}b=J[d>>2]}J[d+4>>2]=b;if(b)qc(b);d=a+1668|0;b=J[d+1212>>2];if(b)qc(b);c=J[d+32>>2];b:{if(!c)break b;b=c-1|0;J[d+32>>2]=b;e=J[d+48>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){qc(c);b=J[d+32>>2]}c=b;b=c-1|0;J[d+32>>2]=b;if(c)continue;break}b=J[d+48>>2];if(!b)break b;qc(b)}b=J[d+ -76>>2];if(b)qc(b);b=J[d- -64>>2];if(b)qc(b);b=J[d+20>>2];if(b)qc(b);b=J[d+12>>2];if(b)qc(b);c:{if(K[a+1664|0])break c;b=J[a+1604>>2];if(!b)break c;qc(b)}b=a+1580|0;J[b+20>>2]=0;c=J[b+8>>2];d=J[b+4>>2];e=c-d>>2;if(e>>>0>=3)while(1){qc(J[d>>2]);d=J[b+4>>2]+4|0;J[b+4>>2]=d;c=J[b+8>>2];e=c-d>>2;if(e>>>0>2)continue;break}f=512;d:switch(e-1|0){case 1:f=1024;case 0:J[b+16>>2]=f;break;default:break d}e:{if((d|0)==(c|0))break e;while(1){qc(J[d>>2]);d=d+4|0;if((c|0)!=(d|0))continue;break}d=J[b+8>>2];c=J[b+ -4>>2];if((d|0)==(c|0))break e;J[b+8>>2]=d+((c-d|0)+3&-4)}b=J[b>>2];if(b)qc(b);d=a+96|0;c=J[d+1404>>2];if(c){b=c-1|0;J[d+1404>>2]=b;e=J[d+1412>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){qc(c);b=J[d+1404>>2]}c=b;b=c-1|0;J[d+1404>>2]=b;if(c)continue;break}}b=J[d+1412>>2];if(b)qc(b);c=J[d+1384>>2];if(c){b=c-1|0;J[d+1384>>2]=b;e=J[d+1392>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){qc(c);b=J[d+1384>>2]}c=b;b=c-1|0;J[d+1384>>2]=b;if(c)continue;break}}b=J[d+1392>>2];if(b)qc(b);wC(d+1340|0);c=J[d+1280>> -2];if(c){b=c-1|0;J[d+1280>>2]=b;e=J[d+1288>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){qc(c);b=J[d+1280>>2]}c=b;b=c-1|0;J[d+1280>>2]=b;if(c)continue;break}}b=J[d+1288>>2];if(b)qc(b);c=J[d+1260>>2];if(c){b=c-1|0;J[d+1260>>2]=b;e=J[d+1268>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){qc(c);b=J[d+1260>>2]}c=b;b=c-1|0;J[d+1260>>2]=b;if(c)continue;break}}b=J[d+1268>>2];if(b)qc(b);wC(d+1216|0);c=J[d>>2];f:{if(!c)break f;b=c-1|0;J[d>>2]=b;e=J[d+16>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){qc(c);b= -J[d>>2]}c=b;b=c-1|0;J[d>>2]=b;if(c)continue;break}b=J[d+16>>2];if(!b)break f;qc(b)}b=J[d+44>>2];if(b)qc(b);b=J[d+32>>2];if(b)qc(b);Ed(a+56|0);Ed(a+52|0);Ed(a+48|0);Ed(a+44|0);return a}ea(0)|0;yc();B()}function NZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;m=J[a+332>>2];b=J[b+84>>2];g=P(J[b+64>>2],I[c+32>>1]);f=P(J[b+96>>2],I[c+48>>1]);i=P(J[b+32>>2],I[c+16>>1]);h=P(f+i|0,4433)+1024|0;a=bc-128|0;j=P(J[b>>2],I[c>>1]);k=j+g<<2;i= -h+P(i,6270)>>11;J[a+96>>2]=k-i;J[a>>2]=i+k;g=j-g<<2;h=h+P(f,-15137)>>11;J[a+64>>2]=g-h;J[a+32>>2]=g+h;h=P(J[b+100>>2],I[c+50>>1]);f=P(J[b+36>>2],I[c+18>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+68>>2],I[c+34>>1]);j=P(J[b+4>>2],I[c+2>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+100>>2]=k-f;J[a+4>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+68>>2]=f-g;J[a+36>>2]=g+f;h=P(J[b+104>>2],I[c+52>>1]);f=P(J[b+40>>2],I[c+20>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+72>>2],I[c+36>>1]);j=P(J[b+8>>2],I[c+4>>1]);k=i+j<<2;f=g+P(f,6270)>> -11;J[a+104>>2]=k-f;J[a+8>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+72>>2]=f-g;J[a+40>>2]=g+f;h=P(J[b+108>>2],I[c+54>>1]);f=P(J[b+44>>2],I[c+22>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+76>>2],I[c+38>>1]);j=P(J[b+12>>2],I[c+6>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+108>>2]=k-f;J[a+12>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+76>>2]=f-g;J[a+44>>2]=g+f;h=P(J[b+112>>2],I[c+56>>1]);f=P(J[b+48>>2],I[c+24>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+80>>2],I[c+40>>1]);j=P(J[b+16>>2],I[c+8>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+ -112>>2]=k-f;J[a+16>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+80>>2]=f-g;J[a+48>>2]=g+f;h=P(J[b+116>>2],I[c+58>>1]);f=P(J[b+52>>2],I[c+26>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+84>>2],I[c+42>>1]);j=P(J[b+20>>2],I[c+10>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+116>>2]=k-f;J[a+20>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+84>>2]=f-g;J[a+52>>2]=g+f;h=P(J[b+120>>2],I[c+60>>1]);f=P(J[b+56>>2],I[c+28>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+88>>2],I[c+44>>1]);j=P(J[b+24>>2],I[c+12>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+120>> -2]=k-f;J[a+24>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+88>>2]=f-g;J[a+56>>2]=g+f;h=P(J[b+124>>2],I[c+62>>1]);f=P(J[b+60>>2],I[c+30>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+92>>2],I[c+46>>1]);b=P(J[b+28>>2],I[c+14>>1]);c=i+b<<2;f=g+P(f,6270)>>11;J[a+124>>2]=c-f;J[a+28>>2]=c+f;b=b-i<<2;c=g+P(h,-15137)>>11;J[a+92>>2]=b-c;J[a+60>>2]=b+c;g=m+128|0;c=a;b=0;while(1){h=J[c+4>>2];m=J[c+28>>2];f=P(h+m|0,-7373);i=J[c+20>>2];l=i+h|0;j=J[c+12>>2];n=j+m|0;k=P(l+n|0,9633);a=J[(b<<2)+d>>2]+e|0;o=J[c>>2]+16|0;p=J[c+16>> -2];r=o+p<<13;s=J[c+24>>2];q=J[c+8>>2];t=P(s+q|0,4433);q=t+P(q,6270)|0;u=r+q|0;v=f+P(h,12299)|0;h=k+P(l,-3196)|0;l=v+h|0;H[a|0]=K[(u+l>>>18&1023)+g|0];H[a+7|0]=K[(u-l>>>18&1023)+g|0];k=k+P(n,-16069)|0;l=P(j,25172);j=P(i+j|0,-20995);l=k+(l+j|0)|0;n=o-p<<13;o=P(s,-15137)+t|0;p=n+o|0;H[a+1|0]=K[(l+p>>>18&1023)+g|0];H[a+6|0]=K[(p-l>>>18&1023)+g|0];h=h+(j+P(i,16819)|0)|0;i=n-o|0;H[a+2|0]=K[(h+i>>>18&1023)+g|0];H[a+5|0]=K[(i-h>>>18&1023)+g|0];h=k+(f+P(m,2446)|0)|0;m=r-q|0;H[a+3|0]=K[(h+m>>>18&1023)+g|0]; -H[a+4|0]=K[(m-h>>>18&1023)+g|0];c=c+32|0;b=b+1|0;if((b|0)!=4)continue;break}}function uz(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,y=0;if(J[694678]<0)pT();if((e|0)<(f|0)){y=c-1|0;while(1){w=P(d,e);x=e<<1;if((c|0)>0){u=0;v=P(e,3);t=0-v|0;n=a;while(1){o=(b<<1)+n|0;i=e<<1;g=i+n|0;a:{if((b|0)<=(e|0)){l=0;p=0;i=0;j=0;break a}l=I[n>>1];p=l;i=g+i|0;if(i>>>0>>0)p=I[i>>1];i=l;h=(v<<1)+g|0;if(h>>>0>>0)i=I[h>>1];j=I[g>> -1]-((l+p|0)+1>>1)|0;I[g>>1]=j;g=(x<<1)+g|0}k=0;h=0;s=v<<1;m=s+g|0;if(o>>>0>m>>>0)while(1){q=p;r=l;l=I[m>>1];m=I[g>>1]-((P(i+p|0,9)-(r+l|0)|0)+8>>4)|0;I[g>>1]=m;p=(t<<1)+g|0;I[p>>1]=L[p>>1]+((P(h+j|0,9)-(k+m|0)|0)+16>>>5|0);p=i;i=l;k=h;h=j;j=m;l=q;g=(x<<1)+g|0;m=s+g|0;if(o>>>0>m>>>0)continue;break}b:{if(g>>>0>=o>>>0){i=h;l=j;break b}s=i+1|0;l=I[g>>1]-(s+p>>1)|0;I[g>>1]=l;m=t<<1;q=m+g|0;I[q>>1]=L[q>>1]+((P(h+j|0,9)-(k+l|0)|0)+16>>>5|0);p=x<<1;g=p+g|0;if(o>>>0<=g>>>0){k=h;i=j;break b}q=i+s>>1;i=j;while(1){k= -i;i=l;l=I[g>>1]-q|0;I[g>>1]=l;j=g+m|0;I[j>>1]=L[j>>1]+((P(i+k|0,9)-(h+l|0)|0)+16>>>5|0);h=k;g=g+p|0;if(o>>>0>g>>>0)continue;break}}j=t<<1;h=j+g|0;c:{if(h>>>0>=o>>>0)break c;if(h>>>0>=n>>>0)I[h>>1]=L[h>>1]+((P(i+l|0,9)-k|0)+16>>>5|0);h=x<<1;g=h+g|0;k=g+j|0;if(k>>>0>=o>>>0)break c;if(k>>>0>=n>>>0)I[k>>1]=L[k>>1]+((P(l,9)-i|0)+16>>>5|0);i=j+(g+h|0)|0;if(i>>>0>=o>>>0|i>>>0>>0)break c;I[i>>1]=L[i>>1]+(16-l>>>5|0)}n=(w<<1)+n|0;u=e+u|0;if((u|0)<(c|0))continue;break}}r=(y|0)/(e|0)|0;if((r|0)>=-2){u=P(w, -3);v=0-u|0;m=0-w|0;g=1;o=w<<1;n=o+a|0;p=o<<1;while(1){l=b<<1;q=l+n|0;i=g;j=g>>>0<3;d:{e:{if(!(j|(r|0)<(g+3|0))){g=n;if((b|0)<=0)break d;while(1){I[g>>1]=L[g>>1]-((P(I[g+o>>1]+I[(m<<1)+g>>1]|0,9)-(I[(v<<1)+g>>1]+I[(u<<1)+g>>1]|0)|0)+8>>>4|0);g=(e<<1)+g|0;if(q>>>0>g>>>0)continue;break}break e}if((b|0)<=0|(i|0)>(r|0))break e;k=(((i|0)<(r|0)?w:m)<<1)+n|0;g=n;while(1){I[g>>1]=L[g>>1]-((I[(m<<1)+g>>1]+I[k>>1]|0)+1>>>1|0);h=e<<1;k=h+k|0;g=g+h|0;if(q>>>0>g>>>0)continue;break}}s=v<<1;g=s+n|0;t=l+g|0;h=i>>> -0<6;if(!(h|(i|0)>(r|0))){if((b|0)<=0)break d;while(1){I[g>>1]=L[g>>1]+((P(I[g+o>>1]+I[(m<<1)+g>>1]|0,9)-(I[g+s>>1]+I[(u<<1)+g>>1]|0)|0)+16>>>5|0);g=(e<<1)+g|0;if(t>>>0>g>>>0)continue;break}break d}if(j)break d;k=(r|0)>=(i-2|0)?g+o|0:0;j=(i|0)<=(r|0)?n:0;if(!h){if((b|0)<=0)break d;while(1){h=I[(m<<1)+g>>1];q=I[g+s>>1];I[g>>1]=L[g>>1]+((P(h+(k?I[k>>1]:0)|0,9)-(q+(j?I[j>>1]:0)|0)|0)+16>>>5|0);h=e<<1;j=j?h+j|0:0;k=k?h+k|0:0;g=g+h|0;if(t>>>0>g>>>0)continue;break}break d}if(i>>>0<=3){if((b|0)<=0)break d; -while(1){I[g>>1]=L[g>>1]+((P(k?I[k>>1]:0,9)-(j?I[j>>1]:0)|0)+16>>>5|0);h=e<<1;j=j?h+j|0:0;k=k?h+k|0:0;g=g+h|0;if(t>>>0>g>>>0)continue;break}break d}if((b|0)<=0)break d;while(1){h=I[(m<<1)+g>>1];I[g>>1]=L[g>>1]+((P(h+(k?I[k>>1]:0)|0,9)-(j?I[j>>1]:0)|0)+16>>>5|0);h=e<<1;j=j?h+j|0:0;k=k?h+k|0:0;g=g+h|0;if(t>>>0>g>>>0)continue;break}}g=i+2|0;n=n+p|0;if((r|0)>=(i-1|0))continue;break}}e=x;if((f|0)>(e|0))continue;break}}}function Y$(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=bc-112|0;bc=h;a:{if(!c)break a; -g=J[b+4>>2];if((g|0)!=1|J[c+4>>2]!=18)break a;f=a;d=J[c+8>>2];b:{c:{d:{if(!b|!d|(g|0)==18)break d;i=14838;e:{if((d|0)!=14838){e=d;while(1){j=K[e|0];if((j|0)!=K[i|0])break e;i=i+1|0;e=e+1|0;if(j)continue;break}}if(!f){if((g|0)==1){e=gc[J[659447]](24)|0;if(!e){Ew(14875);break d}J[e>>2]=0;J[e+4>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=18;d=gc[J[659450]](37)|0;f:{if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break f}H[d+36|0]=0;f=K[14870]|K[14871]<<8|(K[14872]<<16|K[14873]<<24); -H[d+32|0]=f;H[d+33|0]=f>>>8;H[d+34|0]=f>>>16;H[d+35|0]=f>>>24;f=K[14866]|K[14867]<<8|(K[14868]<<16|K[14869]<<24);g=K[14862]|K[14863]<<8|(K[14864]<<16|K[14865]<<24);H[d+24|0]=g;H[d+25|0]=g>>>8;H[d+26|0]=g>>>16;H[d+27|0]=g>>>24;H[d+28|0]=f;H[d+29|0]=f>>>8;H[d+30|0]=f>>>16;H[d+31|0]=f>>>24;f=K[14858]|K[14859]<<8|(K[14860]<<16|K[14861]<<24);g=K[14854]|K[14855]<<8|(K[14856]<<16|K[14857]<<24);H[d+16|0]=g;H[d+17|0]=g>>>8;H[d+18|0]=g>>>16;H[d+19|0]=g>>>24;H[d+20|0]=f;H[d+21|0]=f>>>8;H[d+22|0]=f>>>16;H[d+ -23|0]=f>>>24;f=K[14850]|K[14851]<<8|(K[14852]<<16|K[14853]<<24);g=K[14846]|K[14847]<<8|(K[14848]<<16|K[14849]<<24);H[d+8|0]=g;H[d+9|0]=g>>>8;H[d+10|0]=g>>>16;H[d+11|0]=g>>>24;H[d+12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;f=K[14842]|K[14843]<<8|(K[14844]<<16|K[14845]<<24);g=K[14838]|K[14839]<<8|(K[14840]<<16|K[14841]<<24);H[d|0]=g;H[d+1|0]=g>>>8;H[d+2|0]=g>>>16;H[d+3|0]=g>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]=f>>>16;H[d+7|0]=f>>>24}J[e+8>>2]=d;d=gc[J[659450]](4)|0;g:{if(!d){Cc(0, -0,0,0,0,1,2,3,0,0,0,0,36013,0);break g}H[d+3|0]=0;H[d+2|0]=K[9670];f=K[9668]|K[9669]<<8;H[d|0]=f;H[d+1|0]=f>>>8}J[e+12>>2]=d;J[e>>2]=J[b+48>>2];J[b+48>>2]=e;break b}g=0;f=J[b+32>>2];if(!f)break c}g=J[f+52>>2];if(g)break c;e=_$(f);break b}j=(g|0)!=2;f=b;while(1){g=0;h:{i:switch(J[f+4>>2]-1|0){case 0:break i;case 4:case 5:case 16:break c;default:break h}g=J[f+48>>2];if(g)while(1){i=J[g+8>>2];j:{if(!i)break j;e=d;if((d|0)!=(i|0))while(1){k=K[i|0];if((k|0)!=K[e|0])break j;e=e+1|0;i=i+1|0;if(k)continue; -break}e=J[g+12>>2];if(!(e|j))break j;if((U$(b,f,e)|0)==1)break c}g=J[g>>2];if(g)continue;break}if((b|0)==(f|0))break h;g=J[f+36>>2];if(!g)break h;i=J[g+8>>2];if(!i)break h;e=d;if((d|0)!=(i|0))while(1){k=K[i|0];if((k|0)!=K[e|0])break h;e=e+1|0;i=i+1|0;if(k)continue;break}e=J[g+12>>2];if(!(e|j))break h;if((U$(b,f,e)|0)==1)break c}f=J[f+20>>2];if(f)continue;break}}g=0}e=g}if(e)break a;e=J[c+12>>2];k:{if(!e){J[h+48>>2]=1634100580;J[h+52>>2]=7629941;break k}J[h+32>>2]=e;Gi(h+48|0,50,4481,h+32|0)}if(jl(a, -b,h+48|0)){e=1;while(1){if((e|0)==1001){e=0;break a}d=J[c+12>>2];l:{if(!d){J[h>>2]=e;Gi(h+48|0,50,17389,h);break l}J[h+20>>2]=e;J[h+16>>2]=d;Gi(h+48|0,50,17399,h+16|0)}e=e+1|0;if(jl(a,b,h+48|0))continue;break}}e=hl(b,J[c+8>>2],h+48|0)}bc=h+112|0;return e}function q_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;D=bc-512|0;bc=D;w=J[a+332>>2];b=J[b+84>>2];a=D;while(1){l=P(J[b+64>>2],I[c+32>>1]);k= -P(J[b+192>>2],I[c+96>>1]);h=l-k|0;o=P(h,11363);i=P(J[b+96>>2],I[c+48>>1]);m=P(J[b+32>>2],I[c+16>>1]);p=P(i+m|0,11086);y=o+P(k,20995)|0;j=P(J[b+128>>2],I[c+64>>1]);z=P(j,10703);n=P(I[c>>1],J[b>>2])<<13|1024;t=z+n|0;u=y+t|0;f=P(J[b+224>>2],I[c+112>>1]);A=P(f+m|0,8956);g=P(J[b+160>>2],I[c+80>>1]);r=g+m|0;v=P(r,10217);s=A+(v+(p+P(m,-18730)|0)|0)|0;J[a+480>>2]=u-s>>11;J[a>>2]=s+u>>11;h=P(h,2260);u=h+P(l,7373)|0;j=P(j,4433);s=j+n|0;q=u+s|0;B=P(g+i|0,1136);x=B+(p+P(i,589)|0)|0;p=f+i|0;C=P(p,-5461);x=x+C| -0;J[a+448>>2]=q-x>>11;J[a+32>>2]=q+x>>11;l=o+P(l,-4926)|0;o=n-j|0;j=l+o|0;q=v+(P(g,-9222)+B|0)|0;v=P(f+g|0,-11086);q=q+v|0;J[a+416>>2]=j-q>>11;J[a+64>>2]=j+q>>11;k=h+P(k,-4176)|0;n=n-z|0;h=k+n|0;j=v+(A+(C+P(f,8728)|0)|0)|0;J[a+384>>2]=h-j>>11;J[a+96>>2]=h+j>>11;n=n-k|0;k=P(p,-10217);p=P(m-f|0,7350);h=(k+P(f,25733)|0)+p|0;f=P(f-g|0,3363);h=h+f|0;J[a+352>>2]=n-h>>11;J[a+128>>2]=h+n>>11;n=o-l|0;l=P(r,5461);h=P(g,-6278);g=P(g-i|0,11529);f=f+(l+(h+g|0)|0)|0;J[a+320>>2]=n-f>>11;J[a+160>>2]=f+n>>11;f=s- -u|0;h=P(i,16154);i=P(m-i|0,3363);g=k+(g+(h+i|0)|0)|0;J[a+288>>2]=f-g>>11;J[a+192>>2]=f+g>>11;g=t-y|0;i=p+(l+(i+P(m,-15038)|0)|0)|0;J[a+256>>2]=g-i>>11;J[a+224>>2]=g+i>>11;a=a+4|0;b=b+4|0;c=c+2|0;E=E+1|0;if((E|0)!=8)continue;break}a=w+128|0;b=D;n=0;while(1){i=J[b+12>>2];m=J[b+4>>2];k=P(i+m|0,11086);o=J[b+8>>2];p=J[b+24>>2];h=o-p|0;w=P(h,11363);c=J[(n<<2)+d>>2]+e|0;f=J[b+28>>2];z=P(f+m|0,8956);g=J[b+20>>2];y=g+m|0;j=P(y,10217);t=z+(j+(k+P(m,-18730)|0)|0)|0;u=w+P(p,20995)|0;l=(J[b>>2]<<13)+131072|0; -r=J[b+16>>2];v=P(r,10703);A=l+v|0;s=u+A|0;H[c|0]=K[a+(t+s>>>18&1023)|0];H[c+15|0]=K[a+(s-t>>>18&1023)|0];t=f+i|0;s=P(t,-5461);q=k+P(i,589)|0;k=P(g+i|0,1136);q=s+(q+k|0)|0;h=P(h,2260);B=h+P(o,7373)|0;r=P(r,4433);C=r+l|0;x=B+C|0;H[c+1|0]=K[a+(q+x>>>18&1023)|0];H[c+14|0]=K[a+(x-q>>>18&1023)|0];j=j+(k+P(g,-9222)|0)|0;k=P(f+g|0,-11086);j=j+k|0;o=w+P(o,-4926)|0;w=l-r|0;r=o+w|0;H[c+2|0]=K[a+(j+r>>>18&1023)|0];H[c+13|0]=K[a+(r-j>>>18&1023)|0];k=k+(z+(s+P(f,8728)|0)|0)|0;p=h+P(p,-4176)|0;l=l-v|0;h=p+l|0;H[c+ -3|0]=K[a+(k+h>>>18&1023)|0];H[c+12|0]=K[a+(h-k>>>18&1023)|0];h=P(m-f|0,7350);k=P(t,-10217);j=h+(k+P(f,25733)|0)|0;f=P(f-g|0,3363);j=j+f|0;l=l-p|0;H[c+4|0]=K[a+(j+l>>>18&1023)|0];H[c+11|0]=K[a+(l-j>>>18&1023)|0];l=P(y,5461);j=P(g,-6278);g=P(g-i|0,11529);f=f+(l+(j+g|0)|0)|0;o=w-o|0;H[c+5|0]=K[a+(f+o>>>18&1023)|0];H[c+10|0]=K[a+(o-f>>>18&1023)|0];f=P(i,16154);i=P(m-i|0,3363);g=k+(g+(f+i|0)|0)|0;f=C-B|0;H[c+6|0]=K[a+(g+f>>>18&1023)|0];H[c+9|0]=K[a+(f-g>>>18&1023)|0];i=h+(l+(i+P(m,-15038)|0)|0)|0;m=A- -u|0;H[c+7|0]=K[a+(i+m>>>18&1023)|0];H[c+8|0]=K[a+(m-i>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=16)continue;break}bc=D+512|0}function o2a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+408>>2];f=J[a+464>>2];a:{if(J[a+224>>2]){c=J[a+412>>2];b:{c:{d:{if(!b){if(!c)break d;break c}if((c|0)<(b|0)|(c|0)>J[a+432>>2]|J[a+336>>2]!=1)break c}c=J[a+416>>2];e:{if(!c){e=J[a+420>>2];break e}e=c-1|0;if((e|0)!=J[a+420>>2])break c}if((e|0)<14)break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=17;J[J[a>>2]+28>>2]=J[a+412>>2]; -J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];gc[J[J[a>>2]>>2]](a)}if(J[a+336>>2]<=0)b=0;else{while(1){e=J[J[((d<<2)+a|0)+340>>2]+4>>2];g=J[a+160>>2]+(e<<8)|0;c=J[a+408>>2];b=0;f:{if(!c)break f;b=c;if(J[g>>2]>=0)break f;b=J[a>>2];J[b+24>>2]=e;J[b+20>>2]=118;J[J[a>>2]+28>>2]=0;gc[J[J[a>>2]+4>>2]](a,-1);b=J[a+408>>2]}if((b|0)<=J[a+412>>2])while(1){c=g+(b<<2)|0;h=J[c>>2];if(J[a+416>>2]!=(((h|0)>0?h:0)|0)){h=J[a>>2];J[h+24>>2]=e;J[h+20>>2]=118;J[J[a>>2]+28>>2]=b;gc[J[J[a>>2]+4>>2]](a,-1)}J[c>> -2]=J[a+420>>2];c=J[a+412>>2]>(b|0);b=b+1|0;if(c)continue;break}d=d+1|0;b=J[a+336>>2];if((d|0)<(b|0))continue;break}b=(b|0)>0}c=J[a+408>>2];J[f+4>>2]=J[a+416>>2]?c?390:391:c?392:393;if(b){b=0;while(1){d=b<<2;c=J[(d+a|0)+340>>2];g:{if(!J[a+408>>2]){if(J[a+416>>2])break g;c=J[c+20>>2];bC(a,1,c,((c<<2)+f|0)+44|0);break g}e=J[c+24>>2];c=(e<<2)+f|0;bC(a,0,e,c+44|0);J[f+60>>2]=J[c+44>>2]}J[(d+f|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}}J[f+16>>2]=0;break a}h:{if(!(J[a+420>>2]|(J[a+416>>2]| -b))){b=J[a+412>>2];if(!J[a+220>>2]&(b|0)>63|(b|0)==J[a+432>>2])break h}b=J[a>>2];J[b+20>>2]=125;gc[J[b+4>>2]](a,-1)}J[f+4>>2]=J[a+432>>2]==63?394:395;b=0;if(J[a+336>>2]>0)while(1){c=b<<2;d=J[(c+a|0)+340>>2];e=J[d+20>>2];bC(a,1,e,((e<<2)+f|0)- -64|0);if(J[a+432>>2]){d=J[d+24>>2];bC(a,0,d,((d<<2)+f|0)+80|0)}J[(c+f|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}e=0;if(J[a+364>>2]<=0)break a;while(1){b=e<<2;g=b+f|0;b=J[((J[(a+b|0)+368>>2]<<2)+a|0)+340>>2];J[g+96>>2]=J[((J[b+20>>2]<<2)+f|0)- -64>> -2];J[g+136>>2]=J[((J[b+24>>2]<<2)+f|0)+80>>2];i:{if(!J[b+52>>2]){b=0;break i}c=J[b+36>>2];d=J[b+40>>2];b=1;j:{k:switch(J[a+432>>2]){case 3:b=(((d-3>>>0<4294967294?1:d-1|0)<<3)+((c-3>>>0<4294967294?1:c-1|0)<<2)|0)+55056|0;break j;case 8:b=(P(d-4>>>0<4294967293?2:d-1|0,12)+((c-4>>>0<4294967293?2:c-1|0)<<2)|0)+55072|0;break j;case 15:b=(((d-5>>>0<4294967292?3:d-1|0)<<4)+((c-5>>>0<4294967292?3:c-1|0)<<2)|0)+55120|0;break j;case 24:b=(P(d-6>>>0<4294967291?4:d-1|0,20)+((c-6>>>0<4294967291?4:c-1|0)<<2)| -0)+55184|0;break j;case 35:b=(P(d-7>>>0<4294967290?5:d-1|0,24)+((c-7>>>0<4294967290?5:c-1|0)<<2)|0)+55296|0;break j;case 48:b=(P(d-8>>>0<4294967289?6:d-1|0,28)+((c-8>>>0<4294967289?6:c-1|0)<<2)|0)+55440|0;break j;case 0:break i;default:break k}b=(((d-9>>>0<4294967288?7:d-1|0)<<5)+((c-9>>>0<4294967288?7:c-1|0)<<2)|0)+55648|0}b=J[b>>2]+1|0}J[g+176>>2]=b;e=e+1|0;if((e|0)>2])continue;break}}J[f+36>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+40>>2]=J[a+280>>2]}function HH(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,C=0;e=rc(16);J[695492]=0;x=$(3185,e|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)a:{e=rc(16);J[695492]=0;i=$(3185,e|0)|0;f=J[695492];J[695492]=0;b:{c:{d:{if((f|0)!=1){e=rc(16);J[695492]=0;k=$(3185,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;e=J[a+8>>2];if((e|0)>0)break d;break c}break a}f=0;while(1){g=J[a>>2];c=J[g+(f<<2)>>2];j=1;A=1;f=f+1|0;e:{f:{if((f|0)>=(e|0))break f;e=J[g+(f<<2)>>2];if(!e)break f;g:{h:{i:{j:{k:{o= -K[c+88|0];switch(o-1|0){case 2:break h;case 1:break i;case 0:break j;default:break k}}g=c+24|0;m=e+24|0;d=O[e+16>>3]-O[c+32>>3];break g}g=c+32|0;m=e+32|0;d=O[e+24>>3]-O[c+40>>3];break g}g=e+40|0;m=c+40|0;d=O[c+16>>3]-O[e+32>>3];break g}g=e+16|0;m=c+16|0;d=O[c+24>>3]-O[e+40>>3]}if((o|0)!=K[e+88|0]|J[e+4>>2]>((J[c+4>>2]+J[c+8>>2]|0)+1|0))break f;A=0;l=O[c+56>>3];if(d>3]-O[g>>3])>l*.5)break f;j=0;if(K[c+92|0])break f;if(!(d>l*.15))break e}e=rc(112);m=H[c+89|0];o=K[c+88|0];g=J[c>>2];J[695492]= -0;n=Zk(g);g=J[695492];J[695492]=0;if((g|0)==1)break a;g=1;l:{if(n)break l;n=J[c>>2];J[695492]=0;n=dt(n);C=J[695492];J[695492]=0;if((C|0)==1)break a;if(n)break l;c=J[c>>2];J[695492]=0;c=ok(c);g=J[695492];J[695492]=0;if((g|0)==1)break a;g=c?-1:0}J[695492]=0;b=za(3487,e|0,a|0,b|0,f-b|0,o|0,m|0,g|0,j^1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;id(k,b);d=O[b>>3];m:{if(!J[k+8>>2]){p=O[b+24>>3];q=O[b+8>>3];r=d;s=O[b+16>>3];break m}r=d>r?r:d;d=O[b+24>>3];p=d>3];q=d>3]; -s=d>s?s:d}if(!j){b=f;break e}e=rc(72);d=O[J[J[k>>2]>>2]+56>>3];J[695492]=0;b=db(3488,e|0,k|0,+r,+s,+q,+p,+d)|0;c=J[695492];J[695492]=0;n:{if((c|0)!=1){id(i,b);e=rc(16);J[695492]=0;k=$(3185,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(A)break n;b=f;break e}break a}b=rc(40);J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=i;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;e=J[i+8>>2];o:{if((e|0)<=0)break o;i=J[i>>2];c=J[i>>2];d=O[c+8>>3];O[b+8>>3]=d;l=O[c+24>>3];O[b+ -24>>3]=l;y=O[c+16>>3];O[b+16>>3]=y;z=O[c+32>>3];O[b+32>>3]=z;j=1;if((e|0)==1)break o;while(1){c=J[i+(j<<2)>>2];h=O[c+8>>3];if(h>3]=h;d=h}h=O[c+24>>3];if(h>3]=h;l=h}h=O[c+16>>3];if(h>y){O[b+16>>3]=h;y=h}h=O[c+32>>3];if(h>z){O[b+32>>3]=h;z=h}j=j+1|0;if((e|0)!=(j|0))continue;break}}id(x,b);d=O[b+8>>3];p:{if(!J[x+8>>2]){t=O[b+32>>3];u=O[b+16>>3];v=d;w=O[b+24>>3];break p}v=d>v?v:d;d=O[b+32>>3];t=d>3];u=d>3];w=d>w?w:d}e=rc(16);J[695492]=0;i=$(3185,e| -0)|0;c=J[695492];J[695492]=0;b=f;if((c|0)==1)break a}e=J[a+8>>2];if((f|0)<(e|0))continue;break}if(!k)break b}qc(dd(k))}if(i)qc(dd(i));a=rc(56);O[a+24>>3]=w;O[a+8>>3]=v;J[a>>2]=x;J[a+40>>2]=0;J[a+44>>2]=0;O[a+32>>3]=t;O[a+16>>3]=u;J[a+48>>2]=0;J[a+52>>2]=0;return a}a=Z()|0;qc(e);ba(a|0);B()}function Zib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;d=bc-16|0;bc=d;a:{b:{if(u5(a,b,c)){QC(b);g=bc-16|0;bc=g;e=b+132|0;c:{if(!(a?e:0)){J[g+8>>2]=40;break c}i=J[a+28>>2];f=F5(a);J[g+ -8>>2]=f;if(f)break c;J[e+24>>2]=0;J[e+28>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+28>>2]=i;f=WL(i,8276,g+8|0);if(!J[g+8>>2]){J[f>>2]=a;J[f+4>>2]=e;h=J[e+28>>2];j=f+8264|0;J[f+8272>>2]=j;J[f+8>>2]=h;J[f+8268>>2]=j;J[f+8264>>2]=0;d:{h=F5(a);e:{if(h)break e;h=J[a+8>>2];J[f+48>>2]=1657;J[f+44>>2]=1658;J[f+68>>2]=h;h=J[a+28>>2];J[f+16>>2]=0;J[f+52>>2]=h;J[f+12>>2]=f+4168;h=3;if(dK(f+12|0,-15,239657))break e;if(J[f+12>>2])break d}J[g+8>> -2]=h;if(f)gc[J[i+8>>2]](i,f);break c}J[g+8>>2]=0;J[e+12>>2]=f}j=J[a+8>>2];f:{g:{if(!nd(a,J[a+4>>2]-4|0)){h=Vi(a,g+12|0);k=J[g+12>>2];nd(a,j);j=k?0:h;if(j-1>>>0<=40958){k=Zd(i,j,g+8|0);if(!J[g+8>>2]){if((RL(f,0,k,j)|0)==(j|0))break f;RL(f,0,0,0);if(k)gc[J[i+8>>2]](i,k)}J[g+8>>2]=0;break g}if(j)break g}h=2147483647}J[e+8>>2]=0;J[e+4>>2]=h;J[e+24>>2]=1659;J[e+20>>2]=1660;J[e>>2]=0;break c}kl(f+12|0);J[f+52>>2]=0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f+ -12>>2]=0;J[f+16>>2]=0;if(f)gc[J[i+8>>2]](i,f);J[e+4>>2]=j;J[e+8>>2]=0;J[e+12>>2]=0;J[e+24>>2]=1659;J[e+20>>2]=0;J[e>>2]=k}bc=g+16|0;f=J[g+8>>2];if((f&255)==7)break b;if(f){g=bc-16|0;bc=g;i=40;h:{if(!e|!a)break h;h=J[a+28>>2];i=nd(a,0);if(i)break h;i=mg(a,g+12|0,2);if(i)break h;i=3;if(K[g+12|0]!=31|K[g+13|0]!=157)break h;J[g+8>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e+28>>2]=h;f=Zd(h,4292,g+8|0);i=J[g+8>>2]; -if(!i){J[f>>2]=a;J[f+4>>2]=e;j=J[e+28>>2];k=f+4280|0;J[f+4288>>2]=k;J[f+8>>2]=j;J[f+4284>>2]=k;J[f+4280>>2]=0;i:{j=nd(a,0);j:{if(j)break j;j=mg(a,g+14|0,2);if(j)break j;j=3;if(K[g+14|0]!=31)break j;if(K[g+15|0]==157)break i}J[g+8>>2]=j;if(f)gc[J[h+8>>2]](h,f);i=J[g+8>>2];break h}wc(f+12|0,0,172);J[f+176>>2]=a;h=J[a+28>>2];J[f+108>>2]=64;J[f+100>>2]=f+112;J[f+180>>2]=h;J[f+36>>2]=0;J[f+40>>2]=0;H[f+44|0]=0;J[f- -64>>2]=9;J[e+12>>2]=f}J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=2147483647;J[e+24>>2]=1661;J[e+20>> -2]=1662}bc=g+16|0;if(i)break b}J[b+104>>2]=e;J[b+172>>2]=a;if(u5(e,b,c))break b}a=0;if((c|0)<0)break a;if(c&65535){QC(b);a=6;break a}k:{l:{m:{n:{a=J[b+180>>2];o:{if(!a)break o;c=J[b+176>>2];if(!c|(K[a|0]|32)!=105|((K[a+1|0]|32)!=115|(K[a+2|0]|32)!=111))break o;a=a+3|0;if(!Ec(a,240356))break n;if(!Ec(a,240519))if(!Ec(c,240652))break n;if(!Ec(a,240797))break m}J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;break k}J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;break l}a=Ec(c,240900);J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]= -b;if(a)break k}J[d+8>>2]=1970170211;J[d+12>>2]=65539}a=Ek(260240,0,d+4|0,0);break a}QC(b);a=2}bc=d+16|0;return a|0}function bla(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;e=bc-32|0;bc=e;a:{b:{c:{d:{e:{if(!b)break e;J[695492]=0;l=J[b+12>>2];i=J[695492];J[695492]=0;f:{g:{h:{i:{j:{k:{l:{if((i|0)!=1){J[695492]=0;m=J[b+16>>2];i=J[695492];J[695492]=0;if((i|0)==1)break l;J[695492]=0;g=J[b+12>>2];i=J[695492];J[695492]=0;if((i|0)==1)break l;J[695492]=0;d=J[b+16>>2];i=J[695492];J[695492]= -0;if((i|0)==1)break l;J[695492]=0;h=J[b+24>>2];i=J[695492];J[695492]=0;if((i|0)==1)break l;g=P(d,g);m:{if((g|0)<=0){f=J[c>>2];J[f>>2]=1;i=3;break m}d=0;if(K[h+3|0]==255){f=h+3|0;while(1){d=d+1|0;if((g|0)!=(d|0)){i=K[f+4|0];f=f+4|0;if((i|0)==255)continue}break}d=(d|0)>=(g|0)}f=J[c>>2];i=d&1;J[f>>2]=i;i=i?3:4}d=J[f+4>>2];J[695492]=0;g=e+16|0;da(6427,g|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break k;J[695492]=0;h=ga(2277,g|0,0,2431476)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;g=J[h>>2];J[e>> -2]=J[h+4>>2];d=K[h+7|0]|K[h+8|0]<<8|(K[h+9|0]<<16|K[h+10|0]<<24);H[e+3|0]=d;H[e+4|0]=d>>>8;H[e+5|0]=d>>>16;H[e+6|0]=d>>>24;J[h>>2]=0;J[h+4>>2]=0;d=K[h+11|0];J[h+8>>2]=0;h=f+8|0;if(H[f+19|0]<0)qc(J[h>>2]);J[f+8>>2]=g;J[f+12>>2]=J[e>>2];g=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);H[f+15|0]=g;H[f+16|0]=g>>>8;H[f+17|0]=g>>>16;H[f+18|0]=g>>>24;H[f+19|0]=d;if(H[e+27|0]<0)qc(J[e+16>>2]);d=J[f>>2];J[695492]=0;aa(2860,h|0,((d|0)==1?2431500:2431520)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;d= -K[a+35|0];k=d<<24>>24;f=(k|0)<0?J[a+28>>2]:d;j=f+1|0;if(j>>>0>=1073741808){J[695492]=0;_(2793,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break a}n:{if(j>>>0<=1){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;H[e+11|0]=j;d=e;break n}d=j|3;if(d>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break c}J[695492]=0;h=d+1|0;d=$(4,h<<2)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[e+4>>2]=j;J[e>>2]=d;J[e+8>>2]=h|-2147483648}j=d;d=a+24|0;g=(k|0)<0?J[d>>2]:d;d=f<<2;d=Zc(j,g,d)+ -d|0;J[d>>2]=47;J[d+4>>2]=0;f=J[c>>2];g=J[f+12>>2];d=J[f+8>>2];h=K[f+19|0];J[695492]=0;j=d;d=h<<24>>24<0;g=ga(2794,e|0,(d?j:f+8|0)|0,(d?g:h)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[e+24>>2]=J[g+8>>2];d=J[g+4>>2];J[e+16>>2]=J[g>>2];J[e+20>>2]=d;J[g>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;if(H[e+11|0]<0)qc(J[e>>2]);a=J[a+36>>2];if((a|0)<(l|0)|(a|0)<(m|0))break g;J[695492]=0;ga(6428,b|0,e+16|0,i|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break f;break d}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break b}f= -Z()|0;if(H[e+27|0]>=0)break b;qc(J[e+16>>2]);break b}f=Z()|0;break b}f=Z()|0;if(H[e+11|0]>=0)break b;qc(J[e>>2]);break b}J[695492]=0;ga(6428,b|0,e+16|0,i|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break f;break d}if(H[e+27|0]>=0)break e;qc(J[e+16>>2])}b=J[c+4>>2];o:{if(!b)break o;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break o;gc[J[J[b>>2]+8>>2]](b);Vc(b)}bc=e+32|0;return}f=Z()|0;if(H[e+27|0]>=0)break b;qc(J[e+16>>2]);break b}f=Z()|0}Ie(c);ba(f|0);B()}B()}function kN(a){var b=0,c=0,d=0,e=0,f=0;c=J[a+512>>2]; -a:{b:{c:{d:{e:{if(!K[a+288|0]){J[a+992>>2]=0;J[a+984>>2]=0;J[a+988>>2]=0;J[a+976>>2]=0;J[a+968>>2]=0;J[a+1012>>2]=0;J[a+536>>2]=0;d=a+498|0;if(K[a+498|0])break c;if(!c)break e;b=dk(a,c,J[a+316>>2],J[a+320>>2],K[a+324|0],K[a+325|0],K[a+326|0],K[a+327|0],K[a+328|0],1);break d}if(K[a+498|0])break b;f:{g:switch(K[a+2253|0]){case 1:case 4:b=J[J[a+2248>>2]+88>>2];d=K[a+324|0];H[b+54|0]=d;H[b+53|0]=d;break f;case 2:case 5:H[J[J[a+2248>>2]+88>>2]+54|0]=K[a+324|0];break f;case 3:case 6:H[J[J[a+2248>>2]+88>> -2]+53|0]=K[a+324|0];break f;case 0:break g;default:break f}b=dk(a,J[a+2248>>2],J[a+316>>2],J[a+320>>2],K[a+324|0],K[a+325|0],K[a+326|0],K[a+327|0],K[a+328|0],1);if(b)break a}b=K[a+325|0];e=K[a+324|0];d=J[J[a+2248>>2]+88>>2];if((e|0)==K[d+44|0])f=(b|0)==K[d+45|0];d=a+498|0;H[a+2272|0]=f;b=dk(a,J[a+528>>2],J[a+316>>2],J[a+320>>2],e,b,K[a+326|0],K[a+327|0],K[a+328|0],1);break d}b=dk(a,J[a+528>>2],J[a+316>>2],J[a+320>>2],K[a+324|0],K[a+325|0],K[a+326|0],K[a+327|0],K[a+328|0],1)}if(b)break a;if(K[a+288| -0])break b}c=c?c:J[a+528>>2];J[a+536>>2]=c;if(!K[c+31|0]&J[a+12>>2]!=1|(K[c+64|0]|K[c+65|0]))break b;mN(a);if(K[a+497|0]){H[d|0]=2;break b}H[a+498|0]=0;if(J[a+676>>2]<=J[a+672>>2]|J[a+684>>2]<=J[a+680>>2])break b;Ox(a)}b=0;if(K[a+497|0])break a;h:{i:switch(K[a+325|0]){case 0:j:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1220;break h}J[a+1012>>2]=1221;break h;case 1:if(!K[a+328|0]){J[a+1012>>2]=1222;break h}J[a+1012>>2]=1223;break h;case 3:if(!K[a+328|0]){J[a+1012>>2]=1224;break h}J[a+ -1012>>2]=1225;break h;case 7:if(!K[a+328|0]){J[a+1012>>2]=1226;break h}J[a+1012>>2]=1227;break h;case 15:break j;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1228;break h}J[a+1012>>2]=1229;break h;case 2:k:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1230;break h}J[a+1012>>2]=1231;break h;case 8:break k;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1232;break h}J[a+1012>>2]=1233;break h;case 3:l:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1234;break h}J[a+1012>>2]=1235; -break h;case 1:if(!K[a+328|0]){J[a+1012>>2]=1236;break h}J[a+1012>>2]=1237;break h;case 3:if(!K[a+328|0]){J[a+1012>>2]=1238;break h}J[a+1012>>2]=1239;break h;case 7:break l;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1240;break h}J[a+1012>>2]=1241;break h;case 4:m:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1242;break h}J[a+1012>>2]=1243;break h;case 8:break m;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1244;break h}J[a+1012>>2]=1245;break h;case 6:break i;default:break h}n:switch(K[a+ -324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1246;break h}J[a+1012>>2]=1247;break h;case 8:break n;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1248;break h}J[a+1012>>2]=1249}J[a+620>>2]=0;J[a+624>>2]=0;J[a+612>>2]=0;J[a+616>>2]=1;J[a+628>>2]=0;J[a+632>>2]=0}return b}function JZ(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=bc-1312|0;bc=g;if(c>>>0>=4){e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=52;gc[J[J[a>>2]>>2]](a)}h=J[((b?120:136)+a|0)+(c<<2)>>2];if(!h){e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=52;gc[J[J[a>>2]>> -2]](a)}i=J[d>>2];if(!i){i=gc[J[J[a+4>>2]>>2]](a,1,1280)|0;J[d>>2]=i}c=K[h+1|0];a:{if(!c){c=0;break a}wc(g+1040|0,1,c)}e=K[h+2|0];d=e+c|0;if(d>>>0>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}b:{if(!e){d=c;break b}wc((g+1040|0)+c|0,2,e)}e=K[h+3|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}c:{if(!e){c=d;break c}wc((g+1040|0)+d|0,3,e)}e=K[h+4|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}d:{if(!e){d=c;break d}wc((g+1040|0)+c|0,4,e)}e=K[h+5|0];c=e+d|0;if((c|0)>=257){f= -J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}e:{if(!e){c=d;break e}wc((g+1040|0)+d|0,5,e)}e=K[h+6|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}f:{if(!e){d=c;break f}wc((g+1040|0)+c|0,6,e)}e=K[h+7|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}g:{if(!e){c=d;break g}wc((g+1040|0)+d|0,7,e)}e=K[h+8|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}h:{if(!e){d=c;break h}wc((g+1040|0)+c|0,8,e)}e=K[h+9|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}i:{if(!e){c= -d;break i}wc((g+1040|0)+d|0,9,e)}e=K[h+10|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}j:{if(!e){d=c;break j}wc((g+1040|0)+c|0,10,e)}e=K[h+11|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}k:{if(!e){c=d;break k}wc((g+1040|0)+d|0,11,e)}e=K[h+12|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}l:{if(!e){d=c;break l}wc((g+1040|0)+c|0,12,e)}e=K[h+13|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}m:{if(!e){c=d;break m}wc((g+1040|0)+d| -0,13,e)}e=K[h+14|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}n:{if(!e){d=c;break n}wc((g+1040|0)+c|0,14,e)}e=K[h+15|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}o:{if(!e){c=d;break o}wc((g+1040|0)+d|0,15,e)}d=K[h+16|0];e=d+c|0;if((e|0)>=257){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}p:{if(!d){e=c;break p}wc((g+1040|0)+c|0,16,d)}c=0;H[(g+1040|0)+e|0]=0;j=K[g+1040|0];if(j){f=j<<24>>24;d=0;while(1){if(j<<24>>24==(f|0))while(1){J[(d<<2)+g>>2]=c;c=c+1|0;d=d+1|0;j=H[d+ -(g+1040|0)|0];if((j|0)==(f|0))continue;break}if(1<>2];J[k+20>>2]=9;gc[J[k>>2]](a)}f=f+1|0;c=c<<1;if(j&255)continue;break}}c=0;wc(i+1024|0,0,256);q:{if((e|0)<=0)break q;if(!b)while(1){b=K[(c+h|0)+17|0];d=(b+i|0)+1024|0;if(K[d|0]){f=J[a>>2];J[f+20>>2]=9;gc[J[f>>2]](a)}J[(b<<2)+i>>2]=J[(c<<2)+g>>2];H[d|0]=K[(g+1040|0)+c|0];c=c+1|0;if((e|0)!=(c|0))continue;break q}while(1){b=K[(c+h|0)+17|0];if(!(b>>>0<=15&!K[(b+i|0)+1024|0])){d=J[a>>2];J[d+20>>2]=9;gc[J[d>>2]](a)}J[(b<<2)+i>>2]=J[(c<< -2)+g>>2];H[(b+i|0)+1024|0]=K[(g+1040|0)+c|0];c=c+1|0;if((e|0)!=(c|0))continue;break}}bc=g+1312|0}function CY(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;h=bc-32|0;bc=h;J[h+16>>2]=13;J[h>>2]=13;a:{b:{c:{if((d|0)>=51){xc(1,-1,799802,0);break c}d:{e:{f:{if(J[a>>2]!=9)break f;i=J[b+4>>2];g=J[i+8>>2];if((g|0)<=0)break f;e=J[a+8>>2];j=J[a+12>>2];k=J[i>>2];while(1){i=J[k+(l<<2)>>2];if((e|0)==J[i>>2]&(j|0)==J[i+4>>2])break e;l=l+1|0;if((g|0)!=(l|0))continue;break}}e=a;a=h+16|0;hf(e,c,a,0); -if(J[h+16>>2]==6)break d;uc(a);break c}f=rc(16);J[695492]=0;a=$(4,12)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[i+8>>2];J[695492]=0;b=aa(3463,a|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;J[f+12>>2]=0;J[f+4>>2]=i;J[f>>2]=b;break c}break a}a=J[h+24>>2];g:{if(J[a+12>>2]>0){a=J[Mc(a,0,h,0)>>2];f=rc(16);h:{i:{if((a|0)==3){J[695492]=0;e=J[h+8>>2];a=$(4,12)|0;j=J[695492];J[695492]=0;if((j|0)!=1){J[695492]=0;e=aa(3187,a|0,e|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1)break i;break b}break a}J[695492]= -0;a=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)!=1){l=0;J[695492]=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[f+4>>2]=0;J[f>>2]=a;a=f+8|0;break h}break a}J[f>>2]=e;l=1;a=f+4|0}J[a>>2]=0;J[f+12>>2]=0;uc(h);break g}f=rc(16);J[695492]=0;a=$(4,12)|0;e=J[695492];J[695492]=0;j:{if((e|0)!=1){J[695492]=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;e=J[695492];J[695492]=0;if((e|0)!=1)break j;break b}break a}l=0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=a}a=J[h+24>>2];if(J[a+12>> -2]>(l|0)){p=d+1|0;while(1){jg(a,l,h);d=CY(h,b,c,p);k:{if(!d)break k;l:{m:{n:{if(J[d+4>>2]){a=J[f+12>>2];break n}a=J[f+12>>2];if(J[d>>2])break n;if(!a)break m;e=J[a+8>>2];if((e|0)<=0)break l;j=J[d+12>>2];o:{if(!j)break o;m=J[j+8>>2];if((m|0)<=0)break o;e=J[(J[a>>2]+(e<<2)|0)-4>>2];i=0;J[d+12>>2]=0;g=J[j>>2];a=0;if(m>>>0>=4){o=m&-4;k=0;while(1){n=a<<2;J[J[n+g>>2]+8>>2]=0;J[J[g+(n|4)>>2]+8>>2]=0;J[J[g+(n|8)>>2]+8>>2]=0;J[J[g+(n|12)>>2]+8>>2]=0;a=a+4|0;k=k+4|0;if((o|0)!=(k|0))continue;break}}k=m&3;if(k)while(1){J[J[g+ -(a<<2)>>2]+8>>2]=0;a=a+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}i=0;k=0;p:{q:{a=J[e+12>>2];if(!a){g=rc(16);J[695492]=0;a=$(3185,g|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break q;J[e+12>>2]=a}KI(a,j);m=J[j+8>>2];r:{if((m|0)<=0)break r;g=J[j>>2];a=0;if(m>>>0>=4){o=m&-4;while(1){n=a<<2;J[J[n+g>>2]+8>>2]=e;J[J[g+(n|4)>>2]+8>>2]=e;J[J[g+(n|8)>>2]+8>>2]=e;J[J[g+(n|12)>>2]+8>>2]=e;a=a+4|0;k=k+4|0;if((o|0)!=(k|0))continue;break}}k=m&3;if(!k)break r;while(1){J[J[g+(a<<2)>>2]+8>>2]=e;a=a+1|0;i=i+1|0;if((k| -0)!=(i|0))continue;break}}qc(dd(j));break p}a=Z()|0;qc(g);ba(a|0);B()}}qc(RH(d));break k}if(a)break l}e=rc(16);J[695492]=0;a=$(3185,e|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1){J[f+12>>2]=a;break l}a=Z()|0;qc(e);ba(a|0);B()}id(a,d);J[d+8>>2]=f}uc(h);l=l+1|0;a=J[h+24>>2];if((l|0)>2])continue;break}}uc(h+16|0)}bc=h+32|0;return f}b=Z()|0;qc(a);qc(f);ba(b|0);B()}a=Z()|0;qc(f);ba(a|0);B()}function w1(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;o=bc-16|0;bc=o;J[o+ -12>>2]=0;c=J[689351];a:{if(!c){k=o+12|0;c=zK(k);c=((c?L[1378798]:0)&65535)<<1;b=0;b:{if(c>>>0<14)break b;b=1;if(c>>>0<32)break b;b=2;if(c>>>0<62)break b;b=3;if(c>>>0<128)break b;b=4;if(c>>>0<252)break b;b=5;if(c>>>0<510)break b;b=6;if(c>>>0<1022)break b;b=7;if(c>>>0<2040)break b;b=8;if(c>>>0<4094)break b;b=9;if(c>>>0<8192)break b;b=10;if(c>>>0<16382)break b;b=11;if(c>>>0<32750)break b;b=12;if(c>>>0<65522)break b;b=13}r=2757404,s=o1(b,k),J[r>>2]=s;Lt(14,2875);if(J[o+12>>2]>0)break a;c=J[689351]}H[a+ -16|0]=1;g=bc-32|0;bc=g;k=J[a+12>>2]+4|0;J[g+28>>2]=k;J[g+16>>2]=k;J[g+12>>2]=a;J[g+24>>2]=a;k=g+20|0;b=c;i=bc-32|0;bc=i;c:{d:{e=o+12|0;e:{if(J[e>>2]>0)break e;n=J[g+12>>2];if(!n){J[i+8>>2]=J[g+16>>2];c=0;e=bc-32|0;bc=e;a=J[b+4>>2];J[e+20>>2]=J[i+8>>2];a=gc[a|0](e+20|0)|0;J[e+24>>2]=J[i+8>>2];m=J[b>>2];n=a&2147483647;h=J[b+28>>2];a=(n^67108864)%(h|0)|0;f=a;d=-1;f:{g:{while(1){p=P(f,12);j=p+m|0;l=J[j>>2];h:{if((l|0)==(n|0)){h=J[b+8>>2];J[e+16>>2]=J[e+24>>2];J[e+12>>2]=J[(m+p|0)+8>>2];if(gc[h|0](e+16| -0,e+12|0)|0)break f;h=J[b+28>>2];break h}if((l|0)>=0)break h;d=(d|0)<0?f:d;if((l|0)==-2147483647)break g}if(!c)c=((n|0)%(h-1|0)|0)+1|0;f=(c+f|0)%(h|0)|0;if((a|0)!=(f|0))continue;break}if((d|0)>=0)break g;j=0;d=a;if((l|0)!=-2147483647)break f}j=m+P(d,12)|0}J[k>>2]=0;i:{if(J[j>>2]<0)break i;J[b+24>>2]=J[b+24>>2]-1;a=J[j+4>>2];d=J[b+16>>2];j:{if(!d)break j;c=J[j+8>>2];if(!c)break j;gc[d|0](c)}d=J[b+20>>2];k:{if(!d){c=a;break k}c=0;if(!a)break k;gc[d|0](a)}J[j+8>>2]=0;J[j>>2]=-2147483648;J[j+4>>2]=0; -J[k>>2]=c;if(J[b+24>>2]>=J[b+36>>2])break i;J[e+24>>2]=0;l1(b,e+24|0)}bc=e+32|0;break c}if(J[b+24>>2]>J[b+32>>2]){l1(b,e);if(J[e>>2]>0)break e}a=J[b+4>>2];J[i+20>>2]=J[g+16>>2];a=gc[a|0](i+20|0)|0;J[i+24>>2]=J[g+16>>2];j=J[b>>2];m=a&2147483647;d=J[b+28>>2];a=(m^67108864)%(d|0)|0;q=a;c=-1;l:{m:{while(1){h=P(q,12);f=j+h|0;l=J[f>>2];n:{if((l|0)==(m|0)){d=J[b+8>>2];J[i+16>>2]=J[i+24>>2];J[i+12>>2]=J[(j+h|0)+8>>2];if(gc[d|0](i+16|0,i+12|0)|0)break l;d=J[b+28>>2];break n}if((l|0)>=0)break n;c=(c|0)<0?q: -c;if((l|0)==-2147483647)break m}if(!p)p=((m|0)%(d-1|0)|0)+1|0;q=(p+q|0)%(d|0)|0;if((a|0)!=(q|0))continue;break}if((c|0)>=0)break m;f=0;c=a;if((l|0)!=-2147483647)break l}f=j+P(c,12)|0}if(J[f>>2]>=0)break d;c=J[b+24>>2];a=c+1|0;J[b+24>>2]=a;if((a|0)!=J[b+28>>2])break d;J[b+24>>2]=c;J[e>>2]=7}c=J[b+16>>2];o:{if(!c)break o;a=J[g+16>>2];if(!a)break o;gc[c|0](a)}c=J[b+20>>2];p:{if(!c)break p;a=J[g+12>>2];if(!a)break p;gc[c|0](a)}J[k>>2]=0;break c}d=J[g+16>>2];h=J[f+4>>2];J[k>>2]=h;a=J[b+16>>2];q:{if(!a)break q; -c=J[f+8>>2];if(!c|(c|0)==(d|0))break q;gc[a|0](c)}a=J[b+20>>2];if(a){if(!(!h|(h|0)==(n|0)))gc[a|0](h);J[k>>2]=0}J[f+4>>2]=n;J[f+8>>2]=d;J[f>>2]=m}bc=i+32|0;bc=g+32|0}bc=o+16|0}function Una(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=bc-48|0;bc=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;g=J[d>>2];J[f+44>>2]=g;J[f+40>>2]=c;a:{b:{c:{d:{e:{f:{if((e|0)>0){J[695492]=0;b=f+12|0;da(2667,b|0,e|0);e=J[695492];J[695492]=0;g:{h:{i:{j:{k:{if((e|0)!=1){J[695492]=0;b=ga(3536,b|0,0,20928)|0;e= -J[695492];J[695492]=0;if((e|0)==1)break k;J[f+32>>2]=J[b+8>>2];e=J[b+4>>2];J[f+24>>2]=J[b>>2];J[f+28>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[f+23|0]<0)qc(J[f+12>>2]);J[695492]=0;b=aa(6201,20445,(H[f+35|0]<0?J[f+24>>2]:f+24|0)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;if((b|0)==-1)break h;J[695492]=0;ca(3525,a|0,J[f+44>>2],0);e=J[695492];J[695492]=0;if((e|0)==1)break c;J[f+12>>2]=H[a+11|0]<0?J[a>>2]:a;J[695492]=0;g=J[f+44>>2];J[f+8>>2]=g<<2;e=ma(6202,b|0,f+40|0,f+44|0,f+12|0,f+8|0)|0;h= -J[695492];J[695492]=0;if((h|0)==1)break c;if(e)break i;h=J[f+8>>2];if(!h)break i;g=g-(h>>>2|0)|0;i=K[a+11|0];if(g>>>0<=(i<<24>>24<0?J[a+4>>2]:i)>>>0)break j;J[695492]=0;_(2804,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;break a}g=Z()|0;break b}g=Z()|0;if(H[f+23|0]>=0)break b;qc(J[f+12>>2]);break b}J[695492]=0;ca(2805,a|0,g|0,1);g=J[695492];J[695492]=0;if((g|0)==1)break c}J[695492]=0;ER(b);b=J[695492];J[695492]=0;if((b|0)==1)break c;if(H[f+35|0]<0)qc(J[f+24>>2]);if(e)break g;break f}if(H[f+35| -0]>=0)break g;qc(J[f+24>>2])}g=J[d>>2]}if(g>>>0>=2147483632){J[695492]=0;_(1623,f+24|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break d}l:{if(g>>>0<=10){H[f+35|0]=g;e=f+24|0;break l}J[695492]=0;b=(g|15)+1|0;e=$(4,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;J[f+24>>2]=e;J[f+28>>2]=g;J[f+32>>2]=b|-2147483648}j=tc(e,c,g)+g|0,k=0,H[j|0]=k;c=H[f+35|0];b=(c|0)<0;d=b?J[f+28>>2]:c&255;if(d>>>0>=1073741808){J[695492]=0;_(2793,f+12|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break e}c=J[f+24>> -2];m:{n:{if(d>>>0>=2){e=d|3;if(e>>>0>=1073741823){J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break a;break e}J[695492]=0;e=e+1|0;g=$(4,e<<2)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;J[f+12>>2]=g;J[f+16>>2]=d;J[f+20>>2]=e|-2147483648;break n}H[f+23|0]=d;g=f+12|0;if(!d)break m}b=b?c:f+24|0;h=d-1|0;i=d&7;o:{if(!i){c=b;break o}e=0;c=b;while(1){J[g>>2]=H[c|0];g=g+4|0;c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}if(h>>>0<7)break m;b=b+d|0;while(1){J[g>>2]=H[c|0];J[g+4>>2]=H[c+1|0]; -J[g+8>>2]=H[c+2|0];J[g+12>>2]=H[c+3|0];J[g+16>>2]=H[c+4|0];J[g+20>>2]=H[c+5|0];J[g+24>>2]=H[c+6|0];J[g+28>>2]=H[c+7|0];g=g+32|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}J[g>>2]=0;if(H[a+11|0]<0)qc(J[a>>2]);b=J[f+16>>2];J[a>>2]=J[f+12>>2];J[a+4>>2]=b;J[a+8>>2]=J[f+20>>2];if(H[f+35|0]>=0)break f;qc(J[f+24>>2])}bc=f+48|0;return}g=Z()|0;if(H[f+35|0]>=0)break b;qc(J[f+24>>2]);break b}g=Z()|0;break b}g=Z()|0;if(H[f+35|0]>=0)break b;qc(J[f+24>>2])}if(H[a+11|0]<0)qc(J[a>>2]);ba(g|0);B()}B()}function A1a(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;e=bc-48|0;bc=e;i=J[a+464>>2];a:{b:{if(J[i+40>>2]|!J[a+280>>2])break b;d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+(J[i+12>>2]/8|0);J[i+12>>2]=0;f=0;if(!(gc[J[d+8>>2]](a)|0))break a;if(J[a+336>>2]>0){d=0;while(1){J[((d<<2)+i|0)+20>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}J[i+16>>2]=0;J[i+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[i+36>>2]=0}if(!J[i+36>>2]){o=J[a+432>>2];p=J[a+428>>2];J[e+44>>2]=a;h=J[a+24>>2];c=J[h>>2];J[e+ -28>>2]=c;f=J[h+4>>2];J[e+32>>2]=f;d=J[i+12>>2];g=J[i+8>>2];J[e+24>>2]=J[i+32>>2];j=J[i+28>>2];J[e+16>>2]=J[i+24>>2];J[e+20>>2]=j;j=J[i+20>>2];J[e+8>>2]=J[i+16>>2];J[e+12>>2]=j;if(J[a+364>>2]>0){while(1){h=n<<2;m=J[h+b>>2];l=i+h|0;c=J[l+96>>2];c:{d:{e:{if((d|0)>7)break e;j=e+28|0;f=0;if(!Fg(j,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break e;c=wi(j,g,d,c,1);break d}f=g>>d-8&255;j=J[(c+(f<<2)|0)+144>>2];if(j){c=K[(c+f|0)+1168|0];d=d-j|0;break c}c=wi(e+28|0,g,d,c,9)}f=0;if((c|0)<0)break a; -g=J[e+36>>2];d=J[e+40>>2]}j=J[l+136>>2];l=J[l+176>>2];f:{g:{if(l){if(c){if((c|0)>(d|0)){f=0;if(!Fg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;c=c<<2;f=J[c+55904>>2];k=g>>d&f;c=k-((k|0)<=J[c+55900>>2]?f:0)|0}else c=0;h=(J[(a+h|0)+368>>2]<<2)+e|0;c=c+J[h+12>>2]|0;J[h+12>>2]=c;I[m>>1]=c;h=1;if((l|0)<2)break g;while(1){h:{i:{j:{if((d|0)>7)break j;c=e+28|0;f=0;if(!Fg(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break j;c=wi(c,g,d,j,1);break i}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2]; -if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break h}c=wi(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}k=c>>>4|0;c=c&15;k:{if(c){if((c|0)>(d|0)){f=0;if(!Fg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}h=h+k|0;d=d-c|0;c=c<<2;f=J[c+55904>>2];k=g>>d&f;I[(J[(h<<2)+p>>2]<<1)+m>>1]=k-((k|0)<=J[c+55900>>2]?f:0);break k}if((k|0)!=15)break f;h=h+15|0}h=h+1|0;if((l|0)>(h|0))continue;break}break g}h=1;if(!c)break g;if((c|0)>(d|0)){f=0;if(!Fg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c| -0}if((h|0)>(o|0))break f;while(1){l:{m:{n:{if((d|0)>7)break n;c=e+28|0;f=0;if(!Fg(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break n;c=wi(c,g,d,j,1);break m}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break l}c=wi(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}m=c>>>4|0;c=c&15;o:{if(c){if((c|0)>(d|0)){f=0;if(!Fg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;break o}if((m|0)!=15)break f}h=(h+m|0)+1|0;if((o|0)>=(h|0))continue;break}}n= -n+1|0;if((n|0)>2])continue;break}h=J[a+24>>2];f=J[e+32>>2];c=J[e+28>>2]}J[h+4>>2]=f;J[h>>2]=c;J[i+12>>2]=d;J[i+8>>2]=g;J[i+32>>2]=J[e+24>>2];a=J[e+20>>2];J[i+24>>2]=J[e+16>>2];J[i+28>>2]=a;a=J[e+12>>2];J[i+16>>2]=J[e+8>>2];J[i+20>>2]=a}J[i+40>>2]=J[i+40>>2]-1;f=1}bc=e+48|0;return f|0}function EU(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;e=bc-48|0;bc=e;a:{b:{if(!K[b+144|0]){a=Kc(e+24|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b| -0)!=1)break b;b=Z()|0;Fc(a);ba(b|0);B()}c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{d=J[b+24>>2];if(!d){h=b+112|0;if(c)break m;J[695492]=0;aa(5031,e+8|0,h|0)|0;c=J[695492];J[695492]=0;n:{o:{if((c|0)!=1){d=J[e+16>>2];if(!d)break f;while(1){c=0;f=J[d+8>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break o;c=J[d+8>>2]}J[695492]=0;J[e+24>>2]=c;c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]=0;c=J[e+24>>2];ca(5334,a|0,c|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break n;if(J[a>> -2])break l;J[a>>2]=0;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(!f){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}d=J[d>>2];if(d)continue;break}break f}a=ea(0)|0;break g}a=ea(0)|0;break i}break j}J[d+4>>2]=J[d+4>>2]+1;J[a>>2]=J[b+24>>2];break c}p:{while(1){J[695492]=0;j=aa(5031,e+8|0,h|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;f=0;d=J[e+16>>2];if(!d)break f;while(1){c=0;g=J[d+8>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;c=J[695492]; -J[695492]=0;if((c|0)==1)break p;c=J[d+8>>2]}J[695492]=0;J[e+24>>2]=c;g=J[c+148>>2];c=J[695492];J[695492]=0;q:{if((c|0)!=1){J[695492]=0;c=J[e+24>>2];ca(5334,a|0,c|0,0);i=J[695492];J[695492]=0;if((i|0)!=1)break q}break j}if(J[a>>2])break l;J[a>>2]=0;J[695492]=0;i=J[c+4>>2]-1|0;J[c+4>>2]=i;k=J[695492];J[695492]=0;if((k|0)==1)break a;if(!i){J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}f=g&1?1:f;d=J[d>>2];if(d)continue;break}if(!f)break f;if(K[b+144|0]){$c(j);if(!K[b+144|0])break h; -continue}break}J[695492]=0;b=ja(5018,e+24|0,2382727,2374155,164,2402264,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=ea(0)|0;Fc(b);break i}a=ea(0)|0;break i}a=ea(0)|0;break i}J[695492]=0;J[e+24>>2]=0;a=J[c+4>>2]-1|0;J[c+4>>2]=a;b=J[695492];J[695492]=0;r:{if((b|0)!=1){if(a)break r;J[695492]=0;_(4987,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break r}break a}$c(e+8|0);break c}a=ea(0)|0;break g}a=ea(0)|0;vc(e+24|0)}$c(e+8|0);break g}J[695492]= -0;b=ja(5018,e+24|0,2382727,2374155,164,2402264,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=ea(0)|0;Fc(b);break g}a=ea(0)|0}na(a|0)|0;J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break b;d=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break e;break a}$c(e+8|0);if(!(J[b+148>>2]&8))break d;a=Kc(e+24|0,J[682139],2374155,808,2402431,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;d=Z()| -0;Fc(a)}ba(d|0);B()}J[a>>2]=0;md(a,0)}bc=e+48|0;return}B()}ea(0)|0;yc();B()}function Axb(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;J[a+4>>2]=J[b+24>>2];J[a+8>>2]=J[b+28>>2];J[a+12>>2]=J[b+16>>2];J[a+16>>2]=J[b+20>>2];J[a+20>>2]=J[b+32>>2];J[a+24>>2]=J[b+36>>2];J[a+28>>2]=J[b+40>>2];J[a+32>>2]=J[b+44>>2];c=J[b+48>>2];J[a+56>>2]=c;a:{d=zc(28);b:{if(!d)break b;J[d+20>>2]=c;J[d>>2]=0;I[d+16>>1]=0;J[d+12>>2]=0;H[d+8|0]=0;c=zc(P(c,488));J[d+24>>2]=c;if(!c)break b;c=j9();J[d+ -4>>2]=c;if(c)break a;qc(J[d+24>>2])}J[a+64>>2]=0;return-1}g=J[d+20>>2];c:{if((g|0)<=0)break c;c=J[d+24>>2];if(g>>>0>=4){k=g&-4;while(1){H[c+418|0]=0;I[c+416>>1]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+488>>2]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;J[c+976>>2]=0;J[c+1464>>2]=0;H[c+906|0]=0;I[c+904>>1]=0;J[c+500>>2]=0;H[c+1394|0]=0;I[c+1392>>1]=0;J[c+988>>2]=0;H[c+493|0]=0;H[c+494|0]=0;H[c+495|0]=0;H[c+496|0]=0;H[c+1882|0]=0;I[c+1880>>1]=0;J[c+1476>>2]=0;H[c+981|0]=0;H[c+982|0]=0;H[c+983|0]=0;H[c+984|0]= -0;f=c+1469|0;H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;c=c+1952|0;e=e+4|0;if((k|0)!=(e|0))continue;break}}g=g&3;if(!g)break c;e=0;while(1){H[c+418|0]=0;I[c+416>>1]=0;J[c+12>>2]=0;J[c>>2]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;c=c+488|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}J[a+64>>2]=d;c=zc(J[a+56>>2]<<5);J[a+88>>2]=c;if(!c)return-1;g=J[a+16>>2];f=J[a+12>>2];k=J[a+56>>2];if((k|0)>0){j=J[b+52>>2];h=J[a+8>>2];i=J[a+4>>2];d=0;while(1){b=j+(d<<2)|0;J[c+16>>2]=K[b|0];H[c+20|0]=K[b+1|0]!=0;e=K[b+ -2|0];J[c>>2]=e;b=K[b+3|0];J[c+24>>2]=0;J[c+28>>2]=0;J[c+4>>2]=b;l=e-1|0;J[c+8>>2]=((l+f>>>0)/(e>>>0)|0)-((i+l>>>0)/(e>>>0)|0);e=b-1|0;J[c+12>>2]=((e+g>>>0)/(b>>>0)|0)-((e+h>>>0)/(b>>>0)|0);c=c+32|0;d=d+1|0;if((k|0)!=(d|0))continue;break}}J[a>>2]=0;k=-1;b=J[a+20>>2];b=(b+(f+(J[a+28>>2]^-1)|0)>>>0)/(b>>>0)|0;J[a+36>>2]=b;c=J[a+24>>2];c=(c+(g+(J[a+32>>2]^-1)|0)>>>0)/(c>>>0)|0;J[a+40>>2]=c;b=P(b,c);J[a+44>>2]=b;d=zc(P(b,56));J[a+48>>2]=d;d:{if(!d)break d;if(J[a+44>>2]>0){g=J[a+56>>2];e=0;while(1){b=J[a+ -36>>2];J[d>>2]=0;J[d+48>>2]=0;j=J[a+28>>2];c=J[a+20>>2];f=b;b=(e|0)/(b|0)|0;f=e-P(f,b)|0;h=j+P(c,f)|0;i=J[a+4>>2];J[d+4>>2]=h>>>0>i>>>0?h:i;i=J[a+32>>2];h=J[a+24>>2];l=i+P(h,b)|0;m=J[a+8>>2];J[d+8>>2]=l>>>0>m>>>0?l:m;c=j+P(c,f+1|0)|0;f=J[a+12>>2];J[d+12>>2]=c>>>0>>0?c:f;c=J[a+16>>2];J[d+40>>2]=0;J[d+44>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;b=i+P(h,b+1|0)|0;J[d+16>>2]=b>>>0>>0?b:c;c=zc(g<<5);J[d+36>>2]=c;if(!c)break d;g=J[a+56>>2];if((g|0)>0){i=J[d+16>>2];l=J[d+12>>2];m=J[d+ -8>>2];o=J[d+4>>2];b=J[a+88>>2];j=0;while(1){J[c+16>>2]=0;J[c+24>>2]=0;h=J[b>>2];n=h-1|0;J[c>>2]=(n+o>>>0)/(h>>>0);f=J[b+4>>2];J[c+28>>2]=0;J[c+8>>2]=(l+n>>>0)/(h>>>0);h=f-1|0;J[c+12>>2]=(h+i>>>0)/(f>>>0);J[c+4>>2]=(h+m>>>0)/(f>>>0);c=c+32|0;b=b+32|0;j=j+1|0;if((j|0)!=(g|0))continue;break}}d=d+56|0;e=e+1|0;if((e|0)>2])continue;break}}J[a+84>>2]=4;k=0;J[a+96>>2]=0}return k|0}function Lza(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=bc+-64|0;bc=e;a:{b:{c:{if(K[a+89|0]){b=Kc(e+28| -0,2382746,2373496,168,2401476,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}if(!J[a+4>>2]){b=Kc(e+28|0,2375340,2373496,170,2401476,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}d:{e:{f=J[b+8>>2];f:{if(!f|!J[f+8>>2])break f;g=e+28|0;sj(g,b,0);f=J[e+28>>2];if(!f){sc(g);break f}f=J[f+8>>2];sc(e+28|0);if(f)break e}if(!J[a+44>>2]){b=Kc(e+28|0,2375849,2373496,174,2401476,0);J[695492]=0;_(5019,b|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}h=a+8|0;f=J[a+16>>2];g:{if(!f|!J[f+8>>2])break g;g=e+28|0;sj(g,h,0);f=J[e+28>>2];if(!f){sc(g);break g}f=J[f+8>>2];sc(e+28|0);if(f)break d}i=Uk(e+20|0,2376349);J[695492]=0;g=e+28|0;ca(5208,g|0,a|0,i|0);f=J[695492];J[695492]=0;h:{if((f|0)!=1){J[695492]=0;aa(5083,h|0,g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break h;J[e+52>>2]=2381060;J[e+28>>2]=2381028;g=J[e+56>>2];if(g){f=J[g+4>>2]-1|0;J[g+4>>2]=f;if(!f)gc[J[J[g>>2]+4>>2]](g);J[e+56>>2]=0}J[e+ -44>>2]=2381060;g=J[e+48>>2];if(g){f=J[g+4>>2]-1|0;J[g+4>>2]=f;if(!f)gc[J[J[g>>2]+4>>2]](g);J[e+48>>2]=0}sc(e+36|0);sc(i);break d}a=Z()|0;sc(i);break c}a=Z()|0;ud(e+28|0);sc(i);break c}bG(a+8|0,b)}J[a+56>>2]=6;J[a+100>>2]=d;f=di();i:{j:{k:{d=J[c>>2];if(!d){h=Hs(8);J[h>>2]=0;J[h+4>>2]=0;J[695492]=0;g=$(5209,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[g>>2]=2406568;md(c,J[md(a+104|0,g)>>2]);d=J[c>>2]}Gs(f,a,d);Gs(f,a,a);c=J[b+8>>2];if(!c|!J[c+8>>2])break a;c=e+28|0;sj(c,b,0);b=J[e+28>>2];if(!b){sc(c); -break a}b=J[b+8>>2];c=e+28|0;sc(c);if(!b)break a;g=a+8|0;gc[J[J[f>>2]+16>>2]](c,f,a,g);J[695492]=0;d=a+44|0;aa(4993,d|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;f=J[e+28>>2];J[e+28>>2]=0;l:{if(!f)break l;J[695492]=0;c=J[f+4>>2]-1|0;J[f+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break j;if(c)break l;J[695492]=0;_(4987,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break j}if(J[d>>2]){b=J[a+16>>2];m:{if(!b|!J[b+8>>2])break m;c=e+28|0;sj(c,g,0);b=J[e+28>>2];if(!b){sc(c);break m}b=J[b+8>>2];sc(e+ -28|0);if(!b)break m;if(!Pj(g))break m;b=J[689881];if(!b)break m;gc[b|0](d,g,a+60|0,a+62|0)}if(K[a+62|0])H[a+61|0]=1;if(J[d>>2])break a}a=e+12|0;sj(a,g,0);J[695492]=0;ca(5048,e+20|0,2377529,a|0);a=J[695492];J[695492]=0;n:{o:{p:{if((a|0)!=1){a=J[e+20>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;b=ja(5018,e+28|0,a|0,2373496,207,2401476,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break p;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break o}a=Z()|0;break n}a=Z()|0}sc(e+ -20|0)}sc(e+12|0);break c}a=Z()|0;Tl(h);break c}ea(0)|0;yc();B()}a=Z()|0;vc(e+28|0)}ba(a|0)}B()}H[a+89|0]=1;b=a+96|0;if(J[b>>2]!=1)J[b>>2]=1;md(a+168|0,a);RU(a);bc=e- -64|0}function khb(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;m=bc-16|0;bc=m;h=Zd(a,2496,m+12|0);d=J[m+12>>2];if(!d){J[h>>2]=a;J[h+212>>2]=L[b+120>>1];g=K[b+124|0];a:{if(!g)break a;a=h+224|0;d=b+128|0;i=g&7;b:{if(!i){e=g;break b}e=g;while(1){J[a>>2]=I[d>>1];e=e-1|0;d=d+2|0;a=a+12|0;f=f+1|0;if((i|0)!= -(f|0))continue;break}}if(g>>>0<8)break a;while(1){J[a>>2]=I[d>>1];J[a+12>>2]=I[d+2>>1];J[a+24>>2]=I[d+4>>1];J[a+36>>2]=I[d+6>>1];J[a+48>>2]=I[d+8>>1];J[a+60>>2]=I[d+10>>1];J[a+72>>2]=I[d+12>>1];J[a+84>>2]=I[d+14>>1];d=d+16|0;a=a+96|0;e=e-8|0;if(e)continue;break}}e=1;J[h+208>>2]=g+1;J[h+8>>2]=L[b+122>>1];g=K[b+125|0];c:{if(!g)break c;a=h+20|0;d=b+154|0;j=g&7;d:{if(!j){f=g;break d}i=0;f=g;while(1){J[a>>2]=I[d>>1];f=f-1|0;d=d+2|0;a=a+12|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}if(g>>>0<8)break c;while(1){J[a>> -2]=I[d>>1];J[a+12>>2]=I[d+2>>1];J[a+24>>2]=I[d+4>>1];J[a+36>>2]=I[d+6>>1];J[a+48>>2]=I[d+8>>1];J[a+60>>2]=I[d+10>>1];J[a+72>>2]=I[d+12>>1];J[a+84>>2]=I[d+14>>1];d=d+16|0;a=a+96|0;f=f-8|0;if(f)continue;break}}J[h+4>>2]=g+1;a=0;d=h+412|0;f=b+12|0;g=b+40|0;S4(d,K[b+8|0],f,K[b+9|0],g,J[b+116>>2],0);i=b+60|0;j=b+88|0;S4(d,K[b+10|0],i,K[b+11|0],j,J[b+116>>2],1);d=K[b+8|0];e:{if(!d)break e;k=d-1|0;if(d>>>0>=3){l=(k>>>1|0)+1&-2;while(1){d=a<<1;n=L[f+(d|6)>>1]-L[f+(d|4)>>1]<<16>>16;d=L[f+(d|2)>>1]-L[d+f>> -1]<<16>>16;e=e<<16>>16;e=(d|0)>(e|0)?d:e;e=(e|0)<(n|0)?n:e;a=a+4|0;o=o+2|0;if((l|0)!=(o|0))continue;break}}if(k&2)break e;a=a<<1;a=L[f+(a|2)>>1]-L[a+f>>1]<<16>>16;e=(a|0)>(e|0)?a:e}a=K[b+9|0];f:{if(!a)break f;k=a-1|0;g:{if(a>>>0<3){f=0;break g}l=(k>>>1|0)+1&-2;f=0;a=0;while(1){d=f<<1;n=L[g+(d|6)>>1]-L[g+(d|4)>>1]<<16>>16;d=L[g+(d|2)>>1]-L[d+g>>1]<<16>>16;e=e<<16>>16;e=(d|0)>(e|0)?d:e;e=(e|0)<(n|0)?n:e;f=f+4|0;a=a+2|0;if((l|0)!=(a|0))continue;break}}if(k&2)break f;a=f<<1;a=L[g+(a|2)>>1]-L[a+g>>1]<< -16>>16;e=e<<16>>16;e=(a|0)>(e|0)?a:e}a=K[b+10|0];h:{if(!a)break h;g=a-1|0;i:{if(a>>>0<3){d=0;break i}k=(g>>>1|0)+1&-2;d=0;f=0;while(1){a=d<<1;l=L[i+(a|6)>>1]-L[i+(a|4)>>1]<<16>>16;a=L[i+(a|2)>>1]-L[a+i>>1]<<16>>16;e=e<<16>>16;a=(a|0)>(e|0)?a:e;e=(a|0)<(l|0)?l:a;d=d+4|0;f=f+2|0;if((k|0)!=(f|0))continue;break}}if(g&2)break h;a=d<<1;a=L[i+(a|2)>>1]-L[a+i>>1]<<16>>16;e=e<<16>>16;e=(a|0)>(e|0)?a:e}a=K[b+11|0];j:{if(!a)break j;g=a-1|0;k:{if(a>>>0<3){d=0;break k}i=(g>>>1|0)+1&-2;d=0;f=0;while(1){a=d<<1; -k=L[j+(a|6)>>1]-L[j+(a|4)>>1]<<16>>16;a=L[j+(a|2)>>1]-L[a+j>>1]<<16>>16;e=e<<16>>16;a=(a|0)>(e|0)?a:e;e=(a|0)<(k|0)?k:a;d=d+4|0;f=f+2|0;if((i|0)!=(f|0))continue;break}}if(g&2)break j;a=d<<1;a=L[j+(a|2)>>1]-L[a+j>>1]<<16>>16;e=e<<16>>16;e=(a|0)>(e|0)?a:e}a=td(1E3,e&65535);e=J[b+108>>2];J[h+2476>>2]=(a|0)>(e|0)?e:a;J[h+2480>>2]=J[b+112>>2];a=J[b+116>>2];J[h+404>>2]=0;J[h+408>>2]=0;J[h+200>>2]=0;J[h+204>>2]=0;J[h+2488>>2]=a;d=J[m+12>>2]}J[c>>2]=h;bc=m+16|0;return d|0}function iD(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;i=bc-16|0;bc=i;e=Zd(J[a+100>>2],(J[a+16>>2]<<1)+392|0,i+4|0);d=J[i+4>>2];if(!d){J[e>>2]=a;d=J[a+16>>2];J[e+388>>2]=c;f=e+392|0;J[e+8>>2]=f;J[e+4>>2]=d;J[e+368>>2]=0;J[e+372>>2]=0;c=0;I[e+364>>1]=0;J[e+376>>2]=0;J[e+380>>2]=0;J[e+384>>2]=0;n=J[a+92>>2];a:{if(!d)break a;if(d>>>0>=8){k=d&-8;while(1){g=c<<1;I[g+f>>1]=16383;I[(g|2)+f>>1]=16383;I[(g|4)+f>>1]=16383;I[(g|6)+f>>1]=16383;I[(g|8)+f>>1]=16383;I[(g|10)+f>>1]=16383;I[(g|12)+f>>1]=16383;I[(g|14)+f>>1]=16383;c=c+ -8|0;h=h+8|0;if((k|0)!=(h|0))continue;break}}g=d&7;if(!g)break a;d=0;while(1){I[(c<<1)+f>>1]=16383;c=c+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}b:{if(VC(a))break b;h=0;d=245200;while(1){k=J[(J[d+8>>2]<<2)+247040>>2];c=J[k+4>>2];c:{if(!c|J[d+16>>2]!=10)break c;d=J[c>>2];if(d)while(1){g=c;c=rh(a,d);J[i+12>>2]=c;d:{if(!c|c>>>0>=M[e+4>>2])break d;c=(c<<1)+f|0;if((L[c>>1]&16383)!=16383)break d;I[c>>1]=h}d=UC(a,d,i+12|0);while(1){c=J[i+12>>2];if(!(!c|M[g+4>>2]>>0)){e:{if(c>>>0>=M[e+4>>2])break e;c= -(c<<1)+f|0;if((L[c>>1]&16383)!=16383)break e;I[c>>1]=h}d=UC(a,d,i+12|0);continue}break}c=g+8|0;d=J[g+8>>2];if(d)continue;break}c=J[k+8>>2];d=J[c>>2];if(!d)break c;k=h&65535;while(1){g=c;c=rh(a,d);J[i+8>>2]=c;f:{if(!c|c>>>0>=M[e+4>>2])break f;c=(c<<1)+f|0;j=L[c>>1];if((k|0)!=(j&16383))break f;I[c>>1]=j|16384}d=UC(a,d,i+8|0);while(1){c=J[i+8>>2];if(!(!c|M[g+4>>2]>>0)){g:{if(c>>>0>=M[e+4>>2])break g;c=(c<<1)+f|0;j=L[c>>1];if((k|0)!=(j&16383))break g;I[c>>1]=j|16384}d=UC(a,d,i+8|0);continue}break}c= -g+8|0;d=J[g+8>>2];if(d)continue;break}}h=h+1|0;d=J[(h<<2)+247296>>2];if((h|0)!=87)continue;break}c=rh(a,48);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,49);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,50);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,51);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,52);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,53);if(!(!c|c>>>0>=M[e+4>>2])){c= -(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,54);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,55);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,56);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=rh(a,57);if(!c|c>>>0>=M[e+4>>2])break b;c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}g=J[J[e+388>>2]+12>>2];h:{if((g|0)==16383)break h;h=J[e+4>>2];if((h|0)<=0)break h;d=0;if((h|0)!=1){k=h&-2;c=0;while(1){j=d<<1;l=j+f|0;m=L[l>>1];if((m&16383)==16383)I[l>>1]= -g|m&49152;j=(j|2)+f|0;l=L[j>>1];if((l&16383)==16383)I[j>>1]=g|l&49152;d=d+2|0;c=c+2|0;if((k|0)!=(c|0))continue;break}}if(!(h&1))break h;c=(d<<1)+f|0;d=L[c>>1];if((d&16383)!=16383)break h;I[c>>1]=g|d&49152}wr(a,n);J[e+12>>2]=0;d=0}J[b>>2]=e;bc=i+16|0;return d}function FHa(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;f=bc-112|0;bc=f;J[f+104>>2]=0;a:{b:{c:{d:{e:{f:{g:{if(a){if(!d)break g;if(!b)break f;if((c|0)!=8){b=0;Hc(d,1,2353037,0);Hc(d,1,2353037,0);break a}ld(b,a+192|0,2);ld(b+2| -0,f+108|0,4);ld(b+6|0,f+100|0,1);ld(b+7|0,f+104|0,1);c=J[a+192>>2];i=J[a+104>>2];if(c>>>0>=P(i,J[a+108>>2])>>>0){J[f+96>>2]=c;Hc(d,1,2353063,f+96|0);b=0;break a}h=(c>>>0)/(i>>>0)|0;e=J[a+156>>2];b=J[f+100>>2];h:{g=J[a+44>>2];if((g|0)>=0&(c|0)!=(g|0))break h;g=J[(e+P(c,5644)|0)+5588>>2]+1|0;if((g|0)==(b|0))break h;J[f+88>>2]=g;J[f+84>>2]=b;J[f+80>>2]=c;Hc(d,1,2353087,f+80|0);b=0;break a}J[(e+P(c,5644)|0)+5588>>2]=b;b=J[f+108>>2];if(b-1>>>0<=12){if((b|0)!=12)break e;J[f+48>>2]=12;Hc(d,2,2353152,f+48| -0);b=J[f+108>>2]}if(!b){Hc(d,4,2353250,0);J[a+56>>2]=1}i:{j:{k:{l:{b=e+P(c,5644)|0;e=J[b+5592>>2];if(e){g=J[f+100>>2];if(g>>>0>>0)break l;J[f+36>>2]=e;J[f+32>>2]=g;Hc(d,1,2353361,f+32|0);J[a+56>>2]=1;b=0;break a}g=J[f+104>>2];if(g)break k;break i}g=J[f+104>>2];if(!g)break j}e=(K[a+68|0]>>>4&1)+g|0;J[f+104>>2]=e;g=b+5592|0;j=J[g>>2];b=J[f+100>>2];if(j-1>>>0>>0){J[f+4>>2]=j;J[f>>2]=b;Hc(d,1,2353461,f);J[a+56>>2]=1;b=0;break a}if(b>>>0>=e>>>0){J[f+20>>2]=e;J[f+16>>2]=b;Hc(d,1,2353560,f+16|0);J[a+ -56>>2]=1;b=0;break a}J[g>>2]=e}if((J[f+100>>2]+1|0)!=(e|0))break i;H[a+68|0]=K[a+68|0]|1}b=J[f+108>>2];J[a+8>>2]=16;J[a+24>>2]=J[a+56>>2]?0:b-12|0;b=J[a+44>>2];m:{if((b|0)==-1){e=4;b=c-P(h,i)|0;if(b>>>0>2]|b>>>0>=M[a+36>>2]|h>>>0>2])break m;e=(h>>>0>=M[a+40>>2])<<2;break m}if((b|0)<0)break d;e=((b|0)!=J[a+192>>2])<<2}H[a+68|0]=K[a+68|0]&251|e;b=1;c=J[a+188>>2];if(!c)break a;e=J[c+40>>2];if(!e)break c;h=J[a+192>>2];c=P(h,40)+e|0;J[c>>2]=h;g=J[f+100>>2];J[c+12>>2]=g;i=J[f+104>>2];if(i){J[c+ -4>>2]=i;e=J[f+104>>2];J[c+8>>2]=e;c=J[c+16>>2];if(!c){c=ye(e,24);J[(J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0)+16>>2]=c;if(c)break a;b=0;Hc(d,1,2353761,0);break a}c=Tg(c,P(e,24));e=J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0;if(!c){qc(J[e+16>>2]);b=0;J[(J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0)+16>>2]=0;Hc(d,1,2353761,0);break a}J[e+16>>2]=c;break a}c=J[c+16>>2];if(!c){J[(P(h,40)+e|0)+8>>2]=10;c=ye(10,24);e=J[J[a+188>>2]+40>>2];h=J[a+192>>2];g=e+P(h,40)|0;J[g+16>>2]=c;if(!c)break b;g=J[f+100>>2]}e=P(h, -40)+e|0;if(M[e+8>>2]>g>>>0)break a;j=e;e=g+1|0;J[j+8>>2]=e;c=Tg(c,P(e,24));e=J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0;if(!c){qc(J[e+16>>2]);b=0;a=J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0;J[a+8>>2]=0;J[a+16>>2]=0;Hc(d,1,2353761,0);break a}J[e+16>>2]=c;break a}fa(2346477,2346358,4329,2353020);B()}fa(2346590,2346358,4330,2353020);B()}fa(2353829,2346358,4296,2353849);B()}J[f+64>>2]=b;Hc(d,1,2353189,f- -64|0);b=0;break a}fa(2353668,2346358,4520,2353020);B()}fa(2353725,2346358,4528,2353020);B()}b=0;J[g+ -8>>2]=0;Hc(d,1,2353761,0)}bc=f+112|0;return b|0}function jN(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!K[a+289|0]|!(K[a+2538|0]|K[a+2543|0]))break a;if(!(K[J[a+536>>2]+31|0]|J[a+12>>2]==3))break a;b:switch(K[a+336|0]-12|0){case 0:case 2:break b;default:break a}b=1}h=K[a+498|0];c:{d:{e:{f:{g:{h:{i:{c=J[a+536>>2];if(K[a+287|0]|b|(K[c+64|0]|K[c+65|0]?c:0))break i;switch(h|0){case 0:case 8:break h;default:break i}}c=J[a+512>>2];if(!c)c=J[a+528>>2];if(!K[c+31|0]|!K[c+32|0])break f;c=Lh(a,c,b);if(c)break e; -c=6;if(K[a+497|0])break g;break f}j:{if(!K[a+288|0]){if((h|0)!=8)break f;b=J[a+2248>>2];break j}b=J[a+2248>>2];if(h)break j;c=m8(a,b,J[a+528>>2]);if(c)break e}if(!K[b+31|0]|!K[b+32|0])break f;c=Lh(a,b,0);if(c)break e;c=8;if(!K[a+497|0])break f}H[a+498|0]=c}c=0;if(K[a+497|0])break e;H[a+498|0]=0;dk(a,J[a+528>>2],0,0,0,0,0,0,0,1);if(K[a+2420|0]){c=RD(a);b=sN(a);if(c)break e;c=b;if(b)break e}if(K[a+2533|0]){c=RD(a);b=zc(40);J[b>>2]=0;f=zf(a+2568|0,1,b,4);g=cc;b=0;k:{while(1){l:{m:{n:{if(b){J[695492]= -0;ha(1084,a|0,6,b|0,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break n;break c}b=J[a+2516>>2];if(b){d=J[a+2520>>2];e=J[a+156>>2];J[695492]=0;da(e|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;d=-1;o:{if(!b)break o;e=J[695493];if(!e)break o;d=Jc(J[b>>2],f,g);if(!d)break d;cc=e}b=cc;if((d|0)==1)continue;J[a+2516>>2]=0}b=J[a+2452>>2];J[695492]=0;_(70,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;d=-1;if(!b)break l;e=J[695493];if(!e)break l;d=Jc(J[b>>2],f,g);if(d)break m;break d}d=-1;p:{if(!b)break p; -e=J[695493];if(!e)break p;d=Jc(J[b>>2],f,g);if(!d)break d;cc=e}b=cc;if((d|0)==1)continue;qc(f);b=6;break k}cc=e}b=cc;if((d|0)==1)continue;break}H[a+2533|0]=0;qc(f);b=0;break k}if(c)break e;c=b;if(b)break e}if(K[a+2539|0]){c=RD(a);b=zc(40);J[b>>2]=0;f=zf(a+2568|0,1,b,4);g=cc;b=0;q:{while(1){r:{s:{t:{if(b){J[695492]=0;ha(1084,a|0,6,b|0,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break t;break c}b=J[a+2524>>2];if(b){d=J[a+2528>>2];e=J[a+156>>2];J[695492]=0;da(e|0,b|0,d|0);b=J[695492];J[695492]=0;if((b| -0)==1)break c;d=-1;u:{if(!b)break u;e=J[695493];if(!e)break u;d=Jc(J[b>>2],f,g);if(!d)break d;cc=e}b=cc;if((d|0)==1)continue;J[a+2524>>2]=0}b=J[a+2464>>2];J[695492]=0;_(70,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;d=-1;if(!b)break r;e=J[695493];if(!e)break r;d=Jc(J[b>>2],f,g);if(d)break s;break d}d=-1;v:{if(!b)break v;e=J[695493];if(!e)break v;d=Jc(J[b>>2],f,g);if(!d)break d;cc=e}b=cc;if((d|0)==1)continue;qc(f);b=6;break q}cc=e}b=cc;if((d|0)==1)continue;break}H[a+2539|0]=0;qc(f);b=0;break q}if(c)break e; -c=b;if(b)break e}if(h){J[a+288>>2]=0;J[a+292>>2]=0;I[a+286>>1]=0;H[a+293|0]=0;H[a+294|0]=0;H[a+295|0]=0;H[a+296|0]=0;H[a+297|0]=0;H[a+298|0]=0;H[a+299|0]=0;H[a+300|0]=0}c=0;if(!J[a+968>>2]|J[a+12>>2]==2)break e;H[a+502|0]=1}return c}qc(f);ef(b,e);B()}a=Z()|0;qc(f);ba(a|0);B()}function Qpa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;J[a+24>>2]=0;f=a+16|0;a:{b:{c:{d:{g=J[a+12>>2];g=gc[J[J[g>>2]+8>>2]](g,b,c)|0;if(g){J[d>>2]=0;e:{c=J[f>>2];if(!c)break e;e=J[J[c>>2]+76>>2];J[695492]= -0;h=e;e=d+12|0;da(h|0,e|0,c|0);c=J[695492];J[695492]=0;f:{if((c|0)!=1){J[695492]=0;aa(4993,d|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break e;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)!=1){if(e)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e}break b}a=Z()|0;vc(d+12|0);break f}a=Z()|0}break a}J[695492]=0;ia(5534,d+4|0,b|0,g|0,d|0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+4>>2];g:{if(b){c=J[J[b>>2]+28>> -2];J[695492]=0;ca(c|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break g;a=Z()|0;break c}J[d+12>>2]=0}J[695492]=0;aa(4993,f|0,d+12|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break h;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break b}a=Z()|0;vc(d+12|0);break c}b=a;a=J[a+16>>2];J[b+20>>2]=J[(a?a+12|0:2728584)>>2];sc(d+4|0);a=J[d>>2];J[d>>2]=0;if(!a)break d; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;break d}a=Z()|0;break a}J[d>>2]=0;i:{b=J[f>>2];if(!b)break i;c=J[J[b>>2]+76>>2];J[695492]=0;e=c;c=d+12|0;da(e|0,c|0,b|0);b=J[695492];J[695492]=0;j:{k:{if((b|0)!=1){J[695492]=0;aa(4993,d|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;b=J[d+12>>2];J[d+12>>2]=0;if(!b)break i;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]= -0;if((e|0)!=1){if(c)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break i}break b}a=Z()|0;break j}a=Z()|0;vc(d+12|0)}break a}J[695492]=0;ia(5534,d+4|0,0,0,d|0);b=J[695492];J[695492]=0;l:{if((b|0)!=1){b=J[d+4>>2];m:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break m;a=Z()|0;break l}J[d+12>>2]=0}J[695492]=0;aa(4993,f|0,d+12|0)|0;b=J[695492];J[695492]=0;n:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break n;J[695492]=0;c=J[b+4>> -2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break n;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break n}break b}a=Z()|0;vc(d+12|0);break l}b=a;a=J[a+16>>2];J[b+20>>2]=J[(a?a+12|0:2728584)>>2];sc(d+4|0);a=J[d>>2];J[d>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break b}a=Z()|0;break a}sc(d+4|0);break a}bc=d+16|0;return g|0}sc(d+4|0);break a}ea(0)| -0;yc();B()}vc(d);ba(a|0);B()}function nI(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=bc-16|0;bc=g;J[g>>2]=13;a:{b:{c:switch(J[b>>2]){case 0:a=P(J[c>>2]^98,16777619);J[c>>2]=a;a=a^J[b+8>>2]!=0;break b;case 1:d=P(J[c>>2]^105,16777619);J[c>>2]=d;a=J[b+8>>2];a=P(P(P(d^a&255,16777619)^a>>>8&255,16777619)^a>>>16&255,16777619)^a>>>24;break b;case 2:d=P(J[c>>2]^114,16777619);J[c>>2]=d;a=J[b+8>>2];b=J[b+12>>2];a=P(P(P(P(P(P(P(d^a&255,16777619)^a>>>8&255,16777619)^a>>>16&255,16777619)^a>>>24,16777619)^ -b&255,16777619)^b>>>8&255,16777619)^b>>>16&255,16777619)^b>>>24;break b;case 3:e=P(J[c>>2]^115,16777619);J[c>>2]=e;a=J[b+8>>2];b=J[a>>2];if((b|0)<=0)break a;a=J[a+4>>2];if(b>>>0>=4){f=b&-4;while(1){e=P(K[a+d|0]^e,16777619);J[c>>2]=e;e=P(e^K[a+(d|1)|0],16777619);J[c>>2]=e;e=P(e^K[a+(d|2)|0],16777619);J[c>>2]=e;e=P(e^K[a+(d|3)|0],16777619);J[c>>2]=e;d=d+4|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}b=b&3;if(!b)break a;while(1){e=P(K[a+d|0]^e,16777619);J[c>>2]=e;d=d+1|0;i=i+1|0;if((b|0)!=(i|0))continue; -break}break a;case 4:e=P(J[c>>2]^110,16777619);J[c>>2]=e;a=J[b+8>>2];b=Qc(a);if((b|0)<=0)break a;if(b>>>0>=4){f=b&-4;while(1){e=P(K[a+d|0]^e,16777619);J[c>>2]=e;e=P(e^K[a+(d|1)|0],16777619);J[c>>2]=e;e=P(e^K[a+(d|2)|0],16777619);J[c>>2]=e;e=P(e^K[a+(d|3)|0],16777619);J[c>>2]=e;d=d+4|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}b=b&3;if(!b)break a;while(1){e=P(K[a+d|0]^e,16777619);J[c>>2]=e;d=d+1|0;i=i+1|0;if((b|0)!=(i|0))continue;break}break a;case 5:a=J[c>>2]^122;break b;case 6:d=P(J[c>>2]^97,16777619); -J[c>>2]=d;e=J[J[b+8>>2]+12>>2];J[c>>2]=P(P(P(P(d^e&255,16777619)^e>>>8&255,16777619)^e>>>16&255,16777619)^e>>>24,16777619);if((e|0)<=0)break a;d=0;while(1){jg(J[b+8>>2],d,g);nI(a,g,c);uc(g);d=d+1|0;if((e|0)!=(d|0))continue;break}break a;case 7:d=P(J[c>>2]^100,16777619);J[c>>2]=d;f=J[J[b+8>>2]+16>>2];J[c>>2]=P(P(P(P(d^f&255,16777619)^f>>>8&255,16777619)^f>>>16&255,16777619)^f>>>24,16777619);if((f|0)<=0)break a;while(1){j=J[J[J[b+8>>2]+4>>2]+(k<<5)>>2];d=Qc(j);d:{if((d|0)<=0)break d;l=d&3;e=K[c|0]| -K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);i=0;e:{if(d>>>0<4){d=0;break e}m=d&-4;d=0;h=0;while(1){e=P(K[d+j|0]^e,16777619);J[c>>2]=e;e=P(e^K[(d|1)+j|0],16777619);J[c>>2]=e;e=P(e^K[(d|2)+j|0],16777619);J[c>>2]=e;e=P(e^K[(d|3)+j|0],16777619);J[c>>2]=e;d=d+4|0;h=h+4|0;if((m|0)!=(h|0))continue;break}}if(!l)break d;while(1){e=P(K[d+j|0]^e,16777619);J[c>>2]=e;d=d+1|0;i=i+1|0;if((l|0)!=(i|0))continue;break}}Wm(J[b+8>>2],k,g);nI(a,g,c);uc(g);k=k+1|0;if((f|0)!=(k|0))continue;break}break a;case 9:d=P(J[c>>2]^ -102,16777619);J[c>>2]=d;a=J[b+8>>2];d=P(P(P(P(d^a&255,16777619)^a>>>8&255,16777619)^a>>>16&255,16777619)^a>>>24,16777619);J[c>>2]=d;a=J[b+12>>2];a=P(P(P(d^a&255,16777619)^a>>>8&255,16777619)^a>>>16&255,16777619)^a>>>24;break b;case 8:break a;default:break c}a=J[c>>2]^117}J[c>>2]=P(a,16777619)}bc=g+16|0}function H1a(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;e=bc-48|0;bc=e;h=J[a+464>>2];a:{b:{if(J[h+40>>2]|!J[a+280>>2])break b;d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+(J[h+12>> -2]/8|0);J[h+12>>2]=0;f=0;if(!(gc[J[d+8>>2]](a)|0))break a;if(J[a+336>>2]>0){d=0;while(1){J[((d<<2)+h|0)+20>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}J[h+16>>2]=0;J[h+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[h+36>>2]=0}if(!J[h+36>>2]){J[e+44>>2]=a;c=J[a+24>>2];i=J[c>>2];J[e+28>>2]=i;f=J[c+4>>2];J[e+32>>2]=f;d=J[h+12>>2];g=J[h+8>>2];J[e+24>>2]=J[h+32>>2];j=J[h+28>>2];J[e+16>>2]=J[h+24>>2];J[e+20>>2]=j;j=J[h+20>>2];J[e+8>>2]=J[h+16>>2];J[e+12>>2]=j;if(J[a+364>>2]>0){while(1){i=n<<2;m=J[i+ -b>>2];l=h+i|0;c=J[l+96>>2];c:{d:{e:{if((d|0)>7)break e;j=e+28|0;f=0;if(!Fg(j,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break e;c=wi(j,g,d,c,1);break d}f=g>>d-8&255;j=J[(c+(f<<2)|0)+144>>2];if(j){c=K[(c+f|0)+1168|0];d=d-j|0;break c}c=wi(e+28|0,g,d,c,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}j=J[l+136>>2];l=J[l+176>>2];f:{g:{if(l){if(c){if((c|0)>(d|0)){f=0;if(!Fg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;c=c<<2;f=J[c+55904>>2];k=g>>d&f;c=k-((k|0)<=J[c+55900>>2]?f:0)| -0}else c=0;f=(J[(a+i|0)+368>>2]<<2)+e|0;c=c+J[f+12>>2]|0;J[f+12>>2]=c;I[m>>1]=c;i=1;if((l|0)<2)break g;while(1){h:{i:{j:{if((d|0)>7)break j;c=e+28|0;f=0;if(!Fg(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break j;c=wi(c,g,d,j,1);break i}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break h}c=wi(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}k=c>>>4|0;c=c&15;k:{if(c){if((c|0)>(d|0)){f=0;if(!Fg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}f=i+ -k|0;d=d-c|0;c=c<<2;i=J[c+55904>>2];k=g>>d&i;I[(J[(f<<2)+53264>>2]<<1)+m>>1]=k-((k|0)<=J[c+55900>>2]?i:0);break k}if((k|0)!=15)break f;f=i+15|0}i=f+1|0;if((l|0)>(i|0))continue;break}if((f|0)<=62)break g;break f}i=1;if(!c)break g;if((c|0)>(d|0)){f=0;if(!Fg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0}while(1){l:{m:{n:{if((d|0)>7)break n;c=e+28|0;f=0;if(!Fg(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break n;c=wi(c,g,d,j,1);break m}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+ -j|0)+1168|0];d=d-f|0;break l}c=wi(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}m=c>>>4|0;c=c&15;o:{if(c){if((c|0)>(d|0)){f=0;if(!Fg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;break o}if((m|0)!=15)break f}i=(i+m|0)+1|0;if((i|0)<64)continue;break}}n=n+1|0;if((n|0)>2])continue;break}f=J[e+32>>2];i=J[e+28>>2];c=J[a+24>>2]}J[c+4>>2]=f;J[c>>2]=i;J[h+12>>2]=d;J[h+8>>2]=g;J[h+32>>2]=J[e+24>>2];a=J[e+20>>2];J[h+24>>2]=J[e+16>>2];J[h+28>>2]=a;a=J[e+12>>2];J[h+16>>2]= -J[e+8>>2];J[h+20>>2]=a}J[h+40>>2]=J[h+40>>2]-1;f=1}bc=e+48|0;return f|0}function sDa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=+d;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;e=bc-112|0;bc=e;a=rc(64);J[e>>2]=a;J[e+4>>2]=13;J[e+8>>2]=-2147483632;J[a+48>>2]=J[594811];f=J[594810];J[a+40>>2]=J[594809];J[a+44>>2]=f;f=J[594808];J[a+32>>2]=J[594807];J[a+36>>2]=f;f=J[594806];J[a+24>>2]=J[594805];J[a+28>>2]=f;f=J[594804];J[a+16>>2]=J[594803];J[a+20>>2]=f;f=J[594802];J[a+8>>2]=J[594801];J[a+12>>2]=f;f=J[594800];J[a>>2]=J[594799]; -J[a+4>>2]=f;J[a+52>>2]=0;a=J[J[b>>2]+236>>2];J[695492]=0;aa(a|0,b|0,e|0)|0;a=J[695492];J[695492]=0;a:{b:{if((a|0)!=1){if(H[e+11|0]<0)qc(J[e>>2]);a=rc(32);J[e>>2]=a;J[e+4>>2]=4;J[e+8>>2]=-2147483640;f=J[594922];J[a+8>>2]=J[594921];J[a+12>>2]=f;f=J[594920];J[a>>2]=J[594919];J[a+4>>2]=f;J[a+16>>2]=0;J[695492]=0;ca(5021,e+68|0,c|0,e|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[e+11|0]<0)qc(J[e>>2]);f=J[e+72>>2];c=f;a=J[e+68>>2];if((f|0)!=(a|0)){c=a;while(1){J[695492]=0;a=$(4,32)|0;f=J[695492];J[695492]= -0;c:{d:{e:{f:{if((f|0)!=1){J[e>>2]=a;J[e+4>>2]=4;J[e+8>>2]=-2147483640;f=J[595045];J[a+8>>2]=J[595044];J[a+12>>2]=f;f=J[595043];J[a>>2]=J[595042];J[a+4>>2]=f;J[a+16>>2]=0;J[695492]=0;ca(5021,e+56|0,(g<<2)+c|0,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;if(H[e+11|0]<0)qc(J[e>>2]);f=0;a=J[e+60>>2];c=a;h=J[e+56>>2];if((h|0)!=(a|0))break e;break c}b=Z()|0;break d}b=Z()|0;if(H[e+11|0]>=0)break d;qc(J[e>>2]);break d}g:{h:{i:{j:{while(1){k:{J[695492]=0;a=(f<<2)+h|0;da(5022,e+44|0,a|0);c=J[695492];J[695492]= -0;if((c|0)==1)break k;J[695492]=0;J[e>>2]=0;H[e+11|0]=0;ia(5023,e+32|0,a|0,2380516,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;if(H[e+11|0]<0)qc(J[e>>2]);J[695492]=0;Eb(5024,e|0,e+32|0,e|0,+d);a=J[695492];J[695492]=0;if((a|0)==1)break i;i=O[e+24>>3];j=O[e+8>>3]-i;O[e+104>>3]=j;a=J[J[b>>2]+252>>2];J[695492]=0;c=a;a=e+104|0;aa(c|0,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;k=O[e>>3];O[e+104>>3]=Q(k);O[e+96>>3]=Q(i);O[e+88>>3]=Q(O[e+16>>3]-k);O[e+80>>3]=Q(j);c=J[J[b>>2]+292>>2];J[695492]= -0;ja(c|0,b|0,e+44|0,a|0,e+96|0,e+88|0,e+80|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i;if(H[e+43|0]<0)qc(J[e+32>>2]);if(H[e+55|0]<0)qc(J[e+44>>2]);c=J[e+56>>2];h=c;f=f+1|0;a=J[e+60>>2];if(f>>>0>2>>>0)continue;break c}break}b=Z()|0;break g}b=Z()|0;if(H[e+11|0]>=0)break h;qc(J[e>>2]);break h}b=Z()|0;if(H[e+43|0]>=0)break h;qc(J[e+32>>2])}if(H[e+55|0]>=0)break g;qc(J[e+44>>2])}$J(e+56|0)}$J(e+68|0);break b}if(c){if((a|0)!=(c|0)){while(1){a=mh(a-4|0);if((c|0)!=(a|0))continue;break}a=J[e+56>> -2]}J[e+60>>2]=c;qc(a)}g=g+1|0;f=J[e+72>>2];c=J[e+68>>2];if(g>>>0>2>>>0)continue;break}}if(c){if((c|0)!=(f|0)){while(1){f=mh(f-4|0);if((f|0)!=(c|0))continue;break}f=J[e+68>>2]}J[e+72>>2]=c;qc(f)}bc=e+112|0;return}b=Z()|0;if(H[e+11|0]>=0)break b;break a}b=Z()|0;if(H[e+11|0]>=0)break b;break a}ba(b|0);B()}qc(J[e>>2]);ba(b|0);B()}function pM(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;c=J[a+36>>2];n=J[a+40>>2];k=J[a+28>>2];o=J[a+24>>2];q=k+P(o,40)|0;a:{if(b){r= -8;if((o|0)<=0)break a;a=k;while(1){J[a+24>>2]=J[a+20>>2];J[a+28>>2]=J[a+8>>2];a=a+40|0;if(q>>>0>a>>>0)continue;break}break a}r=4;if((o|0)<=0)break a;a=k;while(1){J[a+24>>2]=J[a+16>>2];J[a+28>>2]=J[a+4>>2];a=a+40|0;if(q>>>0>a>>>0)continue;break}}if((c|0)>0){t=(c<<2)+n|0;while(1){i=J[n>>2];a=i;j=J[a+36>>2];b:{if(a>>>0>j>>>0)break b;c:{while(1){d:{if(L[a>>1]&r){c=a;e:while(1){d=c;h=d>>>0>=j>>>0;if(!h){c=d+40|0;if(L[d+40>>1]&r)continue}g=1;f:{g:{e=d+40|0;c=e;f=j>>>0>>0;if(!f)while(1){if(L[c>>1]&r)break g; -g=g+1|0;c=d+P(g,40)|0;if(j>>>0>=c>>>0)continue;break}if((a|0)!=(d|0))break f;c=J[a+24>>2];e=J[a+28>>2];if((c|0)==(e|0))break b;e=c-e|0;if(a>>>0>i>>>0)break d;break c}if(g>>>0<2)continue;g=d+P(g,40)|0;l=g-40|0;h=J[d+28>>2]>J[g+28>>2];g=h?d:c;f=J[g+24>>2];g=J[g+28>>2];p=f-g|0;d=h?c:d;h=J[d+24>>2];d=J[d+28>>2];s=h-d|0;if(!((f|0)!=(h|0)&(d|0)!=(g|0)))while(1){f=J[e+28>>2];J[e+24>>2]=(d|0)<(f|0)?(f|0)<(g|0)?h:f+p|0:f+s|0;e=e+40|0;if(l>>>0>=e>>>0)continue;continue e}u=td(f-h|0,g-d|0);while(1){f=J[e+28>> -2];h:{if((f|0)<=(d|0)){m=f+s|0;break h}m=f+p|0;if((f|0)>=(g|0))break h;m=Pc(f-d|0,u)+h|0}J[e+24>>2]=m;e=e+40|0;if(l>>>0>=e>>>0)continue;break}continue}break}i:{if(f|h)break i;c=J[d+28>>2]>J[a+28>>2];g=c?d:a;f=J[g+24>>2];g=J[g+28>>2];l=f-g|0;c=c?a:d;h=J[c+24>>2];c=J[c+28>>2];p=h-c|0;if(!((f|0)!=(h|0)&(c|0)!=(g|0)))while(1){f=J[e+28>>2];J[e+24>>2]=(c|0)<(f|0)?(f|0)<(g|0)?h:f+l|0:f+p|0;e=e+40|0;if(j>>>0>=e>>>0)continue;break i}s=td(f-h|0,g-c|0);while(1){f=J[e+28>>2];j:{if((f|0)<=(c|0)){m=f+p|0;break j}m= -f+l|0;if((f|0)>=(g|0))break j;m=Pc(f-c|0,s)+h|0}J[e+24>>2]=m;e=e+40|0;if(j>>>0>=e>>>0)continue;break}}if(a>>>0<=k>>>0)break b;g=a-40|0;if(g>>>0>>0)break b;e=J[d+28>>2]>J[a+28>>2];c=e?d:a;j=J[c+24>>2];c=J[c+28>>2];h=j-c|0;a=e?a:d;e=J[a+24>>2];a=J[a+28>>2];f=e-a|0;if(!((e|0)!=(j|0)&(a|0)!=(c|0)))while(1){d=J[i+28>>2];J[i+24>>2]=(a|0)<(d|0)?(c|0)>(d|0)?e:d+h|0:d+f|0;i=i+40|0;if(g>>>0>=i>>>0)continue;break b}j=td(j-e|0,c-a|0);while(1){d=J[i+28>>2];k:{if((d|0)<=(a|0)){l=d+f|0;break k}l=d+h|0;if((c| -0)<=(d|0))break k;l=Pc(d-a|0,j)+e|0}J[i+24>>2]=l;i=i+40|0;if(g>>>0>=i>>>0)continue;break}break b}a=a+40|0;if(j>>>0>=a>>>0)continue;break b}break}while(1){J[i+24>>2]=e+J[i+28>>2];i=i+40|0;if(i>>>0>>0)continue;break}}c=a+40|0;if(j>>>0>>0)break b;while(1){J[a- -64>>2]=e+J[a+68>>2];a=c;c=a+40|0;if(j>>>0>=c>>>0)continue;break}}n=n+4|0;if(t>>>0>n>>>0)continue;break}}l:{if(b){if((o|0)<=0)break l;while(1){J[k+20>>2]=J[k+24>>2];k=k+40|0;if(q>>>0>k>>>0)continue;break}break l}if((o|0)<=0)break l;while(1){J[k+ -16>>2]=J[k+24>>2];k=k+40|0;if(q>>>0>k>>>0)continue;break}}}function C0a(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,K=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;j=bc-128|0;bc=j;B=J[a+328>>2]-1|0;x=J[a+448>>2];a:{b:{while(1){k=J[a+144>>2];h=J[a+152>>2];if((k|0)>(h|0))break b;d=J[a+456>>2];if(J[d+20>>2]|(h|0)==(k|0)&M[a+148>>2]>J[a+156>>2]+!J[a+408>>2]>>>0)break b;if(gc[J[d>>2]](a)|0)continue; -break}a=0;break a}if(J[a+36>>2]>0){m=J[a+216>>2];while(1){c:{if(!J[m+52>>2])break c;p=J[a+156>>2];d:{if(B>>>0>p>>>0){d=J[m+12>>2];l=d<<1;k=d;break d}d=J[m+12>>2];h=M[m+32>>2]%(d>>>0)|0;l=h?h:d;k=l}y=k;e:{if(p){C=(gc[J[J[a+4>>2]+32>>2]](a,J[((n<<2)+x|0)+72>>2],P(p-1|0,d),d+l|0,0)|0)+(J[m+12>>2]<<2)|0;break e}C=gc[J[J[a+4>>2]+32>>2]](a,J[((n<<2)+x|0)+72>>2],0,l,0)|0}if((y|0)<=0)break c;h=n<<2;W=J[(h+J[a+468>>2]|0)+4>>2];X=y-1|0;q=J[x+112>>2]+P(n,24)|0;f=J[m+80>>2];d=L[f+4>>1];D=d<<8;E=d<<7;d=L[f+18>> -1];F=d<<8;G=d<<7;k=L[f>>1];Y=P(k,5);d=L[f+32>>1];H=d<<8;K=d<<7;N=P(k,9);d=L[f+16>>1];O=d<<8;Q=d<<7;d=L[f+2>>1];R=d<<8;S=d<<7;T=P(k,36);z=J[b+h>>2];o=0;while(1){h=(o<<2)+C|0;l=J[h>>2];s=o|p?J[h-4>>2]:l;U=J[m+28>>2]-1|0;t=0;f:{if(p>>>0>=B>>>0){d=l;if((o|0)==(X|0))break f}d=J[h+4>>2]}u=d;v=I[u>>1];d=v;r=I[l>>1];k=r;w=I[s>>1];h=w;A=0;while(1){g=h;h=w;V=k;k=r;f=d;d=v;tc(j,l,128);if(t>>>0>>0){v=I[u+128>>1];r=I[l+128>>1];w=I[s+128>>1]}i=J[q+4>>2];if(!(L[j+2>>1]|!i)){c=P(V-r|0,T);g:{if((c|0)>=0){e=(c+ -S|0)/(R|0)|0;if((i|0)<=0)break g;c=1<(e|0)?e:c-1|0;break g}e=(S-c|0)/(R|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+2>>1]=e}i=J[q+8>>2];if(!(L[j+16>>1]|!i)){c=P(h-d|0,T);h:{if((c|0)>=0){e=(c+Q|0)/(O|0)|0;if((i|0)<=0)break h;c=1<(e|0)?e:c-1|0;break h}e=(Q-c|0)/(O|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+16>>1]=e}i=J[q+12>>2];if(!(L[j+32>>1]|!i)){c=P((h-(k<<1)|0)+d|0,N);i:{if((c|0)>=0){e=(c+K|0)/(H|0)|0;if((i|0)<=0)break i;c=1<(e|0)?e:c-1|0;break i}e= -(K-c|0)/(H|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+32>>1]=e}c=J[q+16>>2];if(!(L[j+18>>1]|!c)){f=P((g-(f+w|0)|0)+v|0,Y);j:{if((f|0)>=0){g=(f+G|0)/(F|0)|0;if((c|0)<=0)break j;f=1<(g|0)?g:f-1|0;break j}g=(G-f|0)/(F|0)|0;f=1<0?(f|0)>(g|0)?g:f-1|0:g)|0}I[j+18>>1]=g}c=J[q+20>>2];if(!(L[j+4>>1]|!c)){f=P((V-(k<<1)|0)+r|0,N);k:{if((f|0)>=0){g=(f+E|0)/(D|0)|0;if((c|0)<=0)break k;f=1<(g|0)?g:f-1|0;break k}g=(E-f|0)/(D|0)|0;f=1<0?(f|0)>(g|0)?g:f- -1|0:g)|0}I[j+4>>1]=g}gc[W|0](a,m,j,z,A);u=u+128|0;s=s+128|0;l=l+128|0;A=J[m+36>>2]+A|0;t=t+1|0;if(U>>>0>=t>>>0)continue;break}z=(J[m+40>>2]<<2)+z|0;o=o+1|0;if((y|0)!=(o|0))continue;break}}m=m+88|0;n=n+1|0;if((n|0)>2])continue;break}}b=J[a+156>>2]+1|0;J[a+156>>2]=b;a=b>>>0>2]?3:4}bc=j+128|0;return a|0}function k4(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,w=0,x=0,y=0;g=bc-16|0;bc=g;j=J[b+28>>2];i=J[a+736>>2];J[g>>2]=0;a:{b:{if(i)c:{if(!J[a+ -704>>2])break c;if(gc[J[a+516>>2]](a,1668702578,b,g+8|0)|0)break c;e=Ue(b,J[g+8>>2]);J[g+12>>2]=e;if(e)break c;e=J[b>>2];f=J[b+32>>2];d:{if((qh(b)|0)!=65536){J[g+12>>2]=0;break d}n=Sc(j,4,0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;o=Sc(j,4,0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;p=Sc(j,4,0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;d=mf(b);r=d&4095;c=mf(b);h=J[g+8>>2];if((r<<2)+c>>>0>h>>>0){J[g+12>>2]=8;break d}k=c+(f-e|0)|0;if(d<<16>>16<0){d=J[b+32>>2];e=J[b>>2];f=J[b+36>>2];J[b+32>>2]=f-e>>>0>k>>> -0?e+k|0:f;q=GC(b,h,g);c=J[b+32>>2];f=J[b>>2];e=d-e|0;d=J[b+36>>2];J[b+32>>2]=e>>>0>>0?f+e|0:d;k=c-f|0}m=Sc(j,4,0,J[a+700>>2],0,g+12|0);e:{if(J[g+12>>2])break e;if(r){e=0;while(1){v=mf(b);f=mf(b);d=f<<16>>16;f:{if((d|0)<0){c=0;if(!J[i>>2])break f;while(1){x=(c<<2)+n|0,y=mf(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}break f}c=f&4095;if(c>>>0>=M[i+60>>2]){J[g+12>>2]=8;break e}h=J[i+64>>2];if(!h){J[g+12>>2]=8;break e}l=c;c=J[i>>2];tc(n,h+(P(l,c)<<2)|0,c<<2)}g:{if(!(f&16384))break g; -c=0;if(!J[i>>2])break g;while(1){x=(c<<2)+o|0,y=mf(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;h=J[i>>2];if(c>>>0>>0)continue;break}c=0;if(!h)break g;while(1){x=(c<<2)+p|0,y=mf(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}}s=j4(i,d&65535,n,o,p);if(s){h=J[b+32>>2];c=J[b>>2];d=J[b+36>>2];J[b+32>>2]=d-c>>>0>k>>>0?c+k|0:d;t=h-c|0;h:{if(f&8192){f=GC(b,J[g+8>>2],g+4|0);d=J[g+4>>2];e=f;break h}d=J[g>>2];J[g+4>>2]=d;f=e;e=q}h=tL(b,J[g+8>>2],d?d:J[a+700>>2]);i:{j:{k:{if(!e|!h)break k;if((f|0)!=-1){c= -0;if(!d)break j;while(1){l=L[e+(c<<1)>>1];if(l>>>0>2]){l=(l<<2)+m|0;w=J[l>>2];x=l,y=Pc(J[h+(c<<2)>>2],s)+w|0,J[x>>2]=y}c=c+1|0;if((d|0)!=(c|0))continue;break}break k}e=-1;if(J[a+700>>2]!=(d|0))break i;c=0;if(!d)break i;while(1){e=c<<2;d=e+m|0;l=J[d>>2];x=d,y=Pc(J[e+h>>2],s)+l|0,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}}e=-1;if((f|0)==-1)break i}if(f)gc[J[j+8>>2]](j,f);e=0}if(h)gc[J[j+8>>2]](j,h);f=J[b>>2];d=J[b+36>>2];J[b+32>>2]=d-f>>>0>t>>>0?f+t|0:d}k=k+v|0;u=u+1|0;if((u|0)!= -(r|0))continue;break}}f=J[a+700>>2];if(!f)break e;d=J[a+704>>2];e=0;if((f|0)!=1){k=f&-2;c=0;while(1){i=e<<2;h=i+d|0;J[h>>2]=J[h>>2]+(J[i+m>>2]+512>>10);i=i|4;h=i+d|0;J[h>>2]=J[h>>2]+(J[i+m>>2]+512>>10);e=e+2|0;c=c+2|0;if((k|0)!=(c|0))continue;break}}if(!(f&1))break e;e=e<<2;f=e+d|0;J[f>>2]=J[f>>2]+(J[e+m>>2]+512>>10)}ne(b);if((q|0)==-1)break a;break b}ne(b);break b}J[g+12>>2]=0}if(q)gc[J[j+8>>2]](j,q)}if(n)gc[J[j+8>>2]](j,n);if(o)gc[J[j+8>>2]](j,o);if(p)gc[J[j+8>>2]](j,p);if(m)gc[J[j+8>>2]](j,m); -L5(a+108|0,1749);bc=g+16|0;return J[g+12>>2]}function Qj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;J[a+8>>2]=0;J[a>>2]=2381028;c=J[682146];J[a+20>>2]=0;J[a+12>>2]=c;J[a+16>>2]=2426920;J[695492]=0;c=$(4,52)|0;e=J[695492];J[695492]=0;g=a+8|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((e|0)!=1){J[695492]=0;e=Qn(c,8,6075,6076,6077,6078,6079);f=J[695492];J[695492]=0;if((f|0)==1)break n;J[e+4>>2]=J[e+4>>2]+1;c=J[a+20>>2];o:{if(!c)break o;f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(f)break o;gc[J[J[c>> -2]+4>>2]](c)}J[a+20>>2]=e;J[a+24>>2]=2426920;J[a+28>>2]=0;J[695492]=0;c=$(4,52)|0;e=J[695492];J[695492]=0;if((e|0)==1)break m;J[695492]=0;e=Qn(c,8,6075,6076,6077,6078,6079);f=J[695492];J[695492]=0;if((f|0)==1)break l;J[e+4>>2]=J[e+4>>2]+1;c=J[a+28>>2];p:{if(!c)break p;f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(f)break p;gc[J[J[c>>2]+4>>2]](c)}H[a+32|0]=0;J[a+28>>2]=e;if(!K[b+32|0]){J[695492]=0;da(5112,b|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break f;if(!K[b+32|0])break i}J[695492]=0;ca(5231,d+4|0,b|0,0);b= -J[695492];J[695492]=0;if((b|0)==1)break g;b=J[d+4>>2];if(!b)break k;c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break j;b=Z()|0;break e}b=Z()|0;J[a+16>>2]=2381060;break b}b=Z()|0;qc(c);J[a+16>>2]=2381060;d=J[a+20>>2];if(!d)break b;c=J[d+4>>2]-1|0;J[d+4>>2]=c;if(!c)gc[J[J[d>>2]+4>>2]](d);J[a+20>>2]=0;break b}b=Z()|0;J[a+24>>2]=2381060;break c}b=Z()|0;qc(c);J[a+24>>2]=2381060;d=J[a+28>>2];if(!d)break c;c=J[d+4>>2]-1|0;J[d+4>>2]=c;if(!c)gc[J[J[d>>2]+4>>2]](d); -J[a+28>>2]=0;break c}J[d+12>>2]=0}J[695492]=0;aa(4993,g|0,d+12|0)|0;b=J[695492];J[695492]=0;q:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break q;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break q;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break q}break a}b=Z()|0;vc(d+12|0);break e}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2728584)>>2];sc(d+4|0);J[695492]=0;da(5112,a|0,0);b=J[695492];J[695492]=0;if((b|0)!=1)break h;break f}b=J[b+8>>2];r:{if(b){c= -J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+4|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break f;break r}J[d+4>>2]=0}J[695492]=0;aa(4993,g|0,d+4|0)|0;b=J[695492];J[695492]=0;s:{if((b|0)!=1){b=J[d+4>>2];J[d+4>>2]=0;if(!b)break s;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g=J[695492];J[695492]=0;if((g|0)!=1){if(c)break s;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break s}break a}b=Z()|0;vc(d+4|0);break d}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2728584)>>2]}bc=d+16|0;return a|0}b=Z()|0;break d}b= -Z()|0;break d}sc(d+4|0)}J[a+24>>2]=2381060;d=J[a+28>>2];if(!d)break c;c=J[d+4>>2]-1|0;J[d+4>>2]=c;if(!c)gc[J[J[d>>2]+4>>2]](d);J[a+28>>2]=0}J[a+16>>2]=2381060;d=J[a+20>>2];if(!d)break b;c=J[d+4>>2]-1|0;J[d+4>>2]=c;if(!c)gc[J[J[d>>2]+4>>2]](d);J[a+20>>2]=0}sc(g);ba(b|0);B()}ea(0)|0;yc();B()}function l$a(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;k=J[a+4>>2];s=k+37|0;c=J[k+44>>2];g=c?c:64;m=J[a+20>>2];f=J[a+16>>2];n=J[a+12>>2];d=J[a+8>>2];j=H[k+36|0];a:{b:{r= -J[k+48>>2];h=r&3;c:{if(!h){p=m;break c}if((j|0)<=0){p=m;break c}p=m;if(f>>>0>>0)break b}c=0;break a}c=1}d:{e:{f:{g:{h:while(1){i:{j:{if(!c){c=p-f>>1;l=n-d|0;h=(c|0)<(l|0)?c:l;k:{if((h|0)<=0)break k;while(1){c=K[d|0];l:{if(c-80<<24>>24>=0){c=(c+g|0)-144|0;if((c|0)>12287)break k;I[f>>1]=c;g=c&-128|64;break l}if(c>>>0>32)break k;I[f>>1]=c;g=(c|0)!=32?64:g}d=d+1|0;f=f+2|0;c=(h|0)>1;h=h-1|0;if(c)continue;break}h=0}c=0;break j}l=r>>2;while(1){if(d>>>0>=n>>>0){c=d;break g}c=K[d|0];H[(j<<24>>24)+s|0]= -c;if(c>>>0<=32)c=H[c+753808|0];else c=c-13|0;m:{n:{o:{h=h-1|0;switch(h|0){case 0:break m;case 1:break o;default:break n}}c=P(c,243);break m}c=P(c,59049)}j=j+1|0;d=d+1|0;if((c|0)<0){c=d;break i}l=c+l|0;if(h)continue;break}h=0;j=0;c=d;i=g+l|0;if(i>>>0>1114111)break i;c=1}while(1){p:{q:{r:{s:{if(!c){t:{if(f>>>0>=m>>>0){c=d;break t}c=d;while(1){if(c>>>0>=n>>>0)break g;d=c+1|0;e=K[c|0];if(e-80<<24>>24>=0){c=d;break q}u:{if(e>>>0<33){c=d;break u}v:{if(!((e-37&255)>>>0>213|d>>>0>=n>>>0)){o=d;d=c;break v}if((e| -0)==255){while(1){if(d>>>0>=n>>>0){g=64;c=d;break g}c=d+1|0;e=K[d|0];if(e-80<<24>>24>=0){g=64;break q}if(e>>>0<33){g=64;break u}if(!((e-37&255)>>>0>213|c>>>0>=n>>>0)){g=64;o=c;break v}d=c;if((e|0)==255)continue;break}g=64}H[s|0]=e;w:{x:{if(e>>>0>=80){if(e>>>0<=250){j=P(e,243)-50480|0;h=1;break w}j=187660;h=3;if(e>>>0>253)break w;j=P(e,59049)-14810786|0;break x}if(e>>>0>=37){j=P(e,243)-19504|0;h=1;break w}j=-14536567;h=3;if(e>>>0<34)break w;j=P(e,59049)-2195326|0}h=2}r=h|j<<2;j=1;c=1;continue h}l= -P(e,243)+(e>>>0>143?-50480:-19504)|0;c=d+2|0;y:{d=K[d+1|0];z:{if(d>>>0>=33){i=d-13|0;break z}i=H[d+753808|0];q=d&31;if((d&63)>>>0>=32)d=1>>>q|0;else d=((1<>>q;if(d&1)break y}i=(g+l|0)+i|0;if(i>>>0>=1114112)break y;break p}H[k+37|0]=e;H[k+38|0]=K[o|0];j=2;break i}I[f>>1]=e;g=(e|0)!=32?64:g;f=f+2|0;if(m>>>0>f>>>0)continue;break}}if(c>>>0>>0)break s;break g}A:{B:{if(i-55204>>>0>=4294924444){g=12400;if(i>>>0<12448)break B;g=30481;if(i-19968>>>0<20902)break B;g=49617;if(i>>> -0>44031)break B;g=i&2147483520|64;break B}g=i&2147483520|64;if(i>>>0>65535)break A}I[f>>1]=i;f=f+2|0;break r}I[f>>1]=(i>>>10|0)-10304;c=i&1023|-9216;o=f+2|0;if(o>>>0>>0){I[f+2>>1]=c;f=f+4|0;break r}H[k+65|0]=1;I[k+116>>1]=c;c=d;f=o}J[b>>2]=15;break e}c=0;continue}i=(e+g|0)-144|0;if((i|0)>12287)break p;I[f>>1]=i;f=f+2|0;g=i&-128|64;p=J[a+20>>2];d=c;c=0;continue h}d=c;c=1;continue}}break}J[b>>2]=12;break f}if(J[b>>2]!=12)break e}J[k+44>>2]=64;b=0;break d}J[k+44>>2]=g;b=l<<2|h}H[k+36|0]=j;J[k+48>> -2]=b;J[a+16>>2]=f;J[a+8>>2]=c}function a6(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;k=bc-16|0;bc=k;a:{b:{c:{d:{e:{j=J[b+8>>2];if(M[b+4>>2]<=j+3>>>0)break e;o=J[a>>2];f=J[b+20>>2];if(f){e=k+12|0;if((gc[f|0](b,j,e,4)|0)!=4)break e;h=J[b+8>>2];break d}e=J[b>>2];if(e){e=e+j|0;h=j;break d}J[b+8>>2]=j+4;e=2;break c}e=85;break a}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);i=h+4|0;J[b+8>>2]=i;e=2;if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))!=1954115633)break c;f=J[b+4>>2];if(f>>> -0<=h+5>>>0)break b;f:{g:{h:{g=J[b+20>>2];i:{if(g){e=k+12|0;if((gc[g|0](b,i,e,2)|0)!=2)break b;i=J[b+8>>2];h=J[b+20>>2];break i}e=J[b>>2];if(!e)break h;e=e+i|0;h=0}f=K[e+1|0];e=K[e|0];J[b+8>>2]=i+2;g=i+8|0;p=e<<8|f;if(!h){f=J[b+4>>2];break g}e=85;if(!(gc[h|0](b,g,0,0)|0))break f;break a}J[b+8>>2]=h+6;g=h+12|0}e=85;if(f>>>0>>0)break a}J[b+8>>2]=g;e=142;if(!p)break a;l=(c|0)>0?c&65535:c;n=-1;j:{k:{l:{while(1){h=J[b+4>>2];if(h>>>0<=g+3>>>0)break l;m:{n:{o:{p:{f=J[b+20>>2];q:{if(f){c=k+12|0;if((gc[f| -0](b,g,c,4)|0)!=4)break l;g=J[b+8>>2];h=J[b+20>>2];break q}c=J[b>>2];if(!c)break p;c=c+g|0;h=0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+8>>2]=g+4;i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=g+8|0;if(!h){h=J[b+4>>2];break o}if(!(gc[h|0](b,c,0,0)|0))break n;e=85;break a}J[b+8>>2]=g+4;c=g+8|0;i=0}if(c>>>0<=h>>>0)break m;e=85;break a}h=J[b+4>>2]}J[b+8>>2]=c;r:{s:{t:{if(g+11>>>0>=h>>>0)break t;g=J[b+20>>2];u:{if(g){f=k+12|0;if((gc[g|0](b,c,f,4)|0)!=4)break t;h=J[b+4>>2];c=J[b+8>>2];break u}f= -J[b>>2];if(!f)break s;f=c+f|0}f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);break r}e=85;break a}f=0}g=c+4|0;J[b+8>>2]=g;v:{w:{x:{if(c+7>>>0>=h>>>0)break x;h=J[b+20>>2];y:{if(h){c=k+12|0;if((gc[h|0](b,g,c,4)|0)!=4)break x;g=J[b+8>>2];break y}c=J[b>>2];if(!c)break w;c=c+g|0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);break v}e=85;break a}c=0}g=g+4|0;J[b+8>>2]=g;z:{A:{if((i|0)!=1415139377){if((i|0)!=1128875040)break A; -c=c-22|0;f=f+22|0;q=1;if((l|0)<0)break z;n=n+1|0;break A}c=c-24|0;f=f+24|0;q=0;if((l|0)<0)break z;n=n+1|0}if((l|0)==(n|0)&(l|0)>=0)break z;m=m+1|0;if((m|0)==(p|0))break a;continue}break}e=8;h=J[b+4>>2];if(h>>>0>>0|h-f>>>0>>0)break a;m=f+j|0;f=J[b+20>>2];B:{if(f){e=85;if(!(gc[f|0](b,m,0,0)|0))break B;break a}e=85;if(h>>>0>>0)break a}J[b+8>>2]=m;if((c|0)<=0){e=6;if(c)break a;g=0;e=mg(b,0,0);if(e)break j;break k}g=gc[J[o+4>>2]](o,c)|0;if(!g){e=64;break a}f=wc(g,0,c);e=mg(b,f,c);if(!e)break k; -gc[J[o+8>>2]](o,f);break j}e=85;break a}e=UL(a,g,c,l>>31&l,q?241621:241752,d)}if((e&255)!=2)break a}a=e;c=J[b+20>>2];C:{if(c){e=85;if(!(gc[c|0](b,j,0,0)|0))break C;break a}e=85;if(M[b+4>>2]>>0)break a}J[b+8>>2]=j;e=a;break a}e=85}bc=k+16|0;return e}function dEa(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;g=bc-32|0;bc=g;a:{b:{e=J[a+4>>2];c:{if((e|0)<=0)break c;d=J[a>>2];d:if(K[a+8|0]){a=0;if(!d)break d;a=J[d>>2]}else a=d;h=a;a=J[h>>2];if((a|0)==35){a=h+4|0;d=255;e:switch(e-7|0){case 2:d= -J[h+4>>2];a=d-48|0;f:{if(a>>>0<10)break f;if(d-97>>>0<=5){a=d-87|0;break f}a=d-65>>>0<6?d-55|0:0}d=a<<4;J[c>>2]=d;a=J[h+8>>2];e=a-48|0;g:{if(e>>>0<10)break g;if(a-97>>>0<=5){e=a-87|0;break g}e=a-65>>>0<6?a-55|0:0}a=h+12|0;d=d+e|0;break;case 0:break e;default:break c}J[c>>2]=d;c=J[a+16>>2];e=c-48|0;h:{if(e>>>0<10)break h;if(c-97>>>0<=5){e=c-87|0;break h}e=c-65>>>0<6?c-55|0:0}c=e<<4;J[b>>2]=c;d=J[a+20>>2];e=d-48|0;i:{if(e>>>0<10)break i;if(d-97>>>0<=5){e=d-87|0;break i}e=d-65>>>0<6?d-55|0:0}c=c+e<< -4;J[b>>2]=c;d=J[a+8>>2];e=d-48|0;j:{if(e>>>0<10)break j;if(d-97>>>0<=5){e=d-87|0;break j}e=d-65>>>0<6?d-55|0:0}c=c+e<<4;J[b>>2]=c;d=J[a+12>>2];e=d-48|0;k:{if(e>>>0<10)break k;if(d-97>>>0<=5){e=d-87|0;break k}e=d-65>>>0<6?d-55|0:0}c=c+e<<4;J[b>>2]=c;d=J[a>>2];e=d-48|0;l:{if(e>>>0<10)break l;if(d-97>>>0<=5){e=d-87|0;break l}e=d-65>>>0<6?d-55|0:0}c=c+e<<4;J[b>>2]=c;d=J[a+4>>2];a=d-48|0;m:{if(a>>>0<10)break m;if(d-97>>>0<=5){a=d-87|0;break m}a=d-65>>>0<6?d-55|0:0}J[b>>2]=a+c;break c}if((a|0)!=115|e>>> -0<3|(J[h+4>>2]!=99|e>>>0<4))break c;if(J[h+8>>2]!=35)break c;d=g+20|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;J[695492]=0;ia(4847,d|0,h+12|0,0,-1);a=J[695492];J[695492]=0;n:{o:{p:{q:{if((a|0)!=1){J[695492]=0;ia(4853,g+8|0,d|0,44,0);a=J[695492];J[695492]=0;if((a|0)==1)break q;r:{e=J[g+8>>2];switch(((J[g+12>>2]-e|0)/12|0)-3|0){case 1:break p;case 0:break r;default:break n}}J[c>>2]=255;J[695492]=0;f=+qa(4854,e+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;i=+qa(4854,J[g+8>>2]+12|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break b;J[695492]=0;j=+qa(4854,J[g+8>>2]);a=J[695492];J[695492]=0;if((a|0)!=1)break o;break b}a=Z()|0;break a}a=Z()|0;break a}J[695492]=0;f=+qa(4854,e|0);a=J[695492];J[695492]=0;s:{if((a|0)!=1){f=(f>1?1:f)*255;t:{if(R(f)<2147483648){a=~~f;break t}a=-2147483648}J[c>>2]=a;J[695492]=0;f=+qa(4854,J[g+8>>2]+36|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;i=+qa(4854,J[g+8>>2]+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break s;J[695492]=0;j=+qa(4854,J[g+8>>2]+12|0);a= -J[695492];J[695492]=0;if((a|0)!=1)break o;break b}break b}break b}f=(f>1?1:f)*255;u:{if(R(f)<2147483648){a=~~f;break u}a=-2147483648}c=a<<16;f=(i>1?1:i)*255;v:{if(R(f)<2147483648){a=~~f;break v}a=-2147483648}a=c+(a<<8)|0;f=(j>1?1:j)*255;w:{if(R(f)<2147483648){c=~~f;break w}c=-2147483648}J[b>>2]=c+a;e=J[g+8>>2]}if(e){b=e;a=J[g+12>>2];if((e|0)!=(a|0)){while(1){a=Lc(a-12|0);if((e|0)!=(a|0))continue;break}b=J[g+8>>2]}J[g+12>>2]=e;qc(b)}Lc(d)}bc=g+32|0;return}a=Z()|0;cA(g+8|0)}Lc(d);ba(a|0);B()}function y$(a){var b= -0,c=0,d=0,e=0,f=0,g=0,h=0;h=bc+-64|0;bc=h;a:{b:{c:{d:{e:{f:{e=J[a+36>>2];b=J[e+16>>2];if(!(K[b|0]!=38|K[b+1|0]!=35)){f=J[a+200>>2];if(K[b+2|0]!=120)break f;J[a+200>>2]=f+3;J[e+16>>2]=b+3;J[e+32>>2]=J[e+32>>2]+3;b=K[b+3|0];if((b|0)==37){Od(a);e=J[a+36>>2];b=K[J[e+16>>2]]}g:{if(b&255)break g;if((Cd(e)|0)>0)break g;ze(a)}e=0;c=J[a+36>>2];if(!(J[a+292>>2]|(J[c+20>>2]-J[c+16>>2]|0)>249)){Hd(a);c=J[a+36>>2]}b=J[c+16>>2];h:{if(K[b|0]==59)break h;while(1){if((g|0)<21)f=g+1|0;else{if(!(J[a+292>>2]|(J[c+20>> -2]-b|0)>249))Hd(a);if(J[a+172>>2]==-1)break b;c=J[a+36>>2];f=0}b=-48;i:{c=K[J[c+16>>2]];if((c-48&255)>>>0<10)break i;j:{if(c>>>0>=97){if(c>>>0>102)break j;b=-87;if((f|0)>=20)break j;break i}if(c>>>0<65|c>>>0>70)break j;b=-55;if((f|0)<20)break i}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){d=0;break h}J[a+84>>2]=6;J[h>>2]=13371;d=0;Cc(0,0,0,a,0,1,6,3,0,0,0,0,32890,h);J[a+12>>2]=0;if(J[a+288>>2])break h;J[a+212>>2]=1;break h}d=c+((d<<4)+b|0)|0;e=d>>>0>1114111?d:e;g=f+1|0;Qd(a);c=J[a+36>>2];b=J[c+16>>2];if(K[b| -0]!=59)continue;break}}c=J[a+36>>2];g=J[c+16>>2];if(K[g|0]==59)break e;break d}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break c;J[a+84>>2]=8;J[h+48>>2]=13437;Cc(0,0,0,a,0,1,8,3,0,0,0,0,32890,h+48|0);J[a+12>>2]=0;if(J[a+288>>2])break c;J[a+212>>2]=1;break c}J[a+200>>2]=f+2;J[e+16>>2]=b+2;J[e+32>>2]=J[e+32>>2]+2;b=K[b+2|0];if((b|0)==37){Od(a);e=J[a+36>>2];b=K[J[e+16>>2]]}k:{if(b&255)break k;if((Cd(e)|0)>0)break k;while(1){d=J[a+40>>2];if((d|0)<2)break k;l:{m:{n:{if(!J[689531]){b=d-1|0;J[a+40>>2]=b;e=J[a+ -48>>2];break n}J[h+32>>2]=d;e=0;gc[J[659549]](J[689514],36109,h+32|0);d=J[a+40>>2];if((d|0)<=0)break l;b=d-1|0;J[a+40>>2]=b;e=J[a+48>>2];g=0;f=0;if((d|0)==1)break m}g=J[((d<<2)+e|0)-8>>2];f=b}J[a+36>>2]=g;b=(f<<2)+e|0;e=J[b>>2];J[b>>2]=0}dh(e);b=J[a+36>>2];if(K[J[b+16>>2]])break k;if((Cd(b)|0)<=0)continue;break}}e=0;d=0;c=J[a+36>>2];if(!(J[a+292>>2]|(J[c+20>>2]-J[c+16>>2]|0)>249)){Hd(a);c=J[a+36>>2]}b=J[c+16>>2];o:{if(K[b|0]==59)break o;g=0;while(1){if((g|0)<21)b=g+1|0;else{if(!(J[a+292>>2]|(J[c+ -20>>2]-b|0)>249))Hd(a);if(J[a+172>>2]==-1)break b;c=J[a+36>>2];b=0}f=K[J[c+16>>2]];if((f-48&255)>>>0<=9){d=(f+P(d,10)|0)-48|0;e=d>>>0>1114111?d:e;g=b+1|0;Qd(a);c=J[a+36>>2];b=J[c+16>>2];if(K[b|0]!=59)continue;break o}break}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){d=0;break o}J[a+84>>2]=7;J[h+16>>2]=13406;d=0;Cc(0,0,0,a,0,1,7,3,0,0,0,0,32890,h+16|0);J[a+12>>2]=0;if(J[a+288>>2])break o;J[a+212>>2]=1}c=J[a+36>>2];g=J[c+16>>2];if(K[g|0]!=59)break d}J[c+32>>2]=J[c+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;J[c+16>> -2]=g+1}p:{if(d>>>0<=255){if(d>>>0>31)break p;if(d>>>0>13)break c;if(1<>>0>55295&d-57344>>>0>8189&d-65536>>>0>1048575)break c}if(!e)break a}fl(a,9,36264,d)}d=0}bc=h- -64|0;return d}function X7a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!=2)){Fe(f+100|0,f,J[f+1164>>2],J[f+1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+12>>2])break e; -J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>>0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a),J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+4>>2]=2147483632;a=J[b+8>>2];if(J[a+4>>2]!=1){J[a+4>>2]=1;wc(a+2400|0,0,513)}if(!lg(f,e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]-j>>3;n=J[e+8>>2];while(1){a=J[j+ -12>>2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i|0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<<2);J[m>>2]=g}V2(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a=d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h;i=k?0:d+i|0;g=(d<<2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o= -o-1|0;if(o)continue;break}if(lg(f,e))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2374,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2]; -if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>> -2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2375,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function jJa(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=bc-48|0;bc=e;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=c;J[a+12>>2]=0;J[a+16>>2]=0;j=Tm(b,c,0,e+32|0,0);a:{if(J[j>>2]!=8)break a;c=J[j+8>>2];d=gc[J[J[c>>2]+76>>2]](c)|0;c=e+16|0;if(J[Bc(d,776356,c,0)>>2]!=1){uc(c);break a}J[a+4>>2]=J[e+24>>2];c=e+16|0;uc(c);if(J[a+4>>2]<=0)break a;d=J[j+8>>2];if(J[Bc(gc[J[J[d>>2]+76>>2]](d)|0,776721,c,0)>>2]!=1){uc(c);break a}i=J[e+24>>2];uc(e+16|0);if((i|0)<0)break a;g=J[a+4>>2];if((g|0)>=1000001){xc(1, --1,778149,0);break a}h=g<<4;d=rc(g>>>0>268435455?-1:h);b:{if(!g)break b;c=d;k=g&7;if(k)while(1){J[c>>2]=13;c=c+16|0;f=f+1|0;if((k|0)!=(f|0))continue;break}if((g-1&268435455)>>>0<7)break b;f=d+h|0;while(1){J[c+112>>2]=13;J[c+96>>2]=13;J[c+80>>2]=13;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;c=c+128|0;if((f|0)!=(c|0))continue;break}}J[a+8>>2]=d;m=a,n=vd(g,4),J[m+12>>2]=n;g=vd(J[a+4>>2],4);c=J[j+8>>2];gc[J[J[c>>2]+20>>2]](c);J[e+16>>2]=5;c=rc(40);d=J[j+8>>2];J[695492]=0;f=e+16| -0;d=Iv(c,d,f,1,i);h=J[695492];J[695492]=0;c:{d:{e:{f:{g:{h:{if((h|0)!=1){c=rc(160);J[695492]=0;h=ga(3494,c|0,b|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;c=rc(56);J[695492]=0;d=ha(3308,c|0,b|0,h|0,0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break h;i:{if(J[a+4>>2]<=0)break i;hg(d,f,1,0,0,0,0,0,0);hg(d,e,1,0,0,0,0,0,0);if(J[e+16>>2]!=1|J[e>>2]!=1)break e;J[J[a+12>>2]>>2]=J[e+24>>2];J[g>>2]=J[e+8>>2];uc(f);uc(e);if((J[J[a+12>>2]>>2]|J[g>>2])<0)break d;if(J[a+4>>2]<2)break i;c=1;while(1){l=e+ -16|0;hg(d,l,1,0,0,0,0,0,0);hg(d,e,1,0,0,0,0,0,0);if(J[e+16>>2]!=1|J[e>>2]!=1)break e;f=c<<2;J[f+J[a+12>>2]>>2]=J[e+24>>2];k=f+g|0;J[k>>2]=J[e+8>>2];uc(l);uc(e);if(J[f+J[a+12>>2]>>2]<0)break d;f=J[k>>2];if((f|0)<0|(f|0)>2])break d;c=c+1|0;if((c|0)>2])continue;break}}IY(h);qc(qk(d));c=J[g>>2];if((c|0)>(i|0)){d=J[j+8>>2];gc[J[J[d>>2]+48>>2]](d,c-i|0)|0}j:{k:{d=J[a+4>>2];if((d|0)>0){f=0;while(1){J[e+16>>2]=5;c=rc(40);i=J[j+8>>2];l:{if((d-1|0)==(f|0)){J[695492]=0;Iv(c,i,e+16|0,0,0);d=J[695492]; -J[695492]=0;if((d|0)!=1)break l;a=Z()|0;break f}d=g+(f<<2)|0;h=J[d>>2];d=J[d+4>>2];J[695492]=0;Iv(c,i,e+16|0,1,d-h|0);d=J[695492];J[695492]=0;if((d|0)!=1)break l;a=Z()|0;break f}d=rc(160);J[695492]=0;i=ga(3494,d|0,b|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;c=rc(56);J[695492]=0;d=ha(3308,c|0,b|0,i|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break j;hg(d,J[a+8>>2]+(f<<4)|0,0,0,0,0,0,0,0);IY(i);qc(qk(d));d=J[a+4>>2];f=f+1|0;if((d|0)>(f|0))continue;break}}Gc(g);J[a+16>>2]=1;break c}c=d;a=Z()| -0;break f}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0}qc(c);ba(a|0);B()}uc(e+16|0);uc(e)}qc(qk(d));Gc(g)}b=J[j+8>>2];gc[J[J[b>>2]+24>>2]](b)}uc(j);bc=e+48|0;return a|0}function Hy(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=a+b|0;c=J[a+4>>2];a:{b:{if(c&1)break b;if(!(c&3))break a;c=J[a>>2];b=c+b|0;c:{d:{e:{a=a-c|0;if((a|0)!=J[695373]){if(c>>>0<=255){d=J[a+8>>2];e=J[a+12>>2];if((d|0)!=(e|0))break e;i=2781472,j=J[695368]&Hzb(-2,c>>>3|0),J[i>>2]=j;break b}h=J[a+24>>2];c=J[a+12>>2];if((c|0)!= -(a|0)){d=J[a+8>>2];J[d+12>>2]=c;J[c+8>>2]=d;break c}e=a+20|0;d=J[e>>2];if(!d){d=J[a+16>>2];if(!d)break d;e=a+16|0}while(1){g=e;c=d;e=c+20|0;d=J[e>>2];if(d)continue;e=c+16|0;d=J[c+16>>2];if(d)continue;break}J[g>>2]=0;break c}c=J[f+4>>2];if((c&3)!=3)break b;J[695370]=b;J[f+4>>2]=c&-2;J[a+4>>2]=b|1;J[f>>2]=b;return}J[d+12>>2]=e;J[e+8>>2]=d;break b}c=0}if(!h)break b;d=J[a+28>>2];e=(d<<2)+2781776|0;f:{if(J[e>>2]==(a|0)){J[e>>2]=c;if(c)break f;i=2781476,j=J[695369]&Hzb(-2,d),J[i>>2]=j;break b}J[h+(J[h+ -16>>2]==(a|0)?16:20)>>2]=c;if(!c)break b}J[c+24>>2]=h;d=J[a+16>>2];if(d){J[c+16>>2]=d;J[d+24>>2]=c}d=J[a+20>>2];if(!d)break b;J[c+20>>2]=d;J[d+24>>2]=c}g:{h:{i:{j:{c=J[f+4>>2];if(!(c&2)){if(J[695374]==(f|0)){J[695374]=a;b=J[695371]+b|0;J[695371]=b;J[a+4>>2]=b|1;if(J[695373]!=(a|0))break a;J[695370]=0;J[695373]=0;return}if(J[695373]==(f|0)){J[695373]=a;b=J[695370]+b|0;J[695370]=b;J[a+4>>2]=b|1;J[a+b>>2]=b;return}b=(c&-8)+b|0;if(c>>>0<=255){e=c>>>3|0;c=J[f+12>>2];d=J[f+8>>2];if((c|0)==(d|0)){i=2781472, -j=J[695368]&Hzb(-2,e),J[i>>2]=j;break h}J[d+12>>2]=c;J[c+8>>2]=d;break h}h=J[f+24>>2];c=J[f+12>>2];if((f|0)!=(c|0)){d=J[f+8>>2];J[d+12>>2]=c;J[c+8>>2]=d;break i}e=f+20|0;d=J[e>>2];if(!d){d=J[f+16>>2];if(!d)break j;e=f+16|0}while(1){g=e;c=d;e=c+20|0;d=J[e>>2];if(d)continue;e=c+16|0;d=J[c+16>>2];if(d)continue;break}J[g>>2]=0;break i}J[f+4>>2]=c&-2;J[a+4>>2]=b|1;J[a+b>>2]=b;break g}c=0}if(!h)break h;d=J[f+28>>2];e=(d<<2)+2781776|0;k:{if(J[e>>2]==(f|0)){J[e>>2]=c;if(c)break k;i=2781476,j=J[695369]&Hzb(-2, -d),J[i>>2]=j;break h}J[h+(J[h+16>>2]==(f|0)?16:20)>>2]=c;if(!c)break h}J[c+24>>2]=h;d=J[f+16>>2];if(d){J[c+16>>2]=d;J[d+24>>2]=c}d=J[f+20>>2];if(!d)break h;J[c+20>>2]=d;J[d+24>>2]=c}J[a+4>>2]=b|1;J[a+b>>2]=b;if(J[695373]!=(a|0))break g;J[695370]=b;return}if(b>>>0<=255){c=(b&-8)+2781512|0;d=J[695368];b=1<<(b>>>3);l:{if(!(d&b)){J[695368]=b|d;b=c;break l}b=J[c+8>>2]}J[c+8>>2]=a;J[b+12>>2]=a;J[a+12>>2]=c;J[a+8>>2]=b;return}d=31;if(b>>>0<=16777215){c=S(b>>>8|0);d=((b>>>38-c&1)-(c<<1)|0)+62|0}J[a+28>>2]= -d;J[a+16>>2]=0;J[a+20>>2]=0;c=(d<<2)+2781776|0;m:{e=J[695369];g=1<>2]=a;J[a+24>>2]=c;break n}d=b<<((d|0)!=31?25-(d>>>1|0)|0:0);c=J[c>>2];while(1){e=c;if((J[c+4>>2]&-8)==(b|0))break m;g=d>>>29|0;d=d<<1;g=c+(g&4)|0;c=J[g+16>>2];if(c)continue;break}J[g+16>>2]=a;J[a+24>>2]=e}J[a+12>>2]=a;J[a+8>>2]=a;return}b=J[e+8>>2];J[b+12>>2]=a;J[e+8>>2]=a;J[a+24>>2]=0;J[a+12>>2]=e;J[a+8>>2]=b}}function dpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;if(K[a+286|0]|!K[a+285|0]|K[a+288|0]){Dc(a,1029,0,0);return 1029}if(c>>>0>=21){Dc(a,1028,0,0);return 1028}h=1;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(c>>>0>20)break k;i=1;l:{if(!(1<>>0>5)break l;h=0;if(K[d+8|0]|K[d+10|0]|(K[d+12|0]|K[d+14|0]))break l;if(K[d+16|0])break l}g=K[d+2|0]|K[d+3|0]<<8;o=g<<8|g>>>8;g=K[d|0]|K[d+1|0]<<8;p=g<<8|g>>>8;g=K[d+ -5|0];if(c>>>0<7){f=g;h=1;break h}f=K[d+6|0]|K[d+7|0]<<8;i=f<<8|f>>>8;if(c>>>0<9)break b;f=K[d+8|0]|K[d+9|0]<<8;h=f<<8|f>>>8;if(c>>>0<11)break e;f=K[d+10|0]|K[d+11|0]<<8;k=f<<8|f>>>8;if(c>>>0<13)break d;f=K[d+12|0]|K[d+13|0]<<8;l=f<<8|f>>>8;if(c>>>0<15)break f;f=K[d+14|0]|K[d+15|0]<<8;m=f<<8|f>>>8;if(c>>>0<17)break g;f=K[d+16|0]|K[d+17|0]<<8;j=f<<8|f>>>8;n=19;f=g;if(c>>>0>18)break j;break a}i=h&255|f<<8;c=K[d+15|0]|K[d+16|0]<<8;j=c<<8|c>>>8;c=K[d+13|0]|K[d+14|0]<<8;m=c<<8|c>>>8;c=K[d+11|0]|K[d+12| -0]<<8;l=c<<8|c>>>8;c=K[d+9|0]|K[d+10|0]<<8;k=c<<8|c>>>8;c=K[d+7|0]|K[d+8|0]<<8;h=c<<8|c>>>8;c=K[d+2|0]|K[d+3|0]<<8;o=c<<8|c>>>8;c=K[d|0]|K[d+1|0]<<8;p=c<<8|c>>>8;n=17;break j}f=K[d|0]|K[d+1|0]<<8;p=f<<8|f>>>8;m:{n:{if(c>>>0<3){o=p;break n}f=K[d+2|0]|K[d+3|0]<<8;o=f<<8|f>>>8;if(c>>>0>=5)break m}f=0;break i}g=K[d+4|0];if((c|0)==5){f=g;break i}f=K[d+5|0]|K[d+6|0]<<8;i=f<<8|f>>>8;if(c>>>0<8)break b;f=K[d+7|0]|K[d+8|0]<<8;h=f<<8|f>>>8;if(c>>>0<10)break e;f=K[d+9|0]|K[d+10|0]<<8;k=f<<8|f>>>8;if(c>>>0<12)break d; -f=K[d+11|0]|K[d+12|0]<<8;l=f<<8|f>>>8;if(c>>>0<14)break f;f=K[d+13|0]|K[d+14|0]<<8;m=f<<8|f>>>8;if(c>>>0<16)break g;f=K[d+15|0]|K[d+16|0]<<8;j=f<<8|f>>>8;n=17;f=g;if(c>>>0<18)break a}f=K[d+n|0];break a}i=1}k=1;l=1;m=1;j=1;break a}f=g;j=h;break a}break c}k=i}l=i}f=g;m=h;j=h;break a}f=g;h=i;k=h;l=h;m=h;j=h}if(!((f&255)>>>0<6&g>>>0<=5)){Dc(a,1064,0,0);return 1064}d=p&65535;n=o&65535;r=i&65535;s=h&65535;t=k&65535;u=l&65535;v=m&65535;w=j&65535;x=f&255;c=gc[J[a+152>>2]](48)|0;o:{if(!c){Dc(a,1,0,0);c=1; -break o}J[c+4>>2]=1076;J[c>>2]=1077;q=J[a+700>>2];p:{if(q){J[q+8>>2]=c;break p}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=q;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;H[c+46|0]=x;I[c+44>>1]=w;I[c+42>>1]=v;I[c+40>>1]=u;I[c+38>>1]=t;I[c+36>>1]=s;I[c+34>>1]=r;H[c+32|0]=g;I[c+30>>1]=n;I[c+28>>1]=d;c=W7(a,d,n,g,r,s,t,u,v,w,x)}q:{if(c)break q;c=0;if(!K[a+112|0])break q;c=gc[J[b+4>>2]](a,b,e)|0;if(c)break q;a=J[e>> -2];H[a+50|0]=f;I[a+48>>1]=j;I[a+46>>1]=m;I[a+44>>1]=l;I[a+42>>1]=k;I[a+40>>1]=h;I[a+38>>1]=i;H[a+36|0]=g;I[a+34>>1]=o;I[a+32>>1]=p;c=0}return c|0}function PC(a,b,c){var d=0,e=0,f=0,g=0;d=K[c+52|0]|K[c+53|0]<<8|(K[c+54|0]<<16|K[c+55|0]<<24);H[c+44|0]=d;H[c+45|0]=d>>>8;H[c+46|0]=d>>>16;H[c+47|0]=d>>>24;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[c+12|0]=d;H[c+13|0]=d>>>8;H[c+14|0]=d>>>16;H[c+15|0]=d>>>24;a:{b:{if((b|0)<=0){e=c+32|0;break b}e=c+32|0;d=1;while(1){c:{d:{if((d|0)==1){H[c+16|0]=1; -H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;Mp(a,K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24),c);b=b-1|0;break d}if((b|0)<(d|0))break c;H[c+16|0]=d;H[c+17|0]=d>>>8;H[c+18|0]=d>>>16;H[c+19|0]=d>>>24;Mp(a,((K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))+d|0)-2|0,c);b=b-d|0}f=K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24);d=f?d+1|0:1;if((b|0)>0)continue;break a}break}d=(K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24))+1|0;H[c+16|0]=d;H[c+17|0]=d>>>8;H[c+18|0]=d>>>16;H[c+19|0]=d>>>24;if((b|0)== -1)b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);else b=((K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))+b|0)-2|0;Mp(a,b,c)}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24)}d=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24);H[c+44|0]=d;H[c+45|0]=d>>>8;H[c+46|0]=d>>>16;H[c+47|0]=d>>>24;if((d|0)<=(f|0)){b=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=b+(K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24))|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;b=K[c+64|0]| -K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24)|(K[c+56|0]|K[c+57|0]<<8|(K[c+58|0]<<16|K[c+59|0]<<24))<>>8;H[c+66|0]=b>>>16;H[c+67|0]=b>>>24;if((e|0)>=8){f=c+72|0;d=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);while(1){e=d+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330|0]=e>>>16;H[c+331|0]=e>>>24;H[(c+d|0)+72|0]=b;d=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);if((d|0)>=255){b=J[a+1096>>2];gc[J[J[b>>2]+44>>2]](b,d&255)|0;b=J[a+1096>>2];gc[J[J[b>>2]+16>>2]](b, -f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0;H[c+331|0]=0;d=0}b=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=b;H[c+65|0]=b>>>8;H[c+66|0]=b>>>16;H[c+67|0]=b>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}a=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24)}else a=d;H[c+44|0]=a;H[c+45|0]=a>>>8;H[c+46|0]=a>>> -16;H[c+47|0]=a>>>24;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=1;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;a=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);H[c+24|0]=a;H[c+25|0]=a>>>8;H[c+26|0]=a>>>16;H[c+27|0]=a>>>24;a=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);H[c+36|0]=a;H[c+37|0]=a>>>8;H[c+38|0]=a>>>16;H[c+39|0]=a>>>24}}function M1a(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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,u=0,v=0,w=0,x=0;i=bc-32|0;bc=i;J[i+28>>2]=f;a:{if(!h|J[h>>2]>0)break a;if(d?!a|!b:1){J[h>>2]=1;break a}b:{k=J[d>>2];c:{if(k>>>0>e>>>0)break c;c=c-(((c>>>0>=2147483649?-1:c+2147483647|0)|0)==(c|0))|0;f=J[b>>2];if((e-k|0)<0&e>>>0>k>>>0|c>>>0>>0)break c;j=c-f|0;if(!(j>>>0<2147483647|c>>>0<=f>>>0))break c;if(!(j&1))break b}J[h>>2]=1;break a}if(H[a+65|0]>0){j=0;m=i+28|0;if(m)j=J[m>>2];f=J[b>>2];n=H[a+65|0];d:{if((n|0)>0){o=a+116|0;while(1){if((c|0)==(f|0)){f=0;while(1){I[o+ -(f<<1)>>1]=L[o+(l<<1)>>1];f=f+1|0;l=l+1|0;if((n|0)>(l|0))continue;break}H[a+65|0]=f;J[b>>2]=c;if(j)J[m>>2]=j;J[h>>2]=15;f=1;break d}I[f>>1]=L[o+(l<<1)>>1];if(j){J[j>>2]=-1;j=j+4|0}else j=0;f=f+2|0;l=l+1|0;if((n|0)!=(l|0))continue;break}}H[a+65|0]=0;J[b>>2]=f;if(j)J[m>>2]=j;f=0}if(f)break a}if(!((e|0)!=(k|0)|g)&H[a+254|0]>=0)break a;H[i+2|0]=g;J[i+4>>2]=a;J[i+24>>2]=J[i+28>>2];J[i+12>>2]=e;J[i+8>>2]=k;J[i+16>>2]=J[b>>2];I[i>>1]=28;J[i+20>>2]=c;a=0;m=0;o=0;n=bc-32|0;bc=n;g=J[i+4>>2];e=J[J[g+24>>2]+ -20>>2];c=J[i+24>>2];e:{if(c){q=J[e+28>>2];if(q)break e;a=-1}else a=0;q=J[e+24>>2]}p=J[i+16>>2];l=J[i+8>>2];e=H[g+254|0];f:{if((e|0)>=0){f=a;a=0;j=0;break f}o=K[i+2|0];m=J[i+12>>2];f=tc(n,g+222|0,0-e|0);J[i+12>>2]=f-e;H[i+2|0]=0;J[i+8>>2]=f;H[g+254|0]=0;f=-1;j=l}v=g+37|0;r=g+68|0;s=g+222|0;g:while(1){h:{k=0;t=0;i:{if(J[h>>2]>0)break i;gc[q|0](i,h);if(!K[i+2|0]|J[h>>2]>0|J[i+8>>2]!=J[i+12>>2])break i;t=!K[g+36|0]}u=1;while(1){e=0;j:{if(!c)break j;p=J[i+16>>2]-p|0;e=p>>1;k:{if((e|0)<=0){e=c;break k}e= -(e<<2)+c|0;k=(f|0)<0?-1:f-k|0;l:{if(!k)break l;if((k|0)<=0){w=c;x=c^-1;k=(p<<1)+c|0;c=c+4|0;wc(w,255,(x+(c>>>0>>0?k:c)&-4)+4|0);break l}while(1){p=J[c>>2];if((p|0)>=0)J[c>>2]=k+p;c=c+4|0;if(e>>>0>c>>>0)continue;break}}J[i+24>>2]=e}if((f|0)<0)break j;f=J[i+8>>2]+(f-l|0)|0}c=e;e=H[g+254|0];if((e|0)<0)m:{if(!j){o=K[i+2|0];m=J[i+12>>2];j=J[i+8>>2];a=tc(n,s,0-e|0);J[i+12>>2]=a-e;H[i+2|0]=0;J[i+8>>2]=a;H[g+254|0]=0;a=f;e=e+f|0;f=(e|0)<0?-1:e;break m}J[h>>2]=5}p=J[i+16>>2];l=J[i+8>>2];n:{e=J[h>>2];o:{if((e| -0)<=0){if(M[i+12>>2]>l>>>0)continue g;if(j){J[i+12>>2]=m;J[i+8>>2]=j;H[i+2|0]=o;j=0;f=a;continue g}if(!K[i+2|0])break o;if(H[g+36|0]>0){J[h>>2]=11;break n}j=0;if(!t)continue g;x1(g,1);break o}if(!(1<>>0>19:1))break n;if(!j)break o;a=J[i+12>>2]-l|0;if((a|0)>0){tc(s,l,a);H[g+254|0]=0-a}J[i+12>>2]=m;J[i+8>>2]=j;H[i+2|0]=o}bc=n+32|0;break h}k=H[g+36|0];H[g+62|0]=k;if((k|0)>0)tc(r,v,k);H[g+36|0]=0;e=J[g+256>>2];p:{if((e|0)!=1)break p;e=1;if(J[h>>2]!=10)break p;e=0;J[g+256>>2]=0}gc[J[g+4>> -2]](J[g+16>>2],i,r,k,e,h);J[g+256>>2]=1;u=0;continue}}break}J[d>>2]=J[i+8>>2];J[b>>2]=J[i+16>>2]}bc=i+32|0}function FL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(J[a+200>>2]==(b|0)&J[a+204>>2]==(d|0))break a;J[a+200>>2]=b;J[a+204>>2]=d;d=J[a+4>>2];if(!d)break a;f=Pc(J[a+8>>2],b);J[a+12>>2]=f;J[a+16>>2]=f+32&-64;f=d-1|0;if(!f)break a;d=a+20|0;while(1){h=Pc(J[d>>2],b);i=J[a+12>>2];j=h-i|0;g=j>>31;g=(g^j)-g>>>0<128?i:h;J[d+4>>2]=g;J[d+8>>2]=g+32&-64;d=d+12|0;f=f-1| -0;if(f)continue;break}}b:{if(J[a+404>>2]==(c|0)&J[a+408>>2]==(e|0))break b;J[a+404>>2]=c;J[a+408>>2]=e;b=J[a+208>>2];c:{if(!b)break c;d=Pc(J[a+212>>2],c);J[a+216>>2]=d;J[a+220>>2]=d+32&-64;f=b-1|0;if(!f)break c;d=a+224|0;while(1){g=Pc(J[d>>2],c);h=J[a+216>>2];i=g-h|0;b=i>>31;b=(b^i)-b>>>0<128?h:g;J[d+4>>2]=b;J[d+8>>2]=b+32&-64;d=d+12|0;f=f-1|0;if(f)continue;break}}d=a+2492|0;if((c|0)<=34359737)b=(P(c,125)|0)>2]<<3;else b=0;H[d|0]=b;d=J[a+2480>>2];d:{if((d|0)<=0)break d;while(1){if((Pc(d, -c)|0)<33)break d;b=(d|0)>1;d=d-1|0;if(b)continue;break}d=0}J[a+2484>>2]=d;b=J[a+412>>2];if(b){d=a+416|0;while(1){k=d,l=Pc(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Pc(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Pc(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Pc(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+928>>2];if(b){d=a+932|0;while(1){k=d,l=Pc(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Pc(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Pc(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Pc(J[d+4>> -2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+1444>>2];if(b){d=a+1448|0;while(1){k=d,l=Pc(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Pc(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Pc(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Pc(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+1960>>2];if(b){d=a+1964|0;while(1){k=d,l=Pc(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Pc(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Pc(J[d>>2],c)+e|0,J[k+16>>2]=l; -k=d,l=Pc(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}e:{g=J[a+412>>2];if(!g)break e;d=J[a+1444>>2];if(!d)break e;b=a+1448|0;f=a+416|0;while(1){e=b;f:{if(!d)break f;while(1){i=J[f>>2]-J[e>>2]|0;h=i>>31;if((Pc((h^i)-h|0,c)|0)<=63){J[f+28>>2]=J[e+28>>2];J[f+24>>2]=J[e+24>>2];J[f+16>>2]=J[e+16>>2];J[f+20>>2]=J[e+20>>2];break f}e=e+32|0;d=d-1|0;if(d)continue;break}}g=g-1|0;if(!g)break e;f=f+32|0;d=J[a+1444>>2];continue}}g=J[a+928>>2];if(!g)break b;d=J[a+ -1960>>2];if(!d)break b;b=a+1964|0;f=a+932|0;while(1){e=b;g:{if(!d)break g;while(1){i=J[f>>2]-J[e>>2]|0;h=i>>31;if((Pc((h^i)-h|0,c)|0)>=64){e=e+32|0;d=d-1|0;if(d)continue;break g}break}J[f+28>>2]=J[e+28>>2];J[f+24>>2]=J[e+24>>2];J[f+16>>2]=J[e+16>>2];J[f+20>>2]=J[e+20>>2]}g=g-1|0;if(!g)break b;f=f+32|0;d=J[a+1960>>2];continue}}}function jVa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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,u=0;i=bc-48|0;bc=i;o=h+1|0;q=Ni(J[b+28>>2], -o);h=J[q+12>>2];O[a+40>>3]=O[h+32>>3];O[a+48>>3]=O[h+40>>3];h=J[Ni(J[b+28>>2],o)+12>>2];j=O[h+32>>3];k=O[h+48>>3];h=J[Ni(J[b+28>>2],o)+12>>2];p=O[h+40>>3];m=O[h+56>>3];r=+(e|0);j=k-j;k=r/j;O[a+56>>3]=k;s=+(f|0);p=m-p;m=s/p;O[a+64>>3]=m;k=k*(O[a+24>>3]-O[a+8>>3]);t=ms(k);a:{if(R(t)<2147483648){e=~~t;break a}e=-2147483648}h=e+2|0;J[a+96>>2]=h;O[a+72>>3]=+(e|0)-k;k=m*(O[a+32>>3]-O[a+16>>3]);m=ms(k);b:{if(R(m)<2147483648){e=~~m;break b}e=-2147483648}n=e+2|0;J[a+100>>2]=n;O[a+80>>3]=+(e|0)-k;l=P(h,n); -n=rc(l<<2);c:{if(!l)break c;h=n;if(l>>>0>=8){u=l&-8;e=0;while(1){J[h+28>>2]=g;J[h+24>>2]=g;J[h+20>>2]=g;J[h+16>>2]=g;J[h+12>>2]=g;J[h+8>>2]=g;J[h+4>>2]=g;J[h>>2]=g;h=h+32|0;e=e+8|0;if((u|0)!=(e|0))continue;break}}l=l&7;if(!l)break c;e=0;while(1){J[h>>2]=g;h=h+4|0;e=e+1|0;if((l|0)!=(e|0))continue;break}}e=rc(48);J[695492]=0;J[e>>2]=0;J[e+4>>2]=0;H[e+40|0]=0;J[e+32>>2]=0;J[e+36>>2]=-1074790400;H[e+21|0]=0;H[e+22|0]=0;H[e+23|0]=0;H[e+24|0]=0;H[e+25|0]=0;H[e+26|0]=0;H[e+27|0]=0;H[e+28|0]=0;J[e+16>>2]= -0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;h=J[695492];J[695492]=0;if((h|0)!=1)d:{J[a+120>>2]=e;J[e+16>>2]=n;J[J[a+120>>2]+4>>2]=J[a+96>>2];J[J[a+120>>2]+8>>2]=J[a+100>>2];e=J[a+120>>2];J[i+8>>2]=J[a+96>>2]<<2;h=e;e=i+8|0;J[h+12>>2]=J[e>>2];h=gL();J[a+128>>2]=h;gc[J[J[h>>2]+460>>2]](h,c);h=J[a+128>>2];gc[J[J[h>>2]+488>>2]](h,J[a+120>>2]);h=J[a+128>>2];gc[J[J[h>>2]+480>>2]](h,1);h=J[a+128>>2];O[i+8>>3]=(O[a+24>>3]-O[a+8>>3]+j*(O[a+72>>3]+2)/r)*25.4/72;gc[J[J[h>>2]+36>>2]](h,e)|0;h=J[a+128>>2];O[i+8>> -3]=(O[a+32>>3]-O[a+16>>3]+p*(O[a+80>>3]+2)/s)*25.4/72;gc[J[J[h>>2]+28>>2]](h,e)|0;if((g|0)!=16777215){g=J[a+128>>2];J[i+8>>2]=1;gc[J[J[g>>2]+416>>2]](g,840180,e)|0}e=J[a+128>>2];J[i+8>>2]=1;g=i+8|0;gc[J[J[e>>2]+416>>2]](e,826968,g)|0;e=rc(224);h=J[a+128>>2];J[695492]=0;c=ha(3228,e|0,h|0,c|0,d|0)|0;d=J[695492];J[695492]=0;e:{if((d|0)!=1){J[a+124>>2]=c;J[c+164>>2]=J[b+24>>2];J[i+44>>2]=1;J[i+32>>2]=0;J[i+36>>2]=0;J[i+24>>2]=0;J[i+28>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0;c=J[a+124>> -2];zY(q,0,0,gc[J[J[c>>2]+8>>2]](c)|0,g,i+44|0);c=J[q+12>>2];d=rc(128);e=J[c+288>>2];h=J[a+124>>2];n=J[c+280>>2];J[695492]=0;b=Pa(3229,d|0,b|0,h|0,o|0,((n|0)==7?e:0)|0,72,72,g|0,(J[i+44>>2]?c+32|0:0)|0,0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[a+116>>2]=b;j=ms((O[a+8>>3]-O[a+40>>3])*O[a+56>>3]);f:{if(R(j)<2147483648){b=~~j;break f}b=-2147483648}J[a+88>>2]=b-1;j=ms((O[a+32>>3]-O[a+48>>3])*O[a+64>>3]);g:{if(R(j)<2147483648){b=~~j;break g}b=-2147483648}J[a+92>>2]=(b^-1)+f;bc=i+48|0;return}break d}a= -Z()|0;qc(d);ba(a|0);B()}a=Z()|0;qc(e);ba(a|0);B()}function P2a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+408>>2];d=J[a+464>>2];a:{if(J[a+224>>2]){c=J[a+412>>2];b:{c:{d:{if(!b){if(!c)break d;break c}if((b|0)>(c|0)|(c|0)>J[a+432>>2]|J[a+336>>2]!=1)break c}c=J[a+416>>2];e:{if(!c){c=J[a+420>>2];break e}c=c-1|0;if((c|0)!=J[a+420>>2])break c}if((c|0)<14)break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=17;J[J[a>>2]+28>>2]=J[a+412>>2];J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];gc[J[J[a>>2]>> -2]](a)}b=J[a+336>>2];if((b|0)>0)while(1){g=J[J[((e<<2)+a|0)+340>>2]+4>>2];f=J[a+160>>2]+(g<<8)|0;c=J[a+408>>2];b=0;f:{if(!c)break f;b=c;if(J[f>>2]>=0)break f;b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=118;J[J[a>>2]+28>>2]=0;gc[J[J[a>>2]+4>>2]](a,-1);b=J[a+408>>2]}if((b|0)<=J[a+412>>2])while(1){c=f+(b<<2)|0;h=J[c>>2];if(J[a+416>>2]!=(((h|0)>0?h:0)|0)){h=J[a>>2];J[h+24>>2]=g;J[h+20>>2]=118;J[J[a>>2]+28>>2]=b;gc[J[J[a>>2]+4>>2]](a,-1)}J[c>>2]=J[a+420>>2];c=J[a+412>>2]>(b|0);b=b+1|0;if(c)continue;break}b=J[a+ -336>>2];e=e+1|0;if((b|0)>(e|0))continue;break}c=J[a+408>>2];if(!J[a+416>>2]){if(!c){J[d+4>>2]=384;break a}J[d+4>>2]=385;break a}if(!c){J[d+4>>2]=386;break a}J[d+4>>2]=387;break a}g:{if(!(J[a+420>>2]|(J[a+416>>2]|b))){b=J[a+412>>2];if((b|0)>63|(b|0)==J[a+432>>2])break g}b=J[a>>2];J[b+20>>2]=125;gc[J[b+4>>2]](a,-1)}J[d+4>>2]=388;b=J[a+336>>2]}if((b|0)>0){c=0;while(1){g=c<<2;e=J[(g+a|0)+340>>2];h:{i:{if(J[a+224>>2]){if(J[a+408>>2])break i;if(J[a+416>>2])break h}b=J[e+20>>2];if(b>>>0>=16){f=J[a>>2];J[f+ -24>>2]=b;J[f+20>>2]=50;gc[J[J[a>>2]>>2]](a)}f=(b<<2)+d|0;b=J[f+56>>2];if(!b){b=gc[J[J[a+4>>2]>>2]](a,1,64)|0;J[f+56>>2]=b}H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;H[b+56|0]=0;H[b+57|0]=0;H[b+58|0]=0;H[b+59|0]=0;H[b+60|0]=0;H[b+61|0]=0;H[b+62|0]=0;H[b+63|0]=0;H[b+48|0]=0;H[b+49|0]=0;H[b+50|0]=0;H[b+51|0]=0;H[b+52|0]=0;H[b+53|0]=0;H[b+54|0]=0;H[b+55|0]=0;H[b+40|0]=0;H[b+41|0]=0;H[b+42|0]=0;H[b+43|0]=0;H[b+44|0]=0;H[b+45|0]=0;H[b+46|0]=0;H[b+47|0]=0;H[b+32| -0]=0;H[b+33|0]=0;H[b+34|0]=0;H[b+35|0]=0;H[b+36|0]=0;H[b+37|0]=0;H[b+38|0]=0;H[b+39|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;H[b+29|0]=0;H[b+30|0]=0;H[b+31|0]=0;H[b+16|0]=0;H[b+17|0]=0;H[b+18|0]=0;H[b+19|0]=0;H[b+20|0]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;b=d+g|0;J[b+36>>2]=0;J[b+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break i;break h}if(!J[a+408>>2])break h}b=J[e+24>>2];if(b>>> -0>=16){e=J[a>>2];J[e+24>>2]=b;J[e+20>>2]=50;gc[J[J[a>>2]>>2]](a)}e=(b<<2)+d|0;b=J[e+120>>2];if(!b){b=gc[J[J[a+4>>2]>>2]](a,1,256)|0;J[e+120>>2]=b}wc(b,0,256)}c=c+1|0;if((c|0)>2])continue;break}}J[d+16>>2]=-16;J[d+8>>2]=0;J[d+12>>2]=0;J[d+52>>2]=J[a+280>>2]}function XAa(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;f=bc+-64|0;bc=f;J[f+56>>2]=0;J[f+60>>2]=J[682146];a:{e=J[c+36>>2];b:{if(e){g=J[J[e>>2]+28>>2];J[695492]=0;ca(g|0,f+24|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!= -1)break b;e=Z()|0;break a}J[f+24>>2]=0}J[695492]=0;aa(4993,f+56|0,f+24|0)|0;e=J[695492];J[695492]=0;c:{d:{if((e|0)!=1){e=J[f+24>>2];J[f+24>>2]=0;if(!e)break d;J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break d;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break d}break c}e=Z()|0;vc(f+24|0);break a}e=J[f+56>>2];J[f+60>>2]=J[(e?e+12|0:2728584)>>2];e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{if(!d)break p;J[695492]=0;g=kf(f+56|0);e=J[695492];J[695492]=0;if((e| -0)==1)break n;J[695492]=0;e=J[J[d+12>>2]+((g>>>0)%M[d+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break n;if(!e)break p;while(1){if((g|0)==J[e+12>>2]){J[695492]=0;h=ga(5117,e+16|0,f+56|0,-1)|0;i=J[695492];J[695492]=0;if((i|0)==1)break f;if(!h)break o}e=J[e+8>>2];if(e)continue;break}}J[f+48>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[695492]=0;g=aa(5080,f+24|0,2389436)|0;e=J[695492];J[695492]=0;if((e|0)==1)break m;J[695492]=0;e=f+8|0;ca(5164,e|0,a|0, -f+56|0);h=J[695492];J[695492]=0;if((h|0)==1)break l;J[695492]=0;oa(5171,f+16|0,a|0,b|0,c|0,g|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break k;e=J[f+8>>2];J[f+8>>2]=0;q:{if(!e)break q;J[695492]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break e;if(h)break q;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break e}r:{if(!d)break r;J[695492]=0;h=aa(5168,d|0,f+56|0)|0;e=J[695492];J[695492]=0;s:{t:{if((e|0)!=1){e=J[f+16>>2];if(!e)break t;i=J[J[e>>2]+28>>2];J[695492]= -0;ca(i|0,f+8|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break s}e=Z()|0;break g}J[f+8>>2]=0}J[695492]=0;aa(4993,h+24|0,f+8|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;e=J[f+8>>2];J[f+8>>2]=0;u:{if(!e)break u;J[695492]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;j=J[695492];J[695492]=0;if((j|0)==1)break e;if(i)break u;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break e}e=J[h+24>>2];J[h+28>>2]=J[(e?e+12|0:2728584)>>2];J[695492]=0;e=J[g+24>>2];J[f+12>>2]=g;J[f+8>>2]=e;e=J[695492];J[695492]= -0;if((e|0)==1)break i;if(!J[f+8>>2])break r;while(1){J[695492]=0;ia(5172,a|0,b|0,c|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[f+8>>2];if(!e)break r;e=J[e>>2];J[f+8>>2]=e;if(e)continue;break}}sc(f+16|0);Bd(g)}sc(f+56|0);bc=f- -64|0;return}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;Bd(g);break a}e=Z()|0;vc(f+8|0);Bd(g);break a}e=Z()|0;break g}e=Z()|0;break g}e=Z()|0;vc(f+8|0)}sc(f+16|0);Bd(g);break a}e=Z()|0;break a}}ea(0)|0;yc();B()}sc(f+56|0);ba(e|0);B()}function v6(a,b){var c=0,d=0,e=0, -f=0,g=0,h=0,i=0,j=0;b=wc(b,0,196);e=K[a+188|0];H[b+8|0]=e;a:{if(!e)break a;if(e>>>0>=4){h=e&252;f=b+12|0;g=a+192|0;while(1){I[f+(c<<1)>>1]=J[g+(c<<2)>>2];j=c|1;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];j=c|2;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];j=c|3;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];c=c+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}e=e&3;if(!e)break a;i=0;while(1){I[(b+(c<<1)|0)+12>>1]=J[((c<<2)+a|0)+192>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+189|0];H[b+9|0]=f;b:{if(!f)break b;i=0;c=0;if(f>>>0>=4){j=f& -252;g=b+40|0;h=a+248|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break b;while(1){I[(b+(c<<1)|0)+40>>1]=J[((c<<2)+a|0)+248>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+190|0];H[b+10|0]=f;c:{if(!f)break c;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+60|0;h=a+288|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+ -(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break c;while(1){I[(b+(c<<1)|0)+60>>1]=J[((c<<2)+a|0)+288>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+191|0];H[b+11|0]=f;d:{if(!f)break d;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+88|0;h=a+344|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0; -e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break d;while(1){I[(b+(c<<1)|0)+88>>1]=J[((c<<2)+a|0)+344>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}J[b+108>>2]=J[a+384>>2];J[b+112>>2]=J[a+388>>2];J[b+116>>2]=J[a+392>>2];I[b+120>>1]=J[a+396>>2];I[b+122>>1]=J[a+400>>2];f=K[a+404|0];H[b+124|0]=f;e:{if(!f)break e;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+128|0;h=a+408|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<< -1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break e;while(1){I[(b+(c<<1)|0)+128>>1]=J[((c<<2)+a|0)+408>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+405|0];H[b+125|0]=f;f:{if(!f)break f;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+154|0;h=a+460|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break f; -while(1){I[(b+(c<<1)|0)+154>>1]=J[((c<<2)+a|0)+460>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}H[b+126|0]=K[a+512|0];J[b+184>>2]=J[a+524>>2];J[b+4>>2]=J[a+520>>2]}function Pna(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;g=bc-32|0;bc=g;e=d-c|0;j=(e|0)/12|0;h=J[a>>2];k=(b-h|0)/12|0;b=P(k,12)+h|0;a:{if((e|0)<=0){e=b;break a}e=a+8|0;b:{l=J[a+8>>2];i=J[a+4>>2];if((j|0)<=((l-i|0)/12|0)){k=i-b|0;h=(k|0)/12|0;if((h|0)>=(j|0)){f=i;h=d;break b}J[g+28>>2]=i;J[g+24>>2]=i; -H[g+16|0]=0;J[g+4>>2]=e;J[g+12>>2]=g+28;J[g+8>>2]=g+24;f=i;c:{h=P(h,12)+c|0;if((h|0)!=(d|0)){e=h;while(1){d:{if(H[e+11|0]>=0){l=J[e+4>>2];J[f>>2]=J[e>>2];J[f+4>>2]=l;J[f+8>>2]=J[e+8>>2];break d}l=J[e+4>>2];m=J[e>>2];J[695492]=0;ca(15,f|0,m|0,l|0);f=J[695492];J[695492]=0;if((f|0)==1)break c;f=J[g+28>>2]}f=f+12|0;J[g+28>>2]=f;e=e+12|0;if((e|0)!=(d|0))continue;break}}J[a+4>>2]=f;if((k|0)>0)break b;e=b;break a}b=Z()|0;LK(g+4|0);J[a+4>>2]=i;ba(b|0);B()}e:{f:{f=j+((i-h|0)/12|0)|0;if(f>>>0<357913942){J[g+ -20>>2]=e;e=(l-h|0)/12|0;i=e<<1;i=e>>>0>=178956970?357913941:f>>>0>>0?i:f;if(i){if(i>>>0>=357913942)break f;f=rc(P(i,12))}else f=0;J[g+4>>2]=f;e=f+P(k,12)|0;J[g+12>>2]=e;J[g+16>>2]=f+P(i,12);J[g+8>>2]=e;g:{if((c|0)==(d|0)){f=e;break g}f=P(j,12)+e|0;while(1){h:{if(H[c+11|0]>=0){d=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=d;J[e+8>>2]=J[c+8>>2];break h}d=J[c+4>>2];h=J[c>>2];J[695492]=0;ca(15,e|0,h|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}c=c+12|0;e=e+12|0;if((e|0)!=(f|0))continue;break}h=J[a>> -2];e=J[g+8>>2]}d=e;if((b|0)!=(h|0)){c=b;while(1){c=c-12|0;i=J[c+4>>2];d=d-12|0;J[d>>2]=J[c>>2];J[d+4>>2]=i;J[d+8>>2]=J[c+8>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;if((c|0)!=(h|0))continue;break}}c=J[a+4>>2];if((c|0)!=(b|0)){while(1){h=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=h;J[f+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;f=f+12|0;b=b+12|0;if((c|0)!=(b|0))continue;break}b=J[a+4>>2]}J[a+4>>2]=f;c=J[a>>2];J[a>>2]=d;J[a+8>>2]=J[g+16>>2];if((b|0)!=(c|0))while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b= -a;if((c|0)!=(a|0))continue;break}if(!c)break a;qc(c);break a}Gp(a);B()}Sd();B()}a=Z()|0;J[g+12>>2]=e;SK(g+4|0);ba(a|0);B()}d=f;k=P(j,12)+b|0;j=P((f-k|0)/12|0,12)+b|0;if(i>>>0>j>>>0){e=j;while(1){l=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=l;J[d+8>>2]=J[e+8>>2];J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;d=d+12|0;e=e+12|0;if(i>>>0>e>>>0)continue;break}}J[a+4>>2]=d;if((f|0)!=(k|0))while(1){a=f-12|0;if(H[f-1|0]<0)qc(J[a>>2]);d=j-12|0;e=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=e;J[a+8>>2]=J[d+8>>2];H[j-1|0]=0;J[d>>2]=0;f= -a;j=d;if((b|0)!=(d|0))continue;break}if((c|0)==(h|0)){e=b;break a}f=b;while(1){i:{if((c|0)==(f|0))break i;d=K[c+11|0];a=d<<24>>24;if(H[f+11|0]>=0){if((a|0)>=0){a=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=a;J[f+8>>2]=J[c+8>>2];break i}yf(f,J[c>>2],J[c+4>>2]);break i}a=(a|0)<0;Df(f,a?J[c>>2]:c,a?J[c+4>>2]:d)}f=f+12|0;c=c+12|0;if((h|0)!=(c|0))continue;break}e=b}bc=g+32|0;return e|0}function d8a(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;c=bc-128|0;bc=c;a:{b:{c:{d= -a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!=2)){Fe(f+100|0,f,J[f+1164>>2],J[f+1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+12>>2])break e;J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>>0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a),J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+4>>2]=2147483632;if(!lg(f, -e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]-j>>3;n=J[e+8>>2];while(1){a=J[j+12>>2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i|0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<<2);J[m>>2]=g}i3(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a=d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h;i=k?0:d+i|0;g=(d<< -2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o=o-1|0;if(o)continue;break}if(lg(f,e))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632; -oa(2354,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0; -J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2355,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0; -ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function d0a(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;h=bc-16|0;bc=h;k=J[a+20>>2];f=J[a+16>>2];l=J[a+12>>2];j=J[a+8>>2];J[h+8>>2]=J[a+24>>2];J[h+4>>2]=0;d=J[a+4>>2];g=J[d+8>>2];c=J[g+40>>2];a:{if(J[g+64>>2]==1){J[a+4>>2]=c;J[c+56>>2]=J[d+56>>2];h1(a,b);f=J[g+40>>2];J[d+56>>2]=J[f+56>>2];if(J[b>>2]==15){e=K[f+63|0];b=e<<24>>24;if((b|0)>0){tc(d+76|0,f+76|0,e);f=J[g+40>>2];b=K[f+63|0]}H[d+63|0]=b;H[f+63|0]=0}J[a+ -4>>2]=d;break a}e=J[d+52>>2];o=K[d+35|0];n=J[c+24>>2];i=J[d+56>>2];b:{c:{d:{if(!(!i|f>>>0>=k>>>0)){d=e;break d}if(j>>>0>=l>>>0)break b;p=!o;while(1){e:{d=e;c=j;J[h+4>>2]=65535;f:{g:{h:{if(M[a+20>>2]>f>>>0){j=c+2|0;i=L[c>>1];if(!(i>>>0>31|!(1<>2]=12;J[J[a+4>>2]+56>>2]=i;break b}c=i&15;e=J[n+52>>2];g=J[(e+(i>>>2&252)|0)+(L[e+(i>>>9&126)>>1]<<2)>>2];m=L[J[n+188>>2]+((c|g<<4&1048560)<<1)>>1];e=m>>>0<256?1:2;i:{j:{k:{if(g>>>(c|16)&1){J[h+4>>2]=m;break k}if(!(!m|i-63744>>>0<4294960896& -p)){J[h+4>>2]=m;break k}e=J[n+224>>2];if(!e)break j;e=Jt(e,i,h+4|0,o<<24>>24);c=e>>31;e=(c^e)-c|0}if(e-3>>>0<4294967294)break j;c=J[h+4>>2];if((e|0)==1&c>>>0>127)break j;if((e|0)!=2)break i;if((c+24159&65534)>>>0>23901)break j;if((c+95&254)>>>0<94)break i}J[h+4>>2]=65535;break e}if((c|0)==65535)break e;e=c>>>0>255;l:{if((e|0)==d<<24>>24)break l;H[f|0]=e?14:15;f=f+1|0;c=J[h+8>>2];if(!c)break l;d=J[a+8>>2];J[h+8>>2]=c+4;J[c>>2]=(j-d>>1)-1}g=J[h+4>>2];if(g>>>0<=255){if(f>>>0>=k>>>0)break h;H[f|0]=g; -f=f+1|0;c=J[h+8>>2];if(!c)break f;d=J[a+8>>2];J[h+8>>2]=c+4;J[c>>2]=(j-d>>1)-1;break f}g=g>>>8^-128;if(f>>>0>>0){H[f|0]=g;c=J[h+8>>2];if(c){d=J[a+8>>2];J[h+8>>2]=c+4;J[c>>2]=(j-d>>1)-1}g=K[h+4|0]^-128;d=f+1|0;if(d>>>0>>0){H[f+1|0]=g;f=f+2|0;c=J[h+8>>2];if(!c)break f;d=J[a+8>>2];J[h+8>>2]=c+4;J[c>>2]=(j-d>>1)-1;break f}f=J[a+4>>2];c=H[f+63|0];H[f+63|0]=c+1;H[(c+f|0)+76|0]=g;J[b>>2]=15;f=d;break f}c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g;d=K[h+4|0];g=J[a+4>>2];c=H[g+63|0];H[g+63| -0]=c+1;H[(c+g|0)+76|0]=d^128;break g}J[b>>2]=15;break b}c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g}J[b>>2]=15}if(j>>>0>>0)continue;break b}break}c=10;if((i&63488)!=55296)break c;c=12;if(i&1024)break c}c=0;if(j>>>0>=l>>>0)break c;e=L[j>>1];c=(e&64512)==56320;i=c?(e+(i<<10)|0)-56613888|0:i;j=(c<<1)+j|0;c=c?10:12}e=d;J[b>>2]=c;J[J[a+4>>2]+56>>2]=i}m:{if(!(e&255)|J[b>>2]>0|(!K[a+2|0]|j>>>0>>0))break m;d=J[a+4>>2];if(J[d+56>>2])break m;c=J[a+8>>2];g=j-c>>1;n:{if((g|0)<=0){e=-1;break n}e= -g-1|0;if((L[c+(e<<1)>>1]&64512)!=56320)break n;if(e)if((L[(c+(g<<1)|0)-4>>1]&64512)!=55296)break n;e=g-2|0}J[h+12>>2]=f;hi(d,744692,1,h+12|0,k,h+8|0,e,b);f=J[h+12>>2];e=0}J[a+16>>2]=f;J[a+8>>2]=j;J[J[a+4>>2]+52>>2]=e<<24>>24}bc=h+16|0}function Nxa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=bc-32|0;bc=b;d=a+8|0;a:{if(J[a+8>>2]){ei(b+28|0,a,d);break a}J[b+28>>2]=0;md(b+28|0,0)}b:{c:{d:{e:{if(J[d>>2]){J[695492]=0;ca(5353,b+24|0,a|0,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e;break d}J[695492]=0;J[b+24>> -2]=0;aa(4985,b+24|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d}f:{g:{h:{if(J[d>>2]){J[695492]=0;ca(5351,b+20|0,a|0,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break h;break g}J[695492]=0;J[b+20>>2]=0;aa(4985,b+20|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g}i:{j:{k:{if(J[d>>2]){J[695492]=0;ca(5352,b+16|0,a|0,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break k;break j}J[695492]=0;J[b+16>>2]=0;aa(4985,b+16|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j}l:{m:{n:{if(J[d>>2]){J[695492]=0;ca(5354, -b+12|0,a|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)break n;break m}J[695492]=0;J[b+12>>2]=0;aa(4985,b+12|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m}d=0;o:{p:{a=J[b+28>>2];q:{r:{s:{if(!a)break s;c=J[a+8>>2];if((c|0)<=0)break s;e=J[a+12>>2];if(J[b+24>>2]|(e|0)<=0)break s;a=J[b+12>>2];if(a){J[b+12>>2]=0;break r}a=J[b+20>>2];t:{if(!a)break t;J[695492]=0;a=J[a+12>>2];if(a)a=J[a+4>>2];else a=0;d=J[695492];J[695492]=0;if((d|0)==1)break p;if((a|0)!=(c|0))break t;J[695492]=0;a=J[J[b+20>>2]+12>>2]; -if(a)a=J[a+8>>2];else a=0;f=J[695492];J[695492]=0;d=1;if((f|0)==1)break p;if((a|0)==(e|0))break s}a=J[b+16>>2];if(!(!a|(c|0)!=L[a+10>>1])){d=1;if(L[a+8>>1]==(e|0))break s}d=0}a=J[b+12>>2];J[b+12>>2]=0;if(!a)break q}J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(c)break q;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[b+16>>2];J[b+16>>2]=0;u:{if(!a)break u;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break b; -if(c)break u;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[b+20>>2];J[b+20>>2]=0;v:{if(!a)break v;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(c)break v;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[b+24>>2];J[b+24>>2]=0;w:{if(!a)break w;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(c)break w;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[b+ -28>>2];J[b+28>>2]=0;x:{if(!a)break x;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break o;if(c)break x;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break o}bc=b+32|0;return d|0}d=Z()|0;vc(b+12|0);break l}break b}d=Z()|0}vc(b+16|0);break i}d=Z()|0}vc(b+20|0);break f}d=Z()|0}vc(b+24|0);break c}d=Z()|0}vc(b+28|0);ba(d|0);B()}ea(0)|0;yc();B()}function J$(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=bc-96|0;bc=f;a:{if(!b|!c)break a;b:{c:switch(d-1|0){case 0:if(!e)break b; -b=0;d=0;c=0;d:{if(!a)break d;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break d;c=(b^-1)+a>>>0<249?b:0}J[f+32>>2]=36421;Cc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f+32|0);break a;case 1:if(!e)break b;b=0;d=0;c=0;e:{if(!a)break e;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break e;c=(b^-1)+a>>>0<249?b:0}J[f+48>>2]=36467;Cc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f+48|0);break a;case 2:if(e)break b;b=0;d=0;c=0;f:{if(!a)break f;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break f; -c=(b^-1)+a>>>0<249?b:0}J[f+64>>2]=37237;Cc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f- -64|0);break a;case 3:if(e)break b;b=0;d=0;c=0;g:{if(!a)break g;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break g;c=(b^-1)+a>>>0<249?b:0}J[f+80>>2]=36585;Cc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f+80|0);break a;default:break c}b=0;d=0;c=0;h:{if(!a)break h;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break h;c=(b^-1)+a>>>0<249?b:0}J[f>>2]=34287;Cc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f);break a}g=sp(c,f+92|0); -i:{i=J[b+40>>2];if(i)break i;h=J[b+32>>2];if(h)h=J[h+80>>2];else h=0;i=up(0,h);J[b+40>>2]=i;if(i)break i;b=0;c=0;d=0;j:{if(!a)break j;b=J[a>>2];c=J[a+4>>2];d=0;if((J[a+28>>2]&-2)!=-1412623820)break j;d=(b^-1)+a>>>0<249?b:0}J[f+16>>2]=38373;Cc(0,c,b,d,0,23,2,3,38373,0,0,0,32863,f+16|0);if(g)gc[J[659451]](g);a=J[f+92>>2];if(!a)break a;gc[J[659451]](a);break a}h=g?g:c;c=J[b+32>>2];k:{if(!c)break k;c=J[c+44>>2];if(!c)break k;c=bn(J[c+40>>2],h,J[f+92>>2]);if(!c|J[c+36>>2])break k;k=J[c+44>>2];J[c+44>> -2]=0;d0(J[J[J[b+32>>2]+44>>2]+40>>2],h,J[f+92>>2]);tJ(c)}c=bn(i,h,J[f+92>>2]);l:{if(c){if(J[c+36>>2]){if(g)gc[J[659451]](g);a=J[f+92>>2];if(!a)break a;gc[J[659451]](a);break a}h=J[f+92>>2];if(!h)break l;gc[J[659451]](h);J[f+92>>2]=0;break l}c=gc[J[659447]](56)|0;if(!c){K$(a);if(g)gc[J[659451]](g);a=J[f+92>>2];if(!a)break a;gc[J[659451]](a);break a}J[c>>2]=0;J[c+4>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0; -J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=15;j=$e(h);J[c+8>>2]=j;if(!j){K$(a);if(g)gc[J[659451]](g);a=J[f+92>>2];if(a)gc[J[659451]](a);gc[J[659451]](c);break a}j=J[f+92>>2];J[c+48>>2]=j;if(KJ(i,h,j,c)){tJ(c);if(!g)break a;gc[J[659451]](g);break a}J[c+44>>2]=k}J[c+36>>2]=d;m:{if(!(!a|(J[a+28>>2]&-2)!=-1412623820)){J[c+40>>2]=e;if(!e)break m;J[e+20>>2]=1;break m}l=c,m=qw(J[b+32>>2],e),J[l+40>>2]=m}J[c+20>>2]=b;J[c+32>>2]=J[b+32>>2];a=J[b+16>>2];n:{if(!a){J[b+12>>2]=c;break n}J[a+24>>2]=c;J[c+28>>2]=a}J[b+ -16>>2]=c;if(g)gc[J[659451]](g)}bc=f+96|0}function z7(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;a:{if(!a)break a;f=!b;if(f)break a;e=Oj(a,229935);if(!e)break a;a=!e;if(!(f|a)){c=bc+-64|0;bc=c;b:{if(a|f)break b;p=f?-1:J[b>>2];j=b?J[b+4>>2]:-1;a=b?J[b+8>>2]:-1;n=b?J[b+20>>2]:0;o=b?J[b+24>>2]:0;k=b?J[b+12>>2]:-1;d=(a|0)==32;s=d?24:a;t=(P(s,p)+31|0)/32|0;q=+Q(n>>>0)*39.37+.5;c:{if(R(q)<2147483648){n=~~q;break c}n=-2147483648}q=+Q(o>>>0)*39.37+.5;d:{if(R(q)<2147483648){o= -~~q;break d}o=-2147483648}l=1;f=0;e:{if(d)break e;g=b?J[b+36>>2]:0;if(g){f=g?J[g+12>>2]:0;h=f<<2;i=J[g>>2];break e}if((a|0)==1){f=2;h=8;i=2637628;g=0;break e}h=4<>>0>=4){u=g&2147483644;g=0;while(1){H[a+1|0]=d;H[a+2|0]=d;H[a|0]=d;d=d+m|0;H[a+6|0]=d;H[a+5|0]=d;H[a+4|0]=d;d=d+m|0;H[a+10|0]=d;H[a+9|0]=d;H[a+8|0]=d;d=d+m|0;H[a+14|0]=d;H[a+13|0]=d;H[a+12|0]=d;a=a+16|0; -d=d+m|0;g=g+4|0;if((u|0)!=(g|0))continue;break}}if(!r){g=0;break e}while(1){H[a+1|0]=d;H[a+2|0]=d;H[a|0]=d;a=a+4|0;d=d+m|0;g=0;l=l+1|0;if((r|0)!=(l|0))continue;break}l=0}Xg(e,0,0);I[c+62>>1]=19778;a=h+54|0;d=t<<2;m=P(d,j);r=a+m|0;I[c+60>>1]=r;I[c+56>>1]=0;I[c+58>>1]=r>>>16;I[c+54>>1]=a;I[c+52>>1]=a>>>16;Td(c+62|0,1,2,e);Td(c+60|0,1,2,e);Td(c+58|0,1,2,e);Td(c+56|0,1,2,e);Td(c+56|0,1,2,e);Td(c+54|0,1,2,e);Td(c+52|0,1,2,e);J[c+44>>2]=40;J[c+40>>2]=p;J[c+36>>2]=j;I[c+50>>1]=1;J[c+32>>2]=0;I[c+48>>1]= -s;J[c+28>>2]=m;J[c+24>>2]=n;J[c+20>>2]=o;J[c+16>>2]=f;J[c+12>>2]=f;Td(c+44|0,1,4,e);Td(c+40|0,1,4,e);Td(c+36|0,1,4,e);Td(c+50|0,1,2,e);Td(c+48|0,1,2,e);Td(c+32|0,1,4,e);Td(c+28|0,1,4,e);Td(c+24|0,1,4,e);Td(c+20|0,1,4,e);Td(c+16|0,1,4,e);Td(c+12|0,1,4,e);f:{if((f|0)<=0)break f;if((Td(i,1,h,e)|0)!=(h|0)){if(l)break b;qc(i);break b}if(l)break f;qc(i)}g:{h:{i:{j:{n=(s|0)==1&(g|0)!=0;k:{if(n){if(!K[J[g>>2]])LM(b,b);wD(b);break k}wD(b);if((s|0)==24)break j}a=b?J[b+40>>2]:0;if((j|0)<=0)break i;h=0;f=k<< -2;i=0-f|0;a=P(f,j-1|0)+a|0;f=0;while(1){f=(Td(a,1,d,e)|0)!=(d|0)?1:f;a=a+i|0;h=h+1|0;if((j|0)!=(h|0))continue;break}break i}a=b?J[b+40>>2]:0;if((j|0)<=0)break h;i=d+P(p,-3)|0;d=0;if((p|0)>0){h=a+(P(k,j-1|0)<<2)|0;o=0-k<<2;f=0;while(1){a=0;while(1){k=(a<<2)+h|0;H[c+10|0]=K[k|0];H[c+9|0]=K[k+1|0];H[c+8|0]=K[k+2|0];f=(Td(c+8|0,1,3,e)|0)!=3?1:f;a=a+1|0;if((p|0)!=(a|0))continue;break}if((i|0)>0){a=0;k=H[c+8|0];while(1){Ph(k,e);a=a+1|0;if((i|0)!=(a|0))continue;break}}h=h+o|0;d=d+1|0;if((j|0)!=(d|0))continue; -break}break i}if((i|0)<=0)break h;while(1){a=0;while(1){Ph(0,e);a=a+1|0;if((i|0)!=(a|0))continue;break}d=d+1|0;if((j|0)!=(d|0))continue;break}}wD(b);if(K[J[g>>2]]|!n)break g;LM(b,b);break g}wD(b)}}bc=c- -64|0}fg(e)}}function j8a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!=2)){Fe(f+100|0,f,J[f+1164>>2],J[f+1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+ -12>>2])break e;J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>>0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a),J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+4>>2]=2147483632;if(!lg(f,e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]-j>>3;n=J[e+8>>2];while(1){a=J[j+12>>2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^ -h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i|0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<<2);J[m>>2]=g}q3(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a=d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h;i=k?0:d+i|0;g=(d<<2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o=o-1|0;if(o)continue;break}if(lg(f,e))continue; -break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2346,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>> -2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632; -d=J[a+1560>>2];J[695492]=0;oa(2347,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function e8a(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;c= -bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!=2)){Fe(f+100|0,f,J[f+1164>>2],J[f+1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+12>>2])break e;J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>>0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a),J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+ -4>>2]=2147483632;if(!lg(f,e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]-j>>3;n=J[e+8>>2];while(1){a=J[j+12>>2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i|0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<<2);J[m>>2]=g}k3(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a=d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h; -i=k?0:d+i|0;g=(d<<2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o=o-1|0;if(o)continue;break}if(lg(f,e))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]= -0;J[c+32>>2]=2147483632;oa(2352,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+ -52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2353,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a= -Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function c8a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!=2)){Fe(f+100|0,f,J[f+1164>>2],J[f+1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+12>>2])break e;J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>>0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]= -a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a),J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+4>>2]=2147483632;if(!lg(f,e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]-j>>3;n=J[e+8>>2];while(1){a=J[j+12>>2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i|0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<< -2);J[m>>2]=g}g3(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a=d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h;i=k?0:d+i|0;g=(d<<2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o=o-1|0;if(o)continue;break}if(lg(f,e))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+ -80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2356,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>> -2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2357,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)== -1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function b8a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!=2)){Fe(f+100|0,f,J[f+1164>>2],J[f+ -1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+12>>2])break e;J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>>0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a),J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+4>>2]=2147483632;if(!lg(f,e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]-j>>3;n=J[e+8>>2];while(1){a=J[j+12>> -2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i|0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<<2);J[m>>2]=g}e3(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a=d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h;i=k?0:d+i|0;g=(d<<2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o=o-1| -0;if(o)continue;break}if(lg(f,e))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2358,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a); -a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+ -8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2359,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function a8a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!=2)){Fe(f+100|0,f,J[f+1164>>2],J[f+1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+12>>2])break e;J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>>0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a), -J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+4>>2]=2147483632;if(!lg(f,e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]-j>>3;n=J[e+8>>2];while(1){a=J[j+12>>2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i|0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<<2);J[m>>2]=g}c3(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a= -d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h;i=k?0:d+i|0;g=(d<<2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o=o-1|0;if(o)continue;break}if(lg(f,e))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+ -60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2360,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>> -2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2361,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>> -2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function _7a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!=2)){Fe(f+100|0,f,J[f+1164>>2],J[f+1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+12>>2])break e;J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>> -0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a),J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+4>>2]=2147483632;if(!lg(f,e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]-j>>3;n=J[e+8>>2];while(1){a=J[j+12>>2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i| -0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<<2);J[m>>2]=g}_2(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a=d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h;i=k?0:d+i|0;g=(d<<2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o=o-1|0;if(o)continue;break}if(lg(f,e))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]= -0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2364,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+ -112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2365,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0); -a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function $7a(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;c=bc-128|0;bc=c;a:{b:{c:{d=a+96|0;d:{if(!K[d+1468|0]){e=a+1668|0;f=a+1700|0;if(!(!K[f+1160|0]|J[f+1172>>2]!= -2)){Fe(f+100|0,f,J[f+1164>>2],J[f+1168>>2]);J[f+1172>>2]=3}Pd(f);e:{if(!J[f+12>>2])break e;J[f+1176>>2]=J[f+84>>2];d=J[e+20>>2];g=J[f+80>>2];a=(J[f+88>>2]-g|0)+2|0;f:{if(a>>>0<=M[e+24>>2])break f;if(d)qc(d);J[e+24>>2]=a;d=rc(a>>>0>536870911?-1:a<<3);J[e+20>>2]=d;if((a|0)==J[e+16>>2])break f;h=J[e+12>>2];if(h){qc(h);d=J[e+20>>2]}J[e+16>>2]=a;r=e,s=rc(a),J[r+12>>2]=s}J[e+28>>2]=d;J[e>>2]=g;J[e+4>>2]=2147483632;if(!lg(f,e))break e;while(1){l=J[b>>2];m=J[b+4>>2];p=J[b+8>>2];j=J[e+20>>2];o=J[e+28>>2]- -j>>3;n=J[e+8>>2];while(1){a=J[j+12>>2];d=I[j+8>>1];h=I[j+10>>1];g=h>>31;h=(g^h)-g|0;i=J[m+4>>2];g:{if(h>>>0<=i>>>0){g=J[m>>2];break g}g=J[m>>2];k=i;i=h+255&130816;if((k|0)==(i|0))break g;if(g)qc(g);J[m+4>>2]=i;g=rc(i<<2);J[m>>2]=g}a3(p,g,d,n,h);h:{if(J[l+16>>2]<(n|0)|J[l+8>>2]>(n|0))break h;k=I[j+10>>1]<0;i=k?0:a;q=K[a|0];a=J[l+4>>2];i:{if((d|0)>=(a|0)){a=d;break i}d=a-d|0;h=h-d|0;if((h|0)<=0)break h;i=k?0:d+i|0;g=(d<<2)+g|0}k=J[l>>2];d=J[l+12>>2];if((d|0)<(a+h|0)){d=d-a|0;if((d|0)<0)break h;h=d+ -1|0}Rg(k,a,n,h,g,i,q)}j=j+8|0;o=o-1|0;if(o)continue;break}if(lg(f,e))continue;break}}break d}if(!K[d+1469|0]){J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[695492]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;oa(2362,a+1700|0,d|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0; -if((a|0)==1)break c;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a);break d}J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+124>>2]=0;J[c+104>>2]=0;J[c+108>>2]=0;J[c+96>>2]=2147483632;J[c+80>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+72>>2]=0;J[c+76>>2]=0;J[c+64>>2]=2147483632;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=2147483632;J[c+16>>2]=0; -J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2147483632;d=J[a+1560>>2];J[695492]=0;oa(2363,a+1700|0,(((d|0)==1?1216:1340)+a|0)+96|0,c- -64|0,c+32|0,c+96|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c+52>>2];if(a)qc(a);a=J[c+40>>2];if(a)qc(a);a=J[c+84>>2];if(a)qc(a);a=J[c+72>>2];if(a)qc(a);a=J[c+116>>2];if(a)qc(a);a=J[c+104>>2];if(!a)break d;qc(a)}bc=c+128|0;return}a=Z()|0;break a}a=Z()|0;ee(c)}ee(c+32|0);ee(c- -64|0);ee(c+96|0);ba(a|0);B()}function l$(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;h=bc-32|0;bc=h;e=J[a+248>>2];a:{if((e|0)>=41){f=89;if(!(J[a+360>>2]&524288)|e>>>0>1024)break a}if(d)J[d>>2]=0;if(!b){f=1;break a}g=xk(b);f=0;i=!b;b:{if(i)break b;j=(g|0)<=0;if(j)break b;e=HJ();if(!e)break b;c:{d:{if(i|j)break d;f=MJ(0);if(!f)break d;J[f+8>>2]=0;J[f+4>>2]=3126;J[f>>2]=b;if(!Aj(J[f+16>>2],b,g))break c;gc[J[659451]](f)}f=0}if(!f){yj(e);f=0;break b}b=CB(e);if(!b){cn(f);yj(e);f=0;break b}J[b>>2]=f;J[b+4>>2]=0;r0(J[f+16>>2],b);e:{f:{g=J[e+40>>2];f= -J[e+44>>2];g:{if((g|0)<(f|0)){f=J[e+48>>2];break g}J[e+44>>2]=f<<1;f=gc[J[659452]](J[e+48>>2],f<<3)|0;J[e+48>>2]=f;if(!f)break f;g=J[e+40>>2]}J[(g<<2)+f>>2]=b;J[e+40>>2]=g+1;J[e+36>>2]=b;break e}ke(e,0);dh(b);J[e+44>>2]=J[e+44>>2]/2}f=e}e=f;if(!e){f=27;break a}J[e+4>>2]=c?c:e;b=J[e+296>>2];if(b)dn(b);b=J[a+296>>2];J[e+296>>2]=b;m=e,n=le(b,9668,3),J[m+312>>2]=n;m=e,n=le(J[e+296>>2],4071,5),J[m+316>>2]=n;m=e,n=le(J[e+296>>2],14838,36),J[m+320>>2]=n;if(J[a+328>>2]>0){b=0;while(1){c=J[a+336>>2];f=b<< -2;lw(e,J[c+f>>2],J[c+(f|4)>>2]);b=b+2|0;if((b|0)>2])continue;break}}g=J[e>>2];J[e>>2]=J[a>>2];mw(e);J[e+16>>2]=J[a+16>>2];J[e+360>>2]=J[a+360>>2];J[e+272>>2]=J[a+272>>2];b=J[a+8>>2];h:{if(!b){b=wp(28555);if(!b){J[e+296>>2]=0;J[e>>2]=g;yj(e);f=1;break a}J[b+92>>2]=64;c=J[e+296>>2];J[b+80>>2]=c;YJ(c);J[e+8>>2]=b;c=b;break h}J[e+8>>2]=b;k=J[b+16>>2];l=J[b+12>>2];c=0}f=zB(b,2297);i:{if(!f){J[e+296>>2]=0;J[e>>2]=g;yj(e);f=1;if(c)break i;break a}b=J[e+8>>2];J[b+12>>2]=0;J[b+16>>2]=0;Ug(b,f);ow(e, -J[J[e+8>>2]+12>>2]);J[e+172>>2]=7;b=J[a+248>>2];J[e+104>>2]=0;J[e+248>>2]=b+1;b=J[a+276>>2];J[e+276>>2]=b;if(J[a+104>>2]|J[a+16>>2])J[e+276>>2]=b|8;J[e+364>>2]=J[a+364>>2];J[e+348>>2]=J[a+348>>2];J[e+352>>2]=J[a+352>>2];jB(e);b=J[J[e+36>>2]+16>>2];f=K[b|0];j:{if(!f)break j;if(!((f|0)!=60|K[b+1|0]!=47)){Pe(e,85,0);break j}if(J[e+172>>2]==-1?J[e+212>>2]:0)break j;J[e+84>>2]=86;J[h+16>>2]=10198;Cc(0,0,0,e,0,1,86,3,0,0,0,0,32890,h+16|0);J[e+12>>2]=0;if(J[e+288>>2])break j;J[e+212>>2]=1}k:{if(J[e+52>> -2]==J[J[e+8>>2]+12>>2]|(J[e+172>>2]==-1?J[e+212>>2]:0))break k;J[e+84>>2]=85;J[h>>2]=17333;Cc(0,0,0,e,0,1,85,3,0,0,0,0,32890,h);J[e+12>>2]=0;if(J[e+288>>2])break k;J[e+212>>2]=1}l:{m:{n:{if(!J[e+12>>2]){b=J[e+84>>2];f=b>>>0<=1?1:b;b=J[e+8>>2];break n}b=J[e+8>>2];if(!d){f=0;break n}b=J[J[b+12>>2]+12>>2];J[d>>2]=b;if(b)while(1){J[b+20>>2]=0;b=J[b+24>>2];if(b)continue;break}f=0;b=J[J[e+8>>2]+12>>2];J[b+12>>2]=0;break m}if(!b)break l;b=J[b+12>>2]}gl(b);b=J[e+8>>2];J[b+16>>2]=k;J[b+12>>2]=l}J[a+440>>2]= -J[a+440>>2]+J[e+440>>2];if(J[e+388>>2])UJ(e+384|0,a+384|0);J[e+348>>2]=0;J[e+352>>2]=0;J[e+296>>2]=0;J[e>>2]=g;yj(e);if(!c)break a}cr(c)}bc=h+32|0;return f}function Y_(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(!$v(J[a+16>>2],804982)){e=J[a+16>>2];c=rc(8);J[695492]=0;f=aa(3182,c|0,804982)|0;d=J[695492];J[695492]=0;b:{if((d|0)!=1){c=rc(8);c:{if(b){J[695492]=0;d=aa(3183,c|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;d=od(d,805364);break c}J[695492]=0;d=$(3184,c|0)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break a}xg(e,f,d);e=J[a+16>>2];c=rc(8);J[695492]=0;f=aa(3182,c|0,805856)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;c=rc(8);d:{if(b){J[695492]=0;d=aa(3183,c|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;d=od(d,806245);break d}J[695492]=0;d=$(3184,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a}xg(e,f,d);e=J[a+16>>2];c=rc(8);J[695492]=0;f=aa(3182,c|0,806713)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;c=rc(8);e:{if(b){J[695492]=0;d=aa(3183,c|0,b|0)|0;g=J[695492];J[695492]= -0;if((g|0)==1)break a;d=od(d,807140);break e}J[695492]=0;d=$(3184,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a}xg(e,f,d);e=J[a+16>>2];c=rc(8);J[695492]=0;f=aa(3182,c|0,807509)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;c=rc(8);f:{if(b){J[695492]=0;d=aa(3183,c|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;d=od(d,807797);break f}J[695492]=0;d=$(3184,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a}xg(e,f,d);e=J[a+16>>2];c=rc(8);J[695492]=0;d=aa(3182,c|0,808145)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break a;c=rc(8);g:{if(b){J[695492]=0;f=aa(3183,c|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1)break g;break a}J[695492]=0;b=$(3184,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;xg(e,d,b);c=rc(16);J[695492]=0;b=$(3185,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[a+32>>2];c=rc(8);J[695492]=0;d=aa(3182,c|0,804982)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;xg(e,d,b);c=rc(16);J[695492]=0;b=$(3185,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[a+32>>2];c=rc(8);J[695492]= -0;d=aa(3182,c|0,805856)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;xg(e,d,b);c=rc(16);J[695492]=0;b=$(3185,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[a+32>>2];c=rc(8);J[695492]=0;d=aa(3182,c|0,808145)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;xg(e,d,b);c=rc(16);J[695492]=0;b=$(3185,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[a+32>>2];c=rc(8);J[695492]=0;d=aa(3182,c|0,806713)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;xg(e,d,b);c=rc(16);J[695492]=0;b=$(3185,c|0)|0; -e=J[695492];J[695492]=0;if((e|0)==1)break a;a=J[a+32>>2];c=rc(8);J[695492]=0;e=aa(3182,c|0,807509)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break b;break a}xg(e,d,od(f,808510));od(b,808785);kw(a,804982,b);kw(a,805856,b);kw(a,808145,b);kw(a,806713,b);kw(a,807509,b);return}break a}xg(a,e,b)}return}a=Z()|0;qc(c);ba(a|0);B()}function Ykb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=bc-160|0;bc=i;a:{b:{if(kd(a,254944,13))break b;c:switch(K[a+13|0]){case 0:case 9:case 10:case 13:case 32:break c; -default:break b}a=J[e+32>>2];d:{e:{if(!a|!J[a+72>>2])break e;if(!zi(242772,J[a+92>>2]))break e;if(J[a+80>>2])break d}b=J[e+32>>2];a=I[b+12>>1];J[b+40>>2]=a;J[i+16>>2]=a;a=i+32|0;Vf(a,242708,i+16|0);c=yr(J[e+32>>2],242772,a);if(c)break a}a=J[e+32>>2];f:{g:{if(!a|!J[a+72>>2])break g;if(!zi(242868,J[a+92>>2]))break g;if(J[a+80>>2])break f}b=J[e+32>>2];a=I[b+14>>1];J[b+44>>2]=a;J[i>>2]=a;a=i+32|0;Vf(a,242708,i);c=yr(J[e+32>>2],242868,a);if(c)break a}J[e>>2]=J[e>>2]&-17;J[d>>2]=1645;c=0;break a}h:{if(kd(a, -254958,21))break h;c=0;switch(K[a+21|0]){case 0:case 9:case 10:case 13:case 32:break a;default:break h}}i:{if(kd(a,241846,7))break i;c=a+7|0;j:switch(K[a+7|0]){case 9:case 10:case 13:case 32:H[a+7|0]=0;c=a+8|0;break;case 0:break j;default:break i}c=yr(J[e+32>>2],a,c);break a}g=J[e+32>>2];c=a;k:{while(1){l:{f=-1;m:{n:{d=K[c|0];switch(d|0){case 0:break k;case 9:break l;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break m;default:break n}}if((d|0)==32)break l}c=c+1|0;continue}break}H[c|0]= -0;f=d}d=0;o:{if(!a|!K[a|0])break o;j=zi(a,g+112|0);if(!j)break o;d=J[j>>2];if(d>>>0>=83){d=(J[g+104>>2]+(d<<4)|0)-1328|0;break o}d=(d<<4)+252368|0}if((f|0)!=-1)H[c|0]=f;if(!(J[d+4>>2]!=1?d:0)){if(K[c|0]){H[c|0]=0;c=c+1|0}f=a+b|0;while(1){b=K[c|0];if(!((b|0)!=32&(b|0)!=9)){c=c+1|0;continue}break}b=((b|0)==34)+c|0;p:{if(b>>>0>=f>>>0)break p;while(1){q:{r:{f=f-1|0;switch(K[f|0]-9|0){case 25:break q;case 0:case 23:break r;default:break p}}H[f|0]=0;if(b>>>0>>0)continue;break p}break}H[f|0]=0}c=yr(J[e+ -32>>2],a,b);break a}c=tl(e+40|0,242198,a,b);if(c)break a;l=J[J[e+40>>2]>>2];d=0;s:{t:{u:{a=J[e+48>>2];switch(a|0){case 0:break s;case 1:break u;default:break t}}J[e+48>>2]=0;break s}g=a-1|0;j=g&3;b=0;c=1;if(a-2>>>0>=3){m=g&-4;while(1){f=J[e+40>>2];a=d<<2;n=f+a|0;h=f;f=c<<2;J[n>>2]=J[h+f>>2];h=J[e+40>>2];J[h+(a|4)>>2]=J[(f+h|0)+4>>2];h=J[e+40>>2];J[h+(a|8)>>2]=J[(f+h|0)+8>>2];h=a|12;a=J[e+40>>2];J[h+a>>2]=J[(a+f|0)+12>>2];c=c+4|0;d=d+4|0;k=k+4|0;if((m|0)!=(k|0))continue;break}}if(j)while(1){a=J[e+ -40>>2];J[a+(d<<2)>>2]=J[a+(c<<2)>>2];c=c+1|0;d=d+1|0;b=b+1|0;if((j|0)!=(b|0))continue;break}J[e+48>>2]=g;if(!g){d=0;break s}a=J[J[e+40>>2]>>2];c=0;b=0;while(1){d=J[J[e+40>>2]+(b<<2)>>2];f=K[d|0];if(f){while(1){H[a+c|0]=f;c=c+1|0;f=K[d+1|0];d=d+1|0;if(f)continue;break}g=J[e+48>>2]}b=b+1|0;if(g>>>0>b>>>0){H[a+c|0]=32;g=J[e+48>>2];c=c+1|0}if(b>>>0>>0)continue;break}d=254769;if((a|0)==254769)break s;H[a+c|0]=0;d=a}c=yr(J[e+32>>2],l,d)}bc=i+160|0;return c|0}function Bs(a,b){a=a|0;b=b|0;var c=0,d=0, -e=0,f=0;c=bc-16|0;bc=c;a:{b:{d=J[a>>2];c:{if(d){DT(c+8|0,d,b);b=J[c+8>>2];d:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;a=Z()|0;break a}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break b}a=Z()|0;vc(c+ -12|0);break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+8>>2];J[c+8>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}break b}if((b|0)>0){J[695492]=0;J[c+8>>2]=0;d=$(4,16)|0;e=J[695492];J[695492]=0;f:{g:{if((e|0)==1)break g;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=0;J[d>>2]=2414676;J[695492]=0;aa(4985,c+8|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;J[695492]= -0;e=$(4,b+1|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break f}a=Z()|0;break a}J[d+8>>2]=b;J[d+12>>2]=e;H[b+e|0]=0;b=J[c+8>>2];h:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break h;a=Z()|0;break a}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;i:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break i;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break i}break b}a=Z()|0;vc(c+12|0);break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+8>>2];J[c+8>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}break b}J[c+8>>2]=0;md(c+8|0,0);b=J[c+8>>2];j:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break j;a=Z()|0;break a}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+ -12|0)|0;b=J[695492];J[695492]=0;k:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break k;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break k;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break k}break b}a=Z()|0;vc(c+12|0);break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+8>>2];J[c+8>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]= -0;if((b|0)==1)break b}bc=c+16|0;a=J[a>>2];if(a)a=J[a+12>>2];else a=0;return a|0}ea(0)|0;yc();B()}vc(c+8|0);ba(a|0);B()}function xC(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,r=0,s=0,t=0,u=0,v=0;q=a+24|0;a:{b:{c:{d:{e:{if(J[a+200>>2]){d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break e;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break d}d=2;if(Nt(q,b,c))break a}r=a+208|0;f:{if(J[a+424>>2]){d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break f; -J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break d}d=2;if(jo(r,b,c))break a}d=0;p=J[a>>2];g=J[p>>2];j=J[g+20>>2];s=J[g>>2];if(j>>>0>=s>>>0)break a;e=j+1|0;J[g+20>>2]=e;t=J[g+12>>2];d=j>>>6&67108860;h=j&255;n=J[t+d>>2]+(h<<4)|0;O[b>>3]=O[n>>3];m=O[n+8>>3];O[c>>3]=m;n=J[g+16>>2];d=K[h+J[n+d>>2]|0];if(d-1>>>0<=13){h=J[p+4>>2];f=O[b>>3];O[b>>3]=O[h+32>>3]+(f*O[h>>3]+m*O[h+16>>3]);m=O[h+40>>3]+(f*O[h+8>>3]+O[c>>3]*O[h+24>>3]);O[c>>3]=m}g:switch(d- -3|0){case 0:h:{if(e>>>0>=s>>>0)break h;J[g+20>>2]=j+2;d=e>>>6&67108860;e=e&255;g=J[d+t>>2]+(e<<4)|0;i=O[g+8>>3];f=O[g>>3];if(K[e+J[d+n>>2]|0]-1>>>0>13){k=i;break h}d=J[p+4>>2];k=O[d+40>>3]+(f*O[d+8>>3]+i*O[d+24>>3]);f=O[d+32>>3]+(f*O[d>>3]+i*O[d+16>>3])}i=O[b>>3];l=O[a+16>>3];o=O[a+8>>3];i:{if(!J[a+200>>2]){K1(q,o,l,i,m,f,k);break i}J1(a+152|0,o,l,i,m,f,k)}if(J[a+200>>2]){d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break b;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3]; -O[c>>3]=O[d+8>>3];break b}Nt(q,b,c);if(J[a+200>>2])break b;Nt(q,b,c);break d;case 1:break g;default:break a}j:{if(e>>>0>=s>>>0){d=e;break j}d=j+2|0;J[g+20>>2]=d;j=e>>>6&67108860;e=e&255;h=J[j+t>>2]+(e<<4)|0;f=O[h+8>>3];k=O[h>>3];if(K[e+J[j+n>>2]|0]-1>>>0>13){i=f;break j}e=J[p+4>>2];i=O[e+40>>3]+(k*O[e+8>>3]+f*O[e+24>>3]);k=O[e+32>>3]+(k*O[e>>3]+f*O[e+16>>3])}k:{if(d>>>0>=s>>>0)break k;J[g+20>>2]=d+1;e=d>>>6&67108860;d=d&255;g=J[e+t>>2]+(d<<4)|0;l=O[g+8>>3];f=O[g>>3];if(K[d+J[e+n>>2]|0]-1>>>0>13){o= -l;break k}d=J[p+4>>2];o=O[d+40>>3]+(f*O[d+8>>3]+l*O[d+24>>3]);f=O[d+32>>3]+(f*O[d>>3]+l*O[d+16>>3])}l=O[b>>3];u=O[a+16>>3];v=O[a+8>>3];l:{if(!J[a+424>>2]){iC(r,v,u,l,m,k,i,f,o);break l}IK(a+368|0,v,u,l,m,k,i,f,o)}if(J[a+424>>2]){d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break c;J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break c}jo(r,b,c);if(J[a+424>>2])break c;jo(r,b,c)}d=2;break a}d=2;e=J[a+400>>2];if(e>>>0>=M[a+404>>2])break a;J[a+400>>2]=e+1; -e=J[J[a+416>>2]+(e>>>4&268435452)>>2]+((e&63)<<4)|0;O[b>>3]=O[e>>3];O[c>>3]=O[e+8>>3];break a}d=2;e=J[a+176>>2];if(e>>>0>=M[a+180>>2])break a;J[a+176>>2]=e+1;e=J[J[a+192>>2]+(e>>>4&268435452)>>2]+((e&63)<<4)|0;O[b>>3]=O[e>>3];O[c>>3]=O[e+8>>3]}O[a+8>>3]=O[b>>3];O[a+16>>3]=O[c>>3];return d}function Nn(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+344>>2]+1|0;J[a+344>>2]=c;a:{b:{if(c>>>0>2])break b;if(!K[a+398|0])break a;J[a+344>>2]=0;d=K[a+399|0];c:{if(!(K[a+208|0]&2)){c=d+1|0;b=c&255;if(b>>>0>6)break c; -e=K[b+69004|0];g=(e+J[a+320>>2]|0)+(K[b+68997|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+68990|0];b=(f+J[a+324>>2]|0)+(K[b+68983|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+2|0;b=c&255;if(b>>>0>6)break c;e=K[b+69004|0];g=(e+J[a+320>>2]|0)+(K[b+68997|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+68990|0];b=(f+J[a+324>>2]|0)+(K[b+68983|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+3|0;b=c&255;if(b>>>0>6)break c;e=K[b+69004|0];g=(e+J[a+320>> -2]|0)+(K[b+68997|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+68990|0];b=(f+J[a+324>>2]|0)+(K[b+68983|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+4|0;b=c&255;if(b>>>0>6)break c;e=K[b+69004|0];g=(e+J[a+320>>2]|0)+(K[b+68997|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+68990|0];b=(f+J[a+324>>2]|0)+(K[b+68983|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+5|0;b=c&255;if(b>>>0>6)break c;e=K[b+69004|0];g=(e+J[a+320>>2]|0)+(K[b+68997|0]^-1)|0; -J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+68990|0];b=(f+J[a+324>>2]|0)+(K[b+68983|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+6|0;b=c&255;if(b>>>0>6)break c;e=K[b+69004|0];g=(e+J[a+320>>2]|0)+(K[b+68997|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+68990|0];b=(f+J[a+324>>2]|0)+(K[b+68983|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+7|0;if(d>>>0<249)break c;b=c&255;e=K[b+69004|0];g=(e+J[a+320>>2]|0)+(K[b+68997|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>> -0);f=K[b+68990|0];b=(f+J[a+324>>2]|0)+(K[b+68983|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+8|0;d=c&255;if(d>>>0>6)break c;b=K[d+69004|0];J[a+332>>2]=((b+J[a+320>>2]|0)+(K[d+68997|0]^-1)>>>0)/(b>>>0);b=K[d+68990|0];J[a+328>>2]=((b+J[a+324>>2]|0)+(K[d+68983|0]^-1)>>>0)/(b>>>0);break c}c=d+1|0}H[a+399|0]=c;if((c&255)>>>0>6)break a;c=J[a+352>>2];if(!c)break b;d=J[a+320>>2];a=P(K[a+403|0],K[a+406|0]);d:{if(a>>>0>=8){a=P(d,a>>>3|0);break d}a=P(a,d)+7>>>3|0}wc(c,0,a+1| -0)}return}c=a+212|0;while(1){e:{d=Ak(c,4);if(d){if((d|0)!=1)break e;c=J[a+272>>2];d=J[a+228>>2];if(c>>>0>d>>>0){Qh(a,1229209940,J[a+268>>2],c-d|0);c=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=c;J[a+200>>2]=J[a+200>>2]|4}sU(a);J[a+256>>2]=0;return}if(J[a+228>>2])continue;Qh(a,1229209940,J[a+268>>2],J[a+272>>2]);d=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=d;J[a+200>>2]=J[a+200>>2]|4;continue}break}c=J[a+236>>2];if(!c){Ad(a,63394);B()}Ad(a,c);B()}function sB(a){var b=0,c=0,d=0,e=0,f=0,g=0, -h=0;b=-1;c=J[a+28>>2];a:{if(!c)break a;d=J[c+16>>2];if(!d)break a;f=J[a+16>>2];J[a+16>>2]=-1;h=J[d+12>>2];b:{c:{d:{e:{f:{g:{h:{while(1){b=0;i:{if(J[d+32>>2])break i;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break i;J[d+20>>2]=c;b=c}j:{if(J[a+60>>2]+512>>>0<=b>>>0)break j;if(J[a>>2]==3)break d;b=-1;k:{c=J[a+28>>2];l:{if(!c|J[c+28>>2])break l;m:{if(J[c+4>>2]){b=DB(c,4096);break m}c=J[c+16>>2];if(!c)break l;b=J[c+12>>2]!= -2?-1:0}if(!(b|(h|0)!=2)){b=0;n:{if(J[d+32>>2])break n;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break n;J[d+20>>2]=c;b=c}if(J[a+60>>2]!=(b|0))break j;J[a+16>>2]=f;J[a>>2]=3;break j}if((b|0)>=0)break k}J[a+16>>2]=f;J[a>>2]=3;if(f)break a;if(!J[J[a+20>>2]+8>>2])break j;break a}if(b)break j;J[a>>2]=3;break d}o:{g=J[d+32>>2];p:{if(!g){b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;c=J[d+20>>2];b=J[d+4>> -2];if(!((c|0)==(b|0)|b>>>0>2147483646)){J[d+20>>2]=b;c=b}b=J[a+60>>2];if(c>>>0>>0)break o;e=J[a+20>>2];c=0;if(g)break p;c=J[d>>2];break p}b=J[a+60>>2];if((b|0)!=-512)break h;e=J[a+20>>2];b=-512;c=0}c=hB(e,b+c|0,512,0);e=J[a+60>>2]+512|0;J[a+60>>2]=e;b=J[a+20>>2];if(c)break f;if(!J[b+12>>2]|J[a+16>>2]!=-1)break e;continue}break}if(g)break h;c=J[d+8>>2];if(!((c|0)==J[d+24>>2]|c>>>0>2147483646))J[d+24>>2]=c;e=J[d+20>>2];c=J[d+4>>2];if((e|0)==(c|0)|c>>>0>2147483646)c=e;else J[d+20>>2]=c;c=c-b| -0;e=J[d>>2];break g}c=0-b|0;e=0}b=hB(J[a+20>>2],b+e|0,c,0);e=J[a+60>>2]+c|0;J[a+60>>2]=e;if(!b)break e;b=J[a+20>>2]}J[b+12>>2]=0}q:switch(J[a>>2]-1|0){case 0:break q;case 2:break d;default:break c}if((h|0)==2|e>>>0<4096)break c;b=0;r:{if(J[d+32>>2])break r;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break r;J[d+20>>2]=c;b=c}if(b-e>>>0>512)break c;b=Hw(d,e);if((b|0)<0)break c;J[a+60>>2]=J[a+60>>2]-b;break c}if(J[a+16>> -2]==5)break c;s:{if(!J[d+32>>2]){b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;c=J[d+20>>2];b=J[d+4>>2];if(!((c|0)==(b|0)|b>>>0>2147483646)){J[d+20>>2]=b;c=b}e=J[d>>2];b=J[a+60>>2];c=c-b|0;break s}e=0;b=J[a+60>>2];c=0-b|0}e=hB(J[a+20>>2],b+e|0,c,1);b=0;t:{if(J[d+32>>2])break t;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break t;J[d+20>>2]=c;b=c}J[a+16>>2]=5;J[a+60>>2]=b;if(!e)break c;b=J[a+20>>2];if(!J[b+ -12>>2])break b;J[b+12>>2]=0}J[a+16>>2]=f;b=0;if(J[J[a+20>>2]+12>>2])break a;J[a>>2]=3}b=-1}return b}function pS(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;Oc(b,2434076,-1);Oc(b,2434100,-1);g=a+224|0;e=g;c=0;a:{if(J[e+4>>2]==J[e+8>>2])break a;f=(O[a+48>>3]-O[a+192>>3])/+(J[e+8>>2]-J[e+4>>2]>>2>>>0)*283.46456692913387;if(R(f)<2147483648){c=~~f;break a}c=-2147483648}Oc(b,2434176,-1);wg(b,c-15|0);Oc(b,2432712,-1);if(K[a+109|0])Oc(b,2434204,-1);if(K[a+88|0])Oc(b,K[a+89|0]?2434236: -2434316,-1);b:{c:{d:{e:{f:{g:{h:{if(!K[a+96|0])break h;Oc(b,2434396,-1);if(!(H[2778768]&1)){qS();H[2778768]=1}i:{j:{c=J[694690];k:{if(!c)break k;h=J[a+100>>2];e=2778760;while(1){i=J[c+16>>2]<(h|0);e=i?e:c;c=J[(i?c+4|0:c)>>2];if(c)continue;break}if((e|0)==2778760)break k;if(J[e+16>>2]<=(h|0))break j}c=rc(32);J[d>>2]=c;J[d+4>>2]=6;J[d+8>>2]=-2147483640;e=J[608868];J[c+16>>2]=J[608867];J[c+20>>2]=e;e=J[608866];J[c+8>>2]=J[608865];J[c+12>>2]=e;e=J[608864];J[c>>2]=J[608863];J[c+4>>2]=e;J[c+24>>2]=0;break i}if(H[e+ -31|0]>=0){J[d+8>>2]=J[e+28>>2];c=J[e+24>>2];J[d>>2]=J[e+20>>2];J[d+4>>2]=c;break i}Re(d,J[e+20>>2],J[e+24>>2])}J[695492]=0;da(6445,b|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break g;if(H[d+11|0]>=0)break h;qc(J[d>>2])}if((J[a+84>>2]&-2)!=2)break d;f=O[J[a+56>>2]+400>>3]*1.5;if(!(R(f)<2147483648))break f;c=~~f;break e}c=Z()|0;if(H[d+11|0]>=0)break b;qc(J[d>>2]);ba(c|0);B()}c=-2147483648}c=P(c,100);break c}c=0;if(!K[a+245|0])break c;f=O[J[a+56>>2]+400>>3];l:{if(R(f)<2147483648){c=~~f;break l}c=-2147483648}c= -P(c,100)}Oc(b,2434412,-1);Nl(b,c);Oc(b,2432712,-1);c=J[a+56>>2];if(K[c+409|0]){Oc(b,2434436,-1);c=J[a+56>>2]}if(K[c+408|0])Oc(b,2434464,-1);c=2434492;m:switch(J[a+84>>2]-2|0){case 1:c=2434572;case 0:Oc(b,c,-1);break;default:break m}Oc(b,2434648,-1);Oc(b,2434656,-1);zq(b,J[a+56>>2]+384|0);Oc(b,2432228,-1);Oc(b,2434728,-1);zq(b,J[a+56>>2]+384|0);Oc(b,2432228,-1);Oc(b,2434796,-1);zq(b,J[a+56>>2]+384|0);Oc(b,2432228,-1);if(!(!K[a+96|0]|J[a+104>>2]==J[J[a+56>>2]+28>>2])){Oc(b,2434876,-1);Oc(b,2434916, --1);Oc(b,2434972,-1);c=J[a+104>>2];J[d>>2]=c<<16&16711680|c&65280|c>>>16&255;Wo(b,d);Oc(b,2432228,-1);Oc(b,2435040,-1);Oc(b,2435100,-1)}if(K[a+90|0]){Oc(b,2435144,-1);Oc(b,2434972,-1);c=J[a+92>>2];J[d>>2]=c<<16&16711680|c&65280|c>>>16&255;Wo(b,d);Oc(b,2432228,-1);Oc(b,2435200,-1)}c=J[J[a+56>>2]+28>>2];if(c<<16&16711680|c&65280|c>>>16&255){Oc(b,2434916,-1);Oc(b,2434972,-1);c=J[J[a+56>>2]+28>>2];J[d>>2]=c<<16&16711680|c&65280|c>>>16&255;Wo(b,d);Oc(b,2432228,-1);Oc(b,2435040,-1)}Oc(b,2435260,-1);Oc(b, -2435296,-1);_y(d,g);J[695492]=0;da(6447,b|0,d|0);c=J[695492];J[695492]=0;if((c|0)!=1){if(H[d+11|0]<0)qc(J[d>>2]);Oc(b,2435320,-1);if(K[a+244|0])Oc(b,2435348,-1);Oc(b,2435380,-1);bc=d+16|0;return}c=Z()|0;if(H[d+11|0]>=0)break b;qc(J[d>>2])}ba(c|0);B()}function CI(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-144|0;bc=g;J[g+128>>2]=13;J[g+112>>2]=13;J[g+96>>2]=13;J[g+80>>2]=13;J[g+64>>2]=13;J[g+48>>2]=13;a:{b:{c:{d:{e:{if(J[d+8>>2]<=(c|0)){xc(1,-1,802715,0);d=rc(72);c=J[a>>2];J[695492]=0;c=ga(3372, -d|0,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break e;break c}f:{g:{h:{i:{j:{e=J[d+16>>2];if(!e){f=J[d>>2];e=J[d+12>>2];if(e)while(1){if(!((f|0)!=J[e>>2]|J[d+4>>2]!=J[e+4>>2])){xc(1,-1,803318,0);d=rc(72);c=J[a>>2];J[695492]=0;c=ga(3372,d|0,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break e;break c}e=J[e+12>>2];if(e)continue;break}J[g+140>>2]=J[d+4>>2];J[g+136>>2]=f;J[g+128>>2]=9;e=0;h=g+128|0;f=g+112|0;if(J[hf(h,J[a+4>>2],f,0)>>2]!=7){J[g+32>>2]=J[(J[f>>2]<<2)+2720608>>2];xc(1,-1,804114, -g+32|0);uc(f);uc(h);d=rc(72);c=J[a>>2];J[695492]=0;c=ga(3372,d|0,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break e;break c}f=rc(296);h=J[d+12>>2];if(h)e=J[h+20>>2];J[695492]=0;e=ga(3373,f|0,e|0,J[g+120>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break h;k:{if(J[Bc(J[g+120>>2],796762,g+96|0,0)>>2]==6){J[d+20>>2]=e;e=rc(16);J[695492]=0;f=$(3185,e|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break b;J[d+16>>2]=f;f=J[g+104>>2];if(J[f+12>>2]<=0)break k;e=0;while(1){h=f;f=g+80|0;l:{if(J[jg(h,e,f)>>2]== -9){m:{if(J[hf(f,J[a+4>>2],g- -64|0,0)>>2]==7){f=g+48|0;h=J[Bc(J[g+72>>2],800446,f,0)>>2];i=J[g+56>>2];uc(f);j=J[d+16>>2];f=rc(24);k=J[g+88>>2];l=J[g+92>>2];J[f+16>>2]=0;J[f+20>>2]=0;J[f+12>>2]=d;J[f+8>>2]=(h|0)!=1?1:i;J[f>>2]=k;J[f+4>>2]=l;id(j,f);break m}J[g>>2]=J[(J[g- -64>>2]<<2)+2720608>>2];xc(1,-1,804114,g)}uc(g- -64|0);break l}J[g+16>>2]=J[(J[g+80>>2]<<2)+2720608>>2];xc(1,-1,804528,g+16|0)}uc(g+80|0);e=e+1|0;f=J[g+104>>2];if((e|0)>2])continue;break}break k}i=J[d+4>>2];h=b-1|0;f=J[a+ -16>>2]+(h<<3)|0;J[f>>2]=J[d>>2];J[f+4>>2]=i;f=rc(72);i=J[a>>2];J[695492]=0;e=ma(3374,f|0,i|0,b|0,J[g+120>>2],e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break j;f=h<<2;J[f+J[a+12>>2]>>2]=e;e=J[f+J[a+12>>2]>>2];if(J[e+64>>2])break k;qc(AY(e));e=rc(72);h=J[a>>2];J[695492]=0;h=ga(3372,e|0,h|0,b|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;J[f+J[a+12>>2]>>2]=h}uc(g+96|0);uc(g+112|0);uc(g+128|0);e=J[d+16>>2];if(!e)break d}f=J[e+8>>2];if((f|0)>0)break i;e=0;break g}a=Z()|0;qc(f);break a}h=J[e>>2];e= -0;while(1){i=J[h+(e<<2)>>2];j=J[i+8>>2];if((j|0)>(c|0)){CI(a,b,c,i);f=J[J[d+16>>2]+8>>2];break g}c=c-j|0;e=e+1|0;if((f|0)!=(e|0))continue;break}break f}a=Z()|0;qc(f);break a}if((e|0)!=(f|0))break d}xc(1,-1,804912,0);d=rc(72);c=J[a>>2];J[695492]=0;c=ga(3372,d|0,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break e;break c}J[(J[a+12>>2]+(b<<2)|0)-4>>2]=c}bc=g+144|0;return}a=Z()|0;qc(d);break a}a=Z()|0;qc(e)}ba(a|0);B()}function mU(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;f=bc-32| -0;bc=f;J[a>>2]=0;d=J[682146];J[a+4>>2]=d;a:{b:{c:{d:{e:{g=J[b+36>>2];if(!(!g|!J[g+8>>2])){J[f+24>>2]=d;J[f+20>>2]=0;d=J[J[g>>2]+28>>2];J[695492]=0;e=f+12|0;ca(d|0,e|0,g|0,1);d=J[695492];J[695492]=0;f:{g:{if((d|0)!=1){J[695492]=0;aa(4993,f+20|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){g=J[f+12>>2];J[f+12>>2]=0;if(!g)break f;J[695492]=0;e=J[g+4>>2]-1|0;J[g+4>>2]=e;d=J[695492];J[695492]=0;if((d|0)!=1){if(e)break f;J[695492]=0;_(4987,g|0);d=J[695492];J[695492]=0;if((d|0)!=1)break f}break a}d=Z()|0; -vc(f+12|0);break g}d=Z()|0}sc(f+20|0);break b}d=J[f+20>>2];J[f+24>>2]=J[(d?d+12|0:2728584)>>2];J[695492]=0;_(5409,b+36|0);d=J[695492];J[695492]=0;h:{i:{j:{if((d|0)!=1){J[695492]=0;e=f+4|0;ca(5410,e|0,b|0,f+20|0);d=J[695492];J[695492]=0;if((d|0)==1)break j;J[695492]=0;ca(5121,f+12|0,e|0,2375592);d=J[695492];J[695492]=0;if((d|0)==1)break i;e=J[f+12>>2];k:{if(e){d=J[J[e>>2]+28>>2];J[695492]=0;ca(d|0,f+28|0,e|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break k;d=Z()|0;break e}J[f+28>>2]=0}J[695492]=0;aa(4993, -a|0,f+28|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){g=J[f+28>>2];J[f+28>>2]=0;if(!g)break h;J[695492]=0;e=J[g+4>>2]-1|0;J[g+4>>2]=e;d=J[695492];J[695492]=0;if((d|0)!=1){if(e)break h;J[695492]=0;_(4987,g|0);d=J[695492];J[695492]=0;if((d|0)!=1)break h}break a}d=Z()|0;vc(f+28|0);break e}d=Z()|0;break c}d=Z()|0;break c}d=Z()|0;break d}d=J[a>>2];J[a+4>>2]=J[(d?d+12|0:2728584)>>2];sc(f+12|0);sc(f+4|0);sc(f+20|0)}l:{m:{n:{o:{p:{q:{d=J[c>>2];r:{if(!d)break r;g=J[d+8>>2];if((g|0)<=0)break r;d=0;while(1){i= -J[c>>2];s:{t:{u:{v:{w:{x:{if(d){h=!i;j=(d|0)>=0;e=d;y:{if(j)break y;e=d;if(!i)break y;e=J[i+8>>2]+d|0}if(h|(e|0)<0)break l;k=J[i+8>>2];if((e|0)<=(k|0))break x;break l}if(!i)break u;e=10;if(K[J[i+12>>2]]==10)break w;break v}h=J[i+12>>2];if(K[h+e|0]!=10)break v;e=d;if(!j){e=d+k|0;if((e|0)<0)break l}if((e|0)>(k|0))break l;e=K[e+h|0]}J[695492]=0;aa(5145,a|0,e<<24>>24)|0;e=J[695492];J[695492]=0;d=d+1|0;if((e|0)!=1)break s;d=Z()|0;break b}J[695492]=0;e=In(i,10,d);h=J[695492];J[695492]=0;if((h|0)==1)break m; -if((e|0)>=0)break t}e=g}J[695492]=0;j=f+12|0;ia(5143,j|0,c|0,d|0,e-d|0);d=J[695492];J[695492]=0;if((d|0)==1)break q;J[695492]=0;h=f+20|0;ca(5412,h|0,b|0,j|0);d=J[695492];J[695492]=0;if((d|0)==1)break p;J[695492]=0;aa(5170,a|0,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break o;sc(h);sc(j);d=e}if((g|0)>(d|0))continue;break}}bc=f+32|0;return}d=Z()|0;break b}d=Z()|0;break n}d=Z()|0;sc(f+20|0)}sc(f+12|0);break b}d=Z()|0;break b}J[695492]=0;ka(5119);b=J[695492];J[695492]=0;if((b|0)!=1)B();d=Z()|0;break b}sc(f+ -12|0)}sc(f+4|0)}sc(f+20|0)}sc(a);ba(d|0);B()}ea(0)|0;yc();B()}function l5(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=bc-48|0;bc=g;Lp(a,g+36|0);j=J[g+44>>2];a:{if(!j){e=3;break a}h=J[g+36>>2];J[g+32>>2]=h;i=J[g+40>>2];b:{c:{d:{f=J[b+8>>2];if((f|0)==7){e=J[a+8>>2];J[a+8>>2]=i-1;m=1;f=J[a>>2];J[a>>2]=h+1;Lp(a,g);J[a+8>>2]=e;J[a>>2]=f;e=3;if(J[g+8>>2]==3)break d;f=7;break b}e=3;if((j|0)==3)break c;m=1;break b}if(!d)break a;J[g+32>>2]=h+1; -i=i-1|0;f=8;n=1;break b}if(!d)break a;n=1;J[g+32>>2]=h+1;i=i-1|0;m=d}r=P(d,3);o=d<<2;s=f-1|0;t=j-2|0;p=d<<3;e:{while(1){e=J[(n<<2)+c>>2];h=J[b+16>>2];fh(g+32|0,i);j=e+h|0;e=3;f:{g:{h:{i:{j:{k:switch(s|0){case 0:f=J[g+32>>2];h=f;l:{if(K[f|0]!=116|f+3>>>0>=i>>>0|(K[f+1|0]!=114|K[f+2|0]!=117))break l;if(K[f+3|0]!=101)break l;e=1;J[g+32>>2]=f+5;break j}e=0;m:{if(K[f|0]!=102|f+4>>>0>=i>>>0|(K[f+1|0]!=97|K[f+2|0]!=108))break m;if(K[h+3|0]!=115)break m;f=(K[f+4|0]==101?6:0)+f|0}J[g+32>>2]=f;break j;case 2:e= -ql(g+32|0,i,0);break j;case 3:e=ql(g+32|0,i,3);break j;case 7:break g;case 6:break h;case 4:case 5:break i;case 1:break k;default:break a}k=J[g+32>>2];J[g>>2]=k;h=nn(g,i,10);e=0;f=J[g>>2];if((k|0)==(f|0))break j;if(!(K[f|0]!=35|f>>>0>=i>>>0)){k=f+1|0;J[g>>2]=k;h=nn(g,i,h);f=J[g>>2];if((k|0)==(f|0))break j}J[g+32>>2]=f;e=h}n:switch(K[b+20|0]-1|0){case 0:H[j|0]=e;break f;case 1:I[j>>1]=e;break f;default:break n}J[j>>2]=e;break f}h=J[g+32>>2];if(h>>>0>=i>>>0)break f;f=i-h|0;k=J[a+16>>2];o:{p:switch(t| -0){case 2:h=h+1|0;J[g+32>>2]=h;f=f-1|0;break o;case 0:break p;default:break a}h=h+1|0;J[g+32>>2]=h;f=f-2|0}e=J[j>>2];if(e){if(e)gc[J[k+8>>2]](k,e);J[j>>2]=0}k=Zd(k,f+1|0,g+28|0);e=J[g+28>>2];if(e)break a;e=tc(k,h,f);H[e+f|0]=0;J[j>>2]=e;break f}if((fu(g+32|0,i,4,g,0)|0)>=4){e=J[g>>2];J[j>>2]=((e>>31)+e|0)+32768&-65536;e=J[g+4>>2];J[j+4>>2]=((e>>31)+e|0)+32768&-65536;e=J[g+8>>2];J[j+8>>2]=((e>>31)+e|0)+32768&-65536;e=J[g+12>>2];J[j+12>>2]=((e>>31)+e|0)+32768&-65536;break f}break a}j=J[a+16>>2];h=Sc(j, -4,0,o,0,g+28|0);e=J[g+28>>2];if(e)break a;e=g+32|0;f=fu(e,i,d,h,0);if((f|0)<0|d>>>0>f>>>0)break e;fh(e,i);f=fu(e,i,d,h+o|0,0);if((f|0)<0|d>>>0>f>>>0)break e;fh(e,i);f=fu(e,i,d,h+p|0,0);if((f|0)<0|d>>>0>f>>>0)break e;fh(e,i);q=r<<2;f=fu(e,i,d,h+q|0,0);if((f|0)<0|d>>>0>f>>>0)break e;fh(e,i);f=0;if(d)while(1){k=f<<2;e=J[k+c>>2];k=h+k|0;l=J[k>>2];J[e>>2]=((l>>31)+l|0)+32768&-65536;l=J[k+o>>2];J[e+4>>2]=((l>>31)+l|0)+32768&-65536;l=J[k+p>>2];J[e+8>>2]=((l>>31)+l|0)+32768&-65536;l=e;e=J[k+q>>2];J[l+12>> -2]=((e>>31)+e|0)+32768&-65536;f=f+1|0;if((f|0)!=(d|0))continue;break}if(h)gc[J[j+8>>2]](j,h)}n=n+1|0;m=m-1|0;if(m)continue;break}e=0;break a}J[g+28>>2]=3;if(h)gc[J[j+8>>2]](j,h);e=J[g+28>>2]}bc=g+48|0;return e|0}function AMa(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;g=bc-16|0;bc=g;J[a>>2]=0;J[a+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;d=a+32|0;J[d>>2]=0;J[d+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]= -0;e=wc(a+72|0,0,96);J[a+280>>2]=13;J[a+256>>2]=13;J[a+240>>2]=13;J[a+224>>2]=13;J[a+208>>2]=13;J[a+192>>2]=13;J[a+176>>2]=13;J[g>>2]=13;i=a+280|0;a:{if(b){f=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=f;f=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=f;f=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=f;f=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=f;f=J[b+60>>2];J[d+24>>2]=J[b+56>>2];J[d+28>>2]=f;f=J[b+52>>2];J[d+16>>2]=J[b+48>>2];J[d+20>>2]=f;f=J[b+44>>2];J[d+8>>2]=J[b+40>>2];J[d+12>>2]=f;f=J[b+36>>2];J[d>>2]= -J[b+32>>2];J[d+4>>2]=f;J[a+64>>2]=J[b+64>>2];J[a+168>>2]=J[b+168>>2];Ef(b+280|0,i);break a}J[a>>2]=0;J[a+4>>2]=0;J[a+168>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1082703872;J[a+16>>2]=0;J[a+20>>2]=1082335232;J[a+8>>2]=0;J[a+12>>2]=0;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[a+280>>2]=5}b=a+136|0;f=a+104|0;Jv(c,774496,a);b:{if(Jv(c,775674,d)){J[a+64>>2]=1;break b}if(J[a+64>>2])break b;h=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=h;h=J[a+28>>2]; -J[d+24>>2]=J[a+24>>2];J[d+28>>2]=h;h=J[a+20>>2];J[d+16>>2]=J[a+16>>2];J[d+20>>2]=h;h=J[a+12>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=h}h=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=h;h=J[d+28>>2];J[e+24>>2]=J[d+24>>2];J[e+28>>2]=h;h=J[d+20>>2];J[e+16>>2]=J[d+16>>2];J[e+20>>2]=h;h=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=h;Jv(c,776709,e);e=J[d+28>>2];J[f+24>>2]=J[d+24>>2];J[f+28>>2]=e;e=J[d+20>>2];J[f+16>>2]=J[d+16>>2];J[f+20>>2]=e;e=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=e;e=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>> -2]=e;Jv(c,777956,f);e=J[d+28>>2];J[b+24>>2]=J[d+24>>2];J[b+28>>2]=e;e=J[d+20>>2];J[b+16>>2]=J[d+16>>2];J[b+20>>2]=e;e=J[d+12>>2];J[b+8>>2]=J[d+8>>2];J[b+12>>2]=e;e=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=e;Jv(c,779268,b);Bc(c,780600,g,0);if(J[g>>2]==1)J[a+168>>2]=J[g+8>>2];uc(g);b=J[a+168>>2];if((b|0)<0){e=(b|0)<=-360?-360:b;d=b;b=b>>>0<4294966936;b=(d+P(((e-(d+b|0)>>>0)/360|0)+b|0,360)|0)+360|0;J[a+168>>2]=b}if((b|0)>=360){d=b;b=(b-((b|0)>=719?719:b)|0)+359|0;J[a+168>>2]=(d+(((b>>>0)%360|0)-b|0)|0)- -360}Bc(c,781714,a+176|0,0);Bc(c,782610,a+192|0,0);Bc(c,783534,a+208|0,0);Bc(c,784691,a+224|0,0);Bc(c,785351,a+240|0,0);Bc(c,786351,a+256|0,0);c:{d:{if(J[Bc(c,787119,g,0)>>2]-3>>>0>=4294967294){j=J[g>>2]==1?+J[g+8>>2]:O[g+8>>3];O[a+272>>3]=j;if(!(j<1))break c;b=a+272|0;break d}b=a+272|0}J[b>>2]=0;J[b+4>>2]=1072693248}uc(g);Bc(c,787969,g,0);if(J[g>>2]==7){uc(i);Ef(g,i)}uc(g);bc=g+16|0;return a|0}function y1(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;g=bc-32| -0;bc=g;J[g+28>>2]=0;a:{if(!f|J[f>>2]>0)break a;if(d?!a|!b:1){J[f>>2]=1;break a}b:{k=e-(((e>>>0>=2147483649?-1:e+2147483647|0)|0)==(e|0))|0;l=J[d>>2];c:{if(k>>>0>>0)break c;e=J[b>>2];if(e>>>0>c>>>0)break c;h=k-l|0;if(k>>>0>l>>>0&h>>>0>2147483646|h&1)break c;if(c>>>0<=e>>>0|(c-e|0)>=0)break b}J[f>>2]=1;break a}if(H[a+63|0]>0){h=0;h=g+28|0?J[g+28>>2]:h;e=J[b>>2];m=H[a+63|0];d:{if((m|0)>0){i=a+76|0;while(1){if((c|0)==(e|0)){e=0;while(1){H[e+i|0]=K[i+j|0];e=e+1|0;j=j+1|0;if((m|0)>(j|0))continue;break}H[a+ -63|0]=e;J[b>>2]=c;if(h)J[g+28>>2]=h;J[f>>2]=15;e=1;break d}H[e|0]=K[i+j|0];if(h){J[h>>2]=-1;h=h+4|0}else h=0;e=e+1|0;j=j+1|0;if((m|0)!=(j|0))continue;break}}H[a+63|0]=0;J[b>>2]=e;if(h)J[g+28>>2]=h;e=0}if(e)break a}if((k|0)==(l|0)&H[a+253|0]>=0)break a;H[g+2|0]=0;J[g+4>>2]=a;J[g+24>>2]=J[g+28>>2];J[g+12>>2]=k;J[g+8>>2]=l;J[g+16>>2]=J[b>>2];I[g>>1]=28;J[g+20>>2]=c;j=f;a=0;m=0;p=bc-48|0;bc=p;i=J[g+4>>2];c=J[J[i+24>>2]+20>>2];e=J[g+24>>2];e:{if(e){q=J[c+36>>2];if(q)break e;a=-1}else a=0;q=J[c+32>>2]}f= -J[g+16>>2];l=J[g+8>>2];c=H[i+253|0];f:{if((c|0)>=0){c=a;a=0;h=0;break f}r=K[g+2|0];m=J[g+12>>2];c=c<<1;h=tc(p,i+184|0,0-c|0);J[g+12>>2]=h-c;H[g+2|0]=0;J[g+8>>2]=h;H[i+253|0]=0;c=-1;h=l}k=h;s=i+112|0;t=i+184|0;g:while(1){h:{h=0;u=0;i:{if(J[j>>2]>0)break i;gc[q|0](g,j);if(!K[g+2|0]|J[j>>2]>0|J[g+8>>2]!=J[g+12>>2])break i;u=!J[i+56>>2]}n=0;while(1){j:{if(!e){e=0;break j}f=J[g+16>>2]-f|0;k:{if((f|0)<=0){f=e;break k}o=f<<2;f=o+e|0;h=(c|0)<0?-1:c-h|0;l:{if(!h)break l;if((h|0)<=0){v=e;w=e^-1;h=e+o|0;e=e+ -4|0;wc(v,255,(w+(e>>>0>>0?h:e)&-4)+4|0);break l}while(1){o=J[e>>2];if((o|0)>=0)J[e>>2]=h+o;e=e+4|0;if(f>>>0>e>>>0)continue;break}}J[g+24>>2]=f}e=f;if((c|0)>=0)c=(J[g+8>>2]-l>>1)+c|0}f=H[i+253|0];if((f|0)<0)m:{if(!k){r=K[g+2|0];m=J[g+12>>2];k=J[g+8>>2];a=f<<1;h=tc(p,t,0-a|0);J[g+12>>2]=h-a;H[g+2|0]=0;J[g+8>>2]=h;H[i+253|0]=0;a=c;c=f+c|0;c=(c|0)<0?-1:c;break m}J[j>>2]=5}f=J[g+16>>2];l=J[g+8>>2];n:{h=J[j>>2];o:{if((h|0)<=0){if(M[g+12>>2]>l>>>0)continue g;if(k){J[g+12>>2]=m;J[g+8>>2]=k;H[g+2|0]=r; -k=0;c=a;continue g}if(!K[g+2|0])break o;if(J[i+56>>2]){J[j>>2]=11;break n}k=0;if(!u)continue g;x1(i,2);break o}if(!(h-13>>>0<4294967293|n))break n;if(!k)break o;c=J[g+8>>2];a=J[g+12>>2]-c>>1;if((a|0)>0){if((a|0)>0)tc(t,c,a<<1);H[i+253|0]=0-a}J[g+12>>2]=m;J[g+8>>2]=k;H[g+2|0]=r}bc=p+48|0;break h}n=J[i+56>>2];p:{if(n>>>0<=65535){I[s>>1]=n;h=1;break p}I[i+114>>1]=n&1023|56320;I[i+112>>1]=(n>>>10|0)-10304;h=2}J[i+56>>2]=0;H[i+64|0]=h;gc[J[i>>2]](J[i+12>>2],g,s,h,n,J[j>>2]!=10,j);n=1;continue}}break}J[d>> -2]=J[g+8>>2];J[b>>2]=J[g+16>>2]}bc=g+32|0}function mvb(a){a=a|0;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;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;f=gc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;b=J[a+580>>2];c=(f+(b<<2)|0)+(J[a+672>>2]<<2)|0;f=b;b=J[a+656>>2];g=f+b|0;b=(b|0)/J[a+584>>2]|0;d=J[a+660>>2];e=K[a+649|0];h=J[a+644>>2];b:{if(!K[a+648|0]){b=h+(b<<2)|0;if(!e)break b;if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+3|0];H[c+1|0]=K[b|0];H[c+2|0]=K[b+ -1|0];H[c+3|0]=K[b+2|0];b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}b=h+(b<<3)|0;if(e){if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+6|0];H[c+1|0]=K[b|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+4|0];b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+6|0]|K[b+7|0]<<8;d=(d<<8|d>>>8)&65535;c:{if(!d)break c;d:{if((d|0)!=65535){e=K[c|0];e=e<<8|e;if(e)break d}H[c|0]=K[b+6|0];H[c+1|0]=K[b|0];H[c+2|0]= -K[b+2|0];H[c+3|0]=K[b+4|0];break c}if((e|0)==65535){e=K[b|0]|K[b+1|0]<<8;h=K[b+2|0]|K[b+3|0]<<8;i=K[b+4|0]|K[b+5|0]<<8;f=P(d,(i<<8|i>>>8)&65535);i=K[c+3|0];j=i<<8|i;i=d^65535;f=(f+P(j,i)|0)+32768|0;H[c+3|0]=(f>>>16|0)+f>>>24;f=P((h<<8|h>>>8)&65535,d);h=K[c+2|0];h=(f+P(i,h<<8|h)|0)+32768|0;H[c+2|0]=(h>>>16|0)+h>>>24;f=P((e<<8|e>>>8)&65535,d);d=K[c+1|0];d=(f+P(i,d<<8|d)|0)+32768|0;H[c+1|0]=(d>>>16|0)+d>>>24;break c}h=K[c+1|0];i=K[c+2|0];f=K[c+3|0];k=K[b|0]|K[b+1|0]<<8;l=K[b+2|0]|K[b+3|0]<<8;j=K[b+4| -0]|K[b+5|0]<<8;m=d^65535;n=P(m,e^65535)^-1;H[c|0]=n>>>24;o=f|f<<8;f=n>>>16|0;e=(P(e,m)>>>0)/(f>>>0)|0;d=(d<<16>>>0)/(f>>>0)|0;H[c+3|0]=(P(o,e)+P(d,(j<<8|j>>>8)&65535)|0)+32767>>>24;H[c+2|0]=(P(e,i|i<<8)+P(d,(l<<8|l>>>8)&65535)|0)+32767>>>24;H[c+1|0]=(P(e,h|h<<8)+P(d,(k<<8|k>>>8)&65535)|0)+32767>>>24}b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+3|0];e:{if(!d)break e;f:{if((d|0)!=255){e=K[c|0];if(e)break f}H[c|0]=d;H[c+ -1|0]=K[b|0];H[c+2|0]=K[b+1|0];H[c+3|0]=K[b+2|0];break e}if((e|0)==255)break e;h=K[b|0];i=K[b+1|0];f=K[b+2|0];k=d^255;l=P(k,e^255)>>>8^-1;H[c|0]=l;j=f;f=l&255;d=(d<<8>>>0)/(f>>>0)|0;e=(P(e,k)>>>0)/(f>>>0)|0;H[c+3|0]=(P(j,d)+P(e,K[c+3|0])|0)+127>>>8;H[c+2|0]=(P(d,i)+P(e,K[c+2|0])|0)+127>>>8;H[c+1|0]=(P(d,h)+P(e,K[c+1|0])|0)+127>>>8}b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}}c=J[a+680>>2]+J[a+572>>2]|0;g=J[a+664>>2];b=J[a+556>>2];d=J[a+672>>2];g:{if((d|0)>=J[a+552>> -2]){if(b)break g;b=0}J[a+552>>2]=d}f=b;b=J[a+676>>2];if((f|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];c=c-g|0;h:{if((c|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=c}if((b|0)<=(c|0))J[a+564>>2]=c+1;return 0}function aSa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;d=bc-48|0;bc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;ig(d+32|0,J[a+4>>2]);hg(J[a+108>>2],d+16|0,0,0,0,0,0,0,0);b=J[d+16>>2];if((b|0)==9){b=-1;e=J[a+108>>2];a:{if(!e)break a;e=J[e+4>>2];if(J[e+8>>2]==13)break a;b=J[e+16>>2]; -b=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,b,798337,0);uc(d+16|0);J[d+16>>2]=11;b=11}b:{c:{d:{e:{f:{while(1){g:{h:{i:switch(b-4|0){case 6:if(!Ec(J[d+24>>2],832170))break e;default:b=-1;e=J[a+108>>2];j:{if(!e)break j;e=J[e+4>>2];if(J[e+8>>2]==13)break j;b=J[e+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,b,832250,0);uc(d+16|0);break h;case 0:break i;case 8:break f}b=Md(J[d+24>>2]);e=d+16|0;uc(e);hg(J[a+108>>2],e,0,0,0,0,0,0,0);k:switch(J[d+16>>2]-9|0){case 0:e=-1;f=J[a+108>>2];l:{if(!f)break l;f=J[f+4>>2];if(J[f+ -8>>2]==13)break l;e=J[f+16>>2];e=gc[J[J[e>>2]+52>>2]](e)|0}xc(1,e,798337,0);uc(d+16|0);J[d+16>>2]=11;case 2:Gc(b);uc(d+16|0);break h;case 3:break g;default:break k}De(J[d+40>>2],b,d+16|0)}hg(J[a+108>>2],d+16|0,0,0,0,0,0,0,0);b=J[d+16>>2];if((b|0)!=9)continue;b=-1;e=J[a+108>>2];m:{if(!e)break m;e=J[e+4>>2];if(J[e+8>>2]==13)break m;b=J[e+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,b,798337,0);uc(d+16|0);b=11;J[d+16>>2]=11;continue}break}Gc(b);if(J[d+16>>2]!=12)break e}b=-1;e=J[a+108>>2];n:{if(!e)break n; -e=J[e+4>>2];if(J[e+8>>2]==13)break n;b=J[e+16>>2];b=gc[J[J[b>>2]+52>>2]](b)|0}xc(1,b,832438,0);uc(d+16|0);uc(d+32|0);b=0;break d}uc(d+16|0);b=0;J[c+12>>2]=0;if(J[Bc(J[d+40>>2],832527,d,0)>>2]!=1){uc(d);Bc(J[d+40>>2],832782,d,0)}if(J[d>>2]==1){b=J[d+8>>2];J[c+12>>2]=1}uc(d);f=J[J[a+108>>2]+4>>2];e=J[f+16>>2];f=J[f+8>>2]==13;if(e?f:1){if(f)b=-1;else b=gc[J[J[e>>2]+52>>2]](e)|0;xc(1,b,832852,0);uc(d+32|0);b=0;break d}f=rc(40);g=J[c+12>>2];J[695492]=0;h=e;e=d+32|0;b=Iv(f,h,e,g,b);g=J[695492];J[695492]= -0;if((g|0)==1)break c;b=vY(b,e,0)}bc=d+48|0;break b}a=Z()|0;qc(f);ba(a|0);B()}o:{if(!b)break o;p:{if(!CZ(a,0,b,1))break p;if(J[c+12>>2]){while(1){if((gc[J[J[b>>2]+28>>2]](b)|0)!=-1)continue;break}gc[J[J[b>>2]+4>>2]](b);a=J[J[a+108>>2]+4>>2];b=J[a+8>>2]!=13?J[a+16>>2]:0;a=gc[J[J[b>>2]+28>>2]](b)|0;while(1){e=(a|0)!=69;a=gc[J[J[b>>2]+28>>2]](b)|0;d=gc[J[J[b>>2]+32>>2]](b)|0;if(!((a|0)!=73|e)){e=K[d+2306848|0]==1&d>>>0<=255;if((d|0)==-1)break o;if(!e)continue;break o}if((d|0)!=-1)continue;break}break o}a= -gc[J[J[b>>2]+72>>2]](b)|0;a=gc[J[J[a>>2]+28>>2]](a)|0;while(1){e=(a|0)!=69;a=gc[J[J[b>>2]+72>>2]](b)|0;a=gc[J[J[a>>2]+28>>2]](a)|0;d=gc[J[J[b>>2]+72>>2]](b)|0;d=gc[J[J[d>>2]+32>>2]](d)|0;if(!((a|0)!=73|e)){e=K[d+2306848|0]==1&d>>>0<=255;if((d|0)==-1)break p;if(!e)continue;break p}if((d|0)!=-1)continue;break}}gc[J[J[b>>2]+4>>2]](b)}bc=c+16|0}function PG(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=bc-16|0;bc=g;a:{b:{if(!d)break b;if(K[a+8|0]){J[695492]=0;_(d|0,e|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break b;na(ea(0)|0)|0;ta();break b}c:{d:{f=J[a+16>>2];if(!f){J[g+12>>2]=0;break d}J[f+4>>2]=J[f+4>>2]+1;h=J[a+16>>2];J[g+12>>2]=h;if(!h)break d;i=J[a+84>>2];J[695492]=0;f=$(4,28)|0;j=J[695492];J[695492]=0;e:{if((j|0)==1)break e;J[f+4>>2]=0;J[f>>2]=2386100;J[f+24>>2]=e;J[f+20>>2]=d;c=(c|0)<0?(i|0)>0?i-b|0:c:c;J[f+16>>2]=c;J[f+12>>2]=b;J[f+8>>2]=0;J[695492]=0;J[g+8>>2]=0;aa(4985,g+8|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;f=J[a+80>>2];J[695492]=0;la(5090,h|0,b+f| -0,c|0,d|0,e|0);b=J[695492];J[695492]=0;f:{if((b|0)!=1)g:{J[695492]=0;b=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[b>>2]=0;J[b+4>>2]=0;c=J[g+8>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break g;c=J[g+8>>2]}else c=0;J[b+8>>2]=c;J[695492]=0;of(a+108|0,b);a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[g+8>>2];J[g+8>>2]=0;if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492]; -J[695492]=0;if((a|0)!=1)break f}break a}d=Z()|0;vc(g+8|0);break c}J[695492]=0;a=J[h+4>>2]-1|0;J[h+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break b;J[695492]=0;_(4987,h|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}d=Z()|0;break c}J[695492]=0;f=$(5074,a+20|0)|0;h=J[695492];J[695492]=0;h:{i:{if((h|0)==1)break i;if(f)break b;if((c|0)<0)break h;f=J[a+72>>2];J[695492]=0;f=ga(5092,f|0,b|0,c|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break i;if((c|0)!=(f|0))break h;J[695492]=0;_(d|0,e|0); -a=J[695492];J[695492]=0;if((a|0)!=1)break b;na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break b}d=Z()|0;break c}J[695492]=0;f=$(4,28)|0;h=J[695492];J[695492]=0;j:{k:{if((h|0)==1)break k;J[f+4>>2]=0;J[f>>2]=2386100;J[f+24>>2]=e;J[f+20>>2]=d;J[f+16>>2]=c;J[f+12>>2]=b;J[f+8>>2]=0;J[695492]=0;J[g+4>>2]=0;aa(4985,g+4|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;b=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j;J[b>>2]=0;J[b+4>>2]=0;c=J[g+4>>2];if(c){J[695492]= -0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break j;c=J[g+4>>2]}else c=0;J[b+8>>2]=c;J[695492]=0;of(a+108|0,b);a=J[695492];J[695492]=0;if((a|0)==1)break j;a=J[g+4>>2];J[g+4>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}d=Z()|0;break c}d=Z()|0;vc(g+4|0)}vc(g+12|0);ba(d|0);B()}bc=g+16|0;return}ea(0)|0;yc();B()}function l6a(a){a=a|0;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;s=J[a+480>>2];J[a+136>>2]=J[s+16>>2];j=J[s+20>>2];l=gc[J[J[a+4>>2]>>2]](a,1,j<<5)|0;J[l+16>>2]=0;J[l+20>>2]=31;J[l+8>>2]=0;J[l+12>>2]=63;J[l>>2]=0;J[l+4>>2]=31;YK(J[J[a+480>>2]+24>>2],l);k=1;a:{if((j|0)<2)break a;while(1){b:{c:{d:{if((j|0)>=k<<1){if(q)break d;c=0;d=0;b=l;break c}h=0;c=0;d=0;b=l;if(q>>>0>=3){g=k&2147483644;f=0;while(1){m=c;c=J[b+24>>2];e=(c|0)>(d|0);i=J[b+56>>2];c=e?c:d;d=(i|0)>(c|0);m=d? -b+32|0:e?b:m;e=J[b+88>>2];c=d?i:c;d=(e|0)>(c|0);m=d?b- -64|0:m;i=J[b+120>>2];d=d?e:c;e=(i|0)>(d|0);c=e?b+96|0:m;d=e?i:d;b=b+128|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}f=k&3;if(!f)break b;while(1){g=J[b+24>>2];e=(g|0)>(d|0);c=e?b:c;d=e?g:d;b=b+32|0;h=h+1|0;if((f|0)!=(h|0))continue;break}break b}f=k&2147483646;c=0;d=0;b=l;h=0;while(1){g=J[b+28>>2];if((g|0)>(d|0)){e=J[b+24>>2]>0;c=e?b:c;d=e?g:d}g=J[b+60>>2];if((g|0)>(d|0)){e=J[b+56>>2]>0;c=e?b+32|0:c;d=e?g:d}b=b- -64|0;h=h+2|0;if((f|0)!=(h|0))continue; -break}}if(!(k&1)|J[b+28>>2]<=(d|0))break b;c=J[b+24>>2]>0?b:c}if(!c)break a;b=(k<<5)+l|0;h=J[c+4>>2];J[b+4>>2]=h;d=J[c+12>>2];J[b+12>>2]=d;f=J[c+20>>2];J[b+20>>2]=f;g=J[c>>2];J[b>>2]=g;e=J[c+8>>2];J[b+8>>2]=e;i=J[c+16>>2];J[b+16>>2]=i;e:{f:{g:{h:{i:{n=h-g<<4;p=P(d-e|0,12);switch((f-i<<3>(((n|0)>(p|0)?n:p)|0)?2:(n|0)<=(p|0))|0){case 2:break g;case 1:break h;case 0:break i;default:break e}}d=(g+h|0)/2|0;J[c+4>>2]=d;m=b;break f}d=(d+e|0)/2|0;J[c+12>>2]=d;m=b+8|0;break f}d=(f+i|0)/2|0;J[c+20>>2]=d;m= -b+16|0}J[m>>2]=d+1}YK(J[J[a+480>>2]+24>>2],c);YK(J[J[a+480>>2]+24>>2],b);q=q+1|0;k=k+1|0;if((j|0)!=(k|0))continue;break}k=j}n=0;while(1){f=0;g=0;e=0;i=0;b=(n<<5)+l|0;p=J[b>>2];v=J[b+4>>2];j:{if((p|0)>(v|0))break j;w=J[b+12>>2];d=J[b+8>>2];if((w|0)<(d|0))break j;r=J[b+20>>2];j=J[b+16>>2];if((r|0)<(j|0))break j;y=J[J[a+480>>2]+24>>2];q=j+1|0;z=j<<3|4;A=(r-j|0)+1&1;while(1){t=p<<3|4;m=J[(p<<2)+y>>2];h=d;while(1){c=((h<<6)+m|0)+(j<<1)|0;u=h<<2|2;k:{if(!A){b=c;c=j;break k}b=c+2|0;c=L[c>>1];if(c){i=P(c, -z)+i|0;e=P(c,u)+e|0;g=P(c,t)+g|0;f=c+f|0}c=q}if((j|0)!=(r|0))while(1){o=L[b>>1];if(o){e=P(o,u)+e|0;g=P(o,t)+g|0;i=P(o,c<<3|4)+i|0;f=f+o|0}x=c+1|0;o=L[b+2>>1];if(o){e=P(o,u)+e|0;g=P(o,t)+g|0;i=P(o,x<<3|4)+i|0;f=f+o|0}b=b+4|0;c=c+2|0;if((r|0)!=(x|0))continue;break}b=(h|0)!=(w|0);h=h+1|0;if(b)continue;break}b=(p|0)!=(v|0);p=p+1|0;if(b)continue;break}}b=f>>1;H[J[J[a+136>>2]>>2]+n|0]=(b+g|0)/(f|0);H[J[J[a+136>>2]+4>>2]+n|0]=(b+e|0)/(f|0);H[J[J[a+136>>2]+8>>2]+n|0]=(b+i|0)/(f|0);n=n+1|0;if((n|0)!=(k|0))continue; -break}J[a+132>>2]=k;b=J[a>>2];J[b+24>>2]=k;J[b+20>>2]=98;gc[J[J[a>>2]+4>>2]](a,1);J[s+28>>2]=1}function aT(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;f=bc-32|0;bc=f;J[a>>2]=0;H[a+11|0]=0;J[695492]=0;J[f+28>>2]=0;i=f+28|0;g=aa(6194,d|0,i|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{if((d|0)!=1){if(J[f+28>>2]<=0){J[f+12>>2]=b;h=J[c>>2];J[695492]=0;d=K[J[J[g+24>>2]+12>>2]+70|0];j=J[695492];J[695492]=0;e:{f:{g:{h:{if((j|0)!=1){J[695492]=0;j=(h>>>0)/(d>>>0)|0;d=$(27,(j&1073741824?-1:j<<2)|0)|0; -k=J[695492];J[695492]=0;if((k|0)==1)break b;J[695492]=0;J[f>>2]=d;Ca(6196,g|0,f|0,d+(j<<1)|0,f+12|0,b+h|0,0,1,i|0);h=J[695492];J[695492]=0;if((h|0)==1)break h;if(J[f+28>>2]>0)break e;J[695492]=0;j=J[f>>2]-d|0;ca(3525,a|0,j|0,0);h=J[695492];J[695492]=0;if((h|0)==1)break g;J[f+24>>2]=0;k=J[a>>2];l=J[a+4>>2];h=K[a+11|0];J[695492]=0;m=k;k=h<<24>>24<0;DK(k?m:a,k?l:h,f+24|0,d,j>>1,i);i=J[695492];J[695492]=0;if((i|0)!=1){if(J[f+28>>2]>0)break f;J[695492]=0;ca(3525,a|0,J[f+24>>2],0);i=J[695492];J[695492]= -0;if((i|0)!=1)break e}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}if(H[a+11|0]<0){J[J[a>>2]>>2]=0;J[a+4>>2]=0;break e}H[a+11|0]=0;J[a>>2]=0}qc(d);J[695492]=0;_(6198,g|0);d=J[695492];J[695492]=0;if((d|0)==1)break b}i:{j:{if(!e)break j;d=K[a+11|0];if(d<<24>>24<0?J[a+4>>2]:d)break j;d=J[c>>2];if(!d)break j;if(d>>>0>=2147483632){J[695492]=0;_(1623,f+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;break c}k:{if(d>>>0<=10){H[f+23|0]=d;c=f+12|0;break k}J[695492]=0;e=(d|15)+1|0;c=$(4, -e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break i;J[f+12>>2]=c;J[f+16>>2]=d;J[f+20>>2]=e|-2147483648}n=tc(c,b,d)+d|0,o=0,H[n|0]=o;c=H[f+23|0];b=(c|0)<0;g=b?J[f+16>>2]:c&255;if(g>>>0>=1073741808){J[695492]=0;_(2793,f|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break d}c=J[f+12>>2];l:{m:{if(g>>>0>=2){d=g|3;if(d>>>0>=1073741823){J[695492]=0;ka(209);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break d}J[695492]=0;e=d+1|0;d=$(4,e<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break d;J[f>>2]=d;J[f+4>>2]= -g;J[f+8>>2]=e|-2147483648;break m}H[f+11|0]=g;d=f;if(!g)break l}e=b?c:f+12|0;i=g-1|0;h=g&7;n:{if(!h){c=e;break n}b=0;c=e;while(1){J[d>>2]=H[c|0];d=d+4|0;c=c+1|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}if(i>>>0<7)break l;b=e+g|0;while(1){J[d>>2]=H[c|0];J[d+4>>2]=H[c+1|0];J[d+8>>2]=H[c+2|0];J[d+12>>2]=H[c+3|0];J[d+16>>2]=H[c+4|0];J[d+20>>2]=H[c+5|0];J[d+24>>2]=H[c+6|0];J[d+28>>2]=H[c+7|0];d=d+32|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}J[d>>2]=0;if(H[a+11|0]<0)qc(J[a>>2]);b=J[f+4>>2];J[a>>2]=J[f>> -2];J[a+4>>2]=b;J[a+8>>2]=J[f+8>>2];if(H[f+23|0]>=0)break j;qc(J[f+12>>2])}bc=f+32|0;return}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;if(H[f+23|0]>=0)break a;qc(J[f+12>>2]);break a}B()}d=Z()|0}if(H[a+11|0]<0)qc(J[a>>2]);ba(d|0);B()}function Qpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=J[a+512>>2];a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+291|0]|(K[a+300|0]|K[a+292|0]))break b;if(c>>>0>=7)break a;d:{h=K[a+289|0];if(h){e:{g= -K[a+336|0];if((g|0)!=8){if((g|0)==12&(c|0)!=2)break a;if((g|0)==10)break e;if((c|0)==6)break d;if((g|0)==14)break a;break d}if((c|0)==2)break d;break a}if((c|0)==6)break d;break a}if(K[a+286|0]|K[a+287|0]|K[a+288|0]){f:{g:{g=K[a+325|0];if(g){if((g|0)==4&(c|0)!=2)break a;if((g|0)==2)break g;if((g|0)==6&(c|0)!=6)break f;if((c|0)==1|(g|0)!=3)break d;break a}if((c|0)==2)break d;break a}if((c|0)==6)break d}break a}if((c|0)==6)break d;break a}g=K[a+286|0];h:{if(g|K[a+287|0]|(h|K[a+288|0])){H[a+299|0]=1; -break h}H[a+312|0]=(c|0)!=0}if(!f)f=J[a+528>>2];f=J[f+88>>2];i:{j:{if(h){H[f+61|0]=1;k:switch(K[a+336|0]-8|0){case 0:case 4:g=f;f=K[d|0]|K[d+1|0]<<8;I[g+1154>>1]=f<<8|f>>>8;break j;case 2:case 6:break k;default:break j}g=K[d|0]|K[d+1|0]<<8;I[f+1156>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[f+1158>>1]=g<<8|g>>>8;g=f;f=K[d+4|0]|K[d+5|0]<<8;I[g+1160>>1]=f<<8|f>>>8;break j}if(K[a+287|0]|g|K[a+288|0]){H[f+61|0]=1;l:switch(K[a+325|0]){case 0:case 4:g=f;f=K[d|0]|K[d+1|0]<<8;I[g+1154>>1]=f<<8|f>>>8;break j; -case 2:case 6:g=K[d|0]|K[d+1|0]<<8;I[f+1156>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[f+1158>>1]=g<<8|g>>>8;g=f;f=K[d+4|0]|K[d+5|0]<<8;I[g+1160>>1]=f<<8|f>>>8;break j;case 3:break l;default:break j}H[f+1152|0]=K[d|0];break j}m:{if(!c){f=L[a+2244>>1];h=L[a+2242>>1];i=L[a+2240>>1];break m}f=K[d|0]|K[d+1|0]<<8;i=f<<8|f>>>8;I[a+2240>>1]=i;f=K[d+2|0]|K[d+3|0]<<8;h=f<<8|f>>>8;I[a+2242>>1]=h;f=K[d+4|0]|K[d+5|0]<<8;f=f<<8|f>>>8;I[a+2244>>1]=f}g=0;n:{if(!K[a+114|0])break n;i=i&65535;h=h&65535;j=f&65535;f=gc[J[a+ -152>>2]](36)|0;if(!f){Dc(a,1,0,0);g=1;break n}J[f+4>>2]=1038;J[f>>2]=1039;g=J[a+700>>2];o:{if(g){J[g+8>>2]=f;break o}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;I[f+32>>1]=j;I[f+30>>1]=h;I[f+28>>1]=i;g=0}f=g;if(f)break i}f=0;if(!K[a+112|0])break i;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break i;b=J[e>>2];H[b+32|0]=!c;H[b+33|0]=K[a+325|0];f=0;p:{q:switch(c-1|0){case 0:H[b+33| -0]=3;H[b+34|0]=K[d|0];break p;case 1:H[b+33|0]=0;a=K[d|0]|K[d+1|0]<<8;I[b+36>>1]=a<<8|a>>>8;return 0;case 5:break q;default:break i}H[b+33|0]=2;a=K[d|0]|K[d+1|0]<<8;I[b+38>>1]=a<<8|a>>>8;a=K[d+2|0]|K[d+3|0]<<8;I[b+40>>1]=a<<8|a>>>8;a=K[d+4|0]|K[d+5|0]<<8;I[b+42>>1]=a<<8|a>>>8}}return f|0}Dc(a,1029,0,0);return 1029}Dc(a,1028,0,0);return 1028}function Kua(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;d=bc+-64|0;bc=d;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0; -l=d+40|0;J[l>>2]=2385932;J[l+4>>2]=0;J[l+8>>2]=0;J[l+12>>2]=0;g=J[J[b>>2]+24>>2];J[695492]=0;da(g|0,b|0,l|0);g=J[695492];J[695492]=0;a:{b:{c:{if((g|0)!=1){h=J[l+8>>2];J[a>>2]=0;J[a+4>>2]=J[682146];if(h){g=J[h+8>>2];J[695492]=0;g=aa(5120,d+32|0,g|0)|0;f=J[695492];J[695492]=0;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((f|0)!=1){j=J[h>>2];r:{if(!j)break r;h=J[j+8>>2];J[695492]=0;h=aa(5120,d+16|0,(h^-1)+c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break p;J[695492]=0;f=d+24|0;ca(5048,f|0,2380365,h|0); -m=J[695492];J[695492]=0;if((m|0)==1)break n;J[695492]=0;aa(5170,g|0,f|0)|0;m=J[695492];J[695492]=0;if((m|0)==1)break m;m=sc(f);n=sc(h);i=J[j>>2];if(!i)break r;j=J[i+8>>2];J[695492]=0;j=aa(5120,d+8|0,j|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k;J[695492]=0;ca(5048,f|0,2380365,j|0);e=J[695492];J[695492]=0;if((e|0)==1)break i;J[695492]=0;aa(5170,g|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;f=sc(f);o=sc(j);i=J[i>>2];if(!i)break r;while(1){e=J[i+8>>2];J[695492]=0;e=aa(5120,n|0,(e^-1)+c| -0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break q;J[695492]=0;ca(5048,m|0,2380365,e|0);k=J[695492];J[695492]=0;if((k|0)==1)break o;J[695492]=0;aa(5170,g|0,m|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break m;sc(m);sc(e);i=J[i>>2];if(!i)break r;e=J[i+8>>2];J[695492]=0;e=aa(5120,o|0,e|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break l;J[695492]=0;ca(5048,f|0,2380365,e|0);k=J[695492];J[695492]=0;if((k|0)==1)break j;J[695492]=0;aa(5170,g|0,f|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break h;sc(f);sc(e);i=J[i>> -2];if(i)continue;break}}J[695492]=0;ca(5459,d+24|0,b|0,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[d+24>>2];if(!b)break g;c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+60|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;break c}b=Z()|0;sc(a);break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;sc(h);break b}b=Z()|0;sc(h);break b}b=Z()|0;sc(d+24|0);sc(h);break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;sc(j);break b}b=Z()|0;sc(j);break b}b=Z()|0;sc(d+24|0);sc(j);break b}J[d+60>>2]=0}J[695492]= -0;aa(4993,a|0,d+60|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h=J[695492];J[695492]=0;if((h|0)!=1){if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}ea(0)|0;yc();B()}b=Z()|0;vc(d+60|0);break c}b=Z()|0;break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(d+24|0);sc(g)}$c(l);bc=d- -64|0;return}b=Z()|0;break a}sc(d+24|0)}sc(g);sc(a)}$c(l);ba(b|0);B()}function iEa(a,b,c){a=a|0;b=b|0;c= -c|0;var d=0,e=0,f=0,g=0;e=bc-48|0;bc=e;a:{b:{c:{d:{e:{f:{g:{h:{if((Bp(a)|0)<=0)break h;if(!Yj(a))break h;g=e+24|0;QB(g,a);J[695492]=0;g=aa(4825,e+36|0,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;if(H[e+35|0]<0)qc(J[e+24>>2]);i:{j:{k:{if(!c){l:{m:{while(1){J[695492]=0;c=J[g+4>>2];d=J[695492];J[695492]=0;if((d|0)==1)break c;if(!c)break i;J[695492]=0;c=Fd(g,2371888);d=J[695492];J[695492]=0;if((d|0)==1)break c;n:{o:{if(!c){J[695492]=0;Fd(g,2371916);c=J[695492];J[695492]=0;if((c|0)!=1)break o;break c}J[695492]= -0;c=e+24|0;da(4811,c|0,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break n;J[695492]=0;ca(4862,b|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break f;if(H[e+35|0]>=0)break o;qc(J[e+24>>2])}J[695492]=0;c=vi(a);d=J[695492];J[695492]=0;if((d|0)==1)break c;if(!c)break i;J[695492]=0;c=e+24|0;da(4810,c|0,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break m;J[695492]=0;c=aa(4825,e+12|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break l;J[695492]=0;Xf(g,c);d=J[695492];J[695492]=0;if((d|0)==1)break k;Lc(c);if(H[e+ -35|0]>=0)continue;qc(J[e+24>>2]);continue}break}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;break j}p:{q:{while(1){J[695492]=0;d=J[g+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break g;if(!d)break i;J[695492]=0;d=Fd(g,2371888);f=J[695492];J[695492]=0;if((f|0)==1)break g;r:{if(d){J[695492]=0;d=e+24|0;da(4811,d|0,a|0);f=J[695492];J[695492]=0;s:{if((f|0)!=1){J[695492]=0;ca(4862,b|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break s;if(H[e+35|0]>=0)break r;qc(J[e+24>>2]);break r}a=Z()|0;break b}break f}J[695492]= -0;d=Fd(g,2371916);f=J[695492];J[695492]=0;if((f|0)==1)break g;if(!d)break r;J[695492]=0;d=e+24|0;da(4811,d|0,a|0);f=J[695492];J[695492]=0;t:{if((f|0)!=1){J[695492]=0;ca(4862,c|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break t;if(H[e+35|0]>=0)break r;qc(J[e+24>>2]);break r}a=Z()|0;break b}a=Z()|0;if(H[e+35|0]>=0)break b;qc(J[e+24>>2]);break b}J[695492]=0;d=vi(a);f=J[695492];J[695492]=0;if((f|0)==1)break g;if(!d)break i;J[695492]=0;d=e+24|0;da(4810,d|0,a|0);f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]= -0;d=aa(4825,e+12|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break q;J[695492]=0;Xf(g,d);f=J[695492];J[695492]=0;if((f|0)==1)break p;Lc(d);if(H[e+35|0]>=0)continue;qc(J[e+24>>2]);continue}break}a=Z()|0;break b}a=Z()|0;break j}}a=Z()|0;Lc(e+12|0)}if(H[e+35|0]>=0)break b;qc(J[e+24>>2]);break b}J[695492]=0;Ri(a);a=J[695492];J[695492]=0;if((a|0)==1)break e;Lc(g)}bc=e+48|0;return}a=Z()|0;break b}a=Z()|0;if(H[e+35|0]>=0)break b;qc(J[e+24>>2]);break b}a=Z()|0;break b}a=Z()|0;if(H[e+35|0]>=0)break a;qc(J[e+ -24>>2]);ba(a|0);B()}a=Z()|0}Lc(g)}ba(a|0);B()}function WAa(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;g=bc+-64|0;bc=g;h=d+36|0;i=J[d+20>>2];a:{if(!i)break a;h=J[i+8>>2]?d+20|0:h}J[a>>2]=0;J[a+4>>2]=J[682146];b:{c:{d=J[h>>2];d:{if(d){h=J[J[d>>2]+28>>2];J[695492]=0;ca(h|0,g+28|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break d;b=Z()|0;break c}J[g+28>>2]=0}J[695492]=0;aa(4993,a|0,g+28|0)|0;d=J[695492];J[695492]=0;e:{if((d|0)!=1){d=J[g+28>>2];J[g+28>>2]=0;if(!d)break e;J[695492]= -0;h=J[d+4>>2]-1|0;J[d+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break e;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break e}break b}b=Z()|0;vc(g+28|0);break c}d=J[a>>2];J[a+4>>2]=J[(d?d+12|0:2728584)>>2];J[695492]=0;d=ga(5173,g+28|0,a|0,c|0)|0;c=J[695492];J[695492]=0;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((c|0)!=1){J[695492]=0;_(5174,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break q;c=J[f>>2];J[695492]=0;f=g+24|0;da(5151,f|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break p; -J[695492]=0;c=g+20|0;ca(5061,c|0,d|0,2386553);h=J[695492];J[695492]=0;if((h|0)==1)break o;J[695492]=0;da(5108,g+16|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break n;J[695492]=0;f=J[g+16>>2];da(5108,g+12|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break m;b=J[b+8>>2];J[695492]=0;ia(5157,f|0,J[g+12>>2],b|0,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break l;a=J[g+12>>2];J[g+12>>2]=0;r:{if(!a)break r;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break r;J[695492]= -0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[g+16>>2];J[g+16>>2]=0;s:{if(!a)break s;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break s;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[g+20>>2];J[g+20>>2]=0;t:{if(!a)break t;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break t;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[g+24>>2];J[g+24>>2]=0;u:{if(!a)break u; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break f;if(b)break u;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f}J[d+24>>2]=2381060;J[d>>2]=2381028;a=J[d+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+28>>2]=0}J[d+16>>2]=2381060;a=J[d+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+20>>2]=0}sc(d+8|0);bc=g- -64|0;return}c=Z()|0;break g}c=Z()|0;break h}c=Z()|0;break h}c=Z()|0;break i}c=Z()|0;break j}c= -Z()|0;break k}c=Z()|0;vc(g+12|0)}vc(g+16|0)}vc(g+20|0)}vc(g+24|0)}ud(d)}sc(a);ba(c|0);B()}break b}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function m1a(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;c=-9;h=J[a+4>>2];a:{if(H[h+254|0]>0)break a;k=J[h+24>>2];if(K[k+201|0]&2)break a;l=J[a+12>>2];e=J[a+8>>2];if(K[k+28|0]==1){f=J[(K[h+28|0]&16?40:36)+k>>2];b:{c:{while(1){c=e;if(c>>>0>=l>>>0)break b;d=J[f+(K[c|0]<<2)>>2];e=c+1|0;J[a+8>>2]=e;if((d|0)<=-2146435073)return d& -65535;if((d&13631488)==1048576)return(d&1048575)+65536|0;d:switch((d>>>20&15)-2|0){case 5:break b;case 4:break c;case 0:break d;default:continue}break}return d&65535}if(J[b>>2]>0)break b;J[a+8>>2]=c;return-9}J[b>>2]=8;return 65535}c=(K[h+28|0]&16?40:36)+k|0;f=K[h+48|0];if(!f)f=K[k+29|0];s=k+28|0;o=J[k+44>>2];q=J[c>>2];n=J[h+44>>2];d=-1;e:{f:{g:{h:{i:{j:{k:{l:while(1){i=e;if(l>>>0<=i>>>0){c=0;break f}g=l-i|0;c=0;m=f;while(1){p=c+i|0;c=c+1|0;e=i+c|0;m:{f=m&255;j=J[((f<<10)+q|0)+(K[p|0]<<2)>>2];if((j| -0)>=0){m=j>>>24|0;n=(j&16777215)+n|0;if(e>>>0>=l>>>0)break m;f=J[((m<<10)+q|0)+(K[e|0]<<2)>>2];if((f&-2131755008)!=-2143289344)break m;d=L[((n<<1)+o|0)+((f&65535)<<1)>>1];if(d>>>0>65533)break m;e=p+2|0;f=f>>>24&127;c=d;break e}J[h+48>>2]=f;r=j>>>24|0;f=r&127;n:{o:{p:{q:{p=j>>>20&15;switch(p|0){case 5:break o;case 4:break p;case 0:break q;default:break n}}c=j&65535;break e}g=(j&65535)+n|0;d=L[(g<<1)+o>>1];if(d>>>0<65534){c=d;break e}if((d|0)!=65534)break j;d=65534;e=i1(s,g);if((e|0)==65534)break g; -d=e;break f}g=(j&65535)+n|0;d=L[(g<<1)+o>>1];if(d>>>0<55296){c=d;break e}g=g+1|0;if(d>>>0<=57343){c=(L[(g<<1)+o>>1]+(d<<10&1047552)|0)+9216|0;break e}if((d&65534)!=57344)break k;c=L[(g<<1)+o>>1];break e}if((j&13631488)==1048576){c=(j&1048575)+65536|0;break e}n=0;g=f;r:switch(p-2|0){case 4:break g;case 0:break h;case 5:break i;case 6:break r;default:continue l}g=m;if(K[k+29|0])break i;break g}if((c|0)!=(g|0))continue;break}break}f=m;c=g;break f}if((d|0)!=65535)break g}J[b>>2]=12;c=65535;break e}J[b>> -2]=12;f=g;break f}c=j&65535;break e}if(J[b>>2]>0)break f;J[h+44>>2]=0;J[h+48>>2]=r&127;J[a+8>>2]=i;return-9}g=c+i|0;if((d|0)>=0)c=d;else{d=J[b>>2];if(!((g|0)!=(l|0)|(d|0)>0|(c|0)<=0)){H[h+36|0]=c;c=h+37|0;while(1){H[c|0]=K[i|0];c=c+1|0;i=i+1|0;if(l>>>0>i>>>0)continue;break}J[b>>2]=11;c=65535;e=l;break e}s:{if((d|0)>0){b=K[k+29|0];H[h+37|0]=K[i|0];if((c|0)==1){H[h+36|0]=1;break s}e=i+1|0;i=1;t:{if((c|0)<2)break t;c=h+38|0;l=((f&255)<<10)+q|0;m=!b;while(1){d=K[e|0];b=J[l+(d<<2)>>2];u:{if((b|0)>=0){b= -wK(q,b>>>24|0);break u}b=b>>>20&15;b=(b|0)!=7&(m|(b|0)!=8)}if(b)break t;H[c|0]=d;i=i+1|0;c=c+1|0;e=e+1|0;if(g>>>0>e>>>0)continue;break}}H[h+36|0]=i;c=65535;break e}J[b>>2]=8}c=65535}e=g}J[h+44>>2]=0;J[h+48>>2]=f&255;J[a+8>>2]=e}return c|0}function N_a(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;h=bc-32|0;bc=h;g=-1;a:{b:{c:{d:{e:{if(!a|!b)break e;g=Ve(b);if(g>>>0>=1073741808)break d;f:{if(g>>>0<=1){H[h+31|0]=g;j=h+20|0;break f}j=g|3;if(j>>>0>=1073741823)break c; -l=j+1|0;j=rc(l<<2);J[h+28>>2]=l|-2147483648;J[h+20>>2]=j;J[h+24>>2]=g}g=g<<2;p=tc(j,b,g)+g|0,q=0,J[p>>2]=q;J[695492]=0;o=$(3035,h+20|0)|0;g=J[695492];J[695492]=0;g:{h:{i:{if((g|0)!=1){if(H[h+31|0]<0)qc(J[h+20>>2]);if(f)j:{i=bc-48|0;bc=i;k:{l:{m:{n:{o:{p:{if(b){l=Ve(b);f=l+2|0;m=rc(f>>>0>1073741823?-1:f<<2);j=m;f=b;g=l;k=0;q:{if(!g)break q;while(1){n=J[f>>2];k=g;if(!n)break q;J[j>>2]=n;j=j+4|0;f=f+4|0;g=g-1|0;if(g)continue;break}k=0}f=k;if(f)while(1){J[j>>2]=0;j=j+4|0;f=f-1|0;if(f)continue;break}f= -(l<<2)+m|0;J[f>>2]=0;J[f+4>>2]=0;g=Ve(m);if(g>>>0>=1073741808)break m;r:{if(g>>>0<=1){H[i+47|0]=g;f=i+36|0;break r}f=g|3;if(f>>>0>=1073741823)break l;j=f+1|0;f=rc(j<<2);J[i+44>>2]=j|-2147483648;J[i+36>>2]=f;J[i+40>>2]=g}k=f;f=g<<2;p=tc(k,m,f)+f|0,q=0,J[p>>2]=q;J[695492]=0;da(2869,i+36|0,1);f=J[695492];J[695492]=0;if((f|0)==1)break p;if(H[i+47|0]<0)qc(J[i+36>>2]);f=Ve(b);if(f>>>0>=1073741808)break k;s:{if(f>>>0<=1){H[i+23|0]=f;g=i+12|0;break s}g=f|3;if(g>>>0>=1073741823)break l;j=g+1|0;g=rc(j<<2); -J[i+20>>2]=j|-2147483648;J[i+12>>2]=g;J[i+16>>2]=f}f=f<<2;p=tc(g,b,f)+f|0,q=0,J[p>>2]=q;J[695492]=0;da(2868,i+24|0,i+12|0);f=J[695492];J[695492]=0;if((f|0)==1)break o;j=J[i+24>>2];if(j){f=j;g=J[i+28>>2];if((f|0)!=(g|0)){while(1){f=g-12|0;if(H[g-1|0]<0)qc(J[f>>2]);g=f;if((j|0)!=(f|0))continue;break}f=J[i+24>>2]}J[i+28>>2]=j;qc(f)}if(H[i+23|0]<0)qc(J[i+12>>2]);qc(m)}bc=i+48|0;break j}f=Z()|0;if(H[i+47|0]>=0)break n;qc(J[i+36>>2]);ba(f|0);B()}f=Z()|0;if(H[i+23|0]>=0)break n;qc(J[i+12>>2])}ba(f|0);B()}Id(i+ -36|0);B()}Sd();B()}Id(i+12|0);B()}g=-1;if(!o)break e;if(!d)break g;g=Ve(d);if(g>>>0>=1073741808)break b;if(g>>>0>1)break i;H[h+19|0]=g;f=h+8|0;break h}b=Z()|0;if(H[h+31|0]>=0)break a;qc(J[h+20>>2]);break a}f=g|3;if(f>>>0>=1073741823)break c;j=f+1|0;f=rc(j<<2);J[h+16>>2]=j|-2147483648;J[h+8>>2]=f;J[h+12>>2]=g}k=d;d=g<<2;p=tc(f,k,d)+d|0,q=0,J[p>>2]=q;J[695492]=0;da(3036,h+20|0,h+8|0);d=J[695492];J[695492]=0;t:{if((d|0)!=1){if(H[h+19|0]<0)qc(J[h+8>>2]);J[695492]=0;g=ma(3037,a|0,b|0,e|0,(H[h+31|0]<0? -J[h+20>>2]:h+20|0)|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break t;if(H[h+31|0]>=0)break e;qc(J[h+20>>2]);break e}b=Z()|0;if(H[h+19|0]>=0)break a;qc(J[h+8>>2]);ba(b|0);B()}b=Z()|0;if(H[h+31|0]>=0)break a;qc(J[h+20>>2]);ba(b|0);B()}g=Q0(a,b,e,0,c)}bc=h+32|0;return g|0}Id(h+20|0);B()}Sd();B()}Id(h+8|0);B()}ba(b|0);B()}function rA(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;e=bc-128|0;bc=e;a:{if((c|0)>5)break a;J[e+112>>2]=13;b:{c:{d:{if(J[Bc(a,775722,e+112|0,0)>> -2]!=7)break d;n=J[J[e+120>>2]+16>>2];if((n|0)<=0)break d;while(1){J[e+96>>2]=13;J[e+80>>2]=13;e:{f:{if(J[ip(J[e+120>>2],h,e+96|0)>>2]==7)if(J[Bc(J[e+104>>2],777076,e+80|0,0)>>2]==4)break f;uc(e+96|0);break e}uc(e+96|0);g:{f=J[b>>2];j=J[b+4>>2];if((f|0)==(j|0))break g;h:{i:{j:{k:{l=J[e+88>>2];i=Qc(l);switch(i+1|0){case 1:break j;case 0:break k;default:break i}}while(1){if(J[f+4>>2]==-1&H[f+11|0]<0)break h;f=f+12|0;if((j|0)!=(f|0))continue;break}break e}while(1){g=K[f+11|0];if(!(g<<24>>24<0?J[f+4>> -2]:g))break g;f=f+12|0;if((j|0)!=(f|0))continue;break}break e}while(1){g=K[f+11|0];m=g<<24>>24<0;if((i|0)==((m?J[f+4>>2]:g)|0))if(!Wc(m?J[f>>2]:f,l,i))break g;f=f+12|0;if((j|0)!=(f|0))continue;break}break e}J[695492]=0;_(3287,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;ea(0)|0;yc();B()}if((f|0)!=(j|0))break c}uc(e+80|0);h=h+1|0;if((n|0)!=(h|0))continue;break}}uc(e+112|0);J[e+76>>2]=d;J[e+72>>2]=c;J[e+68>>2]=a;j=1;g=e+68|0;if(yX(g,b,778057))break a;if(yX(g,b,779340))break a;J[e+96>>2]=13;j=0; -g=a;a=e+96|0;if(J[Bc(g,780607,a,0)>>2]!=7){uc(a);break a}l:{m:{n:{m=J[J[e+104>>2]+16>>2];if((m|0)>0){n=c+1|0;f=0;while(1){J[e+80>>2]=13;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;o:{p:{q:{if(J[ip(J[e+104>>2],f,e+80|0)>>2]!=7)break q;if(J[Bc(J[e+88>>2],781557,e+48|0,0)>>2]!=7)break q;if(J[Bc(J[e+56>>2],783118,e+32|0,0)>>2]!=8)break q;a=J[e+40>>2];if(J[Bc(gc[J[J[a>>2]+76>>2]](a)|0,783512,e+16|0,0)>>2]==7)break p}uc(e+80|0);uc(e+48|0);uc(e+32|0);uc(e+16|0);break o}uc(e+80|0);uc(e+48|0);J[e>>2]=13;a=J[e+ -40>>2];c=Ce(gc[J[J[a>>2]+76>>2]](a)|0,783512,e);h=J[d+4>>2];a=J[e+8>>2];r:{if(J[c>>2]!=9){c=a;break r}c=a;a=J[d>>2];if((h|0)==(a|0))break r;while(1){if(J[a>>2]!=(c|0)){a=a+4|0;if((h|0)!=(a|0))continue;break r}break}if((a|0)==(h|0))break r;uc(e+32|0);uc(e+16|0);uc(e);break o}a=J[d+8>>2];s:{if(a>>>0>h>>>0){J[h>>2]=c;J[d+4>>2]=h+4;break s}k=J[d>>2];l=h-k>>2;i=l+1|0;if(i>>>0>=1073741824)break n;g=a-k|0;a=g>>1;i=g>>>0>=2147483644?1073741823:a>>>0>i>>>0?a:i;if(i){if(i>>>0>=1073741824)break m;g=rc(i<<2)}else g= -0;a=g+(l<<2)|0;J[a>>2]=c;c=a+4|0;if((h|0)!=(k|0))while(1){a=a-4|0;h=h-4|0;J[a>>2]=J[h>>2];if((h|0)!=(k|0))continue;break}J[d+8>>2]=g+(i<<2);J[d+4>>2]=c;J[d>>2]=a;if(!k)break s;qc(k)}uc(e+32|0);uc(e);a=rA(J[e+24>>2],b,n,d);uc(e+16|0);if(a)break l}f=f+1|0;if((m|0)!=(f|0))continue;break}}uc(e+96|0);break a}kj(d);B()}Sd();B()}uc(e+96|0);j=1;break a}uc(e+80|0);uc(e+112|0);j=1;break a}B()}bc=e+128|0;return j|0}function bHa(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=bc-112| -0;bc=e;a:{b:{if(b){if(a){if(c){j=1024;g=ye(1,1024);if(g){l=e+92|0;k=e+108|0;while(1){c:{d:{d=e+104|0;e:{if((fi(b,d,8,c)|0)!=8)break e;ld(d,e+88|0,4);ld(k,l,4);i=8;f:{g:switch(J[e+88>>2]){case 0:d=Yk(b);f=fc;if((f|0)>=0&d>>>0>=4294967288|(f|0)>0){Hc(c,1,2347824,0);break e}d=d+8|0;J[e+88>>2]=d;if(!(d>>>0<8?f+1|0:f)&(d|0)==(d|0))break f;fa(2347925,2342899,505,2359448);B();case 1:break g;default:break f}d=e+104|0;if((fi(b,d,8,c)|0)!=8)break e;ld(d,e+100|0,4);if(J[e+100>>2]){Hc(c,1,2347824,0);break e}ld(k, -e+88|0,4);i=16}d=J[e+92>>2];if((d|0)==1785737827){b=J[a+100>>2];if(b&4){J[a+100>>2]=b|8;break e}Hc(c,1,2346763,0);qc(g);a=0;break a}f=J[e+88>>2];if(!f){Hc(c,1,2346791,0);qc(g);a=0;break a}if(f>>>0>>0){J[e+4>>2]=d;J[e>>2]=f;Hc(c,1,2346898,e);break b}h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((d|0)<=1668246641){if((d|0)==1651532643)break p;if((d|0)==1667523942)break n;if((d|0)!=1668112752)break q;h=2359584;break l}if((d|0)<=1783635999){if((d|0)==1668246642)break m;h=2359552;if((d|0)==1768449138)break l;if((d| -0)!=1718909296)break q;h=2359480;break j}if((d|0)==1885564018)break o;if((d|0)==1783636E3)break k;h=2359488;if((d|0)==1785737832)break j}d=J[a+100>>2];if(d&1)break h;Hc(c,1,2347495,0);qc(g);a=0;break a}h=2359568;break l}h=2359576;break l}h=2359592;break l}h=2359560}J[e+76>>2]=d&255;J[e+64>>2]=d>>>24;J[e+72>>2]=d>>>8&255;J[e+68>>2]=d>>>16&255;Hc(c,2,2346924,e- -64|0);f=f-i|0;d=f;if(K[a+100|0]&4)break i;d=J[e+92>>2];J[e+48>>2]=d>>>24;J[e+60>>2]=d&255;J[e+52>>2]=d>>>16&255;J[e+56>>2]=d>>>8&255;Hc(c, -2,2347054,e+48|0);J[a+100>>2]=J[a+100>>2]|2147483647;d=pA(b,f,c);if(!fc&(d|0)==(f|0))continue;Hc(c,1,2347120,0);qc(g);a=0;break a}h=2359472}d=f-i|0}f=Yk(b);i=fc;if((i|0)<0)f=1;else f=(i|0)<=0&d>>>0>f>>>0;if(f){f=J[e+88>>2];a=J[e+92>>2];m=e,n=Yk(b),J[m+40>>2]=n;J[e+36>>2]=d;J[e+32>>2]=a&255;J[e+20>>2]=a>>>24;J[e+16>>2]=f;J[e+28>>2]=a>>>8&255;J[e+24>>2]=a>>>16&255;Hc(c,1,2347246,e+16|0);break b}if(d>>>0<=j>>>0){f=g;break c}j=d;f=Tg(g,d);if(f)break c;qc(g);Hc(c,1,2347322,0);a=0;break a}if(!(d&2)){Hc(c, -1,2347606,0);qc(g);a=0;break a}J[a+100>>2]=d|2147483647;d=f-i|0;f=pA(b,d,c);if(!fc&(d|0)==(f|0))continue;if(!(K[a+100|0]&8))break d;Hc(c,2,2347120,0)}qc(g);a=1;break a}Hc(c,1,2347120,0);qc(g);a=0;break a}if((fi(b,f,d,c)|0)!=(d|0)){Hc(c,1,2347446,0);qc(f);a=0;break a}g=f;if(gc[J[h+4>>2]](a,f,d,c)|0)continue;break}qc(f);a=0;break a}Hc(c,1,2346649,0);a=0;break a}fa(2343543,2342899,2277,2359418);B()}fa(2342603,2342899,2276,2359418);B()}fa(2343721,2342899,2275,2359418);B()}qc(g);a=0}bc=e+112|0;return a| -0}function _ha(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;l=bc-16|0;bc=l;a:{b:{c:{d:{if(!d){k=J[a+584>>2];if(!k)break d;h=(c|0)/J[k+8>>2]|0;j=b;if(J[k>>2]!=2){if(J[k+16>>2]<(h|0))break c;j=J[k+12>>2]}d=0;Hg(j,0,h<<2);e=J[a+608>>2];c=J[a+604>>2];e:{if((h|0)>0){f:{g:{if((e|0)<=0){f=e;break g}f=e;while(1){g=H[c|0];e=g&255;h:{if((g|0)>=0){c=c+1|0;f=f-1|0;if(f)while(1){if(!e|(d|0)>=(h|0))break h;e=e-1|0;g=(d<<2)+j|0;J[g>>2]=J[g>>2]|K[c|0]<<24;c=c+1|0;d=d+1|0;f=f-1|0;if(f)continue; -break}e=0;f=0;if((d|0)==(h|0))break f;break b}f=f-2|0;g=c+2|0;e=e-126|0;i:{if(!e|(d|0)>=(h|0))break i;c=K[c+1|0]<<24;while(1){i=(d<<2)+j|0;J[i>>2]=c|J[i>>2];d=d+1|0;e=e-1|0;if(!e)break i;if((d|0)<(h|0))continue;break}}c=g}if((d|0)>=(h|0))break g;if((f|0)>0)continue;break}}if((d|0)!=(h|0)){e=f;break b}e=0;if((f|0)<=0)break f;while(1){g=H[c|0];d=g&255;j:{if((g|0)>=0){c=c+1|0;f=f-1|0;if(!f){f=0;break f}while(1){if(!d|(e|0)>=(h|0))break j;d=d-1|0;g=(e<<2)+j|0;J[g>>2]=J[g>>2]|K[c|0]<<16;c=c+1|0;e=e+1| -0;f=f-1|0;if(f)continue;break}f=0;break f}f=f-2|0;g=c+2|0;d=d-126|0;k:{if(!d|(e|0)>=(h|0))break k;c=K[c+1|0]<<16;while(1){i=(e<<2)+j|0;J[i>>2]=c|J[i>>2];e=e+1|0;d=d-1|0;if(!d)break k;if((e|0)<(h|0))continue;break}}c=g}if((e|0)>=(h|0))break f;if((f|0)>0)continue;break}}if((e|0)!=(h|0)){d=e;e=f;break b}d=0;l:{m:{if((f|0)<=0)break m;while(1){g=H[c|0];e=g&255;n:{if((g|0)>=0){c=c+1|0;f=f-1|0;if(f)while(1){if(!e|(d|0)>=(h|0))break n;e=e-1|0;g=(d<<2)+j|0;J[g>>2]=J[g>>2]|K[c|0]<<8;c=c+1|0;d=d+1|0;f=f-1|0; -if(f)continue;break}g=0;e=0;if((d|0)==(h|0))break l;break b}f=f-2|0;g=c+2|0;e=e-126|0;o:{if(!e|(d|0)>=(h|0))break o;c=K[c+1|0]<<8;while(1){i=(d<<2)+j|0;J[i>>2]=c|J[i>>2];d=d+1|0;e=e-1|0;if(!e)break o;if((d|0)<(h|0))continue;break}}c=g}if((d|0)>=(h|0))break m;if((f|0)>0)continue;break}}if((d|0)!=(h|0)){e=f;break b}g=0;if((f|0)<=0){e=f;break l}e=f;while(1){f=H[c|0];d=f&255;p:{if((f|0)>=0){c=c+1|0;e=e-1|0;if(!e){e=0;break l}while(1){if(!d|(g|0)>=(h|0))break p;d=d-1|0;f=(g<<2)+j|0;J[f>>2]=J[f>>2]|K[c| -0];c=c+1|0;g=g+1|0;e=e-1|0;if(e)continue;break}e=0;break l}e=e-2|0;f=c+2|0;d=d-126|0;q:{if(!d|(g|0)>=(h|0))break q;c=K[c+1|0];while(1){i=(g<<2)+j|0;J[i>>2]=c|J[i>>2];g=g+1|0;d=d-1|0;if(!d)break q;if((g|0)<(h|0))continue;break}}c=f}if((g|0)>=(h|0))break l;if((e|0)>0)continue;break}}d=g;if((h|0)==(d|0))break e;break b}if(h)break b}gc[J[k+20>>2]](k,b,h);b=1;break a}fa(76906,70356,292,93823);B()}fa(74413,70356,294,93823);B()}fa(77124,70356,301,93823);B()}b=J[a>>2];f=J[a+628>>2];g=J[a+472>>2];J[l+4>>2]= -h-d;J[l>>2]=g;Nc(f,b,78599,l);b=0}J[a+608>>2]=e;J[a+604>>2]=c;bc=l+16|0;return b|0}function j$(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=bc-16|0;bc=h;g=J[a+36>>2];b=J[g+16>>2];a:{if(K[b|0]!=60)break a;i=J[a+304>>2];d=J[a+300>>2];J[g+16>>2]=b+1;J[g+32>>2]=J[g+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(!K[b+1|0])Cd(g);g=Uh(a);if(!g){fe(a,68,34411);break a}Ud(a);b:{if(J[a+292>>2])break b;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break b;Hd(a)}while(1){c:{d:{e:{f:{g:{c=J[a+36>>2];k=J[c+16>>2];e= -K[k|0];b=e-47|0;if(b)if((b|0)==15)break e;else break g;if(K[k+1|0]!=62)break f;break e}if((e|0)==13|(e-9&255)>>>0<2)break f;if(e>>>0<32)break e}if(J[a+172>>2]==-1)break e;e=J[c+36>>2];h:{i:{J[h+12>>2]=0;j:{if(J[a+292>>2])break j;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break j;Hd(a)}c=Uh(a);k:{if(!c){fe(a,68,34608);c=0;break k}Ud(a);l:{if(K[J[J[a+36>>2]+16>>2]]==61){Qd(a);Ud(a);if(J[a+36>>2])b=oJ(a,0,0,0);else b=0;J[a+172>>2]=7;m:{if(!J[a+268>>2])break m;if(!Eg(c,13007))break m;if(A$(b))break m; -co(a,98,32828,b)}if(Eg(c,14943)){if(Eg(b,2769)){J[J[a+232>>2]>>2]=0;break l}if(Eg(b,13252)){J[J[a+232>>2]>>2]=1;break l}co(a,102,35396,b)}break l}Nf(a,41,32505,c);c=0;break k}J[h+12>>2]=b}j=J[h+12>>2];if(!(!c|!j)){b=0;n:{o:{p:{if((f|0)<=0){if(d)break p;b=22;d=gc[J[659447]](88)|0;if(d)break o;d=0;ke(a,0);gc[J[659451]](j);i=22;break h}while(1){if(!Eg(J[(b<<2)+d>>2],c)){b=b+2|0;if((f|0)>(b|0))continue;break p}break}q:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break q;J[a+84>>2]=42;J[h>>2]=c;Cc(0,0,0,a,0,1,42, -3,c,0,0,0,35711,h);J[a+12>>2]=0;if(J[a+288>>2])break q;J[a+212>>2]=1}gc[J[659451]](j);break h}if((f+4|0)<=(i|0))break n;b=i<<1;i=gc[J[659452]](d,i<<3)|0;if(!i)break i;d=i}i=b;J[a+304>>2]=b;J[a+300>>2]=d}b=(f<<2)+d|0;J[b>>2]=c;J[b+4>>2]=J[h+12>>2];f=f+2|0;J[(f<<2)+d>>2]=0;J[b+12>>2]=0;break h}if(!j)break h;gc[J[659451]](j);break h}ke(a,0);gc[J[659451]](j);i=b}r:{s:{t:{b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Hd(a);b=J[a+36>>2]}b=J[b+16>>2];switch(K[b|0]-9|0){case 0:case 1:case 4:case 23:break r; -case 38:break t;case 53:break e;default:break s}}if(K[b+1|0]==62)break e}fe(a,65,32926)}Ud(a);b=e;e=J[a+36>>2];if(c|(b|0)!=J[e+36>>2]|(J[h+12>>2]|J[e+16>>2]!=(k|0)))break d;fe(a,1,31850)}b=J[a>>2];u:{if(!b)break u;b=J[b+56>>2];if(J[a+212>>2]|!b)break u;a=J[a+4>>2];if((f|0)<=0)break c;gc[b|0](a,g,d)}if(!(!d|(f|0)<2)){b=1;while(1){a=J[(b<<2)+d>>2];if(a)gc[J[659451]](a);b=b+2|0;if((f|0)>(b|0))continue;break}}f=g;break a}if(J[a+292>>2])continue;b=J[e+16>>2];if(!((b-J[e+12>>2]|0)<501|(J[e+20>>2]-b|0)> -499)){Pg(a);if(J[a+292>>2])continue}b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)continue;Hd(a);continue}break}gc[b|0](a,g,0);f=g}bc=h+16|0;return f}function sdb(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;g=bc-32|0;bc=g;i=J[b+28>>2];J[g+8>>2]=2;c=J[a+496>>2];if(c){d=J[c+36>>2];if(d)gc[J[i+8>>2]](i,d);J[c+36>>2]=0;J[c+40>>2]=0;d=J[c+28>>2];if(d)gc[J[i+8>>2]](i,d);J[c+28>>2]=0;J[c+32>>2]=0;if(c)gc[J[i+8>>2]](i,c);J[a+496>>2]=0}c=Zd(i,44,g+8|0);a:{if(J[g+8>> -2])break a;d=Ue(b,J[b+4>>2]);J[g+8>>2]=d;if(d)break a;d=J[a+476>>2];J[c+12>>2]=J[a+472>>2];J[c+16>>2]=d;d=J[a+468>>2];J[c+4>>2]=J[a+464>>2];J[c+8>>2]=d;J[c+20>>2]=J[a+476>>2];J[c+24>>2]=J[a+468>>2];d=J[a+492>>2];f=J[d+36>>2];b:{if(f){e=g+12|0;f=gc[J[f>>2]](e,J[b+28>>2],J[b+32>>2],J[b+36>>2])|0;J[g+8>>2]=f;if(!f){J[g+28>>2]=a+132;J[g+24>>2]=1751;J[g+20>>2]=c;q=g,r=gc[J[J[d+36>>2]+8>>2]](e)|0,J[q+8>>2]=r;gc[J[J[d+36>>2]+4>>2]](e);f=J[g+8>>2]}if((f&255)==2){f=J[b+4>>2];if(f>>>0<7)break b;d=J[b+32>>2]; -if(K[d+1|0]>3|(f|0)!=(K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24)))break b;f=0;d=bc-16|0;bc=d;J[d+12>>2]=0;l=J[b+28>>2];c:{d:{j=J[b+36>>2];h=J[b+32>>2];if(j>>>0>>0){J[d+12>>2]=2;break d}e=(h+99|0)+(K[h+99|0]|K[h+100|0]<<8)|0;if(j>>>0>>0|(K[e+18|0]|K[e+19|0]<<8)>>>0<18)break c;e=K[e+32|0]|K[e+33|0]<<8|(K[e+34|0]<<16|K[e+35|0]<<24);if(!e)break c;k=e+h|0;h=k+2|0;if(j>>>0>>0){J[d+12>>2]=2;break d}e=K[k|0]|K[k+1|0]<<8;J[c+40>>2]=e;if(j>>>0<(e<<2)+h>>>0){J[d+12>>2]=2;break d}if(!e)break c; -e=Sc(l,16,0,e,0,d+12|0);J[c+36>>2]=e;if(J[d+12>>2])break d;o=J[c+40>>2];j=J[a+92>>2];m=J[a+36>>2];e:{if((m|0)<=0)break e;p=J[a+40>>2];while(1){n=J[(f<<2)+p>>2];if(L[n+8>>1]!=7){f=f+1|0;if((m|0)!=(f|0))continue;break e}break}f=wr(a,n);J[d+12>>2]=f;if(f)break d}f=o<<2;if((f|0)>0){f=(f+k|0)+2|0;while(1){q=e,r=rh(a,K[h|0]),J[q>>2]=r;q=e,r=rh(a,K[h+1|0]),J[q+4>>2]=r;k=(K[h+2|0]|K[h+3|0]<<8)<<16>>16;J[e+12>>2]=0;J[e+8>>2]=k;e=e+16|0;h=h+4|0;if(f>>>0>h>>>0)continue;break}}f:{if(j){e=wr(a,j);J[d+12>>2]=e; -break f}e=J[d+12>>2]}if(e)break d;Kl(J[c+36>>2],J[c+40>>2],16,1752);if(J[d+12>>2])break d;f=0;break c}f=J[c+36>>2];if(f)gc[J[l+8>>2]](l,f);J[c+36>>2]=0;J[c+40>>2]=0;f=J[d+12>>2]}bc=d+16|0;J[g+8>>2]=f}if(f)break b}d=J[c+8>>2];J[a+464>>2]=J[c+4>>2];J[a+468>>2]=d;d=J[c+16>>2];J[a+472>>2]=J[c+12>>2];J[a+476>>2]=d;J[a+52>>2]=I[c+6>>1];J[a+56>>2]=I[c+10>>1];J[a+60>>2]=J[c+12>>2]+65535>>16;J[a- -64>>2]=J[c+16>>2]+65535>>16;I[a+70>>1]=J[c+20>>2]+32768>>>16;I[a+72>>1]=J[c+24>>2]+32768>>>16;if(!J[c+40>>2])break b; -J[a+496>>2]=c;J[a+8>>2]=J[a+8>>2]|64;c=0}ne(b)}if(c){a=J[c+36>>2];if(a)gc[J[i+8>>2]](i,a);J[c+36>>2]=0;J[c+40>>2]=0;a=J[c+28>>2];if(a)gc[J[i+8>>2]](i,a);J[c+28>>2]=0;J[c+32>>2]=0;if(c)gc[J[i+8>>2]](i,c)}bc=g+32|0;return J[g+8>>2]}function n_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;y=bc-256|0;bc=y;r=J[a+332>>2];b=J[b+84>>2];a=y;n=8;while(1){a:{b:{f=L[c+32>>1];g=I[c+16>>1];if((f|g)&65535)break b; -f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;f=P(I[c>>1],J[b>>2])<<2;J[a+192>>2]=f;J[a+160>>2]=f;J[a+128>>2]=f;J[a+96>>2]=f;J[a+64>>2]=f;J[a+32>>2]=f;J[a>>2]=f;g=56;break a}o=P(J[b+192>>2],I[c+96>>1]);j=P(J[b+64>>2],f<<16>>16);f=P(o+j|0,4433);g=P(g,J[b+32>>2]);i=P(J[b+224>>2],I[c+112>>1]);t=P(g+i|0,-7373);k=P(J[b+160>>2],I[c+80>>1]);p=k+g|0;l=P(J[b+96>>2],I[c+48>>1]);h=l+i|0;m=P(p+h|0,9633);w=P(I[c+64>>1],J[b+128>>2])<<13;s=P(I[c>>1],J[b>>2])<<13|1024;q=w+s| -0;j=f+P(j,6270)|0;x=q+j|0;u=t+P(g,12299)|0;g=m+P(p,-3196)|0;p=u+g|0;J[a+224>>2]=x-p>>11;J[a>>2]=p+x>>11;p=s-w|0;f=f+P(o,-15137)|0;o=p+f|0;m=m+P(h,-16069)|0;h=P(l,25172);l=P(k+l|0,-20995);h=m+(h+l|0)|0;J[a+192>>2]=o-h>>11;J[a+32>>2]=h+o>>11;f=p-f|0;g=g+(l+P(k,16819)|0)|0;J[a+160>>2]=f-g>>11;J[a+64>>2]=f+g>>11;f=m+(t+P(i,2446)|0)|0;g=q-j|0;J[a+96>>2]=f+g>>11;f=g-f>>11;g=32}J[(g<<2)+a>>2]=f;c=c+2|0;b=b+4|0;a=a+4|0;f=n>>>0>1;n=n-1|0;if(f)continue;break}a=r+128|0;b=y;t=0;while(1){f=J[b+12>>2];n=J[b+4>> -2];l=P(f+n|0,11086);m=J[b+8>>2];r=J[b+24>>2];j=m-r|0;o=P(j,11363);c=J[(t<<2)+d>>2]+e|0;i=J[b+28>>2];w=P(i+n|0,8956);g=J[b+20>>2];p=g+n|0;h=P(p,10217);s=w+(h+(l+P(n,-18730)|0)|0)|0;q=J[b+16>>2];x=P(q,10703);k=(J[b>>2]<<13)+131072|0;A=x+k|0;B=o+P(r,20995)|0;u=A+B|0;H[c|0]=K[a+(s+u>>>18&1023)|0];H[c+15|0]=K[a+(u-s>>>18&1023)|0];j=P(j,2260);s=j+P(m,7373)|0;q=P(q,4433);u=q+k|0;v=s+u|0;C=P(f+g|0,1136);z=C+(l+P(f,589)|0)|0;l=f+i|0;D=P(l,-5461);z=z+D|0;H[c+1|0]=K[a+(v+z>>>18&1023)|0];H[c+14|0]=K[a+(v-z>>> -18&1023)|0];v=h+(P(g,-9222)+C|0)|0;h=P(g+i|0,-11086);v=v+h|0;m=o+P(m,-4926)|0;o=k-q|0;q=m+o|0;H[c+2|0]=K[a+(v+q>>>18&1023)|0];H[c+13|0]=K[a+(q-v>>>18&1023)|0];h=h+(w+(D+P(i,8728)|0)|0)|0;r=j+P(r,-4176)|0;k=k-x|0;j=r+k|0;H[c+3|0]=K[a+(h+j>>>18&1023)|0];H[c+12|0]=K[a+(j-h>>>18&1023)|0];j=P(n-i|0,7350);l=P(l,-10217);h=j+(l+P(i,25733)|0)|0;i=P(i-g|0,3363);h=h+i|0;k=k-r|0;H[c+4|0]=K[a+(h+k>>>18&1023)|0];H[c+11|0]=K[a+(k-h>>>18&1023)|0];k=P(p,5461);h=P(g,-6278);g=P(g-f|0,11529);i=i+(k+(h+g|0)|0)|0;m=o- -m|0;H[c+5|0]=K[a+(i+m>>>18&1023)|0];H[c+10|0]=K[a+(m-i>>>18&1023)|0];i=P(f,16154);f=P(n-f|0,3363);g=l+(g+(i+f|0)|0)|0;i=u-s|0;H[c+6|0]=K[a+(g+i>>>18&1023)|0];H[c+9|0]=K[a+(i-g>>>18&1023)|0];f=j+(k+(f+P(n,-15038)|0)|0)|0;n=A-B|0;H[c+7|0]=K[a+(f+n>>>18&1023)|0];H[c+8|0]=K[a+(n-f>>>18&1023)|0];b=b+32|0;t=t+1|0;if((t|0)!=8)continue;break}bc=y+256|0}function f4a(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;a:{b:{if(!b)break b;q=a+16|0;r=J[q+84>>2];if(!J[a+ -8>>2]|(r|0)<=0)break b;d=rc(40);J[695492]=0;h=OK(d);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){c:{d:{e:{f:{j=fn(q,p);switch(J[j+60>>2]){case 0:break e;case 1:break f;default:break c}}e=J[J[a+8>>2]+276>>2];if(e)break d;break c}e=J[a+8>>2]}d=bc-128|0;bc=d;J[d+124>>2]=J[j>>2];c=rc(40);J[695492]=0;f=OK(c);g=J[695492];J[695492]=0;g:{if((g|0)!=1){J[d+120>>2]=0;J[d+116>>2]=f;J[d+108>>2]=2637764;J[d+112>>2]=d+116;H[d+3|0]=0;H[d+2|0]=0;St(d+4|0,e,d+124|0,d+3|0,d+108|0,d+2|0);fj(d+80|0);bc=d+128| -0;d=J[d+116>>2];break g}a=Z()|0;qc(c);ba(a|0);B()}if(!d)break c;m=0;e=0;g=J[d+16>>2];h:{if((g|0)<=0)break h;f=J[d+8>>2];c=0;if(g>>>0>=4){o=g&-4;while(1){i=c<<4;n=i+f|0;O[n+8>>3]=-O[n+8>>3];n=f+(i|16)|0;O[n+8>>3]=-O[n+8>>3];n=f+(i|32)|0;O[n+8>>3]=-O[n+8>>3];i=f+(i|48)|0;O[i+8>>3]=-O[i+8>>3];c=c+4|0;e=e+4|0;if((o|0)!=(e|0))continue;break}}e=g&3;if(!e)break h;while(1){g=f+(c<<4)|0;O[g+8>>3]=-O[g+8>>3];c=c+1|0;m=m+1|0;if((e|0)!=(m|0))continue;break}}c=J[a+8>>2];k=O[c+120>>3];l=O[c+128>>3];e=0;f=J[d+16>> -2];i:{if((f|0)<=0)break i;l=25.4/l;k=25.4/k;g=J[d+8>>2];c=0;if((f|0)!=1){m=f&-2;while(1){o=c<<4;i=o+g|0;O[i>>3]=k*O[i>>3];O[i+8>>3]=l*O[i+8>>3];i=g+(o|16)|0;O[i>>3]=k*O[i>>3];O[i+8>>3]=l*O[i+8>>3];c=c+2|0;e=e+2|0;if((m|0)!=(e|0))continue;break}}if(!(f&1))break i;c=g+(c<<4)|0;O[c>>3]=k*O[c>>3];O[c+8>>3]=l*O[c+8>>3]}c=J[a+8>>2];l=+N[j+4>>2]*25.4/O[c+120>>3]+ +N[a+24>>2];k=+N[j+8>>2]*25.4/O[c+128>>3]+ +N[a+28>>2];e=0;f=J[d+16>>2];j:{if((f|0)<=0)break j;j=J[d+8>>2];c=0;if((f|0)!=1){i=f&-2;while(1){m= -c<<4;g=m+j|0;O[g>>3]=O[g>>3]+l;O[g+8>>3]=O[g+8>>3]+k;g=j+(m|16)|0;O[g>>3]=O[g>>3]+l;O[g+8>>3]=O[g+8>>3]+k;c=c+2|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}if(!(f&1))break j;c=j+(c<<4)|0;O[c>>3]=O[c>>3]+l;O[c+8>>3]=O[c+8>>3]+k}c=J[h+16>>2];J[h+24>>2]=c+J[d+24>>2];e=J[h+20>>2];o=c;c=J[d+16>>2];f=o+c|0;if((e|0)<(f|0)){if(!e){J[h+20>>2]=32;e=32}if((e|0)<(f|0)){while(1){e=e<<1;if((f|0)>(e|0))continue;break}J[h+20>>2]=e}s=h,t=Vd(J[h+8>>2],e<<4),J[s+8>>2]=t;s=h,t=Vd(J[h+12>>2],J[h+20>>2]),J[s+12>>2]=t;c= -J[d+16>>2]}if((c|0)>0){c=J[h+16>>2];e=0;while(1){f=J[d+8>>2]+(e<<4)|0;j=J[f+4>>2];c=J[h+8>>2]+(c<<4)|0;J[c>>2]=J[f>>2];J[c+4>>2]=j;j=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=j;H[J[h+12>>2]+J[h+16>>2]|0]=K[J[d+12>>2]+e|0];c=J[h+16>>2]+1|0;J[h+16>>2]=c;e=e+1|0;if((e|0)>2])continue;break}}gc[J[J[d>>2]+4>>2]](d)}p=p+1|0;if((r|0)!=(p|0))continue;break}gc[J[J[h>>2]+16>>2]](h,b)|0;gc[J[J[h>>2]+4>>2]](h);p=1}return p|0}a=Z()|0;qc(d);ba(a|0);B()}function yVa(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;e=bc+-64|0;bc=e;d=mp(a,b,c,d);J[d+212>>2]=0;J[d+216>>2]=0;J[d>>2]=830056;J[d+220>>2]=0;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;a=J[b+24>>2];J[695492]=0;ha(3207,c|0,a|0,e+48|0,0)|0;a=J[695492];J[695492]=0;j=d+212|0;a:{b:{c:{d:{e:{if((a|0)==1)break e;J[695492]=0;a=ha(3203,J[e+56>>2],830076,e+32|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;f:{g:{h:{if(J[a>>2]!=6)break h;c=J[e+40>>2];if(J[c+12>>2]<=0)break h;a=0;while(1){J[695492]=0;b=ha(3283,c|0,a|0,e+16|0,0)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break d;i:{if(J[b>>2]-3>>>0<4294967294)break i;if(a&1)k=O[d+8>>3]-(J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]);else k=(J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3])-O[d+16>>3];c=J[d+216>>2];f=J[d+220>>2];if(c>>>0>>0){O[c>>3]=k;J[d+216>>2]=c+8;break i}j:{k:{g=J[j>>2];i=c-g>>3;b=i+1|0;l:{if(b>>>0>=536870912){J[695492]=0;_(2399,j|0);a=J[695492];J[695492]=0;if((a|0)==1)break l;break a}f=f-g|0;h=f>>2;f=f>>>0>=2147483640?536870911:b>>>0>>0?h:b;if(!f){h=0;break j}if(f>>>0<536870912)break k; -J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a}c=Z()|0;break b}J[695492]=0;h=$(4,f<<3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g}b=(i<<3)+h|0;O[b>>3]=k;i=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[d+220>>2]=(f<<3)+h;J[d+216>>2]=i;J[d+212>>2]=b;if(!g)break i;qc(g)}J[695492]=0;_(3205,e+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;a=a+1|0;c=J[e+40>>2];if((a|0)>2])continue;break}}J[695492]=0;a=e+32|0;_(3205,a|0);b= -J[695492];J[695492]=0;if((b|0)==1)break e;J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[695492]=0;a=ha(3203,J[e+56>>2],830253,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(J[a>>2]!=4)break f;J[695492]=0;aa(2808,e|0,J[e+40>>2])|0;a=J[695492];J[695492]=0;if((a|0)!=1)break f;break c}c=Z()|0;break b}J[695492]=0;_(3205,e+32|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;b=K[e+11|0];a=b<<24>>24;m:{n:{o:{p:switch(((a|0)<0?J[e+4>>2]:b)-8|0){case 1:b=9;a=(a|0)<0?J[e>>2]:e;if(Wc(a,830300,9))break o;b=8;break n; -case 0:break p;default:break m}a=(a|0)<0?J[e>>2]:e;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1769304403|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=2037147495)break m;b=10;break n}if(!Wc(a,830473,9))break n;if(Wc(a,830755,9))break m;b=11}H[d+208|0]=b}J[695492]=0;_(3205,e+48|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;if(H[e+11|0]<0)qc(J[e>>2]);bc=e- -64|0;return d|0}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;if(H[e+11|0]>=0)break b;qc(J[e>>2])}a=J[j>>2];if(a){J[d+216>>2]=a;qc(a)}lh(d); -ba(c|0);B()}B()}function N2a(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;f=J[a+464>>2];if(J[a+280>>2]){c=J[f+52>>2];if(!c){if(!(gc[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){g=d<<2;e=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[e+20>>2]<<2)+f|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59| -0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+ -21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=f+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}wc(J[((J[e+24>>2]<<2)+f|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2])continue;break}J[f+16>>2]=-16;J[f+8>>2]=0;J[f+12>>2]=0;c=J[a+280>>2]}J[f+52>>2]=c-1}c:{if(!(J[f+16>>2]==-1|J[a+364>>2]<=0))while(1){c=k<<2;m=J[c+b>>2];c=J[(a+c|0)+368>>2]<<2;h=J[J[(c+a|0)+340>>2]+20>> -2];e=(h<<2)+f|0;g=c+f|0;d=J[e+56>>2]+J[g+36>>2]|0;d:{if(!Kd(a,d)){J[g+36>>2]=0;c=J[g+20>>2];break d}j=1;i=0;c=0;l=Kd(a,d+1|0);d=(d+l|0)+2|0;e:{if(!Kd(a,d))break e;e=J[e+56>>2];d=e+20|0;if(!Kd(a,d)){c=1;break e}j=0;d=e+21|0;if(!Kd(a,d)){c=2;break e}d=e+22|0;if(!Kd(a,d)){c=4;break e}d=e+23|0;if(!Kd(a,d)){c=8;break e}d=e+24|0;if(!Kd(a,d)){c=16;break e}d=e+25|0;if(!Kd(a,d)){c=32;break e}d=e+26|0;if(!Kd(a,d)){c=64;break e}d=e+27|0;if(!Kd(a,d)){c=128;break e}d=e+28|0;if(!Kd(a,d)){c=256;break e}d=e+29|0; -if(!Kd(a,d)){c=512;break e}d=e+30|0;if(!Kd(a,d)){c=1024;break e}d=e+31|0;if(!Kd(a,d)){c=2048;break e}d=e+32|0;if(!Kd(a,d)){c=4096;break e}d=e+33|0;if(!Kd(a,d)){c=8192;break e}c=16384;d=e+34|0;if(Kd(a,d))break c}h=a+h|0;f:{if(1<>1>(c|0))break f;e=l<<2;if(1<>1<(c|0)){i=e+12|0;break f}i=e+4|0}J[g+36>>2]=i;g:{if(j){d=c;break g}i=d+14|0;d=c;while(1){e=c>>>1|0;d=(Kd(a,i)?e:0)|d;j=c>>>0>3;c=e;if(j)continue;break}}c=J[g+20>>2]+(l?d^-1:d+1|0)|0;J[g+20>>2]=c}I[m>>1]=c<>2];k= -k+1|0;if((k|0)>2])continue;break}return 1}b=J[a>>2];J[b+20>>2]=117;gc[J[b+4>>2]](a,-1);J[f+16>>2]=-1;return 1}function Qna(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=bc-48|0;bc=f;OF(J[b+12>>2]);e=J[b+12>>2];H[f+8|0]=0;h=e;e=f+8|0;MS(h,e);I[J[b+12>>2]+2008>>1]=257;gc[J[J[b>>2]+20>>2]](b)|0;J[f+8>>2]=1;gc[J[J[b>>2]+308>>2]](b,e)|0;g=J[b+12>>2];J[g+2296>>2]=d;H[g+2304|0]=1;g=f+32|0;h=f+24|0;gc[J[J[c>>2]+40>>2]](c,d,g,h,e,f+40|0);O[f+32>>3]=O[f+32>>3]*(25.4/O[f+8>>3]);O[f+24>>3]= -O[f+24>>3]*(25.4/O[f+40>>3]);gc[J[J[b>>2]+36>>2]](b,g)|0;gc[J[J[b>>2]+28>>2]](b,h)|0;gc[J[J[c>>2]+44>>2]](c,b,d,0);H[J[b+12>>2]+2304|0]=0;J[f+20>>2]=1;gc[J[J[b>>2]+312>>2]](b,f+20|0)|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{d=J[b+12>>2];c=J[d+2184>>2];g=J[d+2188>>2];if((c|0)!=(g|0)){c:{d:{e:{while(1){f:{if(J[c>>2]){J[695492]=0;d=$(4,20)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2451300;J[d+12>>2]=0;J[d+16>>2]=0;e=J[695492];J[695492]=0;if((e|0)==1)break d; -e=J[c>>2];J[695492]=0;da(6208,e|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;da(6209,f+8|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break f;e=J[a+4>>2];g:{if(e>>>0>2]){h=J[f+12>>2];J[e>>2]=J[f+8>>2];J[e+4>>2]=h;J[e+8>>2]=J[f+16>>2];J[a+4>>2]=e+12;break g}J[695492]=0;da(2791,a|0,f+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;if(H[f+19|0]>=0)break g;qc(J[f+8>>2])}gc[J[J[d>>2]+4>>2]](d)}c=c+8|0;if((g|0)!=(c|0))continue;break c}break}c=Z()|0;break a}c=Z()|0;if(H[f+19|0]>= -0)break a;qc(J[f+8>>2]);break a}c=Z()|0;qc(d);break a}d=J[b+12>>2]}h:{c=J[d+2172>>2];g=J[d+2176>>2];if((c|0)!=(g|0)){i:{j:{k:{while(1){l:{if(J[c>>2]){J[695492]=0;d=$(4,20)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2451300;J[d+12>>2]=0;J[d+16>>2]=0;e=J[695492];J[695492]=0;if((e|0)==1)break l;e=J[c>>2];J[695492]=0;da(6208,e|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;da(6209,f+8|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break k;e=J[a+ -4>>2];m:{if(e>>>0>2]){h=J[f+12>>2];J[e>>2]=J[f+8>>2];J[e+4>>2]=h;J[e+8>>2]=J[f+16>>2];J[a+4>>2]=e+12;break m}J[695492]=0;da(2791,a|0,f+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;if(H[f+19|0]>=0)break m;qc(J[f+8>>2])}gc[J[J[d>>2]+4>>2]](d)}c=c+8|0;if((g|0)!=(c|0))continue;break i}break}c=Z()|0;qc(d);break a}c=Z()|0;break a}c=Z()|0;if(H[f+19|0]>=0)break a;qc(J[f+8>>2]);break a}d=J[b+12>>2]}n:{c=J[d+2196>>2];e=J[d+2200>>2];if((c|0)!=(e|0)){d=J[a+4>>2];J[695492]=0;ha(6210,a|0,d|0,c|0,e|0)| -0;c=J[695492];J[695492]=0;if((c|0)==1)break n;d=J[b+12>>2]}J[695492]=0;_(6211,d|0);b=J[695492];J[695492]=0;if((b|0)==1){c=Z()|0;break a}bc=f+48|0;return}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0}sg(a);ba(c|0);B()}function Ona(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=bc-48|0;bc=f;OF(J[b+12>>2]);e=J[b+12>>2];H[f+8|0]=0;h=e;e=f+8|0;MS(h,e);I[J[b+12>>2]+2008>>1]=257;gc[J[J[b>>2]+20>>2]](b)|0;J[f+8>>2]=1;gc[J[J[b>>2]+308>>2]](b,e)|0;g=J[b+12>>2];J[g+2296>>2]=d;H[g+2304|0]=1;g=f+32|0;h=f+24| -0;gc[J[J[c>>2]+40>>2]](c,d,g,h,e,f+40|0);O[f+32>>3]=O[f+32>>3]*(25.4/O[f+8>>3]);O[f+24>>3]=O[f+24>>3]*(25.4/O[f+40>>3]);gc[J[J[b>>2]+36>>2]](b,g)|0;gc[J[J[b>>2]+28>>2]](b,h)|0;gc[J[J[c>>2]+44>>2]](c,b,d,0);H[J[b+12>>2]+2304|0]=0;J[f+20>>2]=1;gc[J[J[b>>2]+312>>2]](b,f+20|0)|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{d=J[b+12>>2];c=J[d+2184>>2];g=J[d+2188>>2];if((c|0)!=(g|0)){c:{d:{e:{while(1){f:{if(J[c>>2]){J[695492]=0;d=$(4,20)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;J[d+4>>2]=0; -J[d+8>>2]=0;J[d>>2]=2451300;J[d+12>>2]=0;J[d+16>>2]=0;e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[c>>2];J[695492]=0;da(6212,e|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;da(6209,f+8|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break f;e=J[a+4>>2];g:{if(e>>>0>2]){h=J[f+12>>2];J[e>>2]=J[f+8>>2];J[e+4>>2]=h;J[e+8>>2]=J[f+16>>2];J[a+4>>2]=e+12;break g}J[695492]=0;da(2791,a|0,f+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;if(H[f+19|0]>=0)break g;qc(J[f+8>>2])}gc[J[J[d>> -2]+4>>2]](d)}c=c+8|0;if((g|0)!=(c|0))continue;break c}break}c=Z()|0;break a}c=Z()|0;if(H[f+19|0]>=0)break a;qc(J[f+8>>2]);break a}c=Z()|0;qc(d);break a}d=J[b+12>>2]}h:{c=J[d+2172>>2];g=J[d+2176>>2];if((c|0)!=(g|0)){i:{j:{k:{while(1){l:{if(J[c>>2]){J[695492]=0;d=$(4,20)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2451300;J[d+12>>2]=0;J[d+16>>2]=0;e=J[695492];J[695492]=0;if((e|0)==1)break l;e=J[c>>2];J[695492]=0;da(6212,e|0,d|0);e=J[695492];J[695492]=0; -if((e|0)==1)break h;J[695492]=0;da(6209,f+8|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break k;e=J[a+4>>2];m:{if(e>>>0>2]){h=J[f+12>>2];J[e>>2]=J[f+8>>2];J[e+4>>2]=h;J[e+8>>2]=J[f+16>>2];J[a+4>>2]=e+12;break m}J[695492]=0;da(2791,a|0,f+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;if(H[f+19|0]>=0)break m;qc(J[f+8>>2])}gc[J[J[d>>2]+4>>2]](d)}c=c+8|0;if((g|0)!=(c|0))continue;break i}break}c=Z()|0;qc(d);break a}c=Z()|0;break a}c=Z()|0;if(H[f+19|0]>=0)break a;qc(J[f+8>>2]);break a}d=J[b+12>> -2]}n:{c=J[d+2196>>2];e=J[d+2200>>2];if((c|0)!=(e|0)){d=J[a+4>>2];J[695492]=0;ha(6210,a|0,d|0,c|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;d=J[b+12>>2]}J[695492]=0;_(6211,d|0);b=J[695492];J[695492]=0;if((b|0)==1){c=Z()|0;break a}bc=f+48|0;return}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0}sg(a);ba(c|0);B()}function gba(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;g=J[a+584>>2];d=L[g+834>>1];f=L[g+836>>1]; -e=P(P(f,d)+2|0,P(J[g+72>>2],((d+J[g+28>>2]|0)-1>>>0)/(d>>>0)|0))+7>>>3|0;d=(c|0)/(e|0)|0;q=P(d,f);o=J[g+888>>2];if((P(d,e)|0)!=(c|0))ae(J[a+628>>2],J[a>>2],87754,0);if((q|0)>0){d=J[J[g+84>>2]+132>>2];w=d&3;x=g+844|0;y=d>>>0<4;while(1){if(J[g+76>>2]>0){p=J[g+84>>2];r=0;k=0;while(1){l=J[p+12>>2];a:{if((l|0)<=0)break a;c=J[p+28>>2]<<3;i=J[p+8>>2];f=P(i,d);m=c-f|0;u=(r<<2)+g|0;if((i|0)==1){s=m&-8;n=m&7;i=0;t=c+(f^-1)>>>0<7;while(1){c=J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(i<<2)>>2];b:{if(!d)break b; -h=b+k|0;j=0;f=d;if(w)while(1){H[c|0]=K[h|0];h=h+o|0;c=c+1|0;f=f-1|0;j=j+1|0;if((w|0)!=(j|0))continue;break}if(y)break b;while(1){H[c|0]=K[h|0];e=h+o|0;H[c+1|0]=K[e|0];e=e+o|0;H[c+2|0]=K[e|0];e=e+o|0;H[c+3|0]=K[e|0];c=c+4|0;h=e+o|0;f=f-4|0;if(f)continue;break}}c:{if((m|0)<=0)break c;e=K[c-1|0];f=0;if(!t)while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+1|0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((s|0)!=(f|0))continue;break}f=0;if(!n)break c;while(1){H[c|0]=e;c=c+1|0;f=f+1|0;if((n| -0)!=(f|0))continue;break}}k=k+1|0;i=i+1|0;if((l|0)!=(i|0))continue;break}break a}if(d){z=m&-8;s=m&7;A=i&-4;t=i&3;n=0;B=c+(f^-1)>>>0<7;while(1){c=J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(n<<2)>>2];if((i|0)>0){f=b+k|0;e=d;while(1){j=0;h=0;v=0;if(i>>>0>=4)while(1){H[c|0]=K[f+h|0];H[c+1|0]=K[(h|1)+f|0];H[c+2|0]=K[(h|2)+f|0];H[c+3|0]=K[(h|3)+f|0];h=h+4|0;c=c+4|0;v=v+4|0;if((A|0)!=(v|0))continue;break}if(t)while(1){H[c|0]=K[f+h|0];h=h+1|0;c=c+1|0;j=j+1|0;if((t|0)!=(j|0))continue;break}f=f+o|0;e=e-1|0;if(e)continue; -break}}d:{if((m|0)<=0)break d;e=K[c-1|0];f=0;if(!B)while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+1|0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((z|0)!=(f|0))continue;break}f=0;if(!s)break d;while(1){H[c|0]=e;c=c+1|0;f=f+1|0;if((s|0)!=(f|0))continue;break}}k=i+k|0;n=n+1|0;if((n|0)!=(l|0))continue;break}break a}j=0;if((m|0)>0)while(1){c=J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(j<<2)>>2];e=K[c-1|0];f=0;while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+ -1|0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((m|0)!=(f|0))continue;break}j=j+1|0;if((l|0)!=(j|0))continue;break}k=P(i,l)+k|0}p=p+88|0;r=r+1|0;if((r|0)>2])continue;break}}c=J[g+884>>2];J[g+884>>2]=c+1;if((c|0)>=7){c=J[g+272>>2]<<3;if((yO(g,x,c)|0)!=(c|0))return 0;J[g+884>>2]=0}c=L[g+836>>1];J[a+472>>2]=c+J[a+472>>2];b=J[g+840>>2]+b|0;q=q-c|0;if((q|0)>0)continue;break}}return 1}function DIa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=rc(44);f=J[J[a+16>>2]+36>>2];J[695492]= -0;f=aa(3496,c|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){c=J[a+16>>2];J[c+40>>2]=f;a:{if((b|0)==(c|0))break a;g=K[b+11|0];f=g<<24>>24;if(H[c+11|0]>=0){if((f|0)>=0){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];break a}yf(c,J[b>>2],J[b+4>>2]);break a}i=c;c=(f|0)<0;Df(i,c?J[b>>2]:b,c?J[b+4>>2]:g)}g=J[a+16>>2];c=g+12|0;b:{if((c|0)==(d|0))break b;h=K[d+11|0];f=h<<24>>24;if(H[g+23|0]>=0){if((f|0)>=0){f=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=f;J[c+8>>2]=J[d+8>>2];break b}yf(c,J[d>>2],J[d+ -4>>2]);break b}i=c;c=(f|0)<0;Df(i,c?J[d>>2]:d,c?J[d+4>>2]:h)}c=J[a+16>>2];f=K[c+35|0];if(f<<24>>24<0?J[c+28>>2]:f){rH(J[c+40>>2],c+24|0);c=J[a+16>>2]}g=J[c+36>>2];f=bc-32|0;bc=f;c=J[c+40>>2];h=J[c+16>>2];if(h){gc[J[J[h>>2]+12>>2]](h)|0;J[c+16>>2]=0}j=c,k=gc[J[J[g>>2]+52>>2]](g)|0,J[j+16>>2]=k;h=_w();k=h,l=gc[J[J[g>>2]+24>>2]](g)|0,j=J[J[h>>2]+24>>2],gc[j](k|0,l|0);g=J[c+16>>2];gc[J[J[g>>2]+68>>2]](g,h);J[f+4>>2]=1;gc[J[J[h>>2]+20>>2]](h,f+4|0);J[J[689612]+468>>2]=J[c+16>>2];g=J[c>>2];if(g){qc(ht(g)); -J[c>>2]=0}c:{d:{e:{f:{g:{h:{i:{j:{k:{g=K[c+15|0];l:{if(g<<24>>24<0?J[c+8>>2]:g)break l;g=f+4|0;C1(g);J[695492]=0;da(3515,c|0,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break k;if(H[f+15|0]>=0)break l;qc(J[f+4>>2])}J[c+28>>2]=0;d=gB(d);e=gB(e);h=f+20|0;g=K[b+11|0];i=g<<24>>24<0;lm(h,i?J[b>>2]:b,i?J[b+4>>2]:g,0);J[695492]=0;g=$(4,48)|0;i=J[695492];J[695492]=0;if((i|0)==1)break j;J[695492]=0;h=ma(3516,g|0,(H[f+31|0]<0?J[f+20>>2]:h)|0,d|0,e|0,0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break i;J[c>>2]=h;if(d)qc(Rc(d)); -if(e)qc(Rc(e));J[695492]=0;d=f+4|0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=413844;e=J[695492];J[695492]=0;if((e|0)==1)break g;J[695492]=0;b=ga(3,d|0,b|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;if(!b)break h;J[695492]=0;b=J[d+12>>2];e=J[695492];J[695492]=0;if((e|0)==1)break f;J[c+24>>2]=b;J[695492]=0;_(21,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h;break f}a=Z()|0;if(H[f+15|0]>=0)break d;qc(J[f+4>>2]);ba(a|0);B()}a=Z()|0;break e}a=Z()|0;qc(g);break e}b=J[c>>2];m:{if(!b){J[c+28>> -2]=12;b=0;break m}J[c+28>>2]=J[b+44>>2];if(!J[b+40>>2]){qc(ht(b));b=0;J[c>>2]=0;break m}b=J[c+20>>2];J[695492]=0;jw(b);c=J[695492];J[695492]=0;b=1;if((c|0)==1)break f}ve(d);if(H[f+31|0]<0)qc(J[f+20>>2]);bc=f+32|0;break c}a=Z()|0;break e}a=Z()|0;ve(d)}if(H[f+31|0]>=0)break d;qc(J[f+20>>2])}ba(a|0);B()}if(b){a=J[J[a+16>>2]+40>>2];b=J[a>>2];n:{if(b){a=0;if(J[b+40>>2])break n;a=b+44|0}else a=a+28|0;a=J[a>>2]}}else a=1;return!a|0}a=Z()|0;qc(c);ba(a|0);B()}function eO(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;e=bc-112|0;bc=e;J[e+8>>2]=0;n=-1;i=Pr(a,1918128707);a:{if(!i)break a;b:{c:{d:{e:{l=Pr(a,1733579331);if(l){j=Pr(a,1649693251);if(!j)break e;g=Pr(a,1918392666);if(!g)break e;f=Pr(a,1733843290);if(!f)break c;a=Pr(a,1649957210);if(!a)break c;if(J[i+4>>2]!=1668641398|J[g+4>>2]!=1482250784|(J[l+4>>2]!=1668641398|J[f+4>>2]!=1482250784))break b;if(J[j+4>>2]!=1668641398|J[a+4>>2]!=1482250784)break b;d=zc(152);if(!d)break b;J[d+4>>2]=2627272;J[d+8>>2]=3;J[d+12>>2]=3;wc(d+16|0,0,136);J[d>> -2]=1;h=Yi();if(!h){m=d;break b}if(zm(h,-1,d))break d;J[d+16>>2]=0;J[d+24>>2]=1;J[d+28>>2]=1;f:{if(!b){J[d+20>>2]=0;O[d+56>>3]=+J[g+12>>2]*1.52587890625E-5;O[d+88>>3]=+J[g+16>>2]*1.52587890625E-5;O[d+120>>3]=+J[g+20>>2]*1.52587890625E-5;O[d- -64>>3]=+J[f+12>>2]*1.52587890625E-5;O[d+96>>3]=+J[f+16>>2]*1.52587890625E-5;O[d+128>>3]=+J[f+20>>2]*1.52587890625E-5;O[d+72>>3]=+J[a+12>>2]*1.52587890625E-5;O[d+104>>3]=+J[a+16>>2]*1.52587890625E-5;b=J[a+20>>2];J[d+144>>2]=0;J[d+148>>2]=0;J[d+112>>2]=0;J[d+116>> -2]=0;J[d+80>>2]=0;J[d+84>>2]=0;O[d+136>>3]=+(b|0)*1.52587890625E-5;if(Jo(d+32|0,i+12|0))break d;if(Jo(d+40|0,l+12|0))break d;if(Jo(d+48|0,j+12|0))break d;break f}J[d+20>>2]=1;O[e+16>>3]=+J[g+12>>2]*1.52587890625E-5;O[e+48>>3]=+J[g+16>>2]*1.52587890625E-5;O[e+80>>3]=+J[g+20>>2]*1.52587890625E-5;O[e+24>>3]=+J[f+12>>2]*1.52587890625E-5;O[e+56>>3]=+J[f+16>>2]*1.52587890625E-5;O[e+88>>3]=+J[f+20>>2]*1.52587890625E-5;O[e+32>>3]=+J[a+12>>2]*1.52587890625E-5;O[e- -64>>3]=+J[a+16>>2]*1.52587890625E-5;b=J[a+ -20>>2];J[e+104>>2]=0;J[e+108>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;O[e+96>>3]=+(b|0)*1.52587890625E-5;J[e+40>>2]=0;J[e+44>>2]=0;if(gO(d+56|0,e+16|0))break d;J[e+8>>2]=0;J[e+12>>2]=0;b=e+8|0;if(Jo(b,i+12|0))break d;if(_x(d+32|0,b,J[e+12>>2]))break d;b=J[e+8>>2];if(b)qc(b);J[e+8>>2]=0;J[e+12>>2]=0;b=e+8|0;if(Jo(b,l+12|0))break d;if(_x(d+40|0,b,J[e+12>>2]))break d;b=J[e+8>>2];if(b)qc(b);J[e+8>>2]=0;J[e+12>>2]=0;b=e+8|0;if(Jo(b,j+12|0))break d;if(_x(d+48|0,b,J[e+12>>2]))break d;b=J[e+8>>2];if(!b)break f;qc(b)}Xi(i); -Xi(g);Xi(l);Xi(f);Xi(j);Xi(a);cO(d);J[c>>2]=h;n=0;break a}Xi(i);break a}Xi(i);Xi(l);if(!j)break a;Xi(j);break a}m=d;k=h;break b}a=0}Xi(i);Xi(g);Xi(l);if(f)Xi(f);Xi(j);if(a)Xi(a);if(k){a=J[k>>2];if((a|0)>0)while(1){d=J[k+8>>2];a=a-1|0;b=a<<2;h=J[d+b>>2];c=J[h>>2];J[h>>2]=c-1;if((c|0)<=1){gc[J[J[h+4>>2]>>2]](h);qc(h);d=J[k+8>>2];a=J[k>>2]-1|0}J[b+d>>2]=0;J[k>>2]=a;if((a|0)>0)continue;break}a=J[k+8>>2];if(a)qc(a);qc(k)}if(!m)break a;a=J[m>>2];J[m>>2]=a-1;if((a|0)>1)break a;gc[J[J[m+4>>2]>>2]](m);qc(m)}bc= -e+112|0;return n}function h2a(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;e=bc-288|0;bc=e;h=J[a+464>>2];a:{b:{if(J[h+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[h+12>>2]/8|0);J[h+12>>2]=0;if(!(gc[J[c+8>>2]](a)|0))break a;if(J[a+336>>2]>0){c=0;while(1){J[((c<<2)+h|0)+20>>2]=0;c=c+1|0;if((c|0)>2])continue;break}}J[h+16>>2]=0;J[h+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[h+36>>2]=0}c:{if(!J[h+36>>2]){o=J[a+428>>2];l=J[a+ -412>>2];c=J[a+420>>2];J[e+284>>2]=a;f=J[a+24>>2];J[e+268>>2]=J[f>>2];J[e+272>>2]=J[f+4>>2];p=-1<>2];f=J[a+408>>2];k=J[b>>2];g=J[h+8>>2];d:{e:{f:{j=J[h+16>>2];if(j){b=0;break f}if((f|0)>(l|0)){b=0;break f}n=J[h+60>>2];b=0;while(1){g:{h:{i:{if((d|0)>7)break i;c=e+268|0;if(!Fg(c,g,d,0))break c;g=J[e+276>>2];d=J[e+280>>2];if((d|0)>7)break i;c=wi(c,g,d,n,1);break h}c=g>>d-8&255;j=J[((c<<2)+n|0)+144>>2];if(j){c=K[(c+n|0)+1168|0];d=d-j|0;break g}c=wi(e+268|0,g,d,n,9)}if((c|0)<0)break c; -g=J[e+276>>2];d=J[e+280>>2]}i=c>>>4|0;j:{k:switch(c&15){default:c=J[a>>2];J[c+20>>2]=121;gc[J[c+4>>2]](a,-1);case 1:if((d|0)<=0){if(!Fg(e+268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;q=g>>>d&1?m:p;break j;case 0:break k}q=0;if((i|0)==15)break j;j=1<>>0<16)break e;if((d|0)<(i|0)){if(!Fg(e+268|0,g,d,i))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-i|0;j=(J[(i<<2)+55904>>2]&g>>d)+j|0;break f}s=(f|0)>(l|0)?f:l;j=s+1|0;l:{while(1){c=f;f=(J[(c<<2)+o>>2]<<1)+k|0;m:{if(L[f>>1]){if((d|0)<=0){if(!Fg(e+ -268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;if(!(g>>>d&1))break m;r=I[f>>1];if(r&m)break m;I[f>>1]=((r|0)<0?p:m)+r;break m}if((i|0)<=0)break l;i=i-1|0}f=c+1|0;if((c|0)!=(s|0))continue;break}c=j}if(q){f=J[(c<<2)+o>>2];I[(f<<1)+k>>1]=q;J[(b<<2)+e>>2]=f;b=b+1|0}f=c+1|0;if((c|0)<(l|0))continue;break}break d}if(!j)break d}if((f|0)<=(l|0))while(1){c=f;f=(J[(c<<2)+o>>2]<<1)+k|0;n:{if(!L[f>>1])break n;if((d|0)<=0){if(!Fg(e+268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;if(!(g>>>d&1))break n; -i=I[f>>1];if(i&m)break n;I[f>>1]=i+((i|0)<0?p:m)}f=c+1|0;if((c|0)!=(l|0))continue;break}t=j-1|0}a=J[a+24>>2];J[a>>2]=J[e+268>>2];J[a+4>>2]=J[e+272>>2];J[h+16>>2]=t;J[h+12>>2]=d;J[h+8>>2]=g}J[h+40>>2]=J[h+40>>2]-1;d=1;break a}if((b|0)<=0){d=0;break a}c=b;a=c&3;if(a){d=0;while(1){c=c-1|0;I[(J[(c<<2)+e>>2]<<1)+k>>1]=0;d=d+1|0;if((a|0)!=(d|0))continue;break}}d=0;if(b>>>0<4)break a;while(1){a=(c<<2)+e|0;I[(J[a-4>>2]<<1)+k>>1]=0;I[(J[a-8>>2]<<1)+k>>1]=0;a=c-3|0;I[(J[(a<<2)+e>>2]<<1)+k>>1]=0;c=c-4|0;I[(J[(c<< -2)+e>>2]<<1)+k>>1]=0;if(a>>>0>1)continue;break}}bc=e+288|0;return d|0}function Be(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;c=H[b|0];if(!c)return a;a=Yf(a,c);a:{if(!a)break a;if(!K[b+1|0])return a;c=K[a+1|0];if(!c)break a;if(!K[b+2|0]){e=(c|0)!=0;b:{if(!c)break b;c=c|K[a|0]<<8;d=K[b+1|0]|K[b|0]<<8;if((c|0)==(d|0))break b;b=a+1|0;while(1){a=b;g=K[a+1|0];e=(g|0)!=0;if(!g)break b;b=a+1|0;c=g|c<<8&65280;if((d|0)!=(c|0))continue;break}}return e?a:0}d=K[a+2|0];if(!d)break a;if(!K[b+3| -0]){c=a+2|0;h=(d|0)!=0;c:{d:{if(!d)break d;e=K[a+1|0]<<16|K[a|0]<<24|d<<8;b=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;if((e|0)==(b|0))break d;while(1){a=c+1|0;d=K[c+1|0];h=(d|0)!=0;if(!d)break c;c=a;e=(d|e)<<8;if((b|0)!=(e|0))continue;break}break c}a=c}return h?a-2|0:0}d=K[a+3|0];if(!d)break a;if(!K[b+4|0]){c=a+3|0;h=(d|0)!=0;e:{f:{if(!d)break f;e=d|(K[a+1|0]<<16|K[a|0]<<24|K[a+2|0]<<8);a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if((e|0)==(b|0))break f;while(1){a= -c+1|0;d=K[c+1|0];h=(d|0)!=0;if(!d)break e;c=a;e=d|e<<8;if((b|0)!=(e|0))continue;break}break e}a=c}return h?a-3|0:0}h=a;c=0;i=bc-1056|0;bc=i;a=i+1048|0;J[a>>2]=0;J[a+4>>2]=0;a=i+1040|0;J[a>>2]=0;J[a+4>>2]=0;J[i+1032>>2]=0;J[i+1036>>2]=0;J[i+1024>>2]=0;J[i+1028>>2]=0;k=b;g:{h:{i:{b=K[b|0];j:{if(!b){j=-1;a=1;break j}while(1){if(!K[f+h|0])break g;f=f+1|0;J[((b&255)<<2)+i>>2]=f;a=(i+1024|0)+(b>>>3&28)|0;J[a>>2]=J[a>>2]|1<>>0>1)break i}d=-1;c=1;break h}g= -1;b=1;while(1){d=K[(k+j|0)+b|0];e=K[a+k|0];k:{if((d|0)==(e|0)){if((b|0)==(g|0)){c=c+g|0;b=1;break k}b=b+1|0;break k}if(d>>>0>e>>>0){g=a-j|0;c=a;b=1;break k}j=c;c=c+1|0;g=1;b=1}a=b+c|0;if(f>>>0>a>>>0)continue;break}c=1;d=-1;if(f>>>0<=1){a=g;break h}a=0;e=1;b=1;while(1){n=K[(d+k|0)+b|0];l=K[c+k|0];l:{if((n|0)==(l|0)){if((b|0)==(e|0)){a=a+e|0;b=1;break l}b=b+1|0;break l}if(n>>>0>>0){e=c-d|0;a=c;b=1;break l}d=a;a=a+1|0;e=1;b=1}c=a+b|0;if(f>>>0>c>>>0)continue;break}a=g;c=e}b=a;a=d+1>>>0>j+1>>>0;e=a? -c:b;m=a?d:j;l=m+1|0;m:{if(Wc(k,k+e|0,l)){a=(m^-1)+f|0;e=(a>>>0>>0?m:a)+1|0;g=0;break m}g=f-e|0}n=f-1|0;o=f|63;d=0;a=h;while(1){n:{if(h-a>>>0>=f>>>0)break n;c=0;b=pg(h,0,o);h=b?b:h+o|0;if(!b)break n;if(b-a>>>0>>0)break g}b=f;c=K[a+n|0];o:{p:{if(!(J[(i+1024|0)+(c>>>3&28)>>2]>>>c&1))break p;b=J[(c<<2)+i>>2];if((f|0)!=(b|0)){b=f-b|0;b=b>>>0>d>>>0?b:d;break p}q:{b=l;c=b>>>0>d>>>0?b:d;j=K[k+c|0];if(j)while(1){if(K[a+c|0]!=(j&255))break q;c=c+1|0;j=K[k+c|0];if(j)continue;break}while(1){if(b>>>0<=d>>> -0){c=a;break g}b=b-1|0;if(K[k+b|0]==K[a+b|0])continue;break}b=e;d=g;break o}b=c-m|0}d=0}a=a+b|0;continue}}bc=i+1056|0;e=c}return e}function Pta(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;i=bc+-64|0;bc=i;J[i+56>>2]=0;J[i+60>>2]=0;J[i+48>>2]=0;J[i+52>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0;J[i+32>>2]=0;J[i+36>>2]=0;oG(a,d,i+32|0,i+48|0);a:{b:{c:{f=J[b+8>>2];g=J[b>>2];if(L[c+10>>1]==(f-g|0)){h=J[b+12>>2];j=J[b+4>>2];if(L[c+ -8>>1]==(h-j|0))break c}a=Kc(i+8|0,2376551,2373803,611,2413656,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}d:{if(!((g|0)>J[i+48>>2]|(j|0)>J[i+52>>2]|(f|0)>2]))if((h|0)>=J[i+60>>2])break d;a=Kc(i+8|0,2377075,2373803,616,2413656,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}g=J[d+8>>2]-J[d>>2]|0;f=J[d+12>>2]-J[d+4>>2]|0;if(!((g|0)==L[e+10>>1]&(f|0)==L[e+8>>1])){h=J[e+20>>2];if(h)qc(h);J[e+16>>2]=0;J[e+20>>2]=0;I[e+12>>1]=g;I[e+ -10>>1]=g;I[e+8>>1]=f;f=P(g&65535,f&65535);if(f){f=rc((y=-1,z=Dzb(f,0,3,0),A=fc,A?y:z));J[e+16>>2]=f;J[e+20>>2]=f}}r=a+80|0;oe(r,0,3);s=a+92|0;oe(s,0,3);t=a+68|0;oe(t,0,3);JT();u=J[i+32>>2];q=J[i+40>>2]-u|0;oe(t,q+2|0,3);if(!(J[a+16>>2]<=0&J[a+20>>2]<=0)){oe(r,q,3);oe(s,q,3);J[a+100>>2]=-1;J[a+104>>2]=-1}o=J[d+4>>2];if((o|0)>2]){v=J[i+44>>2]-1|0;w=J[i+36>>2];x=P(u,-3);while(1){m=J[J[a+40>>2]+(o<<2)>>2];f=m>>4;g=f+1|0;e:{if(!(J[a+16>>2]<=0&J[a+20>>2]<=0)){h=f;f=i+32|0;h=IT(a,h,f,b,c);j=IT(a, -g,f,b,c);break e}n=J[c+16>>2];h=J[b+4>>2];g=((g|0)<(v|0)?g:v)-h|0;k=L[c+12>>1];p=L[c+8>>1];j=(g|0)>=0?p>>>0>g>>>0?n+P(P(g,k),3)|0:0:0;g=P(u-J[b>>2]|0,3);j=j+g|0;f=((f|0)>(w|0)?f:w)-h|0;h=g+((f|0)>=0?f>>>0

      >>0?n+P(P(f,k),3)|0:0:0)|0}n=P(q,3);k=J[a+64>>2];g=k+3|0;if((q|0)>0){p=k+n|0;m=((m&15)<<10)+2762528|0;f=g;while(1){l=K[h+2|0];H[f+2|0]=K[m+(K[j+2|0]-l<<1)|0]+l;l=K[h+1|0];H[f+1|0]=K[m+(K[j+1|0]-l<<1)|0]+l;l=K[h|0];H[f|0]=K[m+(K[j|0]-l<<1)|0]+l;h=h+3|0;j=j+3|0;l=f>>>0

      >>0;f=f+3|0;if(l)continue; -break}}f=K[g|0]|K[g+1|0]<<8;H[k|0]=f;H[k+1|0]=f>>>8;H[k+2|0]=K[g+2|0];f=n+J[a+64>>2]|0;g=K[f|0]|K[f+1|0]<<8;H[f+3|0]=g;H[f+4|0]=g>>>8;H[f+5|0]=K[f+2|0];g=J[a+64>>2];h=0;f=o-J[d+4>>2]|0;f:{if((f|0)<0|f>>>0>=L[e+8>>1])break f;j=J[e+16>>2];if(!j)break f;h=j+P(P(f,L[e+12>>1]),3)|0}j=J[d>>2];m=J[d+8>>2];if((j|0)<(m|0)){n=(g+x|0)+3|0;p=J[a+52>>2];while(1){k=J[p+(j<<2)>>2];f=n+P(k>>4,3)|0;g=K[f+2|0];k=((k&15)<<10)+2762528|0;H[h+2|0]=g+K[k+(K[f+5|0]-g<<1)|0];g=K[f+1|0];H[h+1|0]=K[k+(K[f+4|0]-g<<1)|0]+g;g= -K[f+3|0];f=K[f|0];H[h|0]=K[k+(g-f<<1)|0]+f;h=h+3|0;j=j+1|0;if((m|0)!=(j|0))continue;break}}o=o+1|0;if((o|0)>2])continue;break}}oe(r,0,3);oe(s,0,3);oe(t,0,3);bc=i- -64|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function E2a(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;f=J[a+464>>2];if(J[a+280>>2]){e=J[f+52>>2];if(!e){if(!(gc[J[J[a+460>>2]+8>>2]](a)|0)){e=J[a>>2];J[e+20>>2]=25;gc[J[e>>2]](a)}if(J[a+336>>2]>0){e=0;while(1){g=e<<2;d=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+ -408>>2])break b;if(J[a+416>>2])break a}c=J[((J[d+20>>2]<<2)+f|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36| -0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=f+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}wc(J[((J[d+24>>2]<<2)+f|0)+120>>2],0,256)}e=e+1|0;if((e|0)> -2])continue;break}}J[f+16>>2]=-16;J[f+8>>2]=0;J[f+12>>2]=0;e=J[a+280>>2]}J[f+52>>2]=e-1}c:{d:{if(J[f+16>>2]==-1)break d;e=J[a+408>>2];if((e|0)>J[a+412>>2])break d;h=J[b>>2];i=J[a+428>>2];j=f+184|0;b=J[J[a+340>>2]+24>>2];k=b+a|0;g=(b<<2)+f|0;while(1){c=e;e=(J[g+120>>2]+P(c,3)|0)-3|0;if(Kd(a,e))break d;while(1){if(!Kd(a,e+1|0)){e=e+3|0;b=J[a+412>>2]>(c|0);c=c+1|0;if(b)continue;break c}break}l=Kd(a,j);b=e+2|0;e:{if(!Kd(a,b)){b=0;break e}if(!Kd(a,b)){b=1;break e}b=J[g+120>>2]+(K[k+264|0]<(c|0)?217:189)| -0;f:{if(!Kd(a,b)){e=2;break f}d=b+1|0;if(!Kd(a,d)){e=4;b=d;break f}d=b+2|0;if(!Kd(a,d)){e=8;b=d;break f}d=b+3|0;if(!Kd(a,d)){e=16;b=d;break f}d=b+4|0;if(!Kd(a,d)){e=32;b=d;break f}d=b+5|0;if(!Kd(a,d)){e=64;b=d;break f}d=b+6|0;if(!Kd(a,d)){e=128;b=d;break f}d=b+7|0;if(!Kd(a,d)){e=256;b=d;break f}d=b+8|0;if(!Kd(a,d)){e=512;b=d;break f}d=b+9|0;if(!Kd(a,d)){e=1024;b=d;break f}d=b+10|0;if(!Kd(a,d)){e=2048;b=d;break f}d=b+11|0;if(!Kd(a,d)){e=4096;b=d;break f}d=b+12|0;if(!Kd(a,d)){e=8192;b=d;break f}e=16384; -b=b+13|0;if(Kd(a,b))break c}m=b+14|0;b=e;while(1){d=e>>>1|0;b=(Kd(a,m)?d:0)|b;n=e>>>0>3;e=d;if(n)continue;break}}I[(J[(c<<2)+i>>2]<<1)+h>>1]=(l?b^-1:b+1|0)<>2];e=c+1|0;if(J[a+412>>2]>(c|0))continue;break}}return 1}b=J[a>>2];J[b+20>>2]=117;gc[J[b+4>>2]](a,-1);J[f+16>>2]=-1;return 1}function Esa(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=bc-32|0;bc=f;J[f+16>>2]=0;h=J[a+12>>2];g=zz(f+20|0,1,2381340);if(h){h=b+h|0;while(1){e=h;h=e+1|0;if(K[e|0]==32)continue;break}}h=vg(e,f+16| -0,d);a:{b:{e=J[g>>2];if(!e)break b;c:{d:{if(!J[e+8>>2]){J[g>>2]=0;break d}e=J[e+12>>2];i=J[g+8>>2];J[695492]=0;aa(5471,i|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;e=J[g>>2];J[g>>2]=0;if(!e)break b}J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)!=1){if(g)break b;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break b}break a}break a}e:{e=J[f+16>>2];if(e){J[c>>2]=e-J[a+12>>2];break e}J[c>>2]=-1;g=f+20|0;Az(g,e,J[a+12>>2]+b|0);b=J[f+20>>2];if(!b)break e; -e=J[J[b>>2]+24>>2];J[695492]=0;i=e;e=f+12|0;ca(i|0,e|0,b|0,2);b=J[695492];J[695492]=0;f:{g:{if((b|0)!=1){J[695492]=0;aa(4993,g|0,e|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[f+12>>2];J[f+12>>2]=0;if(!b)break h;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break a}e=Z()|0;vc(f+12|0);break g}b=J[f+20>>2];if(!b)break e;e=J[J[b>>2]+44>>2];J[695492]=0;h=ha(e|0,b|0,0,f+12|0,d|0)|0;b=J[695492]; -J[695492]=0;i:{j:{k:{l:{m:{n:{if((b|0)!=1){e=J[f+20>>2];b=J[f+12>>2];if((b|0)<=0)break j;J[c>>2]=J[a+8>>2];a=J[a+12>>2];J[695492]=0;d=f+8|0;ca(5467,d|0,e|0,a+b|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;J[695492]=0;aa(4993,f+20|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f+8>>2];J[f+8>>2]=0;o:{if(!a)break o;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break o;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[f+20>> -2];if(!a)break e;b=J[J[a>>2]+28>>2];J[695492]=0;d=b;b=f+8|0;ca(d|0,b|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break l;J[695492]=0;aa(4993,f+20|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[f+8>>2];J[f+8>>2]=0;p:{if(!a)break p;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(b)break p;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f}e=J[f+20>>2];if(!e)break e;J[c>>2]=J[c>>2]-J[e+8>>2];J[f+20>>2]=0;break i}e=Z()|0;break g}e=Z()| -0;break g}e=Z()|0;vc(f+8|0);break g}e=Z()|0;break g}e=Z()|0;vc(f+8|0);break g}J[f+20>>2]=0;if(!e)break e}J[695492]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break e;J[695492]=0;_(4987,e|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break a}e=Z()|0}vc(f+20|0);ba(e|0);B()}break a}bc=f+32|0;return h|0}ea(0)|0;yc();B()}function Dsa(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=bc-32|0;bc=f;J[f+16>>2]=0;h=J[a+12>>2];g=zz(f+20|0,1,2381340);if(h){h=b+h|0;while(1){e= -h;h=e+1|0;if(K[e|0]==32)continue;break}}h=Jy(e,f+16|0,d);a:{b:{e=J[g>>2];if(!e)break b;c:{d:{if(!J[e+8>>2]){J[g>>2]=0;break d}e=J[e+12>>2];i=J[g+8>>2];J[695492]=0;aa(5471,i|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;e=J[g>>2];J[g>>2]=0;if(!e)break b}J[695492]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[695492];J[695492]=0;if((i|0)!=1){if(g)break b;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break b}break a}break a}e:{e=J[f+16>>2];if(e){J[c>>2]=e-J[a+12>>2];break e}J[c>>2]=-1;g=f+20| -0;Az(g,e,J[a+12>>2]+b|0);b=J[f+20>>2];if(!b)break e;e=J[J[b>>2]+24>>2];J[695492]=0;i=e;e=f+12|0;ca(i|0,e|0,b|0,2);b=J[695492];J[695492]=0;f:{g:{if((b|0)!=1){J[695492]=0;aa(4993,g|0,e|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[f+12>>2];J[f+12>>2]=0;if(!b)break h;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break a}e=Z()|0;vc(f+12|0);break g}b=J[f+20>>2];if(!b)break e;e=J[J[b>>2]+48>> -2];J[695492]=0;h=ha(e|0,b|0,0,f+12|0,d|0)|0;b=J[695492];J[695492]=0;i:{j:{k:{l:{m:{n:{if((b|0)!=1){e=J[f+20>>2];b=J[f+12>>2];if((b|0)<=0)break j;J[c>>2]=J[a+8>>2];a=J[a+12>>2];J[695492]=0;d=f+8|0;ca(5467,d|0,e|0,a+b|0);a=J[695492];J[695492]=0;if((a|0)==1)break n;J[695492]=0;aa(4993,f+20|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[f+8>>2];J[f+8>>2]=0;o:{if(!a)break o;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break o;J[695492]=0;_(4987,a|0); -a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[f+20>>2];if(!a)break e;b=J[J[a>>2]+28>>2];J[695492]=0;d=b;b=f+8|0;ca(d|0,b|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break l;J[695492]=0;aa(4993,f+20|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[f+8>>2];J[f+8>>2]=0;p:{if(!a)break p;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(b)break p;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f}e=J[f+20>>2];if(!e)break e;J[c>>2]=J[c>>2]- -J[e+8>>2];J[f+20>>2]=0;break i}e=Z()|0;break g}e=Z()|0;break g}e=Z()|0;vc(f+8|0);break g}e=Z()|0;break g}e=Z()|0;vc(f+8|0);break g}J[f+20>>2]=0;if(!e)break e}J[695492]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break e;J[695492]=0;_(4987,e|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break a}e=Z()|0}vc(f+20|0);ba(e|0);B()}break a}bc=f+32|0;return h|0}ea(0)|0;yc();B()}function c0a(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;h=bc-16|0;bc=h; -d=J[a+8>>2];J[h+8>>2]=d;k=J[a+4>>2];e=J[k+8>>2];l=e+48|0;m=J[a+12>>2];j=J[a+16>>2];a:{b:{if(!J[e+60>>2]){if(!(K[k+36|0]!=1|d>>>0>=m>>>0|M[a+20>>2]<=j>>>0)){H[k+36|0]=0;f=K[k+37|0];break b}c=0;break a}c=1;break a}c=2}while(1){c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(c|0){case 0:if(d>>>0>=m>>>0)break f;if(M[a+20>>2]<=j>>>0)break g;p:{q:{r:{while(1){c=d+1|0;s:{t:{u:{f=K[d|0];switch(f-10|0){case 0:case 3:break n;case 17:break p;case 5:break t;case 4:break u;default:break m}}if(!K[e+49|0])break q; -H[e+68|0]=1;H[e+52|0]=1;break s}H[e+52|0]=0;if(K[e+68|0])break r}d=c;if((c|0)!=(m|0))continue;break}d=m;break f}H[e+68|0]=0;J[b>>2]=18;b=J[a+4>>2];H[b+37|0]=15;J[b+256>>2]=2;H[J[a+4>>2]+36|0]=1;J[a+8>>2]=c;break e}J[h+8>>2]=c;H[e+68|0]=0;f=14;g=65535;break i}J[h+8>>2]=d;k=J[a+4>>2];c=1;continue;case 1:break o;default:break l}c=K[k+36|0];ZB(k,h+8|0,m,3,b);g=J[b>>2];v:{w:{if(J[e+60>>2])break w;if((g|0)<=0){if(!K[e+68|0])break w;J[b>>2]=18;b=J[a+4>>2];J[b+256>>2]=2;H[b+36|0]=c+(J[h+8>>2]-d|0)}d=J[h+ -8>>2];break v}d=J[h+8>>2];if((g|0)<=0)break c}J[a+8>>2]=d;J[a+16>>2]=j;H[e+68|0]=0;break d}J[h+8>>2]=c;H[l+4|0]=0;H[l+5|0]=0;H[l|0]=0;H[l+1|0]=0;H[l+2|0]=0;H[l+3|0]=0;H[e+68|0]=0;d=c;g=f;break h}d=f<<24>>24;J[h+8>>2]=c;H[e+68|0]=0;if(!K[e+52|0])break j;if(c>>>0>=m>>>0)break k;d=c;c=2;continue}i=K[d|0];c=i-33|0;x:{if(!((f+223&254)>>>0>93|(c&255)>>>0>93)){d=d+1|0;J[h+8>>2]=d;c=H[H[e+52|0]+l|0];y:{if((c|0)>=32){n=J[e+12>>2];H[h+15|0]=i;g=c+96|0;o=3;c=f;break y}o=2;n=J[(c<<2)+e>>2];g=f;c=i}H[h+14|0]= -c;H[h+13|0]=g;f=i|f<<8;g=en(n,h+13|0,o);break x}g=65535;if((c&255)>>>0<94|(1<>>0<=31:0))break x;d=d+1|0;J[h+8>>2]=d;f=i|f<<8|65536}if(H[e+52|0]<2)break h;H[e+52|0]=K[e+53|0];break h}H[J[a+4>>2]+37|0]=d;H[J[a+4>>2]+36|0]=1;d=c;break f}g=(d|0)<0?65535:f}d=c}if(g>>>0<=65533){c=J[a+24>>2];if(c)J[c+(j-J[a+16>>2]<<1)>>2]=((f>>>0<256?-1:-2)+d|0)-J[a+8>>2];I[j>>1]=g;j=j+2|0;break c}if(g>>>0>=65536){I[j>>1]=(g+67043328>>>10|0)-10240;z:{A:{B:{n=J[a+24>>2];C:{if(!n){c=j+2|0;if(c>>>0>2])break B; -break C}o=J[a+16>>2];i=((f>>>0<256?-1:-2)+d|0)-J[a+8>>2]|0;J[n+(j-o<<1)>>2]=i;c=j+2|0;if(c>>>0>2])break A}j=c;i=J[a+4>>2];c=H[i+65|0];H[i+65|0]=c+1;I[(i+(c<<1)|0)+116>>1]=g&1023|56320;break c}I[c>>1]=g&1023|56320;break z}I[c>>1]=g&1023|56320;J[n+(c-o<<1)>>2]=i}j=j+4|0;break c}c=J[a+4>>2];if(f>>>0>=256){H[c+38|0]=f;f=f>>>8|0;i=2}else i=1;H[c+36|0]=i;H[c+37|0]=f;J[b>>2]=(g|0)==65534?10:12;break f}J[b>>2]=15}J[a+8>>2]=d}J[a+16>>2]=j}bc=h+16|0;return}c=0;continue}}function g3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0;g=J[a+4>>2];f=J[g>>2];t=O[f+32>>3];u=O[f>>3];y=O[f+16>>3];v=O[f+40>>3];w=O[f+8>>3];o=O[a+16>>3];m=O[f+24>>3];i=O[a+24>>3];h=(e|0)<=1?1:e;J[g+24>>2]=h;J[g+4>>2]=h;s=o+ +(c|0);o=m;m=i+ +(d|0);x=o*m;i=(v+(w*s+x))*256;i=i+(i<0?-.5:.5);a:{if(R(i)<2147483648){d=~~i;break a}d=-2147483648}J[g+40>>2]=d;o=m*y;i=(t+(s*u+o))*256;i=i+(i<0?-.5:.5);b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}J[g+ -20>>2]=c;m=s+ +(e>>>0);i=(v+(m*w+x))*256;i=i+(i<0?-.5:.5);c:{if(R(i)<2147483648){l=~~i;break c}l=-2147483648}f=l-d|0;d=(f|0)/(h|0)|0;j=f-P(d,h)|0;k=(j|0)<=0;J[g+28>>2]=d-k;i=(t+(m*u+o))*256;i=i+(i<0?-.5:.5);d:{if(R(i)<2147483648){d=~~i;break d}d=-2147483648}d=d-c|0;c=(d|0)/(h|0)|0;l=c;f=d-P(c,h)|0;c=(f|0)<=0;J[g+8>>2]=l-c;d=j+(k?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e;c=J[a+4>>2];g=J[c+40>>2];d=J[c+20>>2];while(1){c=J[a+36>>2];h=J[a>>2];n=d-J[a+32>>2]|0;f=n>>8; -J[h+8>>2]=f;p=g-c|0;g=J[h+32>>2];k=(J[h+36>>2]+(p>>8)>>>0)%(g>>>0)|0;J[h+40>>2]=k;c=J[J[h>>2]>>2];d=J[c+4>>2];c=J[c+16>>2];l=f+J[h+20>>2]|0;f=J[h+16>>2];j=(l>>>0)%(f>>>0)|0;J[h+24>>2]=j;g=d+P(c,k>>>0>2]?k:g+(k^-1)|0)|0;J[h+4>>2]=g;d=J[h+12>>2];c=g+((d>>>0>j>>>0?j:f+(j^-1)|0)<<2)|0;z=K[c+2|0];A=K[c+1|0];B=K[c|0];q=K[c+3|0];c=j+1|0;c=c>>>0>>0?c:0;J[h+24>>2]=c;c=g+((c>>>0>>0?c:f+(c^-1)|0)<<2)|0;C=K[c+2|0];D=K[c+1|0];E=K[c|0];l=K[c+3|0];h=J[a>>2];c=J[h+40>>2]+1|0;f=J[h+32>>2];j=f>>>0>c>>> -0?c:0;J[h+40>>2]=j;c=J[J[h>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];d=J[h+16>>2];k=(J[h+20>>2]+J[h+8>>2]>>>0)%(d>>>0)|0;J[h+24>>2]=k;c=g+P(c,j>>>0>2]?j:f+(j^-1)|0)|0;J[h+4>>2]=c;c=c+((k>>>0>2]?k:d+(k^-1)|0)<<2)|0;F=K[c+2|0];G=K[c+1|0];h=K[c|0];j=K[c+3|0];g=J[a>>2];c=J[g+24>>2]+1|0;d=c;c=J[g+16>>2];d=d>>>0>>0?d:0;J[g+24>>2]=d;r=J[g+4>>2]+((d>>>0>2]?d:c+(d^-1)|0)<<2)|0;k=K[r+2|0];f=K[r+1|0];g=K[r|0];I=q;p=p&255;d=256-p|0;q=n&255;c=256-q|0;n=P(d,c);L=l;l=P(d,q);d=P(c,p);c=P(p,q);H[b+ -3|0]=(((P(I,n)+P(L,l)|0)+P(d,j)|0)+P(c,K[r+3|0])|0)+32768>>>16;H[b+2|0]=(((P(n,B)+P(l,E)|0)+P(d,h)|0)+P(c,g)|0)+32768>>>16;H[b+1|0]=(((P(n,A)+P(l,D)|0)+P(d,G)|0)+P(c,f)|0)+32768>>>16;H[b|0]=(((P(n,z)+P(l,C)|0)+P(d,F)|0)+P(c,k)|0)+32768>>>16;f=J[a+4>>2];c=J[f+16>>2]+J[f+12>>2]|0;J[f+16>>2]=c;d=J[f+20>>2]+J[f+8>>2]|0;J[f+20>>2]=d;if((c|0)>0){d=d+1|0;J[f+20>>2]=d;J[f+16>>2]=c-J[f+4>>2]}c=J[f+36>>2]+J[f+32>>2]|0;J[f+36>>2]=c;g=J[f+40>>2]+J[f+28>>2]|0;J[f+40>>2]=g;if((c|0)>0){g=g+1|0;J[f+40>>2]=g;J[f+ -36>>2]=c-J[f+24>>2]}b=b+4|0;e=e-1|0;if(e)continue;break}}function a3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0;g=J[a+4>>2];f=J[g>>2];t=O[f+32>>3];u=O[f>>3];y=O[f+16>>3];v=O[f+40>>3];w=O[f+8>>3];o=O[a+16>>3];m=O[f+24>>3];i=O[a+24>>3];h=(e|0)<=1?1:e;J[g+24>>2]=h;J[g+4>>2]=h;s=o+ +(c|0);o=m;m=i+ +(d|0);x=o*m;i=(v+(w*s+x))*256;i=i+(i<0?-.5:.5);a:{if(R(i)<2147483648){d=~~i;break a}d=-2147483648}J[g+40>>2]=d;o= -m*y;i=(t+(s*u+o))*256;i=i+(i<0?-.5:.5);b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}J[g+20>>2]=c;m=s+ +(e>>>0);i=(v+(m*w+x))*256;i=i+(i<0?-.5:.5);c:{if(R(i)<2147483648){l=~~i;break c}l=-2147483648}f=l-d|0;d=(f|0)/(h|0)|0;j=f-P(d,h)|0;k=(j|0)<=0;J[g+28>>2]=d-k;i=(t+(m*u+o))*256;i=i+(i<0?-.5:.5);d:{if(R(i)<2147483648){d=~~i;break d}d=-2147483648}d=d-c|0;c=(d|0)/(h|0)|0;l=c;f=d-P(c,h)|0;c=(f|0)<=0;J[g+8>>2]=l-c;d=j+(k?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e; -c=J[a+4>>2];g=J[c+40>>2];d=J[c+20>>2];while(1){c=J[a+36>>2];h=J[a>>2];n=d-J[a+32>>2]|0;f=n>>8;J[h+8>>2]=f;p=g-c|0;g=J[h+32>>2];k=(J[h+36>>2]+(p>>8)>>>0)%(g>>>0)|0;J[h+40>>2]=k;c=J[J[h>>2]>>2];d=J[c+4>>2];c=J[c+16>>2];l=f+J[h+20>>2]|0;f=J[h+16>>2];j=(l>>>0)%(f>>>0)|0;J[h+24>>2]=j;g=d+P(c,k>>>0>2]?k:g+(k^-1)|0)|0;J[h+4>>2]=g;d=J[h+12>>2];c=g+((d>>>0>j>>>0?j:f+(j^-1)|0)<<2)|0;z=K[c|0];A=K[c+1|0];B=K[c+2|0];q=K[c+3|0];c=j+1|0;c=c>>>0>>0?c:0;J[h+24>>2]=c;c=g+((c>>>0>>0?c:f+(c^-1)|0)<<2)| -0;C=K[c|0];D=K[c+1|0];E=K[c+2|0];l=K[c+3|0];h=J[a>>2];c=J[h+40>>2]+1|0;f=J[h+32>>2];j=f>>>0>c>>>0?c:0;J[h+40>>2]=j;c=J[J[h>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];d=J[h+16>>2];k=(J[h+20>>2]+J[h+8>>2]>>>0)%(d>>>0)|0;J[h+24>>2]=k;c=g+P(c,j>>>0>2]?j:f+(j^-1)|0)|0;J[h+4>>2]=c;c=c+((k>>>0>2]?k:d+(k^-1)|0)<<2)|0;F=K[c|0];G=K[c+1|0];h=K[c+2|0];j=K[c+3|0];g=J[a>>2];c=J[g+24>>2]+1|0;d=c;c=J[g+16>>2];d=d>>>0>>0?d:0;J[g+24>>2]=d;r=J[g+4>>2]+((d>>>0>2]?d:c+(d^-1)|0)<<2)|0;k=K[r|0];f=K[r+1| -0];g=K[r+2|0];I=q;p=p&255;d=256-p|0;q=n&255;c=256-q|0;n=P(d,c);L=l;l=P(d,q);d=P(c,p);c=P(p,q);H[b+3|0]=(((P(I,n)+P(L,l)|0)+P(d,j)|0)+P(c,K[r+3|0])|0)+32768>>>16;H[b+2|0]=(((P(n,B)+P(l,E)|0)+P(d,h)|0)+P(c,g)|0)+32768>>>16;H[b+1|0]=(((P(n,A)+P(l,D)|0)+P(d,G)|0)+P(c,f)|0)+32768>>>16;H[b|0]=(((P(n,z)+P(l,C)|0)+P(d,F)|0)+P(c,k)|0)+32768>>>16;f=J[a+4>>2];c=J[f+16>>2]+J[f+12>>2]|0;J[f+16>>2]=c;d=J[f+20>>2]+J[f+8>>2]|0;J[f+20>>2]=d;if((c|0)>0){d=d+1|0;J[f+20>>2]=d;J[f+16>>2]=c-J[f+4>>2]}c=J[f+36>>2]+J[f+ -32>>2]|0;J[f+36>>2]=c;g=J[f+40>>2]+J[f+28>>2]|0;J[f+40>>2]=g;if((c|0)>0){g=g+1|0;J[f+40>>2]=g;J[f+36>>2]=c-J[f+24>>2]}b=b+4|0;e=e-1|0;if(e)continue;break}}function ska(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;l=bc-16|0;bc=l;f=a+496|0;if((f|0)!=(b|0)){d=b;a:{if(!J[f+8>>2])break a;b=J[f+4>>2];e=J[b>>2];c=J[J[f>>2]+4>>2];J[e+4>>2]=c;J[c>>2]=e;J[f+8>>2]=0;if((b|0)==(f|0))break a;while(1){c=b;b=J[c+4>>2];b:{if(!J[c+20>>2])break b;e=J[c+16>>2];g=J[e>>2];h=J[J[c+12>>2]+4>>2];J[g+ -4>>2]=h;J[h>>2]=g;J[c+20>>2]=0;h=c+12|0;if((h|0)==(e|0))break b;while(1){g=J[e+4>>2];qc(e);e=g;if((h|0)!=(e|0))continue;break}}qc(c);if((b|0)!=(f|0))continue;break}}c=J[d+8>>2];if(c){b=J[d+4>>2];g=J[b>>2];e=J[d>>2];h=J[e+4>>2];J[g+4>>2]=h;J[h>>2]=g;g=J[f>>2];J[g+4>>2]=b;J[b>>2]=g;J[f>>2]=e;J[e+4>>2]=f;J[f+8>>2]=c+J[f+8>>2];J[d+8>>2]=0}O[f+16>>3]=O[d+16>>3];O[f+24>>3]=O[d+24>>3];O[f+32>>3]=O[d+32>>3];O[f+40>>3]=O[d+40>>3];c:{if(!J[d+8>>2])break c;e=J[d+4>>2];b=J[e>>2];c=J[J[d>>2]+4>>2];J[b+4>>2]=c; -J[c>>2]=b;J[d+8>>2]=0;if((d|0)==(e|0))break c;while(1){c=e;e=J[c+4>>2];d:{if(!J[c+20>>2])break d;b=J[c+16>>2];g=J[b>>2];h=J[J[c+12>>2]+4>>2];J[g+4>>2]=h;J[h>>2]=g;J[c+20>>2]=0;h=c+12|0;if((h|0)==(b|0))break d;while(1){g=J[b+4>>2];qc(b);b=g;if((h|0)!=(b|0))continue;break}}qc(c);if((d|0)!=(e|0))continue;break}}O[d+16>>3]=O[d+48>>3];O[d+24>>3]=O[d+56>>3];O[d+32>>3]=O[d+64>>3];O[d+40>>3]=O[d+72>>3]}c=jS(l+4|0,f);O[a+32>>3]=O[f+16>>3];O[a+8>>3]=O[f+24>>3];O[a+48>>3]=O[f+32>>3]-O[a+32>>3];m=O[a+8>>3];i= -O[f+40>>3]-m;O[a+24>>3]=i;b=0;d=J[c+4>>2];if((c|0)!=(d|0)){e=d;while(1){e:{f:switch(J[e+8>>2]){case 0:case 1:b=b+1|0;break e;case 2:break f;default:break e}k=k+1|0}e=J[e+4>>2];if((c|0)!=(e|0))continue;break}}j=O[a+48>>3];g:{if(!(!(K[a+600|0]?K[a+601|0]:0)&(J[a+76>>2]!=16777215|J[a+436>>2]!=16777215))){J[a+604>>2]=4;break g}if(!((b|0)!=5&(b|0)!=2|k)){J[a+604>>2]=1;if(i<.7){if(j>2){J[a+608>>2]=5;break g}if(j>.7){J[a+608>>2]=3;break g}J[a+608>>2]=1;break g}if(!(j<.7))break g;if(i>2){J[a+608>>2]=6;break g}if(i> -.7){J[a+608>>2]=4;break g}J[a+608>>2]=2;break g}if(!(!k|b>>>0>1)){J[a+604>>2]=2;if(j>i){J[a+608>>2]=7;break g}J[a+608>>2]=8;break g}if(!k|b>>>0<2)break g;J[a+604>>2]=3}if(j<1E-4){J[a+48>>2]=-350469331;J[a+52>>2]=1058682594;j=1E-4}if(i<1E-4){J[a+24>>2]=-350469331;J[a+28>>2]=1058682594;i=1E-4}O[a+16>>3]=m+i;O[a+40>>3]=O[a+32>>3]+j;h:{if(!J[c+8>>2])break h;a=J[d>>2];b=J[J[c>>2]+4>>2];J[a+4>>2]=b;J[b>>2]=a;J[c+8>>2]=0;if((d|0)==(c|0))break h;while(1){a=d;d=J[a+4>>2];i:{if(!J[a+20>>2])break i;e=J[a+16>> -2];b=J[e>>2];g=J[J[a+12>>2]+4>>2];J[b+4>>2]=g;J[g>>2]=b;J[a+20>>2]=0;g=a+12|0;if((g|0)==(e|0))break i;while(1){b=J[e+4>>2];qc(e);e=b;if((g|0)!=(b|0))continue;break}}qc(a);if((d|0)!=(c|0))continue;break}}bc=l+16|0}function t_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=bc-480|0;bc=D;s=J[a+332>>2];b=J[b+84>>2];a=D;while(1){m=J[b+160>>2];n=I[c+80>>1];h=J[b+32>>2];g=I[c+16>>1];k=J[b+224>>2];l=I[c+112>> -1];q=J[b+96>>2];i=I[c+48>>1];j=P(I[c>>1],J[b>>2])<<13|1024;r=P(J[b+192>>2],I[c+96>>1]);t=j+P(r,-11586)|0;p=P(J[b+64>>2],I[c+32>>1]);o=P(J[b+128>>2],I[c+64>>1]);f=p-o|0;J[a+224>>2]=t+P(f,-11584)>>11;y=P(m,n);m=P(y,10033);h=P(h,g);g=P(k,l);z=h-g|0;n=m+P(z,11522)|0;l=j+P(r,9373)|0;u=P(f,374);k=p+o|0;o=P(k,10958);v=l+(u+o|0)|0;q=P(i,q);i=P(q,-11018);w=n+(P(g,20131)-i|0)|0;J[a+448>>2]=v-w>>11;J[a>>2]=v+w>>11;r=j+P(r,-3580)|0;v=P(f,2896);w=P(k,6476);j=r+(v+w|0)|0;A=q-g|0;B=P(A+h|0,6810);C=B+P(h,4209)|0; -J[a+416>>2]=j-C>>11;J[a+32>>2]=j+C>>11;j=t+P(f,5792)|0;t=P(z-y|0,10033);J[a+384>>2]=j-t>>11;J[a+64>>2]=j+t>>11;f=P(f,-3271);j=P(k,4482);k=l+(f-j|0)|0;i=(i+m|0)+P(g,-7121)|0;g=P(h+g|0,4712);i=i+g|0;J[a+288>>2]=k-i>>11;J[a+160>>2]=k+i>>11;p=P(p,11795);k=r+(u+(p-o|0)|0)|0;q=P(q,-6810);g=g+((q+P(h,3897)|0)-m|0)|0;J[a+352>>2]=k-g>>11;J[a+96>>2]=g+k>>11;g=v+(l-w|0)|0;m=B+P(A,-17828)|0;J[a+320>>2]=g-m>>11;J[a+128>>2]=g+m>>11;f=r+(f+(j-p|0)|0)|0;h=n+(q+P(h,-9113)|0)|0;J[a+256>>2]=f-h>>11;J[a+192>>2]=h+f>> -11;a=a+4|0;b=b+4|0;c=c+2|0;x=x+1|0;if((x|0)!=8)continue;break}a=s+128|0;b=D;x=0;while(1){o=J[b+20>>2];p=P(o,10033);h=J[b+4>>2];f=J[b+28>>2];i=h-f|0;r=p+P(i,11522)|0;c=J[(x<<2)+d>>2]+e|0;j=J[b+12>>2];t=P(j,-11018);s=r+(P(f,20131)-t|0)|0;l=(J[b>>2]<<13)+131072|0;k=J[b+24>>2];q=l+P(k,9373)|0;m=J[b+8>>2];n=J[b+16>>2];g=m-n|0;z=P(g,374);n=m+n|0;y=P(n,10958);u=q+(z+y|0)|0;H[c|0]=K[a+(s+u>>>18&1023)|0];H[c+14|0]=K[a+(u-s>>>18&1023)|0];u=j-f|0;v=P(u+h|0,6810);w=v+P(h,4209)|0;s=l+P(k,-3580)|0;A=P(g,2896); -B=P(n,6476);C=s+(A+B|0)|0;H[c+1|0]=K[a+(w+C>>>18&1023)|0];H[c+13|0]=K[a+(C-w>>>18&1023)|0];i=P(i-o|0,10033);k=l+P(k,-11586)|0;l=k+P(g,5792)|0;H[c+2|0]=K[a+(i+l>>>18&1023)|0];H[c+12|0]=K[a+(l-i>>>18&1023)|0];l=P(h+f|0,4712);j=P(j,-6810);i=l+((j+P(h,3897)|0)-p|0)|0;m=P(m,11795);o=s+(z+(m-y|0)|0)|0;H[c+3|0]=K[a+(i+o>>>18&1023)|0];H[c+11|0]=K[a+(o-i>>>18&1023)|0];i=v+P(u,-17828)|0;o=A+(q-B|0)|0;H[c+4|0]=K[a+(i+o>>>18&1023)|0];H[c+10|0]=K[a+(o-i>>>18&1023)|0];f=l+((p+t|0)+P(f,-7121)|0)|0;p=P(g,-3271); -n=P(n,4482);l=q+(p-n|0)|0;H[c+5|0]=K[a+(f+l>>>18&1023)|0];H[c+9|0]=K[a+(l-f>>>18&1023)|0];h=r+(j+P(h,-9113)|0)|0;f=s+(p+(n-m|0)|0)|0;H[c+6|0]=K[a+(h+f>>>18&1023)|0];H[c+8|0]=K[a+(f-h>>>18&1023)|0];H[c+7|0]=K[a+(k+P(g,268423872)>>>18&1023)|0];b=b+32|0;x=x+1|0;if((x|0)!=15)continue;break}bc=D+480|0}function B0(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;if((c|0)>=0){j=L[b+2>>1];g=j?4:3;e=j?7:138;i=a+5817|0;h=-1;while(1){o=n;k=j;n=n+1|0;j=L[((n<<2)+b|0)+2>>1];d=f+1|0;a:{if(!((k|0)!=(j| -0)|(e|0)<=(d|0))){f=d;break a}b:{if((d|0)<(g|0)){f=(k<<2)+a|0;g=f+2686|0;h=f+2684|0;f=J[a+5820>>2];while(1){e=L[g>>1];l=L[h>>1];m=L[a+5816>>1]|l<>1]=m;c:{if((16-e|0)<(f|0)){f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=m;f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=K[i|0];f=J[a+5820>>2];I[a+5816>>1]=l>>>16-f;f=(e+f|0)-16|0;break c}f=e+f|0}J[a+5820>>2]=f;d=d-1|0;if(d)continue;break}break b}e=J[a+5820>>2];m=a;d:{if(k){e:{if((h|0)==(k|0)){f=d;break e}d=(k<<2)+a|0;g=L[d+2686>>1];h=L[d+2684>> -1];l=L[a+5816>>1]|h<>1]=l;f:{if((16-g|0)<(e|0)){e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=l;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=K[i|0];e=J[a+5820>>2];I[a+5816>>1]=h>>>16-e;d=(e+g|0)-16|0;break f}d=e+g|0}e=d;J[a+5820>>2]=e}h=L[a+2748>>1];d=L[a+5816>>1]|h<>1];g:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break g}e=e+g|0}J[a+5820>> -2]=e;f=f+65533|0;if((e|0)>=15){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-14|0;break d}I[a+5816>>1]=f<>1];if((f|0)<=9){h=L[a+2752>>1];d=d|h<>1];h:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break h}e= -e+g|0}J[a+5820>>2]=e;f=f+65534|0;if((e|0)>=14){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-13|0;break d}I[a+5816>>1]=f<>1];d=d|h<>1];i:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0;break i}e=e+g| -0}J[a+5820>>2]=e;f=f+65526|0;if((e|0)>=10){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-9|0;break d}I[a+5816>>1]=f<>2]=f}f=0;j:{if(!j){e=138;d=3;break j}d=(k|0)==(j|0);e=d?6:7;d=d?3:4}g=d;h=k}if((c|0)!=(o|0))continue;break}}}function P6(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,z=0,A=0;v=bc-272| -0;bc=v;s=J[b+4>>2];g=J[b+8>>2];J[a+52>>2]=-2147483648;J[a+56>>2]=0;J[a+48>>2]=g;J[a+44>>2]=s;y=J[b+52>>2];e=J[b+24>>2];l=J[b+28>>2];x=J[b+44>>2];J[c>>2]=s;J[d>>2]=g;a:{if((e|0)<2|(x|0)<=0)break a;f=e-1|0;m=f&3;i=I[l+12>>1];b:{if(e-2>>>0<3){e=1;j=i;break b}w=f&-4;e=1;j=i;while(1){f=l+P(e,40)|0;k=I[f+12>>1];j=(j|0)>(k|0)?j:k;n=I[f+52>>1];j=(j|0)>(n|0)?j:n;p=I[f+92>>1];j=(j|0)>(p|0)?j:p;f=I[f+132>>1];j=(f|0)<(j|0)?j:f;i=(i|0)<(k|0)?i:k;i=(i|0)<(n|0)?i:n;i=(i|0)<(p|0)?i:p;i=(f|0)>(i|0)?i:f;e=e+4|0;h= -h+4|0;if((w|0)!=(h|0))continue;break}}if(m){f=0;while(1){h=I[(l+P(e,40)|0)+12>>1];j=(h|0)<(j|0)?j:h;i=(h|0)>(i|0)?i:h;e=e+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}if((i|0)>=(j|0))break a;z=a,A=Pc(i,s)+g|0,J[z>>2]=A;e=Pc(j,s)+g|0;J[a+4>>2]=e;g=e&-32;J[a+24>>2]=g;f=J[a>>2];k=f&-32;J[a+16>>2]=k;J[a+8>>2]=f&-64;n=g+32|0;J[a+28>>2]=n;l=k+32|0;J[a+20>>2]=l;J[a+12>>2]=e+63&-64;if((e|0)<(l|0)){J[a+20>>2]=e;l=e}if((f|0)>(g|0)){J[a+24>>2]=f;g=f}h=e-f|0;J[a+32>>2]=h;if((h|0)>=65)e=g-l|0;else{J[a+24>>2]=e; -J[a+20>>2]=f;e=h}J[a+36>>2]=e;f=n-k|0;J[a+40>>2]=f;l=(h|0)>=129?16:(h|0)<97?4:8;g=h-l|0;if((g|0)>(e|0)){J[a+36>>2]=g;e=g}g=h+l|0;if((g|0)<(f|0)){J[a+40>>2]=g;f=g}g=(P(h,3)|0)/4|0;if((g|0)>(e|0)){J[a+36>>2]=g;e=g}h=(P(h,5)|0)/4|0;if((h|0)<(f|0)){J[a+40>>2]=h;f=h}if((e|0)<=(f|0)){w=j-i|0;while(1){l=e;q=J[a>>2];h=J[a+32>>2];f=q+(h-e|0)|0;g=J[a+4>>2];c:{d:{if((e|0)>=(h|0)){e=J[a+16>>2];if((f|0)>=(e|0))break d;f=(g-f|0)+e|0;break c}e=J[a+20>>2];if((f|0)<=(e|0))break d;f=(g-f|0)+e|0;break c}e=f;f=g}n=td(l- -h|0,w)+s|0;u=Pc(i,n);p=wc(v,0,260);h=J[a+24>>2];k=f-e|0;m=J[a+16>>2];o=(h|0)>(k+m|0)?h-k|0:m;m=J[a+8>>2];h=o-m|0;e:{if((h|0)<0)break e;t=o;o=J[a+28>>2];r=J[a+20>>2];k=(o|0)<(k+r|0)?o-k|0:r;if((t|0)>(k|0))break e;k=k-m|0;if((k|0)>64)break e;o=f-g|0;f=o>>31;q=e-q|0;g=q>>31;q=P((f^o)-f+((g^q)-g)|0,10);u=e-u|0;o=e-m|0;m=(u-o|0)+h|0;f=0;while(1){e=P(f,44)+y|0;r=I[e+8>>1]-I[e+6>>1]|0;g=Pc(I[e+2>>1],n)+m|0;e=h;while(1){t=p+(e<<2)|0;J[t>>2]=J[t>>2]+P(r,J[((g&63)<<2)+251728>>2]);g=g+1|0;t=(e|0)<(k|0);e=e+ -1|0;if(t)continue;break}f=f+1|0;if((x|0)!=(f|0))continue;break}f=J[a+52>>2];while(1){r=h-o|0;m=r+q|0;g=h;e=J[p+(h<<2)>>2];if(!((e|0)<=(f|0)&((e|0)!=(f|0)|(m|0)>=J[a+56>>2]))){J[a+56>>2]=m;J[a+52>>2]=e;J[a+44>>2]=n;J[a+48>>2]=r+u;f=e}h=g+1|0;if((g|0)<(k|0))continue;break}}e=l+1|0;if((l|0)>2])continue;break}}e=J[a+48>>2];a=J[a+44>>2];f=a-s|0;z=b,A=Pc(i,f)+e|0,J[z+2752>>2]=A;z=b,A=Pc(j,f)+e|0,J[z+2756>>2]=A;J[c>>2]=a;J[d>>2]=e}bc=v+272|0}function Vza(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;i=bc-16|0;bc=i;j=zc(40);J[j>>2]=0;J[i+12>>2]=0;J[695492]=0;g=ga(493,1,0,0)|0;e=J[695492];J[695492]=0;a:{b:{if((e|0)==1)break b;k=4;f=-1;c:{d:{if(!e)break d;h=J[695493];if(!h)break d;f=Jc(J[e>>2],j,4);if(!f)break c;cc=h}e=cc;e:{f:{if((f|0)==1)break f;J[i+8>>2]=g;e=J[i+8>>2];g=0;if(!e)break e;J[e+700>>2]=1E6;J[J[i+8>>2]+704>>2]=1E6;J[695492]=0;g=J[i+8>>2];if(g)J[g+156>>2]=88;else g=0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;g:{if(!e)break g;h=J[695493];if(!h)break g; -f=Jc(J[e>>2],j,4);if(!f)break c;cc=h}e=cc;if((f|0)==1)break f;j=zf(g,1,j,4);k=cc;e=0}while(1){if(e){J[695492]=0;ka(495);e=J[695492];J[695492]=0;if((e|0)==1)break b;h:{if(!e)break h;h=J[695493];if(!h)break h;if(!Jc(J[e>>2],j,k))break c;cc=h}e=cc;continue}J[695492]=0;g=J[i+8>>2];if(g){J[g+676>>2]=0;J[g+672>>2]=0;J[g+668>>2]=0}e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;i:{if(!e)break i;h=J[695493];if(!h)break i;f=Jc(J[e>>2],j,k);if(!f)break c;cc=h}e=cc;if((f|0)==1)continue;J[695492]=0;g=J[i+8>> -2];if(g){J[g+164>>2]=d;J[g+160>>2]=c;J[g+168>>2]=b}e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;j:{if(!e)break j;h=J[695493];if(!h)break j;f=Jc(J[e>>2],j,k);if(!f)break c;cc=h}e=cc;if((f|0)==1)continue;J[695492]=0;g=aa(497,J[i+8>>2],a|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;k:{if(!e)break k;h=J[695493];if(!h)break k;f=Jc(J[e>>2],j,k);if(!f)break c;cc=h}e=cc;if((f|0)==1)continue;if(!g)J[i+12>>2]=1;J[J[i+8>>2]+272>>2]=8192;l:{if(J[i+12>>2])break l;g=J[i+8>>2];e=J[J[i+8>>2]+272>>2]; -J[695492]=0;g=aa(498,g|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;m:{if(!e)break m;h=J[695493];if(!h)break m;f=Jc(J[e>>2],j,k);if(!f)break c;cc=h}e=cc;if((f|0)==1)continue;J[J[i+8>>2]+268>>2]=g;if(J[J[i+8>>2]+268>>2])break l;J[i+12>>2]=1}g=J[i+8>>2];if(J[i+12>>2]){e=J[g+268>>2];J[695492]=0;da(503,g|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;n:{if(!e)break n;h=J[695493];if(!h)break n;f=Jc(J[e>>2],j,k);if(!f)break c;cc=h}e=cc;if((f|0)==1)continue;J[J[i+8>>2]+268>>2]=0;J[695492]= -0;ca(504,J[i+8>>2],0,0);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;o:{if(!e)break o;h=J[695493];if(!h)break o;f=Jc(J[e>>2],j,k);if(!f)break c;cc=h}e=cc;if((f|0)==1)continue;g=0;break e}J[695492]=0;ia(134,g|0,0,0,0);e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;p:{if(!e)break p;h=J[695493];if(!h)break p;f=Jc(J[e>>2],j,k);if(!f)break c;cc=h}e=cc;if((f|0)==1)continue;break}g=J[i+8>>2]}qc(j);bc=i+16|0;break a}qc(j);ef(e,h);B()}a=Z()|0;qc(j);ba(a|0);B()}return g|0}function TW(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,r=0,s=0;p=bc-16|0;bc=p;n=J[a+24>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{d=J[b+12>>2];h=K[d+18|0];if(h){q=J[d+12>>2];s=J[d>>2];o=J[d+4>>2];i=J[d+8>>2];d=0;while(1){if(J[(P(L[(e<<2)+q>>1],52)+n|0)+44>>2]){d=d+1|0;e=d&65535;if(h>>>0>e>>>0)continue;break j}break}J[p>>2]=e;Hc(c,1,2345994,p);a=0;break f}k=_e(P(h,52));if(!k)break i;break g}k=_e(P(h,52));if(k)break h}Hc(c,1,2346098,0);a=0;break f}if(!h)break g;while(1){d=(f<<2)+q|0;g=L[d>>1];e=K[d+3|0];k:{if(!K[d+ -2|0]){if(!e)break k;fa(2346200,2342899,1079,2359399);B()}if((e|0)!=(f|0))break e}e=P(g,52)+n|0;g=J[e+4>>2];d=P(f,52)+k|0;J[d>>2]=J[e>>2];J[d+4>>2]=g;J[d+48>>2]=J[e+48>>2];g=J[e+44>>2];J[d+40>>2]=J[e+40>>2];J[d+44>>2]=g;g=J[e+36>>2];J[d+32>>2]=J[e+32>>2];J[d+36>>2]=g;g=J[e+28>>2];J[d+24>>2]=J[e+24>>2];J[d+28>>2]=g;g=J[e+20>>2];J[d+16>>2]=J[e+16>>2];J[d+20>>2]=g;g=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=g;e=Xk(P(J[e+8>>2],J[e+12>>2])<<2);J[d+44>>2]=e;if(!e){if(j&65535)while(1){j=j-1|0;a=j&65535;qc(J[(P(a, -52)+k|0)+44>>2]);if(a)continue;break}qc(k);Hc(c,1,2346098,0);a=0;break f}J[d+24>>2]=K[f+i|0];J[d+32>>2]=K[f+o|0];j=j+1|0;f=j&65535;if(h>>>0>f>>>0)continue;break}if(!h)break g;j=L[J[b+12>>2]+16>>1];o=j-1|0;d=0;while(1){i=d<<2;c=i+q|0;b=J[(P(L[c>>1],52)+n|0)+44>>2];if(!b)break d;f=K[c+3|0];e=P(f,52)+k|0;e=P(J[e+12>>2],J[e+8>>2]);l:{if(!K[c+2|0]){c=J[(P(d,52)+k|0)+44>>2];if(!c)break c;if(!e)break l;i=0;d=0;if(e>>>0>=4){l=e&-4;g=0;while(1){f=d<<2;J[f+c>>2]=J[b+f>>2];m=f|4;J[m+c>>2]=J[b+m>>2];m=f|8;J[m+ -c>>2]=J[b+m>>2];f=f|12;J[f+c>>2]=J[b+f>>2];d=d+4|0;g=g+4|0;if((l|0)!=(g|0))continue;break}}e=e&3;if(!e)break l;while(1){f=d<<2;J[f+c>>2]=J[b+f>>2];d=d+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}break l}if((d|0)!=(f|0))break b;f=J[(P(d,52)+k|0)+44>>2];if(!f)break a;if(!e)break l;i=i+s|0;d=0;if((e|0)!=1){m=e&-2;c=0;while(1){l=d<<2;g=J[l+b>>2];J[f+l>>2]=J[i+(P((g|0)>=0?(g|0)<(j|0)?g:o:0,h)<<2)>>2];l=l|4;g=J[l+b>>2];J[f+l>>2]=J[i+(P((g|0)>=0?(g|0)<(j|0)?g:o:0,h)<<2)>>2];d=d+2|0;c=c+2|0;if((m|0)!=(c|0))continue; -break}}if(!(e&1))break l;c=d<<2;b=J[c+b>>2];J[c+f>>2]=J[i+(P((b|0)>=0?(b|0)<(j|0)?b:o:0,h)<<2)>>2]}r=r+1|0;d=r&65535;if(h>>>0>d>>>0)continue;break}}b=J[a+16>>2];if(b){e=0;d=0;while(1){c=J[(P(e,52)+n|0)+44>>2];if(c)qc(c);d=d+1|0;e=d&65535;if(b>>>0>e>>>0)continue;break}}qc(n);J[a+16>>2]=h;J[a+24>>2]=k;a=1}bc=p+16|0;return a}fa(2346244,2342899,1082,2359399);B()}fa(2346325,2342899,1110,2359399);B()}fa(2346354,2342899,1116,2359399);B()}fa(2346244,2342899,1121,2359399);B()}fa(2346354,2342899,1123,2359399); -B()}function RYa(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;h=bc-48|0;bc=h;a:{if(!a)break a;d=J[a+52>>2];if(!d)break a;g=J[d+16>>2];if(!g){b=HB(a,b,c);if(b){d=J[a+52>>2];J[d+16>>2]=b;J[d+12>>2]=b;J[b+20>>2]=d;J[b+32>>2]=J[d+32>>2];J[a+264>>2]=c+1;J[a+260>>2]=c;break a}J[a+84>>2]=2;c=J[a>>2];b=0;b:{if(!c)break b;b=0;if(J[c+108>>2]!=-554844497)break b;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[h+4>>2]=0;J[h>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,4008,h);J[a+212>>2]=1;J[a+172>>2]=-1; -J[a+84>>2]=2;break a}c:{d:{if(!(J[g+4>>2]!=3|J[g+8>>2]!=773004)){d=g+44|0;e=J[g+40>>2];f=J[a+264>>2];if(f){e:{if((d|0)==(e|0)){d=e;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}d=0;f=f-e|0;f:{if((f|0)<0)break f;i=gc[J[659450]](f+1|0)|0;if(!i){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break f}d=tc(i,e,f);H[f+d|0]=0}J[g+40>>2]=d;J[e>>2]=0;break e}if((f|0)!=(J[a+260>>2]+1|0)){d=e;break e}g:{if(!e)break g;f=J[a+296>>2];while(1){if(!f)break g;d=J[f+16>>2];if(d)while(1){if(e>>>0<=M[d+4>>2]&e>>>0>=d+20>>>0)break g; -d=J[d>>2];if(d)continue;break}f=J[f+20>>2];if(f)continue;break}d=e;break e}d=$e(e);J[g+40>>2]=d}if(!d){J[a+84>>2]=2;c=J[a>>2];b=0;h:{if(!c)break h;b=0;if(J[c+108>>2]!=-554844497)break h;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[h+20>>2]=0;J[h+16>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,21117,h+16|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}e=J[a+260>>2];f=e+c|0;if(!(K[a+362|0]&8|f>>>0<15000001)){er(a,14516);break a}i:{if((c^-1)>>>0>=e>>>0){i=J[a+264>>2];j=i+c|0;if((j|0)>=0)break i}J[a+ -84>>2]=2;c=J[a>>2];b=0;j:{if(!c)break j;b=0;if(J[c+108>>2]!=-554844497)break j;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[h+36>>2]=0;J[h+32>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,15717,h+32|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}if((f|0)>=(i|0)){e=j<<1;d=gc[J[659452]](d,e)|0;if(!d){er(a,4008);break a}J[a+264>>2]=e;J[g+40>>2]=d;e=J[a+260>>2]}tc(d+e|0,b,c);b=a;a=J[a+260>>2]+c|0;J[b+260>>2]=a;H[a+J[g+40>>2]|0]=0;break a}if((d|0)==(e|0))break d;d=J[g+32>>2];k:{if(!d)break k;f=J[d+80>> -2];if(!f)break k;if(!e)break d;while(1){d=J[f+16>>2];if(d)while(1){if(e>>>0<=M[d+4>>2]&e>>>0>=d+20>>>0)break d;d=J[d>>2];if(d)continue;break}f=J[f+20>>2];if(f)continue;break}}b=OJ(e,b,c);break c}b=HB(a,b,c);if(!b)break a;Ug(J[a+52>>2],b);if(!J[J[a+52>>2]+12>>2])break a;J[a+260>>2]=c;J[a+264>>2]=c+1;break a}b=NJ(e,b,c)}J[g+44>>2]=0;J[g+40>>2]=b;if(!b)er(a,4008);if(!J[J[a+52>>2]+12>>2])break a;c=J[g+40>>2];l:{if(!c){b=0;break l}b=0;if(!K[c|0])break l;while(1){b=b+1|0;d=K[c+1|0];c=c+1|0;if(d)continue; -break}}J[a+260>>2]=b;J[a+264>>2]=b+1}bc=h+48|0}function M6a(a){a=a|0;var b=0,c=0,d=0,e=0,f=Q(0),g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=0,p=0;e=bc-32|0;bc=e;J[e+20>>2]=0;J[e+12>>2]=0;J[e+16>>2]=0;H[e+28|0]=0;b=e+12|0;J[e+24>>2]=b;a:{b:{c:{c=J[a+216>>2];o=a+212|0;d=J[o>>2];a=c-d|0;p=(a|0)/12|0;if(p>>>0>=357913942){J[695492]=0;_(2380,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}J[695492]=0;a=$(4,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[e+16>>2]=a;J[e+12>>2]=a;J[695492]= -0;J[e+20>>2]=a+P(p,12);b=ha(2262,e+20|0,d|0,c|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break a;b=Z()|0;J[e+16>>2]=a;break b}b=Z()|0}no(e+24|0);ba(b|0);B()}J[e+16>>2]=b;a=J[e+12>>2];b=J[a+36>>2];h=N[b+28>>2];c=J[a>>2];f=N[c+28>>2];i=N[c+12>>2];d=J[a+12>>2];j=N[d+28>>2];k=N[b+12>>2];l=N[b+4>>2];m=N[d+4>>2];n=N[c+4>>2];g=Q(N[c+24>>2]+N[b>>2]);N[d+8>>2]=Q(Q(Q(Q(Q(Q(N[c+8>>2]+N[d>>2])*Q(6))-Q(N[c>>2]*Q(4)))-Q(g+g))+Q(Q(N[b+8>>2]+N[d+24>>2])*Q(3)))-N[b+24>>2])*Q(.1111111119389534);f=Q(f+l);N[d+12>> -2]=Q(Q(Q(Q(Q(Q(i+m)*Q(6))-Q(n*Q(4)))-Q(f+f))+Q(Q(k+j)*Q(3)))-h)*Q(.1111111119389534);b=J[a+36>>2];h=N[b+20>>2];f=N[b+28>>2];c=J[a>>2];i=N[c+28>>2];d=J[a+12>>2];j=N[d+28>>2];k=N[c+20>>2];l=N[b+4>>2];m=N[d+4>>2];n=N[c+4>>2];g=Q(N[c>>2]+N[b+24>>2]);N[d+16>>2]=Q(Q(Q(Q(Q(Q(N[c+16>>2]+N[d+24>>2])*Q(6))-Q(N[c+24>>2]*Q(4)))-Q(g+g))+Q(Q(N[b+16>>2]+N[d>>2])*Q(3)))-N[b>>2])*Q(.1111111119389534);f=Q(n+f);N[d+20>>2]=Q(Q(Q(Q(Q(Q(k+j)*Q(6))-Q(i*Q(4)))-Q(f+f))+Q(Q(h+m)*Q(3)))-l)*Q(.1111111119389534);b=J[a>>2];h= -N[b+28>>2];c=J[a+36>>2];f=N[c+28>>2];i=N[c+12>>2];d=J[a+24>>2];j=N[d+28>>2];k=N[b+12>>2];l=N[b+4>>2];m=N[d+4>>2];n=N[c+4>>2];g=Q(N[c+24>>2]+N[b>>2]);N[d+8>>2]=Q(Q(Q(Q(Q(Q(N[c+8>>2]+N[d>>2])*Q(6))-Q(N[c>>2]*Q(4)))-Q(g+g))+Q(Q(N[b+8>>2]+N[d+24>>2])*Q(3)))-N[b+24>>2])*Q(.1111111119389534);f=Q(f+l);N[d+12>>2]=Q(Q(Q(Q(Q(Q(i+m)*Q(6))-Q(n*Q(4)))-Q(f+f))+Q(Q(k+j)*Q(3)))-h)*Q(.1111111119389534);b=J[a>>2];h=N[b+20>>2];f=N[b+28>>2];c=J[a+36>>2];i=N[c+28>>2];d=J[a+24>>2];j=N[d+28>>2];k=N[c+20>>2];l=N[b+4>>2]; -m=N[d+4>>2];n=N[c+4>>2];g=Q(N[c>>2]+N[b+24>>2]);N[d+16>>2]=Q(Q(Q(Q(Q(Q(N[c+16>>2]+N[d+24>>2])*Q(6))-Q(N[c+24>>2]*Q(4)))-Q(g+g))+Q(Q(N[b+16>>2]+N[d>>2])*Q(3)))-N[b>>2])*Q(.1111111119389534);f=Q(n+f);N[d+20>>2]=Q(Q(Q(Q(Q(Q(k+j)*Q(6))-Q(i*Q(4)))-Q(f+f))+Q(Q(h+m)*Q(3)))-l)*Q(.1111111119389534);d:{if((e+12|0)!=(o|0)){J[695492]=0;ca(2384,o|0,a|0,J[e+16>>2]);a=J[695492];J[695492]=0;if((a|0)==1)break d}c=J[e+12>>2];if(c){b=J[e+16>>2];a=c;if((b|0)!=(c|0)){while(1){a=b-12|0;d=J[a>>2];if(d){J[b-8>>2]=d;qc(d)}b= -a;if((c|0)!=(b|0))continue;break}a=J[e+12>>2]}J[e+16>>2]=c;qc(a)}bc=e+32|0;return}a=Z()|0;ol(e+12|0);ba(a|0);B()}function Csa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=bc-32|0;bc=e;J[e+16>>2]=0;f=J[a+12>>2];g=zz(e+20|0,1,2381340);if(f){f=b+f|0;while(1){d=f;f=d+1|0;if(K[d|0]==32)continue;break}}h=Mu(d,e+16|0);a:{b:{d=J[g>>2];if(!d)break b;c:{d:{if(!J[d+8>>2]){J[g>>2]=0;break d}d=J[d+12>>2];f=J[g+8>>2];J[695492]=0;aa(5471,f|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;d=J[g>>2];J[g>> -2]=0;if(!d)break b}J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break b;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break b}break a}break a}e:{d=J[e+16>>2];if(d){J[c>>2]=d-J[a+12>>2];break e}J[c>>2]=-1;f=e+20|0;Az(f,d,J[a+12>>2]+b|0);b=J[e+20>>2];if(!b)break e;d=J[J[b>>2]+24>>2];J[695492]=0;g=d;d=e+12|0;ca(g|0,d|0,b|0,2);b=J[695492];J[695492]=0;f:{g:{if((b|0)!=1){J[695492]=0;aa(4993,f|0,d|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[e+12>>2]; -J[e+12>>2]=0;if(!b)break h;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break a}d=Z()|0;vc(e+12|0);break g}b=J[e+20>>2];if(!b)break e;d=J[J[b>>2]+52>>2];J[695492]=0;h=+Aa(d|0,b|0,0,e+12|0);b=J[695492];J[695492]=0;i:{j:{k:{l:{m:{n:{if((b|0)!=1){d=J[e+20>>2];b=J[e+12>>2];if((b|0)<0)break j;J[c>>2]=J[a+8>>2];a=J[a+12>>2];J[695492]=0;f=e+8|0;ca(5467,f|0,d|0,a+b|0);a=J[695492];J[695492]=0;if((a| -0)==1)break n;J[695492]=0;aa(4993,e+20|0,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break m;a=J[e+8>>2];J[e+8>>2]=0;o:{if(!a)break o;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break o;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[e+20>>2];if(!a)break e;b=J[J[a>>2]+28>>2];J[695492]=0;d=b;b=e+8|0;ca(d|0,b|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break l;J[695492]=0;aa(4993,e+20|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k; -a=J[e+8>>2];J[e+8>>2]=0;p:{if(!a)break p;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(b)break p;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f}d=J[e+20>>2];if(!d)break e;J[c>>2]=J[c>>2]-J[d+8>>2];J[e+20>>2]=0;break i}d=Z()|0;break g}d=Z()|0;break g}d=Z()|0;vc(e+8|0);break g}d=Z()|0;break g}d=Z()|0;vc(e+8|0);break g}J[e+20>>2]=0;if(!d)break e}J[695492]=0;a=J[d+4>>2]-1|0;J[d+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break e;J[695492]= -0;_(4987,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break a}d=Z()|0}vc(e+20|0);ba(d|0);B()}break a}bc=e+32|0;return+h}ea(0)|0;yc();B()}function lcb(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;g=J[a+492>>2];i=J[b+16>>2];e=J[b+8>>2];gc[J[b+28>>2]](b);c=3;a=J[b>>2];a:{b:{if(a>>>0>=e>>>0)break b;a=K[a|0];c:{if(a-48>>>0<=9){a=gc[J[b+36>>2]](b)|0;J[b+144>>2]=a;if(J[b+12>>2])break a;if((a|0)<0)break b;f=a;a=J[b>>2];d=e-a>>2;if((f|0)<=(d|0))break c;J[b+144>>2]=d;break c}if((a|0)!= -60)break b;gc[J[b+32>>2]](b);if(J[b+12>>2])break a;gc[J[b+28>>2]](b);d=J[b>>2];if(d>>>0>=e>>>0){a=d;break c}a=d;while(1){a=K[a|0]-47|0;d:{if(a){if((a|0)!=15)break d;J[b>>2]=d;J[b+144>>2]=h;a=d;break c}h=h+1|0}gc[J[b+32>>2]](b);if(J[b+12>>2])break a;gc[J[b+28>>2]](b);a=J[b>>2];if(e>>>0>a>>>0)continue;break}}if(J[b+264>>2]|a>>>0>=e>>>0)break b;k=b+200|0;c=gc[J[J[g>>2]>>2]](k,J[b+144>>2],i)|0;if(c)break b;l=b+148|0;c=gc[J[J[g>>2]>>2]](l,J[b+144>>2],i)|0;if(c)break b;h=b+252|0;c=gc[J[J[g>>2]>>2]](h,4, -i)|0;if(c)break b;gc[J[b+28>>2]](b);a=J[b>>2];if(e>>>0<=a>>>0){J[b+144>>2]=0;c=3;break b}i=0;g=0;d=0;while(1){e:{f:{c=K[a|0];if((c|0)!=101){if((c|0)==62)break e;break f}if(K[a+1|0]!=110|a+3>>>0>=e>>>0|K[a+2|0]!=100)break f;switch(K[a+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:break e;default:break f}}gc[J[b+32>>2]](b);f=J[b>>2];if(f>>>0>=e>>>0){c=3;break b}if(J[b+12>>2])break a;g:{h:{j=K[a|0];switch(j-40|0){case 0:case 7:break h;default:break g}}c=3;m=(j|0)==40;if((m?3:2)+a>>>0>=e>>>0)break b; -a=a+1|0;f=(f-a|0)-m|0;c=gc[J[b+192>>2]](l,d,a,f+1|0)|0;if(c)break b;c=f;f=d<<2;H[c+J[f+J[b+172>>2]>>2]|0]=0;if(K[a|0]==46){a=Ec(240981,J[f+J[b+172>>2]>>2]);i=a?i:1;g=a?g:d}gc[J[b+28>>2]](b);if((j|0)==40)gc[J[b+32>>2]](b);a=J[b>>2];gc[J[b+36>>2]](b)|0;c=3;j=J[b>>2];if(j>>>0>=e>>>0)break b;c=a;a=j-a|0;c=gc[J[b+244>>2]](k,d,c,a+1|0)|0;if(c)break b;H[a+J[f+J[b+224>>2]>>2]|0]=0;d=d+1|0;if((d|0)>=J[b+144>>2])break e}gc[J[b+28>>2]](b);a=J[b>>2];if(e>>>0>a>>>0)continue}break}J[b+144>>2]=d;if(!(i&255)){c= -3;break b}a=J[J[b+172>>2]>>2];if(!Ec(240981,a))break a;c=gc[J[b+296>>2]](h,0,a,J[J[b+176>>2]>>2])|0;if(c)break b;c=gc[J[b+296>>2]](h,1,J[J[b+224>>2]>>2],J[J[b+228>>2]>>2])|0;if(c)break b;a=g<<2;c=gc[J[b+296>>2]](h,2,J[a+J[b+172>>2]>>2],J[a+J[b+176>>2]>>2])|0;if(c)break b;c=gc[J[b+296>>2]](h,3,J[a+J[b+224>>2]>>2],J[a+J[b+228>>2]>>2])|0;if(c)break b;c=gc[J[b+192>>2]](l,g,J[J[b+276>>2]>>2],J[J[b+280>>2]>>2])|0;if(c)break b;c=gc[J[b+244>>2]](k,g,J[J[b+276>>2]+4>>2],J[J[b+280>>2]+4>>2])|0;if(c)break b; -c=gc[J[b+192>>2]](l,0,J[J[b+276>>2]+8>>2],J[J[b+280>>2]+8>>2])|0;if(c)break b;c=gc[J[b+244>>2]](k,0,J[J[b+276>>2]+12>>2],J[J[b+280>>2]+12>>2])|0;if(!c)break a}J[b+12>>2]=c}}function XX(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,C=0,D=0,E=0;w=J[a>>2]==4;y=w?.14:.07;p=1;a:{b:{k=J[b+8>>2];if((k|0)<=0)break b;z=k-1|0;m=J[b>>2];s=m+4|0;h=J[m>>2];t=O[h+56>>3]+0;if(c&1){if((k|0)==1)break b;j=O[J[s>>2]+24>>3]-O[h+40>>3];l=j;o=j;if(!K[h+92|0]){p=j;q= -j;l=1;o=0}r=j>0?j:0;h=1;while(1){v=h<<2;n=J[v+m>>2];x=O[n+56>>3];c:{if((h|0)>=(z|0))break c;i=O[J[s+v>>2]+24>>3]-O[n+40>>3];d:{if(K[n+92|0]){if(l>o){l=i;o=i;break d}if(io))break d;o=i;break d}e:{if(p>q){p=i;break e}if(iq))break d}q=i}j=ir))break c;r=i}t=t+x;h=h+1|0;if((k|0)!=(h|0))continue;break}break a}if((k|0)==1)break b;j=O[J[s>>2]+16>>3]-O[h+32>>3];l=j;o=j;if(!K[h+92|0]){p=j;q=j;l=1;o=0}r=j>0?j:0;h=1;while(1){v=h<<2;n=J[v+m>>2];x=O[n+ -56>>3];f:{if((h|0)>=(z|0))break f;i=O[J[s+v>>2]+16>>3]-O[n+32>>3];g:{if(K[n+92|0]){if(l>o){l=i;o=i;break g}if(io))break g;o=i;break g}h:{if(p>q){p=i;break h}if(iq))break g}q=i}j=ir))break f;r=i}t=t+x;h=h+1|0;if((k|0)!=(h|0))continue;break}break a}l=1}j=j<0?0:j;x=r-j;i=y;y=t/+(k|0);t=i*y;i:{if(x.01))){i=(q+l)*.5;break i}if(!(p>q)|!(t>o-l))break j;i=l+-1;break i}i=r+1;break i}i=(r+j)*.5;r=(w?.2: -.1)*y;if(r>x)break i;if(!(!(tr?r:i);break i}i=r+j}h=rc(16);J[695492]=0;w=$(3185,h|0)|0;k=J[695492];J[695492]=0;k:{l:{if((k|0)!=1){if(J[b+8>>2]>0){h=c&1;D=h?40:32;E=h?24:16;k=0;while(1){z=u;s=k;k=k<<2;h=J[k+J[b>>2]>>2];m=1;m:{if(Zk(J[h>>2]))break m;m=1;if(dt(J[h>>2]))break m;m=ok(J[h>>2])?-1:0}v=H[J[k+J[b>>2]>>2]+89|0];h=s;k=h+1|0;n:{if((k|0)>2])while(1){o:{u=1;A=J[b>>2];n=J[A+(k<<2)>>2];h=J[(h<<2)+A>>2];j=O[n+E>>3]-O[h+D>>3];if(j>i|j<-O[h+56>>3])break n; -p:{if(Zk(J[n>>2]))break p;if(dt(J[n>>2]))break p;u=ok(J[n>>2])?-1:0}if(J[h+48>>2]!=J[n+48>>2]|R(O[h+56>>3]-O[n+56>>3])>.01|(K[n+89|0]!=(v&255)?J[a+48>>2]:0))break o;if(!(!u|!m)&(m|0)!=(u|0)|J[a>>2]==6&J[n+4>>2]!=(J[h+8>>2]+J[h+4>>2]|0))break o;m=m?m:u?u:m;h=k;k=h+1|0;if((k|0)>2])continue}break}u=0}h=rc(112);J[695492]=0;s=za(3487,h|0,b|0,s|0,k-s|0,c|0,v|0,m|0,((c|0)>1?z:u)|0)|0;m=J[695492];J[695492]=0;q:{r:{if((m|0)!=1){if((c|0)<2)break r;Ym(w,0,s);break q}break k}id(w,s)}j=O[s+56>>3];if(!(j> -C?0:k))C=j;if(J[b+8>>2]>(k|0))continue;break}}h=rc(72);J[695492]=0;a=db(3488,h|0,w|0,+d,+e,+f,+g,+C)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break l;break k}break k}return a}a=Z()|0;qc(h);ba(a|0);B()}function Fta(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=bc-16|0;bc=e;J[a>>2]=0;a:{b:{c:{d:{if(J[c>>2]){f=J[J[b>>2]+32>>2];J[695492]=0;g=f;f=e+12|0;ia(g|0,f|0,b|0,c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;J[695492]=0;aa(4993,a|0,f|0)|0;c=J[695492];J[695492]=0;e:{f:{g:{h:{i:{j:{if((c| -0)!=1){c=J[e+12>>2];J[e+12>>2]=0;k:{if(!c)break k;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break k;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[a>>2];if(!c|!J[d>>2])break b;J[695492]=0;J[e+4>>2]=0;f=e+4|0;aa(4985,f|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;g=J[J[b>>2]+32>>2];J[695492]=0;h=g;g=e+8|0;ia(h|0,g|0,b|0,d|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[J[c>>2]+12>>2];J[695492]=0;d=b;b=e+12|0;ca(d| -0,b|0,c|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;aa(4993,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;a=J[e+12>>2];J[e+12>>2]=0;l:{if(!a)break l;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break l;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[e+8>>2];J[e+8>>2]=0;m:{if(!a)break m;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break m;J[695492]=0;_(4987,a| -0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[e+4>>2];J[e+4>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;break b}b=Z()|0;vc(e+12|0);break c}b=Z()|0;break c}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;vc(e+12|0)}vc(e+8|0)}vc(e+4|0);break c}if(!J[d>>2])break b;J[695492]=0;J[e+8>>2]=0;c=e+8|0;aa(4985,c|0,0)|0;f=J[695492];J[695492]=0;n:{o:{p:{if((f|0)!=1){f=J[J[b>> -2]+32>>2];J[695492]=0;g=f;f=e+12|0;ia(g|0,f|0,b|0,d|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break p;J[695492]=0;aa(4993,a|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break o;a=J[e+12>>2];J[e+12>>2]=0;q:{if(!a)break q;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break q;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[e+8>>2];J[e+8>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break b; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}b=Z()|0;break c}b=Z()|0;break n}b=Z()|0;vc(e+12|0)}vc(e+8|0);break c}b=Z()|0}vc(a);ba(b|0);B()}bc=e+16|0;return}ea(0)|0;yc();B()}function wWa(a,b,c,d,e,f,g,h,i){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;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;c=bc-144|0;bc=c;a:{b:{c:{d:{e:{if(K[a+220|0])break e;h=J[b+116>>2];if(gc[J[J[h>>2]+40>>2]](h)|0)break e;p=e<<2;h=P(p,f);if((h|0)<=0)break e;t=O[b+104>>3];l=Bn(h); -if(!l)break e;i=c+112|0;J[i+12>>2]=0;J[i+16>>2]=0;J[i+4>>2]=1;J[i+8>>2]=8;J[i>>2]=349684;J[i+20>>2]=0;J[i+24>>2]=0;H[i+28|0]=0;J[c+48>>2]=e;J[c+100>>2]=f;J[695492]=0;J[c+40>>2]=0-p;k=c+100|0;nm(i,l,c+48|0,k,c+40|0,1);h=J[695492];J[695492]=0;f:{g:{h:{i:{if((h|0)!=1){J[695492]=0;j=$(4,36)|0;h=J[695492];J[695492]=0;if((h|0)==1)break i;J[695492]=0;n=ma(3265,j|0,d|0,e|0,1,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;_(3266,n|0);d=J[695492];J[695492]=0;if((d|0)==1)break i;h=J[b+116>>2]; -d=J[J[h>>2]+20>>2];J[695492]=0;ia(d|0,h|0,b+124|0,k|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break g;d=J[b+380>>2];if(!d|J[d+4>>2]!=2)break f;j=J[d+8>>2];if(!J[j+140>>2])break f;h=J[j+8>>2];d=J[J[h>>2]+20>>2];J[695492]=0;ia(d|0,h|0,j+12|0,k|0,0);d=J[695492];J[695492]=0;if((d|0)!=1)break f;f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;qc(j);break a}f=Z()|0;break a}q=J[c+108>>2];k=J[c+104>>2];j=J[c+100>>2];h=255;j:{if(!K[a+202|0])break j;h=0;if(K[a+203|0])break j;m=O[b+392>>3]*255;if(m<4294967296& -m>=0){h=~~m>>>0;break j}h=0}k:{if((f|0)<=0)break k;d=f-1|0;if((e|0)>0){u=P(q,255)+32768>>>16|0;q=P(k,255)+32768>>>16|0;k=P(j,255)+32768>>>16|0;j=(g|0)!=0;while(1){l:{J[695492]=0;g=$(3267,n|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;f=P(d,p);r=0;while(1){o=K[g|0]==(j|0);H[f+l|0]=o?u:-1;H[(f|1)+l|0]=o?q:-1;H[(f|2)+l|0]=o?k:-1;H[(f|3)+l|0]=o?h:0;f=f+4|0;g=g+1|0;r=r+1|0;if((r|0)!=(e|0))continue;break}f=(d|0)>0;d=d-1|0;if(f)continue;break k}break}f=Z()|0;break a}while(1){J[695492]=0;$(3267,n|0)| -0;e=J[695492];J[695492]=0;if((e|0)==1)break b;e=(d|0)>0;d=d-1|0;if(e)continue;break}}qc(Yl(n));O[c+48>>3]=O[b+16>>3];O[c+56>>3]=-O[b+24>>3];s=O[b+32>>3];O[c+64>>3]=-s;m=O[b+40>>3];O[c+72>>3]=m;O[c+80>>3]=s+O[b+48>>3];O[c+88>>3]=t-(m+O[b+56>>3]);J[c+40>>2]=0;J[c+44>>2]=0;J[695492]=0;J[c+32>>2]=0;J[c+36>>2]=0;la(3257,a|0,c+48|0,c+40|0,c+32|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[a+104>>2];O[c+24>>3]=O[c+40>>3]+0;O[c+16>>3]=O[c+32>>3]+0;J[c+8>>2]=1049880894;J[c+12>>2]=1071027177;J[c>>2]= -1049880894;J[c+4>>2]=1071027177;a=J[J[b>>2]+376>>2];J[695492]=0;ja(a|0,b|0,i|0,c+24|0,c+16|0,c+8|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;ji(i)}bc=c+144|0;return}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0}ji(i);ba(f|0);B()}function rDa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=bc-32|0;bc=f;a:{b:{c:{d:{e:{if((c|0)<=0)break e;j=e+1|0;while(1){if(J[J[a>>2]+16>>2]<=J[b>>2])break e;i=c;J[f+24>>2]=0;c=J[a>>2];g=J[b>>2];J[b>>2]=g+1;J[695492]=0;ga(5027,c|0,f+24|0,g|0)|0; -c=J[695492];J[695492]=0;f:{g:{h:{if((c|0)!=1){J[f+16>>2]=0;J[f+20>>2]=J[682146];i:{c=J[J[f+24>>2]+20>>2];j:{k:{if(c){g=J[J[c>>2]+28>>2];J[695492]=0;ca(g|0,f+4|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break k;c=Z()|0;break j}J[f+4>>2]=0}J[695492]=0;aa(4993,f+16|0,f+4|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[f+4>>2];J[f+4>>2]=0;if(!c)break i;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break i;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break i}break a}c= -Z()|0;vc(f+4|0)}sc(f+16|0);break b}c=J[f+16>>2];J[f+20>>2]=J[(c?c+12|0:2728584)>>2];if(!c)break g;g=J[J[c>>2]+48>>2];J[695492]=0;g=ha(g|0,c|0,1,f+12|0,10)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[f+16>>2];if(c)c=J[c+8>>2];else c=0;if((c|0)!=J[f+12>>2])break f;J[695492]=0;da(3530,d|0,g-1|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;J[695492]=0;da(3530,d|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;J[695492]=0;da(3530,d|0,0);c=J[695492];J[695492]=0;if((c|0)==1)break d;J[f+4>>2]=0;J[f+ -8>>2]=J[682146];l:{c=J[J[f+24>>2]+12>>2];m:{n:{if(c){g=J[J[c>>2]+28>>2];J[695492]=0;ca(g|0,f+28|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break n;c=Z()|0;break m}J[f+28>>2]=0}J[695492]=0;aa(4993,f+4|0,f+28|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[f+28>>2];J[f+28>>2]=0;if(!c)break l;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break l;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break l}break a}c=Z()|0;vc(f+28|0)}sc(f+4|0);break c}c=J[f+4>> -2];J[f+8>>2]=J[(c?c+12|0:2728584)>>2];J[695492]=0;g=aa(5009,f+4|0,-1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[f+4>>2];if(c)c=J[c+8>>2];else c=0;J[695492]=0;ca(1637,d|0,g|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;sc(f+4|0);break f}c=Z()|0;break b}c=Z()|0;sc(f+4|0);break c}J[f+12>>2]=-1}c=J[J[f+24>>2]+8>>2];J[695492]=0;la(5028,a|0,b|0,c|0,d|0,j|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;sc(f+16|0);c=J[f+24>>2];J[f+24>>2]=0;o:{if(!c)break o;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]= -g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(g)break o;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=i-1|0;if(i>>>0>1)continue;break}}bc=f+32|0;return}c=Z()|0}sc(f+16|0)}vc(f+24|0);ba(c|0);B()}ea(0)|0;yc();B()}function oA(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;g=J[a+8>>2];e=g+J[a+4>>2]|0;a:{if(!J[a+12>>2]){if((e|0)<2|(d|0)<=0)break a;q=e&-4;l=e&3;r=e&1;s=g+1|0;i=J[a>>2];k=i+(e<<2)|0;t=e-4>>>1|0;a=e-1|0;u=i+(a<<2)| -0;v=P(c,g)<<2;o=e>>>0<4;w=P(a>>>1|0,c)<<2;while(1){g=J[b+v>>2];e=J[b>>2]-(g+1>>1)|0;j=0;a=0;if(!o)while(1){m=a+1|0;x=J[(P(m,c)<<2)+b>>2];f=J[(P(a+s|0,c)<<2)+b>>2];p=j<<2;J[p+i>>2]=e;h=e;e=x-((g+f|0)+2>>2)|0;J[i+(p|4)>>2]=(h+e>>1)+g;j=j+2|0;h=(a|0)!=(t|0);g=f;a=m;if(h)continue;break}J[i+(j<<2)>>2]=e;if(r){a=J[b+w>>2]-(g+1>>1)|0;J[u>>2]=a;e=a+e>>1;a=-2}else a=-1;J[(a<<2)+k>>2]=e+g;e=0;a=0;g=0;if(!o)while(1){J[(P(a,c)<<2)+b>>2]=J[i+(a<<2)>>2];f=a|1;J[(P(f,c)<<2)+b>>2]=J[i+(f<<2)>>2];f=a|2;J[(P(f,c)<< -2)+b>>2]=J[i+(f<<2)>>2];f=a|3;J[(P(f,c)<<2)+b>>2]=J[i+(f<<2)>>2];a=a+4|0;g=g+4|0;if((q|0)!=(g|0))continue;break}if(l)while(1){J[(P(a,c)<<2)+b>>2]=J[i+(a<<2)>>2];a=a+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}b=b+4|0;n=n+1|0;if((n|0)!=(d|0))continue;break}break a}b:switch(e-1|0){case 0:if((d|0)<=0)break a;if(d>>>0>=4){c=d&-4;a=0;while(1){J[b>>2]=J[b>>2]/2;J[b+4>>2]=J[b+4>>2]/2;J[b+8>>2]=J[b+8>>2]/2;J[b+12>>2]=J[b+12>>2]/2;b=b+16|0;a=a+4|0;if((c|0)!=(a|0))continue;break}}c=d&3;if(!c)break a;a=0;while(1){J[b>> -2]=J[b>>2]/2;b=b+4|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 1:if((d|0)<=0)break a;a=J[a>>2];e=0;g=P(c,g)<<2;while(1){f=b+g|0;k=J[b>>2]-(J[f>>2]+1>>1)|0;J[a+4>>2]=k;f=k+J[f>>2]|0;J[a>>2]=f;J[b>>2]=f;J[(c<<2)+b>>2]=J[a+4>>2];b=b+4|0;e=e+1|0;if((e|0)!=(d|0))continue;break}break a;default:break b}if((e|0)<3|(d|0)<=0)break a;o=e&-4;i=e&3;q=e&1;h=J[a>>2];r=(h+(e<<2)|0)-4|0;a=e-2|0;s=h+(a<<2)|0;f=e|-2;t=((f+e|0)-3>>>1|0)+1|0;u=P(c,g)<<2;v=(a+f|0)+1>>>0<2;w=P((e>>>1|0)-1|0,c)<<2;x=e-1>>>0<3; -while(1){l=b+u|0;g=J[l+(c<<2)>>2];a=J[l>>2];e=J[b>>2]-((g+a|0)+2>>2)|0;J[h>>2]=e+a;j=1;a=1;if(!v)while(1){p=J[(P(a,c)<<2)+b>>2];k=a+1|0;f=J[l+(P(k,c)<<2)>>2];y=h+(j<<2)|0;J[y>>2]=e;m=e;e=p-((g+f|0)+2>>2)|0;J[y+4>>2]=(m+e>>1)+g;j=j+2|0;m=(a|0)!=(t|0);a=k;g=f;if(m)continue;break}J[h+(j<<2)>>2]=e;c:{if(!q){a=J[b+w>>2]-(g+1>>1)|0;J[s>>2]=(e+a>>1)+g;break c}a=e+g|0}J[r>>2]=a;e=0;a=0;g=0;if(!x)while(1){J[(P(a,c)<<2)+b>>2]=J[h+(a<<2)>>2];f=a|1;J[(P(f,c)<<2)+b>>2]=J[h+(f<<2)>>2];f=a|2;J[(P(f,c)<<2)+b>>2]= -J[h+(f<<2)>>2];f=a|3;J[(P(f,c)<<2)+b>>2]=J[h+(f<<2)>>2];a=a+4|0;g=g+4|0;if((o|0)!=(g|0))continue;break}if(i)while(1){J[(P(a,c)<<2)+b>>2]=J[h+(a<<2)>>2];a=a+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}b=b+4|0;n=n+1|0;if((n|0)!=(d|0))continue;break}}}function pya(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;d=bc-48|0;bc=d;a:{b:{if(!K[a+144|0]){a=Kc(d+24|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);ba(b|0);B()}c=d+20|0;Nm(c, -J[a+108>>2]);J[d+12>>2]=0;J[d+16>>2]=J[682146];J[695492]=0;da(5108,d+8|0,c|0);c=J[695492];J[695492]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((c|0)!=1){J[695492]=0;i=J[d+8>>2];c=ha(5109,i|0,d+12|0,0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break o;if(c)break l;J[695492]=0;e=ja(5018,d+24|0,J[682138],2374155,2145,2404106,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break n;J[695492]=0;_(5019,e|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b;f=ea(2411712)|0;c=cc;Fc(e);break m}f=Z()|0;break d}f=Z()|0;break e}f= -ea(2411712)|0;c=cc}if((sa(2411712)|0)!=(c|0))break e;c=na(f|0)|0;e=J[J[a>>2]+64>>2];g=J[a+132>>2];J[695492]=0;ca(e|0,a|0,c|0,(g|0)<2|0);c=J[695492];J[695492]=0;if((c|0)==1)break k;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)!=1)break l;f=Z()|0;break e}c=0;e=J[a+132>>2]<=1?-1:J[a+140>>2];f=e;while(1){g=c;p:{if(f){J[695492]=0;h=ha(5109,i|0,d+12|0,0,0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break j;if(h)break p;e=c}c=0;if(J[a+140>>2]>=0)break i;J[a+140>>2]=e;break i}J[695492]=0;h=ga(5117,d+12| -0,b|0,-1)|0;j=J[695492];J[695492]=0;c=g+1|0;if((j|0)==1)break j;if(!h){c=1;break i}f=f-1|0;J[695492]=0;_(5298,i|0);h=J[695492];J[695492]=0;if((h|0)!=1)continue;break}break j}f=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break e;break a}f=ea(2411712)|0;if((cc|0)!=(sa(2411712)|0))break e;e=na(f|0)|0;b=J[a+132>>2];if(J[a+140>>2]<0)J[a+140>>2]=(b|0)>2?c:g;g=J[J[a>>2]+64>>2];c=0;J[695492]=0;ca(g|0,a|0,e|0,(b|0)<2|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;ka(4893);b= -J[695492];J[695492]=0;if((b|0)==1)break g}a=J[a+108>>2];J[695492]=0;da(5099,a|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break f;a=J[d+8>>2];J[d+8>>2]=0;q:{if(!a)break q;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(b)break q;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}sc(d+12|0);a=J[d+20>>2];J[d+20>>2]=0;r:{if(!a)break r;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break c;if(b)break r;J[695492]=0;_(4987, -a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}bc=d+48|0;return c|0}f=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break e;break a}f=Z()|0;break e}f=Z()|0}vc(d+8|0)}sc(d+12|0);vc(d+20|0);ba(f|0);B()}ea(0)|0;yc()}B()}ea(0)|0;yc();B()}function D1a(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,m=0,n=0,o=0,p=0,q=0,r=0,s=0;m=bc-224|0;bc=m;p=bc-16|0;bc=p;k=m+4|0;o=k+20|0;H[o+8|0]=0;J[o+4>>2]=40;J[o>>2]=o+9;J[k+72>>2]=0;H[J[k+20>>2]]=0;J[695492]= -0;q=k+76|0;l=q;H[l+8|0]=0;J[l+4>>2]=40;J[l>>2]=l+9;l=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((l|0)!=1){J[k+128>>2]=0;H[J[k+76>>2]]=0;J[695492]=0;l=k+132|0;H[l+8|0]=0;J[l+4>>2]=40;J[l>>2]=l+9;n=J[695492];J[695492]=0;if((n|0)==1)break e;J[k+184>>2]=0;H[J[k+132>>2]]=0;if(b)break f;J[695492]=0;b=pa(2879)|0;n=J[695492];J[695492]=0;if((n|0)!=1)break f;break d}a=Z()|0;break b}J[k>>2]=b;if(a){J[695492]=0;b=ga(2880,l|0,47,j|0)|0;n=J[695492];J[695492]=0;if((n|0)==1)break d;J[695492]=0;a=Si(p+8|0,a);n=J[695492]; -J[695492]=0;if((n|0)==1)break d;n=J[a+4>>2];a=J[a>>2];J[695492]=0;ha(2882,b|0,a|0,n|0,j|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d}a=ls(d,47);a=a?a+1|0:d;J[k+8>>2]=a;r=k,s=Qc(a),J[r+16>>2]=s;if((a|0)!=(d|0)){J[695492]=0;ha(2882,o|0,d|0,a-d|0,j|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;a=o}else a=k;a=J[a>>2];H[k+188|0]=0;J[k+12>>2]=c?c:729565;J[k+4>>2]=a;bc=p+16|0;break a}a=Z()|0;break c}a=Z()|0;oh(l)}oh(q)}oh(o);ba(a|0);B()}g:{h:{i:{if(!g){while(1){j:{J[695492]=0;a=aa(2889,k|0,j|0)|0; -b=J[695492];J[695492]=0;if((b|0)==1)break j;if(!a){c=0;break g}J[695492]=0;a=aa(2890,m+196|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;if(!a)continue;k:{if(J[j>>2]>0)break k;d=J[m+200>>2];if(!(K[d+2|0]!=218|K[d+3|0]!=39)){J[695492]=0;c=$(2891,j|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break j;if(J[j>>2]<=0)break h;break k}J[i>>2]=3}J[695492]=0;_(2892,m+196|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;c=0;if(J[j>>2]>0)break g;J[i>>2]=3;continue}break}break i}while(1){l:{J[695492]=0;a=aa(2889, -k|0,j|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;if(!a){c=0;break g}J[695492]=0;a=aa(2890,m+196|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;if(!a)continue;m:{if(J[j>>2]>0)break m;n:{d=J[m+200>>2];if(K[d+2|0]!=218|K[d+3|0]!=39)break n;J[695492]=0;a=ha(g|0,h|0,e|0,f|0,d+4|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;if(!a)break n;J[695492]=0;c=$(2891,j|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;if(J[j>>2]>0)break m;break h}J[i>>2]=3}J[695492]=0;_(2892,m+196|0);a=J[695492];J[695492]= -0;if((a|0)==1)break l;c=0;if(J[j>>2]>0)break g;J[i>>2]=3;continue}break}}a=Z()|0;oh(k+132|0);oh(k+76|0);oh(k+20|0);ba(a|0);B()}J[c+4>>2]=d;J[c+16>>2]=J[m+212>>2];J[c+20>>2]=J[m+216>>2]}oh(k+132|0);oh(k+76|0);oh(k+20|0);bc=m+224|0;return c|0}function h4(a,b){var c=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((b|0)<=1935833198){if((b|0)<=1751346272){J:switch(b-1735618608|0){case 9:break z;case 8:break A;case 7:break B;case 6:break C;case 5:break D; -case 4:break E;case 3:break F;case 2:break G;case 1:break H;case 0:break I;default:break J}if((b|0)==1668311156)break y;if((b|0)!=1751216995)break a;return a+442|0}if((b|0)<=1751347821)switch(b-1751346273|0){case 1:case 2:break a;case 3:break w;case 0:break x;default:break v}K:switch(b-1751347822|0){case 1:case 2:case 3:case 4:break a;case 5:break t;case 0:break u;default:break K}if((b|0)==1751413603)break s;if((b|0)!=1751934832)break a;return a+446|0}if((b|0)<=1970168942){if((b|0)<=1936750702){L:switch(b- -1935833199|0){case 1:case 2:case 3:break a;case 4:break q;case 0:break r;default:break L}switch(b-1935833455|0){case 4:break o;case 0:break p;default:break a}}M:switch(b-1936750703|0){case 1:case 2:case 3:break a;case 4:break m;case 0:break n;default:break M}N:switch(b-1936750959|0){case 1:case 2:case 3:break a;case 4:break k;case 0:break l;default:break N}switch(b-1937011311|0){case 0:break j;case 4:break i;default:break a}}if((b|0)<=1986228845){O:switch(b-1970168943|0){case 1:case 2:case 3:break a; +0))continue;break}}}function Jw(a,b,c,d,e,f,g,h,i,j,k,l){var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;m=fc-192|0;fc=m;J[m+48>>2]=13;J[m+32>>2]=13;J[m+16>>2]=13;J[m>>2]=13;p=vc(112);r=J[a+20>>2];s=J[a+4>>2];J[699344]=0;c=ha(3565,p|0,s|0,c|0,r|0)|0;r=J[699344];J[699344]=0;if((r|0)==1){a=Z()|0;uc(p);ba(a|0);B()}J[a+20>>2]=c;c=J[a+8>>2];kc[J[J[c>>2]+64>>2]](c,J[a+28>>2]);c=Bw(J[a+28>>2]);J[a+28>>2]=c;_f(c);r=J[a+108>>2];wJ(J[a+28>>2],O[d>>3],O[d+8>>3],O[d+16>>3],O[d+24>>3],O[d+32>>3],O[d+40>>3]);c= +J[a+8>>2];kc[J[J[c>>2]+76>>2]](c,J[a+28>>2],O[d>>3],O[d+8>>3],O[d+16>>3],O[d+24>>3],O[d+32>>3],O[d+40>>3]);n=O[e>>3];c=J[a+28>>2];o=O[e+8>>3];O[c+608>>3]=o;O[c+600>>3]=n;c=J[c+596>>2];O[c+16>>3]=o;O[c+8>>3]=n;J[c>>2]=1;n=O[e+16>>3];c=J[a+28>>2];o=O[e+8>>3];O[c+608>>3]=o;O[c+600>>3]=n;re(J[c+596>>2],n,o);n=O[e+16>>3];c=J[a+28>>2];o=O[e+24>>3];O[c+608>>3]=o;O[c+600>>3]=n;re(J[c+596>>2],n,o);n=O[e>>3];c=J[a+28>>2];o=O[e+24>>3];O[c+608>>3]=o;O[c+600>>3]=n;re(J[c+596>>2],n,o);c=J[a+28>>2];gg(J[c+596>> +2]);d=J[c+596>>2];d=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];p=J[d+12>>2]<<3;O[c+600>>3]=O[(p+J[d>>2]|0)-8>>3];O[c+608>>3]=O[(p+J[d+4>>2]|0)-8>>3];Tj(J[a+28>>2]);c=J[a+8>>2];kc[J[J[c>>2]+220>>2]](c,J[a+28>>2]);_f(J[a+28>>2]);p=f|g;if(p){jf(b,J[a+4>>2],m+48|0,0);c=J[m+56>>2];if(J[Ec(kc[J[J[c>>2]+76>>2]](c)|0,816106,m+32|0,0)>>2]==7){c=m+16|0;if(J[Ec(J[m+40>>2],840951,c,0)>>2]!=5)q=Pm(c,0);yc(m+16|0)}yc(m+32|0);yc(m+48|0);d=J[a+28>>2];if(J[d+388>>2]){J[d+388>>2]=0;c=J[a+8>>2];kc[J[J[c>>2]+124>>2]](c, +d);d=J[a+28>>2]}if(O[d+392>>3]!=1){J[d+392>>2]=0;J[d+396>>2]=1072693248;c=J[a+8>>2];kc[J[J[c>>2]+128>>2]](c,d);d=J[a+28>>2]}if(O[d+400>>3]!=1){J[d+400>>2]=0;J[d+404>>2]=1072693248;c=J[a+8>>2];kc[J[J[c>>2]+132>>2]](c,d);d=J[a+28>>2]}c=J[a+8>>2];kc[J[J[c>>2]+344>>2]](c,d);c=J[a+8>>2];kc[J[J[c>>2]+328>>2]](c,J[a+28>>2],e,q,h,i,g)}n=O[a+48>>3];c=J[a+28>>2];O[a+48>>3]=O[c+16>>3];o=O[a+56>>3];O[a+56>>3]=O[c+24>>3];d=a- -64|0;t=O[d>>3];O[d>>3]=O[c+32>>3];u=O[a+72>>3];O[a+72>>3]=O[c+40>>3];v=O[a+80>>3];O[a+ +80>>3]=O[c+48>>3];w=O[a+88>>3];O[a+88>>3]=O[c+56>>3];d=J[a+8>>2];kc[J[J[d>>2]+64>>2]](d,c);c=J[a+28>>2];d=vc(672);J[699344]=0;h=ga(3564,d|0,c|0,1)|0;i=J[699344];J[699344]=0;if((i|0)==1){a=Z()|0;uc(d);ba(a|0);B()}J[a+28>>2]=h;TB(a,b);d=J[a+28>>2];if(J[d+668>>2])while(1){b=Mm(d);J[a+28>>2]=b;d=J[a+8>>2];kc[J[J[d>>2]+68>>2]](d,b);d=J[a+28>>2];if(J[d+668>>2])continue;break}uc(Br(d));J[a+28>>2]=c;b=J[a+8>>2];kc[J[J[b>>2]+68>>2]](b,c);if(p){b=J[a+8>>2];kc[J[J[b>>2]+332>>2]](b,J[a+28>>2])}J[a+108>>2]=r; +O[a+48>>3]=n;O[a+88>>3]=w;O[a+80>>3]=v;O[a+72>>3]=u;O[a- -64>>3]=t;O[a+56>>3]=o;b=Mm(J[a+28>>2]);J[a+28>>2]=b;c=J[a+8>>2];kc[J[J[c>>2]+68>>2]](c,b);b=J[a+20>>2];c=J[b+104>>2];uc(HJ(b));J[a+20>>2]=c;a:{if(g){Ac(m- -64|0,0,128);b:{if(J[l>>2]==6){b=J[l+8>>2];if(J[b+12>>2]<=0)break b;d=0;while(1){Sc(b,d,m,0);b=J[m>>2];if(b-3>>>0>=4294967294){c=(m- -64|0)+(d<<2)|0;n=((b|0)==1?+J[m+8>>2]:O[m+8>>3])*65536;c:{if(R(n)<2147483648){b=~~n;break c}b=-2147483648}J[c>>2]=b}yc(m);if(d>>>0>30)break b;d=d+1|0;b=J[l+ +8>>2];if((d|0)>2])continue;break}break b}if(!q)break b;kc[J[J[q>>2]+32>>2]](q,m- -64|0)}b=J[a+8>>2];kc[J[J[b>>2]+340>>2]](b,J[a+28>>2],e,j,k,m- -64|0);break a}if(!f)break a;b=J[a+8>>2];kc[J[J[b>>2]+336>>2]](b,J[a+28>>2],e)}if(q)kc[J[J[q>>2]+4>>2]](q);fc=m+192|0}function JOa(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=+d;e=+e;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,u=0;o=fc-16|0;fc=o;if(J[J[693464]+404>>2]){J[o>>2]=c;lr(788573,o)}m=bj(J[a+28>>2],c);l=fc-144| +0;fc=l;J[l+140>>2]=h;J[l+128>>2]=0;J[l+132>>2]=0;J[l+120>>2]=0;J[l+124>>2]=0;J[l+112>>2]=0;J[l+116>>2]=0;J[l+104>>2]=0;J[l+108>>2]=0;J[l+88>>2]=13;a:{b:{if(kc[J[J[b>>2]+40>>2]](b,m,d,e,f,g,h,-1,-1,-1,-1,i,j,k)|0){a=J[J[m+12>>2]+168>>2]+f|0;f=(a|0)>359?a-360|0:(a|0)<0?a+360|0:a;y_(m,f,g,kc[J[J[b>>2]+8>>2]](b)|0,l+104|0,l+140|0);a=J[m+12>>2];g=a+32|0;if(J[J[693464]+404>>2]){c=J[m+12>>2];p=O[c>>3];q=O[c+8>>3];r=O[c+16>>3];O[l+72>>3]=O[c+24>>3];O[l- -64>>3]=r;O[l+56>>3]=q;O[l+48>>3]=p;Kz(795781,l+48| +0);p=O[a+40>>3];q=O[a+48>>3];r=O[a+32>>3];O[l+40>>3]=O[a+56>>3];O[l+32>>3]=q;O[l+24>>3]=p;O[l+16>>3]=r;Kz(796607,l+16|0);J[l>>2]=J[J[m+12>>2]+168>>2];lr(797511,l)}c=vc(128);a=J[m+12>>2];h=J[a+288>>2];n=J[m+8>>2];s=J[m>>2];a=J[a+280>>2];J[699344]=0;b=Sa(3395,c|0,s|0,b|0,n|0,((a|0)==7?h:0)|0,+d,+e,l+104|0,(J[l+140>>2]?g:0)|0,f|0,j|0,k|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;a=m+32|0;jf(a,J[m+4>>2],l+88|0,0);if(J[l+88>>2]!=5){c=J[b+8>>2];kc[J[J[c>>2]+64>>2]](c,J[b+28>>2]);t=b,u=Bw(J[b+28>>2]), +J[t+28>>2]=u;TB(b,a);c=J[b+28>>2];if(J[c+668>>2])while(1){a=Mm(c);J[b+28>>2]=a;c=J[b+8>>2];kc[J[J[c>>2]+68>>2]](c,a);c=J[b+28>>2];if(J[c+668>>2])continue;break}if(J[J[b+104>>2]+8>>2]>0)while(1){A$(b,b,b);if(J[J[b+104>>2]+8>>2]>0)continue;break}}f=l+88|0;yc(f);if(J[J[693464]+332>>2]){c=vc(12);a=J[m>>2];g=J[m+4>>2];J[699344]=0;g=ha(3372,m+16|0,g|0,f|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;a=ga(3641,c|0,a|0,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;yc(f);c=0;if(J[a+8>> +2]>0)while(1){f0(J[J[a+4>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}c:{if(J[a+8>>2]<=0)break c;if(J[J[693464]+404>>2])DG(2194572);if(J[a+8>>2]<=0)break c;c=0;while(1){if(j)if(kc[j|0](k)|0)break c;g=c<<2;f=J[J[g+J[a+4>>2]>>2]+16>>2];d:{e:{if(!Dd(f,798653))break e;if(!Dd(f,799335))break e;if(!Dd(f,799918))break e;if(!Dd(f,800859))break e;if(!Dd(f,801650))break e;if(!Dd(f,802359))break e;if(!Dd(f,802958))break e;if(!Dd(f,803528))break e;if(!Dd(f,804392))break e;if(!Dd(f,805427))break e; +if(Dd(f,805636))break d}b0(J[g+J[a+4>>2]>>2],b,i)}c=c+1|0;if((c|0)>2])continue;break}}c=0;g=J[a+8>>2];if((g|0)>0)while(1){f=J[J[a+4>>2]+(c<<2)>>2];if(f){uc(UJ(f));g=J[a+8>>2]}c=c+1|0;if((g|0)>(c|0))continue;break}c=J[a+4>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1){ea(0)|0;Bc();B()}uc(a)}f:{if(!J[J[693464]+336>>2])break f;n=J[J[J[m>>2]+28>>2]+132>>2];if(!n)break f;if(j)if(kc[j|0](k)|0)break f;k=J[m+8>>2];g=0;c=J[n+32>>2];if(J[c+8>>2]>0)while(1){c=J[J[c>>2]+(g<<2)>>2];h=0;a=fc- +48|0;fc=a;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=13;g:{if(J[Ec(J[c+32>>2],786188,a+32|0,0)>>2]==6){j=J[a+40>>2];if(J[j+12>>2]<=0)break g;while(1){f=a+16|0;tg(j,h,f);jf(f,J[J[J[c>>2]>>2]+24>>2],a,0);XB(c,k,b,i,f,a,809264,0,1);yc(a);yc(f);h=h+1|0;j=J[a+40>>2];if((h|0)>2])continue;break}break g}XB(c,k,b,i,c+8|0,c+24|0,809264,0,1)}yc(a+32|0);fc=a+48|0;g=g+1|0;c=J[n+32>>2];if((g|0)>2])continue;break}}uc(Kw(b))}fc=l+144|0;break a}a=Z()|0;uc(c);ba(a|0);B()}fc=o+16|0}function OIa(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;d=fc-80|0;fc=d;e=J[J[a+4>>2]+8>>2];if(e){kc[J[J[e>>2]+4>>2]](e);J[J[a+4>>2]+8>>2]=0}e=K[b+11|0];g=e<<24>>24;a:{b:{c:{d:{f=(g|0)<0?J[b+4>>2]:e;c=f+5|0;if(c>>>0<1073741808){e:{if(c>>>0<=1){J[d+72>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;H[d+75|0]=c;e=d- -64|0;break e}e=c|3;if(e>>>0>=1073741823)break d;h=e+1|0;e=vc(h<<2);J[d+68>>2]=c;J[d+64>>2]=e;J[d+72>>2]=h|-2147483648}c=e;e=f<<2;e=cd(c,(g|0)<0?J[b>>2]:b,e)+e|0;J[e+20>>2]=0;J[e+16>>2]=J[594002];c=J[594001];J[e+8>> +2]=J[594E3];J[e+12>>2]=c;c=J[593999];J[e>>2]=J[593998];J[e+4>>2]=c;g=d- -64|4;e=0;f:{g:{h:{i:{j:{k:{l:{while(1){m:{J[699344]=0;c=_(3202,d- -64|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break m;if(!c)break f;c=K[b+11|0];h=c<<24>>24<0;n:{o:{i=h?J[b+4>>2]:c;c=i+4|0;p:{if(c>>>0>=1073741808){J[699344]=0;$(2959,d+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break p;break a}if(c>>>0<=1){J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;H[d+35|0]=c;f=d+24|0;break n}f=c|3;if(f>>>0<1073741823)break o;J[699344]=0;ka(209); +a=J[699344];J[699344]=0;if((a|0)!=1)break a}e=Z()|0;break b}J[699344]=0;j=f+1|0;f=_(4,j<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break l;J[d+28>>2]=c;J[d+24>>2]=f;J[d+32>>2]=j|-2147483648}c=i<<2;c=cd(f,h?J[b>>2]:b,c)+c|0;J[c+16>>2]=0;f=J[594007];J[c+8>>2]=J[594006];J[c+12>>2]=f;f=J[594005];J[c>>2]=J[594004];J[c+4>>2]=f;J[699344]=0;c=d+12|0;da(2279,c|0,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break k;J[699344]=0;h=c;c=K[d+23|0];f=c<<24>>24<0;c=ga(2960,d+24|0,(f?J[d+12>>2]:h)|0,(f?J[d+16>>2]:c)|0)| +0;f=J[699344];J[699344]=0;if((f|0)==1)break j;J[d+48>>2]=J[c+8>>2];f=J[c+4>>2];J[d+40>>2]=J[c>>2];J[d+44>>2]=f;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[699344]=0;c=aa(3026,d+40|0,2376036)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;h=J[c>>2];J[d+56>>2]=J[c+4>>2];f=K[c+7|0]|K[c+8|0]<<8|(K[c+9|0]<<16|K[c+10|0]<<24);H[d+59|0]=f;H[d+60|0]=f>>>8;H[d+61|0]=f>>>16;H[d+62|0]=f>>>24;J[c>>2]=0;J[c+4>>2]=0;f=K[c+11|0];J[c+8>>2]=0;if(H[d+75|0]<0)uc(J[d+64>>2]);J[d+64>>2]=h;c=K[d+59|0]|K[d+60|0]<<8|(K[d+61|0]<<16| +K[d+62|0]<<24);H[g+3|0]=c;H[g+4|0]=c>>>8;H[g+5|0]=c>>>16;H[g+6|0]=c>>>24;J[g>>2]=J[d+56>>2];H[d+75|0]=f;if(H[d+51|0]<0)uc(J[d+40>>2]);if(H[d+23|0]<0)uc(J[d+12>>2]);if(H[d+35|0]<0)uc(J[d+24>>2]);e=e+1|0;continue}break}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0;break g}e=Z()|0;break h}e=Z()|0;if(H[d+51|0]>=0)break h;uc(J[d+40>>2])}if(H[d+23|0]>=0)break g;uc(J[d+12>>2])}if(H[d+35|0]>=0)break b;uc(J[d+24>>2]);break b}J[699344]=0;_(3206,d- -64|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0; +b=_(4,16)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2376076;J[b+12>>2]=0;c=b+4|0;q:{r:{s:{if(H[d+75|0]>=0){e=J[d+68>>2];J[c>>2]=J[d+64>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+72>>2];break s}J[699344]=0;ga(1631,c|0,J[d+64>>2],J[d+68>>2])|0;e=J[699344];J[699344]=0;if((e|0)==1)break r}g=K[b+15|0];e=g<<24>>24<0;g=e?J[b+8>>2]:g;if(!g)break q;g=g-1|0;if(J[(g<<2)+(e?J[c>>2]:c)>>2]!=47)break q;J[699344]=0;ca(2971,c|0,g|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break q}e=Z()|0;if(H[b+ +15|0]<0)uc(J[c>>2]);uc(b);break b}J[J[a+4>>2]+8>>2]=b;if(H[d+75|0]<0)uc(J[d+64>>2]);fc=d+80|0;return}_d(d- -64|0);B()}Pd();B()}e=Z()|0}if(H[d+75|0]<0)uc(J[d+64>>2]);ba(e|0);B()}B()}function BB(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;m=fc-16|0;fc=m;c=vc(16);J[699344]=0;k=_(3352,c|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{if((d|0)!=1){while(1){c=vc(16);J[699344]=0;e=_(3352,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;c=0;d=J[b+8>>2];if((d|0)>0)while(1){f=J[J[b>>2]+(c<< +2)>>2];if(!(K[f+88|0]!=(n|0)|(K[f+91|0]?J[a+40>>2]:0)|(K[f+90|0]?J[a+44>>2]:0))){sd(e,f);d=J[b+8>>2]}c=c+1|0;if((d|0)>(c|0))continue;break}o=(n<<2)+m|0;J[o>>2]=0;d:{if(J[e+8>>2]<=0)break d;c=n&1;Bl(e,c?3657:3656);d=0;i=J[e+8>>2];e:{if(c){if((i|0)<=0)break e;while(1){f=d+1|0;f:{g:{if((f|0)>=(i|0))break g;h=J[J[e>>2]+(d<<2)>>2];l=O[h+56>>3];g=l*.1;l=l*.2;c=f;while(1){j=J[J[e>>2]+(c<<2)>>2];if(g<=O[j+24>>3]-O[h+24>>3])break g;h:{if(!(!(l>R(O[j+16>>3]-O[h+16>>3]))|J[j>>2]!=J[h>>2]|(!(l>R(O[j+32>>3]-O[h+ +32>>3]))|!(g>R(O[j+40>>3]-O[h+40>>3]))))){if(!(K[j+91|0]|!K[h+91|0])){zj(e,d);i=J[e+8>>2];break f}if(K[j+92|0])H[h+92|0]=1;zj(e,c);i=J[e+8>>2];break h}c=c+1|0}if((c|0)<(i|0))continue;break}}d=f}if((d|0)<(i|0))continue;break}break e}if((i|0)<=0)break e;while(1){f=d+1|0;i:{j:{if((f|0)>=(i|0))break j;h=J[J[e>>2]+(d<<2)>>2];l=O[h+56>>3];g=l*.2;l=l*.1;c=f;while(1){j=J[J[e>>2]+(c<<2)>>2];if(l<=O[j+16>>3]-O[h+16>>3])break j;k:{if(!(!(l>R(O[j+32>>3]-O[h+32>>3]))|J[j>>2]!=J[h>>2]|(!(g>R(O[j+24>>3]-O[h+24>> +3]))|!(g>R(O[j+40>>3]-O[h+40>>3]))))){if(!(K[j+91|0]|!K[h+91|0])){zj(e,d);i=J[e+8>>2];break i}if(K[j+92|0])H[h+92|0]=1;zj(e,c);i=J[e+8>>2];break k}c=c+1|0}if((c|0)<(i|0))continue;break}}d=f}if((d|0)<(i|0))continue;break}}d=J[e+8>>2];if(J[a+28>>2]){c=0;if((d|0)<=0)break d;while(1){l:{if(K[J[J[e>>2]+(c<<2)>>2]+90|0]){sd(k,zj(e,c));d=J[e+8>>2];break l}c=c+1|0}if((c|0)<(d|0))continue;break}}if((d|0)<=0)break d;p=o,q=Vt(a,e,n),J[p>>2]=q}uc(ld(e));n=n+1|0;if((n|0)!=4)continue;break}b=J[m>>2];m:{if(!b){a= +J[m+4>>2];if(a)uc(Oo(a));a=J[m+8>>2];if(a)uc(Oo(a));c=0;a=J[m+12>>2];if(!a)break m;uc(Oo(a));break m}n:{if(!J[b+4>>2]){c=b;break n}c=vc(56);J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c>>2]=1;J[c+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[699344]=0;f=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;d=_(3352,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){d=Z()|0;uc(f);break a}J[c+52>>2]=d;g=O[b+16>>3];o:{if(!J[d+8>>2]){O[c+16>>3]= +g;O[c+24>>3]=O[b+24>>3];O[c+32>>3]=O[b+32>>3];O[c+40>>3]=O[b+40>>3];break o}if(g>3])O[c+16>>3]=g;g=O[b+24>>3];if(g>3])O[c+24>>3]=g;g=O[b+32>>3];if(g>O[c+32>>3])O[c+32>>3]=g;g=O[b+40>>3];if(!(g>O[c+40>>3]))break o;O[c+40>>3]=g}sd(d,b);J[c+4>>2]=0}b=J[m+4>>2];if(b)zB(a,b,c);b=J[m+8>>2];if(b)zB(a,b,c);b=J[m+12>>2];if(b)zB(a,b,c);if(!J[k+8>>2])break m;Bl(k,3656);if(J[k+8>>2])while(1){b=zj(k,0);p:{q:{if(K[b+88|0])break q;e=WZ(a,b,c);if(!e)break q;sd(J[e+52>>2],b);d=J[k+8>>2];if((d|0)<= +0)break p;f=0;while(1){i=J[J[k>>2]+(f<<2)>>2];if(O[i+16>>3]>O[b+56>>3]*.5+O[b+32>>3])break q;g=(O[i+24>>3]+O[i+40>>3])*.5;r:{if(!(!(g>O[e+24>>3])|!(g>3]))){b=zj(k,f);sd(J[e+52>>2],b);d=J[k+8>>2];break r}f=f+1|0}if((d|0)>(f|0))continue;break}}d=J[k+8>>2]}if(d)continue;break}}uc(ld(k));fc=m+16|0;return c}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0}uc(c);ba(d|0);B()}function kC(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;a:{if(J[a+292>>2])break a;e=J[a+36>>2];f=J[e+16>>2];if((f-J[e+ +12>>2]|0)<501|(J[e+20>>2]-f|0)>499)break a;_g(a)}J[b>>2]=0;b:{c:{d:{e=J[a+36>>2];f=J[e+16>>2];switch(K[f|0]-80|0){case 0:break c;case 3:break d;default:break b}}if(K[f+1|0]!=89|K[f+2|0]!=83|(K[f+3|0]!=84|K[f+4|0]!=69))break b;if(K[f+5|0]!=77)break b;J[a+200>>2]=J[a+200>>2]+6;J[e+16>>2]=f+6;J[e+32>>2]=J[e+32>>2]+6;b=K[f+6|0];if((b|0)==37){Yd(a);e=J[a+36>>2];b=K[J[e+16>>2]]}e:{if(b&255)break e;if((Nd(e)|0)>0)break e;He(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))oe(a,65,38021);be(a); +j=r1(a);if(j)break b;Xe(a,70,0);return 0}if(K[f+1|0]!=85|K[f+2|0]!=66|(K[f+3|0]!=76|K[f+4|0]!=73))break b;if(K[f+5|0]!=67)break b;J[a+200>>2]=J[a+200>>2]+6;J[e+16>>2]=f+6;J[e+32>>2]=J[e+32>>2]+6;f=K[f+6|0];if((f|0)==37){Yd(a);e=J[a+36>>2];f=K[J[e+16>>2]]}f:{if(f&255)break f;if((Nd(e)|0)>0)break f;He(a)}f=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))oe(a,65,38083);be(a);f=b;e=0;h=fc-48|0;fc=h;d=a;o=J[d+172>>2];g:{if(J[d+292>>2])break g;b=J[d+36>>2];a=J[b+16>>2];if((a-J[b+12>>2]|0)<501| +(J[b+20>>2]-a|0)>499)break g;_g(d)}h:{i:{j:{k:{i=K[J[J[d+36>>2]+16>>2]];switch(i-34|0){case 0:break i;case 5:break j;default:break k}}if(!(!J[d+212>>2]|J[d+172>>2]!=-1)){a=0;break h}J[d+84>>2]=43;J[h>>2]=16077;a=0;Hc(0,0,0,d,0,1,43,3,0,0,0,0,32906,h);J[d+12>>2]=0;if(J[d+288>>2])break h;J[d+212>>2]=1;break h}i=39}Zd(d);b=kc[J[663198]](100)|0;if(!b){a=0;se(d,0);break h}J[d+172>>2]=16;g=K[J[J[d+36>>2]+16>>2]];n=(i|0)!=(g|0);l:{if((g|0)==(i|0)){a=b;break l}if(!K[g+770096|0]){a=b;break l}k=100;while(1){m:{l= +e+1|0;if((l|0)<(k|0)){a=b;break m}if(!(K[d+362|0]&8|(k|0)<50001)){n:{if(J[d+172>>2]==-1?J[d+212>>2]:0)break n;J[d+84>>2]=110;J[h+36>>2]=21483;J[h+32>>2]=6556;Hc(0,0,0,d,0,1,110,3,21483,0,0,0,32777,h+32|0);J[d+12>>2]=0;if(J[d+288>>2])break n;J[d+212>>2]=1}a=0;kc[J[663199]](b);break h}k=k<<1;a=kc[J[663200]](b,k)|0;if(a)break m;a=0;se(d,0);kc[J[663199]](b);break h}H[a+e|0]=g;o:{if((m|0)<50){m=m+1|0;break o}p:{if(J[d+292>>2])break p;b=J[d+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break p;Rd(d)}m=0;if(J[d+ +172>>2]!=-1)break o;kc[J[663199]](a);a=0;break h}Zd(d);e=J[d+36>>2];b=J[e+16>>2];g=K[b|0];if(!g){q:{if(J[d+292>>2])break q;if((J[e+20>>2]-b|0)<=249){Rd(d);e=J[d+36>>2];if(J[d+292>>2])break q}b=J[e+16>>2];if((b-J[e+12>>2]|0)<501|(J[e+20>>2]-b|0)>499)break q;_g(d);e=J[d+36>>2]}g=K[J[e+16>>2]]}n=(g|0)!=(i|0);if((g|0)==(i|0))break l;b=a;e=l;if(K[g+770096|0])continue;break}}H[a+l|0]=0;r:{if(n){if(J[d+172>>2]==-1?J[d+212>>2]:0)break r;J[d+84>>2]=44;J[h+16>>2]=16107;Hc(0,0,0,d,0,1,44,3,0,0,0,0,32906,h+16| +0);J[d+12>>2]=0;if(J[d+288>>2])break r;J[d+212>>2]=1;break r}Zd(d)}J[d+172>>2]=o}fc=h+48|0;J[f>>2]=a;if(!a)Xe(d,71,0);s:{if(c){a=K[J[J[d+36>>2]+16>>2]]-9|0;if(1<>>0<=23:0)break s;oe(d,65,33078);break s}a=J[d+36>>2];if(!(J[d+292>>2]|(J[a+20>>2]-J[a+16>>2]|0)>249)){Rd(d);a=J[d+36>>2]}a=J[a+16>>2];b=K[a|0];c=b-9|0;if(c>>>0>23|!(1<>>0>30)break b;b=1<>2];z=J[a+28>>2]-q>>3;w=J[a+8>>2];while(1){B=J[q+12>>2];x=I[q+8>>1];a=I[q+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){p=J[c>>2];break a}p=J[c>>2];j=e;e=a+255&130816;if((j|0)==(e|0))break a;if(p)uc(p);J[c+4>>2]=e;p=vc(e<<2);J[c>>2]=p}o=p;e=J[d+4>>2]; +j=J[e>>2];C=O[j+32>>3];D=O[j>>3];L=O[j+16>>3];E=O[j+40>>3];F=O[j+8>>3];t=O[d+16>>3];r=O[j+24>>3];k=O[d+24>>3];j=a;i=(j|0)<=1?1:j;J[e+24>>2]=i;J[e+4>>2]=i;A=t+ +(x|0);t=r;r=k+ +(w|0);G=t*r;k=(E+(F*A+G))*256;k=k+(k<0?-.5:.5);b:{if(R(k)<2147483648){f=~~k;break b}f=-2147483648}J[e+40>>2]=f;t=r*L;k=(C+(A*D+t))*256;k=k+(k<0?-.5:.5);c:{if(R(k)<2147483648){g=~~k;break c}g=-2147483648}J[e+20>>2]=g;r=A+ +(j>>>0);k=(E+(r*F+G))*256;k=k+(k<0?-.5:.5);d:{if(R(k)<2147483648){n=~~k;break d}n=-2147483648}h=n-f|0;f= +(h|0)/(i|0)|0;l=h-P(i,f)|0;m=(l|0)<=0;J[e+28>>2]=f-m;k=(C+(r*D+t))*256;k=k+(k<0?-.5:.5);e:{if(R(k)<2147483648){f=~~k;break e}f=-2147483648}f=f-g|0;g=(f|0)/(i|0)|0;n=g;h=f-P(i,g)|0;g=(h|0)<=0;J[e+8>>2]=n-g;f=l+(m?j:0)|0;J[e+32>>2]=f;g=h+(g?j:0)|0;J[e+12>>2]=g;J[e+36>>2]=f-j;J[e+16>>2]=g-j;e=J[d+4>>2];f=J[e+40>>2];g=J[e+20>>2];while(1){e=J[d+36>>2];i=J[d>>2];s=g-J[d+32>>2]|0;h=s>>8;J[i+8>>2]=h;u=f-e|0;f=J[i+32>>2];m=(J[i+36>>2]+(u>>8)>>>0)%(f>>>0)|0;J[i+40>>2]=m;e=J[J[i>>2]>>2];g=J[e+4>>2];e=J[e+16>> +2];n=h+J[i+20>>2]|0;h=J[i+16>>2];l=(n>>>0)%(h>>>0)|0;J[i+24>>2]=l;f=g+P(e,m>>>0>2]?m:f+(m^-1)|0)|0;J[i+4>>2]=f;g=J[i+12>>2];e=f+((g>>>0>l>>>0?l:h+(l^-1)|0)<<2)|0;N=K[e+2|0];Q=K[e+1|0];S=K[e|0];v=K[e+3|0];e=l+1|0;e=e>>>0>>0?e:0;J[i+24>>2]=e;e=f+((e>>>0>>0?e:h+(e^-1)|0)<<2)|0;T=K[e+2|0];U=K[e+1|0];V=K[e|0];n=K[e+3|0];i=J[d>>2];e=J[i+40>>2]+1|0;h=J[i+32>>2];l=h>>>0>e>>>0?e:0;J[i+40>>2]=l;e=J[J[i>>2]>>2];f=J[e+4>>2];e=J[e+16>>2];g=J[i+16>>2];m=(J[i+20>>2]+J[i+8>>2]>>>0)%(g>>>0)|0;J[i+24>> +2]=m;e=f+P(e,l>>>0>2]?l:h+(l^-1)|0)|0;J[i+4>>2]=e;e=e+((m>>>0>2]?m:g+(m^-1)|0)<<2)|0;W=K[e+2|0];X=K[e+1|0];i=K[e|0];l=K[e+3|0];f=J[d>>2];e=J[f+24>>2]+1|0;g=e;e=J[f+16>>2];g=g>>>0>>0?g:0;J[f+24>>2]=g;y=J[f+4>>2]+((g>>>0>2]?g:e+(g^-1)|0)<<2)|0;m=K[y+2|0];h=K[y+1|0];f=K[y|0];Y=v;u=u&255;g=256-u|0;v=s&255;e=256-v|0;s=P(g,e);Z=n;n=P(g,v);g=P(e,u);e=P(u,v);H[o+3|0]=(((P(Y,s)+P(Z,n)|0)+P(g,l)|0)+P(e,K[y+3|0])|0)+32768>>>16;H[o+2|0]=(((P(s,S)+P(n,V)|0)+P(i,g)|0)+P(e,f)|0)+32768>>> +16;H[o+1|0]=(((P(s,Q)+P(n,U)|0)+P(g,X)|0)+P(e,h)|0)+32768>>>16;H[o|0]=(((P(s,N)+P(n,T)|0)+P(g,W)|0)+P(e,m)|0)+32768>>>16;h=J[d+4>>2];e=J[h+16>>2]+J[h+12>>2]|0;J[h+16>>2]=e;g=J[h+20>>2]+J[h+8>>2]|0;J[h+20>>2]=g;if((e|0)>0){g=g+1|0;J[h+20>>2]=g;J[h+16>>2]=e-J[h+4>>2]}e=J[h+36>>2]+J[h+32>>2]|0;J[h+36>>2]=e;f=J[h+40>>2]+J[h+28>>2]|0;J[h+40>>2]=f;if((e|0)>0){f=f+1|0;J[h+40>>2]=f;J[h+36>>2]=e-J[h+24>>2]}o=o+4|0;j=j-1|0;if(j)continue;break}f:{if(J[b+16>>2]<(w|0)|J[b+8>>2]>(w|0))break f;e=I[q+10>>1]<0;o= +e?0:B;g=K[B|0];j=J[b+4>>2];g:{if((x|0)>=(j|0)){j=x;break g}f=j-x|0;a=a-f|0;if((a|0)<=0)break f;o=e?0:f+o|0;p=(f<<2)+p|0}f=J[b>>2];e=J[b+12>>2];if((e|0)<(a+j|0)){a=e-j|0;if((a|0)<0)break f;a=a+1|0}_k(f,j,w,a,p,o,g)}q=q+8|0;z=z-1|0;if(z)continue;break}}function Pl(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;q=J[a+20>>2];z=J[a+28>>2]-q>>3;w=J[a+8>>2];while(1){B=J[q+12>>2]; +x=I[q+8>>1];a=I[q+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){p=J[c>>2];break a}p=J[c>>2];j=e;e=a+255&130816;if((j|0)==(e|0))break a;if(p)uc(p);J[c+4>>2]=e;p=vc(e<<2);J[c>>2]=p}o=p;e=J[d+4>>2];j=J[e>>2];C=O[j+32>>3];D=O[j>>3];L=O[j+16>>3];E=O[j+40>>3];F=O[j+8>>3];t=O[d+16>>3];r=O[j+24>>3];k=O[d+24>>3];j=a;i=(j|0)<=1?1:j;J[e+24>>2]=i;J[e+4>>2]=i;A=t+ +(x|0);t=r;r=k+ +(w|0);G=t*r;k=(E+(F*A+G))*256;k=k+(k<0?-.5:.5);b:{if(R(k)<2147483648){f=~~k;break b}f=-2147483648}J[e+40>>2]=f;t=r*L; +k=(C+(A*D+t))*256;k=k+(k<0?-.5:.5);c:{if(R(k)<2147483648){g=~~k;break c}g=-2147483648}J[e+20>>2]=g;r=A+ +(j>>>0);k=(E+(r*F+G))*256;k=k+(k<0?-.5:.5);d:{if(R(k)<2147483648){n=~~k;break d}n=-2147483648}h=n-f|0;f=(h|0)/(i|0)|0;l=h-P(i,f)|0;m=(l|0)<=0;J[e+28>>2]=f-m;k=(C+(r*D+t))*256;k=k+(k<0?-.5:.5);e:{if(R(k)<2147483648){f=~~k;break e}f=-2147483648}f=f-g|0;g=(f|0)/(i|0)|0;n=g;h=f-P(i,g)|0;g=(h|0)<=0;J[e+8>>2]=n-g;f=l+(m?j:0)|0;J[e+32>>2]=f;g=h+(g?j:0)|0;J[e+12>>2]=g;J[e+36>>2]=f-j;J[e+16>>2]=g-j;e=J[d+ +4>>2];f=J[e+40>>2];g=J[e+20>>2];while(1){e=J[d+36>>2];i=J[d>>2];s=g-J[d+32>>2]|0;h=s>>8;J[i+8>>2]=h;u=f-e|0;f=J[i+32>>2];m=(J[i+36>>2]+(u>>8)>>>0)%(f>>>0)|0;J[i+40>>2]=m;e=J[J[i>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];n=h+J[i+20>>2]|0;h=J[i+16>>2];l=(n>>>0)%(h>>>0)|0;J[i+24>>2]=l;f=g+P(e,m>>>0>2]?m:f+(m^-1)|0)|0;J[i+4>>2]=f;g=J[i+12>>2];e=f+((g>>>0>l>>>0?l:h+(l^-1)|0)<<2)|0;N=K[e|0];Q=K[e+1|0];S=K[e+2|0];v=K[e+3|0];e=l+1|0;e=e>>>0>>0?e:0;J[i+24>>2]=e;e=f+((e>>>0>>0?e:h+(e^-1)|0)<<2)|0;T=K[e| +0];U=K[e+1|0];V=K[e+2|0];n=K[e+3|0];i=J[d>>2];e=J[i+40>>2]+1|0;h=J[i+32>>2];l=h>>>0>e>>>0?e:0;J[i+40>>2]=l;e=J[J[i>>2]>>2];f=J[e+4>>2];e=J[e+16>>2];g=J[i+16>>2];m=(J[i+20>>2]+J[i+8>>2]>>>0)%(g>>>0)|0;J[i+24>>2]=m;e=f+P(e,l>>>0>2]?l:h+(l^-1)|0)|0;J[i+4>>2]=e;e=e+((m>>>0>2]?m:g+(m^-1)|0)<<2)|0;W=K[e|0];X=K[e+1|0];i=K[e+2|0];l=K[e+3|0];f=J[d>>2];e=J[f+24>>2]+1|0;g=e;e=J[f+16>>2];g=g>>>0>>0?g:0;J[f+24>>2]=g;y=J[f+4>>2]+((g>>>0>2]?g:e+(g^-1)|0)<<2)|0;m=K[y|0];h=K[y+1|0];f=K[y+ +2|0];Y=v;u=u&255;g=256-u|0;v=s&255;e=256-v|0;s=P(g,e);Z=n;n=P(g,v);g=P(e,u);e=P(u,v);H[o+3|0]=(((P(Y,s)+P(Z,n)|0)+P(g,l)|0)+P(e,K[y+3|0])|0)+32768>>>16;H[o+2|0]=(((P(s,S)+P(n,V)|0)+P(i,g)|0)+P(e,f)|0)+32768>>>16;H[o+1|0]=(((P(s,Q)+P(n,U)|0)+P(g,X)|0)+P(e,h)|0)+32768>>>16;H[o|0]=(((P(s,N)+P(n,T)|0)+P(g,W)|0)+P(e,m)|0)+32768>>>16;h=J[d+4>>2];e=J[h+16>>2]+J[h+12>>2]|0;J[h+16>>2]=e;g=J[h+20>>2]+J[h+8>>2]|0;J[h+20>>2]=g;if((e|0)>0){g=g+1|0;J[h+20>>2]=g;J[h+16>>2]=e-J[h+4>>2]}e=J[h+36>>2]+J[h+32>>2]|0; +J[h+36>>2]=e;f=J[h+40>>2]+J[h+28>>2]|0;J[h+40>>2]=f;if((e|0)>0){f=f+1|0;J[h+40>>2]=f;J[h+36>>2]=e-J[h+24>>2]}o=o+4|0;j=j-1|0;if(j)continue;break}f:{if(J[b+16>>2]<(w|0)|J[b+8>>2]>(w|0))break f;e=I[q+10>>1]<0;o=e?0:B;g=K[B|0];j=J[b+4>>2];g:{if((x|0)>=(j|0)){j=x;break g}f=j-x|0;a=a-f|0;if((a|0)<=0)break f;o=e?0:f+o|0;p=(f<<2)+p|0}f=J[b>>2];e=J[b+12>>2];if((e|0)<(a+j|0)){a=e-j|0;if((a|0)<0)break f;a=a+1|0}_k(f,j,w,a,p,o,g)}q=q+8|0;z=z-1|0;if(z)continue;break}}function c0(a,b,c,d,e,f,g,h){var i=0,j=0, +k=0,l=0,m=0,n=0,o=0;i=fc-384|0;fc=i;a:{b:switch(b-1|0){case 0:b=J[a+40>>2];g=g*6;j=g*.5;k=j*f;l=g*e+c;O[i+80>>3]=k+l;n=-j;o=n*e;g=g*f+d;O[i+88>>3]=o+g;ed(b,808963,i+80|0);b=J[a+40>>2];O[i+72>>3]=o+d;O[i+64>>3]=k+c;ed(b,809321,i- -64|0);b=J[a+40>>2];e=j*e;O[i+56>>3]=e+d;d=n*f;O[i+48>>3]=d+c;ed(b,809321,i+48|0);b=J[a+40>>2];O[i+40>>3]=e+g;O[i+32>>3]=d+l;ed(b,809321,i+32|0);od(J[a+40>>2],h?840146:840254);break a;case 1:g=g*6*.5;c=g*e+c;b=fc-224|0;fc=b;m=J[a+40>>2];d=g*f+d;O[b+216>>3]=d;e=c+g;O[b+208>> +3]=e;ed(m,808963,b+208|0);m=J[a+40>>2];f=d+g;O[b+200>>3]=f;O[b+192>>3]=c;O[b+184>>3]=f;j=g*.55228475;k=j+c;O[b+176>>3]=k;l=j+d;O[b+168>>3]=l;O[b+160>>3]=e;ed(m,840706,b+160|0);m=J[a+40>>2];O[b+152>>3]=d;j=c-g;O[b+144>>3]=j;O[b+136>>3]=l;O[b+128>>3]=j;O[b+120>>3]=f;l=g*-.55228475;n=l+c;O[b+112>>3]=n;ed(m,840706,b+112|0);m=J[a+40>>2];f=d-g;O[b+104>>3]=f;O[b+96>>3]=c;O[b+88>>3]=f;O[b+80>>3]=n;c=l+d;O[b+72>>3]=c;O[b+64>>3]=j;ed(m,840706,b- -64|0);m=J[a+40>>2];O[b+56>>3]=d;O[b+48>>3]=e;O[b+40>>3]=c;O[b+ +32>>3]=e;O[b+24>>3]=f;O[b+16>>3]=k;ed(m,840706,b+16|0);a=J[a+40>>2];J[b>>2]=h?840423:840520;ed(a,840842,b);fc=b+224|0;break a;case 2:b=J[a+40>>2];O[i+144>>3]=c;O[i+152>>3]=d;ed(b,808963,i+144|0);b=J[a+40>>2];g=g*6;k=g*.5;j=k*e;k=k*f;l=k+d;O[i+136>>3]=j+l;n=j+c;O[i+128>>3]=n-k;ed(b,809321,i+128|0);b=J[a+40>>2];O[i+120>>3]=g*f+d;O[i+112>>3]=g*e+c;ed(b,809321,i+112|0);b=J[a+40>>2];O[i+104>>3]=l-j;O[i+96>>3]=k+n;ed(b,809321,i+96|0);od(J[a+40>>2],h?840146:840254);break a;case 3:b=J[a+40>>2];g=g*10;j=g* +.8660254037844387;k=j*f+d;g=g*.49999999999999994;l=g*e;O[i+200>>3]=k-l;f=g*f;e=j*e+c;O[i+192>>3]=f+e;ed(b,808963,i+192|0);b=J[a+40>>2];O[i+184>>3]=d;O[i+176>>3]=c;ed(b,809321,i+176|0);b=J[a+40>>2];O[i+168>>3]=l+k;O[i+160>>3]=e-f;ed(b,809321,i+160|0);od(J[a+40>>2],804881);break a;case 4:b=J[a+40>>2];g=g*10;j=g*.8660254037844387;k=j*f+d;g=g*.49999999999999994;l=g*e;O[i+248>>3]=k-l;f=g*f;e=j*e+c;O[i+240>>3]=f+e;ed(b,808963,i+240|0);b=J[a+40>>2];O[i+232>>3]=d;O[i+224>>3]=c;ed(b,809321,i+224|0);b=J[a+ +40>>2];O[i+216>>3]=l+k;O[i+208>>3]=e-f;ed(b,809321,i+208|0);od(J[a+40>>2],h?840146:840254);break a;case 5:b=J[a+40>>2];g=g*6*.5;e=g*e;O[i+280>>3]=d-e;f=g*f;O[i+272>>3]=f+c;ed(b,808963,i+272|0);b=J[a+40>>2];O[i+264>>3]=e+d;O[i+256>>3]=c-f;ed(b,809321,i+256|0);od(J[a+40>>2],804881);break a;case 6:b=J[a+40>>2];g=g*10;j=g*.49999999999999994;k=j*e;O[i+328>>3]=d-k;j=j*f;O[i+320>>3]=j+c;ed(b,808963,i+320|0);b=J[a+40>>2];g=g*.8660254037844387;O[i+312>>3]=g*f+d;O[i+304>>3]=g*e+c;ed(b,809321,i+304|0);b=J[a+ +40>>2];O[i+296>>3]=k+d;O[i+288>>3]=c-j;ed(b,809321,i+288|0);od(J[a+40>>2],804881);break a;case 7:b=J[a+40>>2];g=g*10;j=g*.49999999999999994;k=j*e;O[i+376>>3]=d-k;j=j*f;O[i+368>>3]=j+c;ed(b,808963,i+368|0);b=J[a+40>>2];g=g*.8660254037844387;O[i+360>>3]=g*f+d;O[i+352>>3]=g*e+c;ed(b,809321,i+352|0);b=J[a+40>>2];O[i+344>>3]=k+d;O[i+336>>3]=c-j;ed(b,809321,i+336|0);od(J[a+40>>2],h?840146:840254);break a;case 8:break b;default:break a}b=J[a+40>>2];g=g*6*.5;j=g*.8660254037844387;k=j*e;g=g*.49999999999999994; +l=g*f;O[i+24>>3]=d-k-l;f=j*f;e=g*e;O[i+16>>3]=f+c-e;ed(b,808963,i+16|0);b=J[a+40>>2];O[i+8>>3]=l+(k+d);O[i>>3]=e+(c-f);ed(b,809321,i);od(J[a+40>>2],804881)}fc=i+384|0}function IPa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;J[c+16>>2]=13;J[c>>2]=13;d=a- -64|0;J[d>>2]=0;J[d+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;a:{if(J[b+12>>2]<=1){Cc(0,-1,796816,0);break a}tg(b,0,c+ +16|0);b:{c:{d:switch(J[c+16>>2]-1|0){case 8:J[a+8>>2]=J[c+24>>2];J[a+12>>2]=J[c+28>>2];f=1;break c;default:Cc(0,-1,797693,0);break b;case 0:break d}J[a+8>>2]=J[c+24>>2]+1}J[a+4>>2]=f;d=c+16|0;yc(d);Sc(b,1,d,0);e:{f:{g:{h:{if(J[c+16>>2]!=4)break h;d=J[c+24>>2];if(!Ic(d,798705)){J[a>>2]=0;i:{j:{k:{l:{if(J[b+12>>2]<=2){J[a+56>>2]=0;break l}Sc(b,2,c,0);d=J[c>>2];m:{if((d|0)==5){J[a+56>>2]=0;break m}if(d-3>>>0<4294967294)break e;J[a+56>>2]=1;O[a+16>>3]=(d|0)==1?+J[c+8>>2]:O[c+8>>3]}yc(c);if(J[b+12>>2]> +3)break k}J[a+60>>2]=0;break j}Sc(b,3,c,0);d=J[c>>2];n:{if((d|0)==5){J[a+60>>2]=0;break n}if(d-3>>>0<4294967294)break e;J[a+60>>2]=1;O[a+40>>3]=(d|0)==1?+J[c+8>>2]:O[c+8>>3]}yc(c);if(J[b+12>>2]>4)break i}J[a+64>>2]=0;break f}Sc(b,4,c,0);b=J[c>>2];if((b|0)==5){J[a+64>>2]=0;yc(c);break f}if(b-3>>>0<4294967294)break e;J[a+64>>2]=1;O[a+48>>3]=(b|0)==1?+J[c+8>>2]:O[c+8>>3];yc(c);break f}if(!Ic(d,800007)){if(J[b+12>>2]>1)break g;Cc(0,-1,796816,0);break b}if(!Ic(d,801122)){if(J[b+12>>2]<=2){Cc(0,-1,796816, +0);break b}J[a>>2]=2;d=Sc(b,2,c,0);b=J[c>>2];if(J[d>>2]-3>>>0>=4294967294){e=O[c+8>>3];d=J[c+8>>2];J[a+60>>2]=1;O[a+40>>3]=(b|0)==1?+(d|0):e;yc(c);break f}if((b|0)==5){J[a+60>>2]=0;yc(c);break f}Cc(0,-1,799411,0);J[a>>2]=1;yc(c);break f}if(!Ic(d,801666)){if(J[b+12>>2]<=2){Cc(0,-1,796816,0);break b}J[a>>2]=3;d=Sc(b,2,c,0);b=J[c>>2];if(J[d>>2]-3>>>0>=4294967294){e=O[c+8>>3];d=J[c+8>>2];J[a+56>>2]=1;O[a+16>>3]=(b|0)==1?+(d|0):e;yc(c);break f}if((b|0)==5){J[a+56>>2]=0;yc(c);break f}Cc(0,-1,799411,0); +J[a>>2]=1;yc(c);break f}if(!Ic(d,802417)){if(J[b+12>>2]<=5){Cc(0,-1,796816,0);break b}J[a>>2]=4;o:{if(J[Sc(b,2,c,0)>>2]-3>>>0>=4294967294){O[a+16>>3]=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];break o}Cc(0,-1,799411,0);J[a>>2]=1}yc(c);if(J[Sc(b,3,c,0)>>2]-3>>>0<=4294967293){Cc(0,-1,799411,0);J[a>>2]=1}O[a+24>>3]=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(b,4,c,0)>>2]-3>>>0<=4294967293){Cc(0,-1,799411,0);J[a>>2]=1}O[a+32>>3]=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);if(J[Sc(b,5,c,0)>>2]-3>>>0<=4294967293){Cc(0, +-1,799411,0);J[a>>2]=1}O[a+40>>3]=J[c>>2]==1?+J[c+8>>2]:O[c+8>>3];yc(c);break f}if(!Ic(d,803275)){if(J[b+12>>2]<=1){Cc(0,-1,796816,0);break b}J[a>>2]=5;break f}if(!Ic(d,804104)){if(J[b+12>>2]<=2){Cc(0,-1,796816,0);break b}J[a>>2]=6;d=Sc(b,2,c,0);b=J[c>>2];if(J[d>>2]-3>>>0>=4294967294){e=O[c+8>>3];d=J[c+8>>2];J[a+60>>2]=1;O[a+40>>3]=(b|0)==1?+(d|0):e;yc(c);break f}if((b|0)==5){J[a+60>>2]=0;yc(c);break f}Cc(0,-1,799411,0);J[a>>2]=1;yc(c);break f}if(Ic(d,804535))break h;if(J[b+12>>2]<=2){Cc(0,-1,796816, +0);break b}J[a>>2]=7;d=Sc(b,2,c,0);b=J[c>>2];if(J[d>>2]-3>>>0>=4294967294){e=O[c+8>>3];d=J[c+8>>2];J[a+56>>2]=1;O[a+16>>3]=(b|0)==1?+(d|0):e;yc(c);break f}if((b|0)==5){J[a+56>>2]=0;yc(c);break f}Cc(0,-1,799411,0);J[a>>2]=1;yc(c);break f}Cc(0,-1,805011,0);break b}J[a>>2]=1}yc(c+16|0);J[a+68>>2]=1;break a}Cc(0,-1,799411,0);yc(c)}yc(c+16|0)}fc=c+32|0;return a|0}function by(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;h=fc-48|0;fc=h;i=J[a+11748>>2]==2;k=i?a+11760| +0:a+11776|0;m=J[k+4>>2];s=1;j=(i?11760:11776)+a|0;o=J[j>>2];n=J[c>>2];g=J[c+4>>2];a:{if(!((o|0)!=(n|0)|(g|0)!=(m|0))){i=0;break a}t=i?a+11752|0:a+11768|0;p=J[t+4>>2];q=o;o=(i?11752:11768)+a|0;i=J[o>>2];u=(e-g|0)+16>>5;q=Wc((q-i|0)+16>>5,u);r=(m-p|0)+16>>5;m=(d-n|0)+16>>5;r=Wc(r,m);if((q|0)==(r|0)){i=0;break a}l=Cd(Wc((n-i|0)+16>>5,u)-Wc((g-p|0)+16>>5,m)|0,q-r|0);i=J[o>>2];i=Wc(l,J[j>>2]-i|0)+i|0;m=J[t+4>>2];n=Wc(l,J[k+4>>2]-m|0);l=J[o>>2];p=J[j>>2];if((l|0)==(p|0)){o=i-l|0;g=o>>31;i=J[a+11700>>2]> +((g^o)-g|0)?l:i}l=m+n|0;g=J[t+4>>2];m=J[k+4>>2];if((g|0)==(m|0)){n=l-g|0;k=n>>31;l=J[a+11700>>2]>((k^n)-k|0)?g:l}k=J[c>>2];if((k|0)==(d|0)){n=i-d|0;g=n>>31;i=J[a+11700>>2]>((g^n)-g|0)?d:i}g=J[c+4>>2];if((g|0)==(e|0)){n=l-e|0;d=n>>31;l=J[a+11700>>2]>((d^n)-d|0)?e:l}e=((k+p|0)/-2|0)+i|0;d=e>>31;d=(d^e)-d|0;e=J[a+11696>>2];if((d|0)>(e|0))break a;g=((g+m|0)/-2|0)+l|0;d=g>>31;if((e|0)<((d^g)-d|0))break a;J[j>>2]=i;J[j+4>>2]=l;s=0}e=J[a+11732>>2];d=J[a+11728>>2];J[h+8>>2]=d;J[h+12>>2]=e;b:{c:{d:switch(J[a+ +11748>>2]-2|0){case 0:j=d;J[h+40>>2]=2;e:{if(f){d=J[a+11764>>2];k=Wc(J[a+11644>>2],J[a+11760>>2]);m=Wc(J[a+11648>>2],d);g=fn(a+3876|0,d);d=k+m|0;k=(Wc(J[J[a>>2]+64>>2],d)+Wc(J[J[a>>2]+72>>2],g)|0)+J[a+11656>>2]|0;break e}d=J[a+11764>>2];k=Wc(J[a+11644>>2],J[a+11760>>2]);m=Wc(J[a+11648>>2],d);g=fn(b,d);d=k+m|0;k=(Wc(J[J[a>>2]+64>>2],d)+Wc(J[J[a>>2]+72>>2],g)|0)+J[a+11656>>2]|0}J[h+16>>2]=k;d=(Wc(J[J[a>>2]+68>>2],d)+Wc(J[J[a>>2]+76>>2],g)|0)+J[a+11660>>2]|0;J[h+20>>2]=d;if((j|0)==(k|0)&(d|0)==(e|0))break b; +e=J[a+4>>2];g=e+4|0;d=h+16|0;break c;case 2:break d;default:break b}J[h+40>>2]=4;d=J[a+11764>>2];e=Wc(J[a+11644>>2],J[a+11760>>2]);j=Wc(J[a+11648>>2],d);d=fn(b,d);e=e+j|0;v=h,w=(Wc(J[J[a>>2]+64>>2],e)+Wc(J[J[a>>2]+72>>2],d)|0)+J[a+11656>>2]|0,J[v+16>>2]=w;e=Wc(J[J[a>>2]+68>>2],e)+Wc(J[J[a>>2]+76>>2],d)|0;d=a+11660|0;J[h+20>>2]=e+J[d>>2];e=J[a+11772>>2];j=Wc(J[a+11644>>2],J[a+11768>>2]);g=Wc(J[a+11648>>2],e);e=fn(b,e);j=g+j|0;v=h,w=(Wc(J[J[a>>2]+64>>2],j)+Wc(J[J[a>>2]+72>>2],e)|0)+J[a+11656>>2]|0, +J[v+24>>2]=w;v=h,w=(Wc(J[J[a>>2]+68>>2],j)+Wc(J[J[a>>2]+76>>2],e)|0)+J[d>>2]|0,J[v+28>>2]=w;e=J[a+11780>>2];j=Wc(J[a+11644>>2],J[a+11776>>2]);g=Wc(J[a+11648>>2],e);e=fn(b,e);j=g+j|0;v=h,w=(Wc(J[J[a>>2]+64>>2],j)+Wc(J[J[a>>2]+72>>2],e)|0)+J[a+11656>>2]|0,J[v+32>>2]=w;v=h,w=(Wc(J[J[a>>2]+68>>2],j)+Wc(J[J[a>>2]+76>>2],e)|0)+J[d>>2]|0,J[v+36>>2]=w;e=J[a+4>>2];g=e+12|0;d=h+32|0}kc[J[g>>2]](e,h+8|0);e=J[d+4>>2];J[a+11728>>2]=J[d>>2];J[a+11732>>2]=e}f:{if(!(f|s))break f;g:{if(f){b=J[c+4>>2];f=Wc(J[a+11644>> +2],J[c>>2])+Wc(J[a+11648>>2],b)|0;b=fn(a+3876|0,b);break g}d=J[c+4>>2];f=Wc(J[a+11644>>2],J[c>>2])+Wc(J[a+11648>>2],d)|0;b=fn(b,d)}v=h,w=(Wc(J[J[a>>2]+64>>2],f)+Wc(J[J[a>>2]+72>>2],b)|0)+J[a+11656>>2]|0,J[v+16>>2]=w;b=(Wc(J[J[a>>2]+68>>2],f)+Wc(J[J[a>>2]+76>>2],b)|0)+J[a+11660>>2]|0;J[h+20>>2]=b;if(J[h+16>>2]==J[a+11728>>2]&(b|0)==J[a+11732>>2])break f;J[h+40>>2]=2;b=J[a+11732>>2];J[h+8>>2]=J[a+11728>>2];J[h+12>>2]=b;b=J[a+4>>2];kc[J[b+4>>2]](b,h+8|0);b=J[h+20>>2];J[a+11728>>2]=J[h+16>>2];J[a+11732>> +2]=b}if(!s){J[c>>2]=i;J[c+4>>2]=l}fc=h+48|0}function MAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-32|0;fc=d;h=J[b>>2];c=J[a>>2];e=c;a:{b:{c:{d:{if(J[c+148>>2]&16){if(J[c+148>>2]&128){e=J[c+40>>2];if(e)break d}if(J[c+148>>2]&16)break c;break b}e=J[e+40>>2];if(!e)break b}if(!(kc[J[J[e>>2]+28>>2]](e)|0))break b;if(kc[J[J[h>>2]+16>>2]](h)|0)kc[J[J[h>>2]+12>>2]](h,2390543,1)|0;b=J[J[a>>2]+40>>2];kc[J[J[b>>2]+20>>2]](b,0,0,0)|0;xX(h,J[J[a>>2]+40>>2],0);break b}e=d+24|0;Fn(e,J[J[a>>2]+108>> +2]);J[699344]=0;da(5278,d+20|0,e|0);e=J[699344];J[699344]=0;e:{f:{g:{if((e|0)!=1){J[699344]=0;e=J[d+20>>2];J[d+12>>2]=0;J[d+16>>2]=J[685894];c=ha(5279,e|0,d+12|0,0,0)|0;f=J[699344];J[699344]=0;h:{if((f|0)==1)break h;i:{if(!c)break i;j:{k:{l:{m:{n:{while(1){J[699344]=0;c=d+12|0;f=ha(5279,e|0,c|0,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break g;if(!f)break i;J[699344]=0;f=pd(c,2416320,-1);g=J[699344];J[699344]=0;if((g|0)==1)break g;o:{p:{if(f){J[699344]=0;c=pd(c,2416325,-1);f=J[699344];J[699344]= +0;if((f|0)==1)break g;if(c)break p}c=J[J[h>>2]+16>>2];J[699344]=0;c=_(c|0,h|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;if(c){c=J[J[h>>2]+12>>2];J[699344]=0;ga(c|0,h|0,2390543,1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g}J[699344]=0;da(5278,d+8|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;c=J[d+12>>2];c=J[(c?c+12|0:2743576)>>2];J[699344]=0;f=J[d+8>>2];ca(5330,f|0,c|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;J[d+4>>2]=0;aa(5145,d+4|0,e|0)|0;c=J[699344];J[699344]=0; +if((c|0)==1)break m;J[699344]=0;c=J[d+4>>2];J[d+28>>2]=0;aa(5145,d+28|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break l;J[699344]=0;ga(5335,J[d+28>>2],c|0,0)|0;c=J[699344];J[699344]=0;q:{if((c|0)!=1){c=J[d+28>>2];J[d+28>>2]=0;if(!c)break q;J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)!=1){if(g)break q;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break q}break a}e=Z()|0;zc(d+28|0);break k}c=J[d+4>>2];J[d+4>>2]=0;r:{if(!c)break r;J[699344]=0;g=J[c+4>>2]- +1|0;J[c+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)==1)break a;if(g)break r;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;$(5332,f|0);c=J[699344];J[699344]=0;if((c|0)==1)break n;c=J[d+8>>2];J[d+8>>2]=0;if(!c)break p;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break p;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}J[699344]=0;$(5332,e|0);c=J[699344];J[699344]=0;if((c|0)!=1)continue;break g}break}e=Z()| +0;break f}e=Z()|0;break j}e=Z()|0;break j}e=Z()|0}zc(d+4|0)}zc(d+8|0);break f}a=J[J[a>>2]+108>>2];J[699344]=0;da(5269,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break h;wc(d+12|0);a=J[d+20>>2];J[d+20>>2]=0;s:{if(!a)break s;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(b)break s;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[d+24>>2];J[d+24>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)!= +1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}e=Z()|0;break f}e=Z()|0;break e}e=Z()|0}wc(d+12|0);zc(d+20|0)}zc(d+24|0);ba(e|0);B()}fc=d+32|0;return}ea(0)|0;Bc();B()}function Oub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+300|0]|K[a+293|0]|(K[a+292|0]|K[a+291|0]))break b;d:{e:{f:{g:{g=K[a+286|0];if(!g){f=K[a+ +287|0];if(!f){if(!(K[a+288|0]|K[a+289|0]))break g;if((c|0)!=32)break a;if(f)break e;break f}if((c|0)!=32)break a;break e}if((c|0)==32)break e;break a}if(!(c&-33))break f;break a}if(K[a+288|0]|K[a+289|0])break e;H[a+309|0]=(c|0)!=0;break d}H[a+296|0]=1}f=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);i=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24); +j=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);k=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);l=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);m=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);n=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);o=f<<24|(f&65280)<<8|(f>>>8& +65280|f>>>24);h:{i:{j:{if(!(K[a+288|0]|(K[a+287|0]|g)))if(!K[a+289|0])break j;k:{if(!K[a+288|0]){f=J[a+512>>2];if(f)break k}f=J[a+528>>2]}f=J[f+88>>2];J[f+1136>>2]=h;J[f+1132>>2]=i;J[f+1128>>2]=j;J[f+1124>>2]=k;J[f+1120>>2]=l;J[f+1116>>2]=m;J[f+1112>>2]=n;J[f+1108>>2]=o;H[f+58|0]=1;break i}if(c){J[a+2224>>2]=h;J[a+2220>>2]=i;J[a+2216>>2]=j;J[a+2212>>2]=k;J[a+2208>>2]=l;J[a+2204>>2]=m;J[a+2200>>2]=n;J[a+2196>>2]=o}f=0;l:{if(!K[a+114|0])break l;p=!c;f=kc[J[a+152>>2]](64)|0;if(!f){Jc(a,1,0,0);f=1;break l}J[f+ +4>>2]=1032;J[f>>2]=1033;g=J[a+700>>2];m:{if(g){J[g+8>>2]=f;break m}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+60>>2]=h;J[f+56>>2]=i;J[f+52>>2]=j;J[f+48>>2]=k;J[f+44>>2]=l;J[f+40>>2]=m;J[f+36>>2]=n;J[f+32>>2]=o;H[f+28|0]=p;f=0}if(f)break h}n:{if(!K[a+112|0])break n;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break h;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break n;b=K[d|0]|K[d+1|0]<< +8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+44>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[a+48>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[a+52>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b= +K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);J[a+56>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);J[a+60>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+28|0]|K[d+29|0]<<8|(K[d+30|0]<<16|K[d+31|0]<<24);J[b+64>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}f=0}return f|0}Jc(a,1029,0,0);return 1029}Jc(a,1028,0,0);return 1028}function e1(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0;l=fc+-64|0;fc=l;a:{if(J[a+292>>2])break a;g=J[a+36>>2]; +if((J[g+20>>2]-J[g+16>>2]|0)>249)break a;Rd(a)}g=J[a+36>>2];i=J[g+16>>2];b:{if(!(K[i|0]==60&K[i+1|0]==47)){if(J[a+172>>2]==-1?J[a+212>>2]:0)break b;J[a+84>>2]=74;J[l+48>>2]=15096;Hc(0,0,0,a,0,1,74,3,0,0,0,0,32906,l+48|0);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}J[a+200>>2]=J[a+200>>2]+2;J[g+16>>2]=i+2;J[g+32>>2]=J[g+32>>2]+2;i=K[i+2|0];if((i|0)==37){Yd(a);g=J[a+36>>2];i=K[J[g+16>>2]]}c:{if(i&255)break c;if((Nd(g)|0)>0)break c;while(1){h=J[a+40>>2];if((h|0)<2)break c;d:{e:{f:{if(!J[693384]){k= +h-1|0;J[a+40>>2]=k;g=J[a+48>>2];break f}J[l+32>>2]=h;g=0;kc[J[663297]](J[693366],36125,l+32|0);h=J[a+40>>2];if((h|0)<=0)break d;k=h-1|0;J[a+40>>2]=k;g=J[a+48>>2];j=0;i=0;if((h|0)==1)break e}j=k;i=J[((h<<2)+g|0)-8>>2]}J[a+36>>2]=i;i=(j<<2)+g|0;g=J[i>>2];J[i>>2]=0}th(g);g=J[a+36>>2];if(K[J[g+16>>2]])break c;if((Nd(g)|0)<=0)continue;break}}g:{h:{i:{j=(f|0)<=0;if(j)break i;g=J[a+36>>2];i=J[g+16>>2];m=J[g+20>>2]-i|0;if(m>>>0>>0)break i;g=0;k=J[a+184>>2];j:if(!(j|(k|0)==(i|0))){g=-1;if(!i)break j;g= +1;if(!k)break j;g=ud(i,k,f)}if(g)break i;h=1;g=J[a+36>>2];i=J[g+16>>2];if(!(K[i+f|0]!=62|f>>>0>=m>>>0)){d=f+1|0;J[g+16>>2]=d+i;J[g+32>>2]=d+J[g+32>>2];break g}J[g+16>>2]=f+i;J[g+32>>2]=J[g+32>>2]+f;break h}i=J[a+184>>2];if(!b){h=h1(a,i);break h}k=J[a+36>>2];if(!(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249)){Rd(a);k=J[a+36>>2]}k:{g=J[k+16>>2];h=K[g|0];l:{if(!h)break l;f=b;while(1){j=K[f|0];if((j|0)==(h&255)){f=f+1|0;h=K[g+1|0];g=g+1|0;if(h)continue;break l}break}if(j|(h&255)!=58)break l;f=g+1|0;h=K[g+ +1|0];m:{n:{if(!h){g=i;break n}g=i;while(1){j=K[g|0];if((j|0)!=(h&255))break m;g=g+1|0;h=K[f+1|0];f=f+1|0;if(h)continue;break}}j=K[g|0];h=0}if(j&255)break l;g=h&255;j=g-9|0;if((1<>>0<=23:0)|(g|0)==62)break k}f=wK(a,l+60|0);h=(f|0)==(i|0)?J[l+60>>2]==(b|0)?1:f:f;break h}J[k+16>>2]=f;h=1}o:{if(J[a+292>>2])break o;f=J[a+36>>2];if((J[f+20>>2]-J[f+16>>2]|0)>249)break o;Rd(a)}if(J[a+172>>2]==-1)break b;be(a);f=J[a+36>>2];g=J[f+16>>2];p:{if(K[g|0]!=62){if(J[a+172>>2]==-1?J[a+212>>2]:0)break p; +J[a+84>>2]=73;J[l+16>>2]=29287;Hc(0,0,0,a,0,1,73,3,0,0,0,0,32906,l+16|0);J[a+12>>2]=0;if(J[a+288>>2])break p;J[a+212>>2]=1;break p}J[f+16>>2]=g+1;J[f+32>>2]=J[f+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(K[g+1|0])break p;Nd(f)}if((h|0)==1)break g;f=h?h:14322;q:{if(d)break q;d=J[a+52>>2];if(!d){d=0;break q}d=L[d+56>>1]}hC(a,76,32636,J[a+184>>2],d,f)}d=J[a>>2];r:{if(!d)break r;d=J[d+120>>2];if(J[a+212>>2]|!d)break r;kc[d|0](J[a+4>>2],J[a+184>>2],b,c)}b=J[a+236>>2];if((b|0)>0){d=b-1|0;J[a+236>>2]=d;c=J[a+ +244>>2];J[a+232>>2]=(b|0)==1?c:(c+(b<<2)|0)-8|0;J[c+(d<<2)>>2]=-1}if(!e|!J[a+336>>2])break b;h=J[a+328>>2];if((h|0)<(e|0)){J[l>>2]=e;kc[J[663297]](J[693366],36649,l);h=J[a+328>>2];e=h}if((h|0)<=0|(e|0)<=0)break b;if(e>>>0>=4){c=e&-4;f=0;while(1){b=h<<2;J[(b+J[a+336>>2]|0)-4>>2]=0;J[(b+J[a+336>>2]|0)-8>>2]=0;J[(b+J[a+336>>2]|0)-12>>2]=0;h=h-4|0;J[J[a+336>>2]+(h<<2)>>2]=0;f=f+4|0;if((c|0)!=(f|0))continue;break}}b=e&3;if(b){g=0;while(1){h=h-1|0;J[J[a+336>>2]+(h<<2)>>2]=0;g=g+1|0;if((b|0)!=(g|0))continue; +break}}J[a+328>>2]=h}fc=l- -64|0}function p1a(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;m=J[a+20>>2];d=J[a+16>>2];k=J[a+12>>2];h=J[a+8>>2];g=J[a+4>>2];j=J[g+8>>2];n=K[j+68|0];l=K[j+67|0];r=K[j+66|0];i=K[j+65|0];a:{b:{c:{p=K[j+64|0];if(p){if(i&255)break c;c=0;break a}if(i&255)break b;c=2;break a}c=1;break a}c=3}while(1){d:{e:{f:{g:{h:{i:{j:{k:{l:{m:switch(c|0){case 0:i=0;if(h>>>0>=k>>>0|d>>>0>=m>>>0)break d;q=(l<<24>>24<<2)+j|0;while(1){c=K[h|0];if(c>>> +0<32)break d;h=h+1|0;n:{if(c<<24>>24>=0){I[d>>1]=c;d=d+2|0;break n}c=J[q>>2]+(c&127)|0;if(c>>>0<=65535){I[d>>1]=c;d=d+2|0;break n}I[d>>1]=(c>>>10|0)-10304;f=c&1023|-9216;c=d+2|0;if(m>>>0<=c>>>0)break l;I[d+2>>1]=f;d=d+4|0}if(h>>>0>=k>>>0)break d;if(d>>>0>>0)continue;break}break d;case 1:if(h>>>0>=k>>>0){c=d;break g}o:{p:{q:{r:{s:{t:{u:{if(d>>>0>>0){q=g+37|0;t=g+38|0;c=h;while(1){h=c+1|0;s=2;f=t;o=2;e=K[c|0];c=e;v:{w:{x:switch(i&255){case 4:c=e&31;o=5;l=e>>>5|0;break w;case 6:break o;case 5:break p; +case 3:break q;case 2:break r;case 1:break w;case 0:break x;default:break v}if(1<>>0<=15){if(e>>>0>=9){o=4;s=1;f=q;c=n;A:switch(e-11|0){case 4:break j;case 0:break w;case 3:break A;default:break s}o=1;break y}r=e-1|0;o=3;break z}if(e>>>0<24)break t;l=e-24|0;o=6}s=1}f=q;c=n}H[f|0]=e;H[g+36|0]=s;i=o;n=c}c=h;if((k|0)!=(c|0))continue;break}break h}J[b>>2]=15;c=d;break g}I[d>>1]=e;d=d+2|0;break k}l=e-16|0;break k}J[b>>2]=12;H[g+36|0]=1;H[g+37|0]=e;break i}I[d>>1]=n<<8|e;d=d+ +2|0;break k}c=r<<24>>24;if(e<<24>>24>=0){I[d>>1]=J[(c<<2)+753488>>2]+e;d=d+2|0;break k}c=J[(c<<2)+j>>2]+(e&127)|0;if(c>>>0<=65535){I[d>>1]=c;d=d+2|0;break k}I[d>>1]=(c>>>10|0)-10304;f=c&1023|-9216;c=d+2|0;if(m>>>0>c>>>0){I[d+2>>1]=f;d=d+4|0;break k}H[g+65|0]=1;I[g+116>>1]=f;J[b>>2]=15;i=3;break g}J[(l<<24>>24<<2)+j>>2]=((n&255)<<15|e<<7)+65536;break k}B:{if(!e){H[g+36|0]=2;H[g+38|0]=0;break B}C:{f=(l<<24>>24<<2)+j|0;c=e<<7;D:{if(e>>>0<=103)break D;c=c+44032|0;if((e-104&255)>>>0<=63)break D;if(e>>> +0<249)break C;c=J[(e<<2)+752524>>2]}J[f>>2]=c;break k}H[g+36|0]=2;H[g+38|0]=e}i=6;c=d;break g;case 2:i=0;c=h+1|0;E:{if(k>>>0<=c>>>0|d>>>0>=m>>>0)break E;while(1){f=K[h|0];if((f+13&255)>>>0>236)break E;I[d>>1]=K[c|0]|f<<8;f=h+2|0;d=d+2|0;c=h+3|0;if(k>>>0>c>>>0){h=f;if(d>>>0>>0)continue}break}h=f}c=3;continue;default:break m}p=0;if(h>>>0>=k>>>0){c=d;break g}F:{G:{if(d>>>0>>0){c=h;while(1){h=c+1|0;c=K[c|0];H:{I:{J:{K:switch(i&255){case 1:H[g+38|0]=c;i=2;f=2;break J;case 2:break F;case 0:break K; +default:break H}f=c+32|0;if((f&255)>>>0<=18){if(c>>>0<232){p=1;l=f;break k}if(c>>>0<240)break f;if((c|0)!=240){if((c|0)!=241)break G;i=4;break e}H[g+37|0]=240;f=1;i=1;break I}H[g+37|0]=c;i=2;f=1}n=c}H[g+36|0]=f}c=h;if((k|0)!=(c|0))continue;break}break h}J[b>>2]=15;c=d;break g}J[b>>2]=12;H[g+36|0]=1;H[g+37|0]=c;break i}I[d>>1]=c|n<<8;d=d+2|0;break j}H[g+65|0]=1;I[g+116>>1]=f;J[b>>2]=15;break g}c=0;continue}c=2;continue}i=0;c=d;break g}c=d;h=k}b=J[b>>2];L:{if((b|0)>0){d=0;if((b|0)!=15)break L}d=i;if(d& +255)break L;d=0;H[g+36|0]=0}H[j+68|0]=n;H[j+67|0]=l;H[j+66|0]=r;H[j+65|0]=d;H[j+64|0]=p;J[a+16>>2]=c;J[a+8>>2]=h;return}l=c+24|0;i=6}p=1;H[g+36|0]=1;H[g+37|0]=c}c=1;continue}}function CZa(a){a=a|0;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;f=fc-32|0;fc=f;a:{b:{c:{d:{e:{b=J[a+16>>2];if(b>>>0>=256){J[a+16>>2]=b-256;b=J[a+4>>2];i=J[b>>2];c=b+4|0;J[a+4>>2]=c;b=J[a+8>>2];f:{if((b|0)!=J[a+12>>2]){d=b;break f}g=J[a>>2];if(g>>>0>>0){e=((c-g>>2)+1|0)/-2<<2;b=b-c|0;d=cd(e+c|0,c,b)+b|0;J[a+ +8>>2]=d;J[a+4>>2]=e+J[a+4>>2];break f}d=(b|0)==(g|0)?1:b-g>>1;if(d>>>0>=1073741824)break e;e=d<<2;h=vc(e);k=e+h|0;e=h+(d&-4)|0;d=e;g:{if((b|0)==(c|0))break g;j=b-c|0;l=j-4|0;m=(l>>>2|0)+1&7;h:{if(!m){b=d;break h}d=0;b=e;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}d=e+j|0;if(l>>>0<28)break g;while(1){J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>> +2];c=c+32|0;b=b+32|0;if((d|0)!=(b|0))continue;break}}J[a+12>>2]=k;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=h;if(!g)break f;uc(g);d=J[a+8>>2]}J[d>>2]=i;J[a+8>>2]=J[a+8>>2]+4;break a}c=J[a+8>>2];k=J[a+4>>2];g=c-k|0;d=g>>2;b=J[a+12>>2];e=J[a>>2];h=b-e|0;if(d>>>0>2>>>0){if((b|0)!=(c|0)){n=f,o=vc(4096),J[n+12>>2]=o;yM(a,f+12|0);break a}n=f,o=vc(4096),J[n+12>>2]=o;Ku(a,f+12|0);b=J[a+4>>2];i=J[b>>2];c=b+4|0;J[a+4>>2]=c;b=J[a+8>>2];i:{if((b|0)!=J[a+12>>2]){d=b;break i}g=J[a>>2];if(g>>>0>>0){e=((c-g>>2)+1|0)/ +-2<<2;b=b-c|0;d=cd(e+c|0,c,b)+b|0;J[a+8>>2]=d;J[a+4>>2]=e+J[a+4>>2];break i}d=(b|0)==(g|0)?1:b-g>>1;if(d>>>0>=1073741824)break e;e=d<<2;h=vc(e);k=e+h|0;e=h+(d&-4)|0;d=e;j:{if((b|0)==(c|0))break j;j=b-c|0;l=j-4|0;m=(l>>>2|0)+1&7;k:{if(!m){b=d;break k}d=0;b=e;while(1){J[b>>2]=J[c>>2];c=c+4|0;b=b+4|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}d=e+j|0;if(l>>>0<28)break j;while(1){J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[b+12>>2]=J[c+12>>2];J[b+16>>2]=J[c+16>>2];J[b+20>>2]=J[c+20>>2];J[b+ +24>>2]=J[c+24>>2];J[b+28>>2]=J[c+28>>2];c=c+32|0;b=b+32|0;if((d|0)!=(b|0))continue;break}}J[a+12>>2]=k;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=h;if(!g)break i;uc(g);d=J[a+8>>2]}J[d>>2]=i;J[a+8>>2]=J[a+8>>2]+4;break a}J[f+28>>2]=a+12;h=(b|0)==(e|0)?1:h>>1;if(h>>>0>=1073741824)break e;i=h<<2;e=vc(i);J[f+12>>2]=e;J[699344]=0;b=e+(d<<2)|0;J[f+20>>2]=b;J[f+24>>2]=e+i;J[f+16>>2]=b;i=_(4,4096)|0;j=J[699344];J[699344]=0;if((j|0)==1)break c;l:{if((d|0)!=(h|0))break l;if((g|0)>0){b=((d+1|0)/-2<<2)+b|0;J[f+16>>2]=b; +break l}d=(c|0)==(k|0)?1:g>>1;if(d>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)==1)break d;B()}J[699344]=0;c=d<<2;b=_(4,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;J[f+12>>2]=b;J[f+24>>2]=b+c;b=b+(d&-4)|0;J[f+16>>2]=b;uc(e);c=J[a+8>>2]}J[b>>2]=i;J[f+20>>2]=b+4;while(1){if(J[a+4>>2]==(c|0)){d=J[a>>2];J[a>>2]=J[f+12>>2];J[f+12>>2]=d;J[a+4>>2]=J[f+16>>2];J[f+16>>2]=c;b=J[a+8>>2];J[a+8>>2]=J[f+20>>2];J[f+20>>2]=b;e=J[a+12>>2];J[a+12>>2]=J[f+24>>2];J[f+24>>2]=e;if((b|0)!= +(c|0))J[f+20>>2]=b+((c-b|0)+3&-4);if(!d)break a;uc(d);break a}J[699344]=0;c=c-4|0;da(3366,f+12|0,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}c=Z()|0;a=J[f+20>>2];b=J[f+16>>2];if((a|0)==(b|0))break b;J[f+20>>2]=a+((b-a|0)+3&-4);break b}Pd();B()}c=Z()|0;uc(i);break b}c=Z()|0}a=J[f+12>>2];if(a)uc(a);ba(c|0);B()}fc=f+32|0}function T1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=fc-16|0;fc=g;f=J[b>>2];c=f;a:{while(1){b:{e=K[c|0];d=(e&223)-65|0;c:{if((e-48&255)>>>0<10|(d&255)>>>0<26)break c; +d:switch(e-33|0){case 31:break b;case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 62:case 93:break c;case 4:break d;default:break a}e:{d=K[c+1|0];if((d-48&255)>>>0<10)break e;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break e;default:break a}}d=K[c+2|0];if((d-48&255)>>>0<10)break c;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break c; +default:break a}}c=((e|0)==37?3:1)+c|0;continue}break}f:{if(!a)break f;e=J[a+16>>2];if(e)kc[J[663199]](e);d=c-f|0;g:{if(K[a+36|0]&2){e=0;if(!f|(d|0)<0)break g;e=kc[J[663198]](d+1|0)|0;if(!e){e=0;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break g}j=xc(e,f,d)+d|0,k=0,H[j|0]=k;break g}e=Wo(f,d)}J[a+16>>2]=e;if(K[c|0]==64)break f;f=J[b>>2];break a}f=c+1|0}h:{i:{j:{k:{e=K[f|0];l:{if((e|0)==91){e=f;while(1){c=e;d=K[c+1|0];if(!d)break k;e=c+1|0;if((d|0)!=93)continue;break}J[g+12>>2]=c+2;break l}m:{if((e-48&255)>>> +0>9)break m;c=K[f+1|0];d=f+1|0;n:{if((c-48&255)>>>0>9)break n;if((e|0)==48)break m;d=K[f+2|0];if((d-48&255)>>>0>9){c=d;d=f+2|0;break n}o:switch(e-49|0){case 1:if((c&255)>>>0>53)break m;break;case 0:break o;default:break m}c=K[f+3|0];d=f+3|0}if((c&255)!=46)break m;c=d;J[g+12>>2]=c+1;d=K[c+1|0];if((d-48&255)>>>0>9)break m;i=K[c+2|0];h=c+2|0;p:{if((i-48&255)>>>0>9)break p;if((d|0)==48)break m;h=c+3|0;if((K[c+3|0]-48&255)>>>0>9)break p;q:switch(d-49|0){case 0:h=c+4|0;break p;case 1:break q;default:break m}c= +c+4|0;h=c;if(i>>>0<=52)break p;if((i|0)!=53)break m;h=c}d=h;J[g+12>>2]=d;if(K[d|0]!=46)break m;if(L1(g+12|0)|K[J[g+12>>2]]!=46)break m;if(!L1(g+12|0))break l}c=f;while(1){r:{s:{if((e-48&255)>>>0<10|((e&-33)-65&255)>>>0<26)break s;t:switch((e&255)-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 26:case 28:case 62:case 93:break s;case 4:break t;default:break r}u:{d=K[c+1|0];if((d-48&255)>>>0<10)break u;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break u; +default:break r}}d=K[c+2|0];if((d-48&255)>>>0<10)break s;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break s;default:break r}}c=((e&255)==37?3:1)+c|0;e=K[c|0];continue}break}J[g+12>>2]=c}if(!a){d=J[g+12>>2];break i}c=J[a+8>>2];if(c)kc[J[663199]](c);J[a+8>>2]=0;c=J[a+12>>2];if(c)kc[J[663199]](c);d=J[g+12>>2];if((f|0)!=(d|0)){e=d-f|0;if(!(K[a+36|0]&2))break j;c=0;if((e|0)>=0){c=kc[J[663198]](e+1|0)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029, +0);J[a+12>>2]=0;break i}c=xc(c,f,e);H[e+c|0]=0}J[a+12>>2]=c;break i}J[a+12>>2]=0;d=f;break i}f=1;break h}j=a,k=Wo(f,e),J[j+12>>2]=k}v:{if(K[d|0]!=58)break v;e=K[d+1|0];f=1;if((e-48&255)>>>0>9)break h;c=d+1|0;f=0;while(1){f=(P(f,10)+(e&255)|0)-48|0;e=K[c+1|0];d=c+1|0;c=d;if((e-48&255)>>>0<10)continue;break}if(!a)break v;J[a+20>>2]=f&2147483647}J[b>>2]=d;f=0}fc=g+16|0;return f}function Szb(a){a=a|0;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;f=J[a+572>>2];b=J[a+664>>2];a:{if((f|0)<(b|0)|(f| +0)>=J[a+668>>2])break a;f=kc[J[a+220>>2]](a,J[a+680>>2]+(f-b|0)|0)|0;c=kc[J[a+228>>2]](a,(J[a+680>>2]+J[a+572>>2]|0)-J[a+664>>2]|0)|0;d=f;f=J[a+580>>2];e=J[a+672>>2];d=(d+(f<<1)|0)+(e<<1)|0;b=J[a+656>>2];j=b+f|0;b=(b|0)/J[a+584>>2]|0;f=e+(c+f|0)|0;c=J[a+660>>2];e=K[a+649|0];h=J[a+644>>2];b:{if(!K[a+648|0]){b=h+(b<<2)|0;if(!e)break b;if((c|0)<=(j|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;H[f|0]=K[b+3|0];b=b+4|0;c=J[a+584>>2];f=c+f|0;d=(c<<1)+d|0;j=c+j| +0;if((j|0)>2])continue;break}break a}b=h+(b<<3)|0;if(e){if((c|0)<=(j|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;H[f|0]=K[b+6|0];b=b+8|0;c=J[a+584>>2];f=c+f|0;d=(c<<1)+d|0;j=c+j|0;if((j|0)>2])continue;break}break a}if((c|0)<=(j|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{d:{if((c|0)!=65535){e=K[f|0];e=e<<8|e;if(e)break d}H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;c=K[b+6|0];break c}if((e| +0)==65535){e=K[b+4|0]|K[b+5|0]<<8;h=K[b+2|0]|K[b+3|0]<<8;k=P(c,(h<<8|h>>>8)&65535);h=K[d|0];i=K[d+1|0];g=h>>>3&28|i<<5;l=g<<8&64512|g;g=c^65535;k=(k+P(l,g)|0)+32768|0;k=(k>>>16|0)+k|0;l=K[b|0]|K[b+1|0]<<8;h=(P(c,(l<<8|l>>>8)&65535)+P(g,h<<11&63488|h<<3)|0)+32768|0;H[d+1|0]=k>>>29|(h>>>16|0)+h>>>24&248;e=(P((e<<8|e>>>8)&65535,c)+P(P(g,i&248),257)|0)+32768|0;H[d|0]=k>>>21&224|(e>>>16|0)+e>>>27;c=c>>>8|0;break c}h=K[b+4|0]|K[b+5|0]<<8;i=c^65535;k=P(i,e^65535)^-1;l=k>>>16|0;c=(c<<16>>>0)/(l>>>0)|0;g= +K[b+2|0]|K[b+3|0]<<8;m=P(c,(g<<8|g>>>8)&65535);e=(P(e,i)>>>0)/(l>>>0)|0;g=K[d|0];l=K[d+1|0];i=g>>>3&28|l<<5;i=(m+P(e,i<<8&64512|i)|0)+32767|0;m=P(e,g<<11&63488|g<<3);g=K[b|0]|K[b+1|0]<<8;H[d+1|0]=i>>>29|(m+P(c,(g<<8|g>>>8)&65535)|0)+32767>>>24&248;H[d|0]=i>>>21&224|(P(P(e,l&248),257)+P(c,(h<<8|h>>>8)&65535)|0)+32767>>>27;c=k>>>24|0}H[f|0]=c}b=b+8|0;c=J[a+584>>2];f=c+f|0;d=(c<<1)+d|0;j=c+j|0;if((j|0)>2])continue;break}break a}if((c|0)<=(j|0))break a;while(1){c=K[b+3|0];if(c){e:{f:{if((c|0)!= +255){e=K[f|0];if(e)break f}H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;c=K[b+3|0];break e}if((e|0)==255){h=K[b+2|0];e=c^255;g=K[d+1|0];i=K[d|0];k=(P(K[b+1|0],c)+P(e,(g<<5|i>>>3)&252)|0)+128|0;k=(k>>>8&255)+k|0;g=(P(e,g&248)+P(K[b|0],c)|0)+128|0;H[d+1|0]=k>>>13&7|(g>>>8&255)+g>>>8&248;e=(P(e,i<<3&248)+P(c,h)|0)+128|0;H[d|0]=(e>>>8&255)+e>>>11&31|k>>>5&224;break e}g=K[b+2|0];h=c<<8;i=c^255;c=P(i,e^255)>>>8^-1;k=c&255;h=(h>>>0)/(k>>>0)|0;e=(P(e,i)>>>0)/(k>>>0)|0;i=(P(h,K[b+1| +0])+P(e,K[d+1|0])|0)+127|0;H[d+1|0]=i>>>13&7|(P(h,K[b|0])+P(e,K[d|0])|0)+127>>>8&248;H[d|0]=(P(h,g)+P(e,K[d+2|0])|0)+127>>>11&31|i>>>5&224}H[f|0]=c}b=b+4|0;c=J[a+584>>2];f=c+f|0;d=(c<<1)+d|0;j=c+j|0;if((j|0)>2])continue;break}}f=J[a+680>>2]+J[a+572>>2]|0;b=J[a+664>>2];d=J[a+556>>2];j=J[a+672>>2];g:{if((j|0)>=J[a+552>>2]){if(d)break g;d=0}J[a+552>>2]=j}c=d;d=J[a+676>>2];if((c|0)<(d|0))J[a+556>>2]=d;d=J[a+564>>2];f=f-b|0;h:{if((f|0)>=J[a+560>>2]){if(d)break h;d=0}J[a+560>>2]=f}if((d|0)<=(f| +0))J[a+564>>2]=f+1;return 0}function YB(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;f=fc-80|0;fc=f;J[f+64>>2]=13;J[f+48>>2]=13;J[f+32>>2]=13;J[f+16>>2]=13;J[f>>2]=13;jf(b,J[J[a>>2]+24>>2],f- -64|0,0);a:{if(J[f+64>>2]!=7){Cc(1,-1,785395,0);break a}if(J[Ec(J[f+72>>2],786188,f+48|0,0)>>2]==6)while(1){d=J[f+56>>2];g=J[d+12>>2];if((g|0)<=(e|0)){e=0;if((g|0)>0)while(1){b=f+32|0;tg(d,e,b);YB(a,b);yc(b);e=e+1|0;d=J[f+56>>2];if((e|0)>2])continue;break}yc(f+48|0);break a}g=0;Sc(d,e, +f+16|0,0);if(J[f+16>>2]==7){g=J[Ec(J[f+24>>2],787015,f,0)>>2]==5;yc(f)}e=e+1|0;yc(f+16|0);if(!g)continue;break}yc(f+48|0);e=0;c=fc+-64|0;fc=c;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;o=b;l=a;jf(b,J[J[a>>2]+24>>2],c+48|0,0);a=J[Ec(J[c+56>>2],788183,c,0)>>2];b=vc(12);b:{c:{d:{if((a|0)==3){J[699344]=0;aa(3354,b|0,J[c+8>>2])|0;a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=b;b=Z()|0;break c}J[699344]=0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;a=J[699344];J[699344]=0;if((a|0)!=1)break d;a=b;b=Z()| +0;break c}yc(c);m=1;e:{if(J[Ec(J[c+56>>2],789035,c,0)>>2]!=4)break e;m=0;a=vc(8);J[699344]=0;h=aa(3349,a|0,J[c+8>>2])|0;d=J[699344];J[699344]=0;if((d|0)!=1)break e;b=Z()|0;break c}yc(c);d=J[Ec(J[c+56>>2],789827,c,0)>>2];a=J[c+8>>2];yc(c);Ec(J[c+56>>2],787015,c+32|0,0);d=(d|0)==1;i=d?a:0;f:{if(J[c+32>>2]!=7)break f;d=d&(a|0)!=0;while(1){if(J[Ec(J[c+40>>2],788183,c,0)>>2]==3){if(J[b+4>>2])SZ(b);NI(b,J[c+8>>2])}yc(c);if(!h){h=0;g:{if(J[Ec(J[c+40>>2],789035,c,0)>>2]!=4)break g;a=vc(8);J[699344]=0;h=aa(3349, +a|0,J[c+8>>2])|0;g=J[699344];J[699344]=0;if((g|0)!=1)break g;b=Z()|0;break c}yc(c)}if(d)d=1;else{a=Ec(J[c+40>>2],789827,c,0);d=J[c+8>>2];a=J[a>>2]==1;i=a?d:i;yc(c);d=a&(d|0)!=0}Ec(J[c+40>>2],787015,c+16|0,0);yc(c+32|0);a=J[c+28>>2];J[c+40>>2]=J[c+24>>2];J[c+44>>2]=a;g=J[c+20>>2];a=J[c+16>>2];J[c+32>>2]=a;J[c+36>>2]=g;if((a|0)!=7)break f;a=e>>>0<49;e=e+1|0;if(a)continue;break}}yc(c+32|0);h:{i:{j:{if(!h){Cc(1,-1,790780,0);break j}k:{if(!J[l+36>>2]){e=0;break k}e=fc-16|0;fc=e;d=vc(8);J[699344]=0;a=_(3351, +d|0)|0;g=J[699344];J[699344]=0;l:{if((g|0)!=1){if(J[b+4>>2]>0)while(1){d=e+8|0;kf(a,d,QZ(J[J[b>>2]+(j<<2)>>2],d,8));j=j+1|0;if((j|0)>2])continue;break}fc=e+16|0;break l}a=Z()|0;uc(d);ba(a|0);B()}g=a;k=J[a>>2];if((k|0)>0){a=0;while(1){e=a+1|0;j=(e|0)<(k|0)?k:e;n=J[g+4>>2];e=a;m:{while(1){d=e+1|0;if(K[e+n|0]==46)break m;e=d;if((j|0)!=(d|0))continue;break}d=j}n:{if(K[a+n|0]!=35){a=d;break n}Sm(g,a,d-a|0);k=J[g>>2]}if((a|0)<(k|0))continue;break}}e=Qk(J[J[l+36>>2]+4>>2],g);uc(Zc(g))}o:{p:{if(!Dd(h, +791539)){d=0;if(i&65536)break p;d=i&32768?1:2;break p}if(!Dd(h,792183)){if(e){d=6;if(J[e+20>>2])break p}d=3;if(i&1048576)break p;d=i&4096?4:5;break p}d=i&131072?7:8;if(!Dd(h,793283))break p;if(Dd(h,794008))break o;d=9}uc(Zc(h));a=vc(64);J[a+24>>2]=13;J[a+8>>2]=13;J[a>>2]=l;J[699344]=0;aa(3448,o|0,a+8|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;J[699344]=0;aa(3448,c+48|0,a+24|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;J[a+56>>2]=e;J[a+52>>2]=m;J[a+48>>2]=i;J[a+44>>2]=b;J[a+40>>2]=d;break i}Cc(1, +-1,794725,0);uc(Zc(h))}uc(ld(b));a=0}yc(c+48|0);fc=c- -64|0;break b}b=Z()|0}uc(a);ba(b|0);B()}if(!a)break a;sd(J[l+32>>2],a)}yc(f- -64|0);fc=f+80|0}function aA(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=Q(0);d=fc-240|0;fc=d;g=Sf(a,L[b>>1]);a:{b:{c:{c=J[b+4>>2];if(c>>>0>=2){d:{e:{f:{g:switch(L[b+2>>1]-1|0){case 0:case 5:c=bh(a,c,1,92256);if(!c)break a;e=_G(a,b,c);break e;case 2:case 7:c=bh(a,c,2,92256);if(!c)break a;e=J[b+4>>2];if(e>>>0>2)break f;if(L[a+456>>1]==19789){h:{i:switch(e-1|0){case 0:f=J[b+8>>2]; +break h;case 1:break i;default:break b}f=J[b+8>>2];I[c+2>>1]=f}I[c>>1]=f>>>16;break b}j:switch(e-1|0){case 1:break j;case 0:break d;default:break b}e=J[b+8>>2];I[c+2>>1]=e>>>16;I[c>>1]=e;break b;case 3:case 8:c=bh(a,c,4,92256);if(!c)break a;if(J[b+4>>2]==1){J[c>>2]=J[b+8>>2];break b}e=(ci(a,b,c)|0)!=0;break e;case 4:case 9:c=bh(a,c,4,92256);if(!c)break a;e=oU(a,b,c);break e;case 10:c=bh(a,c,4,92256);if(!c)break a;if(J[b+4>>2]==1){N[c>>2]=N[b+8>>2];break b}e=(ci(a,b,c)|0)!=0;break e;case 11:c=bh(a, +c,8,92256);if(!c)break a;e=(ci(a,b,c)|0)!=0;break e;case 1:case 6:break g;default:break a}c=bh(a,c+1|0,1,92256);if(!c)break a;e=J[b+4>>2];if(e>>>0<=4){J[d+232>>2]=J[b+8>>2];f=d+232|0;if(K[a+12|0]&128){Rp(f);e=J[b+4>>2]}Ue(c,f,e);break c}if(ci(a,b,c))break c;uc(c);break a}e=ci(a,b,c)}if(e)break b;uc(c);break a}I[c>>1]=J[b+8>>2];break b}if(!c){f=J[a>>2];e=J[a+628>>2];c=J[Sf(a,L[b>>1])+16>>2];a=J[b+4>>2];J[d+40>>2]=1;J[d+36>>2]=a;J[d+32>>2]=c;le(e,f,82731,d+32|0);f=0;break a}k:{l:{m:{n:{o:{e=L[b+2>> +1];switch(e-1|0){case 1:case 6:break k;case 11:break l;case 4:case 9:case 10:break m;case 3:case 8:break n;case 0:case 2:case 5:case 7:break o;default:break a}}p:switch(J[g+8>>2]-4|0){case 0:case 5:break n;default:break p}c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+464>>2]+(e<<2)>>2]|0;c=J[J[a+468>>2]+(e<<2)>>2]&c;I[d+232>>1]=c;b=L[b>>1];if(K[g+15|0]){J[d+64>>2]=1;J[d+68>>2]=d+232;f=ke(a,b,d- -64|0);break a}J[d+48>>2]=c&65535;f=ke(a,b,d+48|0);break a}c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+ +464>>2]+(e<<2)>>2]|0;c=J[J[a+468>>2]+(e<<2)>>2]&c;J[d+232>>2]=c;b=L[b>>1];if(K[g+15|0]){J[d+96>>2]=1;J[d+100>>2]=d+232;f=ke(a,b,d+96|0);break a}J[d+80>>2]=c;f=ke(a,b,d+80|0);break a}q:{if((e|0)==11){c=J[b+8>>2];if(L[a+456>>1]==19789)c=c>>>J[J[a+464>>2]+44>>2]|0;J[d+228>>2]=J[J[a+468>>2]+44>>2]&c;Ue(d+232|0,d+228|0,4);i=N[d+232>>2];break q}i=Q(1);if(!ci(a,b,d+232|0))break q;h=J[d+232>>2];c=J[d+236>>2];if(c){if(L[b+2>>1]==5){i=Q(Q(h>>>0)/Q(c>>>0));break q}i=Q(Q(h|0)/Q(c|0));break q}f=J[a>>2];e=J[a+ +628>>2];c=J[Sf(a,L[b>>1])+16>>2];J[d+148>>2]=h;J[d+144>>2]=c;Uc(e,f,88361,d+144|0)}N[d+224>>2]=i;b=L[b>>1];if(K[g+15|0]){J[d+128>>2]=1;J[d+132>>2]=d+224;f=ke(a,b,d+128|0);break a}O[d+112>>3]=i;f=ke(a,b,d+112|0);break a}c=d+232|0;if(!ci(a,b,c))break a;b=L[b>>1];r:{if(K[g+15|0]){J[d+176>>2]=1;J[d+180>>2]=c;a=ke(a,b,d+176|0);break r}O[d+160>>3]=O[d+232>>3];a=ke(a,b,d+160|0)}f=(a|0)!=0;break a}J[d+232>>2]=J[b+8>>2];e=d+228|0;c=d+232|0;if(K[a+12|0]&128){Rp(c);h=J[b+4>>2]}else h=1;Ue(e,c,h);H[d+229|0]= +0;b=L[b>>1];if(K[g+15|0]){J[d+208>>2]=1;J[d+212>>2]=e;f=ke(a,b,d+208|0);break a}J[d+192>>2]=d+228;f=ke(a,b,d+192|0);break a}H[J[b+4>>2]+c|0]=0}e=L[b>>1];if(K[g+15|0]){b=J[b+4>>2];J[d+20>>2]=c;J[d+16>>2]=b;f=ke(a,e,d+16|0);uc(c);break a}J[d>>2]=c;f=ke(a,e,d);uc(c)}fc=d+240|0;return f}function UV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;J[a>>2]=0;d=J[685894];J[a+4>>2]=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if(b>>>0>7)break m;n:{o:switch(b-6|0){case 1:J[699344]=0;d=aa(5149,c+20|0,2399618)| +0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[699344]=0;b=c+28|0;ca(5218,b|0,2393660,d|0);e=J[699344];J[699344]=0;p:{if((e|0)!=1){J[699344]=0;ca(5291,c+36|0,b|0,2392661);b=J[699344];J[699344]=0;if((b|0)==1)break p;b=J[c+36>>2];q:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break q;b=Z()|0;break d}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break n;J[699344]=0;e=J[b+4>>2]-1|0; +J[b+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break n;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break n}break a}b=Z()|0;zc(c+12|0);break d}b=Z()|0;wc(d);break b}b=Z()|0;break c;case 0:J[699344]=0;d=aa(5149,c+20|0,2399267)|0;b=J[699344];J[699344]=0;r:{s:{if((b|0)!=1){J[699344]=0;b=c+28|0;ca(5218,b|0,2393660,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break s;J[699344]=0;ca(5291,c+36|0,b|0,2393295);b=J[699344];J[699344]=0;if((b|0)==1)break r;b=J[c+36>>2];t:{if(b){e=J[J[b>>2]+ +28>>2];J[699344]=0;ca(e|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break t;b=Z()|0;break f}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;u:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break u;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break u;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break u}break a}b=Z()|0;zc(c+12|0);break f}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(c+36|0);wc(c+28|0);wc(d);break m}b= +Z()|0;break b}b=Z()|0;wc(d);break b}b=Z()|0;break e;default:break o}J[c+16>>2]=d;J[c+12>>2]=0;e=b<<1|1;d=0;while(1){J[699344]=0;f=c+12|0;aa(5315,f|0,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break k;g=(d|0)==(e|0);d=d+1|0;if(!g)continue;break}J[699344]=0;d=c+20|0;ca(5291,d|0,f|0,2393660);e=J[699344];J[699344]=0;v:{w:{if((e|0)!=1){J[699344]=0;e=c+28|0;ca(5291,e|0,d|0,J[(b<<2)+2418944>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break w;J[699344]=0;ca(5291,c+36|0,e|0,2393295);b=J[699344];J[699344]=0;if((b| +0)==1)break v;b=J[c+36>>2];x:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+44|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break x;b=Z()|0;break j}J[c+44>>2]=0}J[699344]=0;aa(5153,a|0,c+44|0)|0;b=J[699344];J[699344]=0;y:{if((b|0)!=1){b=J[c+44>>2];J[c+44>>2]=0;if(!b)break y;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break y;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break y}break a}b=Z()|0;zc(c+44|0);break j}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12| +0:2743576)>>2];wc(c+36|0);wc(c+28|0);wc(c+20|0);wc(c+12|0);break m}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(c+36|0);wc(c+28|0);wc(d)}fc=c+48|0;return}b=Z()|0;break b}b=Z()|0;break g}wc(c+36|0)}wc(c+28|0)}wc(c+20|0)}wc(c+12|0);break b}wc(c+36|0)}wc(c+28|0);wc(d);break b}wc(c+36|0)}wc(c+28|0);wc(d)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function XBb(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;e=fc+ +-64|0;fc=e;b=0;d=J[a+8>>2];a:{if(d&7)break a;b:{c:{b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break c;b=J[a+28>>2];J[a+28>>2]=b-1;d:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;f=K[b|0];break d}f=td(a,1);if((f|0)==-1){b=0;break a}d=J[a+8>>2]}b=0;if(d&7)break a;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break c;b=J[a+28>>2];J[a+28>>2]=b-1;if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break b}b=td(a,1);if((b|0)!=-1)break b;b=0;break a}J[a+8>>2]=d|4;b=0; +break a}if((b&255|f<<8&65280)!=20551){b=0;break a}b=Kj(a);if((b|0)==-1){b=0;break a}if(!((b|0)==32|b-9>>>0<5)){b=0;break a}while(1){b=Kj(a);if((b|0)==-1){b=0;break a}if((b|0)==32|b-9>>>0<5)continue;break}d=Kj(a);if((d|0)==-1){b=0;break a}d=d<<24;f=b<<24;e:{if((f|0)==1291845632){b=1;if((d|0)==1275068416)break e}b=0;if((f|0)!=1275068416|(d|0)!=1291845632)break a}H[e+48|0]=b;while(1){b=Kj(a);if((b|0)==-1){b=0;break a}if(!((b|0)==32|b-9>>>0<5))continue;break}while(1){d=Kj(a);if((d|0)==-1){b=0;break a}if((d| +0)==32|d-9>>>0<5)continue;break}b=0;f:switch(d-43|0){case 2:b=1;break;case 0:break f;default:break a}H[e+49|0]=b;while(1){b=0;d=Kj(a);if((d|0)==-1)break a;if(!((d|0)==32|d-9>>>0<5))continue;break}if(XO(a,e+52|0))break a;if(XO(a,e+56|0))break a;if(XO(a,e+60|0))break a;d=qF();if(!d)break a;J[e+20>>2]=1;J[e+24>>2]=1;J[e+12>>2]=0;J[e+16>>2]=0;g=J[e+56>>2];J[e+28>>2]=g;k=J[e+60>>2];J[e+32>>2]=k;c=J[e+52>>2];J[e+36>>2]=c;m=K[e+49|0];J[e+40>>2]=m;g:{h:{if(Gs(d,0,e+12|0))break h;f=Dk(1,g);if(!f)break h;if(!k)break g; +n=(c+7|0)/8|0;i:{if(!g){a=0;while(1){if(Fk(d,0,0,a,0,1,f))break i;a=a+1|0;if((k|0)!=(a|0))continue;break}break g}if((c|0)>32)break i;if((c|0)>0){q=(n|0)<=1?1:n;o=1<>2];if(c&7)break i;l=J[a+64>>2];if((l|0)>=0&(l|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;l:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break l}c=td(a,1);if((c|0)==-1)break i}j=(c&255)<<((h^-1)+ +n<<3)|j;h=h+1|0;if((q|0)!=(h|0))continue;break}c=j&r;J[J[J[f+28>>2]>>2]+(i<<2)>>2]=c-(m?c&s?o:0:0);i=i+1|0;if((i|0)!=(g|0))continue;break j}while(1){j=0;h=0;while(1){c=J[a+8>>2];if(c&7)break i;l=J[a+64>>2];if((l|0)>=0&(l|0)<=J[a+60>>2])break k;c=J[a+28>>2];J[a+28>>2]=c-1;m:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;c=K[c|0];break m}c=td(a,1);if((c|0)==-1)break i}j=(c&255)<<(h<<3)|j;h=h+1|0;if((q|0)!=(h|0))continue;break}c=j&r;J[J[J[f+28>>2]>>2]+(i<<2)>>2]=c-(m?c&s?o:0:0);i=i+ +1|0;if((i|0)!=(g|0))continue;break}break j}J[a+8>>2]=c|4;break i}if(Fk(d,0,0,p,g,1,f))break i;p=p+1|0;if((p|0)!=(k|0))continue;break}break g}c=g<<2;a=0;if(!m)while(1){Ac(J[J[f+28>>2]>>2],0,c);if(Fk(d,0,0,a,g,1,f))break i;a=a+1|0;if((k|0)!=(a|0))continue;break g}while(1){Ac(J[J[f+28>>2]>>2],0,c);if(Fk(d,0,0,a,g,1,f))break i;a=a+1|0;if((k|0)!=(a|0))continue;break}break g}mg(f)}Mh(d);break a}mg(f);J[d+28>>2]=769;J[J[J[d+24>>2]>>2]+40>>2]=0;b=d}fc=e- -64|0;return b|0}function lF(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;h=fc-16|0;fc=h;d=Dc(160);a:{if(!d){d=0;break a}J[d>>2]=2646844;b:{if(Ti(a,h+12|0))break b;if(Ti(a,d+8|0))break b;f=2646832;c:{if(!J[661549])break c;g=J[d+8>>2];b=2646192;while(1){if((g|0)==J[b>>2]){f=b;break c}c=b;b=b+32|0;if(J[c+36>>2])continue;break}}J[d+4>>2]=f;J[d>>2]=f+12;c=J[h+12>>2];J[d+12>>2]=c;d:{e:{f:{g:{if((c|0)==1){b=0;c=J[a+8>>2];if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;h:{if((b|0)>0){J[a+60>>2]=J[a+ +60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;i=K[b|0];break h}i=td(a,1);if((i|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;i:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;f=K[b|0];break i}f=td(a,1);if((f|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;j:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;j=K[b|0];break j}j= +td(a,1);if((j|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;k:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;k=K[b|0];break k}k=td(a,1);if((k|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;l:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;l=K[b|0];break l}l=td(a,1);if((l|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b; +b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;m:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;e=K[b|0];break m}e=td(a,1);if((e|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e;b=J[a+28>>2];J[a+28>>2]=b-1;n:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;g=K[b|0];break n}g=td(a,1);if((g|0)==-1)break d;c=J[a+8>>2]}b=0;if(c&7)break b;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break e; +b=J[a+28>>2];J[a+28>>2]=b-1;if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break g}b=td(a,1);if((b|0)==-1)break d;break g}b=c-8|0;break f}m=b&255;c=k&255|(j<<8&65280|(f<<16&16711680|i<<24));b=c>>>16|0;c=e&255|(l<<8&65280|c<<16);b=b<<16|c>>>16;c=m|(g<<8&65280|c<<16);if((b|0)==1|b>>>0>1){rd(207267,0);c=-1}J[d+12>>2]=c;b=c-16|0}J[d+16>>2]=b;b=0;if(c-1>>>0<7)break b;if(!(K[J[d+4>>2]+8|0]&3)){c=Vi(0,0);if(!c)break b;if(oo(c,a,J[d+16>>2])){rd(207383,0);b=c;break b}po(c);o:{a=J[J[d>> +2]+8>>2];if(!a)break o;if(!(kc[a|0](d,c)|0))break o;rd(207516,0);b=c;break b}Pf(c)}if(J[686392]<=0)break a;f=J[655074];e=fc-32|0;fc=e;b=2646832;p:{if(!J[661549])break p;g=J[d+8>>2];a=2646192;while(1){if((g|0)==J[a>>2]){b=a;break p}c=a;a=a+32|0;if(J[c+36>>2])continue;break}}ae(207716,9,1,f);c=J[d+8>>2];a=J[d+12>>2];J[e+4>>2]=J[b+4>>2];J[e+8>>2]=34;J[e+12>>2]=c;J[e+16>>2]=a;J[e>>2]=34;md(f,208013,e);a=J[J[d>>2]+16>>2];if(a)kc[a|0](d,f);fc=e+32|0;break a}J[a+8>>2]=c|4}b=0}a=J[J[d>>2]+4>>2];if(a)kc[a| +0](d);uc(d);d=0;if(!b)break a;Pf(b)}fc=h+16|0;return d}function Ul(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;q=J[a+20>>2];z=J[a+28>>2]-q>>3;w=J[a+8>>2];while(1){B=J[q+12>>2];x=I[q+8>>1];a=I[q+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){o=J[c>>2];break a}o=J[c>>2];j=e;e=a+255&130816;if((j|0)==(e|0))break a;if(o)uc(o);J[c+4>>2]=e;o=vc(e<<2);J[c>>2]=o}n=o; +e=J[d+4>>2];j=J[e>>2];C=O[j+32>>3];D=O[j>>3];L=O[j+16>>3];E=O[j+40>>3];F=O[j+8>>3];t=O[d+16>>3];r=O[j+24>>3];k=O[d+24>>3];j=a;p=(j|0)<=1?1:j;J[e+24>>2]=p;J[e+4>>2]=p;A=t+ +(x|0);t=r;r=k+ +(w|0);G=t*r;k=(E+(F*A+G))*256;k=k+(k<0?-.5:.5);b:{if(R(k)<2147483648){f=~~k;break b}f=-2147483648}J[e+40>>2]=f;t=r*L;k=(C+(A*D+t))*256;k=k+(k<0?-.5:.5);c:{if(R(k)<2147483648){g=~~k;break c}g=-2147483648}J[e+20>>2]=g;r=A+ +(j>>>0);k=(E+(r*F+G))*256;k=k+(k<0?-.5:.5);d:{if(R(k)<2147483648){m=~~k;break d}m=-2147483648}h= +m-f|0;f=(h|0)/(p|0)|0;i=h-P(f,p)|0;l=(i|0)<=0;J[e+28>>2]=f-l;k=(C+(r*D+t))*256;k=k+(k<0?-.5:.5);e:{if(R(k)<2147483648){f=~~k;break e}f=-2147483648}f=f-g|0;g=(f|0)/(p|0)|0;m=g;h=f-P(g,p)|0;g=(h|0)<=0;J[e+8>>2]=m-g;f=i+(l?j:0)|0;J[e+32>>2]=f;g=h+(g?j:0)|0;J[e+12>>2]=g;J[e+36>>2]=f-j;J[e+16>>2]=g-j;e=J[d+4>>2];f=J[e+40>>2];g=J[e+20>>2];while(1){e=J[d+36>>2];i=J[d>>2];s=g-J[d+32>>2]|0;h=s>>8;J[i+8>>2]=h;u=f-e|0;f=(J[i+32>>2]+(u>>8)>>>0)%M[i+28>>2]|0;J[i+36>>2]=f;e=J[J[i>>2]>>2];g=J[e+4>>2];e=J[e+16>> +2];m=h+J[i+20>>2]|0;h=J[i+16>>2];l=(m>>>0)%(h>>>0)|0;J[i+24>>2]=l;f=g+P(e,f)|0;J[i+4>>2]=f;g=J[i+12>>2];e=f+((g>>>0>l>>>0?l:h+(l^-1)|0)<<2)|0;N=K[e+2|0];Q=K[e+1|0];S=K[e|0];v=K[e+3|0];e=l+1|0;e=e>>>0>>0?e:0;J[i+24>>2]=e;e=f+((e>>>0>>0?e:h+(e^-1)|0)<<2)|0;T=K[e+2|0];U=K[e+1|0];V=K[e|0];m=K[e+3|0];i=J[d>>2];e=J[i+36>>2]+1|0;h=e>>>0>2]?e:0;J[i+36>>2]=h;e=J[J[i>>2]>>2];f=J[e+4>>2];e=J[e+16>>2];g=J[i+16>>2];l=(J[i+20>>2]+J[i+8>>2]>>>0)%(g>>>0)|0;J[i+24>>2]=l;e=f+P(e,h)|0;J[i+4>>2]=e;e=e+ +((l>>>0>2]?l:g+(l^-1)|0)<<2)|0;W=K[e+2|0];X=K[e+1|0];p=K[e|0];i=K[e+3|0];f=J[d>>2];e=J[f+24>>2]+1|0;g=e;e=J[f+16>>2];g=g>>>0>>0?g:0;J[f+24>>2]=g;y=J[f+4>>2]+((g>>>0>2]?g:e+(g^-1)|0)<<2)|0;l=K[y+2|0];h=K[y+1|0];f=K[y|0];Y=v;u=u&255;g=256-u|0;v=s&255;e=256-v|0;s=P(g,e);Z=m;m=P(g,v);g=P(e,u);e=P(u,v);H[n+3|0]=(((P(Y,s)+P(Z,m)|0)+P(g,i)|0)+P(e,K[y+3|0])|0)+32768>>>16;H[n+2|0]=(((P(s,S)+P(m,V)|0)+P(g,p)|0)+P(e,f)|0)+32768>>>16;H[n+1|0]=(((P(s,Q)+P(m,U)|0)+P(g,X)|0)+P(e,h)|0)+32768>>> +16;H[n|0]=(((P(s,N)+P(m,T)|0)+P(g,W)|0)+P(e,l)|0)+32768>>>16;h=J[d+4>>2];e=J[h+16>>2]+J[h+12>>2]|0;J[h+16>>2]=e;g=J[h+20>>2]+J[h+8>>2]|0;J[h+20>>2]=g;if((e|0)>0){g=g+1|0;J[h+20>>2]=g;J[h+16>>2]=e-J[h+4>>2]}e=J[h+36>>2]+J[h+32>>2]|0;J[h+36>>2]=e;f=J[h+40>>2]+J[h+28>>2]|0;J[h+40>>2]=f;if((e|0)>0){f=f+1|0;J[h+40>>2]=f;J[h+36>>2]=e-J[h+24>>2]}n=n+4|0;j=j-1|0;if(j)continue;break}f:{if(J[b+16>>2]<(w|0)|J[b+8>>2]>(w|0))break f;e=I[q+10>>1]<0;n=e?0:B;g=K[B|0];j=J[b+4>>2];g:{if((x|0)>=(j|0)){j=x;break g}f= +j-x|0;a=a-f|0;if((a|0)<=0)break f;n=e?0:f+n|0;o=(f<<2)+o|0}f=J[b>>2];e=J[b+12>>2];if((e|0)<(a+j|0)){a=e-j|0;if((a|0)<0)break f;a=a+1|0}_k(f,j,w,a,o,n,g)}q=q+8|0;z=z-1|0;if(z)continue;break}}function Saa(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;c=kd(1,24);if(!c)return 0;H[c|0]=1;g=c;c=kd(1,92);a:{if(c){J[c>>2]=g;e=kd(1,56);b:{if(e){J[e>>2]=g;d=kd(1,1876);J[e+36>>2]=d;if(!d){J[g+20>>2]=1;uc(e);break b}J[c+4>>2]=e;break a}J[g+20>>2]=1}Iy(0);uc(c);c=0;break a}J[g+20>>2]=1;c=0}J[g+12>>2]=c; +if(!c){uc(g);return 0}J[g+4>>2]=2;J[g+8>>2]=0;e=J[c+4>>2];c:{if(!b|!e)break c;d=kd(1,96);if(!d){J[J[e>>2]+20>>2]=1;break c}J[d+12>>2]=J[b>>2];J[d+16>>2]=J[b+4>>2];J[d+20>>2]=J[b+8>>2];J[e+44>>2]=d}d:{e:{f:{if(J[g+20>>2]){Iy(e);a=J[c+80>>2];if(a){uc(a);J[c+80>>2]=0}a=J[c+68>>2];if(a){uc(a);J[c+68>>2]=0}b=0;a=J[c+64>>2];if(a)break f;break e}b=0;g:{if(!c|!a)break g;h=kc[J[J[a>>2]+36>>2]](a)|0;f=kc[J[J[a>>2]+20>>2]](a,4)|0;e=kc[J[J[a>>2]+20>>2]](a,4)|0;h:{i:switch(f|0){case 1:f=1;if(kc[J[J[a>>2]+20>> +2]](a,4)|0)break h;f=kc[J[J[a>>2]+20>>2]](a,4)|0;if(f)break h;f=(kc[J[J[a>>2]+40>>2]](a)|0)+12|0;break h;case 0:break i;default:break h}d=kc[J[J[a>>2]+40>>2]](a)|0;f=(d|0)>0?d+8|0:0}if((e|0)!=1783636E3)break g;if((kc[J[J[a>>2]+20>>2]](a,4)|0)!=218793738)break g;if(((kc[J[J[a>>2]+36>>2]](a)|0)-h|0)!=(f|0))break g;h=kc[J[J[a>>2]+36>>2]](a)|0;f=kc[J[J[a>>2]+20>>2]](a,4)|0;e=kc[J[J[a>>2]+20>>2]](a,4)|0;j:{k:switch(f|0){case 1:f=1;if(kc[J[J[a>>2]+20>>2]](a,4)|0)break j;f=kc[J[J[a>>2]+20>>2]](a,4)|0;if(f)break j; +f=(kc[J[J[a>>2]+40>>2]](a)|0)+12|0;break j;case 0:break k;default:break j}d=kc[J[J[a>>2]+40>>2]](a)|0;f=(d|0)>0?d+8|0:0}if((e|0)!=1718909296)break g;i=c,j=kc[J[J[a>>2]+20>>2]](a,4)|0,J[i+52>>2]=j;e=kc[J[J[a>>2]+20>>2]](a,4)|0;d=(f-16|0)/4|0;J[c+60>>2]=d;J[c+56>>2]=e;d=d<<2;e=kd(1,d);J[c+64>>2]=e;if(!e){J[J[c>>2]+20>>2]=1;break g}kc[J[J[a>>2]+16>>2]](a,e,d);if(((kc[J[J[a>>2]+36>>2]](a)|0)-h|0)!=(f|0))break g;if(!Taa(c,a))break g;kc[J[J[a>>2]+36>>2]](a)|0;b=kc[J[J[a>>2]+20>>2]](a,4)|0;d=kc[J[J[a>>2]+ +20>>2]](a,4)|0;l:{m:switch(b|0){case 1:b=1;if(kc[J[J[a>>2]+20>>2]](a,4)|0)break l;b=kc[J[J[a>>2]+20>>2]](a,4)|0;if(b)break l;b=(kc[J[J[a>>2]+40>>2]](a)|0)+12|0;break l;case 0:break m;default:break l}b=kc[J[J[a>>2]+40>>2]](a)|0;b=(b|0)>0?b+8|0:0}n:{if((d|0)==1785737827)break n;kc[J[J[a>>2]+24>>2]](a,b-8|0);kc[J[J[a>>2]+36>>2]](a)|0;b=kc[J[J[a>>2]+20>>2]](a,4)|0;d=kc[J[J[a>>2]+20>>2]](a,4)|0;o:{p:switch(b|0){case 0:b=kc[J[J[a>>2]+40>>2]](a)|0;b=(b|0)>0?b+8|0:0;break o;case 1:break p;default:break o}b= +1;if(kc[J[J[a>>2]+20>>2]](a,4)|0)break o;b=kc[J[J[a>>2]+20>>2]](a,4)|0;if(b)break o;b=(kc[J[J[a>>2]+40>>2]](a)|0)+12|0}if((d|0)==1785737827)break n;while(1){kc[J[J[a>>2]+24>>2]](a,b-8|0);kc[J[J[a>>2]+36>>2]](a)|0;b=kc[J[J[a>>2]+20>>2]](a,4)|0;d=kc[J[J[a>>2]+20>>2]](a,4)|0;q:{r:switch(b|0){case 1:b=1;if(kc[J[J[a>>2]+20>>2]](a,4)|0)break q;b=kc[J[J[a>>2]+20>>2]](a,4)|0;if(b)break q;b=(kc[J[J[a>>2]+40>>2]](a)|0)+12|0;break q;case 0:break r;default:break q}b=kc[J[J[a>>2]+40>>2]](a)|0;b=(b|0)>0?b+8|0: +0}if((d|0)!=1785737827)continue;break}}d=kc[J[J[a>>2]+36>>2]](a)|0;J[c+76>>2]=b-8;J[c+72>>2]=d;b=UO(J[c+4>>2],a)}c=J[g+12>>2];if(!c)break d;Iy(J[c+4>>2]);a=J[c+80>>2];if(a){uc(a);J[c+80>>2]=0}a=J[c+68>>2];if(a){uc(a);J[c+68>>2]=0}a=J[c+64>>2];if(!a)break e}uc(a)}uc(c)}uc(g);return b|0}function Rl(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;q=J[a+20>>2];z=J[a+28>>2]-q>>3; +w=J[a+8>>2];while(1){B=J[q+12>>2];x=I[q+8>>1];a=I[q+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){o=J[c>>2];break a}o=J[c>>2];j=e;e=a+255&130816;if((j|0)==(e|0))break a;if(o)uc(o);J[c+4>>2]=e;o=vc(e<<2);J[c>>2]=o}n=o;e=J[d+4>>2];j=J[e>>2];C=O[j+32>>3];D=O[j>>3];L=O[j+16>>3];E=O[j+40>>3];F=O[j+8>>3];t=O[d+16>>3];r=O[j+24>>3];k=O[d+24>>3];j=a;p=(j|0)<=1?1:j;J[e+24>>2]=p;J[e+4>>2]=p;A=t+ +(x|0);t=r;r=k+ +(w|0);G=t*r;k=(E+(F*A+G))*256;k=k+(k<0?-.5:.5);b:{if(R(k)<2147483648){f=~~k;break b}f= +-2147483648}J[e+40>>2]=f;t=r*L;k=(C+(A*D+t))*256;k=k+(k<0?-.5:.5);c:{if(R(k)<2147483648){g=~~k;break c}g=-2147483648}J[e+20>>2]=g;r=A+ +(j>>>0);k=(E+(r*F+G))*256;k=k+(k<0?-.5:.5);d:{if(R(k)<2147483648){m=~~k;break d}m=-2147483648}h=m-f|0;f=(h|0)/(p|0)|0;i=h-P(f,p)|0;l=(i|0)<=0;J[e+28>>2]=f-l;k=(C+(r*D+t))*256;k=k+(k<0?-.5:.5);e:{if(R(k)<2147483648){f=~~k;break e}f=-2147483648}f=f-g|0;g=(f|0)/(p|0)|0;m=g;h=f-P(g,p)|0;g=(h|0)<=0;J[e+8>>2]=m-g;f=i+(l?j:0)|0;J[e+32>>2]=f;g=h+(g?j:0)|0;J[e+12>>2]=g;J[e+ +36>>2]=f-j;J[e+16>>2]=g-j;e=J[d+4>>2];f=J[e+40>>2];g=J[e+20>>2];while(1){e=J[d+36>>2];i=J[d>>2];s=g-J[d+32>>2]|0;h=s>>8;J[i+8>>2]=h;u=f-e|0;f=(J[i+32>>2]+(u>>8)>>>0)%M[i+28>>2]|0;J[i+36>>2]=f;e=J[J[i>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];m=h+J[i+20>>2]|0;h=J[i+16>>2];l=(m>>>0)%(h>>>0)|0;J[i+24>>2]=l;f=g+P(e,f)|0;J[i+4>>2]=f;g=J[i+12>>2];e=f+((g>>>0>l>>>0?l:h+(l^-1)|0)<<2)|0;N=K[e|0];Q=K[e+1|0];S=K[e+2|0];v=K[e+3|0];e=l+1|0;e=e>>>0>>0?e:0;J[i+24>>2]=e;e=f+((e>>>0>>0?e:h+(e^-1)|0)<<2)|0;T=K[e|0];U= +K[e+1|0];V=K[e+2|0];m=K[e+3|0];i=J[d>>2];e=J[i+36>>2]+1|0;h=e>>>0>2]?e:0;J[i+36>>2]=h;e=J[J[i>>2]>>2];f=J[e+4>>2];e=J[e+16>>2];g=J[i+16>>2];l=(J[i+20>>2]+J[i+8>>2]>>>0)%(g>>>0)|0;J[i+24>>2]=l;e=f+P(e,h)|0;J[i+4>>2]=e;e=e+((l>>>0>2]?l:g+(l^-1)|0)<<2)|0;W=K[e|0];X=K[e+1|0];p=K[e+2|0];i=K[e+3|0];f=J[d>>2];e=J[f+24>>2]+1|0;g=e;e=J[f+16>>2];g=g>>>0>>0?g:0;J[f+24>>2]=g;y=J[f+4>>2]+((g>>>0>2]?g:e+(g^-1)|0)<<2)|0;l=K[y|0];h=K[y+1|0];f=K[y+2|0];Y=v;u=u&255;g=256-u|0;v=s&255;e=256- +v|0;s=P(g,e);Z=m;m=P(g,v);g=P(e,u);e=P(u,v);H[n+3|0]=(((P(Y,s)+P(Z,m)|0)+P(g,i)|0)+P(e,K[y+3|0])|0)+32768>>>16;H[n+2|0]=(((P(s,S)+P(m,V)|0)+P(g,p)|0)+P(e,f)|0)+32768>>>16;H[n+1|0]=(((P(s,Q)+P(m,U)|0)+P(g,X)|0)+P(e,h)|0)+32768>>>16;H[n|0]=(((P(s,N)+P(m,T)|0)+P(g,W)|0)+P(e,l)|0)+32768>>>16;h=J[d+4>>2];e=J[h+16>>2]+J[h+12>>2]|0;J[h+16>>2]=e;g=J[h+20>>2]+J[h+8>>2]|0;J[h+20>>2]=g;if((e|0)>0){g=g+1|0;J[h+20>>2]=g;J[h+16>>2]=e-J[h+4>>2]}e=J[h+36>>2]+J[h+32>>2]|0;J[h+36>>2]=e;f=J[h+40>>2]+J[h+28>>2]|0;J[h+ +40>>2]=f;if((e|0)>0){f=f+1|0;J[h+40>>2]=f;J[h+36>>2]=e-J[h+24>>2]}n=n+4|0;j=j-1|0;if(j)continue;break}f:{if(J[b+16>>2]<(w|0)|J[b+8>>2]>(w|0))break f;e=I[q+10>>1]<0;n=e?0:B;g=K[B|0];j=J[b+4>>2];g:{if((x|0)>=(j|0)){j=x;break g}f=j-x|0;a=a-f|0;if((a|0)<=0)break f;n=e?0:f+n|0;o=(f<<2)+o|0}f=J[b>>2];e=J[b+12>>2];if((e|0)<(a+j|0)){a=e-j|0;if((a|0)<0)break f;a=a+1|0}_k(f,j,w,a,o,n,g)}q=q+8|0;z=z-1|0;if(z)continue;break}}function jJ(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,w=0;m=fc-16|0;fc=m;a:{b:{f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;g=J[a+56>>2];g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break b;i=J[a+56>>2];i=kc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break b;k=J[a+56>>2];k=kc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;j=J[a+56>>2];j=kc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break b;h=J[a+56>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break b;l=J[a+56>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break b;n=J[a+56>> +2];n=kc[J[J[n>>2]+28>>2]](n)|0;if((n|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;o=J[a+56>>2];o=kc[J[J[o>>2]+28>>2]](o)|0;if((o|0)==-1)break b;p=J[a+56>>2];p=kc[J[J[p>>2]+28>>2]](p)|0;if((p|0)==-1)break b;q=J[a+56>>2];q=kc[J[J[q>>2]+28>>2]](q)|0;if((q|0)==-1)break b;r=J[a+56>>2];r=kc[J[J[r>>2]+28>>2]](r)|0;if((r|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;s=J[a+56>>2];s=kc[J[J[s>>2]+28>>2]](s)|0;if((s|0)==-1)break b;t=J[a+56>>2];t=kc[J[J[t>>2]+28>>2]](t)|0;if((t|0)==-1)break b;u=J[a+56>>2];u=kc[J[J[u>>2]+28>> +2]](u)|0;if((u|0)==-1)break b;v=J[a+56>>2];v=kc[J[J[v>>2]+28>>2]](v)|0;if((v|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+4;w=J[a+56>>2];w=kc[J[J[w>>2]+28>>2]](w)|0;if((w|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;c:{i=k|(g<<16|f<<24|i<<8);if(i){g=n|(h<<16|j<<24|l<<8);if(g)break c}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,805584,0);break a}d:{f=J[a+24>>2];e:{if(f>>>0<(i>>>0)/10>>>0)break e;h=J[a+28>>2];j=v|(t<<16|s<<24|u<<8);k=r|(p<<16|o<<24|q<<8);if(h>>>0<(j>>>0)/10>>>0|(k>>>0)/10>>>0>f>>>0)break e;if(h>>>0>=(g>>>0)/10>>> +0)break d}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,806071,0);J[a+72>>2]=1;break a}f=J[a+56>>2];h=kc[J[J[f>>2]+28>>2]](f)|0;if((h|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;l=h&1;if(!l){f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;J[m+8>>2]=f&128?f|-256:f;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;J[m>>2]=f&128?f|-256:f;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;J[m+12>>2]=f&128?f|-256: +f;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break b;J[a+68>>2]=J[a+68>>2]+1;J[m+4>>2]=f&128?f|-256:f}f:{if(!c&(e|0)!=0|J[a+28>>2]!=-1)break f;f=g+j|0;if(f>>>0<=M[a+32>>2])break f;MB(J[a+40>>2],f,J[a+36>>2])}if(e>>>0>=2){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,806493,0);break a}g:{if((e|0)==1){f=JB(a,J[d>>2]);if(f)if(!(kc[J[J[f>>2]+8>>2]](f)|0))break g;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,806940,0);break a}f=nJ(J[a+40>>2],k,j,i,g)}KB(a,l,0);Nn(J[a+76>>2]);g=hJ(a,i,g,l,h>>>1&1,f,0,0,m+8|0,m);h:{if(c){yl(J[a+ +40>>2],g,k,j,w&7);kc[J[J[g>>2]+4>>2]](g);break h}J[g+4>>2]=b;sd(J[a+48>>2],g)}if((e|0)==1){c=J[d>>2];b=0;i:{d=J[a+52>>2];e=J[d+8>>2];if((e|0)<=0)break i;f=J[d>>2];while(1){if((c|0)!=J[J[f+(b<<2)>>2]+4>>2]){b=b+1|0;if((e|0)!=(b|0))continue;break i}break}zj(d,b);break a}a=J[a+48>>2];d=J[a+8>>2];if((d|0)>0){e=J[a>>2];b=0;while(1){if((c|0)==J[J[e+(b<<2)>>2]+4>>2]){zj(a,b);break a}b=b+1|0;if((d|0)!=(b|0))continue;break}}break a}kc[J[J[f>>2]+4>>2]](f);break a}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,783270,0)}fc= +m+16|0}function kN(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=Dc(16);if(c){J[c+12>>2]=1666;J[c+4>>2]=1667;J[c>>2]=0;J[c+8>>2]=1668}if(!c)return 7;b=6;a:if(!(!c|!a)){d=kc[J[c+4>>2]](c,208)|0;b=64;if(!d)break a;Ac(d+16|0,0,188);J[d+204>>2]=1;J[d+12>>2]=4;J[d+4>>2]=2;J[d+8>>2]=10;J[d>>2]=c;J[a>>2]=d;b=0}j=b;b:{if(b){uc(c);break b}b=J[a>>2];Fj(b,247736);Fj(b,326692);Fj(b,328952);Fj(b,255212);Fj(b,330916);Fj(b,260740);Fj(b,333028);Fj(b,333936);Fj(b,260112);Fj(b,261468);Fj(b,324208);Fj(b,262104); +Fj(b,324392);Fj(b,324664);Fj(b,260028);Fj(b,252200)}i=J[a>>2];h=fc-432|0;fc=h;c:{c=Xi(239628);if(!c)break c;while(1){b=0;d:{e:{f:{d=c;e=K[d|0];switch(e|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break e;case 0:break c;case 9:break d;default:break f}}if((e|0)==32)break d}g:{h:{i:{while(1){a=e&255;if(!a){e=b;break g}if((a|0)==58){e=b;break g}a=h+288|0;H[a+b|0]=e;e=b|1;f=K[d+1|0];if(!(!f|(f|0)==58)){H[a+e|0]=f;e=b|2;f=K[d+2|0];if(!f|(f|0)==58)break h;H[a+e|0]=f;e=b|3;f=K[d+3|0];if(!f| +(f|0)==58)break i;H[a+e|0]=f;d=d+4|0;e=128;b=b+4|0;if((b|0)==128)break g;e=K[d|0];continue}break}d=d+1|0;break g}d=d+3|0;break g}d=d+2|0}H[(h+288|0)+e|0]=0;if((d|0)==(c|0)|K[d|0]!=58)break c;a=1;e=d+1|0;b=0;j:{while(1){c=K[e|0];if(!c){c=b;break j}if((c|0)==61){c=b;break j}H[(h+144|0)+b|0]=c;c=b|1;f=a+1|0;e=f+d|0;g=K[e|0];if(!g){a=f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;c=b|2;f=a+2|0;e=f+d|0;g=K[e|0];if(!g){a=f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;c=b|3;f=a+3|0;e=f+d| +0;g=K[e|0];if(!g){a=f;break j}if((g|0)==61){a=f;break j}H[(h+144|0)+c|0]=g;a=a+4|0;e=d+a|0;c=128;b=b+4|0;if((b|0)!=128)continue;break}a=129}H[(h+144|0)+c|0]=0;if((a|0)==1|K[e|0]!=61)break c;a=1;c=e+1|0;b=0;k:{while(1){f=a;d=b;l:{m:{g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break l;default:break m}}if((g|0)!=32)break l;break k}H[b+h|0]=g;d=b|1;n:{o:{f=a+1|0;c=e+f|0;g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break n; +default:break o}}if((g|0)==32)break k}H[d+h|0]=g;d=b|2;p:{q:{f=a+2|0;c=e+f|0;g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break p;default:break q}}if((g|0)==32)break k}H[d+h|0]=g;d=b|3;r:{s:{f=a+3|0;c=e+f|0;g=K[c|0];switch(g|0){case 0:case 9:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break r;default:break s}}if((g|0)==32)break k}H[d+h|0]=g;a=a+4|0;c=e+a|0;d=128;b=b+4|0;if((b|0)!=128)continue;break}f=129}H[d+h|0]=0;t:{u:{a= +K[c|0];switch(a|0){case 0:case 9:break t;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break c;default:break u}}if((a|0)!=32)break c}if((f|0)==1)break c;b=h+288|0;d=h+144|0;v:{if(!i)break v;w:{if(!h|(!b|!d))break w;a=i+20|0;f=J[i+16>>2];e=a+(f<<2)|0;x:{if((f|0)<=0)break x;while(1){if(!Ic(J[J[J[a>>2]>>2]+8>>2],b))break x;a=a+4|0;if(e>>>0>a>>>0)continue;break}}if((a|0)==(e|0))break v;b=J[a>>2];e=J[J[b>>2]+32>>2];if(!e)break w;b=kc[e|0](b,242035)|0;if(!b)break w;b=J[b>>2];if(!b)break w;kc[b| +0](J[a>>2],d,h,1)|0}}if(!K[c|0])break c}c=c+1|0;continue}}fc=h+432|0;return j|0}function JUa(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,u=0,v=0,w=0,x=0,y=0,z=0;n=fc-640|0;fc=n;a:{b:{c:{d:{e:{h=J[a+4>>2];if((h|0)>0){while(1){d=e<<3;if(O[d+b>>3]!=O[(a+d|0)+2472>>3])break e;e=e+1|0;if((h|0)!=(e|0))continue;break}break d}if(!h)break d;break b}if((e|0)!=(h|0))break c}g=J[a+8>>2];if((g|0)<=0)break a;e=0;if(g>>>0>=4){d=g&-4;h=a+2728|0;while(1){f=e<<3; +O[f+c>>3]=O[f+h>>3];b=f|8;O[b+c>>3]=O[b+h>>3];b=f|16;O[b+c>>3]=O[b+h>>3];b=f|24;O[b+c>>3]=O[b+h>>3];e=e+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}d=g&3;if(!d)break a;while(1){b=e<<3;O[b+c>>3]=O[(a+b|0)+2728>>3];e=e+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}break a}e=0;if((h|0)<=0)break b;while(1){i=0;g=e<<2;k=J[(g+a|0)+1044>>2];l=k-1|0;q=e<<3;d=(e<<4)+a|0;m=(O[q+b>>3]-O[d+16>>3])*O[(a+q|0)+2200>>3]+O[d+1176>>3];f:{if(!(m>=0))break f;i=m;m=+(l|0);if(!(i>m))break f;i=m}g=g+(n+512|0)|0;f=k-2|0;if(R(i)< +2147483648)d=~~i;else d=-2147483648;d=(k|0)>1?(d|0)==(l|0)?f:d:d;J[g>>2]=d;i=i-+(d|0);O[n+q>>3]=i;O[q+(n+256|0)>>3]=1-i;e=e+1|0;if((h|0)!=(e|0))continue;break}e=0;if((h|0)<=1)break b;d=h;while(1){g=d-1|0;e=P(J[((d<<2)+a|0)+1036>>2],J[(n+512|0)+(g<<2)>>2]+e|0);f=d>>>0>2;d=g;if(f)continue;break}}p=J[a+8>>2];if((p|0)>0){g=1<>2]+(P(J[n+512>>2]+e|0,p)<<3)|0;r=J[a+2468>>2];s=J[a+2456>>2];q=(h|0)==31;while(1){g:{if(!q){l=(t<<3)+z|0;f=0;e=0;j=0;if(v>>>0>= +4)while(1){O[(e<<3)+r>>3]=O[l+(J[(e<<2)+s>>2]<<3)>>3];d=e|1;O[(d<<3)+r>>3]=O[l+(J[(d<<2)+s>>2]<<3)>>3];d=e|2;O[(d<<3)+r>>3]=O[l+(J[(d<<2)+s>>2]<<3)>>3];d=e|3;O[(d<<3)+r>>3]=O[l+(J[(d<<2)+s>>2]<<3)>>3];e=e+4|0;j=j+4|0;if((y|0)!=(j|0))continue;break}if(w)while(1){O[(e<<3)+r>>3]=O[l+(J[(e<<2)+s>>2]<<3)>>3];e=e+1|0;f=f+1|0;if((w|0)!=(f|0))continue;break}if((h|0)<=0)break g}o=J[a+2468>>2];u=0;f=g;while(1){h:{if((f|0)<=0)break h;x=f-1|0;d=u<<3;m=O[d+n>>3];i=O[d+(n+256|0)>>3];d=0;if(f>>>0>=3){k=(x>>>1|0)+ +1&-2;j=0;while(1){e=d<<3;O[(d<<2)+o>>3]=i*O[e+o>>3]+m*O[(e|8)+o>>3];l=d|2;O[(l<<2)+o>>3]=i*O[(l<<3)+o>>3]+m*O[(e|24)+o>>3];d=d+4|0;j=j+2|0;if((k|0)!=(j|0))continue;break}}if(x&2)break h;e=(d<<2)+o|0;d=d<<3;O[e>>3]=i*O[d+o>>3]+m*O[(d|8)+o>>3]}f=f>>1;u=u+1|0;if((h|0)!=(u|0))continue;break}}f=(t<<4)+a|0;i=O[f+1688>>3];d=(t<<3)+c|0;m=O[r>>3]*(O[f+1696>>3]-i)+i;O[d>>3]=m;i=O[f+528>>3];i:{if(!(m>3];if(!(m>i))break i}O[d>>3]=i}t=t+1|0;if((t|0)!=(p|0))continue;break}}j:{if((h|0)<=0)break j; +j=0;e=0;if(h>>>0>=4){g=h&-4;l=a+2472|0;k=0;while(1){f=e<<3;O[f+l>>3]=O[b+f>>3];d=f|8;O[d+l>>3]=O[b+d>>3];d=f|16;O[d+l>>3]=O[b+d>>3];d=f|24;O[d+l>>3]=O[b+d>>3];e=e+4|0;k=k+4|0;if((g|0)!=(k|0))continue;break}}g=h&3;if(!g)break j;while(1){d=e<<3;O[(d+a|0)+2472>>3]=O[b+d>>3];e=e+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}}if((p|0)<=0)break a;j=0;e=0;if(p>>>0>=4){d=p&-4;f=a+2728|0;k=0;while(1){g=e<<3;O[g+f>>3]=O[c+g>>3];b=g|8;O[b+f>>3]=O[b+c>>3];b=g|16;O[b+f>>3]=O[b+c>>3];b=g|24;O[b+f>>3]=O[b+c>>3];e= +e+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}d=p&3;if(!d)break a;while(1){b=e<<3;O[(b+a|0)+2728>>3]=O[b+c>>3];e=e+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}}fc=n+640|0}function aub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;m=fc-1280|0;fc=m;a:{if(!(K[a+285|0]|K[a+288|0])){c=1029;Jc(a,1029,0,0);break a}if(!c){c=1028;Jc(a,1028,0,0);break a}l=K[d|0];if(l>>>0>=6){c=1053;Jc(a,1053,0,0);break a}if(K[a+325|0]!=3){c=1037;Jc(a,1037,0,0);break a}Ac(m+512|0,0, +768);Ac(m+256|0,255,256);i=Ac(m,0,256);f=c-1|0;c=d+1|0;b:{c:{d:{e:{if(l>>>0<=1)while(1){f:switch(f|0){case 1:break b;case 0:break e;default:break f}j=K[c+1|0];h=K[c|0];if(j>>>0>>0)break c;d=f-2|0;g=j-h|0;if(d>>>0>>0)break d;o=j>>>0>>0;n=j+1|0;g:{if(!(g+1&1)){g=h;c=c+2|0;break g}d=(i+512|0)+P(h,3)|0;H[d|0]=K[c+2|0];H[d+1|0]=K[c+3|0];H[d+2|0]=K[c+4|0];H[i+h|0]=1;g=h+1|0;f=f-5|0;d=f;c=c+5|0}k=o?k:n;if((h|0)==(j|0))continue;while(1){f=(i+512|0)+P(g,3)|0;H[f|0]=K[c|0];H[f+1|0]=K[c+1|0]; +H[f+2|0]=K[c+2|0];H[g+i|0]=1;H[f+3|0]=K[c+3|0];H[f+4|0]=K[c+4|0];H[f+5|0]=K[c+5|0];f=g+1|0;H[f+i|0]=1;g=g+2|0;d=d-6|0;c=c+6|0;if((f|0)!=(j|0))continue;break}f=d;continue}d=l&254;if((d|0)==2){o=(d|0)==4;while(1){h:switch(f|0){case 1:break b;case 0:break e;default:break h}d=K[c|0];h=K[c+1|0];if(d>>>0>h>>>0)break c;n=h-d|0;j=n+1|0;if(f-2>>>0<(o?j<<2:j)>>>0)break d;c=c+2|0;p=d+f|0;g=0;f=j&3;if(f)while(1){j=K[c|0];H[d+i|0]=1;H[(i+256|0)+d|0]=j;d=d+1|0;c=c+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}if(n>>> +0>=3)while(1){g=K[c|0];H[d+i|0]=1;f=i+256|0;H[f+d|0]=g;g=K[c+1|0];j=d+1|0;H[j+i|0]=1;H[f+j|0]=g;g=K[c+2|0];j=d+2|0;H[j+i|0]=1;H[f+j|0]=g;j=K[c+3|0];g=d+3|0;H[g+i|0]=1;H[f+g|0]=j;d=d+4|0;c=c+4|0;if((g|0)!=(h|0))continue;break}k=h>>>0>>0?k:h+1|0;f=(p-3|0)-h|0;continue}}j=(d|0)==4;while(1){i:switch(f|0){case 1:break b;case 0:break e;default:break i}d=K[c|0];g=K[c+1|0];if(d>>>0>g>>>0)break c;f=f-2|0;h=(g-d|0)+1|0;if(f>>>0<(j?h<<2:h)>>>0)break d;k=g>>>0>>0?k:g+1|0;c=c+2|0;while(1){h=(i+512|0)+P(d, +3)|0;H[h|0]=K[c|0];H[h+1|0]=K[c+1|0];H[h+2|0]=K[c+2|0];h=K[c+3|0];H[d+i|0]=1;H[(i+256|0)+d|0]=h;f=f-4|0;c=c+4|0;h=(d|0)==(g|0);d=d+1|0;if(!h)continue;break}continue}}j:{k:switch(K[a+324|0]-1|0){case 0:if(k>>>0<3)break j;c=1054;Jc(a,1054,0,0);break a;case 1:if(k>>>0<5)break j;c=1054;Jc(a,1054,0,0);break a;case 3:break k;default:break j}if(k>>>0<17)break j;c=1054;Jc(a,1054,0,0);break a}d=i+512|0;f=i+256|0;l:{m:{if(!K[a+114|0])break m;c=kc[J[a+152>>2]](1316)|0;if(!c){Jc(a,1,0,0);c=1;break l}J[c+32>> +2]=k;H[c+28|0]=l;J[c+4>>2]=1074;J[c>>2]=1075;xc(c+36|0,d,768);xc(c+804|0,f,256);xc(c+1060|0,i,256);g=J[a+700>>2];n:{if(g){J[g+8>>2]=c;break n}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=g;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(J[a+516>>2]|(K[a+496|0]|!K[a+432|0]))break m;J[a+516>>2]=c}c=Z9(a,l,k,d,f,i)}if(c)break a;if(!K[a+112|0]){c=0;break a}c=kc[J[b+4>>2]](a,b,e)|0;if(c)break a;b=J[e>>2];J[b+36>>2]=k;H[b+32|0]=l;c=0;d=0;while(1){a=b+P(d,5)|0;e=(i+512|0)+P(d, +3)|0;H[a+40|0]=K[e|0];H[a+41|0]=K[e+1|0];H[a+42|0]=K[e+2|0];H[a+43|0]=K[(i+256|0)+d|0];H[a+44|0]=K[d+i|0];d=d+1|0;if((d|0)!=256)continue;break}break a}c=1028;Jc(a,1028,0,0);break a}c=1054;Jc(a,1054,0,0);break a}c=1028;Jc(a,1028,0,0)}fc=m+1280|0;return c|0}function Nka(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;if(!d){d=J[a+584>>2];if(d){k=(c|0)/J[d+8>>2]|0;a:{b:{if(J[d>>2]==1){j=b;break b}if(J[d+16>>2]<(k|0))break a;j=J[d+12>>2];kc[J[d+20>>2]](d,b,k)}c=J[a+600>>2];g=c-J[a+ +608>>2]|0;d=J[a+604>>2];if((k|0)>0){c=0;while(1){if((g|0)<=3){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-g;if(!pf(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}b=c;f=b;c:{if((b|0)>=(k|0))break c;while(1){e=1;f=b;i=I[(b<<1)+j>>1]&-256;d:{while(1){b=e+f|0;if((k|0)<=(b|0)){h=e;break d}e:{if((i|0)!=K[((b<<1)+j|0)+1|0]<<8){h=e;break e}h=e+1|0;b=h+f|0;if((k|0)<=(b|0))break d;if((i|0)!=K[((b<<1)+j|0)+1|0]<<8)break e;h=129;e=e+2|0;if((e|0)!=129)continue;break c}break}if(h>>>0<=3)continue;break c}break}f= +h>>>0>3?f:b}f:{g:{if((f-c&-2)!=2)break g;b=c+1|0;e=L[(c<<1)+j>>1];i=(e&65280)<<16>>16;while(1){if((i|0)!=K[((b<<1)+j|0)+1|0]<<8)break g;b=b+1|0;if((f|0)!=(b|0))continue;break}H[d+1|0]=e>>>8;H[d|0]=((c^-1)+f|0)+127;g=g-2|0;d=d+2|0;c=f;break f}if((c|0)>=(f|0))break f;while(1){b=f-c|0;i=(b|0)>=127?127:b;if((i+3|0)>(g|0)){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-g;if(!pf(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}H[d|0]=i;d=d+1|0;g=g-1|0;if((c|0)==(f|0)){c=f;break f}e=0;b=i;l=b&3;if(l)while(1){H[d| +0]=K[((c<<1)+j|0)+1|0];d=d+1|0;c=c+1|0;b=b-1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}if(i-1>>>0>=3)while(1){e=(c<<1)+j|0;H[d|0]=K[e+1|0];H[d+1|0]=K[e+3|0];H[d+2|0]=K[e+5|0];H[d+3|0]=K[e+7|0];d=d+4|0;c=c+4|0;b=b-4|0;if(b)continue;break}g=g-i|0;if((c|0)<(f|0))continue;break}}b=0;h:{if((h|0)<4){h=0;break h}H[d|0]=h+126;H[d+1|0]=K[((f<<1)+j|0)+1|0];g=g-2|0;d=d+2|0}c=c+h|0;if((k|0)>(c|0))continue;break}while(1){if((g|0)<=3){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-g;if(!pf(a))return-1;g=J[a+600>>2]-J[a+ +608>>2]|0;d=J[a+604>>2]}c=b;f=b;i:{if((b|0)>=(k|0))break i;while(1){e=1;f=c;i=L[(c<<1)+j>>1]&255;j:{while(1){c=e+f|0;if((k|0)<=(c|0)){h=e;break j}k:{if(i^K[(c<<1)+j|0]){h=e;break k}h=e+1|0;c=h+f|0;if((k|0)<=(c|0))break j;if(i^K[(c<<1)+j|0])break k;h=129;e=e+2|0;if((e|0)!=129)continue;break i}break}if(h>>>0<=3)continue;break i}break}f=h>>>0>3?f:c}l:{m:{if((f-b&-2)!=2)break m;c=b+1|0;e=L[(b<<1)+j>>1];while(1){if(K[(c<<1)+j|0]^e&255)break m;c=c+1|0;if((f|0)!=(c|0))continue;break}H[d+1|0]=e;H[d|0]=((b^ +-1)+f|0)+127;g=g-2|0;d=d+2|0;b=f;break l}if((b|0)>=(f|0))break l;while(1){c=f-b|0;i=(c|0)>=127?127:c;if((i+3|0)>(g|0)){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-g;if(!pf(a))return-1;g=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}H[d|0]=i;d=d+1|0;g=g-1|0;if((b|0)==(f|0)){b=f;break l}e=0;c=i;l=c&3;if(l)while(1){H[d|0]=K[(b<<1)+j|0];d=d+1|0;b=b+1|0;c=c-1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}if(i-1>>>0>=3)while(1){e=(b<<1)+j|0;H[d|0]=K[e|0];H[d+1|0]=K[e+2|0];H[d+2|0]=K[e+4|0];H[d+3|0]=K[e+6|0];d=d+4|0;b=b+ +4|0;c=c-4|0;if(c)continue;break}g=g-i|0;if((b|0)<(f|0))continue;break}}n:{if((h|0)<4){h=0;break n}H[d|0]=h+126;H[d+1|0]=K[(f<<1)+j|0];g=g-2|0;d=d+2|0}b=b+h|0;if((k|0)>(b|0))continue;break}c=J[a+600>>2]}J[a+604>>2]=d;J[a+608>>2]=c-g;return 1}fa(77140,70372,390,93950);B()}fa(74429,70372,383,93950);B()}fa(76922,70372,382,93950);B()}function Tzb(a){a=a|0;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;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=kc[J[a+220>>2]](a, +J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+(b<<2)|0)+P(J[a+672>>2],3)|0;c=b;b=J[a+656>>2];h=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];e=K[a+649|0];f=J[a+644>>2];b:{if(!K[a+648|0]){b=f+(b<<2)|0;if(!e)break b;if((c|0)<=(h|0))break a;while(1){H[d+1|0]=K[b+2|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b|0]>>>3;H[d+2|0]=K[b+3|0];b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}b=f+(b<<3)|0;if(e){if((c|0)<=(h|0))break a;while(1){H[d+1|0]=K[b+4|0]&248|K[b+2|0]>>>5; +H[d|0]=K[b+2|0]<<3&224|K[b|0]>>>3;H[d+2|0]=K[b+6|0];b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;d:{if((c|0)!=65535){e=K[d+2|0];e=e<<8|e;if(e)break d}H[d+1|0]=K[b+4|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b|0]>>>3;H[d+2|0]=K[b+6|0];break c}if((e|0)==65535){e=K[b|0]|K[b+1|0]<<8;f=K[b+2|0]|K[b+3|0]<<8;g=P(c,(f<<8|f>>>8)&65535);f=K[d|0];j=K[d+1|0];i=f>>>3&28|j<< +5;k=i<<8&64512|i;i=c^65535;g=(g+P(k,i)|0)+32768|0;g=(g>>>16|0)+g|0;k=K[b+4|0]|K[b+5|0]<<8;f=(P(c,(k<<8|k>>>8)&65535)+P(i,f<<11&63488|f<<3)|0)+32768|0;H[d+1|0]=g>>>29|(f>>>16|0)+f>>>24&248;c=(P((e<<8|e>>>8)&65535,c)+P(P(i,j&248),257)|0)+32768|0;H[d|0]=g>>>21&224|(c>>>16|0)+c>>>27;break c}i=K[d+1|0];f=K[d|0];j=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;k=K[b+4|0]|K[b+5|0]<<8;l=c^65535;m=P(l,e^65535)^-1;H[d+2|0]=m>>>24;e=P(e,l);l=m>>>16|0;e=(e>>>0)/(l>>>0)|0;c=(c<<16>>>0)/(l>>>0)|0;l=P(c,(g<<8|g>>>8)& +65535);g=f>>>3&28|i<<5;g=(l+P(e,g<<8&64512|g)|0)+32767|0;H[d+1|0]=(P(e,f<<11&63488|f<<3)+P(c,(k<<8|k>>>8)&65535)|0)+32767>>>24&248|g>>>29;H[d|0]=g>>>21&224|(P(P(e,i&248),257)+P(c,(j<<8|j>>>8)&65535)|0)+32767>>>27}b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+3|0];e:{if(!c)break e;f:{if((c|0)!=255){e=K[d+2|0];if(e)break f}H[d+1|0]=K[b+2|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b|0]>>>3;H[d+2|0]=K[b+3|0];break e}i=K[d| +0];j=K[d+1|0];f=i>>>3&28|j<<5;i=i<<3;j=j&-8;if((e|0)==255){g=K[b+2|0];e=c^255;f=(P(e,f&255)+P(c,K[b+1|0])|0)+128|0;f=(f>>>8&255)+f|0;i=(P(e,i&255)+P(c,K[b|0])|0)+128|0;H[d|0]=f>>>5&224|(i>>>8&255)+i>>>11&31;c=(P(e,j&255)+P(c,g)|0)+128|0;H[d+1|0]=(c>>>8&255)+c>>>8&248|f>>>13&7;break e}g=K[b|0];k=K[b+2|0];l=K[b+1|0];m=c^255;n=P(m,e^255)>>>8^-1;H[d+2|0]=n;o=f&255;f=n&255;e=(P(e,m)>>>0)/(f>>>0)|0;c=(c<<8>>>0)/(f>>>0)|0;f=(P(o,e)+P(c,l)|0)+127|0;H[d+1|0]=(P(e,j&255)+P(c,k)|0)+127>>>8&248|f>>>13&7;H[d| +0]=f>>>5&224|(P(e,i&255)+P(c,g)|0)+127>>>11&31}b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;h=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];g:{if((c|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-h|0;h:{if((d|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function Uzb(a){a=a|0;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;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=kc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+(b<<2)|0)+P(J[a+672>>2],3)|0;c=b;b=J[a+656>>2];h=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];e=J[a+644>>2];b:{if(!K[a+648|0]){b=e+(b<<2)|0;if(!f)break b;if((c|0)<=(h|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;H[d+2|0]=K[b+3|0];b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}b= +e+(b<<3)|0;if(f){if((c|0)<=(h|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;H[d+2|0]=K[b+6|0];b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;d:{if((c|0)!=65535){f=K[d+2|0];f=f<<8|f;if(f)break d}H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;H[d+2|0]=K[b+6|0];break c}if((f|0)==65535){f=K[b+4|0]|K[b+5|0]<< +8;e=K[b+2|0]|K[b+3|0]<<8;g=P(c,(e<<8|e>>>8)&65535);e=K[d|0];j=K[d+1|0];i=e>>>3&28|j<<5;k=i<<8&64512|i;i=c^65535;g=(g+P(k,i)|0)+32768|0;g=(g>>>16|0)+g|0;l=K[b|0]|K[b+1|0]<<8;e=(P(c,(l<<8|l>>>8)&65535)+P(i,e<<11&63488|e<<3)|0)+32768|0;H[d+1|0]=g>>>29|(e>>>16|0)+e>>>24&248;c=(P((f<<8|f>>>8)&65535,c)+P(P(i,j&248),257)|0)+32768|0;H[d|0]=g>>>21&224|(c>>>16|0)+c>>>27;break c}i=K[d+1|0];e=K[d|0];j=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;l=K[b+4|0]|K[b+5|0]<<8;m=c^65535;k=P(m,f^65535)^-1;H[d+2|0]=k>>>24; +n=(g<<8|g>>>8)&65535;g=k>>>16|0;c=(c<<16>>>0)/(g>>>0)|0;f=(P(f,m)>>>0)/(g>>>0)|0;k=e>>>3&28|i<<5;g=(P(n,c)+P(f,k<<8&64512|k)|0)+32767|0;H[d+1|0]=g>>>29|(P(f,e<<11&63488|e<<3)+P(c,(j<<8|j>>>8)&65535)|0)+32767>>>24&248;H[d|0]=g>>>21&224|(P(P(f,i&248),257)+P(c,(l<<8|l>>>8)&65535)|0)+32767>>>27}b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+3|0];e:{if(!c)break e;f:{if((c|0)!=255){f=K[d+2|0];if(f)break f}H[d+1|0]=K[b|0]&248| +K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;H[d+2|0]=K[b+3|0];break e}i=K[d|0];j=K[d+1|0];e=i>>>3&28|j<<5;i=i<<3;j=j&-8;if((f|0)==255){g=K[b|0];f=c^255;i=(P(f,i&255)+P(c,K[b+2|0])|0)+128|0;e=(P(f,e&255)+P(c,K[b+1|0])|0)+128|0;e=(e>>>8&255)+e|0;H[d|0]=(i>>>8&255)+i>>>11&31|e>>>5&224;c=(P(f,j&255)+P(c,g)|0)+128|0;H[d+1|0]=e>>>13&7|(c>>>8&255)+c>>>8&248;break e}g=K[b+2|0];l=K[b+1|0];m=K[b|0];k=c^255;n=P(k,f^255)>>>8^-1;H[d+2|0]=n;o=e&255;e=n&255;f=(P(f,k)>>>0)/(e>>>0)|0;c=(c<<8>>>0)/(e>>>0)|0;e= +(P(o,f)+P(c,l)|0)+127|0;H[d+1|0]=e>>>13&7|(P(f,j&255)+P(c,m)|0)+127>>>8&248;H[d|0]=(P(f,i&255)+P(c,g)|0)+127>>>11&31|e>>>5&224}b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;h=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];g:{if((c|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-h|0;h:{if((d|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0} +function Hh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=fc-16|0;fc=j;g=J[a>>2];a:{b:{f=J[a+4>>2];c:{if(!f){f=0;break c}if(J[a+40>>2])break c;e=f<<1;if((e|0)<0){d=6;break b}if(e){d=10;if(e>>>0>268435455)break b;f=f<<4;d=kc[J[g+4>>2]](g,f)|0;if(!d){d=64;J[a+40>>2]=0;break a}Ac(d,0,f);f=J[a+4>>2]}H[a+16|0]=1;J[a+40>>2]=d;i=(f<<3)+d|0;J[a+44>>2]=i;e=J[a+24>>2];if(e)h=e+(I[a+22>>1]<<3)|0;else h=0;J[a+60>>2]=h;k=a- -64|0;e=J[a+28>>2];if(e)h=e+I[a+22>>1]|0;else h=0;J[k>>2]=h;e=J[a+32>>2];if(e)h= +e+(I[a+20>>1]<<1)|0;else h=0;J[a+68>>2]=h;e=I[a+22>>1]<<3;J[a+80>>2]=e+i;J[a+76>>2]=d+e}d:{e:{f:{b=I[a+58>>1]+(I[a+22>>1]+b|0)|0;k=b>>>0<=f>>>0;g:{if(k){b=f;break g}d=10;e=b+7|0;b=e&-8;if(b>>>0>32767)break a;d=J[a+24>>2];if((f|e)<0)break f;h:{i:{j:{if(!b){if(d)kc[J[g+8>>2]](g,d);e=0;J[a+24>>2]=0;i=a+28|0;d=J[i>>2];if(!d)break j;kc[J[g+8>>2]](g,d);break j}h=(b|0)<=(f|0);k:{if(!f){e=kc[J[g+4>>2]](g,b<<3)|0;d=!e<<6;break k}i=kc[J[g+12>>2]](g,f<<3,b<<3,d)|0;e=i?i:d;d=!i<<6}l:{if(e?h|d:1){J[a+24>>2]=e; +if(!d)break l;break e}Ac((f<<3)+e|0,0,b-f<<3);J[a+24>>2]=e}i=a+28|0;m:{if(!f){e=kc[J[g+4>>2]](g,b)|0;d=!e<<6;break m}e=J[a+28>>2];d=kc[J[g+12>>2]](g,f,b,e)|0;e=d?d:e;d=!d<<6}if(d|h|!e)break i;Ac(f+e|0,0,b-f|0)}J[j+12>>2]=0;J[i>>2]=e;break h}J[j+12>>2]=d;J[a+28>>2]=e;if(d)break e}if(K[a+16|0]){e=_c(g,8,f<<1,b<<1,J[a+40>>2],j+12|0);J[a+40>>2]=e;d=J[j+12>>2];if(d)break e;d=b<<3;f=f<<3;cd(d+e|0,f+e|0,f);J[a+44>>2]=d+J[a+40>>2]}J[a+4>>2]=b}if(!(J[a+40>>2]|!b)){f=b<<1;if((f|0)<0){d=6;break d}n:{if(!f){f= +0;break n}d=10;if(f>>>0>268435455)break d;d=J[a>>2];b=b<<4;f=kc[J[d+4>>2]](d,b)|0;if(!f){d=64;J[a+40>>2]=0;break a}Ac(f,0,b);b=J[a+4>>2]}H[a+16|0]=1;J[a+40>>2]=f;d=(b<<3)+f|0;J[a+44>>2]=d;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;h=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[h>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;b=I[a+22>>1]<<3;J[a+80>>2]=b+d;J[a+76>>2]=b+f}d=0;J[j+12>>2]=0;b=I[a+56>>1]+(I[a+20>>1]+c|0)|0;c=J[a+8>>2];o:{if(b>>>0>c>>>0){d= +10;b=b+3&-4;if(b>>>0>32767)break a;l=a,m=_c(g,2,c,b,J[a+32>>2],j+12|0),J[l+32>>2]=m;d=J[j+12>>2];if(d)break e;J[a+8>>2]=b;break o}if(k)break a}d=0;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;c=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[c>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;if(!K[a+16|0])break a;b=I[a+22>>1]<<3;J[a+76>>2]=b+J[a+40>>2];J[a+80>>2]=b+J[a+44>>2];break a}J[a+24>>2]=d;d=6}b=J[a>>2];c=J[a+24>>2];if(c)kc[J[b+8>>2]](b,c);J[a+24>> +2]=0;c=J[a+28>>2];if(c)kc[J[b+8>>2]](b,c);J[a+28>>2]=0;c=J[a+32>>2];if(c)kc[J[b+8>>2]](b,c);J[a+32>>2]=0;c=J[a+40>>2];if(c)kc[J[b+8>>2]](b,c);J[a+40>>2]=0;c=J[a+52>>2];if(c)kc[J[b+8>>2]](b,c);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+36>>2]=0;J[a+88>>2]=J[a+52>>2];b=J[a+48>>2];J[a+80>>2]=J[a+44>>2];J[a+84>>2]=b;b=J[a+40>>2];J[a+72>>2]=J[a+36>>2];J[a+76>>2]=b;b=J[a+32>>2];J[a+64>>2]=J[a+28>>2];J[a+68>>2]=b;b=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>> +2]=b;break a}J[a+40>>2]=0;break a}J[a+40>>2]=0}fc=j+16|0;return d}function bra(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=JM(a+16|0);J[699344]=0;h=_(2226,a+384|0)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[a+752>>2]=340552;b=a+756|0;J[b>>2]=0;J[b+4>>2]=0;J[a+764>>2]=0;J[a+768>>2]=0;J[a+772>>2]=0;J[a+776>>2]=0;J[699344]=0;ga(2227,a+768|0,2439532,5)|0;c=J[699344];J[699344]=0;i:{j:{if((c|0)!=1){if(H[a+767|0]>=0)break j;J[a+760>>2]=0;b=J[a+756>>2];break i}b=Z()|0;if(H[a+779|0]<0)uc(J[a+ +768>>2]);if(H[a+767|0]>=0)break b;uc(J[a+756>>2]);break b}H[a+767|0]=0}f=a+752|0;J[b>>2]=0;I[a+800>>1]=0;J[a+792>>2]=0;J[a+796>>2]=0;J[a+784>>2]=0;J[a+788>>2]=0;J[a+804>>2]=0;J[a+808>>2]=0;J[a+812>>2]=0;J[a+816>>2]=0;b=a+836|0;J[b>>2]=0;J[b+4>>2]=0;J[a+832>>2]=340552;J[a+844>>2]=0;J[a+848>>2]=0;J[a+852>>2]=0;J[a+856>>2]=0;J[699344]=0;ga(2227,a+848|0,2439532,5)|0;c=J[699344];J[699344]=0;k:{l:{if((c|0)!=1){if(H[a+847|0]>=0)break l;J[a+840>>2]=0;b=J[a+836>>2];break k}b=Z()|0;if(H[a+859|0]<0)uc(J[a+848>> +2]);if(H[a+847|0]>=0)break c;uc(J[a+836>>2]);break c}H[a+847|0]=0}J[b>>2]=0;I[a+880>>1]=0;J[a+872>>2]=0;J[a+876>>2]=0;J[a+864>>2]=0;J[a+868>>2]=0;J[a+884>>2]=0;J[a+888>>2]=0;J[a+892>>2]=0;J[a+896>>2]=0;J[699344]=0;d=_(2256,a+920|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;c=_(2256,a+924|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[a+944>>2]=2439476;b=a+968|0;J[b>>2]=0;J[b+4>>2]=0;J[a+952>>2]=0;J[a+956>>2]=0;J[a+964>>2]=b;J[a+976>>2]=0;J[a+980>>2]=0;J[a+948>>2]=0;J[a+984>>2]= +0;J[a+988>>2]=0;J[a+992>>2]=0;J[a+996>>2]=0;J[a+1E3>>2]=0;J[a+1004>>2]=0;b=a+1024|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1032|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1040|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1048|0;J[b>>2]=0;J[b+4>>2]=0;H[a+1056|0]=0;b=a+1064|0;J[b>>2]=1E3;J[b+4>>2]=0;J[699344]=0;e=_(27,32008)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[e+4>>2]=1E3;d=e+32008|0;c=e+8|0;b=c;while(1){J[b+128>>2]=0;J[b+132>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+16>> +2]=0;J[b+20>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+152>>2]=0;J[b+144>>2]=0;J[b+148>>2]=0;J[b+120>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+88>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;b=b+160|0;if((d|0)!=(b|0))continue;break}J[a+936>>2]=0;H[a+928|0]=1;b=a+1096|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1088|0;J[b>>2]=0;J[b+4>>2]=1072693248;b=a+1080|0;J[b>>2]=0;J[b+4>>2]=1072693248;H[a+1072|0]=0;J[a+1060>>2]=c;b=a+1104|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1136|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1144|0;J[b>>2]= +0;J[b+4>>2]=0;b=a+1200|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1192|0;J[b>>2]=-1717986918;J[b+4>>2]=1069128089;b=a+1160|0;J[b>>2]=4;J[b+4>>2]=1;b=a+1152|0;J[b>>2]=8;J[b+4>>2]=4;b=a+1208|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1216|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1224|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1232|0;J[b>>2]=8;J[b+4>>2]=4;b=a+1240|0;J[b>>2]=4;J[b+4>>2]=1;J[a+912>>2]=0;J[a+916>>2]=0;J[a+904>>2]=0;J[a+1264>>2]=0;J[a+1268>>2]=0;b=a+1269|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;J[a+ +824>>2]=f;return a|0}b=Z()|0;break a}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;XU(a+944|0);Jd(c)}Jd(d)}yk(a+832|0)}yk(f)}bo(h)}bo(g);ba(b|0);B()}function zxa(a){a=a|0;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,C=0,D=0,E=0,F=0,G=0,H=0,I=0,L=0;i=fc-32|0;fc=i;x=2424160;a:{b:{j=K[a+89|0];n=J[a+92>>2];c:{if(((n|0)<2?j:0)|!j&(n|0)<3)break c;x=2390543;j=J[a+96>>2];if((j|0)<=0)break c;q=J[a+132>>2];r=J[a+128>>2];s=J[a+144>>2];y=J[a+140>>2];t= +J[a+108>>2];u=J[a+104>>2];v=J[a+120>>2];z=J[a+116>>2];while(1){a=b+2|0;if((j|0)<=(a|0))a=b+1|0;else{A=b+1|0;d:{e:{f:{if((b|0)<(z|0)|(b|0)>(v|0))while(1){a=a+1|0;if(((a|0)%(n|0)|0)!=(b|0))break f;if((a|0)!=(j|0))continue;break d}if((b|0)<(y|0)|(b|0)>(s|0))while(1){a=a+1|0;if(((a|0)%(n|0)|0)!=(b|0)){a=Qc(i+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if((a|0)!=(j|0))continue;break d}if((b|0)>=(v|0))break e;G=(b-q<<2)+r|0;H=(b-t<<2)+u| +0;I=(A-q<<2)+r|0;L=(A-t<<2)+u|0;while(1){g:{C=a+1|0;c=(C|0)%(n|0)|0;if((c|0)==(b|0))break g;h:{i:{j:{k:{if((b|0)<(s|0)){if((a|0)<(z|0)|(a|0)>(v|0))break k;if((a|0)<(y|0)|(a|0)>(s|0))break j;if((c|0)<(z|0)|(c|0)>(v|0))break i;if((c|0)<(y|0)|(c|0)>(s|0))break h;f=J[H>>2];k=J[(a-t<<2)+u>>2];w=f-k|0;l=J[(c-q<<2)+r>>2];d=J[(a-q<<2)+r>>2];e=l-d|0;m=J[G>>2];D=d-m|0;c=J[(c-t<<2)+u>>2];g=c-k|0;a=P(w,e)+P(D,g)|0;o=J[L>>2];E=o-k|0;p=J[I>>2];F=d-p|0;h=P(e,E)+P(g,F)|0;l:{if(!(a|h)){h=P(e,m-d|0)+P(g,w)|0;w=(h| +0)<0?-1:(h|0)!=0;h=P(e,m-l|0)+P(g,f-c|0)|0;a=1;if((P(w,(h|0)<0?-1:(h|0)!=0)|0)<=0)break l;d=P(e,p-d|0)+P(g,E)|0;h=(d|0)<0?-1:(d|0)!=0;d=P(e,p-l|0)+P(g,o-c|0)|0;a=1;if((P(h,(d|0)<0?-1:(d|0)!=0)|0)<=0)break l;d=p-m|0;e=o-f|0;g=P(d,D)+P(e,k-f|0)|0;k=P(d,F)+P(e,k-o|0)|0;a=1;if((P((g|0)<0?-1:(g|0)!=0,(k|0)<0?-1:(k|0)!=0)|0)<=0)break l;a=P(d,l-m|0)+P(e,c-f|0)|0;f=(a|0)<0?-1:(a|0)!=0;a=P(d,l-p|0)+P(e,c-o|0)|0;a=(P(f,(a|0)<0?-1:(a|0)!=0)|0)<=0;break l}e=m-l|0;l=o-f|0;g=c-f|0;c=p-m|0;e=P(e,l)+P(g,c)|0;f=P(l, +m-d|0)+P(c,k-f|0)|0;if((P((e|0)<0?-1:(e|0)!=0,(f|0)<0?-1:(f|0)!=0)|0)<=0)a=(P((a|0)<0?-1:(a|0)!=0,(h|0)<0?-1:(h|0)!=0)|0)<=0;else a=0}if(!a)break g;x=2424192;break c}a=Qc(i+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=Qc(i+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=Qc(i+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!= +1)break b;break a}a=Qc(i+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=Qc(i+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=C;if((j|0)!=(a|0))continue;break}break d}a=Qc(i+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}while(1){a=a+1|0;if(((a|0)%(n|0)|0)==(b|0)){if((a|0)!=(j|0))continue;break d}break}a=Qc(i+ +8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=A}b=a;if((j|0)!=(b|0))continue;break}}fc=i+32|0;return x|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function $Y(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=fc-176|0;fc=e;a:{if(b&384){ae(2362038,11,1,c);break a}b:{if(!(b&1))break b;g=J[a+72>>2];if(!g)break b;d=fc-80|0;fc=d;ae(2362251,13,1,c);H[d+79|0]=0;H[d+78|0]=9;f=J[g+4>>2];J[d+68>>2]=J[g>>2];J[d+72>>2]=f;i=d+78|0; +J[d+64>>2]=i;md(c,2362265,d- -64|0);f=J[g+12>>2];J[d+52>>2]=J[g+8>>2];J[d+56>>2]=f;J[d+48>>2]=i;md(c,2362314,d+48|0);J[d+36>>2]=J[g+16>>2];J[d+32>>2]=i;md(c,2362440,d+32|0);if(!(!J[g+24>>2]|!J[g+16>>2]))while(1){l=d+78|0;J[d+16>>2]=l;J[d+20>>2]=h;md(c,2362492,d+16|0);i=J[g+24>>2];f=fc-48|0;fc=f;H[f+46|0]=9;H[f+47|0]=0;H[f+45|0]=9;j=P(h,52)+i|0;i=J[j+4>>2];J[f+36>>2]=J[j>>2];J[f+40>>2]=i;i=f+45|0;J[f+32>>2]=i;md(c,2362880,f+32|0);J[f+20>>2]=J[j+24>>2];J[f+16>>2]=i;md(c,2362897,f+16|0);J[f+4>>2]=J[j+ +32>>2];J[f>>2]=i;md(c,2362966,f);fc=f+48|0;J[d>>2]=l;md(c,2362542,d);h=h+1|0;if(h>>>0>2])continue;break}ae(2362591,2,1,c);fc=d+80|0}if(!(!(b&2)|!J[a+72>>2])){ae(2370672,36,1,c);g=J[a+88>>2];J[e+160>>2]=J[a+84>>2];J[e+164>>2]=g;md(c,2370709,e+160|0);g=J[a+96>>2];J[e+144>>2]=J[a+92>>2];J[e+148>>2]=g;md(c,2370727,e+144|0);g=J[a+108>>2];J[e+128>>2]=J[a+104>>2];J[e+132>>2]=g;md(c,2370745,e+128|0);_Y(J[a+12>>2],J[J[a+72>>2]+16>>2],c);ae(2362591,2,1,c)}c:{if(!(b&8)|!J[a+72>>2])break c;g=P(J[a+104>> +2],J[a+108>>2]);if(!g)break c;d=J[a+156>>2];while(1){_Y(d,J[J[a+72>>2]+16>>2],c);d=d+5644|0;k=k+1|0;if((g|0)!=(k|0))continue;break}}if(!(b&16))break a;h=J[a+188>>2];ae(2370399,37,1,c);g=J[h>>2];b=J[h+4>>2];a=J[h+12>>2];J[e+120>>2]=J[h+8>>2];J[e+124>>2]=a;J[e+112>>2]=g;J[e+116>>2]=b;md(c,2370437,e+112|0);ae(2370504,17,1,c);if(!(!J[h+28>>2]|!J[h+24>>2])){d=0;while(1){a=J[h+28>>2]+P(d,24)|0;f=L[a>>1];g=J[a+8>>2];b=J[a+12>>2];J[e+96>>2]=J[a+16>>2];J[e+88>>2]=g;J[e+92>>2]=b;J[e+80>>2]=f;md(c,2370522,e+ +80|0);d=d+1|0;if(d>>>0>2])continue;break}}ae(2370394,4,1,c);f=J[h+40>>2];d:{if(!f)break d;g=J[h+36>>2];if(!g)break d;a=0;d=0;if(g>>>0>=4){b=g&-4;while(1){a=J[(f+P(d|3,40)|0)+4>>2]+(J[(f+P(d|2,40)|0)+4>>2]+(J[(f+P(d|1,40)|0)+4>>2]+(J[(f+P(d,40)|0)+4>>2]+a|0)|0)|0)|0;d=d+4|0;m=m+4|0;if((b|0)!=(m|0))continue;break}}b=g&3;if(b)while(1){a=J[(f+P(d,40)|0)+4>>2]+a|0;d=d+1|0;n=n+1|0;if((b|0)!=(n|0))continue;break}if(!a)break d;ae(2370553,16,1,c);if(J[h+36>>2]){k=J[h+40>>2];i=0;while(1){j=P(i,40); +m=J[(j+k|0)+4>>2];J[e+68>>2]=m;J[e+64>>2]=i;md(c,2370570,e- -64|0);k=J[h+40>>2];e:{if(!m)break e;d=0;if(!J[(j+k|0)+16>>2])break e;while(1){l=J[(j+J[h+40>>2]|0)+16>>2]+P(d,24)|0;n=J[l>>2];f=J[l+4>>2];g=J[l+8>>2];b=J[l+12>>2];a=J[l+20>>2];J[e+56>>2]=J[l+16>>2];J[e+60>>2]=a;J[e+48>>2]=g;J[e+52>>2]=b;J[e+40>>2]=n;J[e+44>>2]=f;J[e+32>>2]=d;md(c,2370606,e+32|0);d=d+1|0;if((m|0)!=(d|0))continue;break}k=J[h+40>>2]}a=j+k|0;f:{if(!J[a+24>>2])break f;d=0;if(!J[a+20>>2])break f;while(1){a=J[(j+k|0)+24>>2]+P(d, +24)|0;f=L[a>>1];g=J[a+8>>2];b=J[a+12>>2];J[e+16>>2]=J[a+16>>2];J[e+8>>2]=g;J[e+12>>2]=b;J[e>>2]=f;md(c,2370522,e);d=d+1|0;k=J[h+40>>2];if(d>>>0>2])continue;break}}i=i+1|0;if(i>>>0>2])continue;break}}ae(2370394,4,1,c)}ae(2362591,2,1,c)}fc=e+176|0}function Cda(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;g=fc+-64|0;fc=g;a:{b:{c:{d=J[a+584>>2];if(d){if(!J[d+16>>2])break c;c=Dc(40);J[c>>2]=0;c=Hf(d+624|0,1,c,4);k=gc;d:{e:{while(1){if(f)break d;J[699344]=0;$(668,d|0); +j=J[699344];J[699344]=0;if((j|0)==1)break b;i=-1;f:{g:{if(!j)break g;f=J[699345];if(!f)break g;i=Pc(J[j>>2],c,k);if(!i)break f;gc=f}f=gc;if((i|0)!=1)break e;continue}break}break a}e=1}uc(c);h:{if(!e)break h;if((YP(d,1)|0)!=1)break h;i:{if(K[a+13|0]&4){e=J[a+72>>2];c=J[a+68>>2];f=Cn(a);break i}c=J[a+60>>2]-J[a+472>>2]|0;e=J[a+100>>2];e=c>>>0>>0?c:e;c=J[a+56>>2];f=mV(a)}J[d+840>>2]=f;j:{if(!b){b=c;break j}if(L[a+138>>1]!=2){b=c;break j}b=0;f=L[d+834>>1];if(0-f>>>0>c>>>0)b=((c+f|0)-1>>>0)/(f>>>0)| +0;c=L[d+836>>1];if(0-c>>>0<=e>>>0){e=0;break j}e=((c+e|0)-1>>>0)/(c>>>0)|0}c=J[d+28>>2];f=J[d+32>>2];if(!(c>>>0>=b>>>0&f>>>0>=e>>>0)){i=J[a+628>>2];J[g+60>>2]=f;J[g+56>>2]=c;J[g+52>>2]=e;J[g+48>>2]=b;le(i,97707,79905,g+48|0);c=J[d+28>>2]}f=J[d+32>>2];if(!(f>>>0<=e>>>0&b>>>0>=c>>>0)){a=J[a+628>>2];J[g+12>>2]=f;J[g+8>>2]=c;J[g+4>>2]=e;J[g>>2]=b;Uc(a,97707,80225,g);break h}c=J[d+36>>2];e=L[a+138>>1];if((c|0)!=(((e|0)!=1?1:L[a+98>>1])|0)){Uc(J[a+628>>2],97707,80577,0);break h}if(J[d+212>>2]!=L[a+84>> +1]){Uc(J[a+628>>2],97707,80853,0);break h}c=J[d+216>>2];b=J[c+8>>2];k:{if((e|0)==1){e=L[d+834>>1];f=L[d+836>>1];c=J[c+12>>2];l:{if((e|0)==(b|0)&(f|0)==(c|0))break l;i=J[a+628>>2];J[g+44>>2]=f;J[g+40>>2]=e;J[g+36>>2]=c;J[g+32>>2]=b;le(i,97707,81301,g+32|0);b=J[d+216>>2];if(!(J[b+8>>2]<=L[d+834>>1]&J[b+12>>2]<=L[d+836>>1])){Uc(J[a+628>>2],97707,81589,0);break h}if(kt(a,33918))break l;b=J[a+628>>2];c=J[d+216>>2];e=J[c+12>>2];J[g+16>>2]=J[c+8>>2];J[g+20>>2]=e;le(b,97707,81836,g+16|0);b=J[d+216>>2];I[d+ +834>>1]=J[b+8>>2];I[d+836>>1]=J[b+12>>2]}b=J[d+36>>2];if((b|0)<2)break k;c=J[d+216>>2];h=1;while(1){e=c+P(h,88)|0;if(!(J[e+8>>2]!=1|J[e+12>>2]!=1)){h=h+1|0;if((b|0)!=(h|0))continue;break k}break}h=0;Uc(J[a+628>>2],97707,81936,0);break h}if((b|0)==1&J[c+12>>2]==1)break k;Uc(J[a+628>>2],97707,81936,0);break h}m:{n:{if(!(L[a+138>>1]!=1|L[d+832>>1]!=6|J[d+924>>2]!=1)){J[d+40>>2]=3;J[d+44>>2]=2;break n}J[d+40>>2]=0;J[d+44>>2]=0;if(L[a+138>>1]!=1)break n;b=0;h=655;c=1;if(L[d+834>>1]!=1)break m;c=1;if(L[d+ +836>>1]!=1)break m}b=1;h=645;c=0}J[d+68>>2]=c;J[a+556>>2]=h;J[a+548>>2]=h;J[a+540>>2]=h;f=0;e=0;c=Dc(40);J[c>>2]=0;c=Hf(d+624|0,1,c,4);h=gc;o:{p:{while(1){if(f)break o;J[699344]=0;_(77,d|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break b;i=-1;q:{r:{if(!j)break r;f=J[699345];if(!f)break r;i=Pc(J[j>>2],c,h);if(!i)break q;gc=f}f=gc;if((i|0)!=1)break p;continue}break}break a}e=1}uc(c);h=(e|0)!=0;if(!e|b)break h;a=J[a+584>>2];c=J[d+216>>2];e=0;i=0;h=J[d+36>>2];s:{if((h|0)>0)while(1){f=J[c+8>>2];j=J[c+12>> +2];k=TP(a,J[c+28>>2]<<3,j<<3);b=0;if(!k)break s;J[(a+(i<<2)|0)+844>>2]=k;c=c+88|0;e=P(f,j)+e|0;i=i+1|0;if((h|0)!=(i|0))continue;break}J[a+888>>2]=e;b=1}if(!b){h=0;break h}J[d+884>>2]=8;h=1}fc=g- -64|0;return h|0}fa(75270,70506,691,97707);B()}fa(79113,70506,692,97707);B()}a=Z()|0;uc(c);ba(a|0);B()}uc(c);nf(j,f);B()}function Fm(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;l=fc-32|0;fc=l;d=c-b|0;a:{if((d|0)<=-2){a=Qc(l+8|0,2394720,2385663,178,2423504,0);J[699344]=0;$(5179, +a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}b:{c:{if((d|0)==-1){b=J[a+16>>2];if((b|0)<=J[a+20>>2]){c=J[a>>2];d=J[c+16>>2];kc[d|0](kc[J[c+4>>2]](J[a+4>>2],b-J[a+8>>2]|0)|0,(J[a+20>>2]-J[a+16>>2]|0)+1|0)}b=J[a+4>>2];if(b)uc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0;break c}e=J[a+12>>2];d=J[a+8>>2];if(!((e|0)<(c|0)|(d|0)>(b|0))){e=J[a+16>>2];d:{e:{if((e|0)>(b|0)){e=J[a>>2];h=J[e+8>>2];g=kc[J[e+4>>2]](J[a+4>>2],b-d|0)|0;e=J[a+16>>2];d=b;break e}if((b| +0)<=(e|0))break d;g=J[a>>2];h=J[g+16>>2];g=kc[J[g+4>>2]](J[a+4>>2],e-d|0)|0;e=b;d=J[a+16>>2]}kc[h|0](g,e-d|0)}d=J[a+20>>2];f:{g:{if((d|0)<(c|0)){e=J[a>>2];h=J[e+8>>2];g=kc[J[e+4>>2]](J[a+4>>2],(d-J[a+8>>2]|0)+1|0)|0;e=J[a+20>>2];d=c;break g}if((c|0)>=(d|0))break f;d=J[a>>2];h=J[d+16>>2];g=kc[J[d+4>>2]](J[a+4>>2],(c-J[a+8>>2]|0)+1|0)|0;e=c;d=J[a+20>>2]}kc[h|0](g,d-e|0)}J[a+20>>2]=c;J[a+16>>2]=b;break c}f=e;e=(d|0)>(e|0);h=e?b:f;g=e?b:d;if((g|0)>(b|0))while(1){d=h-g|0;d=(d|0)>=32768?32768:d;g=g-((d| +0)<=8?8:d)|0;if((g|0)>(b|0))continue;break}if((c|0)>(h|0))while(1){d=h-g|0;d=(d|0)>=32768?32768:d;h=((d|0)<=8?8:d)+h|0;if((h|0)<(c|0))continue;break}d=P(J[J[a>>2]>>2],(h-g|0)+1|0);k=Ac(vc(d),0,d);h:{d=J[a+16>>2];i:{j:{if((d|0)>(b|0)){d=J[a>>2];e=J[d+8>>2];d=J[d+4>>2];J[699344]=0;d=aa(d|0,k|0,b-g|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;f=J[a+16>>2];J[699344]=0;da(e|0,d|0,f-b|0);d=J[699344];J[699344]=0;if((d|0)==1)break i;e=J[a+16>>2];break j}e=b;if((b|0)<=(d|0))break j;e=J[a+4>>2];f=J[a>> +2];j=J[f+16>>2];f=J[f+4>>2];i=J[a+8>>2];J[699344]=0;d=aa(f|0,e|0,d-i|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[a+16>>2];J[699344]=0;da(j|0,d|0,b-e|0);d=J[699344];J[699344]=0;e=b;if((d|0)==1)break i}f=J[a+20>>2];k:{if((f|0)<(c|0)){d=J[a>>2];j=J[d+8>>2];d=J[d+4>>2];J[699344]=0;d=aa(d|0,k|0,(f-g|0)+1|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;f=J[a+20>>2];J[699344]=0;da(j|0,d|0,c-f|0);d=J[699344];J[699344]=0;if((d|0)==1)break i;d=J[a+20>>2];break k}d=c;if((f|0)<=(d|0))break k;d=J[a+ +4>>2];f=J[a>>2];j=J[f+16>>2];f=J[f+4>>2];i=J[a+8>>2];J[699344]=0;d=aa(f|0,d|0,(c-i|0)+1|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;f=J[a+20>>2];J[699344]=0;da(j|0,d|0,f-c|0);f=J[699344];J[699344]=0;d=c;if((f|0)==1)break i}if((d|0)<(e|0))break h;f=J[a>>2];j=J[f+12>>2];f=J[f+4>>2];J[699344]=0;f=aa(f|0,k|0,e-g|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break i;i=J[a+4>>2];m=J[J[a>>2]+4>>2];n=J[a+8>>2];J[699344]=0;i=aa(m|0,i|0,e-n|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break i;J[699344]=0;ia(j| +0,f|0,i|0,(d-e|0)+1|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break h}oa(ea(0)|0)|0;uc(k);J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break b;ba(a|0);B()}d=J[a+4>>2];if(d)uc(d);J[a+20>>2]=c;J[a+16>>2]=b;J[a+12>>2]=h;J[a+8>>2]=g;J[a+4>>2]=k}fc=l+32|0;return}ea(0)|0;Bc()}B()}function Tl(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L= +0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;q=J[a+20>>2];z=J[a+28>>2]-q>>3;w=J[a+8>>2];while(1){B=J[q+12>>2];x=I[q+8>>1];a=I[q+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){p=J[c>>2];break a}p=J[c>>2];i=e;e=a+255&130816;if((i|0)==(e|0))break a;if(p)uc(p);J[c+4>>2]=e;p=vc(e<<2);J[c>>2]=p}o=p;e=J[d+4>>2];i=J[e>>2];C=O[i+32>>3];D=O[i>>3];L=O[i+16>>3];E=O[i+40>>3];F=O[i+8>>3];t=O[d+16>>3];r=O[i+24>>3];j=O[d+24>>3];i=a;k=(i|0)<=1?1:i;J[e+24>>2]=k;J[e+4>>2]=k;A=t+ +(x|0);t=r;r=j+ +(w|0);G=t* +r;j=(E+(F*A+G))*256;j=j+(j<0?-.5:.5);b:{if(R(j)<2147483648){g=~~j;break b}g=-2147483648}J[e+40>>2]=g;t=r*L;j=(C+(A*D+t))*256;j=j+(j<0?-.5:.5);c:{if(R(j)<2147483648){f=~~j;break c}f=-2147483648}J[e+20>>2]=f;r=A+ +(i>>>0);j=(E+(r*F+G))*256;j=j+(j<0?-.5:.5);d:{if(R(j)<2147483648){m=~~j;break d}m=-2147483648}h=m-g|0;g=(h|0)/(k|0)|0;l=h-P(g,k)|0;n=(l|0)<=0;J[e+28>>2]=g-n;j=(C+(r*D+t))*256;j=j+(j<0?-.5:.5);e:{if(R(j)<2147483648){g=~~j;break e}g=-2147483648}g=g-f|0;f=(g|0)/(k|0)|0;m=f;h=g-P(f,k)|0;f=(h| +0)<=0;J[e+8>>2]=m-f;g=l+(n?i:0)|0;J[e+32>>2]=g;f=h+(f?i:0)|0;J[e+12>>2]=f;J[e+36>>2]=g-i;J[e+16>>2]=f-i;e=J[d+4>>2];g=J[e+40>>2];f=J[e+20>>2];while(1){e=J[d+36>>2];k=J[d>>2];s=f-J[d+32>>2]|0;f=s>>8;J[k+8>>2]=f;u=g-e|0;h=J[k+28>>2];l=(J[k+32>>2]+(u>>8)>>>0)%(h>>>0)|0;J[k+36>>2]=l;e=J[J[k>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];m=f+J[k+16>>2]|0;f=J[k+12>>2];n=(m>>>0)%(f>>>0)|0;J[k+20>>2]=n;g=g+P(e,l>>>0>2]?l:h+(l^-1)|0)|0;J[k+4>>2]=g;e=g+(n<<2)|0;N=K[e+2|0];Q=K[e+1|0];S=K[e|0];v=K[e+3|0];e=n+1|0;e= +e>>>0>>0?e:0;J[k+20>>2]=e;e=g+(e<<2)|0;T=K[e+2|0];U=K[e+1|0];V=K[e|0];m=K[e+3|0];l=J[d>>2];e=J[l+36>>2]+1|0;h=J[l+28>>2];n=h>>>0>e>>>0?e:0;J[l+36>>2]=n;e=J[J[l>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];f=(J[l+16>>2]+J[l+8>>2]>>>0)%M[l+12>>2]|0;J[l+20>>2]=f;e=g+P(e,n>>>0>2]?n:h+(n^-1)|0)|0;J[l+4>>2]=e;e=e+(f<<2)|0;W=K[e+2|0];X=K[e+1|0];k=K[e|0];l=K[e+3|0];f=J[d>>2];e=J[f+20>>2]+1|0;e=e>>>0>2]?e:0;J[f+20>>2]=e;y=J[f+4>>2]+(e<<2)|0;n=K[y+2|0];h=K[y+1|0];g=K[y|0];Y=v;u=u&255;f=256-u|0;v=s&255; +e=256-v|0;s=P(f,e);Z=m;m=P(f,v);f=P(e,u);e=P(u,v);H[o+3|0]=(((P(Y,s)+P(Z,m)|0)+P(f,l)|0)+P(e,K[y+3|0])|0)+32768>>>16;H[o+2|0]=(((P(s,S)+P(m,V)|0)+P(f,k)|0)+P(e,g)|0)+32768>>>16;H[o+1|0]=(((P(s,Q)+P(m,U)|0)+P(f,X)|0)+P(e,h)|0)+32768>>>16;H[o|0]=(((P(s,N)+P(m,T)|0)+P(f,W)|0)+P(e,n)|0)+32768>>>16;h=J[d+4>>2];e=J[h+16>>2]+J[h+12>>2]|0;J[h+16>>2]=e;f=J[h+20>>2]+J[h+8>>2]|0;J[h+20>>2]=f;if((e|0)>0){f=f+1|0;J[h+20>>2]=f;J[h+16>>2]=e-J[h+4>>2]}e=J[h+36>>2]+J[h+32>>2]|0;J[h+36>>2]=e;g=J[h+40>>2]+J[h+28>>2]| +0;J[h+40>>2]=g;if((e|0)>0){g=g+1|0;J[h+40>>2]=g;J[h+36>>2]=e-J[h+24>>2]}o=o+4|0;i=i-1|0;if(i)continue;break}f:{if(J[b+16>>2]<(w|0)|J[b+8>>2]>(w|0))break f;e=I[q+10>>1]<0;o=e?0:B;f=K[B|0];i=J[b+4>>2];g:{if((x|0)>=(i|0)){i=x;break g}g=i-x|0;a=a-g|0;if((a|0)<=0)break f;o=e?0:g+o|0;p=(g<<2)+p|0}g=J[b>>2];e=J[b+12>>2];if((e|0)<(a+i|0)){a=e-i|0;if((a|0)<0)break f;a=a+1|0}_k(g,i,w,a,p,o,f)}q=q+8|0;z=z-1|0;if(z)continue;break}}function Ql(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;q=J[a+20>>2];z=J[a+28>>2]-q>>3;w=J[a+8>>2];while(1){B=J[q+12>>2];x=I[q+8>>1];a=I[q+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){p=J[c>>2];break a}p=J[c>>2];i=e;e=a+255&130816;if((i|0)==(e|0))break a;if(p)uc(p);J[c+4>>2]=e;p=vc(e<<2);J[c>>2]=p}o=p;e=J[d+4>>2];i=J[e>>2];C=O[i+32>>3];D=O[i>>3];L=O[i+16>>3];E=O[i+40>>3];F=O[i+8>>3];t=O[d+16>>3];r=O[i+24>>3];j=O[d+24>>3];i=a;k=(i|0)<= +1?1:i;J[e+24>>2]=k;J[e+4>>2]=k;A=t+ +(x|0);t=r;r=j+ +(w|0);G=t*r;j=(E+(F*A+G))*256;j=j+(j<0?-.5:.5);b:{if(R(j)<2147483648){g=~~j;break b}g=-2147483648}J[e+40>>2]=g;t=r*L;j=(C+(A*D+t))*256;j=j+(j<0?-.5:.5);c:{if(R(j)<2147483648){f=~~j;break c}f=-2147483648}J[e+20>>2]=f;r=A+ +(i>>>0);j=(E+(r*F+G))*256;j=j+(j<0?-.5:.5);d:{if(R(j)<2147483648){m=~~j;break d}m=-2147483648}h=m-g|0;g=(h|0)/(k|0)|0;l=h-P(g,k)|0;n=(l|0)<=0;J[e+28>>2]=g-n;j=(C+(r*D+t))*256;j=j+(j<0?-.5:.5);e:{if(R(j)<2147483648){g=~~j;break e}g= +-2147483648}g=g-f|0;f=(g|0)/(k|0)|0;m=f;h=g-P(f,k)|0;f=(h|0)<=0;J[e+8>>2]=m-f;g=l+(n?i:0)|0;J[e+32>>2]=g;f=h+(f?i:0)|0;J[e+12>>2]=f;J[e+36>>2]=g-i;J[e+16>>2]=f-i;e=J[d+4>>2];g=J[e+40>>2];f=J[e+20>>2];while(1){e=J[d+36>>2];k=J[d>>2];s=f-J[d+32>>2]|0;f=s>>8;J[k+8>>2]=f;u=g-e|0;h=J[k+28>>2];l=(J[k+32>>2]+(u>>8)>>>0)%(h>>>0)|0;J[k+36>>2]=l;e=J[J[k>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];m=f+J[k+16>>2]|0;f=J[k+12>>2];n=(m>>>0)%(f>>>0)|0;J[k+20>>2]=n;g=g+P(e,l>>>0>2]?l:h+(l^-1)|0)|0;J[k+4>>2]=g;e=g+(n<< +2)|0;N=K[e|0];Q=K[e+1|0];S=K[e+2|0];v=K[e+3|0];e=n+1|0;e=e>>>0>>0?e:0;J[k+20>>2]=e;e=g+(e<<2)|0;T=K[e|0];U=K[e+1|0];V=K[e+2|0];m=K[e+3|0];l=J[d>>2];e=J[l+36>>2]+1|0;h=J[l+28>>2];n=h>>>0>e>>>0?e:0;J[l+36>>2]=n;e=J[J[l>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];f=(J[l+16>>2]+J[l+8>>2]>>>0)%M[l+12>>2]|0;J[l+20>>2]=f;e=g+P(e,n>>>0>2]?n:h+(n^-1)|0)|0;J[l+4>>2]=e;e=e+(f<<2)|0;W=K[e|0];X=K[e+1|0];k=K[e+2|0];l=K[e+3|0];f=J[d>>2];e=J[f+20>>2]+1|0;e=e>>>0>2]?e:0;J[f+20>>2]=e;y=J[f+4>>2]+(e<<2)|0;n= +K[y|0];h=K[y+1|0];g=K[y+2|0];Y=v;u=u&255;f=256-u|0;v=s&255;e=256-v|0;s=P(f,e);Z=m;m=P(f,v);f=P(e,u);e=P(u,v);H[o+3|0]=(((P(Y,s)+P(Z,m)|0)+P(f,l)|0)+P(e,K[y+3|0])|0)+32768>>>16;H[o+2|0]=(((P(s,S)+P(m,V)|0)+P(f,k)|0)+P(e,g)|0)+32768>>>16;H[o+1|0]=(((P(s,Q)+P(m,U)|0)+P(f,X)|0)+P(e,h)|0)+32768>>>16;H[o|0]=(((P(s,N)+P(m,T)|0)+P(f,W)|0)+P(e,n)|0)+32768>>>16;h=J[d+4>>2];e=J[h+16>>2]+J[h+12>>2]|0;J[h+16>>2]=e;f=J[h+20>>2]+J[h+8>>2]|0;J[h+20>>2]=f;if((e|0)>0){f=f+1|0;J[h+20>>2]=f;J[h+16>>2]=e-J[h+4>>2]}e= +J[h+36>>2]+J[h+32>>2]|0;J[h+36>>2]=e;g=J[h+40>>2]+J[h+28>>2]|0;J[h+40>>2]=g;if((e|0)>0){g=g+1|0;J[h+40>>2]=g;J[h+36>>2]=e-J[h+24>>2]}o=o+4|0;i=i-1|0;if(i)continue;break}f:{if(J[b+16>>2]<(w|0)|J[b+8>>2]>(w|0))break f;e=I[q+10>>1]<0;o=e?0:B;f=K[B|0];i=J[b+4>>2];g:{if((x|0)>=(i|0)){i=x;break g}g=i-x|0;a=a-g|0;if((a|0)<=0)break f;o=e?0:g+o|0;p=(g<<2)+p|0}g=J[b>>2];e=J[b+12>>2];if((e|0)<(a+i|0)){a=e-i|0;if((a|0)<0)break f;a=a+1|0}_k(g,i,w,a,p,o,f)}q=q+8|0;z=z-1|0;if(z)continue;break}}function coa(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;d=fc-32|0;fc=d;J[d+12>>2]=0;c=d+4|0;J[d+8>>2]=c;J[d+4>>2]=c;a:{f=J[a+8>>2];if(!f){J[a+40>>2]=-1;J[a+44>>2]=-1048577;J[a+32>>2]=-1;J[a+36>>2]=-1048577;J[a+24>>2]=-1;J[a+28>>2]=2146435071;J[a+16>>2]=-1;J[a+20>>2]=2146435071;break a}h=J[a+4>>2];g=J[h>>2];e=J[a>>2];c=J[e+4>>2];J[g+4>>2]=c;J[c>>2]=g;c=J[d+4>>2];J[c+4>>2]=h;J[h>>2]=c;J[d+4>>2]=e;c=d+4|0;J[e+4>>2]=c;J[d+12>>2]=f;J[a+8>>2]=0;f=J[d+8>>2];J[a+40>>2]=-1;J[a+44>>2]=-1048577;J[a+32>>2]=-1; +J[a+36>>2]=-1048577;J[a+24>>2]=-1;J[a+28>>2]=2146435071;J[a+16>>2]=-1;J[a+20>>2]=2146435071;if((c|0)==(f|0))break a;b:{while(1){c:{e=J[f+16>>2];g=f+12|0;if((e|0)==(g|0))break c;while(1){d:{J[699344]=0;ce(b,e+8|0,e+16|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;e=J[e+4>>2];if((g|0)!=(e|0))continue;break c}break}e=Z()|0;break b}f=J[f+4>>2];c=d+4|0;if((f|0)!=(c|0))continue;break}i=J[d+8>>2];if((c|0)==(i|0))break a;k=d+20|0;while(1){e:{f:{g:{h:{i:{j:{k:switch(J[i+8>>2]){case 0:b=J[i+16>>2];J[699344]= +0;ca(6492,a|0,b+8|0,b+16|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;break e;case 3:J[d+28>>2]=0;J[d+24>>2]=k;J[d+16>>2]=3;J[699344]=0;J[d+20>>2]=k;c=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1){e=Z()|0;Qp(d+16|0);break b}J[c+8>>2]=3;J[c+4>>2]=a;J[c+20>>2]=0;b=c+12|0;J[c+16>>2]=b;J[c+12>>2]=b;b=J[a>>2];J[c>>2]=b;J[b+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;break f;case 2:J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;e=0;c=0;b=0;f=J[i+16>>2];l=i+12|0;if((f|0)==(l|0))break h;while(1){l:{m:{if((b|0)!=(e| +0)){O[b>>3]=O[f+8>>3];O[b+8>>3]=O[f+16>>3];b=b+16|0;J[d+20>>2]=b;break m}j=e-c|0;g=j>>4;h=g+1|0;if(h>>>0>=268435456){J[699344]=0;$(6496,d+16|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;break j}b=j>>3;b=j>>>0>=2147483632?268435455:b>>>0>h>>>0?b:h;if(b>>>0>=268435456){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break j;break g}J[699344]=0;h=b<<4;j=_(4,h|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;g=j+(g<<4)|0;O[g>>3]=O[f+8>>3];O[g+8>>3]=O[f+16>>3];b=g+16|0;if((c|0)!=(e|0))while(1){g= +g-16|0;e=e-16|0;O[g>>3]=O[e>>3];O[g+8>>3]=O[e+8>>3];if((c|0)!=(e|0))continue;break}e=h+j|0;J[d+24>>2]=e;J[d+20>>2]=b;J[d+16>>2]=g;if(c)uc(c);c=g}f=J[f+4>>2];if((l|0)!=(f|0))continue;break i}break}break g;case 1:break k;default:break f}b=J[i+16>>2];J[699344]=0;ca(6493,a|0,b+8|0,b+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;break f}B()}b=J[d+16>>2]}J[699344]=0;ua(6494,a|0,b|0,b+8|0,b+16|0,b+24|0,b+32|0,b+40|0);c=J[699344];J[699344]=0;if((c|0)!=1){uc(b);break f}}e=Z()|0;a=J[d+16>>2];if(!a)break b; +J[d+20>>2]=a;uc(a);break b}i=J[i+4>>2];if((i|0)!=(d+4|0))continue;break a}break}e=Z()|0}LU(d+4|0);ba(e|0);B()}n:{if(!J[d+12>>2])break n;f=J[d+8>>2];b=J[f>>2];a=J[J[d+4>>2]+4>>2];J[b+4>>2]=a;J[a>>2]=b;J[d+12>>2]=0;if((d+4|0)==(f|0))break n;while(1){b=f;f=J[b+4>>2];o:{if(!J[b+20>>2])break o;e=J[b+16>>2];c=J[e>>2];a=J[J[b+12>>2]+4>>2];J[c+4>>2]=a;J[a>>2]=c;J[b+20>>2]=0;c=b+12|0;if((c|0)==(e|0))break o;while(1){a=J[e+4>>2];uc(e);e=a;if((c|0)!=(a|0))continue;break}}uc(b);if((d+4|0)!=(f|0))continue;break}}fc= +d+32|0}function wda(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0),l=Q(0),m=0;e=fc-144|0;fc=e;f=J[a+584>>2];Vy(a,1,0);a:{b:{c:{if(f){if(J[f+16>>2])break c;J[f+36>>2]=1;J[f+40>>2]=0;b=Dc(40);J[b>>2]=0;b=Hf(f+624|0,1,b,4);i=gc;d:{e:{while(1){if(d)break d;J[699344]=0;$(96,f|0);d=J[699344];J[699344]=0;if((d|0)==1){a=Z()|0;uc(b);ba(a|0);B()}c=-1;f:{g:{if(!d)break g;g=J[699345];if(!g)break g;c=Pc(J[d>>2],b,i);if(!c)break f;gc=g}d=gc;if((c|0)!=1)break e;continue}break}uc(b);nf(d,g);B()}h=1}uc(b); +h:{if(!h)break h;b=L[a+90>>1];I[f+832>>1]=b;i:{j:switch(b-3|0){case 3:I[f+834>>1]=L[a+204>>1];I[f+836>>1]=L[a+206>>1];J[e+80>>2]=e+140;if(ne(a,532,e+80|0))break i;b=L[a+84>>1];J[e+112>>2]=0;b=1<>2]=k;l=Q(b>>1);N[e+128>>2]=l;N[e+124>>2]=k;N[e+120>>2]=l;N[e+116>>2]=k;J[e+64>>2]=e+112;ke(a,532,e- -64|0);break i;case 0:case 1:a=J[a+628>>2];J[e+96>>2]=b;Uc(a,97728,82550,e+96|0);break h;default:break j}I[f+834>>1]=1;I[f+836>>1]=1}b=L[a+84>>1];if((b|0)!=8){a=J[a+628>>2];J[e+48>>2]= +b;Uc(a,97728,82680,e+48|0);break h}J[f+72>>2]=8;k:{if(K[a+13|0]&4){b=L[f+836>>1]<<3;if(M[a+72>>2]%(b>>>0)|0){a=J[a+628>>2];J[e+32>>2]=b;Uc(a,97728,82794,e+32|0);break h}b=L[f+834>>1]<<3;if(!(M[a+68>>2]%(b>>>0)|0))break k;a=J[a+628>>2];J[e+16>>2]=b;Uc(a,97728,83002,e+16|0);break h}b=J[a+100>>2];if(b>>>0>=M[a+60>>2])break k;j=b;b=L[f+836>>1]<<3;if(!((j>>>0)%(b>>>0)|0))break k;a=J[a+628>>2];J[e>>2]=b;Uc(a,97728,86982,e);break h}l:{if(K[f+928|0]&3){b=J[f+912>>2];if(b)if(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<< +16|K[b+3|0]<<24)|(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24)))break l;b=J[a+584>>2];Vy(a,0,0);if(!VP(b,J[b+920>>2]))break h;c=0;i=0;d=Dc(40);J[d>>2]=0;g=Hf(b+624|0,1,d,4);j=gc;m:{n:{while(1){if(c)break m;J[699344]=0;pL(b,1);d=J[699344];J[699344]=0;if((d|0)==1)break b;h=-1;o:{p:{if(!d)break p;c=J[699345];if(!c)break p;h=Pc(J[d>>2],g,j);if(!h)break o;gc=c}c=gc;if((h|0)!=1)break n;continue}break}break a}i=1}uc(g);if(!i)break h;c=J[b+928>>2];q:{if(!(c&1))break q;d=J[b+88>>2];if(d)J[d+128>>2]=0; +if(L[b+832>>1]!=6)break q;d=J[b+92>>2];if(!d)break q;J[d+128>>2]=0}r:{if(!(c&2))break r;c=J[b+120>>2];if(c)J[c+276>>2]=0;c=J[b+136>>2];if(c)J[c+276>>2]=0;if(L[b+832>>1]!=6)break r;c=J[b+124>>2];if(c)J[c+276>>2]=0;c=J[b+140>>2];if(!c)break r;J[c+276>>2]=0}c=J[b+912>>2];if(c)uc(c);J[b+916>>2]=1E3;c=Dc(1E3);J[b+912>>2]=c;if(!c){J[b+916>>2]=0;Uc(J[J[b+828>>2]+628>>2],87261,87407,0);break h}J[b+796>>2]=662;J[b+792>>2]=663;J[b+788>>2]=664;J[b+24>>2]=b+780;c=0;i=0;d=Dc(40);J[d>>2]=0;g=Hf(b+624|0,1,d,4); +j=gc;s:{t:{while(1){if(c)break s;J[699344]=0;$(670,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;h=-1;u:{v:{if(!d)break v;c=J[699345];if(!c)break v;h=Pc(J[d>>2],g,j);if(!h)break u;gc=c}c=gc;if((h|0)!=1)break t;continue}break}break a}i=1}uc(g);if(!i)break h;J[a+12>>2]=J[a+12>>2]|8;J[a+48>>2]=J[a+48>>2]|4;break l}J[a+48>>2]=J[a+48>>2]&-5}J[f+796>>2]=665;J[f+792>>2]=666;J[f+788>>2]=667;J[f+24>>2]=f+780;m=1}fc=e+144|0;return m|0}fa(75270,70506,1172,97728);B()}fa(82256,70506,1173,97728);B()}a=Z()|0; +uc(g);ba(a|0);B()}uc(g);nf(d,c);B()}function Eq(a,b,c){var d=0,e=0,f=0,g=0,h=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;d=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=d+(K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24))|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;d=K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24)|b<>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;if((e|0)>=8){f=c+72|0;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<< +24);while(1){e=b+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330|0]=e>>>16;H[c+331|0]=e>>>24;H[(b+c|0)+72|0]=d;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);if((b|0)>=255){d=J[a+1096>>2];kc[J[J[d>>2]+44>>2]](d,b&255)|0;b=J[a+1096>>2];kc[J[J[b>>2]+16>>2]](b,f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0;H[c+331|0]=0;b=0}d=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=d;H[c+65|0]=d>>>8;H[c+66|0]=d>>>16;H[c+67|0]= +d>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}}b=(K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24))+1|0;H[c+32|0]=b;H[c+33|0]=b>>>8;H[c+34|0]=b>>>16;H[c+35|0]=b>>>24;g=K[c+36|0]|K[c+37|0]<<8|(K[c+38|0]<<16|K[c+39|0]<<24);if((g|0)<=(b|0)){h=K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24);f=h+1|0;H[c+24|0]=f;H[c+25|0]=f>>>8;H[c+26|0]=f>>>16;H[c+27|0]=f>>>24;f=g+(1<>>8;H[c+38|0]=f>>>16;H[c+39|0]=f>>>24}if((b|0)>=(K[c+44|0]|K[c+45|0]<<8|(K[c+46|0]<<16|K[c+47|0]<<24))){b=(K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24))+e|0;H[c+68|0]=b;H[c+69|0]=b>>>8;H[c+70|0]=b>>>16;H[c+71|0]=b>>>24;d=(K[c+56|0]|K[c+57|0]<<8|(K[c+58|0]<<16|K[c+59|0]<<24))<>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;if((b|0)>=8){f=c+72|0;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);while(1){e=b+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330| +0]=e>>>16;H[c+331|0]=e>>>24;H[(b+c|0)+72|0]=d;b=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);if((b|0)>=255){d=J[a+1096>>2];kc[J[J[d>>2]+44>>2]](d,b&255)|0;b=J[a+1096>>2];kc[J[J[b>>2]+16>>2]](b,f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0;H[c+331|0]=0;b=0}d=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=d;H[c+65|0]=d>>>8;H[c+66|0]=d>>>16;H[c+67|0]=d>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<< +24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}}H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=1;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;a=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);H[c+24|0]=a;H[c+25|0]=a>>>8;H[c+26|0]=a>>>16;H[c+27|0]=a>>>24;a=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);H[c+36|0]=a;H[c+37|0]=a>>>8;H[c+38|0]=a>>>16;H[c+39|0]=a>>>24;a=K[c+48|0]|K[c+49|0]<< +8|(K[c+50|0]<<16|K[c+51|0]<<24);H[c+44|0]=a;H[c+45|0]=a>>>8;H[c+46|0]=a>>>16;H[c+47|0]=a>>>24}}function _e(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,w=0,y=0,B=0,C=0,D=0,E=0;o=fc-16|0;fc=o;A(+b);e=v(1)|0;l=v(0)|0;A(+a);f=v(1)|0;c=v(0)|0;r=e>>>20|0;s=r&2047;t=s-1086|0;j=f>>>20|0;a:{b:{if(t>>>0>4294967167&j-2047>>>0>=4294965250)break b;q=l<<1;g=e<<1|l>>>31;h=g+2097152|0;if(!q&(h|0)==2097152|h>>>0<2097152){d=1;if(!(g|q)|!c&(f|0)==1072693248)break a;h=f<<1;f= +c;c=h|c>>>31;f=f<<1;if(!((!q&(g|0)==-2097152|g>>>0<4292870144)&(!f&(c|0)==-2097152|c>>>0<4292870144))){d=a+b;break a}if(!f&(c|0)==2145386496)break a;d=((e|0)>0|(e|0)>=0)^c>>>0>2145386495?0:b*b;break a}g=(f<<1|c>>>31)+2097152|0;if(!(c<<1)&(g|0)==2097152|g>>>0<2097152){d=a*a;if((f|0)<0)d=(aT(l,e)|0)==1?-d:d;if((e|0)>0|(e|0)>=0)break a;c=fc-16|0;O[c+8>>3]=1/d;d=O[c+8>>3];break a}if((f|0)<0){c=aT(l,e);if(!c){a=a-a;d=a/a;break a}j=j&2047;p=((c|0)==1)<<18;A(+a);f=v(1)|0;c=v(0)|0;f=f&2147483647}if(t>>>0<= +4294967167){d=1;g=(f|0)==1072693248;if(g&!c)break a;if(s>>>0<=957){d=((c|0)!=0&g|f>>>0>1072693248?b:-b)+1;break a}if((!c&(f|0)==1072693248|f>>>0<1072693248)!=(r>>>0<2048|0)){c=fc-16|0;O[c+8>>3]=3.105036184601418E231;d=O[c+8>>3]*3.105036184601418E231;break a}c=fc-16|0;O[c+8>>3]=1.2882297539194267E-231;d=O[c+8>>3]*1.2882297539194267E-231;break a}if(j)break b;A(+(a*4503599627370496));f=v(1)|0;c=v(0)|0;f=(f&2147483647)-54525952|0}x(0,l&-134217728);x(1,e|0);u=+z();e=f-1072076117|0;g=e;k=+(e>>20);h=(e>>> +13&127)<<5;B=k*O[327003]+O[h+2616112>>3];l=0;e=c-l|0;g=f-((g&-1048576)+(c>>>0>>0)|0)|0;c=g;x(0,0);x(1,(e- -2147483648>>>0<2147483648?c+1|0:c)|0);a=+z();i=O[h+2616088>>3];d=a*i+-1;x(0,e|0);x(1,c|0);w=(+z()-a)*i;a=d+w;m=O[327004];i=a*m;y=k*O[327002]+O[h+2616104>>3];k=a+y;n=d;d=d*m;n=n*d;m=k+n;n=B+(a+(y-k))+w*(i+d)+(n+(k-m));d=a*i;a=n+a*d*(d*(d*(a*O[327010]+O[327009])+(a*O[327008]+O[327007]))+(a*O[327006]+O[327005]));d=m+a;O[o+8>>3]=a+(m-d);A(+d);c=v(1)|0;x(0,v(0)&-134217728);x(1,c|0);i=+z();a=u* +i;b=(b-u)*i+(O[o+8>>3]+(d-i))*b;A(+a);c=v(1)|0;v(0)|0;c:{d:{j=c>>>20&2047;if(j-969>>>0<63)break d;if(j>>>0<969){a=a+1;d=p?-a:a;break c}c=j>>>0<1033;j=0;if(c)break d;A(+a);c=v(1)|0;v(0)|0;if((c|0)<0){c=fc-16|0;O[c+8>>3]=p?-1.2882297539194267E-231:1.2882297539194267E-231;d=O[c+8>>3]*1.2882297539194267E-231;break c}c=fc-16|0;O[c+8>>3]=p?-3.105036184601418E231:3.105036184601418E231;d=O[c+8>>3]*3.105036184601418E231;break c}d=O[308400];i=O[308399]*a+d;d=i-d;a=d*O[308402]+(d*O[308401]+a)+b;b=a*a;d=b*b* +(a*O[308406]+O[308405]);b=b*(a*O[308404]+O[308403]);A(+i);v(1)|0;f=v(0)|0;e=f<<4&2032;a=d+(b+(O[e+2467304>>3]+a));e=e+2467312|0;g=J[e>>2];h=J[e+4>>2];e=f+p|0;c=g;g=e<<13;e=0;c=c+e|0;h=g+h|0;h=c>>>0>>0?h+1|0:h;if(!j){e:{if(!(f&-2147483648)){x(0,c|0);x(1,h-1058013184|0);b=+z();d=(b*a+b)*5.486124068793689E303;break e}x(0,c|0);g=h+1071644672|0;x(1,g|0);b=+z();i=b*a;a=i+b;if(R(a)<1){c=fc-16|0;O[c+8>>3]=2.2250738585072014E-308;O[c+8>>3]=O[c+8>>3]*2.2250738585072014E-308;x(0,0);x(1,g&-2147483648);d=a< +0?-1:1;k=a+d;a=k+(i+(b-a)+(a+(d-k)))-d;a=(C=+z(),D=a,E=a==0,E?C:D)}d=a*2.2250738585072014E-308}break c}x(0,c|0);x(1,h|0);b=+z();d=b*a+b}}fc=o+16|0;return d}function mmb(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;l=fc-16|0;fc=l;c=Ac(c,0,652);f=K[b+8|0];H[c+188|0]=f;a:{if(!f)break a;if(f>>>0>=4){i=f&252;g=c+192|0;h=b+12|0;while(1){J[g+(d<<2)>>2]=I[h+(d<<1)>>1];k=d|1;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];k=d|2;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];k=d|3;J[g+(k<<2)>>2]=I[h+(k<<1)>>1];d=d+4|0;j= +j+4|0;if((i|0)!=(j|0))continue;break}}f=f&3;if(!f)break a;j=0;while(1){J[(c+(d<<2)|0)+192>>2]=I[((d<<1)+b|0)+12>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+9|0];H[c+189|0]=g;b:{if(!g)break b;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+248|0;i=b+40|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break b;while(1){J[(c+(d<<2)|0)+248>> +2]=I[((d<<1)+b|0)+40>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+10|0];H[c+190|0]=g;c:{if(!g)break c;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+288|0;i=b+60|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break c;while(1){J[(c+(d<<2)|0)+288>>2]=I[((d<<1)+b|0)+60>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+11|0];H[c+191| +0]=g;d:{if(!g)break d;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+344|0;i=b+88|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break d;while(1){J[(c+(d<<2)|0)+344>>2]=I[((d<<1)+b|0)+88>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}J[c+384>>2]=J[b+108>>2];J[c+388>>2]=J[b+112>>2];J[c+392>>2]=J[b+116>>2];J[c+396>>2]=L[b+120>>1];J[c+400>>2]=L[b+ +122>>1];g=K[b+124|0];H[c+404|0]=g;e:{if(!g)break e;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+408|0;i=b+128|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break e;while(1){J[(c+(d<<2)|0)+408>>2]=I[((d<<1)+b|0)+128>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}g=K[b+125|0];H[c+405|0]=g;f:{if(!g)break f;j=0;d=0;if(g>>>0>=4){k=g&252;h=c+460| +0;i=b+154|0;f=0;while(1){J[h+(d<<2)>>2]=I[i+(d<<1)>>1];e=d|1;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|2;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];e=d|3;J[h+(e<<2)>>2]=I[i+(e<<1)>>1];d=d+4|0;f=f+4|0;if((k|0)!=(f|0))continue;break}}f=g&3;if(!f)break f;while(1){J[(c+(d<<2)|0)+460>>2]=I[((d<<1)+b|0)+154>>1];d=d+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}}H[c+512|0]=K[b+126|0];J[c+520>>2]=J[b+4>>2];J[c+524>>2]=J[b+184>>2];b=J[b+180>>2];J[c+552>>2]=c;J[c+528>>2]=b;g:{h:{a=J[a+128>>2];d=J[a+60>>2];if((d|0)==-1)break h;J[c+ +648>>2]=d;if(!d)break h;while(1){b=d<<13^d;b=b>>>17^b;d=b<<5^b;if((d|0)<0)continue;break}J[a+60>>2]=d;break g}a=l+4^(l+8^l+12);a=a>>>20^a>>>10^a;J[c+648>>2]=a?a:29572}fc=l+16|0}function D7(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;i=fc-16|0;fc=i;m=J[a+72>>2];k=J[a+64>>2];j=J[a+68>>2];a:{if(!c)break a;b:{c:{d:{e:{f:{g:switch(J[a>>2]){case 0:if(yd(J[a+164>>2],2))break f;if((rN(J[a+164>>2],i+12|0,1)|0)!=1)break f;h=K[i+12|0];J[a+44>>2]=h&128;f=h&31;J[a+40>>2]=f;d=1<>2]=d-256;if(f>>> +0>16)break f;J[a+52>>2]=9;J[a+56>>2]=h>>>7;J[a+60>>2]=f>>>0>9?256:d-255|0;m=0;f=XD(a);if(f>>>0>255)break f;if(b)H[b|0]=f;if(c>>>0<2)break e;h=1;J[a>>2]=1;j=f;k=f;break;case 2:break d;case 1:break g;default:break a}d=0;break c}f=0;break b}d=1;j=f;k=f;break a}d=1}while(1){h:{i:{j:{k:{if(!d){d=XD(a);f=h;if((d|0)<0)break b;if((d|0)!=256)break k;if(!J[a+44>>2]){m=256;break j}H[a+32|0]=1;j=0;J[a+56>>2]=0;d=XD(a);if((d|0)<0)break h;while(1){if((d|0)!=256){k=0;break k}if(!J[a+44>>2]){k=0;m=256;break j}H[a+ +32|0]=1;J[a+56>>2]=0;d=XD(a);if((d|0)>=0)continue;break}break h}l:{if(b){while(1){h=J[a+92>>2];if(!h)break l;h=h-1|0;J[a+92>>2]=h;H[b+e|0]=K[h+J[a+88>>2]|0];e=e+1|0;if((e|0)!=(c|0))continue;break}d=c;break a}d=J[a+92>>2];while(1){if(!d)break l;d=d-1|0;J[a+92>>2]=d;e=e+1|0;if((e|0)!=(c|0))continue;break}d=c;break a}h=e;d=J[a+56>>2];if(d>>>0>2]){g=J[a+84>>2];if(g>>>0<=d>>>0){d=g?g+(g>>>2|0)|0:512;l=_c(J[a+168>>2],3,g,d,J[a+76>>2],i+12|0);J[a+76>>2]=l;f=e;if(J[i+12>>2])break b;f=l+(d<<1)|0;J[a+ +80>>2]=f;cd(f,l+(g<<1)|0,g);J[a+84>>2]=d;d=J[a+56>>2]}I[J[a+76>>2]+(d<<1)>>1]=k;H[J[a+80>>2]+d|0]=j;J[a+56>>2]=J[a+56>>2]+1}J[a>>2]=1;k=m;d=0;continue}m=d;g=d;if(d>>>0<256)break i}m:{g=m;d=g-256|0;e=J[a+56>>2];if(d>>>0>>0)break m;f=h;if(d>>>0>e>>>0)break b;d=J[a+92>>2];e=J[a+96>>2];n:{if(d>>>0>>0){e=J[a+88>>2];break n}f=((e>>>1|0)+e|0)+4|0;l=J[a+168>>2];o:{p:{q:{r:{g=J[a+88>>2];if((g|0)!=(a+100|0)){d=65536;if(f>>>0>65536)break r;d=f;break q}g=0;J[a+88>>2]=0;d=f>>>0>=65536?65536:f;e=0;break q}if((e| +0)==65536)break p}e=_c(l,1,e,d,g,i+12|0);J[a+88>>2]=e;if(!J[i+12>>2])break o}f=h;break b}J[a+96>>2]=d;d=J[a+92>>2]}J[a+92>>2]=d+1;H[d+e|0]=j;g=k;if(g>>>0>=256)break m;break i}l=a+100|0;d=J[a+76>>2];while(1){f=h;if(!d)break b;d=J[a+88>>2];e=J[a+92>>2];f=J[a+96>>2];if(e>>>0>=f>>>0){e=((f>>>1|0)+f|0)+4|0;n=J[a+168>>2];s:{t:{u:{if((d|0)!=(l|0)){if(e>>>0<=65536)break u;e=65536;if((f|0)==65536)break t;break u}d=0;J[a+88>>2]=0;e=e>>>0>=65536?65536:e;f=0}d=_c(n,1,f,e,d,i+12|0);J[a+88>>2]=d;if(!J[i+12>>2])break s}f= +h;break b}J[a+96>>2]=e;e=J[a+92>>2]}f=g-256|0;g=K[f+J[a+80>>2]|0];J[a+92>>2]=e+1;H[d+e|0]=g;d=J[a+76>>2];g=L[d+(f<<1)>>1];if(g>>>0>255)continue;break}}d=J[a+92>>2];e=J[a+96>>2];v:{if(d>>>0>>0){e=J[a+88>>2];break v}f=((e>>>1|0)+e|0)+4|0;l=J[a+168>>2];w:{x:{y:{z:{j=J[a+88>>2];if((j|0)!=(a+100|0)){d=65536;if(f>>>0>65536)break z;d=f;break y}j=0;J[a+88>>2]=0;d=f>>>0>=65536?65536:f;e=0;break y}if((e|0)==65536)break x}e=_c(l,1,e,d,j,i+12|0);J[a+88>>2]=e;if(!J[i+12>>2])break w}j=g;f=h;break b}J[a+96>> +2]=d;d=J[a+92>>2]}J[a+92>>2]=d+1;H[d+e|0]=g;J[a>>2]=2;j=g;e=h;d=1;continue}break}k=0;f=h}d=f;J[a>>2]=3}J[a+72>>2]=m;J[a+68>>2]=j;J[a+64>>2]=k;fc=i+16|0;return d}function sua(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=fc-16|0;fc=f;J[a>>2]=0;a:{b:{c:{d:{e:{f:{g:{e=J[d>>2];h:{if(!e)break h;J[699344]=0;g=f+12|0;da(5659,g|0,e|0);e=J[699344];J[699344]=0;i:{j:{if((e|0)!=1){J[699344]=0;d=aa(5153,d|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;d=J[d>>2];e=J[f+12>>2];J[f+12>>2]=0;if(!e)break i; +J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break i;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break i}break a}d=Z()|0;break b}d=Z()|0;zc(f+12|0);break b}if(!d)break h;if(J[d+8>>2])break g}J[699344]=0;d=f+12|0;ia(5660,d|0,b|0,c|0,10);b=J[699344];J[699344]=0;k:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;a=J[f+12>>2];J[f+12>>2]=0;if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]= +0;if((c|0)!=1){if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}break a}d=Z()|0;break b}d=Z()|0;zc(f+12|0);break b}J[699344]=0;e=Ao(d,2395332,-1);g=J[699344];J[699344]=0;if((g|0)==1)break c;l:{if(e){J[699344]=0;e=Ao(d,2386633,-1);g=J[699344];J[699344]=0;if((g|0)==1)break c;if(e)break l}J[699344]=0;d=f+12|0;ia(5660,d|0,b|0,c|0,8);b=J[699344];J[699344]=0;m:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;a=J[f+12>>2];J[f+12>>2]= +0;if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}break a}d=Z()|0;break b}d=Z()|0;zc(f+12|0);break b}J[699344]=0;e=Ao(d,2387369,-1);g=J[699344];J[699344]=0;if((g|0)==1)break c;n:{o:{if(!e)break o;J[699344]=0;e=Ao(d,2388009,-1);g=J[699344];J[699344]=0;if((g|0)==1)break c;if(!e)break o;J[699344]=0;e=Ao(d,2388692,-1);g=J[699344];J[699344]=0;if((g|0)==1)break c;if(!e)break o;J[699344]= +0;e=Ao(d,2388692,-1);g=J[699344];J[699344]=0;if((g|0)==1)break c;if(e)break n}J[699344]=0;d=f+12|0;ia(5660,d|0,b|0,c|0,5);b=J[699344];J[699344]=0;p:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break p;a=J[f+12>>2];J[f+12>>2]=0;if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}break a}d=Z()|0;break b}d=Z()|0;zc(f+12|0);break b}J[699344]=0;e=Ao(d, +2389295,-1);g=J[699344];J[699344]=0;if((g|0)==1)break c;q:{if(e){J[699344]=0;d=Ao(d,2389984,-1);e=J[699344];J[699344]=0;if((e|0)==1)break c;if(d)break q}J[699344]=0;d=f+12|0;ia(5660,d|0,b|0,c|0,0);b=J[699344];J[699344]=0;r:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;zc(d);break f}d=Z()|0;break b}d=Z()|0;zc(f+12|0);break b}J[699344]=0;d=f+12|0;ia(5660,d|0,b|0,c|0,10);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break d;zc(d)}fc=f+16|0;return}d=Z()|0;break b}d=Z()|0;zc(f+12|0);break b}d=Z()|0}zc(a);ba(d|0);B()}ea(0)|0;Bc();B()}function Wca(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;i=fc-144|0;fc=i;a:{b:{c:{h=J[a+584>>2];if(h){if(J[h+116>>2]){e=J[h+88>>2];d:{if(!e){e=c;break d}d=J[h+100>>2];f=L[d+4>>1]-e|0;e:{if((f|0)>(c|0)){J[h+88>>2]=c+e;e=f;while(1){f:{d=J[d>>2];e=e-1|0;if((e|0)<=(c|0))break f;if(d)continue}break}if(!d){e=c;break e}g= +b+c|0;e=c;while(1){g=g-1|0;H[g|0]=K[d+6|0];e=e-1|0;if(!e)break e;d=J[d>>2];if(d)continue;break}break e}b=b+f|0;g=b;e=f;while(1){g:{j=J[d>>2];g=g-1|0;H[g|0]=K[d+6|0];e=e-1|0;if(!e)break g;d=j;if(d)continue}break}J[h+88>>2]=0;e=c-f|0}s=1;if((c|0)<(f|0))break a}s=1;q=J[h+112>>2];k=J[h+108>>2];d=J[h+104>>2];n=J[h+84>>2];l=J[h+76>>2];c=J[h+72>>2];m=L[h+64>>1];j=J[a+604>>2];if((e|0)<=0)break c;while(1){f=J[h+92>>2];if((f|0)<(m|0)){b=J[a>>2];f=J[a+628>>2];J[i+16>>2]=J[a+480>>2];le(f,b,73598,i+16|0);break c}c= +K[j|0]|c<<8;g=l+8|0;if((m|0)<=(g|0))j=j+1|0;else{g=l+16|0;c=K[j+1|0]|c<<8;j=j+2|0}J[h+92>>2]=f-m;h:{i:{j:{l=g-m|0;p=c>>l&n;o=p&65535;switch(o-256|0){case 0:break j;case 1:break c;default:break i}}k=J[h+116>>2]+2064|0;Sg(k,0,38888);q=J[h+116>>2]+4080|0;g=J[h+92>>2];if((g|0)<=8){b=J[a>>2];f=J[a+628>>2];J[i+112>>2]=J[a+480>>2];le(f,b,73598,i+112|0);n=511;m=9;break c}c=K[j|0]|c<<8;k:{if((l|0)>0){j=j+1|0;f=l+8|0;break k}c=K[j+1|0]|c<<8;j=j+2|0;f=l+16|0}J[h+92>>2]=g-9;n=511;m=9;l:{m:{l=f-9|0;f=c>>l;switch((f& +511)-256|0){case 0:break m;case 1:break c;default:break l}}b=J[a>>2];c=J[a+628>>2];J[i+128>>2]=J[a+472>>2];Uc(c,b,74316,i+128|0);break b}H[b|0]=f;e=e-1|0;d=J[h+116>>2]+((f&511)<<3)|0;b=b+1|0;break h}n:{g=J[h+116>>2];if(g>>>0<=k>>>0){f=g+40952|0;if(f>>>0>k>>>0)break n}b=J[a>>2];c=J[a+628>>2];J[i+96>>2]=J[a+472>>2];Uc(c,b,74316,i+96|0);break b}J[k>>2]=d;if(!(d>>>0>>0&d>>>0>=g>>>0)){b=J[a>>2];c=J[a+628>>2];J[i+80>>2]=J[a+472>>2];Uc(c,b,74316,i+80|0);break b}H[k+7|0]=K[d+7|0];I[k+4>>1]=L[d+4>>1]+1; +d=o<<3;f=d+g|0;H[k+6|0]=K[(f>>>0>>0?f+7|0:k+7|0)|0];k=k+8|0;if(q>>>0>>0){n=(m|0)>=11?11:m;m=n+1|0;n=-2<>>0>=256){r=L[(d+g|0)+4>>1];if(!r){b=J[a>>2];c=J[a+628>>2];J[i+32>>2]=J[a+472>>2];Uc(c,b,76696,i+32|0);break b}if(e>>>0>>0){J[h+100>>2]=f;g=e&65535;d=f;o:{while(1){d=J[d>>2];if(!d)break o;if(g>>>0>1])continue;break}J[h+88>>2]=e;g=b+e|0;while(1){p:{g=g-1|0;H[g|0]=K[d+6|0];d=J[d>>2];e=e-1|0;if(!e)break p;if(d)continue}break}if(!d)break o;b=J[a>>2];d=J[a+ +628>>2];J[i+48>>2]=J[a+472>>2];Uc(d,b,77891,i+48|0)}d=f;break c}p=b+r|0;d=p;g=f;while(1){q:{o=J[g>>2];d=d-1|0;H[d|0]=K[g+6|0];if(!o)break q;g=o;if(b>>>0>>0)continue}break}if(o){b=J[a>>2];d=J[a+628>>2];J[i+64>>2]=J[a+472>>2];Uc(d,b,77891,i- -64|0);d=f;break c}e=e-r|0;d=f;b=p;break h}H[b|0]=p;e=e-1|0;d=f;b=b+1|0}if((e|0)>0)continue;break}break c}fa(76215,70340,364,97903);B()}fa(72298,70340,363,97903);B()}J[a+604>>2]=j;J[h+112>>2]=q;J[h+108>>2]=k;J[h+104>>2]=d;J[h+84>>2]=n;J[h+76>>2]=l;J[h+72>>2]= +c;I[h+64>>1]=m;if((e|0)<=0)break a;b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[i+4>>2]=e;J[i>>2]=a;Uc(c,b,77371,i)}s=0}fc=i+144|0;return s|0}function HFa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;var e=0,f=0;e=fc-176|0;fc=e;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[699344]=0;b=ga(5034,e+32|0,b|0,24)|0;a=J[699344];J[699344]=0;a:{if((a|0)!=1){J[e+24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;while(1){J[699344]=0;a=ga(5035,b|0,e+16|0,44)|0;f=J[699344];J[699344]=0;b:{c:{d:{if((f|0)!=1){if(K[(a+J[J[a>>2]-12>>2]|0)+16|0]&5)break c; +f=J[e+8>>2];if((f|0)!=J[e+12>>2]){if(H[e+27|0]>=0){a=J[e+20>>2];J[f>>2]=J[e+16>>2];J[f+4>>2]=a;J[f+8>>2]=J[e+24>>2];break b}J[699344]=0;ca(15,f|0,J[e+16>>2],J[e+20>>2]);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;J[e+8>>2]=f;break d}J[699344]=0;da(2962,e+4|0,e+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)continue}a=Z()|0}if(H[e+27|0]<0)uc(J[e+16>>2]);ZA(b);break a}if(H[e+27|0]<0)uc(J[e+16>>2]);J[b+64>>2]=2381836;J[b>>2]=2381796;J[b+12>>2]=2381648;J[b+8>>2]=2381816;if(H[b+55|0]<0)uc(J[b+44>>2]); +ai(b+12|0);bg(b- -64|0);e:{f:{f=J[e+4>>2];if((J[e+8>>2]-f|0)/12>>>0>3){b=0;a=K[f+11|0];g:{if(!(a<<24>>24<0?J[f+4>>2]:a))break g;J[699344]=0;b=ga(5128,f|0,0,10)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break g;oa(ea(0)|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;b=ga(5206,f|0,0,10)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break g;oa(ea(0)|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;b=0;if((a|0)==1)break e}O[c>>3]=+(b|0)*d;b=J[e+4>>2];if((J[e+8>>2]-b|0)/12>>>0< +2)break f;a=0;f=K[b+23|0];h:{if(!(f<<24>>24<0?J[b+16>>2]:f))break h;J[699344]=0;b=b+12|0;a=ga(5128,b|0,0,10)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break h;oa(ea(0)|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;a=ga(5206,b|0,0,10)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break h;oa(ea(0)|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;a=0;if((b|0)==1)break e}O[c+8>>3]=+(a|0)*d;b=J[e+4>>2];if((J[e+8>>2]-b|0)/12>>>0<3)break f;a=0;f=K[b+35|0];i:{if(!(f<<24>>24<0?J[b+ +28>>2]:f))break i;J[699344]=0;b=b+24|0;a=ga(5128,b|0,0,10)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break i;oa(ea(0)|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;a=ga(5206,b|0,0,10)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break i;oa(ea(0)|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;a=0;if((b|0)==1)break e}O[c+16>>3]=+(a|0)*d;b=J[e+4>>2];if((J[e+8>>2]-b|0)/12>>>0<4)break f;a=0;f=K[b+47|0];j:{if(!(f<<24>>24<0?J[b+40>>2]:f))break j;J[699344]=0;b=b+36|0;a=ga(5128, +b|0,0,10)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break j;oa(ea(0)|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;a=ga(5206,b|0,0,10)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break j;oa(ea(0)|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;a=0;if((b|0)==1)break e}O[c+24>>3]=+(a|0)*d;f=J[e+4>>2]}if(f){a=J[e+8>>2];b=f;if((a|0)!=(b|0)){while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((b|0)!=(f|0))continue;break}b=J[e+4>>2]}J[e+8>>2]=f;uc(b)}fc=e+176|0;return}J[699344]= +0;$(5036,e+4|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;B()}a=Z()|0;break a}J[e+8>>2]=f+12;continue}}a=Z()|0}Ag(e+4|0);ba(a|0);B()}function In(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{j=K[a+409|0];if(j){e=J[a+356>>2];l=K[a+399|0];d=J[a+320>>2];f=J[a+376>>2];if(f)if((f|0)!=((j>>>0>=8?P(j>>>3|0,d):P(d,j)+7>>>3|0)|0))break c;if(!d)break b;k=P(d,j);f=k&7;h=0;d:{if(!f)break d;i=((j>>>0>7?P(j>>>3|0,d):k+7>>>3|0)+b|0)-1|0;m=K[i|0];h=255<>>f|0}f=e+1| +0;e:{f:{g:{if(!K[a+398|0])break g;g=J[a+208>>2];if(!(g&2)|l>>>0>5)break g;h:{i:switch(c|0){case 0:e=l&1;break h;case 1:break i;default:break g}e=1;if(!(l&1))break g}k=e<<3-(l+1>>>1|0)&7;if(k>>>0>=d>>>0)break e;if(j>>>0<=7){k=(j|0)!=1?(j|0)==2?1:2:0;e=8/(j>>>0)|0;j:{if(g&65536){a=(P(k,12)+(l<<1&508)|0)+68592|0;if(c)break j;a=(P(k,24)+(l<<2)|0)+68448|0;break j}a=(P(k,12)+(l<<1&508)|0)+68628|0;if(c)break j;a=(P(k,24)+(l<<2)|0)+68520|0}a=J[a>>2];while(1){c=a&255;if(c){if((c|0)!=255)c=K[f|0]&a|K[b|0]& +(a^-1);else c=K[f|0];H[b|0]=c}if(d>>>0<=e>>>0)break f;a=zEb(a,24);f=f+1|0;b=b+1|0;d=d-e|0;continue}}if(j&7)break a;e=j>>>3|0;h=P(e,d-k|0);i=e;if(c){a=e<<(6-l>>>1);i=a>>>0>>0?a:h}c=P(e,k);a=c+f|0;d=b+c|0;g=e<<(7-l>>>1);k:switch(i-1|0){case 2:H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];if(g>>>0>=h>>>0)break e;while(1){d=d+g|0;a=a+g|0;H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];h=h-g|0;if(g>>>0>>0)continue;break}break e;case 0:H[d|0]=K[a|0];if(g>>>0>=h>>>0)break e;while(1){d=d+g|0; +a=a+g|0;H[d|0]=K[a|0];h=h-g|0;if(g>>>0>>0)continue;break}break e;case 1:while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];if(g>>>0>=h>>>0)break e;d=d+g|0;a=a+g|0;h=h-g|0;if(h>>>0>1)continue;break}H[d|0]=K[a|0];return;default:break k}if(!((g|(a|i))&1|(d&1|i>>>0>15))){b=g-i|0;if(!((g|(a|d|i))&3)){f=0;b=b&-4;e=h;while(1){c=f;f=i;while(1){J[d>>2]=J[a>>2];d=d+4|0;a=a+4|0;f=f-4|0;if(f)continue;break}if(g>>>0>=e>>>0)break e;f=c+1|0;d=b+d|0;a=a+b|0;e=e-g|0;if(i>>>0<=e>>>0)continue;break}f=e&7;if(f){b=0;while(1){H[d| +0]=K[a|0];e=e-1|0;d=d+1|0;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(((g^-1)+h|0)-P(c,g)>>>0<7)break e;while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];H[d+3|0]=K[a+3|0];H[d+4|0]=K[a+4|0];H[d+5|0]=K[a+5|0];H[d+6|0]=K[a+6|0];H[d+7|0]=K[a+7|0];d=d+8|0;a=a+8|0;e=e-8|0;if(e)continue;break}break e}f=0;b=b&-2;e=h;while(1){c=f;f=i;while(1){I[d>>1]=L[a>>1];d=d+2|0;a=a+2|0;f=f-2|0;if(f)continue;break}if(g>>>0>=e>>>0)break e;f=c+1|0;d=b+d|0;a=a+b|0;e=e-g|0;if(i>>>0<=e>>>0)continue;break}f= +e&7;if(f){b=0;while(1){H[d|0]=K[a|0];e=e-1|0;d=d+1|0;a=a+1|0;b=b+1|0;if((f|0)!=(b|0))continue;break}}if(((g^-1)+h|0)-P(c,g)>>>0<7)break e;while(1){H[d|0]=K[a|0];H[d+1|0]=K[a+1|0];H[d+2|0]=K[a+2|0];H[d+3|0]=K[a+3|0];H[d+4|0]=K[a+4|0];H[d+5|0]=K[a+5|0];H[d+6|0]=K[a+6|0];H[d+7|0]=K[a+7|0];d=d+8|0;a=a+8|0;e=e-8|0;if(e)continue;break}break e}xc(d,a,i);if(g>>>0>=h>>>0)break e;while(1){d=d+g|0;a=a+g|0;h=h-g|0;i=h>>>0>i>>>0?i:h;xc(d,a,i);if(g>>>0>>0)continue;break}break e}xc(b,f,j>>>0>7?P(j>>>3|0,d):k+ +7>>>3|0)}if(!i)break e;H[i|0]=K[i|0]&(h^-1)|h&m}return}Ld(a,68355);B()}Ld(a,68380);B()}Ld(a,68416);B()}Ld(a,68664);B()}function oza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-32|0;fc=c;f=J[b>>2];d=J[a+36>>2];if(d)uc(Md(d));d=J[a+64>>2];if(d)uc(Md(d));J[a+64>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;a:{b:{c:{d:{e:{f:{g:{h:{e=Ct(f);if(e&127){b=Qc(c+8|0,2388389,2386014,569,2418060,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break b}h=Kk(f);if(h>>>0>=65536){b=Qc(c+8|0,2389064, +2386014,573,2418060,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break b}d=0;Fm(a+40|0,0,h-1|0);if(h)while(1){Up(f,c+4|0,3);if(!(J[a+56>>2]<=(d|0)&J[a+60>>2]>=(d|0))){b=Qc(c+8|0,2389529,2390295,619,2418168,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break b}H[J[a+44>>2]+(d-J[a+48>>2]<<2)|0]=K[c+4|0];if(!(J[a+56>>2]<=(d|0)&J[a+60>>2]>=(d|0))){b=Qc(c+8|0,2389529,2390295,619,2418168,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h; +break b}H[(J[a+44>>2]+(d-J[a+48>>2]<<2)|0)+1|0]=K[c+5|0];if(!(J[a+56>>2]<=(d|0)&J[a+60>>2]>=(d|0))){b=Qc(c+8|0,2389529,2390295,619,2418168,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break b}g=K[c+6|0];H[(J[a+44>>2]+(d-J[a+48>>2]<<2)|0)+2|0]=g;if(!(J[a+56>>2]<=(d|0)&J[a+60>>2]>=(d|0))){b=Qc(c+8|0,2389529,2390295,619,2418168,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break b}H[(J[a+44>>2]+(d-J[a+48>>2]<<2)|0)+3|0]=(P(K[c+5|0],9)+(K[c+4|0]<<1)| +0)+P(g,5)>>>4;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!(e&128))break c;f=Bt(f);if((f|0)<0){b=Qc(c+8|0,2389064,2386014,591,2418060,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break b}Fm(a+8|0,0,f-1|0);d=0;e=J[b>>2];if(e){J[e+4>>2]=J[e+4>>2]+1;d=J[b>>2]}J[699344]=0;J[c>>2]=d;da(5295,c+4|0,c|0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c>>2];J[c>>2]=0;i:{if(!b)break i;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break i;J[699344]= +0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}e=J[c+4>>2];b=e;if(!f)break d;d=0;while(1){J[699344]=0;b=_(5346,e|0)|0;g=J[699344];J[699344]=0;j:{k:{if((g|0)!=1){g=b<<16>>16;if((g|0)>=0&(g|0)<(h|0))break j;J[699344]=0;b=ja(5178,c+8|0,2389064,2386014,600,2418060,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);c=c+4|0;break f}a=Z()|0;c=c+4|0;break f}a=Z()|0;c=c+4|0;break f}if(!(J[a+28>>2]<(d|0)|J[a+24>>2]>(d| +0))){I[J[a+12>>2]+(d-J[a+16>>2]<<1)>>1]=b;d=d+1|0;if((f|0)==(d|0))break e;continue}break}J[699344]=0;b=ja(5178,c+8|0,2389529,2390295,619,2417168,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;a=Z()|0;Kc(b);c=c+4|0;break f}a=Z()|0;break f}B()}a=Z()|0;c=c+4|0}zc(c);ba(a|0);B()}b=J[c+4>>2]}J[c+4>>2]=0;a=b;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break c;J[699344]=0;$(5147, +a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=c+32|0;return}a=Z()|0;Kc(b);ba(a|0);B()}ea(0)|0;Bc();B()}function BM(a){var b=0,c=0,d=0,e=0,f=0;a:{b=J[a+1576>>2];if(b){d=J[J[b>>2]+12>>2];J[699344]=0;_(d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+1576>>2]=0}b=J[a+1580>>2];if(b){d=J[J[b>>2]+12>>2];J[699344]=0;_(d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+1580>>2]=0}d=J[a+1604>>2];if(d)while(1){c=J[a+1588>>2];b=d-1|0;e=J[a+1600>>2];f=b+e|0;f=J[J[c+(f>>>8&16777212)>>2]+ +((f&1023)<<2)>>2];if(f){b=J[J[f>>2]+12>>2];J[699344]=0;_(b|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;d=J[a+1604>>2];b=d-1|0;e=J[a+1600>>2];c=b+e|0;J[J[J[a+1588>>2]+(c>>>8&16777212)>>2]+((c&1023)<<2)>>2]=0;c=J[a+1588>>2]}J[a+1604>>2]=b;f=J[a+1592>>2];if((((c|0)!=(f|0)?(f-c<<8)-1|0:0)-(d+e|0)|0)+1>>>0>=2048){uc(J[f-4>>2]);J[a+1592>>2]=J[a+1592>>2]-4;b=J[a+1604>>2]}d=b;if(b)continue;break}d=J[a+2928>>2];c=J[a+2932>>2];if((d|0)!=(c|0)){while(1){b=J[d>>2];if(b){c=J[b>>2];if(c){kc[J[J[c>>2]+ +20>>2]](c);J[b>>2]=0}c=J[b+4>>2];if(c)uc(Jd(c));uc(b);c=J[a+2932>>2]}d=d+4|0;if((c|0)!=(d|0))continue;break}d=J[a+2928>>2]}J[a+2932>>2]=d;if(d)uc(d);d=a+1672|0;b=J[d+1212>>2];if(b)uc(b);c=J[d+32>>2];b:{if(!c)break b;b=c-1|0;J[d+32>>2]=b;e=J[d+48>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){uc(c);b=J[d+32>>2]}c=b;b=c-1|0;J[d+32>>2]=b;if(c)continue;break}b=J[d+48>>2];if(!b)break b;uc(b)}b=J[d+76>>2];if(b)uc(b);b=J[d- -64>>2];if(b)uc(b);b=J[d+20>>2];if(b)uc(b);b=J[d+12>>2];if(b)uc(b);c:{if(K[a+1668| +0])break c;b=J[a+1608>>2];if(!b)break c;uc(b)}b=a+1584|0;J[b+20>>2]=0;c=J[b+8>>2];d=J[b+4>>2];e=c-d>>2;if(e>>>0>=3)while(1){uc(J[d>>2]);d=J[b+4>>2]+4|0;J[b+4>>2]=d;c=J[b+8>>2];e=c-d>>2;if(e>>>0>2)continue;break}f=512;d:switch(e-1|0){case 1:f=1024;case 0:J[b+16>>2]=f;break;default:break d}e:{if((d|0)==(c|0))break e;while(1){uc(J[d>>2]);d=d+4|0;if((c|0)!=(d|0))continue;break}d=J[b+8>>2];c=J[b+4>>2];if((d|0)==(c|0))break e;J[b+8>>2]=d+((c-d|0)+3&-4)}b=J[b>>2];if(b)uc(b);d=a+96|0;c=J[d+1404>>2];if(c){b= +c-1|0;J[d+1404>>2]=b;e=J[d+1412>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){uc(c);b=J[d+1404>>2]}c=b;b=c-1|0;J[d+1404>>2]=b;if(c)continue;break}}b=J[d+1412>>2];if(b)uc(b);c=J[d+1384>>2];if(c){b=c-1|0;J[d+1384>>2]=b;e=J[d+1392>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){uc(c);b=J[d+1384>>2]}c=b;b=c-1|0;J[d+1384>>2]=b;if(c)continue;break}}b=J[d+1392>>2];if(b)uc(b);yD(d+1340|0);c=J[d+1280>>2];if(c){b=c-1|0;J[d+1280>>2]=b;e=J[d+1288>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){uc(c);b=J[d+1280>> +2]}c=b;b=c-1|0;J[d+1280>>2]=b;if(c)continue;break}}b=J[d+1288>>2];if(b)uc(b);c=J[d+1260>>2];if(c){b=c-1|0;J[d+1260>>2]=b;e=J[d+1268>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){uc(c);b=J[d+1260>>2]}c=b;b=c-1|0;J[d+1260>>2]=b;if(c)continue;break}}b=J[d+1268>>2];if(b)uc(b);yD(d+1216|0);c=J[d>>2];f:{if(!c)break f;b=c-1|0;J[d>>2]=b;e=J[d+16>>2]+(c<<2)|0;while(1){e=e-4|0;c=J[e>>2];if(c){uc(c);b=J[d>>2]}c=b;b=c-1|0;J[d>>2]=b;if(c)continue;break}b=J[d+16>>2];if(!b)break f;uc(b)}b=J[d+44>>2];if(b)uc(b); +b=J[d+32>>2];if(b)uc(b);Jd(a+56|0);Jd(a+52|0);Jd(a+48|0);Jd(a+44|0);return a}ea(0)|0;Bc();B()}function a1a(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;m=J[a+4>>2];v=m+37|0;c=J[m+44>>2];h=c?c:64;j=J[a+24>>2];q=J[a+20>>2];f=J[a+16>>2];r=J[a+12>>2];d=J[a+8>>2];g=H[m+36|0];a:{b:{u=J[m+48>>2];i=u&3;c:{if(!i){t=q;break c}if((g|0)<=0){t=q;break c}n=-1;t=q;if(f>>>0>>0)break b}c=0;break a}c=1}d:{e:while(1){f:{g:{if(!c){c=t-f>>1;o=r-d|0;i=(c|0)<(o| +0)?c:o;h:{if((i|0)<=0)break h;while(1){c=K[d|0];i:{if(c-80<<24>>24>=0){c=(c+h|0)-144|0;if((c|0)>12287)break h;I[f>>1]=c;J[j>>2]=l;h=c&-128|64;break i}if(c>>>0>32)break h;I[f>>1]=c;J[j>>2]=l;h=(c|0)!=32?64:h}d=d+1|0;f=f+2|0;j=j+4|0;l=l+1|0;c=(i|0)>1;i=i-1|0;if(c)continue;break}i=0}c=0;break g}l=l+i|0;o=u>>2;while(1){if(d>>>0>=r>>>0){c=d;break d}c=K[d|0];H[(g<<24>>24)+v|0]=c;if(c>>>0<=32)c=H[c+755552|0];else c=c-13|0;j:{k:{l:{p=i-1|0;switch(p|0){case 0:break j;case 1:break l;default:break k}}c=P(c, +243);break j}c=P(c,59049)}g=g+1|0;d=d+1|0;s=12;if((c|0)<0){c=d;break f}o=c+o|0;i=p;if(i)continue;break}i=0;p=0;g=0;c=d;k=h+o|0;if(k>>>0>1114111)break f;c=1}while(1){m:{n:{o:{p:{if(!c){q:{if(f>>>0>=q>>>0){c=d;break q}n=l;c=d;while(1){if(c>>>0>=r>>>0)break d;d=c+1|0;l=n+1|0;e=K[c|0];if(e-80<<24>>24>=0){c=d;break p}r:{if(e>>>0<33){c=d;break r}s:{if(!((e-37&255)>>>0>213|d>>>0>=r>>>0)){p=d;d=c;break s}if((e|0)==255){while(1){n=l;if(d>>>0>=r>>>0){h=64;c=d;break d}c=d+1|0;l=n+1|0;e=K[d|0];if(e-80<<24>>24>= +0){h=64;break p}if(e>>>0<33){h=64;break r}if(!((e-37&255)>>>0>213|c>>>0>=r>>>0)){h=64;p=c;break s}d=c;if((e|0)==255)continue;break}h=64}H[v|0]=e;t:{u:{if(e>>>0>=80){if(e>>>0<=250){g=P(e,243)-50480|0;i=1;break t}g=187660;i=3;if(e>>>0>253)break t;g=P(e,59049)-14810786|0;break u}if(e>>>0>=37){g=P(e,243)-19504|0;i=1;break t}g=-14536567;i=3;if(e>>>0<34)break t;g=P(e,59049)-2195326|0}i=2}u=i|g<<2;g=1;c=1;continue e}o=P(e,243)+(e>>>0>143?-50480:-19504)|0;c=d+2|0;d=K[d+1|0];v:{w:{if(d>>>0>=33){s=d-13|0;break w}s= +H[d+755552|0];l=d&31;if((d&63)>>>0>=32)d=1>>>l|0;else d=((1<>>l;if(d&1)break v}l=n+2|0;k=(h+o|0)+s|0;if(k>>>0<1114112)break o}H[m+37|0]=e;H[m+38|0]=K[p|0];g=2;s=12;break f}I[f>>1]=e;J[j>>2]=n;h=(e|0)!=32?64:h;j=j+4|0;n=l;f=f+2|0;if(q>>>0>f>>>0)continue;break}}s=15;if(c>>>0>>0)break f;break d}x:{y:{z:{A:{B:{if(k-55204>>>0>=4294924444){h=12400;if(k>>>0<12448)break B;h=30481;if(k-19968>>>0<20902)break B;h=49617;if(k>>>0>44031)break B;h=k&2147483520|64;break B}h=k&2147483520| +64;if(k>>>0>65535)break A}I[f>>1]=k;f=f+2|0;c=1;g=j;break z}I[f>>1]=(k>>>10|0)-10304;c=2;g=f+2|0;if(g>>>0>=q>>>0)break y;I[f+2>>1]=k&1023|56320;J[j>>2]=n;f=f+4|0;g=j+4|0}J[g>>2]=n;j=(c<<2)+j|0;g=p;break x}J[j>>2]=n;H[m+65|0]=1;I[m+116>>1]=k&1023|56320;j=j+4|0;s=15;f=g;g=p;c=d;break f}c=0;continue}k=(e+h|0)-144|0;if((k|0)>12287)break o;I[f>>1]=k;J[j>>2]=n;j=j+4|0;f=f+2|0;h=k&-128|64;t=J[a+20>>2];d=c;break n}p=g;d=c;break m}c=0;continue e}c=1;continue}}break}J[b>>2]=s}b=J[b>>2];H[m+36|0]=g;b=(b|0)== +12;J[m+48>>2]=b?0:o<<2|i;J[m+44>>2]=b?64:h;J[a+24>>2]=j;J[a+16>>2]=f;J[a+8>>2]=c}function cVa(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;a=Ac(a,0,256);d=J[b>>2]+c|0;g=K[d+3|0];f=K[d+1|0];e=g+f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a>>2]=(k+d<<3)-5120;e=P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+16>>2]=e-d>>10;J[a+8>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+12>>2]=d+P(g,-17828)>>10;J[a+4>>2]=d+P(f,4209)>>10;d=J[b+4>>2]+c|0;g=K[d+3|0];f=K[d+1|0];e=g+ +f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a+32>>2]=(k+d<<3)-5120;e=P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+48>>2]=e-d>>10;J[a+40>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+44>>2]=d+P(g,-17828)>>10;J[a+36>>2]=d+P(f,4209)>>10;d=J[b+8>>2]+c|0;g=K[d+3|0];f=K[d+1|0];e=g+f|0;i=K[d+4|0];h=K[d|0];j=i+h|0;k=e+j|0;d=K[d+2|0];J[a+64>>2]=(k+d<<3)-5120;e=P(j-e|0,6476)+512|0;d=P(k-(d<<2)|0,2896);J[a+80>>2]=e-d>>10;J[a+72>>2]=d+e>>10;g=f-g|0;f=h-i|0;d=P(g+f|0,6810)+512|0;J[a+76>>2]=d+ +P(g,-17828)>>10;J[a+68>>2]=d+P(f,4209)>>10;d=J[b+12>>2]+c|0;g=K[d+3|0];f=K[d+2|0];e=K[d+1|0];i=e+g|0;h=K[d+4|0];j=K[d|0];k=h+j|0;l=i+k|0;d=(f+l<<3)-5120|0;J[a+96>>2]=d;i=P(k-i|0,6476)+512|0;f=P(l-(f<<2)|0,2896);J[a+112>>2]=i-f>>10;J[a+104>>2]=f+i>>10;f=e-g|0;e=j-h|0;g=P(f+e|0,6810)+512|0;J[a+108>>2]=g+P(f,-17828)>>10;J[a+100>>2]=g+P(e,4209)>>10;b=J[b+16>>2]+c|0;c=K[b+4|0];g=K[b|0];f=c+g|0;e=K[b+3|0];i=K[b+1|0];h=e+i|0;j=P(f-h|0,6476)+512|0;f=f+h|0;h=K[b+2|0];b=P(f-(h<<2)|0,2896);J[a+144>>2]=j-b>> +10;J[a+136>>2]=b+j>>10;e=i-e|0;g=g-c|0;b=P(e+g|0,6810)+512|0;J[a+140>>2]=b+P(e,-17828)>>10;c=(f+h<<3)-5120|0;f=J[a>>2];e=c+f|0;i=J[a+32>>2];h=i+d|0;j=P(e-h|0,8290)+16384|0;e=e+h|0;h=J[a+64>>2];k=P(e-(h<<2)|0,3707);J[a+128>>2]=j-k>>15;J[a+64>>2]=j+k>>15;J[a>>2]=P(e+h|0,10486)+16384>>15;d=i-d|0;f=f-c|0;c=P(d+f|0,8716)+16384|0;J[a+96>>2]=c+P(d,-22820)>>15;J[a+32>>2]=c+P(f,5387)>>15;b=b+P(g,4209)>>10;c=J[a+4>>2];d=b+c|0;g=J[a+100>>2];f=J[a+36>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+68>>2];h= +P(d-(e<<2)|0,3707);J[a+132>>2]=i-h>>15;J[a+68>>2]=h+i>>15;J[a+4>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+100>>2]=b+P(d,-22820)>>15;J[a+36>>2]=b+P(c,5387)>>15;b=J[a+136>>2];c=J[a+8>>2];d=b+c|0;g=J[a+104>>2];f=J[a+40>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+72>>2];h=P(d-(e<<2)|0,3707);J[a+136>>2]=i-h>>15;J[a+72>>2]=h+i>>15;J[a+8>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+104>>2]=b+P(d,-22820)>>15;J[a+40>>2]=b+P(c,5387)>>15;b=J[a+ +140>>2];c=J[a+12>>2];d=b+c|0;g=J[a+108>>2];f=J[a+44>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+76>>2];h=P(d-(e<<2)|0,3707);J[a+140>>2]=i-h>>15;J[a+76>>2]=h+i>>15;J[a+12>>2]=P(d+e|0,10486)+16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+108>>2]=b+P(d,-22820)>>15;J[a+44>>2]=b+P(c,5387)>>15;b=J[a+144>>2];c=J[a+16>>2];d=b+c|0;g=J[a+112>>2];f=J[a+48>>2];e=g+f|0;i=P(d-e|0,8290)+16384|0;d=d+e|0;e=J[a+80>>2];h=P(d-(e<<2)|0,3707);J[a+144>>2]=i-h>>15;J[a+80>>2]=h+i>>15;J[a+16>>2]=P(d+e|0,10486)+ +16384>>15;d=f-g|0;c=c-b|0;b=P(d+c|0,8716)+16384|0;J[a+112>>2]=b+P(d,-22820)>>15;J[a+48>>2]=b+P(c,5387)>>15}function Ynb(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;i=fc+-64|0;fc=i;J[i+60>>2]=0;h=b+108|0;n=J[a+8>>2];a:{b:{if(J[b+72>>2]!=J[a+16>>2]){J[i+60>>2]=6;break b}if(!((c|0)!=2&c>>>0<=4)){J[i+60>>2]=19;break b}if(H[J[b+156>>2]+4|0]&1){e=J[b+88>>2];if(e)kc[J[n+8>>2]](n,e);J[b+88>>2]=0;e=J[b+156>>2];J[e+4>>2]=J[e+4>>2]&-2}if(FN(b,c,d)){J[i+60>>2]=98; +break b}g=b+76|0;e=J[g>>2];c:{if(!e)break c;f=J[b+84>>2];if(!f)break c;p=b,q=_c(n,f,0,e,0,i+60|0),J[p+88>>2]=q;if(J[i+60>>2])break b;e=J[b+156>>2];J[e+4>>2]=J[e+4>>2]|1;e=J[b+76>>2]<<6;l=(K[b+94|0]==6?(e|0)/3|0:e)-(J[b+104>>2]<<6)|0;m=0-(J[b+100>>2]<<6)|0;if(d){m=J[d>>2]+m|0;l=J[d+4>>2]+l|0}if(l|m)Xh(h,m,l);d:{e:{if(c>>>0<=1){if(K[b+124|0]&64){f=fc+-64|0;fc=f;d=J[h+4>>2];if(d)e=(I[h+2>>1]<<3)+d|0;else e=0;c=98;j=J[g+4>>2];f:{if(j&1073733632)break f;J[f+56>>2]=j<<2;J[f+48>>2]=0;J[f+52>>2]=0;J[f+28>> +2]=1673;J[f+24>>2]=3;J[f+20>>2]=h;J[f+44>>2]=f+8;j=J[g>>2];J[f+60>>2]=j<<2;k=J[g+12>>2];c=J[g+8>>2];J[f+12>>2]=c;J[f+8>>2]=k+((c|0)>=0?P(c,j-1|0):0);if(d>>>0>>0){c=d;while(1){J[c>>2]=J[c>>2]<<2;J[c+4>>2]=J[c+4>>2]<<2;c=c+8|0;if(e>>>0>c>>>0)continue;break}c=kc[J[a+56>>2]](J[a+52>>2],f+16|0)|0;if(d>>>0>=e>>>0)break f;while(1){J[d>>2]=J[d>>2]/4;J[d+4>>2]=J[d+4>>2]/4;d=d+8|0;if(e>>>0>d>>>0)continue;break}break f}c=kc[J[a+56>>2]](J[a+52>>2],f+16|0)|0}fc=f- -64|0;d=c;break e}J[i+20>>2]=1;J[i+16>>2]= +h;J[i+12>>2]=g;d=kc[J[a+56>>2]](J[a+52>>2],i+12|0)|0;break e}g:switch(c-3|0){default:a=J[i+60>>2];break d;case 0:e=fc+-64|0;fc=e;f=J[a+4>>2];J[e+48>>2]=0;J[e+52>>2]=0;J[e+28>>2]=1674;J[e+24>>2]=3;J[e+20>>2]=h;J[e+44>>2]=e+8;J[e+56>>2]=J[g+4>>2];d=J[g>>2];J[e+60>>2]=d;j=J[g+12>>2];c=J[g+8>>2];J[e+12>>2]=c;J[e+8>>2]=j+((c|0)>=0?P(c,d-1|0):0);g=f+184|0;Xh(h,0-J[f+180>>2]|0,0-J[g>>2]|0);d=kc[J[a+56>>2]](J[a+52>>2],e+16|0)|0;h:{if(d){c=f+180|0;break h}J[e+8>>2]=J[e+8>>2]+1;c=f+188|0;g=f+192|0;Xh(h,J[f+ +180>>2]-J[c>>2]|0,J[f+184>>2]-J[g>>2]|0);d=kc[J[a+56>>2]](J[a+52>>2],e+16|0)|0;if(d)break h;J[e+8>>2]=J[e+8>>2]+1;c=f+196|0;g=f+200|0;Xh(h,J[f+188>>2]-J[c>>2]|0,J[f+192>>2]-J[g>>2]|0);d=kc[J[a+56>>2]](J[a+52>>2],e+16|0)|0}Xh(h,J[c>>2],J[g>>2]);fc=e- -64|0;break e;case 1:break g}f=fc-48|0;fc=f;e=J[a+4>>2];k=J[g+8>>2];J[f+8>>2]=1;J[f+4>>2]=h;J[f>>2]=g;J[g+8>>2]=P(k,3);J[g>>2]=M[g>>2]/3;Xh(h,0-J[e+184>>2]|0,J[e+180>>2]);d=kc[J[a+56>>2]](J[a+52>>2],f)|0;j=J[e+184>>2];c=J[e+180>>2];i:{if(d)break i;J[g+ +12>>2]=k+J[g+12>>2];Xh(h,j-J[e+192>>2]|0,J[e+188>>2]-c|0);d=kc[J[a+56>>2]](J[a+52>>2],f)|0;c=J[e+188>>2];j=J[e+192>>2];o=J[g+12>>2]-k|0;J[g+12>>2]=o;if(d)break i;k=k<<1;J[g+12>>2]=k+o;Xh(h,j-J[e+200>>2]|0,J[e+196>>2]-c|0);d=kc[J[a+56>>2]](J[a+52>>2],f)|0;c=J[e+196>>2];j=J[e+200>>2];J[g+12>>2]=J[g+12>>2]-k}Xh(h,j,0-c|0);J[g+8>>2]=J[g+8>>2]/3;J[g>>2]=P(J[g>>2],3);fc=f+48|0}a=d;J[i+60>>2]=a}if(a)break b}J[b+72>>2]=1651078259;break a}if(!(H[J[b+156>>2]+4|0]&1))break a;a=J[b+88>>2];if(a)kc[J[n+8>>2]](n, +a);J[b+88>>2]=0;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2}if(l|m)Xh(h,0-m|0,0-l|0);fc=i- -64|0;return J[i+60>>2]}function M0(a){a=a|0;var b=0,c=0,d=0,e=0;d=J[a+420>>2];b=J[d+12>>2];c=(b+J[d+16>>2]|0)-1&-65536;c=((b|0)>(c|0)?c|32768:c)<>2];J[d+12>>2]=c;b=J[d+32>>2];a:{if(c>>>0>=134217728){b:{if((b|0)<0)break b;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(kc[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+ +24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=b+1;b=J[c+4>>2]-1|0;J[c+4>>2]=b;d:{if(b)break d;if(kc[J[c+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(J[d+32>>2]!=254)break b;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break b;if(kc[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+20>>2];J[d+20>>2]=0;J[d+24>>2]=b+J[d+24>>2];break a}e:{if(!b){J[d+24>>2]=J[d+24>>2]+1;break e}if((b| +0)<0)break e;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(kc[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break e;if(kc[J[c+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(!J[d+20>>2])break a;if(J[d+24>>2])while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]= +0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g:{if(c)break g;if(kc[J[b+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(kc[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(kc[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+20>> +2]-1|0;J[d+20>>2]=b;if(b)continue;break}}c=J[d+12>>2];j:{if(!(c&134215680))break j;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(kc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}c=J[d+12>>2]}b=J[a+24>>2];e=J[b>>2];J[b>>2]=e+1;H[e|0]=c>>>19;c=J[b+4>>2]-1|0;J[b+4>>2]=c;l:{if(c)break l;if(kc[J[b+12>>2]](a)|0)break l;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}m:{if((J[d+ +12>>2]&133693440)!=133693440)break m;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break m;if(kc[J[b+12>>2]](a)|0)break m;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}e=J[d+12>>2];if(!(e&522240))break j;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=e>>>11;c=J[b+4>>2]-1|0;J[b+4>>2]=c;n:{if(c)break n;if(kc[J[b+12>>2]](a)|0)break n;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if((J[d+12>>2]&522240)!=522240)break j;d=J[a+24>>2];b=J[d>>2];J[d>>2]=b+1;H[b|0]=0;b=J[d+4>>2]-1|0;J[d+4>>2]=b; +if(b)break j;if(kc[J[d+12>>2]](a)|0)break j;d=J[a>>2];J[d+20>>2]=25;kc[J[d>>2]](a)}}function FJ(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0;h=fc-32|0;fc=h;l=J[b+8>>2];o=J[a+8>>2];kc[J[J[o>>2]+64>>2]](o,J[a+28>>2]);o=J[a+28>>2];C=vc(672);J[699344]=0;p=ga(3564,C|0,o|0,1)|0;E=J[699344];J[699344]=0;if((E|0)!=1){J[a+28>>2]=p;a:{if(c){b$(p);c=J[a+8>>2];kc[J[J[c>>2]+228>>2]](c,J[a+28>>2]);c=J[a+28>>2];J[c+408>>2]=J[c+412>>2];break a}if(e)break a; +Tj(p);c=J[a+28>>2];e=J[a+8>>2];p=J[e>>2];if(d){kc[J[p+224>>2]](e,c);break a}kc[J[p+220>>2]](e,c)}_f(J[a+28>>2]);c=J[a+28>>2];g=O[c+16>>3];i=O[c+40>>3];j=O[c+32>>3];x=O[c+24>>3];f=g*i-j*x;b:{if(R(f)<=1E-10){b=-1;c=J[a+108>>2];c:{if(!c)break c;c=J[c+4>>2];if(J[c+8>>2]==13)break c;b=J[c+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,b,832054,0);break b}q=O[b+16>>3];m=O[a+48>>3];r=O[b+24>>3];s=O[a- -64>>3];t=q*m+r*s;f=1/f;y=i*f;z=f*-j;n=q;q=O[a+56>>3];k=r;r=O[a+72>>3];u=n*q+k*r;D=t*y+z*u;n=t;t=f*-x;A=g*f;u= +n*t+A*u;k=O[b+32>>3];v=O[b+40>>3];w=k*m+s*v;k=k*q+r*v;v=w*y+z*k;k=w*t+A*k;n=j;j=O[c+56>>3];w=O[c+48>>3];n=f*(n*j-w*i);i=O[b+48>>3];F=i*m;m=O[b+56>>3];s=O[a+80>>3]+(F+s*m);i=i*q+r*m+O[a+88>>3];m=n+(s*y+z*i);f=f*(x*w-j*g)+(s*t+A*i);wJ(c,D,u,v,k,m,f);b=J[a+8>>2];kc[J[J[b>>2]+76>>2]](b,J[a+28>>2],D,u,v,k,m,f);if(J[l+176>>2]){f=O[l+144>>3];O[h+24>>3]=f;g=O[l+152>>3];O[h+16>>3]=g;i=O[l+160>>3];O[h+8>>3]=i;j=O[l+168>>3];O[h>>3]=j;b=J[a+28>>2];O[b+608>>3]=g;O[b+600>>3]=f;b=J[b+596>>2];O[b+16>>3]=g;O[b+8>> +3]=f;J[b>>2]=1;b=J[a+28>>2];O[b+608>>3]=g;O[b+600>>3]=i;re(J[b+596>>2],i,g);b=J[a+28>>2];O[b+608>>3]=j;O[b+600>>3]=i;re(J[b+596>>2],i,j);b=J[a+28>>2];O[b+608>>3]=j;O[b+600>>3]=f;re(J[b+596>>2],f,j);b=J[a+28>>2];gg(J[b+596>>2]);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];Tj(J[a+28>>2]);b=J[a+8>>2];kc[J[J[b>>2]+220>>2]](b,J[a+28>>2]);_f(J[a+28>>2])}b=J[a+28>>2];c=J[l+8>>2];d=kc[J[J[c>>2]+8>>2]](c)|0;c=J[b+ +116>>2];if(c)kc[J[J[c>>2]+4>>2]](c);J[b+116>>2]=d;b=J[a+8>>2];kc[J[J[b>>2]+108>>2]](b,J[a+28>>2]);if(J[l+140>>2]){xc(J[a+28>>2]+124|0,l+12|0,128);b=J[a+8>>2];kc[J[J[b>>2]+116>>2]](b,J[a+28>>2]);Cw(J[a+28>>2],h+24|0,h+16|0,h+8|0,h);f=O[h+24>>3];b=J[a+28>>2];g=O[h+16>>3];O[b+608>>3]=g;O[b+600>>3]=f;b=J[b+596>>2];O[b+16>>3]=g;O[b+8>>3]=f;J[b>>2]=1;f=O[h+8>>3];b=J[a+28>>2];g=O[h+16>>3];O[b+608>>3]=g;O[b+600>>3]=f;re(J[b+596>>2],f,g);f=O[h+8>>3];b=J[a+28>>2];g=O[h>>3];O[b+608>>3]=g;O[b+600>>3]=f;re(J[b+ +596>>2],f,g);f=O[h+24>>3];b=J[a+28>>2];g=O[h>>3];O[b+608>>3]=g;O[b+600>>3]=f;re(J[b+596>>2],f,g);b=J[a+28>>2];gg(J[b+596>>2]);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];b=J[a+8>>2];kc[J[J[b>>2]+204>>2]](b,J[a+28>>2]);_f(J[a+28>>2])}x$(a,l)}b=J[a+28>>2];if(J[b+668>>2])while(1){b=Mm(b);J[a+28>>2]=b;c=J[a+8>>2];kc[J[J[c>>2]+68>>2]](c,b);b=J[a+28>>2];if(J[b+668>>2])continue;break}uc(Br(b));J[a+28>>2]=o;a= +J[a+8>>2];kc[J[J[a>>2]+68>>2]](a,o);fc=h+32|0;return}a=Z()|0;uc(C);ba(a|0);B()}function u1(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;e=fc-80|0;fc=e;J[e+72>>2]=0;a:{b:{c:{d:{i=K[J[J[a+36>>2]+16>>2]];switch(i-34|0){case 0:break b;case 5:break c;default:break d}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break a;J[a+84>>2]=36;J[e>>2]=16154;Hc(0,0,0,a,0,1,36,3,0,0,0,0,32906,e);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}i=39}g=kc[J[663198]](100)|0;if(!g){se(a,0);break a}J[a+172>>2]=11; +e:{k=J[a+36>>2];if(J[a+292>>2]|(J[k+20>>2]-J[k+16>>2]|0)>249)break e;Rd(a);if(J[a+172>>2]!=-1)break e;kc[J[663199]](g);break a}Zd(a);j=100;d=Mf(a,e+76|0);while(1){f:{g:{if((d|0)<=255){if((d|0)>31)break g;if(d>>>0>13)break f;if(1<>>0<1048576|d>>>0<55296)break g;if(d-57344>>>0>8189)break f}if(!((d|0)!=(i|0)|J[a+36>>2]!=(k|0))){d=i;break f}if(J[a+172>>2]==-1)break f;h:{if((h+5|0)<(j|0)){c=g;break h}j=j<<1;c=kc[J[663200]](g,j)|0;if(c)break h;c=0;se(a,0);kc[J[663199]](g); +break a}g=c;i:{if(J[e+76>>2]==1){H[c+h|0]=d;h=h+1|0;break i}h=ej(g+h|0,d)+h|0}d=J[a+36>>2];c=J[d+16>>2];j:{if(K[c|0]==10){J[d+32>>2]=1;J[d+28>>2]=J[d+28>>2]+1;break j}J[d+32>>2]=J[d+32>>2]+1}f=c+J[e+76>>2]|0;J[d+16>>2]=f;c=K[f|0];if((c|0)==37){Yd(a);d=J[a+36>>2];f=J[d+16>>2];c=K[f|0]}k:{if(c&255)break k;c=J[a+40>>2];if((c|0)<=1)break k;while(1){l:{m:{n:{if(!J[693384]){f=c-1|0;J[a+40>>2]=f;d=J[a+48>>2];break n}J[e+64>>2]=c;d=0;kc[J[663297]](J[693366],36125,e- -64|0);c=J[a+40>>2];if((c|0)<=0)break l; +f=c-1|0;J[a+40>>2]=f;d=J[a+48>>2];m=0;l=0;if((c|0)==1)break m}m=J[((c<<2)+d|0)-8>>2];l=f}c=l;J[a+36>>2]=m;c=(c<<2)+d|0;d=J[c>>2];J[c>>2]=0}th(d);c=J[a+36>>2];o:{if(K[J[c+16>>2]])break o;if((Nd(c)|0)>0)break o;c=J[a+40>>2];if((c|0)>=2)continue}d=J[a+36>>2];f=J[d+16>>2];if(K[f|0])break k;c=J[a+40>>2];if((c|0)>1)continue;break}}if(!(J[a+292>>2]|(J[d+20>>2]-f|0)>249))Rd(a);d=Mf(a,e+76|0);if(d)continue;p:{if(J[a+292>>2])break p;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break p;Rd(a)}d=Mf(a,e+76|0); +continue}break}c=0;H[g+h|0]=0;q:{if(J[a+172>>2]!=-1){c=g;break q}kc[J[663199]](g);break a}while(1){r:{J[e+72>>2]=c;s:{t:{u:{v:{f=K[c|0];switch(f-37|0){case 0:break u;case 1:break v;default:break t}}if(K[c+1|0]==35)break s}J[e+72>>2]=c+1;c=EK(a,e+72|0);if(!(K[J[e+72>>2]]==59?c:0))El(a,87,31912,f);w:{if((f|0)!=37|J[a+216>>2]!=1|(J[a+40>>2]!=1|(J[a+172>>2]==-1?J[a+212>>2]:0)))break w;J[a+84>>2]=88;J[e+48>>2]=3128;Hc(0,0,0,a,0,1,88,3,0,0,0,0,32906,e+48|0);J[a+12>>2]=0;if(J[a+288>>2])break w;J[a+212>> +2]=1}if(c)kc[J[663199]](c);c=J[e+72>>2];if(!K[c|0])break r;break s}if(!f)break r}c=c+1|0;continue}break}if((d|0)!=(i|0)){x:{if(!a){J[e+16>>2]=16154;Hc(0,0,0,0,0,1,37,3,0,0,0,0,32906,e+16|0);break x}if(J[a+172>>2]==-1?J[a+212>>2]:0)break x;J[a+84>>2]=37;J[e+32>>2]=16154;Hc(0,0,0,a,0,1,37,3,0,0,0,0,32906,e+32|0);J[a+12>>2]=0;if(J[a+288>>2])break x;J[a+212>>2]=1}c=0;kc[J[663199]](g);break a}Zd(a);d=J[a+248>>2];J[a+248>>2]=d+1;c=0;if(!(!a|!g)){c=lu(a,g,Tk(g),2);d=J[a+248>>2]-1|0}J[a+248>>2]=d;if(b){J[b>> +2]=g;break a}kc[J[663199]](g)}fc=e+80|0;return c}function Om(a,b,c,d){a=a|0;b=+b;c=+c;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;f=fc-272|0;fc=f;e=Ac(f,0,256);O[e+264>>3]=c;O[e+256>>3]=b;a:{if(J[a+392>>2]<=0){a=0;f=0;break a}while(1){h=J[((g<<2)+a|0)+264>>2];kc[J[J[h>>2]+16>>2]](h,e+256|0,e+(g<<3)|0);g=g+1|0;if((g|0)>2])continue;break}b=O[e+128>>3]*65536;b:{if(R(b)<2147483648){a=~~b;break b}a=-2147483648}g=a;b=O[e+120>>3]*65536;c:{if(R(b)<2147483648){a= +~~b;break c}a=-2147483648}b=O[e+112>>3]*65536;d:{if(R(b)<2147483648){i=~~b;break d}i=-2147483648}b=O[e+104>>3]*65536;e:{if(R(b)<2147483648){j=~~b;break e}j=-2147483648}b=O[e+96>>3]*65536;f:{if(R(b)<2147483648){k=~~b;break f}k=-2147483648}b=O[e+88>>3]*65536;g:{if(R(b)<2147483648){l=~~b;break g}l=-2147483648}b=O[e+80>>3]*65536;h:{if(R(b)<2147483648){m=~~b;break h}m=-2147483648}b=O[e+72>>3]*65536;i:{if(R(b)<2147483648){n=~~b;break i}n=-2147483648}b=O[e+64>>3]*65536;j:{if(R(b)<2147483648){o=~~b;break j}o= +-2147483648}b=O[e+56>>3]*65536;k:{if(R(b)<2147483648){p=~~b;break k}p=-2147483648}b=O[e+48>>3]*65536;l:{if(R(b)<2147483648){q=~~b;break l}q=-2147483648}b=O[e+40>>3]*65536;m:{if(R(b)<2147483648){r=~~b;break m}r=-2147483648}b=O[e+32>>3]*65536;n:{if(R(b)<2147483648){s=~~b;break n}s=-2147483648}b=O[e+24>>3]*65536;o:{if(R(b)<2147483648){t=~~b;break o}t=-2147483648}b=O[e+16>>3]*65536;p:{if(R(b)<2147483648){u=~~b;break p}u=-2147483648}b=O[e+8>>3]*65536;q:{if(R(b)<2147483648){f=~~b;break q}f=-2147483648}h= +f;b=O[e>>3]*65536;if(R(b)<2147483648){f=~~b;break a}f=-2147483648}J[d+64>>2]=g;J[d+60>>2]=a;J[d+56>>2]=i;J[d+52>>2]=j;J[d+48>>2]=k;J[d+44>>2]=l;J[d+40>>2]=m;J[d+36>>2]=n;J[d+32>>2]=o;J[d+28>>2]=p;J[d+24>>2]=q;J[d+20>>2]=r;J[d+16>>2]=s;J[d+12>>2]=t;J[d+8>>2]=u;J[d+4>>2]=h;J[d>>2]=f;b=O[e+136>>3]*65536;r:{if(R(b)<2147483648){a=~~b;break r}a=-2147483648}J[d+68>>2]=a;b=O[e+144>>3]*65536;s:{if(R(b)<2147483648){a=~~b;break s}a=-2147483648}J[d+72>>2]=a;b=O[e+152>>3]*65536;t:{if(R(b)<2147483648){a=~~b;break t}a= +-2147483648}J[d+76>>2]=a;b=O[e+160>>3]*65536;u:{if(R(b)<2147483648){a=~~b;break u}a=-2147483648}J[d+80>>2]=a;b=O[e+168>>3]*65536;v:{if(R(b)<2147483648){a=~~b;break v}a=-2147483648}J[d+84>>2]=a;b=O[e+176>>3]*65536;w:{if(R(b)<2147483648){a=~~b;break w}a=-2147483648}J[d+88>>2]=a;b=O[e+184>>3]*65536;x:{if(R(b)<2147483648){a=~~b;break x}a=-2147483648}J[d+92>>2]=a;b=O[e+192>>3]*65536;y:{if(R(b)<2147483648){a=~~b;break y}a=-2147483648}J[d+96>>2]=a;b=O[e+200>>3]*65536;z:{if(R(b)<2147483648){a=~~b;break z}a= +-2147483648}J[d+100>>2]=a;b=O[e+208>>3]*65536;A:{if(R(b)<2147483648){a=~~b;break A}a=-2147483648}J[d+104>>2]=a;b=O[e+216>>3]*65536;B:{if(R(b)<2147483648){a=~~b;break B}a=-2147483648}J[d+108>>2]=a;b=O[e+224>>3]*65536;C:{if(R(b)<2147483648){a=~~b;break C}a=-2147483648}J[d+112>>2]=a;b=O[e+232>>3]*65536;D:{if(R(b)<2147483648){a=~~b;break D}a=-2147483648}J[d+116>>2]=a;b=O[e+240>>3]*65536;E:{if(R(b)<2147483648){a=~~b;break E}a=-2147483648}J[d+120>>2]=a;b=O[e+248>>3]*65536;F:{if(R(b)<2147483648){a=~~b;break F}a= +-2147483648}J[d+124>>2]=a;fc=e+272|0}function fIa(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=fc-48|0;fc=e;xr(e+36|0,b,c);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{c=J[b+4>>2];b=J[c+8>>2];k=J[c+12>>2];if((b|0)==(k|0))break a;b:{if(d)while(1){d=K[b+11|0];c=d<<24>>24<0;g=c?J[b+4>>2]:d;h=c?J[b>>2]:b;d=K[e+47|0];c=d<<24>>24<0;f=c?J[e+40>>2]:d;c:{if(f){if((f|0)>(g|0))break c;i=g+h|0;j=c?J[e+36>>2]:e+36|0;l=H[j|0];d=g;c=h;while(1){d=(d-f|0)+1|0;if(!d)break c;c=Cg(c,l,d);if(!c)break c; +if(dd(c,j,f)){c=c+1|0;d=i-c|0;if((f|0)<=(d|0))continue;break c}break}if((c|0)==(i|0)|(c|0)!=(h|0))break c}J[699344]=0;c=e+8|0;ca(1618,c|0,h|0,g|0);d=J[699344];J[699344]=0;d:{e:{f:{g:{h:{if((d|0)!=1){J[699344]=0;ga(4912,c|0,(H[e+19|0]<0?J[e+8>>2]:c)|0,47)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[e+32>>2]=J[e+16>>2];J[e+16>>2]=0;c=J[e+12>>2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=c;J[e+8>>2]=0;J[e+12>>2]=0;c=J[a+4>>2];if(c>>>0>2])break e;J[699344]=0;da(2957,a|0,e+24|0);c=J[699344];J[699344]= +0;if((c|0)==1)break g;if(H[e+35|0]>=0)break d;uc(J[e+24>>2]);break d}b=Z()|0;break b}b=Z()|0;break f}b=Z()|0;if(H[e+35|0]>=0)break f;uc(J[e+24>>2])}if(H[e+19|0]>=0)break b;uc(J[e+8>>2]);break b}d=J[e+28>>2];J[c>>2]=J[e+24>>2];J[c+4>>2]=d;J[c+8>>2]=J[e+32>>2];J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[a+4>>2]=c+12}if(H[e+19|0]>=0)break c;uc(J[e+8>>2])}b=b+20|0;if((k|0)!=(b|0))continue;break a}while(1){d=K[b+11|0];c=d<<24>>24<0;h=c?J[b+4>>2]:d;g=c?J[b>>2]:b;d=K[e+47|0];c=d<<24>>24<0;i:{f=c?J[e+40>>2]: +d;j:{if(f){if((f|0)>(h|0))break i;i=g+h|0;j=c?J[e+36>>2]:e+36|0;l=H[j|0];d=h;c=g;while(1){d=(d-f|0)+1|0;if(!d)break i;c=Cg(c,l,d);if(!c)break i;if(dd(c,j,f)){c=c+1|0;d=i-c|0;if((f|0)<=(d|0))continue;break i}break}if((c|0)==(i|0)|(c|0)!=(g|0)|f>>>0>=h>>>0)break i;break j}if(!h)break i}c=f+g|0;d=g+h|0;while(1){f=K[c|0];if(!((f|0)==47|(f|0)==92)){c=c+1|0;if((d|0)!=(c|0))continue;break i}break}if((c|0)==(d|0))break i;c=c-g|0;if((c|0)==-1)break i;c=c+1|0;k:{if(c>>>0>=h>>>0)break k;c=c+g|0;while(1){f=K[c| +0];if(!((f|0)==47|(f|0)==92)){c=c+1|0;if((d|0)!=(c|0))continue;break k}break}if((c|0)==(d|0))break k;if((c-g|0)!=-1)break i}J[699344]=0;c=e+8|0;ca(1618,c|0,g|0,h|0);d=J[699344];J[699344]=0;l:{m:{n:{if((d|0)!=1){J[699344]=0;ga(4912,c|0,(H[e+19|0]<0?J[e+8>>2]:c)|0,47)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[e+32>>2]=J[e+16>>2];J[e+16>>2]=0;c=J[e+12>>2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=c;J[e+8>>2]=0;J[e+12>>2]=0;c=J[a+4>>2];o:{if(c>>>0>2]){d=J[e+28>>2];J[c>>2]=J[e+24>>2];J[c+4>>2]=d;J[c+ +8>>2]=J[e+32>>2];J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[a+4>>2]=c+12;break o}J[699344]=0;da(2957,a|0,e+24|0);c=J[699344];J[699344]=0;if((c|0)==1)break m;if(H[e+35|0]>=0)break o;uc(J[e+24>>2])}if(H[e+19|0]>=0)break i;uc(J[e+8>>2]);break i}b=Z()|0;break b}b=Z()|0;break l}b=Z()|0;if(H[e+35|0]>=0)break l;uc(J[e+24>>2])}if(H[e+19|0]>=0)break b;uc(J[e+8>>2]);break b}b=b+20|0;if((k|0)!=(b|0))continue;break}break a}Ag(a);if(H[e+47|0]<0)uc(J[e+36>>2]);ba(b|0);B()}if(H[e+47|0]<0)uc(J[e+36>>2]);fc=e+48|0} +function Xl(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;q=J[a+20>>2];z=J[a+28>>2]-q>>3;w=J[a+8>>2];while(1){B=J[q+12>>2];x=I[q+8>>1];a=I[q+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){o=J[c>>2];break a}o=J[c>>2];i=e;e=a+255&130816;if((i|0)==(e|0))break a;if(o)uc(o);J[c+4>>2]=e;o=vc(e<<2);J[c>>2]=o}n=o;e=J[d+4>>2];i=J[e>>2];C=O[i+32>>3];D=O[i>>3];L=O[i+16>> +3];E=O[i+40>>3];F=O[i+8>>3];t=O[d+16>>3];r=O[i+24>>3];j=O[d+24>>3];i=a;p=(i|0)<=1?1:i;J[e+24>>2]=p;J[e+4>>2]=p;A=t+ +(x|0);t=r;r=j+ +(w|0);G=t*r;j=(E+(F*A+G))*256;j=j+(j<0?-.5:.5);b:{if(R(j)<2147483648){g=~~j;break b}g=-2147483648}J[e+40>>2]=g;t=r*L;j=(C+(A*D+t))*256;j=j+(j<0?-.5:.5);c:{if(R(j)<2147483648){f=~~j;break c}f=-2147483648}J[e+20>>2]=f;r=A+ +(i>>>0);j=(E+(r*F+G))*256;j=j+(j<0?-.5:.5);d:{if(R(j)<2147483648){m=~~j;break d}m=-2147483648}h=m-g|0;g=(h|0)/(p|0)|0;l=h-P(g,p)|0;k=(l|0)<=0;J[e+ +28>>2]=g-k;j=(C+(r*D+t))*256;j=j+(j<0?-.5:.5);e:{if(R(j)<2147483648){g=~~j;break e}g=-2147483648}g=g-f|0;f=(g|0)/(p|0)|0;m=f;h=g-P(f,p)|0;f=(h|0)<=0;J[e+8>>2]=m-f;g=l+(k?i:0)|0;J[e+32>>2]=g;f=h+(f?i:0)|0;J[e+12>>2]=f;J[e+36>>2]=g-i;J[e+16>>2]=f-i;e=J[d+4>>2];g=J[e+40>>2];f=J[e+20>>2];while(1){e=J[d+36>>2];l=J[d>>2];s=f-J[d+32>>2]|0;f=s>>8;J[l+8>>2]=f;u=g-e|0;h=(J[l+28>>2]+(u>>8)>>>0)%M[l+24>>2]|0;J[l+32>>2]=h;e=J[J[l>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];m=f+J[l+16>>2]|0;f=J[l+12>>2];k=(m>>>0)%(f>>>0)| +0;J[l+20>>2]=k;g=g+P(e,h)|0;J[l+4>>2]=g;e=g+(k<<2)|0;N=K[e+2|0];Q=K[e+1|0];S=K[e|0];v=K[e+3|0];e=k+1|0;e=e>>>0>>0?e:0;J[l+20>>2]=e;e=g+(e<<2)|0;T=K[e+2|0];U=K[e+1|0];V=K[e|0];m=K[e+3|0];k=J[d>>2];e=J[k+32>>2]+1|0;h=e>>>0>2]?e:0;J[k+32>>2]=h;e=J[J[k>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];f=(J[k+16>>2]+J[k+8>>2]>>>0)%M[k+12>>2]|0;J[k+20>>2]=f;e=g+P(e,h)|0;J[k+4>>2]=e;e=e+(f<<2)|0;W=K[e+2|0];X=K[e+1|0];p=K[e|0];l=K[e+3|0];f=J[d>>2];e=J[f+20>>2]+1|0;e=e>>>0>2]?e:0;J[f+20>>2]=e;y=J[f+4>>2]+ +(e<<2)|0;k=K[y+2|0];h=K[y+1|0];g=K[y|0];Y=v;u=u&255;f=256-u|0;v=s&255;e=256-v|0;s=P(f,e);Z=m;m=P(f,v);f=P(e,u);e=P(u,v);H[n+3|0]=(((P(Y,s)+P(Z,m)|0)+P(f,l)|0)+P(e,K[y+3|0])|0)+32768>>>16;H[n+2|0]=(((P(s,S)+P(m,V)|0)+P(f,p)|0)+P(e,g)|0)+32768>>>16;H[n+1|0]=(((P(s,Q)+P(m,U)|0)+P(f,X)|0)+P(e,h)|0)+32768>>>16;H[n|0]=(((P(s,N)+P(m,T)|0)+P(f,W)|0)+P(e,k)|0)+32768>>>16;h=J[d+4>>2];e=J[h+16>>2]+J[h+12>>2]|0;J[h+16>>2]=e;f=J[h+20>>2]+J[h+8>>2]|0;J[h+20>>2]=f;if((e|0)>0){f=f+1|0;J[h+20>>2]=f;J[h+16>>2]=e-J[h+ +4>>2]}e=J[h+36>>2]+J[h+32>>2]|0;J[h+36>>2]=e;g=J[h+40>>2]+J[h+28>>2]|0;J[h+40>>2]=g;if((e|0)>0){g=g+1|0;J[h+40>>2]=g;J[h+36>>2]=e-J[h+24>>2]}n=n+4|0;i=i-1|0;if(i)continue;break}f:{if(J[b+16>>2]<(w|0)|J[b+8>>2]>(w|0))break f;e=I[q+10>>1]<0;n=e?0:B;f=K[B|0];i=J[b+4>>2];g:{if((x|0)>=(i|0)){i=x;break g}g=i-x|0;a=a-g|0;if((a|0)<=0)break f;n=e?0:g+n|0;o=(g<<2)+o|0}g=J[b>>2];e=J[b+12>>2];if((e|0)<(a+i|0)){a=e-i|0;if((a|0)<0)break f;a=a+1|0}_k(g,i,w,a,o,n,f)}q=q+8|0;z=z-1|0;if(z)continue;break}}function Ol(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,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,N=0,Q=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;q=J[a+20>>2];z=J[a+28>>2]-q>>3;w=J[a+8>>2];while(1){B=J[q+12>>2];x=I[q+8>>1];a=I[q+10>>1];e=a>>31;a=(a^e)-e|0;e=J[c+4>>2];a:{if(a>>>0<=e>>>0){o=J[c>>2];break a}o=J[c>>2];i=e;e=a+255&130816;if((i|0)==(e|0))break a;if(o)uc(o);J[c+4>>2]=e;o=vc(e<<2);J[c>>2]=o}n=o;e=J[d+4>>2];i=J[e>>2];C=O[i+32>>3];D=O[i>>3];L=O[i+16>>3];E=O[i+40>>3]; +F=O[i+8>>3];t=O[d+16>>3];r=O[i+24>>3];j=O[d+24>>3];i=a;p=(i|0)<=1?1:i;J[e+24>>2]=p;J[e+4>>2]=p;A=t+ +(x|0);t=r;r=j+ +(w|0);G=t*r;j=(E+(F*A+G))*256;j=j+(j<0?-.5:.5);b:{if(R(j)<2147483648){g=~~j;break b}g=-2147483648}J[e+40>>2]=g;t=r*L;j=(C+(A*D+t))*256;j=j+(j<0?-.5:.5);c:{if(R(j)<2147483648){f=~~j;break c}f=-2147483648}J[e+20>>2]=f;r=A+ +(i>>>0);j=(E+(r*F+G))*256;j=j+(j<0?-.5:.5);d:{if(R(j)<2147483648){m=~~j;break d}m=-2147483648}h=m-g|0;g=(h|0)/(p|0)|0;l=h-P(g,p)|0;k=(l|0)<=0;J[e+28>>2]=g-k;j=(C+ +(r*D+t))*256;j=j+(j<0?-.5:.5);e:{if(R(j)<2147483648){g=~~j;break e}g=-2147483648}g=g-f|0;f=(g|0)/(p|0)|0;m=f;h=g-P(f,p)|0;f=(h|0)<=0;J[e+8>>2]=m-f;g=l+(k?i:0)|0;J[e+32>>2]=g;f=h+(f?i:0)|0;J[e+12>>2]=f;J[e+36>>2]=g-i;J[e+16>>2]=f-i;e=J[d+4>>2];g=J[e+40>>2];f=J[e+20>>2];while(1){e=J[d+36>>2];l=J[d>>2];s=f-J[d+32>>2]|0;f=s>>8;J[l+8>>2]=f;u=g-e|0;h=(J[l+28>>2]+(u>>8)>>>0)%M[l+24>>2]|0;J[l+32>>2]=h;e=J[J[l>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];m=f+J[l+16>>2]|0;f=J[l+12>>2];k=(m>>>0)%(f>>>0)|0;J[l+20>>2]=k; +g=g+P(e,h)|0;J[l+4>>2]=g;e=g+(k<<2)|0;N=K[e|0];Q=K[e+1|0];S=K[e+2|0];v=K[e+3|0];e=k+1|0;e=e>>>0>>0?e:0;J[l+20>>2]=e;e=g+(e<<2)|0;T=K[e|0];U=K[e+1|0];V=K[e+2|0];m=K[e+3|0];k=J[d>>2];e=J[k+32>>2]+1|0;h=e>>>0>2]?e:0;J[k+32>>2]=h;e=J[J[k>>2]>>2];g=J[e+4>>2];e=J[e+16>>2];f=(J[k+16>>2]+J[k+8>>2]>>>0)%M[k+12>>2]|0;J[k+20>>2]=f;e=g+P(e,h)|0;J[k+4>>2]=e;e=e+(f<<2)|0;W=K[e|0];X=K[e+1|0];p=K[e+2|0];l=K[e+3|0];f=J[d>>2];e=J[f+20>>2]+1|0;e=e>>>0>2]?e:0;J[f+20>>2]=e;y=J[f+4>>2]+(e<<2)|0;k=K[y| +0];h=K[y+1|0];g=K[y+2|0];Y=v;u=u&255;f=256-u|0;v=s&255;e=256-v|0;s=P(f,e);Z=m;m=P(f,v);f=P(e,u);e=P(u,v);H[n+3|0]=(((P(Y,s)+P(Z,m)|0)+P(f,l)|0)+P(e,K[y+3|0])|0)+32768>>>16;H[n+2|0]=(((P(s,S)+P(m,V)|0)+P(f,p)|0)+P(e,g)|0)+32768>>>16;H[n+1|0]=(((P(s,Q)+P(m,U)|0)+P(f,X)|0)+P(e,h)|0)+32768>>>16;H[n|0]=(((P(s,N)+P(m,T)|0)+P(f,W)|0)+P(e,k)|0)+32768>>>16;h=J[d+4>>2];e=J[h+16>>2]+J[h+12>>2]|0;J[h+16>>2]=e;f=J[h+20>>2]+J[h+8>>2]|0;J[h+20>>2]=f;if((e|0)>0){f=f+1|0;J[h+20>>2]=f;J[h+16>>2]=e-J[h+4>>2]}e=J[h+ +36>>2]+J[h+32>>2]|0;J[h+36>>2]=e;g=J[h+40>>2]+J[h+28>>2]|0;J[h+40>>2]=g;if((e|0)>0){g=g+1|0;J[h+40>>2]=g;J[h+36>>2]=e-J[h+24>>2]}n=n+4|0;i=i-1|0;if(i)continue;break}f:{if(J[b+16>>2]<(w|0)|J[b+8>>2]>(w|0))break f;e=I[q+10>>1]<0;n=e?0:B;f=K[B|0];i=J[b+4>>2];g:{if((x|0)>=(i|0)){i=x;break g}g=i-x|0;a=a-g|0;if((a|0)<=0)break f;n=e?0:g+n|0;o=(g<<2)+o|0}g=J[b>>2];e=J[b+12>>2];if((e|0)<(a+i|0)){a=e-i|0;if((a|0)<0)break f;a=a+1|0}_k(g,i,w,a,o,n,f)}q=q+8|0;z=z-1|0;if(z)continue;break}}function yj(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[a+20>>2]=1;q=qe(a,1,c);d=J[a+20>>2];h=d<<1;d=d>>>0<256?q|h:h&254|q|256;J[a+20>>2]=d;f=qe(a,d,c);d=J[a+20>>2];h=d<<1;d=d>>>0<256?f|h:f|h&254|256;J[a+20>>2]=d;h=qe(a,d,c);d=J[a+20>>2];e=d<<1;d=d>>>0<256?h|e:h|e&254|256;J[a+20>>2]=d;d=qe(a,d,c);e=J[a+20>>2];g=e<<1;e=e>>>0<256?d|g:d|g&254|256;J[a+20>>2]=e;a:{b:{if(f){if(h){h=qe(a,e,c);f=J[a+20>>2];e=f<<1;f=f>>>0<256?h|e:h|e&254|256;J[a+20>>2]=f;if(!d){d=qe(a,f,c);f=J[a+20>>2];e=f<<1;f=f>>>0<256? +d|e:d|e&254|256;J[a+20>>2]=f;f=qe(a,f,c);e=J[a+20>>2];g=e<<1;e=e>>>0<256?f|g:f|g&254|256;J[a+20>>2]=e;e=qe(a,e,c);g=J[a+20>>2];i=g<<1;g=g>>>0<256?e|i:e|i&254|256;J[a+20>>2]=g;g=qe(a,g,c);i=J[a+20>>2];j=i<<1;i=i>>>0<256?g|j:g|j&254|256;J[a+20>>2]=i;m=a;c=qe(a,i,c);a=J[a+20>>2];i=a<<1;J[m+20>>2]=a>>>0<256?c|i:c|i&254|256;a=(c|(g|((f|(h<<2|d<<1))<<2|e<<1))<<1)+20|0;break a}f=qe(a,f,c);d=J[a+20>>2];e=d<<1;d=d>>>0<256?f|e:f|e&254|256;J[a+20>>2]=d;if(!h){d=qe(a,d,c);h=J[a+20>>2];e=h<<1;h=h>>>0<256?d|e: +d|e&254|256;J[a+20>>2]=h;h=qe(a,h,c);e=J[a+20>>2];g=e<<1;e=e>>>0<256?h|g:h|g&254|256;J[a+20>>2]=e;e=qe(a,e,c);g=J[a+20>>2];i=g<<1;g=g>>>0<256?e|i:e|i&254|256;J[a+20>>2]=g;g=qe(a,g,c);i=J[a+20>>2];j=i<<1;i=i>>>0<256?g|j:g|j&254|256;J[a+20>>2]=i;i=qe(a,i,c);j=J[a+20>>2];k=j<<1;j=j>>>0<256?i|k:i|k&254|256;J[a+20>>2]=j;j=qe(a,j,c);k=J[a+20>>2];n=k<<1;k=k>>>0<256?j|n:j|n&254|256;J[a+20>>2]=k;m=a;c=qe(a,k,c);a=J[a+20>>2];k=a<<1;J[m+20>>2]=a>>>0<256?c|k:c|k&254|256;a=(c|(j|((g|((h|(f<<2|d<<1))<<2|e<<1))<< +2|i<<1))<<1)+84|0;break a}if(!f)break b;f=0;h=0;while(1){e=qe(a,d,c);d=J[a+20>>2];g=d<<1;d=d>>>0<256?e|g:e|g&254|256;J[a+20>>2]=d;h=e|h<<1;f=f+1|0;if((f|0)!=32)continue;break}a=h+4436|0;break a}h=qe(a,e,c);f=J[a+20>>2];e=f<<1;f=f>>>0<256?h|e:h|e&254|256;J[a+20>>2]=f;f=qe(a,f,c);e=J[a+20>>2];g=e<<1;e=e>>>0<256?f|g:f|g&254|256;J[a+20>>2]=e;m=a;c=qe(a,e,c);a=J[a+20>>2];e=a<<1;J[m+20>>2]=a>>>0<256?c|e:c|e&254|256;a=c|((f|(h<<1|d<<2))<<1)+4;break a}a=d|h<<1;break a}h=qe(a,d,c);d=J[a+20>>2];f=d<<1;d=d>>> +0<256?h|f:h|f&254|256;J[a+20>>2]=d;f=qe(a,d,c);d=J[a+20>>2];e=d<<1;d=d>>>0<256?f|e:f|e&254|256;J[a+20>>2]=d;e=qe(a,d,c);d=J[a+20>>2];g=d<<1;d=d>>>0<256?e|g:e|g&254|256;J[a+20>>2]=d;g=qe(a,d,c);d=J[a+20>>2];i=d<<1;d=d>>>0<256?g|i:g|i&254|256;J[a+20>>2]=d;i=qe(a,d,c);d=J[a+20>>2];j=d<<1;d=d>>>0<256?i|j:i|j&254|256;J[a+20>>2]=d;j=qe(a,d,c);d=J[a+20>>2];k=d<<1;d=d>>>0<256?j|k:j|k&254|256;J[a+20>>2]=d;k=qe(a,d,c);d=J[a+20>>2];n=d<<1;d=d>>>0<256?k|n:k|n&254|256;J[a+20>>2]=d;n=qe(a,d,c);d=J[a+20>>2];o=d<< +1;d=d>>>0<256?n|o:n|o&254|256;J[a+20>>2]=d;o=qe(a,d,c);d=J[a+20>>2];p=d<<1;d=d>>>0<256?o|p:o|p&254|256;J[a+20>>2]=d;p=qe(a,d,c);d=J[a+20>>2];l=d<<1;d=d>>>0<256?p|l:p|l&254|256;J[a+20>>2]=d;d=qe(a,d,c);l=J[a+20>>2];m=l<<1;l=l>>>0<256?d|m:d|m&254|256;J[a+20>>2]=l;m=a;c=qe(a,l,c);a=J[a+20>>2];l=a<<1;J[m+20>>2]=a>>>0<256?c|l:c|l&254|256;a=(c|(d|((o|((k|((i|((e|(h<<2|f<<1))<<2|g<<1))<<2|j<<1))<<2|n<<1))<<2|p<<1))<<1)+340|0}if(q){if(!a)return 0;a=0-a|0}J[b>>2]=a;return 1}function Vp(a){var b=0,c=0,d=0, +e=0,f=0,g=0,h=0;h=fc-16|0;fc=h;b=J[a+344>>2]+1|0;J[a+344>>2]=b;a:{if(b>>>0>2])break a;if(K[a+398|0]){J[a+344>>2]=0;Ac(J[a+352>>2],0,J[a+336>>2]+1|0);b:{g=K[a+399|0];f=g+1|0;b=f&255;if(b>>>0>6)break b;e=K[b+68840|0];d=(e+J[a+320>>2]|0)+(K[b+68833|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);c:{if(K[a+208|0]&2)break c;c=K[b+68739|0];b=(c+J[a+324>>2]|0)+(K[b+68732|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+2|0;b=f&255;if(b>>>0>6)break b;e=K[b+68840|0];d=(e+J[a+320>> +2]|0)+(K[b+68833|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68739|0];b=(c+J[a+324>>2]|0)+(K[b+68732|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+3|0;b=f&255;if(b>>>0>6)break b;e=K[b+68840|0];d=(e+J[a+320>>2]|0)+(K[b+68833|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68739|0];b=(c+J[a+324>>2]|0)+(K[b+68732|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+4|0;b=f&255;if(b>>>0>6)break b;e=K[b+ +68840|0];d=(e+J[a+320>>2]|0)+(K[b+68833|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68739|0];b=(c+J[a+324>>2]|0)+(K[b+68732|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+5|0;b=f&255;if(b>>>0>6)break b;e=K[b+68840|0];d=(e+J[a+320>>2]|0)+(K[b+68833|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68739|0];b=(c+J[a+324>>2]|0)+(K[b+68732|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+6|0;b=f&255;if(b>>> +0>6)break b;e=K[b+68840|0];d=(e+J[a+320>>2]|0)+(K[b+68833|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68739|0];b=(c+J[a+324>>2]|0)+(K[b+68732|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c;f=g+7|0;if(g>>>0<249)break b;b=f&255;e=K[b+68840|0];d=(e+J[a+320>>2]|0)+(K[b+68833|0]^-1)|0;J[a+340>>2]=(d>>>0)/(e>>>0);if(K[a+208|0]&2)break c;c=K[b+68739|0];b=(c+J[a+324>>2]|0)+(K[b+68732|0]^-1)|0;J[a+328>>2]=(b>>>0)/(c>>>0);if(e>>>0<=d>>>0&b>>>0>=c>>>0)break c; +f=g+8|0;d=f&255;if(d>>>0>6)break b;b=K[d+68840|0];J[a+340>>2]=((b+J[a+320>>2]|0)+(K[d+68833|0]^-1)>>>0)/(b>>>0);if(K[a+208|0]&2)break c;b=K[d+68739|0];J[a+328>>2]=((b+J[a+324>>2]|0)+(K[d+68732|0]^-1)>>>0)/(b>>>0)}H[a+399|0]=f;break a}H[a+399|0]=f}if(!(K[a+204|0]&32)){J[a+228>>2]=1;J[a+224>>2]=h+15;d=a+212|0;d:{while(1){if(!J[a+216>>2]){b=J[a+380>>2];e:{while(1){if(b)break e;Vd(a,0);b=dB(a);J[a+380>>2]=b;if(J[a+348>>2]==1229209940)continue;break}Ld(a,68746);B()}f=J[a+272>>2];J[a+216>>2]=f;c=J[a+268>> +2];J[a+212>>2]=c;if(b>>>0>>0){J[a+216>>2]=b;f=b}Dg(a,c,f);Ae(a,c,f);J[a+380>>2]=J[a+380>>2]-J[a+216>>2]}b=Vk(d,1);f:{if(b){if((b|0)==1){if(J[a+380>>2]|(J[a+216>>2]|!J[a+228>>2]))break f;break d}b=a;a=J[a+236>>2];Ld(b,a?a:68790);B()}if(J[a+228>>2])continue}break}fd(a,68768)}J[a+228>>2]=0;J[a+200>>2]=J[a+200>>2]|8;J[a+204>>2]=J[a+204>>2]|32}if(J[a+380>>2]|J[a+216>>2])fd(a,68810);yx(a+212|0);J[a+200>>2]=J[a+200>>2]|8}fc=h+16|0}function M7a(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;e=fc-336|0;fc=e;i=O[c+72>>3];p=O[c>>3];a:{b:{if(!K[c+120|0]){J[699344]=0;j=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;O[j+24>>3]=i;O[j+16>>3]=i;O[j+8>>3]=p;O[j>>3]=p;l=O[c+80>>3];m=O[c+8>>3];J[699344]=0;n=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;O[n>>3]=m;i=l;q=m;break b}m=O[c+104>>3];l=O[c+88>>3];J[699344]=0;j=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;O[j+24>>3]=i;O[j>>3]=p;O[j+16>>3]=i+m;O[j+8>>3]=i+l;l=O[c+112>>3];m=O[c+96>> +3];i=O[c+80>>3];q=O[c+8>>3];J[699344]=0;n=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;O[n>>3]=q;m=i+m;l=i+l}O[n+24>>3]=i;O[n+16>>3]=l;O[n+8>>3]=m;O[e+296>>3]=O[j+24>>3]-p;O[e+312>>3]=O[n+24>>3]-q;a5(e+320|0,b,j,n,e+296|0,e+312|0);o=J[e+320>>2];r=J[e+324>>2];if((o|0)!=(r|0)){g=d?b:c;h=d?c:b;c:{while(1){i=O[o>>3];O[e+312>>3]=i;J[e+332>>2]=0;f=e+296|0;ah(f,b,e+312|0,e+332|0);l=an(c,f);d:{if(!d){m=i;i=l;break d}O[e+312>>3]=l;m=l}e:{f:{if(i==-1)break f;O[e+152>>3]=O[h>>3];O[e+160>>3]=O[h+8>> +3];O[e+168>>3]=O[h+16>>3];O[e+176>>3]=O[h+24>>3];O[e+184>>3]=O[h+32>>3];O[e+192>>3]=O[h+40>>3];f=J[h+60>>2];J[e+208>>2]=J[h+56>>2];J[e+212>>2]=f;f=J[h+52>>2];J[e+200>>2]=J[h+48>>2];J[e+204>>2]=f;J[e+216>>2]=J[h+64>>2];f=J[h+68>>2];J[e+220>>2]=f;if(f)J[f+4>>2]=J[f+4>>2]+1;O[e+224>>3]=O[h+72>>3];O[e+232>>3]=O[h+80>>3];O[e+240>>3]=O[h+88>>3];O[e+248>>3]=O[h+96>>3];O[e+256>>3]=O[h+104>>3];O[e+264>>3]=O[h+112>>3];f=J[h+132>>2];J[e+280>>2]=J[h+128>>2];J[e+284>>2]=f;f=J[h+124>>2];J[e+272>>2]=J[h+120>>2]; +J[e+276>>2]=f;J[e+288>>2]=J[h+136>>2];f=J[h+140>>2];J[e+292>>2]=f;if(f)J[f+4>>2]=J[f+4>>2]+1;O[e+8>>3]=O[g>>3];O[e+16>>3]=O[g+8>>3];O[e+24>>3]=O[g+16>>3];O[e+32>>3]=O[g+24>>3];O[e+40>>3]=O[g+32>>3];O[e+48>>3]=O[g+40>>3];f=J[g+60>>2];J[e+64>>2]=J[g+56>>2];J[e+68>>2]=f;f=J[g+52>>2];J[e+56>>2]=J[g+48>>2];J[e+60>>2]=f;J[e+72>>2]=J[g+64>>2];f=J[g+68>>2];J[e+76>>2]=f;if(f)J[f+4>>2]=J[f+4>>2]+1;O[e+80>>3]=O[g+72>>3];O[e+88>>3]=O[g+80>>3];O[e+96>>3]=O[g+88>>3];O[e+104>>3]=O[g+96>>3];O[e+112>>3]=O[g+104>> +3];O[e+120>>3]=O[g+112>>3];f=J[g+132>>2];J[e+136>>2]=J[g+128>>2];J[e+140>>2]=f;f=J[g+124>>2];J[e+128>>2]=J[g+120>>2];J[e+132>>2]=f;J[e+144>>2]=J[g+136>>2];f=J[g+140>>2];J[e+148>>2]=f;if(f)J[f+4>>2]=J[f+4>>2]+1;J[699344]=0;Ca(2518,a|0,e+152|0,e+8|0,+m,+i,0,1,0);k=J[699344];J[699344]=0;if((k|0)==1)break e;g:{if(!f)break g;k=J[f+4>>2];J[f+4>>2]=k-1;if(k)break g;kc[J[J[f>>2]+8>>2]](f);Gc(f)}f=J[e+76>>2];h:{if(!f)break h;k=J[f+4>>2];J[f+4>>2]=k-1;if(k)break h;kc[J[J[f>>2]+8>>2]](f);Gc(f)}f=J[e+292>>2]; +i:{if(!f)break i;k=J[f+4>>2];J[f+4>>2]=k-1;if(k)break i;kc[J[J[f>>2]+8>>2]](f);Gc(f)}f=J[e+220>>2];if(!f)break f;k=J[f+4>>2];J[f+4>>2]=k-1;if(k)break f;kc[J[J[f>>2]+8>>2]](f);Gc(f)}o=o+8|0;if((r|0)==(o|0))break c;continue}break}b=Z()|0;nh(e+8|0);nh(e+152|0);a=J[e+320>>2];if(a){J[e+324>>2]=a;uc(a)}uc(n);uc(j);ba(b|0);B()}o=J[e+320>>2]}if(o){J[e+324>>2]=o;uc(o)}uc(n);uc(j);fc=e+336|0;return}ea(0)|0;Bc();B()}function au(a,b,c){a=a|0;b=+b;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;e=fc-272|0;fc=e;O[e+264>>3]=b;d=Ac(e,0,256);a:{if(J[a+376>>2]<=0){a=0;e=0;break a}while(1){g=J[((f<<2)+a|0)+248>>2];kc[J[J[g>>2]+16>>2]](g,d+264|0,d+(f<<3)|0);f=f+1|0;if((f|0)>2])continue;break}b=O[d+128>>3]*65536;b:{if(R(b)<2147483648){a=~~b;break b}a=-2147483648}f=a;b=O[d+120>>3]*65536;c:{if(R(b)<2147483648){a=~~b;break c}a=-2147483648}b=O[d+112>>3]*65536;d:{if(R(b)<2147483648){h=~~b;break d}h=-2147483648}b=O[d+104>>3]*65536;e:{if(R(b)<2147483648){i=~~b;break e}i=-2147483648}b= +O[d+96>>3]*65536;f:{if(R(b)<2147483648){j=~~b;break f}j=-2147483648}b=O[d+88>>3]*65536;g:{if(R(b)<2147483648){k=~~b;break g}k=-2147483648}b=O[d+80>>3]*65536;h:{if(R(b)<2147483648){l=~~b;break h}l=-2147483648}b=O[d+72>>3]*65536;i:{if(R(b)<2147483648){m=~~b;break i}m=-2147483648}b=O[d+64>>3]*65536;j:{if(R(b)<2147483648){n=~~b;break j}n=-2147483648}b=O[d+56>>3]*65536;k:{if(R(b)<2147483648){o=~~b;break k}o=-2147483648}b=O[d+48>>3]*65536;l:{if(R(b)<2147483648){p=~~b;break l}p=-2147483648}b=O[d+40>>3]* +65536;m:{if(R(b)<2147483648){q=~~b;break m}q=-2147483648}b=O[d+32>>3]*65536;n:{if(R(b)<2147483648){r=~~b;break n}r=-2147483648}b=O[d+24>>3]*65536;o:{if(R(b)<2147483648){s=~~b;break o}s=-2147483648}b=O[d+16>>3]*65536;p:{if(R(b)<2147483648){t=~~b;break p}t=-2147483648}b=O[d+8>>3]*65536;q:{if(R(b)<2147483648){e=~~b;break q}e=-2147483648}g=e;b=O[d>>3]*65536;if(R(b)<2147483648){e=~~b;break a}e=-2147483648}J[c+64>>2]=f;J[c+60>>2]=a;J[c+56>>2]=h;J[c+52>>2]=i;J[c+48>>2]=j;J[c+44>>2]=k;J[c+40>>2]=l;J[c+36>> +2]=m;J[c+32>>2]=n;J[c+28>>2]=o;J[c+24>>2]=p;J[c+20>>2]=q;J[c+16>>2]=r;J[c+12>>2]=s;J[c+8>>2]=t;J[c+4>>2]=g;J[c>>2]=e;b=O[d+136>>3]*65536;r:{if(R(b)<2147483648){a=~~b;break r}a=-2147483648}J[c+68>>2]=a;b=O[d+144>>3]*65536;s:{if(R(b)<2147483648){a=~~b;break s}a=-2147483648}J[c+72>>2]=a;b=O[d+152>>3]*65536;t:{if(R(b)<2147483648){a=~~b;break t}a=-2147483648}J[c+76>>2]=a;b=O[d+160>>3]*65536;u:{if(R(b)<2147483648){a=~~b;break u}a=-2147483648}J[c+80>>2]=a;b=O[d+168>>3]*65536;v:{if(R(b)<2147483648){a=~~b; +break v}a=-2147483648}J[c+84>>2]=a;b=O[d+176>>3]*65536;w:{if(R(b)<2147483648){a=~~b;break w}a=-2147483648}J[c+88>>2]=a;b=O[d+184>>3]*65536;x:{if(R(b)<2147483648){a=~~b;break x}a=-2147483648}J[c+92>>2]=a;b=O[d+192>>3]*65536;y:{if(R(b)<2147483648){a=~~b;break y}a=-2147483648}J[c+96>>2]=a;b=O[d+200>>3]*65536;z:{if(R(b)<2147483648){a=~~b;break z}a=-2147483648}J[c+100>>2]=a;b=O[d+208>>3]*65536;A:{if(R(b)<2147483648){a=~~b;break A}a=-2147483648}J[c+104>>2]=a;b=O[d+216>>3]*65536;B:{if(R(b)<2147483648){a= +~~b;break B}a=-2147483648}J[c+108>>2]=a;b=O[d+224>>3]*65536;C:{if(R(b)<2147483648){a=~~b;break C}a=-2147483648}J[c+112>>2]=a;b=O[d+232>>3]*65536;D:{if(R(b)<2147483648){a=~~b;break D}a=-2147483648}J[c+116>>2]=a;b=O[d+240>>3]*65536;E:{if(R(b)<2147483648){a=~~b;break E}a=-2147483648}J[c+120>>2]=a;b=O[d+248>>3]*65536;F:{if(R(b)<2147483648){a=~~b;break F}a=-2147483648}J[c+124>>2]=a;fc=d+272|0}function RB(a,b,c){a=a|0;b=+b;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;e= +fc-272|0;fc=e;O[e+264>>3]=b;d=Ac(e,0,256);a:{if(J[a+360>>2]<=0){a=0;e=0;break a}while(1){g=J[((f<<2)+a|0)+232>>2];kc[J[J[g>>2]+16>>2]](g,d+264|0,d+(f<<3)|0);f=f+1|0;if((f|0)>2])continue;break}b=O[d+128>>3]*65536;b:{if(R(b)<2147483648){a=~~b;break b}a=-2147483648}f=a;b=O[d+120>>3]*65536;c:{if(R(b)<2147483648){a=~~b;break c}a=-2147483648}b=O[d+112>>3]*65536;d:{if(R(b)<2147483648){h=~~b;break d}h=-2147483648}b=O[d+104>>3]*65536;e:{if(R(b)<2147483648){i=~~b;break e}i=-2147483648}b=O[d+96>>3]* +65536;f:{if(R(b)<2147483648){j=~~b;break f}j=-2147483648}b=O[d+88>>3]*65536;g:{if(R(b)<2147483648){k=~~b;break g}k=-2147483648}b=O[d+80>>3]*65536;h:{if(R(b)<2147483648){l=~~b;break h}l=-2147483648}b=O[d+72>>3]*65536;i:{if(R(b)<2147483648){m=~~b;break i}m=-2147483648}b=O[d+64>>3]*65536;j:{if(R(b)<2147483648){n=~~b;break j}n=-2147483648}b=O[d+56>>3]*65536;k:{if(R(b)<2147483648){o=~~b;break k}o=-2147483648}b=O[d+48>>3]*65536;l:{if(R(b)<2147483648){p=~~b;break l}p=-2147483648}b=O[d+40>>3]*65536;m:{if(R(b)< +2147483648){q=~~b;break m}q=-2147483648}b=O[d+32>>3]*65536;n:{if(R(b)<2147483648){r=~~b;break n}r=-2147483648}b=O[d+24>>3]*65536;o:{if(R(b)<2147483648){s=~~b;break o}s=-2147483648}b=O[d+16>>3]*65536;p:{if(R(b)<2147483648){t=~~b;break p}t=-2147483648}b=O[d+8>>3]*65536;q:{if(R(b)<2147483648){e=~~b;break q}e=-2147483648}g=e;b=O[d>>3]*65536;if(R(b)<2147483648){e=~~b;break a}e=-2147483648}J[c+64>>2]=f;J[c+60>>2]=a;J[c+56>>2]=h;J[c+52>>2]=i;J[c+48>>2]=j;J[c+44>>2]=k;J[c+40>>2]=l;J[c+36>>2]=m;J[c+32>>2]= +n;J[c+28>>2]=o;J[c+24>>2]=p;J[c+20>>2]=q;J[c+16>>2]=r;J[c+12>>2]=s;J[c+8>>2]=t;J[c+4>>2]=g;J[c>>2]=e;b=O[d+136>>3]*65536;r:{if(R(b)<2147483648){a=~~b;break r}a=-2147483648}J[c+68>>2]=a;b=O[d+144>>3]*65536;s:{if(R(b)<2147483648){a=~~b;break s}a=-2147483648}J[c+72>>2]=a;b=O[d+152>>3]*65536;t:{if(R(b)<2147483648){a=~~b;break t}a=-2147483648}J[c+76>>2]=a;b=O[d+160>>3]*65536;u:{if(R(b)<2147483648){a=~~b;break u}a=-2147483648}J[c+80>>2]=a;b=O[d+168>>3]*65536;v:{if(R(b)<2147483648){a=~~b;break v}a=-2147483648}J[c+ +84>>2]=a;b=O[d+176>>3]*65536;w:{if(R(b)<2147483648){a=~~b;break w}a=-2147483648}J[c+88>>2]=a;b=O[d+184>>3]*65536;x:{if(R(b)<2147483648){a=~~b;break x}a=-2147483648}J[c+92>>2]=a;b=O[d+192>>3]*65536;y:{if(R(b)<2147483648){a=~~b;break y}a=-2147483648}J[c+96>>2]=a;b=O[d+200>>3]*65536;z:{if(R(b)<2147483648){a=~~b;break z}a=-2147483648}J[c+100>>2]=a;b=O[d+208>>3]*65536;A:{if(R(b)<2147483648){a=~~b;break A}a=-2147483648}J[c+104>>2]=a;b=O[d+216>>3]*65536;B:{if(R(b)<2147483648){a=~~b;break B}a=-2147483648}J[c+ +108>>2]=a;b=O[d+224>>3]*65536;C:{if(R(b)<2147483648){a=~~b;break C}a=-2147483648}J[c+112>>2]=a;b=O[d+232>>3]*65536;D:{if(R(b)<2147483648){a=~~b;break D}a=-2147483648}J[c+116>>2]=a;b=O[d+240>>3]*65536;E:{if(R(b)<2147483648){a=~~b;break E}a=-2147483648}J[c+120>>2]=a;b=O[d+248>>3]*65536;F:{if(R(b)<2147483648){a=~~b;break F}a=-2147483648}J[c+124>>2]=a;fc=d+272|0}function Jub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z= +0;f=fc-16|0;fc=f;a:{b:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;g=1029;Jc(a,1029,0,0);break a}if(c>>>0>5){g=d;while(1){j=g;g=g+1|0;if(K[j|0])continue;break}s=j+3|0;q=s;while(1){h=q;q=h+1|0;if(K[h|0])continue;break}l=q;while(1){i=l;l=i+1|0;if(K[i|0])continue;break}m=j-d|0;if(!(!((m|0)>(c|0)|(h-d|0)>(c|0))&(i-d|0)<=(c|0))){g=1043;Jc(a,1043,0,0);break a}if((d|0)==(j|0)){g=1044;Jc(a,1044,0,0);break a}t=K[g|0];if(t>>>0>=2){g=1038;Jc(a,1038,0,0);break a}if(K[j+2|0]){g= +1038;Jc(a,1038,0,0);break a}J[f+12>>2]=0;J[f+4>>2]=0;k=i-h|0;n=h-j|0;r=c-(k+(n+m|0)|0)|0;o=r-1|0;u=k-1|0;v=n-3|0;h=0;c=0;i=0;c:{if(!J[a+192>>2])break c;d:{if(t){g=hv(a,l,o,f+4|0,f+8|0,f+12|0);if(!g)break d;b=J[f+4>>2];if(!b)break a;kc[J[a+156>>2]](b,J[f+8>>2]);break a}J[f+8>>2]=r;J[f+12>>2]=o;c=kc[J[a+152>>2]](r)|0;J[f+4>>2]=c;if(!c){g=1;Jc(a,1,0,0);break a}xc(c,l,o)}g=m+1|0;i=kc[J[a+152>>2]](g)|0;w=n-2|0;c=kc[J[a+152>>2]](w)|0;h=kc[J[a+152>>2]](k)|0;if(h?!i|!c:1){if(h)kc[J[a+156>>2]](h,k);if(c)kc[J[a+ +156>>2]](c,w);if(i)kc[J[a+156>>2]](i,g);b=J[f+4>>2];if(b)kc[J[a+156>>2]](b,J[f+8>>2]);g=1;Jc(a,1,0,0);break a}x=xc(i,d,m);y=xc(c,s,v);z=xc(h,q,u);p=J[f+4>>2];if(kc[J[a+192>>2]](a,2,x,p,y,z)|0)break c;kc[J[a+156>>2]](z,k);kc[J[a+156>>2]](y,w);kc[J[a+156>>2]](x,g);if(p)kc[J[a+156>>2]](p,J[f+8>>2]);g=904;Jc(a,904,0,0);break a}e:{if(!K[a+112|0])break e;g=kc[J[b+4>>2]](a,b,e)|0;if(g){if(h)kc[J[a+156>>2]](h,k);if(c)kc[J[a+156>>2]](c,n-2|0);if(i)kc[J[a+156>>2]](i,m+1|0);if(!p)break a;kc[J[a+156>>2]](p,J[f+ +8>>2]);break a}b=J[e>>2];J[b+52>>2]=u;J[b+44>>2]=v;J[b+32>>2]=m;H[b+40|0]=K[j+1|0];H[b+41|0]=K[j+2|0];f:{if(!o|p)break f;if(t){g=hv(a,l,o,f+4|0,f+8|0,f+12|0);if(!g)break f;if(h)kc[J[a+156>>2]](h,k);if(c)kc[J[a+156>>2]](c,n-2|0);if(i)kc[J[a+156>>2]](i,m+1|0);b=J[f+4>>2];if(!b)break a;kc[J[a+156>>2]](b,J[f+8>>2]);break a}J[f+8>>2]=r;J[f+12>>2]=o;b=kc[J[a+152>>2]](r)|0;J[f+4>>2]=b;if(!b){g=1;Jc(a,1,0,0);break a}xc(b,l,o)}g=m+1|0;b=kc[J[a+152>>2]](g)|0;J[J[e>>2]+36>>2]=b;l=n-2|0;b=kc[J[a+152>>2]](l)| +0;J[J[e>>2]+48>>2]=b;b=kc[J[a+152>>2]](k)|0;J[J[e>>2]+56>>2]=b;b=J[e>>2];j=J[b+36>>2];if(J[b+56>>2]?!j|!J[b+48>>2]:1){if(h)kc[J[a+156>>2]](h,k);if(c)kc[J[a+156>>2]](c,l);if(i)kc[J[a+156>>2]](i,g);b=J[f+4>>2];if(b)kc[J[a+156>>2]](b,J[f+8>>2]);g=1;Jc(a,1,0,0);break a}xc(j,d,m);xc(J[J[e>>2]+48>>2],s,v);xc(J[J[e>>2]+56>>2],q,u);b=J[f+12>>2];J[J[e>>2]+60>>2]=b;if(!b)break e;d=kc[J[a+152>>2]](b+1|0)|0;J[J[e>>2]+64>>2]=d;d=J[J[e>>2]+64>>2];if(!d){if(h)kc[J[a+156>>2]](h,k);if(c)kc[J[a+156>>2]](c,l);if(i)kc[J[a+ +156>>2]](i,g);b=J[f+4>>2];if(b)kc[J[a+156>>2]](b,J[f+8>>2]);g=1;Jc(a,1,0,0);break a}xc(d,J[f+4>>2],b)}if(h)kc[J[a+156>>2]](h,k);if(c)kc[J[a+156>>2]](c,n-2|0);if(i)kc[J[a+156>>2]](i,m+1|0);g=0;b=J[f+4>>2];if(!b)break a;kc[J[a+156>>2]](b,J[f+8>>2]);break a}g=1028;Jc(a,1028,0,0)}fc=f+16|0;return g|0}function ox(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=fc-32|0;fc=h;a:{if(!a)break a;a=K[a|0]!=47|K[a+1|0]!=47?a:K[a+2|0]==47?a:a+1|0;b:{b=kc[J[663195]](44)|0;if(!b){J[h+16>>2]=34150;Hc(0,0,0,0,0,30, +2,3,34150,0,0,0,32879,h+16|0);break b}J[b>>2]=0;J[b+4>>2]=0;J[b+40>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;c=uu(b,a);uk(b);if(c)break b;b=a;while(1){c=b;b=b+1|0;if(K[c|0])continue;break}b=0;c=c-a|0;if((c|0)<0)break a;d=kc[J[663198]](c+1|0)|0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break a}b=xc(d,a,c);H[c+b|0]=0;break a}c=K[a|0];c:{if(!c)break c;b=a;while(1){d:{if((c&255)==58){if((b|0)==28641)break d;if(!ud(b,28641,3))break d}c= +K[b+1|0];b=b+1|0;if(c)continue;break c}break}c=b-a|0;if(c-21>>>0<4294967276)break c;b=0;while(1){if(((K[a+b|0]&223)-65&255)>>>0>=26)break c;b=b+1|0;if((c|0)!=(b|0))continue;break}b=0;e=fc+-64|0;fc=e;i=a;e:{if(!a)break e;if(K[a|0]){b=a;while(1){c=d;d=c+1|0;f=K[b+1|0];b=b+1|0;if(f)continue;break}d=0;f=c+21|0;c=kc[J[663198]](f)|0;if(c){b=K[i|0];if(b)while(1){if((f-d|0)<=3){f:{g:{if((f|0)>=1048577){J[e+32>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,e+32|0);break g}f=f<<1;b=kc[J[663200]](c,f|1)|0; +if(b)break f;J[e+48>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,e+48|0)}J[e+16>>2]=33976;b=0;Hc(0,0,0,0,0,30,2,3,33976,0,0,0,32879,e+16|0);kc[J[663199]](c);break e}c=b;b=K[i|0]}h:{i:{if((b-48&255)>>>0<10|(b+-64&255)>>>0<27|(b-97&255)>>>0<26)break i;j:{k:{j=b&255;switch(j-33|0){case 0:case 6:case 7:case 8:case 9:case 12:case 13:case 62:break i;case 1:case 2:case 3:case 4:case 5:case 10:case 11:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:break j; +default:break k}}if((j|0)==126)break i}g=22229;k=K[22229];if(k)while(1){if((j|0)==(k|0))break i;k=K[g+1|0];g=g+1|0;if(k)continue;break}g=c+d|0;H[g|0]=37;b=b&15;H[g+2|0]=b>>>0<10?b|48:b+55|0;b=j>>>4|0;H[g+1|0]=j>>>0<160?b|48:b+55|0;d=d+3|0;break h}H[c+d|0]=b;d=d+1|0}b=K[i+1|0];i=i+1|0;if(b)continue;break}H[c+d|0]=0;b=c;break e}J[e>>2]=33976;b=0;Hc(0,0,0,0,0,30,2,3,33976,0,0,0,32879,e);break e}c=kc[J[663198]](1)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break e}H[c|0]=0;b=c}fc=e- -64|0;if(!b)break c; +c=kc[J[663195]](44)|0;if(!c){J[h>>2]=34150;Hc(0,0,0,0,0,30,2,3,34150,0,0,0,32879,h);break c}J[c>>2]=0;J[c+4>>2]=0;J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;d=uu(c,b);uk(c);if(!d)break a}c=a;while(1){d=c;c=c+1|0;if(K[d|0])continue;break}b=0;c=d-a|0;if((c|0)<0)break a;d=kc[J[663198]](c+1|0)|0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break a}b=xc(d,a,c);H[c+b|0]=0}fc=h+32|0;return b}function Qub(a,b,c,d,e){a=a|0;b=b|0;c=c|0; +d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(!(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0])))break c;if(K[a+300|0]|K[a+289|0])break c;if(!(K[a+287|0]|!K[a+294|0])){Jc(a,1031,0,0);return 1031}if(c>>>0>=257)break b;d:{e:{f:{g:{g=K[a+286|0];if(g|K[a+287|0]|K[a+288|0]){h:{i:{f=K[a+325|0];switch(f-4|0){case 0:case 2:break i;default:break h}}Jc(a,1030,0,0);return 1030}j:{if(c){if(!(f|(c|0)==2)|!((c|0)==6|(f|0)!=2))break b;if((f|0)!=3)break j;f=J[a+512>>2];if(!f)f=J[a+528>>2];if(M[J[f+88>>2]+64>>2]>=c>>> +0)break j;break b}if(K[a+307|0])break j;Jc(a,1034,0,0);return 1034}if(g)break g}if(K[a+287|0])break g;k:{if(K[a+288|0]){H[a+294|0]=1;break k}H[a+307|0]=1}if(K[a+288|0])break f;J[a+1932>>2]=c;h=xc(a+1936|0,d,c);f=0;l:{if(!K[a+114|0])break l;f=kc[J[a+152>>2]](288)|0;if(!f){Jc(a,1,0,0);f=1;break l}J[f+4>>2]=1028;J[f>>2]=1029;g=J[a+700>>2];m:{if(g){J[g+8>>2]=f;break m}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>> +2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+28>>2]=c;xc(f+32|0,h,256);f=0}if(!f)break e;break d}H[a+294|0]=1}if(K[a+288|0]){f=J[J[a+528>>2]+88>>2];n:{o:switch(K[a+325|0]){case 0:g=K[d|0]|K[d+1|0]<<8;I[f+838>>1]=0;I[f+840>>1]=0;I[f+842>>1]=0;I[f+844>>1]=0;I[f+846>>1]=0;I[f+836>>1]=g<<8|g>>>8;break n;case 2:I[f+836>>1]=0;g=K[d|0]|K[d+1|0]<<8;I[f+838>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[f+840>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;J[f+844>>2]=0;I[f+842>>1]=g<<8|g>>>8;break n;case 3:break o;default:break n}J[f+ +844>>2]=c;J[f+836>>2]=0;J[f+840>>2]=0;xc(f+848|0,d,c)}H[f+56|0]=1;break e}f=J[a+512>>2];if(!f)f=J[a+528>>2];h=J[f+88>>2];H[h+56|0]=1;p:{q:{if(c){i=K[a+325|0];g=d;f=c;break q}i=K[a+325|0];f=J[a+1932>>2];if(!(i|(f|0)==2)|!((f|0)==6|(i|0)!=2))break a;g=a+1936|0;if((i|0)!=3)break q;if(M[h+64>>2]>=f>>>0?f:0)break p;break a}r:switch(i|0){case 0:f=K[g|0]|K[g+1|0]<<8;I[h+838>>1]=0;I[h+840>>1]=0;I[h+842>>1]=0;I[h+844>>1]=0;I[h+846>>1]=0;I[h+836>>1]=f<<8|f>>>8;break e;case 3:break p;case 2:break r;default:break e}I[h+ +836>>1]=0;f=K[g|0]|K[g+1|0]<<8;I[h+838>>1]=f<<8|f>>>8;f=K[g+2|0]|K[g+3|0]<<8;I[h+840>>1]=f<<8|f>>>8;f=K[g+4|0]|K[g+5|0]<<8;J[h+844>>2]=0;I[h+842>>1]=f<<8|f>>>8;break e}J[h+844>>2]=f;J[h+836>>2]=0;J[h+840>>2]=0;xc(h+848|0,g,f)}f=0;if(!K[a+112|0])break d;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break d;if(K[a+286|0]|K[a+287|0]|K[a+288|0]){f=0;b=J[e>>2];H[b+33|0]=0;a=K[a+325|0];H[b+34|0]=a;if(!c){H[b+32|0]=1;return 0}H[b+32|0]=0;s:switch(a|0){case 0:a=K[d|0]|K[d+1|0]<<8;I[b+296>>1]=a<<8|a>>>8;return 0;case 2:a= +K[d|0]|K[d+1|0]<<8;I[b+298>>1]=a<<8|a>>>8;a=K[d+2|0]|K[d+3|0]<<8;I[b+300>>1]=a<<8|a>>>8;a=K[d+4|0]|K[d+5|0]<<8;I[b+302>>1]=a<<8|a>>>8;return 0;case 3:break s;default:break d}J[b+36>>2]=c;xc(b+40|0,d,c);return 0}a=J[e>>2];J[a+304>>2]=c;H[a+33|0]=1;H[a+34|0]=0;H[a+32|0]=!c;xc(a+308|0,d,c);f=0}return f|0}Jc(a,1029,0,0);return 1029}Jc(a,1028,0,0);return 1028}Jc(a,1035,0,0);return 1035}function cAb(a){a=a|0;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;b=J[a+572>>2];d=J[a+664>>2];a:{if((b| +0)<(d|0)|(b|0)>=J[a+668>>2])break a;b=kc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;g=kc[J[a+228>>2]](a,(J[a+680>>2]+J[a+572>>2]|0)-J[a+664>>2]|0)|0;e=b;b=J[a+580>>2];c=J[a+672>>2];d=(e+P(b,3)|0)+P(c,3)|0;e=J[a+656>>2];h=e+b|0;e=(e|0)/J[a+584>>2]|0;g=c+(b+g|0)|0;c=J[a+660>>2];f=K[a+649|0];b=J[a+644>>2];b:{if(!K[a+648|0]){b=b+(e<<2)|0;if(!f)break b;if((c|0)<=(h|0))break a;while(1){H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0];H[g|0]=K[b+3|0];b=b+4|0;c=J[a+584>>2];g=c+g|0;d=P(c,3)+d|0;h=c+h|0;if((h| +0)>2])continue;break}break a}b=b+(e<<3)|0;if(f){if((c|0)<=(h|0))break a;while(1){H[d|0]=K[b|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b+4|0];H[g|0]=K[b+6|0];b=b+8|0;c=J[a+584>>2];g=c+g|0;d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;d:{if((c|0)!=65535){e=K[g|0];e=e<<8|e;if(e)break d}H[d|0]=K[b|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b+4|0];H[g|0]=K[b+6|0];break c}if((e|0)==65535){e=K[b|0]|K[b+1| +0]<<8;f=K[b+2|0]|K[b+3|0]<<8;i=K[b+4|0]|K[b+5|0]<<8;j=P(c,(i<<8|i>>>8)&65535);i=K[d+2|0];k=i<<8|i;i=c^65535;j=(j+P(k,i)|0)+32768|0;H[d+2|0]=(j>>>16|0)+j>>>24;j=P((f<<8|f>>>8)&65535,c);f=K[d+1|0];f=(j+P(i,f<<8|f)|0)+32768|0;H[d+1|0]=(f>>>16|0)+f>>>24;e=P((e<<8|e>>>8)&65535,c);c=K[d|0];c=(e+P(i,c<<8|c)|0)+32768|0;H[d|0]=(c>>>16|0)+c>>>24;break c}f=K[d|0];i=K[d+1|0];j=K[b|0]|K[b+1|0]<<8;k=K[b+2|0]|K[b+3|0]<<8;l=c^65535;n=P(l,e^65535)^-1;m=n>>>16|0;e=(P(e,l)>>>0)/(m>>>0)|0;o=K[d+2|0];c=(c<<16>>>0)/(m>>> +0)|0;l=K[b+4|0]|K[b+5|0]<<8;H[d+2|0]=(P(e,o<<8|o)+P(c,(l<<8|l>>>8)&65535)|0)+32767>>>24;H[d+1|0]=(P(e,i|i<<8)+P(c,(k<<8|k>>>8)&65535)|0)+32767>>>24;H[d|0]=(P(e,f|f<<8)+P(c,(j<<8|j>>>8)&65535)|0)+32767>>>24;H[g|0]=n>>>24}b=b+8|0;c=J[a+584>>2];g=c+g|0;d=P(c,3)+d|0;h=c+h|0;if((h|0)>2])continue;break}break a}if((c|0)<=(h|0))break a;while(1){c=K[b+3|0];e:{if(!c)break e;f:{if((c|0)!=255){e=K[g|0];if(e)break f}H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0];H[g|0]=K[b+3|0];break e}if((e|0)==255){e= +c^255;f=(P(c,K[b|0])+P(e,K[d|0])|0)+128|0;H[d|0]=(f>>>8&255)+f>>>8;f=(P(c,K[b+1|0])+P(e,K[d+1|0])|0)+128|0;H[d+1|0]=(f>>>8&255)+f>>>8;c=(P(c,K[b+2|0])+P(e,K[d+2|0])|0)+128|0;H[d+2|0]=(c>>>8&255)+c>>>8;break e}f=K[b|0];i=K[b+1|0];j=c^255;k=P(j,e^255)>>>8^-1;m=k&255;c=(c<<8>>>0)/(m>>>0)|0;e=(P(e,j)>>>0)/(m>>>0)|0;H[d+2|0]=(P(c,K[b+2|0])+P(e,K[d+2|0])|0)+127>>>8;H[d+1|0]=(P(c,i)+P(e,K[d+1|0])|0)+127>>>8;H[d|0]=(P(c,f)+P(e,K[d|0])|0)+127>>>8;H[g|0]=k}b=b+4|0;c=J[a+584>>2];g=c+g|0;d=P(c,3)+d|0;h=c+h|0; +if((h|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;g=J[a+664>>2];b=J[a+556>>2];h=J[a+672>>2];g:{if((h|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=h}e=b;b=J[a+676>>2];if((e|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-g|0;h:{if((d|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function yub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if(!(1<>>0<=28:0)){Jc(a,1028,0,0);return 1028}f=K[d|0]|K[d+1|0]<<8;I[a+1016>>1]=f<<8|f>>>8;b:{c:{d:{e:{f:{g:{if(c>>>0<=2){I[a+1018>>1]=0;break g}i=1;H[a+1018|0]=1;H[a+1019|0]=K[d+2|0];if((c|0)!=3)break f}i=0;I[a+1020>>1]=0;break e}H[a+1020|0]=1;H[a+1021|0]=K[d+3|0];if(c>>>0>4)break d}J[a+1024>>2]=0;J[a+1028>>2]=0;H[a+1022|0]=0;break c}H[a+1022|0]=1;f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+1024>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+ +11|0]<<24);J[a+1028>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);j=1;if(c>>>0<13)break c;H[a+1032|0]=1;f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[a+1036>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[a+1040>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);J[a+1044>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);J[a+1048>>2]=f<<24|(f& +65280)<<8|(f>>>8&65280|f>>>24);f=1;break b}J[a+1036>>2]=0;J[a+1040>>2]=0;H[a+1032|0]=0;f=a+1044|0;J[f>>2]=0;J[f+4>>2]=0;f=0}h=0;h:{if(!K[a+114|0])break h;g=kc[J[a+152>>2]](64)|0;if(!g){Jc(a,1,0,0);h=1;break h}J[g+4>>2]=1044;J[g>>2]=1045;h=J[a+700>>2];i:{if(h){J[h+8>>2]=g;break i}J[a+696>>2]=g}J[g+8>>2]=0;J[g+12>>2]=h;J[a+700>>2]=g;J[g+16>>2]=J[a+436>>2];J[g+20>>2]=J[a+440>>2];J[g+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=g;I[g+28>>1]=L[a+1016>>1];H[g+30|0]=K[a+1018| +0];H[g+31|0]=K[a+1019|0];H[g+32|0]=K[a+1020|0];H[g+33|0]=K[a+1021|0];H[g+34|0]=K[a+1022|0];J[g+36>>2]=J[a+1024>>2];J[g+40>>2]=J[a+1028>>2];H[g+44|0]=K[a+1032|0];J[g+48>>2]=J[a+1036>>2];J[g+52>>2]=J[a+1040>>2];J[g+56>>2]=J[a+1044>>2];J[g+60>>2]=J[a+1048>>2];h=0}j:{if(h)break j;h=iaa(a);if(h)break j;h=0;if(!K[a+112|0])break j;h=kc[J[b+4>>2]](a,b,e)|0;if(h)break j;b=J[e>>2];a=K[d|0]|K[d+1|0]<<8;I[b+32>>1]=a<<8|a>>>8;k:{if(c>>>0>=3){H[b+34|0]=1;H[b+35|0]=K[d+2|0];break k}H[b+34|0]=0}l:{if(i){H[b+36|0]= +1;H[b+37|0]=K[d+3|0];break l}H[b+36|0]=0}m:{if(j){H[b+38|0]=1;a=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[b+40>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[b+44>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break m}H[b+38|0]=0}if(f){H[b+48|0]=1;a=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[b+52>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[b+56>>2]=a<<24|(a&65280)<<8|(a>>> +8&65280|a>>>24);a=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);J[b+60>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+24|0]|K[d+25|0]<<8|(K[d+26|0]<<16|K[d+27|0]<<24);J[b+64>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}h=0;H[b+48|0]=0}return h|0}Jc(a,1029,0,0);return 1029}function ms(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;l=J[a+88>>2];n=l+12|0;a:{b:{c:{d:{if(H[a+8|0]&1){e:{f:{g:{h:{i:{j:{k:{p=J[b>>2];switch(p|0){case 3:break i;case 2:break j;case 0:break k; +case 1:break g;case 4:break h;default:break e}}e=L[a+68>>1];f=e;break e}e=J[a+60>>2]-J[a+52>>2]|0;d=J[a- -64>>2]-J[a+56>>2]|0;break f}e=I[a+76>>1];d=I[a+70>>1]-I[a+72>>1]|0;break f}c=J[b+4>>2];J[l+16>>2]=c;b=J[b+8>>2];J[l+20>>2]=b;if(!c)break c;if(b)break b;break d}e=I[a+70>>1]-I[a+72>>1]|0;d=e}c=d;c=c>>31;f=(d^c)-c|0;c=e>>31;e=(c^e)-c|0}d=J[b+4>>2];i=d;c=J[b+12>>2];if(c)i=(P(c,d)+36|0)/72|0;g=J[b+8>>2];m=g;b=J[b+16>>2];if(b)m=(P(b,g)+36|0)/72|0;l:{if(d){c=2147483647;m:{if(!e)break m;b=i>>31;h=(b^ +i)-b|0;if(h>>>0<=(e>>>17^65535)>>>0){c=((h<<16)+(e>>>1|0)>>>0)/(e>>>0)|0;break m}b=h<<16;d=b+(e>>>1|0)|0;b=(h>>>16|0)+(b>>>0>d>>>0)|0;if(b>>>0>=e>>>0)break m;o=S(b);j=32-o|0;b=d>>>j|b<>>0)/(e>>>0)|0;k=b-P(c,e)|0;b=d<>>31;h=d>>>0>=e>>>0;k=d-(h?e:0)|0;c=h|c<<1;j=31-o|0;b=b<<1}if((o|0)==31)break m;while(1){d=k<<1|b>>>31;o=d>>>0>=e>>>0;d=b>>>30&1|d-(o?e:0)<<1;h=d>>>0>=e>>>0;k=d-(h?e:0)|0;c=c<<2|o<<1|h;b=b<<2;j=j-2|0;if(j)continue;break}}c=(i|0)<0?0-c|0:c;J[l+16>>2]=c;if(g){b= +2147483647;n:{if(!f)break n;d=m>>31;h=(d^m)-d|0;if(h>>>0<=(f>>>17^65535)>>>0){b=((h<<16)+(f>>>1|0)>>>0)/(f>>>0)|0;break n}d=h<<16;g=d+(f>>>1|0)|0;d=(h>>>16|0)+(d>>>0>g>>>0)|0;if(d>>>0>=f>>>0)break n;h=S(d);j=32-h|0;d=g>>>j|d<>>0)/(f>>>0)|0;k=d-P(b,f)|0;e=g<>>31;g=d>>>0>=f>>>0;k=d-(g?f:0)|0;j=31-h|0;e=e<<1;b=g|b<<1}if((h|0)==31)break n;while(1){d=k<<1|e>>>31;h=d>>>0>=f>>>0;d=e>>>30&1|d-(h?f:0)<<1;g=d>>>0>=f>>>0;k=d-(g?f:0)|0;b=g|(b<<2|h<<1);e=e<<2;j=j-2|0;if(j)continue; +break}}b=(m|0)<0?0-b|0:b;J[l+20>>2]=b;if((p|0)!=3)break l;if((b|0)<=(c|0))break c;break d}J[l+20>>2]=c;m=Od(i,f,e);b=c;break l}i=2147483647;o:{if(!f)break o;b=m>>31;d=(b^m)-b|0;if(d>>>0<=(f>>>17^65535)>>>0){i=((d<<16)+(f>>>1|0)>>>0)/(f>>>0)|0;break o}b=d<<16;c=b+(f>>>1|0)|0;b=(d>>>16|0)+(b>>>0>c>>>0)|0;if(b>>>0>=f>>>0)break o;g=S(b);k=32-g|0;b=c>>>k|b<>>0)/(f>>>0)|0;j=b-P(f,i)|0;b=c<>>31;d=c>>>0>=f>>>0;j=c-(d?f:0)|0;i=d|i<<1;k=31-g|0;b=b<<1}if((g|0)==31)break o;while(1){c= +j<<1|b>>>31;g=c>>>0>=f>>>0;c=b>>>30&1|c-(g?f:0)<<1;d=c>>>0>=f>>>0;j=c-(d?f:0)|0;i=d|(i<<2|g<<1);b=b<<2;k=k-2|0;if(k)continue;break}}b=(m|0)<0?0-i|0:i;J[l+16>>2]=b;J[l+20>>2]=b;i=Od(m,e,f);c=b}if(!p)break a;break b}J[n>>2]=0;J[n+4>>2]=0;J[n+24>>2]=0;J[n+16>>2]=0;J[n+20>>2]=0;J[n+8>>2]=0;J[n+12>>2]=0;J[l+16>>2]=65536;J[l+20>>2]=65536;return}J[l+20>>2]=c;b=c;break b}J[l+16>>2]=b;c=b}d=(c|0)<0;g=L[a+68>>1];e=c;c=c>>31;c=(e^c)-c|0;p:{if(g+(c>>>8|0)>>>0<=8190){c=P(c,g)+32768>>>16|0;break p}c=P(g,c>>>16| +0)+(P(g,c&65535)+32768>>>16|0)|0}i=d?0-c|0:c;c=b>>31;c=(c^b)-c|0;q:{if(g+(c>>>8|0)>>>0<=8190){c=P(c,g)+32768>>>16|0;break q}c=P(g,c>>>16|0)+(P(g,c&65535)+32768>>>16|0)|0}m=(b|0)<0?0-c|0:c}I[l+14>>1]=m+32>>>6;I[l+12>>1]=i+32>>>6;_7(a,n)}function GX(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;g=J[a>>2];e=K[a+8|0];a:{b:{if(!e){j=c?L[c+8>>1]:0;d=K[a+9|0];if(d>>>0<=7){c:{d:switch(d-1|0){case 0:j=0-(j&1)&255;if(!g)break c;e=b+g|0;d=0-g&7;h=g-1|0;f=(h>>>3|0)+b|0;if(h){k=g&-2;h=0;while(1){H[e- +1|0]=K[f|0]>>>d&1?-1:0;e=e-2|0;i=f;f=(d|0)==7;i=i-f|0;d=f?0:d+1|0;H[e|0]=K[i|0]>>>d&1?-1:0;f=(d|0)==7;d=f?0:d+1|0;f=i-f|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c;H[e-1|0]=K[f|0]>>>d&1?-1:0;break c;case 1:j=P(j&3,85);if(!g)break c;e=b+g|0;h=g-1|0;f=(h>>>2|0)+b|0;d=((g<<1)+6^-1)&6;if(h){k=g&-2;h=0;while(1){H[e-1|0]=P(K[f|0]>>>d&3,85);e=e-2|0;i=f;f=(d|0)==6;i=i-f|0;d=f?0:d+2|0;H[e|0]=P(K[i|0]>>>d&3,85);f=(d|0)==6;d=f?0:d+2|0;f=i-f|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c; +H[e-1|0]=P(K[f|0]>>>d&3,85);break c;case 3:break d;default:break c}j=P(j&15,17);if(!g)break c;e=b+g|0;d=g<<2&4;h=g-1|0;f=(h>>>1|0)+b|0;if(h){k=g&-2;h=0;while(1){i=K[f|0]>>>d|0;H[e-1|0]=i&15|i<<4;e=e-2|0;i=f;f=(d|0)!=0;i=i-f|0;l=!d;d=K[i|0]>>>(l<<2)|0;H[e|0]=d&15|d<<4;d=f<<2;f=i-l|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!(g&1))break c;i=e-1|0;e=K[f|0]>>>d|0;H[i|0]=e&15|e<<4}H[a+11|0]=8;H[a+9|0]=8;J[a+4>>2]=g;d=8}if(!c)break a;e:{f:switch(d-8|0){case 0:if(!g)break e;e=b+g|0;d=(g<<1)+b|0;if((g| +0)!=1){b=g&-2;f=0;while(1){c=e-1|0;H[d-1|0]=K[c|0]!=(j|0)?-1:0;H[d-2|0]=K[c|0];e=e-2|0;H[d-3|0]=K[e|0]!=(j|0)?-1:0;d=d-4|0;H[d|0]=K[e|0];f=f+2|0;if((b|0)!=(f|0))continue;break}}if(!(g&1))break e;b=e-1|0;H[d-1|0]=K[b|0]!=(j|0)?-1:0;H[d-2|0]=K[b|0];break e;case 8:break f;default:break e}if(!g)break e;f=(j&65280)>>>8|0;c=J[a+4>>2];e=c+b|0;d=(c<<1)+b|0;b=0;h=j&255;while(1){j=e-1|0;i=d-1|0;e=e-2|0;g:{if((f|0)==K[e|0]){c=0;if((h|0)==K[j|0])break g}c=255}H[i|0]=c;H[d-2|0]=c;H[d-3|0]=K[j|0];d=d-4|0;H[d|0]= +K[e|0];b=b+1|0;if((g|0)!=(b|0))continue;break}}H[a+10|0]=2;H[a+8|0]=4;b=K[a+9|0]<<1;H[a+11|0]=b;b=b&254;if(b>>>0>=8){b=P(b>>>3|0,g);break b}b=P(b,g)+7>>>3|0;break b}if(!c|(e|0)!=2)break a;h:{i:switch(K[a+9|0]-8|0){case 0:if(!g)break h;e=J[a+4>>2]+b|0;d=(g<<2)+b|0;f=L[c+2>>1]&255;k=L[c+4>>1]&255;i=L[c+6>>1]&255;while(1){c=e-1|0;l=d-1|0;b=e-3|0;j:{if(!((f|0)!=K[b|0]|(k|0)!=K[e-2|0])){j=0;if((i|0)==K[c|0])break j}j=255}H[l|0]=j;H[d-2|0]=K[c|0];H[d-3|0]=K[e-2|0];d=d-4|0;H[d|0]=K[b|0];e=b;h=h+1|0;if((h| +0)!=(g|0))continue;break}break h;case 8:break i;default:break h}if(!g)break h;h=L[c+6>>1];k=h>>>8|0;i=L[c+4>>1];l=i>>>8|0;c=L[c+2>>1];m=c>>>8|0;e=J[a+4>>2]+b|0;d=(g<<3)+b|0;b=0;n=c&255;while(1){f=e-1|0;o=d-1|0;c=e-6|0;k:{l:{if(K[c|0]!=(m|0)|K[e-5|0]!=(n|0)|((l|0)!=K[e-4|0]|K[e-3|0]!=(i&255)))break l;if((k|0)!=K[e-2|0])break l;j=0;if(K[f|0]==(h&255))break k}j=255}H[o|0]=j;H[d-2|0]=j;H[d-3|0]=K[f|0];H[d-4|0]=K[e-2|0];H[d-5|0]=K[e-3|0];H[d-6|0]=K[e-4|0];H[d-7|0]=K[e-5|0];d=d-8|0;H[d|0]=K[c|0];e=c;b= +b+1|0;if((g|0)!=(b|0))continue;break}}H[a+10|0]=4;H[a+8|0]=6;b=K[a+9|0]<<2;H[a+11|0]=b;b=b&252;if(b>>>0>=8){b=P(b>>>3|0,g);break b}b=P(b,g)+7>>>3|0}J[a+4>>2]=b}}function WT(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;Tc(b,2446320,-1);Tc(b,2446344,-1);g=a+240|0;e=g;c=0;a:{if(J[e+4>>2]==J[e+8>>2])break a;f=(O[a+48>>3]-O[a+200>>3])/+(J[e+8>>2]-J[e+4>>2]>>2>>>0)*283.46456692913387;if(R(f)<2147483648){c=~~f;break a}c=-2147483648}Tc(b,2446420,-1);jh(b,c-15|0);Tc(b,2444896,-1);if(K[a+ +109|0])Tc(b,2446448,-1);if(K[a+88|0])Tc(b,K[a+89|0]?2446480:2446560,-1);b:{c:{d:{e:{f:{g:{h:{if(!K[a+96|0])break h;Tc(b,2446640,-1);if(!(H[2794176]&1)){XT();H[2794176]=1}i:{j:{c=J[698542];k:{if(!c)break k;h=J[a+100>>2];e=2794168;while(1){i=J[c+16>>2]<(h|0);e=i?e:c;c=J[(i?c+4|0:c)>>2];if(c)continue;break}if((e|0)==2794168)break k;if(J[e+16>>2]<=(h|0))break j}c=vc(32);J[d>>2]=c;J[d+4>>2]=6;J[d+8>>2]=-2147483640;e=J[611981];J[c+16>>2]=J[611980];J[c+20>>2]=e;e=J[611979];J[c+8>>2]=J[611978];J[c+12>>2]= +e;e=J[611977];J[c>>2]=J[611976];J[c+4>>2]=e;J[c+24>>2]=0;break i}if(H[e+31|0]>=0){J[d+8>>2]=J[e+28>>2];c=J[e+24>>2];J[d>>2]=J[e+20>>2];J[d+4>>2]=c;break i}Ve(d,J[e+20>>2],J[e+24>>2])}J[699344]=0;da(6657,b|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break g;if(H[d+11|0]>=0)break h;uc(J[d>>2])}if((J[a+84>>2]&-2)!=2)break d;f=O[J[a+56>>2]+400>>3]*1.5;if(!(R(f)<2147483648))break f;c=~~f;break e}b=Z()|0;if(H[d+11|0]>=0)break b;uc(J[d>>2]);ba(b|0);B()}c=-2147483648}c=P(c,100);break c}c=0;if(!K[a+237|0])break c; +f=O[J[a+56>>2]+400>>3];l:{if(R(f)<2147483648){c=~~f;break l}c=-2147483648}c=P(c,100)}Tc(b,2446656,-1);Oj(b,c);Tc(b,2444896,-1);c=J[a+56>>2];if(K[c+409|0]){Tc(b,2446680,-1);c=J[a+56>>2]}if(K[c+408|0])Tc(b,2446708,-1);c=2446736;m:switch(J[a+84>>2]-2|0){case 1:c=2446816;case 0:Tc(b,c,-1);break;default:break m}Tc(b,2446892,-1);Tc(b,2446900,-1);xo(b,J[a+56>>2]+384|0);Tc(b,2444412,-1);Tc(b,2446972,-1);xo(b,J[a+56>>2]+384|0);Tc(b,2444412,-1);Tc(b,2447040,-1);xo(b,J[a+56>>2]+384|0);Tc(b,2444412,-1);if(!(!K[a+ +96|0]|J[a+104>>2]==J[J[a+56>>2]+28>>2])){Tc(b,2447120,-1);Tc(b,2447160,-1);Tc(b,2447216,-1);c=J[a+104>>2];J[d>>2]=c<<16&16711680|c&65280|c>>>16&255;Op(b,d);Tc(b,2444412,-1);Tc(b,2447284,-1);Tc(b,2447344,-1)}if(K[a+90|0]){Tc(b,2447388,-1);Tc(b,2447216,-1);c=J[a+92>>2];J[d>>2]=c<<16&16711680|c&65280|c>>>16&255;Op(b,d);Tc(b,2444412,-1);Tc(b,2447444,-1)}c=J[J[a+56>>2]+28>>2];if(c<<16&16711680|c&65280|c>>>16&255){Tc(b,2447160,-1);Tc(b,2447216,-1);c=J[J[a+56>>2]+28>>2];J[d>>2]=c<<16&16711680|c&65280|c>>> +16&255;Op(b,d);Tc(b,2444412,-1);Tc(b,2447284,-1)}if(K[a+112|0])Tc(b,2444300,-1);Tc(b,2447504,-1);Tc(b,2447540,-1);Jv(d,g);J[699344]=0;da(3512,b|0,d|0);c=J[699344];J[699344]=0;if((c|0)!=1){if(H[d+11|0]<0)uc(J[d>>2]);Tc(b,2447564,-1);if(K[a+236|0])Tc(b,2447592,-1);Tc(b,2447624,-1);Tc(b,2447688,-1);NG(b,O[a+32>>3]);Tc(b,2447708,-1);NG(b,O[a+16>>3]);Tc(b,2447732,-1);c=J[a+256>>2];a=J[a+260>>2];if((c|0)!=(a|0))while(1){NG(b,O[c>>3]);Tc(b,2447776,-1);c=c+8|0;if((a|0)!=(c|0))continue;break}Tc(b,2447784, +-1);Tc(b,2447804,-1);fc=d+16|0;return}b=Z()|0;if(H[d+11|0]>=0)break b;uc(J[d>>2])}ba(b|0);B()}function i0a(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;a:{while(1){b:{c:{if(M[a+116>>2]<=261){SC(a);c=J[a+116>>2];if(!(c>>>0>=262|b))return 0;if(!c)break a;if(c>>>0<3)break c}e=J[a+108>>2];c=J[a+84>>2]&(K[(e+J[a+56>>2]|0)+2|0]^J[a+72>>2]<>2]);J[a+72>>2]=c;c=J[a+68>>2]+(c<<1)|0;d=L[c>>1];I[J[a+64>>2]+((e&J[a+52>>2])<<1)>>1]=d;I[c>>1]=e;if(!d|J[a+44>>2]-262>>>0>> +0)break c;d=E2(a,d);J[a+96>>2]=d;break b}d=J[a+96>>2]}d:{if(d>>>0>=3){c=J[a+5792>>2];e=J[a+108>>2]-J[a+112>>2]|0;I[J[a+5796>>2]+(c<<1)>>1]=e;J[a+5792>>2]=c+1;i=c+J[a+5784>>2]|0;c=d-3|0;H[i|0]=c;c=((K[(c&255)+767472|0]<<2)+a|0)+1176|0;I[c>>1]=L[c>>1]+1;c=e-1&65535;c=((K[(c>>>0<256?c:(c>>>7|0)+256|0)+766960|0]<<2)+a|0)+2440|0;I[c>>1]=L[c>>1]+1;d=J[a+96>>2];c=J[a+116>>2]-d|0;J[a+116>>2]=c;j=J[a+5788>>2]-1|0;k=J[a+5792>>2];if(!(c>>>0<3|d>>>0>M[a+128>>2])){g=d-1|0;J[a+96>>2]=g;l=J[a+56>>2]+3|0;h=J[a+72>> +2];d=J[a+108>>2];m=J[a+52>>2];n=J[a+64>>2];o=J[a+68>>2];i=J[a+84>>2];f=J[a+88>>2];while(1){c=d;d=c+1|0;J[a+108>>2]=d;h=(K[c+l|0]^h<>2]=h;e=(h<<1)+o|0;I[((d&m)<<1)+n>>1]=L[e>>1];I[e>>1]=d;g=g-1|0;J[a+96>>2]=g;if(g)continue;break}d=c+2|0;J[a+108>>2]=d;if((j|0)!=(k|0))continue;break d}J[a+96>>2]=0;d=d+J[a+108>>2]|0;J[a+108>>2]=d;e=J[a+56>>2]+d|0;c=K[e|0];J[a+72>>2]=c;J[a+72>>2]=J[a+84>>2]&(K[e+1|0]^c<>2]);if((j|0)!=(k|0))continue;break d}d=K[J[a+56>>2]+J[a+108>>2]|0];c=J[a+5792>> +2];I[J[a+5796>>2]+(c<<1)>>1]=0;J[a+5792>>2]=c+1;H[c+J[a+5784>>2]|0]=d;c=(d<<2)+a|0;I[c+148>>1]=L[c+148>>1]+1;J[a+116>>2]=J[a+116>>2]-1;d=J[a+108>>2]+1|0;J[a+108>>2]=d;if(J[a+5792>>2]!=(J[a+5788>>2]-1|0))continue}e=J[a+92>>2];if((e|0)>=0)c=e+J[a+56>>2]|0;else c=0;Uk(a,c,d-e|0,0);J[a+92>>2]=J[a+108>>2];f=J[a>>2];e=J[f+28>>2];Uh(e);d=J[e+20>>2];c=J[f+16>>2];d=c>>>0>d>>>0?d:c;e:{if(!d)break e;xc(J[f+12>>2],J[e+16>>2],d);J[f+12>>2]=d+J[f+12>>2];J[e+16>>2]=d+J[e+16>>2];J[f+20>>2]=d+J[f+20>>2];J[f+16>>2]= +J[f+16>>2]-d;c=J[e+20>>2];J[e+20>>2]=c-d;if((c|0)!=(d|0))break e;J[e+16>>2]=J[e+8>>2]}if(J[J[a>>2]+16>>2])continue;break}return 0}d=J[a+108>>2];J[a+5812>>2]=d>>>0>=2?2:d;if((b|0)==4){c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;Uk(a,b,d-c|0,1);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];Uh(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;f:{if(!c)break f;xc(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+ +20>>2]=b-c;if((b|0)!=(c|0))break f;J[d+16>>2]=J[d+8>>2]}return(J[J[a>>2]+16>>2]?3:2)|0}g:{if(!J[a+5792>>2])break g;c=J[a+92>>2];if((c|0)>=0)b=c+J[a+56>>2]|0;else b=0;Uk(a,b,d-c|0,0);J[a+92>>2]=J[a+108>>2];e=J[a>>2];d=J[e+28>>2];Uh(d);c=J[d+20>>2];b=J[e+16>>2];c=b>>>0>c>>>0?c:b;h:{if(!c)break h;xc(J[e+12>>2],J[d+16>>2],c);J[e+12>>2]=c+J[e+12>>2];J[d+16>>2]=c+J[d+16>>2];J[e+20>>2]=c+J[e+20>>2];J[e+16>>2]=J[e+16>>2]-c;b=J[d+20>>2];J[d+20>>2]=b-c;if((b|0)!=(c|0))break h;J[d+16>>2]=J[d+8>>2]}if(J[J[a>> +2]+16>>2])break g;return 0}return 1}function s8(a,b){var c=0,d=0,e=0,f=0,g=0;e=fc+-64|0;fc=e;a:{b:{c:{d:{e:{c=H[b|0];switch(c-97|0){case 17:break c;case 0:case 22:break e;default:break d}}g=(c|0)==119?578:66;break b}J[e>>2]=b;Uc(0,83150,69387,e);c=0;break a}g=(K[b+1|0]==43)<<1}c=Dc(Yc(43515)+689|0);if(!c){J[e+16>>2]=43515;Uc(a,83150,70582,e+16|0);c=0;break a}Sg(c,0,688);d=c+688|0;J[c>>2]=d;of(d,43515);I[c+476>>1]=65535;J[c+8>>2]=g&2;J[c+480>>2]=-1;J[c+484>>2]=0;J[c+628>>2]=a;J[c+472>>2]=-1;J[c+648>> +2]=182;J[c+644>>2]=181;J[c+640>>2]=180;J[c+636>>2]=179;J[c+632>>2]=178;J[c+624>>2]=184;J[c+620>>2]=183;sr(c);d=g?1:2049;J[c+12>>2]=d;f:switch(g|0){case 0:case 2:d=d|32768;J[c+12>>2]=d;break;default:break f}f=K[b|0];g:{if(!f)break g;if(!g){a=b;while(1){h:{i:{j:switch((f<<24>>24)-66|0){case 33:d=d&-32769;break i;case 1:d=d|32768;break i;case 43:d=d&-2049;break i;case 11:d=d|2048;break i;case 6:d=d&-4|2;break i;case 10:d=d&-4|2;break i;case 0:d=d&-4|1;break i;case 38:break j;default:break h}d=d|65536}J[c+ +12>>2]=d}f=K[a+1|0];a=a+1|0;if(f)continue;break}break g}if(!(g&64)){a=b;while(1){k:{l:{m:switch((f<<24>>24)-66|0){case 6:d=d&-4|2;break l;case 10:d=d&-4|2;break l;case 0:d=d&-4|1;break l;case 38:break m;default:break k}d=d|65536}J[c+12>>2]=d}f=K[a+1|0];a=a+1|0;if(f)continue;break}break g}a=b;while(1){n:{o:{p:switch((f<<24>>24)-66|0){case 32:d=d|128;break o;case 0:d=d&-4|1;break o;case 10:d=d&-4|2;break o;case 6:d=d&-4|2;break o;case 38:break p;default:break n}d=d|65536}J[c+12>>2]=d}f=K[a+1|0];a=a+ +1|0;if(f)continue;break}}q:{r:{s:{if(!(K[c+9|0]&2)){if((kc[J[c+632>>2]](J[c+628>>2],c+456|0,8)|0)==8)break s;if(!J[c+8>>2])break r;d=J[c+12>>2]}a=c+458|0;I[a>>1]=42;b=d&128;I[c+456>>1]=b?19789:18761;if(b){b=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=b}J[c+460>>2]=0;kc[J[c+640>>2]](J[c+628>>2],0,0)|0;if((kc[J[c+636>>2]](J[c+628>>2],c+456|0,8)|0)!=8){Uc(J[c+628>>2],43515,72092,0);break q}J[c+468>>2]=83168;if(L[c+456>>1]==19789){J[c+12>>2]=J[c+12>>2]|128;a=83232}else a=83296;J[c+464>>2]=a;if(!KA(c))break q;I[c+ +32>>1]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;break a}a=L[c+456>>1];if(!((a|0)==18761|(a|0)==19789)){b=J[c+628>>2];J[e+36>>2]=a;J[e+32>>2]=a;Uc(b,43515,72818,e+32|0);break q}J[c+468>>2]=83168;d=J[c+12>>2];if((a|0)==19789){d=d|128;J[c+12>>2]=d;a=83232}else a=83296;J[c+464>>2]=a;if(d&128){a=K[c+459|0];H[c+459|0]=K[c+458|0];H[c+458|0]=a;Rp(c+460|0)}t:{u:{v:{a=L[c+458>>1];switch(a-42|0){case 0:break t;case 1:break v;default:break u}}Uc(J[c+628>>2],43515,73354,0);break q}b=J[c+628>>2];J[e+52>>2]=a;J[e+ +48>>2]=a;Uc(b,43515,73925,e+48|0);break q}J[c+604>>2]=0;J[c+596>>2]=0;J[c+600>>2]=0;a=J[c+12>>2];J[c+12>>2]=a|512;if(a&65536)break a;b=H[b|0]-97|0;if(b){if((b|0)!=17)break q;J[c+20>>2]=J[c+460>>2];w:{if(!(a&2048))break w;if(kc[J[c+620>>2]](J[c+628>>2],c+612|0,c+616|0)|0)break w;J[c+12>>2]=J[c+12>>2]&-2049}if(!CU(c))break q;J[c+608>>2]=-1;J[c+12>>2]=J[c+12>>2]|16;break a}if(!KA(c))break q;break a}Uc(J[c+628>>2],43515,71495,0)}J[c+8>>2]=0;MW(c);c=0}fc=e- -64|0;return c}function vZ(a){a=a|0;var b=0, +c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=1E3;c=Dc(1E3);H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;g=4;i=J[a>>2];k=J[a+4>>2];a:{if((i|0)==(k|0)){f=c;break a}f=c;while(1){a=K[i+11|0];b=a<<24>>24<0;j=b?J[i>>2]:i;b=b?J[i+4>>2]:a;d=b+4|0;b:{if(!f){g=0;e=d>>>0<=1E3?1E3:d;a=Dc(e);f=a;break b}a=d+g|0;if(a>>>0<=e>>>0){a=c+4|0;break b}while(1){e=e<<1;if(a>>>0>e>>>0)continue;break}c=fe(f,e);if(c){a=c+g|0;f=c;break b}c=xc(Dc(e),f,g);uc(f);a=c+g|0;f=c}H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;j=xc(a+ +4|0,j,b);h=O[i+16>>3]*100;c:{if(R(h)<2147483648){c=~~h;break c}c=-2147483648}d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{if(!f){a=0;e=1E3;b=Dc(1E3);j=b;break v}w:{a=d+g|0;g=a+4|0;if(g>>>0<=e>>>0)b=b+j|0;else{while(1){e=e<<1;if(g>>>0>e>>>0)continue;break}b=fe(f,e);if(!b)break w;f=b;b=b+a|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;h=O[i+24>>3]*100;if(!(R(h)<2147483648))break u;d=~~h;break t}j=Dc(e);b=xc(j,f,a);uc(f);b=a+b|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]= +c>>>24;h=O[i+24>>3]*100;x:{if(R(h)<2147483648){d=~~h;break x}d=-2147483648}if(!j)break s;g=a+4|0;f=j;break t}d=-2147483648}a=a+8|0;if(e>>>0>=a>>>0)b=b+4|0;else{while(1){e=e<<1;if(e>>>0>>0)continue;break}c=fe(f,e);if(!c)break q;f=c;b=c+g|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+32>>3]*100;if(!(R(h)<2147483648))break r;d=~~h;break o}g=0;e=1E3;b=Dc(1E3);c=b;break p}d=-2147483648;break o}c=Dc(e);a=xc(c,f,g);uc(f);b=a+g|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24; +h=O[i+32>>3]*100;y:{if(R(h)<2147483648){d=~~h;break y}d=-2147483648}if(!c)break n;a=g+4|0;f=c}g=a+4|0;if(g>>>0<=e>>>0)b=b+4|0;else{while(1){e=e<<1;if(g>>>0>e>>>0)continue;break}c=fe(f,e);if(!c)break l;f=c;b=c+a|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+40>>3]*100;if(!(R(h)<2147483648))break m;d=~~h;break j}a=0;e=1E3;b=Dc(1E3);c=b;break k}d=-2147483648;break j}c=Dc(e);b=xc(c,f,a);uc(f);b=a+b|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+40>>3]*100;z:{if(R(h)< +2147483648){d=~~h;break z}d=-2147483648}if(!c)break i;g=a+4|0;f=c}a=a+8|0;if(e>>>0>=a>>>0)b=b+4|0;else{while(1){e=e<<1;if(e>>>0>>0)continue;break}c=fe(f,e);if(!c)break g;f=c;b=c+g|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+48>>3]*100;if(!(R(h)<2147483648))break h;d=~~h;break e}g=0;e=1E3;b=Dc(1E3);c=b;break f}d=-2147483648;break e}c=Dc(e);a=xc(c,f,g);uc(f);b=a+g|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;h=O[i+48>>3]*100;A:{if(R(h)<2147483648){d=~~h;break A}d= +-2147483648}if(c){a=g+4|0;f=c;break e}a=0;e=1E3;c=Dc(1E3);f=c;break d}c=a+4|0;if(c>>>0<=e>>>0){c=b+4|0;break d}while(1){e=e<<1;if(c>>>0>e>>>0)continue;break}b=fe(f,e);if(b){c=a+b|0;f=b;break d}b=xc(Dc(e),f,a);uc(f);c=a+b|0;f=b}H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;g=a+4|0;i=i+56|0;if((k|0)!=(i|0))continue;break}}H[f|0]=g;H[f+1|0]=g>>>8;H[f+2|0]=g>>>16;H[f+3|0]=g>>>24;return f|0}function LV(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;f=fc-80|0;fc=f;if(!K[b+88| +0]){k=b,l=kc[J[J[b>>2]+36>>2]](b)|0,J[k+72>>2]=l;k=b,l=kc[J[J[b>>2]+44>>2]](b)|0,J[k+76>>2]=l;k=b,l=kc[J[J[b>>2]+40>>2]](b)|0,J[k+80>>2]=l;i=kc[J[J[b>>2]+48>>2]](b)|0;H[b+88|0]=1;J[b+84>>2]=i}i=$v(f+24|0,J[b+72>>2]);J[699344]=0;ca(5291,f+32|0,i|0,2392269);d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{if((d|0)!=1){s:{if(K[b+88|0]){d=J[b+84>>2];break s}d=J[J[b>>2]+36>>2];J[699344]=0;d=_(d|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break r;J[b+72>>2]=d;d=J[J[b>>2]+44>> +2];J[699344]=0;d=_(d|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break r;J[b+76>>2]=d;d=J[J[b>>2]+40>>2];J[699344]=0;d=_(d|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break r;J[b+80>>2]=d;d=J[J[b>>2]+48>>2];J[699344]=0;d=_(d|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break r;H[b+88|0]=1;J[b+84>>2]=d}J[699344]=0;g=c-1|0;c=aa(5290,f+16|0,g-d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break r;J[699344]=0;d=f+40|0;ca(5292,d|0,f+32|0,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break q;J[699344]=0;ca(5291, +f+48|0,d|0,2392269);d=J[699344];J[699344]=0;if((d|0)==1)break p;if(!K[b+88|0]){d=J[J[b>>2]+36>>2];J[699344]=0;d=_(d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;J[b+72>>2]=d;d=J[J[b>>2]+44>>2];J[699344]=0;d=_(d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;J[b+76>>2]=d;d=J[J[b>>2]+40>>2];J[699344]=0;d=_(d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;J[b+80>>2]=d;d=J[J[b>>2]+48>>2];J[699344]=0;d=_(d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;H[b+88|0]=1;J[b+84>>2]= +d}d=J[b+76>>2];J[699344]=0;d=aa(5290,f+8|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;J[699344]=0;e=f+56|0;ca(5292,e|0,f+48|0,d|0);h=J[699344];J[699344]=0;if((h|0)==1)break n;J[699344]=0;ca(5291,f- -64|0,e|0,2392269);e=J[699344];J[699344]=0;if((e|0)==1)break m;if(!K[b+88|0]){e=J[J[b>>2]+36>>2];J[699344]=0;e=_(e|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break l;J[b+72>>2]=e;e=J[J[b>>2]+44>>2];J[699344]=0;e=_(e|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break l;J[b+76>>2]=e;e=J[J[b>>2]+ +40>>2];J[699344]=0;e=_(e|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break l;J[b+80>>2]=e;e=J[J[b>>2]+48>>2];J[699344]=0;e=_(e|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break l;H[b+88|0]=1;J[b+84>>2]=e}e=J[b+80>>2];J[699344]=0;g=aa(5290,f|0,g-e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;J[699344]=0;e=f+72|0;h=f- -64|0;ca(5292,e|0,h|0,g|0);j=J[699344];J[699344]=0;if((j|0)==1)break k;J[699344]=0;ca(5630,a|0,b|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;wc(e);wc(g);wc(h);wc(f+56|0); +wc(d);wc(f+48|0);wc(f+40|0);wc(c);wc(f+32|0);wc(i);fc=f+80|0;return}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;wc(f+72|0)}wc(g)}wc(f- -64|0)}wc(f+56|0)}wc(d)}wc(f+48|0)}wc(f+40|0)}wc(c)}wc(f+32|0)}wc(i);ba(b|0);B()}function PDa(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;d=fc-48|0;fc=d;a:{b:{c:{if(!(K[a+16|0]|b)){j=a+20|0;b=J[a+20>>2];if(b)b=J[b+8>>2]?j:a+36|0;else b=a+36|0;J[d+36>> +2]=0;J[d+40>>2]=J[685894];d:{b=J[b>>2];e:{f:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;break e}J[d+28>>2]=0}J[699344]=0;aa(5153,d+36|0,d+28|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+28>>2];J[d+28>>2]=0;if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}break a}b=Z()|0;zc(d+28|0)}wc(d+36|0);ba(b|0);B()}b=J[d+ +36>>2];J[d+40>>2]=J[(b?b+12|0:2743576)>>2];J[699344]=0;e=d+36|0;b=aa(5285,d+20|0,e|0)|0;c=J[699344];J[699344]=0;g:{h:{i:{j:{k:{l:{if((c|0)!=1){J[699344]=0;c=aa(5286,d+28|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i;J[699344]=0;e=ga(5287,c|0,e|0,-1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;wc(c);wc(b);if(!e)break g;H[a+16|0]=1;b=1;c=J[d+36>>2];if(c)b=J[c+8>>2]<<1|1;J[699344]=0;i=ha(5213,d+8|0,d+16|0,b|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;g=J[d+16>>2];e=J[d+36>>2];if(!e)break h; +c=K[J[e+12>>2]];if(!c)break h;b=1;while(1){f=0;m:{n:{o:{if(e){J[699344]=0;f=aa(5288,e|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o}f=f-b|0;if((f|0)<=1)if((f|0)!=1|c<<24>>24>=0)break n;while(1){H[g+1|0]=K[(c&15)+2398096|0];H[g|0]=K[((c&240)>>>4|0)+2398096|0];g=g+2|0;e=J[d+36>>2];p:{if(b){h=!e;c=b;q:{if((b|0)>=0)break q;c=b;if(!e)break q;c=J[e+8>>2]+b|0}if(h|(c|0)<0|J[e+8>>2]<(c|0))break l;h=J[e+12>>2];break p}if(!e)break h;c=0;h=J[e+12>>2]}c=K[c+h|0];if(!c)break h;b=b+1|0;h=(f|0)>1;f=f-1|0; +if(h)continue;break}break m}a=Z()|0;hd(i);break b}H[g|0]=c;e=J[d+36>>2];r:{s:{if(b){f=!e;c=b;t:{if((b|0)>=0)break t;c=b;if(!e)break t;c=J[e+8>>2]+b|0}if(f|(c|0)<0|J[e+8>>2]<(c|0))break l;f=J[e+12>>2];break s}c=0;if(!e)break r;c=0;f=J[e+12>>2]}c=K[c+f|0]}g=g+1|0;b=b+1|0}if(c&255)continue;break}break h}a=Z()|0;break b}J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)!=1)B();a=Z()|0;hd(i);break b}a=Z()|0;break b}a=Z()|0;wc(c);wc(b);break b}a=Z()|0;wc(b);break b}H[g|0]=0;b=J[d+36>>2];u:{if(b){c=J[J[b>> +2]+28>>2];J[699344]=0;ca(c|0,d+44|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break u;break c}J[d+44>>2]=0}J[699344]=0;aa(5153,a+28|0,d+44|0)|0;b=J[699344];J[699344]=0;v:{if((b|0)!=1){b=J[d+44>>2];J[d+44>>2]=0;if(!b)break v;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break v;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break v}break a}a=Z()|0;zc(d+44|0);hd(i);break b}b=J[a+28>>2];J[a+32>>2]=J[(b?b+12|0:2743576)>>2];J[699344]=0;aa(5224,j|0,J[d+ +16>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;hd(i)}H[a+16|0]=1;wc(d+36|0)}fc=d+48|0;b=J[a+20>>2];if(b)a=J[b+8>>2]?a+20|0:a+36|0;else a=a+36|0;return a|0}a=Z()|0;hd(i)}wc(d+36|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Tub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(!(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))){f=1029;break a}f=1029;if(K[a+300|0]|K[a+289|0])break a;if(!(K[a+287|0]|!K[a+293|0])){f=1031;break a}f=1028;if((c>>>0)%3|c>>>0>768)break a;b:{c:{d:{e:{f:{g:{g= +K[a+286|0];if(g|K[a+287|0]|K[a+288|0]){f=1030;h=K[a+325|0];if(h>>>0>6|!(1<>>0)/3|0;J[a+332>>2]=h;if(K[a+288|0])break d;J[a+1160>>2]=h;i:{if(f>>>0<3)break i;g=0;f=d;if((c-3&65535)>>>0>=3){j=h&32766;i=a+1164|0;while(1){k=i+P(g,3)|0;H[k|0]=K[f|0];H[k+1|0]=K[f+1|0];H[k+2|0]=K[f+2|0];k=i+P(g|1,3)|0;H[k|0]=K[f+3|0];H[k+1|0]=K[f+4|0]; +H[k+2|0]=K[f+5|0];g=g+2|0;f=f+6|0;l=l+2|0;if((j|0)!=(l|0))continue;break}}if(!(h&1))break i;g=P(g,3)+a|0;H[g+1164|0]=K[f|0];H[g+1165|0]=K[f+1|0];H[g+1166|0]=K[f+2|0]}g=0;j:{if(!K[a+114|0])break j;i=a+1164|0;f=kc[J[a+152>>2]](800)|0;if(!f){Jc(a,1,0,0);g=1;break j}J[f+4>>2]=1026;J[f>>2]=1027;g=J[a+700>>2];k:{if(g){J[g+8>>2]=f;break k}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+ +516>>2]=f;J[f+28>>2]=h;xc(f+32|0,i,768);g=0}if(!g)break c;break b}H[a+293|0]=1;h=((c&65535)>>>0)/3|0;J[a+332>>2]=h}if(K[a+288|0]){i=J[J[a+528>>2]+88>>2];J[i+64>>2]=h;H[i+55|0]=1;if(!h){h=0;break c}g=0;f=d;if((h|0)!=1){m=h&32766;k=i+68|0;while(1){j=k+P(g,3)|0;H[j|0]=K[f|0];H[j+1|0]=K[f+1|0];H[j+2|0]=K[f+2|0];j=k+P(g|1,3)|0;H[j|0]=K[f+3|0];H[j+1|0]=K[f+4|0];H[j+2|0]=K[f+5|0];g=g+2|0;f=f+6|0;l=l+2|0;if((m|0)!=(l|0))continue;break}}if(!(h&1))break c;g=i+P(g,3)|0;H[g+68|0]=K[f|0];H[g+69|0]=K[f+1|0];H[g+ +70|0]=K[f+2|0];break c}f=J[a+512>>2];if(!f)f=J[a+528>>2];i=J[f+88>>2];H[i+55|0]=1;if(!c){l=J[a+1160>>2];J[i+64>>2]=l;xc(i+68|0,a+1164|0,768);if(!K[a+307|0])break c;H[i+56|0]=1;f=1035;g=J[a+1932>>2];if(l>>>0<=g-1>>>0)break a;J[i+844>>2]=g;xc(i+848|0,a+1936|0,g);break c}J[i+64>>2]=h;if(!h){h=0;break c}g=0;f=d;if((h|0)!=1){m=h&32766;k=i+68|0;while(1){j=k+P(g,3)|0;H[j|0]=K[f|0];H[j+1|0]=K[f+1|0];H[j+2|0]=K[f+2|0];j=k+P(g|1,3)|0;H[j|0]=K[f+3|0];H[j+1|0]=K[f+4|0];H[j+2|0]=K[f+5|0];g=g+2|0;f=f+6|0;l=l+2| +0;if((m|0)!=(l|0))continue;break}}if(!(h&1))break c;g=i+P(g,3)|0;H[g+68|0]=K[f|0];H[g+69|0]=K[f+1|0];H[g+70|0]=K[f+2|0]}g=0;if(!K[a+112|0])break b;g=kc[J[b+4>>2]](a,b,e)|0;if(g)break b;e=J[e>>2];J[e+36>>2]=h;H[e+32|0]=!c;g=0;if(!h)break b;i=h&1;l:{if((h|0)==1){a=0;break l}h=h&32766;a=0;c=e+40|0;b=0;while(1){f=c+P(a,3)|0;H[f|0]=K[d|0];H[f+1|0]=K[d+1|0];H[f+2|0]=K[d+2|0];f=c+P(a|1,3)|0;H[f|0]=K[d+3|0];H[f+1|0]=K[d+4|0];H[f+2|0]=K[d+5|0];a=a+2|0;d=d+6|0;b=b+2|0;if((h|0)!=(b|0))continue;break}}if(!i)break b; +a=e+P(a,3)|0;H[a+40|0]=K[d|0];H[a+41|0]=K[d+1|0];H[a+42|0]=K[d+2|0]}return g|0}Jc(a,f,0,0);return f|0}function Q3(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;J[b>>2]=0;k=O[a>>3];j=O[c>>3];l=k*((O[d>>3]-j)/e);o=O[c+8>>3];k=(O[d+8>>3]-o)/e*k;e=0;a:{b:switch(J[a+56>>2]-1|0){case 0:e=+J[a+24>>2];q=k*e;e=l*e;default:if(!J[b+4>>2]){c:{if(J[b+8>>2]){d=J[b+12>>2];a=1;break c}g=J[b+16>>2];d=vc(g>>>0>1073741823?-1:g<<2);a=J[b+12>>2];if(a){uc(a);f=J[b>>2]&63;g=J[b+8>>2]+J[b+16>>2]| +0;a=J[b+4>>2]+1|0}else a=1;J[b+8>>2]=g;J[b+12>>2]=d}r=d,s=vc(1024),J[r>>2]=s;J[b+4>>2]=a}a=J[J[b+12>>2]>>2]+(f<<4)|0;O[a+8>>3]=o+l-q;O[a>>3]=j-k-e;d=J[b>>2]+1|0;J[b>>2]=d;l=O[c+8>>3]-l;e=k+O[c>>3]-e;f=J[b+4>>2];c=d>>>6|0;if(f>>>0<=c>>>0){a=J[b+8>>2];d:{if(a>>>0>c>>>0){a=J[b+12>>2];break d}g=a+J[b+16>>2]|0;a=vc(g>>>0>1073741823?-1:g<<2);h=J[b+12>>2];if(h){xc(a,h,f<<2);uc(h);g=J[b+8>>2]+J[b+16>>2]|0;f=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=g;J[b+12>>2]=a}r=(c<<2)+a|0,s=vc(1024),J[r>>2]=s;J[b+4>>2]=f+1}d=J[J[b+ +12>>2]+(c<<2)>>2]+((d&63)<<4)|0;O[d>>3]=e;e=l-q;break a;case 1:break b}e=O[a+8>>3];e=Qz(e/(e+.125/O[a+48>>3]));e=3.141592653589793/(e+e);e:{if(R(e)<2147483648){h=~~e;break e}h=-2147483648}d=0;if(!J[b+4>>2]){f:{if(J[b+8>>2]){f=J[b+12>>2];g=1;break f}i=J[b+16>>2];f=vc(i>>>0>1073741823?-1:i<<2);d=J[b+12>>2];g:{if(!d){g=1;d=0;break g}uc(d);g=J[b+4>>2]+1|0;i=J[b+8>>2]+J[b+16>>2]|0;d=J[b>>2]&63}J[b+8>>2]=i;J[b+12>>2]=f}r=f,s=vc(1024),J[r>>2]=s;J[b+4>>2]=g}q=3.141592653589793/+(h+1|0);d=J[J[b+12>>2]>>2]+ +(d<<4)|0;O[d+8>>3]=o+l;O[d>>3]=j-k;d=J[b>>2]+1|0;J[b>>2]=d;h:{if(J[a+24>>2]>0){if((h|0)<=0)break h;g=0;e=qf(l,-k);while(1){j=O[a>>3];e=q+e;o=j*Ee(e)+O[c+8>>3];j=j*Me(e)+O[c>>3];i=J[b+4>>2];m=d>>>6|0;if(i>>>0<=m>>>0){f=J[b+8>>2];i:{if(f>>>0>m>>>0){f=J[b+12>>2];break i}n=f+J[b+16>>2]|0;f=vc(n>>>0>1073741823?-1:n<<2);p=J[b+12>>2];if(p){xc(f,p,i<<2);uc(p);n=J[b+8>>2]+J[b+16>>2]|0;i=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=n;J[b+12>>2]=f}r=(m<<2)+f|0,s=vc(1024),J[r>>2]=s;J[b+4>>2]=i+1}d=J[J[b+12>>2]+(m<<2)>>2]+((d& +63)<<4)|0;O[d+8>>3]=o;O[d>>3]=j;d=J[b>>2]+1|0;J[b>>2]=d;g=g+1|0;if((h|0)!=(g|0))continue;break}break h}if((h|0)<=0)break h;g=0;e=qf(-l,k);while(1){j=O[a>>3];e=e-q;o=j*Ee(e)+O[c+8>>3];j=j*Me(e)+O[c>>3];i=J[b+4>>2];m=d>>>6|0;if(i>>>0<=m>>>0){f=J[b+8>>2];j:{if(f>>>0>m>>>0){f=J[b+12>>2];break j}n=f+J[b+16>>2]|0;f=vc(n>>>0>1073741823?-1:n<<2);p=J[b+12>>2];if(p){xc(f,p,i<<2);uc(p);n=J[b+8>>2]+J[b+16>>2]|0;i=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=n;J[b+12>>2]=f}r=(m<<2)+f|0,s=vc(1024),J[r>>2]=s;J[b+4>>2]=i+1}d=J[J[b+ +12>>2]+(m<<2)>>2]+((d&63)<<4)|0;O[d+8>>3]=o;O[d>>3]=j;d=J[b>>2]+1|0;J[b>>2]=d;g=g+1|0;if((h|0)!=(g|0))continue;break}}e=O[c+8>>3];k=k+O[c>>3];f=J[b+4>>2];c=d>>>6|0;if(f>>>0<=c>>>0){a=J[b+8>>2];k:{if(a>>>0>c>>>0){a=J[b+12>>2];break k}g=a+J[b+16>>2]|0;a=vc(g>>>0>1073741823?-1:g<<2);h=J[b+12>>2];if(h){xc(a,h,f<<2);uc(h);g=J[b+8>>2]+J[b+16>>2]|0;f=J[b+4>>2];d=J[b>>2]}J[b+8>>2]=g;J[b+12>>2]=a}r=(c<<2)+a|0,s=vc(1024),J[r>>2]=s;J[b+4>>2]=f+1}d=J[J[b+12>>2]+(c<<2)>>2]+((d&63)<<4)|0;O[d>>3]=k;e=e-l}O[d+8>> +3]=e;J[b>>2]=J[b>>2]+1}function F4(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=fc-16|0;fc=i;J[c>>2]=2147483632;J[c+16>>2]=J[c+8>>2];g=J[c+20>>2];J[c+28>>2]=g;I[g+2>>1]=0;d=J[a+28>>2];g=J[a+20>>2];a:{if((d|0)==(g|0))break a;h=J[b+28>>2];b=J[b+20>>2];if((h|0)==(b|0))break a;a=d-g>>3;J[i+8>>2]=g+8;J[i+4>>2]=b+8;b=h-b>>3;while(1){f=J[i+8>>2];k=I[f+2>>1];g=k>>31;e=J[i+4>>2];l=I[e+2>>1];d=l>>31;h=(g^k)-g|0;g=I[f>>1];k=h+g|0;h=(d^l)-d|0;d=I[e>>1];l=h+d|0;h=(k|0)<(l|0)?k:l;g=(d|0)<(g|0)?g:d;if((h|0)> +(g|0)){h=h-g|0;b:{c:{d:{e:{f:switch((L[e+2>>1]>>>14&2|L[f+2>>1]>>>15)-1|0){default:d=I[e>>1];d=J[e+4>>2]+((d|0)<(g|0)?g-d|0:0)|0;e=I[f>>1];e=J[f+4>>2]+((e|0)<(g|0)?g-e|0:0)|0;f=J[c+16>>2];while(1){j=f;f=P(K[d|0],K[e|0]);H[j|0]=(f|0)==65025?-1:f>>>8|0;f=J[c+28>>2];g:{h:{if((J[c>>2]+1|0)!=(g|0))break h;j=I[f+2>>1];if((j|0)<=0)break h;I[f+2>>1]=j+1;j=J[c+16>>2];break g}J[c+28>>2]=f+8;j=J[c+16>>2];I[f+10>>1]=1;I[f+8>>1]=g;J[f+12>>2]=j}d=d+1|0;e=e+1|0;J[c>>2]=g;f=j+1|0;J[c+16>>2]=f;g=g+1|0;h=h-1|0;if(h)continue; +break}break b;case 0:d=I[e>>1];d=J[e+4>>2]+((d|0)<(g|0)?g-d|0:0)|0;if(K[J[f+4>>2]]==255)break d;f=J[c+16>>2];while(1){e=P(K[d|0],K[J[J[i+8>>2]+4>>2]]);H[f|0]=(e|0)==65025?-1:e>>>8|0;f=J[c+28>>2];i:{j:{if((J[c>>2]+1|0)!=(g|0))break j;e=I[f+2>>1];if((e|0)<=0)break j;I[f+2>>1]=e+1;e=J[c+16>>2];break i}J[c+28>>2]=f+8;e=J[c+16>>2];I[f+10>>1]=1;I[f+8>>1]=g;J[f+12>>2]=e}d=d+1|0;J[c>>2]=g;f=e+1|0;J[c+16>>2]=f;g=g+1|0;h=h-1|0;if(h)continue;break}break b;case 1:d=I[f>>1];d=J[f+4>>2]+((d|0)<(g|0)?g-d|0:0)|0; +if(K[J[e+4>>2]]==255)break e;f=J[c+16>>2];while(1){e=P(K[J[J[i+4>>2]+4>>2]],K[d|0]);H[f|0]=(e|0)==65025?-1:e>>>8|0;f=J[c+28>>2];k:{l:{if((J[c>>2]+1|0)!=(g|0))break l;e=I[f+2>>1];if((e|0)<=0)break l;I[f+2>>1]=e+1;e=J[c+16>>2];break k}J[c+28>>2]=f+8;e=J[c+16>>2];I[f+10>>1]=1;I[f+8>>1]=g;J[f+12>>2]=e}d=d+1|0;J[c>>2]=g;f=e+1|0;J[c+16>>2]=f;g=g+1|0;h=h-1|0;if(h)continue;break}break b;case 2:break f}d=P(K[J[e+4>>2]],K[J[f+4>>2]]);d=(d|0)==65025?255:d>>>8|0;m:{if((J[c>>2]+1|0)!=(g|0))break m;e=J[c+28>>2]; +f=I[e+2>>1];if((f|0)>=0|(d|0)!=K[J[e+4>>2]])break m;I[e+2>>1]=f-h;break c}H[J[c+16>>2]]=d;d=J[c+28>>2];J[c+28>>2]=d+8;e=J[c+16>>2];J[c+16>>2]=e+1;I[d+10>>1]=0-h;I[d+8>>1]=g;J[d+12>>2]=e;break c}xc(J[c+16>>2],d,h);e=J[c+28>>2];n:{o:{if((J[c>>2]+1|0)!=(g|0))break o;d=I[e+2>>1];if((d|0)<=0)break o;I[e+2>>1]=d+h;d=J[c+16>>2];break n}J[c+28>>2]=e+8;d=J[c+16>>2];I[e+10>>1]=h;I[e+8>>1]=g;J[e+12>>2]=d}J[c+16>>2]=d+h;break c}xc(J[c+16>>2],d,h);e=J[c+28>>2];p:{q:{if((J[c>>2]+1|0)!=(g|0))break q;d=I[e+2>>1]; +if((d|0)<=0)break q;I[e+2>>1]=d+h;d=J[c+16>>2];break p}J[c+28>>2]=e+8;d=J[c+16>>2];I[e+10>>1]=h;I[e+8>>1]=g;J[e+12>>2]=d}J[c+16>>2]=d+h}J[c>>2]=(g+h|0)-1}}r:{if((k|0)==(l|0)){a=a-1|0;if(a)J[i+8>>2]=J[i+8>>2]+8;b=b-1|0;if(!b)break a;J[i+4>>2]=J[i+4>>2]+8;break r}if((k|0)<(l|0)){a=a-1|0;if(!a)break a;J[i+8>>2]=J[i+8>>2]+8;break r}b=b-1|0;if(!b)break a;J[i+4>>2]=J[i+4>>2]+8}if(!a)break a;if(b)continue;break}}fc=i+16|0}function $ra(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0; +h=fc-32|0;fc=h;J[a>>2]=0;J[a+4>>2]=J[685894];j=b+16|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{i=J[b+16>>2];if(i)g=J[i+8>>2];else g=0;f=J[b+24>>2];g=g-f|0;if(!g){J[699344]=0;f=ha(5213,h+20|0,h+12|0,327680,1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break i;while(1){i=J[J[b>>2]+8>>2];J[699344]=0;i=ga(i|0,b|0,J[h+12>>2],327680)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;if(!i){hd(f);break e}i=J[j>>2];if(i)g=J[i+8>>2];else g=0;g=g-J[b+24>>2]|0;if(!g)continue;break}hd(f);i=J[b+16>>2];f=J[b+24>>2]}if(i)break g;i=-1; +break f}b=Z()|0;break b}b=Z()|0;hd(f);break b}J[699344]=0;i=Bo(i,d<<24>>24,f);f=J[699344];J[699344]=0;j:{k:{l:{m:{n:{o:{if((f|0)!=1){f=J[b+24>>2];if((i|0)<0)break f;d=e+i|0;e=c+f|0;d=c?(d|0)<(e|0)?d:e:d;if((d|0)<=(f|0))break k;J[699344]=0;ia(5313,h+12|0,j|0,f|0,d-f|0);c=J[699344];J[699344]=0;if((c|0)==1)break m;c=J[h+12>>2];if(!c)break o;e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,h+28|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break n;b=Z()|0;break j}b=Z()|0;break b}J[h+28>>2]=0}J[699344]=0;aa(5153, +a|0,h+28|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[h+28>>2];J[h+28>>2]=0;if(!c)break l;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break l;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break l}break a}b=Z()|0;zc(h+28|0);break j}b=Z()|0;break b}c=J[a>>2];J[a+4>>2]=J[(c?c+12|0:2743576)>>2];wc(h+12|0)}J[b+24>>2]=d;g=0;p:{j=J[a>>2];q:{if(!j){f=0;break q}f=0;while(1){J[699344]=0;c=Bo(j,10,g);d=J[699344];J[699344]=0;if((d|0)==1)break p;if((c|0)<0)break q; +f=f+1|0;g=c+1|0;j=J[a>>2];if(j)continue;break}}J[b+28>>2]=J[b+28>>2]+f;break e}b=Z()|0;break b}wc(h+12|0);break b}J[699344]=0;ia(5313,h+12|0,j|0,f|0,g|0);f=J[699344];J[699344]=0;r:{s:{if((f|0)!=1){f=J[h+12>>2];t:{if(f){g=J[J[f>>2]+28>>2];J[699344]=0;ca(g|0,h+28|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break t;b=Z()|0;break c}J[h+28>>2]=0}J[699344]=0;aa(5153,a|0,h+28|0)|0;f=J[699344];J[699344]=0;u:{if((f|0)!=1){f=J[h+28>>2];J[h+28>>2]=0;if(!f)break u;J[699344]=0;g=J[f+4>>2]-1|0;J[f+4>>2]=g;k=J[699344]; +J[699344]=0;if((k|0)!=1){if(g)break u;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break u}break a}b=Z()|0;zc(h+28|0);break c}f=J[a>>2];J[a+4>>2]=J[(f?f+12|0:2743576)>>2];wc(h+12|0);g=0;k=0;f=J[j>>2];if(f)k=J[f+8>>2];J[b+24>>2]=k;j=J[a>>2];v:{if(!j){f=0;break v}f=0;while(1){J[699344]=0;g=Bo(j,10,g);j=J[699344];J[699344]=0;if((j|0)==1)break d;if((g|0)>=0){f=f+1|0;g=g+1|0;j=J[a>>2];if(j)continue}break}k=J[b+24>>2]}J[b+28>>2]=J[b+28>>2]+f;f=J[J[b>>2]+36>>2];J[699344]=0;g=f;f=h+12|0;ma(g| +0,f|0,b|0,(c?(c-i|0)+k|0:0)|0,d|0,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break s;J[699344]=0;aa(5340,a|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break r;wc(f);break e}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;wc(h+12|0);break b}fc=h+32|0;return}b=Z()|0;break b}wc(h+12|0)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function DV(){var a=0,b=0,c=0;a:{if(K[2793808])break a;H[2793808]=1;Ac(2777426,0,1022);a=-255;b=-255;while(1){c=b<<1;I[c+2778960>>1]=b+8>>>4;I[c+2778962>>1]=b+9>>>4;I[c+2778964>>1]=b+10>>>4;c= +b+3|0;if((c|0)==256)while(1){b=a<<1;I[b+2779984>>1]=b+8>>>4;I[b+2779986>>1]=b+10>>>4;I[b+2779988>>1]=b+12>>>4;b=a+3|0;if((b|0)==256){b=-255;while(1){a=b<<1;c=P(b,3);I[a+2781008>>1]=c+8>>>4;I[a+2781010>>1]=c+11>>>4;I[a+2781012>>1]=c+14>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){I[(b<<1)+2782032>>1]=(b<<2)+8>>>4;a=b+1|0;I[(a<<1)+2782032>>1]=(a<<2)+8>>>4;a=b+2|0;I[(a<<1)+2782032>>1]=(a<<2)+8>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,5);I[a+2783056>>1]=c+8>>>4;I[a+2783058>>1]=c+13>>>4;I[a+ +2783060>>1]=c+18>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,6);I[a+2784080>>1]=c+8>>>4;I[a+2784082>>1]=c+14>>>4;I[a+2784084>>1]=c+20>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,7);I[a+2785104>>1]=c+8>>>4;I[a+2785106>>1]=c+15>>>4;I[a+2785108>>1]=c+22>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){I[(b<<1)+2786128>>1]=(b<<3)+8>>>4;a=b+1|0;I[(a<<1)+2786128>>1]=(a<<3)+8>>>4;a=b+2|0;I[(a<<1)+2786128>>1]=(a<<3)+8>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,9);I[a+2787152>> +1]=c+8>>>4;I[a+2787154>>1]=c+17>>>4;I[a+2787156>>1]=c+26>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,10);I[a+2788176>>1]=c+8>>>4;I[a+2788178>>1]=c+18>>>4;I[a+2788180>>1]=c+28>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,11);I[a+2789200>>1]=c+8>>>4;I[a+2789202>>1]=c+19>>>4;I[a+2789204>>1]=c+30>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,12);I[a+2790224>>1]=c+8>>>4;I[a+2790226>>1]=c+20>>>4;I[a+2790228>>1]=c+32>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b, +13);I[a+2791248>>1]=c+8>>>4;I[a+2791250>>1]=c+21>>>4;I[a+2791252>>1]=c+34>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,14);I[a+2792272>>1]=c+8>>>4;I[a+2792274>>1]=c+22>>>4;I[a+2792276>>1]=c+36>>>4;a=b+3|0;if((a|0)==256){b=-255;while(1){a=b<<1;c=P(b,15);I[a+2793296>>1]=c+8>>>4;I[a+2793298>>1]=c+23>>>4;I[a+2793300>>1]=c+38>>>4;a=b+3|0;if((a|0)==256)break a;I[(a<<1)+2793296>>1]=P(a,15)+8>>>4;b=b+4|0;continue}}else{I[(a<<1)+2792272>>1]=P(a,14)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2791248>> +1]=P(a,13)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2790224>>1]=P(a,12)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2789200>>1]=P(a,11)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2788176>>1]=P(a,10)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2787152>>1]=P(a,9)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2786128>>1]=(a<<3)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2785104>>1]=P(a,7)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2784080>>1]=P(a,6)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2783056>>1]=P(a,5)+8>>>4;b=b+4|0;continue}}}else{I[(a<< +1)+2782032>>1]=(a<<2)+8>>>4;b=b+4|0;continue}}}else{I[(a<<1)+2781008>>1]=P(a,3)+8>>>4;b=b+4|0;continue}}}else{b=b<<1;I[b+2779984>>1]=b+8>>>4;a=a+4|0;continue}}else{I[(c<<1)+2778960>>1]=b+11>>>4;b=b+4|0;continue}}}}function Rcb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=0,o=0;d=fc-48|0;fc=d;a:{b:{c:switch(b-5|0){case 4:b=J[c+164>>2];O[d+16>>3]=N[b>>2];O[d>>3]=N[b+4>>2];e=a+56|0;g=d+16|0;ce(e,g,d);N[b>>2]=O[d+16>>3];N[b+4>>2]=O[d>>3];a=J[c+164>>2];O[d+16>> +3]=N[a+8>>2];O[d>>3]=N[a+12>>2];ce(e,g,d);N[a+8>>2]=O[d+16>>3];N[a+12>>2]=O[d>>3];a=J[c+164>>2];O[d+16>>3]=N[a+16>>2];O[d>>3]=N[a+20>>2];ce(e,g,d);N[a+16>>2]=O[d+16>>3];N[a+20>>2]=O[d>>3];break a;case 3:O[d+16>>3]=N[c+148>>2];O[d>>3]=N[c+152>>2];a=a+56|0;b=d+16|0;ce(a,b,d);N[c+148>>2]=O[d+16>>3];N[c+152>>2]=O[d>>3];O[d+16>>3]=N[c+156>>2];O[d>>3]=N[c+160>>2];ce(a,b,d);N[c+156>>2]=O[d+16>>3];N[c+160>>2]=O[d>>3];break a;case 0:a=a+56|0;b=J[a>>2];N[c+16>>2]=Y(R(O[b>>3]*O[b+24>>3]-O[b+16>>3]*O[b+8>>3]))* ++N[c+16>>2];b=J[a>>2];N[c+20>>2]=Y(R(O[b>>3]*O[b+24>>3]-O[b+16>>3]*O[b+8>>3]))*+N[c+20>>2];O[d+16>>3]=N[c>>2];O[d>>3]=N[c+4>>2];b=d+16|0;ce(a,b,d);N[c>>2]=O[d+16>>3];N[c+4>>2]=O[d>>3];O[d+16>>3]=N[c+8>>2];O[d>>3]=N[c+12>>2];ce(a,b,d);N[c+8>>2]=O[d+16>>3];N[c+12>>2]=O[d>>3];break a;default:if((b|0)==100)break b;break;case 1:case 2:break c}if((b&-2)!=10)break a;a=a+56|0;b=0;while(1){e=P(b,12);g=J[e+J[c+200>>2]>>2];O[d+16>>3]=N[g>>2];O[d>>3]=N[g+4>>2];f=d+16|0;ce(a,f,d);N[g>>2]=O[d+16>>3];N[g+4>>2]= +O[d>>3];g=J[e+J[c+200>>2]>>2];O[d+16>>3]=N[g+8>>2];O[d>>3]=N[g+12>>2];ce(a,f,d);N[g+8>>2]=O[d+16>>3];N[g+12>>2]=O[d>>3];g=J[e+J[c+200>>2]>>2];O[d+16>>3]=N[g+16>>2];O[d>>3]=N[g+20>>2];ce(a,f,d);N[g+16>>2]=O[d+16>>3];N[g+20>>2]=O[d>>3];e=J[e+J[c+200>>2]>>2];O[d+16>>3]=N[e+24>>2];O[d>>3]=N[e+28>>2];ce(a,f,d);N[e+24>>2]=O[d+16>>3];N[e+28>>2]=O[d>>3];b=b+1|0;if((b|0)!=4)continue;break}break a}f=vc(24);J[f>>2]=0;J[f+4>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[d+8>>2]=0;J[d>>2]=0;J[d+4>> +2]=0;d:{e:{f:{g:{h:{o=c+120|0;b=J[o>>2];n=J[c+124>>2];if((b|0)!=(n|0)){e=n-b|0;if((e|0)<0){J[699344]=0;$(2269,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break h;B()}J[699344]=0;e=_(4,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;g=e;while(1){N[g>>2]=N[b>>2];g=g+4|0;b=b+4|0;if((n|0)!=(b|0))continue;break}}J[699344]=0;K4(a+56|0,d+16|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;h=N[d+16>>2];j=N[e>>2];i=N[d+24>>2];k=N[e+4>>2];N[f>>2]=Q(h*j)+Q(i*k);l=j;j=N[d+20>>2];m=k;k=N[d+28>>2];N[f+4>>2]=Q(l* +j)+Q(m*k);l=N[e+8>>2];m=N[e+12>>2];N[f+12>>2]=Q(j*l)+Q(k*m);N[f+8>>2]=Q(h*l)+Q(i*m);l=h;h=N[e+16>>2];m=i;i=N[e+20>>2];N[f+16>>2]=N[d+32>>2]+Q(Q(l*h)+Q(m*i));N[f+20>>2]=N[d+36>>2]+Q(Q(j*h)+Q(k*i));J[699344]=0;ca(2339,o|0,f|0,f+24|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g;c=Z()|0;break e}c=Z()|0;e=J[d>>2];if(!e)break d;J[d+4>>2]=e;break e}i=N[f+12>>2];h=Q(Q(i*N[f>>2])-Q(N[f+8>>2]*N[f+4>>2]));a=J[c+132>>2];N[a>>2]=i/h;N[a+4>>2]=Q(-N[f+4>>2])/h;N[a+8>>2]=Q(-N[f+8>>2])/h;N[a+12>>2]=N[f>>2]/h;N[a+ +16>>2]=-N[f+16>>2];N[a+20>>2]=-N[f+20>>2];uc(e);uc(f);break a}c=Z()|0;if(!e)break d}uc(e)}uc(f);ba(c|0);B()}fc=d+48|0}function hEb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[b+8>>2];a:{b:{if(d&7)break b;e=J[a+12>>2];c:{c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break d}if((bd(b,d)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>> +2])break c;d=e>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break e}if((bd(b,d&255)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;f:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break f}if((bd(b,d&255)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<= +J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=e;break g}if((bd(b,e&255)|0)==-1)break b}if(GP(b,J[a+16>>2]))break b;d=J[b+8>>2];if(d&7)break b;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;h:{if((e|0)<=0){if((bd(b,0)|0)!=-1)break h;break b}J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=0}d=J[b+8>>2];if(d&7)break b;e=J[a+20>>2];c=J[b+64>> +2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;i:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break i}if((bd(b,d)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;j:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break j}if((bd(b,d&255)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+ +64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;k:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break k}if((bd(b,d&255)|0)==-1)break b}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;l:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=e;break l}if((bd(b,e&255)|0)==-1)break b}if(Lh(b,4,J[a+24>>2],0))break b;if((Ap(b, +J[a+28>>2],J[a+24>>2]<<1)|0)!=J[a+24>>2]<<1)break b;if(Lh(b,2,J[a+32>>2],0))break b;d=J[b+8>>2];if(d&7)break b;e=J[b+64>>2];if((e|0)>=0&(e|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;m:{if((e|0)<=0){if((bd(b,K[a+36|0])|0)==-1)break b;d=K[a+36|0];break m}J[b+60>>2]=J[b+60>>2]+1;d=K[a+36|0];e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=d}if(d&255){d=0;if((Ap(b,a+37|0,67)|0)!=67)break b;break a}d=0;if((Ty(b,67)|0)!=67)break b;break a}J[b+8>>2]=d|4}d=-1}return d|0}function nX(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=fc-16|0;fc=g;J[a>>2]=2397332;J[699344]=0;da(5269,a|0,1);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;d=a+20|0;b=_(5244,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;b:{c:{if(!b|J[a+4>>2]<2)break c;c=J[693726];if(!c){J[699344]=0;b=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[699344]=0;c=aa(5250,b|0,2397856)|0;f=J[699344];J[699344]=0; +if((f|0)==1)break b;J[693726]=c}J[699344]=0;J[g+12>>2]=0;b=g+12|0;aa(5145,b|0,a|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[699344]=0;ca(5251,c|0,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[g+12>>2];J[g+12>>2]=0;if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}f=1;b=0;c=J[a+16>>2];d:{if(!c)break d;J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]= +0;if((c|0)==1)break a;c=J[a+16>>2];if(!c)break d;f=0;J[699344]=0;ca(5270,c|0,5261,a|0);d=J[699344];J[699344]=0;b=c;if((d|0)==1)break a}J[699344]=0;ca(5270,a|0,5261,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;d=J[a+116>>2];if(!(!d|f))while(1){c=0;e=J[d+8>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[d+8>>2]}e=J[c+24>>2];h=J[c+20>>2];J[699344]=0;ca(5270,b|0,h|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e; +h=J[699344];J[699344]=0;if((h|0)==1)break a;if(!e){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}d=J[d>>2];if(d)continue;break}c=J[a+72>>2];if(c){id(c+4|0);uc(c)}c=J[a+12>>2];if(c)uc(c);e:{if(f)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}id(a+108|0);id(a+88|0);b=J[a+64>>2];J[a+64>>2]=0;f:{if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344]; +J[699344]=0;if((d|0)==1)break a;if(c)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+56>>2];J[a+56>>2]=0;g:{if(!b)break g;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+20>>2]=2392932;J[a+44>>2]=2392964;b=J[a+48>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+48>>2]=0}J[a+36>>2]=2392964;b=J[a+40>>2];if(b){c=J[b+4>>2]-1|0; +J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+40>>2]=0}wc(a+28|0);b=J[a+16>>2];J[a+16>>2]=0;h:{if(!b)break h;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}a=nd(a);fc=g+16|0;return a|0}ea(0)|0;uc(b);Bc();B()}ea(0)|0;Bc();B()}function ZKa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=vc(44);f=J[J[a+16>>2]+36>>2];J[699344]=0;f=aa(3671,c|0,f|0)|0;g=J[699344]; +J[699344]=0;if((g|0)!=1){c=J[a+16>>2];J[c+40>>2]=f;a:{if((b|0)==(c|0))break a;g=K[b+11|0];f=g<<24>>24;if(H[c+11|0]>=0){if((f|0)>=0){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];break a}Gf(c,J[b>>2],J[b+4>>2]);break a}i=c;c=(f|0)<0;Lf(i,c?J[b>>2]:b,c?J[b+4>>2]:g)}g=J[a+16>>2];c=g+12|0;b:{if((c|0)==(d|0))break b;h=K[d+11|0];f=h<<24>>24;if(H[g+23|0]>=0){if((f|0)>=0){f=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=f;J[c+8>>2]=J[d+8>>2];break b}Gf(c,J[d>>2],J[d+4>>2]);break b}i=c;c=(f|0)<0;Lf(i,c? +J[d>>2]:d,c?J[d+4>>2]:h)}c=J[a+16>>2];f=K[c+35|0];if(f<<24>>24<0?J[c+28>>2]:f){BI(J[c+40>>2],c+24|0);c=J[a+16>>2]}g=J[c+36>>2];f=fc-48|0;fc=f;c=J[c+40>>2];h=J[c+16>>2];if(h){kc[J[J[h>>2]+12>>2]](h)|0;J[c+16>>2]=0}j=c,k=kc[J[J[g>>2]+52>>2]](g)|0,J[j+16>>2]=k;h=Sx();k=h,l=kc[J[J[g>>2]+24>>2]](g)|0,j=J[J[h>>2]+24>>2],kc[j](k|0,l|0);g=J[c+16>>2];kc[J[J[g>>2]+68>>2]](g,h);J[f+20>>2]=1;kc[J[J[h>>2]+20>>2]](h,f+20|0);J[J[693464]+468>>2]=J[c+16>>2];g=J[c>>2];if(g){uc(Xt(g));J[c>>2]=0}c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{g= +K[c+15|0];m:{if(g<<24>>24<0?J[c+8>>2]:g)break m;g=f+20|0;A3(g);J[699344]=0;da(3690,c|0,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break l;if(H[f+31|0]>=0)break m;uc(J[f+20>>2])}J[c+28>>2]=0;d=fC(d);e=fC(e);h=f+36|0;g=K[b+11|0];i=g<<24>>24<0;_m(h,i?J[b>>2]:b,i?J[b+4>>2]:g,0);J[699344]=0;g=_(4,48)|0;i=J[699344];J[699344]=0;if((i|0)==1)break k;J[699344]=0;h=na(3691,g|0,(H[f+47|0]<0?J[f+36>>2]:h)|0,d|0,e|0,0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break j;J[c>>2]=h;if(d)uc(Zc(d));if(e)uc(Zc(e));J[699344]= +0;d=f+20|0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=415588;e=J[699344];J[699344]=0;if((e|0)==1)break i;J[699344]=0;b=ga(3,d|0,b|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;if(!b)break h;J[699344]=0;b=J[d+12>>2];e=J[699344];J[699344]=0;if((e|0)==1)break g;J[c+24>>2]=b;J[699344]=0;$(21,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h;break g}a=Z()|0;if(H[f+31|0]>=0)break d;uc(J[f+20>>2]);ba(a|0);B()}a=Z()|0;break e}a=Z()|0;uc(g);break e}a=Z()|0;break e}n:{o:{b=J[c>>2];p:{if(!b){J[c+28>>2]= +12;b=0;break p}J[c+28>>2]=J[b+44>>2];if(!J[b+40>>2]){uc(Xt(b));b=0;J[c>>2]=0;break p}b=J[c+20>>2];J[699344]=0;Zw(b);b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[c+20>>2];e=J[c+16>>2];g=J[c>>2];J[699344]=0;h=f+8|0;ia(3692,h|0,g|0,e|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break o;J[699344]=0;ca(3693,c+32|0,J[f+8>>2],f+12|0);c=J[699344];J[699344]=0;b=1;if((c|0)==1)break n;dj(h,J[f+12>>2])}De(d);if(H[f+47|0]<0)uc(J[f+36>>2]);fc=f+48|0;break c}a=Z()|0;break f}a=Z()|0;dj(f+8|0,J[f+12>>2]);break f}a= +Z()|0}De(d)}if(H[f+47|0]>=0)break d;uc(J[f+36>>2])}ba(a|0);B()}if(b){a=J[J[a+16>>2]+40>>2];b=J[a>>2];q:{if(b){a=0;if(J[b+40>>2])break q;a=b+44|0}else a=a+28|0;a=J[a>>2]}}else a=1;return!a|0}a=Z()|0;uc(c);ba(a|0);B()}function Nj(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;j=fc-112|0;fc=j;k=i&2147483647;a:{b:{m=e&2147483647;l=2147418112;n=!(b|c);if(!(d|m?m-l>>>0<2147549184:n)){o=k-l|0;if(!h&(o|0)==-2147418112?f|g:(o|0)==-2147418112&(h|0)!=0|o>>>0>2147549184)break b}if(!(!d&(m| +0)==2147418112?n:m>>>0<2147418112)){h=d;i=e|32768;f=b;g=c;break a}if(!(!h&(k|0)==2147418112?!(f|g):k>>>0<2147418112)){i=i|32768;break a}if(!(b|d|(m^2147418112|c))){l=d;d=!(b^f|d^h|(c^g|e^i^-2147483648));h=d?0:l;i=d?2147450880:e;f=d?0:b;g=d?0:c;break a}l=f|h;if(!(l|(k^2147418112|g)))break a;if(!(b|d|(c|m))){if(g|k|l)break a;f=b&f;g=c&g;h=d&h;i=e&i;break a}if(f|h|(g|k))break b;f=b;g=c;h=d;i=e;break a}l=(k|0)==(m|0);r=l&(d|0)==(h|0)?(c|0)==(g|0)&b>>>0>>0|c>>>0>>0:l&d>>>0>>0|k>>>0>m>>>0;n=r; +m=n?f:b;o=n?g:c;l=n?i:e;s=l;n=n?h:d;q=l&65535;d=r?d:h;e=r?e:i;t=e;l=e>>>16&32767;p=s>>>16&32767;if(!p){e=!(n|q);i=e;k=e?m:n;e=e<<6;i=S(i?o:q);e=e+((i|0)==32?S(k)+32|0:i)|0;Gi(j+96|0,m,o,n,q,e-15|0);n=J[j+104>>2];q=J[j+108>>2];o=J[j+100>>2];p=16-e|0;m=J[j+96>>2]}f=r?b:f;g=r?c:g;h=d;i=t&65535;if(!l){b=!(d|i);e=b;k=b?f:d;b=b<<6;e=S(e?g:i);b=b+((e|0)==32?S(k)+32|0:e)|0;Gi(j+80|0,f,g,d,i,b-15|0);l=16-b|0;h=J[j+88>>2];i=J[j+92>>2];g=J[j+84>>2];f=J[j+80>>2]}c=i<<3|h>>>29;b=h<<3|g>>>29;c=c|524288;e=n<<3| +o>>>29;h=q<<3|n>>>29;r=s^t;i=g<<3|f>>>29;d=f<<3;c:{if((l|0)==(p|0))break c;f=p-l|0;if(f>>>0>127){b=0;c=0;i=0;d=1;break c}Gi(j- -64|0,d,i,b,c,128-f|0);hr(j+48|0,d,i,b,c,f);b=J[j+56>>2];c=J[j+60>>2];i=J[j+52>>2];d=J[j+48>>2]|(J[j+64>>2]|J[j+72>>2]|(J[j+68>>2]|J[j+76>>2]))!=0}n=d;k=i;l=e;q=h|524288;i=o<<3|m>>>29;o=m<<3;m=i;d:{if((r|0)<0){f=0;g=0;h=0;i=0;if(!(n^o|b^e|(k^m|c^q)))break a;d=o-n|0;e=m-((n>>>0>o>>>0)+k|0)|0;f=l-b|0;g=(k|0)==(m|0)&n>>>0>o>>>0|k>>>0>m>>>0;h=f-g|0;b=(q-((b>>>0>l>>>0)+c|0)|0)- +(f>>>0>>0)|0;i=b;if(b>>>0>524287)break d;c=!(b|h);g=c;i=g?d:h;c=g<<6;g=S(g?e:b);c=c+((g|0)==32?S(i)+32|0:g)|0;f=b;b=c-12|0;Gi(j+32|0,d,e,h,f,b);p=p-b|0;h=J[j+40>>2];i=J[j+44>>2];d=J[j+32>>2];e=J[j+36>>2];break d}e=k+m|0;d=n+o|0;e=d>>>0>>0?e+1|0:e;f=(k|0)==(e|0)&d>>>0>>0|e>>>0>>0;k=c+q|0;b=b+l|0;k=b>>>0>>0?k+1|0:k;h=b+f|0;i=h>>>0>>0?k+1|0:k;if(!(i&1048576))break d;d=n&1|((e&1)<<31|d>>>1);e=h<<31|e>>>1;p=p+1|0;h=(i&1)<<31|h>>>1;i=i>>>1|0}c=0;b=s&-2147483648;o=b;if((p|0)>=32767){h= +c;i=b|2147418112;f=0;g=0;break a}l=0;e:{if((p|0)>0){l=p;break e}Gi(j+16|0,d,e,h,i,p+127|0);hr(j,d,e,h,i,1-p|0);d=J[j>>2]|(J[j+16>>2]|J[j+24>>2]|(J[j+20>>2]|J[j+28>>2]))!=0;e=J[j+4>>2];h=J[j+8>>2];i=J[j+12>>2]}m=d&7;d=(e&7)<<29|d>>>3;f=(m>>>0>4)+d|0;b=h<<29|e>>>3;g=d>>>0>f>>>0?b+1|0:b;d=(b|0)==(g|0)&d>>>0>f>>>0|b>>>0>g>>>0;b=c|((i&7)<<29|h>>>3);h=d+b|0;i=o|(i>>>3&65535|l<<16);i=b>>>0>h>>>0?i+1|0:i;f:{if((m|0)==4){b=0;k=g+b|0;d=f;c=f&1;f=f+c|0;g=d>>>0>f>>>0?k+1|0:k;b=(b|0)==(g|0)&c>>>0>f>>>0|b>>>0> +g>>>0;h=b+h|0;i=b>>>0>h>>>0?i+1|0:i;break f}if(!m)break a}}J[a>>2]=f;J[a+4>>2]=g;J[a+8>>2]=h;J[a+12>>2]=i;fc=j+112|0}function J6(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,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;d=J[a+16>>2];n=K[d+6|0]<<8|K[d+7|0]&254;if(!n)return 0;w=J[a>>2];y=J[w+508>>2]+J[w+512>>2]|0;e=J[b>>2];o=e+1|0;q=c?o:e;u=n+2|0;r=d+14|0;v=n>>>1|0;g=v;a:{b:{c:{d:{e:{while(1){f:{e=g+l|0;f=(e&-2)+r|0;h=K[f|0]<<8|K[f+1|0];d=e>>>1|0;f=f+u|0;i=K[f|0]<<8|K[f+1|0];if(q>>> +0>=i>>>0){if(h>>>0>=q>>>0)break f;l=d+1|0}else g=d;if(g>>>0>l>>>0)continue;break e}break}g=0;f=f+n|0;k=f+n|0;x=K[k|0]<<8|K[k+1|0];m=(i|0)==65535&(h|0)==65535&v-1>>>0<=d>>>0&(x|0)!=0&(k+x|0)+2>>>0>y>>>0;p=m?0:x;f=K[f|0]|K[f+1|0]<<8;A=(f<<8|f>>>8)<<16>>16;j=m?1:A;g:{h:{i:{if(K[a+20|0]&2){s=d+1|0;l=(p|0)==65535?s:d;if(e>>>0<2)break i;g=d-1|0;m=g<<1;e=r+m|0;t=K[e|0]<<8|K[e+1|0];if(t>>>0>>0)break i;B=r+u|0;j:{while(1){k:{f=t;e=g;z=m+B|0;j=z+n|0;k=j+n|0;p=K[k|0]<<8|K[k+1|0];l=(p|0)==65535?l:e;if(!e)break k; +g=e-1|0;m=g<<1;t=r+m|0;t=K[t|0]<<8|K[t+1|0];if(t>>>0>=q>>>0)continue;break j}break}e=0}g=K[j|0]|K[j+1|0]<<8;j=(g<<8|g>>>8)<<16>>16;m=K[z+1|0]|K[z|0]<<8;break h}e=d;f=h;if((p|0)==65535)break c;break g}e=d;f=h;m=i}if((l|0)==(s|0)){if((d|0)!=(e|0)){j=A;p=x;m=i;f=h}g=0;if(s>>>0>=v>>>0){e=d;break c}l=d;e=d;h=(s<<1)+r|0;k=u+h|0;i=K[k|0]<<8|K[k+1|0];l:{if(q>>>0>>0)break l;m:{while(1){n:{m=i;e=s;f=h;j=(u+f|0)+n|0;k=j+n|0;p=K[k|0]<<8|K[k+1|0];l=(p|0)==65535?l:e;s=e+1|0;if((v|0)==(s|0))break n;h=(s<<1)+ +r|0;k=u+h|0;i=K[k|0]<<8|K[k+1|0];if(q>>>0>=i>>>0)continue;break m}break}e=K[j|0]|K[j+1|0]<<8;j=(e<<8|e>>>8)<<16>>16;e=v-1|0;f=K[f+1|0]|K[f|0]<<8;break l}h=K[j|0]|K[j+1|0]<<8;j=(h<<8|h>>>8)<<16>>16;f=K[f+1|0]|K[f|0]<<8}if((d|0)==(l|0))break c}if((e|0)==(l|0)){d=l;h=f;i=m;break g}d=(l<<1)+r|0;h=K[d|0]<<8|K[d+1|0];d=d+u|0;i=K[d|0]<<8|K[d+1|0];d=d+n|0;k=d+n|0;p=K[k|0]<<8|K[k+1|0];d=K[d|0]|K[d+1|0]<<8;j=(d<<8|d>>>8)<<16>>16;d=l}if(p){e=((q-i<<1)+p|0)+k|0;o:{if(!c)break o;g=0;if(e>>>0<=y>>>0)break o;f= +h;o=q;e=d;break b}e=K[e+1|0]|K[e|0]<<8;if(!e)break e;e=e+j&65535;g=e>>>0>2]?e:0;break d}e=j+q|0;g=e&65535;if(!c)break a;p:{if(M[w+16>>2]>g>>>0)break p;c=h+j|0;q:{if((e|0)>=0)break q;g=0;if((c|0)<0)break q;o=0-j|0;break p}o=(e|0)<65536?(c|0)>65535?65536-j|0:o:o;g=0}f=h;e=d;break b}g=0}e=d;f=h}if(!c)break a}c=g;if(f>>>0>>0){g=0;e=e+1|0;if((v|0)==(e|0))break a}r:{s:{h=J[a+32>>2];if(h>>>0>e>>>0){m=h-1|0;g=h<<1;while(1){d=(e<<1)+r|0;f=K[d|0]<<8|K[d+1|0];J[a+44>>2]=f;d=d+g|0;i=d+2|0;l=K[i|0]<< +8|K[d+3|0];J[a+40>>2]=l;d=g+i|0;i=K[d|0]|K[d+1|0]<<8;J[a+48>>2]=(i<<8|i>>>8)<<16>>16;i=d+g|0;d=K[i|0]<<8|K[i+1|0];t:{u:{v:{if((l|0)!=65535|e>>>0>>0|(f|0)!=65535)break v;f=0;if(!d)break u;if((d+i|0)+2>>>0<=y>>>0)break v;J[a+48>>2]=1;break u}if((d|0)==65535)break t;f=d?d+i|0:0}J[a+36>>2]=e;J[a+52>>2]=f;J[a+24>>2]=o;if(!c)break s;J[a+28>>2]=c;break r}e=e+1|0;if((h|0)!=(e|0))continue;break}}if(c)break r;return 0}I6(a);c=J[a+28>>2];if(!c)return 0;o=J[a+24>>2]}J[b>>2]=o;g=c}return g}function uc(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!a)break a;d=a-8|0;b=J[a-4>>2];a=b&-8;f=d+a|0;b:{if(b&1)break b;if(!(b&3))break a;b=J[d>>2];d=d-b|0;if(d>>>0>>0<=255){e=b>>>3|0;b=J[d+12>>2];c=J[d+8>>2];if((b|0)==(c|0)){i=2796880,j=J[699220]&zEb(-2,e),J[i>>2]=j;break b}J[c+12>>2]=b;J[b+8>>2]=c;break b}h=J[d+24>>2];b=J[d+12>>2];if((d|0)!=(b|0)){c=J[d+8>>2];J[c+12>>2]=b;J[b+8>>2]=c;break c}e=d+20|0;c=J[e>>2];if(!c){c=J[d+16>>2];if(!c)break d; +e=d+16|0}while(1){g=e;b=c;e=b+20|0;c=J[e>>2];if(c)continue;e=b+16|0;c=J[b+16>>2];if(c)continue;break}J[g>>2]=0;break c}b=J[f+4>>2];if((b&3)!=3)break b;J[699222]=a;J[f+4>>2]=b&-2;J[d+4>>2]=a|1;J[f>>2]=a;return}b=0}if(!h)break b;c=J[d+28>>2];e=(c<<2)+2797184|0;e:{if(J[e>>2]==(d|0)){J[e>>2]=b;if(b)break e;i=2796884,j=J[699221]&zEb(-2,c),J[i>>2]=j;break b}J[h+(J[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b)break b}J[b+24>>2]=h;c=J[d+16>>2];if(c){J[b+16>>2]=c;J[c+24>>2]=b}c=J[d+20>>2];if(!c)break b;J[b+20>>2]=c; +J[c+24>>2]=b}if(d>>>0>=f>>>0)break a;b=J[f+4>>2];if(!(b&1))break a;f:{g:{h:{i:{if(!(b&2)){if(J[699226]==(f|0)){J[699226]=d;a=J[699223]+a|0;J[699223]=a;J[d+4>>2]=a|1;if(J[699225]!=(d|0))break a;J[699222]=0;J[699225]=0;return}if(J[699225]==(f|0)){J[699225]=d;a=J[699222]+a|0;J[699222]=a;J[d+4>>2]=a|1;J[a+d>>2]=a;return}a=(b&-8)+a|0;if(b>>>0<=255){e=b>>>3|0;b=J[f+12>>2];c=J[f+8>>2];if((b|0)==(c|0)){i=2796880,j=J[699220]&zEb(-2,e),J[i>>2]=j;break g}J[c+12>>2]=b;J[b+8>>2]=c;break g}h=J[f+24>>2];b=J[f+12>> +2];if((f|0)!=(b|0)){c=J[f+8>>2];J[c+12>>2]=b;J[b+8>>2]=c;break h}e=f+20|0;c=J[e>>2];if(!c){c=J[f+16>>2];if(!c)break i;e=f+16|0}while(1){g=e;b=c;e=b+20|0;c=J[e>>2];if(c)continue;e=b+16|0;c=J[b+16>>2];if(c)continue;break}J[g>>2]=0;break h}J[f+4>>2]=b&-2;J[d+4>>2]=a|1;J[a+d>>2]=a;break f}b=0}if(!h)break g;c=J[f+28>>2];e=(c<<2)+2797184|0;j:{if(J[e>>2]==(f|0)){J[e>>2]=b;if(b)break j;i=2796884,j=J[699221]&zEb(-2,c),J[i>>2]=j;break g}J[h+(J[h+16>>2]==(f|0)?16:20)>>2]=b;if(!b)break g}J[b+24>>2]=h;c=J[f+16>> +2];if(c){J[b+16>>2]=c;J[c+24>>2]=b}c=J[f+20>>2];if(!c)break g;J[b+20>>2]=c;J[c+24>>2]=b}J[d+4>>2]=a|1;J[a+d>>2]=a;if(J[699225]!=(d|0))break f;J[699222]=a;return}if(a>>>0<=255){b=(a&-8)+2796920|0;c=J[699220];a=1<<(a>>>3);k:{if(!(c&a)){J[699220]=a|c;a=b;break k}a=J[b+8>>2]}J[b+8>>2]=d;J[a+12>>2]=d;J[d+12>>2]=b;J[d+8>>2]=a;return}c=31;if(a>>>0<=16777215){b=S(a>>>8|0);c=((a>>>38-b&1)-(b<<1)|0)+62|0}J[d+28>>2]=c;J[d+16>>2]=0;J[d+20>>2]=0;b=(c<<2)+2797184|0;l:{m:{e=J[699221];g=1<>2]=d;J[d+24>>2]=b;break n}c=a<<((c|0)!=31?25-(c>>>1|0)|0:0);b=J[b>>2];while(1){e=b;if((J[b+4>>2]&-8)==(a|0))break m;g=c>>>29|0;c=c<<1;g=b+(g&4)|0;b=J[g+16>>2];if(b)continue;break}J[g+16>>2]=d;J[d+24>>2]=e}J[d+12>>2]=d;J[d+8>>2]=d;break l}a=J[e+8>>2];J[a+12>>2]=d;J[e+8>>2]=d;J[d+24>>2]=0;J[d+12>>2]=e;J[d+8>>2]=a}a=J[699228]-1|0;J[699228]=a?a:-1}}function kdb(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;h=fc-16|0;fc=h;e=J[b>>2];d=J[e>>2];p=J[d>>2];J[J[p>> +2]+20>>2]=c;c=p;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+24>>2]=0;J[c+28>>2]=-1;J[c+208>>2]=0;J[c+212>>2]=-1;J[c+176>>2]=0;J[c+180>>2]=0;J[c+400>>2]=0;J[c+404>>2]=0;J[d+364>>2]=0;J[e+156>>2]=0;if(K[a+96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1172>>2]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]= +0}p=a+100|0;while(1){a:{k=h+8|0;e=J[b>>2];j=e+8|0;l=e+176|0;o=e+168|0;while(1){b:{c:{d:{e:switch(J[e+156>>2]){case 1:c=J[e+160>>2];break d;case 2:break c;case 0:break e;default:continue}d=J[e>>2];g=d+8|0;m=d+384|0;n=d+376|0;while(1){f:{g:{h:{i:switch(J[d+364>>2]){case 1:c=J[d+368>>2];break h;case 2:break g;case 0:break i;default:continue}c=Lu(J[d>>2],n,m);J[d+364>>2]=1;J[d+368>>2]=c}if(!c){c=0;break f}J[g+320>>2]=0;J[g+340>>2]=0;J[g+344>>2]=0;Bu(g,O[n>>3],O[m>>3],1);j:{while(1){c=Lu(J[d>>2],o,l); +if(c-1>>>0<=13){J[d+368>>2]=c;f=O[o>>3];if((c|0)==1){O[n>>3]=f;O[m>>3]=O[l>>3];break j}Bu(g,f,O[l>>3],c);continue}if(!c){J[d+368>>2]=0;break j}if((c&15)!=15)continue;break}Bu(g,O[o>>3],O[l>>3],c)}L3(g);J[d+364>>2]=2}c=K3(g,o,l);if(c)break f;J[d+364>>2]=1;continue}break}J[e+156>>2]=1;J[e+160>>2]=c}if(!c){c=0;break b}J[j+120>>2]=0;J[j+124>>2]=0;J[j+72>>2]=0;Cu(j,O[o>>3],O[l>>3],1);k:{while(1){d=J[e>>2];g=d+8|0;m=d+384|0;n=d+376|0;c=J[d+364>>2];l:{m:{while(1){n:{o:{p:switch(c|0){case 1:c=J[d+368>>2]; +break o;case 2:break n;case 0:break p;default:continue}c=Lu(J[d>>2],n,m);J[d+364>>2]=1;J[d+368>>2]=c}if(!c)break m;J[g+320>>2]=0;J[g+340>>2]=0;J[g+344>>2]=0;Bu(g,O[n>>3],O[m>>3],1);q:{while(1){c=Lu(J[d>>2],k,h);if(c-1>>>0<=13){J[d+368>>2]=c;f=O[k>>3];if((c|0)==1){O[n>>3]=f;O[m>>3]=O[h>>3];break q}Bu(g,f,O[h>>3],c);continue}if(!c){J[d+368>>2]=0;break q}if((c&15)!=15)continue;break}Bu(g,O[k>>3],O[h>>3],c)}L3(g);J[d+364>>2]=2}c=K3(g,k,h);if(!c){c=1;J[d+364>>2]=1;continue}break}if(c>>>0>14)break l;J[e+ +160>>2]=c;f=O[k>>3];if((c|0)==1){O[o>>3]=f;O[l>>3]=O[h>>3];break k}Cu(j,f,O[h>>3],c);continue}J[e+160>>2]=0;break k}if((c&15)!=15)continue;break}Cu(j,O[k>>3],O[h>>3],c)}T3(j);J[e+156>>2]=2}c=S3(j,k,h);if(c)break b;J[e+156>>2]=1;continue}break}if(c-1>>>0>=14){if(!c)break a;if((c&-49)!=79|J[a+1172>>2]!=2)continue;gd(p,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3;continue}e=J[b+4>>2];i=O[h+8>>3];q=O[h>>3];f=O[e+32>>3]+(i*O[e>>3]+q*O[e+16>>3]);O[h+8>>3]=f;i=O[e+40>>3]+(i*O[e+8>>3]+q*O[e+24>>3]);O[h>>3]= +i;if((c|0)==1)zM(a,f,i);else{i=i*256;i=i+(i<0?-.5:.5);r:{if(R(i)<2147483648){c=~~i;break r}c=-2147483648}f=f*256;f=f+(f<0?-.5:.5);s:{if(R(f)<2147483648){d=~~f;break s}d=-2147483648}gd(p,a,d,c);J[a+1172>>2]=2}continue}break}fc=h+16|0}function oXa(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;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;k=fc-48|0;fc=k;H[J[693464]+464|0]=1;J[k+32>>2]=13;jf(f,J[b+24>>2],k+32|0,0);m=vc(12);J[m+8>>2]=825256;J[m+4>>2]=829880; +J[m>>2]=808457;p=a+104|0;r=-+(d|0);a:{b:{c:{d:{e:{while(1){d=(q<<2)+m|0;j=J[d>>2];f:{if(g)if(Ic(g,j))break f;J[k+16>>2]=13;h=J[c+8>>2];J[699344]=0;j=ha(3368,h|0,j|0,k+16|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;g:{if(J[j>>2]!=8)break g;J[699344]=0;j=_(4,32)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;J[j>>2]=0;J[j+4>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;h=J[d>>2];J[699344]=0;aa(2974,j+4|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;h= +J[a+128>>2];i=J[J[h>>2]+508>>2];s=O[a+64>>3];t=O[a+48>>3];u=O[a+32>>3];v=O[a+80>>3];w=O[a+56>>3];x=O[a+40>>3];y=O[a+8>>3];z=O[a+72>>3];J[699344]=0;Ua(i|0,h|0,+(1-w*(y-x)+z*.5),+(s*(u-t)+r+1+v*.5));h=J[699344];J[699344]=0;if((h|0)==1)break e;h=J[f+12>>2];i=J[f+8>>2];J[699344]=0;J[k+8>>2]=i;J[k+12>>2]=h;h=_(4,112)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;d=J[d>>2];J[699344]=0;d=ja(3528,h|0,b|0,J[k+40>>2],k+8|0,d|0,0)|0;i=J[699344];J[699344]=0;h:{if((i|0)!=1){J[699344]=0;$(3529,d|0);h=J[699344]; +J[699344]=0;if((h|0)==1)break b;h=J[a+116>>2];J[699344]=0;ca(3530,d|0,h|0,0);h=J[699344];J[699344]=0;if((h|0)!=1)break h;break b}d=Z()|0;uc(h);break a}uc(UJ(d));d=J[a+100>>2];h=J[a+96>>2];J[699344]=0;n=_(27,P(d,h)<<2)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;d=J[a+120>>2];J[699344]=0;A=J[d+16>>2];d=J[699344];J[699344]=0;if((d|0)==1)break b;o=J[a+100>>2];i:{if((o|0)<=0)break i;l=0;h=0;i=J[a+96>>2];if((i|0)<=0)break i;while(1){d=0;if((i|0)>0){while(1){i=((P(i,l)<<2)+A|0)+(d<<2)|0;J[n+(h<<2)>>2]= +J[i>>2];J[i>>2]=e;h=h+1|0;d=d+1|0;i=J[a+96>>2];if((d|0)<(i|0))continue;break}o=J[a+100>>2]}l=l+1|0;if((o|0)>(l|0))continue;break}}H[j|0]=0;J[j+28>>2]=n;d=J[a+108>>2];if((d|0)!=J[a+112>>2]){J[d>>2]=j;J[a+108>>2]=d+4;break g}j:{k:{n=J[p>>2];h=d-n|0;o=h>>2;i=o+1|0;l:{if(i>>>0>=1073741824){J[699344]=0;$(3525,p|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;break c}l=h>>1;l=h>>>0>=2147483644?1073741823:i>>>0>>0?l:i;if(!l){i=0;break j}if(l>>>0<1073741824)break k;J[699344]=0;ka(209);a=J[699344];J[699344]= +0;if((a|0)!=1)break c}d=Z()|0;break a}J[699344]=0;i=_(4,l<<2)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b}h=(o<<2)+i|0;J[h>>2]=j;j=h+4|0;if((d|0)!=(n|0)){while(1){h=h-4|0;d=d-4|0;J[h>>2]=J[d>>2];if((d|0)!=(n|0))continue;break}d=J[p>>2]}J[a+112>>2]=(l<<2)+i;J[a+108>>2]=j;J[a+104>>2]=h;if(!d)break g;uc(d)}J[699344]=0;$(3370,k+16|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}d=q>>>0<2;q=q+1|0;if(d)continue;break}J[699344]=0;$(3370,k+32|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;d=Z()|0;break a}d= +Z()|0;break a}H[J[693464]+464|0]=0;uc(m);fc=k+48|0;return}B()}d=Z()|0}uc(m);ba(d|0);B()}function W1a(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;g=fc-32|0;fc=g;f=J[a+8>>2];J[g>>2]=f;e=J[a+12>>2];a:{b:{c:{d:{e:{f:{g:{h=J[a+4>>2];d=J[h+8>>2];if(J[d+64>>2]==1){i=a+8|0;c=L[a>>1];c=c>>>0>=28?28:c;xc(g+4|0,a,c);I[g+4>>1]=c;J[g+8>>2]=J[d+40>>2];if(J[d+60>>2])break g;c=0;break b}j=J[a+16>>2];m=J[J[d+40>>2]+24>>2];if(J[d+60>>2])break e;if(K[h+36|0]!=1|e>>>0<=f>>>0|M[a+20>>2]<=j>>> +0)break f;H[h+36|0]=0;i=K[h+37|0];break d}c=1;break b}c=0;break c}c=1;break c}c=2}while(1){h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:switch(c|0){case 0:if(e>>>0<=f>>>0)break k;if(M[a+20>>2]<=j>>>0)break l;s:{t:{while(1){c=f+1|0;u:{v:{w:{k=K[f|0];switch(k-14|0){case 13:break s;case 1:break v;case 0:break w;default:break q}}H[d+68|0]=1;H[d+52|0]=1;break u}H[d+52|0]=0;if(K[d+68|0])break t}f=c;if((c|0)!=(e|0))continue;break}c=e;break j}H[d+68|0]=0;J[b>>2]=18;b=J[a+4>>2];H[b+37|0]=15;J[b+256>>2]=2;H[J[a+4>>2]+36| +0]=1;break j}J[g>>2]=f;h=J[a+4>>2];c=1;continue;case 1:break r;default:break p}H[d+68|0]=0;ZC(h,g,e,2,b);f=J[g>>2];if(J[b>>2]<=0)break h;J[a+8>>2]=f;break i}J[g>>2]=c;H[d+68|0]=0;l=k<<24>>24;i=l&255;if(K[d+52|0]!=1)break n;if(c>>>0>=e>>>0)break o;f=c;c=2;continue}k=65535;l=i&65535;c=K[f|0];n=c-33|0;if(!((i+223&254)>>>0>93|(n&255)>>>0>93)){H[g+5|0]=c^128;H[g+4|0]=i^128;f=f+1|0;J[g>>2]=f;i=c|l<<8;k=Xn(m,g+4|0,2);break m}if((n&255)>>>0<94|(1<>>0<=31:0))break m;f=f+1|0;J[g>>2]=f;i=c|l<< +8;break m}H[J[a+4>>2]+37|0]=l;H[J[a+4>>2]+36|0]=1;break j}k=65535;if((l|0)>=0)k=Xn(m,f,1);f=c}if((k|0)<=65533){c=J[a+24>>2];if(c)J[c+(j-J[a+16>>2]<<1)>>2]=(((i&65535)>>>0<256?-1:-2)+f|0)-J[a+8>>2];I[j>>1]=k;j=j+2|0;break h}c=J[a+4>>2];if((i&65535)>>>0<256)f=1;else{H[c+38|0]=i;i=(i&65280)>>>8|0;f=2}H[c+36|0]=f;H[c+37|0]=i;J[b>>2]=(k|0)==65534?10:12;c=J[g>>2];break j}J[b>>2]=15}c=f}J[a+8>>2]=c}J[a+16>>2]=j;break a}c=0;continue}}while(1)if(c){ZC(h,i,e,2,b);c=0;continue}else{h=J[b>>2];if((h|0)>0)break a; +e=J[a+8>>2];d=J[a+12>>2];if(e>>>0>=d>>>0)break a;J[g+12>>2]=e;c=e;x:{while(1){if(K[c|0]==27)break x;c=c+1|0;if((d|0)!=(c|0))continue;break}c=d}J[g+16>>2]=c;y:{if((c|0)==(e|0))break y;e=J[g+8>>2];h=J[a+4>>2];d=K[h+36|0];c=d<<24>>24;if((c|0)>0){xc(e+37|0,h+37|0,d);c=K[J[a+4>>2]+36|0]}H[e+36|0]=c;LL(g+4|0,b);c=J[a+24>>2];z:{if(!c)break z;e=J[i>>2];if((e|0)==(f|0))break z;d=J[a+16>>2];h=J[g+20>>2];if(d>>>0>=h>>>0)break z;e=e-f|0;while(1){j=J[c>>2];if((j|0)>=0)J[c>>2]=e+j;c=c+4|0;d=d+2|0;if(h>>>0>d>>> +0)continue;break}}J[a+8>>2]=J[g+12>>2];J[a+16>>2]=J[g+20>>2];J[a+24>>2]=J[g+28>>2];c=J[g+8>>2];e=K[c+36|0];d=e<<24>>24;if((d|0)>0){xc(J[a+4>>2]+37|0,c+37|0,e);d=K[c+36|0]}e=J[a+4>>2];H[e+36|0]=d;h=J[b>>2];if((h|0)!=15)break y;h=K[c+65|0];d=h<<24>>24;if((d|0)<=0)h=15;else{xc(e+116|0,c+116|0,h);e=J[a+4>>2];d=K[c+65|0];h=J[b>>2]}H[e+65|0]=d;H[c+65|0]=0}if((h|0)>0)break a;e=J[a+12>>2];if((e|0)==J[a+8>>2])break a;h=J[a+4>>2];c=1;continue}}fc=g+32|0}function Zzb(a){a=a|0;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;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;f=kc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;b=J[a+580>>2];c=(f+(b<<2)|0)+(J[a+672>>2]<<2)|0;f=b;b=J[a+656>>2];g=f+b|0;b=(b|0)/J[a+584>>2]|0;d=J[a+660>>2];e=K[a+649|0];h=J[a+644>>2];b:{if(!K[a+648|0]){b=h+(b<<2)|0;if(!e)break b;if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+3|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b+1|0];H[c+3|0]=K[b|0];b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue; +break}break a}b=h+(b<<3)|0;if(e){if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+6|0];H[c+1|0]=K[b+4|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b|0];b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+6|0]|K[b+7|0]<<8;d=(d<<8|d>>>8)&65535;c:{if(!d)break c;d:{if((d|0)!=65535){e=K[c|0];e=e<<8|e;if(e)break d}H[c|0]=K[b+6|0];H[c+1|0]=K[b+4|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b|0];break c}if((e|0)==65535){e=K[b+2|0]|K[b+3|0]<<8;h=K[b+4|0]|K[b+5|0]<< +8;i=K[b|0]|K[b+1|0]<<8;f=P(d,(i<<8|i>>>8)&65535);i=K[c+3|0];j=i<<8|i;i=d^65535;f=(f+P(j,i)|0)+32768|0;H[c+3|0]=(f>>>16|0)+f>>>24;f=P((e<<8|e>>>8)&65535,d);e=K[c+2|0];e=(f+P(i,e<<8|e)|0)+32768|0;H[c+2|0]=(e>>>16|0)+e>>>24;f=P((h<<8|h>>>8)&65535,d);d=K[c+1|0];d=(f+P(i,d<<8|d)|0)+32768|0;H[c+1|0]=(d>>>16|0)+d>>>24;break c}h=K[c+1|0];i=K[c+2|0];f=K[c+3|0];k=K[b|0]|K[b+1|0]<<8;l=K[b+2|0]|K[b+3|0]<<8;j=K[b+4|0]|K[b+5|0]<<8;m=d^65535;n=P(m,e^65535)^-1;H[c|0]=n>>>24;o=f|f<<8;f=n>>>16|0;e=(P(e,m)>>>0)/(f>>> +0)|0;d=(d<<16>>>0)/(f>>>0)|0;H[c+3|0]=(P(o,e)+P(d,(k<<8|k>>>8)&65535)|0)+32767>>>24;H[c+2|0]=(P(e,i|i<<8)+P(d,(l<<8|l>>>8)&65535)|0)+32767>>>24;H[c+1|0]=(P(e,h|h<<8)+P(d,(j<<8|j>>>8)&65535)|0)+32767>>>24}b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+3|0];e:{if(!d)break e;f:{if((d|0)!=255){e=K[c|0];if(e)break f}H[c|0]=d;H[c+1|0]=K[b+2|0];H[c+2|0]=K[b+1|0];H[c+3|0]=K[b|0];break e}if((e|0)==255){e=d^255;h=(P(d,K[b+2|0])+ +P(e,K[c+1|0])|0)+128|0;H[c+1|0]=(h>>>8&255)+h>>>8;h=(P(d,K[b+1|0])+P(e,K[c+2|0])|0)+128|0;H[c+2|0]=(h>>>8&255)+h>>>8;d=(P(d,K[b|0])+P(e,K[c+3|0])|0)+128|0;H[c+3|0]=(d>>>8&255)+d>>>8;break e}h=K[b+2|0];i=K[b+1|0];f=K[b|0];k=d^255;l=P(k,e^255)>>>8^-1;H[c|0]=l;j=f;f=l&255;d=(d<<8>>>0)/(f>>>0)|0;e=(P(e,k)>>>0)/(f>>>0)|0;H[c+3|0]=(P(j,d)+P(e,K[c+3|0])|0)+127>>>8;H[c+2|0]=(P(d,i)+P(e,K[c+2|0])|0)+127>>>8;H[c+1|0]=(P(d,h)+P(e,K[c+1|0])|0)+127>>>8}b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)> +2])continue;break}}c=J[a+680>>2]+J[a+572>>2]|0;g=J[a+664>>2];b=J[a+556>>2];d=J[a+672>>2];g:{if((d|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=d}f=b;b=J[a+676>>2];if((f|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];c=c-g|0;h:{if((c|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=c}if((b|0)<=(c|0))J[a+564>>2]=c+1;return 0}function gAb(a){a=a|0;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;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;f=kc[J[a+220>>2]](a,J[a+680>>2]+(b- +c|0)|0)|0;b=J[a+580>>2];c=(f+(b<<2)|0)+(J[a+672>>2]<<2)|0;f=b;b=J[a+656>>2];h=f+b|0;b=(b|0)/J[a+584>>2]|0;d=J[a+660>>2];e=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!e)break b;if((d|0)<=(h|0))break a;while(1){H[c|0]=K[b|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+3|0];b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;h=d+h|0;if((h|0)>2])continue;break}break a}b=g+(b<<3)|0;if(e){if((d|0)<=(h|0))break a;while(1){H[c|0]=K[b|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b+4|0];H[c+3|0]=K[b+6|0]; +b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;h=d+h|0;if((h|0)>2])continue;break}break a}if((d|0)<=(h|0))break a;while(1){d=K[b+6|0]|K[b+7|0]<<8;d=(d<<8|d>>>8)&65535;c:{if(!d)break c;d:{if((d|0)!=65535){e=K[c+3|0];e=e<<8|e;if(e)break d}H[c|0]=K[b|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b+4|0];H[c+3|0]=K[b+6|0];break c}if((e|0)==65535){e=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;i=K[b+4|0]|K[b+5|0]<<8;f=P(d,(i<<8|i>>>8)&65535);i=K[c+2|0];j=i<<8|i;i=d^65535;f=(f+P(j,i)|0)+32768|0;H[c+2|0]=(f>>>16|0)+f>>>24;f= +P((g<<8|g>>>8)&65535,d);g=K[c+1|0];g=(f+P(i,g<<8|g)|0)+32768|0;H[c+1|0]=(g>>>16|0)+g>>>24;f=P((e<<8|e>>>8)&65535,d);d=K[c|0];d=(f+P(i,d<<8|d)|0)+32768|0;H[c|0]=(d>>>16|0)+d>>>24;break c}g=K[c|0];i=K[c+1|0];f=K[c+2|0];k=K[b|0]|K[b+1|0]<<8;l=K[b+2|0]|K[b+3|0]<<8;j=K[b+4|0]|K[b+5|0]<<8;m=d^65535;n=P(m,e^65535)^-1;H[c+3|0]=n>>>24;o=f|f<<8;f=n>>>16|0;e=(P(e,m)>>>0)/(f>>>0)|0;d=(d<<16>>>0)/(f>>>0)|0;H[c+2|0]=(P(o,e)+P(d,(j<<8|j>>>8)&65535)|0)+32767>>>24;H[c+1|0]=(P(e,i|i<<8)+P(d,(l<<8|l>>>8)&65535)|0)+ +32767>>>24;H[c|0]=(P(e,g|g<<8)+P(d,(k<<8|k>>>8)&65535)|0)+32767>>>24}b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;h=d+h|0;if((h|0)>2])continue;break}break a}if((d|0)<=(h|0))break a;while(1){d=K[b+3|0];e:{if(!d)break e;f:{if((d|0)!=255){e=K[c+3|0];if(e)break f}H[c|0]=K[b|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+3|0];break e}if((e|0)==255){e=d^255;g=(P(d,K[b|0])+P(e,K[c|0])|0)+128|0;H[c|0]=(g>>>8&255)+g>>>8;g=(P(d,K[b+1|0])+P(e,K[c+1|0])|0)+128|0;H[c+1|0]=(g>>>8&255)+g>>>8;d=(P(d,K[b+2|0])+ +P(e,K[c+2|0])|0)+128|0;H[c+2|0]=(d>>>8&255)+d>>>8;break e}g=K[b|0];i=K[b+1|0];f=K[b+2|0];k=d^255;l=P(k,e^255)>>>8^-1;H[c+3|0]=l;j=f;f=l&255;d=(d<<8>>>0)/(f>>>0)|0;e=(P(e,k)>>>0)/(f>>>0)|0;H[c+2|0]=(P(j,d)+P(e,K[c+2|0])|0)+127>>>8;H[c+1|0]=(P(d,i)+P(e,K[c+1|0])|0)+127>>>8;H[c|0]=(P(d,g)+P(e,K[c|0])|0)+127>>>8}b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;h=d+h|0;if((h|0)>2])continue;break}}c=J[a+680>>2]+J[a+572>>2]|0;h=J[a+664>>2];b=J[a+556>>2];d=J[a+672>>2];g:{if((d|0)>=J[a+552>>2]){if(b)break g;b= +0}J[a+552>>2]=d}f=b;b=J[a+676>>2];if((f|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];c=c-h|0;h:{if((c|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=c}if((b|0)<=(c|0))J[a+564>>2]=c+1;return 0}function $zb(a){a=a|0;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;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;f=kc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;b=J[a+580>>2];c=(f+(b<<2)|0)+(J[a+672>>2]<<2)|0;f=b;b=J[a+656>>2];g=f+b|0;b=(b|0)/J[a+584>>2]|0;d=J[a+660>>2];e=K[a+649| +0];h=J[a+644>>2];b:{if(!K[a+648|0]){b=h+(b<<2)|0;if(!e)break b;if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+2|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b|0];H[c+3|0]=K[b+3|0];b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}b=h+(b<<3)|0;if(e){if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+4|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b|0];H[c+3|0]=K[b+6|0];b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+6|0]| +K[b+7|0]<<8;d=(d<<8|d>>>8)&65535;c:{if(!d)break c;d:{if((d|0)!=65535){e=K[c+3|0];e=e<<8|e;if(e)break d}H[c|0]=K[b+4|0];H[c+1|0]=K[b+2|0];H[c+2|0]=K[b|0];H[c+3|0]=K[b+6|0];break c}if((e|0)==65535){e=K[b+2|0]|K[b+3|0]<<8;h=K[b+4|0]|K[b+5|0]<<8;i=K[b|0]|K[b+1|0]<<8;f=P(d,(i<<8|i>>>8)&65535);i=K[c+2|0];j=i<<8|i;i=d^65535;f=(f+P(j,i)|0)+32768|0;H[c+2|0]=(f>>>16|0)+f>>>24;f=P((e<<8|e>>>8)&65535,d);e=K[c+1|0];e=(f+P(i,e<<8|e)|0)+32768|0;H[c+1|0]=(e>>>16|0)+e>>>24;f=P((h<<8|h>>>8)&65535,d);d=K[c|0];d=(f+ +P(i,d<<8|d)|0)+32768|0;H[c|0]=(d>>>16|0)+d>>>24;break c}h=K[c|0];i=K[c+1|0];f=K[c+2|0];k=K[b|0]|K[b+1|0]<<8;l=K[b+2|0]|K[b+3|0]<<8;j=K[b+4|0]|K[b+5|0]<<8;m=d^65535;n=P(m,e^65535)^-1;H[c+3|0]=n>>>24;o=f|f<<8;f=n>>>16|0;e=(P(e,m)>>>0)/(f>>>0)|0;d=(d<<16>>>0)/(f>>>0)|0;H[c+2|0]=(P(o,e)+P(d,(k<<8|k>>>8)&65535)|0)+32767>>>24;H[c+1|0]=(P(e,i|i<<8)+P(d,(l<<8|l>>>8)&65535)|0)+32767>>>24;H[c|0]=(P(e,h|h<<8)+P(d,(j<<8|j>>>8)&65535)|0)+32767>>>24}b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)> +2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+3|0];e:{if(!d)break e;f:{if((d|0)!=255){e=K[c+3|0];if(e)break f}H[c|0]=K[b+2|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b|0];H[c+3|0]=K[b+3|0];break e}if((e|0)==255){e=d^255;h=(P(d,K[b+2|0])+P(e,K[c|0])|0)+128|0;H[c|0]=(h>>>8&255)+h>>>8;h=(P(d,K[b+1|0])+P(e,K[c+1|0])|0)+128|0;H[c+1|0]=(h>>>8&255)+h>>>8;d=(P(d,K[b|0])+P(e,K[c+2|0])|0)+128|0;H[c+2|0]=(d>>>8&255)+d>>>8;break e}h=K[b+2|0];i=K[b+1|0];f=K[b|0];k=d^255;l=P(k,e^255)>>>8^-1;H[c+3|0]=l; +j=f;f=l&255;d=(d<<8>>>0)/(f>>>0)|0;e=(P(e,k)>>>0)/(f>>>0)|0;H[c+2|0]=(P(j,d)+P(e,K[c+2|0])|0)+127>>>8;H[c+1|0]=(P(d,i)+P(e,K[c+1|0])|0)+127>>>8;H[c|0]=(P(d,h)+P(e,K[c|0])|0)+127>>>8}b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}}c=J[a+680>>2]+J[a+572>>2]|0;g=J[a+664>>2];b=J[a+556>>2];d=J[a+672>>2];g:{if((d|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=d}f=b;b=J[a+676>>2];if((f|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];c=c-g|0;h:{if((c|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+ +560>>2]=c}if((b|0)<=(c|0))J[a+564>>2]=c+1;return 0}function rba(){var a=0,b=0,c=0,d=0,e=0,f=0,g=Q(0),h=Q(0),i=0,j=Q(0),k=0,l=0;J[692542]=0;J[692543]=4;J[692540]=0;J[692541]=3;Ac(2770176,0,132);J[692577]=46;while(1){c=(a>>>4&1)+(a>>>6&1)|0;d=(((a>>>3&1)+(a&1)|0)+(a>>>1&1)|0)+(a>>>2&1)|0;b=9;a:{b:switch((a>>>5&1)+(a>>>7|0)|0){case 0:b=4;c:switch(c|0){case 0:b=d?(d|0)==1?2:3:1;break a;case 1:break a;default:break c}b=5;break a;case 1:break b;default:break a}b=8;if(c)break a;b=d?7:6}J[(a<<2)+2745584>> +2]=b;a=a+1|0;if((a|0)!=256)continue;break}a=0;while(1){c=(a>>>4&1)+(a>>>6&1)|0;d=(((a>>>3&1)+(a&1)|0)+(a>>>1&1)|0)+(a>>>2&1)|0;b=9;d:{e:switch((a>>>5&1)+(a>>>7|0)|0){case 1:b=8;if(c)break d;b=d?7:6;break d;case 0:break e;default:break d}b=4;f:switch(c|0){case 0:b=d?(d|0)==1?2:3:1;break d;case 1:break d;default:break f}b=5}J[(a<<2|1024)+2745584>>2]=b;a=a+1|0;if((a|0)!=256)continue;break}a=0;while(1){c=(a>>>5&1)+(a>>>7|0)|0;d=(((a>>>3&1)+(a&1)|0)+(a>>>1&1)|0)+(a>>>2&1)|0;b=9;g:{h:switch((a>>>4&1)+(a>>> +6&1)|0){case 1:b=8;if(c)break g;b=d?7:6;break g;case 0:break h;default:break g}b=4;i:switch(c|0){case 0:b=d?(d|0)==1?2:3:1;break g;case 1:break g;default:break i}b=5}J[(a<<2|2048)+2745584>>2]=b;a=a+1|0;if((a|0)!=256)continue;break}a=0;while(1){d=(a>>>5&1)+(a>>>7|0)+((a>>>4&1)+(a>>>6&1))|0;b=9;j:{k:switch((((a>>>3&1)+(a&1)|0)+(a>>>1&1)|0)+(a>>>2&1)|0){case 2:b=d?8:7;break j;case 1:b=d?(d|0)==1?5:6:4;break j;case 0:break k;default:break j}b=d?(d|0)==1?2:3:1}J[(a<<2|3072)+2745584>>2]=b;a=a+1|0;if((a| +0)!=256)continue;break}a=0;while(1){b=a<<4;c=b&272;e=b&1088;d=(c|0)==16|(e|0)==64;c=(c|0)==272|(e|0)==1088;l=(a<<2)+2749680|0;e=b&544;b=b&2176;k=(e|0)==544|(b|0)==2176;e=(e|0)==32|(b|0)==128;b=k^e;l:{if(!b){i=0;if(!(d^c))break l}i=(e^-1|k)&(b|(c|!d))}J[l>>2]=i;a=a+1|0;if((a|0)!=256)continue;break}b=0;while(1){a=0;d=b<<4;c=d&272;e=d&1088;c=((c|0)==16|(e|0)==64)-((c|0)==272|(e|0)==1088)|0;i=0-c|0;e=c;c=d&544;d=d&2176;c=((c|0)==32|(d|0)==128)-((c|0)==544|(d|0)==2176)|0;d=(c|0)<0?i:e;J[(b<<2)+2750704>> +2]=c?(d|0)==-1?15:d?17:16:d?14:13;b=b+1|0;if((b|0)!=256)continue;break}while(1){b=a<<2;d=a&8192;J[b+2751728>>2]=d?12:a&254?11:10;J[(b|4)+2751728>>2]=d?12:11;a=a+2|0;if((a|0)!=2048)continue;break}b=0;while(1){a=b<<2;J[a+2759920>>2]=12;J[a+2759924>>2]=12;J[a+2759928>>2]=12;J[a+2759932>>2]=12;b=b+4|0;if((b|0)!=2048)continue;break}a=0;while(1){b=a<<2;e=b+2768112|0;g=Q(Q(a|0)*Q(.015625));h=Q(g*g);j=Q(g+Q(-1.5));f=V(+Q(h-Q(j*j))*64+.5)*.015625*8192;m:{if(R(f)<2147483648){c=~~f;break m}c=-2147483648}J[e>> +2]=c;e=b+2768624|0;f=V(+h*64+.5)*.015625*8192;n:{if(R(f)<2147483648){c=~~f;break n}c=-2147483648}J[e>>2]=c;e=b+2769136|0;h=Q(g+Q(-1));h=Q(h*h);g=a&64?j:Q(g+Q(-.5));f=V(+Q(h-Q(g*g))*64+.5)*.015625*8192;o:{if(R(f)<2147483648){c=~~f;break o}c=-2147483648}J[e>>2]=c;e=b+2769648|0;f=V(+h*64+.5)*.015625*8192;p:{if(R(f)<2147483648){c=~~f;break p}c=-2147483648}J[e>>2]=c;a=a+1|0;if((a|0)!=128)continue;break}}function Pcb(a,b,c){a=a|0;b=b|0;c=c|0;var d=Q(0),e=0,f=0,g=0,h=0,i=0,j=Q(0),k=0,l=0,m=Q(0);e=xc(a+8| +0,b,80);f=a+88|0;Pu(f,b+80|0);N[a+244>>2]=Q(1)/N[a+52>>2];b=J[f>>2];if((b|0)==4){u5(a,0);b=J[a+88>>2]}if((b|0)==3){u5(a,1);b=J[a+88>>2]}a:{b:{c:{d:{if((b|0)!=1)break d;e:{f:{g:switch(c-5|0){case 0:c=vc(288);J[699344]=0;b=aa(2340,c|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;a=Z()|0;break a;case 1:b=vc(276);h=O[a+256>>3];d=N[a+264>>2];i=O[a+248>>3];J[b>>2]=348992;xc(b+12|0,e,80);J[699344]=0;aa(2341,b+92|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;N[b+256>>2]=d;d=Q(Q(1)/d);N[b+260>> +2]=d;N[b+264>>2]=Q(1)/N[a+56>>2];j=N[a+60>>2];N[b+248>>2]=Q(N[b+44>>2]*d)+Q(i);N[b+252>>2]=Q(N[b+48>>2]*d)+Q(h);d=N[b+52>>2];l=b,m=YS(d),N[l+8>>2]=m;l=b,m=rT(d),N[l+4>>2]=m;N[b+268>>2]=Q(1)/j;break e;case 2:b=vc(272);h=O[a+256>>3];d=N[a+264>>2];i=O[a+248>>3];J[b>>2]=349044;xc(b+12|0,e,80);J[699344]=0;aa(2341,b+92|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){N[b+256>>2]=d;d=Q(Q(1)/d);N[b+260>>2]=d;N[b+264>>2]=Q(1)/N[a+56>>2];j=N[a+60>>2];N[b+248>>2]=Q(N[b+44>>2]*d)+Q(i);N[b+252>>2]=Q(N[b+48>>2]*d)+ +Q(h);d=N[b+52>>2];l=b,m=YS(d),N[l+8>>2]=m;l=b,m=rT(d),N[l+4>>2]=m;N[b+268>>2]=Q(1)/j;break e}break c;case 3:b=vc(284);J[b+12>>2]=0;J[b+16>>2]=0;J[b>>2]=349096;J[b+20>>2]=0;J[b+24>>2]=0;xc(b+48|0,e,80);J[699344]=0;aa(2341,b+128|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[a+160>>2];J[b+12>>2]=J[a+156>>2];J[b+16>>2]=c;c=J[a+168>>2];J[b+20>>2]=J[a+164>>2];J[b+24>>2]=c;break e}break c;case 4:c=vc(248);J[c>>2]=349152;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+ +36>>2]=0;J[c+40>>2]=1065353216;J[c+52>>2]=0;J[c+56>>2]=0;J[c+96>>2]=1;J[c+88>>2]=0;J[c+92>>2]=1;J[c+80>>2]=0;J[c+84>>2]=0;J[c+72>>2]=1056964608;J[c+76>>2]=1065353216;I[c+68>>1]=0;J[c+60>>2]=1065353216;J[c+64>>2]=1065353216;g=c+100|0;b=g;J[b>>2]=0;J[b+4>>2]=0;J[c+108>>2]=0;J[c+112>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+132>>2]=0;J[c+136>>2]=0;J[c+140>>2]=0;J[c+144>>2]=0;J[c+148>>2]=0;J[c+152>>2]=0;J[699344]=0;b=_(4,24)|0;k=J[699344];J[699344]=0;if((k|0)==1){a=Z()|0;xk(g);break a}g=b+24|0;J[c+152>>2]= +g;J[c+144>>2]=b;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[c+148>>2]=g;Ac(c+160|0,0,88);xc(c+12|0,e,80);J[699344]=0;b=c+92|0;aa(2342,b|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break f;a=Z()|0;Se(b);break a;case 5:c=vc(284);J[699344]=0;b=ga(2343,c|0,e|0,1)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;a=Z()|0;break a;case 6:c=vc(284);J[699344]=0;b=ga(2343,c|0,e|0,0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;a=Z()|0;break a;default:break g}if((c|0)==100)break d; +ae(340431,16,1,J[655074]);c=vc(12);J[c>>2]=349260;J[699344]=0;b=ZP();e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;J[698644]=b-1;J[698645]=0;b=J[699344];J[699344]=0;if((b|0)==1)break b}b=c}J[a+268>>2]=b}return}a=Z()|0;c=b;break a}a=Z()|0}uc(c);ba(a|0);B()}function V1a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;m=J[a+332>>2];b=J[b+84>>2];g=P(J[b+64>>2],I[c+32>>1]);f=P(J[b+96>>2],I[c+48>>1]);i=P(J[b+32>>2],I[c+16>>1]);h= +P(f+i|0,4433)+1024|0;a=fc-128|0;j=P(J[b>>2],I[c>>1]);k=j+g<<2;i=h+P(i,6270)>>11;J[a+96>>2]=k-i;J[a>>2]=i+k;g=j-g<<2;h=h+P(f,-15137)>>11;J[a+64>>2]=g-h;J[a+32>>2]=g+h;h=P(J[b+100>>2],I[c+50>>1]);f=P(J[b+36>>2],I[c+18>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+68>>2],I[c+34>>1]);j=P(J[b+4>>2],I[c+2>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+100>>2]=k-f;J[a+4>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+68>>2]=f-g;J[a+36>>2]=g+f;h=P(J[b+104>>2],I[c+52>>1]);f=P(J[b+40>>2],I[c+20>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+72>> +2],I[c+36>>1]);j=P(J[b+8>>2],I[c+4>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+104>>2]=k-f;J[a+8>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+72>>2]=f-g;J[a+40>>2]=g+f;h=P(J[b+108>>2],I[c+54>>1]);f=P(J[b+44>>2],I[c+22>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+76>>2],I[c+38>>1]);j=P(J[b+12>>2],I[c+6>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+108>>2]=k-f;J[a+12>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+76>>2]=f-g;J[a+44>>2]=g+f;h=P(J[b+112>>2],I[c+56>>1]);f=P(J[b+48>>2],I[c+24>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+80>>2],I[c+ +40>>1]);j=P(J[b+16>>2],I[c+8>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+112>>2]=k-f;J[a+16>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+80>>2]=f-g;J[a+48>>2]=g+f;h=P(J[b+116>>2],I[c+58>>1]);f=P(J[b+52>>2],I[c+26>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+84>>2],I[c+42>>1]);j=P(J[b+20>>2],I[c+10>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+116>>2]=k-f;J[a+20>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+84>>2]=f-g;J[a+52>>2]=g+f;h=P(J[b+120>>2],I[c+60>>1]);f=P(J[b+56>>2],I[c+28>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+88>>2],I[c+44>> +1]);j=P(J[b+24>>2],I[c+12>>1]);k=i+j<<2;f=g+P(f,6270)>>11;J[a+120>>2]=k-f;J[a+24>>2]=f+k;f=j-i<<2;g=g+P(h,-15137)>>11;J[a+88>>2]=f-g;J[a+56>>2]=g+f;h=P(J[b+124>>2],I[c+62>>1]);f=P(J[b+60>>2],I[c+30>>1]);g=P(h+f|0,4433)+1024|0;i=P(J[b+92>>2],I[c+46>>1]);b=P(J[b+28>>2],I[c+14>>1]);c=i+b<<2;f=g+P(f,6270)>>11;J[a+124>>2]=c-f;J[a+28>>2]=c+f;b=b-i<<2;c=g+P(h,-15137)>>11;J[a+92>>2]=b-c;J[a+60>>2]=b+c;g=m+128|0;c=a;b=0;while(1){h=J[c+4>>2];m=J[c+28>>2];f=P(h+m|0,-7373);i=J[c+20>>2];l=i+h|0;j=J[c+12>>2];n= +j+m|0;k=P(l+n|0,9633);a=J[(b<<2)+d>>2]+e|0;o=J[c>>2]+16|0;p=J[c+16>>2];r=o+p<<13;s=J[c+24>>2];q=J[c+8>>2];t=P(s+q|0,4433);q=t+P(q,6270)|0;u=r+q|0;v=f+P(h,12299)|0;h=k+P(l,-3196)|0;l=v+h|0;H[a|0]=K[(u+l>>>18&1023)+g|0];H[a+7|0]=K[(u-l>>>18&1023)+g|0];k=k+P(n,-16069)|0;l=P(j,25172);j=P(i+j|0,-20995);l=k+(l+j|0)|0;n=o-p<<13;o=P(s,-15137)+t|0;p=n+o|0;H[a+1|0]=K[(l+p>>>18&1023)+g|0];H[a+6|0]=K[(p-l>>>18&1023)+g|0];h=h+(j+P(i,16819)|0)|0;i=n-o|0;H[a+2|0]=K[(h+i>>>18&1023)+g|0];H[a+5|0]=K[(i-h>>>18&1023)+ +g|0];h=k+(f+P(m,2446)|0)|0;m=r-q|0;H[a+3|0]=K[(h+m>>>18&1023)+g|0];H[a+4|0]=K[(m-h>>>18&1023)+g|0];c=c+32|0;b=b+1|0;if((b|0)!=4)continue;break}}function pA(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,y=0;if(J[698530]<0)fV();if((e|0)<(f|0)){y=c-1|0;while(1){w=P(d,e);x=e<<1;if((c|0)>0){u=0;v=P(e,3);t=0-v|0;n=a;while(1){o=(b<<1)+n|0;i=e<<1;g=i+n|0;a:{if((b|0)<=(e|0)){l=0;p=0;i=0;j=0;break a}l=I[n>>1];p=l;i=g+i|0;if(i>>> +0>>0)p=I[i>>1];i=l;h=(v<<1)+g|0;if(h>>>0>>0)i=I[h>>1];j=I[g>>1]-((l+p|0)+1>>1)|0;I[g>>1]=j;g=(x<<1)+g|0}k=0;h=0;s=v<<1;m=s+g|0;if(o>>>0>m>>>0)while(1){q=p;r=l;l=I[m>>1];m=I[g>>1]-((P(i+p|0,9)-(r+l|0)|0)+8>>4)|0;I[g>>1]=m;p=(t<<1)+g|0;I[p>>1]=L[p>>1]+((P(h+j|0,9)-(k+m|0)|0)+16>>>5|0);p=i;i=l;k=h;h=j;j=m;l=q;g=(x<<1)+g|0;m=s+g|0;if(o>>>0>m>>>0)continue;break}b:{if(g>>>0>=o>>>0){i=h;l=j;break b}s=i+1|0;l=I[g>>1]-(s+p>>1)|0;I[g>>1]=l;m=t<<1;q=m+g|0;I[q>>1]=L[q>>1]+((P(h+j|0,9)-(k+l|0)|0)+16>>>5| +0);p=x<<1;g=p+g|0;if(o>>>0<=g>>>0){k=h;i=j;break b}q=i+s>>1;i=j;while(1){k=i;i=l;l=I[g>>1]-q|0;I[g>>1]=l;j=g+m|0;I[j>>1]=L[j>>1]+((P(i+k|0,9)-(h+l|0)|0)+16>>>5|0);h=k;g=g+p|0;if(o>>>0>g>>>0)continue;break}}j=t<<1;h=j+g|0;c:{if(h>>>0>=o>>>0)break c;if(h>>>0>=n>>>0)I[h>>1]=L[h>>1]+((P(i+l|0,9)-k|0)+16>>>5|0);h=x<<1;g=h+g|0;k=g+j|0;if(k>>>0>=o>>>0)break c;if(k>>>0>=n>>>0)I[k>>1]=L[k>>1]+((P(l,9)-i|0)+16>>>5|0);i=j+(g+h|0)|0;if(i>>>0>=o>>>0|i>>>0>>0)break c;I[i>>1]=L[i>>1]+(16-l>>>5|0)}n=(w<<1)+n| +0;u=e+u|0;if((u|0)<(c|0))continue;break}}r=(y|0)/(e|0)|0;if((r|0)>=-2){u=P(w,3);v=0-u|0;m=0-w|0;g=1;o=w<<1;n=o+a|0;p=o<<1;while(1){l=b<<1;q=l+n|0;i=g;j=g>>>0<3;d:{e:{if(!(j|(r|0)<(g+3|0))){g=n;if((b|0)<=0)break d;while(1){I[g>>1]=L[g>>1]-((P(I[g+o>>1]+I[(m<<1)+g>>1]|0,9)-(I[(v<<1)+g>>1]+I[(u<<1)+g>>1]|0)|0)+8>>>4|0);g=(e<<1)+g|0;if(q>>>0>g>>>0)continue;break}break e}if((b|0)<=0|(i|0)>(r|0))break e;k=(((i|0)<(r|0)?w:m)<<1)+n|0;g=n;while(1){I[g>>1]=L[g>>1]-((I[(m<<1)+g>>1]+I[k>>1]|0)+1>>>1|0);h=e<< +1;k=h+k|0;g=g+h|0;if(q>>>0>g>>>0)continue;break}}s=v<<1;g=s+n|0;t=l+g|0;h=i>>>0<6;if(!(h|(i|0)>(r|0))){if((b|0)<=0)break d;while(1){I[g>>1]=L[g>>1]+((P(I[g+o>>1]+I[(m<<1)+g>>1]|0,9)-(I[g+s>>1]+I[(u<<1)+g>>1]|0)|0)+16>>>5|0);g=(e<<1)+g|0;if(t>>>0>g>>>0)continue;break}break d}if(j)break d;k=(r|0)>=(i-2|0)?g+o|0:0;j=(i|0)<=(r|0)?n:0;if(!h){if((b|0)<=0)break d;while(1){h=I[(m<<1)+g>>1];q=I[g+s>>1];I[g>>1]=L[g>>1]+((P(h+(k?I[k>>1]:0)|0,9)-(q+(j?I[j>>1]:0)|0)|0)+16>>>5|0);h=e<<1;j=j?h+j|0:0;k=k?h+k|0:0; +g=g+h|0;if(t>>>0>g>>>0)continue;break}break d}if(i>>>0<=3){if((b|0)<=0)break d;while(1){I[g>>1]=L[g>>1]+((P(k?I[k>>1]:0,9)-(j?I[j>>1]:0)|0)+16>>>5|0);h=e<<1;j=j?h+j|0:0;k=k?h+k|0:0;g=g+h|0;if(t>>>0>g>>>0)continue;break}break d}if((b|0)<=0)break d;while(1){h=I[(m<<1)+g>>1];I[g>>1]=L[g>>1]+((P(h+(k?I[k>>1]:0)|0,9)-(j?I[j>>1]:0)|0)+16>>>5|0);h=e<<1;j=j?h+j|0:0;k=k?h+k|0:0;g=g+h|0;if(t>>>0>g>>>0)continue;break}}g=i+2|0;n=n+p|0;if((r|0)>=(i-1|0))continue;break}}e=x;if((f|0)>(e|0))continue;break}}}function X1(a, +b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=fc-112|0;fc=h;a:{if(!c)break a;g=J[b+4>>2];if((g|0)!=1|J[c+4>>2]!=18)break a;f=a;d=J[c+8>>2];b:{c:{d:{if(!b|!d|(g|0)==18)break d;i=14854;e:{if((d|0)!=14854){e=d;while(1){j=K[e|0];if((j|0)!=K[i|0])break e;i=i+1|0;e=e+1|0;if(j)continue;break}}if(!f){if((g|0)==1){e=kc[J[663195]](24)|0;if(!e){tx(14891);break d}J[e>>2]=0;J[e+4>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=18;d=kc[J[663198]](37)|0;f:{if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029, +0);break f}H[d+36|0]=0;f=K[14886]|K[14887]<<8|(K[14888]<<16|K[14889]<<24);H[d+32|0]=f;H[d+33|0]=f>>>8;H[d+34|0]=f>>>16;H[d+35|0]=f>>>24;f=K[14882]|K[14883]<<8|(K[14884]<<16|K[14885]<<24);g=K[14878]|K[14879]<<8|(K[14880]<<16|K[14881]<<24);H[d+24|0]=g;H[d+25|0]=g>>>8;H[d+26|0]=g>>>16;H[d+27|0]=g>>>24;H[d+28|0]=f;H[d+29|0]=f>>>8;H[d+30|0]=f>>>16;H[d+31|0]=f>>>24;f=K[14874]|K[14875]<<8|(K[14876]<<16|K[14877]<<24);g=K[14870]|K[14871]<<8|(K[14872]<<16|K[14873]<<24);H[d+16|0]=g;H[d+17|0]=g>>>8;H[d+18|0]= +g>>>16;H[d+19|0]=g>>>24;H[d+20|0]=f;H[d+21|0]=f>>>8;H[d+22|0]=f>>>16;H[d+23|0]=f>>>24;f=K[14866]|K[14867]<<8|(K[14868]<<16|K[14869]<<24);g=K[14862]|K[14863]<<8|(K[14864]<<16|K[14865]<<24);H[d+8|0]=g;H[d+9|0]=g>>>8;H[d+10|0]=g>>>16;H[d+11|0]=g>>>24;H[d+12|0]=f;H[d+13|0]=f>>>8;H[d+14|0]=f>>>16;H[d+15|0]=f>>>24;f=K[14858]|K[14859]<<8|(K[14860]<<16|K[14861]<<24);g=K[14854]|K[14855]<<8|(K[14856]<<16|K[14857]<<24);H[d|0]=g;H[d+1|0]=g>>>8;H[d+2|0]=g>>>16;H[d+3|0]=g>>>24;H[d+4|0]=f;H[d+5|0]=f>>>8;H[d+6|0]= +f>>>16;H[d+7|0]=f>>>24}J[e+8>>2]=d;d=kc[J[663198]](4)|0;g:{if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break g}H[d+3|0]=0;H[d+2|0]=K[9686];f=K[9684]|K[9685]<<8;H[d|0]=f;H[d+1|0]=f>>>8}J[e+12>>2]=d;J[e>>2]=J[b+48>>2];J[b+48>>2]=e;break b}g=0;f=J[b+32>>2];if(!f)break c}g=J[f+52>>2];if(g)break c;e=Z1(f);break b}j=(g|0)!=2;f=b;while(1){g=0;h:{i:switch(J[f+4>>2]-1|0){case 0:break i;case 4:case 5:case 16:break c;default:break h}g=J[f+48>>2];if(g)while(1){i=J[g+8>>2];j:{if(!i)break j;e=d;if((d|0)!=(i|0))while(1){k= +K[i|0];if((k|0)!=K[e|0])break j;e=e+1|0;i=i+1|0;if(k)continue;break}e=J[g+12>>2];if(!(e|j))break j;if((U1(b,f,e)|0)==1)break c}g=J[g>>2];if(g)continue;break}if((b|0)==(f|0))break h;g=J[f+36>>2];if(!g)break h;i=J[g+8>>2];if(!i)break h;e=d;if((d|0)!=(i|0))while(1){k=K[i|0];if((k|0)!=K[e|0])break h;e=e+1|0;i=i+1|0;if(k)continue;break}e=J[g+12>>2];if(!(e|j))break h;if((U1(b,f,e)|0)==1)break c}f=J[f+20>>2];if(f)continue;break}}g=0}e=g}if(e)break a;e=J[c+12>>2];k:{if(!e){J[h+48>>2]=1634100580;J[h+52>>2]= +7629941;break k}J[h+32>>2]=e;Wi(h+48|0,50,4481,h+32|0)}if(Il(a,b,h+48|0)){e=1;while(1){if((e|0)==1001){e=0;break a}d=J[c+12>>2];l:{if(!d){J[h>>2]=e;Wi(h+48|0,50,17405,h);break l}J[h+20>>2]=e;J[h+16>>2]=d;Wi(h+48|0,50,17415,h+16|0)}e=e+1|0;if(Il(a,b,h+48|0))continue;break}}e=Gl(b,J[c+8>>2],h+48|0)}fc=h+112|0;return e}function O0(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{e:{if(!(!b|!c)){f=vc(40);e=J[b+32>>2];g=J[b+28>>2];h=J[b+24>>2];k=O[b+16>>3];l=O[b+8>>3];b=J[b>>2];J[699344]=0; +j=Kb(3414,f|0,b|0,+l,+k,h|0,g|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[a+16>>2];e=J[a+20>>2];f:{if(b>>>0>>0){J[b>>2]=j;J[a+16>>2]=b+4;break f}i=a+12|0;g=J[i>>2];h=b-g>>2;f=h+1|0;if(f>>>0>=1073741824)break d;m=h<<2;e=e-g|0;h=e>>1;h=e>>>0>=2147483644?1073741823:f>>>0>>0?h:f;if(h){if(h>>>0>=1073741824)break c;f=vc(h<<2)}else f=0;e=m+f|0;J[e>>2]=j;j=e+4|0;if((b|0)!=(g|0)){while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(g|0))continue;break}b=J[i>>2]}J[a+20>>2]=f+(h<<2);J[a+16>> +2]=j;J[a+12>>2]=e;if(!b)break f;uc(b)}b=J[a+4>>2];e=J[a+8>>2];g:{if(b>>>0>>0){J[b>>2]=0;J[b+4>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;g=b+48|0;J[a+4>>2]=g;break g}h=J[a>>2];g=(b-h|0)/48|0;f=g+1|0;if(f>>>0>=89478486)break b;e=(e-h|0)/48|0;j=e<<1;j=e>>>0>=44739242?89478485:f>>>0>>0?j:f;if(j){if(j>>>0>=89478486)break c;f=vc(P(j,48))}else f=0;e=f+P(g,48)|0;J[e>>2]=0;J[e+4>>2]=0;J[e+40>>2]=0;J[e+44>>2]= +0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;g=e+48|0;if((b|0)!=(h|0)){while(1){b=b-48|0;i=J[b+4>>2];e=e-48|0;J[e>>2]=J[b>>2];J[e+4>>2]=i;i=J[b+44>>2];J[e+40>>2]=J[b+40>>2];J[e+44>>2]=i;i=J[b+36>>2];J[e+32>>2]=J[b+32>>2];J[e+36>>2]=i;i=J[b+28>>2];J[e+24>>2]=J[b+24>>2];J[e+28>>2]=i;i=J[b+20>>2];J[e+16>>2]=J[b+16>>2];J[e+20>>2]=i;i=J[b+12>>2];J[e+8>>2]=J[b+8>>2];J[e+12>>2]=i;if((b|0)!=(h|0))continue;break}b=J[a>>2]}J[a+8>>2]=f+P(j,48);J[a+ +4>>2]=g;J[a>>2]=e;if(!b)break g;uc(b);g=J[a+4>>2]}b=g-48|0;O[b>>3]=O[c>>3];O[b+8>>3]=O[c+8>>3];O[b+16>>3]=O[c+16>>3];O[b+24>>3]=O[c+24>>3];O[b+32>>3]=O[c+32>>3];O[b+40>>3]=O[c+40>>3];b=J[a+28>>2];e=J[a+32>>2];if((b|0)==e<<5){f=a+24|0;if((b+1|0)<0)break a;c=fc-32|0;fc=c;h:{i:{j:{if(b>>>0<=1073741822){e=e<<6;b=(b&-32)+32|0;b=b>>>0>>0?e:b}else b=2147483647;k:{if(b>>>0<=J[f+8>>2]<<5>>>0)break k;if((b|0)<0)break i;J[c+28>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[699344]=0;b=(b-1>>>5|0)+1|0;e=_(4,b<<2)|0;g= +J[699344];J[699344]=0;if((g|0)==1)break j;J[c+28>>2]=b;J[c+24>>2]=0;J[c+20>>2]=e;b=J[f>>2];J[c+16>>2]=0;J[c+12>>2]=b;e=J[f+4>>2];J[699344]=0;J[c+8>>2]=e&31;J[c+4>>2]=b+(e>>>3&536870908);ca(3415,c+20|0,c+12|0,c+4|0);b=J[699344];J[699344]=0;if((b|0)==1)break j;b=J[f>>2];J[f>>2]=J[c+20>>2];J[c+20>>2]=b;e=J[f+4>>2];J[f+4>>2]=J[c+24>>2];J[c+24>>2]=e;e=J[f+8>>2];J[f+8>>2]=J[c+28>>2];J[c+28>>2]=e;if(!b)break k;uc(b)}fc=c+32|0;break h}a=Z()|0;b=J[c+20>>2];if(b)uc(b);ba(a|0);B()}Yw(f);B()}b=J[a+28>>2]}J[a+ +28>>2]=b+1;c=1<>2]+(b>>>3&536870908)|0;if(d)b=c|J[a>>2];else b=J[a>>2]&(c^-1);J[a>>2]=b}return}a=Z()|0;uc(f);ba(a|0);B()}Yw(i);B()}Pd();B()}Yw(a);B()}Yw(f);B()}function N2a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;D=fc-512|0;fc=D;w=J[a+332>>2];b=J[b+84>>2];a=D;while(1){l=P(J[b+64>>2],I[c+32>>1]);k=P(J[b+192>>2],I[c+96>>1]);h=l-k|0;o=P(h,11363);i=P(J[b+96>>2],I[c+48>>1]);m=P(J[b+ +32>>2],I[c+16>>1]);p=P(i+m|0,11086);y=o+P(k,20995)|0;j=P(J[b+128>>2],I[c+64>>1]);z=P(j,10703);n=P(I[c>>1],J[b>>2])<<13|1024;t=z+n|0;u=y+t|0;f=P(J[b+224>>2],I[c+112>>1]);A=P(f+m|0,8956);g=P(J[b+160>>2],I[c+80>>1]);r=g+m|0;v=P(r,10217);s=A+(v+(p+P(m,-18730)|0)|0)|0;J[a+480>>2]=u-s>>11;J[a>>2]=s+u>>11;h=P(h,2260);u=h+P(l,7373)|0;j=P(j,4433);s=j+n|0;q=u+s|0;B=P(g+i|0,1136);x=B+(p+P(i,589)|0)|0;p=f+i|0;C=P(p,-5461);x=x+C|0;J[a+448>>2]=q-x>>11;J[a+32>>2]=q+x>>11;l=o+P(l,-4926)|0;o=n-j|0;j=l+o|0;q=v+(P(g, +-9222)+B|0)|0;v=P(f+g|0,-11086);q=q+v|0;J[a+416>>2]=j-q>>11;J[a+64>>2]=j+q>>11;k=h+P(k,-4176)|0;n=n-z|0;h=k+n|0;j=v+(A+(C+P(f,8728)|0)|0)|0;J[a+384>>2]=h-j>>11;J[a+96>>2]=h+j>>11;n=n-k|0;k=P(p,-10217);p=P(m-f|0,7350);h=(k+P(f,25733)|0)+p|0;f=P(f-g|0,3363);h=h+f|0;J[a+352>>2]=n-h>>11;J[a+128>>2]=h+n>>11;n=o-l|0;l=P(r,5461);h=P(g,-6278);g=P(g-i|0,11529);f=f+(l+(h+g|0)|0)|0;J[a+320>>2]=n-f>>11;J[a+160>>2]=f+n>>11;f=s-u|0;h=P(i,16154);i=P(m-i|0,3363);g=k+(g+(h+i|0)|0)|0;J[a+288>>2]=f-g>>11;J[a+192>>2]= +f+g>>11;g=t-y|0;i=p+(l+(i+P(m,-15038)|0)|0)|0;J[a+256>>2]=g-i>>11;J[a+224>>2]=g+i>>11;a=a+4|0;b=b+4|0;c=c+2|0;E=E+1|0;if((E|0)!=8)continue;break}a=w+128|0;b=D;n=0;while(1){i=J[b+12>>2];m=J[b+4>>2];k=P(i+m|0,11086);o=J[b+8>>2];p=J[b+24>>2];h=o-p|0;w=P(h,11363);c=J[(n<<2)+d>>2]+e|0;f=J[b+28>>2];z=P(f+m|0,8956);g=J[b+20>>2];y=g+m|0;j=P(y,10217);t=z+(j+(k+P(m,-18730)|0)|0)|0;u=w+P(p,20995)|0;l=(J[b>>2]<<13)+131072|0;r=J[b+16>>2];v=P(r,10703);A=l+v|0;s=u+A|0;H[c|0]=K[a+(t+s>>>18&1023)|0];H[c+15|0]=K[a+ +(s-t>>>18&1023)|0];t=f+i|0;s=P(t,-5461);q=k+P(i,589)|0;k=P(g+i|0,1136);q=s+(q+k|0)|0;h=P(h,2260);B=h+P(o,7373)|0;r=P(r,4433);C=r+l|0;x=B+C|0;H[c+1|0]=K[a+(q+x>>>18&1023)|0];H[c+14|0]=K[a+(x-q>>>18&1023)|0];j=j+(k+P(g,-9222)|0)|0;k=P(f+g|0,-11086);j=j+k|0;o=w+P(o,-4926)|0;w=l-r|0;r=o+w|0;H[c+2|0]=K[a+(j+r>>>18&1023)|0];H[c+13|0]=K[a+(r-j>>>18&1023)|0];k=k+(z+(s+P(f,8728)|0)|0)|0;p=h+P(p,-4176)|0;l=l-v|0;h=p+l|0;H[c+3|0]=K[a+(k+h>>>18&1023)|0];H[c+12|0]=K[a+(h-k>>>18&1023)|0];h=P(m-f|0,7350);k=P(t, +-10217);j=h+(k+P(f,25733)|0)|0;f=P(f-g|0,3363);j=j+f|0;l=l-p|0;H[c+4|0]=K[a+(j+l>>>18&1023)|0];H[c+11|0]=K[a+(l-j>>>18&1023)|0];l=P(y,5461);j=P(g,-6278);g=P(g-i|0,11529);f=f+(l+(j+g|0)|0)|0;o=w-o|0;H[c+5|0]=K[a+(f+o>>>18&1023)|0];H[c+10|0]=K[a+(o-f>>>18&1023)|0];f=P(i,16154);i=P(m-i|0,3363);g=k+(g+(f+i|0)|0)|0;f=C-B|0;H[c+6|0]=K[a+(g+f>>>18&1023)|0];H[c+9|0]=K[a+(f-g>>>18&1023)|0];i=h+(l+(i+P(m,-15038)|0)|0)|0;m=A-u|0;H[c+7|0]=K[a+(i+m>>>18&1023)|0];H[c+8|0]=K[a+(m-i>>>18&1023)|0];b=b+32|0;n=n+1| +0;if((n|0)!=16)continue;break}fc=D+512|0}function RI(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,C=0;e=vc(16);J[699344]=0;x=_(3352,e|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)a:{e=vc(16);J[699344]=0;i=_(3352,e|0)|0;f=J[699344];J[699344]=0;b:{c:{d:{if((f|0)!=1){e=vc(16);J[699344]=0;k=_(3352,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;e=J[a+8>>2];if((e|0)>0)break d;break c}break a}f=0;while(1){g=J[a>>2];c=J[g+(f<<2)>>2];j=1;A= +1;f=f+1|0;e:{f:{if((f|0)>=(e|0))break f;e=J[g+(f<<2)>>2];if(!e)break f;g:{h:{i:{j:{k:{o=K[c+88|0];switch(o-1|0){case 2:break h;case 1:break i;case 0:break j;default:break k}}g=c+24|0;m=e+24|0;d=O[e+16>>3]-O[c+32>>3];break g}g=c+32|0;m=e+32|0;d=O[e+24>>3]-O[c+40>>3];break g}g=e+40|0;m=c+40|0;d=O[c+16>>3]-O[e+32>>3];break g}g=e+16|0;m=c+16|0;d=O[c+24>>3]-O[e+40>>3]}if((o|0)!=K[e+88|0]|J[e+4>>2]>((J[c+4>>2]+J[c+8>>2]|0)+1|0))break f;A=0;l=O[c+56>>3];if(d>3]-O[g>>3])>l*.5)break f;j=0;if(K[c+ +92|0])break f;if(!(d>l*.15))break e}e=vc(112);m=H[c+89|0];o=K[c+88|0];g=J[c>>2];J[699344]=0;n=xl(g);g=J[699344];J[699344]=0;if((g|0)==1)break a;g=1;l:{if(n)break l;n=J[c>>2];J[699344]=0;n=Ut(n);C=J[699344];J[699344]=0;if((C|0)==1)break a;if(n)break l;c=J[c>>2];J[699344]=0;c=Lk(c);g=J[699344];J[699344]=0;if((g|0)==1)break a;g=c?-1:0}J[699344]=0;b=za(3662,e|0,a|0,b|0,f-b|0,o|0,m|0,g|0,j^1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;sd(k,b);d=O[b>>3];m:{if(!J[k+8>>2]){p=O[b+24>>3];q=O[b+8>>3];r=d; +s=O[b+16>>3];break m}r=d>r?r:d;d=O[b+24>>3];p=d>3];q=d>3];s=d>s?s:d}if(!j){b=f;break e}e=vc(72);d=O[J[J[k>>2]>>2]+56>>3];J[699344]=0;b=fb(3663,e|0,k|0,+r,+s,+q,+p,+d)|0;c=J[699344];J[699344]=0;n:{if((c|0)!=1){sd(i,b);e=vc(16);J[699344]=0;k=_(3352,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(A)break n;b=f;break e}break a}b=vc(40);J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=i;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;e=J[i+ +8>>2];o:{if((e|0)<=0)break o;i=J[i>>2];c=J[i>>2];d=O[c+8>>3];O[b+8>>3]=d;l=O[c+24>>3];O[b+24>>3]=l;y=O[c+16>>3];O[b+16>>3]=y;z=O[c+32>>3];O[b+32>>3]=z;j=1;if((e|0)==1)break o;while(1){c=J[i+(j<<2)>>2];h=O[c+8>>3];if(h>3]=h;d=h}h=O[c+24>>3];if(h>3]=h;l=h}h=O[c+16>>3];if(h>y){O[b+16>>3]=h;y=h}h=O[c+32>>3];if(h>z){O[b+32>>3]=h;z=h}j=j+1|0;if((e|0)!=(j|0))continue;break}}sd(x,b);d=O[b+8>>3];p:{if(!J[x+8>>2]){t=O[b+32>>3];u=O[b+16>>3];v=d;w=O[b+24>>3];break p}v=d>v?v:d;d=O[b+32>>3]; +t=d>3];u=d>3];w=d>w?w:d}e=vc(16);J[699344]=0;i=_(3352,e|0)|0;c=J[699344];J[699344]=0;b=f;if((c|0)==1)break a}e=J[a+8>>2];if((f|0)<(e|0))continue;break}if(!k)break b}uc(ld(k))}if(i)uc(ld(i));a=vc(56);O[a+24>>3]=w;O[a+8>>3]=v;J[a>>2]=x;J[a+40>>2]=0;J[a+44>>2]=0;O[a+32>>3]=t;O[a+16>>3]=u;J[a+48>>2]=0;J[a+52>>2]=0;return a}a=Z()|0;uc(e);ba(a|0);B()}function J6a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+408>>2];f=J[a+464>>2];a:{if(J[a+224>>2]){c=J[a+412>>2];b:{c:{d:{if(!b){if(!c)break d; +break c}if((c|0)<(b|0)|(c|0)>J[a+432>>2]|J[a+336>>2]!=1)break c}c=J[a+416>>2];e:{if(!c){e=J[a+420>>2];break e}e=c-1|0;if((e|0)!=J[a+420>>2])break c}if((e|0)<14)break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=17;J[J[a>>2]+28>>2]=J[a+412>>2];J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];kc[J[J[a>>2]>>2]](a)}if(J[a+336>>2]<=0)b=0;else{while(1){e=J[J[((d<<2)+a|0)+340>>2]+4>>2];g=J[a+160>>2]+(e<<8)|0;c=J[a+408>>2];b=0;f:{if(!c)break f;b=c;if(J[g>>2]>=0)break f;b=J[a>>2];J[b+24>>2]=e;J[b+20>>2]=118; +J[J[a>>2]+28>>2]=0;kc[J[J[a>>2]+4>>2]](a,-1);b=J[a+408>>2]}if((b|0)<=J[a+412>>2])while(1){c=g+(b<<2)|0;h=J[c>>2];if(J[a+416>>2]!=(((h|0)>0?h:0)|0)){h=J[a>>2];J[h+24>>2]=e;J[h+20>>2]=118;J[J[a>>2]+28>>2]=b;kc[J[J[a>>2]+4>>2]](a,-1)}J[c>>2]=J[a+420>>2];c=J[a+412>>2]>(b|0);b=b+1|0;if(c)continue;break}d=d+1|0;b=J[a+336>>2];if((d|0)<(b|0))continue;break}b=(b|0)>0}c=J[a+408>>2];J[f+4>>2]=J[a+416>>2]?c?390:391:c?392:393;if(b){b=0;while(1){d=b<<2;c=J[(d+a|0)+340>>2];g:{if(!J[a+408>>2]){if(J[a+416>>2])break g; +c=J[c+20>>2];kD(a,1,c,((c<<2)+f|0)+44|0);break g}e=J[c+24>>2];c=(e<<2)+f|0;kD(a,0,e,c+44|0);J[f+60>>2]=J[c+44>>2]}J[(d+f|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}}J[f+16>>2]=0;break a}h:{if(!(J[a+420>>2]|(J[a+416>>2]|b))){b=J[a+412>>2];if(!J[a+220>>2]&(b|0)>63|(b|0)==J[a+432>>2])break h}b=J[a>>2];J[b+20>>2]=125;kc[J[b+4>>2]](a,-1)}J[f+4>>2]=J[a+432>>2]==63?394:395;b=0;if(J[a+336>>2]>0)while(1){c=b<<2;d=J[(c+a|0)+340>>2];e=J[d+20>>2];kD(a,1,e,((e<<2)+f|0)- -64|0);if(J[a+432>>2]){d=J[d+ +24>>2];kD(a,0,d,((d<<2)+f|0)+80|0)}J[(c+f|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}e=0;if(J[a+364>>2]<=0)break a;while(1){b=e<<2;g=b+f|0;b=J[((J[(a+b|0)+368>>2]<<2)+a|0)+340>>2];J[g+96>>2]=J[((J[b+20>>2]<<2)+f|0)- -64>>2];J[g+136>>2]=J[((J[b+24>>2]<<2)+f|0)+80>>2];i:{if(!J[b+52>>2]){b=0;break i}c=J[b+36>>2];d=J[b+40>>2];b=1;j:{k:switch(J[a+432>>2]){case 3:b=(((d-3>>>0<4294967294?1:d-1|0)<<3)+((c-3>>>0<4294967294?1:c-1|0)<<2)|0)+55072|0;break j;case 8:b=(P(d-4>>>0<4294967293?2:d-1|0, +12)+((c-4>>>0<4294967293?2:c-1|0)<<2)|0)+55088|0;break j;case 15:b=(((d-5>>>0<4294967292?3:d-1|0)<<4)+((c-5>>>0<4294967292?3:c-1|0)<<2)|0)+55136|0;break j;case 24:b=(P(d-6>>>0<4294967291?4:d-1|0,20)+((c-6>>>0<4294967291?4:c-1|0)<<2)|0)+55200|0;break j;case 35:b=(P(d-7>>>0<4294967290?5:d-1|0,24)+((c-7>>>0<4294967290?5:c-1|0)<<2)|0)+55312|0;break j;case 48:b=(P(d-8>>>0<4294967289?6:d-1|0,28)+((c-8>>>0<4294967289?6:c-1|0)<<2)|0)+55456|0;break j;case 0:break i;default:break k}b=(((d-9>>>0<4294967288? +7:d-1|0)<<5)+((c-9>>>0<4294967288?7:c-1|0)<<2)|0)+55664|0}b=J[b>>2]+1|0}J[g+176>>2]=b;e=e+1|0;if((e|0)>2])continue;break}}J[f+36>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+40>>2]=J[a+280>>2]}function Pnb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;d=fc-16|0;fc=d;a:{b:{if(v7(a,b,c)){VD(b);g=fc-16|0;fc=g;e=b+132|0;c:{if(!(a?e:0)){J[g+8>>2]=40;break c}i=J[a+28>>2];f=F7(a);J[g+8>>2]=f;if(f)break c;J[e+24>>2]=0;J[e+28>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+ +16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+28>>2]=i;f=qN(i,8276,g+8|0);if(!J[g+8>>2]){J[f>>2]=a;J[f+4>>2]=e;h=J[e+28>>2];j=f+8264|0;J[f+8272>>2]=j;J[f+8>>2]=h;J[f+8268>>2]=j;J[f+8264>>2]=0;d:{h=F7(a);e:{if(h)break e;h=J[a+8>>2];J[f+48>>2]=1658;J[f+44>>2]=1659;J[f+68>>2]=h;h=J[a+28>>2];J[f+16>>2]=0;J[f+52>>2]=h;J[f+12>>2]=f+4168;h=3;if(rL(f+12|0,-15,239673))break e;if(J[f+12>>2])break d}J[g+8>>2]=h;if(f)kc[J[i+8>>2]](i,f);break c}J[g+8>>2]=0;J[e+12>>2]=f}j=J[a+8>>2];f:{g:{if(!yd(a,J[a+4>>2]- +4|0)){h=oj(a,g+12|0);k=J[g+12>>2];yd(a,j);j=k?0:h;if(j-1>>>0<=40958){k=he(i,j,g+8|0);if(!J[g+8>>2]){if((lN(f,0,k,j)|0)==(j|0))break f;lN(f,0,0,0);if(k)kc[J[i+8>>2]](i,k)}J[g+8>>2]=0;break g}if(j)break g}h=2147483647}J[e+8>>2]=0;J[e+4>>2]=h;J[e+24>>2]=1660;J[e+20>>2]=1661;J[e>>2]=0;break c}Jl(f+12|0);J[f+52>>2]=0;J[f+44>>2]=0;J[f+48>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+16>>2]=0;if(f)kc[J[i+8>>2]](i,f);J[e+4>>2]=j;J[e+8>>2]=0;J[e+12>>2]=0;J[e+24>>2]=1660; +J[e+20>>2]=0;J[e>>2]=k}fc=g+16|0;f=J[g+8>>2];if((f&255)==7)break b;if(f){g=fc-16|0;fc=g;i=40;h:{if(!e|!a)break h;h=J[a+28>>2];i=yd(a,0);if(i)break h;i=zg(a,g+12|0,2);if(i)break h;i=3;if(K[g+12|0]!=31|K[g+13|0]!=157)break h;J[g+8>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e+28>>2]=h;f=he(h,4292,g+8|0);i=J[g+8>>2];if(!i){J[f>>2]=a;J[f+4>>2]=e;j=J[e+28>>2];k=f+4280|0;J[f+4288>>2]=k;J[f+8>>2]=j;J[f+4284>>2]=k;J[f+ +4280>>2]=0;i:{j=yd(a,0);j:{if(j)break j;j=zg(a,g+14|0,2);if(j)break j;j=3;if(K[g+14|0]!=31)break j;if(K[g+15|0]==157)break i}J[g+8>>2]=j;if(f)kc[J[h+8>>2]](h,f);i=J[g+8>>2];break h}Ac(f+12|0,0,172);J[f+176>>2]=a;h=J[a+28>>2];J[f+108>>2]=64;J[f+100>>2]=f+112;J[f+180>>2]=h;J[f+36>>2]=0;J[f+40>>2]=0;H[f+44|0]=0;J[f- -64>>2]=9;J[e+12>>2]=f}J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=2147483647;J[e+24>>2]=1662;J[e+20>>2]=1663}fc=g+16|0;if(i)break b}J[b+104>>2]=e;J[b+172>>2]=a;if(v7(e,b,c))break b}a=0;if((c|0)<0)break a; +if(c&65535){VD(b);a=6;break a}k:{l:{m:{n:{a=J[b+180>>2];o:{if(!a)break o;c=J[b+176>>2];if(!c|(K[a|0]|32)!=105|((K[a+1|0]|32)!=115|(K[a+2|0]|32)!=111))break o;a=a+3|0;if(!Ic(a,240372))break n;if(!Ic(a,240535))if(!Ic(c,240668))break n;if(!Ic(a,240813))break m}J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;break k}J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;break l}a=Ic(c,240916);J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;if(a)break k}J[d+8>>2]=1970170211;J[d+12>>2]=65539}a=bl(260256,0,d+4|0,0);break a}VD(b);a=2}fc=d+16|0; +return a|0}function EO(a){var b=0,c=0,d=0,e=0,f=0;c=J[a+512>>2];a:{b:{c:{d:{e:{if(!K[a+288|0]){J[a+992>>2]=0;J[a+984>>2]=0;J[a+988>>2]=0;J[a+976>>2]=0;J[a+968>>2]=0;J[a+1012>>2]=0;J[a+536>>2]=0;d=a+498|0;if(K[a+498|0])break c;if(!c)break e;b=Ck(a,c,J[a+316>>2],J[a+320>>2],K[a+324|0],K[a+325|0],K[a+326|0],K[a+327|0],K[a+328|0],1);break d}if(K[a+498|0])break b;f:{g:switch(K[a+2253|0]){case 1:case 4:b=J[J[a+2248>>2]+88>>2];d=K[a+324|0];H[b+54|0]=d;H[b+53|0]=d;break f;case 2:case 5:H[J[J[a+2248>>2]+88>> +2]+54|0]=K[a+324|0];break f;case 3:case 6:H[J[J[a+2248>>2]+88>>2]+53|0]=K[a+324|0];break f;case 0:break g;default:break f}b=Ck(a,J[a+2248>>2],J[a+316>>2],J[a+320>>2],K[a+324|0],K[a+325|0],K[a+326|0],K[a+327|0],K[a+328|0],1);if(b)break a}b=K[a+325|0];e=K[a+324|0];d=J[J[a+2248>>2]+88>>2];if((e|0)==K[d+44|0])f=(b|0)==K[d+45|0];d=a+498|0;H[a+2272|0]=f;b=Ck(a,J[a+528>>2],J[a+316>>2],J[a+320>>2],e,b,K[a+326|0],K[a+327|0],K[a+328|0],1);break d}b=Ck(a,J[a+528>>2],J[a+316>>2],J[a+320>>2],K[a+324|0],K[a+325| +0],K[a+326|0],K[a+327|0],K[a+328|0],1)}if(b)break a;if(K[a+288|0])break b}c=c?c:J[a+528>>2];J[a+536>>2]=c;if(!K[c+31|0]&J[a+12>>2]!=1|(K[c+64|0]|K[c+65|0]))break b;GO(a);if(K[a+497|0]){H[d|0]=2;break b}H[a+498|0]=0;if(J[a+676>>2]<=J[a+672>>2]|J[a+684>>2]<=J[a+680>>2])break b;Fy(a)}b=0;if(K[a+497|0])break a;h:{i:switch(K[a+325|0]){case 0:j:switch(K[a+324|0]-1|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1220;break h}J[a+1012>>2]=1221;break h;case 1:if(!K[a+328|0]){J[a+1012>>2]=1222;break h}J[a+1012>>2]= +1223;break h;case 3:if(!K[a+328|0]){J[a+1012>>2]=1224;break h}J[a+1012>>2]=1225;break h;case 7:if(!K[a+328|0]){J[a+1012>>2]=1226;break h}J[a+1012>>2]=1227;break h;case 15:break j;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1228;break h}J[a+1012>>2]=1229;break h;case 2:k:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1230;break h}J[a+1012>>2]=1231;break h;case 8:break k;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1232;break h}J[a+1012>>2]=1233;break h;case 3:l:switch(K[a+324|0]-1|0){case 0:if(!K[a+ +328|0]){J[a+1012>>2]=1234;break h}J[a+1012>>2]=1235;break h;case 1:if(!K[a+328|0]){J[a+1012>>2]=1236;break h}J[a+1012>>2]=1237;break h;case 3:if(!K[a+328|0]){J[a+1012>>2]=1238;break h}J[a+1012>>2]=1239;break h;case 7:break l;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1240;break h}J[a+1012>>2]=1241;break h;case 4:m:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1242;break h}J[a+1012>>2]=1243;break h;case 8:break m;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1244;break h}J[a+1012>>2]= +1245;break h;case 6:break i;default:break h}n:switch(K[a+324|0]-8|0){case 0:if(!K[a+328|0]){J[a+1012>>2]=1246;break h}J[a+1012>>2]=1247;break h;case 8:break n;default:break h}if(!K[a+328|0]){J[a+1012>>2]=1248;break h}J[a+1012>>2]=1249}J[a+620>>2]=0;J[a+624>>2]=0;J[a+612>>2]=0;J[a+616>>2]=1;J[a+628>>2]=0;J[a+632>>2]=0}return b}function z0(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=fc-1312|0;fc=g;if(c>>>0>=4){e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=52;kc[J[J[a>>2]>>2]](a)}h=J[((b?120:136)+a|0)+(c<<2)>>2]; +if(!h){e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=52;kc[J[J[a>>2]>>2]](a)}i=J[d>>2];if(!i){i=kc[J[J[a+4>>2]>>2]](a,1,1280)|0;J[d>>2]=i}c=K[h+1|0];a:{if(!c){c=0;break a}Ac(g+1040|0,1,c)}e=K[h+2|0];d=e+c|0;if(d>>>0>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}b:{if(!e){d=c;break b}Ac((g+1040|0)+c|0,2,e)}e=K[h+3|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}c:{if(!e){c=d;break c}Ac((g+1040|0)+d|0,3,e)}e=K[h+4|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}d:{if(!e){d=c;break d}Ac((g+ +1040|0)+c|0,4,e)}e=K[h+5|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}e:{if(!e){c=d;break e}Ac((g+1040|0)+d|0,5,e)}e=K[h+6|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}f:{if(!e){d=c;break f}Ac((g+1040|0)+c|0,6,e)}e=K[h+7|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}g:{if(!e){c=d;break g}Ac((g+1040|0)+d|0,7,e)}e=K[h+8|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}h:{if(!e){d=c;break h}Ac((g+1040|0)+c|0,8,e)}e=K[h+9|0];c=e+d| +0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}i:{if(!e){c=d;break i}Ac((g+1040|0)+d|0,9,e)}e=K[h+10|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}j:{if(!e){d=c;break j}Ac((g+1040|0)+c|0,10,e)}e=K[h+11|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}k:{if(!e){c=d;break k}Ac((g+1040|0)+d|0,11,e)}e=K[h+12|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}l:{if(!e){d=c;break l}Ac((g+1040|0)+c|0,12,e)}e=K[h+13|0];c=e+d|0;if((c|0)>=257){f=J[a>>2]; +J[f+20>>2]=9;kc[J[f>>2]](a)}m:{if(!e){c=d;break m}Ac((g+1040|0)+d|0,13,e)}e=K[h+14|0];d=e+c|0;if((d|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}n:{if(!e){d=c;break n}Ac((g+1040|0)+c|0,14,e)}e=K[h+15|0];c=e+d|0;if((c|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}o:{if(!e){c=d;break o}Ac((g+1040|0)+d|0,15,e)}d=K[h+16|0];e=d+c|0;if((e|0)>=257){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}p:{if(!d){e=c;break p}Ac((g+1040|0)+c|0,16,d)}c=0;H[(g+1040|0)+e|0]=0;j=K[g+1040|0];if(j){f=j<<24>>24;d=0;while(1){if(j<< +24>>24==(f|0))while(1){J[(d<<2)+g>>2]=c;c=c+1|0;d=d+1|0;j=H[d+(g+1040|0)|0];if((j|0)==(f|0))continue;break}if(1<>2];J[k+20>>2]=9;kc[J[k>>2]](a)}f=f+1|0;c=c<<1;if(j&255)continue;break}}c=0;Ac(i+1024|0,0,256);q:{if((e|0)<=0)break q;if(!b)while(1){b=K[(c+h|0)+17|0];d=(b+i|0)+1024|0;if(K[d|0]){f=J[a>>2];J[f+20>>2]=9;kc[J[f>>2]](a)}J[(b<<2)+i>>2]=J[(c<<2)+g>>2];H[d|0]=K[(g+1040|0)+c|0];c=c+1|0;if((e|0)!=(c|0))continue;break q}while(1){b=K[(c+h|0)+17|0];if(!(b>>>0<=15&!K[(b+i|0)+1024|0])){d= +J[a>>2];J[d+20>>2]=9;kc[J[d>>2]](a)}J[(b<<2)+i>>2]=J[(c<<2)+g>>2];H[(b+i|0)+1024|0]=K[(g+1040|0)+c|0];c=c+1|0;if((e|0)!=(c|0))continue;break}}fc=g+1312|0}function C_(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;h=fc-32|0;fc=h;J[h+16>>2]=13;J[h>>2]=13;a:{b:{c:{if((d|0)>=51){Cc(1,-1,801531,0);break c}d:{e:{f:{if(J[a>>2]!=9)break f;i=J[b+4>>2];g=J[i+8>>2];if((g|0)<=0)break f;e=J[a+8>>2];j=J[a+12>>2];k=J[i>>2];while(1){i=J[k+(l<<2)>>2];if((e|0)==J[i>>2]&(j|0)==J[i+4>>2])break e;l=l+1| +0;if((g|0)!=(l|0))continue;break}}e=a;a=h+16|0;jf(e,c,a,0);if(J[h+16>>2]==6)break d;yc(a);break c}f=vc(16);J[699344]=0;a=_(4,12)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[i+8>>2];J[699344]=0;b=aa(3638,a|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[f+12>>2]=0;J[f+4>>2]=i;J[f>>2]=b;break c}break a}a=J[h+24>>2];g:{if(J[a+12>>2]>0){a=J[Sc(a,0,h,0)>>2];f=vc(16);h:{i:{if((a|0)==3){J[699344]=0;e=J[h+8>>2];a=_(4,12)|0;j=J[699344];J[699344]=0;if((j|0)!=1){J[699344]=0;e=aa(3354,a|0,e|0)|0;j=J[699344]; +J[699344]=0;if((j|0)!=1)break i;break b}break a}J[699344]=0;a=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)!=1){l=0;J[699344]=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[f+4>>2]=0;J[f>>2]=a;a=f+8|0;break h}break a}J[f>>2]=e;l=1;a=f+4|0}J[a>>2]=0;J[f+12>>2]=0;yc(h);break g}f=vc(16);J[699344]=0;a=_(4,12)|0;e=J[699344];J[699344]=0;j:{if((e|0)!=1){J[699344]=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;e=J[699344];J[699344]=0;if((e|0)!=1)break j;break b}break a}l=0;J[f+12>>2]= +0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=a}a=J[h+24>>2];if(J[a+12>>2]>(l|0)){p=d+1|0;while(1){tg(a,l,h);d=C_(h,b,c,p);k:{if(!d)break k;l:{m:{n:{if(J[d+4>>2]){a=J[f+12>>2];break n}a=J[f+12>>2];if(J[d>>2])break n;if(!a)break m;e=J[a+8>>2];if((e|0)<=0)break l;j=J[d+12>>2];o:{if(!j)break o;m=J[j+8>>2];if((m|0)<=0)break o;e=J[(J[a>>2]+(e<<2)|0)-4>>2];i=0;J[d+12>>2]=0;g=J[j>>2];a=0;if(m>>>0>=4){o=m&-4;k=0;while(1){n=a<<2;J[J[n+g>>2]+8>>2]=0;J[J[g+(n|4)>>2]+8>>2]=0;J[J[g+(n|8)>>2]+8>>2]=0;J[J[g+(n|12)>>2]+8>>2]= +0;a=a+4|0;k=k+4|0;if((o|0)!=(k|0))continue;break}}k=m&3;if(k)while(1){J[J[g+(a<<2)>>2]+8>>2]=0;a=a+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}i=0;k=0;p:{q:{a=J[e+12>>2];if(!a){g=vc(16);J[699344]=0;a=_(3352,g|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break q;J[e+12>>2]=a}ZJ(a,j);m=J[j+8>>2];r:{if((m|0)<=0)break r;g=J[j>>2];a=0;if(m>>>0>=4){o=m&-4;while(1){n=a<<2;J[J[n+g>>2]+8>>2]=e;J[J[g+(n|4)>>2]+8>>2]=e;J[J[g+(n|8)>>2]+8>>2]=e;J[J[g+(n|12)>>2]+8>>2]=e;a=a+4|0;k=k+4|0;if((o|0)!=(k|0))continue;break}}k= +m&3;if(!k)break r;while(1){J[J[g+(a<<2)>>2]+8>>2]=e;a=a+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}}uc(ld(j));break p}a=Z()|0;uc(g);ba(a|0);B()}}uc(dJ(d));break k}if(a)break l}e=vc(16);J[699344]=0;a=_(3352,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1){J[f+12>>2]=a;break l}a=Z()|0;uc(e);ba(a|0);B()}sd(a,d);J[d+8>>2]=f}yc(h);l=l+1|0;a=J[h+24>>2];if((l|0)>2])continue;break}}yc(h+16|0)}fc=h+32|0;return f}b=Z()|0;uc(a);uc(f);ba(b|0);B()}a=Z()|0;uc(f);ba(a|0);B()}function u3(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;o=fc-16|0;fc=o;J[o+12>>2]=0;c=J[693200];a:{if(!c){k=o+12|0;c=NL(k);c=((c?L[1386502]:0)&65535)<<1;b=0;b:{if(c>>>0<14)break b;b=1;if(c>>>0<32)break b;b=2;if(c>>>0<62)break b;b=3;if(c>>>0<128)break b;b=4;if(c>>>0<252)break b;b=5;if(c>>>0<510)break b;b=6;if(c>>>0<1022)break b;b=7;if(c>>>0<2040)break b;b=8;if(c>>>0<4094)break b;b=9;if(c>>>0<8192)break b;b=10;if(c>>>0<16382)break b;b=11;if(c>>>0<32750)break b;b=12;if(c>>>0<65522)break b;b=13}r=2772800, +s=m3(b,k),J[r>>2]=s;yu(14,3042);if(J[o+12>>2]>0)break a;c=J[693200]}H[a+16|0]=1;g=fc-32|0;fc=g;k=J[a+12>>2]+4|0;J[g+28>>2]=k;J[g+16>>2]=k;J[g+12>>2]=a;J[g+24>>2]=a;k=g+20|0;b=c;i=fc-32|0;fc=i;c:{d:{e=o+12|0;e:{if(J[e>>2]>0)break e;n=J[g+12>>2];if(!n){J[i+8>>2]=J[g+16>>2];c=0;e=fc-32|0;fc=e;a=J[b+4>>2];J[e+20>>2]=J[i+8>>2];a=kc[a|0](e+20|0)|0;J[e+24>>2]=J[i+8>>2];m=J[b>>2];n=a&2147483647;h=J[b+28>>2];a=(n^67108864)%(h|0)|0;f=a;d=-1;f:{g:{while(1){p=P(f,12);j=p+m|0;l=J[j>>2];h:{if((l|0)==(n|0)){h=J[b+ +8>>2];J[e+16>>2]=J[e+24>>2];J[e+12>>2]=J[(m+p|0)+8>>2];if(kc[h|0](e+16|0,e+12|0)|0)break f;h=J[b+28>>2];break h}if((l|0)>=0)break h;d=(d|0)<0?f:d;if((l|0)==-2147483647)break g}if(!c)c=((n|0)%(h-1|0)|0)+1|0;f=(c+f|0)%(h|0)|0;if((a|0)!=(f|0))continue;break}if((d|0)>=0)break g;j=0;d=a;if((l|0)!=-2147483647)break f}j=m+P(d,12)|0}J[k>>2]=0;i:{if(J[j>>2]<0)break i;J[b+24>>2]=J[b+24>>2]-1;a=J[j+4>>2];d=J[b+16>>2];j:{if(!d)break j;c=J[j+8>>2];if(!c)break j;kc[d|0](c)}d=J[b+20>>2];k:{if(!d){c=a;break k}c= +0;if(!a)break k;kc[d|0](a)}J[j+8>>2]=0;J[j>>2]=-2147483648;J[j+4>>2]=0;J[k>>2]=c;if(J[b+24>>2]>=J[b+36>>2])break i;J[e+24>>2]=0;j3(b,e+24|0)}fc=e+32|0;break c}if(J[b+24>>2]>J[b+32>>2]){j3(b,e);if(J[e>>2]>0)break e}a=J[b+4>>2];J[i+20>>2]=J[g+16>>2];a=kc[a|0](i+20|0)|0;J[i+24>>2]=J[g+16>>2];j=J[b>>2];m=a&2147483647;d=J[b+28>>2];a=(m^67108864)%(d|0)|0;q=a;c=-1;l:{m:{while(1){h=P(q,12);f=j+h|0;l=J[f>>2];n:{if((l|0)==(m|0)){d=J[b+8>>2];J[i+16>>2]=J[i+24>>2];J[i+12>>2]=J[(j+h|0)+8>>2];if(kc[d|0](i+16|0, +i+12|0)|0)break l;d=J[b+28>>2];break n}if((l|0)>=0)break n;c=(c|0)<0?q:c;if((l|0)==-2147483647)break m}if(!p)p=((m|0)%(d-1|0)|0)+1|0;q=(p+q|0)%(d|0)|0;if((a|0)!=(q|0))continue;break}if((c|0)>=0)break m;f=0;c=a;if((l|0)!=-2147483647)break l}f=j+P(c,12)|0}if(J[f>>2]>=0)break d;c=J[b+24>>2];a=c+1|0;J[b+24>>2]=a;if((a|0)!=J[b+28>>2])break d;J[b+24>>2]=c;J[e>>2]=7}c=J[b+16>>2];o:{if(!c)break o;a=J[g+16>>2];if(!a)break o;kc[c|0](a)}c=J[b+20>>2];p:{if(!c)break p;a=J[g+12>>2];if(!a)break p;kc[c|0](a)}J[k>> +2]=0;break c}d=J[g+16>>2];h=J[f+4>>2];J[k>>2]=h;a=J[b+16>>2];q:{if(!a)break q;c=J[f+8>>2];if(!c|(c|0)==(d|0))break q;kc[a|0](c)}a=J[b+20>>2];if(a){if(!(!h|(h|0)==(n|0)))kc[a|0](h);J[k>>2]=0}J[f+4>>2]=n;J[f+8>>2]=d;J[f>>2]=m}fc=i+32|0;fc=g+32|0}fc=o+16|0}function jqa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=fc-48|0;fc=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;g=J[d>>2];J[f+44>>2]=g;J[f+40>>2]=c;a:{b:{c:{d:{e:{f:{if((e|0)>0){J[699344]=0;b=f+12|0;da(2833,b|0,e|0);e=J[699344]; +J[699344]=0;g:{h:{i:{j:{k:{if((e|0)!=1){J[699344]=0;b=ga(3712,b|0,0,20944)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;J[f+32>>2]=J[b+8>>2];e=J[b+4>>2];J[f+24>>2]=J[b>>2];J[f+28>>2]=e;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[f+23|0]<0)uc(J[f+12>>2]);J[699344]=0;b=aa(6372,20461,(H[f+35|0]<0?J[f+24>>2]:f+24|0)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;if((b|0)==-1)break h;J[699344]=0;ca(3702,a|0,J[f+44>>2],0);e=J[699344];J[699344]=0;if((e|0)==1)break c;J[f+12>>2]=H[a+11|0]<0?J[a>>2]:a;J[699344]= +0;g=J[f+44>>2];J[f+8>>2]=g<<2;e=na(6373,b|0,f+40|0,f+44|0,f+12|0,f+8|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break c;if(e)break i;h=J[f+8>>2];if(!h)break i;g=g-(h>>>2|0)|0;i=K[a+11|0];if(g>>>0<=(i<<24>>24<0?J[a+4>>2]:i)>>>0)break j;J[699344]=0;$(2970,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;break a}g=Z()|0;break b}g=Z()|0;if(H[f+23|0]>=0)break b;uc(J[f+12>>2]);break b}J[699344]=0;ca(2971,a|0,g|0,1);g=J[699344];J[699344]=0;if((g|0)==1)break c}J[699344]=0;gT(b);b=J[699344];J[699344]=0;if((b| +0)==1)break c;if(H[f+35|0]<0)uc(J[f+24>>2]);if(e)break g;break f}if(H[f+35|0]>=0)break g;uc(J[f+24>>2])}g=J[d>>2]}if(g>>>0>=2147483632){J[699344]=0;$(3030,f+24|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break d}l:{if(g>>>0<=10){H[f+35|0]=g;e=f+24|0;break l}J[699344]=0;b=(g|15)+1|0;e=_(4,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[f+24>>2]=e;J[f+28>>2]=g;J[f+32>>2]=b|-2147483648}j=xc(e,c,g)+g|0,k=0,H[j|0]=k;c=H[f+35|0];b=(c|0)<0;d=b?J[f+28>>2]:c&255;if(d>>>0>=1073741808){J[699344]=0;$(2959, +f+12|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break e}c=J[f+24>>2];m:{n:{if(d>>>0>=2){e=d|3;if(e>>>0>=1073741823){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break e}J[699344]=0;e=e+1|0;g=_(4,e<<2)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;J[f+12>>2]=g;J[f+16>>2]=d;J[f+20>>2]=e|-2147483648;break n}H[f+23|0]=d;g=f+12|0;if(!d)break m}b=b?c:f+24|0;h=d-1|0;i=d&7;o:{if(!i){c=b;break o}e=0;c=b;while(1){J[g>>2]=H[c|0];g=g+4|0;c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}if(h>>> +0<7)break m;b=b+d|0;while(1){J[g>>2]=H[c|0];J[g+4>>2]=H[c+1|0];J[g+8>>2]=H[c+2|0];J[g+12>>2]=H[c+3|0];J[g+16>>2]=H[c+4|0];J[g+20>>2]=H[c+5|0];J[g+24>>2]=H[c+6|0];J[g+28>>2]=H[c+7|0];g=g+32|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}J[g>>2]=0;if(H[a+11|0]<0)uc(J[a>>2]);b=J[f+16>>2];J[a>>2]=J[f+12>>2];J[a+4>>2]=b;J[a+8>>2]=J[f+20>>2];if(H[f+35|0]>=0)break f;uc(J[f+24>>2])}fc=f+48|0;return}g=Z()|0;if(H[f+35|0]>=0)break b;uc(J[f+24>>2]);break b}g=Z()|0;break b}g=Z()|0;if(H[f+35|0]>=0)break b;uc(J[f+24>> +2])}if(H[a+11|0]<0)uc(J[a>>2]);ba(g|0);B()}B()}function A5a(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;e=fc-48|0;fc=e;i=J[a+464>>2];a:{b:{if(J[i+40>>2]|!J[a+280>>2])break b;d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+(J[i+12>>2]/8|0);J[i+12>>2]=0;f=0;if(!(kc[J[d+8>>2]](a)|0))break a;if(J[a+336>>2]>0){d=0;while(1){J[((d<<2)+i|0)+20>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}J[i+16>>2]=0;J[i+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[i+36>>2]=0}if(!J[i+36>>2]){o=J[a+ +432>>2];p=J[a+428>>2];J[e+44>>2]=a;h=J[a+24>>2];c=J[h>>2];J[e+28>>2]=c;f=J[h+4>>2];J[e+32>>2]=f;d=J[i+12>>2];g=J[i+8>>2];J[e+24>>2]=J[i+32>>2];j=J[i+28>>2];J[e+16>>2]=J[i+24>>2];J[e+20>>2]=j;j=J[i+20>>2];J[e+8>>2]=J[i+16>>2];J[e+12>>2]=j;if(J[a+364>>2]>0){while(1){h=n<<2;m=J[h+b>>2];l=i+h|0;c=J[l+96>>2];c:{d:{e:{if((d|0)>7)break e;j=e+28|0;f=0;if(!Qg(j,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break e;c=Ni(j,g,d,c,1);break d}f=g>>d-8&255;j=J[(c+(f<<2)|0)+144>>2];if(j){c=K[(c+f|0)+1168|0]; +d=d-j|0;break c}c=Ni(e+28|0,g,d,c,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}j=J[l+136>>2];l=J[l+176>>2];f:{g:{if(l){if(c){if((c|0)>(d|0)){f=0;if(!Qg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;c=c<<2;f=J[c+55920>>2];k=g>>d&f;c=k-((k|0)<=J[c+55916>>2]?f:0)|0}else c=0;h=(J[(a+h|0)+368>>2]<<2)+e|0;c=c+J[h+12>>2]|0;J[h+12>>2]=c;I[m>>1]=c;h=1;if((l|0)<2)break g;while(1){h:{i:{j:{if((d|0)>7)break j;c=e+28|0;f=0;if(!Qg(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break j;c= +Ni(c,g,d,j,1);break i}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break h}c=Ni(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}k=c>>>4|0;c=c&15;k:{if(c){if((c|0)>(d|0)){f=0;if(!Qg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}h=h+k|0;d=d-c|0;c=c<<2;f=J[c+55920>>2];k=g>>d&f;I[(J[(h<<2)+p>>2]<<1)+m>>1]=k-((k|0)<=J[c+55916>>2]?f:0);break k}if((k|0)!=15)break f;h=h+15|0}h=h+1|0;if((l|0)>(h|0))continue;break}break g}h=1;if(!c)break g;if((c|0)>(d|0)){f=0;if(!Qg(e+ +28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0}if((h|0)>(o|0))break f;while(1){l:{m:{n:{if((d|0)>7)break n;c=e+28|0;f=0;if(!Qg(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break n;c=Ni(c,g,d,j,1);break m}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break l}c=Ni(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}m=c>>>4|0;c=c&15;o:{if(c){if((c|0)>(d|0)){f=0;if(!Qg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;break o}if((m|0)!=15)break f}h= +(h+m|0)+1|0;if((o|0)>=(h|0))continue;break}}n=n+1|0;if((n|0)>2])continue;break}h=J[a+24>>2];f=J[e+32>>2];c=J[e+28>>2]}J[h+4>>2]=f;J[h>>2]=c;J[i+12>>2]=d;J[i+8>>2]=g;J[i+32>>2]=J[e+24>>2];a=J[e+20>>2];J[i+24>>2]=J[e+16>>2];J[i+28>>2]=a;a=J[e+12>>2];J[i+16>>2]=J[e+8>>2];J[i+20>>2]=a}J[i+40>>2]=J[i+40>>2]-1;f=1}fc=e+48|0;return f|0}function yW(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;e=fc-48|0;fc=e;a:{b:{if(!K[b+144|0]){a=Qc(e+24|0,2394631,2386059,164,2414168,0);J[699344]= +0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);ba(b|0);B()}c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{d=J[b+24>>2];if(!d){h=b+112|0;if(c)break m;J[699344]=0;aa(5201,e+8|0,h|0)|0;c=J[699344];J[699344]=0;n:{o:{if((c|0)!=1){d=J[e+16>>2];if(!d)break f;while(1){c=0;f=J[d+8>>2];if(f){J[699344]=0;J[f+4>>2]=J[f+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break o;c=J[d+8>>2]}J[699344]=0;J[e+24>>2]=c;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;c=J[e+24>>2];ca(5504,a|0,c|0,0);f=J[699344]; +J[699344]=0;if((f|0)==1)break n;if(J[a>>2])break l;J[a>>2]=0;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(!f){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}d=J[d>>2];if(d)continue;break}break f}a=ea(0)|0;break g}a=ea(0)|0;break i}break j}J[d+4>>2]=J[d+4>>2]+1;J[a>>2]=J[b+24>>2];break c}p:{while(1){J[699344]=0;j=aa(5201,e+8|0,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;f=0;d=J[e+16>>2];if(!d)break f;while(1){c=0;g=J[d+8>>2];if(g){J[699344]= +0;J[g+4>>2]=J[g+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break p;c=J[d+8>>2]}J[699344]=0;J[e+24>>2]=c;g=J[c+148>>2];c=J[699344];J[699344]=0;q:{if((c|0)!=1){J[699344]=0;c=J[e+24>>2];ca(5504,a|0,c|0,0);i=J[699344];J[699344]=0;if((i|0)!=1)break q}break j}if(J[a>>2])break l;J[a>>2]=0;J[699344]=0;i=J[c+4>>2]-1|0;J[c+4>>2]=i;k=J[699344];J[699344]=0;if((k|0)==1)break a;if(!i){J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}f=g&1?1:f;d=J[d>>2];if(d)continue;break}if(!f)break f;if(K[b+ +144|0]){id(j);if(!K[b+144|0])break h;continue}break}J[699344]=0;b=ja(5178,e+24|0,2394631,2386059,164,2414168,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=ea(0)|0;Kc(b);break i}a=ea(0)|0;break i}a=ea(0)|0;break i}J[699344]=0;J[e+24>>2]=0;a=J[c+4>>2]-1|0;J[c+4>>2]=a;b=J[699344];J[699344]=0;r:{if((b|0)!=1){if(a)break r;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break r}break a}id(e+8|0);break c}a=ea(0)|0;break g}a=ea(0)| +0;zc(e+24|0)}id(e+8|0);break g}J[699344]=0;b=ja(5178,e+24|0,2394631,2386059,164,2414168,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=ea(0)|0;Kc(b);break g}a=ea(0)|0}oa(a|0)|0;J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break b;d=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break e;break a}id(e+8|0);if(!(J[b+148>>2]&8))break d;a=Qc(e+24|0,J[685887],2386059,808,2414335,0);J[699344]=0;$(5179,a|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break b;d=Z()|0;Kc(a)}ba(d|0);B()}J[a>>2]=0;vd(a,0)}fc=e+48|0;return}B()}ea(0)|0;Bc();B()}function sCb(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;J[a+4>>2]=J[b+24>>2];J[a+8>>2]=J[b+28>>2];J[a+12>>2]=J[b+16>>2];J[a+16>>2]=J[b+20>>2];J[a+20>>2]=J[b+32>>2];J[a+24>>2]=J[b+36>>2];J[a+28>>2]=J[b+40>>2];J[a+32>>2]=J[b+44>>2];c=J[b+48>>2];J[a+56>>2]=c;a:{d=Dc(28);b:{if(!d)break b;J[d+20>>2]=c;J[d>>2]=0;I[d+16>>1]=0;J[d+12>>2]=0;H[d+8|0]=0;c=Dc(P(c,488)); +J[d+24>>2]=c;if(!c)break b;c=lba();J[d+4>>2]=c;if(c)break a;uc(J[d+24>>2])}J[a+64>>2]=0;return-1}g=J[d+20>>2];c:{if((g|0)<=0)break c;c=J[d+24>>2];if(g>>>0>=4){k=g&-4;while(1){H[c+418|0]=0;I[c+416>>1]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+488>>2]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;J[c+976>>2]=0;J[c+1464>>2]=0;H[c+906|0]=0;I[c+904>>1]=0;J[c+500>>2]=0;H[c+1394|0]=0;I[c+1392>>1]=0;J[c+988>>2]=0;H[c+493|0]=0;H[c+494|0]=0;H[c+495|0]=0;H[c+496|0]=0;H[c+1882|0]=0;I[c+1880>>1]=0;J[c+1476>>2]=0;H[c+981|0]= +0;H[c+982|0]=0;H[c+983|0]=0;H[c+984|0]=0;f=c+1469|0;H[f|0]=0;H[f+1|0]=0;H[f+2|0]=0;H[f+3|0]=0;c=c+1952|0;e=e+4|0;if((k|0)!=(e|0))continue;break}}g=g&3;if(!g)break c;e=0;while(1){H[c+418|0]=0;I[c+416>>1]=0;J[c+12>>2]=0;J[c>>2]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+8|0]=0;c=c+488|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}J[a+64>>2]=d;c=Dc(J[a+56>>2]<<5);J[a+88>>2]=c;if(!c)return-1;g=J[a+16>>2];f=J[a+12>>2];k=J[a+56>>2];if((k|0)>0){j=J[b+52>>2];h=J[a+8>>2];i=J[a+4>>2];d=0;while(1){b=j+(d<<2)|0;J[c+ +16>>2]=K[b|0];H[c+20|0]=K[b+1|0]!=0;e=K[b+2|0];J[c>>2]=e;b=K[b+3|0];J[c+24>>2]=0;J[c+28>>2]=0;J[c+4>>2]=b;l=e-1|0;J[c+8>>2]=((l+f>>>0)/(e>>>0)|0)-((i+l>>>0)/(e>>>0)|0);e=b-1|0;J[c+12>>2]=((e+g>>>0)/(b>>>0)|0)-((e+h>>>0)/(b>>>0)|0);c=c+32|0;d=d+1|0;if((k|0)!=(d|0))continue;break}}J[a>>2]=0;k=-1;b=J[a+20>>2];b=(b+(f+(J[a+28>>2]^-1)|0)>>>0)/(b>>>0)|0;J[a+36>>2]=b;c=J[a+24>>2];c=(c+(g+(J[a+32>>2]^-1)|0)>>>0)/(c>>>0)|0;J[a+40>>2]=c;b=P(b,c);J[a+44>>2]=b;d=Dc(P(b,56));J[a+48>>2]=d;d:{if(!d)break d;if(J[a+ +44>>2]>0){g=J[a+56>>2];e=0;while(1){b=J[a+36>>2];J[d>>2]=0;J[d+48>>2]=0;j=J[a+28>>2];c=J[a+20>>2];f=b;b=(e|0)/(b|0)|0;f=e-P(f,b)|0;h=j+P(c,f)|0;i=J[a+4>>2];J[d+4>>2]=h>>>0>i>>>0?h:i;i=J[a+32>>2];h=J[a+24>>2];l=i+P(h,b)|0;m=J[a+8>>2];J[d+8>>2]=l>>>0>m>>>0?l:m;c=j+P(c,f+1|0)|0;f=J[a+12>>2];J[d+12>>2]=c>>>0>>0?c:f;c=J[a+16>>2];J[d+40>>2]=0;J[d+44>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;b=i+P(h,b+1|0)|0;J[d+16>>2]=b>>>0>>0?b:c;c=Dc(g<<5);J[d+36>>2]=c;if(!c)break d;g=J[a+56>>2]; +if((g|0)>0){i=J[d+16>>2];l=J[d+12>>2];m=J[d+8>>2];o=J[d+4>>2];b=J[a+88>>2];j=0;while(1){J[c+16>>2]=0;J[c+24>>2]=0;h=J[b>>2];n=h-1|0;J[c>>2]=(n+o>>>0)/(h>>>0);f=J[b+4>>2];J[c+28>>2]=0;J[c+8>>2]=(l+n>>>0)/(h>>>0);h=f-1|0;J[c+12>>2]=(h+i>>>0)/(f>>>0);J[c+4>>2]=(h+m>>>0)/(f>>>0);c=c+32|0;b=b+32|0;j=j+1|0;if((j|0)!=(g|0))continue;break}}d=d+56|0;e=e+1|0;if((e|0)>2])continue;break}}J[a+84>>2]=4;k=0;J[a+96>>2]=0}return k|0}function _Ba(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=fc+ +-64|0;fc=e;a:{b:{c:{if(K[a+89|0]){b=Qc(e+28|0,2394650,2385400,168,2413380,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}if(!J[a+4>>2]){b=Qc(e+28|0,2387244,2385400,170,2413380,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}d:{e:{f=J[b+8>>2];f:{if(!f|!J[f+8>>2])break f;g=e+28|0;Pj(g,b,0);f=J[e+28>>2];if(!f){wc(g);break f}f=J[f+8>>2];wc(e+28|0);if(f)break e}if(!J[a+44>>2]){b=Qc(e+28|0,2387753,2385400,174,2413380, +0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}h=a+8|0;f=J[a+16>>2];g:{if(!f|!J[f+8>>2])break g;g=e+28|0;Pj(g,h,0);f=J[e+28>>2];if(!f){wc(g);break g}f=J[f+8>>2];wc(e+28|0);if(f)break d}i=rl(e+20|0,2388253);J[699344]=0;g=e+28|0;ca(5378,g|0,a|0,i|0);f=J[699344];J[699344]=0;h:{if((f|0)!=1){J[699344]=0;aa(5253,h|0,g|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break h;J[e+52>>2]=2392964;J[e+28>>2]=2392932;g=J[e+56>>2];if(g){f=J[g+4>>2]-1|0;J[g+4>>2]=f;if(!f)kc[J[J[g>> +2]+4>>2]](g);J[e+56>>2]=0}J[e+44>>2]=2392964;g=J[e+48>>2];if(g){f=J[g+4>>2]-1|0;J[g+4>>2]=f;if(!f)kc[J[J[g>>2]+4>>2]](g);J[e+48>>2]=0}wc(e+36|0);wc(i);break d}a=Z()|0;wc(i);break c}a=Z()|0;Ed(e+28|0);wc(i);break c}sH(a+8|0,b)}J[a+56>>2]=6;J[a+100>>2]=d;f=si();i:{j:{k:{d=J[c>>2];if(!d){h=wt(8);J[h>>2]=0;J[h+4>>2]=0;J[699344]=0;g=_(5379,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;J[g>>2]=2418472;vd(c,J[vd(a+104|0,g)>>2]);d=J[c>>2]}vt(f,a,d);vt(f,a,a);c=J[b+8>>2];if(!c|!J[c+8>>2])break a;c=e+ +28|0;Pj(c,b,0);b=J[e+28>>2];if(!b){wc(c);break a}b=J[b+8>>2];c=e+28|0;wc(c);if(!b)break a;g=a+8|0;kc[J[J[f>>2]+16>>2]](c,f,a,g);J[699344]=0;d=a+44|0;aa(5153,d|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;f=J[e+28>>2];J[e+28>>2]=0;l:{if(!f)break l;J[699344]=0;c=J[f+4>>2]-1|0;J[f+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break j;if(c)break l;J[699344]=0;$(5147,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break j}if(J[d>>2]){b=J[a+16>>2];m:{if(!b|!J[b+8>>2])break m;c=e+28|0;Pj(c,g,0);b=J[e+28>> +2];if(!b){wc(c);break m}b=J[b+8>>2];wc(e+28|0);if(!b)break m;if(!lk(g))break m;b=J[693733];if(!b)break m;kc[b|0](d,g,a+60|0,a+62|0)}if(K[a+62|0])H[a+61|0]=1;if(J[d>>2])break a}a=e+12|0;Pj(a,g,0);J[699344]=0;ca(5218,e+20|0,2389433,a|0);a=J[699344];J[699344]=0;n:{o:{p:{if((a|0)!=1){a=J[e+20>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;b=ja(5178,e+28|0,a|0,2385400,207,2413380,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break p;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b); +break o}a=Z()|0;break n}a=Z()|0}wc(e+20|0)}wc(e+12|0);break c}a=Z()|0;Gm(h);break c}ea(0)|0;Bc();B()}a=Z()|0;zc(e+28|0)}ba(a|0)}B()}H[a+89|0]=1;b=a+96|0;if(J[b>>2]!=1)J[b>>2]=1;vd(a+168|0,a);NW(a);fc=e- -64|0}function FYa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;c=fc-160|0;fc=c;a:{b:{c:{d:{e:{if(K[a+229|0])break e;h=J[b+116>>2];if(kc[J[J[h>>2]+40>>2]](h)|0)break e;n=e<<2;h=P(n,f);if((h|0)<=0)break e;i=so(h);if(!i)break e; +h=J[209335];J[c+152>>2]=J[209334];J[c+156>>2]=h;h=J[209333];J[c+144>>2]=J[209332];J[c+148>>2]=h;h=J[209331];J[c+136>>2]=J[209330];J[c+140>>2]=h;h=J[209329];J[c+128>>2]=J[209328];J[c+132>>2]=h;kc[J[J[a>>2]+328>>2]](a,b,c+128|0,J[b+116>>2],1,0,1);h=c+96|0;J[h+12>>2]=0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=351116;J[h+20>>2]=0;J[h+24>>2]=0;H[h+28|0]=0;m=h;J[c+32>>2]=e;J[c+84>>2]=f;J[699344]=0;J[c+24>>2]=0-n;h=c+84|0;yi(m,i,c+32|0,h,c+24|0,1);k=J[699344];J[699344]=0;f:{g:{h:{i:{if((k|0)!=1){J[699344]= +0;j=_(4,36)|0;k=J[699344];J[699344]=0;if((k|0)==1)break i;J[699344]=0;k=na(3426,j|0,d|0,e|0,1,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;J[699344]=0;$(3427,k|0);d=J[699344];J[699344]=0;if((d|0)==1)break i;d=J[b+116>>2];j=J[J[d>>2]+20>>2];J[699344]=0;ia(j|0,d|0,b+124|0,h|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break g;d=J[b+380>>2];if(!d|J[d+4>>2]!=2)break f;d=J[d+8>>2];if(!J[d+140>>2])break f;j=J[d+8>>2];o=J[J[j>>2]+20>>2];J[699344]=0;ia(o|0,j|0,d+12|0,h|0,0);d=J[699344];J[699344]=0;if((d| +0)!=1)break f;f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;uc(j);break a}f=Z()|0;break a}l=O[b+392>>3]*255;j:{if(R(l)<2147483648){d=~~l;break j}d=-2147483648}k:{if((f|0)<=0)break k;h=f-1|0;if((e|0)>0){d=(d|0)>0?d:0;o=(d|0)>=255?255:d;q=P(J[c+92>>2],255)+32768>>>16|0;r=P(J[c+88>>2],255)+32768>>>16|0;s=P(J[c+84>>2],255)+32768>>>16|0;t=(g|0)!=0;while(1){l:{J[699344]=0;g=_(3428,k|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;f=P(h,n);j=0;while(1){d=K[g|0]==(t|0);H[f+i|0]=d?q:-1;H[(f|1)+ +i|0]=d?r:-1;H[(f|2)+i|0]=d?s:-1;H[(f|3)+i|0]=d?o:0;f=f+4|0;g=g+1|0;j=j+1|0;if((j|0)!=(e|0))continue;break}d=(h|0)>0;h=h-1|0;if(d)continue;break k}break}f=Z()|0;break a}while(1){J[699344]=0;_(3428,k|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;d=(h|0)>0;h=h-1|0;if(d)continue;break}}uc(Lm(k));O[c+32>>3]=O[b+16>>3];O[c+40>>3]=-O[b+24>>3];l=O[b+32>>3];O[c+48>>3]=-l;p=O[b+40>>3];O[c+56>>3]=p;O[c+64>>3]=l+O[b+48>>3];O[c+72>>3]=O[b+104>>3]-(p+O[b+56>>3]);J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+16>> +2]=0;J[c+20>>2]=0;e=c+24|0;f=c+16|0;ma(3418,a|0,c+32|0,e|0,f|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break d;d=J[a+104>>2];J[c+8>>2]=1049880894;J[c+12>>2]=1071027177;J[c>>2]=1049880894;J[c+4>>2]=1071027177;g=J[J[d>>2]+376>>2];J[699344]=0;ja(g|0,d|0,m|0,e|0,f|0,c+8|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;d=J[J[a>>2]+340>>2];J[699344]=0;la(d|0,a|0,b|0,c+128|0,0,0,0);a=J[699344];J[699344]=0;if((a|0)==1)break d;If(m)}fc=c+160|0;return}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0}If(m);ba(f|0); +B()}function $lb(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;m=fc-16|0;fc=m;h=he(a,2496,m+12|0);d=J[m+12>>2];if(!d){J[h>>2]=a;J[h+212>>2]=L[b+120>>1];g=K[b+124|0];a:{if(!g)break a;a=h+224|0;d=b+128|0;i=g&7;b:{if(!i){e=g;break b}e=g;while(1){J[a>>2]=I[d>>1];e=e-1|0;d=d+2|0;a=a+12|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if(g>>>0<8)break a;while(1){J[a>>2]=I[d>>1];J[a+12>>2]=I[d+2>>1];J[a+24>>2]=I[d+4>>1];J[a+36>>2]=I[d+6>>1];J[a+48>>2]=I[d+8>>1];J[a+60>>2]=I[d+10>> +1];J[a+72>>2]=I[d+12>>1];J[a+84>>2]=I[d+14>>1];d=d+16|0;a=a+96|0;e=e-8|0;if(e)continue;break}}e=1;J[h+208>>2]=g+1;J[h+8>>2]=L[b+122>>1];g=K[b+125|0];c:{if(!g)break c;a=h+20|0;d=b+154|0;j=g&7;d:{if(!j){f=g;break d}i=0;f=g;while(1){J[a>>2]=I[d>>1];f=f-1|0;d=d+2|0;a=a+12|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}if(g>>>0<8)break c;while(1){J[a>>2]=I[d>>1];J[a+12>>2]=I[d+2>>1];J[a+24>>2]=I[d+4>>1];J[a+36>>2]=I[d+6>>1];J[a+48>>2]=I[d+8>>1];J[a+60>>2]=I[d+10>>1];J[a+72>>2]=I[d+12>>1];J[a+84>>2]=I[d+14>> +1];d=d+16|0;a=a+96|0;f=f-8|0;if(f)continue;break}}J[h+4>>2]=g+1;a=0;d=h+412|0;f=b+12|0;g=b+40|0;T6(d,K[b+8|0],f,K[b+9|0],g,J[b+116>>2],0);i=b+60|0;j=b+88|0;T6(d,K[b+10|0],i,K[b+11|0],j,J[b+116>>2],1);d=K[b+8|0];e:{if(!d)break e;k=d-1|0;if(d>>>0>=3){l=(k>>>1|0)+1&-2;while(1){d=a<<1;n=L[f+(d|6)>>1]-L[f+(d|4)>>1]<<16>>16;d=L[f+(d|2)>>1]-L[d+f>>1]<<16>>16;e=e<<16>>16;e=(d|0)>(e|0)?d:e;e=(e|0)<(n|0)?n:e;a=a+4|0;o=o+2|0;if((l|0)!=(o|0))continue;break}}if(k&2)break e;a=a<<1;a=L[f+(a|2)>>1]-L[a+f>>1]<<16>> +16;e=(a|0)>(e|0)?a:e}a=K[b+9|0];f:{if(!a)break f;k=a-1|0;g:{if(a>>>0<3){f=0;break g}l=(k>>>1|0)+1&-2;f=0;a=0;while(1){d=f<<1;n=L[g+(d|6)>>1]-L[g+(d|4)>>1]<<16>>16;d=L[g+(d|2)>>1]-L[d+g>>1]<<16>>16;e=e<<16>>16;e=(d|0)>(e|0)?d:e;e=(e|0)<(n|0)?n:e;f=f+4|0;a=a+2|0;if((l|0)!=(a|0))continue;break}}if(k&2)break f;a=f<<1;a=L[g+(a|2)>>1]-L[a+g>>1]<<16>>16;e=e<<16>>16;e=(a|0)>(e|0)?a:e}a=K[b+10|0];h:{if(!a)break h;g=a-1|0;i:{if(a>>>0<3){d=0;break i}k=(g>>>1|0)+1&-2;d=0;f=0;while(1){a=d<<1;l=L[i+(a|6)>>1]-L[i+ +(a|4)>>1]<<16>>16;a=L[i+(a|2)>>1]-L[a+i>>1]<<16>>16;e=e<<16>>16;a=(a|0)>(e|0)?a:e;e=(a|0)<(l|0)?l:a;d=d+4|0;f=f+2|0;if((k|0)!=(f|0))continue;break}}if(g&2)break h;a=d<<1;a=L[i+(a|2)>>1]-L[a+i>>1]<<16>>16;e=e<<16>>16;e=(a|0)>(e|0)?a:e}a=K[b+11|0];j:{if(!a)break j;g=a-1|0;k:{if(a>>>0<3){d=0;break k}i=(g>>>1|0)+1&-2;d=0;f=0;while(1){a=d<<1;k=L[j+(a|6)>>1]-L[j+(a|4)>>1]<<16>>16;a=L[j+(a|2)>>1]-L[a+j>>1]<<16>>16;e=e<<16>>16;a=(a|0)>(e|0)?a:e;e=(a|0)<(k|0)?k:a;d=d+4|0;f=f+2|0;if((i|0)!=(f|0))continue;break}}if(g& +2)break j;a=d<<1;a=L[j+(a|2)>>1]-L[a+j>>1]<<16>>16;e=e<<16>>16;e=(a|0)>(e|0)?a:e}a=Cd(1E3,e&65535);e=J[b+108>>2];J[h+2476>>2]=(a|0)>(e|0)?e:a;J[h+2480>>2]=J[b+112>>2];a=J[b+116>>2];J[h+404>>2]=0;J[h+408>>2]=0;J[h+200>>2]=0;J[h+204>>2]=0;J[h+2488>>2]=a;d=J[m+12>>2]}J[c>>2]=h;fc=m+16|0;return d|0}function nE(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;i=fc-16|0;fc=i;e=he(J[a+100>>2],(J[a+16>>2]<<1)+392|0,i+4|0);d=J[i+4>>2];if(!d){J[e>>2]=a;d=J[a+16>>2];J[e+388>>2]=c;f=e+392|0;J[e+8>>2]=f; +J[e+4>>2]=d;J[e+368>>2]=0;J[e+372>>2]=0;c=0;I[e+364>>1]=0;J[e+376>>2]=0;J[e+380>>2]=0;J[e+384>>2]=0;n=J[a+92>>2];a:{if(!d)break a;if(d>>>0>=8){k=d&-8;while(1){g=c<<1;I[g+f>>1]=16383;I[(g|2)+f>>1]=16383;I[(g|4)+f>>1]=16383;I[(g|6)+f>>1]=16383;I[(g|8)+f>>1]=16383;I[(g|10)+f>>1]=16383;I[(g|12)+f>>1]=16383;I[(g|14)+f>>1]=16383;c=c+8|0;h=h+8|0;if((k|0)!=(h|0))continue;break}}g=d&7;if(!g)break a;d=0;while(1){I[(c<<1)+f>>1]=16383;c=c+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}b:{if(_D(a))break b;h=0;d= +245216;while(1){k=J[(J[d+8>>2]<<2)+247056>>2];c=J[k+4>>2];c:{if(!c|J[d+16>>2]!=10)break c;d=J[c>>2];if(d)while(1){g=c;c=Gh(a,d);J[i+12>>2]=c;d:{if(!c|c>>>0>=M[e+4>>2])break d;c=(c<<1)+f|0;if((L[c>>1]&16383)!=16383)break d;I[c>>1]=h}d=ZD(a,d,i+12|0);while(1){c=J[i+12>>2];if(!(!c|M[g+4>>2]>>0)){e:{if(c>>>0>=M[e+4>>2])break e;c=(c<<1)+f|0;if((L[c>>1]&16383)!=16383)break e;I[c>>1]=h}d=ZD(a,d,i+12|0);continue}break}c=g+8|0;d=J[g+8>>2];if(d)continue;break}c=J[k+8>>2];d=J[c>>2];if(!d)break c;k=h&65535; +while(1){g=c;c=Gh(a,d);J[i+8>>2]=c;f:{if(!c|c>>>0>=M[e+4>>2])break f;c=(c<<1)+f|0;j=L[c>>1];if((k|0)!=(j&16383))break f;I[c>>1]=j|16384}d=ZD(a,d,i+8|0);while(1){c=J[i+8>>2];if(!(!c|M[g+4>>2]>>0)){g:{if(c>>>0>=M[e+4>>2])break g;c=(c<<1)+f|0;j=L[c>>1];if((k|0)!=(j&16383))break g;I[c>>1]=j|16384}d=ZD(a,d,i+8|0);continue}break}c=g+8|0;d=J[g+8>>2];if(d)continue;break}}h=h+1|0;d=J[(h<<2)+247312>>2];if((h|0)!=87)continue;break}c=Gh(a,48);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c= +Gh(a,49);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=Gh(a,50);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=Gh(a,51);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=Gh(a,52);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=Gh(a,53);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=Gh(a,54);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=Gh(a,55);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]| +32768}c=Gh(a,56);if(!(!c|c>>>0>=M[e+4>>2])){c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}c=Gh(a,57);if(!c|c>>>0>=M[e+4>>2])break b;c=(c<<1)+f|0;I[c>>1]=L[c>>1]|32768}g=J[J[e+388>>2]+12>>2];h:{if((g|0)==16383)break h;h=J[e+4>>2];if((h|0)<=0)break h;d=0;if((h|0)!=1){k=h&-2;c=0;while(1){j=d<<1;l=j+f|0;m=L[l>>1];if((m&16383)==16383)I[l>>1]=g|m&49152;j=(j|2)+f|0;l=L[j>>1];if((l&16383)==16383)I[j>>1]=g|l&49152;d=d+2|0;c=c+2|0;if((k|0)!=(c|0))continue;break}}if(!(h&1))break h;c=(d<<1)+f|0;d=L[c>>1];if((d&16383)!= +16383)break h;I[c>>1]=g|d&49152}ls(a,n);J[e+12>>2]=0;d=0}J[b>>2]=e;fc=i+16|0;return d}function XJa(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;f=fc-112|0;fc=f;J[f+104>>2]=0;a:{b:{c:{d:{e:{f:{g:{if(a){if(!d)break g;if(!b)break f;if((c|0)!=8){b=0;Nc(d,1,2364941,0);Nc(d,1,2364941,0);break a}wd(b,a+192|0,2);wd(b+2|0,f+108|0,4);wd(b+6|0,f+100|0,1);wd(b+7|0,f+104|0,1);c=J[a+192>>2];i=J[a+104>>2];if(c>>>0>=P(i,J[a+108>>2])>>>0){J[f+96>>2]=c;Nc(d,1,2364967,f+96|0);b=0;break a}h=(c>>>0)/(i>>> +0)|0;e=J[a+156>>2];b=J[f+100>>2];h:{g=J[a+44>>2];if((g|0)>=0&(c|0)!=(g|0))break h;g=J[(e+P(c,5644)|0)+5588>>2]+1|0;if((g|0)==(b|0))break h;J[f+88>>2]=g;J[f+84>>2]=b;J[f+80>>2]=c;Nc(d,1,2364991,f+80|0);b=0;break a}J[(e+P(c,5644)|0)+5588>>2]=b;b=J[f+108>>2];if(b-1>>>0<=12){if((b|0)!=12)break e;J[f+48>>2]=12;Nc(d,2,2365056,f+48|0);b=J[f+108>>2]}if(!b){Nc(d,4,2365154,0);J[a+56>>2]=1}i:{j:{k:{l:{b=e+P(c,5644)|0;e=J[b+5592>>2];if(e){g=J[f+100>>2];if(g>>>0>>0)break l;J[f+36>>2]=e;J[f+32>>2]=g;Nc(d,1, +2365265,f+32|0);J[a+56>>2]=1;b=0;break a}g=J[f+104>>2];if(g)break k;break i}g=J[f+104>>2];if(!g)break j}e=(K[a+68|0]>>>4&1)+g|0;J[f+104>>2]=e;g=b+5592|0;j=J[g>>2];b=J[f+100>>2];if(j-1>>>0>>0){J[f+4>>2]=j;J[f>>2]=b;Nc(d,1,2365365,f);J[a+56>>2]=1;b=0;break a}if(b>>>0>=e>>>0){J[f+20>>2]=e;J[f+16>>2]=b;Nc(d,1,2365464,f+16|0);J[a+56>>2]=1;b=0;break a}J[g>>2]=e}if((J[f+100>>2]+1|0)!=(e|0))break i;H[a+68|0]=K[a+68|0]|1}b=J[f+108>>2];J[a+8>>2]=16;J[a+24>>2]=J[a+56>>2]?0:b-12|0;b=J[a+44>>2];m:{if((b|0)== +-1){e=4;b=c-P(h,i)|0;if(b>>>0>2]|b>>>0>=M[a+36>>2]|h>>>0>2])break m;e=(h>>>0>=M[a+40>>2])<<2;break m}if((b|0)<0)break d;e=((b|0)!=J[a+192>>2])<<2}H[a+68|0]=K[a+68|0]&251|e;b=1;c=J[a+188>>2];if(!c)break a;e=J[c+40>>2];if(!e)break c;h=J[a+192>>2];c=P(h,40)+e|0;J[c>>2]=h;g=J[f+100>>2];J[c+12>>2]=g;i=J[f+104>>2];if(i){J[c+4>>2]=i;e=J[f+104>>2];J[c+8>>2]=e;c=J[c+16>>2];if(!c){c=Ge(e,24);J[(J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0)+16>>2]=c;if(c)break a;b=0;Nc(d,1,2365665,0);break a}c=ch(c, +P(e,24));e=J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0;if(!c){uc(J[e+16>>2]);b=0;J[(J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0)+16>>2]=0;Nc(d,1,2365665,0);break a}J[e+16>>2]=c;break a}c=J[c+16>>2];if(!c){J[(P(h,40)+e|0)+8>>2]=10;c=Ge(10,24);e=J[J[a+188>>2]+40>>2];h=J[a+192>>2];g=e+P(h,40)|0;J[g+16>>2]=c;if(!c)break b;g=J[f+100>>2]}e=P(h,40)+e|0;if(M[e+8>>2]>g>>>0)break a;j=e;e=g+1|0;J[j+8>>2]=e;c=ch(c,P(e,24));e=J[J[a+188>>2]+40>>2]+P(J[a+192>>2],40)|0;if(!c){uc(J[e+16>>2]);b=0;a=J[J[a+188>>2]+40>>2]+ +P(J[a+192>>2],40)|0;J[a+8>>2]=0;J[a+16>>2]=0;Nc(d,1,2365665,0);break a}J[e+16>>2]=c;break a}fa(2358373,2358254,4329,2364924);B()}fa(2358486,2358254,4330,2364924);B()}fa(2365733,2358254,4296,2365753);B()}J[f+64>>2]=b;Nc(d,1,2365093,f- -64|0);b=0;break a}fa(2365572,2358254,4520,2364924);B()}fa(2365629,2358254,4528,2364924);B()}b=0;J[g+8>>2]=0;Nc(d,1,2365665,0)}fc=f+112|0;return b|0}function DO(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!K[a+289|0]|!(K[a+2538|0]|K[a+2543|0]))break a;if(!(K[J[a+536>>2]+ +31|0]|J[a+12>>2]==3))break a;b:switch(K[a+336|0]-12|0){case 0:case 2:break b;default:break a}b=1}h=K[a+498|0];c:{d:{e:{f:{g:{h:{i:{c=J[a+536>>2];if(K[a+287|0]|b|(K[c+64|0]|K[c+65|0]?c:0))break i;switch(h|0){case 0:case 8:break h;default:break i}}c=J[a+512>>2];if(!c)c=J[a+528>>2];if(!K[c+31|0]|!K[c+32|0])break f;c=Zh(a,c,b);if(c)break e;c=6;if(K[a+497|0])break g;break f}j:{if(!K[a+288|0]){if((h|0)!=8)break f;b=J[a+2248>>2];break j}b=J[a+2248>>2];if(h)break j;c=oaa(a,b,J[a+528>>2]);if(c)break e}if(!K[b+ +31|0]|!K[b+32|0])break f;c=Zh(a,b,0);if(c)break e;c=8;if(!K[a+497|0])break f}H[a+498|0]=c}c=0;if(K[a+497|0])break e;H[a+498|0]=0;Ck(a,J[a+528>>2],0,0,0,0,0,0,0,1);if(K[a+2420|0]){c=VE(a);b=MO(a);if(c)break e;c=b;if(b)break e}if(K[a+2533|0]){c=VE(a);b=Dc(40);J[b>>2]=0;f=Hf(a+2568|0,1,b,4);g=gc;b=0;k:{while(1){l:{m:{n:{if(b){J[699344]=0;ha(1084,a|0,6,b|0,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break n;break c}b=J[a+2516>>2];if(b){d=J[a+2520>>2];e=J[a+156>>2];J[699344]=0;da(e|0,b|0,d|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break c;d=-1;o:{if(!b)break o;e=J[699345];if(!e)break o;d=Pc(J[b>>2],f,g);if(!d)break d;gc=e}b=gc;if((d|0)==1)continue;J[a+2516>>2]=0}b=J[a+2452>>2];J[699344]=0;$(70,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;d=-1;if(!b)break l;e=J[699345];if(!e)break l;d=Pc(J[b>>2],f,g);if(d)break m;break d}d=-1;p:{if(!b)break p;e=J[699345];if(!e)break p;d=Pc(J[b>>2],f,g);if(!d)break d;gc=e}b=gc;if((d|0)==1)continue;uc(f);b=6;break k}gc=e}b=gc;if((d|0)==1)continue;break}H[a+2533|0]= +0;uc(f);b=0;break k}if(c)break e;c=b;if(b)break e}if(K[a+2539|0]){c=VE(a);b=Dc(40);J[b>>2]=0;f=Hf(a+2568|0,1,b,4);g=gc;b=0;q:{while(1){r:{s:{t:{if(b){J[699344]=0;ha(1084,a|0,6,b|0,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break t;break c}b=J[a+2524>>2];if(b){d=J[a+2528>>2];e=J[a+156>>2];J[699344]=0;da(e|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;d=-1;u:{if(!b)break u;e=J[699345];if(!e)break u;d=Pc(J[b>>2],f,g);if(!d)break d;gc=e}b=gc;if((d|0)==1)continue;J[a+2524>>2]=0}b=J[a+2464>>2];J[699344]= +0;$(70,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;d=-1;if(!b)break r;e=J[699345];if(!e)break r;d=Pc(J[b>>2],f,g);if(d)break s;break d}d=-1;v:{if(!b)break v;e=J[699345];if(!e)break v;d=Pc(J[b>>2],f,g);if(!d)break d;gc=e}b=gc;if((d|0)==1)continue;uc(f);b=6;break q}gc=e}b=gc;if((d|0)==1)continue;break}H[a+2539|0]=0;uc(f);b=0;break q}if(c)break e;c=b;if(b)break e}if(h){J[a+288>>2]=0;J[a+292>>2]=0;I[a+286>>1]=0;H[a+293|0]=0;H[a+294|0]=0;H[a+295|0]=0;H[a+296|0]=0;H[a+297|0]=0;H[a+298|0]=0;H[a+299| +0]=0;H[a+300|0]=0}c=0;if(!J[a+968>>2]|J[a+12>>2]==2)break e;H[a+502|0]=1}return c}uc(f);nf(b,e);B()}a=Z()|0;uc(f);ba(a|0);B()}function esa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;J[a+24>>2]=0;f=a+16|0;a:{b:{c:{d:{g=J[a+12>>2];g=kc[J[J[g>>2]+8>>2]](g,b,c)|0;if(g){J[d>>2]=0;e:{c=J[f>>2];if(!c)break e;e=J[J[c>>2]+76>>2];J[699344]=0;h=e;e=d+12|0;da(h|0,e|0,c|0);c=J[699344];J[699344]=0;f:{if((c|0)!=1){J[699344]=0;aa(5153,d|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[d+12>> +2];J[d+12>>2]=0;if(!c)break e;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)!=1){if(e)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break e}break b}a=Z()|0;zc(d+12|0);break f}a=Z()|0}break a}J[699344]=0;ia(5705,d+4|0,b|0,g|0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+4>>2];g:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break g;a=Z()|0;break c}J[d+12>>2]=0}J[699344]=0;aa(5153,f|0,d+12|0)|0;b=J[699344]; +J[699344]=0;h:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break h;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break b}a=Z()|0;zc(d+12|0);break c}b=a;a=J[a+16>>2];J[b+20>>2]=J[(a?a+12|0:2743576)>>2];wc(d+4|0);a=J[d>>2];J[d>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]= +0;if((a|0)==1)break b;break d}a=Z()|0;break a}J[d>>2]=0;i:{b=J[f>>2];if(!b)break i;c=J[J[b>>2]+76>>2];J[699344]=0;e=c;c=d+12|0;da(e|0,c|0,b|0);b=J[699344];J[699344]=0;j:{k:{if((b|0)!=1){J[699344]=0;aa(5153,d|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;b=J[d+12>>2];J[d+12>>2]=0;if(!b)break i;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i}break b}a=Z()|0;break j}a=Z()|0;zc(d+12|0)}break a}J[699344]= +0;ia(5705,d+4|0,0,0,d|0);b=J[699344];J[699344]=0;l:{if((b|0)!=1){b=J[d+4>>2];m:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break m;a=Z()|0;break l}J[d+12>>2]=0}J[699344]=0;aa(5153,f|0,d+12|0)|0;b=J[699344];J[699344]=0;n:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break n;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break n;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break n}break b}a=Z()|0;zc(d+ +12|0);break l}b=a;a=J[a+16>>2];J[b+20>>2]=J[(a?a+12|0:2743576)>>2];wc(d+4|0);a=J[d>>2];J[d>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break b}a=Z()|0;break a}wc(d+4|0);break a}fc=d+16|0;return g|0}wc(d+4|0);break a}ea(0)|0;Bc();B()}zc(d);ba(a|0);B()}function oh(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,r=0;o=J[a+20>>2];q=J[a+28>>2]-o>>3;p= +J[a+8>>2];while(1){a=I[o+8>>1];e=I[o+10>>1];a:{if((e|0)>0){if(J[b+16>>2]<(p|0)|J[b+8>>2]>(p|0))break a;g=J[o+12>>2];d=J[b+4>>2];b:{if((a|0)>=(d|0)){d=a;break b}e=(a-d|0)+e|0;if((e|0)<=0)break a;g=(d-a|0)+g|0}h=J[b>>2];a=J[b+12>>2];if((a|0)<(d+e|0)){a=a-d|0;if((a|0)<0)break a;e=a+1|0}v5(h,d,p,e,c,g);break a}if(J[b+16>>2]<(p|0)|J[b+8>>2]>(p|0))break a;d=a+(e^-1)|0;e=(a|0)<(d|0)?a:d;g=J[b+12>>2];if((e|0)>(g|0))break a;a=(a|0)>(d|0)?a:d;d=J[b+4>>2];if((a|0)<(d|0))break a;h=J[b>>2];d=(d|0)<(e|0)?e:d;f= +d;i=(((a|0)<(g|0)?a:g)-d|0)+1|0;e=K[J[o+12>>2]];a=0;g=K[c+3|0];c:{if(!g)break c;d=J[h>>2];h=J[d+4>>2];k=J[d+16>>2];d:{e:{if((k|0)>=0){d=P(k,p);break e}j=h-J[d>>2]|0;d=P(k,p);if((j|0)<(0-d|0))break d}a=d+h|0}a=(f<<2)+a|0;k=P(g,e+1|0);f=k>>>8|0;if((f|0)==255){d=K[c+2|0]|(K[c|0]<<16|g<<24|K[c+1|0]<<8);g=i-1|0;h=i&7;if(h){e=0;while(1){J[a>>2]=d;i=i-1|0;a=a+4|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}if(g>>>0<7)break c;while(1){J[a+28>>2]=d;J[a+24>>2]=d;J[a+20>>2]=d;J[a+16>>2]=d;J[a+12>>2]=d;J[a+8>>2]= +d;J[a+4>>2]=d;J[a>>2]=d;a=a+32|0;i=i-8|0;if(i)continue;break}break c}if((e|0)==255){if(k>>>0<256)break c;h=(f-(P(f,255)+255>>>8|0)|0)+255|0;while(1){d=a+3|0;g=K[a|0];k=K[a+1|0];l=K[a+2|0];j=K[c+2|0];m=K[c+1|0];n=K[c|0];e=K[a+3|0];f:{if((e|0)==255){H[a|0]=g+(P(f,j-g|0)>>>8|0);j=k+(P(f,m-k|0)>>>8|0)|0;e=l+(P(f,n-l|0)>>>8|0)|0;g=h;break f}d=e+f-(P(e,f)+255>>>8)|0;H[a+3|0]=d;g=P(e,g);d=d&255;g=(g+P(f,j)-(P(f,g)+255>>>8)>>>0)/(d>>>0)|0;k=P(e,k);j=(k+P(f,m)-(P(f,k)+255>>>8)>>>0)/(d>>>0)|0;e=P(e,l);e=(e+ +P(f,n)-(P(e,f)+255>>>8)>>>0)/(d>>>0)|0;d=a}H[a+1|0]=j;H[a+2|0]=e;H[d|0]=g;a=a+4|0;i=i-1|0;if(i)continue;break}break c}if(k>>>0>=256){h=K[c+2|0];m=K[c+1|0];n=K[c|0];d=a+3|0;g=K[a|0];j=K[a+1|0];l=K[a+2|0];e=K[a+3|0];g:{if((e|0)==255){H[a|0]=g+(P(f,h-g|0)>>>8|0);g=j+(P(f,m-j|0)>>>8|0)|0;e=l+(P(f,n-l|0)>>>8|0)|0;h=(f-(P(f,255)+255>>>8|0)|0)+255|0;break g}d=e+f-(P(e,f)+255>>>8)|0;H[a+3|0]=d;g=P(e,g);d=d&255;h=(g+P(f,h)-(P(f,g)+255>>>8)>>>0)/(d>>>0)|0;g=P(e,j);g=(g+P(f,m)-(P(f,g)+255>>>8)>>>0)/(d>>>0)| +0;e=P(e,l);e=(e+P(f,n)-(P(e,f)+255>>>8)>>>0)/(d>>>0)|0;d=a}H[a+1|0]=g;H[a+2|0]=e;H[d|0]=h}g=i-1|0;if(!g|k>>>0<256)break c;k=(f-(P(f,255)+255>>>8|0)|0)+255|0;while(1){d=a;e=a+7|0;a=a+4|0;h=K[d+4|0];j=K[d+5|0];l=K[d+6|0];m=K[c+2|0];n=K[c+1|0];r=K[c|0];i=K[d+7|0];h:{if((i|0)==255){H[a|0]=h+(P(f,m-h|0)>>>8|0);j=j+(P(f,n-j|0)>>>8|0)|0;i=l+(P(f,r-l|0)>>>8|0)|0;h=k;break h}e=f+i-(P(f,i)+255>>>8)|0;H[d+7|0]=e;h=P(h,i);e=e&255;h=(h+P(f,m)-(P(f,h)+255>>>8)>>>0)/(e>>>0)|0;j=P(i,j);j=(j+P(f,n)-(P(f,j)+255>>> +8)>>>0)/(e>>>0)|0;i=P(i,l);i=(i+P(f,r)-(P(f,i)+255>>>8)>>>0)/(e>>>0)|0;e=a}H[d+5|0]=j;H[d+6|0]=i;H[e|0]=h;g=g-1|0;if(g)continue;break}}}o=o+8|0;q=q-1|0;if(q)continue;break}}function BJ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=fc-16|0;fc=g;J[g>>2]=13;a:{b:{c:switch(J[b>>2]){case 0:a=P(J[c>>2]^98,16777619);J[c>>2]=a;a=a^J[b+8>>2]!=0;break b;case 1:d=P(J[c>>2]^105,16777619);J[c>>2]=d;a=J[b+8>>2];a=P(P(P(d^a&255,16777619)^a>>>8&255,16777619)^a>>>16&255,16777619)^a>>>24;break b;case 2:d=P(J[c>> +2]^114,16777619);J[c>>2]=d;a=J[b+8>>2];b=J[b+12>>2];a=P(P(P(P(P(P(P(d^a&255,16777619)^a>>>8&255,16777619)^a>>>16&255,16777619)^a>>>24,16777619)^b&255,16777619)^b>>>8&255,16777619)^b>>>16&255,16777619)^b>>>24;break b;case 3:e=P(J[c>>2]^115,16777619);J[c>>2]=e;a=J[b+8>>2];b=J[a>>2];if((b|0)<=0)break a;a=J[a+4>>2];if(b>>>0>=4){f=b&-4;while(1){e=P(K[a+d|0]^e,16777619);J[c>>2]=e;e=P(e^K[a+(d|1)|0],16777619);J[c>>2]=e;e=P(e^K[a+(d|2)|0],16777619);J[c>>2]=e;e=P(e^K[a+(d|3)|0],16777619);J[c>>2]=e;d=d+4|0; +h=h+4|0;if((f|0)!=(h|0))continue;break}}b=b&3;if(!b)break a;while(1){e=P(K[a+d|0]^e,16777619);J[c>>2]=e;d=d+1|0;i=i+1|0;if((b|0)!=(i|0))continue;break}break a;case 4:e=P(J[c>>2]^110,16777619);J[c>>2]=e;a=J[b+8>>2];b=Yc(a);if((b|0)<=0)break a;if(b>>>0>=4){f=b&-4;while(1){e=P(K[a+d|0]^e,16777619);J[c>>2]=e;e=P(e^K[a+(d|1)|0],16777619);J[c>>2]=e;e=P(e^K[a+(d|2)|0],16777619);J[c>>2]=e;e=P(e^K[a+(d|3)|0],16777619);J[c>>2]=e;d=d+4|0;h=h+4|0;if((f|0)!=(h|0))continue;break}}b=b&3;if(!b)break a;while(1){e= +P(K[a+d|0]^e,16777619);J[c>>2]=e;d=d+1|0;i=i+1|0;if((b|0)!=(i|0))continue;break}break a;case 5:a=J[c>>2]^122;break b;case 6:d=P(J[c>>2]^97,16777619);J[c>>2]=d;e=J[J[b+8>>2]+12>>2];J[c>>2]=P(P(P(P(d^e&255,16777619)^e>>>8&255,16777619)^e>>>16&255,16777619)^e>>>24,16777619);if((e|0)<=0)break a;d=0;while(1){tg(J[b+8>>2],d,g);BJ(a,g,c);yc(g);d=d+1|0;if((e|0)!=(d|0))continue;break}break a;case 7:d=P(J[c>>2]^100,16777619);J[c>>2]=d;f=J[J[b+8>>2]+16>>2];J[c>>2]=P(P(P(P(d^f&255,16777619)^f>>>8&255,16777619)^ +f>>>16&255,16777619)^f>>>24,16777619);if((f|0)<=0)break a;while(1){j=J[J[J[b+8>>2]+4>>2]+(k<<5)>>2];d=Yc(j);d:{if((d|0)<=0)break d;l=d&3;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);i=0;e:{if(d>>>0<4){d=0;break e}m=d&-4;d=0;h=0;while(1){e=P(K[d+j|0]^e,16777619);J[c>>2]=e;e=P(e^K[(d|1)+j|0],16777619);J[c>>2]=e;e=P(e^K[(d|2)+j|0],16777619);J[c>>2]=e;e=P(e^K[(d|3)+j|0],16777619);J[c>>2]=e;d=d+4|0;h=h+4|0;if((m|0)!=(h|0))continue;break}}if(!l)break d;while(1){e=P(K[d+j|0]^e,16777619);J[c>>2]=e;d= +d+1|0;i=i+1|0;if((l|0)!=(i|0))continue;break}}$p(J[b+8>>2],k,g);BJ(a,g,c);yc(g);k=k+1|0;if((f|0)!=(k|0))continue;break}break a;case 9:d=P(J[c>>2]^102,16777619);J[c>>2]=d;a=J[b+8>>2];d=P(P(P(P(d^a&255,16777619)^a>>>8&255,16777619)^a>>>16&255,16777619)^a>>>24,16777619);J[c>>2]=d;a=J[b+12>>2];a=P(P(P(d^a&255,16777619)^a>>>8&255,16777619)^a>>>16&255,16777619)^a>>>24;break b;case 8:break a;default:break c}a=J[c>>2]^117}J[c>>2]=P(a,16777619)}fc=g+16|0}function H5a(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;e=fc-48|0;fc=e;h=J[a+464>>2];a:{b:{if(J[h+40>>2]|!J[a+280>>2])break b;d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+(J[h+12>>2]/8|0);J[h+12>>2]=0;f=0;if(!(kc[J[d+8>>2]](a)|0))break a;if(J[a+336>>2]>0){d=0;while(1){J[((d<<2)+h|0)+20>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}J[h+16>>2]=0;J[h+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[h+36>>2]=0}if(!J[h+36>>2]){J[e+44>>2]=a;c=J[a+24>>2];i=J[c>>2];J[e+28>>2]=i;f=J[c+4>>2];J[e+32>>2]=f;d=J[h+12>>2];g=J[h+8>>2];J[e+24>>2]= +J[h+32>>2];j=J[h+28>>2];J[e+16>>2]=J[h+24>>2];J[e+20>>2]=j;j=J[h+20>>2];J[e+8>>2]=J[h+16>>2];J[e+12>>2]=j;if(J[a+364>>2]>0){while(1){i=n<<2;m=J[i+b>>2];l=h+i|0;c=J[l+96>>2];c:{d:{e:{if((d|0)>7)break e;j=e+28|0;f=0;if(!Qg(j,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break e;c=Ni(j,g,d,c,1);break d}f=g>>d-8&255;j=J[(c+(f<<2)|0)+144>>2];if(j){c=K[(c+f|0)+1168|0];d=d-j|0;break c}c=Ni(e+28|0,g,d,c,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}j=J[l+136>>2];l=J[l+176>>2];f:{g:{if(l){if(c){if((c| +0)>(d|0)){f=0;if(!Qg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;c=c<<2;f=J[c+55920>>2];k=g>>d&f;c=k-((k|0)<=J[c+55916>>2]?f:0)|0}else c=0;f=(J[(a+i|0)+368>>2]<<2)+e|0;c=c+J[f+12>>2]|0;J[f+12>>2]=c;I[m>>1]=c;i=1;if((l|0)<2)break g;while(1){h:{i:{j:{if((d|0)>7)break j;c=e+28|0;f=0;if(!Qg(c,g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break j;c=Ni(c,g,d,j,1);break i}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break h}c=Ni(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a; +g=J[e+36>>2];d=J[e+40>>2]}k=c>>>4|0;c=c&15;k:{if(c){if((c|0)>(d|0)){f=0;if(!Qg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}f=i+k|0;d=d-c|0;c=c<<2;i=J[c+55920>>2];k=g>>d&i;I[(J[(f<<2)+53280>>2]<<1)+m>>1]=k-((k|0)<=J[c+55916>>2]?i:0);break k}if((k|0)!=15)break f;f=i+15|0}i=f+1|0;if((l|0)>(i|0))continue;break}if((f|0)<=62)break g;break f}i=1;if(!c)break g;if((c|0)>(d|0)){f=0;if(!Qg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0}while(1){l:{m:{n:{if((d|0)>7)break n;c=e+28|0;f=0;if(!Qg(c, +g,d,0))break a;g=J[e+36>>2];d=J[e+40>>2];if((d|0)>7)break n;c=Ni(c,g,d,j,1);break m}c=g>>d-8&255;f=J[(j+(c<<2)|0)+144>>2];if(f){c=K[(c+j|0)+1168|0];d=d-f|0;break l}c=Ni(e+28|0,g,d,j,9)}f=0;if((c|0)<0)break a;g=J[e+36>>2];d=J[e+40>>2]}m=c>>>4|0;c=c&15;o:{if(c){if((c|0)>(d|0)){f=0;if(!Qg(e+28|0,g,d,c))break a;g=J[e+36>>2];d=J[e+40>>2]}d=d-c|0;break o}if((m|0)!=15)break f}i=(i+m|0)+1|0;if((i|0)<64)continue;break}}n=n+1|0;if((n|0)>2])continue;break}f=J[e+32>>2];i=J[e+28>>2];c=J[a+24>>2]}J[c+ +4>>2]=f;J[c>>2]=i;J[h+12>>2]=d;J[h+8>>2]=g;J[h+32>>2]=J[e+24>>2];a=J[e+20>>2];J[h+24>>2]=J[e+16>>2];J[h+28>>2]=a;a=J[e+12>>2];J[h+16>>2]=J[e+8>>2];J[h+20>>2]=a}J[h+40>>2]=J[h+40>>2]-1;f=1}fc=e+48|0;return f|0}function JFa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=+d;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;e=fc-112|0;fc=e;a=vc(64);J[e>>2]=a;J[e+4>>2]=13;J[e+8>>2]=-2147483632;J[a+48>>2]=J[597787];f=J[597786];J[a+40>>2]=J[597785];J[a+44>>2]=f;f=J[597784];J[a+32>>2]=J[597783];J[a+36>>2]=f;f=J[597782];J[a+24>>2]=J[597781]; +J[a+28>>2]=f;f=J[597780];J[a+16>>2]=J[597779];J[a+20>>2]=f;f=J[597778];J[a+8>>2]=J[597777];J[a+12>>2]=f;f=J[597776];J[a>>2]=J[597775];J[a+4>>2]=f;J[a+52>>2]=0;a=J[J[b>>2]+236>>2];J[699344]=0;aa(a|0,b|0,e|0)|0;a=J[699344];J[699344]=0;a:{b:{if((a|0)!=1){if(H[e+11|0]<0)uc(J[e>>2]);a=vc(32);J[e>>2]=a;J[e+4>>2]=4;J[e+8>>2]=-2147483640;f=J[597898];J[a+8>>2]=J[597897];J[a+12>>2]=f;f=J[597896];J[a>>2]=J[597895];J[a+4>>2]=f;J[a+16>>2]=0;J[699344]=0;ca(5191,e+68|0,c|0,e|0);a=J[699344];J[699344]=0;if((a|0)!= +1){if(H[e+11|0]<0)uc(J[e>>2]);f=J[e+72>>2];c=f;a=J[e+68>>2];if((f|0)!=(a|0)){c=a;while(1){J[699344]=0;a=_(4,32)|0;f=J[699344];J[699344]=0;c:{d:{e:{f:{if((f|0)!=1){J[e>>2]=a;J[e+4>>2]=4;J[e+8>>2]=-2147483640;f=J[598021];J[a+8>>2]=J[598020];J[a+12>>2]=f;f=J[598019];J[a>>2]=J[598018];J[a+4>>2]=f;J[a+16>>2]=0;J[699344]=0;ca(5191,e+56|0,(g<<2)+c|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;if(H[e+11|0]<0)uc(J[e>>2]);f=0;a=J[e+60>>2];c=a;h=J[e+56>>2];if((h|0)!=(a|0))break e;break c}b=Z()|0;break d}b= +Z()|0;if(H[e+11|0]>=0)break d;uc(J[e>>2]);break d}g:{h:{i:{j:{while(1){k:{J[699344]=0;a=(f<<2)+h|0;da(5192,e+44|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break k;J[699344]=0;J[e>>2]=0;H[e+11|0]=0;ia(5193,e+32|0,a|0,2392420,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;if(H[e+11|0]<0)uc(J[e>>2]);J[699344]=0;Fb(5194,e|0,e+32|0,e|0,+d);a=J[699344];J[699344]=0;if((a|0)==1)break i;i=O[e+24>>3];j=O[e+8>>3]-i;O[e+104>>3]=j;a=J[J[b>>2]+252>>2];J[699344]=0;c=a;a=e+104|0;aa(c|0,b|0,a|0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break i;k=O[e>>3];O[e+104>>3]=Q(k);O[e+96>>3]=Q(i);O[e+88>>3]=Q(O[e+16>>3]-k);O[e+80>>3]=Q(j);c=J[J[b>>2]+292>>2];J[699344]=0;ja(c|0,b|0,e+44|0,a|0,e+96|0,e+88|0,e+80|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;if(H[e+43|0]<0)uc(J[e+32>>2]);if(H[e+55|0]<0)uc(J[e+44>>2]);c=J[e+56>>2];h=c;f=f+1|0;a=J[e+60>>2];if(f>>>0>2>>>0)continue;break c}break}b=Z()|0;break g}b=Z()|0;if(H[e+11|0]>=0)break h;uc(J[e>>2]);break h}b=Z()|0;if(H[e+43|0]>=0)break h;uc(J[e+32>>2])}if(H[e+55|0]>=0)break g; +uc(J[e+44>>2])}lL(e+56|0)}lL(e+68|0);break b}if(c){if((a|0)!=(c|0)){while(1){a=mh(a-4|0);if((c|0)!=(a|0))continue;break}a=J[e+56>>2]}J[e+60>>2]=c;uc(a)}g=g+1|0;f=J[e+72>>2];c=J[e+68>>2];if(g>>>0>2>>>0)continue;break}}if(c){if((c|0)!=(f|0)){while(1){f=mh(f-4|0);if((f|0)!=(c|0))continue;break}f=J[e+68>>2]}J[e+72>>2]=c;uc(f)}fc=e+112|0;return}b=Z()|0;if(H[e+11|0]>=0)break b;break a}b=Z()|0;if(H[e+11|0]>=0)break b;break a}ba(b|0);B()}uc(J[e>>2]);ba(b|0);B()}function yGa(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;g=fc-32|0;fc=g;J[b>>2]=0;J[c>>2]=255;a:{b:{h=J[a+4>>2];c:{if((h|0)<=0)break c;d=J[a>>2];d:if(K[a+8|0]){a=0;if(!d)break d;a=J[d>>2]}else a=d;e=a;a=J[e>>2];if((a|0)==35){a=e+4|0;d=255;e:switch(h-7|0){case 2:d=J[e+4>>2];a=d-48|0;f:{if(a>>>0<10)break f;if(d-97>>>0<=5){a=d-87|0;break f}a=d-65>>>0<6?d-55|0:0}d=a<<4;J[c>>2]=d;a=J[e+8>>2];h=a-48|0;g:{if(h>>>0<10)break g;if(a-97>>>0<=5){h=a-87|0;break g}h=a-65>>>0<6?a-55|0:0}a=e+12|0;d=d+h|0;break;case 0:break e;default:break c}J[c>> +2]=d;d=J[a+16>>2];c=d-48|0;h:{if(c>>>0<10)break h;if(d-97>>>0<=5){c=d-87|0;break h}c=d-65>>>0<6?d-55|0:0}d=c<<4;J[b>>2]=d;e=J[a+20>>2];c=e-48|0;i:{if(c>>>0<10)break i;if(e-97>>>0<=5){c=e-87|0;break i}c=e-65>>>0<6?e-55|0:0}d=c+d<<4;J[b>>2]=d;e=J[a+8>>2];c=e-48|0;j:{if(c>>>0<10)break j;if(e-97>>>0<=5){c=e-87|0;break j}c=e-65>>>0<6?e-55|0:0}d=c+d<<4;J[b>>2]=d;e=J[a+12>>2];c=e-48|0;k:{if(c>>>0<10)break k;if(e-97>>>0<=5){c=e-87|0;break k}c=e-65>>>0<6?e-55|0:0}d=c+d<<4;J[b>>2]=d;e=J[a>>2];c=e-48|0;l:{if(c>>> +0<10)break l;if(e-97>>>0<=5){c=e-87|0;break l}c=e-65>>>0<6?e-55|0:0}c=c+d<<4;J[b>>2]=c;d=J[a+4>>2];a=d-48|0;m:{if(a>>>0<10)break m;if(d-97>>>0<=5){a=d-87|0;break m}a=d-65>>>0<6?d-55|0:0}J[b>>2]=a+c;break c}if((a|0)!=115|h>>>0<3|(J[e+4>>2]!=99|h>>>0<4))break c;if(J[e+8>>2]!=35)break c;d=g+20|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;J[699344]=0;ia(5007,d|0,e+12|0,0,-1);a=J[699344];J[699344]=0;n:{o:{p:{q:{if((a|0)!=1){J[699344]=0;ia(5013,g+8|0,d|0,44,0);a=J[699344];J[699344]=0;if((a|0)==1)break q;r:{a=J[g+ +8>>2];switch(((J[g+12>>2]-a|0)/12|0)-3|0){case 1:break p;case 0:break r;default:break n}}J[c>>2]=255;J[699344]=0;f=+qa(5014,a+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;J[699344]=0;i=+qa(5014,J[g+8>>2]+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;J[699344]=0;j=+qa(5014,J[g+8>>2]);a=J[699344];J[699344]=0;if((a|0)!=1)break o;break b}b=Z()|0;break a}b=Z()|0;break a}J[699344]=0;f=+qa(5014,a|0);a=J[699344];J[699344]=0;s:{if((a|0)!=1){f=(f>1?1:f)*255;t:{if(R(f)<2147483648){a=~~f;break t}a=-2147483648}J[c>> +2]=a;J[699344]=0;f=+qa(5014,J[g+8>>2]+36|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;J[699344]=0;i=+qa(5014,J[g+8>>2]+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break s;J[699344]=0;j=+qa(5014,J[g+8>>2]+12|0);a=J[699344];J[699344]=0;if((a|0)!=1)break o;break b}break b}break b}f=(f>1?1:f)*255;u:{if(R(f)<2147483648){a=~~f;break u}a=-2147483648}c=a<<16;f=(i>1?1:i)*255;v:{if(R(f)<2147483648){a=~~f;break v}a=-2147483648}a=c+(a<<8)|0;f=(j>1?1:j)*255;w:{if(R(f)<2147483648){c=~~f;break w}c=-2147483648}J[b>> +2]=c+a;a=J[g+8>>2]}if(a){c=a;b=J[g+12>>2];if((b|0)!=(a|0)){while(1){b=Rc(b-12|0);if((b|0)!=(a|0))continue;break}c=J[g+8>>2]}J[g+12>>2]=a;uc(c)}Rc(d)}fc=g+32|0;return}b=Z()|0;_A(g+8|0)}Rc(d);ba(b|0);B()}function LN(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;c=J[a+36>>2];n=J[a+40>>2];k=J[a+28>>2];o=J[a+24>>2];q=k+P(o,40)|0;a:{if(b){r=8;if((o|0)<=0)break a;a=k;while(1){J[a+24>>2]=J[a+20>>2];J[a+28>>2]=J[a+8>>2];a=a+40|0;if(q>>>0>a>>>0)continue;break}break a}r= +4;if((o|0)<=0)break a;a=k;while(1){J[a+24>>2]=J[a+16>>2];J[a+28>>2]=J[a+4>>2];a=a+40|0;if(q>>>0>a>>>0)continue;break}}if((c|0)>0){t=(c<<2)+n|0;while(1){i=J[n>>2];a=i;j=J[a+36>>2];b:{if(a>>>0>j>>>0)break b;c:{while(1){d:{if(L[a>>1]&r){c=a;e:while(1){d=c;h=d>>>0>=j>>>0;if(!h){c=d+40|0;if(L[d+40>>1]&r)continue}g=1;f:{g:{e=d+40|0;c=e;f=j>>>0>>0;if(!f)while(1){if(L[c>>1]&r)break g;g=g+1|0;c=d+P(g,40)|0;if(j>>>0>=c>>>0)continue;break}if((a|0)!=(d|0))break f;c=J[a+24>>2];e=J[a+28>>2];if((c|0)==(e|0))break b; +e=c-e|0;if(a>>>0>i>>>0)break d;break c}if(g>>>0<2)continue;g=d+P(g,40)|0;l=g-40|0;h=J[d+28>>2]>J[g+28>>2];g=h?d:c;f=J[g+24>>2];g=J[g+28>>2];p=f-g|0;d=h?c:d;h=J[d+24>>2];d=J[d+28>>2];s=h-d|0;if(!((f|0)!=(h|0)&(d|0)!=(g|0)))while(1){f=J[e+28>>2];J[e+24>>2]=(d|0)<(f|0)?(f|0)<(g|0)?h:f+p|0:f+s|0;e=e+40|0;if(l>>>0>=e>>>0)continue;continue e}u=Cd(f-h|0,g-d|0);while(1){f=J[e+28>>2];h:{if((f|0)<=(d|0)){m=f+s|0;break h}m=f+p|0;if((f|0)>=(g|0))break h;m=Wc(f-d|0,u)+h|0}J[e+24>>2]=m;e=e+40|0;if(l>>>0>=e>>>0)continue; +break}continue}break}i:{if(f|h)break i;c=J[d+28>>2]>J[a+28>>2];g=c?d:a;f=J[g+24>>2];g=J[g+28>>2];l=f-g|0;c=c?a:d;h=J[c+24>>2];c=J[c+28>>2];p=h-c|0;if(!((f|0)!=(h|0)&(c|0)!=(g|0)))while(1){f=J[e+28>>2];J[e+24>>2]=(c|0)<(f|0)?(f|0)<(g|0)?h:f+l|0:f+p|0;e=e+40|0;if(j>>>0>=e>>>0)continue;break i}s=Cd(f-h|0,g-c|0);while(1){f=J[e+28>>2];j:{if((f|0)<=(c|0)){m=f+p|0;break j}m=f+l|0;if((f|0)>=(g|0))break j;m=Wc(f-c|0,s)+h|0}J[e+24>>2]=m;e=e+40|0;if(j>>>0>=e>>>0)continue;break}}if(a>>>0<=k>>>0)break b;g=a-40| +0;if(g>>>0>>0)break b;e=J[d+28>>2]>J[a+28>>2];c=e?d:a;j=J[c+24>>2];c=J[c+28>>2];h=j-c|0;a=e?a:d;e=J[a+24>>2];a=J[a+28>>2];f=e-a|0;if(!((e|0)!=(j|0)&(a|0)!=(c|0)))while(1){d=J[i+28>>2];J[i+24>>2]=(a|0)<(d|0)?(c|0)>(d|0)?e:d+h|0:d+f|0;i=i+40|0;if(g>>>0>=i>>>0)continue;break b}j=Cd(j-e|0,c-a|0);while(1){d=J[i+28>>2];k:{if((d|0)<=(a|0)){l=d+f|0;break k}l=d+h|0;if((c|0)<=(d|0))break k;l=Wc(d-a|0,j)+e|0}J[i+24>>2]=l;i=i+40|0;if(g>>>0>=i>>>0)continue;break}break b}a=a+40|0;if(j>>>0>=a>>>0)continue;break b}break}while(1){J[i+ +24>>2]=e+J[i+28>>2];i=i+40|0;if(i>>>0>>0)continue;break}}c=a+40|0;if(j>>>0>>0)break b;while(1){J[a- -64>>2]=e+J[a+68>>2];a=c;c=a+40|0;if(j>>>0>=c>>>0)continue;break}}n=n+4|0;if(t>>>0>n>>>0)continue;break}}l:{if(b){if((o|0)<=0)break l;while(1){J[k+20>>2]=J[k+24>>2];k=k+40|0;if(q>>>0>k>>>0)continue;break}break l}if((o|0)<=0)break l;while(1){J[k+16>>2]=J[k+24>>2];k=k+40|0;if(q>>>0>k>>>0)continue;break}}}function u4a(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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,K=0,N=0,O=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;j=fc-128|0;fc=j;B=J[a+328>>2]-1|0;x=J[a+448>>2];a:{b:{while(1){k=J[a+144>>2];h=J[a+152>>2];if((k|0)>(h|0))break b;d=J[a+456>>2];if(J[d+20>>2]|(h|0)==(k|0)&M[a+148>>2]>J[a+156>>2]+!J[a+408>>2]>>>0)break b;if(kc[J[d>>2]](a)|0)continue;break}a=0;break a}if(J[a+36>>2]>0){m=J[a+216>>2];while(1){c:{if(!J[m+52>>2])break c;p=J[a+156>>2];d:{if(B>>>0>p>>>0){d=J[m+12>>2];l=d<<1;k=d;break d}d= +J[m+12>>2];h=M[m+32>>2]%(d>>>0)|0;l=h?h:d;k=l}y=k;e:{if(p){C=(kc[J[J[a+4>>2]+32>>2]](a,J[((n<<2)+x|0)+72>>2],P(p-1|0,d),d+l|0,0)|0)+(J[m+12>>2]<<2)|0;break e}C=kc[J[J[a+4>>2]+32>>2]](a,J[((n<<2)+x|0)+72>>2],0,l,0)|0}if((y|0)<=0)break c;h=n<<2;W=J[(h+J[a+468>>2]|0)+4>>2];X=y-1|0;q=J[x+112>>2]+P(n,24)|0;f=J[m+80>>2];d=L[f+4>>1];D=d<<8;E=d<<7;d=L[f+18>>1];F=d<<8;G=d<<7;k=L[f>>1];Y=P(k,5);d=L[f+32>>1];H=d<<8;K=d<<7;N=P(k,9);d=L[f+16>>1];O=d<<8;Q=d<<7;d=L[f+2>>1];R=d<<8;S=d<<7;T=P(k,36);z=J[b+h>>2];o= +0;while(1){h=(o<<2)+C|0;l=J[h>>2];s=o|p?J[h-4>>2]:l;U=J[m+28>>2]-1|0;t=0;f:{if(p>>>0>=B>>>0){d=l;if((o|0)==(X|0))break f}d=J[h+4>>2]}u=d;v=I[u>>1];d=v;r=I[l>>1];k=r;w=I[s>>1];h=w;A=0;while(1){g=h;h=w;V=k;k=r;f=d;d=v;xc(j,l,128);if(t>>>0>>0){v=I[u+128>>1];r=I[l+128>>1];w=I[s+128>>1]}i=J[q+4>>2];if(!(L[j+2>>1]|!i)){c=P(V-r|0,T);g:{if((c|0)>=0){e=(c+S|0)/(R|0)|0;if((i|0)<=0)break g;c=1<(e|0)?e:c-1|0;break g}e=(S-c|0)/(R|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+2>>1]=e}i=J[q+ +8>>2];if(!(L[j+16>>1]|!i)){c=P(h-d|0,T);h:{if((c|0)>=0){e=(c+Q|0)/(O|0)|0;if((i|0)<=0)break h;c=1<(e|0)?e:c-1|0;break h}e=(Q-c|0)/(O|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+16>>1]=e}i=J[q+12>>2];if(!(L[j+32>>1]|!i)){c=P((h-(k<<1)|0)+d|0,N);i:{if((c|0)>=0){e=(c+K|0)/(H|0)|0;if((i|0)<=0)break i;c=1<(e|0)?e:c-1|0;break i}e=(K-c|0)/(H|0)|0;c=1<0?(c|0)>(e|0)?e:c-1|0:e)|0}I[j+32>>1]=e}c=J[q+16>>2];if(!(L[j+18>>1]|!c)){f=P((g-(f+w|0)|0)+v|0,Y);j:{if((f|0)>= +0){g=(f+G|0)/(F|0)|0;if((c|0)<=0)break j;f=1<(g|0)?g:f-1|0;break j}g=(G-f|0)/(F|0)|0;f=1<0?(f|0)>(g|0)?g:f-1|0:g)|0}I[j+18>>1]=g}c=J[q+20>>2];if(!(L[j+4>>1]|!c)){f=P((V-(k<<1)|0)+r|0,N);k:{if((f|0)>=0){g=(f+E|0)/(D|0)|0;if((c|0)<=0)break k;f=1<(g|0)?g:f-1|0;break k}g=(E-f|0)/(D|0)|0;f=1<0?(f|0)>(g|0)?g:f-1|0:g)|0}I[j+4>>1]=g}kc[W|0](a,m,j,z,A);u=u+128|0;s=s+128|0;l=l+128|0;A=J[m+36>>2]+A|0;t=t+1|0;if(U>>>0>=t>>>0)continue;break}z=(J[m+40>>2]<<2)+z| +0;o=o+1|0;if((y|0)!=(o|0))continue;break}}m=m+88|0;n=n+1|0;if((n|0)>2])continue;break}}b=J[a+156>>2]+1|0;J[a+156>>2]=b;a=b>>>0>2]?3:4}fc=j+128|0;return a|0}function mk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;J[a+8>>2]=0;J[a>>2]=2392932;c=J[685894];J[a+20>>2]=0;J[a+12>>2]=c;J[a+16>>2]=2438824;J[699344]=0;c=_(4,52)|0;e=J[699344];J[699344]=0;g=a+8|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((e|0)!=1){J[699344]=0;e=Io(c,8,6246,6247,6248,6249,6250);f=J[699344];J[699344]= +0;if((f|0)==1)break n;J[e+4>>2]=J[e+4>>2]+1;c=J[a+20>>2];o:{if(!c)break o;f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(f)break o;kc[J[J[c>>2]+4>>2]](c)}J[a+20>>2]=e;J[a+24>>2]=2438824;J[a+28>>2]=0;J[699344]=0;c=_(4,52)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;J[699344]=0;e=Io(c,8,6246,6247,6248,6249,6250);f=J[699344];J[699344]=0;if((f|0)==1)break l;J[e+4>>2]=J[e+4>>2]+1;c=J[a+28>>2];p:{if(!c)break p;f=J[c+4>>2]-1|0;J[c+4>>2]=f;if(f)break p;kc[J[J[c>>2]+4>>2]](c)}H[a+32|0]=0;J[a+28>>2]=e;if(!K[b+32|0]){J[699344]= +0;da(5282,b|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break f;if(!K[b+32|0])break i}J[699344]=0;ca(5401,d+4|0,b|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[d+4>>2];if(!b)break k;c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break j;b=Z()|0;break e}b=Z()|0;J[a+16>>2]=2392964;break b}b=Z()|0;uc(c);J[a+16>>2]=2392964;d=J[a+20>>2];if(!d)break b;c=J[d+4>>2]-1|0;J[d+4>>2]=c;if(!c)kc[J[J[d>>2]+4>>2]](d);J[a+20>>2]=0;break b}b=Z()|0;J[a+24>>2]=2392964;break c}b= +Z()|0;uc(c);J[a+24>>2]=2392964;d=J[a+28>>2];if(!d)break c;c=J[d+4>>2]-1|0;J[d+4>>2]=c;if(!c)kc[J[J[d>>2]+4>>2]](d);J[a+28>>2]=0;break c}J[d+12>>2]=0}J[699344]=0;aa(5153,g|0,d+12|0)|0;b=J[699344];J[699344]=0;q:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break q;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break q;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break q}break a}b=Z()|0;zc(d+12|0);break e}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2743576)>> +2];wc(d+4|0);J[699344]=0;da(5282,a|0,0);b=J[699344];J[699344]=0;if((b|0)!=1)break h;break f}b=J[b+8>>2];r:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+4|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break f;break r}J[d+4>>2]=0}J[699344]=0;aa(5153,g|0,d+4|0)|0;b=J[699344];J[699344]=0;s:{if((b|0)!=1){b=J[d+4>>2];J[d+4>>2]=0;if(!b)break s;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g=J[699344];J[699344]=0;if((g|0)!=1){if(c)break s;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break s}break a}b= +Z()|0;zc(d+4|0);break d}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2743576)>>2]}fc=d+16|0;return a|0}b=Z()|0;break d}b=Z()|0;break d}wc(d+4|0)}J[a+24>>2]=2392964;d=J[a+28>>2];if(!d)break c;c=J[d+4>>2]-1|0;J[d+4>>2]=c;if(!c)kc[J[J[d>>2]+4>>2]](d);J[a+28>>2]=0}J[a+16>>2]=2392964;d=J[a+20>>2];if(!d)break b;c=J[d+4>>2]-1|0;J[d+4>>2]=c;if(!c)kc[J[J[d>>2]+4>>2]](d);J[a+20>>2]=0}wc(g);ba(b|0);B()}ea(0)|0;Bc();B()}function l6(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,w=0,x=0,y=0;g=fc-16|0;fc=g;j=J[b+28>>2];i=J[a+736>>2];J[g>>2]=0;a:{b:{if(i)c:{if(!J[a+704>>2])break c;if(kc[J[a+516>>2]](a,1668702578,b,g+8|0)|0)break c;e=af(b,J[g+8>>2]);J[g+12>>2]=e;if(e)break c;e=J[b>>2];f=J[b+32>>2];d:{if((Fh(b)|0)!=65536){J[g+12>>2]=0;break d}n=_c(j,4,0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;o=_c(j,4,0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;p=_c(j,4,0,J[i>>2],0,g+12|0);if(J[g+12>>2])break d;d=tf(b);r=d&4095;c=tf(b);h=J[g+8>>2];if((r<<2)+c>>>0>h>>>0){J[g+12>>2]=8;break d}k= +c+(f-e|0)|0;if(d<<16>>16<0){d=J[b+32>>2];e=J[b>>2];f=J[b+36>>2];J[b+32>>2]=f-e>>>0>k>>>0?e+k|0:f;q=LD(b,h,g);c=J[b+32>>2];f=J[b>>2];e=d-e|0;d=J[b+36>>2];J[b+32>>2]=e>>>0>>0?f+e|0:d;k=c-f|0}m=_c(j,4,0,J[a+700>>2],0,g+12|0);e:{if(J[g+12>>2])break e;if(r){e=0;while(1){v=tf(b);f=tf(b);d=f<<16>>16;f:{if((d|0)<0){c=0;if(!J[i>>2])break f;while(1){x=(c<<2)+n|0,y=tf(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}break f}c=f&4095;if(c>>>0>=M[i+60>>2]){J[g+12>>2]=8;break e}h=J[i+64>>2]; +if(!h){J[g+12>>2]=8;break e}l=c;c=J[i>>2];xc(n,h+(P(l,c)<<2)|0,c<<2)}g:{if(!(f&16384))break g;c=0;if(!J[i>>2])break g;while(1){x=(c<<2)+o|0,y=tf(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;h=J[i>>2];if(c>>>0>>0)continue;break}c=0;if(!h)break g;while(1){x=(c<<2)+p|0,y=tf(b)<<16>>16<<2,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}}s=k6(i,d&65535,n,o,p);if(s){h=J[b+32>>2];c=J[b>>2];d=J[b+36>>2];J[b+32>>2]=d-c>>>0>k>>>0?c+k|0:d;t=h-c|0;h:{if(f&8192){f=LD(b,J[g+8>>2],g+4|0);d=J[g+4>>2];e=f;break h}d=J[g>> +2];J[g+4>>2]=d;f=e;e=q}h=PM(b,J[g+8>>2],d?d:J[a+700>>2]);i:{j:{k:{if(!e|!h)break k;if((f|0)!=-1){c=0;if(!d)break j;while(1){l=L[e+(c<<1)>>1];if(l>>>0>2]){l=(l<<2)+m|0;w=J[l>>2];x=l,y=Wc(J[h+(c<<2)>>2],s)+w|0,J[x>>2]=y}c=c+1|0;if((d|0)!=(c|0))continue;break}break k}e=-1;if(J[a+700>>2]!=(d|0))break i;c=0;if(!d)break i;while(1){e=c<<2;d=e+m|0;l=J[d>>2];x=d,y=Wc(J[e+h>>2],s)+l|0,J[x>>2]=y;c=c+1|0;if(c>>>0>2])continue;break}}e=-1;if((f|0)==-1)break i}if(f)kc[J[j+8>>2]](j,f);e=0}if(h)kc[J[j+ +8>>2]](j,h);f=J[b>>2];d=J[b+36>>2];J[b+32>>2]=d-f>>>0>t>>>0?f+t|0:d}k=k+v|0;u=u+1|0;if((u|0)!=(r|0))continue;break}}f=J[a+700>>2];if(!f)break e;d=J[a+704>>2];e=0;if((f|0)!=1){k=f&-2;c=0;while(1){i=e<<2;h=i+d|0;J[h>>2]=J[h>>2]+(J[i+m>>2]+512>>10);i=i|4;h=i+d|0;J[h>>2]=J[h>>2]+(J[i+m>>2]+512>>10);e=e+2|0;c=c+2|0;if((k|0)!=(c|0))continue;break}}if(!(f&1))break e;e=e<<2;f=e+d|0;J[f>>2]=J[f>>2]+(J[e+m>>2]+512>>10)}ve(b);if((q|0)==-1)break a;break b}ve(b);break b}J[g+12>>2]=0}if(q)kc[J[j+8>>2]](j,q)}if(n)kc[J[j+ +8>>2]](j,n);if(o)kc[J[j+8>>2]](j,o);if(p)kc[J[j+8>>2]](j,p);if(m)kc[J[j+8>>2]](j,m);M7(a+108|0,1750);fc=g+16|0;return J[g+12>>2]}function b1a(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;k=J[a+4>>2];s=k+37|0;c=J[k+44>>2];g=c?c:64;m=J[a+20>>2];f=J[a+16>>2];n=J[a+12>>2];d=J[a+8>>2];j=H[k+36|0];a:{b:{r=J[k+48>>2];h=r&3;c:{if(!h){p=m;break c}if((j|0)<=0){p=m;break c}p=m;if(f>>>0>>0)break b}c=0;break a}c=1}d:{e:{f:{g:{h:while(1){i:{j:{if(!c){c=p-f>>1;l=n- +d|0;h=(c|0)<(l|0)?c:l;k:{if((h|0)<=0)break k;while(1){c=K[d|0];l:{if(c-80<<24>>24>=0){c=(c+g|0)-144|0;if((c|0)>12287)break k;I[f>>1]=c;g=c&-128|64;break l}if(c>>>0>32)break k;I[f>>1]=c;g=(c|0)!=32?64:g}d=d+1|0;f=f+2|0;c=(h|0)>1;h=h-1|0;if(c)continue;break}h=0}c=0;break j}l=r>>2;while(1){if(d>>>0>=n>>>0){c=d;break g}c=K[d|0];H[(j<<24>>24)+s|0]=c;if(c>>>0<=32)c=H[c+755552|0];else c=c-13|0;m:{n:{o:{h=h-1|0;switch(h|0){case 0:break m;case 1:break o;default:break n}}c=P(c,243);break m}c=P(c,59049)}j=j+ +1|0;d=d+1|0;if((c|0)<0){c=d;break i}l=c+l|0;if(h)continue;break}h=0;j=0;c=d;i=g+l|0;if(i>>>0>1114111)break i;c=1}while(1){p:{q:{r:{s:{if(!c){t:{if(f>>>0>=m>>>0){c=d;break t}c=d;while(1){if(c>>>0>=n>>>0)break g;d=c+1|0;e=K[c|0];if(e-80<<24>>24>=0){c=d;break q}u:{if(e>>>0<33){c=d;break u}v:{if(!((e-37&255)>>>0>213|d>>>0>=n>>>0)){o=d;d=c;break v}if((e|0)==255){while(1){if(d>>>0>=n>>>0){g=64;c=d;break g}c=d+1|0;e=K[d|0];if(e-80<<24>>24>=0){g=64;break q}if(e>>>0<33){g=64;break u}if(!((e-37&255)>>>0>213| +c>>>0>=n>>>0)){g=64;o=c;break v}d=c;if((e|0)==255)continue;break}g=64}H[s|0]=e;w:{x:{if(e>>>0>=80){if(e>>>0<=250){j=P(e,243)-50480|0;h=1;break w}j=187660;h=3;if(e>>>0>253)break w;j=P(e,59049)-14810786|0;break x}if(e>>>0>=37){j=P(e,243)-19504|0;h=1;break w}j=-14536567;h=3;if(e>>>0<34)break w;j=P(e,59049)-2195326|0}h=2}r=h|j<<2;j=1;c=1;continue h}l=P(e,243)+(e>>>0>143?-50480:-19504)|0;c=d+2|0;y:{d=K[d+1|0];z:{if(d>>>0>=33){i=d-13|0;break z}i=H[d+755552|0];q=d&31;if((d&63)>>>0>=32)d=1>>>q|0;else d=((1<< +q)-1&1)<<32-q|201392001>>>q;if(d&1)break y}i=(g+l|0)+i|0;if(i>>>0>=1114112)break y;break p}H[k+37|0]=e;H[k+38|0]=K[o|0];j=2;break i}I[f>>1]=e;g=(e|0)!=32?64:g;f=f+2|0;if(m>>>0>f>>>0)continue;break}}if(c>>>0>>0)break s;break g}A:{B:{if(i-55204>>>0>=4294924444){g=12400;if(i>>>0<12448)break B;g=30481;if(i-19968>>>0<20902)break B;g=49617;if(i>>>0>44031)break B;g=i&2147483520|64;break B}g=i&2147483520|64;if(i>>>0>65535)break A}I[f>>1]=i;f=f+2|0;break r}I[f>>1]=(i>>>10|0)-10304;c=i&1023|-9216;o=f+2| +0;if(o>>>0>>0){I[f+2>>1]=c;f=f+4|0;break r}H[k+65|0]=1;I[k+116>>1]=c;c=d;f=o}J[b>>2]=15;break e}c=0;continue}i=(e+g|0)-144|0;if((i|0)>12287)break p;I[f>>1]=i;f=f+2|0;g=i&-128|64;p=J[a+20>>2];d=c;c=0;continue h}d=c;c=1;continue}}break}J[b>>2]=12;break f}if(J[b>>2]!=12)break e}J[k+44>>2]=64;b=0;break d}J[k+44>>2]=g;b=l<<2|h}H[k+36|0]=j;J[k+48>>2]=b;J[a+16>>2]=f;J[a+8>>2]=c}function b8(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;k=fc-16|0;fc=k;a:{b:{c:{d:{e:{j=J[b+8>>2];if(M[b+ +4>>2]<=j+3>>>0)break e;o=J[a>>2];f=J[b+20>>2];if(f){e=k+12|0;if((kc[f|0](b,j,e,4)|0)!=4)break e;h=J[b+8>>2];break d}e=J[b>>2];if(e){e=e+j|0;h=j;break d}J[b+8>>2]=j+4;e=2;break c}e=85;break a}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);i=h+4|0;J[b+8>>2]=i;e=2;if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))!=1954115633)break c;f=J[b+4>>2];if(f>>>0<=h+5>>>0)break b;f:{g:{h:{g=J[b+20>>2];i:{if(g){e=k+12|0;if((kc[g|0](b,i,e,2)|0)!=2)break b;i=J[b+8>>2];h=J[b+20>>2];break i}e=J[b>>2];if(!e)break h;e= +e+i|0;h=0}f=K[e+1|0];e=K[e|0];J[b+8>>2]=i+2;g=i+8|0;p=e<<8|f;if(!h){f=J[b+4>>2];break g}e=85;if(!(kc[h|0](b,g,0,0)|0))break f;break a}J[b+8>>2]=h+6;g=h+12|0}e=85;if(f>>>0>>0)break a}J[b+8>>2]=g;e=142;if(!p)break a;l=(c|0)>0?c&65535:c;n=-1;j:{k:{l:{while(1){h=J[b+4>>2];if(h>>>0<=g+3>>>0)break l;m:{n:{o:{p:{f=J[b+20>>2];q:{if(f){c=k+12|0;if((kc[f|0](b,g,c,4)|0)!=4)break l;g=J[b+8>>2];h=J[b+20>>2];break q}c=J[b>>2];if(!c)break p;c=c+g|0;h=0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[b+8>> +2]=g+4;i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=g+8|0;if(!h){h=J[b+4>>2];break o}if(!(kc[h|0](b,c,0,0)|0))break n;e=85;break a}J[b+8>>2]=g+4;c=g+8|0;i=0}if(c>>>0<=h>>>0)break m;e=85;break a}h=J[b+4>>2]}J[b+8>>2]=c;r:{s:{t:{if(g+11>>>0>=h>>>0)break t;g=J[b+20>>2];u:{if(g){f=k+12|0;if((kc[g|0](b,c,f,4)|0)!=4)break t;h=J[b+4>>2];c=J[b+8>>2];break u}f=J[b>>2];if(!f)break s;f=c+f|0}f=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);break r}e=85;break a}f=0}g= +c+4|0;J[b+8>>2]=g;v:{w:{x:{if(c+7>>>0>=h>>>0)break x;h=J[b+20>>2];y:{if(h){c=k+12|0;if((kc[h|0](b,g,c,4)|0)!=4)break x;g=J[b+8>>2];break y}c=J[b>>2];if(!c)break w;c=c+g|0}c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);break v}e=85;break a}c=0}g=g+4|0;J[b+8>>2]=g;z:{A:{if((i|0)!=1415139377){if((i|0)!=1128875040)break A;c=c-22|0;f=f+22|0;q=1;if((l|0)<0)break z;n=n+1|0;break A}c=c-24|0;f=f+24|0;q=0;if((l|0)<0)break z;n=n+1|0}if((l|0)==(n|0)&(l|0)>=0)break z; +m=m+1|0;if((m|0)==(p|0))break a;continue}break}e=8;h=J[b+4>>2];if(h>>>0>>0|h-f>>>0>>0)break a;m=f+j|0;f=J[b+20>>2];B:{if(f){e=85;if(!(kc[f|0](b,m,0,0)|0))break B;break a}e=85;if(h>>>0>>0)break a}J[b+8>>2]=m;if((c|0)<=0){e=6;if(c)break a;g=0;e=zg(b,0,0);if(e)break j;break k}g=kc[J[o+4>>2]](o,c)|0;if(!g){e=64;break a}f=Ac(g,0,c);e=zg(b,f,c);if(!e)break k;kc[J[o+8>>2]](o,f);break j}e=85;break a}e=oN(a,g,c,l>>31&l,q?241637:241768,d)}if((e&255)!=2)break a}a=e;c=J[b+20>>2];C:{if(c){e=85;if(!(kc[c| +0](b,j,0,0)|0))break C;break a}e=85;if(M[b+4>>2]>>0)break a}J[b+8>>2]=j;e=a;break a}e=85}fc=k+16|0;return e}function y1(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=fc+-64|0;fc=h;a:{b:{c:{d:{e:{f:{e=J[a+36>>2];b=J[e+16>>2];if(!(K[b|0]!=38|K[b+1|0]!=35)){f=J[a+200>>2];if(K[b+2|0]!=120)break f;J[a+200>>2]=f+3;J[e+16>>2]=b+3;J[e+32>>2]=J[e+32>>2]+3;b=K[b+3|0];if((b|0)==37){Yd(a);e=J[a+36>>2];b=K[J[e+16>>2]]}g:{if(b&255)break g;if((Nd(e)|0)>0)break g;He(a)}e=0;c=J[a+36>>2];if(!(J[a+292>>2]|(J[c+20>>2]-J[c+ +16>>2]|0)>249)){Rd(a);c=J[a+36>>2]}b=J[c+16>>2];h:{if(K[b|0]==59)break h;while(1){if((g|0)<21)f=g+1|0;else{if(!(J[a+292>>2]|(J[c+20>>2]-b|0)>249))Rd(a);if(J[a+172>>2]==-1)break b;c=J[a+36>>2];f=0}b=-48;i:{c=K[J[c+16>>2]];if((c-48&255)>>>0<10)break i;j:{if(c>>>0>=97){if(c>>>0>102)break j;b=-87;if((f|0)>=20)break j;break i}if(c>>>0<65|c>>>0>70)break j;b=-55;if((f|0)<20)break i}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){d=0;break h}J[a+84>>2]=6;J[h>>2]=13387;d=0;Hc(0,0,0,a,0,1,6,3,0,0,0,0,32906,h);J[a+12>> +2]=0;if(J[a+288>>2])break h;J[a+212>>2]=1;break h}d=c+((d<<4)+b|0)|0;e=d>>>0>1114111?d:e;g=f+1|0;Zd(a);c=J[a+36>>2];b=J[c+16>>2];if(K[b|0]!=59)continue;break}}c=J[a+36>>2];g=J[c+16>>2];if(K[g|0]==59)break e;break d}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break c;J[a+84>>2]=8;J[h+48>>2]=13453;Hc(0,0,0,a,0,1,8,3,0,0,0,0,32906,h+48|0);J[a+12>>2]=0;if(J[a+288>>2])break c;J[a+212>>2]=1;break c}J[a+200>>2]=f+2;J[e+16>>2]=b+2;J[e+32>>2]=J[e+32>>2]+2;b=K[b+2|0];if((b|0)==37){Yd(a);e=J[a+36>>2];b=K[J[e+16>>2]]}k:{if(b& +255)break k;if((Nd(e)|0)>0)break k;while(1){d=J[a+40>>2];if((d|0)<2)break k;l:{m:{n:{if(!J[693384]){b=d-1|0;J[a+40>>2]=b;e=J[a+48>>2];break n}J[h+32>>2]=d;e=0;kc[J[663297]](J[693366],36125,h+32|0);d=J[a+40>>2];if((d|0)<=0)break l;b=d-1|0;J[a+40>>2]=b;e=J[a+48>>2];g=0;f=0;if((d|0)==1)break m}g=J[((d<<2)+e|0)-8>>2];f=b}J[a+36>>2]=g;b=(f<<2)+e|0;e=J[b>>2];J[b>>2]=0}th(e);b=J[a+36>>2];if(K[J[b+16>>2]])break k;if((Nd(b)|0)<=0)continue;break}}e=0;d=0;c=J[a+36>>2];if(!(J[a+292>>2]|(J[c+20>>2]-J[c+16>>2]| +0)>249)){Rd(a);c=J[a+36>>2]}b=J[c+16>>2];o:{if(K[b|0]==59)break o;g=0;while(1){if((g|0)<21)b=g+1|0;else{if(!(J[a+292>>2]|(J[c+20>>2]-b|0)>249))Rd(a);if(J[a+172>>2]==-1)break b;c=J[a+36>>2];b=0}f=K[J[c+16>>2]];if((f-48&255)>>>0<=9){d=(f+P(d,10)|0)-48|0;e=d>>>0>1114111?d:e;g=b+1|0;Zd(a);c=J[a+36>>2];b=J[c+16>>2];if(K[b|0]!=59)continue;break o}break}if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){d=0;break o}J[a+84>>2]=7;J[h+16>>2]=13422;d=0;Hc(0,0,0,a,0,1,7,3,0,0,0,0,32906,h+16|0);J[a+12>>2]=0;if(J[a+288>>2])break o; +J[a+212>>2]=1}c=J[a+36>>2];g=J[c+16>>2];if(K[g|0]!=59)break d}J[c+32>>2]=J[c+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;J[c+16>>2]=g+1}p:{if(d>>>0<=255){if(d>>>0>31)break p;if(d>>>0>13)break c;if(1<>>0>55295&d-57344>>>0>8189&d-65536>>>0>1048575)break c}if(!e)break a}El(a,9,36280,d)}d=0}fc=h- -64|0;return d}function zz(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=a+b|0;c=J[a+4>>2];a:{b:{if(c&1)break b;if(!(c&3))break a;c=J[a>>2];b=c+b|0;c:{d:{e:{a=a-c|0;if((a|0)!=J[699225]){if(c>>> +0<=255){d=J[a+8>>2];e=J[a+12>>2];if((d|0)!=(e|0))break e;i=2796880,j=J[699220]&zEb(-2,c>>>3|0),J[i>>2]=j;break b}h=J[a+24>>2];c=J[a+12>>2];if((c|0)!=(a|0)){d=J[a+8>>2];J[d+12>>2]=c;J[c+8>>2]=d;break c}e=a+20|0;d=J[e>>2];if(!d){d=J[a+16>>2];if(!d)break d;e=a+16|0}while(1){g=e;c=d;e=c+20|0;d=J[e>>2];if(d)continue;e=c+16|0;d=J[c+16>>2];if(d)continue;break}J[g>>2]=0;break c}c=J[f+4>>2];if((c&3)!=3)break b;J[699222]=b;J[f+4>>2]=c&-2;J[a+4>>2]=b|1;J[f>>2]=b;return}J[d+12>>2]=e;J[e+8>>2]=d;break b}c=0}if(!h)break b; +d=J[a+28>>2];e=(d<<2)+2797184|0;f:{if(J[e>>2]==(a|0)){J[e>>2]=c;if(c)break f;i=2796884,j=J[699221]&zEb(-2,d),J[i>>2]=j;break b}J[h+(J[h+16>>2]==(a|0)?16:20)>>2]=c;if(!c)break b}J[c+24>>2]=h;d=J[a+16>>2];if(d){J[c+16>>2]=d;J[d+24>>2]=c}d=J[a+20>>2];if(!d)break b;J[c+20>>2]=d;J[d+24>>2]=c}g:{h:{i:{j:{c=J[f+4>>2];if(!(c&2)){if(J[699226]==(f|0)){J[699226]=a;b=J[699223]+b|0;J[699223]=b;J[a+4>>2]=b|1;if(J[699225]!=(a|0))break a;J[699222]=0;J[699225]=0;return}if(J[699225]==(f|0)){J[699225]=a;b=J[699222]+ +b|0;J[699222]=b;J[a+4>>2]=b|1;J[a+b>>2]=b;return}b=(c&-8)+b|0;if(c>>>0<=255){e=c>>>3|0;c=J[f+12>>2];d=J[f+8>>2];if((c|0)==(d|0)){i=2796880,j=J[699220]&zEb(-2,e),J[i>>2]=j;break h}J[d+12>>2]=c;J[c+8>>2]=d;break h}h=J[f+24>>2];c=J[f+12>>2];if((f|0)!=(c|0)){d=J[f+8>>2];J[d+12>>2]=c;J[c+8>>2]=d;break i}e=f+20|0;d=J[e>>2];if(!d){d=J[f+16>>2];if(!d)break j;e=f+16|0}while(1){g=e;c=d;e=c+20|0;d=J[e>>2];if(d)continue;e=c+16|0;d=J[c+16>>2];if(d)continue;break}J[g>>2]=0;break i}J[f+4>>2]=c&-2;J[a+4>>2]=b|1; +J[a+b>>2]=b;break g}c=0}if(!h)break h;d=J[f+28>>2];e=(d<<2)+2797184|0;k:{if(J[e>>2]==(f|0)){J[e>>2]=c;if(c)break k;i=2796884,j=J[699221]&zEb(-2,d),J[i>>2]=j;break h}J[h+(J[h+16>>2]==(f|0)?16:20)>>2]=c;if(!c)break h}J[c+24>>2]=h;d=J[f+16>>2];if(d){J[c+16>>2]=d;J[d+24>>2]=c}d=J[f+20>>2];if(!d)break h;J[c+20>>2]=d;J[d+24>>2]=c}J[a+4>>2]=b|1;J[a+b>>2]=b;if(J[699225]!=(a|0))break g;J[699222]=b;return}if(b>>>0<=255){c=(b&-8)+2796920|0;d=J[699220];b=1<<(b>>>3);l:{if(!(d&b)){J[699220]=b|d;b=c;break l}b=J[c+ +8>>2]}J[c+8>>2]=a;J[b+12>>2]=a;J[a+12>>2]=c;J[a+8>>2]=b;return}d=31;if(b>>>0<=16777215){c=S(b>>>8|0);d=((b>>>38-c&1)-(c<<1)|0)+62|0}J[a+28>>2]=d;J[a+16>>2]=0;J[a+20>>2]=0;c=(d<<2)+2797184|0;m:{e=J[699221];g=1<>2]=a;J[a+24>>2]=c;break n}d=b<<((d|0)!=31?25-(d>>>1|0)|0:0);c=J[c>>2];while(1){e=c;if((J[c+4>>2]&-8)==(b|0))break m;g=d>>>29|0;d=d<<1;g=c+(g&4)|0;c=J[g+16>>2];if(c)continue;break}J[g+16>>2]=a;J[a+24>>2]=e}J[a+12>>2]=a;J[a+8>>2]=a;return}b=J[e+8>>2];J[b+12>> +2]=a;J[e+8>>2]=a;J[a+24>>2]=0;J[a+12>>2]=e;J[a+8>>2]=b}}function CLa(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=fc-48|0;fc=e;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=c;J[a+12>>2]=0;J[a+16>>2]=0;j=wl(b,c,0,e+32|0,0);a:{if(J[j>>2]!=8)break a;c=J[j+8>>2];d=kc[J[J[c>>2]+76>>2]](c)|0;c=e+16|0;if(J[Ec(d,778100,c,0)>>2]!=1){yc(c);break a}J[a+4>>2]=J[e+24>>2];c=e+16|0;yc(c);if(J[a+4>>2]<=0)break a;d=J[j+8>>2];if(J[Ec(kc[J[J[d>>2]+76>>2]](d)|0, +778465,c,0)>>2]!=1){yc(c);break a}i=J[e+24>>2];yc(e+16|0);if((i|0)<0)break a;g=J[a+4>>2];if((g|0)>=1000001){Cc(1,-1,779893,0);break a}h=g<<4;d=vc(g>>>0>268435455?-1:h);b:{if(!g)break b;c=d;k=g&7;if(k)while(1){J[c>>2]=13;c=c+16|0;f=f+1|0;if((k|0)!=(f|0))continue;break}if((g-1&268435455)>>>0<7)break b;f=d+h|0;while(1){J[c+112>>2]=13;J[c+96>>2]=13;J[c+80>>2]=13;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;c=c+128|0;if((f|0)!=(c|0))continue;break}}J[a+8>>2]=d;m=a,n=Gd(g,4),J[m+12>> +2]=n;g=Gd(J[a+4>>2],4);c=J[j+8>>2];kc[J[J[c>>2]+20>>2]](c);J[e+16>>2]=5;c=vc(40);d=J[j+8>>2];J[699344]=0;f=e+16|0;d=vw(c,d,f,1,i);h=J[699344];J[699344]=0;c:{d:{e:{f:{g:{h:{if((h|0)!=1){c=vc(160);J[699344]=0;h=ga(3669,c|0,b|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;c=vc(56);J[699344]=0;d=ha(3467,c|0,b|0,h|0,0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break h;i:{if(J[a+4>>2]<=0)break i;rg(d,f,1,0,0,0,0,0,0);rg(d,e,1,0,0,0,0,0,0);if(J[e+16>>2]!=1|J[e>>2]!=1)break e;J[J[a+12>>2]>>2]=J[e+24>>2]; +J[g>>2]=J[e+8>>2];yc(f);yc(e);if((J[J[a+12>>2]>>2]|J[g>>2])<0)break d;if(J[a+4>>2]<2)break i;c=1;while(1){l=e+16|0;rg(d,l,1,0,0,0,0,0,0);rg(d,e,1,0,0,0,0,0,0);if(J[e+16>>2]!=1|J[e>>2]!=1)break e;f=c<<2;J[f+J[a+12>>2]>>2]=J[e+24>>2];k=f+g|0;J[k>>2]=J[e+8>>2];yc(l);yc(e);if(J[f+J[a+12>>2]>>2]<0)break d;f=J[k>>2];if((f|0)<0|(f|0)>2])break d;c=c+1|0;if((c|0)>2])continue;break}}J_(h);uc(Nk(d));c=J[g>>2];if((c|0)>(i|0)){d=J[j+8>>2];kc[J[J[d>>2]+48>>2]](d,c-i|0)|0}j:{k:{d=J[a+4>>2];if((d|0)> +0){f=0;while(1){J[e+16>>2]=5;c=vc(40);i=J[j+8>>2];l:{if((d-1|0)==(f|0)){J[699344]=0;vw(c,i,e+16|0,0,0);d=J[699344];J[699344]=0;if((d|0)!=1)break l;a=Z()|0;break f}d=g+(f<<2)|0;h=J[d>>2];d=J[d+4>>2];J[699344]=0;vw(c,i,e+16|0,1,d-h|0);d=J[699344];J[699344]=0;if((d|0)!=1)break l;a=Z()|0;break f}d=vc(160);J[699344]=0;i=ga(3669,d|0,b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;c=vc(56);J[699344]=0;d=ha(3467,c|0,b|0,i|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break j;rg(d,J[a+8>>2]+(f<<4)|0,0, +0,0,0,0,0,0);J_(i);uc(Nk(d));d=J[a+4>>2];f=f+1|0;if((d|0)>(f|0))continue;break}}Mc(g);J[a+16>>2]=1;break c}c=d;a=Z()|0;break f}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0;break f}a=Z()|0}uc(c);ba(a|0);B()}yc(e+16|0);yc(e)}uc(Nk(d));Mc(g)}b=J[j+8>>2];kc[J[J[b>>2]+24>>2]](b)}yc(j);fc=e+48|0;return a|0}function Xtb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;if(K[a+286|0]|!K[a+285|0]|K[a+288|0]){Jc(a,1029,0,0);return 1029}if(c>>> +0>=21){Jc(a,1028,0,0);return 1028}h=1;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(c>>>0>20)break k;i=1;l:{if(!(1<>>0>5)break l;h=0;if(K[d+8|0]|K[d+10|0]|(K[d+12|0]|K[d+14|0]))break l;if(K[d+16|0])break l}g=K[d+2|0]|K[d+3|0]<<8;o=g<<8|g>>>8;g=K[d|0]|K[d+1|0]<<8;p=g<<8|g>>>8;g=K[d+5|0];if(c>>>0<7){f=g;h=1;break h}f=K[d+6|0]|K[d+7|0]<<8;i=f<<8|f>>>8;if(c>>>0<9)break b;f=K[d+8|0]|K[d+9|0]<<8;h=f<<8| +f>>>8;if(c>>>0<11)break e;f=K[d+10|0]|K[d+11|0]<<8;k=f<<8|f>>>8;if(c>>>0<13)break d;f=K[d+12|0]|K[d+13|0]<<8;l=f<<8|f>>>8;if(c>>>0<15)break f;f=K[d+14|0]|K[d+15|0]<<8;m=f<<8|f>>>8;if(c>>>0<17)break g;f=K[d+16|0]|K[d+17|0]<<8;j=f<<8|f>>>8;n=19;f=g;if(c>>>0>18)break j;break a}i=h&255|f<<8;c=K[d+15|0]|K[d+16|0]<<8;j=c<<8|c>>>8;c=K[d+13|0]|K[d+14|0]<<8;m=c<<8|c>>>8;c=K[d+11|0]|K[d+12|0]<<8;l=c<<8|c>>>8;c=K[d+9|0]|K[d+10|0]<<8;k=c<<8|c>>>8;c=K[d+7|0]|K[d+8|0]<<8;h=c<<8|c>>>8;c=K[d+2|0]|K[d+3|0]<<8;o=c<< +8|c>>>8;c=K[d|0]|K[d+1|0]<<8;p=c<<8|c>>>8;n=17;break j}f=K[d|0]|K[d+1|0]<<8;p=f<<8|f>>>8;m:{n:{if(c>>>0<3){o=p;break n}f=K[d+2|0]|K[d+3|0]<<8;o=f<<8|f>>>8;if(c>>>0>=5)break m}f=0;break i}g=K[d+4|0];if((c|0)==5){f=g;break i}f=K[d+5|0]|K[d+6|0]<<8;i=f<<8|f>>>8;if(c>>>0<8)break b;f=K[d+7|0]|K[d+8|0]<<8;h=f<<8|f>>>8;if(c>>>0<10)break e;f=K[d+9|0]|K[d+10|0]<<8;k=f<<8|f>>>8;if(c>>>0<12)break d;f=K[d+11|0]|K[d+12|0]<<8;l=f<<8|f>>>8;if(c>>>0<14)break f;f=K[d+13|0]|K[d+14|0]<<8;m=f<<8|f>>>8;if(c>>>0<16)break g; +f=K[d+15|0]|K[d+16|0]<<8;j=f<<8|f>>>8;n=17;f=g;if(c>>>0<18)break a}f=K[d+n|0];break a}i=1}k=1;l=1;m=1;j=1;break a}f=g;j=h;break a}break c}k=i}l=i}f=g;m=h;j=h;break a}f=g;h=i;k=h;l=h;m=h;j=h}if(!((f&255)>>>0<6&g>>>0<=5)){Jc(a,1064,0,0);return 1064}d=p&65535;n=o&65535;r=i&65535;s=h&65535;t=k&65535;u=l&65535;v=m&65535;w=j&65535;x=f&255;c=kc[J[a+152>>2]](48)|0;o:{if(!c){Jc(a,1,0,0);c=1;break o}J[c+4>>2]=1076;J[c>>2]=1077;q=J[a+700>>2];p:{if(q){J[q+8>>2]=c;break p}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]= +q;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;H[c+46|0]=x;I[c+44>>1]=w;I[c+42>>1]=v;I[c+40>>1]=u;I[c+38>>1]=t;I[c+36>>1]=s;I[c+34>>1]=r;H[c+32|0]=g;I[c+30>>1]=n;I[c+28>>1]=d;c=Y9(a,d,n,g,r,s,t,u,v,w,x)}q:{if(c)break q;c=0;if(!K[a+112|0])break q;c=kc[J[b+4>>2]](a,b,e)|0;if(c)break q;a=J[e>>2];H[a+50|0]=f;I[a+48>>1]=j;I[a+46>>1]=m;I[a+44>>1]=l;I[a+42>>1]=k;I[a+40>>1]=h;I[a+38>>1]=i;H[a+36|0]=g;I[a+34>>1]= +o;I[a+32>>1]=p;c=0}return c|0}function UD(a,b,c){var d=0,e=0,f=0,g=0;d=K[c+52|0]|K[c+53|0]<<8|(K[c+54|0]<<16|K[c+55|0]<<24);H[c+44|0]=d;H[c+45|0]=d>>>8;H[c+46|0]=d>>>16;H[c+47|0]=d>>>24;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[c+12|0]=d;H[c+13|0]=d>>>8;H[c+14|0]=d>>>16;H[c+15|0]=d>>>24;a:{b:{if((b|0)<=0){e=c+32|0;break b}e=c+32|0;d=1;while(1){c:{d:{if((d|0)==1){H[c+16|0]=1;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;Eq(a,K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24),c);b=b-1|0;break d}if((b|0)< +(d|0))break c;H[c+16|0]=d;H[c+17|0]=d>>>8;H[c+18|0]=d>>>16;H[c+19|0]=d>>>24;Eq(a,((K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))+d|0)-2|0,c);b=b-d|0}f=K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24);d=f?d+1|0:1;if((b|0)>0)continue;break a}break}d=(K[c+16|0]|K[c+17|0]<<8|(K[c+18|0]<<16|K[c+19|0]<<24))+1|0;H[c+16|0]=d;H[c+17|0]=d>>>8;H[c+18|0]=d>>>16;H[c+19|0]=d>>>24;if((b|0)==1)b=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);else b=((K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24))+b|0)- +2|0;Eq(a,b,c)}f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24)}d=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24);H[c+44|0]=d;H[c+45|0]=d>>>8;H[c+46|0]=d>>>16;H[c+47|0]=d>>>24;if((d|0)<=(f|0)){b=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=b+(K[c+24|0]|K[c+25|0]<<8|(K[c+26|0]<<16|K[c+27|0]<<24))|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;b=K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24)|(K[c+56|0]|K[c+57|0]<<8|(K[c+58|0]<<16|K[c+59|0]<<24))<>>8;H[c+66|0]=b>>>16;H[c+67|0]=b>>>24;if((e|0)>=8){f=c+72|0;d=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);while(1){e=d+1|0;H[c+328|0]=e;H[c+329|0]=e>>>8;H[c+330|0]=e>>>16;H[c+331|0]=e>>>24;H[(c+d|0)+72|0]=b;d=K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24);if((d|0)>=255){b=J[a+1096>>2];kc[J[J[b>>2]+44>>2]](b,d&255)|0;b=J[a+1096>>2];kc[J[J[b>>2]+16>>2]](b,f,1,K[c+328|0]|K[c+329|0]<<8|(K[c+330|0]<<16|K[c+331|0]<<24))|0;H[c+328|0]=0;H[c+329|0]=0;H[c+330|0]=0;H[c+331|0]= +0;d=0}b=(K[c+64|0]|K[c+65|0]<<8|(K[c+66|0]<<16|K[c+67|0]<<24))>>>8|0;H[c+64|0]=b;H[c+65|0]=b>>>8;H[c+66|0]=b>>>16;H[c+67|0]=b>>>24;g=K[c+68|0]|K[c+69|0]<<8|(K[c+70|0]<<16|K[c+71|0]<<24);e=g-8|0;H[c+68|0]=e;H[c+69|0]=e>>>8;H[c+70|0]=e>>>16;H[c+71|0]=e>>>24;if((g|0)>15)continue;break}a=K[c+48|0]|K[c+49|0]<<8|(K[c+50|0]<<16|K[c+51|0]<<24)}else a=d;H[c+44|0]=a;H[c+45|0]=a>>>8;H[c+46|0]=a>>>16;H[c+47|0]=a>>>24;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]= +0;H[c+20|0]=1;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;a=K[c+28|0]|K[c+29|0]<<8|(K[c+30|0]<<16|K[c+31|0]<<24);H[c+24|0]=a;H[c+25|0]=a>>>8;H[c+26|0]=a>>>16;H[c+27|0]=a>>>24;a=K[c+40|0]|K[c+41|0]<<8|(K[c+42|0]<<16|K[c+43|0]<<24);H[c+36|0]=a;H[c+37|0]=a>>>8;H[c+38|0]=a>>>16;H[c+39|0]=a>>>24}}function G3a(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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,u=0,v=0,w=0,x=0;i=fc-32|0;fc=i;J[i+28>>2]=f;a:{if(!h|J[h>>2]>0)break a;if(d?!a|!b:1){J[h>> +2]=1;break a}b:{k=J[d>>2];c:{if(k>>>0>e>>>0)break c;c=c-(((c>>>0>=2147483649?-1:c+2147483647|0)|0)==(c|0))|0;f=J[b>>2];if((e-k|0)<0&e>>>0>k>>>0|c>>>0>>0)break c;j=c-f|0;if(!(j>>>0<2147483647|c>>>0<=f>>>0))break c;if(!(j&1))break b}J[h>>2]=1;break a}if(H[a+65|0]>0){j=0;m=i+28|0;if(m)j=J[m>>2];f=J[b>>2];n=H[a+65|0];d:{if((n|0)>0){o=a+116|0;while(1){if((c|0)==(f|0)){f=0;while(1){I[o+(f<<1)>>1]=L[o+(l<<1)>>1];f=f+1|0;l=l+1|0;if((n|0)>(l|0))continue;break}H[a+65|0]=f;J[b>>2]=c;if(j)J[m>>2]=j;J[h>>2]= +15;f=1;break d}I[f>>1]=L[o+(l<<1)>>1];if(j){J[j>>2]=-1;j=j+4|0}else j=0;f=f+2|0;l=l+1|0;if((n|0)!=(l|0))continue;break}}H[a+65|0]=0;J[b>>2]=f;if(j)J[m>>2]=j;f=0}if(f)break a}if(!((e|0)!=(k|0)|g)&H[a+254|0]>=0)break a;H[i+2|0]=g;J[i+4>>2]=a;J[i+24>>2]=J[i+28>>2];J[i+12>>2]=e;J[i+8>>2]=k;J[i+16>>2]=J[b>>2];I[i>>1]=28;J[i+20>>2]=c;a=0;m=0;o=0;n=fc-32|0;fc=n;g=J[i+4>>2];e=J[J[g+24>>2]+20>>2];c=J[i+24>>2];e:{if(c){q=J[e+28>>2];if(q)break e;a=-1}else a=0;q=J[e+24>>2]}p=J[i+16>>2];l=J[i+8>>2];e=H[g+254| +0];f:{if((e|0)>=0){f=a;a=0;j=0;break f}o=K[i+2|0];m=J[i+12>>2];f=xc(n,g+222|0,0-e|0);J[i+12>>2]=f-e;H[i+2|0]=0;J[i+8>>2]=f;H[g+254|0]=0;f=-1;j=l}v=g+37|0;r=g+68|0;s=g+222|0;g:while(1){h:{k=0;t=0;i:{if(J[h>>2]>0)break i;kc[q|0](i,h);if(!K[i+2|0]|J[h>>2]>0|J[i+8>>2]!=J[i+12>>2])break i;t=!K[g+36|0]}u=1;while(1){e=0;j:{if(!c)break j;p=J[i+16>>2]-p|0;e=p>>1;k:{if((e|0)<=0){e=c;break k}e=(e<<2)+c|0;k=(f|0)<0?-1:f-k|0;l:{if(!k)break l;if((k|0)<=0){w=c;x=c^-1;k=(p<<1)+c|0;c=c+4|0;Ac(w,255,(x+(c>>>0>> +0?k:c)&-4)+4|0);break l}while(1){p=J[c>>2];if((p|0)>=0)J[c>>2]=k+p;c=c+4|0;if(e>>>0>c>>>0)continue;break}}J[i+24>>2]=e}if((f|0)<0)break j;f=J[i+8>>2]+(f-l|0)|0}c=e;e=H[g+254|0];if((e|0)<0)m:{if(!j){o=K[i+2|0];m=J[i+12>>2];j=J[i+8>>2];a=xc(n,s,0-e|0);J[i+12>>2]=a-e;H[i+2|0]=0;J[i+8>>2]=a;H[g+254|0]=0;a=f;e=e+f|0;f=(e|0)<0?-1:e;break m}J[h>>2]=5}p=J[i+16>>2];l=J[i+8>>2];n:{e=J[h>>2];o:{if((e|0)<=0){if(M[i+12>>2]>l>>>0)continue g;if(j){J[i+12>>2]=m;J[i+8>>2]=j;H[i+2|0]=o;j=0;f=a;continue g}if(!K[i+2| +0])break o;if(H[g+36|0]>0){J[h>>2]=11;break n}j=0;if(!t)continue g;v3(g,1);break o}if(!(1<>>0>19:1))break n;if(!j)break o;a=J[i+12>>2]-l|0;if((a|0)>0){xc(s,l,a);H[g+254|0]=0-a}J[i+12>>2]=m;J[i+8>>2]=j;H[i+2|0]=o}fc=n+32|0;break h}k=H[g+36|0];H[g+62|0]=k;if((k|0)>0)xc(r,v,k);H[g+36|0]=0;e=J[g+256>>2];p:{if((e|0)!=1)break p;e=1;if(J[h>>2]!=10)break p;e=0;J[g+256>>2]=0}kc[J[g+4>>2]](J[g+16>>2],i,r,k,e,h);J[g+256>>2]=1;u=0;continue}}break}J[d>>2]=J[i+8>>2];J[b>>2]=J[i+16>>2]}fc=i+32|0} +function $M(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(J[a+200>>2]==(b|0)&J[a+204>>2]==(d|0))break a;J[a+200>>2]=b;J[a+204>>2]=d;d=J[a+4>>2];if(!d)break a;f=Wc(J[a+8>>2],b);J[a+12>>2]=f;J[a+16>>2]=f+32&-64;f=d-1|0;if(!f)break a;d=a+20|0;while(1){h=Wc(J[d>>2],b);i=J[a+12>>2];j=h-i|0;g=j>>31;g=(g^j)-g>>>0<128?i:h;J[d+4>>2]=g;J[d+8>>2]=g+32&-64;d=d+12|0;f=f-1|0;if(f)continue;break}}b:{if(J[a+404>>2]==(c|0)&J[a+408>>2]==(e|0))break b;J[a+404>>2]=c;J[a+408>>2]=e;b=J[a+ +208>>2];c:{if(!b)break c;d=Wc(J[a+212>>2],c);J[a+216>>2]=d;J[a+220>>2]=d+32&-64;f=b-1|0;if(!f)break c;d=a+224|0;while(1){g=Wc(J[d>>2],c);h=J[a+216>>2];i=g-h|0;b=i>>31;b=(b^i)-b>>>0<128?h:g;J[d+4>>2]=b;J[d+8>>2]=b+32&-64;d=d+12|0;f=f-1|0;if(f)continue;break}}d=a+2492|0;if((c|0)<=34359737)b=(P(c,125)|0)>2]<<3;else b=0;H[d|0]=b;d=J[a+2480>>2];d:{if((d|0)<=0)break d;while(1){if((Wc(d,c)|0)<33)break d;b=(d|0)>1;d=d-1|0;if(b)continue;break}d=0}J[a+2484>>2]=d;b=J[a+412>>2];if(b){d=a+416|0;while(1){k= +d,l=Wc(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Wc(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Wc(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Wc(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+928>>2];if(b){d=a+932|0;while(1){k=d,l=Wc(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Wc(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Wc(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Wc(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+1444>>2];if(b){d=a+1448| +0;while(1){k=d,l=Wc(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Wc(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Wc(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Wc(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}b=J[a+1960>>2];if(b){d=a+1964|0;while(1){k=d,l=Wc(J[d+8>>2],c)+e|0,J[k+28>>2]=l;k=d,l=Wc(J[d+12>>2],c)+e|0,J[k+24>>2]=l;k=d,l=Wc(J[d>>2],c)+e|0,J[k+16>>2]=l;k=d,l=Wc(J[d+4>>2],c),J[k+20>>2]=l;J[d+16>>2]=J[d+16>>2]+32&-64;d=d+32|0;b=b-1|0;if(b)continue;break}}e:{g=J[a+412>> +2];if(!g)break e;d=J[a+1444>>2];if(!d)break e;b=a+1448|0;f=a+416|0;while(1){e=b;f:{if(!d)break f;while(1){i=J[f>>2]-J[e>>2]|0;h=i>>31;if((Wc((h^i)-h|0,c)|0)<=63){J[f+28>>2]=J[e+28>>2];J[f+24>>2]=J[e+24>>2];J[f+16>>2]=J[e+16>>2];J[f+20>>2]=J[e+20>>2];break f}e=e+32|0;d=d-1|0;if(d)continue;break}}g=g-1|0;if(!g)break e;f=f+32|0;d=J[a+1444>>2];continue}}g=J[a+928>>2];if(!g)break b;d=J[a+1960>>2];if(!d)break b;b=a+1964|0;f=a+932|0;while(1){e=b;g:{if(!d)break g;while(1){i=J[f>>2]-J[e>>2]|0;h=i>>31;if((Wc((h^ +i)-h|0,c)|0)>=64){e=e+32|0;d=d-1|0;if(d)continue;break g}break}J[f+28>>2]=J[e+28>>2];J[f+24>>2]=J[e+24>>2];J[f+16>>2]=J[e+16>>2];J[f+20>>2]=J[e+20>>2]}g=g-1|0;if(!g)break b;f=f+32|0;d=J[a+1960>>2];continue}}}function w7a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+408>>2];d=J[a+464>>2];a:{if(J[a+224>>2]){c=J[a+412>>2];b:{c:{d:{if(!b){if(!c)break d;break c}if((b|0)>(c|0)|(c|0)>J[a+432>>2]|J[a+336>>2]!=1)break c}c=J[a+416>>2];e:{if(!c){c=J[a+420>>2];break e}c=c-1|0;if((c|0)!=J[a+420>>2])break c}if((c| +0)<14)break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=17;J[J[a>>2]+28>>2]=J[a+412>>2];J[J[a>>2]+32>>2]=J[a+416>>2];J[J[a>>2]+36>>2]=J[a+420>>2];kc[J[J[a>>2]>>2]](a)}b=J[a+336>>2];if((b|0)>0)while(1){g=J[J[((e<<2)+a|0)+340>>2]+4>>2];f=J[a+160>>2]+(g<<8)|0;c=J[a+408>>2];b=0;f:{if(!c)break f;b=c;if(J[f>>2]>=0)break f;b=J[a>>2];J[b+24>>2]=g;J[b+20>>2]=118;J[J[a>>2]+28>>2]=0;kc[J[J[a>>2]+4>>2]](a,-1);b=J[a+408>>2]}if((b|0)<=J[a+412>>2])while(1){c=f+(b<<2)|0;h=J[c>>2];if(J[a+416>>2]!=(((h|0)>0?h:0)|0)){h=J[a>> +2];J[h+24>>2]=g;J[h+20>>2]=118;J[J[a>>2]+28>>2]=b;kc[J[J[a>>2]+4>>2]](a,-1)}J[c>>2]=J[a+420>>2];c=J[a+412>>2]>(b|0);b=b+1|0;if(c)continue;break}b=J[a+336>>2];e=e+1|0;if((b|0)>(e|0))continue;break}c=J[a+408>>2];if(!J[a+416>>2]){if(!c){J[d+4>>2]=384;break a}J[d+4>>2]=385;break a}if(!c){J[d+4>>2]=386;break a}J[d+4>>2]=387;break a}g:{if(!(J[a+420>>2]|(J[a+416>>2]|b))){b=J[a+412>>2];if((b|0)>63|(b|0)==J[a+432>>2])break g}b=J[a>>2];J[b+20>>2]=125;kc[J[b+4>>2]](a,-1)}J[d+4>>2]=388;b=J[a+336>>2]}if((b|0)> +0){c=0;while(1){g=c<<2;e=J[(g+a|0)+340>>2];h:{i:{if(J[a+224>>2]){if(J[a+408>>2])break i;if(J[a+416>>2])break h}b=J[e+20>>2];if(b>>>0>=16){f=J[a>>2];J[f+24>>2]=b;J[f+20>>2]=50;kc[J[J[a>>2]>>2]](a)}f=(b<<2)+d|0;b=J[f+56>>2];if(!b){b=kc[J[J[a+4>>2]>>2]](a,1,64)|0;J[f+56>>2]=b}H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;H[b+56|0]=0;H[b+57|0]=0;H[b+58|0]=0;H[b+59|0]=0;H[b+60|0]=0;H[b+61|0]=0;H[b+62|0]=0;H[b+63|0]=0;H[b+48|0]=0;H[b+49|0]=0;H[b+50|0]=0;H[b+51|0]= +0;H[b+52|0]=0;H[b+53|0]=0;H[b+54|0]=0;H[b+55|0]=0;H[b+40|0]=0;H[b+41|0]=0;H[b+42|0]=0;H[b+43|0]=0;H[b+44|0]=0;H[b+45|0]=0;H[b+46|0]=0;H[b+47|0]=0;H[b+32|0]=0;H[b+33|0]=0;H[b+34|0]=0;H[b+35|0]=0;H[b+36|0]=0;H[b+37|0]=0;H[b+38|0]=0;H[b+39|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;H[b+29|0]=0;H[b+30|0]=0;H[b+31|0]=0;H[b+16|0]=0;H[b+17|0]=0;H[b+18|0]=0;H[b+19|0]=0;H[b+20|0]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+13|0]= +0;H[b+14|0]=0;H[b+15|0]=0;b=d+g|0;J[b+36>>2]=0;J[b+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break i;break h}if(!J[a+408>>2])break h}b=J[e+24>>2];if(b>>>0>=16){e=J[a>>2];J[e+24>>2]=b;J[e+20>>2]=50;kc[J[J[a>>2]>>2]](a)}e=(b<<2)+d|0;b=J[e+120>>2];if(!b){b=kc[J[J[a+4>>2]>>2]](a,1,256)|0;J[e+120>>2]=b}Ac(b,0,256)}c=c+1|0;if((c|0)>2])continue;break}}J[d+16>>2]=-16;J[d+8>>2]=0;J[d+12>>2]=0;J[d+52>>2]=J[a+280>>2]}function tXa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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,u=0;i=fc-48|0;fc=i;o=h+1|0;q=bj(J[b+28>>2],o);h=J[q+12>>2];O[a+40>>3]=O[h+32>>3];O[a+48>>3]=O[h+40>>3];h=J[bj(J[b+28>>2],o)+12>>2];j=O[h+32>>3];k=O[h+48>>3];h=J[bj(J[b+28>>2],o)+12>>2];p=O[h+40>>3];m=O[h+56>>3];r=+(e|0);j=k-j;k=r/j;O[a+56>>3]=k;s=+(f|0);p=m-p;m=s/p;O[a+64>>3]=m;k=k*(O[a+24>>3]-O[a+8>>3]);t=Lp(k);a:{if(R(t)<2147483648){e=~~t;break a}e=-2147483648}h=e+2|0;J[a+96>>2]=h;O[a+72>>3]=+(e|0)-k;k=m*(O[a+32>>3]-O[a+16>>3]);m=Lp(k);b:{if(R(m)<2147483648){e= +~~m;break b}e=-2147483648}n=e+2|0;J[a+100>>2]=n;O[a+80>>3]=+(e|0)-k;l=P(h,n);n=vc(l<<2);c:{if(!l)break c;h=n;if(l>>>0>=8){u=l&-8;e=0;while(1){J[h+28>>2]=g;J[h+24>>2]=g;J[h+20>>2]=g;J[h+16>>2]=g;J[h+12>>2]=g;J[h+8>>2]=g;J[h+4>>2]=g;J[h>>2]=g;h=h+32|0;e=e+8|0;if((u|0)!=(e|0))continue;break}}l=l&7;if(!l)break c;e=0;while(1){J[h>>2]=g;h=h+4|0;e=e+1|0;if((l|0)!=(e|0))continue;break}}e=vc(48);J[699344]=0;J[e>>2]=0;J[e+4>>2]=0;H[e+40|0]=0;J[e+32>>2]=0;J[e+36>>2]=-1074790400;H[e+21|0]=0;H[e+22|0]=0;H[e+23| +0]=0;H[e+24|0]=0;H[e+25|0]=0;H[e+26|0]=0;H[e+27|0]=0;H[e+28|0]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;h=J[699344];J[699344]=0;if((h|0)!=1)d:{J[a+120>>2]=e;J[e+16>>2]=n;J[J[a+120>>2]+4>>2]=J[a+96>>2];J[J[a+120>>2]+8>>2]=J[a+100>>2];e=J[a+120>>2];J[i+8>>2]=J[a+96>>2]<<2;h=e;e=i+8|0;J[h+12>>2]=J[e>>2];h=FD();J[a+128>>2]=h;kc[J[J[h>>2]+468>>2]](h,c);h=J[a+128>>2];kc[J[J[h>>2]+504>>2]](h,J[a+120>>2]);h=J[a+128>>2];kc[J[J[h>>2]+488>>2]](h,1);h=J[a+128>>2];O[i+8>>3]=(O[a+24>>3]-O[a+8>>3]+j* +(O[a+72>>3]+2)/r)*25.4/72;kc[J[J[h>>2]+36>>2]](h,e)|0;h=J[a+128>>2];O[i+8>>3]=(O[a+32>>3]-O[a+16>>3]+p*(O[a+80>>3]+2)/s)*25.4/72;kc[J[J[h>>2]+28>>2]](h,e)|0;if((g|0)!=16777215){g=J[a+128>>2];J[i+8>>2]=1;kc[J[J[g>>2]+416>>2]](g,852592,e)|0}e=J[a+128>>2];J[i+8>>2]=1;g=i+8|0;kc[J[J[e>>2]+416>>2]](e,837268,g)|0;e=vc(232);h=J[a+128>>2];J[699344]=0;c=ha(3394,e|0,h|0,c|0,d|0)|0;d=J[699344];J[699344]=0;e:{if((d|0)!=1){J[a+124>>2]=c;J[c+164>>2]=J[b+24>>2];J[i+44>>2]=1;J[i+32>>2]=0;J[i+36>>2]=0;J[i+24>>2]= +0;J[i+28>>2]=0;J[i+16>>2]=0;J[i+20>>2]=0;J[i+8>>2]=0;J[i+12>>2]=0;c=J[a+124>>2];y_(q,0,0,kc[J[J[c>>2]+8>>2]](c)|0,g,i+44|0);c=J[q+12>>2];d=vc(128);e=J[c+288>>2];h=J[a+124>>2];n=J[c+280>>2];J[699344]=0;b=Sa(3395,d|0,b|0,h|0,o|0,((n|0)==7?e:0)|0,72,72,g|0,(J[i+44>>2]?c+32|0:0)|0,0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[a+116>>2]=b;j=Lp((O[a+8>>3]-O[a+40>>3])*O[a+56>>3]);f:{if(R(j)<2147483648){b=~~j;break f}b=-2147483648}J[a+88>>2]=b-1;j=Lp((O[a+32>>3]-O[a+48>>3])*O[a+64>>3]);g:{if(R(j)< +2147483648){b=~~j;break g}b=-2147483648}J[a+92>>2]=(b^-1)+f;fc=i+48|0;return}break d}a=Z()|0;uc(d);ba(a|0);B()}a=Z()|0;uc(e);ba(a|0);B()}function gDa(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;f=fc+-64|0;fc=f;J[f+56>>2]=0;J[f+60>>2]=J[685894];a:{e=J[c+36>>2];b:{if(e){g=J[J[e>>2]+28>>2];J[699344]=0;ca(g|0,f+24|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break b;e=Z()|0;break a}J[f+24>>2]=0}J[699344]=0;aa(5153,f+56|0,f+24|0)|0;e=J[699344];J[699344]=0;c:{d:{if((e|0)!=1){e=J[f+24>> +2];J[f+24>>2]=0;if(!e)break d;J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break d;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break d}break c}e=Z()|0;zc(f+24|0);break a}e=J[f+56>>2];J[f+60>>2]=J[(e?e+12|0:2743576)>>2];e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{if(!d)break p;J[699344]=0;g=rf(f+56|0);e=J[699344];J[699344]=0;if((e|0)==1)break n;J[699344]=0;e=J[J[d+12>>2]+((g>>>0)%M[d+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break n;if(!e)break p; +while(1){if((g|0)==J[e+12>>2]){J[699344]=0;h=ga(5287,e+16|0,f+56|0,-1)|0;i=J[699344];J[699344]=0;if((i|0)==1)break f;if(!h)break o}e=J[e+8>>2];if(e)continue;break}}J[f+48>>2]=0;J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+24>>2]=0;J[f+28>>2]=0;J[699344]=0;g=aa(5250,f+24|0,2401340)|0;e=J[699344];J[699344]=0;if((e|0)==1)break m;J[699344]=0;e=f+8|0;ca(5334,e|0,a|0,f+56|0);h=J[699344];J[699344]=0;if((h|0)==1)break l;J[699344]=0;la(5341,f+16|0,a|0,b|0,c|0,g|0,e|0);e=J[699344];J[699344]=0;if((e| +0)==1)break k;e=J[f+8>>2];J[f+8>>2]=0;q:{if(!e)break q;J[699344]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break e;if(h)break q;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break e}r:{if(!d)break r;J[699344]=0;h=aa(5338,d|0,f+56|0)|0;e=J[699344];J[699344]=0;s:{t:{if((e|0)!=1){e=J[f+16>>2];if(!e)break t;i=J[J[e>>2]+28>>2];J[699344]=0;ca(i|0,f+8|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break s}e=Z()|0;break g}J[f+8>>2]=0}J[699344]=0;aa(5153,h+24|0,f+8|0)|0; +e=J[699344];J[699344]=0;if((e|0)==1)break h;e=J[f+8>>2];J[f+8>>2]=0;u:{if(!e)break u;J[699344]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break e;if(i)break u;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break e}e=J[h+24>>2];J[h+28>>2]=J[(e?e+12|0:2743576)>>2];J[699344]=0;e=J[g+24>>2];J[f+12>>2]=g;J[f+8>>2]=e;e=J[699344];J[699344]=0;if((e|0)==1)break i;if(!J[f+8>>2])break r;while(1){J[699344]=0;ia(5342,a|0,b|0,c|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break j; +e=J[f+8>>2];if(!e)break r;e=J[e>>2];J[f+8>>2]=e;if(e)continue;break}}wc(f+16|0);Md(g)}wc(f+56|0);fc=f- -64|0;return}e=Z()|0;break a}e=Z()|0;break a}e=Z()|0;Md(g);break a}e=Z()|0;zc(f+8|0);Md(g);break a}e=Z()|0;break g}e=Z()|0;break g}e=Z()|0;zc(f+8|0)}wc(f+16|0);Md(g);break a}e=Z()|0;break a}}ea(0)|0;Bc();B()}wc(f+56|0);ba(e|0);B()}function w8(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=Ac(b,0,196);e=K[a+188|0];H[b+8|0]=e;a:{if(!e)break a;if(e>>>0>=4){h=e&252;f=b+12|0;g=a+192|0;while(1){I[f+(c<<1)>> +1]=J[g+(c<<2)>>2];j=c|1;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];j=c|2;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];j=c|3;I[f+(j<<1)>>1]=J[g+(j<<2)>>2];c=c+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}e=e&3;if(!e)break a;i=0;while(1){I[(b+(c<<1)|0)+12>>1]=J[((c<<2)+a|0)+192>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+189|0];H[b+9|0]=f;b:{if(!f)break b;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+40|0;h=a+248|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>> +2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break b;while(1){I[(b+(c<<1)|0)+40>>1]=J[((c<<2)+a|0)+248>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+190|0];H[b+10|0]=f;c:{if(!f)break c;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+60|0;h=a+288|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f& +3;if(!e)break c;while(1){I[(b+(c<<1)|0)+60>>1]=J[((c<<2)+a|0)+288>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+191|0];H[b+11|0]=f;d:{if(!f)break d;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+88|0;h=a+344|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break d;while(1){I[(b+(c<<1)|0)+88>>1]=J[((c<<2)+a|0)+344>>2];c=c+1|0;i=i+1|0;if((e| +0)!=(i|0))continue;break}}J[b+108>>2]=J[a+384>>2];J[b+112>>2]=J[a+388>>2];J[b+116>>2]=J[a+392>>2];I[b+120>>1]=J[a+396>>2];I[b+122>>1]=J[a+400>>2];f=K[a+404|0];H[b+124|0]=f;e:{if(!f)break e;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+128|0;h=a+408|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break e;while(1){I[(b+(c<<1)|0)+128>>1]=J[((c<<2)+a| +0)+408>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}f=K[a+405|0];H[b+125|0]=f;f:{if(!f)break f;i=0;c=0;if(f>>>0>=4){j=f&252;g=b+154|0;h=a+460|0;e=0;while(1){I[g+(c<<1)>>1]=J[h+(c<<2)>>2];d=c|1;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|2;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];d=c|3;I[g+(d<<1)>>1]=J[h+(d<<2)>>2];c=c+4|0;e=e+4|0;if((j|0)!=(e|0))continue;break}}e=f&3;if(!e)break f;while(1){I[(b+(c<<1)|0)+154>>1]=J[((c<<2)+a|0)+460>>2];c=c+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}}H[b+126|0]=K[a+512|0];J[b+184>> +2]=J[a+524>>2];J[b+4>>2]=J[a+520>>2]}function eqa(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;g=fc-32|0;fc=g;e=d-c|0;j=(e|0)/12|0;h=J[a>>2];k=(b-h|0)/12|0;b=P(k,12)+h|0;a:{if((e|0)<=0){e=b;break a}e=a+8|0;b:{l=J[a+8>>2];i=J[a+4>>2];if((j|0)<=((l-i|0)/12|0)){k=i-b|0;h=(k|0)/12|0;if((h|0)>=(j|0)){f=i;h=d;break b}J[g+28>>2]=i;J[g+24>>2]=i;H[g+16|0]=0;J[g+4>>2]=e;J[g+12>>2]=g+28;J[g+8>>2]=g+24;f=i;c:{h=P(h,12)+c|0;if((h|0)!=(d|0)){e=h;while(1){d:{if(H[e+11|0]>=0){l=J[e+4>> +2];J[f>>2]=J[e>>2];J[f+4>>2]=l;J[f+8>>2]=J[e+8>>2];break d}l=J[e+4>>2];m=J[e>>2];J[699344]=0;ca(15,f|0,m|0,l|0);f=J[699344];J[699344]=0;if((f|0)==1)break c;f=J[g+28>>2]}f=f+12|0;J[g+28>>2]=f;e=e+12|0;if((e|0)!=(d|0))continue;break}}J[a+4>>2]=f;if((k|0)>0)break b;e=b;break a}b=Z()|0;YL(g+4|0);J[a+4>>2]=i;ba(b|0);B()}e:{f:{f=j+((i-h|0)/12|0)|0;if(f>>>0<357913942){J[g+20>>2]=e;e=(l-h|0)/12|0;i=e<<1;i=e>>>0>=178956970?357913941:f>>>0>>0?i:f;if(i){if(i>>>0>=357913942)break f;f=vc(P(i,12))}else f=0; +J[g+4>>2]=f;e=f+P(k,12)|0;J[g+12>>2]=e;J[g+16>>2]=f+P(i,12);J[g+8>>2]=e;g:{if((c|0)==(d|0)){f=e;break g}f=P(j,12)+e|0;while(1){h:{if(H[c+11|0]>=0){d=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=d;J[e+8>>2]=J[c+8>>2];break h}d=J[c+4>>2];h=J[c>>2];J[699344]=0;ca(15,e|0,h|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}c=c+12|0;e=e+12|0;if((e|0)!=(f|0))continue;break}h=J[a>>2];e=J[g+8>>2]}d=e;if((b|0)!=(h|0)){c=b;while(1){c=c-12|0;i=J[c+4>>2];d=d-12|0;J[d>>2]=J[c>>2];J[d+4>>2]=i;J[d+8>>2]=J[c+8>>2];J[c>>2]= +0;J[c+4>>2]=0;J[c+8>>2]=0;if((c|0)!=(h|0))continue;break}}c=J[a+4>>2];if((c|0)!=(b|0)){while(1){h=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=h;J[f+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;f=f+12|0;b=b+12|0;if((c|0)!=(b|0))continue;break}b=J[a+4>>2]}J[a+4>>2]=f;c=J[a>>2];J[a>>2]=d;J[a+8>>2]=J[g+16>>2];if((b|0)!=(c|0))while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((c|0)!=(a|0))continue;break}if(!c)break a;uc(c);break a}pD(a);B()}Pd();B()}a=Z()|0;J[g+12>>2]=e;dM(g+4|0);ba(a|0);B()}d=f;k=P(j,12)+ +b|0;j=P((f-k|0)/12|0,12)+b|0;if(i>>>0>j>>>0){e=j;while(1){l=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=l;J[d+8>>2]=J[e+8>>2];J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;d=d+12|0;e=e+12|0;if(i>>>0>e>>>0)continue;break}}J[a+4>>2]=d;if((f|0)!=(k|0))while(1){a=f-12|0;if(H[f-1|0]<0)uc(J[a>>2]);d=j-12|0;e=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=e;J[a+8>>2]=J[d+8>>2];H[j-1|0]=0;J[d>>2]=0;f=a;j=d;if((b|0)!=(d|0))continue;break}if((c|0)==(h|0)){e=b;break a}f=b;while(1){i:{if((c|0)==(f|0))break i;d=K[c+11|0];a=d<<24>>24;if(H[f+ +11|0]>=0){if((a|0)>=0){a=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=a;J[f+8>>2]=J[c+8>>2];break i}Gf(f,J[c>>2],J[c+4>>2]);break i}a=(a|0)<0;Lf(f,a?J[c>>2]:c,a?J[c+4>>2]:d)}f=f+12|0;c=c+12|0;if((h|0)!=(c|0))continue;break}e=b}fc=g+32|0;return e|0}function U1a(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;h=fc-16|0;fc=h;k=J[a+20>>2];f=J[a+16>>2];l=J[a+12>>2];j=J[a+8>>2];J[h+8>>2]=J[a+24>>2];J[h+4>>2]=0;d=J[a+4>>2];g=J[d+8>>2];c=J[g+40>>2];a:{if(J[g+64>>2]==1){J[a+4>>2]=c;J[c+ +56>>2]=J[d+56>>2];f3(a,b);f=J[g+40>>2];J[d+56>>2]=J[f+56>>2];if(J[b>>2]==15){e=K[f+63|0];b=e<<24>>24;if((b|0)>0){xc(d+76|0,f+76|0,e);f=J[g+40>>2];b=K[f+63|0]}H[d+63|0]=b;H[f+63|0]=0}J[a+4>>2]=d;break a}e=J[d+52>>2];o=K[d+35|0];n=J[c+24>>2];i=J[d+56>>2];b:{c:{d:{if(!(!i|f>>>0>=k>>>0)){d=e;break d}if(j>>>0>=l>>>0)break b;p=!o;while(1){e:{d=e;c=j;J[h+4>>2]=65535;f:{g:{h:{if(M[a+20>>2]>f>>>0){j=c+2|0;i=L[c>>1];if(!(i>>>0>31|!(1<>2]=12;J[J[a+4>>2]+56>>2]=i;break b}c=i&15;e=J[n+52>> +2];g=J[(e+(i>>>2&252)|0)+(L[e+(i>>>9&126)>>1]<<2)>>2];m=L[J[n+188>>2]+((c|g<<4&1048560)<<1)>>1];e=m>>>0<256?1:2;i:{j:{k:{if(g>>>(c|16)&1){J[h+4>>2]=m;break k}if(!(!m|i-63744>>>0<4294960896&p)){J[h+4>>2]=m;break k}e=J[n+224>>2];if(!e)break j;e=wu(e,i,h+4|0,o<<24>>24);c=e>>31;e=(c^e)-c|0}if(e-3>>>0<4294967294)break j;c=J[h+4>>2];if((e|0)==1&c>>>0>127)break j;if((e|0)!=2)break i;if((c+24159&65534)>>>0>23901)break j;if((c+95&254)>>>0<94)break i}J[h+4>>2]=65535;break e}if((c|0)==65535)break e;e=c>>>0> +255;l:{if((e|0)==d<<24>>24)break l;H[f|0]=e?14:15;f=f+1|0;c=J[h+8>>2];if(!c)break l;d=J[a+8>>2];J[h+8>>2]=c+4;J[c>>2]=(j-d>>1)-1}g=J[h+4>>2];if(g>>>0<=255){if(f>>>0>=k>>>0)break h;H[f|0]=g;f=f+1|0;c=J[h+8>>2];if(!c)break f;d=J[a+8>>2];J[h+8>>2]=c+4;J[c>>2]=(j-d>>1)-1;break f}g=g>>>8^-128;if(f>>>0>>0){H[f|0]=g;c=J[h+8>>2];if(c){d=J[a+8>>2];J[h+8>>2]=c+4;J[c>>2]=(j-d>>1)-1}g=K[h+4|0]^-128;d=f+1|0;if(d>>>0>>0){H[f+1|0]=g;f=f+2|0;c=J[h+8>>2];if(!c)break f;d=J[a+8>>2];J[h+8>>2]=c+4;J[c>>2]=(j-d>> +1)-1;break f}f=J[a+4>>2];c=H[f+63|0];H[f+63|0]=c+1;H[(c+f|0)+76|0]=g;J[b>>2]=15;f=d;break f}c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g;d=K[h+4|0];g=J[a+4>>2];c=H[g+63|0];H[g+63|0]=c+1;H[(c+g|0)+76|0]=d^128;break g}J[b>>2]=15;break b}c=J[a+4>>2];d=H[c+63|0];H[c+63|0]=d+1;H[(c+d|0)+76|0]=g}J[b>>2]=15}if(j>>>0>>0)continue;break b}break}c=10;if((i&63488)!=55296)break c;c=12;if(i&1024)break c}c=0;if(j>>>0>=l>>>0)break c;e=L[j>>1];c=(e&64512)==56320;i=c?(e+(i<<10)|0)-56613888|0:i;j=(c<< +1)+j|0;c=c?10:12}e=d;J[b>>2]=c;J[J[a+4>>2]+56>>2]=i}m:{if(!(e&255)|J[b>>2]>0|(!K[a+2|0]|j>>>0>>0))break m;d=J[a+4>>2];if(J[d+56>>2])break m;c=J[a+8>>2];g=j-c>>1;n:{if((g|0)<=0){e=-1;break n}e=g-1|0;if((L[c+(e<<1)>>1]&64512)!=56320)break n;if(e)if((L[(c+(g<<1)|0)-4>>1]&64512)!=55296)break n;e=g-2|0}J[h+12>>2]=f;wi(d,746436,1,h+12|0,k,h+8|0,e,b);f=J[h+12>>2];e=0}J[a+16>>2]=f;J[a+8>>2]=j;J[J[a+4>>2]+52>>2]=e<<24>>24}fc=h+16|0}function J1(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=fc-96|0;fc= +f;a:{if(!b|!c)break a;b:{c:switch(d-1|0){case 0:if(!e)break b;b=0;d=0;c=0;d:{if(!a)break d;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break d;c=(b^-1)+a>>>0<249?b:0}J[f+32>>2]=36437;Hc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f+32|0);break a;case 1:if(!e)break b;b=0;d=0;c=0;e:{if(!a)break e;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break e;c=(b^-1)+a>>>0<249?b:0}J[f+48>>2]=36483;Hc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f+48|0);break a;case 2:if(e)break b;b=0;d=0;c=0;f:{if(!a)break f;b= +J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break f;c=(b^-1)+a>>>0<249?b:0}J[f+64>>2]=37253;Hc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f- -64|0);break a;case 3:if(e)break b;b=0;d=0;c=0;g:{if(!a)break g;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break g;c=(b^-1)+a>>>0<249?b:0}J[f+80>>2]=36601;Hc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f+80|0);break a;default:break c}b=0;d=0;c=0;h:{if(!a)break h;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break h;c=(b^-1)+a>>>0<249?b:0}J[f>>2]= +34303;Hc(0,d,b,c,0,23,1,2,0,0,0,0,4607,f);break a}g=kq(c,f+92|0);i:{i=J[b+40>>2];if(i)break i;h=J[b+32>>2];if(h)h=J[h+80>>2];else h=0;i=mq(0,h);J[b+40>>2]=i;if(i)break i;b=0;c=0;d=0;j:{if(!a)break j;b=J[a>>2];c=J[a+4>>2];d=0;if((J[a+28>>2]&-2)!=-1412623820)break j;d=(b^-1)+a>>>0<249?b:0}J[f+16>>2]=38389;Hc(0,c,b,d,0,23,2,3,38389,0,0,0,32879,f+16|0);if(g)kc[J[663199]](g);a=J[f+92>>2];if(!a)break a;kc[J[663199]](a);break a}h=g?g:c;c=J[b+32>>2];k:{if(!c)break k;c=J[c+44>>2];if(!c)break k;c=Un(J[c+40>> +2],h,J[f+92>>2]);if(!c|J[c+36>>2])break k;k=J[c+44>>2];J[c+44>>2]=0;d2(J[J[J[b+32>>2]+44>>2]+40>>2],h,J[f+92>>2]);FK(c)}c=Un(i,h,J[f+92>>2]);l:{if(c){if(J[c+36>>2]){if(g)kc[J[663199]](g);a=J[f+92>>2];if(!a)break a;kc[J[663199]](a);break a}h=J[f+92>>2];if(!h)break l;kc[J[663199]](h);J[f+92>>2]=0;break l}c=kc[J[663195]](56)|0;if(!c){K1(a);if(g)kc[J[663199]](g);a=J[f+92>>2];if(!a)break a;kc[J[663199]](a);break a}J[c>>2]=0;J[c+4>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+ +36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=15;j=ff(h);J[c+8>>2]=j;if(!j){K1(a);if(g)kc[J[663199]](g);a=J[f+92>>2];if(a)kc[J[663199]](a);kc[J[663199]](c);break a}j=J[f+92>>2];J[c+48>>2]=j;if(VK(i,h,j,c)){FK(c);if(!g)break a;kc[J[663199]](g);break a}J[c+44>>2]=k}J[c+36>>2]=d;m:{if(!(!a|(J[a+28>>2]&-2)!=-1412623820)){J[c+40>>2]=e;if(!e)break m;J[e+20>>2]=1;break m}l=c,m=fx(J[b+32>>2],e),J[l+40>>2]=m}J[c+20>>2]=b;J[c+32>>2]=J[b+32>>2];a=J[b+16>>2]; +n:{if(!a){J[b+12>>2]=c;break n}J[a+24>>2]=c;J[c+28>>2]=a}J[b+16>>2]=c;if(g)kc[J[663199]](g)}fc=f+96|0}function iW(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=fc-32|0;fc=b;d=a+8|0;a:{if(J[a+8>>2]){ti(b+28|0,a,d);break a}J[b+28>>2]=0;vd(b+28|0,0)}b:{c:{d:{e:{if(J[d>>2]){J[699344]=0;ca(5523,b+24|0,a|0,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break e;break d}J[699344]=0;J[b+24>>2]=0;aa(5145,b+24|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d}f:{g:{h:{if(J[d>>2]){J[699344]=0;ca(5521,b+20|0,a|0,d|0);c=J[699344]; +J[699344]=0;if((c|0)!=1)break h;break g}J[699344]=0;J[b+20>>2]=0;aa(5145,b+20|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g}i:{j:{k:{if(J[d>>2]){J[699344]=0;ca(5522,b+16|0,a|0,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break k;break j}J[699344]=0;J[b+16>>2]=0;aa(5145,b+16|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j}l:{m:{n:{if(J[d>>2]){J[699344]=0;ca(5524,b+12|0,a|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1)break n;break m}J[699344]=0;J[b+12>>2]=0;aa(5145,b+12|0,0)|0;a=J[699344];J[699344]= +0;if((a|0)==1)break m}d=0;o:{p:{a=J[b+28>>2];q:{r:{s:{if(!a)break s;c=J[a+8>>2];if((c|0)<=0)break s;e=J[a+12>>2];if(J[b+24>>2]|(e|0)<=0)break s;a=J[b+12>>2];if(a){J[b+12>>2]=0;break r}a=J[b+20>>2];t:{if(!a)break t;J[699344]=0;a=J[a+12>>2];if(a)a=J[a+4>>2];else a=0;d=J[699344];J[699344]=0;if((d|0)==1)break p;if((a|0)!=(c|0))break t;J[699344]=0;a=J[J[b+20>>2]+12>>2];if(a)a=J[a+8>>2];else a=0;f=J[699344];J[699344]=0;d=1;if((f|0)==1)break p;if((a|0)==(e|0))break s}a=J[b+16>>2];if(!(!a|(c|0)!=L[a+10>> +1])){d=1;if(L[a+8>>1]==(e|0))break s}d=0}a=J[b+12>>2];J[b+12>>2]=0;if(!a)break q}J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(c)break q;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+16>>2];J[b+16>>2]=0;u:{if(!a)break u;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(c)break u;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+20>>2];J[b+20>>2]=0;v:{if(!a)break v;J[699344]= +0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(c)break v;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+24>>2];J[b+24>>2]=0;w:{if(!a)break w;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(c)break w;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+28>>2];J[b+28>>2]=0;x:{if(!a)break x;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break o;if(c)break x; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break o}fc=b+32|0;return d|0}d=Z()|0;zc(b+12|0);break l}break b}d=Z()|0}zc(b+16|0);break i}d=Z()|0}zc(b+20|0);break f}d=Z()|0}zc(b+24|0);break c}d=Z()|0}zc(b+28|0);ba(d|0);B()}ea(0)|0;Bc();B()}function B9(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;a:{if(!a)break a;f=!b;if(f)break a;e=jk(a,229951);if(!e)break a;a=!e;if(!(f|a)){c=fc+-64|0;fc=c;b:{if(a|f)break b;p=f?-1:J[b>>2];j=b?J[b+4>>2]:-1;a=b?J[b+ +8>>2]:-1;n=b?J[b+20>>2]:0;o=b?J[b+24>>2]:0;k=b?J[b+12>>2]:-1;d=(a|0)==32;s=d?24:a;t=(P(s,p)+31|0)/32|0;q=+Q(n>>>0)*39.37+.5;c:{if(R(q)<2147483648){n=~~q;break c}n=-2147483648}q=+Q(o>>>0)*39.37+.5;d:{if(R(q)<2147483648){o=~~q;break d}o=-2147483648}l=1;f=0;e:{if(d)break e;g=b?J[b+36>>2]:0;if(g){f=g?J[g+12>>2]:0;h=f<<2;i=J[g>>2];break e}if((a|0)==1){f=2;h=8;i=2652620;g=0;break e}h=4<>>0>=4){u=g&2147483644;g=0;while(1){H[a+1|0]=d;H[a+2|0]=d;H[a|0]=d;d=d+m|0;H[a+6|0]=d;H[a+5|0]=d;H[a+4|0]=d;d=d+m|0;H[a+10|0]=d;H[a+9|0]=d;H[a+8|0]=d;d=d+m|0;H[a+14|0]=d;H[a+13|0]=d;H[a+12|0]=d;a=a+16|0;d=d+m|0;g=g+4|0;if((u|0)!=(g|0))continue;break}}if(!r){g=0;break e}while(1){H[a+1|0]=d;H[a+2|0]=d;H[a|0]=d;a=a+4|0;d=d+m|0;g=0;l=l+1|0;if((r|0)!=(l|0))continue;break}l=0}hh(e,0,0);I[c+62>>1]=19778;a=h+54|0;d=t<<2;m=P(d,j);r=a+m|0;I[c+60>>1]=r;I[c+56>>1]=0;I[c+58>>1]=r>>>16;I[c+54>> +1]=a;I[c+52>>1]=a>>>16;ae(c+62|0,1,2,e);ae(c+60|0,1,2,e);ae(c+58|0,1,2,e);ae(c+56|0,1,2,e);ae(c+56|0,1,2,e);ae(c+54|0,1,2,e);ae(c+52|0,1,2,e);J[c+44>>2]=40;J[c+40>>2]=p;J[c+36>>2]=j;I[c+50>>1]=1;J[c+32>>2]=0;I[c+48>>1]=s;J[c+28>>2]=m;J[c+24>>2]=n;J[c+20>>2]=o;J[c+16>>2]=f;J[c+12>>2]=f;ae(c+44|0,1,4,e);ae(c+40|0,1,4,e);ae(c+36|0,1,4,e);ae(c+50|0,1,2,e);ae(c+48|0,1,2,e);ae(c+32|0,1,4,e);ae(c+28|0,1,4,e);ae(c+24|0,1,4,e);ae(c+20|0,1,4,e);ae(c+16|0,1,4,e);ae(c+12|0,1,4,e);f:{if((f|0)<=0)break f;if((ae(i, +1,h,e)|0)!=(h|0)){if(l)break b;uc(i);break b}if(l)break f;uc(i)}g:{h:{i:{j:{n=(s|0)==1&(g|0)!=0;k:{if(n){if(!K[J[g>>2]])dO(b,b);AE(b);break k}AE(b);if((s|0)==24)break j}a=b?J[b+40>>2]:0;if((j|0)<=0)break i;h=0;f=k<<2;i=0-f|0;a=P(f,j-1|0)+a|0;f=0;while(1){f=(ae(a,1,d,e)|0)!=(d|0)?1:f;a=a+i|0;h=h+1|0;if((j|0)!=(h|0))continue;break}break i}a=b?J[b+40>>2]:0;if((j|0)<=0)break h;i=d+P(p,-3)|0;d=0;if((p|0)>0){h=a+(P(k,j-1|0)<<2)|0;o=0-k<<2;f=0;while(1){a=0;while(1){k=(a<<2)+h|0;H[c+10|0]=K[k|0];H[c+9|0]= +K[k+1|0];H[c+8|0]=K[k+2|0];f=(ae(c+8|0,1,3,e)|0)!=3?1:f;a=a+1|0;if((p|0)!=(a|0))continue;break}if((i|0)>0){a=0;k=H[c+8|0];while(1){bi(k,e);a=a+1|0;if((i|0)!=(a|0))continue;break}}h=h+o|0;d=d+1|0;if((j|0)!=(d|0))continue;break}break i}if((i|0)<=0)break h;while(1){a=0;while(1){bi(0,e);a=a+1|0;if((i|0)!=(a|0))continue;break}d=d+1|0;if((j|0)!=(d|0))continue;break}}AE(b);if(K[J[g>>2]]|!n)break g;dO(b,b);break g}AE(b)}}fc=c- -64|0}pg(e)}}function l1(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; +h=fc-32|0;fc=h;e=J[a+248>>2];a:{if((e|0)>=41){f=89;if(!(J[a+360>>2]&524288)|e>>>0>1024)break a}if(d)J[d>>2]=0;if(!b){f=1;break a}g=Tk(b);f=0;i=!b;b:{if(i)break b;j=(g|0)<=0;if(j)break b;e=TK();if(!e)break b;c:{d:{if(i|j)break d;f=XK(0);if(!f)break d;J[f+8>>2]=0;J[f+4>>2]=3293;J[f>>2]=b;if(!Xj(J[f+16>>2],b,g))break c;kc[J[663199]](f)}f=0}if(!f){Vj(e);f=0;break b}b=BC(e);if(!b){Vn(f);Vj(e);f=0;break b}J[b>>2]=f;J[b+4>>2]=0;r2(J[f+16>>2],b);e:{f:{g=J[e+40>>2];f=J[e+44>>2];g:{if((g|0)<(f|0)){f=J[e+48>> +2];break g}J[e+44>>2]=f<<1;f=kc[J[663200]](J[e+48>>2],f<<3)|0;J[e+48>>2]=f;if(!f)break f;g=J[e+40>>2]}J[(g<<2)+f>>2]=b;J[e+40>>2]=g+1;J[e+36>>2]=b;break e}se(e,0);th(b);J[e+44>>2]=J[e+44>>2]/2}f=e}e=f;if(!e){f=27;break a}J[e+4>>2]=c?c:e;b=J[e+296>>2];if(b)Wn(b);b=J[a+296>>2];J[e+296>>2]=b;m=e,n=te(b,9684,3),J[m+312>>2]=n;m=e,n=te(J[e+296>>2],4071,5),J[m+316>>2]=n;m=e,n=te(J[e+296>>2],14854,36),J[m+320>>2]=n;if(J[a+328>>2]>0){b=0;while(1){c=J[a+336>>2];f=b<<2;$w(e,J[c+f>>2],J[c+(f|4)>>2]);b=b+2|0; +if((b|0)>2])continue;break}}g=J[e>>2];J[e>>2]=J[a>>2];ax(e);J[e+16>>2]=J[a+16>>2];J[e+360>>2]=J[a+360>>2];J[e+272>>2]=J[a+272>>2];b=J[a+8>>2];h:{if(!b){b=oq(28571);if(!b){J[e+296>>2]=0;J[e>>2]=g;Vj(e);f=1;break a}J[b+92>>2]=64;c=J[e+296>>2];J[b+80>>2]=c;iL(c);J[e+8>>2]=b;c=b;break h}J[e+8>>2]=b;k=J[b+16>>2];l=J[b+12>>2];c=0}f=yC(b,2297);i:{if(!f){J[e+296>>2]=0;J[e>>2]=g;Vj(e);f=1;if(c)break i;break a}b=J[e+8>>2];J[b+12>>2]=0;J[b+16>>2]=0;dh(b,f);cx(e,J[J[e+8>>2]+12>>2]);J[e+172>>2]=7;b=J[a+ +248>>2];J[e+104>>2]=0;J[e+248>>2]=b+1;b=J[a+276>>2];J[e+276>>2]=b;if(J[a+104>>2]|J[a+16>>2])J[e+276>>2]=b|8;J[e+364>>2]=J[a+364>>2];J[e+348>>2]=J[a+348>>2];J[e+352>>2]=J[a+352>>2];iC(e);b=J[J[e+36>>2]+16>>2];f=K[b|0];j:{if(!f)break j;if(!((f|0)!=60|K[b+1|0]!=47)){Xe(e,85,0);break j}if(J[e+172>>2]==-1?J[e+212>>2]:0)break j;J[e+84>>2]=86;J[h+16>>2]=10214;Hc(0,0,0,e,0,1,86,3,0,0,0,0,32906,h+16|0);J[e+12>>2]=0;if(J[e+288>>2])break j;J[e+212>>2]=1}k:{if(J[e+52>>2]==J[J[e+8>>2]+12>>2]|(J[e+172>>2]==-1? +J[e+212>>2]:0))break k;J[e+84>>2]=85;J[h>>2]=17349;Hc(0,0,0,e,0,1,85,3,0,0,0,0,32906,h);J[e+12>>2]=0;if(J[e+288>>2])break k;J[e+212>>2]=1}l:{m:{n:{if(!J[e+12>>2]){b=J[e+84>>2];f=b>>>0<=1?1:b;b=J[e+8>>2];break n}b=J[e+8>>2];if(!d){f=0;break n}b=J[J[b+12>>2]+12>>2];J[d>>2]=b;if(b)while(1){J[b+20>>2]=0;b=J[b+24>>2];if(b)continue;break}f=0;b=J[J[e+8>>2]+12>>2];J[b+12>>2]=0;break m}if(!b)break l;b=J[b+12>>2]}Fl(b);b=J[e+8>>2];J[b+16>>2]=k;J[b+12>>2]=l}J[a+440>>2]=J[a+440>>2]+J[e+440>>2];if(J[e+388>>2])eL(e+ +384|0,a+384|0);J[e+348>>2]=0;J[e+352>>2]=0;J[e+296>>2]=0;J[e>>2]=g;Vj(e);if(!c)break a}Rr(c)}fc=h+32|0;return f}function Y0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(!Pw(J[a+16>>2],806736)){e=J[a+16>>2];c=vc(8);J[699344]=0;f=aa(3349,c|0,806736)|0;d=J[699344];J[699344]=0;b:{if((d|0)!=1){c=vc(8);c:{if(b){J[699344]=0;d=aa(3350,c|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;d=od(d,807098);break c}J[699344]=0;d=_(3351,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a}Jg(e,f,d);e=J[a+16>> +2];c=vc(8);J[699344]=0;f=aa(3349,c|0,807597)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;c=vc(8);d:{if(b){J[699344]=0;d=aa(3350,c|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;d=od(d,807986);break d}J[699344]=0;d=_(3351,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a}Jg(e,f,d);e=J[a+16>>2];c=vc(8);J[699344]=0;f=aa(3349,c|0,808464)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;c=vc(8);e:{if(b){J[699344]=0;d=aa(3350,c|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;d=od(d,808875);break e}J[699344]= +0;d=_(3351,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a}Jg(e,f,d);e=J[a+16>>2];c=vc(8);J[699344]=0;f=aa(3349,c|0,809255)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;c=vc(8);f:{if(b){J[699344]=0;d=aa(3350,c|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;d=od(d,809557);break f}J[699344]=0;d=_(3351,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a}Jg(e,f,d);e=J[a+16>>2];c=vc(8);J[699344]=0;d=aa(3349,c|0,809911)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;c=vc(8);g:{if(b){J[699344]=0; +f=aa(3350,c|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1)break g;break a}J[699344]=0;b=_(3351,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;Jg(e,d,b);c=vc(16);J[699344]=0;b=_(3352,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;e=J[a+32>>2];c=vc(8);J[699344]=0;d=aa(3349,c|0,806736)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;Jg(e,d,b);c=vc(16);J[699344]=0;b=_(3352,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;e=J[a+32>>2];c=vc(8);J[699344]=0;d=aa(3349,c|0,807597)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break a;Jg(e,d,b);c=vc(16);J[699344]=0;b=_(3352,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;e=J[a+32>>2];c=vc(8);J[699344]=0;d=aa(3349,c|0,809911)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;Jg(e,d,b);c=vc(16);J[699344]=0;b=_(3352,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;e=J[a+32>>2];c=vc(8);J[699344]=0;d=aa(3349,c|0,808464)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;Jg(e,d,b);c=vc(16);J[699344]=0;b=_(3352,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;a=J[a+ +32>>2];c=vc(8);J[699344]=0;e=aa(3349,c|0,809255)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break b;break a}Jg(e,d,od(f,810290));od(b,810565);_w(a,806736,b);_w(a,807597,b);_w(a,809911,b);_w(a,808464,b);_w(a,809255,b);return}break a}Jg(a,e,b)}return}a=Z()|0;uc(c);ba(a|0);B()}function Opb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=fc-160|0;fc=i;a:{b:{if(ud(a,254960,13))break b;c:switch(K[a+13|0]){case 0:case 9:case 10:case 13:case 32:break c;default:break b}a=J[e+ +32>>2];d:{e:{if(!a|!J[a+72>>2])break e;if(!Pi(242788,J[a+92>>2]))break e;if(J[a+80>>2])break d}b=J[e+32>>2];a=I[b+12>>1];J[b+40>>2]=a;J[i+16>>2]=a;a=i+32|0;cg(a,242724,i+16|0);c=ns(J[e+32>>2],242788,a);if(c)break a}a=J[e+32>>2];f:{g:{if(!a|!J[a+72>>2])break g;if(!Pi(242884,J[a+92>>2]))break g;if(J[a+80>>2])break f}b=J[e+32>>2];a=I[b+14>>1];J[b+44>>2]=a;J[i>>2]=a;a=i+32|0;cg(a,242724,i);c=ns(J[e+32>>2],242884,a);if(c)break a}J[e>>2]=J[e>>2]&-17;J[d>>2]=1646;c=0;break a}h:{if(ud(a,254974,21))break h; +c=0;switch(K[a+21|0]){case 0:case 9:case 10:case 13:case 32:break a;default:break h}}i:{if(ud(a,241862,7))break i;c=a+7|0;j:switch(K[a+7|0]){case 9:case 10:case 13:case 32:H[a+7|0]=0;c=a+8|0;break;case 0:break j;default:break i}c=ns(J[e+32>>2],a,c);break a}g=J[e+32>>2];c=a;k:{while(1){l:{f=-1;m:{n:{d=K[c|0];switch(d|0){case 0:break k;case 9:break l;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:break m;default:break n}}if((d|0)==32)break l}c=c+1|0;continue}break}H[c|0]=0;f=d}d=0;o:{if(!a| +!K[a|0])break o;j=Pi(a,g+112|0);if(!j)break o;d=J[j>>2];if(d>>>0>=83){d=(J[g+104>>2]+(d<<4)|0)-1328|0;break o}d=(d<<4)+252384|0}if((f|0)!=-1)H[c|0]=f;if(!(J[d+4>>2]!=1?d:0)){if(K[c|0]){H[c|0]=0;c=c+1|0}f=a+b|0;while(1){b=K[c|0];if(!((b|0)!=32&(b|0)!=9)){c=c+1|0;continue}break}b=((b|0)==34)+c|0;p:{if(b>>>0>=f>>>0)break p;while(1){q:{r:{f=f-1|0;switch(K[f|0]-9|0){case 25:break q;case 0:case 23:break r;default:break p}}H[f|0]=0;if(b>>>0>>0)continue;break p}break}H[f|0]=0}c=ns(J[e+32>>2],a,b);break a}c= +dm(e+40|0,242214,a,b);if(c)break a;l=J[J[e+40>>2]>>2];d=0;s:{t:{u:{a=J[e+48>>2];switch(a|0){case 0:break s;case 1:break u;default:break t}}J[e+48>>2]=0;break s}g=a-1|0;j=g&3;b=0;c=1;if(a-2>>>0>=3){m=g&-4;while(1){f=J[e+40>>2];a=d<<2;n=f+a|0;h=f;f=c<<2;J[n>>2]=J[h+f>>2];h=J[e+40>>2];J[h+(a|4)>>2]=J[(f+h|0)+4>>2];h=J[e+40>>2];J[h+(a|8)>>2]=J[(f+h|0)+8>>2];h=a|12;a=J[e+40>>2];J[h+a>>2]=J[(a+f|0)+12>>2];c=c+4|0;d=d+4|0;k=k+4|0;if((m|0)!=(k|0))continue;break}}if(j)while(1){a=J[e+40>>2];J[a+(d<<2)>>2]= +J[a+(c<<2)>>2];c=c+1|0;d=d+1|0;b=b+1|0;if((j|0)!=(b|0))continue;break}J[e+48>>2]=g;if(!g){d=0;break s}a=J[J[e+40>>2]>>2];c=0;b=0;while(1){d=J[J[e+40>>2]+(b<<2)>>2];f=K[d|0];if(f){while(1){H[a+c|0]=f;c=c+1|0;f=K[d+1|0];d=d+1|0;if(f)continue;break}g=J[e+48>>2]}b=b+1|0;if(g>>>0>b>>>0){H[a+c|0]=32;g=J[e+48>>2];c=c+1|0}if(b>>>0>>0)continue;break}d=254785;if((a|0)==254785)break s;H[a+c|0]=0;d=a}c=ns(J[e+32>>2],l,d)}fc=i+160|0;return c|0}function qt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c; +a:{b:{d=J[a>>2];c:{if(d){xV(c+8|0,d,b);b=J[c+8>>2];d:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;a=Z()|0;break a}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break b}a=Z()|0;zc(c+12|0);break a}b=J[a>>2]; +J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+8>>2];J[c+8>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}break b}if((b|0)>0){J[699344]=0;J[c+8>>2]=0;d=_(4,16)|0;e=J[699344];J[699344]=0;f:{g:{if((e|0)==1)break g;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=0;J[d>>2]=2426580;J[699344]=0;aa(5145,c+8|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;J[699344]=0;e=_(4,b+1|0)|0;f=J[699344]; +J[699344]=0;if((f|0)!=1)break f}a=Z()|0;break a}J[d+8>>2]=b;J[d+12>>2]=e;H[b+e|0]=0;b=J[c+8>>2];h:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break h;a=Z()|0;break a}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;i:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break i;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i}break b}a= +Z()|0;zc(c+12|0);break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+8>>2];J[c+8>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}break b}J[c+8>>2]=0;vd(c+8|0,0);b=J[c+8>>2];j:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break j;a=Z()|0;break a}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0; +k:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break k;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break k;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break k}break b}a=Z()|0;zc(c+12|0);break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+8>>2];J[c+8>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}fc=c+ +16|0;a=J[a>>2];if(a)a=J[a+12>>2];else a=0;return a|0}ea(0)|0;Bc();B()}zc(c+8|0);ba(a|0);B()}function zD(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,r=0,s=0,t=0,u=0,v=0;q=a+24|0;a:{b:{c:{d:{e:{if(J[a+200>>2]){d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break e;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break d}d=2;if(Au(q,b,c))break a}r=a+208|0;f:{if(J[a+424>>2]){d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break f;J[a+400>>2]=d+1;d= +J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break d}d=2;if($o(r,b,c))break a}d=0;p=J[a>>2];g=J[p>>2];j=J[g+20>>2];s=J[g>>2];if(j>>>0>=s>>>0)break a;e=j+1|0;J[g+20>>2]=e;t=J[g+12>>2];d=j>>>6&67108860;h=j&255;n=J[t+d>>2]+(h<<4)|0;O[b>>3]=O[n>>3];m=O[n+8>>3];O[c>>3]=m;n=J[g+16>>2];d=K[h+J[n+d>>2]|0];if(d-1>>>0<=13){h=J[p+4>>2];f=O[b>>3];O[b>>3]=O[h+32>>3]+(f*O[h>>3]+m*O[h+16>>3]);m=O[h+40>>3]+(f*O[h+8>>3]+O[c>>3]*O[h+24>>3]);O[c>>3]=m}g:switch(d-3|0){case 0:h:{if(e>>> +0>=s>>>0)break h;J[g+20>>2]=j+2;d=e>>>6&67108860;e=e&255;g=J[d+t>>2]+(e<<4)|0;i=O[g+8>>3];f=O[g>>3];if(K[e+J[d+n>>2]|0]-1>>>0>13){k=i;break h}d=J[p+4>>2];k=O[d+40>>3]+(f*O[d+8>>3]+i*O[d+24>>3]);f=O[d+32>>3]+(f*O[d>>3]+i*O[d+16>>3])}i=O[b>>3];l=O[a+16>>3];o=O[a+8>>3];i:{if(!J[a+200>>2]){I3(q,o,l,i,m,f,k);break i}H3(a+152|0,o,l,i,m,f,k)}if(J[a+200>>2]){d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break b;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break b}Au(q, +b,c);if(J[a+200>>2])break b;Au(q,b,c);break d;case 1:break g;default:break a}j:{if(e>>>0>=s>>>0){d=e;break j}d=j+2|0;J[g+20>>2]=d;j=e>>>6&67108860;e=e&255;h=J[j+t>>2]+(e<<4)|0;f=O[h+8>>3];k=O[h>>3];if(K[e+J[j+n>>2]|0]-1>>>0>13){i=f;break j}e=J[p+4>>2];i=O[e+40>>3]+(k*O[e+8>>3]+f*O[e+24>>3]);k=O[e+32>>3]+(k*O[e>>3]+f*O[e+16>>3])}k:{if(d>>>0>=s>>>0)break k;J[g+20>>2]=d+1;e=d>>>6&67108860;d=d&255;g=J[e+t>>2]+(d<<4)|0;l=O[g+8>>3];f=O[g>>3];if(K[d+J[e+n>>2]|0]-1>>>0>13){o=l;break k}d=J[p+4>>2];o=O[d+40>> +3]+(f*O[d+8>>3]+l*O[d+24>>3]);f=O[d+32>>3]+(f*O[d>>3]+l*O[d+16>>3])}l=O[b>>3];u=O[a+16>>3];v=O[a+8>>3];l:{if(!J[a+424>>2]){hD(r,v,u,l,m,k,i,f,o);break l}VL(a+368|0,v,u,l,m,k,i,f,o)}if(J[a+424>>2]){d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break c;J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break c}$o(r,b,c);if(J[a+424>>2])break c;$o(r,b,c)}d=2;break a}d=2;e=J[a+400>>2];if(e>>>0>=M[a+404>>2])break a;J[a+400>>2]=e+1;e=J[J[a+416>>2]+(e>>>4&268435452)>> +2]+((e&63)<<4)|0;O[b>>3]=O[e>>3];O[c>>3]=O[e+8>>3];break a}d=2;e=J[a+176>>2];if(e>>>0>=M[a+180>>2])break a;J[a+176>>2]=e+1;e=J[J[a+192>>2]+(e>>>4&268435452)>>2]+((e&63)<<4)|0;O[b>>3]=O[e>>3];O[c>>3]=O[e+8>>3]}O[a+8>>3]=O[b>>3];O[a+16>>3]=O[c>>3];return d}function Go(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+344>>2]+1|0;J[a+344>>2]=c;a:{b:{if(c>>>0>2])break b;if(!K[a+398|0])break a;J[a+344>>2]=0;d=K[a+399|0];c:{if(!(K[a+208|0]&2)){c=d+1|0;b=c&255;if(b>>>0>6)break c;e=K[b+69020|0];g=(e+J[a+320>> +2]|0)+(K[b+69013|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+69006|0];b=(f+J[a+324>>2]|0)+(K[b+68999|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+2|0;b=c&255;if(b>>>0>6)break c;e=K[b+69020|0];g=(e+J[a+320>>2]|0)+(K[b+69013|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+69006|0];b=(f+J[a+324>>2]|0)+(K[b+68999|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+3|0;b=c&255;if(b>>>0>6)break c;e=K[b+69020|0];g=(e+J[a+320>>2]|0)+(K[b+69013|0]^-1)|0; +J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+69006|0];b=(f+J[a+324>>2]|0)+(K[b+68999|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+4|0;b=c&255;if(b>>>0>6)break c;e=K[b+69020|0];g=(e+J[a+320>>2]|0)+(K[b+69013|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+69006|0];b=(f+J[a+324>>2]|0)+(K[b+68999|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+5|0;b=c&255;if(b>>>0>6)break c;e=K[b+69020|0];g=(e+J[a+320>>2]|0)+(K[b+69013|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>> +0);f=K[b+69006|0];b=(f+J[a+324>>2]|0)+(K[b+68999|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+6|0;b=c&255;if(b>>>0>6)break c;e=K[b+69020|0];g=(e+J[a+320>>2]|0)+(K[b+69013|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+69006|0];b=(f+J[a+324>>2]|0)+(K[b+68999|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+7|0;if(d>>>0<249)break c;b=c&255;e=K[b+69020|0];g=(e+J[a+320>>2]|0)+(K[b+69013|0]^-1)|0;J[a+332>>2]=(g>>>0)/(e>>>0);f=K[b+69006|0];b=(f+ +J[a+324>>2]|0)+(K[b+68999|0]^-1)|0;J[a+328>>2]=(b>>>0)/(f>>>0);if(e>>>0<=g>>>0&b>>>0>=f>>>0)break c;c=d+8|0;d=c&255;if(d>>>0>6)break c;b=K[d+69020|0];J[a+332>>2]=((b+J[a+320>>2]|0)+(K[d+69013|0]^-1)>>>0)/(b>>>0);b=K[d+69006|0];J[a+328>>2]=((b+J[a+324>>2]|0)+(K[d+68999|0]^-1)>>>0)/(b>>>0);break c}c=d+1|0}H[a+399|0]=c;if((c&255)>>>0>6)break a;c=J[a+352>>2];if(!c)break b;d=J[a+320>>2];a=P(K[a+403|0],K[a+406|0]);d:{if(a>>>0>=8){a=P(d,a>>>3|0);break d}a=P(a,d)+7>>>3|0}Ac(c,0,a+1|0)}return}c=a+212|0;while(1){e:{d= +Wk(c,4);if(d){if((d|0)!=1)break e;c=J[a+272>>2];d=J[a+228>>2];if(c>>>0>d>>>0){di(a,1229209940,J[a+268>>2],c-d|0);c=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=c;J[a+200>>2]=J[a+200>>2]|4}XW(a);J[a+256>>2]=0;return}if(J[a+228>>2])continue;di(a,1229209940,J[a+268>>2],J[a+272>>2]);d=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=d;J[a+200>>2]=J[a+200>>2]|4;continue}break}c=J[a+236>>2];if(!c){Ld(a,63410);B()}Ld(a,c);B()}function rC(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=-1;c=J[a+28>>2];a:{if(!c)break a; +d=J[c+16>>2];if(!d)break a;f=J[a+16>>2];J[a+16>>2]=-1;h=J[d+12>>2];b:{c:{d:{e:{f:{g:{h:{while(1){b=0;i:{if(J[d+32>>2])break i;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break i;J[d+20>>2]=c;b=c}j:{if(J[a+60>>2]+512>>>0<=b>>>0)break j;if(J[a>>2]==3)break d;b=-1;k:{c=J[a+28>>2];l:{if(!c|J[c+28>>2])break l;m:{if(J[c+4>>2]){b=CC(c,4096);break m}c=J[c+16>>2];if(!c)break l;b=J[c+12>>2]!=2?-1:0}if(!(b|(h|0)!=2)){b=0;n:{if(J[d+ +32>>2])break n;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break n;J[d+20>>2]=c;b=c}if(J[a+60>>2]!=(b|0))break j;J[a+16>>2]=f;J[a>>2]=3;break j}if((b|0)>=0)break k}J[a+16>>2]=f;J[a>>2]=3;if(f)break a;if(!J[J[a+20>>2]+8>>2])break j;break a}if(b)break j;J[a>>2]=3;break d}o:{g=J[d+32>>2];p:{if(!g){b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;c=J[d+20>>2];b=J[d+4>>2];if(!((c|0)==(b|0)|b>>>0>2147483646)){J[d+ +20>>2]=b;c=b}b=J[a+60>>2];if(c>>>0>>0)break o;e=J[a+20>>2];c=0;if(g)break p;c=J[d>>2];break p}b=J[a+60>>2];if((b|0)!=-512)break h;e=J[a+20>>2];b=-512;c=0}c=gC(e,b+c|0,512,0);e=J[a+60>>2]+512|0;J[a+60>>2]=e;b=J[a+20>>2];if(c)break f;if(!J[b+12>>2]|J[a+16>>2]!=-1)break e;continue}break}if(g)break h;c=J[d+8>>2];if(!((c|0)==J[d+24>>2]|c>>>0>2147483646))J[d+24>>2]=c;e=J[d+20>>2];c=J[d+4>>2];if((e|0)==(c|0)|c>>>0>2147483646)c=e;else J[d+20>>2]=c;c=c-b|0;e=J[d>>2];break g}c=0-b|0;e=0}b=gC(J[a+20>> +2],b+e|0,c,0);e=J[a+60>>2]+c|0;J[a+60>>2]=e;if(!b)break e;b=J[a+20>>2]}J[b+12>>2]=0}q:switch(J[a>>2]-1|0){case 0:break q;case 2:break d;default:break c}if((h|0)==2|e>>>0<4096)break c;b=0;r:{if(J[d+32>>2])break r;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break r;J[d+20>>2]=c;b=c}if(b-e>>>0>512)break c;b=wx(d,e);if((b|0)<0)break c;J[a+60>>2]=J[a+60>>2]-b;break c}if(J[a+16>>2]==5)break c;s:{if(!J[d+32>>2]){b=J[d+8>>2]; +if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;c=J[d+20>>2];b=J[d+4>>2];if(!((c|0)==(b|0)|b>>>0>2147483646)){J[d+20>>2]=b;c=b}e=J[d>>2];b=J[a+60>>2];c=c-b|0;break s}e=0;b=J[a+60>>2];c=0-b|0}e=gC(J[a+20>>2],b+e|0,c,1);b=0;t:{if(J[d+32>>2])break t;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break t;J[d+20>>2]=c;b=c}J[a+16>>2]=5;J[a+60>>2]=b;if(!e)break c;b=J[a+20>>2];if(!J[b+12>>2])break b;J[b+12>>2]=0}J[a+16>>2]= +f;b=0;if(J[J[a+20>>2]+12>>2])break a;J[a>>2]=3}b=-1}return b}function SJ(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-144|0;fc=g;J[g+128>>2]=13;J[g+112>>2]=13;J[g+96>>2]=13;J[g+80>>2]=13;J[g+64>>2]=13;J[g+48>>2]=13;a:{b:{c:{d:{e:{if(J[d+8>>2]<=(c|0)){Cc(1,-1,804447,0);d=vc(72);c=J[a>>2];J[699344]=0;c=ga(3547,d|0,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;break c}f:{g:{h:{i:{j:{e=J[d+16>>2];if(!e){f=J[d>>2];e=J[d+12>>2];if(e)while(1){if(!((f|0)!=J[e>>2]|J[d+4>>2]!=J[e+4>>2])){Cc(1, +-1,805047,0);d=vc(72);c=J[a>>2];J[699344]=0;c=ga(3547,d|0,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;break c}e=J[e+12>>2];if(e)continue;break}J[g+140>>2]=J[d+4>>2];J[g+136>>2]=f;J[g+128>>2]=9;e=0;h=g+128|0;f=g+112|0;if(J[jf(h,J[a+4>>2],f,0)>>2]!=7){J[g+32>>2]=J[(J[f>>2]<<2)+2735600>>2];Cc(1,-1,805857,g+32|0);yc(f);yc(h);d=vc(72);c=J[a>>2];J[699344]=0;c=ga(3547,d|0,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;break c}f=vc(296);h=J[d+12>>2];if(h)e=J[h+20>>2];J[699344]=0;e=ga(3548, +f|0,e|0,J[g+120>>2])|0;h=J[699344];J[699344]=0;if((h|0)==1)break h;k:{if(J[Ec(J[g+120>>2],798515,g+96|0,0)>>2]==6){J[d+20>>2]=e;e=vc(16);J[699344]=0;f=_(3352,e|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;J[d+16>>2]=f;f=J[g+104>>2];if(J[f+12>>2]<=0)break k;e=0;while(1){h=f;f=g+80|0;l:{if(J[tg(h,e,f)>>2]==9){m:{if(J[jf(f,J[a+4>>2],g- -64|0,0)>>2]==7){f=g+48|0;h=J[Ec(J[g+72>>2],802182,f,0)>>2];i=J[g+56>>2];yc(f);j=J[d+16>>2];f=vc(24);k=J[g+88>>2];l=J[g+92>>2];J[f+16>>2]=0;J[f+20>>2]=0;J[f+12>>2]= +d;J[f+8>>2]=(h|0)!=1?1:i;J[f>>2]=k;J[f+4>>2]=l;sd(j,f);break m}J[g>>2]=J[(J[g- -64>>2]<<2)+2735600>>2];Cc(1,-1,805857,g)}yc(g- -64|0);break l}J[g+16>>2]=J[(J[g+80>>2]<<2)+2735600>>2];Cc(1,-1,806277,g+16|0)}yc(g+80|0);e=e+1|0;f=J[g+104>>2];if((e|0)>2])continue;break}break k}i=J[d+4>>2];h=b-1|0;f=J[a+16>>2]+(h<<3)|0;J[f>>2]=J[d>>2];J[f+4>>2]=i;f=vc(72);i=J[a>>2];J[699344]=0;e=na(3549,f|0,i|0,b|0,J[g+120>>2],e|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break j;f=h<<2;J[f+J[a+12>>2]>>2]=e;e=J[f+ +J[a+12>>2]>>2];if(J[e+64>>2])break k;uc(A_(e));e=vc(72);h=J[a>>2];J[699344]=0;h=ga(3547,e|0,h|0,b|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;J[f+J[a+12>>2]>>2]=h}yc(g+96|0);yc(g+112|0);yc(g+128|0);e=J[d+16>>2];if(!e)break d}f=J[e+8>>2];if((f|0)>0)break i;e=0;break g}a=Z()|0;uc(f);break a}h=J[e>>2];e=0;while(1){i=J[h+(e<<2)>>2];j=J[i+8>>2];if((j|0)>(c|0)){SJ(a,b,c,i);f=J[J[d+16>>2]+8>>2];break g}c=c-j|0;e=e+1|0;if((f|0)!=(e|0))continue;break}break f}a=Z()|0;uc(f);break a}if((e|0)!=(f|0))break d}Cc(1, +-1,806670,0);d=vc(72);c=J[a>>2];J[699344]=0;c=ga(3547,d|0,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;break c}J[(J[a+12>>2]+(b<<2)|0)-4>>2]=c}fc=g+144|0;return}a=Z()|0;uc(d);break a}a=Z()|0;uc(e)}ba(a|0);B()}function m7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=fc-48|0;fc=g;Dq(a,g+36|0);j=J[g+44>>2];a:{if(!j){e=3;break a}h=J[g+36>>2];J[g+32>>2]=h;i=J[g+40>>2];b:{c:{d:{f=J[b+8>>2];if((f|0)==7){e=J[a+8>>2];J[a+8>>2]=i-1;m=1; +f=J[a>>2];J[a>>2]=h+1;Dq(a,g);J[a+8>>2]=e;J[a>>2]=f;e=3;if(J[g+8>>2]==3)break d;f=7;break b}e=3;if((j|0)==3)break c;m=1;break b}if(!d)break a;J[g+32>>2]=h+1;i=i-1|0;f=8;n=1;break b}if(!d)break a;n=1;J[g+32>>2]=h+1;i=i-1|0;m=d}r=P(d,3);o=d<<2;s=f-1|0;t=j-2|0;p=d<<3;e:{while(1){e=J[(n<<2)+c>>2];h=J[b+16>>2];vh(g+32|0,i);j=e+h|0;e=3;f:{g:{h:{i:{j:{k:switch(s|0){case 0:f=J[g+32>>2];h=f;l:{if(K[f|0]!=116|f+3>>>0>=i>>>0|(K[f+1|0]!=114|K[f+2|0]!=117))break l;if(K[f+3|0]!=101)break l;e=1;J[g+32>>2]=f+5;break j}e= +0;m:{if(K[f|0]!=102|f+4>>>0>=i>>>0|(K[f+1|0]!=97|K[f+2|0]!=108))break m;if(K[h+3|0]!=115)break m;f=(K[f+4|0]==101?6:0)+f|0}J[g+32>>2]=f;break j;case 2:e=am(g+32|0,i,0);break j;case 3:e=am(g+32|0,i,3);break j;case 7:break g;case 6:break h;case 4:case 5:break i;case 1:break k;default:break a}k=J[g+32>>2];J[g>>2]=k;h=eo(g,i,10);e=0;f=J[g>>2];if((k|0)==(f|0))break j;if(!(K[f|0]!=35|f>>>0>=i>>>0)){k=f+1|0;J[g>>2]=k;h=eo(g,i,h);f=J[g>>2];if((k|0)==(f|0))break j}J[g+32>>2]=f;e=h}n:switch(K[b+20|0]-1|0){case 0:H[j| +0]=e;break f;case 1:I[j>>1]=e;break f;default:break n}J[j>>2]=e;break f}h=J[g+32>>2];if(h>>>0>=i>>>0)break f;f=i-h|0;k=J[a+16>>2];o:{p:switch(t|0){case 2:h=h+1|0;J[g+32>>2]=h;f=f-1|0;break o;case 0:break p;default:break a}h=h+1|0;J[g+32>>2]=h;f=f-2|0}e=J[j>>2];if(e){if(e)kc[J[k+8>>2]](k,e);J[j>>2]=0}k=he(k,f+1|0,g+28|0);e=J[g+28>>2];if(e)break a;e=xc(k,h,f);H[e+f|0]=0;J[j>>2]=e;break f}if((Wu(g+32|0,i,4,g,0)|0)>=4){e=J[g>>2];J[j>>2]=((e>>31)+e|0)+32768&-65536;e=J[g+4>>2];J[j+4>>2]=((e>>31)+e|0)+32768& +-65536;e=J[g+8>>2];J[j+8>>2]=((e>>31)+e|0)+32768&-65536;e=J[g+12>>2];J[j+12>>2]=((e>>31)+e|0)+32768&-65536;break f}break a}j=J[a+16>>2];h=_c(j,4,0,o,0,g+28|0);e=J[g+28>>2];if(e)break a;e=g+32|0;f=Wu(e,i,d,h,0);if((f|0)<0|d>>>0>f>>>0)break e;vh(e,i);f=Wu(e,i,d,h+o|0,0);if((f|0)<0|d>>>0>f>>>0)break e;vh(e,i);f=Wu(e,i,d,h+p|0,0);if((f|0)<0|d>>>0>f>>>0)break e;vh(e,i);q=r<<2;f=Wu(e,i,d,h+q|0,0);if((f|0)<0|d>>>0>f>>>0)break e;vh(e,i);f=0;if(d)while(1){k=f<<2;e=J[k+c>>2];k=h+k|0;l=J[k>>2];J[e>>2]=((l>> +31)+l|0)+32768&-65536;l=J[k+o>>2];J[e+4>>2]=((l>>31)+l|0)+32768&-65536;l=J[k+p>>2];J[e+8>>2]=((l>>31)+l|0)+32768&-65536;l=e;e=J[k+q>>2];J[l+12>>2]=((e>>31)+e|0)+32768&-65536;f=f+1|0;if((f|0)!=(d|0))continue;break}if(h)kc[J[j+8>>2]](j,h)}n=n+1|0;m=m-1|0;if(m)continue;break}e=0;break a}J[g+28>>2]=3;if(h)kc[J[j+8>>2]](j,h);e=J[g+28>>2]}fc=g+48|0;return e|0}function cW(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;f=fc-32|0;fc=f;J[a>>2]=0;d=J[685894];J[a+4>>2]=d;a:{b:{c:{d:{e:{g=J[b+36>> +2];if(!(!g|!J[g+8>>2])){J[f+24>>2]=d;J[f+20>>2]=0;d=J[J[g>>2]+28>>2];J[699344]=0;e=f+12|0;ca(d|0,e|0,g|0,1);d=J[699344];J[699344]=0;f:{g:{if((d|0)!=1){J[699344]=0;aa(5153,f+20|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){g=J[f+12>>2];J[f+12>>2]=0;if(!g)break f;J[699344]=0;e=J[g+4>>2]-1|0;J[g+4>>2]=e;d=J[699344];J[699344]=0;if((d|0)!=1){if(e)break f;J[699344]=0;$(5147,g|0);d=J[699344];J[699344]=0;if((d|0)!=1)break f}break a}d=Z()|0;zc(f+12|0);break g}d=Z()|0}wc(f+20|0);break b}d=J[f+20>>2];J[f+24>> +2]=J[(d?d+12|0:2743576)>>2];J[699344]=0;$(5580,b+36|0);d=J[699344];J[699344]=0;h:{i:{j:{if((d|0)!=1){J[699344]=0;e=f+4|0;ca(5581,e|0,b|0,f+20|0);d=J[699344];J[699344]=0;if((d|0)==1)break j;J[699344]=0;ca(5291,f+12|0,e|0,2387496);d=J[699344];J[699344]=0;if((d|0)==1)break i;e=J[f+12>>2];k:{if(e){d=J[J[e>>2]+28>>2];J[699344]=0;ca(d|0,f+28|0,e|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break k;d=Z()|0;break e}J[f+28>>2]=0}J[699344]=0;aa(5153,a|0,f+28|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){g=J[f+28>> +2];J[f+28>>2]=0;if(!g)break h;J[699344]=0;e=J[g+4>>2]-1|0;J[g+4>>2]=e;d=J[699344];J[699344]=0;if((d|0)!=1){if(e)break h;J[699344]=0;$(5147,g|0);d=J[699344];J[699344]=0;if((d|0)!=1)break h}break a}d=Z()|0;zc(f+28|0);break e}d=Z()|0;break c}d=Z()|0;break c}d=Z()|0;break d}d=J[a>>2];J[a+4>>2]=J[(d?d+12|0:2743576)>>2];wc(f+12|0);wc(f+4|0);wc(f+20|0)}l:{m:{n:{o:{p:{q:{d=J[c>>2];r:{if(!d)break r;g=J[d+8>>2];if((g|0)<=0)break r;d=0;while(1){i=J[c>>2];s:{t:{u:{v:{w:{x:{if(d){h=!i;j=(d|0)>=0;e=d;y:{if(j)break y; +e=d;if(!i)break y;e=J[i+8>>2]+d|0}if(h|(e|0)<0)break l;k=J[i+8>>2];if((e|0)<=(k|0))break x;break l}if(!i)break u;e=10;if(K[J[i+12>>2]]==10)break w;break v}h=J[i+12>>2];if(K[h+e|0]!=10)break v;e=d;if(!j){e=d+k|0;if((e|0)<0)break l}if((e|0)>(k|0))break l;e=K[e+h|0]}J[699344]=0;aa(5315,a|0,e<<24>>24)|0;e=J[699344];J[699344]=0;d=d+1|0;if((e|0)!=1)break s;d=Z()|0;break b}J[699344]=0;e=Bo(i,10,d);h=J[699344];J[699344]=0;if((h|0)==1)break m;if((e|0)>=0)break t}e=g}J[699344]=0;j=f+12|0;ia(5313,j|0,c|0,d| +0,e-d|0);d=J[699344];J[699344]=0;if((d|0)==1)break q;J[699344]=0;h=f+20|0;ca(5583,h|0,b|0,j|0);d=J[699344];J[699344]=0;if((d|0)==1)break p;J[699344]=0;aa(5340,a|0,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;wc(h);wc(j);d=e}if((g|0)>(d|0))continue;break}}fc=f+32|0;return}d=Z()|0;break b}d=Z()|0;break n}d=Z()|0;wc(f+20|0)}wc(f+12|0);break b}d=Z()|0;break b}J[699344]=0;ka(5289);b=J[699344];J[699344]=0;if((b|0)!=1)B();d=Z()|0;break b}wc(f+12|0)}wc(f+4|0)}wc(f+20|0)}wc(a);ba(d|0);B()}ea(0)|0;Bc(); +B()}function POa(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;g=fc-16|0;fc=g;J[a>>2]=0;J[a+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;d=a+32|0;J[d>>2]=0;J[d+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;e=Ac(a+72|0,0,96);J[a+280>>2]=13;J[a+256>>2]=13;J[a+240>>2]=13;J[a+224>>2]=13;J[a+208>>2]=13;J[a+192>>2]=13;J[a+176>>2]=13;J[g>>2]=13;i=a+280|0;a:{if(b){f=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=f;f=J[b+28>>2]; +J[a+24>>2]=J[b+24>>2];J[a+28>>2]=f;f=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=f;f=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=f;f=J[b+60>>2];J[d+24>>2]=J[b+56>>2];J[d+28>>2]=f;f=J[b+52>>2];J[d+16>>2]=J[b+48>>2];J[d+20>>2]=f;f=J[b+44>>2];J[d+8>>2]=J[b+40>>2];J[d+12>>2]=f;f=J[b+36>>2];J[d>>2]=J[b+32>>2];J[d+4>>2]=f;J[a+64>>2]=J[b+64>>2];J[a+168>>2]=J[b+168>>2];Pe(b+280|0,i);break a}J[a>>2]=0;J[a+4>>2]=0;J[a+168>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1082703872;J[a+16>>2]=0;J[a+20>>2]=1082335232;J[a+8>>2]=0; +J[a+12>>2]=0;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[a+280>>2]=5}b=a+136|0;f=a+104|0;xw(c,776240,a);b:{if(xw(c,777418,d)){J[a+64>>2]=1;break b}if(J[a+64>>2])break b;h=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=h;h=J[a+28>>2];J[d+24>>2]=J[a+24>>2];J[d+28>>2]=h;h=J[a+20>>2];J[d+16>>2]=J[a+16>>2];J[d+20>>2]=h;h=J[a+12>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=h}h=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=h;h=J[d+28>>2];J[e+24>>2]=J[d+24>>2];J[e+28>> +2]=h;h=J[d+20>>2];J[e+16>>2]=J[d+16>>2];J[e+20>>2]=h;h=J[d+12>>2];J[e+8>>2]=J[d+8>>2];J[e+12>>2]=h;xw(c,778453,e);e=J[d+28>>2];J[f+24>>2]=J[d+24>>2];J[f+28>>2]=e;e=J[d+20>>2];J[f+16>>2]=J[d+16>>2];J[f+20>>2]=e;e=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=e;e=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=e;xw(c,779700,f);e=J[d+28>>2];J[b+24>>2]=J[d+24>>2];J[b+28>>2]=e;e=J[d+20>>2];J[b+16>>2]=J[d+16>>2];J[b+20>>2]=e;e=J[d+12>>2];J[b+8>>2]=J[d+8>>2];J[b+12>>2]=e;e=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=e;xw(c,781012, +b);Ec(c,782344,g,0);if(J[g>>2]==1)J[a+168>>2]=J[g+8>>2];yc(g);b=J[a+168>>2];if((b|0)<0){e=(b|0)<=-360?-360:b;d=b;b=b>>>0<4294966936;b=(d+P(((e-(d+b|0)>>>0)/360|0)+b|0,360)|0)+360|0;J[a+168>>2]=b}if((b|0)>=360){d=b;b=(b-((b|0)>=719?719:b)|0)+359|0;J[a+168>>2]=(d+(((b>>>0)%360|0)-b|0)|0)-360}Ec(c,783458,a+176|0,0);Ec(c,784354,a+192|0,0);Ec(c,785278,a+208|0,0);Ec(c,786435,a+224|0,0);Ec(c,787095,a+240|0,0);Ec(c,788095,a+256|0,0);c:{d:{if(J[Ec(c,788863,g,0)>>2]-3>>>0>=4294967294){j=J[g>>2]==1?+J[g+8>> +2]:O[g+8>>3];O[a+272>>3]=j;if(!(j<1))break c;b=a+272|0;break d}b=a+272|0}J[b>>2]=0;J[b+4>>2]=1072693248}yc(g);Ec(c,789713,g,0);if(J[g>>2]==7){yc(i);Pe(g,i)}yc(g);fc=g+16|0;return a|0}function w3(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;g=fc-32|0;fc=g;J[g+28>>2]=0;a:{if(!f|J[f>>2]>0)break a;if(d?!a|!b:1){J[f>>2]=1;break a}b:{k=e-(((e>>>0>=2147483649?-1:e+2147483647|0)|0)==(e|0))|0;l=J[d>>2];c:{if(k>>>0>>0)break c;e=J[b>>2];if(e>>>0>c>>>0)break c;h=k-l| +0;if(k>>>0>l>>>0&h>>>0>2147483646|h&1)break c;if(c>>>0<=e>>>0|(c-e|0)>=0)break b}J[f>>2]=1;break a}if(H[a+63|0]>0){h=0;h=g+28|0?J[g+28>>2]:h;e=J[b>>2];m=H[a+63|0];d:{if((m|0)>0){i=a+76|0;while(1){if((c|0)==(e|0)){e=0;while(1){H[e+i|0]=K[i+j|0];e=e+1|0;j=j+1|0;if((m|0)>(j|0))continue;break}H[a+63|0]=e;J[b>>2]=c;if(h)J[g+28>>2]=h;J[f>>2]=15;e=1;break d}H[e|0]=K[i+j|0];if(h){J[h>>2]=-1;h=h+4|0}else h=0;e=e+1|0;j=j+1|0;if((m|0)!=(j|0))continue;break}}H[a+63|0]=0;J[b>>2]=e;if(h)J[g+28>>2]=h;e=0}if(e)break a}if((k| +0)==(l|0)&H[a+253|0]>=0)break a;H[g+2|0]=0;J[g+4>>2]=a;J[g+24>>2]=J[g+28>>2];J[g+12>>2]=k;J[g+8>>2]=l;J[g+16>>2]=J[b>>2];I[g>>1]=28;J[g+20>>2]=c;j=f;a=0;m=0;p=fc-48|0;fc=p;i=J[g+4>>2];c=J[J[i+24>>2]+20>>2];e=J[g+24>>2];e:{if(e){q=J[c+36>>2];if(q)break e;a=-1}else a=0;q=J[c+32>>2]}f=J[g+16>>2];l=J[g+8>>2];c=H[i+253|0];f:{if((c|0)>=0){c=a;a=0;h=0;break f}r=K[g+2|0];m=J[g+12>>2];c=c<<1;h=xc(p,i+184|0,0-c|0);J[g+12>>2]=h-c;H[g+2|0]=0;J[g+8>>2]=h;H[i+253|0]=0;c=-1;h=l}k=h;s=i+112|0;t=i+184|0;g:while(1){h:{h= +0;u=0;i:{if(J[j>>2]>0)break i;kc[q|0](g,j);if(!K[g+2|0]|J[j>>2]>0|J[g+8>>2]!=J[g+12>>2])break i;u=!J[i+56>>2]}n=0;while(1){j:{if(!e){e=0;break j}f=J[g+16>>2]-f|0;k:{if((f|0)<=0){f=e;break k}o=f<<2;f=o+e|0;h=(c|0)<0?-1:c-h|0;l:{if(!h)break l;if((h|0)<=0){v=e;w=e^-1;h=e+o|0;e=e+4|0;Ac(v,255,(w+(e>>>0>>0?h:e)&-4)+4|0);break l}while(1){o=J[e>>2];if((o|0)>=0)J[e>>2]=h+o;e=e+4|0;if(f>>>0>e>>>0)continue;break}}J[g+24>>2]=f}e=f;if((c|0)>=0)c=(J[g+8>>2]-l>>1)+c|0}f=H[i+253|0];if((f|0)<0)m:{if(!k){r=K[g+ +2|0];m=J[g+12>>2];k=J[g+8>>2];a=f<<1;h=xc(p,t,0-a|0);J[g+12>>2]=h-a;H[g+2|0]=0;J[g+8>>2]=h;H[i+253|0]=0;a=c;c=f+c|0;c=(c|0)<0?-1:c;break m}J[j>>2]=5}f=J[g+16>>2];l=J[g+8>>2];n:{h=J[j>>2];o:{if((h|0)<=0){if(M[g+12>>2]>l>>>0)continue g;if(k){J[g+12>>2]=m;J[g+8>>2]=k;H[g+2|0]=r;k=0;c=a;continue g}if(!K[g+2|0])break o;if(J[i+56>>2]){J[j>>2]=11;break n}k=0;if(!u)continue g;v3(i,2);break o}if(!(h-13>>>0<4294967293|n))break n;if(!k)break o;c=J[g+8>>2];a=J[g+12>>2]-c>>1;if((a|0)>0){if((a|0)>0)xc(t,c,a<<1); +H[i+253|0]=0-a}J[g+12>>2]=m;J[g+8>>2]=k;H[g+2|0]=r}fc=p+48|0;break h}n=J[i+56>>2];p:{if(n>>>0<=65535){I[s>>1]=n;h=1;break p}I[i+114>>1]=n&1023|56320;I[i+112>>1]=(n>>>10|0)-10304;h=2}J[i+56>>2]=0;H[i+64|0]=h;kc[J[i>>2]](J[i+12>>2],g,s,h,n,J[j>>2]!=10,j);n=1;continue}}break}J[d>>2]=J[g+8>>2];J[b>>2]=J[g+16>>2]}fc=g+32|0}function eAb(a){a=a|0;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;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;f=kc[J[a+220>>2]](a,J[a+680>> +2]+(b-c|0)|0)|0;b=J[a+580>>2];c=(f+(b<<2)|0)+(J[a+672>>2]<<2)|0;f=b;b=J[a+656>>2];g=f+b|0;b=(b|0)/J[a+584>>2]|0;d=J[a+660>>2];e=K[a+649|0];h=J[a+644>>2];b:{if(!K[a+648|0]){b=h+(b<<2)|0;if(!e)break b;if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+3|0];H[c+1|0]=K[b|0];H[c+2|0]=K[b+1|0];H[c+3|0]=K[b+2|0];b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}b=h+(b<<3)|0;if(e){if((d|0)<=(g|0))break a;while(1){H[c|0]=K[b+6|0];H[c+1|0]=K[b|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+ +4|0];b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+6|0]|K[b+7|0]<<8;d=(d<<8|d>>>8)&65535;c:{if(!d)break c;d:{if((d|0)!=65535){e=K[c|0];e=e<<8|e;if(e)break d}H[c|0]=K[b+6|0];H[c+1|0]=K[b|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+4|0];break c}if((e|0)==65535){e=K[b|0]|K[b+1|0]<<8;h=K[b+2|0]|K[b+3|0]<<8;i=K[b+4|0]|K[b+5|0]<<8;f=P(d,(i<<8|i>>>8)&65535);i=K[c+3|0];j=i<<8|i;i=d^65535;f=(f+P(j,i)|0)+32768|0;H[c+3|0]=(f>>>16|0)+f>>>24; +f=P((h<<8|h>>>8)&65535,d);h=K[c+2|0];h=(f+P(i,h<<8|h)|0)+32768|0;H[c+2|0]=(h>>>16|0)+h>>>24;f=P((e<<8|e>>>8)&65535,d);d=K[c+1|0];d=(f+P(i,d<<8|d)|0)+32768|0;H[c+1|0]=(d>>>16|0)+d>>>24;break c}h=K[c+1|0];i=K[c+2|0];f=K[c+3|0];k=K[b|0]|K[b+1|0]<<8;l=K[b+2|0]|K[b+3|0]<<8;j=K[b+4|0]|K[b+5|0]<<8;m=d^65535;n=P(m,e^65535)^-1;H[c|0]=n>>>24;o=f|f<<8;f=n>>>16|0;e=(P(e,m)>>>0)/(f>>>0)|0;d=(d<<16>>>0)/(f>>>0)|0;H[c+3|0]=(P(o,e)+P(d,(j<<8|j>>>8)&65535)|0)+32767>>>24;H[c+2|0]=(P(e,i|i<<8)+P(d,(l<<8|l>>>8)&65535)| +0)+32767>>>24;H[c+1|0]=(P(e,h|h<<8)+P(d,(k<<8|k>>>8)&65535)|0)+32767>>>24}b=b+8|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}break a}if((d|0)<=(g|0))break a;while(1){d=K[b+3|0];e:{if(!d)break e;f:{if((d|0)!=255){e=K[c|0];if(e)break f}H[c|0]=d;H[c+1|0]=K[b|0];H[c+2|0]=K[b+1|0];H[c+3|0]=K[b+2|0];break e}if((e|0)==255)break e;h=K[b|0];i=K[b+1|0];f=K[b+2|0];k=d^255;l=P(k,e^255)>>>8^-1;H[c|0]=l;j=f;f=l&255;d=(d<<8>>>0)/(f>>>0)|0;e=(P(e,k)>>>0)/(f>>>0)|0;H[c+3|0]=(P(j,d)+P(e, +K[c+3|0])|0)+127>>>8;H[c+2|0]=(P(d,i)+P(e,K[c+2|0])|0)+127>>>8;H[c+1|0]=(P(d,h)+P(e,K[c+1|0])|0)+127>>>8}b=b+4|0;d=J[a+584>>2];c=(d<<2)+c|0;g=d+g|0;if((g|0)>2])continue;break}}c=J[a+680>>2]+J[a+572>>2]|0;g=J[a+664>>2];b=J[a+556>>2];d=J[a+672>>2];g:{if((d|0)>=J[a+552>>2]){if(b)break g;b=0}J[a+552>>2]=d}f=b;b=J[a+676>>2];if((f|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];c=c-g|0;h:{if((c|0)>=J[a+560>>2]){if(b)break h;b=0}J[a+560>>2]=c}if((b|0)<=(c|0))J[a+564>>2]=c+1;return 0}function jUa(a,b,c){a= +a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;d=fc-48|0;fc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;Af(d+32|0,J[a+4>>2]);rg(J[a+108>>2],d+16|0,0,0,0,0,0,0,0);b=J[d+16>>2];if((b|0)==9){b=-1;e=J[a+108>>2];a:{if(!e)break a;e=J[e+4>>2];if(J[e+8>>2]==13)break a;b=J[e+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,b,800076,0);yc(d+16|0);J[d+16>>2]=11;b=11}b:{c:{d:{e:{f:{while(1){g:{h:{i:switch(b-4|0){case 6:if(!Ic(J[d+24>>2],842854))break e;default:b=-1;e=J[a+108>>2];j:{if(!e)break j;e=J[e+4>>2];if(J[e+ +8>>2]==13)break j;b=J[e+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,b,842944,0);yc(d+16|0);break h;case 0:break i;case 8:break f}b=Id(J[d+24>>2]);e=d+16|0;yc(e);rg(J[a+108>>2],e,0,0,0,0,0,0,0);k:switch(J[d+16>>2]-9|0){case 0:e=-1;f=J[a+108>>2];l:{if(!f)break l;f=J[f+4>>2];if(J[f+8>>2]==13)break l;e=J[f+16>>2];e=kc[J[J[e>>2]+52>>2]](e)|0}Cc(1,e,800076,0);yc(d+16|0);J[d+16>>2]=11;case 2:Mc(b);yc(d+16|0);break h;case 3:break g;default:break k}de(J[d+40>>2],b,d+16|0)}rg(J[a+108>>2],d+16|0,0,0,0,0,0,0,0); +b=J[d+16>>2];if((b|0)!=9)continue;b=-1;e=J[a+108>>2];m:{if(!e)break m;e=J[e+4>>2];if(J[e+8>>2]==13)break m;b=J[e+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,b,800076,0);yc(d+16|0);b=11;J[d+16>>2]=11;continue}break}Mc(b);if(J[d+16>>2]!=12)break e}b=-1;e=J[a+108>>2];n:{if(!e)break n;e=J[e+4>>2];if(J[e+8>>2]==13)break n;b=J[e+16>>2];b=kc[J[J[b>>2]+52>>2]](b)|0}Cc(1,b,843140,0);yc(d+16|0);yc(d+32|0);b=0;break d}yc(d+16|0);b=0;J[c+12>>2]=0;if(J[Ec(J[d+40>>2],843262,d,0)>>2]!=1){yc(d);Ec(J[d+40>>2],843529, +d,0)}if(J[d>>2]==1){b=J[d+8>>2];J[c+12>>2]=1}yc(d);f=J[J[a+108>>2]+4>>2];e=J[f+16>>2];f=J[f+8>>2]==13;if(e?f:1){if(f)b=-1;else b=kc[J[J[e>>2]+52>>2]](e)|0;Cc(1,b,843615,0);yc(d+32|0);b=0;break d}f=vc(40);g=J[c+12>>2];J[699344]=0;h=e;e=d+32|0;b=vw(f,h,e,g,b);g=J[699344];J[699344]=0;if((g|0)==1)break c;b=t_(b,e,0)}fc=d+48|0;break b}a=Z()|0;uc(f);ba(a|0);B()}o:{if(!b)break o;p:{if(!B$(a,0,b,1))break p;if(J[c+12>>2]){while(1){if((kc[J[J[b>>2]+28>>2]](b)|0)!=-1)continue;break}kc[J[J[b>>2]+4>>2]](b);a= +J[J[a+108>>2]+4>>2];b=J[a+8>>2]!=13?J[a+16>>2]:0;a=kc[J[J[b>>2]+28>>2]](b)|0;while(1){e=(a|0)!=69;a=kc[J[J[b>>2]+28>>2]](b)|0;d=kc[J[J[b>>2]+32>>2]](b)|0;if(!((a|0)!=73|e)){e=K[d+2318736|0]==1&d>>>0<=255;if((d|0)==-1)break o;if(!e)continue;break o}if((d|0)!=-1)continue;break}break o}a=kc[J[J[b>>2]+72>>2]](b)|0;a=kc[J[J[a>>2]+28>>2]](a)|0;while(1){e=(a|0)!=69;a=kc[J[J[b>>2]+72>>2]](b)|0;a=kc[J[J[a>>2]+28>>2]](a)|0;d=kc[J[J[b>>2]+72>>2]](b)|0;d=kc[J[J[d>>2]+32>>2]](d)|0;if(!((a|0)!=73|e)){e=K[d+2318736| +0]==1&d>>>0<=255;if((d|0)==-1)break p;if(!e)continue;break p}if((d|0)!=-1)continue;break}}kc[J[J[b>>2]+4>>2]](b)}fc=c+16|0}function aI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=fc-16|0;fc=g;a:{b:{if(!d)break b;if(K[a+8|0]){J[699344]=0;$(d|0,e|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;oa(ea(0)|0)|0;ta();break b}c:{d:{f=J[a+16>>2];if(!f){J[g+12>>2]=0;break d}J[f+4>>2]=J[f+4>>2]+1;h=J[a+16>>2];J[g+12>>2]=h;if(!h)break d;i=J[a+84>>2];J[699344]=0;f=_(4,28)|0;j=J[699344];J[699344]= +0;e:{if((j|0)==1)break e;J[f+4>>2]=0;J[f>>2]=2398004;J[f+24>>2]=e;J[f+20>>2]=d;c=(c|0)<0?(i|0)>0?i-b|0:c:c;J[f+16>>2]=c;J[f+12>>2]=b;J[f+8>>2]=0;J[699344]=0;J[g+8>>2]=0;aa(5145,g+8|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;f=J[a+80>>2];J[699344]=0;ma(5260,h|0,b+f|0,c|0,d|0,e|0);b=J[699344];J[699344]=0;f:{if((b|0)!=1)g:{J[699344]=0;b=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[b>>2]=0;J[b+4>>2]=0;c=J[g+8>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c| +0)==1)break g;c=J[g+8>>2]}else c=0;J[b+8>>2]=c;J[699344]=0;vf(a+108|0,b);a=J[699344];J[699344]=0;if((a|0)==1)break g;a=J[g+8>>2];J[g+8>>2]=0;if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}break a}d=Z()|0;zc(g+8|0);break c}J[699344]=0;a=J[h+4>>2]-1|0;J[h+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break b;J[699344]=0;$(5147,h|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}d= +Z()|0;break c}J[699344]=0;f=_(5244,a+20|0)|0;h=J[699344];J[699344]=0;h:{i:{if((h|0)==1)break i;if(f)break b;if((c|0)<0)break h;f=J[a+72>>2];J[699344]=0;f=ga(5262,f|0,b|0,c|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break i;if((c|0)!=(f|0))break h;J[699344]=0;$(d|0,e|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;oa(ea(0)|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break b}d=Z()|0;break c}J[699344]=0;f=_(4,28)|0;h=J[699344];J[699344]=0;j:{k:{if((h|0)==1)break k;J[f+4>>2]=0;J[f>>2]= +2398004;J[f+24>>2]=e;J[f+20>>2]=d;J[f+16>>2]=c;J[f+12>>2]=b;J[f+8>>2]=0;J[699344]=0;J[g+4>>2]=0;aa(5145,g+4|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;J[699344]=0;b=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;J[b>>2]=0;J[b+4>>2]=0;c=J[g+4>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break j;c=J[g+4>>2]}else c=0;J[b+8>>2]=c;J[699344]=0;vf(a+108|0,b);a=J[699344];J[699344]=0;if((a|0)==1)break j;a=J[g+4>>2];J[g+4>>2]=0;if(!a)break b;J[699344]=0;b= +J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}d=Z()|0;break c}d=Z()|0;zc(g+4|0)}zc(g+12|0);ba(d|0);B()}fc=g+16|0;return}ea(0)|0;Bc();B()}function xd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=fc-16|0;fc=i;J[c+4>>2]=2147483632;J[c+28>>2]=J[c+20>>2];h=J[a+28>>2];e=J[a+20>>2];a:{if((h|0)==(e|0))break a;d=J[b+28>>2];b=J[b+20>>2];if((d|0)==(b|0))break a;a=h-e>>3;J[i+8>>2]=e+8;J[i+4>>2]=b+ +8;b=d-b>>3;while(1){g=J[i+8>>2];d=g;j=I[d+2>>1];e=j>>31;f=J[i+4>>2];k=I[f+2>>1];h=k>>31;m=(e^j)-e|0;e=I[d>>1];l=m+e|0;d=(h^k)-h|0;h=I[f>>1];k=d+h|0;d=(k|0)>(l|0)?l:k;e=(e|0)>(h|0)?e:h;if((d|0)>(e|0)){h=d-e|0;b:{c:{d:{e:{f:switch((L[f+2>>1]>>>14&2|L[g+2>>1]>>>15)-1|0){default:d=I[f>>1];d=J[f+4>>2]+((d|0)<(e|0)?e-d|0:0)|0;f=I[g>>1];f=J[g+4>>2]+((e|0)>(f|0)?e-f|0:0)|0;while(1){j=e-J[c>>2]|0;g=P(K[d|0],K[f|0]);H[j+J[c+12>>2]|0]=(g|0)==65025?-1:g>>>8|0;g=J[c+28>>2];g:{if((j|0)==(J[c+4>>2]+1|0)){I[g+2>> +1]=L[g+2>>1]+1;break g}J[c+28>>2]=g+8;m=J[c>>2];I[g+10>>1]=1;I[g+8>>1]=j+m;J[g+12>>2]=j+J[c+12>>2]}e=e+1|0;d=d+1|0;f=f+1|0;J[c+4>>2]=j;h=h-1|0;if(h)continue;break}break b;case 0:d=I[f>>1];d=J[f+4>>2]+((d|0)<(e|0)?e-d|0:0)|0;if(K[J[g+4>>2]]==255)break d;while(1){g=e-J[c>>2]|0;f=P(K[d|0],K[J[J[i+8>>2]+4>>2]]);H[g+J[c+12>>2]|0]=(f|0)==65025?-1:f>>>8|0;f=J[c+28>>2];h:{if((g|0)==(J[c+4>>2]+1|0)){I[f+2>>1]=L[f+2>>1]+1;break h}J[c+28>>2]=f+8;j=J[c>>2];I[f+10>>1]=1;I[f+8>>1]=g+j;J[f+12>>2]=g+J[c+12>>2]}e= +e+1|0;d=d+1|0;J[c+4>>2]=g;h=h-1|0;if(h)continue;break}break b;case 1:d=I[g>>1];d=J[g+4>>2]+((d|0)<(e|0)?e-d|0:0)|0;if(K[J[f+4>>2]]==255)break e;while(1){g=e-J[c>>2]|0;f=P(K[J[J[i+4>>2]+4>>2]],K[d|0]);H[g+J[c+12>>2]|0]=(f|0)==65025?-1:f>>>8|0;f=J[c+28>>2];i:{if((g|0)==(J[c+4>>2]+1|0)){I[f+2>>1]=L[f+2>>1]+1;break i}J[c+28>>2]=f+8;j=J[c>>2];I[f+10>>1]=1;I[f+8>>1]=g+j;J[f+12>>2]=g+J[c+12>>2]}e=e+1|0;d=d+1|0;J[c+4>>2]=g;h=h-1|0;if(h)continue;break}break b;case 2:break f}e=e-J[c>>2]|0;d=P(K[J[f+4>>2]], +K[J[g+4>>2]]);Ac(e+J[c+12>>2]|0,(d|0)==65025?-1:d>>>8|0,h);f=c+4|0;d=J[c+28>>2];if((J[c+4>>2]+1|0)==(e|0)){I[d+2>>1]=L[d+2>>1]+h;break c}J[c+28>>2]=d+8;g=J[c>>2];I[d+10>>1]=h;I[d+8>>1]=e+g;J[d+12>>2]=J[c+12>>2]+e;break c}e=e-J[c>>2]|0;xc(e+J[c+12>>2]|0,d,h);f=c+4|0;d=J[c+28>>2];if((J[c+4>>2]+1|0)==(e|0)){I[d+2>>1]=L[d+2>>1]+h;break c}J[c+28>>2]=d+8;g=J[c>>2];I[d+10>>1]=h;I[d+8>>1]=e+g;J[d+12>>2]=J[c+12>>2]+e;break c}e=e-J[c>>2]|0;xc(e+J[c+12>>2]|0,d,h);f=c+4|0;d=J[c+28>>2];if((J[c+4>>2]+1|0)==(e| +0)){I[d+2>>1]=L[d+2>>1]+h;break c}J[c+28>>2]=d+8;g=J[c>>2];I[d+10>>1]=h;I[d+8>>1]=e+g;J[d+12>>2]=J[c+12>>2]+e}J[f>>2]=(e+h|0)-1}}j:{if((k|0)==(l|0)){a=a-1|0;if(a)J[i+8>>2]=J[i+8>>2]+8;b=b-1|0;if(!b)break a;J[i+4>>2]=J[i+4>>2]+8;break j}if((k|0)>(l|0)){a=a-1|0;if(!a)break a;J[i+8>>2]=J[i+8>>2]+8;break j}b=b-1|0;if(!b)break a;J[i+4>>2]=J[i+4>>2]+8}if(!a)break a;if(b)continue;break}}fc=i+16|0}function Qab(a){a=a|0;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;s=J[a+480>>2];J[a+136>>2]=J[s+16>>2];j=J[s+20>>2];l=kc[J[J[a+4>>2]>>2]](a,1,j<<5)|0;J[l+16>>2]=0;J[l+20>>2]=31;J[l+8>>2]=0;J[l+12>>2]=63;J[l>>2]=0;J[l+4>>2]=31;wM(J[J[a+480>>2]+24>>2],l);k=1;a:{if((j|0)<2)break a;while(1){b:{c:{d:{if((j|0)>=k<<1){if(q)break d;c=0;d=0;b=l;break c}h=0;c=0;d=0;b=l;if(q>>>0>=3){g=k&2147483644;f=0;while(1){m=c;c=J[b+24>>2];e=(c|0)>(d|0);i=J[b+56>>2];c=e?c:d;d=(i|0)>(c|0);m=d?b+32|0:e?b:m;e=J[b+88>>2];c=d?i:c;d=(e|0)>(c|0);m=d?b- -64|0:m;i=J[b+120>> +2];d=d?e:c;e=(i|0)>(d|0);c=e?b+96|0:m;d=e?i:d;b=b+128|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}f=k&3;if(!f)break b;while(1){g=J[b+24>>2];e=(g|0)>(d|0);c=e?b:c;d=e?g:d;b=b+32|0;h=h+1|0;if((f|0)!=(h|0))continue;break}break b}f=k&2147483646;c=0;d=0;b=l;h=0;while(1){g=J[b+28>>2];if((g|0)>(d|0)){e=J[b+24>>2]>0;c=e?b:c;d=e?g:d}g=J[b+60>>2];if((g|0)>(d|0)){e=J[b+56>>2]>0;c=e?b+32|0:c;d=e?g:d}b=b- -64|0;h=h+2|0;if((f|0)!=(h|0))continue;break}}if(!(k&1)|J[b+28>>2]<=(d|0))break b;c=J[b+24>>2]>0?b:c}if(!c)break a; +b=(k<<5)+l|0;h=J[c+4>>2];J[b+4>>2]=h;d=J[c+12>>2];J[b+12>>2]=d;f=J[c+20>>2];J[b+20>>2]=f;g=J[c>>2];J[b>>2]=g;e=J[c+8>>2];J[b+8>>2]=e;i=J[c+16>>2];J[b+16>>2]=i;e:{f:{g:{h:{i:{n=h-g<<4;p=P(d-e|0,12);switch((f-i<<3>(((n|0)>(p|0)?n:p)|0)?2:(n|0)<=(p|0))|0){case 2:break g;case 1:break h;case 0:break i;default:break e}}d=(g+h|0)/2|0;J[c+4>>2]=d;m=b;break f}d=(d+e|0)/2|0;J[c+12>>2]=d;m=b+8|0;break f}d=(f+i|0)/2|0;J[c+20>>2]=d;m=b+16|0}J[m>>2]=d+1}wM(J[J[a+480>>2]+24>>2],c);wM(J[J[a+480>>2]+24>>2],b);q=q+ +1|0;k=k+1|0;if((j|0)!=(k|0))continue;break}k=j}n=0;while(1){f=0;g=0;e=0;i=0;b=(n<<5)+l|0;p=J[b>>2];v=J[b+4>>2];j:{if((p|0)>(v|0))break j;w=J[b+12>>2];d=J[b+8>>2];if((w|0)<(d|0))break j;r=J[b+20>>2];j=J[b+16>>2];if((r|0)<(j|0))break j;y=J[J[a+480>>2]+24>>2];q=j+1|0;z=j<<3|4;A=(r-j|0)+1&1;while(1){t=p<<3|4;m=J[(p<<2)+y>>2];h=d;while(1){c=((h<<6)+m|0)+(j<<1)|0;u=h<<2|2;k:{if(!A){b=c;c=j;break k}b=c+2|0;c=L[c>>1];if(c){i=P(c,z)+i|0;e=P(c,u)+e|0;g=P(c,t)+g|0;f=c+f|0}c=q}if((j|0)!=(r|0))while(1){o=L[b>> +1];if(o){e=P(o,u)+e|0;g=P(o,t)+g|0;i=P(o,c<<3|4)+i|0;f=f+o|0}x=c+1|0;o=L[b+2>>1];if(o){e=P(o,u)+e|0;g=P(o,t)+g|0;i=P(o,x<<3|4)+i|0;f=f+o|0}b=b+4|0;c=c+2|0;if((r|0)!=(x|0))continue;break}b=(h|0)!=(w|0);h=h+1|0;if(b)continue;break}b=(p|0)!=(v|0);p=p+1|0;if(b)continue;break}}b=f>>1;H[J[J[a+136>>2]>>2]+n|0]=(b+g|0)/(f|0);H[J[J[a+136>>2]+4>>2]+n|0]=(b+e|0)/(f|0);H[J[J[a+136>>2]+8>>2]+n|0]=(b+i|0)/(f|0);n=n+1|0;if((n|0)!=(k|0))continue;break}J[a+132>>2]=k;b=J[a>>2];J[b+24>>2]=k;J[b+20>>2]=98;kc[J[J[a>> +2]+4>>2]](a,1);J[s+28>>2]=1}function SU(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;f=fc-32|0;fc=f;J[a>>2]=0;H[a+11|0]=0;J[699344]=0;J[f+28>>2]=0;i=f+28|0;g=aa(6365,d|0,i|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{if((d|0)!=1){if(J[f+28>>2]<=0){J[f+12>>2]=b;h=J[c>>2];J[699344]=0;d=K[J[J[g+24>>2]+12>>2]+70|0];j=J[699344];J[699344]=0;e:{f:{g:{h:{if((j|0)!=1){J[699344]=0;j=(h>>>0)/(d>>>0)|0;d=_(27,(j&1073741824?-1:j<<2)|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break b;J[699344]=0;J[f>>2]=d; +Ha(6367,g|0,f|0,d+(j<<1)|0,f+12|0,b+h|0,0,1,i|0);h=J[699344];J[699344]=0;if((h|0)==1)break h;if(J[f+28>>2]>0)break e;J[699344]=0;j=J[f>>2]-d|0;ca(3702,a|0,j|0,0);h=J[699344];J[699344]=0;if((h|0)==1)break g;J[f+24>>2]=0;k=J[a>>2];l=J[a+4>>2];h=K[a+11|0];J[699344]=0;m=k;k=h<<24>>24<0;RL(k?m:a,k?l:h,f+24|0,d,j>>1,i);i=J[699344];J[699344]=0;if((i|0)!=1){if(J[f+28>>2]>0)break f;J[699344]=0;ca(3702,a|0,J[f+24>>2],0);i=J[699344];J[699344]=0;if((i|0)!=1)break e}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d= +Z()|0;break a}if(H[a+11|0]<0){J[J[a>>2]>>2]=0;J[a+4>>2]=0;break e}H[a+11|0]=0;J[a>>2]=0}uc(d);J[699344]=0;$(6369,g|0);d=J[699344];J[699344]=0;if((d|0)==1)break b}i:{j:{if(!e)break j;d=K[a+11|0];if(d<<24>>24<0?J[a+4>>2]:d)break j;d=J[c>>2];if(!d)break j;if(d>>>0>=2147483632){J[699344]=0;$(3030,f+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;break c}k:{if(d>>>0<=10){H[f+23|0]=d;c=f+12|0;break k}J[699344]=0;e=(d|15)+1|0;c=_(4,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break i;J[f+12>>2]=c;J[f+16>> +2]=d;J[f+20>>2]=e|-2147483648}n=xc(c,b,d)+d|0,o=0,H[n|0]=o;c=H[f+23|0];b=(c|0)<0;g=b?J[f+16>>2]:c&255;if(g>>>0>=1073741808){J[699344]=0;$(2959,f|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break d}c=J[f+12>>2];l:{m:{if(g>>>0>=2){d=g|3;if(d>>>0>=1073741823){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break d}J[699344]=0;e=d+1|0;d=_(4,e<<2)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d;J[f>>2]=d;J[f+4>>2]=g;J[f+8>>2]=e|-2147483648;break m}H[f+11|0]=g;d=f;if(!g)break l}e=b?c:f+ +12|0;i=g-1|0;h=g&7;n:{if(!h){c=e;break n}b=0;c=e;while(1){J[d>>2]=H[c|0];d=d+4|0;c=c+1|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}if(i>>>0<7)break l;b=e+g|0;while(1){J[d>>2]=H[c|0];J[d+4>>2]=H[c+1|0];J[d+8>>2]=H[c+2|0];J[d+12>>2]=H[c+3|0];J[d+16>>2]=H[c+4|0];J[d+20>>2]=H[c+5|0];J[d+24>>2]=H[c+6|0];J[d+28>>2]=H[c+7|0];d=d+32|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}J[d>>2]=0;if(H[a+11|0]<0)uc(J[a>>2]);b=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=b;J[a+8>>2]=J[f+8>>2];if(H[f+23|0]>=0)break j;uc(J[f+12>>2])}fc= +f+32|0;return}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;if(H[f+23|0]>=0)break a;uc(J[f+12>>2]);break a}B()}d=Z()|0}if(H[a+11|0]<0)uc(J[a>>2]);ba(d|0);B()}function Iub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=J[a+512>>2];a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+291|0]|(K[a+300|0]|K[a+292|0]))break b;if(c>>>0>=7)break a;d:{h=K[a+289|0];if(h){e:{g=K[a+336|0];if((g|0)!=8){if((g|0)==12&(c|0)!=2)break a;if((g|0)==10)break e; +if((c|0)==6)break d;if((g|0)==14)break a;break d}if((c|0)==2)break d;break a}if((c|0)==6)break d;break a}if(K[a+286|0]|K[a+287|0]|K[a+288|0]){f:{g:{g=K[a+325|0];if(g){if((g|0)==4&(c|0)!=2)break a;if((g|0)==2)break g;if((g|0)==6&(c|0)!=6)break f;if((c|0)==1|(g|0)!=3)break d;break a}if((c|0)==2)break d;break a}if((c|0)==6)break d}break a}if((c|0)==6)break d;break a}g=K[a+286|0];h:{if(g|K[a+287|0]|(h|K[a+288|0])){H[a+299|0]=1;break h}H[a+312|0]=(c|0)!=0}if(!f)f=J[a+528>>2];f=J[f+88>>2];i:{j:{if(h){H[f+ +61|0]=1;k:switch(K[a+336|0]-8|0){case 0:case 4:g=f;f=K[d|0]|K[d+1|0]<<8;I[g+1154>>1]=f<<8|f>>>8;break j;case 2:case 6:break k;default:break j}g=K[d|0]|K[d+1|0]<<8;I[f+1156>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[f+1158>>1]=g<<8|g>>>8;g=f;f=K[d+4|0]|K[d+5|0]<<8;I[g+1160>>1]=f<<8|f>>>8;break j}if(K[a+287|0]|g|K[a+288|0]){H[f+61|0]=1;l:switch(K[a+325|0]){case 0:case 4:g=f;f=K[d|0]|K[d+1|0]<<8;I[g+1154>>1]=f<<8|f>>>8;break j;case 2:case 6:g=K[d|0]|K[d+1|0]<<8;I[f+1156>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3| +0]<<8;I[f+1158>>1]=g<<8|g>>>8;g=f;f=K[d+4|0]|K[d+5|0]<<8;I[g+1160>>1]=f<<8|f>>>8;break j;case 3:break l;default:break j}H[f+1152|0]=K[d|0];break j}m:{if(!c){f=L[a+2244>>1];h=L[a+2242>>1];i=L[a+2240>>1];break m}f=K[d|0]|K[d+1|0]<<8;i=f<<8|f>>>8;I[a+2240>>1]=i;f=K[d+2|0]|K[d+3|0]<<8;h=f<<8|f>>>8;I[a+2242>>1]=h;f=K[d+4|0]|K[d+5|0]<<8;f=f<<8|f>>>8;I[a+2244>>1]=f}g=0;n:{if(!K[a+114|0])break n;i=i&65535;h=h&65535;j=f&65535;f=kc[J[a+152>>2]](36)|0;if(!f){Jc(a,1,0,0);g=1;break n}J[f+4>>2]=1038;J[f>>2]=1039; +g=J[a+700>>2];o:{if(g){J[g+8>>2]=f;break o}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;I[f+32>>1]=j;I[f+30>>1]=h;I[f+28>>1]=i;g=0}f=g;if(f)break i}f=0;if(!K[a+112|0])break i;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break i;b=J[e>>2];H[b+32|0]=!c;H[b+33|0]=K[a+325|0];f=0;p:{q:switch(c-1|0){case 0:H[b+33|0]=3;H[b+34|0]=K[d|0];break p;case 1:H[b+33|0]=0;a=K[d|0]|K[d+1|0]<<8;I[b+ +36>>1]=a<<8|a>>>8;return 0;case 5:break q;default:break i}H[b+33|0]=2;a=K[d|0]|K[d+1|0]<<8;I[b+38>>1]=a<<8|a>>>8;a=K[d+2|0]|K[d+3|0]<<8;I[b+40>>1]=a<<8|a>>>8;a=K[d+4|0]|K[d+5|0]<<8;I[b+42>>1]=a<<8|a>>>8}}return f|0}Jc(a,1029,0,0);return 1029}Jc(a,1028,0,0);return 1028}function Qwa(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;d=fc+-64|0;fc=d;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;l=d+40|0;J[l>>2]=2397836;J[l+4>>2]=0;J[l+8>>2]=0;J[l+12>>2]=0;g=J[J[b>>2]+ +24>>2];J[699344]=0;da(g|0,b|0,l|0);g=J[699344];J[699344]=0;a:{b:{c:{if((g|0)!=1){h=J[l+8>>2];J[a>>2]=0;J[a+4>>2]=J[685894];if(h){g=J[h+8>>2];J[699344]=0;g=aa(5290,d+32|0,g|0)|0;f=J[699344];J[699344]=0;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((f|0)!=1){j=J[h>>2];r:{if(!j)break r;h=J[j+8>>2];J[699344]=0;h=aa(5290,d+16|0,(h^-1)+c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break p;J[699344]=0;f=d+24|0;ca(5218,f|0,2392269,h|0);m=J[699344];J[699344]=0;if((m|0)==1)break n;J[699344]=0;aa(5340,g|0,f|0)| +0;m=J[699344];J[699344]=0;if((m|0)==1)break m;m=wc(f);n=wc(h);i=J[j>>2];if(!i)break r;j=J[i+8>>2];J[699344]=0;j=aa(5290,d+8|0,j|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;J[699344]=0;ca(5218,f|0,2392269,j|0);e=J[699344];J[699344]=0;if((e|0)==1)break i;J[699344]=0;aa(5340,g|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;f=wc(f);o=wc(j);i=J[i>>2];if(!i)break r;while(1){e=J[i+8>>2];J[699344]=0;e=aa(5290,n|0,(e^-1)+c|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break q;J[699344]=0;ca(5218,m|0, +2392269,e|0);k=J[699344];J[699344]=0;if((k|0)==1)break o;J[699344]=0;aa(5340,g|0,m|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break m;wc(m);wc(e);i=J[i>>2];if(!i)break r;e=J[i+8>>2];J[699344]=0;e=aa(5290,o|0,e|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break l;J[699344]=0;ca(5218,f|0,2392269,e|0);k=J[699344];J[699344]=0;if((k|0)==1)break j;J[699344]=0;aa(5340,g|0,f|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break h;wc(f);wc(e);i=J[i>>2];if(i)continue;break}}J[699344]=0;ca(5630,d+24|0,b|0,g|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break e;b=J[d+24>>2];if(!b)break g;c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+60|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;break c}b=Z()|0;wc(a);break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;wc(h);break b}b=Z()|0;wc(h);break b}b=Z()|0;wc(d+24|0);wc(h);break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;wc(j);break b}b=Z()|0;wc(j);break b}b=Z()|0;wc(d+24|0);wc(j);break b}J[d+60>>2]=0}J[699344]=0;aa(5153,a|0,d+60|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+ +60>>2];J[d+60>>2]=0;if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h=J[699344];J[699344]=0;if((h|0)!=1){if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}ea(0)|0;Bc();B()}b=Z()|0;zc(d+60|0);break c}b=Z()|0;break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(d+24|0);wc(g)}id(l);fc=d- -64|0;return}b=Z()|0;break a}wc(d+24|0)}wc(g);wc(a)}id(l);ba(b|0);B()}function DGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-48|0;fc=e;a:{b:{c:{d:{e:{f:{g:{h:{if((tq(a)| +0)<=0)break h;if(!vk(a))break h;g=e+24|0;QC(g,a);J[699344]=0;g=aa(4985,e+36|0,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;if(H[e+35|0]<0)uc(J[e+24>>2]);i:{j:{k:{if(!c){l:{m:{while(1){J[699344]=0;c=J[g+4>>2];d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!c)break i;J[699344]=0;c=Qd(g,2383792);d=J[699344];J[699344]=0;if((d|0)==1)break c;n:{o:{if(!c){J[699344]=0;Qd(g,2383820);c=J[699344];J[699344]=0;if((c|0)!=1)break o;break c}J[699344]=0;c=e+24|0;da(4971,c|0,a|0);d=J[699344];J[699344]=0;if((d| +0)==1)break n;J[699344]=0;ca(5022,b|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break f;if(H[e+35|0]>=0)break o;uc(J[e+24>>2])}J[699344]=0;c=Mi(a);d=J[699344];J[699344]=0;if((d|0)==1)break c;if(!c)break i;J[699344]=0;c=e+24|0;da(4970,c|0,a|0);d=J[699344];J[699344]=0;if((d|0)==1)break m;J[699344]=0;c=aa(4985,e+12|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break l;J[699344]=0;dg(g,c);d=J[699344];J[699344]=0;if((d|0)==1)break k;Rc(c);if(H[e+35|0]>=0)continue;uc(J[e+24>>2]);continue}break}a=Z()|0; +break b}a=Z()|0;break b}a=Z()|0;break j}p:{q:{while(1){J[699344]=0;d=J[g+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break g;if(!d)break i;J[699344]=0;d=Qd(g,2383792);f=J[699344];J[699344]=0;if((f|0)==1)break g;r:{if(d){J[699344]=0;d=e+24|0;da(4971,d|0,a|0);f=J[699344];J[699344]=0;s:{if((f|0)!=1){J[699344]=0;ca(5022,b|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break s;if(H[e+35|0]>=0)break r;uc(J[e+24>>2]);break r}a=Z()|0;break b}break f}J[699344]=0;d=Qd(g,2383820);f=J[699344];J[699344]=0;if((f|0)== +1)break g;if(!d)break r;J[699344]=0;d=e+24|0;da(4971,d|0,a|0);f=J[699344];J[699344]=0;t:{if((f|0)!=1){J[699344]=0;ca(5022,c|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break t;if(H[e+35|0]>=0)break r;uc(J[e+24>>2]);break r}a=Z()|0;break b}a=Z()|0;if(H[e+35|0]>=0)break b;uc(J[e+24>>2]);break b}J[699344]=0;d=Mi(a);f=J[699344];J[699344]=0;if((f|0)==1)break g;if(!d)break i;J[699344]=0;d=e+24|0;da(4970,d|0,a|0);f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;d=aa(4985,e+12|0,d|0)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break q;J[699344]=0;dg(g,d);f=J[699344];J[699344]=0;if((f|0)==1)break p;Rc(d);if(H[e+35|0]>=0)continue;uc(J[e+24>>2]);continue}break}a=Z()|0;break b}a=Z()|0;break j}}a=Z()|0;Rc(e+12|0)}if(H[e+35|0]>=0)break b;uc(J[e+24>>2]);break b}J[699344]=0;gj(a);a=J[699344];J[699344]=0;if((a|0)==1)break e;Rc(g)}fc=e+48|0;return}a=Z()|0;break b}a=Z()|0;if(H[e+35|0]>=0)break b;uc(J[e+24>>2]);break b}a=Z()|0;break b}a=Z()|0;if(H[e+35|0]>=0)break a;uc(J[e+24>>2]);ba(a|0);B()}a=Z()|0}Rc(g)}ba(a|0);B()} +function fDa(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;g=fc+-64|0;fc=g;h=d+36|0;i=J[d+20>>2];a:{if(!i)break a;h=J[i+8>>2]?d+20|0:h}J[a>>2]=0;J[a+4>>2]=J[685894];b:{c:{d=J[h>>2];d:{if(d){h=J[J[d>>2]+28>>2];J[699344]=0;ca(h|0,g+28|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break d;b=Z()|0;break c}J[g+28>>2]=0}J[699344]=0;aa(5153,a|0,g+28|0)|0;d=J[699344];J[699344]=0;e:{if((d|0)!=1){d=J[g+28>>2];J[g+28>>2]=0;if(!d)break e;J[699344]=0;h=J[d+4>>2]-1|0;J[d+4>>2]=h;i=J[699344];J[699344]= +0;if((i|0)!=1){if(h)break e;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break e}break b}b=Z()|0;zc(g+28|0);break c}d=J[a>>2];J[a+4>>2]=J[(d?d+12|0:2743576)>>2];J[699344]=0;d=ga(5343,g+28|0,a|0,c|0)|0;c=J[699344];J[699344]=0;f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((c|0)!=1){J[699344]=0;$(5344,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break q;c=J[f>>2];J[699344]=0;f=g+24|0;da(5321,f|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break p;J[699344]=0;c=g+20|0;ca(5231,c|0,d|0,2398457);h=J[699344]; +J[699344]=0;if((h|0)==1)break o;J[699344]=0;da(5278,g+16|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break n;J[699344]=0;f=J[g+16>>2];da(5278,g+12|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break m;b=J[b+8>>2];J[699344]=0;ia(5327,f|0,J[g+12>>2],b|0,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break l;a=J[g+12>>2];J[g+12>>2]=0;r:{if(!a)break r;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break r;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a= +J[g+16>>2];J[g+16>>2]=0;s:{if(!a)break s;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break s;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[g+20>>2];J[g+20>>2]=0;t:{if(!a)break t;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break t;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[g+24>>2];J[g+24>>2]=0;u:{if(!a)break u;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344]; +J[699344]=0;if((c|0)==1)break f;if(b)break u;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f}J[d+24>>2]=2392964;J[d>>2]=2392932;a=J[d+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+28>>2]=0}J[d+16>>2]=2392964;a=J[d+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+20>>2]=0}wc(d+8|0);fc=g- -64|0;return}c=Z()|0;break g}c=Z()|0;break h}c=Z()|0;break h}c=Z()|0;break i}c=Z()|0;break j}c=Z()|0;break k}c=Z()|0;zc(g+12|0)}zc(g+16|0)}zc(g+ +20|0)}zc(g+24|0)}Ed(d)}wc(a);ba(c|0);B()}break b}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function c3a(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;c=-9;h=J[a+4>>2];a:{if(H[h+254|0]>0)break a;k=J[h+24>>2];if(K[k+201|0]&2)break a;l=J[a+12>>2];e=J[a+8>>2];if(K[k+28|0]==1){f=J[(K[h+28|0]&16?40:36)+k>>2];b:{c:{while(1){c=e;if(c>>>0>=l>>>0)break b;d=J[f+(K[c|0]<<2)>>2];e=c+1|0;J[a+8>>2]=e;if((d|0)<=-2146435073)return d&65535;if((d&13631488)==1048576)return(d&1048575)+ +65536|0;d:switch((d>>>20&15)-2|0){case 5:break b;case 4:break c;case 0:break d;default:continue}break}return d&65535}if(J[b>>2]>0)break b;J[a+8>>2]=c;return-9}J[b>>2]=8;return 65535}c=(K[h+28|0]&16?40:36)+k|0;f=K[h+48|0];if(!f)f=K[k+29|0];s=k+28|0;o=J[k+44>>2];q=J[c>>2];n=J[h+44>>2];d=-1;e:{f:{g:{h:{i:{j:{k:{l:while(1){i=e;if(l>>>0<=i>>>0){c=0;break f}g=l-i|0;c=0;m=f;while(1){p=c+i|0;c=c+1|0;e=i+c|0;m:{f=m&255;j=J[((f<<10)+q|0)+(K[p|0]<<2)>>2];if((j|0)>=0){m=j>>>24|0;n=(j&16777215)+n|0;if(e>>>0>= +l>>>0)break m;f=J[((m<<10)+q|0)+(K[e|0]<<2)>>2];if((f&-2131755008)!=-2143289344)break m;d=L[((n<<1)+o|0)+((f&65535)<<1)>>1];if(d>>>0>65533)break m;e=p+2|0;f=f>>>24&127;c=d;break e}J[h+48>>2]=f;r=j>>>24|0;f=r&127;n:{o:{p:{q:{p=j>>>20&15;switch(p|0){case 5:break o;case 4:break p;case 0:break q;default:break n}}c=j&65535;break e}g=(j&65535)+n|0;d=L[(g<<1)+o>>1];if(d>>>0<65534){c=d;break e}if((d|0)!=65534)break j;d=65534;e=g3(s,g);if((e|0)==65534)break g;d=e;break f}g=(j&65535)+n|0;d=L[(g<<1)+o>>1];if(d>>> +0<55296){c=d;break e}g=g+1|0;if(d>>>0<=57343){c=(L[(g<<1)+o>>1]+(d<<10&1047552)|0)+9216|0;break e}if((d&65534)!=57344)break k;c=L[(g<<1)+o>>1];break e}if((j&13631488)==1048576){c=(j&1048575)+65536|0;break e}n=0;g=f;r:switch(p-2|0){case 4:break g;case 0:break h;case 5:break i;case 6:break r;default:continue l}g=m;if(K[k+29|0])break i;break g}if((c|0)!=(g|0))continue;break}break}f=m;c=g;break f}if((d|0)!=65535)break g}J[b>>2]=12;c=65535;break e}J[b>>2]=12;f=g;break f}c=j&65535;break e}if(J[b>>2]>0)break f; +J[h+44>>2]=0;J[h+48>>2]=r&127;J[a+8>>2]=i;return-9}g=c+i|0;if((d|0)>=0)c=d;else{d=J[b>>2];if(!((g|0)!=(l|0)|(d|0)>0|(c|0)<=0)){H[h+36|0]=c;c=h+37|0;while(1){H[c|0]=K[i|0];c=c+1|0;i=i+1|0;if(l>>>0>i>>>0)continue;break}J[b>>2]=11;c=65535;e=l;break e}s:{if((d|0)>0){b=K[k+29|0];H[h+37|0]=K[i|0];if((c|0)==1){H[h+36|0]=1;break s}e=i+1|0;i=1;t:{if((c|0)<2)break t;c=h+38|0;l=((f&255)<<10)+q|0;m=!b;while(1){d=K[e|0];b=J[l+(d<<2)>>2];u:{if((b|0)>=0){b=KL(q,b>>>24|0);break u}b=b>>>20&15;b=(b|0)!=7&(m|(b|0)!= +8)}if(b)break t;H[c|0]=d;i=i+1|0;c=c+1|0;e=e+1|0;if(g>>>0>e>>>0)continue;break}}H[h+36|0]=i;c=65535;break e}J[b>>2]=8}c=65535}e=g}J[h+44>>2]=0;J[h+48>>2]=f&255;J[a+8>>2]=e}return c|0}function D0a(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;h=fc-32|0;fc=h;g=-1;a:{b:{c:{d:{e:{if(!a|!b)break e;g=bf(b);if(g>>>0>=1073741808)break d;f:{if(g>>>0<=1){H[h+31|0]=g;j=h+20|0;break f}j=g|3;if(j>>>0>=1073741823)break c;l=j+1|0;j=vc(l<<2);J[h+28>>2]=l|-2147483648; +J[h+20>>2]=j;J[h+24>>2]=g}g=g<<2;p=xc(j,b,g)+g|0,q=0,J[p>>2]=q;J[699344]=0;o=_(3202,h+20|0)|0;g=J[699344];J[699344]=0;g:{h:{i:{if((g|0)!=1){if(H[h+31|0]<0)uc(J[h+20>>2]);if(f)j:{i=fc-48|0;fc=i;k:{l:{m:{n:{o:{p:{if(b){l=bf(b);f=l+2|0;m=vc(f>>>0>1073741823?-1:f<<2);j=m;f=b;g=l;k=0;q:{if(!g)break q;while(1){n=J[f>>2];k=g;if(!n)break q;J[j>>2]=n;j=j+4|0;f=f+4|0;g=g-1|0;if(g)continue;break}k=0}f=k;if(f)while(1){J[j>>2]=0;j=j+4|0;f=f-1|0;if(f)continue;break}f=(l<<2)+m|0;J[f>>2]=0;J[f+4>>2]=0;g=bf(m);if(g>>> +0>=1073741808)break m;r:{if(g>>>0<=1){H[i+47|0]=g;f=i+36|0;break r}f=g|3;if(f>>>0>=1073741823)break l;j=f+1|0;f=vc(j<<2);J[i+44>>2]=j|-2147483648;J[i+36>>2]=f;J[i+40>>2]=g}k=f;f=g<<2;p=xc(k,m,f)+f|0,q=0,J[p>>2]=q;J[699344]=0;da(3036,i+36|0,1);f=J[699344];J[699344]=0;if((f|0)==1)break p;if(H[i+47|0]<0)uc(J[i+36>>2]);f=bf(b);if(f>>>0>=1073741808)break k;s:{if(f>>>0<=1){H[i+23|0]=f;g=i+12|0;break s}g=f|3;if(g>>>0>=1073741823)break l;j=g+1|0;g=vc(j<<2);J[i+20>>2]=j|-2147483648;J[i+12>>2]=g;J[i+16>>2]= +f}f=f<<2;p=xc(g,b,f)+f|0,q=0,J[p>>2]=q;J[699344]=0;da(3035,i+24|0,i+12|0);f=J[699344];J[699344]=0;if((f|0)==1)break o;j=J[i+24>>2];if(j){f=j;g=J[i+28>>2];if((f|0)!=(g|0)){while(1){f=g-12|0;if(H[g-1|0]<0)uc(J[f>>2]);g=f;if((j|0)!=(f|0))continue;break}f=J[i+24>>2]}J[i+28>>2]=j;uc(f)}if(H[i+23|0]<0)uc(J[i+12>>2]);uc(m)}fc=i+48|0;break j}f=Z()|0;if(H[i+47|0]>=0)break n;uc(J[i+36>>2]);ba(f|0);B()}f=Z()|0;if(H[i+23|0]>=0)break n;uc(J[i+12>>2])}ba(f|0);B()}_d(i+36|0);B()}Pd();B()}_d(i+12|0);B()}g=-1;if(!o)break e; +if(!d)break g;g=bf(d);if(g>>>0>=1073741808)break b;if(g>>>0>1)break i;H[h+19|0]=g;f=h+8|0;break h}b=Z()|0;if(H[h+31|0]>=0)break a;uc(J[h+20>>2]);break a}f=g|3;if(f>>>0>=1073741823)break c;j=f+1|0;f=vc(j<<2);J[h+16>>2]=j|-2147483648;J[h+8>>2]=f;J[h+12>>2]=g}k=d;d=g<<2;p=xc(f,k,d)+d|0,q=0,J[p>>2]=q;J[699344]=0;da(3203,h+20|0,h+8|0);d=J[699344];J[699344]=0;t:{if((d|0)!=1){if(H[h+19|0]<0)uc(J[h+8>>2]);J[699344]=0;g=na(3204,a|0,b|0,e|0,(H[h+31|0]<0?J[h+20>>2]:h+20|0)|0,c|0)|0;a=J[699344];J[699344]=0;if((a| +0)==1)break t;if(H[h+31|0]>=0)break e;uc(J[h+20>>2]);break e}b=Z()|0;if(H[h+19|0]>=0)break a;uc(J[h+8>>2]);ba(b|0);B()}b=Z()|0;if(H[h+31|0]>=0)break a;uc(J[h+20>>2]);ba(b|0);B()}g=P2(a,b,e,0,c)}fc=h+32|0;return g|0}_d(h+20|0);B()}Pd();B()}_d(h+8|0);B()}ba(b|0);B()}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,m=0,n=0;e=fc-128|0;fc=e;a:{if((c|0)>5)break a;J[e+112>>2]=13;b:{c:{d:{if(J[Ec(a,777466,e+112|0,0)>>2]!=7)break d;n=J[J[e+120>>2]+16>>2];if((n|0)<=0)break d; +while(1){J[e+96>>2]=13;J[e+80>>2]=13;e:{f:{if(J[aq(J[e+120>>2],h,e+96|0)>>2]==7)if(J[Ec(J[e+104>>2],778820,e+80|0,0)>>2]==4)break f;yc(e+96|0);break e}yc(e+96|0);g:{f=J[b>>2];j=J[b+4>>2];if((f|0)==(j|0))break g;h:{i:{j:{k:{l=J[e+88>>2];i=Yc(l);switch(i+1|0){case 1:break j;case 0:break k;default:break i}}while(1){if(J[f+4>>2]==-1&H[f+11|0]<0)break h;f=f+12|0;if((j|0)!=(f|0))continue;break}break e}while(1){g=K[f+11|0];if(!(g<<24>>24<0?J[f+4>>2]:g))break g;f=f+12|0;if((j|0)!=(f|0))continue;break}break e}while(1){g= +K[f+11|0];m=g<<24>>24<0;if((i|0)==((m?J[f+4>>2]:g)|0))if(!dd(m?J[f>>2]:f,l,i))break g;f=f+12|0;if((j|0)!=(f|0))continue;break}break e}J[699344]=0;$(3453,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;ea(0)|0;Bc();B()}if((f|0)!=(j|0))break c}yc(e+80|0);h=h+1|0;if((n|0)!=(h|0))continue;break}}yc(e+112|0);J[e+76>>2]=d;J[e+72>>2]=c;J[e+68>>2]=a;j=1;g=e+68|0;if(xZ(g,b,779801))break a;if(xZ(g,b,781084))break a;J[e+96>>2]=13;j=0;g=a;a=e+96|0;if(J[Ec(g,782351,a,0)>>2]!=7){yc(a);break a}l:{m:{n:{m=J[J[e+ +104>>2]+16>>2];if((m|0)>0){n=c+1|0;f=0;while(1){J[e+80>>2]=13;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;o:{p:{q:{if(J[aq(J[e+104>>2],f,e+80|0)>>2]!=7)break q;if(J[Ec(J[e+88>>2],783301,e+48|0,0)>>2]!=7)break q;if(J[Ec(J[e+56>>2],784862,e+32|0,0)>>2]!=8)break q;a=J[e+40>>2];if(J[Ec(kc[J[J[a>>2]+76>>2]](a)|0,785256,e+16|0,0)>>2]==7)break p}yc(e+80|0);yc(e+48|0);yc(e+32|0);yc(e+16|0);break o}yc(e+80|0);yc(e+48|0);J[e>>2]=13;a=J[e+40>>2];c=Ke(kc[J[J[a>>2]+76>>2]](a)|0,785256,e);h=J[d+4>>2];a=J[e+8>>2]; +r:{if(J[c>>2]!=9){c=a;break r}c=a;a=J[d>>2];if((h|0)==(a|0))break r;while(1){if(J[a>>2]!=(c|0)){a=a+4|0;if((h|0)!=(a|0))continue;break r}break}if((a|0)==(h|0))break r;yc(e+32|0);yc(e+16|0);yc(e);break o}a=J[d+8>>2];s:{if(a>>>0>h>>>0){J[h>>2]=c;J[d+4>>2]=h+4;break s}k=J[d>>2];l=h-k>>2;i=l+1|0;if(i>>>0>=1073741824)break n;g=a-k|0;a=g>>1;i=g>>>0>=2147483644?1073741823:a>>>0>i>>>0?a:i;if(i){if(i>>>0>=1073741824)break m;g=vc(i<<2)}else g=0;a=g+(l<<2)|0;J[a>>2]=c;c=a+4|0;if((h|0)!=(k|0))while(1){a=a-4| +0;h=h-4|0;J[a>>2]=J[h>>2];if((h|0)!=(k|0))continue;break}J[d+8>>2]=g+(i<<2);J[d+4>>2]=c;J[d>>2]=a;if(!k)break s;uc(k)}yc(e+32|0);yc(e);a=mB(J[e+24>>2],b,n,d);yc(e+16|0);if(a)break l}f=f+1|0;if((m|0)!=(f|0))continue;break}}yc(e+96|0);break a}qj(d);B()}Pd();B()}yc(e+96|0);j=1;break a}yc(e+80|0);yc(e+112|0);j=1;break a}B()}fc=e+128|0;return j|0}function tJa(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=fc-112|0;fc=e;a:{b:{if(b){if(a){if(c){j=1024;g=Ge(1,1024);if(g){l=e+92| +0;k=e+108|0;while(1){c:{d:{d=e+104|0;e:{if((ui(b,d,8,c)|0)!=8)break e;wd(d,e+88|0,4);wd(k,l,4);i=8;f:{g:switch(J[e+88>>2]){case 0:d=vl(b);f=jc;if((f|0)>=0&d>>>0>=4294967288|(f|0)>0){Nc(c,1,2359728,0);break e}d=d+8|0;J[e+88>>2]=d;if(!(d>>>0<8?f+1|0:f)&(d|0)==(d|0))break f;fa(2359829,2354795,505,2371352);B();case 1:break g;default:break f}d=e+104|0;if((ui(b,d,8,c)|0)!=8)break e;wd(d,e+100|0,4);if(J[e+100>>2]){Nc(c,1,2359728,0);break e}wd(k,e+88|0,4);i=16}d=J[e+92>>2];if((d|0)==1785737827){b=J[a+100>> +2];if(b&4){J[a+100>>2]=b|8;break e}Nc(c,1,2358667,0);uc(g);a=0;break a}f=J[e+88>>2];if(!f){Nc(c,1,2358695,0);uc(g);a=0;break a}if(f>>>0>>0){J[e+4>>2]=d;J[e>>2]=f;Nc(c,1,2358802,e);break b}h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((d|0)<=1668246641){if((d|0)==1651532643)break p;if((d|0)==1667523942)break n;if((d|0)!=1668112752)break q;h=2371488;break l}if((d|0)<=1783635999){if((d|0)==1668246642)break m;h=2371456;if((d|0)==1768449138)break l;if((d|0)!=1718909296)break q;h=2371384;break j}if((d|0)==1885564018)break o; +if((d|0)==1783636E3)break k;h=2371392;if((d|0)==1785737832)break j}d=J[a+100>>2];if(d&1)break h;Nc(c,1,2359399,0);uc(g);a=0;break a}h=2371472;break l}h=2371480;break l}h=2371496;break l}h=2371464}J[e+76>>2]=d&255;J[e+64>>2]=d>>>24;J[e+72>>2]=d>>>8&255;J[e+68>>2]=d>>>16&255;Nc(c,2,2358828,e- -64|0);f=f-i|0;d=f;if(K[a+100|0]&4)break i;d=J[e+92>>2];J[e+48>>2]=d>>>24;J[e+60>>2]=d&255;J[e+52>>2]=d>>>16&255;J[e+56>>2]=d>>>8&255;Nc(c,2,2358958,e+48|0);J[a+100>>2]=J[a+100>>2]|2147483647;d=kB(b,f,c);if(!jc& +(d|0)==(f|0))continue;Nc(c,1,2359024,0);uc(g);a=0;break a}h=2371376}d=f-i|0}f=vl(b);i=jc;if((i|0)<0)f=1;else f=(i|0)<=0&d>>>0>f>>>0;if(f){f=J[e+88>>2];a=J[e+92>>2];m=e,n=vl(b),J[m+40>>2]=n;J[e+36>>2]=d;J[e+32>>2]=a&255;J[e+20>>2]=a>>>24;J[e+16>>2]=f;J[e+28>>2]=a>>>8&255;J[e+24>>2]=a>>>16&255;Nc(c,1,2359150,e+16|0);break b}if(d>>>0<=j>>>0){f=g;break c}j=d;f=ch(g,d);if(f)break c;uc(g);Nc(c,1,2359226,0);a=0;break a}if(!(d&2)){Nc(c,1,2359510,0);uc(g);a=0;break a}J[a+100>>2]=d|2147483647;d=f-i|0;f=kB(b, +d,c);if(!jc&(d|0)==(f|0))continue;if(!(K[a+100|0]&8))break d;Nc(c,2,2359024,0)}uc(g);a=1;break a}Nc(c,1,2359024,0);uc(g);a=0;break a}if((ui(b,f,d,c)|0)!=(d|0)){Nc(c,1,2359350,0);uc(f);a=0;break a}g=f;if(kc[J[h+4>>2]](a,f,d,c)|0)continue;break}uc(f);a=0;break a}Nc(c,1,2358545,0);a=0;break a}fa(2355439,2354795,2277,2371322);B()}fa(2354499,2354795,2276,2371322);B()}fa(2355617,2354795,2275,2371322);B()}uc(g);a=0}fc=e+112|0;return a|0}function kla(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;l=fc-16|0;fc=l;a:{b:{c:{d:{if(!d){k=J[a+584>>2];if(!k)break d;h=(c|0)/J[k+8>>2]|0;j=b;if(J[k>>2]!=2){if(J[k+16>>2]<(h|0))break c;j=J[k+12>>2]}d=0;Sg(j,0,h<<2);e=J[a+608>>2];c=J[a+604>>2];e:{if((h|0)>0){f:{g:{if((e|0)<=0){f=e;break g}f=e;while(1){g=H[c|0];e=g&255;h:{if((g|0)>=0){c=c+1|0;f=f-1|0;if(f)while(1){if(!e|(d|0)>=(h|0))break h;e=e-1|0;g=(d<<2)+j|0;J[g>>2]=J[g>>2]|K[c|0]<<24;c=c+1|0;d=d+1|0;f=f-1|0;if(f)continue;break}e=0;f=0;if((d|0)==(h|0))break f;break b}f=f-2|0;g=c+2|0;e=e- +126|0;i:{if(!e|(d|0)>=(h|0))break i;c=K[c+1|0]<<24;while(1){i=(d<<2)+j|0;J[i>>2]=c|J[i>>2];d=d+1|0;e=e-1|0;if(!e)break i;if((d|0)<(h|0))continue;break}}c=g}if((d|0)>=(h|0))break g;if((f|0)>0)continue;break}}if((d|0)!=(h|0)){e=f;break b}e=0;if((f|0)<=0)break f;while(1){g=H[c|0];d=g&255;j:{if((g|0)>=0){c=c+1|0;f=f-1|0;if(!f){f=0;break f}while(1){if(!d|(e|0)>=(h|0))break j;d=d-1|0;g=(e<<2)+j|0;J[g>>2]=J[g>>2]|K[c|0]<<16;c=c+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}f=0;break f}f=f-2|0;g=c+2|0;d=d-126| +0;k:{if(!d|(e|0)>=(h|0))break k;c=K[c+1|0]<<16;while(1){i=(e<<2)+j|0;J[i>>2]=c|J[i>>2];e=e+1|0;d=d-1|0;if(!d)break k;if((e|0)<(h|0))continue;break}}c=g}if((e|0)>=(h|0))break f;if((f|0)>0)continue;break}}if((e|0)!=(h|0)){d=e;e=f;break b}d=0;l:{m:{if((f|0)<=0)break m;while(1){g=H[c|0];e=g&255;n:{if((g|0)>=0){c=c+1|0;f=f-1|0;if(f)while(1){if(!e|(d|0)>=(h|0))break n;e=e-1|0;g=(d<<2)+j|0;J[g>>2]=J[g>>2]|K[c|0]<<8;c=c+1|0;d=d+1|0;f=f-1|0;if(f)continue;break}g=0;e=0;if((d|0)==(h|0))break l;break b}f=f-2| +0;g=c+2|0;e=e-126|0;o:{if(!e|(d|0)>=(h|0))break o;c=K[c+1|0]<<8;while(1){i=(d<<2)+j|0;J[i>>2]=c|J[i>>2];d=d+1|0;e=e-1|0;if(!e)break o;if((d|0)<(h|0))continue;break}}c=g}if((d|0)>=(h|0))break m;if((f|0)>0)continue;break}}if((d|0)!=(h|0)){e=f;break b}g=0;if((f|0)<=0){e=f;break l}e=f;while(1){f=H[c|0];d=f&255;p:{if((f|0)>=0){c=c+1|0;e=e-1|0;if(!e){e=0;break l}while(1){if(!d|(g|0)>=(h|0))break p;d=d-1|0;f=(g<<2)+j|0;J[f>>2]=J[f>>2]|K[c|0];c=c+1|0;g=g+1|0;e=e-1|0;if(e)continue;break}e=0;break l}e=e-2| +0;f=c+2|0;d=d-126|0;q:{if(!d|(g|0)>=(h|0))break q;c=K[c+1|0];while(1){i=(g<<2)+j|0;J[i>>2]=c|J[i>>2];g=g+1|0;d=d-1|0;if(!d)break q;if((g|0)<(h|0))continue;break}}c=f}if((g|0)>=(h|0))break l;if((e|0)>0)continue;break}}d=g;if((h|0)==(d|0))break e;break b}if(h)break b}kc[J[k+20>>2]](k,b,h);b=1;break a}fa(76922,70372,292,93839);B()}fa(74429,70372,294,93839);B()}fa(77140,70372,301,93839);B()}b=J[a>>2];f=J[a+628>>2];g=J[a+472>>2];J[l+4>>2]=h-d;J[l>>2]=g;Uc(f,b,78615,l);b=0}J[a+608>>2]=e;J[a+604>>2]=c;fc= +l+16|0;return b|0}function j1(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=fc-16|0;fc=h;g=J[a+36>>2];b=J[g+16>>2];a:{if(K[b|0]!=60)break a;i=J[a+304>>2];d=J[a+300>>2];J[g+16>>2]=b+1;J[g+32>>2]=J[g+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(!K[b+1|0])Nd(g);g=hi(a);if(!g){oe(a,68,34427);break a}be(a);b:{if(J[a+292>>2])break b;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break b;Rd(a)}while(1){c:{d:{e:{f:{g:{c=J[a+36>>2];k=J[c+16>>2];e=K[k|0];b=e-47|0;if(b)if((b|0)==15)break e;else break g;if(K[k+1| +0]!=62)break f;break e}if((e|0)==13|(e-9&255)>>>0<2)break f;if(e>>>0<32)break e}if(J[a+172>>2]==-1)break e;e=J[c+36>>2];h:{i:{J[h+12>>2]=0;j:{if(J[a+292>>2])break j;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break j;Rd(a)}c=hi(a);k:{if(!c){oe(a,68,34624);c=0;break k}be(a);l:{if(K[J[J[a+36>>2]+16>>2]]==61){Zd(a);be(a);if(J[a+36>>2])b=BK(a,0,0,0);else b=0;J[a+172>>2]=7;m:{if(!J[a+268>>2])break m;if(!Pg(c,13023))break m;if(A1(b))break m;Vo(a,98,32844,b)}if(Pg(c,14959)){if(Pg(b,2769)){J[J[a+232>>2]>> +2]=0;break l}if(Pg(b,13268)){J[J[a+232>>2]>>2]=1;break l}Vo(a,102,35412,b)}break l}Uf(a,41,32521,c);c=0;break k}J[h+12>>2]=b}j=J[h+12>>2];if(!(!c|!j)){b=0;n:{o:{p:{if((f|0)<=0){if(d)break p;b=22;d=kc[J[663195]](88)|0;if(d)break o;d=0;se(a,0);kc[J[663199]](j);i=22;break h}while(1){if(!Pg(J[(b<<2)+d>>2],c)){b=b+2|0;if((f|0)>(b|0))continue;break p}break}q:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break q;J[a+84>>2]=42;J[h>>2]=c;Hc(0,0,0,a,0,1,42,3,c,0,0,0,35727,h);J[a+12>>2]=0;if(J[a+288>>2])break q;J[a+212>> +2]=1}kc[J[663199]](j);break h}if((f+4|0)<=(i|0))break n;b=i<<1;i=kc[J[663200]](d,i<<3)|0;if(!i)break i;d=i}i=b;J[a+304>>2]=b;J[a+300>>2]=d}b=(f<<2)+d|0;J[b>>2]=c;J[b+4>>2]=J[h+12>>2];f=f+2|0;J[(f<<2)+d>>2]=0;J[b+12>>2]=0;break h}if(!j)break h;kc[J[663199]](j);break h}se(a,0);kc[J[663199]](j);i=b}r:{s:{t:{b=J[a+36>>2];if(!(J[a+292>>2]|(J[b+20>>2]-J[b+16>>2]|0)>249)){Rd(a);b=J[a+36>>2]}b=J[b+16>>2];switch(K[b|0]-9|0){case 0:case 1:case 4:case 23:break r;case 38:break t;case 53:break e;default:break s}}if(K[b+ +1|0]==62)break e}oe(a,65,32942)}be(a);b=e;e=J[a+36>>2];if(c|(b|0)!=J[e+36>>2]|(J[h+12>>2]|J[e+16>>2]!=(k|0)))break d;oe(a,1,31866)}b=J[a>>2];u:{if(!b)break u;b=J[b+56>>2];if(J[a+212>>2]|!b)break u;a=J[a+4>>2];if((f|0)<=0)break c;kc[b|0](a,g,d)}if(!(!d|(f|0)<2)){b=1;while(1){a=J[(b<<2)+d>>2];if(a)kc[J[663199]](a);b=b+2|0;if((f|0)>(b|0))continue;break}}f=g;break a}if(J[a+292>>2])continue;b=J[e+16>>2];if(!((b-J[e+12>>2]|0)<501|(J[e+20>>2]-b|0)>499)){_g(a);if(J[a+292>>2])continue}b=J[a+36>>2];if((J[b+ +20>>2]-J[b+16>>2]|0)>249)continue;Rd(a);continue}break}kc[b|0](a,g,0);f=g}fc=h+16|0;return f}function iib(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;g=fc-32|0;fc=g;i=J[b+28>>2];J[g+8>>2]=2;c=J[a+496>>2];if(c){d=J[c+36>>2];if(d)kc[J[i+8>>2]](i,d);J[c+36>>2]=0;J[c+40>>2]=0;d=J[c+28>>2];if(d)kc[J[i+8>>2]](i,d);J[c+28>>2]=0;J[c+32>>2]=0;if(c)kc[J[i+8>>2]](i,c);J[a+496>>2]=0}c=he(i,44,g+8|0);a:{if(J[g+8>>2])break a;d=af(b,J[b+4>>2]);J[g+8>>2]=d;if(d)break a;d= +J[a+476>>2];J[c+12>>2]=J[a+472>>2];J[c+16>>2]=d;d=J[a+468>>2];J[c+4>>2]=J[a+464>>2];J[c+8>>2]=d;J[c+20>>2]=J[a+476>>2];J[c+24>>2]=J[a+468>>2];d=J[a+492>>2];f=J[d+36>>2];b:{if(f){e=g+12|0;f=kc[J[f>>2]](e,J[b+28>>2],J[b+32>>2],J[b+36>>2])|0;J[g+8>>2]=f;if(!f){J[g+28>>2]=a+132;J[g+24>>2]=1752;J[g+20>>2]=c;q=g,r=kc[J[J[d+36>>2]+8>>2]](e)|0,J[q+8>>2]=r;kc[J[J[d+36>>2]+4>>2]](e);f=J[g+8>>2]}if((f&255)==2){f=J[b+4>>2];if(f>>>0<7)break b;d=J[b+32>>2];if(K[d+1|0]>3|(f|0)!=(K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<< +16|K[d+5|0]<<24)))break b;f=0;d=fc-16|0;fc=d;J[d+12>>2]=0;l=J[b+28>>2];c:{d:{j=J[b+36>>2];h=J[b+32>>2];if(j>>>0>>0){J[d+12>>2]=2;break d}e=(h+99|0)+(K[h+99|0]|K[h+100|0]<<8)|0;if(j>>>0>>0|(K[e+18|0]|K[e+19|0]<<8)>>>0<18)break c;e=K[e+32|0]|K[e+33|0]<<8|(K[e+34|0]<<16|K[e+35|0]<<24);if(!e)break c;k=e+h|0;h=k+2|0;if(j>>>0>>0){J[d+12>>2]=2;break d}e=K[k|0]|K[k+1|0]<<8;J[c+40>>2]=e;if(j>>>0<(e<<2)+h>>>0){J[d+12>>2]=2;break d}if(!e)break c;e=_c(l,16,0,e,0,d+12|0);J[c+36>>2]=e;if(J[d+12>> +2])break d;o=J[c+40>>2];j=J[a+92>>2];m=J[a+36>>2];e:{if((m|0)<=0)break e;p=J[a+40>>2];while(1){n=J[(f<<2)+p>>2];if(L[n+8>>1]!=7){f=f+1|0;if((m|0)!=(f|0))continue;break e}break}f=ls(a,n);J[d+12>>2]=f;if(f)break d}f=o<<2;if((f|0)>0){f=(f+k|0)+2|0;while(1){q=e,r=Gh(a,K[h|0]),J[q>>2]=r;q=e,r=Gh(a,K[h+1|0]),J[q+4>>2]=r;k=(K[h+2|0]|K[h+3|0]<<8)<<16>>16;J[e+12>>2]=0;J[e+8>>2]=k;e=e+16|0;h=h+4|0;if(f>>>0>h>>>0)continue;break}}f:{if(j){e=ls(a,j);J[d+12>>2]=e;break f}e=J[d+12>>2]}if(e)break d;vm(J[c+36>>2], +J[c+40>>2],16,1753);if(J[d+12>>2])break d;f=0;break c}f=J[c+36>>2];if(f)kc[J[l+8>>2]](l,f);J[c+36>>2]=0;J[c+40>>2]=0;f=J[d+12>>2]}fc=d+16|0;J[g+8>>2]=f}if(f)break b}d=J[c+8>>2];J[a+464>>2]=J[c+4>>2];J[a+468>>2]=d;d=J[c+16>>2];J[a+472>>2]=J[c+12>>2];J[a+476>>2]=d;J[a+52>>2]=I[c+6>>1];J[a+56>>2]=I[c+10>>1];J[a+60>>2]=J[c+12>>2]+65535>>16;J[a- -64>>2]=J[c+16>>2]+65535>>16;I[a+70>>1]=J[c+20>>2]+32768>>>16;I[a+72>>1]=J[c+24>>2]+32768>>>16;if(!J[c+40>>2])break b;J[a+496>>2]=c;J[a+8>>2]=J[a+8>>2]|64;c=0}ve(b)}if(c){a= +J[c+36>>2];if(a)kc[J[i+8>>2]](i,a);J[c+36>>2]=0;J[c+40>>2]=0;a=J[c+28>>2];if(a)kc[J[i+8>>2]](i,a);J[c+28>>2]=0;J[c+32>>2]=0;if(c)kc[J[i+8>>2]](i,c)}fc=g+32|0;return J[g+8>>2]}function Y5a(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;a:{b:{if(!b)break b;q=a+16|0;r=J[q+84>>2];if(!J[a+8>>2]|(r|0)<=0)break b;d=vc(40);J[699344]=0;h=$L(d);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){c:{d:{e:{f:{j=Yn(q,p);switch(J[j+60>>2]){case 0:break e;case 1:break f; +default:break c}}e=J[J[a+8>>2]+276>>2];if(e)break d;break c}e=J[a+8>>2]}d=fc-128|0;fc=d;J[d+124>>2]=J[j>>2];c=vc(40);J[699344]=0;f=$L(c);g=J[699344];J[699344]=0;g:{if((g|0)!=1){J[d+120>>2]=0;J[d+116>>2]=f;J[d+108>>2]=2652756;J[d+112>>2]=d+116;H[d+3|0]=0;H[d+2|0]=0;Eu(d+4|0,e,d+124|0,d+3|0,d+108|0,d+2|0);Cj(d+80|0);fc=d+128|0;d=J[d+116>>2];break g}a=Z()|0;uc(c);ba(a|0);B()}if(!d)break c;m=0;e=0;g=J[d+16>>2];h:{if((g|0)<=0)break h;f=J[d+8>>2];c=0;if(g>>>0>=4){o=g&-4;while(1){i=c<<4;n=i+f|0;O[n+8>>3]= +-O[n+8>>3];n=f+(i|16)|0;O[n+8>>3]=-O[n+8>>3];n=f+(i|32)|0;O[n+8>>3]=-O[n+8>>3];i=f+(i|48)|0;O[i+8>>3]=-O[i+8>>3];c=c+4|0;e=e+4|0;if((o|0)!=(e|0))continue;break}}e=g&3;if(!e)break h;while(1){g=f+(c<<4)|0;O[g+8>>3]=-O[g+8>>3];c=c+1|0;m=m+1|0;if((e|0)!=(m|0))continue;break}}c=J[a+8>>2];k=O[c+120>>3];l=O[c+128>>3];e=0;f=J[d+16>>2];i:{if((f|0)<=0)break i;l=25.4/l;k=25.4/k;g=J[d+8>>2];c=0;if((f|0)!=1){m=f&-2;while(1){o=c<<4;i=o+g|0;O[i>>3]=k*O[i>>3];O[i+8>>3]=l*O[i+8>>3];i=g+(o|16)|0;O[i>>3]=k*O[i>>3]; +O[i+8>>3]=l*O[i+8>>3];c=c+2|0;e=e+2|0;if((m|0)!=(e|0))continue;break}}if(!(f&1))break i;c=g+(c<<4)|0;O[c>>3]=k*O[c>>3];O[c+8>>3]=l*O[c+8>>3]}c=J[a+8>>2];l=+N[j+4>>2]*25.4/O[c+120>>3]+ +N[a+24>>2];k=+N[j+8>>2]*25.4/O[c+128>>3]+ +N[a+28>>2];e=0;f=J[d+16>>2];j:{if((f|0)<=0)break j;j=J[d+8>>2];c=0;if((f|0)!=1){i=f&-2;while(1){m=c<<4;g=m+j|0;O[g>>3]=O[g>>3]+l;O[g+8>>3]=O[g+8>>3]+k;g=j+(m|16)|0;O[g>>3]=O[g>>3]+l;O[g+8>>3]=O[g+8>>3]+k;c=c+2|0;e=e+2|0;if((i|0)!=(e|0))continue;break}}if(!(f&1))break j;c=j+ +(c<<4)|0;O[c>>3]=O[c>>3]+l;O[c+8>>3]=O[c+8>>3]+k}c=J[h+16>>2];J[h+24>>2]=c+J[d+24>>2];e=J[h+20>>2];o=c;c=J[d+16>>2];f=o+c|0;if((e|0)<(f|0)){if(!e){J[h+20>>2]=32;e=32}if((e|0)<(f|0)){while(1){e=e<<1;if((f|0)>(e|0))continue;break}J[h+20>>2]=e}s=h,t=fe(J[h+8>>2],e<<4),J[s+8>>2]=t;s=h,t=fe(J[h+12>>2],J[h+20>>2]),J[s+12>>2]=t;c=J[d+16>>2]}if((c|0)>0){c=J[h+16>>2];e=0;while(1){f=J[d+8>>2]+(e<<4)|0;j=J[f+4>>2];c=J[h+8>>2]+(c<<4)|0;J[c>>2]=J[f>>2];J[c+4>>2]=j;j=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=j; +H[J[h+12>>2]+J[h+16>>2]|0]=K[J[d+12>>2]+e|0];c=J[h+16>>2]+1|0;J[h+16>>2]=c;e=e+1|0;if((e|0)>2])continue;break}}kc[J[J[d>>2]+4>>2]](d)}p=p+1|0;if((r|0)!=(p|0))continue;break}kc[J[J[h>>2]+16>>2]](h,b)|0;kc[J[J[h>>2]+4>>2]](h);p=1}return p|0}a=Z()|0;uc(d);ba(a|0);B()}function F2a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;y=fc-256|0;fc=y;r=J[a+332>>2];b=J[b+84>>2];a=y;n=8;while(1){a:{b:{f=L[c+ +32>>1];g=I[c+16>>1];if((f|g)&65535)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;f=P(I[c>>1],J[b>>2])<<2;J[a+192>>2]=f;J[a+160>>2]=f;J[a+128>>2]=f;J[a+96>>2]=f;J[a+64>>2]=f;J[a+32>>2]=f;J[a>>2]=f;g=56;break a}o=P(J[b+192>>2],I[c+96>>1]);j=P(J[b+64>>2],f<<16>>16);f=P(o+j|0,4433);g=P(g,J[b+32>>2]);i=P(J[b+224>>2],I[c+112>>1]);t=P(g+i|0,-7373);k=P(J[b+160>>2],I[c+80>>1]);p=k+g|0;l=P(J[b+96>>2],I[c+48>>1]);h=l+i|0;m=P(p+h|0,9633);w=P(I[c+64>>1],J[b+128>>2])<< +13;s=P(I[c>>1],J[b>>2])<<13|1024;q=w+s|0;j=f+P(j,6270)|0;x=q+j|0;u=t+P(g,12299)|0;g=m+P(p,-3196)|0;p=u+g|0;J[a+224>>2]=x-p>>11;J[a>>2]=p+x>>11;p=s-w|0;f=f+P(o,-15137)|0;o=p+f|0;m=m+P(h,-16069)|0;h=P(l,25172);l=P(k+l|0,-20995);h=m+(h+l|0)|0;J[a+192>>2]=o-h>>11;J[a+32>>2]=h+o>>11;f=p-f|0;g=g+(l+P(k,16819)|0)|0;J[a+160>>2]=f-g>>11;J[a+64>>2]=f+g>>11;f=m+(t+P(i,2446)|0)|0;g=q-j|0;J[a+96>>2]=f+g>>11;f=g-f>>11;g=32}J[(g<<2)+a>>2]=f;c=c+2|0;b=b+4|0;a=a+4|0;f=n>>>0>1;n=n-1|0;if(f)continue;break}a=r+128|0; +b=y;t=0;while(1){f=J[b+12>>2];n=J[b+4>>2];l=P(f+n|0,11086);m=J[b+8>>2];r=J[b+24>>2];j=m-r|0;o=P(j,11363);c=J[(t<<2)+d>>2]+e|0;i=J[b+28>>2];w=P(i+n|0,8956);g=J[b+20>>2];p=g+n|0;h=P(p,10217);s=w+(h+(l+P(n,-18730)|0)|0)|0;q=J[b+16>>2];x=P(q,10703);k=(J[b>>2]<<13)+131072|0;A=x+k|0;B=o+P(r,20995)|0;u=A+B|0;H[c|0]=K[a+(s+u>>>18&1023)|0];H[c+15|0]=K[a+(u-s>>>18&1023)|0];j=P(j,2260);s=j+P(m,7373)|0;q=P(q,4433);u=q+k|0;v=s+u|0;C=P(f+g|0,1136);z=C+(l+P(f,589)|0)|0;l=f+i|0;D=P(l,-5461);z=z+D|0;H[c+1|0]=K[a+ +(v+z>>>18&1023)|0];H[c+14|0]=K[a+(v-z>>>18&1023)|0];v=h+(P(g,-9222)+C|0)|0;h=P(g+i|0,-11086);v=v+h|0;m=o+P(m,-4926)|0;o=k-q|0;q=m+o|0;H[c+2|0]=K[a+(v+q>>>18&1023)|0];H[c+13|0]=K[a+(q-v>>>18&1023)|0];h=h+(w+(D+P(i,8728)|0)|0)|0;r=j+P(r,-4176)|0;k=k-x|0;j=r+k|0;H[c+3|0]=K[a+(h+j>>>18&1023)|0];H[c+12|0]=K[a+(j-h>>>18&1023)|0];j=P(n-i|0,7350);l=P(l,-10217);h=j+(l+P(i,25733)|0)|0;i=P(i-g|0,3363);h=h+i|0;k=k-r|0;H[c+4|0]=K[a+(h+k>>>18&1023)|0];H[c+11|0]=K[a+(k-h>>>18&1023)|0];k=P(p,5461);h=P(g,-6278);g= +P(g-f|0,11529);i=i+(k+(h+g|0)|0)|0;m=o-m|0;H[c+5|0]=K[a+(i+m>>>18&1023)|0];H[c+10|0]=K[a+(m-i>>>18&1023)|0];i=P(f,16154);f=P(n-f|0,3363);g=l+(g+(i+f|0)|0)|0;i=u-s|0;H[c+6|0]=K[a+(g+i>>>18&1023)|0];H[c+9|0]=K[a+(i-g>>>18&1023)|0];f=j+(k+(f+P(n,-15038)|0)|0)|0;n=A-B|0;H[c+7|0]=K[a+(f+n>>>18&1023)|0];H[c+8|0]=K[a+(n-f>>>18&1023)|0];b=b+32|0;t=t+1|0;if((t|0)!=8)continue;break}fc=y+256|0}function DXa(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;e=fc+-64|0;fc=e;d=eq(a,b,c,d);J[d+232>> +2]=0;J[d+236>>2]=0;J[d>>2]=842348;J[d+240>>2]=0;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;a=J[b+24>>2];J[699344]=0;ha(3372,c|0,a|0,e+48|0,0)|0;a=J[699344];J[699344]=0;j=d+232|0;a:{b:{c:{d:{e:{if((a|0)==1)break e;J[699344]=0;a=ha(3368,J[e+56>>2],842402,e+32|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;f:{g:{h:{if(J[a>>2]!=6)break h;c=J[e+40>>2];if(J[c+12>>2]<=0)break h;a=0;while(1){J[699344]=0;b=ha(3449,c|0,a|0,e+16|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d;i:{if(J[b>>2]-3>>>0<4294967294)break i; +if(a&1)k=O[d+16>>3]-(J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3]);else k=(J[e+16>>2]==1?+J[e+24>>2]:O[e+24>>3])-O[d+24>>3];c=J[d+236>>2];f=J[d+240>>2];if(c>>>0>>0){O[c>>3]=k;J[d+236>>2]=c+8;break i}j:{k:{g=J[j>>2];i=c-g>>3;b=i+1|0;l:{if(b>>>0>=536870912){J[699344]=0;$(2494,j|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;break a}f=f-g|0;h=f>>2;f=f>>>0>=2147483640?536870911:b>>>0>>0?h:b;if(!f){h=0;break j}if(f>>>0<536870912)break k;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a}c=Z()| +0;break b}J[699344]=0;h=_(4,f<<3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g}b=(i<<3)+h|0;O[b>>3]=k;i=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[d+240>>2]=(f<<3)+h;J[d+236>>2]=i;J[d+232>>2]=b;if(!g)break i;uc(g)}J[699344]=0;$(3370,e+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;a=a+1|0;c=J[e+40>>2];if((a|0)>2])continue;break}}J[699344]=0;a=e+32|0;$(3370,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[e+8>>2]=0;J[e>>2]=0;J[e+4>> +2]=0;J[699344]=0;a=ha(3368,J[e+56>>2],805801,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(J[a>>2]!=4)break f;J[699344]=0;aa(2974,e|0,J[e+40>>2])|0;a=J[699344];J[699344]=0;if((a|0)!=1)break f;break c}c=Z()|0;break b}J[699344]=0;$(3370,e+32|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;b=K[e+11|0];a=b<<24>>24;m:{n:{o:{p:switch(((a|0)<0?J[e+4>>2]:b)-8|0){case 1:b=9;a=(a|0)<0?J[e>>2]:e;if(dd(a,842512,9))break o;b=8;break n;case 0:break p;default:break m}a=(a|0)<0?J[e>>2]:e;if((K[a|0]|K[a+ +1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1769304403|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=2037147495)break m;b=10;break n}if(!dd(a,842665,9))break n;if(dd(a,842934,9))break m;b=11}H[d+228|0]=b}J[699344]=0;$(3370,e+48|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;if(H[e+11|0]<0)uc(J[e>>2]);fc=e- -64|0;return d|0}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;if(H[e+11|0]>=0)break b;uc(J[e>>2])}a=J[j>>2];if(a){J[d+236>>2]=a;uc(a)}Ch(d);ba(c|0);B()}B()}function t7a(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;f=J[a+464>>2];if(J[a+280>>2]){c=J[f+52>>2];if(!c){if(!(kc[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){g=d<<2;e=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[e+20>>2]<<2)+f|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+ +48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+ +10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=f+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Ac(J[((J[e+24>>2]<<2)+f|0)+120>>2],0,256)}d=d+1|0;if((d|0)>2])continue;break}J[f+16>>2]=-16;J[f+8>>2]=0;J[f+12>>2]=0;c=J[a+280>>2]}J[f+52>>2]=c-1}c:{if(!(J[f+16>>2]==-1|J[a+364>>2]<=0))while(1){c=k<<2;m=J[c+b>>2];c=J[(a+c|0)+368>>2]<<2;h=J[J[(c+a|0)+340>>2]+20>>2];e=(h<<2)+f|0;g=c+f|0;d=J[e+56>>2]+J[g+36>>2]|0;d:{if(!Ud(a, +d)){J[g+36>>2]=0;c=J[g+20>>2];break d}j=1;i=0;c=0;l=Ud(a,d+1|0);d=(d+l|0)+2|0;e:{if(!Ud(a,d))break e;e=J[e+56>>2];d=e+20|0;if(!Ud(a,d)){c=1;break e}j=0;d=e+21|0;if(!Ud(a,d)){c=2;break e}d=e+22|0;if(!Ud(a,d)){c=4;break e}d=e+23|0;if(!Ud(a,d)){c=8;break e}d=e+24|0;if(!Ud(a,d)){c=16;break e}d=e+25|0;if(!Ud(a,d)){c=32;break e}d=e+26|0;if(!Ud(a,d)){c=64;break e}d=e+27|0;if(!Ud(a,d)){c=128;break e}d=e+28|0;if(!Ud(a,d)){c=256;break e}d=e+29|0;if(!Ud(a,d)){c=512;break e}d=e+30|0;if(!Ud(a,d)){c=1024;break e}d= +e+31|0;if(!Ud(a,d)){c=2048;break e}d=e+32|0;if(!Ud(a,d)){c=4096;break e}d=e+33|0;if(!Ud(a,d)){c=8192;break e}c=16384;d=e+34|0;if(Ud(a,d))break c}h=a+h|0;f:{if(1<>1>(c|0))break f;e=l<<2;if(1<>1<(c|0)){i=e+12|0;break f}i=e+4|0}J[g+36>>2]=i;g:{if(j){d=c;break g}i=d+14|0;d=c;while(1){e=c>>>1|0;d=(Ud(a,i)?e:0)|d;j=c>>>0>3;c=e;if(j)continue;break}}c=J[g+20>>2]+(l?d^-1:d+1|0)|0;J[g+20>>2]=c}I[m>>1]=c<>2];k=k+1|0;if((k|0)>2])continue;break}return 1}b=J[a>>2];J[b+ +20>>2]=117;kc[J[b+4>>2]](a,-1);J[f+16>>2]=-1;return 1}function ida(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;g=J[a+584>>2];d=L[g+834>>1];f=L[g+836>>1];e=P(P(f,d)+2|0,P(J[g+72>>2],((d+J[g+28>>2]|0)-1>>>0)/(d>>>0)|0))+7>>>3|0;d=(c|0)/(e|0)|0;q=P(d,f);o=J[g+888>>2];if((P(d,e)|0)!=(c|0))le(J[a+628>>2],J[a>>2],87770,0);if((q|0)>0){d=J[J[g+84>>2]+132>>2];w=d&3;x=g+844|0;y=d>>>0<4;while(1){if(J[g+76>>2]>0){p=J[g+84>> +2];r=0;k=0;while(1){l=J[p+12>>2];a:{if((l|0)<=0)break a;c=J[p+28>>2]<<3;i=J[p+8>>2];f=P(i,d);m=c-f|0;u=(r<<2)+g|0;if((i|0)==1){s=m&-8;n=m&7;i=0;t=c+(f^-1)>>>0<7;while(1){c=J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(i<<2)>>2];b:{if(!d)break b;h=b+k|0;j=0;f=d;if(w)while(1){H[c|0]=K[h|0];h=h+o|0;c=c+1|0;f=f-1|0;j=j+1|0;if((w|0)!=(j|0))continue;break}if(y)break b;while(1){H[c|0]=K[h|0];e=h+o|0;H[c+1|0]=K[e|0];e=e+o|0;H[c+2|0]=K[e|0];e=e+o|0;H[c+3|0]=K[e|0];c=c+4|0;h=e+o|0;f=f-4|0;if(f)continue;break}}c:{if((m| +0)<=0)break c;e=K[c-1|0];f=0;if(!t)while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+1|0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((s|0)!=(f|0))continue;break}f=0;if(!n)break c;while(1){H[c|0]=e;c=c+1|0;f=f+1|0;if((n|0)!=(f|0))continue;break}}k=k+1|0;i=i+1|0;if((l|0)!=(i|0))continue;break}break a}if(d){z=m&-8;s=m&7;A=i&-4;t=i&3;n=0;B=c+(f^-1)>>>0<7;while(1){c=J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(n<<2)>>2];if((i|0)>0){f=b+k|0;e=d;while(1){j=0;h=0;v=0;if(i>>>0>=4)while(1){H[c| +0]=K[f+h|0];H[c+1|0]=K[(h|1)+f|0];H[c+2|0]=K[(h|2)+f|0];H[c+3|0]=K[(h|3)+f|0];h=h+4|0;c=c+4|0;v=v+4|0;if((A|0)!=(v|0))continue;break}if(t)while(1){H[c|0]=K[f+h|0];h=h+1|0;c=c+1|0;j=j+1|0;if((t|0)!=(j|0))continue;break}f=f+o|0;e=e-1|0;if(e)continue;break}}d:{if((m|0)<=0)break d;e=K[c-1|0];f=0;if(!B)while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+1|0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((z|0)!=(f|0))continue;break}f=0;if(!s)break d;while(1){H[c|0]=e;c=c+1|0;f=f+1|0;if((s|0)!= +(f|0))continue;break}}k=i+k|0;n=n+1|0;if((n|0)!=(l|0))continue;break}break a}j=0;if((m|0)>0)while(1){c=J[(J[u+844>>2]+(P(J[g+884>>2],l)<<2)|0)+(j<<2)>>2];e=K[c-1|0];f=0;while(1){H[c+7|0]=e;H[c+6|0]=e;H[c+5|0]=e;H[c+4|0]=e;H[c+3|0]=e;H[c+2|0]=e;H[c+1|0]=e;H[c|0]=e;c=c+8|0;f=f+8|0;if((m|0)!=(f|0))continue;break}j=j+1|0;if((l|0)!=(j|0))continue;break}k=P(i,l)+k|0}p=p+88|0;r=r+1|0;if((r|0)>2])continue;break}}c=J[g+884>>2];J[g+884>>2]=c+1;if((c|0)>=7){c=J[g+272>>2]<<3;if((SP(g,x,c)|0)!=(c|0))return 0; +J[g+884>>2]=0}c=L[g+836>>1];J[a+472>>2]=c+J[a+472>>2];b=J[g+840>>2]+b|0;q=q-c|0;if((q|0)>0)continue;break}}return 1}function yP(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;e=fc-112|0;fc=e;J[e+8>>2]=0;n=-1;i=Fs(a,1918128707);a:{if(!i)break a;b:{c:{d:{e:{l=Fs(a,1733579331);if(l){j=Fs(a,1649693251);if(!j)break e;g=Fs(a,1918392666);if(!g)break e;f=Fs(a,1733843290);if(!f)break c;a=Fs(a,1649957210);if(!a)break c;if(J[i+4>>2]!=1668641398|J[g+4>>2]!=1482250784|(J[l+4>>2]!=1668641398|J[f+4>>2]!= +1482250784))break b;if(J[j+4>>2]!=1668641398|J[a+4>>2]!=1482250784)break b;d=Dc(152);if(!d)break b;J[d+4>>2]=2642264;J[d+8>>2]=3;J[d+12>>2]=3;Ac(d+16|0,0,136);J[d>>2]=1;h=sj();if(!h){m=d;break b}if(qn(h,-1,d))break d;J[d+16>>2]=0;J[d+24>>2]=1;J[d+28>>2]=1;f:{if(!b){J[d+20>>2]=0;O[d+56>>3]=+J[g+12>>2]*1.52587890625E-5;O[d+88>>3]=+J[g+16>>2]*1.52587890625E-5;O[d+120>>3]=+J[g+20>>2]*1.52587890625E-5;O[d- -64>>3]=+J[f+12>>2]*1.52587890625E-5;O[d+96>>3]=+J[f+16>>2]*1.52587890625E-5;O[d+128>>3]=+J[f+20>> +2]*1.52587890625E-5;O[d+72>>3]=+J[a+12>>2]*1.52587890625E-5;O[d+104>>3]=+J[a+16>>2]*1.52587890625E-5;b=J[a+20>>2];J[d+144>>2]=0;J[d+148>>2]=0;J[d+112>>2]=0;J[d+116>>2]=0;J[d+80>>2]=0;J[d+84>>2]=0;O[d+136>>3]=+(b|0)*1.52587890625E-5;if(zp(d+32|0,i+12|0))break d;if(zp(d+40|0,l+12|0))break d;if(zp(d+48|0,j+12|0))break d;break f}J[d+20>>2]=1;O[e+16>>3]=+J[g+12>>2]*1.52587890625E-5;O[e+48>>3]=+J[g+16>>2]*1.52587890625E-5;O[e+80>>3]=+J[g+20>>2]*1.52587890625E-5;O[e+24>>3]=+J[f+12>>2]*1.52587890625E-5;O[e+ +56>>3]=+J[f+16>>2]*1.52587890625E-5;O[e+88>>3]=+J[f+20>>2]*1.52587890625E-5;O[e+32>>3]=+J[a+12>>2]*1.52587890625E-5;O[e- -64>>3]=+J[a+16>>2]*1.52587890625E-5;b=J[a+20>>2];J[e+104>>2]=0;J[e+108>>2]=0;J[e+72>>2]=0;J[e+76>>2]=0;O[e+96>>3]=+(b|0)*1.52587890625E-5;J[e+40>>2]=0;J[e+44>>2]=0;if(AP(d+56|0,e+16|0))break d;J[e+8>>2]=0;J[e+12>>2]=0;b=e+8|0;if(zp(b,i+12|0))break d;if(Ry(d+32|0,b,J[e+12>>2]))break d;b=J[e+8>>2];if(b)uc(b);J[e+8>>2]=0;J[e+12>>2]=0;b=e+8|0;if(zp(b,l+12|0))break d;if(Ry(d+40|0,b, +J[e+12>>2]))break d;b=J[e+8>>2];if(b)uc(b);J[e+8>>2]=0;J[e+12>>2]=0;b=e+8|0;if(zp(b,j+12|0))break d;if(Ry(d+48|0,b,J[e+12>>2]))break d;b=J[e+8>>2];if(!b)break f;uc(b)}rj(i);rj(g);rj(l);rj(f);rj(j);rj(a);wP(d);J[c>>2]=h;n=0;break a}rj(i);break a}rj(i);rj(l);if(!j)break a;rj(j);break a}m=d;k=h;break b}a=0}rj(i);rj(g);rj(l);if(f)rj(f);rj(j);if(a)rj(a);if(k){a=J[k>>2];if((a|0)>0)while(1){d=J[k+8>>2];a=a-1|0;b=a<<2;h=J[d+b>>2];c=J[h>>2];J[h>>2]=c-1;if((c|0)<=1){kc[J[J[h+4>>2]>>2]](h);uc(h);d=J[k+8>>2]; +a=J[k>>2]-1|0}J[b+d>>2]=0;J[k>>2]=a;if((a|0)>0)continue;break}a=J[k+8>>2];if(a)uc(a);uc(k)}if(!m)break a;a=J[m>>2];J[m>>2]=a-1;if((a|0)>1)break a;kc[J[J[m+4>>2]>>2]](m);uc(m)}fc=e+112|0;return n}function B6a(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;e=fc-288|0;fc=e;h=J[a+464>>2];a:{b:{if(J[h+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[h+12>>2]/8|0);J[h+12>>2]=0;if(!(kc[J[c+8>>2]](a)|0))break a;if(J[a+336>>2]>0){c=0;while(1){J[((c<< +2)+h|0)+20>>2]=0;c=c+1|0;if((c|0)>2])continue;break}}J[h+16>>2]=0;J[h+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[h+36>>2]=0}c:{if(!J[h+36>>2]){o=J[a+428>>2];l=J[a+412>>2];c=J[a+420>>2];J[e+284>>2]=a;f=J[a+24>>2];J[e+268>>2]=J[f>>2];J[e+272>>2]=J[f+4>>2];p=-1<>2];f=J[a+408>>2];k=J[b>>2];g=J[h+8>>2];d:{e:{f:{j=J[h+16>>2];if(j){b=0;break f}if((f|0)>(l|0)){b=0;break f}n=J[h+60>>2];b=0;while(1){g:{h:{i:{if((d|0)>7)break i;c=e+268|0;if(!Qg(c,g,d,0))break c;g=J[e+276>>2];d=J[e+ +280>>2];if((d|0)>7)break i;c=Ni(c,g,d,n,1);break h}c=g>>d-8&255;j=J[((c<<2)+n|0)+144>>2];if(j){c=K[(c+n|0)+1168|0];d=d-j|0;break g}c=Ni(e+268|0,g,d,n,9)}if((c|0)<0)break c;g=J[e+276>>2];d=J[e+280>>2]}i=c>>>4|0;j:{k:switch(c&15){default:c=J[a>>2];J[c+20>>2]=121;kc[J[c+4>>2]](a,-1);case 1:if((d|0)<=0){if(!Qg(e+268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;q=g>>>d&1?m:p;break j;case 0:break k}q=0;if((i|0)==15)break j;j=1<>>0<16)break e;if((d|0)<(i|0)){if(!Qg(e+268|0,g,d,i))break c; +g=J[e+276>>2];d=J[e+280>>2]}d=d-i|0;j=(J[(i<<2)+55920>>2]&g>>d)+j|0;break f}s=(f|0)>(l|0)?f:l;j=s+1|0;l:{while(1){c=f;f=(J[(c<<2)+o>>2]<<1)+k|0;m:{if(L[f>>1]){if((d|0)<=0){if(!Qg(e+268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;if(!(g>>>d&1))break m;r=I[f>>1];if(r&m)break m;I[f>>1]=((r|0)<0?p:m)+r;break m}if((i|0)<=0)break l;i=i-1|0}f=c+1|0;if((c|0)!=(s|0))continue;break}c=j}if(q){f=J[(c<<2)+o>>2];I[(f<<1)+k>>1]=q;J[(b<<2)+e>>2]=f;b=b+1|0}f=c+1|0;if((c|0)<(l|0))continue;break}break d}if(!j)break d}if((f| +0)<=(l|0))while(1){c=f;f=(J[(c<<2)+o>>2]<<1)+k|0;n:{if(!L[f>>1])break n;if((d|0)<=0){if(!Qg(e+268|0,g,d,1))break c;g=J[e+276>>2];d=J[e+280>>2]}d=d-1|0;if(!(g>>>d&1))break n;i=I[f>>1];if(i&m)break n;I[f>>1]=i+((i|0)<0?p:m)}f=c+1|0;if((c|0)!=(l|0))continue;break}t=j-1|0}a=J[a+24>>2];J[a>>2]=J[e+268>>2];J[a+4>>2]=J[e+272>>2];J[h+16>>2]=t;J[h+12>>2]=d;J[h+8>>2]=g}J[h+40>>2]=J[h+40>>2]-1;d=1;break a}if((b|0)<=0){d=0;break a}c=b;a=c&3;if(a){d=0;while(1){c=c-1|0;I[(J[(c<<2)+e>>2]<<1)+k>>1]=0;d=d+1|0;if((a| +0)!=(d|0))continue;break}}d=0;if(b>>>0<4)break a;while(1){a=(c<<2)+e|0;I[(J[a-4>>2]<<1)+k>>1]=0;I[(J[a-8>>2]<<1)+k>>1]=0;a=c-3|0;I[(J[(a<<2)+e>>2]<<1)+k>>1]=0;c=c-4|0;I[(J[(c<<2)+e>>2]<<1)+k>>1]=0;if(a>>>0>1)continue;break}}fc=e+288|0;return d|0}function Je(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;c=H[b|0];if(!c)return a;a=eg(a,c);a:{if(!a)break a;if(!K[b+1|0])return a;c=K[a+1|0];if(!c)break a;if(!K[b+2|0]){e=(c|0)!=0;b:{if(!c)break b;c=c|K[a|0]<<8;d=K[b+1|0]|K[b|0]<<8;if((c|0)== +(d|0))break b;b=a+1|0;while(1){a=b;g=K[a+1|0];e=(g|0)!=0;if(!g)break b;b=a+1|0;c=g|c<<8&65280;if((d|0)!=(c|0))continue;break}}return e?a:0}d=K[a+2|0];if(!d)break a;if(!K[b+3|0]){c=a+2|0;h=(d|0)!=0;c:{d:{if(!d)break d;e=K[a+1|0]<<16|K[a|0]<<24|d<<8;b=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;if((e|0)==(b|0))break d;while(1){a=c+1|0;d=K[c+1|0];h=(d|0)!=0;if(!d)break c;c=a;e=(d|e)<<8;if((b|0)!=(e|0))continue;break}break c}a=c}return h?a-2|0:0}d=K[a+3|0];if(!d)break a;if(!K[b+4|0]){c=a+3|0;h=(d|0)!=0;e:{f:{if(!d)break f; +e=d|(K[a+1|0]<<16|K[a|0]<<24|K[a+2|0]<<8);a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if((e|0)==(b|0))break f;while(1){a=c+1|0;d=K[c+1|0];h=(d|0)!=0;if(!d)break e;c=a;e=d|e<<8;if((b|0)!=(e|0))continue;break}break e}a=c}return h?a-3|0:0}h=a;c=0;i=fc-1056|0;fc=i;a=i+1048|0;J[a>>2]=0;J[a+4>>2]=0;a=i+1040|0;J[a>>2]=0;J[a+4>>2]=0;J[i+1032>>2]=0;J[i+1036>>2]=0;J[i+1024>>2]=0;J[i+1028>>2]=0;k=b;g:{h:{i:{b=K[b|0];j:{if(!b){j=-1;a=1;break j}while(1){if(!K[f+h| +0])break g;f=f+1|0;J[((b&255)<<2)+i>>2]=f;a=(i+1024|0)+(b>>>3&28)|0;J[a>>2]=J[a>>2]|1<>>0>1)break i}d=-1;c=1;break h}g=1;b=1;while(1){d=K[(k+j|0)+b|0];e=K[a+k|0];k:{if((d|0)==(e|0)){if((b|0)==(g|0)){c=c+g|0;b=1;break k}b=b+1|0;break k}if(d>>>0>e>>>0){g=a-j|0;c=a;b=1;break k}j=c;c=c+1|0;g=1;b=1}a=b+c|0;if(f>>>0>a>>>0)continue;break}c=1;d=-1;if(f>>>0<=1){a=g;break h}a=0;e=1;b=1;while(1){n=K[(d+k|0)+b|0];l=K[c+k|0];l:{if((n|0)==(l|0)){if((b|0)==(e|0)){a= +a+e|0;b=1;break l}b=b+1|0;break l}if(n>>>0>>0){e=c-d|0;a=c;b=1;break l}d=a;a=a+1|0;e=1;b=1}c=a+b|0;if(f>>>0>c>>>0)continue;break}a=g;c=e}b=a;a=d+1>>>0>j+1>>>0;e=a?c:b;m=a?d:j;l=m+1|0;m:{if(dd(k,k+e|0,l)){a=(m^-1)+f|0;e=(a>>>0>>0?m:a)+1|0;g=0;break m}g=f-e|0}n=f-1|0;o=f|63;d=0;a=h;while(1){n:{if(h-a>>>0>=f>>>0)break n;c=0;b=Cg(h,0,o);h=b?b:h+o|0;if(!b)break n;if(b-a>>>0>>0)break g}b=f;c=K[a+n|0];o:{p:{if(!(J[(i+1024|0)+(c>>>3&28)>>2]>>>c&1))break p;b=J[(c<<2)+i>>2];if((f|0)!=(b|0)){b=f-b| +0;b=b>>>0>d>>>0?b:d;break p}q:{b=l;c=b>>>0>d>>>0?b:d;j=K[k+c|0];if(j)while(1){if(K[a+c|0]!=(j&255))break q;c=c+1|0;j=K[k+c|0];if(j)continue;break}while(1){if(b>>>0<=d>>>0){c=a;break g}b=b-1|0;if(K[k+b|0]==K[a+b|0])continue;break}b=e;d=g;break o}b=c-m|0}d=0}a=a+b|0;continue}}fc=i+1056|0;e=c}return e}function Vva(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;i=fc+-64|0;fc=i;J[i+56>>2]=0;J[i+60>>2]=0;J[i+48>>2]=0; +J[i+52>>2]=0;J[i+40>>2]=0;J[i+44>>2]=0;J[i+32>>2]=0;J[i+36>>2]=0;FH(a,d,i+32|0,i+48|0);a:{b:{c:{f=J[b+8>>2];g=J[b>>2];if(L[c+10>>1]==(f-g|0)){h=J[b+12>>2];j=J[b+4>>2];if(L[c+8>>1]==(h-j|0))break c}a=Qc(i+8|0,2388455,2385707,611,2425560,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}d:{if(!((g|0)>J[i+48>>2]|(j|0)>J[i+52>>2]|(f|0)>2]))if((h|0)>=J[i+60>>2])break d;a=Qc(i+8|0,2388979,2385707,616,2425560,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!= +1)break b;break a}g=J[d+8>>2]-J[d>>2]|0;f=J[d+12>>2]-J[d+4>>2]|0;if(!((g|0)==L[e+10>>1]&(f|0)==L[e+8>>1])){h=J[e+20>>2];if(h)uc(h);J[e+16>>2]=0;J[e+20>>2]=0;I[e+12>>1]=g;I[e+10>>1]=g;I[e+8>>1]=f;f=P(g&65535,f&65535);if(f){f=vc((y=-1,z=vEb(f,0,3,0),A=jc,A?y:z));J[e+16>>2]=f;J[e+20>>2]=f}}r=a+80|0;xe(r,0,3);s=a+92|0;xe(s,0,3);t=a+68|0;xe(t,0,3);DV();u=J[i+32>>2];q=J[i+40>>2]-u|0;xe(t,q+2|0,3);if(!(J[a+16>>2]<=0&J[a+20>>2]<=0)){xe(r,q,3);xe(s,q,3);J[a+100>>2]=-1;J[a+104>>2]=-1}o=J[d+4>>2];if((o|0)>2]){v=J[i+44>>2]-1|0;w=J[i+36>>2];x=P(u,-3);while(1){m=J[J[a+40>>2]+(o<<2)>>2];f=m>>4;g=f+1|0;e:{if(!(J[a+16>>2]<=0&J[a+20>>2]<=0)){h=f;f=i+32|0;h=CV(a,h,f,b,c);j=CV(a,g,f,b,c);break e}n=J[c+16>>2];h=J[b+4>>2];g=((g|0)<(v|0)?g:v)-h|0;k=L[c+12>>1];p=L[c+8>>1];j=(g|0)>=0?p>>>0>g>>>0?n+P(P(g,k),3)|0:0:0;g=P(u-J[b>>2]|0,3);j=j+g|0;f=((f|0)>(w|0)?f:w)-h|0;h=g+((f|0)>=0?f>>>0

      >>0?n+P(P(f,k),3)|0:0:0)|0}n=P(q,3);k=J[a+64>>2];g=k+3|0;if((q|0)>0){p=k+n|0;m=((m&15)<<10)+2777936|0;f=g;while(1){l=K[h+2| +0];H[f+2|0]=K[m+(K[j+2|0]-l<<1)|0]+l;l=K[h+1|0];H[f+1|0]=K[m+(K[j+1|0]-l<<1)|0]+l;l=K[h|0];H[f|0]=K[m+(K[j|0]-l<<1)|0]+l;h=h+3|0;j=j+3|0;l=f>>>0

      >>0;f=f+3|0;if(l)continue;break}}f=K[g|0]|K[g+1|0]<<8;H[k|0]=f;H[k+1|0]=f>>>8;H[k+2|0]=K[g+2|0];f=n+J[a+64>>2]|0;g=K[f|0]|K[f+1|0]<<8;H[f+3|0]=g;H[f+4|0]=g>>>8;H[f+5|0]=K[f+2|0];g=J[a+64>>2];h=0;f=o-J[d+4>>2]|0;f:{if((f|0)<0|f>>>0>=L[e+8>>1])break f;j=J[e+16>>2];if(!j)break f;h=j+P(P(f,L[e+12>>1]),3)|0}j=J[d>>2];m=J[d+8>>2];if((j|0)<(m|0)){n=(g+x|0)+3| +0;p=J[a+52>>2];while(1){k=J[p+(j<<2)>>2];f=n+P(k>>4,3)|0;g=K[f+2|0];k=((k&15)<<10)+2777936|0;H[h+2|0]=g+K[k+(K[f+5|0]-g<<1)|0];g=K[f+1|0];H[h+1|0]=K[k+(K[f+4|0]-g<<1)|0]+g;g=K[f+3|0];f=K[f|0];H[h|0]=K[k+(g-f<<1)|0]+f;h=h+3|0;j=j+1|0;if((m|0)!=(j|0))continue;break}}o=o+1|0;if((o|0)>2])continue;break}}xe(r,0,3);xe(s,0,3);xe(t,0,3);fc=i- -64|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function l7a(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;f=J[a+464>>2];if(J[a+280>>2]){e= +J[f+52>>2];if(!e){if(!(kc[J[J[a+460>>2]+8>>2]](a)|0)){e=J[a>>2];J[e+20>>2]=25;kc[J[e>>2]](a)}if(J[a+336>>2]>0){e=0;while(1){g=e<<2;d=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[d+20>>2]<<2)+f|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53| +0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15| +0]=0;c=f+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Ac(J[((J[d+24>>2]<<2)+f|0)+120>>2],0,256)}e=e+1|0;if((e|0)>2])continue;break}}J[f+16>>2]=-16;J[f+8>>2]=0;J[f+12>>2]=0;e=J[a+280>>2]}J[f+52>>2]=e-1}c:{d:{if(J[f+16>>2]==-1)break d;e=J[a+408>>2];if((e|0)>J[a+412>>2])break d;h=J[b>>2];i=J[a+428>>2];j=f+184|0;b=J[J[a+340>>2]+24>>2];k=b+a|0;g=(b<<2)+f|0;while(1){c=e;e=(J[g+120>>2]+P(c,3)|0)-3|0;if(Ud(a,e))break d;while(1){if(!Ud(a,e+ +1|0)){e=e+3|0;b=J[a+412>>2]>(c|0);c=c+1|0;if(b)continue;break c}break}l=Ud(a,j);b=e+2|0;e:{if(!Ud(a,b)){b=0;break e}if(!Ud(a,b)){b=1;break e}b=J[g+120>>2]+(K[k+264|0]<(c|0)?217:189)|0;f:{if(!Ud(a,b)){e=2;break f}d=b+1|0;if(!Ud(a,d)){e=4;b=d;break f}d=b+2|0;if(!Ud(a,d)){e=8;b=d;break f}d=b+3|0;if(!Ud(a,d)){e=16;b=d;break f}d=b+4|0;if(!Ud(a,d)){e=32;b=d;break f}d=b+5|0;if(!Ud(a,d)){e=64;b=d;break f}d=b+6|0;if(!Ud(a,d)){e=128;b=d;break f}d=b+7|0;if(!Ud(a,d)){e=256;b=d;break f}d=b+8|0;if(!Ud(a,d)){e= +512;b=d;break f}d=b+9|0;if(!Ud(a,d)){e=1024;b=d;break f}d=b+10|0;if(!Ud(a,d)){e=2048;b=d;break f}d=b+11|0;if(!Ud(a,d)){e=4096;b=d;break f}d=b+12|0;if(!Ud(a,d)){e=8192;b=d;break f}e=16384;b=b+13|0;if(Ud(a,b))break c}m=b+14|0;b=e;while(1){d=e>>>1|0;b=(Ud(a,m)?d:0)|b;n=e>>>0>3;e=d;if(n)continue;break}}I[(J[(c<<2)+i>>2]<<1)+h>>1]=(l?b^-1:b+1|0)<>2];e=c+1|0;if(J[a+412>>2]>(c|0))continue;break}}return 1}b=J[a>>2];J[b+20>>2]=117;kc[J[b+4>>2]](a,-1);J[f+16>>2]=-1;return 1}function Kua(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=fc-32|0;fc=f;J[f+16>>2]=0;h=J[a+12>>2];g=uA(f+20|0,1,2393244);if(h){h=b+h|0;while(1){e=h;h=e+1|0;if(K[e|0]==32)continue;break}}h=Ig(e,f+16|0,d);a:{b:{e=J[g>>2];if(!e)break b;c:{d:{if(!J[e+8>>2]){J[g>>2]=0;break d}e=J[e+12>>2];i=J[g+8>>2];J[699344]=0;aa(5642,i|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;e=J[g>>2];J[g>>2]=0;if(!e)break b}J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[699344];J[699344]=0;if((i|0)!=1){if(g)break b;J[699344]=0;$(5147, +e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break b}break a}break a}e:{e=J[f+16>>2];if(e){J[c>>2]=e-J[a+12>>2];break e}J[c>>2]=-1;g=f+20|0;vA(g,e,J[a+12>>2]+b|0);b=J[f+20>>2];if(!b)break e;e=J[J[b>>2]+24>>2];J[699344]=0;i=e;e=f+12|0;ca(i|0,e|0,b|0,2);b=J[699344];J[699344]=0;f:{g:{if((b|0)!=1){J[699344]=0;aa(5153,g|0,e|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[f+12>>2];J[f+12>>2]=0;if(!b)break h;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break h;J[699344]= +0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break a}e=Z()|0;zc(f+12|0);break g}b=J[f+20>>2];if(!b)break e;e=J[J[b>>2]+44>>2];J[699344]=0;h=ha(e|0,b|0,0,f+12|0,d|0)|0;b=J[699344];J[699344]=0;i:{j:{k:{l:{m:{n:{if((b|0)!=1){e=J[f+20>>2];b=J[f+12>>2];if((b|0)<=0)break j;J[c>>2]=J[a+8>>2];a=J[a+12>>2];J[699344]=0;d=f+8|0;ca(5638,d|0,e|0,a+b|0);a=J[699344];J[699344]=0;if((a|0)==1)break n;J[699344]=0;aa(5153,f+20|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[f+8>>2];J[f+8>>2]=0; +o:{if(!a)break o;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break o;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[f+20>>2];if(!a)break e;b=J[J[a>>2]+28>>2];J[699344]=0;d=b;b=f+8|0;ca(d|0,b|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break l;J[699344]=0;aa(5153,f+20|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;a=J[f+8>>2];J[f+8>>2]=0;p:{if(!a)break p;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d| +0)==1)break f;if(b)break p;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f}e=J[f+20>>2];if(!e)break e;J[c>>2]=J[c>>2]-J[e+8>>2];J[f+20>>2]=0;break i}e=Z()|0;break g}e=Z()|0;break g}e=Z()|0;zc(f+8|0);break g}e=Z()|0;break g}e=Z()|0;zc(f+8|0);break g}J[f+20>>2]=0;if(!e)break e}J[699344]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break e;J[699344]=0;$(5147,e|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e}break a}e=Z()|0}zc(f+20|0);ba(e|0);B()}break a}fc= +f+32|0;return h|0}ea(0)|0;Bc();B()}function Jua(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=fc-32|0;fc=f;J[f+16>>2]=0;h=J[a+12>>2];g=uA(f+20|0,1,2393244);if(h){h=b+h|0;while(1){e=h;h=e+1|0;if(K[e|0]==32)continue;break}}h=Bz(e,f+16|0,d);a:{b:{e=J[g>>2];if(!e)break b;c:{d:{if(!J[e+8>>2]){J[g>>2]=0;break d}e=J[e+12>>2];i=J[g+8>>2];J[699344]=0;aa(5642,i|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;e=J[g>>2];J[g>>2]=0;if(!e)break b}J[699344]=0;g=J[e+4>>2]-1|0;J[e+4>>2]=g;i=J[699344]; +J[699344]=0;if((i|0)!=1){if(g)break b;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)!=1)break b}break a}break a}e:{e=J[f+16>>2];if(e){J[c>>2]=e-J[a+12>>2];break e}J[c>>2]=-1;g=f+20|0;vA(g,e,J[a+12>>2]+b|0);b=J[f+20>>2];if(!b)break e;e=J[J[b>>2]+24>>2];J[699344]=0;i=e;e=f+12|0;ca(i|0,e|0,b|0,2);b=J[699344];J[699344]=0;f:{g:{if((b|0)!=1){J[699344]=0;aa(5153,g|0,e|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[f+12>>2];J[f+12>>2]=0;if(!b)break h;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g= +J[699344];J[699344]=0;if((g|0)!=1){if(e)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break a}e=Z()|0;zc(f+12|0);break g}b=J[f+20>>2];if(!b)break e;e=J[J[b>>2]+48>>2];J[699344]=0;h=ha(e|0,b|0,0,f+12|0,d|0)|0;b=J[699344];J[699344]=0;i:{j:{k:{l:{m:{n:{if((b|0)!=1){e=J[f+20>>2];b=J[f+12>>2];if((b|0)<=0)break j;J[c>>2]=J[a+8>>2];a=J[a+12>>2];J[699344]=0;d=f+8|0;ca(5638,d|0,e|0,a+b|0);a=J[699344];J[699344]=0;if((a|0)==1)break n;J[699344]=0;aa(5153,f+20|0,d|0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break m;a=J[f+8>>2];J[f+8>>2]=0;o:{if(!a)break o;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break o;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[f+20>>2];if(!a)break e;b=J[J[a>>2]+28>>2];J[699344]=0;d=b;b=f+8|0;ca(d|0,b|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break l;J[699344]=0;aa(5153,f+20|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;a=J[f+8>>2];J[f+8>>2]=0;p:{if(!a)break p;J[699344]=0; +b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(b)break p;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f}e=J[f+20>>2];if(!e)break e;J[c>>2]=J[c>>2]-J[e+8>>2];J[f+20>>2]=0;break i}e=Z()|0;break g}e=Z()|0;break g}e=Z()|0;zc(f+8|0);break g}e=Z()|0;break g}e=Z()|0;zc(f+8|0);break g}J[f+20>>2]=0;if(!e)break e}J[699344]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break e;J[699344]=0;$(5147,e|0);a=J[699344];J[699344]=0;if((a|0)!= +1)break e}break a}e=Z()|0}zc(f+20|0);ba(e|0);B()}break a}fc=f+32|0;return h|0}ea(0)|0;Bc();B()}function T1a(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;h=fc-16|0;fc=h;d=J[a+8>>2];J[h+8>>2]=d;k=J[a+4>>2];e=J[k+8>>2];l=e+48|0;m=J[a+12>>2];j=J[a+16>>2];a:{b:{if(!J[e+60>>2]){if(!(K[k+36|0]!=1|d>>>0>=m>>>0|M[a+20>>2]<=j>>>0)){H[k+36|0]=0;f=K[k+37|0];break b}c=0;break a}c=1;break a}c=2}while(1){c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:switch(c|0){case 0:if(d>>>0>=m>>>0)break f; +if(M[a+20>>2]<=j>>>0)break g;p:{q:{r:{while(1){c=d+1|0;s:{t:{u:{f=K[d|0];switch(f-10|0){case 0:case 3:break n;case 17:break p;case 5:break t;case 4:break u;default:break m}}if(!K[e+49|0])break q;H[e+68|0]=1;H[e+52|0]=1;break s}H[e+52|0]=0;if(K[e+68|0])break r}d=c;if((c|0)!=(m|0))continue;break}d=m;break f}H[e+68|0]=0;J[b>>2]=18;b=J[a+4>>2];H[b+37|0]=15;J[b+256>>2]=2;H[J[a+4>>2]+36|0]=1;J[a+8>>2]=c;break e}J[h+8>>2]=c;H[e+68|0]=0;f=14;g=65535;break i}J[h+8>>2]=d;k=J[a+4>>2];c=1;continue;case 1:break o; +default:break l}c=K[k+36|0];ZC(k,h+8|0,m,3,b);g=J[b>>2];v:{w:{if(J[e+60>>2])break w;if((g|0)<=0){if(!K[e+68|0])break w;J[b>>2]=18;b=J[a+4>>2];J[b+256>>2]=2;H[b+36|0]=c+(J[h+8>>2]-d|0)}d=J[h+8>>2];break v}d=J[h+8>>2];if((g|0)<=0)break c}J[a+8>>2]=d;J[a+16>>2]=j;H[e+68|0]=0;break d}J[h+8>>2]=c;H[l+4|0]=0;H[l+5|0]=0;H[l|0]=0;H[l+1|0]=0;H[l+2|0]=0;H[l+3|0]=0;H[e+68|0]=0;d=c;g=f;break h}d=f<<24>>24;J[h+8>>2]=c;H[e+68|0]=0;if(!K[e+52|0])break j;if(c>>>0>=m>>>0)break k;d=c;c=2;continue}i=K[d|0];c=i-33|0; +x:{if(!((f+223&254)>>>0>93|(c&255)>>>0>93)){d=d+1|0;J[h+8>>2]=d;c=H[H[e+52|0]+l|0];y:{if((c|0)>=32){n=J[e+12>>2];H[h+15|0]=i;g=c+96|0;o=3;c=f;break y}o=2;n=J[(c<<2)+e>>2];g=f;c=i}H[h+14|0]=c;H[h+13|0]=g;f=i|f<<8;g=Xn(n,h+13|0,o);break x}g=65535;if((c&255)>>>0<94|(1<>>0<=31:0))break x;d=d+1|0;J[h+8>>2]=d;f=i|f<<8|65536}if(H[e+52|0]<2)break h;H[e+52|0]=K[e+53|0];break h}H[J[a+4>>2]+37|0]=d;H[J[a+4>>2]+36|0]=1;d=c;break f}g=(d|0)<0?65535:f}d=c}if(g>>>0<=65533){c=J[a+24>>2];if(c)J[c+(j- +J[a+16>>2]<<1)>>2]=((f>>>0<256?-1:-2)+d|0)-J[a+8>>2];I[j>>1]=g;j=j+2|0;break c}if(g>>>0>=65536){I[j>>1]=(g+67043328>>>10|0)-10240;z:{A:{B:{n=J[a+24>>2];C:{if(!n){c=j+2|0;if(c>>>0>2])break B;break C}o=J[a+16>>2];i=((f>>>0<256?-1:-2)+d|0)-J[a+8>>2]|0;J[n+(j-o<<1)>>2]=i;c=j+2|0;if(c>>>0>2])break A}j=c;i=J[a+4>>2];c=H[i+65|0];H[i+65|0]=c+1;I[(i+(c<<1)|0)+116>>1]=g&1023|56320;break c}I[c>>1]=g&1023|56320;break z}I[c>>1]=g&1023|56320;J[n+(c-o<<1)>>2]=i}j=j+4|0;break c}c=J[a+4>>2];if(f>>> +0>=256){H[c+38|0]=f;f=f>>>8|0;i=2}else i=1;H[c+36|0]=i;H[c+37|0]=f;J[b>>2]=(g|0)==65534?10:12;break f}J[b>>2]=15}J[a+8>>2]=d}J[a+16>>2]=j}fc=h+16|0;return}c=0;continue}}function Y4(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=(c-b|0)/144|0;d=J[a+8>>2];e=J[a>>2];if(h>>>0<=(d-e|0)/144>>>0){g=(J[a+4>>2]-e|0)/144|0;d=P(g,144)+b|0;i=g>>>0>>0?d:c;a:{if((i|0)==(b|0)){f=e;break a}f=e;while(1){qM(f,b);f=f+144|0;b=b+144|0;if((i|0)!=(b|0))continue;break}}b=J[a+4>>2];if(g>>>0>>0){if((c|0)!=(d|0))while(1){O[b>> +3]=O[d>>3];O[b+8>>3]=O[d+8>>3];O[b+16>>3]=O[d+16>>3];O[b+24>>3]=O[d+24>>3];O[b+32>>3]=O[d+32>>3];O[b+40>>3]=O[d+40>>3];e=J[d+52>>2];J[b+48>>2]=J[d+48>>2];J[b+52>>2]=e;e=J[d+60>>2];J[b+56>>2]=J[d+56>>2];J[b+60>>2]=e;J[b+64>>2]=J[d+64>>2];e=J[d+68>>2];J[b+68>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;O[b+72>>3]=O[d+72>>3];O[b+80>>3]=O[d+80>>3];O[b+88>>3]=O[d+88>>3];O[b+96>>3]=O[d+96>>3];O[b+104>>3]=O[d+104>>3];O[b+112>>3]=O[d+112>>3];e=J[d+124>>2];J[b+120>>2]=J[d+120>>2];J[b+124>>2]=e;e=J[d+132>>2];J[b+128>> +2]=J[d+128>>2];J[b+132>>2]=e;J[b+136>>2]=J[d+136>>2];e=J[d+140>>2];J[b+140>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;b=b+144|0;d=d+144|0;if((d|0)!=(c|0))continue;break}J[a+4>>2]=b;return}f=e+P((f-e|0)/144|0,144)|0;if((f|0)!=(b|0))while(1){c=b;b=b-144|0;e=J[b+140>>2];b:{if(!e)break b;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break b;kc[J[J[e>>2]+8>>2]](e);Gc(e)}c=J[c-76>>2];c:{if(!c)break c;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break c;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b|0)!=(f|0))continue;break}J[a+4>>2]=f;return}if(e){f=e; +d=J[a+4>>2];if((e|0)!=(d|0)){while(1){f=d;d=d-144|0;g=J[d+140>>2];d:{if(!g)break d;i=J[g+4>>2];J[g+4>>2]=i-1;if(i)break d;kc[J[J[g>>2]+8>>2]](g);Gc(g)}f=J[f-76>>2];e:{if(!f)break e;g=J[f+4>>2];J[f+4>>2]=g-1;if(g)break e;kc[J[J[f>>2]+8>>2]](f);Gc(f)}if((d|0)!=(e|0))continue;break}f=J[a>>2]}J[a+4>>2]=e;uc(f);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}f:{if(h>>>0>=29826162)break f;e=(d|0)/144|0;f=e<<1;e=e>>>0>=14913080?29826161:f>>>0>h>>>0?f:h;if(e>>>0>=29826162)break f;e=P(e,144);d=vc(e);J[a+4>>2]=d;J[a>> +2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0))while(1){O[d>>3]=O[b>>3];O[d+8>>3]=O[b+8>>3];O[d+16>>3]=O[b+16>>3];O[d+24>>3]=O[b+24>>3];O[d+32>>3]=O[b+32>>3];O[d+40>>3]=O[b+40>>3];e=J[b+52>>2];J[d+48>>2]=J[b+48>>2];J[d+52>>2]=e;e=J[b+60>>2];J[d+56>>2]=J[b+56>>2];J[d+60>>2]=e;J[d+64>>2]=J[b+64>>2];e=J[b+68>>2];J[d+68>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;O[d+72>>3]=O[b+72>>3];O[d+80>>3]=O[b+80>>3];O[d+88>>3]=O[b+88>>3];O[d+96>>3]=O[b+96>>3];O[d+104>>3]=O[b+104>>3];O[d+112>>3]=O[b+112>>3];e=J[b+124>>2];J[d+120>>2]= +J[b+120>>2];J[d+124>>2]=e;e=J[b+132>>2];J[d+128>>2]=J[b+128>>2];J[d+132>>2]=e;J[d+136>>2]=J[b+136>>2];e=J[b+140>>2];J[d+140>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;d=d+144|0;b=b+144|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}Fg(a);B()}function V2a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=fc-480|0;fc=D;s=J[a+332>>2];b=J[b+84>>2];a=D;while(1){m=J[b+160>>2];n=I[c+80>>1];h=J[b+32>>2];g=I[c+16>> +1];k=J[b+224>>2];l=I[c+112>>1];q=J[b+96>>2];i=I[c+48>>1];j=P(I[c>>1],J[b>>2])<<13|1024;r=P(J[b+192>>2],I[c+96>>1]);t=j+P(r,-11586)|0;p=P(J[b+64>>2],I[c+32>>1]);o=P(J[b+128>>2],I[c+64>>1]);f=p-o|0;J[a+224>>2]=t+P(f,-11584)>>11;y=P(m,n);m=P(y,10033);h=P(h,g);g=P(k,l);z=h-g|0;n=m+P(z,11522)|0;l=j+P(r,9373)|0;u=P(f,374);k=p+o|0;o=P(k,10958);v=l+(u+o|0)|0;q=P(i,q);i=P(q,-11018);w=n+(P(g,20131)-i|0)|0;J[a+448>>2]=v-w>>11;J[a>>2]=v+w>>11;r=j+P(r,-3580)|0;v=P(f,2896);w=P(k,6476);j=r+(v+w|0)|0;A=q-g|0;B=P(A+ +h|0,6810);C=B+P(h,4209)|0;J[a+416>>2]=j-C>>11;J[a+32>>2]=j+C>>11;j=t+P(f,5792)|0;t=P(z-y|0,10033);J[a+384>>2]=j-t>>11;J[a+64>>2]=j+t>>11;f=P(f,-3271);j=P(k,4482);k=l+(f-j|0)|0;i=(i+m|0)+P(g,-7121)|0;g=P(h+g|0,4712);i=i+g|0;J[a+288>>2]=k-i>>11;J[a+160>>2]=k+i>>11;p=P(p,11795);k=r+(u+(p-o|0)|0)|0;q=P(q,-6810);g=g+((q+P(h,3897)|0)-m|0)|0;J[a+352>>2]=k-g>>11;J[a+96>>2]=g+k>>11;g=v+(l-w|0)|0;m=B+P(A,-17828)|0;J[a+320>>2]=g-m>>11;J[a+128>>2]=g+m>>11;f=r+(f+(j-p|0)|0)|0;h=n+(q+P(h,-9113)|0)|0;J[a+256>>2]= +f-h>>11;J[a+192>>2]=h+f>>11;a=a+4|0;b=b+4|0;c=c+2|0;x=x+1|0;if((x|0)!=8)continue;break}a=s+128|0;b=D;x=0;while(1){o=J[b+20>>2];p=P(o,10033);h=J[b+4>>2];f=J[b+28>>2];i=h-f|0;r=p+P(i,11522)|0;c=J[(x<<2)+d>>2]+e|0;j=J[b+12>>2];t=P(j,-11018);s=r+(P(f,20131)-t|0)|0;l=(J[b>>2]<<13)+131072|0;k=J[b+24>>2];q=l+P(k,9373)|0;m=J[b+8>>2];n=J[b+16>>2];g=m-n|0;z=P(g,374);n=m+n|0;y=P(n,10958);u=q+(z+y|0)|0;H[c|0]=K[a+(s+u>>>18&1023)|0];H[c+14|0]=K[a+(u-s>>>18&1023)|0];u=j-f|0;v=P(u+h|0,6810);w=v+P(h,4209)|0;s=l+ +P(k,-3580)|0;A=P(g,2896);B=P(n,6476);C=s+(A+B|0)|0;H[c+1|0]=K[a+(w+C>>>18&1023)|0];H[c+13|0]=K[a+(C-w>>>18&1023)|0];i=P(i-o|0,10033);k=l+P(k,-11586)|0;l=k+P(g,5792)|0;H[c+2|0]=K[a+(i+l>>>18&1023)|0];H[c+12|0]=K[a+(l-i>>>18&1023)|0];l=P(h+f|0,4712);j=P(j,-6810);i=l+((j+P(h,3897)|0)-p|0)|0;m=P(m,11795);o=s+(z+(m-y|0)|0)|0;H[c+3|0]=K[a+(i+o>>>18&1023)|0];H[c+11|0]=K[a+(o-i>>>18&1023)|0];i=v+P(u,-17828)|0;o=A+(q-B|0)|0;H[c+4|0]=K[a+(i+o>>>18&1023)|0];H[c+10|0]=K[a+(o-i>>>18&1023)|0];f=l+((p+t|0)+P(f, +-7121)|0)|0;p=P(g,-3271);n=P(n,4482);l=q+(p-n|0)|0;H[c+5|0]=K[a+(f+l>>>18&1023)|0];H[c+9|0]=K[a+(l-f>>>18&1023)|0];h=r+(j+P(h,-9113)|0)|0;f=s+(p+(n-m|0)|0)|0;H[c+6|0]=K[a+(h+f>>>18&1023)|0];H[c+8|0]=K[a+(f-h>>>18&1023)|0];H[c+7|0]=K[a+(k+P(g,268423872)>>>18&1023)|0];b=b+32|0;x=x+1|0;if((x|0)!=15)continue;break}fc=D+480|0}function A2(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;if((c|0)>=0){j=L[b+2>>1];g=j?4:3;e=j?7:138;i=a+5817|0;h=-1;while(1){o=n;k=j;n=n+1|0;j=L[((n<<2)+b|0)+2>>1]; +d=f+1|0;a:{if(!((k|0)!=(j|0)|(e|0)<=(d|0))){f=d;break a}b:{if((d|0)<(g|0)){f=(k<<2)+a|0;g=f+2686|0;h=f+2684|0;f=J[a+5820>>2];while(1){e=L[g>>1];l=L[h>>1];m=L[a+5816>>1]|l<>1]=m;c:{if((16-e|0)<(f|0)){f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=m;f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=K[i|0];f=J[a+5820>>2];I[a+5816>>1]=l>>>16-f;f=(e+f|0)-16|0;break c}f=e+f|0}J[a+5820>>2]=f;d=d-1|0;if(d)continue;break}break b}e=J[a+5820>>2];m=a;d:{if(k){e:{if((h|0)==(k|0)){f=d;break e}d=(k<<2)+a|0; +g=L[d+2686>>1];h=L[d+2684>>1];l=L[a+5816>>1]|h<>1]=l;f:{if((16-g|0)<(e|0)){e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=l;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=K[i|0];e=J[a+5820>>2];I[a+5816>>1]=h>>>16-e;d=(e+g|0)-16|0;break f}d=e+g|0}e=d;J[a+5820>>2]=e}h=L[a+2748>>1];d=L[a+5816>>1]|h<>1];g:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+g|0)-16|0;d=h>>>16-d|0; +break g}e=e+g|0}J[a+5820>>2]=e;f=f+65533|0;if((e|0)>=15){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-14|0;break d}I[a+5816>>1]=f<>1];if((f|0)<=9){h=L[a+2752>>1];d=d|h<>1];h:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+ +g|0)-16|0;d=h>>>16-d|0;break h}e=e+g|0}J[a+5820>>2]=e;f=f+65534|0;if((e|0)>=14){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-13|0;break d}I[a+5816>>1]=f<>1];d=d|h<>1];i:{if((16-g|0)<(e|0)){I[a+5816>>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=J[a+5820>>2];e=(d+g|0)- +16|0;d=h>>>16-d|0;break i}e=e+g|0}J[a+5820>>2]=e;f=f+65526|0;if((e|0)>=10){d=f<>1]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[i|0];d=f&65535;f=J[a+5820>>2];I[a+5816>>1]=d>>>16-f;f=f-9|0;break d}I[a+5816>>1]=f<>2]=f}f=0;j:{if(!j){e=138;d=3;break j}d=(k|0)==(j|0);e=d?6:7;d=d?3:4}g=d;h=k}if((c|0)!=(o|0))continue;break}}}function Q8(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,z=0,A=0;v=fc-272|0;fc=v;s=J[b+4>>2];g=J[b+8>>2];J[a+52>>2]=-2147483648;J[a+56>>2]=0;J[a+48>>2]=g;J[a+44>>2]=s;y=J[b+52>>2];e=J[b+24>>2];l=J[b+28>>2];x=J[b+44>>2];J[c>>2]=s;J[d>>2]=g;a:{if((e|0)<2|(x|0)<=0)break a;f=e-1|0;m=f&3;i=I[l+12>>1];b:{if(e-2>>>0<3){e=1;j=i;break b}w=f&-4;e=1;j=i;while(1){f=l+P(e,40)|0;k=I[f+12>>1];j=(j|0)>(k|0)?j:k;n=I[f+52>>1];j=(j|0)>(n|0)?j:n;p=I[f+92>>1];j=(j|0)>(p|0)?j:p;f=I[f+132>>1];j=(f|0)<(j|0)?j:f;i=(i|0)<(k|0)?i:k;i=(i|0)<(n|0)?i:n;i=(i|0)<(p|0)? +i:p;i=(f|0)>(i|0)?i:f;e=e+4|0;h=h+4|0;if((w|0)!=(h|0))continue;break}}if(m){f=0;while(1){h=I[(l+P(e,40)|0)+12>>1];j=(h|0)<(j|0)?j:h;i=(h|0)>(i|0)?i:h;e=e+1|0;f=f+1|0;if((m|0)!=(f|0))continue;break}}if((i|0)>=(j|0))break a;z=a,A=Wc(i,s)+g|0,J[z>>2]=A;e=Wc(j,s)+g|0;J[a+4>>2]=e;g=e&-32;J[a+24>>2]=g;f=J[a>>2];k=f&-32;J[a+16>>2]=k;J[a+8>>2]=f&-64;n=g+32|0;J[a+28>>2]=n;l=k+32|0;J[a+20>>2]=l;J[a+12>>2]=e+63&-64;if((e|0)<(l|0)){J[a+20>>2]=e;l=e}if((f|0)>(g|0)){J[a+24>>2]=f;g=f}h=e-f|0;J[a+32>>2]=h;if((h| +0)>=65)e=g-l|0;else{J[a+24>>2]=e;J[a+20>>2]=f;e=h}J[a+36>>2]=e;f=n-k|0;J[a+40>>2]=f;l=(h|0)>=129?16:(h|0)<97?4:8;g=h-l|0;if((g|0)>(e|0)){J[a+36>>2]=g;e=g}g=h+l|0;if((g|0)<(f|0)){J[a+40>>2]=g;f=g}g=(P(h,3)|0)/4|0;if((g|0)>(e|0)){J[a+36>>2]=g;e=g}h=(P(h,5)|0)/4|0;if((h|0)<(f|0)){J[a+40>>2]=h;f=h}if((e|0)<=(f|0)){w=j-i|0;while(1){l=e;q=J[a>>2];h=J[a+32>>2];f=q+(h-e|0)|0;g=J[a+4>>2];c:{d:{if((e|0)>=(h|0)){e=J[a+16>>2];if((f|0)>=(e|0))break d;f=(g-f|0)+e|0;break c}e=J[a+20>>2];if((f|0)<=(e|0))break d; +f=(g-f|0)+e|0;break c}e=f;f=g}n=Cd(l-h|0,w)+s|0;u=Wc(i,n);p=Ac(v,0,260);h=J[a+24>>2];k=f-e|0;m=J[a+16>>2];o=(h|0)>(k+m|0)?h-k|0:m;m=J[a+8>>2];h=o-m|0;e:{if((h|0)<0)break e;t=o;o=J[a+28>>2];r=J[a+20>>2];k=(o|0)<(k+r|0)?o-k|0:r;if((t|0)>(k|0))break e;k=k-m|0;if((k|0)>64)break e;o=f-g|0;f=o>>31;q=e-q|0;g=q>>31;q=P((f^o)-f+((g^q)-g)|0,10);u=e-u|0;o=e-m|0;m=(u-o|0)+h|0;f=0;while(1){e=P(f,44)+y|0;r=I[e+8>>1]-I[e+6>>1]|0;g=Wc(I[e+2>>1],n)+m|0;e=h;while(1){t=p+(e<<2)|0;J[t>>2]=J[t>>2]+P(r,J[((g&63)<<2)+251744>> +2]);g=g+1|0;t=(e|0)<(k|0);e=e+1|0;if(t)continue;break}f=f+1|0;if((x|0)!=(f|0))continue;break}f=J[a+52>>2];while(1){r=h-o|0;m=r+q|0;g=h;e=J[p+(h<<2)>>2];if(!((e|0)<=(f|0)&((e|0)!=(f|0)|(m|0)>=J[a+56>>2]))){J[a+56>>2]=m;J[a+52>>2]=e;J[a+44>>2]=n;J[a+48>>2]=r+u;f=e}h=g+1|0;if((g|0)<(k|0))continue;break}}e=l+1|0;if((l|0)>2])continue;break}}e=J[a+48>>2];a=J[a+44>>2];f=a-s|0;z=b,A=Wc(i,f)+e|0,J[z+2752>>2]=A;z=b,A=Wc(j,f)+e|0,J[z+2756>>2]=A;J[c>>2]=a;J[d>>2]=e}fc=v+272|0}function MEa(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;i=fc-16|0;fc=i;j=Dc(40);J[j>>2]=0;J[i+12>>2]=0;J[699344]=0;g=ga(493,1,0,0)|0;e=J[699344];J[699344]=0;a:{b:{if((e|0)==1)break b;k=4;f=-1;c:{d:{if(!e)break d;h=J[699345];if(!h)break d;f=Pc(J[e>>2],j,4);if(!f)break c;gc=h}e=gc;e:{f:{if((f|0)==1)break f;J[i+8>>2]=g;e=J[i+8>>2];g=0;if(!e)break e;J[e+700>>2]=1E6;J[J[i+8>>2]+704>>2]=1E6;J[699344]=0;g=J[i+8>>2];if(g)J[g+156>>2]=88;else g=0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;g:{if(!e)break g; +h=J[699345];if(!h)break g;f=Pc(J[e>>2],j,4);if(!f)break c;gc=h}e=gc;if((f|0)==1)break f;j=Hf(g,1,j,4);k=gc;e=0}while(1){if(e){J[699344]=0;ka(495);e=J[699344];J[699344]=0;if((e|0)==1)break b;h:{if(!e)break h;h=J[699345];if(!h)break h;if(!Pc(J[e>>2],j,k))break c;gc=h}e=gc;continue}J[699344]=0;g=J[i+8>>2];if(g){J[g+676>>2]=0;J[g+672>>2]=0;J[g+668>>2]=0}e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;i:{if(!e)break i;h=J[699345];if(!h)break i;f=Pc(J[e>>2],j,k);if(!f)break c;gc=h}e=gc;if((f|0)==1)continue; +J[699344]=0;g=J[i+8>>2];if(g){J[g+164>>2]=d;J[g+160>>2]=c;J[g+168>>2]=b}e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;j:{if(!e)break j;h=J[699345];if(!h)break j;f=Pc(J[e>>2],j,k);if(!f)break c;gc=h}e=gc;if((f|0)==1)continue;J[699344]=0;g=aa(497,J[i+8>>2],a|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;k:{if(!e)break k;h=J[699345];if(!h)break k;f=Pc(J[e>>2],j,k);if(!f)break c;gc=h}e=gc;if((f|0)==1)continue;if(!g)J[i+12>>2]=1;J[J[i+8>>2]+272>>2]=8192;l:{if(J[i+12>>2])break l;g=J[i+8>>2]; +e=J[J[i+8>>2]+272>>2];J[699344]=0;g=aa(498,g|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;m:{if(!e)break m;h=J[699345];if(!h)break m;f=Pc(J[e>>2],j,k);if(!f)break c;gc=h}e=gc;if((f|0)==1)continue;J[J[i+8>>2]+268>>2]=g;if(J[J[i+8>>2]+268>>2])break l;J[i+12>>2]=1}g=J[i+8>>2];if(J[i+12>>2]){e=J[g+268>>2];J[699344]=0;da(503,g|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;n:{if(!e)break n;h=J[699345];if(!h)break n;f=Pc(J[e>>2],j,k);if(!f)break c;gc=h}e=gc;if((f|0)==1)continue;J[J[i+ +8>>2]+268>>2]=0;J[699344]=0;ca(504,J[i+8>>2],0,0);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;o:{if(!e)break o;h=J[699345];if(!h)break o;f=Pc(J[e>>2],j,k);if(!f)break c;gc=h}e=gc;if((f|0)==1)continue;g=0;break e}J[699344]=0;ia(134,g|0,0,0,0);e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;p:{if(!e)break p;h=J[699345];if(!h)break p;f=Pc(J[e>>2],j,k);if(!f)break c;gc=h}e=gc;if((f|0)==1)continue;break}g=J[i+8>>2]}uc(j);fc=i+16|0;break a}uc(j);nf(e,h);B()}a=Z()|0;uc(j);ba(a|0);B()}return g|0}function NY(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,r=0,s=0;p=fc-16|0;fc=p;n=J[a+24>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{d=J[b+12>>2];h=K[d+18|0];if(h){q=J[d+12>>2];s=J[d>>2];o=J[d+4>>2];i=J[d+8>>2];d=0;while(1){if(J[(P(L[(e<<2)+q>>1],52)+n|0)+44>>2]){d=d+1|0;e=d&65535;if(h>>>0>e>>>0)continue;break j}break}J[p>>2]=e;Nc(c,1,2357890,p);a=0;break f}k=ef(P(h,52));if(!k)break i;break g}k=ef(P(h,52));if(k)break h}Nc(c,1,2357994,0);a=0;break f}if(!h)break g;while(1){d=(f<<2)+q|0;g=L[d>>1];e=K[d+ +3|0];k:{if(!K[d+2|0]){if(!e)break k;fa(2358096,2354795,1079,2371303);B()}if((e|0)!=(f|0))break e}e=P(g,52)+n|0;g=J[e+4>>2];d=P(f,52)+k|0;J[d>>2]=J[e>>2];J[d+4>>2]=g;J[d+48>>2]=J[e+48>>2];g=J[e+44>>2];J[d+40>>2]=J[e+40>>2];J[d+44>>2]=g;g=J[e+36>>2];J[d+32>>2]=J[e+32>>2];J[d+36>>2]=g;g=J[e+28>>2];J[d+24>>2]=J[e+24>>2];J[d+28>>2]=g;g=J[e+20>>2];J[d+16>>2]=J[e+16>>2];J[d+20>>2]=g;g=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=g;e=ul(P(J[e+8>>2],J[e+12>>2])<<2);J[d+44>>2]=e;if(!e){if(j&65535)while(1){j=j- +1|0;a=j&65535;uc(J[(P(a,52)+k|0)+44>>2]);if(a)continue;break}uc(k);Nc(c,1,2357994,0);a=0;break f}J[d+24>>2]=K[f+i|0];J[d+32>>2]=K[f+o|0];j=j+1|0;f=j&65535;if(h>>>0>f>>>0)continue;break}if(!h)break g;j=L[J[b+12>>2]+16>>1];o=j-1|0;d=0;while(1){i=d<<2;c=i+q|0;b=J[(P(L[c>>1],52)+n|0)+44>>2];if(!b)break d;f=K[c+3|0];e=P(f,52)+k|0;e=P(J[e+12>>2],J[e+8>>2]);l:{if(!K[c+2|0]){c=J[(P(d,52)+k|0)+44>>2];if(!c)break c;if(!e)break l;i=0;d=0;if(e>>>0>=4){l=e&-4;g=0;while(1){f=d<<2;J[f+c>>2]=J[b+f>>2];m=f|4;J[m+ +c>>2]=J[b+m>>2];m=f|8;J[m+c>>2]=J[b+m>>2];f=f|12;J[f+c>>2]=J[b+f>>2];d=d+4|0;g=g+4|0;if((l|0)!=(g|0))continue;break}}e=e&3;if(!e)break l;while(1){f=d<<2;J[f+c>>2]=J[b+f>>2];d=d+1|0;i=i+1|0;if((e|0)!=(i|0))continue;break}break l}if((d|0)!=(f|0))break b;f=J[(P(d,52)+k|0)+44>>2];if(!f)break a;if(!e)break l;i=i+s|0;d=0;if((e|0)!=1){m=e&-2;c=0;while(1){l=d<<2;g=J[l+b>>2];J[f+l>>2]=J[i+(P((g|0)>=0?(g|0)<(j|0)?g:o:0,h)<<2)>>2];l=l|4;g=J[l+b>>2];J[f+l>>2]=J[i+(P((g|0)>=0?(g|0)<(j|0)?g:o:0,h)<<2)>>2];d=d+ +2|0;c=c+2|0;if((m|0)!=(c|0))continue;break}}if(!(e&1))break l;c=d<<2;b=J[c+b>>2];J[c+f>>2]=J[i+(P((b|0)>=0?(b|0)<(j|0)?b:o:0,h)<<2)>>2]}r=r+1|0;d=r&65535;if(h>>>0>d>>>0)continue;break}}b=J[a+16>>2];if(b){e=0;d=0;while(1){c=J[(P(e,52)+n|0)+44>>2];if(c)uc(c);d=d+1|0;e=d&65535;if(b>>>0>e>>>0)continue;break}}uc(n);J[a+16>>2]=h;J[a+24>>2]=k;a=1}fc=p+16|0;return a}fa(2358140,2354795,1082,2371303);B()}fa(2358221,2354795,1110,2371303);B()}fa(2358250,2354795,1116,2371303);B()}fa(2358140,2354795,1121,2371303); +B()}fa(2358250,2354795,1123,2371303);B()}function L_a(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;h=fc-48|0;fc=h;a:{if(!a)break a;d=J[a+52>>2];if(!d)break a;g=J[d+16>>2];if(!g){b=GC(a,b,c);if(b){d=J[a+52>>2];J[d+16>>2]=b;J[d+12>>2]=b;J[b+20>>2]=d;J[b+32>>2]=J[d+32>>2];J[a+264>>2]=c+1;J[a+260>>2]=c;break a}J[a+84>>2]=2;c=J[a>>2];b=0;b:{if(!c)break b;b=0;if(J[c+108>>2]!=-554844497)break b;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[h+4>>2]=0;J[h>>2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0, +4008,h);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}c:{d:{if(!(J[g+4>>2]!=3|J[g+8>>2]!=774748)){d=g+44|0;e=J[g+40>>2];f=J[a+264>>2];if(f){e:{if((d|0)==(e|0)){d=e;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}d=0;f=f-e|0;f:{if((f|0)<0)break f;i=kc[J[663198]](f+1|0)|0;if(!i){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break f}d=xc(i,e,f);H[f+d|0]=0}J[g+40>>2]=d;J[e>>2]=0;break e}if((f|0)!=(J[a+260>>2]+1|0)){d=e;break e}g:{if(!e)break g;f=J[a+296>>2];while(1){if(!f)break g;d=J[f+16>>2];if(d)while(1){if(e>>> +0<=M[d+4>>2]&e>>>0>=d+20>>>0)break g;d=J[d>>2];if(d)continue;break}f=J[f+20>>2];if(f)continue;break}d=e;break e}d=ff(e);J[g+40>>2]=d}if(!d){J[a+84>>2]=2;c=J[a>>2];b=0;h:{if(!c)break h;b=0;if(J[c+108>>2]!=-554844497)break h;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[h+20>>2]=0;J[h+16>>2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0,21133,h+16|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}e=J[a+260>>2];f=e+c|0;if(!(K[a+362|0]&8|f>>>0<15000001)){Tr(a,14532);break a}i:{if((c^-1)>>>0>=e>>>0){i=J[a+264>> +2];j=i+c|0;if((j|0)>=0)break i}J[a+84>>2]=2;c=J[a>>2];b=0;j:{if(!c)break j;b=0;if(J[c+108>>2]!=-554844497)break j;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[h+36>>2]=0;J[h+32>>2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0,15733,h+32|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}if((f|0)>=(i|0)){e=j<<1;d=kc[J[663200]](d,e)|0;if(!d){Tr(a,4008);break a}J[a+264>>2]=e;J[g+40>>2]=d;e=J[a+260>>2]}xc(d+e|0,b,c);b=a;a=J[a+260>>2]+c|0;J[b+260>>2]=a;H[a+J[g+40>>2]|0]=0;break a}if((d|0)==(e|0))break d;d=J[g+ +32>>2];k:{if(!d)break k;f=J[d+80>>2];if(!f)break k;if(!e)break d;while(1){d=J[f+16>>2];if(d)while(1){if(e>>>0<=M[d+4>>2]&e>>>0>=d+20>>>0)break d;d=J[d>>2];if(d)continue;break}f=J[f+20>>2];if(f)continue;break}}b=ZK(e,b,c);break c}b=GC(a,b,c);if(!b)break a;dh(J[a+52>>2],b);if(!J[J[a+52>>2]+12>>2])break a;J[a+260>>2]=c;J[a+264>>2]=c+1;break a}b=YK(e,b,c)}J[g+44>>2]=0;J[g+40>>2]=b;if(!b)Tr(a,4008);if(!J[J[a+52>>2]+12>>2])break a;c=J[g+40>>2];l:{if(!c){b=0;break l}b=0;if(!K[c|0])break l;while(1){b=b+1| +0;d=K[c+1|0];c=c+1|0;if(d)continue;break}}J[a+260>>2]=b;J[a+264>>2]=b+1}fc=h+48|0}function Iua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=fc-32|0;fc=e;J[e+16>>2]=0;f=J[a+12>>2];g=uA(e+20|0,1,2393244);if(f){f=b+f|0;while(1){d=f;f=d+1|0;if(K[d|0]==32)continue;break}}h=Bv(d,e+16|0);a:{b:{d=J[g>>2];if(!d)break b;c:{d:{if(!J[d+8>>2]){J[g>>2]=0;break d}d=J[d+12>>2];f=J[g+8>>2];J[699344]=0;aa(5642,f|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;d=J[g>>2];J[g>>2]=0;if(!d)break b}J[699344]= +0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break b;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break b}break a}break a}e:{d=J[e+16>>2];if(d){J[c>>2]=d-J[a+12>>2];break e}J[c>>2]=-1;f=e+20|0;vA(f,d,J[a+12>>2]+b|0);b=J[e+20>>2];if(!b)break e;d=J[J[b>>2]+24>>2];J[699344]=0;g=d;d=e+12|0;ca(g|0,d|0,b|0,2);b=J[699344];J[699344]=0;f:{g:{if((b|0)!=1){J[699344]=0;aa(5153,f|0,d|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break h; +J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break a}d=Z()|0;zc(e+12|0);break g}b=J[e+20>>2];if(!b)break e;d=J[J[b>>2]+52>>2];J[699344]=0;h=+Da(d|0,b|0,0,e+12|0);b=J[699344];J[699344]=0;i:{j:{k:{l:{m:{n:{if((b|0)!=1){d=J[e+20>>2];b=J[e+12>>2];if((b|0)<0)break j;J[c>>2]=J[a+8>>2];a=J[a+12>>2];J[699344]=0;f=e+8|0;ca(5638,f|0,d|0,a+b|0);a=J[699344];J[699344]=0;if((a|0)==1)break n;J[699344]= +0;aa(5153,e+20|0,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break m;a=J[e+8>>2];J[e+8>>2]=0;o:{if(!a)break o;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break o;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[e+20>>2];if(!a)break e;b=J[J[a>>2]+28>>2];J[699344]=0;d=b;b=e+8|0;ca(d|0,b|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break l;J[699344]=0;aa(5153,e+20|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;a=J[e+8>>2];J[e+8>> +2]=0;p:{if(!a)break p;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(b)break p;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f}d=J[e+20>>2];if(!d)break e;J[c>>2]=J[c>>2]-J[d+8>>2];J[e+20>>2]=0;break i}d=Z()|0;break g}d=Z()|0;break g}d=Z()|0;zc(e+8|0);break g}d=Z()|0;break g}d=Z()|0;zc(e+8|0);break g}J[e+20>>2]=0;if(!d)break e}J[699344]=0;a=J[d+4>>2]-1|0;J[d+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break e;J[699344]=0;$(5147,d|0); +a=J[699344];J[699344]=0;if((a|0)!=1)break e}break a}d=Z()|0}zc(e+20|0);ba(d|0);B()}break a}fc=e+32|0;return+h}ea(0)|0;Bc();B()}function F9a(a){a=a|0;var b=0,c=0,d=0,e=0,f=Q(0),g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=0,p=0;e=fc-32|0;fc=e;J[e+20>>2]=0;J[e+12>>2]=0;J[e+16>>2]=0;H[e+28|0]=0;b=e+12|0;J[e+24>>2]=b;a:{b:{c:{c=J[a+216>>2];o=a+212|0;d=J[o>>2];a=c-d|0;p=(a|0)/12|0;if(p>>>0>=357913942){J[699344]=0;$(2358,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}J[699344]=0;a=_(4, +a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[e+16>>2]=a;J[e+12>>2]=a;J[699344]=0;J[e+20>>2]=a+P(p,12);b=ha(2265,e+20|0,d|0,c|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break a;b=Z()|0;J[e+16>>2]=a;break b}b=Z()|0}cn(e+24|0);ba(b|0);B()}J[e+16>>2]=b;a=J[e+12>>2];b=J[a+36>>2];h=N[b+28>>2];c=J[a>>2];f=N[c+28>>2];i=N[c+12>>2];d=J[a+12>>2];j=N[d+28>>2];k=N[b+12>>2];l=N[b+4>>2];m=N[d+4>>2];n=N[c+4>>2];g=Q(N[c+24>>2]+N[b>>2]);N[d+8>>2]=Q(Q(Q(Q(Q(Q(N[c+8>>2]+N[d>>2])*Q(6))-Q(N[c>>2]*Q(4)))-Q(g+ +g))+Q(Q(N[b+8>>2]+N[d+24>>2])*Q(3)))-N[b+24>>2])*Q(.1111111119389534);f=Q(f+l);N[d+12>>2]=Q(Q(Q(Q(Q(Q(i+m)*Q(6))-Q(n*Q(4)))-Q(f+f))+Q(Q(k+j)*Q(3)))-h)*Q(.1111111119389534);b=J[a+36>>2];h=N[b+20>>2];f=N[b+28>>2];c=J[a>>2];i=N[c+28>>2];d=J[a+12>>2];j=N[d+28>>2];k=N[c+20>>2];l=N[b+4>>2];m=N[d+4>>2];n=N[c+4>>2];g=Q(N[c>>2]+N[b+24>>2]);N[d+16>>2]=Q(Q(Q(Q(Q(Q(N[c+16>>2]+N[d+24>>2])*Q(6))-Q(N[c+24>>2]*Q(4)))-Q(g+g))+Q(Q(N[b+16>>2]+N[d>>2])*Q(3)))-N[b>>2])*Q(.1111111119389534);f=Q(n+f);N[d+20>>2]=Q(Q(Q(Q(Q(Q(k+ +j)*Q(6))-Q(i*Q(4)))-Q(f+f))+Q(Q(h+m)*Q(3)))-l)*Q(.1111111119389534);b=J[a>>2];h=N[b+28>>2];c=J[a+36>>2];f=N[c+28>>2];i=N[c+12>>2];d=J[a+24>>2];j=N[d+28>>2];k=N[b+12>>2];l=N[b+4>>2];m=N[d+4>>2];n=N[c+4>>2];g=Q(N[c+24>>2]+N[b>>2]);N[d+8>>2]=Q(Q(Q(Q(Q(Q(N[c+8>>2]+N[d>>2])*Q(6))-Q(N[c>>2]*Q(4)))-Q(g+g))+Q(Q(N[b+8>>2]+N[d+24>>2])*Q(3)))-N[b+24>>2])*Q(.1111111119389534);f=Q(f+l);N[d+12>>2]=Q(Q(Q(Q(Q(Q(i+m)*Q(6))-Q(n*Q(4)))-Q(f+f))+Q(Q(k+j)*Q(3)))-h)*Q(.1111111119389534);b=J[a>>2];h=N[b+20>>2];f=N[b+28>> +2];c=J[a+36>>2];i=N[c+28>>2];d=J[a+24>>2];j=N[d+28>>2];k=N[c+20>>2];l=N[b+4>>2];m=N[d+4>>2];n=N[c+4>>2];g=Q(N[c>>2]+N[b+24>>2]);N[d+16>>2]=Q(Q(Q(Q(Q(Q(N[c+16>>2]+N[d+24>>2])*Q(6))-Q(N[c+24>>2]*Q(4)))-Q(g+g))+Q(Q(N[b+16>>2]+N[d>>2])*Q(3)))-N[b>>2])*Q(.1111111119389534);f=Q(n+f);N[d+20>>2]=Q(Q(Q(Q(Q(Q(k+j)*Q(6))-Q(i*Q(4)))-Q(f+f))+Q(Q(h+m)*Q(3)))-l)*Q(.1111111119389534);d:{if((e+12|0)!=(o|0)){J[699344]=0;ca(2474,o|0,a|0,J[e+16>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break d}c=J[e+12>>2];if(c){b=J[e+ +16>>2];a=c;if((b|0)!=(c|0)){while(1){a=b-12|0;d=J[a>>2];if(d){J[b-8>>2]=d;uc(d)}b=a;if((c|0)!=(b|0))continue;break}a=J[e+12>>2]}J[e+16>>2]=c;uc(a)}fc=e+32|0;return}a=Z()|0;jj(e+12|0);ba(a|0);B()}function bhb(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;g=J[a+492>>2];i=J[b+16>>2];e=J[b+8>>2];kc[J[b+28>>2]](b);c=3;a=J[b>>2];a:{b:{if(a>>>0>=e>>>0)break b;a=K[a|0];c:{if(a-48>>>0<=9){a=kc[J[b+36>>2]](b)|0;J[b+144>>2]=a;if(J[b+12>>2])break a;if((a|0)<0)break b;f=a;a=J[b>>2];d=e-a>>2; +if((f|0)<=(d|0))break c;J[b+144>>2]=d;break c}if((a|0)!=60)break b;kc[J[b+32>>2]](b);if(J[b+12>>2])break a;kc[J[b+28>>2]](b);d=J[b>>2];if(d>>>0>=e>>>0){a=d;break c}a=d;while(1){a=K[a|0]-47|0;d:{if(a){if((a|0)!=15)break d;J[b>>2]=d;J[b+144>>2]=h;a=d;break c}h=h+1|0}kc[J[b+32>>2]](b);if(J[b+12>>2])break a;kc[J[b+28>>2]](b);a=J[b>>2];if(e>>>0>a>>>0)continue;break}}if(J[b+264>>2]|a>>>0>=e>>>0)break b;k=b+200|0;c=kc[J[J[g>>2]>>2]](k,J[b+144>>2],i)|0;if(c)break b;l=b+148|0;c=kc[J[J[g>>2]>>2]](l,J[b+144>> +2],i)|0;if(c)break b;h=b+252|0;c=kc[J[J[g>>2]>>2]](h,4,i)|0;if(c)break b;kc[J[b+28>>2]](b);a=J[b>>2];if(e>>>0<=a>>>0){J[b+144>>2]=0;c=3;break b}i=0;g=0;d=0;while(1){e:{f:{c=K[a|0];if((c|0)!=101){if((c|0)==62)break e;break f}if(K[a+1|0]!=110|a+3>>>0>=e>>>0|K[a+2|0]!=100)break f;switch(K[a+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:break e;default:break f}}kc[J[b+32>>2]](b);f=J[b>>2];if(f>>>0>=e>>>0){c=3;break b}if(J[b+12>>2])break a;g:{h:{j=K[a|0];switch(j-40|0){case 0:case 7:break h;default:break g}}c= +3;m=(j|0)==40;if((m?3:2)+a>>>0>=e>>>0)break b;a=a+1|0;f=(f-a|0)-m|0;c=kc[J[b+192>>2]](l,d,a,f+1|0)|0;if(c)break b;c=f;f=d<<2;H[c+J[f+J[b+172>>2]>>2]|0]=0;if(K[a|0]==46){a=Ic(240997,J[f+J[b+172>>2]>>2]);i=a?i:1;g=a?g:d}kc[J[b+28>>2]](b);if((j|0)==40)kc[J[b+32>>2]](b);a=J[b>>2];kc[J[b+36>>2]](b)|0;c=3;j=J[b>>2];if(j>>>0>=e>>>0)break b;c=a;a=j-a|0;c=kc[J[b+244>>2]](k,d,c,a+1|0)|0;if(c)break b;H[a+J[f+J[b+224>>2]>>2]|0]=0;d=d+1|0;if((d|0)>=J[b+144>>2])break e}kc[J[b+28>>2]](b);a=J[b>>2];if(e>>>0>a>>> +0)continue}break}J[b+144>>2]=d;if(!(i&255)){c=3;break b}a=J[J[b+172>>2]>>2];if(!Ic(240997,a))break a;c=kc[J[b+296>>2]](h,0,a,J[J[b+176>>2]>>2])|0;if(c)break b;c=kc[J[b+296>>2]](h,1,J[J[b+224>>2]>>2],J[J[b+228>>2]>>2])|0;if(c)break b;a=g<<2;c=kc[J[b+296>>2]](h,2,J[a+J[b+172>>2]>>2],J[a+J[b+176>>2]>>2])|0;if(c)break b;c=kc[J[b+296>>2]](h,3,J[a+J[b+224>>2]>>2],J[a+J[b+228>>2]>>2])|0;if(c)break b;c=kc[J[b+192>>2]](l,g,J[J[b+276>>2]>>2],J[J[b+280>>2]>>2])|0;if(c)break b;c=kc[J[b+244>>2]](k,g,J[J[b+276>> +2]+4>>2],J[J[b+280>>2]+4>>2])|0;if(c)break b;c=kc[J[b+192>>2]](l,0,J[J[b+276>>2]+8>>2],J[J[b+280>>2]+8>>2])|0;if(c)break b;c=kc[J[b+244>>2]](k,0,J[J[b+276>>2]+12>>2],J[J[b+280>>2]+12>>2])|0;if(!c)break a}J[b+12>>2]=c}}function UZ(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,C=0,D=0,E=0;w=J[a>>2]==4;y=w?.14:.07;p=1;a:{b:{k=J[b+8>>2];if((k|0)<=0)break b;z=k-1|0;m=J[b>>2];s=m+4|0;h=J[m>>2];t=O[h+56>>3]+0;if(c&1){if((k|0)==1)break b;j=O[J[s>>2]+24>> +3]-O[h+40>>3];l=j;o=j;if(!K[h+92|0]){p=j;q=j;l=1;o=0}r=j>0?j:0;h=1;while(1){v=h<<2;n=J[v+m>>2];x=O[n+56>>3];c:{if((h|0)>=(z|0))break c;i=O[J[s+v>>2]+24>>3]-O[n+40>>3];d:{if(K[n+92|0]){if(l>o){l=i;o=i;break d}if(io))break d;o=i;break d}e:{if(p>q){p=i;break e}if(iq))break d}q=i}j=ir))break c;r=i}t=t+x;h=h+1|0;if((k|0)!=(h|0))continue;break}break a}if((k|0)==1)break b;j=O[J[s>>2]+16>>3]-O[h+32>>3];l=j;o=j;if(!K[h+92|0]){p=j;q=j;l=1;o=0}r=j> +0?j:0;h=1;while(1){v=h<<2;n=J[v+m>>2];x=O[n+56>>3];f:{if((h|0)>=(z|0))break f;i=O[J[s+v>>2]+16>>3]-O[n+32>>3];g:{if(K[n+92|0]){if(l>o){l=i;o=i;break g}if(io))break g;o=i;break g}h:{if(p>q){p=i;break h}if(iq))break g}q=i}j=ir))break f;r=i}t=t+x;h=h+1|0;if((k|0)!=(h|0))continue;break}break a}l=1}j=j<0?0:j;x=r-j;i=y;y=t/+(k|0);t=i*y;i:{if(x.01))){i=(q+l)*.5;break i}if(!(p>q)|!(t>o-l))break j;i=l+ +-1;break i}i=r+1;break i}i=(r+j)*.5;r=(w?.2:.1)*y;if(r>x)break i;if(!(!(tr?r:i);break i}i=r+j}h=vc(16);J[699344]=0;w=_(3352,h|0)|0;k=J[699344];J[699344]=0;k:{l:{if((k|0)!=1){if(J[b+8>>2]>0){h=c&1;D=h?40:32;E=h?24:16;k=0;while(1){z=u;s=k;k=k<<2;h=J[k+J[b>>2]>>2];m=1;m:{if(xl(J[h>>2]))break m;m=1;if(Ut(J[h>>2]))break m;m=Lk(J[h>>2])?-1:0}v=H[J[k+J[b>>2]>>2]+89|0];h=s;k=h+1|0;n:{if((k|0)>2])while(1){o:{u=1;A=J[b>>2];n=J[A+(k<<2)>>2];h=J[(h<<2)+A>>2]; +j=O[n+E>>3]-O[h+D>>3];if(j>i|j<-O[h+56>>3])break n;p:{if(xl(J[n>>2]))break p;if(Ut(J[n>>2]))break p;u=Lk(J[n>>2])?-1:0}if(J[h+48>>2]!=J[n+48>>2]|R(O[h+56>>3]-O[n+56>>3])>.01|(K[n+89|0]!=(v&255)?J[a+48>>2]:0))break o;if(!(!u|!m)&(m|0)!=(u|0)|J[a>>2]==6&J[n+4>>2]!=(J[h+8>>2]+J[h+4>>2]|0))break o;m=m?m:u?u:m;h=k;k=h+1|0;if((k|0)>2])continue}break}u=0}h=vc(112);J[699344]=0;s=za(3662,h|0,b|0,s|0,k-s|0,c|0,v|0,m|0,((c|0)>1?z:u)|0)|0;m=J[699344];J[699344]=0;q:{r:{if((m|0)!=1){if((c|0)<2)break r;Pn(w, +0,s);break q}break k}sd(w,s)}j=O[s+56>>3];if(!(j>C?0:k))C=j;if(J[b+8>>2]>(k|0))continue;break}}h=vc(72);J[699344]=0;a=fb(3663,h|0,w|0,+d,+e,+f,+g,+C)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break l;break k}break k}return a}a=Z()|0;uc(h);ba(a|0);B()}function Lva(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=fc-16|0;fc=e;J[a>>2]=0;a:{b:{c:{d:{if(J[c>>2]){f=J[J[b>>2]+32>>2];J[699344]=0;g=f;f=e+12|0;ia(g|0,f|0,b|0,c|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[699344]=0;aa(5153,a|0,f|0)| +0;c=J[699344];J[699344]=0;e:{f:{g:{h:{i:{j:{if((c|0)!=1){c=J[e+12>>2];J[e+12>>2]=0;k:{if(!c)break k;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break k;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[a>>2];if(!c|!J[d>>2])break b;J[699344]=0;J[e+4>>2]=0;f=e+4|0;aa(5145,f|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;g=J[J[b>>2]+32>>2];J[699344]=0;h=g;g=e+8|0;ia(h|0,g|0,b|0,d|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break i; +b=J[J[c>>2]+12>>2];J[699344]=0;d=b;b=e+12|0;ca(d|0,b|0,c|0,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;aa(5153,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;a=J[e+12>>2];J[e+12>>2]=0;l:{if(!a)break l;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break l;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[e+8>>2];J[e+8>>2]=0;m:{if(!a)break m;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c| +0)==1)break a;if(b)break m;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[e+4>>2];J[e+4>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;break b}b=Z()|0;zc(e+12|0);break c}b=Z()|0;break c}b=Z()|0;break e}b=Z()|0;break f}b=Z()|0;zc(e+12|0)}zc(e+8|0)}zc(e+4|0);break c}if(!J[d>>2])break b;J[699344]=0;J[e+8>>2]=0;c=e+8|0;aa(5145,c|0,0)|0;f=J[699344]; +J[699344]=0;n:{o:{p:{if((f|0)!=1){f=J[J[b>>2]+32>>2];J[699344]=0;g=f;f=e+12|0;ia(g|0,f|0,b|0,d|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break p;J[699344]=0;aa(5153,a|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break o;a=J[e+12>>2];J[e+12>>2]=0;q:{if(!a)break q;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break q;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[e+8>>2];J[e+8>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>> +2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}b=Z()|0;break c}b=Z()|0;break n}b=Z()|0;zc(e+12|0)}zc(e+8|0);break c}b=Z()|0}zc(a);ba(b|0);B()}fc=e+16|0;return}ea(0)|0;Bc();B()}function IFa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=fc-32|0;fc=f;a:{b:{c:{d:{e:{if((c|0)<=0)break e;j=e+1|0;while(1){if(J[J[a>>2]+16>>2]<=J[b>>2])break e;i=c;J[f+24>>2]=0;c=J[a>>2];g=J[b>>2];J[b>>2]=g+1;J[699344]= +0;ga(5197,c|0,f+24|0,g|0)|0;c=J[699344];J[699344]=0;f:{g:{h:{if((c|0)!=1){J[f+16>>2]=0;J[f+20>>2]=J[685894];i:{c=J[J[f+24>>2]+20>>2];j:{k:{if(c){g=J[J[c>>2]+28>>2];J[699344]=0;ca(g|0,f+4|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break k;c=Z()|0;break j}J[f+4>>2]=0}J[699344]=0;aa(5153,f+16|0,f+4|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[f+4>>2];J[f+4>>2]=0;if(!c)break i;J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break i;J[699344]=0;$(5147,c|0);c=J[699344]; +J[699344]=0;if((c|0)!=1)break i}break a}c=Z()|0;zc(f+4|0)}wc(f+16|0);break b}c=J[f+16>>2];J[f+20>>2]=J[(c?c+12|0:2743576)>>2];if(!c)break g;g=J[J[c>>2]+48>>2];J[699344]=0;g=ha(g|0,c|0,1,f+12|0,10)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[f+16>>2];if(c)c=J[c+8>>2];else c=0;if((c|0)!=J[f+12>>2])break f;J[699344]=0;da(3706,d|0,g-1|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[699344]=0;da(3706,d|0,e|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[699344]=0;da(3706,d|0,0);c=J[699344];J[699344]= +0;if((c|0)==1)break d;J[f+4>>2]=0;J[f+8>>2]=J[685894];l:{c=J[J[f+24>>2]+12>>2];m:{n:{if(c){g=J[J[c>>2]+28>>2];J[699344]=0;ca(g|0,f+28|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break n;c=Z()|0;break m}J[f+28>>2]=0}J[699344]=0;aa(5153,f+4|0,f+28|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[f+28>>2];J[f+28>>2]=0;if(!c)break l;J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break l;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break l}break a}c=Z()| +0;zc(f+28|0)}wc(f+4|0);break c}c=J[f+4>>2];J[f+8>>2]=J[(c?c+12|0:2743576)>>2];J[699344]=0;g=aa(5169,f+4|0,-1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;c=J[f+4>>2];if(c)c=J[c+8>>2];else c=0;J[699344]=0;ca(1638,d|0,g|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;wc(f+4|0);break f}c=Z()|0;break b}c=Z()|0;wc(f+4|0);break c}J[f+12>>2]=-1}c=J[J[f+24>>2]+8>>2];J[699344]=0;ma(5198,a|0,b|0,c|0,d|0,j|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;wc(f+16|0);c=J[f+24>>2];J[f+24>>2]=0;o:{if(!c)break o; +J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(g)break o;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=i-1|0;if(i>>>0>1)continue;break}}fc=f+32|0;return}c=Z()|0}wc(f+16|0)}zc(f+24|0);ba(c|0);B()}ea(0)|0;Bc();B()}function jB(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;g=J[a+8>>2];e=g+J[a+4>>2]|0;a:{if(!J[a+12>>2]){if((e|0)<2|(d|0)<=0)break a;q=e&-4;l=e&3;r=e&1;s=g+1|0;i=J[a>>2];k=i+ +(e<<2)|0;t=e-4>>>1|0;a=e-1|0;u=i+(a<<2)|0;v=P(c,g)<<2;o=e>>>0<4;w=P(a>>>1|0,c)<<2;while(1){g=J[b+v>>2];e=J[b>>2]-(g+1>>1)|0;j=0;a=0;if(!o)while(1){m=a+1|0;x=J[(P(m,c)<<2)+b>>2];f=J[(P(a+s|0,c)<<2)+b>>2];p=j<<2;J[p+i>>2]=e;h=e;e=x-((g+f|0)+2>>2)|0;J[i+(p|4)>>2]=(h+e>>1)+g;j=j+2|0;h=(a|0)!=(t|0);g=f;a=m;if(h)continue;break}J[i+(j<<2)>>2]=e;if(r){a=J[b+w>>2]-(g+1>>1)|0;J[u>>2]=a;e=a+e>>1;a=-2}else a=-1;J[(a<<2)+k>>2]=e+g;e=0;a=0;g=0;if(!o)while(1){J[(P(a,c)<<2)+b>>2]=J[i+(a<<2)>>2];f=a|1;J[(P(f,c)<< +2)+b>>2]=J[i+(f<<2)>>2];f=a|2;J[(P(f,c)<<2)+b>>2]=J[i+(f<<2)>>2];f=a|3;J[(P(f,c)<<2)+b>>2]=J[i+(f<<2)>>2];a=a+4|0;g=g+4|0;if((q|0)!=(g|0))continue;break}if(l)while(1){J[(P(a,c)<<2)+b>>2]=J[i+(a<<2)>>2];a=a+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}b=b+4|0;n=n+1|0;if((n|0)!=(d|0))continue;break}break a}b:switch(e-1|0){case 0:if((d|0)<=0)break a;if(d>>>0>=4){c=d&-4;a=0;while(1){J[b>>2]=J[b>>2]/2;J[b+4>>2]=J[b+4>>2]/2;J[b+8>>2]=J[b+8>>2]/2;J[b+12>>2]=J[b+12>>2]/2;b=b+16|0;a=a+4|0;if((c|0)!=(a|0))continue; +break}}c=d&3;if(!c)break a;a=0;while(1){J[b>>2]=J[b>>2]/2;b=b+4|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 1:if((d|0)<=0)break a;a=J[a>>2];e=0;g=P(c,g)<<2;while(1){f=b+g|0;k=J[b>>2]-(J[f>>2]+1>>1)|0;J[a+4>>2]=k;f=k+J[f>>2]|0;J[a>>2]=f;J[b>>2]=f;J[(c<<2)+b>>2]=J[a+4>>2];b=b+4|0;e=e+1|0;if((e|0)!=(d|0))continue;break}break a;default:break b}if((e|0)<3|(d|0)<=0)break a;o=e&-4;i=e&3;q=e&1;h=J[a>>2];r=(h+(e<<2)|0)-4|0;a=e-2|0;s=h+(a<<2)|0;f=e|-2;t=((f+e|0)-3>>>1|0)+1|0;u=P(c,g)<<2;v=(a+f|0)+ +1>>>0<2;w=P((e>>>1|0)-1|0,c)<<2;x=e-1>>>0<3;while(1){l=b+u|0;g=J[l+(c<<2)>>2];a=J[l>>2];e=J[b>>2]-((g+a|0)+2>>2)|0;J[h>>2]=e+a;j=1;a=1;if(!v)while(1){p=J[(P(a,c)<<2)+b>>2];k=a+1|0;f=J[l+(P(k,c)<<2)>>2];y=h+(j<<2)|0;J[y>>2]=e;m=e;e=p-((g+f|0)+2>>2)|0;J[y+4>>2]=(m+e>>1)+g;j=j+2|0;m=(a|0)!=(t|0);a=k;g=f;if(m)continue;break}J[h+(j<<2)>>2]=e;c:{if(!q){a=J[b+w>>2]-(g+1>>1)|0;J[s>>2]=(e+a>>1)+g;break c}a=e+g|0}J[r>>2]=a;e=0;a=0;g=0;if(!x)while(1){J[(P(a,c)<<2)+b>>2]=J[h+(a<<2)>>2];f=a|1;J[(P(f,c)<<2)+b>> +2]=J[h+(f<<2)>>2];f=a|2;J[(P(f,c)<<2)+b>>2]=J[h+(f<<2)>>2];f=a|3;J[(P(f,c)<<2)+b>>2]=J[h+(f<<2)>>2];a=a+4|0;g=g+4|0;if((o|0)!=(g|0))continue;break}if(i)while(1){J[(P(a,c)<<2)+b>>2]=J[h+(a<<2)>>2];a=a+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}b=b+4|0;n=n+1|0;if((n|0)!=(d|0))continue;break}}}function IAa(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;d=fc-48|0;fc=d;a:{b:{if(!K[a+144|0]){a=Qc(d+24|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b; +b=Z()|0;Kc(a);ba(b|0);B()}c=d+20|0;Fn(c,J[a+108>>2]);J[d+12>>2]=0;J[d+16>>2]=J[685894];J[699344]=0;da(5278,d+8|0,c|0);c=J[699344];J[699344]=0;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((c|0)!=1){J[699344]=0;i=J[d+8>>2];c=ha(5279,i|0,d+12|0,0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break o;if(c)break l;J[699344]=0;e=ja(5178,d+24|0,J[685886],2386059,2145,2416010,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;J[699344]=0;$(5179,e|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b;f=ea(2423616)|0;c=gc; +Kc(e);break m}f=Z()|0;break d}f=Z()|0;break e}f=ea(2423616)|0;c=gc}if((sa(2423616)|0)!=(c|0))break e;c=oa(f|0)|0;e=J[J[a>>2]+64>>2];g=J[a+132>>2];J[699344]=0;ca(e|0,a|0,c|0,(g|0)<2|0);c=J[699344];J[699344]=0;if((c|0)==1)break k;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)!=1)break l;f=Z()|0;break e}c=0;e=J[a+132>>2]<=1?-1:J[a+140>>2];f=e;while(1){g=c;p:{if(f){J[699344]=0;h=ha(5279,i|0,d+12|0,0,0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break j;if(h)break p;e=c}c=0;if(J[a+140>>2]>=0)break i; +J[a+140>>2]=e;break i}J[699344]=0;h=ga(5287,d+12|0,b|0,-1)|0;j=J[699344];J[699344]=0;c=g+1|0;if((j|0)==1)break j;if(!h){c=1;break i}f=f-1|0;J[699344]=0;$(5468,i|0);h=J[699344];J[699344]=0;if((h|0)!=1)continue;break}break j}f=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break e;break a}f=ea(2423616)|0;if((gc|0)!=(sa(2423616)|0))break e;e=oa(f|0)|0;b=J[a+132>>2];if(J[a+140>>2]<0)J[a+140>>2]=(b|0)>2?c:g;g=J[J[a>>2]+64>>2];c=0;J[699344]=0;ca(g|0,a|0,e|0,(b|0)<2|0);b=J[699344];J[699344]= +0;if((b|0)==1)break h;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break g}a=J[a+108>>2];J[699344]=0;da(5269,a|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break f;a=J[d+8>>2];J[d+8>>2]=0;q:{if(!a)break q;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(b)break q;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}wc(d+12|0);a=J[d+20>>2];J[d+20>>2]=0;r:{if(!a)break r;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e| +0)==1)break c;if(b)break r;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c}fc=d+48|0;return c|0}f=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break e;break a}f=Z()|0;break e}f=Z()|0}zc(d+8|0)}wc(d+12|0);zc(d+20|0);ba(f|0);B()}ea(0)|0;Bc()}B()}ea(0)|0;Bc();B()}function v3a(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,m=0,n=0,o=0,p=0,q=0,r=0,s=0;m=fc-224|0;fc=m;p=fc-16|0;fc=p;k=m+4|0;o=k+20|0;H[o+8|0]=0;J[o+4>>2]= +40;J[o>>2]=o+9;J[k+72>>2]=0;H[J[k+20>>2]]=0;J[699344]=0;q=k+76|0;l=q;H[l+8|0]=0;J[l+4>>2]=40;J[l>>2]=l+9;l=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((l|0)!=1){J[k+128>>2]=0;H[J[k+76>>2]]=0;J[699344]=0;l=k+132|0;H[l+8|0]=0;J[l+4>>2]=40;J[l>>2]=l+9;n=J[699344];J[699344]=0;if((n|0)==1)break e;J[k+184>>2]=0;H[J[k+132>>2]]=0;if(b)break f;J[699344]=0;b=pa(3046)|0;n=J[699344];J[699344]=0;if((n|0)!=1)break f;break d}a=Z()|0;break b}J[k>>2]=b;if(a){J[699344]=0;b=ga(3047,l|0,47,j|0)|0;n=J[699344];J[699344]= +0;if((n|0)==1)break d;J[699344]=0;a=hj(p+8|0,a);n=J[699344];J[699344]=0;if((n|0)==1)break d;n=J[a+4>>2];a=J[a>>2];J[699344]=0;ha(3049,b|0,a|0,n|0,j|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d}a=at(d,47);a=a?a+1|0:d;J[k+8>>2]=a;r=k,s=Yc(a),J[r+16>>2]=s;if((a|0)!=(d|0)){J[699344]=0;ha(3049,o|0,d|0,a-d|0,j|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;a=o}else a=k;a=J[a>>2];H[k+188|0]=0;J[k+12>>2]=c?c:731309;J[k+4>>2]=a;fc=p+16|0;break a}a=Z()|0;break c}a=Z()|0;Eh(l)}Eh(q)}Eh(o);ba(a|0);B()}g:{h:{i:{if(!g){while(1){j:{J[699344]= +0;a=aa(3056,k|0,j|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;if(!a){c=0;break g}J[699344]=0;a=aa(3057,m+196|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;if(!a)continue;k:{if(J[j>>2]>0)break k;d=J[m+200>>2];if(!(K[d+2|0]!=218|K[d+3|0]!=39)){J[699344]=0;c=_(3058,j|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break j;if(J[j>>2]<=0)break h;break k}J[i>>2]=3}J[699344]=0;$(3059,m+196|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;c=0;if(J[j>>2]>0)break g;J[i>>2]=3;continue}break}break i}while(1){l:{J[699344]= +0;a=aa(3056,k|0,j|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;if(!a){c=0;break g}J[699344]=0;a=aa(3057,m+196|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;if(!a)continue;m:{if(J[j>>2]>0)break m;n:{d=J[m+200>>2];if(K[d+2|0]!=218|K[d+3|0]!=39)break n;J[699344]=0;a=ha(g|0,h|0,e|0,f|0,d+4|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;if(!a)break n;J[699344]=0;c=_(3058,j|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;if(J[j>>2]>0)break m;break h}J[i>>2]=3}J[699344]=0;$(3059,m+196|0);a= +J[699344];J[699344]=0;if((a|0)==1)break l;c=0;if(J[j>>2]>0)break g;J[i>>2]=3;continue}break}}a=Z()|0;Eh(k+132|0);Eh(k+76|0);Eh(k+20|0);ba(a|0);B()}J[c+4>>2]=d;J[c+16>>2]=J[m+212>>2];J[c+20>>2]=J[m+216>>2]}Eh(k+132|0);Eh(k+76|0);Eh(k+20|0);fc=m+224|0;return c|0}function i6(a,b){var c=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{if((b|0)<=1935833198){if((b|0)<=1751346272){J:switch(b-1735618608|0){case 9:break z;case 8:break A;case 7:break B; +case 6:break C;case 5:break D;case 4:break E;case 3:break F;case 2:break G;case 1:break H;case 0:break I;default:break J}if((b|0)==1668311156)break y;if((b|0)!=1751216995)break a;return a+442|0}if((b|0)<=1751347821)switch(b-1751346273|0){case 1:case 2:break a;case 3:break w;case 0:break x;default:break v}K:switch(b-1751347822|0){case 1:case 2:case 3:case 4:break a;case 5:break t;case 0:break u;default:break K}if((b|0)==1751413603)break s;if((b|0)!=1751934832)break a;return a+446|0}if((b|0)<=1970168942){if((b| +0)<=1936750702){L:switch(b-1935833199|0){case 1:case 2:case 3:break a;case 4:break q;case 0:break r;default:break L}switch(b-1935833455|0){case 4:break o;case 0:break p;default:break a}}M:switch(b-1936750703|0){case 1:case 2:case 3:break a;case 4:break m;case 0:break n;default:break M}N:switch(b-1936750959|0){case 1:case 2:case 3:break a;case 4:break k;case 0:break l;default:break N}switch(b-1937011311|0){case 0:break j;case 4:break i;default:break a}}if((b|0)<=1986228845){O:switch(b-1970168943|0){case 1:case 2:case 3:break a; case 4:break g;case 0:break h;default:break O}if((b|0)==1986098019)break f;if((b|0)!=1986228070)break a;return a+318|0}if((b|0)<=1986815855)switch(b-1986228846|0){case 1:case 2:case 3:case 4:break a;case 5:break d;case 0:break e;default:break c}if((b|0)==1986815856)break b;if((b|0)!=2020108148)break a;return a+460|0}if(L[a+562>>1]<2)break a;return J[a+564>>2]}if(L[a+562>>1]<3)break a;return J[a+564>>2]+4|0}if(L[a+562>>1]<4)break a;return J[a+564>>2]+8|0}if(L[a+562>>1]<5)break a;return J[a+564>>2]+ 12|0}if(L[a+562>>1]<6)break a;return J[a+564>>2]+16|0}if(L[a+562>>1]<7)break a;return J[a+564>>2]+20|0}if(L[a+562>>1]<8)break a;return J[a+564>>2]+24|0}if(L[a+562>>1]<9)break a;return J[a+564>>2]+28|0}if(L[a+562>>1]<10)break a;return J[a+564>>2]+32|0}if(L[a+562>>1]<11)break a;return J[a+564>>2]+36|0}return a+462|0}return a+448|0}return a+450|0}if((b|0)!=1751347046)break a;return a+238|0}return a+236|0}return a+234|0}return a+444|0}return a+386|0}return a+382|0}return a+388|0}return a+384|0}return a+ -394|0}return a+390|0}return a+396|0}return a+392|0}return a+400|0}return a+398|0}return a+484|0}return a+486|0}return a+300|0}return a+316|0}return a+314|0}if((b|0)!=1986294627)break a;return a+302|0}c=a+304|0}return c}function B_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;z=bc-416|0;bc=z;u=J[a+332>>2];b=J[b+84>>2];a=z;while(1){p=J[b+224>>2];l=I[c+112>>1];g=J[b+96>>2];i=I[c+48>>1];s=J[b+160>>2];t=I[c+80>>1]; +394|0}return a+390|0}return a+396|0}return a+392|0}return a+400|0}return a+398|0}return a+484|0}return a+486|0}return a+300|0}return a+316|0}return a+314|0}if((b|0)!=1986294627)break a;return a+302|0}c=a+304|0}return c}function h3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0;z=fc-416|0;fc=z;u=J[a+332>>2];b=J[b+84>>2];a=z;while(1){p=J[b+224>>2];l=I[c+112>>1];g=J[b+96>>2];i=I[c+48>>1];s=J[b+160>>2];t=I[c+80>>1]; h=J[b+32>>2];j=I[c+16>>1];m=P(I[c>>1],J[b>>2])<<13|1024;f=P(J[b+128>>2],I[c+64>>1]);o=P(J[b+192>>2],I[c+96>>1]);n=f-o|0;k=P(J[b+64>>2],I[c+32>>1]);J[a+192>>2]=m+P(n-k|0,11585)>>11;g=P(g,i);h=P(h,j);j=P(g+h|0,10832);q=m+P(n,793)|0;f=f+o|0;o=P(f,9465);v=q+(o+P(k,11249)|0)|0;i=P(s,t);s=P(i+h|0,9534);p=P(p,l);l=p+h|0;t=P(l,7682);r=(s+(j+P(h,-16549)|0)|0)+t|0;J[a+384>>2]=v-r>>11;J[a>>2]=r+v>>11;r=m+P(n,3989)|0;v=P(f,2592);x=r+(P(k,8672)-v|0)|0;y=P(g+i|0,-2773);w=y+(j+P(g,6859)|0)|0;j=P(g+p|0,-9534);w= w+j|0;J[a+352>>2]=x-w>>11;J[a+32>>2]=x+w>>11;o=q+(P(k,4108)-o|0)|0;q=s+(P(i,-12879)+y|0)|0;s=P(i+p|0,-5384);q=q+s|0;J[a+320>>2]=o-q>>11;J[a+64>>2]=o+q>>11;n=m+P(n,-7678)|0;f=P(f,3570);m=n+(P(k,-1396)-f|0)|0;j=s+(t+(j+P(p,18068)|0)|0)|0;J[a+288>>2]=m-j>>11;J[a+96>>2]=j+m>>11;n=n+(f+P(k,-6581)|0)|0;f=P(h,2611);h=P(l,2773)+P(i-g|0,7682)|0;g=(f+h|0)+P(g,-3818)|0;J[a+256>>2]=n-g>>11;J[a+128>>2]=g+n>>11;k=r+(v+P(k,-10258)|0)|0;g=(h+P(i,3150)|0)+P(p,-14273)|0;J[a+224>>2]=k-g>>11;J[a+160>>2]=g+k>>11;a=a+ 4|0;b=b+4|0;c=c+2|0;A=A+1|0;if((A|0)!=8)continue;break}a=u+128|0;b=z;n=0;while(1){g=J[b+12>>2];h=J[b+4>>2];f=P(g+h|0,10832);c=J[(n<<2)+d>>2]+e|0;p=J[b+28>>2];s=p+h|0;t=P(s,7682);i=J[b+20>>2];l=P(i+h|0,9534);o=t+(l+(f+P(h,-16549)|0)|0)|0;m=J[b+24>>2];j=J[b+16>>2];u=m+j|0;q=P(u,9465);k=J[b+8>>2];m=j-m|0;j=(J[b>>2]<<13)+131072|0;v=P(m,793)+j|0;r=(q+P(k,11249)|0)+v|0;H[c|0]=K[a+(o+r>>>18&1023)|0];H[c+12|0]=K[a+(r-o>>>18&1023)|0];o=P(g+p|0,-9534);r=f+P(g,6859)|0;f=P(g+i|0,-2773);r=o+(r+f|0)|0;y=j+P(m, 3989)|0;x=P(u,2592);w=y+(P(k,8672)-x|0)|0;H[c+1|0]=K[a+(r+w>>>18&1023)|0];H[c+11|0]=K[a+(w-r>>>18&1023)|0];l=l+(f+P(i,-12879)|0)|0;f=P(i+p|0,-5384);l=l+f|0;q=v+(P(k,4108)-q|0)|0;H[c+2|0]=K[a+(l+q>>>18&1023)|0];H[c+10|0]=K[a+(q-l>>>18&1023)|0];f=f+(t+(o+P(p,18068)|0)|0)|0;l=j+P(m,-7678)|0;u=P(u,3570);t=l+(P(k,-1396)-u|0)|0;H[c+3|0]=K[a+(f+t>>>18&1023)|0];H[c+9|0]=K[a+(t-f>>>18&1023)|0];f=P(h,2611);h=P(s,2773)+P(i-g|0,7682)|0;g=(f+h|0)+P(g,-3818)|0;f=l+(u+P(k,-6581)|0)|0;H[c+4|0]=K[a+(g+f>>>18&1023)| -0];H[c+8|0]=K[a+(f-g>>>18&1023)|0];g=(h+P(i,3150)|0)+P(p,-14273)|0;i=y+(x+P(k,-10258)|0)|0;H[c+5|0]=K[a+(g+i>>>18&1023)|0];H[c+7|0]=K[a+(i-g>>>18&1023)|0];H[c+6|0]=K[a+(j+P(m-k|0,11585)>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=13)continue;break}bc=z+416|0}function YK(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;i=J[b+20>>2];d=J[b+16>>2];n=J[b+12>>2];h=J[b+8>>2];j=J[b+4>>2];f=J[b>>2];a:{if(!((n|0)<(h|0)|(j|0)<=(f|0)|(d|0)>(i|0))){l=d<<1;k=f;while(1){m=J[(k<<2)+a>>2];g=h;while(1){e= +0];H[c+8|0]=K[a+(f-g>>>18&1023)|0];g=(h+P(i,3150)|0)+P(p,-14273)|0;i=y+(x+P(k,-10258)|0)|0;H[c+5|0]=K[a+(g+i>>>18&1023)|0];H[c+7|0]=K[a+(i-g>>>18&1023)|0];H[c+6|0]=K[a+(j+P(m-k|0,11585)>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=13)continue;break}fc=z+416|0}function wM(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;i=J[b+20>>2];d=J[b+16>>2];n=J[b+12>>2];h=J[b+8>>2];j=J[b+4>>2];f=J[b>>2];a:{if(!((n|0)<(h|0)|(j|0)<=(f|0)|(d|0)>(i|0))){l=d<<1;k=f;while(1){m=J[(k<<2)+a>>2];g=h;while(1){e= l+(m+(g<<6)|0)|0;c=d;while(1){if(L[e>>1]){J[b>>2]=k;break a}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o)continue;break}c=(g|0)!=(n|0);g=g+1|0;if(c)continue;break}c=(j|0)!=(k|0);k=k+1|0;if(c)continue;break}}k=f}b:{if(!((j|0)<=(k|0)|(h|0)>(n|0)|(d|0)>(i|0))){f=d<<1;l=j;while(1){m=J[(l<<2)+a>>2];g=h;while(1){e=f+(m+(g<<6)|0)|0;c=d;while(1){if(L[e>>1]){J[b+4>>2]=l;break b}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o)continue;break}c=(g|0)!=(n|0);g=g+1|0;if(c)continue;break}c=(k|0)<(l|0);l=l-1|0;if(c)continue;break}}l= j}c:{if(!((k|0)>(l|0)|(h|0)>=(n|0)|(d|0)>(i|0))){g=d<<1;j=h;while(1){m=j<<6;f=k;while(1){e=g+(m+J[(f<<2)+a>>2]|0)|0;c=d;while(1){if(L[e>>1]){J[b+8>>2]=j;break c}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o)continue;break}c=(f|0)!=(l|0);f=f+1|0;if(c)continue;break}c=(j|0)!=(n|0);j=j+1|0;if(c)continue;break}}j=h}d:{if(!((k|0)>(l|0)|(j|0)>=(n|0)|(d|0)>(i|0))){f=d<<1;g=n;while(1){h=g<<6;m=k;while(1){e=f+(h+J[(m<<2)+a>>2]|0)|0;c=d;while(1){if(L[e>>1]){J[b+12>>2]=g;break d}e=e+2|0;o=(c|0)!=(i|0);c=c+1|0;if(o)continue; break}c=(l|0)!=(m|0);m=m+1|0;if(c)continue;break}c=(g|0)>(j|0);g=g-1|0;if(c)continue;break}}g=n}e:{if(!((k|0)>(l|0)|(d|0)>=(i|0)|(g|0)<(j|0))){n=j<<6;f=d;while(1){m=f<<1;h=k;while(1){e=m+(n+J[(h<<2)+a>>2]|0)|0;c=j;while(1){if(L[e>>1]){J[b+16>>2]=f;break e}e=e- -64|0;o=(c|0)!=(g|0);c=c+1|0;if(o)continue;break}c=(h|0)!=(l|0);h=h+1|0;if(c)continue;break}c=(f|0)!=(i|0);f=f+1|0;if(c)continue;break}}f=d}f:{if(!((k|0)>(l|0)|(f|0)>=(i|0)|(g|0)<(j|0))){n=j<<6;h=i;while(1){m=h<<1;d=k;while(1){e=m+(n+J[(d<< 2)+a>>2]|0)|0;c=j;while(1){if(L[e>>1]){J[b+20>>2]=h;break f}e=e- -64|0;o=(c|0)!=(g|0);c=c+1|0;if(o)continue;break}c=(d|0)!=(l|0);d=d+1|0;if(c)continue;break}c=(f|0)<(h|0);h=h-1|0;if(c)continue;break}}h=i}c=P(g-j|0,12);d=P(c,c);c=l-k<<4;d=d+P(c,c)|0;n=h-f|0;c=n<<3;J[b+24>>2]=d+P(c,c);c=0;if(!((g|0)<(j|0)|(k|0)>(l|0))){o=n+1&3;while(1){if((f|0)<=(h|0)){p=J[(k<<2)+a>>2];m=j;while(1){i=(p+(m<<6)|0)+(f<<1)|0;d=0;e=f;if(o)while(1){e=e+1|0;c=(L[i>>1]!=0)+c|0;i=i+2|0;d=d+1|0;if((o|0)!=(d|0))continue;break}if(n>>> -0>=3)while(1){c=((((L[i>>1]!=0)+c|0)+(L[i+2>>1]!=0)|0)+(L[i+4>>1]!=0)|0)+(L[i+6>>1]!=0)|0;i=i+8|0;d=e+3|0;e=e+4|0;if((d|0)!=(h|0))continue;break}d=(g|0)!=(m|0);m=m+1|0;if(d)continue;break}}d=(k|0)!=(l|0);k=k+1|0;if(d)continue;break}}J[b+28>>2]=c}function G$a(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;j=bc-16|0;bc=j;p=J[a+8>>2];o=J[a+12>>2]-p>>1;d=J[a+24>>2];i=J[a+4>>2];m=J[i+8>>2];h=K[m+14|0];a:{b:{c:{g=J[i+56>>2];n=J[a+16>>2];k=J[a+20>>2]-n|0;if(!(!g|(k|0)<=0)){f= -h;break c}if((o|0)<=0)break a;while(1){f=h;i=l;d:{e:{f:{g:{h:{i:{while(1){J[j+12>>2]=65535;if((e|0)>=(k|0))break h;l=i+1|0;g=L[(i<<1)+p>>1];if((g|0)!=126)break i;H[J[a+16>>2]+e|0]=126;if(J[a+24>>2]){J[d>>2]=i;d=d+4|0}h=e+1|0;j:{if((h|0)>=(k|0)){c=J[a+4>>2];e=H[c+63|0];H[c+63|0]=e+1;H[(e+c|0)+76|0]=126;J[b>>2]=15;break j}H[h+J[a+16>>2]|0]=126;if(J[a+24>>2]){J[d>>2]=i;d=d+4|0}h=e+2|0}e=h;i=l;if((o|0)>(i|0))continue;break}h=f;break a}k:{c=g;if(c>>>0>=128){if((nh(J[J[m>>2]+24>>2],c,j+12|0,H[J[a+4>>2]+ +0>=3)while(1){c=((((L[i>>1]!=0)+c|0)+(L[i+2>>1]!=0)|0)+(L[i+4>>1]!=0)|0)+(L[i+6>>1]!=0)|0;i=i+8|0;d=e+3|0;e=e+4|0;if((d|0)!=(h|0))continue;break}d=(g|0)!=(m|0);m=m+1|0;if(d)continue;break}}d=(k|0)!=(l|0);k=k+1|0;if(d)continue;break}}J[b+28>>2]=c}function w1a(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;j=fc-16|0;fc=j;p=J[a+8>>2];o=J[a+12>>2]-p>>1;d=J[a+24>>2];i=J[a+4>>2];m=J[i+8>>2];h=K[m+14|0];a:{b:{c:{g=J[i+56>>2];n=J[a+16>>2];k=J[a+20>>2]-n|0;if(!(!g|(k|0)<=0)){f= +h;break c}if((o|0)<=0)break a;while(1){f=h;i=l;d:{e:{f:{g:{h:{i:{while(1){J[j+12>>2]=65535;if((e|0)>=(k|0))break h;l=i+1|0;g=L[(i<<1)+p>>1];if((g|0)!=126)break i;H[J[a+16>>2]+e|0]=126;if(J[a+24>>2]){J[d>>2]=i;d=d+4|0}h=e+1|0;j:{if((h|0)>=(k|0)){c=J[a+4>>2];e=H[c+63|0];H[c+63|0]=e+1;H[(e+c|0)+76|0]=126;J[b>>2]=15;break j}H[h+J[a+16>>2]|0]=126;if(J[a+24>>2]){J[d>>2]=i;d=d+4|0}h=e+2|0}e=h;i=l;if((o|0)>(i|0))continue;break}h=f;break a}k:{c=g;if(c>>>0>=128){if((Dh(J[J[m>>2]+24>>2],c,j+12|0,H[J[a+4>>2]+ 35|0])|0)!=2)break k;h=J[j+12>>2];if((h+24159&65534)>>>0>23645|(h+95&254)>>>0>93)break k;c=h-32896|0}J[j+12>>2]=c;if((c|0)==65535)break k;h=c>>>0>255;H[m+14|0]=h;l:{if(!(K[m+12|0]?f<<24>>24==(h|0):0)){H[J[a+16>>2]+e|0]=126;f=J[a+24>>2];if(c>>>0<=255){if(f){J[d>>2]=i;d=d+4|0}f=e+1|0;m:{if((f|0)>=(k|0)){c=J[a+4>>2];e=H[c+63|0];H[c+63|0]=e+1;H[(e+c|0)+76|0]=125;J[b>>2]=15;break m}H[f+J[a+16>>2]|0]=125;if(J[a+24>>2]){J[d>>2]=i;d=d+4|0}f=e+2|0}e=f;H[m+12|0]=1;break e}if(f){J[d>>2]=i;d=d+4|0}f=e+1|0;if((f| 0)>=(k|0)){c=J[a+4>>2];e=H[c+63|0];H[c+63|0]=e+1;H[(e+c|0)+76|0]=123;J[b>>2]=15;e=f;H[m+12|0]=1;break l}H[f+J[a+16>>2]|0]=123;if(J[a+24>>2]){J[d>>2]=i;d=d+4|0}e=e+2|0;H[m+12|0]=1;break l}if(c>>>0<256)break e}f=J[j+12>>2];g=f>>>8|0;if((e|0)<(k|0)){H[e+n|0]=g;c=e+1|0;if(d){J[d>>2]=i;f=J[j+12>>2];if((c|0)<(k|0))break g;d=d+4|0;break f}d=0;if((c|0)>=(k|0))break f;H[c+n|0]=f;e=e+2|0;break d}c=J[a+4>>2];f=H[c+63|0];H[c+63|0]=f+1;H[(c+f|0)+76|0]=g;f=J[j+12>>2];g=J[a+4>>2];c=H[g+63|0];H[g+63|0]=c+1;H[(c+ g|0)+76|0]=f;J[b>>2]=15;break d}d=10;if((g&63488)!=55296)break b;d=12;if(g&1024)break b;i=J[a+4>>2];J[i+56>>2]=g;c=g;break c}J[b>>2]=15;h=f;l=i;break a}H[c+n|0]=f;J[d+4>>2]=i;d=d+8|0;e=e+2|0;break d}g=J[a+4>>2];e=H[g+63|0];H[g+63|0]=e+1;H[(e+g|0)+76|0]=f;J[b>>2]=15;e=c;break d}g=J[j+12>>2];if((e|0)<(k|0)){H[e+n|0]=g;e=e+1|0;if(!d){d=0;break d}J[d>>2]=i;d=d+4|0;break d}c=J[a+4>>2];f=H[c+63|0];H[c+63|0]=f+1;H[(c+f|0)+76|0]=g;J[b>>2]=15}J[j+12>>2]=65535;if((l|0)<(o|0))continue;break}break a}d=0;n:{if((l| -0)>=(o|0))break n;d=12;h=L[J[a+8>>2]+(l<<1)>>1];if((h&64512)!=56320)break n;J[i+56>>2]=0;l=l+1|0;d=10;g=(h+(g<<10)|0)-56613888|0;break b}g=c}h=f;J[b>>2]=d;J[J[a+4>>2]+56>>2]=g}J[a+16>>2]=J[a+16>>2]+e;J[a+8>>2]=J[a+8>>2]+(l<<1);H[m+14|0]=h;bc=j+16|0}function k3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0;g=J[a+4>>2];f=J[g>>2];t=O[f+32>>3];u=O[f>>3];y=O[f+16>>3];v=O[f+40>>3];w=O[f+8>>3];o=O[a+16>>3];m=O[f+24>> -3];i=O[a+24>>3];l=(e|0)<=1?1:e;J[g+24>>2]=l;J[g+4>>2]=l;s=o+ +(c|0);o=m;m=i+ +(d|0);x=o*m;i=(v+(w*s+x))*256;i=i+(i<0?-.5:.5);a:{if(R(i)<2147483648){d=~~i;break a}d=-2147483648}J[g+40>>2]=d;o=m*y;i=(t+(s*u+o))*256;i=i+(i<0?-.5:.5);b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}J[g+20>>2]=c;m=s+ +(e>>>0);i=(v+(m*w+x))*256;i=i+(i<0?-.5:.5);c:{if(R(i)<2147483648){k=~~i;break c}k=-2147483648}f=k-d|0;d=(f|0)/(l|0)|0;h=f-P(d,l)|0;j=(h|0)<=0;J[g+28>>2]=d-j;i=(t+(m*u+o))*256;i=i+(i<0?-.5:.5);d:{if(R(i)< -2147483648){d=~~i;break d}d=-2147483648}d=d-c|0;c=(d|0)/(l|0)|0;k=c;f=d-P(c,l)|0;c=(f|0)<=0;J[g+8>>2]=k-c;d=h+(j?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e;c=J[a+4>>2];g=J[c+40>>2];d=J[c+20>>2];while(1){c=J[a+36>>2];h=J[a>>2];n=d-J[a+32>>2]|0;f=n>>8;J[h+8>>2]=f;p=g-c|0;g=(J[h+32>>2]+(p>>8)>>>0)%M[h+28>>2]|0;J[h+36>>2]=g;c=J[J[h>>2]>>2];d=J[c+4>>2];c=J[c+16>>2];k=f+J[h+20>>2]|0;f=J[h+16>>2];j=(k>>>0)%(f>>>0)|0;J[h+24>>2]=j;g=d+P(c,g)|0;J[h+4>>2]=g;d=J[h+12>>2];c=g+ -((d>>>0>j>>>0?j:f+(j^-1)|0)<<2)|0;z=K[c+2|0];A=K[c+1|0];B=K[c|0];q=K[c+3|0];c=j+1|0;c=c>>>0>>0?c:0;J[h+24>>2]=c;c=g+((c>>>0>>0?c:f+(c^-1)|0)<<2)|0;C=K[c+2|0];D=K[c+1|0];E=K[c|0];k=K[c+3|0];h=J[a>>2];c=J[h+36>>2]+1|0;f=c>>>0>2]?c:0;J[h+36>>2]=f;c=J[J[h>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];d=J[h+16>>2];j=(J[h+20>>2]+J[h+8>>2]>>>0)%(d>>>0)|0;J[h+24>>2]=j;c=g+P(c,f)|0;J[h+4>>2]=c;c=c+((j>>>0>2]?j:d+(j^-1)|0)<<2)|0;F=K[c+2|0];G=K[c+1|0];l=K[c|0];h=K[c+3|0];g=J[a>>2];c=J[g+24>>2]+1|0; -d=c;c=J[g+16>>2];d=d>>>0>>0?d:0;J[g+24>>2]=d;r=J[g+4>>2]+((d>>>0>2]?d:c+(d^-1)|0)<<2)|0;j=K[r+2|0];f=K[r+1|0];g=K[r|0];I=q;p=p&255;d=256-p|0;q=n&255;c=256-q|0;n=P(d,c);L=k;k=P(d,q);d=P(c,p);c=P(p,q);H[b+3|0]=(((P(I,n)+P(L,k)|0)+P(d,h)|0)+P(c,K[r+3|0])|0)+32768>>>16;H[b+2|0]=(((P(n,B)+P(k,E)|0)+P(d,l)|0)+P(c,g)|0)+32768>>>16;H[b+1|0]=(((P(n,A)+P(k,D)|0)+P(d,G)|0)+P(c,f)|0)+32768>>>16;H[b|0]=(((P(n,z)+P(k,C)|0)+P(d,F)|0)+P(c,j)|0)+32768>>>16;f=J[a+4>>2];c=J[f+16>>2]+J[f+12>>2]|0;J[f+16>> -2]=c;d=J[f+20>>2]+J[f+8>>2]|0;J[f+20>>2]=d;if((c|0)>0){d=d+1|0;J[f+20>>2]=d;J[f+16>>2]=c-J[f+4>>2]}c=J[f+36>>2]+J[f+32>>2]|0;J[f+36>>2]=c;g=J[f+40>>2]+J[f+28>>2]|0;J[f+40>>2]=g;if((c|0)>0){g=g+1|0;J[f+40>>2]=g;J[f+36>>2]=c-J[f+24>>2]}b=b+4|0;e=e-1|0;if(e)continue;break}}function e3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0;g=J[a+4>>2];f=J[g>>2];t=O[f+32>>3];u=O[f>>3];y=O[f+16>>3];v=O[f+40>>3];w=O[f+8>>3]; -o=O[a+16>>3];m=O[f+24>>3];i=O[a+24>>3];l=(e|0)<=1?1:e;J[g+24>>2]=l;J[g+4>>2]=l;s=o+ +(c|0);o=m;m=i+ +(d|0);x=o*m;i=(v+(w*s+x))*256;i=i+(i<0?-.5:.5);a:{if(R(i)<2147483648){d=~~i;break a}d=-2147483648}J[g+40>>2]=d;o=m*y;i=(t+(s*u+o))*256;i=i+(i<0?-.5:.5);b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}J[g+20>>2]=c;m=s+ +(e>>>0);i=(v+(m*w+x))*256;i=i+(i<0?-.5:.5);c:{if(R(i)<2147483648){k=~~i;break c}k=-2147483648}f=k-d|0;d=(f|0)/(l|0)|0;h=f-P(d,l)|0;j=(h|0)<=0;J[g+28>>2]=d-j;i=(t+(m*u+o))*256;i=i+ -(i<0?-.5:.5);d:{if(R(i)<2147483648){d=~~i;break d}d=-2147483648}d=d-c|0;c=(d|0)/(l|0)|0;k=c;f=d-P(c,l)|0;c=(f|0)<=0;J[g+8>>2]=k-c;d=h+(j?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e;c=J[a+4>>2];g=J[c+40>>2];d=J[c+20>>2];while(1){c=J[a+36>>2];h=J[a>>2];n=d-J[a+32>>2]|0;f=n>>8;J[h+8>>2]=f;p=g-c|0;g=(J[h+32>>2]+(p>>8)>>>0)%M[h+28>>2]|0;J[h+36>>2]=g;c=J[J[h>>2]>>2];d=J[c+4>>2];c=J[c+16>>2];k=f+J[h+20>>2]|0;f=J[h+16>>2];j=(k>>>0)%(f>>>0)|0;J[h+24>>2]=j;g=d+P(c,g)|0;J[h+ -4>>2]=g;d=J[h+12>>2];c=g+((d>>>0>j>>>0?j:f+(j^-1)|0)<<2)|0;z=K[c|0];A=K[c+1|0];B=K[c+2|0];q=K[c+3|0];c=j+1|0;c=c>>>0>>0?c:0;J[h+24>>2]=c;c=g+((c>>>0>>0?c:f+(c^-1)|0)<<2)|0;C=K[c|0];D=K[c+1|0];E=K[c+2|0];k=K[c+3|0];h=J[a>>2];c=J[h+36>>2]+1|0;f=c>>>0>2]?c:0;J[h+36>>2]=f;c=J[J[h>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];d=J[h+16>>2];j=(J[h+20>>2]+J[h+8>>2]>>>0)%(d>>>0)|0;J[h+24>>2]=j;c=g+P(c,f)|0;J[h+4>>2]=c;c=c+((j>>>0>2]?j:d+(j^-1)|0)<<2)|0;F=K[c|0];G=K[c+1|0];l=K[c+2|0];h=K[c+3|0];g= -J[a>>2];c=J[g+24>>2]+1|0;d=c;c=J[g+16>>2];d=d>>>0>>0?d:0;J[g+24>>2]=d;r=J[g+4>>2]+((d>>>0>2]?d:c+(d^-1)|0)<<2)|0;j=K[r|0];f=K[r+1|0];g=K[r+2|0];I=q;p=p&255;d=256-p|0;q=n&255;c=256-q|0;n=P(d,c);L=k;k=P(d,q);d=P(c,p);c=P(p,q);H[b+3|0]=(((P(I,n)+P(L,k)|0)+P(d,h)|0)+P(c,K[r+3|0])|0)+32768>>>16;H[b+2|0]=(((P(n,B)+P(k,E)|0)+P(d,l)|0)+P(c,g)|0)+32768>>>16;H[b+1|0]=(((P(n,A)+P(k,D)|0)+P(d,G)|0)+P(c,f)|0)+32768>>>16;H[b|0]=(((P(n,z)+P(k,C)|0)+P(d,F)|0)+P(c,j)|0)+32768>>>16;f=J[a+4>>2];c=J[f+16>> -2]+J[f+12>>2]|0;J[f+16>>2]=c;d=J[f+20>>2]+J[f+8>>2]|0;J[f+20>>2]=d;if((c|0)>0){d=d+1|0;J[f+20>>2]=d;J[f+16>>2]=c-J[f+4>>2]}c=J[f+36>>2]+J[f+32>>2]|0;J[f+36>>2]=c;g=J[f+40>>2]+J[f+28>>2]|0;J[f+40>>2]=g;if((c|0)>0){g=g+1|0;J[f+40>>2]=g;J[f+36>>2]=c-J[f+24>>2]}b=b+4|0;e=e-1|0;if(e)continue;break}}function EOa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;F=bc-256|0;bc=F;g=a;while(1){a:{i=g; -d=J[(k<<2)+b>>2]+c|0;n=K[d+9|0];o=K[d+6|0];e=n+o|0;q=K[d+14|0];l=K[d+1|0];h=q+l|0;f=e+h|0;j=K[d+10|0];m=K[d+5|0];p=j+m|0;s=K[d+13|0];t=K[d+2|0];r=s+t|0;u=p+r|0;v=K[d+8|0];w=K[d+7|0];x=v+w|0;y=K[d+15|0];z=K[d|0];A=y+z|0;B=x+A|0;C=K[d+11|0];D=K[d+4|0];E=C+D|0;G=K[d+3|0];H=K[d+12|0];d=G+H|0;I=E+d|0;J[g+16>>2]=(P(f-u|0,4433)+P(B-I|0,10703)|0)+1024>>11;J[g>>2]=(B+(f+(u+I|0)|0)<<2)+-8192;f=A-x|0;p=r-p|0;r=d-E|0;e=h-e|0;d=(P(f-p|0,11363)+P(r-e|0,2260)|0)+1024|0;J[g+24>>2]=(d+P(r,-8697)|0)+P(f,-1730)>>11; -J[g+8>>2]=(d+P(p,17799)|0)+P(e,11893)>>11;d=m-j|0;e=D-C|0;h=G-H|0;f=t-s|0;j=(P(d-e|0,3363)+P(h+f|0,-11086)|0)+1024|0;n=o-n|0;o=l-q|0;q=P(n+e|0,-10217)+P(o+h|0,-5461)|0;p=q+((j+P(h,8728)|0)+P(e,17760)|0)|0;l=e;e=w-v|0;m=h;h=z-y|0;l=P(l-e|0,7350)+P(m+h|0,8956)|0;J[g+28>>2]=p+l>>11;m=(j+P(f,-9222)|0)+P(d,10055)|0;j=P(n-d|0,11529)+P(f+o|0,1136)|0;d=P(d+e|0,5461)+P(f+h|0,10217)|0;J[g+20>>2]=(m+j|0)+d>>11;f=P(n-e|0,3363)+P(h+o|0,11086)|0;J[g+12>>2]=(f+(j+((q+P(o,589)|0)+P(n,-13631)|0)|0)|0)+1024>>11;J[g+ -4>>2]=(l+(f+((d+P(h,-18730)|0)+P(e,6387)|0)|0)|0)+1024>>11;e=k-7|0;k=k+1|0;g=F;d=7;b:switch(e|0){case 0:continue;case 8:break a;default:break b}g=i+32|0;continue}break}while(1){e=J[g+32>>2];h=J[a+192>>2];b=e+h|0;n=J[g+192>>2];o=J[a+32>>2];c=n+o|0;i=b+c|0;k=J[g+64>>2];f=J[a+160>>2];j=k+f|0;q=J[g+160>>2];l=J[a+64>>2];m=q+l|0;p=j+m|0;s=J[g>>2];t=J[a+224>>2];r=s+t|0;u=J[g+224>>2];v=J[a>>2];w=u+v|0;x=r+w|0;y=J[g+96>>2];z=J[a+128>>2];A=y+z|0;B=J[g+128>>2];C=J[a+96>>2];D=B+C|0;E=A+D|0;J[a+128>>2]=(P(i-p| -0,4433)+P(x-E|0,10703)|0)+65536>>17;J[a>>2]=(x+(i+(p+E|0)|0)|0)+8>>4;i=w-r|0;j=m-j|0;m=D-A|0;c=c-b|0;b=(P(i-j|0,11363)+P(m-c|0,2260)|0)+65536|0;J[a+192>>2]=(b+P(m,-8697)|0)+P(i,-1730)>>17;J[a+64>>2]=(b+P(j,17799)|0)+P(c,11893)>>17;b=f-k|0;c=z-y|0;i=C-B|0;k=l-q|0;f=(P(b-c|0,3363)+P(i+k|0,-11086)|0)+65536|0;e=h-e|0;h=o-n|0;n=P(e+c|0,-10217)+P(h+i|0,-5461)|0;j=n+((f+P(i,8728)|0)+P(c,17760)|0)|0;l=c;c=t-s|0;m=i;i=v-u|0;o=P(l-c|0,7350)+P(m+i|0,8956)|0;J[a+224>>2]=j+o>>17;l=(f+P(k,-9222)|0)+P(b,10055)| -0;f=P(e-b|0,11529)+P(h+k|0,1136)|0;b=P(b+c|0,5461)+P(i+k|0,10217)|0;J[a+160>>2]=(l+f|0)+b>>17;k=P(e-c|0,3363)+P(h+i|0,11086)|0;J[a+96>>2]=(k+(f+((n+P(h,589)|0)+P(e,-13631)|0)|0)|0)+65536>>17;J[a+32>>2]=(o+(k+((b+P(i,-18730)|0)+P(c,6387)|0)|0)|0)+65536>>17;b=d;d=d-1|0;g=g+4|0;a=a+4|0;if(b)continue;break}bc=F+256|0}function nab(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;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;s=1;a:{if(!J[a+16>>2])break a;n=J[a+20>>2];if(!n)break a; -m=O[b>>3];l=O[c>>3];h=O[e>>3];o=-O[f>>3];i=-O[g>>3];e=bc-16|0;bc=e;j=O[d>>3];if(!(j<=0|h<=0)){a=J[n+4>>2];b=J[a>>2];b:{c:{if(b){if(!(i<360))break b;b=b-1|0;if(K[J[J[a+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]&64)break c;break b}if(!(i<360))break b}k=o*3.141592653589793/180;p=He(k);r=xe(k);k=h*.5;q=p;p=j*.5;q=Cf(r/k,q/p);H[a+25|0]=1;J[e+12>>2]=0;t=Ke(a,e+12|0),u=1,H[t|0]=u;r=xe(q);b=J[e+12>>2];O[b+8>>3]=k+l-k*r;t=b,v=p*He(q)+(p+m),O[t>>3]=v;J[a>>2]=J[a>>2]+1}d:{if(R(i)>=360){a=bc-16|0;bc=a;b=J[n+4>>2]; -H[b+25|0]=1;J[a+12>>2]=0;c=a+12|0;t=Ke(b,c),u=1,H[t|0]=u;d=J[a+12>>2];k=h*.5;h=k+l;O[d+8>>3]=h;j=j*.5;i=j+m;m=i-j;O[d>>3]=m;J[b>>2]=J[b>>2]+1;b=J[n+4>>2];J[a+12>>2]=0;t=Ke(b,c),u=4,H[t|0]=u;d=J[a+12>>2];o=k*.552;p=o+h;O[d+8>>3]=p;O[d>>3]=m;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Ke(b,c),u=4,H[t|0]=u;d=J[a+12>>2];l=h+k;O[d+8>>3]=l;q=j*.552;r=i-q;O[d>>3]=r;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Ke(b,c),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=l;O[d>>3]=i;J[b>>2]=J[b>>2]+1;b=J[n+4>>2];J[a+12>>2]=0;t=Ke(b,a+12|0),u=4, -H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=l;l=q+i;O[d>>3]=l;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Ke(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=p;j=i+j;O[d>>3]=j;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Ke(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=h;O[d>>3]=j;J[b>>2]=J[b>>2]+1;b=J[n+4>>2];J[a+12>>2]=0;t=Ke(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];o=h-o;O[d+8>>3]=o;O[d>>3]=j;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Ke(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];j=h-k;O[d+8>>3]=j;O[d>>3]=l;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Ke(b,a+12|0), -u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=j;O[d>>3]=i;J[b>>2]=J[b>>2]+1;b=J[n+4>>2];J[a+12>>2]=0;t=Ke(b,c),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=j;O[d>>3]=r;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Ke(b,c),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=o;O[d>>3]=m;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Ke(b,c),u=4,H[t|0]=u;c=J[a+12>>2];O[c+8>>3]=h;O[c>>3]=m;J[b>>2]=J[b>>2]+1;bc=a+16|0;break d}j=j*.5;m=j+m;k=h*.5;l=k+l;h=360-(o+i);a=i>0;i=360-o;if(i<0)while(1){i=i+360;if(i<0)continue;break}if(i>360)while(1){i=i+-360;if(i>360)continue; -break}if(h<0)while(1){h=h+360;if(h<0)continue;break}if(h>=360)while(1){h=h+-360;if(h>=360)continue;break}e:{if(!a){if(h>=i){Xt(n,m,l,j,k,i,h,0);break e}Xt(n,m,l,j,k,i,360,0);Xt(n,m,l,j,k,0,h,0);break e}if(h<=i){Xt(n,m,l,j,k,i,h,1);break e}Xt(n,m,l,j,k,i,0,1);Xt(n,m,l,j,k,360,h,1)}}}bc=e+16|0;s=0}return s|0}function Jga(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=bc-16|0;bc=l;m=dF(g);p=UE(g);g=p;gc[J[J[g>>2]+20>>2]](l+4|0,g);J[f>>2]=d; -a:{b:{c:{i=a;g=K[i|0];switch(g-43|0){case 0:case 2:break c;default:break b}}J[695492]=0;g=aa(6668,m|0,g<<24>>24)|0;i=J[695492];J[695492]=0;if((i|0)==1)break a;i=J[f>>2];J[f>>2]=i+4;J[i>>2]=g;i=a+1|0}d:{g=i;if(!((c-g|0)<=1|K[g|0]!=48|(K[g+1|0]|32)!=120)){J[695492]=0;i=aa(6668,m|0,48)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=H[g+1|0];J[695492]=0;i=aa(6668,m|0,i|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=g+2|0;g=i;while(1){if(c>>> -0<=g>>>0)break d;h=H[g|0];J[695492]=0;pa(6638)|0;j=J[695492];J[695492]=0;e:{if((j|0)==1)break e;J[695492]=0;j=J[695492];J[695492]=0;if((j|0)==1)break e;if(!(h-48>>>0<10|(h|32)-97>>>0<6))break d;g=g+1|0;continue}break}break a}while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[695492]=0;pa(6638)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[695492]=0;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(h-48>>>0>=10)break d;g=g+1|0;continue}}f:{if(K[l+15|0]>>>7|0)h=J[l+8>>2];else h=K[l+15|0]&127;if(!h){h=J[f>> -2];J[695492]=0;ha(6653,m|0,i|0,g|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;J[f>>2]=J[f>>2]+(g-i<<2);break f}J[695492]=0;No(i,g);h=J[695492];J[695492]=0;if((h|0)==1)break a;J[695492]=0;q=$(6650,p|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;j=i;while(1){if(g>>>0<=j>>>0){h=J[f>>2];J[695492]=0;Iu((i-a<<2)+d|0,h);i=J[695492];J[695492]=0;if((i|0)!=1)break f;break a}h=l+4|0;g:{if(K[h+11|0]>>>7|0){k=J[h>>2];break g}k=h}r=H[k+o|0]<=0;if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(r|H[k+o|0]!=(n| -0))){n=J[f>>2];J[f>>2]=n+4;J[n>>2]=q;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;o=(h-1>>>0>o>>>0)+o|0;n=0}h=H[j|0];J[695492]=0;h=aa(6668,m|0,h|0)|0;k=J[695492];J[695492]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+4;J[k>>2]=h;j=j+1|0;n=n+1|0;continue}break}break a}h:{while(1){if(c>>>0>g>>>0){i=K[g|0];if((i|0)==46){J[695492]=0;i=$(6654,p|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;h=J[f>>2];j=h+4|0;J[f>>2]=j;J[h>>2]=i;g=g+1|0;break h}J[695492]=0;i=aa(6668,m|0,i<<24>>24)|0;h=J[695492];J[695492]= -0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;g=g+1|0;continue}break}j=J[f>>2]}J[695492]=0;ha(6653,m|0,g|0,c|0,j|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break a;i=f;f=J[f>>2]+(c-g<<2)|0;J[i>>2]=f;J[e>>2]=(b|0)==(c|0)?f:(b-a<<2)+d|0;ad(l+4|0);bc=l+16|0;return}a=Z()|0;ad(l+4|0);ba(a|0);B()}function iJa(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;h=bc-32|0;bc=h;J[a+40>>2]=13;J[a+1536>>2]=13;J[a+1512>>2]=13;J[a+1488>>2]=13;J[a+1464>>2]=13;J[a+1440>>2]=13;J[a+1416>> -2]=13;J[a+1392>>2]=13;J[a+1368>>2]=13;J[a+1344>>2]=13;J[a+1320>>2]=13;J[a+1296>>2]=13;J[a+1272>>2]=13;J[a+1248>>2]=13;J[a+1224>>2]=13;J[a+1200>>2]=13;J[a+1176>>2]=13;J[h+8>>2]=13;J[a+16>>2]=-1;J[a+28>>2]=1;J[a+32>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;wc(a+60|0,0,1056);J[a+1528>>2]=-1;J[a+1504>>2]=-1;J[a+1480>>2]=-1;J[a+1456>>2]=-1;J[a+1432>>2]=-1;J[a+1408>>2]=-1;J[a+1384>>2]=-1;J[a+1360>>2]=-1;J[a+1336>>2]=-1;J[a+1312>>2]=-1;J[a+1288>>2]=-1;J[a+1264>>2]=-1;J[a+1240>>2]=-1;J[a+1216>>2]=-1;J[a+1192>>2]=-1; -J[a+1168>>2]=-1;J[a+1116>>2]=65532;J[a+1120>>2]=0;J[a>>2]=b;m=a,n=gc[J[J[b>>2]+100>>2]](b)|0,J[m+4>>2]=n;a:{b:{c:{d:{e:{if(c){b=MX(a);J[a+28>>2]=b;if(b)break e;J[a+32>>2]=3;break a}f=bc-1040|0;bc=f;b=1;f:{g:{while(1){c=J[a>>2];gc[J[J[c>>2]+56>>2]](c,b<<10,-1);c=J[a>>2];c=gc[J[J[c>>2]+52>>2]](c)|0;e=J[a>>2];g=gc[J[J[e>>2]+40>>2]](e,f,1024)|0;H[g+f|0]=0;if((g|0)>=9){e=g-9|0;while(1){if(!kd(e+f|0,780559,9))break g;d=(e|0)>0;e=e-1|0;if(d)continue;break}}b=b+1|0;if(c)continue;break}b=0;break f}b=(e+f| -0)+9|0;while(1){c=b;b=b+1|0;d=K[c|0];if((d|0)==32|d-9>>>0<5)continue;break}b=0;h:{if(!d)break h;while(1){d=d<<24>>24;if((d&254)-48>>>0>9|((-2147483601-d|0)/10|0)<(b|0))break h;b=(d+P(b,10)|0)-48|0;d=K[c+1|0];c=c+1|0;if(d)continue;break}}J[a+56>>2]=b;b=J[a>>2];m=a,n=gc[J[J[b>>2]+52>>2]](b)+(e-g)|0,J[m+60>>2]=n;b=J[a+56>>2]}bc=f+1040|0;J[h+28>>2]=b;if(!b){J[a+28>>2]=0;J[a+32>>2]=3;break a}c=rc(12);J[c+4>>2]=16;J[c+8>>2]=0;J[695492]=0;b=aa(3376,16,4)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;J[c>> -2]=b;while(1){if(LX(a,h+28|0,c,0))continue;break}b=J[c+8>>2];J[a+68>>2]=b;f=vd(b,4);J[a+64>>2]=f;e=J[c>>2];g=J[a+68>>2];i:{if((g|0)<=0)break i;b=0;if(g>>>0>=4){l=g&-4;while(1){d=b<<2;J[d+f>>2]=J[d+e>>2];i=d|4;J[i+f>>2]=J[e+i>>2];i=d|8;J[i+f>>2]=J[e+i>>2];d=d|12;J[d+f>>2]=J[d+e>>2];b=b+4|0;j=j+4|0;if((j|0)!=(l|0))continue;break}}d=g&3;if(!d)break i;while(1){g=b<<2;J[g+f>>2]=J[e+g>>2];b=b+1|0;k=k+1|0;if((d|0)!=(k|0))continue;break}}J[695492]=0;Gc(e);b=J[695492];J[695492]=0;if((b|0)==1)break c;qc(c); -if(J[a+28>>2])break e;J[a+32>>2]=3;break a}b=h+8|0;Ce(J[a+48>>2],779280,b);if(J[h+8>>2]==9){J[a+20>>2]=J[h+16>>2];J[a+24>>2]=J[h+20>>2];uc(b);break b}uc(h+8|0);b=MX(a);J[a+28>>2]=b;if(b)break b;J[a+32>>2]=3;break a}a=Z()|0;qc(c);ba(a|0);B()}ea(0)|0;yc();B()}J[J[a+48>>2]>>2]=a}bc=h+32|0;return a|0}function udb(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;e=bc-1568|0;bc=e;f=J[a+4>>2];H[e+51|0]=0;i=J[J[f+492>>2]+12>>2];a:{if(!(J[J[f+128>>2]+52>>2]|M[f+16>>2]>c>>>0)){d= -6;break a}h=d&1024?d|3:d;b:{if(!b){g=65536;d=65536;break b}g=J[b+20>>2];d=J[b+16>>2]}J[a+168>>2]=g;J[a+164>>2]=d;J[a+108>>2]=0;J[a+72>>2]=1869968492;k=h&1;H[a+161|0]=!k;d=!(h&3);H[a+160|0]=d;j=e+52|0;d=gc[J[i>>2]](j,f,b,a,J[f+424>>2],J[f+532>>2],d,h>>>16&15,1750)|0;if(d)break a;l=h&1024;H[e+121|0]=l>>>10;J[e+1416>>2]=J[f+404>>2];J[e+1420>>2]=J[f+408>>2];J[e+1424>>2]=J[f+412>>2];J[e+1428>>2]=J[f+416>>2];J[e+1548>>2]=J[f+548>>2];J[e+1552>>2]=J[f+544>>2];d=ex(j,c,e+24|0,e+51|0);if(!d){m=K[a+160|0];c= -e+1440|0;d=J[c+4>>2];J[e+40>>2]=J[c>>2];J[e+44>>2]=d;c=J[e+1436>>2];J[e+32>>2]=J[e+1432>>2];J[e+36>>2]=c;c=J[e+1452>>2];g=J[e+1448>>2];gc[J[i+4>>2]](j);J[a+124>>2]=J[a+124>>2]&1|4;c:{if(l){b=J[a+156>>2];d=J[e+84>>2];J[a+32>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+92>>2];J[a+40>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+44>>2];J[b+20>>2]=J[e+40>>2];J[b+24>>2]=d;d=J[e+36>>2];J[b+12>>2]=J[e+32>>2];J[b+16>>2]=d;J[b+32>>2]=c;J[b+28>>2]=g;H[b+8|0]=1;break c}d=J[e+92>>2];J[a+40>>2]=(((d>>31)+d|0)+32768& --65536)>>16;d=J[e+92>>2];J[a+56>>2]=(((d>>31)+d|0)+32768&-65536)>>16;H[J[a+156>>2]+8|0]=0;i=h&16;d:{if(i){d=J[f+476>>2]-J[f+468>>2]>>16;J[a+52>>2]=d;break d}d=J[e+96>>2];J[a+52>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+96>>2];d=(((d>>31)+d|0)+32768&-65536)>>16}J[a+72>>2]=1869968492;J[a+60>>2]=d;if(!(!b|L[b+14>>1]>23))J[a+124>>2]=J[a+124>>2]|256;h=a+108|0;e:{if(!(J[e+36>>2]|(J[e+32>>2]!=65536|J[e+44>>2]!=65536)))if(!J[e+40>>2])break e;uo(h,e+32|0);n=a,o=Pc(J[a+40>>2],J[e+32>>2]),J[n+40>>2]=o;n=a, -o=Pc(J[a+52>>2],J[e+44>>2]),J[n+52>>2]=o}if(c|g){Jh(h,g,c);J[a+40>>2]=g+J[a+40>>2];J[a+52>>2]=c+J[a+52>>2]}if(!(!K[e+51|0]&k)){c=J[a+168>>2];g=J[a+164>>2];f:{if(J[e+124>>2]?m:0)break f;b=J[e+68>>2];d=I[b+2>>1];if((d|0)<=0)break f;d=d&65535;b=J[b+4>>2];while(1){n=b,o=Pc(J[b>>2],g),J[n>>2]=o;n=b,o=Pc(J[b+4>>2],c),J[n+4>>2]=o;b=b+8|0;j=d>>>0>1;d=d-1|0;if(j)continue;break}}n=a,o=Pc(J[a+40>>2],g),J[n+40>>2]=o;n=a,o=Pc(J[a+52>>2],c),J[n+52>>2]=o}Pp(h,e+8|0);b=J[e+8>>2];J[a+24>>2]=J[e+16>>2]-b;c=J[e+12>> -2];d=J[e+20>>2];J[a+36>>2]=d;J[a+32>>2]=b;J[a+28>>2]=d-c;if(!i)break c;gu(a+24|0,J[a+52>>2])}J[a+136>>2]=J[e+24>>2];J[a+140>>2]=J[e+28>>2];d=0;b=J[J[f+128>>2]+52>>2];if(!b)break a;gc[J[J[b>>2]+4>>2]](J[b+4>>2],e+24|0);J[a+136>>2]=0;J[a+140>>2]=0;break a}gc[J[i+4>>2]](e+52|0)}bc=e+1568|0;return d|0}function Zza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;J[a>>2]=2386220;J[a+4>>2]=0;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;H[a+16|0]=K[b+16|0];J[a+20>>2]=0;J[a+24>>2]=J[682146]; -h=a+20|0;a:{b:{c=J[b+20>>2];c:{d:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,d+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break d;b=Z()|0;break c}J[d+12>>2]=0}J[695492]=0;aa(4993,h|0,d+12|0)|0;c=J[695492];J[695492]=0;e:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break e;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e}break a}b=Z()|0;vc(d+12|0);break c}c=J[a+20>>2];c=J[(c?c+12|0:2728584)>> -2];J[a+28>>2]=0;J[a+24>>2]=c;J[a+32>>2]=J[682146];f=a+28|0;c=J[b+28>>2];f:{g:{if(c){g=J[J[c>>2]+28>>2];J[695492]=0;ca(g|0,d+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break g;b=Z()|0;break f}J[d+12>>2]=0}J[695492]=0;aa(4993,f|0,d+12|0)|0;c=J[695492];J[695492]=0;h:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break h;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;e=J[695492];J[695492]=0;if((e|0)!=1){if(g)break h;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break h}break a}b=Z()|0;vc(d+ -12|0);break f}c=J[a+28>>2];c=J[(c?c+12|0:2728584)>>2];J[a+36>>2]=0;J[a+32>>2]=c;J[a+40>>2]=J[682146];g=a+36|0;c=J[b+36>>2];i:{j:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break j;b=Z()|0;break i}J[d+12>>2]=0}J[695492]=0;aa(4993,g|0,d+12|0)|0;c=J[695492];J[695492]=0;k:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break k;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;i=J[695492];J[695492]=0;if((i|0)!=1){if(e)break k;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]= -0;if((c|0)!=1)break k}break a}b=Z()|0;vc(d+12|0);break i}c=J[a+36>>2];c=J[(c?c+12|0:2728584)>>2];J[a+44>>2]=0;J[a+40>>2]=c;J[a+48>>2]=J[682146];c=a+44|0;e=J[b+44>>2];l:{m:{if(e){i=J[J[e>>2]+28>>2];J[695492]=0;ca(i|0,d+12|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break m;b=Z()|0;break l}J[d+12>>2]=0}J[695492]=0;aa(4993,c|0,d+12|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break b;J[695492]=0;h=J[c+4>>2]-1|0;J[c+4>>2]=h;f=J[695492];J[695492]=0;if((f|0)!=1){if(h)break b; -J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b}break a}b=Z()|0;vc(d+12|0)}sc(c)}sc(g)}sc(f)}sc(h);ed(a);ba(b|0);B()}c=J[a+44>>2];J[a+48>>2]=J[(c?c+12|0:2728584)>>2];c=J[b+56>>2];J[a+52>>2]=J[b+52>>2];J[a+56>>2]=c;bc=d+16|0;return a|0}ea(0)|0;yc();B()}function oHa(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=bc-16|0;bc=f;if(b){if(a){if(d){if(J[a+8>>2]==16)h=J[a+156>>2]+P(J[a+192>>2],5644)|0;else h=J[a+12>>2];a:{if(c>>>0<=1){Hc(d,1,2357143,0);a= -0;break a}ld(b,f+12|0,2);if(J[f+12>>2]){Hc(d,2,2357169,0);a=1;break a}if(c>>>0<=6){Hc(d,1,2357143,0);a=0;break a}ld(b+2|0,f+8|0,1);j=J[h+5628>>2];a=j;b:{c:{d:{e=J[h+5632>>2];if(!e)break d;i=J[f+8>>2];while(1){if((i|0)==J[a>>2])break d;a=a+20|0;g=g+1|0;if((e|0)!=(g|0))continue;break}break c}if((e|0)!=(g|0))break b}if((e|0)==J[h+5636>>2]){a=e+10|0;J[h+5636>>2]=a;a=Tg(j,P(a,20));if(!a){qc(J[h+5628>>2]);J[h+5636>>2]=0;J[h+5628>>2]=0;J[h+5632>>2]=0;Hc(d,1,2357215,0);a=0;break a}J[h+5628>>2]=a;e=J[h+5632>> -2];wc(a+P(e,20)|0,0,P(J[h+5636>>2]-e|0,20));j=J[h+5628>>2];e=J[h+5632>>2]}a=P(e,20)+j|0;n=1}J[a>>2]=J[f+8>>2];ld(b+3|0,f+12|0,2);if(J[f+12>>2]){Hc(d,2,2357169,0);a=1;break a}ld(b+5|0,f+4|0,2);e=J[f+4>>2];if(e>>>0>=2){Hc(d,2,2357253,0);a=1;break a}c=c-7|0;if(e){b=b+7|0;j=0;while(1){if(c>>>0<=2){Hc(d,1,2357143,0);a=0;break a}ld(b,f+12|0,1);if(J[f+12>>2]!=1){Hc(d,2,2357297,0);a=1;break a}ld(b+1|0,f,2);g=J[f>>2];e=g&32767;J[a+4>>2]=e;i=c-3|0;g=(g>>>15|0)+1|0;k=P(g,e)+2|0;if(i>>>0>>0){Hc(d,1,2357143, -0);a=0;break a}b=b+3|0;c=0;if(e)while(1){ld(b,f+12|0,g);if(J[f+12>>2]!=(c|0)){Hc(d,2,2357363,0);a=1;break a}b=b+g|0;c=c+1|0;if(c>>>0>2])continue;break}ld(b,f,2);c=J[f>>2];e=c&32767;J[f>>2]=e;if((e|0)!=J[a+4>>2]){Hc(d,2,2357417,0);a=1;break a}g=(c>>>15|0)+1|0;l=P(g,e)+3|0;k=i-k|0;if(l>>>0>k>>>0){Hc(d,1,2357143,0);a=0;break a}b=b+2|0;c=0;if(e)while(1){ld(b,f+12|0,g);if(J[f+12>>2]!=(c|0)){Hc(d,2,2357363,0);a=1;break a}b=b+g|0;c=c+1|0;if(c>>>0>2])continue;break}ld(b,f+12|0,3);e=J[f+12>> -2];J[a+8>>2]=0;J[a+12>>2]=0;H[a+16|0]=!(e&65536)|K[a+16|0]&254;i=e&255;J[f+8>>2]=i;e:{if(!i)break e;m=J[h+5620>>2];if(m){c=J[h+5616>>2];g=0;while(1){if((i|0)==J[c+8>>2]){J[a+8>>2]=c;break e}c=c+20|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}Hc(d,1,2357143,0);a=0;break a}e=e>>>8&255;J[f+8>>2]=e;f:{if(!e)break f;i=J[h+5620>>2];if(i){c=J[h+5616>>2];g=0;while(1){if((e|0)==J[c+8>>2]){J[a+12>>2]=c;break f}c=c+20|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}Hc(d,1,2357143,0);a=0;break a}c=k-l|0;b=b+3|0;j=j+1| -0;if(j>>>0>2])continue;break}}if(c){Hc(d,1,2357143,0);a=0;break a}a=1;if(!n)break a;J[h+5632>>2]=J[h+5632>>2]+1;a=1}bc=f+16|0;return a|0}fa(2346590,2346358,6008,2357126);B()}fa(2346477,2346358,6007,2357126);B()}fa(2353829,2346358,6006,2357126);B()}function f0(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=b;j=d;b=0;e=-1;a:{if(!a|!f)break a;i=a;b:{c:{a=J[a+12>>2];if(a){e=a;d:{while(1){d=J[e+16>>2];if(d)while(1){if(d+20>>>0<=f>>>0&M[d+4>>2]>=f>>>0)break d;d=J[d>>2];if(d)continue;break}e=J[e+20>> -2];if(e)continue;break}e=-1;f=le(a,f,-1);if(!f)break a}e:{if(!c)break e;a=J[i+12>>2];e=a;while(1){if(!e){b=c;break e}d=J[e+16>>2];if(d)while(1){if(!(M[d+4>>2]>>0|d+20>>>0>c>>>0)){b=c;break e}d=J[d>>2];if(d)continue;break}e=J[e+20>>2];if(e)continue;break}e=-1;b=le(a,c,-1);if(!b)break a}if(!f)break c;c=b}e=K[f|0];d=P(e,30);if(e){a=f;while(1){d=(e<<24>>24)+((d<<5)+(d>>>3|0)|0)^d;e=K[a+1|0];a=a+1|0;if(e)continue;break}}b=c;break b}f=0;g=1;d=0}d=(d<<5)+(d>>>3|0)^d;f:{if(!b)break f;e=K[b|0];if(!e)break f; -a=b;while(1){d=((e<<24>>24)+(d>>>3|0)|0)+(d<<5)^d;e=K[a+1|0];a=a+1|0;if(e)continue;break}}a=J[i+12>>2];d=J[i>>2]+P((((d<<5)+(d>>>3|0)^d)>>>0)%M[i+4>>2]|0,24)|0;k=J[d+20>>2];g:{if(!k){c=0;break g}e=J[d>>2];h:{i:{if(a){if(e)while(1){a=d;d=e;if(!(J[a+12>>2]|(J[a+4>>2]!=(f|0)|J[a+8>>2]!=(b|0)))){J[a+16>>2]=j;e=0;break a}e=J[d>>2];if(e)continue;break}if(J[d+4>>2]!=(f|0)|J[d+8>>2]!=(b|0))break h;break i}if(e)while(1){c=d;d=e;j:{e=J[c+4>>2];if((f|0)!=(e|0)){a=f;if(!e|g)break j;while(1){h=K[e|0];if((h|0)!= -K[a|0])break j;a=a+1|0;e=e+1|0;if(h)continue;break}}e=J[c+8>>2];if((e|0)!=(b|0)){if(!b)break j;a=b;if(!e)break j;while(1){h=K[e|0];if((h|0)!=K[a|0])break j;a=a+1|0;e=e+1|0;if(h)continue;break}}if(J[c+12>>2])break j;J[c+16>>2]=j;e=0;break a}e=J[d>>2];if(e)continue;break}e=J[d+4>>2];if((f|0)!=(e|0)){if(!e|g)break h;a=f;while(1){c=K[e|0];if((c|0)!=K[a|0])break h;a=a+1|0;e=e+1|0;if(c)continue;break}}e=J[d+8>>2];if((e|0)!=(b|0)){if(!b|!e)break h;a=b;while(1){c=K[e|0];if((c|0)!=K[a|0])break h;a=a+1|0;e= -e+1|0;if(c)continue;break}}}if(J[d+12>>2])break h;J[d+16>>2]=j;e=0;break a}c=d;e=-1;d=gc[J[659447]](24)|0;if(!d)break a;a=J[i+12>>2]}k:{if(a){J[d+8>>2]=b;J[d+4>>2]=f;break k}a=0;e=0;l:{if(g)break l;e=f;while(1){g=e;e=e+1|0;if(K[g|0])continue;break}e=0;g=g-f|0;if((g|0)<0)break l;h=gc[J[659450]](g+1|0)|0;if(!h){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break l}e=tc(h,f,g);H[g+e|0]=0}J[d+4>>2]=e;m:{if(!b)break m;f=b;while(1){e=f;f=e+1|0;if(K[e|0])continue;break}f=e-b|0;if((f|0)<0)break m;e=gc[J[659450]](f+ -1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break m}a=tc(e,b,f);H[f+a|0]=0}J[d+8>>2]=a}J[d+16>>2]=j;J[d+12>>2]=0;J[d+20>>2]=1;e=0;J[d>>2]=0;J[i+8>>2]=J[i+8>>2]+1;if(!k)break a;J[c>>2]=d}return e}function AWa(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;e=bc-96|0;bc=e;J[e+92>>2]=7;a:{b:{c:{b=J[a+104>>2];if(gc[J[J[b>>2]+444>>2]](b,e+92|0)|0)break c;b=rc(24);J[695492]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=7;J[b>>2]=349976;J[b+16>>2]=0;J[b+20>>2]=0;f=J[695492];J[695492]=0;d:{if((f| -0)!=1){g=J[c+4>>2];f=Qc(g);if(f>>>0>=2147483632)break a;e:{if(f>>>0<=10){H[e+19|0]=f;c=e+8|0;break e}h=(f|15)+1|0;c=rc(h);J[e+16>>2]=h|-2147483648;J[e+8>>2]=c;J[e+12>>2]=f}j=Zc(c,g,f)+f|0,k=0,H[j|0]=k;J[695492]=0;da(3262,b|0,e+8|0);c=J[695492];J[695492]=0;f:{g:{if((c|0)!=1){if(H[e+19|0]<0)qc(J[e+8>>2]);J[e+72>>2]=13;if(!d|J[d>>2]!=9)break f;if(J[hf(d,J[a+164>>2],e+72|0,0)>>2]!=8)break f;c=J[e+80>>2];d=gc[J[J[c>>2]+76>>2]](c)|0;J[e+56>>2]=13;c=e+56|0;f=J[Bc(d,815721,c,0)>>2];h=J[e+64>>2];uc(c);d=J[Bc(d, -815996,c,0)>>2];i=J[e+64>>2];uc(c);c=J[e+80>>2];g=gc[J[J[c>>2]+72>>2]](c)|0;gc[J[J[g>>2]+20>>2]](g);h=(d|0)==1?i:(f|0)==1?h:0;f=rc(h);h:{if((h|0)<=0)break h;d=f;if(h>>>0>=4){i=h&-4;c=0;while(1){j=d,k=gc[J[J[g>>2]+28>>2]](g)|0,H[j|0]=k;j=d,k=gc[J[J[g>>2]+28>>2]](g)|0,H[j+1|0]=k;j=d,k=gc[J[J[g>>2]+28>>2]](g)|0,H[j+2|0]=k;j=d,k=gc[J[J[g>>2]+28>>2]](g)|0,H[j+3|0]=k;d=d+4|0;c=c+4|0;if((i|0)!=(c|0))continue;break}}i=h&3;if(!i)break h;c=0;while(1){j=d,k=gc[J[J[g>>2]+28>>2]](g)|0,H[j|0]=k;d=d+1|0;c=c+1|0; -if((i|0)!=(c|0))continue;break}}c=e+8|0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[695492]=0;d=ha(2238,c|0,f|0,h|0,0)|0;f=J[695492];J[695492]=0;i:{if((f|0)==1)break i;if(!d)break g;J[695492]=0;d=J[c+16>>2];f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;f=J[c+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break i;J[695492]= -0;g=J[c+8>>2];h=J[695492];J[695492]=0;if((h|0)==1)break i;J[695492]=0;ia(3263,b|0,d|0,f|0,g|0);d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;d=J[695492];J[695492]=0;if((d|0)!=1)break g}a=Z()|0;Ng(c);ba(a|0);B()}d=Z()|0;if(H[e+19|0]>=0)break d;qc(J[e+8>>2]);ba(d|0);B()}Ng(c)}uc(e+ -72|0);a=J[a+104>>2];a=gc[J[J[a>>2]+448>>2]](a,b)|0;gc[J[J[b>>2]+4>>2]](b);if(a)break c;a=1;break b}d=Z()|0;qc(b)}ba(d|0);B()}a=0}bc=e+96|0;return a|0}Id(e+8|0);B()}function X$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!a)return 0;if(b>>>0>=257){J[a>>2]=1;J[a+124>>2]=0;b=K[5854]|K[5855]<<8|(K[5856]<<16|K[5857]<<24);c=K[5850]|K[5851]<<8|(K[5852]<<16|K[5853]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;b=K[5862]|K[5863]<< -8|(K[5864]<<16|K[5865]<<24);c=K[5858]|K[5859]<<8|(K[5860]<<16|K[5861]<<24);H[a+300|0]=c;H[a+301|0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304|0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[5869]|K[5870]<<8|(K[5871]<<16|K[5872]<<24);c=K[5865]|K[5866]<<8|(K[5867]<<16|K[5868]<<24);H[a+307|0]=c;H[a+308|0]=c>>>8;H[a+309|0]=c>>>16;H[a+310|0]=c>>>24;H[a+311|0]=b;H[a+312|0]=b>>>8;H[a+313|0]=b>>>16;H[a+314|0]=b>>>24;return 0}d=b>>>0<=1?1:b;J[a+124>>2]=d;d=P(d,80)+80|0;f=J[a+264>>2];a:{if(!f){d= -zc(d);break a}d=Vd(f,d)}J[a+264>>2]=d;b:{if(d){if(!J[a+124>>2])break b;b=b-1|0;if(b>>>0<2){while(1){f=P(e,80);b=f+d|0;wc(b+8|0,0,72);J[b+64>>2]=0;J[b+68>>2]=1081073664;J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+268>>2];J[b+24>>2]=J[a+116>>2];O[b+16>>3]=O[a+136>>3];d=J[a+264>>2];b=f+d|0;J[b+64>>2]=0;J[b+68>>2]=1081073664;g=(+(e>>>0)+ +(c|0)*4294967296)*255;O[b+48>>3]=g;O[b+40>>3]=g;O[b+32>>3]=g;J[b+8>>2]=4;e=e+1|0;c=e?c:c+1|0;if(!c&M[a+124>>2]>e>>>0)continue;break}break b}h=+(255/(b>>>0)>>> -0);while(1){f=P(e,80);b=f+d|0;wc(b+8|0,0,72);J[b+64>>2]=0;J[b+68>>2]=1081073664;J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+268>>2];J[b+24>>2]=J[a+116>>2];O[b+16>>3]=O[a+136>>3];d=J[a+264>>2];b=f+d|0;J[b+64>>2]=0;J[b+68>>2]=1081073664;g=(+(e>>>0)+ +(c|0)*4294967296)*h;O[b+48>>3]=g;O[b+40>>3]=g;O[b+32>>3]=g;J[b+8>>2]=4;e=e+1|0;c=e?c:c+1|0;if(!c&M[a+124>>2]>e>>>0)continue;break}break b}J[a>>2]=1;J[a+124>>2]=0;b=K[17105]|K[17106]<<8|(K[17107]<<16|K[17108]<<24);c=K[17101]|K[17102]<<8|(K[17103]<< -16|K[17104]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;b=K[17113]|K[17114]<<8|(K[17115]<<16|K[17116]<<24);c=K[17109]|K[17110]<<8|(K[17111]<<16|K[17112]<<24);H[a+300|0]=c;H[a+301|0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304|0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[17120]|K[17121]<<8|(K[17122]<<16|K[17123]<<24);c=K[17116]|K[17117]<<8|(K[17118]<<16|K[17119]<<24);H[a+307|0]=c;H[a+ -308|0]=c>>>8;H[a+309|0]=c>>>16;H[a+310|0]=c>>>24;H[a+311|0]=b;H[a+312|0]=b>>>8;H[a+313|0]=b>>>16;H[a+314|0]=b>>>24;return 0}J[a>>2]=2;return 1}function Tua(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;k=bc-32|0;bc=k;r=J[a+52>>2];o=J[a+16>>2];f=J[a>>2];p=zc(ys(f));a:{if(!p){Nc(J[f+628>>2],J[f>>2],81640,0);break a}Hg(p,0,ys(f));i=1;q=1;b:{c:{d:{e:{f:{g:{h:switch(L[a+28>>1]-1|0){case 0:case 4:e=L[a+30>>1];if(e>>>0>8)break d;e=1<>1];if(e>>>0>8)break d;g=1<>1];if(e>>>0>8)break d;e=1<>1];if(e>>>0>7)break d;e=1<>2]=k+28;Ki(f,278,k+ -16|0);J[k+4>>2]=k+24;J[k>>2]=k+26;Ki(f,530,k);h=bc-80|0;bc=h;i:{j:{if(L[f+138>>1]==1){if(!(K[f+13|0]&64|L[f+90>>1]!=6)){J[h+4>>2]=h+78;J[h>>2]=h+76;ce(f,530,h);g=L[h+78>>1];e=L[h+76>>1];l=P(g,e);if(!l){Nc(J[f+628>>2],J[f>>2],70796,0);e=0;break i}e=(P(L[f+84>>1],P(l+2|0,((e+J[f+56>>2]|0)-1>>>0)/(e>>>0)|0))+7>>>3>>>0)/(g>>>0)|0;break i}g=L[f+98>>1];e=Dzb(J[f+56>>2],0,g,0);l=fc;if(!g|!l)break j;e=J[f>>2];g=J[f+628>>2];J[h+64>>2]=72535;Nc(g,e,73480,h- -64|0);e=0;break j}e=J[f+56>>2]}g=e;m=L[f+84>>1]; -e=Dzb(e,0,m,0);l=(fc|0)!=0;k:{l:{m:{n:{o:{if(m){if(!l)break o;e=J[f>>2];l=J[f+628>>2];J[h+32>>2]=72535;Nc(l,e,73480,h+32|0);m=L[f+84>>1];e=Dzb(m,0,g,0);l=(fc|0)!=0;g=!m;break m}if(e&7)break n;g=1;break m}if(!(e&7))break l;if(!l)break n;e=J[f>>2];g=J[f+628>>2];J[h+48>>2]=72535;Nc(g,e,73480,h+48|0);e=0}e=(e>>>3|0)+1|0;break i}if(g)break k}if(!l)break k;e=J[f>>2];g=J[f+628>>2];J[h+16>>2]=72535;Nc(g,e,73480,h+16|0);e=0}e=e>>>3|0}bc=h+80|0;p:{if(!d)break p;i=o-c|0;l=i>>>0<=o>>>0?i:0;g=q?0:d-1|0;q:{while(1){i= -J[k+28>>2];h=L[k+24>>1];o=J[a+76>>2]+j|0;t=h;i=i-((o>>>0)%(i>>>0)|0)|0;i=i+j>>>0>d>>>0?d-j|0:i;h=(i>>>0)%(h>>>0)|0;m=0;if(!((xs(f,zs(f,o,0),p,P(e,(h?t-h|0:0)+i+(J[a+76>>2]+j>>>0)%M[k+28>>2]|0))|0)>=0|!J[a+4>>2]))break q;gc[r|0](a,(P(c,g)<<2)+b|0,0,g,c,i,l,s,P(e,(J[a+76>>2]+j>>>0)%M[k+28>>2]|0)+p|0);g=(q?i:0-i|0)+g|0;j=i+j|0;if(j>>>0>>0)continue;break}m=1}i=m;if(!n)break p;g=0;while(1){j=(P(c,g)<<2)+b|0;a=(j+(c<<2)|0)-4|0;if(a>>>0>j>>>0)while(1){e=J[j>>2];J[j>>2]=J[a>>2];J[a>>2]=e;a=a-4|0;j=j+4| -0;if(a>>>0>j>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}qc(p)}bc=k+32|0;return i|0}function Uga(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=bc-16|0;bc=l;m=fF(g);p=XE(g);g=p;gc[J[J[g>>2]+20>>2]](l+4|0,g);J[f>>2]=d;a:{b:{c:{i=a;g=K[i|0];switch(g-43|0){case 0:case 2:break c;default:break b}}J[695492]=0;g=aa(6656,m|0,g<<24>>24)|0;i=J[695492];J[695492]=0;if((i|0)==1)break a;i=J[f>>2];J[f>>2]=i+1;H[i|0]=g;i=a+1|0}d:{g=i;if(!((c- -g|0)<=1|K[g|0]!=48|(K[g+1|0]|32)!=120)){J[695492]=0;i=aa(6656,m|0,48)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=H[g+1|0];J[695492]=0;i=aa(6656,m|0,i|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=g+2|0;g=i;while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[695492]=0;pa(6638)|0;j=J[695492];J[695492]=0;e:{if((j|0)==1)break e;J[695492]=0;j=J[695492];J[695492]=0;if((j|0)==1)break e;if(!(h-48>>>0<10|(h|32)-97>>>0<6))break d;g=g+1|0;continue}break}break a}while(1){if(c>>> -0<=g>>>0)break d;h=H[g|0];J[695492]=0;pa(6638)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[695492]=0;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(h-48>>>0>=10)break d;g=g+1|0;continue}}f:{if(K[l+15|0]>>>7|0)h=J[l+8>>2];else h=K[l+15|0]&127;if(!h){h=J[f>>2];J[695492]=0;ha(6634,m|0,i|0,g|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;J[f>>2]=J[f>>2]+(g-i|0);break f}J[695492]=0;No(i,g);h=J[695492];J[695492]=0;if((h|0)==1)break a;J[695492]=0;q=$(6625,p|0)|0;h=J[695492];J[695492]=0;if((h|0)== -1)break a;j=i;while(1){if(g>>>0<=j>>>0){h=J[f>>2];J[695492]=0;No((i-a|0)+d|0,h);i=J[695492];J[695492]=0;if((i|0)!=1)break f;break a}h=l+4|0;g:{if(K[h+11|0]>>>7|0){k=J[h>>2];break g}k=h}r=H[k+o|0]<=0;if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(r|H[k+o|0]!=(n|0))){n=J[f>>2];J[f>>2]=n+1;H[n|0]=q;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;o=(h-1>>>0>o>>>0)+o|0;n=0}h=H[j|0];J[695492]=0;h=aa(6656,m|0,h|0)|0;k=J[695492];J[695492]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+1;H[k|0]=h;j=j+1|0;n=n+1|0;continue}break}break a}while(1){h:{if(c>>> -0>g>>>0){i=K[g|0];if((i|0)!=46)break h;J[695492]=0;i=$(6635,p|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;g=g+1|0}i=J[f>>2];J[695492]=0;ha(6634,m|0,g|0,c|0,i|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break a;i=f;f=J[f>>2]+(c-g|0)|0;J[i>>2]=f;J[e>>2]=(b|0)==(c|0)?f:(b-a|0)+d|0;ad(l+4|0);bc=l+16|0;return}J[695492]=0;i=aa(6656,m|0,i<<24>>24)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;g=g+1|0;continue}}a=Z()|0;ad(l+4|0);ba(a|0);B()} -function Tla(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;g=bc-16|0;bc=g;h=a+72|0;i=O[h+16>>3];a:{b:{c:{l=O[h+32>>3];k=O[h+24>>3];m=O[h+40>>3];if(!(i<=l)|!(k<=m))break c;d:{d=J[a+204>>2];if((d|0)==J[a+200>>2])break d;e=d-8|0;d=J[e>>2];if(i!=O[d+32>>3]|O[d+8>>3]!=k|(O[d+48>>3]!=l-i|O[d+24>>3]!=m-k))break d;if(b&1){H[d+601|0]=0;h=J[a+32>>2];J[695492]=0;aa(6326,d+432|0,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b}if(b>>>0<256)break c;b=J[e>>2];H[b+600|0]=0;a=J[a+36>> -2];J[695492]=0;aa(6327,b- -64|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;break c}J[695492]=0;e=$(4,664)|0;d=J[695492];J[695492]=0;e:{if((d|0)!=1){J[e>>2]=2429916;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;d=$(6328,e+16|0)|0;f=J[695492];J[695492]=0;if((f|0)==1){d=Z()|0;qc(e);break a}J[g+12>>2]=e;J[g+8>>2]=d;j=J[c>>2];f:{if(j){f=J[c+4>>2];if(f)J[f+4>>2]=J[f+4>>2]+1;J[e+644>>2]=j;d=J[e+648>>2];J[e+648>>2]=f;g:{if(!d)break g;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break g;gc[J[J[d>>2]+8>>2]](d);Vc(d)}d=J[g+ -8>>2];J[d+60>>2]=4;break f}J[e+76>>2]=3}if(b&1){H[d+601|0]=0;e=J[a+32>>2];J[d+436>>2]=J[e+4>>2];J[d+440>>2]=J[e+8>>2];O[d+448>>3]=O[e+16>>3];H[d+456|0]=K[e+24|0];H[d+457|0]=K[e+25|0];H[d+458|0]=K[e+26|0];H[d+459|0]=K[e+27|0];f=J[d+460>>2];if(f){qc(f);J[d+460>>2]=0}f=J[e+32>>2];J[d+464>>2]=f;if(f){J[695492]=0;j=f<<3;f=$(27,(f>>>0>536870911?-1:j)|0)|0;n=J[695492];J[695492]=0;if((n|0)==1)break e;J[d+460>>2]=f;tc(f,J[e+28>>2],j)}O[d+472>>3]=O[e+40>>3];J[d+480>>2]=J[e+48>>2];O[d+488>>3]=O[e+56>>3]}if(b>>> -0>=256){H[d+600|0]=0;b=J[a+36>>2];J[695492]=0;aa(6327,d- -64|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;d=J[g+8>>2]}if(!(!K[d+601|0]|!(R(i-l)<.3|R(k-m)<.3))){b=J[a+36>>2];J[d+436>>2]=J[b+12>>2];J[d+440>>2]=J[b+20>>2]}b=J[a+48>>2];J[695492]=0;b=J[b>>2];i=O[b>>3]*O[b+24>>3]-O[b+16>>3]*O[b+8>>3];b=J[695492];J[695492]=0;h:{if((b|0)==1)break h;b=J[g+8>>2];O[b+448>>3]=Y(R(i))*O[b+448>>3];J[695492]=0;da(6330,b|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;b=J[a+204>>2];i:{if((b|0)!=J[a+208>> -2]){J[b>>2]=J[g+8>>2];d=J[g+12>>2];J[b+4>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+204>>2]=b+8;break i}J[695492]=0;da(6324,a+200|0,g+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break h}a=J[g+12>>2];if(!a)break c;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break c;gc[J[J[a>>2]+8>>2]](a);Vc(a);break c}break e}d=Z()|0;break a}d=Z()|0;Ie(g+8|0);break a}a=J[c+4>>2];j:{if(!a)break j;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break j;gc[J[J[a>>2]+8>>2]](a);Vc(a)}bc=g+16|0;return}d=Z()|0}Ie(c);ba(d|0);B()}function vK(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;g=J[a+4>>2];if(J[g+48>>2]<=7){uK(a,b);return}e=J[a+12>>2];c=J[a+8>>2];l=e-c|0;if(l|J[g+44>>2]){h=J[a+16>>2];f=J[a+20>>2];if(h>>>0>=f>>>0){J[b>>2]=15;return}k=1;m=f-h>>1;f=J[a+24>>2];a:{b:{d=J[g+44>>2];if(d){J[g+44>>2]=0;H[g+36|0]=1;H[g+37|0]=d;break b}k=K[g+36|0];if(k)break b;k=0;j=l;e=c;break a}p=g+37|0;d=k<<24>>24;n=4-d|0;o=((d+e|0)-c|0)-4|0;k=0;j=l;c:{d:{e:{while(1){H[d+p|0]=K[c|0];j=j-1|0;k=k+1|0;e=c+1|0;f:{g:switch(d-1|0){case 0:c=K[g+37| -0]|K[g+38|0]<<8;i=c<<8|c>>>8;if((i&63488)!=55296){I[h>>1]=i;if(f){J[f>>2]=-1;f=f+4|0}else f=0;h=h+2|0;m=m-1|0;i=0;H[g+36|0]=0;break a}if(!(i&1024))break f;H[g+36|0]=2;break a;case 2:break g;default:break f}d=K[g+39|0];if((d&252)==220){c=K[g+40|0]|d<<8;d=K[g+37|0]|K[g+38|0]<<8;I[h>>1]=d<<8|d>>>8;if(m>>>0<2)break c;I[h+2>>1]=c;if(f){J[f>>2]=-1;J[f+4>>2]=-1;f=f+8|0}else f=0;h=h+4|0;m=m-2|0;i=0;H[g+36|0]=0;j=o;k=n;break a}J[b>>2]=12;if((J[a+8>>2]-e|0)<2)break e;c=c-1|0;break d}d=d+1|0;c=e;if(j)continue; +0)>=(o|0))break n;d=12;h=L[J[a+8>>2]+(l<<1)>>1];if((h&64512)!=56320)break n;J[i+56>>2]=0;l=l+1|0;d=10;g=(h+(g<<10)|0)-56613888|0;break b}g=c}h=f;J[b>>2]=d;J[J[a+4>>2]+56>>2]=g}J[a+16>>2]=J[a+16>>2]+e;J[a+8>>2]=J[a+8>>2]+(l<<1);H[m+14|0]=h;fc=j+16|0}function jTa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;F=fc-256|0;fc=F;g=a;while(1){a:{i=g;d=J[(k<<2)+b>>2]+c|0;n=K[d+9|0];o=K[d+6|0];e=n+ +o|0;q=K[d+14|0];l=K[d+1|0];h=q+l|0;f=e+h|0;j=K[d+10|0];m=K[d+5|0];p=j+m|0;s=K[d+13|0];t=K[d+2|0];r=s+t|0;u=p+r|0;v=K[d+8|0];w=K[d+7|0];x=v+w|0;y=K[d+15|0];z=K[d|0];A=y+z|0;B=x+A|0;C=K[d+11|0];D=K[d+4|0];E=C+D|0;G=K[d+3|0];H=K[d+12|0];d=G+H|0;I=E+d|0;J[g+16>>2]=(P(f-u|0,4433)+P(B-I|0,10703)|0)+1024>>11;J[g>>2]=(B+(f+(u+I|0)|0)<<2)+-8192;f=A-x|0;p=r-p|0;r=d-E|0;e=h-e|0;d=(P(f-p|0,11363)+P(r-e|0,2260)|0)+1024|0;J[g+24>>2]=(d+P(r,-8697)|0)+P(f,-1730)>>11;J[g+8>>2]=(d+P(p,17799)|0)+P(e,11893)>>11;d=m- +j|0;e=D-C|0;h=G-H|0;f=t-s|0;j=(P(d-e|0,3363)+P(h+f|0,-11086)|0)+1024|0;n=o-n|0;o=l-q|0;q=P(n+e|0,-10217)+P(o+h|0,-5461)|0;p=q+((j+P(h,8728)|0)+P(e,17760)|0)|0;l=e;e=w-v|0;m=h;h=z-y|0;l=P(l-e|0,7350)+P(m+h|0,8956)|0;J[g+28>>2]=p+l>>11;m=(j+P(f,-9222)|0)+P(d,10055)|0;j=P(n-d|0,11529)+P(f+o|0,1136)|0;d=P(d+e|0,5461)+P(f+h|0,10217)|0;J[g+20>>2]=(m+j|0)+d>>11;f=P(n-e|0,3363)+P(h+o|0,11086)|0;J[g+12>>2]=(f+(j+((q+P(o,589)|0)+P(n,-13631)|0)|0)|0)+1024>>11;J[g+4>>2]=(l+(f+((d+P(h,-18730)|0)+P(e,6387)|0)| +0)|0)+1024>>11;e=k-7|0;k=k+1|0;g=F;d=7;b:switch(e|0){case 0:continue;case 8:break a;default:break b}g=i+32|0;continue}break}while(1){e=J[g+32>>2];h=J[a+192>>2];b=e+h|0;n=J[g+192>>2];o=J[a+32>>2];c=n+o|0;i=b+c|0;k=J[g+64>>2];f=J[a+160>>2];j=k+f|0;q=J[g+160>>2];l=J[a+64>>2];m=q+l|0;p=j+m|0;s=J[g>>2];t=J[a+224>>2];r=s+t|0;u=J[g+224>>2];v=J[a>>2];w=u+v|0;x=r+w|0;y=J[g+96>>2];z=J[a+128>>2];A=y+z|0;B=J[g+128>>2];C=J[a+96>>2];D=B+C|0;E=A+D|0;J[a+128>>2]=(P(i-p|0,4433)+P(x-E|0,10703)|0)+65536>>17;J[a>>2]= +(x+(i+(p+E|0)|0)|0)+8>>4;i=w-r|0;j=m-j|0;m=D-A|0;c=c-b|0;b=(P(i-j|0,11363)+P(m-c|0,2260)|0)+65536|0;J[a+192>>2]=(b+P(m,-8697)|0)+P(i,-1730)>>17;J[a+64>>2]=(b+P(j,17799)|0)+P(c,11893)>>17;b=f-k|0;c=z-y|0;i=C-B|0;k=l-q|0;f=(P(b-c|0,3363)+P(i+k|0,-11086)|0)+65536|0;e=h-e|0;h=o-n|0;n=P(e+c|0,-10217)+P(h+i|0,-5461)|0;j=n+((f+P(i,8728)|0)+P(c,17760)|0)|0;l=c;c=t-s|0;m=i;i=v-u|0;o=P(l-c|0,7350)+P(m+i|0,8956)|0;J[a+224>>2]=j+o>>17;l=(f+P(k,-9222)|0)+P(b,10055)|0;f=P(e-b|0,11529)+P(h+k|0,1136)|0;b=P(b+c|0, +5461)+P(i+k|0,10217)|0;J[a+160>>2]=(l+f|0)+b>>17;k=P(e-c|0,3363)+P(h+i|0,11086)|0;J[a+96>>2]=(k+(f+((n+P(h,589)|0)+P(e,-13631)|0)|0)|0)+65536>>17;J[a+32>>2]=(o+(k+((b+P(i,-18730)|0)+P(c,6387)|0)|0)|0)+65536>>17;b=d;d=d-1|0;g=g+4|0;a=a+4|0;if(b)continue;break}fc=F+256|0}function mia(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=fc-16|0;fc=l;m=kG(g);p=$F(g);g=p;kc[J[J[g>>2]+20>>2]](l+4|0,g);J[f>>2]=d;a:{b:{c:{i=a;g=K[i|0];switch(g-43|0){case 0:case 2:break c; +default:break b}}J[699344]=0;g=aa(6881,m|0,g<<24>>24)|0;i=J[699344];J[699344]=0;if((i|0)==1)break a;i=J[f>>2];J[f>>2]=i+4;J[i>>2]=g;i=a+1|0}d:{g=i;if(!((c-g|0)<=1|K[g|0]!=48|(K[g+1|0]|32)!=120)){J[699344]=0;i=aa(6881,m|0,48)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=H[g+1|0];J[699344]=0;i=aa(6881,m|0,i|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=g+2|0;g=i;while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[699344]=0;pa(6851)|0;j= +J[699344];J[699344]=0;e:{if((j|0)==1)break e;J[699344]=0;j=J[699344];J[699344]=0;if((j|0)==1)break e;if(!(h-48>>>0<10|(h|32)-97>>>0<6))break d;g=g+1|0;continue}break}break a}while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[699344]=0;pa(6851)|0;j=J[699344];J[699344]=0;if((j|0)==1)break a;J[699344]=0;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(h-48>>>0>=10)break d;g=g+1|0;continue}}f:{if(K[l+15|0]>>>7|0)h=J[l+8>>2];else h=K[l+15|0]&127;if(!h){h=J[f>>2];J[699344]=0;ha(6866,m|0,i|0,g|0,h|0)|0;h=J[699344]; +J[699344]=0;if((h|0)==1)break a;J[f>>2]=J[f>>2]+(g-i<<2);break f}J[699344]=0;Ep(i,g);h=J[699344];J[699344]=0;if((h|0)==1)break a;J[699344]=0;q=_(6863,p|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;j=i;while(1){if(g>>>0<=j>>>0){h=J[f>>2];J[699344]=0;xv((i-a<<2)+d|0,h);i=J[699344];J[699344]=0;if((i|0)!=1)break f;break a}h=l+4|0;g:{if(K[h+11|0]>>>7|0){k=J[h>>2];break g}k=h}r=H[k+o|0]<=0;if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(r|H[k+o|0]!=(n|0))){n=J[f>>2];J[f>>2]=n+4;J[n>>2]=q;if(K[h+11|0]>>> +7|0)h=J[h+4>>2];else h=K[h+11|0]&127;o=(h-1>>>0>o>>>0)+o|0;n=0}h=H[j|0];J[699344]=0;h=aa(6881,m|0,h|0)|0;k=J[699344];J[699344]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+4;J[k>>2]=h;j=j+1|0;n=n+1|0;continue}break}break a}h:{while(1){if(c>>>0>g>>>0){i=K[g|0];if((i|0)==46){J[699344]=0;i=_(6867,p|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;h=J[f>>2];j=h+4|0;J[f>>2]=j;J[h>>2]=i;g=g+1|0;break h}J[699344]=0;i=aa(6881,m|0,i<<24>>24)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+4;J[h>>2]= +i;g=g+1|0;continue}break}j=J[f>>2]}J[699344]=0;ha(6866,m|0,g|0,c|0,j|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break a;i=f;f=J[f>>2]+(c-g<<2)|0;J[i>>2]=f;J[e>>2]=(b|0)==(c|0)?f:(b-a<<2)+d|0;jd(l+4|0);fc=l+16|0;return}a=Z()|0;jd(l+4|0);ba(a|0);B()}function dfb(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;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;s=1;a:{if(!J[a+16>>2])break a;n=J[a+20>>2];if(!n)break a;m=O[b>>3];l=O[c>>3];h=O[e>>3];o=-O[f>>3];i=-O[g>>3];e=fc-16|0;fc= +e;j=O[d>>3];if(!(j<=0|h<=0)){a=J[n+4>>2];b=J[a>>2];b:{c:{if(b){if(!(i<360))break b;b=b-1|0;if(K[J[J[a+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]&64)break c;break b}if(!(i<360))break b}k=o*3.141592653589793/180;p=Me(k);r=Ee(k);k=h*.5;q=p;p=j*.5;q=qf(r/k,q/p);H[a+25|0]=1;J[e+12>>2]=0;t=Qe(a,e+12|0),u=1,H[t|0]=u;r=Ee(q);b=J[e+12>>2];O[b+8>>3]=k+l-k*r;t=b,v=p*Me(q)+(p+m),O[t>>3]=v;J[a>>2]=J[a>>2]+1}d:{if(R(i)>=360){a=fc-16|0;fc=a;b=J[n+4>>2];H[b+25|0]=1;J[a+12>>2]=0;c=a+12|0;t=Qe(b,c),u=1,H[t|0]=u;d=J[a+ +12>>2];k=h*.5;h=k+l;O[d+8>>3]=h;j=j*.5;i=j+m;m=i-j;O[d>>3]=m;J[b>>2]=J[b>>2]+1;b=J[n+4>>2];J[a+12>>2]=0;t=Qe(b,c),u=4,H[t|0]=u;d=J[a+12>>2];o=k*.552;p=o+h;O[d+8>>3]=p;O[d>>3]=m;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Qe(b,c),u=4,H[t|0]=u;d=J[a+12>>2];l=h+k;O[d+8>>3]=l;q=j*.552;r=i-q;O[d>>3]=r;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Qe(b,c),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=l;O[d>>3]=i;J[b>>2]=J[b>>2]+1;b=J[n+4>>2];J[a+12>>2]=0;t=Qe(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=l;l=q+i;O[d>>3]=l;J[b>>2]=J[b>> +2]+1;J[a+12>>2]=0;t=Qe(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=p;j=i+j;O[d>>3]=j;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Qe(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=h;O[d>>3]=j;J[b>>2]=J[b>>2]+1;b=J[n+4>>2];J[a+12>>2]=0;t=Qe(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];o=h-o;O[d+8>>3]=o;O[d>>3]=j;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Qe(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];j=h-k;O[d+8>>3]=j;O[d>>3]=l;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Qe(b,a+12|0),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=j;O[d>>3]=i;J[b>>2]=J[b>>2]+ +1;b=J[n+4>>2];J[a+12>>2]=0;t=Qe(b,c),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=j;O[d>>3]=r;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Qe(b,c),u=4,H[t|0]=u;d=J[a+12>>2];O[d+8>>3]=o;O[d>>3]=m;J[b>>2]=J[b>>2]+1;J[a+12>>2]=0;t=Qe(b,c),u=4,H[t|0]=u;c=J[a+12>>2];O[c+8>>3]=h;O[c>>3]=m;J[b>>2]=J[b>>2]+1;fc=a+16|0;break d}j=j*.5;m=j+m;k=h*.5;l=k+l;h=360-(o+i);a=i>0;i=360-o;if(i<0)while(1){i=i+360;if(i<0)continue;break}if(i>360)while(1){i=i+-360;if(i>360)continue;break}if(h<0)while(1){h=h+360;if(h<0)continue;break}if(h>=360)while(1){h= +h+-360;if(h>=360)continue;break}e:{if(!a){if(h>=i){Ju(n,m,l,j,k,i,h,0);break e}Ju(n,m,l,j,k,i,360,0);Ju(n,m,l,j,k,0,h,0);break e}if(h<=i){Ju(n,m,l,j,k,i,h,1);break e}Ju(n,m,l,j,k,i,0,1);Ju(n,m,l,j,k,360,h,1)}}}fc=e+16|0;s=0}return s|0}function BLa(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;h=fc-32|0;fc=h;J[a+40>>2]=13;J[a+1536>>2]=13;J[a+1512>>2]=13;J[a+1488>>2]=13;J[a+1464>>2]=13;J[a+1440>>2]=13;J[a+1416>>2]=13;J[a+1392>>2]=13;J[a+1368>>2]=13;J[a+1344>>2]=13;J[a+1320>> +2]=13;J[a+1296>>2]=13;J[a+1272>>2]=13;J[a+1248>>2]=13;J[a+1224>>2]=13;J[a+1200>>2]=13;J[a+1176>>2]=13;J[h+8>>2]=13;J[a+16>>2]=-1;J[a+28>>2]=1;J[a+32>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;Ac(a+60|0,0,1056);J[a+1528>>2]=-1;J[a+1504>>2]=-1;J[a+1480>>2]=-1;J[a+1456>>2]=-1;J[a+1432>>2]=-1;J[a+1408>>2]=-1;J[a+1384>>2]=-1;J[a+1360>>2]=-1;J[a+1336>>2]=-1;J[a+1312>>2]=-1;J[a+1288>>2]=-1;J[a+1264>>2]=-1;J[a+1240>>2]=-1;J[a+1216>>2]=-1;J[a+1192>>2]=-1;J[a+1168>>2]=-1;J[a+1116>>2]=65532;J[a+1120>>2]=0;J[a>>2]=b;m=a, +n=kc[J[J[b>>2]+100>>2]](b)|0,J[m+4>>2]=n;a:{b:{c:{d:{e:{if(c){b=KZ(a);J[a+28>>2]=b;if(b)break e;J[a+32>>2]=3;break a}f=fc-1040|0;fc=f;b=1;f:{g:{while(1){c=J[a>>2];kc[J[J[c>>2]+56>>2]](c,b<<10,-1);c=J[a>>2];c=kc[J[J[c>>2]+52>>2]](c)|0;e=J[a>>2];g=kc[J[J[e>>2]+40>>2]](e,f,1024)|0;H[g+f|0]=0;if((g|0)>=9){e=g-9|0;while(1){if(!ud(e+f|0,782303,9))break g;d=(e|0)>0;e=e-1|0;if(d)continue;break}}b=b+1|0;if(c)continue;break}b=0;break f}b=(e+f|0)+9|0;while(1){c=b;b=b+1|0;d=K[c|0];if((d|0)==32|d-9>>>0<5)continue; +break}b=0;h:{if(!d)break h;while(1){d=d<<24>>24;if((d&254)-48>>>0>9|((-2147483601-d|0)/10|0)<(b|0))break h;b=(d+P(b,10)|0)-48|0;d=K[c+1|0];c=c+1|0;if(d)continue;break}}J[a+56>>2]=b;b=J[a>>2];m=a,n=kc[J[J[b>>2]+52>>2]](b)+(e-g)|0,J[m+60>>2]=n;b=J[a+56>>2]}fc=f+1040|0;J[h+28>>2]=b;if(!b){J[a+28>>2]=0;J[a+32>>2]=3;break a}c=vc(12);J[c+4>>2]=16;J[c+8>>2]=0;J[699344]=0;b=aa(3551,16,4)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;J[c>>2]=b;while(1){if(JZ(a,h+28|0,c,0))continue;break}b=J[c+8>>2];J[a+68>> +2]=b;f=Gd(b,4);J[a+64>>2]=f;e=J[c>>2];g=J[a+68>>2];i:{if((g|0)<=0)break i;b=0;if(g>>>0>=4){l=g&-4;while(1){d=b<<2;J[d+f>>2]=J[d+e>>2];i=d|4;J[i+f>>2]=J[e+i>>2];i=d|8;J[i+f>>2]=J[e+i>>2];d=d|12;J[d+f>>2]=J[d+e>>2];b=b+4|0;j=j+4|0;if((j|0)!=(l|0))continue;break}}d=g&3;if(!d)break i;while(1){g=b<<2;J[g+f>>2]=J[e+g>>2];b=b+1|0;k=k+1|0;if((d|0)!=(k|0))continue;break}}J[699344]=0;Mc(e);b=J[699344];J[699344]=0;if((b|0)==1)break c;uc(c);if(J[a+28>>2])break e;J[a+32>>2]=3;break a}b=h+8|0;Ke(J[a+48>>2],781024, +b);if(J[h+8>>2]==9){J[a+20>>2]=J[h+16>>2];J[a+24>>2]=J[h+20>>2];yc(b);break b}yc(h+8|0);b=KZ(a);J[a+28>>2]=b;if(b)break b;J[a+32>>2]=3;break a}a=Z()|0;uc(c);ba(a|0);B()}ea(0)|0;Bc();B()}J[J[a+48>>2]>>2]=a}fc=h+32|0;return a|0}function kib(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;e=fc-1568|0;fc=e;f=J[a+4>>2];H[e+51|0]=0;i=J[J[f+492>>2]+12>>2];a:{if(!(J[J[f+128>>2]+52>>2]|M[f+16>>2]>c>>>0)){d=6;break a}h=d&1024?d|3:d;b:{if(!b){g=65536;d=65536;break b}g=J[b+20>> +2];d=J[b+16>>2]}J[a+168>>2]=g;J[a+164>>2]=d;J[a+108>>2]=0;J[a+72>>2]=1869968492;k=h&1;H[a+161|0]=!k;d=!(h&3);H[a+160|0]=d;j=e+52|0;d=kc[J[i>>2]](j,f,b,a,J[f+424>>2],J[f+532>>2],d,h>>>16&15,1751)|0;if(d)break a;l=h&1024;H[e+121|0]=l>>>10;J[e+1416>>2]=J[f+404>>2];J[e+1420>>2]=J[f+408>>2];J[e+1424>>2]=J[f+412>>2];J[e+1428>>2]=J[f+416>>2];J[e+1548>>2]=J[f+548>>2];J[e+1552>>2]=J[f+544>>2];d=Wx(j,c,e+24|0,e+51|0);if(!d){m=K[a+160|0];c=e+1440|0;d=J[c+4>>2];J[e+40>>2]=J[c>>2];J[e+44>>2]=d;c=J[e+1436>>2]; +J[e+32>>2]=J[e+1432>>2];J[e+36>>2]=c;c=J[e+1452>>2];g=J[e+1448>>2];kc[J[i+4>>2]](j);J[a+124>>2]=J[a+124>>2]&1|4;c:{if(l){b=J[a+156>>2];d=J[e+84>>2];J[a+32>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+92>>2];J[a+40>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+44>>2];J[b+20>>2]=J[e+40>>2];J[b+24>>2]=d;d=J[e+36>>2];J[b+12>>2]=J[e+32>>2];J[b+16>>2]=d;J[b+32>>2]=c;J[b+28>>2]=g;H[b+8|0]=1;break c}d=J[e+92>>2];J[a+40>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+92>>2];J[a+56>>2]=(((d>>31)+d|0)+32768&-65536)>> +16;H[J[a+156>>2]+8|0]=0;i=h&16;d:{if(i){d=J[f+476>>2]-J[f+468>>2]>>16;J[a+52>>2]=d;break d}d=J[e+96>>2];J[a+52>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=J[e+96>>2];d=(((d>>31)+d|0)+32768&-65536)>>16}J[a+72>>2]=1869968492;J[a+60>>2]=d;if(!(!b|L[b+14>>1]>23))J[a+124>>2]=J[a+124>>2]|256;h=a+108|0;e:{if(!(J[e+36>>2]|(J[e+32>>2]!=65536|J[e+44>>2]!=65536)))if(!J[e+40>>2])break e;kp(h,e+32|0);n=a,o=Wc(J[a+40>>2],J[e+32>>2]),J[n+40>>2]=o;n=a,o=Wc(J[a+52>>2],J[e+44>>2]),J[n+52>>2]=o}if(c|g){Xh(h,g,c);J[a+40>> +2]=g+J[a+40>>2];J[a+52>>2]=c+J[a+52>>2]}if(!(!K[e+51|0]&k)){c=J[a+168>>2];g=J[a+164>>2];f:{if(J[e+124>>2]?m:0)break f;b=J[e+68>>2];d=I[b+2>>1];if((d|0)<=0)break f;d=d&65535;b=J[b+4>>2];while(1){n=b,o=Wc(J[b>>2],g),J[n>>2]=o;n=b,o=Wc(J[b+4>>2],c),J[n+4>>2]=o;b=b+8|0;j=d>>>0>1;d=d-1|0;if(j)continue;break}}n=a,o=Wc(J[a+40>>2],g),J[n+40>>2]=o;n=a,o=Wc(J[a+52>>2],c),J[n+52>>2]=o}Hq(h,e+8|0);b=J[e+8>>2];J[a+24>>2]=J[e+16>>2]-b;c=J[e+12>>2];d=J[e+20>>2];J[a+36>>2]=d;J[a+32>>2]=b;J[a+28>>2]=d-c;if(!i)break c; +Xu(a+24|0,J[a+52>>2])}J[a+136>>2]=J[e+24>>2];J[a+140>>2]=J[e+28>>2];d=0;b=J[J[f+128>>2]+52>>2];if(!b)break a;kc[J[J[b>>2]+4>>2]](J[b+4>>2],e+24|0);J[a+136>>2]=0;J[a+140>>2]=0;break a}kc[J[i+4>>2]](e+52|0)}fc=e+1568|0;return d|0}function kCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;J[a>>2]=2398124;J[a+4>>2]=0;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;H[a+16|0]=K[b+16|0];J[a+20>>2]=0;J[a+24>>2]=J[685894];h=a+20|0;a:{b:{c=J[b+20>>2];c:{d:{if(c){f=J[J[c>>2]+28>>2];J[699344]= +0;ca(f|0,d+12|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break d;b=Z()|0;break c}J[d+12>>2]=0}J[699344]=0;aa(5153,h|0,d+12|0)|0;c=J[699344];J[699344]=0;e:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break e;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break e}break a}b=Z()|0;zc(d+12|0);break c}c=J[a+20>>2];c=J[(c?c+12|0:2743576)>>2];J[a+28>>2]=0;J[a+24>>2]=c;J[a+32>>2]=J[685894];f=a+28|0;c= +J[b+28>>2];f:{g:{if(c){g=J[J[c>>2]+28>>2];J[699344]=0;ca(g|0,d+12|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break g;b=Z()|0;break f}J[d+12>>2]=0}J[699344]=0;aa(5153,f|0,d+12|0)|0;c=J[699344];J[699344]=0;h:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break h;J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;e=J[699344];J[699344]=0;if((e|0)!=1){if(g)break h;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break h}break a}b=Z()|0;zc(d+12|0);break f}c=J[a+28>>2];c=J[(c?c+12|0:2743576)>>2];J[a+36>> +2]=0;J[a+32>>2]=c;J[a+40>>2]=J[685894];g=a+36|0;c=J[b+36>>2];i:{j:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+12|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break j;b=Z()|0;break i}J[d+12>>2]=0}J[699344]=0;aa(5153,g|0,d+12|0)|0;c=J[699344];J[699344]=0;k:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break k;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;i=J[699344];J[699344]=0;if((i|0)!=1){if(e)break k;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break k}break a}b=Z()|0;zc(d+12|0);break i}c= +J[a+36>>2];c=J[(c?c+12|0:2743576)>>2];J[a+44>>2]=0;J[a+40>>2]=c;J[a+48>>2]=J[685894];c=a+44|0;e=J[b+44>>2];l:{m:{if(e){i=J[J[e>>2]+28>>2];J[699344]=0;ca(i|0,d+12|0,e|0,1);e=J[699344];J[699344]=0;if((e|0)!=1)break m;b=Z()|0;break l}J[d+12>>2]=0}J[699344]=0;aa(5153,c|0,d+12|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break b;J[699344]=0;h=J[c+4>>2]-1|0;J[c+4>>2]=h;f=J[699344];J[699344]=0;if((f|0)!=1){if(h)break b;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!= +1)break b}break a}b=Z()|0;zc(d+12|0)}wc(c)}wc(g)}wc(f)}wc(h);nd(a);ba(b|0);B()}c=J[a+44>>2];J[a+48>>2]=J[(c?c+12|0:2743576)>>2];c=J[b+56>>2];J[a+52>>2]=J[b+52>>2];J[a+56>>2]=c;fc=d+16|0;return a|0}ea(0)|0;Bc();B()}function pKa(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;m=fc-32|0;fc=m;if((b|0)!=(c|0)){k=a+4|0;while(1){l=m+28|0;e=m+24|0;f=b+16|0;a:{b:{o=a+4|0;c:{if((o|0)==(k|0))break c;d=k+16|0;g=K[k+27|0];i=g<<24>>24<0;j=K[f+11|0];h=j<<24>>24<0;d:{g=i?J[k+20>>2]:g; +j=h?J[f+4>>2]:j;n=g>>>0>>0?g:j;if(n){i=qd(h?J[f>>2]:f,i?J[k+16>>2]:d,n);if(i)break d}if(g>>>0>j>>>0)break c;break b}if((i|0)>=0)break b}e:{e=k;f:{if((e|0)==J[a>>2])break f;d=J[e>>2];g:{if(!d){d=e;while(1){e=J[d+8>>2];i=J[e>>2]==(d|0);d=e;if(i)continue;break}break g}while(1){e=d;d=J[d+4>>2];if(d)continue;break}}h=K[f+11|0];d=h<<24>>24<0;g=K[e+27|0];i=g<<24>>24<0;h:{h=d?J[f+4>>2]:h;g=i?J[e+20>>2]:g;j=h>>>0>>0?h:g;if(j){d=qd(i?J[e+16>>2]:e+16|0,d?J[f>>2]:f,j);if(d)break h}if(h>>>0>g>>>0)break f; +break e}if((d|0)>=0)break e}if(!J[k>>2]){J[l>>2]=k;e=k;break a}J[l>>2]=e;e=e+4|0;break a}e=Ye(a,l,f);break a}g=K[f+11|0];i=g<<24>>24<0;j=K[k+27|0];h=j<<24>>24<0;i:{j:{k:{g=i?J[f+4>>2]:g;j=h?J[k+20>>2]:j;n=g>>>0>>0?g:j;if(n){d=qd(h?J[d>>2]:d,i?J[f>>2]:f,n);if(d)break k}if(g>>>0>j>>>0)break j;break i}if((d|0)>=0)break i}d=J[k+4>>2];l:{if(!d){d=k;while(1){e=J[d+8>>2];i=J[e>>2]!=(d|0);d=e;if(i)continue;break}break l}while(1){e=d;d=J[d>>2];if(d)continue;break}}m:{n:{if((e|0)==(o|0))break n;h=K[e+27| +0];d=h<<24>>24<0;g=K[f+11|0];i=g<<24>>24<0;o:{h=d?J[e+20>>2]:h;g=i?J[f+4>>2]:g;j=h>>>0>>0?h:g;if(j){d=qd(i?J[f>>2]:f,d?J[e+16>>2]:e+16|0,j);if(d)break o}if(h>>>0>g>>>0)break n;break m}if((d|0)>=0)break m}d=k+4|0;if(!J[d>>2]){J[l>>2]=k;e=d;break a}J[l>>2]=e;break a}e=Ye(a,l,f);break a}J[l>>2]=k;J[e>>2]=k}if(!J[e>>2]){l=vc(40);i=m+12|0;H[i+8|0]=0;J[i+4>>2]=a+4;J[i>>2]=l;d=l+16|0;p:{q:{r:{s:{if(H[f+11|0]>=0){h=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=h;J[d+8>>2]=J[f+8>>2];break s}h=J[f+4>>2];g=J[f>>2]; +J[699344]=0;ca(15,d|0,g|0,h|0);h=J[699344];J[699344]=0;if((h|0)==1)break r}h=l+28|0;if(H[f+23|0]>=0){d=J[f+16>>2];J[h>>2]=J[f+12>>2];J[h+4>>2]=d;J[h+8>>2]=J[f+20>>2];break p}g=J[f+16>>2];f=J[f+12>>2];J[699344]=0;ca(15,h|0,f|0,g|0);f=J[699344];J[699344]=0;if((f|0)!=1)break p;a=Z()|0;if(H[l+27|0]>=0)break q;uc(J[d>>2]);break q}a=Z()|0}mK(i);ba(a|0);B()}H[i+8|0]=1;d=J[m+12>>2];J[d+8>>2]=J[m+28>>2];J[d>>2]=0;J[d+4>>2]=0;J[e>>2]=d;f=J[J[a>>2]>>2];if(f){J[a>>2]=f;d=J[e>>2]}Oc(J[a+4>>2],d);J[a+8>>2]=J[a+ +8>>2]+1}e=J[b+4>>2];t:{if(e)while(1){d=e;e=J[d>>2];if(e)continue;break t}while(1){d=J[b+8>>2];e=J[d>>2]!=(b|0);b=d;if(e)continue;break}}b=d;if((c|0)!=(d|0))continue;break}}fc=m+32|0}function GJa(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=fc-16|0;fc=f;if(b){if(a){if(d){if(J[a+8>>2]==16)h=J[a+156>>2]+P(J[a+192>>2],5644)|0;else h=J[a+12>>2];a:{if(c>>>0<=1){Nc(d,1,2369047,0);a=0;break a}wd(b,f+12|0,2);if(J[f+12>>2]){Nc(d,2,2369073,0);a=1;break a}if(c>>>0<=6){Nc(d,1, +2369047,0);a=0;break a}wd(b+2|0,f+8|0,1);j=J[h+5628>>2];a=j;b:{c:{d:{e=J[h+5632>>2];if(!e)break d;i=J[f+8>>2];while(1){if((i|0)==J[a>>2])break d;a=a+20|0;g=g+1|0;if((e|0)!=(g|0))continue;break}break c}if((e|0)!=(g|0))break b}if((e|0)==J[h+5636>>2]){a=e+10|0;J[h+5636>>2]=a;a=ch(j,P(a,20));if(!a){uc(J[h+5628>>2]);J[h+5636>>2]=0;J[h+5628>>2]=0;J[h+5632>>2]=0;Nc(d,1,2369119,0);a=0;break a}J[h+5628>>2]=a;e=J[h+5632>>2];Ac(a+P(e,20)|0,0,P(J[h+5636>>2]-e|0,20));j=J[h+5628>>2];e=J[h+5632>>2]}a=P(e,20)+j| +0;n=1}J[a>>2]=J[f+8>>2];wd(b+3|0,f+12|0,2);if(J[f+12>>2]){Nc(d,2,2369073,0);a=1;break a}wd(b+5|0,f+4|0,2);e=J[f+4>>2];if(e>>>0>=2){Nc(d,2,2369157,0);a=1;break a}c=c-7|0;if(e){b=b+7|0;j=0;while(1){if(c>>>0<=2){Nc(d,1,2369047,0);a=0;break a}wd(b,f+12|0,1);if(J[f+12>>2]!=1){Nc(d,2,2369201,0);a=1;break a}wd(b+1|0,f,2);g=J[f>>2];e=g&32767;J[a+4>>2]=e;i=c-3|0;g=(g>>>15|0)+1|0;k=P(g,e)+2|0;if(i>>>0>>0){Nc(d,1,2369047,0);a=0;break a}b=b+3|0;c=0;if(e)while(1){wd(b,f+12|0,g);if(J[f+12>>2]!=(c|0)){Nc(d,2, +2369267,0);a=1;break a}b=b+g|0;c=c+1|0;if(c>>>0>2])continue;break}wd(b,f,2);c=J[f>>2];e=c&32767;J[f>>2]=e;if((e|0)!=J[a+4>>2]){Nc(d,2,2369321,0);a=1;break a}g=(c>>>15|0)+1|0;l=P(g,e)+3|0;k=i-k|0;if(l>>>0>k>>>0){Nc(d,1,2369047,0);a=0;break a}b=b+2|0;c=0;if(e)while(1){wd(b,f+12|0,g);if(J[f+12>>2]!=(c|0)){Nc(d,2,2369267,0);a=1;break a}b=b+g|0;c=c+1|0;if(c>>>0>2])continue;break}wd(b,f+12|0,3);e=J[f+12>>2];J[a+8>>2]=0;J[a+12>>2]=0;H[a+16|0]=!(e&65536)|K[a+16|0]&254;i=e&255;J[f+8>>2]=i;e:{if(!i)break e; +m=J[h+5620>>2];if(m){c=J[h+5616>>2];g=0;while(1){if((i|0)==J[c+8>>2]){J[a+8>>2]=c;break e}c=c+20|0;g=g+1|0;if((m|0)!=(g|0))continue;break}}Nc(d,1,2369047,0);a=0;break a}e=e>>>8&255;J[f+8>>2]=e;f:{if(!e)break f;i=J[h+5620>>2];if(i){c=J[h+5616>>2];g=0;while(1){if((e|0)==J[c+8>>2]){J[a+12>>2]=c;break f}c=c+20|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}Nc(d,1,2369047,0);a=0;break a}c=k-l|0;b=b+3|0;j=j+1|0;if(j>>>0>2])continue;break}}if(c){Nc(d,1,2369047,0);a=0;break a}a=1;if(!n)break a;J[h+5632>> +2]=J[h+5632>>2]+1;a=1}fc=f+16|0;return a|0}fa(2358486,2358254,6008,2369030);B()}fa(2358373,2358254,6007,2369030);B()}fa(2365733,2358254,6006,2369030);B()}function f2(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=b;j=d;b=0;e=-1;a:{if(!a|!f)break a;i=a;b:{c:{a=J[a+12>>2];if(a){e=a;d:{while(1){d=J[e+16>>2];if(d)while(1){if(d+20>>>0<=f>>>0&M[d+4>>2]>=f>>>0)break d;d=J[d>>2];if(d)continue;break}e=J[e+20>>2];if(e)continue;break}e=-1;f=te(a,f,-1);if(!f)break a}e:{if(!c)break e;a=J[i+12>>2];e=a;while(1){if(!e){b= +c;break e}d=J[e+16>>2];if(d)while(1){if(!(M[d+4>>2]>>0|d+20>>>0>c>>>0)){b=c;break e}d=J[d>>2];if(d)continue;break}e=J[e+20>>2];if(e)continue;break}e=-1;b=te(a,c,-1);if(!b)break a}if(!f)break c;c=b}e=K[f|0];d=P(e,30);if(e){a=f;while(1){d=(e<<24>>24)+((d<<5)+(d>>>3|0)|0)^d;e=K[a+1|0];a=a+1|0;if(e)continue;break}}b=c;break b}f=0;g=1;d=0}d=(d<<5)+(d>>>3|0)^d;f:{if(!b)break f;e=K[b|0];if(!e)break f;a=b;while(1){d=((e<<24>>24)+(d>>>3|0)|0)+(d<<5)^d;e=K[a+1|0];a=a+1|0;if(e)continue;break}}a=J[i+12>>2]; +d=J[i>>2]+P((((d<<5)+(d>>>3|0)^d)>>>0)%M[i+4>>2]|0,24)|0;k=J[d+20>>2];g:{if(!k){c=0;break g}e=J[d>>2];h:{i:{if(a){if(e)while(1){a=d;d=e;if(!(J[a+12>>2]|(J[a+4>>2]!=(f|0)|J[a+8>>2]!=(b|0)))){J[a+16>>2]=j;e=0;break a}e=J[d>>2];if(e)continue;break}if(J[d+4>>2]!=(f|0)|J[d+8>>2]!=(b|0))break h;break i}if(e)while(1){c=d;d=e;j:{e=J[c+4>>2];if((f|0)!=(e|0)){a=f;if(!e|g)break j;while(1){h=K[e|0];if((h|0)!=K[a|0])break j;a=a+1|0;e=e+1|0;if(h)continue;break}}e=J[c+8>>2];if((e|0)!=(b|0)){if(!b)break j;a=b;if(!e)break j; +while(1){h=K[e|0];if((h|0)!=K[a|0])break j;a=a+1|0;e=e+1|0;if(h)continue;break}}if(J[c+12>>2])break j;J[c+16>>2]=j;e=0;break a}e=J[d>>2];if(e)continue;break}e=J[d+4>>2];if((f|0)!=(e|0)){if(!e|g)break h;a=f;while(1){c=K[e|0];if((c|0)!=K[a|0])break h;a=a+1|0;e=e+1|0;if(c)continue;break}}e=J[d+8>>2];if((e|0)!=(b|0)){if(!b|!e)break h;a=b;while(1){c=K[e|0];if((c|0)!=K[a|0])break h;a=a+1|0;e=e+1|0;if(c)continue;break}}}if(J[d+12>>2])break h;J[d+16>>2]=j;e=0;break a}c=d;e=-1;d=kc[J[663195]](24)|0;if(!d)break a; +a=J[i+12>>2]}k:{if(a){J[d+8>>2]=b;J[d+4>>2]=f;break k}a=0;e=0;l:{if(g)break l;e=f;while(1){g=e;e=e+1|0;if(K[g|0])continue;break}e=0;g=g-f|0;if((g|0)<0)break l;h=kc[J[663198]](g+1|0)|0;if(!h){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break l}e=xc(h,f,g);H[g+e|0]=0}J[d+4>>2]=e;m:{if(!b)break m;f=b;while(1){e=f;f=e+1|0;if(K[e|0])continue;break}f=e-b|0;if((f|0)<0)break m;e=kc[J[663198]](f+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break m}a=xc(e,b,f);H[f+a|0]=0}J[d+8>>2]=a}J[d+16>>2]=j;J[d+12>>2]=0; +J[d+20>>2]=1;e=0;J[d>>2]=0;J[i+8>>2]=J[i+8>>2]+1;if(!k)break a;J[c>>2]=d}return e}function JYa(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;e=fc-96|0;fc=e;J[e+92>>2]=7;a:{b:{c:{b=J[a+104>>2];if(kc[J[J[b>>2]+444>>2]](b,e+92|0)|0)break c;b=vc(24);J[699344]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=7;J[b>>2]=351732;J[b+16>>2]=0;J[b+20>>2]=0;f=J[699344];J[699344]=0;d:{if((f|0)!=1){g=J[c+4>>2];f=Yc(g);if(f>>>0>=2147483632)break a;e:{if(f>>>0<=10){H[e+19|0]=f;c=e+8|0;break e}h=(f|15)+1|0; +c=vc(h);J[e+16>>2]=h|-2147483648;J[e+8>>2]=c;J[e+12>>2]=f}j=cd(c,g,f)+f|0,k=0,H[j|0]=k;J[699344]=0;da(3423,b|0,e+8|0);c=J[699344];J[699344]=0;f:{g:{if((c|0)!=1){if(H[e+19|0]<0)uc(J[e+8>>2]);J[e+72>>2]=13;if(!d|J[d>>2]!=9)break f;if(J[jf(d,J[a+164>>2],e+72|0,0)>>2]!=8)break f;c=J[e+80>>2];d=kc[J[J[c>>2]+76>>2]](c)|0;J[e+56>>2]=13;c=e+56|0;f=J[Ec(d,819085,c,0)>>2];h=J[e+64>>2];yc(c);d=J[Ec(d,819599,c,0)>>2];i=J[e+64>>2];yc(c);c=J[e+80>>2];g=kc[J[J[c>>2]+72>>2]](c)|0;kc[J[J[g>>2]+20>>2]](g);h=(d|0)== +1?i:(f|0)==1?h:0;f=vc(h);h:{if((h|0)<=0)break h;d=f;if(h>>>0>=4){i=h&-4;c=0;while(1){j=d,k=kc[J[J[g>>2]+28>>2]](g)|0,H[j|0]=k;j=d,k=kc[J[J[g>>2]+28>>2]](g)|0,H[j+1|0]=k;j=d,k=kc[J[J[g>>2]+28>>2]](g)|0,H[j+2|0]=k;j=d,k=kc[J[J[g>>2]+28>>2]](g)|0,H[j+3|0]=k;d=d+4|0;c=c+4|0;if((i|0)!=(c|0))continue;break}}i=h&3;if(!i)break h;c=0;while(1){j=d,k=kc[J[J[g>>2]+28>>2]](g)|0,H[j|0]=k;d=d+1|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}c=e+8|0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400; +H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[699344]=0;d=ha(2235,c|0,f|0,h|0,0)|0;f=J[699344];J[699344]=0;i:{if((f|0)==1)break i;if(!d)break g;J[699344]=0;d=J[c+16>>2];f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;f=J[c+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break i;J[699344]=0;g=J[c+8>>2];h=J[699344];J[699344]=0;if((h|0)==1)break i;J[699344]=0;ia(3424,b|0,d|0,f|0,g|0);d=J[699344]; +J[699344]=0;if((d|0)==1)break i;J[699344]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;d=J[699344];J[699344]=0;if((d|0)!=1)break g}a=Z()|0;Yg(c);ba(a|0);B()}d=Z()|0;if(H[e+19|0]>=0)break d;uc(J[e+8>>2]);ba(d|0);B()}Yg(c)}yc(e+72|0);a=J[a+104>>2];a=kc[J[J[a>>2]+448>>2]](a,b)|0;kc[J[J[b>>2]+4>>2]](b);if(a)break c;a=1;break b}d= +Z()|0;uc(b)}ba(d|0);B()}a=0}fc=e+96|0;return a|0}_d(e+8|0);B()}function u2(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!a)return 0;if(b>>>0>=257){J[a>>2]=1;J[a+124>>2]=0;b=K[5854]|K[5855]<<8|(K[5856]<<16|K[5857]<<24);c=K[5850]|K[5851]<<8|(K[5852]<<16|K[5853]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;b=K[5862]|K[5863]<<8|(K[5864]<<16|K[5865]<<24);c=K[5858]|K[5859]<<8|(K[5860]<<16|K[5861]<<24);H[a+300|0]=c;H[a+301| +0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304|0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[5869]|K[5870]<<8|(K[5871]<<16|K[5872]<<24);c=K[5865]|K[5866]<<8|(K[5867]<<16|K[5868]<<24);H[a+307|0]=c;H[a+308|0]=c>>>8;H[a+309|0]=c>>>16;H[a+310|0]=c>>>24;H[a+311|0]=b;H[a+312|0]=b>>>8;H[a+313|0]=b>>>16;H[a+314|0]=b>>>24;return 0}d=b>>>0<=1?1:b;J[a+124>>2]=d;d=P(d,80)+80|0;f=J[a+264>>2];a:{if(!f){d=Dc(d);break a}d=fe(f,d)}J[a+264>>2]=d;b:{if(d){if(!J[a+124>>2])break b;b=b-1|0;if(b>>> +0<2){while(1){f=P(e,80);b=f+d|0;Ac(b+8|0,0,72);J[b+64>>2]=0;J[b+68>>2]=1081073664;J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+268>>2];J[b+24>>2]=J[a+116>>2];O[b+16>>3]=O[a+136>>3];d=J[a+264>>2];b=f+d|0;J[b+64>>2]=0;J[b+68>>2]=1081073664;g=(+(e>>>0)+ +(c|0)*4294967296)*255;O[b+48>>3]=g;O[b+40>>3]=g;O[b+32>>3]=g;J[b+8>>2]=4;e=e+1|0;c=e?c:c+1|0;if(!c&M[a+124>>2]>e>>>0)continue;break}break b}h=+(255/(b>>>0)>>>0);while(1){f=P(e,80);b=f+d|0;Ac(b+8|0,0,72);J[b+64>>2]=0;J[b+68>>2]=1081073664;J[b>>2]= +J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+268>>2];J[b+24>>2]=J[a+116>>2];O[b+16>>3]=O[a+136>>3];d=J[a+264>>2];b=f+d|0;J[b+64>>2]=0;J[b+68>>2]=1081073664;g=(+(e>>>0)+ +(c|0)*4294967296)*h;O[b+48>>3]=g;O[b+40>>3]=g;O[b+32>>3]=g;J[b+8>>2]=4;e=e+1|0;c=e?c:c+1|0;if(!c&M[a+124>>2]>e>>>0)continue;break}break b}J[a>>2]=1;J[a+124>>2]=0;b=K[17121]|K[17122]<<8|(K[17123]<<16|K[17124]<<24);c=K[17117]|K[17118]<<8|(K[17119]<<16|K[17120]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+ +296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;b=K[17129]|K[17130]<<8|(K[17131]<<16|K[17132]<<24);c=K[17125]|K[17126]<<8|(K[17127]<<16|K[17128]<<24);H[a+300|0]=c;H[a+301|0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304|0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[17136]|K[17137]<<8|(K[17138]<<16|K[17139]<<24);c=K[17132]|K[17133]<<8|(K[17134]<<16|K[17135]<<24);H[a+307|0]=c;H[a+308|0]=c>>>8;H[a+309|0]=c>>>16;H[a+310|0]=c>>>24;H[a+311|0]=b;H[a+312|0]=b>>>8;H[a+313| +0]=b>>>16;H[a+314|0]=b>>>24;return 0}J[a>>2]=2;return 1}function Nza(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;k=fc-32|0;fc=k;r=J[a+52>>2];o=J[a+16>>2];f=J[a>>2];p=Dc(ot(f));a:{if(!p){Uc(J[f+628>>2],J[f>>2],81656,0);break a}Sg(p,0,ot(f));i=1;q=1;b:{c:{d:{e:{f:{g:{h:switch(L[a+28>>1]-1|0){case 0:case 4:e=L[a+30>>1];if(e>>>0>8)break d;e=1<>1];if(e>>>0>8)break d; +g=1<>1];if(e>>>0>8)break d;e=1<>1];if(e>>>0>7)break d;e=1<>2]=k+28;$i(f,278,k+16|0);J[k+4>>2]=k+24;J[k>>2]=k+26;$i(f,530,k);h=fc-80|0;fc=h;i:{j:{if(L[f+138>>1]==1){if(!(K[f+ +13|0]&64|L[f+90>>1]!=6)){J[h+4>>2]=h+78;J[h>>2]=h+76;ne(f,530,h);g=L[h+78>>1];e=L[h+76>>1];l=P(g,e);if(!l){Uc(J[f+628>>2],J[f>>2],70812,0);e=0;break i}e=(P(L[f+84>>1],P(l+2|0,((e+J[f+56>>2]|0)-1>>>0)/(e>>>0)|0))+7>>>3>>>0)/(g>>>0)|0;break i}g=L[f+98>>1];e=vEb(J[f+56>>2],0,g,0);l=jc;if(!g|!l)break j;e=J[f>>2];g=J[f+628>>2];J[h+64>>2]=72551;Uc(g,e,73496,h- -64|0);e=0;break j}e=J[f+56>>2]}g=e;m=L[f+84>>1];e=vEb(e,0,m,0);l=(jc|0)!=0;k:{l:{m:{n:{o:{if(m){if(!l)break o;e=J[f>>2];l=J[f+628>>2];J[h+32>>2]= +72551;Uc(l,e,73496,h+32|0);m=L[f+84>>1];e=vEb(m,0,g,0);l=(jc|0)!=0;g=!m;break m}if(e&7)break n;g=1;break m}if(!(e&7))break l;if(!l)break n;e=J[f>>2];g=J[f+628>>2];J[h+48>>2]=72551;Uc(g,e,73496,h+48|0);e=0}e=(e>>>3|0)+1|0;break i}if(g)break k}if(!l)break k;e=J[f>>2];g=J[f+628>>2];J[h+16>>2]=72551;Uc(g,e,73496,h+16|0);e=0}e=e>>>3|0}fc=h+80|0;p:{if(!d)break p;i=o-c|0;l=i>>>0<=o>>>0?i:0;g=q?0:d-1|0;q:{while(1){i=J[k+28>>2];h=L[k+24>>1];o=J[a+76>>2]+j|0;t=h;i=i-((o>>>0)%(i>>>0)|0)|0;i=i+j>>>0>d>>>0?d- +j|0:i;h=(i>>>0)%(h>>>0)|0;m=0;if(!((nt(f,pt(f,o,0),p,P(e,(h?t-h|0:0)+i+(J[a+76>>2]+j>>>0)%M[k+28>>2]|0))|0)>=0|!J[a+4>>2]))break q;kc[r|0](a,(P(c,g)<<2)+b|0,0,g,c,i,l,s,P(e,(J[a+76>>2]+j>>>0)%M[k+28>>2]|0)+p|0);g=(q?i:0-i|0)+g|0;j=i+j|0;if(j>>>0>>0)continue;break}m=1}i=m;if(!n)break p;g=0;while(1){j=(P(c,g)<<2)+b|0;a=(j+(c<<2)|0)-4|0;if(a>>>0>j>>>0)while(1){e=J[j>>2];J[j>>2]=J[a>>2];J[a>>2]=e;a=a-4|0;j=j+4|0;if(a>>>0>j>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}uc(p)}fc=k+32|0; +return i|0}function yia(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=fc-16|0;fc=l;m=mG(g);p=cG(g);g=p;kc[J[J[g>>2]+20>>2]](l+4|0,g);J[f>>2]=d;a:{b:{c:{i=a;g=K[i|0];switch(g-43|0){case 0:case 2:break c;default:break b}}J[699344]=0;g=aa(6869,m|0,g<<24>>24)|0;i=J[699344];J[699344]=0;if((i|0)==1)break a;i=J[f>>2];J[f>>2]=i+1;H[i|0]=g;i=a+1|0}d:{g=i;if(!((c-g|0)<=1|K[g|0]!=48|(K[g+1|0]|32)!=120)){J[699344]=0;i=aa(6869,m|0,48)|0;h=J[699344]; +J[699344]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=H[g+1|0];J[699344]=0;i=aa(6869,m|0,i|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=g+2|0;g=i;while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[699344]=0;pa(6851)|0;j=J[699344];J[699344]=0;e:{if((j|0)==1)break e;J[699344]=0;j=J[699344];J[699344]=0;if((j|0)==1)break e;if(!(h-48>>>0<10|(h|32)-97>>>0<6))break d;g=g+1|0;continue}break}break a}while(1){if(c>>>0<=g>>>0)break d;h=H[g|0];J[699344]=0;pa(6851)|0;j= +J[699344];J[699344]=0;if((j|0)==1)break a;J[699344]=0;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(h-48>>>0>=10)break d;g=g+1|0;continue}}f:{if(K[l+15|0]>>>7|0)h=J[l+8>>2];else h=K[l+15|0]&127;if(!h){h=J[f>>2];J[699344]=0;ha(6847,m|0,i|0,g|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;J[f>>2]=J[f>>2]+(g-i|0);break f}J[699344]=0;Ep(i,g);h=J[699344];J[699344]=0;if((h|0)==1)break a;J[699344]=0;q=_(6838,p|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;j=i;while(1){if(g>>>0<=j>>>0){h=J[f>>2]; +J[699344]=0;Ep((i-a|0)+d|0,h);i=J[699344];J[699344]=0;if((i|0)!=1)break f;break a}h=l+4|0;g:{if(K[h+11|0]>>>7|0){k=J[h>>2];break g}k=h}r=H[k+o|0]<=0;if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(r|H[k+o|0]!=(n|0))){n=J[f>>2];J[f>>2]=n+1;H[n|0]=q;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;o=(h-1>>>0>o>>>0)+o|0;n=0}h=H[j|0];J[699344]=0;h=aa(6869,m|0,h|0)|0;k=J[699344];J[699344]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+1;H[k|0]=h;j=j+1|0;n=n+1|0;continue}break}break a}while(1){h:{if(c>>>0>g>>>0){i=K[g| +0];if((i|0)!=46)break h;J[699344]=0;i=_(6848,p|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;g=g+1|0}i=J[f>>2];J[699344]=0;ha(6847,m|0,g|0,c|0,i|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break a;i=f;f=J[f>>2]+(c-g|0)|0;J[i>>2]=f;J[e>>2]=(b|0)==(c|0)?f:(b-a|0)+d|0;jd(l+4|0);fc=l+16|0;return}J[699344]=0;i=aa(6869,m|0,i<<24>>24)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;g=g+1|0;continue}}a=Z()|0;jd(l+4|0);ba(a|0);B()}function JL(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;g=J[a+4>>2];if(J[g+48>>2]<=7){IL(a,b);return}e=J[a+12>>2];c=J[a+8>>2];l=e-c|0;if(l|J[g+44>>2]){h=J[a+16>>2];f=J[a+20>>2];if(h>>>0>=f>>>0){J[b>>2]=15;return}k=1;m=f-h>>1;f=J[a+24>>2];a:{b:{d=J[g+44>>2];if(d){J[g+44>>2]=0;H[g+36|0]=1;H[g+37|0]=d;break b}k=K[g+36|0];if(k)break b;k=0;j=l;e=c;break a}p=g+37|0;d=k<<24>>24;n=4-d|0;o=((d+e|0)-c|0)-4|0;k=0;j=l;c:{d:{e:{while(1){H[d+p|0]=K[c|0];j=j-1|0;k=k+1|0;e=c+1|0;f:{g:switch(d-1|0){case 0:c= +K[g+37|0]|K[g+38|0]<<8;i=c<<8|c>>>8;if((i&63488)!=55296){I[h>>1]=i;if(f){J[f>>2]=-1;f=f+4|0}else f=0;h=h+2|0;m=m-1|0;i=0;H[g+36|0]=0;break a}if(!(i&1024))break f;H[g+36|0]=2;break a;case 2:break g;default:break f}d=K[g+39|0];if((d&252)==220){c=K[g+40|0]|d<<8;d=K[g+37|0]|K[g+38|0]<<8;I[h>>1]=d<<8|d>>>8;if(m>>>0<2)break c;I[h+2>>1]=c;if(f){J[f>>2]=-1;J[f+4>>2]=-1;f=f+8|0}else f=0;h=h+4|0;m=m-2|0;i=0;H[g+36|0]=0;j=o;k=n;break a}J[b>>2]=12;if((J[a+8>>2]-e|0)<2)break e;c=c-1|0;break d}d=d+1|0;c=e;if(j)continue; break}j=0;k=l;i=0;H[g+36|0]=d;break a}J[g+44>>2]=K[g+39|0]|256}H[g+36|0]=2;J[a+24>>2]=f;J[a+16>>2]=h;J[a+8>>2]=c;return}h=h+2|0;H[g+65|0]=1;I[g+116>>1]=c;J[b>>2]=15;m=0;H[g+36|0]=0;j=o;k=n;i=0}h:{i:{j:{if(i&65535){c=e;break j}c=m<<1;c=c>>>0>j>>>0?j&-2:c;if(!c){c=e;break j}j=j-c|0;d=c>>>1|0;m=m-d|0;k:{l:{if(!f){while(1){c=e+2|0;f=K[e|0]|K[e+1|0]<<8;i=f<<8|f>>>8;m:{if((i&63488)!=55296){I[h>>1]=i;e=h+2|0;break m}f=0;if(i&1024|d>>>0<2)break l;f=K[c|0];if((f&252)!=220){f=0;break k}c=K[e+3|0];I[h>>1]=i; I[h+2>>1]=c|f<<8;d=d-1|0;c=e+4|0;e=h+4|0}h=e;e=c;d=d-1|0;if(d)continue;break}d=0;break h}while(1){c=e+2|0;l=K[e|0]|K[e+1|0]<<8;i=l<<8|l>>>8;n:{if((i&63488)!=55296){I[h>>1]=i;i=2;h=h+2|0;n=1;l=f;break n}if(i&1024|d>>>0<2)break l;l=K[c|0];if((l&252)!=220)break k;c=K[e+3|0];I[h>>1]=i;I[h+2>>1]=c|l<<8;J[f>>2]=k;i=4;h=h+4|0;d=d-1|0;n=2;c=e+4|0;l=f+4|0}e=c;J[l>>2]=k;k=i+k|0;f=(n<<2)+f|0;d=d-1|0;if(d)continue;break}d=f;break h}if(!d)break i}m=d+m|0;j=((d<<1)+j|0)-2|0}if(!(i&65535))break i;H[g+36|0]=2;e= -i<<8|(i&65280)>>>8;H[g+37|0]=e;H[g+38|0]=e>>>8;n=12;o:{if(i&1024){d=f;break o}if(j>>>0<2)break i;e=K[c|0];if((e&252)!=220){d=f;j=1;break o}e=K[c+1|0]|e<<8;I[h>>1]=i;d=0;if(f){J[f>>2]=k;d=f+4|0}h=h+2|0;j=j-2|0;H[g+65|0]=1;I[g+116>>1]=e;H[g+36|0]=0;n=15;c=c+2|0}e=c;J[b>>2]=n;break h}d=f;e=c}p:{if(!j|J[b>>2]>0)break p;if(!m){J[b>>2]=15;break p}b=K[e|0];c=H[g+36|0];H[g+36|0]=c+1;H[(c+g|0)+37|0]=b;e=e+1|0}J[a+24>>2]=d;J[a+16>>2]=h;J[a+8>>2]=e}}function RU(a){a=a|0;var b=0,c=0,d=0,e=0;e=bc-16|0;bc=e;J[e+ -12>>2]=0;md(e+12|0,a);J[695492]=0;aa(4985,a+168|0,0)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[695492]=0;_(5211,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;b=ea(2411712)|0;if((cc|0)!=(sa(2411712)|0))break b;b=na(b|0)|0;J[695492]=0;Zg(a+92|0,0,0,16,0);c=J[695492];J[695492]=0;i:{j:{if((c|0)==1)break j;J[695492]=0;c=pa(5213)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j;d=J[J[c>>2]+44>>2];J[695492]=0;ia(d|0,c|0,a|0,16,0);c=J[695492];J[695492]=0;if((c|0)!=1)break i}na(ea(0)| -0)|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)==1)break c}J[695492]=0;_(5214,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;c=Mm(b,J[682138]);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(!(!K[a+88|0]|c)){J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;c=aa(4989,e+4|0,2379010)|0;d=J[695492];J[695492]=0;k:{if((d|0)!=1){d=J[J[b>>2]+20>>2];J[695492]=0;ga(d|0,b|0,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;sc(c);break f}b=ea(0)|0; -break g}b=ea(0)|0;sc(c);break g}J[695492]=0;c=Mm(b,J[682139]);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(!c){J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;c=aa(4989,e+4|0,2379435)|0;d=J[695492];J[695492]=0;l:{if((d|0)!=1){d=J[J[b>>2]+24>>2];J[695492]=0;ga(d|0,b|0,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;sc(c);break f}b=ea(0)|0;break g}b=ea(0)|0;sc(c);break g}J[695492]=0;d=pa(5213)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;b=J[b+ -4>>2];b=b?b:2377794;c=J[695492];J[695492]=0;m:{n:{if((c|0)==1)break n;J[695492]=0;c=aa(4989,e+4|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;b=J[J[d>>2]+20>>2];J[695492]=0;ga(b|0,d|0,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;sc(c);break f}b=ea(0)|0;break g}b=ea(0)|0;sc(c);break g}b=Z()|0;break b}b=ea(0)|0}na(b|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break c}J[695492]=0;Zg(a+96|0,0,0,2,0);a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;ka(4893);a= -J[695492];J[695492]=0;if((a|0)==1)break d}a=J[e+12>>2];J[e+12>>2]=0;o:{if(!a)break o;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break o;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=e+16|0;return}b=Z()|0;break b}b=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}vc(e+12|0);ba(b|0);B()}ea(0)|0;yc();B()}function ckb(a){a=a|0;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;d=bc+-64|0;bc=d;l=J[a+ -16>>2];b=161;a:{if(M[a+20>>2]>>0)break a;e=J[a+32>>2];m=e+48|0;H[e+64|0]=1;i=-2147483648;g=2147483647;while(1){b=k<<2;j=b+d|0;n=b+(d+32|0)|0;c=J[l>>2];h=K[c|0];b:{if((h|0)==30){b=dD(a,c,0,j);break b}f=c+1|0;c:{d:{e:switch(h-28|0){case 0:b=0;if(M[a+8>>2]<=c+2>>>0)break c;b=K[c+2|0]|K[f|0]<<8;break c;case 1:b=0;if(M[a+8>>2]<=c+4>>>0)break c;b=K[c+1|0]|K[c+2|0]<<8|(K[c+3|0]<<16|K[c+4|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break d;default:break e}if(h>>>0<=246){b=h-139|0;break c}c=J[a+ -8>>2];if(h>>>0<=250){b=0;if(c>>>0<=f>>>0)break c;b=(K[f|0]|h<<8)-63124|0;break c}b=0;if(c>>>0<=f>>>0)break c;b=64148-(K[f|0]|h<<8)|0}if((b|0)<32768)break c;c=5;f:{if(b>>>0<1E5)break f;c=6;if(b>>>0<1E6)break f;c=7;if(b>>>0<1E7)break f;c=8;if(b>>>0<1E8)break f;c=b>>>0<1E9?9:10}h=c-5|0;f=J[(h<<2)+258224>>2];if(((b|0)/(f|0)|0)>=32768){c=c-4|0;J[j>>2]=c;b=td(b,J[(c<<2)+258224>>2]);break b}J[j>>2]=h;b=td(b,f);break b}J[j>>2]=0;b=b<<16}J[n>>2]=b;if(b){b=J[j>>2];g=(b|0)<(g|0)?b:g;i=(b|0)>(i|0)?b:i}l=l+4| -0;k=k+1|0;if((k|0)!=6)continue;break}if(!(i-1>>>0<4294967286|i-g>>>0>9)){k=0;h=0;a=J[d+32>>2];if(a){c=J[(i-J[d>>2]<<2)+258224>>2];b=c>>1;h=(((a|0)<0?a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0:a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0)|0)/(c|0)|0}a=J[d+36>>2];if(a){c=J[(i-J[d+4>>2]<<2)+258224>>2];b=c>>1;k=(((a|0)>=0?a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0:a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0)|0)/(c|0)|0}b=0;j=0;a=J[d+40>>2];if(a){g=J[(i-J[d+8>>2]<<2)+258224>>2];c=g>>1;j=(((a|0)>=0?a>>> -0>=(c^2147483647)>>>0?2147483647:a+c|0:a>>>0<=(c|-2147483648)>>>0?-2147483648:a-c|0)|0)/(g|0)|0}a=J[d+44>>2];if(a){c=J[(i-J[d+12>>2]<<2)+258224>>2];b=c>>1;b=(((a|0)>=0?a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0:a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0)|0)/(c|0)|0}g=0;f=0;a=J[d+48>>2];if(a){f=J[(i-J[d+16>>2]<<2)+258224>>2];c=f>>1;f=(((a|0)>=0?a>>>0>=(c^2147483647)>>>0?2147483647:a+c|0:a>>>0<=(c|-2147483648)>>>0?-2147483648:a-c|0)|0)/(f|0)|0}a=J[d+52>>2];if(a){g=J[(i-J[d+20>>2]<<2)+258224>>2];c= -g>>1;g=(((a|0)>=0?a>>>0>=(c^2147483647)>>>0?2147483647:a+c|0:a>>>0<=(c|-2147483648)>>>0?-2147483648:a-c|0)|0)/(g|0)|0}J[e+48>>2]=h;J[e+72>>2]=f;J[e+56>>2]=k;J[e+76>>2]=g;J[e+60>>2]=b;J[e+52>>2]=j;J[e+68>>2]=J[258224-(i<<2)>>2];b=0;if($C(m))break a}J[e+48>>2]=65536;J[e+52>>2]=0;J[e+68>>2]=1;J[e+72>>2]=0;J[e+76>>2]=0;J[e+56>>2]=0;J[e+60>>2]=65536;b=0}bc=d- -64|0;return b|0}function Lx(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+528>>2];d=dk(a,b,0,0,0,0,0,0,0,1);a:{if(d)break a;J[b+36>>2]=0;J[b+40>>2]=0;H[b+31| -0]=1;H[b+32|0]=1;J[b+48>>2]=0;J[b+52>>2]=0;H[b+44|0]=0;J[b+56>>2]=0;J[b+60>>2]=0;c=b- -64|0;J[c>>2]=0;J[c+4>>2]=0;I[b+70>>1]=0;I[b+72>>1]=0;I[b+74>>1]=0;I[b+76>>1]=0;H[a+433|0]=0;b=J[a+548>>2];b:{if(b){H[a+306|0]=K[b|0];H[a+307|0]=K[b+1|0];H[a+308|0]=K[b+2|0];H[a+309|0]=K[b+3|0];H[a+310|0]=K[b+4|0];H[a+311|0]=K[b+5|0];H[a+312|0]=K[b+6|0];I[a+1052>>1]=L[b+8>>1];I[a+1054>>1]=L[b+10>>1];I[a+1056>>1]=L[b+12>>1];H[a+1058|0]=K[b+14|0];I[a+1060>>1]=L[b+16>>1];H[a+1062|0]=K[b+18|0];H[a+1080|0]=K[b+19|0]; -J[a+1088>>2]=J[b+24>>2];H[a+1092|0]=K[b+28|0];J[a+1096>>2]=J[b+32>>2];J[a+1100>>2]=J[b+36>>2];J[a+1104>>2]=J[b+40>>2];J[a+1108>>2]=J[b+44>>2];J[a+1144>>2]=J[a+1116>>2];J[a+1160>>2]=J[b+48>>2];tc(a+1164|0,b+52|0,768);J[a+1932>>2]=J[b+820>>2];tc(a+1936|0,b+824|0,256);J[a+2192>>2]=J[b+1080>>2];J[a+2196>>2]=J[b+1084>>2];J[a+2200>>2]=J[b+1088>>2];J[a+2204>>2]=J[b+1092>>2];J[a+2208>>2]=J[b+1096>>2];J[a+2212>>2]=J[b+1100>>2];J[a+2216>>2]=J[b+1104>>2];J[a+2220>>2]=J[b+1108>>2];J[a+2224>>2]=J[b+1112>>2];H[a+ -2228|0]=K[b+1116|0];c=J[b+1120>>2];J[a+2232>>2]=c;if(c){c=gc[J[a+152>>2]](c)|0;J[a+2236>>2]=c;if(!c){Dc(a,1,0,0);return 1}tc(c,J[b+1124>>2],J[a+2232>>2])}I[a+2240>>1]=L[b+1128>>1];I[a+2242>>1]=L[b+1130>>1];c=L[b+1132>>1];break b}I[a+306>>1]=0;I[a+308>>1]=0;H[a+309|0]=0;H[a+310|0]=0;H[a+311|0]=0;H[a+312|0]=0;if(!K[a+503|0]){H[a+1062|0]=0;I[a+1060>>1]=0;J[a+1052>>2]=0;b=a+1055|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0}J[a+1096>>2]=0;J[a+1100>>2]=0;H[a+1092|0]=0;J[a+1088>>2]=2147483647;H[a+1080|0]= -1;J[a+2192>>2]=0;J[a+2196>>2]=0;J[a+1932>>2]=0;J[a+1160>>2]=0;b=a+1104|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1144>>2]=J[a+1116>>2];b=a+2200|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2208|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2216|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2221|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;b=J[a+2232>>2];c:{if(!b)break c;c=J[a+2236>>2];if(!c)break c;gc[J[a+156>>2]](c,b);J[a+2236>>2]=0}J[a+2240>>2]=0;J[a+2232>>2]=0;c=0}I[a+2244>>1]=c;d:{if(K[a+503|0])break d;b=J[a+688>>2]; -if(!b)break d;f=a+692|0;while(1){c=b;b=J[b+8>>2];e:{if(K[c+30|0])break e;d=J[c+12>>2];f:{if(d){J[d+8>>2]=b;break f}J[a+688>>2]=b}J[(b?b+12|0:f)>>2]=d;d=J[c+88>>2];if(K[d+32|0]){e=J[d+28>>2];if(e>>>0<=1){Dc(a,999,0,0);return 999}J[d+28>>2]=e-1;gc[J[a+156>>2]](c,92);break e}d=I8(a,d);gc[J[a+156>>2]](c,92);if(d)break a}if(b)continue;break}}d=0}return d}function DW(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=P(e,3);h=J[b>>2]>>>n|0;if(h&2097168)break a;h=h&495;if(!h)break a;l=(K[h+J[a+ -108>>2]|0]<<2)+a|0;J[a+104>>2]=l+28;k=J[l+28>>2];i=J[k>>2];h=J[a+4>>2]-i|0;J[a+4>>2]=h;j=J[a>>2];b:{if(j>>>16>>>0>>0){m=J[k+4>>2];J[a+4>>2]=i;h=h>>>0>>0;J[l+28>>2]=J[k+(h?8:12)>>2];k=h?m:!m;h=J[a+8>>2];while(1){c:{if(h)break c;h=J[a+16>>2];m=h+1|0;l=K[h+1|0];if(K[h|0]==255){if(l>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;j=j+65280|0;h=8;break c}J[a+16>>2]=m;j=(l<<9)+j|0;h=7;break c}J[a+16>>2]=m;h=8;j=(l<<8)+j|0}h=h-1|0;J[a+8>>2]=h;j=j<<1;J[a>>2]=j;i=i<<1;J[a+4>>2]=i;if(i>>>0<32768)continue;break}h=i; -break b}j=j-(i<<16)|0;J[a>>2]=j;if(!(h&32768)){m=J[k+4>>2];i=h>>>0>>0;J[l+28>>2]=J[k+(i?12:8)>>2];k=i?!m:m;i=J[a+8>>2];while(1){d:{if(i)break d;i=J[a+16>>2];m=i+1|0;l=K[i+1|0];if(K[i|0]==255){if(l>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;j=j+65280|0;i=8;break d}J[a+16>>2]=m;j=(l<<9)+j|0;i=7;break d}J[a+16>>2]=m;i=8;j=(l<<8)+j|0}i=i-1|0;J[a+8>>2]=i;j=j<<1;J[a>>2]=j;h=h<<1;J[a+4>>2]=h;if(h>>>0<32768)continue;break}break b}k=J[k+4>>2]}e:{if(!k)break e;o=b-4|0;i=J[b>>2];k=J[b+4>>2]>>>n+17&4|(J[o>>2]>>>n+ -19&1|(i>>>n+16&64|i>>>n&170|i>>>(e?n+12|0:14)&16));m=(K[k+2363440|0]<<2)+a|0;J[a+104>>2]=m+28;l=J[m+28>>2];i=J[l>>2];h=h-i|0;J[a+4>>2]=h;p=K[k+2363696|0];f:{if(j>>>16>>>0>>0){k=J[l+4>>2];J[a+4>>2]=i;h=h>>>0>>0;J[m+28>>2]=J[l+(h?8:12)>>2];l=h?k:!k;h=J[a+8>>2];while(1){g:{if(h)break g;h=J[a+16>>2];m=h+1|0;k=K[h+1|0];if(K[h|0]==255){if(k>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;j=j+65280|0;h=8;break g}J[a+16>>2]=m;j=(k<<9)+j|0;h=7;break g}J[a+16>>2]=m;h=8;j=(k<<8)+j|0}h=h-1|0;J[a+8>>2]=h;j=j<<1;J[a>> -2]=j;i=i<<1;J[a+4>>2]=i;if(i>>>0<32768)continue;break}break f}k=j-(i<<16)|0;J[a>>2]=k;if(!(h&32768)){j=J[l+4>>2];i=h>>>0>>0;J[m+28>>2]=J[l+(i?12:8)>>2];l=i?!j:j;j=J[a+8>>2];while(1){h:{if(j)break h;j=J[a+16>>2];m=j+1|0;i=K[j+1|0];if(K[j|0]==255){if(i>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;k=k+65280|0;j=8;break h}J[a+16>>2]=m;k=(i<<9)+k|0;j=7;break h}J[a+16>>2]=m;j=8;k=(i<<8)+k|0}j=j-1|0;J[a+8>>2]=j;k=k<<1;J[a>>2]=k;h=h<<1;J[a+4>>2]=h;if(h>>>0<32768)continue;break}break f}l=J[l+4>>2]}a=c;c=l^p;J[a>> -2]=c?0-d|0:d;J[o>>2]=J[o>>2]|32<>2]=J[b>>2]|(c<<19|16)<>2]=J[b+4>>2]|8<>2]=J[a+4>>2]|32768;J[a>>2]=J[a>>2]|c<<31|65536;a=a-4|0;J[a>>2]=J[a>>2]|131072}if((e|0)!=3)break e;a=(f<<2)+b|0;J[a+4>>2]=J[a+4>>2]|1;J[a>>2]=J[a>>2]|c<<18|2;a=a-4|0;J[a>>2]=J[a>>2]|4}J[b>>2]=J[b>>2]|2097152<>2])|0)!=1))break a; -xf(a,o+12|0,o+8|0,0);v=a?J[a+40>>2]:0;w=a?J[a+12>>2]:-1;if((c|d)<0)break a;p=J[o+12>>2];if((p|0)<=(c|0))break a;q=J[o+8>>2];if(!(J[((P(d,w)<<2)+v|0)+(c>>>3&536870908)>>2]>>>(c^-1)&1)|(q|0)<=(d|0))break a;b:{if((q-1|0)<=(d|0))break b;e=J[b+12>>2];if(!e)break b;c:{if(((e?J[e+4>>2]:1)|0)>0){a=vl(e);break c}a=bd(1,16);if(!a)break b}J[a+12>>2]=1;J[a+8>>2]=d;J[a+4>>2]=c;J[a>>2]=c;ul(b,a)}e=J[b+12>>2];d:{if(!e)break d;e:{if(((e?J[e+4>>2]:1)|0)>0){a=vl(e);break e}a=bd(1,16);if(!a)break d}J[a+12>>2]=-1;J[a+ -8>>2]=d+1;J[a+4>>2]=c;J[a>>2]=c;ul(b,a)}f:{if(((b?J[b+4>>2]:1)|0)<=0){h=c;l=d;break f}x=p-1|0;h=c;l=d;g=d;while(1){e=J[b+12>>2];g:{if(!e)break g;f=vl(b);if(!f)break g;u=J[f+4>>2];r=J[f>>2];n=J[f+12>>2];a=J[f+8>>2];ul(e,f);g=a+n|0}a=r-1|0;s=(P(g,w)<<2)+v|0;h:{i:{if((r|0)<=0)break i;e=a;k=r;i=(a>>>3&536870908)+s|0;m=J[i>>2];j=a&31;j:{if(!(m>>>(j^31)&1))break j;while(1){f=e;e=-1;J[i>>2]=(-2147483648>>>j^-1)&m;k=0;if((f|0)<=0)break j;k=f;e=f-1|0;i=(e>>>3&536870908)+s|0;m=J[i>>2];j=e&31;if(m>>>(j^31)& -1)continue;break}}if((k|0)>=(r|0)){a=e;break i}d=(d|0)>(g|0)?d:g;l=(g|0)>(l|0)?l:g;c=(a|0)<(c|0)?c:a;h=(h|0)<(k|0)?h:k;e=g-n|0;k:{if((e|0)<0|(e|0)>=(q|0))break k;f=J[b+12>>2];if(!f)break k;l:{if(((f?J[f+4>>2]:1)|0)>0){e=vl(f);break l}e=bd(1,16);if(!e)break k}J[e+12>>2]=0-n;J[e+8>>2]=g;J[e+4>>2]=a;J[e>>2]=k;ul(b,e)}a=r;e=0;break h}e=1}while(1){m:{n:{o:{if(!e){p:{if((a|0)>=(p|0))break p;while(1){j=(a>>5<<2)+s|0;f=J[j>>2];e=a&31;if(!(f>>>(e^31)&1))break p;J[j>>2]=f&(-2147483648>>>e^-1);a=a+1|0;if((p| -0)!=(a|0))continue;break}a=p}t=a-1|0;c=(c|0)>(t|0)?c:t;d=(d|0)>(g|0)?d:g;l=(g|0)>(l|0)?l:g;h=(h|0)<(k|0)?h:k;e=g+n|0;q:{if((e|0)<0|(e|0)>=(q|0))break q;f=J[b+12>>2];if(!f)break q;r:{if(((f?J[f+4>>2]:1)|0)>0){e=vl(f);break r}e=bd(1,16);if(!e)break q}J[e+12>>2]=n;J[e+8>>2]=g;J[e+4>>2]=t;J[e>>2]=k;ul(b,e)}if((a|0)<=(u|0))break o;j=u+1|0;h=(h|0)<(j|0)?h:j;e=g-n|0;if((e|0)<0|(e|0)>=(q|0))break o;m=J[b+12>>2];if(!m)break o;e=0-n|0;s:{if(((m?J[m+4>>2]:1)|0)>0){i=vl(m);break s}i=bd(1,16);if(!i)break o}J[i+ -12>>2]=e;J[i+8>>2]=g;J[i+4>>2]=t;J[i>>2]=j;ul(b,i);break o}if((a|0)>(u|0)|(a|0)>=(x|0))break m;a=a+1|0;if(J[(a>>5<<2)+s>>2]>>>(a^-1)&1)break n}e=1;continue}k=a;e=0;continue}break}if(((b?J[b+4>>2]:1)|0)>0)continue;break}}e=DM(h,l,(c-h|0)+1|0,(d-l|0)+1|0)}bc=o+16|0;return e}function DF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=bc-48|0;bc=i;A(+a);e=v(1)|0;d=v(0)|0;a:{b:{h=e&2147483647;c:{if(h>>>0<=1074752122){if((e&1048575)==598523)break c;if(h>>>0<=1073928572){if((e|0)>0|(e|0)>=0){a=a+-1.5707963267341256; -c=a+-6.077100506506192E-11;O[b>>3]=c;O[b+8>>3]=a-c+-6.077100506506192E-11;d=1;break a}a=a+1.5707963267341256;c=a+6.077100506506192E-11;O[b>>3]=c;O[b+8>>3]=a-c+6.077100506506192E-11;d=-1;break a}if((e|0)>0|(e|0)>=0){a=a+-3.1415926534682512;c=a+-1.2154201013012384E-10;O[b>>3]=c;O[b+8>>3]=a-c+-1.2154201013012384E-10;d=2;break a}a=a+3.1415926534682512;c=a+1.2154201013012384E-10;O[b>>3]=c;O[b+8>>3]=a-c+1.2154201013012384E-10;d=-2;break a}if(h>>>0<=1075594811){if(h>>>0<=1075183036){if((h|0)==1074977148)break c; -if((e|0)>0|(e|0)>=0){a=a+-4.712388980202377;c=a+-1.8231301519518578E-10;O[b>>3]=c;O[b+8>>3]=a-c+-1.8231301519518578E-10;d=3;break a}a=a+4.712388980202377;c=a+1.8231301519518578E-10;O[b>>3]=c;O[b+8>>3]=a-c+1.8231301519518578E-10;d=-3;break a}if((h|0)==1075388923)break c;if((e|0)>0|(e|0)>=0){a=a+-6.2831853069365025;c=a+-2.430840202602477E-10;O[b>>3]=c;O[b+8>>3]=a-c+-2.430840202602477E-10;d=4;break a}a=a+6.2831853069365025;c=a+2.430840202602477E-10;O[b>>3]=c;O[b+8>>3]=a-c+2.430840202602477E-10;d=-4; -break a}if(h>>>0>1094263290)break b}f=a*.6366197723675814+6755399441055744+-6755399441055744;c=a+f*-1.5707963267341256;g=f*6.077100506506192E-11;l=c-g;e=l<-.7853981633974483;if(R(f)<2147483648)d=~~f;else d=-2147483648;d:{if(e){d=d-1|0;f=f+-1;g=f*6.077100506506192E-11;c=a+f*-1.5707963267341256;break d}if(!(l>.7853981633974483))break d;d=d+1|0;f=f+1;g=f*6.077100506506192E-11;c=a+f*-1.5707963267341256}a=c-g;O[b>>3]=a;A(+a);e=v(1)|0;v(0)|0;j=h>>>20|0;e:{if((j-(e>>>20&2047)|0)<17)break e;g=c;a=f*6.077100506303966E-11; -c=c-a;g=f*2.0222662487959506E-21-(g-c-a);a=c-g;O[b>>3]=a;A(+a);e=v(1)|0;v(0)|0;if((j-(e>>>20&2047)|0)<50)break e;g=c;a=f*2.0222662487111665E-21;c=c-a;g=f*8.4784276603689E-32-(g-c-a);a=c-g;O[b>>3]=a}O[b+8>>3]=c-a-g;break a}if(h>>>0>=2146435072){a=a-a;O[b>>3]=a;O[b+8>>3]=a;d=0;break a}x(0,d|0);x(1,e&1048575|1096810496);a=+z();d=0;j=1;while(1){k=(i+16|0)+(d<<3)|0;if(R(a)<2147483648)d=~~a;else d=-2147483648;c=+(d|0);O[k>>3]=c;a=(a-c)*16777216;d=1;k=j;j=0;if(k)continue;break}O[i+32>>3]=a;d=2;while(1){j= -d;d=d-1|0;k=i+16|0;if(O[k+(j<<3)>>3]==0)continue;break}d=RR(k,i,(h>>>20|0)-1046|0,j+1|0,1);a=O[i>>3];if((e|0)<0){O[b>>3]=-a;O[b+8>>3]=-O[i+8>>3];d=0-d|0;break a}O[b>>3]=a;O[b+8>>3]=O[i+8>>3]}bc=i+48|0;return d}function QV(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;i=bc-16|0;bc=i;a:{b:{c:{d:{e:{d=J[a+708>>2];switch(d|0){case 0:break c;case 1:break e;default:break d}}Ld(a,c);break b}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break c;Yc(a,66057);Ld(a,c);break b}d=J[a+200>>2];if(!(d&1))break a; -if(d&4){Yc(a,66115);Ld(a,c);break b}rd(a,J[a+740>>2]);d=_g(a,c+1|0);J[a+740>>2]=d;qg(a,d,c);pe(a,d,c);e=Ld(a,0);d=J[a+740>>2];if(e){rd(a,d);J[a+740>>2]=0;break b}H[c+d|0]=0;h=J[a+740>>2];d=h;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}if(!((c+h|0)-2>>>0>=d>>>0&c>>>0>=2)){rd(a,h);J[a+740>>2]=0;Yc(a,66139);break b}g=K[e+1|0];H[i+4|0]=g;d=e+2|0;e=(h-d|0)+c|0;j=(g|0)==8?6:10;c=(e>>>0)/(j>>>0)|0;if((e|0)!=(P(c,j)|0)){rd(a,h);J[a+740>>2]=0;Yc(a,66160);break b}if(c>>>0>=429496730){Yc(a,66186);break b}J[i+ -12>>2]=c;h=gg(a,P(c,10));J[i+8>>2]=h;f:{g:{if(h){if(e>>>0>>0)break f;if((g|0)!=8)break g;while(1){e=h+P(f,10)|0;I[e>>1]=K[d|0];I[e+2>>1]=K[d+1|0];I[e+4>>1]=K[d+2|0];I[e+6>>1]=K[d+3|0];k=e;e=K[d+4|0]|K[d+5|0]<<8;I[k+8>>1]=e<<8|e>>>8;d=d+6|0;f=f+1|0;if((c|0)!=(f|0))continue;break}break f}Yc(a,66206);break b}while(1){e=h+P(f,10)|0;g=K[d|0]|K[d+1|0]<<8;I[e>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[e+2>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;I[e+4>>1]=g<<8|g>>>8;g=K[d+6|0]|K[d+7|0]<<8;I[e+6>>1]=g<<8|g>>> -8;k=e;e=K[d+8|0]|K[d+9|0]<<8;I[k+8>>1]=e<<8|e>>>8;d=d+10|0;f=f+1|0;if((c|0)!=(f|0))continue;break}}J[i>>2]=J[a+740>>2];j=0;c=bc-80|0;bc=c;h:{if(!a|!b)break h;i:{d=J[b+216>>2];j:{if(!(d^2147483647))break j;d=d+1|0;if(d>>>0>268435454)break j;d=gg(a,d<<4);if(d)break i}Yc(a,65185);break h}e=d;d=J[b+212>>2];p=tc(e,d,J[b+216>>2]<<4);rd(a,d);J[b+212>>2]=0;while(1){l=(n<<4)+i|0;m=J[l>>2];k:{if(!m){H[c|0]=0;Yc(a,65278);break k}k=J[b+216>>2];d=c;o=1;g=0;e=K[m|0];l:{if(!e)break l;h=1;while(1){f=0;o=e>>>0<161& -(e-127&255)>>>0<162;m:{if(o){f=1;if(h)break m;e=32}H[d|0]=e;g=g+1|0;d=d+1|0}m=m+1|0;e=K[m|0];if(!e)break l;h=f;if(g>>>0<79)continue;break}}e=d;d=(g|0)!=0&o;H[e-d|0]=0;f=g-d|0;if(!f){Yc(a,65278);break k}d=((k<<4)+p|0)+(j<<4)|0;e=f+1|0;f=gg(a,e);J[d>>2]=f;if(!f){Yc(a,65340);break k}e=tc(f,c,e);f=gg(a,P(J[l+12>>2],10));J[d+8>>2]=f;if(!f){Yc(a,65340);rd(a,e);J[d>>2]=0;break k}e=f;f=J[l+12>>2];tc(e,J[l+8>>2],P(f,10));J[d+12>>2]=f;H[d+4|0]=K[l+4|0];j=j+1|0}n=n+1|0;if((n|0)!=1)continue;break}J[b+216>>2]= -j;J[b+212>>2]=p;J[b+8>>2]=J[b+8>>2]|8192;J[b+184>>2]=J[b+184>>2]|32}bc=c+80|0;rd(a,J[a+740>>2]);J[a+740>>2]=0;rd(a,J[i+8>>2])}bc=i+16|0;return}Ad(a,66090);B()}function _gb(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;h=bc-96|0;bc=h;J[h+80>>2]=0;J[h+84>>2]=0;J[h+72>>2]=0;J[h+76>>2]=0;j=h- -64|0;J[j>>2]=0;J[j+4>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[h+48>>2]=0;J[h+52>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;m=c+10|0;g=Sc(a,8,0,m,0,h+92|0);J[b+20>>2]=g;j=J[h+92>>2];if(!j){a:{if(!c)break a; -while(1){j=gc[d|0](f,l)|0;b:{if(!j)break b;i=0;c:{d:{if(!Ec(324240,j))break d;i=1;if(!Ec(324246,j))break d;i=2;if(!Ec(324252,j))break d;i=3;if(!Ec(324261,j))break d;i=4;if(!Ec(324268,j))break d;i=5;if(!Ec(324275,j))break d;i=6;if(!Ec(324278,j))break d;i=7;if(!Ec(324293,j))break d;i=8;if(!Ec(324299,j))break d;if(Ec(324312,j))break c;i=9}k=i<<2;i=k+(h+48|0)|0;if(J[i>>2])break c;J[i>>2]=1;J[h+k>>2]=l}i=Q4(j);if(i&2147483647){n=h+48|0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((i|0)<=915){n:switch(i-160|0){case 0:break i; -case 13:break m;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break e;default:break n}switch(i-538|0){case 1:break g;case 0:break h;default:break l}}o:{p:switch(i-937|0){default:q:switch(i-8725|0){case 4:break j;case 0:break o;case 1:case 2:case 3:break e;default:break q}k=0;if((i|0)==916)break f;break e;case 19:break k;case 0:break p;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:break e}k= -1;break f}k=2;break f}k=3;break f}if((i|0)!=713)break e;k=4;break f}k=5;break f}k=6;break f}k=7;break f}k=8;break f}k=9}J[n+(k<<2)>>2]=2}J[g+4>>2]=l;J[g>>2]=i;g=g+8|0}if(!e)break b;gc[e|0](f,j)}l=l+1|0;if((l|0)!=(c|0))continue;break}if(J[h+48>>2]!=1)break a;J[g>>2]=916;J[g+4>>2]=J[h>>2];g=g+8|0}if(J[h+52>>2]==1){J[g>>2]=937;J[g+4>>2]=J[h+4>>2];g=g+8|0}if(J[h+56>>2]==1){J[g>>2]=8725;J[g+4>>2]=J[h+8>>2];g=g+8|0}if(J[h+60>>2]==1){J[g>>2]=173;J[g+4>>2]=J[h+12>>2];g=g+8|0}if(J[h+64>>2]==1){J[g>>2]=713; -J[g+4>>2]=J[h+16>>2];g=g+8|0}if(J[h+68>>2]==1){J[g>>2]=956;J[g+4>>2]=J[h+20>>2];g=g+8|0}if(J[h+72>>2]==1){J[g>>2]=8729;J[g+4>>2]=J[h+24>>2];g=g+8|0}if(J[h+76>>2]==1){J[g>>2]=160;J[g+4>>2]=J[h+28>>2];g=g+8|0}if(J[h+80>>2]==1){J[g>>2]=538;J[g+4>>2]=J[h+32>>2];g=g+8|0}if(J[h+84>>2]==1){J[g>>2]=539;J[g+4>>2]=J[h+36>>2];g=g+8|0}j=J[b+20>>2];d=g-j>>3;r:{if((g|0)==(j|0)){if(g)gc[J[a+8>>2]](a,g);J[b+20>>2]=0;a=J[h+92>>2];j=a?a:163;break r}if(d>>>0>>1>>>0){j=Sc(a,8,m,d,j,h+92|0);J[b+20>>2]=j;J[h+92>>2]= -0}Kl(j,d,8,1693);j=J[h+92>>2]}J[b+16>>2]=d}bc=h+96|0;return j|0}function h2(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;y=O[a+72>>3];z=O[a+80>>3];s=Y(y*y+z*z);O[a+208>>3]=s;o=J[a+188>>2];b=J[o- -64>>2];C=J[o+60>>2];e=J[o+56>>2];g=J[o+52>>2];f=J[a+268>>2];if(!f){I[o+68>>1]=2048;J[a+268>>2]=2048;f=2048}c=O[a+112>>3];A=O[a+8>>3];p=+(g|0);k=A*p;B=O[a+24>>3];h=+(e|0);l=B*h;i=+(((C|0)>2E4?65536:1)|0)*+(f|0);q=c*(k+l)/i;a:{if(R(q)< -2147483648){f=~~q;break a}f=-2147483648}J[a+160>>2]=f;J[a+152>>2]=f;q=O[a+16>>3];m=q*p;p=O[a+32>>3];h=p*h;t=c*(m+h)/i;b:{if(R(t)<2147483648){g=~~t;break b}g=-2147483648}J[a+164>>2]=g;J[a+156>>2]=g;u=a+152|0;v=a+160|0;n=k;k=+(b|0);t=B*k;n=c*(n+t)/i;c:{if(R(n)<2147483648){e=~~n;break c}e=-2147483648}d:{e:{if((e|0)<(f|0)){j=u;b=f;f=e;break e}j=v;r=f;b=e;if((f|0)>=(b|0))break d}r=f;J[j>>2]=e;f=b}w=a+156|0;x=a+164|0;k=p*k;m=c*(m+k)/i;f:{if(R(m)<2147483648){d=~~m;break f}d=-2147483648}g:{h:{if((d|0)<(g| -0)){b=w;e=g;g=d;break h}b=x;j=g;e=d;if((d|0)<=(g|0))break g}j=g;J[b>>2]=d;g=e}m=+(C|0);n=A*m;l=c*(n+l)/i;i:{if(R(l)<2147483648){d=~~l;break i}d=-2147483648}j:{k:{if((d|0)<(r|0)){e=u;b=f;r=d;break k}e=v;b=d;if((d|0)<=(f|0))break j}J[e>>2]=d;f=b}l=q*m;h=c*(l+h)/i;l:{if(R(h)<2147483648){d=~~h;break l}d=-2147483648}m:{n:{if((d|0)<(j|0)){e=w;b=g;j=d;break n}e=x;b=d;if((d|0)<=(g|0))break m}J[e>>2]=d;g=b}h=c*(n+t)/i;o:{if(R(h)<2147483648){d=~~h;break o}d=-2147483648}p:{q:{if((d|0)<(r|0)){e=u;r=d;b=f;break q}e= -v;b=d;if((d|0)<=(f|0))break p}J[e>>2]=d;f=b}i=c*(l+k)/i;r:{if(R(i)<2147483648){d=~~i;break r}d=-2147483648}s:{t:{if((d|0)<(j|0)){e=w;j=d;b=g;break t}e=x;b=d;if((d|0)<=(g|0))break s}J[e>>2]=d;g=b}if((f|0)==(r|0)){J[u>>2]=0;if(R(c)<2147483648)b=~~c;else b=-2147483648;J[v>>2]=b}if((g|0)==(j|0)){J[w>>2]=0;c=c*1.2;u:{if(R(c)<2147483648){b=~~c;break u}b=-2147483648}J[x>>2]=b}c=q*65536;v:{if(R(c)<2147483648){b=~~c;break v}b=-2147483648}J[a+228>>2]=b;c=A*65536;w:{if(R(c)<2147483648){b=~~c;break w}b=-2147483648}J[a+ -220>>2]=b;c=p*65536;x:{if(R(c)<2147483648){b=~~c;break x}b=-2147483648}J[a+232>>2]=b;c=B*65536;y:{if(R(c)<2147483648){b=~~c;break y}b=-2147483648}J[a+224>>2]=b;c=z/s*65536;z:{if(R(c)<2147483648){b=~~c;break z}b=-2147483648}J[a+248>>2]=b;c=y/s*65536;A:{if(R(c)<2147483648){b=~~c;break A}b=-2147483648}J[a+240>>2]=b;c=O[a+56>>3]/s*65536;B:{if(R(c)<2147483648){b=~~c;break B}b=-2147483648}J[a+236>>2]=b;c=O[a- -64>>3]/s*65536;C:{if(R(c)<2147483648){b=~~c;break C}b=-2147483648}J[a+244>>2]=b;iu(o,a+220|0, -0)}function h7(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;n=bc-16|0;bc=n;h=!a;a:{if(h|(!b|((h?-1:J[a+8>>2])|0)!=1))break a;xf(a,n+12|0,n+8|0,0);u=a?J[a+40>>2]:0;v=a?J[a+12>>2]:-1;if((c|d)<0)break a;o=J[n+12>>2];if((o|0)<=(c|0))break a;p=J[n+8>>2];if(!(J[((P(d,v)<<2)+u|0)+(c>>>3&536870908)>>2]>>>(c^-1)&1)|(p|0)<=(d|0))break a;b:{if((p-1|0)<=(d|0))break b;e=J[b+12>>2];if(!e)break b;c:{if(((e?J[e+4>>2]:1)|0)>0){a=vl(e);break c}a=bd(1,16);if(!a)break b}J[a+ -12>>2]=1;J[a+8>>2]=d;J[a+4>>2]=c;J[a>>2]=c;ul(b,a)}e=J[b+12>>2];d:{if(!e)break d;e:{if(((e?J[e+4>>2]:1)|0)>0){a=vl(e);break e}a=bd(1,16);if(!a)break d}J[a+12>>2]=-1;J[a+8>>2]=d+1;J[a+4>>2]=c;J[a>>2]=c;ul(b,a)}f:{if(((b?J[b+4>>2]:1)|0)<=0){i=c;h=d;break f}w=o-1|0;i=c;h=d;g=d;while(1){e=J[b+12>>2];g:{if(!e)break g;f=vl(b);if(!f)break g;s=J[f+4>>2];q=J[f>>2];l=J[f+12>>2];a=J[f+8>>2];ul(e,f);g=a+l|0}t=(P(g,v)<<2)+u|0;h:{i:{e=q;if((e|0)<0){a=e;break i}while(1){j:{m=(e>>>3&536870908)+t|0;j=J[m>>2];f=e& -31;if(!(j>>>(f^31)&1)){a=e;break j}a=-1;J[m>>2]=j&(-2147483648>>>f^-1);f=(e|0)>0;e=e-1|0;if(f)continue}break}if((a|0)>=(q|0))break i;k=a+1|0;f=q-1|0;k:{if((k|0)>=(f|0))break k;d=(d|0)>(g|0)?d:g;h=(g|0)>(h|0)?h:g;c=(c|0)>(f|0)?c:f;i=(i|0)<(k|0)?i:k;a=g-l|0;if((a|0)<0|(a|0)>=(p|0))break k;e=J[b+12>>2];if(!e)break k;l:{if(((e?J[e+4>>2]:1)|0)>0){e=vl(e);break l}e=bd(1,16);if(!e)break k}J[e+12>>2]=0-l;J[e+8>>2]=g;J[e+4>>2]=f;J[e>>2]=k;ul(b,e)}a=q+1|0;e=0;break h}e=1}while(1){if(!e){m:{if((a|0)>=(o|0))break m; -while(1){j=(a>>5<<2)+t|0;f=J[j>>2];e=a&31;if(!(f>>>(e^31)&1))break m;J[j>>2]=f&(-2147483648>>>e^-1);a=a+1|0;if((o|0)!=(a|0))continue;break}a=o}r=a-1|0;c=(c|0)>(r|0)?c:r;d=(d|0)>(g|0)?d:g;h=(g|0)>(h|0)?h:g;i=(i|0)<(k|0)?i:k;e=g+l|0;n:{if((e|0)<0|(e|0)>=(p|0))break n;f=J[b+12>>2];if(!f)break n;o:{if(((f?J[f+4>>2]:1)|0)>0){e=vl(f);break o}e=bd(1,16);if(!e)break n}J[e+12>>2]=l;J[e+8>>2]=g;J[e+4>>2]=r;J[e>>2]=k;ul(b,e)}m=s+1|0;p:{if((m|0)>=(a|0))break p;i=(i|0)<(m|0)?i:m;e=g-l|0;if((e|0)<0|(e|0)>=(p|0))break p; -j=J[b+12>>2];if(!j)break p;f=0-l|0;q:{if(((j?J[j+4>>2]:1)|0)>0){e=vl(j);break q}e=bd(1,16);if(!e)break p}J[e+12>>2]=f;J[e+8>>2]=g;J[e+4>>2]=r;J[e>>2]=m;ul(b,e)}e=1;continue}e=(s|0)<(w|0)?s:w;e=(a|0)>(e|0)?a:e;r:{while(1){if((a|0)==(e|0))break r;a=a+1|0;if(!(J[(a>>5<<2)+t>>2]>>>(a^-1)&1))continue;break}k=a;e=0;continue}break}if(((b?J[b+4>>2]:1)|0)>0)continue;break}}e=DM(i,h,(c-i|0)+1|0,(d-h|0)+1|0)}bc=n+16|0;return e}function bSa(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;d=bc-208|0;bc=d; -J[d+192>>2]=13;if(J[a+16>>2]){J[d+32>>2]=J[b+8>>2];vq(833221,d+32|0);e=J[651372];if((c|0)==2)Um(b+16|0,e);Ry(10);Ji(e)}f=2;a:{b:{c:{if(J[b>>2]!=4)break c;d:{e:{g=(c|0)!=2;if(!(Ec(J[b+8>>2],825593)|g|J[b+16>>2]!=4)){f=J[b+24>>2];e=J[a+20>>2];while(1){if(J[e+88>>2]==7){h=d+192|0;if(J[Ce(J[e+96>>2],f,h)>>2]!=5)break e;uc(h)}e=J[e+104>>2];if(e)continue;break}J[d+16>>2]=f;xc(1,-1,790603,d+16|0);f=2;if(J[b>>2]!=4)break c}e=J[b+8>>2];if(Ec(e,833268)|g|J[b+16>>2]!=7)break d;if(J[Bc(J[b+24>>2],833356,d+192| -0,0)>>2]==3){c=rc(12);J[695492]=0;b=aa(3187,c|0,J[d+200>>2])|0;e=J[695492];J[695492]=0;f=1;if((e|0)==1)break a;c=J[a+8>>2];gc[J[J[c>>2]+272>>2]](c,J[a+28>>2],J[b>>2],J[b+4>>2]);qc(dd(b))}uc(d+192|0);break c}if(JA(J[J[a>>2]+36>>2],d+192|0,d+188|0))J[a+100>>2]=J[a+100>>2]&J[d+188>>2];uc(d+192|0);f=0;break c}if(Ec(e,833458)|(c|0)!=2|J[b+16>>2]!=7)break c;e=J[a+20>>2];f:{while(1){if(J[e+88>>2]==7){c=d+192|0;if(J[Ce(J[e+96>>2],833458,c)>>2]!=5)break f;uc(c)}e=J[e+104>>2];if(e)continue;break}J[d>>2]=833458; -xc(1,-1,790603,d);break c}J[d+168>>2]=13;J[d+152>>2]=13;J[d+136>>2]=13;J[d+120>>2]=13;J[d+104>>2]=13;J[d+88>>2]=13;J[d+72>>2]=13;c=d+192|0;e=hf(c,J[a+4>>2],d+168|0,0);g:{if(J[e>>2]!=7)break g;if(!IZ(J[e+8>>2],833458))break g;e=d+152|0;if(J[Bc(J[d+176>>2],832170,e,0)>>2]!=3)break g;g=d+136|0;if(J[Bc(J[J[a+4>>2]+48>>2],832170,g,0)>>2]!=6)break g;h=d+120|0;if(J[Mc(J[d+144>>2],1,h,0)>>2]!=3)break g;if(rg(J[d+128>>2],J[d+160>>2]))break g;i=J[b+24>>2];b=d+104|0;if(J[Bc(i,833610,b,0)>>2]!=1)break g;i=d+ -88|0;if(J[Bc(J[d+176>>2],833698,i,0)>>2]!=6)break g;if(J[Mc(J[d+96>>2],J[d+112>>2],d+72|0,0)>>2]!=3)break g;uc(e);uc(g);uc(h);uc(b);uc(i);uc(c);J[d+56>>2]=13;J[d+40>>2]=13;h:{if(J[Bc(J[d+176>>2],827560,d+40|0,0)>>2]==6)if(J[jg(J[d+48>>2],J[d+112>>2],d+56|0)>>2]==9)break h;uc(d+56|0)}b=J[a+8>>2];if(gc[J[J[b>>2]+284>>2]](b,J[a+28>>2],J[d+80>>2],d+56|0)|0){DZ(a,d+192|0);while(1){i:{j:switch(J[d+192>>2]-10|0){case 0:if(!Ec(J[d+200>>2],833781))break i;break;case 2:break i;default:break j}b=d+192|0;uc(b); -DZ(a,b);continue}break}b=J[a+8>>2];gc[J[J[b>>2]+288>>2]](b,J[a+28>>2]);uc(d+56|0);uc(d+40|0);uc(d+168|0);uc(d+72|0);uc(d+192|0);break b}uc(d+56|0);uc(d+40|0)}uc(d+168|0);uc(d+152|0);uc(d+136|0);uc(d+120|0);uc(d+104|0);uc(d+88|0);uc(d+72|0);uc(d+192|0)}b=rc(8);J[b+4>>2]=J[a+100>>2];J[b>>2]=f;id(J[a+104>>2],b)}bc=d+208|0;return}a=Z()|0;qc(c);ba(a|0);B()}function Qlb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=g>>>0<=2?J[(g<<2)+231688>> -2]:n;if(J[a+20>>2])a=0;else{g=J[J[J[a>>2]+16>>2]+40>>2];if(g)a:{p=h?(h|0)==1?4421:0:13154;a=bc-48|0;bc=a;b:{c:{d:{h=J[g>>2];e:{if(!h)break e;h=J[h+28>>2];if(!h)break e;m=J[h+132>>2];if(!m)break e;J[a+36>>2]=1E3;J[a+28>>2]=231644;h=zc(1E3);J[a+32>>2]=h;H[h|0]=0;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=0;J[695492]=0;J[a+44>>2]=4;J[a+40>>2]=h+4;h=J[J[m+32>>2]+8>>2];i=J[695492];J[695492]=0;f:{g:{if((i|0)!=1){if((h|0)<=0)break f;q=e+1|0;if((f|0)<0)break g;h:{while(1){i:{J[695492]=0;i=J[J[J[m+32>>2]>>2]+(k<<2)>> -2];j=J[695492];J[695492]=0;if((j|0)==1)break i;J[695492]=0;J[a+8>>2]=13;j=$(3301,i|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break c;j:{k:{if((j|0)==(q|0)){J[695492]=0;j=aa(3289,i|0,a+8|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break c;if(!j|J[a+16>>2]==(f|0))break k}J[695492]=0;_(3205,a+8|0);i=J[695492];J[695492]=0;if((i|0)!=1)break j;break c}J[695492]=0;_(3205,a+8|0);j=J[695492];J[695492]=0;if((j|0)==1)break c;J[695492]=0;j=$(4,136)|0;l=J[695492];J[695492]=0;if((l|0)==1)break d;l=J[g+20>>2];o=J[g+ -16>>2];r=J[g>>2];J[695492]=0;i=Ba(3554,j|0,r|0,o|0,l|0,b|0,c|0,d|0,e|0,n|0,p|0,i|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break h;J[695492]=0;da(3555,i|0,a+28|0);j=J[695492];J[695492]=0;if((j|0)==1)break d;qc(XI(i))}k=k+1|0;if((h|0)!=(k|0))continue;break f}break}k=Z()|0;break b}k=Z()|0;qc(j);break b}k=Z()|0;break b}while(1){J[695492]=0;f=J[J[J[m+32>>2]>>2]+(k<<2)>>2];i=J[695492];J[695492]=0;l:{m:{n:{o:{p:{if((i|0)!=1){J[695492]=0;J[a+8>>2]=13;i=$(3301,f|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break o; -if((i|0)!=(q|0))break p;J[695492]=0;_(3205,a+8|0);i=J[695492];J[695492]=0;if((i|0)==1)break o;J[695492]=0;i=$(4,136)|0;j=J[695492];J[695492]=0;if((j|0)!=1){j=J[g+20>>2];l=J[g+16>>2];o=J[g>>2];J[695492]=0;f=Ba(3554,i|0,o|0,l|0,j|0,b|0,c|0,d|0,e|0,n|0,p|0,f|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break n;J[695492]=0;da(3555,f|0,a+28|0);i=J[695492];J[695492]=0;if((i|0)!=1)break m}k=Z()|0;break b}k=Z()|0;break b}J[695492]=0;_(3205,a+8|0);f=J[695492];J[695492]=0;if((f|0)!=1)break l}k=Z()|0;break b}k= -Z()|0;qc(i);break b}qc(XI(f))}k=k+1|0;if((h|0)!=(k|0))continue;break}}b=J[a+32>>2];c=J[a+44>>2];H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;k=J[a+32>>2]}bc=a+48|0;a=k;break a}k=Z()|0;break b}k=Z()|0}J[a+28>>2]=231644;a=J[a+32>>2];if(a)qc(a);ba(k|0);B()}else a=0}return a|0}function wqb(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;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;if(e){v=e-2|0;w=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1]; -I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];f=a+8|0;g=g+8|0;a:{if(r>>>0>v>>>0)break a;k=r?(r|0)==(v|0)?d:b:c;l=!r&w;if(l){if(k>>>0<2)break a;l=k-1|0;n=l&1;if((k|0)!=2){l=l&-2;k=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a+4>>1];I[g+14>>1]=L[a+6>>1];g=g+16|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(!n)break a;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];g=g+8|0;break a}l=l?0: -f;s=a+4|0;t=a+2|0;n=k+1>>>1|0;if(k>>>0>=3){x=n>>>0<=2?2:n;p=a+12|0;q=a+10|0;o=1;j=k<<1;while(1){h=L[a>>1];b:{if((h|0)==L[l>>1]){I[g>>1]=h;break b}h=K[a|0]|K[a+1|0]<<8;m=h>>>8|0;i=K[l|0]|K[l+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((i<<8|i>>>8)&65535)-((m|h<<8)&65535)|0,o)<<1)|0)/(j|0)|0)&65535;h=h<<8|h>>>8;H[g|0]=h;H[g+1|0]=h>>>8}h=g+2|0;i=L[t>>1];c:{if((i|0)==L[q>>1]){I[h>>1]=i;break c}i=K[t|0]|K[t+1|0]<<8;u=i>>>8|0;m=K[q|0]|K[q+1|0]<<8;i=((i<<8|u)&65535)+((k+(P(((m<<8|m>>>8)&65535)-((u|i<<8)&65535)|0, -o)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[h|0]=i;H[h+1|0]=i>>>8}h=g+4|0;i=L[s>>1];d:{if((i|0)==L[p>>1]){I[h>>1]=i;break d}i=K[s|0]|K[s+1|0]<<8;u=i>>>8|0;m=K[p|0]|K[p+1|0]<<8;i=((i<<8|u)&65535)+((k+(P(((m<<8|m>>>8)&65535)-((u|i<<8)&65535)|0,o)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[h|0]=i;H[h+1|0]=i>>>8}I[g+6>>1]=L[a+6>>1];g=g+8|0;o=o+1|0;if((x|0)!=(o|0))continue;break}}if(k>>>0<=n>>>0)break a;o=l+4|0;p=l+2|0;q=k<<1;while(1){j=L[a>>1];e:{if((j|0)==L[l>>1]){I[g>>1]=j;break e}j=K[a|0]|K[a+1|0]<<8;i=j>>> -8|0;h=K[l|0]|K[l+1|0]<<8;j=((j<<8|i)&65535)+((k+(P(((h<<8|h>>>8)&65535)-((i|j<<8)&65535)|0,n)<<1)|0)/(q|0)|0)&65535;j=j<<8|j>>>8;H[g|0]=j;H[g+1|0]=j>>>8}j=g+2|0;h=L[t>>1];f:{if((h|0)==L[p>>1]){I[j>>1]=h;break f}h=K[t|0]|K[t+1|0]<<8;m=h>>>8|0;i=K[p|0]|K[p+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((i<<8|i>>>8)&65535)-((m|h<<8)&65535)|0,n)<<1)|0)/(q|0)|0)&65535;h=h<<8|h>>>8;H[j|0]=h;H[j+1|0]=h>>>8}j=g+4|0;h=L[s>>1];g:{if((h|0)==L[o>>1]){I[j>>1]=h;break g}h=K[s|0]|K[s+1|0]<<8;m=h>>>8|0;i=K[o|0]|K[o+1|0]<<8; -h=((h<<8|m)&65535)+((k+(P(((i<<8|i>>>8)&65535)-((m|h<<8)&65535)|0,n)<<1)|0)/(q|0)|0)&65535;h=h<<8|h>>>8;H[j|0]=h;H[j+1|0]=h>>>8}I[g+6>>1]=L[l+6>>1];g=g+8|0;n=n+1|0;if((k|0)!=(n|0))continue;break}}r=r+1|0;if((r|0)!=(e|0))continue;break}}return 0}function m$(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=bc-48|0;bc=i;a:{if((e|0)>=41){j=89;if(!(J[b+360>>2]&524288)|(!b|e>>>0>1024))break a}if(h)J[h>>2]=0;j=1;if(!a|!(f|g))break a;g=k$(f,g,b);if(!g){j=27;break a}J[g+4>>2]=g;b:{if(!b){f=2;break b}f=J[b+ -96>>2];l=J[b+104>>2];m=J[b+276>>2];k=J[b+272>>2];J[g+68>>2]=J[b+68>>2];J[g+72>>2]=J[b+72>>2];J[g+76>>2]=J[b+76>>2];J[g+80>>2]=J[b+80>>2]}J[g+104>>2]=l;J[g+272>>2]=k;J[g+276>>2]=m;J[g+96>>2]=f;c:{if(!c){k=0;break c}k=J[g>>2];J[g>>2]=c;if(!d)break c;J[g+4>>2]=d}mw(g);d=wp(28555);if(!d){J[g+72>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;yj(g);break a}J[d+92>>2]=64;J[d+44>>2]=J[a+44>>2];J[d+48>>2]=J[a+48>>2];f=J[a+80>>2];J[d+80>>2]=f;YJ(f);f=J[a+72>>2];if(f)n=d,o=$e(f),J[n+72>>2]=o;f=zB(d,2297);d:{if(!f){if(c)J[g>> -2]=k;break d}Ug(d,f);ow(g,J[d+12>>2]);J[g+8>>2]=a;J[f+32>>2]=a;e:{if(J[g+292>>2])break e;a=J[g+36>>2];if((J[a+20>>2]-J[a+16>>2]|0)>249)break e;Hd(g)}f=J[g+36>>2];a=J[f+16>>2];f:{if((J[f+20>>2]-a|0)<4)break f;H[i+44|0]=K[a|0];H[i+45|0]=K[a+1|0];H[i+46|0]=K[a+2|0];H[i+47|0]=K[a+3|0];a=gr(i+44|0,4);if(!a)break f;dr(g,a)}a=J[J[g+36>>2]+16>>2];g:{if(K[a|0]!=60|K[a+1|0]!=63|(K[a+2|0]!=120|K[a+3|0]!=109))break g;if(K[a+4|0]!=108)break g;a=K[a+5|0]-9|0;if(a>>>0>23|!(1<>2]= -e;J[g+172>>2]=7;jB(g);a=J[J[g+36>>2]+16>>2];e=K[a|0];h:{if(!e)break h;i:{if(!((e|0)!=60|K[a+1|0]!=47)){if(J[g+172>>2]==-1?J[g+212>>2]:0)break h;J[g+84>>2]=85;J[i+32>>2]=17333;Cc(0,0,0,g,0,1,85,3,0,0,0,0,32890,i+32|0);J[g+12>>2]=0;if(J[g+288>>2])break h;a=g+212|0;break i}if(J[g+172>>2]==-1?J[g+212>>2]:0)break h;J[g+84>>2]=86;J[i+16>>2]=10198;Cc(0,0,0,g,0,1,86,3,0,0,0,0,32890,i+16|0);J[g+12>>2]=0;if(J[g+288>>2])break h;a=g+212|0}J[a>>2]=1}j:{if(J[g+52>>2]==J[d+12>>2]|(J[g+172>>2]==-1?J[g+212>>2]:0))break j; -J[g+84>>2]=85;J[i>>2]=17333;Cc(0,0,0,g,0,1,85,3,0,0,0,0,32890,i);J[g+12>>2]=0;if(J[g+288>>2])break j;J[g+212>>2]=1}k:{if(!J[g+12>>2]){a=J[g+84>>2];j=a>>>0<=1?1:a;break k}j=0;if(!h)break k;e=J[J[d+12>>2]+12>>2];J[h>>2]=e;if(e)while(1){J[e+20>>2]=0;e=J[e+24>>2];if(e)continue;break}J[J[d+12>>2]+12>>2]=0;j=0}l:{if(!b)break l;J[b+440>>2]=J[b+440>>2]+J[g+440>>2];a=J[g+36>>2];if(!a)break l;J[b+444>>2]=(J[a+16>>2]+(J[b+444>>2]+J[a+36>>2]|0)|0)-J[a+12>>2]}if(J[g+388>>2])UJ(g+384|0,b+384|0);if(c)J[g>>2]=k; -if(b){J[b+72>>2]=J[g+72>>2];J[b+76>>2]=J[g+76>>2];J[b+80>>2]=J[g+80>>2]}}J[g+72>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;yj(g);J[d+44>>2]=0;J[d+48>>2]=0;cr(d)}bc=i+48|0;return j}function M6(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;r=bc-16|0;bc=r;e=Ar(a,d);a:{if(e)break a;ux(a,b,c,d);s=J[a>>2];c=J[a+2748>>2];b=J[J[c>>2]+8>>2];f=P(d,1348)+a|0;k=f;J[f+56>>2]=0;o=f+44|0;e=J[o>>2];f=J[f+52>>2];t=J[(d?12:4)+a>>2];h=K[J[(b<<2)+247040>>2]+12|0];b:{if((d|0)==1)break b; -h=0;if(d)break b;v=td(64,J[a+12>>2]);h=0}u=td(32,t);b=Pc(J[(c+P(d,9804)|0)+248>>2],t);w=td((b|0)>=16?16:b,t);if((e|0)>0){x=P(e,44)+f|0;i=P(v,3);m=(P(d,1348)+a|0)- -64|0;n=h&255;c=f;while(1){b=I[c+10>>1];c:{if((b|0)<(v|0)|(u|0)>1])break c;l=K[c+1|0];if((l|0)==4|((i|0)>b<<1?J[c+24>>2]:0))break c;d:{g=J[k+56>>2];e:{if((g|0)<=0){j=I[c+2>>1];break e}j=I[c+2>>1];h=J[m>>2];e=0;while(1){p=h+P(e,44)|0;b=j-I[p>>1]|0;q=b>>31;if((l|0)==K[p+13|0]&((b^q)-q|0)<(w|0))break d;e=e+1|0;if((g|0)!=(e|0))continue; -break}}e=K6(o,j,l<<24>>24,n,s,r+12|0);if(e)break a;e=J[r+12>>2];J[e>>2]=0;J[e+4>>2]=0;J[e+40>>2]=c;J[e+36>>2]=c;J[e+32>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;H[e+13|0]=K[c+1|0];b=I[c+2>>1];I[e>>1]=b;b=Pc(b,t);J[e+8>>2]=b;J[e+4>>2]=b;J[c+16>>2]=c;break c}J[c+16>>2]=J[p+36>>2];J[J[p+40>>2]+16>>2]=c;J[p+40>>2]=c}c=c+44|0;if(x>>>0>c>>>0)continue;break}while(1){f:{if(K[f+1|0]!=4)break f;g=J[k+56>>2];if((g|0)<=0)break f;h=I[f+2>>1];e=J[m>>2];c=0;while(1){i=e+ -P(c,44)|0;b=h-I[i>>1]|0;n=b>>31;if(((b^n)-n|0)>=(w|0)){c=c+1|0;if((g|0)!=(c|0))continue;break f}break}J[f+16>>2]=J[i+36>>2];J[J[i+40>>2]+16>>2]=f;J[i+40>>2]=f}f=f+44|0;if(x>>>0>f>>>0)continue;break}}e=0;g=J[(P(d,1348)+a|0)- -64>>2];if(!g)break a;a=J[k+56>>2];if((a|0)<=0)break a;q=P(a,44)+g|0;e=g;while(1){a=J[e+36>>2];c=a;if(c)while(1){J[c+12>>2]=e;c=J[c+16>>2];if((a|0)!=(c|0))continue;break}e=e+44|0;if(q>>>0>e>>>0)continue;break}while(1){d=g+28|0;h=g+24|0;u=J[g+36>>2];c=u;j=0;m=0;while(1){i=H[c|0]& -1;n=!i;e=J[c+24>>2];g:{h:{i:{if(e){a=J[e+12>>2];b=(a|0)!=0&(a|0)!=(g|0);f=J[c+20>>2];if(f)break i;l=1;k=d;if(b)break h;break g}b=0;f=J[c+20>>2];if(!f)break g}a=b&1;if(!(a|J[f+12>>2]))break g;l=1;k=d;if(a)break h;l=0;e=f;k=h}b=J[k>>2];j:{if(b){f=I[c+2>>1]-I[e+2>>1]|0;s=f>>31;a=I[g>>1]-I[b>>1]|0;o=a>>31;if((f^s)-s>>>0>=(a^o)-o>>>0)break j}b=J[e+12>>2]}if(l){J[d>>2]=b;H[b+12|0]=K[b+12|0]|2;break g}J[h>>2]=b}j=j+i|0;m=m+n|0;c=J[c+16>>2];if((u|0)!=(c|0))continue;break}H[g+12|0]=(j|0)>0&(j|0)>=(m|0);if(!(!J[g+ -28>>2]|!J[h>>2]))J[d>>2]=0;g=g+44|0;if(q>>>0>g>>>0)continue;break}e=0}bc=r+16|0;return e}function CW(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=P(e,3);g=J[b>>2]>>>m|0;if(g&2097168)break a;k=(K[J[a+108>>2]+(g&495)|0]<<2)+a|0;J[a+104>>2]=k+28;j=J[k+28>>2];h=J[j>>2];g=J[a+4>>2]-h|0;J[a+4>>2]=g;i=J[a>>2];b:{if(i>>>16>>>0>>0){l=J[j+4>>2];J[a+4>>2]=h;g=g>>>0>>0;J[k+28>>2]=J[j+(g?8:12)>>2];j=g?l:!l;g=J[a+8>>2];while(1){c:{if(g)break c;g=J[a+16>>2];l=g+1|0;k=K[g+1|0];if(K[g|0]==255){if(k>>> +i<<8|(i&65280)>>>8;H[g+37|0]=e;H[g+38|0]=e>>>8;n=12;o:{if(i&1024){d=f;break o}if(j>>>0<2)break i;e=K[c|0];if((e&252)!=220){d=f;j=1;break o}e=K[c+1|0]|e<<8;I[h>>1]=i;d=0;if(f){J[f>>2]=k;d=f+4|0}h=h+2|0;j=j-2|0;H[g+65|0]=1;I[g+116>>1]=e;H[g+36|0]=0;n=15;c=c+2|0}e=c;J[b>>2]=n;break h}d=f;e=c}p:{if(!j|J[b>>2]>0)break p;if(!m){J[b>>2]=15;break p}b=K[e|0];c=H[g+36|0];H[g+36|0]=c+1;H[(c+g|0)+37|0]=b;e=e+1|0}J[a+24>>2]=d;J[a+16>>2]=h;J[a+8>>2]=e}}function NW(a){a=a|0;var b=0,c=0,d=0,e=0;e=fc-16|0;fc=e;J[e+ +12>>2]=0;vd(e+12|0,a);J[699344]=0;aa(5145,a+168|0,0)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[699344]=0;$(5381,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;b=ea(2423616)|0;if((gc|0)!=(sa(2423616)|0))break b;b=oa(b|0)|0;J[699344]=0;kh(a+92|0,0,0,16,0);c=J[699344];J[699344]=0;i:{j:{if((c|0)==1)break j;J[699344]=0;c=pa(5383)|0;d=J[699344];J[699344]=0;if((d|0)==1)break j;d=J[J[c>>2]+44>>2];J[699344]=0;ia(d|0,c|0,a|0,16,0);c=J[699344];J[699344]=0;if((c|0)!=1)break i}oa(ea(0)| +0)|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)==1)break c}J[699344]=0;$(5384,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;c=En(b,J[685886]);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(!(!K[a+88|0]|c)){J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;c=aa(5149,e+4|0,2390914)|0;d=J[699344];J[699344]=0;k:{if((d|0)!=1){d=J[J[b>>2]+20>>2];J[699344]=0;ga(d|0,b|0,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;wc(c);break f}b=ea(0)|0; +break g}b=ea(0)|0;wc(c);break g}J[699344]=0;c=En(b,J[685887]);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(!c){J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;c=aa(5149,e+4|0,2391339)|0;d=J[699344];J[699344]=0;l:{if((d|0)!=1){d=J[J[b>>2]+24>>2];J[699344]=0;ga(d|0,b|0,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;wc(c);break f}b=ea(0)|0;break g}b=ea(0)|0;wc(c);break g}J[699344]=0;d=pa(5383)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;b=J[b+ +4>>2];b=b?b:2389698;c=J[699344];J[699344]=0;m:{n:{if((c|0)==1)break n;J[699344]=0;c=aa(5149,e+4|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;b=J[J[d>>2]+20>>2];J[699344]=0;ga(b|0,d|0,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;wc(c);break f}b=ea(0)|0;break g}b=ea(0)|0;wc(c);break g}b=Z()|0;break b}b=ea(0)|0}oa(b|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break c}J[699344]=0;kh(a+96|0,0,0,2,0);a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;ka(5053);a= +J[699344];J[699344]=0;if((a|0)==1)break d}a=J[e+12>>2];J[e+12>>2]=0;o:{if(!a)break o;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break o;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=e+16|0;return}b=Z()|0;break b}b=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}zc(e+12|0);ba(b|0);B()}ea(0)|0;Bc();B()}function Cy(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+528>>2];d=Ck(a,b,0,0,0,0,0,0,0,1);a:{if(d)break a;J[b+ +36>>2]=0;J[b+40>>2]=0;H[b+31|0]=1;H[b+32|0]=1;J[b+48>>2]=0;J[b+52>>2]=0;H[b+44|0]=0;J[b+56>>2]=0;J[b+60>>2]=0;c=b- -64|0;J[c>>2]=0;J[c+4>>2]=0;I[b+70>>1]=0;I[b+72>>1]=0;I[b+74>>1]=0;I[b+76>>1]=0;H[a+433|0]=0;b=J[a+548>>2];b:{if(b){H[a+306|0]=K[b|0];H[a+307|0]=K[b+1|0];H[a+308|0]=K[b+2|0];H[a+309|0]=K[b+3|0];H[a+310|0]=K[b+4|0];H[a+311|0]=K[b+5|0];H[a+312|0]=K[b+6|0];I[a+1052>>1]=L[b+8>>1];I[a+1054>>1]=L[b+10>>1];I[a+1056>>1]=L[b+12>>1];H[a+1058|0]=K[b+14|0];I[a+1060>>1]=L[b+16>>1];H[a+1062|0]=K[b+ +18|0];H[a+1080|0]=K[b+19|0];J[a+1088>>2]=J[b+24>>2];H[a+1092|0]=K[b+28|0];J[a+1096>>2]=J[b+32>>2];J[a+1100>>2]=J[b+36>>2];J[a+1104>>2]=J[b+40>>2];J[a+1108>>2]=J[b+44>>2];J[a+1144>>2]=J[a+1116>>2];J[a+1160>>2]=J[b+48>>2];xc(a+1164|0,b+52|0,768);J[a+1932>>2]=J[b+820>>2];xc(a+1936|0,b+824|0,256);J[a+2192>>2]=J[b+1080>>2];J[a+2196>>2]=J[b+1084>>2];J[a+2200>>2]=J[b+1088>>2];J[a+2204>>2]=J[b+1092>>2];J[a+2208>>2]=J[b+1096>>2];J[a+2212>>2]=J[b+1100>>2];J[a+2216>>2]=J[b+1104>>2];J[a+2220>>2]=J[b+1108>>2]; +J[a+2224>>2]=J[b+1112>>2];H[a+2228|0]=K[b+1116|0];c=J[b+1120>>2];J[a+2232>>2]=c;if(c){c=kc[J[a+152>>2]](c)|0;J[a+2236>>2]=c;if(!c){Jc(a,1,0,0);return 1}xc(c,J[b+1124>>2],J[a+2232>>2])}I[a+2240>>1]=L[b+1128>>1];I[a+2242>>1]=L[b+1130>>1];c=L[b+1132>>1];break b}I[a+306>>1]=0;I[a+308>>1]=0;H[a+309|0]=0;H[a+310|0]=0;H[a+311|0]=0;H[a+312|0]=0;if(!K[a+503|0]){H[a+1062|0]=0;I[a+1060>>1]=0;J[a+1052>>2]=0;b=a+1055|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0}J[a+1096>>2]=0;J[a+1100>>2]=0;H[a+1092|0]=0;J[a+1088>> +2]=2147483647;H[a+1080|0]=1;J[a+2192>>2]=0;J[a+2196>>2]=0;J[a+1932>>2]=0;J[a+1160>>2]=0;b=a+1104|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1144>>2]=J[a+1116>>2];b=a+2200|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2208|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2216|0;J[b>>2]=0;J[b+4>>2]=0;b=a+2221|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;b=J[a+2232>>2];c:{if(!b)break c;c=J[a+2236>>2];if(!c)break c;kc[J[a+156>>2]](c,b);J[a+2236>>2]=0}J[a+2240>>2]=0;J[a+2232>>2]=0;c=0}I[a+2244>>1]=c;d:{if(K[a+503| +0])break d;b=J[a+688>>2];if(!b)break d;f=a+692|0;while(1){c=b;b=J[b+8>>2];e:{if(K[c+30|0])break e;d=J[c+12>>2];f:{if(d){J[d+8>>2]=b;break f}J[a+688>>2]=b}J[(b?b+12|0:f)>>2]=d;d=J[c+88>>2];if(K[d+32|0]){e=J[d+28>>2];if(e>>>0<=1){Jc(a,999,0,0);return 999}J[d+28>>2]=e-1;kc[J[a+156>>2]](c,92);break e}d=Kaa(a,d);kc[J[a+156>>2]](c,92);if(d)break a}if(b)continue;break}}d=0}return d}function tY(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=P(e,3);h=J[b>>2]>>>n|0;if(h&2097168)break a;h=h&495; +if(!h)break a;l=(K[h+J[a+108>>2]|0]<<2)+a|0;J[a+104>>2]=l+28;k=J[l+28>>2];i=J[k>>2];h=J[a+4>>2]-i|0;J[a+4>>2]=h;j=J[a>>2];b:{if(j>>>16>>>0>>0){m=J[k+4>>2];J[a+4>>2]=i;h=h>>>0>>0;J[l+28>>2]=J[k+(h?8:12)>>2];k=h?m:!m;h=J[a+8>>2];while(1){c:{if(h)break c;h=J[a+16>>2];m=h+1|0;l=K[h+1|0];if(K[h|0]==255){if(l>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;j=j+65280|0;h=8;break c}J[a+16>>2]=m;j=(l<<9)+j|0;h=7;break c}J[a+16>>2]=m;h=8;j=(l<<8)+j|0}h=h-1|0;J[a+8>>2]=h;j=j<<1;J[a>>2]=j;i=i<<1;J[a+4>>2]=i;if(i>>>0< +32768)continue;break}h=i;break b}j=j-(i<<16)|0;J[a>>2]=j;if(!(h&32768)){m=J[k+4>>2];i=h>>>0>>0;J[l+28>>2]=J[k+(i?12:8)>>2];k=i?!m:m;i=J[a+8>>2];while(1){d:{if(i)break d;i=J[a+16>>2];m=i+1|0;l=K[i+1|0];if(K[i|0]==255){if(l>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;j=j+65280|0;i=8;break d}J[a+16>>2]=m;j=(l<<9)+j|0;i=7;break d}J[a+16>>2]=m;i=8;j=(l<<8)+j|0}i=i-1|0;J[a+8>>2]=i;j=j<<1;J[a>>2]=j;h=h<<1;J[a+4>>2]=h;if(h>>>0<32768)continue;break}break b}k=J[k+4>>2]}e:{if(!k)break e;o=b-4|0;i=J[b>>2];k=J[b+4>> +2]>>>n+17&4|(J[o>>2]>>>n+19&1|(i>>>n+16&64|i>>>n&170|i>>>(e?n+12|0:14)&16));m=(K[k+2375344|0]<<2)+a|0;J[a+104>>2]=m+28;l=J[m+28>>2];i=J[l>>2];h=h-i|0;J[a+4>>2]=h;p=K[k+2375600|0];f:{if(j>>>16>>>0>>0){k=J[l+4>>2];J[a+4>>2]=i;h=h>>>0>>0;J[m+28>>2]=J[l+(h?8:12)>>2];l=h?k:!k;h=J[a+8>>2];while(1){g:{if(h)break g;h=J[a+16>>2];m=h+1|0;k=K[h+1|0];if(K[h|0]==255){if(k>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;j=j+65280|0;h=8;break g}J[a+16>>2]=m;j=(k<<9)+j|0;h=7;break g}J[a+16>>2]=m;h=8;j=(k<<8)+j|0}h=h-1|0; +J[a+8>>2]=h;j=j<<1;J[a>>2]=j;i=i<<1;J[a+4>>2]=i;if(i>>>0<32768)continue;break}break f}k=j-(i<<16)|0;J[a>>2]=k;if(!(h&32768)){j=J[l+4>>2];i=h>>>0>>0;J[m+28>>2]=J[l+(i?12:8)>>2];l=i?!j:j;j=J[a+8>>2];while(1){h:{if(j)break h;j=J[a+16>>2];m=j+1|0;i=K[j+1|0];if(K[j|0]==255){if(i>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;k=k+65280|0;j=8;break h}J[a+16>>2]=m;k=(i<<9)+k|0;j=7;break h}J[a+16>>2]=m;j=8;k=(i<<8)+k|0}j=j-1|0;J[a+8>>2]=j;k=k<<1;J[a>>2]=k;h=h<<1;J[a+4>>2]=h;if(h>>>0<32768)continue;break}break f}l=J[l+ +4>>2]}a=c;c=l^p;J[a>>2]=c?0-d|0:d;J[o>>2]=J[o>>2]|32<>2]=J[b>>2]|(c<<19|16)<>2]=J[b+4>>2]|8<>2]=J[a+4>>2]|32768;J[a>>2]=J[a>>2]|c<<31|65536;a=a-4|0;J[a>>2]=J[a>>2]|131072}if((e|0)!=3)break e;a=(f<<2)+b|0;J[a+4>>2]=J[a+4>>2]|1;J[a>>2]=J[a>>2]|c<<18|2;a=a-4|0;J[a>>2]=J[a>>2]|4}J[b>>2]=J[b>>2]|2097152<>2];b=161;a:{if(M[a+20>>2]>>0)break a;e= +J[a+32>>2];m=e+48|0;H[e+64|0]=1;i=-2147483648;g=2147483647;while(1){b=k<<2;j=b+d|0;n=b+(d+32|0)|0;c=J[l>>2];h=K[c|0];b:{if((h|0)==30){b=iE(a,c,0,j);break b}f=c+1|0;c:{d:{e:switch(h-28|0){case 0:b=0;if(M[a+8>>2]<=c+2>>>0)break c;b=K[c+2|0]|K[f|0]<<8;break c;case 1:b=0;if(M[a+8>>2]<=c+4>>>0)break c;b=K[c+1|0]|K[c+2|0]<<8|(K[c+3|0]<<16|K[c+4|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break d;default:break e}if(h>>>0<=246){b=h-139|0;break c}c=J[a+8>>2];if(h>>>0<=250){b=0;if(c>>>0<=f>>>0)break c; +b=(K[f|0]|h<<8)-63124|0;break c}b=0;if(c>>>0<=f>>>0)break c;b=64148-(K[f|0]|h<<8)|0}if((b|0)<32768)break c;c=5;f:{if(b>>>0<1E5)break f;c=6;if(b>>>0<1E6)break f;c=7;if(b>>>0<1E7)break f;c=8;if(b>>>0<1E8)break f;c=b>>>0<1E9?9:10}h=c-5|0;f=J[(h<<2)+258240>>2];if(((b|0)/(f|0)|0)>=32768){c=c-4|0;J[j>>2]=c;b=Cd(b,J[(c<<2)+258240>>2]);break b}J[j>>2]=h;b=Cd(b,f);break b}J[j>>2]=0;b=b<<16}J[n>>2]=b;if(b){b=J[j>>2];g=(b|0)<(g|0)?b:g;i=(b|0)>(i|0)?b:i}l=l+4|0;k=k+1|0;if((k|0)!=6)continue;break}if(!(i-1>>>0< +4294967286|i-g>>>0>9)){k=0;h=0;a=J[d+32>>2];if(a){c=J[(i-J[d>>2]<<2)+258240>>2];b=c>>1;h=(((a|0)<0?a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0:a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0)|0)/(c|0)|0}a=J[d+36>>2];if(a){c=J[(i-J[d+4>>2]<<2)+258240>>2];b=c>>1;k=(((a|0)>=0?a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0:a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0)|0)/(c|0)|0}b=0;j=0;a=J[d+40>>2];if(a){g=J[(i-J[d+8>>2]<<2)+258240>>2];c=g>>1;j=(((a|0)>=0?a>>>0>=(c^2147483647)>>>0?2147483647:a+c|0:a>>>0<=(c| +-2147483648)>>>0?-2147483648:a-c|0)|0)/(g|0)|0}a=J[d+44>>2];if(a){c=J[(i-J[d+12>>2]<<2)+258240>>2];b=c>>1;b=(((a|0)>=0?a>>>0>=(b^2147483647)>>>0?2147483647:a+b|0:a>>>0<=(b|-2147483648)>>>0?-2147483648:a-b|0)|0)/(c|0)|0}g=0;f=0;a=J[d+48>>2];if(a){f=J[(i-J[d+16>>2]<<2)+258240>>2];c=f>>1;f=(((a|0)>=0?a>>>0>=(c^2147483647)>>>0?2147483647:a+c|0:a>>>0<=(c|-2147483648)>>>0?-2147483648:a-c|0)|0)/(f|0)|0}a=J[d+52>>2];if(a){g=J[(i-J[d+20>>2]<<2)+258240>>2];c=g>>1;g=(((a|0)>=0?a>>>0>=(c^2147483647)>>>0?2147483647: +a+c|0:a>>>0<=(c|-2147483648)>>>0?-2147483648:a-c|0)|0)/(g|0)|0}J[e+48>>2]=h;J[e+72>>2]=f;J[e+56>>2]=k;J[e+76>>2]=g;J[e+60>>2]=b;J[e+52>>2]=j;J[e+68>>2]=J[258240-(i<<2)>>2];b=0;if(eE(m))break a}J[e+48>>2]=65536;J[e+52>>2]=0;J[e+68>>2]=1;J[e+72>>2]=0;J[e+76>>2]=0;J[e+56>>2]=0;J[e+60>>2]=65536;b=0}fc=d- -64|0;return b|0}function Iqb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(J[a+20>>2])a=0;else a:{m=J[a+16>>2];g=g>>>0<=2?J[(g<<2)+231704>> +2]:0;a=0;m=J[J[m+16>>2]+40>>2];if(!m)break a;p=h?(h|0)==1?4421:0:13170;a=fc-48|0;fc=a;b:{c:{d:{e:{h=J[m>>2];f:{if(!h)break f;h=J[h+28>>2];if(!h)break f;n=J[h+132>>2];if(!n)break f;J[a+36>>2]=1E3;J[a+28>>2]=231660;h=Dc(1E3);J[a+32>>2]=h;H[h|0]=0;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=0;J[699344]=0;J[a+44>>2]=4;J[a+40>>2]=h+4;h=J[J[n+32>>2]+8>>2];i=J[699344];J[699344]=0;g:{h:{if((i|0)!=1){if((h|0)<=0)break g;q=e+1|0;i=0;if((f|0)<0)break h;i:{while(1){j:{J[699344]=0;k=J[J[J[n+32>>2]>>2]+(i<<2)>>2];j=J[699344]; +J[699344]=0;if((j|0)==1)break j;J[699344]=0;J[a+8>>2]=13;j=_(3498,k|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break d;k:{l:{if((j|0)==(q|0)){J[699344]=0;j=aa(3488,k|0,a+8|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break d;if(!j|J[a+16>>2]==(f|0))break l}J[699344]=0;$(3370,a+8|0);k=J[699344];J[699344]=0;if((k|0)!=1)break k;break d}J[699344]=0;$(3370,a+8|0);j=J[699344];J[699344]=0;if((j|0)==1)break d;J[699344]=0;j=_(4,136)|0;l=J[699344];J[699344]=0;if((l|0)==1)break e;l=J[m+20>>2];o=J[m+16>>2];r=J[m>> +2];J[699344]=0;k=Fa(3726,j|0,r|0,o|0,l|0,b|0,c|0,d|0,e|0,g|0,p|0,k|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break i;J[699344]=0;da(3727,k|0,a+28|0);j=J[699344];J[699344]=0;if((j|0)==1)break e;uc(kK(k))}i=i+1|0;if((h|0)!=(i|0))continue;break g}break}i=Z()|0;break c}i=Z()|0;uc(j);break c}i=Z()|0;break c}while(1){J[699344]=0;f=J[J[J[n+32>>2]>>2]+(i<<2)>>2];k=J[699344];J[699344]=0;m:{n:{o:{p:{q:{if((k|0)!=1){J[699344]=0;J[a+8>>2]=13;k=_(3498,f|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break p;if((k|0)!= +(q|0))break q;J[699344]=0;$(3370,a+8|0);k=J[699344];J[699344]=0;if((k|0)==1)break p;J[699344]=0;k=_(4,136)|0;j=J[699344];J[699344]=0;if((j|0)!=1){j=J[m+20>>2];l=J[m+16>>2];o=J[m>>2];J[699344]=0;f=Fa(3726,k|0,o|0,l|0,j|0,b|0,c|0,d|0,e|0,g|0,p|0,f|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break o;J[699344]=0;da(3727,f|0,a+28|0);k=J[699344];J[699344]=0;if((k|0)!=1)break n}i=Z()|0;break c}i=Z()|0;break c}J[699344]=0;$(3370,a+8|0);f=J[699344];J[699344]=0;if((f|0)!=1)break m}i=Z()|0;break c}i=Z()|0;uc(k); +break c}uc(kK(f))}i=i+1|0;if((h|0)!=(i|0))continue;break}}b=J[a+32>>2];c=J[a+44>>2];H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;i=J[a+32>>2]}fc=a+48|0;a=i;break b}i=Z()|0;break c}i=Z()|0}J[a+28>>2]=231660;a=J[a+32>>2];if(a)uc(a);ba(i|0);B()}}return a|0}function i9(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;o=fc-16|0;fc=o;f=!a;a:{if(f|(!b|((f?-1:J[a+8>>2])|0)!=1))break a;Df(a,o+12|0,o+8|0,0);v=a?J[a+40>>2]:0;w=a?J[a+12>>2]:-1;if((c|d)<0)break a; +p=J[o+12>>2];if((p|0)<=(c|0))break a;q=J[o+8>>2];if(!(J[((P(d,w)<<2)+v|0)+(c>>>3&536870908)>>2]>>>(c^-1)&1)|(q|0)<=(d|0))break a;b:{if((q-1|0)<=(d|0))break b;e=J[b+12>>2];if(!e)break b;c:{if(((e?J[e+4>>2]:1)|0)>0){a=fm(e);break c}a=kd(1,16);if(!a)break b}J[a+12>>2]=1;J[a+8>>2]=d;J[a+4>>2]=c;J[a>>2]=c;em(b,a)}e=J[b+12>>2];d:{if(!e)break d;e:{if(((e?J[e+4>>2]:1)|0)>0){a=fm(e);break e}a=kd(1,16);if(!a)break d}J[a+12>>2]=-1;J[a+8>>2]=d+1;J[a+4>>2]=c;J[a>>2]=c;em(b,a)}f:{if(((b?J[b+4>>2]:1)|0)<=0){h=c; +l=d;break f}x=p-1|0;h=c;l=d;g=d;while(1){e=J[b+12>>2];g:{if(!e)break g;f=fm(b);if(!f)break g;u=J[f+4>>2];r=J[f>>2];n=J[f+12>>2];a=J[f+8>>2];em(e,f);g=a+n|0}a=r-1|0;s=(P(g,w)<<2)+v|0;h:{i:{if((r|0)<=0)break i;e=a;k=r;i=(a>>>3&536870908)+s|0;m=J[i>>2];j=a&31;j:{if(!(m>>>(j^31)&1))break j;while(1){f=e;e=-1;J[i>>2]=(-2147483648>>>j^-1)&m;k=0;if((f|0)<=0)break j;k=f;e=f-1|0;i=(e>>>3&536870908)+s|0;m=J[i>>2];j=e&31;if(m>>>(j^31)&1)continue;break}}if((k|0)>=(r|0)){a=e;break i}d=(d|0)>(g|0)?d:g;l=(g|0)>(l| +0)?l:g;c=(a|0)<(c|0)?c:a;h=(h|0)<(k|0)?h:k;e=g-n|0;k:{if((e|0)<0|(e|0)>=(q|0))break k;f=J[b+12>>2];if(!f)break k;l:{if(((f?J[f+4>>2]:1)|0)>0){e=fm(f);break l}e=kd(1,16);if(!e)break k}J[e+12>>2]=0-n;J[e+8>>2]=g;J[e+4>>2]=a;J[e>>2]=k;em(b,e)}a=r;e=0;break h}e=1}while(1){m:{n:{o:{if(!e){p:{if((a|0)>=(p|0))break p;while(1){j=(a>>5<<2)+s|0;f=J[j>>2];e=a&31;if(!(f>>>(e^31)&1))break p;J[j>>2]=f&(-2147483648>>>e^-1);a=a+1|0;if((p|0)!=(a|0))continue;break}a=p}t=a-1|0;c=(c|0)>(t|0)?c:t;d=(d|0)>(g|0)?d:g;l= +(g|0)>(l|0)?l:g;h=(h|0)<(k|0)?h:k;e=g+n|0;q:{if((e|0)<0|(e|0)>=(q|0))break q;f=J[b+12>>2];if(!f)break q;r:{if(((f?J[f+4>>2]:1)|0)>0){e=fm(f);break r}e=kd(1,16);if(!e)break q}J[e+12>>2]=n;J[e+8>>2]=g;J[e+4>>2]=t;J[e>>2]=k;em(b,e)}if((a|0)<=(u|0))break o;j=u+1|0;h=(h|0)<(j|0)?h:j;e=g-n|0;if((e|0)<0|(e|0)>=(q|0))break o;m=J[b+12>>2];if(!m)break o;e=0-n|0;s:{if(((m?J[m+4>>2]:1)|0)>0){i=fm(m);break s}i=kd(1,16);if(!i)break o}J[i+12>>2]=e;J[i+8>>2]=g;J[i+4>>2]=t;J[i>>2]=j;em(b,i);break o}if((a|0)>(u|0)| +(a|0)>=(x|0))break m;a=a+1|0;if(J[(a>>5<<2)+s>>2]>>>(a^-1)&1)break n}e=1;continue}k=a;e=0;continue}break}if(((b?J[b+4>>2]:1)|0)>0)continue;break}}e=XN(h,l,(c-h|0)+1|0,(d-l|0)+1|0)}fc=o+16|0;return e}function LG(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=fc-48|0;fc=i;A(+a);e=v(1)|0;d=v(0)|0;a:{b:{h=e&2147483647;c:{if(h>>>0<=1074752122){if((e&1048575)==598523)break c;if(h>>>0<=1073928572){if((e|0)>0|(e|0)>=0){a=a+-1.5707963267341256;c=a+-6.077100506506192E-11;O[b>>3]=c;O[b+8>>3]=a-c+-6.077100506506192E-11; +d=1;break a}a=a+1.5707963267341256;c=a+6.077100506506192E-11;O[b>>3]=c;O[b+8>>3]=a-c+6.077100506506192E-11;d=-1;break a}if((e|0)>0|(e|0)>=0){a=a+-3.1415926534682512;c=a+-1.2154201013012384E-10;O[b>>3]=c;O[b+8>>3]=a-c+-1.2154201013012384E-10;d=2;break a}a=a+3.1415926534682512;c=a+1.2154201013012384E-10;O[b>>3]=c;O[b+8>>3]=a-c+1.2154201013012384E-10;d=-2;break a}if(h>>>0<=1075594811){if(h>>>0<=1075183036){if((h|0)==1074977148)break c;if((e|0)>0|(e|0)>=0){a=a+-4.712388980202377;c=a+-1.8231301519518578E-10; +O[b>>3]=c;O[b+8>>3]=a-c+-1.8231301519518578E-10;d=3;break a}a=a+4.712388980202377;c=a+1.8231301519518578E-10;O[b>>3]=c;O[b+8>>3]=a-c+1.8231301519518578E-10;d=-3;break a}if((h|0)==1075388923)break c;if((e|0)>0|(e|0)>=0){a=a+-6.2831853069365025;c=a+-2.430840202602477E-10;O[b>>3]=c;O[b+8>>3]=a-c+-2.430840202602477E-10;d=4;break a}a=a+6.2831853069365025;c=a+2.430840202602477E-10;O[b>>3]=c;O[b+8>>3]=a-c+2.430840202602477E-10;d=-4;break a}if(h>>>0>1094263290)break b}f=a*.6366197723675814+6755399441055744+ +-6755399441055744;c=a+f*-1.5707963267341256;g=f*6.077100506506192E-11;l=c-g;e=l<-.7853981633974483;if(R(f)<2147483648)d=~~f;else d=-2147483648;d:{if(e){d=d-1|0;f=f+-1;g=f*6.077100506506192E-11;c=a+f*-1.5707963267341256;break d}if(!(l>.7853981633974483))break d;d=d+1|0;f=f+1;g=f*6.077100506506192E-11;c=a+f*-1.5707963267341256}a=c-g;O[b>>3]=a;A(+a);e=v(1)|0;v(0)|0;j=h>>>20|0;e:{if((j-(e>>>20&2047)|0)<17)break e;g=c;a=f*6.077100506303966E-11;c=c-a;g=f*2.0222662487959506E-21-(g-c-a);a=c-g;O[b>>3]=a;A(+a); +e=v(1)|0;v(0)|0;if((j-(e>>>20&2047)|0)<50)break e;g=c;a=f*2.0222662487111665E-21;c=c-a;g=f*8.4784276603689E-32-(g-c-a);a=c-g;O[b>>3]=a}O[b+8>>3]=c-a-g;break a}if(h>>>0>=2146435072){a=a-a;O[b>>3]=a;O[b+8>>3]=a;d=0;break a}x(0,d|0);x(1,e&1048575|1096810496);a=+z();d=0;j=1;while(1){k=(i+16|0)+(d<<3)|0;if(R(a)<2147483648)d=~~a;else d=-2147483648;c=+(d|0);O[k>>3]=c;a=(a-c)*16777216;d=1;k=j;j=0;if(k)continue;break}O[i+32>>3]=a;d=2;while(1){j=d;d=d-1|0;k=i+16|0;if(O[k+(j<<3)>>3]==0)continue;break}d=tT(k, +i,(h>>>20|0)-1046|0,j+1|0,1);a=O[i>>3];if((e|0)<0){O[b>>3]=-a;O[b+8>>3]=-O[i+8>>3];d=0-d|0;break a}O[b>>3]=a;O[b+8>>3]=O[i+8>>3]}fc=i+48|0;return d}function eY(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;i=fc-16|0;fc=i;a:{b:{c:{d:{e:{d=J[a+708>>2];switch(d|0){case 0:break c;case 1:break e;default:break d}}Vd(a,c);break b}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break c;fd(a,66073);Vd(a,c);break b}d=J[a+200>>2];if(!(d&1))break a;if(d&4){fd(a,66131);Vd(a,c);break b}Bd(a,J[a+740>>2]);d=lh(a, +c+1|0);J[a+740>>2]=d;Dg(a,d,c);Ae(a,d,c);e=Vd(a,0);d=J[a+740>>2];if(e){Bd(a,d);J[a+740>>2]=0;break b}H[c+d|0]=0;h=J[a+740>>2];d=h;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}if(!((c+h|0)-2>>>0>=d>>>0&c>>>0>=2)){Bd(a,h);J[a+740>>2]=0;fd(a,66155);break b}g=K[e+1|0];H[i+4|0]=g;d=e+2|0;e=(h-d|0)+c|0;j=(g|0)==8?6:10;c=(e>>>0)/(j>>>0)|0;if((e|0)!=(P(c,j)|0)){Bd(a,h);J[a+740>>2]=0;fd(a,66176);break b}if(c>>>0>=429496730){fd(a,66202);break b}J[i+12>>2]=c;h=sg(a,P(c,10));J[i+8>>2]=h;f:{g:{if(h){if(e>>>0< +j>>>0)break f;if((g|0)!=8)break g;while(1){e=h+P(f,10)|0;I[e>>1]=K[d|0];I[e+2>>1]=K[d+1|0];I[e+4>>1]=K[d+2|0];I[e+6>>1]=K[d+3|0];k=e;e=K[d+4|0]|K[d+5|0]<<8;I[k+8>>1]=e<<8|e>>>8;d=d+6|0;f=f+1|0;if((c|0)!=(f|0))continue;break}break f}fd(a,66222);break b}while(1){e=h+P(f,10)|0;g=K[d|0]|K[d+1|0]<<8;I[e>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[e+2>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;I[e+4>>1]=g<<8|g>>>8;g=K[d+6|0]|K[d+7|0]<<8;I[e+6>>1]=g<<8|g>>>8;k=e;e=K[d+8|0]|K[d+9|0]<<8;I[k+8>>1]=e<<8|e>>>8;d=d+10| +0;f=f+1|0;if((c|0)!=(f|0))continue;break}}J[i>>2]=J[a+740>>2];j=0;c=fc-80|0;fc=c;h:{if(!a|!b)break h;i:{d=J[b+216>>2];j:{if(!(d^2147483647))break j;d=d+1|0;if(d>>>0>268435454)break j;d=sg(a,d<<4);if(d)break i}fd(a,65201);break h}e=d;d=J[b+212>>2];p=xc(e,d,J[b+216>>2]<<4);Bd(a,d);J[b+212>>2]=0;while(1){l=(n<<4)+i|0;m=J[l>>2];k:{if(!m){H[c|0]=0;fd(a,65294);break k}k=J[b+216>>2];d=c;o=1;g=0;e=K[m|0];l:{if(!e)break l;h=1;while(1){f=0;o=e>>>0<161&(e-127&255)>>>0<162;m:{if(o){f=1;if(h)break m;e=32}H[d| +0]=e;g=g+1|0;d=d+1|0}m=m+1|0;e=K[m|0];if(!e)break l;h=f;if(g>>>0<79)continue;break}}e=d;d=(g|0)!=0&o;H[e-d|0]=0;f=g-d|0;if(!f){fd(a,65294);break k}d=((k<<4)+p|0)+(j<<4)|0;e=f+1|0;f=sg(a,e);J[d>>2]=f;if(!f){fd(a,65356);break k}e=xc(f,c,e);f=sg(a,P(J[l+12>>2],10));J[d+8>>2]=f;if(!f){fd(a,65356);Bd(a,e);J[d>>2]=0;break k}e=f;f=J[l+12>>2];xc(e,J[l+8>>2],P(f,10));J[d+12>>2]=f;H[d+4|0]=K[l+4|0];j=j+1|0}n=n+1|0;if((n|0)!=1)continue;break}J[b+216>>2]=j;J[b+212>>2]=p;J[b+8>>2]=J[b+8>>2]|8192;J[b+184>>2]=J[b+ +184>>2]|32}fc=c+80|0;Bd(a,J[a+740>>2]);J[a+740>>2]=0;Bd(a,J[i+8>>2])}fc=i+16|0;return}Ld(a,66106);B()}function Qlb(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;h=fc-96|0;fc=h;J[h+80>>2]=0;J[h+84>>2]=0;J[h+72>>2]=0;J[h+76>>2]=0;j=h- -64|0;J[j>>2]=0;J[j+4>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[h+48>>2]=0;J[h+52>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;m=c+10|0;g=_c(a,8,0,m,0,h+92|0);J[b+20>>2]=g;j=J[h+92>>2];if(!j){a:{if(!c)break a;while(1){j=kc[d|0](f,l)|0;b:{if(!j)break b; +i=0;c:{d:{if(!Ic(324256,j))break d;i=1;if(!Ic(324262,j))break d;i=2;if(!Ic(324268,j))break d;i=3;if(!Ic(324277,j))break d;i=4;if(!Ic(324284,j))break d;i=5;if(!Ic(324291,j))break d;i=6;if(!Ic(324294,j))break d;i=7;if(!Ic(324309,j))break d;i=8;if(!Ic(324315,j))break d;if(Ic(324328,j))break c;i=9}k=i<<2;i=k+(h+48|0)|0;if(J[i>>2])break c;J[i>>2]=1;J[h+k>>2]=l}i=R6(j);if(i&2147483647){n=h+48|0;e:{f:{g:{h:{i:{j:{k:{l:{m:{if((i|0)<=915){n:switch(i-160|0){case 0:break i;case 13:break m;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:break e; +default:break n}switch(i-538|0){case 1:break g;case 0:break h;default:break l}}o:{p:switch(i-937|0){default:q:switch(i-8725|0){case 4:break j;case 0:break o;case 1:case 2:case 3:break e;default:break q}k=0;if((i|0)==916)break f;break e;case 19:break k;case 0:break p;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:break e}k=1;break f}k=2;break f}k=3;break f}if((i|0)!=713)break e;k=4;break f}k=5;break f}k=6;break f}k= +7;break f}k=8;break f}k=9}J[n+(k<<2)>>2]=2}J[g+4>>2]=l;J[g>>2]=i;g=g+8|0}if(!e)break b;kc[e|0](f,j)}l=l+1|0;if((l|0)!=(c|0))continue;break}if(J[h+48>>2]!=1)break a;J[g>>2]=916;J[g+4>>2]=J[h>>2];g=g+8|0}if(J[h+52>>2]==1){J[g>>2]=937;J[g+4>>2]=J[h+4>>2];g=g+8|0}if(J[h+56>>2]==1){J[g>>2]=8725;J[g+4>>2]=J[h+8>>2];g=g+8|0}if(J[h+60>>2]==1){J[g>>2]=173;J[g+4>>2]=J[h+12>>2];g=g+8|0}if(J[h+64>>2]==1){J[g>>2]=713;J[g+4>>2]=J[h+16>>2];g=g+8|0}if(J[h+68>>2]==1){J[g>>2]=956;J[g+4>>2]=J[h+20>>2];g=g+8|0}if(J[h+ +72>>2]==1){J[g>>2]=8729;J[g+4>>2]=J[h+24>>2];g=g+8|0}if(J[h+76>>2]==1){J[g>>2]=160;J[g+4>>2]=J[h+28>>2];g=g+8|0}if(J[h+80>>2]==1){J[g>>2]=538;J[g+4>>2]=J[h+32>>2];g=g+8|0}if(J[h+84>>2]==1){J[g>>2]=539;J[g+4>>2]=J[h+36>>2];g=g+8|0}j=J[b+20>>2];d=g-j>>3;r:{if((g|0)==(j|0)){if(g)kc[J[a+8>>2]](a,g);J[b+20>>2]=0;a=J[h+92>>2];j=a?a:163;break r}if(d>>>0>>1>>>0){j=_c(a,8,m,d,j,h+92|0);J[b+20>>2]=j;J[h+92>>2]=0}vm(j,d,8,1694);j=J[h+92>>2]}J[b+16>>2]=d}fc=h+96|0;return j|0}function g4(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;y=O[a+72>>3];z=O[a+80>>3];s=Y(y*y+z*z);O[a+208>>3]=s;o=J[a+188>>2];b=J[o- -64>>2];C=J[o+60>>2];e=J[o+56>>2];g=J[o+52>>2];f=J[a+268>>2];if(!f){I[o+68>>1]=2048;J[a+268>>2]=2048;f=2048}c=O[a+112>>3];A=O[a+8>>3];p=+(g|0);k=A*p;B=O[a+24>>3];h=+(e|0);l=B*h;i=+(((C|0)>2E4?65536:1)|0)*+(f|0);q=c*(k+l)/i;a:{if(R(q)<2147483648){f=~~q;break a}f=-2147483648}J[a+160>>2]=f;J[a+152>>2]=f;q=O[a+16>>3];m=q*p;p=O[a+ +32>>3];h=p*h;t=c*(m+h)/i;b:{if(R(t)<2147483648){g=~~t;break b}g=-2147483648}J[a+164>>2]=g;J[a+156>>2]=g;u=a+152|0;v=a+160|0;n=k;k=+(b|0);t=B*k;n=c*(n+t)/i;c:{if(R(n)<2147483648){e=~~n;break c}e=-2147483648}d:{e:{if((e|0)<(f|0)){j=u;b=f;f=e;break e}j=v;r=f;b=e;if((f|0)>=(b|0))break d}r=f;J[j>>2]=e;f=b}w=a+156|0;x=a+164|0;k=p*k;m=c*(m+k)/i;f:{if(R(m)<2147483648){d=~~m;break f}d=-2147483648}g:{h:{if((d|0)<(g|0)){b=w;e=g;g=d;break h}b=x;j=g;e=d;if((d|0)<=(g|0))break g}j=g;J[b>>2]=d;g=e}m=+(C|0);n=A*m; +l=c*(n+l)/i;i:{if(R(l)<2147483648){d=~~l;break i}d=-2147483648}j:{k:{if((d|0)<(r|0)){e=u;b=f;r=d;break k}e=v;b=d;if((d|0)<=(f|0))break j}J[e>>2]=d;f=b}l=q*m;h=c*(l+h)/i;l:{if(R(h)<2147483648){d=~~h;break l}d=-2147483648}m:{n:{if((d|0)<(j|0)){e=w;b=g;j=d;break n}e=x;b=d;if((d|0)<=(g|0))break m}J[e>>2]=d;g=b}h=c*(n+t)/i;o:{if(R(h)<2147483648){d=~~h;break o}d=-2147483648}p:{q:{if((d|0)<(r|0)){e=u;r=d;b=f;break q}e=v;b=d;if((d|0)<=(f|0))break p}J[e>>2]=d;f=b}i=c*(l+k)/i;r:{if(R(i)<2147483648){d=~~i;break r}d= +-2147483648}s:{t:{if((d|0)<(j|0)){e=w;j=d;b=g;break t}e=x;b=d;if((d|0)<=(g|0))break s}J[e>>2]=d;g=b}if((f|0)==(r|0)){J[u>>2]=0;if(R(c)<2147483648)b=~~c;else b=-2147483648;J[v>>2]=b}if((g|0)==(j|0)){J[w>>2]=0;c=c*1.2;u:{if(R(c)<2147483648){b=~~c;break u}b=-2147483648}J[x>>2]=b}c=q*65536;v:{if(R(c)<2147483648){b=~~c;break v}b=-2147483648}J[a+228>>2]=b;c=A*65536;w:{if(R(c)<2147483648){b=~~c;break w}b=-2147483648}J[a+220>>2]=b;c=p*65536;x:{if(R(c)<2147483648){b=~~c;break x}b=-2147483648}J[a+232>>2]=b; +c=B*65536;y:{if(R(c)<2147483648){b=~~c;break y}b=-2147483648}J[a+224>>2]=b;c=z/s*65536;z:{if(R(c)<2147483648){b=~~c;break z}b=-2147483648}J[a+248>>2]=b;c=y/s*65536;A:{if(R(c)<2147483648){b=~~c;break A}b=-2147483648}J[a+240>>2]=b;c=O[a+56>>3]/s*65536;B:{if(R(c)<2147483648){b=~~c;break B}b=-2147483648}J[a+236>>2]=b;c=O[a- -64>>3]/s*65536;C:{if(R(c)<2147483648){b=~~c;break C}b=-2147483648}J[a+244>>2]=b;Zu(o,a+220|0,0)}function es(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,r=0, +s=0,t=0,u=0;d=fc-304|0;fc=d;e=O[b+72>>3];j=O[b>>3];a:{b:{if(!K[b+120|0]){J[699344]=0;h=_(4,32)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;O[h+24>>3]=e;O[h+16>>3]=e;O[h+8>>3]=j;O[h>>3]=j;i=O[b+80>>3];e=O[b+8>>3];J[699344]=0;b=_(4,32)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;O[b>>3]=e;k=i;l=e;break b}k=O[b+104>>3];i=O[b+88>>3];J[699344]=0;h=_(4,32)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;O[h+24>>3]=e;O[h>>3]=j;O[h+16>>3]=e+k;O[h+8>>3]=e+i;i=O[b+112>>3];e=O[b+96>>3];k=O[b+80>>3];l=O[b+ +8>>3];J[699344]=0;b=_(4,32)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;O[b>>3]=l;e=k+e;i=k+i}O[b+24>>3]=k;O[b+16>>3]=i;O[b+8>>3]=e;q=O[h+24>>3];p=O[h+16>>3];n=O[h+8>>3];f=O[c>>3];J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;H[d+55|0]=0;H[d+56|0]=0;H[d+57|0]=0;H[d+58|0]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+132>>2]=-1;H[d+130|0]=0;I[d+128>>1]=0;O[d+16>>3]=l;g=1-f;l=g*l+f*e;O[d+104>>3]=l;O[d+8>>3]=j;j=g*j+f*n;O[d+96>>3]=j;o=g*e+f*i;e=g*l+f*o;O[d+120>>3]=e;r=g*n+f*p;n=g* +j+f*r;O[d+112>>3]=n;i=g*i+f*k;o=g*o+f*i;s=g*e+f*o;O[d+88>>3]=s;J[d+24>>2]=0;J[d+28>>2]=0;J[d+64>>2]=0;J[d+68>>2]=0;J[d+60>>2]=-1;u=g*n;t=f;f=g*p+f*q;g=g*r+t*f;p=u+t*g;O[d+80>>3]=p;J[d+144>>2]=0;J[d+148>>2]=0;J[d+136>>2]=0;J[d+140>>2]=0;c:{if(!(j!=0|l!=0|n!=0))if(e==0)break c;H[d+128|0]=1}J[d+168>>2]=0;J[d+172>>2]=0;O[d+160>>3]=s;J[d+176>>2]=0;J[d+180>>2]=0;J[d+184>>2]=0;J[d+188>>2]=0;J[d+192>>2]=0;J[d+196>>2]=0;H[d+199|0]=0;H[d+200|0]=0;H[d+201|0]=0;H[d+202|0]=0;J[d+208>>2]=0;J[d+212>>2]=0;J[d+204>> +2]=-1;J[d+216>>2]=0;J[d+220>>2]=0;J[d+276>>2]=-1;H[d+274|0]=0;I[d+272>>1]=0;O[d+264>>3]=i;O[d+256>>3]=f;O[d+248>>3]=o;O[d+240>>3]=g;O[d+232>>3]=k;O[d+224>>3]=q;O[d+152>>3]=p;J[d+288>>2]=0;J[d+292>>2]=0;J[d+280>>2]=0;J[d+284>>2]=0;d:{if(!(g!=0|o!=0|f!=0))if(i==0)break d;H[d+272|0]=1}J[d+300>>2]=2;J[699344]=0;J[d+296>>2]=d+8;c=J[d+300>>2];J[d>>2]=J[d+296>>2];J[d+4>>2]=c;aa(2497,a|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[d+292>>2];e:{if(!a)break e;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break e;kc[J[J[a>> +2]+8>>2]](a);Gc(a)}a=J[d+220>>2];f:{if(!a)break f;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break f;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[d+148>>2];g:{if(!a)break g;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break g;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[d+76>>2];h:{if(!a)break h;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break h;kc[J[J[a>>2]+8>>2]](a);Gc(a)}uc(b);uc(h);fc=d+304|0;return}}ea(0)|0;Bc();B()}function kUa(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;d=fc-208|0;fc=d;J[d+192>>2]=13;if(J[a+16>>2]){J[d+32>>2]=J[b+8>>2];lr(844015, +d+32|0);e=J[655076];if((c|0)==2)Mn(b+16|0,e);Jz(10);Zi(e)}f=2;a:{b:{c:{if(J[b>>2]!=4)break c;d:{e:{g=(c|0)!=2;if(!(Ic(J[b+8>>2],835837)|g|J[b+16>>2]!=4)){f=J[b+24>>2];e=J[a+20>>2];while(1){if(J[e+88>>2]==7){h=d+192|0;if(J[Ke(J[e+96>>2],f,h)>>2]!=5)break e;yc(h)}e=J[e+104>>2];if(e)continue;break}J[d+16>>2]=f;Cc(1,-1,792347,d+16|0);f=2;if(J[b>>2]!=4)break c}e=J[b+8>>2];if(Ic(e,844062)|g|J[b+16>>2]!=7)break d;if(J[Ec(J[b+24>>2],844151,d+192|0,0)>>2]==3){c=vc(12);J[699344]=0;b=aa(3354,c|0,J[d+200>>2])| +0;e=J[699344];J[699344]=0;f=1;if((e|0)==1)break a;c=J[a+8>>2];kc[J[J[c>>2]+272>>2]](c,J[a+28>>2],J[b>>2],J[b+4>>2]);uc(ld(b))}yc(d+192|0);break c}if(HB(J[J[a>>2]+36>>2],d+192|0,d+188|0))J[a+100>>2]=J[a+100>>2]&J[d+188>>2];yc(d+192|0);f=0;break c}if(Ic(e,844260)|(c|0)!=2|J[b+16>>2]!=7)break c;e=J[a+20>>2];f:{while(1){if(J[e+88>>2]==7){c=d+192|0;if(J[Ke(J[e+96>>2],844260,c)>>2]!=5)break f;yc(c)}e=J[e+104>>2];if(e)continue;break}J[d>>2]=844260;Cc(1,-1,792347,d);break c}J[d+168>>2]=13;J[d+152>>2]=13; +J[d+136>>2]=13;J[d+120>>2]=13;J[d+104>>2]=13;J[d+88>>2]=13;J[d+72>>2]=13;c=d+192|0;e=jf(c,J[a+4>>2],d+168|0,0);g:{if(J[e>>2]!=7)break g;if(!E$(J[e+8>>2],844260))break g;e=d+152|0;if(J[Ec(J[d+176>>2],842854,e,0)>>2]!=3)break g;g=d+136|0;if(J[Ec(J[J[a+4>>2]+48>>2],842854,g,0)>>2]!=6)break g;h=d+120|0;if(J[Sc(J[d+144>>2],1,h,0)>>2]!=3)break g;if(Eg(J[d+128>>2],J[d+160>>2]))break g;i=J[b+24>>2];b=d+104|0;if(J[Ec(i,844431,b,0)>>2]!=1)break g;i=d+88|0;if(J[Ec(J[d+176>>2],844524,i,0)>>2]!=6)break g;if(J[Sc(J[d+ +96>>2],J[d+112>>2],d+72|0,0)>>2]!=3)break g;yc(e);yc(g);yc(h);yc(b);yc(i);yc(c);J[d+56>>2]=13;J[d+40>>2]=13;h:{if(J[Ec(J[d+176>>2],837906,d+40|0,0)>>2]==6)if(J[tg(J[d+48>>2],J[d+112>>2],d+56|0)>>2]==9)break h;yc(d+56|0)}b=J[a+8>>2];if(kc[J[J[b>>2]+284>>2]](b,J[a+28>>2],J[d+80>>2],d+56|0)|0){C$(a,d+192|0);while(1){i:{j:switch(J[d+192>>2]-10|0){case 0:if(!Ic(J[d+200>>2],844604))break i;break;case 2:break i;default:break j}b=d+192|0;yc(b);C$(a,b);continue}break}b=J[a+8>>2];kc[J[J[b>>2]+288>>2]](b,J[a+ +28>>2]);yc(d+56|0);yc(d+40|0);yc(d+168|0);yc(d+72|0);yc(d+192|0);break b}yc(d+56|0);yc(d+40|0)}yc(d+168|0);yc(d+152|0);yc(d+136|0);yc(d+120|0);yc(d+104|0);yc(d+88|0);yc(d+72|0);yc(d+192|0)}b=vc(8);J[b+4>>2]=J[a+100>>2];J[b>>2]=f;sd(J[a+104>>2],b)}fc=d+208|0;return}a=Z()|0;uc(c);ba(a|0);B()}function j9(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;n=fc-16|0;fc=n;h=!a;a:{if(h|(!b|((h?-1:J[a+8>>2])|0)!=1))break a;Df(a,n+12|0,n+8|0,0);u=a?J[a+40>>2]:0;v=a?J[a+ +12>>2]:-1;if((c|d)<0)break a;o=J[n+12>>2];if((o|0)<=(c|0))break a;p=J[n+8>>2];if(!(J[((P(d,v)<<2)+u|0)+(c>>>3&536870908)>>2]>>>(c^-1)&1)|(p|0)<=(d|0))break a;b:{if((p-1|0)<=(d|0))break b;e=J[b+12>>2];if(!e)break b;c:{if(((e?J[e+4>>2]:1)|0)>0){a=fm(e);break c}a=kd(1,16);if(!a)break b}J[a+12>>2]=1;J[a+8>>2]=d;J[a+4>>2]=c;J[a>>2]=c;em(b,a)}e=J[b+12>>2];d:{if(!e)break d;e:{if(((e?J[e+4>>2]:1)|0)>0){a=fm(e);break e}a=kd(1,16);if(!a)break d}J[a+12>>2]=-1;J[a+8>>2]=d+1;J[a+4>>2]=c;J[a>>2]=c;em(b,a)}f:{if(((b? +J[b+4>>2]:1)|0)<=0){i=c;h=d;break f}w=o-1|0;i=c;h=d;g=d;while(1){e=J[b+12>>2];g:{if(!e)break g;f=fm(b);if(!f)break g;s=J[f+4>>2];q=J[f>>2];l=J[f+12>>2];a=J[f+8>>2];em(e,f);g=a+l|0}t=(P(g,v)<<2)+u|0;h:{i:{e=q;if((e|0)<0){a=e;break i}while(1){j:{m=(e>>>3&536870908)+t|0;j=J[m>>2];f=e&31;if(!(j>>>(f^31)&1)){a=e;break j}a=-1;J[m>>2]=j&(-2147483648>>>f^-1);f=(e|0)>0;e=e-1|0;if(f)continue}break}if((a|0)>=(q|0))break i;k=a+1|0;f=q-1|0;k:{if((k|0)>=(f|0))break k;d=(d|0)>(g|0)?d:g;h=(g|0)>(h|0)?h:g;c=(c|0)> +(f|0)?c:f;i=(i|0)<(k|0)?i:k;a=g-l|0;if((a|0)<0|(a|0)>=(p|0))break k;e=J[b+12>>2];if(!e)break k;l:{if(((e?J[e+4>>2]:1)|0)>0){e=fm(e);break l}e=kd(1,16);if(!e)break k}J[e+12>>2]=0-l;J[e+8>>2]=g;J[e+4>>2]=f;J[e>>2]=k;em(b,e)}a=q+1|0;e=0;break h}e=1}while(1){if(!e){m:{if((a|0)>=(o|0))break m;while(1){j=(a>>5<<2)+t|0;f=J[j>>2];e=a&31;if(!(f>>>(e^31)&1))break m;J[j>>2]=f&(-2147483648>>>e^-1);a=a+1|0;if((o|0)!=(a|0))continue;break}a=o}r=a-1|0;c=(c|0)>(r|0)?c:r;d=(d|0)>(g|0)?d:g;h=(g|0)>(h|0)?h:g;i=(i|0)< +(k|0)?i:k;e=g+l|0;n:{if((e|0)<0|(e|0)>=(p|0))break n;f=J[b+12>>2];if(!f)break n;o:{if(((f?J[f+4>>2]:1)|0)>0){e=fm(f);break o}e=kd(1,16);if(!e)break n}J[e+12>>2]=l;J[e+8>>2]=g;J[e+4>>2]=r;J[e>>2]=k;em(b,e)}m=s+1|0;p:{if((m|0)>=(a|0))break p;i=(i|0)<(m|0)?i:m;e=g-l|0;if((e|0)<0|(e|0)>=(p|0))break p;j=J[b+12>>2];if(!j)break p;f=0-l|0;q:{if(((j?J[j+4>>2]:1)|0)>0){e=fm(j);break q}e=kd(1,16);if(!e)break p}J[e+12>>2]=f;J[e+8>>2]=g;J[e+4>>2]=r;J[e>>2]=m;em(b,e)}e=1;continue}e=(s|0)<(w|0)?s:w;e=(a|0)>(e|0)? +a:e;r:{while(1){if((a|0)==(e|0))break r;a=a+1|0;if(!(J[(a>>5<<2)+t>>2]>>>(a^-1)&1))continue;break}k=a;e=0;continue}break}if(((b?J[b+4>>2]:1)|0)>0)continue;break}}e=XN(i,h,(c-i|0)+1|0,(d-h|0)+1|0)}fc=n+16|0;return e}function ovb(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;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;if(e){v=e-2|0;w=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];f=a+8|0;g=g+8|0;a:{if(r>>>0>v>>> +0)break a;k=r?(r|0)==(v|0)?d:b:c;l=!r&w;if(l){if(k>>>0<2)break a;l=k-1|0;n=l&1;if((k|0)!=2){l=l&-2;k=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a+4>>1];I[g+14>>1]=L[a+6>>1];g=g+16|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(!n)break a;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];g=g+8|0;break a}l=l?0:f;s=a+4|0;t=a+2|0;n=k+1>>>1|0;if(k>>>0>=3){x=n>>>0<=2?2:n;p=a+12|0;q=a+ +10|0;o=1;j=k<<1;while(1){h=L[a>>1];b:{if((h|0)==L[l>>1]){I[g>>1]=h;break b}h=K[a|0]|K[a+1|0]<<8;m=h>>>8|0;i=K[l|0]|K[l+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((i<<8|i>>>8)&65535)-((m|h<<8)&65535)|0,o)<<1)|0)/(j|0)|0)&65535;h=h<<8|h>>>8;H[g|0]=h;H[g+1|0]=h>>>8}h=g+2|0;i=L[t>>1];c:{if((i|0)==L[q>>1]){I[h>>1]=i;break c}i=K[t|0]|K[t+1|0]<<8;u=i>>>8|0;m=K[q|0]|K[q+1|0]<<8;i=((i<<8|u)&65535)+((k+(P(((m<<8|m>>>8)&65535)-((u|i<<8)&65535)|0,o)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[h|0]=i;H[h+1|0]=i>>>8}h=g+4|0; +i=L[s>>1];d:{if((i|0)==L[p>>1]){I[h>>1]=i;break d}i=K[s|0]|K[s+1|0]<<8;u=i>>>8|0;m=K[p|0]|K[p+1|0]<<8;i=((i<<8|u)&65535)+((k+(P(((m<<8|m>>>8)&65535)-((u|i<<8)&65535)|0,o)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[h|0]=i;H[h+1|0]=i>>>8}I[g+6>>1]=L[a+6>>1];g=g+8|0;o=o+1|0;if((x|0)!=(o|0))continue;break}}if(k>>>0<=n>>>0)break a;o=l+4|0;p=l+2|0;q=k<<1;while(1){j=L[a>>1];e:{if((j|0)==L[l>>1]){I[g>>1]=j;break e}j=K[a|0]|K[a+1|0]<<8;i=j>>>8|0;h=K[l|0]|K[l+1|0]<<8;j=((j<<8|i)&65535)+((k+(P(((h<<8|h>>>8)&65535)- +((i|j<<8)&65535)|0,n)<<1)|0)/(q|0)|0)&65535;j=j<<8|j>>>8;H[g|0]=j;H[g+1|0]=j>>>8}j=g+2|0;h=L[t>>1];f:{if((h|0)==L[p>>1]){I[j>>1]=h;break f}h=K[t|0]|K[t+1|0]<<8;m=h>>>8|0;i=K[p|0]|K[p+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((i<<8|i>>>8)&65535)-((m|h<<8)&65535)|0,n)<<1)|0)/(q|0)|0)&65535;h=h<<8|h>>>8;H[j|0]=h;H[j+1|0]=h>>>8}j=g+4|0;h=L[s>>1];g:{if((h|0)==L[o>>1]){I[j>>1]=h;break g}h=K[s|0]|K[s+1|0]<<8;m=h>>>8|0;i=K[o|0]|K[o+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((i<<8|i>>>8)&65535)-((m|h<<8)&65535)|0,n)<<1)| +0)/(q|0)|0)&65535;h=h<<8|h>>>8;H[j|0]=h;H[j+1|0]=h>>>8}I[g+6>>1]=L[l+6>>1];g=g+8|0;n=n+1|0;if((k|0)!=(n|0))continue;break}}r=r+1|0;if((r|0)!=(e|0))continue;break}}return 0}function m1(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=fc-48|0;fc=i;a:{if((e|0)>=41){j=89;if(!(J[b+360>>2]&524288)|(!b|e>>>0>1024))break a}if(h)J[h>>2]=0;j=1;if(!a|!(f|g))break a;g=k1(f,g,b);if(!g){j=27;break a}J[g+4>>2]=g;b:{if(!b){f=2;break b}f=J[b+96>>2];l=J[b+104>>2];m=J[b+276>>2];k=J[b+272>>2];J[g+68>>2]=J[b+68>>2]; +J[g+72>>2]=J[b+72>>2];J[g+76>>2]=J[b+76>>2];J[g+80>>2]=J[b+80>>2]}J[g+104>>2]=l;J[g+272>>2]=k;J[g+276>>2]=m;J[g+96>>2]=f;c:{if(!c){k=0;break c}k=J[g>>2];J[g>>2]=c;if(!d)break c;J[g+4>>2]=d}ax(g);d=oq(28571);if(!d){J[g+72>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;Vj(g);break a}J[d+92>>2]=64;J[d+44>>2]=J[a+44>>2];J[d+48>>2]=J[a+48>>2];f=J[a+80>>2];J[d+80>>2]=f;iL(f);f=J[a+72>>2];if(f)n=d,o=ff(f),J[n+72>>2]=o;f=yC(d,2297);d:{if(!f){if(c)J[g>>2]=k;break d}dh(d,f);cx(g,J[d+12>>2]);J[g+8>>2]=a;J[f+32>>2]=a;e:{if(J[g+ +292>>2])break e;a=J[g+36>>2];if((J[a+20>>2]-J[a+16>>2]|0)>249)break e;Rd(g)}f=J[g+36>>2];a=J[f+16>>2];f:{if((J[f+20>>2]-a|0)<4)break f;H[i+44|0]=K[a|0];H[i+45|0]=K[a+1|0];H[i+46|0]=K[a+2|0];H[i+47|0]=K[a+3|0];a=Vr(i+44|0,4);if(!a)break f;Sr(g,a)}a=J[J[g+36>>2]+16>>2];g:{if(K[a|0]!=60|K[a+1|0]!=63|(K[a+2|0]!=120|K[a+3|0]!=109))break g;if(K[a+4|0]!=108)break g;a=K[a+5|0]-9|0;if(a>>>0>23|!(1<>2]=e;J[g+172>>2]=7;iC(g);a=J[J[g+36>>2]+16>>2];e=K[a|0];h:{if(!e)break h;i:{if(!((e| +0)!=60|K[a+1|0]!=47)){if(J[g+172>>2]==-1?J[g+212>>2]:0)break h;J[g+84>>2]=85;J[i+32>>2]=17349;Hc(0,0,0,g,0,1,85,3,0,0,0,0,32906,i+32|0);J[g+12>>2]=0;if(J[g+288>>2])break h;a=g+212|0;break i}if(J[g+172>>2]==-1?J[g+212>>2]:0)break h;J[g+84>>2]=86;J[i+16>>2]=10214;Hc(0,0,0,g,0,1,86,3,0,0,0,0,32906,i+16|0);J[g+12>>2]=0;if(J[g+288>>2])break h;a=g+212|0}J[a>>2]=1}j:{if(J[g+52>>2]==J[d+12>>2]|(J[g+172>>2]==-1?J[g+212>>2]:0))break j;J[g+84>>2]=85;J[i>>2]=17349;Hc(0,0,0,g,0,1,85,3,0,0,0,0,32906,i);J[g+12>> +2]=0;if(J[g+288>>2])break j;J[g+212>>2]=1}k:{if(!J[g+12>>2]){a=J[g+84>>2];j=a>>>0<=1?1:a;break k}j=0;if(!h)break k;e=J[J[d+12>>2]+12>>2];J[h>>2]=e;if(e)while(1){J[e+20>>2]=0;e=J[e+24>>2];if(e)continue;break}J[J[d+12>>2]+12>>2]=0;j=0}l:{if(!b)break l;J[b+440>>2]=J[b+440>>2]+J[g+440>>2];a=J[g+36>>2];if(!a)break l;J[b+444>>2]=(J[a+16>>2]+(J[b+444>>2]+J[a+36>>2]|0)|0)-J[a+12>>2]}if(J[g+388>>2])eL(g+384|0,b+384|0);if(c)J[g>>2]=k;if(b){J[b+72>>2]=J[g+72>>2];J[b+76>>2]=J[g+76>>2];J[b+80>>2]=J[g+80>>2]}}J[g+ +72>>2]=0;J[g+76>>2]=0;J[g+80>>2]=0;Vj(g);J[d+44>>2]=0;J[d+48>>2]=0;Rr(d)}fc=i+48|0;return j}function sY(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=P(e,3);g=J[b>>2]>>>m|0;if(g&2097168)break a;k=(K[J[a+108>>2]+(g&495)|0]<<2)+a|0;J[a+104>>2]=k+28;j=J[k+28>>2];h=J[j>>2];g=J[a+4>>2]-h|0;J[a+4>>2]=g;i=J[a>>2];b:{if(i>>>16>>>0>>0){l=J[j+4>>2];J[a+4>>2]=h;g=g>>>0>>0;J[k+28>>2]=J[j+(g?8:12)>>2];j=g?l:!l;g=J[a+8>>2];while(1){c:{if(g)break c;g=J[a+16>>2];l=g+1|0;k=K[g+1|0];if(K[g|0]==255){if(k>>> 0>=144){J[a+12>>2]=J[a+12>>2]+1;i=i+65280|0;g=8;break c}J[a+16>>2]=l;i=(k<<9)+i|0;g=7;break c}J[a+16>>2]=l;g=8;i=(k<<8)+i|0}g=g-1|0;J[a+8>>2]=g;i=i<<1;J[a>>2]=i;h=h<<1;J[a+4>>2]=h;if(h>>>0<32768)continue;break}g=h;break b}i=i-(h<<16)|0;J[a>>2]=i;if(!(g&32768)){l=J[j+4>>2];h=g>>>0>>0;J[k+28>>2]=J[j+(h?12:8)>>2];j=h?!l:l;h=J[a+8>>2];while(1){d:{if(h)break d;h=J[a+16>>2];l=h+1|0;k=K[h+1|0];if(K[h|0]==255){if(k>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;i=i+65280|0;h=8;break d}J[a+16>>2]=l;i=(k<<9)+i|0;h=7; -break d}J[a+16>>2]=l;h=8;i=(k<<8)+i|0}h=h-1|0;J[a+8>>2]=h;i=i<<1;J[a>>2]=i;g=g<<1;J[a+4>>2]=g;if(g>>>0<32768)continue;break}break b}j=J[j+4>>2]}if(!j)break a;n=b-4|0;h=J[b>>2];o=J[b+4>>2]>>>m+17&4|(J[n>>2]>>>m+19&1|(h>>>m+16&64|h>>>m&170|h>>>(e?m+12|0:14)&16));l=(K[o+2363440|0]<<2)+a|0;J[a+104>>2]=l+28;k=J[l+28>>2];h=J[k>>2];g=g-h|0;J[a+4>>2]=g;e:{if(i>>>16>>>0>>0){j=J[k+4>>2];J[a+4>>2]=h;g=g>>>0>>0;J[l+28>>2]=J[k+(g?8:12)>>2];k=g?j:!j;g=J[a+8>>2];while(1){f:{if(g)break f;g=J[a+16>>2];l=g+1| +break d}J[a+16>>2]=l;h=8;i=(k<<8)+i|0}h=h-1|0;J[a+8>>2]=h;i=i<<1;J[a>>2]=i;g=g<<1;J[a+4>>2]=g;if(g>>>0<32768)continue;break}break b}j=J[j+4>>2]}if(!j)break a;n=b-4|0;h=J[b>>2];o=J[b+4>>2]>>>m+17&4|(J[n>>2]>>>m+19&1|(h>>>m+16&64|h>>>m&170|h>>>(e?m+12|0:14)&16));l=(K[o+2375344|0]<<2)+a|0;J[a+104>>2]=l+28;k=J[l+28>>2];h=J[k>>2];g=g-h|0;J[a+4>>2]=g;e:{if(i>>>16>>>0>>0){j=J[k+4>>2];J[a+4>>2]=h;g=g>>>0>>0;J[l+28>>2]=J[k+(g?8:12)>>2];k=g?j:!j;g=J[a+8>>2];while(1){f:{if(g)break f;g=J[a+16>>2];l=g+1| 0;j=K[g+1|0];if(K[g|0]==255){if(j>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;i=i+65280|0;g=8;break f}J[a+16>>2]=l;i=(j<<9)+i|0;g=7;break f}J[a+16>>2]=l;g=8;i=(j<<8)+i|0}g=g-1|0;J[a+8>>2]=g;i=i<<1;J[a>>2]=i;h=h<<1;J[a+4>>2]=h;if(h>>>0<32768)continue;break}break e}j=i-(h<<16)|0;J[a>>2]=j;if(!(g&32768)){i=J[k+4>>2];h=g>>>0>>0;J[l+28>>2]=J[k+(h?12:8)>>2];k=h?!i:i;i=J[a+8>>2];while(1){g:{if(i)break g;i=J[a+16>>2];l=i+1|0;h=K[i+1|0];if(K[i|0]==255){if(h>>>0>=144){J[a+12>>2]=J[a+12>>2]+1;j=j+65280|0;i=8;break g}J[a+ -16>>2]=l;j=(h<<9)+j|0;i=7;break g}J[a+16>>2]=l;i=8;j=(h<<8)+j|0}i=i-1|0;J[a+8>>2]=i;j=j<<1;J[a>>2]=j;g=g<<1;J[a+4>>2]=g;if(g>>>0<32768)continue;break}break e}k=J[k+4>>2]}g=0-d|0;h=d;d=K[o+2363696|0]^k;J[c>>2]=d?g:h;J[n>>2]=J[n>>2]|32<>2]=J[b>>2]|(d<<19|16)<>2]=J[b+4>>2]|8<>2]<<2)+b|0;J[c+4>>2]=J[c+4>>2]|32768;J[c>>2]=J[c>>2]|d<<31|65536;c=c-4|0;J[c>>2]=J[c>>2]|131072}if((e|0)!=3)break a;a=(J[a+124>>2]<<2)+b|0;J[a+4>>2]=J[a+4>>2]|4;J[a+12>>2]=J[a+12>>2]| -1;J[a+8>>2]=J[a+8>>2]|d<<18|2}}function H$(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0;k=bc+-64|0;bc=k;a:{b:{if(!c|(!b|!d))break b;j=J[b+32>>2];c:{if(!j)break c;l=J[j+80>>2];if(J[j+48>>2]!=(b|0))break c;j=J[j+44>>2];if(!j)break c;j=J[j+44>>2];if(!j)break c;if(tf(j,d,e,c))break b}d:{m=J[b+44>>2];if(m)break d;m=up(0,l);J[b+44>>2]=m;if(m)break d;e:{if(!a){b=0;d=0;break e}b=J[a>>2];d=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break e;n=(b^-1)+a>>>0<249?b:0}J[k>>2]=38460;Cc(0,d,b,n,0,23,2,3,38460, -0,0,0,32863,k);vk(i);break a}j=gc[J[659447]](64)|0;if(!j){f:{if(!a){b=0;d=0;break f}b=J[a>>2];d=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break f;n=(b^-1)+a>>>0<249?b:0}J[k+16>>2]=17038;Cc(0,d,b,n,0,23,2,3,17038,0,0,0,32863,k+16|0);vk(i);break a}J[j>>2]=0;J[j+4>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;J[j+56>>2]=0;J[j+60>>2]=0;J[j+48>>2]=0;J[j+52>>2]=0;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;J[j+4>>2]=16;J[j+40>>2]=f;J[j+32>>2]=J[b+32>>2];g:{h:{if(!l){o= -j,p=$e(d),J[o+8>>2]=p;o=j,p=$e(e),J[o+56>>2]=p;a=$e(c);J[j+52>>2]=i;J[j+44>>2]=g;J[j+60>>2]=a;if(!h)break g;a=$e(h);break h}o=j,p=le(l,d,-1),J[o+8>>2]=p;o=j,p=le(l,e,-1),J[o+56>>2]=p;a=le(l,c,-1);J[j+52>>2]=i;J[j+44>>2]=g;J[j+60>>2]=a;if(!h)break g;a=le(l,h,-1)}J[j+48>>2]=a}if((Dw(m,J[j+8>>2],J[j+56>>2],J[j+60>>2],j)|0)<0){G$(j);break a}J[k+60>>2]=0;i:{j:{a=J[b+40>>2];if(a)break j;a=J[b+32>>2];if(a)a=J[a+80>>2];else a=0;a=up(0,a);J[b+40>>2]=a;if(a)break j;J[k+32>>2]=16926;Cc(0,0,0,0,0,23,2,3,16926, -0,0,0,32863,k+32|0);break i}e=sp(c,k+60|0);c=e?e:c;d=bn(a,c,J[k+60>>2]);if(!d){d=gc[J[659447]](56)|0;if(!d){J[k+48>>2]=17038;Cc(0,0,0,0,0,23,2,3,17038,0,0,0,32863,k+48|0);break i}J[d>>2]=0;J[d+4>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=15;o=d,p=$e(c),J[o+8>>2]=p;f=$e(J[k+60>>2]);J[d+36>>2]=0;J[d+48>>2]=f;KJ(a,c,J[k+60>>2],d)}a=J[k+60>>2];if(a)gc[J[659451]](a);if(e)gc[J[659451]](e); -k:{l:{if(!Eg(J[j+8>>2],4071)){a=J[j+56>>2];if(!a)break l;if(!Eg(a,4071))break l}break k}c=J[d+44>>2];m:{while(1){a=c;if(!a)break m;n:{if(!Eg(J[a+8>>2],4071)){c=J[j+56>>2];if(!c)break n;if(!Eg(c,4071))break n}c=J[a+36>>2];if(c)continue}break}J[j+36>>2]=J[a+36>>2];J[a+36>>2]=j;break i}}J[j+36>>2]=J[d+44>>2];J[d+44>>2]=j}J[j+20>>2]=b;a=J[b+16>>2];o:{if(!a){J[b+12>>2]=j;break o}J[a+24>>2]=j;J[j+28>>2]=a}J[b+16>>2]=j;break a}vk(i)}bc=k- -64|0}function FYa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f= -0,g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=0,p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=0,w=0,x=0,y=Q(0);v=bc-256|0;bc=v;o=J[a+332>>2];b=J[b+84>>2];a=v;w=8;while(1){a:{b:{f=L[c+32>>1];x=L[c+16>>1];if(f|x)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;h=Q(N[b>>2]*Q(I[c>>1]));N[a+192>>2]=h;N[a+160>>2]=h;N[a+128>>2]=h;N[a+96>>2]=h;N[a+64>>2]=h;N[a+32>>2]=h;N[a>>2]=h;f=56;break a}i=Q(N[b>>2]*Q(I[c>>1]));j=Q(N[b+128>>2]*Q(I[c+64>>1]));p=Q(i+ -j);k=Q(N[b+64>>2]*Q(f<<16>>16));l=Q(N[b+192>>2]*Q(I[c+96>>1]));h=Q(k+l);m=Q(p+h);n=Q(N[b+96>>2]*Q(I[c+48>>1]));q=Q(N[b+160>>2]*Q(I[c+80>>1]));r=Q(n+q);s=Q(N[b+32>>2]*Q(x<<16>>16));t=Q(N[b+224>>2]*Q(I[c+112>>1]));u=Q(s+t);g=Q(r+u);N[a+224>>2]=m-g;N[a>>2]=m+g;i=Q(i-j);j=Q(Q(Q(k-l)*Q(1.4142135381698608))-h);k=Q(i+j);l=Q(q-n);m=Q(s-t);n=Q(Q(l+m)*Q(1.8477590084075928));g=Q(Q(n+Q(l*Q(-2.613126039505005)))-g);N[a+192>>2]=k-g;N[a+32>>2]=k+g;i=Q(i-j);g=Q(Q(Q(u-r)*Q(1.4142135381698608))-g);N[a+160>>2]=i-g; -N[a+64>>2]=i+g;h=Q(p-h);g=Q(Q(n+Q(m*Q(-1.0823922157287598)))-g);N[a+96>>2]=h+g;h=Q(h-g);f=32}N[(f<<2)+a>>2]=h;c=c+2|0;b=b+4|0;a=a+4|0;f=w>>>0>1;w=w-1|0;if(f)continue;break}c=v;b=0;while(1){a=J[(b<<2)+d>>2]+e|0;i=Q(N[c>>2]+Q(128.5));j=N[c+16>>2];p=Q(i+j);k=N[c+8>>2];l=N[c+24>>2];h=Q(k+l);m=Q(p+h);n=N[c+20>>2];q=N[c+12>>2];r=Q(n+q);s=N[c+4>>2];t=N[c+28>>2];u=Q(s+t);g=Q(r+u);y=Q(m+g);c:{if(Q(R(y))>2];g=K[b|0];h=J[((g&127)<<2)+55968>>2];f=h>>16;e=J[d+ -16>>2]-f|0;J[d+16>>2]=e;a:{b:{if((g>>>7|0)!=(c|0)){if((e|0)>=(f|0)){J[d+16>>2]=f;J[d+12>>2]=e+J[d+12>>2]}c=g&128^h&255;break b}if((e|0)>32767)break a;if((e|0)<(f|0)){J[d+16>>2]=f;J[d+12>>2]=e+J[d+12>>2]}c=g&128^h>>>8}H[b|0]=c;b=J[d+28>>2];e=J[d+12>>2];c=J[d+16>>2];while(1){b=b-1|0;J[d+28>>2]=b;e=e<<1;J[d+12>>2]=e;c=c<<1;J[d+16>>2]=c;if(!b){e=e>>19;c:{if((e|0)>=256){c=J[d+32>>2];d:{if((c|0)<0)break d;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e; -if(gc[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}c=J[d+32>>2]}b=J[a+24>>2];f=J[b>>2];J[b>>2]=f+1;H[f|0]=c+1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(gc[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(J[d+32>>2]!=254)break d;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break d;if(gc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}J[d+32>>2]=e&255;b=J[d+20>> -2];J[d+20>>2]=0;J[d+24>>2]=b+J[d+24>>2];break c}if((e|0)==255){J[d+20>>2]=J[d+20>>2]+1;break c}b=J[d+32>>2];g:{if(!b){J[d+24>>2]=J[d+24>>2]+1;break g}if((b|0)<0)break g;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(gc[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break g;if(gc[J[c+ -12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(J[d+20>>2]){if(J[d+24>>2])while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(gc[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(gc[J[b+12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>> -2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(gc[J[b+12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[d+20>>2]-1|0;J[d+20>>2]=b;if(b)continue;break}}J[d+32>>2]=e&255}e=J[d+12>>2]&524287;J[d+12>>2]=e;b=J[d+28>>2]+8|0;J[d+28>>2]=b;c=J[d+16>>2]}if((c|0)<32768)continue;break}}}function gua(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;J[a>>2]=0;md(a,b);a:{b:{i=c&3;c:{if(!i)break c;d:{e:{f:{if(c&1){J[695492]=0;h=$(4,24)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break e;e=L[b+8>>1];c=L[b+10>>1];J[695492]=0;c=ha(5262,h|0,c|0,e|0,0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break f;c=Z()|0;qc(h);break a}J[695492]=0;h=$(4,24)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;e=L[b+10>>1];c=L[b+8>>1];J[695492]=0;c=ha(5262,h|0,c|0,e|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b}J[695492]=0;aa(4985,a|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break d}c=Z()|0;break a}if(!K[2762E3])H[2762E3]=1;j=J[a>>2];g:switch(i-1|0){case 2:if(!L[b+8>>1])break c;e= -L[j+8>>1];if(!e)break c;while(1){a=0;c=J[b+16>>2];h=c?c+P(P(L[b+12>>1],f),3)|0:0;c=e;while(1){m=h+P(a,3)|0;c=c-1|0;d=0;h:{if(c>>>0>=L[j+8>>1])break h;i=J[j+16>>2];d=0;if(!i)break h;d=i+P(P(L[j+12>>1],c),3)|0}d=d+P(f,3)|0;i=K[m|0]|K[m+1|0]<<8;H[d|0]=i;H[d+1|0]=i>>>8;H[d+2|0]=K[m+2|0];a=a+1|0;if((e|0)!=(a|0))continue;break}f=f+1|0;if(f>>>0>1])continue;break}break c;case 1:i=L[j+8>>1];if(!i)break c;h=L[j+10>>1];if(!h)break c;n=h&3;m=h>>>0<4;f=i;while(1){a=0;i:{if(L[b+8>>1]<=k>>>0)break i;c=J[b+ -16>>2];a=0;if(!c)break i;a=c+P(P(L[b+12>>1],k),3)|0}l=0;f=f-1|0;e=0;j:{if(f>>>0>=L[j+8>>1])break j;c=J[j+16>>2];e=0;if(!c)break j;e=c+P(P(L[j+12>>1],f),3)|0}c=h;if(n)while(1){c=c-1|0;g=P(c,3)+e|0;d=K[a|0]|K[a+1|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=K[a+2|0];a=a+3|0;l=l+1|0;if((n|0)!=(l|0))continue;break}if(!m)while(1){l=P(c,3)+e|0;g=l-3|0;d=K[a|0]|K[a+1|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=K[a+2|0];g=l-6|0;H[g+2|0]=K[a+5|0];d=K[a+3|0]|K[a+4|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;g=l-9|0;d=K[a+6|0]|K[a+ -7|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=K[a+8|0];g=l-12|0;d=K[a+9|0]|K[a+10|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=K[a+11|0];a=a+12|0;d=(c|0)>4;c=c-4|0;if(d)continue;break}k=k+1|0;if((i|0)!=(k|0))continue;break}break c;case 0:break g;default:break c}i=L[j+10>>1];if(!i)break c;c=i;while(1){e=0;k:{if(L[b+8>>1]<=k>>>0)break k;a=J[b+16>>2];e=0;if(!a)break k;e=a+P(P(L[b+12>>1],k),3)|0}c=c-1|0;a=0;if(L[b+10>>1])while(1){d=e+P(a,3)|0;f=0;l:{if(L[j+8>>1]<=a>>>0)break l;h=J[j+16>>2];f=0;if(!h)break l;f=h+ -P(P(L[j+12>>1],a),3)|0}f=f+P(c,3)|0;h=K[d|0]|K[d+1|0]<<8;H[f|0]=h;H[f+1|0]=h>>>8;H[f+2|0]=K[d+2|0];a=a+1|0;if(a>>>0>1])continue;break}k=k+1|0;if((i|0)!=(k|0))continue;break}}return}c=Z()|0;qc(h)}vc(a);ba(c|0);B()}function GJ(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;a:{if(!a|!b|J[a+4>>2]!=1)break a;f=J[a+44>>2];b:{if(!f)break b;if(!c)while(1){c:{if(J[f+36>>2])break c;d=J[f+8>>2];if((d|0)==(b|0))return f;e=b;if(!d)break c;while(1){g=K[d|0];if((g|0)!=K[e|0])break c;e=e+ -1|0;d=d+1|0;if(g)continue;break}return f}f=J[f+24>>2];if(f)continue;break b}while(1){d:{g=J[f+36>>2];if(!g)break d;d=J[f+8>>2];if((d|0)!=(b|0)){e=b;if(!d)break d;while(1){i=K[d|0];if((i|0)!=K[e|0])break d;e=e+1|0;d=d+1|0;if(i)continue;break}}d=J[g+8>>2];if((d|0)==(c|0))return f;e=c;if(!d)break d;while(1){g=K[d|0];if((g|0)!=K[e|0])break d;e=e+1|0;d=d+1|0;if(g)continue;break}return f}f=J[f+24>>2];if(f)continue;break}}j=J[a+32>>2];if(!j|!J[j+44>>2])break a;e:{f:{e=J[a+36>>2];if(!e)break f;e=J[e+12>> -2];if(!e)break f;d=e;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}d=0;f=f-e|0;g:{if((f|0)<0)break g;g=gc[J[659450]](f+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break g}d=tc(g,e,f);H[f+d|0]=0}i=vp(vp(d,22253),J[a+8>>2]);n=i;if(i)break e;break a}i=J[a+8>>2]}h:{i:{if(!c){d=rp(J[j+44>>2],i,b,0);if(d)break i;d=0;a=J[j+48>>2];if(!a)break i;d=rp(a,i,b,0);break i}e=0;g=0;o=bc-16|0;bc=o;j:{if(!a|J[a+4>>2]==18)break j;l=10;while(1){k:{l:{if(J[a+4>>2]!=1)break l;k=J[a+48>>2];if(!k)break l;while(1){if(!e){e= -gc[J[659447]]((l<<2)+4|0)|0;if(!e)break k;J[(g<<2)+e>>2]=0}m:{n:{if((g|0)<=0)break n;h=0;f=J[k+12>>2];if(!f)while(1){if(!J[J[(h<<2)+e>>2]+12>>2])break m;h=h+1|0;if((h|0)!=(g|0))continue;break n}while(1){m=J[J[(h<<2)+e>>2]+12>>2];if((f|0)==(m|0))break m;d=f;o:{if(!m)break o;while(1){p=K[d|0];if((p|0)!=K[m|0])break o;m=m+1|0;d=d+1|0;if(p)continue;break}break m}h=h+1|0;if((h|0)!=(g|0))continue;break}}if((g|0)>=(l|0)){e=gc[J[659452]](e,l<<3|4)|0;if(!e)break k;l=l<<1}J[(g<<2)+e>>2]=k;g=g+1|0;J[(g<<2)+ -e>>2]=0}k=J[k>>2];if(k)continue;break}}a=J[a+20>>2];if(a)continue;break j}break}J[o>>2]=2124;e=0;Cc(0,0,0,0,0,2,2,3,2124,0,0,0,32863,o)}bc=o+16|0;if(!e)break h;g=e;d=0;a=J[e>>2];p:{if(!a)break p;d=e;while(1){f=d;d=J[a+8>>2];q:{if((d|0)!=(c|0)){e=c;if(!d)break q;while(1){h=K[d|0];if((h|0)!=K[e|0])break q;e=e+1|0;d=d+1|0;if(h)continue;break}}d=rp(J[j+44>>2],i,b,J[a+12>>2]);if(d)break p;a=J[j+48>>2];if(!a)break q;d=rp(a,i,b,J[J[f>>2]+12>>2]);if(d)break p}d=f+4|0;a=J[f+4>>2];if(a)continue;break}d=0}gc[J[659451]](g)}if(n)gc[J[659451]](n); -if(!d)break a;return J[d+48>>2]?d:0}if(!n)break a;gc[J[659451]](n)}return 0}function i3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0;g=J[a+4>>2];f=J[g>>2];t=O[f+32>>3];u=O[f>>3];y=O[f+16>>3];v=O[f+40>>3];w=O[f+8>>3];o=O[a+16>>3];m=O[f+24>>3];h=O[a+24>>3];i=(e|0)<=1?1:e;J[g+24>>2]=i;J[g+4>>2]=i;s=o+ +(c|0);o=m;m=h+ +(d|0);x=o*m;h=(v+(w*s+x))*256;h=h+(h<0?-.5:.5);a:{if(R(h)<2147483648){d=~~h;break a}d=-2147483648}J[g+ -40>>2]=d;o=m*y;h=(t+(s*u+o))*256;h=h+(h<0?-.5:.5);b:{if(R(h)<2147483648){c=~~h;break b}c=-2147483648}J[g+20>>2]=c;m=s+ +(e>>>0);h=(v+(m*w+x))*256;h=h+(h<0?-.5:.5);c:{if(R(h)<2147483648){k=~~h;break c}k=-2147483648}f=k-d|0;d=(f|0)/(i|0)|0;j=f-P(d,i)|0;l=(j|0)<=0;J[g+28>>2]=d-l;h=(t+(m*u+o))*256;h=h+(h<0?-.5:.5);d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}d=d-c|0;c=(d|0)/(i|0)|0;k=c;f=d-P(c,i)|0;c=(f|0)<=0;J[g+8>>2]=k-c;d=j+(l?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+ -16>>2]=c-e;c=J[a+4>>2];g=J[c+40>>2];d=J[c+20>>2];while(1){c=J[a+36>>2];i=J[a>>2];n=d-J[a+32>>2]|0;d=n>>8;J[i+8>>2]=d;p=g-c|0;f=J[i+28>>2];j=(J[i+32>>2]+(p>>8)>>>0)%(f>>>0)|0;J[i+36>>2]=j;c=J[J[i>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];k=d+J[i+16>>2]|0;d=J[i+12>>2];l=(k>>>0)%(d>>>0)|0;J[i+20>>2]=l;g=g+P(c,j>>>0>2]?j:f+(j^-1)|0)|0;J[i+4>>2]=g;c=g+(l<<2)|0;z=K[c+2|0];A=K[c+1|0];B=K[c|0];q=K[c+3|0];c=l+1|0;c=c>>>0>>0?c:0;J[i+20>>2]=c;c=g+(c<<2)|0;C=K[c+2|0];D=K[c+1|0];E=K[c|0];k=K[c+3|0];j=J[a>>2]; -c=J[j+36>>2]+1|0;f=J[j+28>>2];l=f>>>0>c>>>0?c:0;J[j+36>>2]=l;c=J[J[j>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];d=(J[j+16>>2]+J[j+8>>2]>>>0)%M[j+12>>2]|0;J[j+20>>2]=d;c=g+P(c,l>>>0>2]?l:f+(l^-1)|0)|0;J[j+4>>2]=c;c=c+(d<<2)|0;F=K[c+2|0];G=K[c+1|0];i=K[c|0];j=K[c+3|0];d=J[a>>2];c=J[d+20>>2]+1|0;c=c>>>0>2]?c:0;J[d+20>>2]=c;r=J[d+4>>2]+(c<<2)|0;l=K[r+2|0];f=K[r+1|0];g=K[r|0];I=q;p=p&255;d=256-p|0;q=n&255;c=256-q|0;n=P(d,c);L=k;k=P(d,q);d=P(c,p);c=P(p,q);H[b+3|0]=(((P(I,n)+P(L,k)|0)+P(d,j)|0)+P(c, -K[r+3|0])|0)+32768>>>16;H[b+2|0]=(((P(n,B)+P(k,E)|0)+P(d,i)|0)+P(c,g)|0)+32768>>>16;H[b+1|0]=(((P(n,A)+P(k,D)|0)+P(d,G)|0)+P(c,f)|0)+32768>>>16;H[b|0]=(((P(n,z)+P(k,C)|0)+P(d,F)|0)+P(c,l)|0)+32768>>>16;f=J[a+4>>2];c=J[f+16>>2]+J[f+12>>2]|0;J[f+16>>2]=c;d=J[f+20>>2]+J[f+8>>2]|0;J[f+20>>2]=d;if((c|0)>0){d=d+1|0;J[f+20>>2]=d;J[f+16>>2]=c-J[f+4>>2]}c=J[f+36>>2]+J[f+32>>2]|0;J[f+36>>2]=c;g=J[f+40>>2]+J[f+28>>2]|0;J[f+40>>2]=g;if((c|0)>0){g=g+1|0;J[f+40>>2]=g;J[f+36>>2]=c-J[f+24>>2]}b=b+4|0;e=e-1|0;if(e)continue; -break}}function c3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0;g=J[a+4>>2];f=J[g>>2];t=O[f+32>>3];u=O[f>>3];y=O[f+16>>3];v=O[f+40>>3];w=O[f+8>>3];o=O[a+16>>3];m=O[f+24>>3];h=O[a+24>>3];i=(e|0)<=1?1:e;J[g+24>>2]=i;J[g+4>>2]=i;s=o+ +(c|0);o=m;m=h+ +(d|0);x=o*m;h=(v+(w*s+x))*256;h=h+(h<0?-.5:.5);a:{if(R(h)<2147483648){d=~~h;break a}d=-2147483648}J[g+40>>2]=d;o=m*y;h=(t+(s*u+o))*256;h=h+(h<0?-.5:.5);b:{if(R(h)< -2147483648){c=~~h;break b}c=-2147483648}J[g+20>>2]=c;m=s+ +(e>>>0);h=(v+(m*w+x))*256;h=h+(h<0?-.5:.5);c:{if(R(h)<2147483648){k=~~h;break c}k=-2147483648}f=k-d|0;d=(f|0)/(i|0)|0;j=f-P(d,i)|0;l=(j|0)<=0;J[g+28>>2]=d-l;h=(t+(m*u+o))*256;h=h+(h<0?-.5:.5);d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}d=d-c|0;c=(d|0)/(i|0)|0;k=c;f=d-P(c,i)|0;c=(f|0)<=0;J[g+8>>2]=k-c;d=j+(l?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e;c=J[a+4>>2];g=J[c+40>>2];d=J[c+20>>2];while(1){c= -J[a+36>>2];i=J[a>>2];n=d-J[a+32>>2]|0;d=n>>8;J[i+8>>2]=d;p=g-c|0;f=J[i+28>>2];j=(J[i+32>>2]+(p>>8)>>>0)%(f>>>0)|0;J[i+36>>2]=j;c=J[J[i>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];k=d+J[i+16>>2]|0;d=J[i+12>>2];l=(k>>>0)%(d>>>0)|0;J[i+20>>2]=l;g=g+P(c,j>>>0>2]?j:f+(j^-1)|0)|0;J[i+4>>2]=g;c=g+(l<<2)|0;z=K[c|0];A=K[c+1|0];B=K[c+2|0];q=K[c+3|0];c=l+1|0;c=c>>>0>>0?c:0;J[i+20>>2]=c;c=g+(c<<2)|0;C=K[c|0];D=K[c+1|0];E=K[c+2|0];k=K[c+3|0];j=J[a>>2];c=J[j+36>>2]+1|0;f=J[j+28>>2];l=f>>>0>c>>>0?c:0;J[j+36>>2]= -l;c=J[J[j>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];d=(J[j+16>>2]+J[j+8>>2]>>>0)%M[j+12>>2]|0;J[j+20>>2]=d;c=g+P(c,l>>>0>2]?l:f+(l^-1)|0)|0;J[j+4>>2]=c;c=c+(d<<2)|0;F=K[c|0];G=K[c+1|0];i=K[c+2|0];j=K[c+3|0];d=J[a>>2];c=J[d+20>>2]+1|0;c=c>>>0>2]?c:0;J[d+20>>2]=c;r=J[d+4>>2]+(c<<2)|0;l=K[r|0];f=K[r+1|0];g=K[r+2|0];I=q;p=p&255;d=256-p|0;q=n&255;c=256-q|0;n=P(d,c);L=k;k=P(d,q);d=P(c,p);c=P(p,q);H[b+3|0]=(((P(I,n)+P(L,k)|0)+P(d,j)|0)+P(c,K[r+3|0])|0)+32768>>>16;H[b+2|0]=(((P(n,B)+P(k,E)|0)+P(d, -i)|0)+P(c,g)|0)+32768>>>16;H[b+1|0]=(((P(n,A)+P(k,D)|0)+P(d,G)|0)+P(c,f)|0)+32768>>>16;H[b|0]=(((P(n,z)+P(k,C)|0)+P(d,F)|0)+P(c,l)|0)+32768>>>16;f=J[a+4>>2];c=J[f+16>>2]+J[f+12>>2]|0;J[f+16>>2]=c;d=J[f+20>>2]+J[f+8>>2]|0;J[f+20>>2]=d;if((c|0)>0){d=d+1|0;J[f+20>>2]=d;J[f+16>>2]=c-J[f+4>>2]}c=J[f+36>>2]+J[f+32>>2]|0;J[f+36>>2]=c;g=J[f+40>>2]+J[f+28>>2]|0;J[f+40>>2]=g;if((c|0)>0){g=g+1|0;J[f+40>>2]=g;J[f+36>>2]=c-J[f+24>>2]}b=b+4|0;e=e-1|0;if(e)continue;break}}function Iaa(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;j=bc-16|0;bc=j;k=J[a+584>>2];a:{if((b|0)==65557){f=J[c>>2];J[k+120>>2]=f;b=1;if(!(K[k+124|0]&2))break a;g=-2;c=k- -64|0;b:{if(!c|!J[c+32>>2]|!J[c+36>>2])break b;h=J[c+28>>2];if(!h|(c|0)!=J[h>>2])break b;c:{d:{d=J[h+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break b; -case 0:case 12:case 16:case 34:case 46:case 56:break c;default:break d}}if((d|0)==666)break c;if((d|0)!=42)break b}l=(f|0)==-1?6:f;if(l>>>0>9)break b;e:{if(!J[h+136>>2])if(J[P(J[h+132>>2],12)+762616>>2]==J[P(l,12)+762616>>2])break e;if(!J[h+5824>>2])break e;if((Ak(c,5)|0)==-2)break b;if(J[c+16>>2])break e;g=-5;break b}c=J[h+132>>2];if((c|0)!=(l|0)){f:{if(c)break f;g:{h:switch(J[h+5808>>2]){case 1:d=0;g=J[h+76>>2];i=g-1|0;f=J[h+68>>2]+(g<<1)|0;c=J[h+44>>2];m=g&3;if(m)while(1){f=f-2|0;n=L[f>>1];e=n- +16>>2]=l;j=(h<<9)+j|0;i=7;break g}J[a+16>>2]=l;i=8;j=(h<<8)+j|0}i=i-1|0;J[a+8>>2]=i;j=j<<1;J[a>>2]=j;g=g<<1;J[a+4>>2]=g;if(g>>>0<32768)continue;break}break e}k=J[k+4>>2]}g=0-d|0;h=d;d=K[o+2375600|0]^k;J[c>>2]=d?g:h;J[n>>2]=J[n>>2]|32<>2]=J[b>>2]|(d<<19|16)<>2]=J[b+4>>2]|8<>2]<<2)+b|0;J[c+4>>2]=J[c+4>>2]|32768;J[c>>2]=J[c>>2]|d<<31|65536;c=c-4|0;J[c>>2]=J[c>>2]|131072}if((e|0)!=3)break a;a=(J[a+124>>2]<<2)+b|0;J[a+4>>2]=J[a+4>>2]|4;J[a+12>>2]=J[a+12>>2]| +1;J[a+8>>2]=J[a+8>>2]|d<<18|2}}function N8(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;r=fc-16|0;fc=r;e=ps(a,d);a:{if(e)break a;ky(a,b,c,d);s=J[a>>2];c=J[a+2748>>2];b=J[J[c>>2]+8>>2];f=P(d,1348)+a|0;k=f;J[f+56>>2]=0;o=f+44|0;e=J[o>>2];f=J[f+52>>2];t=J[(d?12:4)+a>>2];h=K[J[(b<<2)+247056>>2]+12|0];b:{if((d|0)==1)break b;h=0;if(d)break b;v=Cd(64,J[a+12>>2]);h=0}u=Cd(32,t);b=Wc(J[(c+P(d,9804)|0)+248>>2],t);w=Cd((b|0)>=16?16:b,t);if((e|0)>0){x=P(e,44)+f| +0;i=P(v,3);m=(P(d,1348)+a|0)- -64|0;n=h&255;c=f;while(1){b=I[c+10>>1];c:{if((b|0)<(v|0)|(u|0)>1])break c;l=K[c+1|0];if((l|0)==4|((i|0)>b<<1?J[c+24>>2]:0))break c;d:{g=J[k+56>>2];e:{if((g|0)<=0){j=I[c+2>>1];break e}j=I[c+2>>1];h=J[m>>2];e=0;while(1){p=h+P(e,44)|0;b=j-I[p>>1]|0;q=b>>31;if((l|0)==K[p+13|0]&((b^q)-q|0)<(w|0))break d;e=e+1|0;if((g|0)!=(e|0))continue;break}}e=L8(o,j,l<<24>>24,n,s,r+12|0);if(e)break a;e=J[r+12>>2];J[e>>2]=0;J[e+4>>2]=0;J[e+40>>2]=c;J[e+36>>2]=c;J[e+32>>2]=0;J[e+24>> +2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;H[e+13|0]=K[c+1|0];b=I[c+2>>1];I[e>>1]=b;b=Wc(b,t);J[e+8>>2]=b;J[e+4>>2]=b;J[c+16>>2]=c;break c}J[c+16>>2]=J[p+36>>2];J[J[p+40>>2]+16>>2]=c;J[p+40>>2]=c}c=c+44|0;if(x>>>0>c>>>0)continue;break}while(1){f:{if(K[f+1|0]!=4)break f;g=J[k+56>>2];if((g|0)<=0)break f;h=I[f+2>>1];e=J[m>>2];c=0;while(1){i=e+P(c,44)|0;b=h-I[i>>1]|0;n=b>>31;if(((b^n)-n|0)>=(w|0)){c=c+1|0;if((g|0)!=(c|0))continue;break f}break}J[f+16>>2]=J[i+36>>2];J[J[i+40>> +2]+16>>2]=f;J[i+40>>2]=f}f=f+44|0;if(x>>>0>f>>>0)continue;break}}e=0;g=J[(P(d,1348)+a|0)- -64>>2];if(!g)break a;a=J[k+56>>2];if((a|0)<=0)break a;q=P(a,44)+g|0;e=g;while(1){a=J[e+36>>2];c=a;if(c)while(1){J[c+12>>2]=e;c=J[c+16>>2];if((a|0)!=(c|0))continue;break}e=e+44|0;if(q>>>0>e>>>0)continue;break}while(1){d=g+28|0;h=g+24|0;u=J[g+36>>2];c=u;j=0;m=0;while(1){i=H[c|0]&1;n=!i;e=J[c+24>>2];g:{h:{i:{if(e){a=J[e+12>>2];b=(a|0)!=0&(a|0)!=(g|0);f=J[c+20>>2];if(f)break i;l=1;k=d;if(b)break h;break g}b=0;f= +J[c+20>>2];if(!f)break g}a=b&1;if(!(a|J[f+12>>2]))break g;l=1;k=d;if(a)break h;l=0;e=f;k=h}b=J[k>>2];j:{if(b){f=I[c+2>>1]-I[e+2>>1]|0;s=f>>31;a=I[g>>1]-I[b>>1]|0;o=a>>31;if((f^s)-s>>>0>=(a^o)-o>>>0)break j}b=J[e+12>>2]}if(l){J[d>>2]=b;H[b+12|0]=K[b+12|0]|2;break g}J[h>>2]=b}j=j+i|0;m=m+n|0;c=J[c+16>>2];if((u|0)!=(c|0))continue;break}H[g+12|0]=(j|0)>0&(j|0)>=(m|0);if(!(!J[g+28>>2]|!J[h>>2]))J[d>>2]=0;g=g+44|0;if(q>>>0>g>>>0)continue;break}e=0}fc=r+16|0;return e}function j0a(a,b,c,d,e){a=a|0;b=b|0; +c=c|0;d=d|0;e=e|0;var f=0,g=Q(0),h=Q(0),i=Q(0),j=Q(0),k=Q(0),l=Q(0),m=Q(0),n=Q(0),o=0,p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=0,w=0,x=0,y=Q(0);v=fc-256|0;fc=v;o=J[a+332>>2];b=J[b+84>>2];a=v;w=8;while(1){a:{b:{f=L[c+32>>1];x=L[c+16>>1];if(f|x)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;h=Q(N[b>>2]*Q(I[c>>1]));N[a+192>>2]=h;N[a+160>>2]=h;N[a+128>>2]=h;N[a+96>>2]=h;N[a+64>>2]=h;N[a+32>>2]=h;N[a>>2]=h;f=56;break a}i=Q(N[b>>2]*Q(I[c>>1]));j=Q(N[b+128>> +2]*Q(I[c+64>>1]));p=Q(i+j);k=Q(N[b+64>>2]*Q(f<<16>>16));l=Q(N[b+192>>2]*Q(I[c+96>>1]));h=Q(k+l);m=Q(p+h);n=Q(N[b+96>>2]*Q(I[c+48>>1]));q=Q(N[b+160>>2]*Q(I[c+80>>1]));r=Q(n+q);s=Q(N[b+32>>2]*Q(x<<16>>16));t=Q(N[b+224>>2]*Q(I[c+112>>1]));u=Q(s+t);g=Q(r+u);N[a+224>>2]=m-g;N[a>>2]=m+g;i=Q(i-j);j=Q(Q(Q(k-l)*Q(1.4142135381698608))-h);k=Q(i+j);l=Q(q-n);m=Q(s-t);n=Q(Q(l+m)*Q(1.8477590084075928));g=Q(Q(n+Q(l*Q(-2.613126039505005)))-g);N[a+192>>2]=k-g;N[a+32>>2]=k+g;i=Q(i-j);g=Q(Q(Q(u-r)*Q(1.4142135381698608))- +g);N[a+160>>2]=i-g;N[a+64>>2]=i+g;h=Q(p-h);g=Q(Q(n+Q(m*Q(-1.0823922157287598)))-g);N[a+96>>2]=h+g;h=Q(h-g);f=32}N[(f<<2)+a>>2]=h;c=c+2|0;b=b+4|0;a=a+4|0;f=w>>>0>1;w=w-1|0;if(f)continue;break}c=v;b=0;while(1){a=J[(b<<2)+d>>2]+e|0;i=Q(N[c>>2]+Q(128.5));j=N[c+16>>2];p=Q(i+j);k=N[c+8>>2];l=N[c+24>>2];h=Q(k+l);m=Q(p+h);n=N[c+20>>2];q=N[c+12>>2];r=Q(n+q);s=N[c+4>>2];t=N[c+28>>2];u=Q(s+t);g=Q(r+u);y=Q(m+g);c:{if(Q(R(y))>2];c:{if(!j)break c;l=J[j+80>>2];if(J[j+48>>2]!=(b|0))break c;j=J[j+44>>2];if(!j)break c;j=J[j+44>>2];if(!j)break c;if(Bf(j,d,e,c))break b}d:{m=J[b+44>>2];if(m)break d;m=mq(0,l);J[b+44>>2]=m;if(m)break d;e:{if(!a){b=0;d=0;break e}b=J[a>>2];d=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break e;n=(b^-1)+a>>>0<249?b:0}J[k>>2]=38476;Hc(0,d,b,n,0,23,2,3,38476,0,0,0,32879,k);Rk(i);break a}j=kc[J[663195]](64)|0;if(!j){f:{if(!a){b=0;d=0;break f}b=J[a>>2];d=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break f; +n=(b^-1)+a>>>0<249?b:0}J[k+16>>2]=17054;Hc(0,d,b,n,0,23,2,3,17054,0,0,0,32879,k+16|0);Rk(i);break a}J[j>>2]=0;J[j+4>>2]=0;J[j+40>>2]=0;J[j+44>>2]=0;J[j+56>>2]=0;J[j+60>>2]=0;J[j+48>>2]=0;J[j+52>>2]=0;J[j+32>>2]=0;J[j+36>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+16>>2]=0;J[j+20>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;J[j+4>>2]=16;J[j+40>>2]=f;J[j+32>>2]=J[b+32>>2];g:{h:{if(!l){o=j,p=ff(d),J[o+8>>2]=p;o=j,p=ff(e),J[o+56>>2]=p;a=ff(c);J[j+52>>2]=i;J[j+44>>2]=g;J[j+60>>2]=a;if(!h)break g;a=ff(h);break h}o=j,p=te(l, +d,-1),J[o+8>>2]=p;o=j,p=te(l,e,-1),J[o+56>>2]=p;a=te(l,c,-1);J[j+52>>2]=i;J[j+44>>2]=g;J[j+60>>2]=a;if(!h)break g;a=te(l,h,-1)}J[j+48>>2]=a}if((sx(m,J[j+8>>2],J[j+56>>2],J[j+60>>2],j)|0)<0){G1(j);break a}J[k+60>>2]=0;i:{j:{a=J[b+40>>2];if(a)break j;a=J[b+32>>2];if(a)a=J[a+80>>2];else a=0;a=mq(0,a);J[b+40>>2]=a;if(a)break j;J[k+32>>2]=16942;Hc(0,0,0,0,0,23,2,3,16942,0,0,0,32879,k+32|0);break i}e=kq(c,k+60|0);c=e?e:c;d=Un(a,c,J[k+60>>2]);if(!d){d=kc[J[663195]](56)|0;if(!d){J[k+48>>2]=17054;Hc(0,0,0, +0,0,23,2,3,17054,0,0,0,32879,k+48|0);break i}J[d>>2]=0;J[d+4>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=15;o=d,p=ff(c),J[o+8>>2]=p;f=ff(J[k+60>>2]);J[d+36>>2]=0;J[d+48>>2]=f;VK(a,c,J[k+60>>2],d)}a=J[k+60>>2];if(a)kc[J[663199]](a);if(e)kc[J[663199]](e);k:{l:{if(!Pg(J[j+8>>2],4071)){a=J[j+56>>2];if(!a)break l;if(!Pg(a,4071))break l}break k}c=J[d+44>>2];m:{while(1){a=c;if(!a)break m; +n:{if(!Pg(J[a+8>>2],4071)){c=J[j+56>>2];if(!c)break n;if(!Pg(c,4071))break n}c=J[a+36>>2];if(c)continue}break}J[j+36>>2]=J[a+36>>2];J[a+36>>2]=j;break i}}J[j+36>>2]=J[d+44>>2];J[d+44>>2]=j}J[j+20>>2]=b;a=J[b+16>>2];o:{if(!a){J[b+12>>2]=j;break o}J[a+24>>2]=j;J[j+28>>2]=a}J[b+16>>2]=j;break a}Rk(i)}fc=k- -64|0}function We(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=J[a+420>>2];g=K[b|0];h=J[((g&127)<<2)+55984>>2];f=h>>16;e=J[d+16>>2]-f|0;J[d+16>>2]=e;a:{b:{if((g>>>7|0)!=(c|0)){if((e|0)>=(f|0)){J[d+16>>2]=f;J[d+ +12>>2]=e+J[d+12>>2]}c=g&128^h&255;break b}if((e|0)>32767)break a;if((e|0)<(f|0)){J[d+16>>2]=f;J[d+12>>2]=e+J[d+12>>2]}c=g&128^h>>>8}H[b|0]=c;b=J[d+28>>2];e=J[d+12>>2];c=J[d+16>>2];while(1){b=b-1|0;J[d+28>>2]=b;e=e<<1;J[d+12>>2]=e;c=c<<1;J[d+16>>2]=c;if(!b){e=e>>19;c:{if((e|0)>=256){c=J[d+32>>2];d:{if((c|0)<0)break d;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(kc[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b= +J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}c=J[d+32>>2]}b=J[a+24>>2];f=J[b>>2];J[b>>2]=f+1;H[f|0]=c+1;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f:{if(c)break f;if(kc[J[b+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(J[d+32>>2]!=254)break d;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break d;if(kc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}J[d+32>>2]=e&255;b=J[d+20>>2];J[d+20>>2]=0;J[d+24>>2]=b+J[d+24>>2];break c}if((e|0)==255){J[d+20>> +2]=J[d+20>>2]+1;break c}b=J[d+32>>2];g:{if(!b){J[d+24>>2]=J[d+24>>2]+1;break g}if((b|0)<0)break g;if(J[d+24>>2]){while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;h:{if(c)break h;if(kc[J[b+12>>2]](a)|0)break h;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}b=J[d+32>>2]}c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;if(b)break g;if(kc[J[c+12>>2]](a)|0)break g;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(J[d+ +20>>2]){if(J[d+24>>2])while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i:{if(c)break i;if(kc[J[b+12>>2]](a)|0)break i;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+24>>2]-1|0;J[d+24>>2]=b;if(b)continue;break}while(1){b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;j:{if(c)break j;if(kc[J[b+12>>2]](a)|0)break j;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;k:{if(c)break k;if(kc[J[b+ +12>>2]](a)|0)break k;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[d+20>>2]-1|0;J[d+20>>2]=b;if(b)continue;break}}J[d+32>>2]=e&255}e=J[d+12>>2]&524287;J[d+12>>2]=e;b=J[d+28>>2]+8|0;J[d+28>>2]=b;c=J[d+16>>2]}if((c|0)<32768)continue;break}}}function mwa(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;J[a>>2]=0;vd(a,b);a:{b:{i=c&3;c:{if(!i)break c;d:{e:{f:{if(c&1){J[699344]=0;h=_(4,24)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;e=L[b+8>>1];c=L[b+10>>1];J[699344]=0;c=ha(5432, +h|0,c|0,e|0,0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break f;c=Z()|0;uc(h);break a}J[699344]=0;h=_(4,24)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;e=L[b+10>>1];c=L[b+8>>1];J[699344]=0;c=ha(5432,h|0,c|0,e|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b}J[699344]=0;aa(5145,a|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break d}c=Z()|0;break a}if(!K[2777408])H[2777408]=1;j=J[a>>2];g:switch(i-1|0){case 2:if(!L[b+8>>1])break c;e=L[j+8>>1];if(!e)break c;while(1){a=0;c=J[b+16>>2];h=c?c+P(P(L[b+12>> +1],f),3)|0:0;c=e;while(1){m=h+P(a,3)|0;c=c-1|0;d=0;h:{if(c>>>0>=L[j+8>>1])break h;i=J[j+16>>2];d=0;if(!i)break h;d=i+P(P(L[j+12>>1],c),3)|0}d=d+P(f,3)|0;i=K[m|0]|K[m+1|0]<<8;H[d|0]=i;H[d+1|0]=i>>>8;H[d+2|0]=K[m+2|0];a=a+1|0;if((e|0)!=(a|0))continue;break}f=f+1|0;if(f>>>0>1])continue;break}break c;case 1:i=L[j+8>>1];if(!i)break c;h=L[j+10>>1];if(!h)break c;n=h&3;m=h>>>0<4;f=i;while(1){a=0;i:{if(L[b+8>>1]<=k>>>0)break i;c=J[b+16>>2];a=0;if(!c)break i;a=c+P(P(L[b+12>>1],k),3)|0}l=0;f=f-1|0;e= +0;j:{if(f>>>0>=L[j+8>>1])break j;c=J[j+16>>2];e=0;if(!c)break j;e=c+P(P(L[j+12>>1],f),3)|0}c=h;if(n)while(1){c=c-1|0;g=P(c,3)+e|0;d=K[a|0]|K[a+1|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=K[a+2|0];a=a+3|0;l=l+1|0;if((n|0)!=(l|0))continue;break}if(!m)while(1){l=P(c,3)+e|0;g=l-3|0;d=K[a|0]|K[a+1|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=K[a+2|0];g=l-6|0;H[g+2|0]=K[a+5|0];d=K[a+3|0]|K[a+4|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;g=l-9|0;d=K[a+6|0]|K[a+7|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=K[a+8|0];g=l-12|0;d=K[a+9| +0]|K[a+10|0]<<8;H[g|0]=d;H[g+1|0]=d>>>8;H[g+2|0]=K[a+11|0];a=a+12|0;d=(c|0)>4;c=c-4|0;if(d)continue;break}k=k+1|0;if((i|0)!=(k|0))continue;break}break c;case 0:break g;default:break c}i=L[j+10>>1];if(!i)break c;c=i;while(1){e=0;k:{if(L[b+8>>1]<=k>>>0)break k;a=J[b+16>>2];e=0;if(!a)break k;e=a+P(P(L[b+12>>1],k),3)|0}c=c-1|0;a=0;if(L[b+10>>1])while(1){d=e+P(a,3)|0;f=0;l:{if(L[j+8>>1]<=a>>>0)break l;h=J[j+16>>2];f=0;if(!h)break l;f=h+P(P(L[j+12>>1],a),3)|0}f=f+P(c,3)|0;h=K[d|0]|K[d+1|0]<<8;H[f|0]=h; +H[f+1|0]=h>>>8;H[f+2|0]=K[d+2|0];a=a+1|0;if(a>>>0>1])continue;break}k=k+1|0;if((i|0)!=(k|0))continue;break}}return}c=Z()|0;uc(h)}zc(a);ba(c|0);B()}function SK(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;a:{if(!a|!b|J[a+4>>2]!=1)break a;f=J[a+44>>2];b:{if(!f)break b;if(!c)while(1){c:{if(J[f+36>>2])break c;d=J[f+8>>2];if((d|0)==(b|0))return f;e=b;if(!d)break c;while(1){g=K[d|0];if((g|0)!=K[e|0])break c;e=e+1|0;d=d+1|0;if(g)continue;break}return f}f=J[f+24>>2];if(f)continue; +break b}while(1){d:{g=J[f+36>>2];if(!g)break d;d=J[f+8>>2];if((d|0)!=(b|0)){e=b;if(!d)break d;while(1){i=K[d|0];if((i|0)!=K[e|0])break d;e=e+1|0;d=d+1|0;if(i)continue;break}}d=J[g+8>>2];if((d|0)==(c|0))return f;e=c;if(!d)break d;while(1){g=K[d|0];if((g|0)!=K[e|0])break d;e=e+1|0;d=d+1|0;if(g)continue;break}return f}f=J[f+24>>2];if(f)continue;break}}j=J[a+32>>2];if(!j|!J[j+44>>2])break a;e:{f:{e=J[a+36>>2];if(!e)break f;e=J[e+12>>2];if(!e)break f;d=e;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}d= +0;f=f-e|0;g:{if((f|0)<0)break g;g=kc[J[663198]](f+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break g}d=xc(g,e,f);H[f+d|0]=0}i=nq(nq(d,22269),J[a+8>>2]);n=i;if(i)break e;break a}i=J[a+8>>2]}h:{i:{if(!c){d=jq(J[j+44>>2],i,b,0);if(d)break i;d=0;a=J[j+48>>2];if(!a)break i;d=jq(a,i,b,0);break i}e=0;g=0;o=fc-16|0;fc=o;j:{if(!a|J[a+4>>2]==18)break j;l=10;while(1){k:{l:{if(J[a+4>>2]!=1)break l;k=J[a+48>>2];if(!k)break l;while(1){if(!e){e=kc[J[663195]]((l<<2)+4|0)|0;if(!e)break k;J[(g<<2)+e>>2]=0}m:{n:{if((g| +0)<=0)break n;h=0;f=J[k+12>>2];if(!f)while(1){if(!J[J[(h<<2)+e>>2]+12>>2])break m;h=h+1|0;if((h|0)!=(g|0))continue;break n}while(1){m=J[J[(h<<2)+e>>2]+12>>2];if((f|0)==(m|0))break m;d=f;o:{if(!m)break o;while(1){p=K[d|0];if((p|0)!=K[m|0])break o;m=m+1|0;d=d+1|0;if(p)continue;break}break m}h=h+1|0;if((h|0)!=(g|0))continue;break}}if((g|0)>=(l|0)){e=kc[J[663200]](e,l<<3|4)|0;if(!e)break k;l=l<<1}J[(g<<2)+e>>2]=k;g=g+1|0;J[(g<<2)+e>>2]=0}k=J[k>>2];if(k)continue;break}}a=J[a+20>>2];if(a)continue;break j}break}J[o>> +2]=2124;e=0;Hc(0,0,0,0,0,2,2,3,2124,0,0,0,32879,o)}fc=o+16|0;if(!e)break h;g=e;d=0;a=J[e>>2];p:{if(!a)break p;d=e;while(1){f=d;d=J[a+8>>2];q:{if((d|0)!=(c|0)){e=c;if(!d)break q;while(1){h=K[d|0];if((h|0)!=K[e|0])break q;e=e+1|0;d=d+1|0;if(h)continue;break}}d=jq(J[j+44>>2],i,b,J[a+12>>2]);if(d)break p;a=J[j+48>>2];if(!a)break q;d=jq(a,i,b,J[J[f>>2]+12>>2]);if(d)break p}d=f+4|0;a=J[f+4>>2];if(a)continue;break}d=0}kc[J[663199]](g)}if(n)kc[J[663199]](n);if(!d)break a;return J[d+48>>2]?d:0}if(!n)break a; +kc[J[663199]](n)}return 0}function Kca(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;j=fc-16|0;fc=j;k=J[a+584>>2];a:{if((b|0)==65557){f=J[c>>2];J[k+120>>2]=f;b=1;if(!(K[k+124|0]&2))break a;g=-2;c=k- -64|0;b:{if(!c|!J[c+32>>2]|!J[c+36>>2])break b;h=J[c+28>>2];if(!h|(c|0)!=J[h>>2])break b;c:{d:{d=J[h+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break b; +case 0:case 12:case 16:case 34:case 46:case 56:break c;default:break d}}if((d|0)==666)break c;if((d|0)!=42)break b}l=(f|0)==-1?6:f;if(l>>>0>9)break b;e:{if(!J[h+136>>2])if(J[P(J[h+132>>2],12)+764360>>2]==J[P(l,12)+764360>>2])break e;if(!J[h+5824>>2])break e;if((Wk(c,5)|0)==-2)break b;if(J[c+16>>2])break e;g=-5;break b}c=J[h+132>>2];if((c|0)!=(l|0)){f:{if(c)break f;g:{h:switch(J[h+5808>>2]){case 1:d=0;g=J[h+76>>2];i=g-1|0;f=J[h+68>>2]+(g<<1)|0;c=J[h+44>>2];m=g&3;if(m)while(1){f=f-2|0;n=L[f>>1];e=n- c|0;I[f>>1]=e>>>0<=n>>>0?e:0;g=g-1|0;d=d+1|0;if((m|0)!=(d|0))continue;break}if(i>>>0>=3)while(1){e=f-2|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;e=f-4|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;e=f-6|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;f=f-8|0;e=L[f>>1];d=e-c|0;I[f>>1]=d>>>0<=e>>>0?d:0;g=g-4|0;if(g)continue;break}i=c-1|0;f=J[h+64>>2]+(c<<1)|0;m=c&3;i:{if(!m){g=c;break i}d=0;g=c;while(1){f=f-2|0;n=L[f>>1];e=n-c|0;I[f>>1]=e>>>0<=n>>>0?e:0;g=g-1|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}if(i>>> -0>=3)while(1){e=f-2|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;e=f-4|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;e=f-6|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;f=f-8|0;e=L[f>>1];d=e-c|0;I[f>>1]=d>>>0<=e>>>0?d:0;g=g-4|0;if(g)continue;break}c=J[h+76>>2];g=J[h+68>>2];break g;case 0:break f;default:break h}g=J[h+68>>2];c=J[h+76>>2];I[(g+(c<<1)|0)-2>>1]=0}wc(g,0,(c<<1)-2|0);J[h+5808>>2]=0}J[h+132>>2]=l;c=P(l,12);J[h+144>>2]=L[c+762612>>1];J[h+140>>2]=L[c+762608>>1];J[h+128>>2]=L[c+762610>>1];J[h+ -124>>2]=L[c+762614>>1]}J[h+136>>2]=0;g=0}if(!g)break a;b=J[a+628>>2];a=J[a>>2];J[j+4>>2]=J[k+88>>2];J[j>>2]=a;Nc(b,97988,72472,j);b=0;break a}b=gc[J[k+132>>2]](a,b,c)|0}bc=j+16|0;return b|0}function zFa(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;c=bc-32|0;bc=c;a:{b:{c:{d:{e:{f:{g:{h:{d=J[a+60>>2];j=a- -64|0;i:{if((d|0)!=(j|0))while(1){j:{if(H[d+27|0]>=0){J[c+24>>2]=J[d+24>>2];f=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=f;break j}Re(c+16|0,J[d+16>>2],J[d+20>>2])}f=J[d+28>>2]; -J[c+28>>2]=f;g=0;h=Ve(b);k=K[c+27|0];i=k<<24>>24;k:{if((h|0)!=(((i|0)<0?J[c+20>>2]:k)|0)){f=e;break k}g=1;l:switch(h+1|0){case 0:J[695492]=0;_(2804,c+16|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;ea(0)|0;yc();B();case 1:break k;default:break l}g=gd((i|0)<0?J[c+16>>2]:c+16|0,b,h);f=g?e:J[c+28>>2];g=!g}if(H[c+27|0]<0)qc(J[c+16>>2]);if(g)break i;g=J[d+4>>2];m:{if(g)while(1){d=g;g=J[d>>2];if(g)continue;break m}while(1){e=d;d=J[d+8>>2];if((e|0)!=J[d>>2])continue;break}}e=f;if((d|0)!=(j|0))continue; -break}e=rc(36);d=J[a+24>>2];f=Ve(b);if(f>>>0>=1073741808){J[695492]=0;_(2793,c+4|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;break a}n:{if(f>>>0<=1){H[c+15|0]=f;g=c+4|0;break n}g=f|3;if(g>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break b}J[695492]=0;h=g+1|0;g=$(4,h<<2)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;J[c+4>>2]=g;J[c+8>>2]=f;J[c+12>>2]=h|-2147483648}f=f<<2;l=tc(g,b,f)+f|0,m=0,J[l>>2]=m;J[695492]=0;f=c+16|0;ca(4801,f|0,d|0,c+4|0);d=J[695492];J[695492]= -0;if((d|0)==1)break h;J[695492]=0;f=aa(4820,e|0,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+15|0]<0)qc(J[c+4>>2]);e=Ve(b);if(e>>>0>=1073741808)break d;o:{if(e>>>0<=1){H[c+27|0]=e;g=c+16|0;break o}d=e|3;if(d>>>0>=1073741823)break c;d=d+1|0;g=rc(d<<2);J[c+24>>2]=d|-2147483648;J[c+16>>2]=g;J[c+20>>2]=e}d=b;b=e<<2;l=tc(g,d,b)+b|0,m=0,J[l>>2]=m;J[c+28>>2]=f;J[695492]=0;b=Xe(a+60|0,c+4|0,c+16|0);e=J[695492];J[695492]=0;if((e|0)==1)break e;if(!J[b>>2]){J[695492]= -0;d=$(4,32)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;e=J[c+20>>2];J[d+16>>2]=J[c+16>>2];J[d+20>>2]=e;J[d+24>>2]=J[c+24>>2];J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[d+28>>2]=J[c+28>>2];J[d+8>>2]=J[c+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[b>>2]=d;e=J[J[a+60>>2]>>2];if(e){J[a+60>>2]=e;d=J[b>>2]}Ic(J[a+64>>2],d);J[a+68>>2]=J[a+68>>2]+1}if(H[c+27|0]>=0)break i;qc(J[c+16>>2])}bc=c+32|0;return f|0}d=Z()|0;break f}d=Z()|0;if(H[c+27|0]>=0)break f;qc(J[c+16>>2])}if(H[c+15|0]<0)qc(J[c+4>>2]);qc(e);ba(d|0);B()}a= -Z()|0;if(H[c+27|0]<0)qc(J[c+16>>2]);ba(a|0);B()}Id(c+16|0);B()}Sd();B()}a=Z()|0;qc(e);ba(a|0);B()}B()}function i$a(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;m=J[a+4>>2];c=J[m+52>>2];i=c?c:64;e=J[a+24>>2];n=J[a+12>>2];j=J[a+8>>2];a:{b:{f=J[m+56>>2];d=J[a+16>>2];h=J[a+20>>2]-d|0;if(!(!f|(h|0)<=0)){k=f?-1:0;break b}c=0;break a}c=1}c:while(1){d:{e:{if(!c){c=n-j>>1;h=(c|0)>(h|0)?h:c;f:{if((h|0)<=0)break f;while(1){f=L[j>>1];if(f>>>0>12287)break f;g:{if(f>>>0<=32){i=(f|0)!= -32?64:i;c=f;break g}c=f-i|0;if(c- -64>>>0>127)break f;i=f&65408|64;c=c-112|0}H[d|0]=c;J[e>>2]=l;d=d+1|0;e=e+4|0;l=l+1|0;j=j+2|0;c=(h|0)>1;h=h-1|0;if(c)continue;break}}h=J[a+20>>2]-d|0;c=0;break e}if(j>>>0>>0){g=L[j>>1];c=(g&64512)==56320;f=c?(g+(f<<10)|0)-56613888|0:f;l=c+l|0;j=(c<<1)+j|0;c=1;break e}f=0-f|0;break d}while(1){h:{i:{j:{k:{if(!c){if(j>>>0>=n>>>0)break d;if((h|0)<=0)break k;k=l;c=j;while(1){l:{l=k+1|0;j=c+2|0;f=L[c>>1];if(f>>>0>32)break l;H[d|0]=f;J[e>>2]=k;i=(f|0)!=32?64:i;e=e+4| -0;d=d+1|0;if(j>>>0>=n>>>0)break d;g=(h|0)<2;h=h-1|0;k=l;c=j;if(!g)continue;break k}break}if((f&64512)!=55296)break h;c=1;continue c}c=f-i|0;g=f&-128|64;i=g;m:{if(f-55204>>>0<=4294924443)break m;i=12400;if(f>>>0<12448)break m;i=30481;if(f-19968>>>0<20902)break m;i=49617;if(f>>>0>44031)break m;i=g}if(c- -64>>>0<=127){H[d|0]=c-112;J[e>>2]=k;h=h-1|0;e=e+4|0;d=d+1|0;if((f|0)<12288)break j;break i}if(!(h>>>0<2|c+10513>>>0>21025)){n:{o:{p:{q:{if((c|0)>=0){c=c+-64|0;g=(c<<16>>16)/243|0;c=c-P(g,243)<<16>> -16;g=g+208&65535;break q}c=-64-c|0;g=(c>>>0)/243|0;o=c-P(g,243)|0;c=243-o|0;g=(o?g^-1:0-g|0)+80|0;if(!o)break p}H[d|0]=g;if((c|0)<20)break o;c=c+13|0;break n}H[d|0]=g;c=0}c=K[c+753856|0]}H[d+1|0]=c;J[e+4>>2]=k;J[e>>2]=k;h=h-2|0;e=e+8|0;d=d+2|0;break i}c=X0(c);o=c>>24;g=c>>>0>=67108864?4:o;if((g|0)<=(h|0)){r:switch(g-2|0){case 2:H[d|0]=o;J[e>>2]=k;e=e+4|0;d=d+1|0;case 1:H[d|0]=c>>>16;J[e>>2]=k;e=e+4|0;d=d+1|0;case 0:H[d|0]=c>>>8;J[e>>2]=k;H[d+1|0]=c;J[e+4>>2]=k;e=e+8|0;d=d+2|0;break;default:break r}h= -h-g|0;break i}l=m+76|0;s:{t:{u:{v:{n=g-h|0;switch(n-1|0){case 0:break t;case 1:break u;case 2:break v;default:break s}}H[m+76|0]=c>>>16;l=m+77|0}H[l|0]=c>>>8;l=l+1|0}H[l|0]=c}H[m+63|0]=n;c=c>>(n<<3);w:switch(h-1|0){case 2:H[d|0]=c>>>16;J[e>>2]=k;e=e+4|0;d=d+1|0;case 1:H[d|0]=c>>>8;J[e>>2]=k;e=e+4|0;d=d+1|0;case 0:H[d|0]=c;J[e>>2]=k;e=e+4|0;d=d+1|0;break;default:break w}J[b>>2]=15;break d}J[b>>2]=15;break d}c=0;continue c}c=0;continue}c=1;continue}}break}J[m+52>>2]=i;J[m+56>>2]=0-f&f>>31;J[a+24>>2]= -e;J[a+16>>2]=d;J[a+8>>2]=j}function Cj(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;k=J[b+4>>2];if((k|0)>2])J[a+108>>2]=k;if(J[a+116>>2]<(k|0))J[a+116>>2]=k;p=J[a+40>>2];c=J[b+28>>2];b=J[b+20>>2];o=c-b>>3;m=o;while(1){l=I[b+8>>1];h=J[b+12>>2];c=-1;n=I[b+10>>1];d=n>>31;j=(d^n)-d|0;if(j>>>0<=4095){f=J[a+4>>2];c=J[a>>2];g=c>>>12|0;if(f>>>0<=g>>>0){d=J[a+8>>2];a:{if(d>>>0>g>>>0){e=J[a+12>>2];break a}d=d+J[a+16>>2]|0;e=rc(d>>>0>1073741823?-1:d<<2);i=J[a+ -12>>2];if(i){tc(e,i,f<<2);qc(i);c=J[a>>2];f=J[a+4>>2];d=J[a+8>>2]+J[a+16>>2]|0}J[a+8>>2]=d;J[a+12>>2]=e}q=(g<<2)+e|0,r=rc(4096),J[q>>2]=r;f=f+1|0;J[a+4>>2]=f}d=4096-(c&4095)|0;b:{if(d>>>0>=j>>>0)break b;g=J[a+12>>2];c=c+d|0;J[a>>2]=c;e=c>>>12|0;if(e>>>0>>0)break b;d=J[a+8>>2];c:{if(d>>>0>e>>>0){d=g;break c}c=d+J[a+16>>2]|0;d=rc(c>>>0>1073741823?-1:c<<2);c=tc(d,g,f<<2);qc(g);J[a+12>>2]=c;J[a+8>>2]=J[a+8>>2]+J[a+16>>2];c=J[a>>2];f=J[a+4>>2]}q=(e<<2)+d|0,r=rc(4096),J[q>>2]=r;J[a+4>>2]=f+1}J[a>>2]= -c+j}d:{if((c|0)>=0){tc(J[J[a+12>>2]+(c>>>10&4194300)>>2]+(c&4095)|0,h,j);break d}i=tc(rc(j),h,j);d=J[a+24>>2];f=J[a+20>>2];g=f>>>6|0;if(d>>>0<=g>>>0){c=J[a+28>>2];e:{if(c>>>0>g>>>0){e=J[a+32>>2];break e}c=c+J[a+36>>2]|0;e=rc(c>>>0>1073741823?-1:c<<2);h=J[a+32>>2];if(h){tc(e,h,d<<2);qc(h);f=J[a+20>>2];d=J[a+24>>2];c=J[a+28>>2]+J[a+36>>2]|0}J[a+28>>2]=c;J[a+32>>2]=e}q=(g<<2)+e|0,r=rc(512),J[q>>2]=r;J[a+24>>2]=d+1}c=J[J[a+32>>2]+(g<<2)>>2]+((f&63)<<3)|0;J[c+4>>2]=i;J[c>>2]=j;c=J[a+20>>2];J[a+20>>2]= -c+1;c=c^-1}g=c;d=J[a+44>>2];f=J[a+40>>2];h=f>>>10|0;if(d>>>0<=h>>>0){c=J[a+48>>2];f:{if(c>>>0>h>>>0){e=J[a+52>>2];break f}c=c+J[a+56>>2]|0;e=rc(c>>>0>1073741823?-1:c<<2);i=J[a+52>>2];if(i){tc(e,i,d<<2);qc(i);f=J[a+40>>2];d=J[a+44>>2];c=J[a+48>>2]+J[a+56>>2]|0}J[a+48>>2]=c;J[a+52>>2]=e}q=(h<<2)+e|0,r=rc(12288),J[q>>2]=r;J[a+44>>2]=d+1}c=J[J[a+52>>2]+(h<<2)>>2]+P(f&1023,12)|0;J[c+8>>2]=g;J[c+4>>2]=n;J[c>>2]=l;J[a+40>>2]=J[a+40>>2]+1;if(J[a+104>>2]>(l|0))J[a+104>>2]=l;c=(j+l|0)-1|0;if((c|0)>J[a+112>> -2])J[a+112>>2]=c;b=b+8|0;m=m-1|0;if(m)continue;break}e=J[a- -64>>2];c=J[a+60>>2];g=c>>>8|0;if(e>>>0<=g>>>0){b=J[a+68>>2];g:{if(b>>>0>g>>>0){b=J[a+72>>2];break g}d=b+J[a+76>>2]|0;b=rc(d>>>0>1073741823?-1:d<<2);f=J[a+72>>2];if(f){tc(b,f,e<<2);qc(f);c=K[a+60|0];e=J[a+64>>2];d=J[a+68>>2]+J[a+76>>2]|0}J[a+68>>2]=d;J[a+72>>2]=b}q=(g<<2)+b|0,r=rc(3072),J[q>>2]=r;J[a+64>>2]=e+1}b=J[J[a+72>>2]+(g<<2)>>2]+P(c&255,12)|0;J[b+8>>2]=p;J[b+4>>2]=o;J[b>>2]=k;J[a+60>>2]=J[a+60>>2]+1}function adb(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;k=bc-16|0;bc=k;g=J[a+492>>2];h=J[b+8>>2];gc[J[b+28>>2]](b);d=J[b>>2];a:{if(h>>>0<=d>>>0){J[b+12>>2]=3;break a}l=K[d|0];if(!((l|0)!=91&l-48>>>0>9)){e=J[b+16>>2];b:{if((l|0)==91){J[b>>2]=d+1;c=256;break b}c=gc[J[b+36>>2]](b)|0}gc[J[b+28>>2]](b);if(M[b>>2]>=h>>>0)break a;i=b+100|0;n=c;j=(c|0)>=256?256:c;c=J[a+384>>2];c:{if(!c)break c;if(c)gc[J[e+8>>2]](e,c);J[a+384>>2]=0;c=J[a+388>>2];if(c)gc[J[e+8>>2]](e,c);J[a+388>>2]=0;c=J[b+148>>2];if(!c)break c; -gc[c|0](i)}J[a+372>>2]=j;J[b+96>>2]=j;c=k+12|0;o=a,p=Sc(e,2,0,j,0,c),J[o+384>>2]=p;d:{f=J[k+12>>2];if(f)break d;o=a,p=Sc(e,4,0,j,0,c),J[o+388>>2]=p;f=J[k+12>>2];if(f)break d;f=gc[J[J[g>>2]>>2]](i,j,e)|0;J[k+12>>2]=f;if(f)break d;e:{if((n|0)<=0)break e;g=(j|0)<=1?1:j;m=g&3;e=0;c=0;if(g>>>0>=4){g=g&2147483644;f=0;while(1){gc[J[b+144>>2]](i,c,241950,8)|0;gc[J[b+144>>2]](i,c|1,241950,8)|0;gc[J[b+144>>2]](i,c|2,241950,8)|0;gc[J[b+144>>2]](i,c|3,241950,8)|0;c=c+4|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}if(!m)break e; -while(1){gc[J[b+144>>2]](i,c,241950,8)|0;c=c+1|0;e=e+1|0;if((m|0)!=(e|0))continue;break}}gc[J[b+28>>2]](b);c=J[b>>2];f:{if(h>>>0<=c>>>0)break f;f=(l|0)==91;g=0;while(1){g:{h:{i:{e=K[c|0];switch(e-93|0){case 0:break h;case 7:break i;default:break g}}d=c+3|0;if(K[c+1|0]!=101|h>>>0<=d>>>0|K[c+2|0]!=102)break g;switch(K[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break f;default:break g}}d=c+1|0;break f}j:{k:{if(!(!f& -e-48>>>0>9)){if(f){d=c;e=g;break k}e=gc[J[b+36>>2]](b)|0;gc[J[b+28>>2]](b);d=J[b>>2];if((d|0)!=(c|0))break k;J[b+12>>2]=2;break a}gc[J[b+32>>2]](b);d=c;if(J[b+12>>2])break a;break j}if(!(K[d|0]!=47|d+2>>>0>=h>>>0|(g|0)>=(n|0))){d=d+1|0;J[b>>2]=d;gc[J[b+32>>2]](b);c=J[b>>2];if(J[b+12>>2]|c>>>0>=h>>>0)break a;if((g|0)<(j|0)){m=c-d|0;c=gc[J[b+144>>2]](i,e,d,m+1|0)|0;J[b+12>>2]=c;if(c)break a;H[m+J[J[b+124>>2]+(e<<2)>>2]|0]=0}g=g+1|0;break j}if((l|0)!=91)break j;J[b+12>>2]=2;break a}gc[J[b+28>>2]](b); -c=J[b>>2];if(h>>>0>c>>>0)continue;break}}J[a+368>>2]=1;J[b>>2]=d;break a}J[b+12>>2]=f;break a}l:{if(d+17>>>0>=h>>>0)break l;if(kd(d,254191,16))break l;J[a+368>>2]=2;break a}m:{if(d+15>>>0>=h>>>0)break m;if(kd(d,254228,14))break m;J[a+368>>2]=4;break a}n:{if(d+18>>>0>=h>>>0)break n;if(kd(d,254262,17))break n;J[a+368>>2]=3;break a}J[b+12>>2]=162}bc=k+16|0}function QOa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0, -D=0,E=0;B=bc-160|0;bc=B;d=a;while(1){a:{e=d;d=J[(j<<2)+b>>2]+c|0;k=K[d+12|0];r=K[d|0];h=k+r|0;s=K[d+11|0];t=K[d+1|0];g=s+t|0;l=K[d+10|0];m=K[d+2|0];o=l+m|0;u=K[d+9|0];f=K[d+3|0];p=u+f|0;w=K[d+8|0];x=K[d+4|0];q=w+x|0;y=K[d+7|0];z=K[d+5|0];i=y+z|0;d=K[d+6|0];J[e>>2]=((((((h+g|0)+o|0)+p|0)+q|0)+i|0)+d|0)-1664;d=d<<1;p=p-d|0;q=q-d|0;v=h-d|0;o=o-d|0;n=g-d|0;i=i-d|0;d=(P(p-q|0,-3570)+P(v-o|0,9465)|0)+P(n-i|0,-2592)|0;h=(P(p+q|0,-7678)+P(o+v|0,793)|0)+P(i+n|0,3989)|0;J[e+24>>2]=(d-h|0)+4096>>13;J[e+16>> +0>=3)while(1){e=f-2|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;e=f-4|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;e=f-6|0;i=L[e>>1];d=i-c|0;I[e>>1]=d>>>0<=i>>>0?d:0;f=f-8|0;e=L[f>>1];d=e-c|0;I[f>>1]=d>>>0<=e>>>0?d:0;g=g-4|0;if(g)continue;break}c=J[h+76>>2];g=J[h+68>>2];break g;case 0:break f;default:break h}g=J[h+68>>2];c=J[h+76>>2];I[(g+(c<<1)|0)-2>>1]=0}Ac(g,0,(c<<1)-2|0);J[h+5808>>2]=0}J[h+132>>2]=l;c=P(l,12);J[h+144>>2]=L[c+764356>>1];J[h+140>>2]=L[c+764352>>1];J[h+128>>2]=L[c+764354>>1];J[h+ +124>>2]=L[c+764358>>1]}J[h+136>>2]=0;g=0}if(!g)break a;b=J[a+628>>2];a=J[a>>2];J[j+4>>2]=J[k+88>>2];J[j>>2]=a;Uc(b,98004,72488,j);b=0;break a}b=kc[J[k+132>>2]](a,b,c)|0}fc=j+16|0;return b|0}function Z0a(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;m=J[a+4>>2];c=J[m+52>>2];i=c?c:64;e=J[a+24>>2];n=J[a+12>>2];j=J[a+8>>2];a:{b:{f=J[m+56>>2];d=J[a+16>>2];h=J[a+20>>2]-d|0;if(!(!f|(h|0)<=0)){k=f?-1:0;break b}c=0;break a}c=1}c:while(1){d:{e:{if(!c){c=n-j>>1;h=(c|0)>(h|0)?h:c;f:{if((h| +0)<=0)break f;while(1){f=L[j>>1];if(f>>>0>12287)break f;g:{if(f>>>0<=32){i=(f|0)!=32?64:i;c=f;break g}c=f-i|0;if(c- -64>>>0>127)break f;i=f&65408|64;c=c-112|0}H[d|0]=c;J[e>>2]=l;d=d+1|0;e=e+4|0;l=l+1|0;j=j+2|0;c=(h|0)>1;h=h-1|0;if(c)continue;break}}h=J[a+20>>2]-d|0;c=0;break e}if(j>>>0>>0){g=L[j>>1];c=(g&64512)==56320;f=c?(g+(f<<10)|0)-56613888|0:f;l=c+l|0;j=(c<<1)+j|0;c=1;break e}f=0-f|0;break d}while(1){h:{i:{j:{k:{if(!c){if(j>>>0>=n>>>0)break d;if((h|0)<=0)break k;k=l;c=j;while(1){l:{l=k+1| +0;j=c+2|0;f=L[c>>1];if(f>>>0>32)break l;H[d|0]=f;J[e>>2]=k;i=(f|0)!=32?64:i;e=e+4|0;d=d+1|0;if(j>>>0>=n>>>0)break d;g=(h|0)<2;h=h-1|0;k=l;c=j;if(!g)continue;break k}break}if((f&64512)!=55296)break h;c=1;continue c}c=f-i|0;g=f&-128|64;i=g;m:{if(f-55204>>>0<=4294924443)break m;i=12400;if(f>>>0<12448)break m;i=30481;if(f-19968>>>0<20902)break m;i=49617;if(f>>>0>44031)break m;i=g}if(c- -64>>>0<=127){H[d|0]=c-112;J[e>>2]=k;h=h-1|0;e=e+4|0;d=d+1|0;if((f|0)<12288)break j;break i}if(!(h>>>0<2|c+10513>>>0> +21025)){n:{o:{p:{q:{if((c|0)>=0){c=c+-64|0;g=(c<<16>>16)/243|0;c=c-P(g,243)<<16>>16;g=g+208&65535;break q}c=-64-c|0;g=(c>>>0)/243|0;o=c-P(g,243)|0;c=243-o|0;g=(o?g^-1:0-g|0)+80|0;if(!o)break p}H[d|0]=g;if((c|0)<20)break o;c=c+13|0;break n}H[d|0]=g;c=0}c=K[c+755600|0]}H[d+1|0]=c;J[e+4>>2]=k;J[e>>2]=k;h=h-2|0;e=e+8|0;d=d+2|0;break i}c=V2(c);o=c>>24;g=c>>>0>=67108864?4:o;if((g|0)<=(h|0)){r:switch(g-2|0){case 2:H[d|0]=o;J[e>>2]=k;e=e+4|0;d=d+1|0;case 1:H[d|0]=c>>>16;J[e>>2]=k;e=e+4|0;d=d+1|0;case 0:H[d| +0]=c>>>8;J[e>>2]=k;H[d+1|0]=c;J[e+4>>2]=k;e=e+8|0;d=d+2|0;break;default:break r}h=h-g|0;break i}l=m+76|0;s:{t:{u:{v:{n=g-h|0;switch(n-1|0){case 0:break t;case 1:break u;case 2:break v;default:break s}}H[m+76|0]=c>>>16;l=m+77|0}H[l|0]=c>>>8;l=l+1|0}H[l|0]=c}H[m+63|0]=n;c=c>>(n<<3);w:switch(h-1|0){case 2:H[d|0]=c>>>16;J[e>>2]=k;e=e+4|0;d=d+1|0;case 1:H[d|0]=c>>>8;J[e>>2]=k;e=e+4|0;d=d+1|0;case 0:H[d|0]=c;J[e>>2]=k;e=e+4|0;d=d+1|0;break;default:break w}J[b>>2]=15;break d}J[b>>2]=15;break d}c=0;continue c}c= +0;continue}c=1;continue}}break}J[m+52>>2]=i;J[m+56>>2]=0-f&f>>31;J[a+24>>2]=e;J[a+16>>2]=d;J[a+8>>2]=j}function UHa(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;c=fc-32|0;fc=c;a:{b:{c:{d:{e:{f:{g:{h:{d=J[a+60>>2];j=a- -64|0;i:{if((d|0)!=(j|0))while(1){j:{if(H[d+27|0]>=0){J[c+24>>2]=J[d+24>>2];f=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=f;break j}Ve(c+16|0,J[d+16>>2],J[d+20>>2])}f=J[d+28>>2];J[c+28>>2]=f;g=0;h=bf(b);k=K[c+27|0];i=k<<24>>24;k:{if((h|0)!=(((i|0)<0?J[c+20>>2]:k)| +0)){f=e;break k}g=1;l:switch(h+1|0){case 0:J[699344]=0;$(2970,c+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;ea(0)|0;Bc();B();case 1:break k;default:break l}g=qd((i|0)<0?J[c+16>>2]:c+16|0,b,h);f=g?e:J[c+28>>2];g=!g}if(H[c+27|0]<0)uc(J[c+16>>2]);if(g)break i;g=J[d+4>>2];m:{if(g)while(1){d=g;g=J[d>>2];if(g)continue;break m}while(1){e=d;d=J[d+8>>2];if((e|0)!=J[d>>2])continue;break}}e=f;if((d|0)!=(j|0))continue;break}e=vc(36);d=J[a+24>>2];f=bf(b);if(f>>>0>=1073741808){J[699344]=0;$(2959,c+4|0);a= +J[699344];J[699344]=0;if((a|0)==1)break b;break a}n:{if(f>>>0<=1){H[c+15|0]=f;g=c+4|0;break n}g=f|3;if(g>>>0>=1073741823){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}J[699344]=0;h=g+1|0;g=_(4,h<<2)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;J[c+4>>2]=g;J[c+8>>2]=f;J[c+12>>2]=h|-2147483648}f=f<<2;l=xc(g,b,f)+f|0,m=0,J[l>>2]=m;J[699344]=0;f=c+16|0;ca(4961,f|0,d|0,c+4|0);d=J[699344];J[699344]=0;if((d|0)==1)break h;J[699344]=0;f=aa(4980,e|0,f|0)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break g;if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+15|0]<0)uc(J[c+4>>2]);e=bf(b);if(e>>>0>=1073741808)break d;o:{if(e>>>0<=1){H[c+27|0]=e;g=c+16|0;break o}d=e|3;if(d>>>0>=1073741823)break c;d=d+1|0;g=vc(d<<2);J[c+24>>2]=d|-2147483648;J[c+16>>2]=g;J[c+20>>2]=e}d=b;b=e<<2;l=xc(g,d,b)+b|0,m=0,J[l>>2]=m;J[c+28>>2]=f;J[699344]=0;b=Ye(a+60|0,c+4|0,c+16|0);e=J[699344];J[699344]=0;if((e|0)==1)break e;if(!J[b>>2]){J[699344]=0;d=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break e;e=J[c+20>>2];J[d+ +16>>2]=J[c+16>>2];J[d+20>>2]=e;J[d+24>>2]=J[c+24>>2];J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[d+28>>2]=J[c+28>>2];J[d+8>>2]=J[c+4>>2];J[d>>2]=0;J[d+4>>2]=0;J[b>>2]=d;e=J[J[a+60>>2]>>2];if(e){J[a+60>>2]=e;d=J[b>>2]}Oc(J[a+64>>2],d);J[a+68>>2]=J[a+68>>2]+1}if(H[c+27|0]>=0)break i;uc(J[c+16>>2])}fc=c+32|0;return f|0}d=Z()|0;break f}d=Z()|0;if(H[c+27|0]>=0)break f;uc(J[c+16>>2])}if(H[c+15|0]<0)uc(J[c+4>>2]);uc(e);ba(d|0);B()}a=Z()|0;if(H[c+27|0]<0)uc(J[c+16>>2]);ba(a|0);B()}_d(c+16|0);B()}Pd();B()}a= +Z()|0;uc(e);ba(a|0);B()}B()}function Zj(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;k=J[b+4>>2];if((k|0)>2])J[a+108>>2]=k;if(J[a+116>>2]<(k|0))J[a+116>>2]=k;p=J[a+40>>2];c=J[b+28>>2];b=J[b+20>>2];o=c-b>>3;m=o;while(1){l=I[b+8>>1];h=J[b+12>>2];c=-1;n=I[b+10>>1];d=n>>31;j=(d^n)-d|0;if(j>>>0<=4095){f=J[a+4>>2];c=J[a>>2];g=c>>>12|0;if(f>>>0<=g>>>0){d=J[a+8>>2];a:{if(d>>>0>g>>>0){e=J[a+12>>2];break a}d=d+J[a+16>>2]|0;e=vc(d>>>0>1073741823?-1:d<<2);i=J[a+ +12>>2];if(i){xc(e,i,f<<2);uc(i);c=J[a>>2];f=J[a+4>>2];d=J[a+8>>2]+J[a+16>>2]|0}J[a+8>>2]=d;J[a+12>>2]=e}q=(g<<2)+e|0,r=vc(4096),J[q>>2]=r;f=f+1|0;J[a+4>>2]=f}d=4096-(c&4095)|0;b:{if(d>>>0>=j>>>0)break b;g=J[a+12>>2];c=c+d|0;J[a>>2]=c;e=c>>>12|0;if(e>>>0>>0)break b;d=J[a+8>>2];c:{if(d>>>0>e>>>0){d=g;break c}c=d+J[a+16>>2]|0;d=vc(c>>>0>1073741823?-1:c<<2);c=xc(d,g,f<<2);uc(g);J[a+12>>2]=c;J[a+8>>2]=J[a+8>>2]+J[a+16>>2];c=J[a>>2];f=J[a+4>>2]}q=(e<<2)+d|0,r=vc(4096),J[q>>2]=r;J[a+4>>2]=f+1}J[a>>2]= +c+j}d:{if((c|0)>=0){xc(J[J[a+12>>2]+(c>>>10&4194300)>>2]+(c&4095)|0,h,j);break d}i=xc(vc(j),h,j);d=J[a+24>>2];f=J[a+20>>2];g=f>>>6|0;if(d>>>0<=g>>>0){c=J[a+28>>2];e:{if(c>>>0>g>>>0){e=J[a+32>>2];break e}c=c+J[a+36>>2]|0;e=vc(c>>>0>1073741823?-1:c<<2);h=J[a+32>>2];if(h){xc(e,h,d<<2);uc(h);f=J[a+20>>2];d=J[a+24>>2];c=J[a+28>>2]+J[a+36>>2]|0}J[a+28>>2]=c;J[a+32>>2]=e}q=(g<<2)+e|0,r=vc(512),J[q>>2]=r;J[a+24>>2]=d+1}c=J[J[a+32>>2]+(g<<2)>>2]+((f&63)<<3)|0;J[c+4>>2]=i;J[c>>2]=j;c=J[a+20>>2];J[a+20>>2]= +c+1;c=c^-1}g=c;d=J[a+44>>2];f=J[a+40>>2];h=f>>>10|0;if(d>>>0<=h>>>0){c=J[a+48>>2];f:{if(c>>>0>h>>>0){e=J[a+52>>2];break f}c=c+J[a+56>>2]|0;e=vc(c>>>0>1073741823?-1:c<<2);i=J[a+52>>2];if(i){xc(e,i,d<<2);uc(i);f=J[a+40>>2];d=J[a+44>>2];c=J[a+48>>2]+J[a+56>>2]|0}J[a+48>>2]=c;J[a+52>>2]=e}q=(h<<2)+e|0,r=vc(12288),J[q>>2]=r;J[a+44>>2]=d+1}c=J[J[a+52>>2]+(h<<2)>>2]+P(f&1023,12)|0;J[c+8>>2]=g;J[c+4>>2]=n;J[c>>2]=l;J[a+40>>2]=J[a+40>>2]+1;if(J[a+104>>2]>(l|0))J[a+104>>2]=l;c=(j+l|0)-1|0;if((c|0)>J[a+112>> +2])J[a+112>>2]=c;b=b+8|0;m=m-1|0;if(m)continue;break}e=J[a- -64>>2];c=J[a+60>>2];g=c>>>8|0;if(e>>>0<=g>>>0){b=J[a+68>>2];g:{if(b>>>0>g>>>0){b=J[a+72>>2];break g}d=b+J[a+76>>2]|0;b=vc(d>>>0>1073741823?-1:d<<2);f=J[a+72>>2];if(f){xc(b,f,e<<2);uc(f);c=K[a+60|0];e=J[a+64>>2];d=J[a+68>>2]+J[a+76>>2]|0}J[a+68>>2]=d;J[a+72>>2]=b}q=(g<<2)+b|0,r=vc(3072),J[q>>2]=r;J[a+64>>2]=e+1}b=J[J[a+72>>2]+(g<<2)>>2]+P(c&255,12)|0;J[b+8>>2]=p;J[b+4>>2]=o;J[b>>2]=k;J[a+60>>2]=J[a+60>>2]+1}function Shb(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;k=fc-16|0;fc=k;g=J[a+492>>2];h=J[b+8>>2];kc[J[b+28>>2]](b);d=J[b>>2];a:{if(h>>>0<=d>>>0){J[b+12>>2]=3;break a}l=K[d|0];if(!((l|0)!=91&l-48>>>0>9)){e=J[b+16>>2];b:{if((l|0)==91){J[b>>2]=d+1;c=256;break b}c=kc[J[b+36>>2]](b)|0}kc[J[b+28>>2]](b);if(M[b>>2]>=h>>>0)break a;i=b+100|0;n=c;j=(c|0)>=256?256:c;c=J[a+384>>2];c:{if(!c)break c;if(c)kc[J[e+8>>2]](e,c);J[a+384>>2]=0;c=J[a+388>>2];if(c)kc[J[e+8>>2]](e,c);J[a+388>>2]=0;c=J[b+148>>2];if(!c)break c; +kc[c|0](i)}J[a+372>>2]=j;J[b+96>>2]=j;c=k+12|0;o=a,p=_c(e,2,0,j,0,c),J[o+384>>2]=p;d:{f=J[k+12>>2];if(f)break d;o=a,p=_c(e,4,0,j,0,c),J[o+388>>2]=p;f=J[k+12>>2];if(f)break d;f=kc[J[J[g>>2]>>2]](i,j,e)|0;J[k+12>>2]=f;if(f)break d;e:{if((n|0)<=0)break e;g=(j|0)<=1?1:j;m=g&3;e=0;c=0;if(g>>>0>=4){g=g&2147483644;f=0;while(1){kc[J[b+144>>2]](i,c,241966,8)|0;kc[J[b+144>>2]](i,c|1,241966,8)|0;kc[J[b+144>>2]](i,c|2,241966,8)|0;kc[J[b+144>>2]](i,c|3,241966,8)|0;c=c+4|0;f=f+4|0;if((g|0)!=(f|0))continue;break}}if(!m)break e; +while(1){kc[J[b+144>>2]](i,c,241966,8)|0;c=c+1|0;e=e+1|0;if((m|0)!=(e|0))continue;break}}kc[J[b+28>>2]](b);c=J[b>>2];f:{if(h>>>0<=c>>>0)break f;f=(l|0)==91;g=0;while(1){g:{h:{i:{e=K[c|0];switch(e-93|0){case 0:break h;case 7:break i;default:break g}}d=c+3|0;if(K[c+1|0]!=101|h>>>0<=d>>>0|K[c+2|0]!=102)break g;switch(K[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break f;default:break g}}d=c+1|0;break f}j:{k:{if(!(!f& +e-48>>>0>9)){if(f){d=c;e=g;break k}e=kc[J[b+36>>2]](b)|0;kc[J[b+28>>2]](b);d=J[b>>2];if((d|0)!=(c|0))break k;J[b+12>>2]=2;break a}kc[J[b+32>>2]](b);d=c;if(J[b+12>>2])break a;break j}if(!(K[d|0]!=47|d+2>>>0>=h>>>0|(g|0)>=(n|0))){d=d+1|0;J[b>>2]=d;kc[J[b+32>>2]](b);c=J[b>>2];if(J[b+12>>2]|c>>>0>=h>>>0)break a;if((g|0)<(j|0)){m=c-d|0;c=kc[J[b+144>>2]](i,e,d,m+1|0)|0;J[b+12>>2]=c;if(c)break a;H[m+J[J[b+124>>2]+(e<<2)>>2]|0]=0}g=g+1|0;break j}if((l|0)!=91)break j;J[b+12>>2]=2;break a}kc[J[b+28>>2]](b); +c=J[b>>2];if(h>>>0>c>>>0)continue;break}}J[a+368>>2]=1;J[b>>2]=d;break a}J[b+12>>2]=f;break a}l:{if(d+17>>>0>=h>>>0)break l;if(ud(d,254207,16))break l;J[a+368>>2]=2;break a}m:{if(d+15>>>0>=h>>>0)break m;if(ud(d,254244,14))break m;J[a+368>>2]=4;break a}n:{if(d+18>>>0>=h>>>0)break n;if(ud(d,254278,17))break n;J[a+368>>2]=3;break a}J[b+12>>2]=162}fc=k+16|0}function OTa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0, +D=0,E=0;B=fc-160|0;fc=B;d=a;while(1){a:{e=d;d=J[(j<<2)+b>>2]+c|0;k=K[d+12|0];r=K[d|0];h=k+r|0;s=K[d+11|0];t=K[d+1|0];g=s+t|0;l=K[d+10|0];m=K[d+2|0];o=l+m|0;u=K[d+9|0];f=K[d+3|0];p=u+f|0;w=K[d+8|0];x=K[d+4|0];q=w+x|0;y=K[d+7|0];z=K[d+5|0];i=y+z|0;d=K[d+6|0];J[e>>2]=((((((h+g|0)+o|0)+p|0)+q|0)+i|0)+d|0)-1664;d=d<<1;p=p-d|0;q=q-d|0;v=h-d|0;o=o-d|0;n=g-d|0;i=i-d|0;d=(P(p-q|0,-3570)+P(v-o|0,9465)|0)+P(n-i|0,-2592)|0;h=(P(p+q|0,-7678)+P(o+v|0,793)|0)+P(i+n|0,3989)|0;J[e+24>>2]=(d-h|0)+4096>>13;J[e+16>> 2]=(d+h|0)+4096>>13;d=f-u|0;h=m-l|0;m=P(d+h|0,-5384);g=z-y|0;l=x-w|0;k=r-k|0;r=P(g+l|0,2773)+P(k+d|0,7682)|0;u=m+P(d,18068)|0;f=d;d=t-s|0;s=P(f+d|0,-9534);J[e+28>>2]=(r+((u+s|0)+P(g,-14273)|0)|0)+4096>>13;f=m;m=P(h+k|0,9534);f=(f+(m+P(h,-12879)|0)|0)+P(g,18515)|0;h=P(l-g|0,7682)+P(d+h|0,-2773)|0;J[e+20>>2]=(f+h|0)+4096>>13;f=P(d,6859);d=P(d+k|0,10832)+4096|0;J[e+12>>2]=h+((s+(f+d|0)|0)+P(l,-19183)|0)>>13;J[e+4>>2]=r+((m+(d+P(k,-16549)|0)|0)+P(l,2611)|0)>>13;J[e+8>>2]=(((((P(n,8672)+P(v,11249)|0)+ P(o,4108)|0)+P(p,-1396)|0)+P(q,-6581)|0)+P(i,-10258)|0)+4096>>13;g=j-7|0;j=j+1|0;d=B;h=7;b:switch(g|0){case 0:continue;case 5:break a;default:break b}d=e+32|0;continue}break}while(1){c=J[d+32>>2];e=J[a+96>>2];m=c+e|0;r=J[a+192>>2];b=r<<1;l=m-b|0;j=J[d>>2];g=J[a+128>>2];s=j+g|0;k=s-b|0;i=J[d+128>>2];t=J[a>>2];u=i+t|0;p=u-b|0;n=J[d+64>>2];f=J[a+64>>2];w=n+f|0;q=w-b|0;x=J[d+96>>2];y=J[a+32>>2];z=x+y|0;v=z-b|0;A=J[a+224>>2];C=J[a+160>>2];D=A+C|0;o=D-b|0;b=(P(l-k|0,-2704)+P(p-q|0,7169)|0)+P(v-o|0,-1963)| 0;E=(P(k+l|0,-5816)+P(p+q|0,601)|0)+P(o+v|0,3021)|0;J[a+192>>2]=(b-E|0)- -8192>>14;J[a+128>>2]=(b+E|0)- -8192>>14;b=e-c|0;c=f-n|0;n=P(b+c|0,-4078);e=C-A|0;j=g-j|0;g=t-i|0;i=P(e+j|0,2100)+P(g+b|0,5819)|0;A=n+P(b,13685)|0;f=b;b=y-x|0;t=P(f+b|0,-7221);J[a+224>>2]=(i+((A+t|0)+P(e,-10811)|0)|0)- -8192>>14;f=P(c+g|0,7221);n=(n+(f+P(c,-9754)|0)|0)+P(e,14023)|0;c=P(j-e|0,5819)+P(b+c|0,-2100)|0;J[a+160>>2]=(n+c|0)- -8192>>14;e=P(b,5195);b=P(b+g|0,8204)- -8192|0;J[a+96>>2]=c+((t+(e+b|0)|0)+P(j,-14529)|0)>> -14;J[a+32>>2]=i+((f+(b+P(g,-12534)|0)|0)+P(j,1978)|0)>>14;J[a+64>>2]=(((((P(v,6568)+P(p,8520)|0)+P(q,3112)|0)+P(l,-1058)|0)+P(k,-4985)|0)+P(o,-7770)|0)- -8192>>14;J[a>>2]=P(r+((s+(m+(w+(u+z|0)|0)|0)|0)+D|0)|0,6205)- -8192>>14;b=h;h=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}bc=B+160|0}function gGa(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;d=bc-32|0;bc=d;a:{if(H[c+11|0]>=0){J[d+24>>2]=J[c+8>>2];e=J[c+4>>2];J[d+16>>2]=J[c>>2];J[d+20>>2]=e;break a}Re(d+16|0,J[c>>2],J[c+4>>2])}c= -K[b+15|0];e=c<<24>>24<0;b:{c:{d:{e:{f:{g=e?J[b+8>>2]:c;if(g){h=b+4|0;f=K[d+27|0];c=f<<24>>24<0;f=c?J[d+20>>2]:f;if((g|0)>(f|0))break f;c=c?J[d+16>>2]:d+16|0;i=c+(f<<2)|0;j=e?J[b+4>>2]:h;k=J[j>>2];e=c;while(1){f=(f-g|0)+1|0;if(!f)break f;e=og(e,k,f);if(!e)break f;if(gd(e,j,g)){e=e+4|0;f=i-e>>2;if((g|0)<=(f|0))continue;break f}break}if((e|0)==(i|0)|(c|0)!=(e|0))break f}b=J[d+20>>2];J[a>>2]=J[d+16>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+24>>2];J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;break e}e=K[d+27|0];c=e<<24>> -24<0;e=c?J[d+20>>2]:e;if(!e){if(H[b+15|0]>=0){b=J[h+4>>2];J[a>>2]=J[h>>2];J[a+4>>2]=b;J[a+8>>2]=J[h+8>>2];break e}c=J[b+8>>2];b=J[b+4>>2];J[695492]=0;ca(15,a|0,b|0,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;break c}g=c?J[d+16>>2]:d+16|0;if(J[g>>2]==47){c=K[b+15|0];f=c<<24>>24;i=(f|0)<0?J[b+8>>2]:c;c=i+e|0;if(c>>>0>=1073741808){J[695492]=0;_(2793,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break d}g:{if(c>>>0<=1){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[a+11|0]=c;break g}b=c|3;if(b>>>0>=1073741823){J[695492]= -0;ka(209);a=J[695492];J[695492]=0;if((a|0)==1)break c;break d}J[695492]=0;j=b+1|0;b=$(4,j<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break c;J[a+4>>2]=c;J[a>>2]=b;J[a+8>>2]=j|-2147483648;a=b}b=a;a=i<<2;b=Zc(b,(f|0)<0?J[h>>2]:h,a)+a|0;a=e<<2;l=Zc(b,g,a)+a|0,m=0,J[l>>2]=m;break e}c=K[b+15|0];f=c<<24>>24;h:{i=(f|0)<0?J[b+8>>2]:c;c=i+1|0;if(c>>>0>=1073741808){J[695492]=0;_(2793,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d;break h}i:{if(c>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=c;b=d;break i}b= -c|3;if(b>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break d;break h}J[695492]=0;j=b+1|0;b=$(4,j<<2)|0;k=J[695492];J[695492]=0;if((k|0)==1)break h;J[d+4>>2]=c;J[d>>2]=b;J[d+8>>2]=j|-2147483648}c=b;b=i<<2;b=Zc(c,(f|0)<0?J[h>>2]:h,b)+b|0;J[b>>2]=47;J[b+4>>2]=0;J[695492]=0;b=ga(2794,d|0,g|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[d+11|0]>=0)break e;qc(J[d>>2]);break e}c= -Z()|0;if(H[d+11|0]>=0)break b;qc(J[d>>2]);break b}c=Z()|0;break b}if(H[d+27|0]<0)qc(J[d+16>>2]);bc=d+32|0;return}B()}c=Z()|0}if(H[d+27|0]<0)qc(J[d+16>>2]);ba(c|0);B()}function cpa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-48|0;bc=c;J[c+28>>2]=0;J[c+32>>2]=J[682146];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{d=J[b+8>>2];l:{if(!d|!J[d+8>>2])break l;J[695492]=0;d=c+36|0;ca(5231,d|0,b|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break e;e=J[c+36>>2];if(!e){sc(d);break l}d=J[e+8>>2];e=c+36|0;sc(e);if(!d)break l;J[695492]= -0;da(6068,e|0,b+8|0);b=J[695492];J[695492]=0;m:{n:{if((b|0)!=1){b=J[c+36>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;d=xz(2426796,b,5);e=J[695492];J[695492]=0;if((e|0)==1)break d;if(!d)break m;J[695492]=0;d=aa(4989,c+20|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;J[695492]=0;J[a>>2]=0;J[a+4>>2]=J[682146];a=J[695492];J[695492]=0;if((a|0)!=1)break k;b=Z()|0;sc(d);break c}b=Z()|0;break b}b=Z()|0;break c}J[695492]=0;d=b+5|0;e=xz(2426802,d,12);f=J[695492];J[695492]=0;if((f|0)==1)break d;o:{if(!e){d= -b+17|0;break o}J[695492]=0;e=xz(2426815,d,3);f=J[695492];J[695492]=0;if((f|0)==1)break d;if(!e){d=b+8|0;break o}e=Qc(d);p:{if(e>>>0>=5){if(K[d|0]!=47)break o;if(K[b+6|0]!=47|(H[b+7|0]|32)-97>>>0>=26)break p;e=K[b+8|0];if((e|0)!=124&(e|0)!=58|K[b+9|0]!=47)break p;d=b+7|0;break o}if(K[d|0]!=47|e>>>0<3)break o}d=K[b+6|0]==47?d:b+6|0}J[695492]=0;d=aa(4989,c+12|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[c+20>>2]=0;J[c+24>>2]=J[682146];J[695492]=0;J[c+44>>2]=0;aa(4993,c+28|0,c+44|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break i;b=J[c+44>>2];J[c+44>>2]=0;q:{if(!b)break q;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break q;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[c+28>>2];J[c+32>>2]=J[(b?b+12|0:2728584)>>2];sc(c+20|0);sc(d);sc(c+36|0)}J[a>>2]=0;J[a+4>>2]=J[682146];b=J[c+28>>2];if(!b)break h;d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+36|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break g;b=Z()|0;sc(a);break b}sc(d);sc(c+ -36|0);break f}b=Z()|0;break c}b=Z()|0;vc(c+44|0);sc(c+20|0);sc(d);break c}J[c+36>>2]=0}J[695492]=0;aa(4993,a|0,c+36|0)|0;b=J[695492];J[695492]=0;r:{if((b|0)!=1){b=J[c+36>>2];J[c+36>>2]=0;if(!b)break r;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break r;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break r}break a}b=Z()|0;vc(c+36|0);sc(a);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2]}sc(c+28|0);bc=c+48|0;return}b=Z()|0;break b}b=Z()|0}sc(c+ -36|0)}sc(c+28|0);ba(b|0);B()}ea(0)|0;yc();B()}function zD(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;a:{b=!a;b:{if(b)break b;c:switch((b?-1:J[a+8>>2])-1|0){case 0:f=bc-16|0;bc=f;b=!a;d:{if(!(b|((b?-1:J[a+8>>2])|0)!=1)){xf(a,f+12|0,f+8|0,0);d=uh(J[f+12>>2],J[f+8>>2],8);if(!d)break d;if(!(!d|!a|(a|0)==(d|0))){J[d+20>>2]=J[a+20>>2];J[d+24>>2]=J[a+24>>2]}l=bd(16,4);if(!l)break d;H[f+7|0]=0;H[f+6|0]=255;while(1){b=f+6|0;J[l+(c<<2)>>2]=K[b+(c&1)|0]|(K[b+(c>>>2&1)|0]<< -16|K[b+(c>>>3|0)|0]<<24|K[b+(c>>>1&1)|0]<<8);c=c+1|0;if((c|0)!=16)continue;break}e=a?J[a+40>>2]:0;i=a?J[a+12>>2]:-1;h=d?J[d+40>>2]:0;b=d?J[d+12>>2]:-1;e:{if(J[f+8>>2]<=0)break e;c=J[f+12>>2];if((c|0)<=0)break e;a=(c+3|0)/4|0;a=(a|0)<=1?1:a;s=a&2147483646;g=a&1;a=0;m=(c|0)<5;while(1){n=(P(a,b)<<2)+h|0;p=e+(P(a,i)<<2)|0;c=0;j=0;if(!m)while(1){o=c<<2;q=o&24;k=p+(c>>>1&2147483644)|0;J[n+o>>2]=J[l+((J[k>>2]>>>(q^28)&15)<<2)>>2];J[n+(o|4)>>2]=J[l+((J[k>>2]>>>(q^24)&15)<<2)>>2];c=c+2|0;j=j+2|0;if((s|0)!= -(j|0))continue;break}if(g){k=c<<2;J[k+n>>2]=J[l+((J[p+(c>>>1&2147483644)>>2]>>>((k^-1)&28)&15)<<2)>>2]}a=a+1|0;if((a|0)>2])continue;break}}qc(l)}c=d}bc=f+16|0;return c;case 1:return D7(a,0);case 3:return C7(a,0);case 7:b=a?J[a+36>>2]:0;if(!b)return wf(0,a);if(b)return Hk(a,1);a=wf(0,a);b=!a;f:{if(b|((b?-1:J[a+8>>2])|0)!=8)break f;if(a?J[a+36>>2]:0)break f;b=bd(1,16);g:{if(!b)break g;J[b+8>>2]=256;J[b+4>>2]=8;h=bd(256,4);if(!h)break g;J[b>>2]=h;c=J[b+12>>2];h=J[b+8>>2];while(1){if((c|0)<(h| -0)){e=J[b>>2]+(c<<2)|0;i=(P(d,255)|0)/255|0;H[e+1|0]=i;H[e+2|0]=i;H[e|0]=i;c=c+1|0;J[b+12>>2]=c}d=d+1|0;if((d|0)!=256)continue;break}d=b}OM(a,d)}break a;case 15:a=E7(a);break a;case 31:break c;default:break b}g=bc-16|0;bc=g;b=!a;h:{if(b|((b?-1:J[a+8>>2])|0)!=32)break h;xf(a,g+12|0,g+8|0,0);i=a?J[a+40>>2]:0;b=a?J[a+12>>2]:-1;e=uh(J[g+12>>2],J[g+8>>2],8);if(!e)break h;if(!(!e|!a|(a|0)==(e|0))){J[e+20>>2]=J[a+20>>2];J[e+24>>2]=J[a+24>>2]}h=e?J[e+40>>2]:0;a=e?J[e+12>>2]:-1;j=J[g+8>>2];i:{if((j|0)<=0)break i; -d=J[g+12>>2];if((d|0)<=0)break i;k=a<<2;b=b<<2;while(1){a=0;if((d|0)>0){while(1){f=a+h^3;m=J[(a<<2)+i>>2];r=+Q(Q(Q((m>>>8&255)>>>0)*Q(.20000000298023224))+Q(Q(Q(m>>>24>>>0)*Q(.30000001192092896))+Q(Q((m>>>16&255)>>>0)*Q(.5))))+.5;j:{if(R(r)<2147483648){d=~~r;break j}d=-2147483648}H[f|0]=d;a=a+1|0;d=J[g+12>>2];if((a|0)<(d|0))continue;break}j=J[g+8>>2]}h=h+k|0;i=b+i|0;c=c+1|0;if((c|0)<(j|0))continue;break}}d=e}bc=g+16|0}return d}return a}function i7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];g=(g|0)<(k|0)?g:k;k=J[a+80>>2];m=J[b+80>>2];k=(k|0)>(m|0)?k:m;if((g|0)<(k|0))break a;m=J[a+84>>2];o=(h|0)<(m|0)?m:h;h=J[a+92>>2];m=J[b+ -92>>2];if((o|0)>(((h|0)<(m|0)?h:m)|0))break a;h=J[e+20>>2];g=(g-k|0)+3|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)qc(h);J[e+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+12>>2])break b;k=J[e+8>>2];if(k){qc(k);h=J[e+20>>2]}J[e+12>>2]=g;p=e,q=rc(g),J[p+8>>2]=q}J[e>>2]=2147483632;J[e+28>>2]=h;J[e+16>>2]=J[e+8>>2];I[h+2>>1]=0;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)qc(h);J[c+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>> -2])break c;k=J[c+8>>2];if(k){qc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=rc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)qc(h);J[d+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){qc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=rc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a; -h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>> -0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(yd(b,d))continue;break a}break}if((h|0)!=(g|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];n3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function g7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>> -2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];g=(g|0)<(k|0)?g:k;k=J[a+80>>2];m=J[b+80>>2];k=(k|0)>(m|0)?k:m;if((g|0)<(k|0))break a;m=J[a+84>>2];o=(h|0)<(m|0)?m:h;h=J[a+92>>2];m=J[b+92>>2];if((o|0)>(((h|0)<(m|0)?h:m)|0))break a;h=J[e+20>>2];g=(g-k|0)+3|0;b:{if(g>>>0<=M[e+24>>2])break b; -if(h)qc(h);J[e+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+12>>2])break b;k=J[e+8>>2];if(k){qc(k);h=J[e+20>>2]}J[e+12>>2]=g;p=e,q=rc(g),J[p+8>>2]=q}J[e>>2]=2147483632;J[e+28>>2]=h;J[e+16>>2]=J[e+8>>2];I[h+2>>1]=0;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)qc(h);J[c+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){qc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=rc(g),J[p+8>>2]=q}J[c>>2]=2147483632; -J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)qc(h);J[d+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){qc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=rc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l= -Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){h= -J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(yd(b,d))continue;break a}break}if((h|0)!=(g|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];l3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function N4(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{c:{d:{e:{f:{g:{h:{i:switch(J[a+92>>2]){case 0:h=J[a+64>>2];if((h|0)<(c|0)){d=J[a+36>>2];if(!J[a+84>>2]){J[a+84>>2]=d;J[a+80>>2]=d;d=d+32|0;J[a+36>>2]=d}if(M[a+32>>2]>d>>>0){g=J[a+4>>2];f=J[a+8>>2];e=J[a+80>> -2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=d;J[e+28>>2]=0;J[e+4>>2]=0;I[e+12>>1]=K[a+164|0]|((f|0)>(((g+h|0)-1&0-g)-h|0)?8:40);break f}break a}if((c|0)>=(h|0))break c;d=J[a+36>>2];if(!J[a+84>>2]){J[a+84>>2]=d;J[a+80>>2]=d;d=d+32|0;J[a+36>>2]=d}if(M[a+32>>2]>d>>>0){g=J[a+4>>2];f=J[a+8>>2];e=J[a+80>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=d;J[e+28>>2]=0;J[e+4>>2]=0;d=K[a+164|0];I[e+12>>1]=(f|0)>(h&g-1)?d:d|16;break h}break a;case 2:break g;case 1:break i;default:break c}d=J[a+64>>2];if((d|0)<=(c|0))break e; -f=J[a+36>>2];e=J[a+80>>2];h=J[e+8>>2];g=f-h>>2;if((g|0)<0){J[a+40>>2]=99;return 1}i=J[a+4>>2]-1&d;j=J[a+8>>2];j:{if((f|0)==(h|0)){d=f;break j}J[e+16>>2]=g;if((i|0)>=(j|0)){d=L[e+12>>1];I[e+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+8>>2]=d;J[f+16>>2]=0;J[e+28>>2]=f;I[a+76>>1]=L[a+76>>1]+1;e=f}g=J[a+32>>2];if(g>>>0<=d>>>0)break a;H[a+79|0]=0;k:{if(J[a+84>>2]){f=d;break k}J[a+84>>2]=d;J[a+80>>2]=d;f=d+32|0;J[a+36>>2]=f;e=d}if(f>>>0>=g>>>0)break a;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]= -f;J[e+28>>2]=0;J[e+4>>2]=0;d=K[a+164|0];I[e+12>>1]=(i|0)<(j|0)?d:d|16}if(!J[a+88>>2])J[a+88>>2]=e;H[a+78|0]=1;J[a+92>>2]=2;H[a+79|0]=0;d=J[a+64>>2];break d}d=J[a+64>>2];if((d|0)>=(c|0))break d;f=J[a+36>>2];e=J[a+80>>2];j=J[e+8>>2];h=f-j>>2;if((h|0)<0){J[a+40>>2]=99;return 1}g=J[a+4>>2];k=((g+d|0)-1&0-g)-d|0;i=J[a+8>>2];l:{if((f|0)==(j|0)){d=f;break l}J[e+16>>2]=h;if((i|0)<=(k|0)){d=L[e+12>>1];I[e+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+8>>2]=d;J[f+16>>2]=0;J[e+28>>2]=f;I[a+76>> -1]=L[a+76>>1]+1;e=f}g=J[a+32>>2];if(g>>>0<=d>>>0)break a;H[a+79|0]=0;m:{if(J[a+84>>2]){f=d;break m}J[a+84>>2]=d;J[a+80>>2]=d;f=d+32|0;J[a+36>>2]=f;e=d}if(f>>>0>=g>>>0)break a;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=f;J[e+28>>2]=0;J[e+4>>2]=0;I[e+12>>1]=K[a+164|0]|((i|0)>(k|0)?8:40)}if(!J[a+88>>2])J[a+88>>2]=e;H[a+78|0]=1;J[a+92>>2]=1;H[a+79|0]=0;d=J[a+64>>2]}f=1;if(L4(a,J[a+60>>2],d,b,c,J[a+68>>2],J[a+72>>2]))break b;break c}e=K[a+78|0];d=L4(a,J[a+60>>2],0-d|0,b,0-c|0,0-J[a+72>>2]|0,0-J[a+68>>2]|0);if(!(K[a+ -78|0]|!e)){e=J[a+80>>2];J[e+20>>2]=0-J[e+20>>2]}f=1;if(d)break b}J[a+64>>2]=c;J[a+60>>2]=b;f=0}return f}J[a+40>>2]=98;return 1}function dXa(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=Q(0),n=0,o=0,p=0,q=0,r=Q(0),s=Q(0),t=Q(0),u=0,v=0,w=0;d=bc-400|0;bc=d;a:{b:{c:{d:{if(!(K[a+220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))){uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);k=O[b+392>>3];f=J[a+104>>2];gc[J[J[f>>2]+132>>2]](f,d+396|0)|0;f=J[a+104>>2];gc[J[J[f>>2]+136>>2]](f,826984)|0;j=O[c+ -208>>3];n=O[c+200>>3];o=O[c+192>>3];p=O[c+184>>3];h=rc(24);N[h>>2]=O[c+216>>3]/72*25.4;N[h+4>>2]=O[c+224>>3]/72*25.4;N[h+8>>2]=O[c+232>>3]/72*25.4;N[h+12>>2]=O[c+240>>3]/72*25.4;N[h+16>>2]=O[c+248>>3]/72*25.4;N[h+20>>2]=O[c+256>>3]/72*25.4;J[d+156>>2]=0;J[d+148>>2]=0;J[d+152>>2]=0;J[695492]=0;e=$(4,24)|0;f=J[695492];J[695492]=0;i=(f|0)==1;k=k*255;e:{if(R(k)<2147483648){f=~~k;break e}f=-2147483648}if(i)break b;J[d+148>>2]=e;i=e+24|0;J[d+156>>2]=i;g=J[h+20>>2];J[e+16>>2]=J[h+16>>2];J[e+20>>2]=g;g=J[h+ -12>>2];J[e+8>>2]=J[h+8>>2];J[e+12>>2]=g;g=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=g;J[695492]=0;J[d+152>>2]=i;Mb(3230,d+160|0,Q(Q(p)),Q(Q(n)),Q(Q(o)),Q(Q(j)),d+148|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[d+148>>2];if(e){J[d+152>>2]=e;qc(e)}e=J[d+248>>2];if(e){k=j-o;j=+(e>>>0);s=Q(k/j);t=Q((n-p)/j);q=J[c+8>>2];e=0;while(1){j=+r;u=P(e,12);i=0;m=Q(0);while(1){J[695492]=0;g=d+20|0;Rb(3231,c|0,+m,+j,g|0);l=J[695492];J[695492]=0;if((l|0)==1)break c;l=J[J[q>>2]+20>>2];J[695492]=0;ia(l|0,q|0,g|0,d+ -8|0,0);g=J[695492];J[695492]=0;if((g|0)==1)break c;l=J[d+16>>2];v=J[d+12>>2];w=J[d+8>>2];g=J[J[d+252>>2]+u>>2]+(i<<2)|0;H[g+3|0]=f;H[g+2|0]=P(w,255)+32768>>>16;H[g+1|0]=P(v,255)+32768>>>16;H[g|0]=P(l,255)+32768>>>16;m=Q(m+t);i=i+1|0;g=J[d+248>>2];if(i>>>0>>0)continue;break}r=Q(r+s);e=e+1|0;if(g>>>0>e>>>0)continue;break}}c=J[a+104>>2];f=ik(c,340356,340368);if(f){c=J[J[f>>2]+596>>2];J[695492]=0;da(c|0,f|0,d+160|0);c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[a+104>>2];f=J[J[c>>2]+348>>2];J[695492]= -0;aa(f|0,c|0,826956)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[a+104>>2]}J[d+20>>2]=4;f=J[J[c>>2]+312>>2];J[695492]=0;aa(f|0,c|0,d+20|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;a=J[a+104>>2];c=J[J[a>>2]+136>>2];J[695492]=0;aa(c|0,a|0,d+396|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;_(3232,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;Qe(d+240|0);qc(h)}bc=d+400|0;return 1}c=Z()|0;a=J[d+148>>2];if(!a)break a;J[d+152>>2]=a;qc(a);break a}c=Z()|0;Qe(d+240|0);break a}c= -Z()|0}qc(h);ba(c|0);B()}function BSa(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;g=bc-32|0;bc=g;J[a>>2]=2205020;J[g+16>>2]=13;J[g>>2]=13;J[a+1064>>2]=0;b=a+1056|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1048>>2]=0;J[a+1052>>2]=0;a:{b:{if(!ZA(a,c))break b;if(J[a+4>>2]!=1){xc(1,-1,805628,0);break b}c:{if(J[Bc(c,806124,g+16|0,0)>>2]==6){b=J[J[g+24>>2]+12>>2];if((b|0)>0)break c}xc(1,-1,806538,0);break b}J[a+1044>>2]=b;q=a,r=vd(b,4),J[q+1048>>2]=r;q=a,r=vd(J[a+ -1044>>2]+1|0,8),J[q+1052>>2]=r;q=a,r=vd(J[a+1044>>2]<<1,8),J[q+1056>>2]=r;q=a,r=vd(J[a+1044>>2],8),J[q+1060>>2]=r;d:{e:{j=J[a+1044>>2];f:{if((j|0)<=0)break f;i=a+1048|0;b=0;if(j>>>0>=4){p=j&-4;while(1){k=b<<2;J[k+J[i>>2]>>2]=0;J[J[i>>2]+(k|4)>>2]=0;J[J[i>>2]+(k|8)>>2]=0;J[J[i>>2]+(k|12)>>2]=0;b=b+4|0;h=h+4|0;if((p|0)!=(h|0))continue;break}}h=j&3;if(h)while(1){J[J[i>>2]+(b<<2)>>2]=0;b=b+1|0;l=l+1|0;if((h|0)!=(l|0))continue;break}if((j|0)<=0)break f;j=f+1|0;b=Sh(Mc(J[g+24>>2],0,g,0),d,e,j);J[J[a+1048>> -2]>>2]=b;if(!b)break d;b=J[J[a+1048>>2]>>2];J[a+8>>2]=J[b+8>>2];h=806984;if(J[b+4>>2]!=1|J[b+8>>2]!=J[a+8>>2])break e;uc(g);b=1;if(J[a+1044>>2]<=1)break f;while(1){f=Sh(Mc(J[g+24>>2],b,g,0),d,e,j);k=b<<2;J[k+J[i>>2]>>2]=f;if(!f)break d;f=J[k+J[i>>2]>>2];if(J[f+4>>2]!=1|J[f+8>>2]!=J[a+8>>2])break e;uc(g);b=b+1|0;if((b|0)>2])continue;break}}b=g+16|0;uc(b);g:{if(J[Bc(c,807366,b,0)>>2]==6){d=J[a+1044>>2];if(J[J[g+24>>2]+12>>2]==(d-1|0))break g}xc(1,-1,807688,0);break b}b=J[a+1052>>2];O[b>>3]= -O[a+16>>3];if((d|0)>=2){b=1;while(1){if(J[Mc(J[g+24>>2],b-1|0,g,0)>>2]-3>>>0<4294967294){h=808004;break e}O[J[a+1052>>2]+(b<<3)>>3]=J[g>>2]==1?+J[g+8>>2]:O[g+8>>3];uc(g);b=b+1|0;d=J[a+1044>>2];if((b|0)<(d|0))continue;break}b=J[a+1052>>2]}O[b+(d<<3)>>3]=O[a+24>>3];b=g+16|0;uc(b);h:{if(J[Bc(c,796957,b,0)>>2]!=6)break h;b=J[a+1044>>2];if(J[J[g+24>>2]+12>>2]!=b<<1)break h;if((b|0)>0){b=0;while(1){if(J[Mc(J[g+24>>2],b,g,0)>>2]-3>>>0<4294967294){h=808791;break e}O[J[a+1056>>2]+(b<<3)>>3]=J[g>>2]==1?+J[g+ -8>>2]:O[g+8>>3];uc(g);b=b+1|0;if((b|0)>2]<<1)continue;break}}uc(g+16|0);e=J[a+1044>>2];if((e|0)>0){f=J[a+1060>>2];i=J[a+1056>>2];d=J[a+1052>>2];b=0;while(1){m=0;h=b<<3;n=O[h+d>>3];c=b+1|0;o=O[d+(c<<3)>>3];if(n!=o){b=i+(b<<4)|0;m=(O[b+8>>3]-O[b>>3])/(o-n)}O[f+h>>3]=m;b=c;if((e|0)!=(b|0))continue;break}}J[a+1064>>2]=1;break a}xc(1,-1,808356,0);break b}xc(1,-1,h,0)}uc(g)}uc(g+16|0)}bc=g+32|0;return a|0}function tK(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; -f=J[a+4>>2];if(J[f+48>>2]<=7){uK(a,b);return}e=J[a+12>>2];c=J[a+8>>2];m=e-c|0;if(m|J[f+44>>2]){h=J[a+16>>2];g=J[a+20>>2];if(h>>>0>=g>>>0){J[b>>2]=15;return}k=1;l=g-h>>1;g=J[a+24>>2];a:{b:{d=J[f+44>>2];if(d){J[f+44>>2]=0;H[f+36|0]=1;H[f+37|0]=d;break b}k=K[f+36|0];if(k)break b;k=0;j=m;e=c;break a}p=f+37|0;d=k<<24>>24;n=4-d|0;o=((d+e|0)-c|0)-4|0;k=0;j=m;c:{d:{e:{while(1){H[d+p|0]=K[c|0];j=j-1|0;k=k+1|0;e=c+1|0;f:{g:switch(d-1|0){case 0:i=K[f+37|0]|K[f+38|0]<<8;if((i&63488)!=55296){I[h>>1]=i;if(g){J[g>> -2]=-1;g=g+4|0}else g=0;h=h+2|0;l=l-1|0;i=0;H[f+36|0]=0;break a}if(!(i&1024))break f;H[f+36|0]=2;break a;case 2:break g;default:break f}d=K[f+40|0];if((d&252)==220){c=K[f+39|0]|d<<8;I[h>>1]=K[f+37|0]|K[f+38|0]<<8;if(l>>>0<2)break c;I[h+2>>1]=c;if(g){J[g>>2]=-1;J[g+4>>2]=-1;g=g+8|0}else g=0;h=h+4|0;l=l-2|0;i=0;H[f+36|0]=0;j=o;k=n;break a}J[b>>2]=12;if((J[a+8>>2]-e|0)<2)break e;c=c-1|0;break d}d=d+1|0;c=e;if(j)continue;break}j=0;k=m;i=0;H[f+36|0]=d;break a}J[f+44>>2]=K[f+39|0]|256}H[f+36|0]=2;J[a+24>> -2]=g;J[a+16>>2]=h;J[a+8>>2]=c;return}h=h+2|0;H[f+65|0]=1;I[f+116>>1]=c;J[b>>2]=15;l=0;H[f+36|0]=0;j=o;k=n;i=0}h:{i:{j:{if(i){c=e;break j}c=l<<1;c=c>>>0>j>>>0?j&-2:c;if(!c){c=e;break j}j=j-c|0;d=c>>>1|0;l=l-d|0;k:{l:{if(!g){while(1){c=e+2|0;i=K[e|0]|K[e+1|0]<<8;m:{if((i&63488)!=55296){I[h>>1]=i;e=h+2|0;break m}g=0;if(i&1024|d>>>0<2)break l;g=K[e+3|0];if((g&252)!=220){g=0;break k}c=K[e+2|0];I[h>>1]=i;I[h+2>>1]=c|g<<8;d=d-1|0;c=e+4|0;e=h+4|0}h=e;e=c;d=d-1|0;if(d)continue;break}d=0;break h}while(1){c= -e+2|0;i=K[e|0]|K[e+1|0]<<8;n:{if((i&63488)!=55296){I[h>>1]=i;i=2;h=h+2|0;n=1;m=g;break n}if(i&1024|d>>>0<2)break l;m=K[e+3|0];if((m&252)!=220)break k;c=K[e+2|0];I[h>>1]=i;I[h+2>>1]=c|m<<8;J[g>>2]=k;i=4;h=h+4|0;d=d-1|0;n=2;c=e+4|0;m=g+4|0}e=c;J[m>>2]=k;k=i+k|0;g=(n<<2)+g|0;d=d-1|0;if(d)continue;break}d=g;break h}if(!d)break i}l=d+l|0;j=((d<<1)+j|0)-2|0}if(!i)break i;H[f+36|0]=2;H[f+37|0]=i;H[f+38|0]=i>>>8;n=12;o:{if(i&1024){d=g;break o}if(j>>>0<2)break i;e=K[c+1|0];if((e&252)!=220){d=g;j=1;break o}e= -K[c|0]|e<<8;I[h>>1]=i;d=0;if(g){J[g>>2]=k;d=g+4|0}h=h+2|0;j=j-2|0;H[f+65|0]=1;I[f+116>>1]=e;H[f+36|0]=0;n=15;c=c+2|0}e=c;J[b>>2]=n;break h}d=g;e=c}p:{if(!j|J[b>>2]>0)break p;if(!l){J[b>>2]=15;break p}b=K[e|0];c=H[f+36|0];H[f+36|0]=c+1;H[(c+f|0)+37|0]=b;e=e+1|0}J[a+24>>2]=d;J[a+16>>2]=h;J[a+8>>2]=e}}function oab(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;e=1;a:{if(!J[a+16>>2])break a;j=J[a+20>>2];if(!j)break a;d=bc-240|0;bc=d;b:{c:{c=J[c>>2];if((c|0)>= -8){a=J[j+4>>2];if(!K[a+25|0]){g=O[b>>3];h=O[b+8>>3];H[a+25|0]=1;J[d+8>>2]=0;q=Ke(a,d+8|0),r=1,H[q|0]=r;e=J[d+8>>2];O[e+8>>3]=h;O[e>>3]=g;J[a>>2]=J[a>>2]+1}J[d+184>>2]=0;J[d+188>>2]=0;J[d+192>>2]=0;J[d+196>>2]=0;J[d+200>>2]=0;J[d+204>>2]=0;J[d+208>>2]=0;J[d+212>>2]=0;J[d+216>>2]=0;J[d+220>>2]=64;J[d+224>>2]=0;J[d+168>>2]=0;J[d+172>>2]=1072693248;J[d+16>>2]=0;J[d+20>>2]=1072693248;J[d+8>>2]=0;J[d+12>>2]=0;J[695492]=0;a=d+8|0;O[a+8>>3]=25;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[d+168>>2]=0;J[d+ -172>>2]=1077477376;g=O[b+56>>3];h=O[b+48>>3];k=O[b+40>>3];l=O[b+32>>3];m=O[b+24>>3];n=O[b+16>>3];o=O[b+8>>3];p=O[b>>3];d:{if(!J[d+224>>2]){J[695492]=0;iC(a,p,o,n,m,l,k,h,g);a=J[695492];J[695492]=0;if((a|0)!=1)break d;break c}J[695492]=0;Pb(2390,d+168|0,+p,+o,+n,+m,+l,+k,+h,+g);a=J[695492];J[695492]=0;if((a|0)==1)break c}e:{f:{a=J[j+4>>2];e=J[a>>2];if(e){e=e-1|0;if(!(K[J[J[a+16>>2]+(e>>>6&67108860)>>2]+(e&255)|0]&64))break f}J[695492]=0;ca(2391,a|0,d+8|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)break e; -break c}J[695492]=0;ca(2392,a|0,d+8|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break c}a=c-8|0;if(a>>>0>=6){b=b- -64|0;c=(a>>>0)/6|0;e=0;while(1){a=b+P(e,48)|0;g=O[a+40>>3];h=O[a+32>>3];k=O[a+24>>3];l=O[a+16>>3];m=O[a+8>>3];n=O[a>>3];a=J[j+4>>2];J[695492]=0;J[d+236>>2]=0;f=aa(2393,a|0,d+236|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break c;H[f|0]=4;f=J[d+236>>2];O[f+8>>3]=m;O[f>>3]=n;J[a>>2]=J[a>>2]+1;J[695492]=0;J[d+236>>2]=0;f=aa(2393,a|0,d+236|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break c;H[f| -0]=4;f=J[d+236>>2];O[f+8>>3]=k;O[f>>3]=l;J[a>>2]=J[a>>2]+1;J[695492]=0;J[d+236>>2]=0;f=aa(2393,a|0,d+236|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break c;H[f|0]=4;f=J[d+236>>2];O[f+8>>3]=g;O[f>>3]=h;J[a>>2]=J[a>>2]+1;e=e+1|0;if((c|0)!=(e|0))continue;break}}b=J[d+208>>2];if(b){a=b-1|0;J[d+208>>2]=a;e=J[d+216>>2]+(b<<2)|0;while(1){e=e-4|0;b=J[e>>2];if(b){qc(b);a=J[d+208>>2]}b=a;a=b-1|0;J[d+208>>2]=a;if(b)continue;break}}a=J[d+216>>2];if(a)qc(a)}bc=d+240|0;break b}c=Z()|0;b=J[d+208>>2];if(b){a=b-1|0; -J[d+208>>2]=a;e=J[d+216>>2]+(b<<2)|0;while(1){e=e-4|0;b=J[e>>2];if(b){qc(b);a=J[d+208>>2]}b=a;a=b-1|0;J[d+208>>2]=a;if(b)continue;break}}a=J[d+216>>2];if(a)qc(a);ba(c|0);B()}e=0}return e|0}function Tz(a){a=a|0;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;d=bc-16|0;bc=d;a:{b:{c:{d:{if(J[a+16>>2])break d;if(Pj(a+20|0))break d;J[d+12>>2]=0;h=J[a+116>>2];if(!h)break d;n=a+108|0;while(1){b=J[h+8>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break c;e=J[h+8>> -2]}else e=0;J[d+4>>2]=e;e:{f:{g:{h:{i:{if(!K[a+8|0]){k=J[e+16>>2];if((k|0)<0){J[d+4>>2]=0;break h}c=0;j=J[J[a+72>>2]+12>>2];j:{if(!j)break j;i=J[e+12>>2];g=k+i|0;if((g|0)<=0)break j;f=J[j+8>>2];b=f>>31;b=(b^f)-b|0;c=0;k:{if((f|0)<=0)break k;f=b>>>0>>0;c=f?b:g;if((i|0)<=0)break k;c=b>>>0>=g>>>0?k:0;if(!(f&b>>>0>=i>>>0))break k;c=b-i|0}f=J[j>>2];if(!f)break j;while(1){if((b|0)>=(g|0))break j;m=J[f+8>>2];l=m>>31;j=b;l=(l^m)-l|0;b=b+l|0;l:{if((m|0)<=0)break l;if((i|0)>(j|0)){if(!((b|0)<(i|0)|(b|0)>= -(g|0))){c=(c-i|0)+b|0;break l}c=((b|0)>=(g|0)?k:0)+c|0;break l}if((b|0)<=(g|0)){c=c+l|0;break l}c=(g-j|0)+c|0}f=J[f>>2];if(f)continue;break}}if((c|0)!=(k|0))break i}J[695492]=0;c=d+4|0;aa(4993,d+12|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;vc(c);break b}J[d+4>>2]=0;if(!e)break g}J[695492]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break g;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}h=J[h>>2];if(h)continue;break e}b=J[d+ -4>>2];J[d+4>>2]=0;if(!b)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[d+12>>2];if(!b)break d;J[695492]=0;b=J[b+8>>2];c=J[695492];J[695492]=0;m:{if((c|0)!=1){if(b)break m;b=J[d+12>>2];c=J[b+20>>2];if(!c)break m;b=J[b+24>>2];J[695492]=0;_(c|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break m;na(ea(0)|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break m}b= -Z()|0;break b}b=J[a+116>>2];J[d+8>>2]=n;n:{if(!b)break n;c=J[d+12>>2];while(1){if((c|0)==J[b+8>>2]){J[695492]=0;J[d+4>>2]=b;da(5065,n|0,d+4|0);b=J[695492];J[695492]=0;if((b|0)!=1)break n;b=Z()|0;break b}b=J[b>>2];if(b)continue;break}}b=J[d+12>>2];J[d+12>>2]=0;o:{if(!b)break o;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break o;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[d+12>>2]=0;h=J[a+116>>2];if(h)continue;break}}bc=d+16|0;return}b= -Z()|0}vc(d+12|0);ba(b|0);B()}ea(0)|0;yc();B()}function _db(a){a=a|0;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;c=bc-16|0;bc=c;g=J[a+24>>2];e=J[g+4>>2];a:{if(!e){if(!(gc[J[g+12>>2]](a)|0)){e=0;break a}e=J[g+4>>2]}b=J[g>>2];f=K[b|0];e=e-1|0;if(e)b=b+1|0;else{if(!(gc[J[g+12>>2]](a)|0)){e=0;break a}e=J[g+4>>2];b=J[g>>2]}k=b+1|0;e=e-1|0;b=K[b|0]|f<<8;f=b-2|0;b=b>>>0>15?14:b>>>0>=f>>>0?f:0;if(b)while(1){if(!e){if(!(gc[J[g+12>>2]](a)|0)){e=0;break a}k=J[g>>2];e=J[g+4>>2]}H[(c+2|0)+d|0]=K[k| -0];k=k+1|0;e=e-1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}m=f-b|0;b:{c:{d:{d=J[a+436>>2];h=d-224|0;if(h)if((h|0)==14)break d;else break c;f=b+m|0;e:{f:{g:{h:{if(b>>>0>=14){if(K[c+2|0]!=74)break g;if(K[c+3|0]!=70|K[c+4|0]!=73|(K[c+6|0]|K[c+5|0]!=70))break h;J[a+284>>2]=1;b=K[c+7|0];H[a+288|0]=b;d=K[c+8|0];H[a+289|0]=d;h=K[c+9|0];H[a+290|0]=h;i=K[c+10|0]|K[c+11|0]<<8;i=i<<8|i>>>8;I[a+292>>1]=i;j=K[c+12|0]|K[c+13|0]<<8;j=j<<8|j>>>8;I[a+294>>1]=j;l=1;if((b|0)!=1){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=122; -J[J[a>>2]+28>>2]=K[a+289|0];gc[J[J[a>>2]+4>>2]](a,-1);l=K[a+288|0];h=K[a+290|0];j=L[a+294>>1];i=L[a+292>>1];d=K[a+289|0]}b=J[a>>2];J[b+24>>2]=l;J[b+20>>2]=89;J[b+40>>2]=h;J[b+36>>2]=j&65535;J[b+32>>2]=i&65535;J[b+28>>2]=d;gc[J[b+4>>2]](a,1);f=f-14|0;d=K[c+14|0];b=K[c+15|0];if(d|b){b=J[a>>2];J[b+20>>2]=92;J[b+24>>2]=K[c+14|0];J[J[a>>2]+28>>2]=K[c+15|0];gc[J[J[a>>2]+4>>2]](a,1);d=K[c+14|0];b=K[c+15|0]}if((P(P(b,d),3)|0)==(f|0))break e;b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=90;break f}if(K[c+2|0]!=74|b>>> -0<6)break g}if(K[c+3|0]!=70|K[c+4|0]!=88|(K[c+6|0]|K[c+5|0]!=88))break g;b=J[a>>2];i:switch(K[c+7|0]-16|0){case 0:J[b+24>>2]=f;J[b+20>>2]=110;break f;case 1:J[b+24>>2]=f;J[b+20>>2]=111;break f;case 3:J[b+24>>2]=f;J[b+20>>2]=112;break f;default:break i}J[b+20>>2]=91;J[b+24>>2]=K[c+7|0];J[J[a>>2]+28>>2]=f;break f}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=79}gc[J[J[a>>2]+4>>2]](a,1)}break b}j:{if(K[c+2|0]!=65|b>>>0<12|(K[c+3|0]!=100|K[c+4|0]!=111))break j;if(K[c+5|0]!=98|K[c+6|0]!=101)break j;f=K[c+8|0];h=K[c+ -7|0];i=K[c+10|0];j=K[c+9|0];l=K[c+12|0];n=K[c+11|0];d=K[c+13|0];b=J[a>>2];J[b+20>>2]=78;J[b+36>>2]=d;J[b+32>>2]=l|n<<8;J[b+28>>2]=i|j<<8;J[b+24>>2]=f|h<<8;gc[J[b+4>>2]](a,1);H[a+300|0]=d;J[a+296>>2]=1;break b}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=80;gc[J[J[a>>2]+4>>2]](a,1);break b}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=70;gc[J[J[a>>2]>>2]](a)}J[g+4>>2]=e;J[g>>2]=k;e=1;if((m|0)<=0)break a;gc[J[J[a+24>>2]+16>>2]](a,m)}bc=c+16|0;return e|0}function B2a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;b=bc-80|0; -bc=b;d=rc(80);J[b+56>>2]=d;J[b+60>>2]=16;J[b+64>>2]=-2147483628;e=J[87809];J[d+56>>2]=J[87808];J[d+60>>2]=e;e=J[87807];J[d+48>>2]=J[87806];J[d+52>>2]=e;e=J[87805];J[d+40>>2]=J[87804];J[d+44>>2]=e;e=J[87803];J[d+32>>2]=J[87802];J[d+36>>2]=e;e=J[87801];J[d+24>>2]=J[87800];J[d+28>>2]=e;e=J[87799];J[d+16>>2]=J[87798];J[d+20>>2]=e;e=J[87797];J[d+8>>2]=J[87796];J[d+12>>2]=e;e=J[87795];J[d>>2]=J[87794];J[d+4>>2]=e;J[d+64>>2]=0;J[695492]=0;ca(2819,b+68|0,b+56|0,1);d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{if((d| -0)!=1){if(H[b+67|0]<0)qc(J[b+56>>2]);J[695492]=0;d=$(4,96)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[b+44>>2]=d;J[b+48>>2]=20;J[b+52>>2]=-2147483624;f=tc(d,351244,80),g=0,J[f+80>>2]=g;J[695492]=0;ca(2829,b+44|0,b+68|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break g;if(H[b+55|0]<0)qc(J[b+44>>2]);J[695492]=0;d=$(4,112)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[b+32>>2]=d;J[b+36>>2]=24;J[b+40>>2]=-2147483620;f=tc(d,351328,96),g=0,J[f+96>>2]=g;J[695492]=0;ca(2829,b+32|0,b+68|0,1);d=J[695492]; -J[695492]=0;if((d|0)==1)break f;if(H[b+43|0]<0)qc(J[b+32>>2]);J[695492]=0;d=$(4,64)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[b+20>>2]=d;J[b+24>>2]=15;J[b+28>>2]=-2147483632;J[d+56>>2]=J[87871];e=J[87870];J[d+48>>2]=J[87869];J[d+52>>2]=e;e=J[87868];J[d+40>>2]=J[87867];J[d+44>>2]=e;e=J[87866];J[d+32>>2]=J[87865];J[d+36>>2]=e;e=J[87864];J[d+24>>2]=J[87863];J[d+28>>2]=e;e=J[87862];J[d+16>>2]=J[87861];J[d+20>>2]=e;e=J[87860];J[d+8>>2]=J[87859];J[d+12>>2]=e;e=J[87858];J[d>>2]=J[87857];J[d+4>>2]= -e;J[d+60>>2]=0;J[695492]=0;ca(2829,b+20|0,b+68|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break e;if(H[b+31|0]<0)qc(J[b+20>>2]);h:{if(!K[c|0])break h;J[695492]=0;c=$(4,96)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;J[b+8>>2]=c;J[b+12>>2]=22;J[b+16>>2]=-2147483624;f=tc(c,351492,88),g=0,J[f+88>>2]=g;J[695492]=0;ca(2829,b+8|0,b+68|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break d;if(H[b+19|0]>=0)break h;qc(J[b+8>>2])}J[a>>2]=J[b+68>>2];J[a+4>>2]=J[b+72>>2];J[a+8>>2]=J[b+76>>2];bc=b+80|0;return}a=Z()| -0;if(H[b+67|0]>=0)break a;qc(J[b+56>>2]);ba(a|0);B()}a=Z()|0;if(H[b+55|0]>=0)break b;qc(J[b+44>>2]);break b}a=Z()|0;if(H[b+43|0]>=0)break b;qc(J[b+32>>2]);break b}a=Z()|0;if(H[b+31|0]>=0)break b;qc(J[b+20>>2]);break b}a=Z()|0;if(H[b+19|0]>=0)break b;qc(J[b+8>>2]);break b}a=Z()|0}sg(b+68|0)}ba(a|0);B()}function S5(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;k=bc-16|0;bc=k;n=J[a>>2];i=J[b+20>>2];a:{b:{if(i){a=85;if(gc[i|0](b,c,0,0)|0)break a;j=J[b+4>>2];break b}a=85;j=J[b+4>>2];if(j>>> -0>>0)break a}J[b+8>>2]=c;c:{if(c+1>>>0>=j>>>0)break c;d:{e:{a=J[b+20>>2];f:{if(a){j=k+6|0;if((gc[a|0](b,c,j,2)|0)!=2)break c;a=J[b+8>>2];break f}a=J[b>>2];if(!a)break e;j=a+c|0;a=c}i=K[j|0]|K[j+1|0]<<8;j=a+2|0;J[b+8>>2]=j;a=8;o=(i<<8|i>>>8)<<16>>16;if((o|0)>4078)break a;if((o|0)>=0)break d;a=1;break a}j=c+2|0;J[b+8>>2]=j}while(1){g:{h:{i:{l=J[b+4>>2];if(l>>>0<=j+3>>>0)break i;j:{k:{i=J[b+20>>2];l:{if(i){a=k+8|0;if((gc[i|0](b,j,a,4)|0)!=4)break i;l=J[b+4>>2];j=J[b+8>>2];break l}a=J[b>>2];if(!a)break k; -a=a+j|0}a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);m=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break j}m=0}a=j+4|0;J[b+8>>2]=a;if(j+5>>>0>=l>>>0)break i;m:{n:{l=J[b+20>>2];o:{if(l){i=k+12|0;if((gc[l|0](b,a,i,2)|0)!=2)break i;a=J[b+8>>2];break o}i=J[b>>2];if(!i)break n;i=a+i|0}i=K[i|0]|K[i+1|0]<<8;l=i<<8|i>>>8;break m}l=0}j=a+2|0;J[b+8>>2]=j;if(M[b+4>>2]<=a+3>>>0)break i;i=J[b+20>>2];p:{if(i){a=k+14|0;if((gc[i|0](b,j,a,2)|0)!=2)break i;j=J[b+8>>2];break p}a=J[b>>2];if(!a)break h;a=a+j|0}a=K[a| -0]|K[a+1|0]<<8;i=a<<8|a>>>8;break g}a=85;break a}i=0}j=j+2|0;J[b+8>>2]=j;if((e|0)!=(m|0)){a=1;i=(o|0)==(p|0);p=p+1|0;if(!i)continue;break a}break}J[h>>2]=(l<<16>>16)+1;a=8;if((l&65535)>>>0>2726)break a;e=(i<<16>>16)+c|0;c=J[b+20>>2];q:{if(c){a=85;if(!(gc[c|0](b,e,0,0)|0))break q;break a}a=85;if(e>>>0>M[b+4>>2])break a}J[b+8>>2]=e;c=0;J[k>>2]=0;l=Sc(n,8,0,J[h>>2],0,k);a=J[k>>2];if(a)break a;a=J[h>>2];r:{if((a|0)>0)while(1){e=l+(c<<3)|0;q=e,r=Wd(b,k),I[q>>1]=r;a=J[k>>2];if(a)break r;i=J[b+8>>2]+2|0; -s:{a=J[b+20>>2];if(a){if(!(gc[a|0](b,i,0,0)|0))break s;a=85;break r}if(i>>>0<=M[b+4>>2])break s;a=85;break r}J[b+8>>2]=i;J[k>>2]=0;i=Kf(b,k);a=J[k>>2];if(a)break r;m=J[b+8>>2]+4|0;t:{a=J[b+20>>2];if(a){if(!(gc[a|0](b,m,0,0)|0))break t;a=85;break r}if(m>>>0<=M[b+4>>2])break t;a=85;break r}J[b+8>>2]=m;J[k>>2]=0;if((i|0)<0){a=8;break r}J[e+4>>2]=i&16777215;a=J[h>>2];c=c+1|0;if((a|0)>(c|0))continue;break}b=0;c=n;if(f){Kl(l,a,8,1655);a=J[h>>2]}c=Sc(c,4,0,a,0,k);a=J[k>>2];if(!a){if(J[h>>2]>0)while(1){J[c+ -(b<<2)>>2]=J[(l+(b<<3)|0)+4>>2]+d;b=b+1|0;if((b|0)>2])continue;break}J[g>>2]=c;a=0}if(!l)break a}gc[J[n+8>>2]](n,l);break a}a=85}bc=k+16|0;return a}function i4(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;e=bc-16|0;bc=e;k=J[a+28>>2];f=nd(a,c);J[e+12>>2]=f;a:{if(f)break a;f=Wd(a,e+12|0);if(J[e+12>>2])break a;if((f|0)!=1){J[e+12>>2]=8;break a}f=e+12|0;g=Kf(a,f);if(J[e+12>>2])break a;i=Wd(a,f);J[d>>2]=i;if(J[e+12>>2])break a;if(!i){J[e+12>>2]=8;break a}f=0;l=Sc(k,4,0,i,0,e+12|0);if(J[e+ -12>>2])break a;if(J[d>>2])while(1){n=(f<<2)+l|0,o=Kf(a,e+12|0),J[n>>2]=o;if(J[e+12>>2])break a;f=f+1|0;if(f>>>0>2])continue;break}f=nd(a,c+g|0);J[e+12>>2]=f;if(f)break a;n=d,o=Wd(a,e+12|0),I[n+8>>1]=o;if(J[e+12>>2])break a;f=Wd(a,e+12|0);J[d+12>>2]=f;if(J[e+12>>2])break a;if(J[J[b+12>>2]>>2]!=L[d+8>>1]){J[e+12>>2]=8;break a}n=d,o=Sc(k,4,0,f,0,e+12|0),J[n+16>>2]=o;if(J[e+12>>2])break a;if(J[d+12>>2]){b=L[d+8>>1];while(1){i=Sc(k,12,0,b&65535,0,e+12|0);J[J[d+16>>2]+(j<<2)>>2]=i;if(J[e+12>>2])break a; -b=0;if(L[d+8>>1]){f=0;while(1){g=Wd(a,e+12|0);if(J[e+12>>2])break a;h=Wd(a,e+12|0);if(J[e+12>>2])break a;m=Wd(a,e+12|0);if(J[e+12>>2])break a;b=i+P(f,12)|0;J[b+8>>2]=m<<16>>16<<2;J[b+4>>2]=h<<16>>16<<2;J[b>>2]=g<<16>>16<<2;b=L[d+8>>1];f=f+1|0;if(b>>>0>f>>>0)continue;break}}j=j+1|0;if(j>>>0>2])continue;break}}j=0;n=d,o=Sc(k,16,0,J[d>>2],0,e+12|0),J[n+4>>2]=o;if(J[e+12>>2]|!J[d>>2])break a;while(1){b=J[d+4>>2];f=nd(a,J[(j<<2)+l>>2]+c|0);J[e+12>>2]=f;if(f)break a;g=(j<<4)+b|0;n=g,o=Wd(a,e+12| -0),J[n>>2]=o;if(J[e+12>>2])break a;i=Wd(a,e+12|0);if(J[e+12>>2])break a;b=Wd(a,e+12|0);J[g+4>>2]=b;if(J[e+12>>2])break a;if(b>>>0>>0){J[e+12>>2]=8;break a}if(b>>>0>M[d+12>>2]){J[e+12>>2]=8;break a}n=g,o=Sc(k,4,0,b,0,e+12|0),J[n+8>>2]=o;if(J[e+12>>2])break a;f=0;b:{if(!J[g+4>>2]){b=0;break b}while(1){b=Wd(a,e+12|0);J[J[g+8>>2]+(f<<2)>>2]=b;if(J[e+12>>2])break a;if(b>>>0>2]){b=J[g+4>>2];f=f+1|0;if(b>>>0<=f>>>0)break b;continue}break}J[e+12>>2]=8;break a}n=g,o=Sc(k,2,0,P(J[g>>2],b),0,e+12| -0),J[n+12>>2]=o;if(J[e+12>>2])break a;h=J[g+4>>2];if(P(h,J[g>>2])){f=0;while(1){if(i){b=f+i|0;while(1){h=Wd(a,e+12|0);if(J[e+12>>2])break a;I[J[g+12>>2]+(f<<1)>>1]=h;f=f+1|0;if((b|0)!=(f|0))continue;break}h=J[g+4>>2];f=b}b=i;if(h>>>0>b>>>0)while(1){h=Gg(a,e+12|0);if(J[e+12>>2])break a;I[J[g+12>>2]+(f<<1)>>1]=h;f=f+1|0;b=b+1|0;h=J[g+4>>2];if(b>>>0>>0)continue;break}if(P(J[g>>2],h)>>>0>f>>>0)continue;break}}j=j+1|0;if(j>>>0>2])continue;break}}if(l)gc[J[k+8>>2]](k,l);bc=e+16|0;return J[e+12>> -2]}function v_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0;y=bc-448|0;bc=y;t=J[a+332>>2];b=J[b+84>>2];a=y;while(1){j=J[b+192>>2];n=I[c+96>>1];i=J[b+64>>2];k=I[c+32>>1];o=P(I[c>>1],J[b>>2])<<13|1024;p=P(J[b+128>>2],I[c+64>>1]);l=o+P(p,-11586)>>11;h=P(J[b+224>>2],I[c+112>>1]);m=P(J[b+32>>2],I[c+16>>1]);f=P(J[b+96>>2],I[c+48>>1]);u=m-f|0;g=P(J[b+160>>2],I[c+80>>1]);q=h+(u-g|0)<<2;J[a+320>>2]=l-q;J[a+96>>2]=l+q;n=P(j, -n);i=P(i,k);k=P(n+i|0,9058);l=k+P(n,-14084)|0;q=o+P(p,2578)|0;r=l+q|0;j=h<<13;h=P(f+g|0,-1297)-j|0;x=P(f+m|0,10935);v=h+(x+P(f,-3474)|0)|0;J[a+384>>2]=r-v>>11;J[a+32>>2]=r+v>>11;n=P(n,-11295)+P(i,5027)|0;r=o+P(p,-7223)|0;v=n+r|0;s=h;h=g+m|0;w=P(h,9810);s=s+(w+P(g,-19447)|0)|0;J[a+352>>2]=v-s>>11;J[a+64>>2]=v+s>>11;l=q-l|0;u=P(u,3826)-j|0;s=P(f,5529);f=P(g-f|0,11512);q=u+(s+f|0)|0;J[a+256>>2]=l-q>>11;J[a+160>>2]=l+q>>11;p=o+P(p,10438)|0;o=k+P(i,2237)|0;i=p-o|0;k=P(h,6164);l=u+(k+P(m,-8693)|0)|0;J[a+ -224>>2]=i-l>>11;J[a+192>>2]=i+l>>11;p=p+o|0;m=j+(w+(x+P(m,-9232)|0)|0)|0;J[a+416>>2]=p-m>>11;J[a>>2]=m+p>>11;m=r-n|0;f=j+(k+(f+P(g,-13850)|0)|0)|0;J[a+288>>2]=m-f>>11;J[a+128>>2]=f+m>>11;a=a+4|0;b=b+4|0;c=c+2|0;z=z+1|0;if((z|0)!=8)continue;break}a=t+128|0;b=y;p=0;while(1){f=J[b+12>>2];m=J[b+4>>2];i=P(f+m|0,10935);k=J[b+24>>2];t=J[b+8>>2];l=P(k+t|0,9058);c=J[(p<<2)+d>>2]+e|0;q=J[b+28>>2];o=q<<13;g=J[b+20>>2];u=g+m|0;h=P(u,9810);r=o+(h+(i+P(m,-9232)|0)|0)|0;x=l+P(t,2237)|0;n=(J[b>>2]<<13)+131072|0; -j=J[b+16>>2];v=n+P(j,10438)|0;w=x+v|0;H[c|0]=K[a+(r+w>>>18&1023)|0];H[c+13|0]=K[a+(w-r>>>18&1023)|0];s=i+P(f,-3474)|0;i=P(f+g|0,-1297)-o|0;r=s+i|0;l=l+P(k,-14084)|0;w=n+P(j,2578)|0;s=l+w|0;H[c+1|0]=K[a+(r+s>>>18&1023)|0];H[c+12|0]=K[a+(s-r>>>18&1023)|0];i=i+(h+P(g,-19447)|0)|0;k=P(k,-11295)+P(t,5027)|0;t=n+P(j,-7223)|0;h=k+t|0;H[c+2|0]=K[a+(i+h>>>18&1023)|0];H[c+11|0]=K[a+(h-i>>>18&1023)|0];i=m-f|0;h=q+(i-g|0)<<13;j=n+P(j,-11586)|0;H[c+3|0]=K[a+(h+j>>>18&1023)|0];H[c+10|0]=K[a+(j-h>>>18&1023)|0]; -j=P(u,6164);h=o+P(g,-13850)|0;g=P(g-f|0,11512);n=j+(h+g|0)|0;k=t-k|0;H[c+4|0]=K[a+(n+k>>>18&1023)|0];H[c+9|0]=K[a+(k-n>>>18&1023)|0];h=g+P(f,5529)|0;f=P(i,3826)-o|0;g=h+f|0;o=w-l|0;H[c+5|0]=K[a+(g+o>>>18&1023)|0];H[c+8|0]=K[a+(o-g>>>18&1023)|0];f=f+(j+P(m,-8693)|0)|0;g=v-x|0;H[c+6|0]=K[a+(f+g>>>18&1023)|0];H[c+7|0]=K[a+(g-f>>>18&1023)|0];b=b+32|0;p=p+1|0;if((p|0)!=14)continue;break}bc=y+448|0}function _W(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0;p=bc-16|0;bc=p;a:{b:{c:{if(!c){Hc(d,1,2351112,0);break c}x=J[c+16>>2];i=J[a+72>>2];if(x>>>0>2]){Hc(d,1,2351195,0);break c}h=J[a+104>>2];g=P(h,J[a+108>>2]);if(g>>>0<=e>>>0){J[p>>2]=e;J[p+4>>2]=g-1;Hc(d,1,2351264,p);h=0;break c}g=(e>>>0)/(h>>>0)|0;f=e-P(g,h)|0;h=J[a+84>>2]+P(f,J[a+92>>2])|0;J[c>>2]=h;i=J[i>>2];r=h>>>0>i>>>0?h:i;J[c>>2]=r;h=J[a+84>>2]+P(J[a+92>>2],f+1|0)|0;J[c+8>>2]=h;i=J[J[a+72>>2]+8>>2];h=h>>>0>>0?h:i;J[c+8>>2]= -h;i=J[a+88>>2]+P(g,J[a+96>>2])|0;J[c+4>>2]=i;f=J[J[a+72>>2]+4>>2];s=f>>>0>>0?i:f;J[c+4>>2]=s;g=J[a+88>>2]+P(J[a+96>>2],g+1|0)|0;J[c+12>>2]=g;i=J[J[a+72>>2]+12>>2];g=g>>>0>>0?g:i;J[c+12>>2]=g;i=J[a+72>>2];o=J[i+16>>2];if(o){y=h-1|0;A=(h>>31)-!h|0;C=g;D=g>>31;E=s>>31;F=r>>31;G=J[i+24>>2];h=J[c+24>>2];while(1){l=J[(G+P(u,52)|0)+40>>2];J[h+40>>2]=l;j=J[h>>2];if(!j)break a;m=j>>31;f=F+m|0;g=j+r|0;f=g>>>0>>0?f+1|0:f;g=Ezb(g-1|0,f-!g|0,j,m);J[h+16>>2]=g;i=J[h+4>>2];if(!i)break a;v=i>>31;z=v-!i| -0;f=E+z|0;q=i;w=i-1|0;i=s+w|0;f=i>>>0>>0?f+1|0:f;i=Ezb(i,f,q,v);J[h+20>>2]=i;k=l&31;if((l&63)>>>0>=32){f=-1<>>32-k}k=n^-1;f=f^-1;n=f;f=m+A|0;t=j+y|0;f=t>>>0>>0?f+1|0:f;f=Ezb(t,f,j,m);t=f;m=f+k|0;f=(f>>31)+n|0;f=m>>>0>>0?f+1|0:f;j=l&31;if((l&63)>>>0>=32)m=f>>j;else m=((1<>>j;f=g>>31;g=g+k|0;f=f+n|0;f=g>>>0>>0?f+1|0:f;j=g;g=l&31;if((l&63)>>>0>=32)g=f>>g;else g=((1<>>g;J[h+8>>2]=m-g;f=D+z|0;g=w+C|0;f=g>>>0>>0?f+1|0: -f;f=Ezb(g,f,q,v);g=f+k|0;f=n+(f>>31)|0;f=g>>>0>>0?f+1|0:f;j=g;g=l&31;if((l&63)>>>0>=32)q=f>>g;else q=((1<>>g;f=n+(i>>31)|0;g=i+k|0;f=g>>>0>>0?f+1|0:f;i=g;g=l&31;if((l&63)>>>0>=32)g=f>>g;else g=((1<>>g;J[h+12>>2]=q-g;h=h+52|0;u=u+1|0;if((u|0)!=(o|0))continue;break}}if(o>>>0>>0){h=J[c+24>>2];while(1){g=P(o,52);qc(J[(g+h|0)+44>>2]);h=J[c+24>>2];J[(g+h|0)+44>>2]=0;o=o+1|0;if(o>>>0>2])continue;break}J[c+16>>2]=J[J[a+72>>2]+16>>2]}h=J[a+76>>2];if(h)Rm(h); -g=kA();J[a+76>>2]=g;h=0;if(!g)break c;nH(c,g);J[a+44>>2]=e;if(!d)break b;if(!ep(J[a+180>>2],4660,d))break c;if(!jX(a,J[a+180>>2],b,d)){Rm(J[a+72>>2]);J[a+72>>2]=0;break c}h=$W(a,c)}bc=p+16|0;return h|0}fa(2346590,2346358,11752,2359224);B()}fa(2351841,2351843,162,2351917);B()}function gX(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;h=bc-208|0;bc=h;j=J[a+72>>2];a:{if(!(!(J[J[a+156>>2]+5596>>2]?J[a+104>>2]!=1|J[a+108>>2]!=1:1)|J[a+8>>2]==8)){Hc(g, -1,2348421,0);break a}m=J[b+16>>2];b:{if(!m)break b;k=J[a+160>>2];l=J[b+24>>2];if(m>>>0>=8){p=m&-8;while(1){J[(P(i,52)+l|0)+40>>2]=k;J[(P(i|1,52)+l|0)+40>>2]=k;J[(P(i|2,52)+l|0)+40>>2]=k;J[(P(i|3,52)+l|0)+40>>2]=k;J[(P(i|4,52)+l|0)+40>>2]=k;J[(P(i|5,52)+l|0)+40>>2]=k;J[(P(i|6,52)+l|0)+40>>2]=k;J[(P(i|7,52)+l|0)+40>>2]=k;i=i+8|0;n=n+8|0;if((p|0)!=(n|0))continue;break}}m=m&7;if(!m)break b;while(1){J[(P(i,52)+l|0)+40>>2]=k;i=i+1|0;o=o+1|0;if((m|0)!=(o|0))continue;break}}if(!(c|d|e|f)){Hc(g,4,2348535, -0);J[a+28>>2]=0;J[a+32>>2]=0;c=J[a+108>>2];J[a+36>>2]=J[a+104>>2];J[a+40>>2]=c;J[b>>2]=J[j>>2];J[b+4>>2]=J[j+4>>2];J[b+8>>2]=J[j+8>>2];J[b+12>>2]=J[j+12>>2];i=lH(b,g);break a}if((c|0)<0){J[h>>2]=c;Hc(g,1,2348649,h);i=0;break a}i=J[j+8>>2];if(i>>>0>>0){J[h+20>>2]=i;J[h+16>>2]=c;Hc(g,1,2348758,h+16|0);i=0;break a}i=J[j>>2];c:{if(i>>>0>c>>>0){J[h+196>>2]=i;J[h+192>>2]=c;Hc(g,2,2348917,h+192|0);J[a+28>>2]=0;c=J[j>>2];break c}J[a+28>>2]=(c-J[a+84>>2]>>>0)/M[a+92>>2]}J[b>>2]=c;if((d|0)<0){J[h+32>>2]= -d;Hc(g,1,2349064,h+32|0);i=0;break a}c=J[j+12>>2];if(c>>>0>>0){J[h+52>>2]=c;J[h+48>>2]=d;Hc(g,1,2349128,h+48|0);i=0;break a}c=J[j+4>>2];d:{if(c>>>0>d>>>0){J[h+180>>2]=c;J[h+176>>2]=d;Hc(g,2,2349253,h+176|0);J[a+32>>2]=0;d=J[j+4>>2];break d}J[a+32>>2]=(d-J[a+88>>2]>>>0)/M[a+96>>2]}J[b+4>>2]=d;i=0;if((e|0)<=0){J[h+64>>2]=e;Hc(g,1,2349383,h- -64|0);break a}c=J[j>>2];if(c>>>0>e>>>0){J[h+84>>2]=c;J[h+80>>2]=e;Hc(g,1,2349478,h+80|0);break a}c=J[j+8>>2];e:{if(c>>>0>>0){J[h+164>>2]=c;J[h+160>>2]=e; -Hc(g,2,2349593,h+160|0);J[a+36>>2]=J[a+104>>2];e=J[j+8>>2];break e}q=a,r=Ys(e-J[a+84>>2]|0,J[a+92>>2]),J[q+36>>2]=r}J[b+8>>2]=e;if((f|0)<=0){J[h+96>>2]=f;Hc(g,1,2349729,h+96|0);break a}c=J[j+4>>2];if(c>>>0>f>>>0){J[h+116>>2]=c;J[h+112>>2]=f;Hc(g,1,2349796,h+112|0);break a}c=J[j+12>>2];f:{if(c>>>0>>0){J[h+148>>2]=c;J[h+144>>2]=f;Hc(g,2,2349919,h+144|0);J[a+40>>2]=J[a+108>>2];f=J[j+12>>2];break f}q=a,r=Ys(f-J[a+88>>2]|0,J[a+96>>2]),J[q+40>>2]=r}J[b+12>>2]=f;H[a+68|0]=K[a+68|0]|2;i=lH(b,g);if(!i){i= -0;break a}a=J[b>>2];c=J[b+4>>2];d=J[b+12>>2];J[h+136>>2]=J[b+8>>2];J[h+140>>2]=d;J[h+128>>2]=a;J[h+132>>2]=c;Hc(g,4,2350059,h+128|0)}bc=h+208|0;return i|0}function aqa(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;f=bc-16|0;bc=f;a:{if(c){g=nk(J[b>>2]);break a}g=J[a+12>>2]}J[a+24>>2]=g;i=f+12|0;d=rc(100);J[d>>2]=2422912;J[d+4>>2]=0;b:{c:{d:{g=J[b>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[b>>2]}J[d+80>>2]=0;J[d+84>>2]=0;J[d+12>>2]=e;J[d+ -8>>2]=e;J[d+96>>2]=-1;J[d+88>>2]=0;J[d+92>>2]=0;J[i>>2]=0;md(i,d);e:{if(c){b=J[d+12>>2];J[695492]=0;b=$(5123,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[d+96>>2]=b}b=32;J[d+84>>2]=32;j=d+16|0;h=J[d+92>>2];e=J[d+88>>2];while(1){f:{if((e|0)>=(h|0)){J[d+88>>2]=0;J[d+92>>2]=0;b=J[d+96>>2];if(!b){J[d+96>>2]=0;break b}c=J[d+12>>2];e=J[J[c>>2]+8>>2];J[695492]=0;h=ga(e|0,c|0,j|0,(b>>>0>=64?64:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[d+92>>2]=h;J[d+96>>2]=J[d+96>>2]-h;if((h|0)<=0)break b; -e=J[d+88>>2];b=J[d+84>>2]}g=e+1|0;J[d+88>>2]=g;c=b-8|0;J[d+84>>2]=c;J[d+80>>2]=J[d+80>>2]|K[(d+e|0)+16|0]<15;b=c;e=g;if(k)continue;break b}break}break c}break c}a=Z()|0;qc(ed(d));ba(a|0);B()}a=Z()|0;vc(i);ba(a|0);B()}J[695492]=0;aa(4993,a- -64|0,i|0)|0;b=J[695492];J[695492]=0;g:{if((b|0)!=1)h:{b=J[f+12>>2];J[f+12>>2]=0;i:{if(!b)break i;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break g;if(c)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)== -1)break g}b=f+12|0;gG(b,2423024,7);J[695492]=0;aa(4993,a+68|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;b=J[f+12>>2];J[f+12>>2]=0;j:{if(!b)break j;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break g;if(c)break j;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break g}b=f+12|0;gG(b,2423088,13);J[695492]=0;aa(4993,a+76|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;b=J[f+12>>2];J[f+12>>2]=0;k:{if(!b)break k;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>> -2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break g;if(c)break k;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break g}b=f+12|0;gG(b,2423728,13);J[695492]=0;aa(4993,a+72|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;a=J[f+12>>2];J[f+12>>2]=0;l:{if(!a)break l;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break g;if(b)break l;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break g}bc=f+16|0;return}a=Z()|0;vc(f+12|0);ba(a|0);B()}ea(0)|0;yc(); -B()}function Mt(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;o=bc-16|0;bc=o;H[a+67|0]=0;a:{if(b){n=bc-48|0;bc=n;J[n+12>>2]=0;l=J[d>>2];j=mK(b,c,0,0,l,e-l>>1,n+12|0,H[a+35|0],j);b:{if((j|0)>=2){m=J[n+12>>2];if((m&520093696)==16777216){e=0;if(K[J[a+24>>2]+200|0]==219)break b}J[d>>2]=((j<<1)+l|0)-4;l=m>>>24&31;c:{if(l>>>0<=3){b=n+16|1;d=b;e=b;d:switch(l-1|0){case 2:H[n+17|0]=m>>>16;d=n+16|2;case 1:H[d|0]=m>>>8;e=d+1|0;break;case 0:break d;default:break c}H[e|0]=m;break c}b=(J[b+32>> -2]+b|0)+(m&16777215)|0}d=J[a+52>>2];e:{if(!d)break e;e=1;f:{if((l|0)==1){m=15;if((d|0)>1)break f}e=2;if(l>>>0<2)break e;m=14;if((d|0)!=1)break e}J[a+52>>2]=e;H[n+16|0]=m;d=n+16|1;if((d|0)!=(b|0))tc(d,b,l);l=l+1|0;b=n+16|0}hi(a,b,l,f,g,h,i,k);e=1;break b}if((j|0)<0){J[a+180>>2]=c;q=-2-j|0;g:{if(j>>>0>4294967293)break g;r=q&3;h:{if(j+5>>>0<3){b=0;break h}s=q&-4;b=0;e=a+184|0;j=0;while(1){p=b<<1;I[p+e>>1]=L[l>>1];I[(p|2)+e>>1]=L[l+2>>1];I[(p|4)+e>>1]=L[l+4>>1];I[(p|6)+e>>1]=L[l+6>>1];b=b+4|0;l=l+8|0; -j=j+4|0;if((s|0)!=(j|0))continue;break}}if(!r)break g;while(1){I[((b<<1)+a|0)+184>>1]=L[l>>1];b=b+1|0;l=l+2|0;m=m+1|0;if((r|0)!=(m|0))continue;break}}J[d>>2]=l;H[a+253|0]=q;e=1;break b}e=0;if((j|0)!=1)break b;H[a+67|0]=1}bc=n+48|0;if(e)break a}i:{j:{if(!(K[a+29|0]&128))break j;if(c>>>0>=65536){if(c>>>0>1114111)break j;b=-65536;j=735904;break i}k:{if(c>>>0>=40870){if(c>>>0>55295)break k;b=-40870;j=735920;break i}if(c>>>0<1106)break j;if(c>>>0<7743){b=-1106;j=735936;break i}if((c|0)==7743)break j;if(c>>> -0>=8208)break k;b=-7744;j=735952;break i}if(c-63788>>>0>4294963E3){b=-59493;j=735968;break i}if(c>>>0<9795)break j;if(c>>>0<11905){b=-9795;j=735984;break i}if(c-65072>>>0>4294966265){b=-64042;j=736E3;break i}if(c-16470>>>0>4294966410){b=-15585;j=736016;break i}if(c>>>0<13851)break j;if(c>>>0<14616){b=-13851;j=736032;break i}if(c-19575>>>0>4294966592){b=-18872;j=736048;break i}if(c>>>0<16736)break j;if(c>>>0<17207){b=-16736;j=736064;break i}if(c-18759>>>0>4294966854){b=-18318;j=736080;break i}if(c>>> -0<17623)break j;if(c>>>0<17996){b=-17623;j=736096;break i}if(c-65536>>>0<=4294967269)break j;b=-65510;j=736112;break i}J[k>>2]=10;t=c;break a}b=(J[j+8>>2]+(b+c|0)|0)-1687218|0;H[o+12|0]=((b>>>0)/12600|0)-127;H[o+13|0]=((b>>>0)/1260>>>0)%10|48;c=(b>>>0)/10|0;H[o+14|0]=((c>>>0)%126|0)-127;H[o+15|0]=b-P(c,10)|48;hi(a,o+12|0,4,f,g,h,i,k)}bc=o+16|0;return t}function Gk(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,w=0,x=0,y=0,z=0,A=0;a:{b:{c:switch(d-4|0){case 4:d= -0;if((b|0)>=32){d=b-32|0;q=d&-32;o=d>>>5|0;r=o+1|0;while(1){d=g<<2;f=J[(d|28)+c>>2];h=J[(d|24)+c>>2];k=J[(d|20)+c>>2];i=J[(d|16)+c>>2];l=J[(d|12)+c>>2];m=J[(d|8)+c>>2];n=J[(d|4)+c>>2];d=J[c+d>>2];J[(j<<2)+a>>2]=(f>>>24|0)-e>>>28&8|((h>>>24|0)-e>>>28&8|((k>>>24|0)-e>>>28&8|((i>>>24|0)-e>>>28&8|((l>>>24|0)-e>>>28&8|((m>>>24|0)-e>>>28&8|((n>>>24|0)-e>>>28&8|((d>>>24|0)-e>>>28&8|(d>>>16&255)-e>>>29&4|(d>>>8&255)-e>>>30&2|(d&255)<(e|0))<<4|(n>>>16&255)-e>>>29&4|(n>>>8&255)-e>>>30&2|(n&255)<(e|0))<<4|(m>>> -16&255)-e>>>29&4|(m>>>8&255)-e>>>30&2|(m&255)<(e|0))<<4|(l>>>16&255)-e>>>29&4|(l>>>8&255)-e>>>30&2|(l&255)<(e|0))<<4|(i>>>16&255)-e>>>29&4|(i>>>8&255)-e>>>30&2|(i&255)<(e|0))<<4|(k>>>16&255)-e>>>29&4|(k>>>8&255)-e>>>30&2|(k&255)<(e|0))<<4|(h>>>16&255)-e>>>29&4|(h>>>8&255)-e>>>30&2|(h&255)<(e|0))<<4|(f>>>16&255)-e>>>29&4|(f>>>8&255)-e>>>30&2|(f&255)<(e|0);g=g+8|0;d=(j|0)!=(o|0);j=j+1|0;if(d)continue;break}d=q+32|0}if((b|0)<=(d|0))break a;while(1){if(!(d&3)){f=J[(g<<2)+c>>2];g=g+1|0}p=((f>>>24|0)<(e| -0))<<(d^-1)|p;f=f<<8;d=d+1|0;if((d|0)!=(b|0))continue;break}break b;case 0:break c;default:break a}if((b|0)>=32){d=b-32|0;k=d&-32;i=d>>>5|0;r=i+1|0;while(1){h=g<<2;d=J[(h|12)+c>>2];f=J[(h|8)+c>>2];l=(f>>>4&15)-e>>>30&2|(f&15)<(e|0);m=(f>>>8&15)-e>>>29&4;n=(f>>>12&15)-e>>>28&8;o=(f>>>16&15)-e>>>27&16;q=(f>>>20&15)-e>>>26&32;s=(f>>>24&15)-e>>>25&64;t=(f>>>28|0)-e>>>24&128;f=J[(h|4)+c>>2];u=(f>>>4&15)-e>>>30&2|(f&15)<(e|0);v=(f>>>8&15)-e>>>29&4;w=(f>>>12&15)-e>>>28&8;x=(f>>>16&15)-e>>>27&16;y=(f>>>20& -15)-e>>>26&32;z=(f>>>24&15)-e>>>25&64;A=(f>>>28|0)-e>>>24&128;f=J[c+h>>2];J[(j<<2)+a>>2]=(d>>>4&15)-e>>>30&2|(d&15)<(e|0)|((d>>>8&15)-e>>>29&4|((d>>>12&15)-e>>>28&8|((d>>>16&15)-e>>>27&16|((d>>>20&15)-e>>>26&32|((d>>>24&15)-e>>>25&64|((d>>>28|0)-e>>>24&128|(l|(m|(n|(o|(q|(s|(t|(u|(v|(w|(x|(y|(z|(A|((f>>>4&15)-e>>>30&2|(f&15)<(e|0)|((f>>>8&15)-e>>>29&4|((f>>>12&15)-e>>>28&8|((f>>>16&15)-e>>>27&16|((f>>>20&15)-e>>>26&32|((f>>>28|0)-e>>>24&128|(f>>>24&15)-e>>>25&64))))))<<8)))))))<<8)))))))<<8)))))); -g=g+4|0;f=(j|0)!=(i|0);j=j+1|0;if(f)continue;break}f=k+32|0}if((b|0)<=(f|0))break a;while(1){if(!(f&7)){d=J[(g<<2)+c>>2];g=g+1|0}p=((d>>>28|0)<(e|0))<<(f^-1)|p;d=d<<4;f=f+1|0;if((f|0)!=(b|0))continue;break}}J[(r<<2)+a>>2]=p}}function nvb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=gc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;d=J[a+580>>2];b=(c+(d<<2)|0)+(J[a+672>>2]<<2)|0;c=d;d=J[a+656>>2];e=c+d|0;d=(d|0)/J[a+584>>2]|0;c=J[a+660>>2]; -f=K[a+649|0];g=J[a+644>>2];if(!K[a+648|0]){d=g+(d<<2)|0;if(f){if((c|0)<=(e|0))break a;while(1){b:{c:{c=K[d+3|0];if((c|0)!=255){if(c)break c;J[b>>2]=0;break b}H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];c=K[d+2|0];H[b+3|0]=255;H[b+2|0]=c;break b}H[b|0]=((P(c,K[d|0])+127&65535)>>>0)/255;H[b+1|0]=((P(c,K[d+1|0])+127&65535)>>>0)/255;f=K[d+2|0];H[b+3|0]=c;H[b+2|0]=((P(c,f)+127&65535)>>>0)/255}d=d+4|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c= -K[d+3|0];d:{if(!c)break d;if((c|0)==255){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];c=K[d+2|0];H[b+3|0]=255;H[b+2|0]=c;break d}f=c^255;H[b|0]=((P(c,K[d|0])+P(f,K[b|0])|0)+127>>>0)/255;H[b+1|0]=((P(c,K[d+1|0])+P(f,K[b+1|0])|0)+127>>>0)/255;g=K[d+2|0];H[b+3|0]=((P(f,K[b+3|0]^255)+127&65535)>>>0)/255^-1;H[b+2|0]=((P(c,g)+P(f,K[b+2|0])|0)+127>>>0)/255}d=d+4|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}d=g+(d<<3)|0;if(f){if((c|0)<=(e|0))break a;while(1){e:{f:{c=K[d+6|0];if((c| -0)!=255){if(c)break f;J[b>>2]=0;break e}H[b|0]=K[d|0];H[b+1|0]=K[d+2|0];c=K[d+4|0];H[b+3|0]=255;H[b+2|0]=c;break e}H[b|0]=((P(c,K[d|0])+127&65535)>>>0)/255;H[b+1|0]=((P(c,K[d+2|0])+127&65535)>>>0)/255;f=K[d+4|0];H[b+3|0]=c;H[b+2|0]=((P(c,f)+127&65535)>>>0)/255}d=d+8|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[d+6|0];g:{if(!c)break g;if((c|0)==255){H[b|0]=K[d|0];H[b+1|0]=K[d+2|0];c=K[d+4|0];H[b+3|0]=255;H[b+2|0]=c;break g}f= -c^255;H[b|0]=((P(c,K[d|0])+P(f,K[b|0])|0)+127>>>0)/255;H[b+1|0]=((P(c,K[d+2|0])+P(f,K[b+1|0])|0)+127>>>0)/255;g=K[d+4|0];H[b+3|0]=((P(f,K[b+3|0]^255)+127&65535)>>>0)/255^-1;H[b+2|0]=((P(c,g)+P(f,K[b+2|0])|0)+127>>>0)/255}d=d+8|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}}b=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];d=J[a+556>>2];c=J[a+672>>2];h:{if((c|0)>=J[a+552>>2]){if(d)break h;d=0}J[a+552>>2]=c}c=d;d=J[a+676>>2];if((c|0)<(d|0))J[a+556>>2]=d;d=J[a+564>>2];b=b-e|0;i:{if((b| -0)>=J[a+560>>2]){if(d)break i;d=0}J[a+560>>2]=b}if((b|0)>=(d|0))J[a+564>>2]=b+1;return 0}function gvb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=gc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;d=J[a+580>>2];b=(c+(d<<2)|0)+(J[a+672>>2]<<2)|0;c=d;d=J[a+656>>2];e=c+d|0;d=(d|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];if(!K[a+648|0]){d=g+(d<<2)|0;if(f){if((c|0)<=(e|0))break a;while(1){b:{c:{c=K[d+3|0];if((c|0)!=255){if(c)break c; -J[b>>2]=0;break b}H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];c=K[d|0];H[b+3|0]=255;H[b+2|0]=c;break b}H[b|0]=((P(c,K[d+2|0])+127&65535)>>>0)/255;H[b+1|0]=((P(c,K[d+1|0])+127&65535)>>>0)/255;f=K[d|0];H[b+3|0]=c;H[b+2|0]=((P(c,f)+127&65535)>>>0)/255}d=d+4|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[d+3|0];d:{if(!c)break d;if((c|0)==255){H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];c=K[d|0];H[b+3|0]=255;H[b+2|0]=c;break d}f=c^255;H[b|0]=((P(c,K[d+ -2|0])+P(f,K[b|0])|0)+127>>>0)/255;H[b+1|0]=((P(c,K[d+1|0])+P(f,K[b+1|0])|0)+127>>>0)/255;g=K[d|0];H[b+3|0]=((P(f,K[b+3|0]^255)+127&65535)>>>0)/255^-1;H[b+2|0]=((P(c,g)+P(f,K[b+2|0])|0)+127>>>0)/255}d=d+4|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}d=g+(d<<3)|0;if(f){if((c|0)<=(e|0))break a;while(1){e:{f:{c=K[d+6|0];if((c|0)!=255){if(c)break f;J[b>>2]=0;break e}H[b|0]=K[d+4|0];H[b+1|0]=K[d+2|0];c=K[d|0];H[b+3|0]=255;H[b+2|0]=c;break e}H[b|0]=((P(c,K[d+4|0])+127& -65535)>>>0)/255;H[b+1|0]=((P(c,K[d+2|0])+127&65535)>>>0)/255;f=K[d|0];H[b+3|0]=c;H[b+2|0]=((P(c,f)+127&65535)>>>0)/255}d=d+8|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[d+6|0];g:{if(!c)break g;if((c|0)==255){H[b|0]=K[d+4|0];H[b+1|0]=K[d+2|0];c=K[d|0];H[b+3|0]=255;H[b+2|0]=c;break g}f=c^255;H[b|0]=((P(c,K[d+4|0])+P(f,K[b|0])|0)+127>>>0)/255;H[b+1|0]=((P(c,K[d+2|0])+P(f,K[b+1|0])|0)+127>>>0)/255;g=K[d|0];H[b+3|0]=((P(f,K[b+3| -0]^255)+127&65535)>>>0)/255^-1;H[b+2|0]=((P(c,g)+P(f,K[b+2|0])|0)+127>>>0)/255}d=d+8|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}}b=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];d=J[a+556>>2];c=J[a+672>>2];h:{if((c|0)>=J[a+552>>2]){if(d)break h;d=0}J[a+552>>2]=c}c=d;d=J[a+676>>2];if((c|0)<(d|0))J[a+556>>2]=d;d=J[a+564>>2];b=b-e|0;i:{if((b|0)>=J[a+560>>2]){if(d)break i;d=0}J[a+560>>2]=b}if((b|0)>=(d|0))J[a+564>>2]=b+1;return 0}function Oxa(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-32| -0;bc=b;d=a+8|0;a:{if(J[a+8>>2]){ei(b+28|0,a,d);break a}J[b+28>>2]=0;md(b+28|0,0)}b:{c:{d:{e:{if(J[d>>2]){J[695492]=0;ca(5353,b+24|0,a|0,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e;break d}J[695492]=0;J[b+24>>2]=0;aa(4985,b+24|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d}f:{g:{h:{if(J[d>>2]){J[695492]=0;ca(5351,b+20|0,a|0,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break h;break g}J[695492]=0;J[b+20>>2]=0;aa(4985,b+20|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g}i:{j:{k:{if(J[d>>2]){J[695492]= -0;ca(5352,b+16|0,a|0,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break k;break j}J[695492]=0;J[b+16>>2]=0;aa(4985,b+16|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j}l:{m:{if(J[d>>2]){J[695492]=0;ca(5354,b+12|0,a|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)break m;break l}J[695492]=0;J[b+12>>2]=0;aa(4985,b+12|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l}n:{o:{a=J[b+28>>2];if(!a)break o;d=J[a+8>>2];if((d|0)<=0)break o;c=J[a+12>>2];if((c|0)<=0)break o;a=J[b+24>>2];if(!a|(d|0)!=J[a+72>>2]|(J[b+ -20>>2]|(c|0)!=J[a+76>>2]))break o;if(J[b+16>>2])break o;a=J[b+12>>2];d=!a;break n}a=J[b+12>>2];d=0}J[b+12>>2]=0;p:{if(!a)break p;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(c)break p;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[b+16>>2];J[b+16>>2]=0;q:{if(!a)break q;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(c)break q;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a= -J[b+20>>2];J[b+20>>2]=0;r:{if(!a)break r;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(c)break r;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[b+24>>2];J[b+24>>2]=0;s:{if(!a)break s;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(c)break s;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[b+28>>2];J[b+28>>2]=0;t:{u:{if(!a)break u;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e= -J[695492];J[695492]=0;if((e|0)==1)break t;if(c)break u;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break t}bc=b+32|0;return d|0}break b}a=Z()|0;vc(b+16|0);break i}a=Z()|0}vc(b+20|0);break f}a=Z()|0}vc(b+24|0);break c}a=Z()|0}vc(b+28|0);ba(a|0);B()}ea(0)|0;yc();B()}function pma(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;a=J[a+12>>2];h=O[b>>3];k=O[d>>3];l=O[e>>3];m=O[f>>3];n=O[g>>3];g=bc-48|0;bc=g;o=O[c>>3];O[g+32>>3]=o;O[g+40>> -3]=h;O[g+24>>3]=k;O[g+16>>3]=l;O[g+8>>3]=m;O[g>>3]=n;a:{if(J[a+2232>>2]==512){f=a+1984|0;a=g+40|0;b=g+32|0;je(J[f+48>>2],a,b);c=g+24|0;d=g+16|0;je(J[f+48>>2],c,d);j=g+8|0;je(J[f+48>>2],j,g);q=f+72|0;e=bc-32|0;bc=e;h=O[g>>3];k=O[j>>3];l=O[d>>3];m=O[c>>3];n=O[b>>3];o=O[a>>3];J[695492]=0;b=e+20|0;J[e+24>>2]=b;a=$(4,24)|0;d=J[695492];J[695492]=0;b:{c=0;c:{if((d|0)==1)break c;O[a+8>>3]=o;O[a+16>>3]=n;J[a+4>>2]=b;J[a>>2]=b;J[695492]=0;J[e+24>>2]=a;b=$(4,24)|0;c=J[695492];J[695492]=0;if((c|0)==1){b=a;c= -1;break c}O[b+8>>3]=m;J[b>>2]=a;O[b+16>>3]=l;J[b+4>>2]=e+20;J[a+4>>2]=b;J[695492]=0;c=$(4,24)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break b;c=2}a=Z()|0;J[e+28>>2]=c;J[e+20>>2]=b;Zo(e+20|0);ba(a|0);B()}O[c+8>>3]=k;J[c>>2]=b;O[c+16>>3]=h;J[c+4>>2]=e+20;J[b+4>>2]=c;J[e+28>>2]=3;J[e+20>>2]=c;J[e+16>>2]=0;d=e+8|0;J[e+12>>2]=d;J[e+4>>2]=2;c=d;j=0;d:{e:{f:{while(1){J[695492]=0;b=$(4,24)|0;i=J[695492];J[695492]=0;if((i|0)==1)break f;i=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=i;i=J[a+20>>2];J[b+16>>2]=J[a+ -16>>2];J[b+20>>2]=i;J[b+4>>2]=d;J[b>>2]=c;J[c+4>>2]=b;j=j+1|0;J[e+16>>2]=j;c=b;a=J[a+4>>2];if((a|0)!=(e+20|0))continue;break}J[695492]=0;J[e+8>>2]=b;a=$(4,24)|0;c=J[695492];J[695492]=0;g:{h:{if((c|0)!=1){J[a+8>>2]=2;J[a+20>>2]=0;c=a+12|0;J[a+16>>2]=c;J[a+12>>2]=c;if(j){d=J[e+12>>2];i=J[d>>2];p=J[b+4>>2];J[i+4>>2]=p;J[p>>2]=i;i=J[a+12>>2];J[i+4>>2]=d;J[d>>2]=i;J[a+12>>2]=b;J[b+4>>2]=c;J[a+20>>2]=j}J[a+4>>2]=q;b=J[f+72>>2];J[a>>2]=b;J[b+4>>2]=a;J[f+72>>2]=a;J[f+80>>2]=J[f+80>>2]+1;a=J[e+24>>2];if((a| -0)!=(e+20|0))break h;a=J[a>>2];b=J[J[e+20>>2]+4>>2];J[a+4>>2]=b;J[b>>2]=a;break g}b=Z()|0;lz(e+4|0);break e}k=O[f+112>>3];l=O[f+96>>3];m=O[f+104>>3];n=O[f+88>>3];b=a;while(1){h=O[b+8>>3];if(h>3]=h;n=h}if(h>m){O[f+104>>3]=h;m=h}h=O[b+16>>3];if(h>3]=h;l=h}if(h>k){O[f+112>>3]=h;k=h}b=J[b+4>>2];c=e+20|0;if((b|0)!=(c|0))continue;break}b=J[a>>2];d=J[J[e+20>>2]+4>>2];J[b+4>>2]=d;J[d>>2]=b;J[e+28>>2]=0;if((a|0)==(c|0))break g;while(1){b=J[a+4>>2];qc(a);a=b;if((a|0)!=(e+20|0))continue; -break}}bc=e+32|0;break d}b=Z()|0;J[e+8>>2]=c;Zo(d)}Zo(e+20|0);ba(b|0);B()}break a}a=a+2312|0;gc[J[J[a>>2]+8>>2]](a,h,o,k,l,m,n)|0}bc=g+48|0;return 0}function q3(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,I=0,L=0;g=J[a+4>>2];f=J[g>>2];t=O[f+32>>3];u=O[f>>3];y=O[f+16>>3];v=O[f+40>>3];w=O[f+8>>3];o=O[a+16>>3];m=O[f+24>>3];h=O[a+24>>3];l=(e|0)<=1?1:e;J[g+24>>2]=l;J[g+4>>2]=l;s=o+ +(c|0);o=m;m=h+ +(d|0);x=o*m;h=(v+(w*s+ -x))*256;h=h+(h<0?-.5:.5);a:{if(R(h)<2147483648){d=~~h;break a}d=-2147483648}J[g+40>>2]=d;o=m*y;h=(t+(s*u+o))*256;h=h+(h<0?-.5:.5);b:{if(R(h)<2147483648){c=~~h;break b}c=-2147483648}J[g+20>>2]=c;m=s+ +(e>>>0);h=(v+(m*w+x))*256;h=h+(h<0?-.5:.5);c:{if(R(h)<2147483648){k=~~h;break c}k=-2147483648}f=k-d|0;d=(f|0)/(l|0)|0;j=f-P(d,l)|0;i=(j|0)<=0;J[g+28>>2]=d-i;h=(t+(m*u+o))*256;h=h+(h<0?-.5:.5);d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}d=d-c|0;c=(d|0)/(l|0)|0;k=c;f=d-P(c,l)|0;c=(f|0)<=0;J[g+8>> -2]=k-c;d=j+(i?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e;c=J[a+4>>2];g=J[c+40>>2];d=J[c+20>>2];while(1){c=J[a+36>>2];j=J[a>>2];p=d-J[a+32>>2]|0;d=p>>8;J[j+8>>2]=d;n=g-c|0;f=(J[j+28>>2]+(n>>8)>>>0)%M[j+24>>2]|0;J[j+32>>2]=f;c=J[J[j>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];k=d+J[j+16>>2]|0;d=J[j+12>>2];i=(k>>>0)%(d>>>0)|0;J[j+20>>2]=i;g=g+P(c,f)|0;J[j+4>>2]=g;c=g+(i<<2)|0;z=K[c+2|0];A=K[c+1|0];B=K[c|0];q=K[c+3|0];c=i+1|0;c=c>>>0>>0?c:0;J[j+20>>2]=c;c=g+(c<<2)|0;C=K[c+2| -0];D=K[c+1|0];E=K[c|0];k=K[c+3|0];i=J[a>>2];c=J[i+32>>2]+1|0;f=c>>>0>2]?c:0;J[i+32>>2]=f;c=J[J[i>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];d=(J[i+16>>2]+J[i+8>>2]>>>0)%M[i+12>>2]|0;J[i+20>>2]=d;c=g+P(c,f)|0;J[i+4>>2]=c;c=c+(d<<2)|0;F=K[c+2|0];G=K[c+1|0];l=K[c|0];j=K[c+3|0];d=J[a>>2];c=J[d+20>>2]+1|0;c=c>>>0>2]?c:0;J[d+20>>2]=c;r=J[d+4>>2]+(c<<2)|0;i=K[r+2|0];f=K[r+1|0];g=K[r|0];I=q;p=p&255;d=256-p|0;q=n&255;c=256-q|0;n=P(d,c);L=k;k=P(c,p);d=P(d,q);c=P(p,q);H[b+3|0]=(((P(I,n)+P(L,k)|0)+P(d, -j)|0)+P(c,K[r+3|0])|0)+32768>>>16;H[b+2|0]=(((P(n,B)+P(k,E)|0)+P(d,l)|0)+P(c,g)|0)+32768>>>16;H[b+1|0]=(((P(n,A)+P(k,D)|0)+P(d,G)|0)+P(c,f)|0)+32768>>>16;H[b|0]=(((P(n,z)+P(k,C)|0)+P(d,F)|0)+P(c,i)|0)+32768>>>16;f=J[a+4>>2];c=J[f+16>>2]+J[f+12>>2]|0;J[f+16>>2]=c;d=J[f+20>>2]+J[f+8>>2]|0;J[f+20>>2]=d;if((c|0)>0){d=d+1|0;J[f+20>>2]=d;J[f+16>>2]=c-J[f+4>>2]}c=J[f+36>>2]+J[f+32>>2]|0;J[f+36>>2]=c;g=J[f+40>>2]+J[f+28>>2]|0;J[f+40>>2]=g;if((c|0)>0){g=g+1|0;J[f+40>>2]=g;J[f+36>>2]=c-J[f+24>>2]}b=b+4|0;e= -e-1|0;if(e)continue;break}}function kM(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;i=bc-16|0;bc=i;J[i+8>>2]=0;p=J[J[a>>2]+28>>2];J[b>>2]=0;a:{b:{if(J[a+28>>2])break b;J[i+12>>2]=0;c:{f=J[a+12>>2];if(f){j=K[a+16|0];k=J[a>>2];h=J[k+28>>2];f=f+1|0;r=a,s=Sc(h,4,0,f,0,i+12|0),J[r+28>>2]=s;if(J[i+12>>2])break c;g=nd(k,J[a+8>>2]+J[a+4>>2]|0);J[i+12>>2]=g;if(g)break c;g=P(f,j);f=Ue(k,g);J[i+12>>2]=f;if(f)break c;e=J[k+32>>2];l=g+e|0;f=J[a+28>>2];d:{e:switch(j-1|0){case 2:if((g| -0)<=0)break d;while(1){J[f>>2]=K[e+2|0]|(K[e+1|0]<<8|K[e|0]<<16);f=f+4|0;e=e+3|0;if(l>>>0>e>>>0)continue;break}break d;case 1:if((g|0)<=0)break d;while(1){J[f>>2]=K[e+1|0]|K[e|0]<<8;f=f+4|0;e=e+2|0;if(l>>>0>e>>>0)continue;break}break d;case 0:if((g|0)<=0)break d;while(1){J[f>>2]=K[e|0];f=f+4|0;e=e+1|0;if(l>>>0>e>>>0)continue;break}break d;default:break e}if((g|0)<=0)break d;while(1){g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[f>>2]=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);f=f+4|0;e=e+4|0;if(l>>> -0>e>>>0)continue;break}}ne(k);if(J[i+12>>2])break c}J[i+8>>2]=0;break b}f=J[a+28>>2];if(f)gc[J[h+8>>2]](h,f);J[a+28>>2]=0;e=J[i+12>>2];J[i+8>>2]=e;if(e)break a}e=0;f=J[a+12>>2];if(!f)break a;g=J[a+24>>2];l=i+8|0;k=Sc(p,4,0,f+1|0,0,l);e=J[i+8>>2];f:{if(e)break f;q=f+g|0;g:{h:{i:{j:{if(c){l=Zd(p,q,l);if(J[i+8>>2])break g;o=J[a+32>>2];J[k>>2]=l;m=J[a+12>>2];if(m){e=1;j=0;f=0;while(1){g=e<<2;n=J[g+J[a+28>>2]>>2]-1|0;k:{if(n>>>0>>0){J[g+k>>2]=(f+l|0)+j;break k}h=g+k|0;g=J[a+24>>2];g=g>>>0>n>>>0?n:g; -n=(g+l|0)+j|0;J[h>>2]=n;if((f|0)!=(g|0)){m=J[h-4>>2];tc(m,f+o|0,n-m|0);H[J[h>>2]]=0;J[h>>2]=J[h>>2]+1;m=J[a+12>>2];j=j+1|0}f=g}e=e+1|0;if(m>>>0>=e>>>0)continue;break}break j}J[b>>2]=k;break i}g=J[a+32>>2];J[k>>2]=g;e=J[a+12>>2];if(!e){l=0;break j}f=1;j=e+1|0;h=(j>>>0<=2?2:j)-1|0;m=h&1;l=0;e=0;if(j>>>0>=3){n=h&-2;j=0;while(1){o=f<<2;h=J[o+J[a+28>>2]>>2]-1|0;if(h>>>0>=e>>>0){e=J[a+24>>2];e=e>>>0>h>>>0?h:e}J[k+o>>2]=e+g;o=f+1<<2;h=J[o+J[a+28>>2]>>2]-1|0;if(h>>>0>=e>>>0){e=J[a+24>>2];e=e>>>0>h>>>0?h: -e}J[k+o>>2]=e+g;f=f+2|0;j=j+2|0;if((n|0)!=(j|0))continue;break}}if(!m)break j;j=f<<2;f=J[j+J[a+28>>2]>>2]-1|0;if(f>>>0>=e>>>0){a=J[a+24>>2];e=a>>>0>f>>>0?f:a}J[k+j>>2]=e+g}J[b>>2]=k;if(!c)break h}J[c>>2]=l}if(!d)break g;J[d>>2]=q}e=J[i+8>>2];if(!e|!l)break f;if(l)gc[J[p+8>>2]](p,l);e=J[i+8>>2]}if(!e|!k)break a;if(k)gc[J[p+8>>2]](p,k);e=J[i+8>>2]}bc=i+16|0;return e}function _2(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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0, -G=0,I=0,L=0;g=J[a+4>>2];f=J[g>>2];t=O[f+32>>3];u=O[f>>3];y=O[f+16>>3];v=O[f+40>>3];w=O[f+8>>3];o=O[a+16>>3];m=O[f+24>>3];h=O[a+24>>3];l=(e|0)<=1?1:e;J[g+24>>2]=l;J[g+4>>2]=l;s=o+ +(c|0);o=m;m=h+ +(d|0);x=o*m;h=(v+(w*s+x))*256;h=h+(h<0?-.5:.5);a:{if(R(h)<2147483648){d=~~h;break a}d=-2147483648}J[g+40>>2]=d;o=m*y;h=(t+(s*u+o))*256;h=h+(h<0?-.5:.5);b:{if(R(h)<2147483648){c=~~h;break b}c=-2147483648}J[g+20>>2]=c;m=s+ +(e>>>0);h=(v+(m*w+x))*256;h=h+(h<0?-.5:.5);c:{if(R(h)<2147483648){k=~~h;break c}k=-2147483648}f= -k-d|0;d=(f|0)/(l|0)|0;j=f-P(d,l)|0;i=(j|0)<=0;J[g+28>>2]=d-i;h=(t+(m*u+o))*256;h=h+(h<0?-.5:.5);d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}d=d-c|0;c=(d|0)/(l|0)|0;k=c;f=d-P(c,l)|0;c=(f|0)<=0;J[g+8>>2]=k-c;d=j+(i?e:0)|0;J[g+32>>2]=d;c=f+(c?e:0)|0;J[g+12>>2]=c;J[g+36>>2]=d-e;J[g+16>>2]=c-e;c=J[a+4>>2];g=J[c+40>>2];d=J[c+20>>2];while(1){c=J[a+36>>2];j=J[a>>2];p=d-J[a+32>>2]|0;d=p>>8;J[j+8>>2]=d;n=g-c|0;f=(J[j+28>>2]+(n>>8)>>>0)%M[j+24>>2]|0;J[j+32>>2]=f;c=J[J[j>>2]>>2];g=J[c+4>>2];c=J[c+16>> -2];k=d+J[j+16>>2]|0;d=J[j+12>>2];i=(k>>>0)%(d>>>0)|0;J[j+20>>2]=i;g=g+P(c,f)|0;J[j+4>>2]=g;c=g+(i<<2)|0;z=K[c|0];A=K[c+1|0];B=K[c+2|0];q=K[c+3|0];c=i+1|0;c=c>>>0>>0?c:0;J[j+20>>2]=c;c=g+(c<<2)|0;C=K[c|0];D=K[c+1|0];E=K[c+2|0];k=K[c+3|0];i=J[a>>2];c=J[i+32>>2]+1|0;f=c>>>0>2]?c:0;J[i+32>>2]=f;c=J[J[i>>2]>>2];g=J[c+4>>2];c=J[c+16>>2];d=(J[i+16>>2]+J[i+8>>2]>>>0)%M[i+12>>2]|0;J[i+20>>2]=d;c=g+P(c,f)|0;J[i+4>>2]=c;c=c+(d<<2)|0;F=K[c|0];G=K[c+1|0];l=K[c+2|0];j=K[c+3|0];d=J[a>>2];c=J[d+20>>2]+ -1|0;c=c>>>0>2]?c:0;J[d+20>>2]=c;r=J[d+4>>2]+(c<<2)|0;i=K[r|0];f=K[r+1|0];g=K[r+2|0];I=q;p=p&255;d=256-p|0;q=n&255;c=256-q|0;n=P(d,c);L=k;k=P(c,p);d=P(d,q);c=P(p,q);H[b+3|0]=(((P(I,n)+P(L,k)|0)+P(d,j)|0)+P(c,K[r+3|0])|0)+32768>>>16;H[b+2|0]=(((P(n,B)+P(k,E)|0)+P(d,l)|0)+P(c,g)|0)+32768>>>16;H[b+1|0]=(((P(n,A)+P(k,D)|0)+P(d,G)|0)+P(c,f)|0)+32768>>>16;H[b|0]=(((P(n,z)+P(k,C)|0)+P(d,F)|0)+P(c,i)|0)+32768>>>16;f=J[a+4>>2];c=J[f+16>>2]+J[f+12>>2]|0;J[f+16>>2]=c;d=J[f+20>>2]+J[f+8>>2]|0;J[f+20>> -2]=d;if((c|0)>0){d=d+1|0;J[f+20>>2]=d;J[f+16>>2]=c-J[f+4>>2]}c=J[f+36>>2]+J[f+32>>2]|0;J[f+36>>2]=c;g=J[f+40>>2]+J[f+28>>2]|0;J[f+40>>2]=g;if((c|0)>0){g=g+1|0;J[f+40>>2]=g;J[f+36>>2]=c-J[f+24>>2]}b=b+4|0;e=e-1|0;if(e)continue;break}}function yL(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=bc-16|0;bc=g;J[a+4>>2]=c;J[a>>2]=b;J[a+400>>2]=J[c+124>>2];J[a+404>>2]=J[c+128>>2];J[a+412>>2]=J[c+136>>2];J[a+416>>2]=J[c+140>>2];J[a+408>>2]=J[c+132>>2];J[a+420>>2]=J[c+144>>2];J[a+216>>2]=J[c+120>>2];d=J[c+80>>2];J[a+ -248>>2]=J[c+76>>2];J[a+252>>2]=d;d=J[c+88>>2];J[a+256>>2]=J[c+84>>2];J[a+260>>2]=d;d=J[c+96>>2];J[a+264>>2]=J[c+92>>2];J[a+268>>2]=d;d=J[c+104>>2];J[a+272>>2]=J[c+100>>2];J[a+276>>2]=d;d=J[c+112>>2];J[a+280>>2]=J[c+108>>2];J[a+284>>2]=d;d=J[c+44>>2];e=J[d+4>>2];J[a+220>>2]=J[d>>2];J[a+224>>2]=e;e=J[d+12>>2];J[a+228>>2]=J[d+8>>2];J[a+232>>2]=e;e=J[d+20>>2];J[a+236>>2]=J[d+16>>2];J[a+240>>2]=e;J[a+244>>2]=J[d+24>>2];J[a+424>>2]=J[c+148>>2];J[a+428>>2]=J[c+152>>2];d=J[c+160>>2];J[a+448>>2]=J[c+156>> -2];J[a+452>>2]=d;d=J[c+168>>2];J[a+456>>2]=J[c+164>>2];J[a+460>>2]=d;d=J[c+176>>2];J[a+464>>2]=J[c+172>>2];J[a+468>>2]=d;tc(a+288|0,c+180|0,68);J[a+384>>2]=J[c+248>>2];J[a+388>>2]=J[c+252>>2];I[a+472>>1]=L[c+256>>1];J[a+476>>2]=J[c+260>>2];d=J[c+268>>2];J[a+180>>2]=J[c+264>>2];J[a+184>>2]=d;d=J[c+276>>2];J[a+188>>2]=J[c+272>>2];J[a+192>>2]=d;d=J[c+284>>2];J[a+196>>2]=J[c+280>>2];J[a+200>>2]=d;d=J[c+292>>2];J[a+204>>2]=J[c+288>>2];J[a+208>>2]=d;J[a+212>>2]=J[c+296>>2];e=wc(a+36|0,0,108);f=J[a+8>>2]; -a:{b:{c:{c=L[b+284>>1]+32|0;d=J[a+20>>2];d:{if(c>>>0<=d>>>0){c=d;break d}h=a,i=Sc(f,1,d<<2,c<<2,J[a+24>>2],g+8|0),J[h+24>>2]=i;f=J[g+8>>2];if(f)break c;f=J[a+8>>2]}J[a+20>>2]=c;c=L[b+286>>1];b=J[a+392>>2];if(c>>>0<=b>>>0){c=b;break b}h=a,i=Sc(f,1,b,c,J[a+396>>2],g+12|0),J[h+396>>2]=i;f=J[g+12>>2];if(!f)break b;J[a+392>>2]=b&65535;break a}J[a+20>>2]=d;break a}f=0;J[a+152>>2]=0;J[a+392>>2]=c&65535;J[a+104>>2]=J[a+176>>2];b=J[a+172>>2];J[a+96>>2]=J[a+168>>2];J[a+100>>2]=b;b=J[a+164>>2];J[a+88>>2]=J[a+ -160>>2];J[a+92>>2]=b;b=J[a+148>>2];J[a+72>>2]=J[a+144>>2];J[a+76>>2]=b;b=J[a+156>>2];J[a+80>>2]=J[a+152>>2];J[a+84>>2]=b;J[a+140>>2]=J[a+176>>2];b=J[a+172>>2];J[a+132>>2]=J[a+168>>2];J[a+136>>2]=b;b=J[a+164>>2];J[a+124>>2]=J[a+160>>2];J[a+128>>2]=b;b=J[a+156>>2];J[a+116>>2]=J[a+152>>2];J[a+120>>2]=b;b=J[a+148>>2];J[a+108>>2]=J[a+144>>2];J[a+112>>2]=b;J[e+32>>2]=J[a+176>>2];b=J[a+172>>2];J[e+24>>2]=J[a+168>>2];J[e+28>>2]=b;b=J[a+164>>2];J[e+16>>2]=J[a+160>>2];J[e+20>>2]=b;b=J[a+156>>2];J[e+8>>2]=J[a+ -152>>2];J[e+12>>2]=b;b=J[a+148>>2];J[e>>2]=J[a+144>>2];J[e+4>>2]=b;H[a+492|0]=0}bc=g+16|0;return f}function cBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-48|0;bc=d;e=kf(c);a:{b:{c:{b=J[J[b+28>>2]+((e>>>0)%M[b+24>>2]<<2)>>2];if(b)while(1){if((e|0)==J[b+12>>2])if(!tj(b+16|0,c,-1))break c;b=J[b+8>>2];if(b)continue;break}a=Uk(d+8|0,2377509);J[695492]=0;ca(5122,d+16|0,a|0,c|0);b=J[695492];J[695492]=0;d:{e:{f:{if((b|0)!=1){b=J[d+16>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;b=ja(5018,d+24|0,b|0,2374282, -249,2389148,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;break b}b=Z()|0;sc(a);ba(b|0);B()}c=Z()|0;break d}c=Z()|0;Fc(b)}sc(d+16|0);sc(a);ba(c|0);B()}e=J[b+24>>2];J[e+4>>2]=J[e+4>>2]+1;b=J[b+24>>2];J[a>>2]=b;J[695492]=0;e=d+4|0;da(5151,e|0,b|0);b=J[695492];J[695492]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{if((b|0)!=1){J[695492]=0;da(5108,d|0,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break p;J[695492]=0;b=J[d>>2];J[d+16>>2]=0;J[d+20>>2]= -J[682146];b=ha(5109,b|0,d+16|0,0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break k;if((b|0)>=0)break l;J[695492]=0;ca(5048,d+8|0,2378204,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break o;b=J[d+8>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;e=ja(5018,d+24|0,b|0,2374282,260,2389148,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break n;J[695492]=0;_(5019,e|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=ea(0)|0;Fc(e);break m}b=ea(0)|0;break h}b=ea(0)|0;break i}b=ea(0)|0;break j}b=ea(0)|0}sc(d+8|0);break j}sc(d+ -16|0);a=J[d>>2];J[d>>2]=0;q:{if(!a)break q;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break q;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[d+4>>2];J[d+4>>2]=0;r:{if(!a)break r;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break g;if(b)break r;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break g}bc=d+48|0;return}b=ea(0)|0}sc(d+16|0);vc(d)}vc(d+4|0)}na(b|0)|0;J[695492]=0;ca(5048,d+16| -0,2378204,c|0);b=J[695492];J[695492]=0;s:{t:{u:{if((b|0)!=1){b=J[d+16>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;c=ja(5018,d+24|0,b|0,2374282,264,2389148,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break u;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(c);break t}b=Z()|0;break s}b=Z()|0}sc(d+16|0)}J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)!=1){vc(a);ba(b|0);B()}break a}break a}B()}ea(0)|0;yc();B()}function GV(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;a:{b:{c:{d=J[a+200>>2];if(d&1){if(d&4){Yc(a,66930);Ld(a,c);return}if(!(!b|!(K[b+9|0]&4))){Yc(a,66954);Ld(a,c);return}rd(a,J[a+740>>2]);d=gg(a,c+1|0);J[a+740>>2]=d;if(!d){Yc(a,66975);return}qg(a,d,c);pe(a,d,c);f=Ld(a,0);d=J[a+740>>2];if(f){rd(a,d);J[a+740>>2]=0;return}H[c+d|0]=0;f=J[a+740>>2];d=f;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}k=c+f|0;if((k-e|0)<=12){Yc(a,67002);break b}d=H[d|0];c=d&255;if((d|0)<0)f=0-(P(K[e+2|0],2147418112)-(K[e+4|0]|(K[e+3|0]<<8|c<<24))&2147483647)|0; -else f=K[e+4|0]|(K[e+2|0]<<16|c<<24|K[e+3|0]<<8);d=H[e+5|0];c=d&255;if((d|0)<0)h=0-(P(K[e+6|0],2147418112)-(K[e+8|0]|(K[e+7|0]<<8|c<<24))&2147483647)|0;else h=K[e+8|0]|(K[e+6|0]<<16|c<<24|K[e+7|0]<<8);j=K[e+9|0];g=K[e+10|0];if(!(!(!j&(g|0)!=2|(g|0)!=3&(j-1&255)>>>0<=1)&((g|0)==4|(j|0)!=3))){Yc(a,67020);break b}if(j>>>0>=4)Yc(a,67062);e=e+11|0;d=e;while(1){c=d;d=c+1|0;if(K[c|0])continue;break}l=gg(a,g<<2);if(!l)break c;if(g)while(1){c=c+1|0;J[l+(i<<2)>>2]=c;d:{if(c>>>0<=k>>>0)while(1){if(!K[c|0])break d; -c=c+1|0;if(k>>>0>=c>>>0)continue;break}Yc(a,67002);break a}i=i+1|0;if((g|0)!=(i|0))continue;break}m=J[a+740>>2];k=f;p=h;h=e;f=bc-80|0;bc=f;e:{if(!a|!b)break e;f:{if(m){c=f;o=1;d=K[m|0];g:{if(!d)break g;e=1;while(1){i=0;o=(d&255)>>>0<161&(d-127&255)>>>0<162;h:{if(o){i=1;if(e)break h;d=32}H[c|0]=d;n=n+1|0;c=c+1|0}m=m+1|0;d=K[m|0];if(!d)break g;e=i;if(n>>>0<79)continue;break}}e=c;c=(n|0)!=0&o;H[e-c|0]=0;c=n-c|0;if(c)break f}Yc(a,61387);break e}i:{j:{if(j>>>0<=3){d=0;if(!g)break i;break j}Ad(a,61638); -B()}while(1){e=J[l+(d<<2)>>2];if(jH(e,Qc(e))){d=d+1|0;if((g|0)!=(d|0))continue;break i}break}Ad(a,61712);B()}d=c+1|0;c=gg(a,d);J[b+160>>2]=c;if(!c){Yc(a,61883);break e}tc(c,f,d);H[b+181|0]=g;H[b+180|0]=j;J[b+168>>2]=p;J[b+164>>2]=k;d=Qc(h)+1|0;c=gg(a,d);J[b+172>>2]=c;if(!c){Yc(a,62012);break e}tc(c,h,d);h=(g<<2)+4|0;c=gg(a,h);J[b+176>>2]=c;if(!c){Yc(a,62191);break e}d=0;wc(c,0,h);if(g)while(1){c=d<<2;h=c+l|0;e=Qc(J[h>>2])+1|0;i=gg(a,e);J[c+J[b+176>>2]>>2]=i;c=J[c+J[b+176>>2]>>2];if(!c){Yc(a,62290); -break e}tc(c,J[h>>2],e);d=d+1|0;if((g|0)!=(d|0))continue;break}J[b+8>>2]=J[b+8>>2]|1024;J[b+184>>2]=J[b+184>>2]|128}bc=f+80|0;break a}Ad(a,66905);B()}rd(a,J[a+740>>2]);J[a+740>>2]=0;Yc(a,67104);return}rd(a,J[a+740>>2]);J[a+740>>2]=0;return}rd(a,J[a+740>>2]);J[a+740>>2]=0;rd(a,l)}function Fpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;if(!(1<>>0<=22:0)){Dc(a, -1028,0,0);return 1028}H[a+287|0]=1;f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+316>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+320>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+8|0];H[a+324|0]=f;i=K[d+9|0];H[a+325|0]=i;g=K[d+10|0];H[a+326|0]=g;h=K[d+11|0];H[a+327|0]=h;j=K[d+12|0];H[a+328|0]=j;if(!(1<>>0<=16:0))break a;c:{d:switch(i|0){default:Dc(a,1037,0,0);return 1037;case 3:if(f>>>0<9)break c;break a;case 0:break c;case 2:case 4:case 6:break d}if(f>>> -0>7)break c;break a}if(g){Dc(a,1038,0,0);return 1038}if(h){Dc(a,1039,0,0);return 1039}if(j>>>0>=2){Dc(a,1040,0,0);return 1040}J[a+48>>2]=J[a+48>>2]+1;e:{f:{g:{if(c>>>0<14){j=0;g=0;break g}f=K[d+17|0]|K[d+18|0]<<8;k=f<<8|f>>>8;f=K[d+15|0]|K[d+16|0]<<8;l=f<<8|f>>>8;f=K[d+13|0]|K[d+14|0]<<8;m=f<<8|f>>>8;j=0;if(c>>>0>=20)break f;g=0}f=65535;h=0;i=0;break e}f=K[d+19|0]|K[d+20|0]<<8;f=f<<8|f>>>8;if(c>>>0<22){g=1;h=0;i=1;break e}h=K[d+21|0];j=1;g=1;i=1}m=m&65535;l=l&65535;k=k&65535;o=f&65535;h:{if(K[a+114| -0]){f=gc[J[a+152>>2]](40)|0;if(!f){Dc(a,1,0,0);f=1;break h}J[f+4>>2]=1046;J[f>>2]=1047;n=J[a+700>>2];i:{if(n){J[n+8>>2]=f;break i}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=n;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+38|0]=h;I[f+36>>1]=o;H[f+34|0]=g;I[f+32>>1]=k;I[f+30>>1]=l;I[f+28>>1]=m}f=f8(a,m,l,k,g,o,h)}j:{if(f)break j;k:{if(!K[a+112|0])break k;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break j;a=J[e>>2];b=K[d| -0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+32>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+40|0]=K[d+8|0];H[a+41|0]=K[d+9|0];H[a+42|0]=K[d+10|0];H[a+43|0]=K[d+11|0];H[a+44|0]=K[d+12|0];if(c>>>0>=14){b=K[d+13|0]|K[d+14|0]<<8;I[a+46>>1]=b<<8|b>>>8;b=K[d+15|0]|K[d+16|0]<<8;I[a+48>>1]=b<<8|b>>>8;b=K[d+17|0]|K[d+18|0]<<8;I[a+50>>1]=b<<8|b>>>8}if(i){b=K[d+19|0]|K[d+20|0]<<8;I[a+52>>1]=b<<8|b>>>8}if(!j)break k; -H[a+54|0]=K[d+21|0]}f=0}return f|0}Dc(a,1029,0,0);return 1029}Dc(a,1036,0,0);return 1036}function Mta(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a=L[a+26>>1];d=P(a,g);c=e>>>0<8;j=h<<2;while(1){h=e;if(!c)while(1){g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;g=a+i|0;i=K[g+3|0]^255;J[b+4>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216; -g=a+g|0;i=K[g+3|0]^255;J[b+8>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+12>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+16>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+20>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^ -255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+24>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+28>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;b=b+32|0;i=a+g|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+ -4|0;case 5:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 4:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 3:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 2:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g, -K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 1:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 0:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;break;default:break a}i=d+i|0;b=b+j|0;f=f-1|0;if(f)continue;break}}}function HOa(a,b,c,d,e,f){a=a|0;b=+b;c=+c;d=d|0;e=e|0;f=f|0;var g= -0,h=0,i=0,j=0;J[a+112>>2]=e;O[a+8>>3]=c;O[a>>3]=b;g=O[d>>3];O[a+64>>3]=g;i=O[d+8>>3];O[a+72>>3]=i;h=O[d+16>>3];O[a+80>>3]=h;j=O[d+24>>3];O[a+88>>3]=j;b=b/72;c=c/72;a:{b:{c:{if((e|0)!=270){if((e|0)!=180){if((e|0)!=90)break c;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;O[a+32>>3]=b;O[a+96>>3]=b*(j-i);O[a+48>>3]=i*-b;O[a+24>>3]=f?c:-c;O[a+56>>3]=c*(f?-g:h);b=h-g;break a}J[a+24>>2]=0;J[a+28>>2]=0;O[a+16>>3]=-b;J[a+32>>2]=0;J[a+36>>2]=0;O[a+48>>3]=b*h;O[a+96>>3]=b*(h-g);O[a+40>>3]=f?c:-c;O[a+56>> -3]=c*(f?-i:j);break b}J[a+16>>2]=0;J[a+20>>2]=0;O[a+48>>3]=b*j;J[a+40>>2]=0;J[a+44>>2]=0;O[a+32>>3]=-b;O[a+96>>3]=b*(j-i);O[a+24>>3]=f?-c:c;O[a+56>>3]=c*(f?h:-g);b=h-g;break a}O[a+16>>3]=b;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;O[a+96>>3]=b*(h-g);O[a+48>>3]=g*-b;O[a+40>>3]=f?-c:c;O[a+56>>3]=c*(f?j:-i)}b=j-i}O[a+104>>3]=c*b;d=rc(12);J[d>>2]=2205736;J[d+4>>2]=15;J[d+8>>2]=0;J[a+116>>2]=d;d=rc(12);J[d>>2]=2205736;J[d+4>>2]=15;J[d+8>>2]=0;J[a+408>>2]=0;J[a+412>>2]=0;J[a+400>>2]=0;J[a+404>> -2]=1072693248;J[a+392>>2]=0;J[a+396>>2]=1072693248;J[a+388>>2]=0;J[a+380>>2]=0;J[a+384>>2]=0;J[a+252>>2]=0;J[a+124>>2]=0;J[a+120>>2]=d;J[a+424>>2]=0;J[a+428>>2]=0;J[a+416>>2]=0;J[a+420>>2]=1;J[a+432>>2]=0;J[a+436>>2]=0;J[a+448>>2]=0;J[a+452>>2]=0;J[a+440>>2]=0;J[a+444>>2]=1072693248;J[a+456>>2]=0;J[a+460>>2]=0;J[a+480>>2]=0;J[a+484>>2]=1076101120;J[a+472>>2]=0;J[a+476>>2]=0;J[a+464>>2]=0;J[a+468>>2]=1072693248;J[a+496>>2]=0;J[a+500>>2]=0;J[a+488>>2]=0;J[a+492>>2]=0;J[a+504>>2]=0;J[a+508>>2]=1072693248; -J[a+512>>2]=0;J[a+516>>2]=0;J[a+520>>2]=0;J[a+524>>2]=0;J[a+528>>2]=0;J[a+532>>2]=1072693248;J[a+536>>2]=0;J[a+540>>2]=0;J[a+544>>2]=0;J[a+548>>2]=0;J[a+552>>2]=0;J[a+556>>2]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+568>>2]=0;J[a+572>>2]=1072693248;J[a+576>>2]=0;J[a+580>>2]=0;J[a+584>>2]=0;J[a+588>>2]=0;J[a+592>>2]=0;d=rc(40);J[d>>2]=0;J[d+28>>2]=0;J[d+32>>2]=16;J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[695492]=0;e=aa(3376,16,4)|0;f=J[695492];J[695492]=0;if((f|0)!=1){J[d+24>>2]=e;J[a+600>>2]= -0;J[a+604>>2]=0;J[a+596>>2]=d;J[a+608>>2]=0;J[a+612>>2]=0;J[a+616>>2]=0;J[a+620>>2]=0;J[a+624>>2]=0;J[a+628>>2]=0;J[a+632>>2]=0;J[a+636>>2]=0;J[a+640>>2]=0;J[a+644>>2]=0;J[a+664>>2]=0;J[a+668>>2]=0;O[a+648>>3]=O[a+96>>3];O[a+656>>3]=O[a+104>>3];return a|0}a=Z()|0;qc(d);ba(a|0);B()}function lvb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;d=gc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;c=J[a+580>>2];b=(d+(c<<2)|0)+(J[a+672>>2]<<2)|0;d=c; -c=J[a+656>>2];e=d+c|0;c=(c|0)/J[a+584>>2]|0;d=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];if(!K[a+648|0]){c=(c<<2)+g|0;if(f){if((d|0)<=(e|0))break a;while(1){b:{c:{d=K[c+3|0];if((d|0)!=255){if(d)break c;J[b>>2]=0;break b}H[b|0]=255;H[b+1|0]=K[c|0];H[b+2|0]=K[c+1|0];H[b+3|0]=K[c+2|0];break b}H[b|0]=d;H[b+1|0]=((P(d,K[c|0])+127&65535)>>>0)/255;H[b+2|0]=((P(d,K[c+1|0])+127&65535)>>>0)/255;H[b+3|0]=((P(d,K[c+2|0])+127&65535)>>>0)/255}c=c+4|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue; -break}break a}if((d|0)<=(e|0))break a;while(1){d=K[c+3|0];d:{if(!d)break d;if((d|0)==255){H[b|0]=255;H[b+1|0]=K[c|0];H[b+2|0]=K[c+1|0];H[b+3|0]=K[c+2|0];break d}f=d^255;H[b|0]=((P(f,K[b|0]^255)+127&65535)>>>0)/255^-1;H[b+1|0]=((P(d,K[c|0])+P(f,K[b+1|0])|0)+127>>>0)/255;H[b+2|0]=((P(d,K[c+1|0])+P(f,K[b+2|0])|0)+127>>>0)/255;H[b+3|0]=((P(d,K[c+2|0])+P(f,K[b+3|0])|0)+127>>>0)/255}c=c+4|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}c=(c<<3)+g|0;if(f){if((d|0)<=(e|0))break a; -while(1){e:{f:{d=K[c+6|0];if((d|0)!=255){if(d)break f;J[b>>2]=0;break e}H[b|0]=255;H[b+1|0]=K[c|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+4|0];break e}H[b|0]=d;H[b+1|0]=((P(d,K[c|0])+127&65535)>>>0)/255;H[b+2|0]=((P(d,K[c+2|0])+127&65535)>>>0)/255;H[b+3|0]=((P(d,K[c+4|0])+127&65535)>>>0)/255}c=c+8|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}if((d|0)<=(e|0))break a;while(1){d=K[c+6|0];g:{if(!d)break g;if((d|0)==255){H[b|0]=255;H[b+1|0]=K[c|0];H[b+2|0]=K[c+2|0];H[b+3|0]= -K[c+4|0];break g}f=d^255;H[b|0]=((P(f,K[b|0]^255)+127&65535)>>>0)/255^-1;H[b+1|0]=((P(d,K[c|0])+P(f,K[b+1|0])|0)+127>>>0)/255;H[b+2|0]=((P(d,K[c+2|0])+P(f,K[b+2|0])|0)+127>>>0)/255;H[b+3|0]=((P(d,K[c+4|0])+P(f,K[b+3|0])|0)+127>>>0)/255}c=c+8|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}}b=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];c=J[a+556>>2];d=J[a+672>>2];h:{if((d|0)>=J[a+552>>2]){if(c)break h;c=0}J[a+552>>2]=d}d=c;c=J[a+676>>2];if((d|0)<(c|0))J[a+556>>2]=c;c=J[a+564>> -2];b=b-e|0;i:{if((b|0)>=J[a+560>>2]){if(c)break i;c=0}J[a+560>>2]=b}if((b|0)>=(c|0))J[a+564>>2]=b+1;return 0}function evb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;d=gc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;c=J[a+580>>2];b=(d+(c<<2)|0)+(J[a+672>>2]<<2)|0;d=c;c=J[a+656>>2];e=d+c|0;c=(c|0)/J[a+584>>2]|0;d=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];if(!K[a+648|0]){c=(c<<2)+g|0;if(f){if((d|0)<=(e|0))break a;while(1){b:{c:{d=K[c+3|0];if((d| -0)!=255){if(d)break c;J[b>>2]=0;break b}H[b|0]=255;H[b+1|0]=K[c+2|0];H[b+2|0]=K[c+1|0];H[b+3|0]=K[c|0];break b}H[b|0]=d;H[b+1|0]=((P(d,K[c+2|0])+127&65535)>>>0)/255;H[b+2|0]=((P(d,K[c+1|0])+127&65535)>>>0)/255;H[b+3|0]=((P(d,K[c|0])+127&65535)>>>0)/255}c=c+4|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}if((d|0)<=(e|0))break a;while(1){d=K[c+3|0];d:{if(!d)break d;if((d|0)==255){H[b|0]=255;H[b+1|0]=K[c+2|0];H[b+2|0]=K[c+1|0];H[b+3|0]=K[c|0];break d}f=d^255;H[b|0]= -((P(f,K[b|0]^255)+127&65535)>>>0)/255^-1;H[b+1|0]=((P(d,K[c+2|0])+P(f,K[b+1|0])|0)+127>>>0)/255;H[b+2|0]=((P(d,K[c+1|0])+P(f,K[b+2|0])|0)+127>>>0)/255;H[b+3|0]=((P(d,K[c|0])+P(f,K[b+3|0])|0)+127>>>0)/255}c=c+4|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}c=(c<<3)+g|0;if(f){if((d|0)<=(e|0))break a;while(1){e:{f:{d=K[c+6|0];if((d|0)!=255){if(d)break f;J[b>>2]=0;break e}H[b|0]=255;H[b+1|0]=K[c+4|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c|0];break e}H[b|0]=d;H[b+1|0]=((P(d, -K[c+4|0])+127&65535)>>>0)/255;H[b+2|0]=((P(d,K[c+2|0])+127&65535)>>>0)/255;H[b+3|0]=((P(d,K[c|0])+127&65535)>>>0)/255}c=c+8|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}if((d|0)<=(e|0))break a;while(1){d=K[c+6|0];g:{if(!d)break g;if((d|0)==255){H[b|0]=255;H[b+1|0]=K[c+4|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c|0];break g}f=d^255;H[b|0]=((P(f,K[b|0]^255)+127&65535)>>>0)/255^-1;H[b+1|0]=((P(d,K[c+4|0])+P(f,K[b+1|0])|0)+127>>>0)/255;H[b+2|0]=((P(d,K[c+2|0])+P(f,K[b+2|0])| -0)+127>>>0)/255;H[b+3|0]=((P(d,K[c|0])+P(f,K[b+3|0])|0)+127>>>0)/255}c=c+8|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}}b=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];c=J[a+556>>2];d=J[a+672>>2];h:{if((d|0)>=J[a+552>>2]){if(c)break h;c=0}J[a+552>>2]=d}d=c;c=J[a+676>>2];if((d|0)<(c|0))J[a+556>>2]=c;c=J[a+564>>2];b=b-e|0;i:{if((b|0)>=J[a+560>>2]){if(c)break i;c=0}J[a+560>>2]=b}if((b|0)>=(c|0))J[a+564>>2]=b+1;return 0}function xWa(a,b,c,d,e,f,g,h,i){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;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;c=bc-144|0;bc=c;a:{b:{c:{d:{e:{if(K[a+220|0])break e;h=J[b+116>>2];if(gc[J[J[h>>2]+40>>2]](h)|0)break e;h=P(e,f)<<2;if((h|0)<=0)break e;p=O[b+104>>3];n=Bn(h);if(!n)break e;i=c+112|0;J[i+12>>2]=0;J[i+16>>2]=0;J[i+4>>2]=1;J[i+8>>2]=8;J[i>>2]=349684;J[i+20>>2]=0;J[i+24>>2]=0;H[i+28|0]=0;J[c+48>>2]=e;J[c+100>>2]=f;J[695492]=0;J[c+40>>2]=0-(e<<2);j=c+100|0;nm(i,n,c+48|0,j,c+40|0,0);h=J[695492];J[695492]=0;f:{g:{h:{i:{j:{if((h| -0)!=1){J[695492]=0;h=$(4,36)|0;k=J[695492];J[695492]=0;if((k|0)==1)break j;J[695492]=0;k=ma(3265,h|0,d|0,e|0,1,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;_(3266,k|0);d=J[695492];J[695492]=0;if((d|0)==1)break j;d=J[b+116>>2];h=J[J[d>>2]+20>>2];J[695492]=0;ia(h|0,d|0,b+124|0,j|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break h;h=255;k:{if(!K[a+202|0])break k;h=0;if(K[a+203|0])break k;l=O[b+392>>3]*255;if(l<4294967296&l>=0){h=~~l>>>0;break k}h=0}if((f|0)<=0)break f;d=f-1|0;if((e|0)<= -0)break g;q=P(J[c+108>>2],255)+32768>>>16|0;r=P(J[c+104>>2],255)+32768>>>16|0;s=P(J[c+100>>2],255)+32768>>>16|0;t=(g|0)!=0;while(1){l:{J[695492]=0;g=$(3267,k|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;u=P(d,e);f=0;while(1){j=(f+u<<2)+n|0;m=K[g|0]==(t|0);H[j|0]=m?q:-1;H[j+1|0]=m?r:-1;H[j+2|0]=m?s:-1;H[j+3|0]=m?h:0;g=g+1|0;f=f+1|0;if((f|0)!=(e|0))continue;break}f=(d|0)>0;d=d-1|0;if(f)continue;break f}break}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;qc(h);break a}f=Z()|0;break a}while(1){J[695492]= -0;$(3267,k|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;e=(d|0)>0;d=d-1|0;if(e)continue;break}}qc(Yl(k));O[c+48>>3]=O[b+16>>3];O[c+56>>3]=-O[b+24>>3];l=O[b+32>>3];O[c+64>>3]=-l;o=O[b+40>>3];O[c+72>>3]=o;O[c+80>>3]=l+O[b+48>>3];O[c+88>>3]=p-(o+O[b+56>>3]);J[c+40>>2]=0;J[c+44>>2]=0;J[695492]=0;J[c+32>>2]=0;J[c+36>>2]=0;la(3257,a|0,c+48|0,c+40|0,c+32|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break d;a=J[a+104>>2];O[c+24>>3]=O[c+40>>3]+0;O[c+16>>3]=O[c+32>>3]+0;J[c+8>>2]=1049880894;J[c+12>>2]=1071027177; -J[c>>2]=1049880894;J[c+4>>2]=1071027177;b=J[J[a>>2]+376>>2];J[695492]=0;ja(b|0,a|0,i|0,c+24|0,c+16|0,c+8|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;ji(i)}bc=c+144|0;return}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0}ji(i);ba(f|0);B()}function Xfa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=bc-1056|0;bc=j;J[j+16>>2]=f;J[j+20>>2]=g;J[j+24>>2]=h;J[j+28>>2]=i;a=j+944|0;J[j+940>>2]=a;k=Gi(a,100,13177,j+16|0);J[j+48>>2]=1617;a= -j+48|0;p=ng(j+520|0,0,a);J[j+48>>2]=1617;l=ng(j+512|0,0,a);n=j+528|0;a:{b:{c:{d:{if(k>>>0>=100){J[695492]=0;a=pa(6638)|0;k=J[695492];J[695492]=0;if((k|0)==1)break d;J[j>>2]=f;J[j+4>>2]=g;J[695492]=0;J[j+8>>2]=h;J[j+12>>2]=i;k=ha(6659,j+940|0,a|0,13177,j|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;e:{if((k|0)!=-1){ih(p,J[j+940>>2]);ih(l,zc(k<<2));if(J[l>>2])break e}J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;break a}n=J[l>>2]}J[695492]=0;f=j+508|0;a=J[d+28>>2];J[f>>2]=a;J[a+ -4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){J[695492]=0;r=$(6537,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;a=J[j+940>>2];ha(6653,r|0,a|0,a+k|0,n|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;q=(k|0)>0?K[J[j+940>>2]]==45:q;h=Se(j+484|0);f=Se(j+472|0);g=Se(j+460|0);J[695492]=0;Ea(6699,c|0,q|0,j+508|0,j+504|0,j+500|0,j+496|0,h|0,f|0,g|0,j+456|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;J[j+36>>2]=1617;i=ng(j+40|0,0,j+36|0);c=j+48|0;a=J[j+456>>2]; -l:{if((a|0)<(k|0)){if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;if(K[g+11|0]>>>7|0)o=J[g+4>>2];else o=K[g+11|0]&127;a=(a+(m+(o+(k-a<<1)|0)|0)|0)+1|0;break l}o=J[j+456>>2];if(K[g+11|0]>>>7|0)a=J[g+4>>2];else a=K[g+11|0]&127;if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;a=(o+(a+m|0)|0)+2|0}if(a>>>0<101)break i;ih(i,zc(a<<2));c=J[i>>2];if(c)break i;J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break h}k=Z()|0;break b}k=Z()|0;break f}k=Z()|0;break g}a=J[d+4>>2];J[695492]= -0;Ma(6700,c|0,j+36|0,j+32|0,a|0,n|0,(k<<2)+n|0,r|0,q|0,j+504|0,J[j+500>>2],J[j+496>>2],h|0,f|0,g|0,J[j+456>>2]);a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;c=ja(6672,b|0,c|0,J[j+36>>2],J[j+32>>2],d|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c}}k=Z()|0;Ae(i)}Ze(g);Ze(f);ad(h)}a=J[j+508>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);break b}k=Z()|0;break b}Ae(i);Ze(g);Ze(f);ad(h);a=J[j+508>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);Ae(l);Ae(p); -bc=j+1056|0;return c|0}Ae(l);Ae(p);ba(k|0);B()}B()}function Nlb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;m=g>>>0<=2?J[(g<<2)+231688>>2]:m;if(J[a+20>>2])a=0;else{j=J[J[J[a>>2]+16>>2]+40>>2];if(j){a=bc-112|0;bc=a;g=J[j>>2];a:{if(!g)break a;g=J[g+28>>2];if(!g)break a;J[a+96>>2]=13;b:{g=Ni(g,e+1|0);if(g)if(J[hf(g+16|0,J[g+4>>2],a+96|0,0)>>2]==6)break b;uc(a+96|0);break a}J[a+84>>2]=1E3;J[a+76>>2]=231644;g=zc(1E3);J[a+80>>2]=g;H[g|0]=0;H[g+1|0]=0;H[g+ -2|0]=0;H[g+3|0]=0;J[a+92>>2]=4;J[a+88>>2]=g+4;c:{d:{e:{n=J[J[a+104>>2]+12>>2];if((n|0)<=0)break e;f:{g:{h:{while(1){i:{J[a+56>>2]=13;J[695492]=0;g=ga(3331,J[a+104>>2],i|0,a+56|0)|0;h=J[695492];J[695492]=0;j:{k:{if((h|0)!=1){if((J[a+64>>2]==(f|0)|(f|0)<0)&J[g>>2]==9)break k;J[695492]=0;_(3205,a+56|0);g=J[695492];J[695492]=0;if((g|0)!=1)break j}i=Z()|0;break d}J[a+40>>2]=13;J[a+24>>2]=13;J[a+16>>2]=0;J[695492]=0;J[a+8>>2]=0;J[a+12>>2]=0;ha(3283,J[a+104>>2],i|0,a+40|0,0)|0;g=J[695492];J[695492]=0;if((g| -0)==1)break g;J[695492]=0;g=ha(3203,J[a+48>>2],839365,a+24|0,0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break g;if(J[g>>2]==4){J[695492]=0;aa(2808,a+8|0,J[a+32>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break g}J[695492]=0;_(3205,a+24|0);g=J[695492];J[695492]=0;if((g|0)==1)break g;J[695492]=0;_(3205,a+40|0);g=J[695492];J[695492]=0;if((g|0)==1)break g;h=K[a+19|0];g=h<<24>>24<0;l:{m:{if(((g?J[a+12>>2]:h)|0)!=6)break m;if(Wc(g?J[a+8>>2]:a+8|0,2171396,6))break m;J[695492]=0;_(3205,a+56|0);g=J[695492];J[695492]= -0;if((g|0)==1)break g;break l}J[695492]=0;g=$(4,136)|0;h=J[695492];J[695492]=0;if((h|0)==1)break h;h=J[j+20>>2];k=J[j+16>>2];l=J[j>>2];J[695492]=0;o=k;k=a+56|0;h=Qa(3572,g|0,l|0,o|0,h|0,b|0,c|0,d|0,e|0,m|0,k|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break i;J[695492]=0;da(3555,h|0,a+76|0);g=J[695492];J[695492]=0;if((g|0)==1)break h;qc(XI(h));J[695492]=0;_(3205,k|0);g=J[695492];J[695492]=0;if((g|0)==1)break h}if(H[a+19|0]>=0)break j;qc(J[a+8>>2])}i=i+1|0;if((n|0)!=(i|0))continue;break e}break}i=Z()| -0;qc(g);break f}i=Z()|0;break f}i=Z()|0}if(H[a+19|0]>=0)break d;qc(J[a+8>>2]);break d}J[695492]=0;_(3205,a+96|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;i=Z()|0}J[a+76>>2]=231644;a=J[a+80>>2];if(a)qc(a);ba(i|0);B()}b=J[a+80>>2];c=J[a+92>>2];H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;i=J[a+80>>2]}bc=a+112|0;a=i}else a=0}return a|0}function mcb(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;k=bc-16|0;bc=k;h=J[a+492>>2];i=J[b+8>>2];gc[J[b+28>>2]](b);d=J[b>> -2];a:{if(i>>>0<=d>>>0){J[b+12>>2]=3;break a}b:{l=K[d|0];if(!((l|0)!=91&l-48>>>0>9)){e=J[b+16>>2];if((l|0)==91){J[b>>2]=d+1;g=256;break b}g=gc[J[b+36>>2]](b)|0;if((g|0)<257)break b;J[b+12>>2]=3;break a}c:{if(d+17>>>0>=i>>>0)break c;if(kd(d,243360,16))break c;J[a+368>>2]=2;break a}d:{if(d+15>>>0>=i>>>0)break d;if(kd(d,243424,14))break d;J[a+368>>2]=4;break a}e:{if(d+18>>>0>=i>>>0)break e;if(kd(d,243532,17))break e;J[a+368>>2]=3;break a}J[b+12>>2]=162;break a}gc[J[b+28>>2]](b);if(M[b>>2]>=i>>>0)break a; -j=b+92|0;c=J[a+384>>2];f:{if(!c)break f;if(c)gc[J[e+8>>2]](e,c);J[a+384>>2]=0;c=J[a+388>>2];if(c)gc[J[e+8>>2]](e,c);J[a+388>>2]=0;c=J[b+140>>2];if(!c)break f;gc[c|0](j)}J[a+372>>2]=g;J[b+88>>2]=g;c=k+12|0;n=a,o=Sc(e,2,0,g,0,c),J[n+384>>2]=o;g:{f=J[k+12>>2];if(f)break g;n=a,o=Sc(e,4,0,g,0,c),J[n+388>>2]=o;f=J[k+12>>2];if(f)break g;f=gc[J[J[h>>2]>>2]](j,g,e)|0;J[k+12>>2]=f;if(f)break g;h:{if((g|0)<=0)break h;e=0;c=0;if(g>>>0>=4){h=g&-4;f=0;while(1){gc[J[b+136>>2]](j,c,240981,8)|0;gc[J[b+136>>2]](j, -c|1,240981,8)|0;gc[J[b+136>>2]](j,c|2,240981,8)|0;gc[J[b+136>>2]](j,c|3,240981,8)|0;c=c+4|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}h=g&3;if(!h)break h;while(1){gc[J[b+136>>2]](j,c,240981,8)|0;c=c+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}gc[J[b+28>>2]](b);c=J[b>>2];i:{if(i>>>0<=c>>>0)break i;m=(l|0)==91;h=0;while(1){j:{k:{l:{e=K[c|0];switch(e-93|0){case 0:break k;case 7:break l;default:break j}}d=c+3|0;if(K[c+1|0]!=101|i>>>0<=d>>>0|K[c+2|0]!=102)break j;switch(K[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:break i; -default:break j}}d=c+1|0;break i}m:{n:{if(!(!m&e-48>>>0>9)){if(m){d=c;e=h;break n}e=gc[J[b+36>>2]](b)|0;gc[J[b+28>>2]](b);d=J[b>>2];if((d|0)!=(c|0))break n;J[b+12>>2]=2;break a}gc[J[b+32>>2]](b);d=c;if(J[b+12>>2])break a;break m}if(!(K[d|0]!=47|d+2>>>0>=i>>>0|(g|0)<=(h|0))){d=d+1|0;J[b>>2]=d;gc[J[b+32>>2]](b);c=J[b>>2];if(J[b+12>>2]|c>>>0>=i>>>0)break a;f=c-d|0;c=gc[J[b+136>>2]](j,e,d,f+1|0)|0;J[b+12>>2]=c;if(c)break a;H[f+J[J[b+116>>2]+(e<<2)>>2]|0]=0;h=h+1|0;break m}if((l|0)!=91)break m;J[b+12>> -2]=2;break a}gc[J[b+28>>2]](b);c=J[b>>2];if(i>>>0>c>>>0)continue;break}}J[a+368>>2]=1;J[b>>2]=d;break a}J[b+12>>2]=f}bc=k+16|0}function Yib(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=J[b>>2];if(!f)return 35;b=6;a:{if(M[f+16>>2]<=c>>>0)break a;h=J[f+104>>2];j=J[f+292>>2];b=j+(c<<4)|0;g=I[b+6>>1];k=g+I[b+8>>1]|0;J[a+76>>2]=k;i=I[b>>1];b=I[b+2>>1];H[a+94|0]=1;I[a+92>>1]=1;e=b-i|0;J[a+80>>2]=e;b=3;b:{c:switch((1<<(J[f+312>>2]&3))-1|0){case 0:b=e+7>>>3|0;break b;case 1:b=e+15>>> -3&536870910;break b;case 3:b=e+31>>>3&536870908;break b;case 7:break c;default:break a}b=e+63>>>3&536870904}J[a+104>>2]=g;J[a+100>>2]=i;J[a+72>>2]=1651078259;J[a+84>>2]=b;c=j+(c<<4)|0;b=I[c+4>>1];J[a+36>>2]=g<<6;J[a+32>>2]=i<<6;J[a+28>>2]=k<<6;J[a+24>>2]=e<<6;J[a+40>>2]=b<<6;gu(a+24|0,J[f+208>>2]+J[f+204>>2]<<6);d:{if(d&4194304)break d;d=P(J[a+76>>2],J[a+84>>2]);b=YC(a,d);if(b)break a;b=nd(h,J[c+12>>2]);if(b)break a;b=mg(h,J[a+88>>2],d);if(b)break a;c=J[f+312>>2];if(!(!d|c&8)){i=d-1|0;c=J[a+88>>2]; +14;J[a+32>>2]=i+((f+(b+P(g,-12534)|0)|0)+P(j,1978)|0)>>14;J[a+64>>2]=(((((P(v,6568)+P(p,8520)|0)+P(q,3112)|0)+P(l,-1058)|0)+P(k,-4985)|0)+P(o,-7770)|0)- -8192>>14;J[a>>2]=P(r+((s+(m+(w+(u+z|0)|0)|0)|0)+D|0)|0,6205)- -8192>>14;b=h;h=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}fc=B+160|0}function ura(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-48|0;fc=c;J[c+28>>2]=0;J[c+32>>2]=J[685894];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{d=J[b+8>>2];l:{if(!d|!J[d+8>>2])break l;J[699344]=0;d=c+36|0;ca(5401,d|0,b|0,0);e=J[699344]; +J[699344]=0;if((e|0)==1)break e;e=J[c+36>>2];if(!e){wc(d);break l}d=J[e+8>>2];e=c+36|0;wc(e);if(!d)break l;J[699344]=0;da(6239,e|0,b+8|0);b=J[699344];J[699344]=0;m:{n:{if((b|0)!=1){b=J[c+36>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;d=sA(2438700,b,5);e=J[699344];J[699344]=0;if((e|0)==1)break d;if(!d)break m;J[699344]=0;d=aa(5149,c+20|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;J[699344]=0;J[a>>2]=0;J[a+4>>2]=J[685894];a=J[699344];J[699344]=0;if((a|0)!=1)break k;b=Z()|0;wc(d);break c}b=Z()| +0;break b}b=Z()|0;break c}J[699344]=0;d=b+5|0;e=sA(2438706,d,12);f=J[699344];J[699344]=0;if((f|0)==1)break d;o:{if(!e){d=b+17|0;break o}J[699344]=0;e=sA(2438719,d,3);f=J[699344];J[699344]=0;if((f|0)==1)break d;if(!e){d=b+8|0;break o}e=Yc(d);p:{if(e>>>0>=5){if(K[d|0]!=47)break o;if(K[b+6|0]!=47|(H[b+7|0]|32)-97>>>0>=26)break p;e=K[b+8|0];if((e|0)!=124&(e|0)!=58|K[b+9|0]!=47)break p;d=b+7|0;break o}if(K[d|0]!=47|e>>>0<3)break o}d=K[b+6|0]==47?d:b+6|0}J[699344]=0;d=aa(5149,c+12|0,d|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break j;J[c+20>>2]=0;J[c+24>>2]=J[685894];J[699344]=0;J[c+44>>2]=0;aa(5153,c+28|0,c+44|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;b=J[c+44>>2];J[c+44>>2]=0;q:{if(!b)break q;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break q;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[c+28>>2];J[c+32>>2]=J[(b?b+12|0:2743576)>>2];wc(c+20|0);wc(d);wc(c+36|0)}J[a>>2]=0;J[a+4>>2]=J[685894];b=J[c+28>>2];if(!b)break h; +d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+36|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break g;b=Z()|0;wc(a);break b}wc(d);wc(c+36|0);break f}b=Z()|0;break c}b=Z()|0;zc(c+44|0);wc(c+20|0);wc(d);break c}J[c+36>>2]=0}J[699344]=0;aa(5153,a|0,c+36|0)|0;b=J[699344];J[699344]=0;r:{if((b|0)!=1){b=J[c+36>>2];J[c+36>>2]=0;if(!b)break r;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break r;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break r}break a}b=Z()| +0;zc(c+36|0);wc(a);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2]}wc(c+28|0);fc=c+48|0;return}b=Z()|0;break b}b=Z()|0}wc(c+36|0)}wc(c+28|0);ba(b|0);B()}ea(0)|0;Bc();B()}function BIa(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;d=fc-32|0;fc=d;a:{if(H[c+11|0]>=0){J[d+24>>2]=J[c+8>>2];e=J[c+4>>2];J[d+16>>2]=J[c>>2];J[d+20>>2]=e;break a}Ve(d+16|0,J[c>>2],J[c+4>>2])}c=K[b+15|0];e=c<<24>>24<0;b:{c:{d:{e:{f:{g=e?J[b+8>>2]:c;if(g){h=b+4|0;f=K[d+27|0];c=f<<24>>24<0;f=c?J[d+ +20>>2]:f;if((g|0)>(f|0))break f;c=c?J[d+16>>2]:d+16|0;i=c+(f<<2)|0;j=e?J[b+4>>2]:h;k=J[j>>2];e=c;while(1){f=(f-g|0)+1|0;if(!f)break f;e=og(e,k,f);if(!e)break f;if(qd(e,j,g)){e=e+4|0;f=i-e>>2;if((g|0)<=(f|0))continue;break f}break}if((e|0)==(i|0)|(c|0)!=(e|0))break f}b=J[d+20>>2];J[a>>2]=J[d+16>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+24>>2];J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;break e}e=K[d+27|0];c=e<<24>>24<0;e=c?J[d+20>>2]:e;if(!e){if(H[b+15|0]>=0){b=J[h+4>>2];J[a>>2]=J[h>>2];J[a+4>>2]=b;J[a+8>>2]=J[h+8>> +2];break e}c=J[b+8>>2];b=J[b+4>>2];J[699344]=0;ca(15,a|0,b|0,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;break c}g=c?J[d+16>>2]:d+16|0;if(J[g>>2]==47){c=K[b+15|0];f=c<<24>>24;i=(f|0)<0?J[b+8>>2]:c;c=i+e|0;if(c>>>0>=1073741808){J[699344]=0;$(2959,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break d}g:{if(c>>>0<=1){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[a+11|0]=c;break g}b=c|3;if(b>>>0>=1073741823){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)==1)break c;break d}J[699344]=0;j=b+1|0;b=_(4, +j<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break c;J[a+4>>2]=c;J[a>>2]=b;J[a+8>>2]=j|-2147483648;a=b}b=a;a=i<<2;b=cd(b,(f|0)<0?J[h>>2]:h,a)+a|0;a=e<<2;l=cd(b,g,a)+a|0,m=0,J[l>>2]=m;break e}c=K[b+15|0];f=c<<24>>24;h:{i=(f|0)<0?J[b+8>>2]:c;c=i+1|0;if(c>>>0>=1073741808){J[699344]=0;$(2959,d|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d;break h}i:{if(c>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=c;b=d;break i}b=c|3;if(b>>>0>=1073741823){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!= +1)break d;break h}J[699344]=0;j=b+1|0;b=_(4,j<<2)|0;k=J[699344];J[699344]=0;if((k|0)==1)break h;J[d+4>>2]=c;J[d>>2]=b;J[d+8>>2]=j|-2147483648}c=b;b=i<<2;b=cd(c,(f|0)<0?J[h>>2]:h,b)+b|0;J[b>>2]=47;J[b+4>>2]=0;J[699344]=0;b=ga(2960,d|0,g|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[d+11|0]>=0)break e;uc(J[d>>2]);break e}c=Z()|0;if(H[d+11|0]>=0)break b;uc(J[d>>2]);break b}c=Z()|0;break b}if(H[d+27|0]< +0)uc(J[d+16>>2]);fc=d+32|0;return}B()}c=Z()|0}if(H[d+27|0]<0)uc(J[d+16>>2]);ba(c|0);B()}function DE(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;a:{b=!a;b:{if(b)break b;c:switch((b?-1:J[a+8>>2])-1|0){case 0:f=fc-16|0;fc=f;b=!a;d:{if(!(b|((b?-1:J[a+8>>2])|0)!=1)){Df(a,f+12|0,f+8|0,0);d=xh(J[f+12>>2],J[f+8>>2],8);if(!d)break d;if(!(!d|!a|(a|0)==(d|0))){J[d+20>>2]=J[a+20>>2];J[d+24>>2]=J[a+24>>2]}l=kd(16,4);if(!l)break d;H[f+7|0]=0;H[f+6|0]=255;while(1){b=f+6|0;J[l+ +(c<<2)>>2]=K[b+(c&1)|0]|(K[b+(c>>>2&1)|0]<<16|K[b+(c>>>3|0)|0]<<24|K[b+(c>>>1&1)|0]<<8);c=c+1|0;if((c|0)!=16)continue;break}e=a?J[a+40>>2]:0;i=a?J[a+12>>2]:-1;h=d?J[d+40>>2]:0;b=d?J[d+12>>2]:-1;e:{if(J[f+8>>2]<=0)break e;c=J[f+12>>2];if((c|0)<=0)break e;a=(c+3|0)/4|0;a=(a|0)<=1?1:a;s=a&2147483646;g=a&1;a=0;m=(c|0)<5;while(1){n=(P(a,b)<<2)+h|0;p=e+(P(a,i)<<2)|0;c=0;j=0;if(!m)while(1){o=c<<2;q=o&24;k=p+(c>>>1&2147483644)|0;J[n+o>>2]=J[l+((J[k>>2]>>>(q^28)&15)<<2)>>2];J[n+(o|4)>>2]=J[l+((J[k>>2]>>>(q^ +24)&15)<<2)>>2];c=c+2|0;j=j+2|0;if((s|0)!=(j|0))continue;break}if(g){k=c<<2;J[k+n>>2]=J[l+((J[p+(c>>>1&2147483644)>>2]>>>((k^-1)&28)&15)<<2)>>2]}a=a+1|0;if((a|0)>2])continue;break}}uc(l)}c=d}fc=f+16|0;return c;case 1:return F9(a,0);case 3:return E9(a,0);case 7:b=a?J[a+36>>2]:0;if(!b)return Ff(0,a);if(b)return el(a,1);a=Ff(0,a);b=!a;f:{if(b|((b?-1:J[a+8>>2])|0)!=8)break f;if(a?J[a+36>>2]:0)break f;b=kd(1,16);g:{if(!b)break g;J[b+8>>2]=256;J[b+4>>2]=8;h=kd(256,4);if(!h)break g;J[b>>2]=h;c=J[b+ +12>>2];h=J[b+8>>2];while(1){if((c|0)<(h|0)){e=J[b>>2]+(c<<2)|0;i=(P(d,255)|0)/255|0;H[e+1|0]=i;H[e+2|0]=i;H[e|0]=i;c=c+1|0;J[b+12>>2]=c}d=d+1|0;if((d|0)!=256)continue;break}d=b}gO(a,d)}break a;case 15:a=G9(a);break a;case 31:break c;default:break b}g=fc-16|0;fc=g;b=!a;h:{if(b|((b?-1:J[a+8>>2])|0)!=32)break h;Df(a,g+12|0,g+8|0,0);i=a?J[a+40>>2]:0;b=a?J[a+12>>2]:-1;e=xh(J[g+12>>2],J[g+8>>2],8);if(!e)break h;if(!(!e|!a|(a|0)==(e|0))){J[e+20>>2]=J[a+20>>2];J[e+24>>2]=J[a+24>>2]}h=e?J[e+40>>2]:0;a=e?J[e+ +12>>2]:-1;j=J[g+8>>2];i:{if((j|0)<=0)break i;d=J[g+12>>2];if((d|0)<=0)break i;k=a<<2;b=b<<2;while(1){a=0;if((d|0)>0){while(1){f=a+h^3;m=J[(a<<2)+i>>2];r=+Q(Q(Q((m>>>8&255)>>>0)*Q(.20000000298023224))+Q(Q(Q(m>>>24>>>0)*Q(.30000001192092896))+Q(Q((m>>>16&255)>>>0)*Q(.5))))+.5;j:{if(R(r)<2147483648){d=~~r;break j}d=-2147483648}H[f|0]=d;a=a+1|0;d=J[g+12>>2];if((a|0)<(d|0))continue;break}j=J[g+8>>2]}h=h+k|0;i=b+i|0;c=c+1|0;if((c|0)<(j|0))continue;break}}d=e}fc=g+16|0}return d}return a}function O6(a,b, +c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{c:{d:{e:{f:{g:{h:{i:switch(J[a+92>>2]){case 0:h=J[a+64>>2];if((h|0)<(c|0)){d=J[a+36>>2];if(!J[a+84>>2]){J[a+84>>2]=d;J[a+80>>2]=d;d=d+32|0;J[a+36>>2]=d}if(M[a+32>>2]>d>>>0){g=J[a+4>>2];f=J[a+8>>2];e=J[a+80>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=d;J[e+28>>2]=0;J[e+4>>2]=0;I[e+12>>1]=K[a+164|0]|((f|0)>(((g+h|0)-1&0-g)-h|0)?8:40);break f}break a}if((c|0)>=(h|0))break c;d=J[a+36>>2];if(!J[a+84>>2]){J[a+84>>2]=d;J[a+80>>2]=d;d=d+32|0;J[a+36>>2]=d}if(M[a+32>> +2]>d>>>0){g=J[a+4>>2];f=J[a+8>>2];e=J[a+80>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=d;J[e+28>>2]=0;J[e+4>>2]=0;d=K[a+164|0];I[e+12>>1]=(f|0)>(h&g-1)?d:d|16;break h}break a;case 2:break g;case 1:break i;default:break c}d=J[a+64>>2];if((d|0)<=(c|0))break e;f=J[a+36>>2];e=J[a+80>>2];h=J[e+8>>2];g=f-h>>2;if((g|0)<0){J[a+40>>2]=99;return 1}i=J[a+4>>2]-1&d;j=J[a+8>>2];j:{if((f|0)==(h|0)){d=f;break j}J[e+16>>2]=g;if((i|0)>=(j|0)){d=L[e+12>>1];I[e+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+ +8>>2]=d;J[f+16>>2]=0;J[e+28>>2]=f;I[a+76>>1]=L[a+76>>1]+1;e=f}g=J[a+32>>2];if(g>>>0<=d>>>0)break a;H[a+79|0]=0;k:{if(J[a+84>>2]){f=d;break k}J[a+84>>2]=d;J[a+80>>2]=d;f=d+32|0;J[a+36>>2]=f;e=d}if(f>>>0>=g>>>0)break a;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=f;J[e+28>>2]=0;J[e+4>>2]=0;d=K[a+164|0];I[e+12>>1]=(i|0)<(j|0)?d:d|16}if(!J[a+88>>2])J[a+88>>2]=e;H[a+78|0]=1;J[a+92>>2]=2;H[a+79|0]=0;d=J[a+64>>2];break d}d=J[a+64>>2];if((d|0)>=(c|0))break d;f=J[a+36>>2];e=J[a+80>>2];j=J[e+8>>2];h=f-j>>2;if((h|0)< +0){J[a+40>>2]=99;return 1}g=J[a+4>>2];k=((g+d|0)-1&0-g)-d|0;i=J[a+8>>2];l:{if((f|0)==(j|0)){d=f;break l}J[e+16>>2]=h;if((i|0)<=(k|0)){d=L[e+12>>1];I[e+12>>1]=(d&8?16:32)|d}J[a+80>>2]=f;d=f+32|0;J[a+36>>2]=d;J[f+8>>2]=d;J[f+16>>2]=0;J[e+28>>2]=f;I[a+76>>1]=L[a+76>>1]+1;e=f}g=J[a+32>>2];if(g>>>0<=d>>>0)break a;H[a+79|0]=0;m:{if(J[a+84>>2]){f=d;break m}J[a+84>>2]=d;J[a+80>>2]=d;f=d+32|0;J[a+36>>2]=f;e=d}if(f>>>0>=g>>>0)break a;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=f;J[e+28>>2]=0;J[e+4>>2]=0;I[e+12>>1]= +K[a+164|0]|((i|0)>(k|0)?8:40)}if(!J[a+88>>2])J[a+88>>2]=e;H[a+78|0]=1;J[a+92>>2]=1;H[a+79|0]=0;d=J[a+64>>2]}f=1;if(M6(a,J[a+60>>2],d,b,c,J[a+68>>2],J[a+72>>2]))break b;break c}e=K[a+78|0];d=M6(a,J[a+60>>2],0-d|0,b,0-c|0,0-J[a+72>>2]|0,0-J[a+68>>2]|0);if(!(K[a+78|0]|!e)){e=J[a+80>>2];J[e+20>>2]=0-J[e+20>>2]}f=1;if(d)break b}J[a+64>>2]=c;J[a+60>>2]=b;f=0}return f}J[a+40>>2]=98;return 1}function OUa(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; +g=fc-32|0;fc=g;J[a>>2]=2216908;J[g+16>>2]=13;J[g>>2]=13;J[a+1064>>2]=0;b=a+1056|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1048>>2]=0;J[a+1052>>2]=0;a:{b:{if(!VB(a,c))break b;if(J[a+4>>2]!=1){Cc(1,-1,807372,0);break b}c:{if(J[Ec(c,807864,g+16|0,0)>>2]==6){b=J[J[g+24>>2]+12>>2];if((b|0)>0)break c}Cc(1,-1,808287,0);break b}J[a+1044>>2]=b;q=a,r=Gd(b,4),J[q+1048>>2]=r;q=a,r=Gd(J[a+1044>>2]+1|0,8),J[q+1052>>2]=r;q=a,r=Gd(J[a+1044>>2]<<1,8),J[q+1056>>2]=r;q=a,r=Gd(J[a+1044>>2],8),J[q+1060>>2]=r;d:{e:{j=J[a+1044>>2];f:{if((j| +0)<=0)break f;i=a+1048|0;b=0;if(j>>>0>=4){p=j&-4;while(1){k=b<<2;J[k+J[i>>2]>>2]=0;J[J[i>>2]+(k|4)>>2]=0;J[J[i>>2]+(k|8)>>2]=0;J[J[i>>2]+(k|12)>>2]=0;b=b+4|0;h=h+4|0;if((p|0)!=(h|0))continue;break}}h=j&3;if(h)while(1){J[J[i>>2]+(b<<2)>>2]=0;b=b+1|0;l=l+1|0;if((h|0)!=(l|0))continue;break}if((j|0)<=0)break f;j=f+1|0;b=fi(Sc(J[g+24>>2],0,g,0),d,e,j);J[J[a+1048>>2]>>2]=b;if(!b)break d;b=J[J[a+1048>>2]>>2];J[a+8>>2]=J[b+8>>2];h=808716;if(J[b+4>>2]!=1|J[b+8>>2]!=J[a+8>>2])break e;yc(g);b=1;if(J[a+1044>> +2]<=1)break f;while(1){f=fi(Sc(J[g+24>>2],b,g,0),d,e,j);k=b<<2;J[k+J[i>>2]>>2]=f;if(!f)break d;f=J[k+J[i>>2]>>2];if(J[f+4>>2]!=1|J[f+8>>2]!=J[a+8>>2])break e;yc(g);b=b+1|0;if((b|0)>2])continue;break}}b=g+16|0;yc(b);g:{if(J[Ec(c,809112,b,0)>>2]==6){d=J[a+1044>>2];if(J[J[g+24>>2]+12>>2]==(d-1|0))break g}Cc(1,-1,809448,0);break b}b=J[a+1052>>2];O[b>>3]=O[a+16>>3];if((d|0)>=2){b=1;while(1){if(J[Sc(J[g+24>>2],b-1|0,g,0)>>2]-3>>>0<4294967294){h=809772;break e}O[J[a+1052>>2]+(b<<3)>>3]=J[g>>2]== +1?+J[g+8>>2]:O[g+8>>3];yc(g);b=b+1|0;d=J[a+1044>>2];if((b|0)<(d|0))continue;break}b=J[a+1052>>2]}O[b+(d<<3)>>3]=O[a+24>>3];b=g+16|0;yc(b);h:{if(J[Ec(c,798698,b,0)>>2]!=6)break h;b=J[a+1044>>2];if(J[J[g+24>>2]+12>>2]!=b<<1)break h;if((b|0)>0){b=0;while(1){if(J[Sc(J[g+24>>2],b,g,0)>>2]-3>>>0<4294967294){h=810571;break e}O[J[a+1056>>2]+(b<<3)>>3]=J[g>>2]==1?+J[g+8>>2]:O[g+8>>3];yc(g);b=b+1|0;if((b|0)>2]<<1)continue;break}}yc(g+16|0);e=J[a+1044>>2];if((e|0)>0){f=J[a+1060>>2];i=J[a+1056>>2]; +d=J[a+1052>>2];b=0;while(1){m=0;h=b<<3;n=O[h+d>>3];c=b+1|0;o=O[d+(c<<3)>>3];if(n!=o){b=i+(b<<4)|0;m=(O[b+8>>3]-O[b>>3])/(o-n)}O[f+h>>3]=m;b=c;if((e|0)!=(b|0))continue;break}}J[a+1064>>2]=1;break a}Cc(1,-1,810124,0);break b}Cc(1,-1,h,0)}yc(g)}yc(g+16|0)}fc=g+32|0;return a|0}function efb(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;e=1;a:{if(!J[a+16>>2])break a;j=J[a+20>>2];if(!j)break a;d=fc-240|0;fc=d;b:{c:{c=J[c>>2];if((c|0)>=8){a=J[j+4>>2];if(!K[a+25| +0]){g=O[b>>3];h=O[b+8>>3];H[a+25|0]=1;J[d+8>>2]=0;q=Qe(a,d+8|0),r=1,H[q|0]=r;e=J[d+8>>2];O[e+8>>3]=h;O[e>>3]=g;J[a>>2]=J[a>>2]+1}J[d+184>>2]=0;J[d+188>>2]=0;J[d+192>>2]=0;J[d+196>>2]=0;J[d+200>>2]=0;J[d+204>>2]=0;J[d+208>>2]=0;J[d+212>>2]=0;J[d+216>>2]=0;J[d+220>>2]=64;J[d+224>>2]=0;J[d+168>>2]=0;J[d+172>>2]=1072693248;J[d+16>>2]=0;J[d+20>>2]=1072693248;J[d+8>>2]=0;J[d+12>>2]=0;J[699344]=0;a=d+8|0;O[a+8>>3]=25;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[d+168>>2]=0;J[d+172>>2]=1077477376;g=O[b+ +56>>3];h=O[b+48>>3];k=O[b+40>>3];l=O[b+32>>3];m=O[b+24>>3];n=O[b+16>>3];o=O[b+8>>3];p=O[b>>3];d:{if(!J[d+224>>2]){J[699344]=0;hD(a,p,o,n,m,l,k,h,g);a=J[699344];J[699344]=0;if((a|0)!=1)break d;break c}J[699344]=0;Rb(2490,d+168|0,+p,+o,+n,+m,+l,+k,+h,+g);a=J[699344];J[699344]=0;if((a|0)==1)break c}e:{f:{a=J[j+4>>2];e=J[a>>2];if(e){e=e-1|0;if(!(K[J[J[a+16>>2]+(e>>>6&67108860)>>2]+(e&255)|0]&64))break f}J[699344]=0;ca(2491,a|0,d+8|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;break c}J[699344]=0;ca(2492, +a|0,d+8|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break c}a=c-8|0;if(a>>>0>=6){b=b- -64|0;c=(a>>>0)/6|0;e=0;while(1){a=b+P(e,48)|0;g=O[a+40>>3];h=O[a+32>>3];k=O[a+24>>3];l=O[a+16>>3];m=O[a+8>>3];n=O[a>>3];a=J[j+4>>2];J[699344]=0;J[d+236>>2]=0;f=aa(2487,a|0,d+236|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break c;H[f|0]=4;f=J[d+236>>2];O[f+8>>3]=m;O[f>>3]=n;J[a>>2]=J[a>>2]+1;J[699344]=0;J[d+236>>2]=0;f=aa(2487,a|0,d+236|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break c;H[f|0]=4;f=J[d+236>>2];O[f+8>>3]= +k;O[f>>3]=l;J[a>>2]=J[a>>2]+1;J[699344]=0;J[d+236>>2]=0;f=aa(2487,a|0,d+236|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break c;H[f|0]=4;f=J[d+236>>2];O[f+8>>3]=g;O[f>>3]=h;J[a>>2]=J[a>>2]+1;e=e+1|0;if((c|0)!=(e|0))continue;break}}b=J[d+208>>2];if(b){a=b-1|0;J[d+208>>2]=a;e=J[d+216>>2]+(b<<2)|0;while(1){e=e-4|0;b=J[e>>2];if(b){uc(b);a=J[d+208>>2]}b=a;a=b-1|0;J[d+208>>2]=a;if(b)continue;break}}a=J[d+216>>2];if(a)uc(a)}fc=d+240|0;break b}c=Z()|0;b=J[d+208>>2];if(b){a=b-1|0;J[d+208>>2]=a;e=J[d+216>>2]+ +(b<<2)|0;while(1){e=e-4|0;b=J[e>>2];if(b){uc(b);a=J[d+208>>2]}b=a;a=b-1|0;J[d+208>>2]=a;if(b)continue;break}}a=J[d+216>>2];if(a)uc(a);ba(c|0);B()}e=0}return e|0}function HL(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;f=J[a+4>>2];if(J[f+48>>2]<=7){IL(a,b);return}e=J[a+12>>2];c=J[a+8>>2];m=e-c|0;if(m|J[f+44>>2]){h=J[a+16>>2];g=J[a+20>>2];if(h>>>0>=g>>>0){J[b>>2]=15;return}k=1;l=g-h>>1;g=J[a+24>>2];a:{b:{d=J[f+44>>2];if(d){J[f+44>>2]=0;H[f+36|0]=1;H[f+37|0]=d;break b}k= +K[f+36|0];if(k)break b;k=0;j=m;e=c;break a}p=f+37|0;d=k<<24>>24;n=4-d|0;o=((d+e|0)-c|0)-4|0;k=0;j=m;c:{d:{e:{while(1){H[d+p|0]=K[c|0];j=j-1|0;k=k+1|0;e=c+1|0;f:{g:switch(d-1|0){case 0:i=K[f+37|0]|K[f+38|0]<<8;if((i&63488)!=55296){I[h>>1]=i;if(g){J[g>>2]=-1;g=g+4|0}else g=0;h=h+2|0;l=l-1|0;i=0;H[f+36|0]=0;break a}if(!(i&1024))break f;H[f+36|0]=2;break a;case 2:break g;default:break f}d=K[f+40|0];if((d&252)==220){c=K[f+39|0]|d<<8;I[h>>1]=K[f+37|0]|K[f+38|0]<<8;if(l>>>0<2)break c;I[h+2>>1]=c;if(g){J[g>> +2]=-1;J[g+4>>2]=-1;g=g+8|0}else g=0;h=h+4|0;l=l-2|0;i=0;H[f+36|0]=0;j=o;k=n;break a}J[b>>2]=12;if((J[a+8>>2]-e|0)<2)break e;c=c-1|0;break d}d=d+1|0;c=e;if(j)continue;break}j=0;k=m;i=0;H[f+36|0]=d;break a}J[f+44>>2]=K[f+39|0]|256}H[f+36|0]=2;J[a+24>>2]=g;J[a+16>>2]=h;J[a+8>>2]=c;return}h=h+2|0;H[f+65|0]=1;I[f+116>>1]=c;J[b>>2]=15;l=0;H[f+36|0]=0;j=o;k=n;i=0}h:{i:{j:{if(i){c=e;break j}c=l<<1;c=c>>>0>j>>>0?j&-2:c;if(!c){c=e;break j}j=j-c|0;d=c>>>1|0;l=l-d|0;k:{l:{if(!g){while(1){c=e+2|0;i=K[e|0]|K[e+ +1|0]<<8;m:{if((i&63488)!=55296){I[h>>1]=i;e=h+2|0;break m}g=0;if(i&1024|d>>>0<2)break l;g=K[e+3|0];if((g&252)!=220){g=0;break k}c=K[e+2|0];I[h>>1]=i;I[h+2>>1]=c|g<<8;d=d-1|0;c=e+4|0;e=h+4|0}h=e;e=c;d=d-1|0;if(d)continue;break}d=0;break h}while(1){c=e+2|0;i=K[e|0]|K[e+1|0]<<8;n:{if((i&63488)!=55296){I[h>>1]=i;i=2;h=h+2|0;n=1;m=g;break n}if(i&1024|d>>>0<2)break l;m=K[e+3|0];if((m&252)!=220)break k;c=K[e+2|0];I[h>>1]=i;I[h+2>>1]=c|m<<8;J[g>>2]=k;i=4;h=h+4|0;d=d-1|0;n=2;c=e+4|0;m=g+4|0}e=c;J[m>>2]=k; +k=i+k|0;g=(n<<2)+g|0;d=d-1|0;if(d)continue;break}d=g;break h}if(!d)break i}l=d+l|0;j=((d<<1)+j|0)-2|0}if(!i)break i;H[f+36|0]=2;H[f+37|0]=i;H[f+38|0]=i>>>8;n=12;o:{if(i&1024){d=g;break o}if(j>>>0<2)break i;e=K[c+1|0];if((e&252)!=220){d=g;j=1;break o}e=K[c|0]|e<<8;I[h>>1]=i;d=0;if(g){J[g>>2]=k;d=g+4|0}h=h+2|0;j=j-2|0;H[f+65|0]=1;I[f+116>>1]=e;H[f+36|0]=0;n=15;c=c+2|0}e=c;J[b>>2]=n;break h}d=g;e=c}p:{if(!j|J[b>>2]>0)break p;if(!l){J[b>>2]=15;break p}b=K[e|0];c=H[f+36|0];H[f+36|0]=c+1;H[(c+f|0)+37|0]= +b;e=e+1|0}J[a+24>>2]=d;J[a+16>>2]=h;J[a+8>>2]=e}}function PA(a){a=a|0;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;d=fc-16|0;fc=d;a:{b:{c:{d:{if(J[a+16>>2])break d;if(lk(a+20|0))break d;J[d+12>>2]=0;h=J[a+116>>2];if(!h)break d;n=a+108|0;while(1){b=J[h+8>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break c;e=J[h+8>>2]}else e=0;J[d+4>>2]=e;e:{f:{g:{h:{i:{if(!K[a+8|0]){k=J[e+16>>2];if((k|0)<0){J[d+4>>2]=0;break h}c=0;j=J[J[a+72>>2]+12>>2];j:{if(!j)break j; +i=J[e+12>>2];g=k+i|0;if((g|0)<=0)break j;f=J[j+8>>2];b=f>>31;b=(b^f)-b|0;c=0;k:{if((f|0)<=0)break k;f=b>>>0>>0;c=f?b:g;if((i|0)<=0)break k;c=b>>>0>=g>>>0?k:0;if(!(f&b>>>0>=i>>>0))break k;c=b-i|0}f=J[j>>2];if(!f)break j;while(1){if((b|0)>=(g|0))break j;m=J[f+8>>2];l=m>>31;j=b;l=(l^m)-l|0;b=b+l|0;l:{if((m|0)<=0)break l;if((i|0)>(j|0)){if(!((b|0)<(i|0)|(b|0)>=(g|0))){c=(c-i|0)+b|0;break l}c=((b|0)>=(g|0)?k:0)+c|0;break l}if((b|0)<=(g|0)){c=c+l|0;break l}c=(g-j|0)+c|0}f=J[f>>2];if(f)continue;break}}if((c| +0)!=(k|0))break i}J[699344]=0;c=d+4|0;aa(5153,d+12|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;zc(c);break b}J[d+4>>2]=0;if(!e)break g}J[699344]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break g;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}h=J[h>>2];if(h)continue;break e}b=J[d+4>>2];J[d+4>>2]=0;if(!b)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break e;J[699344]=0;$(5147, +b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[d+12>>2];if(!b)break d;J[699344]=0;b=J[b+8>>2];c=J[699344];J[699344]=0;m:{if((c|0)!=1){if(b)break m;b=J[d+12>>2];c=J[b+20>>2];if(!c)break m;b=J[b+24>>2];J[699344]=0;$(c|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break m;oa(ea(0)|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1)break m}b=Z()|0;break b}b=J[a+116>>2];J[d+8>>2]=n;n:{if(!b)break n;c=J[d+12>>2];while(1){if((c|0)==J[b+8>>2]){J[699344]=0;J[d+4>>2]=b;da(5235,n|0,d+4|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break n;b=Z()|0;break b}b=J[b>>2];if(b)continue;break}}b=J[d+12>>2];J[d+12>>2]=0;o:{if(!b)break o;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break o;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[d+12>>2]=0;h=J[a+116>>2];if(h)continue;break}}fc=d+16|0;return}b=Z()|0}zc(d+12|0);ba(b|0);B()}ea(0)|0;Bc();B()}function Rib(a){a=a|0;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;c=fc-16|0;fc=c;g=J[a+24>> +2];e=J[g+4>>2];a:{if(!e){if(!(kc[J[g+12>>2]](a)|0)){e=0;break a}e=J[g+4>>2]}b=J[g>>2];f=K[b|0];e=e-1|0;if(e)b=b+1|0;else{if(!(kc[J[g+12>>2]](a)|0)){e=0;break a}e=J[g+4>>2];b=J[g>>2]}k=b+1|0;e=e-1|0;b=K[b|0]|f<<8;f=b-2|0;b=b>>>0>15?14:b>>>0>=f>>>0?f:0;if(b)while(1){if(!e){if(!(kc[J[g+12>>2]](a)|0)){e=0;break a}k=J[g>>2];e=J[g+4>>2]}H[(c+2|0)+d|0]=K[k|0];k=k+1|0;e=e-1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}m=f-b|0;b:{c:{d:{d=J[a+436>>2];h=d-224|0;if(h)if((h|0)==14)break d;else break c;f=b+m|0;e:{f:{g:{h:{if(b>>> +0>=14){if(K[c+2|0]!=74)break g;if(K[c+3|0]!=70|K[c+4|0]!=73|(K[c+6|0]|K[c+5|0]!=70))break h;J[a+284>>2]=1;b=K[c+7|0];H[a+288|0]=b;d=K[c+8|0];H[a+289|0]=d;h=K[c+9|0];H[a+290|0]=h;i=K[c+10|0]|K[c+11|0]<<8;i=i<<8|i>>>8;I[a+292>>1]=i;j=K[c+12|0]|K[c+13|0]<<8;j=j<<8|j>>>8;I[a+294>>1]=j;l=1;if((b|0)!=1){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=122;J[J[a>>2]+28>>2]=K[a+289|0];kc[J[J[a>>2]+4>>2]](a,-1);l=K[a+288|0];h=K[a+290|0];j=L[a+294>>1];i=L[a+292>>1];d=K[a+289|0]}b=J[a>>2];J[b+24>>2]=l;J[b+20>>2]=89;J[b+40>> +2]=h;J[b+36>>2]=j&65535;J[b+32>>2]=i&65535;J[b+28>>2]=d;kc[J[b+4>>2]](a,1);f=f-14|0;d=K[c+14|0];b=K[c+15|0];if(d|b){b=J[a>>2];J[b+20>>2]=92;J[b+24>>2]=K[c+14|0];J[J[a>>2]+28>>2]=K[c+15|0];kc[J[J[a>>2]+4>>2]](a,1);d=K[c+14|0];b=K[c+15|0]}if((P(P(b,d),3)|0)==(f|0))break e;b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=90;break f}if(K[c+2|0]!=74|b>>>0<6)break g}if(K[c+3|0]!=70|K[c+4|0]!=88|(K[c+6|0]|K[c+5|0]!=88))break g;b=J[a>>2];i:switch(K[c+7|0]-16|0){case 0:J[b+24>>2]=f;J[b+20>>2]=110;break f;case 1:J[b+24>> +2]=f;J[b+20>>2]=111;break f;case 3:J[b+24>>2]=f;J[b+20>>2]=112;break f;default:break i}J[b+20>>2]=91;J[b+24>>2]=K[c+7|0];J[J[a>>2]+28>>2]=f;break f}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=79}kc[J[J[a>>2]+4>>2]](a,1)}break b}j:{if(K[c+2|0]!=65|b>>>0<12|(K[c+3|0]!=100|K[c+4|0]!=111))break j;if(K[c+5|0]!=98|K[c+6|0]!=101)break j;f=K[c+8|0];h=K[c+7|0];i=K[c+10|0];j=K[c+9|0];l=K[c+12|0];n=K[c+11|0];d=K[c+13|0];b=J[a>>2];J[b+20>>2]=78;J[b+36>>2]=d;J[b+32>>2]=l|n<<8;J[b+28>>2]=i|j<<8;J[b+24>>2]=f|h<<8;kc[J[b+ +4>>2]](a,1);H[a+300|0]=d;J[a+296>>2]=1;break b}b=J[a>>2];J[b+24>>2]=f;J[b+20>>2]=80;kc[J[J[a>>2]+4>>2]](a,1);break b}b=J[a>>2];J[b+24>>2]=d;J[b+20>>2]=70;kc[J[J[a>>2]>>2]](a)}J[g+4>>2]=e;J[g>>2]=k;e=1;if((m|0)<=0)break a;kc[J[J[a+24>>2]+16>>2]](a,m)}fc=c+16|0;return e|0}function jbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a; +J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+80>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[a+84>>2];o=(h|0)<(g|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]= +g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]| +0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((h|0)!=(g| +0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Wl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function abb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b); +if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+80>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[a+84>>2];o=(h|0)<(g|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g; +J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+ +12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Vl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a; +if(Xc(b,d))continue;break}}}function w4a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;b=fc-80|0;fc=b;d=vc(80);J[b+56>>2]=d;J[b+60>>2]=16;J[b+64>>2]=-2147483628;e=J[88248];J[d+56>>2]=J[88247];J[d+60>>2]=e;e=J[88246];J[d+48>>2]=J[88245];J[d+52>>2]=e;e=J[88244];J[d+40>>2]=J[88243];J[d+44>>2]=e;e=J[88242];J[d+32>>2]=J[88241];J[d+36>>2]=e;e=J[88240];J[d+24>>2]=J[88239];J[d+28>>2]=e;e=J[88238];J[d+16>>2]=J[88237];J[d+20>>2]=e;e=J[88236];J[d+8>>2]=J[88235];J[d+12>>2]=e;e=J[88234];J[d>>2]=J[88233];J[d+4>> +2]=e;J[d+64>>2]=0;J[699344]=0;ca(2985,b+68|0,b+56|0,1);d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((d|0)!=1){if(H[b+67|0]<0)uc(J[b+56>>2]);J[699344]=0;d=_(4,96)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[b+44>>2]=d;J[b+48>>2]=20;J[b+52>>2]=-2147483624;f=xc(d,353E3,80),g=0,J[f+80>>2]=g;J[699344]=0;ca(2995,b+44|0,b+68|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break g;if(H[b+55|0]<0)uc(J[b+44>>2]);J[699344]=0;d=_(4,112)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[b+32>>2]=d;J[b+36>>2]=24; +J[b+40>>2]=-2147483620;f=xc(d,353084,96),g=0,J[f+96>>2]=g;J[699344]=0;ca(2995,b+32|0,b+68|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break f;if(H[b+43|0]<0)uc(J[b+32>>2]);J[699344]=0;d=_(4,64)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[b+20>>2]=d;J[b+24>>2]=15;J[b+28>>2]=-2147483632;J[d+56>>2]=J[88310];e=J[88309];J[d+48>>2]=J[88308];J[d+52>>2]=e;e=J[88307];J[d+40>>2]=J[88306];J[d+44>>2]=e;e=J[88305];J[d+32>>2]=J[88304];J[d+36>>2]=e;e=J[88303];J[d+24>>2]=J[88302];J[d+28>>2]=e;e=J[88301];J[d+16>> +2]=J[88300];J[d+20>>2]=e;e=J[88299];J[d+8>>2]=J[88298];J[d+12>>2]=e;e=J[88297];J[d>>2]=J[88296];J[d+4>>2]=e;J[d+60>>2]=0;J[699344]=0;ca(2995,b+20|0,b+68|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break e;if(H[b+31|0]<0)uc(J[b+20>>2]);h:{if(!K[c|0])break h;J[699344]=0;c=_(4,96)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;J[b+8>>2]=c;J[b+12>>2]=22;J[b+16>>2]=-2147483624;f=xc(c,353248,88),g=0,J[f+88>>2]=g;J[699344]=0;ca(2995,b+8|0,b+68|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break d;if(H[b+19|0]>=0)break h; +uc(J[b+8>>2])}J[a>>2]=J[b+68>>2];J[a+4>>2]=J[b+72>>2];J[a+8>>2]=J[b+76>>2];fc=b+80|0;return}a=Z()|0;if(H[b+67|0]>=0)break a;uc(J[b+56>>2]);ba(a|0);B()}a=Z()|0;if(H[b+55|0]>=0)break b;uc(J[b+44>>2]);break b}a=Z()|0;if(H[b+43|0]>=0)break b;uc(J[b+32>>2]);break b}a=Z()|0;if(H[b+31|0]>=0)break b;uc(J[b+20>>2]);break b}a=Z()|0;if(H[b+19|0]>=0)break b;uc(J[b+8>>2]);break b}a=Z()|0}Ag(b+68|0)}ba(a|0);B()}function pbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+80>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[a+84>>2];o=(h|0)<(g|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((o|0)>(((h|0)<(g|0)?h:g)| +0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>> +2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>> +3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Wl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function nbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a; +J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+80>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[a+84>>2];o=(h|0)<(g|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]= +g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]| +0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((h|0)!=(g| +0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Wl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function lbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b); +if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+80>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[a+84>>2];o=(h|0)<(g|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g; +J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+ +12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Wl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a; +if(Xc(b,d))continue;break}}}function gbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+80>>2]; +k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[a+84>>2];o=(h|0)<(g|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+ +24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+ +16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>> +0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Vl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function ebb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+80>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[a+84>>2];o=(h|0)<(g|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((o|0)>(((h|0)<(g|0)?h:g)| +0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>> +2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>> +3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Vl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function cbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a; +J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];k=J[b+88>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+80>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[a+84>>2];o=(h|0)<(g|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]= +g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]| +0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((h|0)!=(g| +0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Vl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function T7(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;k=fc-16|0;fc=k;n=J[a>>2];i=J[b+20>>2];a:{b:{if(i){a=85;if(kc[i|0](b,c,0,0)|0)break a;j=J[b+4>>2];break b}a=85;j=J[b+4>>2];if(j>>>0>>0)break a}J[b+8>>2]=c;c:{if(c+1>>>0>=j>>>0)break c;d:{e:{a=J[b+20>>2];f:{if(a){j=k+6|0;if((kc[a|0](b,c,j,2)|0)!=2)break c;a=J[b+8>>2];break f}a=J[b>> +2];if(!a)break e;j=a+c|0;a=c}i=K[j|0]|K[j+1|0]<<8;j=a+2|0;J[b+8>>2]=j;a=8;o=(i<<8|i>>>8)<<16>>16;if((o|0)>4078)break a;if((o|0)>=0)break d;a=1;break a}j=c+2|0;J[b+8>>2]=j}while(1){g:{h:{i:{l=J[b+4>>2];if(l>>>0<=j+3>>>0)break i;j:{k:{i=J[b+20>>2];l:{if(i){a=k+8|0;if((kc[i|0](b,j,a,4)|0)!=4)break i;l=J[b+4>>2];j=J[b+8>>2];break l}a=J[b>>2];if(!a)break k;a=a+j|0}a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);m=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break j}m=0}a=j+4|0;J[b+8>>2]=a;if(j+5>>>0>=l>>> +0)break i;m:{n:{l=J[b+20>>2];o:{if(l){i=k+12|0;if((kc[l|0](b,a,i,2)|0)!=2)break i;a=J[b+8>>2];break o}i=J[b>>2];if(!i)break n;i=a+i|0}i=K[i|0]|K[i+1|0]<<8;l=i<<8|i>>>8;break m}l=0}j=a+2|0;J[b+8>>2]=j;if(M[b+4>>2]<=a+3>>>0)break i;i=J[b+20>>2];p:{if(i){a=k+14|0;if((kc[i|0](b,j,a,2)|0)!=2)break i;j=J[b+8>>2];break p}a=J[b>>2];if(!a)break h;a=a+j|0}a=K[a|0]|K[a+1|0]<<8;i=a<<8|a>>>8;break g}a=85;break a}i=0}j=j+2|0;J[b+8>>2]=j;if((e|0)!=(m|0)){a=1;i=(o|0)==(p|0);p=p+1|0;if(!i)continue;break a}break}J[h>> +2]=(l<<16>>16)+1;a=8;if((l&65535)>>>0>2726)break a;e=(i<<16>>16)+c|0;c=J[b+20>>2];q:{if(c){a=85;if(!(kc[c|0](b,e,0,0)|0))break q;break a}a=85;if(e>>>0>M[b+4>>2])break a}J[b+8>>2]=e;c=0;J[k>>2]=0;l=_c(n,8,0,J[h>>2],0,k);a=J[k>>2];if(a)break a;a=J[h>>2];r:{if((a|0)>0)while(1){e=l+(c<<3)|0;q=e,r=ee(b,k),I[q>>1]=r;a=J[k>>2];if(a)break r;i=J[b+8>>2]+2|0;s:{a=J[b+20>>2];if(a){if(!(kc[a|0](b,i,0,0)|0))break s;a=85;break r}if(i>>>0<=M[b+4>>2])break s;a=85;break r}J[b+8>>2]=i;J[k>>2]=0;i=Rf(b,k);a=J[k>>2]; +if(a)break r;m=J[b+8>>2]+4|0;t:{a=J[b+20>>2];if(a){if(!(kc[a|0](b,m,0,0)|0))break t;a=85;break r}if(m>>>0<=M[b+4>>2])break t;a=85;break r}J[b+8>>2]=m;J[k>>2]=0;if((i|0)<0){a=8;break r}J[e+4>>2]=i&16777215;a=J[h>>2];c=c+1|0;if((a|0)>(c|0))continue;break}b=0;c=n;if(f){vm(l,a,8,1656);a=J[h>>2]}c=_c(c,4,0,a,0,k);a=J[k>>2];if(!a){if(J[h>>2]>0)while(1){J[c+(b<<2)>>2]=J[(l+(b<<3)|0)+4>>2]+d;b=b+1|0;if((b|0)>2])continue;break}J[g>>2]=c;a=0}if(!l)break a}kc[J[n+8>>2]](n,l);break a}a=85}fc=k+16|0;return a} +function j6(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;e=fc-16|0;fc=e;k=J[a+28>>2];f=yd(a,c);J[e+12>>2]=f;a:{if(f)break a;f=ee(a,e+12|0);if(J[e+12>>2])break a;if((f|0)!=1){J[e+12>>2]=8;break a}f=e+12|0;g=Rf(a,f);if(J[e+12>>2])break a;i=ee(a,f);J[d>>2]=i;if(J[e+12>>2])break a;if(!i){J[e+12>>2]=8;break a}f=0;l=_c(k,4,0,i,0,e+12|0);if(J[e+12>>2])break a;if(J[d>>2])while(1){n=(f<<2)+l|0,o=Rf(a,e+12|0),J[n>>2]=o;if(J[e+12>>2])break a;f=f+1|0;if(f>>>0>2])continue;break}f=yd(a,c+g|0); +J[e+12>>2]=f;if(f)break a;n=d,o=ee(a,e+12|0),I[n+8>>1]=o;if(J[e+12>>2])break a;f=ee(a,e+12|0);J[d+12>>2]=f;if(J[e+12>>2])break a;if(J[J[b+12>>2]>>2]!=L[d+8>>1]){J[e+12>>2]=8;break a}n=d,o=_c(k,4,0,f,0,e+12|0),J[n+16>>2]=o;if(J[e+12>>2])break a;if(J[d+12>>2]){b=L[d+8>>1];while(1){i=_c(k,12,0,b&65535,0,e+12|0);J[J[d+16>>2]+(j<<2)>>2]=i;if(J[e+12>>2])break a;b=0;if(L[d+8>>1]){f=0;while(1){g=ee(a,e+12|0);if(J[e+12>>2])break a;h=ee(a,e+12|0);if(J[e+12>>2])break a;m=ee(a,e+12|0);if(J[e+12>>2])break a;b= +i+P(f,12)|0;J[b+8>>2]=m<<16>>16<<2;J[b+4>>2]=h<<16>>16<<2;J[b>>2]=g<<16>>16<<2;b=L[d+8>>1];f=f+1|0;if(b>>>0>f>>>0)continue;break}}j=j+1|0;if(j>>>0>2])continue;break}}j=0;n=d,o=_c(k,16,0,J[d>>2],0,e+12|0),J[n+4>>2]=o;if(J[e+12>>2]|!J[d>>2])break a;while(1){b=J[d+4>>2];f=yd(a,J[(j<<2)+l>>2]+c|0);J[e+12>>2]=f;if(f)break a;g=(j<<4)+b|0;n=g,o=ee(a,e+12|0),J[n>>2]=o;if(J[e+12>>2])break a;i=ee(a,e+12|0);if(J[e+12>>2])break a;b=ee(a,e+12|0);J[g+4>>2]=b;if(J[e+12>>2])break a;if(b>>>0>>0){J[e+12>> +2]=8;break a}if(b>>>0>M[d+12>>2]){J[e+12>>2]=8;break a}n=g,o=_c(k,4,0,b,0,e+12|0),J[n+8>>2]=o;if(J[e+12>>2])break a;f=0;b:{if(!J[g+4>>2]){b=0;break b}while(1){b=ee(a,e+12|0);J[J[g+8>>2]+(f<<2)>>2]=b;if(J[e+12>>2])break a;if(b>>>0>2]){b=J[g+4>>2];f=f+1|0;if(b>>>0<=f>>>0)break b;continue}break}J[e+12>>2]=8;break a}n=g,o=_c(k,2,0,P(J[g>>2],b),0,e+12|0),J[n+12>>2]=o;if(J[e+12>>2])break a;h=J[g+4>>2];if(P(h,J[g>>2])){f=0;while(1){if(i){b=f+i|0;while(1){h=ee(a,e+12|0);if(J[e+12>>2])break a;I[J[g+ +12>>2]+(f<<1)>>1]=h;f=f+1|0;if((b|0)!=(f|0))continue;break}h=J[g+4>>2];f=b}b=i;if(h>>>0>b>>>0)while(1){h=Rg(a,e+12|0);if(J[e+12>>2])break a;I[J[g+12>>2]+(f<<1)>>1]=h;f=f+1|0;b=b+1|0;h=J[g+4>>2];if(b>>>0>>0)continue;break}if(P(J[g>>2],h)>>>0>f>>>0)continue;break}}j=j+1|0;if(j>>>0>2])continue;break}}if(l)kc[J[k+8>>2]](k,l);fc=e+16|0;return J[e+12>>2]}function e3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0; +y=fc-448|0;fc=y;t=J[a+332>>2];b=J[b+84>>2];a=y;while(1){j=J[b+192>>2];n=I[c+96>>1];i=J[b+64>>2];k=I[c+32>>1];o=P(I[c>>1],J[b>>2])<<13|1024;p=P(J[b+128>>2],I[c+64>>1]);l=o+P(p,-11586)>>11;h=P(J[b+224>>2],I[c+112>>1]);m=P(J[b+32>>2],I[c+16>>1]);f=P(J[b+96>>2],I[c+48>>1]);u=m-f|0;g=P(J[b+160>>2],I[c+80>>1]);q=h+(u-g|0)<<2;J[a+320>>2]=l-q;J[a+96>>2]=l+q;n=P(j,n);i=P(i,k);k=P(n+i|0,9058);l=k+P(n,-14084)|0;q=o+P(p,2578)|0;r=l+q|0;j=h<<13;h=P(f+g|0,-1297)-j|0;x=P(f+m|0,10935);v=h+(x+P(f,-3474)|0)|0;J[a+ +384>>2]=r-v>>11;J[a+32>>2]=r+v>>11;n=P(n,-11295)+P(i,5027)|0;r=o+P(p,-7223)|0;v=n+r|0;s=h;h=g+m|0;w=P(h,9810);s=s+(w+P(g,-19447)|0)|0;J[a+352>>2]=v-s>>11;J[a+64>>2]=v+s>>11;l=q-l|0;u=P(u,3826)-j|0;s=P(f,5529);f=P(g-f|0,11512);q=u+(s+f|0)|0;J[a+256>>2]=l-q>>11;J[a+160>>2]=l+q>>11;p=o+P(p,10438)|0;o=k+P(i,2237)|0;i=p-o|0;k=P(h,6164);l=u+(k+P(m,-8693)|0)|0;J[a+224>>2]=i-l>>11;J[a+192>>2]=i+l>>11;p=p+o|0;m=j+(w+(x+P(m,-9232)|0)|0)|0;J[a+416>>2]=p-m>>11;J[a>>2]=m+p>>11;m=r-n|0;f=j+(k+(f+P(g,-13850)|0)| +0)|0;J[a+288>>2]=m-f>>11;J[a+128>>2]=f+m>>11;a=a+4|0;b=b+4|0;c=c+2|0;z=z+1|0;if((z|0)!=8)continue;break}a=t+128|0;b=y;p=0;while(1){f=J[b+12>>2];m=J[b+4>>2];i=P(f+m|0,10935);k=J[b+24>>2];t=J[b+8>>2];l=P(k+t|0,9058);c=J[(p<<2)+d>>2]+e|0;q=J[b+28>>2];o=q<<13;g=J[b+20>>2];u=g+m|0;h=P(u,9810);r=o+(h+(i+P(m,-9232)|0)|0)|0;x=l+P(t,2237)|0;n=(J[b>>2]<<13)+131072|0;j=J[b+16>>2];v=n+P(j,10438)|0;w=x+v|0;H[c|0]=K[a+(r+w>>>18&1023)|0];H[c+13|0]=K[a+(w-r>>>18&1023)|0];s=i+P(f,-3474)|0;i=P(f+g|0,-1297)-o|0;r=s+ +i|0;l=l+P(k,-14084)|0;w=n+P(j,2578)|0;s=l+w|0;H[c+1|0]=K[a+(r+s>>>18&1023)|0];H[c+12|0]=K[a+(s-r>>>18&1023)|0];i=i+(h+P(g,-19447)|0)|0;k=P(k,-11295)+P(t,5027)|0;t=n+P(j,-7223)|0;h=k+t|0;H[c+2|0]=K[a+(i+h>>>18&1023)|0];H[c+11|0]=K[a+(h-i>>>18&1023)|0];i=m-f|0;h=q+(i-g|0)<<13;j=n+P(j,-11586)|0;H[c+3|0]=K[a+(h+j>>>18&1023)|0];H[c+10|0]=K[a+(j-h>>>18&1023)|0];j=P(u,6164);h=o+P(g,-13850)|0;g=P(g-f|0,11512);n=j+(h+g|0)|0;k=t-k|0;H[c+4|0]=K[a+(n+k>>>18&1023)|0];H[c+9|0]=K[a+(k-n>>>18&1023)|0];h=g+P(f,5529)| +0;f=P(i,3826)-o|0;g=h+f|0;o=w-l|0;H[c+5|0]=K[a+(g+o>>>18&1023)|0];H[c+8|0]=K[a+(o-g>>>18&1023)|0];f=f+(j+P(m,-8693)|0)|0;g=v-x|0;H[c+6|0]=K[a+(f+g>>>18&1023)|0];H[c+7|0]=K[a+(g-f>>>18&1023)|0];b=b+32|0;p=p+1|0;if((p|0)!=14)continue;break}fc=y+448|0}function VY(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0;p=fc-16|0;fc=p;a:{b:{c:{if(!c){Nc(d,1,2363016,0);break c}x=J[c+16>>2];i=J[a+72>>2];if(x>>> +0>2]){Nc(d,1,2363099,0);break c}h=J[a+104>>2];g=P(h,J[a+108>>2]);if(g>>>0<=e>>>0){J[p>>2]=e;J[p+4>>2]=g-1;Nc(d,1,2363168,p);h=0;break c}g=(e>>>0)/(h>>>0)|0;f=e-P(g,h)|0;h=J[a+84>>2]+P(f,J[a+92>>2])|0;J[c>>2]=h;i=J[i>>2];r=h>>>0>i>>>0?h:i;J[c>>2]=r;h=J[a+84>>2]+P(J[a+92>>2],f+1|0)|0;J[c+8>>2]=h;i=J[J[a+72>>2]+8>>2];h=h>>>0>>0?h:i;J[c+8>>2]=h;i=J[a+88>>2]+P(g,J[a+96>>2])|0;J[c+4>>2]=i;f=J[J[a+72>>2]+4>>2];s=f>>>0>>0?i:f;J[c+4>>2]=s;g=J[a+88>>2]+P(J[a+96>>2],g+1|0)|0;J[c+12>>2]=g;i=J[J[a+ +72>>2]+12>>2];g=g>>>0>>0?g:i;J[c+12>>2]=g;i=J[a+72>>2];o=J[i+16>>2];if(o){y=h-1|0;A=(h>>31)-!h|0;C=g;D=g>>31;E=s>>31;F=r>>31;G=J[i+24>>2];h=J[c+24>>2];while(1){l=J[(G+P(u,52)|0)+40>>2];J[h+40>>2]=l;j=J[h>>2];if(!j)break a;m=j>>31;f=F+m|0;g=j+r|0;f=g>>>0>>0?f+1|0:f;g=wEb(g-1|0,f-!g|0,j,m);J[h+16>>2]=g;i=J[h+4>>2];if(!i)break a;v=i>>31;z=v-!i|0;f=E+z|0;q=i;w=i-1|0;i=s+w|0;f=i>>>0>>0?f+1|0:f;i=wEb(i,f,q,v);J[h+20>>2]=i;k=l&31;if((l&63)>>>0>=32){f=-1<>>32- +k}k=n^-1;f=f^-1;n=f;f=m+A|0;t=j+y|0;f=t>>>0>>0?f+1|0:f;f=wEb(t,f,j,m);t=f;m=f+k|0;f=(f>>31)+n|0;f=m>>>0>>0?f+1|0:f;j=l&31;if((l&63)>>>0>=32)m=f>>j;else m=((1<>>j;f=g>>31;g=g+k|0;f=f+n|0;f=g>>>0>>0?f+1|0:f;j=g;g=l&31;if((l&63)>>>0>=32)g=f>>g;else g=((1<>>g;J[h+8>>2]=m-g;f=D+z|0;g=w+C|0;f=g>>>0>>0?f+1|0:f;f=wEb(g,f,q,v);g=f+k|0;f=n+(f>>31)|0;f=g>>>0>>0?f+1|0:f;j=g;g=l&31;if((l&63)>>>0>=32)q=f>>g;else q=((1<>>g;f=n+(i>>31)|0;g=i+k|0;f= +g>>>0>>0?f+1|0:f;i=g;g=l&31;if((l&63)>>>0>=32)g=f>>g;else g=((1<>>g;J[h+12>>2]=q-g;h=h+52|0;u=u+1|0;if((u|0)!=(o|0))continue;break}}if(o>>>0>>0){h=J[c+24>>2];while(1){g=P(o,52);uc(J[(g+h|0)+44>>2]);h=J[c+24>>2];J[(g+h|0)+44>>2]=0;o=o+1|0;if(o>>>0>2])continue;break}J[c+16>>2]=J[J[a+72>>2]+16>>2]}h=J[a+76>>2];if(h)Jn(h);g=fB();J[a+76>>2]=g;h=0;if(!g)break c;yI(c,g);J[a+44>>2]=e;if(!d)break b;if(!Xp(J[a+180>>2],4820,d))break c;if(!fZ(a,J[a+180>>2],b,d)){Jn(J[a+72>>2]); +J[a+72>>2]=0;break c}h=WY(a,c)}fc=p+16|0;return h|0}fa(2358486,2358254,11752,2371128);B()}fa(2363745,2363747,162,2363821);B()}function psa(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;f=fc-16|0;fc=f;a:{if(c){g=Kk(J[b>>2]);break a}g=J[a+12>>2]}J[a+24>>2]=g;i=f+12|0;d=vc(100);J[d>>2]=2434816;J[d+4>>2]=0;b:{c:{d:{g=J[b>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[b>>2]}J[d+80>>2]=0;J[d+84>>2]=0;J[d+12>>2]=e;J[d+8>>2]=e;J[d+96>>2]=-1;J[d+ +88>>2]=0;J[d+92>>2]=0;J[i>>2]=0;vd(i,d);e:{if(c){b=J[d+12>>2];J[699344]=0;b=_(5293,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[d+96>>2]=b}b=32;J[d+84>>2]=32;j=d+16|0;h=J[d+92>>2];e=J[d+88>>2];while(1){f:{if((e|0)>=(h|0)){J[d+88>>2]=0;J[d+92>>2]=0;b=J[d+96>>2];if(!b){J[d+96>>2]=0;break b}c=J[d+12>>2];e=J[J[c>>2]+8>>2];J[699344]=0;h=ga(e|0,c|0,j|0,(b>>>0>=64?64:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[d+92>>2]=h;J[d+96>>2]=J[d+96>>2]-h;if((h|0)<=0)break b;e=J[d+88>>2];b=J[d+84>> +2]}g=e+1|0;J[d+88>>2]=g;c=b-8|0;J[d+84>>2]=c;J[d+80>>2]=J[d+80>>2]|K[(d+e|0)+16|0]<15;b=c;e=g;if(k)continue;break b}break}break c}break c}a=Z()|0;uc(nd(d));ba(a|0);B()}a=Z()|0;zc(i);ba(a|0);B()}J[699344]=0;aa(5153,a- -64|0,i|0)|0;b=J[699344];J[699344]=0;g:{if((b|0)!=1)h:{b=J[f+12>>2];J[f+12>>2]=0;i:{if(!b)break i;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break g;if(c)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}b=f+12|0;xH(b, +2434928,7);J[699344]=0;aa(5153,a+68|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;b=J[f+12>>2];J[f+12>>2]=0;j:{if(!b)break j;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break g;if(c)break j;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}b=f+12|0;xH(b,2434992,13);J[699344]=0;aa(5153,a+76|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;b=J[f+12>>2];J[f+12>>2]=0;k:{if(!b)break k;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]= +0;if((e|0)==1)break g;if(c)break k;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}b=f+12|0;xH(b,2435632,13);J[699344]=0;aa(5153,a+72|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;a=J[f+12>>2];J[f+12>>2]=0;l:{if(!a)break l;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break g;if(b)break l;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break g}fc=f+16|0;return}a=Z()|0;zc(f+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function bZ(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;h=fc-208|0;fc=h;j=J[a+72>>2];a:{if(!(!(J[J[a+156>>2]+5596>>2]?J[a+104>>2]!=1|J[a+108>>2]!=1:1)|J[a+8>>2]==8)){Nc(g,1,2360325,0);break a}m=J[b+16>>2];b:{if(!m)break b;k=J[a+160>>2];l=J[b+24>>2];if(m>>>0>=8){p=m&-8;while(1){J[(P(i,52)+l|0)+40>>2]=k;J[(P(i|1,52)+l|0)+40>>2]=k;J[(P(i|2,52)+l|0)+40>>2]=k;J[(P(i|3,52)+l|0)+40>>2]=k;J[(P(i|4,52)+l|0)+40>>2]=k;J[(P(i|5,52)+l|0)+40>>2]=k;J[(P(i|6,52)+l|0)+40>>2]= +k;J[(P(i|7,52)+l|0)+40>>2]=k;i=i+8|0;n=n+8|0;if((p|0)!=(n|0))continue;break}}m=m&7;if(!m)break b;while(1){J[(P(i,52)+l|0)+40>>2]=k;i=i+1|0;o=o+1|0;if((m|0)!=(o|0))continue;break}}if(!(c|d|e|f)){Nc(g,4,2360439,0);J[a+28>>2]=0;J[a+32>>2]=0;c=J[a+108>>2];J[a+36>>2]=J[a+104>>2];J[a+40>>2]=c;J[b>>2]=J[j>>2];J[b+4>>2]=J[j+4>>2];J[b+8>>2]=J[j+8>>2];J[b+12>>2]=J[j+12>>2];i=wI(b,g);break a}if((c|0)<0){J[h>>2]=c;Nc(g,1,2360553,h);i=0;break a}i=J[j+8>>2];if(i>>>0>>0){J[h+20>>2]=i;J[h+16>>2]=c;Nc(g,1,2360662, +h+16|0);i=0;break a}i=J[j>>2];c:{if(i>>>0>c>>>0){J[h+196>>2]=i;J[h+192>>2]=c;Nc(g,2,2360821,h+192|0);J[a+28>>2]=0;c=J[j>>2];break c}J[a+28>>2]=(c-J[a+84>>2]>>>0)/M[a+92>>2]}J[b>>2]=c;if((d|0)<0){J[h+32>>2]=d;Nc(g,1,2360968,h+32|0);i=0;break a}c=J[j+12>>2];if(c>>>0>>0){J[h+52>>2]=c;J[h+48>>2]=d;Nc(g,1,2361032,h+48|0);i=0;break a}c=J[j+4>>2];d:{if(c>>>0>d>>>0){J[h+180>>2]=c;J[h+176>>2]=d;Nc(g,2,2361157,h+176|0);J[a+32>>2]=0;d=J[j+4>>2];break d}J[a+32>>2]=(d-J[a+88>>2]>>>0)/M[a+96>>2]}J[b+4>>2]=d; +i=0;if((e|0)<=0){J[h+64>>2]=e;Nc(g,1,2361287,h- -64|0);break a}c=J[j>>2];if(c>>>0>e>>>0){J[h+84>>2]=c;J[h+80>>2]=e;Nc(g,1,2361382,h+80|0);break a}c=J[j+8>>2];e:{if(c>>>0>>0){J[h+164>>2]=c;J[h+160>>2]=e;Nc(g,2,2361497,h+160|0);J[a+36>>2]=J[a+104>>2];e=J[j+8>>2];break e}q=a,r=Mt(e-J[a+84>>2]|0,J[a+92>>2]),J[q+36>>2]=r}J[b+8>>2]=e;if((f|0)<=0){J[h+96>>2]=f;Nc(g,1,2361633,h+96|0);break a}c=J[j+4>>2];if(c>>>0>f>>>0){J[h+116>>2]=c;J[h+112>>2]=f;Nc(g,1,2361700,h+112|0);break a}c=J[j+12>>2];f:{if(c>>> +0>>0){J[h+148>>2]=c;J[h+144>>2]=f;Nc(g,2,2361823,h+144|0);J[a+40>>2]=J[a+108>>2];f=J[j+12>>2];break f}q=a,r=Mt(f-J[a+88>>2]|0,J[a+96>>2]),J[q+40>>2]=r}J[b+12>>2]=f;H[a+68|0]=K[a+68|0]|2;i=wI(b,g);if(!i){i=0;break a}a=J[b>>2];c=J[b+4>>2];d=J[b+12>>2];J[h+136>>2]=J[b+8>>2];J[h+140>>2]=d;J[h+128>>2]=a;J[h+132>>2]=c;Nc(g,4,2361963,h+128|0)}fc=h+208|0;return i|0}function zu(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;o=fc-16|0;fc=o;H[a+67|0]=0;a:{if(b){n=fc-48|0;fc=n;J[n+12>>2]=0; +l=J[d>>2];j=AL(b,c,0,0,l,e-l>>1,n+12|0,H[a+35|0],j);b:{if((j|0)>=2){m=J[n+12>>2];if((m&520093696)==16777216){e=0;if(K[J[a+24>>2]+200|0]==219)break b}J[d>>2]=((j<<1)+l|0)-4;l=m>>>24&31;c:{if(l>>>0<=3){b=n+16|1;d=b;e=b;d:switch(l-1|0){case 2:H[n+17|0]=m>>>16;d=n+16|2;case 1:H[d|0]=m>>>8;e=d+1|0;break;case 0:break d;default:break c}H[e|0]=m;break c}b=(J[b+32>>2]+b|0)+(m&16777215)|0}d=J[a+52>>2];e:{if(!d)break e;e=1;f:{if((l|0)==1){m=15;if((d|0)>1)break f}e=2;if(l>>>0<2)break e;m=14;if((d|0)!=1)break e}J[a+ +52>>2]=e;H[n+16|0]=m;d=n+16|1;if((d|0)!=(b|0))xc(d,b,l);l=l+1|0;b=n+16|0}wi(a,b,l,f,g,h,i,k);e=1;break b}if((j|0)<0){J[a+180>>2]=c;q=-2-j|0;g:{if(j>>>0>4294967293)break g;r=q&3;h:{if(j+5>>>0<3){b=0;break h}s=q&-4;b=0;e=a+184|0;j=0;while(1){p=b<<1;I[p+e>>1]=L[l>>1];I[(p|2)+e>>1]=L[l+2>>1];I[(p|4)+e>>1]=L[l+4>>1];I[(p|6)+e>>1]=L[l+6>>1];b=b+4|0;l=l+8|0;j=j+4|0;if((s|0)!=(j|0))continue;break}}if(!r)break g;while(1){I[((b<<1)+a|0)+184>>1]=L[l>>1];b=b+1|0;l=l+2|0;m=m+1|0;if((r|0)!=(m|0))continue;break}}J[d>> +2]=l;H[a+253|0]=q;e=1;break b}e=0;if((j|0)!=1)break b;H[a+67|0]=1}fc=n+48|0;if(e)break a}i:{j:{if(!(K[a+29|0]&128))break j;if(c>>>0>=65536){if(c>>>0>1114111)break j;b=-65536;j=737648;break i}k:{if(c>>>0>=40870){if(c>>>0>55295)break k;b=-40870;j=737664;break i}if(c>>>0<1106)break j;if(c>>>0<7743){b=-1106;j=737680;break i}if((c|0)==7743)break j;if(c>>>0>=8208)break k;b=-7744;j=737696;break i}if(c-63788>>>0>4294963E3){b=-59493;j=737712;break i}if(c>>>0<9795)break j;if(c>>>0<11905){b=-9795;j=737728;break i}if(c- +65072>>>0>4294966265){b=-64042;j=737744;break i}if(c-16470>>>0>4294966410){b=-15585;j=737760;break i}if(c>>>0<13851)break j;if(c>>>0<14616){b=-13851;j=737776;break i}if(c-19575>>>0>4294966592){b=-18872;j=737792;break i}if(c>>>0<16736)break j;if(c>>>0<17207){b=-16736;j=737808;break i}if(c-18759>>>0>4294966854){b=-18318;j=737824;break i}if(c>>>0<17623)break j;if(c>>>0<17996){b=-17623;j=737840;break i}if(c-65536>>>0<=4294967269)break j;b=-65510;j=737856;break i}J[k>>2]=10;t=c;break a}b=(J[j+8>>2]+(b+ +c|0)|0)-1687218|0;H[o+12|0]=((b>>>0)/12600|0)-127;H[o+13|0]=((b>>>0)/1260>>>0)%10|48;c=(b>>>0)/10|0;H[o+14|0]=((c>>>0)%126|0)-127;H[o+15|0]=b-P(c,10)|48;wi(a,o+12|0,4,f,g,h,i,k)}fc=o+16|0;return t}function fAb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=kc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;d=J[a+580>>2];b=(c+(d<<2)|0)+(J[a+672>>2]<<2)|0;c=d;d=J[a+656>>2];e=c+d|0;d=(d|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2]; +if(!K[a+648|0]){d=g+(d<<2)|0;if(f){if((c|0)<=(e|0))break a;while(1){b:{c:{c=K[d+3|0];if((c|0)!=255){if(c)break c;J[b>>2]=0;break b}H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];c=K[d+2|0];H[b+3|0]=255;H[b+2|0]=c;break b}H[b|0]=((P(c,K[d|0])+127&65535)>>>0)/255;H[b+1|0]=((P(c,K[d+1|0])+127&65535)>>>0)/255;f=K[d+2|0];H[b+3|0]=c;H[b+2|0]=((P(c,f)+127&65535)>>>0)/255}d=d+4|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[d+3|0];d:{if(!c)break d;if((c| +0)==255){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];c=K[d+2|0];H[b+3|0]=255;H[b+2|0]=c;break d}f=c^255;H[b|0]=((P(c,K[d|0])+P(f,K[b|0])|0)+127>>>0)/255;H[b+1|0]=((P(c,K[d+1|0])+P(f,K[b+1|0])|0)+127>>>0)/255;g=K[d+2|0];H[b+3|0]=((P(f,K[b+3|0]^255)+127&65535)>>>0)/255^-1;H[b+2|0]=((P(c,g)+P(f,K[b+2|0])|0)+127>>>0)/255}d=d+4|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}d=g+(d<<3)|0;if(f){if((c|0)<=(e|0))break a;while(1){e:{f:{c=K[d+6|0];if((c|0)!=255){if(c)break f;J[b>>2]=0; +break e}H[b|0]=K[d|0];H[b+1|0]=K[d+2|0];c=K[d+4|0];H[b+3|0]=255;H[b+2|0]=c;break e}H[b|0]=((P(c,K[d|0])+127&65535)>>>0)/255;H[b+1|0]=((P(c,K[d+2|0])+127&65535)>>>0)/255;f=K[d+4|0];H[b+3|0]=c;H[b+2|0]=((P(c,f)+127&65535)>>>0)/255}d=d+8|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[d+6|0];g:{if(!c)break g;if((c|0)==255){H[b|0]=K[d|0];H[b+1|0]=K[d+2|0];c=K[d+4|0];H[b+3|0]=255;H[b+2|0]=c;break g}f=c^255;H[b|0]=((P(c,K[d|0])+P(f,K[b| +0])|0)+127>>>0)/255;H[b+1|0]=((P(c,K[d+2|0])+P(f,K[b+1|0])|0)+127>>>0)/255;g=K[d+4|0];H[b+3|0]=((P(f,K[b+3|0]^255)+127&65535)>>>0)/255^-1;H[b+2|0]=((P(c,g)+P(f,K[b+2|0])|0)+127>>>0)/255}d=d+8|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}}b=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];d=J[a+556>>2];c=J[a+672>>2];h:{if((c|0)>=J[a+552>>2]){if(d)break h;d=0}J[a+552>>2]=c}c=d;d=J[a+676>>2];if((c|0)<(d|0))J[a+556>>2]=d;d=J[a+564>>2];b=b-e|0;i:{if((b|0)>=J[a+560>>2]){if(d)break i; +d=0}J[a+560>>2]=b}if((b|0)>=(d|0))J[a+564>>2]=b+1;return 0}function dl(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,w=0,x=0,y=0,z=0,A=0;a:{b:{c:switch(d-4|0){case 4:d=0;if((b|0)>=32){d=b-32|0;q=d&-32;o=d>>>5|0;r=o+1|0;while(1){d=g<<2;f=J[(d|28)+c>>2];h=J[(d|24)+c>>2];k=J[(d|20)+c>>2];i=J[(d|16)+c>>2];l=J[(d|12)+c>>2];m=J[(d|8)+c>>2];n=J[(d|4)+c>>2];d=J[c+d>>2];J[(j<<2)+a>>2]=(f>>>24|0)-e>>>28&8|((h>>>24|0)-e>>>28&8|((k>>>24|0)-e>>>28&8|((i>>>24|0)-e>>>28&8|((l>>> +24|0)-e>>>28&8|((m>>>24|0)-e>>>28&8|((n>>>24|0)-e>>>28&8|((d>>>24|0)-e>>>28&8|(d>>>16&255)-e>>>29&4|(d>>>8&255)-e>>>30&2|(d&255)<(e|0))<<4|(n>>>16&255)-e>>>29&4|(n>>>8&255)-e>>>30&2|(n&255)<(e|0))<<4|(m>>>16&255)-e>>>29&4|(m>>>8&255)-e>>>30&2|(m&255)<(e|0))<<4|(l>>>16&255)-e>>>29&4|(l>>>8&255)-e>>>30&2|(l&255)<(e|0))<<4|(i>>>16&255)-e>>>29&4|(i>>>8&255)-e>>>30&2|(i&255)<(e|0))<<4|(k>>>16&255)-e>>>29&4|(k>>>8&255)-e>>>30&2|(k&255)<(e|0))<<4|(h>>>16&255)-e>>>29&4|(h>>>8&255)-e>>>30&2|(h&255)<(e|0))<< +4|(f>>>16&255)-e>>>29&4|(f>>>8&255)-e>>>30&2|(f&255)<(e|0);g=g+8|0;d=(j|0)!=(o|0);j=j+1|0;if(d)continue;break}d=q+32|0}if((b|0)<=(d|0))break a;while(1){if(!(d&3)){f=J[(g<<2)+c>>2];g=g+1|0}p=((f>>>24|0)<(e|0))<<(d^-1)|p;f=f<<8;d=d+1|0;if((d|0)!=(b|0))continue;break}break b;case 0:break c;default:break a}if((b|0)>=32){d=b-32|0;k=d&-32;i=d>>>5|0;r=i+1|0;while(1){h=g<<2;d=J[(h|12)+c>>2];f=J[(h|8)+c>>2];l=(f>>>4&15)-e>>>30&2|(f&15)<(e|0);m=(f>>>8&15)-e>>>29&4;n=(f>>>12&15)-e>>>28&8;o=(f>>>16&15)-e>>>27& +16;q=(f>>>20&15)-e>>>26&32;s=(f>>>24&15)-e>>>25&64;t=(f>>>28|0)-e>>>24&128;f=J[(h|4)+c>>2];u=(f>>>4&15)-e>>>30&2|(f&15)<(e|0);v=(f>>>8&15)-e>>>29&4;w=(f>>>12&15)-e>>>28&8;x=(f>>>16&15)-e>>>27&16;y=(f>>>20&15)-e>>>26&32;z=(f>>>24&15)-e>>>25&64;A=(f>>>28|0)-e>>>24&128;f=J[c+h>>2];J[(j<<2)+a>>2]=(d>>>4&15)-e>>>30&2|(d&15)<(e|0)|((d>>>8&15)-e>>>29&4|((d>>>12&15)-e>>>28&8|((d>>>16&15)-e>>>27&16|((d>>>20&15)-e>>>26&32|((d>>>24&15)-e>>>25&64|((d>>>28|0)-e>>>24&128|(l|(m|(n|(o|(q|(s|(t|(u|(v|(w|(x|(y|(z| +(A|((f>>>4&15)-e>>>30&2|(f&15)<(e|0)|((f>>>8&15)-e>>>29&4|((f>>>12&15)-e>>>28&8|((f>>>16&15)-e>>>27&16|((f>>>20&15)-e>>>26&32|((f>>>28|0)-e>>>24&128|(f>>>24&15)-e>>>25&64))))))<<8)))))))<<8)))))))<<8))))));g=g+4|0;f=(j|0)!=(i|0);j=j+1|0;if(f)continue;break}f=k+32|0}if((b|0)<=(f|0))break a;while(1){if(!(f&7)){d=J[(g<<2)+c>>2];g=g+1|0}p=((d>>>28|0)<(e|0))<<(f^-1)|p;d=d<<4;f=f+1|0;if((f|0)!=(b|0))continue;break}}J[(r<<2)+a>>2]=p}}function _zb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+572>>2];d=J[a+ +664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=kc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;d=J[a+580>>2];b=(c+(d<<2)|0)+(J[a+672>>2]<<2)|0;c=d;d=J[a+656>>2];e=c+d|0;d=(d|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];if(!K[a+648|0]){d=g+(d<<2)|0;if(f){if((c|0)<=(e|0))break a;while(1){b:{c:{c=K[d+3|0];if((c|0)!=255){if(c)break c;J[b>>2]=0;break b}H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];c=K[d|0];H[b+3|0]=255;H[b+2|0]=c;break b}H[b|0]=((P(c,K[d+2|0])+127&65535)>>>0)/255;H[b+1|0]=((P(c,K[d+ +1|0])+127&65535)>>>0)/255;f=K[d|0];H[b+3|0]=c;H[b+2|0]=((P(c,f)+127&65535)>>>0)/255}d=d+4|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[d+3|0];d:{if(!c)break d;if((c|0)==255){H[b|0]=K[d+2|0];H[b+1|0]=K[d+1|0];c=K[d|0];H[b+3|0]=255;H[b+2|0]=c;break d}f=c^255;H[b|0]=((P(c,K[d+2|0])+P(f,K[b|0])|0)+127>>>0)/255;H[b+1|0]=((P(c,K[d+1|0])+P(f,K[b+1|0])|0)+127>>>0)/255;g=K[d|0];H[b+3|0]=((P(f,K[b+3|0]^255)+127&65535)>>>0)/255^-1;H[b+ +2|0]=((P(c,g)+P(f,K[b+2|0])|0)+127>>>0)/255}d=d+4|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}break a}d=g+(d<<3)|0;if(f){if((c|0)<=(e|0))break a;while(1){e:{f:{c=K[d+6|0];if((c|0)!=255){if(c)break f;J[b>>2]=0;break e}H[b|0]=K[d+4|0];H[b+1|0]=K[d+2|0];c=K[d|0];H[b+3|0]=255;H[b+2|0]=c;break e}H[b|0]=((P(c,K[d+4|0])+127&65535)>>>0)/255;H[b+1|0]=((P(c,K[d+2|0])+127&65535)>>>0)/255;f=K[d|0];H[b+3|0]=c;H[b+2|0]=((P(c,f)+127&65535)>>>0)/255}d=d+8|0;c=J[a+584>>2];b=(c<<2)+b|0; +e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[d+6|0];g:{if(!c)break g;if((c|0)==255){H[b|0]=K[d+4|0];H[b+1|0]=K[d+2|0];c=K[d|0];H[b+3|0]=255;H[b+2|0]=c;break g}f=c^255;H[b|0]=((P(c,K[d+4|0])+P(f,K[b|0])|0)+127>>>0)/255;H[b+1|0]=((P(c,K[d+2|0])+P(f,K[b+1|0])|0)+127>>>0)/255;g=K[d|0];H[b+3|0]=((P(f,K[b+3|0]^255)+127&65535)>>>0)/255^-1;H[b+2|0]=((P(c,g)+P(f,K[b+2|0])|0)+127>>>0)/255}d=d+8|0;c=J[a+584>>2];b=(c<<2)+b|0;e=c+e|0;if((e|0)>2])continue;break}}b= +J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];d=J[a+556>>2];c=J[a+672>>2];h:{if((c|0)>=J[a+552>>2]){if(d)break h;d=0}J[a+552>>2]=c}c=d;d=J[a+676>>2];if((c|0)<(d|0))J[a+556>>2]=d;d=J[a+564>>2];b=b-e|0;i:{if((b|0)>=J[a+560>>2]){if(d)break i;d=0}J[a+560>>2]=b}if((b|0)>=(d|0))J[a+564>>2]=b+1;return 0}function jW(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-32|0;fc=b;d=a+8|0;a:{if(J[a+8>>2]){ti(b+28|0,a,d);break a}J[b+28>>2]=0;vd(b+28|0,0)}b:{c:{d:{e:{if(J[d>>2]){J[699344]=0;ca(5523,b+24|0,a|0,d|0);c=J[699344];J[699344]= +0;if((c|0)!=1)break e;break d}J[699344]=0;J[b+24>>2]=0;aa(5145,b+24|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d}f:{g:{h:{if(J[d>>2]){J[699344]=0;ca(5521,b+20|0,a|0,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break h;break g}J[699344]=0;J[b+20>>2]=0;aa(5145,b+20|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g}i:{j:{k:{if(J[d>>2]){J[699344]=0;ca(5522,b+16|0,a|0,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break k;break j}J[699344]=0;J[b+16>>2]=0;aa(5145,b+16|0,0)|0;c=J[699344];J[699344]=0;if((c| +0)==1)break j}l:{m:{if(J[d>>2]){J[699344]=0;ca(5524,b+12|0,a|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1)break m;break l}J[699344]=0;J[b+12>>2]=0;aa(5145,b+12|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l}n:{o:{a=J[b+28>>2];if(!a)break o;d=J[a+8>>2];if((d|0)<=0)break o;c=J[a+12>>2];if((c|0)<=0)break o;a=J[b+24>>2];if(!a|(d|0)!=J[a+72>>2]|(J[b+20>>2]|(c|0)!=J[a+76>>2]))break o;if(J[b+16>>2])break o;a=J[b+12>>2];d=!a;break n}a=J[b+12>>2];d=0}J[b+12>>2]=0;p:{if(!a)break p;J[699344]=0;c=J[a+4>>2]- +1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(c)break p;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+16>>2];J[b+16>>2]=0;q:{if(!a)break q;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(c)break q;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+20>>2];J[b+20>>2]=0;r:{if(!a)break r;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(c)break r;J[699344]=0; +$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+24>>2];J[b+24>>2]=0;s:{if(!a)break s;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(c)break s;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+28>>2];J[b+28>>2]=0;t:{u:{if(!a)break u;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break t;if(c)break u;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break t}fc=b+32|0;return d|0}break b}a= +Z()|0;zc(b+16|0);break i}a=Z()|0}zc(b+20|0);break f}a=Z()|0}zc(b+24|0);break c}a=Z()|0}zc(b+28|0);ba(a|0);B()}ea(0)|0;Bc();B()}function GN(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;i=fc-16|0;fc=i;J[i+8>>2]=0;p=J[J[a>>2]+28>>2];J[b>>2]=0;a:{b:{if(J[a+28>>2])break b;J[i+12>>2]=0;c:{f=J[a+12>>2];if(f){j=K[a+16|0];k=J[a>>2];h=J[k+28>>2];f=f+1|0;r=a,s=_c(h,4,0,f,0,i+12|0),J[r+28>>2]=s;if(J[i+12>>2])break c;g=yd(k,J[a+8>>2]+J[a+4>>2]|0);J[i+12>>2]=g;if(g)break c;g=P(f,j); +f=af(k,g);J[i+12>>2]=f;if(f)break c;e=J[k+32>>2];l=g+e|0;f=J[a+28>>2];d:{e:switch(j-1|0){case 2:if((g|0)<=0)break d;while(1){J[f>>2]=K[e+2|0]|(K[e+1|0]<<8|K[e|0]<<16);f=f+4|0;e=e+3|0;if(l>>>0>e>>>0)continue;break}break d;case 1:if((g|0)<=0)break d;while(1){J[f>>2]=K[e+1|0]|K[e|0]<<8;f=f+4|0;e=e+2|0;if(l>>>0>e>>>0)continue;break}break d;case 0:if((g|0)<=0)break d;while(1){J[f>>2]=K[e|0];f=f+4|0;e=e+1|0;if(l>>>0>e>>>0)continue;break}break d;default:break e}if((g|0)<=0)break d;while(1){g=K[e|0]|K[e+ +1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);J[f>>2]=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);f=f+4|0;e=e+4|0;if(l>>>0>e>>>0)continue;break}}ve(k);if(J[i+12>>2])break c}J[i+8>>2]=0;break b}f=J[a+28>>2];if(f)kc[J[h+8>>2]](h,f);J[a+28>>2]=0;e=J[i+12>>2];J[i+8>>2]=e;if(e)break a}e=0;f=J[a+12>>2];if(!f)break a;g=J[a+24>>2];l=i+8|0;k=_c(p,4,0,f+1|0,0,l);e=J[i+8>>2];f:{if(e)break f;q=f+g|0;g:{h:{i:{j:{if(c){l=he(p,q,l);if(J[i+8>>2])break g;o=J[a+32>>2];J[k>>2]=l;m=J[a+12>>2];if(m){e=1;j=0;f=0;while(1){g=e<<2;n=J[g+ +J[a+28>>2]>>2]-1|0;k:{if(n>>>0>>0){J[g+k>>2]=(f+l|0)+j;break k}h=g+k|0;g=J[a+24>>2];g=g>>>0>n>>>0?n:g;n=(g+l|0)+j|0;J[h>>2]=n;if((f|0)!=(g|0)){m=J[h-4>>2];xc(m,f+o|0,n-m|0);H[J[h>>2]]=0;J[h>>2]=J[h>>2]+1;m=J[a+12>>2];j=j+1|0}f=g}e=e+1|0;if(m>>>0>=e>>>0)continue;break}break j}J[b>>2]=k;break i}g=J[a+32>>2];J[k>>2]=g;e=J[a+12>>2];if(!e){l=0;break j}f=1;j=e+1|0;h=(j>>>0<=2?2:j)-1|0;m=h&1;l=0;e=0;if(j>>>0>=3){n=h&-2;j=0;while(1){o=f<<2;h=J[o+J[a+28>>2]>>2]-1|0;if(h>>>0>=e>>>0){e=J[a+24>>2];e=e>>>0> +h>>>0?h:e}J[k+o>>2]=e+g;o=f+1<<2;h=J[o+J[a+28>>2]>>2]-1|0;if(h>>>0>=e>>>0){e=J[a+24>>2];e=e>>>0>h>>>0?h:e}J[k+o>>2]=e+g;f=f+2|0;j=j+2|0;if((n|0)!=(j|0))continue;break}}if(!m)break j;j=f<<2;f=J[j+J[a+28>>2]>>2]-1|0;if(f>>>0>=e>>>0){a=J[a+24>>2];e=a>>>0>f>>>0?f:a}J[k+j>>2]=e+g}J[b>>2]=k;if(!c)break h}J[c>>2]=l}if(!d)break g;J[d>>2]=q}e=J[i+8>>2];if(!e|!l)break f;if(l)kc[J[p+8>>2]](p,l);e=J[i+8>>2]}if(!e|!k)break a;if(k)kc[J[p+8>>2]](p,k);e=J[i+8>>2]}fc=i+16|0;return e}function xub(a,b,c,d,e){a=a|0; +b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;if(!(1<>>0<=22:0)){Jc(a,1028,0,0);return 1028}H[a+287|0]=1;f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+316>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+320>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+8|0];H[a+324|0]=f;i=K[d+9|0];H[a+325|0]=i;g=K[d+10|0];H[a+326|0]= +g;h=K[d+11|0];H[a+327|0]=h;j=K[d+12|0];H[a+328|0]=j;if(!(1<>>0<=16:0))break a;c:{d:switch(i|0){default:Jc(a,1037,0,0);return 1037;case 3:if(f>>>0<9)break c;break a;case 0:break c;case 2:case 4:case 6:break d}if(f>>>0>7)break c;break a}if(g){Jc(a,1038,0,0);return 1038}if(h){Jc(a,1039,0,0);return 1039}if(j>>>0>=2){Jc(a,1040,0,0);return 1040}J[a+48>>2]=J[a+48>>2]+1;e:{f:{g:{if(c>>>0<14){j=0;g=0;break g}f=K[d+17|0]|K[d+18|0]<<8;k=f<<8|f>>>8;f=K[d+15|0]|K[d+16|0]<<8;l=f<<8|f>>>8;f=K[d+13|0]| +K[d+14|0]<<8;m=f<<8|f>>>8;j=0;if(c>>>0>=20)break f;g=0}f=65535;h=0;i=0;break e}f=K[d+19|0]|K[d+20|0]<<8;f=f<<8|f>>>8;if(c>>>0<22){g=1;h=0;i=1;break e}h=K[d+21|0];j=1;g=1;i=1}m=m&65535;l=l&65535;k=k&65535;o=f&65535;h:{if(K[a+114|0]){f=kc[J[a+152>>2]](40)|0;if(!f){Jc(a,1,0,0);f=1;break h}J[f+4>>2]=1046;J[f>>2]=1047;n=J[a+700>>2];i:{if(n){J[n+8>>2]=f;break i}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=n;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+ +496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+38|0]=h;I[f+36>>1]=o;H[f+34|0]=g;I[f+32>>1]=k;I[f+30>>1]=l;I[f+28>>1]=m}f=haa(a,m,l,k,g,o,h)}j:{if(f)break j;k:{if(!K[a+112|0])break k;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break j;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+32>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+40|0]=K[d+8|0];H[a+41|0]=K[d+9|0];H[a+42|0]=K[d+10|0];H[a+43|0]=K[d+11|0]; +H[a+44|0]=K[d+12|0];if(c>>>0>=14){b=K[d+13|0]|K[d+14|0]<<8;I[a+46>>1]=b<<8|b>>>8;b=K[d+15|0]|K[d+16|0]<<8;I[a+48>>1]=b<<8|b>>>8;b=K[d+17|0]|K[d+18|0]<<8;I[a+50>>1]=b<<8|b>>>8}if(i){b=K[d+19|0]|K[d+20|0]<<8;I[a+52>>1]=b<<8|b>>>8}if(!j)break k;H[a+54|0]=K[d+21|0]}f=0}return f|0}Jc(a,1029,0,0);return 1029}Jc(a,1036,0,0);return 1036}function nDa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-48|0;fc=d;e=rf(c);a:{b:{c:{b=J[J[b+28>>2]+((e>>>0)%M[b+24>>2]<<2)>>2];if(b)while(1){if((e|0)==J[b+12>>2])if(!Qj(b+16| +0,c,-1))break c;b=J[b+8>>2];if(b)continue;break}a=rl(d+8|0,2389413);J[699344]=0;ca(5292,d+16|0,a|0,c|0);b=J[699344];J[699344]=0;d:{e:{f:{if((b|0)!=1){b=J[d+16>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;b=ja(5178,d+24|0,b|0,2386186,249,2401052,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;break b}b=Z()|0;wc(a);ba(b|0);B()}c=Z()|0;break d}c=Z()|0;Kc(b)}wc(d+16|0);wc(a);ba(c|0);B()}e=J[b+24>>2];J[e+4>>2]=J[e+4>>2]+1;b=J[b+24>>2]; +J[a>>2]=b;J[699344]=0;e=d+4|0;da(5321,e|0,b|0);b=J[699344];J[699344]=0;g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{if((b|0)!=1){J[699344]=0;da(5278,d|0,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break p;J[699344]=0;b=J[d>>2];J[d+16>>2]=0;J[d+20>>2]=J[685894];b=ha(5279,b|0,d+16|0,0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break k;if((b|0)>=0)break l;J[699344]=0;ca(5218,d+8|0,2390108,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break o;b=J[d+8>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;e=ja(5178,d+24|0,b|0,2386186,260, +2401052,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break n;J[699344]=0;$(5179,e|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=ea(0)|0;Kc(e);break m}b=ea(0)|0;break h}b=ea(0)|0;break i}b=ea(0)|0;break j}b=ea(0)|0}wc(d+8|0);break j}wc(d+16|0);a=J[d>>2];J[d>>2]=0;q:{if(!a)break q;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break q;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[d+4>>2];J[d+4>>2]=0;r:{if(!a)break r;J[699344]=0;b=J[a+ +4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break g;if(b)break r;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break g}fc=d+48|0;return}b=ea(0)|0}wc(d+16|0);zc(d)}zc(d+4|0)}oa(b|0)|0;J[699344]=0;ca(5218,d+16|0,2390108,c|0);b=J[699344];J[699344]=0;s:{t:{u:{if((b|0)!=1){b=J[d+16>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;c=ja(5178,d+24|0,b|0,2386186,264,2401052,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break u;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b; +b=Z()|0;Kc(c);break t}b=Z()|0;break s}b=Z()|0}wc(d+16|0)}J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)!=1){zc(a);ba(b|0);B()}break a}break a}B()}ea(0)|0;Bc();B()}function WX(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;a:{b:{c:{d=J[a+200>>2];if(d&1){if(d&4){fd(a,66946);Vd(a,c);return}if(!(!b|!(K[b+9|0]&4))){fd(a,66970);Vd(a,c);return}Bd(a,J[a+740>>2]);d=sg(a,c+1|0);J[a+740>>2]=d;if(!d){fd(a,66991);return}Dg(a,d,c);Ae(a,d,c);f=Vd(a,0);d=J[a+740>>2];if(f){Bd(a,d);J[a+740>> +2]=0;return}H[c+d|0]=0;f=J[a+740>>2];d=f;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}k=c+f|0;if((k-e|0)<=12){fd(a,67018);break b}d=H[d|0];c=d&255;if((d|0)<0)f=0-(P(K[e+2|0],2147418112)-(K[e+4|0]|(K[e+3|0]<<8|c<<24))&2147483647)|0;else f=K[e+4|0]|(K[e+2|0]<<16|c<<24|K[e+3|0]<<8);d=H[e+5|0];c=d&255;if((d|0)<0)h=0-(P(K[e+6|0],2147418112)-(K[e+8|0]|(K[e+7|0]<<8|c<<24))&2147483647)|0;else h=K[e+8|0]|(K[e+6|0]<<16|c<<24|K[e+7|0]<<8);j=K[e+9|0];g=K[e+10|0];if(!(!(!j&(g|0)!=2|(g|0)!=3&(j-1&255)>>>0<=1)& +((g|0)==4|(j|0)!=3))){fd(a,67036);break b}if(j>>>0>=4)fd(a,67078);e=e+11|0;d=e;while(1){c=d;d=c+1|0;if(K[c|0])continue;break}l=sg(a,g<<2);if(!l)break c;if(g)while(1){c=c+1|0;J[l+(i<<2)>>2]=c;d:{if(c>>>0<=k>>>0)while(1){if(!K[c|0])break d;c=c+1|0;if(k>>>0>=c>>>0)continue;break}fd(a,67018);break a}i=i+1|0;if((g|0)!=(i|0))continue;break}m=J[a+740>>2];k=f;p=h;h=e;f=fc-80|0;fc=f;e:{if(!a|!b)break e;f:{if(m){c=f;o=1;d=K[m|0];g:{if(!d)break g;e=1;while(1){i=0;o=(d&255)>>>0<161&(d-127&255)>>>0<162;h:{if(o){i= +1;if(e)break h;d=32}H[c|0]=d;n=n+1|0;c=c+1|0}m=m+1|0;d=K[m|0];if(!d)break g;e=i;if(n>>>0<79)continue;break}}e=c;c=(n|0)!=0&o;H[e-c|0]=0;c=n-c|0;if(c)break f}fd(a,61403);break e}i:{j:{if(j>>>0<=3){d=0;if(!g)break i;break j}Ld(a,61654);B()}while(1){e=J[l+(d<<2)>>2];if(JI(e,Yc(e))){d=d+1|0;if((g|0)!=(d|0))continue;break i}break}Ld(a,61728);B()}d=c+1|0;c=sg(a,d);J[b+160>>2]=c;if(!c){fd(a,61899);break e}xc(c,f,d);H[b+181|0]=g;H[b+180|0]=j;J[b+168>>2]=p;J[b+164>>2]=k;d=Yc(h)+1|0;c=sg(a,d);J[b+172>>2]=c; +if(!c){fd(a,62028);break e}xc(c,h,d);h=(g<<2)+4|0;c=sg(a,h);J[b+176>>2]=c;if(!c){fd(a,62207);break e}d=0;Ac(c,0,h);if(g)while(1){c=d<<2;h=c+l|0;e=Yc(J[h>>2])+1|0;i=sg(a,e);J[c+J[b+176>>2]>>2]=i;c=J[c+J[b+176>>2]>>2];if(!c){fd(a,62306);break e}xc(c,J[h>>2],e);d=d+1|0;if((g|0)!=(d|0))continue;break}J[b+8>>2]=J[b+8>>2]|1024;J[b+184>>2]=J[b+184>>2]|128}fc=f+80|0;break a}Ld(a,66921);B()}Bd(a,J[a+740>>2]);J[a+740>>2]=0;fd(a,67120);return}Bd(a,J[a+740>>2]);J[a+740>>2]=0;return}Bd(a,J[a+740>>2]);J[a+740>> +2]=0;Bd(a,l)}function UM(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=fc-16|0;fc=g;J[a+4>>2]=c;J[a>>2]=b;J[a+400>>2]=J[c+124>>2];J[a+404>>2]=J[c+128>>2];J[a+412>>2]=J[c+136>>2];J[a+416>>2]=J[c+140>>2];J[a+408>>2]=J[c+132>>2];J[a+420>>2]=J[c+144>>2];J[a+216>>2]=J[c+120>>2];d=J[c+80>>2];J[a+248>>2]=J[c+76>>2];J[a+252>>2]=d;d=J[c+88>>2];J[a+256>>2]=J[c+84>>2];J[a+260>>2]=d;d=J[c+96>>2];J[a+264>>2]=J[c+92>>2];J[a+268>>2]=d;d=J[c+104>>2];J[a+272>>2]=J[c+100>>2];J[a+276>>2]=d;d=J[c+112>>2];J[a+280>>2]=J[c+108>> +2];J[a+284>>2]=d;d=J[c+44>>2];e=J[d+4>>2];J[a+220>>2]=J[d>>2];J[a+224>>2]=e;e=J[d+12>>2];J[a+228>>2]=J[d+8>>2];J[a+232>>2]=e;e=J[d+20>>2];J[a+236>>2]=J[d+16>>2];J[a+240>>2]=e;J[a+244>>2]=J[d+24>>2];J[a+424>>2]=J[c+148>>2];J[a+428>>2]=J[c+152>>2];d=J[c+160>>2];J[a+448>>2]=J[c+156>>2];J[a+452>>2]=d;d=J[c+168>>2];J[a+456>>2]=J[c+164>>2];J[a+460>>2]=d;d=J[c+176>>2];J[a+464>>2]=J[c+172>>2];J[a+468>>2]=d;xc(a+288|0,c+180|0,68);J[a+384>>2]=J[c+248>>2];J[a+388>>2]=J[c+252>>2];I[a+472>>1]=L[c+256>>1];J[a+ +476>>2]=J[c+260>>2];d=J[c+268>>2];J[a+180>>2]=J[c+264>>2];J[a+184>>2]=d;d=J[c+276>>2];J[a+188>>2]=J[c+272>>2];J[a+192>>2]=d;d=J[c+284>>2];J[a+196>>2]=J[c+280>>2];J[a+200>>2]=d;d=J[c+292>>2];J[a+204>>2]=J[c+288>>2];J[a+208>>2]=d;J[a+212>>2]=J[c+296>>2];e=Ac(a+36|0,0,108);f=J[a+8>>2];a:{b:{c:{c=L[b+284>>1]+32|0;d=J[a+20>>2];d:{if(c>>>0<=d>>>0){c=d;break d}h=a,i=_c(f,1,d<<2,c<<2,J[a+24>>2],g+8|0),J[h+24>>2]=i;f=J[g+8>>2];if(f)break c;f=J[a+8>>2]}J[a+20>>2]=c;c=L[b+286>>1];b=J[a+392>>2];if(c>>>0<=b>>> +0){c=b;break b}h=a,i=_c(f,1,b,c,J[a+396>>2],g+12|0),J[h+396>>2]=i;f=J[g+12>>2];if(!f)break b;J[a+392>>2]=b&65535;break a}J[a+20>>2]=d;break a}f=0;J[a+152>>2]=0;J[a+392>>2]=c&65535;J[a+104>>2]=J[a+176>>2];b=J[a+172>>2];J[a+96>>2]=J[a+168>>2];J[a+100>>2]=b;b=J[a+164>>2];J[a+88>>2]=J[a+160>>2];J[a+92>>2]=b;b=J[a+148>>2];J[a+72>>2]=J[a+144>>2];J[a+76>>2]=b;b=J[a+156>>2];J[a+80>>2]=J[a+152>>2];J[a+84>>2]=b;J[a+140>>2]=J[a+176>>2];b=J[a+172>>2];J[a+132>>2]=J[a+168>>2];J[a+136>>2]=b;b=J[a+164>>2];J[a+124>> +2]=J[a+160>>2];J[a+128>>2]=b;b=J[a+156>>2];J[a+116>>2]=J[a+152>>2];J[a+120>>2]=b;b=J[a+148>>2];J[a+108>>2]=J[a+144>>2];J[a+112>>2]=b;J[e+32>>2]=J[a+176>>2];b=J[a+172>>2];J[e+24>>2]=J[a+168>>2];J[e+28>>2]=b;b=J[a+164>>2];J[e+16>>2]=J[a+160>>2];J[e+20>>2]=b;b=J[a+156>>2];J[e+8>>2]=J[a+152>>2];J[e+12>>2]=b;b=J[a+148>>2];J[e>>2]=J[a+144>>2];J[e+4>>2]=b;H[a+492|0]=0}fc=g+16|0;return f}function yya(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a=L[a+26>>1];d=P(a, +g);c=e>>>0<8;j=h<<2;while(1){h=e;if(!c)while(1){g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;g=a+i|0;i=K[g+3|0]^255;J[b+4>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+8>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+12>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+ +1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+16>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+20>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+24>>2]=(P(i,K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;g=a+g|0;i=K[g+3|0]^255;J[b+28>>2]=(P(i, +K[g|0]^255)>>>0)/255|(P(i,K[g+1|0]^255)>>>0)/255<<8|(P(i,K[g+2|0]^255)>>>0)/255<<16|-16777216;b=b+32|0;i=a+g|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 5:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 4:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>> +0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 3:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 2:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;case 1:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16| +-16777216;i=a+i|0;b=b+4|0;case 0:g=K[i+3|0]^255;J[b>>2]=(P(g,K[i+1|0]^255)>>>0)/255<<8|(P(g,K[i|0]^255)>>>0)/255|(P(g,K[i+2|0]^255)>>>0)/255<<16|-16777216;i=a+i|0;b=b+4|0;break;default:break a}i=d+i|0;b=b+j|0;f=f-1|0;if(f)continue;break}}}function NQa(a,b,c,d,e,f){a=a|0;b=+b;c=+c;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;J[a+112>>2]=e;O[a+8>>3]=c;O[a>>3]=b;g=O[d>>3];O[a+64>>3]=g;i=O[d+8>>3];O[a+72>>3]=i;h=O[d+16>>3];O[a+80>>3]=h;j=O[d+24>>3];O[a+88>>3]=j;b=b/72;c=c/72;a:{b:{c:{if((e|0)!=270){if((e|0)!= +180){if((e|0)!=90)break c;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;O[a+32>>3]=b;O[a+96>>3]=b*(j-i);O[a+48>>3]=i*-b;O[a+24>>3]=f?c:-c;O[a+56>>3]=c*(f?-g:h);b=h-g;break a}J[a+24>>2]=0;J[a+28>>2]=0;O[a+16>>3]=-b;J[a+32>>2]=0;J[a+36>>2]=0;O[a+48>>3]=b*h;O[a+96>>3]=b*(h-g);O[a+40>>3]=f?c:-c;O[a+56>>3]=c*(f?-i:j);break b}J[a+16>>2]=0;J[a+20>>2]=0;O[a+48>>3]=b*j;J[a+40>>2]=0;J[a+44>>2]=0;O[a+32>>3]=-b;O[a+96>>3]=b*(j-i);O[a+24>>3]=f?-c:c;O[a+56>>3]=c*(f?h:-g);b=h-g;break a}O[a+16>>3]=b;J[a+24>> +2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;O[a+96>>3]=b*(h-g);O[a+48>>3]=g*-b;O[a+40>>3]=f?-c:c;O[a+56>>3]=c*(f?j:-i)}b=j-i}O[a+104>>3]=c*b;d=vc(12);J[d>>2]=2217624;J[d+4>>2]=15;J[d+8>>2]=0;J[a+116>>2]=d;d=vc(12);J[d>>2]=2217624;J[d+4>>2]=15;J[d+8>>2]=0;J[a+408>>2]=0;J[a+412>>2]=0;J[a+400>>2]=0;J[a+404>>2]=1072693248;J[a+392>>2]=0;J[a+396>>2]=1072693248;J[a+388>>2]=0;J[a+380>>2]=0;J[a+384>>2]=0;J[a+252>>2]=0;J[a+124>>2]=0;J[a+120>>2]=d;J[a+424>>2]=0;J[a+428>>2]=0;J[a+416>>2]=0;J[a+420>>2]=1;J[a+ +432>>2]=0;J[a+436>>2]=0;J[a+448>>2]=0;J[a+452>>2]=0;J[a+440>>2]=0;J[a+444>>2]=1072693248;J[a+456>>2]=0;J[a+460>>2]=0;J[a+480>>2]=0;J[a+484>>2]=1076101120;J[a+472>>2]=0;J[a+476>>2]=0;J[a+464>>2]=0;J[a+468>>2]=1072693248;J[a+496>>2]=0;J[a+500>>2]=0;J[a+488>>2]=0;J[a+492>>2]=0;J[a+504>>2]=0;J[a+508>>2]=1072693248;J[a+512>>2]=0;J[a+516>>2]=0;J[a+520>>2]=0;J[a+524>>2]=0;J[a+528>>2]=0;J[a+532>>2]=1072693248;J[a+536>>2]=0;J[a+540>>2]=0;J[a+544>>2]=0;J[a+548>>2]=0;J[a+552>>2]=0;J[a+556>>2]=0;J[a+560>>2]= +0;J[a+564>>2]=0;J[a+568>>2]=0;J[a+572>>2]=1072693248;J[a+576>>2]=0;J[a+580>>2]=0;J[a+584>>2]=0;J[a+588>>2]=0;J[a+592>>2]=0;d=vc(40);J[d>>2]=0;J[d+28>>2]=0;J[d+32>>2]=16;J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[699344]=0;e=aa(3551,16,4)|0;f=J[699344];J[699344]=0;if((f|0)!=1){J[d+24>>2]=e;J[a+600>>2]=0;J[a+604>>2]=0;J[a+596>>2]=d;J[a+608>>2]=0;J[a+612>>2]=0;J[a+616>>2]=0;J[a+620>>2]=0;J[a+624>>2]=0;J[a+628>>2]=0;J[a+632>>2]=0;J[a+636>>2]=0;J[a+640>>2]=0;J[a+644>>2]=0;J[a+664>>2]=0;J[a+668>> +2]=0;O[a+648>>3]=O[a+96>>3];O[a+656>>3]=O[a+104>>3];return a|0}a=Z()|0;uc(d);ba(a|0);B()}function dAb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+572>>2];c=J[a+664>>2];a:{if((b|0)<(c|0)|(b|0)>=J[a+668>>2])break a;d=kc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;c=J[a+580>>2];b=(d+(c<<2)|0)+(J[a+672>>2]<<2)|0;d=c;c=J[a+656>>2];e=d+c|0;c=(c|0)/J[a+584>>2]|0;d=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];if(!K[a+648|0]){c=(c<<2)+g|0;if(f){if((d|0)<=(e|0))break a;while(1){b:{c:{d=K[c+3|0];if((d|0)!=255){if(d)break c; +J[b>>2]=0;break b}H[b|0]=255;H[b+1|0]=K[c|0];H[b+2|0]=K[c+1|0];H[b+3|0]=K[c+2|0];break b}H[b|0]=d;H[b+1|0]=((P(d,K[c|0])+127&65535)>>>0)/255;H[b+2|0]=((P(d,K[c+1|0])+127&65535)>>>0)/255;H[b+3|0]=((P(d,K[c+2|0])+127&65535)>>>0)/255}c=c+4|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}if((d|0)<=(e|0))break a;while(1){d=K[c+3|0];d:{if(!d)break d;if((d|0)==255){H[b|0]=255;H[b+1|0]=K[c|0];H[b+2|0]=K[c+1|0];H[b+3|0]=K[c+2|0];break d}f=d^255;H[b|0]=((P(f,K[b|0]^255)+127& +65535)>>>0)/255^-1;H[b+1|0]=((P(d,K[c|0])+P(f,K[b+1|0])|0)+127>>>0)/255;H[b+2|0]=((P(d,K[c+1|0])+P(f,K[b+2|0])|0)+127>>>0)/255;H[b+3|0]=((P(d,K[c+2|0])+P(f,K[b+3|0])|0)+127>>>0)/255}c=c+4|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}c=(c<<3)+g|0;if(f){if((d|0)<=(e|0))break a;while(1){e:{f:{d=K[c+6|0];if((d|0)!=255){if(d)break f;J[b>>2]=0;break e}H[b|0]=255;H[b+1|0]=K[c|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+4|0];break e}H[b|0]=d;H[b+1|0]=((P(d,K[c|0])+127&65535)>>>0)/ +255;H[b+2|0]=((P(d,K[c+2|0])+127&65535)>>>0)/255;H[b+3|0]=((P(d,K[c+4|0])+127&65535)>>>0)/255}c=c+8|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}if((d|0)<=(e|0))break a;while(1){d=K[c+6|0];g:{if(!d)break g;if((d|0)==255){H[b|0]=255;H[b+1|0]=K[c|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+4|0];break g}f=d^255;H[b|0]=((P(f,K[b|0]^255)+127&65535)>>>0)/255^-1;H[b+1|0]=((P(d,K[c|0])+P(f,K[b+1|0])|0)+127>>>0)/255;H[b+2|0]=((P(d,K[c+2|0])+P(f,K[b+2|0])|0)+127>>>0)/255;H[b+3|0]= +((P(d,K[c+4|0])+P(f,K[b+3|0])|0)+127>>>0)/255}c=c+8|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}}b=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];c=J[a+556>>2];d=J[a+672>>2];h:{if((d|0)>=J[a+552>>2]){if(c)break h;c=0}J[a+552>>2]=d}d=c;c=J[a+676>>2];if((d|0)<(c|0))J[a+556>>2]=c;c=J[a+564>>2];b=b-e|0;i:{if((b|0)>=J[a+560>>2]){if(c)break i;c=0}J[a+560>>2]=b}if((b|0)>=(c|0))J[a+564>>2]=b+1;return 0}function Yzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+572>>2];c=J[a+664>>2];a:{if((b| +0)<(c|0)|(b|0)>=J[a+668>>2])break a;d=kc[J[a+220>>2]](a,J[a+680>>2]+(b-c|0)|0)|0;c=J[a+580>>2];b=(d+(c<<2)|0)+(J[a+672>>2]<<2)|0;d=c;c=J[a+656>>2];e=d+c|0;c=(c|0)/J[a+584>>2]|0;d=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];if(!K[a+648|0]){c=(c<<2)+g|0;if(f){if((d|0)<=(e|0))break a;while(1){b:{c:{d=K[c+3|0];if((d|0)!=255){if(d)break c;J[b>>2]=0;break b}H[b|0]=255;H[b+1|0]=K[c+2|0];H[b+2|0]=K[c+1|0];H[b+3|0]=K[c|0];break b}H[b|0]=d;H[b+1|0]=((P(d,K[c+2|0])+127&65535)>>>0)/255;H[b+2|0]=((P(d,K[c+1|0])+127& +65535)>>>0)/255;H[b+3|0]=((P(d,K[c|0])+127&65535)>>>0)/255}c=c+4|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}if((d|0)<=(e|0))break a;while(1){d=K[c+3|0];d:{if(!d)break d;if((d|0)==255){H[b|0]=255;H[b+1|0]=K[c+2|0];H[b+2|0]=K[c+1|0];H[b+3|0]=K[c|0];break d}f=d^255;H[b|0]=((P(f,K[b|0]^255)+127&65535)>>>0)/255^-1;H[b+1|0]=((P(d,K[c+2|0])+P(f,K[b+1|0])|0)+127>>>0)/255;H[b+2|0]=((P(d,K[c+1|0])+P(f,K[b+2|0])|0)+127>>>0)/255;H[b+3|0]=((P(d,K[c|0])+P(f,K[b+3|0])|0)+127>>> +0)/255}c=c+4|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}c=(c<<3)+g|0;if(f){if((d|0)<=(e|0))break a;while(1){e:{f:{d=K[c+6|0];if((d|0)!=255){if(d)break f;J[b>>2]=0;break e}H[b|0]=255;H[b+1|0]=K[c+4|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c|0];break e}H[b|0]=d;H[b+1|0]=((P(d,K[c+4|0])+127&65535)>>>0)/255;H[b+2|0]=((P(d,K[c+2|0])+127&65535)>>>0)/255;H[b+3|0]=((P(d,K[c|0])+127&65535)>>>0)/255}c=c+8|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}break a}if((d| +0)<=(e|0))break a;while(1){d=K[c+6|0];g:{if(!d)break g;if((d|0)==255){H[b|0]=255;H[b+1|0]=K[c+4|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c|0];break g}f=d^255;H[b|0]=((P(f,K[b|0]^255)+127&65535)>>>0)/255^-1;H[b+1|0]=((P(d,K[c+4|0])+P(f,K[b+1|0])|0)+127>>>0)/255;H[b+2|0]=((P(d,K[c+2|0])+P(f,K[b+2|0])|0)+127>>>0)/255;H[b+3|0]=((P(d,K[c|0])+P(f,K[b+3|0])|0)+127>>>0)/255}c=c+8|0;d=J[a+584>>2];b=(d<<2)+b|0;e=d+e|0;if((e|0)>2])continue;break}}b=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];c=J[a+556>>2];d=J[a+ +672>>2];h:{if((d|0)>=J[a+552>>2]){if(c)break h;c=0}J[a+552>>2]=d}d=c;c=J[a+676>>2];if((d|0)<(c|0))J[a+556>>2]=c;c=J[a+564>>2];b=b-e|0;i:{if((b|0)>=J[a+560>>2]){if(c)break i;c=0}J[a+560>>2]=b}if((b|0)>=(c|0))J[a+564>>2]=b+1;return 0}function Fqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;if(J[a+20>>2])a=0;else{h=J[a+16>>2];g=g>>>0<=2?J[(g<<2)+231704>>2]:0;k=J[J[h+16>>2]+40>>2];a=0;a:{if(!k)break a;a=fc-112|0;fc=a;h=J[k>>2];b:{if(!h)break b;h=J[h+28>> +2];if(!h)break b;J[a+96>>2]=13;c:{h=bj(h,e+1|0);if(h)if(J[jf(h+16|0,J[h+4>>2],a+96|0,0)>>2]==6)break c;yc(a+96|0);break b}J[a+84>>2]=1E3;J[a+76>>2]=231660;h=Dc(1E3);J[a+80>>2]=h;H[h|0]=0;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=0;J[a+92>>2]=4;J[a+88>>2]=h+4;d:{e:{f:{n=J[J[a+104>>2]+12>>2];if((n|0)<=0)break f;g:{h:{i:{while(1){j:{J[a+56>>2]=13;J[699344]=0;h=ga(3463,J[a+104>>2],j|0,a+56|0)|0;i=J[699344];J[699344]=0;k:{l:{if((i|0)!=1){if((J[a+64>>2]==(f|0)|(f|0)<0)&J[h>>2]==9)break l;J[699344]=0;$(3370,a+56|0); +h=J[699344];J[699344]=0;if((h|0)!=1)break k}j=Z()|0;break e}J[a+40>>2]=13;J[a+24>>2]=13;J[a+16>>2]=0;J[699344]=0;J[a+8>>2]=0;J[a+12>>2]=0;ha(3449,J[a+104>>2],j|0,a+40|0,0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break h;J[699344]=0;h=ha(3368,J[a+48>>2],851676,a+24|0,0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break h;if(J[h>>2]==4){J[699344]=0;aa(2974,a+8|0,J[a+32>>2])|0;h=J[699344];J[699344]=0;if((h|0)==1)break h}J[699344]=0;$(3370,a+24|0);h=J[699344];J[699344]=0;if((h|0)==1)break h;J[699344]=0;$(3370, +a+40|0);h=J[699344];J[699344]=0;if((h|0)==1)break h;i=K[a+19|0];h=i<<24>>24<0;m:{n:{if(((h?J[a+12>>2]:i)|0)!=6)break n;if(dd(h?J[a+8>>2]:a+8|0,2183237,6))break n;J[699344]=0;$(3370,a+56|0);h=J[699344];J[699344]=0;if((h|0)==1)break h;break m}J[699344]=0;h=_(4,136)|0;i=J[699344];J[699344]=0;if((i|0)==1)break i;i=J[k+20>>2];l=J[k+16>>2];m=J[k>>2];J[699344]=0;o=l;l=a+56|0;i=Ta(3741,h|0,m|0,o|0,i|0,b|0,c|0,d|0,e|0,g|0,l|0)|0;m=J[699344];J[699344]=0;if((m|0)==1)break j;J[699344]=0;da(3727,i|0,a+76|0);h= +J[699344];J[699344]=0;if((h|0)==1)break i;uc(kK(i));J[699344]=0;$(3370,l|0);h=J[699344];J[699344]=0;if((h|0)==1)break i}if(H[a+19|0]>=0)break k;uc(J[a+8>>2])}j=j+1|0;if((n|0)!=(j|0))continue;break f}break}j=Z()|0;uc(h);break g}j=Z()|0;break g}j=Z()|0}if(H[a+19|0]>=0)break e;uc(J[a+8>>2]);break e}J[699344]=0;$(3370,a+96|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;j=Z()|0}J[a+76>>2]=231660;a=J[a+80>>2];if(a)uc(a);ba(j|0);B()}b=J[a+80>>2];c=J[a+92>>2];H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3| +0]=c>>>24;j=J[a+80>>2]}fc=a+112|0;a=j}}return a|0}function Bha(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=fc-1056|0;fc=j;J[j+16>>2]=f;J[j+20>>2]=g;J[j+24>>2]=h;J[j+28>>2]=i;a=j+944|0;J[j+940>>2]=a;k=Wi(a,100,13193,j+16|0);J[j+48>>2]=1617;a=j+48|0;p=Bg(j+520|0,0,a);J[j+48>>2]=1617;l=Bg(j+512|0,0,a);n=j+528|0;a:{b:{c:{d:{if(k>>>0>=100){J[699344]=0;a=pa(6851)|0;k=J[699344];J[699344]=0;if((k|0)==1)break d;J[j>>2]=f;J[j+4>>2]=g;J[699344]= +0;J[j+8>>2]=h;J[j+12>>2]=i;k=ha(6872,j+940|0,a|0,13193,j|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;e:{if((k|0)!=-1){zh(p,J[j+940>>2]);zh(l,Dc(k<<2));if(J[l>>2])break e}J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;break a}n=J[l>>2]}J[699344]=0;f=j+508|0;a=J[d+28>>2];J[f>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){J[699344]=0;r=_(6750,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;a=J[j+940>>2];ha(6866,r|0,a|0,a+k|0,n| +0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;q=(k|0)>0?K[J[j+940>>2]]==45:q;h=Ze(j+484|0);f=Ze(j+472|0);g=Ze(j+460|0);J[699344]=0;Ka(6912,c|0,q|0,j+508|0,j+504|0,j+500|0,j+496|0,h|0,f|0,g|0,j+456|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;J[j+36>>2]=1617;i=Bg(j+40|0,0,j+36|0);c=j+48|0;a=J[j+456>>2];l:{if((a|0)<(k|0)){if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;if(K[g+11|0]>>>7|0)o=J[g+4>>2];else o=K[g+11|0]&127;a=(a+(m+(o+(k-a<<1)|0)|0)|0)+1|0;break l}o=J[j+456>>2];if(K[g+11|0]>>> +7|0)a=J[g+4>>2];else a=K[g+11|0]&127;if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;a=(o+(a+m|0)|0)+2|0}if(a>>>0<101)break i;zh(i,Dc(a<<2));c=J[i>>2];if(c)break i;J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break h}k=Z()|0;break b}k=Z()|0;break f}k=Z()|0;break g}a=J[d+4>>2];J[699344]=0;Qa(6913,c|0,j+36|0,j+32|0,a|0,n|0,(k<<2)+n|0,r|0,q|0,j+504|0,J[j+500>>2],J[j+496>>2],h|0,f|0,g|0,J[j+456>>2]);a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;c=ja(6885,b|0,c|0,J[j+36>>2], +J[j+32>>2],d|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c}}k=Z()|0;Ie(i)}df(g);df(f);jd(h)}a=J[j+508>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);break b}k=Z()|0;break b}Ie(i);df(g);df(f);jd(h);a=J[j+508>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);Ie(l);Ie(p);fc=j+1056|0;return c|0}Ie(l);Ie(p);ba(k|0);B()}B()}function chb(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;k=fc-16|0;fc=k;h=J[a+492>>2];i=J[b+8>>2];kc[J[b+28>> +2]](b);d=J[b>>2];a:{if(i>>>0<=d>>>0){J[b+12>>2]=3;break a}b:{l=K[d|0];if(!((l|0)!=91&l-48>>>0>9)){e=J[b+16>>2];if((l|0)==91){J[b>>2]=d+1;g=256;break b}g=kc[J[b+36>>2]](b)|0;if((g|0)<257)break b;J[b+12>>2]=3;break a}c:{if(d+17>>>0>=i>>>0)break c;if(ud(d,243376,16))break c;J[a+368>>2]=2;break a}d:{if(d+15>>>0>=i>>>0)break d;if(ud(d,243440,14))break d;J[a+368>>2]=4;break a}e:{if(d+18>>>0>=i>>>0)break e;if(ud(d,243548,17))break e;J[a+368>>2]=3;break a}J[b+12>>2]=162;break a}kc[J[b+28>>2]](b);if(M[b>> +2]>=i>>>0)break a;j=b+92|0;c=J[a+384>>2];f:{if(!c)break f;if(c)kc[J[e+8>>2]](e,c);J[a+384>>2]=0;c=J[a+388>>2];if(c)kc[J[e+8>>2]](e,c);J[a+388>>2]=0;c=J[b+140>>2];if(!c)break f;kc[c|0](j)}J[a+372>>2]=g;J[b+88>>2]=g;c=k+12|0;n=a,o=_c(e,2,0,g,0,c),J[n+384>>2]=o;g:{f=J[k+12>>2];if(f)break g;n=a,o=_c(e,4,0,g,0,c),J[n+388>>2]=o;f=J[k+12>>2];if(f)break g;f=kc[J[J[h>>2]>>2]](j,g,e)|0;J[k+12>>2]=f;if(f)break g;h:{if((g|0)<=0)break h;e=0;c=0;if(g>>>0>=4){h=g&-4;f=0;while(1){kc[J[b+136>>2]](j,c,240997,8)|0; +kc[J[b+136>>2]](j,c|1,240997,8)|0;kc[J[b+136>>2]](j,c|2,240997,8)|0;kc[J[b+136>>2]](j,c|3,240997,8)|0;c=c+4|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}h=g&3;if(!h)break h;while(1){kc[J[b+136>>2]](j,c,240997,8)|0;c=c+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}kc[J[b+28>>2]](b);c=J[b>>2];i:{if(i>>>0<=c>>>0)break i;m=(l|0)==91;h=0;while(1){j:{k:{l:{e=K[c|0];switch(e-93|0){case 0:break k;case 7:break l;default:break j}}d=c+3|0;if(K[c+1|0]!=101|i>>>0<=d>>>0|K[c+2|0]!=102)break j;switch(K[c+3|0]){case 0:case 9:case 10:case 12:case 13:case 32:break i; +default:break j}}d=c+1|0;break i}m:{n:{if(!(!m&e-48>>>0>9)){if(m){d=c;e=h;break n}e=kc[J[b+36>>2]](b)|0;kc[J[b+28>>2]](b);d=J[b>>2];if((d|0)!=(c|0))break n;J[b+12>>2]=2;break a}kc[J[b+32>>2]](b);d=c;if(J[b+12>>2])break a;break m}if(!(K[d|0]!=47|d+2>>>0>=i>>>0|(g|0)<=(h|0))){d=d+1|0;J[b>>2]=d;kc[J[b+32>>2]](b);c=J[b>>2];if(J[b+12>>2]|c>>>0>=i>>>0)break a;f=c-d|0;c=kc[J[b+136>>2]](j,e,d,f+1|0)|0;J[b+12>>2]=c;if(c)break a;H[f+J[J[b+116>>2]+(e<<2)>>2]|0]=0;h=h+1|0;break m}if((l|0)!=91)break m;J[b+12>> +2]=2;break a}kc[J[b+28>>2]](b);c=J[b>>2];if(i>>>0>c>>>0)continue;break}}J[a+368>>2]=1;J[b>>2]=d;break a}J[b+12>>2]=f}fc=k+16|0}function Onb(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=J[b>>2];if(!f)return 35;b=6;a:{if(M[f+16>>2]<=c>>>0)break a;h=J[f+104>>2];j=J[f+292>>2];b=j+(c<<4)|0;g=I[b+6>>1];k=g+I[b+8>>1]|0;J[a+76>>2]=k;i=I[b>>1];b=I[b+2>>1];H[a+94|0]=1;I[a+92>>1]=1;e=b-i|0;J[a+80>>2]=e;b=3;b:{c:switch((1<<(J[f+312>>2]&3))-1|0){case 0:b=e+7>>>3|0;break b;case 1:b=e+15>>> +3&536870910;break b;case 3:b=e+31>>>3&536870908;break b;case 7:break c;default:break a}b=e+63>>>3&536870904}J[a+104>>2]=g;J[a+100>>2]=i;J[a+72>>2]=1651078259;J[a+84>>2]=b;c=j+(c<<4)|0;b=I[c+4>>1];J[a+36>>2]=g<<6;J[a+32>>2]=i<<6;J[a+28>>2]=k<<6;J[a+24>>2]=e<<6;J[a+40>>2]=b<<6;Xu(a+24|0,J[f+208>>2]+J[f+204>>2]<<6);d:{if(d&4194304)break d;d=P(J[a+76>>2],J[a+84>>2]);b=bE(a,d);if(b)break a;b=yd(h,J[c+12>>2]);if(b)break a;b=zg(h,J[a+88>>2],d);if(b)break a;c=J[f+312>>2];if(!(!d|c&8)){i=d-1|0;c=J[a+88>>2]; h=d&3;e:{if(!h){b=d;break e}e=0;b=d;while(1){g=K[c|0];g=g>>>4|(g&15)<<4;g=g>>>2&51|(g&51)<<2;H[c|0]=g>>>1&85|(g&85)<<1;c=c+1|0;b=b-1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}if(i>>>0>=3)while(1){e=K[c|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;H[c|0]=e>>>1&85|(e&85)<<1;e=K[c+1|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;H[c+1|0]=e>>>1&85|(e&85)<<1;e=K[c+2|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;H[c+2|0]=e>>>1&85|(e&85)<<1;e=K[c+3|0];e=e>>>4|(e&15)<<4;e=e>>>2&51|(e&51)<<2;H[c+3|0]=e>>>1&85|(e&85)<< 1;c=c+4|0;b=b-4|0;if(b)continue;break}c=J[f+312>>2]}if(!((c>>>2^c>>>3)&1))break d;b=0;f:switch((1<<(c>>>4&3))-2|0){case 0:if(d>>>0<2)break a;a=J[a+88>>2];c=d-2|0;f=(c>>>1|0)+1&3;if(f)while(1){e=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=e;a=a+2|0;d=d-2|0;b=b+1|0;if((f|0)!=(b|0))continue;break}b=0;if(c>>>0<6)break a;while(1){c=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=c;c=K[a+2|0];H[a+2|0]=K[a+3|0];H[a+3|0]=c;c=K[a+4|0];H[a+4|0]=K[a+5|0];H[a+5|0]=c;c=K[a+6|0];H[a+6|0]=K[a+7|0];H[a+7|0]=c;a=a+8|0;d=d-8|0;if(d>>>0>1)continue; -break}break a;case 2:break f;default:break a}if(d>>>0<4)break d;a=J[a+88>>2];b=d-4|0;if(!(b&4)){c=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=c;c=K[a+1|0];H[a+1|0]=K[a+2|0];H[a+2|0]=c;d=b;a=a+4|0}if(b>>>0<4)break d;while(1){b=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=b;b=K[a+1|0];H[a+1|0]=K[a+2|0];H[a+2|0]=b;b=K[a+4|0];H[a+4|0]=K[a+7|0];H[a+7|0]=b;b=K[a+5|0];H[a+5|0]=K[a+6|0];H[a+6|0]=b;a=a+8|0;d=d-8|0;if(d>>>0>3)continue;break}}b=0}return b|0}function $fa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=bc-448|0;bc=j;J[j+16>>2]=f;J[j+20>>2]=g;J[j+24>>2]=h;J[j+28>>2]=i;a=j+336|0;J[j+332>>2]=a;k=Gi(a,100,13177,j+16|0);J[j+48>>2]=1617;a=j+48|0;p=ng(j+216|0,0,a);J[j+48>>2]=1617;l=ng(j+208|0,0,a);n=j+224|0;a:{b:{c:{d:{if(k>>>0>=100){J[695492]=0;a=pa(6638)|0;k=J[695492];J[695492]=0;if((k|0)==1)break d;J[j>>2]=f;J[j+4>>2]=g;J[695492]=0;J[j+8>>2]=h;J[j+12>>2]=i;k=ha(6659,j+332|0,a|0,13177,j|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;e:{if((k|0)!= --1){ih(p,J[j+332>>2]);ih(l,zc(k));if(J[l>>2])break e}J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;break a}n=J[l>>2]}J[695492]=0;f=j+204|0;a=J[d+28>>2];J[f>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){J[695492]=0;r=$(6613,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;a=J[j+332>>2];ha(6634,r|0,a|0,a+k|0,n|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;q=(k|0)>0?K[J[j+332>>2]]==45:q;h=Se(j+184|0);f=Se(j+172|0);g=Se(j+160|0); -J[695492]=0;Ea(6697,c|0,q|0,j+204|0,j+200|0,j+199|0,j+198|0,h|0,f|0,g|0,j+156|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;J[j+36>>2]=1617;i=ng(j+40|0,0,j+36|0);c=j+48|0;a=J[j+156>>2];l:{if((a|0)<(k|0)){if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;if(K[g+11|0]>>>7|0)o=J[g+4>>2];else o=K[g+11|0]&127;a=(a+(m+(o+(k-a<<1)|0)|0)|0)+1|0;break l}o=J[j+156>>2];if(K[g+11|0]>>>7|0)a=J[g+4>>2];else a=K[g+11|0]&127;if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;a=(o+(a+m|0)|0)+2|0}if(a>>>0<101)break i; -ih(i,zc(a));c=J[i>>2];if(c)break i;J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break h}k=Z()|0;break b}k=Z()|0;break f}k=Z()|0;break g}a=J[d+4>>2];J[695492]=0;Ma(6698,c|0,j+36|0,j+32|0,a|0,n|0,k+n|0,r|0,q|0,j+200|0,H[j+199|0],H[j+198|0],h|0,f|0,g|0,J[j+156>>2]);a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;c=ja(6661,b|0,c|0,J[j+36>>2],J[j+32>>2],d|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c}}k=Z()|0;Ae(i)}ad(g);ad(f);ad(h)}a=J[j+204>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b; -if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);break b}k=Z()|0;break b}Ae(i);ad(g);ad(f);ad(h);a=J[j+204>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);Ae(l);Ae(p);bc=j+448|0;return c|0}Ae(l);Ae(p);ba(k|0);B()}B()}function h7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+ -60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];g=(g|0)<(k|0)?g:k;k=J[a+80>>2];m=J[b+104>>2];k=(k|0)>(m|0)?k:m;if((g|0)<(k|0))break a;m=J[b+108>>2];o=(h|0)>(m|0)?h:m;h=J[a+92>>2];m=J[b+116>>2];if((o|0)>(((h|0)<(m|0)?h:m)|0))break a;h=J[e+20>>2];g=(g-k|0)+3|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)qc(h);J[e+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+12>>2])break b;k=J[e+8>>2];if(k){qc(k);h=J[e+20>>2]}J[e+12>>2]=g;p=e,q=rc(g),J[p+8>>2]=q}J[e>>2]=2147483632;J[e+28>>2]=h;J[e+16>>2]=J[e+ -8>>2];I[h+2>>1]=0;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)qc(h);J[c+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){qc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=rc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)qc(h);J[d+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d; -k=J[d+8>>2];if(k){qc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=rc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(de(b,d))continue;break a}break}if((h|0)!=(g|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];n3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue; -break}}}function f7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];g=(g|0)<(k|0)?g:k;k=J[a+80>>2];m=J[b+104>>2];k=(k|0)>(m|0)?k:m;if((g|0)<(k|0))break a;m=J[b+108>>2];o=(h|0)>(m|0)?h:m;h=J[a+92>>2];m=J[b+116>>2];if((o|0)>(((h|0)<(m|0)? -h:m)|0))break a;h=J[e+20>>2];g=(g-k|0)+3|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)qc(h);J[e+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+12>>2])break b;k=J[e+8>>2];if(k){qc(k);h=J[e+20>>2]}J[e+12>>2]=g;p=e,q=rc(g),J[p+8>>2]=q}J[e>>2]=2147483632;J[e+28>>2]=h;J[e+16>>2]=J[e+8>>2];I[h+2>>1]=0;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)qc(h);J[c+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){qc(k); -h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=rc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)qc(h);J[d+24>>2]=g;h=rc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){qc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=rc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i= -O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g; -while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(de(b,d))continue;break a}break}if((h|0)!=(g|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];l3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}}function Bob(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;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;d=J[a+428>>2];h=K[b+33|0];H[d+8|0]=h;t=d+8| -0;a:{if(!J[b+36>>2]){f=1;break a}e=J[b+40>>2];r=J[e+28>>2];H[d+9|0]=K[e|0];b:{if(K[b+33|0]!=16){c=J[e+8>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=c>>>16;H[d+13|0]=c>>>24;c=J[e+16>>2];H[d+15|0]=c>>>16;H[d+14|0]=c>>>24;g=26;f=25;i=23;j=22;k=21;l=20;m=19;n=18;o=17;p=24;q=16;break b}c=J[e+4>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=c>>>16;H[d+13|0]=c>>>24;c=J[e+8>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+14|0]= -c;H[d+15|0]=c>>>8;H[d+16|0]=c>>>16;H[d+17|0]=c>>>24;c=J[e+12>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+18|0]=c;H[d+19|0]=c>>>8;H[d+20|0]=c>>>16;H[d+21|0]=c>>>24;c=J[e+16>>2];H[d+23|0]=c>>>16;H[d+22|0]=c>>>24;g=34;f=33;i=31;j=30;k=29;l=28;m=27;n=26;o=25;p=32;q=24}H[q+d|0]=c>>>8;H[d+o|0]=c;c=J[e+20>>2];H[d+n|0]=c>>>24;H[d+m|0]=c>>>16;H[d+l|0]=c>>>8;H[d+k|0]=c;c=J[e+24>>2];H[d+j|0]=c>>>24;H[d+i|0]=c>>>16;H[d+p|0]=c>>>8;H[d+f|0]=c;d=d+g|0;c=J[e+28>>2];if(c)d=tc(d,J[e+32>>2],c)+J[e+28>>2]|0;q= -(h|0)==16?25:17;f=(r+q|0)+1|0;if(M[b+36>>2]<2)break a;g=1;while(1){H[d|0]=0;u=J[e- -64>>2];H[d+1|0]=K[e+36|0];c:{if(K[b+33|0]==16){c=J[e+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+2|0]=c;H[d+3|0]=c>>>8;H[d+4|0]=c>>>16;H[d+5|0]=c>>>24;c=J[e+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+6|0]=c;H[d+7|0]=c>>>8;H[d+8|0]=c>>>16;H[d+9|0]=c>>>24;c=J[e+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=c>>>16;H[d+13|0]=c>>>24;c=J[e+52>>2];H[d+15|0]=c>>> -16;H[d+14|0]=c>>>24;i=26;j=25;k=23;l=22;m=21;n=20;o=19;p=18;h=17;r=24;s=16;break c}c=J[e+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+2|0]=c;H[d+3|0]=c>>>8;H[d+4|0]=c>>>16;H[d+5|0]=c>>>24;c=J[e+52>>2];H[d+7|0]=c>>>16;H[d+6|0]=c>>>24;i=18;j=17;k=15;l=14;m=13;n=12;o=11;p=10;h=9;r=16;s=8}H[s+d|0]=c>>>8;H[d+h|0]=c;c=J[e+56>>2];H[d+p|0]=c>>>24;H[d+o|0]=c>>>16;H[d+n|0]=c>>>8;H[d+m|0]=c;c=J[e+60>>2];H[d+l|0]=c>>>24;H[d+k|0]=c>>>16;H[d+r|0]=c>>>8;H[d+j|0]=c;d=d+i|0;c=J[e+64>>2];if(c)d=tc(d,J[e+68>> -2],c)+J[e+64>>2]|0;f=((f+q|0)+u|0)+1|0;e=e+36|0;g=g+1|0;if(g>>>0>2])continue;break}}return ue(a,J[b>>2],f,t)|0}function US(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;g=bc+-64|0;bc=g;J[695492]=0;l=$(4,664)|0;k=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((k|0)!=1){J[695492]=0;k=ga(6321,l|0,b|0,2428256)|0;o=J[695492];J[695492]=0;if((o|0)==1){c=Z()|0;qc(l);break a}J[g+60>>2]=k;J[g+56>>2]=k+16;J[k+76>>2]=2;k=J[a+48>>2];J[695492]=0;i=pC(k);k=J[695492];J[695492]=0;if((k|0)==1)break c; -if(!(R(i)<5))break e;i=O[c>>3];O[g+48>>3]=i;h=O[d>>3];O[g+40>>3]=h;O[g+32>>3]=i+O[e>>3];O[g+24>>3]=h+O[f>>3];c=J[a+48>>2];J[695492]=0;je(c,g+48|0,g+40|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[a+48>>2];J[695492]=0;je(c,g+32|0,g+24|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[g+56>>2];i=O[g+48>>3];h=O[g+32>>3];if(!(i<=h))break g;O[c+32>>3]=i;i=h-i;break f}c=Z()|0;break a}c=Z()|0;break b}O[c+32>>3]=h;i=i-h}O[c+48>>3]=i;i=O[g+40>>3];h=O[g+24>>3];i:{if(i<=h){O[c+8>>3]=i;i=h-i;break i}O[c+ -8>>3]=h;i=i-h}J[c+592>>2]=0;J[c+596>>2]=0;O[c+24>>3]=i;break d}h=O[c>>3];O[g+48>>3]=h;j=O[d>>3];O[g+40>>3]=j;m=h+O[e>>3];O[g+32>>3]=m;n=j+O[f>>3];O[g+24>>3]=n;c=J[a+48>>2];J[695492]=0;d=aa(2281,g+20|0,c|0)|0;c=J[695492];J[695492]=0;j:{k:{l:{if((c|0)!=1){O[g+8>>3]=(h+m)*.5;O[g>>3]=(j+n)*.5;c=J[a+48>>2];J[695492]=0;je(c,g+8|0,g);c=J[695492];J[695492]=0;if((c|0)==1)break l;J[695492]=0;L2(d,-i,O[g+8>>3],O[g>>3],1);c=J[695492];J[695492]=0;if((c|0)==1)break l;J[695492]=0;je(d,g+48|0,g+40|0);c=J[695492]; -J[695492]=0;if((c|0)==1)break l;J[695492]=0;je(d,g+32|0,g+24|0);c=J[695492];J[695492]=0;if((c|0)==1)break l;c=J[g+56>>2];h=O[g+48>>3];j=O[g+32>>3];if(!(h<=j))break k;O[c+32>>3]=h;h=j-h;break j}c=Z()|0;break b}c=Z()|0;Ed(d);break b}O[c+32>>3]=j;h=h-j}O[c+48>>3]=h;h=O[g+40>>3];j=O[g+24>>3];m:{if(h<=j){O[c+8>>3]=h;h=j-h;break m}O[c+8>>3]=j;h=h-j}O[c+592>>3]=i;O[c+24>>3]=h;Ed(d);c=J[g+56>>2]}O[c+16>>3]=O[c+8>>3]+O[c+24>>3];O[c+40>>3]=O[c+32>>3]+O[c+48>>3];d=J[a+192>>2];n:{if((d|0)!=J[a+196>>2]){J[d>> -2]=c;c=J[g+60>>2];J[d+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[a+192>>2]=d+8;break n}J[695492]=0;da(6324,a+188|0,g+56|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}a=J[g+60>>2];o:{if(!a)break o;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break o;gc[J[J[a>>2]+8>>2]](a);Vc(a)}a=J[b+4>>2];p:{if(!a)break p;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break p;gc[J[J[a>>2]+8>>2]](a);Vc(a)}bc=g- -64|0;return}c=Z()|0}Ie(g+56|0)}Ie(b);ba(c|0);B()}function ppb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=J[a+ -8>>2];if((g&-2)!=2){Dc(a,1030,0,0);return 1030}a:{b:{c:{d:{e:{if(!((g|0)!=3|M[a+272>>2]<2)|(K[a+286|0]|K[a+287|0]))break e;if(K[a+288|0]|K[a+289|0])break e;if((c|0)!=16){Dc(a,1028,0,0);return 1028}H[a+289|0]=1;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+316>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+320>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);g=K[d+8|0];H[a+336|0]=g;f=K[d+9|0];H[a+337|0]=f;k=K[d+10|0];H[a+338|0]=k;l=K[d+11|0];H[a+ -339|0]=l;c=K[d+12|0];H[a+340|0]=c;h=K[d+13|0];H[a+341|0]=h;i=K[d+14|0];H[a+342|0]=i;j=K[d+15|0];H[a+343|0]=j;if(!(1<>>0<=14:0)){Dc(a,1037,0,0);return 1037}if(!(1<>>0<=20:0))break d;if((k|0)!=8)break c;f:switch(l|0){case 0:case 8:break f;default:break b}g:{h:switch(g-12|0){case 0:case 2:if(!(1<>>0<=16:0))break d;i:{j:switch(h|0){case 0:break i;case 8:break j;default:break c}if((c|0)==8)break i;break d}if(i)break a;if(j>>>0<2)break g;break b;default:break h}if(c)break d; -if(h)break c;if(i)break a;if(!j)break g;break b}k:{l:{if(K[a+284|0])break l;J[a+12>>2]=3;H[a+284|0]=1;f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+16>>2]=h;f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+20>>2]=f;m:switch(g-12|0){default:c=0;break;case 0:case 2:break m}H[a+44|0]=c;if(!(h>>>0<=M[a+124>>2]&f>>>0<=M[a+128>>2])){c=4097;if(!Dc(a,4097,0,0))break k}c=J[a+188>>2];if(!c)break l;if(gc[c|0](a, -J[a+16>>2],J[a+20>>2])|0)break l;Dc(a,904,0,0);return 904}H[a+325|0]=0;J[a+48>>2]=J[a+48>>2]+1;c=iN(a);if(c)break k;if(K[a+112|0]){c=gc[J[b+4>>2]](a,b,e)|0;if(c)break k;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+32>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+40|0]=K[d+8|0];H[a+41|0]=K[d+9|0];H[a+42|0]=K[d+10|0];H[a+43|0]=K[d+11|0];H[a+44|0]=K[d+12|0];H[a+45|0]=K[d+13|0];H[a+ -46|0]=K[d+14|0];H[a+47|0]=K[d+15|0]}c=0}return c|0}Dc(a,1029,0,0);return 1029}Dc(a,1036,0,0);return 1036}Dc(a,1038,0,0);return 1038}Dc(a,1040,0,0);return 1040}Dc(a,1039,0,0);return 1039}function Z_(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=bc-32|0;bc=f;g=J[a+36>>2];e=J[g+20>>2];a:{b:{d=J[g+16>>2];b=K[d|0];c:{if(((b&223)-65&255)>>>0>=26){if((b|0)!=95)break b;if(d>>>0>>0)break c;break b}if(d>>>0>=e>>>0)break b}b=d;while(1){d:{c=b;b=b+1|0;c=K[c+1|0];if(!((c-48&255)>>>0<10|((c&223)-65&255)>>>0<26|c-45>>> -0<2))if((c|0)!=95)break d;if(b>>>0>>0)continue}break}if(c<<24>>24<=0|b>>>0>=e>>>0)break b;e=b-d|0;if(!(K[a+362|0]&8|(e|0)<50001)){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break a}J[a+84>>2]=110;J[f+4>>2]=14115;J[f>>2]=6556;c=0;Cc(0,0,0,a,0,1,110,3,14115,0,0,0,32761,f);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}c=le(J[a+296>>2],d,e);d=J[a+36>>2];J[d+16>>2]=b;J[a+200>>2]=e+J[a+200>>2];J[d+32>>2]=e+J[d+32>>2];if(c)break a;c=0;ke(a,0);break a}if(!(J[a+292>>2]|(e-d|0)>249)){Hd(a);g=J[a+ -36>>2];d=J[g+16>>2]}e=J[g+12>>2];c=0;e:{f:{b=Ff(a,f+28|0);switch(b-47|0){case 0:case 15:break a;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break e;default:break f}}if((b|0)==32)break a}if(!t$(J[a+360>>2],b)|(b|0)==58)break a;g=d-e|0;e=0;while(1){g:{h:switch(b-47|0){default:if((b|0)==32)break g;break;case 0:case 15:break g;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break h}if(!Xq(J[a+ -360>>2],b)|(b|0)==58)break g;i:{if((c|0)<101){c=c+1|0;break i}if(!(K[a+362|0]&8|(e|0)<50001)){Pe(a,110,14115);c=0;break a}j:{if(J[a+292>>2])break j;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break j;Hd(a)}c=0;if(J[a+172>>2]==-1)break a}b=J[a+36>>2];d=J[b+16>>2];k:{if(K[d|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break k}J[b+32>>2]=J[b+32>>2]+1}h=b;b=J[f+28>>2];d=b+d|0;J[h+16>>2]=d;if(K[d|0]==37)Od(a);e=b+e|0;b=Ff(a,f+28|0);if(b)continue;b=J[a+36>>2];d=J[f+28>>2];c=J[b+16>>2]-d|0;J[b+16>>2]= -c;if(!(J[a+292>>2]|(J[b+20>>2]-c|0)>249)){Hd(a);b=J[a+36>>2];c=J[b+16>>2];d=J[f+28>>2]}J[b+16>>2]=c+d;c=0;if(J[a+172>>2]==-1)break a;b=Ff(a,f+28|0);continue}break}if(!(K[a+362|0]&8|(e|0)<50001)){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break a}J[a+84>>2]=110;J[f+20>>2]=14115;J[f+16>>2]=6556;c=0;Cc(0,0,0,a,0,1,110,3,14115,0,0,0,32761,f+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}c=le(J[a+296>>2],g+J[J[a+36>>2]+12>>2]|0,e)}bc=f+32|0;return c}function _1(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;j=bc-32|0;bc=j;f=J[b>>2];h=J[b+4>>2];J[j+28>>2]=0;a:{b:{if(!QL(j+28|0)){m=zc(32);d=m;J[d+24>>2]=1768386675;J[d+28>>2]=0;J[d+16>>2]=1768386662;J[d+20>>2]=0;J[d+8>>2]=1768386675;J[d+12>>2]=0;J[d>>2]=1768386662;J[d+4>>2]=0;k=(h-f|0)/12|0;if((f|0)!=(h|0))while(1){h=j+8|0;J[h+12>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[h>>2]=413844;d=J[b>>2];J[695492]=0;f=P(e,12);d=ga(3,h|0,f+d|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(d){J[695492]=0;d=J[h+12>>2];g=J[695492]; -J[695492]=0;if((g|0)==1)break a;i=(d|0)<(i|0)?i:d;if((d|0)>=100000001){g=f+J[b>>2]|0;f=g;d=f+12|0;l=J[b+4>>2];if((d|0)!=(l|0)){while(1){if(H[f+11|0]<0)qc(J[f>>2]);n=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=n;J[f+8>>2]=J[d+8>>2];H[d+11|0]=0;J[d>>2]=0;f=f+12|0;d=d+12|0;if((l|0)!=(d|0))continue;break}d=J[b+4>>2]}g=g+P((f-g|0)/12|0,12)|0;if((g|0)!=(d|0))while(1){f=d-12|0;if(H[d-1|0]<0)qc(J[f>>2]);d=f;if((g|0)!=(d|0))continue;break}J[b+4>>2]=g;k=k-1|0;e=e-1|0}}ve(h);e=e+1|0;if(k>>>0>e>>>0)continue;break}h= -rc(i);c:{if(!k)break c;i=0;if(!(c&2)){while(1){d:{e=j+8|0;J[e+4>>2]=1;J[e>>2]=347692;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=350092;H[e+16|0]=0;d=J[b>>2];J[695492]=0;f=d;d=P(i,12);f=ga(2686,e|0,f+d|0,h|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(f){f=J[b>>2];J[695492]=0;oa(2818,a|0,J[j+28>>2],m|0,d+f|0,e|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break d}lC(e);i=i+1|0;if((k|0)!=(i|0))continue;break c}break}break b}while(1){g=P(i,12);e=g+J[b>>2]|0;d=K[e+11|0];f=d<<24>>24<0;d=f?J[e+4>>2]:d;e:{f:{if((d| -0)<6)break f;e=f?J[e>>2]:e;l=e+(d<<2)|0;f=e;while(1){d=og(f,46,d-5|0);if(!d)break f;if(gd(d,351E3,6)){f=d+4|0;d=l-f>>2;if((d|0)>=6)continue;break f}break}if((d|0)==(l|0))break f;d=d-e|0;if((d|0)==-4)break f;f=g+J[b>>2]|0;e=K[f+11|0];if(((e<<24>>24<0?J[f+4>>2]:e)-6|0)==d>>2)break e}e=j+8|0;J[e+4>>2]=1;J[e>>2]=347692;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=350092;H[e+16|0]=0;d=J[b>>2];J[695492]=0;d=ga(2686,e|0,d+g|0,h|0)|0;f=J[695492];J[695492]=0;g:{if((f|0)!=1){if(!d)break g;d=J[b>>2];J[695492]=0;oa(2818, -a|0,J[j+28>>2],m|0,d+g|0,e|0,c|0);d=J[695492];J[695492]=0;if((d|0)!=1)break g}break b}lC(e)}i=i+1|0;if((k|0)!=(i|0))continue;break}}qc(h);qc(m);PL(J[j+28>>2])}bc=j+32|0;return}a=Z()|0;lC(j+8|0);ba(a|0);B()}a=Z()|0;ve(h);ba(a|0);B()}function Veb(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;f=bc-16|0;bc=f;l=J[a+100>>2];J[f+8>>2]=0;c=gc[J[a+516>>2]](a,1129333068,b,f+4|0)|0;J[f+12>>2]=c;a:{b:{if(c)break b;c=J[f+4>>2];c:{if(c>>>0<12)break c;c=yi(b,c,f+8|0);J[f+12>>2]= -c;if(c)break b;d=J[f+8>>2];m=f+12|0;k=Zd(l,20,m);if(J[f+12>>2])break b;c=K[d|0]|K[d+1|0]<<8;c=c<<8|c>>>8;I[k>>1]=c;i=c&65535;if(i>>>0>1)break c;c=K[d+2|0]|K[d+3|0]<<8;h=c<<8|c>>>8;I[a+660>>1]=h;c=K[d+4|0]|K[d+5|0]<<8;e=c<<8|c>>>8;I[a+648>>1]=e;c=K[d+6|0]|K[d+7|0]<<8;n=c<<8|c>>>8;I[k+2>>1]=n;c=J[f+4>>2];o=e&65535;e=o<<1;if(c>>>0>>0)break c;g=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);j=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(j>>>0>=c>>>0)break c;g=n&65535;if(c-j>>>0>>0|g>>>0< -(h&65535)>>>0)break c;d=d+12|0;J[k+8>>2]=d;g=J[f+8>>2];J[k+4>>2]=j+g;d:{if((i|0)!=1)break d;if(e+24>>>0>c>>>0)break c;d=d+e|0;j=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);i=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(h){if(c>>>0<=h>>>0|e>>>0>c-h>>>0)break c;d=Sc(l,2,0,o,0,m);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+648>>1];if(c){m=d+(c<<1)|0;e=g+h|0;c=d;while(1){h=K[e|0]|K[e+1|0]<<8;I[c>>1]=h<< -8|h>>>8;e=e+2|0;c=c+2|0;if(m>>>0>c>>>0)continue;break}}J[a+656>>2]=d;c=J[f+4>>2]}e=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);if(e){if(c>>>0<=e>>>0)break c;d=c-e|0;c=L[a+648>>1];if(d>>>0>>0)break c;d=Sc(l,2,0,c,0,f+12|0);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+648>>1];if(c){i=d+(c<<1)|0;e=e+g|0;c=d;while(1){h=K[e|0]|K[e+1|0]<<8;I[c>>1]=h<<8|h>>>8;e=e+2|0;c=c+2|0;if(i>>>0>c>>>0)continue;break}}J[a+652>>2]=d;c=J[f+4>>2]}e=j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24);if(!e)break d;if(c>>>0<=e>>>0)break c; -d=c-e|0;c=L[a+660>>1];if(d>>>0>>0)break c;d=Sc(l,2,0,c,0,f+12|0);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+660>>1];if(c){j=d+(c<<1)|0;e=e+g|0;c=d;while(1){i=K[e|0]|K[e+1|0]<<8;I[c>>1]=i<<8|i>>>8;e=e+2|0;c=c+2|0;if(j>>>0>c>>>0)continue;break}}J[a+664>>2]=d;c=J[f+4>>2]}J[k+16>>2]=c;J[k+12>>2]=g;J[a+868>>2]=k;e=0;p=a,q=Sc(l,4,0,L[a+660>>1],0,f+12|0),J[p+672>>2]=q;if(J[f+12>>2])break b;if(!w4(a,0))break a}J[f+12>>2]=8}Sf(b,f+8|0);if(k)gc[J[l+8>>2]](l,k);J[a+868>>2]=0;e=J[f+12>>2]}bc=f+16|0;return e| -0}function Ora(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;j=bc-16|0;bc=j;k=((e<<2)+b|0)+(h<<2)|0;n=(P(g,10)|0)/4|0;o=(h<<1)+e|0;a:{if(f&3|e&1){if(!f|!e)break a;while(1){g=(f|0)==1;h=e;while(1){c=K[i+9|0];d=K[i+8|0];b:switch(h-1|0){default:if(!g){_d(J[a+68>>2],K[i+7|0],d,c,j+12|0,j+8|0,j+4|0);J[k+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}_d(J[a+68>>2],K[i+3|0],d,c,j+12|0,j+8|0,j+4|0);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<< -16|-16777216;case 2:if(!g){_d(J[a+68>>2],K[i+6|0],d,c,j+12|0,j+8|0,j+4|0);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}_d(J[a+68>>2],K[i+2|0],d,c,j+12|0,j+8|0,j+4|0);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:if(!g){_d(J[a+68>>2],K[i+5|0],d,c,j+12|0,j+8|0,j+4|0);J[k+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}_d(J[a+68>>2],K[i+1|0],d,c,j+12|0,j+8|0,j+4|0);J[b+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break b}if(!g){_d(J[a+68>>2], -K[i+4|0],d,c,j+12|0,j+8|0,j+4|0);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}_d(J[a+68>>2],K[i|0],d,c,j+12|0,j+8|0,j+4|0);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+10|0;c=(h>>>0>=4?4:h)<<2;b=c+b|0;k=c+k|0;c=h>>>0>4;h=h-4|0;if(c)continue;break}if(f>>>0<3)break a;i=i+n|0;f=f-2|0;c=o<<2;k=c+k|0;b=b+c|0;continue}}if(f>>>0<2)break a;d=e>>>2|0;while(1){c=d;while(1){e=K[i+8|0];g=K[i+9|0];h=j+12|0;l=j+8|0;m=j+4|0;_d(J[a+68>>2],K[i|0],e,g,h,l,m);J[b>>2]=J[j+12>>2]|J[j+8>>2]<< -8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+1|0],e,g,h,l,m);J[b+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+2|0],e,g,h,l,m);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+3|0],e,g,h,l,m);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+4|0],e,g,h,l,m);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+5|0],e,g,h,l,m);J[k+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+ -6|0],e,g,h,l,m);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+7|0],e,g,h,l,m);J[k+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+10|0;k=k+16|0;b=b+16|0;c=c-1|0;if(c)continue;break}i=i+n|0;c=o<<2;k=c+k|0;b=b+c|0;f=f-2|0;if(f>>>0>1)continue;break}}bc=j+16|0}function oFa(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;a:{c=J[a+4>>2];if((c|0)!=J[a+8>>2]){b:{if(H[b+11|0]>=0){d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break b}d=J[b+4>>2];f= -J[b>>2];J[695492]=0;ca(2672,c|0,f|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}d=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=d;d=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d;d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;J[a+4>>2]=c+56;return}g=bc-32|0;bc=g;d=a;c:{d:{i=J[a+4>>2];a=J[a>>2];h=(i-a|0)/56|0;c=h+1|0;if(c>>>0<76695845){f=d+8|0;j=J[f>>2];J[g+28>>2]=f;f=(j-a|0)/56|0;j=f<<1;f=f>>>0>=38347922? -76695844:c>>>0>>0?j:c;if(f){if(f>>>0>=76695845)break d;e=rc(P(f,56))}J[g+12>>2]=e;c=P(h,56)+e|0;J[g+20>>2]=c;J[g+24>>2]=P(f,56)+e;J[g+16>>2]=c;e:{f:{if(H[b+11|0]>=0){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];f=c;break f}a=J[b+4>>2];f=J[b>>2];J[695492]=0;ca(2672,c|0,f|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;a=J[d>>2];i=J[d+4>>2];c=J[g+16>>2];f=J[g+20>>2]}e=P(h,56)+e|0;h=J[b+20>>2];J[e+16>>2]=J[b+16>>2];J[e+20>>2]=h;h=J[b+52>>2];J[e+48>>2]=J[b+48>>2];J[e+52>>2]=h;h=J[b+ -44>>2];J[e+40>>2]=J[b+40>>2];J[e+44>>2]=h;h=J[b+36>>2];J[e+32>>2]=J[b+32>>2];J[e+36>>2]=h;h=J[b+28>>2];J[e+24>>2]=J[b+24>>2];J[e+28>>2]=h;f=f+56|0;if((a|0)==(i|0))b=a;else{while(1){i=i-56|0;b=i;e=J[b+4>>2];c=c-56|0;J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;e=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=e;e=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=e;e=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=e;e=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=e;e=J[b+20>>2]; -J[c+16>>2]=J[b+16>>2];J[c+20>>2]=e;if((a|0)!=(b|0))continue;break}a=J[d+4>>2];b=J[d>>2]}J[d>>2]=c;J[g+16>>2]=b;J[d+4>>2]=f;c=J[d+8>>2];J[d+8>>2]=J[g+24>>2];J[g+12>>2]=b;J[g+24>>2]=c;if((a|0)!=(b|0)){while(1){c=a-56|0;J[g+20>>2]=c;if(H[a-45|0]<0)qc(J[c>>2]);a=c;if((b|0)!=(c|0))continue;break}a=b}if(a)qc(a);bc=g+32|0;break c}d=Z()|0;a=J[g+20>>2];c=J[g+16>>2];if((a|0)!=(c|0))while(1){b=a-56|0;J[g+20>>2]=b;if(H[a-45|0]>=0)a=b;else{qc(J[b>>2]);a=J[g+20>>2]}if((c|0)!=(a|0))continue;break}a=J[g+12>>2];if(a)qc(a); -ba(d|0);B()}sX();B()}Sd();B()}return}b=Z()|0;J[a+4>>2]=c;ba(b|0);B()}function Paa(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;e=J[a+584>>2];if(!e)return 0;if(J[e+144>>2]){m=L[e+120>>1];y=J[e+140>>2];f=J[a+604>>2];h=L[e+64>>1];p=L[e+66>>1];k=L[e+68>>1];g=J[e+76>>2];i=J[e+72>>2];u=J[e+124>>2];n=J[e+136>>2];d=J[e+132>>2];if(!((m|0)!=65535|(c|0)<=0)){i=i<>g;if((o|0)<16)f=f+1|0;else{g=o-16|0;H[f+ -1|0]=i>>g;f=f+2|0}d=d+1|0;c=c-1|0;n=h+n|0;m=K[b|0];b=b+1|0}v=b;a:{if((c|0)<=0)break a;while(1){s=J[e+144>>2];o=c;b:{while(1){j=m;m=K[v|0];b=d+1|0;c=o-1|0;v=v+1|0;w=j+(m<<12)|0;l=j^m<<5;t=l<<3;q=t+s|0;r=J[q>>2];if((w|0)!=(r|0))break b;j=o>>>0>1;m=L[(s+t|0)+4>>1];d=b;o=c;if(j)continue;break}break a}c:{if((r|0)>=0){t=l?l-9001|0:-1;while(1){l=l+t|0;l=(l|0)<0?l+9001|0:l;r=l<<3;q=r+s|0;x=J[q>>2];if((x|0)==(w|0)){m=L[(s+r|0)+4>>1];d=b;break c}if((x|0)>=0)continue;break}}if(f>>>0>y>>>0){J[a+608>>2]=f-J[a+ -596>>2];gf(a);f=J[a+596>>2]}i=j|i<>g;if((j|0)<16)f=f+1|0;else{g=j-16|0;H[f+1|0]=i>>g;f=f+2|0}J[q>>2]=w;I[q+4>>1]=k;d:{e:{j=k+1|0;if((j|0)==4094){d=J[e+144>>2];b=d+72E3|0;k=8993;while(1){J[b>>2]=-1;J[b-8>>2]=-1;J[b-16>>2]=-1;J[b-24>>2]=-1;J[b-32>>2]=-1;J[b-40>>2]=-1;J[b-48>>2]=-1;J[b-56>>2]=-1;b=b+-64|0;j=k>>>0>7;k=k-8|0;if(j)continue;break}J[d>>2]=-1;d=0;J[e+128>>2]=0;i=i<>g;p=511;k=258;if((b|0)<16)break e;g=b-16|0;H[f+1|0]=i>>g;f=f+2|0; -break d}n=h+n|0;f:{if((k|0)>=(p|0)){if((h|0)>=12)break f;p=(2<=(u|0)){u=d+10001|0;g:{if((d|0)>=8388607){d=2147483647;if(n>>>0<256)break g;d=(b|0)/(n>>8)|0;break g}d=(b<<8)/(n|0)|0}if((d|0)<=J[e+128>>2]){d=J[e+144>>2];b=d+72E3|0;k=8993;while(1){J[b>>2]=-1;J[b-8>>2]=-1;J[b-16>>2]=-1;J[b-24>>2]=-1;J[b-32>>2]=-1;J[b-40>>2]=-1;J[b-48>>2]=-1;J[b-56>>2]=-1;b=b+-64|0;j=k>>>0>7;k=k-8|0;if(j)continue;break}J[d>>2]=-1;d=0;J[e+128>>2]=0;i=i<>g;p=511;k=258;if((b|0)<16)break e;g=b-16|0;H[f+1|0]=i>>g;f=f+2|0;break d}J[e+128>>2]=d}d=b;k=j;break c}fa(79282,70324,940,97925);B()}f=f+1|0}n=h;h=9}if((o|0)>1)continue;break}}J[e+136>>2]=n;J[e+132>>2]=d;J[e+124>>2]=u;J[e+76>>2]=g;J[e+72>>2]=i;I[e+68>>1]=k;I[e+66>>1]=p;I[e+64>>1]=h;J[e+120>>2]=m;J[a+604>>2]=f;return 1}fa(78819,70324,842,97925);B()}function Ipb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=1029;a:{b:{if(!K[a+285|0])break b;if(!K[a+114|0]){f=17;break b}if(K[a+ -286|0]|K[a+287|0]|(K[a+288|0]|K[a+289|0]))break b;f=1028;if(c>>>0<5)break b;g=(c|0)!=5;if(c+2&3?g:0)break b;i=1;H[a+305|0]=1;f=K[d+1|0];k=K[d|0];c:{d:{e:{if(!K[a+264|0]){h=K[d+4|0]|(K[d+2|0]<<16|f<<24|K[d+3|0]<<8);if(g)break e;g=2147483647;f=0;break c}h=K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);g=2147483647;if((c|0)!=5)break d;break c}f=K[d+5|0]}g=2147483647;if(c>>>0<10)break c;i=K[d+6|0]|K[d+7|0]<<8|(K[d+8|0]<<16|K[d+9|0]<<24);i=i<<24|(i&65280)<<8| -(i>>>8&65280|i>>>24);if(c>>>0<14)break c;g=K[d+10|0]|K[d+11|0]<<8|(K[d+12|0]<<16|K[d+13|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24)}l=f&255;f:{g:{if(K[a+114|0]){f=gc[J[a+152>>2]](60)|0;if(!f)break g;J[f+4>>2]=1040;J[f>>2]=1041;j=J[a+700>>2];h:{if(j){J[j+8>>2]=f;break h}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=j;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+48>>2]=0;J[f+44>>2]=g;J[f+40>>2]=i;H[f+36| -0]=l;J[f+32>>2]=h;H[f+28|0]=k;J[f+56>>2]=h}f=0;break f}Dc(a,1,0,0);f=1}i:{if(f)break i;if(!(K[a+460|0]|h))H[a+460|0]=1;if(!K[a+112|0])break a;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break i;b=J[e>>2];H[b+32|0]=K[d|0];f=K[d+1|0];j:{k:{if(!K[a+264|0]){J[b+36>>2]=K[d+4|0]|(K[d+2|0]<<16|f<<24|K[d+3|0]<<8);if((c|0)!=5)break k;break a}H[b+40|0]=f;f=K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24);J[b+36>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(c>>>0>9)break j;break a}H[b+40|0]=K[d+5|0];if(c>>>0>=10)break j; -break a}f=K[d+6|0]|K[d+7|0]<<8|(K[d+8|0]<<16|K[d+9|0]<<24);J[b+44>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(c>>>0<14)break a;f=K[d+10|0]|K[d+11|0]<<8|(K[d+12|0]<<16|K[d+13|0]<<24);c=c-14|0;J[b+52>>2]=c>>>2;J[b+48>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(c>>>0<4)break a;b=gc[J[a+152>>2]](c&-4)|0;J[J[e>>2]+56>>2]=b;e=J[e>>2];c=J[e+56>>2];if(!c){f=1;break b}f=0;if(!J[e+52>>2])break i;d=d+14|0;b=0;while(1){a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c>>2]=a<<24|(a&65280)<<8|(a>>>8&65280| -a>>>24);d=d+4|0;c=c+4|0;b=b+1|0;if(b>>>0>2])continue;break}}return f|0}Dc(a,f,0,0);return f|0}return 0}function Uub(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-48|0;bc=e;J[a>>2]=c;a:{b:{c:{d:{e:{f:{g:{h:{if(!c){i:{if(H[b+11|0]>=0){J[e+40>>2]=J[b+8>>2];c=J[b+4>>2];J[e+32>>2]=J[b>>2];J[e+36>>2]=c;break i}Re(e+32|0,J[b>>2],J[b+4>>2])}J[695492]=0;c=aa(1,e+44|0,e+32|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break h;if(H[e+43|0]<0)qc(J[e+32>>2]);c=J[c>>2];J[a>>2]=c}c=c-11|0;if(!c)break g; -if((c|0)==14)break e;break f}c=Z()|0;if(H[e+43|0]>=0)break a;qc(J[e+32>>2]);ba(c|0);B()}J[e+12>>2]=0;H[e+23|0]=0;c=K[a+40|0];J[695492]=0;c=ma(2,e+31|0,a|0,b|0,e+12|0,!c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){if(H[e+23|0]>=0)break d;qc(J[e+12>>2]);break d}c=Z()|0;if(H[e+23|0]>=0)break a;qc(J[e+12>>2]);ba(c|0);B()}c=0;g=e+12|0;J[g+12>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g>>2]=413844;J[695492]=0;b=ga(3,g|0,b|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){j:{if(!b)break j;J[695492]=0;f=$(4,976)|0;b=J[695492]; -J[695492]=0;k:{l:{m:{if((b|0)==1)break m;J[695492]=0;b=qf(f,0);c=J[695492];J[695492]=0;if((c|0)==1)break l;J[695492]=0;c=J[g+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break m;f=J[a>>2];J[695492]=0;f=ga(7,b|0,c|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break m;c=0;if(!f)break j;if(!K[d|0])break k;J[695492]=0;aa(8,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break k}c=Z()|0;break b}c=Z()|0;qc(f);break b}J[695492]=0;da(9,b|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break c;J[695492]=0;c=Do(b);d=J[695492]; -J[695492]=0;if((d|0)==1)break c;H[a+28|0]=c;gc[J[J[b>>2]+4>>2]](b);c=1}ve(g);break d}c=Z()|0;break b}g=!K[a+40|0];d=0;c=bc-16|0;bc=c;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=413844;J[695492]=0;b=ga(3,c|0,b|0,0)|0;f=J[695492];J[695492]=0;n:{if((f|0)!=1)o:{if(b){J[695492]=0;b=$(4,552)|0;d=J[695492];J[695492]=0;if((d|0)==1)break o;J[695492]=0;_(35,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break o;J[695492]=0;d=J[c+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break o;J[695492]=0;f=aa(36,d|0,b|0)|0;d= -J[695492];J[695492]=0;if((d|0)==1)break o;d=0;if(f){J[695492]=0;d=ga(37,b|0,a|0,g|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break o}J[695492]=0;hA(b);a=J[695492];J[695492]=0;if((a|0)==1)break o;J[695492]=0;_(21,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break o}ve(c);bc=c+16|0;c=d;break n}a=Z()|0;ve(c);ba(a|0);B()}}bc=e+48|0;return c|0}c=Z()|0}ve(g)}ba(c|0);B()}function Meb(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;k=3;a:{if((d|e)<0)break a;j=J[a+8>>2];f=J[a+12>> -2];i=L[f+2>>1];if(M[j+4>>2]>>0)break a;f=L[f>>1];if(M[j>>2]>>0)break a;i=P(i,K[a+18|0]);if(P(i+7>>>3|0,f)+b>>>0>c>>>0)break a;a=J[j+12>>2];h=J[j+8>>2];j=d>>>3|0;c=(a+P(h,e)|0)+j|0;g=d&7;if(g){k=0;if(!f)break a;l=8-g|0;if(i>>>0>=8)while(1){d=0;e=i;a=c;while(1){j=a;k=b;d=K[b|0]|d;H[a|0]=K[a|0]|d>>>g;m=e;e=e-8|0;a=a+1|0;b=b+1|0;d=d<<8;if((m|0)>15)continue;break}if((m|0)>8){d=K[k+1|0]&65280>>>e|d;b=k+2|0}H[a|0]=K[a|0]|d>>>g;if((e|0)>(l|0))H[j+2|0]=K[j+2|0]|d<<8>>>g;c=c+h|0;a=f;f=f-1|0;k=0;if((a| -0)>1)continue;break a}d=65280>>>i|0;if(i>>>0>l>>>0){if((h|0)!=1){if(f&1){a=d&K[b|0];H[c|0]=K[c|0]|a>>>g;H[c+1|0]=K[c+1|0]|a<<8>>>g;c=c+h|0;b=b+1|0;a=f-1|0}else a=f;if((f|0)==1)break a;while(1){e=d&K[b|0];H[c|0]=K[c|0]|e>>>g;H[c+1|0]=K[c+1|0]|e<<8>>>g;c=c+h|0;e=d&K[b+1|0];H[c|0]=K[c|0]|e>>>g;H[c+1|0]=K[c+1|0]|e<<8>>>g;b=b+2|0;c=c+h|0;e=a-3|0;a=a-2|0;if(e>>>0<4294967294)continue;break}break a}e=K[(a+j|0)+e|0];if(f&1){a=d&K[b|0];H[c|0]=a>>>g|e;e=K[c+1|0]|a<<8>>>g;H[c+1|0]=e;c=c+h|0;b=b+1|0;a=f-1|0}else a= -f;if((f|0)==1)break a;while(1){f=e;e=d&K[b|0];H[c|0]=f|e>>>g;e=K[c+1|0]|e<<8>>>g;H[c+1|0]=e;c=c+h|0;f=d&K[b+1|0];H[c|0]=e|f>>>g;e=K[c+1|0]|f<<8>>>g;H[c+1|0]=e;b=b+2|0;c=c+h|0;f=a-3|0;a=a-2|0;if(f>>>0<4294967294)continue;break}break a}if(!i)break a;if(f&1){H[c|0]=K[c|0]|(d&K[b|0])>>>g;c=c+h|0;b=b+1|0;a=f-1|0}else a=f;if((f|0)==1)break a;while(1){H[c|0]=K[c|0]|(d&K[b|0])>>>g;c=c+h|0;H[c|0]=K[c|0]|(d&K[b+1|0])>>>g;b=b+2|0;c=c+h|0;e=a-3|0;a=a-2|0;if(e>>>0<4294967294)continue;break}break a}k=0;if(!f)break a; -if(i>>>0>=8)while(1){a=f;d=i;f=c;while(1){e=b;H[f|0]=K[b|0]|K[f|0];j=d;d=d-8|0;f=f+1|0;b=b+1|0;if((j|0)>15)continue;break}if((j|0)>8){H[f|0]=K[f|0]|K[e+1|0]&65280>>>d;b=e+2|0}c=c+h|0;f=a-1|0;if((a|0)>1)continue;break a}if(!i)break a;a=65280>>>i|0;i=f&3;b:{if(!i){d=f;break b}e=0;d=f;while(1){H[c|0]=K[c|0]|a&K[b|0];c=c+h|0;d=d-1|0;b=b+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}if(f>>>0<4)break a;while(1){H[c|0]=K[c|0]|a&K[b|0];c=c+h|0;H[c|0]=K[c|0]|a&K[b+1|0];c=c+h|0;H[c|0]=K[c|0]|a&K[b+2|0];c=c+h| -0;H[c|0]=K[c|0]|a&K[b+3|0];b=b+4|0;c=c+h|0;e=d-5|0;d=d-4|0;if(e>>>0<4294967294)continue;break}}return k|0}function GOa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;D=bc-224|0;bc=D;e=a;while(1){a:{d=J[(r<<2)+b>>2]+c|0;f=K[d+10|0];t=e;v=K[d+12|0];E=K[d+2|0];F=v+E|0;G=K[d+7|0];u=F+G|0;j=K[d+9|0];h=K[d+5|0];l=j+h|0;g=K[d+4|0];m=g+f|0;i=K[d+14|0];k=K[d|0];n=i+k|0;s=l+(m+n|0)|0;w=K[d+8|0];x=K[d+6|0]; -o=w+x|0;y=K[d+11|0];z=K[d+3|0];p=y+z|0;A=K[d+13|0];B=K[d+1|0];q=A+B|0;C=o+(p+q|0)|0;J[e>>2]=(u+(s+C|0)|0)-1920;d=k-i|0;g=g-f|0;f=h-j|0;i=B-A|0;j=z-y|0;h=x-w|0;J[e+12>>2]=(P(d-(g+f|0)|0,11018)+P(i-(j+h|0)|0,6810)|0)+4096>>13;k=u<<1;J[e+24>>2]=(P(s-k|0,9373)+P(C-k|0,-3580)|0)+4096>>13;k=E-v|0;s=P(k,10033);u=((P(d,-2912)+P(i,-17828)|0)-s|0)+P(f,-7121)|0;i=(P(f+j|0,4712)+P(g+i|0,11018)|0)+P(d-h|0,11522)|0;J[e+28>>2]=(u+i|0)+4096>>13;J[e+20>>2]=P(h+(f+(d-(j+k|0)|0)|0)|0,10033)+4096>>13;J[e+4>>2]=(i+(((s+ -P(j,3897)|0)+P(g,-4209)|0)+P(h,13930)|0)|0)+4096>>13;f=((P(q-m|0,6476)+P(n-p|0,11332)|0)+P(o-l|0,7752)|0)+4096|0;d=F+((m+q>>>1|0)-(G<<1)|0)|0;J[e+16>>2]=(f+P(l-d|0,6541)|0)+P(n-d|0,-748)>>13;J[e+8>>2]=(f+P(p-d|0,12543)|0)+P(o-d|0,-18336)>>13;f=r-7|0;d=7;r=r+1|0;e=D;b:switch(f|0){case 0:continue;case 7:break a;default:break b}e=t+32|0;continue}break}while(1){f=J[e+128>>2];m=J[a>>2];n=J[e+192>>2];b=m-n|0;l=J[a+128>>2];p=J[e+64>>2];j=l-p|0;q=J[a+160>>2];o=J[e+32>>2];c=q-o|0;g=J[a+32>>2];i=J[e+160>>2]; -h=g-i|0;k=J[a+96>>2];s=J[e+96>>2];t=k-s|0;y=J[a+192>>2];z=J[e>>2];r=y-z|0;J[a+96>>2]=(P(b-(j+c|0)|0,12536)+P(h-(t+r|0)|0,7748)|0)+16384>>15;l=l+p|0;m=m+n|0;n=q+o|0;A=(l+m|0)+n|0;B=J[a+224>>2];w=J[a+64>>2];x=w+f|0;C=B+x|0;v=C<<1;o=y+z|0;p=k+s|0;q=g+i|0;g=o+(p+q|0)|0;J[a+192>>2]=(P(A-v|0,10664)+P(g-v|0,-4073)|0)+16384>>15;J[a>>2]=P(C+(g+A|0)|0,9321)+16384>>15;f=w-f|0;g=P(f,11415);u=((P(b,-3314)+P(h,-20284)|0)-g|0)+P(c,-8102)|0;h=(P(c+t|0,5361)+P(h+j|0,12536)|0)+P(b-r|0,13109)|0;J[a+224>>2]=(u+h|0)+ -16384>>15;J[a+160>>2]=P(r+(c+(b-(f+t|0)|0)|0)|0,11415)+16384>>15;J[a+32>>2]=(h+(((g+P(t,4434)|0)+P(j,-4788)|0)+P(r,15850)|0)|0)+16384>>15;c=((P(q-l|0,7369)+P(m-p|0,12893)|0)+P(o-n|0,8820)|0)+16384|0;b=x+((l+q>>1)-(B<<1)|0)|0;J[a+128>>2]=(c+P(n-b|0,7442)|0)+P(m-b|0,-852)>>15;J[a+64>>2]=(c+P(p-b|0,14271)|0)+P(o-b|0,-20862)>>15;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b)continue;break}bc=D+224|0}function K0(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;e=-102;a:{if(!a)break a;a=J[a+224>> -2];if(!a)break a;if(!J[a>>2])return-100;e=0;if(!c)break a;J[a+20>>2]=c;J[a+16>>2]=b;h=c;d=J[a+132>>2];b=J[a+128>>2];if(!(J[a+200>>2]|(!d&b>>>0>=c>>>0|(d|0)!=0))){c=b;J[a+20>>2]=c}d=J[a+124>>2];i=J[a+8>>2];b=J[a+120>>2];f=i+b|0;d=i>>>0>f>>>0?d+1|0:d;if(!(!J[a+200>>2]|(!d&f>>>0>=h>>>0|(d|0)!=0))){c=b+i|0;J[a+20>>2]=c}if(!c)break a;k=a+4|0;i=a+136|0;while(1){h=e;c=J[a+8>>2];b:{if(c)break b;b=J[a+120>>2];c=J[a+124>>2];if(!(b|c)){c=0;break b}e=-1;d=J[a+196>>2]+J[a+68>>2]|0;j=J[a+64>>2];f=j+J[a+192>>2]| -0;if(dj(i,J[a+180>>2],f,f>>>0>>0?d+1|0:d,0))break a;d=!c&b>>>0>=16384|(c|0)!=0;b=d?16384:b;d=d?0:c;c=b;if((gc[J[a+140>>2]](J[a+164>>2],J[a+180>>2],J[a>>2],c)|0)!=(c|0))break a;J[a+8>>2]=c;J[a+4>>2]=J[a>>2];e=d+J[a+68>>2]|0;f=c+J[a+64>>2]|0;e=f>>>0>>0?e+1|0:e;J[a+64>>2]=f;J[a+68>>2]=e;e=J[a+120>>2];d=J[a+124>>2]-((c>>>0>e>>>0)+d|0)|0;b=e-c|0;J[a+120>>2]=b;J[a+124>>2]=d}c:{b=J[a+184>>2];if(!(J[a+200>>2]?0:b)){if(!((J[a+120>>2]|J[a+124>>2])!=0|c))return h|0;b=J[a+20>>2];d=b>>>0>>0?b:c;d:{if(!d)break d; -e=0;c=0;if(d>>>0>=4){f=d&-4;b=0;while(1){H[J[a+16>>2]+c|0]=K[J[a+4>>2]+c|0];g=c|1;H[g+J[a+16>>2]|0]=K[g+J[a+4>>2]|0];g=c|2;H[g+J[a+16>>2]|0]=K[g+J[a+4>>2]|0];g=c|3;H[g+J[a+16>>2]|0]=K[g+J[a+4>>2]|0];c=c+4|0;b=b+4|0;if((f|0)!=(b|0))continue;break}}b=d&3;if(!b)break d;while(1){H[J[a+16>>2]+c|0]=K[J[a+4>>2]+c|0];c=c+1|0;e=e+1|0;if((b|0)!=(e|0))continue;break}}e=J[a+108>>2];c=J[a+104>>2];b=c+d|0;J[a+104>>2]=b;J[a+108>>2]=b>>>0>>0?e+1|0:e;l=a,m=$f(J[a+112>>2],J[a+16>>2],d),J[l+112>>2]=m;b=J[a+128>> -2];c=J[a+132>>2]-(d>>>0>b>>>0)|0;b=b-d|0;J[a+128>>2]=b;J[a+132>>2]=c;J[a+8>>2]=J[a+8>>2]-d;J[a+20>>2]=J[a+20>>2]-d;J[a+16>>2]=J[a+16>>2]+d;J[a+4>>2]=J[a+4>>2]+d;J[a+24>>2]=J[a+24>>2]+d;e=d+h|0;break c}if((b|0)==12){e=h;break c}g=J[a+16>>2];e=J[a+24>>2];c=zk(k,2);if((c|0)>=0)c=J[a+28>>2]?-3:c;d=J[a+24>>2];b=d-e|0;j=J[a+104>>2];f=b+j|0;d=0-(d>>>0>>0)|0;e=d+J[a+108>>2]|0;J[a+104>>2]=f;J[a+108>>2]=f>>>0>>0?e+1|0:e;l=a,m=$f(J[a+112>>2],g,b),J[l+112>>2]=m;e=J[a+128>>2];d=J[a+132>>2]-((b>>>0>e>>>0)+ -d|0)|0;e=e-b|0;J[a+128>>2]=e;J[a+132>>2]=d;e=b+h|0;if(!c)break c;if((c|0)==1)break a;e=c;break a}if(J[a+20>>2])continue;break}}return e|0}function yA(a){var b=0,c=0,d=0,e=0;a:{if(J[a+1168>>2]>=0){J[695492]=0;_(3205,a+1176|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1192>>2]>=0){J[695492]=0;_(3205,a+1200|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1216>>2]>=0){J[695492]=0;_(3205,a+1224|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1240>>2]>=0){J[695492]=0;_(3205,a+1248| -0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1264>>2]>=0){J[695492]=0;_(3205,a+1272|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1288>>2]>=0){J[695492]=0;_(3205,a+1296|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1312>>2]>=0){J[695492]=0;_(3205,a+1320|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1336>>2]>=0){J[695492]=0;_(3205,a+1344|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1360>>2]>=0){J[695492]=0;_(3205,a+1368|0);b=J[695492];J[695492]=0;if((b|0)== -1)break a}if(J[a+1384>>2]>=0){J[695492]=0;_(3205,a+1392|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1408>>2]>=0){J[695492]=0;_(3205,a+1416|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1432>>2]>=0){J[695492]=0;_(3205,a+1440|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1456>>2]>=0){J[695492]=0;_(3205,a+1464|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1480>>2]>=0){J[695492]=0;_(3205,a+1488|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1504>>2]>=0){J[695492]= -0;_(3205,a+1512|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+1528>>2]>=0){J[695492]=0;_(3205,a+1536|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+8>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+40|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+64>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+72>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}while(1){b=J[((e<<2)+a|0)+80>>2];if(b){c= -J[b+8>>2];b:{if(!c)break b;d=0;if(J[b+4>>2]>0){while(1){c=J[b+8>>2];J[695492]=0;_(3205,c+(d<<4)|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;d=d+1|0;if((d|0)>2])continue;break}c=J[b+8>>2];if(!c)break b}qc(c)}d=J[b+12>>2];J[695492]=0;Gc(d);d=J[695492];J[695492]=0;if((d|0)==1)break a;qc(b)}e=e+1|0;if((e|0)!=128)continue;break}return a}ea(0)|0;yc();B()}function UW(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=bc-144|0;bc=f;a:{b:{i=J[b+8>>2];c:{if(!i){g=J[b+12>>2];break c}e=J[a+16>>2]; -h=L[i+4>>1];g=J[b+12>>2];if(!(!g|!J[g+12>>2]))e=K[g+18|0];d:{if(h){i=J[i>>2];b=0;while(1){d=i+P(b,6)|0;k=L[d>>1];if(k>>>0>=e>>>0){J[f+132>>2]=e;J[f+128>>2]=k;Hc(c,1,2345107,f+128|0);k=0;break a}e:{d=L[d+4>>1];if(!(!d|(d|0)==65535)){d=d-1|0;if(d>>>0>=e>>>0)break e}b=b+1|0;if((h|0)==(b|0))break d;continue}break}J[f+116>>2]=e;J[f+112>>2]=d;Hc(c,1,2345107,f+112|0);k=0;break a}if(e)break b;break c}if(!h)break b;while(1){e=e-1|0;b=0;while(1){if(L[i+P(b,6)>>1]!=(e|0)){b=b+1|0;if((h|0)!=(b|0))continue;break b}break}if((h| -0)==(b&65535))break b;if(e)continue;break}}k=1;if(!g)break a;i=J[g+12>>2];if(!i)break a;f:{e=K[g+18|0];g:{if(e){b=0;h=1;while(1){g=J[a+16>>2];d=L[i+(b<<2)>>1];if(g>>>0<=d>>>0){J[f+100>>2]=g;J[f+96>>2]=d;Hc(c,1,2345107,f+96|0);h=0}b=b+1|0;if((e|0)!=(b|0))continue;break}g=ye(e,4);if(!g)break g;h:{if(!e)break h;b=0;while(1){d=i+(b<<2)|0;l=K[d+2|0];i:{if(l>>>0>=2){J[f+20>>2]=l;J[f+16>>2]=b;Hc(c,1,2345335,f+16|0);h=0;break i}d=K[d+3|0];if(d>>>0>=e>>>0){J[f+80>>2]=d;Hc(c,1,2345428,f+80|0);h=0;break i}m= -(l|0)!=1;j=(d<<2)+g|0;if(!(m|!J[j>>2])){J[f+32>>2]=d;Hc(c,1,2345512,f+32|0);h=0;break i}if(!(!d|l)){J[f+52>>2]=d;J[f+48>>2]=b;Hc(c,1,2345607,f+48|0);h=0;break i}if(!((b|0)==(d|0)|m)){J[f+72>>2]=d;J[f+68>>2]=b;J[f+64>>2]=b;Hc(c,1,2345686,f- -64|0);h=0;break i}J[j>>2]=1}b=b+1|0;if((e|0)!=(b|0))continue;break}if(!e)break h;b=0;while(1){d=b<<2;if(!(J[d+g>>2]|!K[(d+i|0)+2|0])){J[f>>2]=b;Hc(c,1,2345787,f);h=0}b=b+1|0;if((e|0)!=(b|0))continue;break}}if(!h){qc(g);k=0;break a}if(!e|J[a+16>>2]!=1)break f;b= -0;a=0;while(1){if(J[(b<<2)+g>>2]){a=a+1|0;b=a&65535;if(e>>>0>b>>>0)continue;break f}break}d=0;Hc(c,2,2345883,0);a=0;b=0;if(e>>>0>=4){l=e&252;h=0;while(1){c=a<<2;j=c+i|0;H[j+3|0]=b;H[j+2|0]=1;j=i+(c|4)|0;H[j+3|0]=b|1;H[j+2|0]=1;j=i+(c|8)|0;H[j+3|0]=b|2;H[j+2|0]=1;c=i+(c|12)|0;H[c+3|0]=b|3;H[c+2|0]=1;b=b+4|0;a=a+4|0;h=h+4|0;if((l|0)!=(h|0))continue;break}}c=e&3;if(!c)break f;while(1){e=i+(a<<2)|0;H[e+3|0]=b;H[e+2|0]=1;b=b+1|0;a=a+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break f}g=ye(e,4);if(g)break f}k= -0;Hc(c,1,2345212,0);break a}qc(g);break a}k=0;Hc(c,1,2345159,0)}bc=f+144|0;return k}function qva(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,u=0,v=0,w=0,x=0,y=0;e=bc-32|0;bc=e;a:{b:{if(K[a+89|0])break b;if(!K[a+88|0]){x=a,y=gc[J[J[a>>2]+36>>2]](a)|0,J[x+72>>2]=y;x=a,y=gc[J[J[a>>2]+44>>2]](a)|0,J[x+76>>2]=y;x=a,y=gc[J[J[a>>2]+40>>2]](a)|0,J[x+80>>2]=y;d=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}g=J[a+92>>2];if((g|0)<=0)break b;v=J[a+76>> -2]<<1;k=J[a+108>>2];l=J[a+104>>2];m=J[a+120>>2];n=J[a+116>>2];o=J[a+132>>2];p=J[a+128>>2];q=J[a+144>>2];r=J[a+140>>2];w=J[a+72>>2];a=0;c:{while(1){d:{e:{if(!((a|0)<=(q|0)&(a|0)>=(r|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break a}f=J[(a-o<<2)+p>>2];if((f|0)!=(c|0)){j=f-c|0;f=a;while(1){d=f;f=d+1|0;h=(f|0)%(g|0)|0;if(!((r|0)<=(h|0)&(h|0)<=(q|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break e;break a}i=J[(h-o<<2)+p>>2];if((i|0)==(c|0))continue;break}if((a|0)!=(d|0)){a=(a+1|0)%(g|0)|0;if(!((a|0)>=(n|0)&(a|0)<=(m|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break a}s=(d|0)%(g|0)|0;if(!((s|0)>=(n|0)&(m|0)>=(s|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break a}t=1;if((P(J[(s-k<<2)+l>>2]-b|0,J[(a-k<<2)+l>>2]-b|0)|0)<=0)break c}a= -i-c|0;if(!(!((j|0)<0&(a|0)>0)&((j|0)<=0|(a|0)>=0))){a=(d|0)%(g|0)|0;if(!((a|0)>=(n|0)&(a|0)<=(m|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break a}if(!((a|0)<=(q|0)&(a|0)>=(r|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break a}if(!((h|0)<=(m|0)&(h|0)>=(n|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!= -1)break e;break a}t=1;d=J[(a-k<<2)+l>>2];a=J[(a-o<<2)+p>>2];j=i-a|0;i=P(b-d|0,j);a=P(J[(h-k<<2)+l>>2]-d|0,c-a|0);if((i|0)==(a|0))break c;d=P(j,v-(d+w|0)|0);if((d|0)==(a|0))break c;u=((a|0)>(i|0)^(a|0)>(d|0))+u|0}a=f;break d}a=a+1|0;break d}B()}if((a|0)<(g|0))continue;break}t=0}f=t|u}bc=e+32|0;return f&1}b=Z()|0;Fc(a);ba(b|0);B()}function pra(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;k=bc-32|0;bc=k;a:{if(!J[b+12>>2]){J[a>>2]=0;md(a,0);break a}e=J[d>>2];f=J[d+8>>2];i=J[d+ -4>>2];j=J[d+12>>2];h=rc(72);J[695492]=0;i=j-i|0;e=f-e|0;f=ha(5381,h|0,i|0,e|0,0)|0;j=J[695492];J[695492]=0;b:{c:{if((j|0)!=1){J[a>>2]=0;md(a,f);h=J[b+12>>2];d:{e:{f:{g:{b=J[a>>2];h:{if(!J[b+20>>2]){J[695492]=0;_(5017,b|0);f=J[695492];J[695492]=0;if((f|0)==1)break h}i:{if(!L[b+8>>1]){f=L[b+14>>1];b=L[b+12>>1];if(J[682142]<(f+b|0)){J[695492]=0;b=ja(5018,k+8|0,2390201,2390381,577,2381799,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b; -d=Z()|0;Fc(b);break d}b=b+J[682141]|0;break i}b=J[b+20>>2]+L[b+12>>1]|0}f=L[J[a>>2]+14>>1];J[695492]=0;ua(5508,h|0,c|0,d|0,b|0,f|0,1,0);b=J[695492];J[695492]=0;if((b|0)==1)break h;j:{if((i|0)<=0)break j;if((e|0)>0){j=e&-4;h=e&3;l=e>>>0<4;e=0;while(1){k:{b=J[a>>2];if(!J[b+20>>2]){J[695492]=0;_(5017,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break k}c=L[b+14>>1];l:{if(L[b+8>>1]<=e>>>0){b=L[b+12>>1];if(J[682142]<(b+c|0))break g;b=b+J[682141]|0;break l}b=L[b+12>>1]+(J[b+20>>2]+P(c,e)|0)|0}f=0;d=0;c=0;if(!l)while(1){g= -b+d|0;H[g|0]=K[g|0]^128;g=b+(d|1)|0;H[g|0]=K[g|0]^128;g=b+(d|2)|0;H[g|0]=K[g|0]^128;g=b+(d|3)|0;H[g|0]=K[g|0]^128;d=d+4|0;c=c+4|0;if((j|0)!=(c|0))continue;break}if(h)while(1){c=b+d|0;H[c|0]=K[c|0]^128;d=d+1|0;f=f+1|0;if((h|0)!=(f|0))continue;break}e=e+1|0;if((i|0)!=(e|0))continue;break j}break}d=Z()|0;break d}b=J[a>>2];if(!J[b+20>>2]){b=0;while(1){c=J[a>>2];if(!J[c+20>>2]){J[695492]=0;_(5017,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break f}if(J[682142]<(L[c+12>>1]+L[c+14>>1]|0)&L[c+8>>1]<=b>>>0)break g; -b=b+1|0;if((i|0)!=(b|0))continue;break}break j}d=0;c=J[682142];e=L[b+14>>1];h=L[b+8>>1];while(1){if((c|0)<(e+L[b+12>>1]|0)&d>>>0>=h>>>0)break g;d=d+1|0;if((i|0)!=(d|0))continue;break}}b=J[a>>2];J[695492]=0;da(5372,b|0,256);b=J[695492];J[695492]=0;if((b|0)!=1)break a}d=Z()|0;break d}J[695492]=0;b=ja(5018,k+8|0,2390201,2390381,577,2381799,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b;d=Z()|0;Fc(b);break d}d=Z()|0;break d}d=Z()|0}vc(a); -break c}d=Z()|0;qc(h)}ba(d|0)}B()}bc=k+32|0}function oY(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,r=0,s=0,t=0,u=0,v=0;while(1){d=k<<2;e=d+2332320|0;f=(k<<1)+a|0;d=b+d|0;g=J[d+4>>2];a:{b:{i=J[d+8>>2];if(g|i)break b;i=0;if(J[d+12>>2]|J[d+16>>2]|(J[d+20>>2]|J[d+24>>2]))break b;if(J[d+28>>2])break b;e=P(J[e>>2],P(J[d>>2],L[f>>1]));e=k?e:e+4096|0;J[d+28>>2]=e;J[d+24>>2]=e;J[d+20>>2]=e;J[d+16>>2]=e;J[d+12>>2]=e;J[d+8>>2]=e;J[d+4>>2]=e;J[d>>2]=e;break a}i=P(J[e+8>>2],P(L[f+4>>1], -i));l=(i>>5)+i|0;j=l>>2;h=P(J[e+24>>2],P(J[d+24>>2],L[f+12>>1]));r=(h>>5)+h|0;m=r>>2;h=m+((l-j|0)+(h>>4)|0)|0;l=P(J[e+16>>2],P(J[d+16>>2],L[f+8>>1]));n=P(J[e>>2],P(J[d>>2],L[f>>1]));n=k?n:n+4096|0;s=l+n|0;o=h+s|0;p=P(J[e+4>>2],P(g,L[f+2>>1]));q=P(J[e+28>>2],P(J[d+28>>2],L[f+14>>1]));t=p-q|0;u=P(J[e+20>>2],P(J[d+20>>2],L[f+10>>1]));g=t+u|0;v=P(J[e+12>>2],P(J[d+12>>2],L[f+6>>1]));p=p+q|0;e=v+p|0;f=(e>>9)-e|0;f=(g>>1)+((f>>2)-f|0)|0;J[d+28>>2]=o-f;J[d>>2]=f+o;f=s-h|0;g=(g>>9)-g|0;e=(g>>2)-(g+(e>>1)| -0)|0;J[d+16>>2]=f-e;J[d+12>>2]=e+f;e=t-u|0;f=(e>>3)-(e>>7)|0;j=j+(i>>4)+(m-r)|0;h=n-l|0;m=j+h|0;g=p-v|0;i=(g>>3)-(g>>7)|0;l=(i-(g>>11)>>1)+i+(e-f)|0;J[d+24>>2]=m-l;J[d+4>>2]=m+l;j=h-j|0;e=g-((f+i|0)+(f-(e>>11)>>1)|0)|0;J[d+20>>2]=j-e;J[d+8>>2]=e+j}d=k>>>0<56;k=k+8|0;if(d)continue;break}k=0;while(1){d=(k<<2)+b|0;e=J[d+32>>2];c:{d:{a=J[d+64>>2];if(e|a)break d;a=0;if(J[d+96>>2]|J[d+128>>2]|(J[d+160>>2]|J[d+192>>2]))break d;if(J[d+224>>2])break d;a=J[d>>2];J[d+224>>2]=a;J[d+192>>2]=a;J[d+160>>2]=a;J[d+ -128>>2]=a;J[d+96>>2]=a;J[d+64>>2]=a;J[d+32>>2]=a;break c}f=J[d+192>>2];j=(f>>5)+f|0;g=j>>2;h=(a>>5)+a|0;i=h>>2;m=J[d+128>>2];l=J[d>>2];r=m+l|0;h=g+(f>>4)+(h-i)|0;n=r-h|0;s=J[d+160>>2];o=J[d+224>>2];p=e-o|0;f=s+p|0;q=(f>>9)-f|0;o=e+o|0;t=J[d+96>>2];e=o+t|0;q=(q>>2)-(q+(e>>1)|0)|0;J[d+128>>2]=n-q;J[d+96>>2]=n+q;h=h+r|0;e=(e>>9)-e|0;e=((e>>2)-e|0)+(f>>1)|0;J[d+224>>2]=h-e;J[d>>2]=e+h;e=p-s|0;f=(e>>3)-(e>>7)|0;i=i+(a>>4)+(g-j)|0;j=l-m|0;h=i+j|0;a=o-t|0;g=(a>>3)-(a>>7)|0;m=(g-(a>>11)>>1)+g+(e-f)|0;J[d+ -192>>2]=h-m;J[d+32>>2]=h+m;i=j-i|0;a=a-((f+g|0)+(f-(e>>11)>>1)|0)|0;J[d+160>>2]=i-a;J[d+64>>2]=a+i}k=k+1|0;if((k|0)!=8)continue;break}a=0;while(1){H[a+c|0]=K[((J[(a<<2)+b>>2]>>>13|0)+512&1023)+2758464|0];d=a|1;H[d+c|0]=K[((J[(d<<2)+b>>2]>>>13|0)+512&1023)+2758464|0];a=a+2|0;if((a|0)!=64)continue;break}}function gzb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;J[a+76>>2]=0;J[a+80>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[a+56>>2]=0;c=J[b+8>>2];a:{if(c&7)break a;b:{d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>> -2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;c:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+12|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break c}if((Uc(b,K[a+12|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+13|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break d}if((Uc(b,K[a+13|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>= -0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+52|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break e}if((Uc(b,K[a+52|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;f:{if((c|0)<=0){if((Uc(b,0)|0)!=-1)break f;break a}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=0}c=J[a+16>>2];if(Ei(b,c,c>>31))break a;c=J[a+20>>2]; -if(Ei(b,c,c>>31))break a;c=J[a+24>>2];if(Ei(b,c,c>>31))break a;c=J[a+28>>2];if(Ei(b,c,c>>31))break a;c=J[a+32>>2];if(Ei(b,c,c>>31))break a;c=J[a+36>>2];if(Ei(b,c,c>>31))break a;c=J[a+40>>2];if(Ei(b,c,c>>31))break a;c=J[a+44>>2];if(Ei(b,c,c>>31))break a;c=J[a+48>>2];if(Ei(b,c,c>>31))break a;if(xh(b,2,J[a+60>>2],0))break a;if(xh(b,2,J[a+72>>2],0))break a;c=0;d=P(J[a+60>>2],K[a+12|0]);if((d|0)>0)while(1){if(xh(b,1,K[J[a+68>>2]+c|0],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}c=0;d=P(J[a+72>>2], -K[a+13|0]);if((d|0)>0)while(1){if(xh(b,1,K[J[a+80>>2]+c|0],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}d=K[a+12|0];g:{if(!d){d=1;break g}c=K[a+52|0];f=d&7;h:{if(d>>>0<8){d=1;break h}g=d&248;d=1;while(1){d=P(c,P(c,P(c,P(c,P(c,P(c,P(c,P(c,d))))))));e=e+8|0;if((g|0)!=(e|0))continue;break}}if(!f)break g;e=0;while(1){d=P(c,d);e=e+1|0;if((f|0)!=(e|0))continue;break}}d=P(K[a+13|0],d);if((d|0)<=0)return 0;c=0;while(1){if(xh(b,1,K[J[a+56>>2]+c|0],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}return 0}J[b+ -8>>2]=c|4}return-1}function Cta(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=bc-16|0;bc=e;J[a>>2]=0;a:{b:{c:{d:{if(J[d>>2]){J[695492]=0;J[e+8>>2]=0;f=e+8|0;aa(4985,f|0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;g=J[J[b>>2]+32>>2];J[695492]=0;h=g;g=e+12|0;ia(h|0,g|0,b|0,d|0,f|0);d=J[695492];J[695492]=0;e:{f:{g:{h:{i:{if((d|0)!=1){J[695492]=0;aa(4993,a|0,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;d=J[e+12>>2];J[e+12>>2]=0;j:{if(!d)break j;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]= -f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break j;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}d=J[e+8>>2];J[e+8>>2]=0;k:{if(!d)break k;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break k;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}if(!c|!K[c|0])break b;d=J[a>>2];if(!d)break e;d=J[d+12>>2];J[695492]=0;f=e+12|0;ia(5468,f|0,b|0,c|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;aa(4993, -a|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;break b}c=Z()|0;break h}c=Z()|0;vc(e+12|0)}vc(e+8|0);break c}c=Z()|0;break c}c=Z()|0;vc(e+12|0);break c}J[695492]=0;d=e+12|0;ca(5467,d|0,b|0,c|0);b=J[695492];J[695492]=0;l:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0; -if((b|0)==1)break l;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}c=Z()|0;break c}c=Z()|0;vc(e+12|0);break c}if(!c|!K[c|0])break b;J[695492]=0;d=e+12|0;ca(5467,d|0,b|0,c|0);b=J[695492];J[695492]=0;m:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[695492]=0;b= -J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}c=Z()|0;break c}c=Z()|0;vc(e+12|0);break c}c=Z()|0}vc(a);ba(c|0);B()}bc=e+16|0;return}ea(0)|0;yc();B()}function K_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;w=bc-352|0;bc=w;x=J[a+332>>2];b=J[b+84>>2];a=w;while(1){i=J[b+224>>2];q=I[c+112>>1];h=J[b+96>>2];k=I[c+48>>1]; -l=J[b+160>>2];m=I[c+80>>1];f=J[b+32>>2];p=I[c+16>>1];g=P(I[c>>1],J[b>>2])<<13|1024;n=P(J[b+192>>2],I[c+96>>1]);t=P(J[b+64>>2],I[c+32>>1]);o=n+t|0;j=P(J[b+128>>2],I[c+64>>1]);u=o-j|0;J[a+160>>2]=g+P(u,-11585)>>11;h=P(h,k);f=P(f,p);r=h+f|0;p=P(r,7274);k=P(l,m);l=P(k+f|0,5492);i=P(i,q);q=P(i+(k+r|0)|0,3264);m=g+P(u,11116)|0;u=P(j-n|0,20862);g=(m+u|0)+P(n,17333)|0;r=l+(p+P(f,-7562)|0)|0;f=q+P(i+f|0,3E3)|0;r=r+f|0;J[a+320>>2]=g-r>>11;J[a>>2]=g+r>>11;g=P(n,-6461);n=m+P(o,-9467)|0;o=g+n|0;g=l+P(k,-9766)| -0;l=q+P(h+k|0,-9527)|0;g=g+l|0;J[a+256>>2]=o-g>>11;J[a+64>>2]=o+g>>11;m=m+P(j-t|0,3529)|0;o=m+P(t,-12399)|0;g=f;f=P(i+h|0,-14731);g=g+(f+P(i,17223)|0)|0;J[a+224>>2]=o-g>>11;J[a+96>>2]=o+g>>11;n=n+(P(j,15929)+P(t,-11395)|0)|0;k=q+((P(k,8203)+P(h,-12019)|0)+P(i,-13802)|0)|0;J[a+192>>2]=n-k>>11;J[a+128>>2]=k+n>>11;j=u+(m+P(j,-14924)|0)|0;h=l+(f+(p+P(h,16984)|0)|0)|0;J[a+288>>2]=j-h>>11;J[a+32>>2]=h+j>>11;a=a+4|0;b=b+4|0;c=c+2|0;s=s+1|0;if((s|0)!=8)continue;break}a=x+128|0;b=w;n=0;while(1){j=J[b+12>> -2];i=J[b+4>>2];c=j+i|0;p=P(c,7274);h=J[b+20>>2];l=P(h+i|0,5492);k=J[b+28>>2];t=P(k+(c+h|0)|0,3264);c=J[(n<<2)+d>>2]+e|0;x=t+P(i+k|0,3E3)|0;o=x+((p+P(i,-7562)|0)+l|0)|0;r=(J[b>>2]<<13)+131072|0;f=J[b+24>>2];q=J[b+8>>2];u=f+q|0;i=J[b+16>>2];g=u-i|0;m=r+P(g,11116)|0;s=P(i-f|0,20862);v=(m+s|0)+P(f,17333)|0;H[c|0]=K[a+(o+v>>>18&1023)|0];H[c+10|0]=K[a+(v-o>>>18&1023)|0];o=m+P(i-q|0,3529)|0;s=(o+P(i,-14924)|0)+s|0;v=t+P(h+j|0,-9527)|0;y=p+P(j,16984)|0;p=P(k+j|0,-14731);y=v+(y+p|0)|0;H[c+1|0]=K[a+(s+y>>> -18&1023)|0];H[c+9|0]=K[a+(s-y>>>18&1023)|0];l=v+(P(h,-9766)+l|0)|0;s=P(f,-6461);f=m+P(u,-9467)|0;m=s+f|0;H[c+2|0]=K[a+(l+m>>>18&1023)|0];H[c+8|0]=K[a+(m-l>>>18&1023)|0];p=x+(p+P(k,17223)|0)|0;l=o+P(q,-12399)|0;H[c+3|0]=K[a+(p+l>>>18&1023)|0];H[c+7|0]=K[a+(l-p>>>18&1023)|0];j=t+((P(h,8203)+P(j,-12019)|0)+P(k,-13802)|0)|0;h=f+(P(i,15929)+P(q,-11395)|0)|0;H[c+4|0]=K[a+(j+h>>>18&1023)|0];H[c+6|0]=K[a+(h-j>>>18&1023)|0];H[c+5|0]=K[a+(r+P(g,268423871)>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=11)continue; -break}bc=w+352|0}function Dpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;c:{if(c>>>0>=41){c=c-11|0;g=(c>>>0)/30|0;if((P(g,30)|0)==(c|0))break c}Dc(a,1028,0,0);return 1028}c=K[d+7|0]|K[d+8|0]<<8|(K[d+9|0]<<16|K[d+10|0]<<24);h=K[d+3|0]|K[d+4|0]<<8|(K[d+5|0]<<16|K[d+6|0]<<24);f=K[d|0]|K[d+1|0]<<8;l=K[d+2|0];j=P(g,36);i=gc[J[a+152>>2]](j)|0;if(!i)break a;m=c<<24|(c&65280)<<8|(c>>> -8&65280|c>>>24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);n=f<<8|f>>>8;c=d+11|0;d=i;while(1){f=K[c|0]|K[c+1|0]<<8;I[d>>1]=f<<8|f>>>8;H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];f=K[c+5|0]|K[c+6|0]<<8|(K[c+7|0]<<16|K[c+8|0]<<24);J[d+8>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[c+9|0]|K[c+10|0]<<8|(K[c+11|0]<<16|K[c+12|0]<<24);J[d+12>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[d+16|0]=K[c+13|0];f=K[c+14|0]|K[c+15|0]<<8|(K[c+16|0]<<16|K[c+17|0]<<24);J[d+20>>2]=f<<24|(f&65280)<<8|(f>>> -8&65280|f>>>24);f=K[c+18|0]|K[c+19|0]<<8|(K[c+20|0]<<16|K[c+21|0]<<24);J[d+24>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[c+22|0]|K[c+23|0]<<8|(K[c+24|0]<<16|K[c+25|0]<<24);J[d+28>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[c+26|0]|K[c+27|0]<<8|(K[c+28|0]<<16|K[c+29|0]<<24);J[d+32>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);c=c+30|0;d=d+36|0;k=k+1|0;if((k|0)!=(g|0))continue;break}d=n&65535;d:{e:{f:{if(!K[a+114|0])break f;c=gc[J[a+152>>2]](48)|0;if(!c)break e;J[c+4>>2]=1078;J[c>>2]=1079;f= -J[a+700>>2];g:{if(f){J[f+8>>2]=c;break g}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;J[c+40>>2]=g;J[c+36>>2]=m;J[c+32>>2]=h;H[c+30|0]=l;I[c+28>>1]=d;if(!g)break f;k=c;f=P(g,36);c=gc[J[a+152>>2]](f)|0;J[k+44>>2]=c;if(!c)break e;tc(c,i,f)}c=V7(a,d,l,h,m,g,i);break d}Dc(a,1,0,0);c=1}if(c){gc[J[a+156>>2]](i,j);return c|0}if(K[a+112|0]){b=gc[J[b+4>>2]](a,b,e)|0;if(b){gc[J[a+ -156>>2]](i,j);return b|0}b=J[e>>2];J[b+44>>2]=g;J[b+40>>2]=m;J[b+36>>2]=h;H[b+34|0]=l;I[b+32>>1]=n;b=gc[J[a+152>>2]](j)|0;J[J[e>>2]+48>>2]=b;b=J[J[e>>2]+48>>2];if(!b)break a;tc(b,i,j)}gc[J[a+156>>2]](i,j);return 0}Dc(a,1029,0,0);return 1029}Dc(a,1,0,0);return 1}function Tv(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;p=bc-1152|0;bc=p;l=1;i=J[b+8>>2];q=gc[J[J[i>>2]+28>>2]](i)|0;a:{if((q|0)<=0)break a;o=g+128|0;l=0;i=0;while(1){m=i<<2;n=J[m+g>>2]-J[m+o>>2]|0;m=n>>31;if((m^n)- -m>>>0>256)break a;i=i+1|0;if((q|0)!=(i|0))continue;break}m=g+256|0;i=0;while(1){n=i<<2;s=J[n+o>>2]-J[m+n>>2]|0;n=s>>31;if((n^s)-n>>>0>256)break a;i=i+1|0;if((q|0)!=(i|0))continue;break}o=g+384|0;i=0;while(1){n=i<<2;s=J[n+m>>2]-J[n+o>>2]|0;n=s>>31;if((n^s)-n>>>0>256)break a;i=i+1|0;if((q|0)!=(i|0))continue;break}i=0;while(1){l=i<<2;m=J[l+o>>2]-J[g+l>>2]|0;l=m>>31;m=(l^m)-l|0;l=m>>>0<257;if(m>>>0>256)break a;i=i+1|0;if((q|0)!=(i|0))continue;break}}j=(d+f)*.5;k=(c+e)*.5;b:{if(!(!((h|0)>0&l)&(h|0)!=6)){$l(b, -k,j,p);tc(J[a+28>>2]+124|0,p,128);g=J[a+8>>2];gc[J[J[g>>2]+116>>2]](g,J[a+28>>2]);j=O[b+248>>3];k=O[b+232>>3];r=O[b+216>>3];g=J[a+28>>2];t=O[b+256>>3]+(c*O[b+224>>3]+O[b+240>>3]*d);O[g+608>>3]=t;j=j+(c*r+k*d);O[g+600>>3]=j;g=J[g+596>>2];O[g+16>>3]=t;O[g+8>>3]=j;J[g>>2]=1;j=O[b+248>>3];k=O[b+232>>3];r=O[b+216>>3];g=J[a+28>>2];t=O[b+256>>3]+(e*O[b+224>>3]+O[b+240>>3]*d);O[g+608>>3]=t;d=j+(e*r+k*d);O[g+600>>3]=d;ie(J[g+596>>2],d,t);d=O[b+248>>3];j=O[b+232>>3];k=O[b+216>>3];g=J[a+28>>2];r=O[b+256>>3]+ -(e*O[b+224>>3]+O[b+240>>3]*f);O[g+608>>3]=r;d=d+(e*k+j*f);O[g+600>>3]=d;ie(J[g+596>>2],d,r);d=O[b+248>>3];e=O[b+232>>3];j=O[b+216>>3];g=J[a+28>>2];k=O[b+256>>3]+(c*O[b+224>>3]+O[b+240>>3]*f);O[g+608>>3]=k;c=d+(c*j+e*f);O[g+600>>3]=c;ie(J[g+596>>2],c,k);b=J[a+28>>2];_f(J[b+596>>2]);g=J[b+596>>2];g=J[(J[g+24>>2]+(J[g+28>>2]<<2)|0)-4>>2];h=J[g+12>>2]<<3;O[b+600>>3]=O[(h+J[g>>2]|0)-8>>3];O[b+608>>3]=O[(h+J[g+4>>2]|0)-8>>3];b=J[a+8>>2];gc[J[J[b>>2]+204>>2]](b,J[a+28>>2]);Rf(J[a+28>>2]);break b}$l(b,c, -j,p+1024|0);$l(b,e,j,p+896|0);$l(b,k,d,p+768|0);$l(b,k,f,p+640|0);$l(b,k,j,p+512|0);i=tc(p,g,128);l=i+1024|0;o=tc(i+128|0,l,128);m=tc(i+256|0,i+768|0,128);n=tc(i+384|0,i+512|0,128);q=h+1|0;Tv(a,b,c,d,k,j,i,q);h=tc(i,l,128);i=tc(o,g+128|0,128);l=tc(m,h+512|0,128);o=tc(n,h+640|0,128);Tv(a,b,c,j,k,f,h,q);h=tc(h,h+768|0,128);i=tc(i,h+512|0,128);l=tc(l,g+256|0,128);o=tc(o,h+896|0,128);Tv(a,b,k,d,e,j,h,q);h=tc(h,h+512|0,128);tc(i,h+640|0,128);tc(l,h+896|0,128);tc(o,g+384|0,128);Tv(a,b,k,j,e,f,h,q)}bc=p+ -1152|0}function Q5(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;if((d|0)<=0)return-5;J[e>>2]=0;p=65535;g=J[a+1020>>2];if((g|0)>=16383){f=gc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=f;if((f|0)<=16382)H[f+J[a+1028>>2]|0]=255;J[a+1020>>2]=0;g=0}a:{if(J[a+1024>>2]<=(g|0))break a;J[a+1020>>2]=g+1;p=65516;f=K[J[a+1028>>2]+g|0];if(f-10>>>0<4294967288)break a;p=0;J[a+1044>>2]=0;q=f+1|0;I[a+1032>>1]=q;f=1<>1]=f;r=1<>1]=r;i=f+2|0;I[a+1042>>1]=i;I[a+1038>>1]=i;I[a+1036>>1]=f+1;wc(J[a+1060>>2],0,4096);wc(J[a+1068>>2],0,4096);wc(J[a+1064>>2],0,4096);l=rc(d+1|0);g=J[a+1060>>2];m=TL(a,b);b:{if((m&65535)==L[a+1036>>1])break b;k=d;f=0;i=l;while(1){n=m<<16>>16;if((n|0)<0)break b;c:{d:{e:{if(L[a+1034>>1]==(m&65535)){I[a+1032>>1]=q;I[a+1040>>1]=r;I[a+1042>>1]=L[a+1038>>1];while(1){f=TL(a,b);h=f&65535;if((h|0)==L[a+1034>>1])continue;break}if((h|0)==L[a+1036>>1])break c;h=(f|0)>1]?f:0;H[i|0]=h;k=k-1|0; -if(k&65535){i=i+1|0;f=h;break d}if(!c){i=l;f=h;k=d;break d}i=l;f=h;k=d;if(!(SL(a,c,l,d)&32768))break d;break e}o=J[a+1060>>2];j=m;s=I[a+1042>>1];f:{if((s|0)>(n|0))break f;if(o+4094>>>0<=g>>>0)break f;if((n|0)>(s|0))J[e>>2]=J[e>>2]+1;H[g|0]=h;g=g+1|0;o=J[a+1060>>2];j=f}g:{if(o+4094>>>0<=g>>>0|I[a+1038>>1]>j<<16>>16)break g;while(1){j=j<<16>>16;H[g|0]=K[j+J[a+1064>>2]|0];g=g+1|0;j=I[J[a+1068>>2]+(j<<1)>>1];if((j|0)>1])break g;if(J[a+1060>>2]+4094>>>0>g>>>0)continue;break}}H[g|0]=j;o=I[a+1042>> -1];n=I[a+1040>>1];h:{if((o|0)>=(n|0)){j=h;m=f;break h}H[J[a+1064>>2]+o|0]=j;h=I[a+1042>>1];I[a+1042>>1]=h+1;I[J[a+1068>>2]+(h<<1)>>1]=f;n=L[a+1040>>1];o=L[a+1042>>1]}g=g+1|0;i:{if(o<<16>>16>16)break i;f=I[a+1032>>1];if((f|0)>11)break i;I[a+1032>>1]=f+1;I[a+1040>>1]=n<<1}j:{if(M[a+1060>>2]>=g>>>0)break j;if(!c)while(1){g=g-1|0;H[i|0]=K[g|0];h=k-1|0;f=h&65535;k=f?h:d;i=f?i+1|0:l;if(M[a+1060>>2]>>0)continue;break j}while(1){g=g-1|0;H[i|0]=K[g|0];k=k-1|0;k:{if(k&65535){i=i+1|0;break k}i=l;k= -d;if(SL(a,c,l,d)&32768)break e}if(M[a+1060>>2]>>0)continue;break}}h=j;f=m;break d}p=65535;break b}m=TL(a,b);if((m&65535)!=L[a+1036>>1])continue}break}if(!c|(k&65535)==(d&65535))break b;p=SL(a,c,l,d-(k<<16>>16)|0)}qc(l)}return p<<16>>16}function Woa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;h=bc-16|0;bc=h;a:{b:{c:{d:{if((e|0)<=0)break d;g=b+e|0;e:{f:{while(1){g:{g=g-1|0;i=(g<<3)+a|0;h:{if((g-c|0)>=(e|0)){J[i>>2]=0;J[i+4>>2]=J[682146];f=J[(g-e<<3)+a>>2];i:{j:{if(f){j=J[J[f>> -2]+28>>2];J[695492]=0;ca(j|0,h+12|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break j;b=Z()|0;break i}J[h+12>>2]=0}J[695492]=0;aa(4993,i|0,h+12|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){f=J[h+12>>2];J[h+12>>2]=0;if(!f)break h;J[695492]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;k=J[695492];J[695492]=0;if((k|0)!=1){if(j)break h;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)!=1)break h}break c}b=Z()|0;vc(h+12|0)}break b}J[i>>2]=0;J[i+4>>2]=J[682146];f=J[d>>2];k:{if(f){j=J[J[f>>2]+28>>2];J[695492]=0;ca(j| -0,h+12|0,f|0,1);f=J[695492];J[695492]=0;if((f|0)!=1)break k;b=Z()|0;break e}J[h+12>>2]=0}J[695492]=0;aa(4993,i|0,h+12|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;f=J[h+12>>2];J[h+12>>2]=0;if(!f)break h;J[695492]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;k=J[695492];J[695492]=0;if((k|0)==1)break g;if(j)break h;J[695492]=0;_(4987,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break g}f=i;i=J[i>>2];J[f+4>>2]=J[(i?i+12|0:2728584)>>2];if((b|0)<(g|0))continue;break d}break}break c}b=Z()|0;vc(h+12|0)}break b}if((b|0)> -(c|0))while(1){l:{b=b-1|0;if((b-c|0)>=(e|0)){i=(b<<3)+a|0;g=J[(b-e<<3)+a>>2];m:{if(g){gc[J[J[g>>2]+28>>2]](h+12|0,g,1);break m}J[h+12>>2]=0}J[695492]=0;aa(4993,i|0,h+12|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){g=J[h+12>>2];J[h+12>>2]=0;if(!g)break l;J[695492]=0;f=J[g+4>>2]-1|0;J[g+4>>2]=f;j=J[695492];J[695492]=0;if((j|0)!=1){if(f)break l;J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)!=1)break l}break c}break a}i=(b<<3)+a|0;g=J[d>>2];n:{if(g){gc[J[J[g>>2]+28>>2]](h+12|0,g,1);break n}J[h+ -12>>2]=0}J[695492]=0;aa(4993,i|0,h+12|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){g=J[h+12>>2];J[h+12>>2]=0;if(!g)break l;J[695492]=0;f=J[g+4>>2]-1|0;J[g+4>>2]=f;j=J[695492];J[695492]=0;if((j|0)!=1){if(f)break l;J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)!=1)break l}break c}break a}i=J[i>>2];J[((b<<3)+a|0)+4>>2]=J[(i?i+12|0:2728584)>>2];if((b|0)>(c|0))continue;break}bc=h+16|0;return}ea(0)|0;yc();B()}sc(i);ba(b|0);B()}a=Z()|0;vc(h+12|0);ba(a|0);B()}function USa(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;d=J[a+420>>2];c=J[a+24>>2];J[d+112>>2]=J[c>>2];J[d+116>>2]=J[c+4>>2];if(!(J[d+36>>2]|!J[a+236>>2]))YA(d,J[d+40>>2]);a:{i=J[a+360>>2];l=J[a+364>>2];if((i|0)>(l|0))break a;p=J[b>>2];q=J[a+380>>2];m=J[a+372>>2];b=0;while(1){b:{c:{d:{c=I[(J[(i<<2)+q>>2]<<1)+p>>1];if(!c)break d;k=0-c>>>m|0;n=c>>>m|0;o=(c|0)<0;j=o?k:n;if(!j)break d;if(J[d+128>>2])Sq(d);if((b|0)<16)break c;e:{if(!J[d+108>>2]){f=0;break e}c=J[((J[d+124>>2]<<2)+d|0)+92>>2];e=c;f=J[c+ -960>>2];c=(b-((b|0)>=31?31:b)|0)+15|0;J[e+960>>2]=(f+(c>>>4|0)|0)+1;b=(b-(c&-16)|0)-16|0;break c}while(1){c=J[d+124>>2];f:{if(f){c=J[((c<<2)+d|0)+92>>2];J[c+960>>2]=J[c+960>>2]+1;break f}c=J[((c<<2)+d|0)+60>>2];f=J[c+960>>2];e=J[d+16>>2];c=H[c+1264|0];if(!c){g=J[d+120>>2];h=J[g>>2];J[h+20>>2]=41;gc[J[h>>2]](g);if(J[d+108>>2])break f}f=f&(-1<>2]|f<<24-c;if((c|0)>=8)while(1){e=J[d+112>>2];J[d+112>>2]=e+1;H[e|0]=f>>>16;e=J[d+116>>2]-1|0;J[d+116>>2]=e;if(!e){g=J[d+120>>2];e=J[g+ -24>>2];if(!(gc[J[e+12>>2]](g)|0)){g=J[d+120>>2];h=J[g>>2];J[h+20>>2]=25;gc[J[h>>2]](g)}J[d+112>>2]=J[e>>2];J[d+116>>2]=J[e+4>>2]}e=c;g:{if((f&16711680)!=16711680)break g;c=J[d+112>>2];J[d+112>>2]=c+1;H[c|0]=0;c=J[d+116>>2]-1|0;J[d+116>>2]=c;if(c)break g;g=J[d+120>>2];c=J[g+24>>2];if(!(gc[J[c+12>>2]](g)|0)){g=J[d+120>>2];h=J[g>>2];J[h+20>>2]=25;gc[J[h>>2]](g)}J[d+112>>2]=J[c>>2];J[d+116>>2]=J[c+4>>2]}c=e-8|0;f=f<<8;if((e|0)>15)continue;break}J[d+16>>2]=c;J[d+12>>2]=f}c=b-16|0;if((b|0)>31){f=J[d+108>> -2];b=c;continue}break}b=c;break c}if((i|0)!=(l|0)){b=b+1|0;break b}if((b|0)<0)break a;b=J[d+128>>2]+1|0;J[d+128>>2]=b;if((b|0)!=32767)break a;Sq(d);break a}e=k^-1;f=1;h:{if(j>>>0<2)break h;while(1){c=f;f=c+1|0;k=j>>>0>3;j=j>>>1|0;if(k)continue;break}if(c>>>0<10)break h;c=J[a>>2];J[c+20>>2]=6;gc[J[c>>2]](a)}e=o?e:n;b=(b<<4)+f|0;c=J[d+124>>2];i:{if(J[d+108>>2]){b=J[((c<<2)+d|0)+92>>2]+(b<<2)|0;J[b>>2]=J[b>>2]+1;break i}c=J[((c<<2)+d|0)+60>>2];Qq(d,J[c+(b<<2)>>2],H[(b+c|0)+1024|0])}Qq(d,e,f);b=0;if((i| -0)==(l|0))break a}i=i+1|0;continue}}b=J[a+24>>2];J[b>>2]=J[d+112>>2];J[b+4>>2]=J[d+116>>2];a=J[a+236>>2];if(a){b=J[d+36>>2];if(b)a=b;else J[d+40>>2]=J[d+40>>2]+1&7;J[d+36>>2]=a-1}return 1}function nta(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=bc-16|0;bc=f;g=J[b>>2];g=J[(g?g+12|0:2728584)>>2];J[f+12>>2]=0;a:{b:{c:{d:{if(!g|!K[g|0])break d;J[695492]=0;g=aa(5471,0,0)|0;e=J[695492];J[695492]=0;e:{f:{g:{h:{i:{j:{k:{l:{if((e|0)==1)break l;J[695492]=0;g=aa(4989,f+4|0,g|0)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break l;e=J[b>>2];h=J[J[e>>2]+24>>2];J[695492]=0;ca(h|0,f|0,e|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break k;J[695492]=0;aa(4993,f+12|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[f>>2];J[f>>2]=0;m:{n:{if(!e)break n;J[695492]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break m;if(h)break n;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break m}if(c)break g;if(J[f+12>>2])break f;J[695492]=0;c=aa(5471,0,2376268)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break h;e=J[g>>2];o:{p:{q:{if(e){e=J[e+12>>2];if(!(!e|!K[e|0])){if(!c|!K[c|0])break o;c=Ec(e,c);break p}if(c)break q;break f}if(!c)break d}c=K[c|0]?-1:0}if(!c)break f}b=J[b>>2];c=J[J[b>>2]+24>>2];J[695492]=0;ca(c|0,f|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;aa(4993,f+12|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;b=J[f>>2];J[f>>2]=0;if(!b)break g;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break m;if(c)break g; -J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}break a}b=Z()|0;break b}b=Z()|0;sc(g);break b}b=Z()|0;vc(f);sc(g);break b}b=Z()|0;vc(f);sc(g);break b}b=Z()|0;sc(g);break b}b=J[g>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;aa(5471,0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c}b=J[g>>2];J[g>>2]=0;if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break a}b= -Z()|0;sc(g);break b}J[695492]=0;aa(5473,a|0,f+12|0)|0;a=J[695492];J[695492]=0;r:{if((a|0)!=1){a=J[f+12>>2];J[f+12>>2]=0;s:{if(!a)break s;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break r;if(b)break s;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break r}bc=f+16|0;return}b=Z()|0;break b}break a}b=Z()|0;sc(g)}vc(f+12|0);ba(b|0);B()}ea(0)|0;yc();B()}function Eta(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=bc-16|0;bc=e;J[a>>2]=0;a:{b:{c:{d:{if(J[c>> -2]){J[695492]=0;J[e+8>>2]=0;g=e+8|0;aa(4985,g|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;f=J[J[b>>2]+32>>2];J[695492]=0;h=f;f=e+12|0;ia(h|0,f|0,b|0,c|0,g|0);c=J[695492];J[695492]=0;e:{f:{g:{h:{i:{if((c|0)!=1){J[695492]=0;aa(4993,a|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;c=J[e+12>>2];J[e+12>>2]=0;j:{if(!c)break j;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(g)break j;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c= -J[e+8>>2];J[e+8>>2]=0;k:{if(!c)break k;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(g)break k;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}if(!d|!K[d|0])break b;c=J[a>>2];if(!c)break e;J[695492]=0;b=e+12|0;ca(5466,b|0,c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;aa(4993,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492]; -J[695492]=0;if((c|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;break b}d=Z()|0;break h}d=Z()|0;vc(e+12|0)}vc(e+8|0);break c}d=Z()|0;break c}d=Z()|0;vc(e+12|0);break c}J[695492]=0;c=e+12|0;ca(5467,c|0,b|0,d|0);b=J[695492];J[695492]=0;l:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break b; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}d=Z()|0;break c}d=Z()|0;vc(e+12|0);break c}if(!d|!K[d|0])break b;J[695492]=0;c=e+12|0;ca(5467,c|0,b|0,d|0);b=J[695492];J[695492]=0;m:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}d= -Z()|0;break c}d=Z()|0;vc(e+12|0);break c}d=Z()|0}vc(a);ba(d|0);B()}bc=e+16|0;return}ea(0)|0;yc();B()}function glb(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=bc-48|0;bc=f;a:{b:{c:{if(!Ec(b,252068)){e=6;if(d)break a;d=J[c>>2];b=0;c=245200;while(1){if(!((d|0)!=J[c+8>>2]|J[c+16>>2]!=10)){c=b;break c}c=b+1|0;g=J[(c<<2)+247296>>2];if((d|0)==J[g+8>>2]&J[g+16>>2]==10)break c;c=b+2|0;g=J[(c<<2)+247296>>2];if((d|0)==J[g+8>>2]&J[g+16>>2]==10)break c;b=b+3|0;c=J[(b<<2)+247296>> -2];if((b|0)!=87)continue;break}break a}if(!Ec(b,252084)){e=6;if(d)break a;J[a+16>>2]=J[c>>2];break b}if(!Ec(b,252099)){e=6;if(d)break a;b=J[c>>2];if(!b){e=35;break a}d=J[b+116>>2];J[f+16>>2]=d;if(!d){e=iD(b,f+16|0,a);if(e)break a;d=J[f+16>>2];J[b+116>>2]=d;J[b+120>>2]=1642}J[d+12>>2]=J[c+4>>2];break b}if(!Ec(b,252117)){if(d){e=6;d:switch(vg(c,0,10)|0){case 0:e=0;H[a+20|0]=0;break a;case 1:break d;default:break a}H[a+20|0]=1;break b}H[a+20|0]=K[c|0];break b}e:{if(!Ec(b,252125)){f:{if(!d){b=J[c>>2]; -break f}d=f+12|0;b=vg(c,d,10);e=J[f+12>>2];if(K[e|0]!=44|(c|0)==(e|0))break e;e=e+1|0;l=f,m=vg(e,d,10),J[l+20>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=vg(e,d,10),J[l+24>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=vg(e,d,10),J[l+28>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=vg(e,f+12|0,10),J[l+32>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=vg(e,f+12|0,10),J[l+36>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)== -(e|0))break e;e=c+1|0;l=f,m=vg(e,f+12|0,10),J[l+40>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;c=c+1|0;l=f,m=vg(c,d,10),J[l+44>>2]=m;d=J[f+12>>2];if((K[d|0]|32)!=32|(c|0)==(d|0))break e;c=f+16|0}e=6;if((b|0)<0)break a;d=J[c+8>>2];if((d|0)<0)break a;g=J[c+16>>2];if((g|0)<0)break a;h=J[c+24>>2];if((h|0)<0)break a;i=J[c+4>>2];if((i|0)<0)break a;j=J[c+12>>2];if((j|0)<0)break a;k=J[c+20>>2];if((k|0)<0)break a;c=J[c+28>>2];if((c|0)<0|(b|0)>(d|0)|((d|0)>(g|0)|g>>>0>h>>>0))break a;if(i>>>0>500| -j>>>0>500|(k>>>0>500|c>>>0>500))break a;J[a+24>>2]=b;J[a+52>>2]=c;J[a+48>>2]=h;J[a+44>>2]=k;J[a+40>>2]=g;J[a+36>>2]=j;J[a+32>>2]=d;J[a+28>>2]=i;break b}e=12;if(Ec(b,252146))break a;if(d){e=0;if(!vg(c,0,10)){H[a+21|0]=0;break a}H[a+21|0]=1;break a}H[a+21|0]=K[c|0];break b}e=6;break a}J[a+12>>2]=c}e=0}bc=f+48|0;return e|0}function TXa(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=bc-48|0;bc=f;H[f+47|0]=0;g=1E3;e=zc(1E3);H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0;j=J[b>> -2];i=J[b+4>>2];h=K[b+11|0];J[695492]=0;k=f+32|0;l=b;b=h<<24>>24<0;ia(1626,k|0,(b?j:l)|0,(b?i:h)|0,0);b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((b|0)!=1){h=K[f+43|0];j=h<<24>>24<0;k=j?J[f+32>>2]:k;h=j?J[f+36>>2]:h;j=h+8|0;b=e+4|0;g:{if(j>>>0<1001)break g;while(1){g=g<<1;if(j>>>0>g>>>0)continue;break}b=Vd(e,g);if(b){e=b;b=b+4|0;break g}b=zc(g);i=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[b|0]=i;H[b+1|0]=i>>>8;H[b+2|0]=i>>>16;H[b+3|0]=i>>>24;qc(e);e=b;b=b+4|0}H[e+4|0]=h;H[e+5|0]=h>>>8;H[e+6| -0]=h>>>16;H[e+7|0]=h>>>24;i=h+12|0;b=tc(b+4|0,k,h)+h|0;h:{if(i>>>0<=g>>>0)break h;while(1){g=g<<1;if(i>>>0>g>>>0)continue;break}b=Vd(e,g);if(b){e=b;b=b+j|0;break h}b=tc(zc(g),e,j);qc(e);e=b;b=j+b|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=h+16|0;b=b+4|0;i:{if(c>>>0<=g>>>0)break i;while(1){g=g<<1;if(c>>>0>g>>>0)continue;break}b=Vd(e,g);if(b){e=b;b=b+i|0;break i}b=tc(zc(g),e,i);qc(e);e=b;b=i+b|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;H[e|0]=c;H[e+1|0]=c>>>8;H[e+2|0]= -c>>>16;H[e+3|0]=c>>>24;J[695492]=0;c=aa(3188,e|0,f+47|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;j:{if(!K[f+47|0])break j;b=Qc(c);if(b>>>0>=2147483632){J[695492]=0;_(1623,f+20|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;B()}k:{if(b>>>0<=10){H[f+31|0]=b;d=f+20|0;break k}J[695492]=0;g=(b|15)+1|0;d=$(4,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;J[f+20>>2]=d;J[f+24>>2]=b;J[f+28>>2]=g|-2147483648}m=Zc(d,c,b)+b|0,n=0,H[m|0]=n;J[695492]=0;b=H[f+31|0];d= -(b|0)<0;ca(1618,f+8|0,(d?J[f+20>>2]:f+20|0)|0,(d?J[f+24>>2]:b&255)|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=H[f+31|0];d=J[f+12>>2];J[a>>2]=J[f+8>>2];J[a+4>>2]=d;J[a+8>>2]=J[f+16>>2];if((b|0)>=0)break j;qc(J[f+20>>2])}J[695492]=0;$(3189,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(H[f+43|0]<0)qc(J[f+32>>2]);qc(e);bc=f+48|0;return}g=Z()|0;break a}g=Z()|0;break b}g=Z()|0;break b}g=Z()|0;if(H[f+31|0]>=0)break b;qc(J[f+20>>2]);break b}g=Z()|0;if(H[a+11|0]>=0)break b;qc(J[a>>2])}if(H[f+ -43|0]>=0)break a;qc(J[f+32>>2])}qc(e);ba(g|0);B()}function bZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0;b=J[b+84>>2];f=P(J[b+160>>2],I[c+80>>1]);h=P(J[b+32>>2],I[c+16>>1]);g=P(f+h|0,2998);l=J[d>>2]+e|0;a=J[a+332>>2]+128|0;m=P(J[b+96>>2],L[c+48>>1]);x=g+(m+h<<13)|0;y=P(P(I[c+32>>1],J[b+64>>2]),10033);r=P(I[c>>1],J[b>>2])<<13|1024;s=P(J[b+128>>2],I[c+64>>1]);z=r+P(s, -5793)|0;A=y+z|0;B=(x+A<<2&-8192)+131072|0;i=P(J[b+168>>2],I[c+84>>1]);n=P(J[b+40>>2],I[c+20>>1]);t=P(i+n|0,2998);j=P(J[b+104>>2],I[c+52>>1]);C=t+(j+n<<13)|0;u=P(P(I[c+36>>1],J[b+72>>2]),10033);v=P(I[c+4>>1],J[b+8>>2])<<13|1024;k=P(J[b+136>>2],I[c+68>>1]);D=v+P(k,5793)|0;E=u+D|0;w=C+E>>11;F=B+P(w,5793)|0;o=P(J[b+164>>2],I[c+82>>1]);p=P(J[b+36>>2],I[c+18>>1]);G=P(o+p|0,2998);q=P(J[b+100>>2],I[c+50>>1]);M=G+(q+p<<13)|0;N=P(P(I[c+34>>1],J[b+68>>2]),10033);O=P(I[c+2>>1],J[b+4>>2])<<13|1024;c=P(J[b+132>> -2],I[c+66>>1]);Q=O+P(c,5793)|0;R=N+Q|0;b=P(M+R>>11,10033);H[l|0]=K[a+(F+b>>>18&1023)|0];H[l+2|0]=K[a+(F-b>>>18&1023)|0];H[l+1|0]=K[a+(B+P(w,268423870)>>>18&1023)|0];b=J[d+4>>2]+e|0;l=n-(i+j|0)<<2;n=v+P(k,-11586)>>11;k=l+n|0;h=h-(f+m|0)<<2;v=r+P(s,-11586)>>11;w=(h+v<<13)+131072|0;s=P(k,5793)+w|0;p=p-(o+q|0)<<2;c=P(c,-11586)+O>>11;r=P(p+c|0,10033);H[b|0]=K[a+(s+r>>>18&1023)|0];H[b+2|0]=K[a+(s-r>>>18&1023)|0];H[b+1|0]=K[a+(w+P(k,268423870)>>>18&1023)|0];b=J[d+8>>2]+e|0;f=g+(f-m<<13)|0;g=z-y|0;m=(f+g<< -2&-8192)+131072|0;i=(i-j<<13)+t|0;j=D-u|0;t=i+j>>11;u=m+P(t,5793)|0;o=(o-q<<13)+G|0;q=Q-N|0;k=P(o+q>>11,10033);H[b|0]=K[a+(u+k>>>18&1023)|0];H[b+2|0]=K[a+(u-k>>>18&1023)|0];H[b+1|0]=K[a+(m+P(t,268423870)>>>18&1023)|0];b=J[d+12>>2]+e|0;f=(g-f<<2&-8192)+131072|0;i=j-i>>11;g=f+P(i,5793)|0;j=P(q-o>>11,10033);H[b|0]=K[a+(g+j>>>18&1023)|0];H[b+2|0]=K[a+(g-j>>>18&1023)|0];H[b+1|0]=K[a+(f+P(i,268423870)>>>18&1023)|0];b=J[d+16>>2]+e|0;h=(v-h<<13)+131072|0;f=n-l|0;g=h+P(f,5793)|0;c=P(c-p|0,10033);H[b|0]=K[a+ -(g+c>>>18&1023)|0];H[b+2|0]=K[a+(g-c>>>18&1023)|0];H[b+1|0]=K[a+(h+P(f,268423870)>>>18&1023)|0];b=J[d+20>>2]+e|0;d=(A-x<<2&-8192)+131072|0;c=E-C>>11;e=d+P(c,5793)|0;f=P(R-M>>11,10033);H[b|0]=K[a+(e+f>>>18&1023)|0];H[b+2|0]=K[a+(e-f>>>18&1023)|0];H[b+1|0]=K[a+(d+P(c,268423870)>>>18&1023)|0]}function SB(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;j=J[a+44>>2];m=j-262|0;d=J[a+116>>2];while(1){h=J[a+108>>2];i=J[a+60>>2]-(h+d|0)|0;if(J[a+44>>2]+m>>>0<=h>>>0){b=J[a+56>>2];tc(b,b+j|0, -j-i|0);J[a+112>>2]=J[a+112>>2]-j;h=J[a+108>>2]-j|0;J[a+108>>2]=h;J[a+92>>2]=J[a+92>>2]-j;b=J[a+76>>2];g=b-1|0;e=J[a+68>>2]+(b<<1)|0;c=J[a+44>>2];d=0;k=b&3;if(k)while(1){e=e-2|0;l=L[e>>1];f=l-c|0;I[e>>1]=f>>>0<=l>>>0?f:0;b=b-1|0;d=d+1|0;if((k|0)!=(d|0))continue;break}if(g>>>0>=3)while(1){f=e-2|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-4|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-6|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;e=e-8|0;f=L[e>>1];d=f-c|0;I[e>>1]=d>>>0<=f>>>0?d:0;b=b-4|0;if(b)continue; -break}e=J[a+64>>2]+(c<<1)|0;d=0;b=c;g=c&3;if(g)while(1){e=e-2|0;k=L[e>>1];f=k-c|0;I[e>>1]=f>>>0<=k>>>0?f:0;b=b-1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(c-1>>>0>=3)while(1){f=e-2|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-4|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-6|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;e=e-8|0;f=L[e>>1];d=f-c|0;I[e>>1]=d>>>0<=f>>>0?d:0;b=b-4|0;if(b)continue;break}i=i+j|0}c=J[a>>2];d=J[c+4>>2];a:{if(!d)break a;e=d>>>0>>0?d:i;b=J[a+116>>2];if(i){i=J[a+56>> -2];J[c+4>>2]=d-e;b=tc(b+(i+h|0)|0,J[c>>2],e);b:{c:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:n=c,o=ho(J[c+48>>2],b,e),J[n+48>>2]=o;break b;case 1:break c;default:break b}n=c,o=$f(J[c+48>>2],b,e),J[n+48>>2]=o}J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];b=J[a+116>>2]}d=b+e|0;J[a+116>>2]=d;e=J[a+5812>>2];d:{if(e+d>>>0<3)break d;c=J[a+108>>2]-e|0;i=J[a+56>>2];b=c+i|0;h=K[b|0];J[a+72>>2]=h;f=J[a+84>>2];g=h;h=J[a+88>>2];b=f&(K[b+1|0]^g<>2]=b;i=i+2|0;while(1){if(!e)break d;b=f&(K[c+i|0]^b<> -2]=b;g=J[a+68>>2]+(b<<1)|0;I[J[a+64>>2]+((J[a+52>>2]&c)<<1)>>1]=L[g>>1];I[g>>1]=c;e=e-1|0;J[a+5812>>2]=e;c=c+1|0;if(d+e>>>0>2)continue;break}}if(d>>>0>261)break a;if(J[J[a>>2]+4>>2])continue}break}e=J[a+60>>2];b=J[a+5824>>2];e:{if(e>>>0<=b>>>0)break e;c=J[a+116>>2]+J[a+108>>2]|0;f:{if(c>>>0>b>>>0){b=e-c|0;b=b>>>0>=258?258:b;wc(c+J[a+56>>2]|0,0,b);b=b+c|0;break f}c=c+258|0;if(c>>>0<=b>>>0)break e;h=b+J[a+56>>2]|0;c=c-b|0;b=e-b|0;b=b>>>0>c>>>0?c:b;wc(h,0,b);b=b+J[a+5824>>2]|0}J[a+5824>>2]=b}}function mS(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;d=bc-32|0;bc=d;Oc(b,2437888,-1);Oc(b,2437912,-1);a:{b:{c=K[a+143|0];h=c<<24>>24;c:{d:{e:{f:{g:{h:{i=(h|0)<0?J[a+136>>2]:c;i:{if(!i)break i;g=i+17|0;if(g>>>0>=1073741808)break b;j:{if(g>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=g;c=d;break j}c=g|3;if(c>>>0>=1073741823)break a;f=c+1|0;c=rc(f<<2);J[d+4>>2]=g;J[d>>2]=c;J[d+8>>2]=f|-2147483648}g=tc(c,2437944,68)+68|0;c=a+132|0;h=(h|0)<0?J[c>>2]:c;c=i<<2;j=Zc(g,h,c)+c|0,k=0,J[j>>2]=k;J[695492]= -0;f=aa(2860,d|0,2438016)|0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[d+24>>2]=J[f+8>>2];c=J[f+4>>2];J[d+16>>2]=J[f>>2];J[d+20>>2]=c;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[695492]=0;da(6445,b|0,d+16|0);c=J[695492];J[695492]=0;if((c|0)==1)break g;if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+11|0]>=0)break i;qc(J[d>>2])}Oc(b,2438032,-1);if(!(O[a+96>>3]>0))break c;Oc(b,2438076,-1);e=O[a+96>>3]*56.69291338582678;if(!(R(e)<2147483648))break e;c=~~e;break d}c=Z()|0;break f}c=Z()|0;if(H[d+27|0]>=0)break f;qc(J[d+ -16>>2])}if(H[d+11|0]<0)qc(J[d>>2]);ba(c|0);B()}c=-2147483648}wg(b,c);Oc(b,2438124,-1)}if(O[a+104>>3]>0){Oc(b,2438132,-1);e=O[a+104>>3]*56.69291338582678;k:{if(R(e)<2147483648){c=~~e;break k}c=-2147483648}wg(b,c);Oc(b,2438124,-1)}if(O[a+112>>3]>0){Oc(b,2438176,-1);e=O[a+112>>3]*56.69291338582678;l:{if(R(e)<2147483648){c=~~e;break l}c=-2147483648}wg(b,c);Oc(b,2438216,-1)}Oc(b,2438300,-1);Oc(b,2438312,-1);if(O[a+72>>3]>0){Oc(b,2438340,-1);e=O[a+72>>3]*56.69291338582678;m:{if(R(e)<2147483648){c=~~e;break m}c= --2147483648}wg(b,c);Oc(b,2438124,-1)}if(O[a+80>>3]>0){Oc(b,2438380,-1);e=O[a+80>>3]*56.69291338582678;n:{if(R(e)<2147483648){c=~~e;break n}c=-2147483648}wg(b,c);Oc(b,2438124,-1)}if(K[a+60|0]){Oc(b,2438424,-1);e=O[a+88>>3]*56.69291338582678;o:{if(R(e)<2147483648){c=~~e;break o}c=-2147483648}wg(b,c);Oc(b,2438124,-1)}Oc(b,2438300,-1);c=J[a+68>>2]-1|0;if(c>>>0<=3)Oc(b,J[(c<<2)+2439700>>2],-1);if(K[a+61|0]){Oc(b,2438828,-1);c=J[a+64>>2];J[d+16>>2]=c<<16&16711680|c&65280|c>>>16&255;Wo(b,d+16|0);Oc(b,2438016, --1)}Oc(b,2439008,-1);c=J[a+120>>2];f=J[a+124>>2];if((c|0)!=(f|0))while(1){a=J[c>>2];if(a)bS(a,b);c=c+8|0;if((f|0)!=(c|0))continue;break}Oc(b,2439044,-1);bc=d+32|0;return}Id(d);B()}Sd();B()}function LHa(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;b=J[a+44>>2];if(!(b&7)){if(b>>>0>=8){i=J[a+40>>2];l=8;while(1){k=J[a+12>>2]<<5;e=J[a>>2];g=J[a+36>>2];b=J[a+16>>2];h=J[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=(P(b,g)<<2)+i|0;f=J[b+4>>2];J[c>>2]=J[b>>2]; -J[c+4>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;b=d}if((d|0)==(h|0))break a;while(1){d=(P(b,g)<<2)+i|0;f=J[d+4>>2];c=j+(b<<6)|0;J[c>>2]=J[d>>2];J[c+4>>2]=f;f=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=f;f=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=f;f=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=f;d=b+1|0;c=j+(d<<6)|0;d=(P(d,g)<<2)+i|0;f=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=f;f=J[d+20>> -2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=f;f=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=f;f=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=f;b=b+2|0;if((h|0)!=(b|0))continue;break}}b=J[a+24>>2];h=J[a+28>>2];b:{if(b>>>0>=h>>>0)break b;j=(e-k|0)+32|0;k=(P(g,J[a+8>>2])<<2)+i|0;d=b+1|0;if(h-b&1){c=j+(b<<6)|0;b=k+(P(b,g)<<2)|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;e=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=e;e=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=e;e=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=e;b=d}if((d|0)== -(h|0))break b;while(1){d=k+(P(b,g)<<2)|0;e=J[d+4>>2];c=j+(b<<6)|0;J[c>>2]=J[d>>2];J[c+4>>2]=e;e=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=e;e=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=e;e=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=e;d=b+1|0;c=j+(d<<6)|0;d=k+(P(d,g)<<2)|0;e=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=e;e=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=e;e=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=e;e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;b=b+2|0;if((h|0)!=(b|0))continue;break}}Sn(a); -b=0;if(J[a+32>>2])while(1){d=J[a>>2]+(b<<5)|0;c=J[d+4>>2];g=(P(J[a+36>>2],b)<<2)+i|0;J[g>>2]=J[d>>2];J[g+4>>2]=c;c=J[d+28>>2];J[g+24>>2]=J[d+24>>2];J[g+28>>2]=c;c=J[d+20>>2];J[g+16>>2]=J[d+16>>2];J[g+20>>2]=c;c=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=c;b=b+1|0;if(b>>>0>2])continue;break}i=i+32|0;l=l+8|0;if(l>>>0<=M[a+44>>2])continue;break}}qc(J[a>>2]);qc(a);return}fa(2342975,2338616,3265,2343167);B()}function IVa(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=bc-32|0;bc= -a;d=rc(32);J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=1072693248;H[d|0]=0;J[d+24>>2]=0;a:{b:{c:{if(!b)break c;k=d+16|0;if(c){J[a+16>>2]=13;d:{if(J[Bc(J[b+8>>2],777246,a+16|0,0)>>2]!=4|J[a+16>>2]!=4)break d;e=J[a+24>>2];c=0;e:{if(!Ec(e,777246))break e;c=1;if(!Ec(e,816683))break e;c=2;if(!Ec(e,826880))break e;c=3;if(!Ec(e,812380))break e;if(Ec(e,816877))break d;c=4}H[d|0]=c}c=a+16|0;uc(c);if(J[Bc(J[b+8>>2],840170,c,0)>>2]-3>>>0>=4294967294)O[d+8>>3]=J[a+16>>2]==1?+J[a+24>>2]:O[a+24>>3];c=a+16| -0;uc(c);f:{if(J[Bc(J[b+8>>2],816683,c,0)>>2]!=6)break f;b=J[a+24>>2];if(J[b+12>>2]<=0)break f;while(1){J[a>>2]=13;g:{if(J[Mc(b,j,a,0)>>2]-3>>>0<4294967294)break g;i=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];b=J[d+20>>2];c=J[d+24>>2];if(b>>>0>>0){O[b>>3]=i;J[d+20>>2]=b+8;break g}g=J[k>>2];h=b-g>>3;f=h+1|0;if(f>>>0>=536870912)break b;e=c-g|0;c=e>>2;f=e>>>0>=2147483640?536870911:c>>>0>f>>>0?c:f;if(f){if(f>>>0>=536870912)break a;e=rc(f<<3)}else e=0;c=e+(h<<3)|0;O[c>>3]=i;h=c+8|0;if((b|0)!=(g|0))while(1){c=c- -8|0;b=b-8|0;O[c>>3]=O[b>>3];if((b|0)!=(g|0))continue;break}J[d+24>>2]=e+(f<<3);J[d+20>>2]=h;J[d+16>>2]=c;if(!g)break g;qc(g)}uc(a);j=j+1|0;b=J[a+24>>2];if((j|0)>2])continue;break}}uc(a+16|0);break c}J[a+16>>2]=13;if(J[Mc(J[b+8>>2],2,a+16|0,0)>>2]-3>>>0>=4294967294)i=J[a+16>>2]==1?+J[a+24>>2]:O[a+24>>3];c=a+16|0;uc(c);O[d+8>>3]=i!=0?i:1;J[a+16>>2]=13;b=J[b+8>>2];h:{if(J[b+12>>2]<4)break h;if(J[Mc(b,3,c,0)>>2]!=6)break h;b=J[a+24>>2];if(J[b+12>>2]<2)break h;H[d|0]=1;while(1){J[a>>2]=13;i:{if(J[Mc(b, -j,a,0)>>2]-3>>>0<4294967294)break i;i=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];b=J[d+20>>2];c=J[d+24>>2];if(b>>>0>>0){O[b>>3]=i;J[d+20>>2]=b+8;break i}g=J[k>>2];h=b-g>>3;f=h+1|0;if(f>>>0>=536870912)break b;e=c-g|0;c=e>>2;f=e>>>0>=2147483640?536870911:c>>>0>f>>>0?c:f;if(f){if(f>>>0>=536870912)break a;e=rc(f<<3)}else e=0;c=e+(h<<3)|0;O[c>>3]=i;h=c+8|0;if((b|0)!=(g|0))while(1){c=c-8|0;b=b-8|0;O[c>>3]=O[b>>3];if((b|0)!=(g|0))continue;break}J[d+24>>2]=e+(f<<3);J[d+20>>2]=h;J[d+16>>2]=c;if(!g)break i;qc(g)}uc(a); -j=j+1|0;b=J[a+24>>2];if((j|0)>2])continue;break}}uc(a+16|0)}bc=a+32|0;return d|0}Gp(k);B()}Sd();B()}function lka(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;f=bc-32|0;bc=f;j=J[a>>2];k=b-j>>3;a:{b:{c:{e=J[a+4>>2];d=J[a+8>>2];d:{if(e>>>0>>0){if((b|0)==(e|0)){J[b>>2]=J[c>>2];c=J[c+4>>2];J[((k<<3)+j|0)+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[a+4>>2]=b+8;break d}d=e;h=d-8|0;if(d>>>0>h>>>0){g=h;while(1){J[d>>2]=J[g>>2];J[d+4>>2]=J[g+4>>2];J[g>>2]=0;J[g+4>>2]=0;d=d+8|0;g=g+8| -0;if(g>>>0>>0)continue;break}}J[a+4>>2]=d;l=b>>>0<=c>>>0;if((b+8|0)!=(e|0)){while(1){h=h-8|0;g=J[h>>2];d=J[h+4>>2];J[h>>2]=0;J[h+4>>2]=0;e=e-8|0;i=J[e+4>>2];J[e>>2]=g;J[e+4>>2]=d;e:{if(!i)break e;d=J[i+4>>2];J[i+4>>2]=d-1;if(d)break e;gc[J[J[i>>2]+8>>2]](i);Vc(i)}if((b|0)!=(h|0))continue;break}d=J[a+4>>2]}c=((c>>>0>>0&l)<<3)+c|0;a=J[c>>2];c=J[c+4>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[b>>2]=a;a=(k<<3)+j|0;d=J[a+4>>2];J[a+4>>2]=c;if(!d)break d;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break d;gc[J[J[d>>2]+8>> -2]](d);Vc(d);break d}h=(e-j>>3)+1|0;if(h>>>0>=536870912)break c;J[f+28>>2]=a+8;e=0;g=d-j|0;d=g>>2;g=g>>>0>=2147483640?536870911:d>>>0>h>>>0?d:h;if(g){if(g>>>0>=536870912)break b;e=rc(g<<3)}J[695492]=0;J[f+12>>2]=e;d=(k<<3)+e|0;J[f+20>>2]=d;J[f+24>>2]=(g<<3)+e;J[f+16>>2]=d;da(6487,f+12|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[f+16>>2];h=c;d=J[a>>2];if((d|0)!=(b|0)){e=b;while(1){h=h-8|0;e=e-8|0;J[h>>2]=J[e>>2];J[h+4>>2]=J[e+4>>2];J[e>>2]=0;J[e+4>>2]=0;if((d|0)!=(e|0))continue;break}}J[f+ -16>>2]=h;e=J[f+20>>2];d=J[a+4>>2];if((d|0)!=(b|0)){while(1){J[e>>2]=J[b>>2];J[e+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;e=e+8|0;b=b+8|0;if((d|0)!=(b|0))continue;break}h=J[f+16>>2];b=J[a+4>>2]}g=J[a>>2];J[a>>2]=h;J[f+16>>2]=g;J[a+4>>2]=e;J[f+20>>2]=b;d=J[a+8>>2];J[a+8>>2]=J[f+24>>2];J[f+12>>2]=g;J[f+24>>2]=d;if((b|0)!=(g|0)){while(1){a=b-8|0;J[f+20>>2]=a;b=J[a+4>>2];f:{if(!b)break f;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break f;gc[J[J[b>>2]+8>>2]](b);Vc(b)}b=J[f+20>>2];if((g|0)!=(b|0))continue;break}b=J[f+ -12>>2]}if(b)qc(b);b=c}bc=f+32|0;return b|0}ph(a);B()}Sd();B()}c=Z()|0;a=J[f+20>>2];b=J[f+16>>2];if((a|0)!=(b|0))while(1){a=a-8|0;J[f+20>>2]=a;d=J[a+4>>2];g:{if(!d)break g;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break g;gc[J[J[d>>2]+8>>2]](d);Vc(d)}a=J[f+20>>2];if((b|0)!=(a|0))continue;break}a=J[f+12>>2];if(a)qc(a);ba(c|0);B()}function yZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;x=bc-512|0;bc=x;s=J[a+ -332>>2];b=J[b+84>>2];a=x;while(1){l=P(J[b+64>>2],I[c+32>>1]);n=P(J[b+192>>2],I[c+96>>1]);i=l-n|0;p=P(i,11363);k=P(J[b+96>>2],I[c+48>>1]);j=P(J[b+32>>2],I[c+16>>1]);g=P(k+j|0,11086);q=p+P(n,20995)|0;o=P(J[b+128>>2],I[c+64>>1]);t=P(o,10703);h=P(I[c>>1],J[b>>2])<<13|1024;u=t+h|0;r=q+u|0;f=P(J[b+224>>2],I[c+112>>1]);y=P(f+j|0,8956);m=P(J[b+160>>2],I[c+80>>1]);z=m+j|0;v=P(z,10217);w=y+(v+(g+P(j,-18730)|0)|0)|0;J[a+480>>2]=r-w>>11;J[a>>2]=r+w>>11;i=P(i,2260);r=i+P(l,7373)|0;o=P(o,4433);w=o+h|0;A=r+w|0; -B=f+k|0;C=P(B,-5461);D=P(k+m|0,1136);g=C+(D+(g+P(k,589)|0)|0)|0;J[a+448>>2]=A-g>>11;J[a+32>>2]=g+A>>11;l=p+P(l,-4926)|0;p=h-o|0;g=l+p|0;o=P(f+m|0,-11086);v=o+(v+(P(m,-9222)+D|0)|0)|0;J[a+416>>2]=g-v>>11;J[a+64>>2]=g+v>>11;n=i+P(n,-4176)|0;h=h-t|0;g=n+h|0;i=o+((P(f,8728)+C|0)+y|0)|0;J[a+384>>2]=g-i>>11;J[a+96>>2]=g+i>>11;h=h-n|0;g=P(j-f|0,7350);n=P(B,-10217);i=g+(n+P(f,25733)|0)|0;f=P(f-m|0,3363);i=i+f|0;J[a+352>>2]=h-i>>11;J[a+128>>2]=h+i>>11;h=p-l|0;l=P(z,5461);i=P(m,-6278);m=P(m-k|0,11529);f=f+ -(l+(i+m|0)|0)|0;J[a+320>>2]=h-f>>11;J[a+160>>2]=f+h>>11;f=w-r|0;h=P(k,16154);k=P(j-k|0,3363);m=n+(m+(h+k|0)|0)|0;J[a+288>>2]=f-m>>11;J[a+192>>2]=f+m>>11;f=u-q|0;k=g+(l+(k+P(j,-15038)|0)|0)|0;J[a+256>>2]=f-k>>11;J[a+224>>2]=f+k>>11;a=a+4|0;b=b+4|0;c=c+2|0;E=E+1|0;if((E|0)!=8)continue;break}b=s+128|0;a=x;k=0;while(1){j=J[a+4>>2];f=J[a+28>>2];m=P(j+f|0,-7373);h=J[a+20>>2];g=h+j|0;l=J[a+12>>2];s=l+f|0;n=P(g+s|0,9633);i=J[a+24>>2];q=J[a+8>>2];p=P(i+q|0,4433);c=J[(k<<2)+d>>2]+e|0;o=m+P(j,12299)|0;j=n+P(g, --3196)|0;g=o+j|0;o=J[a>>2]+16|0;t=J[a+16>>2];u=o+t<<13;q=p+P(q,6270)|0;r=u+q|0;H[c|0]=K[b+(g+r>>>18&1023)|0];H[c+7|0]=K[b+(r-g>>>18&1023)|0];n=n+P(s,-16069)|0;g=P(l,25172);l=P(h+l|0,-20995);g=n+(g+l|0)|0;s=o-t<<13;p=p+P(i,-15137)|0;i=s+p|0;H[c+1|0]=K[b+(g+i>>>18&1023)|0];H[c+6|0]=K[b+(i-g>>>18&1023)|0];j=j+(l+P(h,16819)|0)|0;h=s-p|0;H[c+2|0]=K[b+(j+h>>>18&1023)|0];H[c+5|0]=K[b+(h-j>>>18&1023)|0];j=n+(m+P(f,2446)|0)|0;f=u-q|0;H[c+3|0]=K[b+(j+f>>>18&1023)|0];H[c+4|0]=K[b+(f-j>>>18&1023)|0];a=a+32|0; -k=k+1|0;if((k|0)!=16)continue;break}bc=x+512|0}function iM(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=bc-16|0;bc=f;J[f+12>>2]=b;J[f+8>>2]=a;a=0;b=f+8|0;a:{if(!b)break a;a=J[b>>2];b=J[b+4>>2];c=a;if(!a){a=b>>31;a=(a^b)-a|0;break a}a=c>>31;a=(a^c)-a|0;if(b){d=b>>31;i=a|(d^b)-d;g=S(i);j=g-2|0;b:{if(i>>>0<=1073741823){a=b<>b;b=c>>b}e=0-a|0;c=0-b|0;c:{if((a|0)>(b|0)){b=(a|0)>(c|0);d=b?c:e;a=b?a:c;break c}d=a;a=(a|0)<(c|0);d=a?b:d;a=a?e:b}b=d+1>>1;c=(d|0)>0;b=a+(c?b:0- -b|0)|0;a=a+1>>1;a=(c?0-a|0:a)+d|0;c=a+2>>2;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+2>>2;a=a+(d?0-b|0:b)|0;b=a+4>>3;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+4>>3;a=a+(d?0-c|0:c)|0;c=a+8>>4;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+8>>4;a=a+(d?0-b|0:b)|0;b=a+16>>5;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+16>>5;a=a+(d?0-c|0:c)|0;c=a+32>>6;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+32>>6;a=a+(d?0-b|0:b)|0;b=a- -64>>7;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c- -64>>7;a=a+(d?0-c|0:c)|0;c=a+128>>8;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+128>>8;a=a+(d?0-b|0:b)|0;b=a+256>> -9;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+256>>9;a=a+(d?0-c|0:c)|0;c=a+512>>10;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+512>>10;a=a+(d?0-b|0:b)|0;b=a+1024>>11;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+1024>>11;a=a+(d?0-c|0:c)|0;c=a+2048>>12;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+2048>>12;a=a+(d?0-b|0:b)|0;b=a+4096>>13;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+4096>>13;a=a+(d?0-c|0:c)|0;c=a- -8192>>14;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b- -8192>>14;a=a+(d?0-b|0:b)|0;b=a+16384>>15;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+16384>>15;a=a+(d?0-c|0:c)|0;c=a+32768>> -16;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+32768>>16;a=a+(d?0-b|0:b)|0;b=a+65536>>17;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+65536>>17;a=a+(d?0-c|0:c)|0;c=a+131072>>18;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+131072>>18;a=a+(d?0-b|0:b)|0;b=a+262144>>19;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+262144>>19;a=a+(d?0-c|0:c)|0;c=a+524288>>20;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+524288>>20;a=a+(d?0-b|0:b)|0;b=a- -1048576>>21;d=c- -1048576>>21;h=0-d|0;e=d;d=(a|0)>0;e=a+(d?h:e)|0;a=e+2097152>>22;a=(c+(d?b:0-b|0)|0)+((e|0)>0?a:0-a|0)|0;b=a>>31; -c=(a^b)-b|0;d=c&65535;b=P(d,56281);e=c>>>16|0;c=b+P(e,23318)|0;h=c<<16;d=h+P(d,23318)|0;b=(((P(e,56281)+(c>>>16|0)|0)+((b>>>0>c>>>0)<<16)|0)+(d>>>0>>0)|0)+(d>>>0>3221225471)|0;b=(a|0)<0?0-b|0:b;a=b+(1<>j;if(i>>>0<=536870911)break a;a=b<<2-g}}bc=f+16|0;return a}function Eeb(a){a=a|0;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;m=bc-16|0;bc=m;h=J[a+12>>2];j=J[a+200>>2];b=J[a+196>>2];l=I[a+32>>1];a:{if(l){if(M[h+8>>2]>1]+(I[h+20>>1]+l|0)>>>0){c=sh(h,0,l);if(c)break a}c= -20;if((l|0)>4094)break a}c=20;e=l<<1;if((e+b|0)+2>>>0>j>>>0)break a;d=J[h+68>>2];i=K[b|0]<<8;g=i|K[b+1|0];if((l|0)>0)I[d>>1]=g;if(i<<16>>16<0)break a;i=d+e|0;while(1){e=d+2|0;if(e>>>0>>0){d=K[b+2|0]|K[b+3|0]<<8;f=d<<8|d>>>8;I[e>>1]=f;k=g<<16>>16;d=e;e=f<<16>>16;g=e;b=b+2|0;if((e|0)>(k|0))continue;break a}break}f=J[h+4>>2];e=I[h+58>>1];if((l|0)<=0)d=0;else{d=I[d>>1];if((d|0)<-1)break a;d=d+1|0}i=d;d=i+4|0;if(f>>>0>1]|0)>>>0){c=sh(h,d,0);if(c)break a}d=J[a+8>>2];J[d+136>>2]=0;J[d+140>> -2]=0;e=b+4|0;if(e>>>0>j>>>0){c=20;break a}b=K[b+2|0]|K[b+3|0]<<8;b=b<<8|b>>>8;b:{c:{d:{e:{if(K[a+16|0]&2){d=b&65535;break e}b=b&65535;d=b;if((b|0)>(j-e|0))break d;c=J[a+156>>2];J[m+12>>2]=J[c+392>>2];c=f4(J[c+8>>2],m+12|0,c+396|0,b);g=J[a+156>>2];J[g+392>>2]=L[m+12>>1];if(c)break a;c=J[a+8>>2];J[c+140>>2]=b;f=c;c=J[g+396>>2];J[f+136>>2]=c;if(!b)break e;tc(c,e,b)}b=d+e|0;e=J[h- -64>>2];if((i|0)>0){g=e+i|0;while(1){c=b+1|0;if(c>>>0>j>>>0){c=20;break a}f=K[b|0];H[e|0]=f;d=e+1|0;f:{if(!(f&8)){b=c;break f}b= -b+2|0;if(j>>>0>>0){c=20;break a}c=K[c|0];if(g>>>0>>0){c=20;break a}if(!c)break f;wc(d,f,c);d=((c-1&255)+e|0)+2|0}e=d;if(g>>>0>d>>>0)continue;break}e=J[h+64>>2]}if(!(!i|!(K[e|0]&64)))J[h+36>>2]=J[h+36>>2]|64;if(b>>>0>j>>>0){c=20;break a}if((i|0)<=0)break b;c=J[h+60>>2];o=c+(i<<3)|0;g=c;d=e;while(1){n=K[d|0];g:{if(n&2){f=b+1|0;if(f>>>0>j>>>0){c=20;break a}b=K[b|0];k=n&16?b:0-b|0;b=f;break g}k=0;if(n&16)break g;f=b+2|0;if(f>>>0>j>>>0){c=20;break a}b=K[b|0]|K[b+1|0]<<8;k=(b<<8|b>>>8)<<16>>16; -b=f}p=k+p|0;J[g>>2]=p;d=d+1|0;g=g+8|0;if(o>>>0>g>>>0)continue;break}break c}c=22;break a}k=0;if((i|0)<=0)break b;while(1){f=K[e|0];h:{if(f&4){d=b+1|0;if(d>>>0>j>>>0){c=20;break a}b=K[b|0];g=f&32?b:0-b|0;b=d;break h}g=0;if(f&32)break h;d=b+2|0;if(d>>>0>j>>>0){c=20;break a}b=K[b|0]|K[b+1|0]<<8;g=(b<<8|b>>>8)<<16>>16;b=d}k=g+k|0;J[c+4>>2]=k;H[e|0]=f&1;e=e+1|0;c=c+8|0;if(o>>>0>c>>>0)continue;break}}I[h+56>>1]=l;I[h+58>>1]=i;J[a+196>>2]=b;c=0}bc=m+16|0;return c|0}function J3(a,b,c,d,e,f,g,h,i,j,k,l){var m= -0,n=0,o=0;a:{if(K[a+1664|0])break a;m=J[a+1604>>2];if(!m)break a;qc(m)}n=1;m=b;if(!m){n=0;e=c<<2;m=rc(P(e,d))}H[a+1664|0]=n;J[a+1604>>2]=m;J[a+1616>>2]=m;J[a+1628>>2]=e;J[a+1624>>2]=d;J[a+1620>>2]=c;n=a+1612|0;J[n>>2]=m;if((e|0)<0)J[a+1616>>2]=P(1-d|0,e)+m;e=a+1636|0;m=a+1632|0;J[e>>2]=m;J[m>>2]=n;O[a+16>>3]=k;O[a+8>>3]=j;J[a+1656>>2]=e;J[a+1652>>2]=d-1;J[a+1648>>2]=c-1;e=a+1640|0;J[e>>2]=0;J[e+4>>2]=0;H[a+1608|0]=1;H[a+1796|0]=0;e=a+1772|0;J[e>>2]=0;J[e+4>>2]=0;e=a+1764|0;J[e>>2]=2147483647;J[e+ -4>>2]=2147483647;e=a+1756|0;J[e>>2]=0;J[e+4>>2]=0;e=a+1748|0;J[e>>2]=2147483647;J[e+4>>2]=2147483647;e=a+1708|0;J[e>>2]=0;J[e+4>>2]=0;e=a+1788|0;J[e>>2]=-2147483647;J[e+4>>2]=-2147483647;e=a+1780|0;J[e>>2]=2147483647;J[e+4>>2]=2147483647;J[a+2872>>2]=0;m=a+1804|0;k=+(g|0);j=k*256;j=j+(j<0?-.5:.5);b:{if(R(j)<2147483648){e=~~j;break b}e=-2147483648}J[m>>2]=e;n=a+1800|0;o=+(f|0);j=o*256;j=j+(j<0?-.5:.5);c:{if(R(j)<2147483648){m=~~j;break c}m=-2147483648}J[n>>2]=m;n=a+1812|0;j=+(g+i|0)*256;j=j+(j<0?-.5: -.5);d:{if(R(j)<2147483648){g=~~j;break d}g=-2147483648}J[n>>2]=g;n=a+1808|0;j=+(f+h|0)*256;j=j+(j<0?-.5:.5);e:{if(R(j)<2147483648){f=~~j;break e}f=-2147483648}J[n>>2]=f;if((f|0)<(m|0)){J[a+1808>>2]=m;J[a+1800>>2]=f}if((e|0)>(g|0)){J[a+1812>>2]=e;J[a+1804>>2]=g}H[a+1828|0]=1;e=0;f=a+1832|0;while(1){m=f+(e<<2)|0;j=+(e|0)/255*255+.5;f:{if(j<4294967296&j>=0){g=~~j>>>0;break f}g=0}J[m>>2]=g;g=e|1;m=f+(g<<2)|0;j=+(g|0)/255*255+.5;g:{if(j<4294967296&j>=0){g=~~j>>>0;break g}g=0}J[m>>2]=g;e=e+2|0;if((e|0)!= -256)continue;break}O[a+72>>3]=k;O[a+64>>3]=o;O[a+88>>3]=i|0;O[a+80>>3]=h|0;e=a+96|0;J[e+1476>>2]=d;J[e+1472>>2]=c;H[a+192|0]=0;J[a+160>>2]=2147483647;J[a+164>>2]=2147483647;J[a+144>>2]=2147483647;J[a+148>>2]=2147483647;J[a+104>>2]=0;J[a+108>>2]=0;J[e+1208>>2]=0;J[a+184>>2]=-2147483647;J[a+188>>2]=-2147483647;J[a+176>>2]=2147483647;J[a+180>>2]=2147483647;J[a+200>>2]=0;J[a+204>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;j=+(d|0);O[a+224>>3]=j;k=+(c|0);O[a+ -216>>3]=k;if((c|0)<0){J[a+216>>2]=0;J[a+220>>2]=0;O[a+200>>3]=k}if((d|0)<0){J[a+224>>2]=0;J[a+228>>2]=0;O[a+208>>3]=j}I[e+1468>>1]=0;H[a+252|0]=1;K3(a);J[a+2888>>2]=l;J[a>>2]=b}function Haa(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;d=bc-48|0;bc=d;a:{b:{c:{d:{i=J[a+584>>2];if(i){if(J[i+124>>2]!=1)break d;J[i+80>>2]=c;J[i+76>>2]=b;g=i- -64|0;e:{while(1){f:switch(zk(g,1)+3|0){case 0:b=J[a+628>>2];c=J[a>>2];e=J[a+472>>2];J[d+40>>2]=J[i+88>>2];J[d+36>>2]=e;J[d+32>>2]= -c;Nc(b,98029,74906,d+32|0);k=0;l=0;j=bc-16|0;b=-2;g:{if(!J[g+36>>2]|(!g|!J[g+32>>2]))break g;e=J[g+28>>2];if(!e|(g|0)!=J[e>>2])break g;f=J[e+4>>2];if(f-16180>>>0>31)break g;c=J[g+4>>2];if(!c){b=-5;if(M[e+64>>2]<8)break g}h:{if((f|0)==16211){f=J[e+108>>2];break h}J[e+4>>2]=16211;b=J[e+64>>2];f=J[e+60>>2]<<(b&7);J[e+60>>2]=f;i:{j:{k:{if(b>>>0>=8){b=b-8|0;c=(b>>>3|0)+1|0;m=c&3;if(b>>>0>=24)break k;b=0;break j}f=0;J[e+64>>2]=0;break i}n=c&1073741820;b=0;while(1){h=j+12|0;H[h+b|0]=f;H[(b|1)+h|0]=f>>>8; -H[(b|2)+h|0]=f>>>16;c=b|3;H[h+c|0]=f>>>24;b=b+4|0;f=0;l=l+4|0;if((n|0)!=(l|0))continue;break}}l:{if(!m){f=0;break l}while(1){c=b;H[(j+12|0)+b|0]=f;f=f>>>8|0;b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}J[e+64>>2]=0;J[e+60>>2]=f;b=0;f=0;while(1){h=K[(j+12|0)+b|0];f=(h|0)==((f>>>0>=2?255:0)|0)?f+1|0:h?0:4-f|0;if(b>>>0>=c>>>0)break i;b=b+1|0;if(f>>>0<4)continue;break}}J[e+108>>2]=f;c=J[g+4>>2]}j=J[g>>2];b=0;m:{if(!c|f>>>0>3)break m;while(1){h=K[b+j|0];f=(h|0)==((f>>>0>=2?255:0)|0)?f+1|0:h?0:4-f|0; -b=b+1|0;if(b>>>0>=c>>>0)break m;if(f>>>0<4)continue;break}}J[e+108>>2]=f;J[g>>2]=b+j;J[g+4>>2]=J[g+4>>2]-b;j=J[g+8>>2]+b|0;J[g+8>>2]=j;b=-3;if((f|0)!=4)break g;f=J[g+20>>2];b=0;J[e+52>>2]=0;J[e+44>>2]=0;J[e+48>>2]=0;J[e+32>>2]=0;J[g+24>>2]=0;c=J[e+12>>2];if(c)J[g+48>>2]=c&1;J[e+60>>2]=0;J[e+64>>2]=0;J[e+36>>2]=0;J[e+24>>2]=32768;J[e+16>>2]=0;J[e+8>>2]=0;J[e+7108>>2]=1;J[e+7112>>2]=-1;c=e+1332|0;J[e+112>>2]=c;J[e+84>>2]=c;J[e+80>>2]=c;J[g+20>>2]=f;J[g+8>>2]=j;J[e+4>>2]=16191}if(b)break b;break;case 4:break e; -case 3:break f;default:break c}if(J[i+80>>2])continue;break}b=1;break a}c=J[i+80>>2];b=1;if(!c)break a;b=J[a+628>>2];e=J[a>>2];a=J[a+472>>2];J[d+24>>2]=c;J[d+20>>2]=a;J[d+16>>2]=e;Nc(b,98029,75664,d+16|0);break b}fa(73278,70424,136,98029);B()}fa(74797,70424,137,98029);B()}b=J[a+628>>2];a=J[a>>2];J[d+4>>2]=J[i+88>>2];J[d>>2]=a;Nc(b,98029,72472,d)}b=0}bc=d+48|0;return b|0}function Uta(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=bc+-64|0;bc= -g;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;oG(a,d,g+8|0,g+24|0);a:{b:{c:{f=J[b+8>>2];h=J[b>>2];if(L[c+10>>1]==(f-h|0)){l=J[b+12>>2];j=J[b+4>>2];if(L[c+8>>1]==(l-j|0))break c}a=Kc(g+40|0,2376551,2373803,416,2413556,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}d:{if(!((h|0)>J[g+24>>2]|(j|0)>J[g+28>>2]|(f|0)>2]))if((l|0)>=J[g+36>>2])break d;a=Kc(g+40|0,2377075,2373803,421,2413556,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}h=J[d+8>>2]-J[d>>2]|0;f=J[d+12>>2]-J[d+4>>2]|0;if(!((h|0)==L[e+10>>1]&(f|0)==L[e+8>>1]))mv(e,f,h,0);YT(e,256);f=0;p=a+92|0;oe(p,0,1);q=a+104|0;oe(q,0,1);r=a+68|0;oe(r,0,1);JT();m=J[g+8>>2];l=J[g+16>>2]-m|0;oe(r,l+2|0,1);oe(p,l,1);oe(q,l,1);J[a+112>>2]=-1;J[a+116>>2]=-1;s=a+80|0;oe(s,0,1);oe(s,256,1);j=L[c+16>>1];i=j-1|0;o=i>>1;while(1){h=255;n=J[a+76>>2]+f|0;if(f>>>0>>0)k=(o+P(f,255)|0)/(i|0)|0;else k=255;H[n|0]=k;k=f|1;if(k>>>0>>0)h= -(o+P(k,255)|0)/(i|0)|0;H[k+J[a+76>>2]|0]=h;f=f+2|0;if((f|0)!=256)continue;break}j=J[d+4>>2];if((j|0)>2]){o=0-m|0;while(1){k=J[J[a+40>>2]+(j<<2)>>2];f=k>>4;i=g+8|0;h=KT(a,f,i,b,c);i=KT(a,f+1|0,i,b,c);f=J[a+64>>2];if((l|0)>0){k=((k&15)<<10)+2762528|0;m=f+l|0;while(1){n=K[h|0];H[f+1|0]=K[k+(K[i|0]-n<<1)|0]+n;h=h+1|0;i=i+1|0;f=f+1|0;if(m>>>0>f>>>0)continue;break}f=J[a+64>>2]}H[f|0]=K[f+1|0];f=l+J[a+64>>2]|0;H[f+1|0]=K[f|0];f=j-J[d+4>>2]|0;i=J[a+64>>2];if(!J[e+20>>2])Li(e);h=L[e+14>>1];e:{if(!(f>>> -0>1]&(f|0)>=0)){f=L[e+12>>1];if(J[682142]<(f+h|0)){a=Kc(g+40|0,2378354,2378962,577,2381799,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=f+J[682141]|0;break e}f=L[e+12>>1]+(J[e+20>>2]+P(f,h)|0)|0}h=J[d>>2];if((h|0)>2]){k=(i+o|0)+1|0;while(1){m=J[J[a+52>>2]+(h<<2)>>2];n=k+(m>>4)|0;i=K[n|0];H[f|0]=i+K[(((m&15)<<10)+(K[n+1|0]-i<<1)|0)+2762528|0];f=f+1|0;h=h+1|0;if((h|0)>2])continue;break}}j=j+1|0;if((j|0)>2])continue;break}}oe(p,0,1);oe(q, -0,1);oe(r,0,1);oe(s,0,1);bc=g- -64|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function YYa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=bc-48|0;bc=f;a:{if(!a)break a;b:{if(J[a+32>>2]){c:{b=J[a+8>>2];if(!b){b=gc[J[659447]](96)|0;if(!b)break c;wc(b+16|0,0,76);J[b>>2]=0;J[b+4>>2]=13;J[b+40>>2]=1;J[b+8>>2]=0;J[b+12>>2]=0;J[b+92>>2]=160;J[b+76>>2]=1;J[b+32>>2]=b;J[a+8>>2]=b}J[b+92>>2]=128;J[b+88>>2]=J[a+360>>2];break b}J[f+32>>2]=35982;Cc(0,0,0,0,0,1,2,3,35982,0,0,0,32863,f+32|0);J[a+84>>2]=2;J[a+8>>2]=0;b=J[a>> -2];if(!(!b|J[b+108>>2]!=-554844497))c=J[b+124>>2];b=J[a+112>>2];e=J[a+108>>2];J[f+20>>2]=0;J[f+16>>2]=30575;Cc(c,b,e,a,0,1,2,2,30575,0,0,0,2622,f+16|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}d=wp(J[a+20>>2]);J[a+8>>2]=d;if(d){J[d+92>>2]=J[a+360>>2]>>>15&4;J[d+88>>2]=J[a+360>>2];c=J[a+24>>2];d:{if(!c)break d;b=c;while(1){e=b;b=b+1|0;if(K[e|0])continue;break}b=0;e=e-c|0;if((e|0)<0)break d;g=gc[J[659450]](e+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}b=tc(g,c,e);H[e+b|0]=0}J[d+ -60>>2]=b;J[d+40>>2]=J[a+28>>2];if(!J[a+364>>2])break b;b=J[a+296>>2];J[d+80>>2]=b;if(!K[2758024]){c=zc(4);J[689507]=c;if(!c)break b;H[2758024]=1}if(!b)break b;J[b>>2]=J[b>>2]+1;break b}J[a+84>>2]=2;c=J[a>>2];b=0;e:{if(!c)break e;b=0;if(J[c+108>>2]!=-554844497)break e;b=J[c+124>>2]}c=J[a+112>>2];e=J[a+108>>2];J[f+4>>2]=0;J[f>>2]=30575;Cc(b,c,e,a,0,1,2,2,30575,0,0,0,2622,f);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}b=J[a+8>>2];if(!b|J[b+72>>2])break a;b=J[a+36>>2];if(!b)break a;c=J[b+4>>2]; -if(!c)break a;b=0;d=bc+-64|0;bc=d;f:{if(!c)break f;g:{b=gc[J[659447]](44)|0;if(!b){J[d>>2]=34134;Cc(0,0,0,0,0,30,2,3,34134,0,0,0,32863,d);break g}J[b>>2]=0;J[b+4>>2]=0;J[b+40>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;e=Ht(b,c);Xj(b);if(e)break g;b=c;while(1){e=b;b=b+1|0;if(K[e|0])continue;break}b=0;e=e-c|0;if((e|0)<0)break f;g=gc[J[659450]](e+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break f}b=tc(g,c,e);H[e+b|0]=0;break f}c= -zw(c);if(!c){b=0;break f}J[d+40>>2]=0;J[d+44>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+40>>2]=c;J[d+16>>2]=0;J[d+20>>2]=0;b=tp(d+16|0);gc[J[659451]](c)}bc=d- -64|0;J[J[a+8>>2]+72>>2]=b;if(b)break a;er(a,2622)}bc=f+48|0}function O_(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{e:{if(!(!b|!c)){f=rc(40);e=J[b+32>>2];h=J[b+28>>2];g=J[b+24>>2];k=O[b+16>>3];l=O[b+8>>3];b=J[b>>2];J[695492]=0;j=Kb(3253,f|0,b|0,+l,+k,g|0,h|0,e|0)|0; -b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[a+16>>2];e=J[a+20>>2];f:{if(b>>>0>>0){J[b>>2]=j;J[a+16>>2]=b+4;break f}i=a+12|0;h=J[i>>2];g=b-h>>2;f=g+1|0;if(f>>>0>=1073741824)break d;m=g<<2;e=e-h|0;g=e>>1;g=e>>>0>=2147483644?1073741823:f>>>0>>0?g:f;if(g){if(g>>>0>=1073741824)break c;f=rc(g<<2)}else f=0;e=m+f|0;J[e>>2]=j;j=e+4|0;if((b|0)!=(h|0)){while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(h|0))continue;break}b=J[i>>2]}J[a+20>>2]=f+(g<<2);J[a+16>>2]=j;J[a+12>>2]=e;if(!b)break f;qc(b)}b= -J[a+4>>2];e=J[a+8>>2];g:{if(b>>>0>>0){J[b>>2]=0;J[b+4>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;h=b+48|0;J[a+4>>2]=h;break g}g=J[a>>2];h=(b-g|0)/48|0;f=h+1|0;if(f>>>0>=89478486)break b;e=(e-g|0)/48|0;j=e<<1;j=e>>>0>=44739242?89478485:f>>>0>>0?j:f;if(j){if(j>>>0>=89478486)break c;f=rc(P(j,48))}else f=0;e=f+P(h,48)|0;J[e>>2]=0;J[e+4>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]= -0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;h=e+48|0;if((b|0)!=(g|0)){while(1){b=b-48|0;i=J[b+4>>2];e=e-48|0;J[e>>2]=J[b>>2];J[e+4>>2]=i;i=J[b+44>>2];J[e+40>>2]=J[b+40>>2];J[e+44>>2]=i;i=J[b+36>>2];J[e+32>>2]=J[b+32>>2];J[e+36>>2]=i;i=J[b+28>>2];J[e+24>>2]=J[b+24>>2];J[e+28>>2]=i;i=J[b+20>>2];J[e+16>>2]=J[b+16>>2];J[e+20>>2]=i;i=J[b+12>>2];J[e+8>>2]=J[b+8>>2];J[e+12>>2]=i;if((b|0)!=(g|0))continue;break}b=J[a>>2]}J[a+8>>2]=f+P(j,48);J[a+4>>2]=h;J[a>>2]=e;if(!b)break g;qc(b);h= -J[a+4>>2]}b=h-48|0;O[b>>3]=O[c>>3];O[b+8>>3]=O[c+8>>3];O[b+16>>3]=O[c+16>>3];O[b+24>>3]=O[c+24>>3];O[b+32>>3]=O[c+32>>3];O[b+40>>3]=O[c+40>>3];b=J[a+28>>2];f=J[a+32>>2];if((b|0)==f<<5){c=a+24|0;if((b+1|0)<0)break a;if(b>>>0<=1073741822){f=f<<6;b=(b&-32)+32|0;b=b>>>0>>0?f:b}else b=2147483647;N_(c,b);b=J[a+28>>2]}J[a+28>>2]=b+1;c=1<>2]+(b>>>3&536870908)|0;if(d)b=c|J[a>>2];else b=J[a>>2]&(c^-1);J[a>>2]=b}return}a=Z()|0;qc(f);ba(a|0);B()}st(i);B()}Sd();B()}st(a);B()}st(c);B()}function Wqa(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-48|0;bc=d;c=J[b>>2];a:{b:{if(!c){b=Kc(d+24|0,2382912,2374240,1063,2422215,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break b}J[d+12>>2]=0;c:{d:{e:{while(1){J[695492]=0;ia(5511,a|0,d+20|0,b|0,d+8|0);f=J[695492];J[695492]=0;if((f|0)==1)break e;if(J[d+20>>2]!=11)continue;break}f:{if(!K[a+49|0]){J[695492]=0;b=ja(5018,d+24|0,2380554,2374240,1075,2422215,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]= -0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break c}b=J[c+40>>2];e=J[c+44>>2];f=J[c+16>>2];J[695492]=0;h=((f+e|0)-b|0)+1|0;ca(5128,c+48|0,0,h+(f^-1)|0);b=J[695492];J[695492]=0;g:{h:{if((b|0)==1)break h;if((f|0)<(h|0)){b=f;while(1){if(!(J[a+136>>2]<=(b|0)&J[a+140>>2]>=(b|0))){J[695492]=0;b=ja(5018,d+24|0,2381890,2382316,619,2422816,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break c}e= -b-f|0;if(!((e|0)>=J[c+64>>2]&(e|0)<=J[c+68>>2])){J[695492]=0;b=ja(5018,d+24|0,2381890,2382316,619,2422816,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break c}g=J[a+124>>2]+(b-J[a+128>>2]<<4)|0;i=J[g+4>>2];e=J[c+52>>2]+(e-J[c+56>>2]<<4)|0;J[e>>2]=J[g>>2];J[e+4>>2]=i;i=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=i;b=b+1|0;if((h|0)!=(b|0))continue;break}}i:{a=J[c+40>>2];if((a|0)<=J[c+44>>2])while(1){if(J[c+40>>2]>(a| -0)){J[695492]=0;b=ja(5018,d+24|0,2381890,2382316,619,2422660,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break c}b=J[(J[c+28>>2]+P(a-J[c+32>>2]|0,12)|0)+4>>2];J[695492]=0;_(5445,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[c+44>>2]>(a|0);a=a+1|0;if(b)continue;break}a=J[d+12>>2];J[d+12>>2]=0;if(!a)break g;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[695492];J[695492]=0;if((f|0)!=1){if(b)break g;J[695492]= -0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}ea(0)|0;yc();B()}a=Z()|0;break c}a=Z()|0;break c}bc=d+48|0;return}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0}rv(d+8|0)}ba(a|0)}B()}function e4(a,b){var c=0,d=0,e=0,f=0;f=J[J[a>>2]+96>>2];e=J[J[a+8>>2]+140>>2];if((e|0)>0)tc(J[a+132>>2],J[a+136>>2],L[a+128>>1]<<3);tc(J[a+156>>2]+288|0,J[a+4>>2]+180|0,68);a:{if(b){c=J[a+156>>2];J[c+224>>2]=65536;J[c+228>>2]=65536;tc(J[a+140>>2],J[a+136>>2],L[a+128>>1]<<3);break a}c=J[a+156>>2];d=J[J[a+4>>2]+44>> -2];J[c+224>>2]=J[d+4>>2];J[c+228>>2]=J[d+8>>2]}c=J[a+136>>2]+(L[a+128>>1]<<3)|0;d=c-32|0;J[d>>2]=J[d>>2]+32&-64;d=c-24|0;J[d>>2]=J[d>>2]+32&-64;d=c-12|0;J[d>>2]=J[d>>2]+32&-64;c=c-4|0;J[c>>2]=J[c>>2]+32&-64;b:{if((e|0)>0){d=J[J[a+12>>2]- -64>>2];c=J[a+156>>2];H[c+564|0]=b;J[c+468>>2]=e;J[c+464>>2]=J[c+396>>2];b=J[a+124>>2];J[c+144>>2]=J[a+120>>2];J[c+148>>2]=b;b=J[a+132>>2];J[c+152>>2]=J[a+128>>2];J[c+156>>2]=b;b=J[a+140>>2];J[c+160>>2]=J[a+136>>2];J[c+164>>2]=b;b=J[a+148>>2];J[c+168>>2]=J[a+144>> -2];J[c+172>>2]=b;J[c+176>>2]=J[a+152>>2];b=J[a+156>>2];J[b+356>>2]=3;J[b+364>>2]=0;c=J[b+148>>2];J[b+36>>2]=J[b+144>>2];J[b+40>>2]=c;J[b+68>>2]=J[b+176>>2];c=J[b+172>>2];J[b+60>>2]=J[b+168>>2];J[b+64>>2]=c;c=J[b+164>>2];J[b+52>>2]=J[b+160>>2];J[b+56>>2]=c;c=J[b+156>>2];J[b+44>>2]=J[b+152>>2];J[b+48>>2]=c;J[b+368>>2]=J[b+468>>2];J[b+360>>2]=J[b+464>>2];c=J[b+148>>2];J[b+72>>2]=J[b+144>>2];J[b+76>>2]=c;c=J[b+156>>2];J[b+80>>2]=J[b+152>>2];J[b+84>>2]=c;c=J[b+164>>2];J[b+88>>2]=J[b+160>>2];J[b+92>>2]= -c;c=J[b+172>>2];J[b+96>>2]=J[b+168>>2];J[b+100>>2]=c;J[b+104>>2]=J[b+176>>2];J[b+140>>2]=J[b+176>>2];c=J[b+172>>2];J[b+132>>2]=J[b+168>>2];J[b+136>>2]=c;c=J[b+164>>2];J[b+124>>2]=J[b+160>>2];J[b+128>>2]=c;c=J[b+156>>2];J[b+116>>2]=J[b+152>>2];J[b+120>>2]=c;c=J[b+148>>2];J[b+108>>2]=J[b+144>>2];J[b+112>>2]=c;I[b+352>>1]=1;J[b+348>>2]=65537;I[b+298>>1]=16384;I[b+300>>1]=0;I[b+302>>1]=16384;I[b+304>>1]=0;J[b+316>>2]=1;I[b+294>>1]=16384;I[b+296>>1]=0;J[b+308>>2]=1;J[b+432>>2]=0;J[b+16>>2]=0;b=gc[J[J[b>> -2]+708>>2]](b)|0;c=J[a+156>>2];if(K[c+565|0]?b:0)break b;H[d|0]=K[d|0]|K[c+344|0]<<5|4}if(J[f+64>>2]==40){b=0;if(K[J[a+156>>2]+615|0])break b}b=J[a+136>>2]+(L[a+128>>1]<<3)|0;c=b-32|0;e=J[c+4>>2];J[a+68>>2]=J[c>>2];J[a+72>>2]=e;c=b-24|0;e=J[c+4>>2];J[a+76>>2]=J[c>>2];J[a+80>>2]=e;c=b-16|0;e=J[c+4>>2];J[a+180>>2]=J[c>>2];J[a+184>>2]=e;b=b-8|0;c=J[b+4>>2];J[a+188>>2]=J[b>>2];J[a+192>>2]=c;b=0}return b}function Rqa(a,b,c,d,e,f,g,h,i){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;var j=0,k=Q(0), -l=Q(0),m=0,n=Q(0),o=0,p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=Q(0),w=0,x=Q(0),y=Q(0),z=Q(0),A=Q(0),B=Q(0),C=Q(0);c=bc-32|0;bc=c;if(!(!f|!e)){d=P(g,3);w=h<<2;while(1){f=f-1|0;g=e;while(1){h=J[a+72>>2];j=H[i+1|0];m=H[i+2|0];k=Q(Q(Q(K[i|0])*Q(100))/Q(255));a:{if(k>2])/Q(903.2919921875));N[c+24>>2]=k;k=Q(Q(Q(k/N[h+20>>2])*Q(7.7870001792907715))+Q(.13793103396892548));break a}k=Q(Q(k+Q(16))/Q(116));N[c+24>>2]=k*Q(k*Q(k*N[h+20>>2]))}p=N[h+16>>2];l=Q(Q(Q(j|0)/Q(500))+ -k);b:{if(l>2]=l;l=N[h+24>>2];k=Q(k+Q(Q(m|0)/Q(-200)));c:{if(k>2]=Q(Q(k+Q(-.1379300057888031))*l)/Q(7.7870001792907715);break c}N[c+20>>2]=k*Q(k*Q(k*l))}h=J[a+72>>2];p=N[h+72>>2];k=N[h+96>>2];x=N[h+60>>2];y=N[h+52>>2];z=N[h+56>>2];u=N[h+68>>2];l=N[h+92>>2];A=N[h+48>>2];B=N[h+40>>2];C=N[h+44>>2];m=J[h>>2];r=N[c+20>>2];s=N[c+28>>2];t=N[c+24>>2];q=Q(Q(N[h+36>> -2]*r)+Q(Q(N[h+28>>2]*s)+Q(N[h+32>>2]*t)));n=N[h+88>>2];q=n>2];n=Q(Q((q>2]);d:{if(Q(R(n))(m|0)?m:j)<<2)+h|0)+112>>2];o=(n>Q(0)?.5:-.5)+ +n;e:{if(o<4294967296&o>=0){j=~~o>>>0;break e}j=0}J[c+16>>2]=j;m=J[h>>2];n=Q(Q(A*r)+Q(Q(B*s)+Q(C*t)));n=l>2]);f:{if(Q(R(l))(m|0)?m:j)<<2)+h|0)+6116>>2];o=(l>Q(0)?.5:-.5)+ +l;g:{if(o<4294967296& -o>=0){j=~~o>>>0;break g}j=0}J[c+12>>2]=j;m=J[h>>2];l=Q(Q(x*r)+Q(Q(y*s)+Q(z*t)));l=k>2]);h:{if(Q(R(k))(m|0)?m:j)<<2)+h|0)+12120>>2];o=(k>Q(0)?.5:-.5)+ +k;i:{if(o<4294967296&o>=0){j=~~o>>>0;break i}j=0}J[c+8>>2]=j;j=J[c+16>>2];m=J[h+76>>2];J[c+16>>2]=j>>>0>>0?j:m;j=J[c+12>>2];m=J[h+80>>2];J[c+12>>2]=j>>>0>>0?j:m;j=J[c+8>>2];h=J[h+84>>2];J[c+8>>2]=h>>>0>j>>>0?j:h;J[b>>2]=J[c+16>>2]|J[c+12>>2]<<8|J[c+8>>2]<< -16|-16777216;i=i+3|0;b=b+4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+w|0;if(f)continue;break}}bc=c+32|0}function Fe(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;a:{if(K[a+28|0]){l=J[a+24>>2];h=l&10;m=J[a+12>>2];i=J[a+8>>2];j=J[a>>2];e=((m|0)<(d|0))<<1|(i|0)<(c|0)|((j|0)>(c|0))<<2;n=J[a+4>>2];k=e|((n|0)>(d|0))<<3;b:{if((h|0)==(k&10)?h:0)break b;h=J[a+20>>2];g=J[a+16>>2];c:switch(l<<1&10|e&5){case 0:Ui(a,b,g,h,c,d,l,k);J[a+24>>2]=k;break a;case 1:f=+(i-g|0)*+(d-h|0)/+(c-g|0);f=f+ -(f<0?-.5:.5);d:{if(R(f)<2147483648){e=~~f;break d}e=-2147483648}e=e+h|0;j=((e|0)<(n|0))<<3|((e|0)>(m|0))<<1;Ui(a,b,g,h,i,e,l,j);g=b;b=J[a+8>>2];Ui(a,g,b,e,b,d,j,k);J[a+24>>2]=k;break a;case 2:f=+(i-g|0)*+(d-h|0)/+(c-g|0);f=f+(f<0?-.5:.5);e:{if(R(f)<2147483648){e=~~f;break e}e=-2147483648}g=e+h|0;j=((g|0)<(n|0))<<3|((g|0)>(m|0))<<1;Ui(a,b,i,h,i,g,l,j);Ui(a,b,J[a+8>>2],g,c,d,j,k);J[a+24>>2]=k;break a;case 3:Ui(a,b,i,h,i,d,l,k);J[a+24>>2]=k;break a;case 4:f=+(j-g|0)*+(d-h|0)/+(c-g|0);f=f+(f<0?-.5:.5); -f:{if(R(f)<2147483648){e=~~f;break f}e=-2147483648}e=e+h|0;i=((e|0)<(n|0))<<3|((e|0)>(m|0))<<1;Ui(a,b,g,h,j,e,l,i);g=b;b=J[a>>2];Ui(a,g,b,e,b,d,i,k);J[a+24>>2]=k;break a;case 6:o=+(d-h|0);p=+(c-g|0);f=+(i-g|0)*o/p;f=f+(f<0?-.5:.5);g:{if(R(f)<2147483648){e=~~f;break g}e=-2147483648}e=e+h|0;q=((e|0)<(n|0))<<3|((e|0)>(m|0))<<1;Ui(a,b,i,h,i,e,l,q);l=J[a+8>>2];i=e;e=J[a>>2];f=+(j-g|0)*o/p;f=f+(f<0?-.5:.5);h:{if(R(f)<2147483648){g=~~f;break h}g=-2147483648}j=g+h|0;h=((j|0)<(n|0))<<3|((j|0)>(m|0))<<1;Ui(a, -b,l,i,e,j,q,h);e=b;b=J[a>>2];Ui(a,e,b,j,b,d,h,k);J[a+24>>2]=k;break a;case 8:f=+(j-g|0)*+(d-h|0)/+(c-g|0);f=f+(f<0?-.5:.5);i:{if(R(f)<2147483648){e=~~f;break i}e=-2147483648}g=e+h|0;i=((g|0)<(n|0))<<3|((g|0)>(m|0))<<1;Ui(a,b,j,h,j,g,l,i);Ui(a,b,J[a>>2],g,c,d,i,k);J[a+24>>2]=k;break a;case 9:o=+(d-h|0);p=+(c-g|0);f=+(j-g|0)*o/p;f=f+(f<0?-.5:.5);j:{if(R(f)<2147483648){e=~~f;break j}e=-2147483648}e=e+h|0;q=((e|0)<(n|0))<<3|((e|0)>(m|0))<<1;Ui(a,b,j,h,j,e,l,q);l=J[a>>2];j=e;e=J[a+8>>2];f=+(i-g|0)*o/p; -f=f+(f<0?-.5:.5);k:{if(R(f)<2147483648){g=~~f;break k}g=-2147483648}i=g+h|0;h=((i|0)<(n|0))<<3|((i|0)>(m|0))<<1;Ui(a,b,l,j,e,i,q,h);e=b;b=J[a+8>>2];Ui(a,e,b,i,b,d,h,k);J[a+24>>2]=k;break a;case 12:break c;default:break b}Ui(a,b,j,h,j,d,l,k)}J[a+24>>2]=k;break a}oo(b,J[a+16>>2],J[a+20>>2],c,d)}J[a+20>>2]=d;J[a+16>>2]=c}function rra(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;j=bc-32|0;bc=j;a:{c=J[b+12>>2];if(!c){J[a>>2]=0;md(a,0);break a}i=J[c+8>>2];c=J[c+4>>2];d=rc(72);J[695492]= -0;f=ha(5381,d|0,i|0,c|0,0)|0;g=J[695492];J[695492]=0;b:{c:{if((g|0)!=1){J[a>>2]=0;md(a,f);d=J[b+12>>2];d:{e:{f:{g:{b=J[a>>2];h:{if(!J[b+20>>2]){J[695492]=0;_(5017,b|0);f=J[695492];J[695492]=0;if((f|0)==1)break h}i:{if(!L[b+8>>1]){e=L[b+14>>1];b=L[b+12>>1];if(J[682142]<(e+b|0)){J[695492]=0;c=ja(5018,j+8|0,2390201,2390381,577,2381799,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(c);break d}b=b+J[682141]|0;break i}b=J[b+ -20>>2]+L[b+12>>1]|0}f=L[J[a>>2]+14>>1];J[695492]=0;la(5507,d|0,b|0,f|0,1,0);b=J[695492];J[695492]=0;if((b|0)==1)break h;j:{if((i|0)<=0)break j;if((c|0)>0){k=c&-4;f=c&3;l=c>>>0<4;d=0;while(1){k:{b=J[a>>2];if(!J[b+20>>2]){J[695492]=0;_(5017,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break k}c=L[b+14>>1];l:{if(L[b+8>>1]<=d>>>0){b=L[b+12>>1];if(J[682142]<(b+c|0))break g;c=b+J[682141]|0;break l}c=L[b+12>>1]+(J[b+20>>2]+P(c,d)|0)|0}g=0;b=0;h=0;if(!l)while(1){e=b+c|0;H[e|0]=K[e|0]^128;e=c+(b|1)|0;H[e|0]=K[e| -0]^128;e=c+(b|2)|0;H[e|0]=K[e|0]^128;e=c+(b|3)|0;H[e|0]=K[e|0]^128;b=b+4|0;h=h+4|0;if((k|0)!=(h|0))continue;break}if(f)while(1){h=b+c|0;H[h|0]=K[h|0]^128;b=b+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break j}break}b=Z()|0;break d}c=J[a>>2];if(!J[c+20>>2]){c=0;while(1){b=J[a>>2];if(!J[b+20>>2]){J[695492]=0;_(5017,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break f}if(J[682142]<(L[b+12>>1]+L[b+14>>1]|0)&L[b+8>>1]<=c>>>0)break g;c=c+1|0;if((i|0)!=(c|0))continue;break}break j}b= -0;d=J[682142];f=L[c+14>>1];g=L[c+8>>1];while(1){if((d|0)<(f+L[c+12>>1]|0)&b>>>0>=g>>>0)break g;b=b+1|0;if((i|0)!=(b|0))continue;break}}b=J[a>>2];J[695492]=0;da(5372,b|0,256);b=J[695492];J[695492]=0;if((b|0)!=1)break a}b=Z()|0;break d}J[695492]=0;c=ja(5018,j+8|0,2390201,2390381,577,2381799,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(c);break d}b=Z()|0;break d}b=Z()|0}vc(a);break c}b=Z()|0;qc(d)}ba(b|0)}B()}bc=j+32| -0}function cU(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;k=bc-32|0;bc=k;i=J[b>>2];f=Ns(i);J[a>>2]=f;a:{b:{if(f-8>>>0<=4294967288){a=Kc(k+8|0,2382630,2373412,254,2406850,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}j=nk(i);h=nk(i);m=nk(i);l=nk(i);o=a,p=nk(i)-32768|0,J[o+20>>2]=p;o=a,p=Ms(i),J[o+24>>2]=p;f=a+20|0;j=j-32768|0;n=32768-h|0;g=h-32768|0;m=m-32768|0;h=32768-l|0;l=l-32768|0;c:{d:{if(e){d=J[a>>2];e:{if(!(d>>>0>5|!(1<>2]+(h+ -n|0)|0;d=e+4|0;break e}g=J[e+8>>2]+g|0;d=e+12|0}h=f;e=J[e+24>>2]+J[e+20>>2]|0;break d}if(!d)break c;g=J[d+16>>2]+(h+n|0)|0;h=d+20|0;d=d+4|0;e=J[f>>2]}d=J[d>>2];J[f>>2]=e+J[h>>2];j=d+j|0}J[a+4>>2]=j;J[a+16>>2]=g+l;J[a+12>>2]=j+m;J[a+8>>2]=g;j=Ms(i);d=J[a+20>>2];if(!((d|0)>=0&(d+J[a+24>>2]|0)<=(c|0))){a=Kc(k+8|0,2382630,2373412,293,2406850,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}i=a+28|0;Es(i);if((j|0)>0){e=0;while(1){f=bc+-64|0;bc=f;J[f+28>>2]=0;J[f+32>>2]=0; -J[f+36>>2]=0;J[f+40>>2]=0;h=f+44|0;d=h;J[d>>2]=0;J[d+4>>2]=0;J[f+52>>2]=0;J[f+56>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f+16>>2]=1;J[d>>2]=2407112;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;d=J[a>>2];J[f+36>>2]=0;J[f+40>>2]=0;J[f+60>>2]=a;J[f+16>>2]=d;J[695492]=0;d=$(4,56)|0;g=J[695492];J[695492]=0;f:{g:{if((g|0)==1)break g;J[d>>2]=0;J[d+4>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;g=J[f+20>> -2];J[d+8>>2]=J[f+16>>2];J[d+12>>2]=g;g=J[f+28>>2];J[d+16>>2]=J[f+24>>2];J[d+20>>2]=g;g=J[f+36>>2];J[d+24>>2]=J[f+32>>2];J[d+28>>2]=g;J[d+32>>2]=J[f+40>>2];J[695492]=0;aa(5031,d+36|0,h|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break g;J[d+52>>2]=J[f+60>>2];J[695492]=0;g=a+28|0;of(g,d);d=J[695492];J[695492]=0;if((d|0)==1)break g;d=J[a+40>>2];J[f+12>>2]=g;J[f+8>>2]=d;if(!d){J[695492]=0;da(5073,f+8|0,g|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;B()}$c(h);bc=f- -64|0;d=d+8|0;break f}a=Z()|0;$c(h);ba(a| -0);B()}cU(d,b,c,a,e);f=j>>>0>1;j=j-1|0;if(J[d+4>>2]>2]&J[d+8>>2]>2])e=d;else{d=J[a+40>>2];J[k+12>>2]=i;J[k+8>>2]=d;Kn(i,k+8|0)}if(f)continue;break}}bc=k+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function pOa(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,u=0,v=0,w=0,x=0,y=0,z=0;H[a+192|0]=0;H[a+193|0]=0;H[a+194|0]=0;H[a+195|0]=0;H[a+196|0]=0;H[a+197|0]=0;H[a+198|0]=0;H[a+199|0]=0;H[a+248|0]=0;H[a+249|0]=0;H[a+250|0]=0;H[a+251|0]=0; -H[a+252|0]=0;H[a+253|0]=0;H[a+254|0]=0;H[a+255|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+242|0]=0;H[a+243|0]=0;H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;H[a+239|0]=0;H[a+224|0]=0;H[a+225|0]=0;H[a+226|0]=0;H[a+227|0]=0;H[a+228|0]=0;H[a+229|0]=0;H[a+230|0]=0;H[a+231|0]=0;H[a+216|0]=0;H[a+217|0]=0;H[a+218|0]=0;H[a+219|0]=0;H[a+220|0]=0;H[a+221|0]=0;H[a+222|0]=0;H[a+223|0]=0;H[a+208|0]=0;H[a+209|0]=0;H[a+210| -0]=0;H[a+211|0]=0;H[a+212|0]=0;H[a+213|0]=0;H[a+214|0]=0;H[a+215|0]=0;H[a+200|0]=0;H[a+201|0]=0;H[a+202|0]=0;H[a+203|0]=0;H[a+204|0]=0;H[a+205|0]=0;H[a+206|0]=0;H[a+207|0]=0;g=a;while(1){d=J[(k<<2)+b>>2]+c|0;e=K[d+11|0];i=K[d|0];f=e+i|0;l=K[d+6|0];n=K[d+5|0];h=l+n|0;j=f-h|0;m=K[d+1|0];o=K[d+10|0];p=m+o|0;q=K[d+7|0];r=K[d+4|0];s=q+r|0;t=p-s|0;u=K[d+9|0];v=K[d+2|0];w=u+v|0;x=K[d+8|0];y=K[d+3|0];z=x+y|0;d=w-z|0;J[g+24>>2]=j-(t+d|0)<<2;f=f+h|0;h=w+z|0;J[g+16>>2]=P(f-h|0,10033)+1024>>11;J[g>>2]=(f+((h+ -p|0)+s|0)<<2)-6144;J[g+8>>2]=((t-d|0)+P(d+j|0,11190)|0)+1024>>11;f=r-q|0;j=m-o|0;h=P(f+j|0,4433);m=h+P(f,-15137)|0;d=i-e|0;e=y-x|0;i=n-l|0;f=v-u|0;J[g+12>>2]=((m+P(d-e|0,10703)|0)+P(i+f|0,-4433)|0)+1024>>11;l=P(d+e|0,7053);n=l+P(e,5946)|0;e=P(e+f|0,-1512);h=h+P(j,6270)|0;J[g+28>>2]=(((n+e|0)-h|0)+P(i,-9191)|0)+1024>>11;j=e;e=P(d+f|0,9191)+1024|0;J[g+20>>2]=((j+(e+P(f,-19165)|0)|0)-m|0)+P(i,7053)>>11;J[g+4>>2]=(h+(l+(e+P(d,-4758)|0)|0)|0)+P(i,1512)>>11;g=g+32|0;k=k+1|0;if((k|0)!=6)continue;break}b= -7;while(1){g=J[a+160>>2];d=J[a>>2];c=g+d|0;e=J[a+96>>2];i=J[a+64>>2];f=e+i|0;J[a+64>>2]=P(c-f|0,17837)+32768>>16;c=c+f|0;f=J[a+128>>2];k=J[a+32>>2];h=f+k|0;J[a+128>>2]=P(c-(h<<1)|0,10298)+32768>>16;J[a>>2]=P(c+h|0,14564)+32768>>16;c=i-e|0;g=d-g|0;d=P(c+g|0,5331)+32768|0;e=k-f|0;J[a+160>>2]=d+P(c-e|0,14564)>>16;J[a+96>>2]=P(g-(c+e|0)|0,14564)+32768>>16;J[a+32>>2]=d+P(g+e|0,14564)>>16;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function dzb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[b+8>>2];a:{if(c& -7)break a;b:{d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;c:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+12|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break c}if((Uc(b,K[a+12|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+13|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break d}if((Uc(b,K[a+13|0])|0)==-1)break a}c= -J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+52|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break e}if((Uc(b,K[a+52|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;f:{if((c|0)<=0){if((Uc(b,0)|0)!=-1)break f;break a}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=0}c= -J[a+16>>2];if(Ei(b,c,c>>31))break a;c=J[a+20>>2];if(Ei(b,c,c>>31))break a;c=J[a+24>>2];if(Ei(b,c,c>>31))break a;c=J[a+28>>2];if(Ei(b,c,c>>31))break a;c=J[a+32>>2];if(Ei(b,c,c>>31))break a;c=J[a+36>>2];if(Ei(b,c,c>>31))break a;c=J[a+40>>2];if(Ei(b,c,c>>31))break a;c=J[a+44>>2];if(Ei(b,c,c>>31))break a;c=J[a+48>>2];if(Ei(b,c,c>>31))break a;if(xh(b,2,J[a+60>>2],0))break a;if(xh(b,2,J[a+72>>2],0))break a;d=P(J[a+60>>2],K[a+12|0]);if((d|0)>0){c=0;while(1){if(xh(b,2,J[J[a+68>>2]+(c<<2)>>2],0))break a;c= -c+1|0;if((d|0)!=(c|0))continue;break}}d=P(J[a+72>>2],K[a+13|0]);if((d|0)>0){c=0;while(1){if(xh(b,2,J[J[a+80>>2]+(c<<2)>>2],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}}d=K[a+12|0];g:{if(!d){d=1;break g}c=K[a+52|0];f=d&7;h:{if(d>>>0<8){d=1;break h}g=d&248;d=1;while(1){d=P(c,P(c,P(c,P(c,P(c,P(c,P(c,P(c,d))))))));e=e+8|0;if((g|0)!=(e|0))continue;break}}if(!f)break g;e=0;while(1){d=P(c,d);e=e+1|0;if((f|0)!=(e|0))continue;break}}d=P(K[a+13|0],d);if((d|0)<=0)return 0;c=0;while(1){if(xh(b,2,J[J[a+ -56>>2]+(c<<2)>>2],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}return 0}J[b+8>>2]=c|4}return-1}function ASa(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=bc-272|0;bc=f;J[a>>2]=2205052;J[a+1576>>2]=0;J[a+1056>>2]=0;J[a+1044>>2]=0;J[a+1048>>2]=0;a:{b:{if(!ZA(a,c))break b;if(!J[a+1040>>2]){xc(1,-1,809237,0);break b}if(J[b>>2]!=8){xc(1,-1,826467,0);break b}d=J[b+8>>2];c=rc(8);J[695492]=0;b=$(3184,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+1044>>2]=b;c=rc(16); -J[695492]=0;g=$(3185,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;gc[J[J[d>>2]+20>>2]](d);while(1){c=rc(8);J[695492]=0;b=$(3184,c|0)|0;e=J[695492];J[695492]=0;c:{if((e|0)!=1){d:{e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)!=-1){c=0;while(1){j=e<<24>>24;zd(J[a+1044>>2],j);e:{if(c){c=(e|0)!=13&(e|0)!=10;break e}c=1;if((e|0)==37)break e;c=0;if(!((e|0)==32|e-9>>>0<5))break d}e=gc[J[J[d>>2]+28>>2]](d)|0;if((e|0)!=-1)continue;break}}qc(Rc(b));b=0;break c}f:switch(e-123|0){case 0:case 2:zd(b,j);break c;default:break f}zd(b, -j);c=gc[J[J[d>>2]+32>>2]](d)|0;g:{if(!(e-48>>>0<10|e-45>>>0<2)){if((c|0)==-1)break g;while(1){if(!(c-48>>>0<10|(c|32)-97>>>0<26))break g;gc[J[J[d>>2]+28>>2]](d)|0;c=c<<24>>24;zd(J[a+1044>>2],c);zd(b,c);c=gc[J[J[d>>2]+32>>2]](d)|0;if((c|0)!=-1)continue;break}break g}if((c|0)==-1)break g;while(1){if(c-45>>>0>1&c-48>>>0>=10)break g;gc[J[J[d>>2]+28>>2]](d)|0;c=c<<24>>24;zd(J[a+1044>>2],c);zd(b,c);c=gc[J[J[d>>2]+32>>2]](d)|0;if((c|0)!=-1)continue;break}}break c}break a}if(b){id(g,b);continue}break}gc[J[J[d>> -2]+24>>2]](d);h:{i:{if(J[g+8>>2]>0)if(!sd(J[J[g>>2]>>2],826732))break i;xc(1,-1,809580,0);break h}J[f+8>>2]=0;J[f+12>>2]=1;if(!uI(a,g,f+12|0,f+8|0))break h;J[a+1052>>2]=J[f+8>>2];b=J[a+4>>2];j:{if((b|0)<=0)break j;c=0;if((b|0)!=1){j=b&-2;d=a+16|0;e=a+1064|0;while(1){k=f+16|0;l=c<<3;h=O[d+(c<<4)>>3];O[k+l>>3]=h;O[e+l>>3]=h+-1;m=k;k=c|1;l=k<<3;h=O[d+(k<<4)>>3];O[m+l>>3]=h;O[e+l>>3]=h+-1;c=c+2|0;i=i+2|0;if((j|0)!=(i|0))continue;break}}if(!(b&1))break j;b=c<<3;h=O[((c<<4)+a|0)+16>>3];O[b+(f+16|0)>>3]= -h;O[(a+b|0)+1064>>3]=h+-1}gc[J[J[a>>2]+16>>2]](a,f+16|0,a+1320|0);J[a+1576>>2]=1}i=J[g+8>>2];if((i|0)>0){c=0;while(1){b=J[J[g>>2]+(c<<2)>>2];if(b){qc(Rc(b));i=J[g+8>>2]}c=c+1|0;if((i|0)>(c|0))continue;break}}qc(dd(g))}bc=f+272|0;return a|0}a=Z()|0;qc(c);ba(a|0);B()}function ZO(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=(d|0)<=0;g=0;a:{if(k)break a;g=0;if(H[b|0]<0)break a;e=b;f=d;b:{c:{d:{if(d>>>0<64)break d;e:{if(!(e&3))break e;f:{e=K[e|0];if(e)break f;g=d-8|0;e=b+1|0;g:{if(!(e&3)){f=g;g=d;h=8;break g}i= -8;e=K[e|0];if(e)break f;h=d-16|0;e=b+2|0;if(!(e&3)){f=h;h=16;break g}i=16;e=K[e|0];if(e)break f;g=d-24|0;e=b+3|0;if(!(e&3)){f=g;g=h;h=24;break g}i=24;e=K[e|0];if(e)break f;e=b+4|0;f=d-32|0;h=32}if((g|0)>39)break e;break d}g=K[e+95840|0]+i|0;break a}i=f;while(1){if(J[e>>2]){f=i;break c}e=e+4|0;h=h+32|0;g=(i|0)>63;f=i-32|0;i=f;if(g)continue;break}}if((f|0)<8)break b}i=f;while(1){f=K[e|0];if(f){g=K[f+95840|0]+h|0;break a}e=e+1|0;h=h+8|0;g=(i|0)>15;f=i-8|0;i=f;if(g)continue;break}}g=h;if((f|0)<=0)break a; -g=K[K[e|0]+95840|0];g=((f|0)<(g|0)?f:g)+h|0}i=g;h:{if(k)break h;h=0;if(H[c|0]<0)break h;e=c;f=d;i:{j:{k:{if(d>>>0<64)break k;l:{if(!(e&3))break l;m:{e=K[e|0];if(e)break m;g=d-8|0;e=c+1|0;n:{if(!(e&3)){f=g;g=d;h=8;break n}j=8;e=K[e|0];if(e)break m;h=d-16|0;e=c+2|0;if(!(e&3)){f=h;h=16;break n}j=16;e=K[e|0];if(e)break m;g=d-24|0;e=c+3|0;if(!(e&3)){f=g;g=h;h=24;break n}j=24;e=K[e|0];if(e)break m;e=c+4|0;f=d-32|0;h=32}if((g|0)>39)break l;break k}j=K[e+95840|0]+j|0;break h}j=f;while(1){if(J[e>>2]){f=j; -break j}e=e+4|0;h=h+32|0;g=(j|0)>63;f=j-32|0;j=f;if(g)continue;break}}if((f|0)<8)break i}j=f;while(1){f=K[e|0];if(f){j=K[f+95840|0]+h|0;break h}e=e+1|0;h=h+8|0;g=(j|0)>15;f=j-8|0;j=f;if(g)continue;break}}if((f|0)<=0){j=h;break h}g=K[K[e|0]+95840|0];j=((f|0)<(g|0)?f:g)+h|0}h=0;while(1){e=d;if(j>>>0>>0){o:{if(K[(j>>>3|0)+c|0]>>>((j^-1)&7)&1){f=Sr(c,j,e);break o}f=Ur(c,j,d)}e=f+j|0}p:{if(e>>>0>=i>>>0){f=(j-i|0)+3|0;if(f>>>0>=7){e=d;if(i>>>0>>0){q:{if(K[(i>>>3|0)+b|0]>>>((i^-1)&7)&1){f=Sr(b,i,e); -break q}f=Ur(b,i,d)}e=f+i|0}Fl(a,1,3);r:{if((0-i|0)!=(h|0))if(K[(h>>>3|0)+b|0]>>>((h^-1)&7)&1)break r;Tr(a,i-h|0,94064);Tr(a,e-i|0,94720);break p}Tr(a,i-h|0,94720);Tr(a,e-i|0,94064);break p}f=P(f,6);Fl(a,L[f+96370>>1],L[f+96368>>1]);e=i;break p}Fl(a,1,4)}if(d>>>0>e>>>0){s:{if(K[(e>>>3|0)+b|0]>>>((e^-1)&7)&1){i=Sr(b,e,d);j=Ur(c,e,d)+e|0;f=Sr(c,j,d);break s}i=Ur(b,e,d);j=Sr(c,e,d)+e|0;f=Ur(c,j,d)}j=f+j|0;i=e+i|0;h=e;continue}break}}function Zub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d= -J[a+572>>2];b=J[a+664>>2];a:{if((d|0)<(b|0)|(d|0)>=J[a+668>>2])break a;d=gc[J[a+220>>2]](a,J[a+680>>2]+(d-b|0)|0)|0;b=J[a+580>>2];d=(d+(b<<1)|0)+(J[a+672>>2]<<1)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];i=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!i)break b;if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b+2|0]>>>1&124|K[b+1|0]>>>6;H[d|0]=K[b+1|0]<<2&224|K[b|0]>>>3;b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=g+(b<<3)| -0;if(i){if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b+4|0]>>>1&124|K[b+2|0]>>>6;H[d|0]=K[b+2|0]<<2&224|K[b|0]>>>3;b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d+1|0]=K[b+4|0]>>>1&124|K[b+2|0]>>>6;c=K[b+2|0]<<2&-32|K[b|0]>>>3;break c}i=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;f=P(c,(g<<8|g>>>8)&65535);g=c^65535;j=K[d+1|0];h=K[d|0];f=(f+P(P(g,(j<<6|h>>> -2)&248),257)|0)+32768|0;f=(f>>>16|0)+f|0;k=K[b+4|0]|K[b+5|0]<<8;h=h<<3&248;h=(P(c,(k<<8|k>>>8)&65535)+P(g,h<<8|h)|0)+32768|0;H[d+1|0]=f>>>30|(h>>>16|0)+h>>>25&124;c=(P((i<<8|i>>>8)&65535,c)+P(P(g,j<<1&240),257)|0)+32768|0;c=f>>>22&224|(c>>>16|0)+c>>>30}H[d|0]=c}b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d+1|0]=K[b+2|0]>>>1&124|K[b+1|0]>>>6;c=K[b+1|0]<<2&-32|K[b|0]>>>3;break d}g=K[b|0]; -i=c^255;j=K[d+1|0];h=K[d|0];f=(P(c,K[b+1|0])+P(i,(j<<6|h>>>2)&248)|0)+128|0;f=(f>>>8&255)+f|0;j=(P(i,j<<1&240)+P(c,K[b+2|0])|0)+128|0;H[d+1|0]=f>>>14&3|(j>>>8&255)+j>>>9&124;c=(P(i,h<<3&248)+P(c,g)|0)+128|0;c=(c>>>8&255)+c>>>11&31|f>>>6&224}H[d|0]=c}b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]= -b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function Yub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[a+572>>2];b=J[a+664>>2];a:{if((d|0)<(b|0)|(d|0)>=J[a+668>>2])break a;d=gc[J[a+220>>2]](a,J[a+680>>2]+(d-b|0)|0)|0;b=J[a+580>>2];d=(d+(b<<1)|0)+(J[a+672>>2]<<1)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];i=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!i)break b;if((c|0)<=(e| -0))break a;while(1){H[d+1|0]=K[b|0]>>>1&124|K[b+1|0]>>>6;H[d|0]=K[b+1|0]<<2&224|K[b+2|0]>>>3;b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=g+(b<<3)|0;if(i){if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b|0]>>>1&124|K[b+2|0]>>>6;H[d|0]=K[b+2|0]<<2&224|K[b+4|0]>>>3;b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d+1| -0]=K[b|0]>>>1&124|K[b+2|0]>>>6;c=K[b+2|0]<<2&-32|K[b+4|0]>>>3;break c}i=K[b+4|0]|K[b+5|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;f=P(c,(g<<8|g>>>8)&65535);g=c^65535;j=K[d+1|0];h=K[d|0];f=(f+P(P(g,(j<<6|h>>>2)&248),257)|0)+32768|0;f=(f>>>16|0)+f|0;k=K[b|0]|K[b+1|0]<<8;h=h<<3&248;h=(P(c,(k<<8|k>>>8)&65535)+P(g,h<<8|h)|0)+32768|0;H[d+1|0]=f>>>30|(h>>>16|0)+h>>>25&124;c=(P((i<<8|i>>>8)&65535,c)+P(P(g,j<<1&240),257)|0)+32768|0;c=f>>>22&224|(c>>>16|0)+c>>>30}H[d|0]=c}b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e| -0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d+1|0]=K[b|0]>>>1&124|K[b+1|0]>>>6;c=K[b+1|0]<<2&-32|K[b+2|0]>>>3;break d}g=K[b+2|0];i=c^255;j=K[d+1|0];h=K[d|0];f=(P(c,K[b+1|0])+P(i,(j<<6|h>>>2)&248)|0)+128|0;f=(f>>>8&255)+f|0;j=(P(i,j<<1&240)+P(c,K[b|0])|0)+128|0;H[d+1|0]=f>>>14&3|(j>>>8&255)+j>>>9&124;c=(P(i,h<<3&248)+P(c,g)|0)+128|0;c=(c>>>8&255)+c>>>11&31|f>>>6&224}H[d|0]=c}b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)> -2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function i0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;v=bc-256|0;bc=v;q=J[a+332>>2];b=J[b+84>>2];a=v;g=8;while(1){a:{b:{f= -L[c+32>>1];h=I[c+16>>1];if((f|h)&65535)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;f=P(I[c>>1],J[b>>2])<<2;J[a+192>>2]=f;J[a+160>>2]=f;J[a+128>>2]=f;J[a+96>>2]=f;J[a+64>>2]=f;J[a+32>>2]=f;J[a>>2]=f;j=56;break a}i=P(J[b+192>>2],I[c+96>>1]);k=P(J[b+64>>2],f<<16>>16);f=P(i+k|0,4433);h=P(h,J[b+32>>2]);r=P(J[b+224>>2],I[c+112>>1]);t=P(h+r|0,-7373);n=P(J[b+160>>2],I[c+80>>1]);l=n+h|0;o=P(J[b+96>>2],I[c+48>>1]);p=o+r|0;m=P(l+p|0,9633);j=P(I[c+64>>1],J[b+128>> -2])<<13;s=P(I[c>>1],J[b>>2])<<13|1024;u=j+s|0;k=f+P(k,6270)|0;w=u+k|0;x=t+P(h,12299)|0;h=m+P(l,-3196)|0;l=x+h|0;J[a+224>>2]=w-l>>11;J[a>>2]=l+w>>11;l=s-j|0;f=f+P(i,-15137)|0;i=l+f|0;m=m+P(p,-16069)|0;j=P(o,25172);o=P(n+o|0,-20995);p=m+(j+o|0)|0;J[a+192>>2]=i-p>>11;J[a+32>>2]=i+p>>11;f=l-f|0;h=h+(o+P(n,16819)|0)|0;J[a+160>>2]=f-h>>11;J[a+64>>2]=f+h>>11;f=m+(t+P(r,2446)|0)|0;h=u-k|0;J[a+96>>2]=f+h>>11;f=h-f>>11;j=32}J[(j<<2)+a>>2]=f;c=c+2|0;b=b+4|0;a=a+4|0;f=g>>>0>1;g=g-1|0;if(f)continue;break}b=q+ -128|0;c=v;h=0;while(1){a=J[(h<<2)+d>>2]+e|0;c:{d:{f=J[c+8>>2];g=J[c+4>>2];if(f|g)break d;f=0;if(J[c+12>>2]|J[c+16>>2]|(J[c+20>>2]|J[c+24>>2]))break d;if(J[c+28>>2])break d;g=K[b+(J[c>>2]+16>>>5&1023)|0];H[a+6|0]=g;H[a+5|0]=g;H[a+4|0]=g;H[a+3|0]=g;H[a+2|0]=g;H[a+1|0]=g;H[a|0]=g;f=7;break c}r=J[c+28>>2];t=P(r+g|0,-7373);n=J[c+12>>2];q=n+r|0;o=J[c+20>>2];i=o+g|0;m=P(q+i|0,9633);j=t+P(g,12299)|0;g=m+P(i,-3196)|0;i=j+g|0;k=J[c>>2]+16|0;l=J[c+16>>2];p=k+l<<13;s=P(f,6270);j=f;f=J[c+24>>2];j=P(j+f|0,4433); -s=s+j|0;u=p+s|0;H[a|0]=K[b+(i+u>>>18&1023)|0];H[a+7|0]=K[b+(u-i>>>18&1023)|0];m=m+P(q,-16069)|0;i=P(n,25172);n=P(n+o|0,-20995);q=m+(i+n|0)|0;i=k-l<<13;f=j+P(f,-15137)|0;k=i+f|0;H[a+1|0]=K[b+(q+k>>>18&1023)|0];H[a+6|0]=K[b+(k-q>>>18&1023)|0];g=g+(n+P(o,16819)|0)|0;f=i-f|0;H[a+2|0]=K[b+(g+f>>>18&1023)|0];H[a+5|0]=K[b+(f-g>>>18&1023)|0];f=m+(t+P(r,2446)|0)|0;g=p-s|0;H[a+3|0]=K[b+(f+g>>>18&1023)|0];g=K[b+(g-f>>>18&1023)|0];f=4}H[f+a|0]=g;c=c+32|0;h=h+1|0;if((h|0)!=8)continue;break}bc=v+256|0}function f2a(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;d=bc-1072|0;bc=d;J[d+44>>2]=d+48;e=K[b+11|0];h=e<<24>>24;a:{i=(h|0)<0?J[b+4>>2]:e;f=i+1|0;if(f>>>0<1073741808){b:{if(f>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=f;e=d;break b}e=f|3;if(e>>>0>=1073741823)break a;g=e+1|0;e=rc(g<<2);J[d+4>>2]=f;J[d>>2]=e;J[d+8>>2]=g|-2147483648}f=(h|0)<0?J[b>>2]:b;b=i<<2;b=Zc(e,f,b)+b|0;J[b>>2]=47;J[b+4>>2]=0;b=J[c>>2];e=J[c+4>>2];g=K[c+11|0];J[695492]=0;f=b;b=g<<24>>24<0;c=ga(2794,d|0,(b?f:c)|0,(b? -e:g)|0)|0;b=J[695492];J[695492]=0;c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[d+24>>2]=J[c+8>>2];b=J[c+4>>2];J[d+16>>2]=J[c>>2];J[d+20>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[695492]=0;c=aa(2860,d+16|0,413856)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[d+40>>2]=J[c+8>>2];b=J[c+4>>2];J[d+32>>2]=J[c>>2];J[d+36>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+11|0]<0)qc(J[d>>2]);J[d>>2]=0;e=H[d+43|0];b=(e|0)<0;c=b?J[d+32>>2]:d+32|0;f=0;i:{if(!c)break i;b=b?J[d+36>>2]:e&255;f= -0;if(!b)break i;J[695492]=0;la(2861,c|0,b|0,d+44|0,d|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break f;f=J[d>>2]}b=d+48|0;H[f+b|0]=0;J[695492]=0;c=$(2862,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if((c|0)==-1)break e;J[695492]=0;$(2863,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break e}b=Z()|0;break d}b=Z()|0;break g}b=Z()|0;if(H[d+27|0]>=0)break g;qc(J[d+16>>2])}if(H[d+11|0]>=0)break c;qc(J[d>>2]);ba(b|0);B()}b=Z()|0;break d}j:{g=Qc(d+48|0);if(g>>>0>=2147483632){J[695492]=0;_(1623,d+16|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break j;B()}k:{if(g>>>0<=10){H[d+27|0]=g;c=d+16|0;break k}J[695492]=0;e=(g|15)+1|0;c=$(4,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[d+16>>2]=c;J[d+20>>2]=g;J[d+24>>2]=e|-2147483648}j=tc(c,d+48|0,g)+g|0,k=0,H[j|0]=k;b=J[d+16>>2];c=J[d+20>>2];e=K[d+27|0];J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[695492]=0;f=b;b=e<<24>>24<0;ca(2852,(b?f:d+16|0)|0,(b?c:e)|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);if(H[d+27|0]>=0)break d;qc(J[d+16>>2]);break d}if(H[d+ -27|0]<0)qc(J[d+16>>2]);if(H[d+43|0]<0)qc(J[d+32>>2]);bc=d+1072|0;return}b=Z()|0}if(H[d+43|0]>=0)break c;qc(J[d+32>>2])}ba(b|0);B()}Id(d);B()}Sd();B()}function KT(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0;g=bc-48|0;bc=g;a:{b:{h=J[c+4>>2];f=J[c+12>>2];b=(b|0)<(h|0)?h:(b|0)<(f|0)?b:f-1|0;f=J[a+116>>2];c:{d:{if((b|0)==(f|0))break d;h=J[a+88>>2];if((b|0)==J[a+112>>2])break c;J[a+112>>2]=f;J[a+116>>2]=b;J[a+88>>2]=J[a+100>>2];J[a+ -100>>2]=h;f=J[a+16>>2];i=J[a+20>>2];if(!(f|i)){b=b-J[d+4>>2]|0;d=J[d>>2];f=J[c+8>>2];c=J[c>>2];if(!J[e+20>>2])Li(e);i=L[e+14>>1];e:{if(!(b>>>0>1]&(b|0)>=0)){b=L[e+12>>1];if(J[682142]<(b+i|0)){a=Kc(g+24|0,2378354,2378962,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}b=b+J[682141]|0;break e}b=L[e+12>>1]+(J[e+20>>2]+P(b,i)|0)|0}if((c|0)>=(f|0))break d;e=f-d|0;c=c-d|0;b=b+c|0;while(1){H[h|0]=K[J[a+76>>2]+K[b|0]|0];h=h+1|0;b=b+1|0;c=c+1|0;if((e|0)>(c| -0))continue;break}break d}J[g+8>>2]=J[c>>2]<>2];J[g+20>>2]=b+1<>2]=b<>2]=c<>2]|0,0-J[d+4>>2]|0);b=J[g+12>>2];if(!J[e+20>>2])Li(e);m=L[e+14>>1];f:{if(!(b>>>0>1]&(b|0)>=0)){b=L[e+12>>1];if(J[682142]<(b+m|0)){a=Kc(g+24|0,2378354,2378962,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}b=b+J[682141]|0;break f}b=L[e+12>>1]+(J[e+20>>2]+P(b,m)|0)|0}d=J[g+8>>2];j=J[g+16>>2];if((d|0)>=(j|0))break d; -i=b;n=J[a+16>>2];s=n+J[a+20>>2]|0;b=s-1|0;x=1<>2]-J[g+12>>2]|0;A=2<>2];u=(b|0)>(t|0)?t:b;if((u|0)>0){b=c+o|0;C=(b|0)<(j|0)?b:j;e=v<(j|0)?j:b;w=f-(d+e|0)&3;p=0;D=0-c|0;b=c+i|0;l=J[a+76>>2];E=f+(y-e|0)>>>0<3;e=0;while(1){f=b;q=(b+C|0)+D|0;g:{if(q>>>0<=b>>>0)break g;r=0;if(w)while(1){e=K[K[b|0]+l|0]+e|0;b=b+1|0;r=r+1|0;if((r|0)!=(w|0))continue;break}if(E)break g;while(1){e=K[K[b+3|0]+l|0]+(K[K[b+2|0]+l|0]+(K[K[b+ -1|0]+l|0]+(K[K[b|0]+l|0]+e|0)|0)|0)|0;b=b+4|0;if(q>>>0>b>>>0)continue;break}}b=f+m|0;k=(k-f|0)+q|0;p=p+1|0;if((u|0)!=(p|0))continue;break}}if((k|0)==(A|0))b=e+x>>s;else b=(((k|0)/2|0)+e|0)/(k|0)|0;H[h|0]=b;v=v+1|0;h=h+1|0;c=c+o|0;if((j|0)>(c|0))continue;break}}h=J[a+100>>2]}bc=g+48|0;return h}B()}b=Z()|0;Fc(a);ba(b|0);B()}function fpa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=bc-48|0;bc=g;mT(g+40|0,b);c=J[g+40>>2];if(c)d=J[c+8>>2];c=g+40|0;sc(c);e=g+36|0;f=J[b>>2];if(f)f=J[f+8>>2];else f= -0;i=ch(c,e,f+1|0,1);c=J[b>>2];ff(J[g+36>>2],J[(c?c+12|0:2728584)>>2]);c=J[b>>2];J[695492]=0;f=J[g+36>>2];c=aa(6066,c|0,d|0)|0;d=J[695492];J[695492]=0;a:{if((d|0)!=1){J[g+28>>2]=0;J[g+32>>2]=J[682146];f=c+f|0;c=f;while(1){b:{c:{d:{e:{f:{g:{h:{d=K[c|0];i:{if(d){if((d|0)!=63&(d|0)!=35)break b;J[695492]=0;aa(5054,g+28|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;H[c|0]=0}c=Be(f,28638);if(c)while(1){d=Qc(c);d=((d|0)>=3?3:d)+c|0;while(1){e=K[d|0];H[c|0]=e;c=c+1|0;d=d+1|0;if(e)continue;break}c=Be(f, -28638);if(c)continue;break}c=Be(f,28640);if(c)while(1){d=Qc(c);d=((d|0)>0?1:d)+c|0;while(1){e=K[d|0];H[c|0]=e;c=c+1|0;d=d+1|0;if(e)continue;break}c=Be(f,28640);if(c)continue;break}c=Be(f,28643);if(c)while(1){d=Qc(c);d=((d|0)>=2?2:d)+c|0;while(1){e=K[d|0];H[c|0]=e;c=c+1|0;d=d+1|0;if(e)continue;break}c=Be(f,28643);if(c)continue;break}d=Be(f,28647);if(d)while(1){c=d;j:{while(1){c=c-1|0;if(f>>>0>c>>>0)break j;if(K[c|0]!=47)continue;break}e=Qc(c);d=(d-c|0)+3|0;d=((d|0)>(e|0)?e:d)+c|0;while(1){e=K[d|0]; -H[c|0]=e;c=c+1|0;d=d+1|0;if(e)continue;break}}d=Be(f,28647);if(d)continue;break}c=Qc(f)+f|0;e=c-2|0;k:{if(e>>>0>>0)break k;J[695492]=0;d=aa(4989,g+20|0,28652)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;e=fd(d,e,-1);h=J[695492];J[695492]=0;if((h|0)==1)break e;sc(d);if(e)break k;H[c-1|0]=0}c=Qc(f)+f|0;e=c-3|0;l:{if(e>>>0>>0)break l;J[695492]=0;d=aa(4989,g+12|0,28655)|0;h=J[695492];J[695492]=0;if((h|0)==1)break f;J[695492]=0;e=fd(d,e,-1);h=J[695492];J[695492]=0;if((h|0)==1)break g; -sc(d);if(e)break l;c=c-4|0;if(f>>>0>c>>>0)break l;while(1){if(K[c|0]==47){H[c+1|0]=0;break l}c=c-1|0;if(f>>>0<=c>>>0)continue;break}}J[695492]=0;aa(5054,b|0,J[g+36>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;J[695492]=0;ca(5122,a|0,b|0,g+28|0);a=J[695492];J[695492]=0;if((a|0)!=1)break h}c=Z()|0;break c}sc(g+28|0);_c(i);bc=g+48|0;return}c=Z()|0;sc(d);break c}c=Z()|0;break c}c=Z()|0;sc(d);break c}c=Z()|0}sc(g+28|0);break a}c=c+1|0;continue}}c=Z()|0}_c(i);ba(c|0);B()}function cvb(a){a=a|0;var b= -0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[a+572>>2];b=J[a+664>>2];a:{if((d|0)<(b|0)|(d|0)>=J[a+668>>2])break a;d=gc[J[a+220>>2]](a,J[a+680>>2]+(d-b|0)|0)|0;b=J[a+580>>2];d=(d+(b<<1)|0)+(J[a+672>>2]<<1)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];i=K[a+649|0];f=J[a+644>>2];b:{if(!K[a+648|0]){b=f+(b<<2)|0;if(!i)break b;if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)> -2])continue;break}break a}b=f+(b<<3)|0;if(i){if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;c=K[b+2|0]<<3&-32|K[b+4|0]>>>3;break c}i=K[b+4|0]|K[b+5|0]<<8;f=K[b+2|0]|K[b+3|0]<<8;g=P(c,(f<<8|f>>>8)&65535);f=K[d|0];j=K[d+1|0]; -h=f>>>3&28|j<<5;k=h<<8&64512|h;h=c^65535;g=(g+P(k,h)|0)+32768|0;g=(g>>>16|0)+g|0;k=K[b|0]|K[b+1|0]<<8;f=(P(c,(k<<8|k>>>8)&65535)+P(h,f<<11&63488|f<<3)|0)+32768|0;H[d+1|0]=g>>>29|(f>>>16|0)+f>>>24&248;c=(P((i<<8|i>>>8)&65535,c)+P(P(h,j&248),257)|0)+32768|0;c=g>>>21&224|(c>>>16|0)+c>>>27}H[d|0]=c}b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;c=K[b+1|0]<<3&-32| -K[b+2|0]>>>3;break d}f=K[b+2|0];i=c^255;h=K[d+1|0];j=K[d|0];g=(P(c,K[b+1|0])+P(i,(h<<5|j>>>3)&252)|0)+128|0;g=(g>>>8&255)+g|0;h=(P(i,h&248)+P(c,K[b|0])|0)+128|0;H[d+1|0]=g>>>13&7|(h>>>8&255)+h>>>8&248;c=(P(i,j<<3&248)+P(c,f)|0)+128|0;c=(c>>>8&255)+c>>>11&31|g>>>5&224}H[d|0]=c}b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2]; -if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function Pua(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;J[a+8>>2]=0;J[a>>2]=2411928;J[a+4>>2]=0;J[a+12>>2]=J[682146];g=a+8|0;a:{b:{c=J[b+8>>2];c:{d:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,d+4|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break d;b=Z()|0;break c}J[d+4>>2]=0}J[695492]=0;aa(4993,g|0,d+4|0)|0;c=J[695492];J[695492]=0; -e:{if((c|0)!=1){c=J[d+4>>2];J[d+4>>2]=0;if(!c)break e;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[695492];J[695492]=0;if((e|0)!=1){if(f)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e}break a}b=Z()|0;vc(d+4|0);break c}c=J[a+8>>2];c=J[(c?c+12|0:2728584)>>2];J[a+16>>2]=0;J[a+12>>2]=c;J[a+20>>2]=J[682146];f=a+16|0;c=J[b+16>>2];f:{g:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+8|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break g;b=Z()|0;break f}J[d+8>>2]=0}J[695492]=0; -aa(4993,f|0,d+8|0)|0;c=J[695492];J[695492]=0;h:{if((c|0)!=1){c=J[d+8>>2];J[d+8>>2]=0;if(!c)break h;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)!=1){if(e)break h;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break h}break a}b=Z()|0;vc(d+8|0);break f}c=J[a+16>>2];c=J[(c?c+12|0:2728584)>>2];J[a+24>>2]=0;J[a+20>>2]=c;J[a+28>>2]=J[682146];c=a+24|0;e=J[b+24>>2];i:{j:{if(e){h=J[J[e>>2]+28>>2];J[695492]=0;ca(h|0,d+12|0,e|0,1);e=J[695492];J[695492]=0;if((e|0)!=1)break j; -b=Z()|0;break i}J[d+12>>2]=0}J[695492]=0;aa(4993,c|0,d+12|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break b;J[695492]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;f=J[695492];J[695492]=0;if((f|0)!=1){if(g)break b;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b}break a}b=Z()|0;vc(d+12|0)}sc(c)}sc(f)}sc(g);ed(a);ba(b|0);B()}c=J[a+24>>2];J[a+28>>2]=J[(c?c+12|0:2728584)>>2];c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+44>>2];J[a+40>>2]=J[b+40>>2];J[a+44>> -2]=c;c=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=c;c=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=c;g=b- -64|0;f=J[g+4>>2];c=a- -64|0;J[c>>2]=J[g>>2];J[c+4>>2]=f;c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;c=J[b+84>>2];J[a+80>>2]=J[b+80>>2];J[a+84>>2]=c;H[a+88|0]=K[b+88|0];bc=d+16|0;return a|0}ea(0)|0;yc();B()}function bvb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[a+572>>2];b=J[a+664>>2];a:{if((d|0)<(b|0)|(d|0)>=J[a+668>>2])break a;d=gc[J[a+220>>2]](a,J[a+680>>2]+(d-b|0)|0)|0; -b=J[a+580>>2];d=(d+(b<<1)|0)+(J[a+672>>2]<<1)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];i=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!i)break b;if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b+2|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b|0]>>>3;b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=g+(b<<3)|0;if(i){if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b+4|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b|0]>>>3;b=b+8|0; -c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d+1|0]=K[b+4|0]&248|K[b+2|0]>>>5;c=K[b+2|0]<<3&-32|K[b|0]>>>3;break c}i=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;f=P(c,(g<<8|g>>>8)&65535);g=c^65535;j=K[d+1|0];h=K[d|0];f=(f+P(P(g,(j<<5|h>>>3)&252),257)|0)+32768|0;f=(f>>>16|0)+f|0;k=K[b+4|0]|K[b+5|0]<<8;h=h<<3&248;h=(P(c,(k<<8|k>>>8)&65535)+P(g,h<<8|h)|0)+32768|0;H[d+ -1|0]=f>>>29|(h>>>16|0)+h>>>24&248;c=(P((i<<8|i>>>8)&65535,c)+P(P(g,j&248),257)|0)+32768|0;c=f>>>21&224|(c>>>16|0)+c>>>27}H[d|0]=c}b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d+1|0]=K[b+2|0]&248|K[b+1|0]>>>5;c=K[b+1|0]<<3&-32|K[b|0]>>>3;break d}g=K[b|0];i=c^255;j=K[d+1|0];h=K[d|0];f=(P(c,K[b+1|0])+P(i,(j<<5|h>>>3)&252)|0)+128|0;f=(f>>>8&255)+f|0;j=(P(i,j&248)+P(c,K[b+2|0])|0)+128|0;H[d+ -1|0]=f>>>13&7|(j>>>8&255)+j>>>8&248;c=(P(i,h<<3&248)+P(c,g)|0)+128|0;c=(c>>>8&255)+c>>>11&31|f>>>5&224}H[d|0]=c}b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function uha(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;g=bc-256|0;bc=g;J[g+248>>2]=c;J[g+252>>2]=b;h=Se(g+196|0);J[695492]=0;c=g+16|0;a=J[d+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;a:{b:{c:{d:{if((a|0)!=1){J[695492]=0;b=$(6613,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;ha(6634,b|0,2617936,2617962,g+208|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;b=J[c>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)gc[J[J[b>>2]+8>>2]](b);a=Se(g+184|0);if(K[a+11| -0]>>>7|0)b=(J[a+8>>2]&2147483647)-1|0;else b=10;J[695492]=0;da(6621,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=b;J[g+12>>2]=c;J[g+8>>2]=0;while(1){e:{J[695492]=0;d=aa(6531,g+252|0,g+248|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(d)break c;d=J[g+180>>2];if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if((d|0)==(c+b|0)){if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;J[695492]= -0;da(6621,a|0,b<<1);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=c+b}J[695492]=0;i=g+252|0;d=$(6532,i|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[695492]=0;d=So(d,16,b,g+180|0,g+8|0,0,h,g+16|0,g+12|0,g+208|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;if(d)break c;J[695492]=0;$(6534,i|0)|0;c=J[695492];J[695492]=0;if((c|0)!= -1)continue}break}break b}b=Z()|0;break a}b=Z()|0;c=J[g+16>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)gc[J[J[c>>2]+8>>2]](c);break a}J[695492]=0;da(6621,a|0,J[g+180>>2]-b|0);b=J[695492];J[695492]=0;f:{if((b|0)==1)break f;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[695492]=0;d=pa(6638)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[g>>2]=f;J[695492]=0;c=ha(6639,b|0,d|0,5886,g|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if((c|0)!=1)J[e>>2]=4;J[695492]=0;c=aa(6531,g+252|0,g+248|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;b=J[g+252>>2];ad(a);ad(h);bc=g+256|0;return b|0}}b=Z()|0;ad(a)}ad(h);ba(b|0);B()}function eha(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;g=bc-320|0;bc=g;J[g+312>>2]=c;J[g+316>>2]=b;h=Se(g+196|0);J[695492]=0;c=g+16|0;a=J[d+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;a:{b:{c:{d:{if((a|0)!=1){J[695492]=0;b=$(6537,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;ha(6653,b|0,2617936,2617962,g+208|0)|0;a= -J[695492];J[695492]=0;if((a|0)==1)break d;b=J[c>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)gc[J[J[b>>2]+8>>2]](b);a=Se(g+184|0);if(K[a+11|0]>>>7|0)b=(J[a+8>>2]&2147483647)-1|0;else b=10;J[695492]=0;da(6621,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=b;J[g+12>>2]=c;J[g+8>>2]=0;while(1){e:{J[695492]=0;d=aa(6645,g+316|0,g+312|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(d)break c;d=J[g+180>>2];if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+ -11|0]&127;if((d|0)==(c+b|0)){if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;J[695492]=0;da(6621,a|0,b<<1);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=c+b}J[695492]=0;i=g+316|0;d=$(6646,i|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[695492]=0;d=Ro(d,16,b,g+180|0,g+8|0, -0,h,g+16|0,g+12|0,g+208|0);c=J[695492];J[695492]=0;if((c|0)==1)break e;if(d)break c;J[695492]=0;$(6648,i|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)continue}break}break b}b=Z()|0;break a}b=Z()|0;c=J[g+16>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)gc[J[J[c>>2]+8>>2]](c);break a}J[695492]=0;da(6621,a|0,J[g+180>>2]-b|0);b=J[695492];J[695492]=0;f:{if((b|0)==1)break f;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[695492]=0;d=pa(6638)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[g>>2]=f;J[695492]=0;c=ha(6639, -b|0,d|0,5886,g|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if((c|0)!=1)J[e>>2]=4;J[695492]=0;c=aa(6645,g+316|0,g+312|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;b=J[g+316>>2];ad(a);ad(h);bc=g+320|0;return b|0}}b=Z()|0;ad(a)}ad(h);ba(b|0);B()}function JK(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,u=0;s=d+f;j=+J[a+24>>2];f=Cf(j*f,j*e);j=Cf(j*h,j*g);p=O[a+8>>3];p=Zy(p/(p+.125/O[a+48>>3]));n=J[b+4>>2];o=J[b>>2];k=o>>>6|0;if(n>>>0<=k>>>0){i=J[b+ -8>>2];a:{if(i>>>0>k>>>0){l=J[b+12>>2];break a}i=i+J[b+16>>2]|0;l=rc(i>>>0>1073741823?-1:i<<2);m=J[b+12>>2];if(m){tc(l,m,n<<2);qc(m);i=J[b+8>>2]+J[b+16>>2]|0;o=J[b>>2];n=J[b+4>>2]}J[b+8>>2]=i;J[b+12>>2]=l}t=(k<<2)+l|0,u=rc(1024),J[t>>2]=u;J[b+4>>2]=n+1}p=p+p;k=J[J[b+12>>2]+(k<<2)>>2]+((o&63)<<4)|0;O[k+8>>3]=s;O[k>>3]=c+e;m=J[b>>2]+1|0;J[b>>2]=m;b:{if(J[a+24>>2]>0){e=(f>j?j+6.283185307179586:j)-f;j=e/p;c:{if(R(j)<2147483648){k=~~j;break c}k=-2147483648}if((k|0)<=0)break b;e=e/+(k+1|0);n=0;while(1){j= -O[a>>3];f=e+f;p=j*xe(f)+d;j=j*He(f)+c;l=J[b+4>>2];q=m>>>6|0;if(l>>>0<=q>>>0){i=J[b+8>>2];d:{if(i>>>0>q>>>0){i=J[b+12>>2];break d}o=i+J[b+16>>2]|0;i=rc(o>>>0>1073741823?-1:o<<2);r=J[b+12>>2];if(r){tc(i,r,l<<2);qc(r);o=J[b+8>>2]+J[b+16>>2]|0;m=J[b>>2];l=J[b+4>>2]}J[b+8>>2]=o;J[b+12>>2]=i}t=(q<<2)+i|0,u=rc(1024),J[t>>2]=u;J[b+4>>2]=l+1}i=J[J[b+12>>2]+(q<<2)>>2]+((m&63)<<4)|0;O[i+8>>3]=p;O[i>>3]=j;m=J[b>>2]+1|0;J[b>>2]=m;n=n+1|0;if((k|0)!=(n|0))continue;break}break b}e=f-(f>3];f=f-e;p=j*xe(f)+d;j=j*He(f)+c;l=J[b+4>>2];q=m>>>6|0;if(l>>>0<=q>>>0){i=J[b+8>>2];f:{if(i>>>0>q>>>0){i=J[b+12>>2];break f}o=i+J[b+16>>2]|0;i=rc(o>>>0>1073741823?-1:o<<2);r=J[b+12>>2];if(r){tc(i,r,l<<2);qc(r);o=J[b+8>>2]+J[b+16>>2]|0;m=J[b>>2];l=J[b+4>>2]}J[b+8>>2]=o;J[b+12>>2]=i}t=(q<<2)+i|0,u=rc(1024),J[t>>2]=u;J[b+4>>2]=l+1}i=J[J[b+12>>2]+(q<<2)>>2]+((m&63)<<4)|0;O[i+8>>3]=p;O[i>>3]=j; -m=J[b>>2]+1|0;J[b>>2]=m;n=n+1|0;if((k|0)!=(n|0))continue;break}}n=J[b+4>>2];i=m>>>6|0;if(n>>>0<=i>>>0){a=J[b+8>>2];g:{if(a>>>0>i>>>0){a=J[b+12>>2];break g}k=a+J[b+16>>2]|0;a=rc(k>>>0>1073741823?-1:k<<2);l=J[b+12>>2];if(l){tc(a,l,n<<2);qc(l);m=J[b>>2];n=J[b+4>>2];k=J[b+8>>2]+J[b+16>>2]|0}J[b+8>>2]=k;J[b+12>>2]=a}t=(i<<2)+a|0,u=rc(1024),J[t>>2]=u;J[b+4>>2]=n+1}a=J[J[b+12>>2]+(i<<2)>>2]+((m&63)<<4)|0;O[a+8>>3]=d+h;O[a>>3]=c+g;J[b>>2]=J[b>>2]+1}function fPa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;q=bc-96|0;d=a;while(1){a:{f=d;d=J[(r<<2)+b>>2]+c|0;u=K[d+9|0];v=K[d+1|0];p=u+v|0;w=K[d+10|0];x=K[d|0];n=w+x|0;y=K[d+8|0];g=K[d+2|0];k=y+g|0;h=K[d+7|0];o=K[d+3|0];e=h+o|0;i=K[d+6|0];l=K[d+4|0];j=i+l|0;d=K[d+5|0];J[f>>2]=(((((p+n|0)+k|0)+e|0)+j|0)+d<<1)-2816;m=d<<1;n=n-m|0;e=e-m|0;t=k-m|0;s=j-m|0;d=P(n+e|0,11116)+P(t+s|0,1649)|0;j=P(n,-13275);p=p-m|0;n=P(n-p|0,9746)+2048|0;J[f+24>>2]=d+((j+n|0)+P(t,-6461)|0)>>12;k=P(p- -e|0,7587);J[f+8>>2]=(d+((k+P(e,-8342)|0)+P(s,-11395)|0)|0)+2048>>12;e=o-h|0;j=g-y|0;d=P(e+j|0,3264);g=v-u|0;o=P(g+e|0,-11467);m=o+(d+P(e,10695)|0)|0;h=x-w|0;e=P(h+e|0,6263);i=l-i|0;J[f+28>>2]=((m+e|0)+P(i,-10538)|0)+2048>>12;l=P(g+j|0,-6263);m=l+P(j,-16294)|0;j=P(h+j|0,8756);J[f+20>>2]=(((m+j|0)+d|0)+P(i,11467)|0)+2048>>12;d=P(g+h|0,10538)+2048|0;J[f+12>>2]=(o+(l+(d+P(g,10456)|0)|0)|0)+P(i,-8756)>>12;J[f+4>>2]=(e+(j+(d+P(h,-14090)|0)|0)|0)+P(i,3264)>>12;J[f+16>>2]=k+(((n+P(p,511)|0)+P(t,-11116)|0)+ -P(s,4813)|0)>>12;l=r-7|0;r=r+1|0;d=q;j=7;b:switch(l|0){case 0:continue;case 3:break a;default:break b}d=f+32|0;continue}break}while(1){u=J[d+64>>2];v=J[a>>2];p=u+v|0;w=J[a+160>>2];e=w<<1;b=p-e|0;x=J[a+224>>2];y=J[a+96>>2];g=x+y|0;z=g-e|0;h=J[d>>2];i=J[a+64>>2];l=h+i|0;m=l-e|0;n=J[a+128>>2];k=J[a+192>>2];f=n+k|0;r=f-e|0;t=P(b+z|0,11759)+P(m+r|0,1744)|0;A=P(b,-14043);o=b;q=J[d+32>>2];c=J[a+32>>2];b=q+c|0;s=b-e|0;o=P(o-s|0,10310)+16384|0;J[a+192>>2]=t+((A+o|0)+P(m,-6835)|0)>>15;e=P(s-z|0,8026);J[a+64>> -2]=(t+((e+P(z,-8825)|0)+P(r,-12054)|0)|0)+16384>>15;J[a>>2]=P(w+(f+(g+(l+(b+p|0)|0)|0)|0)|0,8666)+16384>>15;f=y-x|0;g=i-h|0;b=P(f+g|0,3453);h=c-q|0;l=P(h+f|0,-12131);c=l+(b+P(f,11314)|0)|0;i=v-u|0;f=P(i+f|0,6626);k=n-k|0;J[a+224>>2]=((c+f|0)+P(k,-11148)|0)+16384>>15;c=P(g+i|0,9262);q=P(g+h|0,-6626);J[a+160>>2]=(((c+(q+P(g,-17237)|0)|0)+b|0)+P(k,12131)|0)+16384>>15;b=P(h+i|0,11148)+16384|0;J[a+96>>2]=(l+(q+(b+P(h,11061)|0)|0)|0)+P(k,-9262)>>15;J[a+32>>2]=(f+(c+(b+P(i,-14905)|0)|0)|0)+P(k,3453)>>15; -J[a+128>>2]=(((o+P(s,540)|0)+P(m,-11759)|0)+P(r,5091)|0)+e>>15;b=j;j=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function B4(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;f=bc-16|0;bc=f;c=J[a+104>>2];b=gc[J[a+516>>2]](a,1886352244,c,f+4|0)|0;a:{if(b)break a;h=J[c+8>>2];l=J[f+4>>2];e=J[a+476>>2];b=bg(c,32);if(b)break a;b:{c:{d:{e:{f:{if((e|0)!=151552){b=3;if((e|0)!=131072)break b;g=J[c+28>>2];d=f+8|0;i=Wd(c,d);b=J[f+8>>2];if(b)break b;b=3;if(i>>>0>L[a+264>>1])break b; -e=0;k=Sc(g,2,0,i,0,d);if(J[f+8>>2])break c;b=Ue(c,i<<1);J[f+8>>2]=b;if(b)break c;if(!i)break f;b=0;while(1){r=(b<<1)+k|0,s=mf(c),I[r>>1]=s;b=b+1|0;if((i|0)!=(b|0))continue;break}ne(c);m=i&1;g:{if((i|0)==1){b=0;break g}n=i&65534;b=0;d=0;while(1){j=e<<1;o=L[(j|2)+k>>1];p=o-257|0;j=L[k+j>>1];q=j-257|0;b=j>>>0>257?(b&65535)<(q|0)?q:b:b;b=o>>>0>257?(b&65535)<(p|0)?p:b:b;e=e+2|0;d=d+2|0;if((n|0)!=(d|0))continue;break}}if(!m)break d;e=L[(e<<1)+k>>1];d=e-257|0;b=e>>>0>257?(d|0)>(b&65535)?d:b:b;break d}d= -J[c+28>>2];g=f+12|0;e=Wd(c,g);b=J[f+12>>2];if(b)break b;b=3;if(L[a+264>>1]<=(e-1&65535)>>>0|e>>>0>258)break b;b=0;g=Sc(d,1,0,e,0,g);h:{if(J[f+12>>2])break h;c=mg(c,g,e);J[f+12>>2]=c;if(c)break h;while(1){c=H[b+g|0]+b|0;if(!((c|0)<0|(c|0)>(e|0))){b=b+1|0;if((e|0)!=(b|0))continue;break e}break}J[f+12>>2]=3}if(g)gc[J[d+8>>2]](d,g);b=J[f+12>>2];break b}ne(c);b=0;break d}J[a+640>>2]=g;I[a+636>>1]=e;b=0;break b}d=0;m=b&65535;e=Sc(g,4,0,m,0,f+8|0);if(J[f+8>>2])break c;i:{j:{if(!m)break j;l=h+l|0;while(1){if(l>>> -0<=M[c+8>>2]){if((b&65535)>>>0<=(d&65535)>>>0)break j;while(1){c=Sc(g,1,0,1,0,f+8|0);J[(d<<2)+e>>2]=c;if(J[f+8>>2])break i;H[c|0]=0;d=d+1|0;if((m|0)!=(d|0))continue;break}break j}h=Gg(c,f+8|0);if(J[f+8>>2])break i;h=h&255;if(!(l>>>0>=h>>>0&M[c+8>>2]<=l-h>>>0)){h=l-J[c+8>>2]|0;h=(h|0)>0?h:0}n=(d<<2)+e|0;j=Sc(g,1,0,h+1|0,0,f+8|0);J[n>>2]=j;if(J[f+8>>2])break i;j=mg(c,j,h);J[f+8>>2]=j;if(j)break i;H[J[n>>2]+h|0]=0;d=d+1|0;if((m|0)!=(d|0))continue;break}}J[a+644>>2]=e;J[a+640>>2]=k;I[a+638>>1]=b;I[a+ -636>>1]=i;b=0;break b}b=b&65535;c=b>>>0<=1?1:b;b=0;while(1){d=(b<<2)+e|0;i=J[d>>2];if(i)gc[J[g+8>>2]](g,i);J[d>>2]=0;b=b+1|0;if((c|0)!=(b|0))continue;break}}if(e)gc[J[g+8>>2]](g,e);if(k)gc[J[g+8>>2]](g,k);b=J[f+8>>2]}H[a+632|0]=1}bc=f+16|0;return b}function IX(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=vA(a);b=J[a+32>>2];c=J[a+36>>2];a:{if(b>>>0>=c>>>0)break a;while(1){d=K[b|0]-9|0;if(d>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}if(!(K[b|0]==61&(c-b|0)> -0)){qc(Rc(i));return 0}b=b+1|0;J[a+32>>2]=b;b:{if(b>>>0>=c>>>0)break b;while(1){d=K[b|0]-9|0;if(d>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}c:{d:{if(b>>>0>=c>>>0)break d;switch(K[b|0]-34|0){case 0:case 5:break c;default:break d}}qc(Rc(i));return 0}J[a+32>>2]=b+1;j=K[b|0];b=rc(8);J[695492]=0;f=$(3184,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[a+32>>2];e=J[a+36>>2];e:{if(c>>>0>=e>>>0)break e;while(1){f:{g:{h:{d=K[c|0];if((d|0)!=(j|0)){b=c;if((d|0)== -38){d=b+1|0;J[a+32>>2]=d;b=d;if(!(e>>>0<=b>>>0|K[b|0]!=35)){b=c+2|0;J[a+32>>2]=b;d=0;i:{if(b>>>0>=e>>>0)break i;if(K[b|0]==120){b=c+3|0;J[a+32>>2]=b;j:{if(b>>>0>=e>>>0)break j;while(1){k:{c=-48;g=H[b|0];l:{if((g-48&255)>>>0<10)break l;c=-87;if((g-97&255)>>>0<6)break l;c=-55;if((g-65&255)>>>0>5)break k}b=b+1|0;J[a+32>>2]=b;d=g+((d<<4)+c|0)|0;if((b|0)!=(e|0))continue;break j}break}if((g|0)!=59)break j;J[a+32>>2]=b+1}uA(f,d);break f}while(1){c=K[b|0];if((c-48&255)>>>0<=9){b=b+1|0;J[a+32>>2]=b;d=(c+P(d, -10)|0)-48|0;if((b|0)!=(e|0))continue;break i}break}if((c|0)!=59)break i;J[a+32>>2]=b+1}uA(f,d);break f}while(1){g=b;b=b+1|0;J[a+32>>2]=b;if(b>>>0>=e>>>0)break h;h=K[b|0];if(!((h|0)==(j|0)|(h|0)==38)&(h|0)!=59)continue;break}e=b-d|0;if((h|0)!=59)break g;b=g+2|0;J[a+32>>2]=b;break g}while(1){m:{b=b+1|0;J[a+32>>2]=b;if(b>>>0>=e>>>0)break m;d=K[b|0];if((d|0)==(j|0))break m;if((d|0)!=38)continue}break}cf(f,c,b-c|0);break f}J[a+32>>2]=c+1;break e}e=b-d|0}n:{o:switch(e-2|0){case 0:if(!kd(d,788919,2)){zd(f, -60);break f}if(kd(d,789693,2))break n;zd(f,62);break f;case 1:if(kd(d,790551,3))break n;zd(f,38);break f;case 2:break o;default:break n}if(!kd(d,791280,4)){zd(f,39);break f}if(kd(d,792070,4))break n;zd(f,34);break f}cf(f,c,(b-d|0)+1|0)}c=J[a+32>>2];e=J[a+36>>2];if(c>>>0>>0)continue;break}}a=rc(16);J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=f;J[a>>2]=i;return a}a=Z()|0;qc(b);ba(a|0);B()}function EZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,O=0,Q=0;b=J[b+84>>2];l=P(P(I[c+26>>1],J[b+52>>2]),10033);m=P(I[c+10>>1],J[b+20>>2])<<13|1024;k=P(J[b+84>>2],I[c+42>>1]);p=m+P(k,5793)|0;i=l+p>>11;q=P(P(I[c+18>>1],J[b+36>>2]),10033);n=P(I[c+2>>1],J[b+4>>2])<<13|1024;o=P(J[b+68>>2],I[c+34>>1]);r=n+P(o,5793)|0;g=q+r>>11;h=P(i+g|0,2998);f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;s=P(P(I[c+22>>1],J[b+44>>2]),10033);t=P(I[c+6>>1],J[b+12>>2])<<13|1024;u=P(J[b+76>>2],I[c+38>>1]);v=t+P(u,5793)|0;j=s+ -v>>11;w=h+(j+g<<13)|0;x=P(P(I[c+16>>1],J[b+32>>2]),10033);y=P(I[c>>1],J[b>>2])<<13|1024;z=P(J[b+64>>2],I[c+32>>1]);A=y+P(z,5793)|0;B=(x+A<<2&-8192)+131072|0;C=P(P(I[c+24>>1],J[b+48>>2]),10033);D=P(I[c+8>>1],J[b+16>>2])<<13|1024;E=P(J[b+80>>2],I[c+40>>1]);F=D+P(E,5793)|0;G=C+F>>11;L=B+P(G,5793)|0;M=P(P(I[c+20>>1],J[b+40>>2]),10033);N=P(I[c+4>>1],J[b+8>>2])<<13|1024;O=P(J[b+72>>2],I[c+36>>1]);Q=N+P(O,5793)|0;b=P(M+Q>>11,10033);c=L+b|0;H[f|0]=K[a+(w+c>>>18&1023)|0];H[f+5|0]=K[a+(c-w>>>18&1023)|0];c= -g-(i+j|0)<<13;g=P(G,-11586)+B|0;H[f+1|0]=K[a+(c+g>>>18&1023)|0];H[f+4|0]=K[a+(g-c>>>18&1023)|0];c=h+(i-j<<13)|0;b=L-b|0;H[f+2|0]=K[a+(c+b>>>18&1023)|0];H[f+3|0]=K[a+(b-c>>>18&1023)|0];c=m+P(k,-11586)>>11;f=n+P(o,-11586)>>11;i=P(c+f|0,2998);b=J[d+4>>2]+e|0;g=P(u,-11586)+t>>11;h=i+(g+f<<13)|0;k=(P(z,1073730238)+y<<2&-8192)+131072|0;j=P(E,-11586)+D>>11;m=k+P(j,5793)|0;o=P(P(O,-11586)+N>>11,10033);n=m+o|0;H[b|0]=K[a+(h+n>>>18&1023)|0];H[b+5|0]=K[a+(n-h>>>18&1023)|0];f=f-(c+g|0)<<13;h=k+P(j,-11586)|0; -H[b+1|0]=K[a+(f+h>>>18&1023)|0];H[b+4|0]=K[a+(h-f>>>18&1023)|0];c=i+(c-g<<13)|0;f=m-o|0;H[b+2|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];c=p-l>>11;f=r-q>>11;l=P(c+f|0,2998);b=J[d+8>>2]+e|0;d=v-s>>11;e=l+(d+f<<13)|0;g=(A-x<<2&-8192)+131072|0;i=F-C>>11;h=g+P(i,5793)|0;j=P(Q-M>>11,10033);k=h+j|0;H[b|0]=K[a+(e+k>>>18&1023)|0];H[b+5|0]=K[a+(k-e>>>18&1023)|0];e=f-(c+d|0)<<13;f=g+P(i,-11586)|0;H[b+1|0]=K[a+(e+f>>>18&1023)|0];H[b+4|0]=K[a+(f-e>>>18&1023)|0];c=l+(c-d<<13)|0;d=h-j|0;H[b+2|0]= -K[a+(c+d>>>18&1023)|0];H[b+3|0]=K[a+(d-c>>>18&1023)|0]}function m0(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;if(!b)return 0;h=J[a+32>>2];if(h)j=J[h+80>>2];a:{b:{c:{d:switch(c-1|0){case 0:case 1:case 2:h=J[a+48>>2];if(h)break b;h=0;g=gc[J[659447]](16)|0;if(g){J[g+4>>2]=256;J[g+8>>2]=0;J[g+12>>2]=0;i=gc[J[659447]](6144)|0;J[g>>2]=i;if(!i){gc[J[659451]](g);J[a+48>>2]=0;break c}wc(i,0,6144);J[g+12>>2]=j;e:{if(!K[2758024]){h=zc(4);J[689507]=h;if(!h)break e;H[2758024]=1}if(!j)break e;J[j>>2]= -J[j>>2]+1}h=g}J[a+48>>2]=h;break c;case 3:case 4:break d;default:break a}h=J[a+60>>2];if(h)break b;h=0;g=gc[J[659447]](16)|0;f:{if(!g)break f;J[g+4>>2]=256;J[g+8>>2]=0;J[g+12>>2]=0;i=gc[J[659447]](6144)|0;J[g>>2]=i;if(!i){gc[J[659451]](g);break f}wc(i,0,6144);J[g+12>>2]=j;g:{if(!K[2758024]){h=zc(4);J[689507]=h;if(!h)break g;H[2758024]=1}if(!j)break g;J[j>>2]=J[j>>2]+1}h=g}J[a+60>>2]=h}if(!h)break a}m=bc-16|0;bc=m;i=gc[J[659447]](76)|0;h:{if(!i){J[m>>2]=16958;Cc(0,0,0,0,0,2,2,3,16958,0,0,0,32863,m); -break h}k=wc(i,0,72);J[k+72>>2]=0;J[k+4>>2]=17;J[k+48>>2]=c;i:{j:{if(!j){k:{if(!b){c=0;break k}c=b;while(1){g=c;c=g+1|0;if(K[g|0])continue;break}c=0;l=g-b|0;if((l|0)<0)break k;g=gc[J[659450]](l+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break k}c=tc(g,b,l);H[l+c|0]=0}J[k+8>>2]=c;if(d){c=d;while(1){g=c;c=g+1|0;if(K[g|0])continue;break}c=0;l=g-d|0;l:{if((l|0)<0)break l;g=gc[J[659450]](l+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break l}c=tc(g,d,l);H[l+c|0]=0}J[k+52>>2]=c}if(!e)break i; -c=e;while(1){d=c;c=c+1|0;if(K[d|0])continue;break}c=0;g=d-e|0;if((g|0)<0)break j;d=gc[J[659450]](g+1|0)|0;if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break j}c=tc(d,e,g);H[g+c|0]=0;break j}n=k,o=le(j,b,-1),J[n+8>>2]=o;if(d)n=k,o=le(j,d,-1),J[n+52>>2]=o;if(!e)break i;c=le(j,e,-1)}J[k+56>>2]=c}m:{if(f){e=0;if(K[f|0]){c=f;while(1){e=e+1|0;d=K[c+1|0];c=c+1|0;if(d)continue;break}}J[k+44>>2]=e;if(!(!j|(e|0)>4)){c=le(j,f,e);break m}c=gc[J[659450]](e+1|0)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break m}n= -tc(c,f,e)+e|0,o=0,H[n|0]=o;break m}c=0;J[k+44>>2]=0}J[k+40>>2]=c;J[k+64>>2]=0;J[k+68>>2]=0;J[k+36>>2]=0}bc=m+16|0;if(!i)break a;J[i+32>>2]=J[a+32>>2];if(!Dw(h,b,0,0,i))return i;VJ(i)}return 0}function BC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{d=b;g=J[b>>2];if(g){c=J[b+4>>2];if(!c)break b;while(1){d=c;c=J[c>>2];if(c)continue;break}}g=J[d+4>>2];if(g)break b;f=J[d+8>>2];g=0;e=1;break a}f=J[d+8>>2];J[g+8>>2]=f;e=0}c=J[f>>2];c:{if((d|0)==(c|0)){J[f>>2]=g;if((a|0)==(d|0)){c=0;a=g;break c}c=J[f+4>>2];break c}J[f+ -4>>2]=g}h=!K[d+12|0];if((b|0)!=(d|0)){f=J[b+8>>2];J[d+8>>2]=f;J[f+((J[f>>2]!=(b|0))<<2)>>2]=d;f=J[b>>2];J[d>>2]=f;J[f+8>>2]=d;f=J[b+4>>2];J[d+4>>2]=f;if(f)J[f+8>>2]=d;H[d+12|0]=K[b+12|0];a=(a|0)==(b|0)?d:a}if(!(h|!a)){if(e)while(1){b=K[c+12|0];d:{e=J[c+8>>2];if(J[e>>2]!=(c|0)){if(!b){H[c+12|0]=1;H[e+12|0]=0;d=J[e+4>>2];b=J[d>>2];J[e+4>>2]=b;if(b)J[b+8>>2]=e;b=J[e+8>>2];J[d+8>>2]=b;J[b+(((e|0)!=J[b>>2])<<2)>>2]=d;J[d>>2]=e;J[e+8>>2]=d;b=J[c>>2];a=(b|0)==(a|0)?c:a;c=J[b+4>>2]}e:{f:{d=J[c>>2];g:{if(!(K[d+ -12|0]?0:d)){b=J[c+4>>2];if(K[b+12|0]?0:b)break g;H[c+12|0]=0;c=J[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(K[c+12|0])break d}H[c+12|0]=1;return}b=J[c+4>>2];if(!b)break f}if(K[b+12|0])break f;d=c;break e}H[d+12|0]=1;H[c+12|0]=0;a=J[d+4>>2];J[c>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[d+8>>2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d+4>>2]=c;J[c+8>>2]=d;b=c}c=J[d+8>>2];H[d+12|0]=K[c+12|0];H[c+12|0]=1;H[b+12|0]=1;b=J[c+4>>2];a=J[b>>2];J[c+4>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[b+8>>2]=a;J[a+(((c|0)!=J[a>>2])<< -2)>>2]=b;J[b>>2]=c;J[c+8>>2]=b;return}if(!b){H[c+12|0]=1;H[e+12|0]=0;b=J[c+4>>2];J[e>>2]=b;if(b)J[b+8>>2]=e;b=J[e+8>>2];J[c+8>>2]=b;J[b+(((e|0)!=J[b>>2])<<2)>>2]=c;J[c+4>>2]=e;J[e+8>>2]=c;a=(a|0)==(e|0)?c:a;c=J[e>>2]}b=J[c>>2];i:{if(!(!b|K[b+12|0])){d=c;break i}d=J[c+4>>2];if(!(K[d+12|0]?0:d)){H[c+12|0]=0;c=J[c+8>>2];if((a|0)!=(c|0)?K[c+12|0]:0)break d;H[c+12|0]=1;return}if(b){if(!K[b+12|0]){d=c;break i}d=J[c+4>>2]}H[d+12|0]=1;H[c+12|0]=0;a=J[d>>2];J[c+4>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[d+8>> -2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d>>2]=c;J[c+8>>2]=d;b=c}c=J[d+8>>2];H[d+12|0]=K[c+12|0];H[c+12|0]=1;H[b+12|0]=1;b=J[c>>2];a=J[b+4>>2];J[c>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[b+8>>2]=a;J[a+(((c|0)!=J[a>>2])<<2)>>2]=b;J[b+4>>2]=c;J[c+8>>2]=b;return}b=J[c+8>>2];c=J[((J[b>>2]==(c|0))<<2)+b>>2];continue}H[g+12|0]=1}}function hva(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;J[a+8>>2]=0;J[a>>2]=2411928;J[a+4>>2]=0;J[a+12>>2]=J[682146];J[695492]=0;aa(4989,a+16|0, -2411852)|0;f=J[695492];J[695492]=0;if((f|0)==1){b=Z()|0;sc(a+8|0);ed(a);ba(b|0);B()}J[a+24>>2]=0;f=J[682146];H[a+88|0]=0;J[a+68>>2]=1;I[a+64>>1]=0;J[a+60>>2]=0;I[a+56>>1]=0;J[a+48>>2]=-1;J[a+52>>2]=50;J[a+40>>2]=255;J[a+44>>2]=1;H[a+36|0]=0;J[a+32>>2]=0;J[a+28>>2]=f;J[a+92>>2]=d;H[a+89|0]=e;J[a>>2]=2412012;J[695492]=0;f=a+100|0;J[f+20>>2]=-1;J[f+12>>2]=-1;J[f+16>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=2401048;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){J[695492]=0;e=a+124|0;J[e+20>>2]=-1;J[e+12>>2]= --1;J[e+16>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=2401048;d=J[695492];J[695492]=0;c:{if((d|0)!=1){d=J[a+92>>2];J[a+96>>2]=d-K[a+89|0];J[695492]=0;ca(5128,f|0,0,d-1|0);d=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((d|0)==1)break h;d=J[a+92>>2];J[695492]=0;ca(5128,e|0,0,d-1|0);d=J[695492];J[695492]=0;if((d|0)==1)break h;if(J[a+92>>2]>0){i=J[a+128>>2];j=J[a+104>>2];d=0;while(1){if(!(J[a+116>>2]<=(d|0)&J[a+120>>2]>=(d|0))){J[695492]=0;c=ja(5018,g+8|0,2392484,2393512,619,2401256,0)|0;b=J[695492];J[695492]=0; -if((b|0)==1)break g;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;break a}h=d<<2;J[j+(d-J[a+108>>2]<<2)>>2]=J[h+b>>2];if(!(J[a+140>>2]<=(d|0)&J[a+144>>2]>=(d|0))){J[695492]=0;c=ja(5018,g+8|0,2392484,2393512,619,2401256,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;d=Z()|0;Fc(c);break d}J[i+(d-J[a+132>>2]<<2)>>2]=J[c+h>>2];d=d+1|0;if((d|0)>2])continue;break}}J[695492]=0;_(5454,a|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break f}d=Z()|0;break d}d=Z()|0;break d}J[695492]=0;c=$(5455,a|0)|0;b=J[695492];J[695492]=0;i:{j:{if((b|0)!=1){if(!K[c|0])break i;J[695492]=0;c=ja(5018,g+8|0,c|0,2382933,756,2412375,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;d=Z()|0;Fc(c);break d}d=Z()|0;break d}d=Z()|0;break d}bc=g+32|0;return a|0}d=Z()|0;Fc(c)}xd(e);break c}d=Z()|0}xd(f);break b}d=Z()|0}Hz(a);ba(d|0);B()}B()}function JOa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=bc-192|0;bc=D;e=a;while(1){a:{o=e;d=J[(k<<2)+b>>2]+c|0;f=K[d|0];g=K[d+13|0];l=f-g|0;i=K[d+3|0];j=K[d+10|0];y=i-j|0;r=K[d+2|0];s=K[d+11|0];m=r-s|0;t=K[d+1|0];u=K[d+12|0];h=t-u|0;z=m+h|0;v=K[d+5|0];w=K[d+8|0];n=v-w|0;x=K[d+4|0];A=K[d+9|0];q=x-A|0;B=n-q|0;C=K[d+6|0];p=K[d+7|0];d=C-p|0;J[e+28>>2]=l+y-((z+B|0)+d);v=v+w|0;t=t+u|0;u=v+t|0;i=i+j|0;j=x+A|0;r=r+s|0;s=j+r|0;w=C+p|0;g=f+g|0;x= -w+g|0;J[e>>2]=((u+(i+s|0)|0)+x|0)-1792;f=i<<1;J[e+16>>2]=((P(s-f|0,-7223)+P(u-f|0,2578)|0)+P(x-f|0,10438)|0)+4096>>13;f=r-j|0;g=g-w|0;i=t-v|0;j=P(g+i|0,9058)+4096|0;J[e+24>>2]=(P(f,-11295)+j|0)+P(i,-14084)>>13;J[e+8>>2]=(j+P(f,5027)|0)+P(g,2237)>>13;f=y<<13;g=((P(B,11512)-f|0)+P(z,-1297)|0)+4096|0;p=(g+P(m,-19447)|0)+P(q,9175)|0;m=P(d+q|0,6164)+P(l+m|0,9810)|0;J[e+20>>2]=p+m>>13;p=(g+P(h,-3474)|0)+P(n,-25148)|0;h=P(n-d|0,3826)+P(l+h|0,10935)|0;J[e+12>>2]=p+h>>13;J[e+4>>2]=(m+((d+(f+h|0)|0)+P(d+l| -0,-9232)|0)|0)+4096>>13;l=k-7|0;k=k+1|0;e=D;d=7;b:switch(l|0){case 0:continue;case 6:break a;default:break b}e=o+32|0;continue}break}while(1){c=J[e+32>>2];m=J[a+128>>2];h=c+m|0;o=J[e+96>>2];k=J[a+64>>2];n=o+k|0;l=h+n|0;q=J[e+64>>2];f=J[a+96>>2];g=q+f|0;b=g<<1;i=J[e>>2];j=J[a+160>>2];y=i+j|0;r=J[e+128>>2];s=J[a+32>>2];t=r+s|0;u=y+t|0;z=J[a+224>>2];v=J[a+192>>2];w=z+v|0;x=J[e+160>>2];A=J[a>>2];B=x+A|0;C=w+B|0;J[a+128>>2]=((P(l-b|0,-4717)+P(u-b|0,1684)|0)+P(C-b|0,6817)|0)- -8192>>14;J[a>>2]=P(C+(u+(g+ -l|0)|0)|0,5350)- -8192>>14;b=A-x|0;q=f-q|0;o=k-o|0;k=s-r|0;f=o+k|0;l=j-i|0;m=m-c|0;g=l-m|0;c=v-z|0;J[a+224>>2]=P(b+q-((f+g|0)+c)|0,5350)- -8192>>14;h=n-h|0;n=B-w|0;i=t-y|0;j=P(n+i|0,5915)- -8192|0;J[a+192>>2]=(P(h,-7376)+j|0)+P(i,-9198)>>14;J[a+64>>2]=(j+P(h,3283)|0)+P(n,1461)>>14;h=P(q,5350);n=((P(g,7518)-h|0)+P(f,-847)|0)- -8192|0;p=(n+P(o,-12700)|0)+P(m,5992)|0;o=P(c+m|0,4025)+P(b+o|0,6406)|0;J[a+160>>2]=p+o>>14;p=(n+P(k,-2269)|0)+P(l,-16423)|0;k=P(l-c|0,2499)+P(b+k|0,7141)|0;J[a+96>>2]=p+k>>14; -J[a+32>>2]=(o+((h+(k+P(b,-6029)|0)|0)+P(c,-679)|0)|0)- -8192>>14;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b)continue;break}bc=D+192|0}function gw(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=J[((b<<2)+a|0)+88>>2];if(!g){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=54;gc[J[J[a>>2]>>2]](a)}e=J[a+384>>2];a:{if((e|0)<0)break a;h=e+1|0;j=h&3;d=J[a+380>>2];c=0;if(e>>>0>=3){h=h&-4;e=0;while(1){i=f;f=c<<2;f=L[(J[d+(f|12)>>2]<<1)+g>>1]>255?1:L[(J[d+(f|8)>>2]<<1)+g>>1]>255?1:L[(J[d+(f|4)>>2]<<1)+g>>1]>255?1:L[(J[f+d>>2]<<1)+ -g>>1]>255?1:i;c=c+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!j)break a;while(1){f=L[(J[d+(c<<2)>>2]<<1)+g>>1]>255?1:f;c=c+1|0;k=k+1|0;if((k|0)!=(j|0))continue;break}}if(!J[g+128>>2]){c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=255;d=J[c+4>>2]-1|0;J[c+4>>2]=d;b:{if(d)break b;if(gc[J[c+12>>2]](a)|0)break b;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=219;d=J[c+4>>2]-1|0;J[c+4>>2]=d;c:{if(d)break c;if(gc[J[c+12>>2]](a)|0)break c;c=J[a>>2];J[c+20>>2]=25;gc[J[c>> -2]](a)}d=J[a+384>>2];c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;i=e;e=f?(d<<1)+5|0:d+4|0;H[i|0]=e>>>8;d=J[c+4>>2]-1|0;J[c+4>>2]=d;d:{if(d)break d;if(gc[J[c+12>>2]](a)|0)break d;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e:{if(d)break e;if(gc[J[c+12>>2]](a)|0)break e;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=(f<<4)+b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;f:{if(b)break f;if(gc[J[c+12>>2]](a)|0)break f;b=J[a>>2]; -J[b+20>>2]=25;gc[J[b>>2]](a)}c=0;g:{if(J[a+384>>2]<0)break g;if(!f)while(1){b=c;e=K[(J[J[a+380>>2]+(c<<2)>>2]<<1)+g|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;d=J[c+4>>2]-1|0;J[c+4>>2]=d;h:{if(d)break h;if(gc[J[c+12>>2]](a)|0)break h;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=b+1|0;if((b|0)>2])continue;break g}while(1){b=c;d=L[(J[J[a+380>>2]+(c<<2)>>2]<<1)+g>>1];c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=d>>>8;e=J[c+4>>2]-1|0;J[c+4>>2]=e;i:{if(e)break i;if(gc[J[c+12>>2]](a)|0)break i;c= -J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=d;d=J[c+4>>2]-1|0;J[c+4>>2]=d;j:{if(d)break j;if(gc[J[c+12>>2]](a)|0)break j;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=b+1|0;if((b|0)>2])continue;break}}J[g+128>>2]=1}return f}function I2(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=0;J[a+4>>2]=0;H[a+96|0]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]= -2147483647;J[a+104>>2]=0;J[a+108>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;H[a+149|0]=0;H[a+150|0]=0;H[a+151|0]=0;H[a+152|0]=0;H[a+153|0]=0;H[a+154|0]=0;H[a+155|0]=0;H[a+156|0]=0;H[a+1188|0]=1;J[a+1184>>2]=0;J[a+1192>> -2]=0;J[a+1196>>2]=0;d=a+1200|0;J[d>>2]=0;J[d+4>>2]=0;J[a+1208>>2]=0;d=a+160|0;while(1){J[(b<<2)+d>>2]=b;c=b|1;J[(c<<2)+d>>2]=c;c=b|2;J[(c<<2)+d>>2]=c;c=b|3;J[(c<<2)+d>>2]=c;c=b|4;J[(c<<2)+d>>2]=c;c=b|5;J[(c<<2)+d>>2]=c;c=b|6;J[(c<<2)+d>>2]=c;c=b|7;J[(c<<2)+d>>2]=c;b=b+8|0;if((b|0)!=256)continue;break}J[a+1216>>2]=0;J[a+1220>>2]=0;b=a+1224|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1236|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1232>>2]=126;b=a+1244|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1256|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1252>>2]=64;b=a+ -1264|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1276|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1272>>2]=254;b=a+1284|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1328|0;J[b>>2]=-2147483647;J[b+4>>2]=-2147483647;b=a+1320|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;J[a+1292>>2]=256;b=a+1296|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1304|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1312|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1344|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1336|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1368|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1352|0;J[b>>2]=0;J[b+4>>2]=126;b=a+1360|0;J[b>>2]=0;J[b+4>>2]=0;b= -a+1388|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1376>>2]=64;b=a+1380|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1408|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1396>>2]=254;b=a+1400|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1452|0;J[b>>2]=-2147483647;J[b+4>>2]=-2147483647;b=a+1444|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;J[a+1460>>2]=0;J[a+1416>>2]=256;b=a+1436|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1428|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1420|0;J[b>>2]=0;J[b+4>>2]=0;I[a+1468>>1]=0;return a|0}function Xjb(a){a=a|0;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;l=bc-16|0;bc=l;d=3;f=J[a+32>>2];a:{if(!f)break a;c=J[f+364>>2];if(!c)break a;b=J[c+588>>2];d=J[c+584>>2];f=J[f+360>>2];b:{if(!(!K[c+556|0]|(f|0)!=J[c+564>>2]|(d|0)!=J[c+568>>2])){if(!d)break b;if(!Wc(b,J[c+572>>2],d<<2))break b}d=o6(c+556|0,f,d,b);if(d)break a}d=3;m=sl(a,J[J[a+20>>2]-4>>2]);if(m>>>0>M[a+24>>2])break a;f=J[J[c+560>>2]+8>>2];J[l+12>>2]=0;d=161;g=(J[a+20>>2]-J[a+16>>2]|0)-4>>2;h=P(J[c+576>>2],m);c:{if(g>>>0>>0)break c;d=J[c+604>>2];i=J[c+600>>2];b=P(m,5);d:{if(d>>>0>= -i+b>>>0)break d;j=J[c+596>>2];e=f;f=J[c+592>>2];e=Sc(e,1,d,b+d|0,f,l+12|0);J[c+592>>2]=e;d=J[l+12>>2];if(d)break c;i=J[c+600>>2];J[c+596>>2]=e+i;J[c+604>>2]=b+J[c+604>>2];if(!f|(e|0)==(f|0))break d;d=J[a+16>>2];k=J[a+20>>2];if(d>>>0>=k>>>0)break d;n=e-f|0;while(1){e=J[d>>2];if(!(e>>>0>>0|e>>>0>=j>>>0)){J[d>>2]=e+n;k=J[a+20>>2]}d=d+4|0;if(k>>>0>d>>>0)continue;break}}J[c+600>>2]=b+i;p=g-h|0;f=p+m|0;if(m){d=f;n=0;while(1){o=J[c+580>>2];q=n+p<<2;h=sl(a,J[q+J[a+16>>2]>>2])<<16;k=1;i=J[c+576>>2];if(i>>> -0>=2)while(1){e:{f:{b=J[J[a+16>>2]+(d<<2)>>2];g=K[b|0];if((g|0)!=255){if((g|0)!=30)break f;e=dD(a,b,0,0)>>16;i=J[c+576>>2];break e}e=((K[b+3|0]|(K[b+2|0]<<8|K[b+1|0]<<16))<<8)+32768>>16;break e}j=b+1|0;g:switch(g-28|0){case 0:e=0;if(M[a+8>>2]<=b+2>>>0)break e;e=(K[b+2|0]|K[j|0]<<8)<<16>>16;break e;case 1:e=0;if(M[a+8>>2]<=b+4>>>0)break e;b=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break e;default:break g}if(g>>>0<=246){e=g-139|0;break e}b=J[a+8>>2]; -if(g>>>0<=250){e=0;if(b>>>0<=j>>>0)break e;e=(K[j|0]|g<<8)-63124|0;break e}e=0;if(b>>>0<=j>>>0)break e;e=64148-(K[j|0]|g<<8)|0}d=d+1|0;o=o+4|0;h=P(J[o>>2],e)+h|0;k=k+1|0;if(k>>>0>>0)continue;break}b=J[c+596>>2];J[J[a+16>>2]+q>>2]=b;J[c+596>>2]=b+1;H[b|0]=255;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>24;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>16;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>8;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h;n=n+1|0;if((n|0)!=(m|0))continue;break}d=J[l+12>>2]}else d=0;J[a+20>> -2]=J[a+16>>2]+(f<<2)}H[c+557|0]=1}bc=l+16|0;return d|0}function W2a(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){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;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;t=t|0;u=u|0;v=v|0;w=w|0;x=x|0;y=y|0;z=z|0;var A=0,C=0,D=0,E=0,F=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+36>>2]=0;J[a+124>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;C=a+28|0;D=a+12|0;a:{b:{c:{d:{if((a|0)==(b|0))break d; -if(H[b+11|0]>=0){A=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=A;J[a+8>>2]=J[b+8>>2];break d}A=J[b+4>>2];b=J[b>>2];J[695492]=0;ga(1630,a|0,b|0,A|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c}e:{if((d|0)==(D|0))break e;A=K[d+11|0];b=A<<24>>24;f:{if(H[a+23|0]>=0){if((b|0)<0)break f;b=J[d+4>>2];J[D>>2]=J[d>>2];J[D+4>>2]=b;J[D+8>>2]=J[d+8>>2];break e}E=J[d>>2];F=J[d+4>>2];J[695492]=0;b=(b|0)<0;ga(1629,D|0,(b?E:d)|0,(b?F:A)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;break e}b=J[d+4>>2];d=J[d>>2];J[695492]= -0;ga(1630,D|0,d|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c}g:{if((c|0)==(C|0))break g;d=K[c+11|0];b=d<<24>>24;if(H[a+39|0]>=0){if((b|0)>=0){b=J[c+4>>2];J[C>>2]=J[c>>2];J[C+4>>2]=b;J[C+8>>2]=J[c+8>>2];break g}b=J[c+4>>2];c=J[c>>2];J[695492]=0;ga(1630,C|0,c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break g;break c}A=J[c>>2];E=J[c+4>>2];J[695492]=0;b=(b|0)<0;ga(1629,C|0,(b?A:c)|0,(b?E:d)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c}J[a+48>>2]=h;J[a+44>>2]=g;J[a+40>>2]=f;J[a+24>>2]=e; -if(!i)break b;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);c=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);H[a+52|0]=c;H[a+53|0]=c>>>8;H[a+54|0]=c>>>16;H[a+55|0]=c>>>24;H[a+56|0]=b;H[a+57|0]=b>>>8;H[a+58|0]=b>>>16;H[a+59|0]=b>>>24;b=K[i+8|0]|K[i+9|0]<<8;H[a+60|0]=b;H[a+61|0]=b>>>8;break a}b=Z()|0;sg(a+116|0);if(H[a+39|0]<0)qc(J[C>>2]);if(H[a+23|0]<0)qc(J[D>>2]);if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}J[a+52>>2]=0;J[a+56>>2]=0;I[a+60>>1]=0}I[a+112>>1]=z;I[a+110>>1]=y;I[a+108>>1]=x;I[a+106>>1]= -w;I[a+104>>1]=v;I[a+102>>1]=u;I[a+100>>1]=t;J[a+96>>2]=s;I[a+92>>1]=r;I[a+90>>1]=q;I[a+88>>1]=p;J[a+84>>2]=o;J[a+80>>2]=n;J[a+76>>2]=m;J[a+72>>2]=l;J[a+68>>2]=k;J[a+64>>2]=j;return a|0}function xlb(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;c=1;a:{b:switch(((b|0)<=0?J[a+604>>2]:b)-3|0){case 0:f=bc-992|0;bc=f;c:{d:{e:{k=J[a+4>>2];if(k){i=J[a+16>>2];g=J[a+20>>2];b=qf(f+16|0,0);J[695492]=0;da(153,b|0,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;J[695492]=0;c=L[a+26>>1];d=J[695492]; -J[695492]=0;if((d|0)==1)break d;J[695492]=0;d=J[a+68>>2];h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;ma(78,b|0,i|0,g|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;J[695492]=0;c=J[a+4>>2];d=J[a+44>>2];h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;ca(19,b|0,(c?d?c+40|0:0:0)|0,256);c=J[695492];J[695492]=0;if((c|0)==1)break d;J[695492]=0;c=J[a+964>>2];d=J[695492];J[695492]=0;if((d|0)==1)break d;f:{if(!c)break f;J[695492]=0;$(123,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!= -1)break f;break d}g:{if((g|0)<=0)break g;d=0;if((i|0)>0)while(1){J[a+328>>2]=(P(d,100)|0)/(g|0);h=(d^-1)+g|0;c=0;while(1){h:{if(J[a+44>>2]){J[695492]=0;e=Fo(a,c,d);j=J[695492];J[695492]=0;if((j|0)==1)break d;J[695492]=0;sm(b,(c^-1)+i|0,h,e);e=J[695492];J[695492]=0;if((e|0)!=1)break h;break d}J[695492]=0;tm(f+12|0,a,c,d,1);e=J[695492];J[695492]=0;if((e|0)==1)break d;J[695492]=0;J[f+8>>2]=K[f+12|0]|K[f+13|0]<<8|(K[f+14|0]<<16|K[f+15|0]<<24);Zp(b,(c^-1)+i|0,h,f+8|0,0);e=J[695492];J[695492]=0;if((e|0)== -1)break d}J[695492]=0;e=J[a+964>>2];j=J[695492];J[695492]=0;if((j|0)==1)break d;if(e){J[695492]=0;e=K[(J[a+964>>2]+P(J[a+16>>2],d)|0)+c|0];j=J[695492];J[695492]=0;if((j|0)==1)break d;J[695492]=0;hh(b,(c^-1)+i|0,h,e);e=J[695492];J[695492]=0;if((e|0)==1)break d}c=c+1|0;if((i|0)!=(c|0))continue;break}d=d+1|0;if((g|0)!=(d|0))continue;break g}J[a+328>>2]=(P(g,100)-100|0)/(g|0)}J[695492]=0;ga(108,a|0,b|0,1)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;J[b>>2]=1032;J[695492]=0;$(13,b|0)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break e;J[695492]=0;$(14,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e}bc=f+992|0;b=(k|0)!=0;break c}ea(0)|0;yc();B()}a=Z()|0;mj(b);ba(a|0);B()}break a;case 3:b=sM(a);break a;case 5:b=oD(a);break a;case 2:c=oD(a);break;default:break b}J[a+604>>2]=1;return c|0}J[a+604>>2]=1;return b|0}function uw(a,b){var c=0,d=0,e=0;a:{if(!a|!b)break a;b:{c:switch(J[b+4>>2]-1|0){case 2:case 3:if(J[a+32>>2])break a;c=J[b+40>>2];b=J[a+8>>2];if(!((b|0)==J[a+24>>2]|b>>>0>2147483646))J[a+24>>2]=b;b= -J[a+4>>2];if(!((b|0)==J[a+20>>2]|b>>>0>2147483646))J[a+20>>2]=b;if(!c)break a;if(J[a+12>>2]!=2)break b;break a;case 0:case 10:d=b;d:while(1){e:{f:{g:{c=d;switch(J[c+4>>2]-3|0){case 2:break f;case 0:case 1:break g;default:break e}}e=J[c+40>>2];if(J[a+32>>2]|!e)break e;d=J[a+8>>2];if(!((d|0)==J[a+24>>2]|d>>>0>2147483646))J[a+24>>2]=d;d=J[a+4>>2];if(!((d|0)==J[a+20>>2]|d>>>0>2147483646))J[a+20>>2]=d;if(J[a+12>>2]==2)break e;Aj(a,e,-1);break e}uw(a,c)}d=J[c+12>>2];if(J[d+4>>2]!=17?d:0)continue;if((b| -0)==(c|0))break a;while(1){d=J[c+24>>2];if(d)continue d;c=J[c+20>>2];if(!c)break a;if((b|0)!=(c|0))continue;break}break}break a;case 1:c=J[b+12>>2];if(!c)break a;while(1){h:{if(J[c+4>>2]==3){if(J[a+32>>2])break h;b=J[c+40>>2];d=J[a+8>>2];if(!((d|0)==J[a+24>>2]|d>>>0>2147483646))J[a+24>>2]=d;d=J[a+4>>2];if(!((d|0)==J[a+20>>2]|d>>>0>2147483646))J[a+20>>2]=d;if(!b|J[a+12>>2]==2)break h;Aj(a,b,-1);break h}uw(a,c)}c=J[c+24>>2];if(c)continue;break}break a;case 6:case 7:if(J[a+32>>2])break a;c=J[b+40>>2]; -b=J[a+8>>2];if(!((b|0)==J[a+24>>2]|b>>>0>2147483646))J[a+24>>2]=b;b=J[a+4>>2];if(!((b|0)==J[a+20>>2]|b>>>0>2147483646))J[a+20>>2]=b;if(!c)break a;if(J[a+12>>2]!=2)break b;break a;case 4:d=J[b+8>>2];i:{c=J[b+32>>2];j:{if(!c)break j;b=J[c+44>>2];k:{if(!b)break k;b=J[b+48>>2];if(!b)break k;b=tf(b,d,0,0);if(b)break i}if(J[c+40>>2]==1)break j;b=J[c+48>>2];if(!b)break j;b=J[b+48>>2];if(!b)break j;b=tf(b,d,0,0);if(b)break i}b=Qi(d);if(b)break i;return}c=J[b+12>>2];if(!c)break a;while(1){uw(a,c);c=J[c+24>> -2];if(c)continue;break}break a;case 8:case 12:c=J[b+12>>2];if(!c)break a;while(1){b=J[c+4>>2];if(!(b>>>0>4|!(1<>2];if(c)continue;break}break a;case 17:break c;default:break a}if(J[a+32>>2])break a;c=J[b+8>>2];b=J[a+8>>2];if(!((b|0)==J[a+24>>2]|b>>>0>2147483646))J[a+24>>2]=b;b=J[a+4>>2];if(!((b|0)==J[a+20>>2]|b>>>0>2147483646))J[a+20>>2]=b;if(!c|J[a+12>>2]==2)break a}Aj(a,c,-1)}}function kR(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(b<.016939999535679817)break a; -f=b+-.016939999535679817;if(c){d=Dzb(J[694792],J[694793],1284865837,1481765933);e=fc;d=d+1|0;e=d?e:e+1|0;J[694792]=d;J[694793]=e;f=f*285.7142768952314+ +(e>>>1|0)*4.656612875245797E-10+-.5}else f=f*285.7142768952314;b:{if(R(f)<2147483648){e=~~f;break b}e=-2147483648}if((e|0)>=163)break a;f=+N[(e<<3)+92416>>2];if(f>a)break a;f=a-f;if(c){d=Dzb(J[694792],J[694793],1284865837,1481765933);c=fc;d=d+1|0;c=d?c:c+1|0;J[694792]=d;J[694793]=c;f=f*285.7142768952314+ +(c>>>1|0)*4.656612875245797E-10+-.5}else f= -f*285.7142768952314;if(R(f)<2147483648)c=~~f;else c=-2147483648;if((c|0)>=I[(e<<3)+92420>>1])break a;return c+I[(e<<3)+92422>>1]|0}h=bc-800|0;bc=h;if(!K[2729664]){c=100;while(1){e=(c<<3)+h|0;d=e-16|0;J[d>>2]=0;J[d+4>>2]=1073741824;d=e-8|0;J[d>>2]=0;J[d+4>>2]=1073741824;d=e-24|0;J[d>>2]=0;J[d+4>>2]=1073741824;e=e-32|0;J[e>>2]=0;J[e+4>>2]=1073741824;c=c-5|0;e=(c<<3)+h|0;J[e>>2]=0;J[e+4>>2]=1073741824;if(c)continue;break}c=162;while(1){e=c;d=c<<3;c=I[d+92420>>1]-1|0;i=(e|0)==162?1:e?c:1;g=d+92422|0; -k=(+(e|0)+.5)*.0035000001080334187+.016939999535679817+-.473684211;l=+N[d+92416>>2];while(1){f=Cf(k,(+(c|0)+.5)*.0035000001080334187+l+-.210526316)*15.915494277358546+50;c:{if(R(f)<2147483648){d=~~f;break c}d=-2147483648}j=(d<<3)+h|0;f=R(f-(+(d|0)+.5));if(O[j>>3]>f){J[(d<<2)+2729264>>2]=I[g>>1]+c;O[j>>3]=f}c=c-i|0;if((c|0)>=0)continue;break}c=e-1|0;if(e)continue;break}e=100;g=99;while(1){c=1;d=g;if(O[(d<<3)+h>>3]>1.5){while(1){d:{if(O[((c+d>>>0)%100<<3)+h>>3]<1.5){i=c;break d}i=50;g=c+1|0;if((g|0)== -50)break d;i=g;if(O[((g+d>>>0)%100<<3)+h>>3]<1.5)break d;c=c+2|0;continue}break}j=e+99|0;c=1;g=-1;while(1){e:{if(O[((g+j>>>0)%100<<3)+h>>3]<1.5){e=c;break e}e=c+1|0;if((e|0)==50){g=-50;e=50;break e}g=c^-1;if(O[((j+g>>>0)%100<<3)+h>>3]<1.5)break e;g=-2-c|0;c=c+2|0;continue}break}J[(d<<2)+2729264>>2]=J[(((e>>>0>i>>>0?d+i|0:g+j|0)|0)%100<<2)+2729264>>2]}g=d-1|0;e=d;if(d)continue;break}H[2729664]=1}a=Cf(b+-.473684211,a+-.210526316)*15.915494277358546+50;f:{if(R(a)<2147483648){c=~~a;break f}c=-2147483648}bc= -h+800|0;return J[(c<<2)+2729264>>2]}function kg(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=bc-112|0;bc=g;if(!J[689510])XJ();a:{if(!a|!K[a|0])break a;h=J[689508];b=0;b:{if(!h)break b;while(1){c:{b=H[a+e|0];b=b-97>>>0<26?b&95:b;H[e+g|0]=b;if(!(b&255)){b=e;break c}b=99;e=e+1|0;if((e|0)!=99)continue}break}H[b+g|0]=0;e=0;d=J[689509];b=0;if((d|0)<=0)break b;while(1){b=h+(e<<3)|0;if(!Ec(J[b+4>>2],g)){b=J[b>>2];break b}e=e+1|0;if((d|0)!=(e|0))continue;break}b=0}i=b?b:a;while(1){d:{e=H[f+i|0];e=e-97>>>0< -26?e&95:e;H[f+g|0]=e;if(!(e&255)){e=f;break d}e=99;f=f+1|0;if((f|0)!=99)continue}break}f=0;H[e+g|0]=0;d=J[689510];e:{if(!d)break e;b=J[689513];if((b|0)<=0)break e;while(1){e=J[d+(f<<2)>>2];if(!Ec(g,J[e>>2]))break a;f=f+1|0;if((b|0)!=(f|0))continue;break}}e=0;b=0;f=0;c=bc-512|0;bc=c;f:{if(!a)break f;j=J[689508];d=0;g:{if(!j)break g;while(1){h:{d=H[a+f|0];d=d-97>>>0<26?d&95:d;H[c+f|0]=d;if(!(d&255)){d=f;break h}d=99;f=f+1|0;if((f|0)!=99)continue}break}H[c+d|0]=0;f=0;h=J[689509];d=0;if((h|0)<=0)break g; -while(1){d=(f<<3)+j|0;if(!Ec(J[d+4>>2],c)){d=J[d>>2];break g}f=f+1|0;if((h|0)!=(f|0))continue;break}d=0}d=d?d:a;while(1){i:{a=H[b+d|0];a=a-97>>>0<26?a&95:a;H[b+c|0]=a;if(!(a&255)){f=b;break i}f=499;b=b+1|0;if((b|0)!=499)continue}break}b=0;H[c+f|0]=0;if(!K[c|0])break f;b=1;if(!Wc(c,22390,6))break f;if(!Wc(c,22323,5))break f;b=2;if(!Wc(c,22625,7))break f;if(!Wc(c,22619,6))break f;b=9;if(!Wc(c,24742,16))break f;if(!Wc(c,24752,6))break f;if(!Wc(c,24658,5))break f;b=4;if(!Wc(c,22845,16))break f;if(!Wc(c, -22855,6))break f;if(!Wc(c,22744,5))break f;b=10;if(!Wc(c,28313,11))break f;if(!Wc(c,28301,12))break f;if(!Wc(c,28324,12))break f;b=11;if(!Wc(c,24770,11))break f;if(!Wc(c,24758,12))break f;if(!Wc(c,24817,12))break f;if(!Wc(c,24396,11)){b=12;break f}if(!Wc(c,22861,11)){b=13;break f}if(!Wc(c,22726,11)){b=14;break f}if(!Wc(c,22632,11)){b=15;break f}if(!Wc(c,22536,11)){b=16;break f}if(!Wc(c,22396,11)){b=17;break f}if(!Wc(c,22307,11)){b=18;break f}if(!Wc(c,20916,12)){b=19;break f}if(!Wc(c,20773,10)){b= -20;break f}b=Wc(c,20909,7)?-1:21}bc=c+512|0;a=b-1|0;if(a>>>0>20)break a;a=J[(a<<2)+773536>>2];if(!Ec(i,a))break a;e=kg(a)}bc=g+112|0;return e}function cib(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;J[a+64>>2]=0;J[a+1140>>2]=b;j=a+1140|0;J[a+1344>>2]=j;k=a+112|0;J[a+1136>>2]=k;e=b+c|0;J[a+1148>>2]=e;J[a+1144>>2]=b;l=160;a:{if((c|0)<=0)break a;f=j;while(1){d=b+1|0;i=J[a+1136>>2];c=22;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{g=K[b|0];switch(g-1|0){case 0:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 13:case 14:case 20:case 21:case 29:case 30:break a; -case 11:break j;case 12:break k;case 9:break f;case 10:break g;case 1:case 15:case 16:case 17:case 18:case 19:case 22:case 23:case 24:case 25:case 26:case 27:case 28:break h;default:break i}}c=2;break f}if(d>>>0>=e>>>0)break a;d=b+2|0;g=20;c=4;switch(K[b+1|0]-7|0){case 5:break e;case 0:break f;default:break a}}if((g|0)==255)break d}if(g>>>0<32)break a;l:{if(g>>>0<=246){b=g-139|0;break l}c=b+2|0;if(c>>>0>e>>>0)break a;b=g<<8;d=K[d|0];b=g>>>0<=250?(b+d|0)-63124|0:64148-(b|d)|0;d=c}b=h?b:b<<16;c=(h| -0)!=0;break c}c=24}g=c;if(h)break a}b=J[(g<<2)+261920>>2];if((b|0)>i-k>>2)return 161;c=i-(b<<2)|0;m:{n:{o:{p:switch(g-2>>>1|0){case 1:J[a+64>>2]=1;J[a+32>>2]=J[c>>2]+J[a+32>>2];J[a+36>>2]=J[c+4>>2]+J[a+36>>2];J[a+40>>2]=J[c+8>>2];b=J[c+12>>2];break m;case 9:m=c,n=td(J[c>>2],J[c+4>>2]),J[m>>2]=n;c=c+4|0;h=0;b=d;break b;case 10:b=I[c+2>>1];e=J[a+1376>>2];if(e){b=zi(b,e);if(!b)break a;b=J[b>>2]}if((b|0)<0|J[a+1364>>2]<=(b|0)|(f-j|0)>180)break a;J[f>>2]=d;d=b<<2;e=d+J[a+1368>>2]|0;b=J[e>>2];J[f+16>>2]= -b;g=J[a+1372>>2];q:{if(g){e=J[d+g>>2]+b|0;break q}d=b;b=J[a+1360>>2];b=d+((b|0)>0?b:0)|0;J[f+16>>2]=b;e=J[e+4>>2]}J[f+12>>2]=b;J[f+20>>2]=e;if(!b)break a;f=f+12|0;break o;case 0:break n;case 11:break p;default:break a}if(f>>>0<=j>>>0)break a;f=f-12|0;b=J[f>>2];e=J[f+8>>2]}J[a+1344>>2]=f;break b}J[a+64>>2]=1;J[a+32>>2]=J[c>>2]+J[a+32>>2];J[a+40>>2]=J[c+4>>2];b=0}J[a+44>>2]=b;l=0;break a}d=b+5|0;if(e>>>0>>0)break a;b=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280| -b>>>24);if(b-32001>>>0<=4294903294){c=1;if(!h)break c;break a}b=h?b:b<<16;c=(h|0)!=0}h=c;if((i-k|0)>1020)break a;J[i>>2]=b;c=i+4|0;b=d}J[a+1136>>2]=c;if(b>>>0>>0)continue;break}}return l|0}function t3(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{i=K[e+3|0];if(!i)break a;a=J[a>>2];j=J[a+4>>2];g=J[a+16>>2];b:{c:{if((g|0)>=0){c=P(c,g);break c}c=P(c,g);if((j-J[a>>2]|0)<(0-c|0))break b}h=c+j|0}h=(b<<2)+h|0;j=P(i,f+1|0);g=j>>>8|0;if((g|0)==255){a=K[e+2|0]|(K[e|0]<<16|i<<24|K[e+1|0]<<8);b=d-1| -0;c=d&7;if(c){e=0;while(1){J[h>>2]=a;d=d-1|0;h=h+4|0;e=e+1|0;if((c|0)!=(e|0))continue;break}}if(b>>>0<7)break a;while(1){J[h+28>>2]=a;J[h+24>>2]=a;J[h+20>>2]=a;J[h+16>>2]=a;J[h+12>>2]=a;J[h+8>>2]=a;J[h+4>>2]=a;J[h>>2]=a;h=h+32|0;d=d-8|0;if(d)continue;break}break a}if((f|0)==255){if(j>>>0<256)break a;i=(g-(P(g,255)+255>>>8|0)|0)+255|0;while(1){c=h+3|0;a=K[h|0];b=K[h+1|0];j=K[h+2|0];k=K[e+2|0];l=K[e+1|0];m=K[e|0];f=K[h+3|0];d:{if((f|0)==255){H[h|0]=a+(P(g,k-a|0)>>>8|0);b=b+(P(g,l-b|0)>>>8|0)|0;f=j+ -(P(g,m-j|0)>>>8|0)|0;a=i;break d}c=f+g-(P(f,g)+255>>>8)|0;H[h+3|0]=c;a=P(a,f);c=c&255;a=(a+P(g,k)-(P(a,g)+255>>>8)>>>0)/(c>>>0)|0;b=P(b,f);b=(b+P(g,l)-(P(b,g)+255>>>8)>>>0)/(c>>>0)|0;f=P(f,j);f=(f+P(g,m)-(P(f,g)+255>>>8)>>>0)/(c>>>0)|0;c=h}H[h+1|0]=b;H[h+2|0]=f;H[c|0]=a;h=h+4|0;d=d-1|0;if(d)continue;break}break a}if(j>>>0>=256){i=K[e+2|0];l=K[e+1|0];m=K[e|0];c=h+3|0;a=K[h|0];f=K[h+1|0];k=K[h+2|0];b=K[h+3|0];e:{if((b|0)==255){H[h|0]=a+(P(g,i-a|0)>>>8|0);a=f+(P(g,l-f|0)>>>8|0)|0;f=k+(P(g,m-k|0)>>>8| -0)|0;i=(g-(P(g,255)+255>>>8|0)|0)+255|0;break e}c=b+g-(P(b,g)+255>>>8)|0;H[h+3|0]=c;a=P(a,b);c=c&255;i=(a+P(g,i)-(P(a,g)+255>>>8)>>>0)/(c>>>0)|0;a=P(b,f);a=(a+P(g,l)-(P(a,g)+255>>>8)>>>0)/(c>>>0)|0;b=P(b,k);f=(b+P(g,m)-(P(b,g)+255>>>8)>>>0)/(c>>>0)|0;c=h}H[h+1|0]=a;H[h+2|0]=f;H[c|0]=i}a=d-1|0;if(!a|j>>>0<256)break a;j=(g-(P(g,255)+255>>>8|0)|0)+255|0;while(1){c=h;f=h+7|0;h=h+4|0;b=K[c+4|0];k=K[c+5|0];l=K[c+6|0];i=K[e+2|0];m=K[e+1|0];n=K[e|0];d=K[c+7|0];f:{if((d|0)==255){H[h|0]=b+(P(g,i-b|0)>>>8|0); -b=k+(P(g,m-k|0)>>>8|0)|0;d=l+(P(g,n-l|0)>>>8|0)|0;i=j;break f}f=d+g-(P(d,g)+255>>>8)|0;H[c+7|0]=f;b=P(b,d);f=f&255;i=(b+P(g,i)-(P(b,g)+255>>>8)>>>0)/(f>>>0)|0;b=P(d,k);b=(b+P(g,m)-(P(b,g)+255>>>8)>>>0)/(f>>>0)|0;d=P(d,l);d=(d+P(g,n)-(P(d,g)+255>>>8)>>>0)/(f>>>0)|0;f=h}H[c+5|0]=b;H[c+6|0]=d;H[f|0]=i;a=a-1|0;if(a)continue;break}}}function mlb(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;i=bc-80|0;bc=i;e=vx(b,c);a:{if(e)break a;g=J[b+2740>>2];if(!(g& -1)){e=M6(b,J[d+52>>2],d+56|0,0);if(e)break a;g=J[b+2740>>2]}b:{if(g&2)break b;e=M6(b,J[d+9856>>2],d+9860|0,1);if(e)break a;if(K[(J[J[d+36>>2]+8>>2]+(a<<1)|0)+1|0]&64)break b;a=J[b+1404>>2];if((a|0)<=0)break b;e=J[b+1412>>2];p=e+P(a,44)|0;n=J[d+9848>>2];q=d+10068|0;while(1){a=Pc(M[d+40>>2]/40|0,n);c:{if(!J[d+10064>>2])break c;g=(a|0)>=32?32:a;a=0;h=0;m=0;while(1){j=P(a,36)+q|0;f=J[j+32>>2];d:{if(!(f&1))break d;o=f>>>3&1;l=(f&6)!=0;if(!(o|l^J[b+1416>>2]==H[e+13|0]))break d;k=I[e>>1]-J[j>>2]|0;f=k>> -31;k=Pc((f^k)-f|0,n);f=(k|0)<(g|0);g=f?k:g;h=f?j:h;m=f?o:m;if(!(H[e+12|0]&1)|(!k|o))break d;f=I[e>>1];if(((f|0)>2]|0)==(l|0))break d;l=f-J[j+12>>2]|0;f=l>>31;f=Pc((f^l)-f|0,n);if((f|0)>=(g|0))break d;h=j+12|0;m=0;g=f}a=a+1|0;if(a>>>0>2])continue;break}if(!h)break c;J[e+20>>2]=h;if(!(m&255))break c;H[e+12|0]=K[e+12|0]|8}e=e+44|0;if(p>>>0>e>>>0)continue;break}}a=J[b+2740>>2];e:{if(!(J[d+24>>2]|a&8)){P6(i+20|0,b,i+16|0,i+12|0);d=J[b+24>>2];if((d|0)<=0)break e;a=J[b+28>>2];d=a+P(d,40)| -0;g=J[i+12>>2];f=J[i+16>>2];while(1){r=a,s=Pc(I[a+12>>1],f)+g|0,J[r+16>>2]=s;a=a+40|0;if(d>>>0>a>>>0)continue;break}break e}if(a&1)break e;L6(b,0);a=J[b+44>>2];if((a|0)>0){e=J[b+52>>2];d=e+P(a,44)|0;while(1){a=J[e+12>>2];if(a){g=e+36|0;f=J[a+8>>2];h=J[e+40>>2];while(1){a=J[g>>2];J[a+16>>2]=f;I[a>>1]=L[a>>1]|4;g=a+32|0;if((a|0)!=(h|0))continue;break}}e=e+44|0;if(d>>>0>e>>>0)continue;break}}qM(b,0);pM(b,0)}if(!(K[b+2740|0]&2)){L6(b,1);a=J[b+1392>>2];if((a|0)>0){e=J[b+1400>>2];d=e+P(a,44)|0;while(1){a= -J[e+12>>2];if(a){g=e+36|0;f=J[a+8>>2];h=J[e+40>>2];while(1){a=J[g>>2];J[a+20>>2]=f;I[a>>1]=L[a>>1]|8;g=a+32|0;if((a|0)!=(h|0))continue;break}}e=e+44|0;if(d>>>0>e>>>0)continue;break}}qM(b,1);pM(b,1)}d=J[b+24>>2];if((d|0)<=0){e=0;break a}a=J[b+28>>2];d=a+P(d,40)|0;g=J[c+4>>2];b=J[c+8>>2];while(1){J[g>>2]=J[a+16>>2];J[g+4>>2]=J[a+20>>2];e=0;c=L[a>>1];H[b|0]=c&1?0:c&2?2:1;b=b+1|0;g=g+8|0;a=a+40|0;if(d>>>0>a>>>0)continue;break}}bc=i+80|0;return e|0}function vL(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;j=bc-16|0;bc=j;J[j+12>>2]=0;o=J[a+100>>2];k=J[a+736>>2];a:{b:{if(!k){e=$t(a,0);J[j+12>>2]=e;if(e)break b;k=J[a+736>>2]}l=J[k+12>>2];e=J[l>>2];d=J[k+4>>2];if(!d){d=Sc(o,4,0,e,0,j+12|0);J[k+4>>2]=d;if(J[j+12>>2])break b}e=b>>>0>e>>>0?e:b;c:{if(!e)break c;if(e>>>0>=4){i=e&-4;b=0;while(1){h=J[c>>2];if((h|0)!=J[d>>2]){J[d>>2]=h;f=1}h=J[c+4>>2];if((h|0)!=J[d+4>>2]){J[d+4>>2]=h;f=1}h=J[c+8>>2];if((h|0)!=J[d+8>>2]){J[d+8>>2]=h;f=1}h=J[c+12>>2];if((h|0)!=J[d+12>>2]){J[d+ -12>>2]=h;f=1}d=d+16|0;c=c+16|0;b=b+4|0;if((i|0)!=(b|0))continue;break}}b=e&3;if(!b)break c;while(1){i=J[c>>2];if((i|0)!=J[d>>2]){J[d>>2]=i;f=1}d=d+4|0;c=c+4|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}i=J[l>>2];b=J[a+4>>2];d:{if(b&2147418112){if(e>>>0>=i>>>0)break d;c=J[(J[l+16>>2]+P(b>>>16|0,12)|0)-12>>2]+(e<<2)|0;h=i+(e^-1)|0;m=i-e&3;e:{if(!m){g=e;break e}b=0;g=e;while(1){n=J[c>>2];if((n|0)!=J[d>>2]){J[d>>2]=n;f=1}d=d+4|0;c=c+4|0;g=g+1|0;b=b+1|0;if((m|0)!=(b|0))continue;break}}if(h>>>0<3)break d; -while(1){b=J[c>>2];if((b|0)!=J[d>>2]){J[d>>2]=b;f=1}b=J[c+4>>2];if((b|0)!=J[d+4>>2]){J[d+4>>2]=b;f=1}b=J[c+8>>2];if((b|0)!=J[d+8>>2]){J[d+8>>2]=b;f=1}b=J[c+12>>2];if((b|0)!=J[d+12>>2]){J[d+12>>2]=b;f=1}d=d+16|0;c=c+16|0;g=g+4|0;if((i|0)!=(g|0))continue;break}break d}if(e>>>0>=i>>>0)break d;h=i+(e^-1)|0;c=J[l+12>>2]+P(e,24)|0;m=i-e&3;f:{if(!m){g=e;break f}b=0;g=e;while(1){n=J[c+8>>2];if((n|0)!=J[d>>2]){J[d>>2]=n;f=1}d=d+4|0;c=c+24|0;g=g+1|0;b=b+1|0;if((m|0)!=(b|0))continue;break}}if(h>>>0<3)break d; -while(1){b=J[c+8>>2];if((b|0)!=J[d>>2]){J[d>>2]=b;f=1}b=J[c+32>>2];if((b|0)!=J[d+4>>2]){J[d+4>>2]=b;f=1}b=J[c+56>>2];if((b|0)!=J[d+8>>2]){J[d+8>>2]=b;f=1}b=J[c+80>>2];if((b|0)!=J[d+12>>2]){J[d+12>>2]=b;f=1}d=d+16|0;c=c+96|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}if(J[k+8>>2]){b=-1;if(!(f&255))break a}f=Sc(o,4,0,i,0,j+12|0);if(J[j+12>>2])break b;b=J[a+736>>2];if(!K[b+24|0]){m4(a);b=J[a+736>>2]}l4(b,e,J[k+4>>2],f);b=HC(a,J[l>>2],f,0);J[j+12>>2]=b;if(b)break b;J[a+8>>2]=J[a+8>>2]&-32769|((e|0)!=0)<< -15}if(f)gc[J[o+8>>2]](o,f);b=J[j+12>>2]}bc=j+16|0;return b|0}function nRa(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;if(J[a+76>>2]>0){u=J[a+284>>2]-1|0;q=J[a+400>>2];h=J[a+84>>2];while(1){f=s<<2;d=J[h+12>>2];n=gc[J[J[a+4>>2]+32>>2]](a,J[(f+q|0)- -64>>2],P(d,J[q+8>>2]),d,1)|0;if(M[q+8>>2]>>0)d=J[h+12>>2];else{d=J[h+12>>2];c=M[h+32>>2]%(d>>>0)|0;d=c?c:d}j=J[h+28>>2];k=J[h+8>>2];c=(j>>>0)%(k>>>0)|0;l=(c|0)>0?k-c|0:c;a:{if((d|0)<=0)break a; -m=J[(f+J[a+416>>2]|0)+4>>2];p=b+f|0;if((l|0)<=0){c=0;if((d|0)!=1){g=d&-2;f=0;while(1){gc[m|0](a,h,J[p>>2],J[(c<<2)+n>>2],P(J[h+40>>2],c),0,j);i=c|1;gc[m|0](a,h,J[p>>2],J[(i<<2)+n>>2],P(i,J[h+40>>2]),0,j);c=c+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(d&1))break a;gc[m|0](a,h,J[p>>2],J[(c<<2)+n>>2],P(J[h+40>>2],c),0,j);break a}t=l<<7;v=l&-8;r=l&7;w=l>>>0<8;i=0;while(1){c=J[(i<<2)+n>>2];gc[m|0](a,h,J[p>>2],c,P(J[h+40>>2],i),0,j);c=c+(j<<7)|0;Le(c,t);g=L[c-128>>1];f=0;o=0;if(!w)while(1){e=f<<7; -I[e+c>>1]=g;I[(e|128)+c>>1]=g;I[(e|256)+c>>1]=g;I[(e|384)+c>>1]=g;I[(e|512)+c>>1]=g;I[(e|640)+c>>1]=g;I[(e|768)+c>>1]=g;I[(e|896)+c>>1]=g;f=f+8|0;o=o+8|0;if((v|0)!=(o|0))continue;break}e=0;if(r)while(1){I[(f<<7)+c>>1]=g;f=f+1|0;e=e+1|0;if((r|0)!=(e|0))continue;break}i=i+1|0;if((i|0)!=(d|0))continue;break}}b:{if(J[q+8>>2]!=(u|0))break b;c=j+l|0;if(J[h+12>>2]<=(d|0))break b;p=(c>>>0)/(k>>>0)|0;j=c<<7;if(c>>>0>=k>>>0){if((k|0)>0){r=k&-8;l=k&7;t=k-1<<7;while(1){c=(d<<2)+n|0;i=J[c-4>>2];c=J[c>>2];Le(c, -j);m=0;while(1){g=L[i+t>>1];f=0;o=0;if(k>>>0>=8)while(1){e=f<<7;I[e+c>>1]=g;I[(e|128)+c>>1]=g;I[(e|256)+c>>1]=g;I[(e|384)+c>>1]=g;I[(e|512)+c>>1]=g;I[(e|640)+c>>1]=g;I[(e|768)+c>>1]=g;I[(e|896)+c>>1]=g;f=f+8|0;o=o+8|0;if((r|0)!=(o|0))continue;break}e=0;if(l)while(1){I[(f<<7)+c>>1]=g;f=f+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}f=k<<7;i=f+i|0;c=c+f|0;m=m+1|0;if(p>>>0>m>>>0)continue;break}d=d+1|0;if((d|0)>2])continue;break}break b}while(1){Le(J[(d<<2)+n>>2],j);d=d+1|0;if((d|0)>2])continue; -break}break b}while(1){Le(J[(d<<2)+n>>2],j);d=d+1|0;if((d|0)>2])continue;break}}h=h+88|0;s=s+1|0;if((s|0)>2])continue;break}}return xZ(a,c)|0}function Hlb(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;h=bc-16|0;bc=h;J[h+12>>2]=b;d=bc+-64|0;bc=d;if(!J[a+16>>2]){b=rc(1068);J[b>>2]=2431592;J[b+36>>2]=-306674912;J[b+40>>2]=-1;J[b+28>>2]=1200;J[b+32>>2]=0;f=b+8|0;J[f>>2]=0;J[f+4>>2]=0;e=b+20|0;J[e>>2]=0;J[e+4>>2]=0;J[b+4>>2]=f;H[b+1064|0]=0;J[b+16>>2]=e;J[a+16>>2]=b}f=J[a+ -4>>2];b=d+40|0;H[b+8|0]=0;J[b+4>>2]=1;J[b>>2]=2427724;e=rc(2352);J[695492]=0;f=ga(6206,e|0,b|0,f|0)|0;g=J[695492];J[695492]=0;a:{if((g|0)!=1){J[f+2336>>2]=0;J[f+2340>>2]=0;J[f+2344>>2]=0;J[b+12>>2]=f;break a}a=Z()|0;qc(e);ba(a|0);B()}e=J[a+16>>2];J[695492]=0;f=b;J[J[b+12>>2]+1728>>2]=e;b=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[695492]=0;J[d+8>>2]=5;b=d+8|0;J[J[f+12>>2]+2004>>2]=J[b>>2];e=J[695492];J[695492]=0;if((e|0)==1)break h;J[d+36>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;if(c)break f; -c=J[h+12>>2];a=J[a>>2];J[695492]=0;ia(1634,b|0,f|0,a|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;break e}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break d}b=J[h+12>>2];a=J[a>>2];J[695492]=0;ia(1635,d+8|0,f|0,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;a=Z()|0;break d}J[d+36>>2]=J[d+16>>2];a=J[d+12>>2];J[d+32>>2]=a;e=J[d+8>>2];J[d+28>>2]=e;J[d+16>>2]=1E3;J[d+8>>2]=231644;b=zc(1E3);J[d+12>>2]=b;g=a-e|0;c=(g|0)/12|0;H[b+4|0]=c;H[b+5|0]=c>>>8;H[b+6|0]=c>>>16;H[b+7|0]=c>>>24;H[b|0]=0;H[b+ -1|0]=0;H[b+2|0]=0;H[b+3|0]=0;a=8;J[d+24>>2]=8;J[d+20>>2]=b+8;i:{if((g|0)>0){g=(c|0)<=1?1:c;a=0;while(1){J[d+60>>2]=0;J[d+56>>2]=0;b=e+P(a,12)|0;i=J[b>>2];j=J[b+4>>2];c=K[b+11|0];J[695492]=0;k=b;b=c<<24>>24<0;la(1636,(b?i:k)|0,(b?j:c)|0,d+60|0,d+56|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;ca(1637,d+8|0,J[d+60>>2],J[d+56>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break i;a=a+1|0;if((g|0)!=(a|0))continue;break}a=J[d+24>>2];b=J[d+12>>2]}H[b|0]=a;H[b+1|0]=a>>>8;H[b+2|0]=a>>>16;H[b+3| -0]=a>>>24;c=J[d+12>>2];if(e){a=J[d+32>>2];if((e|0)!=(a|0))while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>>2]);a=b;if((b|0)!=(e|0))continue;break}qc(e)}_F(f);bc=d- -64|0;break b}a=Z()|0;J[d+8>>2]=231644;b=J[d+12>>2];if(!b)break d;qc(b)}sg(d+28|0)}_F(f);ba(a|0);B()}bc=h+16|0;return c|0}function Iqa(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;i=bc-32|0;bc=i;s=J[a+52>>2];n=J[a+12>>2];j=J[a>>2];e=Ol(j);f=P(n?4:3,e);m=zc(f); -a:{if(!m){Nc(J[j+628>>2],J[j>>2],81424,0);break a}Hg(m,0,f);J[i+16>>2]=i+28;ce(j,322,i+16|0);J[i>>2]=i+24;ce(j,323,i);f=0;b:{c:{d:{e:{f:{g:{h:switch(L[a+28>>1]-1|0){case 0:case 4:g=L[a+30>>1];if(g>>>0>8)break d;h=1<>1];if(g>>>0>8)break d;h=1<>1];if(g>>>0>8)break d;g=1<>1];if(f>>>0>7)break d;g=1<>2]+c|0)|0;g=d-1|0;break b}f=0}r=c-J[i+28>>2]|0;y=1;g=0}t=1;i:{if(!d)break i;if(c){p=e+m|0;q=e+p|0;u=e+q|0;v=n?u:0;h=0;while(1){e=J[i+24>>2];e=e-((J[a+76>>2]+h>>>0)%(e>>>0)|0)|0;o=e+h>>>0>d>>>0?d-h|0:e;w=(P(c,g)<<2)+b|0;e=0;while(1){j:{k:{l:{if(z=(ws(j,m,J[a+80>>2]+e|0,J[a+76>>2]+h|0,0)|0)<0,A=0,B=J[a+ -4>>2],B?z:A)break l;if(z=(ws(j,p,J[a+80>>2]+e|0,J[a+76>>2]+h|0,1)|0)<0,A=0,B=J[a+4>>2],B?z:A)break l;if(z=(ws(j,q,J[a+80>>2]+e|0,J[a+76>>2]+h|0,2)|0)<0,A=0,B=J[a+4>>2],B?z:A)break l;if(!n)break k;if((ws(j,u,J[a+80>>2]+e|0,J[a+76>>2]+h|0,3)|0)>=0|!J[a+4>>2])break k}t=0;break j}k=J[a+76>>2];l=J[i+24>>2];k=P(Km(j),(h+k>>>0)%(l>>>0)|0);l=J[i+28>>2];m:{if(l+e>>>0<=c>>>0){gc[s|0](a,(e<<2)+w|0,e,g,l,o,0,r,k+m|0,k+p|0,k+q|0,n?k+v|0:0);break m}x=c-e|0;l=l-x|0;gc[s|0](a,(e<<2)+w|0,e,g,x,o,l,l+r|0,k+m|0,k+p| -0,k+q|0,n?k+v|0:0)}e=J[i+28>>2]+e|0;if(e>>>0>>0)continue}break}g=(y?o:0-o|0)+g|0;h=h+o|0;if(h>>>0>>0)continue;break}}if(f>>>0<2)break i;f=0;while(1){a=(P(c,f)<<2)+b|0;e=(a+(c<<2)|0)-4|0;if(a>>>0>>0)while(1){g=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=g;a=a+4|0;e=e-4|0;if(a>>>0>>0)continue;break}f=f+1|0;if((f|0)!=(d|0))continue;break}}qc(m)}bc=i+32|0;return t|0}function JH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:switch(b-1|0){case 1:b=J[a+212>>2];g=J[b+8>>2];if((g|0)>0){d=O[a+120>>3];f=O[a+ -112>>3];h=J[b>>2];b=0;while(1){c=J[h+(b<<2)>>2];e=O[c+16>>3];O[c+16>>3]=f-O[c>>3];O[c>>3]=f-e;e=O[c+24>>3];O[c+24>>3]=d-O[c+8>>3];O[c+8>>3]=d-e;b=b+1|0;if((g|0)!=(b|0))continue;break}}b=J[a+216>>2];c=J[b+8>>2];if((c|0)<=0)break a;d=O[a+120>>3];f=O[a+112>>3];g=J[b>>2];b=0;while(1){a=J[g+(b<<2)>>2];e=O[a+16>>3];O[a+16>>3]=f-O[a>>3];O[a>>3]=f-e;e=O[a+24>>3];O[a+24>>3]=d-O[a+8>>3];O[a+8>>3]=d-e;b=b+1|0;if((c|0)!=(b|0))continue;break}break a;case 0:b=J[a+212>>2];g=J[b+8>>2];if((g|0)>0){d=O[a+112>>3];h= -J[b>>2];b=0;while(1){c=J[h+(b<<2)>>2];f=O[c+16>>3];O[c+16>>3]=O[c+24>>3];e=O[c>>3];O[c>>3]=O[c+8>>3];O[c+24>>3]=d-e;O[c+8>>3]=d-f;J[c+32>>2]=!J[c+32>>2];b=b+1|0;if((g|0)!=(b|0))continue;break}}b=J[a+216>>2];g=J[b+8>>2];if((g|0)<=0)break a;d=O[a+112>>3];h=J[b>>2];b=0;if((g|0)!=1){j=g&-2;c=0;while(1){i=b<<2;a=J[i+h>>2];f=O[a+16>>3];O[a+16>>3]=O[a+24>>3];e=O[a>>3];O[a>>3]=O[a+8>>3];O[a+24>>3]=d-e;O[a+8>>3]=d-f;a=J[h+(i|4)>>2];f=O[a+16>>3];O[a+16>>3]=O[a+24>>3];e=O[a>>3];O[a>>3]=O[a+8>>3];O[a+24>>3]= -d-e;O[a+8>>3]=d-f;b=b+2|0;c=c+2|0;if((j|0)!=(c|0))continue;break}}if(!(g&1))break a;a=J[h+(b<<2)>>2];f=O[a+16>>3];O[a+16>>3]=O[a+24>>3];e=O[a>>3];O[a>>3]=O[a+8>>3];O[a+24>>3]=d-e;O[a+8>>3]=d-f;return;case 2:break b;default:break a}b=J[a+212>>2];g=J[b+8>>2];if((g|0)>0){d=O[a+120>>3];h=J[b>>2];b=0;while(1){c=J[h+(b<<2)>>2];f=O[c+24>>3];O[c+24>>3]=O[c+16>>3];e=O[c+8>>3];O[c+8>>3]=O[c>>3];O[c+16>>3]=d-e;O[c>>3]=d-f;J[c+32>>2]=!J[c+32>>2];b=b+1|0;if((g|0)!=(b|0))continue;break}}b=J[a+216>>2];g=J[b+8>> -2];if((g|0)<=0)break a;d=O[a+120>>3];h=J[b>>2];b=0;if((g|0)!=1){j=g&-2;c=0;while(1){i=b<<2;a=J[i+h>>2];f=O[a+24>>3];O[a+24>>3]=O[a+16>>3];e=O[a+8>>3];O[a+8>>3]=O[a>>3];O[a+16>>3]=d-e;O[a>>3]=d-f;a=J[h+(i|4)>>2];f=O[a+24>>3];O[a+24>>3]=O[a+16>>3];e=O[a+8>>3];O[a+8>>3]=O[a>>3];O[a+16>>3]=d-e;O[a>>3]=d-f;b=b+2|0;c=c+2|0;if((j|0)!=(c|0))continue;break}}if(!(g&1))break a;a=J[h+(b<<2)>>2];f=O[a+24>>3];O[a+24>>3]=O[a+16>>3];e=O[a+8>>3];O[a+8>>3]=O[a>>3];O[a+16>>3]=d-e;O[a>>3]=d-f}}function j$a(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;l=J[a+4>>2];d=J[l+52>>2];h=d?d:64;j=J[a+12>>2];i=J[a+8>>2];e=J[l+56>>2];d=J[a+16>>2];g=J[a+20>>2]-d|0;c=!!((g|0)>0?e:0);a:while(1){b:{c:{if(!c){c=j-i>>1;g=(c|0)>(g|0)?g:c;d:{if((g|0)<=0)break d;while(1){e=L[i>>1];if(e>>>0>12287)break d;e:{if(e>>>0<=32){h=(e|0)!=32?64:h;c=e;break e}c=e-h|0;if(c- -64>>>0>127)break d;h=e&65408|64;c=c-112|0}H[d|0]=c;i=i+2|0;d=d+1|0;c=(g|0)>1;g=g-1|0;if(c)continue;break}}g=J[a+20>>2]-d|0;c=0;break c}if(i>>>0>>0){f= -L[i>>1];c=(f&64512)==56320;e=c?(f+(e<<10)|0)-56613888|0:e;i=(c<<1)+i|0;c=1;break c}e=0-e|0;break b}while(1){f:{g:{h:{i:{if(!c){if(i>>>0>=j>>>0)break b;if((g|0)<=0)break i;c=i;while(1){j:{i=c+2|0;e=L[c>>1];if(e>>>0>32)break j;H[d|0]=e;h=(e|0)!=32?64:h;d=d+1|0;if(i>>>0>=j>>>0)break b;f=(g|0)<2;g=g-1|0;c=i;if(!f)continue;break i}break}if((e&64512)!=55296)break f;c=1;continue a}c=e-h|0;k=e&-128|64;h=k;k:{if(e-55204>>>0<=4294924443)break k;h=12400;if(e>>>0<12448)break k;h=30481;if(e-19968>>>0<20902)break k; -h=49617;if(e>>>0>44031)break k;h=k}if(c- -64>>>0<=127){H[d|0]=c-112;g=g-1|0;d=d+1|0;if((e|0)<12288)break h;break g}if(!(g>>>0<2|c+10513>>>0>21025)){l:{m:{n:{o:{if((c|0)>=0){c=c+-64|0;f=(c<<16>>16)/243|0;c=c-P(f,243)<<16>>16;f=f+208&65535;break o}c=-64-c|0;f=(c>>>0)/243|0;k=c-P(f,243)|0;c=243-k|0;f=(k?f^-1:0-f|0)+80|0;if(!k)break n}H[d|0]=f;if((c|0)<20)break m;c=c+13|0;break l}H[d|0]=f;c=0}c=K[c+753856|0]}H[d+1|0]=c;g=g-2|0;d=d+2|0;break g}c=X0(c);k=c>>24;f=c>>>0>=67108864?4:k;if((f|0)<=(g|0)){p:switch(f- -3|0){case 1:H[d|0]=k;d=d+1|0;case 0:H[d+2|0]=c;H[d+1|0]=c>>>8;H[d|0]=c>>>16;d=d+3|0;break;default:break p}g=g-f|0;break g}j=l+76|0;q:{r:{s:{t:{f=f-g|0;switch(f-1|0){case 0:break r;case 1:break s;case 2:break t;default:break q}}H[l+76|0]=c>>>16;j=l+77|0}H[j|0]=c>>>8;j=j+1|0}H[j|0]=c}H[l+63|0]=f;c=c>>(f<<3);u:switch(g-1|0){case 2:H[d|0]=c>>>16;d=d+1|0;case 1:H[d|0]=c>>>8;d=d+1|0;case 0:H[d|0]=c;d=d+1|0;break;default:break u}J[b>>2]=15;break b}J[b>>2]=15;break b}c=0;continue a}c=0;continue}c=1;continue}}break}J[l+ -52>>2]=h;J[l+56>>2]=0-e&e>>31;J[a+16>>2]=d;J[a+8>>2]=i}function W0a(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;f=bc-16|0;bc=f;e=J[a+8>>2];c=J[a+12>>2];a:{if((e|0)==(c|0))break a;l=J[a+4>>2];if(J[l+52>>2]==1){hi(l,738528,2,a+16|0,J[a+20>>2],a+24|0,-1,b);J[l+52>>2]=0}g=J[a+16>>2];J[f+12>>2]=g;d=J[a+20>>2];if(d>>>0<=g>>>0){J[b>>2]=15;break a}h=c-e>>1;c=J[a+24>>2];J[f+8>>2]=c;j=d-g|0;b:{c:{d:{e:{f:{g:{h:{d=J[l+56>>2];k=d&65535;if(!k|j>>>0<4)break h;i=L[e>>1];if((i&-1024)!=56320)break h; -H[g+3|0]=i;H[g+1|0]=d;H[g+2|0]=i>>>8;H[g|0]=d>>>8;g=g+4|0;J[f+12>>2]=g;d=0;if(c){J[c+8>>2]=-1;J[c>>2]=-1;J[c+4>>2]=-1;d=c+16|0;J[f+8>>2]=d;J[c+12>>2]=-1}j=j-4|0;h=h-1|0;e=e+2|0;J[l+56>>2]=0;i=1;c=d;break g}i=0;if(k)break f}d=h<<1;d=d>>>0>j>>>0?j&-2:d;j=j-d|0;k=h;h=d>>>1|0;k=k-h|0;i:{j:{if(c){if(!d)break i;while(1){k:{c=e+2|0;d=L[e>>1];l:{if((d&63488)!=55296){H[g|0]=d>>>8;e=J[f+12>>2];H[e+1|0]=d;g=e+2|0;J[f+12>>2]=g;e=J[f+8>>2];J[e>>2]=i;J[f+8>>2]=e+8;J[e+4>>2]=i;i=i+1|0;break l}if(d&1024|h>>>0<2)break k; -m=L[c>>1];if((m&64512)!=56320)break k;H[g|0]=d>>>8;c=J[f+12>>2];H[c+3|0]=m;H[c+2|0]=m>>>8;H[c+1|0]=d;g=c+4|0;J[f+12>>2]=g;c=J[f+8>>2];J[c+8>>2]=i;J[c+4>>2]=i;J[c>>2]=i;J[f+8>>2]=c+16;J[c+12>>2]=i;i=i+2|0;h=h-1|0;c=e+4|0}e=c;h=h-1|0;if(h)continue;break i}break}break j}if(!d)break i;while(1){c=e+2|0;d=L[e>>1];m:{if((d&63488)!=55296){H[g|0]=d>>>8;e=J[f+12>>2];H[e+1|0]=d;g=e+2|0;break m}if(d&1024|h>>>0<2)break j;m=L[c>>1];if((m&64512)!=56320)break j;H[g|0]=d>>>8;c=J[f+12>>2];H[c+3|0]=m;H[c+2|0]=m>>>8; -H[c+1|0]=d;h=h-1|0;g=c+4|0;c=e+4|0}e=c;J[f+12>>2]=g;h=h-1|0;if(h)continue;break}break i}e=c;j=(h<<1)+j|0;if(d)break f;break e}if(!k|!j)break b;k=2;c=e+2|0;d=L[e>>1];if((d&63488)!=55296)break d;e=c}n:{if(!(d&1024)){k=0;if(M[a+12>>2]<=e>>>0)break n;c=L[e>>1];if((c&64512)==56320){H[f+7|0]=c;H[f+6|0]=c>>>8;H[f+5|0]=d;H[f+4|0]=d>>>8;e=e+2|0;d=0;k=4;break n}J[b>>2]=12;break n}J[b>>2]=12;k=0}J[l+56>>2]=d&65535}if(!k)break b;break c}e=d<<8|d>>>8;H[f+4|0]=e;H[f+5|0]=e>>>8;e=c}hi(l,f+4|0,k,f+12|0,J[a+20>>2], -f+8|0,i,b);g=J[f+12>>2];j=J[a+20>>2]-g|0}if(!(j|(M[a+12>>2]<=e>>>0|J[b>>2]>0)))J[b>>2]=15;J[a+16>>2]=g;J[a+8>>2]=e;J[a+24>>2]=J[f+8>>2]}bc=f+16|0}function I8a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=nl(a+44|0);J[695492]=0;d=$(2278,a+48|0)|0;c=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((c|0)!=1){J[695492]=0;e=$(2278,a+52|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;f=$(2278,a+56|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[695492]=0;I2(a+96|0);c=J[695492];J[695492]=0;if((c|0)==1)break d; -J[a+1580>>2]=0;J[a+1584>>2]=0;J[a+1668>>2]=0;J[a+1672>>2]=2147483632;c=a+1636|0;J[c>>2]=0;J[c+4>>2]=1;c=a+1628|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1620|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1612|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1588|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1596|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1601|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;c=0;H[a+1664|0]=0;b=a+1652|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1644|0;J[b>>2]=1;J[b+4>>2]=0;wc(a+1680|0,0,68);H[a+1796|0]=0;b=a+1788|0;J[b>>2]=-2147483647; -J[b+4>>2]=-2147483647;b=a+1780|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;b=a+1772|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1764|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;b=a+1800|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1756|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1748|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;b=a+1808|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1816|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1821|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;J[a+2872>>2]=0;b=a+2864|0;J[b>>2]=0;J[b+4>>2]=0;H[a+2860|0]=1;J[a+ -2856>>2]=0;b=a+1832|0;while(1){J[(c<<2)+b>>2]=c;d=c|1;J[(d<<2)+b>>2]=d;d=c|2;J[(d<<2)+b>>2]=d;d=c|3;J[(d<<2)+b>>2]=d;d=c|4;J[(d<<2)+b>>2]=d;d=c|5;J[(d<<2)+b>>2]=d;d=c|6;J[(d<<2)+b>>2]=d;d=c|7;J[(d<<2)+b>>2]=d;c=c+8|0;if((c|0)!=256)continue;break}J[a+2920>>2]=0;J[a+2924>>2]=0;J[a+2888>>2]=0;J[a>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+2896>>2]=0;J[a+2900>>2]=1072693248;H[a+2892|0]=0;J[a+40>>2]=2;J[a+32>>2]=0;J[a+36>>2]=1079115776;J[a+24>>2]=0;J[a+28>>2]=1079115776;J[a+2912>>2]=0;J[a+2916>>2]=-1074790400; -I[a+2904>>1]=1;H[a+2940|0]=0;J[a+2932>>2]=0;J[a+2936>>2]=3;J[a+1576>>2]=0;J[a+2928>>2]=0;c=a+2880|0;J[c>>2]=0;J[c+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;return a|0}c=Z()|0;break a}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;Ed(f)}Ed(e)}Ed(d)}Ed(b);ba(c|0);B()}function Yt(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,r=0,s=0,t=0,u=0;n=a+24|0;a:{b:{c:{d:{e:{if(J[a+200>>2]){d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break e;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>> -3]=O[d>>3];O[c>>3]=O[d+8>>3];break d}e=2;if(Nt(n,b,c))break a}o=a+208|0;f:{if(J[a+424>>2]){d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break f;J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break d}e=2;if(jo(o,b,c))break a}e=0;f=J[a>>2];g=J[f+20>>2];p=J[f>>2];if(g>>>0>=p>>>0)break a;d=g+1|0;J[f+20>>2]=d;q=J[f+12>>2];r=g>>>6&67108860;s=g&255;e=J[q+r>>2]+(s<<4)|0;O[b>>3]=O[e>>3];h=O[e+8>>3];O[c>>3]=h;g:{h:{e=K[J[J[f+16>>2]+r>>2]+s|0];switch(e-3|0){case 0:break h; -case 1:break g;default:break a}}if(d>>>0

      >>0){J[f+20>>2]=g+2;d=J[(d>>>6&67108860)+q>>2]+(d<<4&4080)|0;i=O[d+8>>3];j=O[d>>3]}k=O[b>>3];l=O[a+16>>3];m=O[a+8>>3];i:{if(!J[a+200>>2]){K1(n,m,l,k,h,j,i);break i}J1(a+152|0,m,l,k,h,j,i)}if(J[a+200>>2]){d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break b;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break b}Nt(n,b,c);if(J[a+200>>2])break b;Nt(n,b,c);break d}j:{if(d>>>0>=p>>>0){e=d;break j}e=g+2|0;J[f+20>>2]= -e;d=J[(d>>>6&67108860)+q>>2]+(d<<4&4080)|0;t=O[d+8>>3];u=O[d>>3]}if(e>>>0

      >>0){J[f+20>>2]=e+1;d=J[(e>>>6&67108860)+q>>2]+(e<<4&4080)|0;i=O[d+8>>3];j=O[d>>3]}k=O[b>>3];l=O[a+16>>3];m=O[a+8>>3];k:{if(!J[a+424>>2]){iC(o,m,l,k,h,u,t,j,i);break k}IK(a+368|0,m,l,k,h,u,t,j,i)}if(J[a+424>>2]){d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break c;J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break c}jo(o,b,c);if(J[a+424>>2])break c;jo(o,b,c)}e=2;break a}e=2; -d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break a;J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break a}e=2;d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break a;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3]}O[a+8>>3]=O[b>>3];O[a+16>>3]=O[c>>3];return e}function DWa(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;d=bc-96|0;bc=d;a:{b:{c:{if(K[a+204|0])break c;g=J[a+168>>2];if(!g)break c;J[d+ -68>>2]=0;J[d+72>>2]=0;J[d+60>>2]=0;J[d+64>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;i=J[b+492>>2];J[695492]=0;g=ga(3255,g|0,i+8|0,d+44|0)|0;i=J[695492];J[695492]=0;d:{e:{if((i|0)!=1){if(!g|J[b+592>>2]==3)break d;i=J[c>>2];J[695492]=0;g=$(27,(i>>>0>1073741823?-1:i<<2)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;break a}J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;if((i|0)<=0)break e;f:{e=J[d+80>>2];if(e){b=0;break f}c=J[c+4>>2];h=J[d+76>>2];if(h){e=0;b=0;if(i>>>0>=4){f=i&-4;while(1){J[g+(b<<2)>>2]=J[h+(H[b+ -c|0]<<2)>>2];k=b|1;J[g+(k<<2)>>2]=J[h+(H[c+k|0]<<2)>>2];k=b|2;J[g+(k<<2)>>2]=J[h+(H[c+k|0]<<2)>>2];k=b|3;J[g+(k<<2)>>2]=J[h+(H[c+k|0]<<2)>>2];b=b+4|0;j=j+4|0;if((f|0)!=(j|0))continue;break}}f=i&3;if(!f)break e;while(1){J[g+(b<<2)>>2]=J[h+(H[b+c|0]<<2)>>2];b=b+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}break e}h=0;b=0;if(i>>>0>=4){k=i&-4;e=0;while(1){f=H[b+c|0];J[g+(b<<2)>>2]=f?f:65534;j=b|1;f=H[j+c|0];J[g+(j<<2)>>2]=f?f:65534;j=b|2;f=H[j+c|0];J[g+(j<<2)>>2]=f?f:65534;j=b|3;f=H[j+c|0];J[g+(j<<2)>> -2]=f?f:65534;b=b+4|0;e=e+4|0;if((k|0)!=(e|0))continue;break}}e=i&3;if(!e)break e;while(1){f=H[b+c|0];J[g+(b<<2)>>2]=f?f:65534;b=b+1|0;h=h+1|0;if((e|0)!=(h|0))continue;break}break e}while(1){h=H[J[c+4>>2]+b|0];g:{if(!e)break g;e=L[(h<<2)+e>>1];J[695492]=0;da(3256,d+32|0,e|0);e=J[695492];J[695492]=0;if((e|0)!=1)break g;break b}f=g+(b<<2)|0;e=J[d+76>>2];h:{if(e){e=J[e+(h<<2)>>2];break h}e=h?h:65534}J[f>>2]=e;b=b+1|0;if((b|0)>=J[c>>2])break e;e=J[d+80>>2];continue}}b=Z()|0;break a}a=J[a+104>>2];J[d+24>> -2]=954437176;J[d+28>>2]=1078043534;J[d+16>>2]=954437176;J[d+20>>2]=1078043534;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;b=J[J[a>>2]+300>>2];J[695492]=0;za(b|0,a|0,d+32|0,g|0,i|0,d+24|0,d+16|0,d+8|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;qc(g);if(H[d+43|0]>=0)break d;qc(J[d+32>>2])}if(H[d+75|0]<0)qc(J[d+64>>2]);if(H[d+63|0]>=0)break c;qc(J[d+52>>2])}bc=d+96|0;return}b=Z()|0;if(H[d+43|0]>=0)break a;qc(J[d+32>>2])}V_(d+44|0);ba(b|0);B()}function ew(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f= -0,g=0,h=0;we(b,K[a+140|0]);WI(a,b);d=K[a+291|0];f=d<<24>>24<0;jf(b,f?J[a+280>>2]:a+280|0,f?J[a+284>>2]:d);e=O[a+160>>3]*100;a:{if(R(e)<2147483648){d=~~e;break a}d=-2147483648}pd(b,d);pd(b,J[a+156>>2]);pd(b,J[a+172>>2]-J[a+168>>2]>>3);d=J[a+168>>2];if((d|0)!=J[a+172>>2])while(1){e=O[(c<<3)+d>>3]*1E4;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}pd(b,d);c=c+1|0;d=J[a+168>>2];if(c>>>0>2]-d>>3>>>0)continue;break}we(b,K[a+216|0]);pd(b,J[a+144>>2]);pd(b,J[a+4>>2]);c=J[a+4>>2];if(c&1){c=K[a+ -231|0];d=c<<24>>24<0;jf(b,d?J[a+220>>2]:a+220|0,d?J[a+224>>2]:c);c=J[a+4>>2]}if(c&2){c=K[a+243|0];d=c<<24>>24<0;jf(b,d?J[a+232>>2]:a+232|0,d?J[a+236>>2]:c);c=J[a+4>>2]}if(c&4){c=K[a+303|0];d=c<<24>>24<0;jf(b,d?J[a+292>>2]:a+292|0,d?J[a+296>>2]:c);c=J[a+4>>2]}if(c&8){we(b,K[a+217|0]);c=J[a+4>>2]}if(c&16){c=K[a+279|0];d=c<<24>>24<0;jf(b,d?J[a+268>>2]:a+268|0,d?J[a+272>>2]:c);c=J[a+4>>2]}c:{if(!(c&32))break c;pd(b,J[a+184>>2]-J[a+180>>2]>>3);d=J[a+180>>2];if((d|0)==J[a+184>>2])break c;c=0;while(1){e= -O[(c<<3)+d>>3]*1E4;d:{if(R(e)<2147483648){d=~~e;break d}d=-2147483648}pd(b,d);c=c+1|0;d=J[a+180>>2];if(c>>>0>2]-d>>3>>>0)continue;break}}c=J[a+4>>2];if(c&64){pd(b,J[a+148>>2]);c=J[a+4>>2]}e:{if(!(c&128))break e;pd(b,J[a+196>>2]-J[a+192>>2]>>3);d=J[a+192>>2];if((d|0)==J[a+196>>2])break e;c=0;while(1){e=O[(c<<3)+d>>3]*1E4;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}pd(b,d);c=c+1|0;d=J[a+192>>2];if(c>>>0>2]-d>>3>>>0)continue;break}}c=J[a+4>>2];if(c&256){c=K[a+255|0];d=c<<24>> -24<0;jf(b,d?J[a+244>>2]:a+244|0,d?J[a+248>>2]:c);c=J[a+4>>2]}if(c&131072){pd(b,J[a+152>>2]);c=J[a+4>>2]}if(c&262144){c=K[a+267|0];d=c<<24>>24<0;jf(b,d?J[a+256>>2]:a+256|0,d?J[a+260>>2]:c);c=J[a+4>>2]}if(c&524288){c=K[a+315|0];d=c<<24>>24<0;jf(b,d?J[a+304>>2]:a+304|0,d?J[a+308>>2]:c)}pd(b,J[a+208>>2]-J[a+204>>2]>>2);c=J[a+204>>2];if((c|0)!=J[a+208>>2]){d=0;while(1){g=d<<2;c=J[g+c>>2];h=K[c+15|0];f=h<<24>>24<0;jf(b,f?J[c+4>>2]:c+4|0,f?J[c+8>>2]:h);c=J[g+J[a+204>>2]>>2];gc[J[J[c>>2]+8>>2]](c,b);d=d+ -1|0;c=J[a+204>>2];if(d>>>0>2]-c>>2>>>0)continue;break}}}function OSa(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;var h=0,i=0,j=0,k=0,l=0;h=bc-112|0;bc=h;J[a+4>>2]=b;J[a>>2]=2331012;i=a;J[i>>2]=2201448;a=i+8|0;tc(a,c,e);J[i+52>>2]=g;J[i+48>>2]=f;J[i+44>>2]=e;J[i+40>>2]=d;a:{if((e|0)<=0)break a;g=0;b=0;if(e>>>0>=4){k=e&-4;c=i+60|0;while(1){H[b+c|0]=K[a+b|0];j=b|1;H[j+c|0]=K[a+j|0];j=b|2;H[j+c|0]=K[a+j|0];j=b|3;H[j+c|0]=K[a+j|0];b=b+4|0;l=l+4|0;if((k|0)!=(l|0))continue;break}}a= -e&3;if(!a)break a;while(1){c=b+i|0;H[c+60|0]=K[c+8|0];b=b+1|0;g=g+1|0;if((a|0)!=(g|0))continue;break}}b:{c:switch(d|0){case 0:c=i+60|0;H[c+e|0]=f;H[(c+J[i+44>>2]|0)+1|0]=J[i+48>>2]>>>8;H[(c+J[i+44>>2]|0)+2|0]=L[i+50>>1];H[(c+J[i+44>>2]|0)+3|0]=J[i+52>>2];H[(c+J[i+44>>2]|0)+4|0]=J[i+52>>2]>>>8;e=J[i+44>>2];d=e+5|0;if((e|0)>=-5){J[h+88>>2]=0;J[h+92>>2]=0;J[h+16>>2]=-1732584194;J[h+20>>2]=271733878;J[h+8>>2]=1732584193;J[h+12>>2]=-271733879;b=0;a=c;g=d;if(g>>>0>=64){k=h+24|0;while(1){f=64-b|0;tc(b+k| -0,a,f);J[h+88>>2]=64;a=a+f|0;jp(h+8|0);b=J[h+88>>2];g=g-f|0;if((b+g|0)>63)continue;break}}if((g|0)>0){tc((b+h|0)+24|0,a,g);J[h+88>>2]=J[h+88>>2]+g}J[h+92>>2]=d+J[h+92>>2];Tq(h+8|0);a=J[h+108>>2];J[c+8>>2]=J[h+104>>2];J[c+12>>2]=a;a=J[h+100>>2];J[c>>2]=J[h+96>>2];J[c+4>>2]=a}J[i+56>>2]=(e|0)>11?16:d;break b;case 1:c=i+60|0;H[c+e|0]=f;H[(c+J[i+44>>2]|0)+1|0]=J[i+48>>2]>>>8;H[(c+J[i+44>>2]|0)+2|0]=L[i+50>>1];H[(c+J[i+44>>2]|0)+3|0]=J[i+52>>2];H[(c+J[i+44>>2]|0)+4|0]=J[i+52>>2]>>>8;H[(c+J[i+44>>2]|0)+ -5|0]=115;H[(c+J[i+44>>2]|0)+6|0]=65;H[(c+J[i+44>>2]|0)+7|0]=108;H[(c+J[i+44>>2]|0)+8|0]=84;d=J[i+44>>2];if((d|0)>=-9){J[h+88>>2]=0;J[h+92>>2]=0;J[h+16>>2]=-1732584194;J[h+20>>2]=271733878;J[h+8>>2]=1732584193;J[h+12>>2]=-271733879;b=0;e=d+9|0;g=e;a=c;if(e>>>0>=64){k=h+24|0;while(1){f=64-b|0;tc(b+k|0,a,f);J[h+88>>2]=64;a=a+f|0;jp(h+8|0);b=J[h+88>>2];g=g-f|0;if((b+g|0)>63)continue;break}}if((g|0)>0){tc((b+h|0)+24|0,a,g);J[h+88>>2]=J[h+88>>2]+g}J[h+92>>2]=e+J[h+92>>2];Tq(h+8|0);a=J[h+108>>2];J[c+8>> -2]=J[h+104>>2];J[c+12>>2]=a;a=J[h+100>>2];J[c>>2]=J[h+96>>2];J[c+4>>2]=a}J[i+56>>2]=(d|0)>11?16:d+5|0;break b;case 2:break c;default:break b}J[i+56>>2]=e}bc=h+112|0;return i|0}function M8(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;e=bc-16|0;bc=e;d=J[a+24>>2];f=J[d+8>>2];J[e+12>>2]=f;d=J[d+12>>2];J[e+8>>2]=d;l=P(d,f)<<2;a:{if((l|0)<=0)break a;J[b+4>>2]=J[e+12>>2];J[b+8>>2]=J[e+8>>2];J[e+4>>2]=J[e+12>>2]<<2;J[b+12>>2]=J[e+4>>2];d=rc(l);J[b+16>>2]=d;j=c?0:2;k=c?2:0; -c=J[a+24>>2];b:{a=J[a+16>>2];if((a|0)==3){a=J[c>>2];if((a|0)!=J[c+48>>2]|(a|0)!=J[c+96>>2])break b;a=J[c+4>>2];if((a|0)!=J[c+52>>2]|(a|0)!=J[c+100>>2])break b;a=J[c+24>>2];if((a|0)!=J[c+72>>2]|(a|0)!=J[c+120>>2])break b;a=J[c+40>>2];b=-1<>2]>>a;if((h|0)<=0)break a;i=b+J[c+8>>2]>>a;if((i|0)<=0)break a;f=P(J[e+12>>2],h-1|0);while(1){b=0;while(1){a=b+f<<2;H[d+k|0]=J[a+J[c+44>>2]>>2];H[d+1|0]=J[a+J[c+92>>2]>>2];H[d+j|0]=J[a+J[c+140>>2]>>2];H[d+3|0]=255;d=d+4|0;b=b+1|0;if((i|0)!=(b|0))continue; -break}f=f-J[e+12>>2]|0;g=g+1|0;if((h|0)!=(g|0))continue;break}break a}if((a|0)<4)break b;a=J[c>>2];if((a|0)!=J[c+48>>2]|(a|0)!=J[c+96>>2]|(a|0)!=J[c+144>>2])break b;a=J[c+4>>2];if((a|0)!=J[c+52>>2]|(a|0)!=J[c+100>>2]|(a|0)!=J[c+148>>2])break b;a=J[c+24>>2];if((a|0)!=J[c+72>>2]|(a|0)!=J[c+120>>2]|(a|0)!=J[c+168>>2])break b;a=J[c+40>>2];b=-1<>2]>>a;if((h|0)<=0)break a;i=b+J[c+8>>2]>>a;if((i|0)<=0)break a;f=P(J[e+12>>2],h-1|0);while(1){a=0;while(1){b=a+f<<2;H[d+k|0]=J[b+J[c+44>>2]>> -2];H[d+1|0]=J[b+J[c+92>>2]>>2];H[d+j|0]=J[b+J[c+140>>2]>>2];H[d+3|0]=J[b+J[c+188>>2]>>2];d=d+4|0;a=a+1|0;if((i|0)!=(a|0))continue;break}f=f-J[e+12>>2]|0;g=g+1|0;if((h|0)!=(g|0))continue;break}break a}a=J[c+40>>2];b=-1<>2]>>a;if((j|0)<=0)break a;f=b+J[c+8>>2]>>a;if((f|0)<=0)break a;i=f&-2;o=f&1;b=P(J[e+12>>2],j-1|0);k=0;while(1){a=0;h=0;if((f|0)!=1)while(1){m=a<<2;n=b<<2;g=K[m+(n+J[c+44>>2]|0)|0];H[d+3|0]=255;H[d+2|0]=g;H[d+1|0]=g;H[d|0]=g;g=K[(J[c+44>>2]+n|0)+(m|4)|0];H[d+7|0]=255; -H[d+6|0]=g;H[d+5|0]=g;H[d+4|0]=g;a=a+2|0;d=d+8|0;h=h+2|0;if((i|0)!=(h|0))continue;break}if(o){a=K[(J[c+44>>2]+(b<<2)|0)+(a<<2)|0];H[d+3|0]=255;H[d+2|0]=a;H[d+1|0]=a;H[d|0]=a;d=d+4|0}b=b-J[e+12>>2]|0;k=k+1|0;if((j|0)!=(k|0))continue;break}}bc=e+16|0;return(l|0)>0|0}function YS(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;h=bc-32|0;bc=h;d=J[a+12>>2];a:{b:{if(d&131072)break b;e=J[J[a+188>>2]+(b<<2)>>2];if(!e){d=J[a>>2];a=J[a+628>>2];J[h+4>>2]=b;J[h>>2]=0;Nc(a,d,74435,h);c=0;break a}if(!(!(d& -2048)|!((L[a+94>>1]|256)&d))){c:{if(!(d&512))break c;c=J[a+596>>2];if(!c)break c;qc(c);d=J[a+12>>2]}d=d&-513;J[a+12>>2]=d;d:{c=J[a+616>>2];if(c>>>0>=e>>>0){f=J[a+184>>2]+(b<<2)|0;if(M[f>>2]<=c-e>>>0)break d}J[a+504>>2]=-1;c=0;break a}J[a+600>>2]=e;J[a+596>>2]=J[a+612>>2]+J[f>>2];break b}if(e>>>0>M[a+600>>2]){J[a+504>>2]=-1;if(!(d&512)){d=J[a+628>>2];a=J[a>>2];J[h+20>>2]=b;J[h+16>>2]=a;Nc(d,83346,75024,h+16|0);c=0;break a}c=0;if(!ZS(a,e>>>0<4294966272?e+1023&-1024:0))break a}f=J[a+596>>2];d=e;c=bc- -80|0;bc=c;e:{g=J[a+12>>2];if(!(g&131072)){f:{if(!(g&2048)){g=b<<2;if((gc[J[a+640>>2]](J[a+628>>2],J[g+J[a+184>>2]>>2],0)|0)!=J[g+J[a+184>>2]>>2]){d=J[a+628>>2];f=J[a>>2];g=J[a+472>>2];i=J[a+500>>2];J[c+44>>2]=b;J[c+40>>2]=i;J[c+36>>2]=g;J[c+32>>2]=f;Nc(d,83346,80930,c+32|0);d=-1;break f}f=gc[J[a+632>>2]](J[a+628>>2],f,d)|0;if((f|0)==(d|0))break f;g=J[a+628>>2];i=J[a>>2];j=J[a+472>>2];k=J[a+500>>2];J[c+16>>2]=d;J[c+12>>2]=f;J[c+8>>2]=k;J[c+4>>2]=j;J[c>>2]=i;Nc(g,83346,81076,c);d=-1;break f}i=J[a+616>> -2];g=J[J[a+184>>2]+(b<<2)>>2];if(i>>>0>>0){f=J[a+628>>2];j=J[a>>2];k=J[a+472>>2];l=J[a+500>>2];J[c+68>>2]=d;J[c- -64>>2]=i-g;J[c+60>>2]=b;J[c+56>>2]=l;J[c+52>>2]=k;J[c+48>>2]=j;Nc(f,83346,81350,c+48|0);d=-1;break f}Ne(f,g+J[a+612>>2]|0,d)}bc=c+80|0;break e}fa(75563,76141,415,83474);B()}c=0;if((d|0)!=(e|0))break a;d=J[a+12>>2];if(d&(L[a+94>>1]|256))break b;FF(J[a+596>>2],e);d=J[a+12>>2]}if(!(d&32)){c=0;if(!(gc[J[a+516>>2]](a)|0))break a;d=J[a+12>>2]|32;J[a+12>>2]=d}J[a+504>>2]=b;c=J[a+56>>2]; -e=J[a+68>>2];if(c>>>0<0-e>>>0)m=((c+e|0)-1>>>0)/(e>>>0)|0;c=J[a+72>>2];J[a+472>>2]=P((b>>>0)%(m>>>0)|0,c);f=J[a+60>>2];if(f>>>0<0-c>>>0)c=((c+f|0)-1>>>0)/(c>>>0)|0;else c=0;J[a+500>>2]=P((b>>>0)%(c>>>0)|0,e);e=0;c=0;if(!(d&131072)){c=J[J[a+188>>2]+(b<<2)>>2];e=J[a+596>>2]}J[a+608>>2]=c;J[a+604>>2]=e;c=gc[J[a+520>>2]](a,(b>>>0)/M[a+176>>2]&65535)|0}bc=h+32|0;return c}function S4(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;p=(g?1032:0)+a|0;J[p>>2]=0;q=(g?1548:516)+a|0;J[q>>2]=0;m= -g?a+1548|0:a+516|0;n=g?a+1032|0:a;if(b>>>0>=2)while(1){a=c+2|0;k=h&1;o=I[(k?c:a)>>1];j=I[(k?a:c)>>1]-o|0;h=(k?n:m)+4|0;g=k?l:i;a:{b:{if(!g)break b;a=(g<<5)+h|0;c:{while(1){r=J[h>>2];if((r|0)>(o|0))break c;if((o|0)==(r|0)){a=J[h+4>>2];if((j|0)<0){if((a|0)<=(j|0))break a;J[h+4>>2]=j;break a}if((a|0)>=(j|0))break a;J[h+4>>2]=j;break a}h=h+32|0;g=g-1|0;if(g)continue;break}h=a;break b}Zc(h+32|0,h,g<<5)}J[h+4>>2]=j;J[h>>2]=o;if(k){l=l+1|0;break a}i=i+1|0}c=c+4|0;h=1;b=b-2|0;if(b>>>0>1)continue;break}J[p>> -2]=l;J[q>>2]=i;if(d>>>0>=2){a=m+4|0;while(1){j=I[e+2>>1];c=I[e>>1]-j|0;h=a;d:{e:{if(!i)break e;b=(i<<5)+h|0;g=i;f:{while(1){k=J[h>>2];if((k|0)>(j|0))break f;if((j|0)==(k|0)){b=J[h+4>>2];if((c|0)<0){if((b|0)<=(c|0))break d;J[h+4>>2]=c;break d}if((b|0)>=(c|0))break d;J[h+4>>2]=c;break d}h=h+32|0;g=g-1|0;if(g)continue;break}h=b;break e}Zc(h+32|0,h,g<<5)}J[h+4>>2]=c;J[h>>2]=j;i=i+1|0}e=e+4|0;d=d-2|0;if(d>>>0>1)continue;break}}J[p>>2]=l;J[q>>2]=i;g:{if(!l)break g;h=n+4|0;a=l;while(1){h:{i:switch(a|0){case 1:b= -J[h+4>>2];g=J[h>>2];break h;case 0:break g;default:break i}g=J[h>>2];b=J[h+32>>2]-g|0;c=J[h+4>>2];if((b|0)>=(c|0)){b=c;break h}J[h+4>>2]=b}J[h+12>>2]=g;J[h+8>>2]=b+g;h=h+32|0;a=a-1|0;continue}}j:{if(!i)break j;h=m+4|0;a=i;while(1){k:{l:switch(a|0){case 1:b=J[h+4>>2];g=J[h>>2];break k;case 0:break j;default:break l}g=J[h>>2];b=g-J[h+32>>2]|0;c=J[h+4>>2];if((b|0)<=(c|0)){b=c;break k}J[h+4>>2]=b}J[h+8>>2]=g;J[h+12>>2]=b+g;h=h+32|0;a=a-1|0;continue}}if(l){J[n+16>>2]=J[n+16>>2]-f;h=n+4|0;a=J[n+12>>2]; -g=l-1|0;m:{if(!g){b=h;break m}while(1){b=J[h+44>>2];c=(b-a|0)/2|0;d=c+a|0;e=a+f|0;a=(c|0)<(f|0);J[h+8>>2]=a?d:e;J[h+44>>2]=a?d:b-f|0;a=J[h+40>>2];b=h+32|0;h=b;g=g-1|0;if(g)continue;break}}J[b+8>>2]=a+f}if(i){J[m+16>>2]=J[m+16>>2]-f;h=m+4|0;a=J[m+12>>2];g=i-1|0;n:{if(!g){b=h;break n}while(1){b=J[h+44>>2];c=(b-a|0)/2|0;d=c+a|0;e=a+f|0;a=(c|0)<(f|0);J[h+8>>2]=a?d:e;J[h+44>>2]=a?d:b-f|0;a=J[h+40>>2];b=h+32|0;h=b;g=g-1|0;if(g)continue;break}}J[b+8>>2]=a+f}}function r$(a){var b=0,c=0,d=0,e=0,f=0,g=0,h= -0,i=0,j=0,k=0;e=bc-48|0;bc=e;g=J[a+172>>2];a:{if(J[a+292>>2])break a;d=J[a+36>>2];b=J[d+16>>2];if((b-J[d+12>>2]|0)<501|(J[d+20>>2]-b|0)>499)break a;Pg(a)}b:{c:{d:{e:{i=K[J[J[a+36>>2]+16>>2]];switch(i-34|0){case 0:break c;case 5:break d;default:break e}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break b;J[a+84>>2]=43;J[e>>2]=16061;Cc(0,0,0,a,0,1,43,3,0,0,0,0,32890,e);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}i=39}Qd(a);h=100;d=gc[J[659450]](100)|0;if(!d){ke(a,0);break b}J[a+172>>2]=13;c=Ff(a, -e+44|0);f:{while(1){g:{h:{i:{j:{k:{l:{if((c|0)<=255){if((c|0)<=31)if(!(1<>>0>13)break k;if((c|0)!=(i|0))break l;H[d+f|0]=0;J[a+172>>2]=g;break g}b=c>>>0<55296|c-57344>>>0<8190|c-65536>>>0<1048576;if(!b|(c|0)==(i|0))break j}if((f+5|0)<(h|0)){b=d;break h}if(!(K[a+362|0]&8|(h|0)<50001)){m:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break m;J[a+84>>2]=110;J[e+20>>2]=10063;J[e+16>>2]=6556;Cc(0,0,0,a,0,1,110,3,10063,0,0,0,32761,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break m;J[a+212>>2]=1}c=0;gc[J[659451]](d); -J[a+172>>2]=g;break b}h=h<<1;b=gc[J[659452]](d,h)|0;if(b)break h;c=0;gc[J[659451]](d);ke(a,0);J[a+172>>2]=g;break b}H[d+f|0]=0;J[a+172>>2]=g;break i}H[d+f|0]=0;J[a+172>>2]=g;if(b)break g}if((g|0)==-1?J[a+212>>2]:0)break f;J[a+84>>2]=44;J[e+32>>2]=16091;Cc(0,0,0,a,0,1,44,3,0,0,0,0,32890,e+32|0);J[a+12>>2]=0;if(J[a+288>>2])break f;J[a+212>>2]=1;break f}d=b;n:{if((j|0)<50){j=j+1|0;break n}o:{if(J[a+292>>2])break o;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break o;Hd(a)}j=0;if(J[a+172>>2]!=-1)break n; -c=0;gc[J[659451]](d);break b}p:{if(J[e+44>>2]==1){H[d+f|0]=c;f=f+1|0;break p}f=Pi(d+f|0,c)+f|0}b=J[a+36>>2];c=J[b+16>>2];q:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break q}J[b+32>>2]=J[b+32>>2]+1}k=b;b=c+J[e+44>>2]|0;J[k+16>>2]=b;if(K[b|0]==37)Od(a);c=Ff(a,e+44|0);if(c)continue;r:{if(J[a+292>>2])break r;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)<=249){Hd(a);if(J[a+292>>2])break r}b=J[a+36>>2];c=J[b+16>>2];if((c-J[b+12>>2]|0)<501|(J[b+20>>2]-c|0)>499)break r;Pg(a)}c=Ff(a,e+44|0);continue}break}Qd(a)}c= -d}bc=e+48|0;return c}function x2a(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;e=J[a+464>>2];if(J[a+280>>2]){c=J[e+52>>2];if(!c){if(!(gc[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){g=f<<2;d=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[((J[d+20>>2]<<2)+e|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+ -59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+ -21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=e+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}wc(J[((J[d+24>>2]<<2)+e|0)+120>>2],0,256)}f=f+1|0;if((f|0)>2])continue;break}J[e+16>>2]=-16;J[e+8>>2]=0;J[e+12>>2]=0;c=J[a+280>>2]}J[e+52>>2]=c-1}c:{if(J[e+16>>2]==-1)break c;g=J[b>>2];i=J[a+428>>2];c=J[a+412>>2];b=c;d:{if((c|0)<=0)break d;while(1){if(L[g+(J[(b<< -2)+i>>2]<<1)>>1])break d;d=(b|0)>1;b=b-1|0;if(d)continue;break}b=0}d=J[a+408>>2];if((c|0)<(d|0))break c;c=J[a+420>>2];j=-1<>2]+24>>2]<<2)+e|0;while(1){f=(J[m+120>>2]+P(d,3)|0)-3|0;if((b|0)<(d|0))if(Kd(a,f))break c;c=d;e:{f:{g:{while(1){h=g+(J[(c<<2)+i>>2]<<1)|0;if(L[h>>1]){if(!Kd(a,f+2|0))break e;d=I[h>>1];if((d|0)>=0)break g;d=d+j|0;break f}if(Kd(a,f+1|0)){d=Kd(a,l)?j:k;break f}f=f+3|0;d=J[a+412>>2]>(c|0);c=c+1|0;if(d)continue;break}b=J[a>>2];J[b+20>>2]=117;gc[J[b+ -4>>2]](a,-1);J[e+16>>2]=-1;return 1}d=d+k|0}I[h>>1]=d}d=c+1|0;if(J[a+412>>2]>(c|0))continue;break}}return 1}function k7(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;g=bc-32|0;bc=g;a:{if(!b)break a;J[b>>2]=0;d=!a;if(d)break a;m=d?0:J[a+36>>2];if(m){o7(m,b);if(!J[b>>2])break a;d=bc-32|0;bc=d;e=!a;b:{if(e)break b;e=e?-1:J[a+8>>2];J[d+20>>2]=e;if((e|0)>16)break b;c:{if(a?J[a+36>>2]:0){a=Hk(a,1);break c}if(a)J[a+16>>2]=J[a+16>>2]+1}J[d+8>>2]=a;xf(a,d+28|0,d+24|0,d+20|0);e=1<>2]; -a=sn(e);J[d+12>>2]=a;i=!a;if(i)break b;d:{if(i)break d;c=J[a>>2];if((c|0)<(e|0)){c=yl(a+20|0,c<<2,e<<2);J[a+20>>2]=c;if(!c)break d;J[a>>2]=e}J[a+4>>2]=e}if(a)e=J[a+20>>2];else e=0;c=J[d+8>>2];e:{f:{if(J[d+20>>2]==1){ck(c,d+16|0,0);c=J[d+24>>2];i=J[d+28>>2];j=J[d+16>>2];N[e+4>>2]=j|0;N[e>>2]=P(c,i)-j|0;break f}i=c?J[c+12>>2]:-1;c=J[d+8>>2];if(c)j=J[c+40>>2];else j=0;n=J[d+24>>2];g:{if((n|0)<=0)break g;k=J[d+28>>2];h:{i:{j:{k:{c=J[d+20>>2];switch(c<<31|c-2>>>1){case 7:break h;case 3:break i;case 1:break j; -case 0:break k;default:break e}}if((k|0)<=0)break g;while(1){l=(P(f,i)<<2)+j|0;c=0;while(1){h=((J[l+(c>>4<<2)>>2]>>>((c^-1)<<1)&3)<<2)+e|0;N[h>>2]=N[h>>2]+Q(1);c=c+1|0;if((k|0)>(c|0))continue;break}f=f+1|0;if((n|0)>(f|0))continue;break}break g}if((k|0)<=0)break g;while(1){l=(P(f,i)<<2)+j|0;c=0;while(1){h=((J[l+(c>>3<<2)>>2]>>>((c^-1)<<2)&15)<<2)+e|0;N[h>>2]=N[h>>2]+Q(1);c=c+1|0;if((k|0)>(c|0))continue;break}f=f+1|0;if((n|0)>(f|0))continue;break}break g}if((k|0)<=0)break g;while(1){l=(P(f,i)<<2)+j| -0;c=0;while(1){h=(K[c+l^3]<<2)+e|0;N[h>>2]=N[h>>2]+Q(1);c=c+1|0;if((k|0)>(c|0))continue;break}f=f+1|0;if((n|0)>(f|0))continue;break}break g}if((k|0)<=0)break g;while(1){l=(P(f,i)<<2)+j|0;c=0;while(1){h=(L[(l+(c<<1)^2)>>1]<<2)+e|0;N[h>>2]=N[h>>2]+Q(1);c=c+1|0;if((k|0)>(c|0))continue;break}f=f+1|0;if((n|0)>(f|0))continue;break}}}wd(d+8|0);c=a;break b}Ai(d+12|0);c=0}bc=d+32|0;J[g+12>>2]=c;a=m?J[m+12>>2]:0;l:{if((a|0)<=0)break l;while(1){Up(m,o,g+28|0,g+24|0,g+20|0);jj(c,o,g+16|0);m:{d=J[g+28>>2];n:{if((d| -0)==J[g+24>>2]){if((d|0)==J[g+20>>2])break m;if(J[g+16>>2])break n;break m}if(!J[g+16>>2])break m}J[b>>2]=1;break l}o=o+1|0;if((a|0)!=(o|0))continue;break}}Ai(g+12|0)}}bc=g+32|0}function ql(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;j=bc-16|0;bc=j;e=J[a>>2];a:{if(e>>>0>=b>>>0)break a;b:{c:{d=K[e|0];switch(d-43|0){case 0:case 2:break c;default:break b}}e=e+1|0;if((e|0)==(b|0))break a;n=(d|0)==45;d=K[e|0];switch(d-43|0){case 0:case 2:break a;default:break b}}h=1;d:{if((d|0)==46){d=e;m=1; -break d}J[j+8>>2]=e;f=j+8|0;g=nn(f,b,10);e:{d=J[j+8>>2];if((e|0)!=(d|0)){if(K[d|0]!=35|b>>>0<=d>>>0)break e;i=d+1|0;J[j+8>>2]=i;g=nn(f,b,g);d=J[j+8>>2];if((i|0)!=(d|0))break e}g=0;break a}if((d|0)==(e|0)){g=0;break a}m=(g|0)<32768;i=m?g<<16:g}e=0;f:{if(K[d|0]!=46|b>>>0<=d>>>0)break f;d=d+1|0;if(d>>>0>=b>>>0)break f;g:{if(!i)while(1){h:{f=K[d|0];switch(f|0){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break h}}if(f<<24>>24<0|f-58>>>0<4294967286)break f;i:{if((h|0)>214748363|(e|0)> -214748363)break i;e=H[f+261792|0]+P(e,10)|0;if((c|0)>0){c=c-1|0;break i}h=P(h,10)}d=d+1|0;if((d|0)!=(b|0))continue;break g}while(1){j:{f=K[d|0];switch(f|0){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break j}}if(f<<24>>24<0|f-58>>>0<4294967286)break f;k=H[f+261792|0]+P(e,10)|0;f=(h|0)<214748364&(e|0)<214748364;e=f?k:e;h=f?P(h,10):h;d=d+1|0;if((d|0)!=(b|0))continue;break}}d=b}f=1;k:{l:{m:{n:{k=d+1|0;if(!((K[d|0]|32)!=101|k>>>0>=b>>>0)){J[j+12>>2]=k;g=j+12|0;l=nn(g,b,10);o:{d=J[j+ -12>>2];if((k|0)!=(d|0)){if(K[d|0]!=35|b>>>0<=d>>>0)break o;f=d+1|0;J[j+12>>2]=f;l=nn(g,b,l);d=J[j+12>>2];if((f|0)!=(d|0))break o}g=0;break a}g=0;if((d|0)==(k|0))break a;if((l|0)>1E3)break n;f=(l|0)>-1001;c=(f?l:0)+c|0}J[a>>2]=d;g=0;if(!(e|i))break a;a=2147483647;if(!m)break k;if(!f)break a;if((c|0)<=0)break m;while(1){if((i|0)>214748363)break k;p:{if((e|0)>=214748364){if((h|0)==1)break k;h=(h|0)/10|0;break p}e=P(e,10)}i=P(i,10);b=(c|0)>1;c=c-1|0;if(b)continue;break}break l}J[a>>2]=d;a=2147483647; -if(e|i)break k;break a}if((c|0)>=0)break l;while(1){a=i;i=(i|0)/10|0;q:{if((h|0)<=214748363){h=P(h,10);break q}e=(e|0)/10|0}if(!(!e&a-10>>>0>=4294967277)){c=c+1|0;if(!c)break l;continue}break}break a}if(!e){a=i;break k}a=td(e,h)+i|0}g=n?0-a|0:a}bc=j+16|0;return g}function O0a(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;f=bc-16|0;bc=f;e=J[a+8>>2];c=J[a+12>>2];a:{if((e|0)==(c|0))break a;l=J[a+4>>2];if(J[l+52>>2]==1){hi(l,738530,2,a+16|0,J[a+20>>2],a+24|0,-1,b);J[l+52>>2]=0}g=J[a+ -16>>2];J[f+12>>2]=g;d=J[a+20>>2];if(d>>>0<=g>>>0){J[b>>2]=15;break a}h=c-e>>1;c=J[a+24>>2];J[f+8>>2]=c;j=d-g|0;b:{c:{d:{e:{f:{g:{h:{d=J[l+56>>2];k=d&65535;if(!k|j>>>0<4)break h;i=L[e>>1];if((i&-1024)!=56320)break h;H[g+2|0]=i;H[g|0]=d;H[g+3|0]=i>>>8;H[g+1|0]=d>>>8;g=g+4|0;J[f+12>>2]=g;d=0;if(c){J[c+8>>2]=-1;J[c>>2]=-1;J[c+4>>2]=-1;d=c+16|0;J[f+8>>2]=d;J[c+12>>2]=-1}j=j-4|0;h=h-1|0;e=e+2|0;J[l+56>>2]=0;i=1;c=d;break g}i=0;if(k)break f}d=h<<1;d=d>>>0>j>>>0?j&-2:d;j=j-d|0;k=h;h=d>>>1|0;k=k-h|0;i:{j:{if(c){if(!d)break i; -while(1){k:{c=e+2|0;d=L[e>>1];l:{if((d&63488)!=55296){H[g|0]=d;e=J[f+12>>2];H[e+1|0]=d>>>8;g=e+2|0;J[f+12>>2]=g;e=J[f+8>>2];J[e>>2]=i;J[f+8>>2]=e+8;J[e+4>>2]=i;i=i+1|0;break l}if(d&1024|h>>>0<2)break k;m=L[c>>1];if((m&64512)!=56320)break k;H[g|0]=d;c=J[f+12>>2];H[c+3|0]=m>>>8;H[c+2|0]=m;H[c+1|0]=d>>>8;g=c+4|0;J[f+12>>2]=g;c=J[f+8>>2];J[c+8>>2]=i;J[c+4>>2]=i;J[c>>2]=i;J[f+8>>2]=c+16;J[c+12>>2]=i;i=i+2|0;h=h-1|0;c=e+4|0}e=c;h=h-1|0;if(h)continue;break i}break}break j}if(!d)break i;while(1){c=e+2|0; -d=L[e>>1];m:{if((d&63488)!=55296){H[g|0]=d;e=J[f+12>>2];H[e+1|0]=d>>>8;g=e+2|0;break m}if(d&1024|h>>>0<2)break j;m=L[c>>1];if((m&64512)!=56320)break j;H[g|0]=d;c=J[f+12>>2];H[c+3|0]=m>>>8;H[c+2|0]=m;H[c+1|0]=d>>>8;h=h-1|0;g=c+4|0;c=e+4|0}e=c;J[f+12>>2]=g;h=h-1|0;if(h)continue;break}break i}e=c;j=(h<<1)+j|0;if(d)break f;break e}if(!k|!j)break b;k=2;c=e+2|0;d=L[e>>1];if((d&63488)!=55296)break d;e=c}n:{if(!(d&1024)){k=0;if(M[a+12>>2]<=e>>>0)break n;c=L[e>>1];if((c&64512)==56320){H[f+6|0]=c;H[f+7|0]= -c>>>8;H[f+4|0]=d;H[f+5|0]=d>>>8;e=e+2|0;d=0;k=4;break n}J[b>>2]=12;break n}J[b>>2]=12;k=0}J[l+56>>2]=d&65535}if(!k)break b;break c}H[f+4|0]=d;H[f+5|0]=d>>>8;e=c}hi(l,f+4|0,k,f+12|0,J[a+20>>2],f+8|0,i,b);g=J[f+12>>2];j=J[a+20>>2]-g|0}if(!(j|(M[a+12>>2]<=e>>>0|J[b>>2]>0)))J[b>>2]=15;J[a+16>>2]=g;J[a+8>>2]=e;J[a+24>>2]=J[f+8>>2]}bc=f+16|0}function N6(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;i=J[(c?16:12)+b>>2];g=J[(c?8:4)+b>>2];f=P(c,9804)+a|0;b=f+9840|0;d=f+9844|0;a:{if((g|0)== -J[b>>2]&(i|0)==J[d>>2])break a;J[b>>2]=g;J[d>>2]=i;d=J[a+10064>>2];b:{if(!d)break b;b=0;while(1){if(!(K[(P(b,36)+a|0)+10100|0]&16)){b=b+1|0;if((d|0)!=(b|0))continue;break b}break}b=Pc(J[(P(b,36)+a|0)+10080>>2],g);d=J[J[a+36>>2]+12>>2];if(d){h=d;d=L[J[J[a+4>>2]+88>>2]+12>>1];d=d>>>0<=5?40:h>>>0>=d>>>0?52:40}else d=40;if((c|0)!=1)break b;d=b+d&-64;if((d|0)==(b|0))break b;j=Dd(g,d,b);d=J[a+40>>2];b=J[a+10064>>2];c:{if(!b)break c;m=b&1;d:{if((b|0)==1){b=0;break d}n=b&-2;l=a+10068|0;b=0;while(1){h=P(b, -36)+l|0;k=J[h+24>>2];d=(d|0)>(k|0)?d:k;h=0-J[h+28>>2]|0;d=(d|0)>(h|0)?d:h;h=P(b|1,36)+l|0;k=J[h+24>>2];d=(d|0)>(k|0)?d:k;h=0-J[h+28>>2]|0;d=(d|0)>(h|0)?d:h;b=b+2|0;e=e+2|0;if((n|0)!=(e|0))continue;break}}if(!m)break c;b=P(b,36)+a|0;e=J[b+10092>>2];d=(d|0)>(e|0)?d:e;b=0-J[b+10096>>2]|0;d=(b|0)<(d|0)?d:b}b=j-g|0;e=Pc(d,b);b=Pc(d,b);g=((e|0)<0?0-b|0:b)>>>0<128?j:g}J[f+44>>2]=g;J[(P(c,9804)+a|0)+48>>2]=i;e:{if(!c){J[a+8>>2]=g;b=a+16|0;break e}J[a+12>>2]=g;b=a+20|0}J[b>>2]=i;b=P(c,9804)+a|0;if(J[b+52>> -2]){j=b+56|0;d=0;while(1){e=j+P(d,12)|0;f=Pc(J[e>>2],g);J[e+8>>2]=f;J[e+4>>2]=f;d=d+1|0;if(d>>>0>2])continue;break}}o=b,p=(Pc(J[b+252>>2],g)|0)<40,H[o+256|0]=p;if(!J[a+10064>>2]|(c|0)!=1)break a;d=0;while(1){b=P(d,36)+a|0;c=b+10068|0;e=Pc(J[c>>2],g)+i|0;J[b+10076>>2]=e;J[b+10072>>2]=e;f=b+10088|0;e=b+10080|0;j=Pc(J[e>>2],g)+i|0;J[f>>2]=j;J[b+10084>>2]=j;b=b+10100|0;J[b>>2]=J[b>>2]&-2;e=Pc(J[c>>2]-J[e>>2]|0,g);if(e+48>>>0<=96){h=c;c=J[c+4>>2]+32&-64;J[h+8>>2]=c;h=f;f=e>>31;f=(f^e)-f|0;f=f>>> -0>=32?f>>>0<48?32:64:0;J[h>>2]=c+((e|0)<0?f:0-f|0);J[b>>2]=J[b>>2]|1}d=d+1|0;c=J[a+10064>>2];if(d>>>0>>0)continue;break}if(!c)break a;e=0;while(1){b=P(e,36)+a|0;g=b+10100|0;i=J[g>>2];f:{if((i&5)!=5)break f;f=b+10076|0;j=b+10088|0;b=0;while(1){d=P(b,36)+a|0;if(!((J[d+10100>>2]&5)!=1|J[d+10076>>2]>J[j>>2]|J[d+10088>>2]>2])){J[g>>2]=i&-2;break f}b=b+1|0;if((c|0)!=(b|0))continue;break}}e=e+1|0;if((c|0)!=(e|0))continue;break}}}function GDa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a= -J[a+4>>2];if(!a)return 0;c=bc-96|0;bc=c;g=a+12|0;md(g,0);J[c+88>>2]=0;J[c+92>>2]=J[682146];J[695492]=0;a=c+52|0;da(4988,a|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((b|0)!=1){J[695492]=0;e=aa(4989,c+8|0,(H[c+63|0]<0?J[c+52>>2]:a)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1){d=ea(0)|0;if(H[c+63|0]>=0)break d;qc(J[c+52>>2]);break d}if(H[c+63|0]<0)qc(J[c+52>>2]);J[695492]=0;a=aa(4990,c+16|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;J[695492]=0;b=aa(4991,c+52|0,a|0)|0;d= -J[695492];J[695492]=0;if((d|0)==1)break j;J[a+24>>2]=2381060;J[a>>2]=2381028;d=J[a+28>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)gc[J[J[d>>2]+4>>2]](d);J[a+28>>2]=0}J[a+16>>2]=2381060;d=J[a+20>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)gc[J[J[d>>2]+4>>2]](d);J[a+20>>2]=0}sc(a+8|0);sc(e);J[c>>2]=0;J[695492]=0;aa(4985,c|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i;J[695492]=0;a=c+4|0;ia(4992,a|0,b|0,c|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;aa(4993,g|0,a|0)|0;a=J[695492]; -J[695492]=0;if((a|0)==1)break g;a=J[c+4>>2];J[c+4>>2]=0;l:{if(!a)break l;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break l;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[c>>2];J[c>>2]=0;m:{if(!a)break m;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break m;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[g>>2];J[695492]=0;$(4994,a|0)|0;a=J[695492];J[695492]=0;if((a| -0)==1)break f;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);sc(c+88|0);a=1;break c}d=ea(0)|0;break d}d=ea(0)|0;sc(e);break d}d=ea(0)|0;ud(a);sc(e);break d}d=ea(0)|0;break e}d=ea(0)|0;vc(c);break e}d=ea(0)|0;vc(c+4|0);vc(c);break e}d=ea(0)|0}ud(b)}sc(c+88|0);na(d|0)|0;ta();a=0}bc=c+96|0;break a}ea(0)|0;yc(); -B()}return a|0}function D_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;w=bc-384|0;bc=w;p=J[a+332>>2];b=J[b+84>>2];a=w;while(1){s=J[b+128>>2];l=I[c+64>>1];o=P(J[b+32>>2],I[c+16>>1]);j=P(J[b+224>>2],I[c+112>>1]);i=o-j|0;m=P(J[b+96>>2],I[c+48>>1]);k=P(J[b+160>>2],I[c+80>>1]);g=m-k|0;h=P(i+g|0,4433);n=P(J[b+64>>2],I[c+32>>1]);q=P(J[b+192>>2],I[c+96>>1]);t=n-q<<13;f=P(I[c>>1],J[b>>2])<<13|1024;u=t+f|0;i=h+P(i,6270)|0;J[a+ -320>>2]=u-i>>11;J[a+32>>2]=i+u>>11;i=f-t|0;h=h+P(g,-15137)|0;J[a+224>>2]=i-h>>11;J[a+128>>2]=h+i>>11;s=P(P(l,s),10033);l=s+f|0;i=q<<13;g=i+P(n,11190)|0;q=l-g|0;u=k+o|0;h=P(u+j|0,7053);t=P(m,-4433);v=h+((t+P(o,-5540)|0)+P(j,-16244)|0)|0;J[a+192>>2]=q-v>>11;J[a+160>>2]=q+v>>11;l=g+l|0;g=P(o,2295);o=P(m,10703);m=h+P(u,2139)|0;g=(g+o|0)+m|0;J[a+352>>2]=l-g>>11;J[a>>2]=g+l>>11;n=P(n,2998)-i|0;f=f-s|0;s=n+f|0;i=t+P(k,-12112)|0;k=P(j+k|0,-8565);m=m+(i+k|0)|0;J[a+288>>2]=s-m>>11;J[a+64>>2]=m+s>>11;f=f-n| -0;j=k+(h+(P(j,12998)-o|0)|0)|0;J[a+256>>2]=f-j>>11;J[a+96>>2]=f+j>>11;a=a+4|0;b=b+4|0;c=c+2|0;r=r+1|0;if((r|0)!=8)continue;break}a=p+128|0;b=w;o=0;while(1){k=J[b+4>>2];f=J[b+20>>2];h=k+f|0;j=J[b+28>>2];m=P(h+j|0,7053);c=J[(o<<2)+d>>2]+e|0;l=m+P(h,2139)|0;n=J[b+12>>2];s=P(n,10703);i=l+(s+P(k,2295)|0)|0;g=J[b+24>>2];q=g<<13;p=J[b+8>>2];t=q+P(p,11190)|0;h=(J[b>>2]<<13)+131072|0;u=P(J[b+16>>2],10033);v=h+u|0;r=t+v|0;H[c|0]=K[a+(i+r>>>18&1023)|0];H[c+11|0]=K[a+(r-i>>>18&1023)|0];i=p-g<<13;g=i+h|0;r=k- -j|0;x=n-f|0;y=P(r+x|0,4433);r=y+P(r,6270)|0;H[c+1|0]=K[a+(g+r>>>18&1023)|0];H[c+10|0]=K[a+(g-r>>>18&1023)|0];n=P(n,-4433);g=n+P(f,-12112)|0;f=P(f+j|0,-8565);l=(g+f|0)+l|0;p=P(p,2998)-q|0;g=h-u|0;q=p+g|0;H[c+2|0]=K[a+(l+q>>>18&1023)|0];H[c+9|0]=K[a+(q-l>>>18&1023)|0];f=f+(m+(P(j,12998)-s|0)|0)|0;p=g-p|0;H[c+3|0]=K[a+(f+p>>>18&1023)|0];H[c+8|0]=K[a+(p-f>>>18&1023)|0];f=P(x,-15137)+y|0;h=h-i|0;H[c+4|0]=K[a+(f+h>>>18&1023)|0];H[c+7|0]=K[a+(h-f>>>18&1023)|0];j=m+((n+P(k,-5540)|0)+P(j,-16244)|0)|0;k=v- -t|0;H[c+5|0]=K[a+(j+k>>>18&1023)|0];H[c+6|0]=K[a+(k-j>>>18&1023)|0];b=b+32|0;o=o+1|0;if((o|0)!=12)continue;break}bc=w+384|0}function i5(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;i=bc-16|0;bc=i;if((e|0)>0)while(1){if((g&255)==255){gc[J[J[d>>2]+12>>2]](d,i+15|0,1,1,0,0)|0;g=K[i+15|0]}a:{if(g<<24>>24<0){h=g-127|0;H[i+15|0]=h;g=255;if(((h&255)+p|0)>(e|0)){s=gc[J[J[d>>2]+24>>2]](d)|0;g=e-p|0;H[i+15|0]=g;g=h+(g^-1)^-128}b:{c:switch(K[c+16|0]-8|0){case 24:h=0;gc[J[J[d>>2]+12>> -2]](d,i+11|0,4,1,0,0)|0;if(!K[i+15|0])break b;while(1){j=P(h,3)+b|0;l=K[i+11|0]|K[i+12|0]<<8;H[j|0]=l;H[j+1|0]=l>>>8;H[j+2|0]=K[i+13|0];hh(a,h+p|0,f,K[i+14|0]);h=h+1|0;if(h>>>0>2]+12>>2]](d,i+8|0,3,1,0,0)|0;l=K[i+15|0];if(!l)break b;n=0;h=0;if(l>>>0>=4){r=l&252;m=0;while(1){k=P(h,3);j=k+b|0;o=K[i+8|0]|K[i+9|0]<<8;H[j|0]=o;H[j+1|0]=o>>>8;H[j+2|0]=K[i+10|0];k=(k|3)+b|0;H[k+2|0]=K[i+10|0];o=K[i+8|0]|K[i+9|0]<<8;H[k|0]=o;H[k+1|0]=o>>>8;H[j+8|0]=K[i+10| -0];k=K[i+8|0]|K[i+9|0]<<8;H[j+6|0]=k;H[j+7|0]=k>>>8;H[j+11|0]=K[i+10|0];k=K[i+8|0]|K[i+9|0]<<8;H[j+9|0]=k;H[j+10|0]=k>>>8;h=h+4|0;m=m+4|0;if((r|0)!=(m|0))continue;break}}l=l&3;if(!l)break b;while(1){j=P(h,3)+b|0;m=K[i+8|0]|K[i+9|0]<<8;H[j|0]=m;H[j+1|0]=m>>>8;H[j+2|0]=K[i+10|0];h=h+1|0;n=n+1|0;if((l|0)!=(n|0))continue;break}break b;case 7:case 8:gc[J[J[d>>2]+12>>2]](d,i+6|0,2,1,0,0)|0;k=K[i+15|0];if(!k)break b;h=L[i+6>>1];l=h<<3;n=h>>>7&248;m=h>>>2&248;r=0;j=0;if(k>>>0>=4){t=k&252;o=0;while(1){q=P(j, -3);h=q+b|0;H[h+2|0]=n;H[h+1|0]=m;H[h|0]=l;q=(q|3)+b|0;H[q+2|0]=n;H[q+1|0]=m;H[q|0]=l;H[h+11|0]=n;H[h+10|0]=m;H[h+9|0]=l;H[h+8|0]=n;H[h+7|0]=m;H[h+6|0]=l;j=j+4|0;o=o+4|0;if((t|0)!=(o|0))continue;break}}k=k&3;if(!k)break b;while(1){h=P(j,3)+b|0;H[h+2|0]=n;H[h+1|0]=m;H[h|0]=l;j=j+1|0;r=r+1|0;if((k|0)!=(r|0))continue;break}break b;case 0:break c;default:break b}gc[J[J[d>>2]+12>>2]](d,i+5|0,1,1,0,0)|0;h=K[i+15|0];if(!h)break b;wc(b,K[i+5|0],h)}if((g&255)==255){g=255;break a}gc[J[J[d>>2]+20>>2]](d,s,0)| -0;break a}j=g+1|0;h=((j&255)+p|0)>(e|0);l=e-p|0;j=h?l:j;H[i+15|0]=j;JL(a,b,c,d,j&255,f,p);g=h?g-l|0:-1}h=K[i+15|0];b=(L[a+26>>1]==24?P(h,3):h)+b|0;p=h+p|0;if((p|0)<(e|0))continue;break}bc=i+16|0;return g&255}function SG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-32|0;bc=e;a:{b:{d=J[a+8>>2];if((d|0)!=2){c=J[b>>2];c:{if(!c)break c;b=J[c+8>>2];if(!b)break c;d=J[c+12>>2];while(1){c=gc[J[J[a>>2]+12>>2]](a,d,b)|0;if(!c){a=Kc(e+8|0,2378736,2375204,474,2384672,0);J[695492]=0;_(5019,a|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);ba(b|0);B()}d=c+d|0;g=c+g|0;b=b-c|0;if(b)continue;break}d=J[a+8>>2]}if((d|0)!=1)break a;J[a+8>>2]=3;break a}d=bc-16|0;bc=d;J[e>>2]=0;J[e+4>>2]=J[682146];d:{e:{f:{g:{h:{c=J[b>>2];if(!c|J[c+8>>2]-1>>>0>4294967293)break h;J[695492]=0;ia(5474,d+4|0,b|0,0,0);c=J[695492];J[695492]=0;if((c|0)!=1){c=J[d+4>>2];i:{if(c){f=J[J[c>>2]+24>>2];J[695492]=0;ca(f|0,d+12|0,c|0,2);c=J[695492];J[695492]=0;if((c|0)!=1)break i;a=Z()|0;break g}J[d+12>>2]=0}J[695492]=0;aa(4993, -e|0,d+12|0)|0;c=J[695492];J[695492]=0;j:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break j;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)!=1){if(f)break j;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break j}break e}a=Z()|0;vc(d+12|0);break g}c=J[e>>2];J[e+4>>2]=J[(c?c+12|0:2728584)>>2];c=J[d+4>>2];J[d+4>>2]=0;k:{if(!c)break k;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)==1)break e;if(f)break k;J[695492]=0;_(4987,c|0);c=J[695492]; -J[695492]=0;if((c|0)==1)break e}c=J[e>>2];if(J[c+8>>2]?c:0)break h;b=J[b>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;aa(5475,e|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break h;a=Z()|0;break f}a=Z()|0;break f}bc=d+16|0;break d}sc(d+4|0)}sc(e);ba(a|0);B()}ea(0)|0;yc();B()}l:{m:{n:{d=J[e>>2];o:{if(!d)break o;b=J[d+8>>2];if(!b)break o;d=J[d+12>>2];while(1){c=J[J[a>>2]+12>>2];J[695492]=0;c=ga(c|0,a|0,d|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break n;if(!c){J[695492]=0;a=ja(5018,e+8|0,2378736,2375204, -474,2384672,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);break l}d=c+d|0;g=c+g|0;b=b-c|0;if(b)continue;break}}sc(e);break a}b=Z()|0;break l}b=Z()|0}sc(e);ba(b|0);B()}B()}bc=e+32|0;return g|0}function g9(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;a:{b:{a=J[a+12>>2];d=J[a+44>>2];c:{if(!d)break c;g=J[a+48>>2];l=g+P(d,716)|0;if(!b)while(1){a=J[g>>2];if(a){e=J[g+4>>2];h=e+(a<<6)|0;while(1){d=J[e+ -56>>2];d:{if(!d)break d;a=J[e+52>>2];if(!a)break d;j=P(a,36)+d|0;while(1){if(!(!J[d+4>>2]|J[e+32>>2]<=0)){b=J[d>>2];f=0;while(1){e:{if(!J[b+28>>2])break e;$D(J[b+32>>2]);$D(J[b+36>>2]);c=J[b+24>>2];if(!c)break e;a=J[b+28>>2];k=a+P(c,60)|0;while(1){if(yn(J[a+20>>2]))break b;c=J[a>>2]>0?J[a+4>>2]:0;J[a+16>>2]=3;J[a+8>>2]=0;J[a+40>>2]=c;c=J[d+12>>2]-J[a+36>>2]|0;J[a+12>>2]=c;if((c|0)<0)break a;c=J[b+36>>2];ZD(c,J[c+12>>2]+((a-J[b+28>>2]|0)/60<<4)|0,J[a+12>>2]);a=a+60|0;if((k|0)!=(a|0))continue;break}}b= -b+52|0;f=f+1|0;if((f|0)>2])continue;break}}d=d+36|0;if((j|0)!=(d|0))continue;break}}e=e- -64|0;if((h|0)!=(e|0))continue;break}}g=g+716|0;if((l|0)!=(g|0))continue;break c}while(1){a=J[g>>2];if(a){e=J[g+4>>2];j=e+(a<<6)|0;while(1){f=J[e+56>>2];f:{if(!f)break f;a=J[e+52>>2];if(!a)break f;k=P(a,36)+f|0;while(1){if(!(!J[f+4>>2]|J[e+32>>2]<=0)){d=J[f>>2];h=0;while(1){g:{if(!J[d+28>>2])break g;$D(J[d+32>>2]);$D(J[d+36>>2]);a=J[d+24>>2];if(!a)break g;c=J[d+28>>2];p=c+P(a,60)|0;while(1){if(yn(J[c+ -20>>2]))break b;a=J[c>>2]>0?J[c+4>>2]:0;J[c+16>>2]=3;J[c+8>>2]=0;J[c+40>>2]=a;a=J[f+12>>2]-J[c+36>>2]|0;J[c+12>>2]=a;if((a|0)<0)break a;a=J[d+36>>2];ZD(a,J[a+12>>2]+((c-J[d+28>>2]|0)/60<<4)|0,J[c+12>>2]);i=J[c>>2];h:{if(!i)break h;b=0;m=J[c+4>>2];a=m;i=P(i,72);n=i-72|0;o=((n>>>0)/72|0)+1&7;if(o)while(1){J[a+32>>2]=0;a=a+72|0;b=b+1|0;if((o|0)!=(b|0))continue;break}if(n>>>0<504)break h;b=i+m|0;while(1){J[a+32>>2]=0;J[a+536>>2]=0;J[a+464>>2]=0;J[a+392>>2]=0;J[a+320>>2]=0;J[a+248>>2]=0;J[a+176>>2]=0; -J[a+104>>2]=0;a=a+576|0;if((b|0)!=(a|0))continue;break}}c=c+60|0;if((p|0)!=(c|0))continue;break}}d=d+52|0;h=h+1|0;if((h|0)>2])continue;break}}f=f+36|0;if((k|0)!=(f|0))continue;break}}e=e- -64|0;if((j|0)!=(e|0))continue;break}}g=g+716|0;if((l|0)!=(g|0))continue;break}}return}fa(204719,198999,526,212301);B()}fa(204986,198999,532,212301);B()}function DL(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;o=J[a+88>>2];J[c>>2]=0;g=a+828|0;a:{if(!K[a+848|0]){n=J[a+104>> -2];J[g+16>>2]=0;J[g+20>>2]=0;h=8;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;e=L[a+152>>1];if(!e)break a;d=J[a+156>>2];e=d+(e<<4)|0;while(1){b:{if(J[d>>2]==1111770656){f=J[d+12>>2];if(f)break b}d=d+16|0;if(e>>>0>d>>>0)continue;break a}break}if(nd(n,J[d+8>>2])|f>>>0<8)break a;if(yi(n,f,g))break a;d=J[a+828>>2];J[a+832>>2]=d+f;c:{d:{if((K[d+1|0]|K[d|0]<<8)!=1)break d;e=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(e>>>0<8)break d;l=K[d+2|0]<<8;k=K[d+ -3|0];h=l|k;if(f>>>0>>0|h>>>0>e-8>>>2>>>0)break d;J[a+840>>2]=f-e;m=d+e|0;J[a+836>>2]=m;J[a+844>>2]=h;d=d+8|0;j=d+(h<<2)|0;e:{if(!h)break e;f=k&3;if(f){e=d;while(1){h=h-1|0;j=P(K[e+3|0]|K[e+2|0]<<8,10)+j|0;d=e+4|0;e=d;i=i+1|0;if((f|0)!=(i|0))continue;break}}if((k|l)-1>>>0<3)break e;while(1){j=(((P(K[d+3|0]|K[d+2|0]<<8,10)+j|0)+P(K[d+7|0]|K[d+6|0]<<8,10)|0)+P(K[d+11|0]|K[d+10|0]<<8,10)|0)+P(K[d+15|0]|K[d+14|0]<<8,10)|0;d=d+16|0;h=h-4|0;if(h)continue;break}}if(j>>>0<=m>>>0)break c}Sf(n,g);J[g+16>> -2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;return 8}H[a+848|0]=1}h=6;if(!b|!o)break a;f=J[a+844>>2];m=Qc(b);if(!m|!f)break a;d=J[g>>2]+8|0;e=d+(f<<2)|0;i=L[o+14>>1];while(1){j=K[d+3|0]|K[d+2|0]<<8;if((i|0)==(K[d+1|0]|K[d|0]<<8)){if(!j)break a;while(1){f:{f=K[e+5|0];if(!(f&16))break f;l=J[a+840>>2];d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(l>>>0<=d>>>0)break f;i=l-d|0;if(i>>>0<=m>>>0)break f;k=K[e+6|0]|K[e+7|0]<<8|(K[e+8|0]<< -16|K[e+9|0]<<24);g=d;d=J[a+836>>2];if(kd(b,g+d|0,i))break f;i=k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24);g:switch(f&15){case 0:case 1:if(i>>>0>=l>>>0)break f;d=d+i|0;if(!pg(d,0,l))break f;J[c+4>>2]=d;J[c>>2]=1;return 0;case 2:J[c+4>>2]=i;J[c>>2]=2;return 0;case 3:break g;default:break f}J[c+4>>2]=i;J[c>>2]=3;return 0}e=e+10|0;j=j-1|0;if(j)continue;break}break a}d=d+4|0;e=P(j,10)+e|0;f=f-1|0;if(f)continue;break}}return h|0}function hua(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;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;i=bc-1312|0;bc=i;g=P(L[c+8>>1],d);o=P(L[c+10>>1],d);a:{b:{c:{d:{if(!e)break d;p=J[e>>2];e:{if((p|0)<0)break e;l=J[e+4>>2];if((l|0)<0)break e;j=o;o=J[e+8>>2];if((j|0)<(o|0))break e;j=g;g=J[e+12>>2];if((j|0)>=(g|0))break d}a=Kc(i+256|0,2381342,2373889,1587,2413106,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break a}r=L[a+10>>1];s=L[b+10>>1];h=L[a+8>>1];q=L[b+8>>1];j=L[b+16>>1];u=j-1|0;f:{if(u>>>0<2)break f;e=1;if((j| -0)!=3){t=(j&65534)-4|0;while(1){n=i+256|0;J[n+(e<<2)>>2]=(e<<16>>>0)/(u>>>0);m=n;n=e+1|0;J[m+(n<<2)>>2]=(n<<16>>>0)/(u>>>0);e=e+2|0;n=(k|0)==(t|0);k=k+2|0;if(!n)continue;break}}if(!(j&1))break f;J[(i+256|0)+(e<<2)>>2]=(e<<16>>>0)/(u>>>0)}rG(f,i);e=(l|0)/(d|0)|0;j=L[c+8>>1];m=L[c+12>>1];x=J[c+16>>2];k=(p|0)/(d|0)|0;if(!J[b+20>>2])Li(b);t=L[b+12>>1];n=L[b+14>>1];if(L[b+8>>1]){b=b+20|0;break b}b=2728564;if(J[682142]>=(n+t|0))break b;a=Kc(i+1288|0,2381564,2381967,592,2411548,0);J[695492]=0;_(5019,a|0); -b=J[695492];J[695492]=0;if((b|0)!=1)break c;break a}B()}g=g-l|0;h=h>>>0>q>>>0?q:h;v=(h|0)>(g|0)?g:h;g:{if((v|0)<=0)break g;g=o-p|0;o=r>>>0>s>>>0?s:r;w=(g|0)<(o|0)?g:o;if((w|0)<=0)break g;g=l-P(d,e)|0;l=g>>31;e=l+e|0;r=(e|0)>=0?e>>>0>>0?x+P(P(e,m),3)|0:0:0;j=k;e=p-P(d,k)|0;k=e>>31;o=j+k|0;j=e+(d&k)|0;s=g+(d&l)|0;l=t+J[b>>2]|0;p=L[a+8>>1]?J[a+16>>2]:0;t=P(L[a+12>>1],3);g=0;while(1){e=0;a=j;k=o;while(1){h=K[e+l|0];h:{if(!h)break h;if(h>>>0>=u>>>0){b=P(e,3)+p|0;h=P(k,3)+r|0;H[b|0]=K[K[h|0]+i|0];H[b+ -1|0]=K[K[h+1|0]+i|0];H[b+2|0]=K[K[h+2|0]+i|0];break h}b=P(e,3)+p|0;q=K[b|0];h=J[(i+256|0)+(h<<2)>>2];m=q;q=P(k,3)+r|0;H[b|0]=m-(P(h,m-K[K[q|0]+i|0]|0)>>>16|0);m=K[b+1|0];H[b+1|0]=m-(P(h,m-K[K[q+1|0]+i|0]|0)>>>16|0);m=b;b=K[b+2|0];H[m+2|0]=b-(P(h,b-K[K[q+2|0]+i|0]|0)>>>16|0)}a=a+1|0;b=(a|0)>=(d|0);a=b?0:a;k=b+k|0;e=e+1|0;if((w|0)!=(e|0))continue;break}s=s+1|0;if((s|0)>=(d|0)){s=0;r=P(L[c+12>>1],3)+r|0}l=l+n|0;p=p+t|0;g=g+1|0;if((v|0)!=(g|0))continue;break}}bc=i+1312|0;return}b=Z()|0;Fc(a);ba(b|0); -B()}function WW(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,w=0;r=J[a+24>>2];if(!J[r+16>>2])return 1;s=J[r+24>>2];l=J[J[J[a+20>>2]>>2]+20>>2];a:{b:{while(1){c=J[s+36>>2];J[b+36>>2]=c;f=J[l+28>>2];u=J[a+64>>2];c:{if(u){d=(f+P(J[l+24>>2],152)|0)-152|0;p=J[d+8>>2]-J[d>>2]|0;c=f+P(c,152)|0;i=c+12|0;f=J[c+8>>2];j=J[c>>2];c=c+4|0;e=l+36|0;break c}c=f+P(c,152)|0;f=J[c+144>>2];j=J[c+136>>2];p=f-j|0;i=c+148|0;c=c+140|0;e=l+52|0}v=J[e>>2];d:{e:{if(!v)break e;if((j| -0)<0)break b;if((f|0)<0)break a;o=J[c>>2];q=J[i>>2];d=f-j|0;i=J[b+8>>2];h=J[b+40>>2];c=h&31;if((h&63)>>>0>=32){g=-1<>>32-c;c=-1<>2];n=k+m|0;e=g^-1;c=e;c=n>>>0>>0?c+1|0:c;g=h&31;if((h&63)>>>0>=32)g=c>>>g|0;else g=((1<>>g;c=g+i|0;f:{if(g>>>0>>0){t=j-g|0;n=0;if(c>>>0>=f>>>0){m=0;f=d;break f}f=c-j|0;m=d-f|0;break f}n=g-j|0;if(c>>>0>=f>>>0){f=d-n|0;t=0;m=0;break f}m=f-c|0;t=0;f=i}c=q-o|0;g=J[b+12>>2];d=k;k=J[b+20>>2];j=d+k|0;d=e; -d=j>>>0>>0?d+1|0:d;e=h&31;if((h&63)>>>0>=32)h=d>>>e|0;else h=((1<>>e;d=h+g|0;g:{if(h>>>0>>0){k=o-h|0;h=0;e=0;if(d>>>0>=q>>>0)break g;e=c;c=d-o|0;e=e-c|0;break g}h=h-o|0;if(d>>>0>=q>>>0){c=c-h|0;k=0;e=0;break g}k=0;c=g;e=q-d|0}j=0;if((n|h|(m|e))<0)break d;if((f|c)<0)break d;d=P(i,k)+t|0;h:{i:{j:{e=J[b+44>>2];h=P(h,p)+n|0;if(e|h|((i|0)!=(p|0)|d))break j;if((f|0)!=(i|0))break j;if((c|0)!=(g|0))break i;f=(u?36:52)+l|0;J[b+44>>2]=J[f>>2];J[f>>2]=0;break e}if(e)break h}if(!g)break d; -Dzb(g,0,i,0);if(fc)break d;i=P(g,i);if(i>>>0>1073741823)break d;i=Xk(i<<2);J[b+44>>2]=i;if(!i)break d;g=J[b+8>>2];e=J[b+12>>2];if((g|0)==(f|0)&(e|0)==(c|0))break h;wc(i,0,P(g,e)<<2)}if(!c)break e;i=c&1;f=f<<2;d=J[b+44>>2]+(d<<2)|0;j=(h<<2)+v|0;if((c|0)!=1){h=c&-2;c=0;while(1){g=tc(d,j,f);e=p<<2;d=e+j|0;j=d+e|0;d=tc((J[b+8>>2]<<2)+g|0,d,f)+(J[b+8>>2]<<2)|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!i)break e;tc(d,j,f)}l=l+76|0;s=s+52|0;b=b+52|0;j=1;w=w+1|0;if(w>>>0>2])continue}break}return j}fa(2359010, -2346358,9883,2359022);B()}fa(2359048,2346358,9884,2359022);B()}function Vya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-48|0;bc=d;a:{b:{c:{if(K[a+144|0]){b=Kc(d+24|0,2374947,2374155,230,2402293,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}if(!J[a+4>>2]){b=Kc(d+24|0,2376005,2374155,232,2402293,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}d:{f=J[b+8>>2];e:{if(!f|!J[f+8>>2])break e;e=d+24|0;sj(e, -b,0);f=J[d+24>>2];if(!f){sc(e);break e}f=J[f+8>>2];sc(d+24|0);if(f)break d}b=Kc(d+24|0,2377368,2374155,234,2402293,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}h=a+72|0;bG(h,b);J[a+152>>2]=0;J[a+68>>2]=0;f=di();Gs(f,a,a);f:{b=J[c>>2];if(!b){g=Hs(8);J[g>>2]=0;J[g+4>>2]=0;J[695492]=0;e=$(5209,g|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[e>>2]=2406568;uj(c,md(a+164|0,e));b=J[c>>2]}Gs(f,a,b);H[a+144|0]=1;b=d+16|0;gc[J[J[f>>2]+16>>2]](b,f,a,h);J[695492]= -0;c=d+24|0;ia(5276,c|0,b|0,0,-1);b=J[695492];J[695492]=0;g:{h:{i:{j:{k:{l:{m:{if((b|0)!=1){J[695492]=0;c=aa(4993,a+108|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break m;f=J[c>>2];e=J[d+24>>2];J[d+24>>2]=0;n:{if(!e)break n;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c)break n;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}e=J[d+16>>2];J[d+16>>2]=0;o:{if(!e)break o;J[695492]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[695492];J[695492]=0;if((b| -0)==1)break a;if(c)break o;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(f)break g;a=d+8|0;sj(a,h,0);J[695492]=0;ca(5048,d+16|0,2378168,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;a=J[d+16>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;b=ja(5018,d+24|0,a|0,2374155,253,2402293,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break j;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break i}a=Z()|0;break l}a=Z()|0;vc(d+24|0)}vc(d+16|0);break c}a=Z()| -0;break h}a=Z()|0}sc(d+16|0)}sc(d+8|0);break c}PG(J[a+108>>2],0,-1,5303,a);bc=d+48|0;return}a=Z()|0;Tl(g)}ba(a|0)}B()}ea(0)|0;yc();B()}function WX(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;c=bc-32|0;bc=c;f=J[a+116>>2];J[f+132>>2]=0;a:{b:{c:{a=J[f+208>>2];j=J[a+8>>2];d:{e:{if((j|0)<=0)break e;g=J[a>>2];i=J[b+492>>2];if(!i){a=0;while(1){i=J[g+(a<<2)>>2];J[f+132>>2]=i;if((J[i>>2]&J[i+4>>2])==-1)break d;J[f+132>>2]=0;a=a+1|0;if((j|0)!=(a|0))continue;break}break e}a= -0;while(1){k=J[g+(a<<2)>>2];J[f+132>>2]=k;if(J[i+8>>2]==J[k>>2]&J[i+12>>2]==J[k+4>>2])break d;J[f+132>>2]=0;a=a+1|0;if((j|0)!=(a|0))continue;break}}a=rc(40);J[695492]=0;j=aa(3479,a|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[f+132>>2]=j;id(J[f+208>>2],j);a=J[b+492>>2];if(!a)break d;if(!(gc[J[J[a>>2]+20>>2]](a)|0))break d;J[f+244>>2]=1}g=J[b+492>>2];e=O[b+496>>3];d=O[b+520>>3]*e;e=e*O[b+528>>3];h=O[b+16>>3]*d+e*O[b+32>>3];e=O[b+24>>3]*d+e*O[b+40>>3];e=Y(h*h+e*e);O[f+136>>3]=e;if(!g)break b; -f:{if(J[g+20>>2]!=4)break f;k=-1;a=0;i=-1;j=-1;while(1){n=J[(g+(a<<2)|0)+164>>2];g:{if(!n)break g;o=K[n|0];k=(o|0)==109?K[n+1|0]?k:a:k;i=((o&223)-65&255)>>>0>25|(i|0)>=0?i:K[n+1|0]?i:a;if(!(O[(g+(a<<3)|0)+1464>>3]>0)|(j|0)>=0)break g;j=a}a=a+1|0;if((a|0)!=256)continue;break}h:{i:{j:{if((k|0)<0)break j;d=O[(g+((k&255)<<3)|0)+1464>>3];if(!(d>0))break j;h=d/.6;break i}k:{if((i|0)<0)break k;d=O[(g+((i&255)<<3)|0)+1464>>3];if(!(d>0))break k;h=d+d;break i}if((j|0)<0)break h;d=O[(g+((j&255)<<3)|0)+1464>> -3];if(!(d>0))break h;h=d+d}e=e*h;O[f+136>>3]=e}d=O[g+40>>3];if(d==0)break f;O[f+136>>3]=e*R(O[g- -64>>3]/d)}$Y(b,c,c|8,c+16|0,c+24|0);if(J[g+20>>2]!=4)break a;e=O[g+48>>3];d=O[g+40>>3];h=O[g+56>>3];l=O[c+8>>3];p=O[c+24>>3];m=O[g- -64>>3];O[c+24>>3]=h*l+p*m;q=h;h=O[c>>3];r=m;m=O[c+16>>3];O[c+16>>3]=q*h+r*m;O[c+8>>3]=d*l+e*p;O[c>>3]=d*h+e*m;break a}b=Z()|0;qc(a);ba(b|0);B()}$Y(b,c,c|8,c+16|0,c+24|0)}l:{if(O[f+136>>3]==0){J[f+144>>2]=0;J[f+148>>2]=0;e=O[c>>3];break l}e=O[c>>3];d=R(e);l=O[c+8>>3];h=R(l); -if(d>=h){J[f+148>>2]=h>d*.1;J[f+144>>2]=!(e>0)<<1;break l}J[f+148>>2]=d>h*.1;J[f+144>>2]=l>0?1:3}a=1;if(!(!(R(O[c+16>>3])<.001)|(!(e>0)|!(R(O[c+8>>3])<.001))))a=!(O[c+24>>3]<0);J[f+152>>2]=a;bc=c+32|0}function Aj(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=-1;a:{b:{if(J[a+32>>2]|(!a|!b))break b;f=J[a+24>>2];d=J[a+8>>2];if(!((f|0)==(d|0)|d>>>0>2147483646)){J[a+24>>2]=d;f=d}d=J[a+20>>2];e=J[a+4>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[a+20>>2]=e;d=e}e=-1;if((c|0)<-1)break b;g=J[a+12>>2];if((g|0)==2)break b; -if(!c)return 0;if((c|0)<0){c=0;if(!K[b|0])return 0;e=b;while(1){c=c+1|0;i=K[e+1|0];e=e+1|0;if(i)continue;break}}e=(c+d|0)+2|0;if(e>>>0>f>>>0){if(!((g|0)!=5|e>>>0<15E6)){Ap(a,33685);return-1}i=bc-16|0;bc=i;c:{if(J[a+32>>2]|!a)break c;f=J[a+24>>2];d=J[a+8>>2];if(!((f|0)==(d|0)|d>>>0>2147483646)){J[a+24>>2]=d;f=d}g=J[a+20>>2];d=J[a+4>>2];if(!((g|0)==(d|0)|d>>>0>2147483646)){J[a+20>>2]=d;g=d}h=J[a+12>>2];if((h|0)==2)break c;if(!((h|0)!=5|e>>>0<15E6)){J[i>>2]=33685;Cc(0,0,0,0,0,29,2,3,33685,0,0,0,32863, -i);if(J[a+32>>2])break c;J[a+32>>2]=2;break c}j=1;if(e>>>0>>0)break c;d:{e:{f:{g:{h:{i:switch(h|0){case 0:case 3:d=f?f<<1:e+10|0;if(e>>>0<=d>>>0)break h;while(1){if((d|0)<0){Ap(a,5424);j=0;break c}d=d<<1;if(e>>>0>d>>>0)continue;break}break h;case 4:if(g>>>0<4096){d=e;break f}d=f;while(1){d=d<<1;if(e>>>0<=d>>>0)break h;if((d|0)>=0)continue;break}Ap(a,5424);j=0;break c;case 1:break g;default:break i}d=e+10|0}if((h|0)!=3)break f;e=J[a+16>>2];if(!e)break f;h=J[a>>2];f=h-e|0;if(f>>>0>d>>>0){Zc(e,h, -g);f=J[a+16>>2];J[a>>2]=f;H[f+J[a+20>>2]|0]=0;break e}e=gc[J[659452]](e,d+f|0)|0;if(!e){Ap(a,5424);j=0;break c}J[a+16>>2]=e;J[a>>2]=e+f;break e}d=e+10|0}j:{k:{e=J[a>>2];l:{if(!e){e=gc[J[659450]](d)|0;break l}if(f-g>>>0>99)break k;e=gc[J[659452]](e,d)|0}if(e)break j;break d}e=gc[J[659450]](d)|0;if(!e)break d;f=tc(e,J[a>>2],J[a+20>>2]);gc[J[659451]](J[a>>2]);H[J[a+20>>2]+f|0]=0}J[a>>2]=e}J[a+24>>2]=d;J[a+8>>2]=d>>>0>=2147483647?2147483647:d;d=J[a+20>>2];J[a+4>>2]=d>>>0>=2147483647?2147483647:d;break c}Ap(a, -5424);j=0}bc=i+16|0;if(!j)break a;d=J[a+20>>2]}Zc(J[a>>2]+d|0,b,c);b=J[a+20>>2]+c|0;J[a+20>>2]=b;e=0;H[b+J[a>>2]|0]=0;b=J[a+24>>2];J[a+8>>2]=b>>>0>=2147483647?2147483647:b;b=a;a=J[a+20>>2];J[b+4>>2]=a>>>0>=2147483647?2147483647:a}return e}Ap(a,5424);return 2}function vsa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;k=(g|0)/4|0;a:{if(!f)break a;c=f-1|0;j=J[a+60>>2];if(e>>>0>=4){d=e-4|0;m=d&4;n=d>>>0<4;o=(e&3|4)-5|0;while(1){l=c;a=e;f=b;c=i;if(!m){a= -J[(K[c|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=J[a+12>>2];f=b+16|0;c=c+1|0;a=d}g=d;if(!n){while(1){b=f;g=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[g>>2];J[b+4>>2]=J[g+4>>2];J[b+8>>2]=J[g+8>>2];J[b+12>>2]=J[g+12>>2];g=c;i=J[(K[c+1|0]<<2)+j>>2];J[b+16>>2]=J[i>>2];J[b+20>>2]=J[i+4>>2];J[b+24>>2]=J[i+8>>2];J[b+28>>2]=J[i+12>>2];f=b+32|0;c=c+2|0;a=a-8|0;if(a>>>0>3)continue;break}i=g+1|0;g=a;b=b+16|0}b:{if(g){a=2;c=J[(K[c|0]<<2)+j>>2];c:switch(o|0){case 2:J[f>>2]=J[c>>2];f=b+ -20|0;c=c+4|0;case 1:J[f>>2]=J[c>>2];f=f+4|0;c=c+4|0;break;case 0:break c;default:break b}J[f>>2]=J[c>>2];f=f+4|0;break b}a=1}c=l-1|0;i=(a+i|0)+k|0;b=(h<<2)+f|0;if(l)continue;break}break a}d:switch(e-1|0){case 1:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+8|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];a=h<<2;b=a+b|0;c=b+8|0;d=(i+k|0)+1|0;e=J[(K[d|0]<<2)+j>>2];J[c>>2]=J[e>>2];J[b+12>>2]=J[e+4>> -2];b=(a+c|0)+8|0;i=(d+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 2:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+12|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];c=h<<2;a=c+b|0;d=a+12|0;e=(i+k|0)+1|0;b=J[(K[e|0]<<2)+j>>2];J[d>>2]=J[b>>2];J[a+16>>2]=J[b+4>>2];J[a+20>>2]=J[b+8>>2];b=(c+d|0)+12|0;i=(e+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue; -break}break a;case 0:break d;default:break a}if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=c;if(!c)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function jta(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;k=(g|0)/4|0;a:{if(!f)break a;c=f-1|0;j=J[a+64>>2];if(e>>> -0>=4){d=e-4|0;m=d&4;n=d>>>0<4;o=(e&3|4)-5|0;while(1){l=c;a=e;f=b;c=i;if(!m){a=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=J[a+12>>2];f=b+16|0;c=c+1|0;a=d}g=d;if(!n){while(1){b=f;g=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[g>>2];J[b+4>>2]=J[g+4>>2];J[b+8>>2]=J[g+8>>2];J[b+12>>2]=J[g+12>>2];g=c;i=J[(K[c+1|0]<<2)+j>>2];J[b+16>>2]=J[i>>2];J[b+20>>2]=J[i+4>>2];J[b+24>>2]=J[i+8>>2];J[b+28>>2]=J[i+12>>2];f=b+32|0;c=c+2|0;a=a-8|0;if(a>>>0>3)continue;break}i=g+1|0;g=a;b=b+16| -0}b:{if(g){a=2;c=J[(K[c|0]<<2)+j>>2];c:switch(o|0){case 2:J[f>>2]=J[c>>2];f=b+20|0;c=c+4|0;case 1:J[f>>2]=J[c>>2];f=f+4|0;c=c+4|0;break;case 0:break c;default:break b}J[f>>2]=J[c>>2];f=f+4|0;break b}a=1}c=l-1|0;i=(a+i|0)+k|0;b=(h<<2)+f|0;if(l)continue;break}break a}d:switch(e-1|0){case 1:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+8|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];a=h<<2;b=a+b|0; -c=b+8|0;d=(i+k|0)+1|0;e=J[(K[d|0]<<2)+j>>2];J[c>>2]=J[e>>2];J[b+12>>2]=J[e+4>>2];b=(a+c|0)+8|0;i=(d+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 2:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+12|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];c=h<<2;a=c+b|0;d=a+12|0;e=(i+k|0)+1|0;b=J[(K[e|0]<<2)+j>>2];J[d>>2]=J[b>>2];J[a+16>>2]=J[b+4>>2];J[a+ -20>>2]=J[b+8>>2];b=(c+d|0)+12|0;i=(e+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 0:break d;default:break a}if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=c;if(!c)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function qya(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=bc-48|0;bc=e;a:{b:{c:{d:{b=J[a+140>>2]; -if((b|0)<0){b=e+44|0;Nm(b,J[a+108>>2]);J[e+36>>2]=0;J[e+40>>2]=J[682146];J[695492]=0;da(5108,e+32|0,b|0);b=J[695492];J[695492]=0;e:{f:{g:{h:{i:{j:{k:{if((b|0)!=1){J[695492]=0;f=J[e+32>>2];b=ha(5109,f|0,e+36|0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break k;if(b)break g;J[695492]=0;b=ja(5018,e+8|0,J[682138],2374155,2058,2404072,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break j;J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break i;B()}d=Z()|0;break b}d=Z()|0;break c}d=ea(2411712)|0; -c=cc;break h}d=ea(2411712)|0;c=cc;Fc(b)}if((sa(2411712)|0)!=(c|0))break c;b=na(d|0)|0;c=J[J[a>>2]+64>>2];J[695492]=0;ca(c|0,a|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break g;d=Z()|0;break c}break f}b=0;l:{m:{while(1){n:{c=b;J[695492]=0;d=ha(5109,f|0,e+36|0,0,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break n;if(!d)break m;J[695492]=0;_(5298,f|0);d=J[695492];J[695492]=0;b=b+1|0;if((d|0)!=1)continue}break}d=ea(2411712)|0;if((cc|0)!=(sa(2411712)| -0))break c;d=na(d|0)|0;f=b;b=J[a+132>>2];J[a+140>>2]=(b|0)>2?f:c;c=J[J[a>>2]+64>>2];J[695492]=0;ca(c|0,a|0,d|0,(b|0)<2|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break l;break e}J[a+140>>2]=c;break e}d=Z()|0;break c}d=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break c;break a}b=J[a+108>>2];J[695492]=0;da(5099,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[e+32>>2];J[e+32>>2]=0;o:{if(!b)break o;J[695492]=0;c=J[b+ -4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break o;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}sc(e+36|0);b=J[e+44>>2];J[e+44>>2]=0;p:{if(!b)break p;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break p;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+140>>2]}bc=e+48|0;return b|0}d=Z()|0}vc(e+32|0)}sc(e+36|0);vc(e+44|0);ba(d|0);B()}ea(0)|0;yc();B()}function ivb(a){a=a|0;var b=0, -c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=gc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+(b<<2)|0)+(J[a+672>>2]<<2)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!f)break b;if((c|0)<=(e|0))break a;while(1){H[d|0]=K[b+2|0];H[d+1|0]=K[b+1|0];c=K[b|0];H[d+3|0]=255;H[d+2|0]=c;b=b+4|0;c=J[a+584>>2];d=(c<<2)+d|0;e=c+e|0;if((e|0)>2])continue; -break}break a}b=g+(b<<3)|0;if(f){if((c|0)<=(e|0))break a;while(1){H[d|0]=K[b+4|0];H[d+1|0]=K[b+2|0];c=K[b|0];H[d+3|0]=255;H[d+2|0]=c;b=b+8|0;c=J[a+584>>2];d=(c<<2)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d|0]=K[b+4|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b|0];break c}f=K[b+2|0]|K[b+3|0]<<8;g=K[b+4|0]|K[b+5|0]<<8;h=K[b|0]|K[b+1|0]<<8;i=P(c,(h<<8|h>>>8)&65535);h=K[d+2|0];j=h<<8|h;h=c^65535; -i=(i+P(j,h)|0)+32768|0;H[d+2|0]=(i>>>16|0)+i>>>24;i=P((f<<8|f>>>8)&65535,c);f=K[d+1|0];f=(i+P(h,f<<8|f)|0)+32768|0;H[d+1|0]=(f>>>16|0)+f>>>24;f=P(c,(g<<8|g>>>8)&65535);c=K[d|0];c=(f+P(h,c<<8|c)|0)+32768|0;H[d|0]=(c>>>16|0)+c>>>24}H[d+3|0]=255}b=b+8|0;c=J[a+584>>2];d=(c<<2)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d|0]=K[b+2|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b|0];break d}f=c^255;g=(P(c,K[b+2|0])+P(f,K[d|0])|0)+128|0; -H[d|0]=(g>>>8&255)+g>>>8;g=(P(c,K[b+1|0])+P(f,K[d+1|0])|0)+128|0;H[d+1|0]=(g>>>8&255)+g>>>8;c=(P(c,K[b|0])+P(f,K[d+2|0])|0)+128|0;H[d+2|0]=(c>>>8&255)+c>>>8}H[d+3|0]=255}b=b+4|0;c=J[a+584>>2];d=(c<<2)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]= -d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function vOa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;H[a+224|0]=0;H[a+225|0]=0;H[a+226|0]=0;H[a+227|0]=0;H[a+228|0]=0;H[a+229|0]=0;H[a+230|0]=0;H[a+231|0]=0;H[a+248|0]=0;H[a+249|0]=0;H[a+250|0]=0;H[a+251|0]=0;H[a+252|0]=0;H[a+253|0]=0;H[a+254|0]=0;H[a+255|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+242|0]=0;H[a+243|0]=0;H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+ -232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;H[a+239|0]=0;f=a;while(1){d=J[(m<<2)+b>>2]+c|0;h=K[d|0];e=K[d+3|0];i=K[d+10|0];w=e-i|0;l=K[d+13|0];g=h-l|0;p=K[d+2|0];q=K[d+11|0];j=p-q|0;r=K[d+1|0];s=K[d+12|0];k=r-s|0;x=j+k|0;t=K[d+5|0];u=K[d+8|0];n=t-u|0;v=K[d+4|0];y=K[d+9|0];o=v-y|0;z=n-o|0;A=K[d+6|0];B=K[d+7|0];d=A-B|0;J[f+28>>2]=w+g-((x+z|0)+d)<<2;v=v+y|0;p=p+q|0;q=v+p|0;e=e+i|0;i=t+u|0;r=r+s|0;s=i+r|0;t=A+B|0;l=h+l|0;u=t+l|0;J[f>>2]=(((q+e|0)+s|0)+u<<2)- -7168;h=e<<1;J[f+16>>2]=((P(q-h|0,-7223)+P(s-h|0,2578)|0)+P(u-h|0,10438)|0)+1024>>11;e=l-t|0;i=r-i|0;l=P(e+i|0,9058)+1024|0;h=p-v|0;J[f+24>>2]=(l+P(h,-11295)|0)+P(i,-14084)>>11;J[f+8>>2]=(l+P(h,5027)|0)+P(e,2237)>>11;h=w<<13;e=((P(z,11512)-h|0)+P(x,-1297)|0)+1024|0;i=(e+P(j,-19447)|0)+P(o,9175)|0;j=P(d+o|0,6164)+P(g+j|0,9810)|0;J[f+20>>2]=i+j>>11;e=(e+P(k,-3474)|0)+P(n,-25148)|0;k=P(n-d|0,3826)+P(g+k|0,10935)|0;J[f+12>>2]=e+k>>11;J[f+4>>2]=(j+((d+(h+k|0)|0)+P(d+g|0,-9232)|0)|0)+1024>>11;f=f+32|0;d= -7;m=m+1|0;if((m|0)!=7)continue;break}while(1){j=J[a+128>>2];k=J[a+64>>2];f=j+k|0;n=J[a+192>>2];o=J[a>>2];g=n+o|0;e=f+g|0;c=J[a+96>>2];m=J[a+160>>2];h=J[a+32>>2];b=m+h|0;J[a>>2]=P(e+(c+b|0)|0,10700)+32768>>16;e=P(e-(c<<2)|0,3783);i=P(g-b|0,9434)+32768|0;g=P(g-f|0,9850);J[a+192>>2]=e+(i-g|0)>>16;f=P(b-f|0,3367);J[a+128>>2]=(f+i|0)+P(b-(c<<1)|0,-7566)>>16;J[a+64>>2]=(e+(f+g|0)|0)+32768>>16;b=k-j|0;c=o-n|0;f=P(b+c|0,6565)+32768|0;e=f+P(b,20017)|0;g=b;b=h-m|0;g=P(g+b|0,-14752);J[a+160>>2]=e+g>>16;e=g; -g=P(c-b|0,1822);b=P(b+c|0,10009);J[a+96>>2]=((e+g|0)+b|0)+32768>>16;J[a+32>>2]=b+(f-g|0)>>16;b=d;d=d-1|0;a=a+4|0;if(b)continue;break}}function fxa(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;e=bc+-64|0;bc=e;d=(J[a+68>>2]-J[a- -64>>2]|0)+1|0;Sl(a+48|0,0,d);g=(b|0)<0?d:b;a:{b:{if((g|0)<(d|0))while(1){c:{b=d;if((b|0)>J[a+64>>2]){d=b-1|0;f=J[a+68>>2];if((d|0)<=(f|0))break c}b=Kc(e+20|0,2378287,2378920,619,2405900,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0; -Fc(b);break b}if((b|0)>(f|0)){b=Kc(e+20|0,2378287,2378920,619,2405900,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break b}h=J[a+52>>2];f=b;b=J[a+56>>2];f=h+(f-b<<3)|0;b=J[h+(d-b<<3)>>2];d:{if(b){gc[J[J[b>>2]+28>>2]](e+20|0,b,1);break d}J[e+20>>2]=0}J[695492]=0;aa(4993,f|0,e+20|0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){b=J[e+20>>2];J[e+20>>2]=0;if(!b)break e;J[695492]=0;h=J[b+4>>2]-1|0;J[b+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)!=1){if(h)break e;J[695492]= -0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}ea(0)|0;yc();B()}a=Z()|0;vc(e+20|0);break b}b=J[f>>2];J[f+4>>2]=J[(b?b+12|0:2728584)>>2];if((d|0)>(g|0))continue;break}if(!(J[a+64>>2]<=(g|0)&J[a+68>>2]>=(g|0))){b=Kc(e+20|0,2378287,2378920,619,2405900,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break b}yz(J[a+52>>2]+(g-J[a+56>>2]<<3)|0,c);J[695492]=0;b=aa(4989,e+56|0,c|0)|0;d=J[695492];J[695492]=0;f:{g:{h:{i:{j:{if((d|0)!=1){J[695492]=0;d=aa(5421,a+ -72|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j;J[d+24>>2]=g;sc(b);J[695492]=0;c=aa(4989,e+12|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;b=ga(5173,e+20|0,c|0,a+12|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;a=aa(5422,a+100|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;J[a+52>>2]=g;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){d=J[a+ -4>>2]-1|0;J[a+4>>2]=d;if(!d)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);sc(c);bc=e- -64|0;return}a=Z()|0;break b}a=Z()|0;sc(b);break b}a=Z()|0;break b}a=Z()|0;break f}a=Z()|0;ud(b)}sc(c)}ba(a|0)}B()}function d1a(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,y=0,z=0,A=0,B=0,C=0;m=J[a+4>>2];f=J[m+56>>2];e=f?-1:0;n=J[a+12>>2];c=J[a+8>>2];d=n-c>>1;j=J[a+16>>2];g=J[a+20>>2]-j|0;h=(d|0)<(g|0)?d:g;d=J[m+24>>2];g=J[a+24>>2];a:{b:{c:{d:{if(!(!f| -(h|0)<=0)){d=j;i=c;break d}k=(d|0)==736300?255:127;e:{if((h|0)<16){d=j;break e}i=h>>>4|0;f=i;d=j;f:{while(1){l=L[c>>1];H[d|0]=l;o=L[c+2>>1];H[d+1|0]=o;p=L[c+4>>1];H[d+2|0]=p;q=L[c+6>>1];H[d+3|0]=q;r=L[c+8>>1];H[d+4|0]=r;s=L[c+10>>1];H[d+5|0]=s;t=L[c+12>>1];H[d+6|0]=t;u=L[c+14>>1];H[d+7|0]=u;v=L[c+16>>1];H[d+8|0]=v;w=L[c+18>>1];H[d+9|0]=w;x=L[c+20>>1];H[d+10|0]=x;y=L[c+22>>1];H[d+11|0]=y;z=L[c+24>>1];H[d+12|0]=z;A=L[c+26>>1];H[d+13|0]=A;B=L[c+28>>1];H[d+14|0]=B;C=L[c+30>>1];H[d+15|0]=C;if(k>>>0<(l| -o|p|q|r|s|t|u|v|w|x|y|z|A|B|C)>>>0)break f;c=c+32|0;d=d+16|0;l=(f|0)>1;f=f-1|0;if(l)continue;break}f=0}f=i-f|0;i=f<<4;h=h-i|0;if(!g){g=0;break e}j=i+j|0;if((f|0)<=0)break e;while(1){J[g>>2]=e;J[g+60>>2]=e+15;J[g+56>>2]=e+14;J[g+52>>2]=e+13;J[g+48>>2]=e+12;J[g+44>>2]=e+11;J[g+40>>2]=e+10;J[g+36>>2]=e+9;J[g+32>>2]=e+8;J[g+28>>2]=e+7;J[g+24>>2]=e+6;J[g+20>>2]=e+5;J[g+16>>2]=e+4;J[g+12>>2]=e+3;J[g+8>>2]=e+2;J[g+4>>2]=e+1;g=g- -64|0;e=e+16|0;i=f>>>0>1;f=f-1|0;if(i)continue;break}}if((h|0)<=0){i=c;break a}while(1){g:{i= -c+2|0;f=L[c>>1];if(k>>>0>>0)break g;H[d|0]=f;d=d+1|0;l=(h|0)>1;c=i;h=h-1|0;if(l)continue}break}if(f>>>0<=k>>>0)break a;if((f&64512)!=55296)break c}if(i>>>0>=n>>>0)break b;h=L[i>>1];c=(h&64512)==56320;f=c?(h+(f<<10)|0)-56613888|0:f;i=(c<<1)+i|0}J[b>>2]=(f&-2048)==55296?12:10}J[m+56>>2]=f}c=0;h:{if(!g)break h;h=d-j|0;if(!h){c=g;break h}j=(j^-1)+d|0;k=h&7;i:{if(!k){c=g;break i}f=0;c=g;while(1){J[c>>2]=e;h=h-1|0;c=c+4|0;e=e+1|0;f=f+1|0;if((k|0)!=(f|0))continue;break}}if(j>>>0<7)break h;while(1){J[c>> -2]=e;J[c+28>>2]=e+7;J[c+24>>2]=e+6;J[c+20>>2]=e+5;J[c+16>>2]=e+4;J[c+12>>2]=e+3;J[c+8>>2]=e+2;J[c+4>>2]=e+1;c=c+32|0;e=e+8|0;h=h-8|0;if(h)continue;break}}if(!(J[b>>2]>0|i>>>0>=n>>>0|M[a+20>>2]>d>>>0))J[b>>2]=15;J[a+24>>2]=c;J[a+16>>2]=d;J[a+8>>2]=i}function p1(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,r=0,s=0,t=0,u=0;q=bc+-64|0;bc=q;a:{b:{c:{d:{s=J[689396];if(L[s>>1]){if(Qc(a)>>>0<60)break d;J[c>>2]=15;break c}i=J[689402];g=i>>>1|0;t=J[689397];u=J[689392];while(1){l=g;e=a; -o=(L[(g<<1)+u>>1]<<1)+t|0;f=0;j=0;while(1){k=e+1|0;d=K[e|0];e:{if(!d){h=0;m=f;break e}f:{g:{h:{i:{j:{k:{h=d<<24>>24;if((h|0)<0)break k;m=1;d=K[d+734960|0];switch(d|0){case 1:break j;case 0:break k;case 2:break e;default:break h}}d=K[k|0];break i}if(f&255)break e;m=0;f=K[k|0];d=f<<24>>24;if((d|0)<0|(K[f+734960|0]-1&255)>>>0>1)break e}k=e+2|0;m=0;if(!(d&255)){h=0;break e}while(1){l:{m:{if(d<<24>>24<0)break m;n:{h=K[(d&255)+734960|0];switch(h|0){case 2:break g;case 0:break m;case 1:break n;default:break e}}e= -K[k|0];f=e<<24>>24;if((f|0)<0|(K[e+734960|0]-1&255)>>>0>1)break f;break l}f=K[k|0]}k=k+1|0;d=f;if(d&255)continue;break}h=0;break e}m=0;h=d;break e}m=1;h=d;break e}h=d}f=o+1|0;p=0;e=K[o|0];o:{if(!e){d=0;n=j;break o}p:{q:{r:{s:{t:{u:{d=e<<24>>24;if((d|0)<0)break u;n=1;e=K[e+734960|0];switch(e|0){case 2:break o;case 1:break t;case 0:break u;default:break r}}e=K[f|0];break s}if(j&255)break o;n=0;j=K[f|0];e=j<<24>>24;if((e|0)<0|(K[j+734960|0]-1&255)>>>0>1)break o}f=o+2|0;n=0;if(!(e&255)){d=0;break o}while(1){v:{w:{if(e<< -24>>24<0)break w;x:{d=K[(e&255)+734960|0];switch(d|0){case 2:break q;case 0:break w;case 1:break x;default:break o}}j=K[f|0];d=j<<24>>24;if((d|0)<0|(K[j+734960|0]-1&255)>>>0>1)break p;break v}d=K[f|0]}f=f+1|0;e=d;if(d&255)continue;break}d=0;break o}n=0;d=e;break o}n=1;d=e;break o}d=e}if((d|h)&255){e=k;o=f;f=m;j=n;p=(h&255)-(d&255)|0;if(!p)continue}break}if((p|0)>=0){r=g;l=i;if(!p)break b}i=l;d=g;g=i+r>>>1|0;if((d|0)!=(g|0))continue;break}break c}a=AK(q,a);i=J[689402];g=i>>>1|0;d=J[689392];e=J[689398]; -while(1){l=g;f=Ec(a,e+(L[d+(g<<1)>>1]<<1)|0);if((f|0)>=0){r=g;l=i;if(!f)break b}i=l;l=g;g=i+r>>>1|0;if((l|0)!=(g|0))continue;break}}a=-1;break a}d=J[689393]+(g<<1)|0;a=I[d>>1];if((a|0)<0)J[c>>2]=-122;if(b){H[b|0]=!K[s+2|0]|(a&16384)>>>14;a=L[d>>1]}a=a&4095}bc=q- -64|0;return a}function tVa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-48|0;bc=e;a=mp(a,b,c,d);J[a+216>>2]=0;J[a+220>>2]=0;J[a>>2]=832908;J[a+224>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;J[a+236>>2]=0;J[a+240>>2]=0;J[a+244>>2]=0;J[e+16>>2]= -13;J[e>>2]=13;b=J[b+24>>2];J[695492]=0;ha(3207,c|0,b|0,e+16|0,0)|0;b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;J[695492]=0;b=ha(3203,J[e+24>>2],831E3,e|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;b:{if(J[b>>2]!=6)break b;b=J[e+8>>2];if(J[b+12>>2]!=4)break b;J[a+4>>2]=J[a+4>>2]|32768;J[695492]=0;J[e+32>>2]=13;b=ha(3283,b|0,0,e+32|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=J[b>>2]-3>>>0>=4294967294?J[e+32>>2]==1?+J[e+40>>2]:O[e+40>>3]:f;J[695492]=0;b=e+32|0;_(3205,b|0);c=J[695492]; -J[695492]=0;if((c|0)==1)break a;O[a+216>>3]=f;J[695492]=0;J[e+32>>2]=13;b=ha(3283,J[e+8>>2],1,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+32>>2]==1?+J[e+40>>2]:O[e+40>>3]:f;J[695492]=0;b=e+32|0;_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;O[a+240>>3]=f;J[695492]=0;J[e+32>>2]=13;b=ha(3283,J[e+8>>2],2,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+32>>2]==1?+J[e+40>>2]:O[e+40>>3]:f;J[695492]=0;b=e+32|0; -_(3205,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;O[a+232>>3]=f;J[695492]=0;J[e+32>>2]=13;b=ha(3283,J[e+8>>2],3,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+32>>2]==1?+J[e+40>>2]:O[e+40>>3]:f;J[695492]=0;_(3205,e+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;O[a+224>>3]=f}J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;b=ha(3203,J[e+24>>2],832920,e|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c:{if(J[b>>2]!= -4)break c;H[a+208|0]=0;J[a+4>>2]=J[a+4>>2]|65536;if(J[e>>2]!=4)break c;b=J[e+8>>2];if(!Ec(b,813902))H[a+208|0]=1;if(Ec(b,777246))break c;H[a+208|0]=2}J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,e+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;bc=e+48|0;return a|0}b=Z()|0;lh(a);ba(b|0);B()}function p0a(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;n=J[a+4>>2];p=n+37|0;e=J[n+44>>2];g=e>>>16|0;d=J[a+24>>2];r= -J[a+20>>2];f=J[a+16>>2];o=J[a+12>>2];k=J[a+8>>2];h=K[n+36|0];i=h?-1:0;j=i;c=!(e&16777216);while(1){a:{b:{c:{if(!c){h=0;d:{l=o-k|0;c=r-f>>1;j=(c|0)>(l|0)?l:c;e:{if((j|0)<=0)break e;c=k;while(1){k=c+1|0;c=K[c|0];if((c-32&255)>>>0>=95){H[p|0]=c;J[b>>2]=12;h=1;break e}if((c|0)==38)break d;I[f>>1]=c;if(d){J[d>>2]=i;i=i+1|0;d=d+4|0}else d=0;f=f+2|0;l=(j|0)>1;c=k;j=j-1|0;if(l)continue;break}}i=16777216;if(k>>>0>=o>>>0){c=e;break b}s=15;c=e;if(f>>>0>=r>>>0)break c;break b}g=255;e=0;j=i+1|0;t=j;c=1;continue}f:{if(k>>> -0>=o>>>0){c=e;break f}i=t;c=e;while(1){l=i;g:{h:{if(f>>>0>>0){m=K[k|0];H[(h&255)+p|0]=m;h=h+1|0;k=k+1|0;s=12;if(m>>>0>126)break c;i=i+1|0;e=63;q=63;i:{j:{k:switch(m-44|0){default:e=K[m+741776|0];q=e<<24>>24;if((q|0)<0)break j;break;case 3:break i;case 0:break k}l:switch((g<<24>>24)+1|0){case 2:case 4:case 5:case 7:g=g+1|0;c=(c&65535)<<6|e;break g;case 3:e=(c&65535)<<4|e>>>2;if((e&65535)-32>>>0<95)break c;I[f>>1]=e;if(d){J[d>>2]=j;j=l;d=d+4|0}else d=0;f=f+2|0;H[p|0]=m;g=3;c=q&3;h=1;break g;case 6:e= -(c&65535)<<2|e>>>4;if((e&65535)-32>>>0<95)break c;I[f>>1]=e;if(d){J[d>>2]=j;j=l;d=d+4|0}else d=0;f=f+2|0;H[p|0]=m;c=q&15;g=6;h=1;break g;case 0:case 1:break h;case 8:break l;default:break g}e=(c&65535)<<6|e;if((e&65535)-32>>>0<95)break c;I[f>>1]=e;f=f+2|0;if(!d){h=0;d=0;c=0;g=0;break g}J[d>>2]=j;d=d+4|0;h=0;c=0;g=0;j=i;break g}if((m|0)!=45)break i;if((g&255)==255){I[f>>1]=38;f=f+2|0;if(d){J[d>>2]=j-1;d=d+4|0}else d=0;e=c;g=255;break a}if(c&65535)break c;l=g&255;if(l>>>0>6)break c;e=0;if(1<>2]=15;break f}c=q&255;g=1}if((k|0)!=(o|0))continue;break}k=o}i=0;if(h&255|J[b>>2]>0)break b;h=0;if(!K[a+2|0]|k>>>0>>0)break b;s=11;if((g&255)!=255)break c;H[p|0]=38;h=1}J[b>>2]=s;i=16777216}H[n+36|0]=h;J[n+44>>2]=c&65535|((g&255)<<16|i);J[a+24>>2]=d;J[a+16>>2]=f;J[a+8>>2]=k;return}c=0;continue}}function Iua(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;a:{if(!f)break a;j=L[a+26>> -1];k=P(j,g);f=f-1|0;if(e>>>0<8){c=e-1|0;d=h<<2;while(1){a=f;b:switch(c|0){case 6:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 4:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+ -2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;break;default:break b}f=a-1|0;i=i+k|0;b=b+d|0;if(a)continue;break}break a}l=(e&7|8)-9|0;h=h<<2;while(1){a=f;c=e;while(1){J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);d=b;f=i+j|0;J[b+4>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+8>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+12>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0; -J[b+16>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+20>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+24>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);g=f+j|0;J[b+28>>2]=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);b=b+32|0;i=g+j|0;c=c-8|0;if(c>>>0>7)continue;break}c:switch(l|0){case 6:J[d+32>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=d+36|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 4:J[b>>2]=K[i|0]| -K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);b=b+4|0;g=i;break;default:break c}f=a-1|0;i=(g+j|0)+k|0;b=b+h|0;if(a)continue;break}}}function C0(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;a:{if(!J[a+5792>>2]){d=J[a+5820>>2];break a}k=a+5817|0;while(1){m=K[J[a+5784>>2]+l|0];n=a;j=L[J[a+5796>>2]+(l<<1)>>1];b:{c:{if(!j){d=(m<<2)+b|0;i=L[d+2>>1];h=L[d>>1];d=J[a+5820>>2];e=L[a+5816>>1]|h<>1]=e;if((d|0)>(16-i|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];I[a+5816>>1]=h>>>16-d;d=(d+i|0)-16|0;break c}d=d+i|0;break c}h=K[m+765728|0];i=h<<2;d=i+b|0;f=L[d+1030>>1];e=L[d+1028>>1];d=J[a+5820>>2];g=L[a+5816>> -1]|e<>1]=g;d:{if((d|0)>(16-f|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=g;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=e>>>16-d|0;I[a+5816>>1]=g;d=(d+f|0)-16|0;break d}d=d+f|0}J[a+5820>>2]=d;if(h-28>>>0>=4294967276){f=m-J[i+767696>>2]|0;h=J[i+767328>>2];e:{if((16-h|0)<(d|0)){e=f<>1]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=(f&65535)>>>16-d|0;I[a+5816>>1]=g;d=(d+h|0)- -16|0;break e}g=f<>1]=g;d=d+h|0}J[a+5820>>2]=d}f=j-1|0;h=K[(j>>>0<257?f:(f>>>7|0)+256|0)+765216|0];i=h<<2;e=i+c|0;j=L[e+2>>1];e=L[e>>1];g=e<>1]=g;f:{if((16-j|0)<(d|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=g;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=e>>>16-d|0;I[a+5816>>1]=g;d=(d+j|0)-16|0;break f}d=d+j|0}J[a+5820>>2]=d;if(h>>>0<4)break b;f=f-J[i+767824>>2]|0;h=J[i+767456>>2];if((16-h|0)<(d|0)){e=f<>1]=e;d=J[a+20>>2];J[a+20>> -2]=d+1;H[d+J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];I[a+5816>>1]=(f&65535)>>>16-d;d=(d+h|0)-16|0;break c}I[a+5816>>1]=f<>2]=d}l=l+1|0;if(l>>>0>2])continue;break}}e=L[b+1026>>1];f=L[b+1024>>1];c=L[a+5816>>1]|f<>1]=c;if((16-e|0)<(d|0)){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=c;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];I[a+5816>>1]=f>>>16-b;J[a+5820>>2]=(b+e|0)-16;return}J[a+5820>> -2]=d+e}function phb(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;e=bc-16|0;bc=e;a:{if(J[a+4>>2])break a;d=6;b:{if(J[a+12>>2]!=1)break b;h=(b|0)!=0;b=(P(h,36)+a|0)+16|0;d=J[c>>2];f=(((d>>31)+d|0)+32768&-65536)>>16;d=J[c+4>>2];k=J[a>>2];d=ix(b,f,(((d>>31)+d|0)+32768&-65536)>>16,k,e);if(d)break b;d=J[c+8>>2];f=(((d>>31)+d|0)+32768&-65536)>>16;d=J[c+12>>2];d=ix(b,f,(((d>>31)+d|0)+32768&-65536)>>16,k,e+4|0);if(d)break b;d=b;b=J[c+16>>2];f=(((b>>31)+b| -0)+32768&-65536)>>16;b=J[c+20>>2];d=ix(d,f,(((b>>31)+b|0)+32768&-65536)>>16,k,e+8|0);if(d)break b;g=J[e+8>>2];i=J[e+4>>2];j=J[e>>2];l=P(h,36)+a|0;f=J[l+40>>2];c:{if(f){m=g>>3;n=i>>3;o=j>>3;p=128>>>(g&7)|0;q=128>>>(i&7)|0;r=128>>>(j&7)|0;c=J[l+48>>2];d=f;while(1){b=J[c>>2];if((K[J[c+8>>2]+o|0]&r?j>>>0>>0:0)|(K[J[c+8>>2]+n|0]&q?b>>>0>i>>>0:0)|(K[m+J[c+8>>2]|0]&p?b>>>0>g>>>0:0))break c;c=c+16|0;d=d-1|0;if(d)continue;break}}m=f+1|0;b=J[l+44>>2];d:{if(m>>>0<=b>>>0){h=J[(P(h,36)+a|0)+48>>2];break d}J[e+ -12>>2]=0;d=b;b=(f&-8)+8|0;c=P(h,36)+a|0;h=Sc(k,16,d,b,J[c+48>>2],e+12|0);J[c+48>>2]=h;d=J[e+12>>2];if(d)break b;J[l+44>>2]=b}b=0;c=((m<<4)+h|0)-16|0;J[c>>2]=0;J[((f<<4)+h|0)+12>>2]=0;J[l+40>>2]=m}if((j|0)>=0){if(b>>>0<=j>>>0){b=J[c+4>>2];J[e+12>>2]=0;d=j+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Sc(k,1,f,b,J[c+8>>2],e+12|0),J[s+8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=j+1}b=J[c+8>>2]+(j>>>3|0)|0;H[b|0]=K[b|0]|128>>>(j&7)}e:{if((i|0)>=0){if(M[c>>2]<=i>>>0){b=J[c+ -4>>2];J[e+12>>2]=0;d=i+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Sc(k,1,f,b,J[c+8>>2],e+12|0),J[s+8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=i+1}b=J[c+8>>2]+(i>>>3|0)|0;H[b|0]=K[b|0]|128>>>(i&7);if((g|0)>=0)break e;break a}if((g|0)<0)break a}if(M[c>>2]<=g>>>0){b=J[c+4>>2];J[e+12>>2]=0;d=g+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=Sc(k,1,f,b,J[c+8>>2],e+12|0),J[s+8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=g+1}a=J[c+8>>2]+(g>>>3| -0)|0;H[a|0]=K[a|0]|128>>>(g&7);break a}J[a+4>>2]=d}bc=e+16|0}function gt(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;o=bc-80|0;bc=o;c=J[a+4>>2];a:{if((c|0)>=10){b=J[a>>2];b=gc[J[J[b>>2]+36>>2]](b)|0;if((b|0)==-1){c=0;break a}c=b+10|0}b=J[a+24>>2];e=wc(o,0,b+1|0);b:{if(J[a+28>>2]<=(b|0))break b;m=e|1;p=c-11|0;while(1){c=J[a+24>>2];if((c|0)>0)Zc(m,e,c);H[e|0]=K[J[a+32>>2]+b|0];c=J[a>>2];c=gc[J[J[c>>2]+36>>2]](c)|0;if((c|0)==-1){c=0;if(J[a+24>>2]<(b|0))break b;break a}c:{d:switch(p| -0){case 0:d=J[a+32>>2];H[d+b|0]=c+K[d+(b-J[a+24>>2]|0)|0];break c;case 1:d=J[a+32>>2]+b|0;H[d|0]=c+K[d|0];break c;case 2:d=J[a+32>>2];f=d+b|0;H[f|0]=c+(K[f|0]+K[d+(b-J[a+24>>2]|0)|0]>>>1|0);break c;case 3:j=J[a+32>>2];d=j+b|0;f=K[d|0];k=J[a+24>>2];j=K[j+(b-k|0)|0];k=K[e+k|0];h=(f+j|0)-k|0;i=h-k|0;g=i>>31;g=(g^i)-g|0;n=h-j|0;i=n>>31;l=h-f|0;h=l>>31;i=(i^n)-i|0;h=(h^l)-h|0;if(!(i>>>0>h>>>0|g>>>0>>0)){H[d|0]=c+j;break c}if(g>>>0>=h>>>0){H[d|0]=c+f;break c}H[d|0]=c+k;break c;default:break d}H[J[a+ -32>>2]+b|0]=c}b=b+1|0;if((b|0)>2])continue;break}}e:{if(J[a+4>>2]!=2)break e;f:{g:{h:{b=J[a+16>>2];switch(b-8|0){case 8:break g;case 0:break h;default:break f}}b=J[a+24>>2];if((b|0)>=J[a+28>>2])break e;while(1){c=J[a+32>>2];e=c+b|0;H[e|0]=K[c+(b-J[a+12>>2]|0)|0]+K[e|0];b=b+1|0;if((b|0)>2])continue;break}break e}b=J[a+24>>2];if((b|0)>=J[a+28>>2])break e;while(1){c=J[a+32>>2];d=c+b|0;e=b+1|0;f=J[a+12>>2]<<1;c=(K[e+c|0]|K[c+(b-f|0)|0]+K[d|0]<<8)+K[c+(e-f|0)|0]|0;H[d|0]=c>>>8;H[e+J[a+ -32>>2]|0]=c;b=b+2|0;if((b|0)>2])continue;break}break e}d=J[a+12>>2];p=wc(e,0,d);g=J[a+8>>2];if((g|0)<=0|(d|0)<=0)break e;n=-1<>2];h=f;e=0;b=0;j=0;k=0;while(1){c=0;if((d|0)>0){while(1){g=J[a+16>>2];if((g|0)>(b|0)){k=K[J[a+32>>2]+h|0]|k<<8;h=h+1|0;b=b+8|0}l=c+p|0;b=b-g|0;m=n&K[l|0]+(k>>>b|0);H[l|0]=m;j=m&255|j<=8){e=e-8|0;H[J[a+32>>2]+f|0]=j>>>e;f=f+1|0;d=J[a+12>>2]}c=c+1|0;if((d|0)>(c|0))continue;break}g=J[a+8>>2]}i=i+1|0;if((i|0)<(g|0))continue;break}if((e| -0)<=0)break e;b=8-e|0;H[J[a+32>>2]+f|0]=((-1<>2]=J[a+24>>2];c=1}bc=o+80|0;return c}function f$a(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;h=bc-32|0;bc=h;i=J[a+16>>2];n=J[J[a+4>>2]+8>>2];g=J[a+12>>2];c=J[a+8>>2];f=L[a>>1];f=f>>>0>=28?28:f;tc(h+4|0,a,f);I[h+4>>1]=f;j=J[n+80>>2];a:{if(c>>>0>=g>>>0)break a;while(1){b:{if(M[a+20>>2]>i>>>0){f=J[a+4>>2];m=f+37|0;o=H[f+36|0];if(K[((o|0)>0?m:c)|0]!=27)break b;f=0;c:{while(1){d=27;k=P(f,5);e=0;d:{while(1){l= -d&255;e:{if((e|0)<(o|0)){if(K[e+m|0]!=(l|0))break d;break e}d=(e-o|0)+c|0;if(d>>>0>=g>>>0){J[b>>2]=11;break d}if(H[d|0]!=(l|0))break d}e=e+1|0;d=K[(k+e|0)+754304|0];if(d)continue;break}if(J[b>>2]==11)break c;d=Qc(k+754304|0);e=J[a+4>>2];j=H[e+36|0];H[e+36|0]=0;c=(d-j|0)+c|0;j=f;break b}f=f+1|0;if((f|0)!=20)continue;break}if(J[b>>2]==11)break c;g=K[J[a+4>>2]+36|0];J[b>>2]=12;c=!g+c|0;break a}if(c>>>0>>0){m=g+(c^-1)|0;e=g-c&3;if(e){d=0;while(1){f=K[c|0];k=J[a+4>>2];l=H[k+36|0];H[k+36|0]=l+1;H[(k+ -l|0)+37|0]=f;c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}if(m>>>0>=3)while(1){f=K[c|0];d=J[a+4>>2];e=H[d+36|0];H[d+36|0]=e+1;H[(e+d|0)+37|0]=f;f=K[c+1|0];d=J[a+4>>2];e=H[d+36|0];H[d+36|0]=e+1;H[(e+d|0)+37|0]=f;f=K[c+2|0];d=J[a+4>>2];e=H[d+36|0];H[d+36|0]=e+1;H[(e+d|0)+37|0]=f;f=K[c+3|0];d=J[a+4>>2];e=H[d+36|0];H[d+36|0]=e+1;H[(e+d|0)+37|0]=f;c=c+4|0;if((g|0)!=(c|0))continue;break}c=g}J[b>>2]=0;break a}J[b>>2]=15;break a}f:{g:{if(!j){if(c>>>0>=g>>>0)break f;while(1){f=K[c|0];if((f|0)==27)break f; -if(M[a+20>>2]<=i>>>0)break g;I[i>>1]=f;i=i+2|0;c=c+1|0;if((g|0)!=(c|0))continue;break}c=g;break f}if(c>>>0>=g>>>0)break f;e=1;d=g-c|0;h:{if((d|0)<2)break h;while(1){if(K[c+e|0]==27){d=e;break h}e=e+1|0;if((e|0)!=(d|0))continue;break}}J[h+20>>2]=i;J[h+12>>2]=c;J[h+16>>2]=c+d;f=J[h+8>>2];c=J[f+24>>2];J[f+24>>2]=J[(j<<2)+n>>2];xK(h+4|0,b);e=J[h+8>>2];J[e+24>>2]=c;i=J[h+20>>2];c=J[h+12>>2];f=J[b>>2];if((f|0)<=0)break f;if((f|0)!=15)break a;b=K[e+65|0];d=b<<24>>24;if((d|0)>0){tc(J[a+4>>2]+116|0,e+116| -0,b);d=K[e+65|0]}H[J[a+4>>2]+65|0]=d;H[e+65|0]=0;break a}J[b>>2]=15}if(c>>>0>>0)continue;break}}J[n+80>>2]=j;J[a+8>>2]=c;J[a+16>>2]=i;bc=h+32|0}function Y6(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-22064|0;bc=d;c=J[b+100>>2];wc(d+15424|4,0,2756);J[d+15424>>2]=c;J[a+7728>>2]=0;J[a+52>>2]=0;f=J[J[(J[J[a>>2]+8>>2]<<2)+247040>>2]+16>>2];c=K[f|0];a:{if(!c)break a;while(1){if((c&255)==32)while(1){c=K[f+1|0];f=f+1|0;if((c|0)==32)continue;break}j=J[J[a+36>>2]>>2];while(1){h=K[f|0];f=f+1|0;if((h|0)== -32)continue;break}if(h<<24>>24<0){c=h>>>0<240;e=h>>>0<224;g=e?1:c?2:3;h=(e?31:c?15:7)&h;e=0;c=f;while(1){h=K[c|0]&63|h<<6;c=c+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}f=f+g|0}g=0;while(1){c=K[f|0];if((c|32)!=32){f=f+1|0;g=c;if(c<<24>>24>=0)continue;g=c>>>0<240;e=c>>>0<224;i=e?1:g?2:3;g=(e?31:g?15:7)&c;e=0;c=f;while(1){g=K[c|0]&63|g<<6;c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}f=f+i|0;continue}break}b:{if(!g){c=rh(j,h);if(c)break b;c=K[f|0]}if(c&255)continue;break a}break}if(vo(b,c,1))break a; -c=J[b+84>>2];if(I[c+110>>1]<=0)break a;f=d+16|0;wc(f,0,15396);g=J[a+40>>2];J[d+36>>2]=0;J[d+44>>2]=0;J[d+24>>2]=65536;J[d+28>>2]=65536;J[d+56>>2]=g;J[d+20>>2]=b;J[d+18164>>2]=0;J[d+18172>>2]=f;b=d+15424|0;if(vx(b,c+108|0))break a;if(Ar(b,0))break a;e=0;ux(b,0,0,0);b=J[d+15468>>2];if((b|0)>0){c=J[d+15476>>2];f=c+P(b,44)|0;while(1){b=J[c+20>>2];if(!(!b|b>>>0<=c>>>0|(J[b+20>>2]!=(c|0)|e>>>0>15))){g=I[c+2>>1]-I[b+2>>1]|0;b=g>>31;J[(P(e,12)+a|0)+56>>2]=(b^g)-b;e=e+1|0}c=c+44|0;if(f>>>0>c>>>0)continue; -break}}J[d+12>>2]=e;jD(d+12|0,a+56|0,M[d+56>>2]/100|0);J[a+52>>2]=J[d+12>>2];b=d+15424|0;if(Ar(b,1))break a;e=0;ux(b,0,0,1);b=J[d+16816>>2];if((b|0)>0){c=J[d+16824>>2];f=c+P(b,44)|0;while(1){b=J[c+20>>2];if(!(!b|b>>>0<=c>>>0|(J[b+20>>2]!=(c|0)|e>>>0>15))){g=I[c+2>>1]-I[b+2>>1]|0;b=g>>31;J[(P(e,12)+a|0)+7732>>2]=(b^g)-b;e=e+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[d+12>>2]=e;jD(d+12|0,a+7732|0,M[d+56>>2]/100|0);J[a+7728>>2]=J[d+12>>2]}if(J[a+52>>2])b=J[a+56>>2];else b=(P(J[a+40>>2],50)|0)/2048| -0;H[a+256|0]=0;J[a+252>>2]=b;J[a+248>>2]=(b|0)/5;if(J[a+7728>>2])b=J[a+7732>>2];else b=(P(J[a+40>>2],50)|0)/2048|0;H[a+7932|0]=0;J[a+7928>>2]=b;J[a+7924>>2]=(b|0)/5;oM(d+15424|0);bc=d+22064|0}function UMa(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;a=wc(a,0,256);d=J[b>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a>>2]=(g+d<<3)-3072;J[a+4>>2]=P(f-e|0,10033)+512>>10;J[a+8>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+4>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a+32>>2]=(g+d<< -3)-3072;J[a+36>>2]=P(f-e|0,10033)+512>>10;J[a+40>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+8>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a+64>>2]=(g+d<<3)-3072;J[a+68>>2]=P(f-e|0,10033)+512>>10;J[a+72>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+12>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;h=K[d+1|0];d=(g+h<<3)-3072|0;J[a+96>>2]=d;J[a+100>>2]=P(f-e|0,10033)+512>>10;J[a+104>>2]=P(g-(h<<1)|0,5793)+512>>10;e=J[b+16>>2]+c|0;f=K[e+2|0];g=K[e|0];h=f+g|0;i=K[e+1|0];e=(h+i<<3)-3072|0;J[a+128>>2]=e;f=P(g-f|0,10033)+512>> -10;J[a+132>>2]=f;J[a+136>>2]=P(h-(i<<1)|0,5793)+512>>10;b=J[b+20>>2]+c|0;g=K[b+2|0];h=K[b|0];c=g+h|0;b=K[b+1|0];J[a+168>>2]=P(c-(b<<1)|0,5793)+512>>10;c=(b+c<<3)-3072|0;i=J[a>>2];b=c+i|0;k=J[a+64>>2];j=d+k|0;J[a+64>>2]=P(b-j|0,17837)+16384>>15;b=b+j|0;j=J[a+32>>2];l=j+e|0;J[a+128>>2]=P(b-(l<<1)|0,10298)+16384>>15;J[a>>2]=P(b+l|0,14564)+16384>>15;b=k-d|0;c=i-c|0;d=P(b+c|0,5331)+16384|0;e=j-e|0;J[a+160>>2]=d+P(b-e|0,14564)>>15;J[a+96>>2]=P(c-(b+e|0)|0,14564)+16384>>15;J[a+32>>2]=d+P(c+e|0,14564)>>15; -c=P(h-g|0,10033)+512>>10;d=J[a+4>>2];b=c+d|0;e=J[a+100>>2];g=J[a+68>>2];h=e+g|0;J[a+68>>2]=P(b-h|0,17837)+16384>>15;b=b+h|0;h=J[a+36>>2];i=h+f|0;J[a+132>>2]=P(b-(i<<1)|0,10298)+16384>>15;J[a+4>>2]=P(b+i|0,14564)+16384>>15;b=g-e|0;c=d-c|0;d=P(b+c|0,5331)+16384|0;e=h-f|0;J[a+36>>2]=d+P(e+c|0,14564)>>15;J[a+164>>2]=d+P(b-e|0,14564)>>15;J[a+100>>2]=P(c-(b+e|0)|0,14564)+16384>>15;b=J[a+136>>2];c=J[a+40>>2];e=J[a+168>>2];f=J[a+8>>2];d=e+f|0;g=J[a+104>>2];h=J[a+72>>2];i=g+h|0;J[a+72>>2]=P(d-i|0,17837)+16384>> -15;d=d+i|0;i=b+c|0;J[a+136>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+8>>2]=P(d+i|0,14564)+16384>>15;d=h-g|0;e=f-e|0;f=P(d+e|0,5331)+16384|0;b=c-b|0;J[a+168>>2]=f+P(d-b|0,14564)>>15;J[a+104>>2]=P(e-(b+d|0)|0,14564)+16384>>15;J[a+40>>2]=f+P(b+e|0,14564)>>15}function $1(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;i=a+8|0;a:{e=J[a+12>>2];f=e-J[a+8>>2]>>2;if((f|0)>0){while(1){j=h<<2;e=J[j+J[i>>2]>>2];g=K[e+11|0];c=g<<24>>24<0;k=K[b+11|0];d=k<<24>>24<0;b:{g=c?J[e+4>>2]:g;if((g|0)!=((d?J[b+4>>2]: -k)|0))break b;if(g){if(gd(c?J[e>>2]:e,d?J[b>>2]:b,g))break b;e=J[j+J[i>>2]>>2]}c=J[e+40>>2];if((c|0)!=J[b+40>>2])break b;d=J[e+44>>2];if((d|0)!=J[b+44>>2])break b;c:{if(c){if(d){c=e+28|0;a=J[c+4>>2];d=K[c+11|0];g=d<<24>>24;f=(g|0)<0;d:{if(((f?a:d)|0)==11){a=1;if(!gd(f?J[c>>2]:c,413508,11))break d;d=K[c+11|0];g=d;a=J[c+4>>2]}f=g<<24>>24;if((((f|0)<0?a:d)|0)==12){a=1;if(!gd((f|0)<0?J[c>>2]:c,413556,12))break d;d=K[c+11|0];g=d;a=J[c+4>>2]}f=g<<24>>24;if((((f|0)<0?a:d)|0)==10){a=1;if(!gd((f|0)<0?J[c>> -2]:c,413608,10))break d;d=K[c+11|0];g=d;a=J[c+4>>2]}f=a;a=g<<24>>24;if((((a|0)<0?f:d)|0)==11)a=gd((a|0)<0?J[c>>2]:c,413652,11);else a=1;a=!a}if(!a)break a;break c}c=K[e+39|0];a=c<<24>>24<0;if(((a?J[e+32>>2]:c)|0)!=4)break a;if(gd(a?J[e+28>>2]:e+28|0,413700,4))break a;break c}c=e+28|0;if(d){d=K[e+39|0];g=d<<24>>24;f=(g|0)<0;a=J[e+32>>2];if(((f?a:d)|0)==6){if(!gd(f?J[c>>2]:c,413720,6))break c;d=K[e+39|0];g=d;a=J[e+32>>2]}f=a;a=g<<24>>24;if((((a|0)<0?f:d)|0)!=7)break a;if(!gd((a|0)<0?J[c>>2]:c,413748, -7))break c;break a}d=K[c+11|0];g=d<<24>>24;a=J[c+4>>2];f=(g|0)<0;e:{if(((f?a:d)|0)==7){a=1;if(!gd(f?J[c>>2]:c,413780,7))break e;d=K[c+11|0];g=d;f=J[c+4>>2]}else f=a;a=g<<24>>24;if((((a|0)<0?f:d)|0)==5)a=gd((a|0)<0?J[c>>2]:c,413812,5);else a=1;a=!a}if(!a)break a}qc(MK(b));return}h=h+1|0;if((f|0)!=(h|0))continue;break}e=J[a+12>>2]}if(J[a+16>>2]!=(e|0)){J[e>>2]=b;J[a+12>>2]=e+4;return}f:{g=J[i>>2];c=e-g|0;h=c>>2;d=h+1|0;if(d>>>0<1073741824){f=c>>1;d=c>>>0>=2147483644?1073741823:d>>>0>>0?f:d;if(d){if(d>>> -0>=1073741824)break f;c=rc(d<<2)}else c=0;h=c+(h<<2)|0;J[h>>2]=b;b=h+4|0;if((e|0)!=(g|0)){while(1){h=h-4|0;e=e-4|0;J[h>>2]=J[e>>2];if((e|0)!=(g|0))continue;break}e=J[i>>2]}J[a+16>>2]=c+(d<<2);J[a+12>>2]=b;J[a+8>>2]=h;if(e)qc(e);return}ph(i);B()}Sd();B()}J[J[i>>2]+(h<<2)>>2]=b;qc(MK(e))}function fp(a,b,c,d){var e=0,f=0;if(!(!a|!b)){f=J[b+56>>2];a:{if(!f|!(J[b+184>>2]&c&16384))break a;if((d|0)==-1){if(J[b+48>>2]>0){while(1){rd(a,J[(J[b+56>>2]+P(e,28)|0)+4>>2]);e=e+1|0;if((e|0)>2])continue;break}f= -J[b+56>>2]}rd(a,f);J[b+48>>2]=0;J[b+56>>2]=0;break a}e=f;f=P(d,28);rd(a,J[(e+f|0)+4>>2]);J[(f+J[b+56>>2]|0)+4>>2]=0}e=J[b+184>>2];if(e&c&8192){J[b+8>>2]=J[b+8>>2]&-17;rd(a,J[b+76>>2]);I[b+22>>1]=0;J[b+76>>2]=0;e=J[b+184>>2]}if(c&e&256){rd(a,J[b+224>>2]);rd(a,J[b+228>>2]);J[b+224>>2]=0;J[b+228>>2]=0;J[b+8>>2]=J[b+8>>2]&-16385;e=J[b+184>>2]}if(c&e&128){rd(a,J[b+160>>2]);rd(a,J[b+172>>2]);e=0;J[b+172>>2]=0;J[b+160>>2]=0;f=J[b+176>>2];if(f){if(K[b+181|0]){while(1){rd(a,J[J[b+176>>2]+(e<<2)>>2]);e=e+1| -0;if(e>>>0>2]}rd(a,f);J[b+176>>2]=0}J[b+8>>2]=J[b+8>>2]&-1025;e=J[b+184>>2]}if(e&c&16){rd(a,J[b+196>>2]);rd(a,J[b+200>>2]);J[b+196>>2]=0;J[b+200>>2]=0;J[b+8>>2]=J[b+8>>2]&-4097}f=J[b+212>>2];b:{if(!f|!(J[b+184>>2]&c&32))break b;if((d|0)==-1){e=0;if(J[b+216>>2]>0){while(1){f=e<<4;rd(a,J[f+J[b+212>>2]>>2]);rd(a,J[(f+J[b+212>>2]|0)+8>>2]);e=e+1|0;if((e|0)>2])continue;break}f=J[b+212>>2]}rd(a,f);J[b+212>>2]=0;J[b+216>>2]=0;J[b+8>>2]=J[b+8>>2]&-8193;break b}e= -f;f=d<<4;rd(a,J[e+f>>2]);rd(a,J[(f+J[b+212>>2]|0)+8>>2]);f=f+J[b+212>>2]|0;J[f+8>>2]=0;J[f>>2]=0}f=J[b+188>>2];c:{if(!f|!(J[b+184>>2]&c&512))break c;if((d|0)==-1){e=0;if(J[b+192>>2]>0){while(1){rd(a,J[(J[b+188>>2]+P(e,20)|0)+8>>2]);e=e+1|0;if((e|0)>2])continue;break}f=J[b+188>>2]}rd(a,f);J[b+188>>2]=0;J[b+192>>2]=0;break c}e=f;f=P(d,20);rd(a,J[(e+f|0)+8>>2]);J[(f+J[b+188>>2]|0)+8>>2]=0}e=J[b+184>>2];if(e&c&8){rd(a,J[b+124>>2]);J[b+124>>2]=0;J[b+8>>2]=J[b+8>>2]&-65;e=J[b+184>>2]}if(c&e&4096){rd(a, -J[b+16>>2]);J[b+16>>2]=0;I[b+20>>1]=0;J[b+8>>2]=J[b+8>>2]&-9;e=J[b+184>>2]}if(c&e&64){f=J[b+232>>2];if(f){if(J[b+4>>2]){e=0;while(1){rd(a,J[J[b+232>>2]+(e<<2)>>2]);e=e+1|0;if(e>>>0>2])continue;break}f=J[b+232>>2]}rd(a,f);J[b+232>>2]=0;e=J[b+184>>2]}J[b+8>>2]=J[b+8>>2]&-32769}J[b+184>>2]=(((d|0)==-1?c:c&-16929)^-1)&e}}function SXa(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;f=bc-16|0;bc=f;j=K[b+11|0];k=J[b+4>>2];a:{if(H[a+11|0]>=0){J[f+8>>2]=J[a+8>>2];c=J[a+4>>2];J[f>>2]=J[a>> -2];J[f+4>>2]=c;break a}Re(f,J[a>>2],J[a+4>>2])}e=J[f>>2];c=K[f+11|0];g=c<<24>>24;h=(g|0)<0;d=J[f+4>>2];i=h?d:c;b:{if(i){c=h?e:f;e=c+(i<<2)|0;while(1){d=J[c>>2];J[695492]=0;d=ks(d);g=J[695492];J[695492]=0;if((g|0)==1)break b;J[c>>2]=d;c=c+4|0;if((e|0)!=(c|0))continue;break}d=J[f+4>>2];c=K[f+11|0];g=c;e=J[f>>2]}j=j<<24>>24<0?k:j;h=g<<24>>24<0;d=h?d:c;c=K[b+11|0];g=c<<24>>24<0;c=g?J[b+4>>2]:c;g=g?J[b>>2]:b;h=h?e:f;k=0;e=0;c:{while(1){d:{e:{f:{g:{h:{i:{j:{if(c){i=(d<<2)+h|0;d=(e<<2)+h|0;e=i-d>>2;if((c| -0)>(e|0))break d;l=J[g>>2];while(1){e=(e-c|0)+1|0;if(!e)break d;e=og(d,l,e);if(!e)break d;if(gd(e,g,c)){d=e+4|0;e=i-d>>2;if((c|0)<=(e|0))continue;break d}break}if((e|0)==(i|0))break d;e=e-h>>2}k:{l:switch(e+1|0){default:J[695492]=0;c=e-1|0;d=aa(3191,f|0,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;m:{if(J[d>>2]!=45){J[695492]=0;d=aa(3191,f|0,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=0;if(J[d>>2]!=44)break m}e=c;g=1}c=K[a+11|0];d=c<<24>>24<0;if((d?J[a+4>>2]:c)>>>0>>0)break c;c= -g+j|0;break k;case 1:break l;case 0:break d}e=0;d=H[a+11|0]<0;c=j}if((c|0)==-1){if(!d)break j;J[a+4>>2]=e;c=J[a>>2];break i}J[695492]=0;ca(2805,a|0,e|0,c|0);d=J[695492];J[695492]=0;if((d|0)!=1)break h;break b}H[a+11|0]=e;c=a}d=e<<2;J[c+d>>2]=0;g=K[f+11|0];c=g<<24>>24;if(((c|0)<0?J[f+4>>2]:g)>>>0>=e>>>0)break g;a=f;break c}d=K[f+11|0];if((d<<24>>24<0?J[f+4>>2]:d)>>>0>=e>>>0)break f;a=f;break c}n:{if((c|0)<0){J[f+4>>2]=e;c=J[f>>2];break n}H[f+11|0]=e;c=f}J[c+d>>2]=0;break e}J[695492]=0;ca(2805,f|0, -e|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break b}c=K[b+11|0];d=c<<24>>24<0;c=d?J[b+4>>2]:c;g=d?J[b>>2]:b;d=K[f+11|0];i=d<<24>>24<0;h=i?J[f>>2]:f;k=1;d=i?J[f+4>>2]:d;if(d>>>0>=e>>>0)continue}break}if(H[f+11|0]<0)qc(J[f>>2]);bc=f+16|0;return k|0}J[695492]=0;_(2804,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)B()}a=Z()|0;if(H[f+11|0]<0)qc(J[f>>2]);ba(a|0);B()}function Ikb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(a){g=J[a+100>>2];c=J[a+540>>2];if(c)gc[J[c+12>>2]](a);c=J[a+712>>2];if(c){d=J[c+8>>2];b=J[c+ -108>>2];if(b){e=J[b+28>>2];f=c+140|0;if(J[f>>2])Sf(b,f);b=J[c+136>>2];if(b)gc[J[e+8>>2]](e,b);J[c+140>>2]=0;J[c+132>>2]=0;J[c+136>>2]=0;J[c+124>>2]=0;J[c+128>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+108>>2]=0;J[c+112>>2]=0}b=J[c+1240>>2];if(b){e=J[b+28>>2];f=c+1272|0;if(J[f>>2])Sf(b,f);b=J[c+1268>>2];if(b)gc[J[e+8>>2]](e,b);b=c+1240|0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}b=J[c+36>>2];if(b){e=J[b+28>>2];f=c+68|0;if(J[f>>2])Sf(b, -f);b=J[c- -64>>2];if(b)gc[J[e+8>>2]](e,b);J[c+68>>2]=0;J[c+60>>2]=0;J[c+64>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0}b=J[c+1204>>2];if(b){e=J[b+28>>2];f=c+1236|0;if(J[f>>2])Sf(b,f);b=J[c+1232>>2];if(b)gc[J[e+8>>2]](e,b);b=c+1204|0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}if(J[c+2024>>2]){b=0;while(1){x6(d,J[(c+(b<<2)|0)+2028>>2]);b=b+1|0;if(b>>>0>2])continue;break}b=J[c+2028>> -2];if(b)gc[J[d+8>>2]](d,b);J[c+2028>>2]=0}J[c+144>>2]=0;J[c+148>>2]=0;J[c+152>>2]=0;b=J[J[c+4>>2]+28>>2];e=c+1192|0;f=J[e>>2];if(f)gc[J[b+8>>2]](b,f);J[e>>2]=0;J[e+4>>2]=0;e=c+1188|0;f=J[e>>2];if(f)gc[J[b+8>>2]](b,f);J[c+1180>>2]=0;J[c+1184>>2]=0;J[e>>2]=0;w6(c+3112|0,d);x6(d,c+1372|0);b=c+3060|0;if(J[b>>2])Sf(J[c+4>>2],b);H[c+3052|0]=0;J[c+3056>>2]=0;J[c+3064>>2]=0;b=J[c+3092>>2];if(b)gc[J[d+8>>2]](d,b);J[c+3092>>2]=0;b=J[c+1348>>2];if(b)gc[J[d+8>>2]](d,b);J[c+1348>>2]=0;b=J[c+1352>>2];if(b)gc[J[d+ -8>>2]](d,b);J[c+1352>>2]=0;b=J[c+1360>>2];if(b)gc[J[d+8>>2]](d,b);J[c+1360>>2]=0;b=J[c+1364>>2];if(b)gc[J[d+8>>2]](d,b);J[c+1364>>2]=0;b=J[c+3108>>2];if(b){gc[b|0](J[c+3104>>2]);b=J[c+3104>>2];if(b)gc[J[d+8>>2]](d,b);J[c+3104>>2]=0}b=J[c+3132>>2];if(b)gc[J[d+8>>2]](d,b);J[c+3132>>2]=0;c=J[a+712>>2];if(c)gc[J[g+8>>2]](g,c);J[a+712>>2]=0}c=J[a+548>>2];if(c)gc[J[c+44>>2]](a);J[a+736>>2]=0}}function xY(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=rc(1552);f=J[a+8>>2];J[695492]=0;d=ga(3469,e|0,f|0,d|0)| -0;f=J[695492];J[695492]=0;if((f|0)!=1)a:{J[a+24>>2]=d;b:{c:{if(!J[d+28>>2]){xc(1,-1,778424,0);b=J[a+24>>2];J[a+44>>2]=J[b+32>>2];qc(yA(b));break c}f=bc-16|0;bc=f;J[f>>2]=13;Bc(J[J[a+24>>2]+48>>2],785263,f,0);h=1;d:{if(J[f>>2]!=7)break d;h=0;e=0;d=bc-32|0;bc=d;J[d+16>>2]=13;Bc(J[f+8>>2],774603,d+16|0,0);e:{if(J[d+16>>2]==4){g=J[d+24>>2];if(!Ec(g,776046)){g=rc(92);J[695492]=0;e=ga(3472,g|0,a|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1)break e;a=Z()|0;qc(g);ba(a|0);B()}J[d>>2]=g;xc(1,-1,776786,d);break e}xc(1, --1,777897,0)}uc(d+16|0);bc=d+32|0;d=e;if(!d)break d;h=1;f:{if(gc[J[J[d>>2]+8>>2]](d)|0)break f;e=0;if(b|c)e=gc[J[J[d>>2]+12>>2]](d,b,c)|0;c=gc[J[J[d>>2]+24>>2]](d,e)|0;if(e)gc[J[J[d>>2]+20>>2]](d,e);g:{if(c)break g;c=0;b=gc[J[J[d>>2]+16>>2]](d)|0;h:{if(!b)break h;c=gc[J[J[d>>2]+24>>2]](d,b)|0;gc[J[J[d>>2]+20>>2]](d,b);i:{if(c)break i;c=0;b=gc[J[J[d>>2]+16>>2]](d)|0;if(!b)break h;c=gc[J[J[d>>2]+24>>2]](d,b)|0;gc[J[J[d>>2]+20>>2]](d,b);if(c)break i;c=0;b=gc[J[J[d>>2]+16>>2]](d)|0;if(!b)break h;c=gc[J[J[d>> -2]+24>>2]](d,b)|0;gc[J[J[d>>2]+20>>2]](d,b)}if(c)break g}xc(3,-1,779678,0)}if(!c){h=0;break f}b=J[a+24>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;g=gc[J[J[d>>2]+32>>2]](d)|0;i=gc[J[J[d>>2]+36>>2]](d)|0;c=gc[J[J[d>>2]+40>>2]](d)|0;j=gc[J[J[d>>2]+44>>2]](d)|0;k=gc[J[J[d>>2]+48>>2]](d)|0;J[b+1120>>2]=g;J[b+1116>>2]=e;J[b+1112>>2]=1;j:{k:{if((c|0)>=33){J[b+1156>>2]=32;break k}J[b+1156>>2]=c;if((c|0)<=0)break j}e=0;while(1){H[(b+e|0)+1124|0]=K[e+i|0];e=e+1|0;if((e|0)>2])continue;break}}J[b+1164>>2]=k;J[b+ -1160>>2]=j}gc[J[J[d>>2]+4>>2]](d)}uc(f);bc=f+16|0;if(!h){J[a+44>>2]=4;b=J[a+24>>2];if(!b)break c;qc(yA(b));break c}e=rc(184);J[695492]=0;b=aa(3470,e|0,a|0)|0;c=J[695492];J[695492]=0;d=1;if((c|0)==1)break a;J[a+28>>2]=b;if(J[b+176>>2])break b;xc(1,-1,779500,0);J[a+44>>2]=2;b=J[a+28>>2];if(b)qc($Z(b));J[a+28>>2]=0;b=J[a+24>>2];if(!b)break c;qc(yA(b))}d=0;J[a+24>>2]=0}return d}a=Z()|0;qc(e);ba(a|0);B()}function gx(a,b,c,d){var e=0,f=0,g=0,h=0;f=J[a+24>>2];g=J[f+4>>2];e=J[f>>2];J[a+228>>2]=d;J[a+224>> -2]=c;J[a+220>>2]=b;a:{if(!g){if(!(gc[J[f+12>>2]](a)|0))break a;e=J[f>>2];g=J[f+4>>2]}h=K[e|0];d=g-1|0;if(d)b=e+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a;d=J[f+4>>2];b=J[f>>2]}g=K[b|0];e=d-1|0;if(e)b=b+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}J[a+212>>2]=K[b|0];e=e-1|0;if(e)b=b+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}d=K[b|0]<<8;J[a+32>>2]=d;e=e-1|0;if(e)b=b+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a;d=J[a+32>>2];e=J[f+4>>2];b=J[f>>2]}J[a+32>>2]=K[b| -0]+d;e=e-1|0;if(e)b=b+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}d=K[b|0]<<8;J[a+28>>2]=d;e=e-1|0;if(e)b=b+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a;d=J[a+28>>2];e=J[f+4>>2];b=J[f>>2]}J[a+28>>2]=K[b|0]+d;e=e-1|0;if(e)b=b+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}J[a+36>>2]=K[b|0];d=J[a>>2];J[d+24>>2]=J[a+436>>2];J[d+28>>2]=J[a+28>>2];J[d+32>>2]=J[a+32>>2];c=J[a+36>>2];J[d+20>>2]=102;J[d+36>>2]=c;gc[J[d+4>>2]](a,1);if(J[J[a+460>>2]+16>>2]){c=J[a>>2];J[c+ -20>>2]=60;gc[J[c>>2]](a)}d=(h<<8|g)-8|0;b:{if(!(!J[a+32>>2]|!J[a+28>>2])){c=J[a+36>>2];if((c|0)>0)break b}c=J[a>>2];J[c+20>>2]=33;gc[J[c>>2]](a);c=J[a+36>>2]}if((d|0)!=(P(c,3)|0)){c=J[a>>2];J[c+20>>2]=12;gc[J[c>>2]](a);c=J[a+36>>2]}d=b+1|0;e=e-1|0;g=J[a+216>>2];if(!g){g=gc[J[J[a+4>>2]>>2]](a,1,P(c,88))|0;J[a+216>>2]=g;c=J[a+36>>2]}if((c|0)>0){c=0;while(1){J[g+4>>2]=c;if(!e){if(!(gc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];d=J[f>>2]}J[g>>2]=K[d|0];b=e-1|0;if(b)h=d+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a; -b=J[f+4>>2];h=J[f>>2]}d=K[h|0];J[g+12>>2]=d&15;J[g+8>>2]=d>>>4;b=b-1|0;if(b)h=h+1|0;else{if(!(gc[J[f+12>>2]](a)|0))break a;b=J[f+4>>2];h=J[f>>2]}J[g+16>>2]=K[h|0];e=J[a>>2];J[e+24>>2]=J[g>>2];J[e+28>>2]=J[g+8>>2];J[e+32>>2]=J[g+12>>2];d=J[g+16>>2];J[e+20>>2]=103;J[e+36>>2]=d;gc[J[e+4>>2]](a,1);d=h+1|0;e=b-1|0;g=g+88|0;c=c+1|0;if((c|0)>2])continue;break}}J[J[a+460>>2]+16>>2]=1;J[f+4>>2]=e;J[f>>2]=d;return 1}return 0}function gza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-48|0;bc=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(K[a+ -60|0]){if(!J[689882]){b=Kc(d+8|0,2395897,2373496,1848,2401907,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}f=d+8|0;On(f);e=J[J[a>>2]+60>>2];J[695492]=0;ca(e|0,a|0,f|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)j:{a=J[d+8>>2];e=J[J[a>>2]+24>>2];J[695492]=0;_(e|0,a|0);e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[J[a>>2]+20>>2];J[695492]=0;ha(e|0,a|0,0,0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break j;J[695492]=0;ca(J[689882],f|0,b|0,c|0);a=J[695492];J[695492]= -0;if((a|0)==1)break j;a=J[d+8>>2];J[d+8>>2]=0;if(!a)break i;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break i;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i}break a}a=Z()|0;vc(d+8|0);break c}if(c){mV(b);c=d+8|0;Vz(c,b,2396352);b=J[J[a>>2]+60>>2];J[695492]=0;ca(b|0,a|0,c|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break d;a=J[d+8>>2];J[d+8>>2]=0;if(!a)break i;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break i; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break i}break a}c=d+8|0;pz(c,b);J[695492]=0;da(5113,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;da(5294,d+44|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;ca(5295,J[d+44>>2],c|0,d|0);a=J[695492];J[695492]=0;k:{if((a|0)!=1){a=J[d+44>>2];J[d+44>>2]=0;if(!a)break k;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break k;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a| -0)!=1)break k}break a}a=Z()|0;vc(d+44|0);break f}sc(d);J[d+32>>2]=2381060;J[d+8>>2]=2381028;a=J[d+36>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+36>>2]=0}J[d+24>>2]=2381060;a=J[d+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[d+28>>2]=0}sc(d+16|0)}bc=d+48|0;return}a=Z()|0;break e}a=Z()|0}sc(d)}ud(d+8|0);break c}a=Z()|0;vc(d+8|0)}ba(a|0)}B()}ea(0)|0;yc();B()}function T1(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=a+72|0;j=a+92|0;d=J[a+124>>2]; -h=2;a:{b:{c:{while(1){d:{e:{f:{g:{h:{i:{j:{k:switch(d|0){case 1:d=J[k>>2];break j;case 10:break a;case 2:break i;case 0:break k;case 9:break b;case 8:break c;case 7:break d;case 6:break e;case 5:break f;case 4:break g;case 3:break h;default:continue}Nw(k,J[a+120>>2]!=0);jC(k,O[a+112>>3],J[a+120>>2]);d=J[a+72>>2];if(d>>>0<=2)J[a+120>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+124>>2]=1}h=d;d=J[a+120>>2];if(h>>>0<(d?3:2)>>>0)break a;J[a+132>>2]=0;J[a+136>>2]=0;d=d?4:2;J[a+124>>2]=d;h=1;continue}d=J[J[a+84>> -2]>>2];S1(a,j,d,d+24|0,O[d+16>>3]);J[a+132>>2]=1;J[a+136>>2]=0;J[a+124>>2]=7;J[a+128>>2]=4;d=7;continue}e=J[a+72>>2];d=e-1|0;f=J[a+84>>2];e=e-2|0;e=J[f+(e>>>4&268435452)>>2]+P(e&63,24)|0;S1(a,j,J[f+(d>>>4&268435452)>>2]+P(d&63,24)|0,e,O[e+16>>3]);J[a+136>>2]=0;J[a+124>>2]=7;J[a+128>>2]=6;d=7;continue}e=J[a+72>>2];d=J[a+132>>2];l:{if(J[a+120>>2]){if(d>>>0>>0)break l;J[a+124>>2]=8;J[a+128>>2]=5;d=8;continue}if(d>>>0>>0)break l;d=3;J[a+124>>2]=3;continue}f=J[a+84>>2];g=((d+e|0)-1>>>0)%(e>>>0)| -0;g=J[f+(g>>>4&268435452)>>2]+P(g&63,24)|0;i=J[f+(d>>>4&268435452)>>2]+P(d&63,24)|0;d=(d+1>>>0)%(e>>>0)|0;R1(a,j,g,i,J[f+(d>>>4&268435452)>>2]+P(d&63,24)|0,O[g+16>>3],O[i+16>>3]);J[a+136>>2]=0;e=J[a+124>>2];d=7;J[a+124>>2]=7;J[a+128>>2]=e;J[a+132>>2]=J[a+132>>2]+1;continue}J[a+124>>2]=6;h=1}d=J[a+132>>2];if(d>>>0<=!J[a+120>>2]>>>0){J[a+124>>2]=9;J[a+128>>2]=10;d=9;continue}e=d-1|0;J[a+132>>2]=e;f=J[a+84>>2];e=J[f+(e>>>4&268435452)>>2]+P(e&63,24)|0;g=J[a+72>>2];i=(d>>>0)%(g>>>0)|0;d=((d+g|0)-2>>>0)% -(g>>>0)|0;d=J[f+(d>>>4&268435452)>>2]+P(d&63,24)|0;R1(a,j,J[f+(i>>>4&268435452)>>2]+P(i&63,24)|0,e,d,O[e+16>>3],O[d+16>>3]);J[a+136>>2]=0;J[a+128>>2]=J[a+124>>2];d=7;J[a+124>>2]=7;continue}d=J[a+136>>2];if(d>>>0>=M[a+92>>2]){d=J[a+128>>2];J[a+124>>2]=d;continue}break}J[a+136>>2]=d+1;a=J[J[a+104>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[a>>3];O[c>>3]=O[a+8>>3];return h}J[a+124>>2]=J[a+128>>2];return 95}J[a+124>>2]=J[a+128>>2];l=111}return l}function JA(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;d=bc+-64|0;bc=d;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;a:{b:{c:{d:{e:{f:{g:{h:switch(J[b>>2]-5|0){case 0:break a;case 4:break h;default:break g}e=J[a+4>>2];i=J[e+8>>2];if((i|0)<=0)break g;f=J[b+8>>2];h=J[b+12>>2];j=J[e>>2];e=0;while(1){g=J[j+(e<<2)>>2];if((f|0)==J[g>>2]&(h|0)==J[g+4>>2])break f;e=e+1|0;if((i|0)!=(e|0))continue;break}}hf(b,J[a>>2],d+48|0,0);i:{if(J[d+48>>2]==7)if(IZ(J[d+56>>2],784964))break i;uc(d+48|0);break a}b=0;f=d+32|0;if(J[Bc(J[d+56>>2],785822, -f,0)>>2]==6){n=c,o=IA(a,f,0),J[n>>2]=o;break c}f=d+32|0;uc(f);j=2;i=1;j:{if(J[Bc(J[d+56>>2],786441,f,0)>>2]!=4){g=0;break j}if(J[d+32>>2]!=4){g=0;break j}f=J[d+40>>2];if(!Ec(f,787244)){g=0;b=1;i=0;j=1;break j}if(!Ec(f,788068)){g=0;break j}k:{if(!Ec(f,789E3)){j=3;g=0;break k}g=0;if(Ec(f,789874))break j;j=4;g=1}i=0}f=d+32|0;uc(f);Ce(J[d+56>>2],774598,f);l:{if(J[d+32>>2]!=9)break l;e=J[a+4>>2];l=J[e+8>>2];if((l|0)<=0)break l;f=J[d+40>>2];h=J[d+44>>2];m=J[e>>2];e=0;while(1){k=J[m+(e<<2)>>2];if((f|0)== -J[k>>2]&(h|0)==J[k+4>>2])break e;e=e+1|0;if((l|0)!=(e|0))continue;break}}J[c>>2]=b|g;k=0;if(J[hf(d+32|0,J[a>>2],d+16|0,0)>>2]!=6)break d;m:{e=J[d+24>>2];if(J[e+12>>2]>0){j=j-1|0;g=0;i=0;while(1){jg(e,g,d);n:{if(J[d>>2]!=9)break n;h=J[a+4>>2];l=J[h+8>>2];if((l|0)<=0)break n;b=J[d+8>>2];f=J[d+12>>2];m=J[h>>2];e=0;while(1){h=J[m+(e<<2)>>2];if(!((b|0)==J[h>>2]&(f|0)==J[h+4>>2])){e=e+1|0;if((l|0)!=(e|0))continue;break n}break}i=1;o:{p:switch(j|0){case 0:b=0;if(!J[c>>2])break o;b=J[h+20>>2]!=0;break o; -case 1:b=1;if(J[c>>2])break o;b=J[h+20>>2]!=0;break o;case 2:b=1;if(J[c>>2])break o;b=!J[h+20>>2];break o;case 3:break p;default:break n}b=0;if(!J[c>>2])break o;b=!J[h+20>>2]}J[c>>2]=b}uc(d);g=g+1|0;e=J[d+24>>2];if((g|0)>2])continue;break}if(i)break m}uc(d+16|0);uc(d+32|0);uc(d+48|0);break a}uc(d+16|0);break c}J[c>>2]=J[g+20>>2];break b}a=J[k+20>>2];J[c>>2]=b?a:i?a:!a;break c}uc(d+16|0);uc(d+32|0);uc(d+48|0);break a}uc(d+32|0);uc(d+48|0)}k=1}bc=d- -64|0;return k}function pvb(a){a=a|0;var b= -0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=gc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+P(b,3)|0)+P(J[a+672>>2],3)|0;c=b;b=J[a+656>>2];f=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];g=K[a+649|0];e=J[a+644>>2];b:{if(!K[a+648|0]){b=e+(b<<2)|0;if(!g)break b;if((c|0)<=(f|0))break a;while(1){H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0];b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;f=c+f|0;if((f|0)>2])continue;break}break a}b= -e+(b<<3)|0;if(g){if((c|0)<=(f|0))break a;while(1){H[d|0]=K[b|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b+4|0];b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;f=c+f|0;if((f|0)>2])continue;break}break a}if((c|0)<=(f|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;if((c|0)==65535){H[d|0]=K[b|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b+4|0];break c}g=K[b|0]|K[b+1|0]<<8;e=K[b+2|0]|K[b+3|0]<<8;h=K[b+4|0]|K[b+5|0]<<8;i=P(c,(h<<8|h>>>8)&65535);h=K[d+2|0];j=h<<8|h;h=c^65535;i=(i+P(j,h)|0)+32768|0; -H[d+2|0]=(i>>>16|0)+i>>>24;i=P((e<<8|e>>>8)&65535,c);e=K[d+1|0];e=(i+P(h,e<<8|e)|0)+32768|0;H[d+1|0]=(e>>>16|0)+e>>>24;e=P((g<<8|g>>>8)&65535,c);c=K[d|0];c=(e+P(h,c<<8|c)|0)+32768|0;H[d|0]=(c>>>16|0)+c>>>24}b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;f=c+f|0;if((f|0)>2])continue;break}break a}if((c|0)<=(f|0))break a;while(1){c=K[b+3|0];d:{if(!c)break d;if((c|0)==255){H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0];break d}g=c^255;e=(P(c,K[b|0])+P(g,K[d|0])|0)+128|0;H[d|0]=(e>>>8&255)+e>>>8;e=(P(c, -K[b+1|0])+P(g,K[d+1|0])|0)+128|0;H[d+1|0]=(e>>>8&255)+e>>>8;c=(P(c,K[b+2|0])+P(g,K[d+2|0])|0)+128|0;H[d+2|0]=(c>>>8&255)+c>>>8}b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;f=c+f|0;if((f|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;f=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-f|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0} -function jvb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=gc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+P(b,3)|0)+P(J[a+672>>2],3)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!f)break b;if((c|0)<=(e|0))break a;while(1){H[d|0]=K[b+2|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b|0];b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=g+(b<<3)|0;if(f){if((c|0)<=(e|0))break a;while(1){H[d|0]=K[b+4|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b|0];b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;if((c|0)==65535){H[d|0]=K[b+4|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b|0];break c}f=K[b+2|0]|K[b+3|0]<<8;g=K[b+4|0]|K[b+5|0]<<8;h=K[b|0]|K[b+1|0]<<8;i=P(c,(h<<8|h>>>8)&65535);h=K[d+2|0];j=h<<8|h; -h=c^65535;i=(i+P(j,h)|0)+32768|0;H[d+2|0]=(i>>>16|0)+i>>>24;i=P((f<<8|f>>>8)&65535,c);f=K[d+1|0];f=(i+P(h,f<<8|f)|0)+32768|0;H[d+1|0]=(f>>>16|0)+f>>>24;f=P(c,(g<<8|g>>>8)&65535);c=K[d|0];c=(f+P(h,c<<8|c)|0)+32768|0;H[d|0]=(c>>>16|0)+c>>>24}b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];d:{if(!c)break d;if((c|0)==255){H[d|0]=K[b+2|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b|0];break d}f=c^255;g=(P(c,K[b+2|0])+P(f,K[d|0])|0)+ -128|0;H[d|0]=(g>>>8&255)+g>>>8;g=(P(c,K[b+1|0])+P(f,K[d+1|0])|0)+128|0;H[d+1|0]=(g>>>8&255)+g>>>8;c=(P(c,K[b|0])+P(f,K[d+2|0])|0)+128|0;H[d+2|0]=(c>>>8&255)+c>>>8}b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b| -0)<=(d|0))J[a+564>>2]=d+1;return 0}function hza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-48|0;bc=d;yG(d+44|0,a);a:{b:{c:{e=J[d+44>>2];a=J[e+8>>2];if(a){J[695492]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[e+8>>2]}else a=0;J[d+40>>2]=a;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!c){J[695492]=0;c=J[a+16>>2];e=J[695492];J[695492]=0;if((e|0)==1)break n;if((c|0)<2)break m}J[695492]=0;da(5292,J[d+44>>2],b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break l}a=Z()|0;break d}J[695492]=0; -c=d+24|0;ca(5156,c|0,a|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break e;e=J[d+32>>2];J[d+12>>2]=e;J[d+16>>2]=c;if(!e){J[695492]=0;da(5073,d+12|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;B()}c=J[d+44>>2];e=J[e+8>>2];J[695492]=0;ca(5164,d+20|0,c|0,e+36|0);c=J[695492];J[695492]=0;if((c|0)==1)break k;J[695492]=0;da(5151,d+8|0,J[d+20>>2]);c=J[695492];J[695492]=0;if((c|0)==1)break j;b=J[b>>2];J[695492]=0;ga(5293,b|0,2389104,4)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;J[695492]=0;ga(5165,b| -0,J[d+8>>2],0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[d+8>>2];J[d+8>>2]=0;o:{if(!b)break o;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break o;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[d+20>>2];J[d+20>>2]=0;p:{if(!b)break p;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break p;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}$c(d+24|0)}J[d+40>>2]=0;if(!a)break f; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}break a}a=Z()|0;break g}a=Z()|0;break h}a=Z()|0;vc(d+8|0)}vc(d+20|0)}$c(d+24|0);break d}a=J[d+44>>2];J[d+44>>2]=0;q:{if(!a)break q;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break q;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+48|0;return}a=Z()|0}vc(d+40|0);break b}a=Z()| -0}vc(d+44|0);ba(a|0);B()}ea(0)|0;yc();B()}function Cib(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;i=bc-16|0;bc=i;m=J[c>>2];J[i+12>>2]=0;f=8;d=a+5|0;a:{if(d>>>0>b>>>0)break a;g=K[a+3|0];h=K[a+4|0];j=J[c+92>>2];a=h+j|0;if(a>>>0>M[c+96>>2]){a=a+3&-4;o=c,p=Sc(m,36,j,a,J[c+100>>2],i+12|0),J[o+100>>2]=p;f=J[i+12>>2];if(f)break a;J[c+96>>2]=a}f=8;a=b;n=g&8;b=g&4;k=g&16;l=g&1;g=g&2;if(a>>>0>>3)+(b>>>2)+(k>>>4)|0)+(g?l+9|0:l|8)|0,h)+d>>>0)break a;m=J[c+92>>2];b:{if(!h)break b; -a=J[c+100>>2]+P(m,36)|0;if(!b){while(1){b=K[d|0];c:{if(l){b=K[d+1|0]|b<<8;d=d+2|0;break c}d=d+1|0}J[a>>2]=b;b=K[d|0];d:{if(g){b=K[d+1|0]|b<<8;d=d+2|0;break d}d=d+1|0}J[a+4>>2]=b;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+2|0]|K[d+1|0]<<8;j=K[d+4|0];b=K[d+3|0];e:{if(n){f=d+6|0;b=K[d+5|0]|(j<<8|b<<16);break e}f=d+5|0;b=j|b<<8}J[a+24>>2]=b;b=K[f|0];f:{if(k){b=K[f+1|0]|b<<8;d=f+2|0;break f}d=f+1|0}J[a+28>>2]=b;a=a+36|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break b}if(!n){while(1){f=K[d|0];g:{if(l){f=K[d+1|0]|f<< -8;b=d+2|0;break g}b=d+1|0}J[a>>2]=f;d=K[b|0];h:{if(g){d=K[b+1|0]|d<<8;b=b+2|0;break h}b=b+1|0}J[a+4>>2]=d;d=b;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<<16);J[a+24>>2]=K[d+5|0]|K[d+4|0]<<8;b=K[d+6|0];i:{if(k){b=K[d+7|0]|b<<8;d=d+8|0;break i}d=d+7|0}J[a+28>>2]=b;a=a+36|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break b}b=0;if(!l)while(1){J[a>>2]=K[d|0];e=K[d+1|0];j:{if(g){e=K[d+2|0]|e<<8;d=d+3|0;break j}d=d+2|0}J[a+4>>2]=e;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<< -16);J[a+24>>2]=K[d+6|0]|(K[d+5|0]<<8|K[d+4|0]<<16);e=K[d+7|0];k:{if(k){e=K[d+8|0]|e<<8;d=d+9|0;break k}d=d+8|0}J[a+28>>2]=e;a=a+36|0;b=b+1|0;if((h|0)!=(b|0))continue;break b}while(1){J[a>>2]=K[d+1|0]|K[d|0]<<8;e=K[d+2|0];l:{if(g){e=K[d+3|0]|e<<8;d=d+4|0;break l}d=d+3|0}J[a+4>>2]=e;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<<16);J[a+24>>2]=K[d+6|0]|(K[d+5|0]<<8|K[d+4|0]<<16);e=K[d+7|0];m:{if(k){e=K[d+8|0]|e<<8;d=d+9|0;break m}d=d+8|0}J[a+28>>2]=e;a=a+36|0;b=b+1|0;if((h|0)!=(b|0))continue; -break}}J[c+92>>2]=h+m;f=J[i+12>>2]}bc=i+16|0;return f|0}function _7(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;d=bc-1008|0;bc=d;f=J[a+4>>2];e=J[a+12>>2];a:{if(!e){h=f<<2;f=4;break a}h=e;e=e>>31;h=(h^e)-e|0;f=(h>>>0)/(f>>>0)|0}b:{c:{d:{e:{f:{g:{h:{if((c|0)==21){J[d+20>>2]=0;J[d+24>>2]=0;I[d>>1]=256;I[d+2>>1]=0;I[d+4>>1]=0;J[d+16>>2]=188;J[d+8>>2]=858993459;J[d+12>>2]=1072378675;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;H[d+6|0]=0;c=J[a+8>>2];f=J[a+4>>2];e=J[a+16>>2]; -i:{j:{k:{if(H[b+11|0]>=0){J[d+1E3>>2]=J[b+8>>2];g=J[b+4>>2];J[d+992>>2]=J[b>>2];J[d+996>>2]=g;break k}g=J[b+4>>2];b=J[b>>2];J[695492]=0;ca(15,d+992|0,b|0,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break j}a=K[a+40|0];J[695492]=0;g=va(16,d|0,e|0,P(P(c,f),24)|0,f|0,c|0,d+992|0,!a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i;if(H[d+1003|0]<0)qc(J[d+992>>2]);if(H[d+43|0]<0)qc(J[d+32>>2]);if(H[d+31|0]>=0)break h;qc(J[d+20>>2]);break h}a=Z()|0;break b}a=Z()|0;if(H[d+1003|0]<0)qc(J[d+992>>2]);break b}e= -d+976|0;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=413844;J[695492]=0;b=aa(17,e|0,b|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break f;if(b){J[695492]=0;b=qf(d,0);g=J[695492];J[695492]=0;if((g|0)==1)break g;g=J[a+8>>2];i=J[a+4>>2];j=J[a+16>>2];k=K[a+40|0];l=J[a+12>>2];J[695492]=0;f=za(18,b|0,j|0,i|0,g|0,f<<3,h|0,(l^-1)>>>31|0,!k|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;g=0;l:{if(!f)break l;f=J[a+20>>2];if(f){a=J[a+24>>2];J[695492]=0;ca(19,b|0,f|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break e}J[695492]= -0;a=J[e+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break e;J[695492]=0;a=ga(20,b|0,a|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(!a)break l;J[695492]=0;_(21,e|0);a=J[695492];J[695492]=0;g=1;if((a|0)==1)break e}J[b>>2]=1032;J[695492]=0;$(13,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;$(14,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d}ve(e)}bc=d+1008|0;return g|0}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;mj(b);break c}ea(0)|0;yc();B()}ve(e);ba(a|0);B()}if(H[d+43|0]< -0)qc(J[d+32>>2]);if(H[d+31|0]<0)qc(J[d+20>>2]);ba(a|0);B()}function Soa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc+-64|0;bc=d;c=cG(d+24|0,b);J[c>>2]=2426756;a:{b:{c:{d:{if(!K[c+32|0]){J[695492]=0;da(5112,c|0,1);e=J[695492];J[695492]=0;if((e|0)==1)break d}J[c+24>>2]=2381060;J[c>>2]=2381028;e=J[c+28>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)gc[J[J[e>>2]+4>>2]](e);J[c+28>>2]=0}J[c+16>>2]=2381060;e=J[c+20>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)gc[J[J[e>>2]+4>>2]](e);J[c+20>>2]=0}sc(c+8|0);e:{f:{g:{b= -J[b>>2];b=J[(b?b+12|0:2728584)>>2];if(b){c=K[b|0];if((c|0)==239){if(K[b+1|0]!=187)break g;b=(K[b+2|0]==191?3:0)+b|0;c=K[b|0]}if(c&255)break g}J[a>>2]=0;J[a+4>>2]=J[682146];break f}c=d+16|0;b=Uk(c,b);J[d+24>>2]=0;J[d+28>>2]=J[682146];sc(b);J[695492]=0;da(6082,c|0,d+24|0);b=J[695492];J[695492]=0;h:{i:{j:{k:{if((b|0)!=1){J[695492]=0;a=aa(4989,a|0,2426737)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[d+16>>2];b=J[(b?b+12|0:2728584)>>2];if(K[b|0]!=47)break j;if(K[b+1|0]!=47)break k;J[695492]=0;aa(5185, -a|0,b+2|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break h;b=Z()|0;sc(a);break b}b=Z()|0;break a}J[695492]=0;ca(5048,d+8|0,2426688,d+16|0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+8>>2];l:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+60|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break l;b=Z()|0;break c}J[d+60>>2]=0}J[695492]=0;aa(4993,a|0,d+60|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break i;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e| -0)!=1){if(c)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break i}ea(0)|0;yc();B()}b=Z()|0;vc(d+60|0);break c}b=Z()|0;sc(a);break b}J[695492]=0;b=d+8|0;ca(5048,b|0,2426804,d+16|0);c=J[695492];J[695492]=0;m:{if((c|0)!=1){J[695492]=0;aa(5170,a|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break m;sc(b);break h}b=Z()|0;sc(a);break b}b=Z()|0;sc(d+8|0);sc(a);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(d+8|0)}sc(d+16|0);sc(d+24|0)}bc=d- -64|0;return}b=Z()|0;break b}a= -Z()|0;ud(c);ba(a|0);B()}sc(d+8|0);sc(a)}sc(d+16|0)}sc(d+24|0);ba(b|0);B()}function vYa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+20>>2];if((c|0)!=100){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;gc[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+244>>2]=0;J[a+80>>2]=b;a:{b:{c:switch(b|0){case 1:J[a+76>>2]=1;J[a+244>>2]=1;a=J[a+84>>2];J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=1;return;case 2:J[a+76>>2]=3;J[a+256>>2]=1;a=J[a+84>>2];J[a+176>>2]=66;J[a+88>>2]=71;J[a+24>>2]=0;J[a+16>>2]= -0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=82;break b;case 3:J[a+76>>2]=3;J[a+244>>2]=1;a=J[a+84>>2];J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;break a;case 4:J[a+76>>2]=4;J[a+256>>2]=1;a=J[a+84>>2];J[a+264>>2]=75;J[a+176>>2]=89;J[a+88>>2]=77;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=67;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=1;J[a+276>>2]=1;break b;case 5:J[a+76>>2]=4;J[a+256>>2]=1;a=J[a+84>> -2];J[a+264>>2]=4;J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=2;J[a+276>>2]=2;break a;case 0:b=J[a+36>>2];J[a+76>>2]=b;d:{if(b-11>>>0<=4294967285){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=27;J[J[a>>2]+28>>2]=10;gc[J[J[a>>2]>>2]](a);b=J[a+76>>2];if((b|0)<=0)break d}d=J[a+84>>2];a=0;if((b|0)!=1){g=b&-2;while(1){c=d+P(a,88)|0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=1;J[c+12>>2]=1;J[c>>2]=a; -e=a|1;c=d+P(e,88)|0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=1;J[c+12>>2]=1;J[c>>2]=e;a=a+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(b&1))break d;b=d+P(a,88)|0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=a}return;default:break c}b=J[a>>2];J[b+20>>2]=11;gc[J[b>>2]](a);return}J[a+200>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=1;J[a+100>>2]=1;return}J[a+200>>2]=1;J[a+192>>2]=1;J[a+196>>2]= -1;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=1;J[a+104>>2]=1;J[a+108>>2]=1;J[a+96>>2]=1;J[a+100>>2]=1}function pR(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;j=bc-128|0;bc=j;a:{b:{c:{if(!sq(f,g,h,i,0,0,0,0))break c;k=i&65535;n=i>>>16&32767;d:e:{if((n|0)!=32767){l=4;if(n)break e;l=f|h|(g|k)?3:2;break d}l=!(f|h|(g|k))}s=e>>>16|0;o=s&32767;if((o|0)==32767)break c;if(l)break b}Qf(j+16|0,b,c,d,e,f,g,h,i);b=J[j+16>>2];d=J[j+20>>2];e=J[j+24>>2];c=J[j+28>>2];aR(j,b,d,e,c,b,d,e,c);d=J[j+ -8>>2];e=J[j+12>>2];h=J[j>>2];i=J[j+4>>2];break a}l=d;p=e&2147483647;k=p;n=h;m=i&2147483647;if((sq(b,c,l,k,f,g,h,m)|0)<=0){if(sq(b,c,l,k,f,g,h,m)){h=b;i=c;break a}Qf(j+112|0,b,c,d,e,0,0,0,0);d=J[j+120>>2];e=J[j+124>>2];h=J[j+112>>2];i=J[j+116>>2];break a}q=i>>>16&32767;if(o){i=c;h=b}else{Qf(j+96|0,b,c,l,p,0,0,0,1081540608);l=J[j+104>>2];h=J[j+108>>2];p=h;o=(h>>>16|0)-120|0;i=J[j+100>>2];h=J[j+96>>2]}if(!q){Qf(j+80|0,f,g,n,m,0,0,0,1081540608);n=J[j+88>>2];f=J[j+92>>2];m=f;q=(f>>>16|0)-120|0;g=J[j+84>> -2];f=J[j+80>>2]}r=n;t=m&65535|65536;p=p&65535|65536;if((o|0)>(q|0)){while(1){m=l-r|0;k=(g|0)==(i|0)&f>>>0>h>>>0|g>>>0>i>>>0;n=m-k|0;k=(p-((l>>>0>>0)+t|0)|0)-(k>>>0>m>>>0)|0;f:{if((k|0)>=0|(k|0)>0){l=h;h=h-f|0;i=i-((f>>>0>l>>>0)+g|0)|0;if(!(h|n|(i|k))){Qf(j+32|0,b,c,d,e,0,0,0,0);d=J[j+40>>2];e=J[j+44>>2];h=J[j+32>>2];i=J[j+36>>2];break a}k=k<<1|n>>>31;l=n<<1|i>>>31;break f}k=p<<1|l>>>31;l=l<<1|i>>>31}p=k;k=i<<1|h>>>31;h=h<<1;i=k;o=o-1|0;if((o|0)>(q|0))continue;break}o=q}m=l-r|0;k=(g|0)==(i|0)&f>>> -0>h>>>0|g>>>0>i>>>0;n=m-k|0;k=(p-((l>>>0>>0)+t|0)|0)-(k>>>0>m>>>0)|0;m=k;g:{if((k|0)<0){n=l;m=p;break g}l=h;h=h-f|0;i=i-((f>>>0>l>>>0)+g|0)|0;if(h|n|(i|m))break g;Qf(j+48|0,b,c,d,e,0,0,0,0);d=J[j+56>>2];e=J[j+60>>2];h=J[j+48>>2];i=J[j+52>>2];break a}if((m|0)==65535|m>>>0<65535)while(1){b=i>>>31|0;o=o-1|0;p=i<<1|h>>>31;h=h<<1;i=p;c=b;b=m<<1|n>>>31;n=c|n<<1;m=b;if(b>>>0<65536)continue;break}b=s&32768;if((o|0)<=0){Qf(j- -64|0,h,i,n,m&65535|(b|o+120)<<16,0,0,0,1065811968);d=J[j+72>>2];e=J[j+76>>2]; -h=J[j+64>>2];i=J[j+68>>2];break a}d=n;e=m&65535|(b|o)<<16}J[a>>2]=h;J[a+4>>2]=i;J[a+8>>2]=d;J[a+12>>2]=e;bc=j+128|0}function lpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;if(!(1<>>0<=20:0))break a;j=K[d+2|0];if(j>>>0>=3){Dc(a,1052,0,0);return 1052}i=K[d+3|0];if(i>>>0>=8){Dc(a,1053,0,0);return 1053}if(!(i|c>>>0<13))break a;h=c>>>0<5;if(!(h|(i|0)!=7))break a;H[a+ -2253|0]=i;H[a+288|0]=1;J[a+48>>2]=J[a+48>>2]+1;f=K[d|0]|K[d+1|0]<<8;g=f<<8|f>>>8;c:{if(h){h=0;f=0;break c}h=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);l=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=0;if(c>>>0<13)break c;f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);m=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280| -f>>>24)}n=g&65535;d:{if(K[a+114|0]){g=gc[J[a+152>>2]](48)|0;if(!g){Dc(a,1,0,0);h=1;break d}J[g+4>>2]=1066;J[g>>2]=1067;k=J[a+700>>2];e:{if(k){J[k+8>>2]=g;break e}J[a+696>>2]=g}J[g+8>>2]=0;J[g+12>>2]=k;J[a+700>>2]=g;J[g+16>>2]=J[a+436>>2];J[g+20>>2]=J[a+440>>2];J[g+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=g;J[g+44>>2]=f;J[g+40>>2]=m;J[g+36>>2]=h;J[g+32>>2]=l;H[g+31|0]=i;H[g+30|0]=j;I[g+28>>1]=n}h=Z7(a,n,j,i,l,h,m,f)}f:{if(h)break f;g:{if(!K[a+112|0])break g;h=gc[J[b+ -4>>2]](a,b,e)|0;if(h)break f;b=K[d|0]|K[d+1|0]<<8;a=J[e>>2];H[a+35|0]=i;H[a+34|0]=j;I[a+32>>1]=b<<8|b>>>8;if(c>>>0<5)break g;b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(c>>>0<13)break g;b=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[a+44>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16| -K[d+19|0]<<24);J[b+48>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}h=0}return h|0}Dc(a,1029,0,0);return 1029}Dc(a,1028,0,0);return 1028}function hla(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;j=bc-16|0;bc=j;a:{b:{i=J[b+4>>2];if((i|0)!=(b|0))while(1){c:{h=J[i+8>>2];if(J[c+8>>2]!=J[h+24>>2]|J[c+12>>2]!=J[h+28>>2]|(J[c+16>>2]!=J[h+32>>2]|J[c+20>>2]!=J[h+36>>2]))break c;if(J[c+24>>2]!=J[h+40>>2]|O[c+112>>3]!=O[h+128>>3]|O[h+400>>3]!=e)break c;l=K[d+11|0]; -k=l<<24>>24<0;n=K[h+395|0];m=n<<24>>24<0;l=k?J[d+4>>2]:l;if((l|0)!=((m?J[h+388>>2]:n)|0))break c;if(l){h=h+384|0;if(gd(k?J[d>>2]:d,m?J[h>>2]:h,l))break c;h=J[i+8>>2]}if(K[h+408|0]!=(f|0)|K[h+409|0]!=(g|0))break c;J[j+8>>2]=h;c=J[i+12>>2];J[j+12>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;if(J[b+4>>2]!=(i|0)){c=J[i>>2];d=J[i+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[b+8>>2]=J[b+8>>2]-1;c=J[i+12>>2];d:{if(!c)break d;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break d;gc[J[J[c>>2]+8>>2]](c);Vc(c)}qc(i);J[695492]=0;da(6417,b|0,j+8|0);b= -J[695492];J[695492]=0;if((b|0)==1)break a;h=J[j+8>>2];c=J[j+12>>2]}J[a+4>>2]=c;J[a>>2]=h;J[j+8>>2]=0;J[j+12>>2]=0;Ie(j+8|0);break b}i=J[i+4>>2];if((i|0)!=(b|0))continue;break}h=rc(440);J[h>>2]=2431360;J[h+4>>2]=0;J[h+8>>2]=0;J[695492]=0;i=$(6418,h+16|0)|0;k=J[695492];J[695492]=0;if((k|0)==1){a=Z()|0;qc(h);ba(a|0);B()}J[j+8>>2]=i;J[695492]=0;J[j+12>>2]=h;aa(6327,h+32|0,c|0)|0;c=J[695492];J[695492]=0;e:{if((c|0)==1)break e;c=h+400|0;f:{if((c|0)==(d|0))break f;m=K[d+11|0];k=m<<24>>24;g:{if(H[h+411|0]>= -0){if((k|0)<0)break g;k=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=k;J[c+8>>2]=J[d+8>>2];break f}l=J[d>>2];n=J[d+4>>2];J[695492]=0;o=c;c=(k|0)<0;ga(1629,o|0,(c?l:d)|0,(c?n:m)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;break f}k=J[d+4>>2];d=J[d>>2];J[695492]=0;ga(1630,c|0,d|0,k|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e}H[h+425|0]=g;H[h+424|0]=f;O[h+416>>3]=e;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;J[c+8>>2]=i;J[c+12>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[c>>2]=b;d=J[b+4>>2]; -J[c+4>>2]=d;J[d>>2]=c;J[b+4>>2]=c;J[b+8>>2]=J[b+8>>2]+1;J[a+4>>2]=h;J[a>>2]=i;break b}break a}bc=j+16|0;return}a=Z()|0;Ie(j+8|0);ba(a|0);B()}function on(a,b){var c=0,d=0,e=0,f=0;c=J[a+996>>2];e=c+J[a+1080>>2]|0;J[a+996>>2]=e;d=(c|0)>0?J[a+992>>2]&J[(c<<2)+47872>>2]|b<>2]=d;if((e|0)>=8){c=J[a+1108>>2];while(1){J[a+1108>>2]=c+1;H[J[a+1112>>2]+c|0]=d;c=J[a+1108>>2];if((c|0)>=254){d=J[a+1096>>2];gc[J[J[d>>2]+44>>2]](d,c&255)|0;c=J[a+1096>>2];gc[J[J[c>>2]+16>>2]](c,J[a+1112>>2],1,J[a+1108>> -2])|0;J[a+1108>>2]=0;c=0}d=J[a+992>>2]>>>8|0;J[a+992>>2]=d;f=J[a+996>>2];e=f-8|0;J[a+996>>2]=e;if((f|0)>15)continue;break}}c=J[a+1088>>2];a:{if(!c&I[a+1086>>1]<=I[a+1084>>1])break a;if(c){J[a+1088>>2]=0;c=J[a+1092>>2];J[a+1080>>2]=c;I[a+1084>>1]=-1<>2]+1|0;J[a+1080>>2]=c;if((c|0)==12){I[a+1084>>1]=4096;break a}I[a+1084>>1]=-1<>2]!=(b|0))break b;c:{if((e|0)<=0){c=J[a+1108>>2];break c}c=J[a+1108>>2];while(1){J[a+1108>>2]=c+1;H[J[a+1112>>2]+c|0]=d;c=J[a+ -1108>>2];if((c|0)>=254){b=J[a+1096>>2];gc[J[J[b>>2]+44>>2]](b,c&255)|0;b=J[a+1096>>2];gc[J[J[b>>2]+16>>2]](b,J[a+1112>>2],1,J[a+1108>>2])|0;J[a+1108>>2]=0;c=0}d=J[a+992>>2]>>>8|0;J[a+992>>2]=d;b=J[a+996>>2];J[a+996>>2]=b-8;if((b|0)>8)continue;break}}if((c|0)>0){b=J[a+1096>>2];gc[J[J[b>>2]+44>>2]](b,c&255)|0;b=J[a+1096>>2];gc[J[J[b>>2]+16>>2]](b,J[a+1112>>2],1,J[a+1108>>2])|0;J[a+1108>>2]=0}b=J[a+1096>>2];gc[J[J[b>>2]+32>>2]](b)|0;b=J[a+1096>>2];if(!(gc[J[J[b>>2]+40>>2]](b)|0))break b;b=K[46305]|K[46306]<< -8|(K[46307]<<16|K[46308]<<24);c=K[46301]|K[46302]<<8|(K[46303]<<16|K[46304]<<24);H[a+88|0]=c;H[a+89|0]=c>>>8;H[a+90|0]=c>>>16;H[a+91|0]=c>>>24;H[a+92|0]=b;H[a+93|0]=b>>>8;H[a+94|0]=b>>>16;H[a+95|0]=b>>>24;b=K[46297]|K[46298]<<8|(K[46299]<<16|K[46300]<<24);c=K[46293]|K[46294]<<8|(K[46295]<<16|K[46296]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[46289]|K[46290]<<8|(K[46291]<<16|K[46292]<<24);c=K[46285]|K[46286]<< -8|(K[46287]<<16|K[46288]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24}}function SW(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,r=0,s=0;f=bc-80|0;bc=f;h=J[b+8>>2];l=J[h>>2];n=L[h+4>>1];if(n){r=l+6|0;h=0;s=n-2&65535;o=1;while(1){p=P(h,6)+l|0;k=L[p>>1];d=J[a+16>>2];a:{if(k>>>0>=d>>>0){J[f+20>>2]=d;J[f+16>>2]=k;Hc(c,2,2346437,f+16|0);break a}e=L[p+4>>1];if((e+1&65535)>>>0<=1){I[(J[a+24>>2]+P(k,52)| -0)+48>>1]=L[p+2>>1];break a}q=e-1|0;m=q&65535;if(d>>>0<=m>>>0){J[f+4>>2]=d;J[f>>2]=m;Hc(c,2,2346489,f);break a}b:{if(L[p+2>>1]|(k|0)==(m|0))break b;e=J[a+24>>2];d=e+P(k,52)|0;J[f+72>>2]=J[d+48>>2];g=J[d+44>>2];j=f- -64|0;J[j>>2]=J[d+40>>2];J[j+4>>2]=g;g=J[d+36>>2];J[f+56>>2]=J[d+32>>2];J[f+60>>2]=g;g=J[d+28>>2];J[f+48>>2]=J[d+24>>2];J[f+52>>2]=g;g=J[d+20>>2];J[f+40>>2]=J[d+16>>2];J[f+44>>2]=g;g=J[d+12>>2];J[f+32>>2]=J[d+8>>2];J[f+36>>2]=g;g=J[d+4>>2];J[f+24>>2]=J[d>>2];J[f+28>>2]=g;g=P(m,52);e=g+ -e|0;J[d+48>>2]=J[e+48>>2];i=J[e+44>>2];J[d+40>>2]=J[e+40>>2];J[d+44>>2]=i;i=J[e+36>>2];J[d+32>>2]=J[e+32>>2];J[d+36>>2]=i;i=J[e+28>>2];J[d+24>>2]=J[e+24>>2];J[d+28>>2]=i;i=J[e+20>>2];J[d+16>>2]=J[e+16>>2];J[d+20>>2]=i;i=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=i;i=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=i;e=J[f+28>>2];d=g+J[a+24>>2]|0;J[d>>2]=J[f+24>>2];J[d+4>>2]=e;J[d+48>>2]=J[f+72>>2];e=J[j+4>>2];J[d+40>>2]=J[j>>2];J[d+44>>2]=e;e=J[f+60>>2];J[d+32>>2]=J[f+56>>2];J[d+36>>2]=e;e=J[f+52>>2];J[d+24>>2]= -J[f+48>>2];J[d+28>>2]=e;e=J[f+44>>2];J[d+16>>2]=J[f+40>>2];J[d+20>>2]=e;e=J[f+36>>2];J[d+8>>2]=J[f+32>>2];J[d+12>>2]=e;if(h+1>>>0>=n>>>0)break b;e=o;if((h^-1)+n&1){e=q;d=P(o,6)+l|0;j=L[d>>1];c:{if((j|0)!=(k|0)){e=k;if((j|0)!=(m|0))break c}I[d>>1]=e}e=o+1|0}if((h&65535)==(s|0))break b;while(1){d=q;j=P(e,6);g=j+l|0;i=L[g>>1];d:{if((i|0)!=(k|0)){d=k;if((i|0)!=(m|0))break d}I[g>>1]=d}d=q;j=j+r|0;g=L[j>>1];e:{if((g|0)!=(k|0)){d=k;if((g|0)!=(m|0))break e}I[j>>1]=d}e=e+2|0;if((e&65535)!=(n|0))continue;break}}I[(J[a+ -24>>2]+P(k,52)|0)+48>>1]=L[p+2>>1]}o=o+1|0;h=h+1|0;if((n|0)!=(h|0))continue;break}h=J[b+8>>2];l=J[h>>2]}if(l){qc(l);h=J[b+8>>2]}qc(h);J[b+8>>2]=0;bc=f+80|0}function KNa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;u=bc-256|0;bc=u;e=a;while(1){a:{h=e;d=J[(l<<2)+b>>2]+c|0;i=K[d+4|0];m=K[d+3|0];g=i+m|0;k=K[d+7|0];j=K[d|0];f=k+j|0;n=g+f|0;p=K[d+5|0];o=K[d+2|0];q=p+o|0;r=K[d+6|0];s=K[d+1|0];d=r+s|0;t=q+ -d|0;J[e+16>>2]=n-t<<2;J[e>>2]=(n+t<<2)-4096;g=f-g|0;f=d-q|0;d=P(g+f|0,4433)+1024|0;J[e+24>>2]=d+P(f,-15137)>>11;J[e+8>>2]=d+P(g,6270)>>11;d=m-i|0;i=j-k|0;m=P(d+i|0,-7373)+1024|0;g=s-r|0;f=g+d|0;k=o-p|0;n=k+i|0;j=P(f+n|0,9633);o=m+P(d,2446)|0;d=j+P(f,-16069)|0;J[e+28>>2]=o+d>>11;j=j+P(n,-3196)|0;f=P(k,16819);k=P(g+k|0,-20995)+1024|0;J[e+20>>2]=j+(f+k|0)>>11;J[e+12>>2]=d+(k+P(g,25172)|0)>>11;J[e+4>>2]=j+(m+P(i,12299)|0)>>11;i=l-7|0;l=l+1|0;e=u;d=7;b:switch(i|0){case 0:continue;case 8:break a;default:break b}e= -h+32|0;continue}break}while(1){i=J[e+32>>2];m=J[a+192>>2];b=i+m|0;k=J[e+192>>2];j=J[a+32>>2];c=k+j|0;h=b+c|0;l=J[e+64>>2];g=J[a+160>>2];f=l+g|0;n=J[e+160>>2];p=J[a+64>>2];o=n+p|0;q=f+o|0;r=J[e>>2];s=J[a+224>>2];t=r+s|0;v=J[e+224>>2];w=J[a>>2];x=v+w|0;y=t+x|0;z=J[e+96>>2];A=J[a+128>>2];B=z+A|0;C=J[e+128>>2];D=J[a+96>>2];E=C+D|0;F=B+E|0;J[a+128>>2]=(P(h-q|0,4433)+P(y-F|0,10703)|0)+32768>>16;J[a>>2]=((h+(q+F|0)|0)+y|0)+4>>3;h=x-t|0;f=o-f|0;o=E-B|0;c=c-b|0;b=(P(h-f|0,11363)+P(o-c|0,2260)|0)+32768|0;J[a+ -192>>2]=(b+P(o,-8697)|0)+P(h,-1730)>>16;J[a+64>>2]=(b+P(f,17799)|0)+P(c,11893)>>16;b=g-l|0;c=A-z|0;h=D-C|0;l=p-n|0;g=(P(b-c|0,3363)+P(h+l|0,-11086)|0)+32768|0;i=m-i|0;m=j-k|0;k=P(i+c|0,-10217)+P(m+h|0,-5461)|0;n=k+((g+P(h,8728)|0)+P(c,17760)|0)|0;j=c;c=s-r|0;f=h;h=w-v|0;j=P(j-c|0,7350)+P(f+h|0,8956)|0;J[a+224>>2]=n+j>>16;f=(g+P(l,-9222)|0)+P(b,10055)|0;g=P(i-b|0,11529)+P(l+m|0,1136)|0;b=P(b+c|0,5461)+P(h+l|0,10217)|0;J[a+160>>2]=(f+g|0)+b>>16;l=P(i-c|0,3363)+P(h+m|0,11086)|0;J[a+96>>2]=(l+(g+((k+ -P(m,589)|0)+P(i,-13631)|0)|0)|0)+32768>>16;J[a+32>>2]=(j+(l+((b+P(h,-18730)|0)+P(c,6387)|0)|0)|0)+32768>>16;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b)continue;break}bc=u+256|0}function Q$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!b)return-1;e=J[b>>2];a:{if(!a)while(1){a=K[e|0];c=(a&223)-65|0;b:{if((a-48&255)>>>0<10|(c&255)>>>0<26)break b;c:switch(a-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 62:case 93:break b;case 4:break c; -default:break a}d:{c=K[e+1|0];if((c-48&255)>>>0<10)break d;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break d;default:break a}}c=K[e+2|0];if((c-48&255)>>>0<10)break b;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break b;default:break a}}e=((a|0)==37?3:1)+e|0;continue}while(1){e:{c=K[e|0];d=(c&223)-65|0;f:{if((c-48&255)>>>0<10|(d&255)>>>0<26)break f;g:{h:switch(c-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 62:case 93:break f; -case 4:break h;default:break g}i:{d=K[e+1|0];if((d-48&255)>>>0<10)break i;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i;default:break g}}d=K[e+2|0];if((d-48&255)>>>0<10)break f;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break f;default:break g}}g=J[a+36>>2];if(!(g&1))break e;switch(c-91|0){case 0:case 1:case 2:case 3:case 5:case 32:case 33:case 34:break f;default:break e}}e= -((c|0)==37?3:1)+e|0;continue}break}c=J[a+28>>2];if(c){gc[J[659451]](c);g=J[a+36>>2]}f=J[b>>2];d=e-f|0;j:{if(g&2){c=0;if(!f|(d|0)<0)break j;c=gc[J[659450]](d+1|0)|0;if(!c){c=0;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break j}h=tc(c,f,d)+d|0,i=0,H[h|0]=i;break j}c=eo(f,d)}J[a+28>>2]=c;c=J[a+40>>2];if(c)gc[J[659451]](c);c=0;f=J[b>>2];k:{if(!f)break k;d=e-f|0;if((d|0)<0)break k;c=gc[J[659450]](d+1|0)|0;if(!c){c=0;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break k}h=tc(c,f,d)+d|0,i=0,H[h|0]=i}J[a+40>>2]=c}J[b>>2]= -e;return 0}function Z4(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;if(!(K[a+16|0]&8)){f=P(c,204)+b|0;n=J[f+200>>2];g=J[f+204>>2]+Pc(J[a>>2],n)|0;e=Pc(J[a+4>>2],n);a:{b:{c:{d:{e:switch(c|0){case 1:if(K[d+121|0])break d;break b;case 0:if(!K[d+120|0])break b;k=K[d+122|0]!=0;break;default:break e}J[a+12>>2]=e;break c}o=K[d+123|0];J[a+12>>2]=e;p=J[a>>2];r=K[b+2492|0];k=2;f=J[b+412>>2];f:{g:{if(!f)break g;i=J[a+4>>2]+p|0;h=b+416|0;j=J[b+2488>>2];l=0-j|0;while(1){m=i-J[h+12>> -2]|0;if((m|0)<(l|0))break g;if((i|0)<=(j+J[h+8>>2]|0)){if(!r){f=0;if((m|0)>J[b+2484>>2])break f}q=J[h+16>>2];k=3;f=1;break f}h=h+32|0;f=f-1|0;if(f)continue;break}}f=0}j=J[b+928>>2];h:{if(!j){i=0;break h}i=0;l=J[b+2488>>2];m=0-l|0;h=((j<<5)+b|0)+932|0;while(1){s=J[h-24>>2]-p|0;if((m|0)>(s|0))break h;if((J[h-20>>2]-l|0)>(p|0)){h=h-32|0;j=j-1|0;if(j)continue;break h}break}if(!r&J[b+2484>>2]<=(s|0))break h;i=J[h-16>>2];f=k}k=(o|0)!=0;i:switch(f-1|0){case 1:J[a+8>>2]=i;if(!o)break a;J[a+12>>2]=(e|0)<64? -64:e+32&-64;break a;case 2:J[a+8>>2]=i;J[a+12>>2]=q-i;break a;case 0:break i;default:break c}J[a+8>>2]=q-e;if(!o)break a;b=(e|0)<64?64:e+32&-64;J[a+12>>2]=b;J[a+8>>2]=q-b;break a}f=J[a+20>>2];if(f){if(!(K[f+16|0]&8))Z4(f,b,c,d);g=((J[f+8>>2]-(e>>1)|0)+(J[f+12>>2]>>1)|0)+Pc((J[a>>2]-(J[f>>2]+(J[f+4>>2]>>1)|0)|0)+(J[a+4>>2]>>1)|0,n)|0}j:{if(!K[d+124|0])break j;if((e|0)<=64){if((e|0)>=32){g=(e>>>1|0)+g&-64;e=64;break j}b=g+32&-64;if((e|0)<=0){g=b;break j}f=b-g|0;c=f>>31;d=e+g|0;g=d+32&-64;h=g-d|0;d= -h>>31;g=(c^f)-c>>>0>(d^h)-d>>>0?g:b;break j}b=J[(P(c,204)+b|0)+12>>2];d=e-b|0;c=d>>31;e=(c^d)-c>>>0<40?(b|0)<=48?48:b:e;if(e>>>0<=191){b=e&63;if(b>>>0<10)break j;c=e&-64;if(b>>>0<=31){e=c|10;break j}e=b>>>0<54?c|54:e;break j}e=e+32&-64}J[a+12>>2]=e;b=(g+32&-64)-g|0;c=b>>31;d=e+g|0;d=(d+32&-64)-d|0;f=d>>31;c=((b^c)-c>>>0>(d^f)-f>>>0?d:b)+g|0;J[a+8>>2]=c;if(!k)break a;d=(e|0)<64?64:e+32&-64;b=d>>1;J[a+12>>2]=d;J[a+8>>2]=(d&64?b+c&-64|32:(b+c|0)+32&-64)-b;break a}J[a+12>>2]=e;J[a+8>>2]=g}J[a+16>>2]= -J[a+16>>2]|8}}function wmb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0;if((d|0)>0){v=a+24|0;l=(c+31|0)/32|0;w=l<<2;while(1){a:{b:{c:{d:{t=m>>>0<2;e:{if(!t){h=J[(P(m-2|0,l)<<2)+b>>2];break e}h=0;if(!m)break d}g=(P(m-1|0,l)<<2)+b|0;k=J[g>>2];f=1;i=h;if(!e)break b;f=!Wc((P(l,m)<<2)+b|0,g,w);x=f^r;i=1;r=f;break c}k=0;f=0;i=0;if(!e)break b}g=K[a+39741|0];n=g<<2;f=L[n+2637248>>1];f:{g:{if((x&255)==(g>>>0>46|0)){j= -L[a+4>>1]-f|0;I[a+4>>1]=j;if(j<<16>>16>=0){if(f>>>0>(j&65535)>>>0){j=f;f=n+2637250|0;break g}J[a>>2]=f+J[a>>2];f=n+2637250|0;break g}J[a>>2]=f+J[a>>2];break f}j=L[a+4>>1]-f|0;h:{if(f>>>0<=(j&65535)>>>0){j=f;break h}J[a>>2]=f+J[a>>2]}f=n+2637251|0}H[a+39741|0]=K[f|0];while(1){j=j<<1;I[a+4>>1]=j;J[a>>2]=J[a>>2]<<1;f=K[a+6|0]-1|0;H[a+6|0]=f;if(!(f&255)){Al(a);j=L[a+4>>1]}if(j<<16>>16>=0)continue;break}}if(r&255)break a;r=0;f=i;i=h}if((c|0)<=0)break a;h=i>>>29|0;s=k>>>28|0;p=i<<3;o=k<<4;y=(P(m-2|0,l)<< -2)+b|0;z=(P(m-1|0,l)<<2)+b|0;u=(P(l,m)<<2)+b|0;i=J[u>>2];k=0;A=f^1;j=0;while(1){n=(h<<11|s<<4|j)+v|0;f=K[n|0];q=f<<2;g=L[q+2637248>>1];B=n;n=i>>>31|0;i:{j:{if((n|0)==(f>>>0>46|0)){f=L[a+4>>1]-g|0;I[a+4>>1]=f;if(f<<16>>16>=0){if(g>>>0>(f&65535)>>>0){f=g;g=q+2637250|0;break j}J[a>>2]=g+J[a>>2];g=q+2637250|0;break j}J[a>>2]=g+J[a>>2];break i}f=L[a+4>>1]-g|0;k:{if(g>>>0<=(f&65535)>>>0){f=g;break k}J[a>>2]=g+J[a>>2]}g=q+2637251|0}H[B|0]=K[g|0];while(1){f=f<<1;I[a+4>>1]=f;J[a>>2]=J[a>>2]<<1;g=K[a+6|0]- -1|0;H[a+6|0]=g;if(!(g&255)){Al(a);f=L[a+4>>1]}if(f<<16>>16>=0)continue;break}}g=s<<1|o>>>31;f=h<<1|p>>>31;h=k&31;l:{if(!((h|0)!=28|t)){p=0;h=(k>>>5|0)+1|0;if(h>>>0>>0)p=J[(h<<2)+y>>2];o=o<<1;i=i<<1;break l}p=p<<1;m:{if(!((h|0)!=27|A)){o=0;h=(k>>>5|0)+1|0;if(h>>>0>=l>>>0)break m;o=J[(h<<2)+z>>2];break m}o=o<<1;if((h|0)!=31)break m;h=(k>>>5|0)+1|0;i=0;if(h>>>0>=l>>>0)break l;i=J[(h<<2)+u>>2];break l}i=i<<1}s=g&127;h=f&31;j=n|j<<1&14;k=k+1|0;if((k|0)!=(c|0))continue;break}}m=m+1|0;if((m|0)!=(d|0))continue; -break}}}function Ojb(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;d=bc-48|0;bc=d;a:{b:{if(!a)break b;if(!b){f=6;break a}if(I[a>>1]<=0)break a;h=J[b+20>>2];i=J[b+16>>2];while(1){m=I[J[a+12>>2]+(o<<1)>>1];if((m|0)<0)break b;j=J[a+4>>2];e=j+(g<<3)|0;k=J[e>>2];f=J[e+4>>2];J[d+32>>2]=(k<>2]=p;l=j+(m<<3)|0;k=J[l>>2];q=J[l+4>>2];n=J[d+36>>2];f=J[d+32>>2];J[d+40>>2]=f;J[d+44>>2]=n;c:{d:{n=J[a+8>>2];j=n+g|0;switch(K[j|0]&3){case 2:break b;case 0:break d; -default:break c}}g=(q<>2]=g;J[d+32>>2]=k;j=j-1|0;e=e-8|0}f=gc[J[b>>2]](d+32|0,c)|0;if(f)break a;f:{if(e>>>0>>0)while(1){k=j+1|0;g=e+8|0;g:{h:{i:switch(K[j+1|0]&3){case 1:J[d+24>>2]=(J[e+8>>2]<>2]=(J[e+12>>2]<>2]](d+24|0,c)|0;if(f)break a;break g;case 0:J[d+40>>2]=(J[e+8>>2]<>2]=(J[e+12>>2]<>>0>>0)while(1){e=K[k+1|0];j=(J[g+8>>2]<>2]=j;f=(J[g+12>>2]<>2]=f;k=k+1|0;g=g+8|0;j:{e=e&3;k:{if(e){if((e|0)!=1){g=7;f=0;break h}f=gc[J[b+8>>2]](d+40|0,d+24|0,c)|0;if(f)break k;e=g;j=k;break g}J[d+16>>2]=(j+J[d+40>>2]|0)/2;J[d+20>>2]=(f+J[d+44>>2]|0)/2;f=gc[J[b+8>>2]](d+40|0,d+16|0,c)|0;if(!f)break j}g=10;break h}e=J[d+28>>2];J[d+40>>2]=J[d+24>>2];J[d+44>>2]=e;if(g>>>0>>0)continue;break}f=gc[J[b+8>>2]](d+40|0,d+32|0,c)|0;break f;default:break i}g=7;f=0;if((K[j+2|0]&3)!=2|e+16>>>0>l>>>0)break h;J[d+24>>2]=(J[e+8>> -2]<>2]=(J[e+12>>2]<>2]=(J[e+16>>2]<>2]=(J[e+20>>2]<>>0<=l>>>0){J[d+8>>2]=(J[e+24>>2]<>2]=(J[e+28>>2]<>2]](d+24|0,d+16|0,d+8|0,c)|0;if(f){g=10;break h}j=j+3|0;e=g;break g}f=gc[J[b+12>>2]](d+24|0,d+16|0,d+32|0,c)|0;break f}if((g|0)!=7)break a;break b}if(e>>>0>>0)continue;break}f=gc[J[b+4>>2]](d+32|0,c)|0}if(f)break a;g=m+1|0;f=0;o=o+1|0;if((o|0)>1])continue;break}break a}f=20}bc=d+48|0;return f|0}function e_a(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;v=bc-224|0;bc=v;n=J[a+332>>2];a=J[b+84>>2];b=v;while(1){h=J[a+160>>2];i=I[c+80>>1];j=J[a+32>>2];o=I[c+16>>1];q=J[a+96>>2];l=I[c+48>>1];p=P(I[c>>1],J[a>>2])<<13|1024;g=P(J[a+128>>2],I[c+64>>1]);f=P(J[a+192>>2],I[c+96>>1]);m=P(J[a+64>>2],I[c+32>>1]);k=f+m|0;J[b+96>>2]=p+P(g-k|0,11585)>>11;h=P(h,i);i=P(j,o);j=P(h+i|0,5027);k=p+P(k,10438)|0;o=P(g-f|0,7223);s=k+(o+P(f,-637)|0)|0;f= -P(q,l);q=P(f+i|0,7663);i=P(i-f|0,1395);l=j+(q-i|0)|0;J[b+192>>2]=s-l>>11;J[b>>2]=l+s>>11;l=P(m,-20239);m=P(m-g|0,2578);l=k+(l+m|0)|0;f=P(f+h|0,-11295);h=f+(j+P(h,15326)|0)|0;J[b+128>>2]=l-h>>11;J[b+64>>2]=h+l>>11;g=o+(m+(p+P(g,-15083)|0)|0)|0;f=f+(i+q|0)|0;J[b+160>>2]=g-f>>11;J[b+32>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;r=r+1|0;if((r|0)!=8)continue;break}a=n+128|0;b=v;r=0;while(1){g=J[b+12>>2];m=J[b+4>>2];j=P(g+m|0,10935);n=J[b+24>>2];o=J[b+8>>2];q=P(n+o|0,9058);c=J[(r<<2)+d>>2]+e|0;s=J[b+28>>2];p= -s<<13;f=J[b+20>>2];l=f+m|0;k=P(l,9810);t=p+(k+(j+P(m,-9232)|0)|0)|0;x=q+P(o,2237)|0;i=(J[b>>2]<<13)+131072|0;h=J[b+16>>2];y=i+P(h,10438)|0;u=x+y|0;H[c|0]=K[a+(t+u>>>18&1023)|0];H[c+13|0]=K[a+(u-t>>>18&1023)|0];q=q+P(n,-14084)|0;t=i+P(h,2578)|0;u=q+t|0;w=j+P(g,-3474)|0;j=P(f+g|0,-1297)-p|0;w=w+j|0;H[c+1|0]=K[a+(u+w>>>18&1023)|0];H[c+12|0]=K[a+(u-w>>>18&1023)|0];j=j+(k+P(f,-19447)|0)|0;n=P(n,-11295)+P(o,5027)|0;o=i+P(h,-7223)|0;k=n+o|0;H[c+2|0]=K[a+(j+k>>>18&1023)|0];H[c+11|0]=K[a+(k-j>>>18&1023)|0]; -j=m-g|0;k=s+(j-f|0)<<13;h=i+P(h,-11586)|0;H[c+3|0]=K[a+(k+h>>>18&1023)|0];H[c+10|0]=K[a+(h-k>>>18&1023)|0];h=P(l,6164);i=p+P(f,-13850)|0;f=P(f-g|0,11512);i=h+(i+f|0)|0;n=o-n|0;H[c+4|0]=K[a+(i+n>>>18&1023)|0];H[c+9|0]=K[a+(n-i>>>18&1023)|0];f=f+P(g,5529)|0;g=P(j,3826)-p|0;f=f+g|0;p=t-q|0;H[c+5|0]=K[a+(f+p>>>18&1023)|0];H[c+8|0]=K[a+(p-f>>>18&1023)|0];g=g+(h+P(m,-8693)|0)|0;f=y-x|0;H[c+6|0]=K[a+(g+f>>>18&1023)|0];H[c+7|0]=K[a+(f-g>>>18&1023)|0];b=b+32|0;r=r+1|0;if((r|0)!=7)continue;break}bc=v+224|0} -function O7a(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;b=J[a+480>>2];J[a+136>>2]=J[b+16>>2];J[a+132>>2]=J[b+20>>2];a:{b:switch(J[a+88>>2]){case 0:if(J[a+120>>2]==3){J[b+4>>2]=317;return}J[b+4>>2]=318;return;case 1:c=J[a+120>>2];J[b+48>>2]=0;J[b+4>>2]=(c|0)==3?319:320;if(!J[b+28>>2])w3(a);if(J[b+52>>2])break a;e=J[a+120>>2];if((e|0)<=0)break a;h=J[a+480>>2];while(1){i=(f<<2)+h|0;b=J[i+32>>2];c=0;c:{d:{if(!f)break d;while(1){d=(c<<2)+h|0;if((b|0)!=J[d+32>>2]){c=c+1|0;if((f|0)!=(c|0))continue; -break d}break}g=J[d+52>>2];if(g)break c}b=(b<<9)-512|0;e=0;g=gc[J[J[a+4>>2]>>2]](a,1,1024)|0;while(1){c=(e<<6)+g|0;d=e<<4;J[c+60>>2]=(P(255-(K[d+54591|0]<<1)|0,255)|0)/(b|0);J[c+56>>2]=(P(255-(K[d+54590|0]<<1)|0,255)|0)/(b|0);J[c+52>>2]=(P(255-(K[d+54589|0]<<1)|0,255)|0)/(b|0);J[c+48>>2]=(P(255-(K[d+54588|0]<<1)|0,255)|0)/(b|0);J[c+44>>2]=(P(255-(K[d+54587|0]<<1)|0,255)|0)/(b|0);J[c+40>>2]=(P(255-(K[d+54586|0]<<1)|0,255)|0)/(b|0);J[c+36>>2]=(P(255-(K[d+54585|0]<<1)|0,255)|0)/(b|0);J[c+32>>2]=(P(255- -(K[d+54584|0]<<1)|0,255)|0)/(b|0);J[c+28>>2]=(P(255-(K[d+54583|0]<<1)|0,255)|0)/(b|0);J[c+24>>2]=(P(255-(K[d+54582|0]<<1)|0,255)|0)/(b|0);J[c+20>>2]=(P(255-(K[d+54581|0]<<1)|0,255)|0)/(b|0);J[c+16>>2]=(P(255-(K[d+54580|0]<<1)|0,255)|0)/(b|0);J[c+12>>2]=(P(255-(K[d+54579|0]<<1)|0,255)|0)/(b|0);J[c+8>>2]=(P(255-(K[d+54578|0]<<1)|0,255)|0)/(b|0);J[c+4>>2]=(P(255-(K[d+54577|0]<<1)|0,255)|0)/(b|0);J[c>>2]=(P(255-(K[d+54576|0]<<1)|0,255)|0)/(b|0);e=e+1|0;if((e|0)!=16)continue;break}e=J[a+120>>2]}J[i+52>> -2]=g;f=f+1|0;if((f|0)<(e|0))continue;break}break a;case 2:J[b+84>>2]=0;J[b+4>>2]=321;e:{if(J[b+68>>2]){d=J[a+120>>2];break e}if(J[a+120>>2]<=0)break a;e=(J[a+112>>2]<<1)+4|0;while(1){j=b+(c<<2)|0,k=gc[J[J[a+4>>2]+4>>2]](a,1,e)|0,J[j+68>>2]=k;c=c+1|0;d=J[a+120>>2];if((c|0)<(d|0))continue;break}}if((d|0)<=0)break a;d=(J[a+112>>2]<<1)+4|0;c=0;while(1){Le(J[(b+(c<<2)|0)+68>>2],d);c=c+1|0;if((c|0)>2])continue;break}break a;default:break b}b=J[a>>2];J[b+20>>2]=49;gc[J[b>>2]](a)}}function _k(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;a:{if((d|0)==-2147483648)break a;h=J[b+12>>2];if((h^2147483647)<(d|0))break a;i=0-d&d>>31;f=J[a+12>>2];o=(f|0)<(d+h|0)?f-d|0:h;if((i|0)>=(o|0))break a;g=c&-8;j=(c|0)>=0?g:0;h=J[b+8>>2]+c|0;f=J[a+8>>2];h=(f|0)>(h|0)?h:f;if((j|0)>=(h|0))break a;f=h&7;l=f?255<<8-f&254:255;k=c&7;q=c>>>3|0;r=0-c>>>3|0;n=255>>>f|0;if((j|0)!=(h-1&-8)){s=h-8|0;h=g+8|0;t=255<<8-k;u=(c|0)<0;while(1){c=J[a+20>>2]+P(J[a+16>>2],d+i|0)|0;b:{if(!u){f=c+ -q|0;c=K[f|0];g=J[b+20>>2]+P(J[b+16>>2],i)|0;m=K[g|0];c:{d:switch(e|0){case 0:c=m>>>k|c;break c;case 1:c=(m|65280)>>>k&c;break c;case 2:c=m>>>k^c;break c;case 3:c=(m^255)>>>k^c;break c;case 4:break d;default:break c}c=c&t|m>>>k}H[f|0]=c;c=f+1|0;f=h;break b}g=(J[b+20>>2]+P(J[b+16>>2],i)|0)+r|0;m=K[g|0];f=0}p=g+1|0;if((f|0)<(s|0))while(1){j=m<<8;m=K[p|0];j=(j|m)>>>k|0;g=K[c|0];e:{f:switch(e|0){case 0:g=g|j;break e;case 1:g=g&j;break e;case 2:g=g^j;break e;case 3:g=g^j^-1;break e;case 4:break f;default:break e}g= -j}H[c|0]=g;p=p+1|0;c=c+1|0;f=f+8|0;if((s|0)>(f|0))continue;break}f=(K[p|0]|m<<8)>>>k|0;g=K[c|0];g:{h:switch(e|0){case 0:g=f&l|g;break g;case 1:g=(f|n)&g;break g;case 2:g=f&l^g;break g;case 3:g=(f^-1)&l^g;break g;case 4:break h;default:break g}g=f&l|g&n}H[c|0]=g;i=i+1|0;if((o|0)>(i|0))continue;break}break a}if((c|0)>=0){h=255>>>k&l^-1;while(1){j=K[J[b+20>>2]+P(J[b+16>>2],i)|0];f=(J[a+20>>2]+P(J[a+16>>2],d+i|0)|0)+q|0;c=K[f|0];i:{j:switch(e|0){case 4:c=j>>>k&l|c&h;break i;case 3:c=(j^255)>>>k&l^c;break i; -case 2:c=j>>>k&l^c;break i;case 1:c=((j|65280)>>>k|n)&c;break i;case 0:break j;default:break i}c=j>>>k&l|c}H[f|0]=c;i=i+1|0;if((o|0)>(i|0))continue;break}break a}while(1){f=J[a+20>>2]+P(J[a+16>>2],d+i|0)|0;c=K[f|0];h=K[(J[b+20>>2]+P(J[b+16>>2],i)|0)+r|0];k:{l:switch(e|0){case 4:c=h&l|c&n;break k;case 3:c=(h^-1)&l^c;break k;case 2:c=h&l^c;break k;case 1:c=(h|n)&c;break k;case 0:break l;default:break k}c=h&l|c}H[f|0]=c;i=i+1|0;if((o|0)>(i|0))continue;break}}}function xta(a,b,c){a=a|0;b=b|0;c=c|0;var d= -0,e=0,f=0,g=0;d=bc+-64|0;bc=d;J[d+60>>2]=c;J[a>>2]=0;a:{if(J[b+8>>2]){e=J[b+12>>2];J[695492]=0;g=ha(5043,d+48|0,d+56|0,32768,1)|0;c=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{i:{if((c|0)!=1){c=J[J[b>>2]+20>>2];J[695492]=0;c=$(c|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;c=ga(5470,d+36|0,1,(c?0:2381340)|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;f=J[d+56>>2];H[f+32767|0]=0;dR(f,e,J[d+60>>2]);e=J[d+56>>2];if(!K[e+32767|0])break f;J[695492]=0;d=ja(5018,d+12|0,2381657,2374069, -1664,2414266,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;_(5019,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break g;B()}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;Fc(d);break e}J[695492]=0;f=d+12|0;ca(5467,f|0,b|0,e|0);b=J[695492];J[695492]=0;j:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;a=J[d+12>>2];J[d+12>>2]=0;k:{if(!a)break k;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(b)break k; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}b=J[c>>2];if(!b)break b;l:{m:{if(!J[b+8>>2]){J[c>>2]=0;break m}a=J[b+12>>2];b=J[c+8>>2];J[695492]=0;aa(5471,b|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;b=J[c>>2];J[c>>2]=0;if(!b)break b}J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[695492];J[695492]=0;if((c|0)!=1){if(a)break b;J[695492]=0;_(4987,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}break a}b=Z()|0;break e}b=Z()|0;vc(d+12|0)}n:{d=J[c>>2];if(!d){J[c>>2]= -0;break n}o:{p:{if(!J[d+8>>2]){J[c>>2]=0;break p}d=J[d+12>>2];e=J[c+8>>2];J[695492]=0;aa(5471,e|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break o;d=J[c>>2];J[c>>2]=0;if(!d)break n}J[695492]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break o;if(c)break n;J[695492]=0;_(4987,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break o;break n}ea(0)|0;yc();B()}}_c(g)}vc(a);ba(b|0);B()}_c(g)}bc=d- -64|0;return}ea(0)|0;yc();B()}function hT(a,b,c,d,e,f,g,h,i,j){var k=0,l=0,m=0,n=0,o=0,p=0, -q=0,r=0;k=bc-48|0;bc=k;a:{b:{c:{if(!g){l=gc[J[J[a>>2]+20>>2]](a)|0;if(!l){c=0;break b}g=gc[J[J[l>>2]+52>>2]](l)|0;n=_w();q=n,r=gc[J[J[l>>2]+24>>2]](l)|0,p=J[J[n>>2]+24>>2],gc[p](q|0,r|0);gc[J[J[g>>2]+68>>2]](g,n);break c}gc[J[J[g>>2]+8>>2]](g)|0}l=gL();gc[J[J[l>>2]+460>>2]](l,g);gc[J[J[a>>2]+40>>2]](a,b,k+24|0,k+16|0,k+40|0,k+32|0);if((c|0)>0)m=+(c|0);else{m=O[k+24>>3];d:{if(R(m)<2147483648){c=~~m;break d}c=-2147483648}m=+(P(c,96)|0)/O[k+40>>3]}e:{if(R(m)<2147483648){c=~~m;break e}c=-2147483648}J[k+ -12>>2]=c;if((d|0)>0)m=+(d|0);else{m=O[k+16>>3];f:{if(R(m)<2147483648){d=~~m;break f}d=-2147483648}m=+(P(d,96)|0)/O[k+32>>3]}g:{if(R(m)<2147483648){d=~~m;break g}d=-2147483648}J[k+8>>2]=d;n=P(c,d);c=n<<2;d=Bn(c);if(!d){gc[J[J[g>>2]+12>>2]](g)|0;gc[J[J[l>>2]+4>>2]](l);c=0;break b}h:{if((h|0)==16777215){wc(d,255,c);break h}if(!n)break h;j=j<<24|h;c=d;if(n>>>0>=8){o=n&-8;h=0;while(1){J[c+28>>2]=j;J[c+24>>2]=j;J[c+20>>2]=j;J[c+16>>2]=j;J[c+12>>2]=j;J[c+8>>2]=j;J[c+4>>2]=j;J[c>>2]=j;c=c+32|0;h=h+8|0;if((o| -0)!=(h|0))continue;break}}n=n&7;if(!n)break h;h=0;while(1){J[c>>2]=j;c=c+4|0;h=h+1|0;if((n|0)!=(h|0))continue;break}}c=rc(48);J[695492]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;h=J[695492];J[695492]=0;if((h|0)==1)break a;J[c+16>>2]=d;J[c+4>>2]=J[k+12>>2];J[c+8>>2]=J[k+8>>2];J[k+4>>2]=P(J[k+12>>2],e?4:-4);d=k+4|0;J[c+12>>2]= -J[d>>2];gc[J[J[l>>2]+488>>2]](l,c);gc[J[J[l>>2]+480>>2]](l,f);if(i){J[k+4>>2]=1;gc[J[J[l>>2]+416>>2]](l,2427004,d)|0}if(!(gc[J[J[a>>2]+24>>2]](a)|0)){O[k+24>>3]=O[k+24>>3]*(25.4/O[k+40>>3]);O[k+16>>3]=O[k+16>>3]*(25.4/O[k+32>>3])}gc[J[J[l>>2]+36>>2]](l,k+24|0)|0;gc[J[J[l>>2]+28>>2]](l,k+16|0)|0;H[k+4|0]=0;gc[J[J[a>>2]+44>>2]](a,l,b,k+4|0);gc[J[J[g>>2]+12>>2]](g)|0;gc[J[J[l>>2]+4>>2]](l)}bc=k+48|0;return c}a=Z()|0;qc(c);ba(a|0);B()}function GHa(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;f=bc-80|0;bc=f;J[f+76>>2]=1;e=J[a+188>>2];d=J[e+40>>2];a:{b:{if(d)break b;d=P(J[a+108>>2],J[a+104>>2]);J[e+36>>2]=d;d=ye(d,40);e=J[a+188>>2];J[e+40>>2]=d;if(!d){e=0;break a}if(!J[e+36>>2])break b;while(1){e=0;h=P(g,40);d=h+d|0;J[d+20>>2]=0;J[d+28>>2]=100;j=ye(100,24);i=J[a+188>>2];d=J[i+40>>2];J[(h+d|0)+24>>2]=j;if(!j)break a;g=g+1|0;if(g>>>0>2])continue;break}}j=J[a+44>>2];c:{if(!J[d+16>>2])break c;d:{d=P(j,40)+d|0;if(!J[d+4>>2]){d=J[a+52>>2];e=J[a+48>>2]+2|0;d=e>>>0<2?d+1|0:d;if(qA(b, -e,d,c))break d;e=0;Hc(c,1,2359252,0);break a}d=J[d+16>>2];e=J[d>>2];d=J[d+4>>2];e=e+2|0;d=e>>>0<2?d+1|0:d;if(qA(b,e,d,c))break d;e=0;Hc(c,1,2359252,0);break a}if(J[a+8>>2]!=256)break c;J[a+8>>2]=8}h=P(J[a+108>>2],J[a+104>>2]);e:{if(!h)break e;e=J[a+156>>2];d=0;if(h>>>0>=8){i=h&-8;g=0;while(1){J[(e+P(d,5644)|0)+5588>>2]=-1;J[(e+P(d|1,5644)|0)+5588>>2]=-1;J[(e+P(d|2,5644)|0)+5588>>2]=-1;J[(e+P(d|3,5644)|0)+5588>>2]=-1;J[(e+P(d|4,5644)|0)+5588>>2]=-1;J[(e+P(d|5,5644)|0)+5588>>2]=-1;J[(e+P(d|6,5644)| -0)+5588>>2]=-1;J[(e+P(d|7,5644)|0)+5588>>2]=-1;d=d+8|0;g=g+8|0;if((i|0)!=(g|0))continue;break}}g=h&7;if(!g)break e;while(1){J[(e+P(d,5644)|0)+5588>>2]=-1;d=d+1|0;k=k+1|0;if((g|0)!=(k|0))continue;break}}e=0;if(!Xs(a,f+72|0,0,f+68|0,f- -64|0,f+60|0,f+56|0,f+52|0,f+76|0,b,c))break a;h=j+1|0;while(1){f:{if(!J[f+76>>2])break f;d=J[f+72>>2];if(!Cv(a,d,0,0,b,c))break a;i=J[a+104>>2];k=J[a+108>>2];g=d+1|0;J[f+32>>2]=g;J[f+36>>2]=P(i,k);Hc(c,4,2358936,f+32|0);if(!WW(J[a+196>>2],J[J[a+76>>2]+24>>2]))break a; -e=J[a+156>>2]+P(d,5644)|0;i=J[e+5596>>2];if(i){qc(i);J[e+5596>>2]=0;J[e+5600>>2]=0}J[f+16>>2]=g;Hc(c,4,2358966,f+16|0);if((d|0)==(j|0)){d=J[a+188>>2];e=J[d+8>>2];d=J[d+12>>2];e=e+2|0;d=e>>>0<2?d+1|0:d;if(qA(b,e,d,c))break f;e=0;Hc(c,1,2359252,0);break a}J[f+4>>2]=h;J[f>>2]=g;Hc(c,2,2359280,f);e=0;if(Xs(a,f+72|0,0,f+68|0,f- -64|0,f+60|0,f+56|0,f+52|0,f+76|0,b,c))continue;break a}break}e=VW(a,c)}bc=f+80|0;return e|0}function _4(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;i=bc-16|0;bc=i;g=J[b>>2];e=g<<1;f=i+12|0;u=a,v=Sc(d,4,0,e,0,f),J[u+12>>2]=v;a:{if(J[i+12>>2])break a;u=a,v=Sc(d,28,0,g,0,f),J[u+8>>2]=v;if(J[i+12>>2])break a;u=a,v=Sc(d,16,0,e|1,0,f),J[u+24>>2]=v;if(J[i+12>>2])break a;J[a>>2]=g;J[a+28>>2]=0;J[a+20>>2]=0;J[a+4>>2]=0;J[a+16>>2]=J[a+12>>2]+(g<<2);b:{if(!g)break b;d=J[a+8>>2];b=J[b+8>>2];h=g&3;c:{if(!h){e=g;break c}f=0;e=g;while(1){J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];b=b+12|0;d=d+28|0;e=e-1|0;f=f+1|0;if((h|0)!=(f|0))continue; +break}break a;case 2:break f;default:break a}if(d>>>0<4)break d;a=J[a+88>>2];b=d-4|0;if(!(b&4)){c=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=c;c=K[a+1|0];H[a+1|0]=K[a+2|0];H[a+2|0]=c;d=b;a=a+4|0}if(b>>>0<4)break d;while(1){b=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=b;b=K[a+1|0];H[a+1|0]=K[a+2|0];H[a+2|0]=b;b=K[a+4|0];H[a+4|0]=K[a+7|0];H[a+7|0]=b;b=K[a+5|0];H[a+5|0]=K[a+6|0];H[a+6|0]=b;a=a+8|0;d=d-8|0;if(d>>>0>3)continue;break}}b=0}return b|0}function Fha(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=fc-448|0;fc=j;J[j+16>>2]=f;J[j+20>>2]=g;J[j+24>>2]=h;J[j+28>>2]=i;a=j+336|0;J[j+332>>2]=a;k=Wi(a,100,13193,j+16|0);J[j+48>>2]=1617;a=j+48|0;p=Bg(j+216|0,0,a);J[j+48>>2]=1617;l=Bg(j+208|0,0,a);n=j+224|0;a:{b:{c:{d:{if(k>>>0>=100){J[699344]=0;a=pa(6851)|0;k=J[699344];J[699344]=0;if((k|0)==1)break d;J[j>>2]=f;J[j+4>>2]=g;J[699344]=0;J[j+8>>2]=h;J[j+12>>2]=i;k=ha(6872,j+332|0,a|0,13193,j|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;e:{if((k|0)!= +-1){zh(p,J[j+332>>2]);zh(l,Dc(k));if(J[l>>2])break e}J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;break a}n=J[l>>2]}J[699344]=0;f=j+204|0;a=J[d+28>>2];J[f>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){J[699344]=0;r=_(6826,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;a=J[j+332>>2];ha(6847,r|0,a|0,a+k|0,n|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;q=(k|0)>0?K[J[j+332>>2]]==45:q;h=Ze(j+184|0);f=Ze(j+172|0);g=Ze(j+160|0); +J[699344]=0;Ka(6910,c|0,q|0,j+204|0,j+200|0,j+199|0,j+198|0,h|0,f|0,g|0,j+156|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;J[j+36>>2]=1617;i=Bg(j+40|0,0,j+36|0);c=j+48|0;a=J[j+156>>2];l:{if((a|0)<(k|0)){if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;if(K[g+11|0]>>>7|0)o=J[g+4>>2];else o=K[g+11|0]&127;a=(a+(m+(o+(k-a<<1)|0)|0)|0)+1|0;break l}o=J[j+156>>2];if(K[g+11|0]>>>7|0)a=J[g+4>>2];else a=K[g+11|0]&127;if(K[f+11|0]>>>7|0)m=J[f+4>>2];else m=K[f+11|0]&127;a=(o+(a+m|0)|0)+2|0}if(a>>>0<101)break i; +zh(i,Dc(a));c=J[i>>2];if(c)break i;J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break h}k=Z()|0;break b}k=Z()|0;break f}k=Z()|0;break g}a=J[d+4>>2];J[699344]=0;Qa(6911,c|0,j+36|0,j+32|0,a|0,n|0,k+n|0,r|0,q|0,j+200|0,H[j+199|0],H[j+198|0],h|0,f|0,g|0,J[j+156>>2]);a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;c=ja(6874,b|0,c|0,J[j+36>>2],J[j+32>>2],d|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c}}k=Z()|0;Ie(i)}jd(g);jd(f);jd(h)}a=J[j+204>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b; +if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);break b}k=Z()|0;break b}Ie(i);jd(g);jd(f);jd(h);a=J[j+204>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);Ie(l);Ie(p);fc=j+448|0;return c|0}Ie(l);Ie(p);ba(k|0);B()}B()}function ttb(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;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;d=J[a+428>>2];h=K[b+33|0];H[d+8|0]=h;t=d+8|0;a:{if(!J[b+36>>2]){f=1;break a}e=J[b+40>>2];r=J[e+28>>2];H[d+9|0]=K[e|0];b:{if(K[b+ +33|0]!=16){c=J[e+8>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=c>>>16;H[d+13|0]=c>>>24;c=J[e+16>>2];H[d+15|0]=c>>>16;H[d+14|0]=c>>>24;g=26;f=25;i=23;j=22;k=21;l=20;m=19;n=18;o=17;p=24;q=16;break b}c=J[e+4>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=c>>>16;H[d+13|0]=c>>>24;c=J[e+8>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+14|0]=c;H[d+15|0]=c>>>8;H[d+16|0]=c>>>16;H[d+17|0]=c>>>24;c=J[e+12>>2];c=c<<24|(c&65280)<< +8|(c>>>8&65280|c>>>24);H[d+18|0]=c;H[d+19|0]=c>>>8;H[d+20|0]=c>>>16;H[d+21|0]=c>>>24;c=J[e+16>>2];H[d+23|0]=c>>>16;H[d+22|0]=c>>>24;g=34;f=33;i=31;j=30;k=29;l=28;m=27;n=26;o=25;p=32;q=24}H[q+d|0]=c>>>8;H[d+o|0]=c;c=J[e+20>>2];H[d+n|0]=c>>>24;H[d+m|0]=c>>>16;H[d+l|0]=c>>>8;H[d+k|0]=c;c=J[e+24>>2];H[d+j|0]=c>>>24;H[d+i|0]=c>>>16;H[d+p|0]=c>>>8;H[d+f|0]=c;d=d+g|0;c=J[e+28>>2];if(c)d=xc(d,J[e+32>>2],c)+J[e+28>>2]|0;q=(h|0)==16?25:17;f=(r+q|0)+1|0;if(M[b+36>>2]<2)break a;g=1;while(1){H[d|0]=0;u=J[e- -64>> +2];H[d+1|0]=K[e+36|0];c:{if(K[b+33|0]==16){c=J[e+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+2|0]=c;H[d+3|0]=c>>>8;H[d+4|0]=c>>>16;H[d+5|0]=c>>>24;c=J[e+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+6|0]=c;H[d+7|0]=c>>>8;H[d+8|0]=c>>>16;H[d+9|0]=c>>>24;c=J[e+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=c>>>16;H[d+13|0]=c>>>24;c=J[e+52>>2];H[d+15|0]=c>>>16;H[d+14|0]=c>>>24;i=26;j=25;k=23;l=22;m=21;n=20;o=19;p=18;h=17;r=24;s=16;break c}c=J[e+ +44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+2|0]=c;H[d+3|0]=c>>>8;H[d+4|0]=c>>>16;H[d+5|0]=c>>>24;c=J[e+52>>2];H[d+7|0]=c>>>16;H[d+6|0]=c>>>24;i=18;j=17;k=15;l=14;m=13;n=12;o=11;p=10;h=9;r=16;s=8}H[s+d|0]=c>>>8;H[d+h|0]=c;c=J[e+56>>2];H[d+p|0]=c>>>24;H[d+o|0]=c>>>16;H[d+n|0]=c>>>8;H[d+m|0]=c;c=J[e+60>>2];H[d+l|0]=c>>>24;H[d+k|0]=c>>>16;H[d+r|0]=c>>>8;H[d+j|0]=c;d=d+i|0;c=J[e+64>>2];if(c)d=xc(d,J[e+68>>2],c)+J[e+64>>2]|0;f=((f+q|0)+u|0)+1|0;e=e+36|0;g=g+1|0;if(g>>>0>2])continue;break}}return Ce(a, +J[b>>2],f,t)|0}function X4(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;d=fc-48|0;fc=d;j=a+108|0;a:{f=J[a+108>>2];g=J[a+112>>2];b:{if((f|0)==(g|0)){if(J[a+116>>2]!=(f|0)){J[f>>2]=J[b>>2];c=J[b+4>>2];J[f+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[a+112>>2]=f+8;break b}J[699344]=0;da(2506,j|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}m=g-f>>3;if((m|0)>0){p=m-1|0;g=J[b>>2];while(1){J[d+8>>2]=0;h=d+24|0;a=g;f=g+216|0;g=d+8|0;ah(h,a,f,g);a=p+q>>1;n= +a<<3;f=J[n+J[j>>2]>>2];J[d+44>>2]=0;i=d+44|0;ah(g,f,f+216|0,i);e=O[d+8>>3]-O[d+24>>3];k=e*e;e=O[d+16>>3]-O[d+32>>3];if(J[J[b>>2]+56>>2]==J[J[J[j>>2]+n>>2]+56>>2]&Y(k+e*e)<=1E-7)break b;c:{if(!c)break c;f=J[b>>2];J[d+8>>2]=0;ah(h,f,f+216|0,g);f=J[J[b>>2]+228>>2];J[d+44>>2]=0;ah(g,f,f+216|0,i);e=O[d+8>>3]-O[d+24>>3];k=e*e;e=O[d+16>>3]-O[d+32>>3];if(Y(k+e*e)>1E-7)break b;f=a;d:{if((f|0)<0)break d;while(1){g=J[b>>2];J[d+8>>2]=0;o=d+24|0;i=d+8|0;ah(o,g,g+216|0,i);g=f;f=f-1|0;h=(((f|0)%(m|0)|0)+m|0)%(m| +0)<<3;l=J[h+J[j>>2]>>2];J[d+44>>2]=0;r=d+44|0;ah(i,l,l+216|0,r);e=O[d+8>>3]-O[d+24>>3];k=e*e;e=O[d+16>>3]-O[d+32>>3];if(Y(k+e*e)>1E-7)break d;l=J[b>>2];J[d+8>>2]=0;ah(o,l,l+216|0,i);l=J[h+J[j>>2]>>2];J[d+44>>2]=0;ah(i,l,l+216|0,r);e=O[d+8>>3]-O[d+24>>3];k=e*e;e=O[d+16>>3]-O[d+32>>3];if(J[J[b>>2]+56>>2]==J[J[h+J[j>>2]>>2]+56>>2]&Y(k+e*e)<=1E-7)break b;if(g)continue;break}}g=a;if((m|0)<=(a|0))break c;while(1){f=J[b>>2];J[d+8>>2]=0;l=d+24|0;h=f;i=f+216|0;f=d+8|0;ah(l,h,i,f);g=g+1|0;i=(((g|0)%(m|0)|0)+ +m|0)%(m|0)<<3;h=J[i+J[j>>2]>>2];J[d+44>>2]=0;o=d+44|0;ah(f,h,h+216|0,o);e=O[d+8>>3]-O[d+24>>3];k=e*e;e=O[d+16>>3]-O[d+32>>3];if(Y(k+e*e)>1E-7)break c;h=J[b>>2];J[d+8>>2]=0;ah(l,h,h+216|0,f);h=J[i+J[j>>2]>>2];J[d+44>>2]=0;ah(f,h,h+216|0,o);e=O[d+8>>3]-O[d+24>>3];k=e*e;e=O[d+16>>3]-O[d+32>>3];if(J[J[b>>2]+56>>2]==J[J[i+J[j>>2]>>2]+56>>2]&Y(k+e*e)<=1E-7)break b;if((g|0)!=(m|0))continue;break}}g=J[b>>2];i=J[g+56>>2];f=J[j>>2];n=J[n+f>>2];h=J[n+56>>2];i=((h|0)==(i|0)?O[g+216>>3]+ +J[g+52>>2]-(O[n+216>> +3]+ +J[n+52>>2]):+(i-h|0))<0;q=i?q:a+1|0;p=i?a-1|0:p;if((q|0)<=(p|0))continue;break}}J[699344]=0;ga(2507,j|0,(q<<3)+f|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[b+4>>2];e:{if(!a)break e;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break e;kc[J[J[a>>2]+8>>2]](a);Gc(a)}fc=d+48|0;return}a=Z()|0;je(b);ba(a|0);B()}function hub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=J[a+8>>2];if((g&-2)!=2){Jc(a,1030,0,0);return 1030}a:{b:{c:{d:{e:{if(!((g|0)!=3|M[a+272>>2]<2)|(K[a+286| +0]|K[a+287|0]))break e;if(K[a+288|0]|K[a+289|0])break e;if((c|0)!=16){Jc(a,1028,0,0);return 1028}H[a+289|0]=1;c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+316>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+320>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);g=K[d+8|0];H[a+336|0]=g;f=K[d+9|0];H[a+337|0]=f;k=K[d+10|0];H[a+338|0]=k;l=K[d+11|0];H[a+339|0]=l;c=K[d+12|0];H[a+340|0]=c;h=K[d+13|0];H[a+341|0]=h;i=K[d+14|0];H[a+342|0]=i;j=K[d+15|0];H[a+ +343|0]=j;if(!(1<>>0<=14:0)){Jc(a,1037,0,0);return 1037}if(!(1<>>0<=20:0))break d;if((k|0)!=8)break c;f:switch(l|0){case 0:case 8:break f;default:break b}g:{h:switch(g-12|0){case 0:case 2:if(!(1<>>0<=16:0))break d;i:{j:switch(h|0){case 0:break i;case 8:break j;default:break c}if((c|0)==8)break i;break d}if(i)break a;if(j>>>0<2)break g;break b;default:break h}if(c)break d;if(h)break c;if(i)break a;if(!j)break g;break b}k:{l:{if(K[a+284|0])break l;J[a+12>>2]=3;H[a+ +284|0]=1;f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+16>>2]=h;f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+20>>2]=f;m:switch(g-12|0){default:c=0;break;case 0:case 2:break m}H[a+44|0]=c;if(!(h>>>0<=M[a+124>>2]&f>>>0<=M[a+128>>2])){c=4097;if(!Jc(a,4097,0,0))break k}c=J[a+188>>2];if(!c)break l;if(kc[c|0](a,J[a+16>>2],J[a+20>>2])|0)break l;Jc(a,904,0,0);return 904}H[a+325|0]=0;J[a+48>>2]=J[a+48>>2]+ +1;c=CO(a);if(c)break k;if(K[a+112|0]){c=kc[J[b+4>>2]](a,b,e)|0;if(c)break k;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+32>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+40|0]=K[d+8|0];H[a+41|0]=K[d+9|0];H[a+42|0]=K[d+10|0];H[a+43|0]=K[d+11|0];H[a+44|0]=K[d+12|0];H[a+45|0]=K[d+13|0];H[a+46|0]=K[d+14|0];H[a+47|0]=K[d+15|0]}c=0}return c|0}Jc(a,1029,0,0);return 1029}Jc(a,1036,0,0); +return 1036}Jc(a,1038,0,0);return 1038}Jc(a,1040,0,0);return 1040}Jc(a,1039,0,0);return 1039}function Z0(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=fc-32|0;fc=f;g=J[a+36>>2];e=J[g+20>>2];a:{b:{d=J[g+16>>2];b=K[d|0];c:{if(((b&223)-65&255)>>>0>=26){if((b|0)!=95)break b;if(d>>>0>>0)break c;break b}if(d>>>0>=e>>>0)break b}b=d;while(1){d:{c=b;b=b+1|0;c=K[c+1|0];if(!((c-48&255)>>>0<10|((c&223)-65&255)>>>0<26|c-45>>>0<2))if((c|0)!=95)break d;if(b>>>0>>0)continue}break}if(c<<24>>24<=0|b>>>0>=e>>>0)break b; +e=b-d|0;if(!(K[a+362|0]&8|(e|0)<50001)){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break a}J[a+84>>2]=110;J[f+4>>2]=14131;J[f>>2]=6556;c=0;Hc(0,0,0,a,0,1,110,3,14131,0,0,0,32777,f);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}c=te(J[a+296>>2],d,e);d=J[a+36>>2];J[d+16>>2]=b;J[a+200>>2]=e+J[a+200>>2];J[d+32>>2]=e+J[d+32>>2];if(c)break a;c=0;se(a,0);break a}if(!(J[a+292>>2]|(e-d|0)>249)){Rd(a);g=J[a+36>>2];d=J[g+16>>2]}e=J[g+12>>2];c=0;e:{f:{b=Mf(a,f+28|0);switch(b-47|0){case 0:case 15:break a; +case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break e;default:break f}}if((b|0)==32)break a}if(!t1(J[a+360>>2],b)|(b|0)==58)break a;g=d-e|0;e=0;while(1){g:{h:switch(b-47|0){default:if((b|0)==32)break g;break;case 0:case 15:break g;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break h}if(!Kr(J[a+360>>2],b)|(b|0)==58)break g;i:{if((c|0)<101){c=c+1|0;break i}if(!(K[a+362|0]&8|(e|0)<50001)){Xe(a, +110,14131);c=0;break a}j:{if(J[a+292>>2])break j;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break j;Rd(a)}c=0;if(J[a+172>>2]==-1)break a}b=J[a+36>>2];d=J[b+16>>2];k:{if(K[d|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break k}J[b+32>>2]=J[b+32>>2]+1}h=b;b=J[f+28>>2];d=b+d|0;J[h+16>>2]=d;if(K[d|0]==37)Yd(a);e=b+e|0;b=Mf(a,f+28|0);if(b)continue;b=J[a+36>>2];d=J[f+28>>2];c=J[b+16>>2]-d|0;J[b+16>>2]=c;if(!(J[a+292>>2]|(J[b+20>>2]-c|0)>249)){Rd(a);b=J[a+36>>2];c=J[b+16>>2];d=J[f+28>>2]}J[b+16>>2]=c+ +d;c=0;if(J[a+172>>2]==-1)break a;b=Mf(a,f+28|0);continue}break}if(!(K[a+362|0]&8|(e|0)<50001)){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break a}J[a+84>>2]=110;J[f+20>>2]=14131;J[f+16>>2]=6556;c=0;Hc(0,0,0,a,0,1,110,3,14131,0,0,0,32777,f+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}c=te(J[a+296>>2],g+J[J[a+36>>2]+12>>2]|0,e)}fc=f+32|0;return c}function Z3(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;j=fc-32|0;fc=j;f=J[b>>2];h=J[b+4>>2];J[j+28>>2]=0;a:{b:{if(!kN(j+ +28|0)){m=Dc(32);d=m;J[d+24>>2]=1768386675;J[d+28>>2]=0;J[d+16>>2]=1768386662;J[d+20>>2]=0;J[d+8>>2]=1768386675;J[d+12>>2]=0;J[d>>2]=1768386662;J[d+4>>2]=0;k=(h-f|0)/12|0;if((f|0)!=(h|0))while(1){h=j+8|0;J[h+12>>2]=0;J[h+4>>2]=0;J[h+8>>2]=0;J[h>>2]=415588;d=J[b>>2];J[699344]=0;f=P(e,12);d=ga(3,h|0,f+d|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(d){J[699344]=0;d=J[h+12>>2];g=J[699344];J[699344]=0;if((g|0)==1)break a;i=(d|0)<(i|0)?i:d;if((d|0)>=100000001){g=f+J[b>>2]|0;f=g;d=f+12|0;l=J[b+4>> +2];if((d|0)!=(l|0)){while(1){if(H[f+11|0]<0)uc(J[f>>2]);n=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=n;J[f+8>>2]=J[d+8>>2];H[d+11|0]=0;J[d>>2]=0;f=f+12|0;d=d+12|0;if((l|0)!=(d|0))continue;break}d=J[b+4>>2]}g=g+P((f-g|0)/12|0,12)|0;if((g|0)!=(d|0))while(1){f=d-12|0;if(H[d-1|0]<0)uc(J[f>>2]);d=f;if((g|0)!=(d|0))continue;break}J[b+4>>2]=g;k=k-1|0;e=e-1|0}}De(h);e=e+1|0;if(k>>>0>e>>>0)continue;break}h=vc(i);c:{if(!k)break c;i=0;if(!(c&2)){while(1){d:{e=j+8|0;J[e+4>>2]=1;J[e>>2]=347804;J[e+8>>2]=0;J[e+12>>2]= +0;J[e>>2]=351848;H[e+16|0]=0;d=J[b>>2];J[699344]=0;f=d;d=P(i,12);f=ga(2852,e|0,f+d|0,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(f){f=J[b>>2];J[699344]=0;la(2984,a|0,J[j+28>>2],m|0,d+f|0,e|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break d}lD(e);i=i+1|0;if((k|0)!=(i|0))continue;break c}break}break b}while(1){g=P(i,12);e=g+J[b>>2]|0;d=K[e+11|0];f=d<<24>>24<0;d=f?J[e+4>>2]:d;e:{f:{if((d|0)<6)break f;e=f?J[e>>2]:e;l=e+(d<<2)|0;f=e;while(1){d=og(f,46,d-5|0);if(!d)break f;if(qd(d,352756,6)){f= +d+4|0;d=l-f>>2;if((d|0)>=6)continue;break f}break}if((d|0)==(l|0))break f;d=d-e|0;if((d|0)==-4)break f;f=g+J[b>>2]|0;e=K[f+11|0];if(((e<<24>>24<0?J[f+4>>2]:e)-6|0)==d>>2)break e}e=j+8|0;J[e+4>>2]=1;J[e>>2]=347804;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=351848;H[e+16|0]=0;d=J[b>>2];J[699344]=0;d=ga(2852,e|0,d+g|0,h|0)|0;f=J[699344];J[699344]=0;g:{if((f|0)!=1){if(!d)break g;d=J[b>>2];J[699344]=0;la(2984,a|0,J[j+28>>2],m|0,d+g|0,e|0,c|0);d=J[699344];J[699344]=0;if((d|0)!=1)break g}break b}lD(e)}i=i+1|0;if((k| +0)!=(i|0))continue;break}}uc(h);uc(m);jN(J[j+28>>2])}fc=j+32|0;return}a=Z()|0;lD(j+8|0);ba(a|0);B()}a=Z()|0;De(h);ba(a|0);B()}function xwa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;j=fc-16|0;fc=j;k=((e<<2)+b|0)+(h<<2)|0;n=(P(g,10)|0)/4|0;o=(h<<1)+e|0;a:{if(f&3|e&1){if(!f|!e)break a;while(1){g=(f|0)==1;h=e;while(1){c=K[i+9|0];d=K[i+8|0];b:switch(h-1|0){default:if(!g){ie(J[a+68>>2],K[i+7|0],d,c,j+12|0,j+8|0,j+4|0);J[k+12>>2]=J[j+12>>2]|J[j+ +8>>2]<<8|J[j+4>>2]<<16|-16777216}ie(J[a+68>>2],K[i+3|0],d,c,j+12|0,j+8|0,j+4|0);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 2:if(!g){ie(J[a+68>>2],K[i+6|0],d,c,j+12|0,j+8|0,j+4|0);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}ie(J[a+68>>2],K[i+2|0],d,c,j+12|0,j+8|0,j+4|0);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:if(!g){ie(J[a+68>>2],K[i+5|0],d,c,j+12|0,j+8|0,j+4|0);J[k+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}ie(J[a+68>>2],K[i+1| +0],d,c,j+12|0,j+8|0,j+4|0);J[b+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;case 0:break b}if(!g){ie(J[a+68>>2],K[i+4|0],d,c,j+12|0,j+8|0,j+4|0);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216}ie(J[a+68>>2],K[i|0],d,c,j+12|0,j+8|0,j+4|0);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+10|0;c=(h>>>0>=4?4:h)<<2;b=c+b|0;k=c+k|0;c=h>>>0>4;h=h-4|0;if(c)continue;break}if(f>>>0<3)break a;i=i+n|0;f=f-2|0;c=o<<2;k=c+k|0;b=b+c|0;continue}}if(f>>>0<2)break a;d=e>>>2|0;while(1){c= +d;while(1){e=K[i+8|0];g=K[i+9|0];h=j+12|0;l=j+8|0;m=j+4|0;ie(J[a+68>>2],K[i|0],e,g,h,l,m);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+1|0],e,g,h,l,m);J[b+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+2|0],e,g,h,l,m);J[b+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+3|0],e,g,h,l,m);J[b+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+4|0],e,g,h,l,m);J[k>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16| +-16777216;ie(J[a+68>>2],K[i+5|0],e,g,h,l,m);J[k+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+6|0],e,g,h,l,m);J[k+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+7|0],e,g,h,l,m);J[k+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=i+10|0;k=k+16|0;b=b+16|0;c=c-1|0;if(c)continue;break}i=i+n|0;c=o<<2;k=c+k|0;b=b+c|0;f=f-2|0;if(f>>>0>1)continue;break}}fc=j+16|0}function Ljb(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;f=fc-16|0;fc=f;l=J[a+100>>2];J[f+8>>2]=0;c=kc[J[a+516>>2]](a,1129333068,b,f+4|0)|0;J[f+12>>2]=c;a:{b:{if(c)break b;c=J[f+4>>2];c:{if(c>>>0<12)break c;c=Oi(b,c,f+8|0);J[f+12>>2]=c;if(c)break b;d=J[f+8>>2];m=f+12|0;k=he(l,20,m);if(J[f+12>>2])break b;c=K[d|0]|K[d+1|0]<<8;c=c<<8|c>>>8;I[k>>1]=c;i=c&65535;if(i>>>0>1)break c;c=K[d+2|0]|K[d+3|0]<<8;h=c<<8|c>>>8;I[a+660>>1]=h;c=K[d+4|0]|K[d+5|0]<<8;e=c<<8|c>>>8;I[a+648>>1]=e;c=K[d+6|0]|K[d+7|0]<<8;n=c<<8|c>>>8;I[k+2>>1]=n;c=J[f+4>>2];o=e&65535; +e=o<<1;if(c>>>0>>0)break c;g=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);j=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(j>>>0>=c>>>0)break c;g=n&65535;if(c-j>>>0>>0|g>>>0<(h&65535)>>>0)break c;d=d+12|0;J[k+8>>2]=d;g=J[f+8>>2];J[k+4>>2]=j+g;d:{if((i|0)!=1)break d;if(e+24>>>0>c>>>0)break c;d=d+e|0;j=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);i=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280| +d>>>24);if(h){if(c>>>0<=h>>>0|e>>>0>c-h>>>0)break c;d=_c(l,2,0,o,0,m);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+648>>1];if(c){m=d+(c<<1)|0;e=g+h|0;c=d;while(1){h=K[e|0]|K[e+1|0]<<8;I[c>>1]=h<<8|h>>>8;e=e+2|0;c=c+2|0;if(m>>>0>c>>>0)continue;break}}J[a+656>>2]=d;c=J[f+4>>2]}e=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);if(e){if(c>>>0<=e>>>0)break c;d=c-e|0;c=L[a+648>>1];if(d>>>0>>0)break c;d=_c(l,2,0,c,0,f+12|0);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+648>>1];if(c){i=d+(c<<1)|0;e=e+g|0;c=d;while(1){h= +K[e|0]|K[e+1|0]<<8;I[c>>1]=h<<8|h>>>8;e=e+2|0;c=c+2|0;if(i>>>0>c>>>0)continue;break}}J[a+652>>2]=d;c=J[f+4>>2]}e=j<<24|(j&65280)<<8|(j>>>8&65280|j>>>24);if(!e)break d;if(c>>>0<=e>>>0)break c;d=c-e|0;c=L[a+660>>1];if(d>>>0>>0)break c;d=_c(l,2,0,c,0,f+12|0);if(J[f+12>>2])break b;g=J[f+8>>2];c=L[a+660>>1];if(c){j=d+(c<<1)|0;e=e+g|0;c=d;while(1){i=K[e|0]|K[e+1|0]<<8;I[c>>1]=i<<8|i>>>8;e=e+2|0;c=c+2|0;if(j>>>0>c>>>0)continue;break}}J[a+664>>2]=d;c=J[f+4>>2]}J[k+16>>2]=c;J[k+12>>2]=g;J[a+868>>2]= +k;e=0;p=a,q=_c(l,4,0,L[a+660>>1],0,f+12|0),J[p+672>>2]=q;if(J[f+12>>2])break b;if(!x6(a,0))break a}J[f+12>>2]=8}$f(b,f+8|0);if(k)kc[J[l+8>>2]](l,k);J[a+868>>2]=0;e=J[f+12>>2]}fc=f+16|0;return e|0}function Kma(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;e=fc-16|0;fc=e;J[e+4>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=2463820;h=e+4|0;a:{i=a+240|0;k=J[b+8>>2];m=J[b+4>>2];f=(J[i+8>>2]-J[i+4>>2]>>2)+(k-m>>2)|0;g=J[e+4>>2];b:{if(f>>>0<=J[e+12>>2]-g>>2>>>0)break b;if(f>>> +0>=1073741824){J[699344]=0;$(1587,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}d=J[e+8>>2];J[699344]=0;n=f<<2;o=_(4,n|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;p=(d-g|0)+o|0;f=p;if((d|0)!=(g|0))while(1){f=f-4|0;d=d-4|0;J[f>>2]=J[d>>2];if((d|0)!=(g|0))continue;break}J[e+12>>2]=o+n;J[e+8>>2]=p;J[e+4>>2]=f;if(!g)break b;uc(g);k=J[b+8>>2];m=J[b+4>>2]}b=J[e+8>>2];J[699344]=0;ha(6709,h|0,b|0,m|0,k|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[i+8>>2];d=J[i+4>>2];f=J[e+8>>2];J[699344]= +0;ha(6709,h|0,f|0,d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;aa(6653,i|0,e|0)|0;b=J[699344];J[699344]=0;c:{d:{e:{f:{if((b|0)!=1){qi(e);J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;b=J[a+256>>2];d=J[a+260>>2];if((b|0)!=(d|0)){j=d-b|0;if((j|0)<0){J[699344]=0;$(2494,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;break c}J[699344]=0;j=_(4,j|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break e;l=j;while(1){O[l>>3]=O[b>>3];l=l+8|0;b=b+8|0;if((d|0)!=(b|0))continue;break}}i=a+256|0;g:{if((i|0)!= +(c|0)){b=J[c+4>>2];c=J[c>>2];J[699344]=0;ca(6662,i|0,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break g}if((j|0)==(l|0))break f;c=j;while(1){h:{b=J[a+260>>2];i:{if((b|0)!=J[a+264>>2]){O[b>>3]=O[c>>3];J[a+260>>2]=b+8;break i}j:{k:{g=J[i>>2];d=b-g|0;k=d>>3;f=k+1|0;l:{if(f>>>0>=536870912){J[699344]=0;$(2494,i|0);break l}h=d>>2;h=d>>>0>=2147483640?536870911:f>>>0>>0?h:f;if(!h){f=0;break j}if(h>>>0<536870912)break k;J[699344]=0;ka(209)}a=J[699344];J[699344]=0;if((a|0)!=1)break c;break g}J[699344]= +0;f=_(4,h<<3)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h}d=(k<<3)+f|0;O[d>>3]=O[c>>3];k=d+8|0;if((b|0)!=(g|0))while(1){d=d-8|0;b=b-8|0;O[d>>3]=O[b>>3];if((b|0)!=(g|0))continue;break}J[a+264>>2]=(h<<3)+f;J[a+260>>2]=k;J[a+256>>2]=d;if(!g)break i;uc(g)}c=c+8|0;if((l|0)!=(c|0))continue;break f}break}}b=Z()|0;if(!j)break d;uc(j);ba(b|0);B()}break a}if(j)uc(j);fc=e+16|0;return}b=Z()|0;a=J[e>>2];if(!a)break d;J[e+4>>2]=a;uc(a)}ba(b|0);B()}B()}a=Z()|0;qi(e);ba(a|0);B()}function hbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+104>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[b+108>>2];o=(h|0)>(g|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2| +0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>> +2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i; +i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h= +J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Wl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function JHa(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;a:{c=J[a+4>>2];if((c|0)!=J[a+8>>2]){b:{if(H[b+11|0]>=0){d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break b}d=J[b+4>>2];f=J[b>>2];J[699344]=0;ca(2838,c|0,f|0,d|0);d=J[699344];J[699344]= +0;if((d|0)==1)break a}d=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=d;d=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d;d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;J[a+4>>2]=c+56;return}g=fc-32|0;fc=g;d=a;c:{d:{i=J[a+4>>2];a=J[a>>2];h=(i-a|0)/56|0;c=h+1|0;if(c>>>0<76695845){f=d+8|0;j=J[f>>2];J[g+28>>2]=f;f=(j-a|0)/56|0;j=f<<1;f=f>>>0>=38347922?76695844:c>>>0>>0?j:c;if(f){if(f>>>0>=76695845)break d; +e=vc(P(f,56))}J[g+12>>2]=e;c=P(h,56)+e|0;J[g+20>>2]=c;J[g+24>>2]=P(f,56)+e;J[g+16>>2]=c;e:{f:{if(H[b+11|0]>=0){f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];f=c;break f}a=J[b+4>>2];f=J[b>>2];J[699344]=0;ca(2838,c|0,f|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;a=J[d>>2];i=J[d+4>>2];c=J[g+16>>2];f=J[g+20>>2]}e=P(h,56)+e|0;h=J[b+20>>2];J[e+16>>2]=J[b+16>>2];J[e+20>>2]=h;h=J[b+52>>2];J[e+48>>2]=J[b+48>>2];J[e+52>>2]=h;h=J[b+44>>2];J[e+40>>2]=J[b+40>>2];J[e+44>>2]=h;h=J[b+36>>2]; +J[e+32>>2]=J[b+32>>2];J[e+36>>2]=h;h=J[b+28>>2];J[e+24>>2]=J[b+24>>2];J[e+28>>2]=h;f=f+56|0;if((a|0)==(i|0))b=a;else{while(1){i=i-56|0;b=i;e=J[b+4>>2];c=c-56|0;J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;e=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=e;e=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=e;e=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=e;e=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=e;e=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=e;if((a|0)!=(b|0))continue; +break}a=J[d+4>>2];b=J[d>>2]}J[d>>2]=c;J[g+16>>2]=b;J[d+4>>2]=f;c=J[d+8>>2];J[d+8>>2]=J[g+24>>2];J[g+12>>2]=b;J[g+24>>2]=c;if((a|0)!=(b|0)){while(1){c=a-56|0;J[g+20>>2]=c;if(H[a-45|0]<0)uc(J[c>>2]);a=c;if((b|0)!=(c|0))continue;break}a=b}if(a)uc(a);fc=g+32|0;break c}d=Z()|0;a=J[g+20>>2];c=J[g+16>>2];if((a|0)!=(c|0))while(1){b=a-56|0;J[g+20>>2]=b;if(H[a-45|0]>=0)a=b;else{uc(J[b>>2]);a=J[g+20>>2]}if((c|0)!=(a|0))continue;break}a=J[g+12>>2];if(a)uc(a);ba(d|0);B()}sZ();B()}Pd();B()}return}b=Z()|0;J[a+4>> +2]=c;ba(b|0);B()}function $ab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+104>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[b+108>>2];o=(h|0)>(g|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((o|0)>(((h| +0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+ +20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3]; +j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+ +4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Vl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function fbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+ +12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+104>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[b+108>>2];o=(h|0)>(g|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e, +q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911? +-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]= +g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Vl(e,J[f>>2],J[f+ +4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Rca(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;e=J[a+584>>2];if(!e)return 0;if(J[e+144>>2]){m=L[e+120>>1];y=J[e+140>>2];f=J[a+604>>2];h=L[e+64>>1];p=L[e+66>>1];k=L[e+68>>1];g=J[e+76>>2];i=J[e+72>>2];u=J[e+124>>2];n=J[e+136>>2];d=J[e+132>>2];if(!((m|0)!=65535|(c|0)<=0)){i=i<>g;if((o|0)<16)f=f+1|0;else{g=o-16|0;H[f+1| +0]=i>>g;f=f+2|0}d=d+1|0;c=c-1|0;n=h+n|0;m=K[b|0];b=b+1|0}v=b;a:{if((c|0)<=0)break a;while(1){s=J[e+144>>2];o=c;b:{while(1){j=m;m=K[v|0];b=d+1|0;c=o-1|0;v=v+1|0;w=j+(m<<12)|0;l=j^m<<5;t=l<<3;q=t+s|0;r=J[q>>2];if((w|0)!=(r|0))break b;j=o>>>0>1;m=L[(s+t|0)+4>>1];d=b;o=c;if(j)continue;break}break a}c:{if((r|0)>=0){t=l?l-9001|0:-1;while(1){l=l+t|0;l=(l|0)<0?l+9001|0:l;r=l<<3;q=r+s|0;x=J[q>>2];if((x|0)==(w|0)){m=L[(s+r|0)+4>>1];d=b;break c}if((x|0)>=0)continue;break}}if(f>>>0>y>>>0){J[a+608>>2]=f-J[a+596>> +2];pf(a);f=J[a+596>>2]}i=j|i<>g;if((j|0)<16)f=f+1|0;else{g=j-16|0;H[f+1|0]=i>>g;f=f+2|0}J[q>>2]=w;I[q+4>>1]=k;d:{e:{j=k+1|0;if((j|0)==4094){d=J[e+144>>2];b=d+72E3|0;k=8993;while(1){J[b>>2]=-1;J[b-8>>2]=-1;J[b-16>>2]=-1;J[b-24>>2]=-1;J[b-32>>2]=-1;J[b-40>>2]=-1;J[b-48>>2]=-1;J[b-56>>2]=-1;b=b+-64|0;j=k>>>0>7;k=k-8|0;if(j)continue;break}J[d>>2]=-1;d=0;J[e+128>>2]=0;i=i<>g;p=511;k=258;if((b|0)<16)break e;g=b-16|0;H[f+1|0]=i>>g;f=f+2|0;break d}n= +h+n|0;f:{if((k|0)>=(p|0)){if((h|0)>=12)break f;p=(2<=(u|0)){u=d+10001|0;g:{if((d|0)>=8388607){d=2147483647;if(n>>>0<256)break g;d=(b|0)/(n>>8)|0;break g}d=(b<<8)/(n|0)|0}if((d|0)<=J[e+128>>2]){d=J[e+144>>2];b=d+72E3|0;k=8993;while(1){J[b>>2]=-1;J[b-8>>2]=-1;J[b-16>>2]=-1;J[b-24>>2]=-1;J[b-32>>2]=-1;J[b-40>>2]=-1;J[b-48>>2]=-1;J[b-56>>2]=-1;b=b+-64|0;j=k>>>0>7;k=k-8|0;if(j)continue;break}J[d>>2]=-1;d=0;J[e+128>>2]=0;i=i<>g;p= +511;k=258;if((b|0)<16)break e;g=b-16|0;H[f+1|0]=i>>g;f=f+2|0;break d}J[e+128>>2]=d}d=b;k=j;break c}fa(79298,70340,940,97941);B()}f=f+1|0}n=h;h=9}if((o|0)>1)continue;break}}J[e+136>>2]=n;J[e+132>>2]=d;J[e+124>>2]=u;J[e+76>>2]=g;J[e+72>>2]=i;I[e+68>>1]=k;I[e+66>>1]=p;I[e+64>>1]=h;J[e+120>>2]=m;J[a+604>>2]=f;return 1}fa(78835,70340,842,97941);B()}function obb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100| +0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+104>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[b+108>>2];o=(h|0)>(g|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b; +m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d; +if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>> +2]){Xf(e,J[c+4>>2]);Wl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function mbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+104>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k| +0))break a;g=J[b+108>>2];o=(h|0)>(g|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911? +-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]= +0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g; +i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Wl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function kbb(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;if(!(!K[a+1160| +0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+104>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[b+108>>2];o=(h|0)>(g|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+ +20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+ +104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>> +3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((h| +0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Wl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function dbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];m=(g|0)<(k|0)?g:k;g=J[a+ +80>>2];k=J[b+104>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[b+108>>2];o=(h|0)>(g|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>> +2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]= +2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n>i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i< +4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Vl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function bbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];k=J[b+112>>2];m=(g|0)<(k|0)?g:k;g=J[a+80>>2];k=J[b+104>>2];k=(g|0)>(k|0)?g:k;if((m|0)<(k|0))break a;g=J[b+108>>2];o=(h|0)>(g|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((o|0)>(((h|0)<(g|0)?h:g)|0))break a;g=J[e+20>>2];h=(m-k|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g); +J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;m=J[e+12>>2];if(m){uc(m);g=J[e+20>>2]}J[e+16>>2]=h;p=e,q=vc(h),J[p+12>>2]=q}J[e+28>>2]=g;J[e>>2]=k;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;k=J[c+8>>2];if(k){uc(k);h=J[c+20>>2]}J[c+12>>2]=g;p=c,q=vc(g),J[p+8>>2]=q}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>> +2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;k=J[d+8>>2];if(k){uc(k);h=J[d+20>>2]}J[d+12>>2]=g;p=d,q=vc(g),J[p+8>>2]=q}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=J[f+8>>2];g=J[J[h+4>>2]>>2];i=O[g>>3];j=i*i;i=O[g+16>>3];j=Y(j+i*i);i=O[g+8>>3];l=i*i;i=O[g+24>>3];l=Y(l+i*i);n=j*l;i=O[h+56>>3];if(n> +i){j=j*i/n;l=i*l/(l*j)}j=j<1?1:j;j=O[h+64>>3]*(i=0){g=~~j>>>0;break e}g=0}J[h+40>>2]=g;l=l<1?1:l;i=O[h+72>>3]*(i=0){g=~~i>>>0;break f}g=0}J[h+44>>2]=g;i=1/n*256+.5;g:{if(i<4294967296&i>=0){g=~~i>>>0;break g}g=0}J[h+48>>2]=g;i=1/l*256+.5;h:{if(i<4294967296&i>=0){g=~~i>>>0;break h}g=0}J[h+52>>2]=g;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g| +0)){if($c(b,d))continue;break a}break}if((h|0)!=(g|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Vl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Aub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=1029;a:{b:{if(!K[a+285|0])break b;if(!K[a+114|0]){f=17;break b}if(K[a+286|0]|K[a+287|0]|(K[a+288|0]|K[a+289|0]))break b;f=1028;if(c>>>0<5)break b;g=(c|0)!=5;if(c+2&3?g:0)break b;i=1;H[a+305|0]=1;f=K[d+1|0];k=K[d|0]; +c:{d:{e:{if(!K[a+264|0]){h=K[d+4|0]|(K[d+2|0]<<16|f<<24|K[d+3|0]<<8);if(g)break e;g=2147483647;f=0;break c}h=K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);g=2147483647;if((c|0)!=5)break d;break c}f=K[d+5|0]}g=2147483647;if(c>>>0<10)break c;i=K[d+6|0]|K[d+7|0]<<8|(K[d+8|0]<<16|K[d+9|0]<<24);i=i<<24|(i&65280)<<8|(i>>>8&65280|i>>>24);if(c>>>0<14)break c;g=K[d+10|0]|K[d+11|0]<<8|(K[d+12|0]<<16|K[d+13|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24)}l=f&255; +f:{g:{if(K[a+114|0]){f=kc[J[a+152>>2]](60)|0;if(!f)break g;J[f+4>>2]=1040;J[f>>2]=1041;j=J[a+700>>2];h:{if(j){J[j+8>>2]=f;break h}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=j;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+48>>2]=0;J[f+44>>2]=g;J[f+40>>2]=i;H[f+36|0]=l;J[f+32>>2]=h;H[f+28|0]=k;J[f+56>>2]=h}f=0;break f}Jc(a,1,0,0);f=1}i:{if(f)break i;if(!(K[a+460|0]|h))H[a+460|0]=1;if(!K[a+112|0])break a;f=kc[J[b+ +4>>2]](a,b,e)|0;if(f)break i;b=J[e>>2];H[b+32|0]=K[d|0];f=K[d+1|0];j:{k:{if(!K[a+264|0]){J[b+36>>2]=K[d+4|0]|(K[d+2|0]<<16|f<<24|K[d+3|0]<<8);if((c|0)!=5)break k;break a}H[b+40|0]=f;f=K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24);J[b+36>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(c>>>0>9)break j;break a}H[b+40|0]=K[d+5|0];if(c>>>0>=10)break j;break a}f=K[d+6|0]|K[d+7|0]<<8|(K[d+8|0]<<16|K[d+9|0]<<24);J[b+44>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(c>>>0<14)break a;f=K[d+10|0]|K[d+11|0]<< +8|(K[d+12|0]<<16|K[d+13|0]<<24);c=c-14|0;J[b+52>>2]=c>>>2;J[b+48>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(c>>>0<4)break a;b=kc[J[a+152>>2]](c&-4)|0;J[J[e>>2]+56>>2]=b;e=J[e>>2];c=J[e+56>>2];if(!c){f=1;break b}f=0;if(!J[e+52>>2])break i;d=d+14|0;b=0;while(1){a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[c>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);d=d+4|0;c=c+4|0;b=b+1|0;if(b>>>0>2])continue;break}}return f|0}Jc(a,f,0,0);return f|0}return 0}function Mzb(a,b,c,d){a=a|0;b=b|0;c=c| +0;d=d|0;var e=0,f=0,g=0;e=fc-48|0;fc=e;J[a>>2]=c;a:{b:{c:{d:{e:{f:{g:{h:{if(!c){i:{if(H[b+11|0]>=0){J[e+40>>2]=J[b+8>>2];c=J[b+4>>2];J[e+32>>2]=J[b>>2];J[e+36>>2]=c;break i}Ve(e+32|0,J[b>>2],J[b+4>>2])}J[699344]=0;c=aa(1,e+44|0,e+32|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break h;if(H[e+43|0]<0)uc(J[e+32>>2]);c=J[c>>2];J[a>>2]=c}c=c-11|0;if(!c)break g;if((c|0)==14)break e;break f}c=Z()|0;if(H[e+43|0]>=0)break a;uc(J[e+32>>2]);ba(c|0);B()}J[e+12>>2]=0;H[e+23|0]=0;c=K[a+40|0];J[699344]=0;c=na(2,e+ +31|0,a|0,b|0,e+12|0,!c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){if(H[e+23|0]>=0)break d;uc(J[e+12>>2]);break d}c=Z()|0;if(H[e+23|0]>=0)break a;uc(J[e+12>>2]);ba(c|0);B()}c=0;g=e+12|0;J[g+12>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g>>2]=415588;J[699344]=0;b=ga(3,g|0,b|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){j:{if(!b)break j;J[699344]=0;f=_(4,976)|0;b=J[699344];J[699344]=0;k:{l:{m:{if((b|0)==1)break m;J[699344]=0;b=xf(f,0);c=J[699344];J[699344]=0;if((c|0)==1)break l;J[699344]=0;c=J[g+4>>2];f=J[699344]; +J[699344]=0;if((f|0)==1)break m;f=J[a>>2];J[699344]=0;f=ga(7,b|0,c|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;c=0;if(!f)break j;if(!K[d|0])break k;J[699344]=0;aa(8,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break k}c=Z()|0;break b}c=Z()|0;uc(f);break b}J[699344]=0;da(9,b|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;J[699344]=0;c=tp(b);d=J[699344];J[699344]=0;if((d|0)==1)break c;H[a+28|0]=c;kc[J[J[b>>2]+4>>2]](b);c=1}De(g);break d}c=Z()|0;break b}g=!K[a+40|0];d=0;c=fc-16|0;fc=c;J[c+ +12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=415588;J[699344]=0;b=ga(3,c|0,b|0,0)|0;f=J[699344];J[699344]=0;n:{if((f|0)!=1)o:{if(b){J[699344]=0;b=_(4,552)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;J[699344]=0;$(35,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break o;J[699344]=0;d=J[c+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break o;J[699344]=0;f=aa(36,d|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;d=0;if(f){J[699344]=0;d=ga(37,b|0,a|0,g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break o}J[699344]= +0;rB(b);a=J[699344];J[699344]=0;if((a|0)==1)break o;J[699344]=0;$(21,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break o}De(c);fc=c+16|0;c=d;break n}a=Z()|0;De(c);ba(a|0);B()}}fc=e+48|0;return c|0}c=Z()|0}De(g)}ba(c|0);B()}function Cjb(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;k=3;a:{if((d|e)<0)break a;j=J[a+8>>2];f=J[a+12>>2];i=L[f+2>>1];if(M[j+4>>2]>>0)break a;f=L[f>>1];if(M[j>>2]>>0)break a;i=P(i,K[a+18|0]);if(P(i+7>>>3|0,f)+b>>>0>c>>>0)break a;a=J[j+ +12>>2];h=J[j+8>>2];j=d>>>3|0;c=(a+P(h,e)|0)+j|0;g=d&7;if(g){k=0;if(!f)break a;l=8-g|0;if(i>>>0>=8)while(1){d=0;e=i;a=c;while(1){j=a;k=b;d=K[b|0]|d;H[a|0]=K[a|0]|d>>>g;m=e;e=e-8|0;a=a+1|0;b=b+1|0;d=d<<8;if((m|0)>15)continue;break}if((m|0)>8){d=K[k+1|0]&65280>>>e|d;b=k+2|0}H[a|0]=K[a|0]|d>>>g;if((e|0)>(l|0))H[j+2|0]=K[j+2|0]|d<<8>>>g;c=c+h|0;a=f;f=f-1|0;k=0;if((a|0)>1)continue;break a}d=65280>>>i|0;if(i>>>0>l>>>0){if((h|0)!=1){if(f&1){a=d&K[b|0];H[c|0]=K[c|0]|a>>>g;H[c+1|0]=K[c+1|0]|a<<8>>>g;c=c+h| +0;b=b+1|0;a=f-1|0}else a=f;if((f|0)==1)break a;while(1){e=d&K[b|0];H[c|0]=K[c|0]|e>>>g;H[c+1|0]=K[c+1|0]|e<<8>>>g;c=c+h|0;e=d&K[b+1|0];H[c|0]=K[c|0]|e>>>g;H[c+1|0]=K[c+1|0]|e<<8>>>g;b=b+2|0;c=c+h|0;e=a-3|0;a=a-2|0;if(e>>>0<4294967294)continue;break}break a}e=K[(a+j|0)+e|0];if(f&1){a=d&K[b|0];H[c|0]=a>>>g|e;e=K[c+1|0]|a<<8>>>g;H[c+1|0]=e;c=c+h|0;b=b+1|0;a=f-1|0}else a=f;if((f|0)==1)break a;while(1){f=e;e=d&K[b|0];H[c|0]=f|e>>>g;e=K[c+1|0]|e<<8>>>g;H[c+1|0]=e;c=c+h|0;f=d&K[b+1|0];H[c|0]=e|f>>>g;e=K[c+ +1|0]|f<<8>>>g;H[c+1|0]=e;b=b+2|0;c=c+h|0;f=a-3|0;a=a-2|0;if(f>>>0<4294967294)continue;break}break a}if(!i)break a;if(f&1){H[c|0]=K[c|0]|(d&K[b|0])>>>g;c=c+h|0;b=b+1|0;a=f-1|0}else a=f;if((f|0)==1)break a;while(1){H[c|0]=K[c|0]|(d&K[b|0])>>>g;c=c+h|0;H[c|0]=K[c|0]|(d&K[b+1|0])>>>g;b=b+2|0;c=c+h|0;e=a-3|0;a=a-2|0;if(e>>>0<4294967294)continue;break}break a}k=0;if(!f)break a;if(i>>>0>=8)while(1){a=f;d=i;f=c;while(1){e=b;H[f|0]=K[b|0]|K[f|0];j=d;d=d-8|0;f=f+1|0;b=b+1|0;if((j|0)>15)continue;break}if((j| +0)>8){H[f|0]=K[f|0]|K[e+1|0]&65280>>>d;b=e+2|0}c=c+h|0;f=a-1|0;if((a|0)>1)continue;break a}if(!i)break a;a=65280>>>i|0;i=f&3;b:{if(!i){d=f;break b}e=0;d=f;while(1){H[c|0]=K[c|0]|a&K[b|0];c=c+h|0;d=d-1|0;b=b+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}}if(f>>>0<4)break a;while(1){H[c|0]=K[c|0]|a&K[b|0];c=c+h|0;H[c|0]=K[c|0]|a&K[b+1|0];c=c+h|0;H[c|0]=K[c|0]|a&K[b+2|0];c=c+h|0;H[c|0]=K[c|0]|a&K[b+3|0];b=b+4|0;c=c+h|0;e=d-5|0;d=d-4|0;if(e>>>0<4294967294)continue;break}}return k|0}function tTa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;D=fc-224|0;fc=D;e=a;while(1){a:{d=J[(r<<2)+b>>2]+c|0;f=K[d+10|0];t=e;v=K[d+12|0];E=K[d+2|0];F=v+E|0;G=K[d+7|0];u=F+G|0;j=K[d+9|0];h=K[d+5|0];l=j+h|0;g=K[d+4|0];m=g+f|0;i=K[d+14|0];k=K[d|0];n=i+k|0;s=l+(m+n|0)|0;w=K[d+8|0];x=K[d+6|0];o=w+x|0;y=K[d+11|0];z=K[d+3|0];p=y+z|0;A=K[d+13|0];B=K[d+1|0];q=A+B|0;C=o+(p+q|0)|0;J[e>>2]=(u+(s+C|0)|0)-1920;d=k-i|0;g=g-f|0;f= +h-j|0;i=B-A|0;j=z-y|0;h=x-w|0;J[e+12>>2]=(P(d-(g+f|0)|0,11018)+P(i-(j+h|0)|0,6810)|0)+4096>>13;k=u<<1;J[e+24>>2]=(P(s-k|0,9373)+P(C-k|0,-3580)|0)+4096>>13;k=E-v|0;s=P(k,10033);u=((P(d,-2912)+P(i,-17828)|0)-s|0)+P(f,-7121)|0;i=(P(f+j|0,4712)+P(g+i|0,11018)|0)+P(d-h|0,11522)|0;J[e+28>>2]=(u+i|0)+4096>>13;J[e+20>>2]=P(h+(f+(d-(j+k|0)|0)|0)|0,10033)+4096>>13;J[e+4>>2]=(i+(((s+P(j,3897)|0)+P(g,-4209)|0)+P(h,13930)|0)|0)+4096>>13;f=((P(q-m|0,6476)+P(n-p|0,11332)|0)+P(o-l|0,7752)|0)+4096|0;d=F+((m+q>>>1| +0)-(G<<1)|0)|0;J[e+16>>2]=(f+P(l-d|0,6541)|0)+P(n-d|0,-748)>>13;J[e+8>>2]=(f+P(p-d|0,12543)|0)+P(o-d|0,-18336)>>13;f=r-7|0;d=7;r=r+1|0;e=D;b:switch(f|0){case 0:continue;case 7:break a;default:break b}e=t+32|0;continue}break}while(1){f=J[e+128>>2];m=J[a>>2];n=J[e+192>>2];b=m-n|0;l=J[a+128>>2];p=J[e+64>>2];j=l-p|0;q=J[a+160>>2];o=J[e+32>>2];c=q-o|0;g=J[a+32>>2];i=J[e+160>>2];h=g-i|0;k=J[a+96>>2];s=J[e+96>>2];t=k-s|0;y=J[a+192>>2];z=J[e>>2];r=y-z|0;J[a+96>>2]=(P(b-(j+c|0)|0,12536)+P(h-(t+r|0)|0,7748)| +0)+16384>>15;l=l+p|0;m=m+n|0;n=q+o|0;A=(l+m|0)+n|0;B=J[a+224>>2];w=J[a+64>>2];x=w+f|0;C=B+x|0;v=C<<1;o=y+z|0;p=k+s|0;q=g+i|0;g=o+(p+q|0)|0;J[a+192>>2]=(P(A-v|0,10664)+P(g-v|0,-4073)|0)+16384>>15;J[a>>2]=P(C+(g+A|0)|0,9321)+16384>>15;f=w-f|0;g=P(f,11415);u=((P(b,-3314)+P(h,-20284)|0)-g|0)+P(c,-8102)|0;h=(P(c+t|0,5361)+P(h+j|0,12536)|0)+P(b-r|0,13109)|0;J[a+224>>2]=(u+h|0)+16384>>15;J[a+160>>2]=P(r+(c+(b-(f+t|0)|0)|0)|0,11415)+16384>>15;J[a+32>>2]=(h+(((g+P(t,4434)|0)+P(j,-4788)|0)+P(r,15850)|0)|0)+ +16384>>15;c=((P(q-l|0,7369)+P(m-p|0,12893)|0)+P(o-n|0,8820)|0)+16384|0;b=x+((l+q>>1)-(B<<1)|0)|0;J[a+128>>2]=(c+P(n-b|0,7442)|0)+P(m-b|0,-852)>>15;J[a+64>>2]=(c+P(p-b|0,14271)|0)+P(o-b|0,-20862)>>15;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b)continue;break}fc=D+224|0}function P7a(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;l=fc-16|0;fc=l;g=l+4|0;h=fc-32|0;fc=h;f=O[c+72>>3];m=O[c>>3];a:{b:{c:{if(!K[c+120|0]){J[699344]=0;a=_(4,32)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break b;O[a+24>>3]=f;O[a+16>>3]=f;O[a+8>>3]=m;O[a>>3]=m;i=O[c+80>>3];j=O[c+8>>3];J[699344]=0;e=_(4,32)|0;n=J[699344];J[699344]=0;if((n|0)==1)break b;O[e>>3]=j;k=i;f=j;break c}j=O[c+104>>3];k=O[c+88>>3];J[699344]=0;a=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;O[a+24>>3]=f;O[a>>3]=m;O[a+16>>3]=f+j;O[a+8>>3]=f+k;i=O[c+112>>3];j=O[c+96>>3];k=O[c+80>>3];f=O[c+8>>3];J[699344]=0;e=_(4,32)|0;n=J[699344];J[699344]=0;if((n|0)==1)break b;O[e>>3]=f;j=k+j;i=k+i}O[e+24>>3]=k; +O[e+16>>3]=i;O[e+8>>3]=j;J[g+8>>2]=0;J[g>>2]=0;J[g+4>>2]=0;q=O[a+24>>3];v=O[e+24>>3];i=O[a+16>>3];o=O[a+8>>3];p=O[e+16>>3];s=O[e+8>>3];J[h+16>>2]=-500134854;J[h+20>>2]=1044740494;J[h+8>>2]=-90071993;J[h+12>>2]=1072693247;j=i*3+(m*3+o*-6);k=p*3+(f*3+s*-6);t=j*j+k*k;r=q;q=o*3;i=r+(i*-3+(q-m));r=p*-3;p=s*3;o=v+(r+(p-f));m=m*-3+q;f=f*-3+p;b5((i*i+o*o)*9,(i*j+k*o)*9,t+t+(m*i+f*o)*3,m*j+f*k,g,h+16|0,h+8|0);n=J[g+4>>2];w=J[g>>2];J[699344]=0;yS(w,n,h+31|0);n=J[699344];J[699344]=0;if((n|0)==1){c=Z()|0;b=J[g>> +2];if(b){J[g+4>>2]=b;uc(b)}uc(e);uc(a);ba(c|0);B()}uc(e);uc(a);fc=h+32|0;break a}ea(0)|0;Bc();B()}a=J[l+8>>2];e=J[l+4>>2];g=(a|0)!=(e|0);h=g&(d^1);u=!d|(a|0)==(e|0)?u:O[a-8>>3];f=1;f=h?O[e>>3]:f;J[699344]=0;f=+jb(2499,c|0,+u,+f);a=J[699344];J[699344]=0;d:{if((a|0)!=1)e:{f=g?f:f*.03125;c=J[b+4>>2];e=J[b+8>>2];f:{if(c>>>0>>0){O[c>>3]=f;J[b+4>>2]=c+8;break f}a=J[b>>2];h=c-a>>3;d=h+1|0;if(d>>>0>=536870912){J[699344]=0;$(2494,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;break d}e=e-a|0;g=e>>2;e= +e>>>0>=2147483640?536870911:d>>>0>>0?g:d;g:{if(!e){g=0;break g}if(e>>>0>=536870912){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break d;break e}J[699344]=0;g=_(4,e<<3)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e}d=(h<<3)+g|0;O[d>>3]=f;h=d+8|0;if((a|0)!=(c|0))while(1){d=d-8|0;c=c-8|0;O[d>>3]=O[c>>3];if((a|0)!=(c|0))continue;break}J[b+8>>2]=(e<<3)+g;J[b+4>>2]=h;J[b>>2]=d;if(!a)break f;uc(a)}a=J[l+4>>2];if(a){J[l+8>>2]=a;uc(a)}fc=l+16|0;return}b=Z()|0;a=J[l+4>>2];if(a){J[l+8>>2]=a;uc(a)}ba(b| +0);B()}B()}function J2(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;e=-102;a:{if(!a)break a;a=J[a+224>>2];if(!a)break a;if(!J[a>>2])return-100;e=0;if(!c)break a;J[a+20>>2]=c;J[a+16>>2]=b;h=c;d=J[a+132>>2];b=J[a+128>>2];if(!(J[a+200>>2]|(!d&b>>>0>=c>>>0|(d|0)!=0))){c=b;J[a+20>>2]=c}d=J[a+124>>2];i=J[a+8>>2];b=J[a+120>>2];f=i+b|0;d=i>>>0>f>>>0?d+1|0:d;if(!(!J[a+200>>2]|(!d&f>>>0>=h>>>0|(d|0)!=0))){c=b+i|0;J[a+20>>2]=c}if(!c)break a;k=a+4|0;i=a+136|0;while(1){h=e;c=J[a+8>>2]; +b:{if(c)break b;b=J[a+120>>2];c=J[a+124>>2];if(!(b|c)){c=0;break b}e=-1;d=J[a+196>>2]+J[a+68>>2]|0;j=J[a+64>>2];f=j+J[a+192>>2]|0;if(Aj(i,J[a+180>>2],f,f>>>0>>0?d+1|0:d,0))break a;d=!c&b>>>0>=16384|(c|0)!=0;b=d?16384:b;d=d?0:c;c=b;if((kc[J[a+140>>2]](J[a+164>>2],J[a+180>>2],J[a>>2],c)|0)!=(c|0))break a;J[a+8>>2]=c;J[a+4>>2]=J[a>>2];e=d+J[a+68>>2]|0;f=c+J[a+64>>2]|0;e=f>>>0>>0?e+1|0:e;J[a+64>>2]=f;J[a+68>>2]=e;e=J[a+120>>2];d=J[a+124>>2]-((c>>>0>e>>>0)+d|0)|0;b=e-c|0;J[a+120>>2]=b;J[a+124>>2]= +d}c:{b=J[a+184>>2];if(!(J[a+200>>2]?0:b)){if(!((J[a+120>>2]|J[a+124>>2])!=0|c))return h|0;b=J[a+20>>2];d=b>>>0>>0?b:c;d:{if(!d)break d;e=0;c=0;if(d>>>0>=4){f=d&-4;b=0;while(1){H[J[a+16>>2]+c|0]=K[J[a+4>>2]+c|0];g=c|1;H[g+J[a+16>>2]|0]=K[g+J[a+4>>2]|0];g=c|2;H[g+J[a+16>>2]|0]=K[g+J[a+4>>2]|0];g=c|3;H[g+J[a+16>>2]|0]=K[g+J[a+4>>2]|0];c=c+4|0;b=b+4|0;if((f|0)!=(b|0))continue;break}}b=d&3;if(!b)break d;while(1){H[J[a+16>>2]+c|0]=K[J[a+4>>2]+c|0];c=c+1|0;e=e+1|0;if((b|0)!=(e|0))continue;break}}e=J[a+ +108>>2];c=J[a+104>>2];b=c+d|0;J[a+104>>2]=b;J[a+108>>2]=b>>>0>>0?e+1|0:e;l=a,m=ig(J[a+112>>2],J[a+16>>2],d),J[l+112>>2]=m;b=J[a+128>>2];c=J[a+132>>2]-(d>>>0>b>>>0)|0;b=b-d|0;J[a+128>>2]=b;J[a+132>>2]=c;J[a+8>>2]=J[a+8>>2]-d;J[a+20>>2]=J[a+20>>2]-d;J[a+16>>2]=J[a+16>>2]+d;J[a+4>>2]=J[a+4>>2]+d;J[a+24>>2]=J[a+24>>2]+d;e=d+h|0;break c}if((b|0)==12){e=h;break c}g=J[a+16>>2];e=J[a+24>>2];c=Vk(k,2);if((c|0)>=0)c=J[a+28>>2]?-3:c;d=J[a+24>>2];b=d-e|0;j=J[a+104>>2];f=b+j|0;d=0-(d>>>0>>0)|0;e=d+J[a+108>> +2]|0;J[a+104>>2]=f;J[a+108>>2]=f>>>0>>0?e+1|0:e;l=a,m=ig(J[a+112>>2],g,b),J[l+112>>2]=m;e=J[a+128>>2];d=J[a+132>>2]-((b>>>0>e>>>0)+d|0)|0;e=e-b|0;J[a+128>>2]=e;J[a+132>>2]=d;e=b+h|0;if(!c)break c;if((c|0)==1)break a;e=c;break a}if(J[a+20>>2])continue;break}}return e|0}function GYa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;c=fc-128|0;fc=c;a:{b:{c:{d:{e:{if(K[a+229|0])break e;h=J[b+116>>2];if(kc[J[J[h>>2]+40>>2]](h)|0)break e; +m=e<<2;h=P(m,f);if((h|0)<=0)break e;i=so(h);if(!i)break e;h=c+96|0;J[h+12>>2]=0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=351116;J[h+20>>2]=0;J[h+24>>2]=0;H[h+28|0]=0;n=h;J[c+32>>2]=e;J[c+84>>2]=f;J[699344]=0;J[c+24>>2]=0-m;j=c+84|0;yi(h,i,c+32|0,j,c+24|0,0);h=J[699344];J[699344]=0;f:{g:{h:{i:{j:{if((h|0)!=1){J[699344]=0;h=_(4,36)|0;k=J[699344];J[699344]=0;if((k|0)==1)break j;J[699344]=0;d=na(3426,h|0,d|0,e|0,1,1)|0;k=J[699344];J[699344]=0;if((k|0)==1)break i;J[699344]=0;$(3427,d|0);h=J[699344]; +J[699344]=0;if((h|0)==1)break j;h=J[b+116>>2];k=J[J[h>>2]+20>>2];J[699344]=0;ia(k|0,h|0,b+124|0,j|0,0);h=J[699344];J[699344]=0;if((h|0)==1)break h;l=O[b+392>>3]*255;k:{if(R(l)<2147483648){j=~~l;break k}j=-2147483648}if((f|0)<=0)break f;h=f-1|0;if((e|0)<=0)break g;f=(j|0)>0?j:0;p=(f|0)>=255?255:f;q=P(J[c+92>>2],255)+32768>>>16|0;r=P(J[c+88>>2],255)+32768>>>16|0;s=P(J[c+84>>2],255)+32768>>>16|0;t=(g|0)!=0;while(1){l:{J[699344]=0;g=_(3428,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;f=P(h,m);k= +0;while(1){j=K[g|0]==(t|0);H[f+i|0]=j?q:-1;H[(f|1)+i|0]=j?r:-1;H[(f|2)+i|0]=j?s:-1;H[(f|3)+i|0]=j?p:0;f=f+4|0;g=g+1|0;k=k+1|0;if((k|0)!=(e|0))continue;break}f=(h|0)>0;h=h-1|0;if(f)continue;break f}break}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;break a}f=Z()|0;uc(h);break a}f=Z()|0;break a}while(1){J[699344]=0;_(3428,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;e=(h|0)>0;h=h-1|0;if(e)continue;break}}uc(Lm(d));O[c+32>>3]=O[b+16>>3];O[c+40>>3]=-O[b+24>>3];l=O[b+32>>3];O[c+48>>3]=-l;o=O[b+40>>3]; +O[c+56>>3]=o;O[c+64>>3]=l+O[b+48>>3];O[c+72>>3]=O[b+104>>3]-(o+O[b+56>>3]);J[c+24>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+16>>2]=0;J[c+20>>2]=0;b=c+24|0;d=c+16|0;ma(3418,a|0,c+32|0,b|0,d|0,1);e=J[699344];J[699344]=0;if((e|0)==1)break d;a=J[a+104>>2];J[c+8>>2]=1049880894;J[c+12>>2]=1071027177;J[c>>2]=1049880894;J[c+4>>2]=1071027177;e=J[J[a>>2]+376>>2];J[699344]=0;ja(e|0,a|0,n|0,b|0,d|0,c+8|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;If(n)}fc=c+128|0;return}f=Z()|0;break a}f=Z()|0;break a}f=Z()| +0}If(n);ba(f|0);B()}function wB(a){var b=0,c=0,d=0,e=0;a:{if(J[a+1168>>2]>=0){J[699344]=0;$(3370,a+1176|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1192>>2]>=0){J[699344]=0;$(3370,a+1200|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1216>>2]>=0){J[699344]=0;$(3370,a+1224|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1240>>2]>=0){J[699344]=0;$(3370,a+1248|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1264>>2]>=0){J[699344]=0;$(3370,a+1272|0);b=J[699344];J[699344]= +0;if((b|0)==1)break a}if(J[a+1288>>2]>=0){J[699344]=0;$(3370,a+1296|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1312>>2]>=0){J[699344]=0;$(3370,a+1320|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1336>>2]>=0){J[699344]=0;$(3370,a+1344|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1360>>2]>=0){J[699344]=0;$(3370,a+1368|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1384>>2]>=0){J[699344]=0;$(3370,a+1392|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1408>>2]>= +0){J[699344]=0;$(3370,a+1416|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1432>>2]>=0){J[699344]=0;$(3370,a+1440|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1456>>2]>=0){J[699344]=0;$(3370,a+1464|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1480>>2]>=0){J[699344]=0;$(3370,a+1488|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1504>>2]>=0){J[699344]=0;$(3370,a+1512|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+1528>>2]>=0){J[699344]=0;$(3370,a+1536|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a}b=J[a+8>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+40|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+64>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+72>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}while(1){b=J[((e<<2)+a|0)+80>>2];if(b){c=J[b+8>>2];b:{if(!c)break b;d=0;if(J[b+4>>2]>0){while(1){c=J[b+8>>2];J[699344]=0;$(3370,c+(d<<4)|0);c=J[699344];J[699344]= +0;if((c|0)==1)break a;d=d+1|0;if((d|0)>2])continue;break}c=J[b+8>>2];if(!c)break b}uc(c)}d=J[b+12>>2];J[699344]=0;Mc(d);d=J[699344];J[699344]=0;if((d|0)==1)break a;uc(b)}e=e+1|0;if((e|0)!=128)continue;break}return a}ea(0)|0;Bc();B()}function OY(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=fc-144|0;fc=f;a:{b:{i=J[b+8>>2];c:{if(!i){g=J[b+12>>2];break c}e=J[a+16>>2];h=L[i+4>>1];g=J[b+12>>2];if(!(!g|!J[g+12>>2]))e=K[g+18|0];d:{if(h){i=J[i>>2];b=0;while(1){d=i+P(b,6)|0;k=L[d>>1];if(k>>> +0>=e>>>0){J[f+132>>2]=e;J[f+128>>2]=k;Nc(c,1,2357003,f+128|0);k=0;break a}e:{d=L[d+4>>1];if(!(!d|(d|0)==65535)){d=d-1|0;if(d>>>0>=e>>>0)break e}b=b+1|0;if((h|0)==(b|0))break d;continue}break}J[f+116>>2]=e;J[f+112>>2]=d;Nc(c,1,2357003,f+112|0);k=0;break a}if(e)break b;break c}if(!h)break b;while(1){e=e-1|0;b=0;while(1){if(L[i+P(b,6)>>1]!=(e|0)){b=b+1|0;if((h|0)!=(b|0))continue;break b}break}if((h|0)==(b&65535))break b;if(e)continue;break}}k=1;if(!g)break a;i=J[g+12>>2];if(!i)break a;f:{e=K[g+18|0]; +g:{if(e){b=0;h=1;while(1){g=J[a+16>>2];d=L[i+(b<<2)>>1];if(g>>>0<=d>>>0){J[f+100>>2]=g;J[f+96>>2]=d;Nc(c,1,2357003,f+96|0);h=0}b=b+1|0;if((e|0)!=(b|0))continue;break}g=Ge(e,4);if(!g)break g;h:{if(!e)break h;b=0;while(1){d=i+(b<<2)|0;l=K[d+2|0];i:{if(l>>>0>=2){J[f+20>>2]=l;J[f+16>>2]=b;Nc(c,1,2357231,f+16|0);h=0;break i}d=K[d+3|0];if(d>>>0>=e>>>0){J[f+80>>2]=d;Nc(c,1,2357324,f+80|0);h=0;break i}m=(l|0)!=1;j=(d<<2)+g|0;if(!(m|!J[j>>2])){J[f+32>>2]=d;Nc(c,1,2357408,f+32|0);h=0;break i}if(!(!d|l)){J[f+ +52>>2]=d;J[f+48>>2]=b;Nc(c,1,2357503,f+48|0);h=0;break i}if(!((b|0)==(d|0)|m)){J[f+72>>2]=d;J[f+68>>2]=b;J[f+64>>2]=b;Nc(c,1,2357582,f- -64|0);h=0;break i}J[j>>2]=1}b=b+1|0;if((e|0)!=(b|0))continue;break}if(!e)break h;b=0;while(1){d=b<<2;if(!(J[d+g>>2]|!K[(d+i|0)+2|0])){J[f>>2]=b;Nc(c,1,2357683,f);h=0}b=b+1|0;if((e|0)!=(b|0))continue;break}}if(!h){uc(g);k=0;break a}if(!e|J[a+16>>2]!=1)break f;b=0;a=0;while(1){if(J[(b<<2)+g>>2]){a=a+1|0;b=a&65535;if(e>>>0>b>>>0)continue;break f}break}d=0;Nc(c,2,2357779, +0);a=0;b=0;if(e>>>0>=4){l=e&252;h=0;while(1){c=a<<2;j=c+i|0;H[j+3|0]=b;H[j+2|0]=1;j=i+(c|4)|0;H[j+3|0]=b|1;H[j+2|0]=1;j=i+(c|8)|0;H[j+3|0]=b|2;H[j+2|0]=1;c=i+(c|12)|0;H[c+3|0]=b|3;H[c+2|0]=1;b=b+4|0;a=a+4|0;h=h+4|0;if((l|0)!=(h|0))continue;break}}c=e&3;if(!c)break f;while(1){e=i+(a<<2)|0;H[e+3|0]=b;H[e+2|0]=1;b=b+1|0;a=a+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break f}g=Ge(e,4);if(g)break f}k=0;Nc(c,1,2357108,0);break a}uc(g);break a}k=0;Nc(c,1,2357055,0)}fc=f+144|0;return k}function wxa(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,u=0,v=0,w=0,x=0,y=0;e=fc-32|0;fc=e;a:{b:{if(K[a+89|0])break b;if(!K[a+88|0]){x=a,y=kc[J[J[a>>2]+36>>2]](a)|0,J[x+72>>2]=y;x=a,y=kc[J[J[a>>2]+44>>2]](a)|0,J[x+76>>2]=y;x=a,y=kc[J[J[a>>2]+40>>2]](a)|0,J[x+80>>2]=y;d=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}g=J[a+92>>2];if((g|0)<=0)break b;v=J[a+76>>2]<<1;k=J[a+108>>2];l=J[a+104>>2];m=J[a+120>>2];n=J[a+116>>2];o=J[a+132>>2];p=J[a+128>>2];q=J[a+144>>2];r= +J[a+140>>2];w=J[a+72>>2];a=0;c:{while(1){d:{e:{if(!((a|0)<=(q|0)&(a|0)>=(r|0))){a=Qc(e+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}f=J[(a-o<<2)+p>>2];if((f|0)!=(c|0)){j=f-c|0;f=a;while(1){d=f;f=d+1|0;h=(f|0)%(g|0)|0;if(!((r|0)<=(h|0)&(h|0)<=(q|0))){a=Qc(e+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}i=J[(h-o<<2)+p>>2];if((i|0)==(c|0))continue;break}if((a|0)!=(d|0)){a= +(a+1|0)%(g|0)|0;if(!((a|0)>=(n|0)&(a|0)<=(m|0))){a=Qc(e+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}s=(d|0)%(g|0)|0;if(!((s|0)>=(n|0)&(m|0)>=(s|0))){a=Qc(e+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}t=1;if((P(J[(s-k<<2)+l>>2]-b|0,J[(a-k<<2)+l>>2]-b|0)|0)<=0)break c}a=i-c|0;if(!(!((j|0)<0&(a|0)>0)&((j|0)<=0|(a|0)>=0))){a=(d|0)%(g|0)|0;if(!((a|0)>=(n|0)&(a|0)<=(m|0))){a= +Qc(e+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}if(!((a|0)<=(q|0)&(a|0)>=(r|0))){a=Qc(e+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}if(!((h|0)<=(m|0)&(h|0)>=(n|0))){a=Qc(e+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}t=1;d=J[(a-k<<2)+l>>2];a=J[(a-o<<2)+p>>2];j=i-a|0;i=P(b-d|0,j);a=P(J[(h-k<<2)+l>>2]- +d|0,c-a|0);if((i|0)==(a|0))break c;d=P(j,v-(d+w|0)|0);if((d|0)==(a|0))break c;u=((a|0)>(i|0)^(a|0)>(d|0))+u|0}a=f;break d}a=a+1|0;break d}B()}if((a|0)<(g|0))continue;break}t=0}f=t|u}fc=e+32|0;return f&1}b=Z()|0;Kc(a);ba(b|0);B()}function yta(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;k=fc-32|0;fc=k;a:{if(!J[b+12>>2]){J[a>>2]=0;vd(a,0);break a}e=J[d>>2];f=J[d+8>>2];i=J[d+4>>2];j=J[d+12>>2];h=vc(72);J[699344]=0;i=j-i|0;e=f-e|0;f=ha(5551,h|0,i|0,e|0,0)|0;j=J[699344];J[699344]= +0;b:{c:{if((j|0)!=1){J[a>>2]=0;vd(a,f);h=J[b+12>>2];d:{e:{f:{g:{b=J[a>>2];h:{if(!J[b+20>>2]){J[699344]=0;$(5177,b|0);f=J[699344];J[699344]=0;if((f|0)==1)break h}i:{if(!L[b+8>>1]){f=L[b+14>>1];b=L[b+12>>1];if(J[685890]<(f+b|0)){J[699344]=0;b=ja(5178,k+8|0,2402105,2402285,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b;d=Z()|0;Kc(b);break d}b=b+J[685889]|0;break i}b=J[b+20>>2]+L[b+12>>1]|0}f=L[J[a>>2]+14>>1];J[699344]= +0;ua(5679,h|0,c|0,d|0,b|0,f|0,1,0);b=J[699344];J[699344]=0;if((b|0)==1)break h;j:{if((i|0)<=0)break j;if((e|0)>0){j=e&-4;h=e&3;l=e>>>0<4;e=0;while(1){k:{b=J[a>>2];if(!J[b+20>>2]){J[699344]=0;$(5177,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break k}c=L[b+14>>1];l:{if(L[b+8>>1]<=e>>>0){b=L[b+12>>1];if(J[685890]<(b+c|0))break g;b=b+J[685889]|0;break l}b=L[b+12>>1]+(J[b+20>>2]+P(c,e)|0)|0}f=0;d=0;c=0;if(!l)while(1){g=b+d|0;H[g|0]=K[g|0]^128;g=b+(d|1)|0;H[g|0]=K[g|0]^128;g=b+(d|2)|0;H[g|0]=K[g|0]^128;g= +b+(d|3)|0;H[g|0]=K[g|0]^128;d=d+4|0;c=c+4|0;if((j|0)!=(c|0))continue;break}if(h)while(1){c=b+d|0;H[c|0]=K[c|0]^128;d=d+1|0;f=f+1|0;if((h|0)!=(f|0))continue;break}e=e+1|0;if((i|0)!=(e|0))continue;break j}break}d=Z()|0;break d}b=J[a>>2];if(!J[b+20>>2]){b=0;while(1){c=J[a>>2];if(!J[c+20>>2]){J[699344]=0;$(5177,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break f}if(J[685890]<(L[c+12>>1]+L[c+14>>1]|0)&L[c+8>>1]<=b>>>0)break g;b=b+1|0;if((i|0)!=(b|0))continue;break}break j}d=0;c=J[685890];e=L[b+14>>1];h=L[b+ +8>>1];while(1){if((c|0)<(e+L[b+12>>1]|0)&d>>>0>=h>>>0)break g;d=d+1|0;if((i|0)!=(d|0))continue;break}}b=J[a>>2];J[699344]=0;da(5542,b|0,256);b=J[699344];J[699344]=0;if((b|0)!=1)break a}d=Z()|0;break d}J[699344]=0;b=ja(5178,k+8|0,2402105,2402285,577,2393703,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b;d=Z()|0;Kc(b);break d}d=Z()|0;break d}d=Z()|0}zc(a);break c}d=Z()|0;uc(h)}ba(d|0)}B()}fc=k+32|0}function l_(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,r=0,s=0,t=0,u=0,v=0;while(1){d=k<<2;e=d+2344208|0;f=(k<<1)+a|0;d=b+d|0;g=J[d+4>>2];a:{b:{i=J[d+8>>2];if(g|i)break b;i=0;if(J[d+12>>2]|J[d+16>>2]|(J[d+20>>2]|J[d+24>>2]))break b;if(J[d+28>>2])break b;e=P(J[e>>2],P(J[d>>2],L[f>>1]));e=k?e:e+4096|0;J[d+28>>2]=e;J[d+24>>2]=e;J[d+20>>2]=e;J[d+16>>2]=e;J[d+12>>2]=e;J[d+8>>2]=e;J[d+4>>2]=e;J[d>>2]=e;break a}i=P(J[e+8>>2],P(L[f+4>>1],i));l=(i>>5)+i|0;j=l>>2;h=P(J[e+24>>2],P(J[d+24>>2],L[f+12>>1]));r=(h>>5)+ +h|0;m=r>>2;h=m+((l-j|0)+(h>>4)|0)|0;l=P(J[e+16>>2],P(J[d+16>>2],L[f+8>>1]));n=P(J[e>>2],P(J[d>>2],L[f>>1]));n=k?n:n+4096|0;s=l+n|0;o=h+s|0;p=P(J[e+4>>2],P(g,L[f+2>>1]));q=P(J[e+28>>2],P(J[d+28>>2],L[f+14>>1]));t=p-q|0;u=P(J[e+20>>2],P(J[d+20>>2],L[f+10>>1]));g=t+u|0;v=P(J[e+12>>2],P(J[d+12>>2],L[f+6>>1]));p=p+q|0;e=v+p|0;f=(e>>9)-e|0;f=(g>>1)+((f>>2)-f|0)|0;J[d+28>>2]=o-f;J[d>>2]=f+o;f=s-h|0;g=(g>>9)-g|0;e=(g>>2)-(g+(e>>1)|0)|0;J[d+16>>2]=f-e;J[d+12>>2]=e+f;e=t-u|0;f=(e>>3)-(e>>7)|0;j=j+(i>>4)+(m- +r)|0;h=n-l|0;m=j+h|0;g=p-v|0;i=(g>>3)-(g>>7)|0;l=(i-(g>>11)>>1)+i+(e-f)|0;J[d+24>>2]=m-l;J[d+4>>2]=m+l;j=h-j|0;e=g-((f+i|0)+(f-(e>>11)>>1)|0)|0;J[d+20>>2]=j-e;J[d+8>>2]=e+j}d=k>>>0<56;k=k+8|0;if(d)continue;break}k=0;while(1){d=(k<<2)+b|0;e=J[d+32>>2];c:{d:{a=J[d+64>>2];if(e|a)break d;a=0;if(J[d+96>>2]|J[d+128>>2]|(J[d+160>>2]|J[d+192>>2]))break d;if(J[d+224>>2])break d;a=J[d>>2];J[d+224>>2]=a;J[d+192>>2]=a;J[d+160>>2]=a;J[d+128>>2]=a;J[d+96>>2]=a;J[d+64>>2]=a;J[d+32>>2]=a;break c}f=J[d+192>>2];j= +(f>>5)+f|0;g=j>>2;h=(a>>5)+a|0;i=h>>2;m=J[d+128>>2];l=J[d>>2];r=m+l|0;h=g+(f>>4)+(h-i)|0;n=r-h|0;s=J[d+160>>2];o=J[d+224>>2];p=e-o|0;f=s+p|0;q=(f>>9)-f|0;o=e+o|0;t=J[d+96>>2];e=o+t|0;q=(q>>2)-(q+(e>>1)|0)|0;J[d+128>>2]=n-q;J[d+96>>2]=n+q;h=h+r|0;e=(e>>9)-e|0;e=((e>>2)-e|0)+(f>>1)|0;J[d+224>>2]=h-e;J[d>>2]=e+h;e=p-s|0;f=(e>>3)-(e>>7)|0;i=i+(a>>4)+(g-j)|0;j=l-m|0;h=i+j|0;a=o-t|0;g=(a>>3)-(a>>7)|0;m=(g-(a>>11)>>1)+g+(e-f)|0;J[d+192>>2]=h-m;J[d+32>>2]=h+m;i=j-i|0;a=a-((f+g|0)+(f-(e>>11)>>1)|0)|0;J[d+ +160>>2]=i-a;J[d+64>>2]=a+i}k=k+1|0;if((k|0)!=8)continue;break}a=0;while(1){H[a+c|0]=K[((J[(a<<2)+b>>2]>>>13|0)+512&1023)+2773872|0];d=a|1;H[d+c|0]=K[((J[(d<<2)+b>>2]>>>13|0)+512&1023)+2773872|0];a=a+2|0;if((a|0)!=64)continue;break}}function _Db(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;J[a+76>>2]=0;J[a+80>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[a+56>>2]=0;c=J[b+8>>2];a:{if(c&7)break a;b:{d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;c:{if((c| +0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+12|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break c}if((bd(b,K[a+12|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+13|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break d}if((bd(b,K[a+13|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>> +2]=c-1;e:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+52|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break e}if((bd(b,K[a+52|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;f:{if((c|0)<=0){if((bd(b,0)|0)!=-1)break f;break a}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=0}c=J[a+16>>2];if(Ui(b,c,c>>31))break a;c=J[a+20>>2];if(Ui(b,c,c>>31))break a;c=J[a+24>>2];if(Ui(b,c,c>>31))break a;c=J[a+28>> +2];if(Ui(b,c,c>>31))break a;c=J[a+32>>2];if(Ui(b,c,c>>31))break a;c=J[a+36>>2];if(Ui(b,c,c>>31))break a;c=J[a+40>>2];if(Ui(b,c,c>>31))break a;c=J[a+44>>2];if(Ui(b,c,c>>31))break a;c=J[a+48>>2];if(Ui(b,c,c>>31))break a;if(Lh(b,2,J[a+60>>2],0))break a;if(Lh(b,2,J[a+72>>2],0))break a;c=0;d=P(J[a+60>>2],K[a+12|0]);if((d|0)>0)while(1){if(Lh(b,1,K[J[a+68>>2]+c|0],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}c=0;d=P(J[a+72>>2],K[a+13|0]);if((d|0)>0)while(1){if(Lh(b,1,K[J[a+80>>2]+c|0],0))break a;c= +c+1|0;if((d|0)!=(c|0))continue;break}d=K[a+12|0];g:{if(!d){d=1;break g}c=K[a+52|0];f=d&7;h:{if(d>>>0<8){d=1;break h}g=d&248;d=1;while(1){d=P(c,P(c,P(c,P(c,P(c,P(c,P(c,P(c,d))))))));e=e+8|0;if((g|0)!=(e|0))continue;break}}if(!f)break g;e=0;while(1){d=P(c,d);e=e+1|0;if((f|0)!=(e|0))continue;break}}d=P(K[a+13|0],d);if((d|0)<=0)return 0;c=0;while(1){if(Lh(b,1,K[J[a+56>>2]+c|0],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}return 0}J[b+8>>2]=c|4}return-1}function Iva(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=fc-16|0;fc=e;J[a>>2]=0;a:{b:{c:{d:{if(J[d>>2]){J[699344]=0;J[e+8>>2]=0;f=e+8|0;aa(5145,f|0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;g=J[J[b>>2]+32>>2];J[699344]=0;h=g;g=e+12|0;ia(h|0,g|0,b|0,d|0,f|0);d=J[699344];J[699344]=0;e:{f:{g:{h:{i:{if((d|0)!=1){J[699344]=0;aa(5153,a|0,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;d=J[e+12>>2];J[e+12>>2]=0;j:{if(!d)break j;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break j;J[699344]= +0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}d=J[e+8>>2];J[e+8>>2]=0;k:{if(!d)break k;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break k;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}if(!c|!K[c|0])break b;d=J[a>>2];if(!d)break e;d=J[d+12>>2];J[699344]=0;f=e+12|0;ia(5639,f|0,b|0,c|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;aa(5153,a|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;a=J[e+12>>2]; +J[e+12>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;break b}c=Z()|0;break h}c=Z()|0;zc(e+12|0)}zc(e+8|0);break c}c=Z()|0;break c}c=Z()|0;zc(e+12|0);break c}J[699344]=0;d=e+12|0;ca(5638,d|0,b|0,c|0);b=J[699344];J[699344]=0;l:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[699344]= +0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}c=Z()|0;break c}c=Z()|0;zc(e+12|0);break c}if(!c|!K[c|0])break b;J[699344]=0;d=e+12|0;ca(5638,d|0,b|0,c|0);b=J[699344];J[699344]=0;m:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break b; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}c=Z()|0;break c}c=Z()|0;zc(e+12|0);break c}c=Z()|0}zc(a);ba(c|0);B()}fc=e+16|0;return}ea(0)|0;Bc();B()}function q3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;w=fc-352|0;fc=w;x=J[a+332>>2];b=J[b+84>>2];a=w;while(1){i=J[b+224>>2];q=I[c+112>>1];h=J[b+96>>2];k=I[c+48>>1];l=J[b+160>>2];m=I[c+80>>1];f=J[b+32>>2];p=I[c+16>>1];g=P(I[c>>1],J[b>>2])<< +13|1024;n=P(J[b+192>>2],I[c+96>>1]);t=P(J[b+64>>2],I[c+32>>1]);o=n+t|0;j=P(J[b+128>>2],I[c+64>>1]);u=o-j|0;J[a+160>>2]=g+P(u,-11585)>>11;h=P(h,k);f=P(f,p);r=h+f|0;p=P(r,7274);k=P(l,m);l=P(k+f|0,5492);i=P(i,q);q=P(i+(k+r|0)|0,3264);m=g+P(u,11116)|0;u=P(j-n|0,20862);g=(m+u|0)+P(n,17333)|0;r=l+(p+P(f,-7562)|0)|0;f=q+P(i+f|0,3E3)|0;r=r+f|0;J[a+320>>2]=g-r>>11;J[a>>2]=g+r>>11;g=P(n,-6461);n=m+P(o,-9467)|0;o=g+n|0;g=l+P(k,-9766)|0;l=q+P(h+k|0,-9527)|0;g=g+l|0;J[a+256>>2]=o-g>>11;J[a+64>>2]=o+g>>11;m=m+ +P(j-t|0,3529)|0;o=m+P(t,-12399)|0;g=f;f=P(i+h|0,-14731);g=g+(f+P(i,17223)|0)|0;J[a+224>>2]=o-g>>11;J[a+96>>2]=o+g>>11;n=n+(P(j,15929)+P(t,-11395)|0)|0;k=q+((P(k,8203)+P(h,-12019)|0)+P(i,-13802)|0)|0;J[a+192>>2]=n-k>>11;J[a+128>>2]=k+n>>11;j=u+(m+P(j,-14924)|0)|0;h=l+(f+(p+P(h,16984)|0)|0)|0;J[a+288>>2]=j-h>>11;J[a+32>>2]=h+j>>11;a=a+4|0;b=b+4|0;c=c+2|0;s=s+1|0;if((s|0)!=8)continue;break}a=x+128|0;b=w;n=0;while(1){j=J[b+12>>2];i=J[b+4>>2];c=j+i|0;p=P(c,7274);h=J[b+20>>2];l=P(h+i|0,5492);k=J[b+28>> +2];t=P(k+(c+h|0)|0,3264);c=J[(n<<2)+d>>2]+e|0;x=t+P(i+k|0,3E3)|0;o=x+((p+P(i,-7562)|0)+l|0)|0;r=(J[b>>2]<<13)+131072|0;f=J[b+24>>2];q=J[b+8>>2];u=f+q|0;i=J[b+16>>2];g=u-i|0;m=r+P(g,11116)|0;s=P(i-f|0,20862);v=(m+s|0)+P(f,17333)|0;H[c|0]=K[a+(o+v>>>18&1023)|0];H[c+10|0]=K[a+(v-o>>>18&1023)|0];o=m+P(i-q|0,3529)|0;s=(o+P(i,-14924)|0)+s|0;v=t+P(h+j|0,-9527)|0;y=p+P(j,16984)|0;p=P(k+j|0,-14731);y=v+(y+p|0)|0;H[c+1|0]=K[a+(s+y>>>18&1023)|0];H[c+9|0]=K[a+(s-y>>>18&1023)|0];l=v+(P(h,-9766)+l|0)|0;s=P(f,-6461); +f=m+P(u,-9467)|0;m=s+f|0;H[c+2|0]=K[a+(l+m>>>18&1023)|0];H[c+8|0]=K[a+(m-l>>>18&1023)|0];p=x+(p+P(k,17223)|0)|0;l=o+P(q,-12399)|0;H[c+3|0]=K[a+(p+l>>>18&1023)|0];H[c+7|0]=K[a+(l-p>>>18&1023)|0];j=t+((P(h,8203)+P(j,-12019)|0)+P(k,-13802)|0)|0;h=f+(P(i,15929)+P(q,-11395)|0)|0;H[c+4|0]=K[a+(j+h>>>18&1023)|0];H[c+6|0]=K[a+(h-j>>>18&1023)|0];H[c+5|0]=K[a+(r+P(g,268423871)>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=11)continue;break}fc=w+352|0}function N7a(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;d=fc-304|0;fc=d;a:{j=O[b>>3];k=O[b+72>>3]-j;f=O[c+8>>3];n=O[c+80>>3]-f;h=O[c>>3];i=O[c+72>>3]-h;l=O[b+8>>3];m=O[b+80>>3]-l;g=k*n-i*m;b:{if(g>=-1.12E-16&g<=1.12E-16)break b;o=i;i=l-f;h=j-h;f=(o*i-h*n)/g;if(!(f>-1E-12)|!(f<1.000000000001))break b;g=(k*i+h*-m)/g;if(!(g>-1E-12)|!(g<1.000000000001))break b;f=f<=0?0:f>=1?1:f;O[d+296>>3]=f*m+l;O[d+288>>3]=f*k+j;O[d+144>>3]=O[b>>3];O[d+152>>3]=O[b+8>>3];O[d+160>>3]=O[b+16>>3];O[d+168>>3]=O[b+24>>3];O[d+176>>3]=O[b+32>>3];O[d+ +184>>3]=O[b+40>>3];e=J[b+60>>2];J[d+200>>2]=J[b+56>>2];J[d+204>>2]=e;e=J[b+52>>2];J[d+192>>2]=J[b+48>>2];J[d+196>>2]=e;J[d+208>>2]=J[b+64>>2];e=J[b+68>>2];J[d+212>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;O[d+216>>3]=O[b+72>>3];O[d+224>>3]=O[b+80>>3];O[d+232>>3]=O[b+88>>3];O[d+240>>3]=O[b+96>>3];O[d+248>>3]=O[b+104>>3];O[d+256>>3]=O[b+112>>3];e=J[b+124>>2];J[d+264>>2]=J[b+120>>2];J[d+268>>2]=e;e=J[b+132>>2];J[d+272>>2]=J[b+128>>2];J[d+276>>2]=e;J[d+280>>2]=J[b+136>>2];e=J[b+140>>2];J[d+284>>2]=e;if(e)J[e+ +4>>2]=J[e+4>>2]+1;O[d>>3]=O[c>>3];O[d+8>>3]=O[c+8>>3];O[d+16>>3]=O[c+16>>3];O[d+24>>3]=O[c+24>>3];O[d+32>>3]=O[c+32>>3];O[d+40>>3]=O[c+40>>3];e=J[c+60>>2];J[d+56>>2]=J[c+56>>2];J[d+60>>2]=e;e=J[c+52>>2];J[d+48>>2]=J[c+48>>2];J[d+52>>2]=e;J[d+64>>2]=J[c+64>>2];e=J[c+68>>2];J[d+68>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;O[d+72>>3]=O[c+72>>3];O[d+80>>3]=O[c+80>>3];O[d+88>>3]=O[c+88>>3];O[d+96>>3]=O[c+96>>3];O[d+104>>3]=O[c+104>>3];O[d+112>>3]=O[c+112>>3];e=J[c+124>>2];J[d+120>>2]=J[c+120>>2];J[d+124>>2]=e; +e=J[c+132>>2];J[d+128>>2]=J[c+128>>2];J[d+132>>2]=e;J[d+136>>2]=J[c+136>>2];e=J[c+140>>2];J[d+140>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;p=b;b=d+288|0;f=an(p,b);g=an(c,b);J[699344]=0;Ca(2518,a|0,d+144|0,d|0,+f,+g,0,1,0);a=J[699344];J[699344]=0;if((a|0)==1)break a;c:{if(!e)break c;a=J[e+4>>2];J[e+4>>2]=a-1;if(a)break c;kc[J[J[e>>2]+8>>2]](e);Gc(e)}a=J[d+68>>2];d:{if(!a)break d;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break d;kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[d+284>>2];e:{if(!a)break e;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break e; +kc[J[J[a>>2]+8>>2]](a);Gc(a)}a=J[d+212>>2];if(!a)break b;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break b;kc[J[J[a>>2]+8>>2]](a);Gc(a)}fc=d+304|0;return}a=Z()|0;nh(d);nh(d+144|0);ba(a|0);B()}function vub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;c:{if(c>>>0>=41){c=c-11|0;g=(c>>>0)/30|0;if((P(g,30)|0)==(c|0))break c}Jc(a,1028,0,0);return 1028}c=K[d+7|0]|K[d+8|0]<<8|(K[d+9|0]<<16|K[d+10| +0]<<24);h=K[d+3|0]|K[d+4|0]<<8|(K[d+5|0]<<16|K[d+6|0]<<24);f=K[d|0]|K[d+1|0]<<8;l=K[d+2|0];j=P(g,36);i=kc[J[a+152>>2]](j)|0;if(!i)break a;m=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);n=f<<8|f>>>8;c=d+11|0;d=i;while(1){f=K[c|0]|K[c+1|0]<<8;I[d>>1]=f<<8|f>>>8;H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];f=K[c+5|0]|K[c+6|0]<<8|(K[c+7|0]<<16|K[c+8|0]<<24);J[d+8>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[c+9|0]|K[c+10|0]<<8|(K[c+11|0]<<16|K[c+12|0]<< +24);J[d+12>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[d+16|0]=K[c+13|0];f=K[c+14|0]|K[c+15|0]<<8|(K[c+16|0]<<16|K[c+17|0]<<24);J[d+20>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[c+18|0]|K[c+19|0]<<8|(K[c+20|0]<<16|K[c+21|0]<<24);J[d+24>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[c+22|0]|K[c+23|0]<<8|(K[c+24|0]<<16|K[c+25|0]<<24);J[d+28>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[c+26|0]|K[c+27|0]<<8|(K[c+28|0]<<16|K[c+29|0]<<24);J[d+32>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);c= +c+30|0;d=d+36|0;k=k+1|0;if((k|0)!=(g|0))continue;break}d=n&65535;d:{e:{f:{if(!K[a+114|0])break f;c=kc[J[a+152>>2]](48)|0;if(!c)break e;J[c+4>>2]=1078;J[c>>2]=1079;f=J[a+700>>2];g:{if(f){J[f+8>>2]=c;break g}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;J[c+40>>2]=g;J[c+36>>2]=m;J[c+32>>2]=h;H[c+30|0]=l;I[c+28>>1]=d;if(!g)break f;k=c;f=P(g,36);c=kc[J[a+152>>2]](f)|0;J[k+ +44>>2]=c;if(!c)break e;xc(c,i,f)}c=X9(a,d,l,h,m,g,i);break d}Jc(a,1,0,0);c=1}if(c){kc[J[a+156>>2]](i,j);return c|0}if(K[a+112|0]){b=kc[J[b+4>>2]](a,b,e)|0;if(b){kc[J[a+156>>2]](i,j);return b|0}b=J[e>>2];J[b+44>>2]=g;J[b+40>>2]=m;J[b+36>>2]=h;H[b+34|0]=l;I[b+32>>1]=n;b=kc[J[a+152>>2]](j)|0;J[J[e>>2]+48>>2]=b;b=J[J[e>>2]+48>>2];if(!b)break a;xc(b,i,j)}kc[J[a+156>>2]](i,j);return 0}Jc(a,1029,0,0);return 1029}Jc(a,1,0,0);return 1}function R7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;if((d|0)<=0)return-5;J[e>>2]=0;p=65535;g=J[a+1020>>2];if((g|0)>=16383){f=kc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=f;if((f|0)<=16382)H[f+J[a+1028>>2]|0]=255;J[a+1020>>2]=0;g=0}a:{if(J[a+1024>>2]<=(g|0))break a;J[a+1020>>2]=g+1;p=65516;f=K[J[a+1028>>2]+g|0];if(f-10>>>0<4294967288)break a;p=0;J[a+1044>>2]=0;q=f+1|0;I[a+1032>>1]=q;f=1<>1]=f;r=1<>1]=r;i=f+2|0;I[a+1042>>1]=i;I[a+1038>>1]=i;I[a+1036>>1]=f+1;Ac(J[a+1060>> +2],0,4096);Ac(J[a+1068>>2],0,4096);Ac(J[a+1064>>2],0,4096);l=vc(d+1|0);g=J[a+1060>>2];m=nN(a,b);b:{if((m&65535)==L[a+1036>>1])break b;k=d;f=0;i=l;while(1){n=m<<16>>16;if((n|0)<0)break b;c:{d:{e:{if(L[a+1034>>1]==(m&65535)){I[a+1032>>1]=q;I[a+1040>>1]=r;I[a+1042>>1]=L[a+1038>>1];while(1){f=nN(a,b);h=f&65535;if((h|0)==L[a+1034>>1])continue;break}if((h|0)==L[a+1036>>1])break c;h=(f|0)>1]?f:0;H[i|0]=h;k=k-1|0;if(k&65535){i=i+1|0;f=h;break d}if(!c){i=l;f=h;k=d;break d}i=l;f=h;k=d;if(!(mN(a,c, +l,d)&32768))break d;break e}o=J[a+1060>>2];j=m;s=I[a+1042>>1];f:{if((s|0)>(n|0))break f;if(o+4094>>>0<=g>>>0)break f;if((n|0)>(s|0))J[e>>2]=J[e>>2]+1;H[g|0]=h;g=g+1|0;o=J[a+1060>>2];j=f}g:{if(o+4094>>>0<=g>>>0|I[a+1038>>1]>j<<16>>16)break g;while(1){j=j<<16>>16;H[g|0]=K[j+J[a+1064>>2]|0];g=g+1|0;j=I[J[a+1068>>2]+(j<<1)>>1];if((j|0)>1])break g;if(J[a+1060>>2]+4094>>>0>g>>>0)continue;break}}H[g|0]=j;o=I[a+1042>>1];n=I[a+1040>>1];h:{if((o|0)>=(n|0)){j=h;m=f;break h}H[J[a+1064>>2]+o|0]=j;h= +I[a+1042>>1];I[a+1042>>1]=h+1;I[J[a+1068>>2]+(h<<1)>>1]=f;n=L[a+1040>>1];o=L[a+1042>>1]}g=g+1|0;i:{if(o<<16>>16>16)break i;f=I[a+1032>>1];if((f|0)>11)break i;I[a+1032>>1]=f+1;I[a+1040>>1]=n<<1}j:{if(M[a+1060>>2]>=g>>>0)break j;if(!c)while(1){g=g-1|0;H[i|0]=K[g|0];h=k-1|0;f=h&65535;k=f?h:d;i=f?i+1|0:l;if(M[a+1060>>2]>>0)continue;break j}while(1){g=g-1|0;H[i|0]=K[g|0];k=k-1|0;k:{if(k&65535){i=i+1|0;break k}i=l;k=d;if(mN(a,c,l,d)&32768)break e}if(M[a+1060>>2]>>0)continue;break}}h=j;f=m; +break d}p=65535;break b}m=nN(a,b);if((m&65535)!=L[a+1036>>1])continue}break}if(!c|(k&65535)==(d&65535))break b;p=mN(a,c,l,d-(k<<16>>16)|0)}uc(l)}return p<<16>>16}function Iw(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;p=fc-1152|0;fc=p;l=1;i=J[b+8>>2];q=kc[J[J[i>>2]+28>>2]](i)|0;a:{if((q|0)<=0)break a;o=g+128|0;l=0;i=0;while(1){m=i<<2;n=J[m+g>>2]-J[m+o>>2]|0;m=n>>31;if((m^n)-m>>>0>256)break a;i=i+1|0;if((q|0)!=(i|0))continue;break}m=g+256|0;i=0;while(1){n=i<<2;s=J[n+o>>2]- +J[m+n>>2]|0;n=s>>31;if((n^s)-n>>>0>256)break a;i=i+1|0;if((q|0)!=(i|0))continue;break}o=g+384|0;i=0;while(1){n=i<<2;s=J[n+m>>2]-J[n+o>>2]|0;n=s>>31;if((n^s)-n>>>0>256)break a;i=i+1|0;if((q|0)!=(i|0))continue;break}i=0;while(1){l=i<<2;m=J[l+o>>2]-J[g+l>>2]|0;l=m>>31;m=(l^m)-l|0;l=m>>>0<257;if(m>>>0>256)break a;i=i+1|0;if((q|0)!=(i|0))continue;break}}j=(d+f)*.5;k=(c+e)*.5;b:{if(!(!((h|0)>0&l)&(h|0)!=6)){Om(b,k,j,p);xc(J[a+28>>2]+124|0,p,128);g=J[a+8>>2];kc[J[J[g>>2]+116>>2]](g,J[a+28>>2]);j=O[b+248>> +3];k=O[b+232>>3];r=O[b+216>>3];g=J[a+28>>2];t=O[b+256>>3]+(c*O[b+224>>3]+O[b+240>>3]*d);O[g+608>>3]=t;j=j+(c*r+k*d);O[g+600>>3]=j;g=J[g+596>>2];O[g+16>>3]=t;O[g+8>>3]=j;J[g>>2]=1;j=O[b+248>>3];k=O[b+232>>3];r=O[b+216>>3];g=J[a+28>>2];t=O[b+256>>3]+(e*O[b+224>>3]+O[b+240>>3]*d);O[g+608>>3]=t;d=j+(e*r+k*d);O[g+600>>3]=d;re(J[g+596>>2],d,t);d=O[b+248>>3];j=O[b+232>>3];k=O[b+216>>3];g=J[a+28>>2];r=O[b+256>>3]+(e*O[b+224>>3]+O[b+240>>3]*f);O[g+608>>3]=r;d=d+(e*k+j*f);O[g+600>>3]=d;re(J[g+596>>2],d,r); +d=O[b+248>>3];e=O[b+232>>3];j=O[b+216>>3];g=J[a+28>>2];k=O[b+256>>3]+(c*O[b+224>>3]+O[b+240>>3]*f);O[g+608>>3]=k;c=d+(c*j+e*f);O[g+600>>3]=c;re(J[g+596>>2],c,k);b=J[a+28>>2];gg(J[b+596>>2]);g=J[b+596>>2];g=J[(J[g+24>>2]+(J[g+28>>2]<<2)|0)-4>>2];h=J[g+12>>2]<<3;O[b+600>>3]=O[(h+J[g>>2]|0)-8>>3];O[b+608>>3]=O[(h+J[g+4>>2]|0)-8>>3];b=J[a+8>>2];kc[J[J[b>>2]+204>>2]](b,J[a+28>>2]);_f(J[a+28>>2]);break b}Om(b,c,j,p+1024|0);Om(b,e,j,p+896|0);Om(b,k,d,p+768|0);Om(b,k,f,p+640|0);Om(b,k,j,p+512|0);i=xc(p,g, +128);l=i+1024|0;o=xc(i+128|0,l,128);m=xc(i+256|0,i+768|0,128);n=xc(i+384|0,i+512|0,128);q=h+1|0;Iw(a,b,c,d,k,j,i,q);h=xc(i,l,128);i=xc(o,g+128|0,128);l=xc(m,h+512|0,128);o=xc(n,h+640|0,128);Iw(a,b,c,j,k,f,h,q);h=xc(h,h+768|0,128);i=xc(i,h+512|0,128);l=xc(l,g+256|0,128);o=xc(o,h+896|0,128);Iw(a,b,k,d,e,j,h,q);h=xc(h,h+512|0,128);xc(i,h+640|0,128);xc(l,h+896|0,128);xc(o,g+384|0,128);Iw(a,b,k,j,e,f,h,q)}fc=p+1152|0}function lra(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;h=fc- +16|0;fc=h;a:{b:{c:{d:{if((e|0)<=0)break d;g=b+e|0;e:{f:{while(1){g:{g=g-1|0;i=(g<<3)+a|0;h:{if((g-c|0)>=(e|0)){J[i>>2]=0;J[i+4>>2]=J[685894];f=J[(g-e<<3)+a>>2];i:{j:{if(f){j=J[J[f>>2]+28>>2];J[699344]=0;ca(j|0,h+12|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break j;b=Z()|0;break i}J[h+12>>2]=0}J[699344]=0;aa(5153,i|0,h+12|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){f=J[h+12>>2];J[h+12>>2]=0;if(!f)break h;J[699344]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;k=J[699344];J[699344]=0;if((k|0)!=1){if(j)break h;J[699344]= +0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break h}break c}b=Z()|0;zc(h+12|0)}break b}J[i>>2]=0;J[i+4>>2]=J[685894];f=J[d>>2];k:{if(f){j=J[J[f>>2]+28>>2];J[699344]=0;ca(j|0,h+12|0,f|0,1);f=J[699344];J[699344]=0;if((f|0)!=1)break k;b=Z()|0;break e}J[h+12>>2]=0}J[699344]=0;aa(5153,i|0,h+12|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break f;f=J[h+12>>2];J[h+12>>2]=0;if(!f)break h;J[699344]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;k=J[699344];J[699344]=0;if((k|0)==1)break g;if(j)break h;J[699344]=0;$(5147, +f|0);f=J[699344];J[699344]=0;if((f|0)==1)break g}f=i;i=J[i>>2];J[f+4>>2]=J[(i?i+12|0:2743576)>>2];if((b|0)<(g|0))continue;break d}break}break c}b=Z()|0;zc(h+12|0)}break b}if((b|0)>(c|0))while(1){l:{b=b-1|0;if((b-c|0)>=(e|0)){i=(b<<3)+a|0;g=J[(b-e<<3)+a>>2];m:{if(g){kc[J[J[g>>2]+28>>2]](h+12|0,g,1);break m}J[h+12>>2]=0}J[699344]=0;aa(5153,i|0,h+12|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){g=J[h+12>>2];J[h+12>>2]=0;if(!g)break l;J[699344]=0;f=J[g+4>>2]-1|0;J[g+4>>2]=f;j=J[699344];J[699344]=0;if((j| +0)!=1){if(f)break l;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)!=1)break l}break c}break a}i=(b<<3)+a|0;g=J[d>>2];n:{if(g){kc[J[J[g>>2]+28>>2]](h+12|0,g,1);break n}J[h+12>>2]=0}J[699344]=0;aa(5153,i|0,h+12|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){g=J[h+12>>2];J[h+12>>2]=0;if(!g)break l;J[699344]=0;f=J[g+4>>2]-1|0;J[g+4>>2]=f;j=J[699344];J[699344]=0;if((j|0)!=1){if(f)break l;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)!=1)break l}break c}break a}i=J[i>>2];J[((b<<3)+a|0)+4>> +2]=J[(i?i+12|0:2743576)>>2];if((b|0)>(c|0))continue;break}fc=h+16|0;return}ea(0)|0;Bc();B()}wc(i);ba(b|0);B()}a=Z()|0;zc(h+12|0);ba(a|0);B()}function NWa(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;d=J[a+420>>2];c=J[a+24>>2];J[d+112>>2]=J[c>>2];J[d+116>>2]=J[c+4>>2];if(!(J[d+36>>2]|!J[a+236>>2]))ZB(d,J[d+40>>2]);a:{i=J[a+360>>2];l=J[a+364>>2];if((i|0)>(l|0))break a;p=J[b>>2];q=J[a+380>>2];m=J[a+372>>2];b=0;while(1){b:{c:{d:{c=I[(J[(i<<2)+q>>2]<<1)+p>>1];if(!c)break d; +k=0-c>>>m|0;n=c>>>m|0;o=(c|0)<0;j=o?k:n;if(!j)break d;if(J[d+128>>2])Ir(d);if((b|0)<16)break c;e:{if(!J[d+108>>2]){f=0;break e}c=J[((J[d+124>>2]<<2)+d|0)+92>>2];e=c;f=J[c+960>>2];c=(b-((b|0)>=31?31:b)|0)+15|0;J[e+960>>2]=(f+(c>>>4|0)|0)+1;b=(b-(c&-16)|0)-16|0;break c}while(1){c=J[d+124>>2];f:{if(f){c=J[((c<<2)+d|0)+92>>2];J[c+960>>2]=J[c+960>>2]+1;break f}c=J[((c<<2)+d|0)+60>>2];f=J[c+960>>2];e=J[d+16>>2];c=H[c+1264|0];if(!c){g=J[d+120>>2];h=J[g>>2];J[h+20>>2]=41;kc[J[h>>2]](g);if(J[d+108>>2])break f}f= +f&(-1<>2]|f<<24-c;if((c|0)>=8)while(1){e=J[d+112>>2];J[d+112>>2]=e+1;H[e|0]=f>>>16;e=J[d+116>>2]-1|0;J[d+116>>2]=e;if(!e){g=J[d+120>>2];e=J[g+24>>2];if(!(kc[J[e+12>>2]](g)|0)){g=J[d+120>>2];h=J[g>>2];J[h+20>>2]=25;kc[J[h>>2]](g)}J[d+112>>2]=J[e>>2];J[d+116>>2]=J[e+4>>2]}e=c;g:{if((f&16711680)!=16711680)break g;c=J[d+112>>2];J[d+112>>2]=c+1;H[c|0]=0;c=J[d+116>>2]-1|0;J[d+116>>2]=c;if(c)break g;g=J[d+120>>2];c=J[g+24>>2];if(!(kc[J[c+12>>2]](g)|0)){g=J[d+120>>2];h=J[g>>2];J[h+ +20>>2]=25;kc[J[h>>2]](g)}J[d+112>>2]=J[c>>2];J[d+116>>2]=J[c+4>>2]}c=e-8|0;f=f<<8;if((e|0)>15)continue;break}J[d+16>>2]=c;J[d+12>>2]=f}c=b-16|0;if((b|0)>31){f=J[d+108>>2];b=c;continue}break}b=c;break c}if((i|0)!=(l|0)){b=b+1|0;break b}if((b|0)<0)break a;b=J[d+128>>2]+1|0;J[d+128>>2]=b;if((b|0)!=32767)break a;Ir(d);break a}e=k^-1;f=1;h:{if(j>>>0<2)break h;while(1){c=f;f=c+1|0;k=j>>>0>3;j=j>>>1|0;if(k)continue;break}if(c>>>0<10)break h;c=J[a>>2];J[c+20>>2]=6;kc[J[c>>2]](a)}e=o?e:n;b=(b<<4)+f|0;c=J[d+ +124>>2];i:{if(J[d+108>>2]){b=J[((c<<2)+d|0)+92>>2]+(b<<2)|0;J[b>>2]=J[b>>2]+1;break i}c=J[((c<<2)+d|0)+60>>2];Gr(d,J[c+(b<<2)>>2],H[(b+c|0)+1024|0])}Gr(d,e,f);b=0;if((i|0)==(l|0))break a}i=i+1|0;continue}}b=J[a+24>>2];J[b>>2]=J[d+112>>2];J[b+4>>2]=J[d+116>>2];a=J[a+236>>2];if(a){b=J[d+36>>2];if(b)a=b;else J[d+40>>2]=J[d+40>>2]+1&7;J[d+36>>2]=a-1}return 1}function uva(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=fc-16|0;fc=f;g=J[b>>2];g=J[(g?g+12|0:2743576)>>2];J[f+12>>2]=0;a:{b:{c:{d:{if(!g| +!K[g|0])break d;J[699344]=0;g=aa(5642,0,0)|0;e=J[699344];J[699344]=0;e:{f:{g:{h:{i:{j:{k:{l:{if((e|0)==1)break l;J[699344]=0;g=aa(5149,f+4|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break l;e=J[b>>2];h=J[J[e>>2]+24>>2];J[699344]=0;ca(h|0,f|0,e|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break k;J[699344]=0;aa(5153,f+12|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[f>>2];J[f>>2]=0;m:{n:{if(!e)break n;J[699344]=0;h=J[e+4>>2]-1|0;J[e+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break m;if(h)break n; +J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break m}if(c)break g;if(J[f+12>>2])break f;J[699344]=0;c=aa(5642,0,2388172)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;e=J[g>>2];o:{p:{q:{if(e){e=J[e+12>>2];if(!(!e|!K[e|0])){if(!c|!K[c|0])break o;c=Ic(e,c);break p}if(c)break q;break f}if(!c)break d}c=K[c|0]?-1:0}if(!c)break f}b=J[b>>2];c=J[J[b>>2]+24>>2];J[699344]=0;ca(c|0,f|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;aa(5153,f+12|0,f|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break j;b=J[f>>2];J[f>>2]=0;if(!b)break g;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break m;if(c)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g}break a}b=Z()|0;break b}b=Z()|0;wc(g);break b}b=Z()|0;zc(f);wc(g);break b}b=Z()|0;zc(f);wc(g);break b}b=Z()|0;wc(g);break b}b=J[g>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;aa(5642,0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c}b=J[g>>2];J[g>>2]=0;if(!b)break d;J[699344]=0; +c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}break a}b=Z()|0;wc(g);break b}J[699344]=0;aa(5644,a|0,f+12|0)|0;a=J[699344];J[699344]=0;r:{if((a|0)!=1){a=J[f+12>>2];J[f+12>>2]=0;s:{if(!a)break s;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break r;if(b)break s;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break r}fc=f+16|0;return}b=Z()|0;break b}break a}b= +Z()|0;wc(g)}zc(f+12|0);ba(b|0);B()}ea(0)|0;Bc();B()}function Kva(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=fc-16|0;fc=e;J[a>>2]=0;a:{b:{c:{d:{if(J[c>>2]){J[699344]=0;J[e+8>>2]=0;g=e+8|0;aa(5145,g|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;f=J[J[b>>2]+32>>2];J[699344]=0;h=f;f=e+12|0;ia(h|0,f|0,b|0,c|0,g|0);c=J[699344];J[699344]=0;e:{f:{g:{h:{i:{if((c|0)!=1){J[699344]=0;aa(5153,a|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;c=J[e+12>>2];J[e+12>>2]=0;j:{if(!c)break j;J[699344]= +0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(g)break j;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[e+8>>2];J[e+8>>2]=0;k:{if(!c)break k;J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(g)break k;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}if(!d|!K[d|0])break b;c=J[a>>2];if(!c)break e;J[699344]=0;b=e+12|0;ca(5637,b|0,c|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break g;J[699344]= +0;aa(5153,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;break b}d=Z()|0;break h}d=Z()|0;zc(e+12|0)}zc(e+8|0);break c}d=Z()|0;break c}d=Z()|0;zc(e+12|0);break c}J[699344]=0;c=e+12|0;ca(5638,c|0,b|0,d|0);b=J[699344];J[699344]=0;l:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,c|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break l;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}d=Z()|0;break c}d=Z()|0;zc(e+12|0);break c}if(!d|!K[d|0])break b;J[699344]=0;c=e+12|0;ca(5638,c|0,b|0,d|0);b=J[699344];J[699344]=0;m:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break b;J[699344]=0; +b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}d=Z()|0;break c}d=Z()|0;zc(e+12|0);break c}d=Z()|0}zc(a);ba(d|0);B()}fc=e+16|0;return}ea(0)|0;Bc();B()}function Ypb(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=fc-48|0;fc=f;a:{b:{c:{if(!Ic(b,252084)){e=6;if(d)break a;d=J[c>>2];b=0;c=245216;while(1){if(!((d|0)!=J[c+8>>2]|J[c+16>>2]!=10)){c=b;break c}c=b+1|0;g=J[(c<< +2)+247312>>2];if((d|0)==J[g+8>>2]&J[g+16>>2]==10)break c;c=b+2|0;g=J[(c<<2)+247312>>2];if((d|0)==J[g+8>>2]&J[g+16>>2]==10)break c;b=b+3|0;c=J[(b<<2)+247312>>2];if((b|0)!=87)continue;break}break a}if(!Ic(b,252100)){e=6;if(d)break a;J[a+16>>2]=J[c>>2];break b}if(!Ic(b,252115)){e=6;if(d)break a;b=J[c>>2];if(!b){e=35;break a}d=J[b+116>>2];J[f+16>>2]=d;if(!d){e=nE(b,f+16|0,a);if(e)break a;d=J[f+16>>2];J[b+116>>2]=d;J[b+120>>2]=1643}J[d+12>>2]=J[c+4>>2];break b}if(!Ic(b,252133)){if(d){e=6;d:switch(Ig(c, +0,10)|0){case 0:e=0;H[a+20|0]=0;break a;case 1:break d;default:break a}H[a+20|0]=1;break b}H[a+20|0]=K[c|0];break b}e:{if(!Ic(b,252141)){f:{if(!d){b=J[c>>2];break f}d=f+12|0;b=Ig(c,d,10);e=J[f+12>>2];if(K[e|0]!=44|(c|0)==(e|0))break e;e=e+1|0;l=f,m=Ig(e,d,10),J[l+20>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Ig(e,d,10),J[l+24>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Ig(e,d,10),J[l+28>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0; +l=f,m=Ig(e,f+12|0,10),J[l+32>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Ig(e,f+12|0,10),J[l+36>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;e=c+1|0;l=f,m=Ig(e,f+12|0,10),J[l+40>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break e;c=c+1|0;l=f,m=Ig(c,d,10),J[l+44>>2]=m;d=J[f+12>>2];if((K[d|0]|32)!=32|(c|0)==(d|0))break e;c=f+16|0}e=6;if((b|0)<0)break a;d=J[c+8>>2];if((d|0)<0)break a;g=J[c+16>>2];if((g|0)<0)break a;h=J[c+24>>2];if((h|0)<0)break a;i=J[c+4>>2];if((i| +0)<0)break a;j=J[c+12>>2];if((j|0)<0)break a;k=J[c+20>>2];if((k|0)<0)break a;c=J[c+28>>2];if((c|0)<0|(b|0)>(d|0)|((d|0)>(g|0)|g>>>0>h>>>0))break a;if(i>>>0>500|j>>>0>500|(k>>>0>500|c>>>0>500))break a;J[a+24>>2]=b;J[a+52>>2]=c;J[a+48>>2]=h;J[a+44>>2]=k;J[a+40>>2]=g;J[a+36>>2]=j;J[a+32>>2]=d;J[a+28>>2]=i;break b}e=12;if(Ic(b,252162))break a;if(d){e=0;if(!Ig(c,0,10)){H[a+21|0]=0;break a}H[a+21|0]=1;break a}H[a+21|0]=K[c|0];break b}e=6;break a}J[a+12>>2]=c}e=0}fc=f+48|0;return e|0}function OZa(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=fc-48|0;fc=f;H[f+47|0]=0;g=1E3;e=Dc(1E3);H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0;j=J[b>>2];i=J[b+4>>2];h=K[b+11|0];J[699344]=0;k=f+32|0;l=b;b=h<<24>>24<0;ia(1626,k|0,(b?j:l)|0,(b?i:h)|0,0);b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((b|0)!=1){h=K[f+43|0];j=h<<24>>24<0;k=j?J[f+32>>2]:k;h=j?J[f+36>>2]:h;j=h+8|0;b=e+4|0;g:{if(j>>>0<1001)break g;while(1){g=g<<1;if(j>>>0>g>>>0)continue;break}b=fe(e,g);if(b){e=b;b=b+4|0;break g}b= +Dc(g);i=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[b|0]=i;H[b+1|0]=i>>>8;H[b+2|0]=i>>>16;H[b+3|0]=i>>>24;uc(e);e=b;b=b+4|0}H[e+4|0]=h;H[e+5|0]=h>>>8;H[e+6|0]=h>>>16;H[e+7|0]=h>>>24;i=h+12|0;b=xc(b+4|0,k,h)+h|0;h:{if(i>>>0<=g>>>0)break h;while(1){g=g<<1;if(i>>>0>g>>>0)continue;break}b=fe(e,g);if(b){e=b;b=b+j|0;break h}b=xc(Dc(g),e,j);uc(e);e=b;b=j+b|0}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=h+16|0;b=b+4|0;i:{if(c>>>0<=g>>>0)break i;while(1){g=g<<1;if(c>>>0>g>>>0)continue;break}b= +fe(e,g);if(b){e=b;b=b+i|0;break i}b=xc(Dc(g),e,i);uc(e);e=b;b=i+b|0}H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;H[e|0]=c;H[e+1|0]=c>>>8;H[e+2|0]=c>>>16;H[e+3|0]=c>>>24;J[699344]=0;c=aa(3355,e|0,f+47|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;j:{if(!K[f+47|0])break j;b=Yc(c);if(b>>>0>=2147483632){J[699344]=0;$(3030,f+20|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;B()}k:{if(b>>>0<=10){H[f+31|0]=b;d=f+20|0;break k}J[699344]=0;g=(b|15)+1|0;d=_(4, +g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;J[f+20>>2]=d;J[f+24>>2]=b;J[f+28>>2]=g|-2147483648}m=cd(d,c,b)+b|0,n=0,H[m|0]=n;J[699344]=0;b=H[f+31|0];d=(b|0)<0;ca(1618,f+8|0,(d?J[f+20>>2]:f+20|0)|0,(d?J[f+24>>2]:b&255)|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;b=H[f+31|0];d=J[f+12>>2];J[a>>2]=J[f+8>>2];J[a+4>>2]=d;J[a+8>>2]=J[f+16>>2];if((b|0)>=0)break j;uc(J[f+20>>2])}J[699344]=0;_(3356,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(H[f+43|0]<0)uc(J[f+32>>2]);uc(e);fc=f+48|0;return}g= +Z()|0;break a}g=Z()|0;break b}g=Z()|0;break b}g=Z()|0;if(H[f+31|0]>=0)break b;uc(J[f+20>>2]);break b}g=Z()|0;if(H[a+11|0]>=0)break b;uc(J[a>>2])}if(H[f+43|0]>=0)break a;uc(J[f+32>>2])}uc(e);ba(g|0);B()}function C0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0;b=J[b+84>>2];f=P(J[b+160>>2],I[c+80>>1]);h=P(J[b+32>>2],I[c+16>>1]);g=P(f+h|0,2998);l=J[d>>2]+e|0;a=J[a+332>> +2]+128|0;m=P(J[b+96>>2],L[c+48>>1]);x=g+(m+h<<13)|0;y=P(P(I[c+32>>1],J[b+64>>2]),10033);r=P(I[c>>1],J[b>>2])<<13|1024;s=P(J[b+128>>2],I[c+64>>1]);z=r+P(s,5793)|0;A=y+z|0;B=(x+A<<2&-8192)+131072|0;i=P(J[b+168>>2],I[c+84>>1]);n=P(J[b+40>>2],I[c+20>>1]);t=P(i+n|0,2998);j=P(J[b+104>>2],I[c+52>>1]);C=t+(j+n<<13)|0;u=P(P(I[c+36>>1],J[b+72>>2]),10033);v=P(I[c+4>>1],J[b+8>>2])<<13|1024;k=P(J[b+136>>2],I[c+68>>1]);D=v+P(k,5793)|0;E=u+D|0;w=C+E>>11;F=B+P(w,5793)|0;o=P(J[b+164>>2],I[c+82>>1]);p=P(J[b+36>>2], +I[c+18>>1]);G=P(o+p|0,2998);q=P(J[b+100>>2],I[c+50>>1]);M=G+(q+p<<13)|0;N=P(P(I[c+34>>1],J[b+68>>2]),10033);O=P(I[c+2>>1],J[b+4>>2])<<13|1024;c=P(J[b+132>>2],I[c+66>>1]);Q=O+P(c,5793)|0;R=N+Q|0;b=P(M+R>>11,10033);H[l|0]=K[a+(F+b>>>18&1023)|0];H[l+2|0]=K[a+(F-b>>>18&1023)|0];H[l+1|0]=K[a+(B+P(w,268423870)>>>18&1023)|0];b=J[d+4>>2]+e|0;l=n-(i+j|0)<<2;n=v+P(k,-11586)>>11;k=l+n|0;h=h-(f+m|0)<<2;v=r+P(s,-11586)>>11;w=(h+v<<13)+131072|0;s=P(k,5793)+w|0;p=p-(o+q|0)<<2;c=P(c,-11586)+O>>11;r=P(p+c|0,10033); +H[b|0]=K[a+(s+r>>>18&1023)|0];H[b+2|0]=K[a+(s-r>>>18&1023)|0];H[b+1|0]=K[a+(w+P(k,268423870)>>>18&1023)|0];b=J[d+8>>2]+e|0;f=g+(f-m<<13)|0;g=z-y|0;m=(f+g<<2&-8192)+131072|0;i=(i-j<<13)+t|0;j=D-u|0;t=i+j>>11;u=m+P(t,5793)|0;o=(o-q<<13)+G|0;q=Q-N|0;k=P(o+q>>11,10033);H[b|0]=K[a+(u+k>>>18&1023)|0];H[b+2|0]=K[a+(u-k>>>18&1023)|0];H[b+1|0]=K[a+(m+P(t,268423870)>>>18&1023)|0];b=J[d+12>>2]+e|0;f=(g-f<<2&-8192)+131072|0;i=j-i>>11;g=f+P(i,5793)|0;j=P(q-o>>11,10033);H[b|0]=K[a+(g+j>>>18&1023)|0];H[b+2|0]=K[a+ +(g-j>>>18&1023)|0];H[b+1|0]=K[a+(f+P(i,268423870)>>>18&1023)|0];b=J[d+16>>2]+e|0;h=(v-h<<13)+131072|0;f=n-l|0;g=h+P(f,5793)|0;c=P(c-p|0,10033);H[b|0]=K[a+(g+c>>>18&1023)|0];H[b+2|0]=K[a+(g-c>>>18&1023)|0];H[b+1|0]=K[a+(h+P(f,268423870)>>>18&1023)|0];b=J[d+20>>2]+e|0;d=(A-x<<2&-8192)+131072|0;c=E-C>>11;e=d+P(c,5793)|0;f=P(R-M>>11,10033);H[b|0]=K[a+(e+f>>>18&1023)|0];H[b+2|0]=K[a+(e-f>>>18&1023)|0];H[b+1|0]=K[a+(d+P(c,268423870)>>>18&1023)|0]}function SC(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;j=J[a+44>>2];m=j-262|0;d=J[a+116>>2];while(1){h=J[a+108>>2];i=J[a+60>>2]-(h+d|0)|0;if(J[a+44>>2]+m>>>0<=h>>>0){b=J[a+56>>2];xc(b,b+j|0,j-i|0);J[a+112>>2]=J[a+112>>2]-j;h=J[a+108>>2]-j|0;J[a+108>>2]=h;J[a+92>>2]=J[a+92>>2]-j;b=J[a+76>>2];g=b-1|0;e=J[a+68>>2]+(b<<1)|0;c=J[a+44>>2];d=0;k=b&3;if(k)while(1){e=e-2|0;l=L[e>>1];f=l-c|0;I[e>>1]=f>>>0<=l>>>0?f:0;b=b-1|0;d=d+1|0;if((k|0)!=(d|0))continue;break}if(g>>>0>=3)while(1){f=e-2|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-4|0;g= +L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-6|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;e=e-8|0;f=L[e>>1];d=f-c|0;I[e>>1]=d>>>0<=f>>>0?d:0;b=b-4|0;if(b)continue;break}e=J[a+64>>2]+(c<<1)|0;d=0;b=c;g=c&3;if(g)while(1){e=e-2|0;k=L[e>>1];f=k-c|0;I[e>>1]=f>>>0<=k>>>0?f:0;b=b-1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(c-1>>>0>=3)while(1){f=e-2|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-4|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;f=e-6|0;g=L[f>>1];d=g-c|0;I[f>>1]=d>>>0<=g>>>0?d:0;e=e-8| +0;f=L[e>>1];d=f-c|0;I[e>>1]=d>>>0<=f>>>0?d:0;b=b-4|0;if(b)continue;break}i=i+j|0}c=J[a>>2];d=J[c+4>>2];a:{if(!d)break a;e=d>>>0>>0?d:i;b=J[a+116>>2];if(i){i=J[a+56>>2];J[c+4>>2]=d-e;b=xc(b+(i+h|0)|0,J[c>>2],e);b:{c:switch(J[J[c+28>>2]+24>>2]-1|0){case 0:n=c,o=Zo(J[c+48>>2],b,e),J[n+48>>2]=o;break b;case 1:break c;default:break b}n=c,o=ig(J[c+48>>2],b,e),J[n+48>>2]=o}J[c>>2]=e+J[c>>2];J[c+8>>2]=e+J[c+8>>2];b=J[a+116>>2]}d=b+e|0;J[a+116>>2]=d;e=J[a+5812>>2];d:{if(e+d>>>0<3)break d;c=J[a+108>>2]- +e|0;i=J[a+56>>2];b=c+i|0;h=K[b|0];J[a+72>>2]=h;f=J[a+84>>2];g=h;h=J[a+88>>2];b=f&(K[b+1|0]^g<>2]=b;i=i+2|0;while(1){if(!e)break d;b=f&(K[c+i|0]^b<>2]=b;g=J[a+68>>2]+(b<<1)|0;I[J[a+64>>2]+((J[a+52>>2]&c)<<1)>>1]=L[g>>1];I[g>>1]=c;e=e-1|0;J[a+5812>>2]=e;c=c+1|0;if(d+e>>>0>2)continue;break}}if(d>>>0>261)break a;if(J[J[a>>2]+4>>2])continue}break}e=J[a+60>>2];b=J[a+5824>>2];e:{if(e>>>0<=b>>>0)break e;c=J[a+116>>2]+J[a+108>>2]|0;f:{if(c>>>0>b>>>0){b=e-c|0;b=b>>>0>=258?258:b;Ac(c+J[a+ +56>>2]|0,0,b);b=b+c|0;break f}c=c+258|0;if(c>>>0<=b>>>0)break e;h=b+J[a+56>>2]|0;c=c-b|0;b=e-b|0;b=b>>>0>c>>>0?c:b;Ac(h,0,b);b=b+J[a+5824>>2]|0}J[a+5824>>2]=b}}function qma(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;c=fc-16|0;fc=c;i=a+496|0;fA(i,b);e=c+4|0;J[c+8>>2]=e;a:{b:{c:{d:{j=J[i+4>>2];e:{if((j|0)==(i|0)){d=e;break e}while(1){J[699344]=0;d=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;g=0;J[d>>2]=0;b=J[j+8>>2];J[d+20>>2]=0;m=d+12|0;J[d+16>>2]= +m;J[d+8>>2]=b;J[m>>2]=m;b=m;f=J[j+16>>2];p=j+12|0;if((f|0)!=(p|0))while(1){J[699344]=0;k=_(4,24)|0;r=J[699344];J[699344]=0;if((r|0)==1)break d;O[k+8>>3]=O[f+8>>3];h=O[f+16>>3];J[k+4>>2]=m;O[k+16>>3]=h;J[k>>2]=b;J[b+4>>2]=k;g=g+1|0;J[d+20>>2]=g;J[d+12>>2]=k;b=k;f=J[f+4>>2];if((p|0)!=(f|0))continue;break}J[d>>2]=e;J[d+4>>2]=c+4;J[e+4>>2]=d;o=o+1|0;e=d;j=J[j+4>>2];if((j|0)!=(i|0))continue;break}}J[c+4>>2]=d;J[c+12>>2]=o;O[a+32>>3]=O[i+16>>3];O[a+8>>3]=O[i+24>>3];O[a+48>>3]=O[i+32>>3]-O[a+32>>3];q=O[a+ +8>>3];h=O[i+40>>3]-q;O[a+24>>3]=h;g=J[c+8>>2];if((g|0)==(c+4|0)){f=0;break c}f=0;b=g;while(1){f:{g:switch(J[b+8>>2]){case 0:case 1:n=n+1|0;break f;case 2:break g;default:break f}f=f+1|0}b=J[b+4>>2];if((b|0)!=(c+4|0))continue;break}break c}b=Z()|0;J[c+4>>2]=e;J[c+12>>2]=o;Am(m);uc(d);break a}l=O[a+48>>3];h:{if(!(!(K[a+620|0]?K[a+621|0]:0)&(J[a+76>>2]!=16777215|J[a+436>>2]!=16777215))){J[a+664>>2]=4;break h}if(!((n|0)!=5&(n|0)!=2|f)){J[a+664>>2]=1;if(h<.7){if(l>2){J[a+668>>2]=5;break h}if(l>.7){J[a+ +668>>2]=3;break h}J[a+668>>2]=1;break h}if(!(l<.7))break h;if(h>2){J[a+668>>2]=6;break h}if(h>.7){J[a+668>>2]=4;break h}J[a+668>>2]=2;break h}if(!(!f|n>>>0>1)){J[a+664>>2]=2;if(h>2]=7;break h}J[a+668>>2]=8;break h}if(!f|n>>>0<2)break h;J[a+664>>2]=3}if(l<1E-4){J[a+48>>2]=-350469331;J[a+52>>2]=1058682594;l=1E-4}if(h<1E-4){J[a+24>>2]=-350469331;J[a+28>>2]=1058682594;h=1E-4}O[a+16>>3]=q+h;O[a+40>>3]=O[a+32>>3]+l;i:{if(!J[c+12>>2])break i;a=J[g>>2];b=J[J[c+4>>2]+4>>2];J[a+4>>2]=b;J[b>>2]= +a;J[c+12>>2]=0;if((c+4|0)==(g|0))break i;while(1){a=g;g=J[a+4>>2];j:{if(!J[a+20>>2])break j;b=J[a+16>>2];d=J[b>>2];e=J[J[a+12>>2]+4>>2];J[d+4>>2]=e;J[e>>2]=d;J[a+20>>2]=0;e=a+12|0;if((e|0)==(b|0))break j;while(1){d=J[b+4>>2];uc(b);b=d;if((e|0)!=(d|0))continue;break}}uc(a);if((c+4|0)!=(g|0))continue;break}}fc=c+16|0;return}b=Z()|0;J[c+4>>2]=e;J[c+12>>2]=o}LU(c+4|0);ba(b|0);B()}function bKa(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;b=J[a+44>>2];if(!(b&7)){if(b>>>0>=8){i=J[a+40>>2]; +l=8;while(1){k=J[a+12>>2]<<5;e=J[a>>2];g=J[a+36>>2];b=J[a+16>>2];h=J[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=(P(b,g)<<2)+i|0;f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;f=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=f;b=d}if((d|0)==(h|0))break a;while(1){d=(P(b,g)<<2)+i|0;f=J[d+4>>2];c=j+(b<<6)|0;J[c>>2]=J[d>>2];J[c+4>>2]=f;f=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=f;f= +J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=f;f=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=f;d=b+1|0;c=j+(d<<6)|0;d=(P(d,g)<<2)+i|0;f=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=f;f=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=f;f=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=f;f=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=f;b=b+2|0;if((h|0)!=(b|0))continue;break}}b=J[a+24>>2];h=J[a+28>>2];b:{if(b>>>0>=h>>>0)break b;j=(e-k|0)+32|0;k=(P(g,J[a+8>>2])<<2)+i|0;d=b+1|0;if(h-b&1){c=j+(b<<6)|0;b=k+(P(b,g)<<2)|0;e=J[b+ +4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;e=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=e;e=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=e;e=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=e;b=d}if((d|0)==(h|0))break b;while(1){d=k+(P(b,g)<<2)|0;e=J[d+4>>2];c=j+(b<<6)|0;J[c>>2]=J[d>>2];J[c+4>>2]=e;e=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=e;e=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=e;e=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=e;d=b+1|0;c=j+(d<<6)|0;d=k+(P(d,g)<<2)|0;e=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+ +28>>2]=e;e=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=e;e=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=e;e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;b=b+2|0;if((h|0)!=(b|0))continue;break}}Lo(a);b=0;if(J[a+32>>2])while(1){d=J[a>>2]+(b<<5)|0;c=J[d+4>>2];g=(P(J[a+36>>2],b)<<2)+i|0;J[g>>2]=J[d>>2];J[g+4>>2]=c;c=J[d+28>>2];J[g+24>>2]=J[d+24>>2];J[g+28>>2]=c;c=J[d+20>>2];J[g+16>>2]=J[d+16>>2];J[g+20>>2]=c;c=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=c;b=b+1|0;if(b>>>0>2])continue;break}i=i+32|0;l=l+8| +0;if(l>>>0<=M[a+44>>2])continue;break}}uc(J[a>>2]);uc(a);return}fa(2354871,2350512,3265,2355063);B()}function KXa(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=fc-32|0;fc=a;d=vc(32);J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=1072693248;H[d|0]=0;J[d+24>>2]=0;a:{b:{c:{if(!b)break c;k=d+16|0;if(c){J[a+16>>2]=13;d:{if(J[Ec(J[b+8>>2],778990,a+16|0,0)>>2]!=4|J[a+16>>2]!=4)break d;e=J[a+24>>2];c=0;e:{if(!Ic(e,778990))break e;c=1;if(!Ic(e,829880))break e;c=2;if(!Ic(e,818532))break e; +c=3;if(!Ic(e,821242))break e;if(Ic(e,830068))break d;c=4}H[d|0]=c}c=a+16|0;yc(c);if(J[Ec(J[b+8>>2],852531,c,0)>>2]-3>>>0>=4294967294)O[d+8>>3]=J[a+16>>2]==1?+J[a+24>>2]:O[a+24>>3];c=a+16|0;yc(c);f:{if(J[Ec(J[b+8>>2],829880,c,0)>>2]!=6)break f;b=J[a+24>>2];if(J[b+12>>2]<=0)break f;while(1){J[a>>2]=13;g:{if(J[Sc(b,j,a,0)>>2]-3>>>0<4294967294)break g;i=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];b=J[d+20>>2];c=J[d+24>>2];if(b>>>0>>0){O[b>>3]=i;J[d+20>>2]=b+8;break g}g=J[k>>2];h=b-g>>3;f=h+1|0;if(f>>>0>=536870912)break b; +e=c-g|0;c=e>>2;f=e>>>0>=2147483640?536870911:c>>>0>f>>>0?c:f;if(f){if(f>>>0>=536870912)break a;e=vc(f<<3)}else e=0;c=e+(h<<3)|0;O[c>>3]=i;h=c+8|0;if((b|0)!=(g|0))while(1){c=c-8|0;b=b-8|0;O[c>>3]=O[b>>3];if((b|0)!=(g|0))continue;break}J[d+24>>2]=e+(f<<3);J[d+20>>2]=h;J[d+16>>2]=c;if(!g)break g;uc(g)}yc(a);j=j+1|0;b=J[a+24>>2];if((j|0)>2])continue;break}}yc(a+16|0);break c}J[a+16>>2]=13;if(J[Sc(J[b+8>>2],2,a+16|0,0)>>2]-3>>>0>=4294967294)i=J[a+16>>2]==1?+J[a+24>>2]:O[a+24>>3];c=a+16|0;yc(c); +O[d+8>>3]=i!=0?i:1;J[a+16>>2]=13;b=J[b+8>>2];h:{if(J[b+12>>2]<4)break h;if(J[Sc(b,3,c,0)>>2]!=6)break h;b=J[a+24>>2];if(J[b+12>>2]<2)break h;H[d|0]=1;while(1){J[a>>2]=13;i:{if(J[Sc(b,j,a,0)>>2]-3>>>0<4294967294)break i;i=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];b=J[d+20>>2];c=J[d+24>>2];if(b>>>0>>0){O[b>>3]=i;J[d+20>>2]=b+8;break i}g=J[k>>2];h=b-g>>3;f=h+1|0;if(f>>>0>=536870912)break b;e=c-g|0;c=e>>2;f=e>>>0>=2147483640?536870911:c>>>0>f>>>0?c:f;if(f){if(f>>>0>=536870912)break a;e=vc(f<<3)}else e=0;c=e+ +(h<<3)|0;O[c>>3]=i;h=c+8|0;if((b|0)!=(g|0))while(1){c=c-8|0;b=b-8|0;O[c>>3]=O[b>>3];if((b|0)!=(g|0))continue;break}J[d+24>>2]=e+(f<<3);J[d+20>>2]=h;J[d+16>>2]=c;if(!g)break i;uc(g)}yc(a);j=j+1|0;b=J[a+24>>2];if((j|0)>2])continue;break}}yc(a+16|0)}fc=a+32|0;return d|0}Fg(k);B()}Pd();B()}function Tma(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;h=fc-32|0;fc=h;J[699344]=0;k=b+240|0;f=k;o=J[f+8>>2]-J[f+4>>2]>>2;f=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((f| +0)!=1){if(o-1>>>0<=c>>>0){J[a>>2]=0;J[a+4>>2]=0;break a}ZT(h+20|0,b);J[699344]=0;e=_(4,288)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[e>>2]=2441916;J[e+4>>2]=0;J[e+8>>2]=0;J[699344]=0;f=aa(6651,e+16|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){d=Z()|0;uc(e);break b}J[a+4>>2]=e;J[a>>2]=f;J[699344]=0;g=h+4|0;f=c+1|0;ia(6652,g|0,k|0,f|0,o-f|0);d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;aa(6653,e+256|0,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;qi(g);m=O[J[h+20>>2]+(f<<3)>> +3];O[e+48>>3]=m;q=e+272|0;J[e+276>>2]=J[q>>2];O[e- -64>>3]=O[e+56>>3]-m;h:{i:{if(f>>>0>>0){g=f;while(1){p=J[b+256>>2]+(g<<3)|0;d=J[e+276>>2];j:{if((d|0)!=J[e+280>>2]){O[d>>3]=O[p>>3];J[e+276>>2]=d+8;break j}k:{l:{n=J[q>>2];i=d-n|0;r=i>>3;j=r+1|0;m:{if(j>>>0>=536870912){J[699344]=0;$(2494,q|0);b=J[699344];J[699344]=0;if((b|0)==1)break m;break g}l=i>>2;j=i>>>0>=2147483640?536870911:j>>>0>>0?l:j;if(!j){l=0;break k}if(j>>>0<536870912)break l;J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!= +1)break g}d=Z()|0;break d}J[699344]=0;l=_(4,j<<3)|0;i=J[699344];J[699344]=0;if((i|0)==1)break i}i=(r<<3)+l|0;O[i>>3]=O[p>>3];p=i+8|0;if((d|0)!=(n|0))while(1){i=i-8|0;d=d-8|0;O[i>>3]=O[d>>3];if((d|0)!=(n|0))continue;break}J[e+280>>2]=(j<<3)+l;J[e+276>>2]=p;J[e+272>>2]=i;if(!n)break j;uc(n)}g=g+1|0;if((o|0)!=(g|0))continue;break}}J[699344]=0;ia(6652,h+4|0,k|0,0,f|0);g=J[699344];J[699344]=0;if((g|0)!=1)break h;d=Z()|0;break d}d=Z()|0;break d}J[699344]=0;g=h+4|0;aa(6653,k|0,g|0)|0;d=J[699344];J[699344]= +0;if((d|0)!=1){qi(g);m=O[e+48>>3];O[b+40>>3]=m;O[b+48>>3]=m-O[b+32>>3];k=c;g=J[b+256>>2];c=J[b+260>>2]-g>>3;n:{if(k>>>0>=c>>>0){J[699344]=0;da(6654,b+256|0,f-c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break n;d=Z()|0;break d}if(c>>>0<=f>>>0)break n;J[b+260>>2]=g+(f<<3)}H[b+238|0]=0;a=J[h+20>>2];if(!a)break a;J[h+24>>2]=a;uc(a);break a}d=Z()|0;qi(h+4|0);break d}ea(0)|0;Bc();B()}B()}d=Z()|0;qi(h+4|0);break d}d=Z()|0}je(a);break b}d=Z()|0}a=J[h+20>>2];if(a){J[h+24>>2]=a;uc(a)}ba(d|0);B()}fc=h+32|0}function k1a(a, +b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;x=fc-512|0;fc=x;s=J[a+332>>2];b=J[b+84>>2];a=x;while(1){l=P(J[b+64>>2],I[c+32>>1]);n=P(J[b+192>>2],I[c+96>>1]);i=l-n|0;p=P(i,11363);k=P(J[b+96>>2],I[c+48>>1]);j=P(J[b+32>>2],I[c+16>>1]);g=P(k+j|0,11086);q=p+P(n,20995)|0;o=P(J[b+128>>2],I[c+64>>1]);t=P(o,10703);h=P(I[c>>1],J[b>>2])<<13|1024;u=t+h|0;r=q+u|0;f=P(J[b+224>>2],I[c+112>>1]);y=P(f+j|0,8956);m= +P(J[b+160>>2],I[c+80>>1]);z=m+j|0;v=P(z,10217);w=y+(v+(g+P(j,-18730)|0)|0)|0;J[a+480>>2]=r-w>>11;J[a>>2]=r+w>>11;i=P(i,2260);r=i+P(l,7373)|0;o=P(o,4433);w=o+h|0;A=r+w|0;B=f+k|0;C=P(B,-5461);D=P(k+m|0,1136);g=C+(D+(g+P(k,589)|0)|0)|0;J[a+448>>2]=A-g>>11;J[a+32>>2]=g+A>>11;l=p+P(l,-4926)|0;p=h-o|0;g=l+p|0;o=P(f+m|0,-11086);v=o+(v+(P(m,-9222)+D|0)|0)|0;J[a+416>>2]=g-v>>11;J[a+64>>2]=g+v>>11;n=i+P(n,-4176)|0;h=h-t|0;g=n+h|0;i=o+((P(f,8728)+C|0)+y|0)|0;J[a+384>>2]=g-i>>11;J[a+96>>2]=g+i>>11;h=h-n|0;g= +P(j-f|0,7350);n=P(B,-10217);i=g+(n+P(f,25733)|0)|0;f=P(f-m|0,3363);i=i+f|0;J[a+352>>2]=h-i>>11;J[a+128>>2]=h+i>>11;h=p-l|0;l=P(z,5461);i=P(m,-6278);m=P(m-k|0,11529);f=f+(l+(i+m|0)|0)|0;J[a+320>>2]=h-f>>11;J[a+160>>2]=f+h>>11;f=w-r|0;h=P(k,16154);k=P(j-k|0,3363);m=n+(m+(h+k|0)|0)|0;J[a+288>>2]=f-m>>11;J[a+192>>2]=f+m>>11;f=u-q|0;k=g+(l+(k+P(j,-15038)|0)|0)|0;J[a+256>>2]=f-k>>11;J[a+224>>2]=f+k>>11;a=a+4|0;b=b+4|0;c=c+2|0;E=E+1|0;if((E|0)!=8)continue;break}b=s+128|0;a=x;k=0;while(1){j=J[a+4>>2];f=J[a+ +28>>2];m=P(j+f|0,-7373);h=J[a+20>>2];g=h+j|0;l=J[a+12>>2];s=l+f|0;n=P(g+s|0,9633);i=J[a+24>>2];q=J[a+8>>2];p=P(i+q|0,4433);c=J[(k<<2)+d>>2]+e|0;o=m+P(j,12299)|0;j=n+P(g,-3196)|0;g=o+j|0;o=J[a>>2]+16|0;t=J[a+16>>2];u=o+t<<13;q=p+P(q,6270)|0;r=u+q|0;H[c|0]=K[b+(g+r>>>18&1023)|0];H[c+7|0]=K[b+(r-g>>>18&1023)|0];n=n+P(s,-16069)|0;g=P(l,25172);l=P(h+l|0,-20995);g=n+(g+l|0)|0;s=o-t<<13;p=p+P(i,-15137)|0;i=s+p|0;H[c+1|0]=K[b+(g+i>>>18&1023)|0];H[c+6|0]=K[b+(i-g>>>18&1023)|0];j=j+(l+P(h,16819)|0)|0;h=s-p| +0;H[c+2|0]=K[b+(j+h>>>18&1023)|0];H[c+5|0]=K[b+(h-j>>>18&1023)|0];j=n+(m+P(f,2446)|0)|0;f=u-q|0;H[c+3|0]=K[b+(j+f>>>18&1023)|0];H[c+4|0]=K[b+(f-j>>>18&1023)|0];a=a+32|0;k=k+1|0;if((k|0)!=16)continue;break}fc=x+512|0}function EN(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=fc-16|0;fc=f;J[f+12>>2]=b;J[f+8>>2]=a;a=0;b=f+8|0;a:{if(!b)break a;a=J[b>>2];b=J[b+4>>2];c=a;if(!a){a=b>>31;a=(a^b)-a|0;break a}a=c>>31;a=(a^c)-a|0;if(b){d=b>>31;i=a|(d^b)-d;g=S(i);j=g-2|0;b:{if(i>>>0<=1073741823){a=b<>b;b=c>>b}e=0-a|0;c=0-b|0;c:{if((a|0)>(b|0)){b=(a|0)>(c|0);d=b?c:e;a=b?a:c;break c}d=a;a=(a|0)<(c|0);d=a?b:d;a=a?e:b}b=d+1>>1;c=(d|0)>0;b=a+(c?b:0-b|0)|0;a=a+1>>1;a=(c?0-a|0:a)+d|0;c=a+2>>2;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+2>>2;a=a+(d?0-b|0:b)|0;b=a+4>>3;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+4>>3;a=a+(d?0-c|0:c)|0;c=a+8>>4;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+8>>4;a=a+(d?0-b|0:b)|0;b=a+16>>5;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+16>>5;a=a+(d?0-c|0:c)|0;c=a+32>>6;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+32>>6; +a=a+(d?0-b|0:b)|0;b=a- -64>>7;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c- -64>>7;a=a+(d?0-c|0:c)|0;c=a+128>>8;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+128>>8;a=a+(d?0-b|0:b)|0;b=a+256>>9;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+256>>9;a=a+(d?0-c|0:c)|0;c=a+512>>10;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+512>>10;a=a+(d?0-b|0:b)|0;b=a+1024>>11;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+1024>>11;a=a+(d?0-c|0:c)|0;c=a+2048>>12;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+2048>>12;a=a+(d?0-b|0:b)|0;b=a+4096>>13;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+4096>>13;a=a+(d?0- +c|0:c)|0;c=a- -8192>>14;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b- -8192>>14;a=a+(d?0-b|0:b)|0;b=a+16384>>15;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+16384>>15;a=a+(d?0-c|0:c)|0;c=a+32768>>16;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+32768>>16;a=a+(d?0-b|0:b)|0;b=a+65536>>17;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+65536>>17;a=a+(d?0-c|0:c)|0;c=a+131072>>18;d=(a|0)>0;c=b+(d?c:0-c|0)|0;b=b+131072>>18;a=a+(d?0-b|0:b)|0;b=a+262144>>19;d=(a|0)>0;b=c+(d?b:0-b|0)|0;c=c+262144>>19;a=a+(d?0-c|0:c)|0;c=a+524288>>20;d=(a|0)>0;c=b+(d?c:0-c|0)|0; +b=b+524288>>20;a=a+(d?0-b|0:b)|0;b=a- -1048576>>21;d=c- -1048576>>21;h=0-d|0;e=d;d=(a|0)>0;e=a+(d?h:e)|0;a=e+2097152>>22;a=(c+(d?b:0-b|0)|0)+((e|0)>0?a:0-a|0)|0;b=a>>31;c=(a^b)-b|0;d=c&65535;b=P(d,56281);e=c>>>16|0;c=b+P(e,23318)|0;h=c<<16;d=h+P(d,23318)|0;b=(((P(e,56281)+(c>>>16|0)|0)+((b>>>0>c>>>0)<<16)|0)+(d>>>0>>0)|0)+(d>>>0>3221225471)|0;b=(a|0)<0?0-b|0:b;a=b+(1<>j;if(i>>>0<=536870911)break a;a=b<<2-g}}fc=f+16|0;return a}function ujb(a){a=a|0;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;m=fc-16|0;fc=m;h=J[a+12>>2];j=J[a+200>>2];b=J[a+196>>2];l=I[a+32>>1];a:{if(l){if(M[h+8>>2]>1]+(I[h+20>>1]+l|0)>>>0){c=Hh(h,0,l);if(c)break a}c=20;if((l|0)>4094)break a}c=20;e=l<<1;if((e+b|0)+2>>>0>j>>>0)break a;d=J[h+68>>2];i=K[b|0]<<8;g=i|K[b+1|0];if((l|0)>0)I[d>>1]=g;if(i<<16>>16<0)break a;i=d+e|0;while(1){e=d+2|0;if(e>>>0>>0){d=K[b+2|0]|K[b+3|0]<<8;f=d<<8|d>>>8;I[e>>1]=f;k=g<<16>>16;d=e;e=f<<16>>16;g=e;b=b+2|0;if((e|0)>(k|0))continue;break a}break}f=J[h+4>>2]; +e=I[h+58>>1];if((l|0)<=0)d=0;else{d=I[d>>1];if((d|0)<-1)break a;d=d+1|0}i=d;d=i+4|0;if(f>>>0>1]|0)>>>0){c=Hh(h,d,0);if(c)break a}d=J[a+8>>2];J[d+136>>2]=0;J[d+140>>2]=0;e=b+4|0;if(e>>>0>j>>>0){c=20;break a}b=K[b+2|0]|K[b+3|0]<<8;b=b<<8|b>>>8;b:{c:{d:{e:{if(K[a+16|0]&2){d=b&65535;break e}b=b&65535;d=b;if((b|0)>(j-e|0))break d;c=J[a+156>>2];J[m+12>>2]=J[c+392>>2];c=g6(J[c+8>>2],m+12|0,c+396|0,b);g=J[a+156>>2];J[g+392>>2]=L[m+12>>1];if(c)break a;c=J[a+8>>2];J[c+140>>2]=b;f=c;c=J[g+396>> +2];J[f+136>>2]=c;if(!b)break e;xc(c,e,b)}b=d+e|0;e=J[h- -64>>2];if((i|0)>0){g=e+i|0;while(1){c=b+1|0;if(c>>>0>j>>>0){c=20;break a}f=K[b|0];H[e|0]=f;d=e+1|0;f:{if(!(f&8)){b=c;break f}b=b+2|0;if(j>>>0>>0){c=20;break a}c=K[c|0];if(g>>>0>>0){c=20;break a}if(!c)break f;Ac(d,f,c);d=((c-1&255)+e|0)+2|0}e=d;if(g>>>0>d>>>0)continue;break}e=J[h+64>>2]}if(!(!i|!(K[e|0]&64)))J[h+36>>2]=J[h+36>>2]|64;if(b>>>0>j>>>0){c=20;break a}if((i|0)<=0)break b;c=J[h+60>>2];o=c+(i<<3)|0;g=c;d=e;while(1){n=K[d|0];g:{if(n& +2){f=b+1|0;if(f>>>0>j>>>0){c=20;break a}b=K[b|0];k=n&16?b:0-b|0;b=f;break g}k=0;if(n&16)break g;f=b+2|0;if(f>>>0>j>>>0){c=20;break a}b=K[b|0]|K[b+1|0]<<8;k=(b<<8|b>>>8)<<16>>16;b=f}p=k+p|0;J[g>>2]=p;d=d+1|0;g=g+8|0;if(o>>>0>g>>>0)continue;break}break c}c=22;break a}k=0;if((i|0)<=0)break b;while(1){f=K[e|0];h:{if(f&4){d=b+1|0;if(d>>>0>j>>>0){c=20;break a}b=K[b|0];g=f&32?b:0-b|0;b=d;break h}g=0;if(f&32)break h;d=b+2|0;if(d>>>0>j>>>0){c=20;break a}b=K[b|0]|K[b+1|0]<<8;g=(b<<8|b>>>8)<<16>>16;b=d}k=g+ +k|0;J[c+4>>2]=k;H[e|0]=f&1;e=e+1|0;c=c+8|0;if(o>>>0>c>>>0)continue;break}}I[h+56>>1]=l;I[h+58>>1]=i;J[a+196>>2]=b;c=0}fc=m+16|0;return c|0}function Jca(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;d=fc-48|0;fc=d;a:{b:{c:{d:{i=J[a+584>>2];if(i){if(J[i+124>>2]!=1)break d;J[i+80>>2]=c;J[i+76>>2]=b;g=i- -64|0;e:{while(1){f:switch(Vk(g,1)+3|0){case 0:b=J[a+628>>2];c=J[a>>2];e=J[a+472>>2];J[d+40>>2]=J[i+88>>2];J[d+36>>2]=e;J[d+32>>2]=c;Uc(b,98045,74922,d+32|0);k=0;l=0;j= +fc-16|0;b=-2;g:{if(!J[g+36>>2]|(!g|!J[g+32>>2]))break g;e=J[g+28>>2];if(!e|(g|0)!=J[e>>2])break g;f=J[e+4>>2];if(f-16180>>>0>31)break g;c=J[g+4>>2];if(!c){b=-5;if(M[e+64>>2]<8)break g}h:{if((f|0)==16211){f=J[e+108>>2];break h}J[e+4>>2]=16211;b=J[e+64>>2];f=J[e+60>>2]<<(b&7);J[e+60>>2]=f;i:{j:{k:{if(b>>>0>=8){b=b-8|0;c=(b>>>3|0)+1|0;m=c&3;if(b>>>0>=24)break k;b=0;break j}f=0;J[e+64>>2]=0;break i}n=c&1073741820;b=0;while(1){h=j+12|0;H[h+b|0]=f;H[(b|1)+h|0]=f>>>8;H[(b|2)+h|0]=f>>>16;c=b|3;H[h+c|0]=f>>> +24;b=b+4|0;f=0;l=l+4|0;if((n|0)!=(l|0))continue;break}}l:{if(!m){f=0;break l}while(1){c=b;H[(j+12|0)+b|0]=f;f=f>>>8|0;b=b+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}}J[e+64>>2]=0;J[e+60>>2]=f;b=0;f=0;while(1){h=K[(j+12|0)+b|0];f=(h|0)==((f>>>0>=2?255:0)|0)?f+1|0:h?0:4-f|0;if(b>>>0>=c>>>0)break i;b=b+1|0;if(f>>>0<4)continue;break}}J[e+108>>2]=f;c=J[g+4>>2]}j=J[g>>2];b=0;m:{if(!c|f>>>0>3)break m;while(1){h=K[b+j|0];f=(h|0)==((f>>>0>=2?255:0)|0)?f+1|0:h?0:4-f|0;b=b+1|0;if(b>>>0>=c>>>0)break m;if(f>>> +0<4)continue;break}}J[e+108>>2]=f;J[g>>2]=b+j;J[g+4>>2]=J[g+4>>2]-b;j=J[g+8>>2]+b|0;J[g+8>>2]=j;b=-3;if((f|0)!=4)break g;f=J[g+20>>2];b=0;J[e+52>>2]=0;J[e+44>>2]=0;J[e+48>>2]=0;J[e+32>>2]=0;J[g+24>>2]=0;c=J[e+12>>2];if(c)J[g+48>>2]=c&1;J[e+60>>2]=0;J[e+64>>2]=0;J[e+36>>2]=0;J[e+24>>2]=32768;J[e+16>>2]=0;J[e+8>>2]=0;J[e+7108>>2]=1;J[e+7112>>2]=-1;c=e+1332|0;J[e+112>>2]=c;J[e+84>>2]=c;J[e+80>>2]=c;J[g+20>>2]=f;J[g+8>>2]=j;J[e+4>>2]=16191}if(b)break b;break;case 4:break e;case 3:break f;default:break c}if(J[i+ +80>>2])continue;break}b=1;break a}c=J[i+80>>2];b=1;if(!c)break a;b=J[a+628>>2];e=J[a>>2];a=J[a+472>>2];J[d+24>>2]=c;J[d+20>>2]=a;J[d+16>>2]=e;Uc(b,98045,75680,d+16|0);break b}fa(73294,70440,136,98045);B()}fa(74813,70440,137,98045);B()}b=J[a+628>>2];a=J[a>>2];J[d+4>>2]=J[i+88>>2];J[d>>2]=a;Uc(b,98045,72488,d)}b=0}fc=d+48|0;return b|0}function J5(a,b,c,d,e,f,g,h,i,j,k,l){var m=0,n=0,o=0;a:{if(K[a+1668|0])break a;m=J[a+1608>>2];if(!m)break a;uc(m)}n=1;m=b;if(!m){n=0;e=c<<2;m=vc(P(e,d))}H[a+1668|0]=n; +J[a+1608>>2]=m;J[a+1620>>2]=m;J[a+1632>>2]=e;J[a+1628>>2]=d;J[a+1624>>2]=c;n=a+1616|0;J[n>>2]=m;if((e|0)<0)J[a+1620>>2]=P(1-d|0,e)+m;e=a+1640|0;m=a+1636|0;J[e>>2]=m;J[m>>2]=n;O[a+16>>3]=k;O[a+8>>3]=j;J[a+1660>>2]=e;J[a+1656>>2]=d-1;J[a+1652>>2]=c-1;e=a+1644|0;J[e>>2]=0;J[e+4>>2]=0;H[a+1612|0]=1;H[a+1800|0]=0;e=a+1776|0;J[e>>2]=0;J[e+4>>2]=0;e=a+1768|0;J[e>>2]=2147483647;J[e+4>>2]=2147483647;e=a+1760|0;J[e>>2]=0;J[e+4>>2]=0;e=a+1752|0;J[e>>2]=2147483647;J[e+4>>2]=2147483647;e=a+1712|0;J[e>>2]=0;J[e+ +4>>2]=0;e=a+1792|0;J[e>>2]=-2147483647;J[e+4>>2]=-2147483647;e=a+1784|0;J[e>>2]=2147483647;J[e+4>>2]=2147483647;J[a+2876>>2]=0;m=a+1808|0;k=+(g|0);j=k*256;j=j+(j<0?-.5:.5);b:{if(R(j)<2147483648){e=~~j;break b}e=-2147483648}J[m>>2]=e;n=a+1804|0;o=+(f|0);j=o*256;j=j+(j<0?-.5:.5);c:{if(R(j)<2147483648){m=~~j;break c}m=-2147483648}J[n>>2]=m;n=a+1816|0;j=+(g+i|0)*256;j=j+(j<0?-.5:.5);d:{if(R(j)<2147483648){g=~~j;break d}g=-2147483648}J[n>>2]=g;n=a+1812|0;j=+(f+h|0)*256;j=j+(j<0?-.5:.5);e:{if(R(j)<2147483648){f= +~~j;break e}f=-2147483648}J[n>>2]=f;if((f|0)<(m|0)){J[a+1812>>2]=m;J[a+1804>>2]=f}if((e|0)>(g|0)){J[a+1816>>2]=e;J[a+1808>>2]=g}H[a+1832|0]=1;e=0;f=a+1836|0;while(1){m=f+(e<<2)|0;j=+(e|0)/255*255+.5;f:{if(j<4294967296&j>=0){g=~~j>>>0;break f}g=0}J[m>>2]=g;g=e|1;m=f+(g<<2)|0;j=+(g|0)/255*255+.5;g:{if(j<4294967296&j>=0){g=~~j>>>0;break g}g=0}J[m>>2]=g;e=e+2|0;if((e|0)!=256)continue;break}O[a+72>>3]=k;O[a+64>>3]=o;O[a+88>>3]=i|0;O[a+80>>3]=h|0;e=a+96|0;J[e+1476>>2]=d;J[e+1472>>2]=c;H[a+192|0]=0;J[a+ +160>>2]=2147483647;J[a+164>>2]=2147483647;J[a+144>>2]=2147483647;J[a+148>>2]=2147483647;J[a+104>>2]=0;J[a+108>>2]=0;J[e+1208>>2]=0;J[a+184>>2]=-2147483647;J[a+188>>2]=-2147483647;J[a+176>>2]=2147483647;J[a+180>>2]=2147483647;J[a+200>>2]=0;J[a+204>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;j=+(d|0);O[a+224>>3]=j;k=+(c|0);O[a+216>>3]=k;if((c|0)<0){J[a+216>>2]=0;J[a+220>>2]=0;O[a+200>>3]=k}if((d|0)<0){J[a+224>>2]=0;J[a+228>>2]=0;O[a+208>>3]=j}I[e+1468>> +1]=0;H[a+252|0]=1;K5(a);J[a+2892>>2]=l;J[a>>2]=b}function $va(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;g=fc+-64|0;fc=g;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;FH(a,d,g+8|0,g+24|0);a:{b:{c:{f=J[b+8>>2];h=J[b>>2];if(L[c+10>>1]==(f-h|0)){l=J[b+12>>2];j=J[b+4>>2];if(L[c+8>>1]==(l-j|0))break c}a=Qc(g+40|0,2388455,2385707,416,2425460,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break b;break a}d:{if(!((h|0)>J[g+24>>2]|(j|0)>J[g+28>>2]|(f|0)>2]))if((l|0)>=J[g+36>>2])break d;a=Qc(g+40|0,2388979,2385707,421,2425460,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}h=J[d+8>>2]-J[d>>2]|0;f=J[d+12>>2]-J[d+4>>2]|0;if(!((h|0)==L[e+10>>1]&(f|0)==L[e+8>>1]))bw(e,f,h,0);RV(e,256);f=0;p=a+92|0;xe(p,0,1);q=a+104|0;xe(q,0,1);r=a+68|0;xe(r,0,1);DV();m=J[g+8>>2];l=J[g+16>>2]-m|0;xe(r,l+2|0,1);xe(p,l,1);xe(q,l,1);J[a+112>>2]=-1;J[a+116>> +2]=-1;s=a+80|0;xe(s,0,1);xe(s,256,1);j=L[c+16>>1];i=j-1|0;o=i>>1;while(1){h=255;n=J[a+76>>2]+f|0;if(f>>>0>>0)k=(o+P(f,255)|0)/(i|0)|0;else k=255;H[n|0]=k;k=f|1;if(k>>>0>>0)h=(o+P(k,255)|0)/(i|0)|0;H[k+J[a+76>>2]|0]=h;f=f+2|0;if((f|0)!=256)continue;break}j=J[d+4>>2];if((j|0)>2]){o=0-m|0;while(1){k=J[J[a+40>>2]+(j<<2)>>2];f=k>>4;i=g+8|0;h=EV(a,f,i,b,c);i=EV(a,f+1|0,i,b,c);f=J[a+64>>2];if((l|0)>0){k=((k&15)<<10)+2777936|0;m=f+l|0;while(1){n=K[h|0];H[f+1|0]=K[k+(K[i|0]-n<<1)|0]+n;h=h+1| +0;i=i+1|0;f=f+1|0;if(m>>>0>f>>>0)continue;break}f=J[a+64>>2]}H[f|0]=K[f+1|0];f=l+J[a+64>>2]|0;H[f+1|0]=K[f|0];f=j-J[d+4>>2]|0;i=J[a+64>>2];if(!J[e+20>>2])_i(e);h=L[e+14>>1];e:{if(!(f>>>0>1]&(f|0)>=0)){f=L[e+12>>1];if(J[685890]<(f+h|0)){a=Qc(g+40|0,2390258,2390866,577,2393703,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=f+J[685889]|0;break e}f=L[e+12>>1]+(J[e+20>>2]+P(f,h)|0)|0}h=J[d>>2];if((h|0)>2]){k=(i+o|0)+1|0;while(1){m=J[J[a+52>>2]+(h<<2)>>2]; +n=k+(m>>4)|0;i=K[n|0];H[f|0]=i+K[(((m&15)<<10)+(K[n+1|0]-i<<1)|0)+2777936|0];f=f+1|0;h=h+1|0;if((h|0)>2])continue;break}}j=j+1|0;if((j|0)>2])continue;break}}xe(p,0,1);xe(q,0,1);xe(r,0,1);xe(s,0,1);fc=g- -64|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Q_a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=fc-48|0;fc=f;a:{if(!a)break a;b:{if(J[a+32>>2]){c:{b=J[a+8>>2];if(!b){b=kc[J[663195]](96)|0;if(!b)break c;Ac(b+16|0,0,76);J[b>>2]=0;J[b+4>>2]=13;J[b+40>>2]=1;J[b+8>>2]=0;J[b+12>>2]=0;J[b+92>> +2]=160;J[b+76>>2]=1;J[b+32>>2]=b;J[a+8>>2]=b}J[b+92>>2]=128;J[b+88>>2]=J[a+360>>2];break b}J[f+32>>2]=35998;Hc(0,0,0,0,0,1,2,3,35998,0,0,0,32879,f+32|0);J[a+84>>2]=2;J[a+8>>2]=0;b=J[a>>2];if(!(!b|J[b+108>>2]!=-554844497))c=J[b+124>>2];b=J[a+112>>2];e=J[a+108>>2];J[f+20>>2]=0;J[f+16>>2]=30591;Hc(c,b,e,a,0,1,2,2,30591,0,0,0,2622,f+16|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}d=oq(J[a+20>>2]);J[a+8>>2]=d;if(d){J[d+92>>2]=J[a+360>>2]>>>15&4;J[d+88>>2]=J[a+360>>2];c=J[a+24>>2];d:{if(!c)break d; +b=c;while(1){e=b;b=b+1|0;if(K[e|0])continue;break}b=0;e=e-c|0;if((e|0)<0)break d;g=kc[J[663198]](e+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}b=xc(g,c,e);H[e+b|0]=0}J[d+60>>2]=b;J[d+40>>2]=J[a+28>>2];if(!J[a+364>>2])break b;b=J[a+296>>2];J[d+80>>2]=b;if(!K[2773432]){c=Dc(4);J[693359]=c;if(!c)break b;H[2773432]=1}if(!b)break b;J[b>>2]=J[b>>2]+1;break b}J[a+84>>2]=2;c=J[a>>2];b=0;e:{if(!c)break e;b=0;if(J[c+108>>2]!=-554844497)break e;b=J[c+124>>2]}c=J[a+112>>2];e=J[a+108>>2];J[f+4>> +2]=0;J[f>>2]=30591;Hc(b,c,e,a,0,1,2,2,30591,0,0,0,2622,f);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;break a}b=J[a+8>>2];if(!b|J[b+72>>2])break a;b=J[a+36>>2];if(!b)break a;c=J[b+4>>2];if(!c)break a;b=0;d=fc+-64|0;fc=d;f:{if(!c)break f;g:{b=kc[J[663195]](44)|0;if(!b){J[d>>2]=34150;Hc(0,0,0,0,0,30,2,3,34150,0,0,0,32879,d);break g}J[b>>2]=0;J[b+4>>2]=0;J[b+40>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;e=uu(b,c);uk(b);if(e)break g;b=c; +while(1){e=b;b=b+1|0;if(K[e|0])continue;break}b=0;e=e-c|0;if((e|0)<0)break f;g=kc[J[663198]](e+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break f}b=xc(g,c,e);H[e+b|0]=0;break f}c=ox(c);if(!c){b=0;break f}J[d+40>>2]=0;J[d+44>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+40>>2]=c;J[d+16>>2]=0;J[d+20>>2]=0;b=lq(d+16|0);kc[J[663199]](c)}fc=d- -64|0;J[J[a+8>>2]+72>>2]=b;if(b)break a;Tr(a,2622)}fc=f+48|0}function eta(a,b){a=a|0;b=b|0;var c=0, +d=0,e=0,f=0,g=0,h=0,i=0;d=fc-48|0;fc=d;c=J[b>>2];a:{b:{if(!c){b=Qc(d+24|0,2394816,2386144,1063,2434119,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break b}J[d+12>>2]=0;c:{d:{e:{while(1){J[699344]=0;ia(5682,a|0,d+20|0,b|0,d+8|0);f=J[699344];J[699344]=0;if((f|0)==1)break e;if(J[d+20>>2]!=11)continue;break}f:{if(!K[a+49|0]){J[699344]=0;b=ja(5178,d+24|0,2392458,2386144,1075,2434119,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;$(5179,b|0);a=J[699344]; +J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break c}b=J[c+40>>2];e=J[c+44>>2];f=J[c+16>>2];J[699344]=0;h=((f+e|0)-b|0)+1|0;ca(5298,c+48|0,0,h+(f^-1)|0);b=J[699344];J[699344]=0;g:{h:{if((b|0)==1)break h;if((f|0)<(h|0)){b=f;while(1){if(!(J[a+136>>2]<=(b|0)&J[a+140>>2]>=(b|0))){J[699344]=0;b=ja(5178,d+24|0,2393794,2394220,619,2434720,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break c}e=b-f|0;if(!((e|0)>=J[c+64>> +2]&(e|0)<=J[c+68>>2])){J[699344]=0;b=ja(5178,d+24|0,2393794,2394220,619,2434720,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break c}g=J[a+124>>2]+(b-J[a+128>>2]<<4)|0;i=J[g+4>>2];e=J[c+52>>2]+(e-J[c+56>>2]<<4)|0;J[e>>2]=J[g>>2];J[e+4>>2]=i;i=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=i;b=b+1|0;if((h|0)!=(b|0))continue;break}}i:{a=J[c+40>>2];if((a|0)<=J[c+44>>2])while(1){if(J[c+40>>2]>(a|0)){J[699344]=0;b=ja(5178, +d+24|0,2393794,2394220,619,2434564,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break c}b=J[(J[c+28>>2]+P(a-J[c+32>>2]|0,12)|0)+4>>2];J[699344]=0;$(5616,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;b=J[c+44>>2]>(a|0);a=a+1|0;if(b)continue;break}a=J[d+12>>2];J[d+12>>2]=0;if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;f=J[699344];J[699344]=0;if((f|0)!=1){if(b)break g;J[699344]=0;$(5147,a|0);a=J[699344]; +J[699344]=0;if((a|0)!=1)break g}ea(0)|0;Bc();B()}a=Z()|0;break c}a=Z()|0;break c}fc=d+48|0;return}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0}fw(d+8|0)}ba(a|0)}B()}function gd(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;a:{if(K[a+28|0]){l=J[a+24>>2];h=l&10;m=J[a+12>>2];i=J[a+8>>2];j=J[a>>2];e=((m|0)<(d|0))<<1|(i|0)<(c|0)|((j|0)>(c|0))<<2;n=J[a+4>>2];k=e|((n|0)>(d|0))<<3;b:{if((h|0)==(k&10)?h:0)break b;h=J[a+20>>2];g=J[a+16>>2];c:switch(l<<1&10|e&5){case 0:lj(a,b,g,h,c,d,l,k);J[a+ +24>>2]=k;break a;case 1:f=+(i-g|0)*+(d-h|0)/+(c-g|0);f=f+(f<0?-.5:.5);d:{if(R(f)<2147483648){e=~~f;break d}e=-2147483648}e=e+h|0;j=((e|0)<(n|0))<<3|((e|0)>(m|0))<<1;lj(a,b,g,h,i,e,l,j);g=b;b=J[a+8>>2];lj(a,g,b,e,b,d,j,k);J[a+24>>2]=k;break a;case 2:f=+(i-g|0)*+(d-h|0)/+(c-g|0);f=f+(f<0?-.5:.5);e:{if(R(f)<2147483648){e=~~f;break e}e=-2147483648}g=e+h|0;j=((g|0)<(n|0))<<3|((g|0)>(m|0))<<1;lj(a,b,i,h,i,g,l,j);lj(a,b,J[a+8>>2],g,c,d,j,k);J[a+24>>2]=k;break a;case 3:lj(a,b,i,h,i,d,l,k);J[a+24>>2]=k;break a; +case 4:f=+(j-g|0)*+(d-h|0)/+(c-g|0);f=f+(f<0?-.5:.5);f:{if(R(f)<2147483648){e=~~f;break f}e=-2147483648}e=e+h|0;i=((e|0)<(n|0))<<3|((e|0)>(m|0))<<1;lj(a,b,g,h,j,e,l,i);g=b;b=J[a>>2];lj(a,g,b,e,b,d,i,k);J[a+24>>2]=k;break a;case 6:o=+(d-h|0);p=+(c-g|0);f=+(i-g|0)*o/p;f=f+(f<0?-.5:.5);g:{if(R(f)<2147483648){e=~~f;break g}e=-2147483648}e=e+h|0;q=((e|0)<(n|0))<<3|((e|0)>(m|0))<<1;lj(a,b,i,h,i,e,l,q);l=J[a+8>>2];i=e;e=J[a>>2];f=+(j-g|0)*o/p;f=f+(f<0?-.5:.5);h:{if(R(f)<2147483648){g=~~f;break h}g=-2147483648}j= +g+h|0;h=((j|0)<(n|0))<<3|((j|0)>(m|0))<<1;lj(a,b,l,i,e,j,q,h);e=b;b=J[a>>2];lj(a,e,b,j,b,d,h,k);J[a+24>>2]=k;break a;case 8:f=+(j-g|0)*+(d-h|0)/+(c-g|0);f=f+(f<0?-.5:.5);i:{if(R(f)<2147483648){e=~~f;break i}e=-2147483648}g=e+h|0;i=((g|0)<(n|0))<<3|((g|0)>(m|0))<<1;lj(a,b,j,h,j,g,l,i);lj(a,b,J[a>>2],g,c,d,i,k);J[a+24>>2]=k;break a;case 9:o=+(d-h|0);p=+(c-g|0);f=+(j-g|0)*o/p;f=f+(f<0?-.5:.5);j:{if(R(f)<2147483648){e=~~f;break j}e=-2147483648}e=e+h|0;q=((e|0)<(n|0))<<3|((e|0)>(m|0))<<1;lj(a,b,j,h,j, +e,l,q);l=J[a>>2];j=e;e=J[a+8>>2];f=+(i-g|0)*o/p;f=f+(f<0?-.5:.5);k:{if(R(f)<2147483648){g=~~f;break k}g=-2147483648}i=g+h|0;h=((i|0)<(n|0))<<3|((i|0)>(m|0))<<1;lj(a,b,l,j,e,i,q,h);e=b;b=J[a+8>>2];lj(a,e,b,i,b,d,h,k);J[a+24>>2]=k;break a;case 12:break c;default:break b}lj(a,b,j,h,j,d,l,k)}J[a+24>>2]=k;break a}ep(b,J[a+16>>2],J[a+20>>2],c,d)}J[a+20>>2]=d;J[a+16>>2]=c}function f6(a,b){var c=0,d=0,e=0,f=0;f=J[J[a>>2]+96>>2];e=J[J[a+8>>2]+140>>2];if((e|0)>0)xc(J[a+132>>2],J[a+136>>2],L[a+128>>1]<<3);xc(J[a+ +156>>2]+288|0,J[a+4>>2]+180|0,68);a:{if(b){c=J[a+156>>2];J[c+224>>2]=65536;J[c+228>>2]=65536;xc(J[a+140>>2],J[a+136>>2],L[a+128>>1]<<3);break a}c=J[a+156>>2];d=J[J[a+4>>2]+44>>2];J[c+224>>2]=J[d+4>>2];J[c+228>>2]=J[d+8>>2]}c=J[a+136>>2]+(L[a+128>>1]<<3)|0;d=c-32|0;J[d>>2]=J[d>>2]+32&-64;d=c-24|0;J[d>>2]=J[d>>2]+32&-64;d=c-12|0;J[d>>2]=J[d>>2]+32&-64;c=c-4|0;J[c>>2]=J[c>>2]+32&-64;b:{if((e|0)>0){d=J[J[a+12>>2]- -64>>2];c=J[a+156>>2];H[c+564|0]=b;J[c+468>>2]=e;J[c+464>>2]=J[c+396>>2];b=J[a+124>>2]; +J[c+144>>2]=J[a+120>>2];J[c+148>>2]=b;b=J[a+132>>2];J[c+152>>2]=J[a+128>>2];J[c+156>>2]=b;b=J[a+140>>2];J[c+160>>2]=J[a+136>>2];J[c+164>>2]=b;b=J[a+148>>2];J[c+168>>2]=J[a+144>>2];J[c+172>>2]=b;J[c+176>>2]=J[a+152>>2];b=J[a+156>>2];J[b+356>>2]=3;J[b+364>>2]=0;c=J[b+148>>2];J[b+36>>2]=J[b+144>>2];J[b+40>>2]=c;J[b+68>>2]=J[b+176>>2];c=J[b+172>>2];J[b+60>>2]=J[b+168>>2];J[b+64>>2]=c;c=J[b+164>>2];J[b+52>>2]=J[b+160>>2];J[b+56>>2]=c;c=J[b+156>>2];J[b+44>>2]=J[b+152>>2];J[b+48>>2]=c;J[b+368>>2]=J[b+468>> +2];J[b+360>>2]=J[b+464>>2];c=J[b+148>>2];J[b+72>>2]=J[b+144>>2];J[b+76>>2]=c;c=J[b+156>>2];J[b+80>>2]=J[b+152>>2];J[b+84>>2]=c;c=J[b+164>>2];J[b+88>>2]=J[b+160>>2];J[b+92>>2]=c;c=J[b+172>>2];J[b+96>>2]=J[b+168>>2];J[b+100>>2]=c;J[b+104>>2]=J[b+176>>2];J[b+140>>2]=J[b+176>>2];c=J[b+172>>2];J[b+132>>2]=J[b+168>>2];J[b+136>>2]=c;c=J[b+164>>2];J[b+124>>2]=J[b+160>>2];J[b+128>>2]=c;c=J[b+156>>2];J[b+116>>2]=J[b+152>>2];J[b+120>>2]=c;c=J[b+148>>2];J[b+108>>2]=J[b+144>>2];J[b+112>>2]=c;I[b+352>>1]=1;J[b+ +348>>2]=65537;I[b+298>>1]=16384;I[b+300>>1]=0;I[b+302>>1]=16384;I[b+304>>1]=0;J[b+316>>2]=1;I[b+294>>1]=16384;I[b+296>>1]=0;J[b+308>>2]=1;J[b+432>>2]=0;J[b+16>>2]=0;b=kc[J[J[b>>2]+708>>2]](b)|0;c=J[a+156>>2];if(K[c+565|0]?b:0)break b;H[d|0]=K[d|0]|K[c+344|0]<<5|4}if(J[f+64>>2]==40){b=0;if(K[J[a+156>>2]+615|0])break b}b=J[a+136>>2]+(L[a+128>>1]<<3)|0;c=b-32|0;e=J[c+4>>2];J[a+68>>2]=J[c>>2];J[a+72>>2]=e;c=b-24|0;e=J[c+4>>2];J[a+76>>2]=J[c>>2];J[a+80>>2]=e;c=b-16|0;e=J[c+4>>2];J[a+180>>2]=J[c>>2];J[a+ +184>>2]=e;b=b-8|0;c=J[b+4>>2];J[a+188>>2]=J[b>>2];J[a+192>>2]=c;b=0}return b}function Pva(a,b,c,d,e,f,g,h,i){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;var j=0,k=Q(0),l=Q(0),m=0,n=Q(0),o=0,p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=Q(0),u=Q(0),v=Q(0),w=0,x=Q(0),y=Q(0),z=Q(0),A=Q(0),B=Q(0),C=Q(0);c=fc-32|0;fc=c;if(!(!f|!e)){d=P(g,3);w=h<<2;while(1){f=f-1|0;g=e;while(1){h=J[a+72>>2];j=H[i+1|0];m=H[i+2|0];k=Q(Q(Q(K[i|0])*Q(100))/Q(255));a:{if(k>2])/Q(903.2919921875)); +N[c+24>>2]=k;k=Q(Q(Q(k/N[h+20>>2])*Q(7.7870001792907715))+Q(.13793103396892548));break a}k=Q(Q(k+Q(16))/Q(116));N[c+24>>2]=k*Q(k*Q(k*N[h+20>>2]))}p=N[h+16>>2];l=Q(Q(Q(j|0)/Q(500))+k);b:{if(l>2]=l;l=N[h+24>>2];k=Q(k+Q(Q(m|0)/Q(-200)));c:{if(k>2]=Q(Q(k+Q(-.1379300057888031))*l)/Q(7.7870001792907715);break c}N[c+20>>2]=k*Q(k*Q(k*l))}h=J[a+72>>2];p=N[h+72>> +2];k=N[h+96>>2];x=N[h+60>>2];y=N[h+52>>2];z=N[h+56>>2];u=N[h+68>>2];l=N[h+92>>2];A=N[h+48>>2];B=N[h+40>>2];C=N[h+44>>2];m=J[h>>2];r=N[c+20>>2];s=N[c+28>>2];t=N[c+24>>2];q=Q(Q(N[h+36>>2]*r)+Q(Q(N[h+28>>2]*s)+Q(N[h+32>>2]*t)));n=N[h+88>>2];q=n>2];n=Q(Q((q>2]);d:{if(Q(R(n))(m|0)?m:j)<<2)+h|0)+112>>2];o=(n>Q(0)?.5:-.5)+ +n;e:{if(o<4294967296&o>=0){j=~~o>>>0;break e}j=0}J[c+16>>2]=j;m=J[h>>2];n=Q(Q(A*r)+Q(Q(B*s)+ +Q(C*t)));n=l>2]);f:{if(Q(R(l))(m|0)?m:j)<<2)+h|0)+6116>>2];o=(l>Q(0)?.5:-.5)+ +l;g:{if(o<4294967296&o>=0){j=~~o>>>0;break g}j=0}J[c+12>>2]=j;m=J[h>>2];l=Q(Q(x*r)+Q(Q(y*s)+Q(z*t)));l=k>2]);h:{if(Q(R(k))(m|0)?m:j)<<2)+h|0)+12120>>2];o=(k>Q(0)?.5:-.5)+ +k;i:{if(o<4294967296&o>=0){j=~~o>>>0;break i}j=0}J[c+8>>2]=j;j=J[c+16>> +2];m=J[h+76>>2];J[c+16>>2]=j>>>0>>0?j:m;j=J[c+12>>2];m=J[h+80>>2];J[c+12>>2]=j>>>0>>0?j:m;j=J[c+8>>2];h=J[h+84>>2];J[c+8>>2]=h>>>0>j>>>0?j:h;J[b>>2]=J[c+16>>2]|J[c+12>>2]<<8|J[c+8>>2]<<16|-16777216;i=i+3|0;b=b+4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+w|0;if(f)continue;break}}fc=c+32|0}function NT(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;d=fc-32|0;fc=d;Tc(b,2450328,-1);Tc(b,2450352,-1);a:{b:{c=K[a+143|0];g=c<<24>>24;c:{d:{e:{f:{g:{i=(g|0)<0?J[a+136>>2]:c;h:{if(!i)break h;h= +i+17|0;if(h>>>0>=1073741808)break b;i:{if(h>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=h;c=d;break i}c=h|3;if(c>>>0>=1073741823)break a;f=c+1|0;c=vc(f<<2);J[d+4>>2]=h;J[d>>2]=c;J[d+8>>2]=f|-2147483648}h=xc(c,2450384,68)+68|0;c=a+132|0;g=(g|0)<0?J[c>>2]:c;c=i<<2;j=cd(h,g,c)+c|0,k=0,J[j>>2]=k;J[699344]=0;f=aa(3026,d|0,2450456)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[d+24>>2]=J[f+8>>2];c=J[f+4>>2];J[d+16>>2]=J[f>>2];J[d+20>>2]=c;J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[699344]=0;da(6657, +b|0,d+16|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+11|0]>=0)break h;uc(J[d>>2])}Tc(b,2450472,-1);Tc(b,2450516,-1);e=O[a+96>>3];c=e>0;e=e*56.69291338582678;if(!(R(e)<2147483648))break d;g=~~e;break c}f=Z()|0;break e}f=Z()|0;if(H[d+27|0]>=0)break e;uc(J[d+16>>2])}if(H[d+11|0]<0)uc(J[d>>2]);ba(f|0);B()}g=-2147483648}jh(b,c?g:0);Tc(b,2450564,-1);if(O[a+104>>3]>0){Tc(b,2450572,-1);e=O[a+104>>3]*56.69291338582678;j:{if(R(e)<2147483648){c=~~e;break j}c=-2147483648}jh(b, +c);Tc(b,2450564,-1)}if(O[a+112>>3]>0){Tc(b,2450616,-1);e=O[a+112>>3]*56.69291338582678;k:{if(R(e)<2147483648){c=~~e;break k}c=-2147483648}jh(b,c);Tc(b,2450656,-1)}Tc(b,2450740,-1);Tc(b,2450752,-1);if(O[a+72>>3]>0){Tc(b,2450780,-1);e=O[a+72>>3]*56.69291338582678;l:{if(R(e)<2147483648){c=~~e;break l}c=-2147483648}jh(b,c);Tc(b,2450564,-1)}if(O[a+80>>3]>0){Tc(b,2450820,-1);e=O[a+80>>3]*56.69291338582678;m:{if(R(e)<2147483648){c=~~e;break m}c=-2147483648}jh(b,c);Tc(b,2450564,-1)}if(K[a+56|0]){Tc(b,2450864, +-1);e=O[a+88>>3]*56.69291338582678;n:{if(R(e)<2147483648){c=~~e;break n}c=-2147483648}jh(b,c);Tc(b,2450564,-1)}Tc(b,2450740,-1);c=J[a+64>>2]-1|0;if(c>>>0<=3)Tc(b,J[(c<<2)+2452132>>2],-1);if(K[a+57|0]){Tc(b,2451268,-1);c=J[a+60>>2];J[d+16>>2]=c<<16&16711680|c&65280|c>>>16&255;Op(b,d+16|0);Tc(b,2450456,-1)}Tc(b,2451448,-1);f=J[a+120>>2];c=J[a+124>>2];if((f|0)!=(c|0))while(1){a=J[f>>2];if(a)CT(a,b);f=f+8|0;if((c|0)!=(f|0))continue;break}Tc(b,2451484,-1);fc=d+32|0;return}_d(d);B()}Pd();B()}function zta(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;j=fc-32|0;fc=j;a:{c=J[b+12>>2];if(!c){J[a>>2]=0;vd(a,0);break a}i=J[c+8>>2];c=J[c+4>>2];d=vc(72);J[699344]=0;f=ha(5551,d|0,i|0,c|0,0)|0;g=J[699344];J[699344]=0;b:{c:{if((g|0)!=1){J[a>>2]=0;vd(a,f);d=J[b+12>>2];d:{e:{f:{g:{b=J[a>>2];h:{if(!J[b+20>>2]){J[699344]=0;$(5177,b|0);f=J[699344];J[699344]=0;if((f|0)==1)break h}i:{if(!L[b+8>>1]){e=L[b+14>>1];b=L[b+12>>1];if(J[685890]<(e+b|0)){J[699344]=0;c=ja(5178,j+8|0,2402105,2402285,577,2393703,0)| +0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(c);break d}b=b+J[685889]|0;break i}b=J[b+20>>2]+L[b+12>>1]|0}f=L[J[a>>2]+14>>1];J[699344]=0;ma(5678,d|0,b|0,f|0,1,0);b=J[699344];J[699344]=0;if((b|0)==1)break h;j:{if((i|0)<=0)break j;if((c|0)>0){k=c&-4;f=c&3;l=c>>>0<4;d=0;while(1){k:{b=J[a>>2];if(!J[b+20>>2]){J[699344]=0;$(5177,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break k}c=L[b+14>>1];l:{if(L[b+8>>1]<=d>>>0){b=L[b+12>> +1];if(J[685890]<(b+c|0))break g;c=b+J[685889]|0;break l}c=L[b+12>>1]+(J[b+20>>2]+P(c,d)|0)|0}g=0;b=0;h=0;if(!l)while(1){e=b+c|0;H[e|0]=K[e|0]^128;e=c+(b|1)|0;H[e|0]=K[e|0]^128;e=c+(b|2)|0;H[e|0]=K[e|0]^128;e=c+(b|3)|0;H[e|0]=K[e|0]^128;b=b+4|0;h=h+4|0;if((k|0)!=(h|0))continue;break}if(f)while(1){h=b+c|0;H[h|0]=K[h|0]^128;b=b+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break j}break}b=Z()|0;break d}c=J[a>>2];if(!J[c+20>>2]){c=0;while(1){b=J[a>>2];if(!J[b+20>>2]){J[699344]= +0;$(5177,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break f}if(J[685890]<(L[b+12>>1]+L[b+14>>1]|0)&L[b+8>>1]<=c>>>0)break g;c=c+1|0;if((i|0)!=(c|0))continue;break}break j}b=0;d=J[685890];f=L[c+14>>1];g=L[c+8>>1];while(1){if((d|0)<(f+L[c+12>>1]|0)&b>>>0>=g>>>0)break g;b=b+1|0;if((i|0)!=(b|0))continue;break}}b=J[a>>2];J[699344]=0;da(5542,b|0,256);b=J[699344];J[699344]=0;if((b|0)!=1)break a}b=Z()|0;break d}J[699344]=0;c=ja(5178,j+8|0,2402105,2402285,577,2393703,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e; +J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(c);break d}b=Z()|0;break d}b=Z()|0}zc(a);break c}b=Z()|0;uc(d)}ba(b|0)}B()}fc=j+32|0}function XV(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;k=fc-32|0;fc=k;i=J[b>>2];f=Ct(i);J[a>>2]=f;a:{b:{if(f-8>>>0<=4294967288){a=Qc(k+8|0,2394534,2385316,254,2418754,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}j=Kk(i);h=Kk(i);m=Kk(i);l=Kk(i);o=a,p=Kk(i)-32768|0,J[o+20>>2]=p;o=a,p=Bt(i), +J[o+24>>2]=p;f=a+20|0;j=j-32768|0;n=32768-h|0;g=h-32768|0;m=m-32768|0;h=32768-l|0;l=l-32768|0;c:{d:{if(e){d=J[a>>2];e:{if(!(d>>>0>5|!(1<>2]+(h+n|0)|0;d=e+4|0;break e}g=J[e+8>>2]+g|0;d=e+12|0}h=f;e=J[e+24>>2]+J[e+20>>2]|0;break d}if(!d)break c;g=J[d+16>>2]+(h+n|0)|0;h=d+20|0;d=d+4|0;e=J[f>>2]}d=J[d>>2];J[f>>2]=e+J[h>>2];j=d+j|0}J[a+4>>2]=j;J[a+16>>2]=g+l;J[a+12>>2]=j+m;J[a+8>>2]=g;j=Bt(i);d=J[a+20>>2];if(!((d|0)>=0&(d+J[a+24>>2]|0)<=(c|0))){a=Qc(k+8|0,2394534,2385316,293,2418754,0); +J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}i=a+28|0;tt(i);if((j|0)>0){e=0;while(1){f=fc+-64|0;fc=f;J[f+28>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;J[f+40>>2]=0;h=f+44|0;d=h;J[d>>2]=0;J[d+4>>2]=0;J[f+52>>2]=0;J[f+56>>2]=0;J[f+20>>2]=0;J[f+24>>2]=0;J[f+16>>2]=1;J[d>>2]=2419016;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;d=J[a>>2];J[f+36>>2]=0;J[f+40>>2]=0;J[f+60>>2]=a;J[f+16>>2]=d;J[699344]=0;d=_(4,56)|0;g=J[699344];J[699344]=0;f:{g:{if((g|0)==1)break g;J[d>>2]=0;J[d+4>>2]=0;J[d+48>> +2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;g=J[f+20>>2];J[d+8>>2]=J[f+16>>2];J[d+12>>2]=g;g=J[f+28>>2];J[d+16>>2]=J[f+24>>2];J[d+20>>2]=g;g=J[f+36>>2];J[d+24>>2]=J[f+32>>2];J[d+28>>2]=g;J[d+32>>2]=J[f+40>>2];J[699344]=0;aa(5201,d+36|0,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break g;J[d+52>>2]=J[f+60>>2];J[699344]=0;g=a+28|0;vf(g,d);d=J[699344];J[699344]=0;if((d|0)==1)break g;d=J[a+40>>2];J[f+ +12>>2]=g;J[f+8>>2]=d;if(!d){J[699344]=0;da(5243,f+8|0,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;B()}id(h);fc=f- -64|0;d=d+8|0;break f}a=Z()|0;id(h);ba(a|0);B()}XV(d,b,c,a,e);f=j>>>0>1;j=j-1|0;if(J[d+4>>2]>2]&J[d+8>>2]>2])e=d;else{d=J[a+40>>2];J[k+12>>2]=i;J[k+8>>2]=d;Do(i,k+8|0)}if(f)continue;break}}fc=k+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function dqa(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;f=fc-48|0;fc=f;$G(J[b+12>>2]);e=J[b+12>>2];H[f+8|0]=0;g= +e;e=f+8|0;sU(g,e);g=J[b+12>>2];H[g+2812|0]=1;I[g+2008>>1]=257;kc[J[J[b>>2]+20>>2]](b)|0;J[f+8>>2]=1;kc[J[J[b>>2]+308>>2]](b,e)|0;g=J[b+12>>2];J[g+2760>>2]=d;H[g+2768|0]=1;g=f+32|0;h=f+24|0;kc[J[J[c>>2]+40>>2]](c,d,g,h,e,f+40|0);O[f+32>>3]=O[f+32>>3]*(25.4/O[f+8>>3]);O[f+24>>3]=O[f+24>>3]*(25.4/O[f+40>>3]);kc[J[J[b>>2]+36>>2]](b,g)|0;kc[J[J[b>>2]+28>>2]](b,h)|0;kc[J[J[c>>2]+44>>2]](c,b,d,0);H[J[b+12>>2]+2768|0]=0;J[f+20>>2]=1;kc[J[J[b>>2]+312>>2]](b,f+20|0)|0;g=J[b+12>>2]+1976|0;e=J[g+220>>2];c=J[g+ +224>>2];if(e>>>0>>0){c=c-8|0;while(1){d=c;h=J[d>>2];if(d>>>0>e>>>0){c=d-8|0;if(!h)continue}c=e;while(1){a:{e=c;i=J[e>>2];j=d>>>0<=e>>>0;if(j)break a;c=e+8|0;if(i)continue}break}if(!j){J[e>>2]=h;J[d>>2]=i;c=J[e+4>>2];J[e+4>>2]=J[d+4>>2];J[d+4>>2]=c;c=d;continue}break}e=d+(((h|0)!=0)<<3)|0;c=J[g+224>>2]}bA(g+220|0,e,c);c=J[g+220>>2];d=J[g+224>>2];gH(c,d,(c|0)!=(d|0)?62-(S(d-c>>3)<<1)|0:0);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;b:{c:{d=J[b+12>>2];c=J[d+2196>>2];g=J[d+2200>>2];if((c|0)!=(g|0)){d:{e:{f:{while(1){g:{if(J[c>> +2]){J[699344]=0;d=_(4,20)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[699344]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2463920;J[d+12>>2]=0;J[d+16>>2]=0;e=J[699344];J[699344]=0;if((e|0)==1)break e;e=J[c>>2];J[699344]=0;da(6381,e|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;J[699344]=0;da(3513,f+8|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break g;e=J[a+4>>2];h:{if(e>>>0>2]){h=J[f+12>>2];J[e>>2]=J[f+8>>2];J[e+4>>2]=h;J[e+8>>2]=J[f+16>>2];J[a+4>>2]=e+12;break h}J[699344]=0;da(2957,a|0,f+8| +0);e=J[699344];J[699344]=0;if((e|0)==1)break f;if(H[f+19|0]>=0)break h;uc(J[f+8>>2])}kc[J[J[d>>2]+4>>2]](d)}c=c+8|0;if((g|0)!=(c|0))continue;break d}break}c=Z()|0;break b}c=Z()|0;if(H[f+19|0]>=0)break b;uc(J[f+8>>2]);break b}c=Z()|0;uc(d);break b}d=J[b+12>>2]}i:{c=J[d+2208>>2];e=J[d+2212>>2];if((c|0)!=(e|0)){d=J[a+4>>2];J[699344]=0;ha(6379,a|0,d|0,c|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;d=J[b+12>>2]}J[699344]=0;$(6380,d|0);b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;break b}fc=f+48| +0;return}c=Z()|0;break b}c=Z()|0}Ag(a);ba(c|0);B()}function SSa(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,u=0,v=0,w=0,x=0,y=0,z=0;H[a+192|0]=0;H[a+193|0]=0;H[a+194|0]=0;H[a+195|0]=0;H[a+196|0]=0;H[a+197|0]=0;H[a+198|0]=0;H[a+199|0]=0;H[a+248|0]=0;H[a+249|0]=0;H[a+250|0]=0;H[a+251|0]=0;H[a+252|0]=0;H[a+253|0]=0;H[a+254|0]=0;H[a+255|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+242|0]=0;H[a+243|0]=0;H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+ +232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;H[a+239|0]=0;H[a+224|0]=0;H[a+225|0]=0;H[a+226|0]=0;H[a+227|0]=0;H[a+228|0]=0;H[a+229|0]=0;H[a+230|0]=0;H[a+231|0]=0;H[a+216|0]=0;H[a+217|0]=0;H[a+218|0]=0;H[a+219|0]=0;H[a+220|0]=0;H[a+221|0]=0;H[a+222|0]=0;H[a+223|0]=0;H[a+208|0]=0;H[a+209|0]=0;H[a+210|0]=0;H[a+211|0]=0;H[a+212|0]=0;H[a+213|0]=0;H[a+214|0]=0;H[a+215|0]=0;H[a+200|0]=0;H[a+201|0]=0;H[a+202|0]=0;H[a+203|0]=0;H[a+204|0]=0;H[a+205|0]=0;H[a+206|0]= +0;H[a+207|0]=0;g=a;while(1){d=J[(k<<2)+b>>2]+c|0;e=K[d+11|0];i=K[d|0];f=e+i|0;l=K[d+6|0];n=K[d+5|0];h=l+n|0;j=f-h|0;m=K[d+1|0];o=K[d+10|0];p=m+o|0;q=K[d+7|0];r=K[d+4|0];s=q+r|0;t=p-s|0;u=K[d+9|0];v=K[d+2|0];w=u+v|0;x=K[d+8|0];y=K[d+3|0];z=x+y|0;d=w-z|0;J[g+24>>2]=j-(t+d|0)<<2;f=f+h|0;h=w+z|0;J[g+16>>2]=P(f-h|0,10033)+1024>>11;J[g>>2]=(f+((h+p|0)+s|0)<<2)-6144;J[g+8>>2]=((t-d|0)+P(d+j|0,11190)|0)+1024>>11;f=r-q|0;j=m-o|0;h=P(f+j|0,4433);m=h+P(f,-15137)|0;d=i-e|0;e=y-x|0;i=n-l|0;f=v-u|0;J[g+12>>2]= +((m+P(d-e|0,10703)|0)+P(i+f|0,-4433)|0)+1024>>11;l=P(d+e|0,7053);n=l+P(e,5946)|0;e=P(e+f|0,-1512);h=h+P(j,6270)|0;J[g+28>>2]=(((n+e|0)-h|0)+P(i,-9191)|0)+1024>>11;j=e;e=P(d+f|0,9191)+1024|0;J[g+20>>2]=((j+(e+P(f,-19165)|0)|0)-m|0)+P(i,7053)>>11;J[g+4>>2]=(h+(l+(e+P(d,-4758)|0)|0)|0)+P(i,1512)>>11;g=g+32|0;k=k+1|0;if((k|0)!=6)continue;break}b=7;while(1){g=J[a+160>>2];d=J[a>>2];c=g+d|0;e=J[a+96>>2];i=J[a+64>>2];f=e+i|0;J[a+64>>2]=P(c-f|0,17837)+32768>>16;c=c+f|0;f=J[a+128>>2];k=J[a+32>>2];h=f+k|0;J[a+ +128>>2]=P(c-(h<<1)|0,10298)+32768>>16;J[a>>2]=P(c+h|0,14564)+32768>>16;c=i-e|0;g=d-g|0;d=P(c+g|0,5331)+32768|0;e=k-f|0;J[a+160>>2]=d+P(c-e|0,14564)>>16;J[a+96>>2]=P(g-(c+e|0)|0,14564)+32768>>16;J[a+32>>2]=d+P(g+e|0,14564)>>16;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function XDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[b+8>>2];a:{if(c&7)break a;b:{d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;c:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+ +12|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break c}if((bd(b,K[a+12|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=K[a+13|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break d}if((bd(b,K[a+13|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c|0)>0){J[b+60>>2]= +J[b+60>>2]+1;c=K[a+52|0];d=J[b+24>>2];J[b+24>>2]=d+1;H[d|0]=c;break e}if((bd(b,K[a+52|0])|0)==-1)break a}c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;f:{if((c|0)<=0){if((bd(b,0)|0)!=-1)break f;break a}J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=0}c=J[a+16>>2];if(Ui(b,c,c>>31))break a;c=J[a+20>>2];if(Ui(b,c,c>>31))break a;c=J[a+24>>2];if(Ui(b,c,c>>31))break a;c=J[a+28>>2];if(Ui(b,c,c>>31))break a;c=J[a+ +32>>2];if(Ui(b,c,c>>31))break a;c=J[a+36>>2];if(Ui(b,c,c>>31))break a;c=J[a+40>>2];if(Ui(b,c,c>>31))break a;c=J[a+44>>2];if(Ui(b,c,c>>31))break a;c=J[a+48>>2];if(Ui(b,c,c>>31))break a;if(Lh(b,2,J[a+60>>2],0))break a;if(Lh(b,2,J[a+72>>2],0))break a;d=P(J[a+60>>2],K[a+12|0]);if((d|0)>0){c=0;while(1){if(Lh(b,2,J[J[a+68>>2]+(c<<2)>>2],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}}d=P(J[a+72>>2],K[a+13|0]);if((d|0)>0){c=0;while(1){if(Lh(b,2,J[J[a+80>>2]+(c<<2)>>2],0))break a;c=c+1|0;if((d|0)!=(c| +0))continue;break}}d=K[a+12|0];g:{if(!d){d=1;break g}c=K[a+52|0];f=d&7;h:{if(d>>>0<8){d=1;break h}g=d&248;d=1;while(1){d=P(c,P(c,P(c,P(c,P(c,P(c,P(c,P(c,d))))))));e=e+8|0;if((g|0)!=(e|0))continue;break}}if(!f)break g;e=0;while(1){d=P(c,d);e=e+1|0;if((f|0)!=(e|0))continue;break}}d=P(K[a+13|0],d);if((d|0)<=0)return 0;c=0;while(1){if(Lh(b,2,J[J[a+56>>2]+(c<<2)>>2],0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}return 0}J[b+8>>2]=c|4}return-1}function NUa(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=fc-272|0;fc=f;J[a>>2]=2216940;J[a+1576>>2]=0;J[a+1056>>2]=0;J[a+1044>>2]=0;J[a+1048>>2]=0;a:{b:{if(!VB(a,c))break b;if(!J[a+1040>>2]){Cc(1,-1,811036,0);break b}if(J[b>>2]!=8){Cc(1,-1,836723,0);break b}d=J[b+8>>2];c=vc(8);J[699344]=0;b=_(3351,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[a+1044>>2]=b;c=vc(16);J[699344]=0;g=_(3352,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;kc[J[J[d>>2]+20>>2]](d);while(1){c=vc(8);J[699344]=0;b=_(3351,c|0)|0;e=J[699344];J[699344]= +0;c:{if((e|0)!=1){d:{e=kc[J[J[d>>2]+28>>2]](d)|0;if((e|0)!=-1){c=0;while(1){j=e<<24>>24;Kd(J[a+1044>>2],j);e:{if(c){c=(e|0)!=13&(e|0)!=10;break e}c=1;if((e|0)==37)break e;c=0;if(!((e|0)==32|e-9>>>0<5))break d}e=kc[J[J[d>>2]+28>>2]](d)|0;if((e|0)!=-1)continue;break}}uc(Zc(b));b=0;break c}f:switch(e-123|0){case 0:case 2:Kd(b,j);break c;default:break f}Kd(b,j);c=kc[J[J[d>>2]+32>>2]](d)|0;g:{if(!(e-48>>>0<10|e-45>>>0<2)){if((c|0)==-1)break g;while(1){if(!(c-48>>>0<10|(c|32)-97>>>0<26))break g;kc[J[J[d>> +2]+28>>2]](d)|0;c=c<<24>>24;Kd(J[a+1044>>2],c);Kd(b,c);c=kc[J[J[d>>2]+32>>2]](d)|0;if((c|0)!=-1)continue;break}break g}if((c|0)==-1)break g;while(1){if(c-45>>>0>1&c-48>>>0>=10)break g;kc[J[J[d>>2]+28>>2]](d)|0;c=c<<24>>24;Kd(J[a+1044>>2],c);Kd(b,c);c=kc[J[J[d>>2]+32>>2]](d)|0;if((c|0)!=-1)continue;break}}break c}break a}if(b){sd(g,b);continue}break}kc[J[J[d>>2]+24>>2]](d);h:{i:{if(J[g+8>>2]>0)if(!Dd(J[J[g>>2]>>2],837028))break i;Cc(1,-1,811353,0);break h}J[f+8>>2]=0;J[f+12>>2]=1;if(!KJ(a,g,f+12|0, +f+8|0))break h;J[a+1052>>2]=J[f+8>>2];b=J[a+4>>2];j:{if((b|0)<=0)break j;c=0;if((b|0)!=1){j=b&-2;d=a+16|0;e=a+1064|0;while(1){k=f+16|0;l=c<<3;h=O[d+(c<<4)>>3];O[k+l>>3]=h;O[e+l>>3]=h+-1;m=k;k=c|1;l=k<<3;h=O[d+(k<<4)>>3];O[m+l>>3]=h;O[e+l>>3]=h+-1;c=c+2|0;i=i+2|0;if((j|0)!=(i|0))continue;break}}if(!(b&1))break j;b=c<<3;h=O[((c<<4)+a|0)+16>>3];O[b+(f+16|0)>>3]=h;O[(a+b|0)+1064>>3]=h+-1}kc[J[J[a>>2]+16>>2]](a,f+16|0,a+1320|0);J[a+1576>>2]=1}i=J[g+8>>2];if((i|0)>0){c=0;while(1){b=J[J[g>>2]+(c<<2)>>2]; +if(b){uc(Zc(b));i=J[g+8>>2]}c=c+1|0;if((i|0)>(c|0))continue;break}}uc(ld(g))}fc=f+272|0;return a|0}a=Z()|0;uc(c);ba(a|0);B()}function tR(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=(d|0)<=0;g=0;a:{if(k)break a;g=0;if(H[b|0]<0)break a;e=b;f=d;b:{c:{d:{if(d>>>0<64)break d;e:{if(!(e&3))break e;f:{e=K[e|0];if(e)break f;g=d-8|0;e=b+1|0;g:{if(!(e&3)){f=g;g=d;h=8;break g}i=8;e=K[e|0];if(e)break f;h=d-16|0;e=b+2|0;if(!(e&3)){f=h;h=16;break g}i=16;e=K[e|0];if(e)break f;g=d-24|0;e=b+3|0;if(!(e&3)){f=g;g=h;h= +24;break g}i=24;e=K[e|0];if(e)break f;e=b+4|0;f=d-32|0;h=32}if((g|0)>39)break e;break d}g=K[e+95856|0]+i|0;break a}i=f;while(1){if(J[e>>2]){f=i;break c}e=e+4|0;h=h+32|0;g=(i|0)>63;f=i-32|0;i=f;if(g)continue;break}}if((f|0)<8)break b}i=f;while(1){f=K[e|0];if(f){g=K[f+95856|0]+h|0;break a}e=e+1|0;h=h+8|0;g=(i|0)>15;f=i-8|0;i=f;if(g)continue;break}}g=h;if((f|0)<=0)break a;g=K[K[e|0]+95856|0];g=((f|0)<(g|0)?f:g)+h|0}i=g;h:{if(k)break h;h=0;if(H[c|0]<0)break h;e=c;f=d;i:{j:{k:{if(d>>>0<64)break k;l:{if(!(e& +3))break l;m:{e=K[e|0];if(e)break m;g=d-8|0;e=c+1|0;n:{if(!(e&3)){f=g;g=d;h=8;break n}j=8;e=K[e|0];if(e)break m;h=d-16|0;e=c+2|0;if(!(e&3)){f=h;h=16;break n}j=16;e=K[e|0];if(e)break m;g=d-24|0;e=c+3|0;if(!(e&3)){f=g;g=h;h=24;break n}j=24;e=K[e|0];if(e)break m;e=c+4|0;f=d-32|0;h=32}if((g|0)>39)break l;break k}j=K[e+95856|0]+j|0;break h}j=f;while(1){if(J[e>>2]){f=j;break j}e=e+4|0;h=h+32|0;g=(j|0)>63;f=j-32|0;j=f;if(g)continue;break}}if((f|0)<8)break i}j=f;while(1){f=K[e|0];if(f){j=K[f+95856|0]+h|0; +break h}e=e+1|0;h=h+8|0;g=(j|0)>15;f=j-8|0;j=f;if(g)continue;break}}if((f|0)<=0){j=h;break h}g=K[K[e|0]+95856|0];j=((f|0)<(g|0)?f:g)+h|0}h=0;while(1){e=d;if(j>>>0>>0){o:{if(K[(j>>>3|0)+c|0]>>>((j^-1)&7)&1){f=Ns(c,j,e);break o}f=Ps(c,j,d)}e=f+j|0}p:{if(e>>>0>=i>>>0){f=(j-i|0)+3|0;if(f>>>0>=7){e=d;if(i>>>0>>0){q:{if(K[(i>>>3|0)+b|0]>>>((i^-1)&7)&1){f=Ns(b,i,e);break q}f=Ps(b,i,d)}e=f+i|0}qm(a,1,3);r:{if((0-i|0)!=(h|0))if(K[(h>>>3|0)+b|0]>>>((h^-1)&7)&1)break r;Os(a,i-h|0,94080);Os(a,e-i|0,94736); +break p}Os(a,i-h|0,94736);Os(a,e-i|0,94080);break p}f=P(f,6);qm(a,L[f+96386>>1],L[f+96384>>1]);e=i;break p}qm(a,1,4)}if(d>>>0>e>>>0){s:{if(K[(e>>>3|0)+b|0]>>>((e^-1)&7)&1){i=Ns(b,e,d);j=Ps(c,e,d)+e|0;f=Ns(c,j,d);break s}i=Ps(b,e,d);j=Ns(c,e,d)+e|0;f=Ps(c,j,d)}j=f+j|0;i=e+i|0;h=e;continue}break}}function Rzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[a+572>>2];b=J[a+664>>2];a:{if((d|0)<(b|0)|(d|0)>=J[a+668>>2])break a;d=kc[J[a+220>>2]](a,J[a+680>>2]+(d-b|0)|0)|0;b=J[a+580>>2];d=(d+(b<< +1)|0)+(J[a+672>>2]<<1)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];i=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!i)break b;if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b+2|0]>>>1&124|K[b+1|0]>>>6;H[d|0]=K[b+1|0]<<2&224|K[b|0]>>>3;b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=g+(b<<3)|0;if(i){if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b+4|0]>>>1&124|K[b+2|0]>>>6;H[d|0]=K[b+2|0]<<2&224|K[b|0]>>>3;b=b+8|0;c=J[a+584>>2];d= +(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d+1|0]=K[b+4|0]>>>1&124|K[b+2|0]>>>6;c=K[b+2|0]<<2&-32|K[b|0]>>>3;break c}i=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;f=P(c,(g<<8|g>>>8)&65535);g=c^65535;j=K[d+1|0];h=K[d|0];f=(f+P(P(g,(j<<6|h>>>2)&248),257)|0)+32768|0;f=(f>>>16|0)+f|0;k=K[b+4|0]|K[b+5|0]<<8;h=h<<3&248;h=(P(c,(k<<8|k>>>8)&65535)+P(g,h<<8|h)|0)+32768|0;H[d+1|0]=f>>> +30|(h>>>16|0)+h>>>25&124;c=(P((i<<8|i>>>8)&65535,c)+P(P(g,j<<1&240),257)|0)+32768|0;c=f>>>22&224|(c>>>16|0)+c>>>30}H[d|0]=c}b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d+1|0]=K[b+2|0]>>>1&124|K[b+1|0]>>>6;c=K[b+1|0]<<2&-32|K[b|0]>>>3;break d}g=K[b|0];i=c^255;j=K[d+1|0];h=K[d|0];f=(P(c,K[b+1|0])+P(i,(j<<6|h>>>2)&248)|0)+128|0;f=(f>>>8&255)+f|0;j=(P(i,j<<1&240)+P(c,K[b+2|0])|0)+128|0;H[d+ +1|0]=f>>>14&3|(j>>>8&255)+j>>>9&124;c=(P(i,h<<3&248)+P(c,g)|0)+128|0;c=(c>>>8&255)+c>>>11&31|f>>>6&224}H[d|0]=c}b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function Qzb(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[a+572>>2];b=J[a+664>>2];a:{if((d|0)<(b|0)|(d|0)>=J[a+668>>2])break a;d=kc[J[a+220>>2]](a,J[a+680>>2]+(d-b|0)|0)|0;b=J[a+580>>2];d=(d+(b<<1)|0)+(J[a+672>>2]<<1)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];i=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!i)break b;if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b|0]>>>1&124|K[b+1|0]>>>6;H[d|0]=K[b+1|0]<<2&224|K[b+2|0]>>>3;b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e| +0)>2])continue;break}break a}b=g+(b<<3)|0;if(i){if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b|0]>>>1&124|K[b+2|0]>>>6;H[d|0]=K[b+2|0]<<2&224|K[b+4|0]>>>3;b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d+1|0]=K[b|0]>>>1&124|K[b+2|0]>>>6;c=K[b+2|0]<<2&-32|K[b+4|0]>>>3;break c}i=K[b+4|0]|K[b+5|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;f=P(c,(g<<8|g>>>8)&65535); +g=c^65535;j=K[d+1|0];h=K[d|0];f=(f+P(P(g,(j<<6|h>>>2)&248),257)|0)+32768|0;f=(f>>>16|0)+f|0;k=K[b|0]|K[b+1|0]<<8;h=h<<3&248;h=(P(c,(k<<8|k>>>8)&65535)+P(g,h<<8|h)|0)+32768|0;H[d+1|0]=f>>>30|(h>>>16|0)+h>>>25&124;c=(P((i<<8|i>>>8)&65535,c)+P(P(g,j<<1&240),257)|0)+32768|0;c=f>>>22&224|(c>>>16|0)+c>>>30}H[d|0]=c}b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d+1|0]=K[b|0]>>>1&124|K[b+1|0]>>> +6;c=K[b+1|0]<<2&-32|K[b+2|0]>>>3;break d}g=K[b+2|0];i=c^255;j=K[d+1|0];h=K[d|0];f=(P(c,K[b+1|0])+P(i,(j<<6|h>>>2)&248)|0)+128|0;f=(f>>>8&255)+f|0;j=(P(i,j<<1&240)+P(c,K[b|0])|0)+128|0;H[d+1|0]=f>>>14&3|(j>>>8&255)+j>>>9&124;c=(P(i,h<<3&248)+P(c,g)|0)+128|0;c=(c>>>8&255)+c>>>11&31|f>>>6&224}H[d|0]=c}b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>> +2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function r4a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;v=fc-256|0;fc=v;q=J[a+332>>2];b=J[b+84>>2];a=v;g=8;while(1){a:{b:{f=L[c+32>>1];h=I[c+16>>1];if((f|h)&65535)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b; +f=P(I[c>>1],J[b>>2])<<2;J[a+192>>2]=f;J[a+160>>2]=f;J[a+128>>2]=f;J[a+96>>2]=f;J[a+64>>2]=f;J[a+32>>2]=f;J[a>>2]=f;j=56;break a}i=P(J[b+192>>2],I[c+96>>1]);k=P(J[b+64>>2],f<<16>>16);f=P(i+k|0,4433);h=P(h,J[b+32>>2]);r=P(J[b+224>>2],I[c+112>>1]);t=P(h+r|0,-7373);n=P(J[b+160>>2],I[c+80>>1]);l=n+h|0;o=P(J[b+96>>2],I[c+48>>1]);p=o+r|0;m=P(l+p|0,9633);j=P(I[c+64>>1],J[b+128>>2])<<13;s=P(I[c>>1],J[b>>2])<<13|1024;u=j+s|0;k=f+P(k,6270)|0;w=u+k|0;x=t+P(h,12299)|0;h=m+P(l,-3196)|0;l=x+h|0;J[a+224>>2]=w-l>> +11;J[a>>2]=l+w>>11;l=s-j|0;f=f+P(i,-15137)|0;i=l+f|0;m=m+P(p,-16069)|0;j=P(o,25172);o=P(n+o|0,-20995);p=m+(j+o|0)|0;J[a+192>>2]=i-p>>11;J[a+32>>2]=i+p>>11;f=l-f|0;h=h+(o+P(n,16819)|0)|0;J[a+160>>2]=f-h>>11;J[a+64>>2]=f+h>>11;f=m+(t+P(r,2446)|0)|0;h=u-k|0;J[a+96>>2]=f+h>>11;f=h-f>>11;j=32}J[(j<<2)+a>>2]=f;c=c+2|0;b=b+4|0;a=a+4|0;f=g>>>0>1;g=g-1|0;if(f)continue;break}b=q+128|0;c=v;h=0;while(1){a=J[(h<<2)+d>>2]+e|0;c:{d:{f=J[c+8>>2];g=J[c+4>>2];if(f|g)break d;f=0;if(J[c+12>>2]|J[c+16>>2]|(J[c+20>>2]| +J[c+24>>2]))break d;if(J[c+28>>2])break d;g=K[b+(J[c>>2]+16>>>5&1023)|0];H[a+6|0]=g;H[a+5|0]=g;H[a+4|0]=g;H[a+3|0]=g;H[a+2|0]=g;H[a+1|0]=g;H[a|0]=g;f=7;break c}r=J[c+28>>2];t=P(r+g|0,-7373);n=J[c+12>>2];q=n+r|0;o=J[c+20>>2];i=o+g|0;m=P(q+i|0,9633);j=t+P(g,12299)|0;g=m+P(i,-3196)|0;i=j+g|0;k=J[c>>2]+16|0;l=J[c+16>>2];p=k+l<<13;s=P(f,6270);j=f;f=J[c+24>>2];j=P(j+f|0,4433);s=s+j|0;u=p+s|0;H[a|0]=K[b+(i+u>>>18&1023)|0];H[a+7|0]=K[b+(u-i>>>18&1023)|0];m=m+P(q,-16069)|0;i=P(n,25172);n=P(n+o|0,-20995);q= +m+(i+n|0)|0;i=k-l<<13;f=j+P(f,-15137)|0;k=i+f|0;H[a+1|0]=K[b+(q+k>>>18&1023)|0];H[a+6|0]=K[b+(k-q>>>18&1023)|0];g=g+(n+P(o,16819)|0)|0;f=i-f|0;H[a+2|0]=K[b+(g+f>>>18&1023)|0];H[a+5|0]=K[b+(f-g>>>18&1023)|0];f=m+(t+P(r,2446)|0)|0;g=p-s|0;H[a+3|0]=K[b+(f+g>>>18&1023)|0];g=K[b+(g-f>>>18&1023)|0];f=4}H[f+a|0]=g;c=c+32|0;h=h+1|0;if((h|0)!=8)continue;break}fc=v+256|0}function FU(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,p=0,q=0,r=0,s=0;g=fc-96|0;fc=g;h=J[a+56>>2];J[699344]=0;m=Jx(h);h=J[699344]; +J[699344]=0;a:{b:{c:{d:{if((h|0)!=1){i=O[c>>3];j=O[d>>3];O[g+88>>3]=j;O[g+80>>3]=i;n=O[e>>3];O[g+72>>3]=j+O[f>>3];O[g+64>>3]=i+n;c=J[a+56>>2];J[699344]=0;e=g+80|0;f=g+88|0;ce(c,e,f);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[a+56>>2];J[699344]=0;h=g- -64|0;k=g+72|0;ce(c,h,k);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[699344]=0;i=O[g+64>>3];j=O[g+80>>3];n=O[g+72>>3];s=O[g+88>>3];c=_(2256,g+60|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;i=(j+i)*.5;j=(s+n)*.5;Kx(c,-m,i,j,1); +d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;ce(c,e,f);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;ce(c,h,k);d=J[699344];J[699344]=0;if((d|0)==1)break b;O[g+48>>3]=O[g+72>>3];O[g+40>>3]=O[g+80>>3];J[699344]=0;O[g+32>>3]=O[g+88>>3];O[g+24>>3]=O[g+64>>3];Kx(c,m+m,i,j,1);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;ce(c,e,f);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;ce(c,h,k);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;l=g+40|0;p=g+48|0;ce(c, +l,p);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;q=g+24|0;r=g+32|0;ce(c,q,r);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;d=a+88|0;An(d);o=J[699344];J[699344]=0;if((o|0)==1)break b;J[699344]=0;ca(6492,d|0,e|0,f|0);o=J[699344];J[699344]=0;if((o|0)==1)break b;J[699344]=0;ca(6493,d|0,l|0,p|0);l=J[699344];J[699344]=0;if((l|0)==1)break b;J[699344]=0;ca(6493,d|0,h|0,k|0);h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;ca(6493,d|0,q|0,r|0);h=J[699344];J[699344]=0;if((h|0)== +1)break b;J[699344]=0;ca(6493,d|0,e|0,f|0);e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;$(6504,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;J[g+16>>2]=J[b>>2];d=J[b+4>>2];J[g+20>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;J[699344]=0;e=J[g+20>>2];J[g+8>>2]=J[g+16>>2];J[g+12>>2]=e;ca(6505,a|0,256,g+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;Jd(c);e:{if(!d)break e;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break e;kc[J[J[d>>2]+8>>2]](d);Gc(d)}fc=g+96|0;return}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a= +Z()|0;Jd(c)}je(b);ba(a|0);B()}function $3a(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;d=fc-1072|0;fc=d;J[d+44>>2]=d+48;e=K[b+11|0];h=e<<24>>24;a:{i=(h|0)<0?J[b+4>>2]:e;f=i+1|0;if(f>>>0<1073741808){b:{if(f>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=f;e=d;break b}e=f|3;if(e>>>0>=1073741823)break a;g=e+1|0;e=vc(g<<2);J[d+4>>2]=f;J[d>>2]=e;J[d+8>>2]=g|-2147483648}f=(h|0)<0?J[b>>2]:b;b=i<<2;b=cd(e,f,b)+b|0;J[b>>2]=47;J[b+4>>2]=0;b=J[c>>2];e=J[c+4>>2];g=K[c+11|0];J[699344]=0; +f=b;b=g<<24>>24<0;c=ga(2960,d|0,(b?f:c)|0,(b?e:g)|0)|0;b=J[699344];J[699344]=0;c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[d+24>>2]=J[c+8>>2];b=J[c+4>>2];J[d+16>>2]=J[c>>2];J[d+20>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[699344]=0;c=aa(3026,d+16|0,415600)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[d+40>>2]=J[c+8>>2];b=J[c+4>>2];J[d+32>>2]=J[c>>2];J[d+36>>2]=b;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+11|0]<0)uc(J[d>>2]);J[d>>2]=0;e=H[d+43|0];b=(e|0)<0;c=b?J[d+32>>2]:d+32|0; +f=0;i:{if(!c)break i;b=b?J[d+36>>2]:e&255;f=0;if(!b)break i;J[699344]=0;ma(3027,c|0,b|0,d+44|0,d|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break f;f=J[d>>2]}b=d+48|0;H[f+b|0]=0;J[699344]=0;c=_(3028,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if((c|0)==-1)break e;J[699344]=0;_(3029,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break e}b=Z()|0;break d}b=Z()|0;break g}b=Z()|0;if(H[d+27|0]>=0)break g;uc(J[d+16>>2])}if(H[d+11|0]>=0)break c;uc(J[d>>2]);ba(b|0);B()}b=Z()|0;break d}j:{g=Yc(d+48|0);if(g>>>0>= +2147483632){J[699344]=0;$(3030,d+16|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;B()}k:{if(g>>>0<=10){H[d+27|0]=g;c=d+16|0;break k}J[699344]=0;e=(g|15)+1|0;c=_(4,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;J[d+16>>2]=c;J[d+20>>2]=g;J[d+24>>2]=e|-2147483648}j=xc(c,d+48|0,g)+g|0,k=0,H[j|0]=k;b=J[d+16>>2];c=J[d+20>>2];e=K[d+27|0];J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[699344]=0;f=b;b=e<<24>>24<0;ca(3018,(b?f:d+16|0)|0,(b?c:e)|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;if(H[a+11|0]<0)uc(J[a>> +2]);if(H[d+27|0]>=0)break d;uc(J[d+16>>2]);break d}if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+43|0]<0)uc(J[d+32>>2]);fc=d+1072|0;return}b=Z()|0}if(H[d+43|0]>=0)break c;uc(J[d+32>>2])}ba(b|0);B()}_d(d);B()}Pd();B()}function EV(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,w=0,x=0,y=0,z=0,A=0,C=0,D=0,E=0;g=fc-48|0;fc=g;a:{b:{h=J[c+4>>2];f=J[c+12>>2];b=(b|0)<(h|0)?h:(b|0)<(f|0)?b:f-1|0;f=J[a+116>>2];c:{d:{if((b|0)==(f|0))break d;h=J[a+88>>2];if((b|0)==J[a+112>>2])break c; +J[a+112>>2]=f;J[a+116>>2]=b;J[a+88>>2]=J[a+100>>2];J[a+100>>2]=h;f=J[a+16>>2];i=J[a+20>>2];if(!(f|i)){b=b-J[d+4>>2]|0;d=J[d>>2];f=J[c+8>>2];c=J[c>>2];if(!J[e+20>>2])_i(e);i=L[e+14>>1];e:{if(!(b>>>0>1]&(b|0)>=0)){b=L[e+12>>1];if(J[685890]<(b+i|0)){a=Qc(g+24|0,2390258,2390866,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}b=b+J[685889]|0;break e}b=L[e+12>>1]+(J[e+20>>2]+P(b,i)|0)|0}if((c|0)>=(f|0))break d;e=f-d|0;c=c-d|0;b=b+c|0;while(1){H[h|0]=K[J[a+ +76>>2]+K[b|0]|0];h=h+1|0;b=b+1|0;c=c+1|0;if((e|0)>(c|0))continue;break}break d}J[g+8>>2]=J[c>>2]<>2];J[g+20>>2]=b+1<>2]=b<>2]=c<>2]|0,0-J[d+4>>2]|0);b=J[g+12>>2];if(!J[e+20>>2])_i(e);m=L[e+14>>1];f:{if(!(b>>>0>1]&(b|0)>=0)){b=L[e+12>>1];if(J[685890]<(b+m|0)){a=Qc(g+24|0,2390258,2390866,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}b=b+J[685889]|0;break f}b=L[e+12>>1]+(J[e+20>>2]+P(b, +m)|0)|0}d=J[g+8>>2];j=J[g+16>>2];if((d|0)>=(j|0))break d;i=b;n=J[a+16>>2];s=n+J[a+20>>2]|0;b=s-1|0;x=1<>2]-J[g+12>>2]|0;A=2<>2];u=(b|0)>(t|0)?t:b;if((u|0)>0){b=c+o|0;C=(b|0)<(j|0)?b:j;e=v<(j|0)?j:b;w=f-(d+e|0)&3;p=0;D=0-c|0;b=c+i|0;l=J[a+76>>2];E=f+(y-e|0)>>>0<3;e=0;while(1){f=b;q=(b+C|0)+D|0;g:{if(q>>>0<=b>>>0)break g;r=0;if(w)while(1){e=K[K[b|0]+l|0]+e|0;b=b+1|0;r=r+1|0;if((r|0)!=(w|0))continue;break}if(E)break g; +while(1){e=K[K[b+3|0]+l|0]+(K[K[b+2|0]+l|0]+(K[K[b+1|0]+l|0]+(K[K[b|0]+l|0]+e|0)|0)|0)|0;b=b+4|0;if(q>>>0>b>>>0)continue;break}}b=f+m|0;k=(k-f|0)+q|0;p=p+1|0;if((u|0)!=(p|0))continue;break}}if((k|0)==(A|0))b=e+x>>s;else b=(((k|0)/2|0)+e|0)/(k|0)|0;H[h|0]=b;v=v+1|0;h=h+1|0;c=c+o|0;if((j|0)>(c|0))continue;break}}h=J[a+100>>2]}fc=g+48|0;return h}B()}b=Z()|0;Kc(a);ba(b|0);B()}function yra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=fc-48|0;fc=g;$U(g+40|0,b);c=J[g+40>>2];if(c)d=J[c+8>>2];c=g+40| +0;wc(c);e=g+36|0;f=J[b>>2];if(f)f=J[f+8>>2];else f=0;i=sh(c,e,f+1|0,1);c=J[b>>2];of(J[g+36>>2],J[(c?c+12|0:2743576)>>2]);c=J[b>>2];J[699344]=0;f=J[g+36>>2];c=aa(6237,c|0,d|0)|0;d=J[699344];J[699344]=0;a:{if((d|0)!=1){J[g+28>>2]=0;J[g+32>>2]=J[685894];f=c+f|0;c=f;while(1){b:{c:{d:{e:{f:{g:{h:{d=K[c|0];i:{if(d){if((d|0)!=63&(d|0)!=35)break b;J[699344]=0;aa(5224,g+28|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;H[c|0]=0}c=Je(f,28654);if(c)while(1){d=Yc(c);d=((d|0)>=3?3:d)+c|0;while(1){e=K[d| +0];H[c|0]=e;c=c+1|0;d=d+1|0;if(e)continue;break}c=Je(f,28654);if(c)continue;break}c=Je(f,28656);if(c)while(1){d=Yc(c);d=((d|0)>0?1:d)+c|0;while(1){e=K[d|0];H[c|0]=e;c=c+1|0;d=d+1|0;if(e)continue;break}c=Je(f,28656);if(c)continue;break}c=Je(f,28659);if(c)while(1){d=Yc(c);d=((d|0)>=2?2:d)+c|0;while(1){e=K[d|0];H[c|0]=e;c=c+1|0;d=d+1|0;if(e)continue;break}c=Je(f,28659);if(c)continue;break}d=Je(f,28663);if(d)while(1){c=d;j:{while(1){c=c-1|0;if(f>>>0>c>>>0)break j;if(K[c|0]!=47)continue;break}e=Yc(c); +d=(d-c|0)+3|0;d=((d|0)>(e|0)?e:d)+c|0;while(1){e=K[d|0];H[c|0]=e;c=c+1|0;d=d+1|0;if(e)continue;break}}d=Je(f,28663);if(d)continue;break}c=Yc(f)+f|0;e=c-2|0;k:{if(e>>>0>>0)break k;J[699344]=0;d=aa(5149,g+20|0,28668)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;e=pd(d,e,-1);h=J[699344];J[699344]=0;if((h|0)==1)break e;wc(d);if(e)break k;H[c-1|0]=0}c=Yc(f)+f|0;e=c-3|0;l:{if(e>>>0>>0)break l;J[699344]=0;d=aa(5149,g+12|0,28671)|0;h=J[699344];J[699344]=0;if((h|0)==1)break f;J[699344]= +0;e=pd(d,e,-1);h=J[699344];J[699344]=0;if((h|0)==1)break g;wc(d);if(e)break l;c=c-4|0;if(f>>>0>c>>>0)break l;while(1){if(K[c|0]==47){H[c+1|0]=0;break l}c=c-1|0;if(f>>>0<=c>>>0)continue;break}}J[699344]=0;aa(5224,b|0,J[g+36>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;J[699344]=0;ca(5292,a|0,b|0,g+28|0);a=J[699344];J[699344]=0;if((a|0)!=1)break h}c=Z()|0;break c}wc(g+28|0);hd(i);fc=g+48|0;return}c=Z()|0;wc(d);break c}c=Z()|0;break c}c=Z()|0;wc(d);break c}c=Z()|0}wc(g+28|0);break a}c=c+1|0;continue}}c= +Z()|0}hd(i);ba(c|0);B()}function Wzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[a+572>>2];b=J[a+664>>2];a:{if((d|0)<(b|0)|(d|0)>=J[a+668>>2])break a;d=kc[J[a+220>>2]](a,J[a+680>>2]+(d-b|0)|0)|0;b=J[a+580>>2];d=(d+(b<<1)|0)+(J[a+672>>2]<<1)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];i=K[a+649|0];f=J[a+644>>2];b:{if(!K[a+648|0]){b=f+(b<<2)|0;if(!i)break b;if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b+2|0]>>>3;b=b+4|0; +c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=f+(b<<3)|0;if(i){if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<<3&224|K[b+4|0]>>>3;b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d+1|0]=K[b|0]&248|K[b+2|0]>>>5;c=K[b+2|0]<<3&-32|K[b+4|0]>>>3;break c}i=K[b+4|0]|K[b+5|0]<<8;f=K[b+2|0]|K[b+3| +0]<<8;g=P(c,(f<<8|f>>>8)&65535);f=K[d|0];j=K[d+1|0];h=f>>>3&28|j<<5;k=h<<8&64512|h;h=c^65535;g=(g+P(k,h)|0)+32768|0;g=(g>>>16|0)+g|0;k=K[b|0]|K[b+1|0]<<8;f=(P(c,(k<<8|k>>>8)&65535)+P(h,f<<11&63488|f<<3)|0)+32768|0;H[d+1|0]=g>>>29|(f>>>16|0)+f>>>24&248;c=(P((i<<8|i>>>8)&65535,c)+P(P(h,j&248),257)|0)+32768|0;c=g>>>21&224|(c>>>16|0)+c>>>27}H[d|0]=c}b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d+ +1|0]=K[b|0]&248|K[b+1|0]>>>5;c=K[b+1|0]<<3&-32|K[b+2|0]>>>3;break d}f=K[b+2|0];i=c^255;h=K[d+1|0];j=K[d|0];g=(P(c,K[b+1|0])+P(i,(h<<5|j>>>3)&252)|0)+128|0;g=(g>>>8&255)+g|0;h=(P(i,h&248)+P(c,K[b|0])|0)+128|0;H[d+1|0]=g>>>13&7|(h>>>8&255)+h>>>8&248;c=(P(i,j<<3&248)+P(c,f)|0)+128|0;c=(c>>>8&255)+c>>>11&31|g>>>5&224}H[d|0]=c}b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e; +b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function Vwa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;J[a+8>>2]=0;J[a>>2]=2423832;J[a+4>>2]=0;J[a+12>>2]=J[685894];g=a+8|0;a:{b:{c=J[b+8>>2];c:{d:{if(c){f=J[J[c>>2]+28>>2];J[699344]=0;ca(f|0,d+4|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break d;b=Z()|0;break c}J[d+4>>2]=0}J[699344]=0;aa(5153,g| +0,d+4|0)|0;c=J[699344];J[699344]=0;e:{if((c|0)!=1){c=J[d+4>>2];J[d+4>>2]=0;if(!c)break e;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;e=J[699344];J[699344]=0;if((e|0)!=1){if(f)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break e}break a}b=Z()|0;zc(d+4|0);break c}c=J[a+8>>2];c=J[(c?c+12|0:2743576)>>2];J[a+16>>2]=0;J[a+12>>2]=c;J[a+20>>2]=J[685894];f=a+16|0;c=J[b+16>>2];f:{g:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+8|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break g;b=Z()| +0;break f}J[d+8>>2]=0}J[699344]=0;aa(5153,f|0,d+8|0)|0;c=J[699344];J[699344]=0;h:{if((c|0)!=1){c=J[d+8>>2];J[d+8>>2]=0;if(!c)break h;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)!=1){if(e)break h;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break h}break a}b=Z()|0;zc(d+8|0);break f}c=J[a+16>>2];c=J[(c?c+12|0:2743576)>>2];J[a+24>>2]=0;J[a+20>>2]=c;J[a+28>>2]=J[685894];c=a+24|0;e=J[b+24>>2];i:{j:{if(e){h=J[J[e>>2]+28>>2];J[699344]=0;ca(h|0,d+12|0,e|0,1);e=J[699344]; +J[699344]=0;if((e|0)!=1)break j;b=Z()|0;break i}J[d+12>>2]=0}J[699344]=0;aa(5153,c|0,d+12|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break b;J[699344]=0;g=J[c+4>>2]-1|0;J[c+4>>2]=g;f=J[699344];J[699344]=0;if((f|0)!=1){if(g)break b;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b}break a}b=Z()|0;zc(d+12|0)}wc(c)}wc(f)}wc(g);nd(a);ba(b|0);B()}c=J[a+24>>2];J[a+28>>2]=J[(c?c+12|0:2743576)>>2];c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+44>>2]; +J[a+40>>2]=J[b+40>>2];J[a+44>>2]=c;c=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=c;c=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=c;g=b- -64|0;f=J[g+4>>2];c=a- -64|0;J[c>>2]=J[g>>2];J[c+4>>2]=f;c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;c=J[b+84>>2];J[a+80>>2]=J[b+80>>2];J[a+84>>2]=c;H[a+88|0]=K[b+88|0];fc=d+16|0;return a|0}ea(0)|0;Bc();B()}function Vzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[a+572>>2];b=J[a+664>>2];a:{if((d|0)<(b|0)|(d|0)>=J[a+668>>2])break a;d=kc[J[a+220>>2]](a, +J[a+680>>2]+(d-b|0)|0)|0;b=J[a+580>>2];d=(d+(b<<1)|0)+(J[a+672>>2]<<1)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];i=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!i)break b;if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b+2|0]&248|K[b+1|0]>>>5;H[d|0]=K[b+1|0]<<3&224|K[b|0]>>>3;b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=g+(b<<3)|0;if(i){if((c|0)<=(e|0))break a;while(1){H[d+1|0]=K[b+4|0]&248|K[b+2|0]>>>5;H[d|0]=K[b+2|0]<< +3&224|K[b|0]>>>3;b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d+1|0]=K[b+4|0]&248|K[b+2|0]>>>5;c=K[b+2|0]<<3&-32|K[b|0]>>>3;break c}i=K[b|0]|K[b+1|0]<<8;g=K[b+2|0]|K[b+3|0]<<8;f=P(c,(g<<8|g>>>8)&65535);g=c^65535;j=K[d+1|0];h=K[d|0];f=(f+P(P(g,(j<<5|h>>>3)&252),257)|0)+32768|0;f=(f>>>16|0)+f|0;k=K[b+4|0]|K[b+5|0]<<8;h=h<<3&248;h=(P(c,(k<<8|k>>>8)&65535)+ +P(g,h<<8|h)|0)+32768|0;H[d+1|0]=f>>>29|(h>>>16|0)+h>>>24&248;c=(P((i<<8|i>>>8)&65535,c)+P(P(g,j&248),257)|0)+32768|0;c=f>>>21&224|(c>>>16|0)+c>>>27}H[d|0]=c}b=b+8|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d+1|0]=K[b+2|0]&248|K[b+1|0]>>>5;c=K[b+1|0]<<3&-32|K[b|0]>>>3;break d}g=K[b|0];i=c^255;j=K[d+1|0];h=K[d|0];f=(P(c,K[b+1|0])+P(i,(j<<5|h>>>3)&252)|0)+128|0;f=(f>>>8&255)+f|0;j=(P(i,j&248)+ +P(c,K[b+2|0])|0)+128|0;H[d+1|0]=f>>>13&7|(j>>>8&255)+j>>>8&248;c=(P(i,h<<3&248)+P(c,g)|0)+128|0;c=(c>>>8&255)+c>>>11&31|f>>>5&224}H[d|0]=c}b=b+4|0;c=J[a+584>>2];d=(c<<1)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+ +1;return 0}function _ia(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;g=fc-256|0;fc=g;J[g+248>>2]=c;J[g+252>>2]=b;h=Ze(g+196|0);J[699344]=0;c=g+16|0;a=J[d+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;a:{b:{c:{d:{if((a|0)!=1){J[699344]=0;b=_(6826,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ha(6847,b|0,2632752,2632778,g+208|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;b=J[c>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)kc[J[J[b>>2]+8>>2]](b); +a=Ze(g+184|0);if(K[a+11|0]>>>7|0)b=(J[a+8>>2]&2147483647)-1|0;else b=10;J[699344]=0;da(6834,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=b;J[g+12>>2]=c;J[g+8>>2]=0;while(1){e:{J[699344]=0;d=aa(6744,g+252|0,g+248|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(d)break c;d=J[g+180>>2];if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if((d|0)==(c+b|0)){if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b= +K[a+11|0]&127;J[699344]=0;da(6834,a|0,b<<1);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=c+b}J[699344]=0;i=g+252|0;d=_(6745,i|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[699344]=0;d=Jp(d,16,b,g+180|0,g+8|0,0,h,g+16|0,g+12|0,g+208|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;if(d)break c;J[699344]=0;_(6747,i|0)|0;c=J[699344]; +J[699344]=0;if((c|0)!=1)continue}break}break b}b=Z()|0;break a}b=Z()|0;c=J[g+16>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)kc[J[J[c>>2]+8>>2]](c);break a}J[699344]=0;da(6834,a|0,J[g+180>>2]-b|0);b=J[699344];J[699344]=0;f:{if((b|0)==1)break f;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[699344]=0;d=pa(6851)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[g>>2]=f;J[699344]=0;c=ha(6852,b|0,d|0,5886,g|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;if((c|0)!=1)J[e>>2]=4;J[699344]=0;c=aa(6744,g+252|0,g+ +248|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;b=J[g+252>>2];jd(a);jd(h);fc=g+256|0;return b|0}}b=Z()|0;jd(a)}jd(h);ba(b|0);B()}function Kia(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;g=fc-320|0;fc=g;J[g+312>>2]=c;J[g+316>>2]=b;h=Ze(g+196|0);J[699344]=0;c=g+16|0;a=J[d+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;a:{b:{c:{d:{if((a|0)!=1){J[699344]=0;b=_(6750,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ha(6866,b| +0,2632752,2632778,g+208|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;b=J[c>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)kc[J[J[b>>2]+8>>2]](b);a=Ze(g+184|0);if(K[a+11|0]>>>7|0)b=(J[a+8>>2]&2147483647)-1|0;else b=10;J[699344]=0;da(6834,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=b;J[g+12>>2]=c;J[g+8>>2]=0;while(1){e:{J[699344]=0;d=aa(6858,g+316|0,g+312|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(d)break c;d=J[g+180>>2];if(K[a+11| +0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if((d|0)==(c+b|0)){if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;J[699344]=0;da(6834,a|0,b<<1);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[g+180>>2]=c+b}J[699344]=0;i=g+316|0;d=_(6859,i|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[699344]= +0;d=Ip(d,16,b,g+180|0,g+8|0,0,h,g+16|0,g+12|0,g+208|0);c=J[699344];J[699344]=0;if((c|0)==1)break e;if(d)break c;J[699344]=0;_(6861,i|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)continue}break}break b}b=Z()|0;break a}b=Z()|0;c=J[g+16>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)kc[J[J[c>>2]+8>>2]](c);break a}J[699344]=0;da(6834,a|0,J[g+180>>2]-b|0);b=J[699344];J[699344]=0;f:{if((b|0)==1)break f;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;J[699344]=0;d=pa(6851)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f; +J[g>>2]=f;J[699344]=0;c=ha(6852,b|0,d|0,5886,g|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;if((c|0)!=1)J[e>>2]=4;J[699344]=0;c=aa(6858,g+316|0,g+312|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;b=J[g+316>>2];jd(a);jd(h);fc=g+320|0;return b|0}}b=Z()|0;jd(a)}jd(h);ba(b|0);B()}function NU(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;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;h=fc-96|0;fc=h;o=J[a>>2];j=J[o+12>>2];q=O[j+8>>3];r=O[j+16>>3];i=O[g>>3]; +k=O[f>>3];l=O[e>>3];m=O[d>>3];n=O[c>>3];p=O[b>>3];J[699344]=0;g=h+84|0;J[h+88>>2]=g;f=_(4,24)|0;c=J[699344];J[699344]=0;a:{b=0;b:{if((c|0)==1)break b;O[f+8>>3]=p;O[f+16>>3]=n;J[f+4>>2]=g;J[f>>2]=g;J[699344]=0;J[h+88>>2]=f;g=_(4,24)|0;b=J[699344];J[699344]=0;if((b|0)==1){g=f;b=1;break b}O[g+8>>3]=m;J[g>>2]=f;O[g+16>>3]=l;J[g+4>>2]=h+84;J[f+4>>2]=g;J[699344]=0;b=_(4,24)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break a;b=2}a=Z()|0;J[h+92>>2]=b;J[h+84>>2]=g;Am(h+84|0);ba(a|0);B()}O[b+8>>3]=k;J[b>>2]=g;O[b+ +16>>3]=i;J[b+4>>2]=h+84;J[g+4>>2]=b;J[h+92>>2]=3;J[h+84>>2]=b;c=h+12|0;J[h+16>>2]=c;J[h+8>>2]=2;d=0;e=c;c:{d:{while(1){J[699344]=0;b=_(4,24)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;O[b+8>>3]=O[f+8>>3];s=O[f+16>>3];J[b+4>>2]=c;O[b+16>>3]=s;J[b>>2]=e;J[e+4>>2]=b;d=d+1|0;e=b;f=J[f+4>>2];if((f|0)!=(h+84|0))continue;break}J[h+20>>2]=d;J[h+12>>2]=b;J[699344]=0;b=_(4,24)|0;c=J[699344];J[699344]=0;e:{if((c|0)!=1){J[b+8>>2]=2;J[b+20>>2]=0;c=b+12|0;J[b+16>>2]=c;J[b+12>>2]=c;if(d){f=J[h+16>>2];g=J[f>> +2];j=J[e+4>>2];J[g+4>>2]=j;J[j>>2]=g;g=J[b+12>>2];J[g+4>>2]=f;J[f>>2]=g;J[b+12>>2]=e;J[e+4>>2]=c;J[b+20>>2]=d}J[b>>2]=o;J[b+4>>2]=a;J[o+4>>2]=b;J[a>>2]=b;J[a+8>>2]=J[a+8>>2]+1;O[h- -64>>3]=i;O[h+48>>3]=l;O[h+32>>3]=n;J[699344]=0;O[h+56>>3]=k;O[h+40>>3]=m;O[h+24>>3]=p;O[h+16>>3]=r;O[h+8>>3]=q;Ba(6495,h+72|0,h+8|0,.1);b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[h+72>>2];c=J[h+76>>2];if((b|0)!=(c|0)){k=O[a+40>>3];l=O[a+24>>3];m=O[a+32>>3];n=O[a+16>>3];g=b;while(1){i=O[g>>3];if(i>3]=i; +n=i}if(i>m){O[a+32>>3]=i;m=i}i=O[g+8>>3];if(i>3]=i;l=i}if(i>k){O[a+40>>3]=i;k=i}g=g+16|0;if((c|0)!=(g|0))continue;break}}if(b){J[h+76>>2]=b;uc(b)}f:{if(!J[h+92>>2])break f;g=J[h+88>>2];a=J[g>>2];b=J[J[h+84>>2]+4>>2];J[a+4>>2]=b;J[b>>2]=a;J[h+92>>2]=0;if((h+84|0)==(g|0))break f;while(1){a=J[g+4>>2];uc(g);g=a;if((g|0)!=(h+84|0))continue;break}}fc=h+96|0;return}g=Z()|0;Qp(h+8|0);break c}g=Z()|0;break c}g=Z()|0;J[h+20>>2]=d;J[h+12>>2]=e;Am(c)}Am(h+84|0);ba(g|0);B()}function WL(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,u=0;s=d+f;j=+J[a+24>>2];f=qf(j*f,j*e);j=qf(j*h,j*g);p=O[a+8>>3];p=Qz(p/(p+.125/O[a+48>>3]));n=J[b+4>>2];o=J[b>>2];k=o>>>6|0;if(n>>>0<=k>>>0){i=J[b+8>>2];a:{if(i>>>0>k>>>0){l=J[b+12>>2];break a}i=i+J[b+16>>2]|0;l=vc(i>>>0>1073741823?-1:i<<2);m=J[b+12>>2];if(m){xc(l,m,n<<2);uc(m);i=J[b+8>>2]+J[b+16>>2]|0;o=J[b>>2];n=J[b+4>>2]}J[b+8>>2]=i;J[b+12>>2]=l}t=(k<<2)+l|0,u=vc(1024),J[t>>2]=u;J[b+4>>2]=n+1}p=p+p;k=J[J[b+12>>2]+(k<<2)>>2]+((o&63)<<4)|0; +O[k+8>>3]=s;O[k>>3]=c+e;m=J[b>>2]+1|0;J[b>>2]=m;b:{if(J[a+24>>2]>0){e=(f>j?j+6.283185307179586:j)-f;j=e/p;c:{if(R(j)<2147483648){k=~~j;break c}k=-2147483648}if((k|0)<=0)break b;e=e/+(k+1|0);n=0;while(1){j=O[a>>3];f=e+f;p=j*Ee(f)+d;j=j*Me(f)+c;l=J[b+4>>2];q=m>>>6|0;if(l>>>0<=q>>>0){i=J[b+8>>2];d:{if(i>>>0>q>>>0){i=J[b+12>>2];break d}o=i+J[b+16>>2]|0;i=vc(o>>>0>1073741823?-1:o<<2);r=J[b+12>>2];if(r){xc(i,r,l<<2);uc(r);o=J[b+8>>2]+J[b+16>>2]|0;m=J[b>>2];l=J[b+4>>2]}J[b+8>>2]=o;J[b+12>>2]=i}t=(q<<2)+ +i|0,u=vc(1024),J[t>>2]=u;J[b+4>>2]=l+1}i=J[J[b+12>>2]+(q<<2)>>2]+((m&63)<<4)|0;O[i+8>>3]=p;O[i>>3]=j;m=J[b>>2]+1|0;J[b>>2]=m;n=n+1|0;if((k|0)!=(n|0))continue;break}break b}e=f-(f>3];f=f-e;p=j*Ee(f)+d;j=j*Me(f)+c;l=J[b+4>>2];q=m>>>6|0;if(l>>>0<=q>>>0){i=J[b+8>>2];f:{if(i>>>0>q>>>0){i=J[b+12>>2];break f}o=i+J[b+16>>2]|0;i=vc(o>>>0>1073741823?-1:o<<2);r=J[b+12>>2];if(r){xc(i, +r,l<<2);uc(r);o=J[b+8>>2]+J[b+16>>2]|0;m=J[b>>2];l=J[b+4>>2]}J[b+8>>2]=o;J[b+12>>2]=i}t=(q<<2)+i|0,u=vc(1024),J[t>>2]=u;J[b+4>>2]=l+1}i=J[J[b+12>>2]+(q<<2)>>2]+((m&63)<<4)|0;O[i+8>>3]=p;O[i>>3]=j;m=J[b>>2]+1|0;J[b>>2]=m;n=n+1|0;if((k|0)!=(n|0))continue;break}}n=J[b+4>>2];i=m>>>6|0;if(n>>>0<=i>>>0){a=J[b+8>>2];g:{if(a>>>0>i>>>0){a=J[b+12>>2];break g}k=a+J[b+16>>2]|0;a=vc(k>>>0>1073741823?-1:k<<2);l=J[b+12>>2];if(l){xc(a,l,n<<2);uc(l);m=J[b>>2];n=J[b+4>>2];k=J[b+8>>2]+J[b+16>>2]|0}J[b+8>>2]=k;J[b+12>> +2]=a}t=(i<<2)+a|0,u=vc(1024),J[t>>2]=u;J[b+4>>2]=n+1}a=J[J[b+12>>2]+(i<<2)>>2]+((m&63)<<4)|0;O[a+8>>3]=d+h;O[a>>3]=c+g;J[b>>2]=J[b>>2]+1}function gUa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;q=fc-96|0;d=a;while(1){a:{f=d;d=J[(r<<2)+b>>2]+c|0;u=K[d+9|0];v=K[d+1|0];p=u+v|0;w=K[d+10|0];x=K[d|0];n=w+x|0;y=K[d+8|0];g=K[d+2|0];k=y+g|0;h=K[d+7|0];o=K[d+3|0];e=h+o|0;i=K[d+6|0];l=K[d+4|0];j=i+l|0;d=K[d+5|0];J[f>>2]=(((((p+ +n|0)+k|0)+e|0)+j|0)+d<<1)-2816;m=d<<1;n=n-m|0;e=e-m|0;t=k-m|0;s=j-m|0;d=P(n+e|0,11116)+P(t+s|0,1649)|0;j=P(n,-13275);p=p-m|0;n=P(n-p|0,9746)+2048|0;J[f+24>>2]=d+((j+n|0)+P(t,-6461)|0)>>12;k=P(p-e|0,7587);J[f+8>>2]=(d+((k+P(e,-8342)|0)+P(s,-11395)|0)|0)+2048>>12;e=o-h|0;j=g-y|0;d=P(e+j|0,3264);g=v-u|0;o=P(g+e|0,-11467);m=o+(d+P(e,10695)|0)|0;h=x-w|0;e=P(h+e|0,6263);i=l-i|0;J[f+28>>2]=((m+e|0)+P(i,-10538)|0)+2048>>12;l=P(g+j|0,-6263);m=l+P(j,-16294)|0;j=P(h+j|0,8756);J[f+20>>2]=(((m+j|0)+d|0)+P(i,11467)| +0)+2048>>12;d=P(g+h|0,10538)+2048|0;J[f+12>>2]=(o+(l+(d+P(g,10456)|0)|0)|0)+P(i,-8756)>>12;J[f+4>>2]=(e+(j+(d+P(h,-14090)|0)|0)|0)+P(i,3264)>>12;J[f+16>>2]=k+(((n+P(p,511)|0)+P(t,-11116)|0)+P(s,4813)|0)>>12;l=r-7|0;r=r+1|0;d=q;j=7;b:switch(l|0){case 0:continue;case 3:break a;default:break b}d=f+32|0;continue}break}while(1){u=J[d+64>>2];v=J[a>>2];p=u+v|0;w=J[a+160>>2];e=w<<1;b=p-e|0;x=J[a+224>>2];y=J[a+96>>2];g=x+y|0;z=g-e|0;h=J[d>>2];i=J[a+64>>2];l=h+i|0;m=l-e|0;n=J[a+128>>2];k=J[a+192>>2];f=n+k| +0;r=f-e|0;t=P(b+z|0,11759)+P(m+r|0,1744)|0;A=P(b,-14043);o=b;q=J[d+32>>2];c=J[a+32>>2];b=q+c|0;s=b-e|0;o=P(o-s|0,10310)+16384|0;J[a+192>>2]=t+((A+o|0)+P(m,-6835)|0)>>15;e=P(s-z|0,8026);J[a+64>>2]=(t+((e+P(z,-8825)|0)+P(r,-12054)|0)|0)+16384>>15;J[a>>2]=P(w+(f+(g+(l+(b+p|0)|0)|0)|0)|0,8666)+16384>>15;f=y-x|0;g=i-h|0;b=P(f+g|0,3453);h=c-q|0;l=P(h+f|0,-12131);c=l+(b+P(f,11314)|0)|0;i=v-u|0;f=P(i+f|0,6626);k=n-k|0;J[a+224>>2]=((c+f|0)+P(k,-11148)|0)+16384>>15;c=P(g+i|0,9262);q=P(g+h|0,-6626);J[a+160>> +2]=(((c+(q+P(g,-17237)|0)|0)+b|0)+P(k,12131)|0)+16384>>15;b=P(h+i|0,11148)+16384|0;J[a+96>>2]=(l+(q+(b+P(h,11061)|0)|0)|0)+P(k,-9262)>>15;J[a+32>>2]=(f+(c+(b+P(i,-14905)|0)|0)|0)+P(k,3453)>>15;J[a+128>>2]=(((o+P(s,540)|0)+P(m,-11759)|0)+P(r,5091)|0)+e>>15;b=j;j=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function C6(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;f=fc-16|0;fc=f;c=J[a+104>>2];b=kc[J[a+516>>2]](a,1886352244,c,f+4|0)|0;a:{if(b)break a;h=J[c+8>>2];l=J[f+ +4>>2];e=J[a+476>>2];b=kg(c,32);if(b)break a;b:{c:{d:{e:{f:{if((e|0)!=151552){b=3;if((e|0)!=131072)break b;g=J[c+28>>2];d=f+8|0;i=ee(c,d);b=J[f+8>>2];if(b)break b;b=3;if(i>>>0>L[a+264>>1])break b;e=0;k=_c(g,2,0,i,0,d);if(J[f+8>>2])break c;b=af(c,i<<1);J[f+8>>2]=b;if(b)break c;if(!i)break f;b=0;while(1){r=(b<<1)+k|0,s=tf(c),I[r>>1]=s;b=b+1|0;if((i|0)!=(b|0))continue;break}ve(c);m=i&1;g:{if((i|0)==1){b=0;break g}n=i&65534;b=0;d=0;while(1){j=e<<1;o=L[(j|2)+k>>1];p=o-257|0;j=L[k+j>>1];q=j-257|0;b=j>>> +0>257?(b&65535)<(q|0)?q:b:b;b=o>>>0>257?(b&65535)<(p|0)?p:b:b;e=e+2|0;d=d+2|0;if((n|0)!=(d|0))continue;break}}if(!m)break d;e=L[(e<<1)+k>>1];d=e-257|0;b=e>>>0>257?(d|0)>(b&65535)?d:b:b;break d}d=J[c+28>>2];g=f+12|0;e=ee(c,g);b=J[f+12>>2];if(b)break b;b=3;if(L[a+264>>1]<=(e-1&65535)>>>0|e>>>0>258)break b;b=0;g=_c(d,1,0,e,0,g);h:{if(J[f+12>>2])break h;c=zg(c,g,e);J[f+12>>2]=c;if(c)break h;while(1){c=H[b+g|0]+b|0;if(!((c|0)<0|(c|0)>(e|0))){b=b+1|0;if((e|0)!=(b|0))continue;break e}break}J[f+12>>2]=3}if(g)kc[J[d+ +8>>2]](d,g);b=J[f+12>>2];break b}ve(c);b=0;break d}J[a+640>>2]=g;I[a+636>>1]=e;b=0;break b}d=0;m=b&65535;e=_c(g,4,0,m,0,f+8|0);if(J[f+8>>2])break c;i:{j:{if(!m)break j;l=h+l|0;while(1){if(l>>>0<=M[c+8>>2]){if((b&65535)>>>0<=(d&65535)>>>0)break j;while(1){c=_c(g,1,0,1,0,f+8|0);J[(d<<2)+e>>2]=c;if(J[f+8>>2])break i;H[c|0]=0;d=d+1|0;if((m|0)!=(d|0))continue;break}break j}h=Rg(c,f+8|0);if(J[f+8>>2])break i;h=h&255;if(!(l>>>0>=h>>>0&M[c+8>>2]<=l-h>>>0)){h=l-J[c+8>>2]|0;h=(h|0)>0?h:0}n=(d<<2)+e|0;j=_c(g, +1,0,h+1|0,0,f+8|0);J[n>>2]=j;if(J[f+8>>2])break i;j=zg(c,j,h);J[f+8>>2]=j;if(j)break i;H[J[n>>2]+h|0]=0;d=d+1|0;if((m|0)!=(d|0))continue;break}}J[a+644>>2]=e;J[a+640>>2]=k;I[a+638>>1]=b;I[a+636>>1]=i;b=0;break b}b=b&65535;c=b>>>0<=1?1:b;b=0;while(1){d=(b<<2)+e|0;i=J[d>>2];if(i)kc[J[g+8>>2]](g,i);J[d>>2]=0;b=b+1|0;if((c|0)!=(b|0))continue;break}}if(e)kc[J[g+8>>2]](g,e);if(k)kc[J[g+8>>2]](g,k);b=J[f+8>>2]}H[a+632|0]=1}fc=f+16|0;return b}function yqb(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=fc+-64|0;fc=d;if(!J[a+12>>2]){f=vc(1068);J[f>>2]=2443736;J[f+36>>2]=-306674912;J[f+40>>2]=-1;J[f+28>>2]=1200;J[f+32>>2]=0;e=f+8|0;J[e>>2]=0;J[e+4>>2]=0;g=f+20|0;J[g>>2]=0;J[g+4>>2]=0;J[f+4>>2]=e;H[f+1064|0]=0;J[f+16>>2]=g;J[a+12>>2]=f}g=J[a>>2];f=d+40|0;H[f+8|0]=0;J[f+4>>2]=1;J[f>>2]=2439636;e=vc(2816);J[699344]=0;g=ga(6377,e|0,f|0,g|0)|0;h=J[699344];J[699344]=0;a:{if((h|0)!=1){J[g+2800>>2]=0;J[g+2804>>2]=0;e=g+2805|0;H[e|0]=0;H[e+1|0]=0;H[e+2|0]=0;H[e+3|0]=0;H[e+4|0]=0;H[e+5|0]=0;H[e+6| +0]=0;H[e+7|0]=0;J[f+12>>2]=g;break a}a=Z()|0;uc(e);ba(a|0);B()}e=J[a+12>>2];J[699344]=0;J[J[f+12>>2]+676>>2]=e;e=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{if((e|0)!=1){J[699344]=0;J[d+8>>2]=5;e=d+8|0;J[J[f+12>>2]+2004>>2]=J[e>>2];g=J[699344];J[699344]=0;if((g|0)==1)break h;J[d+36>>2]=0;J[d+28>>2]=0;J[d+32>>2]=0;if(c)break f;a=J[a+16>>2];J[699344]=0;ia(1635,e|0,f|0,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;break e}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;break d}a=J[a+16>>2];J[699344]=0; +ia(1636,d+8|0,f|0,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;a=Z()|0;break d}J[d+36>>2]=J[d+16>>2];a=J[d+12>>2];J[d+32>>2]=a;e=J[d+8>>2];J[d+28>>2]=e;J[d+16>>2]=1E3;J[d+8>>2]=231660;b=Dc(1E3);J[d+12>>2]=b;g=a-e|0;c=(g|0)/12|0;H[b+4|0]=c;H[b+5|0]=c>>>8;H[b+6|0]=c>>>16;H[b+7|0]=c>>>24;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;a=8;J[d+24>>2]=8;J[d+20>>2]=b+8;i:{if((g|0)>0){g=(c|0)<=1?1:c;a=0;while(1){J[d+60>>2]=0;J[d+56>>2]=0;b=e+P(a,12)|0;h=J[b>>2];i=J[b+4>>2];c=K[b+11|0];J[699344]=0;j=b; +b=c<<24>>24<0;ma(1637,(b?h:j)|0,(b?i:c)|0,d+60|0,d+56|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;ca(1638,d+8|0,J[d+60>>2],J[d+56>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break i;b=J[d+60>>2];if(b)uc(b);a=a+1|0;if((g|0)!=(a|0))continue;break}a=J[d+24>>2];b=J[d+12>>2]}H[b|0]=a;H[b+1|0]=a>>>8;H[b+2|0]=a>>>16;H[b+3|0]=a>>>24;c=J[d+12>>2];if(e){a=J[d+32>>2];if((e|0)!=(a|0))while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((b|0)!=(e|0))continue;break}uc(e)}pH(f);fc=d- -64|0;break b}a= +Z()|0;J[d+8>>2]=231660;b=J[d+12>>2];if(!b)break d;uc(b)}Ag(d+28|0)}pH(f);ba(a|0);B()}return c|0}function N1a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,L=0,M=0,N=0,O=0,Q=0;b=J[b+84>>2];l=P(P(I[c+26>>1],J[b+52>>2]),10033);m=P(I[c+10>>1],J[b+20>>2])<<13|1024;k=P(J[b+84>>2],I[c+42>>1]);p=m+P(k,5793)|0;i=l+p>>11;q=P(P(I[c+18>>1],J[b+36>>2]),10033);n=P(I[c+2>>1],J[b+4>>2])<<13|1024;o=P(J[b+ +68>>2],I[c+34>>1]);r=n+P(o,5793)|0;g=q+r>>11;h=P(i+g|0,2998);f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;s=P(P(I[c+22>>1],J[b+44>>2]),10033);t=P(I[c+6>>1],J[b+12>>2])<<13|1024;u=P(J[b+76>>2],I[c+38>>1]);v=t+P(u,5793)|0;j=s+v>>11;w=h+(j+g<<13)|0;x=P(P(I[c+16>>1],J[b+32>>2]),10033);y=P(I[c>>1],J[b>>2])<<13|1024;z=P(J[b+64>>2],I[c+32>>1]);A=y+P(z,5793)|0;B=(x+A<<2&-8192)+131072|0;C=P(P(I[c+24>>1],J[b+48>>2]),10033);D=P(I[c+8>>1],J[b+16>>2])<<13|1024;E=P(J[b+80>>2],I[c+40>>1]);F=D+P(E,5793)|0;G=C+F>>11;L=B+P(G, +5793)|0;M=P(P(I[c+20>>1],J[b+40>>2]),10033);N=P(I[c+4>>1],J[b+8>>2])<<13|1024;O=P(J[b+72>>2],I[c+36>>1]);Q=N+P(O,5793)|0;b=P(M+Q>>11,10033);c=L+b|0;H[f|0]=K[a+(w+c>>>18&1023)|0];H[f+5|0]=K[a+(c-w>>>18&1023)|0];c=g-(i+j|0)<<13;g=P(G,-11586)+B|0;H[f+1|0]=K[a+(c+g>>>18&1023)|0];H[f+4|0]=K[a+(g-c>>>18&1023)|0];c=h+(i-j<<13)|0;b=L-b|0;H[f+2|0]=K[a+(c+b>>>18&1023)|0];H[f+3|0]=K[a+(b-c>>>18&1023)|0];c=m+P(k,-11586)>>11;f=n+P(o,-11586)>>11;i=P(c+f|0,2998);b=J[d+4>>2]+e|0;g=P(u,-11586)+t>>11;h=i+(g+f<<13)| +0;k=(P(z,1073730238)+y<<2&-8192)+131072|0;j=P(E,-11586)+D>>11;m=k+P(j,5793)|0;o=P(P(O,-11586)+N>>11,10033);n=m+o|0;H[b|0]=K[a+(h+n>>>18&1023)|0];H[b+5|0]=K[a+(n-h>>>18&1023)|0];f=f-(c+g|0)<<13;h=k+P(j,-11586)|0;H[b+1|0]=K[a+(f+h>>>18&1023)|0];H[b+4|0]=K[a+(h-f>>>18&1023)|0];c=i+(c-g<<13)|0;f=m-o|0;H[b+2|0]=K[a+(c+f>>>18&1023)|0];H[b+3|0]=K[a+(f-c>>>18&1023)|0];c=p-l>>11;f=r-q>>11;l=P(c+f|0,2998);b=J[d+8>>2]+e|0;d=v-s>>11;e=l+(d+f<<13)|0;g=(A-x<<2&-8192)+131072|0;i=F-C>>11;h=g+P(i,5793)|0;j=P(Q-M>> +11,10033);k=h+j|0;H[b|0]=K[a+(e+k>>>18&1023)|0];H[b+5|0]=K[a+(k-e>>>18&1023)|0];e=f-(c+d|0)<<13;f=g+P(i,-11586)|0;H[b+1|0]=K[a+(e+f>>>18&1023)|0];H[b+4|0]=K[a+(f-e>>>18&1023)|0];c=l+(c-d<<13)|0;d=h-j|0;H[b+2|0]=K[a+(c+d>>>18&1023)|0];H[b+3|0]=K[a+(d-c>>>18&1023)|0]}function GZ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=tB(a);b=J[a+32>>2];c=J[a+36>>2];a:{if(b>>>0>=c>>>0)break a;while(1){d=K[b|0]-9|0;if(d>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}if(!(K[b| +0]==61&(c-b|0)>0)){uc(Zc(i));return 0}b=b+1|0;J[a+32>>2]=b;b:{if(b>>>0>=c>>>0)break b;while(1){d=K[b|0]-9|0;if(d>>>0>23|!(1<>2]=b;if((b|0)!=(c|0))continue;break}b=c}c:{d:{if(b>>>0>=c>>>0)break d;switch(K[b|0]-34|0){case 0:case 5:break c;default:break d}}uc(Zc(i));return 0}J[a+32>>2]=b+1;j=K[b|0];b=vc(8);J[699344]=0;f=_(3351,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[a+32>>2];e=J[a+36>>2];e:{if(c>>>0>=e>>>0)break e;while(1){f:{g:{h:{d=K[c|0];if((d|0)!=(j|0)){b= +c;if((d|0)==38){d=b+1|0;J[a+32>>2]=d;b=d;if(!(e>>>0<=b>>>0|K[b|0]!=35)){b=c+2|0;J[a+32>>2]=b;d=0;i:{if(b>>>0>=e>>>0)break i;if(K[b|0]==120){b=c+3|0;J[a+32>>2]=b;j:{if(b>>>0>=e>>>0)break j;while(1){k:{c=-48;g=H[b|0];l:{if((g-48&255)>>>0<10)break l;c=-87;if((g-97&255)>>>0<6)break l;c=-55;if((g-65&255)>>>0>5)break k}b=b+1|0;J[a+32>>2]=b;d=g+((d<<4)+c|0)|0;if((b|0)!=(e|0))continue;break j}break}if((g|0)!=59)break j;J[a+32>>2]=b+1}sB(f,d);break f}while(1){c=K[b|0];if((c-48&255)>>>0<=9){b=b+1|0;J[a+32>> +2]=b;d=(c+P(d,10)|0)-48|0;if((b|0)!=(e|0))continue;break i}break}if((c|0)!=59)break i;J[a+32>>2]=b+1}sB(f,d);break f}while(1){g=b;b=b+1|0;J[a+32>>2]=b;if(b>>>0>=e>>>0)break h;h=K[b|0];if(!((h|0)==(j|0)|(h|0)==38)&(h|0)!=59)continue;break}e=b-d|0;if((h|0)!=59)break g;b=g+2|0;J[a+32>>2]=b;break g}while(1){m:{b=b+1|0;J[a+32>>2]=b;if(b>>>0>=e>>>0)break m;d=K[b|0];if((d|0)==(j|0))break m;if((d|0)!=38)continue}break}kf(f,c,b-c|0);break f}J[a+32>>2]=c+1;break e}e=b-d|0}n:{o:switch(e-2|0){case 0:if(!ud(d, +790663,2)){Kd(f,60);break f}if(ud(d,791437,2))break n;Kd(f,62);break f;case 1:if(ud(d,792295,3))break n;Kd(f,38);break f;case 2:break o;default:break n}if(!ud(d,793024,4)){Kd(f,39);break f}if(ud(d,793814,4))break n;Kd(f,34);break f}kf(f,c,(b-d|0)+1|0)}c=J[a+32>>2];e=J[a+36>>2];if(c>>>0>>0)continue;break}}a=vc(16);J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=f;J[a>>2]=i;return a}a=Z()|0;uc(b);ba(a|0);B()}function m2(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;if(!b)return 0;h=J[a+32>>2];if(h)j=J[h+ +80>>2];a:{b:{c:{d:switch(c-1|0){case 0:case 1:case 2:h=J[a+48>>2];if(h)break b;h=0;g=kc[J[663195]](16)|0;if(g){J[g+4>>2]=256;J[g+8>>2]=0;J[g+12>>2]=0;i=kc[J[663195]](6144)|0;J[g>>2]=i;if(!i){kc[J[663199]](g);J[a+48>>2]=0;break c}Ac(i,0,6144);J[g+12>>2]=j;e:{if(!K[2773432]){h=Dc(4);J[693359]=h;if(!h)break e;H[2773432]=1}if(!j)break e;J[j>>2]=J[j>>2]+1}h=g}J[a+48>>2]=h;break c;case 3:case 4:break d;default:break a}h=J[a+60>>2];if(h)break b;h=0;g=kc[J[663195]](16)|0;f:{if(!g)break f;J[g+4>>2]=256;J[g+ +8>>2]=0;J[g+12>>2]=0;i=kc[J[663195]](6144)|0;J[g>>2]=i;if(!i){kc[J[663199]](g);break f}Ac(i,0,6144);J[g+12>>2]=j;g:{if(!K[2773432]){h=Dc(4);J[693359]=h;if(!h)break g;H[2773432]=1}if(!j)break g;J[j>>2]=J[j>>2]+1}h=g}J[a+60>>2]=h}if(!h)break a}m=fc-16|0;fc=m;i=kc[J[663195]](76)|0;h:{if(!i){J[m>>2]=16974;Hc(0,0,0,0,0,2,2,3,16974,0,0,0,32879,m);break h}k=Ac(i,0,72);J[k+72>>2]=0;J[k+4>>2]=17;J[k+48>>2]=c;i:{j:{if(!j){k:{if(!b){c=0;break k}c=b;while(1){g=c;c=g+1|0;if(K[g|0])continue;break}c=0;l=g-b|0;if((l| +0)<0)break k;g=kc[J[663198]](l+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break k}c=xc(g,b,l);H[l+c|0]=0}J[k+8>>2]=c;if(d){c=d;while(1){g=c;c=g+1|0;if(K[g|0])continue;break}c=0;l=g-d|0;l:{if((l|0)<0)break l;g=kc[J[663198]](l+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break l}c=xc(g,d,l);H[l+c|0]=0}J[k+52>>2]=c}if(!e)break i;c=e;while(1){d=c;c=c+1|0;if(K[d|0])continue;break}c=0;g=d-e|0;if((g|0)<0)break j;d=kc[J[663198]](g+1|0)|0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break j}c=xc(d, +e,g);H[g+c|0]=0;break j}n=k,o=te(j,b,-1),J[n+8>>2]=o;if(d)n=k,o=te(j,d,-1),J[n+52>>2]=o;if(!e)break i;c=te(j,e,-1)}J[k+56>>2]=c}m:{if(f){e=0;if(K[f|0]){c=f;while(1){e=e+1|0;d=K[c+1|0];c=c+1|0;if(d)continue;break}}J[k+44>>2]=e;if(!(!j|(e|0)>4)){c=te(j,f,e);break m}c=kc[J[663198]](e+1|0)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break m}n=xc(c,f,e)+e|0,o=0,H[n|0]=o;break m}c=0;J[k+44>>2]=0}J[k+40>>2]=c;J[k+64>>2]=0;J[k+68>>2]=0;J[k+36>>2]=0}fc=m+16|0;if(!i)break a;J[i+32>>2]=J[a+32>>2];if(!sx(h, +b,0,0,i))return i;fL(i)}return 0}function ED(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{d=b;g=J[b>>2];if(g){c=J[b+4>>2];if(!c)break b;while(1){d=c;c=J[c>>2];if(c)continue;break}}g=J[d+4>>2];if(g)break b;f=J[d+8>>2];g=0;e=1;break a}f=J[d+8>>2];J[g+8>>2]=f;e=0}c=J[f>>2];c:{if((d|0)==(c|0)){J[f>>2]=g;if((a|0)==(d|0)){c=0;a=g;break c}c=J[f+4>>2];break c}J[f+4>>2]=g}h=!K[d+12|0];if((b|0)!=(d|0)){f=J[b+8>>2];J[d+8>>2]=f;J[f+((J[f>>2]!=(b|0))<<2)>>2]=d;f=J[b>>2];J[d>>2]=f;J[f+8>>2]=d;f=J[b+4>>2];J[d+4>>2]=f; +if(f)J[f+8>>2]=d;H[d+12|0]=K[b+12|0];a=(a|0)==(b|0)?d:a}if(!(h|!a)){if(e)while(1){b=K[c+12|0];d:{e=J[c+8>>2];if(J[e>>2]!=(c|0)){if(!b){H[c+12|0]=1;H[e+12|0]=0;d=J[e+4>>2];b=J[d>>2];J[e+4>>2]=b;if(b)J[b+8>>2]=e;b=J[e+8>>2];J[d+8>>2]=b;J[b+(((e|0)!=J[b>>2])<<2)>>2]=d;J[d>>2]=e;J[e+8>>2]=d;b=J[c>>2];a=(b|0)==(a|0)?c:a;c=J[b+4>>2]}e:{f:{d=J[c>>2];g:{if(!(K[d+12|0]?0:d)){b=J[c+4>>2];if(K[b+12|0]?0:b)break g;H[c+12|0]=0;c=J[c+8>>2];h:{if((c|0)==(a|0)){c=a;break h}if(K[c+12|0])break d}H[c+12|0]=1;return}b= +J[c+4>>2];if(!b)break f}if(K[b+12|0])break f;d=c;break e}H[d+12|0]=1;H[c+12|0]=0;a=J[d+4>>2];J[c>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[d+8>>2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d+4>>2]=c;J[c+8>>2]=d;b=c}c=J[d+8>>2];H[d+12|0]=K[c+12|0];H[c+12|0]=1;H[b+12|0]=1;b=J[c+4>>2];a=J[b>>2];J[c+4>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[b+8>>2]=a;J[a+(((c|0)!=J[a>>2])<<2)>>2]=b;J[b>>2]=c;J[c+8>>2]=b;return}if(!b){H[c+12|0]=1;H[e+12|0]=0;b=J[c+4>>2];J[e>>2]=b;if(b)J[b+8>>2]=e;b=J[e+8>>2];J[c+8>>2]=b;J[b+(((e|0)!= +J[b>>2])<<2)>>2]=c;J[c+4>>2]=e;J[e+8>>2]=c;a=(a|0)==(e|0)?c:a;c=J[e>>2]}b=J[c>>2];i:{if(!(!b|K[b+12|0])){d=c;break i}d=J[c+4>>2];if(!(K[d+12|0]?0:d)){H[c+12|0]=0;c=J[c+8>>2];if((a|0)!=(c|0)?K[c+12|0]:0)break d;H[c+12|0]=1;return}if(b){if(!K[b+12|0]){d=c;break i}d=J[c+4>>2]}H[d+12|0]=1;H[c+12|0]=0;a=J[d>>2];J[c+4>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[d+8>>2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d>>2]=c;J[c+8>>2]=d;b=c}c=J[d+8>>2];H[d+12|0]=K[c+12|0];H[c+12|0]=1;H[b+12|0]=1;b=J[c>>2];a=J[b+4>>2];J[c>> +2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[b+8>>2]=a;J[a+(((c|0)!=J[a>>2])<<2)>>2]=b;J[b+4>>2]=c;J[c+8>>2]=b;return}b=J[c+8>>2];c=J[((J[b>>2]==(c|0))<<2)+b>>2];continue}H[g+12|0]=1}}function nxa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;J[a+8>>2]=0;J[a>>2]=2423832;J[a+4>>2]=0;J[a+12>>2]=J[685894];J[699344]=0;aa(5149,a+16|0,2423756)|0;f=J[699344];J[699344]=0;if((f|0)==1){b=Z()|0;wc(a+8|0);nd(a);ba(b|0);B()}J[a+24>>2]=0;f=J[685894];H[a+88|0]=0;J[a+68>>2]=1;I[a+64>>1]= +0;J[a+60>>2]=0;I[a+56>>1]=0;J[a+48>>2]=-1;J[a+52>>2]=50;J[a+40>>2]=255;J[a+44>>2]=1;H[a+36|0]=0;J[a+32>>2]=0;J[a+28>>2]=f;J[a+92>>2]=d;H[a+89|0]=e;J[a>>2]=2423916;J[699344]=0;f=a+100|0;J[f+20>>2]=-1;J[f+12>>2]=-1;J[f+16>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;J[f>>2]=2412952;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){J[699344]=0;e=a+124|0;J[e+20>>2]=-1;J[e+12>>2]=-1;J[e+16>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=2412952;d=J[699344];J[699344]=0;c:{if((d|0)!=1){d=J[a+92>>2];J[a+96>>2]=d-K[a+89|0];J[699344]=0;ca(5298, +f|0,0,d-1|0);d=J[699344];J[699344]=0;d:{e:{f:{g:{h:{if((d|0)==1)break h;d=J[a+92>>2];J[699344]=0;ca(5298,e|0,0,d-1|0);d=J[699344];J[699344]=0;if((d|0)==1)break h;if(J[a+92>>2]>0){i=J[a+128>>2];j=J[a+104>>2];d=0;while(1){if(!(J[a+116>>2]<=(d|0)&J[a+120>>2]>=(d|0))){J[699344]=0;c=ja(5178,g+8|0,2404388,2405416,619,2413160,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;break a}h=d<<2;J[j+(d-J[a+108>>2]<<2)>>2]=J[h+b>>2];if(!(J[a+140>> +2]<=(d|0)&J[a+144>>2]>=(d|0))){J[699344]=0;c=ja(5178,g+8|0,2404388,2405416,619,2413160,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;d=Z()|0;Kc(c);break d}J[i+(d-J[a+132>>2]<<2)>>2]=J[c+h>>2];d=d+1|0;if((d|0)>2])continue;break}}J[699344]=0;$(5625,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f}d=Z()|0;break d}d=Z()|0;break d}J[699344]=0;c=_(5626,a|0)|0;b=J[699344];J[699344]=0;i:{j:{if((b|0)!=1){if(!K[c|0])break i;J[699344]= +0;c=ja(5178,g+8|0,c|0,2394837,756,2424279,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;d=Z()|0;Kc(c);break d}d=Z()|0;break d}d=Z()|0;break d}fc=g+32|0;return a|0}d=Z()|0;Kc(c)}Hd(e);break c}d=Z()|0}Hd(f);break b}d=Z()|0}BA(a);ba(d|0);B()}B()}function DTa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=fc-192|0;fc=D;e=a;while(1){a:{o=e;d= +J[(k<<2)+b>>2]+c|0;f=K[d|0];g=K[d+13|0];l=f-g|0;i=K[d+3|0];j=K[d+10|0];y=i-j|0;r=K[d+2|0];s=K[d+11|0];m=r-s|0;t=K[d+1|0];u=K[d+12|0];h=t-u|0;z=m+h|0;v=K[d+5|0];w=K[d+8|0];n=v-w|0;x=K[d+4|0];A=K[d+9|0];q=x-A|0;B=n-q|0;C=K[d+6|0];p=K[d+7|0];d=C-p|0;J[e+28>>2]=l+y-((z+B|0)+d);v=v+w|0;t=t+u|0;u=v+t|0;i=i+j|0;j=x+A|0;r=r+s|0;s=j+r|0;w=C+p|0;g=f+g|0;x=w+g|0;J[e>>2]=((u+(i+s|0)|0)+x|0)-1792;f=i<<1;J[e+16>>2]=((P(s-f|0,-7223)+P(u-f|0,2578)|0)+P(x-f|0,10438)|0)+4096>>13;f=r-j|0;g=g-w|0;i=t-v|0;j=P(g+i|0,9058)+ +4096|0;J[e+24>>2]=(P(f,-11295)+j|0)+P(i,-14084)>>13;J[e+8>>2]=(j+P(f,5027)|0)+P(g,2237)>>13;f=y<<13;g=((P(B,11512)-f|0)+P(z,-1297)|0)+4096|0;p=(g+P(m,-19447)|0)+P(q,9175)|0;m=P(d+q|0,6164)+P(l+m|0,9810)|0;J[e+20>>2]=p+m>>13;p=(g+P(h,-3474)|0)+P(n,-25148)|0;h=P(n-d|0,3826)+P(l+h|0,10935)|0;J[e+12>>2]=p+h>>13;J[e+4>>2]=(m+((d+(f+h|0)|0)+P(d+l|0,-9232)|0)|0)+4096>>13;l=k-7|0;k=k+1|0;e=D;d=7;b:switch(l|0){case 0:continue;case 6:break a;default:break b}e=o+32|0;continue}break}while(1){c=J[e+32>>2];m=J[a+ +128>>2];h=c+m|0;o=J[e+96>>2];k=J[a+64>>2];n=o+k|0;l=h+n|0;q=J[e+64>>2];f=J[a+96>>2];g=q+f|0;b=g<<1;i=J[e>>2];j=J[a+160>>2];y=i+j|0;r=J[e+128>>2];s=J[a+32>>2];t=r+s|0;u=y+t|0;z=J[a+224>>2];v=J[a+192>>2];w=z+v|0;x=J[e+160>>2];A=J[a>>2];B=x+A|0;C=w+B|0;J[a+128>>2]=((P(l-b|0,-4717)+P(u-b|0,1684)|0)+P(C-b|0,6817)|0)- -8192>>14;J[a>>2]=P(C+(u+(g+l|0)|0)|0,5350)- -8192>>14;b=A-x|0;q=f-q|0;o=k-o|0;k=s-r|0;f=o+k|0;l=j-i|0;m=m-c|0;g=l-m|0;c=v-z|0;J[a+224>>2]=P(b+q-((f+g|0)+c)|0,5350)- -8192>>14;h=n-h|0;n=B- +w|0;i=t-y|0;j=P(n+i|0,5915)- -8192|0;J[a+192>>2]=(P(h,-7376)+j|0)+P(i,-9198)>>14;J[a+64>>2]=(j+P(h,3283)|0)+P(n,1461)>>14;h=P(q,5350);n=((P(g,7518)-h|0)+P(f,-847)|0)- -8192|0;p=(n+P(o,-12700)|0)+P(m,5992)|0;o=P(c+m|0,4025)+P(b+o|0,6406)|0;J[a+160>>2]=p+o>>14;p=(n+P(k,-2269)|0)+P(l,-16423)|0;k=P(l-c|0,2499)+P(b+k|0,7141)|0;J[a+96>>2]=p+k>>14;J[a+32>>2]=(o+((h+(k+P(b,-6029)|0)|0)+P(c,-679)|0)|0)- -8192>>14;b=d;d=d-1|0;e=e+4|0;a=a+4|0;if(b)continue;break}fc=D+192|0}function dx(a,b){var c=0,d=0,e=0,f= +0,g=0,h=0,i=0,j=0,k=0;g=J[((b<<2)+a|0)+88>>2];if(!g){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=54;kc[J[J[a>>2]>>2]](a)}e=J[a+384>>2];a:{if((e|0)<0)break a;h=e+1|0;j=h&3;d=J[a+380>>2];c=0;if(e>>>0>=3){h=h&-4;e=0;while(1){i=f;f=c<<2;f=L[(J[d+(f|12)>>2]<<1)+g>>1]>255?1:L[(J[d+(f|8)>>2]<<1)+g>>1]>255?1:L[(J[d+(f|4)>>2]<<1)+g>>1]>255?1:L[(J[f+d>>2]<<1)+g>>1]>255?1:i;c=c+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}if(!j)break a;while(1){f=L[(J[d+(c<<2)>>2]<<1)+g>>1]>255?1:f;c=c+1|0;k=k+1|0;if((k|0)!=(j|0))continue; +break}}if(!J[g+128>>2]){c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=255;d=J[c+4>>2]-1|0;J[c+4>>2]=d;b:{if(d)break b;if(kc[J[c+12>>2]](a)|0)break b;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=219;d=J[c+4>>2]-1|0;J[c+4>>2]=d;c:{if(d)break c;if(kc[J[c+12>>2]](a)|0)break c;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}d=J[a+384>>2];c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;i=e;e=f?(d<<1)+5|0:d+4|0;H[i|0]=e>>>8;d=J[c+4>>2]-1|0;J[c+4>>2]=d;d:{if(d)break d;if(kc[J[c+12>>2]](a)|0)break d; +c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e:{if(d)break e;if(kc[J[c+12>>2]](a)|0)break e;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=(f<<4)+b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;f:{if(b)break f;if(kc[J[c+12>>2]](a)|0)break f;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}c=0;g:{if(J[a+384>>2]<0)break g;if(!f)while(1){b=c;e=K[(J[J[a+380>>2]+(c<<2)>>2]<<1)+g|0];c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;d=J[c+ +4>>2]-1|0;J[c+4>>2]=d;h:{if(d)break h;if(kc[J[c+12>>2]](a)|0)break h;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=b+1|0;if((b|0)>2])continue;break g}while(1){b=c;d=L[(J[J[a+380>>2]+(c<<2)>>2]<<1)+g>>1];c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=d>>>8;e=J[c+4>>2]-1|0;J[c+4>>2]=e;i:{if(e)break i;if(kc[J[c+12>>2]](a)|0)break i;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=J[a+24>>2];e=J[c>>2];J[c>>2]=e+1;H[e|0]=d;d=J[c+4>>2]-1|0;J[c+4>>2]=d;j:{if(d)break j;if(kc[J[c+12>>2]](a)|0)break j;c=J[a>>2];J[c+ +20>>2]=25;kc[J[c>>2]](a)}c=b+1|0;if((b|0)>2])continue;break}}J[g+128>>2]=1}return f}function I4(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=0;J[a+4>>2]=0;H[a+96|0]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+104>>2]=0;J[a+108>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+ +72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;H[a+149|0]=0;H[a+150|0]=0;H[a+151|0]=0;H[a+152|0]=0;H[a+153|0]=0;H[a+154|0]=0;H[a+155|0]=0;H[a+156|0]=0;H[a+1188|0]=1;J[a+1184>>2]=0;J[a+1192>>2]=0;J[a+1196>>2]=0;d=a+1200|0;J[d>>2]=0;J[d+4>>2]=0;J[a+1208>>2]=0;d=a+160|0;while(1){J[(b<<2)+d>>2]=b;c=b|1;J[(c<<2)+d>>2]=c;c=b|2;J[(c<<2)+d>>2]=c;c=b|3;J[(c<<2)+d>>2]= +c;c=b|4;J[(c<<2)+d>>2]=c;c=b|5;J[(c<<2)+d>>2]=c;c=b|6;J[(c<<2)+d>>2]=c;c=b|7;J[(c<<2)+d>>2]=c;b=b+8|0;if((b|0)!=256)continue;break}J[a+1216>>2]=0;J[a+1220>>2]=0;b=a+1224|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1236|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1232>>2]=126;b=a+1244|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1256|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1252>>2]=64;b=a+1264|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1276|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1272>>2]=254;b=a+1284|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1328|0;J[b>>2]=-2147483647;J[b+4>>2]=-2147483647;b=a+1320| +0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;J[a+1292>>2]=256;b=a+1296|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1304|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1312|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1344|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1336|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1368|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1352|0;J[b>>2]=0;J[b+4>>2]=126;b=a+1360|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1388|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1376>>2]=64;b=a+1380|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1408|0;J[b>>2]=0;J[b+4>>2]=0;J[a+1396>>2]=254;b=a+1400|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1452|0; +J[b>>2]=-2147483647;J[b+4>>2]=-2147483647;b=a+1444|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;J[a+1460>>2]=0;J[a+1416>>2]=256;b=a+1436|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1428|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1420|0;J[b>>2]=0;J[b+4>>2]=0;I[a+1468>>1]=0;return a|0}function R4a(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z){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;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;t=t|0;u=u|0;v=v|0;w=w|0;x=x|0;y=y|0;z=z|0;var A=0,C=0,D=0,E=0,F=0;J[a+28>> +2]=0;J[a+32>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+36>>2]=0;J[a+124>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;C=a+28|0;D=a+12|0;a:{b:{c:{d:{if((a|0)==(b|0))break d;if(H[b+11|0]>=0){A=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=A;J[a+8>>2]=J[b+8>>2];break d}A=J[b+4>>2];b=J[b>>2];J[699344]=0;ga(1631,a|0,b|0,A|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c}e:{if((d|0)==(D|0))break e;A=K[d+11|0];b=A<<24>>24;f:{if(H[a+23|0]>=0){if((b|0)<0)break f;b=J[d+4>>2];J[D>>2]=J[d>> +2];J[D+4>>2]=b;J[D+8>>2]=J[d+8>>2];break e}E=J[d>>2];F=J[d+4>>2];J[699344]=0;b=(b|0)<0;ga(1630,D|0,(b?E:d)|0,(b?F:A)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;break e}b=J[d+4>>2];d=J[d>>2];J[699344]=0;ga(1631,D|0,d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c}g:{if((c|0)==(C|0))break g;d=K[c+11|0];b=d<<24>>24;if(H[a+39|0]>=0){if((b|0)>=0){b=J[c+4>>2];J[C>>2]=J[c>>2];J[C+4>>2]=b;J[C+8>>2]=J[c+8>>2];break g}b=J[c+4>>2];c=J[c>>2];J[699344]=0;ga(1631,C|0,c|0,b|0)|0;b=J[699344];J[699344]= +0;if((b|0)!=1)break g;break c}A=J[c>>2];E=J[c+4>>2];J[699344]=0;b=(b|0)<0;ga(1630,C|0,(b?A:c)|0,(b?E:d)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c}J[a+48>>2]=h;J[a+44>>2]=g;J[a+40>>2]=f;J[a+24>>2]=e;if(!i)break b;b=K[i+4|0]|K[i+5|0]<<8|(K[i+6|0]<<16|K[i+7|0]<<24);c=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);H[a+52|0]=c;H[a+53|0]=c>>>8;H[a+54|0]=c>>>16;H[a+55|0]=c>>>24;H[a+56|0]=b;H[a+57|0]=b>>>8;H[a+58|0]=b>>>16;H[a+59|0]=b>>>24;b=K[i+8|0]|K[i+9|0]<<8;H[a+60|0]=b;H[a+61|0]=b>>>8;break a}b= +Z()|0;Ag(a+116|0);if(H[a+39|0]<0)uc(J[C>>2]);if(H[a+23|0]<0)uc(J[D>>2]);if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}J[a+52>>2]=0;J[a+56>>2]=0;I[a+60>>1]=0}I[a+112>>1]=z;I[a+110>>1]=y;I[a+108>>1]=x;I[a+106>>1]=w;I[a+104>>1]=v;I[a+102>>1]=u;I[a+100>>1]=t;J[a+96>>2]=s;I[a+92>>1]=r;I[a+90>>1]=q;I[a+88>>1]=p;J[a+84>>2]=o;J[a+80>>2]=n;J[a+76>>2]=m;J[a+72>>2]=l;J[a+68>>2]=k;J[a+64>>2]=j;return a|0}function Nob(a){a=a|0;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;l=fc-16|0;fc=l;d=3;f=J[a+ +32>>2];a:{if(!f)break a;c=J[f+364>>2];if(!c)break a;b=J[c+588>>2];d=J[c+584>>2];f=J[f+360>>2];b:{if(!(!K[c+556|0]|(f|0)!=J[c+564>>2]|(d|0)!=J[c+568>>2])){if(!d)break b;if(!dd(b,J[c+572>>2],d<<2))break b}d=p8(c+556|0,f,d,b);if(d)break a}d=3;m=cm(a,J[J[a+20>>2]-4>>2]);if(m>>>0>M[a+24>>2])break a;f=J[J[c+560>>2]+8>>2];J[l+12>>2]=0;d=161;g=(J[a+20>>2]-J[a+16>>2]|0)-4>>2;h=P(J[c+576>>2],m);c:{if(g>>>0>>0)break c;d=J[c+604>>2];i=J[c+600>>2];b=P(m,5);d:{if(d>>>0>=i+b>>>0)break d;j=J[c+596>>2];e=f;f=J[c+ +592>>2];e=_c(e,1,d,b+d|0,f,l+12|0);J[c+592>>2]=e;d=J[l+12>>2];if(d)break c;i=J[c+600>>2];J[c+596>>2]=e+i;J[c+604>>2]=b+J[c+604>>2];if(!f|(e|0)==(f|0))break d;d=J[a+16>>2];k=J[a+20>>2];if(d>>>0>=k>>>0)break d;n=e-f|0;while(1){e=J[d>>2];if(!(e>>>0>>0|e>>>0>=j>>>0)){J[d>>2]=e+n;k=J[a+20>>2]}d=d+4|0;if(k>>>0>d>>>0)continue;break}}J[c+600>>2]=b+i;p=g-h|0;f=p+m|0;if(m){d=f;n=0;while(1){o=J[c+580>>2];q=n+p<<2;h=cm(a,J[q+J[a+16>>2]>>2])<<16;k=1;i=J[c+576>>2];if(i>>>0>=2)while(1){e:{f:{b=J[J[a+16>>2]+(d<< +2)>>2];g=K[b|0];if((g|0)!=255){if((g|0)!=30)break f;e=iE(a,b,0,0)>>16;i=J[c+576>>2];break e}e=((K[b+3|0]|(K[b+2|0]<<8|K[b+1|0]<<16))<<8)+32768>>16;break e}j=b+1|0;g:switch(g-28|0){case 0:e=0;if(M[a+8>>2]<=b+2>>>0)break e;e=(K[b+2|0]|K[j|0]<<8)<<16>>16;break e;case 1:e=0;if(M[a+8>>2]<=b+4>>>0)break e;b=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break e;default:break g}if(g>>>0<=246){e=g-139|0;break e}b=J[a+8>>2];if(g>>>0<=250){e=0;if(b>>>0<=j>>>0)break e; +e=(K[j|0]|g<<8)-63124|0;break e}e=0;if(b>>>0<=j>>>0)break e;e=64148-(K[j|0]|g<<8)|0}d=d+1|0;o=o+4|0;h=P(J[o>>2],e)+h|0;k=k+1|0;if(k>>>0>>0)continue;break}b=J[c+596>>2];J[J[a+16>>2]+q>>2]=b;J[c+596>>2]=b+1;H[b|0]=255;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>24;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>16;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h>>>8;b=J[c+596>>2];J[c+596>>2]=b+1;H[b|0]=h;n=n+1|0;if((n|0)!=(m|0))continue;break}d=J[l+12>>2]}else d=0;J[a+20>>2]=J[a+16>>2]+(f<<2)}H[c+557|0]=1}fc=l+16|0; +return d|0}function nqb(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;c=1;a:{b:switch(((b|0)<=0?J[a+604>>2]:b)-3|0){case 0:f=fc-992|0;fc=f;c:{d:{e:{k=J[a+4>>2];if(k){i=J[a+16>>2];g=J[a+20>>2];b=xf(f+16|0,0);J[699344]=0;da(153,b|0,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[699344]=0;c=L[a+26>>1];d=J[699344];J[699344]=0;if((d|0)==1)break d;J[699344]=0;d=J[a+68>>2];h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;na(78,b|0,i|0,g|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)== +1)break d;J[699344]=0;c=J[a+4>>2];d=J[a+44>>2];h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;ca(19,b|0,(c?d?c+40|0:0:0)|0,256);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[699344]=0;c=J[a+964>>2];d=J[699344];J[699344]=0;if((d|0)==1)break d;f:{if(!c)break f;J[699344]=0;_(123,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break f;break d}g:{if((g|0)<=0)break g;d=0;if((i|0)>0)while(1){J[a+328>>2]=(P(d,100)|0)/(g|0);h=(d^-1)+g|0;c=0;while(1){h:{if(J[a+44>>2]){J[699344]=0;e=vp(a,c,d);j=J[699344]; +J[699344]=0;if((j|0)==1)break d;J[699344]=0;jn(b,(c^-1)+i|0,h,e);e=J[699344];J[699344]=0;if((e|0)!=1)break h;break d}J[699344]=0;kn(f+12|0,a,c,d,1);e=J[699344];J[699344]=0;if((e|0)==1)break d;J[699344]=0;J[f+8>>2]=K[f+12|0]|K[f+13|0]<<8|(K[f+14|0]<<16|K[f+15|0]<<24);Qq(b,(c^-1)+i|0,h,f+8|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break d}J[699344]=0;e=J[a+964>>2];j=J[699344];J[699344]=0;if((j|0)==1)break d;if(e){J[699344]=0;e=K[(J[a+964>>2]+P(J[a+16>>2],d)|0)+c|0];j=J[699344];J[699344]=0;if((j|0)== +1)break d;J[699344]=0;yh(b,(c^-1)+i|0,h,e);e=J[699344];J[699344]=0;if((e|0)==1)break d}c=c+1|0;if((i|0)!=(c|0))continue;break}d=d+1|0;if((g|0)!=(d|0))continue;break g}J[a+328>>2]=(P(g,100)-100|0)/(g|0)}J[699344]=0;ga(108,a|0,b|0,1)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d;J[b>>2]=1032;J[699344]=0;_(13,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[699344]=0;_(14,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e}fc=f+992|0;b=(k|0)!=0;break c}ea(0)|0;Bc();B()}a=Z()|0;Jj(b);ba(a|0);B()}break a; +case 3:b=ON(a);break a;case 5:b=sE(a);break a;case 2:c=sE(a);break;default:break b}J[a+604>>2]=1;return c|0}J[a+604>>2]=1;return b|0}function jx(a,b){var c=0,d=0,e=0;a:{if(!a|!b)break a;b:{c:switch(J[b+4>>2]-1|0){case 2:case 3:if(J[a+32>>2])break a;c=J[b+40>>2];b=J[a+8>>2];if(!((b|0)==J[a+24>>2]|b>>>0>2147483646))J[a+24>>2]=b;b=J[a+4>>2];if(!((b|0)==J[a+20>>2]|b>>>0>2147483646))J[a+20>>2]=b;if(!c)break a;if(J[a+12>>2]!=2)break b;break a;case 0:case 10:d=b;d:while(1){e:{f:{g:{c=d;switch(J[c+4>>2]- +3|0){case 2:break f;case 0:case 1:break g;default:break e}}e=J[c+40>>2];if(J[a+32>>2]|!e)break e;d=J[a+8>>2];if(!((d|0)==J[a+24>>2]|d>>>0>2147483646))J[a+24>>2]=d;d=J[a+4>>2];if(!((d|0)==J[a+20>>2]|d>>>0>2147483646))J[a+20>>2]=d;if(J[a+12>>2]==2)break e;Xj(a,e,-1);break e}jx(a,c)}d=J[c+12>>2];if(J[d+4>>2]!=17?d:0)continue;if((b|0)==(c|0))break a;while(1){d=J[c+24>>2];if(d)continue d;c=J[c+20>>2];if(!c)break a;if((b|0)!=(c|0))continue;break}break}break a;case 1:c=J[b+12>>2];if(!c)break a;while(1){h:{if(J[c+ +4>>2]==3){if(J[a+32>>2])break h;b=J[c+40>>2];d=J[a+8>>2];if(!((d|0)==J[a+24>>2]|d>>>0>2147483646))J[a+24>>2]=d;d=J[a+4>>2];if(!((d|0)==J[a+20>>2]|d>>>0>2147483646))J[a+20>>2]=d;if(!b|J[a+12>>2]==2)break h;Xj(a,b,-1);break h}jx(a,c)}c=J[c+24>>2];if(c)continue;break}break a;case 6:case 7:if(J[a+32>>2])break a;c=J[b+40>>2];b=J[a+8>>2];if(!((b|0)==J[a+24>>2]|b>>>0>2147483646))J[a+24>>2]=b;b=J[a+4>>2];if(!((b|0)==J[a+20>>2]|b>>>0>2147483646))J[a+20>>2]=b;if(!c)break a;if(J[a+12>>2]!=2)break b;break a; +case 4:d=J[b+8>>2];i:{c=J[b+32>>2];j:{if(!c)break j;b=J[c+44>>2];k:{if(!b)break k;b=J[b+48>>2];if(!b)break k;b=Bf(b,d,0,0);if(b)break i}if(J[c+40>>2]==1)break j;b=J[c+48>>2];if(!b)break j;b=J[b+48>>2];if(!b)break j;b=Bf(b,d,0,0);if(b)break i}b=fj(d);if(b)break i;return}c=J[b+12>>2];if(!c)break a;while(1){jx(a,c);c=J[c+24>>2];if(c)continue;break}break a;case 8:case 12:c=J[b+12>>2];if(!c)break a;while(1){b=J[c+4>>2];if(!(b>>>0>4|!(1<>2];if(c)continue;break}break a;case 17:break c; +default:break a}if(J[a+32>>2])break a;c=J[b+8>>2];b=J[a+8>>2];if(!((b|0)==J[a+24>>2]|b>>>0>2147483646))J[a+24>>2]=b;b=J[a+4>>2];if(!((b|0)==J[a+20>>2]|b>>>0>2147483646))J[a+20>>2]=b;if(!c|J[a+12>>2]==2)break a}Xj(a,c,-1)}}function PT(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(b<.016939999535679817)break a;f=b+-.016939999535679817;if(c){d=vEb(J[698644],J[698645],1284865837,1481765933);e=jc;d=d+1|0;e=d?e:e+1|0;J[698644]=d;J[698645]=e;f=f*285.7142768952314+ +(e>>>1|0)*4.656612875245797E-10+ +-.5}else f=f*285.7142768952314;b:{if(R(f)<2147483648){e=~~f;break b}e=-2147483648}if((e|0)>=163)break a;f=+N[(e<<3)+92432>>2];if(f>a)break a;f=a-f;if(c){d=vEb(J[698644],J[698645],1284865837,1481765933);c=jc;d=d+1|0;c=d?c:c+1|0;J[698644]=d;J[698645]=c;f=f*285.7142768952314+ +(c>>>1|0)*4.656612875245797E-10+-.5}else f=f*285.7142768952314;if(R(f)<2147483648)c=~~f;else c=-2147483648;if((c|0)>=I[(e<<3)+92436>>1])break a;return c+I[(e<<3)+92438>>1]|0}h=fc-800|0;fc=h;if(!K[2744656]){c=100;while(1){e=(c<< +3)+h|0;d=e-16|0;J[d>>2]=0;J[d+4>>2]=1073741824;d=e-8|0;J[d>>2]=0;J[d+4>>2]=1073741824;d=e-24|0;J[d>>2]=0;J[d+4>>2]=1073741824;e=e-32|0;J[e>>2]=0;J[e+4>>2]=1073741824;c=c-5|0;e=(c<<3)+h|0;J[e>>2]=0;J[e+4>>2]=1073741824;if(c)continue;break}c=162;while(1){e=c;d=c<<3;c=I[d+92436>>1]-1|0;i=(e|0)==162?1:e?c:1;g=d+92438|0;k=(+(e|0)+.5)*.0035000001080334187+.016939999535679817+-.473684211;l=+N[d+92432>>2];while(1){f=qf(k,(+(c|0)+.5)*.0035000001080334187+l+-.210526316)*15.915494277358546+50;c:{if(R(f)<2147483648){d= +~~f;break c}d=-2147483648}j=(d<<3)+h|0;f=R(f-(+(d|0)+.5));if(O[j>>3]>f){J[(d<<2)+2744256>>2]=I[g>>1]+c;O[j>>3]=f}c=c-i|0;if((c|0)>=0)continue;break}c=e-1|0;if(e)continue;break}e=100;g=99;while(1){c=1;d=g;if(O[(d<<3)+h>>3]>1.5){while(1){d:{if(O[((c+d>>>0)%100<<3)+h>>3]<1.5){i=c;break d}i=50;g=c+1|0;if((g|0)==50)break d;i=g;if(O[((g+d>>>0)%100<<3)+h>>3]<1.5)break d;c=c+2|0;continue}break}j=e+99|0;c=1;g=-1;while(1){e:{if(O[((g+j>>>0)%100<<3)+h>>3]<1.5){e=c;break e}e=c+1|0;if((e|0)==50){g=-50;e=50;break e}g= +c^-1;if(O[((j+g>>>0)%100<<3)+h>>3]<1.5)break e;g=-2-c|0;c=c+2|0;continue}break}J[(d<<2)+2744256>>2]=J[(((e>>>0>i>>>0?d+i|0:g+j|0)|0)%100<<2)+2744256>>2]}g=d-1|0;e=d;if(d)continue;break}H[2744656]=1}a=qf(b+-.473684211,a+-.210526316)*15.915494277358546+50;f:{if(R(a)<2147483648){c=~~a;break f}c=-2147483648}fc=h+800|0;return J[(c<<2)+2744256>>2]}function ug(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=fc-112|0;fc=g;if(!J[693362])hL();a:{if(!a|!K[a|0])break a;h=J[693360];b=0;b:{if(!h)break b;while(1){c:{b= +H[a+e|0];b=b-97>>>0<26?b&95:b;H[e+g|0]=b;if(!(b&255)){b=e;break c}b=99;e=e+1|0;if((e|0)!=99)continue}break}H[b+g|0]=0;e=0;d=J[693361];b=0;if((d|0)<=0)break b;while(1){b=h+(e<<3)|0;if(!Ic(J[b+4>>2],g)){b=J[b>>2];break b}e=e+1|0;if((d|0)!=(e|0))continue;break}b=0}i=b?b:a;while(1){d:{e=H[f+i|0];e=e-97>>>0<26?e&95:e;H[f+g|0]=e;if(!(e&255)){e=f;break d}e=99;f=f+1|0;if((f|0)!=99)continue}break}f=0;H[e+g|0]=0;d=J[693362];e:{if(!d)break e;b=J[693365];if((b|0)<=0)break e;while(1){e=J[d+(f<<2)>>2];if(!Ic(g, +J[e>>2]))break a;f=f+1|0;if((b|0)!=(f|0))continue;break}}e=0;b=0;f=0;c=fc-512|0;fc=c;f:{if(!a)break f;j=J[693360];d=0;g:{if(!j)break g;while(1){h:{d=H[a+f|0];d=d-97>>>0<26?d&95:d;H[c+f|0]=d;if(!(d&255)){d=f;break h}d=99;f=f+1|0;if((f|0)!=99)continue}break}H[c+d|0]=0;f=0;h=J[693361];d=0;if((h|0)<=0)break g;while(1){d=(f<<3)+j|0;if(!Ic(J[d+4>>2],c)){d=J[d>>2];break g}f=f+1|0;if((h|0)!=(f|0))continue;break}d=0}d=d?d:a;while(1){i:{a=H[b+d|0];a=a-97>>>0<26?a&95:a;H[b+c|0]=a;if(!(a&255)){f=b;break i}f= +499;b=b+1|0;if((b|0)!=499)continue}break}b=0;H[c+f|0]=0;if(!K[c|0])break f;b=1;if(!dd(c,22406,6))break f;if(!dd(c,22339,5))break f;b=2;if(!dd(c,22641,7))break f;if(!dd(c,22635,6))break f;b=9;if(!dd(c,24758,16))break f;if(!dd(c,24768,6))break f;if(!dd(c,24674,5))break f;b=4;if(!dd(c,22861,16))break f;if(!dd(c,22871,6))break f;if(!dd(c,22760,5))break f;b=10;if(!dd(c,28329,11))break f;if(!dd(c,28317,12))break f;if(!dd(c,28340,12))break f;b=11;if(!dd(c,24786,11))break f;if(!dd(c,24774,12))break f;if(!dd(c, +24833,12))break f;if(!dd(c,24412,11)){b=12;break f}if(!dd(c,22877,11)){b=13;break f}if(!dd(c,22742,11)){b=14;break f}if(!dd(c,22648,11)){b=15;break f}if(!dd(c,22552,11)){b=16;break f}if(!dd(c,22412,11)){b=17;break f}if(!dd(c,22323,11)){b=18;break f}if(!dd(c,20932,12)){b=19;break f}if(!dd(c,20789,10)){b=20;break f}b=dd(c,20925,7)?-1:21}fc=c+512|0;a=b-1|0;if(a>>>0>20)break a;a=J[(a<<2)+775280>>2];if(!Ic(i,a))break a;e=ug(a)}fc=g+112|0;return e}function Umb(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;J[a+64>>2]=0;J[a+1140>>2]=b;j=a+1140|0;J[a+1344>>2]=j;k=a+112|0;J[a+1136>>2]=k;e=b+c|0;J[a+1148>>2]=e;J[a+1144>>2]=b;l=160;a:{if((c|0)<=0)break a;f=j;while(1){d=b+1|0;i=J[a+1136>>2];c=22;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{g=K[b|0];switch(g-1|0){case 0:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 13:case 14:case 20:case 21:case 29:case 30:break a;case 11:break j;case 12:break k;case 9:break f;case 10:break g;case 1:case 15:case 16:case 17:case 18:case 19:case 22:case 23:case 24:case 25:case 26:case 27:case 28:break h; +default:break i}}c=2;break f}if(d>>>0>=e>>>0)break a;d=b+2|0;g=20;c=4;switch(K[b+1|0]-7|0){case 5:break e;case 0:break f;default:break a}}if((g|0)==255)break d}if(g>>>0<32)break a;l:{if(g>>>0<=246){b=g-139|0;break l}c=b+2|0;if(c>>>0>e>>>0)break a;b=g<<8;d=K[d|0];b=g>>>0<=250?(b+d|0)-63124|0:64148-(b|d)|0;d=c}b=h?b:b<<16;c=(h|0)!=0;break c}c=24}g=c;if(h)break a}b=J[(g<<2)+261936>>2];if((b|0)>i-k>>2)return 161;c=i-(b<<2)|0;m:{n:{o:{p:switch(g-2>>>1|0){case 1:J[a+64>>2]=1;J[a+32>>2]=J[c>>2]+J[a+32>> +2];J[a+36>>2]=J[c+4>>2]+J[a+36>>2];J[a+40>>2]=J[c+8>>2];b=J[c+12>>2];break m;case 9:m=c,n=Cd(J[c>>2],J[c+4>>2]),J[m>>2]=n;c=c+4|0;h=0;b=d;break b;case 10:b=I[c+2>>1];e=J[a+1376>>2];if(e){b=Pi(b,e);if(!b)break a;b=J[b>>2]}if((b|0)<0|J[a+1364>>2]<=(b|0)|(f-j|0)>180)break a;J[f>>2]=d;d=b<<2;e=d+J[a+1368>>2]|0;b=J[e>>2];J[f+16>>2]=b;g=J[a+1372>>2];q:{if(g){e=J[d+g>>2]+b|0;break q}d=b;b=J[a+1360>>2];b=d+((b|0)>0?b:0)|0;J[f+16>>2]=b;e=J[e+4>>2]}J[f+12>>2]=b;J[f+20>>2]=e;if(!b)break a;f=f+12|0;break o;case 0:break n; +case 11:break p;default:break a}if(f>>>0<=j>>>0)break a;f=f-12|0;b=J[f>>2];e=J[f+8>>2]}J[a+1344>>2]=f;break b}J[a+64>>2]=1;J[a+32>>2]=J[c>>2]+J[a+32>>2];J[a+40>>2]=J[c+4>>2];b=0}J[a+44>>2]=b;l=0;break a}d=b+5|0;if(e>>>0>>0)break a;b=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(b-32001>>>0<=4294903294){c=1;if(!h)break c;break a}b=h?b:b<<16;c=(h|0)!=0}h=c;if((i-k|0)>1020)break a;J[i>>2]=b;c=i+4|0;b=d}J[a+1136>>2]=c;if(b>>>0>>0)continue;break}}return l| +0}function cqb(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;i=fc-80|0;fc=i;e=ly(b,c);a:{if(e)break a;g=J[b+2740>>2];if(!(g&1)){e=N8(b,J[d+52>>2],d+56|0,0);if(e)break a;g=J[b+2740>>2]}b:{if(g&2)break b;e=N8(b,J[d+9856>>2],d+9860|0,1);if(e)break a;if(K[(J[J[d+36>>2]+8>>2]+(a<<1)|0)+1|0]&64)break b;a=J[b+1404>>2];if((a|0)<=0)break b;e=J[b+1412>>2];p=e+P(a,44)|0;n=J[d+9848>>2];q=d+10068|0;while(1){a=Wc(M[d+40>>2]/40|0,n);c:{if(!J[d+10064>>2])break c; +g=(a|0)>=32?32:a;a=0;h=0;m=0;while(1){j=P(a,36)+q|0;f=J[j+32>>2];d:{if(!(f&1))break d;o=f>>>3&1;l=(f&6)!=0;if(!(o|l^J[b+1416>>2]==H[e+13|0]))break d;k=I[e>>1]-J[j>>2]|0;f=k>>31;k=Wc((f^k)-f|0,n);f=(k|0)<(g|0);g=f?k:g;h=f?j:h;m=f?o:m;if(!(H[e+12|0]&1)|(!k|o))break d;f=I[e>>1];if(((f|0)>2]|0)==(l|0))break d;l=f-J[j+12>>2]|0;f=l>>31;f=Wc((f^l)-f|0,n);if((f|0)>=(g|0))break d;h=j+12|0;m=0;g=f}a=a+1|0;if(a>>>0>2])continue;break}if(!h)break c;J[e+20>>2]=h;if(!(m&255))break c;H[e+12|0]=K[e+ +12|0]|8}e=e+44|0;if(p>>>0>e>>>0)continue;break}}a=J[b+2740>>2];e:{if(!(J[d+24>>2]|a&8)){Q8(i+20|0,b,i+16|0,i+12|0);d=J[b+24>>2];if((d|0)<=0)break e;a=J[b+28>>2];d=a+P(d,40)|0;g=J[i+12>>2];f=J[i+16>>2];while(1){r=a,s=Wc(I[a+12>>1],f)+g|0,J[r+16>>2]=s;a=a+40|0;if(d>>>0>a>>>0)continue;break}break e}if(a&1)break e;M8(b,0);a=J[b+44>>2];if((a|0)>0){e=J[b+52>>2];d=e+P(a,44)|0;while(1){a=J[e+12>>2];if(a){g=e+36|0;f=J[a+8>>2];h=J[e+40>>2];while(1){a=J[g>>2];J[a+16>>2]=f;I[a>>1]=L[a>>1]|4;g=a+32|0;if((a|0)!= +(h|0))continue;break}}e=e+44|0;if(d>>>0>e>>>0)continue;break}}MN(b,0);LN(b,0)}if(!(K[b+2740|0]&2)){M8(b,1);a=J[b+1392>>2];if((a|0)>0){e=J[b+1400>>2];d=e+P(a,44)|0;while(1){a=J[e+12>>2];if(a){g=e+36|0;f=J[a+8>>2];h=J[e+40>>2];while(1){a=J[g>>2];J[a+20>>2]=f;I[a>>1]=L[a>>1]|8;g=a+32|0;if((a|0)!=(h|0))continue;break}}e=e+44|0;if(d>>>0>e>>>0)continue;break}}MN(b,1);LN(b,1)}d=J[b+24>>2];if((d|0)<=0){e=0;break a}a=J[b+28>>2];d=a+P(d,40)|0;g=J[c+4>>2];b=J[c+8>>2];while(1){J[g>>2]=J[a+16>>2];J[g+4>>2]=J[a+ +20>>2];e=0;c=L[a>>1];H[b|0]=c&1?0:c&2?2:1;b=b+1|0;g=g+8|0;a=a+40|0;if(d>>>0>a>>>0)continue;break}}fc=i+80|0;return e|0}function odb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=wk(a+44|0);J[699344]=0;d=_(2256,a+48|0)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((c|0)!=1){J[699344]=0;e=_(2256,a+52|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;f=_(2256,a+56|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[699344]=0;I4(a+96|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[a+1584>>2]=0;J[a+1588>> +2]=0;J[a+1672>>2]=0;J[a+1676>>2]=2147483632;c=a+1640|0;J[c>>2]=0;J[c+4>>2]=1;c=a+1632|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1624|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1616|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1592|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1600|0;J[c>>2]=0;J[c+4>>2]=0;c=a+1605|0;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;c=0;H[a+1668|0]=0;b=a+1656|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1648|0;J[b>>2]=1;J[b+4>>2]=0;Ac(a+1684|0,0,68);H[a+1800|0]=0;b=a+1792|0;J[b>>2]=-2147483647;J[b+4>>2]=-2147483647; +b=a+1784|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;b=a+1776|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1768|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;b=a+1804|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1760|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1752|0;J[b>>2]=2147483647;J[b+4>>2]=2147483647;b=a+1812|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1820|0;J[b>>2]=0;J[b+4>>2]=0;b=a+1825|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;J[a+2876>>2]=0;b=a+2868|0;J[b>>2]=0;J[b+4>>2]=0;H[a+2864|0]=1;J[a+2860>>2]=0;b=a+1836| +0;while(1){J[(c<<2)+b>>2]=c;d=c|1;J[(d<<2)+b>>2]=d;d=c|2;J[(d<<2)+b>>2]=d;d=c|3;J[(d<<2)+b>>2]=d;d=c|4;J[(d<<2)+b>>2]=d;d=c|5;J[(d<<2)+b>>2]=d;d=c|6;J[(d<<2)+b>>2]=d;d=c|7;J[(d<<2)+b>>2]=d;c=c+8|0;if((c|0)!=256)continue;break}J[a+2928>>2]=0;J[a+2932>>2]=0;J[a+2892>>2]=0;J[a>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+2904>>2]=0;J[a+2908>>2]=1072693248;H[a+2896|0]=0;J[a+40>>2]=2;J[a+32>>2]=0;J[a+36>>2]=1079115776;J[a+24>>2]=0;J[a+28>>2]=1079115776;J[a+2920>>2]=0;J[a+2924>>2]=-1074790400;I[a+2912>>1]=1;H[a+ +2948|0]=0;J[a+2940>>2]=0;J[a+2944>>2]=3;J[a+1576>>2]=0;J[a+1580>>2]=0;J[a+2936>>2]=0;c=a+2884|0;J[c>>2]=0;J[c+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;return a|0}c=Z()|0;break a}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;Jd(f)}Jd(e)}Jd(d)}Jd(b);ba(c|0);B()}function W4(a){var b=0,c=0,d=0,e=0,f=0;e=J[a+108>>2];if(e){b=e;d=J[a+112>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;b=J[d+4>>2];a:{if(!b)break a;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((e|0)!=(d|0))continue;break}b=J[a+108>>2]}J[a+ +112>>2]=e;uc(b)}e=J[a+96>>2];if(e){b=e;d=J[a+100>>2];if((b|0)!=(d|0)){while(1){b=d;d=b-144|0;c=J[d+140>>2];b:{if(!c)break b;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break b;kc[J[J[c>>2]+8>>2]](c);Gc(c)}b=J[b-76>>2];c:{if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((e|0)!=(d|0))continue;break}b=J[a+96>>2]}J[a+100>>2]=e;uc(b)}e=J[a+84>>2];if(e){b=e;d=J[a+88>>2];if((b|0)!=(d|0)){while(1){b=d;d=b-144|0;c=J[d+140>>2];d:{if(!c)break d;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break d;kc[J[J[c>> +2]+8>>2]](c);Gc(c)}b=J[b-76>>2];e:{if(!b)break e;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break e;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((e|0)!=(d|0))continue;break}b=J[a+84>>2]}J[a+88>>2]=e;uc(b)}e=J[a+72>>2];if(e){b=e;d=J[a+76>>2];if((b|0)!=(d|0)){while(1){b=d;d=b-144|0;c=J[d+140>>2];f:{if(!c)break f;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break f;kc[J[J[c>>2]+8>>2]](c);Gc(c)}b=J[b-76>>2];g:{if(!b)break g;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break g;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((e|0)!=(d|0))continue;break}b=J[a+72>>2]}J[a+ +76>>2]=e;uc(b)}e=J[a+60>>2];if(e){b=e;d=J[a- -64>>2];if((b|0)!=(d|0)){while(1){b=d;d=b-144|0;c=J[d+140>>2];h:{if(!c)break h;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break h;kc[J[J[c>>2]+8>>2]](c);Gc(c)}b=J[b-76>>2];i:{if(!b)break i;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break i;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((e|0)!=(d|0))continue;break}b=J[a+60>>2]}J[a+64>>2]=e;uc(b)}e=J[a+48>>2];if(e){b=e;d=J[a+52>>2];if((b|0)!=(d|0)){while(1){d=d-72|0;b=J[d+68>>2];j:{if(!b)break j;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break j;kc[J[J[b>> +2]+8>>2]](b);Gc(b)}if((e|0)!=(d|0))continue;break}b=J[a+48>>2]}J[a+52>>2]=e;uc(b)}e=J[a+36>>2];if(e){b=e;d=J[a+40>>2];if((b|0)!=(d|0)){while(1){d=d-72|0;b=J[d+68>>2];k:{if(!b)break k;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break k;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((e|0)!=(d|0))continue;break}b=J[a+36>>2]}J[a+40>>2]=e;uc(b)}ij(a+28|0);ij(a+20|0);ij(a+12|0)}function RM(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;j=fc-16|0;fc=j;J[j+12>>2]=0;o=J[a+100>>2];k=J[a+736>>2];a:{b:{if(!k){e= +Qu(a,0);J[j+12>>2]=e;if(e)break b;k=J[a+736>>2]}l=J[k+12>>2];e=J[l>>2];d=J[k+4>>2];if(!d){d=_c(o,4,0,e,0,j+12|0);J[k+4>>2]=d;if(J[j+12>>2])break b}e=b>>>0>e>>>0?e:b;c:{if(!e)break c;if(e>>>0>=4){i=e&-4;b=0;while(1){h=J[c>>2];if((h|0)!=J[d>>2]){J[d>>2]=h;f=1}h=J[c+4>>2];if((h|0)!=J[d+4>>2]){J[d+4>>2]=h;f=1}h=J[c+8>>2];if((h|0)!=J[d+8>>2]){J[d+8>>2]=h;f=1}h=J[c+12>>2];if((h|0)!=J[d+12>>2]){J[d+12>>2]=h;f=1}d=d+16|0;c=c+16|0;b=b+4|0;if((i|0)!=(b|0))continue;break}}b=e&3;if(!b)break c;while(1){i=J[c>> +2];if((i|0)!=J[d>>2]){J[d>>2]=i;f=1}d=d+4|0;c=c+4|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}i=J[l>>2];b=J[a+4>>2];d:{if(b&2147418112){if(e>>>0>=i>>>0)break d;c=J[(J[l+16>>2]+P(b>>>16|0,12)|0)-12>>2]+(e<<2)|0;h=i+(e^-1)|0;m=i-e&3;e:{if(!m){g=e;break e}b=0;g=e;while(1){n=J[c>>2];if((n|0)!=J[d>>2]){J[d>>2]=n;f=1}d=d+4|0;c=c+4|0;g=g+1|0;b=b+1|0;if((m|0)!=(b|0))continue;break}}if(h>>>0<3)break d;while(1){b=J[c>>2];if((b|0)!=J[d>>2]){J[d>>2]=b;f=1}b=J[c+4>>2];if((b|0)!=J[d+4>>2]){J[d+4>>2]=b;f=1}b=J[c+ +8>>2];if((b|0)!=J[d+8>>2]){J[d+8>>2]=b;f=1}b=J[c+12>>2];if((b|0)!=J[d+12>>2]){J[d+12>>2]=b;f=1}d=d+16|0;c=c+16|0;g=g+4|0;if((i|0)!=(g|0))continue;break}break d}if(e>>>0>=i>>>0)break d;h=i+(e^-1)|0;c=J[l+12>>2]+P(e,24)|0;m=i-e&3;f:{if(!m){g=e;break f}b=0;g=e;while(1){n=J[c+8>>2];if((n|0)!=J[d>>2]){J[d>>2]=n;f=1}d=d+4|0;c=c+24|0;g=g+1|0;b=b+1|0;if((m|0)!=(b|0))continue;break}}if(h>>>0<3)break d;while(1){b=J[c+8>>2];if((b|0)!=J[d>>2]){J[d>>2]=b;f=1}b=J[c+32>>2];if((b|0)!=J[d+4>>2]){J[d+4>>2]=b;f=1}b= +J[c+56>>2];if((b|0)!=J[d+8>>2]){J[d+8>>2]=b;f=1}b=J[c+80>>2];if((b|0)!=J[d+12>>2]){J[d+12>>2]=b;f=1}d=d+16|0;c=c+96|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}if(J[k+8>>2]){b=-1;if(!(f&255))break a}f=_c(o,4,0,i,0,j+12|0);if(J[j+12>>2])break b;b=J[a+736>>2];if(!K[b+24|0]){n6(a);b=J[a+736>>2]}m6(b,e,J[k+4>>2],f);b=MD(a,J[l>>2],f,0);J[j+12>>2]=b;if(b)break b;J[a+8>>2]=J[a+8>>2]&-32769|((e|0)!=0)<<15}if(f)kc[J[o+8>>2]](o,f);b=J[j+12>>2]}fc=j+16|0;return b|0}function AVa(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;if(J[a+76>>2]>0){u=J[a+284>>2]-1|0;q=J[a+400>>2];h=J[a+84>>2];while(1){f=s<<2;d=J[h+12>>2];n=kc[J[J[a+4>>2]+32>>2]](a,J[(f+q|0)- -64>>2],P(d,J[q+8>>2]),d,1)|0;if(M[q+8>>2]>>0)d=J[h+12>>2];else{d=J[h+12>>2];c=M[h+32>>2]%(d>>>0)|0;d=c?c:d}j=J[h+28>>2];k=J[h+8>>2];c=(j>>>0)%(k>>>0)|0;l=(c|0)>0?k-c|0:c;a:{if((d|0)<=0)break a;m=J[(f+J[a+416>>2]|0)+4>>2];p=b+f|0;if((l|0)<=0){c=0;if((d|0)!=1){g=d&-2;f=0;while(1){kc[m|0](a,h,J[p>> +2],J[(c<<2)+n>>2],P(J[h+40>>2],c),0,j);i=c|1;kc[m|0](a,h,J[p>>2],J[(i<<2)+n>>2],P(i,J[h+40>>2]),0,j);c=c+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(d&1))break a;kc[m|0](a,h,J[p>>2],J[(c<<2)+n>>2],P(J[h+40>>2],c),0,j);break a}t=l<<7;v=l&-8;r=l&7;w=l>>>0<8;i=0;while(1){c=J[(i<<2)+n>>2];kc[m|0](a,h,J[p>>2],c,P(J[h+40>>2],i),0,j);c=c+(j<<7)|0;Re(c,t);g=L[c-128>>1];f=0;o=0;if(!w)while(1){e=f<<7;I[e+c>>1]=g;I[(e|128)+c>>1]=g;I[(e|256)+c>>1]=g;I[(e|384)+c>>1]=g;I[(e|512)+c>>1]=g;I[(e|640)+c>>1]=g; +I[(e|768)+c>>1]=g;I[(e|896)+c>>1]=g;f=f+8|0;o=o+8|0;if((v|0)!=(o|0))continue;break}e=0;if(r)while(1){I[(f<<7)+c>>1]=g;f=f+1|0;e=e+1|0;if((r|0)!=(e|0))continue;break}i=i+1|0;if((i|0)!=(d|0))continue;break}}b:{if(J[q+8>>2]!=(u|0))break b;c=j+l|0;if(J[h+12>>2]<=(d|0))break b;p=(c>>>0)/(k>>>0)|0;j=c<<7;if(c>>>0>=k>>>0){if((k|0)>0){r=k&-8;l=k&7;t=k-1<<7;while(1){c=(d<<2)+n|0;i=J[c-4>>2];c=J[c>>2];Re(c,j);m=0;while(1){g=L[i+t>>1];f=0;o=0;if(k>>>0>=8)while(1){e=f<<7;I[e+c>>1]=g;I[(e|128)+c>>1]=g;I[(e|256)+ +c>>1]=g;I[(e|384)+c>>1]=g;I[(e|512)+c>>1]=g;I[(e|640)+c>>1]=g;I[(e|768)+c>>1]=g;I[(e|896)+c>>1]=g;f=f+8|0;o=o+8|0;if((r|0)!=(o|0))continue;break}e=0;if(l)while(1){I[(f<<7)+c>>1]=g;f=f+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}f=k<<7;i=f+i|0;c=c+f|0;m=m+1|0;if(p>>>0>m>>>0)continue;break}d=d+1|0;if((d|0)>2])continue;break}break b}while(1){Re(J[(d<<2)+n>>2],j);d=d+1|0;if((d|0)>2])continue;break}break b}while(1){Re(J[(d<<2)+n>>2],j);d=d+1|0;if((d|0)>2])continue;break}}h=h+88| +0;s=s+1|0;if((s|0)>2])continue;break}}return g0(a,c)|0}function Hva(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;i=fc-32|0;fc=i;s=J[a+52>>2];n=J[a+12>>2];j=J[a>>2];e=Dm(j);f=P(n?4:3,e);m=Dc(f);a:{if(!m){Uc(J[j+628>>2],J[j>>2],81440,0);break a}Sg(m,0,f);J[i+16>>2]=i+28;ne(j,322,i+16|0);J[i>>2]=i+24;ne(j,323,i);f=0;b:{c:{d:{e:{f:{g:{h:switch(L[a+28>>1]-1|0){case 0:case 4:g=L[a+30>>1];if(g>>>0>8)break d;h= +1<>1];if(g>>>0>8)break d;h=1<>1];if(g>>>0>8)break d;g=1<>1];if(f>>>0>7)break d;g=1<>2]+ +c|0)|0;g=d-1|0;break b}f=0}r=c-J[i+28>>2]|0;y=1;g=0}t=1;i:{if(!d)break i;if(c){p=e+m|0;q=e+p|0;u=e+q|0;v=n?u:0;h=0;while(1){e=J[i+24>>2];e=e-((J[a+76>>2]+h>>>0)%(e>>>0)|0)|0;o=e+h>>>0>d>>>0?d-h|0:e;w=(P(c,g)<<2)+b|0;e=0;while(1){j:{k:{l:{if(z=(mt(j,m,J[a+80>>2]+e|0,J[a+76>>2]+h|0,0)|0)<0,A=0,B=J[a+4>>2],B?z:A)break l;if(z=(mt(j,p,J[a+80>>2]+e|0,J[a+76>>2]+h|0,1)|0)<0,A=0,B=J[a+4>>2],B?z:A)break l;if(z=(mt(j,q,J[a+80>>2]+e|0,J[a+76>>2]+h|0,2)|0)<0,A=0,B=J[a+4>>2],B?z:A)break l;if(!n)break k;if((mt(j, +u,J[a+80>>2]+e|0,J[a+76>>2]+h|0,3)|0)>=0|!J[a+4>>2])break k}t=0;break j}k=J[a+76>>2];l=J[i+24>>2];k=P(Cn(j),(h+k>>>0)%(l>>>0)|0);l=J[i+28>>2];m:{if(l+e>>>0<=c>>>0){kc[s|0](a,(e<<2)+w|0,e,g,l,o,0,r,k+m|0,k+p|0,k+q|0,n?k+v|0:0);break m}x=c-e|0;l=l-x|0;kc[s|0](a,(e<<2)+w|0,e,g,x,o,l,l+r|0,k+m|0,k+p|0,k+q|0,n?k+v|0:0)}e=J[i+28>>2]+e|0;if(e>>>0>>0)continue}break}g=(y?o:0-o|0)+g|0;h=h+o|0;if(h>>>0>>0)continue;break}}if(f>>>0<2)break i;f=0;while(1){a=(P(c,f)<<2)+b|0;e=(a+(c<<2)|0)-4|0;if(a>>>0>> +0)while(1){g=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=g;a=a+4|0;e=e-4|0;if(a>>>0>>0)continue;break}f=f+1|0;if((f|0)!=(d|0))continue;break}}uc(m)}fc=i+32|0;return t|0}function UI(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:switch(b-1|0){case 1:b=J[a+212>>2];g=J[b+8>>2];if((g|0)>0){d=O[a+120>>3];f=O[a+112>>3];h=J[b>>2];b=0;while(1){c=J[h+(b<<2)>>2];e=O[c+16>>3];O[c+16>>3]=f-O[c>>3];O[c>>3]=f-e;e=O[c+24>>3];O[c+24>>3]=d-O[c+8>>3];O[c+8>>3]=d-e;b=b+1|0;if((g|0)!=(b|0))continue;break}}b=J[a+216>>2];c=J[b+ +8>>2];if((c|0)<=0)break a;d=O[a+120>>3];f=O[a+112>>3];g=J[b>>2];b=0;while(1){a=J[g+(b<<2)>>2];e=O[a+16>>3];O[a+16>>3]=f-O[a>>3];O[a>>3]=f-e;e=O[a+24>>3];O[a+24>>3]=d-O[a+8>>3];O[a+8>>3]=d-e;b=b+1|0;if((c|0)!=(b|0))continue;break}break a;case 0:b=J[a+212>>2];g=J[b+8>>2];if((g|0)>0){d=O[a+112>>3];h=J[b>>2];b=0;while(1){c=J[h+(b<<2)>>2];f=O[c+16>>3];O[c+16>>3]=O[c+24>>3];e=O[c>>3];O[c>>3]=O[c+8>>3];O[c+24>>3]=d-e;O[c+8>>3]=d-f;J[c+32>>2]=!J[c+32>>2];b=b+1|0;if((g|0)!=(b|0))continue;break}}b=J[a+216>> +2];g=J[b+8>>2];if((g|0)<=0)break a;d=O[a+112>>3];h=J[b>>2];b=0;if((g|0)!=1){j=g&-2;c=0;while(1){i=b<<2;a=J[i+h>>2];f=O[a+16>>3];O[a+16>>3]=O[a+24>>3];e=O[a>>3];O[a>>3]=O[a+8>>3];O[a+24>>3]=d-e;O[a+8>>3]=d-f;a=J[h+(i|4)>>2];f=O[a+16>>3];O[a+16>>3]=O[a+24>>3];e=O[a>>3];O[a>>3]=O[a+8>>3];O[a+24>>3]=d-e;O[a+8>>3]=d-f;b=b+2|0;c=c+2|0;if((j|0)!=(c|0))continue;break}}if(!(g&1))break a;a=J[h+(b<<2)>>2];f=O[a+16>>3];O[a+16>>3]=O[a+24>>3];e=O[a>>3];O[a>>3]=O[a+8>>3];O[a+24>>3]=d-e;O[a+8>>3]=d-f;return;case 2:break b; +default:break a}b=J[a+212>>2];g=J[b+8>>2];if((g|0)>0){d=O[a+120>>3];h=J[b>>2];b=0;while(1){c=J[h+(b<<2)>>2];f=O[c+24>>3];O[c+24>>3]=O[c+16>>3];e=O[c+8>>3];O[c+8>>3]=O[c>>3];O[c+16>>3]=d-e;O[c>>3]=d-f;J[c+32>>2]=!J[c+32>>2];b=b+1|0;if((g|0)!=(b|0))continue;break}}b=J[a+216>>2];g=J[b+8>>2];if((g|0)<=0)break a;d=O[a+120>>3];h=J[b>>2];b=0;if((g|0)!=1){j=g&-2;c=0;while(1){i=b<<2;a=J[i+h>>2];f=O[a+24>>3];O[a+24>>3]=O[a+16>>3];e=O[a+8>>3];O[a+8>>3]=O[a>>3];O[a+16>>3]=d-e;O[a>>3]=d-f;a=J[h+(i|4)>>2];f=O[a+ +24>>3];O[a+24>>3]=O[a+16>>3];e=O[a+8>>3];O[a+8>>3]=O[a>>3];O[a+16>>3]=d-e;O[a>>3]=d-f;b=b+2|0;c=c+2|0;if((j|0)!=(c|0))continue;break}}if(!(g&1))break a;a=J[h+(b<<2)>>2];f=O[a+24>>3];O[a+24>>3]=O[a+16>>3];e=O[a+8>>3];O[a+8>>3]=O[a>>3];O[a+16>>3]=d-e;O[a>>3]=d-f}}function _0a(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;l=J[a+4>>2];d=J[l+52>>2];h=d?d:64;j=J[a+12>>2];i=J[a+8>>2];e=J[l+56>>2];d=J[a+16>>2];g=J[a+20>>2]-d|0;c=!!((g|0)>0?e:0);a:while(1){b:{c:{if(!c){c=j-i>>1;g=(c|0)>(g|0)? +g:c;d:{if((g|0)<=0)break d;while(1){e=L[i>>1];if(e>>>0>12287)break d;e:{if(e>>>0<=32){h=(e|0)!=32?64:h;c=e;break e}c=e-h|0;if(c- -64>>>0>127)break d;h=e&65408|64;c=c-112|0}H[d|0]=c;i=i+2|0;d=d+1|0;c=(g|0)>1;g=g-1|0;if(c)continue;break}}g=J[a+20>>2]-d|0;c=0;break c}if(i>>>0>>0){f=L[i>>1];c=(f&64512)==56320;e=c?(f+(e<<10)|0)-56613888|0:e;i=(c<<1)+i|0;c=1;break c}e=0-e|0;break b}while(1){f:{g:{h:{i:{if(!c){if(i>>>0>=j>>>0)break b;if((g|0)<=0)break i;c=i;while(1){j:{i=c+2|0;e=L[c>>1];if(e>>>0>32)break j; +H[d|0]=e;h=(e|0)!=32?64:h;d=d+1|0;if(i>>>0>=j>>>0)break b;f=(g|0)<2;g=g-1|0;c=i;if(!f)continue;break i}break}if((e&64512)!=55296)break f;c=1;continue a}c=e-h|0;k=e&-128|64;h=k;k:{if(e-55204>>>0<=4294924443)break k;h=12400;if(e>>>0<12448)break k;h=30481;if(e-19968>>>0<20902)break k;h=49617;if(e>>>0>44031)break k;h=k}if(c- -64>>>0<=127){H[d|0]=c-112;g=g-1|0;d=d+1|0;if((e|0)<12288)break h;break g}if(!(g>>>0<2|c+10513>>>0>21025)){l:{m:{n:{o:{if((c|0)>=0){c=c+-64|0;f=(c<<16>>16)/243|0;c=c-P(f,243)<<16>> +16;f=f+208&65535;break o}c=-64-c|0;f=(c>>>0)/243|0;k=c-P(f,243)|0;c=243-k|0;f=(k?f^-1:0-f|0)+80|0;if(!k)break n}H[d|0]=f;if((c|0)<20)break m;c=c+13|0;break l}H[d|0]=f;c=0}c=K[c+755600|0]}H[d+1|0]=c;g=g-2|0;d=d+2|0;break g}c=V2(c);k=c>>24;f=c>>>0>=67108864?4:k;if((f|0)<=(g|0)){p:switch(f-3|0){case 1:H[d|0]=k;d=d+1|0;case 0:H[d+2|0]=c;H[d+1|0]=c>>>8;H[d|0]=c>>>16;d=d+3|0;break;default:break p}g=g-f|0;break g}j=l+76|0;q:{r:{s:{t:{f=f-g|0;switch(f-1|0){case 0:break r;case 1:break s;case 2:break t;default:break q}}H[l+ +76|0]=c>>>16;j=l+77|0}H[j|0]=c>>>8;j=j+1|0}H[j|0]=c}H[l+63|0]=f;c=c>>(f<<3);u:switch(g-1|0){case 2:H[d|0]=c>>>16;d=d+1|0;case 1:H[d|0]=c>>>8;d=d+1|0;case 0:H[d|0]=c;d=d+1|0;break;default:break u}J[b>>2]=15;break b}J[b>>2]=15;break b}c=0;continue a}c=0;continue}c=1;continue}}break}J[l+52>>2]=h;J[l+56>>2]=0-e&e>>31;J[a+16>>2]=d;J[a+8>>2]=i}function M2a(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;f=fc-16|0;fc=f;e=J[a+8>>2];c=J[a+12>>2];a:{if((e|0)==(c|0))break a;l=J[a+4>>2];if(J[l+ +52>>2]==1){wi(l,740272,2,a+16|0,J[a+20>>2],a+24|0,-1,b);J[l+52>>2]=0}g=J[a+16>>2];J[f+12>>2]=g;d=J[a+20>>2];if(d>>>0<=g>>>0){J[b>>2]=15;break a}h=c-e>>1;c=J[a+24>>2];J[f+8>>2]=c;j=d-g|0;b:{c:{d:{e:{f:{g:{h:{d=J[l+56>>2];k=d&65535;if(!k|j>>>0<4)break h;i=L[e>>1];if((i&-1024)!=56320)break h;H[g+3|0]=i;H[g+1|0]=d;H[g+2|0]=i>>>8;H[g|0]=d>>>8;g=g+4|0;J[f+12>>2]=g;d=0;if(c){J[c+8>>2]=-1;J[c>>2]=-1;J[c+4>>2]=-1;d=c+16|0;J[f+8>>2]=d;J[c+12>>2]=-1}j=j-4|0;h=h-1|0;e=e+2|0;J[l+56>>2]=0;i=1;c=d;break g}i=0;if(k)break f}d= +h<<1;d=d>>>0>j>>>0?j&-2:d;j=j-d|0;k=h;h=d>>>1|0;k=k-h|0;i:{j:{if(c){if(!d)break i;while(1){k:{c=e+2|0;d=L[e>>1];l:{if((d&63488)!=55296){H[g|0]=d>>>8;e=J[f+12>>2];H[e+1|0]=d;g=e+2|0;J[f+12>>2]=g;e=J[f+8>>2];J[e>>2]=i;J[f+8>>2]=e+8;J[e+4>>2]=i;i=i+1|0;break l}if(d&1024|h>>>0<2)break k;m=L[c>>1];if((m&64512)!=56320)break k;H[g|0]=d>>>8;c=J[f+12>>2];H[c+3|0]=m;H[c+2|0]=m>>>8;H[c+1|0]=d;g=c+4|0;J[f+12>>2]=g;c=J[f+8>>2];J[c+8>>2]=i;J[c+4>>2]=i;J[c>>2]=i;J[f+8>>2]=c+16;J[c+12>>2]=i;i=i+2|0;h=h-1|0;c=e+4| +0}e=c;h=h-1|0;if(h)continue;break i}break}break j}if(!d)break i;while(1){c=e+2|0;d=L[e>>1];m:{if((d&63488)!=55296){H[g|0]=d>>>8;e=J[f+12>>2];H[e+1|0]=d;g=e+2|0;break m}if(d&1024|h>>>0<2)break j;m=L[c>>1];if((m&64512)!=56320)break j;H[g|0]=d>>>8;c=J[f+12>>2];H[c+3|0]=m;H[c+2|0]=m>>>8;H[c+1|0]=d;h=h-1|0;g=c+4|0;c=e+4|0}e=c;J[f+12>>2]=g;h=h-1|0;if(h)continue;break}break i}e=c;j=(h<<1)+j|0;if(d)break f;break e}if(!k|!j)break b;k=2;c=e+2|0;d=L[e>>1];if((d&63488)!=55296)break d;e=c}n:{if(!(d&1024)){k=0; +if(M[a+12>>2]<=e>>>0)break n;c=L[e>>1];if((c&64512)==56320){H[f+7|0]=c;H[f+6|0]=c>>>8;H[f+5|0]=d;H[f+4|0]=d>>>8;e=e+2|0;d=0;k=4;break n}J[b>>2]=12;break n}J[b>>2]=12;k=0}J[l+56>>2]=d&65535}if(!k)break b;break c}e=d<<8|d>>>8;H[f+4|0]=e;H[f+5|0]=e>>>8;e=c}wi(l,f+4|0,k,f+12|0,J[a+20>>2],f+8|0,i,b);g=J[f+12>>2];j=J[a+20>>2]-g|0}if(!(j|(M[a+12>>2]<=e>>>0|J[b>>2]>0)))J[b>>2]=15;J[a+16>>2]=g;J[a+8>>2]=e;J[a+24>>2]=J[f+8>>2]}fc=f+16|0}function Lu(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,r=0,s=0,t=0,u=0;n=a+24|0;a:{b:{c:{d:{e:{if(J[a+200>>2]){d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break e;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break d}e=2;if(Au(n,b,c))break a}o=a+208|0;f:{if(J[a+424>>2]){d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break f;J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break d}e=2;if($o(o,b,c))break a}e=0;f=J[a>>2];g=J[f+20>>2];p=J[f>>2];if(g>>>0>=p>>> +0)break a;d=g+1|0;J[f+20>>2]=d;q=J[f+12>>2];r=g>>>6&67108860;s=g&255;e=J[q+r>>2]+(s<<4)|0;O[b>>3]=O[e>>3];h=O[e+8>>3];O[c>>3]=h;g:{h:{e=K[J[J[f+16>>2]+r>>2]+s|0];switch(e-3|0){case 0:break h;case 1:break g;default:break a}}if(d>>>0

      >>0){J[f+20>>2]=g+2;d=J[(d>>>6&67108860)+q>>2]+(d<<4&4080)|0;i=O[d+8>>3];j=O[d>>3]}k=O[b>>3];l=O[a+16>>3];m=O[a+8>>3];i:{if(!J[a+200>>2]){I3(n,m,l,k,h,j,i);break i}H3(a+152|0,m,l,k,h,j,i)}if(J[a+200>>2]){d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break b;J[a+176>>2]=d+1;d=J[J[a+ +192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break b}Au(n,b,c);if(J[a+200>>2])break b;Au(n,b,c);break d}j:{if(d>>>0>=p>>>0){e=d;break j}e=g+2|0;J[f+20>>2]=e;d=J[(d>>>6&67108860)+q>>2]+(d<<4&4080)|0;t=O[d+8>>3];u=O[d>>3]}if(e>>>0

      >>0){J[f+20>>2]=e+1;d=J[(e>>>6&67108860)+q>>2]+(e<<4&4080)|0;i=O[d+8>>3];j=O[d>>3]}k=O[b>>3];l=O[a+16>>3];m=O[a+8>>3];k:{if(!J[a+424>>2]){hD(o,m,l,k,h,u,t,j,i);break k}VL(a+368|0,m,l,k,h,u,t,j,i)}if(J[a+424>>2]){d=J[a+400>>2];if(d>>>0>=M[a+ +404>>2])break c;J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break c}$o(o,b,c);if(J[a+424>>2])break c;$o(o,b,c)}e=2;break a}e=2;d=J[a+400>>2];if(d>>>0>=M[a+404>>2])break a;J[a+400>>2]=d+1;d=J[J[a+416>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];break a}e=2;d=J[a+176>>2];if(d>>>0>=M[a+180>>2])break a;J[a+176>>2]=d+1;d=J[J[a+192>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3]}O[a+8>>3]=O[b>> +3];O[a+16>>3]=O[c>>3];return e}function Uw(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;Fe(b,K[a+160|0]);jK(a,b);d=K[a+315|0];f=d<<24>>24<0;lf(b,f?J[a+304>>2]:a+304|0,f?J[a+308>>2]:d);e=O[a+184>>3]*100;a:{if(R(e)<2147483648){d=~~e;break a}d=-2147483648}zd(b,d);zd(b,J[a+176>>2]);zd(b,J[a+196>>2]-J[a+192>>2]>>3);d=J[a+192>>2];if((d|0)!=J[a+196>>2])while(1){e=O[(c<<3)+d>>3]*1E4;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}zd(b,d);c=c+1|0;d=J[a+192>>2];if(c>>>0>2]-d>>3>>>0)continue;break}Fe(b, +K[a+240|0]);zd(b,J[a+164>>2]);zd(b,J[a+8>>2]);c=J[a+8>>2];if(c&1){c=K[a+255|0];d=c<<24>>24<0;lf(b,d?J[a+244>>2]:a+244|0,d?J[a+248>>2]:c);c=J[a+8>>2]}if(c&2){c=K[a+267|0];d=c<<24>>24<0;lf(b,d?J[a+256>>2]:a+256|0,d?J[a+260>>2]:c);c=J[a+8>>2]}if(c&4){c=K[a+327|0];d=c<<24>>24<0;lf(b,d?J[a+316>>2]:a+316|0,d?J[a+320>>2]:c);c=J[a+8>>2]}if(c&8){Fe(b,K[a+241|0]);c=J[a+8>>2]}if(c&16){c=K[a+303|0];d=c<<24>>24<0;lf(b,d?J[a+292>>2]:a+292|0,d?J[a+296>>2]:c);c=J[a+8>>2]}c:{if(!(c&32))break c;zd(b,J[a+208>>2]-J[a+ +204>>2]>>3);d=J[a+204>>2];if((d|0)==J[a+208>>2])break c;c=0;while(1){e=O[(c<<3)+d>>3]*1E4;d:{if(R(e)<2147483648){d=~~e;break d}d=-2147483648}zd(b,d);c=c+1|0;d=J[a+204>>2];if(c>>>0>2]-d>>3>>>0)continue;break}}c=J[a+8>>2];if(c&64){zd(b,J[a+168>>2]);c=J[a+8>>2]}e:{if(!(c&128))break e;zd(b,J[a+220>>2]-J[a+216>>2]>>3);d=J[a+216>>2];if((d|0)==J[a+220>>2])break e;c=0;while(1){e=O[(c<<3)+d>>3]*1E4;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}zd(b,d);c=c+1|0;d=J[a+216>>2];if(c>>>0> +2]-d>>3>>>0)continue;break}}c=J[a+8>>2];if(c&256){c=K[a+279|0];d=c<<24>>24<0;lf(b,d?J[a+268>>2]:a+268|0,d?J[a+272>>2]:c);c=J[a+8>>2]}if(c&131072){zd(b,J[a+172>>2]);c=J[a+8>>2]}if(c&262144){c=K[a+291|0];d=c<<24>>24<0;lf(b,d?J[a+280>>2]:a+280|0,d?J[a+284>>2]:c);c=J[a+8>>2]}if(c&524288){c=K[a+339|0];d=c<<24>>24<0;lf(b,d?J[a+328>>2]:a+328|0,d?J[a+332>>2]:c)}zd(b,J[a+232>>2]-J[a+228>>2]>>2);c=J[a+228>>2];if((c|0)!=J[a+232>>2]){d=0;while(1){g=d<<2;c=J[g+c>>2];h=K[c+15|0];f=h<<24>>24<0;lf(b,f?J[c+4>>2]: +c+4|0,f?J[c+8>>2]:h);c=J[g+J[a+228>>2]>>2];kc[J[J[c>>2]+8>>2]](c,b);d=d+1|0;c=J[a+228>>2];if(d>>>0>2]-c>>2>>>0)continue;break}}}function Oaa(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;e=fc-16|0;fc=e;d=J[a+24>>2];f=J[d+8>>2];J[e+12>>2]=f;d=J[d+12>>2];J[e+8>>2]=d;l=P(d,f)<<2;a:{if((l|0)<=0)break a;J[b+4>>2]=J[e+12>>2];J[b+8>>2]=J[e+8>>2];J[e+4>>2]=J[e+12>>2]<<2;J[b+12>>2]=J[e+4>>2];d=vc(l);J[b+16>>2]=d;j=c?0:2;k=c?2:0;c=J[a+24>>2];b:{a=J[a+16>>2];if((a|0)== +3){a=J[c>>2];if((a|0)!=J[c+48>>2]|(a|0)!=J[c+96>>2])break b;a=J[c+4>>2];if((a|0)!=J[c+52>>2]|(a|0)!=J[c+100>>2])break b;a=J[c+24>>2];if((a|0)!=J[c+72>>2]|(a|0)!=J[c+120>>2])break b;a=J[c+40>>2];b=-1<>2]>>a;if((h|0)<=0)break a;i=b+J[c+8>>2]>>a;if((i|0)<=0)break a;f=P(J[e+12>>2],h-1|0);while(1){b=0;while(1){a=b+f<<2;H[d+k|0]=J[a+J[c+44>>2]>>2];H[d+1|0]=J[a+J[c+92>>2]>>2];H[d+j|0]=J[a+J[c+140>>2]>>2];H[d+3|0]=255;d=d+4|0;b=b+1|0;if((i|0)!=(b|0))continue;break}f=f-J[e+12>>2]|0;g=g+1| +0;if((h|0)!=(g|0))continue;break}break a}if((a|0)<4)break b;a=J[c>>2];if((a|0)!=J[c+48>>2]|(a|0)!=J[c+96>>2]|(a|0)!=J[c+144>>2])break b;a=J[c+4>>2];if((a|0)!=J[c+52>>2]|(a|0)!=J[c+100>>2]|(a|0)!=J[c+148>>2])break b;a=J[c+24>>2];if((a|0)!=J[c+72>>2]|(a|0)!=J[c+120>>2]|(a|0)!=J[c+168>>2])break b;a=J[c+40>>2];b=-1<>2]>>a;if((h|0)<=0)break a;i=b+J[c+8>>2]>>a;if((i|0)<=0)break a;f=P(J[e+12>>2],h-1|0);while(1){a=0;while(1){b=a+f<<2;H[d+k|0]=J[b+J[c+44>>2]>>2];H[d+1|0]=J[b+J[c+92>>2]>>2]; +H[d+j|0]=J[b+J[c+140>>2]>>2];H[d+3|0]=J[b+J[c+188>>2]>>2];d=d+4|0;a=a+1|0;if((i|0)!=(a|0))continue;break}f=f-J[e+12>>2]|0;g=g+1|0;if((h|0)!=(g|0))continue;break}break a}a=J[c+40>>2];b=-1<>2]>>a;if((j|0)<=0)break a;f=b+J[c+8>>2]>>a;if((f|0)<=0)break a;i=f&-2;o=f&1;b=P(J[e+12>>2],j-1|0);k=0;while(1){a=0;h=0;if((f|0)!=1)while(1){m=a<<2;n=b<<2;g=K[m+(n+J[c+44>>2]|0)|0];H[d+3|0]=255;H[d+2|0]=g;H[d+1|0]=g;H[d|0]=g;g=K[(J[c+44>>2]+n|0)+(m|4)|0];H[d+7|0]=255;H[d+6|0]=g;H[d+5|0]=g;H[d+4|0]= +g;a=a+2|0;d=d+8|0;h=h+2|0;if((i|0)!=(h|0))continue;break}if(o){a=K[(J[c+44>>2]+(b<<2)|0)+(a<<2)|0];H[d+3|0]=255;H[d+2|0]=a;H[d+1|0]=a;H[d|0]=a;d=d+4|0}b=b-J[e+12>>2]|0;k=k+1|0;if((j|0)!=(k|0))continue;break}}fc=e+16|0;return(l|0)>0|0}function bVa(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;var h=0,i=0,j=0,k=0,l=0;h=fc-112|0;fc=h;J[a+4>>2]=b;J[a>>2]=2342900;i=a;J[i>>2]=2213336;a=i+8|0;xc(a,c,e);J[i+52>>2]=g;J[i+48>>2]=f;J[i+44>>2]=e;J[i+40>>2]=d;a:{if((e|0)<=0)break a;g=0;b=0;if(e>>>0>= +4){k=e&-4;c=i+60|0;while(1){H[b+c|0]=K[a+b|0];j=b|1;H[j+c|0]=K[a+j|0];j=b|2;H[j+c|0]=K[a+j|0];j=b|3;H[j+c|0]=K[a+j|0];b=b+4|0;l=l+4|0;if((k|0)!=(l|0))continue;break}}a=e&3;if(!a)break a;while(1){c=b+i|0;H[c+60|0]=K[c+8|0];b=b+1|0;g=g+1|0;if((a|0)!=(g|0))continue;break}}b:{c:switch(d|0){case 0:c=i+60|0;H[c+e|0]=f;H[(c+J[i+44>>2]|0)+1|0]=J[i+48>>2]>>>8;H[(c+J[i+44>>2]|0)+2|0]=L[i+50>>1];H[(c+J[i+44>>2]|0)+3|0]=J[i+52>>2];H[(c+J[i+44>>2]|0)+4|0]=J[i+52>>2]>>>8;e=J[i+44>>2];d=e+5|0;if((e|0)>=-5){J[h+ +88>>2]=0;J[h+92>>2]=0;J[h+16>>2]=-1732584194;J[h+20>>2]=271733878;J[h+8>>2]=1732584193;J[h+12>>2]=-271733879;b=0;a=c;g=d;if(g>>>0>=64){k=h+24|0;while(1){f=64-b|0;xc(b+k|0,a,f);J[h+88>>2]=64;a=a+f|0;bq(h+8|0);b=J[h+88>>2];g=g-f|0;if((b+g|0)>63)continue;break}}if((g|0)>0){xc((b+h|0)+24|0,a,g);J[h+88>>2]=J[h+88>>2]+g}J[h+92>>2]=d+J[h+92>>2];Dr(h+8|0);a=J[h+108>>2];J[c+8>>2]=J[h+104>>2];J[c+12>>2]=a;a=J[h+100>>2];J[c>>2]=J[h+96>>2];J[c+4>>2]=a}J[i+56>>2]=(e|0)>11?16:d;break b;case 1:c=i+60|0;H[c+e|0]= +f;H[(c+J[i+44>>2]|0)+1|0]=J[i+48>>2]>>>8;H[(c+J[i+44>>2]|0)+2|0]=L[i+50>>1];H[(c+J[i+44>>2]|0)+3|0]=J[i+52>>2];H[(c+J[i+44>>2]|0)+4|0]=J[i+52>>2]>>>8;H[(c+J[i+44>>2]|0)+5|0]=115;H[(c+J[i+44>>2]|0)+6|0]=65;H[(c+J[i+44>>2]|0)+7|0]=108;H[(c+J[i+44>>2]|0)+8|0]=84;d=J[i+44>>2];if((d|0)>=-9){J[h+88>>2]=0;J[h+92>>2]=0;J[h+16>>2]=-1732584194;J[h+20>>2]=271733878;J[h+8>>2]=1732584193;J[h+12>>2]=-271733879;b=0;e=d+9|0;g=e;a=c;if(e>>>0>=64){k=h+24|0;while(1){f=64-b|0;xc(b+k|0,a,f);J[h+88>>2]=64;a=a+f|0;bq(h+ +8|0);b=J[h+88>>2];g=g-f|0;if((b+g|0)>63)continue;break}}if((g|0)>0){xc((b+h|0)+24|0,a,g);J[h+88>>2]=J[h+88>>2]+g}J[h+92>>2]=e+J[h+92>>2];Dr(h+8|0);a=J[h+108>>2];J[c+8>>2]=J[h+104>>2];J[c+12>>2]=a;a=J[h+100>>2];J[c>>2]=J[h+96>>2];J[c+4>>2]=a}J[i+56>>2]=(d|0)>11?16:d+5|0;break b;case 2:break c;default:break b}J[i+56>>2]=e}fc=h+112|0;return i|0}function aV(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;h=fc-32|0;fc=h;d=J[a+12>>2];a:{b:{if(d&131072)break b;e=J[J[a+188>>2]+(b<<2)>>2];if(!e){d=J[a>> +2];a=J[a+628>>2];J[h+4>>2]=b;J[h>>2]=0;Uc(a,d,74451,h);c=0;break a}if(!(!(d&2048)|!((L[a+94>>1]|256)&d))){c:{if(!(d&512))break c;c=J[a+596>>2];if(!c)break c;uc(c);d=J[a+12>>2]}d=d&-513;J[a+12>>2]=d;d:{c=J[a+616>>2];if(c>>>0>=e>>>0){f=J[a+184>>2]+(b<<2)|0;if(M[f>>2]<=c-e>>>0)break d}J[a+504>>2]=-1;c=0;break a}J[a+600>>2]=e;J[a+596>>2]=J[a+612>>2]+J[f>>2];break b}if(e>>>0>M[a+600>>2]){J[a+504>>2]=-1;if(!(d&512)){d=J[a+628>>2];a=J[a>>2];J[h+20>>2]=b;J[h+16>>2]=a;Uc(d,83362,75040,h+16|0);c=0;break a}c= +0;if(!cV(a,e>>>0<4294966272?e+1023&-1024:0))break a}f=J[a+596>>2];d=e;c=fc-80|0;fc=c;e:{g=J[a+12>>2];if(!(g&131072)){f:{if(!(g&2048)){g=b<<2;if((kc[J[a+640>>2]](J[a+628>>2],J[g+J[a+184>>2]>>2],0)|0)!=J[g+J[a+184>>2]>>2]){d=J[a+628>>2];f=J[a>>2];g=J[a+472>>2];i=J[a+500>>2];J[c+44>>2]=b;J[c+40>>2]=i;J[c+36>>2]=g;J[c+32>>2]=f;Uc(d,83362,80946,c+32|0);d=-1;break f}f=kc[J[a+632>>2]](J[a+628>>2],f,d)|0;if((f|0)==(d|0))break f;g=J[a+628>>2];i=J[a>>2];j=J[a+472>>2];k=J[a+500>>2];J[c+16>>2]=d;J[c+12>>2]=f; +J[c+8>>2]=k;J[c+4>>2]=j;J[c>>2]=i;Uc(g,83362,81092,c);d=-1;break f}i=J[a+616>>2];g=J[J[a+184>>2]+(b<<2)>>2];if(i>>>0>>0){f=J[a+628>>2];j=J[a>>2];k=J[a+472>>2];l=J[a+500>>2];J[c+68>>2]=d;J[c- -64>>2]=i-g;J[c+60>>2]=b;J[c+56>>2]=l;J[c+52>>2]=k;J[c+48>>2]=j;Uc(f,83362,81366,c+48|0);d=-1;break f}Ue(f,g+J[a+612>>2]|0,d)}fc=c+80|0;break e}fa(75579,76157,415,83490);B()}c=0;if((d|0)!=(e|0))break a;d=J[a+12>>2];if(d&(L[a+94>>1]|256))break b;mH(J[a+596>>2],e);d=J[a+12>>2]}if(!(d&32)){c=0;if(!(kc[J[a+516>> +2]](a)|0))break a;d=J[a+12>>2]|32;J[a+12>>2]=d}J[a+504>>2]=b;c=J[a+56>>2];e=J[a+68>>2];if(c>>>0<0-e>>>0)m=((c+e|0)-1>>>0)/(e>>>0)|0;c=J[a+72>>2];J[a+472>>2]=P((b>>>0)%(m>>>0)|0,c);f=J[a+60>>2];if(f>>>0<0-c>>>0)c=((c+f|0)-1>>>0)/(c>>>0)|0;else c=0;J[a+500>>2]=P((b>>>0)%(c>>>0)|0,e);e=0;c=0;if(!(d&131072)){c=J[J[a+188>>2]+(b<<2)>>2];e=J[a+596>>2]}J[a+608>>2]=c;J[a+604>>2]=e;c=kc[J[a+520>>2]](a,(b>>>0)/M[a+176>>2]&65535)|0}fc=h+32|0;return c}function T6(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;p=(g?1032:0)+a|0;J[p>>2]=0;q=(g?1548:516)+a|0;J[q>>2]=0;m=g?a+1548|0:a+516|0;n=g?a+1032|0:a;if(b>>>0>=2)while(1){a=c+2|0;k=h&1;o=I[(k?c:a)>>1];j=I[(k?a:c)>>1]-o|0;h=(k?n:m)+4|0;g=k?l:i;a:{b:{if(!g)break b;a=(g<<5)+h|0;c:{while(1){r=J[h>>2];if((r|0)>(o|0))break c;if((o|0)==(r|0)){a=J[h+4>>2];if((j|0)<0){if((a|0)<=(j|0))break a;J[h+4>>2]=j;break a}if((a|0)>=(j|0))break a;J[h+4>>2]=j;break a}h=h+32|0;g=g-1|0;if(g)continue;break}h=a;break b}cd(h+32|0,h,g<<5)}J[h+4>>2]=j;J[h>>2]=o;if(k){l= +l+1|0;break a}i=i+1|0}c=c+4|0;h=1;b=b-2|0;if(b>>>0>1)continue;break}J[p>>2]=l;J[q>>2]=i;if(d>>>0>=2){a=m+4|0;while(1){j=I[e+2>>1];c=I[e>>1]-j|0;h=a;d:{e:{if(!i)break e;b=(i<<5)+h|0;g=i;f:{while(1){k=J[h>>2];if((k|0)>(j|0))break f;if((j|0)==(k|0)){b=J[h+4>>2];if((c|0)<0){if((b|0)<=(c|0))break d;J[h+4>>2]=c;break d}if((b|0)>=(c|0))break d;J[h+4>>2]=c;break d}h=h+32|0;g=g-1|0;if(g)continue;break}h=b;break e}cd(h+32|0,h,g<<5)}J[h+4>>2]=c;J[h>>2]=j;i=i+1|0}e=e+4|0;d=d-2|0;if(d>>>0>1)continue;break}}J[p>> +2]=l;J[q>>2]=i;g:{if(!l)break g;h=n+4|0;a=l;while(1){h:{i:switch(a|0){case 1:b=J[h+4>>2];g=J[h>>2];break h;case 0:break g;default:break i}g=J[h>>2];b=J[h+32>>2]-g|0;c=J[h+4>>2];if((b|0)>=(c|0)){b=c;break h}J[h+4>>2]=b}J[h+12>>2]=g;J[h+8>>2]=b+g;h=h+32|0;a=a-1|0;continue}}j:{if(!i)break j;h=m+4|0;a=i;while(1){k:{l:switch(a|0){case 1:b=J[h+4>>2];g=J[h>>2];break k;case 0:break j;default:break l}g=J[h>>2];b=g-J[h+32>>2]|0;c=J[h+4>>2];if((b|0)<=(c|0)){b=c;break k}J[h+4>>2]=b}J[h+8>>2]=g;J[h+12>>2]=b+g; +h=h+32|0;a=a-1|0;continue}}if(l){J[n+16>>2]=J[n+16>>2]-f;h=n+4|0;a=J[n+12>>2];g=l-1|0;m:{if(!g){b=h;break m}while(1){b=J[h+44>>2];c=(b-a|0)/2|0;d=c+a|0;e=a+f|0;a=(c|0)<(f|0);J[h+8>>2]=a?d:e;J[h+44>>2]=a?d:b-f|0;a=J[h+40>>2];b=h+32|0;h=b;g=g-1|0;if(g)continue;break}}J[b+8>>2]=a+f}if(i){J[m+16>>2]=J[m+16>>2]-f;h=m+4|0;a=J[m+12>>2];g=i-1|0;n:{if(!g){b=h;break n}while(1){b=J[h+44>>2];c=(b-a|0)/2|0;d=c+a|0;e=a+f|0;a=(c|0)<(f|0);J[h+8>>2]=a?d:e;J[h+44>>2]=a?d:b-f|0;a=J[h+40>>2];b=h+32|0;h=b;g=g-1|0;if(g)continue; +break}}J[b+8>>2]=a+f}}function r1(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=fc-48|0;fc=e;g=J[a+172>>2];a:{if(J[a+292>>2])break a;d=J[a+36>>2];b=J[d+16>>2];if((b-J[d+12>>2]|0)<501|(J[d+20>>2]-b|0)>499)break a;_g(a)}b:{c:{d:{e:{i=K[J[J[a+36>>2]+16>>2]];switch(i-34|0){case 0:break c;case 5:break d;default:break e}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break b;J[a+84>>2]=43;J[e>>2]=16077;Hc(0,0,0,a,0,1,43,3,0,0,0,0,32906,e);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}i=39}Zd(a);h=100; +d=kc[J[663198]](100)|0;if(!d){se(a,0);break b}J[a+172>>2]=13;c=Mf(a,e+44|0);f:{while(1){g:{h:{i:{j:{k:{l:{if((c|0)<=255){if((c|0)<=31)if(!(1<>>0>13)break k;if((c|0)!=(i|0))break l;H[d+f|0]=0;J[a+172>>2]=g;break g}b=c>>>0<55296|c-57344>>>0<8190|c-65536>>>0<1048576;if(!b|(c|0)==(i|0))break j}if((f+5|0)<(h|0)){b=d;break h}if(!(K[a+362|0]&8|(h|0)<50001)){m:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break m;J[a+84>>2]=110;J[e+20>>2]=10079;J[e+16>>2]=6556;Hc(0,0,0,a,0,1,110,3,10079,0,0,0,32777,e+16|0); +J[a+12>>2]=0;if(J[a+288>>2])break m;J[a+212>>2]=1}c=0;kc[J[663199]](d);J[a+172>>2]=g;break b}h=h<<1;b=kc[J[663200]](d,h)|0;if(b)break h;c=0;kc[J[663199]](d);se(a,0);J[a+172>>2]=g;break b}H[d+f|0]=0;J[a+172>>2]=g;break i}H[d+f|0]=0;J[a+172>>2]=g;if(b)break g}if((g|0)==-1?J[a+212>>2]:0)break f;J[a+84>>2]=44;J[e+32>>2]=16107;Hc(0,0,0,a,0,1,44,3,0,0,0,0,32906,e+32|0);J[a+12>>2]=0;if(J[a+288>>2])break f;J[a+212>>2]=1;break f}d=b;n:{if((j|0)<50){j=j+1|0;break n}o:{if(J[a+292>>2])break o;b=J[a+36>>2];if((J[b+ +20>>2]-J[b+16>>2]|0)>249)break o;Rd(a)}j=0;if(J[a+172>>2]!=-1)break n;c=0;kc[J[663199]](d);break b}p:{if(J[e+44>>2]==1){H[d+f|0]=c;f=f+1|0;break p}f=ej(d+f|0,c)+f|0}b=J[a+36>>2];c=J[b+16>>2];q:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break q}J[b+32>>2]=J[b+32>>2]+1}k=b;b=c+J[e+44>>2]|0;J[k+16>>2]=b;if(K[b|0]==37)Yd(a);c=Mf(a,e+44|0);if(c)continue;r:{if(J[a+292>>2])break r;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)<=249){Rd(a);if(J[a+292>>2])break r}b=J[a+36>>2];c=J[b+16>>2];if((c-J[b+12>> +2]|0)<501|(J[b+20>>2]-c|0)>499)break r;_g(a)}c=Mf(a,e+44|0);continue}break}Zd(a)}c=d}fc=e+48|0;return c}function KU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=fc-32|0;fc=h;f=h+16|0;JU(f,b);b=h+8|0;JU(b,c);J[699344]=0;g=h+24|0;c=0;a:{if(d&256)break a;c=3;if(d&512)break a;c=d&1024?2:1}ma(6499,g|0,f|0,b|0,c|0,e|0);c=J[699344];J[699344]=0;if((c|0)!=1){ij(b);ij(f);d=0;c=0;e=fc-32|0;fc=e;b=a;J[a+40>>2]=-1;J[a+44>>2]=-1048577;J[a+32>>2]=-1;J[a+36>>2]=-1048577;J[a+24>> +2]=-1;J[a+28>>2]=2146435071;J[a+16>>2]=-1;J[a+20>>2]=2146435071;J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;f=J[g+4>>2];a=J[f>>2];if(a){f=J[f+16>>2];if((a|0)!=1){i=a&-2;while(1){k=c;c=J[f+(d>>>6&67108860)>>2]+(d&254)|0;c=(k+(K[c|0]==79)|0)+(K[c+1|0]==79)|0;d=d+2|0;j=j+2|0;if((i|0)!=(j|0))continue;break}}if(a&1)c=(K[J[f+(d>>>6&67108860)>>2]+(d&255)|0]==79)+c|0;a=c}else a=0;J[699344]=0;c=uM(g);d=J[699344];J[699344]=0;b:{c:{if((d|0)==1)break c;f=a+c|0;Zk(e+4|0,g,0,f);if(!f)break b;j=f-2|0;i=e+20|0;a=0;while(1){d= +J[e+4>>2]+(a<<4)|0;c=J[g+4>>2];if(M[c>>2]>a>>>0)c=K[J[J[c+16>>2]+(a>>>6&67108860)>>2]+(a&255)|0]==1;else c=0;d:{if(c){J[699344]=0;ca(6492,b|0,d|0,d+8|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;break d}c=J[g+4>>2];if(M[c>>2]>a>>>0)c=K[J[J[c+16>>2]+(a>>>6&67108860)>>2]+(a&255)|0]==2;else c=0;if(c){J[699344]=0;ca(6493,b|0,d|0,d+8|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;break d}e:{if(a>>>0>=j>>>0)break e;if(!Ox(g,a))break e;l=a+1|0;if(!Ox(g,l))break e;c=a+2|0;if(!Ox(g,c))break e;J[699344]= +0;k=d;m=d+8|0;a=J[e+4>>2];d=a+(l<<4)|0;a=a+(c<<4)|0;ua(6494,b|0,k|0,m|0,d|0,d+8|0,a|0,a+8|0);d=J[699344];J[699344]=0;a=c;if((d|0)!=1)break d;break c}c=J[g+4>>2];if(M[c>>2]>a>>>0)c=K[J[J[c+16>>2]+(a>>>6&67108860)>>2]+(a&255)|0]==79;else c=0;if(!c)break d;J[e+28>>2]=0;J[e+24>>2]=i;J[e+16>>2]=3;J[699344]=0;J[e+20>>2]=i;c=_(4,24)|0;d=J[699344];J[699344]=0;if((d|0)==1){ea(0)|0;Qp(e+16|0);Bc();B()}J[c+8>>2]=3;J[c+4>>2]=b;J[c+20>>2]=0;d=c+12|0;J[c+16>>2]=d;J[c+12>>2]=d;d=J[b>>2];J[c>>2]=d;J[d+4>>2]=c;J[b>> +2]=c;J[b+8>>2]=J[b+8>>2]+1}a=a+1|0;if(f>>>0>a>>>0)continue;break}break b}ea(0)|0;Bc();B()}a=J[e+4>>2];if(a){J[e+8>>2]=a;uc(a)}fc=e+32|0;ij(g);fc=h+32|0;return}a=Z()|0;ij(h+8|0);ij(h+16|0);ba(a|0);B()}function Y6a(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;e=J[a+464>>2];if(J[a+280>>2]){c=J[e+52>>2];if(!c){if(!(kc[J[J[a+460>>2]+8>>2]](a)|0)){c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}if(J[a+336>>2]>0)while(1){g=f<<2;d=J[(g+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b; +if(J[a+416>>2])break a}c=J[((J[d+20>>2]<<2)+e|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0; +H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=e+g|0;J[c+36>>2]=0;J[c+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Ac(J[((J[d+24>>2]<<2)+e|0)+120>>2],0,256)}f=f+1|0;if((f|0)>2])continue;break}J[e+ +16>>2]=-16;J[e+8>>2]=0;J[e+12>>2]=0;c=J[a+280>>2]}J[e+52>>2]=c-1}c:{if(J[e+16>>2]==-1)break c;g=J[b>>2];i=J[a+428>>2];c=J[a+412>>2];b=c;d:{if((c|0)<=0)break d;while(1){if(L[g+(J[(b<<2)+i>>2]<<1)>>1])break d;d=(b|0)>1;b=b-1|0;if(d)continue;break}b=0}d=J[a+408>>2];if((c|0)<(d|0))break c;c=J[a+420>>2];j=-1<>2]+24>>2]<<2)+e|0;while(1){f=(J[m+120>>2]+P(d,3)|0)-3|0;if((b|0)<(d|0))if(Ud(a,f))break c;c=d;e:{f:{g:{while(1){h=g+(J[(c<<2)+i>>2]<<1)|0;if(L[h>>1]){if(!Ud(a,f+2| +0))break e;d=I[h>>1];if((d|0)>=0)break g;d=d+j|0;break f}if(Ud(a,f+1|0)){d=Ud(a,l)?j:k;break f}f=f+3|0;d=J[a+412>>2]>(c|0);c=c+1|0;if(d)continue;break}b=J[a>>2];J[b+20>>2]=117;kc[J[b+4>>2]](a,-1);J[e+16>>2]=-1;return 1}d=d+k|0}I[h>>1]=d}d=c+1|0;if(J[a+412>>2]>(c|0))continue;break}}return 1}function m9(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;g=fc-32|0;fc=g;a:{if(!b)break a;J[b>>2]=0;d=!a;if(d)break a;m=d?0:J[a+36>>2];if(m){q9(m,b);if(!J[b>>2])break a;d=fc-32|0;fc=d;e=!a;b:{if(e)break b; +e=e?-1:J[a+8>>2];J[d+20>>2]=e;if((e|0)>16)break b;c:{if(a?J[a+36>>2]:0){a=el(a,1);break c}if(a)J[a+16>>2]=J[a+16>>2]+1}J[d+8>>2]=a;Df(a,d+28|0,d+24|0,d+20|0);e=1<>2];a=jo(e);J[d+12>>2]=a;i=!a;if(i)break b;d:{if(i)break d;c=J[a>>2];if((c|0)<(e|0)){c=im(a+20|0,c<<2,e<<2);J[a+20>>2]=c;if(!c)break d;J[a>>2]=e}J[a+4>>2]=e}if(a)e=J[a+20>>2];else e=0;c=J[d+8>>2];e:{f:{if(J[d+20>>2]==1){Bk(c,d+16|0,0);c=J[d+24>>2];i=J[d+28>>2];j=J[d+16>>2];N[e+4>>2]=j|0;N[e>>2]=P(c,i)-j|0;break f}i=c?J[c+12>>2]:-1; +c=J[d+8>>2];if(c)j=J[c+40>>2];else j=0;n=J[d+24>>2];g:{if((n|0)<=0)break g;k=J[d+28>>2];h:{i:{j:{k:{c=J[d+20>>2];switch(c<<31|c-2>>>1){case 7:break h;case 3:break i;case 1:break j;case 0:break k;default:break e}}if((k|0)<=0)break g;while(1){l=(P(f,i)<<2)+j|0;c=0;while(1){h=((J[l+(c>>4<<2)>>2]>>>((c^-1)<<1)&3)<<2)+e|0;N[h>>2]=N[h>>2]+Q(1);c=c+1|0;if((k|0)>(c|0))continue;break}f=f+1|0;if((n|0)>(f|0))continue;break}break g}if((k|0)<=0)break g;while(1){l=(P(f,i)<<2)+j|0;c=0;while(1){h=((J[l+(c>>3<<2)>> +2]>>>((c^-1)<<2)&15)<<2)+e|0;N[h>>2]=N[h>>2]+Q(1);c=c+1|0;if((k|0)>(c|0))continue;break}f=f+1|0;if((n|0)>(f|0))continue;break}break g}if((k|0)<=0)break g;while(1){l=(P(f,i)<<2)+j|0;c=0;while(1){h=(K[c+l^3]<<2)+e|0;N[h>>2]=N[h>>2]+Q(1);c=c+1|0;if((k|0)>(c|0))continue;break}f=f+1|0;if((n|0)>(f|0))continue;break}break g}if((k|0)<=0)break g;while(1){l=(P(f,i)<<2)+j|0;c=0;while(1){h=(L[(l+(c<<1)^2)>>1]<<2)+e|0;N[h>>2]=N[h>>2]+Q(1);c=c+1|0;if((k|0)>(c|0))continue;break}f=f+1|0;if((n|0)>(f|0))continue;break}}}Fd(d+ +8|0);c=a;break b}Qi(d+12|0);c=0}fc=d+32|0;J[g+12>>2]=c;a=m?J[m+12>>2]:0;l:{if((a|0)<=0)break l;while(1){Lq(m,o,g+28|0,g+24|0,g+20|0);Hj(c,o,g+16|0);m:{d=J[g+28>>2];n:{if((d|0)==J[g+24>>2]){if((d|0)==J[g+20>>2])break m;if(J[g+16>>2])break n;break m}if(!J[g+16>>2])break m}J[b>>2]=1;break l}o=o+1|0;if((a|0)!=(o|0))continue;break}}Qi(g+12|0)}}fc=g+32|0}function am(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;j=fc-16|0;fc=j;e=J[a>>2];a:{if(e>>>0>=b>>>0)break a;b:{c:{d=K[e|0];switch(d-43|0){case 0:case 2:break c; +default:break b}}e=e+1|0;if((e|0)==(b|0))break a;n=(d|0)==45;d=K[e|0];switch(d-43|0){case 0:case 2:break a;default:break b}}h=1;d:{if((d|0)==46){d=e;m=1;break d}J[j+8>>2]=e;f=j+8|0;g=eo(f,b,10);e:{d=J[j+8>>2];if((e|0)!=(d|0)){if(K[d|0]!=35|b>>>0<=d>>>0)break e;i=d+1|0;J[j+8>>2]=i;g=eo(f,b,g);d=J[j+8>>2];if((i|0)!=(d|0))break e}g=0;break a}if((d|0)==(e|0)){g=0;break a}m=(g|0)<32768;i=m?g<<16:g}e=0;f:{if(K[d|0]!=46|b>>>0<=d>>>0)break f;d=d+1|0;if(d>>>0>=b>>>0)break f;g:{if(!i)while(1){h:{f=K[d|0];switch(f| +0){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break h}}if(f<<24>>24<0|f-58>>>0<4294967286)break f;i:{if((h|0)>214748363|(e|0)>214748363)break i;e=H[f+261808|0]+P(e,10)|0;if((c|0)>0){c=c-1|0;break i}h=P(h,10)}d=d+1|0;if((d|0)!=(b|0))continue;break g}while(1){j:{f=K[d|0];switch(f|0){case 0:case 9:case 10:case 12:case 13:case 32:break f;default:break j}}if(f<<24>>24<0|f-58>>>0<4294967286)break f;k=H[f+261808|0]+P(e,10)|0;f=(h|0)<214748364&(e|0)<214748364;e=f?k:e;h=f?P(h,10):h;d=d+ +1|0;if((d|0)!=(b|0))continue;break}}d=b}f=1;k:{l:{m:{n:{k=d+1|0;if(!((K[d|0]|32)!=101|k>>>0>=b>>>0)){J[j+12>>2]=k;g=j+12|0;l=eo(g,b,10);o:{d=J[j+12>>2];if((k|0)!=(d|0)){if(K[d|0]!=35|b>>>0<=d>>>0)break o;f=d+1|0;J[j+12>>2]=f;l=eo(g,b,l);d=J[j+12>>2];if((f|0)!=(d|0))break o}g=0;break a}g=0;if((d|0)==(k|0))break a;if((l|0)>1E3)break n;f=(l|0)>-1001;c=(f?l:0)+c|0}J[a>>2]=d;g=0;if(!(e|i))break a;a=2147483647;if(!m)break k;if(!f)break a;if((c|0)<=0)break m;while(1){if((i|0)>214748363)break k;p:{if((e| +0)>=214748364){if((h|0)==1)break k;h=(h|0)/10|0;break p}e=P(e,10)}i=P(i,10);b=(c|0)>1;c=c-1|0;if(b)continue;break}break l}J[a>>2]=d;a=2147483647;if(e|i)break k;break a}if((c|0)>=0)break l;while(1){a=i;i=(i|0)/10|0;q:{if((h|0)<=214748363){h=P(h,10);break q}e=(e|0)/10|0}if(!(!e&a-10>>>0>=4294967277)){c=c+1|0;if(!c)break l;continue}break}break a}if(!e){a=i;break k}a=Cd(e,h)+i|0}g=n?0-a|0:a}fc=j+16|0;return g}function XFa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a=J[a+4>>2];if(!a)return 0; +c=fc-96|0;fc=c;g=a+12|0;vd(g,0);J[c+88>>2]=0;J[c+92>>2]=J[685894];J[699344]=0;a=c+52|0;da(5148,a|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((b|0)!=1){J[699344]=0;e=aa(5149,c+8|0,(H[c+63|0]<0?J[c+52>>2]:a)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1){d=ea(0)|0;if(H[c+63|0]>=0)break d;uc(J[c+52>>2]);break d}if(H[c+63|0]<0)uc(J[c+52>>2]);J[699344]=0;a=aa(5150,c+16|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break k;J[699344]=0;b=aa(5151,c+52|0,a|0)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break j;J[a+24>>2]=2392964;J[a>>2]=2392932;d=J[a+28>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)kc[J[J[d>>2]+4>>2]](d);J[a+28>>2]=0}J[a+16>>2]=2392964;d=J[a+20>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if(!f)kc[J[J[d>>2]+4>>2]](d);J[a+20>>2]=0}wc(a+8|0);wc(e);J[c>>2]=0;J[699344]=0;aa(5145,c|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;a=c+4|0;ia(5152,a|0,b|0,c|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break h;J[699344]=0;aa(5153,g|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g; +a=J[c+4>>2];J[c+4>>2]=0;l:{if(!a)break l;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break l;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[c>>2];J[c>>2]=0;m:{if(!a)break m;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break m;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[g>>2];J[699344]=0;_(5154,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f;J[b+24>>2]=2392964; +J[b>>2]=2392932;a=J[b+28>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);wc(c+88|0);a=1;break c}d=ea(0)|0;break d}d=ea(0)|0;wc(e);break d}d=ea(0)|0;Ed(a);wc(e);break d}d=ea(0)|0;break e}d=ea(0)|0;zc(c);break e}d=ea(0)|0;zc(c+4|0);zc(c);break e}d=ea(0)|0}Ed(b)}wc(c+88|0);oa(d|0)|0;ta();a=0}fc=c+96|0;break a}ea(0)|0;Bc();B()}return a|0}function O8(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;i=J[(c?16:12)+b>>2];g=J[(c?8:4)+b>>2];f=P(c,9804)+a|0;b=f+9840|0;d=f+9844|0;a:{if((g|0)==J[b>>2]&(i|0)==J[d>>2])break a;J[b>>2]=g;J[d>>2]=i;d=J[a+10064>>2];b:{if(!d)break b;b=0;while(1){if(!(K[(P(b,36)+a|0)+10100|0]&16)){b=b+1|0;if((d|0)!=(b|0))continue;break b}break}b=Wc(J[(P(b,36)+a|0)+10080>>2],g);d=J[J[a+36>>2]+12>>2];if(d){h=d;d=L[J[J[a+4>>2]+88>>2]+12>>1];d=d>>>0<=5?40:h>>>0>=d>>>0?52:40}else d=40;if((c|0)!=1)break b;d=b+d&-64;if((d| +0)==(b|0))break b;j=Od(g,d,b);d=J[a+40>>2];b=J[a+10064>>2];c:{if(!b)break c;m=b&1;d:{if((b|0)==1){b=0;break d}n=b&-2;l=a+10068|0;b=0;while(1){h=P(b,36)+l|0;k=J[h+24>>2];d=(d|0)>(k|0)?d:k;h=0-J[h+28>>2]|0;d=(d|0)>(h|0)?d:h;h=P(b|1,36)+l|0;k=J[h+24>>2];d=(d|0)>(k|0)?d:k;h=0-J[h+28>>2]|0;d=(d|0)>(h|0)?d:h;b=b+2|0;e=e+2|0;if((n|0)!=(e|0))continue;break}}if(!m)break c;b=P(b,36)+a|0;e=J[b+10092>>2];d=(d|0)>(e|0)?d:e;b=0-J[b+10096>>2]|0;d=(b|0)<(d|0)?d:b}b=j-g|0;e=Wc(d,b);b=Wc(d,b);g=((e|0)<0?0-b|0:b)>>> +0<128?j:g}J[f+44>>2]=g;J[(P(c,9804)+a|0)+48>>2]=i;e:{if(!c){J[a+8>>2]=g;b=a+16|0;break e}J[a+12>>2]=g;b=a+20|0}J[b>>2]=i;b=P(c,9804)+a|0;if(J[b+52>>2]){j=b+56|0;d=0;while(1){e=j+P(d,12)|0;f=Wc(J[e>>2],g);J[e+8>>2]=f;J[e+4>>2]=f;d=d+1|0;if(d>>>0>2])continue;break}}o=b,p=(Wc(J[b+252>>2],g)|0)<40,H[o+256|0]=p;if(!J[a+10064>>2]|(c|0)!=1)break a;d=0;while(1){b=P(d,36)+a|0;c=b+10068|0;e=Wc(J[c>>2],g)+i|0;J[b+10076>>2]=e;J[b+10072>>2]=e;f=b+10088|0;e=b+10080|0;j=Wc(J[e>>2],g)+i|0;J[f>>2]=j;J[b+10084>> +2]=j;b=b+10100|0;J[b>>2]=J[b>>2]&-2;e=Wc(J[c>>2]-J[e>>2]|0,g);if(e+48>>>0<=96){h=c;c=J[c+4>>2]+32&-64;J[h+8>>2]=c;h=f;f=e>>31;f=(f^e)-f|0;f=f>>>0>=32?f>>>0<48?32:64:0;J[h>>2]=c+((e|0)<0?f:0-f|0);J[b>>2]=J[b>>2]|1}d=d+1|0;c=J[a+10064>>2];if(d>>>0>>0)continue;break}if(!c)break a;e=0;while(1){b=P(e,36)+a|0;g=b+10100|0;i=J[g>>2];f:{if((i&5)!=5)break f;f=b+10076|0;j=b+10088|0;b=0;while(1){d=P(b,36)+a|0;if(!((J[d+10100>>2]&5)!=1|J[d+10076>>2]>J[j>>2]|J[d+10088>>2]>2])){J[g>>2]=i&-2;break f}b=b+ +1|0;if((c|0)!=(b|0))continue;break}}e=e+1|0;if((c|0)!=(e|0))continue;break}}}function E2a(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;f=fc-16|0;fc=f;e=J[a+8>>2];c=J[a+12>>2];a:{if((e|0)==(c|0))break a;l=J[a+4>>2];if(J[l+52>>2]==1){wi(l,740274,2,a+16|0,J[a+20>>2],a+24|0,-1,b);J[l+52>>2]=0}g=J[a+16>>2];J[f+12>>2]=g;d=J[a+20>>2];if(d>>>0<=g>>>0){J[b>>2]=15;break a}h=c-e>>1;c=J[a+24>>2];J[f+8>>2]=c;j=d-g|0;b:{c:{d:{e:{f:{g:{h:{d=J[l+56>>2];k=d&65535;if(!k|j>>>0<4)break h;i=L[e>>1]; +if((i&-1024)!=56320)break h;H[g+2|0]=i;H[g|0]=d;H[g+3|0]=i>>>8;H[g+1|0]=d>>>8;g=g+4|0;J[f+12>>2]=g;d=0;if(c){J[c+8>>2]=-1;J[c>>2]=-1;J[c+4>>2]=-1;d=c+16|0;J[f+8>>2]=d;J[c+12>>2]=-1}j=j-4|0;h=h-1|0;e=e+2|0;J[l+56>>2]=0;i=1;c=d;break g}i=0;if(k)break f}d=h<<1;d=d>>>0>j>>>0?j&-2:d;j=j-d|0;k=h;h=d>>>1|0;k=k-h|0;i:{j:{if(c){if(!d)break i;while(1){k:{c=e+2|0;d=L[e>>1];l:{if((d&63488)!=55296){H[g|0]=d;e=J[f+12>>2];H[e+1|0]=d>>>8;g=e+2|0;J[f+12>>2]=g;e=J[f+8>>2];J[e>>2]=i;J[f+8>>2]=e+8;J[e+4>>2]=i;i=i+1| +0;break l}if(d&1024|h>>>0<2)break k;m=L[c>>1];if((m&64512)!=56320)break k;H[g|0]=d;c=J[f+12>>2];H[c+3|0]=m>>>8;H[c+2|0]=m;H[c+1|0]=d>>>8;g=c+4|0;J[f+12>>2]=g;c=J[f+8>>2];J[c+8>>2]=i;J[c+4>>2]=i;J[c>>2]=i;J[f+8>>2]=c+16;J[c+12>>2]=i;i=i+2|0;h=h-1|0;c=e+4|0}e=c;h=h-1|0;if(h)continue;break i}break}break j}if(!d)break i;while(1){c=e+2|0;d=L[e>>1];m:{if((d&63488)!=55296){H[g|0]=d;e=J[f+12>>2];H[e+1|0]=d>>>8;g=e+2|0;break m}if(d&1024|h>>>0<2)break j;m=L[c>>1];if((m&64512)!=56320)break j;H[g|0]=d;c=J[f+ +12>>2];H[c+3|0]=m>>>8;H[c+2|0]=m;H[c+1|0]=d>>>8;h=h-1|0;g=c+4|0;c=e+4|0}e=c;J[f+12>>2]=g;h=h-1|0;if(h)continue;break}break i}e=c;j=(h<<1)+j|0;if(d)break f;break e}if(!k|!j)break b;k=2;c=e+2|0;d=L[e>>1];if((d&63488)!=55296)break d;e=c}n:{if(!(d&1024)){k=0;if(M[a+12>>2]<=e>>>0)break n;c=L[e>>1];if((c&64512)==56320){H[f+6|0]=c;H[f+7|0]=c>>>8;H[f+4|0]=d;H[f+5|0]=d>>>8;e=e+2|0;d=0;k=4;break n}J[b>>2]=12;break n}J[b>>2]=12;k=0}J[l+56>>2]=d&65535}if(!k)break b;break c}H[f+4|0]=d;H[f+5|0]=d>>>8;e=c}wi(l, +f+4|0,k,f+12|0,J[a+20>>2],f+8|0,i,b);g=J[f+12>>2];j=J[a+20>>2]-g|0}if(!(j|(M[a+12>>2]<=e>>>0|J[b>>2]>0)))J[b>>2]=15;J[a+16>>2]=g;J[a+8>>2]=e;J[a+24>>2]=J[f+8>>2]}fc=f+16|0}function m3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;w=fc-384|0;fc=w;p=J[a+332>>2];b=J[b+84>>2];a=w;while(1){s=J[b+128>>2];l=I[c+64>>1];o=P(J[b+32>>2],I[c+16>>1]);j=P(J[b+224>>2],I[c+112>>1]);i=o-j|0;m=P(J[b+96>>2],I[c+48>>1]);k=P(J[b+160>>2],I[c+ +80>>1]);g=m-k|0;h=P(i+g|0,4433);n=P(J[b+64>>2],I[c+32>>1]);q=P(J[b+192>>2],I[c+96>>1]);t=n-q<<13;f=P(I[c>>1],J[b>>2])<<13|1024;u=t+f|0;i=h+P(i,6270)|0;J[a+320>>2]=u-i>>11;J[a+32>>2]=i+u>>11;i=f-t|0;h=h+P(g,-15137)|0;J[a+224>>2]=i-h>>11;J[a+128>>2]=h+i>>11;s=P(P(l,s),10033);l=s+f|0;i=q<<13;g=i+P(n,11190)|0;q=l-g|0;u=k+o|0;h=P(u+j|0,7053);t=P(m,-4433);v=h+((t+P(o,-5540)|0)+P(j,-16244)|0)|0;J[a+192>>2]=q-v>>11;J[a+160>>2]=q+v>>11;l=g+l|0;g=P(o,2295);o=P(m,10703);m=h+P(u,2139)|0;g=(g+o|0)+m|0;J[a+352>> +2]=l-g>>11;J[a>>2]=g+l>>11;n=P(n,2998)-i|0;f=f-s|0;s=n+f|0;i=t+P(k,-12112)|0;k=P(j+k|0,-8565);m=m+(i+k|0)|0;J[a+288>>2]=s-m>>11;J[a+64>>2]=m+s>>11;f=f-n|0;j=k+(h+(P(j,12998)-o|0)|0)|0;J[a+256>>2]=f-j>>11;J[a+96>>2]=f+j>>11;a=a+4|0;b=b+4|0;c=c+2|0;r=r+1|0;if((r|0)!=8)continue;break}a=p+128|0;b=w;o=0;while(1){k=J[b+4>>2];f=J[b+20>>2];h=k+f|0;j=J[b+28>>2];m=P(h+j|0,7053);c=J[(o<<2)+d>>2]+e|0;l=m+P(h,2139)|0;n=J[b+12>>2];s=P(n,10703);i=l+(s+P(k,2295)|0)|0;g=J[b+24>>2];q=g<<13;p=J[b+8>>2];t=q+P(p,11190)| +0;h=(J[b>>2]<<13)+131072|0;u=P(J[b+16>>2],10033);v=h+u|0;r=t+v|0;H[c|0]=K[a+(i+r>>>18&1023)|0];H[c+11|0]=K[a+(r-i>>>18&1023)|0];i=p-g<<13;g=i+h|0;r=k-j|0;x=n-f|0;y=P(r+x|0,4433);r=y+P(r,6270)|0;H[c+1|0]=K[a+(g+r>>>18&1023)|0];H[c+10|0]=K[a+(g-r>>>18&1023)|0];n=P(n,-4433);g=n+P(f,-12112)|0;f=P(f+j|0,-8565);l=(g+f|0)+l|0;p=P(p,2998)-q|0;g=h-u|0;q=p+g|0;H[c+2|0]=K[a+(l+q>>>18&1023)|0];H[c+9|0]=K[a+(q-l>>>18&1023)|0];f=f+(m+(P(j,12998)-s|0)|0)|0;p=g-p|0;H[c+3|0]=K[a+(f+p>>>18&1023)|0];H[c+8|0]=K[a+(p- +f>>>18&1023)|0];f=P(x,-15137)+y|0;h=h-i|0;H[c+4|0]=K[a+(f+h>>>18&1023)|0];H[c+7|0]=K[a+(h-f>>>18&1023)|0];j=m+((n+P(k,-5540)|0)+P(j,-16244)|0)|0;k=v-t|0;H[c+5|0]=K[a+(j+k>>>18&1023)|0];H[c+6|0]=K[a+(k-j>>>18&1023)|0];b=b+32|0;o=o+1|0;if((o|0)!=12)continue;break}fc=w+384|0}function j7(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;i=fc-16|0;fc=i;if((e|0)>0)while(1){if((g&255)==255){kc[J[J[d>>2]+12>>2]](d,i+15|0,1,1,0,0)|0;g=K[i+15|0]}a:{if(g<<24>>24<0){h=g-127|0;H[i+15|0]=h; +g=255;if(((h&255)+p|0)>(e|0)){s=kc[J[J[d>>2]+24>>2]](d)|0;g=e-p|0;H[i+15|0]=g;g=h+(g^-1)^-128}b:{c:switch(K[c+16|0]-8|0){case 24:h=0;kc[J[J[d>>2]+12>>2]](d,i+11|0,4,1,0,0)|0;if(!K[i+15|0])break b;while(1){j=P(h,3)+b|0;l=K[i+11|0]|K[i+12|0]<<8;H[j|0]=l;H[j+1|0]=l>>>8;H[j+2|0]=K[i+13|0];yh(a,h+p|0,f,K[i+14|0]);h=h+1|0;if(h>>>0>2]+12>>2]](d,i+8|0,3,1,0,0)|0;l=K[i+15|0];if(!l)break b;n=0;h=0;if(l>>>0>=4){r=l&252;m=0;while(1){k=P(h,3);j=k+b|0;o=K[i+8| +0]|K[i+9|0]<<8;H[j|0]=o;H[j+1|0]=o>>>8;H[j+2|0]=K[i+10|0];k=(k|3)+b|0;H[k+2|0]=K[i+10|0];o=K[i+8|0]|K[i+9|0]<<8;H[k|0]=o;H[k+1|0]=o>>>8;H[j+8|0]=K[i+10|0];k=K[i+8|0]|K[i+9|0]<<8;H[j+6|0]=k;H[j+7|0]=k>>>8;H[j+11|0]=K[i+10|0];k=K[i+8|0]|K[i+9|0]<<8;H[j+9|0]=k;H[j+10|0]=k>>>8;h=h+4|0;m=m+4|0;if((r|0)!=(m|0))continue;break}}l=l&3;if(!l)break b;while(1){j=P(h,3)+b|0;m=K[i+8|0]|K[i+9|0]<<8;H[j|0]=m;H[j+1|0]=m>>>8;H[j+2|0]=K[i+10|0];h=h+1|0;n=n+1|0;if((l|0)!=(n|0))continue;break}break b;case 7:case 8:kc[J[J[d>> +2]+12>>2]](d,i+6|0,2,1,0,0)|0;k=K[i+15|0];if(!k)break b;h=L[i+6>>1];l=h<<3;n=h>>>7&248;m=h>>>2&248;r=0;j=0;if(k>>>0>=4){t=k&252;o=0;while(1){q=P(j,3);h=q+b|0;H[h+2|0]=n;H[h+1|0]=m;H[h|0]=l;q=(q|3)+b|0;H[q+2|0]=n;H[q+1|0]=m;H[q|0]=l;H[h+11|0]=n;H[h+10|0]=m;H[h+9|0]=l;H[h+8|0]=n;H[h+7|0]=m;H[h+6|0]=l;j=j+4|0;o=o+4|0;if((t|0)!=(o|0))continue;break}}k=k&3;if(!k)break b;while(1){h=P(j,3)+b|0;H[h+2|0]=n;H[h+1|0]=m;H[h|0]=l;j=j+1|0;r=r+1|0;if((k|0)!=(r|0))continue;break}break b;case 0:break c;default:break b}kc[J[J[d>> +2]+12>>2]](d,i+5|0,1,1,0,0)|0;h=K[i+15|0];if(!h)break b;Ac(b,K[i+5|0],h)}if((g&255)==255){g=255;break a}kc[J[J[d>>2]+20>>2]](d,s,0)|0;break a}j=g+1|0;h=((j&255)+p|0)>(e|0);l=e-p|0;j=h?l:j;H[i+15|0]=j;dN(a,b,c,d,j&255,f,p);g=h?g-l|0:-1}h=K[i+15|0];b=(L[a+26>>1]==24?P(h,3):h)+b|0;p=h+p|0;if((p|0)<(e|0))continue;break}fc=i+16|0;return g&255}function MYa(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;d=fc-96|0;fc=d;a:{b:{g=J[a+168>>2];c:{if(!g)break c;h=d- -64|0;J[h>>2]=0;J[h+4>>2]=0;J[d+ +56>>2]=0;J[d+60>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;h=J[b+492>>2];J[699344]=0;g=ga(3416,g|0,h+8|0,d+48|0)|0;h=J[699344];J[699344]=0;d:{e:{if((h|0)!=1){if(!g|J[b+592>>2]==3)break d;h=J[c>>2];J[699344]=0;g=_(27,(h>>>0>1073741823?-1:h<<2)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;break a}J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;if((h|0)<=0)break e;f:{f=J[d+76>>2];if(f){b=0;break f}i=J[c+4>>2];f=J[d+72>>2];if(f){c=0;b=0;if(h>>>0>=4){e=h&-4;while(1){J[g+(b<<2)>>2]=J[f+(H[b+i|0]<<2)>>2];k=b|1;J[g+(k<< +2)>>2]=J[f+(H[i+k|0]<<2)>>2];k=b|2;J[g+(k<<2)>>2]=J[f+(H[i+k|0]<<2)>>2];k=b|3;J[g+(k<<2)>>2]=J[f+(H[i+k|0]<<2)>>2];b=b+4|0;j=j+4|0;if((e|0)!=(j|0))continue;break}}e=h&3;if(!e)break e;while(1){J[g+(b<<2)>>2]=J[f+(H[b+i|0]<<2)>>2];b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}break e}f=0;b=0;if(h>>>0>=4){k=h&-4;c=0;while(1){e=H[b+i|0];J[g+(b<<2)>>2]=e?e:65534;j=b|1;e=H[j+i|0];J[g+(j<<2)>>2]=e?e:65534;j=b|2;e=H[j+i|0];J[g+(j<<2)>>2]=e?e:65534;j=b|3;e=H[j+i|0];J[g+(j<<2)>>2]=e?e:65534;b=b+4|0;c=c+4| +0;if((k|0)!=(c|0))continue;break}}c=h&3;if(!c)break e;while(1){e=H[b+i|0];J[g+(b<<2)>>2]=e?e:65534;b=b+1|0;f=f+1|0;if((c|0)!=(f|0))continue;break}break e}while(1){i=H[J[c+4>>2]+b|0];g:{if(!f)break g;f=L[(i<<2)+f>>1];J[699344]=0;da(3417,d+32|0,f|0);f=J[699344];J[699344]=0;if((f|0)!=1)break g;break b}f=g+(b<<2)|0;e=J[d+72>>2];h:{if(e){e=J[e+(i<<2)>>2];break h}e=i?i:65534}J[f>>2]=e;b=b+1|0;if((b|0)>=J[c>>2])break e;f=J[d+76>>2];continue}}b=Z()|0;break a}a=J[a+104>>2];J[d+24>>2]=954437176;J[d+28>>2]= +1078043534;J[d+16>>2]=954437176;J[d+20>>2]=1078043534;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;b=J[J[a>>2]+300>>2];J[699344]=0;za(b|0,a|0,d+32|0,g|0,h|0,d+24|0,d+16|0,d+8|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;uc(g);if(H[d+43|0]>=0)break d;uc(J[d+32>>2])}if(H[d+71|0]<0)uc(J[d+60>>2]);if(H[d+59|0]>=0)break c;uc(J[d+48>>2])}fc=d+96|0;return}b=Z()|0;if(H[d+43|0]>=0)break a;uc(J[d+32>>2])}OC(d+48|0);ba(b|0);B()}function iba(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;a:{b:{a=J[a+12>>2];d=J[a+44>>2];c:{if(!d)break c;g=J[a+48>>2];l=g+P(d,716)|0;if(!b)while(1){a=J[g>>2];if(a){e=J[g+4>>2];h=e+(a<<6)|0;while(1){d=J[e+56>>2];d:{if(!d)break d;a=J[e+52>>2];if(!a)break d;j=P(a,36)+d|0;while(1){if(!(!J[d+4>>2]|J[e+32>>2]<=0)){b=J[d>>2];f=0;while(1){e:{if(!J[b+28>>2])break e;dF(J[b+32>>2]);dF(J[b+36>>2]);c=J[b+24>>2];if(!c)break e;a=J[b+28>>2];k=a+P(c,60)|0;while(1){if(po(J[a+20>>2]))break b;c=J[a>>2]>0?J[a+4>>2]:0;J[a+16>>2]=3;J[a+8>>2]=0;J[a+40>>2]=c;c=J[d+12>> +2]-J[a+36>>2]|0;J[a+12>>2]=c;if((c|0)<0)break a;c=J[b+36>>2];bF(c,J[c+12>>2]+((a-J[b+28>>2]|0)/60<<4)|0,J[a+12>>2]);a=a+60|0;if((k|0)!=(a|0))continue;break}}b=b+52|0;f=f+1|0;if((f|0)>2])continue;break}}d=d+36|0;if((j|0)!=(d|0))continue;break}}e=e- -64|0;if((h|0)!=(e|0))continue;break}}g=g+716|0;if((l|0)!=(g|0))continue;break c}while(1){a=J[g>>2];if(a){e=J[g+4>>2];j=e+(a<<6)|0;while(1){f=J[e+56>>2];f:{if(!f)break f;a=J[e+52>>2];if(!a)break f;k=P(a,36)+f|0;while(1){if(!(!J[f+4>>2]|J[e+32>>2]<= +0)){d=J[f>>2];h=0;while(1){g:{if(!J[d+28>>2])break g;dF(J[d+32>>2]);dF(J[d+36>>2]);a=J[d+24>>2];if(!a)break g;c=J[d+28>>2];p=c+P(a,60)|0;while(1){if(po(J[c+20>>2]))break b;a=J[c>>2]>0?J[c+4>>2]:0;J[c+16>>2]=3;J[c+8>>2]=0;J[c+40>>2]=a;a=J[f+12>>2]-J[c+36>>2]|0;J[c+12>>2]=a;if((a|0)<0)break a;a=J[d+36>>2];bF(a,J[a+12>>2]+((c-J[d+28>>2]|0)/60<<4)|0,J[c+12>>2]);i=J[c>>2];h:{if(!i)break h;b=0;m=J[c+4>>2];a=m;i=P(i,72);n=i-72|0;o=((n>>>0)/72|0)+1&7;if(o)while(1){J[a+32>>2]=0;a=a+72|0;b=b+1|0;if((o|0)!= +(b|0))continue;break}if(n>>>0<504)break h;b=i+m|0;while(1){J[a+32>>2]=0;J[a+536>>2]=0;J[a+464>>2]=0;J[a+392>>2]=0;J[a+320>>2]=0;J[a+248>>2]=0;J[a+176>>2]=0;J[a+104>>2]=0;a=a+576|0;if((b|0)!=(a|0))continue;break}}c=c+60|0;if((p|0)!=(c|0))continue;break}}d=d+52|0;h=h+1|0;if((h|0)>2])continue;break}}f=f+36|0;if((k|0)!=(f|0))continue;break}}e=e- -64|0;if((j|0)!=(e|0))continue;break}}g=g+716|0;if((l|0)!=(g|0))continue;break}}return}fa(204735,199015,526,212317);B()}fa(205002,199015,532,212317); +B()}function dI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-32|0;fc=e;a:{b:{d=J[a+8>>2];if((d|0)!=2){c=J[b>>2];c:{if(!c)break c;b=J[c+8>>2];if(!b)break c;d=J[c+12>>2];while(1){c=kc[J[J[a>>2]+12>>2]](a,d,b)|0;if(!c){a=Qc(e+8|0,2390640,2387108,474,2396576,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);ba(b|0);B()}d=c+d|0;g=c+g|0;b=b-c|0;if(b)continue;break}d=J[a+8>>2]}if((d|0)!=1)break a;J[a+8>>2]=3;break a}d=fc-16|0;fc=d;J[e>>2]=0;J[e+4>>2]=J[685894];d:{e:{f:{g:{h:{c= +J[b>>2];if(!c|J[c+8>>2]-1>>>0>4294967293)break h;J[699344]=0;ia(5645,d+4|0,b|0,0,0);c=J[699344];J[699344]=0;if((c|0)!=1){c=J[d+4>>2];i:{if(c){f=J[J[c>>2]+24>>2];J[699344]=0;ca(f|0,d+12|0,c|0,2);c=J[699344];J[699344]=0;if((c|0)!=1)break i;a=Z()|0;break g}J[d+12>>2]=0}J[699344]=0;aa(5153,e|0,d+12|0)|0;c=J[699344];J[699344]=0;j:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break j;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)!=1){if(f)break j;J[699344]=0;$(5147,c|0);c=J[699344]; +J[699344]=0;if((c|0)!=1)break j}break e}a=Z()|0;zc(d+12|0);break g}c=J[e>>2];J[e+4>>2]=J[(c?c+12|0:2743576)>>2];c=J[d+4>>2];J[d+4>>2]=0;k:{if(!c)break k;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)==1)break e;if(f)break k;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break e}c=J[e>>2];if(J[c+8>>2]?c:0)break h;b=J[b>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;aa(5646,e|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break h;a=Z()|0;break f}a=Z()|0;break f}fc=d+ +16|0;break d}wc(d+4|0)}wc(e);ba(a|0);B()}ea(0)|0;Bc();B()}l:{m:{n:{d=J[e>>2];o:{if(!d)break o;b=J[d+8>>2];if(!b)break o;d=J[d+12>>2];while(1){c=J[J[a>>2]+12>>2];J[699344]=0;c=ga(c|0,a|0,d|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break n;if(!c){J[699344]=0;a=ja(5178,e+8|0,2390640,2387108,474,2396576,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);break l}d=c+d|0;g=c+g|0;b=b-c|0;if(b)continue;break}}wc(e);break a}b= +Z()|0;break l}b=Z()|0}wc(e);ba(b|0);B()}B()}fc=e+32|0;return g|0}function ZM(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;o=J[a+88>>2];J[c>>2]=0;g=a+828|0;a:{if(!K[a+848|0]){n=J[a+104>>2];J[g+16>>2]=0;J[g+20>>2]=0;h=8;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;e=L[a+152>>1];if(!e)break a;d=J[a+156>>2];e=d+(e<<4)|0;while(1){b:{if(J[d>>2]==1111770656){f=J[d+12>>2];if(f)break b}d=d+16|0;if(e>>>0>d>>>0)continue;break a}break}if(yd(n,J[d+8>>2])|f>>>0<8)break a;if(Oi(n, +f,g))break a;d=J[a+828>>2];J[a+832>>2]=d+f;c:{d:{if((K[d+1|0]|K[d|0]<<8)!=1)break d;e=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(e>>>0<8)break d;l=K[d+2|0]<<8;k=K[d+3|0];h=l|k;if(f>>>0>>0|h>>>0>e-8>>>2>>>0)break d;J[a+840>>2]=f-e;m=d+e|0;J[a+836>>2]=m;J[a+844>>2]=h;d=d+8|0;j=d+(h<<2)|0;e:{if(!h)break e;f=k&3;if(f){e=d;while(1){h=h-1|0;j=P(K[e+3|0]|K[e+2|0]<<8,10)+j|0;d=e+4|0;e=d;i=i+1|0;if((f|0)!=(i|0))continue;break}}if((k|l)-1>>>0<3)break e; +while(1){j=(((P(K[d+3|0]|K[d+2|0]<<8,10)+j|0)+P(K[d+7|0]|K[d+6|0]<<8,10)|0)+P(K[d+11|0]|K[d+10|0]<<8,10)|0)+P(K[d+15|0]|K[d+14|0]<<8,10)|0;d=d+16|0;h=h-4|0;if(h)continue;break}}if(j>>>0<=m>>>0)break c}$f(n,g);J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;return 8}H[a+848|0]=1}h=6;if(!b|!o)break a;f=J[a+844>>2];m=Yc(b);if(!m|!f)break a;d=J[g>>2]+8|0;e=d+(f<<2)|0;i=L[o+14>>1];while(1){j=K[d+3|0]|K[d+2|0]<<8;if((i|0)==(K[d+1|0]|K[d|0]<<8)){if(!j)break a;while(1){f:{f=K[e+5| +0];if(!(f&16))break f;l=J[a+840>>2];d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(l>>>0<=d>>>0)break f;i=l-d|0;if(i>>>0<=m>>>0)break f;k=K[e+6|0]|K[e+7|0]<<8|(K[e+8|0]<<16|K[e+9|0]<<24);g=d;d=J[a+836>>2];if(ud(b,g+d|0,i))break f;i=k<<24|(k&65280)<<8|(k>>>8&65280|k>>>24);g:switch(f&15){case 0:case 1:if(i>>>0>=l>>>0)break f;d=d+i|0;if(!Cg(d,0,l))break f;J[c+4>>2]=d;J[c>>2]=1;return 0;case 2:J[c+4>>2]=i;J[c>>2]=2;return 0;case 3:break g;default:break f}J[c+ +4>>2]=i;J[c>>2]=3;return 0}e=e+10|0;j=j-1|0;if(j)continue;break}break a}d=d+4|0;e=P(j,10)+e|0;f=f-1|0;if(f)continue;break}}return h|0}function nwa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;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;i=fc-1312|0;fc=i;g=P(L[c+8>>1],d);o=P(L[c+10>>1],d);a:{b:{c:{d:{if(!e)break d;p=J[e>>2];e:{if((p|0)<0)break e;l=J[e+4>>2];if((l|0)<0)break e;j=o;o=J[e+8>>2];if((j|0)<(o|0))break e;j=g;g=J[e+12>>2];if((j|0)>=(g|0))break d}a=Qc(i+256| +0,2393246,2385793,1587,2425010,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break a}r=L[a+10>>1];s=L[b+10>>1];h=L[a+8>>1];q=L[b+8>>1];j=L[b+16>>1];u=j-1|0;f:{if(u>>>0<2)break f;e=1;if((j|0)!=3){t=(j&65534)-4|0;while(1){n=i+256|0;J[n+(e<<2)>>2]=(e<<16>>>0)/(u>>>0);m=n;n=e+1|0;J[m+(n<<2)>>2]=(n<<16>>>0)/(u>>>0);e=e+2|0;n=(k|0)==(t|0);k=k+2|0;if(!n)continue;break}}if(!(j&1))break f;J[(i+256|0)+(e<<2)>>2]=(e<<16>>>0)/(u>>>0)}IH(f,i);e=(l|0)/(d|0)|0;j=L[c+8>>1];m=L[c+12>>1];x= +J[c+16>>2];k=(p|0)/(d|0)|0;if(!J[b+20>>2])_i(b);t=L[b+12>>1];n=L[b+14>>1];if(L[b+8>>1]){b=b+20|0;break b}b=2743556;if(J[685890]>=(n+t|0))break b;a=Qc(i+1288|0,2393468,2393871,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break a}B()}g=g-l|0;h=h>>>0>q>>>0?q:h;v=(h|0)>(g|0)?g:h;g:{if((v|0)<=0)break g;g=o-p|0;o=r>>>0>s>>>0?s:r;w=(g|0)<(o|0)?g:o;if((w|0)<=0)break g;g=l-P(d,e)|0;l=g>>31;e=l+e|0;r=(e|0)>=0?e>>>0>>0?x+P(P(e,m),3)|0:0:0;j=k;e=p-P(d,k)|0;k=e>>31;o=j+ +k|0;j=e+(d&k)|0;s=g+(d&l)|0;l=t+J[b>>2]|0;p=L[a+8>>1]?J[a+16>>2]:0;t=P(L[a+12>>1],3);g=0;while(1){e=0;a=j;k=o;while(1){h=K[e+l|0];h:{if(!h)break h;if(h>>>0>=u>>>0){b=P(e,3)+p|0;h=P(k,3)+r|0;H[b|0]=K[K[h|0]+i|0];H[b+1|0]=K[K[h+1|0]+i|0];H[b+2|0]=K[K[h+2|0]+i|0];break h}b=P(e,3)+p|0;q=K[b|0];h=J[(i+256|0)+(h<<2)>>2];m=q;q=P(k,3)+r|0;H[b|0]=m-(P(h,m-K[K[q|0]+i|0]|0)>>>16|0);m=K[b+1|0];H[b+1|0]=m-(P(h,m-K[K[q+1|0]+i|0]|0)>>>16|0);m=b;b=K[b+2|0];H[m+2|0]=b-(P(h,b-K[K[q+2|0]+i|0]|0)>>>16|0)}a=a+1|0;b=(a| +0)>=(d|0);a=b?0:a;k=b+k|0;e=e+1|0;if((w|0)!=(e|0))continue;break}s=s+1|0;if((s|0)>=(d|0)){s=0;r=P(L[c+12>>1],3)+r|0}l=l+n|0;p=p+t|0;g=g+1|0;if((v|0)!=(g|0))continue;break}}fc=i+1312|0;return}b=Z()|0;Kc(a);ba(b|0);B()}function nBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-48|0;fc=d;a:{b:{c:{if(K[a+144|0]){b=Qc(d+24|0,2386851,2386059,230,2414197,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}if(!J[a+4>>2]){b=Qc(d+24|0,2387909,2386059,232,2414197, +0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}d:{f=J[b+8>>2];e:{if(!f|!J[f+8>>2])break e;e=d+24|0;Pj(e,b,0);f=J[d+24>>2];if(!f){wc(e);break e}f=J[f+8>>2];wc(d+24|0);if(f)break d}b=Qc(d+24|0,2389272,2386059,234,2414197,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}h=a+72|0;sH(h,b);J[a+152>>2]=0;J[a+68>>2]=0;f=si();vt(f,a,a);f:{b=J[c>>2];if(!b){g=wt(8);J[g>>2]=0;J[g+4>>2]=0;J[699344]=0;e=_(5379,g|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break f;J[e>>2]=2418472;Rj(c,vd(a+164|0,e));b=J[c>>2]}vt(f,a,b);H[a+144|0]=1;b=d+16|0;kc[J[J[f>>2]+16>>2]](b,f,a,h);J[699344]=0;c=d+24|0;ia(5446,c|0,b|0,0,-1);b=J[699344];J[699344]=0;g:{h:{i:{j:{k:{l:{m:{if((b|0)!=1){J[699344]=0;c=aa(5153,a+108|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;f=J[c>>2];e=J[d+24>>2];J[d+24>>2]=0;n:{if(!e)break n;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break n;J[699344]=0;$(5147,e|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a}e=J[d+16>>2];J[d+16>>2]=0;o:{if(!e)break o;J[699344]=0;c=J[e+4>>2]-1|0;J[e+4>>2]=c;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c)break o;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(f)break g;a=d+8|0;Pj(a,h,0);J[699344]=0;ca(5218,d+16|0,2390072,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;a=J[d+16>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;b=ja(5178,d+24|0,a|0,2386059,253,2414197,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]= +0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break i}a=Z()|0;break l}a=Z()|0;zc(d+24|0)}zc(d+16|0);break c}a=Z()|0;break h}a=Z()|0}wc(d+16|0)}wc(d+8|0);break c}aI(J[a+108>>2],0,-1,5473,a);fc=d+48|0;return}a=Z()|0;Gm(g)}ba(a|0)}B()}ea(0)|0;Bc();B()}function QY(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,w=0;r=J[a+24>>2];if(!J[r+16>>2])return 1;s=J[r+24>>2];l=J[J[J[a+20>>2]>>2]+20>>2];a:{b:{while(1){c=J[s+36>>2];J[b+36>>2]=c;f= +J[l+28>>2];u=J[a+64>>2];c:{if(u){d=(f+P(J[l+24>>2],152)|0)-152|0;p=J[d+8>>2]-J[d>>2]|0;c=f+P(c,152)|0;i=c+12|0;f=J[c+8>>2];j=J[c>>2];c=c+4|0;e=l+36|0;break c}c=f+P(c,152)|0;f=J[c+144>>2];j=J[c+136>>2];p=f-j|0;i=c+148|0;c=c+140|0;e=l+52|0}v=J[e>>2];d:{e:{if(!v)break e;if((j|0)<0)break b;if((f|0)<0)break a;o=J[c>>2];q=J[i>>2];d=f-j|0;i=J[b+8>>2];h=J[b+40>>2];c=h&31;if((h&63)>>>0>=32){g=-1<>>32-c;c=-1<>2];n=k+m|0;e=g^-1;c=e;c=n>>>0>>0?c+1|0:c;g=h& +31;if((h&63)>>>0>=32)g=c>>>g|0;else g=((1<>>g;c=g+i|0;f:{if(g>>>0>>0){t=j-g|0;n=0;if(c>>>0>=f>>>0){m=0;f=d;break f}f=c-j|0;m=d-f|0;break f}n=g-j|0;if(c>>>0>=f>>>0){f=d-n|0;t=0;m=0;break f}m=f-c|0;t=0;f=i}c=q-o|0;g=J[b+12>>2];d=k;k=J[b+20>>2];j=d+k|0;d=e;d=j>>>0>>0?d+1|0:d;e=h&31;if((h&63)>>>0>=32)h=d>>>e|0;else h=((1<>>e;d=h+g|0;g:{if(h>>>0>>0){k=o-h|0;h=0;e=0;if(d>>>0>=q>>>0)break g;e=c;c=d-o|0;e=e-c|0;break g}h=h-o|0;if(d>>>0>=q>>>0){c=c-h|0;k=0;e=0;break g}k= +0;c=g;e=q-d|0}j=0;if((n|h|(m|e))<0)break d;if((f|c)<0)break d;d=P(i,k)+t|0;h:{i:{j:{e=J[b+44>>2];h=P(h,p)+n|0;if(e|h|((i|0)!=(p|0)|d))break j;if((f|0)!=(i|0))break j;if((c|0)!=(g|0))break i;f=(u?36:52)+l|0;J[b+44>>2]=J[f>>2];J[f>>2]=0;break e}if(e)break h}if(!g)break d;vEb(g,0,i,0);if(jc)break d;i=P(g,i);if(i>>>0>1073741823)break d;i=ul(i<<2);J[b+44>>2]=i;if(!i)break d;g=J[b+8>>2];e=J[b+12>>2];if((g|0)==(f|0)&(e|0)==(c|0))break h;Ac(i,0,P(g,e)<<2)}if(!c)break e;i=c&1;f=f<<2;d=J[b+44>>2]+(d<<2)|0; +j=(h<<2)+v|0;if((c|0)!=1){h=c&-2;c=0;while(1){g=xc(d,j,f);e=p<<2;d=e+j|0;j=d+e|0;d=xc((J[b+8>>2]<<2)+g|0,d,f)+(J[b+8>>2]<<2)|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!i)break e;xc(d,j,f)}l=l+76|0;s=s+52|0;b=b+52|0;j=1;w=w+1|0;if(w>>>0>2])continue}break}return j}fa(2370914,2358254,9883,2370926);B()}fa(2370952,2358254,9884,2370926);B()}function TZ(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;c=fc-32|0;fc=c;f=J[a+116>>2];J[f+132>>2]=0;a:{b:{c:{a=J[f+ +208>>2];j=J[a+8>>2];d:{e:{if((j|0)<=0)break e;g=J[a>>2];i=J[b+492>>2];if(!i){a=0;while(1){i=J[g+(a<<2)>>2];J[f+132>>2]=i;if((J[i>>2]&J[i+4>>2])==-1)break d;J[f+132>>2]=0;a=a+1|0;if((j|0)!=(a|0))continue;break}break e}a=0;while(1){k=J[g+(a<<2)>>2];J[f+132>>2]=k;if(J[i+8>>2]==J[k>>2]&J[i+12>>2]==J[k+4>>2])break d;J[f+132>>2]=0;a=a+1|0;if((j|0)!=(a|0))continue;break}}a=vc(40);J[699344]=0;j=aa(3654,a|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;J[f+132>>2]=j;sd(J[f+208>>2],j);a=J[b+492>>2];if(!a)break d; +if(!(kc[J[J[a>>2]+20>>2]](a)|0))break d;J[f+244>>2]=1}g=J[b+492>>2];e=O[b+496>>3];d=O[b+520>>3]*e;e=e*O[b+528>>3];h=O[b+16>>3]*d+e*O[b+32>>3];e=O[b+24>>3]*d+e*O[b+40>>3];e=Y(h*h+e*e);O[f+136>>3]=e;if(!g)break b;f:{if(J[g+20>>2]!=4)break f;k=-1;a=0;i=-1;j=-1;while(1){n=J[(g+(a<<2)|0)+164>>2];g:{if(!n)break g;o=K[n|0];k=(o|0)==109?K[n+1|0]?k:a:k;i=((o&223)-65&255)>>>0>25|(i|0)>=0?i:K[n+1|0]?i:a;if(!(O[(g+(a<<3)|0)+1464>>3]>0)|(j|0)>=0)break g;j=a}a=a+1|0;if((a|0)!=256)continue;break}h:{i:{j:{if((k| +0)<0)break j;d=O[(g+((k&255)<<3)|0)+1464>>3];if(!(d>0))break j;h=d/.6;break i}k:{if((i|0)<0)break k;d=O[(g+((i&255)<<3)|0)+1464>>3];if(!(d>0))break k;h=d+d;break i}if((j|0)<0)break h;d=O[(g+((j&255)<<3)|0)+1464>>3];if(!(d>0))break h;h=d+d}e=e*h;O[f+136>>3]=e}d=O[g+40>>3];if(d==0)break f;O[f+136>>3]=e*R(O[g- -64>>3]/d)}c$(b,c,c|8,c+16|0,c+24|0);if(J[g+20>>2]!=4)break a;e=O[g+48>>3];d=O[g+40>>3];h=O[g+56>>3];l=O[c+8>>3];p=O[c+24>>3];m=O[g- -64>>3];O[c+24>>3]=h*l+p*m;q=h;h=O[c>>3];r=m;m=O[c+16>>3];O[c+ +16>>3]=q*h+r*m;O[c+8>>3]=d*l+e*p;O[c>>3]=d*h+e*m;break a}b=Z()|0;uc(a);ba(b|0);B()}c$(b,c,c|8,c+16|0,c+24|0)}l:{if(O[f+136>>3]==0){J[f+144>>2]=0;J[f+148>>2]=0;e=O[c>>3];break l}e=O[c>>3];d=R(e);l=O[c+8>>3];h=R(l);if(d>=h){J[f+148>>2]=h>d*.1;J[f+144>>2]=!(e>0)<<1;break l}J[f+148>>2]=d>h*.1;J[f+144>>2]=l>0?1:3}a=1;if(!(!(R(O[c+16>>3])<.001)|(!(e>0)|!(R(O[c+8>>3])<.001))))a=!(O[c+24>>3]<0);J[f+152>>2]=a;fc=c+32|0}function Xj(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=-1;a:{b:{if(J[a+32>>2]|(!a|!b))break b; +f=J[a+24>>2];d=J[a+8>>2];if(!((f|0)==(d|0)|d>>>0>2147483646)){J[a+24>>2]=d;f=d}d=J[a+20>>2];e=J[a+4>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[a+20>>2]=e;d=e}e=-1;if((c|0)<-1)break b;g=J[a+12>>2];if((g|0)==2)break b;if(!c)return 0;if((c|0)<0){c=0;if(!K[b|0])return 0;e=b;while(1){c=c+1|0;i=K[e+1|0];e=e+1|0;if(i)continue;break}}e=(c+d|0)+2|0;if(e>>>0>f>>>0){if(!((g|0)!=5|e>>>0<15E6)){sq(a,33701);return-1}i=fc-16|0;fc=i;c:{if(J[a+32>>2]|!a)break c;f=J[a+24>>2];d=J[a+8>>2];if(!((f|0)==(d|0)|d>>>0>2147483646)){J[a+ +24>>2]=d;f=d}g=J[a+20>>2];d=J[a+4>>2];if(!((g|0)==(d|0)|d>>>0>2147483646)){J[a+20>>2]=d;g=d}h=J[a+12>>2];if((h|0)==2)break c;if(!((h|0)!=5|e>>>0<15E6)){J[i>>2]=33701;Hc(0,0,0,0,0,29,2,3,33701,0,0,0,32879,i);if(J[a+32>>2])break c;J[a+32>>2]=2;break c}j=1;if(e>>>0>>0)break c;d:{e:{f:{g:{h:{i:switch(h|0){case 0:case 3:d=f?f<<1:e+10|0;if(e>>>0<=d>>>0)break h;while(1){if((d|0)<0){sq(a,5424);j=0;break c}d=d<<1;if(e>>>0>d>>>0)continue;break}break h;case 4:if(g>>>0<4096){d=e;break f}d=f;while(1){d=d<< +1;if(e>>>0<=d>>>0)break h;if((d|0)>=0)continue;break}sq(a,5424);j=0;break c;case 1:break g;default:break i}d=e+10|0}if((h|0)!=3)break f;e=J[a+16>>2];if(!e)break f;h=J[a>>2];f=h-e|0;if(f>>>0>d>>>0){cd(e,h,g);f=J[a+16>>2];J[a>>2]=f;H[f+J[a+20>>2]|0]=0;break e}e=kc[J[663200]](e,d+f|0)|0;if(!e){sq(a,5424);j=0;break c}J[a+16>>2]=e;J[a>>2]=e+f;break e}d=e+10|0}j:{k:{e=J[a>>2];l:{if(!e){e=kc[J[663198]](d)|0;break l}if(f-g>>>0>99)break k;e=kc[J[663200]](e,d)|0}if(e)break j;break d}e=kc[J[663198]](d)|0;if(!e)break d; +f=xc(e,J[a>>2],J[a+20>>2]);kc[J[663199]](J[a>>2]);H[J[a+20>>2]+f|0]=0}J[a>>2]=e}J[a+24>>2]=d;J[a+8>>2]=d>>>0>=2147483647?2147483647:d;d=J[a+20>>2];J[a+4>>2]=d>>>0>=2147483647?2147483647:d;break c}sq(a,5424);j=0}fc=i+16|0;if(!j)break a;d=J[a+20>>2]}cd(J[a>>2]+d|0,b,c);b=J[a+20>>2]+c|0;J[a+20>>2]=b;e=0;H[b+J[a>>2]|0]=0;b=J[a+24>>2];J[a+8>>2]=b>>>0>=2147483647?2147483647:b;b=a;a=J[a+20>>2];J[b+4>>2]=a>>>0>=2147483647?2147483647:a}return e}sq(a,5424);return 2}function mxa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;k=(g|0)/4|0;a:{if(!f)break a;c=f-1|0;j=J[a+60>>2];if(e>>>0>=4){d=e-4|0;m=d&4;n=d>>>0<4;o=(e&3|4)-5|0;while(1){l=c;a=e;f=b;c=i;if(!m){a=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=J[a+12>>2];f=b+16|0;c=c+1|0;a=d}g=d;if(!n){while(1){b=f;g=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[g>>2];J[b+4>>2]=J[g+4>>2];J[b+8>>2]=J[g+8>>2];J[b+12>>2]=J[g+12>>2];g=c;i=J[(K[c+1|0]<<2)+j>>2];J[b+16>>2]=J[i>>2];J[b+ +20>>2]=J[i+4>>2];J[b+24>>2]=J[i+8>>2];J[b+28>>2]=J[i+12>>2];f=b+32|0;c=c+2|0;a=a-8|0;if(a>>>0>3)continue;break}i=g+1|0;g=a;b=b+16|0}b:{if(g){a=2;c=J[(K[c|0]<<2)+j>>2];c:switch(o|0){case 2:J[f>>2]=J[c>>2];f=b+20|0;c=c+4|0;case 1:J[f>>2]=J[c>>2];f=f+4|0;c=c+4|0;break;case 0:break c;default:break b}J[f>>2]=J[c>>2];f=f+4|0;break b}a=1}c=l-1|0;i=(a+i|0)+k|0;b=(h<<2)+f|0;if(l)continue;break}break a}d:switch(e-1|0){case 1:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];i=(i+k|0)+1|0;b= +((h<<2)+b|0)+8|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];a=h<<2;b=a+b|0;c=b+8|0;d=(i+k|0)+1|0;e=J[(K[d|0]<<2)+j>>2];J[c>>2]=J[e>>2];J[b+12>>2]=J[e+4>>2];b=(a+c|0)+8|0;i=(d+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 2:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+12|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]= +J[a+4>>2];J[b+8>>2]=J[a+8>>2];c=h<<2;a=c+b|0;d=a+12|0;e=(i+k|0)+1|0;b=J[(K[e|0]<<2)+j>>2];J[d>>2]=J[b>>2];J[a+16>>2]=J[b+4>>2];J[a+20>>2]=J[b+8>>2];b=(c+d|0)+12|0;i=(e+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 0:break d;default:break a}if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=c;if(!c)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0; +a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function bya(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;k=(g|0)/4|0;a:{if(!f)break a;c=f-1|0;j=J[a+64>>2];if(e>>>0>=4){d=e-4|0;m=d&4;n=d>>>0<4;o=(e&3|4)-5|0;while(1){l=c;a=e;f=b;c=i;if(!m){a=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=J[a+12>>2];f=b+16|0;c=c+1|0;a=d}g=d;if(!n){while(1){b=f;g=J[(K[c|0]<<2)+j>>2];J[b>>2]=J[g>>2];J[b+4>>2]=J[g+4>>2];J[b+8>>2]= +J[g+8>>2];J[b+12>>2]=J[g+12>>2];g=c;i=J[(K[c+1|0]<<2)+j>>2];J[b+16>>2]=J[i>>2];J[b+20>>2]=J[i+4>>2];J[b+24>>2]=J[i+8>>2];J[b+28>>2]=J[i+12>>2];f=b+32|0;c=c+2|0;a=a-8|0;if(a>>>0>3)continue;break}i=g+1|0;g=a;b=b+16|0}b:{if(g){a=2;c=J[(K[c|0]<<2)+j>>2];c:switch(o|0){case 2:J[f>>2]=J[c>>2];f=b+20|0;c=c+4|0;case 1:J[f>>2]=J[c>>2];f=f+4|0;c=c+4|0;break;case 0:break c;default:break b}J[f>>2]=J[c>>2];f=f+4|0;break b}a=1}c=l-1|0;i=(a+i|0)+k|0;b=(h<<2)+f|0;if(l)continue;break}break a}d:switch(e-1|0){case 1:if(f& +1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+8|0;f=f-2|0}else f=c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];a=h<<2;b=a+b|0;c=b+8|0;d=(i+k|0)+1|0;e=J[(K[d|0]<<2)+j>>2];J[c>>2]=J[e>>2];J[b+12>>2]=J[e+4>>2];b=(a+c|0)+8|0;i=(d+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 2:if(f&1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+12|0;f=f-2|0}else f= +c;if(!c)break a;while(1){a=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];c=h<<2;a=c+b|0;d=a+12|0;e=(i+k|0)+1|0;b=J[(K[e|0]<<2)+j>>2];J[d>>2]=J[b>>2];J[a+16>>2]=J[b+4>>2];J[a+20>>2]=J[b+8>>2];b=(c+d|0)+12|0;i=(e+k|0)+1|0;a=(f|0)==1;f=f-2|0;if(!a)continue;break}break a;case 0:break d;default:break a}if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=c;if(!c)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c= +(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function aAb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=kc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+(b<<2)|0)+(J[a+672>>2]<<2)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!f)break b;if((c|0)<=(e|0))break a; +while(1){H[d|0]=K[b+2|0];H[d+1|0]=K[b+1|0];c=K[b|0];H[d+3|0]=255;H[d+2|0]=c;b=b+4|0;c=J[a+584>>2];d=(c<<2)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=g+(b<<3)|0;if(f){if((c|0)<=(e|0))break a;while(1){H[d|0]=K[b+4|0];H[d+1|0]=K[b+2|0];c=K[b|0];H[d+3|0]=255;H[d+2|0]=c;b=b+8|0;c=J[a+584>>2];d=(c<<2)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;if(c){c:{if((c|0)==65535){H[d|0]=K[b+4|0];H[d+1|0]=K[b+ +2|0];H[d+2|0]=K[b|0];break c}f=K[b+2|0]|K[b+3|0]<<8;g=K[b+4|0]|K[b+5|0]<<8;h=K[b|0]|K[b+1|0]<<8;i=P(c,(h<<8|h>>>8)&65535);h=K[d+2|0];j=h<<8|h;h=c^65535;i=(i+P(j,h)|0)+32768|0;H[d+2|0]=(i>>>16|0)+i>>>24;i=P((f<<8|f>>>8)&65535,c);f=K[d+1|0];f=(i+P(h,f<<8|f)|0)+32768|0;H[d+1|0]=(f>>>16|0)+f>>>24;f=P(c,(g<<8|g>>>8)&65535);c=K[d|0];c=(f+P(h,c<<8|c)|0)+32768|0;H[d|0]=(c>>>16|0)+c>>>24}H[d+3|0]=255}b=b+8|0;c=J[a+584>>2];d=(c<<2)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a; +while(1){c=K[b+3|0];if(c){d:{if((c|0)==255){H[d|0]=K[b+2|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b|0];break d}f=c^255;g=(P(c,K[b+2|0])+P(f,K[d|0])|0)+128|0;H[d|0]=(g>>>8&255)+g>>>8;g=(P(c,K[b+1|0])+P(f,K[d+1|0])|0)+128|0;H[d+1|0]=(g>>>8&255)+g>>>8;c=(P(c,K[b|0])+P(f,K[d+2|0])|0)+128|0;H[d+2|0]=(c>>>8&255)+c>>>8}H[d+3|0]=255}b=b+4|0;c=J[a+584>>2];d=(c<<2)+d|0;e=c+e|0;if((e|0)>2])continue;break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e; +b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function JAa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=fc-48|0;fc=e;a:{b:{c:{d:{b=J[a+140>>2];if((b|0)<0){b=e+44|0;Fn(b,J[a+108>>2]);J[e+36>>2]=0;J[e+40>>2]=J[685894];J[699344]=0;da(5278,e+32|0,b|0);b=J[699344];J[699344]=0;e:{f:{g:{h:{i:{j:{k:{if((b|0)!=1){J[699344]=0;f=J[e+32>>2];b=ha(5279,f|0,e+36|0,0,0)|0;c=J[699344]; +J[699344]=0;if((c|0)==1)break k;if(b)break g;J[699344]=0;b=ja(5178,e+8|0,J[685886],2386059,2058,2415976,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break j;J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break i;B()}d=Z()|0;break b}d=Z()|0;break c}d=ea(2423616)|0;c=gc;break h}d=ea(2423616)|0;c=gc;Kc(b)}if((sa(2423616)|0)!=(c|0))break c;b=oa(d|0)|0;c=J[J[a>>2]+64>>2];J[699344]=0;ca(c|0,a|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1)break g; +d=Z()|0;break c}break f}b=0;l:{m:{while(1){n:{c=b;J[699344]=0;d=ha(5279,f|0,e+36|0,0,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break n;if(!d)break m;J[699344]=0;$(5468,f|0);d=J[699344];J[699344]=0;b=b+1|0;if((d|0)!=1)continue}break}d=ea(2423616)|0;if((gc|0)!=(sa(2423616)|0))break c;d=oa(d|0)|0;f=b;b=J[a+132>>2];J[a+140>>2]=(b|0)>2?f:c;c=J[J[a>>2]+64>>2];J[699344]=0;ca(c|0,a|0,d|0,(b|0)<2|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break l; +break e}J[a+140>>2]=c;break e}d=Z()|0;break c}d=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break c;break a}b=J[a+108>>2];J[699344]=0;da(5269,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[e+32>>2];J[e+32>>2]=0;o:{if(!b)break o;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break o;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}wc(e+36|0);b=J[e+44>>2];J[e+44>>2]=0;p:{if(!b)break p;J[699344]=0;c=J[b+4>>2]-1|0; +J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break p;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+140>>2]}fc=e+48|0;return b|0}d=Z()|0}zc(e+32|0)}wc(e+36|0);zc(e+44|0);ba(d|0);B()}ea(0)|0;Bc();B()}function USa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;H[a+224|0]=0;H[a+225|0]=0;H[a+226|0]=0;H[a+227|0]=0;H[a+228|0]=0;H[a+229|0]=0;H[a+230|0]=0;H[a+231|0]=0;H[a+248|0]=0; +H[a+249|0]=0;H[a+250|0]=0;H[a+251|0]=0;H[a+252|0]=0;H[a+253|0]=0;H[a+254|0]=0;H[a+255|0]=0;H[a+240|0]=0;H[a+241|0]=0;H[a+242|0]=0;H[a+243|0]=0;H[a+244|0]=0;H[a+245|0]=0;H[a+246|0]=0;H[a+247|0]=0;H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;H[a+239|0]=0;f=a;while(1){d=J[(m<<2)+b>>2]+c|0;h=K[d|0];e=K[d+3|0];i=K[d+10|0];w=e-i|0;l=K[d+13|0];g=h-l|0;p=K[d+2|0];q=K[d+11|0];j=p-q|0;r=K[d+1|0];s=K[d+12|0];k=r-s|0;x=j+k|0;t=K[d+5|0];u=K[d+8|0];n=t-u|0;v=K[d+4| +0];y=K[d+9|0];o=v-y|0;z=n-o|0;A=K[d+6|0];B=K[d+7|0];d=A-B|0;J[f+28>>2]=w+g-((x+z|0)+d)<<2;v=v+y|0;p=p+q|0;q=v+p|0;e=e+i|0;i=t+u|0;r=r+s|0;s=i+r|0;t=A+B|0;l=h+l|0;u=t+l|0;J[f>>2]=(((q+e|0)+s|0)+u<<2)-7168;h=e<<1;J[f+16>>2]=((P(q-h|0,-7223)+P(s-h|0,2578)|0)+P(u-h|0,10438)|0)+1024>>11;e=l-t|0;i=r-i|0;l=P(e+i|0,9058)+1024|0;h=p-v|0;J[f+24>>2]=(l+P(h,-11295)|0)+P(i,-14084)>>11;J[f+8>>2]=(l+P(h,5027)|0)+P(e,2237)>>11;h=w<<13;e=((P(z,11512)-h|0)+P(x,-1297)|0)+1024|0;i=(e+P(j,-19447)|0)+P(o,9175)|0;j=P(d+ +o|0,6164)+P(g+j|0,9810)|0;J[f+20>>2]=i+j>>11;e=(e+P(k,-3474)|0)+P(n,-25148)|0;k=P(n-d|0,3826)+P(g+k|0,10935)|0;J[f+12>>2]=e+k>>11;J[f+4>>2]=(j+((d+(h+k|0)|0)+P(d+g|0,-9232)|0)|0)+1024>>11;f=f+32|0;d=7;m=m+1|0;if((m|0)!=7)continue;break}while(1){j=J[a+128>>2];k=J[a+64>>2];f=j+k|0;n=J[a+192>>2];o=J[a>>2];g=n+o|0;e=f+g|0;c=J[a+96>>2];m=J[a+160>>2];h=J[a+32>>2];b=m+h|0;J[a>>2]=P(e+(c+b|0)|0,10700)+32768>>16;e=P(e-(c<<2)|0,3783);i=P(g-b|0,9434)+32768|0;g=P(g-f|0,9850);J[a+192>>2]=e+(i-g|0)>>16;f=P(b-f| +0,3367);J[a+128>>2]=(f+i|0)+P(b-(c<<1)|0,-7566)>>16;J[a+64>>2]=(e+(f+g|0)|0)+32768>>16;b=k-j|0;c=o-n|0;f=P(b+c|0,6565)+32768|0;e=f+P(b,20017)|0;g=b;b=h-m|0;g=P(g+b|0,-14752);J[a+160>>2]=e+g>>16;e=g;g=P(c-b|0,1822);b=P(b+c|0,10009);J[a+96>>2]=((e+g|0)+b|0)+32768>>16;J[a+32>>2]=b+(f-g|0)>>16;b=d;d=d-1|0;a=a+4|0;if(b)continue;break}}function xza(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;e=fc+-64|0;fc=e;d=(J[a+68>>2]-J[a- -64>>2]|0)+1|0;Fm(a+48|0,0,d);g=(b|0)<0?d:b;a:{b:{if((g|0)<(d|0))while(1){c:{b= +d;if((b|0)>J[a+64>>2]){d=b-1|0;f=J[a+68>>2];if((d|0)<=(f|0))break c}b=Qc(e+20|0,2390191,2390824,619,2417804,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break b}if((b|0)>(f|0)){b=Qc(e+20|0,2390191,2390824,619,2417804,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break b}h=J[a+52>>2];f=b;b=J[a+56>>2];f=h+(f-b<<3)|0;b=J[h+(d-b<<3)>>2];d:{if(b){kc[J[J[b>>2]+28>>2]](e+20|0,b,1);break d}J[e+20>>2]=0}J[699344]=0;aa(5153,f|0, +e+20|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[e+20>>2];J[e+20>>2]=0;if(!b)break e;J[699344]=0;h=J[b+4>>2]-1|0;J[b+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)!=1){if(h)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}ea(0)|0;Bc();B()}a=Z()|0;zc(e+20|0);break b}b=J[f>>2];J[f+4>>2]=J[(b?b+12|0:2743576)>>2];if((d|0)>(g|0))continue;break}if(!(J[a+64>>2]<=(g|0)&J[a+68>>2]>=(g|0))){b=Qc(e+20|0,2390191,2390824,619,2417804,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0; +if((a|0)!=1)break a;a=Z()|0;Kc(b);break b}tA(J[a+52>>2]+(g-J[a+56>>2]<<3)|0,c);J[699344]=0;b=aa(5149,e+56|0,c|0)|0;d=J[699344];J[699344]=0;f:{g:{h:{i:{j:{if((d|0)!=1){J[699344]=0;d=aa(5592,a+72|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break j;J[d+24>>2]=g;wc(b);J[699344]=0;c=aa(5149,e+12|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;b=ga(5343,e+20|0,c|0,a+12|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;J[699344]=0;a=aa(5593,a+100|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)== +1)break g;J[a+52>>2]=g;J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){d=J[a+4>>2]-1|0;J[a+4>>2]=d;if(!d)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);wc(c);fc=e- -64|0;return}a=Z()|0;break b}a=Z()|0;wc(b);break b}a=Z()|0;break b}a=Z()|0;break f}a=Z()|0;Ed(b)}wc(c)}ba(a|0)}B()}function W2a(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,y=0,z=0,A=0,B=0,C=0;m=J[a+4>>2];f=J[m+56>>2];e=f?-1:0;n=J[a+12>>2];c=J[a+8>>2];d=n-c>>1;j=J[a+16>>2];g=J[a+20>>2]-j|0;h=(d|0)<(g|0)?d:g;d=J[m+24>>2];g=J[a+24>>2];a:{b:{c:{d:{if(!(!f|(h|0)<=0)){d=j;i=c;break d}k=(d|0)==738044?255:127;e:{if((h|0)<16){d=j;break e}i=h>>>4|0;f=i;d=j;f:{while(1){l=L[c>>1];H[d|0]=l;o=L[c+2>>1];H[d+1|0]=o;p=L[c+4>>1];H[d+2|0]=p;q=L[c+6>>1];H[d+3|0]=q;r=L[c+8>>1];H[d+4|0]=r;s=L[c+10>>1];H[d+5|0]=s;t=L[c+12>>1];H[d+6|0]=t;u=L[c+14>>1];H[d+7|0]=u;v=L[c+16>>1];H[d+ +8|0]=v;w=L[c+18>>1];H[d+9|0]=w;x=L[c+20>>1];H[d+10|0]=x;y=L[c+22>>1];H[d+11|0]=y;z=L[c+24>>1];H[d+12|0]=z;A=L[c+26>>1];H[d+13|0]=A;B=L[c+28>>1];H[d+14|0]=B;C=L[c+30>>1];H[d+15|0]=C;if(k>>>0<(l|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C)>>>0)break f;c=c+32|0;d=d+16|0;l=(f|0)>1;f=f-1|0;if(l)continue;break}f=0}f=i-f|0;i=f<<4;h=h-i|0;if(!g){g=0;break e}j=i+j|0;if((f|0)<=0)break e;while(1){J[g>>2]=e;J[g+60>>2]=e+15;J[g+56>>2]=e+14;J[g+52>>2]=e+13;J[g+48>>2]=e+12;J[g+44>>2]=e+11;J[g+40>>2]=e+10;J[g+36>>2]=e+9;J[g+32>> +2]=e+8;J[g+28>>2]=e+7;J[g+24>>2]=e+6;J[g+20>>2]=e+5;J[g+16>>2]=e+4;J[g+12>>2]=e+3;J[g+8>>2]=e+2;J[g+4>>2]=e+1;g=g- -64|0;e=e+16|0;i=f>>>0>1;f=f-1|0;if(i)continue;break}}if((h|0)<=0){i=c;break a}while(1){g:{i=c+2|0;f=L[c>>1];if(k>>>0>>0)break g;H[d|0]=f;d=d+1|0;l=(h|0)>1;c=i;h=h-1|0;if(l)continue}break}if(f>>>0<=k>>>0)break a;if((f&64512)!=55296)break c}if(i>>>0>=n>>>0)break b;h=L[i>>1];c=(h&64512)==56320;f=c?(h+(f<<10)|0)-56613888|0:f;i=(c<<1)+i|0}J[b>>2]=(f&-2048)==55296?12:10}J[m+56>>2]=f}c= +0;h:{if(!g)break h;h=d-j|0;if(!h){c=g;break h}j=(j^-1)+d|0;k=h&7;i:{if(!k){c=g;break i}f=0;c=g;while(1){J[c>>2]=e;h=h-1|0;c=c+4|0;e=e+1|0;f=f+1|0;if((k|0)!=(f|0))continue;break}}if(j>>>0<7)break h;while(1){J[c>>2]=e;J[c+28>>2]=e+7;J[c+24>>2]=e+6;J[c+20>>2]=e+5;J[c+16>>2]=e+4;J[c+12>>2]=e+3;J[c+8>>2]=e+2;J[c+4>>2]=e+1;c=c+32|0;e=e+8|0;h=h-8|0;if(h)continue;break}}if(!(J[b>>2]>0|i>>>0>=n>>>0|M[a+20>>2]>d>>>0))J[b>>2]=15;J[a+24>>2]=c;J[a+16>>2]=d;J[a+8>>2]=i}function n3(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,r=0,s=0,t=0,u=0;q=fc+-64|0;fc=q;a:{b:{c:{d:{s=J[693248];if(L[s>>1]){if(Yc(a)>>>0<60)break d;J[c>>2]=15;break c}i=J[693254];g=i>>>1|0;t=J[693249];u=J[693244];while(1){l=g;e=a;o=(L[(g<<1)+u>>1]<<1)+t|0;f=0;j=0;while(1){k=e+1|0;d=K[e|0];e:{if(!d){h=0;m=f;break e}f:{g:{h:{i:{j:{k:{h=d<<24>>24;if((h|0)<0)break k;m=1;d=K[d+736704|0];switch(d|0){case 1:break j;case 0:break k;case 2:break e;default:break h}}d=K[k|0];break i}if(f&255)break e;m=0;f=K[k|0];d=f<<24>>24;if((d| +0)<0|(K[f+736704|0]-1&255)>>>0>1)break e}k=e+2|0;m=0;if(!(d&255)){h=0;break e}while(1){l:{m:{if(d<<24>>24<0)break m;n:{h=K[(d&255)+736704|0];switch(h|0){case 2:break g;case 0:break m;case 1:break n;default:break e}}e=K[k|0];f=e<<24>>24;if((f|0)<0|(K[e+736704|0]-1&255)>>>0>1)break f;break l}f=K[k|0]}k=k+1|0;d=f;if(d&255)continue;break}h=0;break e}m=0;h=d;break e}m=1;h=d;break e}h=d}f=o+1|0;p=0;e=K[o|0];o:{if(!e){d=0;n=j;break o}p:{q:{r:{s:{t:{u:{d=e<<24>>24;if((d|0)<0)break u;n=1;e=K[e+736704|0];switch(e| +0){case 2:break o;case 1:break t;case 0:break u;default:break r}}e=K[f|0];break s}if(j&255)break o;n=0;j=K[f|0];e=j<<24>>24;if((e|0)<0|(K[j+736704|0]-1&255)>>>0>1)break o}f=o+2|0;n=0;if(!(e&255)){d=0;break o}while(1){v:{w:{if(e<<24>>24<0)break w;x:{d=K[(e&255)+736704|0];switch(d|0){case 2:break q;case 0:break w;case 1:break x;default:break o}}j=K[f|0];d=j<<24>>24;if((d|0)<0|(K[j+736704|0]-1&255)>>>0>1)break p;break v}d=K[f|0]}f=f+1|0;e=d;if(d&255)continue;break}d=0;break o}n=0;d=e;break o}n=1;d=e; +break o}d=e}if((d|h)&255){e=k;o=f;f=m;j=n;p=(h&255)-(d&255)|0;if(!p)continue}break}if((p|0)>=0){r=g;l=i;if(!p)break b}i=l;d=g;g=i+r>>>1|0;if((d|0)!=(g|0))continue;break}break c}a=OL(q,a);i=J[693254];g=i>>>1|0;d=J[693244];e=J[693250];while(1){l=g;f=Ic(a,e+(L[d+(g<<1)>>1]<<1)|0);if((f|0)>=0){r=g;l=i;if(!f)break b}i=l;l=g;g=i+r>>>1|0;if((l|0)!=(g|0))continue;break}}a=-1;break a}d=J[693245]+(g<<1)|0;a=I[d>>1];if((a|0)<0)J[c>>2]=-122;if(b){H[b|0]=!K[s+2|0]|(a&16384)>>>14;a=L[d>>1]}a=a&4095}fc=q- -64|0; +return a}function yXa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-48|0;fc=e;a=eq(a,b,c,d);J[a+232>>2]=0;J[a+236>>2]=0;J[a>>2]=846224;J[a+240>>2]=0;J[a+244>>2]=0;J[a+248>>2]=0;J[a+252>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[e+16>>2]=13;J[e>>2]=13;b=J[b+24>>2];J[699344]=0;ha(3372,c|0,b|0,e+16|0,0)|0;b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;b=ha(3368,J[e+24>>2],843212,e|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;b:{if(J[b>>2]!=6)break b;b=J[e+8>>2];if(J[b+12>>2]!=4)break b; +J[a+8>>2]=J[a+8>>2]|32768;J[699344]=0;J[e+32>>2]=13;b=ha(3449,b|0,0,e+32|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=J[b>>2]-3>>>0>=4294967294?J[e+32>>2]==1?+J[e+40>>2]:O[e+40>>3]:f;J[699344]=0;b=e+32|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;O[a+232>>3]=f;J[699344]=0;J[e+32>>2]=13;b=ha(3449,J[e+8>>2],1,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+32>>2]==1?+J[e+40>>2]:O[e+40>>3]:f;J[699344]=0;b=e+32|0;$(3370,b|0);c=J[699344];J[699344]= +0;if((c|0)==1)break a;O[a+256>>3]=f;J[699344]=0;J[e+32>>2]=13;b=ha(3449,J[e+8>>2],2,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+32>>2]==1?+J[e+40>>2]:O[e+40>>3]:f;J[699344]=0;b=e+32|0;$(3370,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;O[a+248>>3]=f;J[699344]=0;J[e+32>>2]=13;b=ha(3449,J[e+8>>2],3,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;f=0;f=J[b>>2]-3>>>0>=4294967294?J[e+32>>2]==1?+J[e+40>>2]:O[e+40>>3]:f;J[699344]=0;$(3370,e+32|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a;O[a+240>>3]=f}J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;b=ha(3368,J[e+24>>2],846236,e|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;c:{if(J[b>>2]!=4)break c;H[a+228|0]=0;J[a+8>>2]=J[a+8>>2]|65536;if(J[e>>2]!=4)break c;b=J[e+8>>2];if(!Ic(b,823791))H[a+228|0]=1;if(Ic(b,778990))break c;H[a+228|0]=2}J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,e+16|0);b=J[699344];J[699344]=0;if((b|0)== +1)break a;fc=e+48|0;return a|0}b=Z()|0;Ch(a);ba(b|0);B()}function g2a(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;n=J[a+4>>2];p=n+37|0;e=J[n+44>>2];g=e>>>16|0;d=J[a+24>>2];r=J[a+20>>2];f=J[a+16>>2];o=J[a+12>>2];k=J[a+8>>2];h=K[n+36|0];i=h?-1:0;j=i;c=!(e&16777216);while(1){a:{b:{c:{if(!c){h=0;d:{l=o-k|0;c=r-f>>1;j=(c|0)>(l|0)?l:c;e:{if((j|0)<=0)break e;c=k;while(1){k=c+1|0;c=K[c|0];if((c-32&255)>>>0>=95){H[p|0]=c;J[b>>2]=12;h=1;break e}if((c|0)==38)break d; +I[f>>1]=c;if(d){J[d>>2]=i;i=i+1|0;d=d+4|0}else d=0;f=f+2|0;l=(j|0)>1;c=k;j=j-1|0;if(l)continue;break}}i=16777216;if(k>>>0>=o>>>0){c=e;break b}s=15;c=e;if(f>>>0>=r>>>0)break c;break b}g=255;e=0;j=i+1|0;t=j;c=1;continue}f:{if(k>>>0>=o>>>0){c=e;break f}i=t;c=e;while(1){l=i;g:{h:{if(f>>>0>>0){m=K[k|0];H[(h&255)+p|0]=m;h=h+1|0;k=k+1|0;s=12;if(m>>>0>126)break c;i=i+1|0;e=63;q=63;i:{j:{k:switch(m-44|0){default:e=K[m+743520|0];q=e<<24>>24;if((q|0)<0)break j;break;case 3:break i;case 0:break k}l:switch((g<< +24>>24)+1|0){case 2:case 4:case 5:case 7:g=g+1|0;c=(c&65535)<<6|e;break g;case 3:e=(c&65535)<<4|e>>>2;if((e&65535)-32>>>0<95)break c;I[f>>1]=e;if(d){J[d>>2]=j;j=l;d=d+4|0}else d=0;f=f+2|0;H[p|0]=m;g=3;c=q&3;h=1;break g;case 6:e=(c&65535)<<2|e>>>4;if((e&65535)-32>>>0<95)break c;I[f>>1]=e;if(d){J[d>>2]=j;j=l;d=d+4|0}else d=0;f=f+2|0;H[p|0]=m;c=q&15;g=6;h=1;break g;case 0:case 1:break h;case 8:break l;default:break g}e=(c&65535)<<6|e;if((e&65535)-32>>>0<95)break c;I[f>>1]=e;f=f+2|0;if(!d){h=0;d=0;c= +0;g=0;break g}J[d>>2]=j;d=d+4|0;h=0;c=0;g=0;j=i;break g}if((m|0)!=45)break i;if((g&255)==255){I[f>>1]=38;f=f+2|0;if(d){J[d>>2]=j-1;d=d+4|0}else d=0;e=c;g=255;break a}if(c&65535)break c;l=g&255;if(l>>>0>6)break c;e=0;if(1<>2]=15;break f}c=q&255;g=1}if((k|0)!=(o|0))continue;break}k=o}i=0;if(h&255|J[b>>2]>0)break b;h=0;if(!K[a+2|0]|k>>>0>>0)break b;s=11;if((g&255)!=255)break c;H[p|0]=38;h=1}J[b>>2]=s;i=16777216}H[n+ +36|0]=h;J[n+44>>2]=c&65535|((g&255)<<16|i);J[a+24>>2]=d;J[a+16>>2]=f;J[a+8>>2]=k;return}c=0;continue}}function Cza(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;a:{if(!f)break a;j=L[a+26>>1];k=P(j,g);f=f-1|0;if(e>>>0<8){c=e-1|0;d=h<<2;while(1){a=f;b:switch(c|0){case 6:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 4:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2| +0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;break;default:break b}f=a-1|0;i=i+k|0;b=b+d|0;if(a)continue;break}break a}l=(e&7|8)-9|0;h=h<<2;while(1){a=f;c=e;while(1){J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+ +2|0]<<16|K[i+3|0]<<24);d=b;f=i+j|0;J[b+4>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+8>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+12>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+16>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+20>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);f=f+j|0;J[b+24>>2]=K[f|0]|K[f+1|0]<<8|(K[f+2|0]<<16|K[f+3|0]<<24);g=f+j|0;J[b+28>>2]=K[g|0]|K[g+1|0]<<8|(K[g+2|0]<<16|K[g+3|0]<<24);b=b+32|0;i=g+j| +0;c=c-8|0;if(c>>>0>7)continue;break}c:switch(l|0){case 6:J[d+32>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=d+36|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 4:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);i=i+j|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<< +24);i=i+j|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|(K[i+2|0]<<16|K[i+3|0]<<24);b=b+4|0;g=i;break;default:break c}f=a-1|0;i=(g+j|0)+k|0;b=b+h|0;if(a)continue;break}}}function B2(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;a:{if(!J[a+5792>>2]){d=J[a+5820>>2];break a}k=a+5817|0;while(1){m=K[J[a+5784>>2]+l|0];n=a;j=L[J[a+5796>>2]+(l<<1)>>1];b:{c:{if(!j){d=(m<<2)+b|0;i=L[d+2>>1];h=L[d>>1];d=J[a+5820>>2];e=L[a+5816>>1]|h<>1]=e;if((d|0)>(16-i|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+ +J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];I[a+5816>>1]=h>>>16-d;d=(d+i|0)-16|0;break c}d=d+i|0;break c}h=K[m+767472|0];i=h<<2;d=i+b|0;f=L[d+1030>>1];e=L[d+1028>>1];d=J[a+5820>>2];g=L[a+5816>>1]|e<>1]=g;d:{if((d|0)>(16-f|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=g;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=e>>>16-d|0;I[a+5816>>1]=g;d=(d+f|0)-16|0;break d}d=d+f|0}J[a+5820>>2]=d;if(h-28>>>0>=4294967276){f=m-J[i+769440>> +2]|0;h=J[i+769072>>2];e:{if((16-h|0)<(d|0)){e=f<>1]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=(f&65535)>>>16-d|0;I[a+5816>>1]=g;d=(d+h|0)-16|0;break e}g=f<>1]=g;d=d+h|0}J[a+5820>>2]=d}f=j-1|0;h=K[(j>>>0<257?f:(f>>>7|0)+256|0)+766960|0];i=h<<2;e=i+c|0;j=L[e+2>>1];e=L[e>>1];g=e<>1]=g;f:{if((16-j|0)<(d|0)){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=g;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+ +J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];g=e>>>16-d|0;I[a+5816>>1]=g;d=(d+j|0)-16|0;break f}d=d+j|0}J[a+5820>>2]=d;if(h>>>0<4)break b;f=f-J[i+769568>>2]|0;h=J[i+769200>>2];if((16-h|0)<(d|0)){e=f<>1]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=e;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[k|0];d=J[a+5820>>2];I[a+5816>>1]=(f&65535)>>>16-d;d=(d+h|0)-16|0;break c}I[a+5816>>1]=f<>2]=d}l=l+1|0;if(l>>>0>2])continue;break}}e=L[b+1026>>1];f=L[b+1024>>1];c=L[a+ +5816>>1]|f<>1]=c;if((16-e|0)<(d|0)){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=c;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];b=J[a+5820>>2];I[a+5816>>1]=f>>>16-b;J[a+5820>>2]=(b+e|0)-16;return}J[a+5820>>2]=d+e}function fmb(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;e=fc-16|0;fc=e;a:{if(J[a+4>>2])break a;d=6;b:{if(J[a+12>>2]!=1)break b;h=(b|0)!=0;b=(P(h,36)+a|0)+16|0;d=J[c>>2];f=(((d>>31)+d|0)+32768&-65536)>>16;d=J[c+ +4>>2];k=J[a>>2];d=_x(b,f,(((d>>31)+d|0)+32768&-65536)>>16,k,e);if(d)break b;d=J[c+8>>2];f=(((d>>31)+d|0)+32768&-65536)>>16;d=J[c+12>>2];d=_x(b,f,(((d>>31)+d|0)+32768&-65536)>>16,k,e+4|0);if(d)break b;d=b;b=J[c+16>>2];f=(((b>>31)+b|0)+32768&-65536)>>16;b=J[c+20>>2];d=_x(d,f,(((b>>31)+b|0)+32768&-65536)>>16,k,e+8|0);if(d)break b;g=J[e+8>>2];i=J[e+4>>2];j=J[e>>2];l=P(h,36)+a|0;f=J[l+40>>2];c:{if(f){m=g>>3;n=i>>3;o=j>>3;p=128>>>(g&7)|0;q=128>>>(i&7)|0;r=128>>>(j&7)|0;c=J[l+48>>2];d=f;while(1){b=J[c>> +2];if((K[J[c+8>>2]+o|0]&r?j>>>0>>0:0)|(K[J[c+8>>2]+n|0]&q?b>>>0>i>>>0:0)|(K[m+J[c+8>>2]|0]&p?b>>>0>g>>>0:0))break c;c=c+16|0;d=d-1|0;if(d)continue;break}}m=f+1|0;b=J[l+44>>2];d:{if(m>>>0<=b>>>0){h=J[(P(h,36)+a|0)+48>>2];break d}J[e+12>>2]=0;d=b;b=(f&-8)+8|0;c=P(h,36)+a|0;h=_c(k,16,d,b,J[c+48>>2],e+12|0);J[c+48>>2]=h;d=J[e+12>>2];if(d)break b;J[l+44>>2]=b}b=0;c=((m<<4)+h|0)-16|0;J[c>>2]=0;J[((f<<4)+h|0)+12>>2]=0;J[l+40>>2]=m}if((j|0)>=0){if(b>>>0<=j>>>0){b=J[c+4>>2];J[e+12>>2]=0;d=j+8>>>3|0;b=b+ +7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=_c(k,1,f,b,J[c+8>>2],e+12|0),J[s+8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=j+1}b=J[c+8>>2]+(j>>>3|0)|0;H[b|0]=K[b|0]|128>>>(j&7)}e:{if((i|0)>=0){if(M[c>>2]<=i>>>0){b=J[c+4>>2];J[e+12>>2]=0;d=i+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=_c(k,1,f,b,J[c+8>>2],e+12|0),J[s+8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=i+1}b=J[c+8>>2]+(i>>>3|0)|0;H[b|0]=K[b|0]|128>>>(i&7);if((g|0)>=0)break e;break a}if((g|0)< +0)break a}if(M[c>>2]<=g>>>0){b=J[c+4>>2];J[e+12>>2]=0;d=g+8>>>3|0;b=b+7>>>3|0;if(d>>>0>b>>>0){f=b;b=d+7&1073741816;s=c,t=_c(k,1,f,b,J[c+8>>2],e+12|0),J[s+8>>2]=t;d=J[e+12>>2];if(d)break b;J[c+4>>2]=b<<3}J[c>>2]=g+1}a=J[c+8>>2]+(g>>>3|0)|0;H[a|0]=K[a|0]|128>>>(g&7);break a}J[a+4>>2]=d}fc=e+16|0}function Wt(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;o=fc-80|0;fc=o;c=J[a+4>>2];a:{if((c|0)>=10){b=J[a>>2];b=kc[J[J[b>>2]+36>>2]](b)|0;if((b|0)==-1){c=0;break a}c=b+10|0}b=J[a+24>> +2];e=Ac(o,0,b+1|0);b:{if(J[a+28>>2]<=(b|0))break b;m=e|1;p=c-11|0;while(1){c=J[a+24>>2];if((c|0)>0)cd(m,e,c);H[e|0]=K[J[a+32>>2]+b|0];c=J[a>>2];c=kc[J[J[c>>2]+36>>2]](c)|0;if((c|0)==-1){c=0;if(J[a+24>>2]<(b|0))break b;break a}c:{d:switch(p|0){case 0:d=J[a+32>>2];H[d+b|0]=c+K[d+(b-J[a+24>>2]|0)|0];break c;case 1:d=J[a+32>>2]+b|0;H[d|0]=c+K[d|0];break c;case 2:d=J[a+32>>2];f=d+b|0;H[f|0]=c+(K[f|0]+K[d+(b-J[a+24>>2]|0)|0]>>>1|0);break c;case 3:j=J[a+32>>2];d=j+b|0;f=K[d|0];k=J[a+24>>2];j=K[j+(b-k|0)| +0];k=K[e+k|0];h=(f+j|0)-k|0;i=h-k|0;g=i>>31;g=(g^i)-g|0;n=h-j|0;i=n>>31;l=h-f|0;h=l>>31;i=(i^n)-i|0;h=(h^l)-h|0;if(!(i>>>0>h>>>0|g>>>0>>0)){H[d|0]=c+j;break c}if(g>>>0>=h>>>0){H[d|0]=c+f;break c}H[d|0]=c+k;break c;default:break d}H[J[a+32>>2]+b|0]=c}b=b+1|0;if((b|0)>2])continue;break}}e:{if(J[a+4>>2]!=2)break e;f:{g:{h:{b=J[a+16>>2];switch(b-8|0){case 8:break g;case 0:break h;default:break f}}b=J[a+24>>2];if((b|0)>=J[a+28>>2])break e;while(1){c=J[a+32>>2];e=c+b|0;H[e|0]=K[c+(b-J[a+12>> +2]|0)|0]+K[e|0];b=b+1|0;if((b|0)>2])continue;break}break e}b=J[a+24>>2];if((b|0)>=J[a+28>>2])break e;while(1){c=J[a+32>>2];d=c+b|0;e=b+1|0;f=J[a+12>>2]<<1;c=(K[e+c|0]|K[c+(b-f|0)|0]+K[d|0]<<8)+K[c+(e-f|0)|0]|0;H[d|0]=c>>>8;H[e+J[a+32>>2]|0]=c;b=b+2|0;if((b|0)>2])continue;break}break e}d=J[a+12>>2];p=Ac(e,0,d);g=J[a+8>>2];if((g|0)<=0|(d|0)<=0)break e;n=-1<>2];h=f;e=0;b=0;j=0;k=0;while(1){c=0;if((d|0)>0){while(1){g=J[a+16>>2];if((g|0)>(b|0)){k=K[J[a+32>>2]+h|0]|k<< +8;h=h+1|0;b=b+8|0}l=c+p|0;b=b-g|0;m=n&K[l|0]+(k>>>b|0);H[l|0]=m;j=m&255|j<=8){e=e-8|0;H[J[a+32>>2]+f|0]=j>>>e;f=f+1|0;d=J[a+12>>2]}c=c+1|0;if((d|0)>(c|0))continue;break}g=J[a+8>>2]}i=i+1|0;if((i|0)<(g|0))continue;break}if((e|0)<=0)break e;b=8-e|0;H[J[a+32>>2]+f|0]=((-1<>2]=J[a+24>>2];c=1}fc=o+80|0;return c}function X0a(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;h=fc-32|0;fc=h;i=J[a+16>>2];n=J[J[a+4>>2]+8>>2];g=J[a+12>>2];c= +J[a+8>>2];f=L[a>>1];f=f>>>0>=28?28:f;xc(h+4|0,a,f);I[h+4>>1]=f;j=J[n+80>>2];a:{if(c>>>0>=g>>>0)break a;while(1){b:{if(M[a+20>>2]>i>>>0){f=J[a+4>>2];m=f+37|0;o=H[f+36|0];if(K[((o|0)>0?m:c)|0]!=27)break b;f=0;c:{while(1){d=27;k=P(f,5);e=0;d:{while(1){l=d&255;e:{if((e|0)<(o|0)){if(K[e+m|0]!=(l|0))break d;break e}d=(e-o|0)+c|0;if(d>>>0>=g>>>0){J[b>>2]=11;break d}if(H[d|0]!=(l|0))break d}e=e+1|0;d=K[(k+e|0)+756048|0];if(d)continue;break}if(J[b>>2]==11)break c;d=Yc(k+756048|0);e=J[a+4>>2];j=H[e+36|0];H[e+ +36|0]=0;c=(d-j|0)+c|0;j=f;break b}f=f+1|0;if((f|0)!=20)continue;break}if(J[b>>2]==11)break c;g=K[J[a+4>>2]+36|0];J[b>>2]=12;c=!g+c|0;break a}if(c>>>0>>0){m=g+(c^-1)|0;e=g-c&3;if(e){d=0;while(1){f=K[c|0];k=J[a+4>>2];l=H[k+36|0];H[k+36|0]=l+1;H[(k+l|0)+37|0]=f;c=c+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}if(m>>>0>=3)while(1){f=K[c|0];d=J[a+4>>2];e=H[d+36|0];H[d+36|0]=e+1;H[(e+d|0)+37|0]=f;f=K[c+1|0];d=J[a+4>>2];e=H[d+36|0];H[d+36|0]=e+1;H[(e+d|0)+37|0]=f;f=K[c+2|0];d=J[a+4>>2];e=H[d+36|0];H[d+ +36|0]=e+1;H[(e+d|0)+37|0]=f;f=K[c+3|0];d=J[a+4>>2];e=H[d+36|0];H[d+36|0]=e+1;H[(e+d|0)+37|0]=f;c=c+4|0;if((g|0)!=(c|0))continue;break}c=g}J[b>>2]=0;break a}J[b>>2]=15;break a}f:{g:{if(!j){if(c>>>0>=g>>>0)break f;while(1){f=K[c|0];if((f|0)==27)break f;if(M[a+20>>2]<=i>>>0)break g;I[i>>1]=f;i=i+2|0;c=c+1|0;if((g|0)!=(c|0))continue;break}c=g;break f}if(c>>>0>=g>>>0)break f;e=1;d=g-c|0;h:{if((d|0)<2)break h;while(1){if(K[c+e|0]==27){d=e;break h}e=e+1|0;if((e|0)!=(d|0))continue;break}}J[h+20>>2]=i;J[h+ +12>>2]=c;J[h+16>>2]=c+d;f=J[h+8>>2];c=J[f+24>>2];J[f+24>>2]=J[(j<<2)+n>>2];LL(h+4|0,b);e=J[h+8>>2];J[e+24>>2]=c;i=J[h+20>>2];c=J[h+12>>2];f=J[b>>2];if((f|0)<=0)break f;if((f|0)!=15)break a;b=K[e+65|0];d=b<<24>>24;if((d|0)>0){xc(J[a+4>>2]+116|0,e+116|0,b);d=K[e+65|0]}H[J[a+4>>2]+65|0]=d;H[e+65|0]=0;break a}J[b>>2]=15}if(c>>>0>>0)continue;break}}J[n+80>>2]=j;J[a+8>>2]=c;J[a+16>>2]=i;fc=h+32|0}function Z8(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=fc-22064|0;fc=d;c=J[b+100>>2];Ac(d+15424|4,0,2756); +J[d+15424>>2]=c;J[a+7728>>2]=0;J[a+52>>2]=0;f=J[J[(J[J[a>>2]+8>>2]<<2)+247056>>2]+16>>2];c=K[f|0];a:{if(!c)break a;while(1){if((c&255)==32)while(1){c=K[f+1|0];f=f+1|0;if((c|0)==32)continue;break}j=J[J[a+36>>2]>>2];while(1){h=K[f|0];f=f+1|0;if((h|0)==32)continue;break}if(h<<24>>24<0){c=h>>>0<240;e=h>>>0<224;g=e?1:c?2:3;h=(e?31:c?15:7)&h;e=0;c=f;while(1){h=K[c|0]&63|h<<6;c=c+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}f=f+g|0}g=0;while(1){c=K[f|0];if((c|32)!=32){f=f+1|0;g=c;if(c<<24>>24>=0)continue; +g=c>>>0<240;e=c>>>0<224;i=e?1:g?2:3;g=(e?31:g?15:7)&c;e=0;c=f;while(1){g=K[c|0]&63|g<<6;c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}f=f+i|0;continue}break}b:{if(!g){c=Gh(j,h);if(c)break b;c=K[f|0]}if(c&255)continue;break a}break}if(lp(b,c,1))break a;c=J[b+84>>2];if(I[c+110>>1]<=0)break a;f=d+16|0;Ac(f,0,15396);g=J[a+40>>2];J[d+36>>2]=0;J[d+44>>2]=0;J[d+24>>2]=65536;J[d+28>>2]=65536;J[d+56>>2]=g;J[d+20>>2]=b;J[d+18164>>2]=0;J[d+18172>>2]=f;b=d+15424|0;if(ly(b,c+108|0))break a;if(ps(b,0))break a; +e=0;ky(b,0,0,0);b=J[d+15468>>2];if((b|0)>0){c=J[d+15476>>2];f=c+P(b,44)|0;while(1){b=J[c+20>>2];if(!(!b|b>>>0<=c>>>0|(J[b+20>>2]!=(c|0)|e>>>0>15))){g=I[c+2>>1]-I[b+2>>1]|0;b=g>>31;J[(P(e,12)+a|0)+56>>2]=(b^g)-b;e=e+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[d+12>>2]=e;oE(d+12|0,a+56|0,M[d+56>>2]/100|0);J[a+52>>2]=J[d+12>>2];b=d+15424|0;if(ps(b,1))break a;e=0;ky(b,0,0,1);b=J[d+16816>>2];if((b|0)>0){c=J[d+16824>>2];f=c+P(b,44)|0;while(1){b=J[c+20>>2];if(!(!b|b>>>0<=c>>>0|(J[b+20>>2]!=(c|0)|e>>>0> +15))){g=I[c+2>>1]-I[b+2>>1]|0;b=g>>31;J[(P(e,12)+a|0)+7732>>2]=(b^g)-b;e=e+1|0}c=c+44|0;if(f>>>0>c>>>0)continue;break}}J[d+12>>2]=e;oE(d+12|0,a+7732|0,M[d+56>>2]/100|0);J[a+7728>>2]=J[d+12>>2]}if(J[a+52>>2])b=J[a+56>>2];else b=(P(J[a+40>>2],50)|0)/2048|0;H[a+256|0]=0;J[a+252>>2]=b;J[a+248>>2]=(b|0)/5;if(J[a+7728>>2])b=J[a+7732>>2];else b=(P(J[a+40>>2],50)|0)/2048|0;H[a+7932|0]=0;J[a+7928>>2]=b;J[a+7924>>2]=(b|0)/5;KN(d+15424|0);fc=d+22064|0}function dRa(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;a=Ac(a,0,256);d=J[b>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a>>2]=(g+d<<3)-3072;J[a+4>>2]=P(f-e|0,10033)+512>>10;J[a+8>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+4>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a+32>>2]=(g+d<<3)-3072;J[a+36>>2]=P(f-e|0,10033)+512>>10;J[a+40>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+8>>2]+c|0;e=K[d+2|0];f=K[d|0];g=e+f|0;d=K[d+1|0];J[a+64>>2]=(g+d<<3)-3072;J[a+68>>2]=P(f-e|0,10033)+512>>10;J[a+72>>2]=P(g-(d<<1)|0,5793)+512>>10;d=J[b+12>>2]+c|0; +e=K[d+2|0];f=K[d|0];g=e+f|0;h=K[d+1|0];d=(g+h<<3)-3072|0;J[a+96>>2]=d;J[a+100>>2]=P(f-e|0,10033)+512>>10;J[a+104>>2]=P(g-(h<<1)|0,5793)+512>>10;e=J[b+16>>2]+c|0;f=K[e+2|0];g=K[e|0];h=f+g|0;i=K[e+1|0];e=(h+i<<3)-3072|0;J[a+128>>2]=e;f=P(g-f|0,10033)+512>>10;J[a+132>>2]=f;J[a+136>>2]=P(h-(i<<1)|0,5793)+512>>10;b=J[b+20>>2]+c|0;g=K[b+2|0];h=K[b|0];c=g+h|0;b=K[b+1|0];J[a+168>>2]=P(c-(b<<1)|0,5793)+512>>10;c=(b+c<<3)-3072|0;i=J[a>>2];b=c+i|0;k=J[a+64>>2];j=d+k|0;J[a+64>>2]=P(b-j|0,17837)+16384>>15;b=b+ +j|0;j=J[a+32>>2];l=j+e|0;J[a+128>>2]=P(b-(l<<1)|0,10298)+16384>>15;J[a>>2]=P(b+l|0,14564)+16384>>15;b=k-d|0;c=i-c|0;d=P(b+c|0,5331)+16384|0;e=j-e|0;J[a+160>>2]=d+P(b-e|0,14564)>>15;J[a+96>>2]=P(c-(b+e|0)|0,14564)+16384>>15;J[a+32>>2]=d+P(c+e|0,14564)>>15;c=P(h-g|0,10033)+512>>10;d=J[a+4>>2];b=c+d|0;e=J[a+100>>2];g=J[a+68>>2];h=e+g|0;J[a+68>>2]=P(b-h|0,17837)+16384>>15;b=b+h|0;h=J[a+36>>2];i=h+f|0;J[a+132>>2]=P(b-(i<<1)|0,10298)+16384>>15;J[a+4>>2]=P(b+i|0,14564)+16384>>15;b=g-e|0;c=d-c|0;d=P(b+c| +0,5331)+16384|0;e=h-f|0;J[a+36>>2]=d+P(e+c|0,14564)>>15;J[a+164>>2]=d+P(b-e|0,14564)>>15;J[a+100>>2]=P(c-(b+e|0)|0,14564)+16384>>15;b=J[a+136>>2];c=J[a+40>>2];e=J[a+168>>2];f=J[a+8>>2];d=e+f|0;g=J[a+104>>2];h=J[a+72>>2];i=g+h|0;J[a+72>>2]=P(d-i|0,17837)+16384>>15;d=d+i|0;i=b+c|0;J[a+136>>2]=P(d-(i<<1)|0,10298)+16384>>15;J[a+8>>2]=P(d+i|0,14564)+16384>>15;d=h-g|0;e=f-e|0;f=P(d+e|0,5331)+16384|0;b=c-b|0;J[a+168>>2]=f+P(d-b|0,14564)>>15;J[a+104>>2]=P(e-(b+d|0)|0,14564)+16384>>15;J[a+40>>2]=f+P(b+e|0, +14564)>>15}function _3(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;i=a+8|0;a:{e=J[a+12>>2];f=e-J[a+8>>2]>>2;if((f|0)>0){while(1){j=h<<2;e=J[j+J[i>>2]>>2];g=K[e+11|0];c=g<<24>>24<0;k=K[b+11|0];d=k<<24>>24<0;b:{g=c?J[e+4>>2]:g;if((g|0)!=((d?J[b+4>>2]:k)|0))break b;if(g){if(qd(c?J[e>>2]:e,d?J[b>>2]:b,g))break b;e=J[j+J[i>>2]>>2]}c=J[e+40>>2];if((c|0)!=J[b+40>>2])break b;d=J[e+44>>2];if((d|0)!=J[b+44>>2])break b;c:{if(c){if(d){c=e+28|0;a=J[c+4>>2];d=K[c+11|0];g=d<<24>>24;f=(g|0)<0;d:{if(((f? +a:d)|0)==11){a=1;if(!qd(f?J[c>>2]:c,415252,11))break d;d=K[c+11|0];g=d;a=J[c+4>>2]}f=g<<24>>24;if((((f|0)<0?a:d)|0)==12){a=1;if(!qd((f|0)<0?J[c>>2]:c,415300,12))break d;d=K[c+11|0];g=d;a=J[c+4>>2]}f=g<<24>>24;if((((f|0)<0?a:d)|0)==10){a=1;if(!qd((f|0)<0?J[c>>2]:c,415352,10))break d;d=K[c+11|0];g=d;a=J[c+4>>2]}f=a;a=g<<24>>24;if((((a|0)<0?f:d)|0)==11)a=qd((a|0)<0?J[c>>2]:c,415396,11);else a=1;a=!a}if(!a)break a;break c}c=K[e+39|0];a=c<<24>>24<0;if(((a?J[e+32>>2]:c)|0)!=4)break a;if(qd(a?J[e+28>>2]: +e+28|0,415444,4))break a;break c}c=e+28|0;if(d){d=K[e+39|0];g=d<<24>>24;f=(g|0)<0;a=J[e+32>>2];if(((f?a:d)|0)==6){if(!qd(f?J[c>>2]:c,415464,6))break c;d=K[e+39|0];g=d;a=J[e+32>>2]}f=a;a=g<<24>>24;if((((a|0)<0?f:d)|0)!=7)break a;if(!qd((a|0)<0?J[c>>2]:c,415492,7))break c;break a}d=K[c+11|0];g=d<<24>>24;a=J[c+4>>2];f=(g|0)<0;e:{if(((f?a:d)|0)==7){a=1;if(!qd(f?J[c>>2]:c,415524,7))break e;d=K[c+11|0];g=d;f=J[c+4>>2]}else f=a;a=g<<24>>24;if((((a|0)<0?f:d)|0)==5)a=qd((a|0)<0?J[c>>2]:c,415556,5);else a= +1;a=!a}if(!a)break a}uc(ZL(b));return}h=h+1|0;if((f|0)!=(h|0))continue;break}e=J[a+12>>2]}if(J[a+16>>2]!=(e|0)){J[e>>2]=b;J[a+12>>2]=e+4;return}f:{g=J[i>>2];c=e-g|0;h=c>>2;d=h+1|0;if(d>>>0<1073741824){f=c>>1;d=c>>>0>=2147483644?1073741823:d>>>0>>0?f:d;if(d){if(d>>>0>=1073741824)break f;c=vc(d<<2)}else c=0;h=c+(h<<2)|0;J[h>>2]=b;b=h+4|0;if((e|0)!=(g|0)){while(1){h=h-4|0;e=e-4|0;J[h>>2]=J[e>>2];if((e|0)!=(g|0))continue;break}e=J[i>>2]}J[a+16>>2]=c+(d<<2);J[a+12>>2]=b;J[a+8>>2]=h;if(e)uc(e);return}eh(i); +B()}Pd();B()}J[J[i>>2]+(h<<2)>>2]=b;uc(ZL(e))}function Zp(a,b,c,d){var e=0,f=0;if(!(!a|!b)){f=J[b+56>>2];a:{if(!f|!(J[b+184>>2]&c&16384))break a;if((d|0)==-1){if(J[b+48>>2]>0){while(1){Bd(a,J[(J[b+56>>2]+P(e,28)|0)+4>>2]);e=e+1|0;if((e|0)>2])continue;break}f=J[b+56>>2]}Bd(a,f);J[b+48>>2]=0;J[b+56>>2]=0;break a}e=f;f=P(d,28);Bd(a,J[(e+f|0)+4>>2]);J[(f+J[b+56>>2]|0)+4>>2]=0}e=J[b+184>>2];if(e&c&8192){J[b+8>>2]=J[b+8>>2]&-17;Bd(a,J[b+76>>2]);I[b+22>>1]=0;J[b+76>>2]=0;e=J[b+184>>2]}if(c&e&256){Bd(a, +J[b+224>>2]);Bd(a,J[b+228>>2]);J[b+224>>2]=0;J[b+228>>2]=0;J[b+8>>2]=J[b+8>>2]&-16385;e=J[b+184>>2]}if(c&e&128){Bd(a,J[b+160>>2]);Bd(a,J[b+172>>2]);e=0;J[b+172>>2]=0;J[b+160>>2]=0;f=J[b+176>>2];if(f){if(K[b+181|0]){while(1){Bd(a,J[J[b+176>>2]+(e<<2)>>2]);e=e+1|0;if(e>>>0>2]}Bd(a,f);J[b+176>>2]=0}J[b+8>>2]=J[b+8>>2]&-1025;e=J[b+184>>2]}if(e&c&16){Bd(a,J[b+196>>2]);Bd(a,J[b+200>>2]);J[b+196>>2]=0;J[b+200>>2]=0;J[b+8>>2]=J[b+8>>2]&-4097}f=J[b+212>>2];b:{if(!f|!(J[b+ +184>>2]&c&32))break b;if((d|0)==-1){e=0;if(J[b+216>>2]>0){while(1){f=e<<4;Bd(a,J[f+J[b+212>>2]>>2]);Bd(a,J[(f+J[b+212>>2]|0)+8>>2]);e=e+1|0;if((e|0)>2])continue;break}f=J[b+212>>2]}Bd(a,f);J[b+212>>2]=0;J[b+216>>2]=0;J[b+8>>2]=J[b+8>>2]&-8193;break b}e=f;f=d<<4;Bd(a,J[e+f>>2]);Bd(a,J[(f+J[b+212>>2]|0)+8>>2]);f=f+J[b+212>>2]|0;J[f+8>>2]=0;J[f>>2]=0}f=J[b+188>>2];c:{if(!f|!(J[b+184>>2]&c&512))break c;if((d|0)==-1){e=0;if(J[b+192>>2]>0){while(1){Bd(a,J[(J[b+188>>2]+P(e,20)|0)+8>>2]);e=e+1|0; +if((e|0)>2])continue;break}f=J[b+188>>2]}Bd(a,f);J[b+188>>2]=0;J[b+192>>2]=0;break c}e=f;f=P(d,20);Bd(a,J[(e+f|0)+8>>2]);J[(f+J[b+188>>2]|0)+8>>2]=0}e=J[b+184>>2];if(e&c&8){Bd(a,J[b+124>>2]);J[b+124>>2]=0;J[b+8>>2]=J[b+8>>2]&-65;e=J[b+184>>2]}if(c&e&4096){Bd(a,J[b+16>>2]);J[b+16>>2]=0;I[b+20>>1]=0;J[b+8>>2]=J[b+8>>2]&-9;e=J[b+184>>2]}if(c&e&64){f=J[b+232>>2];if(f){if(J[b+4>>2]){e=0;while(1){Bd(a,J[J[b+232>>2]+(e<<2)>>2]);e=e+1|0;if(e>>>0>2])continue;break}f=J[b+232>>2]}Bd(a,f);J[b+ +232>>2]=0;e=J[b+184>>2]}J[b+8>>2]=J[b+8>>2]&-32769}J[b+184>>2]=(((d|0)==-1?c:c&-16929)^-1)&e}}function NZa(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;f=fc-16|0;fc=f;j=K[b+11|0];k=J[b+4>>2];a:{if(H[a+11|0]>=0){J[f+8>>2]=J[a+8>>2];c=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=c;break a}Ve(f,J[a>>2],J[a+4>>2])}e=J[f>>2];c=K[f+11|0];g=c<<24>>24;h=(g|0)<0;d=J[f+4>>2];i=h?d:c;b:{if(i){c=h?e:f;e=c+(i<<2)|0;while(1){d=J[c>>2];J[699344]=0;d=$s(d);g=J[699344];J[699344]=0;if((g|0)==1)break b;J[c>> +2]=d;c=c+4|0;if((e|0)!=(c|0))continue;break}d=J[f+4>>2];c=K[f+11|0];g=c;e=J[f>>2]}j=j<<24>>24<0?k:j;h=g<<24>>24<0;d=h?d:c;c=K[b+11|0];g=c<<24>>24<0;c=g?J[b+4>>2]:c;g=g?J[b>>2]:b;h=h?e:f;k=0;e=0;c:{while(1){d:{e:{f:{g:{h:{i:{j:{if(c){i=(d<<2)+h|0;d=(e<<2)+h|0;e=i-d>>2;if((c|0)>(e|0))break d;l=J[g>>2];while(1){e=(e-c|0)+1|0;if(!e)break d;e=og(d,l,e);if(!e)break d;if(qd(e,g,c)){d=e+4|0;e=i-d>>2;if((c|0)<=(e|0))continue;break d}break}if((e|0)==(i|0))break d;e=e-h>>2}k:{l:switch(e+1|0){default:J[699344]= +0;c=e-1|0;d=aa(3358,f|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;m:{if(J[d>>2]!=45){J[699344]=0;d=aa(3358,f|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=0;if(J[d>>2]!=44)break m}e=c;g=1}c=K[a+11|0];d=c<<24>>24<0;if((d?J[a+4>>2]:c)>>>0>>0)break c;c=g+j|0;break k;case 1:break l;case 0:break d}e=0;d=H[a+11|0]<0;c=j}if((c|0)==-1){if(!d)break j;J[a+4>>2]=e;c=J[a>>2];break i}J[699344]=0;ca(2971,a|0,e|0,c|0);d=J[699344];J[699344]=0;if((d|0)!=1)break h;break b}H[a+11|0]=e;c=a}d=e<< +2;J[c+d>>2]=0;g=K[f+11|0];c=g<<24>>24;if(((c|0)<0?J[f+4>>2]:g)>>>0>=e>>>0)break g;a=f;break c}d=K[f+11|0];if((d<<24>>24<0?J[f+4>>2]:d)>>>0>=e>>>0)break f;a=f;break c}n:{if((c|0)<0){J[f+4>>2]=e;c=J[f>>2];break n}H[f+11|0]=e;c=f}J[c+d>>2]=0;break e}J[699344]=0;ca(2971,f|0,e|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break b}c=K[b+11|0];d=c<<24>>24<0;c=d?J[b+4>>2]:c;g=d?J[b>>2]:b;d=K[f+11|0];i=d<<24>>24<0;h=i?J[f>>2]:f;k=1;d=i?J[f+4>>2]:d;if(d>>>0>=e>>>0)continue}break}if(H[f+11|0]<0)uc(J[f>>2]);fc= +f+16|0;return k|0}J[699344]=0;$(2970,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)B()}a=Z()|0;if(H[f+11|0]<0)uc(J[f>>2]);ba(a|0);B()}function ypb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(a){g=J[a+100>>2];c=J[a+540>>2];if(c)kc[J[c+12>>2]](a);c=J[a+712>>2];if(c){d=J[c+8>>2];b=J[c+108>>2];if(b){e=J[b+28>>2];f=c+140|0;if(J[f>>2])$f(b,f);b=J[c+136>>2];if(b)kc[J[e+8>>2]](e,b);J[c+140>>2]=0;J[c+132>>2]=0;J[c+136>>2]=0;J[c+124>>2]=0;J[c+128>>2]=0;J[c+116>>2]=0;J[c+120>>2]=0;J[c+108>>2]=0;J[c+112>>2]=0}b=J[c+1240>> +2];if(b){e=J[b+28>>2];f=c+1272|0;if(J[f>>2])$f(b,f);b=J[c+1268>>2];if(b)kc[J[e+8>>2]](e,b);b=c+1240|0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}b=J[c+36>>2];if(b){e=J[b+28>>2];f=c+68|0;if(J[f>>2])$f(b,f);b=J[c- -64>>2];if(b)kc[J[e+8>>2]](e,b);J[c+68>>2]=0;J[c+60>>2]=0;J[c+64>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0}b=J[c+1204>>2];if(b){e=J[b+28>>2];f=c+1236|0;if(J[f>>2])$f(b,f);b=J[c+1232>> +2];if(b)kc[J[e+8>>2]](e,b);b=c+1204|0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}if(J[c+2024>>2]){b=0;while(1){y8(d,J[(c+(b<<2)|0)+2028>>2]);b=b+1|0;if(b>>>0>2])continue;break}b=J[c+2028>>2];if(b)kc[J[d+8>>2]](d,b);J[c+2028>>2]=0}J[c+144>>2]=0;J[c+148>>2]=0;J[c+152>>2]=0;b=J[J[c+4>>2]+28>>2];e=c+1192|0;f=J[e>>2];if(f)kc[J[b+8>>2]](b,f);J[e>>2]=0;J[e+4>>2]=0;e=c+1188|0;f=J[e>>2];if(f)kc[J[b+8>>2]](b,f);J[c+1180>>2]=0;J[c+ +1184>>2]=0;J[e>>2]=0;x8(c+3112|0,d);y8(d,c+1372|0);b=c+3060|0;if(J[b>>2])$f(J[c+4>>2],b);H[c+3052|0]=0;J[c+3056>>2]=0;J[c+3064>>2]=0;b=J[c+3092>>2];if(b)kc[J[d+8>>2]](d,b);J[c+3092>>2]=0;b=J[c+1348>>2];if(b)kc[J[d+8>>2]](d,b);J[c+1348>>2]=0;b=J[c+1352>>2];if(b)kc[J[d+8>>2]](d,b);J[c+1352>>2]=0;b=J[c+1360>>2];if(b)kc[J[d+8>>2]](d,b);J[c+1360>>2]=0;b=J[c+1364>>2];if(b)kc[J[d+8>>2]](d,b);J[c+1364>>2]=0;b=J[c+3108>>2];if(b){kc[b|0](J[c+3104>>2]);b=J[c+3104>>2];if(b)kc[J[d+8>>2]](d,b);J[c+3104>>2]=0}b= +J[c+3132>>2];if(b)kc[J[d+8>>2]](d,b);J[c+3132>>2]=0;c=J[a+712>>2];if(c)kc[J[g+8>>2]](g,c);J[a+712>>2]=0}c=J[a+548>>2];if(c)kc[J[c+44>>2]](a);J[a+736>>2]=0}}function w_(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=vc(1552);f=J[a+8>>2];J[699344]=0;d=ga(3644,e|0,f|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)a:{J[a+24>>2]=d;b:{c:{if(!J[d+28>>2]){Cc(1,-1,780168,0);b=J[a+24>>2];J[a+44>>2]=J[b+32>>2];uc(wB(b));break c}f=fc-16|0;fc=f;J[f>>2]=13;Ec(J[J[a+24>>2]+48>>2],787007,f,0);h=1;d:{if(J[f>>2]!=7)break d; +h=0;e=0;d=fc-32|0;fc=d;J[d+16>>2]=13;Ec(J[f+8>>2],776347,d+16|0,0);e:{if(J[d+16>>2]==4){g=J[d+24>>2];if(!Ic(g,777790)){g=vc(92);J[699344]=0;e=ga(3647,g|0,a|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1)break e;a=Z()|0;uc(g);ba(a|0);B()}J[d>>2]=g;Cc(1,-1,778530,d);break e}Cc(1,-1,779641,0)}yc(d+16|0);fc=d+32|0;d=e;if(!d)break d;h=1;f:{if(kc[J[J[d>>2]+8>>2]](d)|0)break f;e=0;if(b|c)e=kc[J[J[d>>2]+12>>2]](d,b,c)|0;c=kc[J[J[d>>2]+24>>2]](d,e)|0;if(e)kc[J[J[d>>2]+20>>2]](d,e);g:{if(c)break g;c=0;b=kc[J[J[d>> +2]+16>>2]](d)|0;h:{if(!b)break h;c=kc[J[J[d>>2]+24>>2]](d,b)|0;kc[J[J[d>>2]+20>>2]](d,b);i:{if(c)break i;c=0;b=kc[J[J[d>>2]+16>>2]](d)|0;if(!b)break h;c=kc[J[J[d>>2]+24>>2]](d,b)|0;kc[J[J[d>>2]+20>>2]](d,b);if(c)break i;c=0;b=kc[J[J[d>>2]+16>>2]](d)|0;if(!b)break h;c=kc[J[J[d>>2]+24>>2]](d,b)|0;kc[J[J[d>>2]+20>>2]](d,b)}if(c)break g}Cc(3,-1,781422,0)}if(!c){h=0;break f}b=J[a+24>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;g=kc[J[J[d>>2]+32>>2]](d)|0;i=kc[J[J[d>>2]+36>>2]](d)|0;c=kc[J[J[d>>2]+40>>2]](d)|0;j=kc[J[J[d>> +2]+44>>2]](d)|0;k=kc[J[J[d>>2]+48>>2]](d)|0;J[b+1120>>2]=g;J[b+1116>>2]=e;J[b+1112>>2]=1;j:{k:{if((c|0)>=33){J[b+1156>>2]=32;break k}J[b+1156>>2]=c;if((c|0)<=0)break j}e=0;while(1){H[(b+e|0)+1124|0]=K[e+i|0];e=e+1|0;if((e|0)>2])continue;break}}J[b+1164>>2]=k;J[b+1160>>2]=j}kc[J[J[d>>2]+4>>2]](d)}yc(f);fc=f+16|0;if(!h){J[a+44>>2]=4;b=J[a+24>>2];if(!b)break c;uc(wB(b));break c}e=vc(184);J[699344]=0;b=aa(3645,e|0,a|0)|0;c=J[699344];J[699344]=0;d=1;if((c|0)==1)break a;J[a+28>>2]=b;if(J[b+176>> +2])break b;Cc(1,-1,781244,0);J[a+44>>2]=2;b=J[a+28>>2];if(b)uc(W$(b));J[a+28>>2]=0;b=J[a+24>>2];if(!b)break c;uc(wB(b))}d=0;J[a+24>>2]=0}return d}a=Z()|0;uc(e);ba(a|0);B()}function Yx(a,b,c,d){var e=0,f=0,g=0,h=0;f=J[a+24>>2];g=J[f+4>>2];e=J[f>>2];J[a+228>>2]=d;J[a+224>>2]=c;J[a+220>>2]=b;a:{if(!g){if(!(kc[J[f+12>>2]](a)|0))break a;e=J[f>>2];g=J[f+4>>2]}h=K[e|0];d=g-1|0;if(d)b=e+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break a;d=J[f+4>>2];b=J[f>>2]}g=K[b|0];e=d-1|0;if(e)b=b+1|0;else{if(!(kc[J[f+12>>2]](a)| +0))break a;e=J[f+4>>2];b=J[f>>2]}J[a+212>>2]=K[b|0];e=e-1|0;if(e)b=b+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}d=K[b|0]<<8;J[a+32>>2]=d;e=e-1|0;if(e)b=b+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break a;d=J[a+32>>2];e=J[f+4>>2];b=J[f>>2]}J[a+32>>2]=K[b|0]+d;e=e-1|0;if(e)b=b+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}d=K[b|0]<<8;J[a+28>>2]=d;e=e-1|0;if(e)b=b+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break a;d=J[a+28>>2];e=J[f+4>>2];b=J[f>>2]}J[a+28>>2]=K[b|0]+d;e=e-1| +0;if(e)b=b+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];b=J[f>>2]}J[a+36>>2]=K[b|0];d=J[a>>2];J[d+24>>2]=J[a+436>>2];J[d+28>>2]=J[a+28>>2];J[d+32>>2]=J[a+32>>2];c=J[a+36>>2];J[d+20>>2]=102;J[d+36>>2]=c;kc[J[d+4>>2]](a,1);if(J[J[a+460>>2]+16>>2]){c=J[a>>2];J[c+20>>2]=60;kc[J[c>>2]](a)}d=(h<<8|g)-8|0;b:{if(!(!J[a+32>>2]|!J[a+28>>2])){c=J[a+36>>2];if((c|0)>0)break b}c=J[a>>2];J[c+20>>2]=33;kc[J[c>>2]](a);c=J[a+36>>2]}if((d|0)!=(P(c,3)|0)){c=J[a>>2];J[c+20>>2]=12;kc[J[c>>2]](a);c=J[a+36>>2]}d= +b+1|0;e=e-1|0;g=J[a+216>>2];if(!g){g=kc[J[J[a+4>>2]>>2]](a,1,P(c,88))|0;J[a+216>>2]=g;c=J[a+36>>2]}if((c|0)>0){c=0;while(1){J[g+4>>2]=c;if(!e){if(!(kc[J[f+12>>2]](a)|0))break a;e=J[f+4>>2];d=J[f>>2]}J[g>>2]=K[d|0];b=e-1|0;if(b)h=d+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break a;b=J[f+4>>2];h=J[f>>2]}d=K[h|0];J[g+12>>2]=d&15;J[g+8>>2]=d>>>4;b=b-1|0;if(b)h=h+1|0;else{if(!(kc[J[f+12>>2]](a)|0))break a;b=J[f+4>>2];h=J[f>>2]}J[g+16>>2]=K[h|0];e=J[a>>2];J[e+24>>2]=J[g>>2];J[e+28>>2]=J[g+8>>2];J[e+32>>2]=J[g+ +12>>2];d=J[g+16>>2];J[e+20>>2]=103;J[e+36>>2]=d;kc[J[e+4>>2]](a,1);d=h+1|0;e=b-1|0;g=g+88|0;c=c+1|0;if((c|0)>2])continue;break}}J[J[a+460>>2]+16>>2]=1;J[f+4>>2]=e;J[f>>2]=d;return 1}return 0}function yBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-48|0;fc=d;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(K[a+60|0]){if(!J[693734]){b=Qc(d+8|0,2407801,2385400,1848,2413811,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}f=d+8|0;Ho(f);e=J[J[a>>2]+60>>2];J[699344]=0; +ca(e|0,a|0,f|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)j:{a=J[d+8>>2];e=J[J[a>>2]+24>>2];J[699344]=0;$(e|0,a|0);e=J[699344];J[699344]=0;if((e|0)==1)break j;e=J[J[a>>2]+20>>2];J[699344]=0;ha(e|0,a|0,0,0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;ca(J[693734],f|0,b|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break j;a=J[d+8>>2];J[d+8>>2]=0;if(!a)break i;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]= +0;if((a|0)!=1)break i}break a}a=Z()|0;zc(d+8|0);break c}if(c){lX(b);c=d+8|0;RA(c,b,2408256);b=J[J[a>>2]+60>>2];J[699344]=0;ca(b|0,a|0,c|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break d;a=J[d+8>>2];J[d+8>>2]=0;if(!a)break i;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break i}break a}c=d+8|0;kA(c,b);J[699344]=0;da(5283,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;da(5464,d+44| +0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;ca(5465,J[d+44>>2],c|0,d|0);a=J[699344];J[699344]=0;k:{if((a|0)!=1){a=J[d+44>>2];J[d+44>>2]=0;if(!a)break k;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break k;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break k}break a}a=Z()|0;zc(d+44|0);break f}wc(d);J[d+32>>2]=2392964;J[d+8>>2]=2392932;a=J[d+36>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+36>>2]=0}J[d+24>> +2]=2392964;a=J[d+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[d+28>>2]=0}wc(d+16|0)}fc=d+48|0;return}a=Z()|0;break e}a=Z()|0}wc(d)}Ed(d+8|0);break c}a=Z()|0;zc(d+8|0)}ba(a|0)}B()}ea(0)|0;Bc();B()}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,o=0;d=fc+-64|0;fc=d;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;a:{b:{c:{d:{e:{f:{g:{h:switch(J[b>>2]-5|0){case 0:break a;case 4:break h;default:break g}e=J[a+4>>2];i=J[e+8>>2];if((i|0)<=0)break g;f=J[b+ +8>>2];h=J[b+12>>2];j=J[e>>2];e=0;while(1){g=J[j+(e<<2)>>2];if((f|0)==J[g>>2]&(h|0)==J[g+4>>2])break f;e=e+1|0;if((i|0)!=(e|0))continue;break}}jf(b,J[a>>2],d+48|0,0);i:{if(J[d+48>>2]==7)if(E$(J[d+56>>2],786708))break i;yc(d+48|0);break a}b=0;f=d+32|0;if(J[Ec(J[d+56>>2],787566,f,0)>>2]==6){n=c,o=GB(a,f,0),J[n>>2]=o;break c}f=d+32|0;yc(f);j=2;i=1;j:{if(J[Ec(J[d+56>>2],788185,f,0)>>2]!=4){g=0;break j}if(J[d+32>>2]!=4){g=0;break j}f=J[d+40>>2];if(!Ic(f,788988)){g=0;b=1;i=0;j=1;break j}if(!Ic(f,789812)){g= +0;break j}k:{if(!Ic(f,790744)){j=3;g=0;break k}g=0;if(Ic(f,791618))break j;j=4;g=1}i=0}f=d+32|0;yc(f);Ke(J[d+56>>2],776342,f);l:{if(J[d+32>>2]!=9)break l;e=J[a+4>>2];l=J[e+8>>2];if((l|0)<=0)break l;f=J[d+40>>2];h=J[d+44>>2];m=J[e>>2];e=0;while(1){k=J[m+(e<<2)>>2];if((f|0)==J[k>>2]&(h|0)==J[k+4>>2])break e;e=e+1|0;if((l|0)!=(e|0))continue;break}}J[c>>2]=b|g;k=0;if(J[jf(d+32|0,J[a>>2],d+16|0,0)>>2]!=6)break d;m:{e=J[d+24>>2];if(J[e+12>>2]>0){j=j-1|0;g=0;i=0;while(1){tg(e,g,d);n:{if(J[d>>2]!=9)break n; +h=J[a+4>>2];l=J[h+8>>2];if((l|0)<=0)break n;b=J[d+8>>2];f=J[d+12>>2];m=J[h>>2];e=0;while(1){h=J[m+(e<<2)>>2];if(!((b|0)==J[h>>2]&(f|0)==J[h+4>>2])){e=e+1|0;if((l|0)!=(e|0))continue;break n}break}i=1;o:{p:switch(j|0){case 0:b=0;if(!J[c>>2])break o;b=J[h+20>>2]!=0;break o;case 1:b=1;if(J[c>>2])break o;b=J[h+20>>2]!=0;break o;case 2:b=1;if(J[c>>2])break o;b=!J[h+20>>2];break o;case 3:break p;default:break n}b=0;if(!J[c>>2])break o;b=!J[h+20>>2]}J[c>>2]=b}yc(d);g=g+1|0;e=J[d+24>>2];if((g|0)>2])continue; +break}if(i)break m}yc(d+16|0);yc(d+32|0);yc(d+48|0);break a}yc(d+16|0);break c}J[c>>2]=J[g+20>>2];break b}a=J[k+20>>2];J[c>>2]=b?a:i?a:!a;break c}yc(d+16|0);yc(d+32|0);yc(d+48|0);break a}yc(d+32|0);yc(d+48|0)}k=1}fc=d- -64|0;return k}function S3(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=a+72|0;j=a+92|0;d=J[a+124>>2];h=2;a:{b:{c:{while(1){d:{e:{f:{g:{h:{i:{j:{k:switch(d|0){case 1:d=J[k>>2];break j;case 10:break a;case 2:break i;case 0:break k;case 9:break b;case 8:break c;case 7:break d;case 6:break e; +case 5:break f;case 4:break g;case 3:break h;default:continue}Cx(k,J[a+120>>2]!=0);iD(k,O[a+112>>3],J[a+120>>2]);d=J[a+72>>2];if(d>>>0<=2)J[a+120>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+124>>2]=1}h=d;d=J[a+120>>2];if(h>>>0<(d?3:2)>>>0)break a;J[a+132>>2]=0;J[a+136>>2]=0;d=d?4:2;J[a+124>>2]=d;h=1;continue}d=J[J[a+84>>2]>>2];Q3(a,j,d,d+24|0,O[d+16>>3]);J[a+132>>2]=1;J[a+136>>2]=0;J[a+124>>2]=7;J[a+128>>2]=4;d=7;continue}e=J[a+72>>2];d=e-1|0;f=J[a+84>>2];e=e-2|0;e=J[f+(e>>>4&268435452)>>2]+P(e&63,24)| +0;Q3(a,j,J[f+(d>>>4&268435452)>>2]+P(d&63,24)|0,e,O[e+16>>3]);J[a+136>>2]=0;J[a+124>>2]=7;J[a+128>>2]=6;d=7;continue}e=J[a+72>>2];d=J[a+132>>2];l:{if(J[a+120>>2]){if(d>>>0>>0)break l;J[a+124>>2]=8;J[a+128>>2]=5;d=8;continue}if(d>>>0>>0)break l;d=3;J[a+124>>2]=3;continue}f=J[a+84>>2];g=((d+e|0)-1>>>0)%(e>>>0)|0;g=J[f+(g>>>4&268435452)>>2]+P(g&63,24)|0;i=J[f+(d>>>4&268435452)>>2]+P(d&63,24)|0;d=(d+1>>>0)%(e>>>0)|0;P3(a,j,g,i,J[f+(d>>>4&268435452)>>2]+P(d&63,24)|0,O[g+16>>3],O[i+16>>3]);J[a+ +136>>2]=0;e=J[a+124>>2];d=7;J[a+124>>2]=7;J[a+128>>2]=e;J[a+132>>2]=J[a+132>>2]+1;continue}J[a+124>>2]=6;h=1}d=J[a+132>>2];if(d>>>0<=!J[a+120>>2]>>>0){J[a+124>>2]=9;J[a+128>>2]=10;d=9;continue}e=d-1|0;J[a+132>>2]=e;f=J[a+84>>2];e=J[f+(e>>>4&268435452)>>2]+P(e&63,24)|0;g=J[a+72>>2];i=(d>>>0)%(g>>>0)|0;d=((d+g|0)-2>>>0)%(g>>>0)|0;d=J[f+(d>>>4&268435452)>>2]+P(d&63,24)|0;P3(a,j,J[f+(i>>>4&268435452)>>2]+P(i&63,24)|0,e,d,O[e+16>>3],O[d+16>>3]);J[a+136>>2]=0;J[a+128>>2]=J[a+124>>2];d=7;J[a+124>>2]=7;continue}d= +J[a+136>>2];if(d>>>0>=M[a+92>>2]){d=J[a+128>>2];J[a+124>>2]=d;continue}break}J[a+136>>2]=d+1;a=J[J[a+104>>2]+(d>>>4&268435452)>>2]+((d&63)<<4)|0;O[b>>3]=O[a>>3];O[c>>3]=O[a+8>>3];return h}J[a+124>>2]=J[a+128>>2];return 95}J[a+124>>2]=J[a+128>>2];l=111}return l}function hAb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=kc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+P(b,3)|0)+P(J[a+672>>2],3)|0;c=b;b=J[a+656>> +2];f=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];g=K[a+649|0];e=J[a+644>>2];b:{if(!K[a+648|0]){b=e+(b<<2)|0;if(!g)break b;if((c|0)<=(f|0))break a;while(1){H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0];b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;f=c+f|0;if((f|0)>2])continue;break}break a}b=e+(b<<3)|0;if(g){if((c|0)<=(f|0))break a;while(1){H[d|0]=K[b|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b+4|0];b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;f=c+f|0;if((f|0)>2])continue;break}break a}if((c|0)<=(f|0))break a; +while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;if((c|0)==65535){H[d|0]=K[b|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b+4|0];break c}g=K[b|0]|K[b+1|0]<<8;e=K[b+2|0]|K[b+3|0]<<8;h=K[b+4|0]|K[b+5|0]<<8;i=P(c,(h<<8|h>>>8)&65535);h=K[d+2|0];j=h<<8|h;h=c^65535;i=(i+P(j,h)|0)+32768|0;H[d+2|0]=(i>>>16|0)+i>>>24;i=P((e<<8|e>>>8)&65535,c);e=K[d+1|0];e=(i+P(h,e<<8|e)|0)+32768|0;H[d+1|0]=(e>>>16|0)+e>>>24;e=P((g<<8|g>>>8)&65535,c);c=K[d|0];c=(e+P(h,c<<8|c)|0)+32768|0;H[d|0]=(c>>>16|0)+c>>>24}b=b+ +8|0;c=J[a+584>>2];d=P(c,3)+d|0;f=c+f|0;if((f|0)>2])continue;break}break a}if((c|0)<=(f|0))break a;while(1){c=K[b+3|0];d:{if(!c)break d;if((c|0)==255){H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0];break d}g=c^255;e=(P(c,K[b|0])+P(g,K[d|0])|0)+128|0;H[d|0]=(e>>>8&255)+e>>>8;e=(P(c,K[b+1|0])+P(g,K[d+1|0])|0)+128|0;H[d+1|0]=(e>>>8&255)+e>>>8;c=(P(c,K[b+2|0])+P(g,K[d+2|0])|0)+128|0;H[d+2|0]=(c>>>8&255)+c>>>8}b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;f=c+f|0;if((f|0)>2])continue;break}}d= +J[a+680>>2]+J[a+572>>2]|0;f=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-f|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function bAb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+572>>2];d=J[a+664>>2];a:{if((b|0)<(d|0)|(b|0)>=J[a+668>>2])break a;c=kc[J[a+220>>2]](a,J[a+680>>2]+(b-d|0)|0)|0;b=J[a+580>>2];d=(c+P(b,3)|0)+ +P(J[a+672>>2],3)|0;c=b;b=J[a+656>>2];e=c+b|0;b=(b|0)/J[a+584>>2]|0;c=J[a+660>>2];f=K[a+649|0];g=J[a+644>>2];b:{if(!K[a+648|0]){b=g+(b<<2)|0;if(!f)break b;if((c|0)<=(e|0))break a;while(1){H[d|0]=K[b+2|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b|0];b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}b=g+(b<<3)|0;if(f){if((c|0)<=(e|0))break a;while(1){H[d|0]=K[b+4|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b|0];b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c| +0)<=(e|0))break a;while(1){c=K[b+6|0]|K[b+7|0]<<8;c=(c<<8|c>>>8)&65535;c:{if(!c)break c;if((c|0)==65535){H[d|0]=K[b+4|0];H[d+1|0]=K[b+2|0];H[d+2|0]=K[b|0];break c}f=K[b+2|0]|K[b+3|0]<<8;g=K[b+4|0]|K[b+5|0]<<8;h=K[b|0]|K[b+1|0]<<8;i=P(c,(h<<8|h>>>8)&65535);h=K[d+2|0];j=h<<8|h;h=c^65535;i=(i+P(j,h)|0)+32768|0;H[d+2|0]=(i>>>16|0)+i>>>24;i=P((f<<8|f>>>8)&65535,c);f=K[d+1|0];f=(i+P(h,f<<8|f)|0)+32768|0;H[d+1|0]=(f>>>16|0)+f>>>24;f=P(c,(g<<8|g>>>8)&65535);c=K[d|0];c=(f+P(h,c<<8|c)|0)+32768|0;H[d|0]=(c>>> +16|0)+c>>>24}b=b+8|0;c=J[a+584>>2];d=P(c,3)+d|0;e=c+e|0;if((e|0)>2])continue;break}break a}if((c|0)<=(e|0))break a;while(1){c=K[b+3|0];d:{if(!c)break d;if((c|0)==255){H[d|0]=K[b+2|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b|0];break d}f=c^255;g=(P(c,K[b+2|0])+P(f,K[d|0])|0)+128|0;H[d|0]=(g>>>8&255)+g>>>8;g=(P(c,K[b+1|0])+P(f,K[d+1|0])|0)+128|0;H[d+1|0]=(g>>>8&255)+g>>>8;c=(P(c,K[b|0])+P(f,K[d+2|0])|0)+128|0;H[d+2|0]=(c>>>8&255)+c>>>8}b=b+4|0;c=J[a+584>>2];d=P(c,3)+d|0;e=c+e|0;if((e|0)>2])continue; +break}}d=J[a+680>>2]+J[a+572>>2]|0;e=J[a+664>>2];b=J[a+556>>2];c=J[a+672>>2];e:{if((c|0)>=J[a+552>>2]){if(b)break e;b=0}J[a+552>>2]=c}c=b;b=J[a+676>>2];if((c|0)<(b|0))J[a+556>>2]=b;b=J[a+564>>2];d=d-e|0;f:{if((d|0)>=J[a+560>>2]){if(b)break f;b=0}J[a+560>>2]=d}if((b|0)<=(d|0))J[a+564>>2]=d+1;return 0}function zBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-48|0;fc=d;NH(d+44|0,a);a:{b:{c:{e=J[d+44>>2];a=J[e+8>>2];if(a){J[699344]=0;J[a+4>>2]=J[a+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break c;a=J[e+ +8>>2]}else a=0;J[d+40>>2]=a;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if(!c){J[699344]=0;c=J[a+16>>2];e=J[699344];J[699344]=0;if((e|0)==1)break n;if((c|0)<2)break m}J[699344]=0;da(5462,J[d+44>>2],b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break l}a=Z()|0;break d}J[699344]=0;c=d+24|0;ca(5326,c|0,a|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break e;e=J[d+32>>2];J[d+12>>2]=e;J[d+16>>2]=c;if(!e){J[699344]=0;da(5243,d+12|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;B()}c=J[d+44>>2];e=J[e+8>>2];J[699344]=0;ca(5334, +d+20|0,c|0,e+36|0);c=J[699344];J[699344]=0;if((c|0)==1)break k;J[699344]=0;da(5321,d+8|0,J[d+20>>2]);c=J[699344];J[699344]=0;if((c|0)==1)break j;b=J[b>>2];J[699344]=0;ga(5463,b|0,2401008,4)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;J[699344]=0;ga(5335,b|0,J[d+8>>2],0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;b=J[d+8>>2];J[d+8>>2]=0;o:{if(!b)break o;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break o;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]= +0;if((b|0)==1)break a}b=J[d+20>>2];J[d+20>>2]=0;p:{if(!b)break p;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break p;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}id(d+24|0)}J[d+40>>2]=0;if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}break a}a=Z()|0;break g}a=Z()|0;break h}a=Z()|0;zc(d+8|0)}zc(d+20|0)}id(d+24| +0);break d}a=J[d+44>>2];J[d+44>>2]=0;q:{if(!a)break q;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break q;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+48|0;return}a=Z()|0}zc(d+40|0);break b}a=Z()|0}zc(d+44|0);ba(a|0);B()}ea(0)|0;Bc();B()}function snb(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;i=fc-16|0;fc=i;m=J[c>>2];J[i+12>>2]=0;f=8;d=a+5|0;a:{if(d>>>0>b>>>0)break a;g=K[a+3|0];h=K[a+4|0]; +j=J[c+92>>2];a=h+j|0;if(a>>>0>M[c+96>>2]){a=a+3&-4;o=c,p=_c(m,36,j,a,J[c+100>>2],i+12|0),J[o+100>>2]=p;f=J[i+12>>2];if(f)break a;J[c+96>>2]=a}f=8;a=b;n=g&8;b=g&4;k=g&16;l=g&1;g=g&2;if(a>>>0>>3)+(b>>>2)+(k>>>4)|0)+(g?l+9|0:l|8)|0,h)+d>>>0)break a;m=J[c+92>>2];b:{if(!h)break b;a=J[c+100>>2]+P(m,36)|0;if(!b){while(1){b=K[d|0];c:{if(l){b=K[d+1|0]|b<<8;d=d+2|0;break c}d=d+1|0}J[a>>2]=b;b=K[d|0];d:{if(g){b=K[d+1|0]|b<<8;d=d+2|0;break d}d=d+1|0}J[a+4>>2]=b;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+2|0]|K[d+ +1|0]<<8;j=K[d+4|0];b=K[d+3|0];e:{if(n){f=d+6|0;b=K[d+5|0]|(j<<8|b<<16);break e}f=d+5|0;b=j|b<<8}J[a+24>>2]=b;b=K[f|0];f:{if(k){b=K[f+1|0]|b<<8;d=f+2|0;break f}d=f+1|0}J[a+28>>2]=b;a=a+36|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break b}if(!n){while(1){f=K[d|0];g:{if(l){f=K[d+1|0]|f<<8;b=d+2|0;break g}b=d+1|0}J[a>>2]=f;d=K[b|0];h:{if(g){d=K[b+1|0]|d<<8;b=b+2|0;break h}b=b+1|0}J[a+4>>2]=d;d=b;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<<16);J[a+24>>2]=K[d+5|0]|K[d+4|0]<<8;b=K[d+6|0]; +i:{if(k){b=K[d+7|0]|b<<8;d=d+8|0;break i}d=d+7|0}J[a+28>>2]=b;a=a+36|0;e=e+1|0;if((h|0)!=(e|0))continue;break}break b}b=0;if(!l)while(1){J[a>>2]=K[d|0];e=K[d+1|0];j:{if(g){e=K[d+2|0]|e<<8;d=d+3|0;break j}d=d+2|0}J[a+4>>2]=e;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<<16);J[a+24>>2]=K[d+6|0]|(K[d+5|0]<<8|K[d+4|0]<<16);e=K[d+7|0];k:{if(k){e=K[d+8|0]|e<<8;d=d+9|0;break k}d=d+8|0}J[a+28>>2]=e;a=a+36|0;b=b+1|0;if((h|0)!=(b|0))continue;break b}while(1){J[a>>2]=K[d+1|0]|K[d|0]<<8;e=K[d+2| +0];l:{if(g){e=K[d+3|0]|e<<8;d=d+4|0;break l}d=d+3|0}J[a+4>>2]=e;J[a+8>>2]=K[d|0];J[a+20>>2]=K[d+3|0]|(K[d+2|0]<<8|K[d+1|0]<<16);J[a+24>>2]=K[d+6|0]|(K[d+5|0]<<8|K[d+4|0]<<16);e=K[d+7|0];m:{if(k){e=K[d+8|0]|e<<8;d=d+9|0;break m}d=d+8|0}J[a+28>>2]=e;a=a+36|0;b=b+1|0;if((h|0)!=(b|0))continue;break}}J[c+92>>2]=h+m;f=J[i+12>>2]}fc=i+16|0;return f|0}function aaa(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;d=fc-1008|0;fc=d;f=J[a+4>>2];e=J[a+12>>2];a:{if(!e){h=f<<2;f=4;break a}h=e;e= +e>>31;h=(h^e)-e|0;f=(h>>>0)/(f>>>0)|0}b:{c:{d:{e:{f:{g:{h:{if((c|0)==21){J[d+20>>2]=0;J[d+24>>2]=0;I[d>>1]=256;I[d+2>>1]=0;I[d+4>>1]=0;J[d+16>>2]=188;J[d+8>>2]=858993459;J[d+12>>2]=1072378675;J[d+28>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;H[d+6|0]=0;c=J[a+8>>2];f=J[a+4>>2];e=J[a+16>>2];i:{j:{k:{if(H[b+11|0]>=0){J[d+1E3>>2]=J[b+8>>2];g=J[b+4>>2];J[d+992>>2]=J[b>>2];J[d+996>>2]=g;break k}g=J[b+4>>2];b=J[b>>2];J[699344]=0;ca(15,d+992|0,b|0,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break j}a=K[a+ +40|0];J[699344]=0;g=va(16,d|0,e|0,P(P(c,f),24)|0,f|0,c|0,d+992|0,!a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;if(H[d+1003|0]<0)uc(J[d+992>>2]);if(H[d+43|0]<0)uc(J[d+32>>2]);if(H[d+31|0]>=0)break h;uc(J[d+20>>2]);break h}a=Z()|0;break b}a=Z()|0;if(H[d+1003|0]<0)uc(J[d+992>>2]);break b}e=d+976|0;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=415588;J[699344]=0;b=aa(17,e|0,b|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break f;if(b){J[699344]=0;b=xf(d,0);g=J[699344];J[699344]=0;if((g|0)==1)break g; +g=J[a+8>>2];i=J[a+4>>2];j=J[a+16>>2];k=K[a+40|0];l=J[a+12>>2];J[699344]=0;f=za(18,b|0,j|0,i|0,g|0,f<<3,h|0,(l^-1)>>>31|0,!k|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;g=0;l:{if(!f)break l;f=J[a+20>>2];if(f){a=J[a+24>>2];J[699344]=0;ca(19,b|0,f|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break e}J[699344]=0;a=J[e+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;a=ga(20,b|0,a|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(!a)break l;J[699344]=0;$(21,e|0);a=J[699344];J[699344]= +0;g=1;if((a|0)==1)break e}J[b>>2]=1032;J[699344]=0;_(13,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;_(14,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d}De(e)}fc=d+1008|0;return g|0}a=Z()|0;break c}a=Z()|0;break c}a=Z()|0;Jj(b);break c}ea(0)|0;Bc();B()}De(e);ba(a|0);B()}if(H[d+43|0]<0)uc(J[d+32>>2]);if(H[d+31|0]<0)uc(J[d+20>>2]);ba(a|0);B()}function gra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc+-64|0;fc=d;c=tH(d+24|0,b);J[c>>2]=2438660;a:{b:{c:{d:{if(!K[c+32|0]){J[699344]=0; +da(5282,c|0,1);e=J[699344];J[699344]=0;if((e|0)==1)break d}J[c+24>>2]=2392964;J[c>>2]=2392932;e=J[c+28>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)kc[J[J[e>>2]+4>>2]](e);J[c+28>>2]=0}J[c+16>>2]=2392964;e=J[c+20>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)kc[J[J[e>>2]+4>>2]](e);J[c+20>>2]=0}wc(c+8|0);e:{f:{g:{b=J[b>>2];b=J[(b?b+12|0:2743576)>>2];if(b){c=K[b|0];if((c|0)==239){if(K[b+1|0]!=187)break g;b=(K[b+2|0]==191?3:0)+b|0;c=K[b|0]}if(c&255)break g}J[a>>2]=0;J[a+4>>2]=J[685894];break f}c=d+16|0; +b=rl(c,b);J[d+24>>2]=0;J[d+28>>2]=J[685894];wc(b);J[699344]=0;da(6253,c|0,d+24|0);b=J[699344];J[699344]=0;h:{i:{j:{k:{if((b|0)!=1){J[699344]=0;a=aa(5149,a|0,2438641)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[d+16>>2];b=J[(b?b+12|0:2743576)>>2];if(K[b|0]!=47)break j;if(K[b+1|0]!=47)break k;J[699344]=0;aa(5355,a|0,b+2|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break h;b=Z()|0;wc(a);break b}b=Z()|0;break a}J[699344]=0;ca(5218,d+8|0,2438592,d+16|0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+8>> +2];l:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+60|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break l;b=Z()|0;break c}J[d+60>>2]=0}J[699344]=0;aa(5153,a|0,d+60|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+60>>2];J[d+60>>2]=0;if(!b)break i;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i}ea(0)|0;Bc();B()}b=Z()|0;zc(d+60|0);break c}b=Z()|0;wc(a);break b}J[699344]=0;b=d+8|0;ca(5218,b| +0,2438708,d+16|0);c=J[699344];J[699344]=0;m:{if((c|0)!=1){J[699344]=0;aa(5340,a|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;wc(b);break h}b=Z()|0;wc(a);break b}b=Z()|0;wc(d+8|0);wc(a);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(d+8|0)}wc(d+16|0);wc(d+24|0)}fc=d- -64|0;return}b=Z()|0;break b}a=Z()|0;Ed(c);ba(a|0);B()}wc(d+8|0);wc(a)}wc(d+16|0)}wc(d+24|0);ba(b|0);B()}function oM(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;f=fc-32|0;fc=f;O[f+24>>3]=c;O[a>>3]= +O[b>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3];e=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=e;e=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=e;J[a+64>>2]=J[b+64>>2];e=J[b+68>>2];J[a+68>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;h=O[b+72>>3];O[a+72>>3]=h;i=O[b+80>>3];O[a+80>>3]=i;l=O[b+88>>3];O[a+88>>3]=l;m=O[b+96>>3];O[a+96>>3]=m;n=O[b+104>>3];O[a+104>>3]=n;o=O[b+112>>3];O[a+112>>3]=o;e=J[b+124>>2];J[a+120>>2]=J[b+120>>2];J[a+124>>2]=e;e= +J[b+132>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=e;J[a+136>>2]=J[b+136>>2];e=J[b+140>>2];J[a+140>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;a:{if(!(c>d)){k=c;c=d;break a}O[f+24>>3]=d;k=d}if(k>0){es(f+12|0,b,f+24|0);qM(a,J[f+12>>2]+144|0);j=J[f+12>>2];if(j){b=J[f+16>>2];e=j;if((b|0)!=(e|0)){while(1){e=b;b=b-144|0;g=J[b+140>>2];b:{if(!g)break b;p=J[g+4>>2];J[g+4>>2]=p-1;if(p)break b;kc[J[J[g>>2]+8>>2]](g);Gc(g)}e=J[e-76>>2];c:{if(!e)break c;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break c;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((b| +0)!=(j|0))continue;break}e=J[f+12>>2];k=O[f+24>>3]}J[f+16>>2]=j;uc(e)}h=O[a+72>>3];l=O[a+88>>3]-h;O[a+88>>3]=l;i=O[a+80>>3];m=O[a+96>>3]-i;O[a+96>>3]=m;n=O[a+104>>3]-h;O[a+104>>3]=n;o=O[a+112>>3]-i;O[a+112>>3]=o}if(c<1){O[f>>3]=(c-k)/(1-k);es(f+12|0,a,f);qM(a,J[f+12>>2]);j=J[f+12>>2];if(j){b=J[f+16>>2];e=j;if((b|0)!=(e|0)){while(1){e=b;b=b-144|0;g=J[b+140>>2];d:{if(!g)break d;p=J[g+4>>2];J[g+4>>2]=p-1;if(p)break d;kc[J[J[g>>2]+8>>2]](g);Gc(g)}e=J[e-76>>2];e:{if(!e)break e;g=J[e+4>>2];J[e+4>>2]=g- +1;if(g)break e;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((b|0)!=(j|0))continue;break}e=J[f+12>>2];k=O[f+24>>3]}J[f+16>>2]=j;uc(e)}h=O[a+72>>3];l=O[a+88>>3]-h;O[a+88>>3]=l;i=O[a+80>>3];m=O[a+96>>3]-i;O[a+96>>3]=m;n=O[a+104>>3]-h;O[a+104>>3]=n;o=O[a+112>>3]-i;O[a+112>>3]=o}if(c>3];O[a+80>>3]=c;d=O[a>>3];O[a+72>>3]=d;O[a+8>>3]=i;O[a>>3]=h;O[a+112>>3]=i+o-c;O[a+104>>3]=h+n-d;O[a+96>>3]=i+m-c;O[a+88>>3]=h+l-d}fc=f+32|0}function JT(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;Tc(b,2452744,-1);Tc(b, +2452768,-1);Tc(b,2452880,-1);Tc(b,2453008,-1);Tc(b,2453052,-1);Tc(b,2453096,-1);Tc(b,2453140,-1);Tc(b,2453184,-1);Tc(b,2453228,-1);Tc(b,2453288,-1);Oj(b,J[a+692>>2]);Tc(b,2453360,-1);Tc(b,2453368,-1);Oj(b,K[a+622|0]);Tc(b,2453360,-1);Tc(b,2453420,-1);Tc(b,2453468,-1);Tc(b,2453540,-1);Tc(b,2453612,-1);Tc(b,2453660,-1);Tc(b,2453668,-1);e=R(O[a+608>>3]);if(e>.01)f=O[a+560>>3];else f=O[a+32>>3];i=f;a:{if(e>.01){e=R(O[a+608>>3]);f=O[a+576>>3];break a}f=O[a+40>>3]}b:{if(e>.01){e=R(O[a+608>>3]);h=O[a+568>> +3];break b}h=O[a+8>>3]}if(e>.01)e=O[a+584>>3];else e=O[a+16>>3];Tc(b,2453780,-1);Tc(b,2453920,-1);d=i*36E3;c:{if(R(d)<0x7fffffffffffffff){g=~~d>>>0;if(R(d)>=1)c=~~(d>0?T(V(d*2.3283064365386963E-10),4294967295):W((d-+(~~d>>>0>>>0))*2.3283064365386963E-10))>>>0;else c=0;break c}c=-2147483648}Rz(b,g,c);Tc(b,2453980,-1);Tc(b,2454044,-1);Tc(b,2454108,-1);Tc(b,2453920,-1);d=h*36E3;d:{if(R(d)<0x7fffffffffffffff){g=~~d>>>0;if(R(d)>=1)c=~~(d>0?T(V(d*2.3283064365386963E-10),4294967295):W((d-+(~~d>>>0>>>0))* +2.3283064365386963E-10))>>>0;else c=0;break d}g=0;c=-2147483648}Rz(b,g,c);Tc(b,2453980,-1);Tc(b,2454248,-1);Tc(b,2454312,-1);Tc(b,2454356,-1);f=(f-i)*36E3;e:{if(f<4294967296&f>=0){c=~~f>>>0;break e}c=0}Oj(b,c);Tc(b,2454380,-1);e=(e-h)*36E3;f:{if(e<4294967296&e>=0){c=~~e>>>0;break f}c=0}Oj(b,c);Tc(b,2452492,-1);Tc(b,2454408,-1);Tc(b,2454580,-1);Tc(b,2454640,-1);c=J[698549]+1|0;J[698549]=c;Oj(b,c);c=J[a+56>>2]-1|0;if(c>>>0<=4)c=J[(c<<2)+2463700>>2];else c=2455104;Tc(b,c,-1);Oj(b,J[a+688>>2]);Tc(b,2452492, +-1);Tc(b,2455164,-1);Tc(b,2455312,-1);g:{h:switch(J[a+56>>2]-3|0){case 0:IT(a,b);break g;case 2:Tc(b,2459208,-1);break g;case 1:c=fc-16|0;fc=c;Tc(b,2458584,-1);Tc(b,2458936,-1);Tc(b,2458976,-1);Tc(b,2459048,-1);H[c+15|0]=0;Lv(a,b,c+15|0);Kv(a,b);Tc(b,2459104,-1);IT(a,b);HT(a,b);Tc(b,2456212,-1);Tc(b,2459164,-1);Tc(b,2456256,-1);fc=c+16|0;break g;default:break h}HT(a,b)}Tc(b,2455616,-1);Tc(b,2455260,-1);Tc(b,2452928,-1);Tc(b,2452980,-1)}function v$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+20>> +2];if((c|0)!=100){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;kc[J[J[a>>2]>>2]](a)}J[a+256>>2]=0;J[a+244>>2]=0;J[a+80>>2]=b;a:{b:{c:switch(b|0){case 1:J[a+76>>2]=1;J[a+244>>2]=1;a=J[a+84>>2];J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=1;return;case 2:J[a+76>>2]=3;J[a+256>>2]=1;a=J[a+84>>2];J[a+176>>2]=66;J[a+88>>2]=71;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=82;break b;case 3:J[a+76>>2]=3;J[a+244>>2]=1;a=J[a+84>>2];J[a+176>>2]=3;J[a+88>>2]=2;J[a+ +24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;break a;case 4:J[a+76>>2]=4;J[a+256>>2]=1;a=J[a+84>>2];J[a+264>>2]=75;J[a+176>>2]=89;J[a+88>>2]=77;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=67;J[a+288>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=1;J[a+276>>2]=1;break b;case 5:J[a+76>>2]=4;J[a+256>>2]=1;a=J[a+84>>2];J[a+264>>2]=4;J[a+176>>2]=3;J[a+88>>2]=2;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=2;J[a+12>>2]=2;J[a>>2]=1;J[a+288>>2]=0;J[a+ +280>>2]=0;J[a+284>>2]=0;J[a+272>>2]=2;J[a+276>>2]=2;break a;case 0:b=J[a+36>>2];J[a+76>>2]=b;d:{if(b-11>>>0<=4294967285){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=27;J[J[a>>2]+28>>2]=10;kc[J[J[a>>2]>>2]](a);b=J[a+76>>2];if((b|0)<=0)break d}d=J[a+84>>2];a=0;if((b|0)!=1){g=b&-2;while(1){c=d+P(a,88)|0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=1;J[c+12>>2]=1;J[c>>2]=a;e=a|1;c=d+P(e,88)|0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=1;J[c+12>>2]=1;J[c>>2]=e;a=a+2|0;f=f+2|0;if((g|0)!=(f|0))continue; +break}}if(!(b&1))break d;b=d+P(a,88)|0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=1;J[b+12>>2]=1;J[b>>2]=a}return;default:break c}b=J[a>>2];J[b+20>>2]=11;kc[J[b>>2]](a);return}J[a+200>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=1;J[a+100>>2]=1;return}J[a+200>>2]=1;J[a+192>>2]=1;J[a+196>>2]=1;J[a+184>>2]=1;J[a+188>>2]=1;J[a+112>>2]=1;J[a+104>>2]=1;J[a+108>>2]=1;J[a+96>>2]=1;J[a+100>>2]=1}function TS(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;j=fc-128|0;fc=j;a:{b:{c:{if(!ir(f,g,h,i,0,0,0,0))break c;k=i&65535;n=i>>>16&32767;d:e:{if((n|0)!=32767){l=4;if(n)break e;l=f|h|(g|k)?3:2;break d}l=!(f|h|(g|k))}s=e>>>16|0;o=s&32767;if((o|0)==32767)break c;if(l)break b}Zf(j+16|0,b,c,d,e,f,g,h,i);b=J[j+16>>2];d=J[j+20>>2];e=J[j+24>>2];c=J[j+28>>2];FS(j,b,d,e,c,b,d,e,c);d=J[j+8>>2];e=J[j+12>>2];h=J[j>>2];i=J[j+4>>2];break a}l=d;p=e&2147483647;k=p;n=h;m=i&2147483647;if((ir(b,c,l,k,f,g,h,m)|0)<=0){if(ir(b,c,l, +k,f,g,h,m)){h=b;i=c;break a}Zf(j+112|0,b,c,d,e,0,0,0,0);d=J[j+120>>2];e=J[j+124>>2];h=J[j+112>>2];i=J[j+116>>2];break a}q=i>>>16&32767;if(o){i=c;h=b}else{Zf(j+96|0,b,c,l,p,0,0,0,1081540608);l=J[j+104>>2];h=J[j+108>>2];p=h;o=(h>>>16|0)-120|0;i=J[j+100>>2];h=J[j+96>>2]}if(!q){Zf(j+80|0,f,g,n,m,0,0,0,1081540608);n=J[j+88>>2];f=J[j+92>>2];m=f;q=(f>>>16|0)-120|0;g=J[j+84>>2];f=J[j+80>>2]}r=n;t=m&65535|65536;p=p&65535|65536;if((o|0)>(q|0)){while(1){m=l-r|0;k=(g|0)==(i|0)&f>>>0>h>>>0|g>>>0>i>>>0;n=m-k|0; +k=(p-((l>>>0>>0)+t|0)|0)-(k>>>0>m>>>0)|0;f:{if((k|0)>=0|(k|0)>0){l=h;h=h-f|0;i=i-((f>>>0>l>>>0)+g|0)|0;if(!(h|n|(i|k))){Zf(j+32|0,b,c,d,e,0,0,0,0);d=J[j+40>>2];e=J[j+44>>2];h=J[j+32>>2];i=J[j+36>>2];break a}k=k<<1|n>>>31;l=n<<1|i>>>31;break f}k=p<<1|l>>>31;l=l<<1|i>>>31}p=k;k=i<<1|h>>>31;h=h<<1;i=k;o=o-1|0;if((o|0)>(q|0))continue;break}o=q}m=l-r|0;k=(g|0)==(i|0)&f>>>0>h>>>0|g>>>0>i>>>0;n=m-k|0;k=(p-((l>>>0>>0)+t|0)|0)-(k>>>0>m>>>0)|0;m=k;g:{if((k|0)<0){n=l;m=p;break g}l=h;h=h-f|0;i=i-((f>>> +0>l>>>0)+g|0)|0;if(h|n|(i|m))break g;Zf(j+48|0,b,c,d,e,0,0,0,0);d=J[j+56>>2];e=J[j+60>>2];h=J[j+48>>2];i=J[j+52>>2];break a}if((m|0)==65535|m>>>0<65535)while(1){b=i>>>31|0;o=o-1|0;p=i<<1|h>>>31;h=h<<1;i=p;c=b;b=m<<1|n>>>31;n=c|n<<1;m=b;if(b>>>0<65536)continue;break}b=s&32768;if((o|0)<=0){Zf(j- -64|0,h,i,n,m&65535|(b|o+120)<<16,0,0,0,1065811968);d=J[j+72>>2];e=J[j+76>>2];h=J[j+64>>2];i=J[j+68>>2];break a}d=n;e=m&65535|(b|o)<<16}J[a>>2]=h;J[a+4>>2]=i;J[a+8>>2]=d;J[a+12>>2]=e;fc=j+128|0}function Pna(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;f=fc-32|0;fc=f;a:{b:{c=J[a+4>>2];e=J[a>>2];d=(c-e|0)/12|0;j=d+1|0;if(j>>>0<357913942){h=a+8|0;g=J[h>>2];J[f+20>>2]=h;h=(g-e|0)/12|0;g=h<<1;g=h>>>0>=178956970?357913941:g>>>0>j>>>0?g:j;if(g){if(g>>>0>=357913942)break b;i=vc(P(g,12))}J[f+4>>2]=i;d=P(d,12)+i|0;J[f+12>>2]=d;h=P(g,12)+i|0;J[f+16>>2]=h;J[f+8>>2]=d;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[f+28|0]=0;J[f+24>>2]=d;i=J[b>>2];g=J[b+4>>2];if((i|0)!=(g|0)){b=g-i|0;e=b>>3;if(e>>>0>=536870912){J[699344]= +0;$(6576,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}J[699344]=0;c=_(4,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[d>>2]=c;J[d+4>>2]=c;J[d+8>>2]=(e<<3)+c;while(1){J[c>>2]=J[i>>2];b=J[i+4>>2];J[c+4>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;c=c+8|0;i=i+8|0;if((g|0)!=(i|0))continue;break}J[d+4>>2]=c;c=J[a+4>>2];e=J[a>>2]}i=d+12|0;J[f+12>>2]=i;if((c|0)==(e|0))b=e;else{while(1){d=d-12|0;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;c=c-12|0;J[d>>2]=J[c>>2];J[d+4>>2]=J[c+4>>2];J[d+8>>2]=J[c+8>>2];J[c+8>>2]= +0;J[c>>2]=0;J[c+4>>2]=0;if((c|0)!=(e|0))continue;break}e=J[a+4>>2];h=J[f+16>>2];i=J[f+12>>2];b=J[a>>2]}J[a>>2]=d;J[f+8>>2]=b;J[a+4>>2]=i;c=J[a+8>>2];J[a+8>>2]=h;J[f+4>>2]=b;J[f+16>>2]=c;if((b|0)!=(e|0)){while(1){a=e-12|0;J[f+12>>2]=a;g=J[a>>2];c:{if(!g){e=a;break c}h=e-8|0;c=J[h>>2];d:{if((g|0)==(c|0)){c=g;break d}while(1){c=c-8|0;d=J[c+4>>2];e:{if(!d)break e;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break e;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if((c|0)!=(g|0))continue;break}c=J[a>>2];a=J[f+12>>2]}e=a;J[h>>2]=g;uc(c)}if((b| +0)!=(e|0))continue;break}e=J[f+4>>2]}if(e)uc(e);fc=f+32|0;return}eh(a);B()}Pd();B()}d=Z()|0;BU(f+24|0);a=J[f+12>>2];b=J[f+8>>2];if((a|0)!=(b|0))while(1){g=a-12|0;J[f+12>>2]=g;e=J[g>>2];if(e){h=a-8|0;a=J[h>>2];c=e;if((a|0)!=(c|0)){while(1){a=a-8|0;j=J[a+4>>2];f:{if(!j)break f;c=J[j+4>>2];J[j+4>>2]=c-1;if(c)break f;kc[J[J[j>>2]+8>>2]](j);Gc(j)}if((a|0)!=(e|0))continue;break}c=J[g>>2]}J[h>>2]=e;uc(c);a=J[f+12>>2]}else a=g;if((b|0)!=(a|0))continue;break}a=J[f+4>>2];if(a)uc(a);ba(d|0);B()}function dub(a, +b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;if(!(1<>>0<=20:0))break a;j=K[d+2|0];if(j>>>0>=3){Jc(a,1052,0,0);return 1052}i=K[d+3|0];if(i>>>0>=8){Jc(a,1053,0,0);return 1053}if(!(i|c>>>0<13))break a;h=c>>>0<5;if(!(h|(i|0)!=7))break a;H[a+2253|0]=i;H[a+288|0]=1;J[a+48>>2]=J[a+48>>2]+1;f=K[d|0]|K[d+1|0]<<8;g=f<<8|f>>>8;c:{if(h){h=0;f=0;break c}h=K[d+8|0]|K[d+9|0]<<8|(K[d+ +10|0]<<16|K[d+11|0]<<24);h=h<<24|(h&65280)<<8|(h>>>8&65280|h>>>24);f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);l=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=0;if(c>>>0<13)break c;f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);m=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24)}n=g&65535;d:{if(K[a+114|0]){g=kc[J[a+152>>2]](48)|0;if(!g){Jc(a,1,0,0);h=1;break d}J[g+4>>2]=1066;J[g>>2]=1067;k=J[a+700>>2]; +e:{if(k){J[k+8>>2]=g;break e}J[a+696>>2]=g}J[g+8>>2]=0;J[g+12>>2]=k;J[a+700>>2]=g;J[g+16>>2]=J[a+436>>2];J[g+20>>2]=J[a+440>>2];J[g+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=g;J[g+44>>2]=f;J[g+40>>2]=m;J[g+36>>2]=h;J[g+32>>2]=l;H[g+31|0]=i;H[g+30|0]=j;I[g+28>>1]=n}h=$9(a,n,j,i,l,h,m,f)}f:{if(h)break f;g:{if(!K[a+112|0])break g;h=kc[J[b+4>>2]](a,b,e)|0;if(h)break f;b=K[d|0]|K[d+1|0]<<8;a=J[e>>2];H[a+35|0]=i;H[a+34|0]=j;I[a+32>>1]=b<<8|b>>>8;if(c>>>0<5)break g;b=K[d+ +4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(c>>>0<13)break g;b=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[a+44>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[b+48>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}h=0}return h|0}Jc(a,1029,0,0);return 1029}Jc(a,1028,0,0);return 1028} +function fo(a,b){var c=0,d=0,e=0,f=0;c=J[a+996>>2];e=c+J[a+1080>>2]|0;J[a+996>>2]=e;d=(c|0)>0?J[a+992>>2]&J[(c<<2)+47888>>2]|b<>2]=d;if((e|0)>=8){c=J[a+1108>>2];while(1){J[a+1108>>2]=c+1;H[J[a+1112>>2]+c|0]=d;c=J[a+1108>>2];if((c|0)>=254){d=J[a+1096>>2];kc[J[J[d>>2]+44>>2]](d,c&255)|0;c=J[a+1096>>2];kc[J[J[c>>2]+16>>2]](c,J[a+1112>>2],1,J[a+1108>>2])|0;J[a+1108>>2]=0;c=0}d=J[a+992>>2]>>>8|0;J[a+992>>2]=d;f=J[a+996>>2];e=f-8|0;J[a+996>>2]=e;if((f|0)>15)continue;break}}c=J[a+1088>>2];a:{if(!c& +I[a+1086>>1]<=I[a+1084>>1])break a;if(c){J[a+1088>>2]=0;c=J[a+1092>>2];J[a+1080>>2]=c;I[a+1084>>1]=-1<>2]+1|0;J[a+1080>>2]=c;if((c|0)==12){I[a+1084>>1]=4096;break a}I[a+1084>>1]=-1<>2]!=(b|0))break b;c:{if((e|0)<=0){c=J[a+1108>>2];break c}c=J[a+1108>>2];while(1){J[a+1108>>2]=c+1;H[J[a+1112>>2]+c|0]=d;c=J[a+1108>>2];if((c|0)>=254){b=J[a+1096>>2];kc[J[J[b>>2]+44>>2]](b,c&255)|0;b=J[a+1096>>2];kc[J[J[b>>2]+16>>2]](b,J[a+1112>>2],1,J[a+1108>>2])|0;J[a+1108>> +2]=0;c=0}d=J[a+992>>2]>>>8|0;J[a+992>>2]=d;b=J[a+996>>2];J[a+996>>2]=b-8;if((b|0)>8)continue;break}}if((c|0)>0){b=J[a+1096>>2];kc[J[J[b>>2]+44>>2]](b,c&255)|0;b=J[a+1096>>2];kc[J[J[b>>2]+16>>2]](b,J[a+1112>>2],1,J[a+1108>>2])|0;J[a+1108>>2]=0}b=J[a+1096>>2];kc[J[J[b>>2]+32>>2]](b)|0;b=J[a+1096>>2];if(!(kc[J[J[b>>2]+40>>2]](b)|0))break b;b=K[46321]|K[46322]<<8|(K[46323]<<16|K[46324]<<24);c=K[46317]|K[46318]<<8|(K[46319]<<16|K[46320]<<24);H[a+88|0]=c;H[a+89|0]=c>>>8;H[a+90|0]=c>>>16;H[a+91|0]=c>>>24; +H[a+92|0]=b;H[a+93|0]=b>>>8;H[a+94|0]=b>>>16;H[a+95|0]=b>>>24;b=K[46313]|K[46314]<<8|(K[46315]<<16|K[46316]<<24);c=K[46309]|K[46310]<<8|(K[46311]<<16|K[46312]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[46305]|K[46306]<<8|(K[46307]<<16|K[46308]<<24);c=K[46301]|K[46302]<<8|(K[46303]<<16|K[46304]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+ +79|0]=b>>>24}}function MY(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,r=0,s=0;f=fc-80|0;fc=f;h=J[b+8>>2];l=J[h>>2];n=L[h+4>>1];if(n){r=l+6|0;h=0;s=n-2&65535;o=1;while(1){p=P(h,6)+l|0;k=L[p>>1];d=J[a+16>>2];a:{if(k>>>0>=d>>>0){J[f+20>>2]=d;J[f+16>>2]=k;Nc(c,2,2358333,f+16|0);break a}e=L[p+4>>1];if((e+1&65535)>>>0<=1){I[(J[a+24>>2]+P(k,52)|0)+48>>1]=L[p+2>>1];break a}q=e-1|0;m=q&65535;if(d>>>0<=m>>>0){J[f+4>>2]=d;J[f>>2]=m;Nc(c,2,2358385,f);break a}b:{if(L[p+2>>1]|(k|0)==(m|0))break b; +e=J[a+24>>2];d=e+P(k,52)|0;J[f+72>>2]=J[d+48>>2];g=J[d+44>>2];j=f- -64|0;J[j>>2]=J[d+40>>2];J[j+4>>2]=g;g=J[d+36>>2];J[f+56>>2]=J[d+32>>2];J[f+60>>2]=g;g=J[d+28>>2];J[f+48>>2]=J[d+24>>2];J[f+52>>2]=g;g=J[d+20>>2];J[f+40>>2]=J[d+16>>2];J[f+44>>2]=g;g=J[d+12>>2];J[f+32>>2]=J[d+8>>2];J[f+36>>2]=g;g=J[d+4>>2];J[f+24>>2]=J[d>>2];J[f+28>>2]=g;g=P(m,52);e=g+e|0;J[d+48>>2]=J[e+48>>2];i=J[e+44>>2];J[d+40>>2]=J[e+40>>2];J[d+44>>2]=i;i=J[e+36>>2];J[d+32>>2]=J[e+32>>2];J[d+36>>2]=i;i=J[e+28>>2];J[d+24>>2]=J[e+ +24>>2];J[d+28>>2]=i;i=J[e+20>>2];J[d+16>>2]=J[e+16>>2];J[d+20>>2]=i;i=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=i;i=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=i;e=J[f+28>>2];d=g+J[a+24>>2]|0;J[d>>2]=J[f+24>>2];J[d+4>>2]=e;J[d+48>>2]=J[f+72>>2];e=J[j+4>>2];J[d+40>>2]=J[j>>2];J[d+44>>2]=e;e=J[f+60>>2];J[d+32>>2]=J[f+56>>2];J[d+36>>2]=e;e=J[f+52>>2];J[d+24>>2]=J[f+48>>2];J[d+28>>2]=e;e=J[f+44>>2];J[d+16>>2]=J[f+40>>2];J[d+20>>2]=e;e=J[f+36>>2];J[d+8>>2]=J[f+32>>2];J[d+12>>2]=e;if(h+1>>>0>=n>>>0)break b;e=o; +if((h^-1)+n&1){e=q;d=P(o,6)+l|0;j=L[d>>1];c:{if((j|0)!=(k|0)){e=k;if((j|0)!=(m|0))break c}I[d>>1]=e}e=o+1|0}if((h&65535)==(s|0))break b;while(1){d=q;j=P(e,6);g=j+l|0;i=L[g>>1];d:{if((i|0)!=(k|0)){d=k;if((i|0)!=(m|0))break d}I[g>>1]=d}d=q;j=j+r|0;g=L[j>>1];e:{if((g|0)!=(k|0)){d=k;if((g|0)!=(m|0))break e}I[j>>1]=d}e=e+2|0;if((e&65535)!=(n|0))continue;break}}I[(J[a+24>>2]+P(k,52)|0)+48>>1]=L[p+2>>1]}o=o+1|0;h=h+1|0;if((n|0)!=(h|0))continue;break}h=J[b+8>>2];l=J[h>>2]}if(l){uc(l);h=J[b+8>>2]}uc(h);J[b+ +8>>2]=0;fc=f+80|0}function ZRa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;u=fc-256|0;fc=u;e=a;while(1){a:{h=e;d=J[(l<<2)+b>>2]+c|0;i=K[d+4|0];m=K[d+3|0];g=i+m|0;k=K[d+7|0];j=K[d|0];f=k+j|0;n=g+f|0;p=K[d+5|0];o=K[d+2|0];q=p+o|0;r=K[d+6|0];s=K[d+1|0];d=r+s|0;t=q+d|0;J[e+16>>2]=n-t<<2;J[e>>2]=(n+t<<2)-4096;g=f-g|0;f=d-q|0;d=P(g+f|0,4433)+1024|0;J[e+24>>2]=d+P(f,-15137)>>11;J[e+8>>2]=d+P(g,6270)>>11; +d=m-i|0;i=j-k|0;m=P(d+i|0,-7373)+1024|0;g=s-r|0;f=g+d|0;k=o-p|0;n=k+i|0;j=P(f+n|0,9633);o=m+P(d,2446)|0;d=j+P(f,-16069)|0;J[e+28>>2]=o+d>>11;j=j+P(n,-3196)|0;f=P(k,16819);k=P(g+k|0,-20995)+1024|0;J[e+20>>2]=j+(f+k|0)>>11;J[e+12>>2]=d+(k+P(g,25172)|0)>>11;J[e+4>>2]=j+(m+P(i,12299)|0)>>11;i=l-7|0;l=l+1|0;e=u;d=7;b:switch(i|0){case 0:continue;case 8:break a;default:break b}e=h+32|0;continue}break}while(1){i=J[e+32>>2];m=J[a+192>>2];b=i+m|0;k=J[e+192>>2];j=J[a+32>>2];c=k+j|0;h=b+c|0;l=J[e+64>>2];g=J[a+ +160>>2];f=l+g|0;n=J[e+160>>2];p=J[a+64>>2];o=n+p|0;q=f+o|0;r=J[e>>2];s=J[a+224>>2];t=r+s|0;v=J[e+224>>2];w=J[a>>2];x=v+w|0;y=t+x|0;z=J[e+96>>2];A=J[a+128>>2];B=z+A|0;C=J[e+128>>2];D=J[a+96>>2];E=C+D|0;F=B+E|0;J[a+128>>2]=(P(h-q|0,4433)+P(y-F|0,10703)|0)+32768>>16;J[a>>2]=((h+(q+F|0)|0)+y|0)+4>>3;h=x-t|0;f=o-f|0;o=E-B|0;c=c-b|0;b=(P(h-f|0,11363)+P(o-c|0,2260)|0)+32768|0;J[a+192>>2]=(b+P(o,-8697)|0)+P(h,-1730)>>16;J[a+64>>2]=(b+P(f,17799)|0)+P(c,11893)>>16;b=g-l|0;c=A-z|0;h=D-C|0;l=p-n|0;g=(P(b-c|0, +3363)+P(h+l|0,-11086)|0)+32768|0;i=m-i|0;m=j-k|0;k=P(i+c|0,-10217)+P(m+h|0,-5461)|0;n=k+((g+P(h,8728)|0)+P(c,17760)|0)|0;j=c;c=s-r|0;f=h;h=w-v|0;j=P(j-c|0,7350)+P(f+h|0,8956)|0;J[a+224>>2]=n+j>>16;f=(g+P(l,-9222)|0)+P(b,10055)|0;g=P(i-b|0,11529)+P(l+m|0,1136)|0;b=P(b+c|0,5461)+P(h+l|0,10217)|0;J[a+160>>2]=(f+g|0)+b>>16;l=P(i-c|0,3363)+P(h+m|0,11086)|0;J[a+96>>2]=(l+(g+((k+P(m,589)|0)+P(i,-13631)|0)|0)|0)+32768>>16;J[a+32>>2]=(j+(l+((b+P(h,-18730)|0)+P(c,6387)|0)|0)|0)+32768>>16;b=d;d=d-1|0;e=e+4| +0;a=a+4|0;if(b)continue;break}fc=u+256|0}function Q1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!b)return-1;e=J[b>>2];a:{if(!a)while(1){a=K[e|0];c=(a&223)-65|0;b:{if((a-48&255)>>>0<10|(c&255)>>>0<26)break b;c:switch(a-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 62:case 93:break b;case 4:break c;default:break a}d:{c=K[e+1|0];if((c-48&255)>>>0<10)break d;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break d; +default:break a}}c=K[e+2|0];if((c-48&255)>>>0<10)break b;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break b;default:break a}}e=((a|0)==37?3:1)+e|0;continue}while(1){e:{c=K[e|0];d=(c&223)-65|0;f:{if((c-48&255)>>>0<10|(d&255)>>>0<26)break f;g:{h:switch(c-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 62:case 93:break f;case 4:break h;default:break g}i:{d= +K[e+1|0];if((d-48&255)>>>0<10)break i;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i;default:break g}}d=K[e+2|0];if((d-48&255)>>>0<10)break f;switch(d-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break f;default:break g}}g=J[a+36>>2];if(!(g&1))break e;switch(c-91|0){case 0:case 1:case 2:case 3:case 5:case 32:case 33:case 34:break f;default:break e}}e=((c|0)==37?3:1)+e|0;continue}break}c= +J[a+28>>2];if(c){kc[J[663199]](c);g=J[a+36>>2]}f=J[b>>2];d=e-f|0;j:{if(g&2){c=0;if(!f|(d|0)<0)break j;c=kc[J[663198]](d+1|0)|0;if(!c){c=0;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break j}h=xc(c,f,d)+d|0,i=0,H[h|0]=i;break j}c=Wo(f,d)}J[a+28>>2]=c;c=J[a+40>>2];if(c)kc[J[663199]](c);c=0;f=J[b>>2];k:{if(!f)break k;d=e-f|0;if((d|0)<0)break k;c=kc[J[663198]](d+1|0)|0;if(!c){c=0;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break k}h=xc(c,f,d)+d|0,i=0,H[h|0]=i}J[a+40>>2]=c}J[b>>2]=e;return 0}function _6(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;if(!(K[a+16|0]&8)){f=P(c,204)+b|0;n=J[f+200>>2];g=J[f+204>>2]+Wc(J[a>>2],n)|0;e=Wc(J[a+4>>2],n);a:{b:{c:{d:{e:switch(c|0){case 1:if(K[d+121|0])break d;break b;case 0:if(!K[d+120|0])break b;k=K[d+122|0]!=0;break;default:break e}J[a+12>>2]=e;break c}o=K[d+123|0];J[a+12>>2]=e;p=J[a>>2];r=K[b+2492|0];k=2;f=J[b+412>>2];f:{g:{if(!f)break g;i=J[a+4>>2]+p|0;h=b+416|0;j=J[b+2488>>2];l=0-j|0;while(1){m=i-J[h+12>>2]|0;if((m|0)<(l|0))break g;if((i|0)<= +(j+J[h+8>>2]|0)){if(!r){f=0;if((m|0)>J[b+2484>>2])break f}q=J[h+16>>2];k=3;f=1;break f}h=h+32|0;f=f-1|0;if(f)continue;break}}f=0}j=J[b+928>>2];h:{if(!j){i=0;break h}i=0;l=J[b+2488>>2];m=0-l|0;h=((j<<5)+b|0)+932|0;while(1){s=J[h-24>>2]-p|0;if((m|0)>(s|0))break h;if((J[h-20>>2]-l|0)>(p|0)){h=h-32|0;j=j-1|0;if(j)continue;break h}break}if(!r&J[b+2484>>2]<=(s|0))break h;i=J[h-16>>2];f=k}k=(o|0)!=0;i:switch(f-1|0){case 1:J[a+8>>2]=i;if(!o)break a;J[a+12>>2]=(e|0)<64?64:e+32&-64;break a;case 2:J[a+8>>2]= +i;J[a+12>>2]=q-i;break a;case 0:break i;default:break c}J[a+8>>2]=q-e;if(!o)break a;b=(e|0)<64?64:e+32&-64;J[a+12>>2]=b;J[a+8>>2]=q-b;break a}f=J[a+20>>2];if(f){if(!(K[f+16|0]&8))_6(f,b,c,d);g=((J[f+8>>2]-(e>>1)|0)+(J[f+12>>2]>>1)|0)+Wc((J[a>>2]-(J[f>>2]+(J[f+4>>2]>>1)|0)|0)+(J[a+4>>2]>>1)|0,n)|0}j:{if(!K[d+124|0])break j;if((e|0)<=64){if((e|0)>=32){g=(e>>>1|0)+g&-64;e=64;break j}b=g+32&-64;if((e|0)<=0){g=b;break j}f=b-g|0;c=f>>31;d=e+g|0;g=d+32&-64;h=g-d|0;d=h>>31;g=(c^f)-c>>>0>(d^h)-d>>>0?g:b;break j}b= +J[(P(c,204)+b|0)+12>>2];d=e-b|0;c=d>>31;e=(c^d)-c>>>0<40?(b|0)<=48?48:b:e;if(e>>>0<=191){b=e&63;if(b>>>0<10)break j;c=e&-64;if(b>>>0<=31){e=c|10;break j}e=b>>>0<54?c|54:e;break j}e=e+32&-64}J[a+12>>2]=e;b=(g+32&-64)-g|0;c=b>>31;d=e+g|0;d=(d+32&-64)-d|0;f=d>>31;c=((b^c)-c>>>0>(d^f)-f>>>0?d:b)+g|0;J[a+8>>2]=c;if(!k)break a;d=(e|0)<64?64:e+32&-64;b=d>>1;J[a+12>>2]=d;J[a+8>>2]=(d&64?b+c&-64|32:(b+c|0)+32&-64)-b;break a}J[a+12>>2]=e;J[a+8>>2]=g}J[a+16>>2]=J[a+16>>2]|8}}function orb(a,b,c,d,e){a=a|0;b= +b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0;if((d|0)>0){v=a+24|0;l=(c+31|0)/32|0;w=l<<2;while(1){a:{b:{c:{d:{t=m>>>0<2;e:{if(!t){h=J[(P(m-2|0,l)<<2)+b>>2];break e}h=0;if(!m)break d}g=(P(m-1|0,l)<<2)+b|0;k=J[g>>2];f=1;i=h;if(!e)break b;f=!dd((P(l,m)<<2)+b|0,g,w);x=f^r;i=1;r=f;break c}k=0;f=0;i=0;if(!e)break b}g=K[a+39741|0];n=g<<2;f=L[n+2652240>>1];f:{g:{if((x&255)==(g>>>0>46|0)){j=L[a+4>>1]-f|0;I[a+4>>1]=j;if(j<<16>>16>=0){if(f>>> +0>(j&65535)>>>0){j=f;f=n+2652242|0;break g}J[a>>2]=f+J[a>>2];f=n+2652242|0;break g}J[a>>2]=f+J[a>>2];break f}j=L[a+4>>1]-f|0;h:{if(f>>>0<=(j&65535)>>>0){j=f;break h}J[a>>2]=f+J[a>>2]}f=n+2652243|0}H[a+39741|0]=K[f|0];while(1){j=j<<1;I[a+4>>1]=j;J[a>>2]=J[a>>2]<<1;f=K[a+6|0]-1|0;H[a+6|0]=f;if(!(f&255)){km(a);j=L[a+4>>1]}if(j<<16>>16>=0)continue;break}}if(r&255)break a;r=0;f=i;i=h}if((c|0)<=0)break a;h=i>>>29|0;s=k>>>28|0;p=i<<3;o=k<<4;y=(P(m-2|0,l)<<2)+b|0;z=(P(m-1|0,l)<<2)+b|0;u=(P(l,m)<<2)+b|0;i= +J[u>>2];k=0;A=f^1;j=0;while(1){n=(h<<11|s<<4|j)+v|0;f=K[n|0];q=f<<2;g=L[q+2652240>>1];B=n;n=i>>>31|0;i:{j:{if((n|0)==(f>>>0>46|0)){f=L[a+4>>1]-g|0;I[a+4>>1]=f;if(f<<16>>16>=0){if(g>>>0>(f&65535)>>>0){f=g;g=q+2652242|0;break j}J[a>>2]=g+J[a>>2];g=q+2652242|0;break j}J[a>>2]=g+J[a>>2];break i}f=L[a+4>>1]-g|0;k:{if(g>>>0<=(f&65535)>>>0){f=g;break k}J[a>>2]=g+J[a>>2]}g=q+2652243|0}H[B|0]=K[g|0];while(1){f=f<<1;I[a+4>>1]=f;J[a>>2]=J[a>>2]<<1;g=K[a+6|0]-1|0;H[a+6|0]=g;if(!(g&255)){km(a);f=L[a+4>>1]}if(f<< +16>>16>=0)continue;break}}g=s<<1|o>>>31;f=h<<1|p>>>31;h=k&31;l:{if(!((h|0)!=28|t)){p=0;h=(k>>>5|0)+1|0;if(h>>>0>>0)p=J[(h<<2)+y>>2];o=o<<1;i=i<<1;break l}p=p<<1;m:{if(!((h|0)!=27|A)){o=0;h=(k>>>5|0)+1|0;if(h>>>0>=l>>>0)break m;o=J[(h<<2)+z>>2];break m}o=o<<1;if((h|0)!=31)break m;h=(k>>>5|0)+1|0;i=0;if(h>>>0>=l>>>0)break l;i=J[(h<<2)+u>>2];break l}i=i<<1}s=g&127;h=f&31;j=n|j<<1&14;k=k+1|0;if((k|0)!=(c|0))continue;break}}m=m+1|0;if((m|0)!=(d|0))continue;break}}}function Eob(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;d=fc-48|0;fc=d;a:{b:{if(!a)break b;if(!b){f=6;break a}if(I[a>>1]<=0)break a;h=J[b+20>>2];i=J[b+16>>2];while(1){m=I[J[a+12>>2]+(o<<1)>>1];if((m|0)<0)break b;j=J[a+4>>2];e=j+(g<<3)|0;k=J[e>>2];f=J[e+4>>2];J[d+32>>2]=(k<>2]=p;l=j+(m<<3)|0;k=J[l>>2];q=J[l+4>>2];n=J[d+36>>2];f=J[d+32>>2];J[d+40>>2]=f;J[d+44>>2]=n;c:{d:{n=J[a+8>>2];j=n+g|0;switch(K[j|0]&3){case 2:break b;case 0:break d;default:break c}}g=(q<>2]=g;J[d+32>>2]=k;j=j-1|0;e=e-8|0}f=kc[J[b>>2]](d+32|0,c)|0;if(f)break a;f:{if(e>>>0>>0)while(1){k=j+1|0;g=e+8|0;g:{h:{i:switch(K[j+1|0]&3){case 1:J[d+24>>2]=(J[e+8>>2]<>2]=(J[e+12>>2]<>2]](d+24|0,c)|0;if(f)break a;break g;case 0:J[d+40>>2]=(J[e+8>>2]<>2]=(J[e+12>>2]<>>0>>0)while(1){e=K[k+1|0];j=(J[g+8>>2]<>2]=j;f=(J[g+12>>2]<< +i)-h|0;J[d+28>>2]=f;k=k+1|0;g=g+8|0;j:{e=e&3;k:{if(e){if((e|0)!=1){g=7;f=0;break h}f=kc[J[b+8>>2]](d+40|0,d+24|0,c)|0;if(f)break k;e=g;j=k;break g}J[d+16>>2]=(j+J[d+40>>2]|0)/2;J[d+20>>2]=(f+J[d+44>>2]|0)/2;f=kc[J[b+8>>2]](d+40|0,d+16|0,c)|0;if(!f)break j}g=10;break h}e=J[d+28>>2];J[d+40>>2]=J[d+24>>2];J[d+44>>2]=e;if(g>>>0>>0)continue;break}f=kc[J[b+8>>2]](d+40|0,d+32|0,c)|0;break f;default:break i}g=7;f=0;if((K[j+2|0]&3)!=2|e+16>>>0>l>>>0)break h;J[d+24>>2]=(J[e+8>>2]<>2]=(J[e+12>> +2]<>2]=(J[e+16>>2]<>2]=(J[e+20>>2]<>>0<=l>>>0){J[d+8>>2]=(J[e+24>>2]<>2]=(J[e+28>>2]<>2]](d+24|0,d+16|0,d+8|0,c)|0;if(f){g=10;break h}j=j+3|0;e=g;break g}f=kc[J[b+12>>2]](d+24|0,d+16|0,d+32|0,c)|0;break f}if((g|0)!=7)break a;break b}if(e>>>0>>0)continue;break}f=kc[J[b+4>>2]](d+32|0,c)|0}if(f)break a;g=m+1|0;f=0;o=o+1|0;if((o|0)>1])continue;break}break a}f=20}fc=d+48|0;return f|0}function w2a(a,b,c,d,e){a=a|0;b=b| +0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;v=fc-224|0;fc=v;n=J[a+332>>2];a=J[b+84>>2];b=v;while(1){h=J[a+160>>2];i=I[c+80>>1];j=J[a+32>>2];o=I[c+16>>1];q=J[a+96>>2];l=I[c+48>>1];p=P(I[c>>1],J[a>>2])<<13|1024;g=P(J[a+128>>2],I[c+64>>1]);f=P(J[a+192>>2],I[c+96>>1]);m=P(J[a+64>>2],I[c+32>>1]);k=f+m|0;J[b+96>>2]=p+P(g-k|0,11585)>>11;h=P(h,i);i=P(j,o);j=P(h+i|0,5027);k=p+P(k,10438)|0;o=P(g-f|0,7223);s=k+(o+P(f,-637)|0)|0;f=P(q,l);q=P(f+i|0,7663); +i=P(i-f|0,1395);l=j+(q-i|0)|0;J[b+192>>2]=s-l>>11;J[b>>2]=l+s>>11;l=P(m,-20239);m=P(m-g|0,2578);l=k+(l+m|0)|0;f=P(f+h|0,-11295);h=f+(j+P(h,15326)|0)|0;J[b+128>>2]=l-h>>11;J[b+64>>2]=h+l>>11;g=o+(m+(p+P(g,-15083)|0)|0)|0;f=f+(i+q|0)|0;J[b+160>>2]=g-f>>11;J[b+32>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;r=r+1|0;if((r|0)!=8)continue;break}a=n+128|0;b=v;r=0;while(1){g=J[b+12>>2];m=J[b+4>>2];j=P(g+m|0,10935);n=J[b+24>>2];o=J[b+8>>2];q=P(n+o|0,9058);c=J[(r<<2)+d>>2]+e|0;s=J[b+28>>2];p=s<<13;f=J[b+20>>2];l=f+ +m|0;k=P(l,9810);t=p+(k+(j+P(m,-9232)|0)|0)|0;x=q+P(o,2237)|0;i=(J[b>>2]<<13)+131072|0;h=J[b+16>>2];y=i+P(h,10438)|0;u=x+y|0;H[c|0]=K[a+(t+u>>>18&1023)|0];H[c+13|0]=K[a+(u-t>>>18&1023)|0];q=q+P(n,-14084)|0;t=i+P(h,2578)|0;u=q+t|0;w=j+P(g,-3474)|0;j=P(f+g|0,-1297)-p|0;w=w+j|0;H[c+1|0]=K[a+(u+w>>>18&1023)|0];H[c+12|0]=K[a+(u-w>>>18&1023)|0];j=j+(k+P(f,-19447)|0)|0;n=P(n,-11295)+P(o,5027)|0;o=i+P(h,-7223)|0;k=n+o|0;H[c+2|0]=K[a+(j+k>>>18&1023)|0];H[c+11|0]=K[a+(k-j>>>18&1023)|0];j=m-g|0;k=s+(j-f|0)<< +13;h=i+P(h,-11586)|0;H[c+3|0]=K[a+(k+h>>>18&1023)|0];H[c+10|0]=K[a+(h-k>>>18&1023)|0];h=P(l,6164);i=p+P(f,-13850)|0;f=P(f-g|0,11512);i=h+(i+f|0)|0;n=o-n|0;H[c+4|0]=K[a+(i+n>>>18&1023)|0];H[c+9|0]=K[a+(n-i>>>18&1023)|0];f=f+P(g,5529)|0;g=P(j,3826)-p|0;f=f+g|0;p=t-q|0;H[c+5|0]=K[a+(f+p>>>18&1023)|0];H[c+8|0]=K[a+(p-f>>>18&1023)|0];g=g+(h+P(m,-8693)|0)|0;f=y-x|0;H[c+6|0]=K[a+(g+f>>>18&1023)|0];H[c+7|0]=K[a+(f-g>>>18&1023)|0];b=b+32|0;r=r+1|0;if((r|0)!=7)continue;break}fc=v+224|0}function Kcb(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;b=J[a+480>>2];J[a+136>>2]=J[b+16>>2];J[a+132>>2]=J[b+20>>2];a:{b:switch(J[a+88>>2]){case 0:if(J[a+120>>2]==3){J[b+4>>2]=317;return}J[b+4>>2]=318;return;case 1:c=J[a+120>>2];J[b+48>>2]=0;J[b+4>>2]=(c|0)==3?319:320;if(!J[b+28>>2])t5(a);if(J[b+52>>2])break a;e=J[a+120>>2];if((e|0)<=0)break a;h=J[a+480>>2];while(1){i=(f<<2)+h|0;b=J[i+32>>2];c=0;c:{d:{if(!f)break d;while(1){d=(c<<2)+h|0;if((b|0)!=J[d+32>>2]){c=c+1|0;if((f|0)!=(c|0))continue;break d}break}g= +J[d+52>>2];if(g)break c}b=(b<<9)-512|0;e=0;g=kc[J[J[a+4>>2]>>2]](a,1,1024)|0;while(1){c=(e<<6)+g|0;d=e<<4;J[c+60>>2]=(P(255-(K[d+54607|0]<<1)|0,255)|0)/(b|0);J[c+56>>2]=(P(255-(K[d+54606|0]<<1)|0,255)|0)/(b|0);J[c+52>>2]=(P(255-(K[d+54605|0]<<1)|0,255)|0)/(b|0);J[c+48>>2]=(P(255-(K[d+54604|0]<<1)|0,255)|0)/(b|0);J[c+44>>2]=(P(255-(K[d+54603|0]<<1)|0,255)|0)/(b|0);J[c+40>>2]=(P(255-(K[d+54602|0]<<1)|0,255)|0)/(b|0);J[c+36>>2]=(P(255-(K[d+54601|0]<<1)|0,255)|0)/(b|0);J[c+32>>2]=(P(255-(K[d+54600|0]<< +1)|0,255)|0)/(b|0);J[c+28>>2]=(P(255-(K[d+54599|0]<<1)|0,255)|0)/(b|0);J[c+24>>2]=(P(255-(K[d+54598|0]<<1)|0,255)|0)/(b|0);J[c+20>>2]=(P(255-(K[d+54597|0]<<1)|0,255)|0)/(b|0);J[c+16>>2]=(P(255-(K[d+54596|0]<<1)|0,255)|0)/(b|0);J[c+12>>2]=(P(255-(K[d+54595|0]<<1)|0,255)|0)/(b|0);J[c+8>>2]=(P(255-(K[d+54594|0]<<1)|0,255)|0)/(b|0);J[c+4>>2]=(P(255-(K[d+54593|0]<<1)|0,255)|0)/(b|0);J[c>>2]=(P(255-(K[d+54592|0]<<1)|0,255)|0)/(b|0);e=e+1|0;if((e|0)!=16)continue;break}e=J[a+120>>2]}J[i+52>>2]=g;f=f+1|0; +if((f|0)<(e|0))continue;break}break a;case 2:J[b+84>>2]=0;J[b+4>>2]=321;e:{if(J[b+68>>2]){d=J[a+120>>2];break e}if(J[a+120>>2]<=0)break a;e=(J[a+112>>2]<<1)+4|0;while(1){j=b+(c<<2)|0,k=kc[J[J[a+4>>2]+4>>2]](a,1,e)|0,J[j+68>>2]=k;c=c+1|0;d=J[a+120>>2];if((c|0)<(d|0))continue;break}}if((d|0)<=0)break a;d=(J[a+112>>2]<<1)+4|0;c=0;while(1){Re(J[(b+(c<<2)|0)+68>>2],d);c=c+1|0;if((c|0)>2])continue;break}break a;default:break b}b=J[a>>2];J[b+20>>2]=49;kc[J[b>>2]](a)}}function yl(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;a:{if((d|0)==-2147483648)break a;h=J[b+12>>2];if((h^2147483647)<(d|0))break a;i=0-d&d>>31;f=J[a+12>>2];o=(f|0)<(d+h|0)?f-d|0:h;if((i|0)>=(o|0))break a;g=c&-8;j=(c|0)>=0?g:0;h=J[b+8>>2]+c|0;f=J[a+8>>2];h=(f|0)>(h|0)?h:f;if((j|0)>=(h|0))break a;f=h&7;l=f?255<<8-f&254:255;k=c&7;q=c>>>3|0;r=0-c>>>3|0;n=255>>>f|0;if((j|0)!=(h-1&-8)){s=h-8|0;h=g+8|0;t=255<<8-k;u=(c|0)<0;while(1){c=J[a+20>>2]+P(J[a+16>>2],d+i|0)|0;b:{if(!u){f=c+q|0;c=K[f|0];g= +J[b+20>>2]+P(J[b+16>>2],i)|0;m=K[g|0];c:{d:switch(e|0){case 0:c=m>>>k|c;break c;case 1:c=(m|65280)>>>k&c;break c;case 2:c=m>>>k^c;break c;case 3:c=(m^255)>>>k^c;break c;case 4:break d;default:break c}c=c&t|m>>>k}H[f|0]=c;c=f+1|0;f=h;break b}g=(J[b+20>>2]+P(J[b+16>>2],i)|0)+r|0;m=K[g|0];f=0}p=g+1|0;if((f|0)<(s|0))while(1){j=m<<8;m=K[p|0];j=(j|m)>>>k|0;g=K[c|0];e:{f:switch(e|0){case 0:g=g|j;break e;case 1:g=g&j;break e;case 2:g=g^j;break e;case 3:g=g^j^-1;break e;case 4:break f;default:break e}g=j}H[c| +0]=g;p=p+1|0;c=c+1|0;f=f+8|0;if((s|0)>(f|0))continue;break}f=(K[p|0]|m<<8)>>>k|0;g=K[c|0];g:{h:switch(e|0){case 0:g=f&l|g;break g;case 1:g=(f|n)&g;break g;case 2:g=f&l^g;break g;case 3:g=(f^-1)&l^g;break g;case 4:break h;default:break g}g=f&l|g&n}H[c|0]=g;i=i+1|0;if((o|0)>(i|0))continue;break}break a}if((c|0)>=0){h=255>>>k&l^-1;while(1){j=K[J[b+20>>2]+P(J[b+16>>2],i)|0];f=(J[a+20>>2]+P(J[a+16>>2],d+i|0)|0)+q|0;c=K[f|0];i:{j:switch(e|0){case 4:c=j>>>k&l|c&h;break i;case 3:c=(j^255)>>>k&l^c;break i; +case 2:c=j>>>k&l^c;break i;case 1:c=((j|65280)>>>k|n)&c;break i;case 0:break j;default:break i}c=j>>>k&l|c}H[f|0]=c;i=i+1|0;if((o|0)>(i|0))continue;break}break a}while(1){f=J[a+20>>2]+P(J[a+16>>2],d+i|0)|0;c=K[f|0];h=K[(J[b+20>>2]+P(J[b+16>>2],i)|0)+r|0];k:{l:switch(e|0){case 4:c=h&l|c&n;break k;case 3:c=(h^-1)&l^c;break k;case 2:c=h&l^c;break k;case 1:c=(h|n)&c;break k;case 0:break l;default:break k}c=h&l|c}H[f|0]=c;i=i+1|0;if((o|0)>(i|0))continue;break}}}function h8a(a,b,c,d,e,f){a=+a;b=+b;c=+c; +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;p=R(a);a:{if(p<1E-12){if(R(b)<1E-12)return(R(c)<1E-12?-1:0)|0;b=-c/b;g=1.7976931348623157E308;break a}j=b*-.5;g=j*j;o=a*c;h=g-o;b=R(h);if(b*3p?g:p;b=b>g?b:g;if(b==0|!(b<1E-8|b<1E8))break b;b=oT(-Lp(fT(b))); +j=j*b;g=j*j;a=b*a;c=b*c;o=a*c;h=g-o;if(!(R(h)*3=-1.12E-16))break a;b=h<0?0:Y(h);b=j+(j<0?-b:b);if(b==0){b=c/a;g=-b;break a}g=c/b;b=b/a}a=O[f>>3];c=a+1E-12;c:{d:{j=O[e>>3];h=j+-1E-12;e:{if(!(b>2];i=J[d+8>>2]; +if(k>>>0>>0){O[k>>3]=a;J[d+4>>2]=k+8;m=1;break e}l=J[d>>2];r=k-l>>3;m=r+1|0;if(m>>>0>=536870912)break d;i=i-l|0;n=i>>2;n=i>>>0>=2147483640?536870911:m>>>0>>0?n:m;if(n){if(n>>>0>=536870912)break c;m=vc(n<<3)}else m=0;i=m+(r<<3)|0;O[i>>3]=a;r=i+8|0;if((k|0)!=(l|0))while(1){i=i-8|0;k=k-8|0;O[i>>3]=O[k>>3];if((k|0)!=(l|0))continue;break}J[d+8>>2]=m+(n<<3);J[d+4>>2]=r;J[d>>2]=i;m=1;if(!l)break e;uc(l)}if(!(g==1.7976931348623157E308|b==g|(!(g>h)|!(c>g)))){a=O[e>>3];b=O[f>>3];a=a>g?a:b>2];i=J[d+8>>2];f:{if(k>>>0>>0){O[k>>3]=a;J[d+4>>2]=k+8;break f}f=J[d>>2];n=k-f>>3;e=n+1|0;if(e>>>0>=536870912)break d;i=i-f|0;l=i>>2;l=i>>>0>=2147483640?536870911:e>>>0>>0?l:e;if(l){if(l>>>0>=536870912)break c;e=vc(l<<3)}else e=0;i=e+(n<<3)|0;O[i>>3]=a;n=i+8|0;if((f|0)!=(k|0))while(1){i=i-8|0;k=k-8|0;O[i>>3]=O[k>>3];if((f|0)!=(k|0))continue;break}J[d+8>>2]=e+(l<<3);J[d+4>>2]=n;J[d>>2]=i;if(!f)break f;uc(f)}m=m+1|0}return m|0}Fg(d);B()}Pd();B()}function Dva(a,b,c){a=a|0;b=b|0;c=c|0;var d= +0,e=0,f=0,g=0;d=fc+-64|0;fc=d;J[d+60>>2]=c;J[a>>2]=0;a:{if(J[b+8>>2]){e=J[b+12>>2];J[699344]=0;g=ha(5213,d+48|0,d+56|0,32768,1)|0;c=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{i:{if((c|0)!=1){c=J[J[b>>2]+20>>2];J[699344]=0;c=_(c|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;c=ga(5641,d+36|0,1,(c?0:2393244)|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;f=J[d+56>>2];H[f+32767|0]=0;IS(f,e,J[d+60>>2]);e=J[d+56>>2];if(!K[e+32767|0])break f;J[699344]=0;d=ja(5178,d+12|0,2393561,2385973, +1664,2426170,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;$(5179,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;B()}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;Kc(d);break e}J[699344]=0;f=d+12|0;ca(5638,f|0,b|0,e|0);b=J[699344];J[699344]=0;j:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;a=J[d+12>>2];J[d+12>>2]=0;k:{if(!a)break k;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(b)break k; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}b=J[c>>2];if(!b)break b;l:{m:{if(!J[b+8>>2]){J[c>>2]=0;break m}a=J[b+12>>2];b=J[c+8>>2];J[699344]=0;aa(5642,b|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;b=J[c>>2];J[c>>2]=0;if(!b)break b}J[699344]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[699344];J[699344]=0;if((c|0)!=1){if(a)break b;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}break a}b=Z()|0;break e}b=Z()|0;zc(d+12|0)}n:{d=J[c>>2];if(!d){J[c>>2]= +0;break n}o:{p:{if(!J[d+8>>2]){J[c>>2]=0;break p}d=J[d+12>>2];e=J[c+8>>2];J[699344]=0;aa(5642,e|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break o;d=J[c>>2];J[c>>2]=0;if(!d)break n}J[699344]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break o;if(c)break n;J[699344]=0;$(5147,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break o;break n}ea(0)|0;Bc();B()}}hd(g)}zc(a);ba(b|0);B()}hd(g)}fc=d- -64|0;return}ea(0)|0;Bc();B()}function YU(a,b,c,d,e,f,g,h,i,j){var k=0,l=0,m=0,n=0,o=0,p=0, +q=0,r=0;k=fc-48|0;fc=k;a:{b:{c:{if(!g){l=kc[J[J[a>>2]+20>>2]](a)|0;if(!l){c=0;break b}g=kc[J[J[l>>2]+52>>2]](l)|0;n=Sx();q=n,r=kc[J[J[l>>2]+24>>2]](l)|0,p=J[J[n>>2]+24>>2],kc[p](q|0,r|0);kc[J[J[g>>2]+68>>2]](g,n);break c}kc[J[J[g>>2]+8>>2]](g)|0}l=FD();kc[J[J[l>>2]+468>>2]](l,g);kc[J[J[a>>2]+40>>2]](a,b,k+24|0,k+16|0,k+40|0,k+32|0);if((c|0)>0)m=+(c|0);else{m=O[k+24>>3];d:{if(R(m)<2147483648){c=~~m;break d}c=-2147483648}m=+(P(c,96)|0)/O[k+40>>3]}e:{if(R(m)<2147483648){c=~~m;break e}c=-2147483648}J[k+ +12>>2]=c;if((d|0)>0)m=+(d|0);else{m=O[k+16>>3];f:{if(R(m)<2147483648){d=~~m;break f}d=-2147483648}m=+(P(d,96)|0)/O[k+32>>3]}g:{if(R(m)<2147483648){d=~~m;break g}d=-2147483648}J[k+8>>2]=d;n=P(c,d);c=n<<2;d=so(c);if(!d){kc[J[J[g>>2]+12>>2]](g)|0;kc[J[J[l>>2]+4>>2]](l);c=0;break b}h:{if((h|0)==16777215){Ac(d,255,c);break h}if(!n)break h;j=j<<24|h;c=d;if(n>>>0>=8){o=n&-8;h=0;while(1){J[c+28>>2]=j;J[c+24>>2]=j;J[c+20>>2]=j;J[c+16>>2]=j;J[c+12>>2]=j;J[c+8>>2]=j;J[c+4>>2]=j;J[c>>2]=j;c=c+32|0;h=h+8|0;if((o| +0)!=(h|0))continue;break}}n=n&7;if(!n)break h;h=0;while(1){J[c>>2]=j;c=c+4|0;h=h+1|0;if((n|0)!=(h|0))continue;break}}c=vc(48);J[699344]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;h=J[699344];J[699344]=0;if((h|0)==1)break a;J[c+16>>2]=d;J[c+4>>2]=J[k+12>>2];J[c+8>>2]=J[k+8>>2];J[k+4>>2]=P(J[k+12>>2],e?4:-4);d=k+4|0;J[c+12>>2]= +J[d>>2];kc[J[J[l>>2]+504>>2]](l,c);kc[J[J[l>>2]+488>>2]](l,f);if(i){J[k+4>>2]=1;kc[J[J[l>>2]+416>>2]](l,2438908,d)|0}if(!(kc[J[J[a>>2]+24>>2]](a)|0)){O[k+24>>3]=O[k+24>>3]*(25.4/O[k+40>>3]);O[k+16>>3]=O[k+16>>3]*(25.4/O[k+32>>3])}kc[J[J[l>>2]+36>>2]](l,k+24|0)|0;kc[J[J[l>>2]+28>>2]](l,k+16|0)|0;H[k+4|0]=0;kc[J[J[a>>2]+44>>2]](a,l,b,k+4|0);kc[J[J[g>>2]+12>>2]](g)|0;kc[J[J[l>>2]+4>>2]](l)}fc=k+48|0;return c}a=Z()|0;uc(c);ba(a|0);B()}function YJa(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;f=fc-80|0;fc=f;J[f+76>>2]=1;e=J[a+188>>2];d=J[e+40>>2];a:{b:{if(d)break b;d=P(J[a+108>>2],J[a+104>>2]);J[e+36>>2]=d;d=Ge(d,40);e=J[a+188>>2];J[e+40>>2]=d;if(!d){e=0;break a}if(!J[e+36>>2])break b;while(1){e=0;h=P(g,40);d=h+d|0;J[d+20>>2]=0;J[d+28>>2]=100;j=Ge(100,24);i=J[a+188>>2];d=J[i+40>>2];J[(h+d|0)+24>>2]=j;if(!j)break a;g=g+1|0;if(g>>>0>2])continue;break}}j=J[a+44>>2];c:{if(!J[d+16>>2])break c;d:{d=P(j,40)+d|0;if(!J[d+4>>2]){d=J[a+52>>2];e=J[a+48>>2]+2|0;d=e>>>0<2?d+1|0:d;if(lB(b, +e,d,c))break d;e=0;Nc(c,1,2371156,0);break a}d=J[d+16>>2];e=J[d>>2];d=J[d+4>>2];e=e+2|0;d=e>>>0<2?d+1|0:d;if(lB(b,e,d,c))break d;e=0;Nc(c,1,2371156,0);break a}if(J[a+8>>2]!=256)break c;J[a+8>>2]=8}h=P(J[a+108>>2],J[a+104>>2]);e:{if(!h)break e;e=J[a+156>>2];d=0;if(h>>>0>=8){i=h&-8;g=0;while(1){J[(e+P(d,5644)|0)+5588>>2]=-1;J[(e+P(d|1,5644)|0)+5588>>2]=-1;J[(e+P(d|2,5644)|0)+5588>>2]=-1;J[(e+P(d|3,5644)|0)+5588>>2]=-1;J[(e+P(d|4,5644)|0)+5588>>2]=-1;J[(e+P(d|5,5644)|0)+5588>>2]=-1;J[(e+P(d|6,5644)| +0)+5588>>2]=-1;J[(e+P(d|7,5644)|0)+5588>>2]=-1;d=d+8|0;g=g+8|0;if((i|0)!=(g|0))continue;break}}g=h&7;if(!g)break e;while(1){J[(e+P(d,5644)|0)+5588>>2]=-1;d=d+1|0;k=k+1|0;if((g|0)!=(k|0))continue;break}}e=0;if(!Lt(a,f+72|0,0,f+68|0,f- -64|0,f+60|0,f+56|0,f+52|0,f+76|0,b,c))break a;h=j+1|0;while(1){f:{if(!J[f+76>>2])break f;d=J[f+72>>2];if(!qw(a,d,0,0,b,c))break a;i=J[a+104>>2];k=J[a+108>>2];g=d+1|0;J[f+32>>2]=g;J[f+36>>2]=P(i,k);Nc(c,4,2370840,f+32|0);if(!QY(J[a+196>>2],J[J[a+76>>2]+24>>2]))break a; +e=J[a+156>>2]+P(d,5644)|0;i=J[e+5596>>2];if(i){uc(i);J[e+5596>>2]=0;J[e+5600>>2]=0}J[f+16>>2]=g;Nc(c,4,2370870,f+16|0);if((d|0)==(j|0)){d=J[a+188>>2];e=J[d+8>>2];d=J[d+12>>2];e=e+2|0;d=e>>>0<2?d+1|0:d;if(lB(b,e,d,c))break f;e=0;Nc(c,1,2371156,0);break a}J[f+4>>2]=h;J[f>>2]=g;Nc(c,2,2371184,f);e=0;if(Lt(a,f+72|0,0,f+68|0,f- -64|0,f+60|0,f+56|0,f+52|0,f+76|0,b,c))continue;break a}break}e=PY(a,c)}fc=f+80|0;return e|0}function $6(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;i=fc-16|0;fc=i;g=J[b>>2];e=g<<1;f=i+12|0;u=a,v=_c(d,4,0,e,0,f),J[u+12>>2]=v;a:{if(J[i+12>>2])break a;u=a,v=_c(d,28,0,g,0,f),J[u+8>>2]=v;if(J[i+12>>2])break a;u=a,v=_c(d,16,0,e|1,0,f),J[u+24>>2]=v;if(J[i+12>>2])break a;J[a>>2]=g;J[a+28>>2]=0;J[a+20>>2]=0;J[a+4>>2]=0;J[a+16>>2]=J[a+12>>2]+(g<<2);b:{if(!g)break b;d=J[a+8>>2];b=J[b+8>>2];h=g&3;c:{if(!h){e=g;break c}f=0;e=g;while(1){J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];b=b+12|0;d=d+28|0;e=e-1|0;f=f+1|0;if((h|0)!=(f|0))continue; break}}if(g>>>0<4)break b;while(1){J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[d+16>>2]=J[b+8>>2];J[d+28>>2]=J[b+12>>2];J[d+32>>2]=J[b+16>>2];J[d+44>>2]=J[b+20>>2];J[d+56>>2]=J[b+24>>2];J[d+60>>2]=J[b+28>>2];J[d+72>>2]=J[b+32>>2];J[d+84>>2]=J[b+36>>2];J[d+88>>2]=J[b+40>>2];J[d+100>>2]=J[b+44>>2];b=b+48|0;d=d+112|0;e=e-4|0;if(e)continue;break}}f=0;d:{if(!c)break d;j=J[c>>2];k=J[c+8>>2];J[a+32>>2]=c;if(!j)break d;while(1){p=J[k>>2];if(p){m=J[k+8>>2];b=0;l=0;q=0;while(1){if(!b){q=K[m|0];m=m+1|0;b=128}e:{if(!(b& q)|g>>>0<=l>>>0)break e;h=J[a+8>>2]+P(l,28)|0;c=J[h+16>>2];if(c&4)break e;J[h+16>>2]=c|4;c=J[a+16>>2];J[h+20>>2]=0;f:{if(!f)break f;r=J[h>>2];t=r+J[h+4>>2]|0;e=f;d=c;while(1){n=J[d>>2];s=J[n>>2];if(!((s|0)>(t|0)|(J[n+4>>2]+s|0)<(r|0))){J[h+20>>2]=n;break f}d=d+4|0;e=e-1|0;if(e)continue;break}}if(f>>>0>=g>>>0)break e;d=f+1|0;J[a+4>>2]=d;J[c+(f<<2)>>2]=h;f=d}b=b>>>1|0;l=l+1|0;if((p|0)!=(l|0))continue;break}}k=k+16|0;j=j-1|0;if(j)continue;break}}if(!g|(f|0)==(g|0))break a;while(1){e=J[a+8>>2]+P(o,28)| -0;b=J[e+16>>2];g:{if(b&4)break g;J[e+16>>2]=b|4;c=J[a+16>>2];J[e+20>>2]=0;h:{if(!f)break h;k=J[e>>2];l=k+J[e+4>>2]|0;b=f;d=c;while(1){h=J[d>>2];j=J[h>>2];if(!((j|0)>(l|0)|(k|0)>(j+J[h+4>>2]|0))){J[e+20>>2]=h;break h}d=d+4|0;b=b-1|0;if(b)continue;break}}if(f>>>0>=g>>>0)break g;b=f+1|0;J[a+4>>2]=b;J[c+(f<<2)>>2]=e;f=b}o=o+1|0;if((o|0)!=(g|0))continue;break}}bc=i+16|0;return J[i+12>>2]}function rT(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;e=L[b+14>>1];f=L[b+8>>1];h=L[b+10>>1];J[a+8>>2]= -h-1;a:{b:{c:{if(!h)break c;i=P(e,f);while(1){if(!J[b+20>>2])Li(b);d:{if(!L[b+8>>1]){c=L[b+12>>1];if(J[682142]<(c+L[b+14>>1]|0)){a=Kc(g+8|0,2386481,2386813,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=c+J[682141]|0;break d}c=J[b+20>>2]+L[b+12>>1]|0}d=J[a+8>>2];if(i){c=c+d|0;j=i+c|0;while(1){if(K[c|0])break c;c=c+e|0;if(j>>>0>c>>>0)continue;break}}J[a+8>>2]=d-1;if((d|0)>0)continue;break}}c=f-1|0;J[a>>2]=c;e:{if(!f)break e;while(1){if(!J[b+20>>2])Li(b); -d=L[b+14>>1];f:{if(L[b+8>>1]<=c>>>0){c=L[b+12>>1];if(J[682142]<(c+d|0)){a=Kc(g+8|0,2386481,2386813,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=c+J[682141]|0;break f}c=L[b+12>>1]+(J[b+20>>2]+P(c,d)|0)|0}if(h){d=c+h|0;while(1){if(K[c|0])break e;c=c+1|0;if(d>>>0>c>>>0)continue;break}}d=J[a>>2];c=d-1|0;J[a>>2]=c;if((d|0)>0)continue;break}}J[a+4>>2]=0;g:{if(J[a+8>>2]<0)break g;d=P(e,f);while(1){if(!J[b+20>>2])Li(b);h:{if(!L[b+8>>1]){c=L[b+12>>1];if(J[682142]< -(c+L[b+14>>1]|0)){a=Kc(g+8|0,2386481,2386813,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=c+J[682141]|0;break h}c=J[b+20>>2]+L[b+12>>1]|0}f=J[a+4>>2];if(d){c=c+f|0;i=d+c|0;while(1){if(K[c|0])break g;c=c+e|0;if(i>>>0>c>>>0)continue;break}}J[a+4>>2]=f+1;if((f|0)>2])continue;break}}J[a+12>>2]=0;i:{if(J[a>>2]<0)break i;c=0;while(1){if(!J[b+20>>2])Li(b);e=L[b+14>>1];j:{if(!(L[b+8>>1]>c>>>0&(c|0)>=0)){c=L[b+12>>1];if(J[682142]<(c+e|0)){a=Kc(g+8|0,2386481, -2386813,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=c+J[682141]|0;break j}c=L[b+12>>1]+(J[b+20>>2]+P(c,e)|0)|0}if(h){e=c+h|0;while(1){if(K[c|0])break i;c=c+1|0;if(e>>>0>c>>>0)continue;break}}e=J[a+12>>2];c=e+1|0;J[a+12>>2]=c;if((e|0)>2])continue;break}}bc=g+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function s2(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;N[a+8>>2]=N[a>>2]+c;N[a+12>>2]=N[a+4>>2]+d;h=J[a+80>>2];if(h){j=h-4|0;e=J[j>> -2];if(e){e=h+P(e,96)|0;while(1){g=e;e=e-96|0;a:{if(!J[e+92>>2])break a;g=g-8|0;f=J[g>>2];if(!f)break a;qc(f);J[g>>2]=0}if((e|0)!=(h|0))continue;break}}qc(j)}j=J[b>>2];f=H[b+11|0];J[a+88>>2]=0;e=K[b+11|0];g=e<<24>>24<0?J[b+4>>2]:e;J[a+84>>2]=g;if((g|0)>0){e=rc((n=-1,o=Dzb(g,0,96,0)|4,p=fc,p?n:o));J[e>>2]=g;h=e+4|0;e=h;i=P(g,96);l=i-96|0;m=((l>>>0)/96|0)+1&7;if(m)while(1){J[e+68>>2]=0;J[e+72>>2]=0;J[e+84>>2]=0;J[e+88>>2]=0;J[e+76>>2]=0;J[e+80>>2]=0;J[e+92>>2]=1;e=e+96|0;k=k+1|0;if((m|0)!=(k|0))continue; -break}if(l>>>0>=672){k=h+i|0;while(1){J[e+68>>2]=0;J[e+72>>2]=0;J[e+84>>2]=0;J[e+88>>2]=0;J[e+76>>2]=0;J[e+80>>2]=0;J[e+164>>2]=0;J[e+168>>2]=0;J[e+92>>2]=1;J[e+172>>2]=0;J[e+176>>2]=0;J[e+180>>2]=0;J[e+184>>2]=0;J[e+260>>2]=0;J[e+264>>2]=0;J[e+188>>2]=1;J[e+268>>2]=0;J[e+272>>2]=0;J[e+276>>2]=0;J[e+280>>2]=0;J[e+356>>2]=0;J[e+360>>2]=0;J[e+284>>2]=1;J[e+364>>2]=0;J[e+368>>2]=0;J[e+372>>2]=0;J[e+376>>2]=0;J[e+380>>2]=1;J[e+452>>2]=0;J[e+456>>2]=0;J[e+460>>2]=0;J[e+464>>2]=0;J[e+468>>2]=0;J[e+472>> -2]=0;J[e+548>>2]=0;J[e+552>>2]=0;J[e+476>>2]=1;J[e+556>>2]=0;J[e+560>>2]=0;J[e+564>>2]=0;J[e+568>>2]=0;J[e+644>>2]=0;J[e+648>>2]=0;J[e+572>>2]=1;J[e+652>>2]=0;J[e+656>>2]=0;J[e+660>>2]=0;J[e+664>>2]=0;J[e+740>>2]=0;J[e+744>>2]=0;J[e+668>>2]=1;J[e+748>>2]=0;J[e+752>>2]=0;J[e+756>>2]=0;J[e+760>>2]=0;J[e+764>>2]=1;e=e+768|0;if((k|0)!=(e|0))continue;break}}b=(f|0)<0?j:b;J[a+80>>2]=h;k=0;e=0;if(g>>>0>=4){j=g&-4;a=0;while(1){f=J[b+(e<<2)>>2];i=P(e,96)+h|0;H[i+64|0]=0;J[i>>2]=f;f=e|1;i=J[b+(f<<2)>>2];f= -P(f,96)+h|0;H[f+64|0]=0;J[f>>2]=i;f=e|2;i=J[b+(f<<2)>>2];f=P(f,96)+h|0;H[f+64|0]=0;J[f>>2]=i;f=e|3;i=J[b+(f<<2)>>2];f=P(f,96)+h|0;H[f+64|0]=0;J[f>>2]=i;e=e+4|0;a=a+4|0;if((j|0)!=(a|0))continue;break}}a=g&3;if(a)while(1){g=J[b+(e<<2)>>2];j=P(e,96)+h|0;H[j+64|0]=0;J[j>>2]=g;e=e+1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}return}J[a+80>>2]=0}function n5(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;n=bc-1024|0;bc=n;q=K[a+8|0];if(q){k=K[a+9|0];f=wc(n,0,1024); -h=J[a+4>>2];a:{if(!h)break a;e=J[a>>2];if(h>>>0>=4){l=h&-4;while(1){g=e+k|0;j=f+(K[g|0]<<2)|0;J[j>>2]=J[j>>2]+1;j=f+(K[g+8|0]<<2)|0;J[j>>2]=J[j>>2]+1;j=f+(K[g+16|0]<<2)|0;J[j>>2]=J[j>>2]+1;g=f+(K[g+24|0]<<2)|0;J[g>>2]=J[g>>2]+1;e=e+32|0;i=i+4|0;if((l|0)!=(i|0))continue;break}}i=h&3;if(!i)break a;g=0;while(1){l=f+(K[e+k|0]<<2)|0;J[l>>2]=J[l>>2]+1;e=e+8|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}i=h>>>1|0;e=0;while(1){g=d;d=d+1|0;e=J[f+(g<<2)>>2]+e|0;if(i>>>0>e>>>0)continue;break}f=J[a>>2];d=f+(h<<3)| -0;b:{if(!h){e=f;f=d;break b}e=g-((e|0)==(h|0))|0;while(1){c:{if(e>>>0>=K[f+k|0]){f=f+8|0;break c}g=J[f>>2];i=J[f+4>>2];d=d-8|0;h=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=h;J[d>>2]=g;J[d+4>>2]=i}if((d|0)!=(f|0))continue;break}e=J[a>>2]}J[b>>2]=e;d=f;f=J[a>>2];d=d-f|0;e=d>>>3|0;J[b+4>>2]=e;f=f+(d&-8)|0;J[c>>2]=f;o=J[a+4>>2]-e|0;J[c+4>>2]=o;e=0;d=0;r=J[b+4>>2];if(r>>>0>=2){e=J[b>>2];g=K[e|0];h=g;i=K[e+1|0];k=i;p=1;l=K[e+3|0];j=l;a=K[e+2|0];m=a;while(1){d=K[e+3|0];l=(d|0)<(l|0)?l:d;j=(d|0)>(j|0)?j:d;d=K[e+ -2|0];a=(a|0)>(d|0)?a:d;m=(d|0)>(m|0)?m:d;d=K[e+1|0];k=(d|0)<(k|0)?k:d;i=(d|0)>(i|0)?i:d;d=K[e|0];h=(d|0)<(h|0)?h:d;g=(d|0)>(g|0)?g:d;e=e+8|0;p=p+1|0;if((r|0)!=(p|0))continue;break}d=h-g|0;g=k-i|0;i=(d|0)>(g|0)?d:g;a=a-m|0;h=(a|0)<(i|0)?i:a;k=l-j|0;e=(h|0)>(k|0)?h:k;d=(h|0)<(k|0)?3:(a|0)>(i|0)?2:(d|0)<(g|0)}H[b+8|0]=e;H[b+9|0]=d;e=0;if(o>>>0>=2){d=K[f|0];g=d;h=K[f+1|0];i=h;m=1;k=K[f+3|0];l=k;j=K[f+2|0];a=j;while(1){b=K[f+3|0];k=(b|0)<(k|0)?k:b;l=(b|0)>(l|0)?l:b;b=K[f+2|0];j=(b|0)<(j|0)?j:b;a=(a|0)< -(b|0)?a:b;b=K[f+1|0];i=(b|0)<(i|0)?i:b;h=(b|0)>(h|0)?h:b;b=K[f|0];g=(b|0)<(g|0)?g:b;d=(b|0)>(d|0)?d:b;f=f+8|0;m=m+1|0;if((o|0)!=(m|0))continue;break}b=g-d|0;f=i-h|0;d=(b|0)>(f|0)?b:f;a=j-a|0;e=(a|0)<(d|0)?d:a;g=k-l|0;s=(e|0)>(g|0)?e:g;e=(e|0)<(g|0)?3:(a|0)>(d|0)?2:(b|0)<(f|0)}H[c+8|0]=s;H[c+9|0]=e}bc=n+1024|0;return(q|0)!=0|0}function us(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;f=1;a:{b:switch(b-a>>3){case 2:e=b-8|0;d=J[e>>2];c=J[a>>2];if(!(O[d+16>>3]>3]))break a;J[a>>2]=d; -J[e>>2]=c;f=J[a+4>>2];c=a;a=b-4|0;J[c+4>>2]=J[a>>2];J[a>>2]=f;return 1;case 3:g=b-8|0;d=J[g>>2];h=O[d+16>>3];c=J[a+8>>2];i=O[c+16>>3];j=J[a>>2];l=O[j+16>>3];c:{if(!(i>2]=d;J[g>>2]=c;d=a+12|0;c=J[d>>2];b=b-4|0;J[a+12>>2]=J[b>>2];J[b>>2]=c;c=J[a+8>>2];b=J[a>>2];if(!(O[c+16>>3]>3]))break a;J[a+8>>2]=b;J[a>>2]=c;e=a+4|0;break c}if(h>2]=d;J[g>>2]=j;d=b-4|0;break c}J[a+8>>2]=j;J[a>>2]=c;c=J[a+4>>2];e=a+12|0;J[a+4>>2]=J[e>>2];J[a+12>>2]=c;c=J[g>>2];if(!(l> -O[c+16>>3]))break a;J[a+8>>2]=c;J[g>>2]=j;d=b-4|0}a=J[e>>2];J[e>>2]=J[d>>2];J[d>>2]=a;return 1;case 4:Yu(a,a+8|0,a+16|0,b-8|0);return 1;case 5:Eq(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}k=J[a+16>>2];h=O[k+16>>3];c=J[a+8>>2];i=O[c+16>>3];g=J[a>>2];l=O[g+16>>3];d:{e:{if(!(i>2]=c;J[a+8>>2]=k;d=a+12|0;c=J[d>>2];J[a+12>>2]=J[a+20>>2];J[a+20>>2]=c;if(!(h>2]=g;J[a>>2]=k;e=a+4|0;break e}if(h>2]=g;J[a>>2]= -k;d=a+20|0;break e}J[a+8>>2]=g;J[a>>2]=c;c=J[a+4>>2];e=a+12|0;J[a+4>>2]=J[e>>2];J[a+12>>2]=c;if(!(h>2]=g;J[a+8>>2]=k;d=a+20|0}c=J[e>>2];J[e>>2]=J[d>>2];J[d>>2]=c}c=a+24|0;if((c|0)==(b|0))break a;e=a+16|0;f:{while(1){n=J[c>>2];m=J[e>>2];if(O[n+16>>3]>3]){k=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;d=c;while(1){g=J[e+4>>2];f=e;J[e>>2]=0;J[e+4>>2]=0;J[d>>2]=m;e=J[d+4>>2];J[d+4>>2]=g;g:{if(!e)break g;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break g;gc[J[J[e>>2]+8>>2]](e);Vc(e)}h:{if((a|0)==(f| -0)){f=a;break h}d=f;e=d-8|0;m=J[e>>2];if(O[n+16>>3]>3])continue}break}J[f>>2]=n;d=J[f+4>>2];J[f+4>>2]=k;i:{if(!d)break i;f=J[d+4>>2];J[d+4>>2]=f-1;if(f)break i;gc[J[J[d>>2]+8>>2]](d);Vc(d)}j=j+1|0;if((j|0)==8)break f}e=c;c=c+8|0;if((c|0)!=(b|0))continue;break}return 1}f=(c+8|0)==(b|0)}return f}function hz(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;f=1;a:{b:switch(b-a>>3){case 2:e=b-8|0;d=J[e>>2];c=J[a>>2];if(!(O[d+32>>3]>3]))break a;J[a>>2]=d;J[e>>2]=c;f=J[a+4>>2];c= -a;a=b-4|0;J[c+4>>2]=J[a>>2];J[a>>2]=f;return 1;case 3:g=b-8|0;d=J[g>>2];h=O[d+32>>3];c=J[a+8>>2];i=O[c+32>>3];j=J[a>>2];l=O[j+32>>3];c:{if(!(i>2]=d;J[g>>2]=c;d=a+12|0;c=J[d>>2];b=b-4|0;J[a+12>>2]=J[b>>2];J[b>>2]=c;c=J[a+8>>2];b=J[a>>2];if(!(O[c+32>>3]>3]))break a;J[a+8>>2]=b;J[a>>2]=c;e=a+4|0;break c}if(h>2]=d;J[g>>2]=j;d=b-4|0;break c}J[a+8>>2]=j;J[a>>2]=c;c=J[a+4>>2];e=a+12|0;J[a+4>>2]=J[e>>2];J[a+12>>2]=c;c=J[g>>2];if(!(l>O[c+32>>3]))break a; -J[a+8>>2]=c;J[g>>2]=j;d=b-4|0}a=J[e>>2];J[e>>2]=J[d>>2];J[d>>2]=a;return 1;case 4:iz(a,a+8|0,a+16|0,b-8|0);return 1;case 5:Zu(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}k=J[a+16>>2];h=O[k+32>>3];c=J[a+8>>2];i=O[c+32>>3];g=J[a>>2];l=O[g+32>>3];d:{e:{if(!(i>2]=c;J[a+8>>2]=k;d=a+12|0;c=J[d>>2];J[a+12>>2]=J[a+20>>2];J[a+20>>2]=c;if(!(h>2]=g;J[a>>2]=k;e=a+4|0;break e}if(h>2]=g;J[a>>2]=k;d=a+20|0;break e}J[a+ -8>>2]=g;J[a>>2]=c;c=J[a+4>>2];e=a+12|0;J[a+4>>2]=J[e>>2];J[a+12>>2]=c;if(!(h>2]=g;J[a+8>>2]=k;d=a+20|0}c=J[e>>2];J[e>>2]=J[d>>2];J[d>>2]=c}c=a+24|0;if((c|0)==(b|0))break a;e=a+16|0;f:{while(1){n=J[c>>2];m=J[e>>2];if(O[n+32>>3]>3]){k=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;d=c;while(1){g=J[e+4>>2];f=e;J[e>>2]=0;J[e+4>>2]=0;J[d>>2]=m;e=J[d+4>>2];J[d+4>>2]=g;g:{if(!e)break g;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break g;gc[J[J[e>>2]+8>>2]](e);Vc(e)}h:{if((a|0)==(f|0)){f=a;break h}d=f;e=d- -8|0;m=J[e>>2];if(O[n+32>>3]>3])continue}break}J[f>>2]=n;d=J[f+4>>2];J[f+4>>2]=k;i:{if(!d)break i;f=J[d+4>>2];J[d+4>>2]=f-1;if(f)break i;gc[J[J[d>>2]+8>>2]](d);Vc(d)}j=j+1|0;if((j|0)==8)break f}e=c;c=c+8|0;if((c|0)!=(b|0))continue;break}return 1}f=(c+8|0)==(b|0)}return f}function QA(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;f=J[a+200>>2];b=tk(J[a+24>>2],f);if(b){J[b+28>>2]=J[b+28>>2]+1;return b}a:{b:{c:{e=J[a+424>>2];a=J[e>>2];if(!a)break c;if(rg(J[a>>2], -f))break c;a=J[e>>2];break b}b=4;k=e+4|0;d:{e:{a=J[e+4>>2];if(a)if(!rg(J[a>>2],f))break e;f:{a=J[e+8>>2];if(!a)break f;if(rg(J[a>>2],f))break f;b=8;break e}g:{a=J[e+12>>2];if(!a)break g;if(rg(J[a>>2],f))break g;b=12;break e}b=0;a=bc-384|0;bc=a;h:{i:{j:{c=tk(J[J[689612]+28>>2],f);if(c)j=Zm(J[c+4>>2],816572);else j=0;k:{if(!j){J[a>>2]=f;xc(1,-1,774896,a);break k}b=rc(32);J[695492]=0;c=$(4,8)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;J[695492]=0;g=aa(3183,c|0,f|0)|0;h=J[695492];J[695492]=0;if((h| -0)==1){a=Z()|0;qc(c);break i}J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=g;J[b+28>>2]=1;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;r=b,s=vd(8,16),J[r+12>>2]=s;if(aw(a+128|0,j)){c=0;l=8;g=1;while(1){l:{m:{h=Cg(a+128|0,776588);if(!h)break m;i=Cg(0,776588);if(!i)break m;d=Cg(0,776588);o=d?i:h;m=d?d:i;d=Qc(m);i=(d|0)/2|0;if((d|0)<10){d=J[b+12>>2];p=J[b+16>>2];if((p|0)==(l|0)){l=l<<1;d=Nd(d,l,16);J[b+12>>2]=d}d=(p<<4)+d|0;J[a+64>>2]=d;Og(h,776718,a- -64|0);J[a+48>>2]=d+4;Og(o,776718,a+48|0);J[a+32>>2]=d+ -8;Og(m,776718,a+32|0);J[d+12>>2]=i;J[b+16>>2]=J[b+16>>2]+1;break l}if((h|0)==(o|0)){if((c|0)==(q|0)){q=c+16|0;n=Nd(n,q,24);J[b+20>>2]=n;c=J[b+24>>2]}d=P(c,24)+n|0;J[a+96>>2]=d;Og(h,776718,a+96|0);c=0;while(1){J[a+80>>2]=a+124;Og((c<<1)+m|0,777964,a+80|0);H[(c+d|0)+4|0]=J[a+124>>2];c=c+1|0;if((i|0)!=(c|0))continue;break}J[d+20>>2]=i;c=J[b+24>>2]+1|0;J[b+24>>2]=c;break l}J[a+116>>2]=f;J[a+112>>2]=g;xc(1,-1,779551,a+112|0);break l}J[a+20>>2]=f;J[a+16>>2]=g;xc(1,-1,779551,a+16|0)}g=g+1|0;if(aw(a+128| -0,j))continue;break}}fg(j)}bc=a+384|0;a=b;break h}a=Z()|0}qc(b);ba(a|0);B()}b=0;if(!a)break a;b=J[e+12>>2];if(b)Tn(b);b=J[e+4>>2];c=J[e>>2];J[k+8>>2]=J[e+8>>2];J[k>>2]=c;J[k+4>>2]=b;break d}a=J[b+e>>2];Zc(k,e,b)}J[e>>2]=a}J[a+28>>2]=J[a+28>>2]+1;b=a}return b}function zT(a){var b=0,c=0,d=0,e=Q(0),f=0,g=0,h=0,i=0,j=0,k=Q(0),l=Q(0),m=Q(0),n=0,o=Q(0),p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=0,u=0,v=0,w=0,x=0,y=0,z=Q(0),A=0,B=0,C=0,D=0;i=bc-32|0;bc=i;a:{b:{if(J[a+68>>2])break b;d=zc(6168);J[a+68>>2]=d;if(d)break b; -Nc(J[J[a>>2]+628>>2],2626960,82623,0);a=0;break a}d=J[a>>2];J[i+16>>2]=i+28;Ki(d,529,i+16|0);d=J[a>>2];J[i>>2]=i+24;Ki(d,532,i);f=J[i+28>>2];d=J[i+24>>2];b=J[a+68>>2];Hg(b+24|0,0,256);g=b+280|0;J[b>>2]=g;while(1){H[c+g|0]=c;a=c|1;H[a+g|0]=a;a=c|2;H[a+g|0]=a;a=c|3;H[a+g|0]=a;a=c|4;H[a+g|0]=a;a=c|5;H[a+g|0]=a;a=c|6;H[a+g|0]=a;a=c|7;H[a+g|0]=a;c=c+8|0;if((c|0)!=256)continue;break}Hg(b+536|0,255,512);u=b+5144|0;J[b+20>>2]=u;v=b+4120|0;J[b+16>>2]=v;w=b+3096|0;J[b+12>>2]=w;x=b+2072|0;J[b+8>>2]=x;y=b+1048| -0;J[b+4>>2]=y;k=N[d+12>>2];p=Q(N[d+16>>2]+Q(-128));l=N[d+20>>2];q=N[d>>2];z=N[d+4>>2];r=Q(N[d+8>>2]+Q(-128));c:{if(Q(R(r))>2];e=Q(Q(2)-Q(m+m));h=+Q(e*Q(65536))+.5;d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}s=N[f>>2];o=Q(Q(2)-Q(s+s));h=+Q(o*Q(65536))+.5;e:{if(R(h)<2147483648){a=~~h;break e}a=-2147483648}k=Q(k+Q(-128));l=Q(l+Q(-128));m=Q(m*e);e=N[f+4>>2];h=+Q(Q(m/e)*Q(65536))+.5;f:{if(R(h)< -2147483648){b=~~h;break f}b=-2147483648}C=b;m=Q(k-r);k=Q(l-p);l=Q(z-q);h=+Q(Q(Q(s*o)/e)*Q(65536))+.5;g:{if(R(h)<2147483648){b=~~h;break g}b=-2147483648}j=m!=Q(0);c=k!=Q(0);f=l!=Q(0);if(Q(R(q))>2]=P(a,f)+32768>>16;D=n+x|0;e=Q(Q(Q(c-A|0)*Q(127))/o);i:{if(Q(R(e))>2]= -P(d,j)+32768>>16;J[n+w>>2]=0-P(b,f);J[n+v>>2]=32768-P(j,C);j=n+u|0;e=Q(Q(Q((c-g|0)+128|0)*Q(255))/l);j:{if(Q(R(e))>2]=f;c=c+1|0;t=t+1|0;if((t|0)!=256)continue;break}a=1}bc=i+32|0;return a}function ewa(a){a=a|0;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;o=bc-32|0;bc=o;a:{if(L[a+16>>1]>=3){a=Kc(o+8|0,2375739,2373930,402,2407148,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}b:{if(!J[a+ -20>>2])break b;i=a+40|0;oe(i,0,1);oe(a+52|0,0,4);g=bc-16|0;bc=g;c:{d:{e:{f:{g:{d=a;if(!(!L[a+8>>1]|!L[a+10>>1])){b=J[a+36>>2];a=J[a+20>>2];if(b|a)break g}oe(i,0,1);break f}if(!a){a=ch(g+4|0,g+12|0,J[d+60>>2],1);tc(J[g+12>>2],J[d+36>>2],J[d+60>>2]);J[695492]=0;Bz(a,i);b=J[695492];J[695492]=0;if((b|0)==1)break e;h=J[d+60>>2];_c(a);break f}oe(i,0,1);j=(L[d+10>>1]<<1)+1024|0;k=ch(g+4|0,g+12|0,j,1);a=L[d+8>>1];if(a){m=a-1|0;n=(J[d+20>>2]+L[d+12>>1]|0)+P(m,L[d+14>>1])|0;while(1){c=L[d+10>>1];a=c<<1;if(((a+ -h|0)+2|0)>(j|0)){J[695492]=0;j=(a+j|0)+1024|0;ca(5443,k|0,j|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break d;c=L[d+10>>1]}q=J[g+12>>2]+h|0;e=q;if(c){f=c+n|0;p=0;a=n;while(1){b=K[a|0];h:{i:{p=p^1;j:{k:{if(!(p&1)){if(!b){c=0;break j}c=1;b=a+1|0;if(f>>>0<=b>>>0){a=b;break j}l=f-a|0;while(1){a=b;if(!K[a|0])break k;c=c+1|0;b=a+1|0;if((f|0)!=(b|0))continue;break}c=l;a=f;break k}c=0;if(b)break j;c=1;b=a+1|0;if(f>>>0<=b>>>0){a=b;break j}l=f-a|0;while(1){a=b;if(K[a|0])break k;c=c+1|0;b=a+1|0;if((f|0)!=(b| -0))continue;break}c=l;a=f}if(c>>>0>191)break i}H[e|0]=c;b=1;break h}l:{if(c>>>0<=16383){H[e+1|0]=c;H[e|0]=(c>>>8|0)+-64;break l}while(1){b=e;H[b+2|0]=0;H[b|0]=255;H[b+1|0]=255;e=b+3|0;l=c>>>0>32766;c=c-16383|0;if(l)continue;break}if(c>>>0<=191){H[e|0]=c;b=1;break h}H[b+4|0]=c;H[b+3|0]=(c>>>8|0)+-64}b=2}e=b+e|0;if(a>>>0>>0)continue;break}}n=n-L[d+14>>1]|0;h=(h-q|0)+e|0;a=(m|0)>0;m=m-1|0;if(a)continue;break}}J[695492]=0;ca(5443,k|0,h|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;Bz(i, -k);a=J[695492];J[695492]=0;if((a|0)==1)break d;_c(k)}bc=g+16|0;break c}b=Z()|0;_c(a);ba(b|0);B()}a=Z()|0;_c(k);ba(a|0);B()}J[d+60>>2]=h;if(!h)break b;oe(d+28|0,0,1);J[d+20>>2]=0}bc=o+32|0;return}B()}function Ncb(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;e=bc-1552|0;bc=e;f=6;g=J[a+4>>2];a:{if(M[g+16>>2]<=c>>>0)break a;h=J[g+136>>2];J[a+164>>2]=J[b+16>>2];J[a+168>>2]=J[b+20>>2];d=d&1024?d|3:d;j=d&1;H[a+161|0]=!j;f=!(d&3);H[a+160|0]=f;J[a+108>>2]=0;J[a+72>>2]=1869968492; -i=e+36|0;f=gc[J[J[h+12>>2]>>2]](i,g,b,a,0,0,f,d>>>16&15,1753)|0;if(f)break a;k=d&1024;H[e+105|0]=k>>>10;f=U3(i,c);if(!f){l=K[a+161|0];m=K[a+160|0];c=e+1424|0;f=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=f;c=J[e+1420>>2];J[e+16>>2]=J[e+1416>>2];J[e+20>>2]=c;c=J[e+1436>>2];f=J[e+1432>>2];gc[J[J[h+12>>2]+4>>2]](i);J[a+124>>2]=J[a+124>>2]&1|4;if(k){b=J[a+156>>2];d=J[e+68>>2];J[a+32>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=a;a=J[e+76>>2];J[d+40>>2]=(((a>>31)+a|0)+32768&-65536)>>16;a=J[e+28>>2];J[b+20>>2]=J[e+ -24>>2];J[b+24>>2]=a;a=J[e+20>>2];J[b+12>>2]=J[e+16>>2];J[b+16>>2]=a;J[b+32>>2]=c;J[b+28>>2]=f;H[b+8|0]=1;f=0;break a}h=J[e+76>>2];J[a+40>>2]=(((h>>31)+h|0)+32768&-65536)>>16;h=J[e+76>>2];J[a+56>>2]=(((h>>31)+h|0)+32768&-65536)>>16;H[J[a+156>>2]+8|0]=0;h=J[g+200>>2];g=J[g+208>>2];J[a+72>>2]=1869968492;g=g-h>>16;J[a+60>>2]=g;J[a+52>>2]=g;if(L[b+14>>1]<=23)J[a+124>>2]=J[a+124>>2]|256;g=a+108|0;b:{if(!(J[e+20>>2]|(J[e+16>>2]!=65536|J[e+28>>2]!=65536)))if(!J[e+24>>2])break b;uo(g,e+16|0);n=a,o=Pc(J[a+ -40>>2],J[e+16>>2]),J[n+40>>2]=o;n=a,o=Pc(J[a+52>>2],J[e+28>>2]),J[n+52>>2]=o}if(c|f){Jh(g,f,c);J[a+40>>2]=f+J[a+40>>2];J[a+52>>2]=c+J[a+52>>2]}if(!(!l&j)){c=J[a+168>>2];h=J[a+164>>2];c:{if(J[e+108>>2]?m:0)break c;f=J[e+52>>2];b=I[f+2>>1];if((b|0)<=0)break c;b=b&65535;f=J[f+4>>2];while(1){n=f,o=Pc(J[f>>2],h),J[n>>2]=o;n=f,o=Pc(J[f+4>>2],c),J[n+4>>2]=o;f=f+8|0;i=b>>>0>1;b=b-1|0;if(i)continue;break}}n=a,o=Pc(J[a+40>>2],h),J[n+40>>2]=o;n=a,o=Pc(J[a+52>>2],c),J[n+52>>2]=o}Pp(g,e);b=J[e>>2];J[a+24>>2]= -J[e+8>>2]-b;c=J[e+4>>2];f=J[e+12>>2];J[a+36>>2]=f;J[a+32>>2]=b;J[a+28>>2]=f-c;if(d&16)gu(a+24|0,J[a+52>>2]);f=0;break a}gc[J[J[h+12>>2]+4>>2]](e+36|0)}bc=e+1552|0;return f|0}function MS(a,b){var c=0,d=0,e=0;e=a+1776|0;c=bc-80|0;bc=c;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+8>>2]=340520;J[695492]=0;ga(2226,c+24|0,2431328,5)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){if(H[c+23|0]>=0)break b;J[c+16>>2]=0;d=J[c+12>>2];break a}a=Z()|0;if(H[c+35|0]<0)qc(J[c+24>> -2]);if(H[c+23|0]<0)qc(J[c+12>>2]);ba(a|0);B()}H[c+23|0]=0;d=c+8|4}J[d>>2]=0;I[c+56>>1]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+68>>2]=0;J[c+72>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+60>>2]=0;J[c+64>>2]=0;J[695492]=0;aa(6416,e+8|0,c+8|0)|0;d=J[695492];J[695492]=0;c:{if((d|0)!=1){J[c+8>>2]=340520;if(H[c+35|0]<0)qc(J[c+24>>2]);if(H[c+23|0]<0)qc(J[c+12>>2]);d=J[e>>2];if(d){d=gc[J[J[d>>2]+16>>2]](d)|0;gc[J[J[d>>2]+16>>2]](d)}bc=c+80|0;break c}a=Z()|0;kn(c+8|0);ba(a|0);B()}c=J[a+4>>2];if(!(!c|!K[b|0])){b=gc[J[J[c>> -2]+24>>2]](c)|0;gc[J[J[b>>2]+24>>2]](b)}gz(a);c=J[a+2324>>2];d=a+2328|0;if((c|0)!=(d|0))while(1){b=J[c+20>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[c+4>>2];d:{if(b)while(1){c=b;b=J[c>>2];if(b)continue;break d}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}Dq(a+2324|0,J[a+2328>>2]);J[a+2324>>2]=d;J[a+2328>>2]=0;J[a+2332>>2]=0;b=a+1936|0;ez(b);J[a+2232>>2]=0;c=a+1984|0;J[c+68>>2]=b;J[c+64>>2]=e;b=a+1732|0;J[c+56>>2]=b;J[c+52>>2]=a+2312;J[c+48>>2]=a+648;J[c+44>>2]= -a+552;J[c+40>>2]=a+512;J[c+36>>2]=a+72;J[c+32>>2]=a+8;J[c+28>>2]=a+440;J[c+236>>2]=0;J[c+60>>2]=a+1744;J[682147]=1024;a=a+652|0;e:{if(H[a+35|0]<0){J[a+28>>2]=0;c=J[a+24>>2];break e}H[a+35|0]=0;c=a+24|0}J[c>>2]=0;J[a+36>>2]=1200;J[a+40>>2]=0;c=a+16|0;Cq(a+12|0,J[c>>2]);J[a+12>>2]=c;J[a+16>>2]=0;J[a+20>>2]=0;Xu(a,J[a+4>>2]);J[a>>2]=a+4;J[a+4>>2]=0;J[a+8>>2]=0;a=b;f:{if(!J[a+8>>2])break f;b=J[a+4>>2];c=J[b>>2];e=J[J[a>>2]+4>>2];J[c+4>>2]=e;J[e>>2]=c;J[a+8>>2]=0;if((a|0)==(b|0))break f;while(1){c=b;b= -J[c+4>>2];e=J[c+12>>2];g:{if(!e)break g;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break g;gc[J[J[e>>2]+8>>2]](e);Vc(e)}qc(c);if((a|0)!=(b|0))continue;break}}}function Rpa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;gc[J[J[a>>2]+20>>2]](a,J[a+32>>2],0,0)|0;J[a+24>>2]=0;c=bc-16|0;bc=c;d=f+4|0;J[d>>2]=0;J[d+4>>2]=J[682146];a:{b:{c:{d:{e:{f:{g:{e=J[b>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break g;g=J[b>>2]}J[695492]=0;J[c+4>>2]=g;ia(5494,c+8|0,0,0,c+4|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break f;b=J[c+8>>2];h:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break h;a=Z()|0;break e}J[c+12>>2]=0}J[695492]=0;aa(4993,d|0,c+12|0)|0;b=J[695492];J[695492]=0;i:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break i;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break i}break b}a=Z()|0;vc(c+12|0);break e}b=J[d>>2];J[d+4>> -2]=J[(b?b+12|0:2728584)>>2];b=J[c+8>>2];J[c+8>>2]=0;j:{if(!b)break j;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break j;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}b=J[c+4>>2];J[c+4>>2]=0;k:{if(!b)break k;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(d)break k;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}bc=c+16|0;break a}a=Z()|0;break c}a=Z()|0;break d}vc(c+8|0)}vc(c+ -4|0)}sc(d);ba(a|0);B()}ea(0)|0;yc();B()}l:{b=J[f+4>>2];m:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,f+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break m;a=Z()|0;break l}J[f+12>>2]=0}J[695492]=0;aa(4993,a+16|0,f+12|0)|0;b=J[695492];J[695492]=0;n:{if((b|0)!=1){b=J[f+12>>2];J[f+12>>2]=0;if(!b)break n;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break n;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break n}ea(0)|0;yc();B()}a=Z()|0;vc(f+12|0);break l}b= -a;a=J[a+16>>2];J[b+20>>2]=J[(a?a+12|0:2728584)>>2];sc(f+4|0);bc=f+16|0;return}sc(f+4|0);ba(a|0);B()}function wab(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=Q(0),m=0,n=0;a:{if(!(!J[c>>2]&(d|0)==1|(!c|!d))){J[a+508>>2]=1;h=0;if(J[a+632>>2]==8)break a;gc[J[J[a>>2]+136>>2]](a,340176)|0;qr(a);i=DC(a,a+88|0);b=J[a+16>>2];g=J[a+12>>2];m=O[e>>3];n=O[f>>3];e=bc-144|0;bc=e;J[e+140>>2]=d;b:{c:{d:{e:{f:{g:{if(!J[i+4>>2]){d=Vw(e+136|0,b+48|0);J[695492]=0;Ck(d,b+52|0,0); -a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;or(d,e+80|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;O[e+72>>3]=m;O[e+64>>3]=n;J[695492]=0;f=aa(2281,e+60|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;nr(f);a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;Ck(f,b+56|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;je(f,e+72|0,e- -64|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;O[e+48>>3]=Q(O[e+80>>3]);O[e+40>>3]=Q(O[e+88>>3]);O[e+32>>3]=Q(O[e+96>> -3]);O[e+24>>3]=Q(O[e+104>>3]);O[e+16>>3]=Q(O[e+112>>3]);O[e+8>>3]=Q(O[e+120>>3]);a=J[J[g>>2]+124>>2];J[695492]=0;j=a;a=e+48|0;k=e+40|0;va(j|0,g|0,a|0,k|0,e+32|0,e+24|0,e+16|0,e+8|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break g;J[b+2932>>2]=J[g+160>>2];N[e+48>>2]=O[e+72>>3];N[e+40>>2]=O[e+64>>3];j=J[J[g>>2]+96>>2];J[695492]=0;ma(j|0,g|0,c|0,e+140|0,a|0,k|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[e+48>>2]=0;J[e+40>>2]=0;h:{while(1){i:{J[e+32>>2]=0;a=J[J[g>>2]+200>>2];J[695492]=0;a=ha(a|0, -g|0,e+32|0,e+48|0,e+40|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;if(!a)break h;k=J[e+32>>2];if(!k)continue;J[695492]=0;l=N[e+40>>2];j:{if(Q(R(l))>2];k:{if(Q(R(l))>2]+4>>2]](i); -return 0}J[a+508>>2]=0;h=gc[J[J[a>>2]+292>>2]](a,b,e,f,g,h)|0}return h|0}function Od(a){var b=0,c=0,d=0,e=0;c=bc+-64|0;bc=c;b=J[J[a+36>>2]+16>>2];a:{if(K[b|0]!=37)break a;b:{c:switch(J[a+172>>2]+1|0){case 0:if(J[a+212>>2])break a;J[a+84>>2]=18;J[c+16>>2]=2518;Cc(0,0,0,a,0,1,18,3,0,0,0,0,32890,c+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a;case 1:case 2:case 5:J[a+84>>2]=19;J[c+32>>2]=12701;Cc(0,0,0,a,0,1,19,3,0,0,0,0,32890,c+32|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]= -1;break a;case 15:J[a+84>>2]=20;J[c+48>>2]=12723;Cc(0,0,0,a,0,1,20,3,0,0,0,0,32890,c+48|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a;case 3:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 16:case 17:break a;case 4:break c;default:break b}if(!J[a+96>>2]&J[a+40>>2]==1)break a;switch(K[b+1|0]){case 0:case 9:case 10:case 13:case 32:break a;default:break b}}Qd(a);b=Uh(a);if(J[689531]){J[c>>2]=b;gc[J[659549]](J[689514],32794,c)}if(!b){Pe(a,24,0);break a}if(K[J[J[a+ -36>>2]+16>>2]]==59){Qd(a);d=J[a>>2];d:{if(!d)break d;d=J[d+96>>2];if(!d)break d;e=gc[d|0](J[a+4>>2],b)|0}if(J[a+172>>2]==-1)break a;if(!e){e:{if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){Nf(a,26,34952,b);break e}f:{if(!(!J[a+104>>2]|!J[a+112>>2])){fm(a,27,34952,b,0);break f}co(a,27,34952,b)}J[a+100>>2]=0}Vj(a,0,0,0);break a}if(J[J[a+36>>2]+40>>2]!=3179){zt(a,z$(a,e));break a}d=J[e+48>>2];if((d&-2)==4){if(!(J[a+16>>2]|(K[a+360|0]&30|(d|0)!=5)))if(!J[a+104>>2])break a;if((zt(a,FJ(a,e))|0)<0)break a; -g:{if(J[a+292>>2])break g;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break g;Hd(a)}if(J[a+172>>2]==-1)break a;d=J[a+36>>2];b=J[d+16>>2];h:{if((J[d+20>>2]-b|0)<4)break h;H[c+60|0]=K[b|0];H[c+61|0]=K[b+1|0];H[c+62|0]=K[b+2|0];H[c+63|0]=K[b+3|0];b=gr(c+60|0,4);if(!b)break h;dr(a,b)}if(J[e+48>>2]!=5)break a;b=J[J[a+36>>2]+16>>2];if(K[b|0]!=60|K[b+1|0]!=63|(K[b+2|0]!=120|K[b+3|0]!=109))break a;if(K[b+4|0]!=108)break a;b=K[b+5|0]-9|0;if(b>>>0>23|!(1<>2]=f;m=a+168|0;J[a+48>>2]=m;f=J[a+64>>2];J[a+192>>2]=J[a+60>>2];J[a+196>>2]=f;J[a+188>>2]=c;J[a+184>>2]=b;J[a+180>>2]=e;J[a+176>>2]=d;J[a+172>>2]=g;f=m;while(1){n=J[f>>2];a:{b:{c:{d:{i=J[f+20>>2];k=J[f+12>>2];e=J[f+28>>2];g=J[f+4>>2];if((((i|0)<(k|0)?i:k)|0)>=(((e|0)<(g|0)?e:g)|0)){j=(e|0)>(g|0);if((((i|0)>(k|0)?i:k)|0)<=((j?e:g)|0))break d}b=J[f+24>>2];J[f+48>>2]=b;J[f+52>>2]=e;c=e+i|0;J[f+ -44>>2]=c>>1;d=g+k|0;J[f+12>>2]=d>>1;e=J[f+8>>2];j=e+n|0;J[f+8>>2]=j>>1;l=b;b=J[f+16>>2];h=l+b|0;J[f+40>>2]=h>>1;l=c;c=i+k|0;i=l+c|0;J[f+36>>2]=i>>2;c=c+d|0;J[f+20>>2]=c>>2;b=b+e|0;d=b+j|0;J[f+16>>2]=d>>2;b=b+h|0;J[f+32>>2]=b>>2;J[f+28>>2]=c+i>>3;J[f+24>>2]=b+d>>3;b=f+24|0;break c}if((e|0)!=(g|0))break b;b=f-24|0}J[a+48>>2]=b;break a}o=j?2:1;h=J[a+92>>2];if((o|0)!=(h|0)){b=J[a+4>>2];d=j?e&b-1:((b+e|0)-1&0-b)-e|0;c=J[a+36>>2];l=J[a+8>>2];e:{if(!h){b=c;break e}h=J[a+80>>2];b=J[h+8>>2];p=c-b>>2;if((p| -0)<0){J[a+40>>2]=99;return 1}f:{if((b|0)==(c|0)){b=c;break f}J[h+16>>2]=p;if((d|0)>=(l|0)){b=L[h+12>>1];I[h+12>>1]=(b&8?16:32)|b}J[a+80>>2]=c;b=c+32|0;J[a+36>>2]=b;J[c+8>>2]=b;J[c+16>>2]=0;J[h+28>>2]=c;I[a+76>>1]=L[a+76>>1]+1}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}H[a+79|0]=0}if(!J[a+84>>2]){J[a+84>>2]=b;J[a+80>>2]=b;b=b+32|0;J[a+36>>2]=b}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}c=J[a+80>>2];J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=b;J[c+28>>2]=0;J[c+4>>2]=0;b=K[a+164|0];I[c+12>>1]=b;g:{h:{if(!j){I[c+ -12>>1]=b|8;h=40;if((d|0)>=(l|0))break h;break g}h=16;if((d|0)<(l|0))break g}I[c+12>>1]=b|h}if(!J[a+88>>2])J[a+88>>2]=c;I[a+78>>1]=1;J[a+92>>2]=o}b=J[a+72>>2];c=J[a+68>>2];i:{if(!j){if(!KC(a,3,1703,c,b))break a;break i}J[f+28>>2]=0-e;J[f+20>>2]=0-i;J[f+12>>2]=0-k;J[f+4>>2]=0-g;d=K[a+78|0];b=KC(a,3,1703,0-b|0,0-c|0);if(!(K[a+78|0]|!d)){c=J[a+80>>2];J[c+20>>2]=0-J[c+20>>2]}J[f+4>>2]=0-J[f+4>>2];if(!b)break a}return 1}f=J[a+48>>2];if(m>>>0<=f>>>0)continue;break}J[a+64>>2]=g;J[a+60>>2]=n;return 0}function zg(a){var b= -0,c=0,d=0,e=0,f=0;d=J[a>>2];c=J[a+4>>2];e=J[a+20>>2];f=J[e>>2];b=J[f>>2];J[e>>2]=J[f+12>>2];e=c-b|0;c=e>>>0>>0;e=c?e:b;b=(c?b:0)+d|0;c=J[a+8>>2];while(1){c=c-1|0;J[a+8>>2]=c;d=b<<1;J[a>>2]=d;J[a+4>>2]=e<<1;a:{if(c){b=d;break a}c=J[a+28>>2];b:{c:{if((c|0)!=255){if(b&67108864){e=c+1|0;J[a+28>>2]=e;if((e|0)==255){J[a>>2]=d&134217726;b=J[a+24>>2];c=J[b+8>>2];d:{e:{if(c&7)break e;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break e}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c| -0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break d}if((Uc(b,255)|0)!=-1)break d}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>20&255;b=b&1048575;break c}f:{if((c|0)<-1)break f;b=J[a+24>>2];c=J[b+8>>2];g:{if(c&7)break g;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break g}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break f}if((Uc(b,e&255)|0)!=-1)break f}J[a+ -36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>19&255;b=b&524287;c=8;break b}h:{if((c|0)<0)break h;b=J[a+24>>2];d=J[b+8>>2];i:{if(d&7)break i;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break i}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break h}if((Uc(b,c&255)|0)!=-1)break h}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>19&255;b=b&524287;c=8;break b}b=J[a+ -24>>2];c=J[b+8>>2];j:{k:{if(c&7)break k;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break k}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break j}if((Uc(b,255)|0)!=-1)break j}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>20&255;b=b&1048575}c=7}J[a+8>>2]=c;J[a>>2]=b}e=J[a+4>>2];if(!(e&32768))continue;break}}function UH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=bc+-64|0;bc=d; -J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;a:{if(J[a>>2]!=7){xc(0,-1,774725,0);break a}Bc(J[a+8>>2],776094,d+48|0,0);b:{c:{d:{e:{if(J[d+48>>2]==4){c=J[d+56>>2];if(!Ec(c,776868)){b=d+32|0;Bc(J[a+8>>2],778752,b,0);e=rc(12);J[695492]=0;a=aa(3451,e|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break c;break e}if(!Ec(c,779710)){c=d+32|0;Bc(J[a+8>>2],781006,c,0);b=d+16|0;Bc(J[a+8>>2],778752,b,0);e=rc(16);J[695492]=0;a=ga(3452,e|0,c|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;break d}if(!Ec(c, -781563)){e=rc(12);J[695492]=0;a=aa(3453,e|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break b;break e}if(!Ec(c,783114)){c=d+32|0;Bc(J[a+8>>2],783114,c,0);e=rc(8);J[695492]=0;a=ga(3454,e|0,c|0,b|0)|0;f=J[695492];J[695492]=0;b=c;if((f|0)!=1)break c;break e}if(!Ec(c,783703)){b=d+32|0;Bc(J[a+8>>2],784705,b,0);e=rc(8);J[695492]=0;a=aa(3455,e|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break c;break e}if(!Ec(c,785449)){c=d+32|0;Ce(J[a+8>>2],786200,c);b=d+16|0;Bc(J[a+8>>2],787292,b,0);e=rc(16);J[695492]= -0;a=ga(3456,e|0,c|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break d;break e}if(!Ec(c,787903)){b=d+32|0;Bc(J[a+8>>2],789136,b,0);e=rc(8);J[695492]=0;a=aa(3457,e|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break c;break e}if(!Ec(c,789810)){b=d+32|0;Bc(J[a+8>>2],781006,b,0);c=d+16|0;Bc(J[a+8>>2],790531,c,0);Bc(J[a+8>>2],791296,d,0);e=rc(32);J[695492]=0;a=ha(3458,e|0,b|0,c|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){uc(b);b=d;break d}break e}if(!Ec(c,792314)){c=d+32|0;Ce(J[a+8>>2],787292,c);b=d+ -16|0;Bc(J[a+8>>2],793291,b,0);e=rc(32);J[695492]=0;a=ga(3459,e|0,c|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break d;break e}e=rc(8);J[695492]=0;a=aa(3460,e|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break b;break e}xc(0,-1,774725,0);uc(d+48|0);break a}a=Z()|0;qc(e);ba(a|0);B()}uc(c)}uc(b)}uc(d+48|0);if(gc[J[J[a>>2]+8>>2]](a)|0){g=a;break a}gc[J[J[a>>2]+4>>2]](a)}bc=d- -64|0;return g|0}function Ag(a){var b=0,c=0,d=0,e=0,f=0;d=J[a>>2];c=J[a+4>>2];e=J[a+20>>2];f=J[e>>2];b=J[f>>2];J[e>>2]=J[f+8>> -2];e=b>>>0>>0?c:b;b=(b>>>0<=c>>>0?b:0)+d|0;c=J[a+8>>2];while(1){c=c-1|0;J[a+8>>2]=c;d=b<<1;J[a>>2]=d;J[a+4>>2]=e<<1;a:{if(c){b=d;break a}c=J[a+28>>2];b:{c:{if((c|0)!=255){if(b&67108864){e=c+1|0;J[a+28>>2]=e;if((e|0)==255){J[a>>2]=d&134217726;b=J[a+24>>2];c=J[b+8>>2];d:{e:{if(c&7)break e;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break e}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break d}if((Uc(b, -255)|0)!=-1)break d}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>20&255;b=b&1048575;break c}f:{if((c|0)<-1)break f;b=J[a+24>>2];c=J[b+8>>2];g:{if(c&7)break g;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break g}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break f}if((Uc(b,e&255)|0)!=-1)break f}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>19&255;b=b&524287; -c=8;break b}h:{if((c|0)<0)break h;b=J[a+24>>2];d=J[b+8>>2];i:{if(d&7)break i;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break i}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break h}if((Uc(b,c&255)|0)!=-1)break h}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>19&255;b=b&524287;c=8;break b}b=J[a+24>>2];c=J[b+8>>2];j:{k:{if(c&7)break k;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+ -8>>2]=c|4;break k}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break j}if((Uc(b,255)|0)!=-1)break j}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>20&255;b=b&1048575}c=7}J[a+8>>2]=c;J[a>>2]=b}e=J[a+4>>2];if(!(e&32768))continue;break}}function _S(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=bc-48|0;bc=g;d=J[a+12>>2];a:{b:{if(d&131072)break b;h=J[J[a+188>>2]+(b<<2)>>2];if(!h){d=J[a+628>>2]; -a=J[a>>2];J[g+8>>2]=b;J[g+4>>2]=0;J[g>>2]=a;Nc(d,83332,71905,g);c=0;break a}if(!(!(d&2048)|!((L[a+94>>1]|256)&d))){c:{if(!(d&512))break c;c=J[a+596>>2];if(!c)break c;qc(c);d=J[a+12>>2]}d=d&-513;J[a+12>>2]=d;c=J[a+616>>2];e=J[a+184>>2]+(b<<2)|0;f=J[e>>2];if(!(c>>>0>=h>>>0&f>>>0<=c-h>>>0)){d=J[a+628>>2];e=J[a>>2];J[g+44>>2]=h;J[g+40>>2]=c-f;J[g+36>>2]=b;J[g+32>>2]=e;Nc(d,83332,72372,g+32|0);J[a+480>>2]=-1;c=0;break a}J[a+600>>2]=h;J[a+596>>2]=J[a+612>>2]+J[e>>2];break b}if(h>>>0>M[a+600>>2]){J[a+480>> -2]=-1;if(!(d&512)){d=J[a+628>>2];a=J[a>>2];J[g+20>>2]=b;J[g+16>>2]=a;Nc(d,83332,72950,g+16|0);c=0;break a}c=0;if(!ZS(a,h>>>0<4294966272?h+1023&-1024:0))break a}e=J[a+596>>2];d=h;c=bc+-64|0;bc=c;d:{f=J[a+12>>2];if(!(f&131072)){e:{if(!(f&2048)){f=b<<2;if((gc[J[a+640>>2]](J[a+628>>2],J[f+J[a+184>>2]>>2],0)|0)!=J[f+J[a+184>>2]>>2]){d=J[a+628>>2];e=J[a>>2];f=J[a+472>>2];J[c+24>>2]=b;J[c+20>>2]=f;J[c+16>>2]=e;Nc(d,83332,79781,c+16|0);d=-1;break e}e=gc[J[a+632>>2]](J[a+628>>2],e,d)|0;if((e|0)==(d|0))break e; -f=J[a+628>>2];i=J[a>>2];j=J[a+472>>2];J[c+12>>2]=d;J[c+8>>2]=e;J[c+4>>2]=j;J[c>>2]=i;Nc(f,83332,80021,c);d=-1;break e}i=J[a+616>>2];f=J[J[a+184>>2]+(b<<2)>>2];if(i>>>0>>0){e=J[a+628>>2];j=J[a>>2];k=J[a+472>>2];J[c+48>>2]=d;J[c+44>>2]=i-f;J[c+40>>2]=b;J[c+36>>2]=k;J[c+32>>2]=j;Nc(e,83332,80490,c+32|0);d=-1;break e}Ne(e,f+J[a+612>>2]|0,d)}bc=c- -64|0;break d}fa(75563,76141,176,83456);B()}c=0;if((d|0)!=(h|0))break a;d=J[a+12>>2];if(d&(L[a+94>>1]|256))break b;FF(J[a+596>>2],h);d=J[a+12>>2]}if(!(d& -32)){c=0;if(!(gc[J[a+516>>2]](a)|0))break a;d=J[a+12>>2]|32;J[a+12>>2]=d}J[a+480>>2]=b;c=J[a+176>>2];h=(b>>>0)/(c>>>0)|0;J[a+472>>2]=P(J[a+100>>2],b-P(c,h)|0);c=0;e=0;if(!(d&131072)){e=J[J[a+188>>2]+(b<<2)>>2];c=J[a+596>>2]}J[a+608>>2]=e;J[a+604>>2]=c;c=gc[J[a+520>>2]](a,h&65535)|0}bc=g+48|0;return c}function bMa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!a|!b)break a;b:{c=K[a+407|0];if(c>>>0>7)break b;J[a+744>>2]=17;d=b+32|0;e=8-c|0;qg(a,d+c|0,e);H[a+407|0]=8;c:{if(HX(d,c,e)){if(c>>>0<=3)if(HX(d,c, -4-c|0))break c;Ad(a,58307);B()}if(c>>>0>2)break b;J[a+200>>2]=J[a+200>>2]|4096;break b}Ad(a,58102);B()}d:{e:{while(1){f:{d=dA(a);g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{c=J[a+348>>2];if((c|0)!=1229278788){if((c|0)!=1229472850){if((c|0)!=1229209940)break r;c=J[a+200>>2];if(c&8)J[a+200>>2]=c|8192;e=Dv(a,1229209940);c=J[a+200>>2];if(!e)break q;J[a+200>>2]=c|4;uv(a,b,d);b=J[a+200>>2];if(!(b&1))break f;if(b&2|K[a+401|0]!=3)break a;Ad(a,59233);B()}fW(a,b,d);continue}aW(a,d);continue}if(Dv(a,c)){uv(a,b,d);if((c| -0)!=1347179589)continue;J[a+200>>2]=J[a+200>>2]|2;continue}s:{if((c|0)<=1883789682){if((c|0)<=1749635923){if((c|0)<=1665684044){if((c|0)==1347179589)break s;if((c|0)!=1649100612)break g;OV(a,b,d);continue}if((c|0)==1665684045)break p;if((c|0)!=1732332865)break g;$V(a,b,d);continue}if((c|0)<=1767135347){if((c|0)==1749635924)break o;if((c|0)!=1766015824)break g;SV(a,b,d);continue}if((c|0)==1767135348)break h;if((c|0)==1866876531)break n;if((c|0)!=1883455820)break g;GV(a,b,d);continue}if((c|0)<=1934772033){if((c| -0)<=1933787467){if((c|0)==1883789683)break l;if((c|0)!=1933723988)break g;YV(a,b,d);continue}if((c|0)==1933787468)break m;if((c|0)!=1934642260)break g;QV(a,b,d);continue}if((c|0)<=1950960964){if((c|0)==1934772034)break k;if((c|0)!=1950701684)break g;zV(a,b,d);continue}if((c|0)==1950960965)break j;if((c|0)==1951551059)break i;if((c|0)!=2052348020)break g;yV(a,b,d);continue}bW(a,b,d);continue}if(!(c&1))break e;if(!(c&2)&K[a+401|0]==3)break d;J[a+380>>2]=d;J[a+200>>2]=c|4;break a}XV(a,b,d);continue}MV(a, -b,d);continue}JV(a,b,d);continue}DV(a,b,d);continue}LV(a,b,d);continue}WV(a,b,d);continue}AV(a,b,d);continue}PV(a,b,d);continue}tV(a,b,d);continue}uv(a,b,d);continue}break}Ad(a,59067);B()}Ad(a,59067);B()}Ad(a,59233);B()}}function aqb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if((c|0)!=13){Dc(a,1028,0,0);return 1028}c=J[a+8>>2];if(c-1>>>0>=2){Dc(a,1030,0,0);return 1030}a:{b:{c:{if(!((c|0)!=1|M[a+272>>2]<2)|(K[a+286|0]|K[a+287|0]))break c;if(K[a+300|0]|K[a+289|0])break c;H[a+ -286|0]=1;f=K[a+288|0];if(!(K[a+2253|0]!=7?f:0)){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+316>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+320>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}c=K[d+8|0];H[a+324|0]=c;g=K[d+9|0];H[a+325|0]=g;h=K[d+10|0];H[a+326|0]=h;i=K[d+11|0];H[a+327|0]=i;j=K[d+12|0];H[a+328|0]=j;if(!(1<>>0<=16:0))break b;d:{e:switch(g|0){case 3:if(c>>>0<9)break d;break b;case 0:break d;case 2:case 4:case 6:break e; -default:break a}if(c>>>0>7)break d;break b}if(h){Dc(a,1038,0,0);return 1038}if(i){Dc(a,1039,0,0);return 1039}if(j>>>0>=2){Dc(a,1040,0,0);return 1040}f:{if(!f)break f;f=K[J[J[a+528>>2]+88>>2]+45|0];if((f|0)==(g|0)|(f?(g|0)==3:0)|!g&(f|0)!=3)break f;break a}g:{h:{if(K[a+284|0])break h;J[a+12>>2]=1;H[a+284|0]=1;f=J[a+316>>2];J[a+16>>2]=f;h=J[a+320>>2];J[a+20>>2]=h;i:{j:switch(g-3|0){case 0:c=8;break i;case 1:case 3:break i;default:break j}c=1}H[a+44|0]=c;if(!(f>>>0<=M[a+124>>2]&h>>>0<=M[a+128>>2])){c= -4097;if(!Dc(a,4097,0,0))break g}c=J[a+188>>2];if(!c)break h;if(gc[c|0](a,J[a+16>>2],J[a+20>>2])|0)break h;Dc(a,904,0,0);return 904}if(!K[a+288|0])J[a+48>>2]=J[a+48>>2]+1;c=kN(a);if(c)break g;c=0;if(!K[a+112|0])break g;c=gc[J[b+4>>2]](a,b,e)|0;if(c)break g;b=J[e>>2];c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+32>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[b+36>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+40|0]=K[a+324|0];H[b+41|0]=K[a+ -325|0];H[b+42|0]=K[a+326|0];H[b+43|0]=K[a+327|0];H[b+44|0]=K[a+328|0];c=0}return c|0}Dc(a,1029,0,0);return 1029}Dc(a,1036,0,0);return 1036}Dc(a,1037,0,0);return 1037}function Vfa(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;t=bc-16|0;bc=t;J[c>>2]=a;w=d&512;x=h<<2;while(1){if((u|0)==4){if(K[n+11|0]>>>7|0)e=J[n+4>>2];else e=K[n+11|0]&127;if(e>>>0>1){z=t,A=oi(n),J[z+12>>2]= -A;z=c,A=SP(qy(t+12|0,1),Oo(n),J[c>>2]),J[z>>2]=A}d=d&176;if((d|0)!=16){if((d|0)==32)a=J[c>>2];J[b>>2]=a}bc=t+16|0}else{a:{b:switch(H[i+u|0]){case 0:J[b>>2]=J[c>>2];break a;case 1:J[b>>2]=J[c>>2];h=gc[J[J[g>>2]+44>>2]](g,32)|0;p=J[c>>2];J[c>>2]=p+4;J[p>>2]=h;break a;case 3:if(K[n+11|0]>>>7|0)h=J[n+4>>2];else h=K[n+11|0]&127;if(!h)break a;if(K[n+11|0]>>>7|0)h=J[n>>2];else h=n;h=J[h>>2];p=J[c>>2];J[c>>2]=p+4;J[p>>2]=h;break a;case 2:p=!w;if(K[m+11|0]>>>7|0)h=J[m+4>>2];else h=K[m+11|0]&127;if(p|!h)break a; -z=c,A=SP(oi(m),Oo(m),J[c>>2]),J[z>>2]=A;break a;case 4:break b;default:break a}y=J[c>>2];e=e+x|0;h=e;while(1){c:{if(f>>>0<=h>>>0)break c;if(!(gc[J[J[g>>2]+12>>2]](g,64,J[h>>2])|0))break c;h=h+4|0;continue}break}if((o|0)>0){p=J[c>>2];q=o;while(1){if(!(!q|e>>>0>=h>>>0)){q=q-1|0;h=h-4|0;s=J[h>>2];r=p+4|0;J[c>>2]=r;J[p>>2]=s;p=r;continue}break}d:{if(!q){r=0;break d}r=gc[J[J[g>>2]+44>>2]](g,48)|0;p=J[c>>2]}while(1){s=p+4|0;if((q|0)>0){J[p>>2]=r;q=q-1|0;p=s;continue}break}J[c>>2]=s;J[p>>2]=j}e:{if((e|0)== -(h|0)){p=gc[J[J[g>>2]+44>>2]](g,48)|0;q=J[c>>2];h=q+4|0;J[c>>2]=h;J[q>>2]=p;break e}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;r=H[p|0];if(K[l+11|0]>>>7|0)p=J[l+4>>2];else p=K[l+11|0]&127;r=p?r:-1;p=0;s=0;while(1){if((e|0)!=(h|0)){f:{if((p|0)!=(r|0)){q=p;break f}q=J[c>>2];J[c>>2]=q+4;J[q>>2]=k;q=0;if(K[l+11|0]>>>7|0)r=J[l+4>>2];else r=K[l+11|0]&127;s=s+1|0;if(r>>>0<=s>>>0){r=p;break f}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;if(K[p+s|0]==127){r=-1;break f}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;r=H[p+s|0]}h= -h-4|0;p=J[h>>2];v=J[c>>2];J[c>>2]=v+4;J[v>>2]=p;p=q+1|0;continue}break}h=J[c>>2]}Iu(y,h)}u=u+1|0;continue}break}}function DU(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=bc-32|0;bc=c;a:{b:{if(!K[a+144|0]){c=Kc(c+8|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(c);break a}J[695492]=0;e=a+148|0;b=J[e>>2];d=J[695492];J[695492]=0;c:{d:{if((d|0)==1)break d;e:{f:{g:{h:{if(b&256)break h;J[695492]=0;b=J[e>>2];d=J[695492];J[695492]=0;if((d|0)==1)break d; -if(b&1)break h;J[695492]=0;b=J[e>>2];d=J[695492];J[695492]=0;if((d|0)==1)break d;if(b&8){J[695492]=0;_(5335,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break d}J[695492]=0;Zg(e,0,0,0,14);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;Zg(e,0,0,1,0);b=J[695492];J[695492]=0;if((b|0)==1)break d;f=J[a+152>>2];J[a+152>>2]=0;J[695492]=0;b=c+8|0;ia(5276,b|0,a+108|0,0,-1);d=J[695492];J[695492]=0;if((d|0)==1)break g;J[695492]=0;aa(4993,a+156|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[c+ -8>>2];J[c+8>>2]=0;i:{if(!b)break i;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break e;if(d)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break e}J[695492]=0;aa(4985,a+160|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;b=$(4,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;J[a+152>>2]=b;J[695492]=0;ga(5336,b|0,5337,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;if(!f)break h;qc(f)}bc=c+32|0;return}b=ea(0)|0;break c}b=ea(0)| -0;vc(c+8|0);break c}ea(0)|0;yc();break b}b=ea(0)|0}na(b|0)|0;J[695492]=0;Zg(e,0,0,0,1);c=J[695492];J[695492]=0;j:{if((c|0)==1)break j;J[695492]=0;Zg(e,0,0,4,0);c=J[695492];J[695492]=0;if((c|0)==1)break j;J[695492]=0;c=pa(5213)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j;e=J[J[c>>2]+40>>2];J[695492]=0;ia(e|0,c|0,a|0,4,1);a=J[695492];J[695492]=0;if((a|0)==1)break j;if(f)qc(f);J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c| -0)!=1)break a;ea(0)|0;yc();B()}B()}ba(a|0);B()}function Llb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc+-64|0;bc=c;a:{b:{c:{d=Qc(b);if(d>>>0<2147483632){d:{if(d>>>0<=10){H[c+51|0]=d;e=c+40|0;break d}f=(d|15)+1|0;e=rc(f);J[c+48>>2]=f|-2147483648;J[c+40>>2]=e;J[c+44>>2]=d}f=0;g=tc(e,b,d)+d|0,h=0,H[g|0]=h;J[695492]=0;d=c+28|0;b=H[c+51|0];e=(b|0)<0;ca(1618,d|0,(e?J[c+40>>2]:c+40|0)|0,(e?J[c+44>>2]:b&255)|0);b=J[695492];J[695492]=0;e:{f:{g:{h:{if((b|0)!=1){J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0; -b=0;if(!J[a+20>>2]){a=J[a>>2];J[695492]=0;ca(1628,c+52|0,a|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break h;J[c+24>>2]=J[c+60>>2];a=J[c+56>>2];J[c+16>>2]=J[c+52>>2];J[c+20>>2]=a;f=J[c+20>>2];b=K[c+27|0]}a=b&255;b=b<<24>>24<0;if(b?f:a)break e;d=K[c+39|0];a=d<<24>>24;if(b)break g;if((a|0)<0)break f;J[c+24>>2]=J[c+36>>2];a=J[c+32>>2];J[c+16>>2]=J[c+28>>2];J[c+20>>2]=a;break e}b=Z()|0;break a}b=Z()|0;break b}J[695492]=0;a=(a|0)<0;ga(1629,c+16|0,(a?J[c+28>>2]:c+28|0)|0,(a?J[c+32>>2]:d)|0)|0;a=J[695492]; -J[695492]=0;if((a|0)!=1)break e;break c}J[695492]=0;ga(1630,c+16|0,J[c+28>>2],J[c+32>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break c}J[695492]=0;a=J[689330];b=J[695492];J[695492]=0;if((b|0)!=1){i:{if(!a){b=0;break i}d=J[J[a>>2]+24>>2];b=0;J[695492]=0;a=aa(d|0,a|0,c+16|0)|0;d=J[695492];J[695492]=0;j:{if((d|0)!=1){if(!a)break i;J[c+52>>2]=0;J[c+12>>2]=0;b=J[J[a>>2]+24>>2];J[695492]=0;ca(b|0,a|0,c+52|0,c+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+52>>2];if(a)break j;b=0;break i}break c}b= -zc(1E3);d=J[c+12>>2];H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;H[b+8|0]=a;H[b+9|0]=a>>>8;H[b+10|0]=a>>>16;H[b+11|0]=a>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24;H[b|0]=16;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0}if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+39|0]<0)qc(J[c+28>>2]);if(H[c+51|0]<0)qc(J[c+40>>2]);bc=c- -64|0;return b|0}break c}Id(c+40|0);B()}b=Z()|0;if(H[c+27|0]>=0)break b;qc(J[c+16>>2])}if(H[c+39|0]>=0)break a;qc(J[c+28>>2])}if(H[c+51|0]<0)qc(J[c+40>>2]);ba(b|0);B()}function Qeb(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;o=bc-16|0;bc=o;a:{b:{if(!J[c+88>>2]){J[c+100>>2]=J[d+100>>2];J[c+104>>2]=J[d+104>>2];f=J[d+80>>2];J[c+80>>2]=f;e=J[d+76>>2];H[c+94|0]=7;J[c+76>>2]=e;I[c+92>>1]=256;f=f<<2;J[c+84>>2]=f;f=P(e,f);e=YC(c,f);J[o+12>>2]=e;if(e)break a;wc(J[c+88>>2],0,f);break b}h=J[d+104>>2];i=h-J[d+76>>2]|0;j=J[c+104>>2];l=j-J[c+76>>2]|0;k=J[d+100>>2];m=k+J[d+80>>2]|0;e=J[c+100>>2];f=e+J[c+80>>2]|0;if(!((f|0)<(m|0)|(e|0)>(k|0)|(h|0)>(j|0)))if((i| -0)>=(l|0))break b;h=(h|0)<(j|0)?j:h;l=h-((i|0)>(l|0)?l:i)|0;j=(e|0)<(k|0)?e:k;m=((f|0)>(m|0)?f:m)-j|0;i=m<<2;k=Zd(J[a+100>>2],P(l,i),o+12|0);e=J[o+12>>2];if(e)break a;if(J[c+76>>2]){f=(k+P(i,h-J[c+104>>2]|0)|0)+(J[c+100>>2]-j<<2)|0;e=J[c+88>>2];while(1){f=tc(f,e,J[c+80>>2]<<2)+i|0;e=J[c+84>>2]+e|0;g=g+1|0;if(g>>>0>2])continue;break}}gM(c,k);J[c+100>>2]=j;J[c+104>>2]=h;J[c+80>>2]=m;J[c+84>>2]=i;J[c+76>>2]=l;f=J[c+156>>2];J[f+4>>2]=J[f+4>>2]|1;J[c+72>>2]=1651078259}c:{if((b|0)==65535){if(K[a+ -676|0]){f=K[a+680|0];g=K[a+679|0];n=K[a+678|0];b=K[a+677|0];break c}e=J[a+656>>2];if(e){f=255;g=255;n=255;b=255;if(K[e+(L[a+668>>1]<<1)|0]&2)break c}g=0;f=255;n=0;b=0;break c}a=J[a+672>>2]+(b<<2)|0;f=K[a+3|0];g=K[a+2|0];n=K[a+1|0];b=K[a|0]}e=0;h=J[d+76>>2];if(!h|!J[d+80>>2])break a;k=g&255;l=n&255;m=f&255;a=J[c+84>>2];n=(J[c+88>>2]+P(a,J[c+104>>2]-J[d+104>>2]|0)|0)+(J[d+100>>2]-J[c+100>>2]<<2)|0;i=J[d+88>>2];j=0;f=1;while(1){g=0;e=0;if(f){while(1){e=(g<<2)+n|0;f=(P(m,K[i+g|0])>>>0)/255|0;a=255-f| -0;H[e+1|0]=(((P(a,K[e+1|0])&65535)>>>0)/255|0)+(((P(f,l)&65535)>>>0)/255|0);H[e|0]=(((P(a,K[e|0])&65535)>>>0)/255|0)+(((P(b,f)&65535)>>>0)/255|0);H[e+2|0]=(((P(a,K[e+2|0])&65535)>>>0)/255|0)+(((P(f,k)&65535)>>>0)/255|0);H[e+3|0]=f+(((P(a,K[e+3|0])&65535)>>>0)/255|0);e=J[d+80>>2];g=g+1|0;if(e>>>0>g>>>0)continue;break}h=J[d+76>>2];a=J[c+84>>2]}n=a+n|0;i=J[d+84>>2]+i|0;f=e;j=j+1|0;if(j>>>0>>0)continue;break}e=0}bc=o+16|0;return e|0}function yMa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0, -h=0,i=0,j=0;j=bc-32|0;bc=j;J[a+64>>2]=1;J[a+48>>2]=13;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=b;b=J[b+24>>2];J[a+12>>2]=e;J[a+8>>2]=c;J[a+4>>2]=b;i=O[e>>3];h=i;f=O[e+32>>3];a:{if(!(h>f)){h=O[e+16>>3];if(!(f>h))break a}O[e+32>>3]=h}h=i;f=O[e+48>>3];b:{if(!(h>f)){h=O[e+16>>3];if(!(f>h))break b}O[e+48>>3]=h}h=O[e+8>>3];f=h;g=O[e+40>>3];c:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break c}O[e+40>>3]=f}f=h;g=O[e+56>>3];d:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break d}O[e+56>>3]=f}f=i;g=O[e+72>>3];e:{if(!(f>g)){f=O[e+ -16>>3];if(!(g>f))break e}O[e+72>>3]=f}f=i;g=O[e+88>>3];f:{if(!(f>g)){f=O[e+16>>3];if(!(g>f))break f}O[e+88>>3]=f}f=h;g=O[e+80>>3];g:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break g}O[e+80>>3]=f}f=h;g=O[e+96>>3];h:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break h}O[e+96>>3]=f}f=i;g=O[e+104>>3];i:{if(!(f>g)){f=O[e+16>>3];if(!(g>f))break i}O[e+104>>3]=f}f=i;g=O[e+120>>3];j:{if(!(f>g)){f=O[e+16>>3];if(!(g>f))break j}O[e+120>>3]=f}f=h;g=O[e+112>>3];k:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break k}O[e+112>>3]=f}f=h;g=O[e+ -128>>3];l:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break l}O[e+128>>3]=f}f=i;g=O[e+136>>3];m:{if(!(f>g)){f=O[e+16>>3];if(!(g>f))break m}O[e+136>>3]=f}f=O[e+152>>3];n:{if(!(f>3];if(!(f>i))break n}O[e+152>>3]=i}i=h;f=O[e+144>>3];o:{if(!(f>3];if(!(f>i))break o}O[e+144>>3]=i}f=O[e+160>>3];p:{if(!(f>3];if(!(f>h))break p}O[e+160>>3]=h}c=a+16|0;Ce(d,788922,c);q:{r:{b=J[a+16>>2];s:{if(!(1<>>0<=9:0)){b=J[a+8>>2];J[j+4>>2]=J[(J[c>>2]<<2)+2720608>>2];J[j>>2]=b;xc(1, --1,790243,j);uc(c);J[a+16>>2]=5;break s}e=a+32|0;Ce(d,790504,e);c=J[e>>2];if(1<>>0<=9:0)break r;b=J[a+8>>2];J[j+20>>2]=J[(c<<2)+2720608>>2];J[j+16>>2]=b;xc(1,-1,791891,j+16|0);uc(e)}J[a+64>>2]=0;J[a+48>>2]=5;J[a+32>>2]=5;break q}b=a+48|0;Ce(d,792323,b);t:switch(J[b>>2]-5|0){case 0:case 4:break q;default:break t}uc(b);J[b>>2]=5}bc=j+32|0;return a|0}function uI(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=bc-16|0;bc=i;a:{b:{e=J[c>>2];if((e|0)>2])while(1){J[c>>2]=e+1;c:{d:{e=J[J[b>> -2]+(e<<2)>>2];f=J[e+4>>2];g=K[f|0];if((g-45&255)>>>0>=2)if((g<<24>>24)-48>>>0>9)break d;l=Wf(f);h=J[d>>2];e=J[a+1056>>2];e:{if((h|0)<(e|0)){e=J[a+1048>>2];break e}e=e?e<<1:16;J[a+1056>>2]=e;e=Nd(J[a+1048>>2],e,16);J[a+1048>>2]=e;h=J[d>>2]}J[(h<<4)+e>>2]=40;O[((J[d>>2]<<4)+e|0)+8>>3]=l;J[d>>2]=J[d>>2]+1;break c}if(!sd(e,826732)){e=J[d>>2];f=J[a+1056>>2];f:{if((e|0)<(f|0)){h=J[a+1048>>2];f=e;break f}f=f?f<<1:16;J[a+1056>>2]=f;h=Nd(J[a+1048>>2],f,16);J[a+1048>>2]=h;f=J[d>>2]}J[(f<<4)+h>>2]=42;J[((J[d>> -2]<<4)+h|0)+8>>2]=0;J[d>>2]=J[d>>2]+1;g=0;if(!uI(a,b,c,d))break a;f=J[c>>2];if((f|0)>=J[b+8>>2]){xc(1,-1,810353,0);g=0;break a}J[c>>2]=f+1;f=J[J[b>>2]+(f<<2)>>2];if(!sd(f,810737)){J[(J[a+1048>>2]+(e<<4)|0)+8>>2]=J[d>>2];break c}if(!sd(f,826732)){f=J[d>>2];g=J[a+1056>>2];g:{if((f|0)<(g|0)){h=J[a+1048>>2];g=f;break g}g=g?g<<1:16;J[a+1056>>2]=g;h=Nd(J[a+1048>>2],g,16);J[a+1048>>2]=h;g=J[d>>2]}J[(g<<4)+h>>2]=41;J[((J[d>>2]<<4)+h|0)+8>>2]=0;g=J[d>>2]+1|0;J[d>>2]=g;J[(J[a+1048>>2]+(e<<4)|0)+8>>2]=g;g=0; -if(!uI(a,b,c,d))break a;e=J[c>>2];if((e|0)>=J[b+8>>2]){xc(1,-1,810353,0);g=0;break a}J[c>>2]=e+1;if(!sd(J[J[b>>2]+(e<<2)>>2],811069)){J[(J[a+1048>>2]+(f<<4)|0)+8>>2]=J[d>>2];break c}xc(1,-1,811408,0);g=0;break a}xc(1,-1,811710,0);g=0;break a}g=1;if(!sd(e,811964))break a;if(!sd(e,810737)){xc(1,-1,812294,0);g=0;break a}if(!sd(e,811069))break b;f=40;h=-1;while(1){g=(f+h|0)/2|0;j=sd(e,J[(g<<2)+2205088>>2]);k=(j|0)>0;f=k?f:g;h=k?g:(j|0)<0?h:g;if((f-h|0)>1)continue;break}if(j){J[i>>2]=e;xc(1,-1,812935, -i);g=0;break a}e=J[d>>2];f=J[a+1056>>2];h:{if((e|0)<(f|0)){f=J[a+1048>>2];break h}e=f?f<<1:16;J[a+1056>>2]=e;f=Nd(J[a+1048>>2],e,16);J[a+1048>>2]=f;e=J[d>>2]}J[(e<<4)+f>>2]=h;J[d>>2]=J[d>>2]+1}e=J[c>>2];if((e|0)>2])continue;break}xc(1,-1,810353,0);g=0;break a}xc(1,-1,812586,0);g=0}bc=i+16|0;return g}function nHa(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=bc-16|0;bc=g;a:{b:{if(b){if(!a)break b;if(!d)break a;if(J[a+8>>2]==16)h=J[a+156>>2]+P(J[a+192>>2],5644)|0;else h= -J[a+12>>2];c:{if(!c){Hc(d,1,2357500,0);break c}i=J[a+72>>2];e=1;ld(b,g+8|0,1);f=J[g+8>>2];if(f>>>0>=2){Hc(d,2,2357526,0);break c}if((f+1|0)!=(c|0)){e=0;Hc(d,2,2357500,0);break c}c=J[i+16>>2];d:{if(!c)break d;e=J[h+5584>>2];if(c>>>0>=8){i=c&-8;d=0;while(1){J[e+1076>>2]=0;J[e+8636>>2]=0;J[e+7556>>2]=0;J[e+6476>>2]=0;J[e+5396>>2]=0;J[e+4316>>2]=0;J[e+3236>>2]=0;J[e+2156>>2]=0;e=e+8640|0;d=d+8|0;if((i|0)!=(d|0))continue;break}}c=c&7;if(!c)break d;d=0;while(1){J[e+1076>>2]=0;e=e+1080|0;d=d+1|0;if((c|0)!= -(d|0))continue;break}}c=J[h+5608>>2];if(c){qc(c);J[h+5608>>2]=0;f=J[g+8>>2]}if(!f){e=1;break c}i=0;while(1){b=b+1|0;ld(b,g+12|0,1);e:{if(!J[h+5632>>2])break e;d=J[h+5628>>2];if(J[d>>2]!=J[g+12>>2])break e;f=J[d+4>>2];j=J[a+72>>2];if((f|0)!=J[j+16>>2])break e;c=J[d+8>>2];if(c){e=0;f=P(f,f);if(J[c+16>>2]!=(P(f,J[(J[c>>2]<<2)+2346704>>2])|0))break c;k=_e(f<<2);J[h+5608>>2]=k;if(!k)break c;gc[J[(J[c>>2]<<2)+2357584>>2]](J[c+12>>2],k,f)}c=J[d+12>>2];if(!c)break e;e=0;d=J[j+16>>2];if(J[c+16>>2]!=(P(d,J[(J[c>> -2]<<2)+2346704>>2])|0))break c;f=_e(d<<2);if(!f)break c;gc[J[(J[c>>2]<<2)+2357600>>2]](J[c+12>>2],f,d);c=J[j+16>>2];f:{if(!c)break f;j=c&7;e=J[h+5584>>2];g:{if(c>>>0<8){d=f;break g}k=c&-8;c=0;d=f;while(1){J[e+1076>>2]=J[d>>2];J[e+2156>>2]=J[d+4>>2];J[e+3236>>2]=J[d+8>>2];J[e+4316>>2]=J[d+12>>2];J[e+5396>>2]=J[d+16>>2];J[e+6476>>2]=J[d+20>>2];J[e+7556>>2]=J[d+24>>2];J[e+8636>>2]=J[d+28>>2];e=e+8640|0;d=d+32|0;c=c+8|0;if((k|0)!=(c|0))continue;break}}c=0;if(!j)break f;while(1){J[e+1076>>2]=J[d>>2];e= -e+1080|0;d=d+4|0;c=c+1|0;if((j|0)!=(c|0))continue;break}}qc(f)}e=1;i=i+1|0;if(i>>>0>2])continue;break}}bc=g+16|0;return e|0}fa(2353829,2346358,6306,2357483);B()}fa(2346477,2346358,6307,2357483);B()}fa(2346590,2346358,6308,2357483);B()}function ZE(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=J[b>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!d)break l;g=J[d>>2];if(!g)break l;if(!a){d=c;break j}J[d>>2]=0;d=c;break k}m:{if(!J[J[694782]>>2]){if(!a)break m;if(!c)break a;g=c;while(1){d= -H[e|0];if(d){J[a>>2]=d&57343;a=a+4|0;e=e+1|0;g=g-1|0;if(g)continue;break a}break}J[a>>2]=0;J[b>>2]=0;return c-g|0}d=c;if(!a)break i;break g}return Qc(e)|0}f=1;break g}f=0;break h}f=1}while(1){if(!f){f=K[e|0]>>>3|0;if((f-16|f+(g>>26))>>>0>7)break f;f=e+1|0;n:{if(!(g&33554432))break n;if((K[f|0]&192)!=128){e=e-1|0;break d}f=e+2|0;if(!(g&524288))break n;if((K[f|0]&192)!=128){e=e-1|0;break d}f=e+3|0}e=f;d=d-1|0;f=1;continue}while(1){g=K[e|0];o:{if(e&3|g-1>>>0>126)break o;g=J[e>>2];if((g|g-16843009)&-2139062144)break o; -while(1){d=d-4|0;g=J[e+4>>2];e=e+4|0;if(!((g-16843009|g)&-2139062144))continue;break}}f=g&255;if(f-1>>>0<=126){d=d-1|0;e=e+1|0;continue}break}f=f-194|0;if(f>>>0>50)break e;e=e+1|0;g=J[(f<<2)+2600992>>2];f=0;continue}}while(1){if(!f){if(!d)break a;while(1){p:{f=K[e|0];h=f-1|0;q:{r:{if(h>>>0>126){g=f;break r}if(e&3|d>>>0<5)break q;s:{while(1){g=J[e>>2];if((g|g-16843009)&-2139062144)break s;J[a>>2]=g&255;J[a+4>>2]=K[e+1|0];J[a+8>>2]=K[e+2|0];J[a+12>>2]=K[e+3|0];a=a+16|0;e=e+4|0;d=d-4|0;if(d>>>0>4)continue; -break}g=K[e|0]}f=g&255;h=f-1|0}if(h>>>0>126)break p}J[a>>2]=f;a=a+4|0;e=e+1|0;d=d-1|0;if(d)continue;break a}break}f=f-194|0;if(f>>>0>50)break e;e=e+1|0;g=J[(f<<2)+2600992>>2];f=1;continue}i=K[e|0];f=i>>>3|0;if((f-16|f+(g>>26))>>>0>7)break f;t:{u:{h=e+1|0;f=i-128|g<<6;v:{if((f|0)>=0)break v;i=K[h|0]-128|0;if(i>>>0>63)break u;h=e+2|0;f=i|f<<6;if((f|0)>=0)break v;h=K[h|0]-128|0;if(h>>>0>63)break u;f=h|f<<6;h=e+3|0}e=h;J[a>>2]=f;d=d-1|0;a=a+4|0;break t}J[694731]=25;e=e-1|0;break c}f=0;continue}}e=e-1| -0;if(g)break d;g=K[e|0]}if(g&255)break d;if(a){J[a>>2]=0;J[b>>2]=0}return c-d|0}J[694731]=25;if(!a)break b}J[b>>2]=e}return-1}J[b>>2]=e;return c|0}function n1a(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(K[b+8|0])break a;d=J[b+12>>2];j=J[a+24>>2];k=K[j+200|0];if((k|0)==219){d=d&-17;J[b+12>>2]=d;J[a+28>>2]=d}b:{if(J[j+40>>2]|!(d&16))break b;c:{d=J[a+24>>2];g=K[d+200|0];e=g;if((e|0)!=12?e:0)break c;e=J[d+36>>2];if(J[e+148>>2]!=-2147483638|J[e+84>>2]!=-2147483515)break c;e=J[d+ -188>>2];h=J[d+52>>2];f=L[h>>1];d:{if(!g){f=h+(f<<1)|0;if(L[(e+(L[f>>1]<<1)|0)+20>>1]!=3877)break c;if(L[(e+(L[f+16>>1]<<1)|0)+10>>1]==3861)break d;break c}f=h+(f<<2)|0;g=J[f>>2];if(!(g&67108864)|L[(e+(g<<5&2097120)|0)+20>>1]!=37)break c;f=J[f+32>>2];if(!(f&2097152)|L[(e+(f<<5&2097120)|0)+10>>1]!=21)break c}i=J[d+196>>2];if(i){f=Wh((i+(K[d+28|0]<<10)|0)+80|0);if(!f){J[c>>2]=7;return}c=K[d+28|0]<<10;g=tc(f,J[d+36>>2],c);J[g+84>>2]=-2147483638;J[g+148>>2]=-2147483515;f=tc(c+g|0,e,i);c=L[h>>1];e:{if(!K[d+ -200|0]){c=h+(c<<1)|0;I[(f+(L[c>>1]<<1)|0)+20>>1]=3861;I[(f+(L[c+16>>1]<<1)|0)+10>>1]=3877;break e}c=h+(c<<2)|0;I[(f+(J[c>>2]<<5&2097120)|0)+20>>1]=21;I[(f+(J[c+32>>2]<<5&2097120)|0)+10>>1]=37}i=ff(f+i|0,J[d+12>>2]+4|0);e=Qc(i)+i|0;c=K[732123]|K[732124]<<8|(K[732125]<<16|K[732126]<<24);h=K[732119]|K[732120]<<8|(K[732121]<<16|K[732122]<<24);H[e|0]=h;H[e+1|0]=h>>>8;H[e+2|0]=h>>>16;H[e+3|0]=h>>>24;H[e+4|0]=c;H[e+5|0]=c>>>8;H[e+6|0]=c>>>16;H[e+7|0]=c>>>24;c=K[732127]|K[732128]<<8;H[e+8|0]=c;H[e+9|0]=c>>> -8;if(!J[d+40>>2]){J[d+40>>2]=g;J[d+216>>2]=i;J[d+192>>2]=f;break b}Gf(g);break b}J[c>>2]=3;return}if(J[c>>2]>0)break a;c=J[b+12>>2]&-17;J[b+12>>2]=c;J[a+28>>2]=c}b=J[b+20>>2];f:{g:{if(Be(b,729058)){d=32768;if(Be(b,729698))break g;if(Be(b,730157))break g;break f}d=4096;if(Be(b,730567))break g;if(Be(b,730937))break g;d=8192;if(Be(b,731314))break g;if(Be(b,731545))break g;d=16384;if(Be(b,731808))break g;if(!Be(b,731929))break f}J[a+28>>2]=J[a+28>>2]|d}if((k|0)==12)H[a+60|0]=3;b=J[j+224>>2];if(!b)break a; -b=K[b+68|0]+((k|0)==12)<<24>>24;if((b|0)<=H[a+60|0])break a;H[a+60|0]=b}}function MYa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;u=bc-256|0;bc=u;p=J[a+332>>2];b=J[b+84>>2];a=u;g=8;while(1){a:{b:{h=L[c+32>>1];f=I[c+16>>1];if((h|f)&65535)break b;h=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;h=P(J[b>>2],I[c>>1]);J[a+192>>2]=h;J[a+160>>2]=h;J[a+128>>2]=h;J[a+96>>2]=h;J[a+64>>2]=h;J[a+32>>2]=h;J[a>> -2]=h;f=56;break a}j=P(J[b+192>>2],I[c+96>>1]);l=P(J[b+64>>2],h<<16>>16);h=j+l|0;k=P(J[b+128>>2],I[c+64>>1]);m=P(J[b>>2],I[c>>1]);q=k+m|0;i=h+q|0;n=P(J[b+160>>2],I[c+80>>1]);o=P(J[b+96>>2],I[c+48>>1]);r=n+o|0;s=P(J[b+224>>2],I[c+112>>1]);t=P(f,J[b+32>>2]);v=s+t|0;f=r+v|0;J[a+224>>2]=i-f;J[a>>2]=f+i;n=n-o|0;o=t-s|0;i=P(n+o|0,473)>>8;j=(P(l-j|0,362)>>8)-h|0;l=m-k|0;k=j+l|0;f=i+((P(n,-669)>>8)-f|0)|0;J[a+192>>2]=k-f;J[a+32>>2]=f+k;j=l-j|0;f=(P(v-r|0,362)>>8)-f|0;J[a+160>>2]=j-f;J[a+64>>2]=f+j;f=f+((P(o, -277)>>8)-i|0)|0;h=q-h|0;J[a+128>>2]=f+h;h=h-f|0;f=24}J[(f<<2)+a>>2]=h;c=c+2|0;b=b+4|0;a=a+4|0;h=g>>>0>1;g=g-1|0;if(h)continue;break}b=p+128|0;c=u;h=0;while(1){a=J[(h<<2)+d>>2]+e|0;c:{d:{g=J[c+8>>2];f=J[c+4>>2];if(g|f)break d;g=0;if(J[c+12>>2]|J[c+16>>2]|(J[c+20>>2]|J[c+24>>2]))break d;if(J[c+28>>2])break d;g=K[b+(J[c>>2]>>>5&1023)|0];H[a+6|0]=g;H[a+5|0]=g;H[a+4|0]=g;H[a+3|0]=g;H[a+2|0]=g;H[a+1|0]=g;H[a|0]=g;f=7;break c}j=J[c+28>>2];l=j+f|0;k=J[c+12>>2];m=J[c+20>>2];q=k+m|0;i=l+q|0;n=J[c+24>>2];p= -n+g|0;o=J[c+16>>2];r=J[c>>2];s=o+r|0;t=p+s|0;H[a|0]=K[b+(i+t>>>5&1023)|0];H[a+7|0]=K[b+(t-i>>>5&1023)|0];k=m-k|0;j=f-j|0;f=P(k+j|0,473)>>8;i=f+((P(k,-669)>>8)-i|0)|0;k=(P(g-n|0,362)>>8)-p|0;m=r-o|0;g=k+m|0;H[a+1|0]=K[b+(i+g>>>5&1023)|0];H[a+6|0]=K[b+(g-i>>>5&1023)|0];g=(P(l-q|0,362)>>8)-i|0;i=m-k|0;H[a+2|0]=K[b+(g+i>>>5&1023)|0];H[a+5|0]=K[b+(i-g>>>5&1023)|0];g=g+((P(j,277)>>8)-f|0)|0;f=s-p|0;H[a+4|0]=K[b+(g+f>>>5&1023)|0];g=K[b+(f-g>>>5&1023)|0];f=3}H[f+a|0]=g;c=c+32|0;h=h+1|0;if((h|0)!=8)continue; -break}bc=u+256|0}function v8a(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=bc-128|0;bc=d;a:{b:{c:{e=a+96|0;d:{if(!K[e+1468|0]){a=a+1668|0;J[b+120>>2]=0;e:{if(!J[b+60>>2])break e;f=J[a+20>>2];g=J[b+104>>2];e=(J[b+112>>2]-g|0)+2|0;f:{if(e>>>0<=M[a+24>>2])break f;if(f)qc(f);J[a+24>>2]=e;f=rc(e>>>0>536870911?-1:e<<3);J[a+20>>2]=f;if((e|0)==J[a+16>>2])break f;h=J[a+12>>2];if(h){qc(h);f=J[a+20>>2]}J[a+16>>2]=e;i=a,j=rc(e),J[i+12>>2]=j}J[a+28>>2]=f;J[a>>2]=g;J[a+4>>2]=2147483632;if(!Y2(b,a))break e; -e=c+4|0;while(1){u3(a,J[c>>2],e);if(Y2(b,a))continue;break}}break d}if(!K[e+1469|0]){J[d+112>>2]=0;J[d+116>>2]=0;J[d+120>>2]=0;J[d+124>>2]=0;J[d+104>>2]=0;J[d+108>>2]=0;J[d+96>>2]=2147483632;J[d+80>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+64>>2]=2147483632;J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[695492]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;oa(2337,b|0,e|0,d- -64|0,d+32|0,d+96|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[d+52>> -2];if(a)qc(a);a=J[d+40>>2];if(a)qc(a);a=J[d+84>>2];if(a)qc(a);a=J[d+72>>2];if(a)qc(a);a=J[d+116>>2];if(a)qc(a);a=J[d+104>>2];if(!a)break d;qc(a);break d}J[d+112>>2]=0;J[d+116>>2]=0;J[d+120>>2]=0;J[d+124>>2]=0;J[d+104>>2]=0;J[d+108>>2]=0;J[d+96>>2]=2147483632;J[d+80>>2]=0;J[d+84>>2]=0;J[d+88>>2]=0;J[d+92>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;J[d+64>>2]=2147483632;J[d+48>>2]=0;J[d+52>>2]=0;J[d+56>>2]=0;J[d+60>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=2147483632;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=0;J[d+ -28>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2147483632;e=J[a+1560>>2];J[695492]=0;oa(2338,b|0,(((e|0)==1?1216:1340)+a|0)+96|0,d- -64|0,d+32|0,d+96|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[d+52>>2];if(a)qc(a);a=J[d+40>>2];if(a)qc(a);a=J[d+84>>2];if(a)qc(a);a=J[d+72>>2];if(a)qc(a);a=J[d+116>>2];if(a)qc(a);a=J[d+104>>2];if(!a)break d;qc(a)}bc=d+128|0;return}a=Z()|0;break a}a=Z()|0;ee(d)}ee(d+32|0);ee(d- -64|0);ee(d+96|0);ba(a|0);B()}function FZ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0, -l=0;d=bc-2128|0;bc=d;e=d+2096|0;J[e>>2]=0;J[e+4>>2]=0;e=d+2104|0;J[e>>2]=0;J[e+4>>2]=0;H[d+2112|0]=0;J[d+2080>>2]=0;J[d+2084>>2]=0;J[d+2088>>2]=0;J[d+2092>>2]=0;wc(d+1040|0,0,1028);f=wc(d,255,1028);J[c+1024>>2]=1;i=1E9;j=-1;while(1){d=J[(h<<2)+c>>2];e=!d|(d|0)>(i|0);i=e?i:d;j=e?j:h;g=1E9;d=0;e=-1;h=h+1|0;if((h|0)!=257)continue;while(1){h=J[(d<<2)+c>>2];l=!h|(d|0)==(j|0)|(g|0)<(h|0);i=l?e:d;e=d|1;if((e|0)!=257){k=J[(e<<2)+c>>2];g=l?g:h;h=!k|(e|0)==(j|0)|(k|0)>(g|0);g=h?g:k;e=h?i:e;d=d+2|0;continue}break}d= -0;if((i|0)<0){while(1){c=J[(f+1040|0)+(d<<2)>>2];if(c){if((c|0)>=33){e=J[a>>2];J[e+20>>2]=40;gc[J[e>>2]](a)}c=c+(f+2080|0)|0;H[c|0]=K[c|0]+1}d=d+1|0;if((d|0)!=257)continue;break}c=32;while(1){i=(f+2080|0)+c|0;j=K[i|0];a:{if(!j){a=c-1|0;break a}g=c-2|0;a=c-1|0;h=a+(f+2080|0)|0;while(1){d=g;while(1){e=d;d=d-1|0;k=e+(f+2080|0)|0;if(!K[k|0])continue;break}H[i|0]=j-2;H[h|0]=K[h|0]+1;d=(e+f|0)+2081|0;H[d|0]=K[d|0]+2;H[k|0]=K[k|0]-1;j=K[i|0];if(j)continue;break}}d=c>>>0>17;c=a;if(d)continue;break}d=16;while(1){a= -(f+2080|0)+d|0;d=d-1|0;c=K[a|0];if(!c)continue;break}H[a|0]=c-1;H[b+16|0]=K[f+2096|0];a=J[f+2092>>2];J[b+8>>2]=J[f+2088>>2];J[b+12>>2]=a;a=J[f+2084>>2];J[b>>2]=J[f+2080>>2];J[b+4>>2]=a;e=0;g=1;while(1){d=0;while(1){if(J[(f+1040|0)+(d<<2)>>2]==(g|0)){H[(b+e|0)+17|0]=d;e=e+1|0}a=d|1;if(J[(f+1040|0)+(a<<2)>>2]==(g|0)){H[(b+e|0)+17|0]=a;e=e+1|0}d=d+2|0;if((d|0)!=256)continue;break}g=g+1|0;if((g|0)!=33)continue;break}J[b+276>>2]=0;bc=f+2128|0;return}d=j<<2;e=d+c|0;l=e;k=J[e>>2];g=i<<2;e=g+c|0;J[l>>2]= -k+J[e>>2];J[e>>2]=0;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;e=d+f|0;d=J[e>>2];if((d|0)>=0)while(1){d=d<<2;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;e=d+f|0;d=J[e>>2];if((d|0)>=0)continue;break}J[e>>2]=i;d=g+(f+1040|0)|0;J[d>>2]=J[d>>2]+1;h=0;i=1E9;j=-1;d=J[f+g>>2];if((d|0)<0)continue;while(1){d=d<<2;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;d=J[d+f>>2];if((d|0)>=0)continue;break}continue}}function yI(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=bc-832|0;bc=e;f=rc(12);J[695492]=0;J[f+8>>2]=-1;J[f+4>>2]=d;J[f>>2]=c;c=J[695492]; -J[695492]=0;if((c|0)!=1){c=e+576|0;lf(f,c,e+60|0);d=e+320|0;if(lf(f,d,e+56|0)){h=d|1;d=c|1;while(1){a:{if(J[e+320>>2]==1667593077&J[e+324>>2]==7364973){if(K[e+576|0]==47){c=rc(8);J[695492]=0;g=aa(3182,c|0,d|0)|0;i=J[695492];J[695492]=0;b:{c:{if((i|0)!=1){if(!b)break c;c=QZ(b,J[a>>2],g);break b}a=Z()|0;qc(c);ba(a|0);B()}c=VY(J[689612],J[a>>2],g)}qc(Rc(g));if(c){J[a+8>>2]=J[c+8>>2];g=J[c+16>>2];if(g)zI(a,J[a+16>>2],g);kp(c)}}lf(f,e+576|0,e+60|0);break a}c=e+576|0;if(!Wc(c,784663,7)){j=a,k=Zf(e+320| -0),J[j+12>>2]=k;lf(f,c,e+60|0);break a}if(!Wc(e+320|0,785331,13)){d:{if(!lf(f,e+576|0,e+60|0))break d;while(1){if(!Wc(e+576|0,786317,11))break d;e:{c=e+320|0;if(lf(f,c,e+56|0))if(Wc(c,786317,11))break e;xc(1,-1,787141,0);break d}f:{g:{if(K[e+576|0]!=60)break g;c=J[e+60>>2];if(c&1|(c|0)<4)break g;c=c+e|0;if(K[c+575|0]!=62)break g;H[c+575|0]=0;J[e>>2]=e+40;if((Og(d,787884,e)|0)!=1)break g;c=(J[e+60>>2]-2|0)/2|0;J[e+60>>2]=c;g=J[e+40>>2];RZ(a,g,g,c,Zf(e+320|0));break f}xc(1,-1,787141,0)}if(lf(f,e+576| -0,e+60|0))continue;break}}lf(f,e+576|0,e+60|0);break a}if(!Wc(e+320|0,789015,14)){h:{if(!lf(f,e+576|0,e+60|0))break h;while(1){if(!Wc(e+576|0,789929,12))break h;i:{c=e+320|0;j:{if(!lf(f,c,e+56|0))break j;if(!Wc(c,789929,12))break j;c=e- -64|0;if(!lf(f,c,e+52|0))break j;if(Wc(c,789929,12))break i}xc(1,-1,790555,0);break h}k:{if(K[e+576|0]!=60|K[e+320|0]!=60)break k;c=J[e+60>>2];if(c&1|(c|0)<4|(c|0)!=J[e+56>>2])break k;c=c-1|0;H[c+(e+576|0)|0]=0;H[c+(e+320|0)|0]=0;J[e+32>>2]=e+48;Og(d,787884,e+32|0); -J[e+16>>2]=e+44;Og(h,787884,e+16|0);c=(J[e+60>>2]-2|0)/2|0;J[e+60>>2]=c;RZ(a,J[e+48>>2],J[e+44>>2],c,Zf(e- -64|0))}if(lf(f,e+576|0,e+60|0))continue;break}}lf(f,e+576|0,e+60|0);break a}ff(e+576|0,e+320|0)}if(lf(f,e+320|0,e+56|0))continue;break}}qc(f);bc=e+832|0;return}a=Z()|0;qc(f);ba(a|0);B()}function gha(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;a=bc-384|0;bc=a;J[a+376>>2]=c;J[a+380>>2]=b;TE(a+220|0,d,a+240|0,a+236|0,a+232|0);b=Se(a+208|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)- -1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+204>>2]=c;J[a+28>>2]=a+32;J[a+24>>2]=0;H[a+23|0]=1;H[a+22|0]=69;while(1){d:{J[695492]=0;d=aa(6645,a+380|0,a+376|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+204>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]= -0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+204>>2]=d+c}J[695492]=0;d=a+380|0;g=$(6646,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=vy(g,a+23|0,a+22|0,c,a+204|0,J[a+236>>2],J[a+232>>2],a+220|0,a+32|0,a+28|0,a+24|0,a+240|0);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6648, -d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+231|0]>>>7|0)d=J[a+224>>2];else d=K[a+231|0]&127;e:{if(!d|!K[a+23|0])break e;d=J[a+28>>2];if((d-(a+32|0)|0)>159)break e;J[a+28>>2]=d+4;J[d>>2]=J[a+24>>2]}J[695492]=0;ia(6637,a|0,c|0,J[a+204>>2],e|0);c=J[695492];J[695492]=0;f:{if((c|0)==1)break f;c=J[a+8>>2];d=J[a+12>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[f+8>>2]=c;J[f+12>>2]=d;J[695492]=0;Ah(a+220|0,a+32|0,J[a+28>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f; -J[695492]=0;c=aa(6645,a+380|0,a+376|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+380>>2];ad(b);ad(a+220|0);bc=a+384|0;break a}}c=Z()|0;ad(b);ad(a+220|0);ba(c|0);B()}return c|0}function Zfa(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;u=bc-16|0;bc=u;J[c>>2]=a;x=d&512;while(1){if((v|0)==4){if(K[n+11|0]>>>7|0)e=J[n+4>>2];else e=K[n+11|0]&127; -if(e>>>0>1){z=u,A=oi(n),J[z+12>>2]=A;z=c,A=TP(ry(u+12|0,1),Qo(n),J[c>>2]),J[z>>2]=A}d=d&176;if((d|0)!=16){if((d|0)==32)a=J[c>>2];J[b>>2]=a}bc=u+16|0}else{a:{b:switch(H[i+v|0]){case 0:J[b>>2]=J[c>>2];break a;case 1:J[b>>2]=J[c>>2];p=gc[J[J[g>>2]+28>>2]](g,32)|0;q=J[c>>2];J[c>>2]=q+1;H[q|0]=p;break a;case 3:if(K[n+11|0]>>>7|0)p=J[n+4>>2];else p=K[n+11|0]&127;if(!p)break a;if(K[n+11|0]>>>7|0)p=J[n>>2];else p=n;p=K[p|0];q=J[c>>2];J[c>>2]=q+1;H[q|0]=p;break a;case 2:q=!x;if(K[m+11|0]>>>7|0)p=J[m+4>>2]; -else p=K[m+11|0]&127;if(q|!p)break a;z=c,A=TP(oi(m),Qo(m),J[c>>2]),J[z>>2]=A;break a;case 4:break b;default:break a}y=J[c>>2];e=e+h|0;r=e;while(1){c:{if(f>>>0<=r>>>0)break c;p=H[r|0];if((p|0)>=0)p=(J[J[g+8>>2]+((p&255)<<2)>>2]&64)!=0;else p=0;if(!p)break c;r=r+1|0;continue}break}p=o;if((p|0)>0){while(1){if(!(!p|e>>>0>=r>>>0)){p=p-1|0;r=r-1|0;q=K[r|0];s=J[c>>2];J[c>>2]=s+1;H[s|0]=q;continue}break}if(p)q=gc[J[J[g>>2]+28>>2]](g,48)|0;else q=0;while(1){s=J[c>>2];J[c>>2]=s+1;if((p|0)>0){H[s|0]=q;p=p-1| -0;continue}break}H[s|0]=j}d:{if((e|0)==(r|0)){p=gc[J[J[g>>2]+28>>2]](g,48)|0;q=J[c>>2];J[c>>2]=q+1;H[q|0]=p;break d}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;q=H[p|0];if(K[l+11|0]>>>7|0)p=J[l+4>>2];else p=K[l+11|0]&127;q=p?q:-1;p=0;t=0;while(1){if((e|0)==(r|0))break d;e:{if((p|0)!=(q|0)){s=p;break e}q=J[c>>2];J[c>>2]=q+1;H[q|0]=k;s=0;if(K[l+11|0]>>>7|0)q=J[l+4>>2];else q=K[l+11|0]&127;t=t+1|0;if(q>>>0<=t>>>0){q=p;break e}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;if(K[p+t|0]==127){q=-1;break e}if(K[l+11|0]>>> -7|0)p=J[l>>2];else p=l;q=H[p+t|0]}r=r-1|0;p=K[r|0];w=J[c>>2];J[c>>2]=w+1;H[w|0]=p;p=s+1|0;continue}}No(y,J[c>>2])}v=v+1|0;continue}break}}function wha(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;a=bc-272|0;bc=a;J[a+264>>2]=c;J[a+268>>2]=b;WE(a+208|0,d,a+224|0,a+223|0,a+222|0);b=Se(a+196|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+192>>2]=c;J[a+28>> -2]=a+32;J[a+24>>2]=0;H[a+23|0]=1;H[a+22|0]=69;while(1){d:{J[695492]=0;d=aa(6531,a+268|0,a+264|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+192>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492]; -J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+192>>2]=d+c}J[695492]=0;d=a+268|0;g=$(6532,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=xy(g,a+23|0,a+22|0,c,a+192|0,H[a+223|0],H[a+222|0],a+208|0,a+32|0,a+28|0,a+24|0,a+224|0);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+219|0]>>>7|0)d=J[a+212>>2];else d=K[a+219|0]&127;e:{if(!d|!K[a+23|0])break e; -d=J[a+28>>2];if((d-(a+32|0)|0)>159)break e;J[a+28>>2]=d+4;J[d>>2]=J[a+24>>2]}J[695492]=0;ia(6637,a|0,c|0,J[a+192>>2],e|0);c=J[695492];J[695492]=0;f:{if((c|0)==1)break f;c=J[a+8>>2];d=J[a+12>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[f+8>>2]=c;J[f+12>>2]=d;J[695492]=0;Ah(a+208|0,a+32|0,J[a+28>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+268|0,a+264|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+268>>2];ad(b);ad(a+208|0);bc=a+272|0;break a}}c= -Z()|0;ad(b);ad(a+208|0);ba(c|0);B()}return c|0}function yya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-32|0;bc=d;a:{if(!K[a+144|0]){a=Kc(d+8|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}J[695492]=0;f=a+148|0;Zg(f,0,0,256,0);c=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{if((c|0)==1)break g;h:{i:{j:{k:{c=J[a+120>>2];if(c)while(1){e=J[c+8>>2];J[695492]=0;da(5227,e|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break k;c=J[c>>2];if(c)continue; -break}if(!b)break h;J[d+8>>2]=0;c=J[a+120>>2];if(!c)break i;break j}c=ea(0)|0;break b}while(1){b=J[c+8>>2];J[695492]=0;b=J[b+148>>2];e=J[695492];J[695492]=0;l:{if((e|0)!=1){if(!(b&1)){c=J[c>>2];if(!c)break l;continue}J[695492]=0;aa(4993,d+8|0,c+8|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break l;break d}break d}b=J[d+8>>2];if(!b)break i;J[695492]=0;da(5227,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[d+8>>2];J[d+8>>2]=0;m:{if(!b)break m;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492]; -J[695492]=0;if((e|0)==1)break e;if(c)break m;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break e}J[d+8>>2]=0;c=J[a+120>>2];if(c)continue;break}}if(!K[a+144|0]){J[695492]=0;a=ja(5018,d+8|0,2382727,2374155,164,2402264,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;c=ea(0)|0;Fc(a);break b}J[695492]=0;a=J[f>>2];b=J[695492];J[695492]=0;if((b|0)==1)break g;if(!(a&1))break h;while(1){J[695492]=0;a=J[f>>2];b=J[695492];J[695492]= -0;if((b|0)==1)break c;if(a&1)continue;break}}J[695492]=0;Zg(f,0,0,0,256);a=J[695492];J[695492]=0;if((a|0)!=1)break f}c=ea(0)|0;break b}bc=d+32|0;return}ea(0)|0;yc();break a}c=ea(0)|0;vc(d+8|0);break b}c=ea(0)|0}na(c|0)|0;J[695492]=0;Zg(f,0,0,0,256);a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break a}a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1){ba(a|0);B()}ea(0)|0;yc();B()}B()}function h0(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=bc+-64| -0;bc=g;a:{if(a){f=J[a+12>>2];if(f)while(1){if(J[f+4>>2]==14){f=0;break a}f=J[f+24>>2];if(f)continue;break}f=0;if(J[a+44>>2])break a}e=gc[J[659447]](64)|0;if(!e){J[g>>2]=3231;Cc(0,0,0,0,0,2,2,3,3231,0,0,0,32863,g);break a}J[e>>2]=0;J[e+4>>2]=0;J[e+56>>2]=0;J[e+60>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=14;if(b){f=b;while(1){h=f;f=f+1|0;if(K[h|0])continue;break}f=0;b:{h= -h-b|0;if((h|0)>=0){i=gc[J[659450]](h+1|0)|0;if(i)break b;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[e+8>>2]=0;J[g+48>>2]=3231;Cc(0,0,0,0,0,2,2,3,3231,0,0,0,32863,g+48|0);gc[J[659451]](e);break a}b=tc(i,b,h);H[b+h|0]=0;J[e+8>>2]=b}if(c){f=c;while(1){b=f;f=b+1|0;if(K[b|0])continue;break}c:{b=b-c|0;if((b|0)>=0){f=gc[J[659450]](b+1|0)|0;if(f)break c;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[e+52>>2]=0;J[g+32>>2]=3231;Cc(0,0,0,0,0,2,2,3,3231,0,0,0,32863,g+32|0);a=J[e+8>>2];if(a)gc[J[659451]](a);f=0;gc[J[659451]](e); -break a}h=b;b=tc(f,c,b);H[h+b|0]=0;J[e+52>>2]=b}if(d){b=d;while(1){c=b;b=b+1|0;if(K[c|0])continue;break}d:{b=c-d|0;if((b|0)>=0){c=gc[J[659450]](b+1|0)|0;if(c)break d;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[e+56>>2]=0;J[g+16>>2]=3231;Cc(0,0,0,0,0,2,2,3,3231,0,0,0,32863,g+16|0);a=J[e+8>>2];if(a)gc[J[659451]](a);a=J[e+52>>2];if(a)gc[J[659451]](a);f=0;gc[J[659451]](e);break a}f=b;b=tc(c,d,b);H[f+b|0]=0;J[e+56>>2]=b}if(a){J[a+44>>2]=e;J[e+32>>2]=a;J[e+20>>2]=a;f=J[a+12>>2];e:{if(!f){J[a+12>>2]=e;b=a+16| -0;break e}b=a+12|0;if(J[a+4>>2]!=13){f:{while(1){if(J[f+4>>2]==1)break f;f=J[f+24>>2];if(f)continue;break}b=J[a+16>>2];J[e+28>>2]=b;J[b+24>>2]=e;J[e+24>>2]=0;b=a+16|0;break e}J[e+24>>2]=f;a=J[f+28>>2];J[e+28>>2]=a;J[(a?a+24|0:b)>>2]=e;b=f+28|0;break e}J[f+28>>2]=e;J[e+24>>2]=f}J[b>>2]=e}g:{if(!J[689540])break g;a=J[689537];if(!a)break g;gc[a|0](e)}f=e}bc=g- -64|0;return f}function Xla(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;J[a>>2]=0;H[a+11|0]=0;J[695492]=0;e=$(2225,a+16|0)|0;b=J[695492]; -J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((b|0)!=1){I[a+408>>1]=0;J[a+400>>2]=0;J[a+404>>2]=0;J[a+384>>2]=0;H[a+395|0]=0;J[695492]=0;b=$(4,48)|0;d=J[695492];J[695492]=0;if((d|0)==1)break k;J[a+412>>2]=b;J[a+416>>2]=9;J[a+420>>2]=-2147483636;J[b+32>>2]=J[607060];d=J[607059];J[b+24>>2]=J[607058];J[b+28>>2]=d;d=J[607057];J[b+16>>2]=J[607056];J[b+20>>2]=d;d=J[607055];J[b+8>>2]=J[607054];J[b+12>>2]=d;d=J[607053];J[b>>2]=J[607052];J[b+4>>2]=d;J[b+36>>2]=0;J[694685]=J[694685]+1;l:{if(H[a+11|0]>=0){J[695492]= -0;ga(1630,a|0,b|0,9)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break l;break d}J[695492]=0;ga(1629,a|0,b|0,9)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d}b=J[694685];if((b|0)>9)break f;J[695492]=0;d=c+4|0;da(6088,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break j;J[695492]=0;b=ga(2277,d|0,0,2428248)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[c+24>>2]=J[b+8>>2];d=J[b+4>>2];J[c+16>>2]=J[b>>2];J[c+20>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;b=K[c+27|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+ -16>>2]:c+16|0)|0,(d?J[c+20>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+15|0]>=0)break e;qc(J[c+4>>2]);break e}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break g}b=Z()|0;if(H[c+27|0]>=0)break g;qc(J[c+16>>2])}if(H[c+15|0]>=0)break c;qc(J[c+4>>2]);break c}J[695492]=0;d=c+16|0;da(6088,d|0,b|0);b=J[695492];J[695492]=0;m:{if((b|0)!=1){J[695492]=0;f=d;b=K[c+27|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+16>>2]:f)|0,(d?J[c+20>>2]:b)|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break m;if(H[c+27|0]>=0)break e;qc(J[c+16>>2]);break e}b=Z()|0;break c}b=Z()|0;if(H[c+27|0]>=0)break c;qc(J[c+16>>2]);break c}bc=c+32|0;return a|0}b=Z()|0}if(H[a+423|0]>=0)break b;qc(J[a+412>>2])}if(H[a+395|0]<0)qc(J[a+384>>2]);ln(e)}if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}function IZa(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;f=bc-16|0;bc=f;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{g=J[b>>2];c:{if(!g)break c;d=K[c+11|0];h=d<<24>>24;i=d;d=(h|0)<0;d:{if(((d? -J[c+4>>2]:i)|0)==1){g=0;d=gd(d?J[c>>2]:c,768192,1);h=J[b>>2];h=J[h+28>>2]-J[h+24>>2]>>2;if((h|0)<=0)break c;if(d)break d;e:{f:{while(1){g:{J[695492]=0;J[f+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break g;c=J[f+12>>2];d=J[J[J[b>>2]+24>>2]+(g<<2)>>2];J[f+12>>2]=d;if(d){e=J[J[d>>2]+8>>2];J[695492]=0;$(e|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f}if(c){d=J[J[c>>2]+12>>2];J[695492]=0;$(d|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f}d=J[a+4>>2];h:{if((d|0)!=J[a+8>>2]){J[695492]=0; -aa(3094,d|0,f+12|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[a+4>>2]=d+4;break h}J[695492]=0;da(3096,a|0,f+12|0);c=J[695492];J[695492]=0;if((c|0)==1)break f}mh(f+12|0);g=g+1|0;if((h|0)!=(g|0))continue;break c}break}c=Z()|0;break a}c=Z()|0;break b}c=Z()|0;J[a+4>>2]=d;break b}h=J[g+28>>2]-J[g+24>>2]>>2;if((h|0)<=0)break c}g=0;while(1){j=K[c+11|0];d=j<<24>>24<0;l=g<<2;e=J[l+J[J[b>>2]+24>>2]>>2];i=K[e+59|0];k=i<<24>>24<0;i:{j=d?J[c+4>>2]:j;if((j|0)!=((k?J[e+52>>2]:i)|0))break i;if(j){i=d?J[c>> -2]:c;d=e+48|0;if(gd(i,k?J[d>>2]:d,j))break i}J[695492]=0;J[f+12>>2]=0;d=J[695492];J[695492]=0;j:{if((d|0)!=1){d=J[f+12>>2];e=J[J[J[b>>2]+24>>2]+l>>2];J[f+12>>2]=e;if(e){k=J[J[e>>2]+8>>2];J[695492]=0;$(k|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break j}if(d){e=J[J[d>>2]+12>>2];J[695492]=0;$(e|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break j}d=J[a+4>>2];k:{if((d|0)!=J[a+8>>2]){J[695492]=0;aa(3094,d|0,f+12|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){c=Z()|0;J[a+4>>2]=d;break b}J[a+4>>2]=d+4;break k}J[695492]= -0;da(3096,a|0,f+12|0);d=J[695492];J[695492]=0;if((d|0)==1)break j}mh(f+12|0);break i}c=Z()|0;break a}c=Z()|0;break b}g=g+1|0;if((h|0)!=(g|0))continue;break}}bc=f+16|0;return}mh(f+12|0)}$J(a);ba(c|0);B()}function t0a(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;o=J[a+4>>2];h=K[o+36|0];k=h?-1:0;p=o+37|0;f=J[o+44>>2];i=f>>>16|0;c=J[a+24>>2];t=J[a+20>>2];g=J[a+16>>2];m=J[a+12>>2];e=J[a+8>>2];d=!(f&16777216);a:{b:{while(1){if(!d){h=0;c:{d=m-e|0;j= -t-g>>1;j=(d|0)<(j|0)?d:j;d:{if((j|0)<=0){d=e;break d}d=e;while(1){e=K[d|0];d=d+1|0;e:{if(!((e|0)!=92&(e-32&255)>>>0<94)){if(1<>>0<=13:0)break e;H[p|0]=e;J[b>>2]=12;h=1;break d}if((e|0)==43)break c}I[g>>1]=e;if(c){J[c>>2]=k;k=k+1|0;c=c+4|0}else c=0;g=g+2|0;e=(j|0)>1;j=j-1|0;if(e)continue;break}}n=16777216;if(d>>>0>=m>>>0)break a;q=15;if(g>>>0>=t>>>0)break b;break a}i=255;f=0;k=k+1|0;s=k;e=d;d=1;continue}if(e>>>0>=m>>>0){n=0;d=e;break a}n=0;q=15;d=e;j=k;f:{g:{h:{while(1){v=h;k=s;e=d;if(g>>> -0>=t>>>0)break f;r=K[e|0];H[(h&255)+p|0]=r;h=h+1|0;d=e+1|0;i:{j:{if(r>>>0>125){l=253;break j}u=K[r+741776|0];l=u<<24>>24;if((u&253)!=253)break i}if((i&255)==255){H[p|0]=43;n=16777216;h=1;q=12;i=255;d=e;break b}n=16777216;q=12;if(f&65535)break f;f=0;if((l&255)!=253)break g;break b}s=k+1|0;k:{l:{if((l|0)>=0){m:switch((i<<24>>24)+1|0){case 2:case 4:case 5:case 7:i=i+1|0;f=(f&65535)<<6|l;break k;case 3:I[g>>1]=f<<4|l>>>2;if(c){J[c>>2]=j;j=k;c=c+4|0}else c=0;g=g+2|0;H[p|0]=r;i=3;f=l&3;h=1;break k;case 6:I[g>> -1]=f<<2|l>>>4;if(c){J[c>>2]=j;j=k;c=c+4|0}else c=0;g=g+2|0;H[p|0]=r;f=l&15;i=6;h=1;break k;case 0:case 1:break l;case 8:break m;default:break k}I[g>>1]=f<<6|l;g=g+2|0;if(!c){c=0;h=0;f=0;i=0;break k}J[c>>2]=j;c=c+4|0;h=0;f=0;i=0;j=s;break k}n:{if((i&255)==255){I[g>>1]=43;g=g+2|0;if(!c){c=0;i=255;break n}J[c>>2]=j-1;c=c+4|0;i=255;break n}if(f&65535)break h;f=0}k=s;e=d;break g}f=l&255;i=1}if((d|0)!=(m|0))continue;break}d=m;break a}n=16777216;q=12;break b}d=0;continue}break}h=v;d=e}J[b>>2]=q}H[o+36|0]= -!K[a+2|0]|J[b>>2]>0?h:(d|0)==(m|0)?f&65535?h:0:h;J[o+44>>2]=f&65535|((i&255)<<16|n);J[a+24>>2]=c;J[a+16>>2]=g;J[a+8>>2]=d}function s3(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,z=Q(0),A=Q(0),B=0,C=0;n=J[a+20>>2];t=J[a+28>>2]-n>>3;r=J[a+4>>2];v=+(r|0);while(1){w=J[n+12>>2];g=I[n+8>>1];a=I[n+10>>1];f=a>>31;a:{b:{j=(a^f)-f|0;f=J[c+4>>2];if(j>>>0>f>>>0){k=J[c>>2];a=j+255&130816;if((a|0)==(f|0))break b;if(k)qc(k);J[c+4>>2]=a;k=rc(a<<2);J[c>>2]=k;break b}k= -J[c>>2];if(a)break b;a=0;break a}u=0;f=k;p=g;while(1){e=+(p|0);q=O[d+24>>3]*(O[d+88>>3]+(e*O[d+56>>3]+O[d+72>>3]*v))+O[d+32>>3]*(O[d+96>>3]+(e*O[d+64>>3]+O[d+80>>3]*v));e=R(O[d+40>>3]+q);q=R(q+O[d+48>>3]);x=e>q?1:0;e=(e>=1?x:q>=1?x:e)*512+.5;c:{if(R(e)<2147483648){h=~~e;break c}h=-2147483648}y=(h+d|0)+2168|0;if(!K[y|0]){i=J[d+112>>2];d:{if((i|0)>=2){e=+(h|0)*.001953125;l=J[d+108>>2];a=1;while(1){m=a<<2;z=N[m+l>>2];if(e<+z){if(!(!(e<+N[l>>2])|(a|0)!=1)){a=J[d+104>>2];J[((h<<2)+d|0)+116>>2]=K[a|0]| -K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);break d}a=J[d+104>>2];i=a+m|0;o=a;a=m-4|0;m=o+a|0;s=K[m+3|0];B=K[i+3|0]-s|0;C=(h<<2)+d|0;o=K[m|0];A=N[a+l>>2];e=(e-+A)/+Q(z-A)*256+.5;e:{if(e<4294967296&e>=0){a=~~e>>>0;break e}a=0}o=o+(P(a,K[i|0]-o|0)>>>8|0)&255;l=K[m+2|0];l=(P(a,B)>>>8|0)+s<<24|((P(a,K[i+2|0]-l|0)>>>8|0)+l&255)<<16;s=K[i+1|0];i=K[m+1|0];J[C+116>>2]=o|(l|((P(a,s-i|0)>>>8|0)+i&255)<<8);break d}a=a+1|0;if((i|0)!=(a|0))continue;break}}if((i|0)<=0)break d;a=J[d+104>>2];if(!a)break d;a=(a+(i<<2)| -0)-4|0;J[((h<<2)+d|0)+116>>2]=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24)}H[y|0]=1}a=J[((h<<2)+d|0)+116>>2];H[f|0]=a;H[f+1|0]=a>>>8;H[f+2|0]=a>>>16;H[f+3|0]=a>>>24;p=p+1|0;f=f+4|0;u=u+1|0;if((u|0)!=(j|0))continue;break}a=L[n+10>>1]}f:{if(J[b+16>>2]<(r|0)|J[b+8>>2]>(r|0))break f;h=a<<16>>16<0;f=h?0:w;p=K[w|0];a=J[b+4>>2];g:{if((g|0)>=(a|0)){a=g;break g}g=a-g|0;j=j-g|0;if((j|0)<=0)break f;f=h?0:f+g|0;k=(g<<2)+k|0}h=J[b>>2];g=J[b+12>>2];if((g|0)<(a+j|0)){g=g-a|0;if((g|0)<0)break f;j=g+1|0}Rg(h,a, -r,j,k,f,p)}n=n+8|0;t=t-1|0;if(t)continue;break}}function PK(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0),l=0,m=Q(0),n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=Q(0);g=bc-112|0;bc=g;a:{q=J[b+84>>2];if((q|0)>0){r=a+316|0;p=a+304|0;s=g+80|0;while(1){i=fn(b,h);j=J[i>>2];J[g+108>>2]=j;c=J[J[a+328>>2]+216>>2]?p:r;d=c+4|0;e=d;b:{c:{c=J[c+4>>2];if(!c)break c;while(1){l=J[c+16>>2]<(j|0);e=l?e:c;c=J[(l?c+4|0:c)>>2];if(c)continue;break}if(!K[e+92|0]|((d|0)==(e|0)|J[e+16>>2]>(j|0)))break c;d=e+20|0;break b}H[g+3|0]=1;H[g+ -2|0]=0;c=g+4|0;St(c,a,g+108|0,g+3|0,0,g+2|0);J[695492]=0;da(2758,p|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;fj(s);d=0;c=J[J[a+328>>2]+216>>2]?p:r;l=c+4|0;e=l;c=J[c+4>>2];if(!c)break b;while(1){t=J[c+16>>2]<(j|0);e=t?e:c;c=J[(t?c+4|0:c)>>2];if(c)continue;break}if((e|0)==(l|0))break b;d=J[e+16>>2]<=(j|0)?e+20|0:0}if((j|0)<0)J[g+108>>2]=0;c=J[d+12>>2];d:{e:{f:{g:{e=J[d+4>>2];switch(e-1|0){case 0:break e;case 1:break g;default:break f}}nC(b,h,k,Q(0));oC(b,h,Q(0),Q(0),Q(0),Q(0));mC(b,h,2);c= -0;k=Q(k+Q(O[a+144>>3]+O[a+8>>3]*+N[d+16>>2]));break d}e=0}mC(b,h,e);h:{if(!K[a+105|0]|!f)break h;if(J[fn(b,h)+60>>2]!=J[fn(b,h-1|0)+60>>2])break h;aM(J[a+188>>2],f,c,g+4|0);k=Q(k+Q(J[g+4>>2]>>6))}m=N[b+12>>2];n=+Q(m+Q(0));u=N[b+8>>2];o=+Q(k+u);nC(b,h,Q(n*O[b+40>>3]+(o*O[b+24>>3]+O[b+56>>3])-+u),Q(n*O[b+48>>3]+(o*O[b+32>>3]+O[b+64>>3])-+m));f=fn(b,h);e=d- -64|0;j=J[e+4>>2];J[f+52>>2]=J[e>>2];J[f+56>>2]=j;e=J[d+60>>2];J[f+44>>2]=J[d+56>>2];J[f+48>>2]=e;e=J[d+52>>2];J[f+36>>2]=J[d+48>>2];J[f+40>>2]= -e;e=J[d+44>>2];J[f+28>>2]=J[d+40>>2];J[f+32>>2]=e;oC(b,h,N[d+24>>2],N[d+36>>2],N[d+28>>2],N[d+32>>2]);n=O[a+144>>3];o=O[a+8>>3];m=N[d+16>>2];H[i+64|0]=K[d+72|0];f=J[d+80>>2];J[i+68>>2]=J[d+76>>2];J[i+72>>2]=f;f=J[d+88>>2];J[i+76>>2]=J[d+84>>2];J[i+80>>2]=f;f=J[d+96>>2];J[i+84>>2]=J[d+92>>2];J[i+88>>2]=f;J[i+92>>2]=J[d+100>>2];k=Q(k+Q(n+o*+m))}f=c;h=h+1|0;if((q|0)!=(h|0))continue;break}N[b+16>>2]=k+N[b+8>>2];N[b+20>>2]=N[b+12>>2]+Q(0)}bc=g+112|0;return}a=Z()|0;fj(s);ba(a|0);B()}function CG(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;n=bc-160|0;bc=n;a:{if(!a|!b)break a;b:{g=J[b+48>>2];if((2147483639-g|0)>0){d=g+1|0;f=d+8|0;if(f>>>0<153391689)break b}Yc(a,63800);break a}e=d;d=J[b+52>>2];c:{if((e|0)<=(d|0))break c;e=J[b+56>>2];if(e){J[b+52>>2]=f;g=gg(a,P(f,28));J[b+56>>2]=g;if(!g){J[b+56>>2]=e;J[b+52>>2]=d;e=1;break a}tc(g,e,P(d,28));rd(a,e);break c}J[b+48>>2]=0;J[b+52>>2]=9;e=gg(a,252);J[b+56>>2]=e;if(!e){J[b+52>>2]=d;J[b+48>>2]=g;e=1;break a}J[b+184>>2]=J[b+184>>2]|16384}d:{while(1){h= -P(o,28)+c|0;d=J[h+4>>2];e:{if(!d)break e;if(J[h>>2]-3>>>0<=4294967291){Yc(a,63904);break e}k=J[b+48>>2];p=J[b+56>>2];j=n+80|0;l=1;i=0;e=K[d|0];f:{if(!e)break f;f=1;while(1){g=0;l=e>>>0<161&(e-127&255)>>>0<162;g:{if(l){g=1;if(f)break g;e=32}H[j|0]=e;i=i+1|0;j=j+1|0}d=d+1|0;e=K[d|0];if(!e)break f;f=g;if(i>>>0<79)continue;break}}d=(i|0)!=0&l;H[j-d|0]=0;m=i-d|0;if(!m){Yc(a,64037);break e}q=P(k,28);h:{if(J[h>>2]<=0){g=0;k=0;break h}k=0;g=0;j=J[h+20>>2];if(j){d=n;l=1;i=0;e=K[j|0];i:{if(!e)break i;f=1;while(1){g= -0;l=e>>>0<161&(e-127&255)>>>0<162;j:{if(l){g=1;if(f)break j;e=32}H[d|0]=e;i=i+1|0;d=d+1|0}j=j+1|0;e=K[j|0];if(!e)break i;f=g;if(i>>>0<79)continue;break}}f=d;d=(i|0)!=0&l;H[f-d|0]=0;g=i-d|0}d=J[h+24>>2];if(!d)break h;k=Qc(d)}f=p+q|0;k:{l:{e=J[h+8>>2];m:{if(!e){d=J[h>>2];break m}d=J[h>>2];if(K[e|0])break l}d=(d|0)<=0?-1:1;e=0;break k}e=Qc(e)}J[f>>2]=d;d=gg(a,(e+((g+m|0)+k|0)|0)+4|0);J[f+4>>2]=d;if(!d)break d;tc(d,n+80|0,m);d=f+4|0;H[J[d>>2]+m|0]=0;n:{if(J[h>>2]>0){d=(J[f+4>>2]+m|0)+1|0;J[f+20>>2]=d; -tc(d,J[h+20>>2],g);H[J[f+20>>2]+g|0]=0;d=(J[f+20>>2]+g|0)+1|0;J[f+24>>2]=d;tc(d,J[h+24>>2],k);H[J[f+24>>2]+k|0]=0;d=f+24|0;break n}J[f+20>>2]=0;J[f+24>>2]=0;k=m}d=(J[d>>2]+k|0)+1|0;J[f+8>>2]=d;if(e){tc(d,J[h+8>>2],e);d=J[f+8>>2]}H[d+e|0]=0;d=J[f>>2]>0;J[f+16>>2]=d?e:0;J[f+12>>2]=d?0:e;J[b+48>>2]=J[b+48>>2]+1}o=o+1|0;if((o|0)!=1)continue;break}e=0;break a}e=1}bc=n+160|0;return e}function x$a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0;b=J[b+84>>2];j=P(J[b+108>>2],I[c+54>>1]);f=P(J[b+44>>2],I[c+22>>1]);g=P(j+f|0,4433)+1024|0;k=P(J[b+100>>2],I[c+50>>1]);h=P(J[b+36>>2],I[c+18>>1]);i=P(k+h|0,4433)+1024|0;m=P(J[b+76>>2],I[c+38>>1]);n=P(J[b+12>>2],I[c+6>>1]);t=m+n<<2;u=g+P(f,6270)>>11;o=t+u|0;p=P(J[b+68>>2],I[c+34>>1]);q=P(J[b+4>>2],I[c+2>>1]);v=p+q<<2;w=i+P(h,6270)>>11;l=v+w|0;h=P(o+l|0,4433);f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;r=P(J[b+64>>2],L[c+32>>1]);x=P(J[b>>2],L[c>>1]);y=r+x<< -2;z=P(J[b+96>>2],I[c+48>>1]);s=P(J[b+32>>2],I[c+16>>1]);A=P(z+s|0,4433)+1024|0;s=A+P(s,6270)>>11;B=(y+s|0)+16|0;C=P(J[b+72>>2],L[c+36>>1]);D=P(J[b+8>>2],L[c+4>>1]);E=C+D<<2;F=P(J[b+104>>2],I[c+52>>1]);b=P(J[b+40>>2],I[c+20>>1]);G=P(F+b|0,4433)+1024|0;M=G+P(b,6270)>>11;b=E+M|0;c=B+b<<13;l=h+P(l,6270)|0;H[f|0]=K[a+(c+l>>>18&1023)|0];H[f+3|0]=K[a+(c-l>>>18&1023)|0];c=h+P(o,-15137)|0;b=B-b<<13;H[f+1|0]=K[a+(c+b>>>18&1023)|0];H[f+2|0]=K[a+(b-c>>>18&1023)|0];f=g+P(j,-15137)>>11;g=n-m<<2;h=f+g|0;i=i+P(k, --15137)>>11;j=q-p<<2;k=i+j|0;c=P(h+k|0,4433);b=J[d+4>>2]+e|0;k=c+P(k,6270)|0;m=P(z,-15137)+A>>11;n=x-r<<2;o=(m+n|0)+16|0;p=P(F,-15137)+G>>11;q=D-C<<2;l=p+q|0;r=o+l<<13;H[b|0]=K[a+(k+r>>>18&1023)|0];H[b+3|0]=K[a+(r-k>>>18&1023)|0];c=c+P(h,-15137)|0;h=o-l<<13;H[b+1|0]=K[a+(c+h>>>18&1023)|0];H[b+2|0]=K[a+(h-c>>>18&1023)|0];f=g-f|0;g=j-i|0;c=P(f+g|0,4433);b=J[d+8>>2]+e|0;g=c+P(g,6270)|0;i=(n-m|0)+16|0;h=q-p|0;j=i+h<<13;H[b|0]=K[a+(g+j>>>18&1023)|0];H[b+3|0]=K[a+(j-g>>>18&1023)|0];c=c+P(f,-15137)|0;f= -i-h<<13;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+2|0]=K[a+(f-c>>>18&1023)|0];f=t-u|0;g=v-w|0;c=P(f+g|0,4433);b=J[d+12>>2]+e|0;d=c+P(g,6270)|0;e=(y-s|0)+16|0;g=E-M|0;i=e+g<<13;H[b|0]=K[a+(d+i>>>18&1023)|0];H[b+3|0]=K[a+(i-d>>>18&1023)|0];c=c+P(f,-15137)|0;d=e-g<<13;H[b+1|0]=K[a+(c+d>>>18&1023)|0];H[b+2|0]=K[a+(d-c>>>18&1023)|0]}function xqa(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;j=bc-16|0;bc=j;t=J[a+52>>2];h=J[a+16>>2];o=J[a+12>> -2];g=J[a>>2];f=ys(g);e=P(o?4:3,f);n=zc(e);a:{if(!n){Nc(J[g+628>>2],J[g>>2],81424,0);break a}Hg(n,0,e);k=1;p=1;e=0;b:{c:{d:{e:{f:{g:{h:{i:switch(L[a+28>>1]-1|0){case 0:case 4:e=L[a+30>>1];if(e>>>0>8)break e;e=1<>1];if(l>>>0>8)break e;i=1<>1];if(e>>>0>8)break e;e=1<>1];if(e>>>0>7)break e;e=1<>2]=j+12;Ki(g,278,j);l=_i(g);j:{if(!d)break j;q=f+n|0;r=f+q|0;s=f+r|0;v=o?s:0;k=h-c|0;w=h>>>0>=k>>>0?k:0;k=p?0:d-1|0;f=0;k:{while(1){h=J[j+12>>2];i=J[a+76>>2]+f|0;h=h-((i>>>0)%(h>>>0)|0)|0;h=f+h>>>0>d>>>0?d-f|0:h;m=0;if(!((xs(g,zs(g,i,0),n,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0| -!J[a+4>>2]))break k;m=0;if(!((xs(g,zs(g,i,1),q,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2]))break k;m=0;if(!((xs(g,zs(g,i,2),r,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2]))break k;l:{if(!o)break l;if((xs(g,zs(g,i,3),s,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2])break l;m=0;break k}i=P(l,(J[a+76>>2]+f>>>0)%M[j+12>>2]|0);gc[t|0](a,(P(c,k)<<2)+b|0,0,k,c,h,w,u,i+n|0,i+q|0,i+r|0,o?i+v|0:0);k=(p?h:0-h|0)+k|0;f=f+h|0;if(f>>>0>>0)continue;break}m=1}k= -m;if(!e)break j;g=0;while(1){f=(P(c,g)<<2)+b|0;a=(f+(c<<2)|0)-4|0;if(a>>>0>f>>>0)while(1){e=J[f>>2];J[f>>2]=J[a>>2];J[a>>2]=e;a=a-4|0;f=f+4|0;if(a>>>0>f>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}qc(n)}bc=j+16|0;return k|0}function HBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=bc-96|0;bc=e;c=iT(e+20|0,b);J[695492]=0;f=aa(4991,e+56|0,c|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((d|0)!=1){J[c+24>>2]=2381060;J[c>>2]=2381028;d=J[c+28>>2];if(d){g=J[d+4>>2]-1|0;J[d+4>>2]=g; -if(!g)gc[J[J[d>>2]+4>>2]](d);J[c+28>>2]=0}J[c+16>>2]=2381060;d=J[c+20>>2];if(d){g=J[d+4>>2]-1|0;J[d+4>>2]=g;if(!g)gc[J[J[d>>2]+4>>2]](d);J[c+20>>2]=0}sc(c+8|0);i:{if(K[f+32|0])break i;J[695492]=0;da(5112,f|0,1);c=J[695492];J[695492]=0;if((c|0)==1)break h;if(K[f+32|0])break i;J[695492]=0;b=aa(4990,e+20|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;aa(5083,f|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[b+24>>2]=2381060;J[b>>2]=2381028;c=J[b+28>>2];if(c){d=J[c+4>>2]-1|0; -J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[b+28>>2]=0}J[b+16>>2]=2381060;c=J[b+20>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[b+20>>2]=0}sc(b+8|0)}J[695492]=0;da(5113,e+12|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;b=J[e+12>>2];if(!b)break e;c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,e+92|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;a=Z()|0;break b}a=Z()|0;ud(c);ba(a|0);B()}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;ud(b);break a}J[e+92>>2]=0}J[695492]=0;aa(4993,a+ -36|0,e+92|0)|0;b=J[695492];J[695492]=0;j:{if((b|0)!=1){b=J[e+92>>2];J[e+92>>2]=0;if(!b)break j;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break j;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break j}ea(0)|0;yc();B()}a=Z()|0;vc(e+92|0);break b}b=a;a=J[a+36>>2];J[b+40>>2]=J[(a?a+12|0:2728584)>>2];sc(e+12|0);J[f+24>>2]=2381060;J[f>>2]=2381028;a=J[f+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[f+28>>2]=0}J[f+16>>2]=2381060; -a=J[f+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[f+20>>2]=0}sc(f+8|0);bc=e+96|0;return}a=Z()|0;break a}sc(e+12|0)}ud(f);ba(a|0);B()}function $cb(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;g=bc-16|0;bc=g;h=J[b+16>>2];n=J[a+492>>2];gc[J[b+28>>2]](b);e=J[b>>2];a:{if(!(e>>>0>=M[b+8>>2]|K[e|0]!=91)){gc[J[b+32>>2]](b);gc[J[b+28>>2]](b);a=J[b>>2];if(a>>>0>2]&K[a|0]==93)break a;J[b+12>>2]=3;break a}e=gc[J[b+36>>2]](b)|0;if((e|0)<0){J[b+ -12>>2]=3;break a}b:{d=J[b+8>>2];c=J[b>>2];c:{if(d>>>0>>0)break c;d=d-c>>3;if((d|0)>=(e|0))break c;if(J[b+368>>2]){e=d;break c}e=Zd(h,24,g+12|0);J[b+368>>2]=e;c=J[g+12>>2];if(c)break b;i=g;J[e+16>>2]=1653;J[e+12>>2]=1654;J[e+8>>2]=0;J[e>>2]=80;J[e+4>>2]=241;c=gc[J[h+4>>2]](h,964)|0;d:{if(!c){J[e+20>>2]=c;c=64;break d}o=e,p=wc(c,0,964),J[o+20>>2]=p;c=0}J[i+12>>2]=c;e=d;if(c)break b}gc[J[b+32>>2]](b);if(J[b+12>>2])break a;j=b+316|0;gc[J[b+28>>2]](b);if(!J[b+312>>2]){c=gc[J[J[n>>2]>>2]](j,e,h)|0;J[g+ -12>>2]=c;if(c)break b}d=J[b>>2];e:{if(M[b+8>>2]<=d+4>>>0)break e;while(1){if(kd(d,254311,3))break e;gc[J[b+32>>2]](b);d=gc[J[b+36>>2]](b)|0;k=J[J[a+128>>2]+52>>2];c=J[b+8>>2];gc[J[b+28>>2]](b);f:{f=J[b>>2];g:{if(f>>>0>=c>>>0|K[f|0]-48>>>0>9)break g;f=gc[J[b+36>>2]](b)|0;gc[J[b+32>>2]](b);if((f|0)<0)break g;i=c;c=J[b>>2];l=c+1|0;if((f|0)<(i-l|0))break f}if(k)break a;J[b+12>>2]=3;break a}J[b>>2]=(c+f|0)+1;if(J[b+12>>2])break a;gc[J[b+32>>2]](b);if(J[b+12>>2])break a;gc[J[b+28>>2]](b);c=J[b>>2];h:{if(M[b+ -8>>2]<=c+4>>>0)break h;if(kd(c,254333,3))break h;gc[J[b+32>>2]](b);gc[J[b+28>>2]](b)}c=J[b+368>>2];if(c){ZC(d,m,c,h);d=m}if(!J[b+312>>2]){c=J[a+172>>2];i:{if((c|0)>=0){if(c>>>0>f>>>0){c=3;break b}k=Zd(h,f,g+12|0);c=J[g+12>>2];if(c)break b;c=tc(k,l,f);gc[J[n+16>>2]](c,f,4330);i=d;d=J[a+172>>2];o=g,p=gc[J[b+360>>2]](j,i,d+c|0,f-d|0)|0,J[o+12>>2]=p;if(c)gc[J[h+8>>2]](h,c);c=J[g+12>>2];break i}c=gc[J[b+360>>2]](j,d,l,f)|0;J[g+12>>2]=c}if(c)break b}m=m+1|0;d=J[b>>2];if(M[b+8>>2]>d+4>>>0)continue;break}}if(J[b+ -312>>2])break a;J[b+312>>2]=e;break a}J[b+12>>2]=c}bc=g+16|0}function rZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0;w=bc-400|0;bc=w;t=J[a+332>>2];b=J[b+84>>2];a=w;while(1){i=J[b+192>>2];j=I[c+96>>1];m=J[b+64>>2];q=I[c+32>>1];l=P(I[c>>1],J[b>>2])<<13|1024;f=P(J[b+128>>2],I[c+64>>1]);k=l+P(f,-11586)>>11;n=P(J[b+224>>2],I[c+112>>1]);g=P(J[b+32>>2],I[c+16>>1]);h=P(J[b+96>>2],I[c+48>>1]);r=g-h|0;o=P(J[b+160>>2],I[c+ -80>>1]);p=n+(r-o|0)<<2;J[a+280>>2]=k-p;J[a+84>>2]=k+p;j=P(i,j);m=P(m,q);q=P(j+m|0,9058);k=q+P(j,-14084)|0;p=l+P(f,2578)|0;u=k+p|0;i=n<<13;n=P(h+o|0,-1297)-i|0;x=P(g+h|0,10935);v=n+(x+P(h,-3474)|0)|0;J[a+336>>2]=u-v>>11;J[a+28>>2]=u+v>>11;j=P(j,-11295)+P(m,5027)|0;u=l+P(f,-7223)|0;v=j+u|0;s=n;n=g+o|0;y=P(n,9810);s=s+(y+P(o,-19447)|0)|0;J[a+308>>2]=v-s>>11;J[a+56>>2]=v+s>>11;k=p-k|0;r=P(r,3826)-i|0;s=P(h,5529);h=P(o-h|0,11512);p=r+(s+h|0)|0;J[a+224>>2]=k-p>>11;J[a+140>>2]=k+p>>11;f=l+P(f,10438)|0;l= -q+P(m,2237)|0;m=f-l|0;q=P(n,6164);k=r+(q+P(g,-8693)|0)|0;J[a+196>>2]=m-k>>11;J[a+168>>2]=m+k>>11;f=f+l|0;g=i+((P(g,-9232)+x|0)+y|0)|0;J[a+364>>2]=f-g>>11;J[a>>2]=f+g>>11;g=u-j|0;h=i+(q+(h+P(o,-13850)|0)|0)|0;J[a+252>>2]=g-h>>11;J[a+112>>2]=g+h>>11;a=a+4|0;b=b+4|0;c=c+2|0;z=z+1|0;if((z|0)!=7)continue;break}b=t+128|0;a=w;h=0;while(1){g=J[a+12>>2];f=J[a+4>>2];l=P(g+f|0,7663);o=J[a+16>>2];i=J[a+24>>2];j=P(o-i|0,7223);c=J[(h<<2)+d>>2]+e|0;m=J[a+20>>2];q=P(m+f|0,5027);t=P(f-g|0,1395);k=q+(l-t|0)|0;s=j+ -P(i,-637)|0;f=J[a+8>>2];r=f+i|0;i=(J[a>>2]<<13)+131072|0;n=P(r,10438)+i|0;p=s+n|0;H[c|0]=K[b+(k+p>>>18&1023)|0];H[c+6|0]=K[b+(p-k>>>18&1023)|0];g=P(g+m|0,-11295);l=g+(l+t|0)|0;t=P(f-o|0,2578);j=j+(t+(i+P(o,-15083)|0)|0)|0;H[c+1|0]=K[b+(l+j>>>18&1023)|0];H[c+5|0]=K[b+(j-l>>>18&1023)|0];g=g+(P(m,15326)+q|0)|0;f=n+(t+P(f,-20239)|0)|0;H[c+2|0]=K[b+(g+f>>>18&1023)|0];H[c+4|0]=K[b+(f-g>>>18&1023)|0];H[c+3|0]=K[b+(i+P(o-r|0,11585)>>>18&1023)|0];a=a+28|0;h=h+1|0;if((h|0)!=14)continue;break}bc=w+400|0}function Q7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g| -0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3); -J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a, -c))break a;if(!yd(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;wc(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];U2(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function pla(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;a=bc-16|0;bc=a;j=K[c+11| -0];k=J[c+4>>2];a:{if(H[b+11|0]>=0){J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;break a}Re(a,J[b>>2],J[b+4>>2])}e=J[a>>2];d=K[a+11|0];g=d<<24>>24;h=(g|0)<0;f=J[a+4>>2];i=h?f:d;b:{if(i){d=h?e:a;e=d+(i<<2)|0;while(1){f=J[d>>2];J[695492]=0;f=ks(f);g=J[695492];J[695492]=0;if((g|0)==1)break b;J[d>>2]=f;d=d+4|0;if((e|0)!=(d|0))continue;break}f=J[a+4>>2];d=K[a+11|0];g=d;e=J[a>>2]}j=j<<24>>24<0?k:j;h=g<<24>>24<0;f=h?f:d;d=K[c+11|0];g=d<<24>>24<0;d=g?J[c+4>>2]:d;g=g?J[c>>2]:c;h=h?e:a;k=0;e= -0;c:{while(1){d:{e:{f:{g:{if(d){i=(f<<2)+h|0;f=(e<<2)+h|0;e=i-f>>2;if((d|0)>(e|0))break d;l=J[g>>2];while(1){e=(e-d|0)+1|0;if(!e)break d;e=og(f,l,e);if(!e)break d;if(gd(e,g,d)){f=e+4|0;e=i-f>>2;if((d|0)<=(e|0))continue;break d}break}if((e|0)==(i|0))break d;e=e-h>>2}h:{i:switch(e+1|0){default:J[695492]=0;d=e-1|0;g=aa(3191,a|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;h=K[b+11|0];f=h<<24>>24<0;i=d;d=J[g>>2]==45;e=d?i:e;if(e>>>0>(f?J[b+4>>2]:h)>>>0)break c;d=d+j|0;break h;case 1:break i;case 0:break d}e= -0;f=H[b+11|0]<0;d=j}if((d|0)==-1){j:{if(f){J[b+4>>2]=e;d=J[b>>2];break j}H[b+11|0]=e;d=b}f=e<<2;J[d+f>>2]=0;g=K[a+11|0];d=g<<24>>24;if(((d|0)<0?J[a+4>>2]:g)>>>0>=e>>>0)break g;b=a;break c}J[695492]=0;ca(2805,b|0,e|0,d|0);f=J[695492];J[695492]=0;if((f|0)==1)break b;f=K[a+11|0];if((f<<24>>24<0?J[a+4>>2]:f)>>>0>=e>>>0)break f;b=a;break c}k:{if((d|0)<0){J[a+4>>2]=e;d=J[a>>2];break k}H[a+11|0]=e;d=a}J[d+f>>2]=0;break e}J[695492]=0;ca(2805,a|0,e|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b}d=K[c+ -11|0];f=d<<24>>24<0;d=f?J[c+4>>2]:d;g=f?J[c>>2]:c;f=K[a+11|0];i=f<<24>>24<0;h=i?J[a>>2]:a;k=1;f=i?J[a+4>>2]:f;if(f>>>0>=e>>>0)continue}break}if(H[a+11|0]<0)qc(J[a>>2]);bc=a+16|0;return k|0}J[695492]=0;_(2804,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)B()}b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}function t2(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;N[a+8>>2]=N[a>>2]+d;N[a+12>>2]=N[a+4>>2]+e;h=J[a+80>>2];if(h){k=h-4|0;f=J[k>>2];if(f){f=h+P(f,96)|0;while(1){i=f;f=f-96|0;a:{if(!J[f+92>>2])break a; -i=i-8|0;g=J[i>>2];if(!g)break a;qc(g);J[i>>2]=0}if((f|0)!=(h|0))continue;break}}qc(k)}h=0;J[a+88>>2]=0;c=J[c>>2];J[a+84>>2]=c;if((c|0)>0){f=rc((l=-1,m=Dzb(c,0,96,0)|4,n=fc,n?l:m));J[f>>2]=c;i=f+4|0;f=i;k=P(c,96);g=k-96|0;j=((g>>>0)/96|0)+1&7;if(j)while(1){J[f+68>>2]=0;J[f+72>>2]=0;J[f+84>>2]=0;J[f+88>>2]=0;J[f+76>>2]=0;J[f+80>>2]=0;J[f+92>>2]=1;f=f+96|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(g>>>0>=672){h=i+k|0;while(1){J[f+68>>2]=0;J[f+72>>2]=0;J[f+84>>2]=0;J[f+88>>2]=0;J[f+76>>2]=0;J[f+80>>2]= -0;J[f+164>>2]=0;J[f+168>>2]=0;J[f+92>>2]=1;J[f+172>>2]=0;J[f+176>>2]=0;J[f+180>>2]=0;J[f+184>>2]=0;J[f+260>>2]=0;J[f+264>>2]=0;J[f+188>>2]=1;J[f+268>>2]=0;J[f+272>>2]=0;J[f+276>>2]=0;J[f+280>>2]=0;J[f+356>>2]=0;J[f+360>>2]=0;J[f+284>>2]=1;J[f+364>>2]=0;J[f+368>>2]=0;J[f+372>>2]=0;J[f+376>>2]=0;J[f+380>>2]=1;J[f+452>>2]=0;J[f+456>>2]=0;J[f+460>>2]=0;J[f+464>>2]=0;J[f+468>>2]=0;J[f+472>>2]=0;J[f+548>>2]=0;J[f+552>>2]=0;J[f+476>>2]=1;J[f+556>>2]=0;J[f+560>>2]=0;J[f+564>>2]=0;J[f+568>>2]=0;J[f+644>>2]= -0;J[f+648>>2]=0;J[f+572>>2]=1;J[f+652>>2]=0;J[f+656>>2]=0;J[f+660>>2]=0;J[f+664>>2]=0;J[f+740>>2]=0;J[f+744>>2]=0;J[f+668>>2]=1;J[f+748>>2]=0;J[f+752>>2]=0;J[f+756>>2]=0;J[f+760>>2]=0;J[f+764>>2]=1;f=f+768|0;if((h|0)!=(f|0))continue;break}}J[a+80>>2]=i;h=0;f=0;if(c>>>0>=4){k=c&-4;a=0;while(1){g=J[(f<<2)+b>>2];j=i+P(f,96)|0;H[j+64|0]=0;J[j>>2]=g;g=f|1;j=J[(g<<2)+b>>2];g=i+P(g,96)|0;H[g+64|0]=0;J[g>>2]=j;g=f|2;j=J[(g<<2)+b>>2];g=i+P(g,96)|0;H[g+64|0]=0;J[g>>2]=j;g=f|3;j=J[(g<<2)+b>>2];g=i+P(g,96)|0; -H[g+64|0]=0;J[g>>2]=j;f=f+4|0;a=a+4|0;if((k|0)!=(a|0))continue;break}}a=c&3;if(a)while(1){c=J[(f<<2)+b>>2];k=i+P(f,96)|0;H[k+64|0]=0;J[k>>2]=c;f=f+1|0;h=h+1|0;if((a|0)!=(h|0))continue;break}return}J[a+80>>2]=0}function p8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+ -1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>> -2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>> -2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;wc(g+2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>> -2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];s3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function l8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>> -2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>> -1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2]; -if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;wc(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];r3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a; -if(yd(b,d))continue;break}}}function Ufa(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;g=bc-480|0;bc=g;a=g+476|0;h=J[d+28>>2];J[a>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[695492]=0;n=$(6537,a|0)|0;a=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{if((a|0)!=1){if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;if(a){if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;k=J[a>>2];J[695492]=0;h=aa(6668,n|0,45)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;o=(h|0)==(k|0)}l=Se(g+452|0); -i=Se(g+440|0);j=Se(g+428|0);J[695492]=0;Ea(6699,c|0,o|0,g+476|0,g+472|0,g+468|0,g+464|0,l|0,i|0,j|0,g+424|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[g+4>>2]=1617;m=ng(g+8|0,0,g+4|0);c=g+16|0;if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;h:{if((a|0)>J[g+424>>2]){if(K[f+11|0]>>>7|0)h=J[f+4>>2];else h=K[f+11|0]&127;k=J[g+424>>2];if(K[i+11|0]>>>7|0)a=J[i+4>>2];else a=K[i+11|0]&127;if(K[j+11|0]>>>7|0)p=J[j+4>>2];else p=K[j+11|0]&127;a=(k+(a+(p+(h-k<<1)|0)|0)|0)+1|0;break h}k=J[g+424>>2];if(K[j+ -11|0]>>>7|0)a=J[j+4>>2];else a=K[j+11|0]&127;if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;a=(k+(a+h|0)|0)+2|0}if(a>>>0<101)break e;ih(m,zc(a<<2));c=J[m>>2];if(c)break e;J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;B()}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break c}k=J[d+4>>2];if(K[f+11|0]>>>7|0)h=J[f>>2];else h=f;if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;if(K[f+11|0]>>>7|0)f=J[f+4>>2];else f=K[f+11|0]&127;J[695492]=0;Ma(6700,c|0,g+4|0,g|0,k|0,h|0,(f<<2)+a|0,n|0,o|0,g+472|0, -J[g+468>>2],J[g+464>>2],l|0,i|0,j|0,J[g+424>>2]);a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;b=ja(6672,b|0,c|0,J[g+4>>2],J[g>>2],d|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break a}}f=Z()|0;Ae(m)}Ze(j);Ze(i);ad(l)}b=J[g+476>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)gc[J[J[b>>2]+8>>2]](b);ba(f|0);B()}Ae(m);Ze(j);Ze(i);ad(l);c=J[g+476>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)gc[J[J[c>>2]+8>>2]](c);bc=g+480|0;return b|0}function Tga(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0; -g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=bc-256|0;bc=i;J[i+248>>2]=37;J[i+252>>2]=0;k=i+248|0;m=uy(k|1,21165,J[c+4>>2]);j=i+208|0;J[i+204>>2]=j;a=Wg();a:{if(m){l=J[c+8>>2];n=i- -64|0;J[n>>2]=g;J[n+4>>2]=h;J[i+56>>2]=e;J[i+60>>2]=f;J[i+48>>2]=l;a=ni(j,30,a,k,i+48|0);break a}J[i+80>>2]=e;J[i+84>>2]=f;J[i+88>>2]=g;J[i+92>>2]=h;a=ni(i+208|0,30,a,i+248|0,i+80|0)}J[i+128>>2]=1617;k=ng(i+196|0,0,i+128|0);l=i+208|0;j=l;b:{c:{d:{e:{if((a|0)>=30){f:{if(m){J[695492]=0;a=pa(6638)|0;j=J[695492];J[695492]=0;if((j| -0)==1)break d;j=J[c+8>>2];J[i+16>>2]=g;J[i+20>>2]=h;J[i>>2]=j;J[695492]=0;J[i+8>>2]=e;J[i+12>>2]=f;a=ha(6659,i+204|0,a|0,i+248|0,i|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break f;break d}J[695492]=0;a=pa(6638)|0;j=J[695492];J[695492]=0;if((j|0)==1)break d;J[i+32>>2]=e;J[i+36>>2]=f;J[695492]=0;J[i+40>>2]=g;J[i+44>>2]=h;a=ha(6659,i+204|0,a|0,i+248|0,i+32|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d}if((a|0)==-1){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;break e}ih(k,J[i+ -204>>2]);j=J[i+204>>2]}h=a+j|0;j=Kj(j,h,c);J[i+116>>2]=1617;e=ng(i+120|0,0,i+116|0);g:{h:{if(J[i+204>>2]==(i+208|0)){a=i+128|0;break h}a=zc(a<<1);if(!a){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)!=1)break e;b=Z()|0;break g}ih(e,a);l=J[i+204>>2]}J[695492]=0;f=i+108|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;g=J[695492];J[695492]=0;i:{j:{if((g|0)!=1){J[695492]=0;ua(6660,l|0,j|0,h|0,a|0,i+116|0,i+112|0,f|0);g=J[695492];J[695492]=0;if((g|0)==1)break j;f=J[f>>2];g=J[f+4>>2]-1|0;J[f+4>>2]= -g;if((g|0)==-1)gc[J[J[f>>2]+8>>2]](f);J[695492]=0;a=ja(6661,b|0,a|0,J[i+116>>2],J[i+112>>2],c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;Ae(e);Ae(k);bc=i+256|0;break b}b=Z()|0;break g}b=Z()|0;a=J[i+108>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ae(e);break c}B()}b=Z()|0}Ae(k);ba(b|0);B()}return a|0}function Iga(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=bc-416|0;bc=i;J[i+408>>2]=37;J[i+412>>2]=0; -k=i+408|0;m=uy(k|1,21165,J[c+4>>2]);j=i+368|0;J[i+364>>2]=j;a=Wg();a:{if(m){l=J[c+8>>2];n=i- -64|0;J[n>>2]=g;J[n+4>>2]=h;J[i+56>>2]=e;J[i+60>>2]=f;J[i+48>>2]=l;a=ni(j,30,a,k,i+48|0);break a}J[i+80>>2]=e;J[i+84>>2]=f;J[i+88>>2]=g;J[i+92>>2]=h;a=ni(i+368|0,30,a,i+408|0,i+80|0)}J[i+128>>2]=1617;k=ng(i+356|0,0,i+128|0);l=i+368|0;j=l;b:{c:{d:{e:{if((a|0)>=30){f:{if(m){J[695492]=0;a=pa(6638)|0;j=J[695492];J[695492]=0;if((j|0)==1)break d;j=J[c+8>>2];J[i+16>>2]=g;J[i+20>>2]=h;J[i>>2]=j;J[695492]=0;J[i+8>> -2]=e;J[i+12>>2]=f;a=ha(6659,i+364|0,a|0,i+408|0,i|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break f;break d}J[695492]=0;a=pa(6638)|0;j=J[695492];J[695492]=0;if((j|0)==1)break d;J[i+32>>2]=e;J[i+36>>2]=f;J[695492]=0;J[i+40>>2]=g;J[i+44>>2]=h;a=ha(6659,i+364|0,a|0,i+408|0,i+32|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d}if((a|0)==-1){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;break e}ih(k,J[i+364>>2]);j=J[i+364>>2]}h=a+j|0;j=Kj(j,h,c);J[i+116>>2]=1617;e=ng(i+120|0,0,i+116| -0);g:{h:{if(J[i+364>>2]==(i+368|0)){a=i+128|0;break h}a=zc(a<<3);if(!a){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)!=1)break e;b=Z()|0;break g}ih(e,a);l=J[i+364>>2]}J[695492]=0;f=i+108|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;g=J[695492];J[695492]=0;i:{j:{if((g|0)!=1){J[695492]=0;ua(6671,l|0,j|0,h|0,a|0,i+116|0,i+112|0,f|0);g=J[695492];J[695492]=0;if((g|0)==1)break j;f=J[f>>2];g=J[f+4>>2]-1|0;J[f+4>>2]=g;if((g|0)==-1)gc[J[J[f>>2]+8>>2]](f);J[695492]=0;a=ja(6672,b|0,a|0,J[i+116>>2], -J[i+112>>2],c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;Ae(e);Ae(k);bc=i+416|0;break b}b=Z()|0;break g}b=Z()|0;a=J[i+108>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ae(e);break c}B()}b=Z()|0}Ae(k);ba(b|0);B()}return a|0}function r3(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=Q(0),r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=Q(0),A=0,B=0;n=J[a+20>>2];t=J[a+28>>2]-n>>3;p=J[a+4>>2];v=+(p|0);while(1){w=J[n+12>>2];i=I[n+8>>1];a=I[n+10>>1];h=a>> -31;a:{b:{k=(a^h)-h|0;h=J[c+4>>2];if(k>>>0>h>>>0){l=J[c>>2];a=k+255&130816;if((a|0)==(h|0))break b;if(l)qc(l);J[c+4>>2]=a;l=rc(a<<2);J[c>>2]=l;break b}l=J[c>>2];if(a)break b;a=0;break a}u=0;h=l;a=i;while(1){f=+(a|0);x=O[d+64>>3]+(f*O[d+32>>3]+O[d+48>>3]*v)-O[d+8>>3];f=O[d+72>>3]+(f*O[d+40>>3]+O[d+56>>3]*v)-O[d+16>>3];f=O[d+24>>3]*Y(x*x+f*f);f=(f>1?1:f)*512+.5;c:{if(R(f)<2147483648){g=~~f;break c}g=-2147483648}y=(d+g|0)+2144|0;if(!K[y|0]){d:{e:{f:{j=J[d+88>>2];g:{if((j|0)<2)break g;f=+(g|0)*.001953125; -m=J[d+84>>2];if(f<+N[m>>2])break f;e=1;q=N[m+4>>2];if(f<+q)break e;e=2;if((j|0)==2)break g;while(1){q=N[(e<<2)+m>>2];if(f<+q)break e;e=e+1|0;if((j|0)!=(e|0))continue;break}}e=(J[d+80>>2]+(j<<2)|0)-4|0;J[((g<<2)+d|0)+92>>2]=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);break d}e=J[d+80>>2];J[((g<<2)+d|0)+92>>2]=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);break d}o=J[d+80>>2];e=e<<2;j=o+e|0;e=e-4|0;o=e+o|0;r=K[o+3|0];A=K[j+3|0]-r|0;B=(g<<2)+d|0;s=K[o|0];z=N[e+m>>2];f=(f-+z)/+Q(q-z)*256+.5;h:{if(f< -4294967296&f>=0){e=~~f>>>0;break h}e=0}s=s+(P(e,K[j|0]-s|0)>>>8|0)&255;m=K[o+2|0];m=r+(P(e,A)>>>8|0)<<24|((P(e,K[j+2|0]-m|0)>>>8|0)+m&255)<<16;r=K[j+1|0];j=K[o+1|0];J[B+92>>2]=s|(m|((P(e,r-j|0)>>>8|0)+j&255)<<8)}H[y|0]=1}g=J[((g<<2)+d|0)+92>>2];H[h|0]=g;H[h+1|0]=g>>>8;H[h+2|0]=g>>>16;H[h+3|0]=g>>>24;a=a+1|0;h=h+4|0;u=u+1|0;if((u|0)!=(k|0))continue;break}a=L[n+10>>1]}i:{if(J[b+16>>2]<(p|0)|J[b+8>>2]>(p|0))break i;g=a<<16>>16<0;h=g?0:w;e=K[w|0];a=J[b+4>>2];j:{if((i|0)>=(a|0)){a=i;break j}i=a-i|0;k= -k-i|0;if((k|0)<=0)break i;h=g?0:h+i|0;l=(i<<2)+l|0}g=J[b>>2];i=J[b+12>>2];if((i|0)<(a+k|0)){i=i-a|0;if((i|0)<0)break i;k=i+1|0}Rg(g,a,p,k,l,h,e)}n=n+8|0;t=t-1|0;if(t)continue;break}}function Qwa(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;d=bc-16|0;bc=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2386024;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;h=a;a:{b:{c:{d:{e:{a=J[c>>2];f:{if(!a)break f;i=J[a+8>>2];if(!i)break f;J[695492]=0;f=b- -64|0;a=f;g=J[a+24>>2];J[d+12>>2]=a;J[d+8>>2]=g;a= -J[695492];J[695492]=0;if((a|0)==1)break c;a=J[d+8>>2];if(!a)break f;g=b+36|0;while(1){if(J[d+12>>2]!=(f|0)){J[695492]=0;da(5073,d+8|0,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break a}J[695492]=0;a=ga(5117,c|0,a+16|0,i|0)|0;b=J[695492];J[695492]=0;g:{h:{i:{if((b|0)!=1){if(a)break g;a=J[d+8>>2];if(!(J[d+12>>2]==(f|0)?a:0)){J[695492]=0;da(5073,d+8|0,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;break b}b=J[a+24>>2];J[695492]=0;J[d+4>>2]=0;a=J[J[g+12>>2]+((b>>>0)%M[g+8>>2]<<2)>>2]; -e=J[695492];J[695492]=0;if((e|0)!=1){if(!a)break h;while(1){if(!((b|0)==J[a+12>>2]&(b|0)==J[a+16>>2])){a=J[a+8>>2];if(a)continue;break i}break}if(!J[a+20>>2]|J[b+4>>2]<=0)break i;J[695492]=0;aa(4985,d+4|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break i;break e}break e}a=Z()|0;break b}a=J[d+4>>2];if(!a)break g;if(J[a+4>>2]>0)break h;J[695492]=0;aa(4985,d+4|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e}if(!J[d+4>>2])break g;J[695492]=0;a=$(4,12)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e; -J[a>>2]=0;J[a+4>>2]=0;b=J[d+4>>2];e=0;j:{if(!b)break j;J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break e;e=J[d+4>>2]}b=e;J[a+8>>2]=b;J[695492]=0;of(h,a);a=J[695492];J[695492]=0;if((a|0)==1)break e;a=J[d+4>>2];J[d+4>>2]=0;if(!a)break g;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)==1)break d;if(b)break g;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break d}a=J[d+8>>2];if(!a)break f;a=J[a>>2];J[d+8>>2]=a;if(a)continue;break}}bc=d+ -16|0;return}a=Z()|0;vc(d+4|0);break b}ea(0)|0;yc();B()}a=Z()|0}$c(h);ba(a|0);B()}B()}function Dpa(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;e=bc-16|0;bc=e;J[a+8>>2]=0;J[a>>2]=2424840;J[a+4>>2]=0;c=J[682146];J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=c;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[695492]=0;i=aa(5080,a+16|0,2389436)|0;c=J[695492];J[695492]=0;j=a+8|0;a:{b:{c:{d:{e:{f:{g:{h:{if((c|0)!=1){J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[695492]=0;g= -a+44|0;J[g>>2]=2424912;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break h;J[a+60>>2]=0;c=J[682146];J[a+68>>2]=0;J[a+72>>2]=0;J[a- -64>>2]=c;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[695492]=0;k=aa(5080,a+68|0,2424932)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[a+96>>2]=0;while(1){c=b;b=c+1|0;d=H[c|0];if((d|0)==32|d-9>>>0<5)continue;break}b=c;while(1){i:{j:{k:{f=d&255;switch(f-47|0){case 0:case 15:break i;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break j; -default:break k}}if(!f)break i}if((d|0)==32|d-9>>>0<5)break i;d=H[b+1|0];b=b+1|0;continue}break}J[695492]=0;h=ga(5169,e+4|0,c|0,b-c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;f=J[h>>2];l:{if(f){c=J[J[f>>2]+28>>2];J[695492]=0;ca(c|0,e+12|0,f|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break l;b=Z()|0;sc(h);break d}J[e+12>>2]=0}J[695492]=0;aa(4993,j|0,e+12|0)|0;c=J[695492];J[695492]=0;m:{if((c|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break m;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;c=J[695492];J[695492]= -0;if((c|0)!=1){if(f)break m;J[695492]=0;_(4987,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break m}ea(0)|0;yc();B()}b=Z()|0;vc(e+12|0);sc(h);break d}c=J[a+8>>2];J[a+12>>2]=J[(c?c+12|0:2728584)>>2];sc(h);J[695492]=0;ca(5538,b|0,i|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break e;bc=e+16|0;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0}Bd(k)}sc(a+60|0);$c(g)}Bd(i)}sc(j);ed(a);ba(b|0);B()}function U_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;J[a+176>>2]= -0;J[a+180>>2]=0;J[a>>2]=825908;J[a+208>>2]=0;J[a+212>>2]=0;H[a+201|0]=0;J[a+168>>2]=d;J[a+160>>2]=c;J[a+108>>2]=0;J[a+104>>2]=b;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+216>>2]=0;a:{b:{c:{if(!b)break c;J[e>>2]=0;c=J[J[b>>2]+52>>2];J[695492]=0;aa(c|0,b|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[a+104>>2];J[e>>2]=255;c=J[J[b>>2]+60>>2];J[695492]=0;aa(c|0,b|0,e|0)|0;b=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((b|0)!=1){b=J[a+104>>2];J[e>>2]=0;J[e+4>>2]=1072693248;c=J[J[b>> -2]+68>>2];J[695492]=0;aa(c|0,b|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;c=J[a+104>>2];J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;J[e>>2]=b;J[e+4>>2]=5;J[e+8>>2]=-2147483640;J[b+16>>2]=J[198541];d=J[198540];J[b+8>>2]=J[198539];J[b+12>>2]=d;d=J[198538];J[b>>2]=J[198537];J[b+4>>2]=d;J[b+20>>2]=0;b=J[J[c>>2]+236>>2];J[695492]=0;aa(b|0,c|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if(H[e+11|0]<0)qc(J[e>>2]);b=J[a+104>>2];J[e>>2]=0;c=J[J[b>>2]+260>>2];J[695492]= -0;aa(c|0,b|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[a+104>>2];J[e>>2]=0;J[e+4>>2]=1076101120;c=J[J[b>>2]+252>>2];J[695492]=0;aa(c|0,b|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[a+104>>2];c=J[J[b>>2]+16>>2];J[695492]=0;aa(c|0,b|0,a+108|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;if(H[e+11|0]>=0)break a;qc(J[e>>2]);break a}b=Z()|0;break a}b=Z()|0;break a}H[a+220|0]=0;J[a+172>>2]=0;I[a+202>>1]= -0;I[a+204>>1]=0;H[a+200|0]=1;bc=e+16|0;return a|0}b=Z()|0}c=J[a+208>>2];if(c)qc(c);fJ(a+176|0);c=J[a+180>>2];d=J[a+184>>2];i:{if((c|0)==(d|0))break i;while(1){qc(J[c>>2]);c=c+4|0;if((d|0)!=(c|0))continue;break}c=J[a+184>>2];d=J[a+180>>2];if((c|0)==(d|0))break i;J[a+184>>2]=c+((d-c|0)+3&-4)}a=J[a+176>>2];if(a)qc(a);ba(b|0);B()}function ZOa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;m=bc-128|0;d=a;while(1){a:{e=d;d=J[(i<< -2)+b>>2]+c|0;g=K[d+11|0];j=K[d|0];f=g+j|0;l=K[d+6|0];p=K[d+5|0];k=l+p|0;n=f-k|0;o=K[d+10|0];q=K[d+1|0];h=o+q|0;r=K[d+7|0];s=K[d+4|0];t=r+s|0;u=h-t|0;v=K[d+9|0];w=K[d+2|0];x=v+w|0;y=K[d+8|0];z=K[d+3|0];A=y+z|0;d=x-A|0;J[e+24>>2]=n-(u+d|0);f=f+k|0;k=h;h=x+A|0;J[e>>2]=(f+(t+(k+h|0)|0)|0)-1536;J[e+16>>2]=P(f-h|0,10033)+4096>>13;J[e+8>>2]=((u-d|0)+P(d+n|0,11190)|0)+4096>>13;f=s-r|0;n=q-o|0;k=P(f+n|0,4433);o=k+P(f,-15137)|0;d=j-g|0;g=z-y|0;j=p-l|0;f=w-v|0;J[e+12>>2]=((o+P(d-g|0,10703)|0)+P(j+f|0,-4433)| -0)+4096>>13;l=P(d+g|0,7053);h=l+P(g,5946)|0;g=P(g+f|0,-1512);k=k+P(n,6270)|0;J[e+28>>2]=(((h+g|0)-k|0)+P(j,-9191)|0)+4096>>13;h=g;g=P(d+f|0,9191)+4096|0;J[e+20>>2]=((h+(g+P(f,-19165)|0)|0)-o|0)+P(j,7053)>>13;J[e+4>>2]=(k+(l+(g+P(d,-4758)|0)|0)|0)+P(j,1512)>>13;j=i-7|0;i=i+1|0;d=m;g=7;b:switch(j|0){case 0:continue;case 4:break a;default:break b}d=e+32|0;continue}break}while(1){b=J[d+64>>2];c=J[a+128>>2];m=J[a+192>>2];j=J[a+160>>2];e=m+j|0;f=J[d+96>>2];k=J[a>>2];i=f+k|0;l=e+i|0;p=J[d>>2];n=J[a+96>> -2];o=p+n|0;q=J[d+32>>2];h=J[a+64>>2];r=q+h|0;s=o+r|0;J[a+128>>2]=P(l-s|0,8918)- -8192>>14;i=i-e|0;t=J[a+32>>2];u=t+b|0;v=J[a+224>>2];w=v+c|0;x=u-w|0;e=r-o|0;J[a+192>>2]=P(i-(x+e|0)|0,7282)- -8192>>14;J[a+64>>2]=(P(x-e|0,7282)+P(e+i|0,9947)|0)- -8192>>14;J[a>>2]=P(l+(w+(s+u|0)|0)|0,7282)- -8192>>14;e=c-v|0;l=t-b|0;i=P(e+l|0,3941);b=k-f|0;c=n-p|0;f=i+P(e,-13455)|0;e=j-m|0;m=h-q|0;J[a+96>>2]=((P(b-c|0,9514)+f|0)+P(e+m|0,-3941)|0)- -8192>>14;j=P(b+c|0,6269);h=j+P(c,5285)|0;c=P(c+m|0,-1344);i=i+P(l,5573)| -0;J[a+224>>2]=(((h+c|0)-i|0)+P(e,-8170)|0)- -8192>>14;h=c;c=P(b+m|0,8170)- -8192|0;J[a+160>>2]=((h+(c+P(m,-17036)|0)|0)-f|0)+P(e,6269)>>14;J[a+32>>2]=(i+(j+(c+P(b,-4229)|0)|0)|0)+P(e,1344)>>14;b=g;g=g-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function Yfa(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;g=bc-176|0;bc=g;a=g+172|0;h=J[d+28>>2];J[a>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[695492]=0;n=$(6613,a|0)|0;a=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{if((a|0)!= -1){if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;if(a){if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;k=K[a|0];J[695492]=0;h=aa(6656,n|0,45)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;o=(h&255)==(k|0)}l=Se(g+152|0);i=Se(g+140|0);j=Se(g+128|0);J[695492]=0;Ea(6697,c|0,o|0,g+172|0,g+168|0,g+167|0,g+166|0,l|0,i|0,j|0,g+124|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[g+4>>2]=1617;m=ng(g+8|0,0,g+4|0);c=g+16|0;if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;h:{if((a|0)>J[g+124>>2]){if(K[f+11|0]>>> -7|0)h=J[f+4>>2];else h=K[f+11|0]&127;k=J[g+124>>2];if(K[i+11|0]>>>7|0)a=J[i+4>>2];else a=K[i+11|0]&127;if(K[j+11|0]>>>7|0)p=J[j+4>>2];else p=K[j+11|0]&127;a=(k+(a+(p+(h-k<<1)|0)|0)|0)+1|0;break h}k=J[g+124>>2];if(K[j+11|0]>>>7|0)a=J[j+4>>2];else a=K[j+11|0]&127;if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;a=(k+(a+h|0)|0)+2|0}if(a>>>0<101)break e;ih(m,zc(a));c=J[m>>2];if(c)break e;J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;B()}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break c}k= -J[d+4>>2];if(K[f+11|0]>>>7|0)h=J[f>>2];else h=f;if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;if(K[f+11|0]>>>7|0)f=J[f+4>>2];else f=K[f+11|0]&127;J[695492]=0;Ma(6698,c|0,g+4|0,g|0,k|0,h|0,a+f|0,n|0,o|0,g+168|0,H[g+167|0],H[g+166|0],l|0,i|0,j|0,J[g+124>>2]);a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;b=ja(6661,b|0,c|0,J[g+4>>2],J[g>>2],d|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break a}}f=Z()|0;Ae(m)}ad(j);ad(i);ad(l)}b=J[g+172>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)gc[J[J[b>>2]+8>>2]](b);ba(f| -0);B()}Ae(m);ad(j);ad(i);ad(l);c=J[g+172>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)gc[J[J[c>>2]+8>>2]](c);bc=g+176|0;return b|0}function R4(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,r=0;i=bc-16|0;bc=i;d=J[a+12>>2];if(d)J[(J[a+20>>2]+(d<<4)|0)-4>>2]=b;k=J[a+24>>2];a:{if((k|0)<2)break a;o=k;while(1){p=o;g=J[a+32>>2];o=o-1|0;b=g+(o<<4)|0;l=J[b>>2];d=J[b+8>>2];j=p-2|0;while(1){b:{h=g+(j<<4)|0;b=J[h+8>>2];c:{h=J[h>>2];f=h>>>0>l>>>0?l:h;d:{e:{if(f>>>0<8){m=d;break e}m=(f-8>>> -3|0)+1|0;h=m+b|0;m=d+m|0;e=d;while(1){if(K[b|0]&K[e|0])break d;b=b+1|0;e=e+1|0;f=f-8|0;if(f>>>0>7)continue;break}b=h}if(!f|!(K[b|0]&K[m|0]&-256>>f))break c}b=j>>>0>>0?j:o;m=j>>>0>o>>>0?j:o;if(b>>>0>=m>>>0|m>>>0>=k>>>0)break b;n=g+(m<<4)|0;l=J[n>>2];f:{if(!l)break f;g=g+(b<<4)|0;b=J[g>>2];g:{if(l>>>0<=b>>>0){k=l+7|0;f=k>>>3|0;break g}d=J[g+4>>2];J[i>>2]=0;k=l+7|0;f=k>>>3|0;d=d+7>>>3|0;if(f>>>0>d>>>0){e=d;d=f+7&1073741816;q=g,r=Sc(c,1,e,d,J[g+8>>2],i),J[q+8>>2]=r;e=J[i>>2];if(e)break a;J[g+4>>2]= -d<<3}d=b+1|0;if(l-b&1){if(M[g>>2]>b>>>0){h=J[g+8>>2]+(b>>>3|0)|0;H[h|0]=K[h|0]&-129>>(b&7)}b=d}if((d|0)==(l|0))break g;while(1){if(M[g>>2]>b>>>0){d=J[g+8>>2]+(b>>>3|0)|0;H[d|0]=K[d|0]&-129>>(b&7)}h=b+1|0;if(h>>>0>2]){d=J[g+8>>2]+(h>>>3|0)|0;H[d|0]=K[d|0]&-129>>(h&7)}b=b+2|0;if((l|0)!=(b|0))continue;break}}if(k>>>0<8)break f;h=f-1|0;e=J[n+8>>2];b=J[g+8>>2];j=0;d=f&3;if(d)while(1){H[b|0]=K[e|0]|K[b|0];f=f-1|0;e=e+1|0;b=b+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}if(h>>>0<3)break f;while(1){H[b| -0]=K[e|0]|K[b|0];H[b+1|0]=K[e+1|0]|K[b+1|0];H[b+2|0]=K[e+2|0]|K[b+2|0];H[b+3|0]=K[e+3|0]|K[b+3|0];e=e+4|0;b=b+4|0;f=f-4|0;if(f)continue;break}}J[n>>2]=0;J[n+12>>2]=0;b=J[a+24>>2];d=b+(m^-1)|0;if((d|0)>0){b=J[n+12>>2];J[i+8>>2]=J[n+8>>2];J[i+12>>2]=b;b=J[n+4>>2];J[i>>2]=J[n>>2];J[i+4>>2]=b;b=d<<4;d=Zc(n,n+16|0,b)+b|0;b=J[i+12>>2];J[d+8>>2]=J[i+8>>2];J[d+12>>2]=b;b=J[i+4>>2];J[d>>2]=J[i>>2];J[d+4>>2]=b;b=J[a+24>>2]}k=b-1|0;J[a+24>>2]=k;break b}b=(j|0)>0;j=j-1|0;if(b)continue}break}if((p|0)>2)continue; -break}e=0}bc=i+16|0;return e}function GA(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(J[a+16>>2])a=0;else{c=J[a+49196>>2];d=J[a+24>>2];while(1){b:{c:{d:{e:{if((c|0)<=(d|0)){b=J[a+20>>2];break e}while(1){b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break d;d=J[a+24>>2]+8|0;J[a+24>>2]=d;b=J[a+53324>>2];e=J[a+53320>>2]+1|0;b=e?b:b+1|0;J[a+53320>>2]=e;J[a+53324>>2]=b;b=c&255|J[a+20>>2]<<8;J[a+20>>2]=b;c=J[a+49196>>2];if((c|0)>(d|0))continue;break}}d=d-c|0;J[a+24>>2]=d;c=(-1<>d;if((c|0)==256)break c; -if((c|0)!=257)break b}J[a+16>>2]=1;return 0}J[a+53316>>2]=1;J[a+53308>>2]=0;J[a+53312>>2]=0;J[a+49192>>2]=258;J[a+49196>>2]=9;c=9;continue}break}d=J[a+49192>>2];if((d|0)<=4096)e=J[a+53308>>2];else{xc(1,gc[J[J[a>>2]+52>>2]](a)|0,808537,0);J[a+53316>>2]=1;J[a+53308>>2]=0;J[a+53312>>2]=0;J[a+49192>>2]=258;J[a+49196>>2]=9;d=258;e=0}f:{if(c>>>0<=255){J[a+53308>>2]=1;H[a+49208|0]=c;b=c;break f}if((c|0)<(d|0)){d=J[(P(c,12)+a|0)+28>>2];J[a+53308>>2]=d;b=c;if((d|0)>=2)while(1){f=d-1|0;b=P(b,12)+a|0;H[(f+a| -0)+49208|0]=K[b+36|0];g=d>>>0>2;b=J[b+32>>2];d=f;if(g)continue;break}H[a+49208|0]=b;break f}if((c|0)!=(d|0))break a;H[e+(a+49208|0)|0]=J[a+49204>>2];J[a+53308>>2]=J[a+53308>>2]+1;b=K[a+49208|0]}J[a+49204>>2]=b&255;g:{if(J[a+53316>>2]){J[a+53316>>2]=0;break g}f=J[a+49192>>2];d=P(f,12)+a|0;J[d+28>>2]=e+1;e=J[a+49200>>2];H[d+36|0]=b;J[d+32>>2]=e;b=f+1|0;J[a+49192>>2]=b;b=b+J[a+12>>2]|0;if((b|0)!=2048){if((b|0)!=1024){if((b|0)!=512)break g;J[a+49196>>2]=10;break g}J[a+49196>>2]=11;break g}J[a+49196>> -2]=12}J[a+49200>>2]=c;b=J[a+53308>>2];d=b;c=b+J[a+53328>>2]|0;b=J[a+53332>>2]+(b>>31)|0;J[a+53328>>2]=c;b=c>>>0>>0?b+1|0:b;J[a+53332>>2]=b;h:{if(!b&c>>>0<50000001)break h;e=J[a+53320>>2];d=J[a+53324>>2];b=Fzb(c,b,250,0);c=fc;if((c|0)==(d|0)&b>>>0<=e>>>0|c>>>0>>0)break h;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,809154,0);J[a+16>>2]=1;return 0}J[a+53312>>2]=0;a=1}return a}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,808891,0);J[a+16>>2]=1;return 0}function COa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;h=a;while(1){d=J[(p<<2)+b>>2]+c|0;i=K[d+9|0];k=K[d+6|0];f=i+k|0;n=K[d+14|0];j=K[d+1|0];g=n+j|0;e=f+g|0;m=K[d+13|0];o=K[d+2|0];l=m+o|0;r=K[d+10|0];s=K[d+5|0];q=r+s|0;t=l+q|0;u=K[d+8|0];v=K[d+7|0];w=u+v|0;x=K[d+15|0];y=K[d|0];z=x+y|0;A=w+z|0;B=K[d+11|0];C=K[d+4|0];D=B+C|0;E=K[d+12|0];F=K[d+3|0];d=E+F|0;G=D+d|0;J[h+16>>2]=(P(e-t|0,4433)+P(A-G|0,10703)|0)+1024>>11;J[h>>2]=((e+(t+G|0)|0)+A<<2)+-8192;e=z-w|0;l=l- -q|0;q=d-D|0;f=g-f|0;d=(P(e-l|0,11363)+P(q-f|0,2260)|0)+1024|0;J[h+24>>2]=(d+P(q,-8697)|0)+P(e,-1730)>>11;J[h+8>>2]=(d+P(l,17799)|0)+P(f,11893)>>11;d=s-r|0;f=C-B|0;g=F-E|0;e=o-m|0;m=(P(d-f|0,3363)+P(g+e|0,-11086)|0)+1024|0;i=k-i|0;k=j-n|0;n=P(i+f|0,-10217)+P(k+g|0,-5461)|0;o=n+((m+P(g,8728)|0)+P(f,17760)|0)|0;j=f;f=v-u|0;l=g;g=y-x|0;j=P(j-f|0,7350)+P(l+g|0,8956)|0;J[h+28>>2]=o+j>>11;l=(m+P(e,-9222)|0)+P(d,10055)|0;m=P(i-d|0,11529)+P(e+k|0,1136)|0;d=P(d+f|0,5461)+P(e+g|0,10217)|0;J[h+20>>2]=(l+m|0)+ -d>>11;e=P(i-f|0,3363)+P(g+k|0,11086)|0;J[h+12>>2]=(e+(m+((n+P(k,589)|0)+P(i,-13631)|0)|0)|0)+1024>>11;J[h+4>>2]=(j+(e+((d+P(g,-18730)|0)+P(f,6387)|0)|0)|0)+1024>>11;h=h+32|0;p=p+1|0;if((p|0)!=8)continue;break}b=7;while(1){h=J[a+128>>2];d=J[a+96>>2];c=h+d|0;f=J[a+224>>2];g=J[a>>2];e=f+g|0;i=c+e|0;k=J[a+160>>2];p=J[a+64>>2];m=k+p|0;n=J[a+192>>2];j=J[a+32>>2];o=n+j|0;l=m+o|0;J[a+128>>2]=(i-l|0)+4>>3;J[a>>2]=(i+l|0)+4>>3;e=e-c|0;i=o-m|0;c=P(e+i|0,4433)+32768|0;J[a+192>>2]=c+P(i,-15137)>>16;J[a+64>>2]= -c+P(e,6270)>>16;c=d-h|0;h=g-f|0;d=P(c+h|0,-7373)+32768|0;f=j-n|0;i=f+c|0;g=p-k|0;k=g+h|0;e=P(i+k|0,9633);j=d+P(c,2446)|0;c=e+P(i,-16069)|0;J[a+224>>2]=j+c>>16;e=e+P(k,-3196)|0;j=P(g,16819);g=P(f+g|0,-20995)+32768|0;J[a+160>>2]=e+(j+g|0)>>16;J[a+96>>2]=c+(g+P(f,25172)|0)>>16;J[a+32>>2]=e+(d+P(h,12299)|0)>>16;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function kqb(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;var h=0,i=0,j=0,k=0,l=0;a:{b:{if(f){if(((c+1|0)/2|0)>(b|0))break b;if(!d)break a; -a=c<<1;l=b<<1;b=0;while(1){i=L[e>>1];c:{if((i|0)==L[f>>1]){I[g>>1]=i;break c}i=K[e|0]|K[e+1|0]<<8;k=i>>>8|0;h=K[f|0]|K[f+1|0]<<8;i=((i<<8|k)&65535)+((P(l,((h<<8|h>>>8)&65535)-((k|i<<8)&65535)|0)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];d:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break d}h=e+2|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=j+((P(l,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+ -1|0]=h>>>8}i=g+4|0;h=L[e+4>>1];e:{if((h|0)==L[f+4>>1]){I[i>>1]=h;break e}h=e+4|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+4|0]|K[f+5|0]<<8;h=j+((P(l,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}I[g+6>>1]=L[f+6>>1];g=g+8|0;f=f+8|0;e=e+8|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}tc(g,e,d<<3);break a}if(!d)break a;a=c<<1;l=b<<1;b=0;while(1){i=L[e>>1];f:{if((i|0)==L[f>>1]){I[g>>1]=i;break f}i=K[e|0]|K[e+1|0]<<8;k=i>>> -8|0;h=K[f|0]|K[f+1|0]<<8;i=((i<<8|k)&65535)+((P(l,((h<<8|h>>>8)&65535)-((k|i<<8)&65535)|0)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];g:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break g}h=e+2|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=j+((P(l,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[e+4>>1];h:{if((h|0)==L[f+4>>1]){I[i>>1]=h;break h}h=e+4|0;j=K[h+1|0]<<8;k=K[h|0]| -j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+4|0]|K[f+5|0]<<8;h=j+((P(l,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}I[g+6>>1]=L[e+6>>1];g=g+8|0;e=e+8|0;f=f+8|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}return 0}function Ybb(a){a=a|0;var b=0,c=0,d=0,e=0;H[a+8|0]=0;J[a+4>>2]=1;J[a+24>>2]=340424;J[a>>2]=339572;J[a+72>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+40>>2]=0;J[a+44>>2]=1072693248;J[a+28>>2]=0;J[a+32>>2]=255;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>> -2]=0;J[a+80>>2]=0;J[a+84>>2]=1071644672;J[695492]=0;c=$(2225,a+88|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[a+456>>2]=340520;b=a+460|0;J[b>>2]=0;J[b+4>>2]=0;J[a+468>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+480>>2]=0;J[695492]=0;ga(2226,a+472|0,340560,5)|0;d=J[695492];J[695492]=0;b:{c:{d:{e:{f:{if((d|0)!=1){if(H[a+471|0]>=0)break f;J[a+464>>2]=0;b=J[a+460>>2];break e}b=Z()|0;if(H[a+483|0]<0)qc(J[a+472>>2]);if(H[a+471|0]>=0)break d;qc(J[a+460>>2]);ln(c);break a}H[a+471|0]=0}J[b>>2]=0;I[a+504>>1]= -0;J[a+496>>2]=0;J[a+500>>2]=0;J[a+488>>2]=0;J[a+492>>2]=0;J[a+508>>2]=0;J[a+512>>2]=0;J[a+516>>2]=0;J[a+520>>2]=0;b=a+532|0;J[b>>2]=0;J[b+4>>2]=0;J[a+528>>2]=340520;J[a+540>>2]=0;J[a+544>>2]=0;J[a+548>>2]=0;J[a+552>>2]=0;J[695492]=0;d=a+544|0;ga(2226,d|0,340560,5)|0;e=J[695492];J[695492]=0;if((e|0)!=1){if(H[a+543|0]>=0)break c;J[a+536>>2]=0;b=J[a+532>>2];break b}b=Z()|0;if(H[a+555|0]<0)qc(J[a+544>>2]);if(H[a+543|0]<0)qc(J[a+532>>2]);kn(a+456|0)}ln(c);break a}H[a+543|0]=0}J[b>>2]=0;I[a+576>>1]=0;J[a+ -568>>2]=0;J[a+572>>2]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+580>>2]=0;J[a+584>>2]=0;J[a+588>>2]=0;J[a+592>>2]=0;J[a+704>>2]=0;J[a+696>>2]=0;J[a+700>>2]=0;J[a+640>>2]=0;J[a+632>>2]=0;J[a+636>>2]=0;J[a+624>>2]=0;J[a+628>>2]=1082261504;J[a+616>>2]=0;J[a+620>>2]=1082556416;J[a+608>>2]=0;J[a+612>>2]=1080541184;J[a+600>>2]=0;J[a+604>>2]=1080705024;J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;g:{if(H[a+555|0]<0){J[a+548>>2]=0;d=J[a+544>>2];break g}H[a+555|0]=0}J[d>>2]=0;J[a+688>>2]=0;J[a+692>>2]=-1074790400;H[a+680| -0]=0;J[a+672>>2]=0;J[a+676>>2]=1072693248;J[a+668>>2]=0;J[a+660>>2]=0;J[a+664>>2]=0;return a|0}b=Z()|0}J[a+24>>2]=340424;c=J[a+52>>2];if(c){qc(c);J[a+52>>2]=0}ba(b|0);B()}function wpa(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;e=bc-48|0;bc=e;a:{j=J[c+8>>2];if(j)while(1){k=J[j+8>>2];b:{if(!k)break b;J[e+40>>2]=0;J[e+44>>2]=0;f=Uk(e+32|0,a);J[695492]=0;h=kf(f);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;i=k+68|0;c=i;c=J[J[c+12>>2]+((h>>>0)%M[c+8>>2]<<2)>>2]; -g=J[695492];J[695492]=0;if((g|0)==1)break a;g=0;c:{if(!c)break c;while(1){d:{if((h|0)!=J[c+12>>2])break d;J[695492]=0;l=ga(5117,c+16|0,f|0,-1)|0;m=J[695492];J[695492]=0;if((m|0)==1)break a;if(l)break d;g=c;break c}c=J[c+8>>2];if(c)continue;break}}J[e+44>>2]=i;J[e+40>>2]=g;sc(f);if(!g)break b;e:{c=J[j+8>>2];if((k|0)==(c|0)){k=Ln(e+16|0,g+24|0);g=J[e+24>>2];if(!g)break e;while(1){f:{c=J[g+8>>2];g:{if(!c)break g;J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;h:{i:{if((c|0)!=1){c=J[g+8>>2]; -J[e+12>>2]=c;if(!c)break g;J[695492]=0;f=aa(4989,e+4|0,b|0)|0;h=J[695492];J[695492]=0;j:{k:{if((h|0)!=1){J[695492]=0;h=kf(f);i=J[695492];J[695492]=0;if((i|0)==1)break k;J[695492]=0;c=J[J[c+28>>2]+((h>>>0)%M[c+24>>2]<<2)>>2];i=J[695492];J[695492]=0;if((i|0)==1)break k;l:{if(c)while(1){if((h|0)==J[c+12>>2]){J[695492]=0;i=ga(5117,c+16|0,f|0,-1)|0;l=J[695492];J[695492]=0;if((l|0)==1)break k;if(!i)break l}c=J[c+8>>2];if(c)continue;break}sc(f);break h}sc(f);J[695492]=0;c=aa(5546,d|0,c+24|0)|0;f=J[695492]; -J[695492]=0;if((f|0)!=1){J[695492]=0;aa(4993,c+24|0,e+12|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break h}c=Z()|0;break j}c=Z()|0;break j}c=Z()|0;sc(f)}vc(e+12|0);break i}c=Z()|0}$c(k);ba(c|0);B()}c=J[e+12>>2];J[e+12>>2]=0;if(!c)break g;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[695492];J[695492]=0;if((h|0)==1)break f;if(f)break g;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break f}g=J[g>>2];if(g)continue;break e}break}ea(0)|0;yc();B()}aj(e+40|0,c+68|0);B()}$c(k)}j=J[j>>2];if(j)continue; -break}bc=e+48|0;return}a=Z()|0;sc(f);ba(a|0);B()}function d2(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=Q(0),k=0,l=0,m=Q(0),n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=Q(0);g=bc-112|0;bc=g;a:{q=J[b+84>>2];if((q|0)>0){r=a+316|0;p=a+304|0;s=g+80|0;while(1){i=fn(b,h);c=J[i>>2];k=(c|0)>0?c:0;J[g+108>>2]=k;c=J[J[a+328>>2]+216>>2]?p:r;d=c+4|0;e=d;b:{c:{c=J[c+4>>2];if(!c)break c;while(1){l=J[c+16>>2]<(k|0);e=l?e:c;c=J[(l?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(e|0)|J[e+16>>2]>(k|0))break c;d=e+20|0;break b}H[g+3|0]=0; -H[g+2|0]=0;c=g+4|0;St(c,a,g+108|0,g+3|0,0,g+2|0);J[695492]=0;da(2758,p|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;fj(s);d=0;c=J[J[a+328>>2]+216>>2]?p:r;l=c+4|0;e=l;c=J[c+4>>2];if(!c)break b;while(1){t=J[c+16>>2]<(k|0);e=t?e:c;c=J[(t?c+4|0:c)>>2];if(c)continue;break}if((e|0)==(l|0))break b;d=J[e+16>>2]<=(k|0)?e+20|0:0}c=J[d+12>>2];d:{e:{f:{g:{e=J[d+4>>2];switch(e-1|0){case 1:break g;case 0:break e;default:break f}}nC(b,h,j,Q(0));oC(b,h,Q(0),Q(0),Q(0),Q(0));mC(b,h,2);c=0;j=Q(j+Q(O[a+144>>3]+ -O[a+8>>3]*+N[d+16>>2]));break d}e=0}mC(b,h,e);h:{if(!K[a+105|0]|!f)break h;if(J[fn(b,h)+60>>2]!=J[fn(b,h-1|0)+60>>2])break h;aM(J[a+188>>2],f,c,g+4|0);j=Q(j+Q(J[g+4>>2]>>6))}m=N[b+12>>2];n=+Q(m+Q(0));u=N[b+8>>2];o=+Q(j+u);nC(b,h,Q(n*O[b+40>>3]+(o*O[b+24>>3]+O[b+56>>3])-+u),Q(n*O[b+48>>3]+(o*O[b+32>>3]+O[b+64>>3])-+m));f=fn(b,h);e=d- -64|0;k=J[e+4>>2];J[f+52>>2]=J[e>>2];J[f+56>>2]=k;e=J[d+60>>2];J[f+44>>2]=J[d+56>>2];J[f+48>>2]=e;e=J[d+52>>2];J[f+36>>2]=J[d+48>>2];J[f+40>>2]=e;e=J[d+44>>2];J[f+28>> -2]=J[d+40>>2];J[f+32>>2]=e;oC(b,h,N[d+24>>2],N[d+36>>2],N[d+28>>2],N[d+32>>2]);n=O[a+144>>3];o=O[a+8>>3];m=N[d+16>>2];H[i+64|0]=K[d+72|0];f=J[d+80>>2];J[i+68>>2]=J[d+76>>2];J[i+72>>2]=f;f=J[d+88>>2];J[i+76>>2]=J[d+84>>2];J[i+80>>2]=f;f=J[d+96>>2];J[i+84>>2]=J[d+92>>2];J[i+88>>2]=f;J[i+92>>2]=J[d+100>>2];j=Q(j+Q(n+o*+m))}f=c;h=h+1|0;if((q|0)!=(h|0))continue;break}N[b+16>>2]=j+N[b+8>>2];N[b+20>>2]=N[b+12>>2]+Q(0)}bc=g+112|0;return}a=Z()|0;fj(s);ba(a|0);B()}function $9a(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;a:{e=J[a+444>>2];if(!J[e+48>>2]){if(!(gc[J[J[a+448>>2]+12>>2]](a,J[((J[e+64>>2]<<2)+e|0)+56>>2])|0))break a;J[e+48>>2]=1;J[e+76>>2]=J[e+76>>2]+1}b:switch(J[e+68>>2]){case 2:gc[J[J[a+452>>2]+4>>2]](a,J[((J[e+64>>2]<<2)+e|0)+56>>2],e+52|0,J[e+72>>2],b,c,d);if(M[e+52>>2]>2])break a;J[e+68>>2]=0;if(M[c>>2]>=d>>>0)break a;case 0:J[e+52>>2]=0;l=J[a+324>>2];J[e+72>>2]=l-1;c:{if(J[e+76>>2]!=J[a+328>>2])break c;q=J[a+36>>2];if((q| -0)<=0)break c;n=J[a+444>>2];r=(J[n+64>>2]<<2)+n|0;i=J[a+216>>2];while(1){f=P(J[i+40>>2],J[i+12>>2]);g=M[i+48>>2]%(f>>>0)|0;g=g?g:f;f=(f|0)/(l|0)|0;if(!j)J[n+72>>2]=((g-1|0)/(f|0)|0)+1;d:{if((f|0)<=0)break d;f=f<<1;h=(f|0)<=1?1:f;p=h&7;f=J[J[r+56>>2]+(j<<2)>>2]+(g<<2)|0;g=J[f-4>>2];o=0;m=0;if(h>>>0>=8){s=h&2147483640;k=0;while(1){h=m<<2;J[h+f>>2]=g;J[f+(h|4)>>2]=g;J[f+(h|8)>>2]=g;J[f+(h|12)>>2]=g;J[f+(h|16)>>2]=g;J[f+(h|20)>>2]=g;J[f+(h|24)>>2]=g;J[f+(h|28)>>2]=g;m=m+8|0;k=k+8|0;if((s|0)!=(k|0))continue; -break}}if(!p)break d;while(1){J[f+(m<<2)>>2]=g;m=m+1|0;o=o+1|0;if((p|0)!=(o|0))continue;break}}i=i+88|0;j=j+1|0;if((q|0)!=(j|0))continue;break}}J[e+68>>2]=1;break;case 1:break b;default:break a}gc[J[J[a+452>>2]+4>>2]](a,J[((J[e+64>>2]<<2)+e|0)+56>>2],e+52|0,J[e+72>>2],b,c,d);if(M[e+52>>2]>2])break a;b=J[a+324>>2];e:{if(J[e+76>>2]!=1)break e;h=J[a+36>>2];if((h|0)<=0)break e;m=b+2|0;n=b+1|0;g=J[a+444>>2];i=J[a+216>>2];j=0;while(1){c=(P(J[i+40>>2],J[i+12>>2])|0)/(b|0)|0;if((c|0)>0){a=j<<2;d= -J[a+J[g+60>>2]>>2];f=J[a+J[g+56>>2]>>2];p=P(c,m);o=P(c,n);a=0;while(1){k=a-c<<2;l=a+o<<2;J[k+f>>2]=J[l+f>>2];J[d+k>>2]=J[d+l>>2];k=a+p<<2;l=a<<2;J[k+f>>2]=J[l+f>>2];J[d+k>>2]=J[d+l>>2];a=a+1|0;if((c|0)!=(a|0))continue;break}}i=i+88|0;j=j+1|0;if((h|0)!=(j|0))continue;break}}J[e+48>>2]=0;J[e+68>>2]=2;J[e+72>>2]=b+2;J[e+52>>2]=b+1;J[e+64>>2]=J[e+64>>2]^1}}function ho(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,r=0,s=0,t=0,u=0,v=0;d=a&65535;f=a>>>16|0;a:{if((c|0)==1){a=K[b|0]+d| -0;a=a>>>0>65520?a-65521|0:a;b=a+f|0;c=b<<16;a=(b>>>0>65520?c+983040|0:c)|a;break a}if(b){b:{c:{d:{e:{if(c>>>0>=16){f:{if(c>>>0>5551){while(1){c=c-5552|0;e=347;a=b;while(1){g=K[a|0]+d|0;i=g+K[a+1|0]|0;j=i+K[a+2|0]|0;k=j+K[a+3|0]|0;l=k+K[a+4|0]|0;m=l+K[a+5|0]|0;n=m+K[a+6|0]|0;o=n+K[a+7|0]|0;p=o+K[a+8|0]|0;q=p+K[a+9|0]|0;r=q+K[a+10|0]|0;s=r+K[a+11|0]|0;t=s+K[a+12|0]|0;u=t+K[a+13|0]|0;v=u+K[a+14|0]|0;d=v+K[a+15|0]|0;f=d+(v+(u+(t+(s+(r+(q+(p+(o+(n+(m+(l+(k+(j+(i+(f+g|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)| -0)|0)|0)|0;a=a+16|0;e=e-1|0;if(e)continue;break}f=(f>>>0)%65521|0;d=(d>>>0)%65521|0;b=b+5552|0;if(c>>>0>5551)continue;break}if(!c)break b;if(c>>>0<16)break f}while(1){a=K[b|0]+d|0;e=a+K[b+1|0]|0;g=e+K[b+2|0]|0;i=g+K[b+3|0]|0;j=i+K[b+4|0]|0;k=j+K[b+5|0]|0;l=k+K[b+6|0]|0;m=l+K[b+7|0]|0;n=m+K[b+8|0]|0;o=n+K[b+9|0]|0;p=o+K[b+10|0]|0;q=p+K[b+11|0]|0;r=q+K[b+12|0]|0;s=r+K[b+13|0]|0;t=s+K[b+14|0]|0;d=t+K[b+15|0]|0;f=d+(t+(s+(r+(q+(p+(o+(n+(m+(l+(k+(j+(i+(g+(e+(a+f|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)| -0)|0)|0;b=b+16|0;c=c-16|0;if(c>>>0>15)continue;break}if(!c)break c}g=c&3;if(g)break e;a=c;break d}g:{if(!c)break g;g=c&3;h:{if(!g){a=c;break h}a=c;e=b;while(1){a=a-1|0;d=K[e|0]+d|0;f=f+d|0;b=e+1|0;e=b;h=h+1|0;if((g|0)!=(h|0))continue;break}}if(c>>>0<4)break g;while(1){c=K[b|0]+d|0;e=c+K[b+1|0]|0;h=e+K[b+2|0]|0;d=h+K[b+3|0]|0;f=d+(h+(e+(c+f|0)|0)|0)|0;b=b+4|0;a=a-4|0;if(a)continue;break}}a=(f>>>0)%65521<<16|(d>>>0>65520?d-65521|0:d);break a}a=c;e=b;while(1){a=a-1|0;d=K[e|0]+d|0;f=f+d|0;b=e+1|0;e=b; -h=h+1|0;if((g|0)!=(h|0))continue;break}}if(c>>>0<4)break c;while(1){c=K[b|0]+d|0;e=c+K[b+1|0]|0;h=e+K[b+2|0]|0;d=h+K[b+3|0]|0;f=d+(h+(e+(c+f|0)|0)|0)|0;b=b+4|0;a=a-4|0;if(a)continue;break}}f=(f>>>0)%65521|0;d=(d>>>0)%65521|0}a=f<<16|d}else a=1}return a}function Xt(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,u=0;j=bc-16|0;bc=j;r=f*3.141592/180;q=He(r);q=Cf(xe(r)/e,q/d);n=J[a+4>>2];J[j+12>>2]=0;s=Ke(n,j+12|0),t=2,H[s|0]=t;k=xe(q);i=J[j+12>>2];O[i+8>>3]=e*k+c;s=i,u=d*He(q)+b, -O[s>>3]=u;J[n>>2]=J[n>>2]+1;if(R(f)<2147483648)n=~~f;else n=-2147483648;i=(n|0)/90|0;n=(n|0)<=89?1:((i|0)>=3?3:i)+1|0;if(R(g)<2147483648)i=~~g;else i=-2147483648;o=(i|0)/90|0;o=(i|0)<=89?1:((o|0)>=3?3:o)+1|0;q=g*3.141592/180;a:{if(h){if(n>>>0>>0)break a;h=n;while(1){f=r;if((h|0)!=(n|0))f=+Q(Q(Q(P(h,90)>>>0)*Q(3.141592025756836))/Q(180));g=q;if((h|0)!=(o|0))g=+Q(Q(Q(P(h,90)-90>>>0)*Q(3.141592025756836))/Q(180));k=He(g);g=xe(g);l=He(f);f=Cf(xe(f)/e,l/d);g=Cf(g/e,k/d);l=g-f;k=Lu(l*.5);i=J[a+4>>2]; -J[j+12>>2]=0;s=Ke(i,j+12|0),t=4,H[s|0]=t;p=xe(l);l=He(f);f=xe(f);m=J[j+12>>2];k=p*(Y(k*(k*3)+4)+-1)/3;p=k*e;O[m+8>>3]=l*p+(e*f+c);k=k*d;O[m>>3]=d*l+b-f*k;J[i>>2]=J[i>>2]+1;J[j+12>>2]=0;s=Ke(i,j+12|0),t=4,H[s|0]=t;f=He(g);g=xe(g);m=J[j+12>>2];l=e*g+c;O[m+8>>3]=l-p*f;f=d*f+b;O[m>>3]=k*g+f;J[i>>2]=J[i>>2]+1;J[j+12>>2]=0;s=Ke(i,j+12|0),t=4,H[s|0]=t;m=J[j+12>>2];O[m+8>>3]=l;O[m>>3]=f;J[i>>2]=J[i>>2]+1;h=h-1|0;if(o>>>0<=h>>>0)continue;break}break a}if(n>>>0>o>>>0)break a;h=n;while(1){f=q;if((h|0)!=(o|0))f= -+Q(Q(Q(P(h,90)>>>0)*Q(3.141592025756836))/Q(180));g=He(f);k=xe(f);if((h|0)!=(n|0))r=+Q(Q(Q(P(h,90)-90>>>0)*Q(3.141592025756836))/Q(180));f=He(r);f=Cf(xe(r)/e,f/d);g=Cf(k/e,g/d);l=g-f;k=Lu(l*.5);i=J[a+4>>2];J[j+12>>2]=0;s=Ke(i,j+12|0),t=4,H[s|0]=t;p=xe(l);l=He(f);f=xe(f);m=J[j+12>>2];k=p*(Y(k*(k*3)+4)+-1)/3;p=k*e;O[m+8>>3]=l*p+(e*f+c);k=k*d;O[m>>3]=d*l+b-f*k;J[i>>2]=J[i>>2]+1;J[j+12>>2]=0;s=Ke(i,j+12|0),t=4,H[s|0]=t;f=He(g);g=xe(g);m=J[j+12>>2];l=e*g+c;O[m+8>>3]=l-p*f;f=d*f+b;O[m>>3]=k*g+f;J[i>>2]= -J[i>>2]+1;J[j+12>>2]=0;s=Ke(i,j+12|0),t=4,H[s|0]=t;m=J[j+12>>2];O[m+8>>3]=l;O[m>>3]=f;J[i>>2]=J[i>>2]+1;h=h+1|0;if(o>>>0>=h>>>0)continue;break}}bc=j+16|0}function _Na(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;a=wc(a,0,256);d=J[b>>2]+c|0;e=K[d|0];f=K[d+5|0];h=e-f|0;j=K[d+1|0];i=K[d+4|0];g=j-i|0;k=K[d+2|0];l=K[d+3|0];d=k-l|0;J[a+12>>2]=h-(g+d|0)<<3;e=e+f|0;f=k+l|0;J[a+8>>2]=P(e-f|0,10033)+512>>10;e=e+f|0;f=i+j|0;J[a>>2]=(e+f<<3)-6144;J[a+16>>2]=P(e-(f<<1)|0,5793)+512>>10; -e=d-g<<3;d=P(d+h|0,2998)+512>>10;J[a+20>>2]=e+d;J[a+4>>2]=d+(g+h<<3);d=J[b+4>>2]+c|0;e=K[d|0];f=K[d+5|0];h=e-f|0;j=K[d+1|0];i=K[d+4|0];g=j-i|0;k=K[d+2|0];l=K[d+3|0];d=k-l|0;J[a+44>>2]=h-(g+d|0)<<3;e=e+f|0;f=k+l|0;J[a+40>>2]=P(e-f|0,10033)+512>>10;f=e+f|0;j=i+j|0;e=(f+j<<3)-6144|0;J[a+32>>2]=e;J[a+48>>2]=P(f-(j<<1)|0,5793)+512>>10;f=d-g<<3;d=P(d+h|0,2998)+512>>10;J[a+52>>2]=f+d;d=d+(g+h<<3)|0;J[a+36>>2]=d;b=J[b+8>>2]+c|0;f=K[b+2|0];j=K[b+3|0];c=f-j|0;i=K[b|0];k=K[b+5|0];h=i-k|0;g=P(c+h|0,2998)+512>> -10;l=K[b+1|0];m=K[b+4|0];b=l-m|0;J[a+84>>2]=g+(c-b<<3);f=f+j|0;j=i+k|0;i=f+j|0;k=l+m|0;J[a+80>>2]=P(i-(k<<1)|0,5793)+512>>10;l=J[a>>2];i=(i+k<<3)-6144|0;J[a+32>>2]=P(l-i|0,17837)+16384>>15;i=i+l|0;J[a+64>>2]=P(i-(e<<1)|0,10298)+16384>>15;J[a>>2]=P(e+i|0,14564)+16384>>15;e=J[a+4>>2];g=g+(b+h<<3)|0;J[a+36>>2]=P(e-g|0,17837)+16384>>15;g=e+g|0;J[a+68>>2]=P(g-(d<<1)|0,10298)+16384>>15;J[a+4>>2]=P(d+g|0,14564)+16384>>15;d=J[a+40>>2];g=J[a+8>>2];e=P(j-f|0,10033)+512>>10;J[a+40>>2]=P(g-e|0,17837)+16384>> -15;g=e+g|0;J[a+72>>2]=P(g-(d<<1)|0,10298)+16384>>15;J[a+8>>2]=P(d+g|0,14564)+16384>>15;b=h-(b+c|0)<<3;c=J[a+12>>2];d=b+c|0;h=J[a+44>>2];J[a+76>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+12>>2]=P(d+h|0,14564)+16384>>15;J[a+44>>2]=P(c-b|0,17837)+16384>>15;b=J[a+80>>2];c=J[a+16>>2];d=b+c|0;h=J[a+48>>2];J[a+80>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+16>>2]=P(d+h|0,14564)+16384>>15;J[a+48>>2]=P(c-b|0,17837)+16384>>15;b=J[a+84>>2];c=J[a+20>>2];d=b+c|0;h=J[a+52>>2];J[a+84>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+ -20>>2]=P(d+h|0,14564)+16384>>15;J[a+52>>2]=P(c-b|0,17837)+16384>>15}function Vd(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;if(!a)return zc(b)|0;if(b>>>0>=4294967232){J[694731]=48;return 0}f=b>>>0<11?16:b+11&-8;e=a-8|0;i=J[e+4>>2];d=i&-8;a:{if(!(i&3)){if(f>>>0<256)break a;if(d>>>0>=f+4>>>0){c=e;if(d-f>>>0<=J[695488]<<1>>>0)break a}c=0;break a}g=d+e|0;b:{if(d>>>0>=f>>>0){c=d-f|0;if(c>>>0<16)break b;J[e+4>>2]=i&1|f|2;d=e+f|0;J[d+4>>2]=c|3;J[g+4>>2]=J[g+4>>2]|1;Hy(d,c);break b}if(J[695374]== -(g|0)){d=d+J[695371]|0;if(d>>>0<=f>>>0)break a;J[e+4>>2]=i&1|f|2;c=e+f|0;d=d-f|0;J[c+4>>2]=d|1;J[695371]=d;J[695374]=c;break b}if(J[695373]==(g|0)){d=d+J[695370]|0;if(d>>>0>>0)break a;c=d-f|0;c:{if(c>>>0>=16){J[e+4>>2]=i&1|f|2;h=e+f|0;J[h+4>>2]=c|1;d=d+e|0;J[d>>2]=c;J[d+4>>2]=J[d+4>>2]&-2;break c}J[e+4>>2]=d|i&1|2;c=d+e|0;J[c+4>>2]=J[c+4>>2]|1;c=0}J[695373]=h;J[695370]=c;break b}h=J[g+4>>2];if(h&2)break a;j=d+(h&-8)|0;if(j>>>0>>0)break a;l=j-f|0;d:{if(h>>>0<=255){c=J[g+12>>2];d=J[g+8>>2];if((c| -0)==(d|0)){n=2781472,o=J[695368]&Hzb(-2,h>>>3|0),J[n>>2]=o;break d}J[d+12>>2]=c;J[c+8>>2]=d;break d}k=J[g+24>>2];d=J[g+12>>2];e:{if((g|0)!=(d|0)){c=J[g+8>>2];J[c+12>>2]=d;J[d+8>>2]=c;break e}f:{c=g+20|0;h=J[c>>2];if(!h){h=J[g+16>>2];if(!h)break f;c=g+16|0}while(1){m=c;d=h;c=d+20|0;h=J[c>>2];if(h)continue;c=d+16|0;h=J[d+16>>2];if(h)continue;break}J[m>>2]=0;break e}d=0}if(!k)break d;c=J[g+28>>2];h=(c<<2)+2781776|0;g:{if(J[h>>2]==(g|0)){J[h>>2]=d;if(d)break g;n=2781476,o=J[695369]&Hzb(-2,c),J[n>>2]= -o;break d}J[(J[k+16>>2]==(g|0)?16:20)+k>>2]=d;if(!d)break d}J[d+24>>2]=k;c=J[g+16>>2];if(c){J[d+16>>2]=c;J[c+24>>2]=d}c=J[g+20>>2];if(!c)break d;J[d+20>>2]=c;J[c+24>>2]=d}if(l>>>0<=15){J[e+4>>2]=i&1|j|2;c=e+j|0;J[c+4>>2]=J[c+4>>2]|1;break b}J[e+4>>2]=i&1|f|2;c=e+f|0;J[c+4>>2]=l|3;d=e+j|0;J[d+4>>2]=J[d+4>>2]|1;Hy(c,l)}c=e}if(c)return c+8|0;c=zc(b);if(!c)return 0;e=J[a-4>>2];e=(e&3?-4:-8)+(e&-8)|0;tc(c,a,b>>>0>e>>>0?e:b);qc(a);return c|0}function sD(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,r=0;f=!a;a:{if(f|(((f?-1:J[a+8>>2])|0)!=1|b-5>>>0<4294967292))break a;f=c;if(!f){f=$6();if(!f)break a}h=a?J[a>>2]:-1;e=a?J[a+4>>2]:-1;if((e|0)<2)break a;l=a?J[a+12>>2]:-1;r=a?J[a+40>>2]:0;h=uh((h|0)/2|0,e>>>1|0,1);if(!h)break a;if(!(!h|!a|(a|0)==(h|0))){J[h+20>>2]=J[a+20>>2];J[h+24>>2]=J[a+24>>2]}mu(h,Q(.5),Q(.5));a=h?J[h+12>>2]:-1;o=h?J[h+40>>2]:0;i=a<<1;i=(l|0)>(i|0)?i:l;b:{c:switch(b-1|0){case 3:if((e|0)<2|(i|0)<=0)break b;e=e-2>>>1|0;while(1){k=(P(j,l)<<2)+r|0;m=k+(l<<2)|0;n= -(P(a,g)<<2)+o|0;b=0;while(1){d=b<<2;d=J[d+m>>2]&J[d+k>>2];d=P(d<<1&d&-1431655766,129);I[(n+(b<<1)^2)>>1]=K[(d>>>24|0)+f|0]<<8|K[(d>>>8&255)+f|0];b=b+1|0;if((i|0)!=(b|0))continue;break}j=j+2|0;b=(e|0)==(g|0);g=g+1|0;if(!b)continue;break}break b;case 2:if((e|0)<2|(i|0)<=0)break b;e=e-2>>>1|0;while(1){k=(P(j,l)<<2)+r|0;m=k+(l<<2)|0;n=(P(a,g)<<2)+o|0;b=0;while(1){d=b<<2;p=J[d+m>>2];d=J[d+k>>2];q=p|d;d=d&p;d=P(q<<1&q&(d<<1|d)&-1431655766,129);I[(n+(b<<1)^2)>>1]=K[(d>>>24|0)+f|0]<<8|K[(d>>>8&255)+f|0]; -b=b+1|0;if((i|0)!=(b|0))continue;break}j=j+2|0;b=(e|0)==(g|0);g=g+1|0;if(!b)continue;break}break b;case 1:if((e|0)<2|(i|0)<=0)break b;e=e-2>>>1|0;while(1){k=(P(j,l)<<2)+r|0;m=k+(l<<2)|0;n=(P(a,g)<<2)+o|0;b=0;while(1){d=b<<2;p=J[d+m>>2];d=J[d+k>>2];q=p&d;d=d|p;d=P((q<<1|d<<1&d|q)&-1431655766,129);I[(n+(b<<1)^2)>>1]=K[(d>>>24|0)+f|0]<<8|K[(d>>>8&255)+f|0];b=b+1|0;if((i|0)!=(b|0))continue;break}j=j+2|0;b=(e|0)==(g|0);g=g+1|0;if(!b)continue;break}break b;case 0:break c;default:break b}if((e|0)<2|(i|0)<= -0)break b;e=e-2>>>1|0;while(1){k=(P(j,l)<<2)+r|0;m=k+(l<<2)|0;n=(P(a,g)<<2)+o|0;b=0;while(1){d=b<<2;d=J[d+m>>2]|J[d+k>>2];d=P((d<<1|d)&-1431655766,129);I[(n+(b<<1)^2)>>1]=K[(d>>>24|0)+f|0]<<8|K[(d>>>8&255)+f|0];b=b+1|0;if((i|0)!=(b|0))continue;break}j=j+2|0;b=(e|0)!=(g|0);g=g+1|0;if(b)continue;break}}if(!c)qc(f);o=h}return o}function fra(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;if(!J[b+12>>2]){J[a>>2]=0;md(a,0);return}e=J[d+4>>2];i=J[d+12>>2];j=J[d>>2];g=J[d+8>>2];f=rc(24); -J[695492]=0;i=i-e|0;e=g-j|0;k=ha(5262,f|0,i|0,e|0,0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){J[a>>2]=0;md(a,k);f=J[a>>2];if(L[f+8>>1])l=J[f+16>>2];k=J[b+12>>2];f=L[f+12>>1];J[695492]=0;h=k;k=P(f,3);ua(5508,h|0,c|0,d|0,l|0,k|0,3,0);f=J[695492];J[695492]=0;a:{b:{c:{if((f|0)==1)break c;d:{if(!J[b+20>>2])break d;f=1;h=J[b+16>>2];if(!(!h|J[b+36>>2]<0)){f=J[b+40>>2];J[695492]=0;ua(5508,h|0,c|0,d|0,l+1|0,k|0,3,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break c;f=J[b+40>>2];h=J[b+20>>2];J[695492]=0;ua(5508, -h|0,c|0,d|0,l+2|0,k|0,3,f|0);c=J[695492];J[695492]=0;if((c|0)==1)break c;f=J[b+20>>2]!=0}if(!f|!J[b+16>>2])break d;if(J[b+36>>2]>=0)break b}if((i|0)<=0|(e|0)<=0)break a;d=J[a>>2];l=e&-4;f=e&3;c=0;j=g+(j^-1)>>>0<3;while(1){b=0;e:{if(L[d+8>>1]<=c>>>0)break e;a=J[d+16>>2];b=0;if(!a)break e;b=a+P(P(L[d+12>>1],c),3)|0}a=0;if(!j)while(1){e=K[b|0]^127;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;e=K[b+3|0]^127;H[b+3|0]=e;H[b+5|0]=e;H[b+4|0]=e;e=K[b+6|0]^127;H[b+6|0]=e;H[b+8|0]=e;H[b+7|0]=e;e=K[b+9|0]^127;H[b+9|0]=e;H[b+ -11|0]=e;H[b+10|0]=e;b=b+12|0;a=a+4|0;if((l|0)!=(a|0))continue;break}a=0;if(f)while(1){e=K[b|0]^127;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;b=b+3|0;a=a+1|0;if((f|0)!=(a|0))continue;break}c=c+1|0;if((i|0)!=(c|0))continue;break}break a}b=Z()|0;vc(a);ba(b|0);B()}c=0;f=0;a=J[a>>2];if(L[a+8>>1])f=J[a+16>>2];if((e|0)<=0|(i|0)<=0)break a;l=P(L[a+12>>1],3);while(1){b=f;d=0;while(1){a=H[b+2|0];j=(a>>1)+a|0;a=H[b|0]+128|0;g=j+a|0;g=(g|0)>=255?255:g;H[b+2|0]=(g|0)>0?g:0;g=H[b+1|0];a=a-(g>>2)|0;g=a+(g<<1)|0;g=(g|0)>=255? -255:g;H[b|0]=(g|0)>0?g:0;a=a-(j>>1)|0;a=(a|0)>=255?255:a;H[b+1|0]=(a|0)>0?a:0;b=b+3|0;d=d+1|0;if((e|0)!=(d|0))continue;break}f=f+l|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}return}a=Z()|0;qc(f);ba(a|0);B()}function P9(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,p=0,q=0,r=0,s=0;a:{b:{f=f-16|0;if(f){if((f|0)==16)break b;break a}i=J[a+20>>2];if((i|0)<=0)break a;h=J[a+16>>2];if((h|0)<=0)break a;f=(((((((((((((((c&1)+(c>>>1&1)|0)+(c>>>2&1)|0)+(c>>>3&1)|0)+(c>>>4&1)|0)+(c>>>5&1)|0)+(c>>>6&1)|0)+ -(c>>>7&1)|0)+(c>>>8&1)|0)+(c>>>9&1)|0)+(c>>>10&1)|0)+(c>>>11&1)|0)+(c>>>12&1)|0)+(c>>>13&1)|0)+(c>>>14&1)|0)+(c>>>15&1)|0;q=(f+((((((((((((((((d&1)+(d>>>1&1)|0)+(d>>>2&1)|0)+(d>>>3&1)|0)+(d>>>4&1)|0)+(d>>>5&1)|0)+(d>>>6&1)|0)+(d>>>7&1)|0)+(d>>>8&1)|0)+(d>>>9&1)|0)+(d>>>10&1)|0)+(d>>>11&1)|0)+(d>>>12&1)|0)+(d>>>13&1)|0)+(d>>>14&1)|0)+(d>>>15&1)|0)|0)-8|0;r=q+((((((((((((((((e>>>1&1)+(e&1)|0)+(e>>>2&1)|0)+(e>>>3&1)|0)+(e>>>4&1)|0)+(e>>>5&1)|0)+(e>>>6&1)|0)+(e>>>7&1)|0)+(e>>>8&1)|0)+(e>>>9&1)|0)+(e>>> -10&1)|0)+(e>>>11&1)|0)+(e>>>12&1)|0)+(e>>>13&1)|0)+(e>>>14&1)|0)+(e>>>15&1)|0)|0;s=8-f|0;j=(h+1|0)/2<<2;k=J[a+56>>2];while(1){h=i;i=h-1|0;f=J[a+16>>2];if((f|0)>0){l=P(i,j);m=k+P(J[a+52>>2],i)|0;while(1){n=f-1|0;g=l+(n<<1)|0;o=K[(g|1)+b|0];p=m+P(n,3)|0;g=K[b+g|0];H[p|0]=(g&e)<>>r;H[p+1|0]=(d&g)>>>q;g=f>>>0>1;f=n;if(g)continue;break}}if((h|0)>=2)continue;break}break a}h=J[a+20>>2];if((h|0)<=0)break a;f=J[a+16>>2];if((f|0)<=0)break a;i=f<<2;n=J[a+56>>2];j=(((c>>>0>255)+b|0)+ -(c>>>0>65535)|0)+(c>>>0>16777215)|0;k=(((d>>>0>255)+b|0)+(d>>>0>65535)|0)+(d>>>0>16777215)|0;l=(((e>>>0>255)+b|0)+(e>>>0>65535)|0)+(e>>>0>16777215)|0;while(1){b=h;h=h-1|0;c=J[a+16>>2];c:{if((c|0)<=0)break c;m=P(h,i);o=n+P(J[a+52>>2],h)|0;f=c;if(c&1){f=c-1|0;e=o+P(f,3)|0;d=m+(f<<2)|0;H[e|0]=K[d+l|0];H[e+1|0]=K[d+k|0];H[e+2|0]=K[d+j|0]}if((c|0)==1)break c;while(1){d=o+P(f,3)|0;g=d-3|0;c=f-1|0;e=m+(c<<2)|0;H[g|0]=K[e+l|0];H[g+1|0]=K[e+k|0];H[g+2|0]=K[e+j|0];e=d-6|0;f=f-2|0;d=m+(f<<2)|0;H[e|0]=K[d+l| -0];H[e+1|0]=K[d+k|0];H[e+2|0]=K[d+j|0];if(c>>>0>1)continue;break}}if((b|0)>=2)continue;break}}}function vr(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=bc-16|0;bc=g;a:{b:{c:{d:{f=J[a+8>>2];if(M[a+4>>2]<=f+3>>>0)break d;e=J[a+20>>2];e:{if(e){d=g+12|0;if((gc[e|0](a,f,d,4)|0)!=4)break d;f=J[a+8>>2];break e}d=J[a>>2];if(!d)break c;d=d+f|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break b}e=85;break a}h=0}d=f+4|0;J[a+8>>2]=d;e=2;if((b|0)!=(h|0))break a;f:{g:{h:{if(M[a+ -4>>2]>f+7>>>0){b=J[a+20>>2];if(!b){J[a+8>>2]=f+8;f=f+24|0;break g}if((gc[b|0](a,d,g+12|0,4)|0)==4)break h}e=85;break a}d=J[a+8>>2];J[a+8>>2]=d+4;f=d+20|0;b=J[a+20>>2];if(!b)break g;e=85;if(gc[b|0](a,f,0,0)|0)break a;b=J[a+4>>2];break f}e=85;b=J[a+4>>2];if(f>>>0>b>>>0)break a}J[a+8>>2]=f;i:{j:{k:{if(d+21>>>0>=b>>>0)break k;e=J[a+20>>2];if(e){b=g+12|0;if((gc[e|0](a,f,b,2)|0)!=2)break k;f=J[a+8>>2];break i}b=J[a>>2];if(!b)break j;b=b+f|0;break i}e=85;break a}J[a+8>>2]=d+22;e=2;break a}e=2;b=K[b|0]|K[b+ -1|0]<<8;J[a+8>>2]=f+2;h=(b<<8|b>>>8)&65535;if(!h)break a;b=0;while(1){l:{e=J[a+8>>2];if(M[a+4>>2]<=e+3>>>0)break l;m:{n:{o:{p:{f=J[a+20>>2];q:{if(f){d=g+12|0;if((gc[f|0](a,e,d,4)|0)!=4)break l;e=J[a+8>>2];break q}d=J[a>>2];if(!d)break p;d=d+e|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=e+4|0;J[a+8>>2]=f;if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))==2){J[g+8>>2]=0;r:{s:{t:{if(M[a+4>>2]<=e+7>>>0)break t;e=J[a+20>>2];u:{if(e){d=g+12|0;if((gc[e|0](a,f,d,4)|0)!=4)break t;f=J[a+8>>2];break u}d= -J[a>>2];if(!d)break s;d=d+f|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break r}J[g+8>>2]=85;break m}d=0}J[a+8>>2]=f+4;Kf(a,g+8|0);if(J[g+8>>2])break m;J[c>>2]=d;e=0;break a}e=e+12|0;d=J[a+20>>2];if(!d)break o;if(!(gc[d|0](a,e,0,0)|0))break n;e=85;break a}J[a+8>>2]=e+4;e=e+12|0}if(e>>>0<=M[a+4>>2])break n;e=85;break a}J[a+8>>2]=e;J[g+8>>2]=0}e=2;b=b+1|0;if((h|0)!=(b|0))continue;break a}break}e=85}bc=g+16|0;return e}function I1(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;a:{if(h>>>0>32)break a;while(1){s=c;l=e;w=(s+l)*.5;e=(l+g)*.5;c=(w+e)*.5;t=b;q=d;x=(t+q)*.5;d=(q+f)*.5;b=(x+d)*.5;b:{i=g-s;r=f-t;k=(q-f)*i-r*(l-g);c:{if(R(k)>1E-30){if(!(k*k<=(r*r+i*i)*O[a+8>>3]))break b;i=O[a+16>>3];if(i<.01){h=J[a+32>>2];o=J[a+28>>2];m=o>>>6|0;if(h>>>0<=m>>>0){j=J[a+36>>2];d:{if(j>>>0>m>>>0){j=J[a+40>>2];break d}n=j+J[a+44>>2]|0;j=rc(n>>>0>1073741823?-1:n<<2);p=J[a+40>>2];if(p){tc(j,p,h<<2);qc(p);n=J[a+36>> -2]+J[a+44>>2]|0;o=J[a+28>>2];h=J[a+32>>2]}J[a+36>>2]=n;J[a+40>>2]=j}z=(m<<2)+j|0,A=rc(1024),J[z>>2]=A;J[a+32>>2]=h+1}h=a+28|0;a=J[J[a+40>>2]+(m<<2)>>2]+((o&63)<<4)|0;O[a>>3]=b;break c}l=R(Cf(g-l,f-q)-Cf(l-s,q-t));if(!(i>(l>=3.141592653589793?6.283185307179586-l:l)))break b;h=J[a+32>>2];o=J[a+28>>2];m=o>>>6|0;if(h>>>0<=m>>>0){j=J[a+36>>2];e:{if(j>>>0>m>>>0){j=J[a+40>>2];break e}n=j+J[a+44>>2]|0;j=rc(n>>>0>1073741823?-1:n<<2);p=J[a+40>>2];if(p){tc(j,p,h<<2);qc(p);n=J[a+36>>2]+J[a+44>>2]|0;o=J[a+28>> -2];h=J[a+32>>2]}J[a+36>>2]=n;J[a+40>>2]=j}z=(m<<2)+j|0,A=rc(1024),J[z>>2]=A;J[a+32>>2]=h+1}h=a+28|0;a=J[J[a+40>>2]+(m<<2)>>2]+((o&63)<<4)|0;O[a>>3]=b;break c}k=q-t;v=l-s;y=r*r+i*i;u=k*k+v*v;f:{if(y==0)break f;k=(k*r+i*v)/y;if(k>0&k<1)break a;if(k<=0){i=t-q;k=i*i;i=s-l;u=k+i*i;break f}if(k>=1){i=f-q;k=i*i;i=g-l;u=k+i*i;break f}r=k*r+t-q;i=k*i+s-l;u=r*r+i*i}if(!(u>3]))break b;h=J[a+32>>2];o=J[a+28>>2];m=o>>>6|0;if(h>>>0<=m>>>0){j=J[a+36>>2];g:{if(j>>>0>m>>>0){j=J[a+40>>2];break g}n=j+J[a+44>> -2]|0;j=rc(n>>>0>1073741823?-1:n<<2);p=J[a+40>>2];if(p){tc(j,p,h<<2);qc(p);n=J[a+36>>2]+J[a+44>>2]|0;o=J[a+28>>2];h=J[a+32>>2]}J[a+36>>2]=n;J[a+40>>2]=j}z=(m<<2)+j|0,A=rc(1024),J[z>>2]=A;J[a+32>>2]=h+1}h=a+28|0;a=J[J[a+40>>2]+(m<<2)>>2]+((o&63)<<4)|0;O[a>>3]=q;c=l}O[a+8>>3]=c;J[h>>2]=J[h>>2]+1;break a}h=h+1|0;I1(a,t,s,x,w,b,c,h);if((h|0)!=33)continue;break}}}function H2(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;if(!(!K[a+1188|0]|J[a+1208>>2]!=2)){Af(a+104|0,a,O[a+1192>>3],O[a+1200>>3]);J[a+1208>>2]= -3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1212>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);i=J[b+12>>2];if(i)J[b+1212>>2]=J[b+84>>2];g=J[e+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;j=J[e+8>>2];if(j){qc(j);g=J[e+20>>2]}J[e+12>>2]=h;k=e,l=rc(h),J[k+8>>2]=l}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+ -2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;j=J[c+8>>2];if(j){qc(j);g=J[c+20>>2]}J[c+12>>2]=h;k=c,l=rc(h),J[k+8>>2]=l}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;j=J[d+8>> -2];if(j){qc(j);g=J[d+20>>2]}J[d+12>>2]=h;k=d,l=rc(h),J[k+8>>2]=l}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];h=0;I[g+2>>1]=0;if(!yd(a,c))break a;if(i)h=yd(b,d);g=J[f+20>>2]-1|0;if((g|0)>=0)while(1){i=J[(J[J[f+32>>2]+(g>>>4&268435452)>>2]+((g&63)<<3)|0)+4>>2];if(i)qc(i);i=(g|0)>0;g=g-1|0;if(i)continue;break}J[f+60>>2]=0;J[f>>2]=0;J[f+20>>2]=0;J[f+120>>2]=0;J[f+112>>2]=-2147483647;J[f+116>>2]=-2147483647;J[f+104>>2]=2147483647;J[f+108>>2]=2147483647;J[f+40>>2]=0;while(1){g=h&1;h=0;e:{f:{if(!g)break f; -while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(yd(b,d))continue;break f}break}h=1;if((g|0)!=(i|0))break f;UK(c,d,e);if(J[e+28>>2]==J[e+20>>2])break e;J[e+4>>2]=J[c+4>>2];Cj(f,e);break e}Jf(c,e,f)}if(yd(a,c))continue;break}}}function kcb(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;f=bc-16|0;bc=f;j=J[b+16>>2];k=J[b+8>>2];gc[J[b+28>>2]](b);a:{b:{c:{d:{c=J[b>>2];if(c>>>0>>0){J[b>>2]=c+1;if(K[c|0]==91)break d}c=3;J[f+12>>2]=3;break c}gc[J[b+28>> -2]](b);e:{f:{d=J[b>>2];g:{if(k>>>0<=d>>>0)break g;while(1){h:{i:{j:{c=K[d|0];if((c|0)!=60){if((c|0)!=93)break j;J[b>>2]=d+1;break b}if(l?0:g)break e;gc[J[b+32>>2]](b);if(J[b+12>>2])break b;c=J[b>>2];i=(c+(d^-1)|0)/2|0;if(c-d>>>0<=2)break g;g=Sc(j,1,p,i,g,f+12|0);c=J[f+12>>2];if(c)break c;J[b>>2]=d;l=1;gc[J[b+44>>2]](b,g,i,f+8|0,1)|0;h=J[f+8>>2];break i}if(c-48>>>0>9){i=p;break i}if(l)break g;h=gc[J[b+36>>2]](b)|0;if((h|0)<0)break e;gc[J[b+32>>2]](b);if(J[b+12>>2])break a;c=J[b>>2];g=c+1|0;if(k-c>>> -0<=h>>>0)break e;J[b>>2]=(c+h|0)+1;l=0;break h}if(!g)break f;p=i}k:{l:{if(!(h&1)){c=h;break l}c=h-1|0;if(K[g+c|0])break k}h=c;if(!c)break g}i=k-J[b>>2]|0;n=0;while(1){m:{n:{o:switch(e|0){case 0:e=0;if((m|0)<12)break n;c=J[a+496>>2];o=(K[c+4|0]<<4)+K[c+5|0]|0;d=o<<4|12;J[a+500>>2]=d;if((d|0)>(i|0))break g;s=a,t=Sc(j,1,12,d,c,f+12|0),J[s+496>>2]=t;c=J[f+12>>2];if(c)break c;case 1:e=1;c=J[a+500>>2];if((m|0)<(c|0))break n;q=J[a+496>>2];if(o){r=q+12|0;d=0;while(1){e=(d<<4)+r|0;e=K[e+12|0]|K[e+13|0]<<8| -(K[e+14|0]<<16|K[e+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(e>>>0>i>>>0|(i-e|0)<(c|0))break g;c=(e+3&-4)+c|0;J[a+500>>2]=c;d=d+1|0;if((o|0)!=(d|0))continue;break}}s=a,t=Sc(j,1,o<<4|12,c+1|0,q,f+12|0),J[s+496>>2]=t;c=J[f+12>>2];if(c)break c;break;case 2:break o;default:break m}e=2;if(J[a+500>>2]<=(m|0))break g}H[J[a+496>>2]+m|0]=K[g+n|0];m=m+1|0}n=n+1|0;if((n|0)!=(h|0))continue;break}gc[J[b+28>>2]](b);d=J[b>>2];if(k>>>0>d>>>0)continue;break}}c=3;J[f+12>>2]=3;break c}c=3;J[f+12>>2]=3; -g=0;break c}c=3;J[f+12>>2]=3;l=0}J[b+12>>2]=c}if(!l)break a;if(g)gc[J[j+8>>2]](j,g)}bc=f+16|0}function $f(a,b,c){var d=0,e=0;if(b){d=a^-1;a:{if(!c|!(b&3))break a;d=J[(((K[b|0]^d)&255)<<2)+754416>>2]^d>>>8;e=c-1|0;a=b+1|0;if(!(!e|!(a&3))){d=J[(((K[b+1|0]^d)&255)<<2)+754416>>2]^d>>>8;e=c-2|0;a=b+2|0;if(!(!e|!(a&3))){d=J[(((K[b+2|0]^d)&255)<<2)+754416>>2]^d>>>8;e=c-3|0;a=b+3|0;if(!(!e|!(a&3))){d=J[(((K[b+3|0]^d)&255)<<2)+754416>>2]^d>>>8;c=c-4|0;b=b+4|0;break a}b=a;c=e;break a}b=a;c=e;break a}b=a;c= -e}if(c>>>0>31)while(1){a=J[b>>2]^d;a=J[b+4>>2]^(J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+754416>>2]);a=J[b+8>>2]^(J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+754416>>2]);a=J[b+12>>2]^(J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+754416>>2]);a=J[b+16>>2]^(J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+ -754416>>2]);a=J[b+20>>2]^(J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+754416>>2]);a=J[b+24>>2]^(J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+754416>>2]);a=J[b+28>>2]^(J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+754416>>2]);d=J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+754416>>2];b=b+32|0;c=c-32|0; -if(c>>>0>31)continue;break}if(c>>>0>3)while(1){a=J[b>>2]^d;d=J[(a>>>6&1020)+756464>>2]^J[((a&255)<<2)+757488>>2]^J[(a>>>14&1020)+755440>>2]^J[(a>>>22&1020)+754416>>2];b=b+4|0;c=c-4|0;if(c>>>0>3)continue;break}b:{if(!c)break b;if(c&1){d=J[(((K[b|0]^d)&255)<<2)+754416>>2]^d>>>8;b=b+1|0;a=c-1|0}else a=c;if((c|0)==1)break b;while(1){c=J[(((K[b|0]^d)&255)<<2)+754416>>2]^d>>>8;d=J[(((c^K[b+1|0])&255)<<2)+754416>>2]^c>>>8;b=b+2|0;a=a-2|0;if(a)continue;break}}a=d^-1}else a=0;return a}function wTa(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;h=J[a+420>>2];if(J[a+236>>2]){e=J[h+68>>2];if(!e){_v(a,J[h+72>>2]);e=J[a+236>>2];J[h+72>>2]=J[h+72>>2]+1&7}J[h+68>>2]=e-1}if(J[a+316>>2]>0){o=J[a+380>>2];r=h+204|0;while(1){g=p<<2;c=J[(g+a|0)+320>>2]<<2;k=J[(c+a|0)+292>>2];m=J[k+20>>2];l=(m<<2)+h|0;f=c+h|0;i=J[l+76>>2]+J[f+52>>2]|0;n=J[b+g>>2];c=I[n>>1];d=c-J[f+36>>2]|0;a:{if(!d){Oe(a,i,0);J[f+52>>2]=0;break a}J[f+36>>2]=c;Oe(a,i,1);e=0;b:{if((d|0)>0){j=2;g=0;c=4;break b}d= -0-d|0;j=3;g=1;c=8}Oe(a,i+1|0,g);J[f+52>>2]=c;c=i+j|0;g=d-1|0;c:{if(!g)break c;e=1;Oe(a,c,1);c=J[l+76>>2]+20|0;d=g;if((d|0)==1)break c;while(1){Oe(a,c,1);c=c+1|0;e=e<<1;l=d>>>0>3;d=d>>>1|0;if(l)continue;break}}Oe(a,c,0);d=a+m|0;d:{if(1<>1<=(e|0)){if(1<>1>=(e|0))break d;d=J[f+52>>2]+8|0}else d=0;J[f+52>>2]=d}if(e>>>0<2)break a;c=c+14|0;while(1){e=e>>1;Oe(a,c,(g&e)!=0);if(e>>>0>1)continue;break}}c=1;q=J[k+24>>2];d=J[a+384>>2];j=d;e:{if((d|0)<=0)break e;while(1){if(!L[(J[(j<<2)+ -o>>2]<<1)+n>>1]){f=(j|0)>1;j=j-1|0;if(f)continue;break e}break}l=a+q|0;m=(q<<2)+h|0;while(1){e=(J[m+140>>2]+P(c,3)|0)-3|0;Oe(a,e,0);d=L[(J[(c<<2)+o>>2]<<1)+n>>1];if(!d)while(1){Oe(a,e+1|0,0);e=e+3|0;c=c+1|0;d=L[(J[(c<<2)+o>>2]<<1)+n>>1];if(!d)continue;break}g=c;Oe(a,e+1|0,1);d=d<<16>>16;Oe(a,r,(d|0)<=0);i=e+2|0;f:{g:{h:{i:{f=d>>31;k=(f^-1)+(d^f)|0;if(!k)break i;Oe(a,i,1);if((k|0)==1)break i;Oe(a,i,1);c=J[m+140>>2]+((c|0)>K[l+184|0]?217:189)|0;e=2;d=k>>1;if(d>>>0>1)break h;Oe(a,c,0);c=c+14|0;break g}Oe(a, -i,0);break f}while(1){f=c;Oe(a,c,1);c=c+1|0;e=e<<1;d=d>>1;if(d>>>0>=2)continue;break}Oe(a,c,0);if(!e)break f;c=f+15|0}while(1){e=e>>1;Oe(a,c,(k&e)!=0);if(e>>>0>1)continue;break}}c=g+1|0;if((g|0)<(j|0))continue;break}d=J[a+384>>2]}if((c|0)<=(d|0))Oe(a,(J[((q<<2)+h|0)+140>>2]+P(c,3)|0)-3|0,1);p=p+1|0;if((p|0)>2])continue;break}}return 1}function nya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-48|0;bc=c;d=J[a>>2];gc[J[J[d>>2]+20>>2]](d,0,0,0)|0;yT(c+44|0,a);d=J[c+44>>2];J[c+36>>2]=0;J[c+ -40>>2]=J[682146];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{while(1){J[695492]=0;h=ha(5109,d|0,c+36|0,0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;if(!h)break d;a=J[c+36>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;ca(5160,b|0,a|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;J[c+32>>2]=0;aa(4985,c+32|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break j;J[695492]=0;a=J[c+32>>2];J[c+8>>2]=0;aa(4985,c+8|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;f=ga(5165,J[c+8>>2],a|0,0)| -0;a=J[695492];J[695492]=0;k:{if((a|0)!=1){a=J[c+8>>2];J[c+8>>2]=0;if(!a)break k;J[695492]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break k;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break k}break a}a=Z()|0;vc(c+8|0);break h}a=J[c+32>>2];J[c+32>>2]=0;l:{if(!a)break l;J[695492]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(e)break l;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[695492]=0;_(5162,b| -0);a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;_(5298,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;if((f|0)==(h|0))continue;break}J[695492]=0;b=ja(5018,c+8|0,J[682138],2374155,2258,2404460,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;B()}a=Z()|0;break b}a=Z()|0}vc(c+32|0);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;Fc(b);break b}sc(c+36|0);a=J[c+44>>2];J[c+44>>2]=0;m:{if(!a)break m;J[695492]=0;b=J[a+4>>2]- -1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break m;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=c+48|0;return}a=Z()|0}sc(c+36|0);vc(c+44|0);ba(a|0);B()}ea(0)|0;yc();B()}function R0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=-9;a:{b:{c:{d:{e:{d=J[a+4>>2];switch(J[d+48>>2]-8|0){case 1:break d;case 0:break e;default:break b}}c=J[a+8>>2];g=J[a+12>>2];if(c>>>0>=g>>>0){J[b>>2]=8;break c}e=c+2|0;if(g>>>0>>0){H[d+37|0]=K[c|0];H[J[a+4>>2]+36|0]=1;J[a+ -8>>2]=c+1;J[b>>2]=11;break c}f=K[c|0];h=K[c+1|0]|f<<8;if((f&248)==216){f:{g:{h:{if(f&4)break h;f=c+4|0;if(f>>>0>g>>>0)break g;g=K[e|0];if((g&252)!=220)break h;e=(K[c+3|0]|g<<8)+(h<<10)|0;if(e>>>0>56613887)break f;e=f}H[d+36|0]=2;H[d+37|0]=K[e-2|0];H[d+38|0]=K[e-1|0];f=12;break a}e=g-c|0;H[d+36|0]=e;d=d+37|0;h=g+(c^-1)|0;f=e&7;if(f){e=0;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}f=11;if(h>>>0<7){e=g;break a}while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2| -0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];H[d+6|0]=K[c+6|0];H[d+7|0]=K[c+7|0];d=d+8|0;c=c+8|0;if((g|0)!=(c|0))continue;break}e=g;break a}h=e-56613888|0;e=f}J[a+8>>2]=e;return h|0}c=J[a+8>>2];g=J[a+12>>2];if(c>>>0>=g>>>0){J[b>>2]=8;break c}e=c+2|0;if(e>>>0>g>>>0){H[d+37|0]=K[c|0];H[J[a+4>>2]+36|0]=1;J[a+8>>2]=c+1;J[b>>2]=11;break c}f=K[c+1|0];h=K[c|0]|f<<8;if((f&248)!=216){J[a+8>>2]=e;return h|0}i:{j:{k:{if(f&4)break k;f=c+4|0;if(g>>>0>=f>>>0){g=K[c+3|0];if((g&252)!=220)break k;e=(K[e| -0]|g<<8)+(h<<10)|0;if(e>>>0<=56613887)break j;J[a+8>>2]=f;return e-56613888|0}e=g-c|0;H[d+36|0]=e;d=d+37|0;f=g+(c^-1)|0;h=e&7;if(h){e=0;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}e=11;if(f>>>0<7){f=g;break i}while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];H[d+6|0]=K[c+6|0];H[d+7|0]=K[c+7|0];d=d+8|0;c=c+8|0;if((g|0)!=(c|0))continue;break}f=g;break i}f=e}H[d+36|0]=2;H[d+37|0]=K[f-2|0];H[d+38|0]=K[f- -1|0];e=12}J[b>>2]=e;J[a+8>>2]=f;return 65535}c=65535}return c|0}J[b>>2]=f;J[a+8>>2]=e;return 65535}function Gz(a,b,c,d){var e=0;e=P(b,3);b=e+a|0;H[c|0]=((K[b+3|0]+P(K[a|0],11)|0)+(K[b|0]+K[a+3|0]<<1)|0)+8>>>4;H[c+1|0]=((K[b+4|0]+P(K[a+1|0],11)|0)+(K[b+1|0]+K[a+4|0]<<1)|0)+8>>>4;H[c+2|0]=((K[b+5|0]+P(K[a+2|0],11)|0)+(K[b+2|0]+K[a+5|0]<<1)|0)+8>>>4;H[c+3|0]=(K[b+6|0]+(K[b+3|0]+P(K[a+6|0]+K[a+3|0]|0,7)|0)|0)+8>>>4;H[c+4|0]=(K[b+7|0]+(K[b+4|0]+P(K[a+7|0]+K[a+4|0]|0,7)|0)|0)+8>>>4;H[c+5|0]=(K[b+8|0]+(K[b+ -5|0]+P(K[a+8|0]+K[a+5|0]|0,7)|0)|0)+8>>>4;H[c+6|0]=((K[b+6|0]+P(K[a+9|0],11)|0)+(K[b+9|0]+K[a+6|0]<<1)|0)+8>>>4;H[c+7|0]=((K[b+7|0]+P(K[a+10|0],11)|0)+(K[b+10|0]+K[a+7|0]<<1)|0)+8>>>4;H[c+8|0]=((K[b+8|0]+P(K[a+11|0],11)|0)+(K[b+11|0]+K[a+8|0]<<1)|0)+8>>>4;d=P(d,3);c=d+c|0;a=b+e|0;H[c|0]=(K[b+3|0]+(K[a+3|0]+P(K[b|0]+K[a|0]|0,7)|0)|0)+8>>>4;H[c+1|0]=(K[b+4|0]+(K[a+4|0]+P(K[b+1|0]+K[a+1|0]|0,7)|0)|0)+8>>>4;H[c+2|0]=(K[b+5|0]+(K[a+5|0]+P(K[b+2|0]+K[a+2|0]|0,7)|0)|0)+8>>>4;H[c+3|0]=(K[b+3|0]+(K[a+3|0]+ -(K[a+6|0]+K[b+6|0]|0)|0)|0)+2>>>2;H[c+4|0]=(K[b+4|0]+(K[a+4|0]+(K[a+7|0]+K[b+7|0]|0)|0)|0)+2>>>2;H[c+5|0]=(K[b+5|0]+(K[a+5|0]+(K[a+8|0]+K[b+8|0]|0)|0)|0)+2>>>2;H[c+6|0]=(K[b+6|0]+(K[a+6|0]+P(K[b+9|0]+K[a+9|0]|0,7)|0)|0)+8>>>4;H[c+7|0]=(K[b+7|0]+(K[a+7|0]+P(K[b+10|0]+K[a+10|0]|0,7)|0)|0)+8>>>4;H[c+8|0]=(K[b+8|0]+(K[a+8|0]+P(K[b+11|0]+K[a+11|0]|0,7)|0)|0)+8>>>4;c=c+d|0;b=a+e|0;H[c|0]=((K[a+3|0]+P(K[b|0],11)|0)+(K[a|0]+K[b+3|0]<<1)|0)+8>>>4;H[c+1|0]=((K[a+4|0]+P(K[b+1|0],11)|0)+(K[a+1|0]+K[b+4|0]<<1)| -0)+8>>>4;H[c+2|0]=((K[a+5|0]+P(K[b+2|0],11)|0)+(K[a+2|0]+K[b+5|0]<<1)|0)+8>>>4;H[c+3|0]=(K[a+6|0]+(K[a+3|0]+P(K[b+6|0]+K[b+3|0]|0,7)|0)|0)+8>>>4;H[c+4|0]=(K[a+7|0]+(K[a+4|0]+P(K[b+7|0]+K[b+4|0]|0,7)|0)|0)+8>>>4;H[c+5|0]=(K[a+8|0]+(K[a+5|0]+P(K[b+8|0]+K[b+5|0]|0,7)|0)|0)+8>>>4;H[c+6|0]=((K[a+6|0]+P(K[b+9|0],11)|0)+(K[a+9|0]+K[b+6|0]<<1)|0)+8>>>4;H[c+7|0]=((K[a+7|0]+P(K[b+10|0],11)|0)+(K[a+10|0]+K[b+7|0]<<1)|0)+8>>>4;H[c+8|0]=((K[a+8|0]+P(K[b+11|0],11)|0)+(K[a+11|0]+K[b+8|0]<<1)|0)+8>>>4}function MB(a, -b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=bc-96|0;bc=g;d=-1;a:{if(!a|!J[a+12>>2])break a;c=J[a+16>>2];if(!c)break a;i=J[a+20>>2];if(!i)break a;d=0;if(J[i+32>>2])break a;f=J[i+8>>2];if(!((f|0)==J[i+24>>2]|f>>>0>2147483646))J[i+24>>2]=f;f=J[i+20>>2];e=J[i+4>>2];if(!((f|0)==(e|0)|e>>>0>2147483646)){J[i+20>>2]=e;f=e}if(!f)break a;j=b?f:f>>>0>65536?65536:f;b:{c:{d:{f=J[c+32>>2];if(!f){d=J[c+24>>2];e=J[c+8>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[c+24>>2]=e;d=e}h=J[c+20>>2];e=J[c+4>>2];if(!((h|0)==(e| -0)|e>>>0>2147483646)){J[c+20>>2]=e;h=e}if((d|0)!=(h|0))break d}e=j<<1;break c}e=j<<1;d=(h^-1)+d|0;h=1;if(e>>>0>>0)break b}if((e|0)>0){ZJ(c,e);f=J[c+32>>2]}e:{if(f)break e;d=J[c+24>>2];e=J[c+8>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[c+24>>2]=e;d=e}e=J[c+20>>2];h=J[c+4>>2];if(!((e|0)==(h|0)|h>>>0>2147483646)){J[c+20>>2]=h;e=h}if((d|0)==(e|0))break e;d=(e^-1)+d|0;h=1;break b}d=0;h=!f}f=h;J[g+92>>2]=j;J[g+88>>2]=b?d:d>>>0>131072?131072:d;f:{g:{d=J[J[a+12>>2]+4>>2];if(d){if(f){a=J[c+8>>2];if(!((a| -0)==J[c+24>>2]|a>>>0>2147483646))J[c+24>>2]=a;f=J[c+20>>2];a=J[c+4>>2];if((f|0)==(a|0)|a>>>0>2147483646)a=f;else J[c+20>>2]=a;a=a+J[c>>2]|0}else a=0;f=gc[d|0](a,g+88|0,J[i+32>>2]?0:J[i>>2],g+92|0)|0;Hw(i,J[g+92>>2]);h:{if(J[c+32>>2])break h;d=J[c+24>>2];a=J[c+8>>2];if(!((d|0)==(a|0)|a>>>0>2147483646)){J[c+24>>2]=a;d=a}e=J[g+88>>2];b=J[c+20>>2];a=J[c+4>>2];if(!((b|0)==(a|0)|a>>>0>2147483646)){J[c+20>>2]=a;b=a}if(e>>>0>d-b>>>0)break h;a=b+e|0;J[c+20>>2]=a;J[c+8>>2]=d>>>0>=2147483647?2147483647:d;J[c+ -4>>2]=a>>>0>=2147483647?2147483647:a;if(a>>>0>=d>>>0)break h;H[a+J[c>>2]|0]=0}if((f|0)!=-2)break g}a=J[i>>2];b=K[a|0];d=K[a+1|0];f=K[a+2|0];J[g+28>>2]=K[a+3|0];J[g+24>>2]=f;J[g+20>>2]=d;J[g+16>>2]=b;a=g+32|0;Gi(a,49,19979,g+16|0);H[g+81|0]=0;J[g>>2]=a;Cc(0,0,0,0,0,27,6003,3,a,0,0,0,32391,g);a=-2;break f}a=(f|0)!=-3?f:0}b=J[g+88>>2];d=b?b:a}bc=g+96|0;return d}function EBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d:{e:{f:{c=J[b>>2];if(!c){J[d+8>>2]= -0;break f}g:{h:{if(J[c+8>>2]){b=J[J[c>>2]+24>>2];J[695492]=0;ca(b|0,d+8|0,c|0,2);b=J[695492];J[695492]=0;if((b|0)==1)break h;b=J[d+8>>2];i:{if(b){c=J[J[b>>2]+24>>2];J[695492]=0;ca(c|0,d+12|0,b|0,2);b=J[695492];J[695492]=0;if((b|0)!=1)break i;b=Z()|0;break g}J[d+12>>2]=0}J[695492]=0;aa(4993,a|0,d+12|0)|0;b=J[695492];J[695492]=0;j:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break j;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break j;J[695492]=0;_(4987,b|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break j}break a}b=Z()|0;vc(d+12|0);break g}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[d+8>>2];J[d+8>>2]=0;if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;break b}J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;k:{if((c|0)!=1){b=J[b>>2];J[d+8>>2]=b;if(!b)break f;c=J[J[b>>2]+24>>2];J[695492]=0;ca(c|0,d+12|0,b|0,2);c=J[695492]; -J[695492]=0;if((c|0)==1)break k;break e}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break c}vc(d+8|0);break c}b=0;J[d+12>>2]=0}J[695492]=0;aa(4993,a|0,d+12|0)|0;c=J[695492];J[695492]=0;l:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break l;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break l;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break l}break a}b=Z()|0;vc(d+12|0);break d}c=J[a>>2];J[a+4>>2]=J[(c?c+12|0:2728584)>>2];J[d+8>>2]=0;if(!b)break b; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b}break a}vc(d+8|0)}sc(a);ba(b|0);B()}bc=d+16|0;return a|0}ea(0)|0;yc();B()}function iua(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;h=bc-1056|0;bc=h;a:{b:{c:{d:{if(!b){a=Kc(h,2379900,2373889,1405,2413044,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break a}if(!K[2761217]){H[2761217]= -1;while(1){H[f+2761232|0]=f>>>0>=255?255:f;g=f|1;H[g+2761232|0]=g>>>0>=255?255:g;g=f|2;H[g+2761232|0]=g>>>0>=255?255:g;g=f|3;H[g+2761232|0]=g>>>0>=255?255:g;f=f+4|0;if((f|0)!=512)continue;break}}if(!e)break b;j=L[b+8>>1];f=j+d|0;g=L[a+8>>1];l=(d|0)>0?d:0;o=((f|0)<(g|0)?f:g)-l|0;if((o|0)<=0)break b;f=L[b+10>>1]+c|0;g=L[a+10>>1];q=(c|0)>0?c:0;p=((f|0)<(g|0)?f:g)-q|0;if((p|0)<=0)break b;i=L[b+16>>1];m=i-1|0;e:{if(m>>>0<2)break e;f=1;if((i|0)!=3){n=(i&65534)-4|0;g=0;while(1){J[(f<<2)+h>>2]=(f<<16>>>0)/ -(m>>>0);k=f+1|0;J[(k<<2)+h>>2]=(k<<16>>>0)/(m>>>0);f=f+2|0;k=(g|0)==(n|0);g=g+2|0;if(!k)continue;break}}if(!(i&1))break e;J[(f<<2)+h>>2]=(f<<16>>>0)/(m>>>0)}n=K[e|0];k=K[e+1|0];r=K[e+2|0];if(!J[b+20>>2]){Li(b);j=L[b+8>>1]}f=L[b+12>>1];i=L[b+14>>1];if(j&65535){g=b+20|0;break c}g=2728564;if(J[682142]>=(f+i|0))break c;a=Kc(h+1032|0,2381564,2381967,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break a}B()}if((o|0)<=0|(p|0)<=0)break b;j=0;b=l;l=L[a+12>>1];e=(P(P(b, -l),3)+(L[a+8>>1]?J[a+16>>2]:0)|0)+P(q,3)|0;b=((f+J[g>>2]|0)-P(i,d>>31&d)|0)-(c>>31&c)|0;while(1){f=0;while(1){c=K[b+f|0];if(c){f:{if(c>>>0>=m>>>0){a=P(f,3)+e|0;H[a|0]=K[(n+K[a|0]|0)+2761232|0];H[a+1|0]=K[(k+K[a+1|0]|0)+2761232|0];g=K[a+2|0]+r|0;a=a+2|0;break f}a=P(f,3)+e|0;c=J[(c<<2)+h>>2];H[a|0]=K[(K[a|0]+(P(c,n)>>>16|0)|0)+2761232|0];H[a+1|0]=K[(K[a+1|0]+(P(c,k)>>>16|0)|0)+2761232|0];g=K[a+2|0]+(P(c,r)>>>16|0)|0;a=a+2|0}H[a|0]=K[g+2761232|0]}f=f+1|0;if((p|0)!=(f|0))continue;break}b=b+i|0;e=P(l, -3)+e|0;j=j+1|0;if((o|0)!=(j|0))continue;break}}bc=h+1056|0;return}b=Z()|0;Fc(a);ba(b|0);B()}function bI(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;k=bc-16|0;a:{if(!b)break a;n=b-2|0;l=1;while(1){d=b>>>0>l>>>0?b:l;c=g;b:{while(1){if(J[((c<<4)+a|0)+4>>2])break b;c=c+1|0;if(c>>>0>>0)continue;break}c=d}if((b|0)==(c|0))break a;e=c+1|0;c:{if(e>>>0>=b>>>0){d=c;break c}d:{if(!((c^-1)+b&1)){d=c;break d}d=c;f=J[((e<<4)+a|0)+4>>2];if(f)d=f>>>0>2]?e:c;e=c+2|0}if((c|0)==(n|0))break c; -while(1){c=J[((e<<4)+a|0)+4>>2];if(c)d=c>>>0>2]?e:d;c=e+1|0;f=J[((c<<4)+a|0)+4>>2];if(f)d=f>>>0>2]?c:d;e=e+2|0;if((e|0)!=(b|0))continue;break}}if((d|0)!=(g|0)){e=g^-1;c=(d<<4)+a|0;f=J[c+12>>2];J[k+8>>2]=J[c+8>>2];J[k+12>>2]=f;f=J[c+4>>2];J[k>>2]=J[c>>2];J[k+4>>2]=f;e:{if(d>>>0<=g>>>0)break e;i=d+e|0;e=0;j=d-g&3;if(j)while(1){c=(d<<4)+a|0;f=c-16|0;h=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=h;h=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=h;d=d-1|0;e=e+1|0;if((j|0)!=(e|0))continue; -break}if(i>>>0<3)break e;while(1){e=(d<<4)+a|0;c=e-16|0;f=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=f;f=e-32|0;j=J[f>>2];h=J[f+4>>2];i=e-48|0;m=J[i+4>>2];J[f>>2]=J[i>>2];J[f+4>>2]=m;J[c>>2]=j;J[c+4>>2]=h;j=e+-64|0;h=J[j+4>>2];J[i>>2]=J[j>>2];J[i+4>>2]=h;h=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=h;e=J[f+8>>2];h=J[f+12>>2];m=J[i+12>>2];J[f+8>>2]=J[i+8>>2];J[f+12>>2]=m;J[c+8>>2]=e;J[c+12>>2]=h;c=J[j+12>>2];J[i+8>>2]=J[j+8>>2];J[i+12>>2]=c;d=d-4|0;if(g>>>0>>0)continue;break}}d=J[k+4>>2];c=(g<<4)+a|0;J[c>> -2]=J[k>>2];J[c+4>>2]=d;d=J[k+12>>2];J[c+8>>2]=J[k+8>>2];J[c+12>>2]=d}l=l+1|0;g=g+1|0;if((g|0)!=(b|0))continue;break}g=b}b=(b<<4)+a|0;d=J[b+4>>2];c=(g<<4)+a|0;J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;f:{if(J[a+8>>2]==-1)break f;J[a+12>>2]=0;if(J[a+24>>2]==-1)break f;g=a-12|0;c=1;d=1;while(1){e=c;b=d<<4;c=b+a|0;b=e<>2]-J[b+g>>2];J[c+12>>2]=b;c=b+1|0;d=d+1|0;if(J[((d<<4)+a|0)+8>>2]!=-1)continue;break}}}function pAa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0, -g=0;e=bc-16|0;bc=e;J[a>>2]=0;a:{b:{c:{d:{e:{f=J[b+8>>2];if(!f)break e;f:{g:{h:{if(d){i:{while(1){j:{b=0;d=J[f+8>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break j;b=J[f+8>>2]}J[e+12>>2]=b;k:{l:{if(J[b+8>>2]!=4){J[e+12>>2]=0;break l}J[695492]=0;d=e+4|0;da(5191,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;b=fd(d,c,-1);g=J[695492];J[695492]=0;if((g|0)==1)break d;sc(d);if(!b){J[695492]=0;aa(4993,a|0,e+12|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i}b= -J[e+12>>2];J[e+12>>2]=0;if(!b)break k}J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break f;if(d)break k;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break f}f=J[f>>2];if(f)continue;break e}break}b=Z()|0;break b}b=Z()|0;break c}while(1){b=0;d=J[f+8>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break g;b=J[f+8>>2]}J[e+12>>2]=b;m:{n:{o:{if(J[b+8>>2]!=4){J[e+12>>2]=0;break o}J[695492]=0;d=e+4|0;da(5191,d|0,b|0);b=J[695492]; -J[695492]=0;p:{if((b|0)!=1){J[695492]=0;b=fd(d,c,-1);g=J[695492];J[695492]=0;if((g|0)==1)break d;sc(d);if(b)break p;J[695492]=0;aa(4993,a|0,e+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break m;b=Z()|0;break c}b=Z()|0;break c}b=J[e+12>>2];J[e+12>>2]=0;if(!b)break n}J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break f;if(d)break n;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break f}f=J[f>>2];if(f)continue;break e}break}a=J[e+12>>2];J[e+12>>2]=0;if(!a)break e; -J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}break a}b=Z()|0;break c}b=Z()|0;break b}break a}bc=e+16|0;return}b=Z()|0;sc(e+4|0)}vc(e+12|0)}vc(a);ba(b|0);B()}ea(0)|0;yc();B()}function HB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=bc-32|0;bc=g;a:{b:{d=J[a+372>>2];if(d){J[a+372>>2]=J[d+24>>2];J[a+368>>2]=J[a+368>>2]-1;break b}d=gc[J[659447]](60)|0;if(d)break b;if(!(!J[a+212>>2]|J[a+172>> -2]!=-1)){c=0;break a}J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;J[g>>2]=4008;c=0;Cc(0,0,0,a,0,1,2,3,4008,0,0,0,32863,g);break a}J[d>>2]=0;J[d+4>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;c:{d:{e:{if(!J[a+364>>2])break e;f=b+c|0;e=K[f|0];f:{g:{if((c|0)>7)break g;if(H[a+362|0]&1){e=d+44|0;j=tc(e,b,c)+c|0,k=0,H[j|0]=k;J[d+8>>2]=773004;J[d+4>>2]=3;break c}if((c|0)>3)break g; -h:switch(e-34|0){case 26:break h;case 0:case 5:break f;default:break g}if(K[f+1|0]!=33)break f}h=K[b|0];i=h-9|0;i:{if(!(1<>>0<=23:0)){if((h|0)!=13|(c|0)>59)break e;if((e|0)==60)break i;break e}if((e|0)!=60|(c|0)>59)break e}e=1;if(K[f+1|0]==33)break e;if((c|0)<2)break f;while(1){f=K[b+e|0]-9|0;if(f>>>0>23|!(1<>2],b,c);J[d+8>>2]=773004;J[d+4>>2]=3;if(e)break c;break d}J[d+8>>2]=773004;J[d+4>>2]=3}j:{if(!(!b|(c|0)< -0)){e=gc[J[659450]](c+1|0)|0;if(e)break j;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}c=0;J[d+40>>2]=0;J[a+84>>2]=2;e=J[a>>2];b=0;k:{if(!e)break k;b=0;if(J[e+108>>2]!=-554844497)break k;b=J[e+124>>2]}e=J[a+112>>2];f=J[a+108>>2];J[g+20>>2]=0;J[g+16>>2]=30575;Cc(b,e,f,a,0,1,2,2,30575,0,0,0,14647,g+16|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;gc[J[659451]](d);break a}j=tc(e,b,c)+c|0,k=0,H[j|0]=k}J[d+40>>2]=e;l:{if(!J[a+280>>2])break l;b=J[a+36>>2];if(!b)break l;b=J[b+28>>2];if((b|0)<=65534){I[d+56>>1]=b; -break l}I[d+56>>1]=65535;if(!(K[a+362|0]&64))break l;J[d+52>>2]=b}m:{if(!J[689540])break m;a=J[689537];if(!a)break m;gc[a|0](d)}c=d}bc=g+32|0;return c}function qJ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=bc-128|0;bc=i;a:{if(!c)break a;J[c>>2]=0;if(!b)break a;b:{d=K[b|0];if((d|0)!=58){g=b;while(1){h=g+1|0;c:{d:{e:{f=d&255;f:{if(!f|(f|0)==58)break f;if((e|0)==100)break e;H[(i+16|0)+e|0]=d;h=g+2|0;f=e|1;d=K[g+1|0];if(!d){e=f;break f}if((d|0)==58){e=f;break f}H[f+(i+16|0)|0]=d;h=g+3|0;f=e|2;d=K[g+2|0]; -if(!d){e=f;break f}if((d|0)==58){e=f;break f}H[f+(i+16|0)|0]=d;h=g+4|0;f=e|3;d=K[g+3|0];if((d|0)!=58?d:0)break c;e=f}g=d&255;if(e>>>0>99)break d;f=0;j=100;break b}e=100;g=d&255}d=0;j=e<<1;f=gc[J[659450]](j)|0;if(!f){ke(a,0);break a}tc(f,i+16|0,e);while(1){g:{d=g&255;if(!(!d|(d|0)==58)){if((e+10|0)<=(j|0)){d=f;break g}j=j<<1;d=gc[J[659452]](f,j)|0;if(d)break g;d=0;gc[J[659451]](f);ke(a,0);break a}H[e+f|0]=0;break b}H[d+e|0]=g;e=e+1|0;g=K[h|0];h=h+1|0;f=d;continue}}H[f+(i+16|0)|0]=d;e=e+4|0;d=K[h|0]; -g=h;continue}}d=$e(b);break a}if(!(K[h|0]|(g|0)!=58)){if(f)gc[J[659451]](f);J[c>>2]=0;d=$e(b);break a}d=100;if(!f){f=il(i+16|0,e);d=j}if((g|0)!=58){d=f;break a}g=K[h|0];J[c>>2]=f;if(!(g&255)){d=il(39181,0);break a}h:{if(((g&223)-65&255)>>>0<26)break h;c=g&255;if((c|0)==58|(c|0)==95)break h;c=hm(a,h,i+12|0);i:{if((c|0)<=255){if(c-192>>>0<23|(c&-33)-65>>>0<26|((c|0)==95|(c|0)>247))break h;if(c-216>>>0>=31)break i;break h}if(km(c,769396)|c-12330>>>0>4294967286|((c|0)==12295|c-40870>>>0>4294946393))break h}Nf(a, -202,31100,b)}h=h+1|0;j:{k:{if((d|0)<=0){e=0;break k}e=0;while(1){l:{H[(i+16|0)+e|0]=g;b=h+1|0;e=e+1|0;g=K[h|0];if(!g)break l;h=b;if((d|0)>(e|0))continue}break}if((d|0)>(e|0))break j;h=b}b=e<<1;c=gc[J[659450]](b)|0;if(!c){d=0;ke(a,0);break a}d=tc(c,i+16|0,e);if(g&255)while(1){m:{if((e+10|0)<=(b|0)){d=c;break m}b=b<<1;d=gc[J[659452]](c,b)|0;if(d)break m;d=0;ke(a,0);gc[J[659451]](c);break a}H[d+e|0]=g;e=e+1|0;g=K[h|0];c=d;h=h+1|0;if(g)continue;break}H[d+e|0]=0;break a}d=il(i+16|0,e)}bc=i+128|0;return d} -function H8(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=0,o=0,p=0,q=0,r=0,s=0,t=0;q=bc-16|0;bc=q;o=gc[J[a+152>>2]](92)|0;a:{if(!o){Dc(a,1,0,0);a=1;break a}n=gc[J[a+152>>2]](1180)|0;b:{if(n){H[n+54|0]=0;H[n+53|0]=0;H[n+49|0]=0;H[n+50|0]=0;H[n+51|0]=0;H[n+52|0]=0;H[n+48|0]=0;H[n+47|0]=0;H[n+46|0]=0;H[n+45|0]=0;H[n+44|0]=0;J[n+40>>2]=0;J[n+36>>2]=0;H[n+34|0]=e;H[n+33|0]=c;H[n+32|0]=0;J[n+28>>2]=1;J[n+4>>2]=0;J[n>>2]=950;J[n+1164>>2]=1;J[n+1168>>2]=0;J[n+1172>>2]=0;p=K[a+308|0];H[n+57|0]=p;r=K[a+309|0];H[n+58|0]= -r;s=K[a+310|0];H[n+59|0]=s;t=K[a+311|0];H[n+60|0]=t;c=K[a+312|0];H[n+61|0]=c;if(p)J[n+1104>>2]=J[a+2192>>2];if(r){J[n+1108>>2]=J[a+2196>>2];J[n+1112>>2]=J[a+2200>>2];J[n+1116>>2]=J[a+2204>>2];J[n+1120>>2]=J[a+2208>>2];J[n+1124>>2]=J[a+2212>>2];J[n+1128>>2]=J[a+2216>>2];J[n+1132>>2]=J[a+2220>>2];J[n+1136>>2]=J[a+2224>>2]}if(s)H[n+1140|0]=K[a+2228|0];c:{d:{if(!t)break d;p=J[a+2232>>2];J[n+1144>>2]=p;if(!p)break d;c=gc[J[a+152>>2]](p)|0;J[n+1148>>2]=c;if(!c){c=J[n+1176>>2];if(c)gc[J[a+156>>2]](c,J[n+ -1172>>2]);break c}tc(c,J[a+2236>>2],J[n+1144>>2]);c=K[a+312|0]}if(c){I[n+1156>>1]=L[a+2240>>1];I[n+1158>>1]=L[a+2242>>1];I[n+1160>>1]=L[a+2244>>1]}J[q+12>>2]=n;c=0;break b}gc[J[a+156>>2]](n,1180)}Dc(a,1,0,0);c=1}if(c){gc[J[a+156>>2]](o,92);a=1;break a}H[o+32|0]=e;H[o+31|0]=d;e=0;H[o+30|0]=0;I[o+28>>1]=b;J[o+4>>2]=0;J[o>>2]=951;e=!K[a+432|0]|!(K[a+496|0]|K[a+476|0])?e:!K[a+500|0];J[o+80>>2]=0;J[o+84>>2]=0;J[o+60>>2]=l;J[o+56>>2]=k;J[o+52>>2]=j;J[o+48>>2]=i;H[o+44|0]=h;J[o+40>>2]=g;J[o+36>>2]=f;H[o+ -33|0]=e;J[o+64>>2]=0;J[o+68>>2]=0;I[o+70>>1]=0;I[o+72>>1]=0;I[o+74>>1]=0;I[o+76>>1]=0;J[o+88>>2]=J[q+12>>2];if(b){c=a+692|0;e:{f:{e=J[a+692>>2];if(e)while(1){if(L[e+28>>1]<=b>>>0)break f;e=J[e+12>>2];if(e)continue;break}e=J[a+688>>2];J[o+8>>2]=e;J[a+688>>2]=o;break e}J[o+12>>2]=e;J[o+8>>2]=J[e+8>>2];J[e+8>>2]=o;e=J[o+8>>2]}J[(e?e+12|0:c)>>2]=o}J[m>>2]=o;a=0}bc=q+16|0;return a}function L0a(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;o=bc-16|0;p=J[a+12>> -2];e=J[a+24>>2];k=J[a+8>>2];h=J[a+4>>2];s=J[h+24>>2];f=J[h+56>>2];d=J[a+16>>2];l=J[a+20>>2];if(d>>>0>>0?f:0){J[h+56>>2]=0;g=-1;c=1}else c=0;while(1){a:{b:{c:{d:{e:{f:{if(!c){c=k;if(c>>>0>=p>>>0|d>>>0>=l>>>0)break c;k=c+2|0;f=L[c>>1];if(f>>>0<=127){J[e>>2]=g;H[d|0]=f;d=d+1|0;e=e+4|0;g=g+1|0;break a}if(f>>>0<=2047){J[e>>2]=g;H[d|0]=f>>>6|192;c=d+1|0;if(c>>>0>>0){J[e+4>>2]=g;H[d+1|0]=f&63|128;d=d+2|0;e=e+8|0;g=g+1|0;break a}e=e+4|0;H[h+63|0]=1;H[h+76|0]=f&63|128;J[b>>2]=15;d=c;break a}n=g+1|0; -if((s|0)==739104|(f&63488)!=55296)break f;c=1;continue}if(k>>>0>=p>>>0)break d;if(f&1024)break e;c=L[k>>1];if((c&64512)!=56320)break e;k=k+2|0;f=(c+(f<<10)|0)-56613888|0;n=n+1|0}c=3;m=l-d|0;j=(m|0)>3;i=j?d:o+12|0;g:{if((f|0)<=65535){c=2;j=f>>>12|-32;break g}H[(j?d:o+12|0)+1|0]=f>>>12&63|128;j=f>>>18|-16}H[i|0]=j;j=c+i|0;H[j|0]=f&63|128;H[j-1|0]=f>>>6&63|128;h:{if((d|0)!=(i|0)){j=(o+12|0)+c|0;if(i>>>0>j>>>0){g=n;break a}q=(o+12|0)+c|0;i:{if(!((q-i|0)+1&1)){c=d;d=i;break i}j:{if(d>>>0>=l>>>0){c=K[i| -0];r=H[h+63|0];H[h+63|0]=r+1;H[(h+r|0)+76|0]=c;J[b>>2]=15;c=d;break j}J[e>>2]=g;H[d|0]=K[i|0];e=e+4|0;c=d+1|0}d=((m|0)>3?d:o+12|0)+1|0}if((i|0)!=(q|0))break h;break b}J[e+8>>2]=g;J[e+4>>2]=g;J[e>>2]=g;c=c+1|0;d=c+d|0;if((f|0)>=65536)J[e+12>>2]=g;e=(c<<2)+e|0;g=n;break a}while(1){k:{if(c>>>0>>0){J[e>>2]=g;H[c|0]=K[d|0];c=c+1|0;e=e+4|0;break k}i=K[d|0];m=H[h+63|0];H[h+63|0]=m+1;H[(h+m|0)+76|0]=i;J[b>>2]=15}l:{if(c>>>0>=l>>>0){i=K[d+1|0];m=H[h+63|0];H[h+63|0]=m+1;H[(h+m|0)+76|0]=i;J[b>>2]=15;break l}J[e>> -2]=g;H[c|0]=K[d+1|0];c=c+1|0;e=e+4|0}d=d+2|0;if(j>>>0>=d>>>0)continue;break}break b}J[h+56>>2]=f;J[b>>2]=12;break c}J[h+56>>2]=f}if(!(d>>>0>>0|k>>>0>=p>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=e;J[a+8>>2]=k;J[a+16>>2]=d;return}d=c;g=n}c=0;continue}}function L2(a,b,c,d,e){a=a|0;b=+b;c=+c;d=+d;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=bc-48|0;bc=f;b=b*3.141592653589793/180;i=xe(b);j=-i;g=J[a>>2];k=-d;l=-c;b=He(b);a:{if(!e){J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;O[f+40>>3]=k;O[f+32>>3]=l;J[f+ -24>>2]=0;J[f+28>>2]=1072693248;J[f>>2]=0;J[f+4>>2]=1072693248;e=ej(f,g);h=J[e+4>>2];J[g>>2]=J[e>>2];J[g+4>>2]=h;h=J[e+44>>2];J[g+40>>2]=J[e+40>>2];J[g+44>>2]=h;h=J[e+36>>2];J[g+32>>2]=J[e+32>>2];J[g+36>>2]=h;h=J[e+28>>2];J[g+24>>2]=J[e+24>>2];J[g+28>>2]=h;h=J[e+20>>2];J[g+16>>2]=J[e+16>>2];J[g+20>>2]=h;h=J[e+12>>2];J[g+8>>2]=J[e+8>>2];J[g+12>>2]=h;e=J[a>>2];J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;O[f+24>>3]=b;O[f+16>>3]=j;O[f+8>>3]=i;O[f>>3]=b;g=ej(f,e);h=J[g+4>>2];J[e>>2]=J[g>>2];J[e+ -4>>2]=h;h=J[g+44>>2];J[e+40>>2]=J[g+40>>2];J[e+44>>2]=h;h=J[g+36>>2];J[e+32>>2]=J[g+32>>2];J[e+36>>2]=h;h=J[g+28>>2];J[e+24>>2]=J[g+24>>2];J[e+28>>2]=h;h=J[g+20>>2];J[e+16>>2]=J[g+16>>2];J[e+20>>2]=h;h=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=h;a=J[a>>2];J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;O[f+40>>3]=d;O[f+32>>3]=c;J[f+24>>2]=0;J[f+28>>2]=1072693248;J[f>>2]=0;J[f+4>>2]=1072693248;e=ej(f,a);g=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=g;g=J[e+44>>2];J[a+40>>2]=J[e+40>>2];J[a+44>>2]=g;g=J[e+ -36>>2];J[a+32>>2]=J[e+32>>2];J[a+36>>2]=g;g=J[e+28>>2];J[a+24>>2]=J[e+24>>2];J[a+28>>2]=g;g=J[e+20>>2];J[a+16>>2]=J[e+16>>2];J[a+20>>2]=g;g=J[e+12>>2];J[a+8>>2]=J[e+8>>2];J[a+12>>2]=g;break a}J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=1072693248;O[f+40>>3]=k;O[f+32>>3]=l;J[f+24>>2]=0;J[f+28>>2]=1072693248;ej(g,f);e=J[a>>2];J[f+40>>2]=0;J[f+44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;O[f+24>>3]=b;O[f+16>>3]=j;O[f+8>>3]=i;O[f>>3]=b;ej(e,f);a=J[a>>2];J[f+16>>2]=0;J[f+20>>2]=0;J[f+ -8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=1072693248;O[f+40>>3]=d;O[f+32>>3]=c;J[f+24>>2]=0;J[f+28>>2]=1072693248;ej(a,f)}bc=f+48|0}function Hwb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;d=bc-8240|0;bc=d;wc(d+28|0,0,8212);g=d+12|0;J[g+12>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g>>2]=413844;J[695492]=0;a=ga(3,g|0,c|0,0)|0;f=J[695492];J[695492]=0;a:{b:{c:{if((f|0)!=1){d:{if(!a)break d;f=0;J[695492]=0;a=J[g+4>>2];h=J[695492];J[695492]=0;e:{f:{g:{h:{i:{if((h|0)==1)break i;if(a){J[695492]=0;h=$(27, -1024)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;f=N8(h,Yd(h,1,1024,a));qc(h);Xg(a,0,0)}h=0;J[695492]=0;_(21,g|0);a=J[695492];J[695492]=0;if((a|0)==1)break i;j:switch(f-1|0){case 0:break j;case 2:break g;case 1:break h;default:break d}J[695492]=0;a=$(4,36)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[695492]=0;c=ga(901,a|0,c|0,1)|0;f=J[695492];J[695492]=0;if((f|0)==1){c=Z()|0;qc(a);break a}J[695492]=0;a=aa(902,c|0,d+28|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;gc[J[J[c>>2]+4>>2]](c); -if(a)break e;break d}c=Z()|0;break a}J[695492]=0;a=$(4,36)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[695492]=0;c=ga(901,a|0,c|0,1)|0;f=J[695492];J[695492]=0;if((f|0)==1){c=Z()|0;qc(a);break a}J[695492]=0;a=aa(903,c|0,d+28|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break f;break b}J[695492]=0;a=$(4,36)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[695492]=0;c=ga(901,a|0,c|0,1)|0;f=J[695492];J[695492]=0;if((f|0)==1){c=Z()|0;qc(a);break a}J[695492]=0;a=aa(904,c|0,d+28|0)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break b;gc[J[J[c>>2]+4>>2]](c);if(a)break e;break d}gc[J[J[c>>2]+4>>2]](c);if(!a)break d}J[695492]=0;h=ga(905,a|0,b|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;e=J[a+24>>2];k:{if(!e)break k;c=0;f=J[a+16>>2];if((f|0)>0){while(1){b=J[a+24>>2]+P(c,48)|0;e=J[b+44>>2];if(e){qc(e);J[b+44>>2]=0;f=J[a+16>>2]}c=c+1|0;if((f|0)>(c|0))continue;break}e=J[a+24>>2];if(!e)break k}qc(e)}qc(a)}ve(g);bc=d+8240|0;return h|0}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0}ve(g);ba(c|0);B()}function GAa(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;e=J[b>>2]}J[695492]=0;J[c+8>>2]=e;da(5125,c+12|0,c+8|0);b=J[695492];J[695492]=0;a:{b:{c:{d:{if((b|0)!=1){b=J[c+8>>2];J[c+8>>2]=0;e:{if(!b)break e;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(e)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;f=a+12|0;_(5079,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;e=0;J[695492]=0;b=$(5176, -J[c+12>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;f:{g:{h:{if((b|0)>0)while(1){J[695492]=0;a=$(4,28)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2389464;J[a+4>>2]=0;d=J[682146];J[a+24>>2]=d;J[a+20>>2]=0;J[a+16>>2]=d;J[695492]=0;J[c+4>>2]=0;aa(4985,c+4|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;J[695492]=0;da(5177,J[c+4>>2],c+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;a=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;J[a>> -2]=0;J[a+4>>2]=0;d=J[c+4>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break g;d=J[c+4>>2]}else d=0;J[a+8>>2]=d;J[695492]=0;of(f,a);a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[c+4>>2];J[c+4>>2]=0;i:{if(!a)break i;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(d)break i;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}e=e+1|0;if((b|0)!=(e|0))continue;break}a=J[c+12>>2];J[c+12>>2]=0;if(!a)break f;J[695492]= -0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[695492];J[695492]=0;if((e|0)!=1){if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}break a}b=Z()|0;a=c+12|0;break b}b=Z()|0;vc(c+4|0);a=c+12|0;break b}bc=c+16|0;return}b=Z()|0;a=c+8|0;break b}b=Z()|0;a=c+12|0;break b}b=Z()|0;a=c+12|0}vc(a);ba(b|0);B()}ea(0)|0;yc();B()}function Tr(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=J[a+584>>2];g=J[i+64>>2];e=J[i+68>>2];if((b|0)>=2624)while(1){h=L[c+620>>1];d=L[c+618>>1];a:{if(d>>>0<=e>>>0)break a; -d=d-e|0;e=h>>>d|g;if(J[a+608>>2]>=J[a+600>>2])gf(a);g=J[a+604>>2];J[a+604>>2]=g+1;H[g|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;g=0;if(d>>>0<9)break a;while(1){d=d-8|0;e=h>>>d|0;if(J[a+600>>2]<=(f|0))gf(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}e=e-d|0;g=(h&J[(d<<2)+95792>>2])<>2]>=J[a+600>>2])gf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=g;J[a+608>>2]=J[a+608>>2]+1;g=0;e=8}b=b-I[c+622>>1]|0;if((b|0)>2623)continue;break}b:{if((b| -0)>=64){h=P(b>>>6|0,6)+c|0;if(I[h+382>>1]!=(b&-64))break b;j=L[h+380>>1];d=L[h+378>>1];c:{if(d>>>0<=e>>>0)break c;d=d-e|0;e=j>>>d|g;if(J[a+608>>2]>=J[a+600>>2])gf(a);g=J[a+604>>2];J[a+604>>2]=g+1;H[g|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;g=0;if(d>>>0<9)break c;while(1){d=d-8|0;e=j>>>d|0;if(J[a+600>>2]<=(f|0))gf(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}e=e-d|0;g=(J[(d<<2)+95792>>2]&j)<>2]>=J[a+600>>2])gf(a);d= -J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=g;J[a+608>>2]=J[a+608>>2]+1;g=0;e=8}b=b-I[h+382>>1]|0}c=P(b,6)+c|0;b=L[c+2>>1];d=L[c>>1];d:{if(d>>>0<=e>>>0)break d;d=d-e|0;c=b>>>d|g;if(J[a+608>>2]>=J[a+600>>2])gf(a);e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=c;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;g=0;if(d>>>0<9)break d;while(1){d=d-8|0;c=b>>>d|0;if(J[a+600>>2]<=(f|0))gf(a);e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=c;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}c=b&J[(d<<2)+95792>>2];b=e-d|0;f=c<>2]>=J[a+600>>2])gf(a);b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=f;J[a+608>>2]=J[a+608>>2]+1;f=0;b=8}J[i+68>>2]=b;J[i+64>>2]=f;return}fa(89258,70523,643,96096);B()}function i8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b); -if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632; -J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g; -if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];p3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue; -break}}}function e7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a; -j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0> -536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+ -2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];j3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function b7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+ -1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b; -if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632; -J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)< -(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];h3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function Y6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>> -3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h; -l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h; -g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];d3(e,J[f>>2],J[f+4>>2],J[f+ -8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function W6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2]; -j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<= -M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>> -2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];b3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function U6a(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; -if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a; -g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>> -2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue; -break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];$2(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function S6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+ -1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i= -J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>> -0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+ -4>>2]=J[c+4>>2];Z2(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function $6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i= -J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h= -(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>> -2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(yd(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];f3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function nL(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0; -c=bc-48|0;bc=c;J[a>>2]=340472;e=nl(a+32|0);J[a+44>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+156>>2]=0;J[a+160>>2]=1065353216;J[a+172>>2]=0;J[a+176>>2]=0;I[a+188>>1]=0;J[a+208>>2]=0;J[a+212>>2]=1;J[a+200>>2]=0;J[a+204>>2]=0; -J[a+192>>2]=1056964608;J[a+196>>2]=1065353216;J[a+180>>2]=1065353216;J[a+184>>2]=1065353216;J[a+216>>2]=1;J[a+236>>2]=0;J[a+240>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;d=a+220|0;b=d;J[b>>2]=0;J[b+4>>2]=0;J[a+252>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+272>>2]=0;J[695492]=0;b=$(4,24)|0;g=J[695492];J[695492]=0;f=a+36|0;a:{if((g|0)==1){b=Z()|0;$j(d);break a}d=b+24|0;J[a+272>>2]=d;J[a+264>>2]=b;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[a+268>>2]=d; -wc(a+280|0,0,88);J[a+8>>2]=1E3;J[a+12>>2]=0;J[a+24>>2]=255;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=255;b=c;J[b+40>>2]=0;J[b+44>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+8>>2]=0;J[b+12>>2]=0;J[695492]=0;J[b>>2]=0;J[b+4>>2]=0;mo(e,b+40|0,b+32|0,b+24|0,b+16|0,b+8|0,b);b=J[695492];J[695492]=0;if((b|0)!=1){J[a+112>>2]=0;J[a+116>>2]=0;J[a+48>>2]=255;J[a+52>>2]=0;b:{if(H[a+47|0]<0){J[a+40>>2]=0;f=J[a+36>>2];break b}H[a+47|0]=0}J[f>>2]=0;J[a+72>> -2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+124>>2]=J[a+120>>2];bc=c+48|0;return a|0}b=Z()|0;Qe(a+212|0)}c=J[a+120>>2];if(c){J[a+124>>2]=c;qc(c)}if(H[a+47|0]<0)qc(J[a+36>>2]);Ed(e);ba(b|0);B()}function iha(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=Q(0);a=bc-368|0;bc=a;J[a+360>>2]=c;J[a+364>>2]=b;TE(a+204|0,d,a+224|0,a+220|0,a+216|0);b=Se(a+192|0); -if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[695492]=0;d=aa(6645,a+364|0,a+360|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+188>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d= -J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=d+c}J[695492]=0;d=a+364|0;g=$(6646,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=vy(g,a+7|0,a+6|0,c,a+188|0,J[a+220>>2],J[a+216>>2],a+204|0,a+16|0,a+12|0,a+8|0,a+224|0);h=J[695492];J[695492]=0;if((h|0)== -1)break d;if(g)break c;J[695492]=0;$(6648,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+215|0]>>>7|0)d=J[a+208>>2];else d=K[a+215|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;i=Q(ib(6633,c|0,J[a+188>>2],e|0));c=J[695492];J[695492]=0;f:{if((c|0)==1)break f;N[f>>2]=i;J[695492]=0;Ah(a+204|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6645,a+364|0,a+360| -0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+364>>2];ad(b);ad(a+204|0);bc=a+368|0;break a}}c=Z()|0;ad(b);ad(a+204|0);ba(c|0);B()}return c|0}function Lsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-48|0;bc=d;J[a>>2]=0;a:{b:{c:{d:{e:{f=J[b+12>>2];f:{if(K[f|0]){h=Qc(f);J[695492]=0;g=ha(5043,d+20|0,d+28|0,P(h,12)+12|0,1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;e=J[d+28>>2];b=J[b+12>>2];J[d+32>>2]=b;f=f+h|0;g:{if(f>>>0<=b>>>0)break g;if((c|0)==1){while(1){if(!K[b| -0])break g;c=Gq(d+32|0,f);J[695492]=0;b=Im(e,c);h=J[695492];J[695492]=0;if((h|0)!=1){h:{i:{if((b|0)<0){H[e|0]=0;break i}e=b+e|0;H[e|0]=0;if(b)break h}J[d>>2]=c;Vf(e,2380759,d);e=Qc(e)+e|0}b=J[d+32>>2];if(f>>>0>b>>>0)continue;break g}break}e=Z()|0;_c(g);break b}while(1){if(!K[b|0])break g;b=Gq(d+32|0,f);J[695492]=0;b=Im(e,b);c=J[695492];J[695492]=0;j:{if((c|0)!=1){if((b|0)>=0)break j;H[e|0]=0;e=J[d+28>>2];break g}e=Z()|0;_c(g);break b}e=b+e|0;H[e|0]=0;if(!b){e=J[d+28>>2];break g}b=J[d+32>>2];if(f>>> -0>b>>>0)continue;break}}H[e|0]=0;J[695492]=0;b=J[d+28>>2];J[d+40>>2]=0;J[d+44>>2]=0;J[d+36>>2]=0;J[d+32>>2]=2413944;ca(5467,d+16|0,d+32|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[d+32>>2]=2414580;b=J[d+44>>2];if(b){H[b|0]=0;qc(J[d+44>>2])}J[d+44>>2]=0;ed(d+32|0);J[695492]=0;aa(4993,a|0,d+16|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){a=J[d+16>>2];J[d+16>>2]=0;k:{if(!a)break k;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break k;J[695492]=0;_(4987, -a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}_c(g);break f}e=Z()|0;vc(d+16|0);_c(g);break b}J[695492]=0;J[d+32>>2]=0;aa(4993,a|0,d+32|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;a=J[d+32>>2];J[d+32>>2]=0;if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+48|0;return}e=Z()|0;break b}e=Z()|0;bh(d+32|0);_c(g);break b}e=Z()|0;vc(d+32|0)}vc(a);ba(e|0);B()}ea(0)| -0;yc();B()}function Aha(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=Q(0);a=bc-256|0;bc=a;J[a+248>>2]=c;J[a+252>>2]=b;WE(a+192|0,d,a+208|0,a+207|0,a+206|0);b=Se(a+180|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[695492]=0;d=aa(6531,a+252|0,a+248|0)|0;g=J[695492];J[695492]=0; -if((g|0)==1)break d;if(d)break c;g=J[a+176>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=d+c}J[695492]=0;d=a+252|0;g=$(6532, -d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=xy(g,a+7|0,a+6|0,c,a+176|0,H[a+207|0],H[a+206|0],a+192|0,a+16|0,a+12|0,a+8|0,a+208|0);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+203|0]>>>7|0)d=J[a+196>>2];else d=K[a+203|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;i=Q(ib(6633,c|0,J[a+176>>2],e| -0));c=J[695492];J[695492]=0;f:{if((c|0)==1)break f;N[f>>2]=i;J[695492]=0;Ah(a+192|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+252|0,a+248|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];ad(b);ad(a+192|0);bc=a+256|0;break a}}c=Z()|0;ad(b);ad(a+192|0);ba(c|0);B()}return c|0}function zab(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=Q(0),k=0,l=0,m=0,n=0;a:{if(J[a+632>>2]==8)break a;gc[J[J[a>>2]+ -136>>2]](a,340176)|0;qr(a);e=DC(a,a+88|0);g=J[a+16>>2];f=J[a+12>>2];m=O[c>>3];n=O[d>>3];c=bc-144|0;bc=c;b:{c:{d:{e:{f:{g:{if(!J[e+4>>2]){d=Vw(c+140|0,g+48|0);J[695492]=0;Ck(d,g+52|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;or(d,c+80|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;O[c+72>>3]=m;O[c+64>>3]=n;J[695492]=0;h=aa(2281,c+60|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;nr(h);a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;Ck(h,g+56|0,0);a=J[695492]; -J[695492]=0;if((a|0)==1)break g;J[695492]=0;je(h,c+72|0,c- -64|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;O[c+48>>3]=Q(O[c+80>>3]);O[c+40>>3]=Q(O[c+88>>3]);O[c+32>>3]=Q(O[c+96>>3]);O[c+24>>3]=Q(O[c+104>>3]);O[c+16>>3]=Q(O[c+112>>3]);O[c+8>>3]=Q(O[c+120>>3]);a=J[J[f>>2]+124>>2];J[695492]=0;k=a;a=c+48|0;i=c+40|0;l=c+32|0;va(k|0,f|0,a|0,i|0,l|0,c+24|0,c+16|0,c+8|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break g;J[g+2932>>2]=J[f+160>>2];J[c+48>>2]=J[b>>2];N[c+40>>2]=O[c+72>>3];N[c+32>>2]=O[c+64>>3]; -b=J[J[f>>2]+108>>2];J[695492]=0;ha(b|0,f|0,a|0,i|0,l|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[c+48>>2]=0;J[c+40>>2]=0;h:{while(1){i:{J[c+32>>2]=0;a=J[J[f>>2]+200>>2];J[695492]=0;a=ha(a|0,f|0,c+32|0,c+48|0,c+40|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;if(!a)break h;i=J[c+32>>2];if(!i)continue;J[695492]=0;j=N[c+40>>2];j:{if(Q(R(j))>2];k:{if(Q(R(j))>2]+4>>2]](e)}return 0}function hha(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;a=bc-368|0;bc=a;J[a+360>>2]=c;J[a+364>>2]=b;TE(a+204|0,d,a+224|0,a+220|0,a+216|0);b=Se(a+192|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c| -0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[695492]=0;d=aa(6645,a+364|0,a+360|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+188>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0? -(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=d+c}J[695492]=0;d=a+364|0;g=$(6646,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=vy(g,a+7|0,a+6|0,c,a+188|0,J[a+220>>2],J[a+216>>2],a+204|0,a+16|0,a+12|0,a+8|0,a+224|0);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6648,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+ -215|0]>>>7|0)d=J[a+208>>2];else d=K[a+215|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;i=+Aa(6636,c|0,J[a+188>>2],e|0);c=J[695492];J[695492]=0;f:{if((c|0)==1)break f;O[f>>3]=i;J[695492]=0;Ah(a+204|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6645,a+364|0,a+360|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+364>>2];ad(b);ad(a+204|0);bc=a+368|0;break a}}c= -Z()|0;ad(b);ad(a+204|0);ba(c|0);B()}return c|0}function yha(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;a=bc-256|0;bc=a;J[a+248>>2]=c;J[a+252>>2]=b;WE(a+192|0,d,a+208|0,a+207|0,a+206|0);b=Se(a+180|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[695492]=0;d=aa(6531,a+252|0,a+ -248|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+176>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>> -2]=d+c}J[695492]=0;d=a+252|0;g=$(6532,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=xy(g,a+7|0,a+6|0,c,a+176|0,H[a+207|0],H[a+206|0],a+192|0,a+16|0,a+12|0,a+8|0,a+208|0);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+203|0]>>>7|0)d=J[a+196>>2];else d=K[a+203|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]= -0;i=+Aa(6636,c|0,J[a+176>>2],e|0);c=J[695492];J[695492]=0;f:{if((c|0)==1)break f;O[f>>3]=i;J[695492]=0;Ah(a+192|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+252|0,a+248|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];ad(b);ad(a+192|0);bc=a+256|0;break a}}c=Z()|0;ad(b);ad(a+192|0);ba(c|0);B()}return c|0}function A1(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc+-64|0;bc=c;d=K[a+11|0];e=d<<24>>24<0;a:{b:{c:{d:{e:{b=J[a+4>> -2];f:{if(!(e?b:d))break f;g:{if(!e){J[c+48>>2]=J[a+8>>2];b=J[a+4>>2];J[c+40>>2]=J[a>>2];J[c+44>>2]=b;break g}Re(c+40|0,J[a>>2],b)}J[695492]=0;ca(2819,c+52|0,c+40|0,0);b=J[695492];J[695492]=0;h:{i:{j:{if((b|0)!=1){if(H[c+51|0]<0)qc(J[c+40>>2]);b=J[c+52>>2];if((b|0)!=J[c+56>>2]){d=0;while(1){J[695492]=0;$(44,P(d,12)+b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;d=d+1|0;b=J[c+52>>2];if(d>>>0<(J[c+56>>2]-b|0)/12>>>0)continue;break}}if(H[a+11|0]<0)break i;J[c+24>>2]=J[a+8>>2];b=J[a+4>>2];J[c+16>> -2]=J[a>>2];J[c+20>>2]=b;break h}d=Z()|0;if(H[c+51|0]>=0)break a;qc(J[c+40>>2]);ba(d|0);B()}d=Z()|0;break b}d=J[a+4>>2];b=J[a>>2];J[695492]=0;ca(15,c+16|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break e}J[695492]=0;da(2868,c+28|0,c+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;if(H[c+27|0]<0)qc(J[c+16>>2]);b=J[c+28>>2];if((b|0)!=J[c+32>>2]){d=0;while(1){J[695492]=0;da(2869,P(d,12)+b|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break c;d=d+1|0;b=J[c+28>>2];if(d>>>0<(J[c+32>>2]-b|0)/12>>>0)continue; -break}}J[c+12>>2]=0;J[c+8>>2]=0;d=J[a>>2];b=J[a+4>>2];e=K[a+11|0];J[695492]=0;f=a;a=e<<24>>24<0;la(1636,(a?d:f)|0,(a?b:e)|0,c+12|0,c+8|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=Ta(J[c+12>>2])|0;if(a>>>0>=4294963201)J[694731]=0-a;a=J[c+12>>2];if(a)qc(a);e=J[c+28>>2];if(e){b=J[c+32>>2];d=e;if((b|0)!=(d|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((a|0)!=(e|0))continue;break}d=J[c+28>>2]}J[c+32>>2]=e;qc(d)}e=J[c+52>>2];if(!e)break f;b=J[c+56>>2];d=e;if((b|0)!=(d|0)){while(1){a=b-12| -0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((a|0)!=(e|0))continue;break}d=J[c+52>>2]}J[c+56>>2]=e;qc(d)}bc=c- -64|0;return}d=Z()|0;break b}d=Z()|0;if(H[c+27|0]>=0)break b;qc(J[c+16>>2]);break b}d=Z()|0;sg(c+28|0)}sg(c+52|0)}ba(d|0);B()}function u8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+ -104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>> -2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g); -J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;g=f+4|0;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){h=J[d+4>>2];i=J[c+4>>2];if((h|0)<(i|0)){if(yd(b,d))continue;break a}break}if((h|0)!=(i|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];v3(e, -J[f>>2],g)}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function s8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>> -2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+84>>2];k=(g|0)<(j|0)?j:g;g=J[a+92>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>> -0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]= -m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!yd(b,d))break a;g=f+4|0;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){h=J[d+4>>2];i=J[c+4>>2];if((h|0)<(i|0)){if(yd(b,d))continue;break a}break}if((h|0)!=(i|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];tC(e,J[f>>2],g)}if(!Gd(a,c))break a;if(yd(b,d))continue;break}}}function lO(a,b,c,d,e,f,g,h,i){var j=0;j=zc(44);a:{if(j){J[j+32>>2]=0;J[j+28>>2]=h;J[j+24>>2]=g; -J[j+20>>2]=f;J[j+16>>2]=e;J[j+12>>2]=d;J[j+8>>2]=c;J[j+4>>2]=b;J[j>>2]=a;J[j+40>>2]=65536;a=g+7>>>3|0;J[j+36>>2]=a;h=P(a,P(e,f));b:{if(i){a=Fi(0,h);break b}g=0;e=bc-16|0;bc=e;a=zc(68);c:{if(!a){a=0;break c}J[a+52>>2]=0;J[a+56>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+60>>2]=0;J[a+64>>2]=-1;J[a>>2]=11;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;d:{c=zc(32);if(!c){if(!(K[a+4|0]&8))break d;b=J[a+12>>2];if(!b)break d;qc(b);J[a+12>>2]=0;break d}H[c+8|0]=0;J[c>>2]=-1;J[c+4>>2]=0;J[a+56>>2]= -c;d=c+8|0;b=bc-48|0;bc=b;f=K[2607823]|K[2607824]<<8|(K[2607825]<<16|K[2607826]<<24);H[b+31|0]=f;H[b+32|0]=f>>>8;H[b+33|0]=f>>>16;H[b+34|0]=f>>>24;f=J[651955];J[b+24>>2]=J[651954];J[b+28>>2]=f;f=J[651953];J[b+16>>2]=J[651952];J[b+20>>2]=f;f=b+16|12;e:{f:{while(1){BR(f);H[b+15|0]=0;if((Va(-100,b+16|0,b+15|0,1)|0)==-44)break f;g=g+1|0;if((g|0)!=100)continue;break}break e}ff(d?d:2781424,b+16|0)}bc=b+48|0;J[e>>2]=438;b=Ou(d,706,e);J[c>>2]=b;if((b|0)<0){if(!(K[a+4|0]&8))break d;b=J[a+12>>2];if(!b)break d; -qc(b);J[a+12>>2]=0;break d}if(mR(d))J[c+4>>2]=J[c+4>>2]|1;if(!J[a+12>>2]){b=zc(8208);J[a+12>>2]=b;g:{if(b){d=J[a+4>>2]|8;c=8192;break g}b=a+32|0;J[a+12>>2]=b;d=J[a+4>>2];c=1}J[a+28>>2]=0;J[a+20>>2]=c;J[a+52>>2]=2627256;b=b+16|0;J[a+24>>2]=b;J[a+16>>2]=b;J[a+4>>2]=d|2;break c}fa(205922,198678,703,206445);B()}qc(a);a=0}bc=e+16|0}J[j+32>>2]=a;h:{if(!a)break h;i:{j:{if((Mg(a,h-1|0,0)|0)<0)break j;g=J[j+32>>2];a=J[g+8>>2];if(a&7)break i;b=J[g+64>>2];if(!((b|0)<0|(b|0)>J[g+60>>2])){J[g+8>>2]=a|4;break j}J[g+ -4>>2]=J[g+4>>2]|32;a=J[g+28>>2];J[g+28>>2]=a-1;k:{if((a|0)<=0){if((Uc(g,0)|0)!=-1)break k;break j}J[g+60>>2]=J[g+60>>2]+1;a=J[g+24>>2];J[g+24>>2]=a+1;H[a|0]=0}if((Mg(J[j+32>>2],0,0)|0)>=0)break a}g=J[j+32>>2];if(!g)break h}If(g)}qc(j)}j=0}return j}function dk(a,b,c,d,e,f,g,h,i,j){var k=0,l=0,m=0;k=J[b+88>>2];H[k+49|0]=0;H[k+50|0]=0;H[k+48|0]=i;H[k+47|0]=h;H[k+46|0]=g;H[k+45|0]=f;H[k+44|0]=e;J[k+40>>2]=d;J[k+36>>2]=c;a:{b:switch(f|0){case 0:case 8:l=e>>>0>8?2:1;break a;case 2:case 10:l=e>>>0>8?6:3; -break a;case 3:l=1;break a;case 4:case 12:l=e>>>0>8?4:2;break a;case 6:case 14:break b;default:break a}l=e>>>0>8?8:4}c:{i=P(c,l);g=P(i,d);f=J[k+1172>>2];d:{if((g|0)!=(f|0)){h=J[k+1176>>2];if(h){gc[J[a+156>>2]](h,f);J[k+1176>>2]=0}if(!g)break d;f=gc[J[a+152>>2]](g)|0;J[k+1176>>2]=f;if(f)break d;break c}if(!g)break d;h=J[k+1176>>2];f=h;m=g&-4;if(m){f=(m-1&-4)+4|0;f=wc(h,0,f)+f|0}if(g+h>>>0<=f>>>0)break d;while(1){H[f|0]=0;f=f+1|0;if(f>>>0>2]>>>0)continue;break}}J[k+1172>>2]=g;J[k+1168>> -2]=i;J[k+1164>>2]=l;if(!K[k+53|0])H[k+53|0]=e;if(!K[k+54|0])H[k+54|0]=e;if(!(K[b+44|0]|(!c|!d))){J[b+60>>2]=d;J[b+56>>2]=0;J[b+52>>2]=c;J[b+48>>2]=0}if(L[b+28>>1]){J[b+64>>2]=0;J[b+68>>2]=0;I[b+70>>1]=0;I[b+72>>1]=0;I[b+74>>1]=0;I[b+76>>1]=0}if(!j)return 0;J[b+80>>2]=0;J[b+84>>2]=0;H[k+55|0]=0;H[k+56|0]=0;f=K[a+308|0];H[k+57|0]=f;H[k+58|0]=K[a+309|0];H[k+59|0]=K[a+310|0];H[k+60|0]=K[a+311|0];H[k+61|0]=K[a+312|0];b=J[k+1144>>2];if(b){c=J[k+1148>>2];if(c){gc[J[a+156>>2]](c,b);J[k+1148>>2]=0;f=K[a+308| -0]}J[k+1144>>2]=0}if(f&255)J[k+1104>>2]=J[a+2192>>2];if(K[a+309|0]){J[k+1108>>2]=J[a+2196>>2];J[k+1112>>2]=J[a+2200>>2];J[k+1116>>2]=J[a+2204>>2];J[k+1120>>2]=J[a+2208>>2];J[k+1124>>2]=J[a+2212>>2];J[k+1128>>2]=J[a+2216>>2];J[k+1132>>2]=J[a+2220>>2];J[k+1136>>2]=J[a+2224>>2]}if(K[a+310|0])H[k+1140|0]=K[a+2228|0];if(K[a+311|0]){b=J[a+2232>>2];if(b){b=gc[J[a+152>>2]](b)|0;J[k+1148>>2]=b;if(!b)break c;tc(b,J[a+2236>>2],J[a+2232>>2]);b=J[a+2232>>2]}else b=0;J[k+1144>>2]=b}if(K[a+312|0]){I[k+1156>>1]= -L[a+2240>>1];I[k+1158>>1]=L[a+2242>>1];I[k+1160>>1]=L[a+2244>>1]}return 0}Dc(a,1,0,0);return 1}function ZB(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{g=J[b>>2];if(g>>>0>=c>>>0)break a;m=K[a+36|0];f=J[a+8>>2];i=J[f+60>>2];b:{c:{d:{e:{f:{g:{while(1){J[b>>2]=g+1;g=K[g|0];h=H[a+36|0];H[a+36|0]=h+1;H[(a+h|0)+37|0]=g;g=H[g+744064|0];if(!g)break e;i=g+(i<<5)|0;j=74;h=0;k=0;while(1){g=h;h=j+k>>1;if((g|0)==(h|0))break e;h:{g=h;l=J[(g<<2)+743680>>2];if((l|0)<=(i|0)){k=g;g=j;if((i|0)<=(l|0))break h}j= -g;if((g|0)==(k|0))break e;continue}break}i:{j=H[h+743984|0];switch(j+1|0){case 0:break d;case 2:case 3:break g;default:break i}}g=J[b>>2];if(g>>>0>>0)continue;break}J[f+60>>2]=i;switch(j+1|0){case 1:break a;case 0:break c;default:break f}}J[f+60>>2]=0}j:{k:{l:{m:switch(d-1|0){case 0:n:{o:{p:{c=H[h+743520|0];switch(c+1|0){case 0:break k;case 2:case 3:break o;case 17:break p;default:break n}}if(!K[f+50|0])break c;c=H[f+52|0];if((c|0)<=1)H[f+53|0]=c;H[f+52|0]=2;break l}if(!(L[(J[f+64>>2]<<1)+742652>> -1]>>>c&1))break k;H[f+50|0]=c;break l}if(!(L[(J[f+64>>2]<<1)+742652>>1]>>>c&1))break k;H[f+48|0]=c;break l;case 2:q:{r:{s:{t:{u:{v:{c=H[h+743600|0];switch(c+1|0){case 0:break k;case 35:break r;case 2:case 34:break s;case 3:break t;case 18:break u;case 17:break v;default:break q}}if(!K[f+50|0])break c;c=H[f+52|0];if((c|0)<=1)H[f+53|0]=c;H[f+52|0]=2;break l}if(!K[f+51|0])break c;c=H[f+52|0];if((c|0)<=1)H[f+53|0]=c;H[f+52|0]=3;break l}if(!J[f+64>>2])break k}H[f+49|0]=c;break l}H[f+50|0]=c;break l}if(!J[f+ -64>>2])break k;H[f+51|0]=c;break l;case 1:break m;default:break c}if((h|0)!=48)break k}c=J[e>>2];if((c|0)<=0){H[a+36|0]=0;return}switch(c-18|0){case 1:break j;case 0:break b;default:break a}}J[e>>2]=19}J[a+256>>2]=0;break a}i=0}J[f+60>>2]=i}J[e>>2]=18}c=H[a+36|0];if((c|0)<2)break a;d=c-1|0;g=d&255;e=c-m|0;c=e<<24>>24;if((g|0)>(c|0)){d=e-d|0;H[a+254|0]=d;tc(a+222|0,a+38|0,0-(d<<24>>24)|0);g=c}J[b>>2]=J[b>>2]-g;H[a+36|0]=1}}function tl(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=bc-48|0;bc=g; -J[a+8>>2]=0;i=J[a+4>>2];if(i){J[J[a>>2]>>2]=254769;J[J[a>>2]+4>>2]=254769;J[J[a>>2]+8>>2]=254769;J[J[a>>2]+12>>2]=254769;J[J[a>>2]+16>>2]=254769}a:{if(!d)break a;e=K[c|0];if(!e)break a;j=6;if(!b)break a;f=K[b|0];if(!f)break a;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;while(1){b:{c:{d:{h=f&255;if((h|0)!=43){if(!h)break d;h=K[b+1|0];break c}h=K[b+1|0];if(h)break c;k=1;h=0;break b}e:{if((d|0)<=0){d=0;e=0;break e}i=c+d|0;while(1){f=c;while(1){f:{if(K[((e& -248)>>>3|0)+g|0]>>>(e&7)&1){h=f;break f}e=K[f+1|0];h=f+1|0;f=h;if(e)continue}break}e=J[a+8>>2];g:{if((e|0)!=J[a+4>>2])break g;J[g+44>>2]=0;if((e|0)==-1)break g;if((e|0)==536870911){j=64;break a}b=((e>>>1|0)+e|0)+5|0;b=b>>>0>>0?536870911:b>>>0>536870911?536870911:b;l=a,m=Sc(J[a+12>>2],4,e,b,J[a>>2],g+44|0),J[l>>2]=m;j=J[g+44>>2];if(j)break a;J[a+4>>2]=b;e=J[a+8>>2]}J[a+8>>2]=e+1;J[J[a>>2]+(e<<2)>>2]=c>>>0>=h>>>0?254769:c;f=K[h|0];h:{i:{if(k){d=0;b=h;if(!(f&255)){e=0;c=b;break h}while(1){j:{if(!(K[((f& -248)>>>3|0)+g|0]>>>(f&7)&1)){e=f;c=b;break j}e=0;H[b|0]=0;f=K[b+1|0];c=b+1|0;b=c;if(f)continue}break}if(c>>>0<=h>>>0)break h;break i}if(!(f&255)){e=0;c=h;d=0;break h}H[h|0]=0;c=h+1|0;e=K[h+1|0]}d=!(e&255)}if(e&255?c>>>0>>0:0)continue;break}i=J[a+4>>2];e=J[a+8>>2]}b=d+e|0;k:{if(b>>>0>>0)break k;J[g+44>>2]=0;if(b+1>>>0<=i>>>0)break k;j=64;if((i|0)==536870911)break a;b=((i>>>1|0)+i|0)+5|0;b=b>>>0>>0?536870911:b>>>0>536870911?536870911:b;l=a,m=Sc(J[a+12>>2],4,i,b,J[a>>2],g+44|0),J[l>>2]=m;j= -J[g+44>>2];if(j)break a;J[a+4>>2]=b;e=J[a+8>>2]}f=J[a>>2];l:{if(!d){b=e;break l}b=e+1|0;J[a+8>>2]=b;J[(e<<2)+f>>2]=254769;f=J[a>>2]}j=0;J[(b<<2)+f>>2]=0;break a}j=((f&248)>>>3|0)+g|0;H[j|0]=K[j|0]|1<<(f&7)}b=b+1|0;f=h;continue}}bc=g+48|0;return j}function yab(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=Q(0),l=0,m=0;a:{if(J[a+632>>2]==8)break a;gc[J[J[a>>2]+136>>2]](a,340176)|0;J[a+508>>2]=0;qr(a);e=DC(a,a+88|0);g=J[a+16>>2];f=J[a+12>>2];l=O[c>>3];m=O[d>>3];c=bc-144|0;bc= -c;b:{c:{d:{e:{f:{g:{if(!J[e+4>>2]){d=Vw(c+140|0,g+48|0);J[695492]=0;Ck(d,g+52|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;or(d,c+80|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;O[c+72>>3]=l;O[c+64>>3]=m;J[695492]=0;h=aa(2281,c+60|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;nr(h);a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;Ck(h,g+56|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;je(h,c+72|0,c- -64|0);a=J[695492];J[695492]=0;if((a|0)== -1)break g;O[c+48>>3]=Q(O[c+80>>3]);O[c+40>>3]=Q(O[c+88>>3]);O[c+32>>3]=Q(O[c+96>>3]);O[c+24>>3]=Q(O[c+104>>3]);O[c+16>>3]=Q(O[c+112>>3]);O[c+8>>3]=Q(O[c+120>>3]);a=J[J[f>>2]+124>>2];J[695492]=0;i=a;a=c+48|0;j=c+40|0;va(i|0,f|0,a|0,j|0,c+32|0,c+24|0,c+16|0,c+8|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break g;J[g+2932>>2]=J[f+160>>2];N[c+48>>2]=O[c+72>>3];N[c+40>>2]=O[c+64>>3];i=J[J[f>>2]+88>>2];J[695492]=0;ha(i|0,f|0,b|0,a|0,j|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[c+48>>2]=0;J[c+40>>2]= -0;h:{while(1){i:{J[c+32>>2]=0;a=J[J[f>>2]+200>>2];J[695492]=0;a=ha(a|0,f|0,c+32|0,c+48|0,c+40|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;if(!a)break h;j=J[c+32>>2];if(!j)continue;J[695492]=0;k=N[c+40>>2];j:{if(Q(R(k))>2];k:{if(Q(R(k))>2]+4>>2]](e)}return 0}function aG(a,b){var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;if(!K[b+32|0])_o(b,0);J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d=J[b+8>>2];d:{if(!d|!J[d+8>>2])break d;J[695492]=0;d=c+20|0;ca(5231,d|0,b|0,0);e=J[695492];J[695492]=0;if((e|0)==1)break c;e=J[c+20>>2];if(!e){sc(d);break d}d=J[e+8>>2];sc(c+20|0);if(!d)break d;J[c+20>>2]=0;J[c+24>>2]=J[682146];e:{b=J[b+8>>2];f:{g:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1); -b=J[695492];J[695492]=0;if((b|0)!=1)break g;b=Z()|0;break f}J[c+12>>2]=0}J[695492]=0;aa(4993,c+20|0,c+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}b=Z()|0;vc(c+12|0)}sc(c+20|0);break b}b=J[c+20>>2];J[c+24>>2]=J[(b?b+12|0:2728584)>>2];b=0;J[695492]=0;da(6061,c+12|0,c+20|0);d=J[695492];J[695492]= -0;h:{i:{j:{if((d|0)!=1){d=J[c+12>>2];if(d)b=J[d+8>>2];sc(c+12|0);d=b;b=J[c+20>>2];b=d+J[(b?b+12|0:2728584)>>2]|0;d=b-1|0;while(1){e=K[b|0];if(!e|(e|0)==35|(e|0)==63)break j;d=(e|0)==47?b:d;b=b+1|0;continue}}b=Z()|0;break i}J[695492]=0;d=ga(5169,c+12|0,d+1|0,(d^-1)+b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d>>2];k:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break k;b=Z()|0;sc(d);break i}J[c+28>>2]=0}J[695492]=0;aa(4993,a|0,c+28|0)|0;b=J[695492]; -J[695492]=0;if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break h;J[695492]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break a}b=Z()|0;vc(c+28|0);sc(d);break i}b=Z()|0}sc(c+20|0);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(d);sc(c+20|0)}bc=c+32|0;return}b=Z()|0}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function yqb(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;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;if(e){w=e-2|0;x=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];f=a+8|0;g=g+8|0;a:{if(n>>>0>w>>>0)break a;k=n?(n|0)==(w|0)?d:b:c;j=!n&x;if(!j){if(k>>>0<2)break a;p=j?0:f;q=a+6|0;r=a+4|0;s=a+2|0;t=a+14|0;u=a+12|0;v=a+10|0;j=1;o=k<<1;while(1){i=L[a>>1];b:{if((i|0)==L[p>>1]){I[g>>1]=i;break b}i=K[a|0]|K[a+1|0]<<8;l=i>>>8|0;h=K[p|0]|K[p+1|0]<<8;i=((i<<8|l)&65535)+((k+(P(((h<<8|h>>>8)&65535)-((l| -i<<8)&65535)|0,j)<<1)|0)/(o|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[s>>1];c:{if((h|0)==L[v>>1]){I[i>>1]=h;break c}h=K[s|0]|K[s+1|0]<<8;m=h>>>8|0;l=K[v|0]|K[v+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((m|h<<8)&65535)|0,j)<<1)|0)/(o|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[r>>1];d:{if((h|0)==L[u>>1]){I[i>>1]=h;break d}h=K[r|0]|K[r+1|0]<<8;m=h>>>8|0;l=K[u|0]|K[u+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((m|h<<8)&65535)|0,j)<<1)|0)/ -(o|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+6|0;h=L[q>>1];e:{if((h|0)==L[t>>1]){I[i>>1]=h;break e}h=K[q|0]|K[q+1|0]<<8;m=h>>>8|0;l=K[t|0]|K[t+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((m|h<<8)&65535)|0,j)<<1)|0)/(o|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}g=g+8|0;j=j+1|0;if((k|0)!=(j|0))continue;break}break a}if(k>>>0<2)break a;j=k-1|0;o=j&1;if((k|0)!=2){k=j&-2;j=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];I[g+8>>1]=L[a>> -1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a+4>>1];I[g+14>>1]=L[a+6>>1];g=g+16|0;j=j+2|0;if((k|0)!=(j|0))continue;break}}if(!o)break a;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];g=g+8|0}n=n+1|0;if((n|0)!=(e|0))continue;break}}return 0}function wx(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;if(!J[a+4>>2])return;c=rc(976);J[695492]=0;j=ma(160,c|0,a|0,0,1,1)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(J[j+4>>2]){b=L[a+26>>1];i=P(J[a+16>>2]-1|0,(b|0)==24?3: -1);e=i+J[a+56>>2]|0;c=0;f=(i|0)<0|J[a+20>>2]<=0;g=J[j+56>>2];a:{b:{c:{b=b-8|0;if(b){if((b|0)==16)break c;break b}if(f)break a;b=i+1|0;f=b&-4;n=b&3;while(1){d=0;c=0;if(i>>>0>=3)while(1){H[d+g|0]=K[e-d|0];b=d|1;H[b+g|0]=K[e-b|0];b=d|2;H[b+g|0]=K[e-b|0];b=d|3;H[b+g|0]=K[e-b|0];d=d+4|0;c=c+4|0;if((f|0)!=(c|0))continue;break}c=0;if(n)while(1){H[d+g|0]=K[e-d|0];d=d+1|0;c=c+1|0;if((n|0)!=(c|0))continue;break}b=J[a+52>>2];g=b+g|0;e=b+e|0;h=h+1|0;if((h|0)>2])continue;break}break a}if(f)break a;b=(i>>> -0)/3|0;n=b&1;f=b+1&2147483646;while(1){c=0;d=0;if(i>>>0>=3)while(1){k=c+g|0;b=e-c|0;H[k|0]=K[b|0];H[k+1|0]=K[b+1|0];H[k+2|0]=K[b+2|0];b=b-3|0;H[k+3|0]=K[b|0];H[k+4|0]=K[b+1|0];H[k+5|0]=K[b+2|0];c=c+6|0;d=d+2|0;if((f|0)!=(d|0))continue;break}if(!n){d=c+g|0;b=e-c|0;H[d|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+2|0]=K[b+2|0]}b=J[a+52>>2];g=b+g|0;e=b+e|0;h=h+1|0;if((h|0)>2])continue;break}break a}if(f)break a;while(1){d=0;while(1){sm(j,d,c,lj(a,i-d|0,c));b=(d|0)!=(i|0);d=d+1|0;if(b)continue;break}c=c+1| -0;if((c|0)>2])continue;break}}g=J[j+964>>2];d:{if(!g)break d;i=J[j+20>>2];l=J[j+16>>2];b=zc(P(i,l));if(!b)break d;if(!((i|0)<=0|(l|0)<=0)){d=l&-4;k=l&3;m=(g+l|0)-1|0;n=l>>>0<4;c=b;while(1){e=0;h=0;if(!n)while(1){H[c+e|0]=K[m-e|0];f=e|1;H[f+c|0]=K[m-f|0];f=e|2;H[f+c|0]=K[m-f|0];f=e|3;H[f+c|0]=K[m-f|0];e=e+4|0;h=h+4|0;if((d|0)!=(h|0))continue;break}h=0;if(k)while(1){H[c+e|0]=K[m-e|0];e=e+1|0;h=h+1|0;if((k|0)!=(h|0))continue;break}c=c+l|0;m=l+m|0;o=o+1|0;if((i|0)!=(o|0))continue;break}}qc(g); -J[j+964>>2]=b}iE(a,j,1)}gc[J[J[j>>2]+4>>2]](j);return}a=Z()|0;qc(c);ba(a|0);B()}function tO(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;e=J[a+604>>2];if((c|0)<=0)b=e;else{k=J[a+596>>2]+J[a+600>>2]|0;while(1){d=b+1|0;j=K[b|0];a:{if(c>>>0<2){h=1;b=d;c=0;break a}b=b+c|0;h=1;f=c;while(1){f=f-1|0;if(K[d|0]!=(j|0)){b=d;c=f;break a}d=d+1|0;h=h+1|0;if((h|0)!=(c|0))continue;break}h=c;c=0}d=g;b:{c:{d:{e:{while(1){f:{f=i;g:{h:{i:{j:{if((h|0)==1)while(1){k:{if(e+2>>>0>=k>>>0){g=J[a+608>> -2];l:{if((i&-3)!=1){J[a+608>>2]=g+(e-J[a+604>>2]|0);if(gf(a))break l;return-1}J[a+608>>2]=g+(d-J[a+604>>2]|0);if(!gf(a))return-1;f=e-d|0;e=J[a+604>>2];g=e;if((f|0)<=0)break k;while(1){H[e|0]=K[d|0];e=e+1|0;d=d+1|0;g=f>>>0>1;f=f-1|0;if(g)continue;break}g=J[a+604>>2];break k}e=J[a+604>>2]}g=d}if((i|0)!=3)switch(i|0){case 2:break h;case 1:break i;case 0:break j;default:break b}i=2;d=g;g=e-2|0;if(K[g|0]!=255)continue;f=K[d|0];if(f>>>0>125)continue;f=f+2|0;H[d|0]=f;H[g|0]=K[e-1|0];i=(f&255)!=127;continue}while(1){i= -f;m:{if(e+2>>>0>>0)break m;d=J[a+608>>2];if((f&-3)==1){J[a+608>>2]=d+(g-J[a+604>>2]|0);if(!gf(a))return-1;d=e-g|0;f=g;e=J[a+604>>2];g=e;if((d|0)<=0)break m;while(1){H[e|0]=K[f|0];e=e+1|0;f=f+1|0;g=d>>>0>1;d=d-1|0;if(g)continue;break}g=J[a+604>>2];break m}J[a+608>>2]=d+(e-J[a+604>>2]|0);if(!gf(a))return-1;e=J[a+604>>2]}f=2;if((i|0)==3)continue;break}switch(i|0){case 2:break h;case 1:break i;case 0:break j;default:break b}}if((h|0)<2)break e;i=2;if(h>>>0>128)break g;break d}if((h|0)>=2){i=3;if(h>>> -0>128)break g;H[e|0]=1-h;f=e+1|0;e=e+2|0;break c}d=K[g|0]+1|0;H[g|0]=d;i=(d&255)!=127;f=e;e=e+1|0;break c}if((h|0)<2)break e;i=2;if(h>>>0<129)break f}H[e+1|0]=j;H[e|0]=129;h=h-128|0;e=e+2|0;d=g;continue}break}break d}H[e|0]=0;i=1;f=e+1|0;g=e;e=e+2|0;break c}H[e|0]=1-h;f=e+1|0;e=e+2|0}H[f|0]=j}if((c|0)>0)continue;break}b=J[a+604>>2]}J[a+604>>2]=e;J[a+608>>2]=J[a+608>>2]+(e-b|0);return 1}function m6(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=bc-32|0;bc=h;g=J[b+72>>2];a:{if((g|0)==1651078259)break a;b:{if(!(K[J[b+ -156>>2]+42|0]&16))break b;d=J[b+4>>2];e=J[b+12>>2];J[h+28>>2]=0;if(!(K[d+8|0]&8)|(!d|e>>>0>=M[d+16>>2]))break b;f=J[J[d+540>>2]+132>>2];if(!f)break b;if(!(gc[f|0](d,e,h+16|0,h+12|0,h+20|0)|0)){g=J[b+72>>2];break b}c:{if(fM(d,0))break c;f=J[d+540>>2];d:{while(1){if(vo(d,J[h+16>>2],J[J[b+156>>2]+40>>2]&-1048581|4))break d;if(gc[J[f+136>>2]](d,J[h+12>>2],b,J[d+84>>2])|0)break d;e:{if(!(K[d+8|0]&8)|e>>>0>=M[d+16>>2])break e;g=J[J[d+540>>2]+132>>2];if(!g)break e;if(gc[g|0](d,e,h+16|0,h+12|0,h+20|0)|0)continue}break}J[b+ -72>>2]=1651078259;f:{b=J[d+84>>2];if(!b)break f;c=J[b+4>>2];d=J[c+84>>2];if(!d)break f;e=J[J[c+96>>2]+8>>2];g:{if((b|0)==(d|0)){f=0;break g}while(1){a=J[d+8>>2];if(!a)break f;f=d;d=a;if((b|0)!=(d|0))continue;break}}J[(f?f+8|0:c+84|0)>>2]=J[b+8>>2];a=J[b+20>>2];if(a)gc[a|0](b);px(b);gc[J[e+8>>2]](e,b);f=0;break a}f=0;break a}g=J[d+84>>2];if(!g)break c;i=J[g+4>>2];d=J[i+84>>2];if(!d)break c;j=J[J[i+96>>2]+8>>2];h:{if((d|0)==(g|0)){e=0;break h}while(1){f=J[d+8>>2];if(!f)break c;e=d;d=f;if((g|0)!=(d| -0))continue;break}}J[(e?e+8|0:i+84|0)>>2]=J[g+8>>2];d=J[g+20>>2];if(d)gc[d|0](g);px(g);gc[J[j+8>>2]](j,g)}g=1869968492;J[b+72>>2]=1869968492}i:{j:{k:{if((g|0)!=1869968492){f=7;if(!a)break a;d=J[a+148>>2];if(!d)break a;while(1){e=J[d+8>>2];if(J[e+16>>2]==(g|0))break k;d=J[d+4>>2];if(d)continue;break}break a}e=J[a+156>>2];if(!e)break j;d=J[a+148>>2]}f=0;e=gc[J[e+60>>2]](e,b,c,0)|0;if(!a)break i;if(!e)break a;g=a+148|0;while(1){if((e&255)!=19)break i;d=J[(d?d+4|0:g)>>2];if(!d)break i;f=J[b+72>>2];while(1){a= -J[d+8>>2];if((f|0)!=J[a+16>>2]){d=J[d+4>>2];if(d)continue;break i}break}f=0;e=gc[J[a+60>>2]](a,b,c,0)|0;if(e)continue;break}break a}f=7;break a}f=e}bc=h+32|0;return f}function Fga(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;if(!d){d=J[a+584>>2];if(d){l=(c|0)/J[d+8>>2]|0;a:{b:{if(J[d>>2]==2){i=b;break b}if(J[d+16>>2]<(l|0))break a;i=J[d+12>>2];gc[J[d+20>>2]](d,b,l)}c=J[a+600>>2];f=c-J[a+608>>2]|0;d=J[a+604>>2];if((l|0)>0){c=24;while(1){j=c;m=255<>2]=d;J[a+608>>2]=J[a+600>>2]-f;if(!gf(a))return-1;f=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}b=c;g=c;c:{if((c|0)>=(l|0))break c;while(1){g=b;k=J[(b<<2)+i>>2];e=1;d:{while(1){b=e+g|0;if((l|0)<=(b|0)){h=e;break d}e:{if((k^J[(b<<2)+i>>2])&m){h=e;break e}h=e+1|0;b=h+g|0;if((l|0)<=(b|0))break d;if((k^J[(b<<2)+i>>2])&m)break e;h=129;e=e+2|0;if((e|0)!=129)continue;break c}break}if(h>>>0<=3)continue;break c}break}g=h>>>0>3?g:b}f:{g:{if((g-c&-2)!=2)break g;b=c+1|0;e=J[(c<<2)+i>>2]&m;while(1){if((e| -0)!=(J[(b<<2)+i>>2]&m))break g;b=b+1|0;if((g|0)!=(b|0))continue;break}H[d+1|0]=e>>>j;H[d|0]=((c^-1)+g|0)+127;f=f-2|0;d=d+2|0;c=g;break f}if((c|0)>=(g|0))break f;while(1){b=g-c|0;k=(b|0)>=127?127:b;if((k+3|0)>(f|0)){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-f;if(!gf(a))return-1;f=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}H[d|0]=k;d=d+1|0;f=f-1|0;if((c|0)==(g|0)){c=g;break f}e=0;b=k;n=b&3;if(n)while(1){H[d|0]=J[(c<<2)+i>>2]>>>j;d=d+1|0;c=c+1|0;b=b-1|0;e=e+1|0;if((n|0)!=(e|0))continue;break}if(k-1>>>0>=3)while(1){e= -(c<<2)+i|0;H[d|0]=J[e>>2]>>>j;H[d+1|0]=J[e+4>>2]>>>j;H[d+2|0]=J[e+8>>2]>>>j;H[d+3|0]=J[e+12>>2]>>>j;d=d+4|0;c=c+4|0;b=b-4|0;if(b)continue;break}f=f-k|0;if((c|0)<(g|0))continue;break}}h:{if((h|0)<4){h=0;break h}H[d|0]=h+126;H[d+1|0]=J[(g<<2)+i>>2]>>>j;f=f-2|0;d=d+2|0}c=c+h|0;if((l|0)>(c|0))continue;break}c=j-8|0;if(j)continue;break}c=J[a+600>>2]}J[a+604>>2]=d;J[a+608>>2]=c-f;return 1}fa(77124,70356,524,93919);B()}fa(74413,70356,516,93919);B()}fa(76906,70356,515,93919);B()}function vmb(a,b,c,d,e,f, -g,h,i){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;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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0;J[688832]=J[688832]+1;w=(f+31|0)/32|0;q=(c+31|0)/32|0;if(!((g|0)<=0|(f|0)<=0)){G=a+24|0;M=h+29|0;x=2-h|0;y=h+30|0;while(1){r=0;l=i+s|0;B=(l|0)<=0|(d|0)<(l|0);if(!B)r=J[(P(l-1|0,q)<<2)+b>>2];C=(d|0)>(l|0)&(l|0)>=0;a:{b:{if(!C){t=1;p=0;m=0;if((l|0)>-2)break b;break a}m=J[(P(l,q)<<2)+b>>2]}t=0;c=l+1|0;if((c|0)>=(d|0)){p= -0;break a}p=J[(P(c,q)<<2)+b>>2]}v=P(s-1|0,w);h=0;c=0;c=s?J[(v<<2)+e>>2]:c;j=c<<2;k=p<>>30|0;c=p>>>y|0;p=m>>>y|0;r=r>>>y|0;N=(v<<2)+e|0;m=l+1|0;O=(m|0)>=(d|0)|t;Q=(P(l,q)<<2)+b|0;R=(P(m,q)<<2)+b|0;S=(P(l-1|0,q)<<2)+b|0;D=(P(s,w)<<2)+e|0;m=J[D>>2];z=0;while(1){l=o;t=u;v=k;E=j;F=n<<1;k=(F|((p<<7|c<<4|r<<10)&65520|z))+G|0;n=K[k|0];o=n<<2;j=L[o+2637248>>1];u=k;z=m>>>31|0;c:{d:{if((z|0)!=(n>>>0>46|0)){k=L[a+4>>1]-j|0;if(j>>>0<=(k&65535)>>>0){k=j;j=o+2637251|0;break d}J[a>>2]=j+J[a>> -2];j=o+2637251|0;break d}k=L[a+4>>1]-j|0;I[a+4>>1]=k;if(k<<16>>16<0){J[a>>2]=j+J[a>>2];break c}e:{if(j>>>0>(k&65535)>>>0){k=j;break e}J[a>>2]=j+J[a>>2]}j=o+2637250|0}H[u|0]=K[j|0];while(1){k=k<<1;I[a+4>>1]=k;J[a>>2]=J[a>>2]<<1;j=K[a+6|0]-1|0;H[a+6|0]=j;if(!(j&255)){Al(a);k=L[a+4>>1]}if(k<<16>>16>=0)continue;break}}n=(h>>>5|0)+1|0;A=h&31;f:{if((M|0)!=(A|0)){u=t<<1;o=l<<1;k=v<<1;break f}o=0;u=0;k=0;if(n>>>0>=q>>>0)break f;o=B?o:J[(n<<2)+S>>2];u=C?J[(n<<2)+Q>>2]:u;k=0;if(O)break f;k=J[(n<<2)+R>>2]}c= -c<<1|v>>>31;t=p<<1|t>>>31;l=r<<1|l>>>31;g:{h:{if(!((A|0)==29?s:0)){j=E<<1;if((A|0)!=31)break h;m=0;if(n>>>0>=w>>>0)break g;m=J[(n<<2)+D>>2];break g}j=0;if(n>>>0>=w>>>0)break h;j=J[(n<<2)+N>>2]}m=m<<1}c=c&7;p=t&7;r=l&7;n=F&6|E>>>31;h=h+1|0;if((h|0)!=(f|0))continue;break}s=s+1|0;if((s|0)!=(g|0))continue;break}}}function jM(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;if(J[a+72>>2]==1869968492){if(c){n=J[c>>2];j=J[c+4>>2]}c=0;f=I[a+110>>1];a:{if(!f)break a;h=J[a+112>>2];c=J[h+4>>2];e=J[h>> -2];if((f|0)<2){g=c;d=e;break a}i=(f<<3)+h|0;f=h+8|0;d=e;g=c;while(1){m=J[h+12>>2];g=(g|0)<(m|0)?m:g;c=(c|0)>(m|0)?m:c;h=J[h+8>>2];d=(d|0)<(h|0)?h:d;e=(e|0)>(h|0)?h:e;h=f;f=h+8|0;if(i>>>0>f>>>0)continue;break}}i=j&63;k=i+(g&63)|0;f=n&63;l=f+(d&63)|0;o=i+(c&63)|0;m=f+(e&63)|0;h=6;f=j>>6;i=f+(g>>6)|0;g=d>>6;d=n>>6;g=g+d|0;n=(c>>6)+f|0;j=d+(e>>6)|0;b:{c:{d:switch(b-2|0){default:g=g+(l+63>>>6|0)|0;c=j+(m>>>6|0)|0;e=g-c|0;h=2;i=i+(k+63>>>6|0)|0;d=n+(o>>>6|0)|0;f=i-d|0;break c;case 0:d=l+32|0;g=g+(d>>>6| -0)|0;b=m+31|0;c=(b>>>6|0)+j|0;e:if((g|0)==(c|0)){if((((d&63)+(b&63)|0)-31|0)<=31){g=c;c=c-1|0;break e}g=c+1|0}e=k+32|0;i=i+(e>>>6|0)|0;b=o+31|0;d=(b>>>6|0)+n|0;f:if((i|0)==(d|0)){if((((e&63)+(b&63)|0)-31|0)<=31){i=d;d=d-1|0;break f}i=d+1|0}f=i-d|0;e=g-c|0;b=e+15>>3&-2;h=1;break b;case 1:f=k;k=J[a>>2];e=J[k+184>>2];d=J[k+192>>2];b=(d|0)>(e|0)?e:d;c=J[k+200>>2];i=((f-((b|0)<(c|0)?b:c)|0)+63>>6)+i|0;b=(d|0)<(e|0)?e:d;d=(o-((b|0)>(c|0)?b:c)>>6)+n|0;f=i-d|0;h=J[k+180>>2];e=J[k+188>>2];b=(e|0)>(h|0)?h: -e;c=J[k+196>>2];g=((l-((b|0)<(c|0)?b:c)|0)+63>>6)+g|0;b=(e|0)<(h|0)?h:e;c=(m-((b|0)>(c|0)?b:c)>>6)+j|0;e=P(g-c|0,3);b=e+3&-4;h=5;break b;case 2:break d}f=l;l=J[a>>2];e=J[l+184>>2];d=J[l+192>>2];b=(d|0)>(e|0)?e:d;c=J[l+200>>2];g=((f-((b|0)<(c|0)?b:c)|0)+63>>6)+g|0;b=(d|0)<(e|0)?e:d;c=(m-((b|0)>(c|0)?b:c)>>6)+j|0;e=g-c|0;j=J[l+180>>2];f=J[l+188>>2];b=(f|0)<(j|0)?j:f;d=J[l+196>>2];i=((k+((b|0)>(d|0)?b:d)|0)+63>>6)+i|0;b=(f|0)>(j|0)?j:f;d=(o+((b|0)<(d|0)?b:d)>>6)+n|0;f=P(i-d|0,3)}b=e}J[a+104>>2]=i;J[a+ -100>>2]=c;J[a+76>>2]=f;H[a+94|0]=h;I[a+92>>1]=256;J[a+80>>2]=e;J[a+84>>2]=b;a=(c|0)<-32768|(d|0)<-32768|(g|0)>32767|(i|0)>32767}else a=1;return a}function GT(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-32|0;bc=g;J[a>>2]=0;e=J[b+12>>2];j=e+J[b+8>>2]|0;a:{b:{c:{d:{while(1){f=e;if(e>>>0>=j>>>0)break c;J[g+20>>2]=e;i=J[J[b>>2]+60>>2];J[695492]=0;i=aa(i|0,b|0,g+20|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;if(J[g+20>>2]!=(e|0)){J[695492]=0;i=$(c|0,i|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d; -e=i?J[g+20>>2]:e}if((e|0)!=(f|0))continue;break}e=J[b+12>>2];i=J[b+8>>2];J[695492]=0;e=f-e|0;i=ha(5043,g+20|0,g+28|0,(P(i-e|0,6)+e|0)+6|0,1)|0;f=J[695492];J[695492]=0;if((f|0)!=1){if((e|0)>0)qd(J[g+28>>2],J[b+12>>2],e);h=J[g+28>>2];f=e+J[b+12>>2]|0;J[g+16>>2]=f;e=e+h|0;e:{if(f>>>0>=j>>>0)break e;while(1){h=J[J[b>>2]+60>>2];J[695492]=0;h=aa(h|0,b|0,g+16|0)|0;k=J[695492];J[695492]=0;f:{g:{if((k|0)==1)break g;if(J[g+16>>2]==(f|0))break e;J[695492]=0;k=$(c|0,h|0)|0;l=J[695492];J[695492]=0;if((l|0)==1)break g; -if(k){h=e;e=J[g+16>>2]-f|0;e=qd(h,f,e)+e|0;break f}J[695492]=0;J[g+8>>2]=0;J[g+12>>2]=0;f=$(d|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){h=J[J[b>>2]+56>>2];J[695492]=0;e=ha(h|0,b|0,f|0,e|0,g+8|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break f}f=Z()|0;_c(i);break b}f=Z()|0;_c(i);break b}f=J[g+16>>2];if(j>>>0>f>>>0)continue;break}}H[e|0]=0;J[695492]=0;c=g+8|0;d=b;b=J[g+28>>2];la(5463,c|0,d|0,b|0,0,e-b|0);b=J[695492];J[695492]=0;h:{i:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,c|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break i;a=J[g+8>>2];J[g+8>>2]=0;j:{if(!a)break j;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break h;if(b)break j;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break h}_c(i);break a}f=Z()|0;_c(i);break b}f=Z()|0;vc(g+8|0);_c(i);break b}ea(0)|0;yc();B()}f=Z()|0;break b}f=Z()|0;break b}J[695492]=0;aa(4985,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a;f=Z()|0}vc(a);ba(f|0);B()}bc=g+32|0}function yRa(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;e=J[a+400>>2];d=e;c=J[e+20>>2];j=J[e+16>>2];if((c|0)>(j|0)){t=J[a+284>>2]-1|0;p=J[a+308>>2]-1|0;m=e+24|0;i=J[e+12>>2];while(1){if(i>>>0<=p>>>0){while(1){c=J[a+288>>2];if((c|0)>0){d=0;n=0;while(1){f=J[((n<<2)+a|0)+292>>2];if(J[f+60>>2]>0){u=P(J[f+68>>2],i);v=J[(J[a+416>>2]+(J[f+4>>2]<<2)|0)+4>>2];k=J[(i>>>0

      >>0?56:72)+f>>2];s=k+1|0;q=P(J[f+40>>2],j);o=0;while(1){a:{if(!(J[f+76>>2]<=(j+o|0)&M[e+8>>2]>=t>>>0)){gc[v|0](a,f,J[(J[f+ -4>>2]<<2)+b>>2],J[((d<<2)+e|0)+24>>2],q,u,k);h=J[f+56>>2];if((k|0)>=(h|0))break a;g=(d+k<<2)+e|0;Le(J[g+24>>2],h-k<<7);h=J[f+56>>2];if((k|0)>=(h|0))break a;c=k;if(h-c&1){I[J[g+24>>2]>>1]=L[J[g+20>>2]>>1];c=s}if((h|0)==(s|0))break a;while(1){g=(c+d<<2)+e|0;I[J[g+24>>2]>>1]=L[J[g+20>>2]>>1];I[J[g+28>>2]>>1]=L[J[g+24>>2]>>1];c=c+2|0;if((h|0)!=(c|0))continue;break}break a}c=(d<<2)+e|0;Le(J[c+24>>2],J[f+56>>2]<<7);h=J[f+56>>2];if((h|0)<=0)break a;g=L[J[c+20>>2]>>1];r=0;c=0;if(h>>>0>=4){w=h&-4;l=0;while(1){I[J[(c+ -d<<2)+m>>2]>>1]=g;I[J[((c|1)+d<<2)+m>>2]>>1]=g;I[J[((c|2)+d<<2)+m>>2]>>1]=g;I[J[((c|3)+d<<2)+m>>2]>>1]=g;c=c+4|0;l=l+4|0;if((w|0)!=(l|0))continue;break}}l=h&3;if(!l)break a;while(1){I[J[((c+d<<2)+e|0)+24>>2]>>1]=g;c=c+1|0;r=r+1|0;if((l|0)!=(r|0))continue;break}}d=d+h|0;q=J[f+40>>2]+q|0;o=o+1|0;if((o|0)>2])continue;break}c=J[a+288>>2]}n=n+1|0;if((n|0)<(c|0))continue;break}}if(!(gc[J[J[a+420>>2]+4>>2]](a,m)|0)){J[e+12>>2]=i;J[e+16>>2]=j;return 0}i=i+1|0;if(p>>>0>=i>>>0)continue;break}c=J[e+ -20>>2]}i=0;J[e+12>>2]=0;j=j+1|0;if((j|0)<(c|0))continue;break}d=J[a+400>>2]}J[e+8>>2]=J[e+8>>2]+1;b:{if(J[a+288>>2]>=2){J[d+20>>2]=1;break b}b=J[a+292>>2];if(M[d+8>>2]>2]-1>>>0){J[d+20>>2]=J[b+12>>2];break b}J[d+20>>2]=J[b+76>>2]}J[d+12>>2]=0;J[d+16>>2]=0;return 1}function Fqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){o=e-2|0;p=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];f=a+6|0;g=g+6|0;a:{if(k>>> -0>o>>>0)break a;j=k?(k|0)==(o|0)?d:b:c;l=!k&p;if(l){if(j>>>0<2)break a;h=j-1|0;i=h&3;if(j-2>>>0>=3){j=h&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a>>1];I[g+8>>1]=L[a+2>>1];I[g+10>>1]=L[a+4>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];I[g+16>>1]=L[a+4>>1];I[g+18>>1]=L[a>>1];I[g+20>>1]=L[a+2>>1];I[g+22>>1]=L[a+4>>1];g=g+24|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];g=g+6|0;h=h+ -1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;m=i-1|0;n=m&3;if(i-2>>>0>=3){m=m&-4;i=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a>>1];I[g+8>>1]=L[a+2>>1];I[g+10>>1]=L[a+4>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];I[g+16>>1]=L[a+4>>1];I[g+18>>1]=L[a>>1];I[g+20>>1]=L[a+2>>1];I[g+22>>1]=L[a+4>>1];g=g+24|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;if(!n)break b;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+ -4>>1];g=g+6|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;a=l?0:f;n=j+(h^-1)|0;i=0;l=j-h&3;if(l)while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];h=h+1|0;g=g+6|0;i=i+1|0;if((l|0)!=(i|0))continue;break}if(n>>>0<3)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a>>1];I[g+8>>1]=L[a+2>>1];I[g+10>>1]=L[a+4>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];I[g+16>>1]=L[a+4>>1];I[g+18>>1]=L[a>>1];I[g+20>>1]=L[a+2>>1];I[g+22>>1]=L[a+4>>1]; -g=g+24|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function R3a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;e=J[a+168>>2];gc[J[J[e>>2]+56>>2]](d+20|0,e,c);c=0;g=K[d+31|0];e=g<<24>>24;a:{b:{c:{if((e|0)<0?J[d+24>>2]:g){g=J[a+8>>2];J[a+8>>2]=0;e=a+112|0;d:{if(H[a+123|0]>=0){J[d+16>>2]=J[e+8>>2];c=J[e+4>>2];J[d+8>>2]=J[e>>2];J[d+12>>2]=c;break d}c=J[a+116>>2];f=J[a+112>>2];J[695492]=0;ca(15,d+8|0,f|0,c|0);c=J[695492];J[695492]=0;if((c| -0)==1)break b}J[d+4>>2]=0;e:{if(!J[b+140>>2]){c=J[J[b>>2]+52>>2];J[695492]=0;f=$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;c=2;if(!f)break e}J[d+4>>2]=1;c=3}f:{if(!J[b+136>>2]){f=J[J[b>>2]+48>>2];J[695492]=0;f=$(f|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break c;if(!f)break f}J[d+4>>2]=c}c=J[J[a>>2]+144>>2];J[695492]=0;ja(c|0,a|0,d+20|0,b+112|0,d+4|0,b+120|0,b+128|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[a+8>>2];J[a+8>>2]=g;g:{if(!c)break g;h:{i:{if((e|0)==(d+8|0))break i; -f=K[d+19|0];g=f<<24>>24;if(H[a+123|0]>=0){if((g|0)>=0){a=J[d+12>>2];J[e>>2]=J[d+8>>2];J[e+4>>2]=a;J[e+8>>2]=J[d+16>>2];break i}J[695492]=0;ga(1630,e|0,J[d+8>>2],J[d+12>>2])|0;a=J[695492];J[695492]=0;if((a|0)!=1)break i;break h}J[695492]=0;a=(g|0)<0;ga(1629,e|0,(a?J[d+8>>2]:d+8|0)|0,(a?J[d+12>>2]:f)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h}a=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=a;a=J[b+100>>2];J[c+96>>2]=J[b+96>>2];J[c+100>>2]=a;a=J[b+92>>2];J[c+88>>2]=J[b+88>>2];J[c+92>>2]=a;a=J[b+ -84>>2];J[c+80>>2]=J[b+80>>2];J[c+84>>2]=a;a=J[b+76>>2];J[c+72>>2]=J[b+72>>2];J[c+76>>2]=a;b=b- -64|0;e=J[b+4>>2];a=c- -64|0;J[a>>2]=J[b>>2];J[a+4>>2]=e;J[695492]=0;g2(c);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break c}if(H[d+19|0]<0)qc(J[d+8>>2]);e=H[d+31|0]}if(e<<24>>24<0)qc(J[d+20>>2]);bc=d+32|0;return c|0}a=Z()|0;if(H[d+19|0]>=0)break a;qc(J[d+8>>2]);break a}a=Z()|0}if(H[d+31|0]<0)qc(J[d+20>>2]);ba(a|0);B()}function mW(a,b){var c=0,d=0,e=0,f=0;a:{d=K[a+8|0];if(!(d&2))break a;c=J[a>>2];b:switch(K[a+ -9|0]-8|0){case 0:c:switch(d-2|0){case 4:if(!c)break a;if(c>>>0>=4){d=c&-4;a=0;while(1){e=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=e;e=K[b+4|0];H[b+4|0]=K[b+6|0];H[b+6|0]=e;e=K[b+8|0];H[b+8|0]=K[b+10|0];H[b+10|0]=e;e=K[b+12|0];H[b+12|0]=K[b+14|0];H[b+14|0]=e;b=b+16|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){d=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=d;b=b+4|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 0:break c;default:break a}if(!c)break a;if(c>>>0>=4){d=c&-4;a=0;while(1){e= -K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=e;e=K[b+3|0];H[b+3|0]=K[b+5|0];H[b+5|0]=e;e=K[b+6|0];H[b+6|0]=K[b+8|0];H[b+8|0]=e;e=K[b+9|0];H[b+9|0]=K[b+11|0];H[b+11|0]=e;b=b+12|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){d=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=d;b=b+3|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 8:break b;default:break a}d:switch(d-2|0){case 4:if(!c)break a;if((c|0)!=1){e=c&-2;a=0;while(1){d=K[b|0]|K[b+1|0]<<8;f=K[b+4|0]|K[b+5|0]<<8;H[b|0]=f;H[b+1|0]=f>>>8;H[b+ -4|0]=d;H[b+5|0]=d>>>8;d=K[b+8|0]|K[b+9|0]<<8;f=K[b+12|0]|K[b+13|0]<<8;H[b+8|0]=f;H[b+9|0]=f>>>8;H[b+12|0]=d;H[b+13|0]=d>>>8;b=b+16|0;a=a+2|0;if((e|0)!=(a|0))continue;break}}if(!(c&1))break a;a=K[b|0]|K[b+1|0]<<8;c=K[b+4|0]|K[b+5|0]<<8;H[b|0]=c;H[b+1|0]=c>>>8;H[b+4|0]=a;H[b+5|0]=a>>>8;return;case 0:break d;default:break a}if(!c)break a;if((c|0)!=1){e=c&-2;a=0;while(1){d=K[b|0]|K[b+1|0]<<8;f=K[b+4|0]|K[b+5|0]<<8;H[b|0]=f;H[b+1|0]=f>>>8;H[b+4|0]=d;H[b+5|0]=d>>>8;d=K[b+6|0]|K[b+7|0]<<8;f=K[b+10|0]|K[b+ -11|0]<<8;H[b+6|0]=f;H[b+7|0]=f>>>8;H[b+10|0]=d;H[b+11|0]=d>>>8;b=b+12|0;a=a+2|0;if((e|0)!=(a|0))continue;break}}if(!(c&1))break a;a=K[b|0]|K[b+1|0]<<8;c=K[b+4|0]|K[b+5|0]<<8;H[b|0]=c;H[b+1|0]=c>>>8;H[b+4|0]=a;H[b+5|0]=a>>>8}}function OH(a){var b=0,c=0,d=0,e=0,f=0,g=0;g=bc-16|0;bc=g;a:{b:{if(!J[a+28>>2]){b=J[a+56>>2];c=1;while(1){c:{d:{if((b|0)>=(c|0)){d=J[a+52>>2];break d}while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){b=J[a+56>>2];if(!b){f=1;break a}d=J[a+52>>2];e=d<>2]+8|0;J[a+56>>2]=b;d=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=d;if((b|0)<(c|0))continue;break}}e=d>>>b-c|0}f=1;e=-1>>>32-c&e;if((e&65535)==65535)break a;e=e<<9-c<<16>>16;if(I[(e<<2)+2300448>>1]==(c|0)){d=a;a=b-c|0;J[d+56>>2]=(a|0)>0?a:0;f=I[(e<<2)+2300450>>1];break a}c=c+1|0;if((c|0)!=10)continue;break}e:{if((b|0)<11)while(1){b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1){b=J[a+56>>2];if(!b)break a;d=J[a+52>>2];e=d<<11-b;break e}e=J[a+56>>2];b=e+8|0;J[a+56>>2]=b;d=c+(J[a+52>>2]<<8)|0;J[a+52>> -2]=d;if((e|0)<3)continue;break}e=d>>>b-11|0}c=-11;e=e<<1&4094;if(L[(e<<2)+2298272>>1]!=11){f:{g:{if((b|0)<=11)while(1){b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break g;e=J[a+56>>2];b=e+8|0;J[a+56>>2]=b;d=c+(J[a+52>>2]<<8)|0;J[a+52>>2]=d;if((e|0)<4)continue;break}d=d>>>b-12|0;break f}b=J[a+56>>2];if(!b)break a;d=J[a+52>>2]<<12-b}c=-12;e=d&4095;if(L[(e<<2)+2298272>>1]!=12)break b}d=a;a=b+c|0;J[d+56>>2]=(a|0)>0?a:0;f=I[(e<<2)+2298274>>1];break a}c=J[a+56>>2];h:{i:{if((c|0)>=12){b=J[a+52>> -2];break i}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1){c=J[a+56>>2];if(!c){f=1;break a}b=J[a+52>>2]<<12-c;break h}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue;break}}b=b>>>c-12|0}e=b&4095;b=b&4064?(b>>>1&2044)+2300448|0:(e<<2)+2298272|0;d=I[b>>1];if((d|0)<=0)break b;e=a;a=c-(d&65535)|0;J[e+56>>2]=(a|0)>0?a:0;f=I[b+2>>1];break a}b=gc[J[J[a>>2]+52>>2]](a)|0;J[g>>2]=e;f=1;xc(1,b,811666,g);J[a+80>>2]=J[a+80>>2]+1;e=a;a=J[a+56>>2];J[e+56>> -2]=((a|0)<=1?1:a)-1}bc=g+16|0;return f<<16>>16}function R_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;v=bc-320|0;bc=v;s=J[a+332>>2];b=J[b+84>>2];a=v;while(1){h=J[b+192>>2];l=I[c+96>>1];m=J[b+64>>2];t=I[c+32>>1];g=P(I[c>>1],J[b>>2])<<13|1024;f=P(J[b+128>>2],I[c+64>>1]);k=g+P(f,-11586)>>11;i=P(J[b+32>>2],I[c+16>>1]);o=P(J[b+160>>2],I[c+80>>1]);n=P(J[b+96>>2],I[c+48>>1]);p=P(J[b+224>>2],I[c+112>>1]);j=n-p|0;q=i-(o+j|0)<<2;J[a+224>> -2]=k-q;J[a+64>>2]=k+q;l=P(h,l);m=P(m,t);h=P(l+m|0,6810);m=h+P(m,4209)|0;t=g+P(f,9373)|0;k=m+t|0;o=o<<13;q=o+P(j,2531)|0;n=n+p|0;p=P(n,7791);r=q+(p+P(i,11443)|0)|0;J[a+288>>2]=k-r>>11;J[a>>2]=k+r>>11;f=g+P(f,-3580)|0;g=h+P(l,-17828)|0;h=f-g|0;j=o+P(j,-6627)|0;l=P(n,4815);k=j+(P(i,5260)-l|0)|0;J[a+192>>2]=h-k>>11;J[a+96>>2]=h+k>>11;h=t-m|0;m=q+(P(i,1812)-p|0)|0;J[a+160>>2]=h-m>>11;J[a+128>>2]=h+m>>11;f=f+g|0;i=P(i,10323)-(j+l|0)|0;J[a+256>>2]=f-i>>11;J[a+32>>2]=f+i>>11;a=a+4|0;b=b+4|0;c=c+2|0;u=u+1| -0;if((u|0)!=8)continue;break}a=s+128|0;c=v;u=0;while(1){s=J[c+24>>2];j=J[c+8>>2];f=P(s+j|0,6810);b=J[(u<<2)+d>>2]+e|0;g=J[c+28>>2];h=J[c+12>>2];l=g+h|0;m=P(l,7791);i=J[c+4>>2];t=J[c+20>>2];k=t<<13;g=h-g|0;o=k+P(g,2531)|0;n=(m+P(i,11443)|0)+o|0;p=f+P(j,4209)|0;h=(J[c>>2]<<13)+131072|0;j=J[c+16>>2];q=h+P(j,9373)|0;r=p+q|0;H[b|0]=K[a+(n+r>>>18&1023)|0];H[b+9|0]=K[a+(r-n>>>18&1023)|0];l=P(l,4815);k=k+P(g,-6627)|0;n=P(i,10323)-(l+k|0)|0;f=f+P(s,-17828)|0;s=h+P(j,-3580)|0;r=f+s|0;H[b+1|0]=K[a+(n+r>>>18& -1023)|0];H[b+8|0]=K[a+(r-n>>>18&1023)|0];g=i-(g+t|0)<<13;j=h+P(j,-11586)|0;H[b+2|0]=K[a+(g+j>>>18&1023)|0];H[b+7|0]=K[a+(j-g>>>18&1023)|0];g=k+(P(i,5260)-l|0)|0;f=s-f|0;H[b+3|0]=K[a+(g+f>>>18&1023)|0];H[b+6|0]=K[a+(f-g>>>18&1023)|0];i=o+(P(i,1812)-m|0)|0;f=q-p|0;H[b+4|0]=K[a+(i+f>>>18&1023)|0];H[b+5|0]=K[a+(f-i>>>18&1023)|0];c=c+32|0;u=u+1|0;if((u|0)!=10)continue;break}bc=v+320|0}function IHa(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;a:{b:{if(a){if(!b)break b;if(!c)break a; -j=J[a+72>>2];k=P(J[a+104>>2],J[a+108>>2]);c:{if(k){b=J[j+16>>2];o=P(b,1080);l=P(b,b)<<2;e=J[a+12>>2];b=J[a+156>>2];while(1){m=J[b+5584>>2];d=tc(b,e,5644);J[d+5608>>2]=0;J[d+5588>>2]=-1;J[d+5168>>2]=0;J[d+5636>>2]=0;J[d+5616>>2]=0;J[d+5624>>2]=0;J[d+5628>>2]=0;J[d+5584>>2]=m;H[d+5640|0]=K[d+5640|0]&252;if(J[e+5608>>2]){b=_e(l);J[d+5608>>2]=b;if(!b)return 0;tc(b,J[e+5608>>2],l)}f=P(J[e+5624>>2],20);b=_e(f);J[d+5616>>2]=b;i=0;if(!b)break c;tc(b,J[e+5616>>2],f);g=J[e+5620>>2];if(g){b=J[e+5616>>2];f=J[d+ -5616>>2];h=0;while(1){if(J[b+12>>2]){g=_e(J[b+16>>2]);J[f+12>>2]=g;if(!g)return 0;tc(g,J[b+12>>2],J[b+16>>2]);g=J[e+5620>>2]}J[d+5624>>2]=J[d+5624>>2]+1;f=f+20|0;b=b+20|0;h=h+1|0;if(h>>>0>>0)continue;break}}f=P(J[e+5636>>2],20);b=_e(f);J[d+5628>>2]=b;if(!b)break c;tc(b,J[e+5628>>2],f);i=J[e+5636>>2];J[d+5636>>2]=i;if(i){b=J[e+5628>>2];f=J[d+5628>>2];h=0;while(1){g=J[b+8>>2];if(g)J[f+8>>2]=J[d+5616>>2]+P((g-J[e+5616>>2]|0)/20|0,20);g=J[b+12>>2];if(g)J[f+12>>2]=J[d+5616>>2]+P((g-J[e+5616>>2]|0)/ -20|0,20);f=f+20|0;b=b+20|0;h=h+1|0;if((i|0)!=(h|0))continue;break}}tc(m,J[e+5584>>2],o);b=d+5644|0;n=n+1|0;if((n|0)!=(k|0))continue;break}}i=1;d=ye(1,72);b=0;d:{if(!d)break d;H[d+40|0]=K[d+40|0]&254|1;e=ye(1,4);J[d+20>>2]=e;b=d;if(e)break d;qc(d);b=0}J[a+196>>2]=b;if(!b)return 0;f=J[a+200>>2];d=0;J[b+28>>2]=a+80;J[b+24>>2]=j;e=ye(1,848);J[J[b+20>>2]>>2]=e;e:{if(!e)break e;e=ye(J[j+16>>2],76);h=J[J[b+20>>2]>>2];J[h+20>>2]=e;if(!e)break e;J[h+16>>2]=J[j+16>>2];d=J[a+164>>2];J[b+44>>2]=f;J[b>>2]=d;d= -1}if(d)break c;AW(J[a+196>>2]);i=0;J[a+196>>2]=0;Hc(c,1,2347790,0)}return i|0}fa(2346477,2346358,8900,2352653);B()}fa(2346550,2346358,8901,2352653);B()}fa(2346590,2346358,8902,2352653);B()}function P7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h| -0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+ -80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>> -2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;wc(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];U2(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}} -function EC(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,r=0,s=0;h=bc-16|0;bc=h;j=J[a+100>>2];J[h+12>>2]=0;e=J[a+532>>2];a:{if(!e){e=Zd(j,420,h+12|0);if(J[h+12>>2])break a;J[e+416>>2]=0;J[a+532>>2]=e}b:{c:{if(!b)break c;d=J[e>>2];if(!d){d=h+12|0;r=e,s=Sc(j,32,0,b,0,d),J[r+148>>2]=s;if(J[h+12>>2])break a;r=e,s=Sc(j,196,0,b,0,d),J[r+216>>2]=s;if(J[h+12>>2])break a;r=e,s=Sc(j,16,0,b,0,d),J[r+288>>2]=s;if(J[h+12>>2])break a;d=Sc(j,4,0,b<<1,0,d);J[e+136>>2]=d;if(J[h+12>>2])break a; -J[e+284>>2]=a+464;J[e+212>>2]=a+168;J[e+144>>2]=a+132;k=2;J[e+140>>2]=d+(b<<2);d:{if(b>>>0<2)break d;a=b+1|0;f=a>>>0<=3?3:a;i=f-2|0;o=i&3;a=J[e+288>>2];d=J[e+216>>2];g=J[e+148>>2];if(f-3>>>0>=3){q=i&-4;i=e+144|0;m=e+212|0;n=e+284|0;while(1){f=k<<2;J[f+i>>2]=g+32;J[f+m>>2]=d+196;J[f+n>>2]=a+16;l=f|4;J[l+i>>2]=g- -64;J[l+m>>2]=d+392;J[l+n>>2]=a+32;l=f+8|0;J[l+i>>2]=g+96;J[l+m>>2]=d+588;J[l+n>>2]=a+48;f=f+12|0;g=g+128|0;J[f+i>>2]=g;d=d+784|0;J[f+m>>2]=d;a=a- -64|0;J[f+n>>2]=a;k=k+4|0;p=p+4|0;if((q|0)!= -(p|0))continue;break}}if(!o)break d;f=0;while(1){i=(k<<2)+e|0;a=a+16|0;J[i+284>>2]=a;d=d+196|0;J[i+212>>2]=d;g=g+32|0;J[i+144>>2]=g;k=k+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}}J[e>>2]=b;break c}if((b|0)!=(d|0))break b}a=J[e+4>>2];e:{if(!c){c=a;break e}if((a|0)!=(c|0)?a:0)break b;J[e+4>>2]=c}d=J[e>>2];if(J[e+24>>2]|(!d|!c))break a;b=Sc(j,4,0,P(c,d),0,h+12|0);J[e+24>>2]=b;if(J[h+12>>2]|d>>>0<2)break a;g=d-1|0;j=g&3;a=1;if(d-2>>>0>=3){k=g&-4;d=0;g=e+24|0;while(1){J[g+(a<<2)>>2]=b+(P(a,c)<<2);f=a+ -1|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);f=a+2|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);f=a+3|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);a=a+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}if(!j)break a;d=0;while(1){J[((a<<2)+e|0)+24>>2]=b+(P(a,c)<<2);a=a+1|0;d=d+1|0;if((j|0)!=(d|0))continue;break}break a}J[h+12>>2]=3}bc=h+16|0;return J[h+12>>2]}function nha(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;a=bc-336|0;bc=a;J[a+328>>2]=c;J[a+332>>2]=b;h=Pk(d);j=cs(d,a+208|0);bs(a+196|0,d,a+324|0);b=Se(a+184|0);if(K[b+ -11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6645,a+332|0,a+328|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]& -127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+332|0;g=$(6646,d|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break d;J[695492]=0;g=Ro(g,h,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);i=J[695492];J[695492]=0;if((i|0)==1)break d;if(g)break c;J[695492]=0;$(6648,d|0)|0;d=J[695492]; -J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=dy(6627,c,J[a+180>>2],e,h);d=fc;h=J[695492];J[695492]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6645,a+332|0,a+328|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>> -2]=J[e>>2]|2;c=J[a+332>>2];ad(b);ad(a+196|0);bc=a+336|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function jha(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;a=bc-336|0;bc=a;J[a+328>>2]=c;J[a+332>>2]=b;h=Pk(d);j=cs(d,a+208|0);bs(a+196|0,d,a+324|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16; -J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6645,a+332|0,a+328|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b; -d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+332|0;g=$(6646,d|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break d;J[695492]=0;g=Ro(g,h,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);i=J[695492];J[695492]=0;if((i|0)==1)break d;if(g)break c;J[695492]=0;$(6648,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]= -J[a+8>>2]}J[695492]=0;c=dy(6631,c,J[a+180>>2],e,h);d=fc;h=J[695492];J[695492]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6645,a+332|0,a+328|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];ad(b);ad(a+196|0);bc=a+336|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function CFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=bc-32|0;bc=f;a:{b:{e= -J[a>>2];g=(J[a+4>>2]-e|0)/40|0;d=g+1|0;if(d>>>0<107374183){c=a+8|0;h=J[c>>2];J[f+28>>2]=c;c=0;e=(h-e|0)/40|0;h=e<<1;e=e>>>0>=53687091?107374182:d>>>0>>0?h:d;if(e){if(e>>>0>=107374183)break b;c=rc(P(e,40))}J[f+12>>2]=c;d=P(g,40)+c|0;J[f+20>>2]=d;J[f+24>>2]=P(e,40)+c;J[f+16>>2]=d;e=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=e;e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;e=d+16|0;c:{d:{e:{if(H[b+27|0]>=0){h=J[b+20>>2];J[e>>2]=J[b+16>>2];J[e+4>>2]=h;J[e+8>>2]=J[b+24>>2];break e}h=J[b+20>>2];i=J[b+16>>2]; -J[695492]=0;ca(2672,e|0,i|0,h|0);h=J[695492];J[695492]=0;if((h|0)==1)break d}c=(P(g,40)+c|0)+28|0;if(H[b+39|0]>=0){d=J[b+32>>2];J[c>>2]=J[b+28>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+36>>2];break a}g=J[b+32>>2];b=J[b+28>>2];J[695492]=0;ca(15,c|0,b|0,g|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;if(H[d+27|0]>=0)break c;qc(J[e>>2]);break c}b=Z()|0}a=J[f+20>>2];d=J[f+16>>2];if((a|0)!=(d|0))while(1){J[f+20>>2]=a-40;if(H[a-1|0]<0)qc(J[a-12>>2]);if(H[a-13|0]<0)qc(J[a-24>>2]);a=J[f+20>>2];if((d|0)!=(a| -0))continue;break}a=J[f+12>>2];if(a)qc(a);ba(b|0);B()}ph(a);B()}Sd();B()}e=J[f+20>>2]+40|0;c=J[f+16>>2];b=J[a+4>>2];d=J[a>>2];f:{if((b|0)==(d|0)){d=b;break f}while(1){b=b-40|0;g=J[b+4>>2];c=c-40|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;g=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=g;J[c+24>>2]=J[b+24>>2];g=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=g;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+36>>2]=J[b+36>>2];g=J[b+32>>2];J[c+28>>2]=J[b+28>>2];J[c+32>>2]=g;J[b+36>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;if((b|0)!=(d| -0))continue;break}b=J[a+4>>2];d=J[a>>2]}J[a+4>>2]=e;J[a>>2]=c;J[a+8>>2]=J[f+24>>2];if((b|0)!=(d|0)){while(1){if(H[b-1|0]<0)qc(J[b-12>>2]);if(H[b-13|0]<0)qc(J[b-24>>2]);b=b-40|0;if((d|0)!=(b|0))continue;break}b=d}if(b)qc(b);bc=f+32|0}function o8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>> -2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>> -2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d; -i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;wc(g+2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];s3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a, -c))break a;if(de(b,d))continue;break}}}function k8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)> -(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+ -8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;g=J[f+8>>2];if(J[g>> -2]!=1){J[g>>2]=1;wc(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];r3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}}function bra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=bc-48|0;bc=f;a:{b:{if(J[a+44>>2]){a=Kc(f+24|0,2388046,2374197,1836,2420857,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;c=Z()|0;Fc(a);break b}J[f+16>>2]=0;J[695492]=0;J[f+20>>2]=J[682146];d=f+16|0;ha(5109,b|0,d|0,0,0)|0;e=J[695492];J[695492]=0;c:{d:{e:{f:{if((e|0)==1)break f;J[695492]=0;e=fd(d,2388339,-1);g=J[695492];J[695492]=0;if((g|0)==1)break f;g:{if(!e)break g;J[695492]=0;d=fd(d,2382157,-1);e=J[695492];J[695492]=0;if((e|0)==1)break f;if(!d)break g;J[695492]=0;a=ja(5018,f+24|0,2388518,2374197,1840,2420857,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]= -0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;c=Z()|0;Fc(a);break c}h:{while(1){if((c|0)<=0)break h;J[695492]=0;d=f+16|0;e=ha(5109,b|0,d|0,0,0)|0;g=J[695492];J[695492]=0;i:{if((g|0)==1)break i;if(!e)break h;J[695492]=0;e=fd(d,2390058,-1);g=J[695492];J[695492]=0;if((g|0)==1)break i;j:{if(e){J[695492]=0;d=fd(d,2386573,-1);e=J[695492];J[695492]=0;if((e|0)==1)break i;if(d)break j}J[695492]=0;J[f+12>>2]=0;d=f+12|0;aa(4985,d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[J[a>>2]+40>> -2];J[695492]=0;aa(e|0,a|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[f+12>>2];J[f+12>>2]=0;if(!d)break j;J[695492]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break j;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break j}ea(0)|0;yc();B()}c=Z()|0;vc(f+12|0);break c}c=c-1|0;J[695492]=0;_(5162,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}c=Z()|0;break c}J[695492]=0;_(5162,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[J[a>>2]+48>>2];J[695492]= -0;_(b|0,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}c=Z()|0;break c}c=Z()|0;break c}sc(f+16|0);bc=f+48|0;return}sc(f+16|0)}ba(c|0)}B()}function Qd(a){var b=0,c=0,d=0,e=0,f=0;e=bc-192|0;bc=e;a:{if(!a|J[a+172>>2]==-1)break a;b=J[a+36>>2];if(!b)break a;c=J[b+16>>2];if(c>>>0>M[b+20>>2]){J[a+84>>2]=1;J[e>>2]=0;Cc(0,0,0,a,0,1,1,3,0,0,0,0,32894,e);J[a+12>>2]=0;if(!J[a+288>>2])J[a+212>>2]=1;J[a+84>>2]=1;__(a);break a}b:{if(K[c|0])break b;if((Cd(b)|0)>0)break b;if(J[a+172>>2]==5)break a;ze(a);break a}c= -J[a+36>>2];d=J[c+16>>2];b=K[d|0];c:{d:{e:{if(J[a+256>>2]==1){f:{if((b|0)==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break f}J[c+32>>2]=J[c+32>>2]+1}f=K[d|0];b=f<<24>>24;g:{if((b|0)<0){if((b|0)==-64)break c;b=K[d+1|0];if(!b){Cd(c);c=J[a+36>>2];d=J[c+16>>2];b=K[d+1|0]}if((b&192)!=128)break c;if((f&224)==224){b=K[d+2|0];if(!b){Cd(c);c=J[a+36>>2];d=J[c+16>>2];b=K[d+2|0]}if((b&192)!=128)break c;h:{if((f&240)==240){if(!K[d+3|0]){Cd(c);c=J[a+36>>2];d=J[c+16>>2]}if((f&248)!=240|(K[d+3|0]&192)!=128)break c; -b=d+3|0;J[c+16>>2]=J[c+16>>2]+4;f=(K[d+1|0]&63)<<12|(K[d|0]&7)<<18;d=(K[d+2|0]&63)<<6;break h}b=d+2|0;J[c+16>>2]=J[c+16>>2]+3;f=(K[d+1|0]&63)<<6;d=(K[d|0]&15)<<12}d=d|f;b=d|K[b|0]&63;if(!((d&2095104)==55296|b>>>0>1114111)&(b&2097150)!=65534)break g;EB(a,34763,b);c=J[a+36>>2];break g}J[c+16>>2]=d+2;break g}J[c+16>>2]=d+1}J[a+200>>2]=J[a+200>>2]+1;if(!K[J[c+16>>2]])break e;break d}i:{if((b|0)==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break i}J[c+32>>2]=J[c+32>>2]+1}J[c+16>>2]=d+1;J[a+200>>2]=J[a+200>> -2]+1;if(K[d+1|0])break d}Cd(c)}d=J[a+36>>2];b=K[J[d+16>>2]];if((b|0)==37){if(J[a+32>>2])break a;Od(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break a;if((Cd(d)|0)>0)break a;ze(a);break a}b=J[c+16>>2];j:{if((J[c+20>>2]-b|0)<=3){Wj(a,9,38840,0);break j}c=K[b|0];d=K[b+1|0];f=K[b+2|0];J[e+28>>2]=K[b+3|0];J[e+24>>2]=f;J[e+20>>2]=d;J[e+16>>2]=c;b=e+32|0;Gi(b,149,36511,e+16|0);Wj(a,9,4560,b)}J[a+256>>2]=10;a=J[a+36>>2];J[a+16>>2]=J[a+16>>2]+1}bc=e+192|0}function fga(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;var h=0,i=0,j=0,k=0,l=0,m=0;h=bc-624|0;bc=h;J[h+616>>2]=c;J[h+620>>2]=b;J[h+16>>2]=6678;a=h+16|0;b=ng(h+200|0,h+208|0,a);J[695492]=0;j=h+192|0;i=J[e+28>>2];J[j>>2]=i;J[i+4>>2]=J[i+4>>2]+1;i=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((i|0)!=1){J[695492]=0;i=$(6537,j|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break j;H[h+191|0]=0;e=J[e+4>>2];J[695492]=0;c=Ba(6690,h+620|0,c|0,d|0,j|0,e|0,f|0,h+191|0,i|0,b|0,h+196|0,h+608|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;if(!c)break f; -c=K[22296]|K[22297]<<8|(K[22298]<<16|K[22299]<<24);H[h+183|0]=c;H[h+184|0]=c>>>8;H[h+185|0]=c>>>16;H[h+186|0]=c>>>24;c=K[22293]|K[22294]<<8|(K[22295]<<16|K[22296]<<24);J[h+176>>2]=K[22289]|K[22290]<<8|(K[22291]<<16|K[22292]<<24);J[h+180>>2]=c;J[695492]=0;ha(6653,i|0,h+176|0,h+186|0,h+128|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;J[h+4>>2]=1617;d=ng(h+8|0,0,h+4|0);e=a;a=J[h+196>>2]-J[b>>2]|0;if((a|0)<393)break g;ih(d,zc((a>>2)+2|0));if(J[d>>2])break h;J[695492]=0;ka(6618);a=J[695492];J[695492]= -0;if((a|0)==1)break d;break a}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;break c}e=J[d>>2]}if(K[h+191|0]){H[e|0]=45;e=e+1|0}c=J[b>>2];while(1){if(M[h+196>>2]<=c>>>0){H[e|0]=0;J[h>>2]=g;if((Og(h+16|0,13183,h)|0)!=1){J[695492]=0;_(6680,4888);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break d}Ae(d)}else{a=h+128|0;l=e,m=K[(h+176|0)+(SE(a,a+40|0,c)-a>>2)|0],H[l|0]=m;e=e+1|0;c=c+4|0;continue}break}}J[695492]=0;a=aa(6645,h+620|0,h+616|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(a)J[f>>2]=J[f>>2]|2; -d=J[h+620>>2];a=J[h+192>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);Ae(b);bc=h+624|0;return d|0}c=Z()|0;break c}c=Z()|0;Ae(d)}a=J[h+192>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)gc[J[J[a>>2]+8>>2]](a)}Ae(b);ba(c|0);B()}B()}function fH(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;k=J[J[a+24>>2]+24>>2]+P(b,52)|0;j=J[k>>2];if(j)a:{p=j-1|0;m=J[a+48>>2];l=p+m|0;n=0-!j|0;i=n;i=Fzb(l,l>>>0>>0?i+1|0:i,j,0);k=J[k+4>>2];if(!k)break a;r=J[(J[J[a+32>>2]+5584>>2]+ -P(b,1080)|0)+20>>2];m=J[J[J[a+20>>2]>>2]+20>>2]+P(b,76)|0;b=J[m>>2];l=b>>>0>i>>>0?b:i;i=n;o=J[m+8>>2];b=p;p=J[a+56>>2];b=b+p|0;b=Fzb(b,b>>>0

      >>0?i+1|0:i,j,0);p=b>>>0>o>>>0?o:b;j=k;b=j-1|0;q=J[a+60>>2];k=b+q|0;n=0-!j|0;i=n;o=J[m+12>>2];i=Fzb(k,k>>>0>>0?i+1|0:i,j,0);k=i>>>0>o>>>0?o:i;o=J[a+52>>2];a=o+b|0;b=n;i=J[m+4>>2];a=Fzb(a,a>>>0>>0?b+1|0:b,j,0);n=a>>>0>>0?i:a;a=0;j=J[m+20>>2]+(c?0-c|0:-1)|0;b:{if(!j){b=p;a=l;c=n;break b}o=j-1|0;m=(d&1)<>>0>m>>>0){a=j&31;if((j&63)>>>0>=32){i= --1<>>32-a;a=-1<>>0>>0?b+1|0:b;c=a;a=j&31;if((j&63)>>>0>=32)a=b>>>a|0;else a=((1<>>a}b=0;c=0;l=d>>>1<>>0>>0){c=j&31;if((j&63)>>>0>=32){i=-1<>>32-c;c=-1<>>0>>0?i+1|0:i;d=c;c=j&31;if((j&63)>>>0>=32)c=i>>>c|0;else c=((1<>>c}if(m>>>0

      >>0){d=j&31;if((j&63)>>>0>=32){b=-1<>>32-d;d=-1<>>0>>0?b+1|0:b;i=d;d=j&31;if((j&63)>>>0>=32)b=b>>>d|0;else b=((1<>>d}if(l>>>0>=k>>>0){k=0;break b}d=j&31;n=k-l|0;if((j&63)>>>0>=32){i=-1<>>32-d;d=-1<>>0>>0?i+1|0:i;l=d;d=j&31;if((j&63)>>>0>=32)k=i>>>d|0;else k=((1<>>d}n=e;d=(r|0)==1?2:3;e=d+b|0;e=n>>>0<(b>>>0>e>>>0?-1:e)>>>0;b=d+k|0;e=e&(b>>>0>>0?-1:b)>>>0>f>>>0;b=a-d|0;b=e&(a>>>0>=b>>>0?b:0)>>>0>>0;a=c-d|0;return b& -(a>>>0<=c>>>0?a:0)>>>0>>0}fa(2343351,2343469,172,2343334);B()}function p6(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;J[a+12>>2]=b;J[a+8>>2]=c;J[a+4>>2]=b;J[a+20>>2]=J[a+16>>2];a:{b:{while(1){if(b>>>0>=c>>>0)break b;k=J[a+20>>2];i=J[a+16>>2];l=k-i>>2;e=J[a+24>>2];g=K[b|0];c:{d:{if(!((g|0)==31|(g-27&255)>>>0>227)){d=4;if(e>>>0<=l>>>0)break c;J[a+20>>2]=k+4;J[k>>2]=b;e:switch(g-28|0){case 2:while(1){b=b+1|0;if(c>>>0<=b>>>0){b=c;d=7;break c}e=K[b|0];if((e&240)==240)break d;if((e&15)!=15)continue; -break}break d;case 0:b=b+2|0;break d;case 1:b=b+4|0;break d;default:break e}b=(g>>>0>246)+b|0;break d}d=4;if(e>>>0<=l>>>0)break c;J[k>>2]=b;if((g|0)==12){b=b+1|0;d=8;if(c>>>0<=b>>>0)break c;g=K[b|0]|256}h=256064;j=4;d=256064;f=J[a+28>>2]|g;f:{g:{if((f|0)==4096)break g;h:{i:{while(1){if((f|0)==J[d+32>>2])break h;if((f|0)==J[d+60>>2])break i;if((f|0)!=J[d+88>>2]){j=J[d+112>>2];if(!j)break f;e=d;h=d+112|0;d=h;if((f|0)!=J[e+116>>2])continue;break g}break}h=d+84|0;j=J[d+84>>2];break g}h=d+56|0;j=J[d+56>> -2];break g}h=d+28|0;j=J[d+28>>2]}e=J[h+8>>2];f=J[a+32>>2];if((i|0)==(k|0)){d=12;if((j|0)!=6)break c}d=e+f|0;j:{k:{l:{m:{n:{o:switch(j-1|0){case 0:case 3:case 4:e=sl(a,J[J[a+16>>2]>>2]);break n;case 1:e=ku(a,J[J[a+16>>2]>>2],0);break n;case 5:break m;case 2:break o;default:break l}e=ku(a,J[J[a+16>>2]>>2],3)}p:switch(K[h+12|0]-1|0){case 1:I[d>>1]=e;break f;case 0:break j;default:break p}J[d>>2]=e;break f}g=J[a+16>>2];e=J[h+20>>2];i=e>>>0>l>>>0?l:e;H[f+J[h+24>>2]|0]=i;if(!i)break f;f=0;while(1){e=K[h+ -12|0];f=sl(a,J[g>>2])+f|0;q:{r:switch(e-1|0){case 0:H[d|0]=f;break q;case 1:I[d>>1]=f;break q;default:break r}J[d>>2]=f}g=g+4|0;d=d+e|0;i=i-1|0;if(i)continue;break}break k}m=gc[J[h+16>>2]](a)|0;d=7;if(m)break c;m=0}if((j|0)!=8)break f;break d}H[d|0]=e}J[a+20>>2]=J[a+16>>2]}b=b+1|0;d=0}if(!d)continue;break}a=6;if(Hzb(d,30)-1>>>0<3)break a}a=m}return a}function gxa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=bc-48|0;bc=g;f=g+4|0;d=bc-32|0;bc=d;a:{b:{c:{d:{e:{if((c|0)<0){J[695492]=0;a=ja(5018, -d+8|0,2376658,2373668,185,2405787,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break d}e=J[b+68>>2];h=J[b- -64>>2];if(((e-h|0)+1|0)<=(c|0)){J[695492]=0;a=ja(5018,d+8|0,2377246,2373668,187,2405787,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break d}if(!((c|0)<=(e|0)&(c|0)>=(h|0))){a=Kc(d+8|0,2378287,2378920,632,2406049,0);J[695492]=0;_(5019,a|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break e;break d}e=J[b+52>>2];h=J[b+56>>2];J[f>>2]=0;J[f+4>>2]=J[682146];c=J[e+(c-h<<3)>>2];f:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+8|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break f;a=Z()|0;break c}J[d+8>>2]=0}J[695492]=0;aa(4993,f|0,d+8|0)|0;c=J[695492];J[695492]=0;g:{if((c|0)!=1){c=J[d+8>>2];J[d+8>>2]=0;if(!c)break g;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[695492];J[695492]=0;if((h|0)!=1){if(e)break g;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c| -0)!=1)break g}ea(0)|0;yc();B()}a=Z()|0;vc(d+8|0);break c}c=J[f>>2];J[f+4>>2]=J[(c?c+12|0:2728584)>>2];bc=d+32|0;break a}B()}b=Z()|0;Fc(a);ba(b|0);B()}sc(f);ba(a|0);B()}ba(Z()|0);B()}J[695492]=0;b=ga(5173,g+12|0,f|0,b+12|0)|0;c=J[695492];J[695492]=0;h:{i:{if((c|0)!=1){J[695492]=0;aa(4991,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i;J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){c= -J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);sc(g+4|0);bc=g+48|0;return}c=Z()|0;break h}c=Z()|0;ud(b)}sc(g+4|0);ba(c|0);B()}function pha(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;a=bc-336|0;bc=a;J[a+328>>2]=c;J[a+332>>2]=b;i=Pk(d);j=cs(d,a+208|0);bs(a+196|0,d,a+324|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>> -2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6645,a+332|0,a+328|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d| -0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+332|0;g=$(6646,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=Ro(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6648,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d- -(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=ha(6623,c|0,J[a+180>>2],e|0,i|0)|0;d=J[695492];J[695492]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6645,a+332|0,a+328|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];ad(b);ad(a+196|0);bc=a+336|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function mha(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;a=bc-336|0;bc=a;J[a+328>>2]=c;J[a+332>>2]=b;i=Pk(d);j=cs(d,a+208|0);bs(a+196|0,d,a+324|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6645,a+332|0,a+328|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d= -J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+332|0;g=$(6646,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0; -g=Ro(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6648,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=ha(6628,c|0,J[a+180>>2],e|0,i|0)|0;d=J[695492];J[695492]=0;f:{if((d|0)==1)break f;I[f>>1]=c;J[695492]=0;Ah(a+196|0,a+16|0,J[a+ -12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6645,a+332|0,a+328|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];ad(b);ad(a+196|0);bc=a+336|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function lha(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;a=bc-336|0;bc=a;J[a+328>>2]=c;J[a+332>>2]=b;i=Pk(d);j=cs(d,a+208|0);bs(a+196|0,d,a+324|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c= -10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6645,a+332|0,a+328|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]= -0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+332|0;g=$(6646,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=Ro(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6648,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+ -207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=ha(6629,c|0,J[a+180>>2],e|0,i|0)|0;d=J[695492];J[695492]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6645,a+332|0,a+328|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];ad(b);ad(a+196|0);bc=a+336|0;break a}}c=Z()| -0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function kha(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;a=bc-336|0;bc=a;J[a+328>>2]=c;J[a+332>>2]=b;i=Pk(d);j=cs(d,a+208|0);bs(a+196|0,d,a+324|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6645,a+332|0,a+328|0)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d= -a+332|0;g=$(6646,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=Ro(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6648,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=ha(6630,c|0,J[a+180>>2],e|0,i|0)|0;d=J[695492]; -J[695492]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6645,a+332|0,a+328|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];ad(b);ad(a+196|0);bc=a+336|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function Lna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc+-64|0;bc=c;e=1;a:{if(!b)break a;e=0;b:switch(J[b+4>>2]-7|0){case 0:e=b+8|0;c:{d:{e:{f:{g:{h:{i:{b=J[b+20>>2]; -j:{if(!b)break j;BS(c+56|0,J[a+12>>2]+652|0,b);b=J[J[c+56>>2]+4>>2];J[695492]=0;d=c+12|0;da(6213,d|0,b+6|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;b=ga(3536,d|0,0,17376)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[c+32>>2]=J[b+8>>2];d=J[b+4>>2];J[c+24>>2]=J[b>>2];J[c+28>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;b=aa(2668,c+24|0,29433)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;J[c+48>>2]=J[b+8>>2];d=J[b+4>>2];J[c+40>>2]=J[b>>2];J[c+44>>2]=d;J[b>>2]=0;J[b+4>>2]=0; -J[b+8>>2]=0;if(H[c+35|0]<0)qc(J[c+24>>2]);if(H[c+23|0]<0)qc(J[c+12>>2]);I[c+32>>1]=K[29396]|K[29397]<<8;J[695492]=0;I[c+34>>1]=2560;b=K[29392]|K[29393]<<8|(K[29394]<<16|K[29395]<<24);J[c+24>>2]=K[29388]|K[29389]<<8|(K[29390]<<16|K[29391]<<24);J[c+28>>2]=b;ca(6214,e|0,c+24|0,c+40|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;if(H[c+35|0]<0)qc(J[c+24>>2]);if(H[c+51|0]<0)qc(J[c+40>>2]);b=J[c+60>>2];if(!b)break j;d=J[b+4>>2];J[b+4>>2]=d-1;if(d)break j;gc[J[J[b>>2]+8>>2]](b);Vc(b)}a=J[a+12>>2];b=K[e+ -11|0];d=b<<24>>24<0;mm(c+40|0,d?J[e>>2]:e,d?J[e+4>>2]:b);b=J[a+2200>>2];if(b>>>0>=M[a+2204>>2])break c;e=J[c+44>>2];J[b>>2]=J[c+40>>2];J[b+4>>2]=e;J[b+8>>2]=J[c+48>>2];J[a+2200>>2]=b+12;e=0;break a}b=Z()|0;break d}b=Z()|0;break f}b=Z()|0;if(H[c+35|0]>=0)break f;qc(J[c+24>>2])}if(H[c+23|0]>=0)break d;qc(J[c+12>>2]);break d}b=Z()|0;if(H[c+35|0]<0)qc(J[c+24>>2]);if(H[c+51|0]>=0)break d;qc(J[c+40>>2])}Ie(c+56|0);ba(b|0);B()}J[695492]=0;da(2791,a+2196|0,c+40|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+ -51|0]<0)qc(J[c+40>>2]);e=0;break a}a=Z()|0;if(H[c+51|0]<0)qc(J[c+40>>2]);ba(a|0);B();case 1:break a;default:break b}e=1}bc=c- -64|0;return e|0}function gra(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;d=J[b+12>>2];if(!d){J[a>>2]=0;md(a,0);return}i=J[d+8>>2];e=J[d+4>>2];d=rc(24);J[695492]=0;c=ha(5262,d|0,i|0,e|0,0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){J[a>>2]=0;md(a,c);d=J[a>>2];if(L[d+8>>1])f=J[d+16>>2];c=J[b+12>>2];d=L[d+12>>1];J[695492]=0;d=P(d,3);la(5507,c|0,f|0,d|0,3,0);c=J[695492]; -J[695492]=0;a:{b:{c:{if((c|0)==1)break c;d:{if(!J[b+20>>2])break d;c=1;h=J[b+16>>2];if(!(!h|J[b+36>>2]<0)){c=J[b+40>>2];J[695492]=0;la(5507,h|0,f+1|0,d|0,3,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[b+40>>2];h=J[b+20>>2];J[695492]=0;la(5507,h|0,f+2|0,d|0,3,c|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;c=J[b+20>>2]!=0}if(!c|!J[b+16>>2])break d;if(J[b+36>>2]>=0)break b}if((i|0)<=0|(e|0)<=0)break a;a=J[a>>2];h=e&-4;c=e&3;d=0;j=e>>>0<4;while(1){b=0;e:{if(L[a+8>>1]<=d>>>0)break e;f=J[a+16>> -2];b=0;if(!f)break e;b=f+P(P(L[a+12>>1],d),3)|0}f=0;if(!j)while(1){e=K[b|0]^127;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;e=K[b+3|0]^127;H[b+3|0]=e;H[b+5|0]=e;H[b+4|0]=e;e=K[b+6|0]^127;H[b+6|0]=e;H[b+8|0]=e;H[b+7|0]=e;e=K[b+9|0]^127;H[b+9|0]=e;H[b+11|0]=e;H[b+10|0]=e;b=b+12|0;f=f+4|0;if((h|0)!=(f|0))continue;break}f=0;if(c)while(1){e=K[b|0]^127;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;b=b+3|0;f=f+1|0;if((c|0)!=(f|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}break a}b=Z()|0;vc(a);ba(b|0);B()}f=0;d=0;a=J[a>> -2];if(L[a+8>>1])d=J[a+16>>2];if((e|0)<=0|(i|0)<=0)break a;h=P(L[a+12>>1],3);while(1){b=d;a=0;while(1){c=H[b+2|0];j=(c>>1)+c|0;c=H[b|0]+128|0;g=j+c|0;g=(g|0)>=255?255:g;H[b+2|0]=(g|0)>0?g:0;g=H[b+1|0];c=c-(g>>2)|0;g=c+(g<<1)|0;g=(g|0)>=255?255:g;H[b|0]=(g|0)>0?g:0;c=c-(j>>1)|0;c=(c|0)>=255?255:c;H[b+1|0]=(c|0)>0?c:0;b=b+3|0;a=a+1|0;if((e|0)!=(a|0))continue;break}d=d+h|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}return}a=Z()|0;qc(d);ba(a|0);B()}function I$a(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;k=bc-16|0;bc=k;j=J[a+16>>2];i=J[a+4>>2];e=J[i+8>>2];m=J[a+12>>2];f=J[a+8>>2];H[k+14|0]=0;H[k+15|0]=0;a:{if(f>>>0>=m>>>0)break a;b:while(1){if(M[a+20>>2]>j>>>0){g=J[i+48>>2];while(1){d=f;f=d+1|0;c=K[d|0];h=c<<24>>24;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((g|0)!=126){r:{if(K[e+13|0]){l=J[i+44>>2];if(l)break q;if((h|0)==126)break r;J[i+44>>2]=c|256;H[e+15|0]=0;break c}if((h|0)!=126)break p}g=126;J[i+48>>2]=126;break c}g=0;J[i+48>>2]=0;s:switch(c-123|0){case 1:break l;case 3:break o; -case 0:case 2:break s;default:break m}H[e+13|0]=(h|0)==123;if(K[e+15|0])break n;H[e+15|0]=1;break c}g=h-33&255;if(g>>>0<94&(l+223&255)>>>0<=92)break k;J[i+44>>2]=0;J[b>>2]=12;b=l&255;if(g>>>0>=94)break h;f=d;c=b;break e}H[e+15|0]=0;if((h|0)<0)break f;d=c;break j}d=J[a+24>>2];if(d)J[d+(j-J[a+16>>2]<<1)>>2]=(f-J[a+8>>2]|0)-2;I[j>>1]=126;H[e+15|0]=0;break d}H[e+15|0]=0;J[b>>2]=18;b=J[a+4>>2];H[b+37|0]=126;J[b+256>>2]=2;H[J[a+4>>2]+38|0]=h;H[J[a+4>>2]+36|0]=2;break a}if((c|0)==10)break c}H[e+15|0]=0; -J[b>>2]=18;H[J[a+4>>2]+37|0]=126;t:{u:{if(K[e+13|0]){g=1;if((h-33&255)>>>0>=94)break u;break t}g=1;if((h|0)>=0)break t}H[J[a+4>>2]+38|0]=h;g=2;d=f}H[J[a+4>>2]+36|0]=g;f=d;break a}H[k+15|0]=h^128;H[k+14|0]=l^128;d=en(J[J[e>>2]+24>>2],k+14|0,2);i=J[a+4>>2];J[i+44>>2]=0;if((d|0)>65533)break i}c=J[a+24>>2];if(c)J[c+(j-J[a+16>>2]<<1)>>2]=((J[a+8>>2]^-1)+f|0)-H[e+13|0];I[j>>1]=d;break d}J[b>>2]=(d|0)==65534?10:12;c=l<<8&65280|c;if(c>>>0>=256)break g;break e}c=b<<8|c|65536}H[J[a+4>>2]+37|0]=c>>>8;H[J[a+ -4>>2]+38|0]=c;H[J[a+4>>2]+36|0]=2;break a}J[b>>2]=12}H[J[a+4>>2]+37|0]=c;H[J[a+4>>2]+36|0]=1;break a}j=j+2|0;if(f>>>0>>0)continue b;break a}if(f>>>0>>0)continue;break}break a}break}J[b>>2]=15}J[a+8>>2]=f;J[a+16>>2]=j;bc=k+16|0}function u0(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;a:{if(!J[a+12>>2])break a;while(1){if((b|0)==1)break a;if((_q(J[a+12>>2])|0)!=1)break a;b=Bt(J[a+12>>2]);if((b|0)!=-1)continue;break}}t0(a);g=-1;b:{c:{d:{b=J[a+12>>2];e:{f:{if(!b)break f;g=gm(b);b=J[a+12>>2]; -if(!b)break f;if((Zq(b)|0)==1)break e}while(1){if((_q(J[a+12>>2])|0)!=1)break e;h=Bt(J[a+12>>2]);if((h|0)==-1)break e;b=J[a+12>>2];if(b)gm(b);g:{h:switch(h-1|0){case 2:case 12:case 13:e=rw(J[a+12>>2]);i:{if(!e){H[c+15|0]=0;b=c+4|0;break i}d=Qc(e);if(d>>>0>=2147483632)break d;j:{if(d>>>0<=10){H[c+15|0]=d;b=c+4|0;break j}f=(d|15)+1|0;b=rc(f);J[c+12>>2]=f|-2147483648;J[c+4>>2]=b;J[c+8>>2]=d}b=Zc(b,e,d)+d|0}H[b|0]=0;b=J[a+28>>2];J[695492]=0;f=b+36|0;b=K[c+15|0];d=b<<24>>24<0;ga(2669,f|0,(d?J[c+4>>2]: -c+4|0)|0,(d?J[c+8>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[c+15|0]>=0)break g;qc(J[c+4>>2]);break g}a=Z()|0;if(H[c+15|0]>=0)break b;qc(J[c+4>>2]);break b;case 3:e=rw(J[a+12>>2]);k:{if(!e){H[c+15|0]=0;b=c+4|0;break k}d=Qc(e);if(d>>>0>=2147483632)break c;l:{if(d>>>0<=10){H[c+15|0]=d;b=c+4|0;break l}f=(d|15)+1|0;b=rc(f);J[c+12>>2]=f|-2147483648;J[c+4>>2]=b;J[c+8>>2]=d}b=Zc(b,e,d)+d|0}H[b|0]=0;b=J[a+28>>2];J[695492]=0;f=b+36|0;b=K[c+15|0];d=b<<24>>24<0;ga(2669,f|0,(d?J[c+4>>2]:c+4|0)|0,(d? -J[c+8>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[c+15|0]>=0)break g;qc(J[c+4>>2]);break g}a=Z()|0;if(H[c+15|0]>=0)break b;qc(J[c+4>>2]);ba(a|0);B();case 0:t0(a);break g;case 14:break h;default:break g}b=J[a+32>>2];d=J[b>>2];e=J[b+4>>2];J[d+4>>2]=e;J[e>>2]=d;J[a+40>>2]=J[a+40>>2]-1;qc(b);if(J[a+40>>2]){J[a+28>>2]=J[J[a+32>>2]+8>>2];break g}J[a+28>>2]=J[a+24>>2]}b=J[a+12>>2];if(b)b=gm(b);else b=-1;if((b|0)<(g|0))break e;if((h|0)!=15|(b|0)!=(g|0))continue;break}}bc=c+16|0;return}Id(c+4|0); -B()}Id(c+4|0);B()}ba(a|0);B()}function nga(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;var h=0,i=0,j=0,k=0,l=0,m=0;h=bc-272|0;bc=h;J[h+264>>2]=c;J[h+268>>2]=b;J[h+16>>2]=6678;a=h+16|0;b=ng(h+152|0,h+160|0,a);J[695492]=0;j=h+144|0;i=J[e+28>>2];J[j>>2]=i;J[i+4>>2]=J[i+4>>2]+1;i=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((i|0)!=1){J[695492]=0;i=$(6613,j|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break j;H[h+143|0]=0;e=J[e+4>>2];J[695492]=0;c=Ba(6679,h+268|0,c|0,d|0,j|0,e|0,f|0, -h+143|0,i|0,b|0,h+148|0,h+260|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;if(!c)break f;c=K[22296]|K[22297]<<8|(K[22298]<<16|K[22299]<<24);H[h+135|0]=c;H[h+136|0]=c>>>8;H[h+137|0]=c>>>16;H[h+138|0]=c>>>24;c=K[22293]|K[22294]<<8|(K[22295]<<16|K[22296]<<24);J[h+128>>2]=K[22289]|K[22290]<<8|(K[22291]<<16|K[22292]<<24);J[h+132>>2]=c;J[695492]=0;ha(6634,i|0,h+128|0,h+138|0,h+118|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;J[h+4>>2]=1617;d=ng(h+8|0,0,h+4|0);e=a;a=J[h+148>>2]-J[b>>2]|0;if((a|0)< -99)break g;ih(d,zc(a+2|0));if(J[d>>2])break h;J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;break a}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;break c}e=J[d>>2]}if(K[h+143|0]){H[e|0]=45;e=e+1|0}c=J[b>>2];while(1){if(M[h+148>>2]<=c>>>0){H[e|0]=0;J[h>>2]=g;if((Og(h+16|0,13183,h)|0)!=1){J[695492]=0;_(6680,4888);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break d}Ae(d)}else{a=h+118|0;l=e,m=K[(h+(VE(a,a+10|0,c)-h|0)|0)+10|0],H[l|0]=m;e=e+1|0;c=c+1|0;continue}break}}J[695492]=0;a=aa(6531, -h+268|0,h+264|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(a)J[f>>2]=J[f>>2]|2;d=J[h+268>>2];a=J[h+144>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);Ae(b);bc=h+272|0;return d|0}c=Z()|0;break c}c=Z()|0;Ae(d)}a=J[h+144>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)gc[J[J[a>>2]+8>>2]](a)}Ae(b);ba(c|0);B()}B()}function P$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!b)return-1;e=J[b>>2];a:{if(!a)while(1){a=K[e|0];c=(a&223)-65|0;b:{if((a-48&255)>>>0<10|(c&255)>>>0<26)break b;c:switch(a- -33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 58:case 60:case 62:case 93:break b;case 4:break c;default:break a}d:{c=K[e+1|0];if((c-48&255)>>>0<10)break d;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break d;default:break a}}c=K[e+2|0];if((c-48&255)>>>0<10)break b;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break b; -default:break a}}e=((a|0)==37?3:1)+e|0;continue}while(1){e:{d=K[e|0];c=(d&223)-65|0;f:{if((d-48&255)>>>0<10|(c&255)>>>0<26)break f;g:{h:switch(d-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 58:case 60:case 62:case 93:break f;case 4:break h;default:break g}i:{c=K[e+1|0];if((c-48&255)>>>0<10)break i;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i; -default:break g}}c=K[e+2|0];if((c-48&255)>>>0<10)break f;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break f;default:break g}}c=J[a+36>>2];if(!(c&1))break e;switch(d-92|0){case 0:case 2:case 4:case 31:case 32:case 33:break f;default:break e}}e=((d|0)==37?3:1)+e|0;continue}break}d=J[a+32>>2];if(d){gc[J[659451]](d);c=J[a+36>>2]}f=J[b>>2];d=e-f|0;j:{if(c&2){c=0;if(!f|(d|0)<0)break j;c=gc[J[659450]](d+1|0)|0;if(!c){c=0;Cc(0,0,0,0,0,1,2,3,0, -0,0,0,36013,0);break j}g=tc(c,f,d)+d|0,h=0,H[g|0]=h;break j}c=eo(f,d)}J[a+32>>2]=c}J[b>>2]=e;return 0}function DNa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;u=bc-192|0;bc=u;f=wc(a,0,256);while(1){a:{i=f;d=J[(j<<2)+b>>2]+c|0;l=K[d+5|0];m=K[d+1|0];g=l+m|0;h=K[d+3|0];n=K[d+4|0];o=K[d+2|0];e=n+o|0;p=K[d+6|0];r=K[d|0];d=p+r|0;q=e+d|0;J[f>>2]=((g+h|0)+q<<2)-3584;q=P(q-(h<<2)|0,2896);s=P(d-g|0,7223)+1024|0;d=P(d-e| -0,7542);J[f+24>>2]=q+(s-d|0)>>11;e=P(g-e|0,2578);J[f+16>>2]=(e+s|0)+P(g-(h<<1)|0,-5793)>>11;J[f+8>>2]=(q+(d+e|0)|0)+1024>>11;d=o-n|0;g=r-p|0;h=P(d+g|0,5027)+1024|0;t=h+P(d,15326)|0;k=d;d=m-l|0;e=P(k+d|0,-11295);J[f+20>>2]=t+e>>11;k=e;e=P(g-d|0,1395);d=P(d+g|0,7663);J[f+12>>2]=((k+e|0)+d|0)+1024>>11;J[f+4>>2]=d+(h-e|0)>>11;d=j-7|0;j=j+1|0;f=u;b:switch(d|0){case 0:continue;case 6:break a;default:break b}f=i+32|0;continue}break}while(1){c=J[f+32>>2];g=J[a+128>>2];h=c+g|0;i=J[f+96>>2];d=J[a+64>>2];e= -i+d|0;j=h+e|0;l=J[f+64>>2];m=J[a+96>>2];n=l+m|0;b=n<<1;o=J[a+32>>2];p=J[f+128>>2];r=o+p|0;q=J[f>>2];s=J[a+160>>2];v=q+s|0;w=r+v|0;x=J[a+224>>2];y=J[a+192>>2];z=x+y|0;A=J[f+160>>2];B=J[a>>2];t=A+B|0;k=z+t|0;J[a+128>>2]=((P(j-b|0,-4717)+P(w-b|0,1684)|0)+P(k-b|0,6817)|0)+16384>>15;J[a>>2]=P(((j+n|0)+w|0)+k|0,5350)+16384>>15;b=B-A|0;l=m-l|0;i=d-i|0;d=o-p|0;m=i+d|0;j=s-q|0;g=g-c|0;n=j-g|0;c=y-x|0;J[a+224>>2]=P(b+l-((m+n|0)+c)|0,5350)+16384>>15;h=e-h|0;e=t-z|0;o=r-v|0;p=P(e+o|0,5915)+16384|0;J[a+192>>2]= -(P(h,-7376)+p|0)+P(o,-9198)>>15;J[a+64>>2]=(p+P(h,3283)|0)+P(e,1461)>>15;h=P(l,5350);e=((P(n,7518)-h|0)+P(m,-847)|0)+16384|0;k=(e+P(i,-12700)|0)+P(g,5992)|0;i=P(c+g|0,4025)+P(b+i|0,6406)|0;J[a+160>>2]=k+i>>15;k=(e+P(d,-2269)|0)+P(j,-16423)|0;d=P(j-c|0,2499)+P(b+d|0,7141)|0;J[a+96>>2]=k+d>>15;J[a+32>>2]=(i+((h+(d+P(b,-6029)|0)|0)+P(c,-679)|0)|0)+16384>>15;f=f+4|0;a=a+4|0;C=C+1|0;if((C|0)!=7)continue;break}bc=u+192|0}function cG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;J[a+8>>2]=0;J[a>>2]= -2381028;J[a+12>>2]=J[682146];f=a+8|0;a:{b=J[b>>2];b:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break b;a=Z()|0;break a}J[c+12>>2]=0}J[695492]=0;aa(4993,f|0,c+12|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}ea(0)|0;yc();B()}a=Z()|0;vc(c+12|0);break a}b= -J[a+8>>2];b=J[(b?b+12|0:2728584)>>2];J[a+20>>2]=0;J[a+12>>2]=b;J[a+16>>2]=2426920;J[695492]=0;e=$(4,52)|0;b=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((b|0)!=1){J[695492]=0;d=Qn(e,8,6075,6076,6077,6078,6079);b=J[695492];J[695492]=0;if((b|0)==1)break h;J[d+4>>2]=J[d+4>>2]+1;b=J[a+20>>2];i:{if(!b)break i;e=J[b+4>>2]-1|0;J[b+4>>2]=e;if(e)break i;gc[J[J[b>>2]+4>>2]](b)}J[a+20>>2]=d;J[a+24>>2]=2426920;J[a+28>>2]=0;J[695492]=0;e=$(4,52)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;d=Qn(e,8,6075, -6076,6077,6078,6079);b=J[695492];J[695492]=0;if((b|0)==1)break g;J[d+4>>2]=J[d+4>>2]+1;b=J[a+28>>2];j:{if(!b)break j;f=J[b+4>>2]-1|0;J[b+4>>2]=f;if(f)break j;gc[J[J[b>>2]+4>>2]](b)}H[a+32|0]=0;J[a+28>>2]=d;bc=c+16|0;return a|0}b=Z()|0;J[a+16>>2]=2381060;break d}b=Z()|0;qc(e);J[a+16>>2]=2381060;c=J[a+20>>2];if(!c)break d;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0;break d}b=Z()|0;qc(e);J[a+24>>2]=2381060;c=J[a+28>>2];if(!c)break e;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>> -2]+4>>2]](c);J[a+28>>2]=0;break e}b=Z()|0;J[a+24>>2]=2381060}J[a+16>>2]=2381060;c=J[a+20>>2];if(!c)break d;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0}sc(f);ba(b|0);B()}sc(f);ba(a|0);B()}function Jha(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;a=bc-256|0;bc=a;J[a+248>>2]=c;J[a+252>>2]=b;h=Pk(d);ds(a+196|0,d,a+247|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c| -0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6531,a+252|0,a+248|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)- -1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+252|0;g=$(6532,d|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break d;J[695492]=0;g=So(g,h,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2617936);i=J[695492];J[695492]=0;if((i|0)==1)break d;if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]& -127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=dy(6627,c,J[a+180>>2],e,h);d=fc;h=J[695492];J[695492]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+252|0,a+248|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];ad(b);ad(a+196|0);bc=a+256|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c| -0}function Cha(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;a=bc-256|0;bc=a;J[a+248>>2]=c;J[a+252>>2]=b;h=Pk(d);ds(a+196|0,d,a+247|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6531,a+252|0,a+248|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>> -2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+252|0;g=$(6532,d|0)|0;i=J[695492];J[695492]=0;if((i|0)== -1)break d;J[695492]=0;g=So(g,h,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2617936);i=J[695492];J[695492]=0;if((i|0)==1)break d;if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=dy(6631,c,J[a+180>>2],e,h);d=fc;h=J[695492];J[695492]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]= -d;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+252|0,a+248|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];ad(b);ad(a+196|0);bc=a+256|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function zv(a,b,c,d,e){var f=0,g=0,h=0;f=bc-16|0;bc=f;g=gc[J[e>>2]](b,a)|0;h=gc[J[e>>2]](c,b)|0;a:{b:{if(!g){g=0;if(!h)break a;J[f+8>>2]=J[b+8>>2];g=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=g;J[b+8>>2]=J[c+8>> -2];g=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=g;J[c+8>>2]=J[f+8>>2];g=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=g;g=1;if(!(gc[J[e>>2]](b,a)|0))break a;J[f+8>>2]=J[a+8>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[a+8>>2]=J[b+8>>2];g=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=g;J[b+8>>2]=J[f+8>>2];g=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=g;break b}if(h){J[f+8>>2]=J[a+8>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[a+8>>2]=J[c+8>>2];g=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=g;J[c+8>>2]=J[f+8>>2];g=J[f+4>>2];J[c>>2]=J[f>>2]; -J[c+4>>2]=g;g=1;break a}J[f+8>>2]=J[a+8>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[a+8>>2]=J[b+8>>2];g=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=g;J[b+8>>2]=J[f+8>>2];g=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=g;g=1;if(!(gc[J[e>>2]](c,b)|0))break a;J[f+8>>2]=J[b+8>>2];g=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=g;J[b+8>>2]=J[c+8>>2];g=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=g;J[c+8>>2]=J[f+8>>2];g=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=g}g=2}c:{if(!(gc[J[e>>2]](d,c)|0))break c;J[f+8>>2]=J[c+8>>2];h=J[c+4>>2];J[f>>2]= -J[c>>2];J[f+4>>2]=h;J[c+8>>2]=J[d+8>>2];h=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=h;J[d+8>>2]=J[f+8>>2];h=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=h;if(!(gc[J[e>>2]](c,b)|0)){g=g+1|0;break c}J[f+8>>2]=J[b+8>>2];d=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=d;J[b+8>>2]=J[c+8>>2];d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;J[c+8>>2]=J[f+8>>2];d=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=d;if(!(gc[J[e>>2]](b,a)|0)){g=g+2|0;break c}J[f+8>>2]=J[a+8>>2];c=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>> -2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[f+8>>2];a=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=a;g=g+3|0}bc=f+16|0;return g}function TL(a,b){var c=0,d=0,e=0,f=0,g=0;c=I[a+1044>>1];a:{d=L[a+1046>>1];if(!d){b:{if((c|0)>0)break b;J[a+1056>>2]=J[a+1052>>2];c=J[a+1020>>2];if((c|0)>=16383){c=0;d=gc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=d;if((d|0)<=16382)H[d+J[a+1028>>2]|0]=255;J[a+1020>>2]=0}if(J[a+1024>>2]<=(c|0))break a;J[a+1020>>2]=c+1;d=K[J[a+1028>>2]+c|0];I[a+1044>>1]=d;c=0;if(!d)break b; -d=0;while(1){c=J[a+1020>>2];if((c|0)>=16383){c=gc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=c;if((c|0)<=16382)H[c+J[a+1028>>2]|0]=255;J[a+1020>>2]=0;c=0}if(J[a+1024>>2]<=(c|0))return-1;J[a+1020>>2]=c+1;H[J[a+1052>>2]+d|0]=K[J[a+1028>>2]+c|0];c=I[a+1044>>1];d=d+1|0;if((c|0)>(d|0))continue;break}}d=J[a+1056>>2];J[a+1056>>2]=d+1;d=K[d|0];I[a+1046>>1]=8;H[a+1048|0]=d;c=c-1|0;I[a+1044>>1]=c;d=8}if(c<<16>>16<0)return I[a+1036>>1];f=d<<16>>16;g=K[a+1048|0]>>>8-f|0;e=I[a+1032>>1];if((f| -0)<(e|0))while(1){c:{if(c<<16>>16>0)break c;J[a+1056>>2]=J[a+1052>>2];c=J[a+1020>>2];if((c|0)>=16383){c=gc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=c;if((c|0)<=16382)H[c+J[a+1028>>2]|0]=255;J[a+1020>>2]=0;c=0}if(J[a+1024>>2]<=(c|0))break a;J[a+1020>>2]=c+1;d=K[J[a+1028>>2]+c|0];I[a+1044>>1]=d;c=0;if(!d)break c;d=0;while(1){c=J[a+1020>>2];if((c|0)>=16383){c=gc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=c;if((c|0)<=16382)H[c+J[a+1028>>2]|0]=255;J[a+1020>>2]=0;c= -0}if(J[a+1024>>2]<=(c|0))return-1;J[a+1020>>2]=c+1;H[J[a+1052>>2]+d|0]=K[J[a+1028>>2]+c|0];c=I[a+1044>>1];d=d+1|0;if((c|0)>(d|0))continue;break}}d=J[a+1056>>2];J[a+1056>>2]=d+1;d=K[d|0];H[a+1048|0]=d;e=L[a+1046>>1];f=e+8|0;I[a+1046>>1]=f;c=c-1|0;I[a+1044>>1]=c;g=d<>16;e=I[a+1032>>1];if((d|0)<(e|0))continue;break}I[a+1046>>1]=d-e;return(J[(e<<2)+47872>>2]&g)<<16>>16}I[a+1044>>1]=65535;return-1}function gl(a){var b=0,c=0,d=0,e=0,f=0,g=0;if(a){a:switch(J[a+4>>2]-2|0){case 12:fr(a);return; -case 16:b=J[a+8>>2];if(b)gc[J[659451]](b);b=J[a+12>>2];if(b)gc[J[659451]](b);gc[J[659451]](a);return;case 0:yw(a);return;default:break a}b:{if(!J[689540])break b;b=J[689538];if(!b)break b;gc[b|0](a)}b=J[a+32>>2];if(b)e=J[b+80>>2];c=J[a+4>>2];if((c|0)==17){d=J[a+56>>2];c:{if(!d)break c;if(e){b=e;while(1){c=J[b+16>>2];if(c)while(1){if(d>>>0<=M[c+4>>2]&d>>>0>=c+20>>>0)break c;c=J[c>>2];if(c)continue;break}b=J[b+20>>2];if(b)continue;break}}gc[J[659451]](d)}d=J[a+52>>2];d:{if(!d)break d;if(e){b=e;while(1){c= -J[b+16>>2];if(c)while(1){if(d>>>0<=M[c+4>>2]&d>>>0>=c+20>>>0)break d;c=J[c>>2];if(c)continue;break}b=J[b+20>>2];if(b)continue;break}}gc[J[659451]](d)}c=J[a+4>>2]}d=J[a+12>>2];e:{f:{if(d){b=5;if((c|0)==5)break f;jm(d);b=J[a+4>>2]}else b=c;g:{if(b>>>0>20|!(1<>2];if(!c)break g;while(1){b=J[c+24>>2];yw(c);c=b;if(c)continue;break}b=J[a+4>>2]}f=1;if((b|0)==1)break e}f=b;if(b-19>>>0<2)break e;f=b;if((b|0)==5)break e;g=J[a+40>>2];f=b;if(!g)break e;f=b;if((a+44|0)==(g|0))break e; -if(e){d=e;while(1){c=J[d+16>>2];if(c)while(1){f=b;if(!(M[c+4>>2]>>0|c+20>>>0>g>>>0))break e;c=J[c>>2];if(c)continue;break}d=J[d+20>>2];if(d)continue;break}}gc[J[659451]](g);f=J[a+4>>2]}d=f;b=J[a+8>>2];h:{if(!b)break h;i:switch(d-3|0){case 0:case 5:break h;default:break i}if(e)while(1){c=J[e+16>>2];if(c)while(1){if(b>>>0<=M[c+4>>2]&b>>>0>=c+20>>>0)break h;c=J[c>>2];if(c)continue;break}e=J[e+20>>2];if(e)continue;break}gc[J[659451]](b);d=J[a+4>>2]}j:{if(!(1<>>0>20)break j;c=J[a+48>> -2];if(!c)break j;while(1){b=J[c>>2];e=J[c+8>>2];if(e)gc[J[659451]](e);e=J[c+12>>2];if(e)gc[J[659451]](e);gc[J[659451]](c);c=b;if(b)continue;break}}gc[J[659451]](a)}}function zDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;b=J[b+4>>2];if(b){c=bc-32|0;bc=c;J[a>>2]=123;J[a+4>>2]=0;H[a+11|0]=1;d=J[b+12>>2];J[c+12>>2]=0;J[c+28>>2]=0;J[695492]=0;J[c+24>>2]=0;f=d;d=c+12|0;la(5025,f|0,0,d|0,c+28|0,c+24|0);e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((e|0)==1)break i;J[695492]=0;e=J[c+28>>2];g=J[c+12>> -2];aa(2860,a|0,2374752)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;da(2276,d|0,P(g,100)|0);g=J[695492];J[695492]=0;if((g|0)==1)break h;J[695492]=0;f=d;d=K[c+23|0];g=d<<24>>24<0;ga(2794,a|0,(g?J[c+12>>2]:f)|0,(g?J[c+16>>2]:d)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;if(H[c+23|0]<0)qc(J[c+12>>2]);J[695492]=0;aa(2860,a|0,2375596)|0;d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;d=c+12|0;da(2276,d|0,P(e,100)|0);e=J[695492];J[695492]=0;if((e|0)==1)break f;J[695492]=0;f= -d;d=K[c+23|0];e=d<<24>>24<0;ga(2794,a|0,(e?J[c+12>>2]:f)|0,(e?J[c+16>>2]:d)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;if(H[c+23|0]<0)qc(J[c+12>>2]);d=0;J[695492]=0;aa(2860,a|0,2376272)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;b=J[b+12>>2];if(b){J[695492]=0;d=$(5026,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d}J[695492]=0;b=c+12|0;da(2276,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break d;J[695492]=0;f=b;b=K[c+23|0];d=b<<24>>24<0;ga(2794,a|0,(d?J[c+12>>2]:f)|0,(d?J[c+16>>2]:b)| -0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(H[c+23|0]<0)qc(J[c+12>>2]);J[695492]=0;aa(2860,a|0,2376964)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[c+23|0]>=0)break b;qc(J[c+12>>2]);break b}b=Z()|0;break b}b=Z()|0;if(H[c+23|0]>=0)break b;qc(J[c+12>>2]);break b}b=Z()|0;break b}b=Z()|0;if(H[c+23|0]>=0)break b;qc(J[c+12>>2])}if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}bc=c+32|0;return}J[a>>2]=0;H[a+11|0]=0}function afb(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;d=bc-48|0;bc=d;i=J[b+28>>2];J[d+24>>2]=J[b+8>>2];o=d,p=Kf(b,d+8|0),J[o+12>>2]=p;c=J[d+8>>2];a:{if(c)break a;c=Me(b,326576,d+12|0);J[d+8>>2]=c;if(c)break a;c=1330926671;b:{if(J[d+12>>2]!=1330926671){e=J[d+24>>2];c=nd(b,e+12|0);J[d+44>>2]=c;if(c)break a;c=2;if(!L[d+16>>1])break a;j=e+28|0;e=0;while(1){c:{c=Me(b,326608,d+28|0);J[d+44>>2]=c;if(c){I[d+16>>1]=e-1;break c}g=J[b+4>>2];h=J[d+36>>2];d:{if(g>>>0>>0)break d;c=J[d+28>>2];m=g-h|0;g=J[d+40>>2];if(!((c| -0)==1986884728|m>>>0>=g>>>0)&(c|0)!=1752003704)break d;f=f+1|0;e:{if((c|0)<=1651008867){if((c|0)==1296389185)break e;if((c|0)!=1397313095)break d;l=1;break d}if((c|0)!=1751474532&(c|0)!=1651008868)break d;if(g>>>0<54){c=142;break a}c=nd(b,h+12|0);J[d+44>>2]=c;if(c)break a;Kf(b,d+44|0);c=J[d+44>>2];if(c)break a;c=nd(b,j+(e<<4)|0);J[d+44>>2]=c;k=1;if(!c)break d;break a}n=1}e=e+1|0;if(e>>>0>1])continue}break}c=2;if(!(f&65535))break a;if(!k){c=142;if(!l|!n)break a}J[d+8>>2]=0;c=J[d+12>>2];break b}f= -L[d+16>>1];if(f)break b;c=2;break a}J[a+148>>2]=c;I[a+152>>1]=f;o=a,p=Sc(i,16,0,f&65535,0,d+8|0),J[o+156>>2]=p;c=J[d+8>>2];if(c)break a;c=nd(b,J[d+24>>2]+12|0);J[d+8>>2]=c;if(c)break a;c=Ue(b,L[d+16>>1]<<4);J[d+8>>2]=c;if(c)break a;f:{if(!L[d+16>>1]){f=0;break f}j=0;f=0;while(1){h=qh(b);l=qh(b);i=qh(b);k=qh(b);c=J[b+4>>2];g:{if(c>>>0>>0)break g;c=c-i|0;if(c>>>0>>0){if((h|0)!=1986884728&(h|0)!=1752003704)break g;k=c&-4}g=J[a+156>>2];e=f&65535;h:{if(!e){e=0;break h}c=0;while(1){if((h|0)==J[g+ -(c<<4)>>2])break g;c=c+1|0;if((e|0)!=(c|0))continue;break}}c=g+(e<<4)|0;J[c+12>>2]=k;J[c+8>>2]=i;J[c+4>>2]=l;J[c>>2]=h;f=f+1|0}j=j+1|0;if(L[d+16>>1]>(j&65535)>>>0)continue;break}}I[a+152>>1]=f;ne(b);c=J[d+8>>2]}bc=d+48|0;return c|0}function sFa(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;c=bc-48|0;bc=c;if(!Gh(b)){h=c+36|0;J[h>>2]=0;J[h+4>>2]=0;H[h+8|0]=0;J[695492]=0;f=Qg(b);e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((e|0)!=1){while(1){J[695492]=0;i=aa(4815, -b|0,f|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;if(!i)break a;J[695492]=0;e=c+12|0;da(4802,e|0,b|0);g=J[695492];J[695492]=0;if((g|0)==1)break o;J[695492]=0;e=aa(4825,c+24|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break n;J[695492]=0;Xf(h,e);g=J[695492];J[695492]=0;if((g|0)==1)break m;Lc(e);if(H[c+23|0]<0)qc(J[c+12>>2]);J[695492]=0;e=Fd(h,2367328);g=J[695492];J[695492]=0;if((g|0)==1)break d;if(!e)continue;break}J[695492]=0;e=c+12|0;J[e>>2]=0;J[e+4>>2]=0;H[e+8|0]=0;f=J[695492];J[695492]=0; -if((f|0)==1)break k;J[695492]=0;ca(4829,b|0,2367404,e|0);f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;f=J[e+4>>2];g=J[695492];J[695492]=0;if((g|0)==1)break g;if(!f)break h;J[695492]=0;da(4879,c|0,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break j;a=J[a+36>>2];J[695492]=0;a=aa(4887,a|0,(H[c+11|0]<0?J[c>>2]:c)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;ca(4888,d|0,a|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break i;if(H[c+11|0]>=0)break b;qc(J[c>>2]);break b}b=Z()|0;break c}b= -Z()|0;break c}b=Z()|0;break l}b=Z()|0;Lc(e)}if(H[c+23|0]>=0)break c;qc(J[c+12>>2]);break c}b=Z()|0;break c}b=Z()|0;Lc(e);break c}b=Z()|0;if(H[c+11|0]>=0)break e;qc(J[c>>2]);Lc(e);break c}J[695492]=0;a=$(4,36)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;b=aa(4889,a|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;J[695492]=0;ca(4888,d|0,b|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break b}b=Z()|0;Lc(e);break c}b=Z()|0;qc(a)}Lc(e);break c}b=Z()|0}Lc(h);ba(b|0);B()}Lc(e)}Lc(h)}bc=c+48| -0;return i|0}function uab(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{d:{b=J[b>>2];if((b|0)<=12287){if((b|0)==32)break d;if((b|0)!=64)break a;b=J[a+16>>2];c=b+96|0;H[b+192|0]=0;J[b+160>>2]=2147483647;J[b+164>>2]=2147483647;J[b+144>>2]=2147483647;J[b+148>>2]=2147483647;J[b+104>>2]=0;J[b+108>>2]=0;I[c+1468>>1]=0;J[c+1208>>2]=0;J[b+184>>2]=-2147483647;J[b+188>>2]=-2147483647;J[b+176>>2]=2147483647;J[b+180>>2]=2147483647;J[b+168>>2]=0;J[b+172>>2]=0;J[b+152>>2]=0;J[b+156>>2]=0;c=J[b+2920>>2];d=J[b+ -2924>>2];if((c|0)!=(d|0)){while(1){e=J[c>>2];if(e){d=J[e>>2];if(d){qc(pr(d));J[e>>2]=0}d=J[e+4>>2];if(d)qc(Ed(d));qc(e);d=J[b+2924>>2]}c=c+4|0;if((d|0)!=(c|0))continue;break}c=J[b+2920>>2]}J[b+2924>>2]=c;J[a+640>>2]=0;break a}if((b|0)==12288)break c;if((b|0)==16384)break b;if((b|0)!=20480)break a;C3(J[a+16>>2]);break a}H[J[J[a+20>>2]+4>>2]+24|0]=J[a+636>>2]&1;b=J[a+16>>2];e=J[a+20>>2];g=(J[a+636>>2]^-1)>>>8&1;d=bc-16|0;bc=d;c=nl(d+12|0);f=K[b+2892|0]?c:J[J[e+4>>2]+28>>2]?c:b+56|0;J[695492]=0;ha(2280, -b|0,e|0,f|0,g|0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){Ed(c);bc=d+16|0;break e}a=Z()|0;Ed(c);ba(a|0);B()}break a}f:{b=J[a+16>>2];e=J[b+1600>>2];if(!e)break f;d=J[b+1584>>2];g=J[b+1596>>2];f=e-1|0;c=g+f|0;c=J[J[d+(c>>>8&16777212)>>2]+((c&1023)<<2)>>2];J[b+1600>>2]=f;f=J[b+1588>>2];if((((d|0)!=(f|0)?(f-d<<8)-1|0:0)-(e+g|0)|0)+1>>>0>=2048){qc(J[f-4>>2]);J[b+1588>>2]=J[b+1588>>2]-4}g:{if(J[c+8>>2]){e=J[c+8>>2];J[c+8>>2]=0;gc[J[J[c>>2]+12>>2]](c)|0;c=J[b+1576>>2];if(c){gc[J[J[c>>2]+12>>2]](c)|0;J[b+ -1576>>2]=0}c=rc(20);J[695492]=0;H[c+16|0]=0;J[c+12>>2]=0;J[c+8>>2]=e;J[c+4>>2]=1;J[c>>2]=349852;e=J[695492];J[695492]=0;if((e|0)==1)break g;J[b+1576>>2]=c;vC(b)}break f}a=Z()|0;qc(c);ba(a|0);B()}break a}b=J[a+16>>2];C3(b);c=J[b+1576>>2];if(c){gc[J[J[c>>2]+12>>2]](c)|0;J[b+1576>>2]=0}}J[a+632>>2]=0;return 0}function Lha(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;a=bc-256|0;bc=a;J[a+248>>2]=c;J[a+252>>2]=b;i=Pk(d);ds(a+196|0,d,a+247|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>> -2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6531,a+252|0,a+248|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621, -b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+252|0;g=$(6532,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=So(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2617936);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0; -if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=ha(6623,c|0,J[a+180>>2],e|0,i|0)|0;d=J[695492];J[695492]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+252|0,a+248|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>> -2];ad(b);ad(a+196|0);bc=a+256|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function Gha(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;a=bc-256|0;bc=a;J[a+248>>2]=c;J[a+252>>2]=b;i=Pk(d);ds(a+196|0,d,a+247|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6531, -a+252|0,a+248|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b; -J[a+180>>2]=d+c}J[695492]=0;d=a+252|0;g=$(6532,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=So(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2617936);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=ha(6628,c|0, -J[a+180>>2],e|0,i|0)|0;d=J[695492];J[695492]=0;f:{if((d|0)==1)break f;I[f>>1]=c;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+252|0,a+248|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];ad(b);ad(a+196|0);bc=a+256|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function Eha(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;a=bc-256|0;bc=a;J[a+248>>2]=c;J[a+252>>2]=b;i= -Pk(d);ds(a+196|0,d,a+247|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6531,a+252|0,a+248|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127; -if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+252|0;g=$(6532,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=So(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2617936);h=J[695492];J[695492]=0;if((h|0)==1)break d; -if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=ha(6629,c|0,J[a+180>>2],e|0,i|0)|0;d=J[695492];J[695492]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+252|0,a+248|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];ad(b);ad(a+196|0);bc=a+256|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function Dha(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;a=bc-256|0;bc=a;J[a+248>>2]=c;J[a+252>>2]=b;i=Pk(d);ds(a+196|0,d,a+247|0);b=Se(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[695492]=0;da(6621,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>> -2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[695492]=0;d=aa(6531,a+252|0,a+248|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;da(6621,b|0,d<<1);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[695492]=0;da(6621,b|0,d|0);d=J[695492];J[695492]= -0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[695492]=0;d=a+252|0;g=$(6532,d|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break d;J[695492]=0;g=So(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2617936);h=J[695492];J[695492]=0;if((h|0)==1)break d;if(g)break c;J[695492]=0;$(6534,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e; -J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[695492]=0;c=ha(6630,c|0,J[a+180>>2],e|0,i|0)|0;d=J[695492];J[695492]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[695492]=0;Ah(a+196|0,a+16|0,J[a+12>>2],e);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=aa(6531,a+252|0,a+248|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];ad(b);ad(a+196|0);bc=a+256|0;break a}}c=Z()|0;ad(b);ad(a+196|0);ba(c|0);B()}return c|0}function v$(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=bc-128|0;bc= -e;a:{if(J[a+292>>2])break a;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break a;Hd(a)}b:{if(J[a+172>>2]==-1){b=0;break b}f=Ff(a,e+12|0);c:{while(1){if(!Xq(J[a+360>>2],f))break c;d:{if((g|0)<101){g=g+1|0;break d}g=0;if(J[a+292>>2])break d;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break d;Hd(a)}e:{if(J[e+12>>2]==1){H[(e+16|0)+d|0]=f;d=d+1|0;break e}d=Pi((e+16|0)+d|0,f)+d|0}b=J[a+36>>2];c=J[b+16>>2];f:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break f}J[b+32>>2]=J[b+32>>2]+1}i=b;b=c+ -J[e+12>>2]|0;J[i+16>>2]=b;if(K[b|0]==37)Od(a);f=Ff(a,e+12|0);if(!f){g:{if(J[a+292>>2])break g;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break g;Hd(a)}if(J[a+172>>2]==-1){b=0;break b}g=0;f=Ff(a,e+12|0)}if((d|0)<100)continue;break}b=0;h=d<<1;c=gc[J[659450]](h)|0;if(!c){ke(a,0);break b}b=tc(c,e+16|0,d);if(Xq(J[a+360>>2],f))while(1){h:{if((g|0)<101){g=g+1|0;break h}i:{if(J[a+292>>2])break i;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break i;Hd(a)}g=0;if(J[a+172>>2]!=-1)break h;b=0;gc[J[659451]](c); -break b}j:{if((d+10|0)<=(h|0)){b=c;break j}if(!(K[a+362|0]&8|(h|0)<50001)){k:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break k;J[a+84>>2]=110;J[e+4>>2]=7229;J[e>>2]=6556;Cc(0,0,0,a,0,1,110,3,7229,0,0,0,32761,e);J[a+12>>2]=0;if(J[a+288>>2])break k;J[a+212>>2]=1}b=0;gc[J[659451]](c);break b}h=h<<1;b=gc[J[659452]](c,h)|0;if(b)break j;b=0;ke(a,0);gc[J[659451]](c);break b}l:{if(J[e+12>>2]==1){H[b+d|0]=f;d=d+1|0;break l}d=Pi(b+d|0,f)+d|0}c=J[a+36>>2];f=J[c+16>>2];m:{if(K[f|0]==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>> -2]+1;break m}J[c+32>>2]=J[c+32>>2]+1}i=c;c=f+J[e+12>>2]|0;J[i+16>>2]=c;if(K[c|0]==37)Od(a);f=Ff(a,e+12|0);c=b;if(Xq(J[a+360>>2],f))continue;break}H[b+d|0]=0;break b}if(!d){b=0;break b}b=il(e+16|0,d)}bc=e+128|0;return b}function VQa(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;g=bc-128|0;bc=g;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,d,817588,0);break a}c:{d=J[d+116>>2];if((gc[J[J[d>> -2]+12>>2]](d)|0)==10){d:{if(c){e=c-1|0;if(J[(e<<4)+b>>2]==4)break d}d=-1;a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,819325,0);break a}if((c|0)>=2){d=J[J[J[a+28>>2]+116>>2]+12>>2];if(!d)break c;if((gc[J[J[d>>2]+28>>2]](d)|0)!=(e|0))break c;c=c-2|0;f=c>>>0>=31?31:c;d=0;while(1){c=(d<<4)+b|0;i=J[c>>2];if(i-3>>>0>=4294967294){j=(d<<2)+g|0;h=((i|0)==1?+J[c+8>>2]:O[c+8>>3])*65536;f:{if(R(h)<2147483648){c=~~h;break f}c=-2147483648}J[j>> -2]=c}c=(d|0)!=(f|0);d=d+1|0;if(c)continue;break}tc(J[a+28>>2]+124|0,g,128);c=J[a+8>>2];gc[J[J[c>>2]+116>>2]](c,J[a+28>>2])}b=zZ(J[a+20>>2],J[((e<<4)+b|0)+8>>2]);if(!b)break a;c=J[a+28>>2];a=J[c+380>>2];if(a)gc[J[J[a>>2]+4>>2]](a);J[c+380>>2]=b;break a}d=J[J[a+28>>2]+116>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)!=(c|0)){d=-1;a=J[a+108>>2];g:{if(!a)break g;a=J[a+4>>2];if(J[a+8>>2]==13)break g;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,819560,0);break a}d=0;f=J[a+28>>2];e=J[f+380>>2];if(e)gc[J[J[e>>2]+ -4>>2]](e);J[f+380>>2]=0;if((c|0)>0){c=c-1|0;e=c>>>0>=31?31:c;while(1){c=(d<<4)+b|0;f=J[c>>2];if(f-3>>>0>=4294967294){i=(d<<2)+g|0;h=((f|0)==1?+J[c+8>>2]:O[c+8>>3])*65536;h:{if(R(h)<2147483648){c=~~h;break h}c=-2147483648}J[i>>2]=c}c=(d|0)!=(e|0);d=d+1|0;if(c)continue;break}}tc(J[a+28>>2]+124|0,g,128);b=J[a+8>>2];gc[J[J[b>>2]+116>>2]](b,J[a+28>>2]);break a}d=-1;a=J[a+108>>2];i:{if(!a)break i;a=J[a+4>>2];if(J[a+8>>2]==13)break i;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,819560,0)}bc=g+128|0}function JRa(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;g=bc-128|0;bc=g;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,d,817588,0);break a}c:{d=J[d+120>>2];if((gc[J[J[d>>2]+12>>2]](d)|0)==10){d:{if(c){e=c-1|0;if(J[(e<<4)+b>>2]==4)break d}d=-1;a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,819811,0);break a}if((c|0)>=2){d=J[J[J[a+ -28>>2]+120>>2]+12>>2];if(!d)break c;if((gc[J[J[d>>2]+28>>2]](d)|0)!=(e|0))break c;c=c-2|0;f=c>>>0>=31?31:c;d=0;while(1){c=(d<<4)+b|0;i=J[c>>2];if(i-3>>>0>=4294967294){j=(d<<2)+g|0;h=((i|0)==1?+J[c+8>>2]:O[c+8>>3])*65536;f:{if(R(h)<2147483648){c=~~h;break f}c=-2147483648}J[j>>2]=c}c=(d|0)!=(f|0);d=d+1|0;if(c)continue;break}tc(J[a+28>>2]+252|0,g,128);c=J[a+8>>2];gc[J[J[c>>2]+120>>2]](c,J[a+28>>2])}b=zZ(J[a+20>>2],J[((e<<4)+b|0)+8>>2]);if(!b)break a;c=J[a+28>>2];a=J[c+384>>2];if(a)gc[J[J[a>>2]+4>>2]](a); -J[c+384>>2]=b;break a}d=J[J[a+28>>2]+120>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)!=(c|0)){d=-1;a=J[a+108>>2];g:{if(!a)break g;a=J[a+4>>2];if(J[a+8>>2]==13)break g;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,820122,0);break a}d=0;f=J[a+28>>2];e=J[f+384>>2];if(e)gc[J[J[e>>2]+4>>2]](e);J[f+384>>2]=0;if((c|0)>0){c=c-1|0;e=c>>>0>=31?31:c;while(1){c=(d<<4)+b|0;f=J[c>>2];if(f-3>>>0>=4294967294){i=(d<<2)+g|0;h=((f|0)==1?+J[c+8>>2]:O[c+8>>3])*65536;h:{if(R(h)<2147483648){c=~~h;break h}c=-2147483648}J[i>>2]= -c}c=(d|0)!=(e|0);d=d+1|0;if(c)continue;break}}tc(J[a+28>>2]+252|0,g,128);b=J[a+8>>2];gc[J[J[b>>2]+120>>2]](b,J[a+28>>2]);break a}d=-1;a=J[a+108>>2];i:{if(!a)break i;a=J[a+4>>2];if(J[a+8>>2]==13)break i;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,820122,0)}bc=g+128|0}function B7(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;i=bc-16|0;bc=i;f=!a;a:{if(f)break a;b:switch((f?-1:J[a+8>>2])-1|0){case 0:f=0;e=bc-16|0;bc=e;j=!a;c:{if(j|((j?-1:J[a+8>>2])|0)!=1)break c;xf(a,e+12|0,e+ -8|0,0);c=uh(J[e+12>>2],J[e+8>>2],32);if(!c)break c;if(!(!c|!a|(a|0)==(c|0))){J[c+20>>2]=J[a+20>>2];J[c+24>>2]=J[a+24>>2]}J[e+4>>2]=0;J[e>>2]=-1;b=a?J[a+40>>2]:0;m=a?J[a+12>>2]:-1;n=c?J[c+40>>2]:0;j=c?J[c+12>>2]:-1;a=J[e+8>>2];d:{if((a|0)<=0)break d;f=J[e+12>>2];if((f|0)<=0)break d;while(1){if((f|0)>0){k=n+(P(g,j)<<2)|0;o=b+(P(g,m)<<2)|0;a=0;while(1){J[k+(a<<2)>>2]=J[e+((J[o+(a>>>3&536870908)>>2]>>>(a^-1)&1)<<2)>>2];a=a+1|0;f=J[e+12>>2];if((a|0)<(f|0))continue;break}a=J[e+8>>2]}g=g+1|0;if((g|0)<(a| -0))continue;break}}f=c}bc=e+16|0;b=f;break a;case 1:a=D7(a,1);J[i+12>>2]=a;b=yD(a);wd(i+12|0);break a;case 3:a=C7(a,1);J[i+12>>2]=a;b=yD(a);wd(i+12|0);break a;case 7:b=yD(a);break a;case 15:a=E7(a);J[i+12>>2]=a;b=yD(a);wd(i+12|0);break a;case 23:d=bc-32|0;bc=d;f=!a;e:{if(f)break e;xf(a,d+28|0,d+24|0,d+20|0);if(J[d+20>>2]!=32)break e;m=f?0:J[a+40>>2];n=a?J[a+12>>2]:-1;b=QM(J[d+28>>2],J[d+24>>2],24);if(b)j=J[b+40>>2];else j=0;f=b?J[b+12>>2]:-1;h=J[d+24>>2];f:{if((h|0)<=0)break f;c=J[d+28>>2];if((c| -0)<=0)break f;while(1){if((c|0)>0){o=m+(P(g,n)<<2)|0;h=(P(f,g)<<2)+j|0;l=0;while(1){p=J[(l<<2)+o>>2];e=d+12|0;k=d+8|0;c=d+16|0;if(c)J[c>>2]=p>>>24;if(e)J[e>>2]=p>>>16&255;if(k)J[k>>2]=p>>>8&255;H[h|0]=J[d+16>>2];H[h+1|0]=J[d+12>>2];H[h+2|0]=J[d+8>>2];h=h+3|0;c=J[d+28>>2];l=l+1|0;if((c|0)>(l|0))continue;break}h=J[d+24>>2]}g=g+1|0;if((g|0)<(h|0))continue;break}}if(!(!b|!a|(a|0)==(b|0))){J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2]}if(!(!b|!a|(a|0)==(b|0)))J[b+28>>2]=J[a+28>>2]}bc=d+32|0;break a;case 31:break b; -default:break a}b=wf(0,a)}bc=i+16|0;return b}function XWa(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=Q(f);g=Q(g);var h=0,i=0,j=0,k=0;k=bc-32|0;bc=k;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1065353216;J[a+32>>2]=0;J[a+36>>2]=0;J[a+76>>2]=0;J[a+80>>2]=1;J[a+68>>2]=0;J[a+72>>2]=0;J[a+60>>2]=1056964608;J[a+64>>2]=1065353216;I[a+56>>1]=0;J[a+48>>2]=1065353216;J[a+52>>2]=1065353216;J[a+8>>2]=0;J[a+12>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=1;j=a+88|0;h=j;J[h>>2]=0;J[h+4>>2]=0;J[a+96>>2]=0;J[a+ -100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[695492]=0;h=$(4,24)|0;i=J[695492];J[695492]=0;if((i|0)==1){a=Z()|0;$j(j);ba(a|0);B()}j=a+80|0;i=h+24|0;J[a+140>>2]=i;J[a+132>>2]=h;J[h+16>>2]=0;J[h+20>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[a+136>>2]=i;wc(a+148|0,0,88);a:{h=a+164|0;if((h|0)!=(b|0)){i=J[b+4>>2];b=J[b>>2];J[695492]=0;ca(3240,h|0,b|0,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b:{if(e){b=a+ -188|0;if((b|0)!=(d|0)){c=J[d+4>>2];d=J[d>>2];J[695492]=0;ca(2367,b|0,d|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+84>>2]=1;J[695492]=0;e=Ka(3235,k|0,256,Q(f),Q(g))|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[a+88>>2]=J[e>>2];d=J[a+92>>2];if(d){b=J[a+96>>2];c=d;if((b|0)!=(c|0)){while(1){c=b-12|0;h=J[c>>2];if(h){J[b-8>>2]=h;qc(h)}b=c;if((d|0)!=(b|0))continue;break}c=J[a+92>>2]}J[a+96>>2]=d;qc(c);J[a+100>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0}J[a+92>>2]=J[e+4>>2];J[a+96>>2]=J[e+8>>2];J[a+100>>2]=J[e+ -12>>2];b=J[e+20>>2];J[a+104>>2]=J[e+16>>2];J[a+108>>2]=b;b=J[e+28>>2];J[a+112>>2]=J[e+24>>2];J[a+116>>2]=b;J[a+80>>2]=1;J[a+72>>2]=0;J[a+76>>2]=0;break b}break a}a=a+176|0;if((a|0)!=(c|0)){b=J[c+4>>2];c=J[c>>2];J[695492]=0;ca(3241,a|0,c|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[j>>2]=2}bc=k+32|0;return}a=Z()|0;Qe(j);ba(a|0);B()}function UWa(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=Q(f);g=Q(g);var h=0,i=0,j=0,k=0;k=bc-32|0;bc=k;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1065353216; -J[a+32>>2]=0;J[a+36>>2]=0;J[a+76>>2]=0;J[a+80>>2]=1;J[a+68>>2]=0;J[a+72>>2]=0;J[a+60>>2]=1056964608;J[a+64>>2]=1065353216;I[a+56>>1]=0;J[a+48>>2]=1065353216;J[a+52>>2]=1065353216;J[a+8>>2]=0;J[a+12>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=1;j=a+88|0;h=j;J[h>>2]=0;J[h+4>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[695492]=0;h=$(4,24)|0;i=J[695492];J[695492]=0;if((i|0)==1){a=Z()|0;$j(j);ba(a|0);B()}j= -a+80|0;i=h+24|0;J[a+140>>2]=i;J[a+132>>2]=h;J[h+16>>2]=0;J[h+20>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[a+136>>2]=i;wc(a+148|0,0,88);a:{h=a+200|0;if((h|0)!=(b|0)){i=J[b+4>>2];b=J[b>>2];J[695492]=0;ca(2384,h|0,b|0,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b:{if(e){b=a+224|0;if((b|0)!=(c|0)){d=J[c+4>>2];c=J[c>>2];J[695492]=0;ca(3247,b|0,c|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+84>>2]=1;J[695492]=0;e=Ka(3235,k|0,256,Q(f),Q(g))|0;b=J[695492];J[695492]=0;if((b|0)!= -1){J[a+88>>2]=J[e>>2];d=J[a+92>>2];if(d){b=J[a+96>>2];c=d;if((b|0)!=(c|0)){while(1){c=b-12|0;h=J[c>>2];if(h){J[b-8>>2]=h;qc(h)}b=c;if((d|0)!=(b|0))continue;break}c=J[a+92>>2]}J[a+96>>2]=d;qc(c);J[a+100>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0}J[a+92>>2]=J[e+4>>2];J[a+96>>2]=J[e+8>>2];J[a+100>>2]=J[e+12>>2];b=J[e+20>>2];J[a+104>>2]=J[e+16>>2];J[a+108>>2]=b;b=J[e+28>>2];J[a+112>>2]=J[e+24>>2];J[a+116>>2]=b;J[a+80>>2]=1;J[a+72>>2]=0;J[a+76>>2]=0;break b}break a}a=a+212|0;if((a|0)!=(d|0)){b=J[d+4>>2];c=J[d>>2]; -J[695492]=0;ca(3248,a|0,c|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[j>>2]=4}bc=k+32|0;return}a=Z()|0;Qe(j);ba(a|0);B()}function hCa(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=bc-32|0;bc=g;a:{b:{if(J[a+16>>2]){a=Kc(g+8|0,2377401,2375807,881,2385436,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;d=Z()|0;Fc(a);break b}if(Pj(a+20|0)){a=Kc(g+8|0,2378108,2375807,882,2385436,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;d=Z()| -0;Fc(a);break b}if((c|0)<0){a=Kc(g+8|0,2374889,2375807,883,2385436,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;d=Z()|0;Fc(a);break b}uj(a+16|0,b);J[a+84>>2]=d;J[a+80>>2]=c;e=J[a+16>>2];b=J[e+84>>2];d=(d|0)<0?(b|0)>0?b-c|0:d:d;f=J[e+16>>2];c:{if(!f){b=e;break c}while(1){b=f;f=J[b+84>>2];c=J[e+80>>2]+c|0;d=(d|0)<0?(f|0)>0?f-c|0:d:d;e=b;f=J[b+16>>2];if(f)continue;break}}d:{e:{f:{if(Pj(b+20|0)){if(J[b+84>>2]<(J[b+80>>2]+(c+d|0)|0))break e;break f}if((d|0)<0){if(K[b+8|0])break f; -break e}if((rV(J[b+72>>2],c,d)|0)!=(d|0))break e}H[a+8|0]=1;break d}PG(J[a+16>>2],J[a+80>>2],J[a+84>>2],5091,a)}md(a- -64|0,0);d=J[a+96>>2];if(d)while(1){b=J[d+8>>2];if(!J[b+8>>2])J[b+8>>2]=1;d=J[d>>2];if(d)continue;break}g:{h:{i:{b=J[a+116>>2];if(b)while(1){d=0;c=J[b+8>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break i;d=J[b+8>>2]}J[g+8>>2]=d;c=J[d+16>>2];j:{if((c|0)>=0)break j;e=J[a+84>>2];if((e|0)<=0)break j;c=e-J[d+12>>2]|0}e=J[d+24>>2];f=J[d+20>>2];h=J[a+ -16>>2];i=J[d+12>>2];j=J[a+80>>2];J[695492]=0;la(5090,h|0,i+j|0,c|0,f|0,e|0);c=J[695492];J[695492]=0;if((c|0)==1)break h;J[695492]=0;J[g+8>>2]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break g;if(!c){J[695492]=0;_(4987,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break g}b=J[b>>2];if(b)continue;break}bc=g+32|0;return}d=Z()|0;break b}d=Z()|0;vc(g+8|0);break b}ea(0)|0;yc();B()}ba(d|0)}B()}function mH(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(a){a:{if(J[a>>2]){b=J[a+12>>2];if(b){iA(b); -qc(J[a+12>>2]);J[a+12>>2]=0}b=J[a+16>>2];if(b){qc(b);J[a+16>>2]=0;J[a+20>>2]=0}qc(J[a- -64>>2]);J[a+60>>2]=0;J[a+64>>2]=0;break a}b=J[a+36>>2];if(b){qc(b);J[a+36>>2]=0}b=J[a+24>>2];if(b){qc(b);J[a+24>>2]=0;J[a+28>>2]=0}b=J[a+44>>2];if(!b)break a;qc(b);J[a+44>>2]=0;J[a+48>>2]=0}AW(J[a+196>>2]);b=J[a+156>>2];if(b){e=P(J[a+104>>2],J[a+108>>2]);if(e){while(1){iA(b);b=b+5644|0;c=c+1|0;if((e|0)!=(c|0))continue;break}b=J[a+156>>2]}qc(b);J[a+156>>2]=0}b=J[a+116>>2];if(b){c=J[a+112>>2];if(c){b=0;while(1){e= -J[J[a+116>>2]+(b<<3)>>2];if(e){qc(e);c=J[a+112>>2]}b=b+1|0;if(c>>>0>b>>>0)continue;break}b=J[a+116>>2]}J[a+112>>2]=0;qc(b);J[a+116>>2]=0}qc(J[a+136>>2]);J[a+120>>2]=0;J[a+136>>2]=0;qc(J[a+100>>2]);J[a+100>>2]=0;if(!(K[a+176|0]&2))qc(J[a+168>>2]);wc(a+80|0,0,100);lA(J[a+180>>2]);J[a+180>>2]=0;lA(J[a+184>>2]);J[a+180>>2]=0;d=J[a+188>>2];if(d){b=J[d+28>>2];if(b){qc(b);J[d+28>>2]=0}c=J[d+40>>2];if(c){if(J[d+36>>2])while(1){e=P(g,40);b=J[(e+c|0)+36>>2];if(b){qc(b);c=J[d+40>>2];J[(e+c|0)+36>>2]=0}b=J[(c+ -e|0)+16>>2];if(b){qc(b);c=J[d+40>>2];J[(e+c|0)+16>>2]=0}b=J[(c+e|0)+24>>2];if(b){qc(b);c=J[d+40>>2];J[(e+c|0)+24>>2]=0}g=g+1|0;if(g>>>0>2])continue;break}qc(c);J[d+40>>2]=0}qc(d)}J[a+188>>2]=0;Rm(J[a+72>>2]);J[a+72>>2]=0;Rm(J[a+76>>2]);J[a+76>>2]=0;f=J[a+200>>2];if(f){b:{if(!J[f+8>>2])break b;if(J[f+12>>2]){J[f+40>>2]=0;while(1){if(J[f+24>>2]>0)continue;break}}J[f+16>>2]=1;qc(J[f>>2]);c=J[f+28>>2];if(!c)break b;while(1){b=J[c+4>>2];qc(c);J[f+28>>2]=b;c=b;if(b)continue;break}}d=J[f+36>>2]; -if(d){g=J[d+4>>2];if((g|0)>0){b=0;while(1){e=J[d>>2]+P(b,12)|0;c=J[e+8>>2];if(c){gc[c|0](J[e+4>>2]);g=J[d+4>>2]}b=b+1|0;if((g|0)>(b|0))continue;break}}qc(J[d>>2]);qc(d)}qc(f)}J[a+200>>2]=0;qc(a)}}function kGa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a=J[J[a+4>>2]+12>>2];b=zc(1E3);H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;h=J[a>>2];k=J[a+4>>2];a:{if((h|0)==(k|0)){f=4;break a}c=b+4|0;f=4;e=1E3;while(1){d=J[h+4>>2];b:{c:{d:{e:{f:{g:{h:{i:{if(!b){f=0;e=1E3;c=zc(1E3);a=c;break i}j:{i=f+ -4|0;k:{if(i>>>0<=e>>>0){a=b;break k}while(1){e=e<<1;if(i>>>0>e>>>0)continue;break}a=Vd(b,e);if(!a)break j;c=a+f|0}H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;g=J[h>>2];break h}a=zc(e);c=tc(a,b,f);qc(b);c=c+f|0}H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;g=J[h>>2];if(!a)break g;i=f+4|0}f=f+8|0;if(f>>>0<=e>>>0)b=c+4|0;else{while(1){e=e<<1;if(f>>>0>e>>>0)continue;break}b=Vd(a,e);if(!b)break e;a=b;b=b+i|0}H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;j=O[h+8>>3]*100; -if(!(R(j)<2147483648))break f;c=~~j;break c}i=0;e=1E3;b=zc(1E3);d=b;break d}c=-2147483648;break c}d=zc(e);b=tc(d,a,i);qc(a);b=b+i|0}H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;j=O[h+8>>3]*100;l:{if(R(j)<2147483648){c=~~j;break l}c=-2147483648}if(d){f=i+4|0;a=d;break c}f=0;e=1E3;b=zc(1E3);a=b;break b}d=f+4|0;if(d>>>0<=e>>>0){b=b+4|0;break b}while(1){e=e<<1;if(d>>>0>e>>>0)continue;break}d=Vd(a,e);if(d){b=d+f|0;a=d;break b}d=tc(zc(e),a,f);qc(a);b=d+f|0;a=d}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]= -c>>>16;H[b+3|0]=c>>>24;c=K[h+27|0];d=c<<24>>24<0;l=d?J[h+16>>2]:h+16|0;c=d?J[h+20>>2]:c;i=c+4|0;m:{if(!a){d=0;e=i>>>0<=1E3?1E3:i;g=zc(e);b=g;break m}d=f+4|0;f=i+d|0;if(f>>>0<=e>>>0){g=b+4|0;b=a;break m}while(1){e=e<<1;if(f>>>0>e>>>0)continue;break}b=Vd(a,e);if(!b){b=zc(e);tc(b,a,d);qc(a)}g=b+d|0}H[g|0]=c;H[g+1|0]=c>>>8;H[g+2|0]=c>>>16;H[g+3|0]=c>>>24;f=d+i|0;c=tc(g+4|0,l,c)+c|0;h=h+40|0;if((k|0)!=(h|0))continue;break}}H[b|0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24;return b|0}function Cmb(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0;b=(b<<9)+a|0;e=b+65560|0;d=K[b+65561|0];c=L[(d<<2)+2637248>>1];a:{b:{if(d>>>0>=47){b=L[a+4>>1]-c|0;if(b<<16>>16>=0){c:{if(c>>>0>(b&65535)>>>0){b=c;break c}J[a>>2]=c+J[a>>2]}c=(d<<2)+2637250|0;break b}J[a>>2]=c+J[a>>2];break a}b=L[a+4>>1]-c|0;d:{if(c>>>0<=(b&65535)>>>0){b=c;break d}J[a>>2]=c+J[a>>2]}c=(d<<2)+2637251|0}H[e+1|0]=K[c|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;c=K[a+6|0]-1|0;H[a+6|0]=c;if(!(c&255)){Al(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}d= -K[e+3|0];c=L[(d<<2)+2637248>>1];e:{f:{if(d>>>0<=46){b=b-c|0;if(b<<16>>16>=0){g:{if(c>>>0>(b&65535)>>>0){b=c;break g}J[a>>2]=c+J[a>>2]}c=(d<<2)+2637250|0;break f}J[a>>2]=c+J[a>>2];break e}b=b-c|0;h:{if(c>>>0<=(b&65535)>>>0){b=c;break h}J[a>>2]=c+J[a>>2]}c=(d<<2)+2637251|0}H[e+3|0]=K[c|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;c=K[a+6|0]-1|0;H[a+6|0]=c;if(!(c&255)){Al(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}d=K[e+6|0];c=L[(d<<2)+2637248>>1];i:{j:{if(d>>>0<=46){b=b-c|0;if(b<<16>>16>=0){k:{if(c>>> -0>(b&65535)>>>0){b=c;break k}J[a>>2]=c+J[a>>2]}c=(d<<2)+2637250|0;break j}J[a>>2]=c+J[a>>2];break i}b=b-c|0;l:{if(c>>>0<=(b&65535)>>>0){b=c;break l}J[a>>2]=c+J[a>>2]}c=(d<<2)+2637251|0}H[e+6|0]=K[c|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;c=K[a+6|0]-1|0;H[a+6|0]=c;if(!(c&255)){Al(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}d=K[e+12|0];c=L[(d<<2)+2637248>>1];m:{if(d>>>0<=46){b=b-c|0;I[a+4>>1]=b;if(b<<16>>16>=0){n:{if(c>>>0>(b&65535)>>>0){b=c;break n}J[a>>2]=c+J[a>>2]}c=(d<<2)+2637250|0; -break m}J[a>>2]=c+J[a>>2];return}b=b-c|0;o:{if(c>>>0<=(b&65535)>>>0){b=c;break o}J[a>>2]=c+J[a>>2]}c=(d<<2)+2637251|0}H[e+12|0]=K[c|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;e=K[a+6|0]-1|0;H[a+6|0]=e;if(!(e&255)){Al(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}function $m(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,r=0,s=0,t=0,u=0,v=0;e=c?b+16|0:b;b=(b<<2)+a|0;b=J[(c?b+136|0:b+120|0)>>2];if(!b){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=52;gc[J[J[a>>2]>>2]](a)}if(!J[b+276>> -2]){c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=255;f=J[c+4>>2]-1|0;J[c+4>>2]=f;a:{if(f)break a;if(gc[J[c+12>>2]](a)|0)break a;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=196;f=J[c+4>>2]-1|0;J[c+4>>2]=f;b:{if(f)break b;if(gc[J[c+12>>2]](a)|0)break b;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}d=K[b+16|0];g=K[b+15|0];h=K[b+14|0];i=K[b+13|0];j=K[b+12|0];k=K[b+11|0];l=K[b+10|0];m=K[b+9|0];n=K[b+8|0];o=K[b+7|0];p=K[b+6|0];q=K[b+5|0];r=K[b+4|0];s=K[b+3|0];t=K[b+2|0];u=K[b+ -1|0];c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;v=f;f=d+(g+(h+((((((((((((t+u|0)+s|0)+r|0)+q|0)+p|0)+o|0)+n|0)+m|0)+l|0)+k|0)+j|0)+i|0)|0)|0)|0;g=f+19|0;H[v|0]=g>>>8;d=J[c+4>>2]-1|0;J[c+4>>2]=d;c:{if(d)break c;if(gc[J[c+12>>2]](a)|0)break c;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g;d=J[c+4>>2]-1|0;J[c+4>>2]=d;d:{if(d)break d;if(gc[J[c+12>>2]](a)|0)break d;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;e=J[c+4>>2]-1|0;J[c+4>>2]=e; -e:{if(e)break e;if(gc[J[c+12>>2]](a)|0)break e;c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}c=1;while(1){g=K[b+c|0];e=J[a+24>>2];d=J[e>>2];J[e>>2]=d+1;H[d|0]=g;d=J[e+4>>2]-1|0;J[e+4>>2]=d;f:{if(d)break f;if(gc[J[e+12>>2]](a)|0)break f;e=J[a>>2];J[e+20>>2]=25;gc[J[e>>2]](a)}c=c+1|0;if((c|0)!=17)continue;break}if(f){c=0;while(1){g=K[(b+c|0)+17|0];e=J[a+24>>2];d=J[e>>2];J[e>>2]=d+1;H[d|0]=g;d=J[e+4>>2]-1|0;J[e+4>>2]=d;g:{if(d)break g;if(gc[J[e+12>>2]](a)|0)break g;e=J[a>>2];J[e+20>>2]=25;gc[J[e>>2]](a)}c= -c+1|0;if(f>>>0>c>>>0)continue;break}}J[b+276>>2]=1}}function P8a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=bc-48|0;bc=f;a:{if(H[b+11|0]>=0){J[f+40>>2]=J[b+8>>2];g=J[b+4>>2];J[f+32>>2]=J[b>>2];J[f+36>>2]=g;break a}Re(f+32|0,J[b>>2],J[b+4>>2])}J[f>>2]=92;J[f+4>>2]=0;H[f+11|0]=1;J[695492]=0;J[f+20>>2]=47;J[f+24>>2]=0;H[f+31|0]=1;ca(2272,f+32|0,f|0,f+20|0);b=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){if(H[f+31|0]<0)qc(J[f+20>>2]);if(H[f+11|0]<0)qc(J[f>>2]);J[695492]= -0;h=a+8|0;i=xi(h,f+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;j=(a+12|0)==(i|0);if(!j)break g;J[695492]=0;g=$(4,20)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break h;break c}b=Z()|0;if(H[f+31|0]<0)qc(J[f+20>>2]);if(H[f+11|0]>=0)break b;qc(J[f>>2]);break b}J[695492]=0;J[g+4>>2]=1;J[g>>2]=347692;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=350092;H[g+16|0]=0;b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;qc(g);break b}b=J[J[g>>2]+20>>2];J[695492]=0;ha(b|0,g|0,c|0,d|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c; -i:{if(H[f+43|0]>=0){J[f+8>>2]=J[f+40>>2];b=J[f+36>>2];J[f>>2]=J[f+32>>2];J[f+4>>2]=b;break i}J[695492]=0;ca(15,f|0,J[f+32>>2],J[f+36>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break f}J[f+12>>2]=g;J[695492]=0;c=Xe(h,f+20|0,f);b=J[695492];J[695492]=0;if((b|0)==1)break e;if(!J[c>>2]){J[695492]=0;b=$(4,32)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;d=J[f+4>>2];J[b+16>>2]=J[f>>2];J[b+20>>2]=d;J[b+24>>2]=J[f+8>>2];J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[b+28>>2]=J[f+12>>2];J[b+8>>2]=J[f+20>>2];J[b>>2]=0; -J[b+4>>2]=0;J[c>>2]=b;d=J[J[h>>2]>>2];if(d){J[h>>2]=d;b=J[c>>2]}Ic(J[i>>2],b);J[a+16>>2]=J[a+16>>2]+1}if(H[f+11|0]>=0)break g;qc(J[f>>2])}if(H[f+43|0]<0)qc(J[f+32>>2]);bc=f+48|0;return j|0}b=Z()|0;break b}b=Z()|0;if(H[f+11|0]>=0)break b;qc(J[f>>2]);break b}b=Z()|0;break b}b=Z()|0}if(H[f+43|0]<0)qc(J[f+32>>2]);ba(b|0);B()}function hO(a){var b=0,c=0,d=0,e=0;a:{b:{c:{if((a|0)==1281){a=N9(1025);if(!a)break c;d=lE(a);ym(a);if(!d)break c;J[d>>2]=1281;if(J[d+4>>2]!=3|J[d+12>>2]!=3)break b;if(J[d+8>>2]!= -257)break a;a=zc(152);if(!a)break c;J[a+4>>2]=2627272;J[a+8>>2]=3;J[a+12>>2]=3;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=1;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=-1408749273;J[a+132>>2]=1073502748;J[a+120>>2]=0;J[a+124>>2]=1072693248;J[a+104>>2]=555253372;J[a+108>>2]=-1075389892;J[a+96>>2]=-706436221;J[a+100>>2]=-1076492743;J[a+88>>2]=0;J[a+92>>2]=1072693248;J[a+72>>2]=-1924145349;J[a+76>>2]=1073114775;b=a- -64|0;J[b>>2]=0;J[b+ -4>>2]=0;e=a+56|0;b=e;J[b>>2]=0;J[b+4>>2]=1072693248;J[a+24>>2]=0;J[a+28>>2]=1;J[a+144>>2]=-1408749273;J[a+148>>2]=-1075029476;J[a+112>>2]=-2046466017;J[a+116>>2]=1071705772;J[a+80>>2]=-1924145349;J[a+84>>2]=-1075417449;b=zc(152);if(!b)break c;J[b+4>>2]=2627272;J[b+8>>2]=3;J[b+12>>2]=3;wc(b+32|0,0,120);J[b+24>>2]=0;J[b+28>>2]=1;J[b+16>>2]=0;J[b+20>>2]=1;J[b>>2]=1;gO(b+56|0,e);d:{c=J[d+20>>2];if(!c)break d;if(!zm(c,0,a))break d;return 0}e:{c=J[d+36>>2];if(!c)break e;if(!zm(c,-1,b))break e;return 0}e= -J[d+24>>2];if(e){c=0;if(zm(e,0,a))break c}f:{c=J[d+40>>2];if(!c)break f;if(!zm(c,-1,b))break f;return 0}e=J[d+28>>2];if(e){c=0;if(zm(e,0,a))break c}g:{c=J[d+44>>2];if(!c)break g;if(!zm(c,-1,b))break g;return 0}e=J[d+32>>2];if(e){c=0;if(zm(e,0,a))break c}e=J[d+48>>2];if(e){c=0;if(zm(e,-1,b))break c}c=J[a>>2];J[a>>2]=c-1;if((c|0)<=1){gc[J[J[a+4>>2]>>2]](a);qc(a)}a=J[b>>2];J[b>>2]=a-1;if((a|0)>1)return d;gc[J[J[b+4>>2]>>2]](b);qc(b);return d}d=N9(a);if(!d)break c;b=lE(d);ym(d);if(!b)break c;if(a&255)J[b>> -2]=a;c=b}return c}fa(200910,198640,187,206585);B()}fa(201422,198640,188,206585);B()}function KQa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;b=bc-48|0;bc=b;J[b+32>>2]=13;J[b+16>>2]=13;J[b>>2]=13;J[a+24>>2]=2;a:{if(J[Bc(c,789716,b+32|0,0)>>2]==7){if(J[Bc(J[b+40>>2],796756,b+16|0,0)>>2]==1)J[a+24>>2]=J[b+24>>2];c=b+16|0;uc(c);Bc(J[b+40>>2],797732,c,0);if(J[b+16>>2]==4){c=rc(8);J[695492]=0;f=aa(3182,c|0,J[b+24>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[a+28>>2]=f}c=b+16|0;uc(c);Bc(J[b+40>> -2],798385,c,0);c=J[b+16>>2];if(c-3>>>0>=4294967294)O[a+120>>3]=(c|0)==1?+J[b+24>>2]:O[b+24>>3];c=b+16|0;uc(c);Bc(J[b+40>>2],799013,c,0);Bc(J[b+40>>2],799746,b,0);c=J[b+16>>2];b:{c:{if(c-3>>>0<=4294967293){if(J[b>>2]-3>>>0>=4294967294)break c;break b}d=((c|0)==1?+J[b+24>>2]:O[b+24>>3])*.001;if(!(d<0))break c;d=-d}c=J[b>>2];d:{if(c-3>>>0<4294967294)break d;e=((c|0)==1?+J[b+8>>2]:O[b+8>>3])*.001;if(!(e<0))break d;e=-e}if(!(!(d<1.9)|d==0))O[a+144>>3]=d;d=e!=0?d==0?e:d>e?e:d:d;if(d==0|!(d<1.9))break b; -O[a+128>>3]=d}c=b+16|0;uc(c);uc(b);Bc(J[b+40>>2],800532,c,0);c=J[b+16>>2];e:{if(c-3>>>0<4294967294)break e;d=((c|0)==1?+J[b+24>>2]:O[b+24>>3])*.001;d=d>0?-d:d;if(d==0|!(d>-1.9))break e;O[a+136>>3]=d}c=b+16|0;uc(c);f:{if(J[Bc(J[b+40>>2],801056,c,0)>>2]!=6)break f;c=J[b+24>>2];if(J[c+12>>2]<=0)break f;if(J[Mc(c,0,b,0)>>2]-3>>>0>=4294967294)O[a+88>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.001;uc(b);c=J[b+24>>2];if(J[c+12>>2]<2)break f;if(J[Mc(c,1,b,0)>>2]-3>>>0>=4294967294)O[a+96>>3]=(J[b>>2]==1?+J[b+8>> -2]:O[b+8>>3])*.001;uc(b);c=J[b+24>>2];if(J[c+12>>2]<3)break f;if(J[Mc(c,2,b,0)>>2]-3>>>0>=4294967294)O[a+104>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.001;uc(b);c=J[b+24>>2];if(J[c+12>>2]<4)break f;if(J[Mc(c,3,b,0)>>2]-3>>>0>=4294967294)O[a+112>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.001;uc(b)}uc(b+16|0)}uc(b+32|0);bc=b+48|0;return}a=Z()|0;qc(c);ba(a|0);B()}function yzb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=-1;d=J[b+8>>2];a:{if(d&7)break a;f=J[a+12>>2];b:{c:{c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c; -d=f>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;e=J[b+28>>2];J[b+28>>2]=e-1;d:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break d}if((Uc(b,d)|0)==-1)break a}c=-1;d=J[b+8>>2];if(d&7)break a;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=f>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;e=J[b+28>>2];J[b+28>>2]=e-1;e:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break e}if((Uc(b,d&255)|0)==-1)break a}c=-1;d=J[b+8>>2];if(d&7)break a;c=J[b+64>>2];if((c|0)>=0&(c| -0)<=J[b+60>>2])break c;d=f>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;e=J[b+28>>2];J[b+28>>2]=e-1;f:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break f}if((Uc(b,d&255)|0)==-1)break a}c=-1;d=J[b+8>>2];if(d&7)break a;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=f;break g}if((Uc(b,f&255)|0)==-1)break a}if(!J[a+12>>2])return 0;f=0;while(1){d=J[b+ -8>>2];if(d&7)break b;e=J[J[a+16>>2]+(f<<2)>>2];c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;h:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break h}c=-1;if((Uc(b,d&255)|0)==-1)break a}d=J[b+8>>2];if(d&7)break b;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;i:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break i}c=-1;if((Uc(b, -e&255)|0)==-1)break a}c=0;f=f+1|0;if(f>>>0>2])continue;break}break a}J[b+8>>2]=d|4}c=-1}return c|0}function ypb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if((c|0)!=21){Dc(a,1028,0,0);return 1028}c=K[d|0]|K[d+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[d+2|0]|K[d+3|0]<<8;h=(c<<8|c>>>8)&65535;i=K[d+4|0];c=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);j=c<<24|(c&65280)<<8|(c>>>8&65280| -c>>>24);c=K[d+9|0]|K[d+10|0]<<8|(K[d+11|0]<<16|K[d+12|0]<<24);k=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+13|0]|K[d+14|0]<<8|(K[d+15|0]<<16|K[d+16|0]<<24);l=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+17|0]|K[d+18|0]<<8|(K[d+19|0]<<16|K[d+20|0]<<24);m=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b:{if(K[a+114|0]){c=gc[J[a+152>>2]](52)|0;if(!c){Dc(a,1,0,0);c=1;break b}J[c+4>>2]=1056;J[c>>2]=1057;f=J[a+700>>2];c:{if(f){J[f+8>>2]=c;break c}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>> -2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;J[c+48>>2]=m;J[c+44>>2]=l;J[c+40>>2]=k;J[c+36>>2]=j;H[c+32|0]=i;I[c+30>>1]=h;I[c+28>>1]=g}c=a8(a,g,h,i,j,k,l,m)}d:{if(c)break d;c=0;if(!K[a+112|0])break d;c=gc[J[b+4>>2]](a,b,e)|0;if(c)break d;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;b=K[d+2|0]|K[d+3|0]<<8;I[a+34>>1]=b<<8|b>>>8;H[a+36|0]=K[d+4|0];b=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);J[a+40>>2]=b<<24|(b&65280)<< -8|(b>>>8&65280|b>>>24);b=K[d+9|0]|K[d+10|0]<<8|(K[d+11|0]<<16|K[d+12|0]<<24);J[a+44>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+13|0]|K[d+14|0]<<8|(K[d+15|0]<<16|K[d+16|0]<<24);J[a+48>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+17|0]|K[d+18|0]<<8|(K[d+19|0]<<16|K[d+20|0]<<24);J[b+52>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=0}return c|0}Dc(a,1029,0,0);return 1029}function R3(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=1;b=J[a+336>>2];a:{b:{if((b|0)==1){b=J[a+340>>2];J[a+ -356>>2]=J[b+28>>2];c=J[b+32>>2];J[a+360>>2]=c;J[b+64>>2]=1;J[b+56>>2]=1;J[b+60>>2]=1;J[b+72>>2]=1;J[b+68>>2]=J[b+36>>2];f=b;b=J[b+12>>2];c=(c>>>0)%(b>>>0)|0;J[f+76>>2]=c?c:b;J[a+364>>2]=1;J[a+368>>2]=0;break b}if(b-5>>>0<=4294967291){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=27;J[J[a>>2]+28>>2]=4;gc[J[J[a>>2]>>2]](a)}b=P(J[a+424>>2],J[a+312>>2]);J[a+356>>2]=((b+J[a+28>>2]|0)-1|0)/(b|0);b=P(J[a+424>>2],J[a+316>>2]);b=((b+J[a+32>>2]|0)-1|0)/(b|0)|0;J[a+364>>2]=0;J[a+360>>2]=b;if(J[a+336>>2]<=0)break a;h=a+ -368|0;while(1){b=J[((e<<2)+a|0)+340>>2];d=J[b+8>>2];J[b+56>>2]=d;g=J[b+12>>2];J[b+60>>2]=g;c=P(d,g);J[b+64>>2]=c;J[b+68>>2]=P(d,J[b+36>>2]);f=M[b+28>>2]%(d>>>0)|0;J[b+72>>2]=f?f:d;f=b;b=M[b+32>>2]%(g>>>0)|0;J[f+76>>2]=b?b:g;if((c+J[a+364>>2]|0)>=11){b=J[a>>2];J[b+20>>2]=14;gc[J[b>>2]](a)}c:{if((c|0)<=0)break c;d=0;b=c;g=b&3;if(g)while(1){f=J[a+364>>2];J[a+364>>2]=f+1;J[((f<<2)+a|0)+368>>2]=e;b=b-1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(c>>>0<4)break c;while(1){c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<< -2)+h>>2]=e;c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=b-5|0;b=b-4|0;if(c>>>0<4294967294)continue;break}}d=J[a+336>>2];e=e+1|0;if((d|0)>(e|0))continue;break}if((d|0)<=0)break a}b=0;while(1){e=J[((b<<2)+a|0)+340>>2];if(!J[e+80>>2]){c=J[e+16>>2];if(!(J[((c<<2)+a|0)+164>>2]?c>>>0<=3:0)){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=54;gc[J[J[a>>2]>>2]](a)}i=e,j=tc(gc[J[J[a+4>>2]>>2]](a,1,132)|0,J[((c<<2)+a|0)+164>> -2],132),J[i+80>>2]=j;d=J[a+336>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}}gc[J[J[a+464>>2]>>2]](a);gc[J[J[a+448>>2]>>2]](a);J[J[a+456>>2]>>2]=J[J[a+448>>2]+4>>2]}function J4(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;m=K[b+7|0]&254|K[b+6|0]<<8;a:{if(!m)break a;g=J[c>>2]+((d|0)!=0)|0;if(g>>>0>65535)break a;p=J[a+508>>2]+J[a+512>>2]|0;f=m>>>1|0;q=f>>>0<=1?1:f;r=f-1|0;l=b+14|0;f=(b+m|0)+16|0;b:{c:{if(d){while(1){b=f;i=K[b|0]<<8|K[b+1|0];g=g>>>0>i>>>0?g:i;h=K[l+1|0]| -K[l|0]<<8;s=(i|0)==65535&(h|0)==65535&n>>>0>=r>>>0;f=b+2|0;l=l+2|0;j=b+m|0;k=j+m|0;t=k+2|0;d:{while(1){if(g>>>0>h>>>0)break d;b=K[j|0]|K[j+1|0]<<8;e=K[k+1|0]|K[k|0]<<8;o=(e|0)!=0&s&e+t>>>0>p>>>0;b=o?1:(b<<8|b>>>8)<<16>>16;e:{f:{e=o?0:e;if(e){if((e|0)==65535)break d;e=(e+k|0)+(g-i<<1)|0;if(e>>>0>p>>>0)break d;e=K[e+1|0]|K[e|0]<<8;if(!e){b=g;break e}e=b+e&65535;if(e>>>0>2])break f;b=g;break e}o=b+g|0;e=o&65535;if(e>>>0>2])break f;e=b+h|0;if(!((e|0)<0|(o|0)>=0)){b=0-b|0;break e}if((e| -0)<65536|(o|0)>65535)break d;b=65536-b|0;break e}b=g;if(e)break c}g=b+1|0;if(b>>>0<=65534)continue;break}e=0;g=b;break b}n=n+1|0;if((q|0)!=(n|0))continue;break}e=0;break c}g:{h:{i:{j:{k:{while(1){k=K[f+1|0]|K[f|0]<<8;if(k>>>0>g>>>0)break a;g=g>>>0>k>>>0?g:k;b=f+m|0;i=b+m|0;l:{h=K[l+1|0]|K[l|0]<<8;if(!((k|0)==65535&(h|0)==65535&n>>>0>=r>>>0)){if(g>>>0>h>>>0)break l;h=K[i+1|0]|K[i|0]<<8;if((h|0)==65535)break l;if(!h)break k;f=(h+i|0)+(g-k<<1)|0;f=K[f|0]<<8|K[f+1|0];if(f)break h;break c}if(g>>>0>h>>> -0)break l;j=K[i+1|0]|K[i|0]<<8;h=(j|0)!=0&j+(i+2|0)>>>0>p>>>0;j=h?0:j;if((j|0)==65535)break l;if(!j)break j;f=(i+j|0)+(g-k<<1)|0;f=K[f|0]<<8|K[f+1|0];if(!f)break c;b=f+(h?1:K[b+1|0]|K[b|0]<<8)|0;break g}f=f+2|0;l=l+2|0;n=n+1|0;if((q|0)!=(n|0))continue;break}break c}a=K[b+1|0]|K[b|0]<<8;break i}a=h?1:K[b+1|0]|K[b|0]<<8}return a+g&65535}b=f+(K[b+1|0]|K[b|0]<<8)|0}b=b&65535;e=b>>>0>2]?b:0}if(!d)break a}J[c>>2]=g}return e}function X2(a){var b=0,c=0,d=0;c=J[a+480>>2];a=gc[J[J[a+4>>2]>>2]](a,1, -2044)|0;b=a+1020|0;J[c+40>>2]=b;J[a+1016>>2]=-1;J[a+1020>>2]=0;J[a+1024>>2]=1;J[a+1028>>2]=2;J[a+1032>>2]=3;J[a+1036>>2]=4;J[a+1008>>2]=-3;J[a+1012>>2]=-2;J[a+1040>>2]=5;J[a+1044>>2]=6;J[a+1E3>>2]=-5;J[a+1004>>2]=-4;J[a+1048>>2]=7;J[a+1052>>2]=8;J[a+992>>2]=-7;J[a+996>>2]=-6;J[a+1056>>2]=9;J[a+1060>>2]=10;J[a+984>>2]=-9;J[a+988>>2]=-8;J[a+1064>>2]=11;J[a+1068>>2]=12;J[a+976>>2]=-11;J[a+980>>2]=-10;J[a+1072>>2]=13;J[a+1076>>2]=14;J[a+968>>2]=-13;J[a+972>>2]=-12;J[a+1080>>2]=15;J[a+1084>>2]=16;J[a+ -960>>2]=-15;J[a+964>>2]=-14;J[a+956>>2]=-16;J[a+1088>>2]=16;J[a+1092>>2]=17;J[a+1096>>2]=17;J[a+948>>2]=-17;J[a+952>>2]=-16;J[a+1100>>2]=18;J[a+940>>2]=-18;J[a+944>>2]=-17;J[a+1104>>2]=18;J[a+1108>>2]=19;J[a+932>>2]=-19;J[a+936>>2]=-18;J[a+924>>2]=-20;J[a+928>>2]=-19;J[a+1112>>2]=19;J[a+1116>>2]=20;J[a+1120>>2]=20;J[a+1124>>2]=21;J[a+916>>2]=-21;J[a+920>>2]=-20;J[a+1128>>2]=21;J[a+1132>>2]=22;J[a+908>>2]=-22;J[a+912>>2]=-21;J[a+1136>>2]=22;J[a+1140>>2]=23;J[a+900>>2]=-23;J[a+904>>2]=-22;J[a+1144>> -2]=23;J[a+1148>>2]=24;J[a+892>>2]=-24;J[a+896>>2]=-23;J[a+1152>>2]=24;J[a+1156>>2]=25;J[a+888>>2]=-24;J[a+1160>>2]=25;J[a+884>>2]=-25;J[a+1164>>2]=26;J[a+880>>2]=-25;J[a+1168>>2]=26;J[a+876>>2]=-26;J[a+1172>>2]=27;J[a+872>>2]=-26;J[a+1176>>2]=27;J[a+868>>2]=-27;J[a+1180>>2]=28;J[a+864>>2]=-27;J[a+1184>>2]=28;J[a+860>>2]=-28;J[a+1188>>2]=29;J[a+856>>2]=-28;J[a+1192>>2]=29;J[a+852>>2]=-29;J[a+1196>>2]=30;J[a+848>>2]=-29;J[a+1200>>2]=30;J[a+844>>2]=-30;J[a+1204>>2]=31;J[a+840>>2]=-30;J[a+1208>>2]=31; -J[a+836>>2]=-31;J[a+832>>2]=-31;d=48;while(1){a=d<<2;J[a+b>>2]=32;J[b-a>>2]=-32;c=a|4;J[c+b>>2]=32;J[b-c>>2]=-32;c=a|8;J[c+b>>2]=32;J[b-c>>2]=-32;a=a|12;J[a+b>>2]=32;J[b-a>>2]=-32;d=d+4|0;if((d|0)!=256)continue;break}}function lua(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,C=0,D=0,E=0,F=0,G=0;m=bc-32|0;bc=m;e=c-1|0;g=(e+L[b+8>>1]>>>0)/(c>>>0)|0;e=(e+L[b+10>>1]>>>0)/(c>>>0)|0;a:{if(!d)break a;h=J[d>>2];b:{if((h|0)< -0)break b;i=J[d+4>>2];if((i|0)<0)break b;f=e;e=J[d+8>>2];if((f|0)<(e|0))break b;f=g;g=J[d+12>>2];if((f|0)>=(g|0))break a}a=Kc(m+8|0,2378129,2373889,879,2412872,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0);B()}B()}if(!K[2761216]){H[2761216]=1;d=1;while(1){J[(d<<2)+2760192>>2]=65536/(d>>>0);f=d+1|0;J[(f<<2)+2760192>>2]=65536/(f>>>0);f=d+2|0;J[(f<<2)+2760192>>2]=65536/(f>>>0);d=d+3|0;if((d|0)!=256)continue;break}}d=J[a+20>>2];if(d)qc(d);J[a+16>>2]=0;J[a+20>>2]= -0;d=e-h|0;I[a+12>>1]=d;I[a+10>>1]=d;e=g-i|0;I[a+8>>1]=e;k=d&65535;n=e&65535;d=P(k,n);if(d){j=rc((E=-1,F=Dzb(d,0,3,0),G=fc,G?E:F));J[a+16>>2]=j;J[a+20>>2]=j}if(!(!n|!k)){f=P(c,i);o=L[b+12>>1];p=L[b+8>>1];q=(f|0)>=0?p>>>0>f>>>0?J[b+16>>2]+P(P(f,o),3)|0:0:0;C=P(c,h);w=P(k,3);x=L[b+10>>1];D=P(P(c,o),3);while(1){l=0;e=C;r=c+f|0;y=(p|0)>(r|0)?r:p;c:{if((y|0)<=(f|0)){wc(j,0,w);break c}while(1){a=0;d=0;g=0;s=f;t=q;b=0;h=0;i=0;d:{e:{u=c+e|0;z=(x|0)>(u|0)?u:x;if((z|0)<=(e|0))break e;while(1){d=e;while(1){g= -a;a=a+1|0;v=P(d,3)+t|0;b=K[v|0]+b|0;h=K[v+1|0]+h|0;i=K[v+2|0]+i|0;d=d+1|0;if((z|0)>(d|0))continue;break}t=P(o,3)+t|0;s=s+1|0;if((y|0)>(s|0))continue;break}if((g|0)<=254){d=b;g=h;break e}d=(b|0)/(a|0)|0;b=(h|0)/(a|0)|0;a=(i|0)/(a|0)|0;break d}a=J[(a<<2)+2760192>>2];d=P(a,d)+32768>>>16|0;b=P(a,g)+32768>>>16|0;a=P(a,i)+32768>>>16|0}e=P(l,3)+j|0;H[e+1|0]=b;H[e+2|0]=a;H[e|0]=d;e=u;l=l+1|0;if((l|0)!=(k|0))continue;break}}j=j+w|0;q=q+D|0;f=r;A=A+1|0;if((A|0)!=(n|0))continue;break}}bc=m+32|0}function Bt(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0;a:{b:{if(!a)break b;e=J[a+64>>2];if(!e)break a;b=2;c:{d:{e:{f:{g:{h:{i:{c=J[a+68>>2];c=J[(c?c:e)+4>>2];switch(c-1|0){case 1:case 17:break a;case 14:case 15:case 16:case 18:case 19:break c;case 9:case 13:break d;case 10:case 11:break e;case 8:case 12:break f;case 3:case 4:case 5:case 6:case 7:break g;case 2:break h;case 0:break i;default:break b}}return(J[a+16>>2]-2&-3?1:15)|0}b=0;j:{if(!e)break j;a=1;b=0;if(J[e+4>>2]-3>>>0>1)break j;b=J[e+40>>2];k:{if(!b)break k;while(1){l:{a= -0;m:switch(K[b|0]){case 0:break l;case 9:case 10:case 13:case 32:break m;default:break k}b=b+1|0;continue}break}a=1}b=a}if(!b)return 3;n:{o:{if(!(!e|J[e+4>>2]!=1))while(1){a=GJ(e,14964,14838);p:{if(!a)break p;c=0;q:{r:{s:{t:{b=J[a+4>>2]-2|0;if(b)if((b|0)==14)break t;else break s;b=J[a+12>>2];if(b){if(!(J[b+24>>2]|J[b+4>>2]-3>>>0>1)){b=J[b+40>>2];if(!b)break s;a=b;while(1){d=a;a=a+1|0;if(K[d|0])continue;break}a=d-b|0;if((a|0)<0)break s;c=gc[J[659450]](a+1|0)|0;if(!c)break r;d=a;a=tc(c,b,a);H[d+a|0]= -0;break q}c=xw(J[a+32>>2],b);if(c)break s}a=gc[J[659450]](1)|0;if(!a)break r;H[a|0]=0;break q}b=J[a+48>>2];if(!b)break s;a=b;while(1){d=a;a=a+1|0;if(K[d|0])continue;break}a=d-b|0;if((a|0)<0)break s;c=gc[J[659450]](a+1|0)|0;if(!c)break r;c=tc(c,b,a);H[a+c|0]=0}a=c;break q}Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);a=0}b=a;if(!a)break p;d=13252;if((a|0)==13252){c=1;break o}while(1){f=K[a|0];if((f|0)==K[d|0]){c=1;d=d+1|0;a=a+1|0;if(f)continue;break o}break}d=2769;c=0;a=b;if((a|0)==2769)break o;while(1){f=K[a| -0];if((f|0)==K[d|0]){d=d+1|0;a=a+1|0;if(f)continue;break o}break}gc[J[659451]](b)}e=J[e+20>>2];if(e)continue;break}c=-1;break n}gc[J[659451]](b)}return(c?14:13)|0}return c|0}return 9}return c|0}return 10}return 0}b=-1}return b|0}function tW(a,b,c){var d=0,e=0,f=0,g=0;f=!a;a:{if(f)break a;e=b;d=-1;b:{c:{if(f)break c;d:{e:{f:{if(b>>>0>=32){b=K[a|0];if(b)break f;if(K[a+1|0]|K[a+2|0]|(K[a+3|0]!=12|K[a+4|0]!=106))break e;if(K[a+5|0]!=80|K[a+6|0]!=32|(K[a+7|0]!=32|K[a+8|0]!=13))break e;if(K[a+9|0]!=10| -K[a+10|0]!=135|(K[a+12|0]|K[a+11|0]!=10))break e;if(K[a+13|0]|K[a+14|0]|(K[a+16|0]!=102|K[a+17|0]!=116))break e;if(K[a+18|0]!=121|K[a+19|0]!=112|(K[a+20|0]!=106|K[a+21|0]!=112))break e;if(K[a+22|0]!=50|K[a+23|0]!=32|(K[a+24|0]|K[a+25|0]))break e;if(K[a+26|0]|K[a+27|0])break e;b=2;break b}if(e>>>0<4)break d;b=K[a|0]}g:{if((b|0)!=255)break g;b=255;if(K[a+1|0]!=79|K[a+2|0]!=255)break g;d=0;if(K[a+3|0]==81)break c}if(b|e>>>0<32)break d}if(K[a+1|0]|K[a+2|0]|(K[a+3|0]!=12|K[a+4|0]!=106))break d;if(K[a+ -5|0]!=80|K[a+6|0]!=32|(K[a+7|0]!=32|K[a+8|0]!=13))break d;if(K[a+9|0]!=10|K[a+10|0]!=135|(K[a+12|0]|K[a+11|0]!=10))break d;if(K[a+13|0]|K[a+14|0]|(K[a+15|0]!=24|K[a+16|0]!=102))break d;if(K[a+17|0]!=116|K[a+18|0]!=121|(K[a+19|0]!=112|K[a+20|0]!=109))break d;if(K[a+21|0]!=106|K[a+22|0]!=112|(K[a+24|0]|K[a+23|0]!=50))break d;if(K[a+25|0]|K[a+26|0]|(K[a+27|0]|K[a+28|0]!=109))break d;if(K[a+29|0]!=106|K[a+30|0]!=112)break d;d=1;if(K[a+31|0]==50)break c}d=-1}b=d}J[c>>2]=b;if((b|0)==-1)break a;b=ye(1,72); -if(b)h:{J[b+64>>2]=1048576;c=_e(1048576);J[b+32>>2]=c;if(!c){qc(b);b=0;break h}J[b+36>>2]=c;J[b+28>>2]=4642;J[b+24>>2]=4643;J[b+20>>2]=4644;J[b+16>>2]=4645;J[b+44>>2]=4646;J[b+40>>2]=4648;J[b+68>>2]=J[b+68>>2]|2}else b=0;if(!b)break a;c=zc(12);J[c+8>>2]=0;J[c+4>>2]=e;J[c>>2]=a;if(b){J[b+4>>2]=4696;J[b>>2]=c}if(b){J[b+8>>2]=e;J[b+12>>2]=0}if(!(!b|!(K[b+68|0]&2)))J[b+16>>2]=4697;if(!(!b|!(H[b+68|0]&1)))J[b+20>>2]=4698;if(b)J[b+24>>2]=4699;if(b)J[b+28>>2]=4700;g=b}return g}function Zz(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;g=bc-32|0;bc=g;d=c-b|0;a:{b:{if((d|0)<=-2){a=Kc(g+8|0,2383166,2373581,148,2383508,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;d=Z()|0;Fc(a);break b}c:{d:{if((d|0)==-1){d=J[a+12>>2];gc[J[a+32>>2]](J[a+8>>2],J[a+20>>2]-d|0,J[a+24>>2]-d|0);qc(J[a+8>>2]);J[a+20>>2]=b;J[a+12>>2]=b;J[a+8>>2]=0;J[a+24>>2]=c;J[a+16>>2]=c;break d}f=J[a+16>>2];d=J[a+12>>2];if(!((f|0)<(c|0)|(d|0)>(b|0))){gc[J[a+36>>2]](J[a+8>>2],b-d|0,J[a+20>>2]+(d^ --1)|0);d=J[a+12>>2];gc[J[a+32>>2]](J[a+8>>2],J[a+20>>2]-d|0,(d^-1)+b|0);d=J[a+12>>2];gc[J[a+36>>2]](J[a+8>>2],(J[a+24>>2]-d|0)+1|0,c-d|0);d=J[a+12>>2];gc[J[a+32>>2]](J[a+8>>2],(c-d|0)+1|0,J[a+24>>2]-d|0);J[a+24>>2]=c;J[a+20>>2]=b;break d}i=(d|0)>(f|0);f=i?b:f;d=i?b:d;if((d|0)>(b|0))while(1){e=d;d=f-d|0;d=(d|0)>=32768?32768:d;d=e-((d|0)<=8?8:d)|0;if((d|0)>(b|0))continue;break}if((c|0)>(f|0))while(1){e=f;f=f-d|0;f=(f|0)>=32768?32768:f;f=e+((f|0)<=8?8:f)|0;if((f|0)<(c|0))continue;break}e=P(J[a+28>>2], -(f-d|0)+1|0);i=ch(g+8|0,g+4|0,e,1);wc(J[g+4>>2],0,e);e=J[a+36>>2];h=J[a+20>>2];J[695492]=0;ca(e|0,J[g+4>>2],b-d|0,h+(d^-1)|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;k=J[a+8>>2];l=J[a+40>>2];e=J[a+20>>2];h=J[a+12>>2];j=J[a+24>>2];J[695492]=0;oa(l|0,J[g+4>>2],e-d|0,j-d|0,k|0,e-h|0,j-h|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;e=J[a+36>>2];h=J[a+24>>2];J[695492]=0;ca(e|0,J[g+4>>2],(h-d|0)+1|0,c-d|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;h=J[a+8>>2];j=J[a+32>>2];k=J[a+20>>2];l=J[a+24>> -2];e=J[a+12>>2];J[695492]=0;ca(j|0,h|0,k-e|0,l-e|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;e=J[a+8>>2];J[a+8>>2]=J[g+4>>2];J[g+4>>2]=e;J[a+24>>2]=c;J[a+20>>2]=b;J[a+16>>2]=f;J[a+12>>2]=d;_c(i)}bc=g+32|0;return}d=Z()|0;_c(i)}ba(d|0)}B()}function eCa(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;e=bc-16|0;bc=e;J[e+12>>2]=0;a:{b:{f=J[a+116>>2];if(!f)break b;i=a+108|0;c:{d:{while(1){e:{d=J[f+8>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break e;d=J[f+8>> -2]}else d=0;J[e+8>>2]=d;f:{g:{h:{if(!(J[d+20>>2]!=(b|0)|J[d+24>>2]!=(c|0))){J[695492]=0;aa(4993,e+12|0,e+8|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;J[e+4>>2]=i;J[e>>2]=f;J[695492]=0;da(5065,i|0,e|0);d=J[695492];J[695492]=0;if((d|0)!=1){g=J[e+8>>2];J[e+8>>2]=0;if(!g)break h;J[695492]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;d=J[695492];J[695492]=0;if((d|0)!=1){if(h)break h;J[695492]=0;_(4987,g|0);d=J[695492];J[695492]=0;if((d|0)!=1)break h}break a}break g}f=J[f>>2];J[695492]=0;J[e+8>>2]=0;g=J[d+4>>2]- -1|0;J[d+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break a;if(!g){J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}if(f)continue}d=J[e+12>>2];if(d)break f;break b}f=Z()|0;vc(e+8|0);break d}J[695492]=0;d=d+8|0;if(J[d>>2]!=1)J[d>>2]=1;d=J[695492];J[695492]=0;if((d|0)==1){f=Z()|0;break d}g=J[e+12>>2];J[e+12>>2]=0;i:{if(!g)break i;J[695492]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;d=J[695492];J[695492]=0;if((d|0)==1)break c;if(h)break i;J[695492]=0;_(4987,g|0);d=J[695492];J[695492]=0;if((d|0)== -1)break c}J[e+12>>2]=0;f=J[a+116>>2];if(f)continue;break b}break}f=Z()|0}vc(e+12|0);ba(f|0);B()}break a}j:{d=J[a+16>>2];k:{if(!d)break k;J[d+4>>2]=J[d+4>>2]+1;d=J[a+16>>2];J[e>>2]=d;if(!d)break k;J[695492]=0;ca(5100,d|0,b|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;vc(e);ba(a|0);B()}J[695492]=0;b=J[d+4>>2]-1|0;J[d+4>>2]=b;a=J[695492];J[695492]=0;if((a|0)==1)break j;if(b)break k;J[695492]=0;_(4987,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break j}bc=e+16|0;return}}ea(0)|0;yc();B()}function yy(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;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;j=bc-128|0;bc=j;J[j+124>>2]=b;J[j+4>>2]=1617;o=ng(j+8|0,0,j+4|0);k=j+16|0;m=(d-c|0)/12|0;a:{b:{if(m>>>0>=101){k=zc(m);if(!k){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break b}ih(o,k)}h=k;b=c;c:{d:{while(1){if((b|0)==(d|0))e:while(1){f:{J[695492]=0;b=aa(6531,a|0,j+124|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break f;if((!m|b)==1){J[695492]=0;a=aa(6531,a|0,j+124|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break c;if(!a)break d;J[f>>2]=J[f>>2]|2;break d}J[695492]=0;b=$(6532,a|0)|0;h=J[695492];J[695492]=0;g:{if((h|0)!=1){if(g)break g;J[695492]=0;b=aa(6619,e|0,b|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break g}break b}i=p+1|0;q=0;r=b&255;h=k;b=c;while(1){if((b|0)==(d|0)){p=i;if(!q)continue e;J[695492]=0;$(6534,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){h=k;b=c;if(m+n>>>0<2)continue e;while(1){if((b|0)==(d|0))continue e;if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;if(!((i| -0)==(p|0)|K[h|0]!=2)){H[h|0]=0;n=n-1|0}h=h+1|0;b=b+12|0;continue}}break b}h:{if(K[h|0]!=1)break h;if(K[b+11|0]>>>7|0)l=J[b>>2];else l=b;l=H[l+p|0];i:{if(g)break i;J[695492]=0;l=aa(6619,e|0,l<<24>>24)|0;s=J[695492];J[695492]=0;if((s|0)!=1)break i;break b}j:{if((l&255)==(r|0)){q=1;if(K[b+11|0]>>>7|0)l=J[b+4>>2];else l=K[b+11|0]&127;if((l|0)!=(i|0))break h;H[h|0]=2;n=n+1|0;break j}H[h|0]=0}m=m-1|0}h=h+1|0;b=b+12|0;continue}}break}else{if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;i=!i;H[h|0]=i? -2:1;h=h+1|0;b=b+12|0;n=n+i|0;m=m-i|0;continue}break}break b}k:{l:{while(1){if((c|0)==(d|0))break l;if(K[k|0]!=2){k=k+1|0;c=c+12|0;continue}break}d=c;break k}J[f>>2]=J[f>>2]|4}Ae(o);bc=j+128|0;return d|0}}a=Z()|0;Ae(o);ba(a|0)}B()}function seb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-16|0;bc=g;f=J[a+4>>2]&2147418112;a:{if(d&16){if(f|K[a+9|0]&128){i=7;if(!(K[a+740|0]&16))break a}if(!c){i=0;break a}b:{if(K[a+292|0]){d=0;f=1;break b}if(L[a+372>>1]==65535){b=I[a+220>> -1]-I[a+222>>1]|0;a=b>>31;a=(a^b)-a&65535;i=0;b=0;if(c>>>0>=8){h=c&-8;f=0;while(1){d=b<<2;J[d+e>>2]=a;J[(d|4)+e>>2]=a;J[(d|8)+e>>2]=a;J[(d|12)+e>>2]=a;J[(d|16)+e>>2]=a;J[(d|20)+e>>2]=a;J[(d|24)+e>>2]=a;J[(d|28)+e>>2]=a;b=b+8|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}c=c&7;if(!c)break a;d=0;while(1){J[(b<<2)+e>>2]=a;b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break a}b=I[a+442>>1]-I[a+444>>1]|0;a=b>>31;a=(a^b)-a&65535;i=0;b=0;if(c>>>0>=8){h=c&-8;f=0;while(1){d=b<<2;J[d+e>>2]=a;J[(d|4)+e>>2]=a;J[(d| -8)+e>>2]=a;J[(d|12)+e>>2]=a;J[(d|16)+e>>2]=a;J[(d|20)+e>>2]=a;J[(d|24)+e>>2]=a;J[(d|28)+e>>2]=a;b=b+8|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}c=c&7;if(!c)break a;d=0;while(1){J[(b<<2)+e>>2]=a;b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break a}while(1){i=(d<<2)+e|0;c:{if(f&255){gc[J[J[a+540>>2]+140>>2]](a,1,b+d|0,g+14|0,g+12|0);f=L[g+12>>1];break c}if(L[a+372>>1]!=65535){h=I[a+442>>1]-I[a+444>>1]|0;f=h>>31;f=(f^h)-f|0;break c}h=I[a+220>>1]-I[a+222>>1]|0;f=h>>31;f=(f^h)-f|0}J[i>>2]=f&65535;d= -d+1|0;if((d|0)!=(c|0)){f=K[a+292|0];continue}break}i=0;break a}if(f|K[a+9|0]&128){i=7;if(!(K[a+740|0]&2))break a}if(!c){i=0;break a}i=0;d=0;if((c|0)!=1){h=c&-2;f=0;while(1){j=g+10|0;k=g+8|0;gc[J[J[a+540>>2]+140>>2]](a,0,b+d|0,j,k);J[(d<<2)+e>>2]=L[g+8>>1];l=d|1;gc[J[J[a+540>>2]+140>>2]](a,0,l+b|0,j,k);J[(l<<2)+e>>2]=L[g+8>>1];d=d+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!(c&1))break a;gc[J[J[a+540>>2]+140>>2]](a,0,b+d|0,g+10|0,g+8|0);J[(d<<2)+e>>2]=L[g+8>>1]}bc=g+16|0;return i|0}function hx(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;J[a+168>>2]=d;j=a+168|0;J[a+48>>2]=j;d=J[a+64>>2];J[a+184>>2]=J[a+60>>2];J[a+188>>2]=d;J[a+180>>2]=c;J[a+176>>2]=b;J[a+172>>2]=e;d=j;while(1){l=J[d>>2];a:{b:{h=J[d+4>>2];f=J[d+20>>2];b=(h|0)>(f|0);i=J[d+12>>2];c:{if(!((i|0)>=((b?f:h)|0)&(i|0)<=(((f|0)>(h|0)?f:h)|0))){b=J[d+16>>2];J[d+32>>2]=b;J[d+36>>2]=f;c=f+i|0;J[d+28>>2]=c>>1;e=h+i|0;J[d+12>>2]=e>>1;f=J[d+8>>2];i=f+l|0;J[d+8>>2]=i>>1;b=b+f|0;J[d+24>>2]=b>>1;J[d+20>>2]=c+e>>2;J[d+16>>2]=b+i>> -2;b=d+16|0;break c}if((f|0)!=(h|0))break b;b=d-16|0}J[a+48>>2]=b;break a}m=b?1:2;g=J[a+92>>2];if((m|0)!=(g|0)){b=J[a+4>>2];n=(f|0)>=(h|0);e=n?f&b-1:((b+f|0)-1&0-b)-f|0;c=J[a+36>>2];k=J[a+8>>2];d:{if(!g){b=c;break d}g=J[a+80>>2];b=J[g+8>>2];o=c-b>>2;if((o|0)<0){J[a+40>>2]=99;return 1}e:{if((b|0)==(c|0)){b=c;break e}J[g+16>>2]=o;if((e|0)>=(k|0)){b=L[g+12>>1];I[g+12>>1]=(b&8?16:32)|b}J[a+80>>2]=c;b=c+32|0;J[a+36>>2]=b;J[c+8>>2]=b;J[c+16>>2]=0;J[g+28>>2]=c;I[a+76>>1]=L[a+76>>1]+1}if(M[a+32>>2]<=b>>>0){J[a+ -40>>2]=98;return 1}H[a+79|0]=0}if(!J[a+84>>2]){J[a+84>>2]=b;J[a+80>>2]=b;b=b+32|0;J[a+36>>2]=b}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}c=J[a+80>>2];J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=b;J[c+28>>2]=0;J[c+4>>2]=0;b=K[a+164|0];I[c+12>>1]=b;f:{g:{if(!n){I[c+12>>1]=b|8;g=40;if((e|0)>=(k|0))break g;break f}g=16;if((e|0)<(k|0))break f}I[c+12>>1]=b|g}if(!J[a+88>>2])J[a+88>>2]=c;I[a+78>>1]=1;J[a+92>>2]=m}b=J[a+72>>2];c=J[a+68>>2];h:{if((f|0)<(h|0)){if(!KC(a,2,1702,c,b))break a;break h}J[d+20>>2]=0-f; -J[d+12>>2]=0-i;J[d+4>>2]=0-h;e=K[a+78|0];b=KC(a,2,1702,0-b|0,0-c|0);if(!(K[a+78|0]|!e)){c=J[a+80>>2];J[c+20>>2]=0-J[c+20>>2]}J[d+4>>2]=0-J[d+4>>2];if(!b)break a}return 1}d=J[a+48>>2];if(j>>>0<=d>>>0)continue;break}J[a+64>>2]=h;J[a+60>>2]=l;return 0}function h8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>> -2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+ -16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+ -12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];p3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}} -function c7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>> -2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>> -2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue; -break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];j3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}}function a7a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+ -120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]= -g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)== -J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];h3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}} -function _6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>> -2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>> -2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue; -break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];f3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}}function X6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+ -120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]= -g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)== -J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];d3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}} -function V6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>> -2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>> -2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue; -break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];b3(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}}function T6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+ -120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]= -g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)== -J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];$2(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}} -function R6a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>> -2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>> -2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue; -break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(de(b,d))continue;break a}break}if((g|0)!=(h|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];Z2(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Gd(a,c))break a;if(de(b,d))continue;break}}}function wEa(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;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;g=bc-96|0;bc=g;n=c-e;O[g+88>>3]=n;O[g+80>>3]=d;i=g+88|0;j=g+80|0;je(b,i,j);O[g+72>>3]=O[g+88>>3]*25.4/96;O[g+64>>3]=O[g+80>>3]*25.4/ -96;k=g+72|0;l=g- -64|0;gc[J[J[a>>2]+316>>2]](a,k,l)|0;O[g+88>>3]=n;q=f*.552;r=q+d;O[g+80>>3]=r;m=e*.552;s=c-m;O[g+72>>3]=s;h=d+f;O[g+64>>3]=h;O[g+56>>3]=c;O[g+48>>3]=h;je(b,i,j);je(b,k,l);o=g+56|0;p=g+48|0;je(b,o,p);O[g+40>>3]=O[g+88>>3]*25.4/96;O[g+32>>3]=O[g+80>>3]*25.4/96;O[g+24>>3]=O[g+72>>3]*25.4/96;O[g+16>>3]=O[g+64>>3]*25.4/96;O[g+8>>3]=O[g+56>>3]*25.4/96;O[g>>3]=O[g+48>>3]*25.4/96;gc[J[J[a>>2]+328>>2]](a,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g)|0;m=m+c;O[g+88>>3]=m;O[g+80>>3]=h;e=c+e;O[g+72>> -3]=e;O[g+64>>3]=r;O[g+56>>3]=e;O[g+48>>3]=d;je(b,i,j);je(b,k,l);je(b,o,p);O[g+40>>3]=O[g+88>>3]*25.4/96;O[g+32>>3]=O[g+80>>3]*25.4/96;O[g+24>>3]=O[g+72>>3]*25.4/96;O[g+16>>3]=O[g+64>>3]*25.4/96;O[g+8>>3]=O[g+56>>3]*25.4/96;O[g>>3]=O[g+48>>3]*25.4/96;gc[J[J[a>>2]+328>>2]](a,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g)|0;O[g+88>>3]=e;h=d-q;O[g+80>>3]=h;O[g+72>>3]=m;e=d-f;O[g+64>>3]=e;O[g+56>>3]=c;O[g+48>>3]=e;je(b,i,j);je(b,k,l);je(b,o,p);O[g+40>>3]=O[g+88>>3]*25.4/96;O[g+32>>3]=O[g+80>>3]*25.4/96;O[g+24>> -3]=O[g+72>>3]*25.4/96;O[g+16>>3]=O[g+64>>3]*25.4/96;O[g+8>>3]=O[g+56>>3]*25.4/96;O[g>>3]=O[g+48>>3]*25.4/96;gc[J[J[a>>2]+328>>2]](a,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g)|0;O[g+88>>3]=s;O[g+80>>3]=e;O[g+72>>3]=n;O[g+64>>3]=h;O[g+56>>3]=n;O[g+48>>3]=d;je(b,i,j);je(b,k,l);je(b,o,p);O[g+40>>3]=O[g+88>>3]*25.4/96;O[g+32>>3]=O[g+80>>3]*25.4/96;O[g+24>>3]=O[g+72>>3]*25.4/96;O[g+16>>3]=O[g+64>>3]*25.4/96;O[g+8>>3]=O[g+56>>3]*25.4/96;O[g>>3]=O[g+48>>3]*25.4/96;gc[J[J[a>>2]+328>>2]](a,g+40|0,g+32|0,g+24|0,g+ -16|0,g+8|0,g)|0;bc=g+96|0}function HZ(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;H[c+12|0]=0;a:{if(a){d=c+12|0;e=Yd(d,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=Yd(d,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+2>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;if((Yd(d,1,4,a)|0)==4){d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}else d=-1;J[b+4>>2]=d;H[c+12|0]=0;d=c+12|0;e=Yd(d,1,2,a);J[b+8>>2]=(e|0)!=2?65535:K[c+13|0]|K[c+12| -0]<<8;H[c+12|0]=0;Yd(d,1,2,a);H[c+12|0]=0;e=Yd(d,1,2,a);J[b+12>>2]=(e|0)!=2?65535:K[c+13|0]|K[c+12|0]<<8;H[c+12|0]=0;Yd(c+12|0,1,2,a);H[c+12|0]=0;e=Yd(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+16>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=Yd(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+18>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=Yd(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+20>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=Yd(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+22>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12| -0]=0;if((Yd(d,1,4,a)|0)==4){d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}else d=-1;J[b+24>>2]=d;H[c+12|0]=0;d=-1;f=b+22|0;g=b+20|0;h=b+18|0;if((Yd(c+12|0,1,4,a)|0)==4){e=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24)}else e=-1;J[b+28>>2]=e;H[c+12|0]=0;if((Yd(c+12|0,1,4,a)|0)!=4)break a;d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break a}J[b+24>>2]= --1;J[b+28>>2]=-1;J[b+16>>2]=-1;J[b+20>>2]=-1;J[b+12>>2]=65535;J[b+4>>2]=-1;J[b+8>>2]=65535;d=-1;J[b>>2]=-1;f=b+22|0;g=b+20|0;h=b+18|0}J[b+32>>2]=d;b=0;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];if(!(a>>>4&1|(L[h>>1]-33&65535)>>>0<65504|(L[g>>1]-5&65535)>>>0<65532))b=I[f>>1]>0;bc=c+16|0;return b}function wy(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;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;j=bc-128|0;bc=j;J[j+124>>2]=b;J[j+4>>2]=1617;o=ng(j+8|0,0,j+4|0);k=j+16|0;m=(d-c|0)/12| -0;a:{b:{if(m>>>0>=101){k=zc(m);if(!k){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break b}ih(o,k)}h=k;b=c;c:{d:{while(1){if((b|0)==(d|0))e:while(1){f:{J[695492]=0;b=aa(6645,a|0,j+124|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break f;if((!m|b)==1){J[695492]=0;a=aa(6645,a|0,j+124|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(!a)break d;J[f>>2]=J[f>>2]|2;break d}J[695492]=0;p=$(6646,a|0)|0;b=J[695492];J[695492]=0;g:{if((b|0)!=1){if(g)break g;J[695492]=0;p=aa(6647,e|0,p|0)|0; -b=J[695492];J[695492]=0;if((b|0)!=1)break g}break b}i=q+1|0;r=0;h=k;b=c;while(1){if((b|0)==(d|0)){q=i;if(!r)continue e;J[695492]=0;$(6648,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){h=k;b=c;if(m+n>>>0<2)continue e;while(1){if((b|0)==(d|0))continue e;if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;if(!((i|0)==(q|0)|K[h|0]!=2)){H[h|0]=0;n=n-1|0}h=h+1|0;b=b+12|0;continue}}break b}h:{if(K[h|0]!=1)break h;if(K[b+11|0]>>>7|0)l=J[b>>2];else l=b;l=J[l+(q<<2)>>2];i:{if(g)break i;J[695492]=0;l=aa(6647, -e|0,l|0)|0;s=J[695492];J[695492]=0;if((s|0)!=1)break i;break b}j:{if((p|0)==(l|0)){r=1;if(K[b+11|0]>>>7|0)l=J[b+4>>2];else l=K[b+11|0]&127;if((l|0)!=(i|0))break h;H[h|0]=2;n=n+1|0;break j}H[h|0]=0}m=m-1|0}h=h+1|0;b=b+12|0;continue}}break}else{if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;i=!i;H[h|0]=i?2:1;h=h+1|0;b=b+12|0;n=n+i|0;m=m-i|0;continue}break}break b}k:{l:{while(1){if((c|0)==(d|0))break l;if(K[k|0]!=2){k=k+1|0;c=c+12|0;continue}break}d=c;break k}J[f>>2]=J[f>>2]|4}Ae(o);bc=j+128|0; -return d|0}}a=Z()|0;Ae(o);ba(a|0)}B()}function t8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)> -(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+ -8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;g=f+4|0;while(1){if(J[c+ -4>>2]>2]){if(Gd(a,c))continue;break a}while(1){h=J[d+4>>2];i=J[c+4>>2];if((h|0)<(i|0)){if(de(b,d))continue;break a}break}if((h|0)!=(i|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];v3(e,J[f>>2],g)}if(!Gd(a,c))break a;if(de(b,d))continue;break}}}function r8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Pd(a);a:{if(!J[a+12>>2])break a;g=J[a+84>> -2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];h=(h|0)<(i|0)?h:i;i=J[a+80>>2];j=J[b+104>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+92>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]= -2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3); -J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Gd(a,c))break a;if(!de(b,d))break a;g=f+4|0;while(1){if(J[c+4>>2]>2]){if(Gd(a,c))continue;break a}while(1){h=J[d+4>>2];i=J[c+4>>2];if((h|0)<(i|0)){if(de(b,d))continue;break a}break}if((h|0)!=(i|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];tC(e,J[f>>2],g)}if(!Gd(a,c))break a;if(de(b,d))continue; -break}}}function V7a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Af(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Pd(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+112>>2];i=J[b+88>>2];h=(h|0)<(i|0)?h:i;i=J[a+104>>2];j=J[b+80>>2];i=(i|0)>(j|0)?i:j;if((h|0)<(i|0))break a;j=J[a+108>>2];k=(g|0)<(j|0)?j:g;g=J[a+116>>2];j=J[b+92>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a; -g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>> -2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!de(a,c))break a;if(!yd(b,d))break a;g=f+4|0;while(1){if(J[c+4>>2]>2]){if(de(a, -c))continue;break a}while(1){h=J[d+4>>2];i=J[c+4>>2];if((h|0)<(i|0)){if(yd(b,d))continue;break a}break}if((h|0)!=(i|0))continue;Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];tC(e,J[f>>2],g)}if(!de(a,c))break a;if(yd(b,d))continue;break}}}function _l(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;h=J[a+28>>2];a:{i=J[a>>2];b:{if(!i)if(!J[J[(J[a+24>>2]+(h<<2)|0)-4>>2]+20>>2]|(h|0)<=0)break b;k=h;h=J[a+32>>2];if((k|0)>=(h|0)){h=h<<1;J[a+32>>2]=h;n=a,o=Nd(J[a+24>>2],h,4),J[n+24>>2]=o;i= -J[a>>2]}h=rc(24);c:{if(i){l=O[a+16>>3];m=O[a+8>>3];J[h+16>>2]=16;J[695492]=0;i=aa(3376,16,8)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[h>>2]=i;i=J[h+16>>2];J[695492]=0;i=aa(3376,i|0,8)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[h+4>>2]=i;i=J[h+16>>2];J[695492]=0;i=aa(3376,i|0,4)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[h+12>>2]=1;J[h+8>>2]=i;O[J[h>>2]>>3]=m;O[J[h+4>>2]>>3]=l;J[i>>2]=0;J[h+20>>2]=0;i=J[a+28>>2];k=J[a+24>>2]+(i<<2)|0;break c}i=J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2]; -j=J[i+12>>2]<<3;l=O[(j+J[i+4>>2]|0)-8>>3];m=O[(j+J[i>>2]|0)-8>>3];J[h+16>>2]=16;J[695492]=0;i=aa(3376,16,8)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[h>>2]=i;i=J[h+16>>2];J[695492]=0;i=aa(3376,i|0,8)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[h+4>>2]=i;i=J[h+16>>2];J[695492]=0;i=aa(3376,i|0,4)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[h+12>>2]=1;J[h+8>>2]=i;O[J[h>>2]>>3]=m;O[J[h+4>>2]>>3]=l;J[i>>2]=0;J[h+20>>2]=0;i=J[a+28>>2];k=J[a+24>>2]+(i<<2)|0}J[k>>2]=h;J[a>>2]=0;h=i+1|0;J[a+ -28>>2]=h}a=J[(J[a+24>>2]+(h<<2)|0)-4>>2];h=J[a+16>>2];i=J[a+12>>2];d:{if((h|0)>=(i+3|0)){h=J[a+8>>2];break d}h=h<<1;J[a+16>>2]=h;n=a,o=Nd(J[a>>2],h,8),J[n>>2]=o;n=a,o=Nd(J[a+4>>2],J[a+16>>2],8),J[n+4>>2]=o;h=Nd(J[a+8>>2],J[a+16>>2],4);J[a+8>>2]=h;i=J[a+12>>2]}k=i<<3;j=k+J[a>>2]|0;O[j>>3]=b;k=k+J[a+4>>2]|0;O[k>>3]=c;O[j+8>>3]=d;O[k+8>>3]=e;O[j+16>>3]=f;O[k+16>>3]=g;J[((i<<2)+h|0)+4>>2]=1;J[(J[a+12>>2]<<2)+h>>2]=1;J[((J[a+12>>2]<<2)+h|0)+8>>2]=0;J[a+12>>2]=J[a+12>>2]+3;return}a=Z()|0;qc(h);ba(a|0); -B()}function Y3(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;k=bc+-64|0;bc=k;m=6;i=J[a+532>>2];a:{if(!i)break a;d=J[i+4>>2];o=b>>>0>d>>>0?d:b;b:{if(!d){d=0;break b}r=i+88|0;while(1){b=P(h,12)+r|0;g=J[b+8>>2];l=J[b+4>>2];c:{if(h>>>0>>0){e=K[b|0];f=J[(h<<2)+c>>2];break c}e=K[b|0];f=(J[((e<<2)+l|0)-4>>2]-J[l>>2]|0)/2|0}d:{e:{if(!e)break e;b=0;j=-1;f:{g:{while(1){n=b<<2;p=n+l|0;q=J[p>>2];if((f|0)==(q|0))break f;if((f|0)<(q|0))break g;j=b;b=b+1|0;if((e|0)!= -(b|0))continue;break}if(!e)break e;b=J[(g+(e<<2)|0)-4>>2];break d}if((j|0)<0)break e;b=j<<2;e=J[b+l>>2];b=Dd(f-e|0,J[g+n>>2]-J[b+g>>2]|0,J[p>>2]-e|0);d=J[i+4>>2];break d}b=J[g+n>>2];break d}b=J[g>>2]}J[(h<<2)+k>>2]=b;h=h+1|0;if(h>>>0>>0)continue;break}i=J[a+532>>2];if(!i)break a}m=-1;b=J[i>>2];if(!b)break a;f=J[i+4>>2];h:{if(f){g=d>>>0>f>>>0?f:d;j=0;e=f;h=0;while(1){b=0;d=65536;c=0;i:{if(!e)break i;while(1){j:{if(b>>>0>=g>>>0){d=d>>1;break j}c=J[(b<<2)+k>>2];c=h>>>b&1?c:65536-c|0;if((c|0)<=0){d= -0;c=e;break i}if(c>>>0>65535)break j;d=Pc(d,c);f=J[i+4>>2]}e=f;c=f;b=b+1|0;if(f>>>0>b>>>0)continue;break}}b=J[i+136>>2]+(h<<2)|0;if(J[b>>2]!=(d|0)){J[b>>2]=d;j=1}e=c;h=h+1|0;if(h>>>0>2])continue;break}break h}h=b&3;f=J[i+136>>2];c=0;k:{if(b>>>0<4){j=0;b=0;break k}i=b&-4;j=0;b=0;e=0;while(1){d=b<<2;g=d+f|0;if(J[g>>2]!=65536){J[g>>2]=65536;j=1}g=f+(d|4)|0;if(J[g>>2]!=65536){J[g>>2]=65536;j=1}g=f+(d|8)|0;if(J[g>>2]!=65536){J[g>>2]=65536;j=1}d=f+(d|12)|0;if(J[d>>2]!=65536){J[d>>2]=65536;j=1}b=b+ -4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(!h)break h;while(1){e=f+(b<<2)|0;if(J[e>>2]!=65536){J[e>>2]=65536;j=1}b=b+1|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}if(!j)break a;m=0;J[a+8>>2]=J[a+8>>2]&-32769|((o|0)!=0)<<15}bc=k- -64|0;return m|0}function PQa(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;g=+g;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0;J[a>>2]=b;b=J[b+24>>2];J[a+12>>2]=0;J[a+4>>2]=b;J[a+16>>2]=J[J[689612]+404>>2];b=rc(112);m=J[a+4>>2];J[695492]=0;e=ha(3390,b|0,m|0,e|0,0)| -0;m=J[695492];J[695492]=0;if((m|0)!=1)a:{J[a+8>>2]=c;J[a+20>>2]=e;b=rc(672);e=J[J[c>>2]+8>>2];J[695492]=0;c=$(e|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[695492]=0;c=Ib(3392,b|0,+f,+g,h|0,j|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+28>>2]=c;b=J[a+8>>2];gc[J[J[b>>2]+44>>2]](b,d,c);b=J[a+8>>2];gc[J[J[b>>2]+36>>2]](b,J[a+28>>2]+16|0);b=J[a+8>>2];gc[J[J[b>>2]+72>>2]](b,J[a+28>>2]);b=J[a+28>>2];O[a+48>>3]=O[b+16>>3];O[a+56>>3]=O[b+24>> -3];O[a- -64>>3]=O[b+32>>3];O[a+72>>3]=O[b+40>>3];O[a+80>>3]=O[b+48>>3];O[a+88>>3]=O[b+56>>3];J[a+96>>2]=0;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)b:{J[a+108>>2]=0;J[a+100>>2]=1;J[a+104>>2]=c;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a+120>>2]=l;J[a+116>>2]=k;J[a+112>>2]=c;if(i){f=O[i>>3];b=J[a+28>>2];g=O[i+8>>3];O[b+608>>3]=g;O[b+600>>3]=f;b=J[b+596>>2];O[b+16>>3]=g;O[b+8>>3]=f;J[b>>2]=1;f=O[i+16>>3];b=J[a+28>>2];g=O[i+8>>3]; -O[b+608>>3]=g;O[b+600>>3]=f;ie(J[b+596>>2],f,g);f=O[i+16>>3];b=J[a+28>>2];g=O[i+24>>3];O[b+608>>3]=g;O[b+600>>3]=f;ie(J[b+596>>2],f,g);f=O[i>>3];b=J[a+28>>2];g=O[i+24>>3];O[b+608>>3]=g;O[b+600>>3]=f;ie(J[b+596>>2],f,g);b=J[a+28>>2];_f(J[b+596>>2]);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];wj(J[a+28>>2]);b=J[a+8>>2];gc[J[J[b>>2]+220>>2]](b,J[a+28>>2]);Rf(J[a+28>>2])}return a|0}}a=Z()|0;qc(b);ba(a|0); -B()}function AI(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=bc-32|0;bc=i;a:{if((d|0)<=0|b>>>0>16777215)break a;m=i-4|0;b:{while(1){f=0;g=k;k=(d-g|0)>4?g+4|0:d;l=k-g|0;c:{if((l|0)<=0)break c;j=c+g|0;f=J[(K[j|0]<<2)+2199392>>2];if((f|0)<0)break b;if((l|0)==1)break c;g=J[(K[j+1|0]<<2)+2199392>>2];if((g|0)<0)break b;f=g+(f<<4)|0;if((l|0)==2)break c;g=J[(K[j+2|0]<<2)+2199392>>2];if((g|0)<0)break b;f=g+(f<<4)|0;if((l|0)==3)break c;g=J[(K[j+3|0]<<2)+2199392>>2];if((g|0)<0)break b;f=g+(f<<4)|0}d:{if((h| -0)>0){g=(h<<2)+m|0;j=J[g>>2];if(!(j>>>0<55296|j>>>0>56319|(f>>>0<56320|f>>>0>57343))){J[g>>2]=(j<<10&1047552|f&1023)+65536;break d}if(h>>>0>7)break d}J[(h<<2)+i>>2]=f;h=h+1|0}if((d|0)>(k|0))continue;break}if(!h)break a;f=J[a+8>>2];e:{if(f>>>0>b>>>0)break e;c=f?f<<1:256;c=b>>>0>>0?c:(b&-256)+256|0;J[a+8>>2]=c;c=Nd(J[a+4>>2],c,4);J[a+4>>2]=c;if(M[a+8>>2]<=f>>>0)break e;while(1){J[c+(f<<2)>>2]=0;f=f+1|0;if(f>>>0>2])continue;break}}if((h|0)==1){J[J[a+4>>2]+(b<<2)>>2]=J[i>>2]+e;break a}c=J[a+ -20>>2];f:{if((c|0)>J[a+16>>2]){c=J[a+12>>2];break f}c=c+16|0;J[a+20>>2]=c;c=Nd(J[a+12>>2],c,40);J[a+12>>2]=c}f=0;J[J[a+4>>2]+(b<<2)>>2]=0;d=J[a+16>>2];J[P(d,40)+c>>2]=b;if((h|0)>0){if(h>>>0>=4){d=h&-4;k=0;while(1){g=f<<2;J[(g+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[g+i>>2];b=g|4;J[(b+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[b+i>>2];b=g|8;J[(b+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[b+i>>2];b=g|12;J[(b+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[b+i>>2];f=f+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}g=h&3;if(g){d=0;while(1){b= -f<<2;J[(b+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[b+i>>2];f=f+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}d=J[a+16>>2]}b=(P(d,40)+c|0)+(h<<2)|0;J[b>>2]=J[b>>2]+e;b=J[a+16>>2];J[(P(b,40)+c|0)+36>>2]=h;J[a+16>>2]=b+1;break a}xc(0,-1,798292,0)}bc=i+32|0}function y_(a){var b=0,c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;a:{if(gc[J[J[a>>2]+28>>2]](a,0,777542)|0)break a;if(gc[J[J[a>>2]+28>>2]](a,0,778767)|0)break a;b:{if((gc[J[J[a>>2]+8>>2]](a,0)|0)!=128)break b;if((gc[J[J[a>>2]+8>>2]](a,1)|0)!=1)break b;if(!(gc[J[J[a>>2]+ -20>>2]](a,2,e+12|0)|0))break b;b=J[e+12>>2];if(b>>>0>=16){b=1;if(gc[J[J[a>>2]+28>>2]](a,6,777542)|0)break a;b=J[e+12>>2]}if(b>>>0<11)break b;b=1;if(gc[J[J[a>>2]+28>>2]](a,6,778767)|0)break a}c:{if(gc[J[J[a>>2]+8>>2]](a,0)|0)break c;if((gc[J[J[a>>2]+8>>2]](a,1)|0)!=1)break c;if(gc[J[J[a>>2]+8>>2]](a,2)|0)break c;if(gc[J[J[a>>2]+8>>2]](a,3)|0)break c;b=4;break a}d:{if((gc[J[J[a>>2]+8>>2]](a,0)|0)!=116)break d;if((gc[J[J[a>>2]+8>>2]](a,1)|0)!=114)break d;if((gc[J[J[a>>2]+8>>2]](a,2)|0)!=117)break d; -b=4;if((gc[J[J[a>>2]+8>>2]](a,3)|0)==101)break a}e:{if((gc[J[J[a>>2]+8>>2]](a,0)|0)!=116)break e;if((gc[J[J[a>>2]+8>>2]](a,1)|0)!=116)break e;if((gc[J[J[a>>2]+8>>2]](a,2)|0)!=99)break e;b=5;if((gc[J[J[a>>2]+8>>2]](a,3)|0)==102)break a}f:{if((gc[J[J[a>>2]+8>>2]](a,0)|0)!=79)break f;if((gc[J[J[a>>2]+8>>2]](a,1)|0)!=84)break f;if((gc[J[J[a>>2]+8>>2]](a,2)|0)!=84)break f;if((gc[J[J[a>>2]+8>>2]](a,3)|0)!=79)break f;c=bc-16|0;bc=c;b=9;g:{if(!(gc[J[J[a>>2]+12>>2]](a,4,c+8|0)|0)|J[c+8>>2]<=0)break g;while(1){f= -d<<4;if(!(gc[J[J[a>>2]+28>>2]](a,f|12,780093)|0)){d=d+1|0;if((d|0)>2])continue;break g}break}if(!(gc[J[J[a>>2]+16>>2]](a,f+20|0,c+12|0)|0))break g;d=J[c+12>>2];if(d>>>0>2147483646)break g;a=RI(a,d);b=(a|0)==2?6:(a|0)==3?7:a}bc=c+16|0;break a}h:{if((gc[J[J[a>>2]+8>>2]](a,0)|0)!=1)break h;if(gc[J[J[a>>2]+8>>2]](a,1)|0)break h;b=RI(a,0);break a}b=9;if((gc[J[J[a>>2]+8>>2]](a,1)|0)!=1)break a;if(gc[J[J[a>>2]+8>>2]](a,2)|0)break a;b=RI(a,1)}bc=e+16|0;return b}function Epb(a,b,c,d,e){a=a|0;b=b|0; -c=c|0;d=d|0;e=e|0;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;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if(!((c|0)==16|c-4>>>0<4)){Dc(a,1028,0,0);return 1028}g=K[d+2|0]|K[d+3|0]<<8;f=g<<8|g>>>8;g=K[d|0]|K[d+1|0]<<8;j=g<<8|g>>>8;b:{c:{d:{e:{if(c>>>0>=5){n=K[d+4|0];if((c|0)!=5)break e}break d}o=K[d+5|0];if(c>>>0<7){i=1;break d}h=K[d+6|0];if((c|0)==7){i=1;g=1;break c}g=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);p=g<<24|(g&65280)<<8|(g>>> -8&65280|g>>>24);g=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);q=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);k=1;i=1;g=1;l=K[d+7|0];break b}g=0}l=0}j=j&65535;r=f&65535;f:{if(K[a+114|0]){f=gc[J[a+152>>2]](48)|0;if(!f){Dc(a,1,0,0);h=1;break f}J[f+4>>2]=1048;J[f>>2]=1049;m=J[a+700>>2];g:{if(m){J[m+8>>2]=f;break g}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=m;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+44>> -2]=p;J[f+40>>2]=q;H[f+37|0]=l;H[f+36|0]=k;H[f+35|0]=h;H[f+34|0]=o;H[f+33|0]=i;H[f+32|0]=n;I[f+28>>1]=r;I[f+30>>1]=j}h=e8(a,j,r,n,i,o,h,k,l,q,p)}h:{if(h)break h;h=0;if(!K[a+112|0])break h;h=gc[J[b+4>>2]](a,b,e)|0;if(h)break h;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;b=K[d+2|0]|K[d+3|0]<<8;I[a+34>>1]=b<<8|b>>>8;if(c>>>0>=5)H[a+36|0]=K[d+4|0];if(i)H[a+37|0]=K[d+5|0];if(g)H[a+38|0]=K[d+6|0];if(k){H[a+39|0]=1;H[a+40|0]=K[d+7|0];b=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+44>>2]= -b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[b+48>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}h=0;H[a+39|0]=0}return h|0}Dc(a,1029,0,0);return 1029}function nba(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;f=J[a+584>>2];k=J[f+32>>2];a:{b:{if(!k)break b;s=f+844|0;e=J[f+884>>2];c=J[J[f+216>>2]+132>>2];if(!c)while(1){if((e|0)>=8){e=0;b=J[f+316>>2]<<3;d=0;if((vO(f,s, -b)|0)!=(b|0))break a}e=e+1|0;J[f+884>>2]=e;b=L[f+836>>1];J[a+472>>2]=b+J[a+472>>2];k=k-b|0;if((k|0)>0)continue;break b}n=J[f+888>>2];t=c&3;w=c>>>0<4;while(1){if((e|0)>=8){e=0;h=J[f+316>>2]<<3;d=0;if((vO(f,s,h)|0)!=(h|0))break a;J[f+884>>2]=0}if(J[f+36>>2]>0){p=J[f+216>>2];i=0;q=0;while(1){o=J[p+12>>2];c:{if((o|0)<=0)break c;u=(q<<2)+f|0;j=0;l=J[p+8>>2];if((l|0)==1)while(1){e=J[(J[u+844>>2]+(P(J[f+884>>2],o)<<2)|0)+(j<<2)>>2];g=b+i|0;d=c;m=0;if(t)while(1){H[g|0]=K[e|0];g=g+n|0;e=e+1|0;d=d-1|0;m=m+ -1|0;if((t|0)!=(m|0))continue;break}if(!w)while(1){H[g|0]=K[e|0];h=g+n|0;H[h|0]=K[e+1|0];h=h+n|0;H[h|0]=K[e+2|0];h=h+n|0;H[h|0]=K[e+3|0];e=e+4|0;g=h+n|0;d=d-4|0;if(d)continue;break}i=i+1|0;j=j+1|0;if((o|0)!=(j|0))continue;break c}if((l|0)>0){x=l&-4;v=l&3;r=0;while(1){g=J[(J[u+844>>2]+(P(J[f+884>>2],o)<<2)|0)+(r<<2)>>2];d=b+i|0;h=c;while(1){m=0;e=0;j=0;if(l>>>0>=4)while(1){H[d+e|0]=K[g|0];H[(e|1)+d|0]=K[g+1|0];H[(e|2)+d|0]=K[g+2|0];H[(e|3)+d|0]=K[g+3|0];e=e+4|0;g=g+4|0;j=j+4|0;if((x|0)!=(j|0))continue; -break}if(v)while(1){H[d+e|0]=K[g|0];e=e+1|0;g=g+1|0;m=m+1|0;if((v|0)!=(m|0))continue;break}d=d+n|0;h=h-1|0;if(h)continue;break}i=i+l|0;r=r+1|0;if((r|0)!=(o|0))continue;break}break c}i=P(l,o)+i|0}p=p+88|0;q=q+1|0;if((q|0)>2])continue;break}e=J[f+884>>2]}e=e+1|0;J[f+884>>2]=e;d=L[f+836>>1];J[a+472>>2]=d+J[a+472>>2];b=J[f+840>>2]+b|0;k=k-d|0;if((k|0)>0)continue;break}}d=1;if(M[f+140>>2]>2])break a;d=(CO(f)|0)!=0}return d|0}function Lh(a,b,c){var d=0,e=0;a:{if(!(K[a+460|0]|!(K[a+496| -0]|K[a+476|0])|(K[a+498|0]|!(K[b+64|0]|K[b+65|0])))){d=tu(a,b);if(d)break a}J[a+544>>2]=b;if(!c){c=J[a+512>>2];J[a+512>>2]=b;mN(a);J[a+512>>2]=c}if(!(K[a+497|0]|!K[a+477|0])){H[a+477|0]=0;c=J[a+512>>2];J[a+512>>2]=b;d=Eo(a);J[a+512>>2]=c;if(d)break a;J[a+440>>2]=J[a+440>>2]+1}b:{if(K[a+497|0]|(K[a+460|0]|!(K[a+496|0]|K[a+476|0])))break b;H[a+498|0]=0;if(J[a+676>>2]>2]|J[a+684>>2]>2])break b;Ox(a);c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{b=J[b+88>>2];switch(K[b+45|0]){case 14:break f; -case 12:break g;case 10:break h;case 8:break i;case 6:break j;case 4:break k;case 3:break l;case 2:break m;case 0:break n;default:break c}}J[a+980>>2]=K[b+44|0]>8?1149:1150;c=!K[b+56|0];break d}J[a+980>>2]=K[b+44|0]>8?1151:1152;c=!K[b+56|0];break d}J[a+980>>2]=1153;c=!K[b+56|0];break d}J[a+980>>2]=K[b+44|0]>8?1154:1155;break e}J[a+980>>2]=K[b+44|0]>8?1022:1023;break e}J[a+980>>2]=K[b+44|0]>8?1149:1150;c=1;break d}J[a+980>>2]=K[b+44|0]>8?1151:1152;c=1;break d}J[a+980>>2]=K[b+44|0]>8?1154:1155;break e}J[a+ -980>>2]=K[b+44|0]>8?1022:1023}c=0}H[a+649|0]=c}J[a+584>>2]=1;J[a+576>>2]=1;J[a+580>>2]=0;H[a+568|0]=255;J[a+572>>2]=J[a+664>>2];c=J[b+36>>2];J[a+588>>2]=c;H[a+648|0]=0;J[a+604>>2]=c<<2;if(K[b+44|0]>=9){H[a+648|0]=1;J[a+604>>2]=c<<3}J[a+976>>2]=0;d=ru(a,0,0,1);if(d)break a;b=gc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=b;if(!b){Dc(a,1,0,0);return 1}b=J[a+664>>2];while(1){o:{c=b;e=J[a+668>>2];if((e|0)<=(b|0)){d=0;break o}d=gc[J[a+980>>2]](a)|0;if(d)break o;b=J[a+976>>2];if(b){d=gc[b|0](a)|0;if(d)break o}d= -gc[J[a+968>>2]](a)|0;if(d)break o;b=c+1|0;d=Jr(a);if(!d)continue}break}b=J[a+644>>2];if(b){gc[J[a+156>>2]](b,J[a+604>>2]);J[a+644>>2]=0}if((c|0)<(e|0))break a}d=0}return d}function cLa(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{c:{if(J[a+44>>2]>2])break c;b=-1;if(J[a+52>>2])break b;J[a+44>>2]=0;while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[a+8>>2]=b;if(K[b+2306848|0]==1&b>>>0<=255)continue;break}d:{e:{f:{b=J[a+8>>2];switch(b-122|0){case 4:break a;case 1:case 2:case 3:break d;case 0:break f;default:break e}}J[a+ -28>>2]=0;J[a+32>>2]=0;J[a+48>>2]=4;J[a+36>>2]=0;J[a+40>>2]=0;break c}if((b|0)==-1)break a}while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[a+12>>2]=b;if(K[b+2306848|0]==1&b>>>0<=255)continue;break}d=1;g:{h:{b=J[a+12>>2];if((b|0)==-1){c=1;break h}c=1;if((b|0)==126)break h;while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[a+16>>2]=b;if(K[b+2306848|0]==1&b>>>0<=255)continue;break}c=2;b=J[a+16>>2];if((b|0)==-1|(b|0)==126)break h;while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[a+20>>2]=b;if(K[b+ -2306848|0]==1&b>>>0<=255)continue;break}c=3;b=J[a+20>>2];if((b|0)==-1|(b|0)==126)break h;while(1){b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[a+24>>2]=b;if(K[b+2306848|0]==1&b>>>0<=255)continue;break}c=4;d=0;b=J[a+24>>2];if((b|0)==-1|(b|0)==126)break h;J[a+48>>2]=4;break g}J[a+48>>2]=c-1;if((b|0)!=126&(b|0)!=-1)break g;i:{if(!d)break i;e=4-c&7;if(e){b=0;while(1){c=c+1|0;J[((c<<2)+a|0)+8>>2]=117;b=b+1|0;if((e|0)!=(b|0))continue;break}}if(d)break i;while(1){d=a+8|0;b=d+(c<<2)|0;J[b+28>>2]=117;J[b+20>> -2]=117;J[b+24>>2]=117;J[b+12>>2]=117;J[b+16>>2]=117;J[b+4>>2]=117;J[b+8>>2]=117;c=c+8|0;J[d+(c<<2)>>2]=117;continue}}J[a+52>>2]=1}b=(J[a+24>>2]+P(J[a+20>>2]+P(J[a+16>>2]+P(J[a+12>>2]+P(J[a+8>>2],85)|0,85)|0,85)|0,85)|0)-1743128013|0;J[a+40>>2]=b&255;J[a+28>>2]=b>>>24;J[a+36>>2]=b>>>8&255;J[a+32>>2]=b>>>16&255}b=J[((J[a+44>>2]<<2)+a|0)+28>>2]}return b|0}J[a+48>>2]=0;J[a+52>>2]=1;return-1}function vba(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;a:{c=J[a+584>>2];if(c){if(J[c+16>>2])break a; -b:{if(K[a+13|0]&4){e=J[a+72>>2];d=J[a+68>>2];f=Km(a);break b}d=J[a+60>>2]-J[a+472>>2]|0;f=J[a+100>>2];e=d>>>0>>0?d:f;d=J[a+56>>2];f=dT(a)}J[c+840>>2]=f;c:{if(!b){f=d;break c}if(L[a+138>>1]!=2){f=d;break c}f=0;g=L[c+834>>1];if(0-g>>>0>d>>>0)f=((d+g|0)-1>>>0)/(g>>>0)|0;d=L[c+836>>1];if(0-d>>>0<=e>>>0){e=0;break c}e=((d+e|0)-1>>>0)/(d>>>0)|0}if(!(e>>>0<65536&f>>>0<=65535)){Nc(J[a+628>>2],97728,87607,0);return 0}J[c+32>>2]=e;J[c+28>>2]=f;d:{e:{if(L[a+138>>1]==1){J[c+36>>2]=L[a+98>>1];if(L[c+832>>1]== -6){e=1;f:{if(J[c+924>>2]==1){J[c+40>>2]=2;break f}J[c+40>>2]=3;if(L[c+834>>1]==1&L[c+836>>1]==1)break f;e=0}if(!rE(c,3))return 0;J[J[c+84>>2]+8>>2]=L[c+834>>1];J[J[c+84>>2]+12>>2]=L[c+836>>1];break e}f=0;J[c+40>>2]=0;e=1;if(rE(c,0))break e;break d}J[c+36>>2]=1;J[c+40>>2]=0;f=0;if(!rE(c,0))break d;J[J[c+84>>2]>>2]=b;e=1;if(!b|L[c+832>>1]!=6)break e;J[J[c+84>>2]+16>>2]=1;J[J[c+84>>2]+20>>2]=1;J[J[c+84>>2]+24>>2]=1}f=0;J[c+256>>2]=0;J[c+244>>2]=0;if(!BO(c,J[c+920>>2]))break d;b=J[c+928>>2];g:{if(b&1)break g; -d=J[c+88>>2];if(d)J[d+128>>2]=0;d=J[c+92>>2];if(!d)break g;J[d+128>>2]=0}J[c+216>>2]=(b^-1)>>>1&1;h:{if(e){J[c+208>>2]=0;J[a+560>>2]=649;J[a+552>>2]=649;J[a+544>>2]=649;if(AO(c))break h;break d}J[c+208>>2]=1;J[a+560>>2]=661;J[a+552>>2]=661;J[a+544>>2]=661;if(!AO(c))break d;b=J[a+584>>2];g=J[c+76>>2];i:{if((g|0)<=0){d=0;break i}a=J[c+84>>2];d=0;e=0;while(1){j=J[a+8>>2];h=J[a+12>>2];i=zO(b,J[a+28>>2]<<3,h<<3);if(!i)break d;J[(b+(e<<2)|0)+844>>2]=i;a=a+88|0;d=P(j,h)+d|0;e=e+1|0;if((g|0)!=(e|0))continue; -break}}J[b+888>>2]=d}J[c+884>>2]=0;f=1}return f|0}fa(75254,70490,1306,97728);B()}fa(82240,70490,1307,97728);B()}function hk(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{if((b|0)<0|J[a+16>>2]<=(b|0))break b;h=J[J[a+24>>2]+(b<<2)>>2];a=J[h+16>>2];if((a|0)<=(c|0))break b;b=J[h+20>>2];if((a|0)<(c+e|0)|(b|0)<=(d|0)|(b|0)<(d+f|0))break b;c:{if(J[g+20>>2]==(f|0)){a=f;if(J[g+24>>2]==(e|0))break c}a=0;k=-1;d:{if(J[g+40>>2]<(P(e,f)|0)|J[g+32>>2]<(f|0))break d;J[g+24>>2]=e;J[g+20>>2]=f;k=0;if((f| -0)<=0)break d;if(f>>>0>=4){j=f&-4;b=0;while(1){J[J[g+28>>2]+(a<<2)>>2]=J[g+36>>2]+(P(a,e)<<2);i=a|1;J[J[g+28>>2]+(i<<2)>>2]=J[g+36>>2]+(P(e,i)<<2);i=a|2;J[J[g+28>>2]+(i<<2)>>2]=J[g+36>>2]+(P(e,i)<<2);i=a|3;J[J[g+28>>2]+(i<<2)>>2]=J[g+36>>2]+(P(e,i)<<2);a=a+4|0;b=b+4|0;if((j|0)!=(b|0))continue;break}}j=f&3;if(!j)break d;b=0;while(1){J[J[g+28>>2]+(a<<2)>>2]=J[g+36>>2]+(P(a,e)<<2);a=a+1|0;b=b+1|0;if((j|0)!=(b|0))continue;break}}if(k)break b;a=J[g+20>>2]}j=J[g+28>>2];k=J[j>>2];b=0;g=0;g=(a|0)>=2?J[j+ -4>>2]-k>>2:g;if((f|0)<=0)break a;if((e|0)>0){o=g<<2;while(1){j=k;i=e;if((Mg(J[h+32>>2],P(J[h+36>>2],P(J[h+16>>2],d+l|0)+c|0),0)|0)<0)break b;while(1){m=0;e:{g=J[h+36>>2];if((g|0)<=0)break e;while(1){a=J[h+32>>2];b=J[a+8>>2];if(b&7)break b;n=J[a+64>>2];if(!((n|0)>=0&J[a+60>>2]>=(n|0))){b=J[a+28>>2];J[a+28>>2]=b-1;f:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=a;a=J[a+24>>2];J[b+24>>2]=a+1;a=K[a|0];break f}b=-1;a=jd(a,1);if((a|0)==-1)break a}m=a&255|m<<8;a=(g|0)>1;g=g-1|0;if(!a)break e;continue}break}J[a+ -8>>2]=b|4;break b}b=J[h+24>>2];g=1<>2])a=a-(g&0-(a>>>b-1&1))|0;J[j>>2]=a;j=j+4|0;a=(i|0)>1;i=i-1|0;if(a)continue;break}k=k+o|0;b=0;l=l+1|0;if((l|0)!=(f|0))continue;break}break a}while(1){if((Mg(J[h+32>>2],P(J[h+36>>2],P(J[h+16>>2],d+l|0)+c|0),0)|0)<0)break b;l=l+1|0;if((l|0)!=(f|0))continue;break}break a}b=-1}return b}function A$(a){var b=0,c=0,d=0,e=0;a:{b:{c:{if(!a)break c;d:{e:{f:{g:{h:{i:{b=K[a|0];switch(b-73|0){case 0:break f;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break g; -case 15:break h;default:break i}}b=b-105|0;if(!b)break e;if((b|0)!=15)break g;b=a;if(K[a+1|0]==45)break a;break d}b=a;if(K[a+1|0]==45)break a;break d}b=a;break d}b=a;if(K[a+1|0]!=45)break d;break a}b=a;if(K[a+1|0]==45)break a}while(1){d=b;b=b+1|0;c=K[d|0];if(((c&223)-65&255)>>>0<26)continue;break}a=d-a|0;if((a|0)>=4)return!c&a>>>0<9;if((a|0)<2)break c;e=1;if(!c)break b;if((c|0)!=45)break c;j:{k:{l:{a=K[b|0];if((a-48&255)>>>0<10)break l;c=b;if(((a&223)-65&255)>>>0<=25){d=b;while(1){a=K[d+1|0];c=d+ -1|0;d=c;if(((a&223)-65&255)>>>0<26)continue;break}}m:{n:{b=c-b|0;switch(b-2|0){case 0:break k;case 2:break m;default:break n}}if(b-5>>>0<4)break j;if((b|0)!=3)break c;a=a&255;if(!a)break b;if((a|0)!=45)break c;b=c+1|0;if((K[c+1|0]-48&255)>>>0<10)break l;d=b;while(1){c=d;d=c+1|0;a=K[c|0];if(((a&223)-65&255)>>>0<26)continue;break}b=c-b|0;if((b|0)==2)break k;if(b-5>>>0<4)break j;if((b|0)!=4)break c}a=a&255;if(!a)break b;if((a|0)!=45)break c;b=c+1|0;if((K[c+1|0]-48&255)>>>0<10)break l;d=b;while(1){c= -d;d=c+1|0;a=K[c|0];if(((a&223)-65&255)>>>0<26)continue;break}b=c-b|0;if(b-5>>>0<4)break j;if((b|0)==2)break k;break c}if((K[b+1|0]-48&255)>>>0>9|(K[b+2|0]-48&255)>>>0>9)break c;c=b+3|0;a=K[b+3|0]}a=a&255;if(!a)break b;if((a|0)!=45)break c;c=c+1|0;b=c;while(1){d=b;b=b+1|0;a=K[d|0];if(((a&223)-65&255)>>>0<26)continue;break}e=0;if((d-c|0)-9>>>0<4294967292)break b}a=a&255;return!a|(a|0)==45}e=0}return e}b=a+2|0;while(1){a=K[b|0];b=b+1|0;if(((a&223)-65&255)>>>0<26)continue;break}return!a}function j0(a, -b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=bc-352|0;bc=f;a:{if(!a|!J[a+4>>2])break a;j=J[689514];g=J[659549];h=J[a+48>>2];if(!(!h|J[h+4>>2]!=1))m=J[h+8>>2];i=d?e:j;g=d?d:g;d=J[a+12>>2];k=J[a>>2];l=J[a+20>>2];b:{c:{d:{if(b){h=J[b+36>>2];if(!h){j=0;break d}e=J[h+4>>2];e:{if(e){j=h;h=0;break e}e=J[b+40>>2];if((e|0)<2){j=h;h=0;break c}j=J[(J[b+48>>2]+(e<<2)|0)-8>>2];if(!j){j=0;break b}e=J[j+4>>2];if(!e)break c}J[f+180>>2]=J[j+28>>2];J[f+176>>2]=e;gc[g|0](i,29761,f+176|0);break b}e=J[a+16>>2];if(e){J[f+ -148>>2]=l;J[f+144>>2]=e;gc[g|0](i,29761,f+144|0);j=0;break d}j=0;if(!(1<>>0>19))break d;J[f+128>>2]=l;gc[g|0](i,29769,f+128|0)}h=0;break b}if(!l|(k|0)!=1)break b;J[f+160>>2]=J[j+28>>2];gc[g|0](i,29769,f+160|0)}if(m){J[f+112>>2]=m;gc[g|0](i,29712,f+112|0)}e=k-1|0;if(!(e>>>0>29|!(1048558845>>>e&1)))gc[g|0](i,J[(e<<2)+773620>>2],0);if(d>>>0<=3)gc[g|0](i,J[(d<<2)+773740>>2],0);f:{if(c){g:{if(!K[c|0])break g;e=0;d=c;while(1){e=e+1|0;m=K[d+1|0];d=d+1|0;if(m)continue;break}if(K[(c+e|0)- -1|0]==10)break g;J[f+96>>2]=c;gc[g|0](i,32890,f+96|0);break f}J[f+80>>2]=c;gc[g|0](i,4607,f+80|0);break f}J[f+64>>2]=4780;gc[g|0](i,32890,f- -64|0)}h:{if(!b)break h;xp(j,g,i);if(!h)break h;b=J[h+4>>2];i:{if(b){J[f+52>>2]=J[h+28>>2];J[f+48>>2]=b;gc[g|0](i,39135,f+48|0);break i}if(!l|(k|0)!=1)break i;J[f+32>>2]=J[h+28>>2];gc[g|0](i,39144,f+32|0)}xp(h,g,i)}if((k|0)!=12)break a;b=J[a+24>>2];if(!b)break a;c=J[a+36>>2];if((c|0)>99)break a;e=0;if(K[b|0]){d=b;while(1){e=e+1|0;h=K[d+1|0];d=d+1|0;if(h)continue; -break}}if((c|0)>=(e|0))break a;J[f+16>>2]=b;gc[g|0](i,32890,f+16|0);d=J[a+36>>2];j:{if((d|0)<=0){d=0;break j}wc(f+192|0,32,d)}a=f+192|0;b=a+d|0;H[b|0]=94;H[b+1|0]=0;J[f>>2]=a;gc[g|0](i,32890,f)}bc=f+352|0}function MWa(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;d=bc-32|0;bc=d;g=K[b+11|0];i=g<<24>>24;a:{b:{j=(i|0)<0?J[b+4>>2]:g;h=j+1|0;if(h>>>0<1073741808){c:{if(h>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=h;g=d;h=d+4|0;break c}g=h|3;if(g>>>0>=1073741823)break b; -k=g+1|0;g=rc(k<<2);J[d+4>>2]=h;J[d>>2]=g;J[d+8>>2]=k|-2147483648;h=g+4|0}J[g>>2]=32;g=(i|0)<0?J[b>>2]:b;b=j<<2;l=Zc(h,g,b)+b|0,m=0,J[l>>2]=m;J[695492]=0;b=aa(2860,d|0,817272)|0;g=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((g|0)!=1){J[d+24>>2]=J[b+8>>2];g=J[b+4>>2];J[d+16>>2]=J[b>>2];J[d+20>>2]=g;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;b=K[d+27|0];g=b<<24>>24<0;ga(2794,a|0,(g?J[d+16>>2]:d+16|0)|0,(g?J[d+20>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+ -11|0]<0)qc(J[d>>2]);J[695492]=0;J[d+16>>2]=34;J[d+20>>2]=0;H[d+27|0]=1;ga(2794,a|0,d+16|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if(H[d+27|0]<0)qc(J[d+16>>2]);b=K[e+11|0];g=b<<24>>24<0;hy(a,g?J[e>>2]:e,g?J[e+4>>2]:b);b=d+16|0;BE(b,c);J[695492]=0;e=b;b=K[d+27|0];c=b<<24>>24<0;ga(2794,a|0,(c?J[d+16>>2]:e)|0,(c?J[d+20>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[d+27|0]<0)qc(J[d+16>>2]);b=K[f+11|0];c=b<<24>>24<0;hy(a,c?J[f>>2]:f,c?J[f+4>>2]:b);J[695492]=0;J[d+16>>2]=34;J[d+20>>2]= -0;H[d+27|0]=1;ga(2794,a|0,d+16|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;if(H[d+27|0]<0)qc(J[d+16>>2]);bc=d+32|0;return}a=Z()|0;if(H[d+27|0]>=0)break d;break a}a=Z()|0;break g}a=Z()|0;if(H[d+27|0]>=0)break g;qc(J[d+16>>2])}if(H[d+11|0]>=0)break d;qc(J[d>>2]);ba(a|0);B()}a=Z()|0;if(H[d+27|0]>=0)break d;break a}a=Z()|0;if(H[d+27|0]>=0)break d;qc(J[d+16>>2])}ba(a|0);B()}Id(d);B()}Sd();B()}qc(J[d+16>>2]);ba(a|0);B()}function Y1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;d=J[a+32>> -2];if(d){e=d-4|0;c=J[e>>2];if(c){c=d+P(c,20)|0;while(1){f=c-20|0;if(H[c-9|0]<0)qc(J[f>>2]);c=f;if((d|0)!=(c|0))continue;break}}qc(e);J[a+32>>2]=0}c=g+24|0;J[c+4>>2]=b;J[c>>2]=b;J[695492]=0;b=J[c+4>>2];f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+4>>2]=b+4;b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;J[a+36>>2]=f;b:{c:{if((f|0)<=0)break c;d=0;J[695492]=0;b=Dzb(f,0,20,0);h=b+4|0;b=$(27,(fc?-1:b>>>0>h>>>0?-1:h)|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b>>2]=f;e=b+4|0;b=e;h=P(f,20); -i=h-20|0;j=((i>>>0)/20|0)+1&7;if(j)while(1){J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;b=b+20|0;d=d+1|0;if((j|0)!=(d|0))continue;break}if(i>>>0>=140){d=e+h|0;while(1){J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;J[b+120>>2]=0;J[b+124>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;J[b+8>>2]=0;J[b+28>>2]=0;J[b+48>>2]=0;J[b+68>>2]=0;J[b+88>>2]=0;J[b+108>>2]=0;J[b+128>>2]=0;J[b+148>>2]=0;b=b+160|0;if((d|0)!=(b|0))continue; -break}}J[a+32>>2]=e;d=0;if((f|0)<=0)break c;while(1){J[695492]=0;da(2822,g+12|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;f=P(d,20);b=f+J[a+32>>2]|0;if(H[b+11|0]<0)qc(J[b>>2]);e=J[g+16>>2];J[b>>2]=J[g+12>>2];J[b+4>>2]=e;J[b+8>>2]=J[g+20>>2];J[695492]=0;b=J[c+4>>2];e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+4>>2]=b+4;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[(f+J[a+32>>2]|0)+12>>2]=e;J[695492]=0;b=J[c+4>>2];e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+4>>2]=b+4;b=J[695492]; -J[695492]=0;if((b|0)==1)break b;J[(f+J[a+32>>2]|0)+16>>2]=e;d=d+1|0;if((d|0)>2])continue;break}}bc=g+32|0;return}}ba(Z()|0);B()}function Spb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=bc-16|0;bc=f;a:{b:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;c=1029;Dc(a,1029,0,0);break a}if(c>>>0>2){k=d;while(1){j=k;k=j+1|0;if(K[j|0])continue;break}i=j-d|0;if((i|0)>(c|0)){c=1043;Dc(a,1043,0,0);break a}if((d|0)==(j|0)){c=1044;Dc(a, -1044,0,0);break a}if(K[k|0]){c=1038;Dc(a,1038,0,0);break a}J[f+4>>2]=0;l=(c-i|0)-2|0;c:{if(!J[a+192>>2])break c;c=su(a,j+2|0,l,f+4|0,f+8|0,f+12|0);if(c){b=J[f+4>>2];if(!b)break a;gc[J[a+156>>2]](b,J[f+8>>2]);break a}c=i+1|0;h=gc[J[a+152>>2]](c)|0;if(!h){b=J[f+4>>2];if(b)gc[J[a+156>>2]](b,J[f+8>>2]);c=1;Dc(a,1,0,0);break a}m=tc(h,d,i);g=J[f+4>>2];if(gc[J[a+192>>2]](a,1,m,g,0,0)|0)break c;if(g)gc[J[a+156>>2]](g,J[f+8>>2]);gc[J[a+156>>2]](m,c);c=904;Dc(a,904,0,0);break a}d:{if(!K[a+112|0])break d;c= -gc[J[b+4>>2]](a,b,e)|0;if(c){if(g)gc[J[a+156>>2]](g,J[f+8>>2]);if(!h)break a;gc[J[a+156>>2]](h,i+1|0);break a}b=J[e>>2];J[b+32>>2]=i;H[b+40|0]=K[k|0];e:{if(g|!l)break e;c=su(a,j+2|0,l,f+4|0,f+8|0,f+12|0);if(!c)break e;b=J[f+4>>2];if(b)gc[J[a+156>>2]](b,J[f+8>>2]);if(!h)break a;gc[J[a+156>>2]](h,i+1|0);break a}b=i+1|0;c=gc[J[a+152>>2]](b)|0;J[J[e>>2]+36>>2]=c;c=J[J[e>>2]+36>>2];if(!c){c=J[f+4>>2];if(c)gc[J[a+156>>2]](c,J[f+8>>2]);if(h)gc[J[a+156>>2]](h,b);c=1;Dc(a,1,0,0);break a}tc(c,d,i);c=J[f+12>> -2];J[J[e>>2]+44>>2]=c;if(!l){g=J[f+4>>2];break d}d=gc[J[a+152>>2]](c+1|0)|0;J[J[e>>2]+48>>2]=d;g=J[f+4>>2];d=J[J[e>>2]+48>>2];if(!d){if(g)gc[J[a+156>>2]](g,J[f+8>>2]);if(h)gc[J[a+156>>2]](h,b);c=1;Dc(a,1,0,0);break a}tc(d,g,c)}if(g)gc[J[a+156>>2]](g,J[f+8>>2]);c=0;if(!h)break a;gc[J[a+156>>2]](h,i+1|0);break a}c=1028;Dc(a,1028,0,0)}bc=f+16|0;return c|0}function Xga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=bc-208|0;bc=f;J[f+200>>2]=37;J[f+204>>2]=0;j=f+200|0;h= -uy(j|1,39181,J[c+4>>2]);g=f+160|0;J[f+156>>2]=g;a=Wg();a:{if(h){i=J[c+8>>2];O[f+40>>3]=e;J[f+32>>2]=i;a=ni(g,30,a,j,f+32|0);break a}O[f+48>>3]=e;a=ni(f+160|0,30,a,f+200|0,f+48|0)}J[f+80>>2]=1617;j=ng(f+148|0,0,f+80|0);i=f+160|0;g=i;b:{c:{d:{e:{if((a|0)>=30){f:{if(h){J[695492]=0;a=pa(6638)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[f>>2]=J[c+8>>2];J[695492]=0;O[f+8>>3]=e;a=ha(6659,f+156|0,a|0,f+200|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1)break f;break d}J[695492]=0;a=pa(6638)|0;g=J[695492]; -J[695492]=0;if((g|0)==1)break d;O[f+16>>3]=e;J[695492]=0;a=ha(6659,f+156|0,a|0,f+200|0,f+16|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d}if((a|0)==-1){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;break e}ih(j,J[f+156>>2]);g=J[f+156>>2]}l=a+g|0;m=Kj(g,l,c);J[f+68>>2]=1617;g=ng(f+72|0,0,f+68|0);g:{h:{if(J[f+156>>2]==(f+160|0)){a=f+80|0;break h}a=zc(a<<1);if(!a){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)!=1)break e;b=Z()|0;break g}ih(g,a);i=J[f+156>>2]}J[695492]=0; -h=f+60|0;k=J[c+28>>2];J[h>>2]=k;J[k+4>>2]=J[k+4>>2]+1;k=J[695492];J[695492]=0;i:{j:{if((k|0)!=1){J[695492]=0;ua(6660,i|0,m|0,l|0,a|0,f+68|0,f- -64|0,h|0);i=J[695492];J[695492]=0;if((i|0)==1)break j;h=J[h>>2];i=J[h+4>>2]-1|0;J[h+4>>2]=i;if((i|0)==-1)gc[J[J[h>>2]+8>>2]](h);J[695492]=0;a=ja(6661,b|0,a|0,J[f+68>>2],J[f+64>>2],c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;Ae(g);Ae(j);bc=f+208|0;break b}b=Z()|0;break g}b=Z()|0;a=J[f+60>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+ -8>>2]](a);break g}b=Z()|0}Ae(g);break c}B()}b=Z()|0}Ae(j);ba(b|0);B()}return a|0}function Kga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=bc-368|0;bc=f;J[f+360>>2]=37;J[f+364>>2]=0;j=f+360|0;h=uy(j|1,39181,J[c+4>>2]);g=f+320|0;J[f+316>>2]=g;a=Wg();a:{if(h){i=J[c+8>>2];O[f+40>>3]=e;J[f+32>>2]=i;a=ni(g,30,a,j,f+32|0);break a}O[f+48>>3]=e;a=ni(f+320|0,30,a,f+360|0,f+48|0)}J[f+80>>2]=1617;j=ng(f+308|0,0,f+80|0);i=f+320|0;g=i;b:{c:{d:{e:{if((a|0)>=30){f:{if(h){J[695492]= -0;a=pa(6638)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[f>>2]=J[c+8>>2];J[695492]=0;O[f+8>>3]=e;a=ha(6659,f+316|0,a|0,f+360|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1)break f;break d}J[695492]=0;a=pa(6638)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;O[f+16>>3]=e;J[695492]=0;a=ha(6659,f+316|0,a|0,f+360|0,f+16|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d}if((a|0)==-1){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)==1)break d;break e}ih(j,J[f+316>>2]);g=J[f+316>>2]}l=a+g|0;m=Kj(g, -l,c);J[f+68>>2]=1617;g=ng(f+72|0,0,f+68|0);g:{h:{if(J[f+316>>2]==(f+320|0)){a=f+80|0;break h}a=zc(a<<3);if(!a){J[695492]=0;ka(6618);a=J[695492];J[695492]=0;if((a|0)!=1)break e;b=Z()|0;break g}ih(g,a);i=J[f+316>>2]}J[695492]=0;h=f+60|0;k=J[c+28>>2];J[h>>2]=k;J[k+4>>2]=J[k+4>>2]+1;k=J[695492];J[695492]=0;i:{j:{if((k|0)!=1){J[695492]=0;ua(6671,i|0,m|0,l|0,a|0,f+68|0,f- -64|0,h|0);i=J[695492];J[695492]=0;if((i|0)==1)break j;h=J[h>>2];i=J[h+4>>2]-1|0;J[h+4>>2]=i;if((i|0)==-1)gc[J[J[h>>2]+8>>2]](h);J[695492]= -0;a=ja(6672,b|0,a|0,J[f+68>>2],J[f+64>>2],c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;Ae(g);Ae(j);bc=f+368|0;break b}b=Z()|0;break g}b=Z()|0;a=J[f+60>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ae(g);break c}B()}b=Z()|0}Ae(j);ba(b|0);B()}return a|0}function wW(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;j=bc-256|0;bc=j;a:{if(!a){a=0;break a}if(!(J[a>>2]==(b|0)&J[a+4>>2]==(c|0))){J[a+4>>2]=c;J[a>>2]=b;J[j>>2]=c;J[j+128>>2]=b;e=c;f=b;while(1){o= -i;i=i+1|0;h=i<<2;n=(e+1|0)/2|0;J[h+j>>2]=n;k=h+(j+128|0)|0;h=(f+1|0)/2|0;J[k>>2]=h;m=P(e,f);g=m+g|0;e=n;f=h;if(m>>>0>1)continue;break}J[a+8>>2]=g;b:{c:{d:{e:{if(!g){e=J[a+12>>2];if(!e)break d;f=a+12|0;break e}g=g<<4;if(g>>>0<=M[a+16>>2])break b;b=Tg(J[a+12>>2],g);if(b)break c;Hc(d,1,2339903,0);f=a+12|0;e=J[f>>2];if(!e)break d}qc(e);J[f>>2]=0}qc(a);a=0;break a}J[a+12>>2]=b;c=b;b=J[a+16>>2];wc(c+b|0,0,g-b|0);J[a+16>>2]=g;c=J[a+4>>2];b=J[a>>2]}f=J[a+12>>2];if(o){d=0;e=(P(b,c)<<4)+f|0;g=e;while(1){b= -d<<2;k=J[b+j>>2];f:{if((k|0)<=0)break f;m=k-1|0;l=0;g:{h:{c=J[b+(j+128|0)>>2];if((c|0)<=0){n=k&1;i=0;if((k|0)!=1)break h;b=g;break g}while(1){b=g;g=c;while(1){i:{J[f>>2]=e;if((g|0)==1){f=f+16|0;e=e+16|0;break i}J[f+16>>2]=e;e=e+16|0;f=f+32|0;h=(g|0)>2;g=g-2|0;if(h)continue}break}h=((l|0)==(m|0)|l)&1;g=h?e:b+(c<<4)|0;e=h?e:b;l=l+1|0;if((k|0)!=(l|0))continue;break}break f}h=k&-2;while(1){b=(i|0)==(m|0);i=i+2|0;e=b?e:g;g=e;b=e;l=l+2|0;if((h|0)!=(l|0))continue;break}}if(!n){g=e;break f}g=(c<<4)+b|0;c= -((i|0)==(m|0)|i)&1;g=c?e:g;e=c?e:b}d=d+1|0;if((o|0)!=(d|0))continue;break}}J[f>>2]=0}c=J[a+8>>2];if(!c)break a;e=J[a+12>>2];if(c>>>0>=4){b=c&-4;f=0;while(1){J[e+12>>2]=0;J[e+4>>2]=999;J[e+8>>2]=0;J[e+60>>2]=0;J[e+52>>2]=999;J[e+56>>2]=0;J[e+44>>2]=0;J[e+36>>2]=999;J[e+40>>2]=0;J[e+28>>2]=0;J[e+20>>2]=999;J[e+24>>2]=0;e=e- -64|0;f=f+4|0;if((b|0)!=(f|0))continue;break}}b=c&3;if(!b)break a;f=0;while(1){J[e+12>>2]=0;J[e+4>>2]=999;J[e+8>>2]=0;e=e+16|0;f=f+1|0;if((b|0)!=(f|0))continue;break}}bc=j+256|0; -return a}function UQa(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;e=bc-32|0;bc=e;a:{b:{if(J[J[a+28>>2]+664>>2]){b=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,822547,0);break b}c=J[a+8>>2];if(!(gc[J[J[c>>2]+28>>2]](c)|0)|!J[a+100>>2])break b;c=J[b+8>>2];b=J[a+20>>2];J[e+16>>2]=13;d:{while(1){if(J[b+56>>2]==7){f=e+16|0;if(J[Bc(J[b- -64>>2],c,f,0)>>2]!=5)break d;uc(f)}b=J[b+104>>2];if(b)continue;break}J[e>>2]= -c;xc(1,-1,789427,e);break b}b=e+16|0;c=iZ(b);uc(b);if(!c)break b;b=J[a+8>>2];gc[J[J[b>>2]+64>>2]](b,J[a+28>>2]);f=J[a+28>>2];d=rc(672);J[695492]=0;b=ga(3389,d|0,f|0,1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[a+28>>2]=b;if(J[c+176>>2]){h=O[c+168>>3];i=O[c+160>>3];j=O[c+144>>3];k=O[c+152>>3];O[b+608>>3]=k;O[b+600>>3]=j;b=J[b+596>>2];O[b+16>>3]=k;O[b+8>>3]=j;J[b>>2]=1;b=J[a+28>>2];O[b+608>>3]=k;O[b+600>>3]=i;ie(J[b+596>>2],i,k);b=J[a+28>>2];O[b+608>>3]=h;O[b+600>>3]=i;ie(J[b+596>>2],i,h);b=J[a+ -28>>2];O[b+608>>3]=h;O[b+600>>3]=j;ie(J[b+596>>2],j,h);b=J[a+28>>2];_f(J[b+596>>2]);d=J[b+596>>2];d=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];g=J[d+12>>2]<<3;O[b+600>>3]=O[(g+J[d>>2]|0)-8>>3];O[b+608>>3]=O[(g+J[d+4>>2]|0)-8>>3];wj(J[a+28>>2]);b=J[a+8>>2];gc[J[J[b>>2]+220>>2]](b,J[a+28>>2]);Rf(J[a+28>>2]);b=J[a+28>>2]}d=J[c+8>>2];g=gc[J[J[d>>2]+8>>2]](d)|0;d=J[b+116>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[b+116>>2]=g;b=J[a+8>>2];gc[J[J[b>>2]+108>>2]](b,J[a+28>>2]);wZ(a,c);b=J[a+28>>2];if(J[b+668>>2])while(1){b= -Zl(b);J[a+28>>2]=b;d=J[a+8>>2];gc[J[J[d>>2]+68>>2]](d,b);b=J[a+28>>2];if(J[b+668>>2])continue;break}qc(Nq(b));J[a+28>>2]=f;a=J[a+8>>2];gc[J[J[a>>2]+68>>2]](a,f);gc[J[J[c>>2]+4>>2]](c)}bc=e+32|0;return}a=Z()|0;qc(d);ba(a|0);B()}function frb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){o=e-2|0;p=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];f=a+3|0;g=g+3|0;a:{if(k>>>0>o>>>0)break a;j=k?(k|0)==(o|0)?d:b:c;l=!k&p;if(l){if(j>>> -0<2)break a;h=j-1|0;i=h&3;if(j-2>>>0>=3){j=h&-4;h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a|0];H[g+4|0]=K[a+1|0];H[g+5|0]=K[a+2|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];H[g+8|0]=K[a+2|0];H[g+9|0]=K[a|0];H[g+10|0]=K[a+1|0];H[g+11|0]=K[a+2|0];g=g+12|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];g=g+3|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;m= -i-1|0;n=m&3;if(i-2>>>0>=3){m=m&-4;i=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a|0];H[g+4|0]=K[a+1|0];H[g+5|0]=K[a+2|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];H[g+8|0]=K[a+2|0];H[g+9|0]=K[a|0];H[g+10|0]=K[a+1|0];H[g+11|0]=K[a+2|0];g=g+12|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;if(!n)break b;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];g=g+3|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;a=l?0:f;n=j+(h^-1)|0;i=0;l=j-h&3;if(l)while(1){H[g| -0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];h=h+1|0;g=g+3|0;i=i+1|0;if((l|0)!=(i|0))continue;break}if(n>>>0<3)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a|0];H[g+4|0]=K[a+1|0];H[g+5|0]=K[a+2|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];H[g+8|0]=K[a+2|0];H[g+9|0]=K[a|0];H[g+10|0]=K[a+1|0];H[g+11|0]=K[a+2|0];g=g+12|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function Utb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=J[J[a+2248>>2]+ -88>>2];d=J[f+1168>>2];b=(J[f+1176>>2]+P(d,J[a+572>>2])|0)+P(d,J[a+2268>>2])|0;f=J[f+1164>>2];e=(b+P(f,J[a+580>>2])|0)+P(f,J[a+2264>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;f=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((f|0)<=0)break a;f=0;while(1){c=K[e|0]|K[e+1|0]<<8;b=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=b+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[e|0]=c;H[e+1|0]=c>>>8;c=e+2|0;b=K[c|0]|K[c+1|0]<<8;g=(b<<8|b>>>8)&65535;b=K[d+2|0]|K[d+3|0]<<8;b=g+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1| -0]=b>>>8;c=e+4|0;b=K[c|0]|K[c+1|0]<<8;g=(b<<8|b>>>8)&65535;b=K[d+4|0]|K[d+5|0]<<8;b=g+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;c=e+6|0;b=K[c|0]|K[c+1|0]<<8;g=(b<<8|b>>>8)&65535;b=K[d+6|0]|K[d+7|0]<<8;b=g+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d+8|0;e=(J[a+584>>2]<<3)+e|0;c=J[a+588>>2];f=f+1|0;if((c|0)>(f|0))continue;break}break b}if((f|0)<=0)break a;f=0;while(1){c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16| -K[d+3|0]<<24);H[e|0]=b;H[e+1|0]=b>>>8;H[e+2|0]=b>>>16;H[e+3|0]=b>>>24;H[e+4|0]=c;H[e+5|0]=c>>>8;H[e+6|0]=c>>>16;H[e+7|0]=c>>>24;d=d+8|0;e=(J[a+584>>2]<<3)+e|0;c=J[a+588>>2];f=f+1|0;if((c|0)>(f|0))continue;break}}if((c|0)<=0)break a;f=J[a+540>>2];e=(J[f+1176>>2]+P(J[a+572>>2],J[f+1168>>2])|0)+P(J[a+580>>2],J[f+1164>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;c=0;while(1){f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[e|0]=b;H[e+1|0]=b>>>8;H[e+2|0]=b>>> -16;H[e+3|0]=b>>>24;H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;d=d+8|0;e=(J[a+584>>2]<<3)+e|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Y_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;u=bc-288|0;bc=u;q=J[a+332>>2];b=J[b+84>>2];a=u;while(1){j=J[b+96>>2];i=I[c+48>>1];k=J[b+160>>2];h=I[c+80>>1];o=J[b+224>>2];m=I[c+112>>1];n=J[b+32>>2];v=I[c+16>>1];r=P(I[c>>1],J[b>>2])<<13|1024;l=P(J[b+192>> -2],I[c+96>>1]);s=r+P(l,-11586)|0;g=P(J[b+64>>2],I[c+32>>1]);f=P(J[b+128>>2],I[c+64>>1]);t=g-f|0;J[a+128>>2]=s+P(t,-11586)>>11;w=P(f+g|0,10887);x=P(f,2012);f=r+P(l,5793)|0;l=(w-x|0)+f|0;k=P(h,k);h=P(n,v);n=P(k+h|0,7447);j=P(P(i,j),-10033);i=P(m,o);o=P(i+h|0,3962);m=(n-j|0)+o|0;J[a+256>>2]=l-m>>11;J[a>>2]=m+l>>11;m=s+P(t,5793)|0;h=P(h-(i+k|0)|0,10033);J[a+224>>2]=m-h>>11;J[a+32>>2]=h+m>>11;g=P(g,8875);h=g+(f-w|0)|0;k=P(k-i|0,11409);i=n+(j-k|0)|0;J[a+192>>2]=h-i>>11;J[a+64>>2]=h+i>>11;g=(f-g|0)+x|0; -f=o+(j+k|0)|0;J[a+160>>2]=g-f>>11;J[a+96>>2]=f+g>>11;a=a+4|0;b=b+4|0;c=c+2|0;p=p+1|0;if((p|0)!=8)continue;break}b=q+128|0;a=u;p=0;while(1){c=J[(p<<2)+d>>2]+e|0;g=J[a+20>>2];f=J[a+4>>2];o=P(g+f|0,7447);k=P(J[a+12>>2],-10033);h=J[a+28>>2];m=P(h+f|0,3962);n=(o-k|0)+m|0;r=(J[a>>2]<<13)+131072|0;l=J[a+24>>2];q=r+P(l,5793)|0;j=J[a+16>>2];i=J[a+8>>2];v=P(j+i|0,10887);t=P(j,2012);s=q+(v-t|0)|0;H[c|0]=K[b+(n+s>>>18&1023)|0];H[c+8|0]=K[b+(s-n>>>18&1023)|0];f=P(f-(h+g|0)|0,10033);n=r+P(l,-11586)|0;j=i-j|0;l= -n+P(j,5793)|0;H[c+1|0]=K[b+(f+l>>>18&1023)|0];H[c+7|0]=K[b+(l-f>>>18&1023)|0];g=P(g-h|0,11409);f=o+(k-g|0)|0;h=P(i,8875);i=h+(q-v|0)|0;H[c+2|0]=K[b+(f+i>>>18&1023)|0];H[c+6|0]=K[b+(i-f>>>18&1023)|0];g=m+(g+k|0)|0;f=t+(q-h|0)|0;H[c+3|0]=K[b+(g+f>>>18&1023)|0];H[c+5|0]=K[b+(f-g>>>18&1023)|0];H[c+4|0]=K[b+(n+P(j,268423870)>>>18&1023)|0];a=a+32|0;p=p+1|0;if((p|0)!=9)continue;break}bc=u+288|0}function C2a(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;a:{h=a;f=b+72|0;k=J[f+48>>2];b=J[f+ -44>>2];i=f+40|0;if(!(!k|(b|0)==(i|0))){a=b;while(1){if(!(J[a+24>>2]<(c|0)|J[a+20>>2]>(c|0))){if(H[a+19|0]>=0){b=J[a+12>>2];J[h>>2]=J[a+8>>2];J[h+4>>2]=b;J[h+8>>2]=J[a+16>>2];break a}Re(h,J[a+8>>2],J[a+12>>2]);break a}a=J[a+4>>2];if((i|0)!=(a|0))continue;break}}b:{c:{g=J[f+36>>2];if((g|0)<=0)break c;d=J[f+32>>2];if(!d)break c;a=0;d:{e:{f:{g:{if(g>>>0>=2){e=g-1|0;while(1){g=a+e>>1;j=P(g,20)+d|0;h:{if(J[j+12>>2]>(c|0)){e=g-1|0;break h}if(J[j+16>>2]>=(c|0))break g;a=g+1|0}if((a|0)<(e|0))continue;break}}if((a| -0)<=(e|0))break f;break c}a=rc(28);J[a>>2]=0;e=a+8|0;c=P(g,20)+d|0;i:{if(H[c+11|0]>=0){l=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=l;J[e+8>>2]=J[c+8>>2];break i}b=J[c+4>>2];c=J[c>>2];J[695492]=0;ca(15,e|0,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;d=J[f+32>>2];k=J[f+48>>2];b=J[f+44>>2]}c=J[j+16>>2];e=J[j+12>>2];J[a+4>>2]=b;J[a>>2]=i;J[a+20>>2]=e;J[a+24>>2]=c;J[b>>2]=a;J[f+48>>2]=k+1;J[f+44>>2]=a;a=P(g,20)+d|0;if(H[a+11|0]>=0)break d;break b}b=P(a,20)+d|0;if(!(J[b+12>>2]<=(c|0)&J[b+16>>2]>=(c| -0)))break c;c=rc(28);J[c>>2]=0;d=c+8|0;j:{k:{l:{if(H[b+11|0]>=0){e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;J[d+8>>2]=J[b+8>>2];break l}e=J[b+4>>2];g=J[b>>2];J[695492]=0;ca(15,d|0,g|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break k}d=J[b+16>>2];b=J[b+12>>2];J[c>>2]=i;J[c+20>>2]=b;J[c+24>>2]=d;b=J[i+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[i+4>>2]=c;J[i+8>>2]=J[i+8>>2]+1;break j}a=Z()|0;qc(c);ba(a|0);B()}a=J[f+32>>2]+P(a,20)|0;if(H[a+11|0]>=0)break d;break b}b=Z()|0;qc(a);ba(b|0);B()}b=J[a+4>>2];J[h>>2]=J[a>>2]; -J[h+4>>2]=b;J[h+8>>2]=J[a+8>>2];break a}J[h>>2]=0;H[h+11|0]=0;break a}Re(h,J[a>>2],J[a+4>>2])}}function Mx(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:switch(K[a+498|0]){case 3:b=$g(a,L[a+1154>>1]);if(b)Lh(a,b,0);H[a+498|0]=0;return 0;default:g=L[a+1156>>1];b=L[a+1154>>1];d=I[a+1152>>1];c=L[a+1150>>1];break a;case 0:break b}b=L[a+1150>>1];d=L[a+1152>>1];g=b>>>0>d>>>0?-1:1;I[a+1156>>1]=g;c=b}c:{d:{if((K[a+1148|0]&254)!=6){e:{while(1){c=$g(a,b&65535);f:{if(!c)break f;if(K[a+498|0]){Lh(a,c,0);H[a+ -498|0]=0;break f}g:switch(K[a+1148|0]){case 0:H[c+31|0]=1;Lh(a,c,0);break f;case 1:H[c+31|0]=0;break f;case 2:if(!K[c+31|0])break f;Lh(a,c,0);break f;case 3:H[c+31|0]=1;break f;case 4:e=K[c+31|0];H[c+31|0]=!e;if(e)break f;Lh(a,c,0);break f;case 5:break g;default:break f}H[c+31|0]=!K[c+31|0]}if(K[a+497|0])break e;b=b+g<<16>>16;c=d<<16>>16;e=g<<16>>16;if((b|0)<=(c|0)&(e|0)>0|(e|0)<0&(b|0)>=(c|0))continue;break}H[a+498|0]=0;break d}I[a+1154>>1]=b;H[a+498|0]=4;return 0}i=1;h:{if(g<<16>>16>0){h=d<<16>> -16;if((h|0)>16)break c;while(1){d=0;b=c;while(1){f=$g(a,b&65535);i:{if(!f)break i;if(d&65535){H[f+31|0]=0;break i}if(e&65535){H[f+31|0]=1;d=b;j=f;break i}if(!K[f+31|0]){e=0;d=0;break i}d=0;H[f+31|0]=0;e=b}b=b+g<<16>>16;if((h|0)>=(b|0))continue;break}b=e&65535;e=b>>>0<=1?1:b;b=!(d&65535)&i;i=0;if(b)continue;break}break h}h=d<<16>>16;if((h|0)>c<<16>>16)break c;while(1){d=0;b=c;while(1){f=$g(a,b&65535);j:{if(!f)break j;if(d&65535){H[f+31|0]=0;break j}if(e&65535){H[f+31|0]=1;d=b;j=f;break j}if(!K[f+ -31|0]){e=0;d=0;break j}d=0;H[f+31|0]=0;e=b}b=b+g<<16>>16;if((h|0)<=(b|0))continue;break}b=e&65535;e=b>>>0<=1?1:b;b=!(d&65535)&i;i=0;if(b)continue;break}}H[a+498|0]=0;if(!j|K[a+1148|0]!=6)break d;Lh(a,j,0);if(!K[a+497|0])break d;I[a+1154>>1]=d;H[a+498|0]=3;return 0}return 0}H[a+498|0]=0;return 0}function G7(a,b,c){var d=0,e=0,f=Q(0),g=0,h=0,i=Q(0),j=Q(0),k=0,l=0,m=0;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]+16>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(!(N[c+(d<<2)>>2]>2]))break b;J[a>>2]=d;J[b>> -2]=e;return 1;case 3:c=J[J[c>>2]+16>>2];b=b-4|0;e=J[b>>2];f=N[c+(e<<2)>>2];g=J[a+4>>2];i=N[c+(g<<2)>>2];d=J[a>>2];j=N[c+(d<<2)>>2];if(!(i>2]=e;J[b>>2]=g;b=J[a+4>>2];d=J[a>>2];if(!(N[c+(b<<2)>>2]>2]))break b;break a}if(f>2]=e;J[b>>2]=d;return 1}J[a+4>>2]=d;J[a>>2]=g;e=J[b>>2];if(!(j>N[c+(e<<2)>>2]))break b;J[a+4>>2]=e;J[b>>2]=d;return 1;case 4:Ax(a,a+4|0,a+8|0,b-4|0,c);return 1;case 5:Ax(a,a+4|0,a+8|0,a+12|0,c);c=J[J[c>>2]+16>>2];b=b-4|0;d=J[b>>2];e= -J[a+12>>2];if(!(N[c+(d<<2)>>2]>2]))break b;J[a+12>>2]=d;J[b>>2]=e;b=J[a+12>>2];f=N[c+(b<<2)>>2];d=J[a+8>>2];if(!(f>2]))break b;J[a+8>>2]=b;J[a+12>>2]=d;d=J[a+4>>2];if(!(f>2]))break b;J[a+8>>2]=d;J[a+4>>2]=b;d=J[a>>2];if(!(f>2]))break b;break a;case 0:case 1:break b;default:break c}g=a+4|0;d=a+8|0;k=J[J[c>>2]+16>>2];h=J[a+8>>2];f=N[k+(h<<2)>>2];l=J[a+4>>2];i=N[(l<<2)+k>>2];m=J[a>>2];j=N[(m<<2)+k>>2];d:{e:{if(!(i>2]=h;J[d>>2]= -l;e=a;c=g;if(f>2]=m;J[a>>2]=l;e=g;if(!(f>2]=h;J[c>>2]=m}g=a+12|0;if((g|0)==(b|0))break b;e=0;while(1){f:{c=g;l=J[c>>2];f=N[(l<<2)+k>>2];h=J[d>>2];if(!(f>2]))break f;while(1){g:{J[c>>2]=h;c=d;if((c|0)==(a|0)){c=a;break g}d=c-4|0;h=J[d>>2];if(f>2])continue}break}J[c>>2]=l;e=e+1|0;if((e|0)!=8)break f;return(g+4|0)==(b|0)}d=g;c=d+4|0;g=c;if((b|0)!=(c|0))continue;break}}return 1}J[a+4>>2]=d;J[a>>2]=b;return 1}function F7(a, -b,c){var d=0,e=0,f=Q(0),g=0,h=0,i=Q(0),j=Q(0),k=0,l=0,m=0;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(!(N[c+(d<<2)>>2]>2]))break b;J[a>>2]=d;J[b>>2]=e;return 1;case 3:c=J[J[c>>2]+12>>2];b=b-4|0;e=J[b>>2];f=N[c+(e<<2)>>2];g=J[a+4>>2];i=N[c+(g<<2)>>2];d=J[a>>2];j=N[c+(d<<2)>>2];if(!(i>2]=e;J[b>>2]=g;b=J[a+4>>2];d=J[a>>2];if(!(N[c+(b<<2)>>2]>2]))break b;break a}if(f>2]=e;J[b>>2]=d;return 1}J[a+4>>2]=d;J[a>> -2]=g;e=J[b>>2];if(!(j>N[c+(e<<2)>>2]))break b;J[a+4>>2]=e;J[b>>2]=d;return 1;case 4:zx(a,a+4|0,a+8|0,b-4|0,c);return 1;case 5:zx(a,a+4|0,a+8|0,a+12|0,c);c=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[a+12>>2];if(!(N[c+(d<<2)>>2]>2]))break b;J[a+12>>2]=d;J[b>>2]=e;b=J[a+12>>2];f=N[c+(b<<2)>>2];d=J[a+8>>2];if(!(f>2]))break b;J[a+8>>2]=b;J[a+12>>2]=d;d=J[a+4>>2];if(!(f>2]))break b;J[a+8>>2]=d;J[a+4>>2]=b;d=J[a>>2];if(!(f>2]))break b;break a;case 0:case 1:break b; -default:break c}g=a+4|0;d=a+8|0;k=J[J[c>>2]+12>>2];h=J[a+8>>2];f=N[k+(h<<2)>>2];l=J[a+4>>2];i=N[(l<<2)+k>>2];m=J[a>>2];j=N[(m<<2)+k>>2];d:{e:{if(!(i>2]=h;J[d>>2]=l;e=a;c=g;if(f>2]=m;J[a>>2]=l;e=g;if(!(f>2]=h;J[c>>2]=m}g=a+12|0;if((g|0)==(b|0))break b;e=0;while(1){f:{c=g;l=J[c>>2];f=N[(l<<2)+k>>2];h=J[d>>2];if(!(f>2]))break f;while(1){g:{J[c>>2]=h;c=d;if((c|0)==(a|0)){c=a;break g}d=c-4|0;h=J[d>>2]; -if(f>2])continue}break}J[c>>2]=l;e=e+1|0;if((e|0)!=8)break f;return(g+4|0)==(b|0)}d=g;c=d+4|0;g=c;if((b|0)!=(c|0))continue;break}}return 1}J[a+4>>2]=d;J[a>>2]=b;return 1}function D8a(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;e=bc-16|0;bc=e;d=J[b>>2];i=J[d>>2];J[J[i>>2]+20>>2]=c;c=i;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+24>>2]=0;J[c+28>>2]=-1;J[c+208>>2]=0;J[c+212>>2]=-1;J[c+176>>2]=0;J[c+180>>2]=0;J[c+400>>2]=0;J[c+404>>2]=0;J[d+156>>2]=0;if(K[a+ -96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1172>>2]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}i=a+100|0;while(1){a:{j=e+8|0;d=J[b>>2];h=d+8|0;k=d+176|0;l=d+168|0;while(1){b:{c:{d:{e:switch(J[d+156>>2]){case 1:c=J[d+160>>2];break d;case 2:break c;case 0:break e;default:continue}c=Yt(J[d>>2],l,k);J[d+156>>2]= -1;J[d+160>>2]=c}if(!c){c=0;break b}J[h+120>>2]=0;J[h+124>>2]=0;J[h+72>>2]=0;Qt(h,O[l>>3],O[k>>3],1);f:{while(1){c=Yt(J[d>>2],j,e);if(c-1>>>0<=13){J[d+160>>2]=c;f=O[j>>3];if((c|0)==1){O[l>>3]=f;O[k>>3]=O[e>>3];break f}Qt(h,f,O[e>>3],c);continue}if(!c){J[d+160>>2]=0;break f}if((c&15)!=15)continue;break}Qt(h,O[j>>3],O[e>>3],c)}U1(h);J[d+156>>2]=2}c=T1(h,j,e);if(c)break b;J[d+156>>2]=1;continue}break}if(c-1>>>0>=14){if(!c)break a;if((c&-49)!=79|J[a+1172>>2]!=2)continue;Fe(i,a,J[a+1164>>2],J[a+1168>>2]); -J[a+1172>>2]=3;continue}d=J[b+4>>2];g=O[e+8>>3];m=O[e>>3];f=O[d+32>>3]+(g*O[d>>3]+m*O[d+16>>3]);O[e+8>>3]=f;g=O[d+40>>3]+(g*O[d+8>>3]+m*O[d+24>>3]);O[e>>3]=g;if((c|0)==1)aL(a,f,g);else{g=g*256;g=g+(g<0?-.5:.5);g:{if(R(g)<2147483648){c=~~g;break g}c=-2147483648}f=f*256;f=f+(f<0?-.5:.5);h:{if(R(f)<2147483648){d=~~f;break h}d=-2147483648}Fe(i,a,d,c);J[a+1172>>2]=2}continue}break}bc=e+16|0}function qua(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=bc-48|0;bc=j;d=L[b+ -10>>1];e=L[b+8>>1];f=J[a+20>>2];if(f)qc(f);J[a+16>>2]=0;J[a+20>>2]=0;I[a+12>>1]=d;I[a+10>>1]=d;I[a+8>>1]=e;d=P(d,e);if(d){d=rc((n=-1,o=Dzb(d,0,3,0),p=fc,p?n:o));J[a+16>>2]=d;J[a+20>>2]=d}k=ch(j+12|0,j+20|0,0,3);a:{b:{c:{d:{e:{f:{if(!L[a+8>>1]|!L[a+10>>1])break f;g:{if(c)break g;J[695492]=0;ca(5443,k|0,256,3);c=J[695492];J[695492]=0;if((c|0)==1)break c;J[695492]=0;ci(k,3,0);c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[j+20>>2];d=L[b+16>>1];if(!d)break g;h=16711680/(d-1|0)|0;l=d&1;h:{if((d|0)==1){e= -0;d=255;break h}m=d&65534;e=0;d=16711680;f=0;while(1){g=P(e,3)+c|0;i=d>>>16|0;H[g+2|0]=i;H[g+1|0]=i;H[g|0]=i;g=P(e|1,3)+c|0;i=d-h|0;d=i>>>16|0;H[g+2|0]=d;H[g+1|0]=d;H[g|0]=d;e=e+2|0;d=i-h|0;f=f+2|0;if((m|0)!=(f|0))continue;break}d=d>>>16|0}if(!l)break g;e=P(e,3)+c|0;H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d}if(!L[a+8>>1])break f;f=0;while(1){h=L[a+12>>1];e=J[a+16>>2];if(!J[b+20>>2]){J[695492]=0;_(5017,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break e}d=L[b+14>>1];i:{if(L[b+8>>1]<=f>>>0){g=d;d=L[b+12>>1];if(J[682142]< -(g+d|0)){J[695492]=0;a=ja(5018,j+24|0,2381564,2381967,592,2411548,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;e=Z()|0;Fc(a);break b}d=d+J[682141]|0;break i}d=L[b+12>>1]+(J[b+20>>2]+P(d,f)|0)|0}if(L[a+10>>1]){i=e?e+P(P(f,h),3)|0:0;e=0;while(1){h=i+P(e,3)|0;g=P(K[d+e|0],3)+c|0;l=K[g|0]|K[g+1|0]<<8;H[h|0]=l;H[h+1|0]=l>>>8;H[h+2|0]=K[g+2|0];e=e+1|0;if(e>>>0>1])continue;break}}f=f+1|0;if(f>>>0>1])continue;break}}_c(k); -bc=j+48|0;return}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0}_c(k);ba(e|0)}B()}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,o=0,p=0;if(d)J[d>>2]=0;g=4;a:{while(1){f=j;i=(f|0)<214748364;b:{while(1){c:{if(!g)break c;b=b+1|0;if(b>>>0>2])break c;e=0;break a}e=4-g|0;j=K[b|0];h=j>>>g&15;if((h|0)==14){o=1;g=e;continue}if(h>>>0>9)break b;if(!i){n=n+1|0;g=e;continue}break}j=0;g=e;if(!(f|h))continue;l=l+1|0;j=P(f,10)+h|0;continue}break}g=0;d:{if((h|0)!=10)break d;e:while(1){k=(f|0)<214748364& -(m|0)<9;while(1){if(e){b=b+1|0;if(b>>>0>=M[a+8>>2]){e=0;break a}j=K[b|0]}i=4-e|0;h=(j&255)>>>e&15;if(h>>>0>9){e=i;break d}if(!(f|h)){n=n-1|0;f=0;e=i;continue e}e=i;if(!k)continue;break}m=m+1|0;f=P(f,10)+h|0;continue}}f:{g:{h:{if(h-11>>>0<=1){i=0;while(1){if(e){b=b+1|0;if(b>>>0>=M[a+8>>2]){e=0;break a}j=K[b|0]}k=(j&255)>>>e&15;if(k>>>0<=9){p=k+P(g,10)|0;k=(g|0)>1E3;g=k?g:p;i=k?1:i;e=4-e|0;continue}break}if(!f){e=0;break a}a=(h|0)==12;if(i)break g;e=a?0-g|0:g;break h}e=0;if(!f)break a}a=(c+n|0)+e|0; -if(d){a=a+l|0;b=l+m|0;if((b|0)<=5){if((f|0)>=32768){e=td(f,10);J[d>>2]=(a-b|0)+1;break a}i:{j:{if((a|0)<=0)break j;c=(a|0)>=5?5:a;e=c-b|0;if((e|0)<=0)break j;a=a-c|0;f=P(J[(e<<2)+258224>>2],f);if((f|0)<32768)break i;f=(f>>>0)/10|0;a=a+1|0;break i}a=a-b|0}J[d>>2]=a;e=f<<16;break a}b=b<<2;c=J[b+258204>>2];if(((f|0)/(c|0)|0)>=32768){e=td(f,J[b+258208>>2]);J[d>>2]=a-4;break a}e=td(f,c);J[d>>2]=a-5;break a}e=2147483647;b=a+l|0;if((b|0)>5)break a;if((b|0)<-5)break f;if((b|0)>=0)a=m-a|0;else{f=(f|0)/J[258224- -(b<<2)>>2]|0;a=l+m|0}c=(a|0)==10;b=c?(f|0)/10|0:f;a=c?9:a;if((a|0)>0){e=0;a=J[(a<<2)+258224>>2];if(((b|0)/(a|0)|0)>32767)break a;e=td(b,a);break a}a=P(b,J[258224-(a<<2)>>2]);e=(a|0)>32767?2147483647:a<<16;break a}e=2147483647;if(!a)break a}e=0}return o?0-e|0:e}function Sh(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=bc-32|0;bc=h;J[h+16>>2]=13;a:{if((d|0)>=9){xc(1,-1,774527,0);break a}b:{c:{d:{e:switch(J[a>>2]-4|0){case 3:g=J[a+8>>2];break b;case 4:break c;case 0:break e;default:break d}if(Ec(J[a+8>>2], -775640))break d;if((b|0)!=(c|0)){xc(1,-1,776873,0);break a}f=rc(1048);J[f+8>>2]=b;J[f>>2]=2204924;J[f+4>>2]=b;f:{if((b|0)<=0)break f;c=0;d=0;if(b>>>0>=4){j=b&-4;while(1){a=f+16|0;g=d<<4;e=a+g|0;J[e+8>>2]=0;J[e+12>>2]=1072693248;J[e>>2]=0;J[e+4>>2]=0;e=a+(g|16)|0;J[e+8>>2]=0;J[e+12>>2]=1072693248;J[e>>2]=0;J[e+4>>2]=0;e=a+(g|32)|0;J[e+8>>2]=0;J[e+12>>2]=1072693248;J[e>>2]=0;J[e+4>>2]=0;a=a+(g|48)|0;J[a+8>>2]=0;J[a+12>>2]=1072693248;J[a>>2]=0;J[a+4>>2]=0;d=d+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}b= -b&3;if(!b)break f;while(1){a=(d<<4)+f|0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;d=d+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}J[f+1040>>2]=0;break a}xc(1,-1,778186,0);break a}f=J[a+8>>2];g=gc[J[J[f>>2]+76>>2]](f)|0}f=0;e=h+16|0;if(J[Bc(g,779660,e,0)>>2]!=1){xc(1,-1,780642,0);uc(e);break a}e=J[h+24>>2];uc(h+16|0);g:{h:{i:{j:switch(e|0){case 0:e=rc(2992);J[695492]=0;a=ga(3384,e|0,a|0,g|0)|0;break i;case 2:e=rc(1576);J[695492]=0;a=ga(3385,e|0,h|0,g|0)|0;break i;case 3:e=rc(1072); -J[695492]=0;a=ja(3386,e|0,h|0,g|0,b|0,c|0,d|0)|0;break i;case 4:break j;default:break h}e=rc(1584);J[695492]=0;a=ga(3387,e|0,a|0,g|0)|0}d=J[695492];J[695492]=0;if((d|0)!=1)break g;a=Z()|0;qc(e);ba(a|0);B()}J[h>>2]=e;xc(1,-1,782128,h);break a}if(!(gc[J[J[a>>2]+20>>2]](a)|0)){gc[J[J[a>>2]+4>>2]](a);break a}k:{if(J[a+4>>2]!=(b|0))break k;if((c|0)<0){f=a;break a}if(J[a+8>>2]!=(c|0))break k;f=a;break a}xc(1,-1,782499,0);gc[J[J[a>>2]+4>>2]](a)}bc=h+32|0;return f}function VS(a){var b=0,c=0,d=0,e=0;J[695492]= -0;_(6320,a|0);b=J[695492];J[695492]=0;if((b|0)!=1){e=J[a+224>>2];if(e){b=e;d=J[a+228>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];a:{if(!c)break a;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break a;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((d|0)!=(e|0))continue;break}b=J[a+224>>2]}J[a+228>>2]=e;qc(b)}c=J[a+212>>2];if(c){b=J[a+216>>2];d=c;if((b|0)!=(c|0)){while(1){e=b-12|0;if(H[b-1|0]<0)qc(J[e>>2]);b=e;if((c|0)!=(b|0))continue;break}d=J[a+212>>2]}J[a+216>>2]=c;qc(d)}e=J[a+200>>2];if(e){b=e;d=J[a+204>>2];if((b|0)!= -(d|0)){while(1){d=d-8|0;c=J[d+4>>2];b:{if(!c)break b;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break b;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((d|0)!=(e|0))continue;break}b=J[a+200>>2]}J[a+204>>2]=e;qc(b)}e=J[a+188>>2];if(e){b=e;d=J[a+192>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];c:{if(!c)break c;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break c;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((d|0)!=(e|0))continue;break}b=J[a+188>>2]}J[a+192>>2]=e;qc(b)}e=J[a+176>>2];if(e){b=e;d=J[a+180>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>> -2];d:{if(!c)break d;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break d;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((d|0)!=(e|0))continue;break}b=J[a+176>>2]}J[a+180>>2]=e;qc(b)}e=J[a+164>>2];if(e){b=e;d=J[a+168>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];e:{if(!c)break e;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break e;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((d|0)!=(e|0))continue;break}b=J[a+164>>2]}J[a+168>>2]=e;qc(b)}e=J[a+152>>2];if(e){b=e;d=J[a+156>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];f:{if(!c)break f;b=J[c+4>>2];J[c+ -4>>2]=b-1;if(b)break f;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((d|0)!=(e|0))continue;break}b=J[a+152>>2]}J[a+156>>2]=e;qc(b)}ZF(a+72|0);return}ea(0)|0;yc();B()}function hl(a,b,c){var d=0,e=0,f=0,g=0,h=0;h=bc-16|0;bc=h;a:{if(J[a+4>>2]!=1?a:0)break a;b:{if(!c)break b;d=9668;if((c|0)!=9668){e=c;while(1){f=K[e|0];if((f|0)!=K[d|0])break b;d=d+1|0;e=e+1|0;if(f)continue;break}}d=14838;f=0;if((b|0)==14838)break a;if(!b)break b;e=b;while(1){g=K[e|0];if((g|0)!=K[d|0])break b;d=d+1|0;e=e+1|0;if(g)continue;break}break a}f= -gc[J[659447]](24)|0;if(!f){J[h>>2]=14895;Cc(0,0,0,0,0,2,2,3,14895,0,0,0,32863,h);f=0;break a}J[f>>2]=0;J[f+4>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+4>>2]=18;if(b){d=b;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}d=0;e=e-b|0;c:{if((e|0)<0)break c;g=gc[J[659450]](e+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break c}d=tc(g,b,e);H[e+d|0]=0}J[f+8>>2]=d}if(c){d=c;while(1){b=d;d=d+1|0;if(K[b|0])continue;break}d=0;b=b-c|0;d:{if((b|0)<0)break d;e=gc[J[659450]](b+1|0)|0;if(!e){Cc(0, -0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}d=tc(e,c,b);H[b+d|0]=0}J[f+12>>2]=d}if(!a)break a;b=J[a+48>>2];if(!b){J[a+48>>2]=f;break a}e=0;c=J[f+12>>2];d=J[b+12>>2];if(c|d){e:{if((c|0)==(d|0))break e;f:{if(!d|!c)break f;e=c;while(1){a=K[d|0];if((a|0)!=K[e|0])break f;e=e+1|0;d=d+1|0;if(a)continue;break}break e}g:{d=J[b>>2];h:{if(!d)break h;if(c)while(1){b=d;d=J[d+12>>2];if((d|0)==(c|0))break g;e=c;i:{if(!d)break i;while(1){a=K[d|0];if((a|0)!=K[e|0])break i;e=e+1|0;d=d+1|0;if(a)continue;break}break g}d= -J[b>>2];if(d)continue;break h}while(1){b=d;if(!J[d+12>>2])break g;d=J[d>>2];if(d)continue;break}}J[b>>2]=f;break a}a=J[f+8>>2];if(a){gc[J[659451]](a);c=J[f+12>>2]}if(c)gc[J[659451]](c);gc[J[659451]](f);f=0;break a}e=c}a=J[f+8>>2];if(a){gc[J[659451]](a);e=J[f+12>>2]}if(e)gc[J[659451]](e);gc[J[659451]](f);f=0}bc=h+16|0;return f}function $aa(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;j=bc-16|0;bc=j;d=1;a:{if((c|0)<=0)break a;k=J[a+608>>2];m=J[a+604>>2];while(1){l=J[a+56>> -2];e=(l|0)>0;b:{if((l|0)<=0){f=k;g=0;break b}g=0;h=0;d=b;f=k;if((f|0)<=0)break b;while(1){c:{d:{e:{f:{g:{f=K[m|0];switch((f>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}h:{if(g&1){e=K[d|0]|h;H[d|0]=e;f=f-1|0;g=g+1|0;d=d+1|0;e=e&255;break h}e=h<<4|h}g=f+g|0;if(!((f|0)<=0|(l|0)<=(g|0))){i=f-2|0;h=(f>>>0>=i>>>0?i:0)+1|0;i=(h>>>1|0)+1|0;f=(f-(h&-2)|0)-2|0;d=wc(d,e,i)+i|0}if((f|0)==-1){d=d-1|0;H[d|0]=K[d|0]&240}h=e&15;break c}e=f>>>4&3;i:{if((e|0)==2){e=d;break i}e=J[(e<<2)+ -97776>>2]+h|0;h=e&15;j:{if(g&1){i=K[d|0]|h;e=d+1|0;break j}i=e<<4;e=d}g=g+1|0;H[d|0]=i}d=f>>>2&3;k:{if((d|0)==2){d=e;e=g;break k}d=J[(d<<2)+97776>>2]+h|0;h=d&15;l:{if(g&1){i=K[e|0]|h;d=e+1|0;break l}i=d<<4;d=e}H[e|0]=i;e=g+1|0}f=f&3;if((f|0)==2){g=e;break c}g=e+1|0;f=J[(f<<2)+97776>>2]+h|0;h=f&15;if(e&1){H[d|0]=K[d|0]|h;d=d+1|0;break c}H[d|0]=f<<4;break c}e=f>>>3&7;m:{if((e|0)==4){e=d;break m}e=J[(e<<2)+97792>>2]+h|0;h=e&15;n:{if(g&1){i=K[d|0]|h;e=d+1|0;break n}i=e<<4;e=d}H[d|0]=i;g=g+1|0}i=g;d=f& -7;if((d|0)==4){d=e;break c}g=i+1|0;d=J[(d<<2)+97792>>2]+h|0;h=d&15;if(i&1){H[e|0]=K[e|0]|h;d=e+1|0;break c}H[e|0]=d<<4;d=e;break c}e=g+1|0;h=f&15;o:{if(g&1){H[d|0]=K[d|0]|h;d=d+1|0;break o}H[d|0]=f<<4}g=e}f=k-1|0;m=m+1|0;e=(g|0)<(l|0);if(k>>>0<2)break b;k=f;if(e)continue;break}}J[a+608>>2]=f;J[a+604>>2]=m;if((g|0)!=(l|0)){b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[j+12>>2]=l;J[j+8>>2]=g;J[j+4>>2]=a;J[j>>2]=e?70196:70787;Nc(c,b,69716,j);d=0;break a}d=J[a+588>>2];b=d+b|0;k=f;c=c-d|0;if((c|0)>0)continue; -break}d=1}bc=j+16|0;return d|0}function Rv(a,b,c,d,e,f,g,h,i,j,k,l){var 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;o=bc-1152|0;bc=o;m=J[k+8>>2];p=gc[J[J[m>>2]+28>>2]](m)|0;kt(k,d,o+256|0);kt(k,g,o+128|0);kt(k,j,o);a:{b:{c:{d:{if((p|0)<=0)break d;while(1){m=t<<2;v=J[m+(o+128|0)>>2];x=J[m+(o+256|0)>>2]-v|0;y=x>>31;if((y^x)-y>>>0>256)break d;v=v-J[m+o>>2]|0;m=v>>31;if((m^v)-m>>>0>256)break d;t=t+1|0;if((p|0)!=(t|0))continue;break}m=J[a+28>>2];break c}m=J[a+28>>2];if((l|0)==6|(p|0)==(t|0))break c; -n=O[m+16>>3];u=e-b;q=f-c;s=O[m+32>>3];if(!(R(n*u+q*s)<.5))break b;w=O[m+24>>3];r=w*u;u=O[m+40>>3];if(!(R(r+q*u)<.5))break b;q=h-e;r=i-f;if(!(R(n*q+r*s)<.5)|!(R(w*q+r*u)<.5))break b;r=n;n=b-h;q=c-i;if(!(R(r*n+q*s)<.5)|!(R(w*n+q*u)<.5))break b}tc(m+124|0,o+256|0,128);d=J[a+8>>2];gc[J[J[d>>2]+116>>2]](d,J[a+28>>2]);d=J[a+28>>2];O[d+608>>3]=c;O[d+600>>3]=b;d=J[d+596>>2];O[d+16>>3]=c;O[d+8>>3]=b;J[d>>2]=1;d=J[a+28>>2];O[d+608>>3]=f;O[d+600>>3]=e;ie(J[d+596>>2],e,f);d=J[a+28>>2];O[d+608>>3]=i;O[d+600>> -3]=h;ie(J[d+596>>2],h,i);d=J[a+28>>2];_f(J[d+596>>2]);g=J[d+596>>2];g=J[(J[g+24>>2]+(J[g+28>>2]<<2)|0)-4>>2];j=J[g+12>>2]<<3;O[d+600>>3]=O[(j+J[g>>2]|0)-8>>3];O[d+608>>3]=O[(j+J[g+4>>2]|0)-8>>3];d=J[a+8>>2];gc[J[J[d>>2]+204>>2]](d,J[a+28>>2]);Rf(J[a+28>>2]);break a}t=J[k+324>>2];if((t|0)>0){m=0;while(1){p=m<<3;n=O[p+d>>3];s=O[g+p>>3];O[p+(o+896|0)>>3]=(n+s)*.5;r=n;n=O[j+p>>3];O[p+(o+384|0)>>3]=(r+n)*.5;O[p+(o+640|0)>>3]=(s+n)*.5;m=m+1|0;if((t|0)!=(m|0))continue;break}}r=b;q=c;t=d;n=(b+e)*.5;s=(c+ -f)*.5;m=o+896|0;b=(b+h)*.5;c=(c+i)*.5;p=o+384|0;d=l+1|0;Rv(a,r,q,t,n,s,m,b,c,p,k,d);r=e;q=f;l=g;e=(e+h)*.5;f=(f+i)*.5;g=o+640|0;Rv(a,n,s,m,r,q,l,e,f,g,k,d);Rv(a,n,s,m,e,f,g,b,c,p,k,d);Rv(a,b,c,p,e,f,g,h,i,j,k,d)}bc=o+1152|0}function cva(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;h=bc-32|0;bc=h;p=J[a+52>>2];i=J[a>>2];l=zc(Ol(i));a:{if(!l){Nc(J[i+628>>2],J[i>>2],81424,0);break a}Hg(l,0,Ol(i));J[h+16>>2]=h+28;ce(i,322,h+16|0);J[h>>2]=h+24;ce(i, -323,h);b:{c:{d:{e:{f:{g:{h:switch(L[a+28>>1]-1|0){case 0:case 4:f=L[a+30>>1];if(f>>>0>8)break d;e=1<>1];if(f>>>0>8)break d;e=1<>1];if(f>>>0>8)break d;f=1<>1];if(g>>>0>7)break d;f=1<< -g;if(f&34)break g;if(f&68)break f;g=2;if(!(f&136))break d;break c}g=1;break e}g=3}m=d-1|0;f=0-(J[h+28>>2]+c|0)|0;break b}g=0}t=1;f=c-J[h+28>>2]|0}q=1;if(!(!d|!c))while(1){e=J[h+24>>2];e=e-((J[a+76>>2]+k>>>0)%(e>>>0)|0)|0;n=e+k>>>0>d>>>0?d-k|0:e;r=(P(c,m)<<2)+b|0;e=0;while(1){i:{if(!((ws(i,l,J[a+80>>2]+e|0,J[a+76>>2]+k|0,0)|0)>=0|!J[a+4>>2])){q=0;break i}o=J[a+76>>2];j=J[h+24>>2];o=P(Km(i),(k+o>>>0)%(j>>>0)|0);j=J[h+28>>2];j:{if(j+e>>>0<=c>>>0){gc[p|0](a,(e<<2)+r|0,e,m,j,n,0,f,l+o|0);break j}s=c-e| -0;j=j-s|0;gc[p|0](a,(e<<2)+r|0,e,m,s,n,j,f+j|0,l+o|0)}e=J[h+28>>2]+e|0;if(e>>>0>>0)continue}break}m=(t?n:0-n|0)+m|0;k=k+n|0;if(k>>>0>>0)continue;break}qc(l);if(!d|g>>>0<2)break a;g=0;while(1){e=(P(c,g)<<2)+b|0;a=(e+(c<<2)|0)-4|0;if(a>>>0>e>>>0)while(1){f=J[e>>2];J[e>>2]=J[a>>2];J[a>>2]=f;a=a-4|0;e=e+4|0;if(a>>>0>e>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}bc=h+32|0;return q|0}function a4a(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;i= -bc-16|0;bc=i;a:{g=J[a+168>>2];b:{if(!g){g=0;break b}h=J[a+172>>2];if(!h)h=gc[J[J[g>>2]+16>>2]](g)|0;g=J[a+8>>2];if(g){gc[J[J[g>>2]+12>>2]](g)|0;J[a+8>>2]=0}j=L3(i+12|0);J[J[j>>2]>>2]=J[h+40>>2];k=J[J[h>>2]+28>>2];g=0;J[695492]=0;b=ma(k|0,h|0,j|0,b|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+8>>2]=b;c:{if(!b)break c;J[b+284>>2]=a;l=O[f>>3];m=O[e>>3];n=O[d>>3];J[695492]=0;gb(2681,b|0,+n,+m,+l);b=J[695492];J[695492]=0;if((b|0)==1)break a;c=a+112|0;d:{if(H[a+123|0]<0){J[a+116>>2]=0;b= -J[a+112>>2];break d}H[a+123|0]=0;b=c}J[b>>2]=0;g=1;b=J[J[a+8>>2]+188>>2];if(!b)break c;b=J[b+20>>2];e:{if(b){d=0;f:{f=K[b|0];if(!f)break f;h=b;while(1){e=d;d=d+1|0;k=K[h+1|0];h=h+1|0;if(k)continue;break}if((f|0)!=60|e>>>0<6|(K[b+1|0]!=117|K[b+2|0]!=116))break f;if(K[b+3|0]!=102|K[b+4|0]!=56|K[b+5|0]!=62)break f;J[695492]=0;ca(1618,i|0,b+6|0,e-5|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break a}J[695492]=0;ia(2682,i|0,b|0,d|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break a;break e}J[i>>2]=0;H[i+ -11|0]=0}b=J[a+8>>2];if(H[b+303|0]<0)qc(J[b+292>>2]);d=J[i+4>>2];J[b+292>>2]=J[i>>2];J[b+296>>2]=d;J[b+300>>2]=J[i+8>>2];b=J[a+8>>2];d=b+292|0;if((d|0)==(c|0))break c;f=K[b+303|0];e=f<<24>>24;if(H[a+123|0]>=0){if((e|0)>=0){a=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=a;J[c+8>>2]=J[d+8>>2];break c}a=J[b+296>>2];b=J[b+292>>2];J[695492]=0;ga(1630,c|0,b|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c;break a}a=J[b+296>>2];b=J[b+292>>2];J[695492]=0;h=b;b=(e|0)<0;ga(1629,c|0,(b?h:d)|0,(b?a:f)|0)|0;a=J[695492]; -J[695492]=0;if((a|0)==1)break a}Ed(j)}bc=i+16|0;return g|0}a=Z()|0;Ed(j);ba(a|0);B()}function WR(a,b,c){var d=0;a:{b:{c:{d:{e:{f:switch(c|0){case 1:gc[J[J[a>>2]+8>>2]](a,1);c=J[a+12>>2];J[a+12>>2]=c+4;J[c>>2]=b;break e;case 0:gc[J[J[a>>2]+8>>2]](a,1);b=J[a+12>>2];J[a+12>>2]=b+4;J[b>>2]=32;break e;case 2:gc[J[J[a>>2]+8>>2]](a,5);b=J[a+12>>2];J[b+8>>2]=109;J[b+12>>2]=112;J[b>>2]=38;J[b+4>>2]=97;break c;case 3:gc[J[J[a>>2]+8>>2]](a,6);b=J[a+12>>2];J[b+16>>2]=115;J[b+8>>2]=112;J[b+12>>2]=111;J[b>>2]= -38;J[b+4>>2]=97;break b;case 4:gc[J[J[a>>2]+8>>2]](a,4);b=J[a+12>>2];J[b+8>>2]=116;J[b>>2]=38;J[b+4>>2]=108;break a;case 5:gc[J[J[a>>2]+8>>2]](a,4);b=J[a+12>>2];J[b+8>>2]=116;J[b>>2]=38;J[b+4>>2]=103;break a;case 6:gc[J[J[a>>2]+8>>2]](a,6);b=J[a+12>>2];J[b+16>>2]=116;J[b+8>>2]=117;J[b+12>>2]=111;J[b>>2]=38;J[b+4>>2]=113;break b;case 7:gc[J[J[a>>2]+8>>2]](a,5);b=J[a+12>>2];J[b+8>>2]=120;J[b+12>>2]=65;break d;case 8:gc[J[J[a>>2]+8>>2]](a,5);b=J[a+12>>2];J[b+8>>2]=120;J[b+12>>2]=68;break d;case 9:gc[J[J[a>> -2]+8>>2]](a,5);b=J[a+12>>2];J[b+8>>2]=120;J[b+12>>2]=57;break d;case 10:gc[J[J[a>>2]+8>>2]](a,7);b=J[a+12>>2];J[b+16>>2]=53;J[b+20>>2]=70;J[b+8>>2]=48;J[b+12>>2]=48;J[b>>2]=95;J[b+4>>2]=120;J[a+12>>2]=b+28;J[b+24>>2]=95;J[a+16>>2]=J[a+16>>2]+7;return;case 11:gc[J[J[a>>2]+8>>2]](a,7);c=J[a+12>>2];J[c>>2]=95;J[c+4>>2]=120;d=J[a+16>>2];J[c+20>>2]=J[((b&15)<<2)+2451312>>2];J[c+16>>2]=J[(b>>>2&60)+2451312>>2];J[c+12>>2]=J[(b>>>6&60)+2451312>>2];J[c+8>>2]=J[(b>>>10&60)+2451312>>2];J[a+12>>2]=c+28;J[c+24>> -2]=95;J[a+16>>2]=d+7;break;default:break f}return}J[a+16>>2]=J[a+16>>2]+1;return}J[b>>2]=38;J[b+4>>2]=35}J[a+12>>2]=b+20;J[b+16>>2]=59;J[a+16>>2]=J[a+16>>2]+5;return}J[a+12>>2]=b+24;J[b+20>>2]=59;J[a+16>>2]=J[a+16>>2]+6;return}J[a+12>>2]=b+16;J[b+12>>2]=59;J[a+16>>2]=J[a+16>>2]+4}function jx(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;m=1;a:{b:{if(!J[b>>2]){b=c;break b}if(!J[c>>2])break b;m=0;if(J[c+8>>2]>2])break a}d=J[a+20>>2];c:{if(!d)break c;e=J[b+8>>2];d:{while(1){h=J[(P(g,20)+ -a|0)+36>>2];if((h|0)>=(e|0))break d;g=g+1|0;if((d|0)!=(g|0))continue;break}g=d;break c}if(K[(P(g,20)+a|0)+28|0]&8|(!m&(h|0)<=J[c+8>>2]|(e|0)==(h|0)))break a}d=J[a+4>>2];if(!(!K[d+12|0]|K[b|0]&16)){e:{if(!m){d=pm(d,(J[b+8>>2]+J[c+8>>2]|0)/2|0);e=Pc((J[c+8>>2]-J[b+8>>2]|0)/2|0,J[a+16>>2]);J[b+12>>2]=d-e;e=d+e|0;d=c;break e}e=pm(d,J[b+8>>2]);d=b}J[d+12>>2]=e}e=P(g,20)+a|0;if(J[b+12>>2]>2]?g:0)break a;d=J[a+20>>2];f:{if(d>>>0<=g>>>0)break f;e=J[e+40>>2];if(!m){if((e|0)>=J[c+12>>2])break f;break a}if((e| -0)>2])break a}h=d+!m|0;if(h>>>0>191)break a;k=d-g|0;g:{if(!k)break g;i=g+1|0;h:{if(!(k&1)){e=d;break h}f=a+28|0;j=f+P(h,20)|0;e=d-1|0;f=f+P(e,20)|0;l=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=l;J[j+16>>2]=J[f+16>>2];l=J[f+12>>2];J[j+8>>2]=J[f+8>>2];J[j+12>>2]=l;h=h-1|0;k=k-1|0}if((d|0)==(i|0))break g;j=a+28|0;while(1){i=j+P(e,20)|0;f=i-20|0;l=J[f+4>>2];d=j+P(h,20)|0;J[d>>2]=J[f>>2];J[d+4>>2]=l;J[d+16>>2]=J[f+16>>2];l=J[f+12>>2];J[d+8>>2]=J[f+8>>2];J[d+12>>2]=l;f=d-20|0;d=i-40|0;J[f+16>>2]=J[d+16>> -2];i=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=i;i=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=i;h=h-2|0;e=e-2|0;k=k-2|0;if(k)continue;break}}g=P(g,20);d=g+a|0;J[d+44>>2]=J[b+16>>2];e=J[b+12>>2];J[d+36>>2]=J[b+8>>2];J[d+40>>2]=e;e=J[b+4>>2];J[d+28>>2]=J[b>>2];J[d+32>>2]=e;J[a+20>>2]=J[a+20>>2]+1;if(m)break a;b=g+(a+20|0)|0;J[b+44>>2]=J[c+16>>2];d=J[c+12>>2];J[b+36>>2]=J[c+8>>2];J[b+40>>2]=d;d=J[c+4>>2];J[b+28>>2]=J[c>>2];J[b+32>>2]=d;J[a+20>>2]=J[a+20>>2]+1}}function tza(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d| -0;e=e|0;var f=0,g=0;f=bc-32|0;bc=f;a:{b:{c:{d:{if(!K[b+89|0]){a=Kc(f+8|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;Fc(a);ba(b|0);B()}J[a>>2]=0;J[695492]=0;ia(5222,f+8|0,b|0,c|0,0);b=J[695492];J[695492]=0;e:{if((b|0)!=1){f:{g:{h:{if(!J[f+8>>2])break h;J[695492]=0;b=$(5254,20)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;c=$(5255,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1){e=Z()|0;Tl(b);break b}J[695492]=0;J[f+4>>2]=0;b=f+ -4|0;aa(4985,b|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;da(5256,J[f+4>>2],f+8|0);c=J[695492];J[695492]=0;if((c|0)==1){e=Z()|0;vc(b);break b}J[695492]=0;aa(4993,a|0,f+4|0)|0;b=J[695492];J[695492]=0;i:{if((b|0)!=1){b=J[f+4>>2];J[f+4>>2]=0;j:{if(!b)break j;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g=J[695492];J[695492]=0;if((g|0)==1)break f;if(c)break j;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break f}if(!e)break i;J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break c;c=J[a>>2];J[695492]=0;ca(5245,b|0,c|0,e|0);b=J[695492];J[695492]=0;if((b|0)!=1)break i;break c}e=Z()|0;vc(f+4|0);break b}J[695492]=0;aa(5257,J[f+8>>2],0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;b=J[a>>2];if(!(!b|!d)){J[695492]=0;$(5001,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c}a=J[f+8>>2];J[f+8>>2]=0;if(!a)break h;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(b)break h;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a| -0)==1)break e}bc=f+32|0;return}e=Z()|0;break b}ea(0)|0;yc();B()}e=Z()|0;break a}ea(0)|0;yc()}B()}e=Z()|0}vc(f+8|0)}vc(a);ba(e|0);B()}function Me(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(!b)return 6;if(!a)return 40;d=J[a+32>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{g=K[b|0];switch(g-4|0){case 18:case 19:break h;case 16:case 17:break i;case 14:case 15:break j;case 12:case 13:break k;case 10:case 11:break l;case 8:case 9:break m;case 20:case 21:break n;case 0:break o;case 4:case 5:break f; -default:break g}}e=J[a+4>>2];g=L[b+2>>1];h=J[a+20>>2];if(h){if(e>>>0>>0){f=85;break c}e=J[a+28>>2];f=0;d=0;if(g){d=gc[J[e+4>>2]](e,g)|0;if(!d)break d;h=J[a+20>>2]}J[a>>2]=d;h=gc[h|0](a,J[a+8>>2],d,g)|0;d=J[a>>2];if(g>>>0>h>>>0){if(d)gc[J[e+8>>2]](e,d);J[a>>2]=0;f=85;d=0}J[a+32>>2]=d;J[a+36>>2]=d?d+g|0:0;J[a+8>>2]=h+J[a+8>>2];e=1;if(g>>>0<=h>>>0)break a;break c}f=85;d=J[a+8>>2];if(d>>>0>=e>>>0|g>>>0>e-d>>>0)break c;J[a+8>>2]=d+g;d=d+J[a>>2]|0;J[a+32>>2]=d;J[a+36>>2]=d+g;e=1;break a}f=K[b+1|0];e= -f+d|0;if(e>>>0>M[a+36>>2]){f=85;break c}if((g|0)!=24)break b;tc(L[b+2>>1]+c|0,d,f);break b}e=d+2|0;f=16;d=K[d+1|0]|K[d|0]<<8;break e}e=d+2|0;f=16;d=K[d|0]|K[d+1|0]<<8;break e}e=d+4|0;f=0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break e}e=d+4|0;f=0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);break e}f=8;e=d+3|0;d=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);break e}f=8;e=d+3|0;d=K[d|0]|(K[d+1|0]<<8|K[d+2|0]<<16);break e}J[a+32>>2]=d;f=0;break c}e=d+1|0;f= -24;d=K[d|0]}d=g&1?d<>f:d;f=L[b+2>>1]+c|0;p:{q:switch(K[b+1|0]-1|0){case 0:H[f|0]=d;break p;case 1:I[f>>1]=d;break p;default:break q}J[f>>2]=d}d=e;e=i;break a}J[a>>2]=0;f=64}if(i&255){if(J[a+20>>2]){b=J[a>>2];if(b){c=J[a+28>>2];gc[J[c+8>>2]](c,b)}J[a>>2]=0}J[a+32>>2]=0;J[a+36>>2]=0}return f}d=e;e=i}b=b+4|0;i=e;continue}}function NC(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;j=bc+-64|0;bc=j;J[j>>2]=J[b>>2];J[j+4>>2]=J[c>>2];l=K[e+9|0];n=l?10:9;while(1){i=(g<<2)+j|0;o=i;m=J[i>>2];J[i+8>> -2]=m;if(K[e+g|0]){i=J[a+8>>2];a:{if(J[a+12>>2]-i>>3>>>0<=h>>>0){i=0;k=J[a+4>>2];if(!k|J[k>>2])break a;J[k>>2]=130;break a}k=i+(h<<3)|0;i=J[k>>2];b:switch(J[k+4>>2]-1|0){case 1:i=i<<16;break a;case 0:break b;default:break a}i=((i>>31)+i|0)- -8192>>14}J[o+8>>2]=i+m;h=h+1|0}g=g+1|0;if((n|0)!=(g|0))continue;break}if(!l)J[j+44>>2]=J[c>>2];c:{if(f){i=J[j+44>>2];f=i-J[c>>2]|0;e=f>>31;f=(e^f)-e|0;k=J[j+40>>2];g=k-J[b>>2]|0;e=g>>31;l=(e^g)-e|0;e=J[a+8>>2];d:{if(J[a+12>>2]-e>>3>>>0<=h>>>0){g=0;e=J[a+4>>2]; -if(!e|J[e>>2])break d;J[e>>2]=130;break d}e=e+(h<<3)|0;g=J[e>>2];e:switch(J[e+4>>2]-1|0){case 1:g=g<<16;break d;case 0:break e;default:break d}g=((g>>31)+g|0)- -8192>>14}if((f|0)<(l|0)){g=g+k|0;h=J[c>>2];break c}h=g+i|0;g=J[b>>2];break c}f:{if(K[e+10|0]){i=J[j+40>>2];f=J[a+8>>2];g:{if(J[a+12>>2]-f>>3>>>0<=h>>>0){g=0;f=J[a+4>>2];if(!f|J[f>>2])break g;J[f>>2]=130;break g}f=f+(h<<3)|0;g=J[f>>2];h:switch(J[f+4>>2]-1|0){case 1:g=g<<16;break g;case 0:break h;default:break g}g=((g>>31)+g|0)- -8192>>14}h= -h+1|0;g=g+i|0;break f}g=J[b>>2]}if(K[e+11|0]){i=J[j+44>>2];e=J[a+8>>2];i:{if(J[a+12>>2]-e>>3>>>0<=h>>>0){h=0;e=J[a+4>>2];if(!e|J[e>>2])break i;J[e>>2]=130;h=i;break c}e=e+(h<<3)|0;h=J[e>>2];j:switch(J[e+4>>2]-1|0){case 1:h=(h<<16)+i|0;break c;case 0:break j;default:break i}h=((h>>31)+h|0)- -8192>>14}h=h+i|0;break c}h=J[c>>2];i=J[j+44>>2]}Kp(d,J[j+8>>2],J[j+12>>2],J[j+16>>2],J[j+20>>2],J[j+24>>2],J[j+28>>2]);Kp(d,J[j+32>>2],J[j+36>>2],J[j+40>>2],i,g,h);J[a+12>>2]=J[a+8>>2];J[b>>2]=g;J[c>>2]=h;bc=j- --64|0}function g6a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b+4>>2];J[a>>2]=349272;J[a+4>>2]=c;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=1065353216;J[a+48>>2]=0;J[a+52>>2]=0;J[a+92>>2]=1;J[a+84>>2]=0;J[a+88>>2]=1;J[a+76>>2]=0;J[a+80>>2]=0;J[a+68>>2]=1056964608;J[a+72>>2]=1065353216;I[a- -64>>1]=0;J[a+56>>2]=1065353216;J[a+60>>2]=1065353216;e=a+96|0;c=e;J[c>>2]=0;J[c+4>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+144>> -2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[695492]=0;c=$(4,24)|0;d=J[695492];J[695492]=0;if((d|0)==1){a=Z()|0;$j(e);ba(a|0);B()}d=c+24|0;J[a+148>>2]=d;J[a+140>>2]=c;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[a+144>>2]=d;wc(a+156|0,0,88);J[a+252>>2]=0;J[a+256>>2]=0;J[a+244>>2]=-16777216;J[a+248>>2]=-16777216;J[a+260>>2]=0;J[a+264>>2]=0;f=a+268|0;c=f;J[c>>2]=0;J[c+4>>2]=0;J[a+276>>2]=0;J[695492]=0;e=$(2278,a+280|0)|0;c=J[695492];J[695492]= -0;a:{b:{if((c|0)!=1){J[a+288>>2]=0;J[a+292>>2]=0;J[a+312>>2]=0;J[a+316>>2]=0;J[a+304>>2]=0;J[a+308>>2]=0;J[a+296>>2]=0;J[a+300>>2]=0;J[a+244>>2]=J[b+244>>2];J[a+248>>2]=J[b+248>>2];c=J[b+256>>2];J[a+252>>2]=J[b+252>>2];J[a+256>>2]=c;c=J[b+264>>2];J[a+260>>2]=J[b+260>>2];J[a+264>>2]=c;if((a|0)!=(b|0)){d=J[b+272>>2];c=J[b+268>>2];J[695492]=0;ca(2386,f|0,c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break b}J[695492]=0;Bj(e,b+280|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;N[a+284>>2]=N[b+284>>2]; -J[a+320>>2]=J[b+320>>2];J[a+324>>2]=J[b+324>>2];J[a+328>>2]=J[b+328>>2];J[a+332>>2]=J[b+332>>2];return a|0}b=Z()|0;break a}b=Z()|0;Ed(e)}c=J[f>>2];if(c){J[a+272>>2]=c;qc(c)}Qe(a+88|0);ba(b|0);B()}function rwa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d:{e:{f:{g:{b=J[b+8>>2];if(b){J[695492]=0;ca(5434,d+20|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[d+20>>2];h:{i:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+12|0,b|0,1);b=J[695492]; -J[695492]=0;if((b|0)!=1)break i;c=Z()|0;break h}J[d+12>>2]=0}J[695492]=0;aa(4993,a|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break g;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break g;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}break a}c=Z()|0;vc(d+12|0)}sc(d+20|0);break b}J[695492]=0;b=aa(4989,d+4|0,2382144)|0;c=J[695492];J[695492]=0;j:{k:{if((c|0)!=1){J[695492]=0;c=d+12|0;ca(5048,c|0,2379145,b| -0);e=J[695492];J[695492]=0;if((e|0)==1)break k;J[695492]=0;ca(5121,d+20|0,c|0,2379648);c=J[695492];J[695492]=0;if((c|0)==1)break j;c=J[d+20>>2];l:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+28|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break l;c=Z()|0;break d}J[d+28>>2]=0}J[695492]=0;aa(4993,a|0,d+28|0)|0;c=J[695492];J[695492]=0;m:{if((c|0)!=1){c=J[d+28>>2];J[d+28>>2]=0;if(!c)break m;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break m;J[695492]=0;_(4987, -c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break m}break a}c=Z()|0;vc(d+28|0);break d}c=a;a=J[a>>2];J[c+4>>2]=J[(a?a+12|0:2728584)>>2];sc(d+20|0);sc(d+12|0);sc(b);break f}c=Z()|0;break b}c=Z()|0;sc(b);break b}c=Z()|0;break c}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(d+20|0)}bc=d+32|0;return}c=Z()|0;break b}sc(d+20|0)}sc(d+12|0);sc(b)}sc(a);ba(c|0);B()}ea(0)|0;yc();B()}function kB(a){var b=0,c=0,d=0,e=0,f=0;d=bc+-64|0;bc=d;a:{if(K[J[J[a+36>>2]+16>>2]]!=37)break a;Qd(a);e=Uh(a);if(!e){fe(a, -68,34578);break a}if(K[J[J[a+36>>2]+16>>2]]!=59){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=23;J[d+48>>2]=29297;Cc(0,0,0,a,0,1,23,3,0,0,0,0,32890,d+48|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}Qd(a);J[a+440>>2]=J[a+440>>2]+1;c=J[a>>2];b:{if(!c)break b;c=J[c+96>>2];if(!c)break b;b=gc[c|0](J[a+4>>2],e)|0}if(J[a+172>>2]==-1)break a;c:{if(!b){d:{if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){J[a+84>>2]=26;J[d+16>>2]=e;Cc(0,0,0,a,0,1,26,3,e,0,0,0,34952,d+16|0);J[a+12>>2]=0;if(J[a+ -288>>2])break d;J[a+212>>2]=1;break d}co(a,27,34952,e);J[a+100>>2]=0}if(K[a+362|0]&8|(J[a+388>>2]&-2)!=26|(M[a+440>>2]<10001|(J[a+172>>2]==-1?J[a+212>>2]:0)))break c;J[a+84>>2]=89;J[d>>2]=5754;Cc(0,0,0,a,0,1,89,3,0,0,0,0,32890,d);J[a+12>>2]=0;if(J[a+288>>2])break c;J[a+212>>2]=1;break c}c=J[b+48>>2];if((c&-2)!=4){b=0;c=J[a>>2];if(c){b=J[c+108>>2]==-554844497?J[c+124>>2]:b;f=J[c+84>>2]}c=J[a+4>>2];J[d+36>>2]=0;J[d+32>>2]=e;Cc(b,f,c,a,0,1,27,1,e,0,0,0,29861,d+32|0);break c}if(J[J[a+36>>2]+40>>2]!=3179){if((zt(a, -z$(a,b))|0)>=0)break c;break a}if(!(J[a+16>>2]|(K[a+360|0]&30|(c|0)!=5)))if(!J[a+104>>2])break a;if((zt(a,FJ(a,b))|0)<0)break a;if(J[b+48>>2]!=5)break c;b=J[J[a+36>>2]+16>>2];if(K[b|0]!=60|K[b+1|0]!=63|(K[b+2|0]!=120|K[b+3|0]!=109))break c;if(K[b+4|0]!=108)break c;b=K[b+5|0]-9|0;if(b>>>0>23|!(1<>2]!=32)break c;J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(!b)break a;e=J[b+40>>2];if(e){gc[e|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39181;J[b+16>>2]=39181; -break a}J[a+92>>2]=1}bc=d- -64|0}function _Ha(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;J[a+4>>2]=0;J[a+8>>2]=0;J[a+24>>2]=0;J[a>>2]=0;J[a+12>>2]=0;c=a+36|0;J[c>>2]=0;J[c+4>>2]=0;J[a+32>>2]=c;J[695492]=0;d=$(4,472)|0;c=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((c|0)==1)break f;J[695492]=0;c=aa(3505,d|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;J[c+432>>2]=0;J[c+436>>2]=0;H[c+464|0]=0;J[c+456>>2]=0;J[c+460>>2]=0;J[c+448>>2]=0;J[c+452>>2]=0;J[c+440>>2]=0;J[c+444>>2]=0;J[689612]=c; -J[695492]=0;J[c+408>>2]=1;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;J[695492]=0;d=$(3507,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;J[a+20>>2]=d;c=J[J[b>>2]+52>>2];J[695492]=0;c=$(c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;J[a+16>>2]=c;J[695492]=0;c=pa(1619)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;d=J[J[b>>2]+24>>2];J[695492]=0;b=$(d|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;d=J[J[c>>2]+24>> -2];J[695492]=0;da(d|0,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;b=J[a+16>>2];d=J[J[b>>2]+68>>2];J[695492]=0;da(d|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[e+12>>2]=1;b=J[J[c>>2]+20>>2];J[695492]=0;da(b|0,c|0,e+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[a+16>>2];J[695492]=0;J[J[689612]+468>>2]=b;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;J[J[689612]+336>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;ca(3510,J[689612],0,0);b=J[695492]; -J[695492]=0;if((b|0)==1)break c;J[a+28>>2]=0;bc=e+16|0;return a|0}b=Z()|0;break a}b=Z()|0;qc(d);break a}b=Z()|0;qc(c);break a}b=Z()|0;break a}b=Z()|0}cl(a+32|0,J[a+36>>2]);if(H[a+15|0]<0)qc(J[a+4>>2]);ba(b|0);B()}function Hya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-96|0;bc=d;uV(J[a+108>>2],1);a:{b:{c:{d:{e:{f:{g:{h:{i:{if(K[a+136|0])if(!Mm(b,J[682138]))break i;if(c){b=WT(d+36|0,b);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break b}c=di();b=J[b+4>>2]; -b=Uk(d+36|0,b?b:2377794);e=J[J[c>>2]+20>>2];J[695492]=0;ga(e|0,c|0,a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){sc(b);break h}a=Z()|0;sc(b);break b}e=Qj(d+36|0,a+72|0);J[695492]=0;ca(5231,d+28|0,e|0,0);g=J[695492];J[695492]=0;j:{k:{if((g|0)!=1){J[695492]=0;g=aa(4989,d+12|0,2382228)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;f=J[e+8>>2];f=J[(f?f+12|0:2728584)>>2];J[695492]=0;ca(5121,d+20|0,g|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break k;sc(g);if(!c)break j;a=J[d+20>>2];a=J[(a?a+12|0:2728584)>> -2];l:{if(a){c=J[b+12>>2];g=J[b+16>>2];b=J[b+8>>2];J[695492]=0;ja(5018,d+72|0,a|0,b|0,g|0,c|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break l;break f}J[695492]=0;aa(5333,d+72|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f}J[695492]=0;b=d+72|0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break e}a=Z()|0;break c}a=Z()|0;sc(g);break d}J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;c=J[J[b>>2]+20>>2];J[695492]=0;f=a;a=d+20|0;ga(c|0,b|0,f|0,a|0)|0;b= -J[695492];J[695492]=0;if((b|0)==1)break f;sc(a);sc(d+28|0);J[e+24>>2]=2381060;J[e>>2]=2381028;a=J[e+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[e+28>>2]=0}J[e+16>>2]=2381060;a=J[e+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[e+20>>2]=0}sc(e+8|0)}bc=d+96|0;return}a=Z()|0;break d}a=Z()|0}sc(d+20|0)}sc(d+28|0)}ud(e)}ba(a|0)}B()}function IFa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;b=K[a+11|0];f=b<<24>>24;c=(f|0)<0;h=c?J[a+4>>2]: -b;a:{if(!h)break a;b=h-1|0;e=J[a>>2];c=J[(b<<2)+(c?e:a)>>2];if((c|0)!=92&(c|0)!=47)break a;b:{if((f|0)<0){J[a+4>>2]=b;break b}H[a+11|0]=b;e=a}J[(b<<2)+e>>2]=0}c:{d:{if((qj(a,37,0)|0)==-1)break d;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;da(4800,d|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;if(h){i=h-2|0;b=0;while(1){c=J[a>>2];e=H[a+11|0];e:{f:{g:{if(b>>>0>=i>>>0)break g;f=(e|0)<0?c:a;g=f+(b<<2)|0;if(J[g>>2]!=37)break g;c=J[g+4>>2];e=c-48|0;if(e>>>0<10)break f;if(c-97>>>0<=5){e=c-87|0;break f}if(c- -71>>>0>4294967289){e=c-55|0;break f}J[695492]=0;da(3256,d|0,37);e=J[695492];J[695492]=0;c=b;if((e|0)!=1)break e;break c}c=J[(b<<2)+((e|0)<0?c:a)>>2];J[695492]=0;da(3256,d|0,c|0);e=J[695492];J[695492]=0;c=b;if((e|0)!=1)break e;break c}h:{c=b+2|0;f=J[f+(c<<2)>>2];g=f-48|0;if(g>>>0<10)break h;if(f-97>>>0<=5){g=f-87|0;break h}if(f-71>>>0>4294967289){g=f-55|0;break h}J[695492]=0;da(3256,d|0,37);e=J[695492];J[695492]=0;c=b;if((e|0)!=1)break e;break c}J[695492]=0;da(3256,d|0,e<<4|g);b=J[695492];J[695492]= -0;if((b|0)==1)break c}b=c+1|0;if(h>>>0>b>>>0)continue;break}}i:{if((a|0)==(d|0))break i;c=K[d+11|0];b=c<<24>>24;j:{if(H[a+11|0]>=0){if((b|0)<0)break j;b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+8>>2];break i}J[695492]=0;e=a;a=(b|0)<0;ga(1629,e|0,(a?J[d>>2]:d)|0,(a?J[d+4>>2]:c)|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break i;break c}J[695492]=0;ga(1630,a|0,J[d>>2],J[d+4>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break c}if(H[d+11|0]>=0)break d;qc(J[d>>2])}bc=d+16|0;return}a=Z()|0;if(H[d+ -11|0]<0)qc(J[d>>2]);ba(a|0);B()}function GS(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=bc-16|0;bc=d;a:{b:{b=J[a>>2];c:{if(!b)break c;if(!(gc[J[J[b>>2]+24>>2]](b)|0))break c;b=J[a>>2];b=gc[J[J[b>>2]+24>>2]](b)|0;l=a,m=gc[J[J[b>>2]+52>>2]](b)|0,H[l+132|0]=m;b=J[a>>2];b=gc[J[J[b>>2]+24>>2]](b)|0;l=a,m=gc[J[J[b>>2]+48>>2]](b)|0,H[l+133|0]=m;b=J[a>>2];gc[J[J[b>>2]+60>>2]](d+4|0,b);if(H[a+131|0]<0)qc(J[a+120>>2]);b=J[d+8>>2];J[a+120>>2]=J[d+4>>2];J[a+124>>2]=b;J[a+128>>2]=J[d+12>>2];b=J[a>> -2];b=gc[J[J[b>>2]+24>>2]](b)|0;gc[J[J[b>>2]+20>>2]](b,d+4|0);b=K[d+12|0]|K[d+13|0]<<8;H[a+145|0]=b;H[a+146|0]=b>>>8;b=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);H[a+137|0]=c;H[a+138|0]=c>>>8;H[a+139|0]=c>>>16;H[a+140|0]=c>>>24;H[a+141|0]=b;H[a+142|0]=b>>>8;H[a+143|0]=b>>>16;H[a+144|0]=b>>>24;b=J[a>>2];b=gc[J[J[b>>2]+24>>2]](b)|0;l=a,m=gc[J[J[b>>2]+24>>2]](b)|0,H[l+136|0]=m;i=a+148|0;J[a+152>>2]=J[i>>2];b=J[a>>2];b=gc[J[J[b>>2]+24>>2]](b)| -0;if((gc[J[J[b>>2]+68>>2]](b,0,0)|0)==-1)break c;while(1){c=0;g=0;while(1){b=J[a>>2];b=gc[J[J[b>>2]+24>>2]](b)|0;g=(gc[J[J[b>>2]+68>>2]](b,c,j)|0?1<>2];e=J[a+156>>2];d:{if(c>>>0>>0){J[c>>2]=g;J[a+152>>2]=c+4;break d}h=J[i>>2];f=c-h>>2;b=f+1|0;if(b>>>0>=1073741824)break b;k=f<<2;e=e-h|0;f=e>>1;f=e>>>0>=2147483644?1073741823:b>>>0>>0?f:b;if(f){if(f>>>0>=1073741824)break a;b=rc(f<<2)}else b=0;e=k+b|0;J[e>>2]=g;g=e+4|0;if((c|0)!=(h|0))while(1){e= -e-4|0;c=c-4|0;J[e>>2]=J[c>>2];if((c|0)!=(h|0))continue;break}J[a+156>>2]=b+(f<<2);J[a+152>>2]=g;J[a+148>>2]=e;if(!h)break d;qc(h)}j=j+1|0;if((j|0)!=6)continue;break}}bc=d+16|0;return}kj(i);B()}Sd();B()}function Mjb(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=bc-48|0;bc=f;a:{b:{if(!Ec(b,240954)){c:{if(!d){b=J[c>>2];break c}d=f+12|0;b=vg(c,d,10);e=J[f+12>>2];if(K[e|0]!=44|(c|0)==(e|0))break b;e=e+1|0;l=f,m=vg(e,d,10),J[l+20>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b; -e=c+1|0;l=f,m=vg(e,d,10),J[l+24>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=vg(e,d,10),J[l+28>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=vg(e,f+12|0,10),J[l+32>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=vg(e,f+12|0,10),J[l+36>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=vg(e,f+12|0,10),J[l+40>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;c=c+1|0;l=f,m=vg(c,d,10),J[l+44>>2]=m;d=J[f+12>>2];if((K[d| -0]|32)!=32|(c|0)==(d|0))break b;c=f+16|0}e=6;if((b|0)<0)break a;d=J[c+8>>2];if((d|0)<0)break a;g=J[c+16>>2];if((g|0)<0)break a;h=J[c+24>>2];if((h|0)<0)break a;i=J[c+4>>2];if((i|0)<0)break a;j=J[c+12>>2];if((j|0)<0)break a;k=J[c+20>>2];if((k|0)<0)break a;c=J[c+28>>2];if((c|0)<0|(b|0)>(d|0)|((d|0)>(g|0)|g>>>0>h>>>0))break a;if(i>>>0>500|j>>>0>500|(k>>>0>500|c>>>0>500))break a;J[a+36>>2]=b;J[a- -64>>2]=c;J[a+60>>2]=h;J[a+56>>2]=k;J[a+52>>2]=g;J[a+48>>2]=j;J[a+44>>2]=d;J[a+40>>2]=i;e=0;break a}if(!Ec(b, -241126)){if(d){e=6;if(Ec(c,241277))break a;J[a+28>>2]=1;e=0;break a}e=7;if(J[c>>2]!=1)break a;J[a+28>>2]=1;e=0;break a}if(!Ec(b,241391)){if(d){if(!vg(c,0,10)){H[a+32|0]=0;break a}H[a+32|0]=1;break a}H[a+32|0]=K[c|0];break a}e=12;if(Ec(b,241518))break a;e=0;d:{if(d){b=vg(c,0,10);break d}b=J[c>>2]}J[a+68>>2]=(b|0)>0?b:0;break a}e=6}bc=f+48|0;return e|0}function Gqb(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;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;if(e){u=e-2|0; -v=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];f=a+6|0;g=g+6|0;a:{if(m>>>0>u>>>0)break a;k=m?(m|0)==(u|0)?d:b:c;i=!m&v;if(!i){if(k>>>0<2)break a;n=i?0:f;p=a+4|0;q=a+2|0;r=a+10|0;s=a+8|0;i=1;t=k<<1;while(1){j=L[a>>1];b:{if((j|0)==L[n>>1]){I[g>>1]=j;break b}j=K[a|0]|K[a+1|0]<<8;l=j>>>8|0;h=K[n|0]|K[n+1|0]<<8;j=((j<<8|l)&65535)+((k+(P(((h<<8|h>>>8)&65535)-((l|j<<8)&65535)|0,i)<<1)|0)/(t|0)|0)&65535;j=j<<8|j>>>8;H[g|0]=j;H[g+1|0]=j>>>8}j=g+2|0;h=L[q>>1];c:{if((h|0)==L[s>> -1]){I[j>>1]=h;break c}h=K[q|0]|K[q+1|0]<<8;o=h>>>8|0;l=K[s|0]|K[s+1|0]<<8;h=((h<<8|o)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((o|h<<8)&65535)|0,i)<<1)|0)/(t|0)|0)&65535;h=h<<8|h>>>8;H[j|0]=h;H[j+1|0]=h>>>8}j=g+4|0;h=L[p>>1];d:{if((h|0)==L[r>>1]){I[j>>1]=h;break d}h=K[p|0]|K[p+1|0]<<8;o=h>>>8|0;l=K[r|0]|K[r+1|0]<<8;h=((h<<8|o)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((o|h<<8)&65535)|0,i)<<1)|0)/(t|0)|0)&65535;h=h<<8|h>>>8;H[j|0]=h;H[j+1|0]=h>>>8}g=g+6|0;i=i+1|0;if((k|0)!=(i|0))continue;break}break a}if(k>>> -0<2)break a;i=k-1|0;n=i&3;if(k-2>>>0>=3){k=i&-4;i=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a>>1];I[g+8>>1]=L[a+2>>1];I[g+10>>1]=L[a+4>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];I[g+16>>1]=L[a+4>>1];I[g+18>>1]=L[a>>1];I[g+20>>1]=L[a+2>>1];I[g+22>>1]=L[a+4>>1];g=g+24|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}i=0;if(!n)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];g=g+6|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}m=m+1|0;if((m|0)!=(e|0))continue; -break}}return 0}function iWa(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;e=bc-32|0;bc=e;h=J[c+4>>2];d=J[b+4>>2];i=J[c>>2];c=J[b>>2];b=(h-d|0)+(i-c<<3)|0;f=J[a+4>>2];g=b+f|0;J[a+4>>2]=g;j=g-1|0;if(!((j^f-1)>>>0<32?f:0))J[J[a>>2]+((g>>>0>=33?j>>>5|0:0)<<2)>>2]=0;a=J[a>>2]+(f>>>3&536870908)|0;f=f&31;a:{if((f|0)==(d|0)){if((b|0)<=0)break a;if(d){g=32-d|0;f=(b|0)<(g|0)?b:g;g=-1<>>g-f;J[a>>2]=J[a>>2]&(g^-1)|g&J[c>>2];b=b-f|0;c=c+4|0;a=a+(d+f>>>3&536870908)|0}f=a;d=(b|0)/32|0;a=d<< -2;f=Zc(f,c,a);b=b-(d<<5)|0;if((b|0)<=0)break a;d=a+f|0;b=-1>>>32-b|0;J[d>>2]=J[d>>2]&(b^-1)|b&J[a+c>>2];break a}J[e+28>>2]=d;J[e+24>>2]=c;J[e+20>>2]=h;J[e+16>>2]=i;J[e+12>>2]=f;J[e+8>>2]=a;a=J[e+28>>2];b=J[e+24>>2];c=(J[e+20>>2]-a|0)+(J[e+16>>2]-b<<3)|0;b:{if((c|0)<=0){a=J[e+12>>2];d=J[e+8>>2];break b}c:{if(!a){a=J[e+12>>2];break c}d=J[e+12>>2];h=32-d|0;i=32-a|0;f=(c|0)<(i|0)?c:i;g=f>>>0>h>>>0?h:f;j=J[e+8>>2];k=J[j>>2]&(-1<>>h-g^-1);h=J[b>>2]&(-1<>>i-f);J[j>>2]=k|(a>>>0>>0?h<>> -a-d|0);b=d+g|0;a=b&31;J[e+12>>2]=a;d=j+(b>>>3&536870908)|0;J[e+8>>2]=d;b=f-g|0;if((b|0)>0){J[d>>2]=J[d>>2]&(-1>>>32-b^-1)|h>>>g+J[e+28>>2];J[e+12>>2]=b;a=b}c=c-f|0;b=J[e+24>>2]+4|0;J[e+24>>2]=b}g=-1<=32){h=g^-1;while(1){d=J[e+8>>2];b=J[b>>2];J[d>>2]=h&J[d>>2]|b<>2]=d+4;J[d+4>>2]=g&J[d+4>>2]|b>>>f;b=J[e+24>>2]+4|0;J[e+24>>2]=b;d=c>>>0>63;c=c-32|0;if(d)continue;break}}d=J[e+8>>2];if((c|0)<=0)break b;h=f;f=(c|0)>(f|0)?f:c;h=J[d>>2]&(g&-1>>>h-f^-1);g=J[b>>2]&-1>>>32-c;J[d>> -2]=h|g<>2]=b;d=(a>>>3&536870908)+d|0;J[e+8>>2]=d;a=c-f|0;if((a|0)<=0){a=b;break b}J[d>>2]=J[d>>2]&(-1>>>32-a^-1)|g>>>f;J[e+12>>2]=a}J[e+4>>2]=a;J[e>>2]=d}bc=e+32|0}function RTa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a+420>>2];if(b){b=J[a>>2];J[b+20>>2]=49;gc[J[b>>2]](a)}a:{if(J[a+264>>2]){b=J[a+360>>2];if(!J[a+368>>2]){if(!b){J[d+4>>2]=470;break a}J[d+4>>2]=471;break a}if(!b){J[d+4>>2]=472;break a}J[d+4>>2]=473;break a}J[d+4>>2]=474}if(J[a+288>>2]>0){b=0;while(1){f= -b<<2;g=J[(f+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2])){e=J[g+20>>2];if(e>>>0>=16){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=50;gc[J[J[a>>2]>>2]](a)}e=(e<<2)+d|0;c=J[e+76>>2];if(!c){c=gc[J[J[a+4>>2]>>2]](a,1,64)|0;J[e+76>>2]=c}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+ -40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=d+f|0;J[c+52>>2]=0;J[c+36>> -2]=0}if(J[a+364>>2]){e=J[g+24>>2];if(e>>>0>=16){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=50;gc[J[J[a>>2]>>2]](a)}e=(e<<2)+d|0;c=J[e+140>>2];if(!c){c=gc[J[J[a+4>>2]>>2]](a,1,256)|0;J[e+140>>2]=c}wc(c,0,256)}b=b+1|0;if((b|0)>2])continue;break}}J[d+28>>2]=11;J[d+32>>2]=-1;J[d+20>>2]=0;J[d+24>>2]=0;J[d+12>>2]=0;J[d+16>>2]=65536;a=J[a+236>>2];J[d+72>>2]=0;J[d+68>>2]=a}function EHa(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=bc-16|0;bc=g;J[g+12>>2]=c;a:{b:{if(b){if(!a)break b;if(!d)break a; -h=J[a+72>>2];if(J[a+8>>2]==16)e=J[a+156>>2]+P(J[a+192>>2],5644)|0;else e=J[a+12>>2];H[e+5640|0]=K[e+5640|0]|1;c:{if(c>>>0<=4){Hc(d,1,2353889,0);break c}ld(b,e,1);if(M[e>>2]>=8){Hc(d,1,2353915,0);break c}ld(b+1|0,g+8|0,1);c=J[g+8>>2];J[e+4>>2]=c;if((c|0)>=5){Hc(d,1,2353949,0);J[e+4>>2]=-1}ld(b+2|0,e+8|0,2);c=J[e+8>>2];if(c-65536>>>0<=4294901760){J[g>>2]=c;Hc(d,1,2353990,g);break c}i=J[a+164>>2];J[e+12>>2]=i?i:c;ld(b+4|0,e+16|0,1);if(M[e+16>>2]>=2){Hc(d,1,2354058,0);break c}i=b+5|0;J[g+12>>2]=J[g+12>> -2]-5;h=J[h+16>>2];d:{if(!h)break d;b=J[e>>2]&1;c=J[e+5584>>2];e=0;if(h>>>0>=8){k=h&-8;while(1){J[c+P(f,1080)>>2]=b;J[c+P(f|1,1080)>>2]=b;J[c+P(f|2,1080)>>2]=b;J[c+P(f|3,1080)>>2]=b;J[c+P(f|4,1080)>>2]=b;J[c+P(f|5,1080)>>2]=b;J[c+P(f|6,1080)>>2]=b;J[c+P(f|7,1080)>>2]=b;f=f+8|0;j=j+8|0;if((k|0)!=(j|0))continue;break}}h=h&7;if(!h)break d;while(1){J[c+P(f,1080)>>2]=b;f=f+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}f=0;if(!YW(a,0,i,g+12|0,d)){Hc(d,1,2353889,0);break c}if(J[g+12>>2]){Hc(d,1,2353889,0); -break c}if(J[a+8>>2]==16)b=J[a+156>>2]+P(J[a+192>>2],5644)|0;else b=J[a+12>>2];if(M[J[a+72>>2]+16>>2]>=2){b=J[b+5584>>2];d=J[b+4>>2]<<2;f=b+944|0;h=b+812|0;e=1;c=b;while(1){J[c+1084>>2]=J[b+4>>2];J[c+1088>>2]=J[b+8>>2];J[c+1092>>2]=J[b+12>>2];J[c+1096>>2]=J[b+16>>2];J[c+1100>>2]=J[b+20>>2];tc(c+1892|0,h,d);tc(c+2024|0,f,d);c=c+1080|0;e=e+1|0;if(e>>>0>2]+16>>2])continue;break}}f=1}bc=g+16|0;return f|0}fa(2353829,2346358,2642,2353872);B()}fa(2346477,2346358,2643,2353872);B()}fa(2346590,2346358, -2644,2353872);B()}function Af(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;a:{if(K[a+52|0]){k=J[a+48>>2];f=k&10;n=f;o=O[a+24>>3];l=O[a+16>>3];m=O[a>>3];f=(oc)<<2;p=O[a+8>>3];i=f|(p>d)<<3;b:{if((n|0)==(i&10)?n:0)break b;h=O[a+40>>3];j=O[a+32>>3];c:switch(k<<1&10|f&5){case 0:Ti(a,b,j,h,c,d,k,i);J[a+48>>2]=i;break a;case 1:g=h+(l-j)*(d-h)/(c-j);f=(go)<<1;Ti(a,b,j,h,l,g,k,f);e=O[a+16>>3];Ti(a,b,e,g,e,d,f,i);J[a+48>>2]=i;break a;case 2:e=h+(l-j)*(d-h)/(c-j); -f=(eo)<<1;Ti(a,b,l,h,l,e,k,f);Ti(a,b,O[a+16>>3],e,c,d,f,i);J[a+48>>2]=i;break a;case 3:Ti(a,b,l,h,l,d,k,i);J[a+48>>2]=i;break a;case 4:g=h+(m-j)*(d-h)/(c-j);f=(go)<<1;Ti(a,b,j,h,m,g,k,f);e=O[a>>3];Ti(a,b,e,g,e,d,f,i);J[a+48>>2]=i;break a;case 6:g=d-h;e=c-j;q=h+(l-j)*g/e;n=(qo)<<1;Ti(a,b,O[a+16>>3],q,O[a>>3],g,n,f);e=O[a>>3];Ti(a,b,e,g,e,d,f,i);J[a+48>>2]=i;break a;case 8:e=h+(m-j)*(d-h)/(c-j);f=(eo)<<1;Ti(a, -b,m,h,m,e,k,f);Ti(a,b,O[a>>3],e,c,d,f,i);J[a+48>>2]=i;break a;case 9:g=d-h;e=c-j;q=h+(m-j)*g/e;n=(qo)<<1;Ti(a,b,O[a>>3],q,O[a+16>>3],g,n,f);e=O[a+16>>3];Ti(a,b,e,g,e,d,f,i);J[a+48>>2]=i;break a;case 12:break c;default:break b}Ti(a,b,m,h,m,d,k,i)}J[a+48>>2]=i;break a}e=d*256;e=e+(e<0?-.5:.5);d:{if(R(e)<2147483648){k=~~e;break d}k=-2147483648}e=c*256;e=e+(e<0?-.5:.5);e:{if(R(e)<2147483648){n=~~e;break e}n=-2147483648}e=O[a+40>>3]*256;e= -e+(e<0?-.5:.5);f:{if(R(e)<2147483648){f=~~e;break f}f=-2147483648}e=O[a+32>>3]*256;e=e+(e<0?-.5:.5);g:{if(R(e)<2147483648){i=~~e;break g}i=-2147483648}oo(b,i,f,n,k)}O[a+40>>3]=d;O[a+32>>3]=c}function X7(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=J[J[a+528>>2]+88>>2];a:{b:{c:{d:{e:switch(b|0){case 5:if(!c)break c;a=0;while(1){if(K[a+f|0]){i=P(a,3);g=i+h|0;i=d+i|0;H[g+68|0]=K[i|0]+K[g+68|0];H[g+69|0]=K[i+1|0]+K[g+69|0];H[g+70|0]=K[i+2|0]+K[g+70|0];g=a+h|0;H[g+848|0]=K[a+e|0]+K[g+848|0]}a=a+1|0;if((c|0)!=(a| -0))continue;break}break d;case 4:if(!c)break c;a=0;while(1){if(K[a+f|0]){i=P(a,3);g=i+h|0;i=d+i|0;H[g+68|0]=K[i|0];H[g+69|0]=K[i+1|0];H[g+70|0]=K[i+2|0];H[(a+h|0)+848|0]=K[a+e|0]}a=a+1|0;if((c|0)!=(a|0))continue;break}break d;case 3:if(!c)break c;a=0;if((c|0)!=1){i=c&-2;d=0;while(1){if(K[a+f|0]){g=a+h|0;H[g+848|0]=K[a+e|0]+K[g+848|0]}g=a|1;if(K[g+f|0]){j=g+h|0;H[j+848|0]=K[e+g|0]+K[j+848|0]}a=a+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1)|!K[a+f|0])break d;d=a+h|0;H[d+848|0]=K[a+e|0]+K[d+ -848|0];break d;case 2:if(!c)break c;a=0;if((c|0)!=1){i=c&-2;d=0;while(1){if(K[a+f|0])H[(a+h|0)+848|0]=K[a+e|0];g=a|1;if(K[g+f|0])H[(g+h|0)+848|0]=K[e+g|0];a=a+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1)|!K[a+f|0])break d;H[(a+h|0)+848|0]=K[a+e|0];break d;case 1:if(!c)break b;a=0;while(1){if(K[a+f|0]){g=P(a,3);e=g+h|0;g=d+g|0;H[e+68|0]=K[g|0]+K[e+68|0];H[e+69|0]=K[g+1|0]+K[e+69|0];H[e+70|0]=K[g+2|0]+K[e+70|0]}a=a+1|0;if((c|0)!=(a|0))continue;break}break d;case 0:break e;default:break c}if(!c)break b; -a=0;while(1){if(K[a+f|0]){g=P(a,3);e=g+h|0;g=d+g|0;H[e+68|0]=K[g|0];H[e+69|0]=K[g+1|0];H[e+70|0]=K[g+2|0]}a=a+1|0;if((c|0)!=(a|0))continue;break}}if(b>>>0<2)break b}f:{g:{if(K[h+56|0]){if(M[h+844>>2]>>0)break g;break f}H[h+56|0]=1}J[h+844>>2]=c}if((b-4&255)>>>0>253)break a}if(M[h+64>>2]>=c>>>0)break a;J[h+64>>2]=c}return 0}function T0(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;l=bc-32|0;bc=l;a:{b:{c:{d:{g=J[a+8>>2];k=J[a+12>>2];if((g|0)==(k|0))break d;f=K[b+ -11|0];e=f<<24>>24;j=(e|0)<0?J[b+4>>2]:f;if((e|0)>=0)while(1){h=K[g+11|0];i=h<<24>>24;e=(i|0)<0;f=J[g+4>>2];e:{if((j|0)!=((e?f:h)|0))break e;if(!e){f=b;e=g;if(!i)break d;while(1){if(K[e|0]!=K[f|0])break e;f=f+1|0;e=e+1|0;h=h-1|0;if(h)continue;break}break d}if(!f)break d;if(!Wc(J[g>>2],b,f))break d}g=g+20|0;if((k|0)!=(g|0))continue;break c}i=J[b>>2];while(1){h=K[g+11|0];m=h<<24>>24;e=(m|0)<0;f=J[g+4>>2];f:{if((j|0)!=((e?f:h)|0))break f;if(!e){f=i;e=g;if(!m)break d;while(1){if(K[e|0]!=K[f|0])break f; -f=f+1|0;e=e+1|0;h=h-1|0;if(h)continue;break}break d}if(!f)break d;if(!Wc(J[g>>2],i,f))break d}g=g+20|0;if((k|0)!=(g|0))continue;break}break c}if((g|0)==(k|0))break c;e=J[g+16>>2];if(!e)break b;J[c>>2]=J[g+12>>2];J[d>>2]=e;break a}J[c>>2]=0;J[d>>2]=0;break a}i=rc(24);J[i>>2]=J[a>>2];J[i+4>>2]=J[a+4>>2];fK(l,i);f=N0(l);J[c>>2]=0;J[d>>2]=0;k=H[b+11|0]<0?J[b>>2]:b;h=bc-80|0;bc=h;if(c)g:{J[c>>2]=0;while(1){e=0;a=bc-352|0;bc=a;h:{i:{b=a+96|0;if(!Lw(f,a+16|0,b,256)){b=Qc(b);if(b>>>0>=2147483632)break i; -j:{if(b>>>0<=10){H[a+15|0]=b;e=a+4|0;break j}j=(b|15)+1|0;e=rc(j);J[a+12>>2]=j|-2147483648;J[a+4>>2]=e;J[a+8>>2]=b}n=tc(e,a+96|0,b)+b|0,o=0,H[n|0]=o;b=J[a+4>>2];e=H[a+15|0];j=Ec(k,(e|0)<0?b:a+4|0);if((e|0)<0)qc(b);e=!j}bc=a+352|0;break h}Id(a+4|0);B()}if(e){Lw(f,h,0,0);a=J[h+28>>2];b=J[d>>2];a=b?a>>>0>>0?a:b:a;J[d>>2]=a;b=rc(a);J[c>>2]=b;if(!L0(f,0)){K0(f,b,a);M0(f)}break g}if(!iK(f))continue;break}}bc=h+80|0;UB(f);J[g+16>>2]=J[d>>2];J[g+12>>2]=J[c>>2];qc(i)}bc=l+32|0}function U7a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+112>>2];h=J[b+112>>2];h=(g|0)<(h|0)?g:h;g=J[a+104>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((h|0)<(i|0))break a;g=J[a+108>>2];j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+116>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)qc(g);J[e+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h| -0)==J[e+12>>2])break b;i=J[e+8>>2];if(i){qc(i);g=J[e+20>>2]}J[e+12>>2]=h;l=e,m=rc(h),J[l+8>>2]=m}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)qc(g);J[c+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){qc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=rc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>> -2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)qc(g);J[d+24>>2]=h;g=rc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){qc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=rc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!de(a,c))break a;if(!de(b,d))break a;g=f+4|0;while(1){if(J[c+4>>2]>2]){if(de(a,c))continue;break a}while(1){h=J[d+4>>2];i=J[c+4>>2];if((h|0)<(i|0)){if(de(b,d))continue;break a}break}if((h|0)!=(i|0))continue; -Of(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+4>>2]=J[c+4>>2];tC(e,J[f>>2],g)}if(!de(a,c))break a;if(de(b,d))continue;break}}}function Kpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if(J[a+8>>2]!=2){Dc(a,1030,0,0);return 1030}if(K[a+284|0]){Dc(a,1029,0,0);return 1029}if((c&-17)!=12){Dc(a,1028,0,0);return 1028}I[a+284>>1]=257;J[a+12>>2]=2;f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);g=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+16>>2]=g;f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<< -24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+20>>2]=h;f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+24>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);a:{b:{c:{if((c|0)!=28){J[a+28>>2]=0;J[a+32>>2]=0;H[a+264|0]=1;J[a+36>>2]=0;J[a+40>>2]=0;d=0;break c}c=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[a+28>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[a+32>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+20|0]|K[d+21|0]<<8|(K[d+ -22|0]<<16|K[d+23|0]<<24);J[a+36>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+27|0];f=K[d+26|0];i=K[d+25|0];d=K[d+24|0];H[a+264|0]=0;d=c|(i<<16|d<<24|f<<8);J[a+40>>2]=d;if(c&1)break b}H[a+44|0]=16;break a}if(!(c&8)){H[a+44|0]=0;break a}if((d&320)==64){H[a+44|0]=1;break a}H[a+44|0]=16}if(d&64512){Dc(a,1060,0,0);return 1060}d:{if(!(M[a+124>>2]>=g>>>0&M[a+128>>2]>=h>>>0)){d=4097;if(!Dc(a,4097,0,0))break d}e:{c=J[a+188>>2];if(!c)break e;if(gc[c|0](a,J[a+16>>2],J[a+20>>2])|0)break e;Dc(a,904,0,0); -return 904}J[a+48>>2]=J[a+48>>2]+1;d=0;if(!K[a+112|0])break d;d=gc[J[b+4>>2]](a,b,e)|0;if(d)break d;b=J[e>>2];J[b+32>>2]=J[a+16>>2];J[b+36>>2]=J[a+20>>2];J[b+40>>2]=J[a+24>>2];J[b+44>>2]=J[a+28>>2];J[b+48>>2]=J[a+32>>2];J[b+52>>2]=J[a+36>>2];J[b+56>>2]=J[a+40>>2];d=0}return d|0}function z4a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[a+8>>2];if(!d){J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;return}J[a+140>>2]=J[d+268>>2];J[a+144>>2]=J[d+256>>2];J[a+148>>2]=J[d+260>>2];J[a+152>> -2]=J[d+264>>2];c=bc-32|0;bc=c;J[d+288>>2]=1;a:{b:{e=J[d+188>>2];c:{if(!e)break c;a=J[e+96>>2];if(!a)break c;a=J[a+12>>2];if(!a)break c;d:{e:{f:{f=J[a+8>>2];a=Qc(f);if(a>>>0<2147483632){g:{if(a>>>0<=10){H[c+31|0]=a;b=c+20|0;break g}g=(a|15)+1|0;b=rc(g);J[c+28>>2]=g|-2147483648;J[c+20>>2]=b;J[c+24>>2]=a}i=Zc(b,f,a)+a|0,j=0,H[i|0]=j;f=K[c+31|0];a=f<<24>>24;b=(a|0)<0;h:{if(((b?J[c+24>>2]:f)|0)==8){b=b?J[c+20>>2]:c+20|0;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))==1702195828&(K[b+4|0]|K[b+5|0]<< -8|(K[b+6|0]<<16|K[b+7|0]<<24))==1701869940)break h}J[d+288>>2]=0;break d}b=J[e+20>>2];if(!b)break f;a=0;i:{g=K[b|0];if(!g)break i;e=b;while(1){f=a;a=a+1|0;h=K[e+1|0];e=e+1|0;if(h)continue;break}if((g|0)!=60|f>>>0<6|(K[b+1|0]!=117|K[b+2|0]!=116))break i;if(K[b+3|0]!=102|K[b+4|0]!=56|K[b+5|0]!=62)break i;J[695492]=0;ca(1618,c+8|0,b+6|0,f-5|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;break b}J[695492]=0;ia(2682,c+8|0,b|0,a|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break b;break e}Id(c+20|0);B()}J[c+ -8>>2]=0;H[c+19|0]=0}f=d+292|0;e=K[d+303|0];a=e<<24>>24;g=(a|0)<0;b=J[d+296>>2];j:{k:{if(((g?b:e)|0)==9){if(!gd(g?J[f>>2]:f,350648,9))break k;b=J[d+296>>2];e=K[d+303|0];a=e}a=a<<24>>24;if((((a|0)<0?b:e)|0)!=9)break j;if(gd((a|0)<0?J[f>>2]:f,350688,9))break j}J[d+288>>2]=0}if(H[c+19|0]<0)qc(J[c+8>>2]);a=K[c+31|0]}if(a<<24>>24>=0)break c;qc(J[c+20>>2])}bc=c+32|0;break a}a=Z()|0;if(H[c+31|0]<0)qc(J[c+20>>2]);ba(a|0);B()}}function d7a(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;a:{if((d|0)<=0)break a;g=J[a+480>>2];j=J[a+112>>2];f=J[a+120>>2];if((f|0)<=0)while(1){Le(J[(e<<2)+c>>2],j);J[g+84>>2]=!J[g+84>>2];e=e+1|0;if((e|0)!=(d|0))continue;break a}if(j){v=J[a+332>>2];o=0-f|0;s=j-1|0;w=P(f,s);while(1){a=p<<2;t=a+c|0;Le(J[t>>2],j);x=a+b|0;k=0;while(1){m=J[x>>2]+k|0;e=J[t>>2];b:{if(J[g+84>>2]){h=(J[((k<<2)+g|0)+68>>2]+(j<<1)|0)+2|0;e=e+s|0;m=m+w|0;q=-1;a=o;break b}h=J[((k<<2)+g|0)+68>>2];q=1;a=f}y=a;a=k<<2;z=J[a+ -J[g+16>>2]>>2];A=J[a+J[g+24>>2]>>2];i=0;B=q<<1;n=0;l=j;r=0;while(1){u=h+B|0;a=K[K[m|0]+(((I[u>>1]+i|0)+8>>4)+v|0)|0];i=K[a+A|0];H[e|0]=i+K[e|0];a=a-K[i+z|0]|0;I[h>>1]=P(a,3)+r;i=P(a,7);r=P(a,5)+n|0;e=e+q|0;m=m+y|0;n=a;h=u;l=l-1|0;if(l)continue;break}I[h>>1]=r;k=k+1|0;if((f|0)!=(k|0))continue;break}J[g+84>>2]=!J[g+84>>2];p=p+1|0;if((p|0)!=(d|0))continue;break}break a}j=f&-4;a=f&3;n=f>>>0<4;while(1){Le(J[(l<<2)+c>>2],0);o=J[g+84>>2];c:{if(o){h=0;e=0;i=0;if(!n)while(1){b=g+68|0;f=e<<2;I[J[b+f>>2]+2>> -1]=0;I[J[b+(f|4)>>2]+2>>1]=0;I[J[b+(f|8)>>2]+2>>1]=0;I[J[b+(f|12)>>2]+2>>1]=0;e=e+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}if(!a)break c;while(1){I[J[((e<<2)+g|0)+68>>2]+2>>1]=0;e=e+1|0;h=h+1|0;if((a|0)!=(h|0))continue;break}break c}h=0;e=0;i=0;if(!n)while(1){b=g+68|0;f=e<<2;I[J[b+f>>2]>>1]=0;I[J[b+(f|4)>>2]>>1]=0;I[J[b+(f|8)>>2]>>1]=0;I[J[b+(f|12)>>2]>>1]=0;e=e+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}if(!a)break c;while(1){I[J[((e<<2)+g|0)+68>>2]>>1]=0;e=e+1|0;h=h+1|0;if((a|0)!=(h|0))continue; -break}}J[g+84>>2]=!o;l=l+1|0;if((l|0)!=(d|0))continue;break}}}function Uxb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=M[a+4>>2]/((M[b>>2]>256?9:7)>>>0)|0;J[a+12>>2]=d;e=zc(d<<4);J[a+16>>2]=e;if(!e)return-1;if(J[a+12>>2]<=0)return 0;a:{b:{while(1){d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break c}d=jd(c,1);if((d|0)==-1)break a}H[e+1|0]=d;d:{if(M[b>>2]>=257){if(!Lg(c, -e+4|0))break d;break a}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break e}d=jd(c,1);if((d|0)==-1)break a}J[e+4>>2]=d&255}if(Lg(c,e+12|0))break a;d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;f:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break f}d=jd(c,1);if((d|0)==-1)break a}H[e+ -2|0]=d;g:{if(M[b>>2]>=257){if(!Lg(c,e+8|0))break g;break a}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;h:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break h}d=jd(c,1);if((d|0)==-1)break a}J[e+8>>2]=d&255}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;i:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break i}d=jd(c,1);if((d| -0)==-1)break a}H[e|0]=d;if(K[e+1|0]>K[e+2|0]|M[e+4>>2]>M[e+8>>2])break a;e=e+16|0;g=g+1|0;if((g|0)>2])continue;break}return 0}J[c+8>>2]=d|4}a=J[a+16>>2];if(a)qc(a);return-1}function n6(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;j=bc-48|0;bc=j;J[j>>2]=0;m=J[h+556>>2];k=J[g>>2];i=J[k>>2];J[j+16>>2]=0;J[j+20>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;J[j+36>>2]=a;J[j+32>>2]=f;J[j+40>>2]=0;J[j+4>>2]=k;l=(f|0)==12288|(f|0)==16384;n=l?513:96;k=Sc(i,4,0,n,0,j+44|0);J[j+20>>2]=k;a:{b:{if(!J[j+ -44>>2]){J[j+24>>2]=k;J[j+28>>2]=n;break b}if(k)gc[J[i+8>>2]](i,k);J[j+20>>2]=0;i=J[j+44>>2];if(i)break a}wc(a+24|0,0,160);J[a+156>>2]=8720;J[a+60>>2]=65536;J[a+44>>2]=2;J[a+48>>2]=65536;J[a+32>>2]=-6553600;J[a+36>>2]=3276800;J[a+184>>2]=l?513:48;J[a+172>>2]=65535;J[a+136>>2]=65535;J[a+128>>2]=65535;J[a+132>>2]=65535;J[a+16>>2]=65535;J[a+20>>2]=65535;J[a+8>>2]=65535;J[a+12>>2]=65535;J[a>>2]=65535;J[a+4>>2]=65535;c:{d:{if(!J[b+12>>2]){i=nd(d,J[b+20>>2]);if(i)break a;i=yi(d,J[b+24>>2],j);if(i)break a; -c=b+24|0;break d}i=c;c=j+44|0;i=cD(b,i,j,c);if(i)break c}i=J[j>>2];i=p6(j+4|0,i,i?i+J[c>>2]|0:0)}e:{if(J[b+12>>2]){if(J[b+32>>2])break e;b=J[b>>2]}else b=d;Sf(b,j)}if(i)break a;i=0;if(J[a+132>>2]!=65535)break a;i=q6(g,a,0,0);if(i)break a;f:{if((f|0)==12288|(f|0)==16384)break f;f=J[J[h+128>>2]+60>>2];g:{if((f|0)==-1){b=J[h+96>>2];f=J[b+68>>2];J[a+648>>2]=f;if(!f)break g;while(1){f=gc[J[m+20>>2]](f)|0;J[b+68>>2]=f;if((f|0)<0)continue;break}break g}J[a+648>>2]=f;if(!f)break g;while(1){f=gc[J[m+20>>2]](f)| -0;J[J[h+128>>2]+60>>2]=f;if((f|0)<0)continue;break}}if(J[a+648>>2])break f;J[a+648>>2]=J[a+532>>2]}b=J[a+536>>2];if(!b){i=0;break a}i=nd(d,J[a+116>>2]+(b+e|0)|0);if(i)break a;b=a+608|0;i=Qp(b,d,1,l);if(i)break a;i=kM(b,a+644|0,0,0)}a=J[J[j+4>>2]>>2];b=J[j+20>>2];if(b)gc[J[a+8>>2]](a,b);bc=j+48|0;return i}function nPa(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,u=0,v=0,w=0;m=bc+-64|0;d=a;while(1){a:{e=d;d=J[(i<<2)+b>>2]+c|0;f=K[d+4|0];g=K[d+5|0]; -r=f-g|0;l=K[d|0];n=K[d+9|0];h=l-n|0;s=r+h|0;o=K[d+2|0];t=K[d+7|0];u=o-t|0;p=K[d+1|0];q=K[d+8|0];j=p-q|0;v=K[d+3|0];w=K[d+6|0];d=v-w|0;k=j-d|0;J[e+20>>2]=s-(u+k|0)<<1;f=f+g|0;g=l+n|0;l=f+g|0;v=v+w|0;p=p+q|0;q=v+p|0;o=o+t|0;J[e>>2]=(l+(q+o|0)<<1)-2560;n=o<<1;J[e+16>>2]=(P(q-n|0,-3580)+P(l-n|0,9373)|0)+2048>>12;g=g-f|0;l=p-v|0;f=P(g+l|0,6810)+2048|0;J[e+24>>2]=f+P(l,-17828)>>12;J[e+8>>2]=f+P(g,4209)>>12;f=(P(h-r|0,7791)+P(d+j|0,-4815)|0)+2048|0;g=u<<13;k=((k<<12)-g|0)+P(k+s|0,2531)|0;J[e+28>>2]=f-k>> -12;J[e+12>>2]=f+k>>12;J[e+4>>2]=(((g+(P(h,11443)+P(j,10323)|0)|0)+P(d,5260)|0)+P(r,1812)|0)+2048>>12;h=i-7|0;i=i+1|0;d=m;r=7;b:switch(h|0){case 0:continue;case 2:break a;default:break b}d=e+32|0;continue}break}while(1){m=J[a+192>>2];i=J[a+96>>2];b=m+i|0;e=J[d>>2];h=J[a+32>>2];c=e+h|0;j=b+c|0;k=J[a+224>>2];f=J[a+64>>2];g=k+f|0;l=g<<1;n=J[a+160>>2];s=J[a+128>>2];o=n+s|0;t=J[d+32>>2];u=J[a>>2];p=t+u|0;q=o+p|0;J[a+128>>2]=(P(j-l|0,-4582)+P(q-l|0,11997)|0)+16384>>15;J[a>>2]=P(q+(g+j|0)|0,10486)+16384>> -15;j=p-o|0;c=c-b|0;b=P(j+c|0,8716)+16384|0;J[a+192>>2]=b+P(c,-22820)>>15;J[a+64>>2]=b+P(j,5387)>>15;b=s-n|0;c=u-t|0;j=b+c|0;e=h-e|0;m=i-m|0;i=e-m|0;h=f-k|0;J[a+160>>2]=P(j-(i+h|0)|0,10486)+16384>>15;k=(P(c-b|0,9973)+P(e+m|0,-6163)|0)+16384|0;h=P(h,10486);i=(P(i,5243)-h|0)+P(i+j|0,3240)|0;J[a+224>>2]=k-i>>15;J[a+96>>2]=i+k>>15;J[a+32>>2]=(((h+(P(c,14647)+P(e,13213)|0)|0)+P(m,6732)|0)+P(b,2320)|0)+16384>>15;b=r;r=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function _eb(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;e=bc-16|0;bc=e;J[a+788>>2]=0;J[a+792>>2]=0;f=a+796|0;J[f>>2]=0;J[f+4>>2]=0;i=a+788|0;a:{b:{c:{d:{if(!(gc[J[a+516>>2]](a,1128418371,b,e+12|0)|0)){c=2;break d}c=1;h=e+12|0;if(!(gc[J[a+516>>2]](a,1161972803,b,h)|0))break d;if(!(gc[J[a+516>>2]](a,1651273571,b,h)|0))break d;c=gc[J[a+516>>2]](a,1935829368,b,h)|0;if(c)break c;c=3}J[f>>2]=c;if(M[e+12>>2]<8){c=3;break c}h=a+800|0;j=J[b+8>>2];e:{f:{g:{h:{i:{c=J[f>>2];switch(c-1|0){case 2:break h;case 0:case 1:break i;default:break f}}c= -yi(b,J[e+12>>2],i);if(c)break c;g=J[e+12>>2];J[a+792>>2]=g;c=J[a+788>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if((K[c+1|0]<<16|K[c|0]<<24|65536)!=196608){c=K[c+2|0]|K[c+3|0]<<8;if(((c<<8|c>>>8|256)&65535)!=768)break e}c=3;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(d>>>0>65535)break c;if(g>>>0>=(P(d,48)|8)>>>0)break g;d=(g-8>>>0)/48|0;break g}c=Ue(b,8);if(c)break c;c=mf(b);g=mf(b);d=qh(b);ne(b);if(!c)break e;if((g&65533)!=1){c=3;break c}c=3;if(d>>>0>65535)break c;g=J[e+12>>2];c=nd(b, -J[b+8>>2]-8|0);if(c)break c;d=g>>>0<(d<<2)+8>>>0?g-8>>>2|0:d;c=(d<<2)+8|0;J[a+792>>2]=c;c=yi(b,c,i);if(c)break c}J[a+800>>2]=d;c=J[f>>2]}J[a+860>>2]=0;J[a+864>>2]=0;j:{k:{l:switch(c|0){case 3:J[a+860>>2]=j;b=J[e+12>>2];break k;case 0:break b;default:break l}m:{f=e+8|0;if(!(gc[J[a+516>>2]](a,1128416340,b,f)|0))break m;if(!(gc[J[a+516>>2]](a,1161970772,b,f)|0))break m;if(!(gc[J[a+516>>2]](a,1650745716,b,f)|0))break m;b=J[a+864>>2];break j}J[a+860>>2]=J[b+8>>2];b=J[e+8>>2]}J[a+864>>2]=b}c=0;if(b)break a; -break b}c=2}if(J[i>>2])Sf(b,i);J[a+792>>2]=0;h=f}J[h>>2]=0}bc=e+16|0;return c|0}function _Za(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;t=bc-192|0;bc=t;h=J[a+332>>2];a=J[b+84>>2];b=t;while(1){k=J[a+64>>2];i=I[c+32>>1];g=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+128>>2],I[c+64>>1]);r=g+P(j,-11586)>>11;f=P(J[a+32>>2],I[c+16>>1]);n=P(J[a+96>>2],I[c+48>>1]);l=P(J[a+160>>2],I[c+80>>1]);o=f-(n+l|0)<<2;J[b+128>>2]=r-o;J[b+32>>2]= -o+r;k=P(P(i,k),10033);i=g+P(j,5793)|0;j=k+i|0;g=f+n<<13;f=P(f+l|0,2998);g=g+f|0;J[b+160>>2]=j-g>>11;J[b>>2]=g+j>>11;k=i-k|0;f=f+(l-n<<13)|0;J[b+96>>2]=k-f>>11;J[b+64>>2]=f+k>>11;b=b+4|0;a=a+4|0;c=c+2|0;p=p+1|0;if((p|0)!=8)continue;break}a=h+128|0;b=t;n=0;while(1){l=J[b+4>>2];h=J[b+20>>2];i=l+h|0;f=J[b+28>>2];k=P(i+f|0,7053);c=J[(n<<2)+d>>2]+e|0;o=k+P(i,2139)|0;j=J[b+12>>2];r=P(j,10703);p=o+(r+P(l,2295)|0)|0;m=J[b+24>>2];s=m<<13;g=J[b+8>>2];u=s+P(g,11190)|0;v=P(J[b+16>>2],10033);i=(J[b>>2]<<13)+131072| -0;w=v+i|0;q=u+w|0;H[c|0]=K[a+(p+q>>>18&1023)|0];H[c+11|0]=K[a+(q-p>>>18&1023)|0];p=g-m<<13;m=p+i|0;q=l-f|0;x=j-h|0;y=P(q+x|0,4433);q=y+P(q,6270)|0;H[c+1|0]=K[a+(m+q>>>18&1023)|0];H[c+10|0]=K[a+(m-q>>>18&1023)|0];j=P(j,-4433);m=j+P(h,-12112)|0;h=P(f+h|0,-8565);o=(m+h|0)+o|0;g=P(g,2998)-s|0;m=i-v|0;s=g+m|0;H[c+2|0]=K[a+(o+s>>>18&1023)|0];H[c+9|0]=K[a+(s-o>>>18&1023)|0];h=h+(k+(P(f,12998)-r|0)|0)|0;g=m-g|0;H[c+3|0]=K[a+(h+g>>>18&1023)|0];H[c+8|0]=K[a+(g-h>>>18&1023)|0];h=P(x,-15137)+y|0;i=i-p|0;H[c+ -4|0]=K[a+(h+i>>>18&1023)|0];H[c+7|0]=K[a+(i-h>>>18&1023)|0];f=k+((j+P(l,-5540)|0)+P(f,-16244)|0)|0;l=w-u|0;H[c+5|0]=K[a+(f+l>>>18&1023)|0];H[c+6|0]=K[a+(l-f>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=6)continue;break}bc=t+192|0}function vgb(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;if(M[b+160>>2]>>0)ge(b,8);d=K[a+3|0]|K[a+2|0]<<8;if(M[b+160>>2]>>0){if(J[b+164>>2]>0)ge(b,8);d=J[b+160>>2]-a|0}if(d>>>0<=15)ge(b,8);c=K[a+7|0];k=c|K[a+6|0]<<8;if(!(!(c& -1)|J[b+164>>2]<2))ge(b,8);h=k&65534;if((h<<2)+16>>>0>d>>>0)ge(b,8);g=k>>>1|0;a:{if(J[b+164>>2]<2)break a;l=K[a+12|0];i=K[a+10|0];e=K[a+11|0];c=K[a+9|0];q=c|K[a+8|0]<<8;f=c;c=K[a+13|0];if((f|c)&1)ge(b,8);f=q>>>1|0;if(!(f>>>0>g>>>0|g>>>0>(q&65534)>>>0|(g|0)!=(f+((c|l<<8)>>>1|0)|0)))if((f|0)==1<<(e|i<<8))break a;ge(b,8)}m=a+14|0;b:{if(J[b+164>>2]<2)break b;c=h+m|0;if((K[c-2|0]<<8|K[c-1|0])==65535)break b;ge(b,8)}if(k>>>0>=2){n=(a+h|0)+16|0;o=h+n|0;j=h+o|0;s=h+j|0;h=g>>>0<=1?1:g;k=a+d|0;g=g-1|0;e=0;c= -0;while(1){a=c;d=e;q=K[j|0]<<8;f=K[j+1|0];l=K[o|0];i=K[o+1|0];c=K[n+1|0]|K[n|0]<<8;e=K[m+1|0]|K[m|0]<<8;if(c>>>0>e>>>0)ge(b,8);f=f|q;c:{if(!p|c>>>0>d>>>0)break c;if(J[b+164>>2]>0){ge(b,8);break c}if(!(a>>>0<=c>>>0&e>>>0>=d>>>0)){r=r|1;break c}r=r|2}d:{if(!f)break d;if((f|0)!=65535){a=f+j|0;e:{f:{if(J[b+164>>2]>0){if(a>>>0>>0|k>>>0<((e-c<<1)+a|0)+2>>>0)break f;break e}if(!((g|0)!=(p|0)|(c|0)!=65535)&(e|0)==65535)break e;if(a>>>0>>0)break f;if(M[b+160>>2]>=((e-c<<1)+a|0)+2>>>0)break e}ge(b,8)}if(J[b+ -164>>2]<=0|c>>>0>=e>>>0)break d;l=i|l<<8;d=c;while(1){i=K[a+1|0]|K[a|0]<<8;if(!(!i|M[b+172>>2]>(l+i&65535)>>>0))ge(b,16);a=a+2|0;d=d+1|0;if(d>>>0>>0)continue;break}break d}if(!((g|0)!=(p|0)|J[b+164>>2]>1|(c|0)!=65535))if((e|0)==65535)break d;ge(b,8)}j=j+2|0;o=o+2|0;m=m+2|0;n=n+2|0;p=p+1|0;if((h|0)!=(p|0))continue;break}}return r|0}function Edb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+20>>2];if((c&-2)!=200){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;gc[J[J[a>>2]>>2]](a)}c=1;a:{b:{c:{d:{e:{d=J[a+ -20>>2];switch(d-200|0){case 2:break a;case 3:case 4:case 5:case 6:case 7:case 8:case 10:break c;case 1:break d;case 0:break e;default:break b}}gc[J[J[a+456>>2]+4>>2]](a);gc[J[J[a+24>>2]+8>>2]](a);J[a+20>>2]=201}c=gc[J[J[a+456>>2]>>2]](a)|0;if((c|0)!=1)break a;c=J[a+36>>2];d=c;f:{g:switch(c-1|0){case 2:d=2;c=3;if(J[a+284>>2])break f;if(J[a+296>>2]){c=2;h:{i:{e=K[a+300|0];switch(e|0){case 1:break i;case 0:break f;default:break h}}c=3;break f}c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=116;gc[J[J[a>>2]+4>>2]](a, --1);c=3;break f}f=J[a+216>>2];e=J[f+176>>2];g=J[f+88>>2];f=J[f>>2];if(!((f|0)!=1|(g|0)!=2)&(e|0)==3)break f;if(!((f|0)!=82|(g|0)!=71|(e|0)!=66)){c=2;break f}c=J[a>>2];J[c+24>>2]=f;J[c+20>>2]=113;J[c+32>>2]=e;J[c+28>>2]=g;gc[J[c+4>>2]](a,1);c=3;break f;case 3:d=4;if(!J[a+296>>2]){c=4;break f}c=4;j:{k:{e=K[a+300|0];switch(e|0){case 2:break k;case 0:break f;default:break j}}c=5;break f}c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=116;gc[J[J[a>>2]+4>>2]](a,-1);c=5;break f;case 0:break f;default:break g}c=0;d=0}J[a+ -44>>2]=d;J[a+40>>2]=c;J[a+136>>2]=0;J[a+96>>2]=256;J[a+88>>2]=2;J[a+92>>2]=1;J[a+80>>2]=1;J[a+84>>2]=0;J[a+72>>2]=0;J[a+76>>2]=1;J[a+64>>2]=0;J[a+68>>2]=0;J[a+56>>2]=0;J[a+60>>2]=1072693248;J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+20>>2]=202;c=J[a+424>>2];J[a+52>>2]=c;J[a+48>>2]=c;c=1;break a}c=gc[J[J[a+456>>2]>>2]](a)|0;break a}c=J[a>>2];J[c+24>>2]=d;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a);c=0}if((c|0)==2){if(b){b=J[a>>2];J[b+20>>2]=53;gc[J[b>>2]](a)}cx(a)}return c|0}function i$(a,b){var c=0,d=0, -e=0,f=0,g=0,h=0;f=bc-32|0;bc=f;a:{if(J[a+292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Hd(a)}d=J[a+36>>2];c=J[d+16>>2];b:{if(!(K[c|0]==60&K[c+1|0]==47)){fe(a,74,34982);break b}J[a+200>>2]=J[a+200>>2]+2;J[d+16>>2]=c+2;J[d+32>>2]=J[d+32>>2]+2;c=K[c+2|0];if((c|0)==37){Od(a);d=J[a+36>>2];c=K[J[d+16>>2]]}c:{if(c&255)break c;if((Cd(d)|0)>0)break c;while(1){e=J[a+40>>2];if((e|0)<2)break c;d:{e:{f:{if(!J[689531]){c=e-1|0;J[a+40>>2]=c;d=J[a+48>>2];break f}J[f+16>>2]=e;d=0;gc[J[659549]](J[689514], -36109,f+16|0);e=J[a+40>>2];if((e|0)<=0)break d;c=e-1|0;J[a+40>>2]=c;d=J[a+48>>2];h=0;g=0;if((e|0)==1)break e}h=J[((e<<2)+d|0)-8>>2];g=c}e=g;J[a+36>>2]=h;c=(e<<2)+d|0;d=J[c>>2];J[c>>2]=0}dh(d);c=J[a+36>>2];if(K[J[c+16>>2]])break c;if((Cd(c)|0)<=0)continue;break}}e=h$(a,J[a+184>>2]);g:{if(J[a+292>>2])break g;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break g;Hd(a)}Ud(a);c=J[a+36>>2];d=J[c+16>>2];h:{if(K[d|0]!=62){if(J[a+172>>2]==-1?J[a+212>>2]:0)break h;J[a+84>>2]=73;J[f>>2]=29271;Cc(0,0,0,a,0,1, -73,3,0,0,0,0,32890,f);J[a+12>>2]=0;if(J[a+288>>2])break h;J[a+212>>2]=1;break h}J[c+16>>2]=d+1;J[c+32>>2]=J[c+32>>2]+1;J[a+200>>2]=J[a+200>>2]+1;if(K[d+1|0])break h;Cd(c)}if((e|0)!=1)iB(a,76,32620,J[a+184>>2],b,e?e:14306);b=J[a>>2];i:{if(!b)break i;b=J[b+60>>2];if(J[a+212>>2]|!b)break i;gc[b|0](J[a+4>>2],J[a+184>>2])}b=J[a+188>>2];if((b|0)>0){e=b-1|0;J[a+188>>2]=e;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(e<<2)>>2]=0}b=J[a+236>>2];if((b|0)<=0)break b;c=b-1|0;J[a+236>>2]=c;g=a; -a=J[a+244>>2];J[g+232>>2]=(b|0)==1?a:(a+(b<<2)|0)-8|0;J[a+(c<<2)>>2]=-1}bc=f+32|0}function D$(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=bc+-64|0;bc=e;a:{if(!d|(!b|!c))break a;b:{g=J[b+68>>2];if(g)break b;g=up(0,J[b+80>>2]);J[b+68>>2]=g;if(g)break b;c:{if(!a){b=0;c=0;break c}b=J[a>>2];c=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break c;h=(b^-1)+a>>>0<249?b:0}J[e>>2]=38505;Cc(0,c,b,h,0,23,2,3,38505,0,0,0,32863,e);break a}f=gc[J[659447]](20)|0;if(!f){b=0;d=0;c=0;d:{if(!a)break d;b=J[a>>2];d=J[a+4>>2];c= -0;if((J[a+28>>2]&-2)!=-1412623820)break d;c=(b^-1)+a>>>0<249?b:0}J[e+16>>2]=17038;Cc(0,d,b,c,0,23,2,3,17038,0,0,0,32863,e+16|0);break a}i=f,j=$e(c),J[i+4>>2]=j;b=d;e:{if(!a)break e;b=d;if(!J[a+44>>2])break e;h=$e(J[d+8>>2]);b=0}J[f+8>>2]=b;J[f+12>>2]=h;i=f,j=i0(J[d+20>>2]),J[i+16>>2]=j;f:{g:{d=e0(g,c);if(d)break g;d=gc[J[659447]](12)|0;h:{if(!d){gc[J[659549]](J[689514],2090,0);d=0;break h}J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;a=gc[J[659447]](12)|0;J[d>>2]=a;if(!a){gc[J[659549]](J[689514],9874,0);gc[J[659451]](d); -d=0;break h}J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;J[d+4>>2]=3176;J[d+8>>2]=3177}if(!d){J[e+32>>2]=38329;Cc(0,0,0,0,0,23,1,2,0,0,0,0,4607,e+32|0);break f}if((LJ(g,c,d)|0)>=0)break g;a0(d);a=bc-16|0;bc=a;J[a>>2]=38284;Cc(0,0,0,0,0,23,1,2,0,0,0,0,4607,a);bc=a+16|0;break f}if(d){a=J[d>>2];while(1){a=J[a+4>>2];if((a|0)!=J[d>>2])if((gc[J[d+8>>2]](J[a+8>>2],f)|0)>0)continue;break}b=gc[J[659447]](12)|0;i:{if(!b){gc[J[659549]](J[689514],10246,0);a=1;break i}J[b+8>>2]=f;c=J[a>>2];J[b>>2]=c;J[c+4>>2]=b;J[a>>2]= -b;J[b+4>>2]=a;a=0}}else a=1;if(!a)break a;J[e+48>>2]=38284;Cc(0,0,0,0,0,23,1,2,0,0,0,0,4607,e+48|0)}a=J[f+4>>2];if(a)gc[J[659451]](a);a=J[f+12>>2];if(a)gc[J[659451]](a);gc[J[659451]](f)}bc=e- -64|0}function rB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=J[a+20>>2];if(g)g=J[g+296>>2];else g=0;a:{b:switch(J[b+4>>2]-9|0){case 9:while(1){a=J[b>>2];g=J[b+8>>2];if(g)gc[J[659451]](g);g=J[b+12>>2];if(g)gc[J[659451]](g);gc[J[659451]](b);b=a;if(b)continue;break}break a;case 0:case 4:cr(b);return;default:break b}while(1){d= -b;b=J[d+24>>2];c=J[d+4>>2];c:{if((c|0)==14)break c;d:{if((c|0)==5)break d;c=J[d+12>>2];if(!c)break d;if(J[c+20>>2]==(d|0))rB(a,c);J[d+12>>2]=0}e:{if(!J[689540])break e;c=J[689538];if(!c)break e;gc[c|0](d)}e=J[d+4>>2];f:{if(e>>>0>20|!(1<>2];if(!c)break f;while(1){f=J[c+24>>2];yJ(a,c);c=f;if(c)continue;break}e=J[d+4>>2]}h=J[d+40>>2];g:{if((h|0)==(d+44|0)|(1<>>0<=20:0)|!h)break g;f=g;if(f)while(1){c=J[f+16>>2];if(c)while(1){if(h>>>0<=M[c+4>>2]&h>>>0>=c+20>>> -0)break g;c=J[c>>2];if(c)continue;break}f=J[f+20>>2];if(f)continue;break}gc[J[659451]](h);e=J[d+4>>2]}h:{if(!(1<>>0>20)break h;c=J[d+48>>2];if(!c)break h;while(1){f=J[c>>2];e=J[c+8>>2];if(e)gc[J[659451]](e);e=J[c+12>>2];if(e)gc[J[659451]](e);gc[J[659451]](c);c=f;if(c)continue;break}e=J[d+4>>2]}i:{j:switch(e-3|0){case 0:case 5:break i;default:break j}h=J[d+8>>2];if(!h)break i;f=g;if(f)while(1){c=J[f+16>>2];if(c)while(1){if(h>>>0<=M[c+4>>2]&h>>>0>=c+20>>>0)break i;c=J[c>>2];if(c)continue; -break}f=J[f+20>>2];if(f)continue;break}gc[J[659451]](h);e=J[d+4>>2]}k:{l:switch(e-1|0){case 0:case 2:break l;default:break k}c=J[a+20>>2];if(!c)break k;f=J[c+368>>2];if((f|0)>99)break k;J[d+24>>2]=J[c+372>>2];J[c+368>>2]=f+1;J[c+372>>2]=d;break c}gc[J[659451]](d)}if(b)continue;break}}}function mra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-48|0;bc=e;a:{b:{if(J[a+36>>2]){a=Kc(e+24|0,2381714,2374197,1569,2420634,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;c=Z()|0;Fc(a); -break b}J[e+16>>2]=0;J[695492]=0;J[e+20>>2]=J[682146];d=e+16|0;ha(5109,b|0,d|0,0,0)|0;f=J[695492];J[695492]=0;c:{d:{e:{f:{if((f|0)==1)break f;J[695492]=0;d=fd(d,2382157,-1);f=J[695492];J[695492]=0;if((f|0)==1)break f;if(d)break d;g:{while(1){if((c|0)<=0)break g;J[695492]=0;d=e+16|0;f=ha(5109,b|0,d|0,0,0)|0;g=J[695492];J[695492]=0;h:{if((g|0)==1)break h;if(!f)break g;J[695492]=0;d=fd(d,2386573,-1);f=J[695492];J[695492]=0;if((f|0)==1)break h;i:{if(d)break i;J[695492]=0;J[e+12>>2]=0;d=e+12|0;aa(4985, -d|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break h;f=J[J[a>>2]+40>>2];J[695492]=0;aa(f|0,a|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break i;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break i;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break i}ea(0)|0;yc();B()}c=Z()|0;vc(e+12|0);break c}c=c-1|0;J[695492]=0;_(5162,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}c=Z()|0;break c}J[695492]=0;_(5162, -b|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[J[a>>2]+48>>2];J[695492]=0;_(b|0,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}c=Z()|0;break c}sc(e+16|0);bc=e+48|0;return}J[695492]=0;a=ja(5018,e+24|0,2382404,2374197,1573,2420634,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;c=Z()|0;Fc(a);break c}c=Z()|0}sc(e+16|0)}ba(c|0)}B()}function lQa(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;a=wc(a,0,256);d= -J[b>>2]+c|0;e=K[d+3|0];f=K[d|0];g=e+f|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+8>>2]=g-i<<4;J[a>>2]=(g+i<<4)+-8192;g=d-h|0;e=f-e|0;d=P(g+e|0,4433)+256|0;J[a+12>>2]=d+P(g,-15137)>>9;J[a+4>>2]=d+P(e,6270)>>9;d=J[b+4>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+40>>2]=e-i<<4;e=(e+i<<4)+-8192|0;J[a+32>>2]=e;h=d-h|0;f=g-f|0;d=P(h+f|0,4433)+256|0;J[a+44>>2]=d+P(h,-15137)>>9;J[a+36>>2]=d+P(f,6270)>>9;d=J[b+8>>2]+c|0;f=K[d+3|0];g=K[d|0];h=f+g|0;i=K[d+2|0];j=K[d+1|0];d=i+j|0;J[a+72>>2]= -h-d<<4;d=(d+h<<4)+-8192|0;J[a+64>>2]=d;h=j-i|0;g=g-f|0;f=P(h+g|0,4433)+256|0;J[a+76>>2]=f+P(h,-15137)>>9;f=f+P(g,6270)>>9;J[a+68>>2]=f;b=J[b+12>>2]+c|0;c=K[b+2|0];g=K[b+3|0];h=K[b|0];i=g+h|0;j=K[b+1|0];k=j+c|0;b=(i+k<<4)+-8192|0;l=J[a>>2];m=(b+l|0)+2|0;n=d+e|0;J[a+64>>2]=m-n>>2;J[a>>2]=m+n>>2;d=e-d|0;e=l-b|0;b=P(d+e|0,4433)+16384|0;J[a+96>>2]=b+P(d,-15137)>>15;J[a+32>>2]=b+P(e,6270)>>15;d=j-c|0;c=h-g|0;b=P(d+c|0,4433)+256|0;e=J[a+4>>2];c=b+P(c,6270)>>9;g=(e+c|0)+2|0;h=J[a+36>>2];j=h+f|0;J[a+68>>2]= -g-j>>2;J[a+4>>2]=g+j>>2;f=h-f|0;e=e-c|0;c=P(f+e|0,4433)+16384|0;J[a+100>>2]=c+P(f,-15137)>>15;J[a+36>>2]=c+P(e,6270)>>15;c=J[a+8>>2];e=i-k<<4;f=(c+e|0)+2|0;g=J[a+72>>2];h=J[a+40>>2];i=g+h|0;J[a+72>>2]=f-i>>2;J[a+8>>2]=f+i>>2;f=h-g|0;e=c-e|0;c=P(f+e|0,4433)+16384|0;J[a+104>>2]=c+P(f,-15137)>>15;J[a+40>>2]=c+P(e,6270)>>15;c=J[a+12>>2];b=b+P(d,-15137)>>9;d=(c+b|0)+2|0;e=J[a+76>>2];f=J[a+44>>2];g=e+f|0;J[a+76>>2]=d-g>>2;J[a+12>>2]=d+g>>2;d=f-e|0;c=c-b|0;b=P(d+c|0,4433)+16384|0;J[a+108>>2]=b+P(d,-15137)>> -15;J[a+44>>2]=b+P(c,6270)>>15}function gCa(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;a:{f=J[689874];if(!f){e=rc(32);J[e>>2]=0;J[e+4>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[695492]=0;f=aa(5080,e|0,2385952)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[689874]=f}J[a>>2]=0;J[695492]=0;e=$(5074,b|0)|0;g=J[695492];J[695492]=0;b:{if((g|0)!=1)c:{if(e){J[695492]=0;g=$(5069,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[695492]=0;e=J[J[f+ -12>>2]+((g>>>0)%M[f+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break c;d:{if(!e)break d;while(1){e:{if((g|0)==J[e+12>>2]){J[695492]=0;h=aa(5066,e+16|0,b|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break c;if(h)break e}e=J[e+8>>2];if(e)continue;break d}break}e=J[e+60>>2];if(!e)break d;f:{if((d|0)<0)while(1){if(J[J[e+8>>2]+80>>2]==(c|0))break f;e=J[e>>2];if(e)continue;break d}while(1){g=J[e+8>>2];if(J[g+80>>2]==(c|0)&J[g+84>>2]==(d|0))break f;e=J[e>>2];if(e)continue;break}break d}J[695492]=0;aa(4993, -a|0,e+8|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c}J[695492]=0;_(5075,f|0);e=J[695492];J[695492]=0;if((e|0)==1)break c}break b}b=Z()|0;vc(a);ba(b|0);B()}g:{if(J[a>>2])break g;J[695492]=0;g=$(4,128)|0;e=J[695492];J[695492]=0;h:{i:{j:{if((e|0)==1)break j;J[695492]=0;e=$(5088,g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;aa(4985,a|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break j;J[695492]=0;_(5089,e|0);f=J[695492];J[695492]=0;if((f|0)==1)break j;J[695492]=0;ia(5096,e|0,b|0, -c|0,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}f=Z()|0;break h}f=Z()|0;qc(g)}vc(a);ba(f|0);B()}return}a=Z()|0;qc(e);ba(a|0);B()}function pz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-80|0;bc=d;f=d+72|0;sj(f,b,0);J[695492]=0;da(6061,d+36|0,f|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){b=J[d+36>>2];if(b)c=J[b+8>>2];sc(d+36|0);b=J[d+72>>2];f=J[(b?b+12|0:2728584)>>2];b=f+c|0;if(K[b+1|0]==47)break c;c=b+1|0;b=c;break b}b=Z()|0;break a}c=K[b+2|0]==47?b+3|0:b+2|0;b=c;while(1){d:{e:{f:{g:{e=K[c| -0];switch(e-35|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:break d;case 12:break e;case 0:case 28:break f;default:break g}}if(e)break d}b=K[b|0]==47?b:c;break b}e=K[c+1|0];if(!e)break d;b=(e|0)==35?b:(e|0)==63?b:c}c=c+1|0;continue}}J[695492]=0;f=ga(5169,d+12|0,f|0,b-f|0)|0;b=J[695492];J[695492]=0;h:{i:{j:{k:{l:{m:{n:{if((b|0)!=1){J[695492]=0; -b=d+20|0;ca(5121,b|0,f|0,28650);e=J[695492];J[695492]=0;if((e|0)==1)break n;J[695492]=0;e=d+28|0;ca(5121,e|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break m;J[695492]=0;c=aa(6081,d+36|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[c>>2]=2426756;J[695492]=0;aa(4991,a|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break k;J[c+24>>2]=2381060;J[c>>2]=2381028;a=J[c+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[c+28>>2]=0}J[c+16>>2]=2381060;a=J[c+20>>2];if(a){b=J[a+ -4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[c+20>>2]=0}sc(c+8|0);sc(d+28|0);sc(d+20|0);sc(f);sc(d+72|0);bc=d+80|0;return}b=Z()|0;break a}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;ud(c)}sc(d+28|0)}sc(d+20|0)}sc(f)}sc(d+72|0);ba(b|0);B()}function jab(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;i=J[a+444>>2];a:switch(b|0){case 0:b:{if(J[J[a+472>>2]+8>>2]){J[i+4>>2]=300;q=J[a+36>>2];if((q|0)>0){n=J[a+324>>2];r=n-2|0;s=n+2|0;o=J[a+216>> -2];while(1){a=p<<2;b=J[a+J[i+60>>2]>>2];j=J[a+J[i+56>>2]>>2];e=J[(a+i|0)+8>>2];h=(P(J[o+40>>2],J[o+12>>2])|0)/(n|0)|0;k=P(s,h);c:{if((k|0)<=0)break c;c=0;a=0;if(k>>>0>=4){m=k&-4;l=0;while(1){d=a<<2;f=J[d+e>>2];J[b+d>>2]=f;J[d+j>>2]=f;f=d|4;g=J[f+e>>2];J[b+f>>2]=g;J[f+j>>2]=g;f=d|8;g=J[f+e>>2];J[b+f>>2]=g;J[f+j>>2]=g;d=d|12;f=J[d+e>>2];J[b+d>>2]=f;J[d+j>>2]=f;a=a+4|0;l=l+4|0;if((m|0)!=(l|0))continue;break}}l=k&3;if(!l)break c;while(1){d=a<<2;k=J[d+e>>2];J[b+d>>2]=k;J[d+j>>2]=k;a=a+1|0;c=c+1|0;if((l| -0)!=(c|0))continue;break}}d:{if((h|0)<=0)break d;a=h<<1;c=(a|0)<=1?1:a;l=c&1;d=P(h,r);k=P(h,n);a=0;if((c|0)!=1){f=c&2147483646;c=0;while(1){g=a+d<<2;m=a+k<<2;J[g+b>>2]=J[m+e>>2];J[b+m>>2]=J[e+g>>2];g=a|1;m=g+d<<2;g=g+k<<2;J[m+b>>2]=J[g+e>>2];J[b+g>>2]=J[e+m>>2];a=a+2|0;c=c+2|0;if((f|0)!=(c|0))continue;break}}if(l){c=a+d<<2;a=a+k<<2;J[c+b>>2]=J[a+e>>2];J[a+b>>2]=J[e+c>>2]}e=J[j>>2];a=0;b=0;if(h>>>0>=4){d=h&-4;c=0;while(1){J[(b-h<<2)+j>>2]=e;J[((b|1)-h<<2)+j>>2]=e;J[((b|2)-h<<2)+j>>2]=e;J[((b|3)-h<< -2)+j>>2]=e;b=b+4|0;c=c+4|0;if((d|0)!=(c|0))continue;break}}c=h&3;if(!c)break d;while(1){J[(b-h<<2)+j>>2]=e;b=b+1|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}o=o+88|0;p=p+1|0;if((q|0)!=(p|0))continue;break}}J[i+76>>2]=0;J[i+64>>2]=0;J[i+68>>2]=0;break b}J[i+4>>2]=301}J[i+48>>2]=0;J[i+52>>2]=0;return;case 2:J[i+4>>2]=302;return;default:break a}b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}function gi(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[c+8>>2]==-1)return 0;f=c+8|0;k=b;a:{b:{c:{while(1){g=(e<<4)+c| -0;h=J[g+4>>2];if(h>>>0>i>>>0){b=J[a+8>>2];while(1){d:{if(b){j=J[a+4>>2];b=b-1|0;break d}b=J[a>>2];j=gc[J[J[b>>2]+28>>2]](b)|0;J[a+4>>2]=j;J[a+12>>2]=J[a+12>>2]+1;h=J[g+4>>2];b=7}J[a+8>>2]=b;d=j>>>b&1|d<<1;i=i+1|0;if(h>>>0>i>>>0)continue;break}}if(J[g+12>>2]==(d|0)){d=(e<<4)+c|0;b=0;e:{f:{c=J[f>>2];switch(c+3|0){case 0:break f;case 1:break a;case 3:break c;default:break e}}e=J[a+4>>2];f=J[d>>2];c=J[a+8>>2];if(c>>>0>=32){b=a;a=c-32|0;J[b+8>>2]=a;a=f-(e>>>a|0)|0;break b}J[a+8>>2]=0;b=32-c|0;d=e&(-1<< -c^-1);g:{if(c>>>0<=24){c=24-c|0;if(!(c&8)){b=J[a>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[a+12>>2]=J[a+12>>2]+1;d=b&255|d<<8;b=c}if(c>>>0>=8)while(1){c=J[a>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+12>>2]=J[a+12>>2]+1;e=J[a>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;J[a+12>>2]=J[a+12>>2]+1;d=e&255|(c<<8&65280|d<<16);b=b-16|0;if(b>>>0>7)continue;break}if(!b)break g}c=J[a>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+4>>2]=c;e=8-b|0;J[a+8>>2]=e;J[a+12>>2]=J[a+12>>2]+1;d=(-1<>>e|d<>2];b=J[a+8>>2];if(b>>> -0>=c>>>0){b=b-c|0;J[a+8>>2]=b;a=e+(J[a+4>>2]>>>b&((c|0)==32?-1:-1<>2]=0;d=J[a+4>>2]&(-1<>>0>=8)while(1){c=J[a>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+12>>2]=J[a+12>>2]+1;d=c&255|d<<8;b=b-8|0;if(b>>>0>7)continue;break}if(b){c=J[a>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+4>>2]=c;f=8-b|0;J[a+8>>2]=f;J[a+12>>2]=J[a+12>>2]+1;d=(-1<>>f|d<>2]!=-1)continue;break}return 0}a=J[d>>2]}J[k>>2]=a;b=1}return b}function kX(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:{b:{c:{d:{if(b){if(!a)break d;if(!d)break c;e=kA();J[b+72>>2]=e;e:{if(!e)break e;f:{if(ep(J[b+184>>2],4655,d))if(ep(J[b+184>>2],4656,d))break f;break b}h=J[b+184>>2];if(!h)break a;g=J[h+8>>2];j=J[h>>2];g:{if(j){e=1;if((j|0)!=1){k=j&-2;while(1){i=0;h:{if(!e)break h;i=0;if(!(gc[J[g>>2]](b,a,d)|0))break h;i=(gc[J[g+4>>2]](b,a,d)|0)!=0}e=i;g=g+8|0;f=f+2|0;if((k|0)!=(f|0))continue;break}}i:{j:{if(j&1){if(!e)break j;e=(gc[J[g>>2]](b,a, -d)|0)!=0}J[h>>2]=0;if(!e)break i;break g}J[h>>2]=0}break b}J[h>>2]=0}k:{if(ep(J[b+180>>2],4657,d))if(ep(J[b+180>>2],4658,d))break k;break b}h=J[b+180>>2];if(!h)break a;g=J[h+8>>2];f=J[h>>2];l:{if(f){e=1;j=f&1;if((f|0)==1)f=0;else{k=f&-2;f=0;while(1){i=0;m:{if(!e)break m;i=0;if(!(gc[J[g>>2]](b,a,d)|0))break m;i=(gc[J[g+4>>2]](b,a,d)|0)!=0}e=i;g=g+8|0;f=f+2|0;if((k|0)!=(f|0))continue;break}f=!e}n:{o:{if(j){if(f)break o;e=(gc[J[g>>2]](b,a,d)|0)!=0}J[h>>2]=0;if(!e)break n;break l}J[h>>2]=0}break b}J[h>> -2]=0}a=kA();J[c>>2]=a;if(!a)break e;nH(J[b+72>>2],a);a=P(J[b+108>>2],J[b+104>>2]);J[J[b+188>>2]+36>>2]=a;d=ye(a,40);a=J[b+188>>2];J[a+40>>2]=d;p:{if(!d)break p;if(!J[a+36>>2])return 1;g=0;while(1){e=P(g,40);a=e+d|0;J[a+20>>2]=0;J[a+28>>2]=100;a=ye(100,24);f=J[b+188>>2];d=J[f+40>>2];J[(e+d|0)+24>>2]=a;if(!a)break p;l=1;g=g+1|0;if(g>>>0>2])continue;break}break e}Rm(J[c>>2]);l=0;J[c>>2]=0}return l|0}fa(2346477,2346358,8261,2346530);B()}fa(2346550,2346358,8262,2346530);B()}fa(2346590,2346358, -8263,2346530);B()}Rm(J[b+72>>2]);J[b+72>>2]=0;return 0}fa(2352721,2346358,8861,2352744);B()}function tCa(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;f=bc-32|0;bc=f;if(Pj(b)){J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;g=f+16|0;J[g>>2]=2386024;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[695492]=0;e=$(5069,b|0)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)==1)break b;J[695492]=0;d=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break b;c:{if(d)while(1){if((e|0)==J[d+ -12>>2]){J[695492]=0;h=aa(5066,d+16|0,b|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(h)break c}d=J[d+8>>2];if(d)continue;break}J[f+12>>2]=a;J[f+8>>2]=0;J[695492]=0;d=aa(5071,a|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;aa(5072,d+52|0,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;e=$(5069,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;d=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break b;if(d)while(1){if((e| -0)==J[d+12>>2]){J[695492]=0;h=aa(5066,d+16|0,b|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(h)break c}d=J[d+8>>2];if(d)continue;break}J[f+12>>2]=a;J[f+8>>2]=0;J[695492]=0;da(5073,f+8|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;B()}J[f+12>>2]=a;J[f+8>>2]=d;b=J[d+60>>2];if(b){e=J[c>>2];while(1){if((e|0)==J[b+8>>2])break a;b=J[b>>2];if(b)continue;break}}J[695492]=0;b=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[b>>2]=0;J[b+4>>2]=0;e=J[c>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>> -2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break b;c=J[c>>2]}else c=0;J[b+8>>2]=c;J[695492]=0;of(d+52|0,b);b=J[695492];J[695492]=0;if((b|0)!=1)break a}a=Z()|0;$c(g);ba(a|0);B()}$c(g)}Uz(a);bc=f+32|0}function D7(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=bc-32|0;bc=c;h=!a;a:{if(h|((h?-1:J[a+8>>2])|0)!=2)break a;f=a?J[a+36>>2]:0;if(!(!f|b)){d=Hk(a,1);break a}xf(a,c+28|0,c+24|0,0);e=uh(J[c+28>>2],J[c+24>>2],8);if(!e)break a;if(!(!e|!a|(a|0)==(e|0))){J[e+20>>2]=J[a+20>>2];J[e+24>> -2]=J[a+24>>2]}m=a?J[a+40>>2]:0;n=a?J[a+12>>2]:-1;o=e?J[e+40>>2]:0;h=e?J[e+12>>2]:-1;b:{if((b|0)==1){d=p7();c:{if(f){b=f?J[f+12>>2]:0;if((b|0)<=0)break c;a=0;while(1){Up(f,a,c+20|0,c+16|0,c+12|0);th(d,J[c+20>>2],J[c+16>>2],J[c+12>>2]);a=a+1|0;if((b|0)!=(a|0))continue;break}break c}th(d,0,0,0);th(d,85,85,85);th(d,170,170,170);th(d,255,255,255)}OM(e,d);a=J[c+24>>2];if((a|0)<=0)break b;b=J[c+28>>2];if((b|0)<=0)break b;d=0;while(1){if((b|0)>0){j=(P(d,h)<<2)+o|0;f=(P(d,n)<<2)+m|0;a=0;while(1){H[a+j^3]= -J[f+(a>>>2&1073741820)>>2]>>>((a^-1)<<1)&3;a=a+1|0;b=J[c+28>>2];if((a|0)<(b|0))continue;break}a=J[c+24>>2]}d=d+1|0;if((d|0)<(a|0))continue;break}break b}g=bd(256,4);if(!g)break a;H[c+23|0]=255;H[c+22|0]=170;H[c+21|0]=85;H[c+20|0]=0;a=0;while(1){b=c+20|0;J[g+(a<<2)>>2]=K[b+(a&3)|0]|(K[b+(a>>>4&3)|0]<<16|K[b+(a>>>6|0)|0]<<24|K[b+(a>>>2&3)|0]<<8);a=a+1|0;if((a|0)!=256)continue;break}d:{if(J[c+24>>2]<=0)break d;b=J[c+28>>2];if((b|0)<=0)break d;a=(b+3|0)/4|0;a=(a|0)<=1?1:a;p=a&2147483646;j=a&1;f=(b|0)< -5;while(1){k=(P(h,i)<<2)+o|0;l=(P(i,n)<<2)+m|0;a=0;d=0;if(!f)while(1){J[k+(a<<2)>>2]=J[g+(K[a+l^3]<<2)>>2];b=a|1;J[k+(b<<2)>>2]=J[g+(K[b+l^3]<<2)>>2];a=a+2|0;d=d+2|0;if((p|0)!=(d|0))continue;break}if(j)J[k+(a<<2)>>2]=J[g+(K[a+l^3]<<2)>>2];i=i+1|0;if((i|0)>2])continue;break}}qc(g)}d=e}bc=c+32|0;return d}function Aw(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=bc-16|0;bc=j;a:{if(!a|!b)break a;f=J[a+76>>2];b:{i=J[b>>2];if(!i){g=-1;break b}if(f){g=J[a+80>>2];c=1;d=f;while(1){c:{k=(d-c>>> -1|0)+c|0;l=k-1|0;h=J[P(l,20)+g>>2];e=i>>>0>h>>>0;if((h|0)==(i|0))break c;d=h>>>0>i>>>0?l:d;c=e?k+1|0:c;if(d>>>0>=c>>>0)continue}break}g=k?e?k:l:0}else g=0;if(g>>>0>=f>>>0)break b;d=J[a+80>>2];if(!d)break b;d=d+P(g,20)|0;if((i|0)!=J[d>>2])break b;a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;J[d+16>>2]=J[b+16>>2];a=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=a;break a}d=J[a+72>>2];d:{if(d>>>0>=f+1>>>0){c=J[a+80>>2];if(c)break d}if(!d){J[a+72>>2]=2;d=2}c=P(d,40);d=J[a+80>>2];e:{if(!d){c=gc[J[659447]](c)|0; -break e}c=gc[J[659452]](d,c)|0}if(!c){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;J[j>>2]=33106;Cc(0,0,0,a,0,1,2,3,33106,0,0,0,32863,j);break a}J[a+80>>2]=c;J[a+72>>2]=J[a+72>>2]<<1;f=J[a+76>>2]}if(f>>>0>g>>>0){d=f;if(d-g&1){c=J[a+80>>2]+P(d,20)|0;e=c-20|0;d=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]=d;J[c+16>>2]=J[e+16>>2];d=J[e+12>>2];J[c+8>>2]=J[e+8>>2];J[c+12>>2]=d;d=f-1|0}if((g+1|0)!=(f|0))while(1){f=P(d,20);e=f+J[a+80>>2]|0;h=e-20|0;c=J[h+4>>2];J[e>>2]=J[h>>2]; -J[e+4>>2]=c;J[e+16>>2]=J[h+16>>2];c=J[h+12>>2];J[e+8>>2]=J[h+8>>2];J[e+12>>2]=c;f=f+J[a+80>>2]|0;c=f-20|0;e=f-40|0;f=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]=f;f=J[e+12>>2];J[c+8>>2]=J[e+8>>2];J[c+12>>2]=f;J[c+16>>2]=J[e+16>>2];d=d-2|0;if(g>>>0>>0)continue;break}c=J[a+80>>2]}d=J[b+4>>2];c=P(g,20)+c|0;J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+16>>2]=J[b+16>>2];d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;J[a+76>>2]=J[a+76>>2]+1}bc=j+16|0}function ysa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;H[c+15|0]= -b;b=J[a>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2414676;la(5463,c+4|0,c+16|0,c+15|0,0,1);d=J[695492];J[695492]=0;a:{b:{c:{d:{if((d|0)!=1){J[c+16>>2]=2414580;d=J[c+28>>2];if(d){H[d|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;ed(d);J[695492]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2414676;ia(5485,c+8|0,d|0,b|0,c+4|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[c+16>>2]=2414580;b=J[c+28>>2];if(b){H[b|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;d= -c+16|0;ed(d);b=J[c+8>>2];e:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break e;a=Z()|0;break c}J[c+16>>2]=0}J[695492]=0;aa(4993,a|0,c+16|0)|0;b=J[695492];J[695492]=0;f:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break f;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f}break a}a=Z()|0;vc(c+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>> -2];b=J[c+8>>2];J[c+8>>2]=0;g:{if(!b)break g;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break g;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[c+4>>2];J[c+4>>2]=0;h:{if(!b)break h;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+32|0;return a|0}a=Z()|0;bh(c+16|0);ba(a|0);B()}a=Z()|0;bh(c+16|0);break b}vc(c+8| -0)}vc(c+4|0);ba(a|0);B()}ea(0)|0;yc();B()}function bq(a,b){a=a|0;b=b|0;var c=0;c=K[b+12|0]|K[b+13|0]<<8;a=K[a+494|0];c=a?c:c<<8|c>>>8;H[b+12|0]=c;H[b+13|0]=c>>>8;c=K[b+14|0]|K[b+15|0]<<8;c=a?c:c<<8|c>>>8;H[b+14|0]=c;H[b+15|0]=c>>>8;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+4|0]=c;H[b+5|0]=c>>> -8;H[b+6|0]=c>>>16;H[b+7|0]=c>>>24;c=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]=c>>>16;H[b+11|0]=c>>>24;c=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+16|0]=c;H[b+17|0]=c>>>8;H[b+18|0]=c>>>16;H[b+19|0]=c>>>24;c=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+20|0]=c;H[b+21|0]=c>>>8;H[b+22|0]=c>>>16; -H[b+23|0]=c>>>24;c=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+24|0]=c;H[b+25|0]=c>>>8;H[b+26|0]=c>>>16;H[b+27|0]=c>>>24;c=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+28|0]=c;H[b+29|0]=c>>>8;H[b+30|0]=c>>>16;H[b+31|0]=c>>>24;c=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+32|0]=c;H[b+33|0]=c>>>8;H[b+34|0]=c>>>16;H[b+35|0]=c>>> -24;c=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);a=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+36|0]=a;H[b+37|0]=a>>>8;H[b+38|0]=a>>>16;H[b+39|0]=a>>>24}function PD(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;g=bc-16|0;bc=g;a:{b:{c:{d:{if(K[a+370|0]){J[e>>2]=0;if(!J[a+376>>2]){J[a+372>>2]=32768;f=gc[J[a+152>>2]](32768)|0;J[a+376>>2]=f;if(!f){f=1;break b}J[a+380>>2]=f;J[a+384>>2]=0}if(M[a+372>>2]>>0)break d;if(K[a+368|0])break c;while(1){if(K[a+346|0])break c;e:{f=J[a+384>>2];if(f>>>0>> -0){c=J[a+376>>2];h=J[a+372>>2];i=J[a+380>>2];f:{if(c+(h-(i+f|0)|0)>>>0>1023){c=i;break f}if(f){tc(c,i,f);h=J[a+372>>2];c=J[a+376>>2];f=J[a+384>>2]}else f=0;J[a+380>>2]=c}if(h-f>>>0<1024){f=999;break b}f=nN(a,c+f|0,1024,g+12|0);if(f)break a;f=J[g+12>>2];c=f+J[a+384>>2]|0;J[a+384>>2]=c;if(!(f|!K[a+369|0])){g:{if(K[a+346|0])break g;H[a+346|0]=1;f=J[a+168>>2];if(!f)break g;if(!(gc[f|0](a)|0)){f=901;break b}c=J[a+384>>2]}if(c){tc(b,J[a+380>>2],c);c=J[a+384>>2]}else c=0;J[e>>2]=c;J[a+384>>2]=0;J[a+380>> -2]=J[a+376>>2];break e}if(f>>>0>1023|c>>>0>=d>>>0)break e;H[a+368|0]=1;break c}tc(b,J[a+380>>2],d);J[e>>2]=d;J[a+380>>2]=J[a+380>>2]+d;J[a+384>>2]=J[a+384>>2]-d;break c}H[a+369|0]=0;if(!K[a+368|0])continue;break}break c}f=nN(a,b,d,e);if(f)break a;if(J[e>>2])break c;H[a+368|0]=1;break c}f=J[c>>2];h:{if(f)break h;f=J[a+384>>2];if(f){j=c,k=tc(b,J[a+380>>2],f)+J[a+384>>2]|0,J[j>>2]=k;J[a+384>>2]=0;J[a+380>>2]=J[a+376>>2];f=J[c>>2];break h}J[c>>2]=b;f=b}i=f-b|0;h=d-i|0;f=nN(a,f,h,g+12|0);if(f)break a; -b=J[g+12>>2];if(!(b|!K[a+369|0])){i:{if(K[a+346|0])break i;H[a+346|0]=1;b=J[a+168>>2];if(!b)break i;if(gc[b|0](a)|0)break i;f=901;break b}J[e>>2]=i;break c}if(b>>>0>>0){J[c>>2]=b+J[c>>2];H[a+368|0]=1;break c}J[e>>2]=d}f=0;H[a+369|0]=0;break a}Dc(a,f,0,0)}bc=g+16|0;return f}function Dia(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;a:{b:{if(!J[a+64>>2]){g=-1;break b}g=J[a+92>>2]&8;if(!g){J[a+28>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;c:{if(K[a+98|0]){b=J[a+32>>2];c=b+J[a+52>>2]|0;J[a+16>>2]=c; -break c}b=J[a+56>>2];c=b+J[a+60>>2]|0;J[a+16>>2]=c}J[a+12>>2]=c;J[a+8>>2]=b;J[a+92>>2]=8}if(!J[a+12>>2]){b=e+16|0;J[a+16>>2]=b;J[a+12>>2]=b;J[a+8>>2]=e+15}if(g){b=J[a+16>>2];c=J[a+8>>2];J[e+4>>2]=4;J[e+8>>2]=(b-c|0)/2;b=bc-16|0;bc=b;bc=b+16|0;b=e+4|0;c=e+8|0;f=J[(M[b>>2]>2]?b:c)>>2]}g=-1;b=J[a+16>>2];d:{if((b|0)==J[a+12>>2]){Zc(J[a+8>>2],b-f|0,f);if(K[a+98|0]){b=J[a+8>>2]+f|0;b=Yd(b,1,J[a+16>>2]-b|0,J[a+64>>2]);if(!b)break d;c=J[a+8>>2];g=J[a+8>>2]+f|0;J[a+16>>2]=b+(J[a+8>>2]+f|0);J[a+12>>2]= -g;J[a+8>>2]=c;g=K[J[a+12>>2]];break d}b=J[a+40>>2];c=J[a+36>>2];e:{if((b|0)==(c|0)){d=b;break e}Zc(J[a+32>>2],c,b-c|0);b=J[a+36>>2];d=J[a+40>>2]}d=d-b|0;b=J[a+32>>2];c=d+b|0;J[a+36>>2]=c;b=b+((b|0)==(a+44|0)?8:J[a+52>>2])|0;J[a+40>>2]=b;J[e+8>>2]=J[a+60>>2]-f;J[e+4>>2]=b-c;b=bc-16|0;bc=b;bc=b+16|0;c=e+4|0;b=e+8|0;c=J[(M[c>>2]>2]?c:b)>>2];d=J[a+76>>2];J[a+80>>2]=J[a+72>>2];J[a+84>>2]=d;d=Yd(J[a+36>>2],1,c,J[a+64>>2]);if(!d)break d;c=J[a+68>>2];if(!c)break a;d=d+J[a+36>>2]|0;J[a+40>>2]=d;h=d;d= -J[a+8>>2];f:{if((gc[J[J[c>>2]+16>>2]](c,a+72|0,J[a+32>>2],h,a+36|0,d+f|0,d+J[a+60>>2]|0,b)|0)==3){b=J[a+32>>2];J[a+16>>2]=J[a+40>>2];J[a+12>>2]=b;J[a+8>>2]=b;break f}b=J[e+8>>2];c=J[a+8>>2];f=c+f|0;if((b|0)==(f|0))break d;J[a+16>>2]=b;J[a+12>>2]=f;J[a+8>>2]=c}g=K[J[a+12>>2]];break d}g=K[J[a+12>>2]]}if(J[a+8>>2]!=(e+15|0))break b;J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0}bc=e+16|0;return g|0}Ju();B()}function $3a(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0; -h=bc-16|0;bc=h;a:{if(b){i=J[a+8>>2];if(i){gc[J[J[i>>2]+12>>2]](i)|0;J[a+8>>2]=0}i=L3(h+12|0);J[J[i>>2]>>2]=J[b+40>>2];j=J[J[b>>2]+28>>2];J[695492]=0;b=ma(j|0,b|0,i|0,c|0,d|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+8>>2]=b;b:{if(!b)break b;J[b+284>>2]=a;k=O[g>>3];l=O[f>>3];m=O[e>>3];J[695492]=0;gb(2681,b|0,+m,+l,+k);b=J[695492];J[695492]=0;if((b|0)==1)break a;d=a+112|0;c:{if(H[a+123|0]<0){J[a+116>>2]=0;b=J[a+112>>2];break c}H[a+123|0]=0;b=d}J[b>>2]=0;n=1;b=J[J[a+8>>2]+188>>2];if(!b)break b; -c=J[b+20>>2];d:{if(c){e=0;e:{g=K[c|0];if(!g)break e;b=c;while(1){f=e;e=e+1|0;j=K[b+1|0];b=b+1|0;if(j)continue;break}if((g|0)!=60|f>>>0<6|(K[c+1|0]!=117|K[c+2|0]!=116))break e;if(K[c+3|0]!=102|K[c+4|0]!=56|K[c+5|0]!=62)break e;J[695492]=0;ca(1618,h|0,c+6|0,f-5|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break a}J[695492]=0;ia(2682,h|0,c|0,e|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break a;break d}J[h>>2]=0;H[h+11|0]=0}b=J[a+8>>2];if(H[b+303|0]<0)qc(J[b+292>>2]);c=J[h+4>>2];J[b+292>>2]=J[h>>2];J[b+ -296>>2]=c;J[b+300>>2]=J[h+8>>2];b=J[a+8>>2];c=b+292|0;if((c|0)==(d|0))break b;f=K[b+303|0];e=f<<24>>24;if(H[a+123|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=a;J[d+8>>2]=J[c+8>>2];break b}a=J[b+296>>2];b=J[b+292>>2];J[695492]=0;ga(1630,d|0,b|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}a=J[b+296>>2];b=J[b+292>>2];J[695492]=0;g=b;b=(e|0)<0;ga(1629,d|0,(b?g:c)|0,(b?a:f)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a}Ed(i)}bc=h+16|0;return n|0}a=Z()|0;Ed(i);ba(a|0);B()} -function ie(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[a+28>>2];a:{e=J[a>>2];b:{if(!e)if(!J[J[(J[a+24>>2]+(d<<2)|0)-4>>2]+20>>2]|(d|0)<=0)break b;f=d;d=J[a+32>>2];if((f|0)>=(d|0)){d=d<<1;J[a+32>>2]=d;i=a,j=Nd(J[a+24>>2],d,4),J[i+24>>2]=j;e=J[a>>2]}d=rc(24);c:{if(e){g=O[a+16>>3];h=O[a+8>>3];J[d+16>>2]=16;J[695492]=0;e=aa(3376,16,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[d>>2]=e;e=J[d+16>>2];J[695492]=0;e=aa(3376,e|0,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[d+4>>2]=e;e=J[d+16>>2]; -J[695492]=0;e=aa(3376,e|0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[d+12>>2]=1;J[d+8>>2]=e;O[J[d>>2]>>3]=h;O[J[d+4>>2]>>3]=g;J[e>>2]=0;J[d+20>>2]=0;e=J[a+28>>2];f=J[a+24>>2]+(e<<2)|0;break c}e=J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2];f=J[e+12>>2]<<3;g=O[(f+J[e+4>>2]|0)-8>>3];h=O[(f+J[e>>2]|0)-8>>3];J[d+16>>2]=16;J[695492]=0;e=aa(3376,16,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[d>>2]=e;e=J[d+16>>2];J[695492]=0;e=aa(3376,e|0,8)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[d+4>>2]= -e;e=J[d+16>>2];J[695492]=0;e=aa(3376,e|0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[d+12>>2]=1;J[d+8>>2]=e;O[J[d>>2]>>3]=h;O[J[d+4>>2]>>3]=g;J[e>>2]=0;J[d+20>>2]=0;e=J[a+28>>2];f=J[a+24>>2]+(e<<2)|0}J[f>>2]=d;J[a>>2]=0;d=e+1|0;J[a+28>>2]=d}a=J[(J[a+24>>2]+(d<<2)|0)-4>>2];d=J[a+12>>2];e=J[a+16>>2];d:{if((d|0)<(e|0)){e=J[a+8>>2];break d}d=e<<1;J[a+16>>2]=d;i=a,j=Nd(J[a>>2],d,8),J[i>>2]=j;i=a,j=Nd(J[a+4>>2],J[a+16>>2],8),J[i+4>>2]=j;e=Nd(J[a+8>>2],J[a+16>>2],4);J[a+8>>2]=e;d=J[a+12>>2]}f=d<< -3;O[f+J[a>>2]>>3]=b;O[f+J[a+4>>2]>>3]=c;J[(d<<2)+e>>2]=0;J[a+12>>2]=J[a+12>>2]+1;return}a=Z()|0;qc(d);ba(a|0);B()}function HHa(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;d=bc-80|0;bc=d;J[d+76>>2]=1;a:{b:{e=J[a+104>>2];if((e|0)!=1|J[a+108>>2]!=1|(J[a+84>>2]|J[a+88>>2]))break b;g=J[a+76>>2];if(J[g>>2]|J[g+4>>2]|(J[g+8>>2]!=J[a+92>>2]|J[g+12>>2]!=J[a+96>>2]))break b;e=0;if(!Xs(a,d+72|0,0,d+68|0,d- -64|0,d+60|0,d+56|0,d+52|0,d+76|0,b,c))break a;c:{if(Cv(a,J[d+72>>2],0,0,b,c)){b=J[a+76>>2];if(J[b+ -16>>2])break c;e=1;break a}Hc(c,1,2358880,0);break a}b=J[b+24>>2];c=0;while(1){e=P(c,52);qc(J[(e+b|0)+44>>2]);g=J[a+76>>2];b=J[g+24>>2];f=e+b|0;h=J[a+196>>2];i=J[J[J[h+20>>2]>>2]+20>>2]+P(c,76)|0;J[f+44>>2]=J[i+36>>2];J[f+36>>2]=J[(e+J[J[h+24>>2]+24>>2]|0)+36>>2];J[i+36>>2]=0;e=1;c=c+1|0;if(c>>>0>2])continue;break}break a}while(1){d:{e:{if(!(!J[J[a+156>>2]+5596>>2]|((e|0)!=1|J[a+108>>2]!=1))){J[d+72>>2]=0;J[a+192>>2]=0;J[a+8>>2]=J[a+8>>2]|128;e=0;break e}e=0;if(!Xs(a,d+72|0,0,d+68|0,d- -64| -0,d+60|0,d+56|0,d+52|0,d+76|0,b,c))break a;if(!J[d+76>>2])break d;e=J[d+72>>2]}g=e+1|0;h=Cv(a,e,0,0,b,c);f=P(J[a+104>>2],J[a+108>>2]);if(!h){J[d+4>>2]=f;J[d>>2]=g;Hc(c,1,2358907,d);e=0;break a}J[d+36>>2]=f;J[d+32>>2]=g;Hc(c,4,2358936,d+32|0);if(!WW(J[a+196>>2],J[J[a+76>>2]+24>>2])){e=0;break a}f:{if(!(J[a+104>>2]!=1|J[a+108>>2]!=1)){f=J[a+76>>2];h=J[a+72>>2];if(J[f>>2]!=J[h>>2]|J[f+4>>2]!=J[h+4>>2]|(J[f+8>>2]!=J[h+8>>2]|J[f+12>>2]!=J[h+12>>2]))break f}e=J[a+156>>2]+P(e,5644)|0;f=J[e+5596>>2];if(!f)break f; -qc(f);J[e+5596>>2]=0;J[e+5600>>2]=0}J[d+16>>2]=g;Hc(c,4,2358966,d+16|0);if(!(Yk(b)|fc)&J[a+8>>2]==64)break d;i=i+1|0;e=J[a+104>>2];if((i|0)!=(P(e,J[a+108>>2])|0))continue}break}e=VW(a,c)}bc=d+80|0;return e|0}function cVa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;pd(b,J[a+4>>2]-J[a>>2]>>2);c=J[a>>2];if((c|0)!=J[a+4>>2])while(1){pd(b,J[(f<<2)+c>>2]);f=f+1|0;c=J[a>>2];if(f>>>0>2]-c>>2>>>0)continue;break}pd(b,J[a+16>>2]-J[a+12>>2]>>2);c=J[a+12>>2];if((c|0)!=J[a+16>>2]){f=0;while(1){d=J[(f<< -2)+c>>2];pd(b,J[d+4>>2]);pd(b,J[d>>2]);c=J[d>>2];if(c&1){c=K[d+59|0];e=c<<24>>24<0;jf(b,e?J[d+48>>2]:d+48|0,e?J[d+52>>2]:c);c=J[d>>2]}if(c&2){c=K[d+71|0];e=c<<24>>24<0;jf(b,e?J[d+60>>2]:d+60|0,e?J[d- -64>>2]:c);c=J[d>>2]}if(c&4){c=K[d+83|0];e=c<<24>>24<0;jf(b,e?J[d+72>>2]:d+72|0,e?J[d+76>>2]:c);c=J[d>>2]}a:{if(!(c&8))break a;pd(b,J[d+16>>2]-J[d+12>>2]>>2);e=J[d+12>>2];if((e|0)==J[d+16>>2])break a;c=0;while(1){pd(b,J[(c<<2)+e>>2]);c=c+1|0;e=J[d+12>>2];if(c>>>0>2]-e>>2>>>0)continue;break}}c= -J[d>>2];if(c&16){pd(b,J[d+8>>2]);c=J[d>>2]}b:{if(!(c&32))break b;pd(b,(J[d+28>>2]-J[d+24>>2]|0)/12|0);c=J[d+24>>2];if((c|0)==J[d+28>>2])break b;e=0;while(1){c=P(e,12)+c|0;g=K[c+11|0];h=g<<24>>24<0;jf(b,h?J[c>>2]:c,h?J[c+4>>2]:g);e=e+1|0;c=J[d+24>>2];if(e>>>0<(J[d+28>>2]-c|0)/12>>>0)continue;break}}c:{if(!(K[d|0]&64))break c;pd(b,(J[d+40>>2]-J[d+36>>2]|0)/12|0);c=J[d+36>>2];if((c|0)==J[d+40>>2])break c;e=0;while(1){c=P(e,12)+c|0;g=K[c+11|0];h=g<<24>>24<0;jf(b,h?J[c>>2]:c,h?J[c+4>>2]:g);e=e+1|0;c=J[d+ -36>>2];if(e>>>0<(J[d+40>>2]-c|0)/12>>>0)continue;break}}f=f+1|0;c=J[a+12>>2];if(f>>>0>2]-c>>2>>>0)continue;break}}pd(b,J[a+28>>2]-J[a+24>>2]>>2);c=J[a+24>>2];if((c|0)!=J[a+28>>2]){f=0;while(1){c=J[(f<<2)+c>>2];gc[J[J[c>>2]+8>>2]](c,b);f=f+1|0;c=J[a+24>>2];if(f>>>0>2]-c>>2>>>0)continue;break}}}function r9(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=bc-16|0;bc=g;b=Wx(b?b:202512);a:{if(!b)break a;d=16384;f=-1;if(!Go(b))while(1){b:{c:{d:{e:{c=Or(2632896,J[b+4>>2]);switch(J[(c?c:2631056)>> -2]){case 2:break b;case 1:break d;case 0:break e;default:break c}}d=Zf(J[b+8>>2]);break b}f=Zf(J[b+8>>2]);break b}J[g>>2]=J[b+4>>2];hd(203030,g)}if(!Go(b))continue;break}zu(b);p9();c=zc(108);if(!c)break a;J[c>>2]=0;J[c+4>>2]=0;J[c+76>>2]=0;J[c+80>>2]=0;J[c+72>>2]=f;J[c+68>>2]=d;J[c+64>>2]=0;J[c+60>>2]=a;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+ -92>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;f=E9();f:{if(!f)break f;J[c+84>>2]=1;J[c+104>>2]=f;while(1){d=SN(J[c+60>>2],f);if(!d){e=0;hd(203563,0);break f}b=J[d>>2];e=2632656;while(1){a=e;h=J[a>>2];if(h){e=a+12|0;if((b|0)!=(h|0))continue}break}if(!(J[a+4>>2]&J[c+84>>2])){e=0;hd(204465,0);Ci(d);break f}a=J[a+8>>2];g:{if(!a){Ci(d);b=0;break g}b=gc[a|0](c,d)|0;Ci(d);e=0;if((b|0)<0)break f}if(!b)continue;break}e=J[c>>2];b=J[e+16>>2];a=J[e+24>>2];J[J[a>>2]+40>>2]=0;if((b|0)>=3){J[J[a+4>>2]+40>>2]=1;J[J[a+8>>2]+ -40>>2]=2;a=1025}else a=769;J[e+28>>2]=a;J[c>>2]=0}a=J[c+104>>2];if(a)qc(a);d=J[c+96>>2];if(d){a=J[d+8>>2];if(a){if(J[d>>2]>0){b=0;while(1){If(J[J[d+8>>2]+(b<<2)>>2]);b=b+1|0;if((b|0)>2])continue;break}a=J[d+8>>2]}qc(a)}qc(d)}a=J[c>>2];if(a)yh(a);a=J[c+64>>2];if(a){b=J[a+24>>2];if(b)qc(b);b=J[a+4>>2];if(b)JN(b);qc(a)}a=J[c+88>>2];if(a)qc(a);a=J[c+48>>2];if(a)qc(a);qc(c)}bc=g+16|0;return e|0}function fba(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=J[a+508>>2];if((c|0)>=2){d=c-2|0;c=0;while(1){if(J[(P(c, -12)+a|0)+272>>2]==218)break a;e=(c|0)!=(d|0);c=c+1|0;if(e)continue;break}}b=K[47321]|K[47322]<<8|(K[47323]<<16|K[47324]<<24);H[a+35|0]=b;H[a+36|0]=b>>>8;H[a+37|0]=b>>>16;H[a+38|0]=b>>>24;b=K[47318]|K[47319]<<8|(K[47320]<<16|K[47321]<<24);c=K[47314]|K[47315]<<8|(K[47316]<<16|K[47317]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[47310]|K[47311]<<8|(K[47312]<<16|K[47313]<<24);c=K[47306]|K[47307]<<8|(K[47308]<<16| -K[47309]<<24);H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[47302]|K[47303]<<8|(K[47304]<<16|K[47305]<<24);c=K[47298]|K[47299]<<8|(K[47300]<<16|K[47301]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[47294]|K[47295]<<8|(K[47296]<<16|K[47297]<<24);c=K[47290]|K[47291]<<8|(K[47292]<<16|K[47293]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]= -c>>>16;H[a+7|0]=c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;return 0}gc[J[J[b>>2]+44>>2]](b,255)|0;gc[J[J[b>>2]+44>>2]](b,216)|0;if((J[a+272>>2]&-2)!=224)gc[J[J[b>>2]+16>>2]](b,2626832,18,1)|0;c=0;if(J[a+508>>2]>=2)while(1){gc[J[J[b>>2]+44>>2]](b,255)|0;d=P(c,12)+a|0;gc[J[J[b>>2]+44>>2]](b,K[d+272|0])|0;gc[J[J[b>>2]+16>>2]](b,J[d+268>>2],J[d+276>>2],1)|0;c=c+1|0;if((c|0)<(J[a+508>>2]-1|0))continue;break}a=P(c,12)+a|0;gc[J[J[b>>2]+16>>2]](b,J[a+268>>2],J[a+276>>2],1)|0;return 1} -function ao(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;WI(a,b);pd(b,J[a+4>>2]);c=J[a+4>>2];if(c&1){pd(b,J[a+144>>2]);c=J[a+4>>2]}if(c&2){c=K[a+171|0];d=c<<24>>24<0;jf(b,d?J[a+160>>2]:a+160|0,d?J[a+164>>2]:c);c=J[a+4>>2]}if(c&4){e=O[a+152>>3]*100;a:{if(R(e)<2147483648){d=~~e;break a}d=-2147483648}pd(b,d);c=J[a+4>>2]}b:{if(!(c&8))break b;pd(b,J[a+200>>2]-J[a+196>>2]>>2);c=J[a+196>>2];if((c|0)==J[a+200>>2])break b;while(1){f=h<<2;we(b,K[J[f+c>>2]+1|0]);pd(b,J[J[f+J[a+196>>2]>>2]+4>>2]);c=J[f+J[a+196>> -2]>>2];d=J[c+4>>2];if(d&32){d=b;e=O[c+16>>3]*100;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}pd(d,c);c=J[f+J[a+196>>2]>>2];d=J[c+4>>2]}if(d&64){d=K[c+71|0];g=d<<24>>24<0;jf(b,g?J[c+60>>2]:c+60|0,g?J[c- -64>>2]:d);c=J[f+J[a+196>>2]>>2]}e=O[c+8>>3]*100;d:{if(R(e)<2147483648){d=~~e;break d}d=-2147483648}pd(b,d);e=O[J[f+J[a+196>>2]>>2]+24>>3]*1E4;e:{if(R(e)<2147483648){d=~~e;break e}d=-2147483648}pd(b,d);e=O[J[f+J[a+196>>2]>>2]+32>>3]*1E4;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}pd(b, -d);e=O[J[f+J[a+196>>2]>>2]+40>>3]*1E4;g:{if(R(e)<2147483648){d=~~e;break g}d=-2147483648}pd(b,d);c=J[f+J[a+196>>2]>>2];g=K[c+59|0];d=g<<24>>24<0;jf(b,d?J[c+48>>2]:c+48|0,d?J[c+52>>2]:g);c=J[f+J[a+196>>2]>>2];f=K[c+83|0];d=f<<24>>24<0;jf(b,d?J[c+72>>2]:c+72|0,d?J[c+76>>2]:f);h=h+1|0;c=J[a+196>>2];if(h>>>0>2]-c>>2>>>0)continue;break}}c=J[a+4>>2];if(c&16){c=K[a+183|0];d=c<<24>>24<0;jf(b,d?J[a+172>>2]:a+172|0,d?J[a+176>>2]:c);c=J[a+4>>2]}if(c&32){pd(b,J[a+148>>2]);c=J[a+4>>2]}if(c&64){we(b,K[a+ -140|0]);c=J[a+4>>2]}if(c&128){d=b;b=K[a+195|0];c=b<<24>>24<0;jf(d,c?J[a+184>>2]:a+184|0,c?J[a+188>>2]:b)}}function NK(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;d=K[b+11|0];e=d<<24>>24;f=J[b+4>>2];k=(e|0)<0;c=k?f:d;l=0;a:{if(!c)break a;g=K[a+11|0];h=g<<24>>24;i=J[a+4>>2];n=(h|0)<0;m=n?i:g;l=1E4;if(!m)break a;if((c|0)==(m|0)){l=0;if(!gd(k?J[b>>2]:b,n?J[a>>2]:a,c))break a;f=J[b+4>>2];i=J[a+4>>2];d=K[b+11|0];e=d;g=K[a+11|0];h=g}k=e<<24>>24<0;e=k?J[b>>2]:b;c=h<<24>>24<0;h=c?J[a>>2]:a;k= -k?f:d;m=k<<2;c=c?i:g;n=c<<2;d=0;b:{while(1){c:{if((c|0)<=(j|0)){g=0;break c}i=(h+n|0)-(j<<2)|0;d:{while(1){g=J[h>>2];j=j+1|0;h=h+4|0;f=g-32|0;if(f>>>0>13|!(1<>>0<26?g+32|0:g}f=0;e:{if((d|0)>=(k|0))break e;i=(e+m|0)-(d<<2)|0;f:{while(1){f=J[e>>2];d=d+1|0;e=e+4|0;l=f-32|0;if(l>>>0>13|!(1<>>0<26?f+32|0:f}if((f|0)!=(g|0))break b;if(g)continue;break}return 100}if(!(f? -g:0))return Pw(a,b)?700:1E3;l=1E3;if(Pw(a,b))break a;h=0;d=K[a+11|0];j=d<<24>>24<0;e=K[b+11|0];c=e<<24>>24<0;d=j?J[a+4>>2]:d;e=c?J[b+4>>2]:e;l=1500;g:{if(!(d|e))break g;a=j?J[a>>2]:a;b=c?J[b>>2]:b;g=e<<2;f=d<<2;j=0;while(1){i=0;h:{if((d|0)<=(h|0)){c=0;break h}k=(a+f|0)-(h<<2)|0;i:{while(1){c=J[a>>2];h=h+1|0;a=a+4|0;m=c-32|0;if(m>>>0>13|!(1<>>0<26?c+32|0:c}j:{if((e|0)<=(j|0))break j;k=(b+g|0)-(j<<2)|0;k:{while(1){i=J[b>>2];j=j+ -1|0;b=b+4|0;m=i-32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((c|0)==(i|0)?c:0)continue;break}l=(c|0)!=(i|0)?1E4:3E3}}return l}function yS(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;var h=0;d=bc-48|0;bc=d;a:{f=xi(b,c);if((f|0)!=(b+4|0)){J[a>>2]=J[f+28>>2];b=a;a=J[f+32>>2];J[b+4>>2]=a;if(!a)break a;J[a+4>>2]=J[a+4>>2]+1;break a}h=J[b+40>>2]+1|0;J[b+40>>2]=h;e=rc(32);J[e+12>>2]=0;J[e>>2]=2431668;J[e+4>>2]=0;J[e+8>>2]=0; -H[e+31|0]=0;J[e+20>>2]=0;J[a+4>>2]=e;g=e+12|0;J[a>>2]=g;J[e+16>>2]=h;J[d+40>>2]=e;J[d+36>>2]=g;J[e+4>>2]=J[e+4>>2]+1;J[695492]=0;h=J[d+40>>2];J[d+8>>2]=J[d+36>>2];J[d+12>>2]=h;ca(6429,b|0,c|0,d+8|0);h=J[695492];J[695492]=0;b:{c:{d:{if((h|0)!=1){e:{if(H[c+11|0]>=0){J[d+24>>2]=J[c+8>>2];h=J[c+4>>2];J[d+16>>2]=J[c>>2];J[d+20>>2]=h;break e}h=J[c+4>>2];c=J[c>>2];J[695492]=0;ca(15,d+16|0,c|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break d}J[d+32>>2]=e;J[d+28>>2]=g;J[e+4>>2]=J[e+4>>2]+1;J[695492]=0;e=Xe(b, -d+44|0,d+16|0);c=J[695492];J[695492]=0;if((c|0)==1)break c;if(!J[e>>2]){J[695492]=0;c=$(4,36)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;a=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=a;J[c+24>>2]=J[d+24>>2];J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[c+28>>2]=J[d+28>>2];J[c+32>>2]=J[d+32>>2];J[d+28>>2]=0;J[d+32>>2]=0;J[c+8>>2]=J[d+44>>2];J[c>>2]=0;J[c+4>>2]=0;J[e>>2]=c;a=J[J[b>>2]>>2];if(a){J[b>>2]=a;c=J[e>>2]}Ic(J[f>>2],c);J[b+8>>2]=J[b+8>>2]+1}a=J[d+32>>2];f:{if(!a)break f;b=J[a+4>>2];J[a+4>>2]= -b-1;if(b)break f;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if(H[d+27|0]>=0)break a;qc(J[d+16>>2]);break a}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;b=J[d+32>>2];g:{if(!b)break g;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break g;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if(H[d+27|0]<0)qc(J[d+16>>2])}Ie(a);ba(c|0);B()}bc=d+48|0}function C9(a,b,c){var d=0,e=0,f=0,g=0;f=K[c+1|0];if(f>>>0<33){d=-1;e=J[a+8>>2];a:{if(e&7)break a;b:{c:{d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;d:{if((e| -0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=f;break d}if((Uc(a,f)|0)==-1)break a}d=-1;e=J[a+8>>2];if(e&7)break a;f=K[c+2|0];d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;e:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=f;break e}if((Uc(a,f)|0)==-1)break a}d=-1;e=J[a+8>>2];if(e&7)break a;f=K[c+3|0];d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+ -28>>2]=e-1;f:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=f;break f}if((Uc(a,f)|0)==-1)break a}d=-1;e=J[a+8>>2];if(e&7)break a;f=K[c+4|0];d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;g:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=f;break g}if((Uc(a,f)|0)==-1)break a}d=-1;if(Mr(a,K[c+5|0]))break a;d=0;if(!b|J[c+8>>2]<=0)break a;b=0;while(1){e=J[a+8>>2];if(e&7)break b;d=(b<<1)+c|0;f=K[d+ -13|0];d=K[d+12|0];g=J[a+64>>2];if((g|0)>=0&J[a+60>>2]>=(g|0))break c;e=d&15|f<<4;J[a+4>>2]=J[a+4>>2]|32;d=J[a+28>>2];J[a+28>>2]=d-1;h:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=e;break h}d=-1;if((Uc(a,e&255)|0)==-1)break a}d=0;b=b+1|0;if((b|0)>2])continue;break}break a}J[a+8>>2]=e|4}d=-1}return d}fa(208686,207960,771,208875);B()}function oZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;t=bc- -288|0;bc=t;u=J[a+332>>2];b=J[b+84>>2];a=t;while(1){m=J[b+128>>2];n=I[c+64>>1];i=P(J[b+32>>2],I[c+16>>1]);j=P(J[b+224>>2],I[c+112>>1]);g=i-j|0;k=P(J[b+96>>2],I[c+48>>1]);f=P(J[b+160>>2],I[c+80>>1]);o=k-f|0;h=P(g+o|0,4433);p=P(J[b+64>>2],I[c+32>>1]);q=P(J[b+192>>2],I[c+96>>1]);r=p-q<<13;l=P(I[c>>1],J[b>>2])<<13|1024;s=r+l|0;g=h+P(g,6270)|0;J[a+240>>2]=s-g>>11;J[a+24>>2]=g+s>>11;g=l-r|0;h=h+P(o,-15137)|0;J[a+168>>2]=g-h>>11;J[a+96>>2]=h+g>>11;m=P(P(m,n),10033);n=m+l|0;g=q<<13;o=g+P(p,11190)|0;q=n-o| -0;s=f+i|0;h=P(s+j|0,7053);r=P(k,-4433);v=h+((r+P(i,-5540)|0)+P(j,-16244)|0)|0;J[a+144>>2]=q-v>>11;J[a+120>>2]=q+v>>11;n=n+o|0;o=P(i,2295);i=P(k,10703);k=h+P(s,2139)|0;o=(o+i|0)+k|0;J[a+264>>2]=n-o>>11;J[a>>2]=n+o>>11;p=P(p,2998)-g|0;l=l-m|0;m=p+l|0;g=r+P(f,-12112)|0;f=P(f+j|0,-8565);k=k+(g+f|0)|0;J[a+216>>2]=m-k>>11;J[a+48>>2]=k+m>>11;l=l-p|0;j=f+(h+(P(j,12998)-i|0)|0)|0;J[a+192>>2]=l-j>>11;J[a+72>>2]=j+l>>11;a=a+4|0;b=b+4|0;c=c+2|0;w=w+1|0;if((w|0)!=6)continue;break}b=u+128|0;a=t;j=0;while(1){i= -J[a+20>>2];f=J[a+4>>2];l=P(i+f|0,2998);c=J[(j<<2)+d>>2]+e|0;k=J[a+12>>2];h=l+(k+f<<13)|0;u=(J[a>>2]<<13)+131072|0;p=J[a+16>>2];m=u+P(p,5793)|0;n=P(J[a+8>>2],10033);g=m+n|0;H[c|0]=K[b+(h+g>>>18&1023)|0];H[c+5|0]=K[b+(g-h>>>18&1023)|0];f=f-(i+k|0)<<13;h=u+P(p,-11586)|0;H[c+1|0]=K[b+(f+h>>>18&1023)|0];H[c+4|0]=K[b+(h-f>>>18&1023)|0];i=l+(i-k<<13)|0;f=m-n|0;H[c+2|0]=K[b+(i+f>>>18&1023)|0];H[c+3|0]=K[b+(f-i>>>18&1023)|0];a=a+24|0;j=j+1|0;if((j|0)!=12)continue;break}bc=t+288|0}function cy(a,b,c){var d= -0,e=0,f=0,g=0,h=0;f=bc-32|0;bc=f;e=J[a+584>>2];J[f+28>>2]=0;a:{b:{c:{if(J[e+488>>2]){if(!(J[e+16>>2]|!c?J[e+16>>2]?b:0:1))break c;wO(e);J[e+488>>2]=0}d=1;d:{if(!(J[a+12>>2]>>>10&1))break d;J[f+16>>2]=f+28;if(!ce(a,325,f+16|0))break d;g=J[f+28>>2];if(!g)break d;d=!J[g>>2]}e:{if(J[a+12>>2]>>>10&1)break e;J[f>>2]=f+28;if(!ce(a,279,f))break e;g=J[f+28>>2];if(!g)break e;d=!J[g>>2]}f:{g:{h:{if(c)break h;if(b)break g;if(!J[a+8>>2])break h;if(d)break g}b=zc(40);J[b>>2]=0;J[695492]=0;h=Jp(e+492|0);a=J[695492]; -J[695492]=0;if((a|0)==1)break a;g=4;d=-1;i:{if(!a)break i;c=J[695493];if(!c)break i;d=Jc(J[a>>2],b,4);if(!d)break b;cc=c}a=cc;if((d|0)!=1){J[e+492>>2]=673;J[e>>2]=h;J[e+500>>2]=674;b=zf(e+624|0,1,b,4);g=cc;a=0}while(1){j:{if(a){c=0;break j}J[695492]=0;ca(71,e|0,80,488);a=J[695492];J[695492]=0;if((a|0)==1)break a;d=-1;k:{if(!a)break k;c=J[695493];if(!c)break k;d=Jc(J[a>>2],b,g);if(!d)break b;cc=c}c=1;a=cc;if((d|0)==1)continue}break}qc(b);if(c)break f;break c}b=zc(40);J[b>>2]=0;J[695492]=0;h=Jp(e+492| -0);a=J[695492];J[695492]=0;if((a|0)==1)break a;g=4;d=-1;l:{if(!a)break l;c=J[695493];if(!c)break l;d=Jc(J[a>>2],b,4);if(!d)break b;cc=c}a=cc;if((d|0)!=1){J[e+492>>2]=673;J[e>>2]=h;J[e+500>>2]=674;b=zf(e+624|0,1,b,4);g=cc;a=0}while(1){m:{if(a){c=0;break m}J[695492]=0;ca(94,e|0,80,432);a=J[695492];J[695492]=0;if((a|0)==1)break a;d=-1;n:{if(!a)break n;c=J[695493];if(!c)break n;d=Jc(J[a>>2],b,g);if(!d)break b;cc=c}c=1;a=cc;if((d|0)==1)continue}break}qc(b);if(!c)break c}J[e+488>>2]=1}bc=f+32|0;return}qc(b); -ef(a,c);B()}a=Z()|0;qc(b);ba(a|0);B()}function LWa(a,b,c){a=a|0;b=b|0;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=bc-32|0;bc=d;e=K[b+11|0];h=e<<24>>24;a:{b:{i=(h|0)<0?J[b+4>>2]:e;g=i+1|0;if(g>>>0<1073741808){c:{if(g>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=g;e=d;f=d+4|0;break c}e=g|3;if(e>>>0>=1073741823)break b;f=e+1|0;e=rc(f<<2);J[d+4>>2]=g;J[d>>2]=e;J[d+8>>2]=f|-2147483648;f=e+4|0}J[e>>2]=32;e=(h|0)<0?J[b>>2]:b;b=i<<2;j=Zc(f,e,b)+b|0,k=0,J[j>>2]=k;J[695492]=0;e=aa(2860,d|0,817272)|0; -b=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((b|0)!=1){J[d+24>>2]=J[e+8>>2];b=J[e+4>>2];J[d+16>>2]=J[e>>2];J[d+20>>2]=b;J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[695492]=0;e=K[d+27|0];b=e<<24>>24<0;ga(2794,a|0,(b?J[d+16>>2]:d+16|0)|0,(b?J[d+20>>2]:e)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+11|0]<0)qc(J[d>>2]);J[695492]=0;J[d+16>>2]=34;J[d+20>>2]=0;H[d+27|0]=1;ga(2794,a|0,d+16|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if(H[d+27|0]<0)qc(J[d+16>>2]);b=d+ -16|0;TO(b,c);J[695492]=0;f=b;e=K[d+27|0];b=e<<24>>24<0;ga(2794,a|0,(b?J[d+16>>2]:f)|0,(b?J[d+20>>2]:e)|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[d+27|0]<0)qc(J[d+16>>2]);J[695492]=0;J[d+16>>2]=34;J[d+20>>2]=0;H[d+27|0]=1;ga(2794,a|0,d+16|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;if(H[d+27|0]<0)qc(J[d+16>>2]);bc=d+32|0;return}b=Z()|0;if(H[d+27|0]>=0)break d;break a}b=Z()|0;break g}b=Z()|0;if(H[d+27|0]>=0)break g;qc(J[d+16>>2])}if(H[d+11|0]>=0)break d;qc(J[d>>2]);ba(b|0);B()}b=Z()|0;if(H[d+ -27|0]>=0)break d;break a}b=Z()|0;if(H[d+27|0]>=0)break d;qc(J[d+16>>2])}ba(b|0);B()}Id(d);B()}Sd();B()}qc(J[d+16>>2]);ba(b|0);B()}function jz(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;c=rc(160);J[c>>2]=2430396;J[c+4>>2]=0;J[c+8>>2]=0;J[c+16>>2]=2437856;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;e=c- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[c+72>>2]=1;J[c+80>>2]=16777215;I[c+76>>1]=0;wc(c+84|0,0,76);J[d+12>>2]=c;f=c+ -16|0;J[d+8>>2]=f;J[695492]=0;da(6348,c+136|0,b|0);g=J[695492];J[695492]=0;a:{b:{if((g|0)==1)break b;b=J[b>>2];O[c+48>>3]=O[b+32>>3];O[c+24>>3]=O[b+8>>3];O[c+32>>3]=O[b+16>>3];O[e>>3]=O[b+48>>3]+1;O[c+40>>3]=O[b+24>>3];O[c+56>>3]=O[b+40>>3];b=J[b+84>>2];if(b){H[c+77|0]=1;J[c+80>>2]=J[b+76>>2];J[695492]=0;lS(f);b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;b=$(4,664)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[b>>2]=2429916;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;e=$(6328,b+16|0)|0;g=J[695492]; -J[695492]=0;if((g|0)==1){c=Z()|0;qc(b);break a}J[a+4>>2]=b;J[a>>2]=e;J[d+4>>2]=c;J[d>>2]=f;J[c+4>>2]=J[c+4>>2]+1;c:{e=J[b+636>>2];d:{if(e>>>0>2]){J[e+4>>2]=c;J[e>>2]=f;J[b+636>>2]=e+8;break d}J[695492]=0;da(6357,b+632|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;b=J[d+4>>2];if(!b)break d;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break d;gc[J[J[b>>2]+8>>2]](b);Vc(b)}a=J[a>>2];J[a+60>>2]=1;b=J[d+8>>2];O[a+32>>3]=O[b+32>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+48>>3]=O[b+48>>3];O[a+24>> -3]=O[b+24>>3];h=O[b+40>>3];H[a+602|0]=0;O[a+40>>3]=h;a=J[d+12>>2];e:{if(!a)break e;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break e;gc[J[J[a>>2]+8>>2]](a);Vc(a)}bc=d+16|0;return}c=Z()|0;Ie(d);Ie(a);break a}c=Z()|0}Ie(d+8|0);ba(c|0);B()}function OGa(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=bc-80|0;bc=e;a:{b:{c:{d:{e:{if(a){if(!b)break e;if(!d)break d;if(c>>>0<=2){Hc(d,1,2350378,0);break a}if(K[a+124|0]){Hc(d,4,2350427,0);g=1;break a}g=1;ld(b,a+40|0,1);ld(b+1|0,a+52|0,1);ld(b+2|0,a+44|0, -1);f=b+3|0;f:{g:{h:{h=J[a+40>>2];switch(h-1|0){case 1:break g;case 0:break h;default:break f}}if(c>>>0<=6){J[e+16>>2]=c;Hc(d,1,2350552,e+16|0);g=0;break a}if(!((c|0)==7|J[a+48>>2]==14)){J[e+48>>2]=c;Hc(d,2,2350552,e+48|0)}ld(f,a+48|0,4);if(J[a+48>>2]!=14)break b;f=_e(36);if(!f){g=0;Hc(d,1,2350608,0);break a}J[f>>2]=14;J[e+64>>2]=0;J[e+56>>2]=0;J[e+72>>2]=0;J[e+60>>2]=0;J[e+68>>2]=0;J[e+76>>2]=0;g=4470064;J[e+52>>2]=4470064;J[f+4>>2]=1145390592;i:{if((c|0)!=7){if((c|0)==35){ld(b+7|0,e+76|0,4);ld(b+ -11|0,e+72|0,4);ld(b+15|0,e+68|0,4);ld(b+19|0,e- -64|0,4);ld(b+23|0,e+60|0,4);ld(b+27|0,e+56|0,4);ld(b+31|0,e+52|0,4);J[f+4>>2]=0;g=J[e+52>>2];d=J[e+56>>2];c=J[e+72>>2];i=J[e+68>>2];j=J[e+76>>2];h=J[e+64>>2];b=J[e+60>>2];break i}J[e+32>>2]=c;Hc(d,2,2350643,e+32|0)}d=0;c=0;h=0;b=0}J[f+24>>2]=b;J[f+16>>2]=i;J[f+8>>2]=j;J[f+32>>2]=g;J[f+28>>2]=d;J[f+20>>2]=h;J[f+12>>2]=c;J[a+112>>2]=0;J[a+108>>2]=f;break b}b=c-3|0;J[a+112>>2]=b;d=ye(1,b);J[a+108>>2]=d;if(!d)break c;if((c|0)<=3)break b;d=0;while(1){ld(f, -e+76|0,1);H[J[a+108>>2]+d|0]=J[e+76>>2];f=f+1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}break b}if(h>>>0<3)break a;J[e>>2]=h;Hc(d,4,2350690,e);break a}fa(2342603,2342899,1473,2359618);B()}fa(2350322,2342899,1474,2359618);B()}fa(2343543,2342899,1475,2359618);B()}g=0;J[a+112>>2]=0;break a}g=1;H[a+124|0]=1}bc=e+80|0;return g|0}function yd(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;e=J[a+1212>>2];if((e|0)<=J[a+92>>2]){f=J[b+20>>2];a:{while(1){J[b>>2]=2147483632;J[b+28>>2]=f;j=J[b+8>>2];J[b+ -16>>2]=j;I[f+2>>1]=0;e=J[a+44>>2]+(e-J[a+84>>2]<<3)|0;k=J[e+4>>2];if(k){e=J[a+32>>2]+(J[e>>2]<<2)|0;l=0;i=2147483632;g=f;while(1){f=J[e>>2];l=J[f+8>>2]+l|0;m=J[f+12>>2];h=J[f>>2];d=k-1|0;b:{if(!d){n=1;c=0;break b}k=((k<<2)+e|0)-4|0;while(1){c=e+4|0;f=J[e+4>>2];e=J[f>>2];n=(e|0)==(h|0);if((e|0)!=(h|0)){e=c;c=d;break b}l=J[f+8>>2]+l|0;m=J[f+12>>2]+m|0;e=c;d=d-1|0;if(d)continue;break}e=k;c=0}k=c;if(m){d=(l<<9)-m>>9;c=d>>31;d=(c^d)-c|0;c=d&511;c=J[a+1184>>2]==1?c>>>0>256?512-c|0:c:d;c=J[((((c|0)>=255? -255:c)<<2)+a|0)+160>>2];if(c){H[j|0]=c;c=J[b+28>>2];c:{d:{if((J[b>>2]+1|0)!=(h|0))break d;g=I[c+2>>1];if((g|0)<=0)break d;I[c+2>>1]=g+1;d=J[b+16>>2];g=c;break c}g=c+8|0;J[b+28>>2]=g;d=J[b+16>>2];I[c+10>>1]=1;I[c+8>>1]=h;J[c+12>>2]=d}J[b>>2]=h;j=d+1|0;J[b+16>>2]=j;i=h}h=h+1|0}e:{if(n)break e;f=J[f>>2];if((f|0)<=(h|0))break e;d=l<<9>>9;c=d>>31;d=(c^d)-c|0;c=d&511;c=J[a+1184>>2]==1?c>>>0>256?512-c|0:c:d;c=J[((((c|0)>=255?255:c)<<2)+a|0)+160>>2];if(!c)break e;d=f-h|0;f:{g:{if((i+1|0)!=(h|0))break g;i= -I[g+2>>1];if((c|0)!=K[J[g+4>>2]]|(i|0)>=0)break g;I[g+2>>1]=i-d;break f}H[j|0]=c;c=J[b+28>>2];g=c+8|0;J[b+28>>2]=g;i=J[b+16>>2];j=i+1|0;J[b+16>>2]=j;I[c+10>>1]=0-d;I[c+8>>1]=h;J[c+12>>2]=i}i=f-1|0;J[b>>2]=i}if(k)continue;break}f=J[b+20>>2];if((g|0)!=(f|0))break a}g=J[a+1212>>2];e=g+1|0;J[a+1212>>2]=e;if((g|0)>2])continue;break}return 0}e=b;b=J[a+1212>>2];J[e+4>>2]=b;J[a+1212>>2]=b+1;a=1}else a=0;return a}function Gd(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;e=J[a+1176>>2];if((e| -0)<=J[a+92>>2]){f=J[b+20>>2];a:{while(1){J[b>>2]=2147483632;J[b+28>>2]=f;j=J[b+8>>2];J[b+16>>2]=j;I[f+2>>1]=0;e=J[a+44>>2]+(e-J[a+84>>2]<<3)|0;k=J[e+4>>2];if(k){e=J[a+32>>2]+(J[e>>2]<<2)|0;l=0;i=2147483632;g=f;while(1){f=J[e>>2];l=J[f+8>>2]+l|0;m=J[f+12>>2];h=J[f>>2];d=k-1|0;b:{if(!d){n=1;c=0;break b}k=((k<<2)+e|0)-4|0;while(1){c=e+4|0;f=J[e+4>>2];e=J[f>>2];n=(e|0)==(h|0);if((e|0)!=(h|0)){e=c;c=d;break b}l=J[f+8>>2]+l|0;m=J[f+12>>2]+m|0;e=c;d=d-1|0;if(d)continue;break}e=k;c=0}k=c;if(m){d=(l<<9)-m>> -9;c=d>>31;d=(c^d)-c|0;c=d&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0:c:d;c=J[((((c|0)>=255?255:c)<<2)+a|0)+132>>2];if(c){H[j|0]=c;c=J[b+28>>2];c:{d:{if((J[b>>2]+1|0)!=(h|0))break d;g=I[c+2>>1];if((g|0)<=0)break d;I[c+2>>1]=g+1;d=J[b+16>>2];g=c;break c}g=c+8|0;J[b+28>>2]=g;d=J[b+16>>2];I[c+10>>1]=1;I[c+8>>1]=h;J[c+12>>2]=d}J[b>>2]=h;j=d+1|0;J[b+16>>2]=j;i=h}h=h+1|0}e:{if(n)break e;f=J[f>>2];if((f|0)<=(h|0))break e;d=l<<9>>9;c=d>>31;d=(c^d)-c|0;c=d&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0:c:d;c=J[((((c| -0)>=255?255:c)<<2)+a|0)+132>>2];if(!c)break e;d=f-h|0;f:{g:{if((i+1|0)!=(h|0))break g;i=I[g+2>>1];if((c|0)!=K[J[g+4>>2]]|(i|0)>=0)break g;I[g+2>>1]=i-d;break f}H[j|0]=c;c=J[b+28>>2];g=c+8|0;J[b+28>>2]=g;i=J[b+16>>2];j=i+1|0;J[b+16>>2]=j;I[c+10>>1]=0-d;I[c+8>>1]=h;J[c+12>>2]=i}i=f-1|0;J[b>>2]=i}if(k)continue;break}f=J[b+20>>2];if((g|0)!=(f|0))break a}g=J[a+1176>>2];e=g+1|0;J[a+1176>>2]=e;if((g|0)>2])continue;break}return 0}e=b;b=J[a+1176>>2];J[e+4>>2]=b;J[a+1176>>2]=b+1;a=1}else a=0;return a} -function ws(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[a+8>>2]==1){Nc(J[a+628>>2],J[a>>2],81760,0);return-1}if(!(K[a+13|0]&4)){Nc(J[a+628>>2],J[a>>2],81985,0);return-1}f=bc+-64|0;bc=f;g=J[a+56>>2];a:{b:{if(g>>>0<=c>>>0){h=J[a>>2];i=J[a+628>>2];J[f+52>>2]=g-1;J[f+48>>2]=c;Nc(i,h,69063,f+48|0);break b}g=J[a+60>>2];if(g>>>0<=d>>>0){h=J[a>>2];i=J[a+628>>2];J[f+36>>2]=g-1;J[f+32>>2]=d;Nc(i,h,69912,f+32|0);break b}g=J[a- -64>>2];if(!g){h=J[a>>2];i=J[a+628>>2];J[f+20>>2]=g-1;J[f+16>>2]=0;Nc(i,h,70601, -f+16|0);break b}g=1;if(L[a+138>>1]!=2)break a;h=L[a+98>>1];if(h>>>0>e>>>0)break a;g=J[a>>2];i=J[a+628>>2];J[f+4>>2]=h-1;J[f>>2]=e;Nc(i,g,71341,f)}g=0}bc=f- -64|0;if(!g)return-1;h=J[a+72>>2];f=1;g=J[a+68>>2];if((g|0)==-1)g=J[a+56>>2];h=(h|0)==-1?J[a+60>>2]:h;c:{d:{if(!g|!h)break d;k=J[a- -64>>2];i=J[a+76>>2];i=(i|0)==-1?k:i;if(!i)break d;f=0;j=J[a+56>>2];if(j>>>0<0-g>>>0)l=((g+j|0)-1>>>0)/(g>>>0)|0;j=J[a+60>>2];if(j>>>0<0-h>>>0)f=((h+j|0)-1>>>0)/(h>>>0)|0;j=0;if(0-i>>>0>k>>>0)j=((i+k|0)-1>>>0)/(i>>> -0)|0;e=P(P(P(e,j)+(0/(i>>>0)|0)|0,f)+((d>>>0)/(h>>>0)|0)|0,l)+((c>>>0)/(g>>>0)|0)|0;if(L[a+138>>1]==2)break c;f=P(P(0/(i>>>0)|0,f)+((d>>>0)/(h>>>0)|0)|0,l)+((c>>>0)/(g>>>0)|0)|0}e=f}c=e;e=b;f=bc-16|0;bc=f;e:{if(J[a+8>>2]==1){Nc(J[a+628>>2],J[a>>2],81760,0);b=-1;break e}if(!(K[a+13|0]&4)){Nc(J[a+628>>2],J[a>>2],81985,0);b=-1;break e}b=J[a+180>>2];if(b>>>0<=c>>>0){d=J[a>>2];a=J[a+628>>2];J[f+4>>2]=b;J[f>>2]=c;Nc(a,d,73631,f);b=-1;break e}d=J[a+508>>2];b=-1;if(!YS(a,c))break e;if(!(gc[J[a+556>>2]](a, -e,d,(c>>>0)/M[a+176>>2]&65535)|0))break e;gc[J[a+652>>2]](a,e,d);b=d}bc=f+16|0;return b}function l7(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;s=d-1|0;i=s<<2;a:{b:{c:{if(!f){h=P(b,12)+a|0;k=(b<<3)+a|0;l=(b<<2)+a|0;f=K[c^3];x=(e<<2)+c|0;e=K[x^3];if((d|0)<=1)break c;b=0;while(1){n=n+1|0;d=K[x+n^3];g=K[c+n^3];H[a+b^3]=f;o=b|1;j=P(f,3);t=j+g|0;H[o+a^3]=t>>>2;p=b|2;u=f+g|0;H[p+a^3]=u>>>1;q=b|3;m=P(g,3);v=m+f|0;H[q+a^3]=v>>>2;w=e+j|0;H[b+l^3]=w>>>2;r=P(e, -3);y=r+d|0;H[l+o^3]=(y+P(f,9)|0)+m>>>4;H[l+p^3]=(m+w|0)+d>>>3;j=P(d,3);H[l+q^3]=j+(P(g,9)+w|0)>>>4;H[b+k^3]=e+f>>>1;H[k+o^3]=t+y>>>3;H[k+p^3]=(d+e|0)+u>>>2;H[k+q^3]=(e+j|0)+v>>>3;H[b+h^3]=f+r>>>2;H[h+o^3]=(P(e,9)+t|0)+j>>>4;H[h+p^3]=(r+u|0)+j>>>3;H[h+q^3]=(r+v|0)+P(d,9)>>>4;b=b+4|0;e=d;f=g;if((n|0)!=(s|0))continue;break}break b}e=P(b,12)+a|0;g=(b<<3)+a|0;h=(b<<2)+a|0;f=K[c^3];d:{if((d|0)<2){d=f;break d}b=0;while(1){p=p+1|0;d=K[p+c^3];H[a+b^3]=f;k=b|1;l=P(f,3)+d>>>2|0;H[k+a^3]=l;j=b|2;m=d+f>>>1|0; -H[j+a^3]=m;n=b|3;o=P(d,3)+f>>>2|0;H[n+a^3]=o;H[b+h^3]=f;H[h+k^3]=l;H[h+j^3]=m;H[h+n^3]=o;H[b+g^3]=f;H[g+k^3]=l;H[g+j^3]=m;H[g+n^3]=o;H[b+e^3]=f;H[e+k^3]=l;H[e+j^3]=m;H[e+n^3]=o;b=b+4|0;f=d;if((p|0)!=(s|0))continue;break}}H[a+i^3]=d;b=i|1;H[b+a^3]=d;c=i|2;H[c+a^3]=d;f=a;a=i|3;H[f+a^3]=d;H[h+i^3]=d;H[b+h^3]=d;H[c+h^3]=d;H[a+h^3]=d;H[g+i^3]=d;H[b+g^3]=d;H[c+g^3]=d;H[a+g^3]=d;H[e+i^3]=d;H[b+e^3]=d;H[c+e^3]=d;a=a+e|0;break a}j=P(e,3);m=P(f,3);g=f;d=e}H[a+i^3]=g;b=i|1;H[b+a^3]=g;c=i|2;H[c+a^3]=g;e=a;a= -i|3;H[e+a^3]=g;e=d+m>>>2|0;H[i+l^3]=e;H[b+l^3]=e;H[c+l^3]=e;H[a+l^3]=e;d=d+g>>>1|0;H[i+k^3]=d;H[b+k^3]=d;H[c+k^3]=d;H[a+k^3]=d;d=g+j>>>2|0;H[h+i^3]=d;H[b+h^3]=d;H[c+h^3]=d;a=a+h|0}H[a^3]=d}function Gob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;c=J[a+428>>2];H[c+8|0]=K[b+33|0];g=c+8|0;d=J[b+36>>2];a:{b:{c:{if(!d){if(K[b+44|0]){d=c+9|0;c=g;break b}if(!(K[b+47|0]|(K[b+45|0]|K[b+46|0]))){e=1;break a}d=c+9|0;c=g;e=1;break c}tc(c+9|0,J[b+40>>2],d);f=J[b+36>>2]; -c=g+f|0;d=c+1|0;if(K[b+44|0])break b;e=f+1|0}if(K[b+45|0]|K[b+46|0])break b;if(!K[b+47|0])break a}H[d|0]=0;H[c+2|0]=K[b+44|0];H[c+3|0]=K[b+45|0];H[c+4|0]=K[b+46|0];H[c+5|0]=K[b+47|0];d:{if(!K[b+44|0]){e=f+6|0;c=c+6|0;break d}d=J[b+48>>2];d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);H[c+6|0]=d;H[c+7|0]=d>>>8;H[c+8|0]=d>>>16;H[c+9|0]=d>>>24;e=f+10|0;c=c+10|0}d=c;if(K[b+45|0]){c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;e=e+4|0;d=d+4|0}if(K[b+ -46|0]){H[d|0]=K[b+56|0];c=J[b+60>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+1|0]=c;H[d+2|0]=c>>>8;H[d+3|0]=c>>>16;H[d+4|0]=c>>>24;c=J[b+64>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+5|0]=c;H[d+6|0]=c>>>8;H[d+7|0]=c>>>16;H[d+8|0]=c>>>24;c=J[b+68>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+9|0]=c;H[d+10|0]=c>>>8;H[d+11|0]=c>>>16;H[d+12|0]=c>>>24;c=J[b+72>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+13|0]=c;H[d+14|0]=c>>>8;H[d+15|0]=c>>>16;H[d+16|0]=c>>>24;e=e+17|0;d=d+17|0}if(!K[b+ -47|0])break a;c=J[b+76>>2];e=(c<<2)+e|0;if(!c)break a;f=J[b+80>>2];while(1){c=J[f>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;d=d+4|0;f=f+4|0;h=h+1|0;if(h>>>0>2])continue;break}}return ue(a,J[b>>2],e,g)|0}function Txb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if(J[a+12>>2]<=0)return 0;g=J[a+16>>2];a:{b:{while(1){d=J[c+8>>2];if(d&7)break a;e=K[g+1|0];f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d= -J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break c}if((Uc(c,e)|0)==-1)break a}e=J[g+4>>2];d:{if(M[b>>2]>=257){if(!wh(c,e))break d;break a}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break d}if((Uc(c,e&255)|0)==-1)break a}if(wh(c,J[g+12>>2]))break a;d=J[c+8>>2];if(d&7)break a;e=K[g+2| -0];f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break e}if((Uc(c,e)|0)==-1)break a}e=J[g+8>>2];f:{if(M[b>>2]>=257){if(!wh(c,e))break f;break a}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break f}if((Uc(c,e&255)| -0)==-1)break a}d=J[c+8>>2];if(d&7)break a;e=K[g|0];f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;g:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break g}if((Uc(c,e)|0)==-1)break a}g=g+16|0;h=h+1|0;if((h|0)>2])continue;break}return 0}J[c+8>>2]=d|4}return-1}function $Za(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{d=bc-16|0;bc=d;b:{c:{d:{e:{f:{g:{h:{b=J[b+4>>2];c=J[b+4>>2];i:{if(!c){H[a|0]=0;H[a+11|0]= -0;break i}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[695492]=0;c=Zq(c);e=J[695492];J[695492]=0;if((e|0)==1)break c;if(c)break i;c=J[b+4>>2];if(!c)break i;J[695492]=0;h=gm(c);c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[b+4>>2];if(!c)break i;while(1){J[695492]=0;c=$(3073,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;if((c|0)!=1)break i;c=J[b+4>>2];J[695492]=0;c=$(3074,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;if((c|0)==-1)break i;e=J[b+4>>2];j:{if(!e){e=-1;break j}J[695492]=0;e=gm(e);f=J[695492]; -J[695492]=0;if((f|0)==1)break g}if((c|0)==15|(e|0)<(h|0))break i;k:{if(!(1<>>0>14)break k;c=J[b+4>>2];J[695492]=0;e=$(3075,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;l:{if(!e){H[d+15|0]=0;c=d+4|0;break l}c=Qc(e);if(c>>>0>=2147483632){J[695492]=0;_(1623,d+4|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;B()}m:{if(c>>>0<=10){H[d+15|0]=c;f=d+4|0;break m}J[695492]=0;g=(c|15)+1|0;f=$(4,g|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break f;J[d+4>>2]=f;J[d+8>>2]=c;J[d+12>>2]=g|-2147483648}c= -Zc(f,e,c)+c|0}H[c|0]=0;J[695492]=0;c=K[d+15|0];e=c<<24>>24<0;ga(2669,a|0,(e?J[d+4>>2]:d+4|0)|0,(e?J[d+8>>2]:c)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break d;if(H[d+15|0]>=0)break k;qc(J[d+4>>2])}c=J[b+4>>2];if(c)continue;break}}bc=d+16|0;break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[d+15|0]>=0)break b;qc(J[d+4>>2]);break b}b=Z()|0}if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}}function lza(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;f=bc+-64|0;bc=f;e=Qj(f+ -28|0,a+72|0);J[695492]=0;g=$(5069,e|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((d|0)==1)break h;J[695492]=0;d=J[J[b+12>>2]+((g>>>0)%M[b+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break h;i:{if(d)while(1){if((g|0)==J[d+12>>2]){J[695492]=0;h=aa(5066,d+16|0,e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(h)break i}d=J[d+8>>2];if(d)continue;break}J[695492]=0;g=$(5069,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;J[695492]=0;d=J[J[c+12>>2]+((g>>>0)%M[c+8>>2]<<2)>>2];h=J[695492]; -J[695492]=0;if((h|0)==1)break f;if(d)while(1){if((g|0)==J[d+12>>2]){J[695492]=0;h=aa(5066,d+16|0,e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break g;if(h)break i}d=J[d+8>>2];if(d)continue;break}J[695492]=0;d=aa(5268,c|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[d+52>>2]=0;J[695492]=0;_(5279,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break e;J[695492]=0;ca(5280,f+12|0,a|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break d;d=J[f+20>>2];if(d)while(1){a=J[d+8>>2];J[695492]=0;ca(5278,a|0,b|0,c|0); -a=J[695492];J[695492]=0;if((a|0)==1)break c;d=J[d>>2];if(d)continue;break}$c(f+12|0)}J[e+24>>2]=2381060;J[e>>2]=2381028;a=J[e+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[e+28>>2]=0}J[e+16>>2]=2381060;a=J[e+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[e+20>>2]=0}sc(e+8|0);bc=f- -64|0;return}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;$c(f+12|0);break a}d=Z()|0}ud(e);ba(d|0);B()}function zX(a,b){a=a|0; -b=b|0;var c=0,d=0;c=bc-80|0;bc=c;d=1;a:{a=J[a+16>>2];b:{if(!J[a+44>>2])break b;c:switch(J[b+4>>2]){case 0:O[c+16>>3]=O[b+32>>3];O[c>>3]=O[b+40>>3];O[c+72>>3]=O[b+48>>3];O[c+64>>3]=O[b+56>>3];y2(c+48|0,b);J[695492]=0;da(3499,c+32|0,b|0);a=J[695492];J[695492]=0;d:{e:{if((a|0)!=1){J[695492]=0;d=0;a=J[695492];J[695492]=0;if((a|0)==1)break e;if(H[c+43|0]<0)qc(J[c+32>>2]);if(H[c+59|0]>=0)break b;qc(J[c+48>>2]);break b}b=Z()|0;break d}b=Z()|0;if(H[c+43|0]>=0)break d;qc(J[c+32>>2])}if(H[c+59|0]>=0)break a; -qc(J[c+48>>2]);break a;case 1:O[c+48>>3]=O[b+32>>3];O[c+32>>3]=O[b+40>>3];O[c+16>>3]=O[b+48>>3];O[c>>3]=O[b+56>>3];O[c+72>>3]=O[b+16>>3];O[c+64>>3]=O[b+24>>3];J[c+28>>2]=J[b+8>>2];d=0;break b;case 2:y2(c+48|0,b);J[695492]=0;da(3501,c+32|0,b|0);a=J[695492];J[695492]=0;f:{g:{h:{i:{j:{k:{if((a|0)!=1){J[695492]=0;da(3502,c+16|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break k;J[695492]=0;da(3503,c|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break j;J[695492]=0;a=J[695492];J[695492]=0;if((a|0)==1)break i; -if(H[c+11|0]<0)qc(J[c>>2]);if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+43|0]<0)qc(J[c+32>>2]);if(H[c+59|0]<0)qc(J[c+48>>2]);d=0;break b}b=Z()|0;break f}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;if(H[c+11|0]>=0)break h;qc(J[c>>2])}if(H[c+27|0]>=0)break g;qc(J[c+16>>2])}if(H[c+43|0]>=0)break f;qc(J[c+32>>2])}if(H[c+59|0]>=0)break a;qc(J[c+48>>2]);ba(b|0);B();case 3:d=0;break b;case 4:d=0;break b;case 5:case 6:d=0;break b;case 7:d=0;break b;case 8:case 9:d=0;break b;case 10:break c;default:break b}d=0;if(!J[a+ -48>>2])break b}bc=c+80|0;return d|0}ba(b|0);B()}function o_(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;g=bc-32|0;bc=g;J[g+16>>2]=13;J[b>>2]=-1;J[b+4>>2]=-1;J[c>>2]=0;J[c+4>>2]=0;k=cm(a,J[a+32>>2],803707,g+16|0);if(J[k>>2]==3){h=1;e=rt(J[k+8>>2]);d=J[e+8>>2];if((d|0)>=3){i=sd(J[J[e>>2]+8>>2],804055)?-1:0;f=0;a:{if(J[e+8>>2]<4)break a;i=sd(J[J[e>>2]+12>>2],804055)?i:1;f=0;if(J[e+8>>2]<5)break a;i=sd(J[J[e>>2]+16>>2],804055)?i:2;d=6;f=0;if(J[e+8>>2]<6)break a;i=sd(J[J[e>> -2]+20>>2],804055)?i:3;f=0;if(J[e+8>>2]<7)break a;f=-1;while(1){j=d<<2;b:{if(!sd(J[j+J[e>>2]>>2],804055)){i=d-2|0;break b}f=sd(J[j+J[e>>2]>>2],804460)?f:d-6|0}d=d+1|0;if((d|0)>2])continue;break}f=(f|0)>=0}c:{d:{if((i|0)>=0){l=i<<2;d=J[J[l+J[e>>2]>>2]+4>>2];j=(K[d|0]==47)+d|0;d=bc-48|0;bc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;J[g+8>>2]=-1;J[g+12>>2]=-1;e:{f:{g:{h:{if(J[Bc(J[a+32>>2],804958,d+32|0,0)>>2]==7){if(J[Bc(J[d+40>>2],805178,d+16|0,0)>>2]==7){if(J[Ce(J[d+24>>2],j,d)>>2]==9)break h; -uc(d)}uc(d+16|0)}m=d+32|0;uc(m);if(J[Bc(J[J[a>>2]+16>>2],804958,m,0)>>2]!=7)break e;if(J[Bc(J[d+40>>2],805178,d+16|0,0)>>2]!=7)break f;if(J[Ce(J[d+24>>2],j,d)>>2]!=9)break g}a=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=a}uc(d)}uc(d+16|0)}uc(d+32|0);bc=d+48|0;a=J[g+12>>2];J[b>>2]=J[g+8>>2];J[b+4>>2]=a;h=Wf(J[J[(J[e>>2]+l|0)+4>>2]+4>>2]);if(f)break d;break c}if(!f)break c}n=h;a=J[e>>2]+(i<<2)|0;h=Wf(J[J[a+8>>2]+4>>2]);o=h*h;h=Wf(J[J[a+12>>2]+4>>2]);h=n*Y(o+h*h)}d=J[e+8>>2]}O[c>>3]=h;if((d|0)>0){a=0; -while(1){b=J[J[e>>2]+(a<<2)>>2];if(b){qc(Rc(b));d=J[e+8>>2]}a=a+1|0;if((d|0)>(a|0))continue;break}}qc(dd(e))}uc(k);bc=g+32|0}function rxa(){var a=0,b=0,c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;if(!K[2759576]){J[689893]=0;H[2759576]=1}a:{c=J[689893];if(!c){a=rc(44);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2405448;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[695492]=0;aa(5080,a+8|0,2405676)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+36>>2]=0;J[a+40>>2]=J[682146];md(2759572, -a);c=J[689893]}if(!K[2759568]){J[689890]=0;J[689891]=0;J[689888]=0;J[689889]=0;J[689888]=2386024;J[689889]=0;J[689890]=0;J[689891]=0;H[2759568]=1}J[e+12>>2]=2759552;a=J[689890];J[e+8>>2]=a;if(a)while(1){d=a+8|0;a=bc-48|0;bc=a;b=rc(100);J[695492]=0;f=$(5404,b|0)|0;g=J[695492];J[695492]=0;b:{if((g|0)!=1){J[a+44>>2]=0;b=a+44|0;md(b,f);J[695492]=0;da(5405,J[a+44>>2],d|0);d=J[695492];J[695492]=0;if((d|0)==1){a=Z()|0;vc(b);ba(a|0);B()}J[695492]=0;b=a+28|0;ca(5406,b|0,J[a+44>>2],2405627);d=J[695492];J[695492]= -0;c:{d:{e:{f:{g:{if((d|0)!=1){if(J[a+32>>2]){J[695492]=0;b=aa(5031,a+12|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;J[695492]=0;ia(5407,2405632,2405640,b|0,c+8|0);d=J[695492];J[695492]=0;if((d|0)==1)break g;$c(b)}$c(a+28|0);b=J[a+44>>2];J[a+44>>2]=0;if(!b)break f;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f}ea(0)|0;yc();B()}c=Z()|0;break c}c=Z()|0;$c(b);break d}bc=a+48|0;break b}c= -Z()|0}$c(a+28|0)}vc(a+44|0);ba(c|0);B()}a=Z()|0;qc(b);ba(a|0);B()}Kn(2759552,e+8|0);J[e+12>>2]=2759552;a=J[689890];J[e+8>>2]=a;if(a)continue;break}bc=e+16|0;return c|0}c=Z()|0;qc(ed(a));ba(c|0);B()}function Pga(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=bc-16|0;bc=l;n=dF(g);i=l+4|0;g=UE(g);gc[J[J[g>>2]+20>>2]](i,g);a:{if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;b:{if(!h){J[695492]=0;ha(6653,n|0,a|0,c|0,d|0)|0;g=J[695492];J[695492]=0; -if((g|0)==1)break b;g=(c-a<<2)+d|0;J[f>>2]=g;break a}J[f>>2]=d;c:{d:{i=a;h=K[i|0];switch(h-43|0){case 0:case 2:break d;default:break c}}J[695492]=0;i=aa(6668,n|0,h<<24>>24)|0;h=J[695492];J[695492]=0;if((h|0)==1)break b;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=a+1|0}if(!(K[i|0]!=48|(c-i|0)<2|(K[i+1|0]|32)!=120)){J[695492]=0;h=aa(6668,n|0,48)|0;j=J[695492];J[695492]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+4;J[j>>2]=h;h=H[i+1|0];J[695492]=0;h=aa(6668,n|0,h|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break b; -j=J[f>>2];J[f>>2]=j+4;J[j>>2]=h;i=i+2|0}J[695492]=0;No(i,c);h=J[695492];J[695492]=0;if((h|0)==1)break b;J[695492]=0;o=$(6650,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;j=0;g=i;while(1){e:{if(c>>>0<=g>>>0){g=J[f>>2];J[695492]=0;Iu((i-a<<2)+d|0,g);g=J[695492];J[695492]=0;if((g|0)==1)break e;g=J[f>>2];break a}h=l+4|0;f:{if(K[h+11|0]>>>7|0){k=J[h>>2];break f}k=h}p=!K[k+j|0];if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(p|H[k+j|0]!=(m|0))){m=J[f>>2];J[f>>2]=m+4;J[m>>2]=o;if(K[h+11|0]>>>7|0)h=J[h+ -4>>2];else h=K[h+11|0]&127;j=(h-1>>>0>j>>>0)+j|0;m=0}h=H[g|0];J[695492]=0;h=aa(6668,n|0,h|0)|0;k=J[695492];J[695492]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+4;J[k>>2]=h;g=g+1|0;m=m+1|0;continue}}break}}a=Z()|0;ad(l+4|0);ba(a|0);B()}J[e>>2]=(b|0)==(c|0)?g:(b-a<<2)+d|0;ad(l+4|0);bc=l+16|0}function Xpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+300|0]|K[a+293|0]|(K[a+292|0]|K[a+291|0]))break b; -d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!K[a+286|0]){f=K[a+287|0];if(f)break k;if(!(K[a+288|0]|K[a+289|0]))break l;if((c|0)!=4)break a;if(f)break j;break i}if((c|0)==4)break j;break a}if(!(c&-5))break i;break a}if((c|0)!=4)break a}H[a+295|0]=1;break h}m:{if(!(K[a+288|0]|K[a+289|0])){H[a+308|0]=(c|0)!=0;break m}H[a+295|0]=1}if(K[a+288|0]|K[a+289|0])break h;if(c)break g;f=J[a+2192>>2];break f}n:{if(!K[a+288|0]){g=J[a+512>>2];if(g)break n}g=J[a+528>>2]}f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);g=J[g+88>> -2];H[g+57|0]=1;J[g+1104>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);break e}f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+2192>>2]=f}h=0;o:{if(!K[a+114|0])break o;h=!c;g=gc[J[a+152>>2]](36)|0;if(!g){Dc(a,1,0,0);h=1;break o}J[g+4>>2]=1030;J[g>>2]=1031;i=J[a+700>>2];p:{if(i){J[i+8>>2]=g;break p}J[a+696>>2]=g}J[g+8>>2]=0;J[g+12>>2]=i;J[a+700>>2]=g;J[g+16>>2]=J[a+436>>2];J[g+20>>2]=J[a+440>>2];J[g+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432| -0])))J[a+516>>2]=g;J[g+32>>2]=f;H[g+28|0]=h;h=0}f=h;if(f)break d}q:{if(!K[a+112|0])break q;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break d;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break q;b=a;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+36>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}f=0}return f|0}Dc(a,1029,0,0);return 1029}Dc(a,1028,0,0);return 1028}function vka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a>>2]=2439740;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>> -2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[695492]=0;e=$(2225,a- -64|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{if((d|0)!=1){J[a+432>>2]=340424;J[a+480>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+448>>2]=0;J[a+452>>2]=1072693248;J[a+436>>2]=0;J[a+440>>2]=255;J[a+456>>2]=0;J[a+460>>2]=0;J[a+464>>2]=0;J[a+488>>2]=0;J[a+492>>2]=1071644672;J[695492]=0;f=mz(a+496|0);d=J[695492];J[695492]=0;if((d|0)==1)break d;d=a+576|0;e:{if(H[c+11|0]>=0){e=J[c+4>>2];J[d>> -2]=J[c>>2];J[d+4>>2]=e;J[d+8>>2]=J[c+8>>2];break e}g=J[c+4>>2];c=J[c>>2];J[695492]=0;ca(15,d|0,c|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break c}H[a+603|0]=0;H[a+604|0]=0;H[a+605|0]=0;H[a+606|0]=0;H[a+607|0]=0;H[a+608|0]=0;H[a+609|0]=0;H[a+610|0]=0;H[a+602|0]=1;I[a+600>>1]=257;J[a+592>>2]=0;J[a+596>>2]=0;H[a+611|0]=0;H[a+612|0]=0;H[a+613|0]=0;H[a+614|0]=0;H[a+615|0]=0;H[a+616|0]=0;H[a+617|0]=0;H[a+618|0]=0;H[a+619|0]=0;H[a+620|0]=0;H[a+621|0]=0;H[a+622|0]=0;H[a+623|0]=0;H[a+624|0]=0;H[a+625|0]= -0;H[a+626|0]=0;H[a+627|0]=0;J[a+628>>2]=J[b>>2];b=J[b+4>>2];J[a+632>>2]=b;if(!b){J[a+636>>2]=0;b=J[682147];J[a+640>>2]=b;J[682147]=b+1024;return a|0}J[b+4>>2]=J[b+4>>2]+1;J[a+636>>2]=0;c=J[682147];J[a+640>>2]=c;J[682147]=c+1024;c=J[b+4>>2];J[b+4>>2]=c-1;if(!c){gc[J[J[b>>2]+8>>2]](b);Vc(b)}return a|0}c=Z()|0;break a}c=Z()|0;break b}c=Z()|0;ZF(f)}J[a+432>>2]=340424;d=J[a+460>>2];if(d){qc(d);J[a+460>>2]=0}ln(e)}Ie(b);ba(c|0);B()}function n$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(J[d>>2]<=0){if(!J[c>>2]){J[c>> -2]=308;return 0}a=J[a+8>>2];c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);H[b+260|0]=d;H[b+261|0]=d>>>8;H[b+262|0]=d>>>16;H[b+263|0]=d>>>24;H[b+264|0]=c;H[b+265|0]=c>>>8;H[b+266|0]=c>>>16;H[b+267|0]=c>>>24;c=K[a+44|0]|K[a+45|0]<<8|(K[a+46|0]<<16|K[a+47|0]<<24);d=K[a+40|0]|K[a+41|0]<<8|(K[a+42|0]<<16|K[a+43|0]<<24);H[b+300|0]=d;H[b+301|0]=d>>>8;H[b+302|0]=d>>>16;H[b+303|0]=d>>>24;H[b+304|0]=c;H[b+305|0]=c>>>8;H[b+306|0]=c>>>16;H[b+307|0]=c>>>24; -c=K[a+36|0]|K[a+37|0]<<8|(K[a+38|0]<<16|K[a+39|0]<<24);d=K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24);H[b+292|0]=d;H[b+293|0]=d>>>8;H[b+294|0]=d>>>16;H[b+295|0]=d>>>24;H[b+296|0]=c;H[b+297|0]=c>>>8;H[b+298|0]=c>>>16;H[b+299|0]=c>>>24;c=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);d=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);H[b+284|0]=d;H[b+285|0]=d>>>8;H[b+286|0]=d>>>16;H[b+287|0]=d>>>24;H[b+288|0]=c;H[b+289|0]=c>>>8;H[b+290|0]=c>>>16;H[b+291|0]=c>>>24;c=K[a+20|0]|K[a+21| -0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);H[b+276|0]=d;H[b+277|0]=d>>>8;H[b+278|0]=d>>>16;H[b+279|0]=d>>>24;H[b+280|0]=c;H[b+281|0]=c>>>8;H[b+282|0]=c>>>16;H[b+283|0]=c>>>24;c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);H[b+268|0]=a;H[b+269|0]=a>>>8;H[b+270|0]=a>>>16;H[b+271|0]=a>>>24;H[b+272|0]=c;H[b+273|0]=c>>>8;H[b+274|0]=c>>>16;H[b+275|0]=c>>>24;H[b+34|0]=1;J[b+8>>2]=b+260}else b=0;return b| -0}function Pg(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=bc-16|0;bc=h;d=J[a+36>>2];a:{if(!d)break a;e=J[d>>2];if(!e|!J[d+12>>2])break a;b=J[d+16>>2];if(!b)break a;c=J[e+16>>2];if(!c)break a;b:{c:{b=b-(J[c+32>>2]?0:J[c>>2])|0;if(b>>>0>=251){b=Hw(c,b-80|0);if(b){J[d+16>>2]=J[d+16>>2]-b;J[d+36>>2]=b+J[d+36>>2]}e=J[d>>2];c=J[e+16>>2];if(!c)break c;if(J[c+32>>2])b=0;else{b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;b=J[c+20>>2];g=J[c+4>>2];if(!((b|0)==(g|0)|g>>>0>2147483646)){J[c+20>>2]= -g;b=g}b=b+J[c>>2]|0}J[d+20>>2]=b}if(J[c+32>>2])break b;b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;b=J[c+20>>2];f=J[c+4>>2];if(!((b|0)==(f|0)|f>>>0>2147483646)){J[c+20>>2]=f;b=f}if(b>>>0>250)break a;break b}c=0;J[d+20>>2]=0}if(!(J[e+28>>2]|!J[e+4>>2])){DB(e,500);c=J[J[d>>2]+16>>2]}e=0;e=J[c+32>>2]|!c?e:J[c>>2];b=J[d+12>>2];if((e|0)!=(b|0)){J[d+12>>2]=e;J[d+16>>2]=(J[d+16>>2]-b|0)+e}e=0;if(!(J[c+32>>2]|!c)){b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;b=J[c+ -20>>2];f=J[c+4>>2];if(!((b|0)==(f|0)|f>>>0>2147483646)){J[c+20>>2]=f;b=f}e=b+J[c>>2]|0}J[d+20>>2]=e}b=J[a+36>>2];d:{if(K[J[b+16>>2]])break d;if((Cd(b)|0)>0)break d;while(1){b=J[a+40>>2];if((b|0)<2)break d;e:{f:{g:{if(!J[689531]){c=b-1|0;J[a+40>>2]=c;d=J[a+48>>2];break g}J[h>>2]=b;d=0;gc[J[659549]](J[689514],36109,h);b=J[a+40>>2];if((b|0)<=0)break e;c=b-1|0;J[a+40>>2]=c;d=J[a+48>>2];g=0;f=0;if((b|0)==1)break f}g=J[((b<<2)+d|0)-8>>2];f=c}J[a+36>>2]=g;b=(f<<2)+d|0;d=J[b>>2];J[b>>2]=0}dh(d);b=J[a+36>> -2];if(K[J[b+16>>2]])break d;if((Cd(b)|0)<=0)continue;break}}bc=h+16|0}function O1a(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;d=bc-48|0;bc=d;m=J[a+420>>2];f=J[a+464>>2];a:{b:{if(J[f+40>>2]|!J[a+280>>2])break b;e=J[a+460>>2];J[e+24>>2]=J[e+24>>2]+(J[f+12>>2]/8|0);J[f+12>>2]=0;g=0;if(!(gc[J[e+8>>2]](a)|0))break a;if(J[a+336>>2]>0){e=0;while(1){J[((e<<2)+f|0)+20>>2]=0;e=e+1|0;if((e|0)>2])continue;break}}J[f+16>>2]=0;J[f+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[f+36>> -2]=0}if(!J[f+36>>2]){J[d+44>>2]=a;c=J[a+24>>2];i=J[c>>2];J[d+28>>2]=i;g=J[c+4>>2];J[d+32>>2]=g;e=J[f+12>>2];h=J[f+8>>2];J[d+24>>2]=J[f+32>>2];k=J[f+28>>2];J[d+16>>2]=J[f+24>>2];J[d+20>>2]=k;k=J[f+20>>2];J[d+8>>2]=J[f+16>>2];J[d+12>>2]=k;if(J[a+364>>2]>0){i=0;while(1){c=i<<2;k=J[c+b>>2];l=J[(a+c|0)+368>>2]<<2;c=J[((J[J[(l+a|0)+340>>2]+20>>2]<<2)+f|0)+44>>2];c:{d:{e:{if((e|0)>7)break e;j=d+28|0;g=0;if(!Fg(j,h,e,0))break a;h=J[d+36>>2];e=J[d+40>>2];if((e|0)>7)break e;c=wi(j,h,e,c,1);break d}g=h>>e-8& -255;j=J[(c+(g<<2)|0)+144>>2];if(j){c=K[(c+g|0)+1168|0];e=e-j|0;break c}c=wi(d+28|0,h,e,c,9)}g=0;if((c|0)<0)break a;h=J[d+36>>2];e=J[d+40>>2]}if(c){if((c|0)>(e|0)){g=0;if(!Fg(d+28|0,h,e,c))break a;h=J[d+36>>2];e=J[d+40>>2]}e=e-c|0;c=c<<2;g=J[c+55904>>2];j=h>>e&g;c=j-((j|0)<=J[c+55900>>2]?g:0)|0}else c=0;g=d+l|0;c=c+J[g+12>>2]|0;J[g+12>>2]=c;I[k>>1]=c<>2])continue;break}g=J[d+32>>2];i=J[d+28>>2];c=J[a+24>>2]}J[c+4>>2]=g;J[c>>2]=i;J[f+12>>2]=e;J[f+8>>2]=h;J[f+32>>2]=J[d+24>> -2];a=J[d+20>>2];J[f+24>>2]=J[d+16>>2];J[f+28>>2]=a;a=J[d+12>>2];J[f+16>>2]=J[d+8>>2];J[f+20>>2]=a}J[f+40>>2]=J[f+40>>2]-1;g=1}bc=d+48|0;return g|0}function $S(a,b){var c=0,d=0,e=0,f=0,g=0;e=bc-144|0;bc=e;a:{if(!J[a+72>>2])break a;f=J[a+68>>2];if(!f|!J[a+76>>2])break a;b:{c:{d:{e:{f:{d=L[a+138>>1];if(!(K[a+13|0]&64|((d|0)!=1|L[a+90>>1]!=6))){d=L[a+204>>1];if(f>>>0<0-d>>>0)c=((d+f|0)-1>>>0)/(d>>>0)|0;else c=0;d=P(c,d);f=L[a+84>>1];c=Dzb(d,0,f,0);g=(fc|0)!=0;g:{h:{if(f){if(!g)break h;f=J[a>>2];c=J[a+ -628>>2];J[e+64>>2]=73129;Nc(c,f,74119,e- -64|0);f=L[a+84>>1];c=Dzb(f,0,d,0);g=(fc|0)!=0;d=!f;break f}if(c&7)break g;d=1;break f}if(!(c&7))break e;if(!g)break g;d=J[a>>2];c=J[a+628>>2];J[e+80>>2]=73129;Nc(c,d,74119,e+80|0);c=0}d=(c>>>3|0)+1|0;break c}c=Dzb(L[a+84>>1],0,f,0);if(fc){d=J[a>>2];c=J[a+628>>2];J[e+128>>2]=72519;Nc(c,d,74119,e+128|0);d=L[a+138>>1];c=0}i:{if((d|0)!=1)break i;d=L[a+98>>1];c=Dzb(d,0,c,0);f=fc;if(!d|!f)break i;d=J[a>>2];c=J[a+628>>2];J[e+112>>2]=72519;Nc(c,d,74119,e+112|0);c= -0}f=(c>>>3|0)+((c&7)!=0)|0;c=Dzb(f,0,b,0);d=fc;if(!f|!d)break b;c=J[a>>2];b=J[a+628>>2];J[e+96>>2]=73129;Nc(b,c,74119,e+96|0);c=0;break b}if(d)break d}if(!g)break d;d=J[a>>2];c=J[a+628>>2];J[e+48>>2]=73129;Nc(c,d,74119,e+48|0);c=0}d=c>>>3|0}c=L[a+206>>1];f=P(c,L[a+204>>1]);if(!f){c=0;Nc(J[a+628>>2],J[a>>2],73556,0);break a}if(0-c>>>0>b>>>0)b=((b+c|0)-1>>>0)/(c>>>0)|0;else b=0;c=Dzb(d,0,P(b,c),0);b=fc;if(!(!d|!b)){c=J[a>>2];b=J[a+628>>2];J[e+32>>2]=73129;Nc(b,c,74119,e+32|0);c=0}b=(c|0)/(f|0)|0;if((b| -0)>=0){c=(b<<1)+c|0;break b}d=J[a>>2];b=J[a+628>>2];J[e+16>>2]=73129;Nc(b,d,74119,e+16|0)}d=J[a+76>>2];c=Dzb(d,0,c,0);b=fc;if(!d|!b)break a;b=J[a>>2];a=J[a+628>>2];J[e>>2]=73129;Nc(a,b,74119,e);c=0}bc=e+144|0;return c}function YHa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=bc-32|0;bc=b;J[b+20>>2]=92;J[b+24>>2]=0;J[695492]=0;H[b+31|0]=1;c=$(4,16)|0;e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{if((e|0)!=1){J[b+8>>2]=c;J[b+12>>2]=2;J[b+16>>2]=-2147483644;J[c+8>>2]=0;J[c>>2]=92;J[c+4>>2]=92;J[695492]= -0;ca(3520,a|0,b+20|0,b+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break g;if(H[b+19|0]<0)qc(J[b+8>>2]);if(H[b+31|0]<0)qc(J[b+20>>2]);J[b+20>>2]=34;J[b+24>>2]=0;J[695492]=0;H[b+31|0]=1;c=$(4,16)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;J[b+8>>2]=c;J[b+12>>2]=2;J[b+16>>2]=-2147483644;J[c+8>>2]=0;J[c>>2]=92;J[c+4>>2]=34;J[695492]=0;ca(3520,a|0,b+20|0,b+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;if(H[b+19|0]<0)qc(J[b+8>>2]);if(H[b+31|0]<0)qc(J[b+20>>2]);e=J[a>>2];i=K[a+11|0];g=i<<24>>24;c=(g| -0)<0;d=c?e:a;h=J[a+4>>2];f=c?h:i;c=d+(f<<2)|0;h:{i:{if(!f)break i;while(1){if(J[d>>2]<32)break i;d=d+4|0;if((c|0)!=(d|0))continue;break}d=c;break h}if((c|0)==(d|0))break h;f=d+4|0;if((c|0)==(f|0))break h;while(1){e=J[f>>2];if((e|0)>=32){J[d>>2]=e;d=d+4|0}f=f+4|0;if((c|0)!=(f|0))continue;break}h=J[a+4>>2];e=J[a>>2];i=K[a+11|0];g=i}f=h;h=g<<24>>24;c=(h|0)<0;f=c?f:i;c=c?e:a;g=d-c>>2;if(f>>>0>>0)break a;c=(c+(f<<2)|0)-d|0;j:{if((c|0)==-4){k:{if((h|0)<0){J[a+4>>2]=g;break k}H[a+11|0]=g;e=a}J[(g<<2)+ -e>>2]=0;break j}Du(a,g,c>>2)}bc=b+32|0;return}d=Z()|0;break f}d=Z()|0;if(H[b+19|0]>=0)break f;qc(J[b+8>>2])}if(H[b+31|0]>=0)break b;qc(J[b+20>>2]);ba(d|0);B()}d=Z()|0;break c}d=Z()|0;if(H[b+19|0]>=0)break c;qc(J[b+8>>2])}if(H[b+31|0]>=0)break b;qc(J[b+20>>2])}ba(d|0);B()}mr(a);B()}function M0a(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;k=bc-16|0;l=J[a+12>>2];i=J[a+8>>2];h=J[a+4>>2];p=J[h+24>>2];f=J[h+56>>2];d=J[a+16>>2];j=J[a+20>>2];if(d>>>0>>0?f:0){J[h+56>>2]= -0;c=1}else c=0;while(1){a:{b:{c:{d:{e:{f:{if(!c){c=i;if(c>>>0>=l>>>0|d>>>0>=j>>>0)break c;i=c+2|0;f=L[c>>1];if(f>>>0<=127){H[d|0]=f;d=d+1|0;break a}if(f>>>0<=2047){H[d|0]=f>>>6|192;g=f&63|-128;c=d+1|0;if(c>>>0>>0){H[d+1|0]=g;d=d+2|0;break a}H[h+63|0]=1;H[h+76|0]=g;J[b>>2]=15;d=c;break a}if((p|0)==739104|(f&63488)!=55296)break f;c=1;continue}if(i>>>0>=l>>>0)break d;if(f&1024)break e;c=L[i>>1];if((c&64512)!=56320)break e;i=i+2|0;f=(c+(f<<10)|0)-56613888|0}c=3;m=j-d|0;e=(m|0)>3;g=e?d:k+12|0;g:{if((f| -0)<=65535){c=2;e=f>>>12|-32;break g}H[(e?d:k+12|0)+1|0]=f>>>12&63|128;e=f>>>18|-16}H[g|0]=e;e=c+g|0;H[e|0]=f&63|128;H[e-1|0]=f>>>6&63|128;h:{if((d|0)!=(g|0)){e=k+12|0;n=e+c|0;if(g>>>0>n>>>0)break a;e=c+e|0;i:{if(!((e-g|0)+1&1)){c=d;d=g;break i}o=K[g|0];j:{if(d>>>0>=j>>>0){c=H[h+63|0];H[h+63|0]=c+1;H[(c+h|0)+76|0]=o;J[b>>2]=15;c=d;break j}H[d|0]=o;c=d+1|0}d=((m|0)>3?d:k+12|0)+1|0}if((g|0)!=(e|0))break h;break b}d=(d+c|0)+1|0;break a}while(1){e=K[d|0];k:{if(c>>>0>>0){H[c|0]=e;c=c+1|0;break k}g=H[h+ -63|0];H[h+63|0]=g+1;H[(h+g|0)+76|0]=e;J[b>>2]=15}e=K[d+1|0];l:{if(c>>>0>=j>>>0){g=H[h+63|0];H[h+63|0]=g+1;H[(h+g|0)+76|0]=e;J[b>>2]=15;break l}H[c|0]=e;c=c+1|0}d=d+2|0;if(n>>>0>=d>>>0)continue;break}break b}J[h+56>>2]=f;J[b>>2]=12;break c}J[h+56>>2]=f}if(!(d>>>0>>0|i>>>0>=l>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=i;J[a+16>>2]=d;return}d=c}c=0;continue}}function dN(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;a:{f=J[a+4>>2];if(!f)break a;g=J[a+44>>2];if(!g)break a; -d=f+40|0;i=b>>>0>=g>>>0;if(!i){e=d+(b<<2)|0;j=K[e|0];k=K[e+1|0];l=K[e+2|0];m=K[e+3|0]}e=0;if(c>>>0>>0){e=d+(c<<2)|0;n=K[e|0];h=K[e+3|0];o=K[e+2|0];e=K[e+1|0]}b:{if(!i){d=d+(b<<2)|0;H[d|0]=n;H[d+1|0]=e;H[d+2|0]=o;H[d+3|0]=h;H[a+481|0]=0;f=J[a+4>>2];if(!f)break b}if(M[a+44>>2]<=c>>>0)break b;d=(c<<2)+f|0;H[d+41|0]=k;H[d+40|0]=j;H[d+42|0]=l;H[d+43|0]=m;H[a+481|0]=0}e=J[a+20>>2];if((e|0)<=0)break a;d=J[a+16>>2];if((d|0)<=0)break a;j=b&15;m=b&1;k=c&15;l=c&1;h=0;while(1){f=0;if((d|0)>0){while(1){c:{d:{e:{f:{g= -L[a+26>>1];if((g|0)!=8){i=J[a+56>>2]+P(J[a+52>>2],h)+(P(f,g)>>>3)|0;e=K[i|0];d=0;g:{h:{i:{g=g-1|0;switch(g|0){case 0:break h;case 3:break i;default:break g}}d=(f^-1)<<2&4;d=(e&15<>>d|0;break g}d=(f^-1)&7;d=(e&1<>>d|0}if((b|0)!=(d|0))break c;d=b;switch(g|0){case 0:break e;case 3:break f;default:break c}}e=(J[a+56>>2]+P(J[a+52>>2],h)|0)+f|0;d=K[e|0];if((d|0)!=(b|0))break c;H[e|0]=c;break d}d=(f^-1)<<2&4;H[i|0]=e&(15<>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],h)|0)+f|0]=b;break j}d=J[a+56>>2]+P(J[a+52>>2],h)+(P(e,f)>>>3)|0;k:switch(e-1|0){case 3:e=d;g=K[d|0];d=(f^-1)<<2&4;H[e|0]=g&(15<>2];f=f+1|0;if((d|0)>(f|0))continue;break}e=J[a+20>>2]}h=h+1|0;if((h|0)<(e|0))continue;break}}}function $ga(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;var h=0,i=0,j=0,k=0,l= -0,m=0,n=0,o=0,p=0;l=bc-16|0;bc=l;n=fF(g);i=l+4|0;g=XE(g);gc[J[J[g>>2]+20>>2]](i,g);a:{if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;b:{if(!h){J[695492]=0;ha(6634,n|0,a|0,c|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;g=(c-a|0)+d|0;J[f>>2]=g;break a}J[f>>2]=d;c:{d:{i=a;h=K[i|0];switch(h-43|0){case 0:case 2:break d;default:break c}}J[695492]=0;i=aa(6656,n|0,h<<24>>24)|0;h=J[695492];J[695492]=0;if((h|0)==1)break b;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=a+1|0}if(!(K[i|0]!=48|(c-i|0)<2|(K[i+1| -0]|32)!=120)){J[695492]=0;h=aa(6656,n|0,48)|0;j=J[695492];J[695492]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+1;H[j|0]=h;h=H[i+1|0];J[695492]=0;h=aa(6656,n|0,h|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+1;H[j|0]=h;i=i+2|0}J[695492]=0;No(i,c);h=J[695492];J[695492]=0;if((h|0)==1)break b;J[695492]=0;o=$(6625,g|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;j=0;g=i;while(1){e:{if(c>>>0<=g>>>0){g=J[f>>2];J[695492]=0;No((i-a|0)+d|0,g);g=J[695492];J[695492]=0;if((g|0)==1)break e; -g=J[f>>2];break a}h=l+4|0;f:{if(K[h+11|0]>>>7|0){k=J[h>>2];break f}k=h}p=!K[k+j|0];if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(p|H[k+j|0]!=(m|0))){m=J[f>>2];J[f>>2]=m+1;H[m|0]=o;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;j=(h-1>>>0>j>>>0)+j|0;m=0}h=H[g|0];J[695492]=0;h=aa(6656,n|0,h|0)|0;k=J[695492];J[695492]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+1;H[k|0]=h;g=g+1|0;m=m+1|0;continue}}break}}a=Z()|0;ad(l+4|0);ba(a|0);B()}J[e>>2]=(b|0)==(c|0)?g:(b-a|0)+d|0;ad(l+4|0);bc=l+16|0}function qda(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;if((c|0)>0){g=J[a+584>>2];while(1){if(!(K[g+4|0]&2)){j=J[a+584>>2];h=J[j+64>>2];e=J[j+68>>2];a:{if(!(K[j+28|0]&4))break a;if((e|0)==4){e=4;break a}i=((e|0)>3?-4:4)+e|0;b:{if(i>>>0<=e>>>0)break b;if(J[a+608>>2]>=J[a+600>>2])gf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=h;d=J[a+608>>2]+1|0;J[a+608>>2]=d;i=4;f=-4;if((e|0)<4){h=0;e=8;break b}while(1){if(J[a+600>>2]<=(d|0))gf(a);d=J[a+604>>2];J[a+604>>2]=d+1;h=0;H[d|0]=0;d=J[a+608>>2]+1|0;J[a+608>>2]= -d;e=8;f=f-8|0;if(f>>>0>8)continue;break}}e=e-i|0;if(e)break a;if(J[a+608>>2]>=J[a+600>>2])gf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=h;J[a+608>>2]=J[a+608>>2]+1;h=0;e=8}i=1;d=12;if(H[j+28|0]&1){i=!J[j+92>>2]|2;d=13}c:{if(d>>>0<=e>>>0)break c;d=d-e|0;e=i>>>d|h;if(J[a+608>>2]>=J[a+600>>2])gf(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;h=0;e=8;if(d>>>0<9)break c;while(1){d=d-8|0;e=i>>>d|0;if(J[a+600>>2]<=(f|0))gf(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1| -0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}f=J[(d<<2)+95792>>2]&i;d=e-d|0;f=f<>2]>=J[a+600>>2])gf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=f;J[a+608>>2]=J[a+608>>2]+1;f=0;d=8}J[j+68>>2]=d;J[j+64>>2]=f}d:{if(H[g+28|0]&1){e:{if(!J[g+92>>2]){OO(a,b,J[g+12>>2]);J[g+92>>2]=1;d=J[g+100>>2];break e}ZO(a,b,J[g+96>>2],J[g+12>>2]);d=J[g+100>>2]-1|0;J[g+100>>2]=d}if(!d){J[g+92>>2]=0;J[g+100>>2]=J[g+104>>2]-1;break d}Ne(J[g+96>>2],b,J[g+8>>2]);break d}OO(a,b,J[g+12>>2])}d=J[g+8>>2]; -b=d+b|0;c=c-d|0;if((c|0)>0)continue;break}}return 1}function c4a(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;g=bc-112|0;bc=g;a:{b:{c:{d:{e:{f:{g:{if(!J[a+168>>2]){b=0;break g}wc(g+8|0,0,104);J[695492]=0;h=$(4,12)|0;i=J[695492];J[695492]=0;if((i|0)==1)break d;h:{if(H[b+11|0]>=0){i=J[b+4>>2];J[h>>2]=J[b>>2];J[h+4>>2]=i;J[h+8>>2]=J[b+8>>2];break h}i=J[b+4>>2];b=J[b>>2];J[695492]=0;ca(15,h|0,b|0,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break c}J[695492]=0;J[g+8>>2]=h;b=$(4,4)|0;h= -J[695492];J[695492]=0;if((h|0)==1)break d;J[b>>2]=0;J[695492]=0;J[g+28>>2]=b;h=$(4,4)|0;i=J[695492];J[695492]=0;if((i|0)==1)break d;J[h>>2]=0;J[g+32>>2]=h;d=J[d>>2];if(d&1)J[b>>2]=1;if(d&2)J[h>>2]=1;b=J[a+168>>2];d=J[J[b>>2]+20>>2];J[695492]=0;b=$(d|0,b|0)|0;d=J[695492];J[695492]=0;i:{j:{k:{if((d|0)==1)break k;d=K[a+164|0];h=J[J[b>>2]+20>>2];J[695492]=0;d=ga(h|0,b|0,g+8|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break k;if(d)break j;b=0;break i}a=Z()|0;break a}J[g+4>>2]=J[d+24>>2];b=J[J[a>>2]+148>> -2];J[695492]=0;b=ja(b|0,a|0,d+12|0,g+4|0,c|0,e|0,f|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;if((b|0)!=1)break i;f=0;c=J[g+28>>2];b=0;l:{if(!c)break l;b=0;if(J[c>>2]!=1)break l;b=!J[d+40>>2]}c=J[g+32>>2];f=!c|J[c>>2]!=1?f:!J[d+44>>2];c=J[a+8>>2];J[g+4>>2]=b;b=J[J[c>>2]+60>>2];J[695492]=0;d=b;b=g+4|0;da(d|0,c|0,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;a=J[a+8>>2];J[g+4>>2]=f;c=J[J[a>>2]+56>>2];J[695492]=0;da(c|0,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;b=1}lo(g+8|0)}bc=g+ -112|0;return b|0}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;qc(h);break a}a=Z()|0}lo(g+8|0);ba(a|0);B()}function Ff(a,b){var c=0,d=0,e=0,f=0,g=0;f=bc-176|0;bc=f;a:{if(!a|!b)break a;e=J[a+36>>2];if(!e|J[a+172>>2]==-1)break a;d=J[e+16>>2];g=K[d|0];c=g<<24>>24;if((c|0)>=32){J[b>>2]=1;c=K[d|0];break a}b:{c:{d:{if(J[a+256>>2]==1){if((c|0)<0){if(!(g&64)|(c|0)==-64)break c;c=K[d+1|0];if(!c){Cd(e);e=J[a+36>>2];d=J[e+16>>2];c=K[d+1|0]}if((c&192)!=128)break c;if((g&224)==224){c=K[d+2|0];if(!c){Cd(e); -e=J[a+36>>2];d=J[e+16>>2];c=K[d+2|0]}if((c&192)!=128)break c;if((g&240)!=240)break d;if(!K[d+3|0]){Cd(e);e=J[a+36>>2];d=J[e+16>>2]}if((g&248)!=240|(K[d+3|0]&192)!=128)break c;J[b>>2]=4;c=K[d+3|0]&63|((K[d+1|0]&63)<<12|(K[d|0]&7)<<18|(K[d+2|0]&63)<<6);if(c>>>0>=65536)break b;break c}J[b>>2]=2;c=K[d+1|0]&63|(K[d|0]&31)<<6;if(c>>>0<128)break c;break b}J[b>>2]=1;e:{c=K[d|0];f:{if(c)break f;Cd(e);e=J[a+36>>2];d=J[e+16>>2];c=K[d|0];if(c)break f;c=0;if(M[e+20>>2]<=d>>>0)break e;EB(a,34795,0);e=J[a+36>>2]; -d=J[e+16>>2];c=K[d|0]}if((c&255)!=13)break e;c=10;if(K[d+1|0]!=10)break a;J[a+200>>2]=J[a+200>>2]+1;J[e+16>>2]=d+1;break a}c=c&255;break a}J[b>>2]=1;c=K[d|0];if((c|0)!=13)break a;c=10;if(K[d+1|0]!=10)break a;J[a+200>>2]=J[a+200>>2]+1;J[e+16>>2]=d+1;break a}J[b>>2]=3;c=K[d+2|0]&63|((K[d+1|0]&63)<<6|(K[d|0]&15)<<12);if(c>>>0>=2048)break b}c=J[e+16>>2];if((J[e+20>>2]-c|0)<=3){c=0;J[b>>2]=0;break a}d=K[c|0];e=K[c+1|0];g=K[c+2|0];J[f+12>>2]=K[c+3|0];J[f+8>>2]=g;J[f+4>>2]=e;J[f>>2]=d;c=f+16|0;Gi(c,149, -36511,f);Wj(a,9,4560,c);J[a+256>>2]=10;J[b>>2]=1;c=K[J[J[a+36>>2]+16>>2]];break a}if(c>>>0<55296|c-57344>>>0<8190|c-65536>>>0<1048576)break a;EB(a,34763,c)}bc=f+176|0;return c}function g1(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,p=0,q=0,r=0,s=0;k=bc-128|0;bc=k;h=J[a+8>>2];l=J[a+16>>2];j=H[b+c|0];g=j<<2&224;a:{b:{if(!g){if((j|0)<=63){m=((j&7)<<5)+32|0;g=0;break b}J[k>>2]=-1;g=1}m=((j&7)<<5)+32|0;i=1;if(m>>>0<=g>>>0)break a}o=e<<8;r=h+(c<<10)|0;s=(d<<1)+l|0;j=-1;while(1){c=g;g=J[(c<<2)+ -r>>2];c:{if((g|0)>=0){d:{e=g>>>24|0;if(H[e+b|0]<0)break d;if(g1(a,b,e,(g&16777215)+d|0,c|o,f))break d;i=0;break a}J[((c&31)<<2)+k>>2]=-1;break c}e=-1;e:{f:switch(g>>>20&15){case 0:e=g&65535;break e;case 4:e=L[((g&65535)<<1)+s>>1];e=e>>>0>=65534?-1:e;break e;case 5:g=(g&65535)+d|0;e=L[(g<<1)+l>>1];if(e>>>0<55296)break e;g=g+1|0;if(e>>>0<=56319){e=(L[(g<<1)+l>>1]+(e<<10&1047552)|0)+9216|0;break e}i=(e|0)!=57344;e=-1;if(i)break e;e=L[(g<<1)+l>>1];break e;case 1:break f;default:break e}e=(g&1048575)+ -65536|0}J[((c&31)<<2)+k>>2]=e;j=e&j}g=c+1|0;if(!(g&31|(j|0)<0)){j=-1;c=c-31|o;e=0;g:{h:switch(K[f+172|0]-8|0){case 0:if(c>>>0<65536)break g;if(c>>>0<=9371647){c=c&32767;break g}c=c&65407;break g;case 1:break h;default:break g}if(c>>>0<16777216)break g;if(c>>>0<=2399141887){c=c&8388607;break g}c=c&16744447}i=J[f+160>>2];p=J[f+24>>2];while(1){h=J[(e<<2)+k>>2];if((h|0)>=0){q=h&15;n=((L[(h>>>9&8388606)+p>>1]<<2)+p|0)+(h>>>2&252)|0;h=q|J[n>>2]<<4&1048560;i:{j:switch(K[f+172|0]-2|0){case 0:case 7:h=i+P(h, -3)|0;H[h+2|0]=c;H[h+1|0]=c>>>8;H[h|0]=c>>>16;break i;case 1:J[i+(h<<2)>>2]=c;break i;default:break j}I[i+(h<<1)>>1]=c}J[n>>2]=J[n>>2]|1<<(q|16)}c=c+1|0;e=e+1|0;if((e|0)!=32)continue;break}}if(g>>>0>>0)continue;break}i=1}bc=k+128|0;return i}function Wfb(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;e=a+10|0;if(e>>>0>M[b+160>>2])ge(b,8);l=K[a+9|0]|(K[a+7|0]<<16|K[a+6|0]<<24|K[a+8|0]<<8);c=K[a+2|0]|K[a+3|0]<<8|(K[a+4|0]<<16|K[a+5|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>> -24);a:{if(!(h>>>0<10|J[b+160>>2]-a>>>0>>0))if((h-10>>>0)/11>>>0>=l>>>0)break a;ge(b,8)}if(l){d=1;while(1){m=K[e+2|0]|(K[e+1|0]<<8|K[e|0]<<16);c=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(!(f>>>0>>0&c>>>0>>0))ge(b,8);if(d>>>0>m>>>0)ge(b,8);b:{if(!c)break b;d=a+c|0;c=d+4|0;if(c>>>0>M[b+160>>2])ge(b,8);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24); -g=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c:{if(g>>>0>J[b+160>>2]-c>>>2>>>0){ge(b,8);break c}if(!g)break b}d=0;i=0;while(1){j=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);k=j+K[c+3|0]|0;if(k>>>0>=1114112)ge(b,8);if(i>>>0>j>>>0)ge(b,8);c=c+4|0;i=k+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}d:{if(!f)break d;d=a+f|0;c=d+4|0;if(c>>>0>M[b+160>>2])ge(b,8);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);e:{if(d>>>0>(J[b+160>>2]-c>>>0)/5>>>0){ge(b,8);break e}if(!d)break d}i= -0;f=0;while(1){j=K[c+3|0];k=K[c+4|0];g=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);if(g>>>0>=1114112)ge(b,8);if(g>>>0>>0)ge(b,8);if(!(J[b+164>>2]<=0|M[b+172>>2]>(k|j<<8)>>>0))ge(b,16);c=c+5|0;i=g+1|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}e=e+11|0;d=m+1|0;n=n+1|0;if((n|0)!=(l|0))continue;break}}return 0}function T0a(a){a=a|0;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;j=bc-16|0;bc=j;e=J[a+448>>2];if(J[a+336>>2]>0)while(1){f=b<<2;c=J[(f+a|0)+340>>2];d=J[c+12>>2];t= -f+j|0,u=gc[J[J[a+4>>2]+32>>2]](a,J[((J[c+4>>2]<<2)+e|0)+72>>2],P(d,J[a+148>>2]),d,1)|0,J[t>>2]=u;b=b+1|0;if((b|0)>2])continue;break}c=J[e+28>>2];h=J[e+24>>2];a:{if((c|0)>(h|0)){p=e+32|0;b=J[a+356>>2];g=J[e+20>>2];while(1){if(b>>>0>g>>>0){while(1){k=0;f=0;m=J[a+336>>2];if((m|0)>0)while(1){d=k<<2;b=J[(d+a|0)+340>>2];n=J[b+60>>2];b:{if((n|0)<=0)break b;i=J[b+56>>2];if((i|0)<=0)break b;q=J[d+j>>2]+(h<<2)|0;o=i&7;l=0;r=P(g,i)<<7;s=i>>>0<8;while(1){b=J[(l<<2)+q>>2]+r|0;d=f;c=0;if(o)while(1){J[((d<< -2)+e|0)+32>>2]=b;d=d+1|0;b=b+128|0;c=c+1|0;if((o|0)!=(c|0))continue;break}f=f+i|0;if(!s)while(1){c=(d<<2)+e|0;J[c+36>>2]=b+128;J[c+32>>2]=b;J[c+40>>2]=b+256;J[c+44>>2]=b+384;J[c+48>>2]=b+512;J[c+52>>2]=b+640;J[c+56>>2]=b+768;J[c+60>>2]=b+896;b=b+1024|0;d=d+8|0;if((f|0)!=(d|0))continue;break}l=l+1|0;if((n|0)!=(l|0))continue;break}}k=k+1|0;if((m|0)!=(k|0))continue;break}if(!(gc[J[J[a+464>>2]+4>>2]](a,p)|0)){J[e+20>>2]=g;J[e+24>>2]=h;a=0;break a}b=J[a+356>>2];g=g+1|0;if(b>>>0>g>>>0)continue;break}c= -J[e+28>>2]}g=0;J[e+20>>2]=0;h=h+1|0;if((h|0)<(c|0))continue;break}}f=J[a+148>>2]+1|0;J[a+148>>2]=f;b=J[a+328>>2];if(b>>>0>f>>>0){d=J[a+448>>2];c:{if(J[a+336>>2]>=2){J[d+28>>2]=1;break c}a=J[a+340>>2];if(f>>>0>>0){J[d+28>>2]=J[a+12>>2];break c}J[d+28>>2]=J[a+76>>2]}J[d+20>>2]=0;J[d+24>>2]=0;a=3;break a}gc[J[J[a+456>>2]+12>>2]](a);a=4}bc=j+16|0;return a|0}function $8a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=c+d|0;if(J[b>>2]?M[b+12>>2]>>0|i>>>0>M[b+4>>2]:1){d= -J[a>>2];J[d+20>>2]=23;gc[J[d>>2]](a)}d=J[b+24>>2];a:{if(d>>>0<=c>>>0&d+J[b+16>>2]>>>0>=i>>>0)break a;if(!J[b+40>>2]){d=J[a>>2];J[d+20>>2]=71;gc[J[d>>2]](a)}if(J[b+36>>2]){g=J[b+16>>2];b:{if((g|0)<=0)break b;l=b+48|0;j=J[b+8>>2]<<7;h=P(j,J[b+24>>2]);f=J[b+20>>2];d=0;while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break b;f=P(f,j);gc[J[b+52>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2]; -if((d|0)<(g|0))continue;break}}J[b+36>>2]=0}d=0;g=J[b+16>>2];h=i-g|0;h=M[b+24>>2]>>0?c:(h|0)>0?h:0;J[b+24>>2]=h;if((g|0)<=0)break a;l=b+48|0;j=J[b+8>>2]<<7;h=P(j,h);f=J[b+20>>2];while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break a;f=P(f,j);gc[J[b+48>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}d=J[b+28>>2];c:{d:{e:{if(i>>>0<=d>>>0)break e;f:{g:{h:{i:{if(c>>> -0>d>>>0){if(!e)break i;d=J[a>>2];J[d+20>>2]=23;gc[J[d>>2]](a);d=c;break g}if(e)break g;break h}d=c}if(J[b+32>>2])break f;d=J[a>>2];J[d+20>>2]=23;gc[J[d>>2]](a);break c}J[b+28>>2]=i;if(!J[b+32>>2])break d}a=J[b+24>>2];d=d-a|0;a=i-a|0;if(d>>>0>=a>>>0)break e;h=J[b+8>>2]<<7;while(1){Le(J[J[b>>2]+(d<<2)>>2],h);d=d+1|0;if((a|0)!=(d|0))continue;break}}if(!e)break c}J[b+36>>2]=1}return J[b>>2]+(c-J[b+24>>2]<<2)|0}function KX(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;n=d+e|0;a:{if((n|0)< -0)break a;f=J[a+12>>2];if((f|0)<(n|0)){f=f?f<<1:1024;while(1){g=f;if((g|0)<(n|0)){f=g<<1;if((g|0)>0)continue}break}if((g|0)<0)break a;j=Nd(J[a+8>>2],g,12);J[a+8>>2]=j;f=J[a+12>>2];b:{if((g|0)<=(f|0))break b;i=g+(f^-1)|0;h=g-f&3;if(h)while(1){k=P(f,12)+j|0;J[k+8>>2]=0;J[k>>2]=-1;f=f+1|0;m=m+1|0;if((h|0)!=(m|0))continue;break}if(i>>>0<3)break b;while(1){i=P(f,12)+j|0;J[i+8>>2]=0;J[i+12>>2]=-1;J[i>>2]=-1;J[i+20>>2]=0;J[i+24>>2]=-1;J[i+44>>2]=0;J[i+32>>2]=0;J[i+36>>2]=-1;f=f+4|0;if((g|0)!=(f|0))continue; -break}}J[a+12>>2]=g}m=1;if((e|0)<=0)break a;while(1){g=J[c>>2];c:{if(!g){e=1;f=0;break c}e=0;f=0;m=0;k=0;if((g|0)<=0)break c;while(1){g=gc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break a;i=g>>31;f=f<<8|e>>>24;h=g;g=e<<8;e=h+g|0;f=f+i|0;f=e>>>0>>0?f+1|0:f;k=k+1|0;if((k|0)>2])continue;break}}g=0;j=0;m=0;k=0;i=0;h=0;if(J[c+4>>2]>0){while(1){l=gc[J[J[b>>2]+28>>2]](b)|0;if((l|0)==-1)break a;o=l>>31;h=h<<8|i>>>24;p=l;l=i<<8;i=p+l|0;h=h+o|0;h=i>>>0>>0?h+1|0:h;k=k+1|0;if((k|0)>2])continue;break}if(!h& -i>>>0>2147483647|h)break a}k=0;if(J[c+8>>2]>0){while(1){h=gc[J[J[b>>2]+28>>2]](b)|0;if((h|0)==-1)break a;l=h>>31;p=h;h=j<<8|g>>>24;o=g<<8;g=p+o|0;j=h+l|0;j=g>>>0>>0?j+1|0:j;k=k+1|0;if((k|0)>2])continue;break}if(!j&g>>>0>2147483647|j)break a}j=J[a+8>>2]+P(d,12)|0;d:{if(J[j>>2]!=-1)break d;if(!f&e>>>0>2|f)return 0;J[j>>2]=i;J[j+8>>2]=e;J[j+4>>2]=g;if(J[a+16>>2]>=(d|0))break d;J[a+16>>2]=d}m=1;d=d+1|0;if((n|0)>(d|0))continue;break}}return m}function I7(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;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(M[J[c+(d<<2)>>2]+4>>2]>=M[J[c+(e<<2)>>2]+4>>2])break b;J[a>>2]=d;J[b>>2]=e;break a;case 3:d=b-4|0;e=J[d>>2];b=J[J[c>>2]+12>>2];g=J[J[(e<<2)+b>>2]+4>>2];h=J[a+4>>2];f=J[J[b+(h<<2)>>2]+4>>2];c=J[a>>2];i=J[b+(c<<2)>>2];if(f>>>0>=M[i+4>>2]){if(g>>>0>=f>>>0)break b;J[a+4>>2]=e;J[d>>2]=h;c=J[a+4>>2];d=J[a>>2];if(M[J[b+(c<<2)>>2]+4>>2]>=M[J[b+(d<<2)>>2]+4>>2])break b;J[a+4>>2]=d;J[a>>2]=c;break a}if(g>>>0>> -0){J[a>>2]=e;J[d>>2]=c;break a}J[a+4>>2]=c;J[a>>2]=h;e=J[d>>2];if(M[J[b+(e<<2)>>2]+4>>2]>=M[i+4>>2])break b;J[a+4>>2]=e;J[d>>2]=c;break a;case 4:TM(a,a+4|0,a+8|0,b-4|0,c);break a;case 5:UM(a,a+4|0,a+8|0,a+12|0,b-4|0,c);break a;case 0:case 1:break b;default:break c}g=a+4|0;e=a+8|0;h=J[J[c>>2]+12>>2];f=J[a+8>>2];i=J[h+(f<<2)>>2];j=J[i+4>>2];k=J[a+4>>2];l=J[J[h+(k<<2)>>2]+4>>2];m=J[a>>2];n=J[h+(m<<2)>>2];d:{e:{if(l>>>0>=M[n+4>>2]){if(j>>>0>=l>>>0)break d;J[g>>2]=f;J[e>>2]=k;c=a;d=g;if(M[i+4>>2]>2])break e;break d}c=a;d=e;if(j>>>0>>0)break e;J[a+4>>2]=m;J[a>>2]=k;c=g;if(M[i+4>>2]>=M[n+4>>2])break d}J[c>>2]=f;J[d>>2]=m}d=a+12|0;if((d|0)==(b|0))break b;g=0;while(1){f:{c=d;i=J[c>>2];j=J[h+(i<<2)>>2];f=J[e>>2];if(M[j+4>>2]>=M[J[h+(f<<2)>>2]+4>>2])break f;while(1){g:{J[c>>2]=f;c=e;if((c|0)==(a|0)){c=a;break g}e=c-4|0;f=J[e>>2];if(M[j+4>>2]>2]+4>>2])continue}break}J[c>>2]=i;g=g+1|0;if((g|0)!=8)break f;return(d+4|0)==(b|0)}e=d;c=d+4|0;d=c;if((b|0)!=(c|0))continue;break}}return 1}return 1} -function vqb(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;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;if(e){r=e-2|0;u=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];f=a+8|0;g=g+8|0;a:{if(n>>>0>r>>>0)break a;h=n?(n|0)==(r|0)?d:b:c;p=!n&u;if(p){if(h>>>0<2)break a;k=h-1|0;m=k&1;if((h|0)!=2){k=k&-2;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+ -2>>1];I[g+12>>1]=L[a+4>>1];I[g+14>>1]=L[a+6>>1];g=g+16|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!m)break a;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];g=g+8|0;break a}m=a+6|0;k=h+1>>>1|0;if(h>>>0>=3){q=k>>>0<=2?2:k;l=1;v=h<<1;i=a+14|0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];o=g+6|0;j=L[a+6>>1];b:{if((j|0)==L[a+14>>1]){I[o>>1]=j;break b}j=K[m|0]|K[m+1|0]<<8;s=j>>>8|0;t=K[i|0]|K[i+1|0]<<8;j=((j<<8|s)&65535)+((h+(P(((t<<8|t>>>8)&65535)-((s| -j<<8)&65535)|0,l)<<1)|0)/(v|0)|0)&65535;j=j<<8|j>>>8;H[o|0]=j;H[o+1|0]=j>>>8}g=g+8|0;l=l+1|0;if((q|0)!=(l|0))continue;break}}if(h>>>0<=k>>>0)break a;j=h<<1;a=p?0:f;o=a+6|0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];l=g+6|0;i=L[m>>1];c:{if((i|0)==L[a+6>>1]){I[l>>1]=i;break c}i=K[m|0]|K[m+1|0]<<8;q=i>>>8|0;p=K[o|0]|K[o+1|0]<<8;i=((i<<8|q)&65535)+((h+(P(((p<<8|p>>>8)&65535)-((q|i<<8)&65535)|0,k)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[l|0]=i;H[l+1|0]=i>>>8}g=g+8|0;k=k+1|0;if((h|0)!= -(k|0))continue;break}}n=n+1|0;if((n|0)!=(e|0))continue;break}}return 0}function lH(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,w=0,x=0;j=bc-32|0;bc=j;a:{b:{t=J[a+16>>2];if(!t){c=1;break b}c:{d:{q=J[a>>2];if((q|0)<0)break d;r=J[a+4>>2];if((r|0)<0)break d;d=J[a+8>>2];if((d|0)<0)break d;g=J[a+12>>2];if((g|0)<0)break d;a=J[a+24>>2];u=d-1|0;w=0-!d|0;v=g-1|0;x=0-!g|0;while(1){e=J[a>>2];if(!e)break a;h=e>>31;c=h;d=e+q|0;c=d>>>0>>0?c+1|0:c;d=Ezb(d-1|0,c-!d| -0,e,h);J[a+16>>2]=d;k=J[a+4>>2];if(!k)break c;m=k>>31;c=m;g=k+r|0;c=g>>>0>>0?c+1|0:c;g=Ezb(g-1|0,c-!g|0,k,m);J[a+20>>2]=g;i=J[a+40>>2];f=i&31;if((i&63)>>>0>=32){c=1<>>32-f}n=l;l=c;f=n-1|0;c=c-!n|0;s=c;c=h+w|0;o=e+u|0;c=o>>>0>>0?c+1|0:c;c=Ezb(o,c,e,h);o=c;h=c+f|0;c=(c>>31)+s|0;c=h>>>0>>0?c+1|0:c;e=i&31;if((i&63)>>>0>=32)h=c>>e;else h=((1<>>e;e=d;c=d>>31;d=d+f|0;c=c+s|0;c=d>>>0>>0?c+1|0:c;e=d;d=i&31;if((i&63)>>>0>=32)c=c>>d;else c=((1<>>d;c=h-c|0;if((c|0)<0){J[j+4>>2]=c;J[j>>2]=p;Hc(b,1,2358057,j);c=0;break b}J[a+8>>2]=c;c=m+x|0;d=k+v|0;c=d>>>0>>0?c+1|0:c;c=Ezb(d,c,k,m);d=f;f=c;d=d+c|0;c=(c>>31)+s|0;c=d>>>0>>0?c+1|0:c;f=d;d=i&31;if((i&63)>>>0>=32)f=c>>d;else f=((1<>>d;e=g;c=e>>31;d=e+n|0;c=c+l|0;g=d-1|0;d=(d>>>0>>0?c+1|0:c)-!d|0;c=i&31;if((i&63)>>>0>=32)c=d>>c;else c=((1<>>c;c=f-c|0;if((c|0)<0){J[j+20>>2]=c;J[j+16>>2]=p;Hc(b,1,2358126,j+16|0);c=0;break b}J[a+12>>2]=c;a=a+52|0;c= -1;p=p+1|0;if((t|0)!=(p|0))continue;break}break b}Hc(b,1,2358006,0);break b}break a}bc=j+32|0;return c}fa(2351841,2351843,162,2351917);B()}function gY(a){a=a|0;var b=0,c=0,d=0,e=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;Gc(J[a+160>>2]);J[a+200>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;c=J[a+204>>2];b=J[c+8>>2];if((b|0)>0)while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){qc(e);b=J[c+8>>2]}d=d+ -1|0;if((d|0)<(b|0))continue;break}qc(dd(c));d=0;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)a:{J[a+204>>2]=c;c=J[a+208>>2];b=J[c+8>>2];if((b|0)>0)while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){b=J[e+8>>2];if(b)qc(Rc(b));qc(e);b=J[c+8>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}qc(dd(c));d=0;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+208>>2]=c;c=J[a+212>>2];b=J[c+8>>2];if((b|0)>0)while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){qc(e);b=J[c+8>>2]}d=d+ -1|0;if((d|0)<(b|0))continue;break}qc(dd(c));d=0;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+212>>2]=c;c=J[a+216>>2];b=J[c+8>>2];if((b|0)>0)while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){b=J[e+32>>2];if(b)qc(Rc(b));qc(e);b=J[c+8>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}qc(dd(c));b=rc(16);J[695492]=0;d=$(3185,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+216>>2]=d;c=J[a+220>>2];if(c){b=J[c+8>>2];if((b|0)>0){d=0;while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){qc(Lq(e)); -b=J[c+8>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}}qc(dd(c));J[a+220>>2]=0}J[a+224>>2]=0;J[a+228>>2]=0;J[a+240>>2]=0;J[a+244>>2]=0;J[a+232>>2]=0;J[a+236>>2]=0;return}a=Z()|0;qc(b);ba(a|0);B()}function Ct(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(!a|!b|(J[a+4>>2]==18|(a|0)==(b|0)))break a;if(J[b+4>>2]==18)break a;zj(b);b:{c:switch(J[b+4>>2]-2|0){case 1:if(J[a+4>>2]==3){f=J[b+40>>2];if(f){if(K[f|0]){c=f;while(1){d=d+1|0;e=K[c+1|0];c=c+1|0;if(e)continue;break}}wB(a,f,d)}gl(b);return a}c=J[a+24>>2];if(!c|J[c+ -4>>2]!=3|J[a+8>>2]!=J[c+8>>2])break b;f=vp($e(J[b+40>>2]),J[J[a+24>>2]+40>>2]);e=J[a+24>>2];d:{if(!e)break d;c=J[e+4>>2];if(c>>>0>11)break d;c=1<>2];if(c)jm(c);c=yB(J[e+32>>2],f);J[e+12>>2]=c;e:{f:{if(c){d=J[c+24>>2];if(d)break f;break e}J[e+16>>2]=0;break d}while(1){J[c+20>>2]=e;c=d;d=J[c+24>>2];if(d)continue;break}}J[c+20>>2]=e;J[e+16>>2]=c;break d}g=J[e+40>>2];g:{if(!g|(g|0)==(e+44|0))break g;c=J[e+32>>2];h:{if(!c)break h;d=J[c+80>>2];if(!d)break h; -while(1){c=J[d+16>>2];if(c)while(1){if(g>>>0<=M[c+4>>2]&g>>>0>=c+20>>>0)break g;c=J[c>>2];if(c)continue;break}d=J[d+20>>2];if(d)continue;break}}gc[J[659451]](g)}c=J[e+12>>2];if(c)jm(c);J[e+12>>2]=0;J[e+16>>2]=0;i:{if(!f){c=0;break i}c=f;while(1){d=c;c=c+1|0;if(K[d|0])continue;break}c=0;d=d-f|0;if((d|0)<0)break i;g=gc[J[659450]](d+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break i}c=tc(g,f,d);H[d+c|0]=0}J[e+44>>2]=0;J[e+48>>2]=0;J[e+40>>2]=c}gc[J[659451]](f);gl(b);return J[a+24>>2];case 0:break c; -default:break b}return b0(a,a,b)}c=J[a+32>>2];if((c|0)!=J[b+32>>2])im(b,c);c=J[a+20>>2];J[b+28>>2]=a;J[b+20>>2]=c;J[b+24>>2]=J[a+24>>2];J[a+24>>2]=b;f=J[b+24>>2];if(f)J[f+28>>2]=b;if(!(!c|J[c+16>>2]!=(a|0)))J[c+16>>2]=b;c=b}return c}function rha(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;k=bc-16|0;bc=k;a:{b:{c:{d:{if(!d){j=J[a+584>>2];if(!j)break d;g=(c|0)/J[j+8>>2]|0;i=b;if(J[j>>2]!=1){if(J[j+16>>2]<(g|0))break c;i=J[j+12>>2]}d=0;Hg(i,0,g<<1);e=J[a+608>>2];c=J[a+604>>2]; -e:{if((g|0)>0){f:{g:{if((e|0)<=0)break g;while(1){h=H[c|0];f=h&255;h:{if((h|0)>=0){c=c+1|0;e=e-1|0;if(e)while(1){if(!f|(d|0)>=(g|0))break h;f=f-1|0;h=(d<<1)+i|0;I[h>>1]=L[h>>1]|K[c|0]<<8;c=c+1|0;d=d+1|0;e=e-1|0;if(e)continue;break}f=0;e=0;if((d|0)==(g|0))break f;break b}e=e-2|0;h=c+2|0;f=f-126|0;i:{if(!f|(d|0)>=(g|0))break i;c=K[c+1|0]<<8;while(1){l=(d<<1)+i|0;I[l>>1]=c|L[l>>1];d=d+1|0;f=f-1|0;if(!f)break i;if((d|0)<(g|0))continue;break}}c=h}if((d|0)>=(g|0))break g;if((e|0)>0)continue;break}}if((d| -0)!=(g|0))break b;f=0;if((e|0)<=0)break f;while(1){h=H[c|0];d=h&255;j:{if((h|0)>=0){c=c+1|0;e=e-1|0;if(!e){e=0;break f}while(1){if(!d|(f|0)>=(g|0))break j;d=d-1|0;h=(f<<1)+i|0;I[h>>1]=L[h>>1]|K[c|0];c=c+1|0;f=f+1|0;e=e-1|0;if(e)continue;break}e=0;break f}e=e-2|0;h=c+2|0;d=d-126|0;k:{if(!d|(f|0)>=(g|0))break k;c=K[c+1|0];while(1){l=(f<<1)+i|0;I[l>>1]=c|L[l>>1];f=f+1|0;d=d-1|0;if(!d)break k;if((f|0)<(g|0))continue;break}}c=h}if((f|0)>=(g|0))break f;if((e|0)>0)continue;break}}d=f;if((g|0)==(d|0))break e; -break b}if(g)break b}gc[J[j+20>>2]](j,b,g);b=1;break a}fa(76906,70356,193,93856);B()}fa(74413,70356,194,93856);B()}fa(77124,70356,201,93856);B()}b=J[a>>2];f=J[a+628>>2];i=J[a+472>>2];J[k+4>>2]=g-d;J[k>>2]=i;Nc(f,b,79691,k);b=0}J[a+608>>2]=e;J[a+604>>2]=c;bc=k+16|0;return b|0}function V8a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=c+d|0;if(J[b>>2]?M[b+12>>2]>>0|i>>>0>M[b+4>>2]:1){d=J[a>>2];J[d+20>>2]=23;gc[J[d>>2]](a)}d=J[b+24>>2];a:{if(d>>>0<=c>>>0&d+J[b+16>>2]>>> -0>=i>>>0)break a;if(!J[b+40>>2]){d=J[a>>2];J[d+20>>2]=71;gc[J[d>>2]](a)}if(J[b+36>>2]){g=J[b+16>>2];b:{if((g|0)<=0)break b;l=b+48|0;j=J[b+8>>2];h=P(j,J[b+24>>2]);f=J[b+20>>2];d=0;while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break b;f=P(f,j);gc[J[b+52>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}J[b+36>>2]=0}d=0;g=J[b+16>>2];h=i-g|0;h=M[b+24>>2]>> -0?c:(h|0)>0?h:0;J[b+24>>2]=h;if((g|0)<=0)break a;l=b+48|0;j=J[b+8>>2];h=P(j,h);f=J[b+20>>2];while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break a;f=P(f,j);gc[J[b+48>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}d=J[b+28>>2];c:{d:{e:{if(i>>>0<=d>>>0)break e;f:{g:{h:{i:{if(c>>>0>d>>>0){if(!e)break i;d=J[a>>2];J[d+20>>2]=23;gc[J[d>>2]](a);d=c;break g}if(e)break g; -break h}d=c}if(J[b+32>>2])break f;d=J[a>>2];J[d+20>>2]=23;gc[J[d>>2]](a);break c}J[b+28>>2]=i;if(!J[b+32>>2])break d}a=J[b+24>>2];d=d-a|0;a=i-a|0;if(d>>>0>=a>>>0)break e;h=J[b+8>>2];while(1){Le(J[J[b>>2]+(d<<2)>>2],h);d=d+1|0;if((a|0)!=(d|0))continue;break}}if(!e)break c}J[b+36>>2]=1}return J[b>>2]+(c-J[b+24>>2]<<2)|0}function kya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;c=bc-16|0;bc=c;f=e+12|0;On(f);J[695492]=0;J[c+12>>2]=0;d=c+12|0;aa(4985,d|0,a|0)|0;a=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((a| -0)!=1){J[695492]=0;da(5341,d|0,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;a=J[c+12>>2];J[c+12>>2]=0;f:{if(!a)break f;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[695492];J[695492]=0;if((g|0)==1)break e;if(d)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break e}a=J[f>>2];d=J[J[a>>2]+16>>2];J[695492]=0;d=$(d|0,a|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;g:{if(!d){J[695492]=0;aa(4985,f|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break g;break c}d=J[J[a>>2]+20>>2];J[695492]= -0;ha(d|0,a|0,0,0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c}bc=c+16|0;break a}a=Z()|0;break b}ea(0)|0;yc();B()}a=Z()|0;vc(c+12|0);break b}a=Z()|0}vc(f);ba(a|0);B()}h:{i:{a=J[e+12>>2];j:{if(!a)break j;c=J[J[a>>2]+20>>2];J[695492]=0;ha(c|0,a|0,0,0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i;a=J[J[b>>2]+16>>2];J[695492]=0;a=$(a|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;if(a){a=J[J[b>>2]+12>>2];J[695492]=0;ga(a|0,b|0,2378639,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i}J[695492]= -0;ga(5165,b|0,J[e+12>>2],0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break i;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break j;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break h;if(b)break j;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break h}bc=e+16|0;return}a=Z()|0;vc(e+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function dr(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;a:{if(!a)break a;c=-1;b:{c:switch(b+1|0){case 0:Wj(a,31,33133,0);break a;case 1:J[a+256>>2]=1;break a; -case 2:J[a+256>>2]=1;b=J[a+36>>2];if(!b)break a;a=J[b+16>>2];if(K[a|0]!=239|K[a+1|0]!=187|K[a+2|0]!=191)break a;J[b+16>>2]=a+3;break a;case 3:case 4:c=90;f=J[a+36>>2];if(!f)break b;d=J[f+16>>2];if(!d|K[d|0]!=239|(K[d+1|0]!=187|K[d+2|0]!=191))break b;J[f+16>>2]=d+3;break b;case 10:c=90;break b;case 5:case 6:case 8:case 9:c=180;break b;case 7:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:break c;default:break b}c=45}d=WJ(b);if(!d){d:switch(b- -4|0){case 18:J[a+256>>2]=1;break a;case 0:Wj(a,32,32672,7332);break a;case 1:Wj(a,32,32672,7316);break a;case 2:Wj(a,32,32672,21804);break a;case 3:Wj(a,32,32672,24374);break a;case 4:Wj(a,32,32672,24732);break a;case 5:Wj(a,32,32672,24658);break a;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:e:{if(J[a+24>>2]|J[a+40>>2]!=1)break e;c=J[a+36>>2];if(!c)break e;c=J[c+44>>2];if(!c)break e;g=a,h=$e(c),J[g+24>>2]=h}J[a+256>>2]=b;break a;case 15:Wj(a,32,32672,20916);break a;case 16:Wj(a, -32,32672,20763);break a;case 17:break d;default:break a}Wj(a,32,32672,20909);break a}J[a+256>>2]=1;b=J[a+36>>2];f:{if(!b){if(J[a+172>>2]==-1?J[a+212>>2]:0)break f;J[a+84>>2]=1;J[e>>2]=0;Cc(0,0,0,a,0,1,1,3,0,0,0,0,30787,e);J[a+12>>2]=0;if(J[a+288>>2])break f;J[a+212>>2]=1;break f}b=JJ(a,b,d,c);J[a+256>>2]=1;if((b|0)<0)break f;if(J[a+84>>2]!=6003)break a}__(a);J[a+84>>2]=6003}bc=e+16|0}function cE(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{c:{d:{e:{f=J[a+8>>2];if((f|0)<=0){if(!f)break e;break b}if(f>>> -0>31)break d;break c}f=7;if(K[a+4|0]==255)break c;break b}fa(204019,202110,198,212097);B()}j=f;while(1){f:{if(H[a+16|0]&1){g=J[a+8>>2];d=g-1|0;J[a+8>>2]=d;if((g|0)>0){g=J[a+4>>2]>>>d&1;break f}g=Bg(a);if((g|0)>=0)break f;return-1}break a}i=i<<1|g;g=j>>>0>1;j=j-1|0;if(g)continue;break}g=f;if((i|0)>=0)break b;return-1}f=J[a+4>>2];g:{if((f&255)==255){if(!(H[a+16|0]&1))break a;j=-1;e=J[a+8>>2];d=e-1|0;J[a+8>>2]=d;h:{if((e|0)>0){f=f>>>d&1;break h}f=Bg(a);if((f|0)<0)break g;if(!(H[a+16|0]&1))break a;d= -J[a+8>>2]}e=d-1|0;J[a+8>>2]=e;i:{if((d|0)<=0){d=Bg(a);if((d|0)<0)break g;if(!(H[a+16|0]&1))break a;break i}d=J[a+4>>2]>>>e&1}e=J[a+8>>2];h=e-1|0;J[a+8>>2]=h;j:{if((e|0)<=0){e=Bg(a);if((e|0)<0)break g;if(!(H[a+16|0]&1))break a;f=e|(f<<2|d<<1);break j}f=J[a+4>>2]>>>h&1|(f<<2|d<<1)}d=J[a+8>>2];e=d-1|0;J[a+8>>2]=e;k:{if((d|0)<=0){d=Bg(a);if((d|0)<0)break g;if(!(H[a+16|0]&1))break a;break k}d=J[a+4>>2]>>>e&1}e=J[a+8>>2];h=e-1|0;J[a+8>>2]=h;l:{if((e|0)<=0){e=Bg(a);if((e|0)<0)break g;if(!(H[a+16|0]&1))break a; -f=e|(f<<2|d<<1);break l}f=J[a+4>>2]>>>h&1|(f<<2|d<<1)}d=J[a+8>>2];e=d-1|0;J[a+8>>2]=e;m:{if((d|0)<=0){d=Bg(a);if((d|0)<0)break g;if(H[a+16|0]&1)break m;break a}d=J[a+4>>2]>>>e&1}e=J[a+8>>2];h=e-1|0;J[a+8>>2]=h;n:{if((e|0)<=0){a=Bg(a);if((a|0)>=0)break n;break g}a=J[a+4>>2]>>>h&1}i=f<<2|d<<1|a|i<<7;g=g+7|0}o:{if((g|0)>=8){i=i>>g-7;break o}a=7-g|0;b=b>>a;c=c>>a}j=((c^i^-1)&b)!=(b|0)}return j}fa(202772,202110,203,212097);B()}function Yv(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=bc-96|0;bc=d;J[d+24>>2]=528734635; -J[d+28>>2]=1541459225;J[d+16>>2]=1359893119;J[d+20>>2]=-1694144372;J[d+8>>2]=1013904242;J[d+12>>2]=-1521486534;J[d>>2]=1779033703;J[d+4>>2]=-1150833019;e=64;if((b|0)>=64)while(1){vI(a+f|0,d);g=e;f=e;e=e- -64|0;if((e|0)<=(b|0))continue;break}e=b-g|0;a:{b:{if((e|0)<=0){H[e+(d+32|0)|0]=128;f=e+1|0;break b}h=d+32|0;tc(h,a+g|0,e);H[e+h|0]=128;f=e+1|0;if(e>>>0>=56){if(e>>>0<=62)wc(f+h|0,0,(g|63)-b|0);vI(d+32|0,d);f=0;break b}if((e|0)==55)break a}wc((d+32|0)+f|0,0,56-f|0)}J[d+88>>2]=0;H[d+95|0]=b<<3;H[d+ -94|0]=b>>>5;H[d+93|0]=b>>>13;H[d+92|0]=b>>>21;vI(d+32|0,d);a=J[d>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c|0]=a;H[c+1|0]=a>>>8;H[c+2|0]=a>>>16;H[c+3|0]=a>>>24;a=J[d+4>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+4|0]=a;H[c+5|0]=a>>>8;H[c+6|0]=a>>>16;H[c+7|0]=a>>>24;a=J[d+8>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+8|0]=a;H[c+9|0]=a>>>8;H[c+10|0]=a>>>16;H[c+11|0]=a>>>24;a=J[d+12>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+12|0]=a;H[c+13|0]=a>>>8;H[c+14|0]=a>>>16;H[c+15|0]= -a>>>24;a=J[d+16>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+16|0]=a;H[c+17|0]=a>>>8;H[c+18|0]=a>>>16;H[c+19|0]=a>>>24;a=J[d+20>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+20|0]=a;H[c+21|0]=a>>>8;H[c+22|0]=a>>>16;H[c+23|0]=a>>>24;a=J[d+24>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+24|0]=a;H[c+25|0]=a>>>8;H[c+26|0]=a>>>16;H[c+27|0]=a>>>24;a=J[d+28>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+28|0]=a;H[c+29|0]=a>>>8;H[c+30|0]=a>>>16;H[c+31|0]=a>>>24;bc=d+96|0}function w$(a){var b= -0,c=0,d=0,e=0;Ud(a);a:{c=J[a+36>>2];b=J[c+16>>2];b:{c:{if(K[b|0]!=101|K[b+1|0]!=110|(K[b+2|0]!=99|K[b+3|0]!=111))break c;if(K[b+4|0]!=100|K[b+5|0]!=105|(K[b+6|0]!=110|K[b+7|0]!=103))break c;J[a+200>>2]=J[a+200>>2]+8;J[c+16>>2]=b+8;J[c+32>>2]=J[c+32>>2]+8;b=K[b+8|0];if((b|0)==37){Od(a);c=J[a+36>>2];b=K[J[c+16>>2]]}d:{if(b&255)break d;if((Cd(c)|0)>0)break d;ze(a)}Ud(a);if(K[J[J[a+36>>2]+16>>2]]!=61){Pe(a,75,0);return 0}Qd(a);Ud(a);e:{f:{g:{h:{i:switch(K[J[J[a+36>>2]+16>>2]]-34|0){case 0:Qd(a);d=o$(a); -if(K[J[J[a+36>>2]+16>>2]]==34)break h;Pe(a,34,0);gc[J[659451]](d);return 0;case 5:break i;default:break g}Qd(a);d=o$(a);if(K[J[J[a+36>>2]+16>>2]]!=39)break a}Qd(a);if(K[a+362|0]&32)break f;if(!d)break c;if(FB(d,22625))if(FB(d,22619))break e;c=J[a+24>>2];j:{if(!c){b=J[J[a+36>>2]>>2];if(!b|J[b+12>>2])break j;fe(a,81,30891);c=J[a+24>>2];if(!c)break j}gc[J[659451]](c)}J[a+24>>2]=d;return d}Pe(a,33,0);if(!(K[a+362|0]&32))break b}gc[J[659451]](d);break c}k:{if(FB(d,22390))if(FB(d,22323))break k;b=J[a+24>> -2];if(b)gc[J[659451]](b);J[a+24>>2]=d;return d}b=J[a+36>>2];c=J[b+44>>2];if(c){gc[J[659451]](c);b=J[a+36>>2]}J[b+44>>2]=d;b=kg(d);if(b){c=bc-16|0;bc=c;l:{if(!b){b=-1;break l}e=J[a+36>>2];m:{if(e){b=JJ(a,e,b,-1);e=a+256|0;break m}if(J[a+212>>2]){b=-1;if(J[a+172>>2]==-1)break l}J[a+84>>2]=1;J[c>>2]=0;Cc(0,0,0,a,0,1,1,3,0,0,0,0,30787,c);J[a+12>>2]=0;b=-1;if(J[a+288>>2])break l;e=a+212|0}J[e>>2]=1}bc=c+16|0;if((b|0)>=0)break b;J[a+84>>2]=32;break c}Nf(a,32,32445,d)}d=0}return d}Pe(a,34,0);gc[J[659451]](d); -return 0}function U1a(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;d=bc-32|0;bc=d;e=J[a+464>>2];a:{b:{if(J[e+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[e+12>>2]/8|0);J[e+12>>2]=0;i=0;if(!(gc[J[c+8>>2]](a)|0))break a;if(J[a+336>>2]>0){c=0;while(1){J[((c<<2)+e|0)+20>>2]=0;c=c+1|0;if((c|0)>2])continue;break}}J[e+16>>2]=0;J[e+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[e+36>>2]=0}if(!J[e+36>>2]){c=J[e+16>>2];c:{if(c){f=c-1|0;break c}m=J[a+428>> -2];n=J[a+420>>2];l=J[a+412>>2];J[d+28>>2]=a;c=J[a+24>>2];J[d+12>>2]=J[c>>2];J[d+16>>2]=J[c+4>>2];c=J[e+12>>2];g=J[e+8>>2];k=J[a+408>>2];f=0;d:{if((l|0)<(k|0))break d;f=J[e+60>>2];o=J[b>>2];while(1){e:{f:{g:{if((c|0)>7)break g;b=d+12|0;i=0;if(!Fg(b,g,c,0))break a;g=J[d+20>>2];c=J[d+24>>2];if((c|0)>7)break g;b=wi(b,g,c,f,1);break f}b=g>>c-8&255;h=J[((b<<2)+f|0)+144>>2];if(h){b=K[(b+f|0)+1168|0];c=c-h|0;break e}b=wi(d+12|0,g,c,f,9)}i=0;if((b|0)<0)break a;g=J[d+20>>2];c=J[d+24>>2]}h=b>>>4|0;h:{j=b&15; -if(j){if((c|0)<(j|0)){i=0;if(!Fg(d+12|0,g,c,j))break a;g=J[d+20>>2];c=J[d+24>>2]}b=h+k|0;h=j<<2;k=J[h+55904>>2];c=c-j|0;j=k&g>>c;I[(J[(b<<2)+m>>2]<<1)+o>>1]=j-((j|0)<=J[h+55900>>2]?k:0)<>>0>=16){if((c|0)<(h|0)){i=0;if(!Fg(d+12|0,g,c,h))break a;g=J[d+20>>2];c=J[d+24>>2]}c=c-h|0;f=f+(J[(h<<2)+55904>>2]&g>>c)|0}f=f-1|0;break d}k=b+1|0;if((b|0)<(l|0))continue;break}f=0}a=J[a+24>>2];J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+16>>2];J[e+12>>2]=c;J[e+8>>2]=g}J[e+ -16>>2]=f}J[e+40>>2]=J[e+40>>2]-1;i=1}bc=d+32|0;return i|0}function DB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=bc-48|0;bc=g;e=-1;a:{if(J[a+28>>2]|!a)break a;b:{f=J[a+16>>2];if(!(!f|J[f+32>>2])){d=J[f+24>>2];c=J[f+8>>2];if(!((d|0)==(c|0)|c>>>0>2147483646)){J[f+24>>2]=c;d=c}h=d;d=J[f+20>>2];c=J[f+4>>2];if(!((d|0)==(c|0)|c>>>0>2147483646)){J[f+20>>2]=c;d=c}if((h|0)!=(d|0))break b}J[g>>2]=0;Cc(0,0,0,0,0,8,1548,2,0,0,0,0,9732,g);J[a+28>>2]=1548;break a}c=(b|0)<4001?(b|0)!=4?4E3:b:b;b=ZJ(f,c+1|0);if(!(!J[f+ -32>>2]&(b|0)>=0)){J[g+16>>2]=5381;Cc(0,0,0,0,0,8,2,3,5381,0,0,0,32863,g+16|0);J[a+28>>2]=2;break a}b=0;d=J[a+16>>2];if(!(!d|J[d+32>>2])){b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;e=J[d+20>>2];b=J[d+4>>2];if((e|0)==(b|0)|b>>>0>2147483646)b=e;else J[d+20>>2]=b;b=b+J[d>>2]|0}e=J[a+4>>2];if(e){c:{c=gc[e|0](J[a>>2],b,c)|0;if((c|0)>0)break c;J[a+4>>2]=3125;if((c|0)>=0)break c;e=-1;break a}if(J[a+12>>2]){d=J[a+20>>2];if(!d){d=_J();J[a+20>>2]=d}e=-1;if(Aj(d,b,c))break a;d=ui(J[a+20>> -2]);b=MB(a,1);if((b|0)<0){TJ(1544,4972,0);J[a+28>>2]=1544;break a}i=a,j=(d-ui(J[a+20>>2])|0)+J[a+32>>2]|0,J[i+32>>2]=j;e=b;break a}e=c;c=J[a+16>>2];d:{if(!c|J[c+32>>2])break d;a=J[c+24>>2];b=J[c+8>>2];if(!((a|0)==(b|0)|b>>>0>2147483646)){J[c+24>>2]=b;a=b}b=J[c+20>>2];d=J[c+4>>2];if(!((b|0)==(d|0)|d>>>0>2147483646)){J[c+20>>2]=d;b=d}if(a-b>>>0>>0)break d;b=b+e|0;J[c+20>>2]=b;J[c+8>>2]=a>>>0>=2147483647?2147483647:a;J[c+4>>2]=b>>>0>=2147483647?2147483647:b;if(a>>>0<=b>>>0)break d;H[b+J[c>>2]|0]= -0}break a}J[g+32>>2]=0;Cc(0,0,0,0,0,8,1547,2,0,0,0,0,2008,g+32|0);J[a+28>>2]=1547;e=-1}bc=g+48|0;return e}function mN(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{if(K[a+498|0])break b;c:{d:{if(!J[a+440>>2]|J[a+12>>2]!=2)break d;switch(K[a+1112|0]-1|0){case 0:case 2:break c;default:break d}}J[a+1116>>2]=J[a+1144>>2];break b}if(Nx(a))break a}if(K[a+497|0])break a;e:{f:{if(!J[a+440>>2]){g:switch(J[a+12>>2]-1|0){case 0:case 2:H[a+477|0]=1;break e;default:break g}d=Eo(a);J[a+440>>2]=J[a+440>> -2]+1;break f}if(K[a+1112|0]!=3)break e;d=Eo(a)}if(d)break a}d=J[(K[a+288|0]?2248:512)+a>>2];if(!d)d=J[a+528>>2];h=J[d+36>>2];f=(h|0)>0?h:0;J[a+672>>2]=f;i=J[d+40>>2];g=(i|0)>0?i:0;J[a+680>>2]=g;h:{i:{k=J[d+88>>2];j=J[k+36>>2];if(!j)break i;b=J[k+40>>2];if(!b)break i;e=J[a+16>>2];c=h+j|0;e=(c|0)>(e|0)?e:c;J[a+676>>2]=e;c=J[a+20>>2];b=b+i|0;b=(c|0)<(b|0)?c:b;break h}b=J[a+16>>2];e=J[a+316>>2];e=(b|0)<(e|0)?b:e;J[a+676>>2]=e;b=J[a+20>>2];c=J[a+320>>2];b=(c|0)>(b|0)?b:c}J[a+684>>2]=b;if(K[a+1124|0]){c= -J[a+1128>>2];f=(c|0)<(f|0)?f:c;J[a+672>>2]=f;c=J[a+1136>>2];g=(c|0)<(g|0)?g:c;J[a+680>>2]=g;c=J[a+1132>>2];e=(c|0)>(e|0)?e:c;J[a+676>>2]=e;c=J[a+1140>>2];b=(c|0)>(b|0)?b:c;J[a+684>>2]=b}if(K[d+44|0]){c=J[d+48>>2];f=(c|0)<(f|0)?f:c;J[a+672>>2]=f;c=J[d+56>>2];g=(c|0)<(g|0)?g:c;J[a+680>>2]=g;c=J[d+52>>2];e=(c|0)>(e|0)?e:c;J[a+676>>2]=e;d=J[d+60>>2];b=(d|0)>(b|0)?b:d;J[a+684>>2]=b}d=g-i|0;d=(d|0)>0?d:0;J[a+664>>2]=d;h=f-h|0;h=(h|0)>0?h:0;J[a+656>>2]=h;j:{k:{if(!j)break k;i=J[k+40>>2];if(!i)break k;f= -(h-f|0)+e|0;J[a+660>>2]=(f|0)>(j|0)?j:f;b=(d-g|0)+b|0;b=(b|0)>(i|0)?i:b;break j}J[a+660>>2]=(h-f|0)+e;b=(d-g|0)+b|0}J[a+668>>2]=b;J[a+440>>2]=J[a+440>>2]+1}}function Iqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(e){n=e-2|0;while(1){a=L[f>>1];I[g>>1]=a;g=g+2|0;f=f+2|0;a:{if(l>>>0>n>>>0)break a;j=l?(l|0)==(n|0)?d:b:c;if(!((e|0)!=1|l)){if(j>>>0<2)break a;h=j-1|0;i=h&7;if(j-2>>>0>=7){j=h&-8;h=0;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]= -a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){I[g>>1]=a;g=g+2|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}if((a|0)==L[f>>1]){if(j>>>0<2)break a;h=j-1|0;i=h&7;if(j-2>>>0>=7){j=h&-8;h=0;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){I[g>>1]=a;g=g+2|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h= -j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;k=i-1|0;m=k&7;if(i-2>>>0>=7){k=k&-8;i=0;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;i=i+8|0;if((k|0)!=(i|0))continue;break}}i=0;if(!m)break b;while(1){I[g>>1]=a;g=g+2|0;i=i+1|0;if((m|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;m=j+(h^-1)|0;a=L[f>>1];i=0;k=j-h&7;if(k)while(1){I[g>>1]=a;h=h+1|0;g=g+2|0;i=i+1|0;if((k|0)!=(i|0))continue;break}if(m>>>0<7)break a;while(1){I[g+14>> -1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function GN(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;m=bc-128|0;bc=m;a:{b:{if(b){if((c|0)<0)break b;h=m;if(!J[b>>2]){g=b;break a}g=b;while(1){J[h>>2]=g;h=h+4|0;g=J[g>>2];if(J[g>>2])continue;break}break a}fa(201315,198839,278,212486);B()}fa(202167,198839,279,212486);B()}c:{d:{e:{while(1){a=J[g+8>>2];if((e| -0)>(a|0)){J[g+8>>2]=e;a=e}f:{if((a|0)>=(c|0))break f;while(1){if(J[g+4>>2]<=(a|0)){if(J[g+12>>2])break f;if(!(K[d+16|0]&2))break d;e=J[d+8>>2];f=e-1|0;J[d+8>>2]=f;g:{if((e|0)<=0){j=J[d+4>>2];i=j<<8&65280;e=(i|0)==65280?6:7;J[d+8>>2]=e;J[d+4>>2]=i|1<>2];k=J[e+8>>2];if(k&7)break e;l=J[e+64>>2];if(!((l|0)<0|(l|0)>J[e+60>>2])){J[e+8>>2]=k|4;break e}J[e+4>>2]=J[e+4>>2]|32;f=J[e+28>>2];J[e+28>>2]=f-1;if((f|0)>0){J[e+60>>2]=J[e+60>>2]+1;f=e;e=J[e+24>>2];J[f+24>>2]=e+1;H[e|0]=j;J[g+12>>2]= -1;break f}f=-1;if((Uc(e,i>>>8|0)|0)!=-1)break g;break e}J[d+4>>2]=J[d+4>>2]|1<>2]=1;break f}if(!(K[d+16|0]&2))break c;e=J[d+8>>2];J[d+8>>2]=e-1;h:{if((e|0)>0)break h;j=J[d+4>>2];i=j<<8&65280;J[d+4>>2]=i;J[d+8>>2]=(i|0)==65280?6:7;f=-1;e=J[d+12>>2];k=J[e+8>>2];if(k&7)break e;l=J[e+64>>2];if(!((l|0)<0|(l|0)>J[e+60>>2])){J[e+8>>2]=k|4;break e}J[e+4>>2]=J[e+4>>2]|32;f=J[e+28>>2];J[e+28>>2]=f-1;if((f|0)>0){J[e+60>>2]=J[e+60>>2]+1;f=e;e=J[e+24>>2];J[f+24>>2]=e+1;H[e|0]=j;break h}f=-1;if((Uc(e, -i>>>8|0)|0)==-1)break e}a=a+1|0;if((c|0)!=(a|0))continue;break}a=c}J[g+8>>2]=a;if((h|0)!=(m|0)){h=h-4|0;g=J[h>>2];e=a;continue}break}f=J[b+8>>2]<(c|0)}bc=m+128|0;return f}fa(202729,198839,302,212486);B()}fa(202729,198839,309,212486);B()}function MD(a){var b=0,c=0,d=0;a:{b:{c:{if(K[a+432|0]){d:{if(!K[a+496|0]|!K[a+304|0])break d;c=J[a+520>>2];if(!c)break d;J[a+524>>2]=J[a+524>>2]+1;e:switch(K[c+28|0]-1|0){case 0:b=J[c+32>>2];d=J[a+1116>>2];f:{if(b>>>0<=d>>>0){if(d)break f;b=1}J[a+1116>>2]=b}b=Nx(a); -if(b)break b;if(!K[a+497|0]){b=OD(a);if(b)break b}H[a+498|0]=10;break d;case 1:b=Lx(a);if(b)break b;g:{b=J[a+208>>2];if(!b)break g;if(gc[b|0](a,J[a+524>>2],0)|0)break g;break a}J[a+508>>2]=0;H[a+504|0]=1;J[a+516>>2]=c;b=J[c+32>>2];d=J[a+1116>>2];if(b>>>0>d>>>0){J[a+1116>>2]=b;break d}if(d)break d;J[a+1116>>2]=1;break d;case 2:break e;default:break d}d=J[c+36>>2];b=d-1|0;if(b>>>0<=2147483645)J[c+36>>2]=b;else b=d;if(b){b=Lx(a);if(b)break b;h:{b=J[a+208>>2];if(!b)break h;if(gc[b|0](a,J[a+524>>2],J[c+ -36>>2])|0)break h;break a}J[a+516>>2]=c;b=J[c+32>>2];if(!b)break d;if(b>>>0>M[a+1116>>2])J[a+1116>>2]=b;H[a+502|0]=1;break d}i:switch(K[c+29|0]-1|0){case 0:b=J[c+32>>2];d=J[a+1116>>2];j:{if(b>>>0<=d>>>0){if(d)break j;b=1}J[a+1116>>2]=b}b=Nx(a);if(b)break b;if(!K[a+497|0]){b=OD(a);if(b)break b}H[a+498|0]=10;break d;case 1:break i;default:break d}b=Lx(a);if(b)break b;k:{b=J[a+208>>2];if(!b)break k;if(gc[b|0](a,J[a+524>>2],0)|0)break k;break a}J[a+508>>2]=0;H[a+504|0]=1;J[a+516>>2]=c;b=J[c+32>>2];d= -J[a+1116>>2];if(b>>>0>d>>>0){J[a+1116>>2]=b;break d}if(d)break d;J[a+1116>>2]=1}if(K[a+432|0])break c}if(!K[a+344|0])break c;b=J[a+208>>2];if(!b)break c;if(gc[b|0](a,0,0)|0)break c;break a}b=0;if(J[a+516>>2])break b;H[a+502|0]=1}return b}Dc(a,904,0,0);return 904}function YW(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;a:{b:{c:{if(c){if(J[a+8>>2]==16)h=J[a+156>>2]+P(J[a+192>>2],5644)|0;else h=J[a+12>>2];if(M[J[a+72>>2]+16>>2]<=b>>>0)break c;if(M[d>>2]<=4){a=0;Hc(e,1,2354168,0);break a}i=J[h+5584>> -2];h=i+P(b,1080)|0;ld(c,h+4|0,1);f=J[h+4>>2]+1|0;J[h+4>>2]=f;if(f>>>0>=34){J[g+4>>2]=33;J[g>>2]=f;Hc(e,1,2354203,g);a=0;break a}j=J[a+160>>2];if(j>>>0>=f>>>0){J[g+24>>2]=f;J[g+20>>2]=j;J[g+16>>2]=b;Hc(e,1,2354280,g+16|0);J[a+8>>2]=J[a+8>>2]|32768;a=0;break a}a=i+P(b,1080)|0;ld(c+1|0,a+8|0,1);J[a+8>>2]=J[a+8>>2]+2;ld(c+2|0,a+12|0,1);f=J[a+12>>2]+2|0;J[a+12>>2]=f;a=J[a+8>>2];if(!(!(a>>>0>10|f>>>0>10)&a+f>>>0<13)){a=0;Hc(e,1,2354458,0);break a}a=i+P(b,1080)|0;ld(c+3|0,a+16|0,1);if(K[a+16|0]&192){a=0; -Hc(e,1,2354526,0);break a}ld(c+4|0,a+20|0,1);if(M[a+20>>2]>=2){a=0;Hc(e,1,2354593,0);break a}f=J[d>>2]-5|0;J[d>>2]=f;a=1;j=J[h+4>>2];if(!(H[h|0]&1)){if(!j)break a;c=0;b=i+P(b,1080)|0;while(1){a=b+(c<<2)|0;J[a+944>>2]=15;J[a+812>>2]=15;a=1;c=c+1|0;if(c>>>0>2])continue;break}break a}if(f>>>0>>0)break b;d:{if(!j){b=0;break d}ld(c+5|0,g+28|0,1);i=i+P(b,1080)|0;a=J[g+28>>2];J[i+944>>2]=a>>>4;J[i+812>>2]=a&15;b=J[h+4>>2];if(b>>>0>=2){a=c+6|0;c=1;while(1){ld(a,g+28|0,1);e:{b=J[g+28>>2];if(b>>> -0>=16){f=b&15;if(f)break e}a=0;Hc(e,1,2354658,0);break a}j=i+(c<<2)|0;J[j+944>>2]=b>>>4;J[j+812>>2]=f;a=a+1|0;b=J[h+4>>2];c=c+1|0;if(b>>>0>c>>>0)continue;break}}f=J[d>>2]}J[d>>2]=f-b;a=1;break a}fa(2353829,2346358,10526,2354101);B()}fa(2354126,2346358,10534,2354101);B()}a=0;Hc(e,1,2354168,0)}bc=g+32|0;return a}function kfb(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;e=bc-16|0;bc=e;j=J[b+28>>2];J[a+368>>2]=b;c=gc[J[a+516>>2]](a,1851878757,b,e+8|0)|0;a:{if(c)break a;k=J[b+8>>2]; -c=Me(b,326416,a+344|0);J[e+12>>2]=c;if(c)break a;c=145;g=k+6|0;d=J[a+348>>2];h=g+P(d,12)|0;i=J[e+8>>2]+k|0;if(h>>>0>i>>>0)break a;if(L[a+344>>1]==1){c=nd(b,h);J[e+12>>2]=c;if(c)break a;d=e+12|0;f=Wd(b,d);J[a+360>>2]=f;c=J[e+12>>2];if(c)break a;l=a,m=Sc(j,12,0,f,0,d),J[l+364>>2]=m;c=J[e+12>>2];if(c)break a;c=Ue(b,J[a+360>>2]<<2);J[e+12>>2]=c;if(c)break a;h=((f<<2)+h|0)+2|0;c=J[a+364>>2];b:{if(!c)break b;d=J[a+360>>2];if((d|0)<=0)break b;d=P(d,12)+c|0;while(1){l=e,m=Me(b,326476,c),J[l+12>>2]=m;f=J[c+ -4>>2]+(J[a+352>>2]+k|0)|0;J[c+4>>2]=f;if(!(f+L[c>>1]>>>0<=i>>>0&f>>>0>=h>>>0))I[c>>1]=0;c=c+12|0;if(d>>>0>c>>>0)continue;break}}ne(b);l=e,m=nd(b,g),J[l+12>>2]=m;d=J[a+348>>2]}l=a,m=Sc(j,20,0,d,0,e+12|0),J[l+356>>2]=m;c=J[e+12>>2];if(c)break a;c=Ue(b,P(J[a+348>>2],12));J[e+12>>2]=c;if(c)break a;d=J[a+356>>2];f=J[a+348>>2];c:{if(!f){c=d;i=0;break c}c=d;while(1){d=Me(b,326448,c);J[e+12>>2]=d;d:{if(d)break d;d=L[c+8>>1];if(!d)break d;g=J[c+12>>2]+(J[a+352>>2]+k|0)|0;J[c+12>>2]=g;if(h>>>0>g>>>0|d+g>>> -0>i>>>0)break d;e:{if(L[a+344>>1]!=1)break e;d=I[c+4>>1];if((d|0)>=0)break e;d=(d&65535)-32768|0;if(d>>>0>=M[a+360>>2]|!L[J[a+364>>2]+P(d,12)>>1])break d}c=c+20|0}f=f-1|0;if(f)continue;break}d=J[a+356>>2];i=J[a+348>>2]}c=(c-d|0)/20|0;j=Sc(j,20,i,c,d,e+12|0);J[a+348>>2]=c;J[a+356>>2]=j;ne(b);I[a+340>>1]=J[a+348>>2];c=J[e+12>>2]}bc=e+16|0;return c|0}function IH(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,w=0,x=0,y=0;l=J[b+8>>2];if((l|0)>0){u=J[b>>2];while(1){b= -J[J[(k<<2)+u>>2]>>2];m=J[b+8>>2];if((m|0)>0){v=J[b>>2];g=0;while(1){b=J[J[(g<<2)+v>>2]>>2];n=J[b+8>>2];if((n|0)>0){o=J[a+216>>2];p=J[a+212>>2];w=J[b>>2];h=0;while(1){b=J[J[(h<<2)+w>>2]>>2];q=J[b+8>>2];if((q|0)>0){r=J[o+8>>2];s=J[p+8>>2];x=J[b>>2];i=0;while(1){a:{b:{c:{d:{e:{c=J[(i<<2)+x>>2];j=K[c+100|0];t=j-1|0;switch(t|0){case 2:break b;case 1:break c;case 0:break d;default:break e}}d=O[c+56>>3];f=d*O[J[c+48>>2]+32>>3]+O[c+24>>3];break a}d=O[c+56>>3];f=O[c>>3]-d*O[J[c+48>>2]+32>>3];break a}d=O[c+ -56>>3];f=O[c+16>>3]-d*O[J[c+48>>2]+32>>3];break a}d=O[c+56>>3];f=d*O[J[c+48>>2]+32>>3]+O[c+8>>3]}d=d*.2;if((s|0)>0){y=J[p>>2];b=0;while(1){e=J[(b<<2)+y>>2];f:{g:{if(J[e+32>>2]){h:switch(j|0){case 0:case 2:break h;default:break f}if(!(d>R(O[e+8>>3]-f))|!(O[e>>3]>3]))break f;if(O[e+16>>3]>O[c+8>>3]-d)break g;break f}i:switch(t|0){case 0:case 2:break i;default:break f}if(!(O[e+24>>3]>O[c+24>>3]-d)|(!(d>R(O[e>>3]-f))|!(O[e+8>>3]>3])))break f}H[c+104|0]=1}b=b+1|0;if((s|0)!=(b|0))continue; -break}}if((r|0)>0){f=d+O[c>>3];j=J[o>>2];b=0;while(1){e=J[j+(b<<2)>>2];if(!(!(f>O[e>>3])|!(O[e+16>>3]>O[c+8>>3]-d)|(!(O[e+8>>3]>3])|!(O[e+24>>3]>O[c+24>>3]-d))))J[c+64>>2]=e;b=b+1|0;if((r|0)!=(b|0))continue;break}}i=i+1|0;if((q|0)!=(i|0))continue;break}}h=h+1|0;if((n|0)!=(h|0))continue;break}}g=g+1|0;if((m|0)!=(g|0))continue;break}}k=k+1|0;if((l|0)!=(k|0))continue;break}}}function _$(a){var b=0,c=0,d=0,e=0,f=0;f=bc-16|0;bc=f;e=J[a+52>>2];a:{if(e)break a;e=gc[J[659447]](24)|0;if(!e){J[f>> -2]=14914;Cc(0,0,0,0,0,2,2,3,14914,0,0,0,32863,f);e=0;break a}J[e>>2]=0;J[e+4>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=18;b=gc[J[659450]](37)|0;b:{if(!b){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}H[b+36|0]=0;c=K[14870]|K[14871]<<8|(K[14872]<<16|K[14873]<<24);H[b+32|0]=c;H[b+33|0]=c>>>8;H[b+34|0]=c>>>16;H[b+35|0]=c>>>24;c=K[14866]|K[14867]<<8|(K[14868]<<16|K[14869]<<24);d=K[14862]|K[14863]<<8|(K[14864]<<16|K[14865]<<24);H[b+24|0]=d;H[b+25|0]=d>>>8;H[b+26|0]=d>>>16;H[b+27| -0]=d>>>24;H[b+28|0]=c;H[b+29|0]=c>>>8;H[b+30|0]=c>>>16;H[b+31|0]=c>>>24;c=K[14858]|K[14859]<<8|(K[14860]<<16|K[14861]<<24);d=K[14854]|K[14855]<<8|(K[14856]<<16|K[14857]<<24);H[b+16|0]=d;H[b+17|0]=d>>>8;H[b+18|0]=d>>>16;H[b+19|0]=d>>>24;H[b+20|0]=c;H[b+21|0]=c>>>8;H[b+22|0]=c>>>16;H[b+23|0]=c>>>24;c=K[14850]|K[14851]<<8|(K[14852]<<16|K[14853]<<24);d=K[14846]|K[14847]<<8|(K[14848]<<16|K[14849]<<24);H[b+8|0]=d;H[b+9|0]=d>>>8;H[b+10|0]=d>>>16;H[b+11|0]=d>>>24;H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>> -16;H[b+15|0]=c>>>24;c=K[14842]|K[14843]<<8|(K[14844]<<16|K[14845]<<24);d=K[14838]|K[14839]<<8|(K[14840]<<16|K[14841]<<24);H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;H[b+4|0]=c;H[b+5|0]=c>>>8;H[b+6|0]=c>>>16;H[b+7|0]=c>>>24}J[e+8>>2]=b;b=gc[J[659450]](4)|0;c:{if(!b){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break c}H[b+3|0]=0;H[b+2|0]=K[9670];c=K[9668]|K[9669]<<8;H[b|0]=c;H[b+1|0]=c>>>8}J[e+12>>2]=b;J[a+52>>2]=e}bc=f+16|0;return e}function J0a(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;e=J[a+328>>2];f=J[a+448>>2];i=J[f+24>>2];a:{c=J[f+28>>2];if((i|0)<(c|0)){s=e-1|0;o=J[a+356>>2]-1|0;k=f+32|0;h=J[f+20>>2];while(1){if(h>>>0<=o>>>0){while(1){Le(J[k>>2],J[a+364>>2]<<7);if(!(gc[J[J[a+464>>2]+4>>2]](a,k)|0))break a;c=J[a+336>>2];if((c|0)>0){g=0;l=0;while(1){d=J[((l<<2)+a|0)+340>>2];b:{if(!J[d+52>>2]){g=J[d+64>>2]+g|0;break b}e=J[d+60>>2];if((e|0)<=0)break b;m=J[(h>>>0>>0?56:72)+d>>2];if((m|0)>0){t=P(J[d+68>>2],h);c=J[d+4>>2]<<2;p=J[(c+ -J[a+468>>2]|0)+4>>2];q=J[b+c>>2];c=J[d+40>>2];j=q+(P(i,c)<<2)|0;u=m&-2;q=m&1;n=0;while(1){if(!(J[d+76>>2]<=(i+n|0)&M[a+148>>2]>=s>>>0)){e=0;c=t;r=0;if((m|0)!=1)while(1){gc[p|0](a,d,J[(e+g<<2)+k>>2],j,c);c=J[d+36>>2]+c|0;gc[p|0](a,d,J[((e|1)+g<<2)+k>>2],j,c);e=e+2|0;c=c+J[d+36>>2]|0;r=r+2|0;if((u|0)!=(r|0))continue;break}if(q)gc[p|0](a,d,J[((e+g<<2)+f|0)+32>>2],j,c);e=J[d+60>>2];c=J[d+40>>2]}j=(c<<2)+j|0;g=J[d+56>>2]+g|0;n=n+1|0;if((n|0)<(e|0))continue;break}c=J[a+336>>2];break b}g=P(J[d+56>>2],e)+ -g|0}l=l+1|0;if((l|0)<(c|0))continue;break}}h=h+1|0;if(o>>>0>=h>>>0)continue;break}c=J[f+28>>2]}h=0;J[f+20>>2]=0;i=i+1|0;if((i|0)<(c|0))continue;break}e=J[a+328>>2]}J[a+156>>2]=J[a+156>>2]+1;c=J[a+148>>2]+1|0;J[a+148>>2]=c;if(c>>>0>>0){b=J[a+448>>2];c:{if(J[a+336>>2]>=2){J[b+28>>2]=1;break c}a=J[a+340>>2];if(c>>>0>>0){J[b+28>>2]=J[a+12>>2];break c}J[b+28>>2]=J[a+76>>2]}J[b+20>>2]=0;J[b+24>>2]=0;return 3}gc[J[J[a+456>>2]+12>>2]](a);return 4}J[f+20>>2]=h;J[f+24>>2]=i;return 0}function VJ(a){var b= -0,c=0,d=0,e=0;d=J[a+32>>2];if(d)d=J[d+80>>2];else d=0;c=J[a+12>>2];if(!(!c|J[a+68>>2]!=1|J[c+20>>2]!=(a|0)))jm(c);e=J[a+8>>2];a:{b:{if(d){c:{if(!e)break c;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break c;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}gc[J[659451]](e)}e=J[a+52>>2];d:{if(!e)break d;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break d;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}gc[J[659451]](e)}e= -J[a+56>>2];e:{if(!e)break e;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break e;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}gc[J[659451]](e)}e=J[a+64>>2];f:{if(!e)break f;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break f;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}gc[J[659451]](e)}e=J[a+40>>2];g:{if(!e)break g;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break g;b= -J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}gc[J[659451]](e)}c=J[a+36>>2];if(!c)break a;while(1){b=J[d+16>>2];if(b)while(1){if(b+20>>>0<=c>>>0&M[b+4>>2]>=c>>>0)break a;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}break b}if(e)gc[J[659451]](e);d=J[a+52>>2];if(d)gc[J[659451]](d);d=J[a+56>>2];if(d)gc[J[659451]](d);d=J[a+64>>2];if(d)gc[J[659451]](d);d=J[a+40>>2];if(d)gc[J[659451]](d);c=J[a+36>>2];if(!c)break a}gc[J[659451]](c)}gc[J[659451]](a)}function zJ(a,b){var c= -0,d=0,e=0,f=0,g=0;c=J[a+20>>2];if(c)f=J[c+296>>2];else f=0;a:{b:{c:{d:{c=J[b+4>>2];switch(c-2|0){case 0:break b;case 16:break c;case 12:break d;default:break a}}fr(b);return}a=J[b+8>>2];if(a)gc[J[659451]](a);a=J[b+12>>2];if(a)gc[J[659451]](a);gc[J[659451]](b);return}yJ(a,b);return}e:{if((c|0)==5)break e;c=J[b+12>>2];if(!c)break e;if(J[c+20>>2]==(b|0))rB(a,c);J[b+12>>2]=0}f:{if(!J[689540])break f;c=J[689538];if(!c)break f;gc[c|0](b)}d=J[b+4>>2];g:{if(d>>>0>20|!(1<>2];if(!c)break g; -while(1){e=J[c+24>>2];yJ(a,c);c=e;if(c)continue;break}d=J[b+4>>2]}g=J[b+40>>2];h:{if((g|0)==(b+44|0)|(1<>>0<=20:0)|!g)break h;if(f){e=f;while(1){c=J[e+16>>2];if(c)while(1){if(c+20>>>0<=g>>>0&M[c+4>>2]>=g>>>0)break h;c=J[c>>2];if(c)continue;break}e=J[e+20>>2];if(e)continue;break}}gc[J[659451]](g);d=J[b+4>>2]}i:{if(!(1<>>0>20)break i;c=J[b+48>>2];if(!c)break i;while(1){e=J[c>>2];d=J[c+8>>2];if(d)gc[J[659451]](d);d=J[c+12>>2];if(d)gc[J[659451]](d);gc[J[659451]](c);c=e;if(c)continue; -break}d=J[b+4>>2]}j:{k:switch(d-3|0){case 0:case 5:break j;default:break k}e=J[b+8>>2];if(!e)break j;if(f)while(1){c=J[f+16>>2];if(c)while(1){if(e>>>0<=M[c+4>>2]&e>>>0>=c+20>>>0)break j;c=J[c>>2];if(c)continue;break}f=J[f+20>>2];if(f)continue;break}gc[J[659451]](e);d=J[b+4>>2]}l:{m:switch(d-1|0){case 0:case 2:break m;default:break l}a=J[a+20>>2];if(!a)break l;c=J[a+368>>2];if((c|0)>99)break l;J[b+24>>2]=J[a+372>>2];J[a+368>>2]=c+1;J[a+372>>2]=b;return}gc[J[659451]](b)}function uu(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;i=bc-256|0;bc=i;if(!((a|0)<=0|(b|0)<=0)){g=zc(16);a:{if(!g)break a;J[g+4>>2]=b;J[g>>2]=a;J[g+12>>2]=0;J[i>>2]=b;J[i+128>>2]=a;while(1){n=f;f=f+1|0;e=f<<2;h=(b+1|0)/2|0;J[e+i>>2]=h;c=e+(i+128|0)|0;e=(a+1|0)/2|0;J[c>>2]=e;c=P(a,b);d=c+d|0;b=h;a=e;if((c|0)>1)continue;break}J[g+8>>2]=d;c=zc(d<<4);J[g+12>>2]=c;if(!c){d=0;break a}b=c;if(n){d=(P(J[g+4>>2],J[g>>2])<<4)+c|0;a=d;while(1){e=l<<2;k=J[e+i>>2];b:{if((k|0)<=0)break b;m=k-1|0;j=0;c:{h=J[e+(i+128|0)>>2]; -if((h|0)<=0){f=0;if((k|0)!=1){o=k&-2;while(1){e=(f|0)==(m|0);f=f+2|0;d=e?a:d;a=d;j=j+2|0;if((o|0)!=(j|0))continue;break}}if(k&1)break c;a=d;break b}while(1){e=d;d=h;while(1){d:{J[b>>2]=a;if((d|0)==1){b=b+16|0;a=a+16|0;break d}J[b+16>>2]=a;a=a+16|0;b=b+32|0;f=(d|0)>2;d=d-2|0;if(f)continue}break}f=((j|0)==(m|0)|j)&1;d=f?a:e+(h<<4)|0;a=f?a:e;j=j+1|0;if((k|0)!=(j|0))continue;break}break b}e=(h<<4)+d|0;h=((f|0)==(m|0)|f)&1;e=h?a:e;a=h?a:d;d=e}l=l+1|0;if((l|0)!=(n|0))continue;break}}d=0;J[b>>2]=0;b=J[g+ -8>>2];e:{if((b|0)<=0)break e;e=b&3;f:{if(!e){a=b;break f}a=b;while(1){J[c+12>>2]=0;J[c+4>>2]=2147483647;J[c+8>>2]=0;c=c+16|0;a=a-1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}if(b>>>0<4)break e;while(1){J[c+12>>2]=0;J[c+4>>2]=2147483647;J[c+8>>2]=0;J[c+60>>2]=0;J[c+52>>2]=2147483647;J[c+56>>2]=0;J[c+44>>2]=0;J[c+36>>2]=2147483647;J[c+40>>2]=0;J[c+28>>2]=0;J[c+20>>2]=2147483647;J[c+24>>2]=0;c=c- -64|0;b=a-5|0;a=a-4|0;if(b>>>0<4294967294)continue;break}}d=g}bc=i+256|0;return d}fa(198050,198839,109,212429); -B()}function pkb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=bc-16|0;bc=h;d=J[a+712>>2];J[h+12>>2]=0;a:{if(!d)break a;f=J[d+3092>>2];if(!f){f=Zd(J[a+100>>2],32,h+12|0);c=J[h+12>>2];if(c)break a;a=0;e=J[d+1372>>2];g=0;b:{if((e|0)==65535)break b;if(e>>>0>=391){e=e-391|0;g=0;if(e>>>0>=M[d+1356>>2])break b;g=J[J[d+1360>>2]+(e<<2)>>2];break b}c=J[d+3084>>2];g=0;if(!c)break b;g=gc[J[c+20>>2]](e)|0}J[f>>2]=g;c=J[d+1376>>2];c:{if((c|0)==65535)break c;if(c>>>0>=391){c=c-391|0;if(c>>>0>=M[d+1356>>2])break c; -a=J[J[d+1360>>2]+(c<<2)>>2];break c}e=J[d+3084>>2];if(!e)break c;a=gc[J[e+20>>2]](c)|0}J[f+4>>2]=a;a=0;e=J[d+1384>>2];g=0;d:{if((e|0)==65535)break d;if(e>>>0>=391){e=e-391|0;g=0;if(e>>>0>=M[d+1356>>2])break d;g=J[J[d+1360>>2]+(e<<2)>>2];break d}c=J[d+3084>>2];g=0;if(!c)break d;g=gc[J[c+20>>2]](e)|0}J[f+8>>2]=g;c=J[d+1388>>2];e:{if((c|0)==65535)break e;if(c>>>0>=391){c=c-391|0;if(c>>>0>=M[d+1356>>2])break e;a=J[J[d+1360>>2]+(c<<2)>>2];break e}e=J[d+3084>>2];if(!e)break e;a=gc[J[e+20>>2]](c)|0}J[f+ -12>>2]=a;c=0;a=J[d+1392>>2];f:{if((a|0)==65535)break f;if(a>>>0>=391){a=a-391|0;if(a>>>0>=M[d+1356>>2])break f;c=J[J[d+1360>>2]+(a<<2)>>2];break f}e=J[d+3084>>2];if(!e)break f;c=gc[J[e+20>>2]](a)|0}J[f+16>>2]=c;J[f+20>>2]=J[d+1400>>2];H[f+24|0]=K[d+1396|0];I[f+26>>1]=J[d+1404>>2];I[f+28>>1]=J[d+1408>>2];J[d+3092>>2]=f;c=J[h+12>>2]}a=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=a;a=J[f+28>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=a;a=J[f+20>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=a;a=J[f+12>>2];J[b+8>>2]=J[f+8>>2]; -J[b+12>>2]=a}bc=h+16|0;return c|0}function kka(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;f=J[a+8>>2];a:{if((f|0)!=J[a+12>>2]){d=f;break a}d=J[a>>2];c=J[a+4>>2];if(d>>>0>>0){g=((c-d>>3)+1|0)/-2<<3;d=g+c|0;if((c|0)!=(f|0)){while(1){h=J[c>>2];i=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;e=J[d+4>>2];J[d>>2]=h;J[d+4>>2]=i;b:{if(!e)break b;h=J[e+4>>2];J[e+4>>2]=h-1;if(h)break b;gc[J[J[e>>2]+8>>2]](e);Vc(e)}d=d+8|0;c=c+8|0;if((f|0)!=(c|0))continue;break}f=J[a+4>>2]}J[a+8>>2]=d;J[a+4>>2]=f+g;break a}c:{d:{e= -(d|0)==(f|0)?1:f-d>>2;if(e>>>0<536870912){h=e<<3;g=rc(h);h=g+h|0;e=g+(e<<1&-8)|0;if((c|0)==(f|0))break d;i=f-c|0;j=i-8|0;k=(j>>>3|0)+1&3;e:{if(!k){d=e;break e}f=0;d=e;while(1){J[d>>2]=J[c>>2];J[d+4>>2]=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;c=c+8|0;d=d+8|0;f=f+1|0;if((k|0)!=(f|0))continue;break}}f=e+i|0;if(j>>>0>=24)while(1){J[d>>2]=J[c>>2];J[d+4>>2]=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;J[d+8>>2]=J[c+8>>2];J[d+12>>2]=J[c+12>>2];J[c+8>>2]=0;J[c+12>>2]=0;J[d+16>>2]=J[c+16>>2];J[d+20>>2]=J[c+20>>2];J[c+16>>2]=0; -J[c+20>>2]=0;J[d+24>>2]=J[c+24>>2];J[d+28>>2]=J[c+28>>2];J[c+24>>2]=0;J[c+28>>2]=0;c=c+32|0;d=d+32|0;if((f|0)!=(d|0))continue;break}J[a+12>>2]=h;c=J[a+8>>2];J[a+8>>2]=f;f=J[a+4>>2];J[a+4>>2]=e;d=J[a>>2];J[a>>2]=g;if((c|0)==(f|0))break c;while(1){c=c-8|0;e=J[c+4>>2];f:{if(!e)break f;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break f;gc[J[J[e>>2]+8>>2]](e);Vc(e)}if((c|0)!=(f|0))continue;break}break c}Sd();B()}J[a+12>>2]=h;J[a+8>>2]=e;J[a+4>>2]=e;J[a>>2]=g}if(d)qc(d);d=J[a+8>>2]}J[d>>2]=J[b>>2];b=J[b+4>>2];J[d+ -4>>2]=b;if(b){J[b+4>>2]=J[b+4>>2]+1;d=J[a+8>>2]}J[a+8>>2]=d+8}function MF(a,b){a=a|0;b=b|0;var c=0,d=0;Oc(b,2440312,-1);Oc(b,2440336,-1);Oc(b,2440448,-1);Oc(b,2440576,-1);Oc(b,2440620,-1);Oc(b,2440664,-1);Oc(b,2440708,-1);Oc(b,2440752,-1);Oc(b,2440796,-1);Oc(b,2440856,-1);Nl(b,J[a+640>>2]);Oc(b,2440928,-1);Oc(b,2440936,-1);Nl(b,K[a+602|0]);Oc(b,2440928,-1);Oc(b,2440988,-1);Oc(b,2441036,-1);Oc(b,2441108,-1);Oc(b,2441180,-1);Oc(b,2441228,-1);Oc(b,2441236,-1);Oc(b,2441348,-1);Oc(b,2441488,-1);d=O[a+ -32>>3]*36E3;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}wg(b,c);Oc(b,2441548,-1);Oc(b,2441612,-1);Oc(b,2441676,-1);Oc(b,2441488,-1);d=O[a+8>>3]*36E3;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}wg(b,c);Oc(b,2441548,-1);Oc(b,2441816,-1);Oc(b,2441880,-1);Oc(b,2441924,-1);d=O[a+48>>3]*36E3;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}wg(b,c);Oc(b,2441948,-1);d=O[a+24>>3]*36E3;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}wg(b,c);Oc(b,2440060,-1);Oc(b,2441976,-1);Oc(b,2442148, --1);Oc(b,2442208,-1);c=J[694697]+1|0;J[694697]=c;Nl(b,c);c=J[a+60>>2]-1|0;if(c>>>0<=5)c=J[(c<<2)+2451068>>2];else c=2442740;Oc(b,c,-1);Nl(b,J[a+636>>2]);Oc(b,2440060,-1);Oc(b,2442800,-1);Oc(b,2442948,-1);e:{f:switch(J[a+60>>2]-2|0){case 0:case 2:gS(a,b);break e;case 4:Oc(b,2446496,-1);break e;case 3:c=bc-16|0;bc=c;Oc(b,2445872,-1);Oc(b,2446224,-1);Oc(b,2446264,-1);Oc(b,2446336,-1);H[c+15|0]=0;Vu(a,b,c+15|0);az(a,b);Oc(b,2446392,-1);gS(a,b);fS(a,b);Oc(b,2443848,-1);Oc(b,2446452,-1);Oc(b,2443892,-1); -bc=c+16|0;break e;default:break f}fS(a,b)}Oc(b,2443252,-1);Oc(b,2442896,-1);Oc(b,2440496,-1);Oc(b,2440548,-1)}function Jqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;g=$i(a,0,262142,a+164|0);e=J[b+20>>2];if(e){J[e+4>>2]=J[e+4>>2]+1;c=J[b+20>>2]}J[d+28>>2]=c;a:{b:{c:{d:{e:{e=(g|0)<=0;f:{if(c|e)break f;c=J[a+3316>>2];if(!c){c=0;break f}a=J[a+3320>>2];J[695492]=0;f=c;c=d+4|0;da(f|0,c|0,a|0);a=J[695492];J[695492]=0;g:{h:{if((a|0)!=1){J[695492]=0;aa(4993,d+28|0,c|0)|0;a=J[695492];J[695492]= -0;if((a|0)==1)break h;a=J[d+4>>2];c=0;J[d+4>>2]=0;if(!a)break g;J[695492]=0;h=J[a+4>>2]-1|0;J[a+4>>2]=h;f=J[695492];J[695492]=0;if((f|0)!=1){if(h)break g;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break g}break a}c=Z()|0;break c}c=Z()|0;vc(d+4|0);break c}if(!J[d+28>>2])break f;J[695492]=0;da(5515,b|0,d+28|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;c=J[d+28>>2]}if(!(c|e)){J[695492]=0;a=ja(5018,d+4|0,2378695,2374240,658,2421604,0)|0;b=J[695492];J[695492]=0;i:{if((b|0)!=1){J[695492]= -0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;break b}c=Z()|0;break c}c=Z()|0;Fc(a);break c}j:{if(!c)break j;if((((J[c+16>>2]+J[c+44>>2]|0)-J[c+40>>2]|0)+1|0)!=(g|0)){J[695492]=0;a=ja(5018,d+4|0,2379287,2374240,660,2421604,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;c=Z()|0;Fc(a);break c}J[695492]=0;J[d+28>>2]=0;a=J[c+4>>2]-1|0;J[c+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(a)break j;J[695492]=0;_(4987, -c|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+32|0;return}c=Z()|0;break c}c=Z()|0}vc(d+28|0);ba(c|0);B()}B()}ea(0)|0;yc();B()}function pVa(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;h=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<-1)break a;l=J[a+28>>2];f=(h<<1)-l|0;if((f|0)<=0)break a;g=c-4|0;k=e+2|0;m=k&3;b=0;if(e+1>>>0>=3){n=k&-4;k=0;while(1){e=b<<2;j=l+J[e+g>>2]|0;wc(j,K[j-1|0],f);j=l+J[g+(e|4)>>2]|0;wc(j,K[j-1|0],f);j=l+J[g+(e|8)>>2]|0;wc(j, -K[j-1|0],f);e=l+J[g+(e|12)>>2]|0;wc(e,K[e-1|0],f);b=b+4|0;k=k+4|0;if((n|0)!=(k|0))continue;break}}if(m)while(1){e=l+J[g+(b<<2)>>2]|0;wc(e,K[e-1|0],f);b=b+1|0;i=i+1|0;if((m|0)!=(i|0))continue;break}e=J[a+272>>2]}if((e|0)>0){b=J[a+228>>2];k=b<<4;n=P(b,-80)+16384|0;l=h-2|0;m=0;j=0;while(1){b=m<<2;i=J[(b|4)+c>>2];f=b+c|0;b=J[f>>2];e=K[i|0]+K[b|0]|0;h=J[(j<<2)+d>>2];g=J[f-4>>2];o=K[g|0];m=m+2|0;f=J[(m<<2)+c>>2];p=K[f|0];H[h|0]=(P(n,K[i+1|0]+(e+K[b+1|0]|0)|0)+P(k,(((o+p|0)+K[g+2|0]|0)+K[f+2|0]|0)+(K[i+ -2|0]+(K[b+2|0]+(K[f+1|0]+(p+(K[g+1|0]+(e+o|0)|0)|0)|0)|0)<<1)|0)|0)+32768>>>16;e=h+1|0;b=b+2|0;f=f+2|0;g=g+2|0;h=i+2|0;i=l;if(i)while(1){H[e|0]=(P(n,K[h+1|0]+(K[h|0]+(K[b+1|0]+K[b|0]|0)|0)|0)+P(k,K[f+2|0]+(K[f-1|0]+((K[g+2|0]+K[g-1|0]|0)+(K[h+2|0]+(K[h-1|0]+(K[b+2|0]+(K[b-1|0]+(K[f+1|0]+(K[f|0]+(K[g+1|0]+K[g|0]|0)|0)|0)|0)|0)|0)<<1)|0)|0)|0)|0)+32768>>>16;e=e+1|0;f=f+2|0;g=g+2|0;h=h+2|0;b=b+2|0;i=i-1|0;if(i)continue;break}p=e;i=K[h+1|0]+K[b+1|0]|0;e=K[f+1|0];o=K[g+1|0];H[p|0]=(P(n,K[h|0]+(i+K[b|0]| -0)|0)+P(k,(K[f-1|0]+(K[g-1|0]+(e+o|0)|0)|0)+(K[h-1|0]+(K[b-1|0]+(e+(K[f|0]+(o+(i+K[g|0]|0)|0)|0)|0)|0)<<1)|0)|0)+32768>>>16;j=j+1|0;if(J[a+272>>2]>(m|0))continue;break}}}function $$a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;t=bc-208|0;bc=t;q=J[a+332>>2];a=J[b+84>>2];b=t;while(1){i=J[a+160>>2];h=I[c+80>>1];o=J[a+32>>2];m=I[c+16>>1];r=J[a+96>>2];n=I[c+48>>1];j=P(I[c>>1],J[a>>2])<<13|1024;k=P(J[a+128>>2],I[c+64>>1]);f=P(J[a+192>>2],I[c+ -96>>1]);g=P(J[a+64>>2],I[c+32>>1]);p=f+g|0;J[b+84>>2]=j+P(k-p|0,11585)>>11;i=P(h,i);h=P(o,m);o=P(i+h|0,5027);p=j+P(p,10438)|0;m=P(k-f|0,7223);l=p+(m+P(f,-637)|0)|0;f=P(n,r);r=P(f+h|0,7663);h=P(h-f|0,1395);n=o+(r-h|0)|0;J[b+168>>2]=l-n>>11;J[b>>2]=n+l>>11;l=P(g,-20239);g=P(g-k|0,2578);n=p+(l+g|0)|0;f=P(f+i|0,-11295);i=f+(o+P(i,15326)|0)|0;J[b+112>>2]=n-i>>11;J[b+56>>2]=i+n>>11;k=m+(g+(j+P(k,-15083)|0)|0)|0;f=f+(h+r|0)|0;J[b+140>>2]=k-f>>11;J[b+28>>2]=f+k>>11;b=b+4|0;a=a+4|0;c=c+2|0;s=s+1|0;if((s|0)!= -7)continue;break}a=q+128|0;c=t;k=0;while(1){f=J[c+16>>2];g=J[c+24>>2];j=P(f-g|0,7223);b=J[(k<<2)+d>>2]+e|0;i=J[c+12>>2];h=J[c+4>>2];q=P(i+h|0,7663);m=P(h-i|0,1395);l=h;h=J[c+20>>2];r=P(l+h|0,5027);n=(q-m|0)+r|0;s=j+P(g,-637)|0;o=(J[c>>2]<<13)+131072|0;l=g;g=J[c+8>>2];p=l+g|0;l=o+P(p,10438)|0;s=s+l|0;H[b|0]=K[a+(n+s>>>18&1023)|0];H[b+6|0]=K[a+(s-n>>>18&1023)|0];i=P(h+i|0,-11295);q=i+(m+q|0)|0;m=P(g-f|0,2578);j=j+(m+(o+P(f,-15083)|0)|0)|0;H[b+1|0]=K[a+(q+j>>>18&1023)|0];H[b+5|0]=K[a+(j-q>>>18&1023)| -0];j=i+(r+P(h,15326)|0)|0;g=l+(m+P(g,-20239)|0)|0;H[b+2|0]=K[a+(j+g>>>18&1023)|0];H[b+4|0]=K[a+(g-j>>>18&1023)|0];H[b+3|0]=K[a+(o+P(f-p|0,11585)>>>18&1023)|0];c=c+28|0;k=k+1|0;if((k|0)!=7)continue;break}bc=t+208|0}function PV(a,b,c){var d=0,e=0,f=0;d=bc-256|0;bc=d;f=J[a+200>>2];if(f&1){a:{if(f&4){Yc(a,66267);Ld(a,c);break a}if(!(!b|!(K[b+8|0]&16))){Yc(a,66291);Ld(a,c);break a}b:{c:{d:switch(K[a+401|0]){case 0:if((c|0)==2){qg(a,d,2);pe(a,d,2);I[a+394>>1]=1;c=K[d|0]|K[d+1|0]<<8;I[a+516>>1]=c<<8|c>>> -8;break b}Yc(a,66312);Ld(a,c);break a;case 2:if((c|0)==6){qg(a,d,6);pe(a,d,6);I[a+394>>1]=1;c=K[d|0]|K[d+1|0]<<8;I[a+510>>1]=c<<8|c>>>8;c=K[d+2|0]|K[d+3|0]<<8;I[a+512>>1]=c<<8|c>>>8;c=K[d+4|0]|K[d+5|0]<<8;I[a+514>>1]=c<<8|c>>>8;break b}Yc(a,66312);Ld(a,c);break a;case 3:if(!(f&2))Yc(a,66340);if(!(c>>>0<=256&L[a+392>>1]>=c>>>0)){Yc(a,66312);Ld(a,c);break a}if(c)break c;Yc(a,66365);Ld(a,0);break a;default:break d}Yc(a,66388);Ld(a,c);break a}qg(a,d,c);pe(a,d,c);I[a+394>>1]=c}if(Ld(a,0)){I[a+394>>1]= -0;break a}f=L[a+394>>1];c=a+508|0;e:{if(!a|!b)break e;if(f>>>0>=257){Yc(a,65002);break e}f:{g:{h:{i:{if(d){fp(a,b,8192,0);e=_g(a,256);J[b+76>>2]=e;J[a+504>>2]=e;if(!f)break i;tc(e,d,f)}if(!c)break h;break g}if(c)break g;I[b+22>>1]=f;break e}I[b+22>>1]=f;if(!f)break e;break f}e=K[b+24|0];j:{if(e>>>0>15)break j;e=-1<>>0>1])break k;break j;case 2:break l;default:break j}if(e>>>0>1]|e>>>0>1])break k;if(e>>>0>=L[c+6>>1])break j}Yc(a,65096)}a= -L[c+4>>1]|L[c+6>>1]<<16;e=L[c>>1]|L[c+2>>1]<<16;I[b+80>>1]=e;I[b+82>>1]=e>>>16;I[b+84>>1]=a;I[b+86>>1]=a>>>16;I[b+88>>1]=L[c+8>>1];I[b+22>>1]=f>>>0<=1?1:f}J[b+8>>2]=J[b+8>>2]|16;J[b+184>>2]=J[b+184>>2]|8192}}bc=d+256|0;return}Ad(a,66242);B()}function gva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=bc-48|0;bc=d;if(!K[2760188]){Lm(2760180,32);H[2760188]=1}c=Lm(d+16|0,40);J[695492]=0;e=d+24|0;ca(5121,e|0,c|0,2411759);f=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((f|0)!=1){J[695492]=0;ca(5122,a|0,e|0,2760180); -f=J[695492];J[695492]=0;if((f|0)!=1){sc(e);sc(c);if(J[b+92>>2]<=0)break e;c=0;f:{g:{while(1){J[d+16>>2]=0;J[d+20>>2]=J[682146];if(!(J[b+116>>2]<=(c|0)&J[b+120>>2]>=(c|0))){J[695492]=0;c=ja(5018,d+24|0,2392484,2393512,619,2401256,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(c);break f}if(!(J[b+140>>2]<=(c|0)&J[b+144>>2]>=(c|0))){J[695492]=0;c=ja(5018,d+24|0,2392484,2393512,619,2401256,0)|0;b=J[695492];J[695492]=0;if((b| -0)==1)break g;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(c);break f}e=J[J[b+128>>2]+(c-J[b+132>>2]<<2)>>2];J[d>>2]=J[J[b+104>>2]+(c-J[b+108>>2]<<2)>>2];J[695492]=0;J[d+4>>2]=e;e=d+16|0;f=ga(5180,e|0,2379630,d|0)|0;g=J[695492];J[695492]=0;h:{if((g|0)==1)break h;J[695492]=0;aa(5170,a|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break h;sc(e);c=c+1|0;if((c|0)>2])continue;break e}break}b=Z()|0;break f}b=Z()|0}sc(d+16|0);break d}a=Z()|0;sc(d+24|0);break a}a= -Z()|0;break a}b=J[a>>2];if(b)b=J[b+8>>2]-1|0;else b=-1;J[695492]=0;ca(5166,a|0,b|0,41);b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;aa(5170,a|0,2760180)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break c}b=Z()|0}sc(a);ba(b|0);B()}bc=d+48|0;return}B()}sc(c);ba(a|0);B()}function xZ(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;j=bc-16|0;bc=j;e=J[a+400>>2];d=J[a+288>>2];if((d|0)>0)while(1){f=c<<2;d=J[(f+a|0)+292>>2];b=J[d+12>>2];t=f+j|0,u=gc[J[J[a+4>> -2]+32>>2]](a,J[((J[d+4>>2]<<2)+e|0)- -64>>2],P(b,J[e+8>>2]),b,0)|0,J[t>>2]=u;c=c+1|0;d=J[a+288>>2];if((c|0)<(d|0))continue;break}b=J[e+20>>2];h=J[e+16>>2];a:{if((b|0)>(h|0)){p=e+24|0;c=J[a+308>>2];g=J[e+12>>2];while(1){if(c>>>0>g>>>0){while(1){k=0;f=0;m=J[a+288>>2];if((m|0)>0)while(1){b=k<<2;c=J[(b+a|0)+292>>2];n=J[c+60>>2];b:{if((n|0)<=0)break b;i=J[c+56>>2];if((i|0)<=0)break b;q=J[b+j>>2]+(h<<2)|0;o=i&7;l=0;r=P(g,i)<<7;s=i>>>0<8;while(1){c=J[(l<<2)+q>>2]+r|0;b=f;d=0;if(o)while(1){J[((b<<2)+e|0)+ -24>>2]=c;b=b+1|0;c=c+128|0;d=d+1|0;if((o|0)!=(d|0))continue;break}f=f+i|0;if(!s)while(1){d=(b<<2)+e|0;J[d+28>>2]=c+128;J[d+24>>2]=c;J[d+32>>2]=c+256;J[d+36>>2]=c+384;J[d+40>>2]=c+512;J[d+44>>2]=c+640;J[d+48>>2]=c+768;J[d+52>>2]=c+896;c=c+1024|0;b=b+8|0;if((f|0)!=(b|0))continue;break}l=l+1|0;if((n|0)!=(l|0))continue;break}}k=k+1|0;if((m|0)!=(k|0))continue;break}if(!(gc[J[J[a+420>>2]+4>>2]](a,p)|0)){J[e+12>>2]=g;J[e+16>>2]=h;a=0;break a}c=J[a+308>>2];g=g+1|0;if(c>>>0>g>>>0)continue;break}b=J[e+20>> -2]}g=0;J[e+12>>2]=0;h=h+1|0;if((h|0)<(b|0))continue;break}d=J[a+288>>2]}J[e+8>>2]=J[e+8>>2]+1;b=J[a+400>>2];c:{if((d|0)>=2){J[b+20>>2]=1;break c}f=J[a+292>>2];if(M[b+8>>2]>2]-1>>>0){J[b+20>>2]=J[f+12>>2];break c}J[b+20>>2]=J[f+76>>2]}J[b+12>>2]=0;J[b+16>>2]=0;a=1}bc=j+16|0;return a|0}function V4(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;i=bc-80|0;bc=i;h=J[a>>2];a:{if((h|0)<=0)break a;d=J[a+24>>2];e=P(b,204);j=J[a+16>>2];c=J[a+8>>2];k=c+P(h,40)|0;b=0;a=c;while(1){b=(J[a+16>> -2]>>>4&1)+b|0;a=a+40|0;if(k>>>0>a>>>0)continue;break}if(!b)break a;m=J[(e+d|0)+200>>2];e=i+16|0;if(b>>>0>=17){e=Sc(j,4,0,b,0,i+12|0);if(J[i+12>>2])break a}b:{if((h|0)<=0)break b;d=c;while(1){if(K[d+16|0]&16){a=(g<<2)+e|0;c:{if((g|0)<=0){b=a;break c}l=J[d+28>>2];while(1){b=a-4|0;f=J[b>>2];if((l|0)>=J[f+28>>2]){b=a;break c}J[a>>2]=f;a=b;if(e>>>0>>0)continue;break}}J[b>>2]=d;g=g+1|0}d=d+40|0;if(k>>>0>d>>>0)continue;break}if((h|0)<=0)break b;l=((g<<2)+e|0)-4|0;while(1){b=J[c+16>>2];d:{if(b&16)break d; -a=J[c+12>>2];if(a&2){d=K[c+20|0];if(!(a&4|b&64)|((d|0)==4|(d|0)!=K[c+21|0]))break d;J[c+12>>2]=a&-3}e:{f:{if(g){b=J[c+28>>2];a=0;g:{while(1){if((b|0)>2]+28>>2])break g;a=a+1|0;if((g|0)!=(a|0))continue;break}a=g}if(a)break f}a=J[e>>2];f=J[a+36>>2]+Pc(J[c+28>>2]-J[a+28>>2]|0,m)|0;break e}d=J[((a<<2)+e|0)-4>>2];b=g;while(1){a=b;if(a){b=a-1|0;if(J[J[(b<<2)+e>>2]+28>>2]>=J[c+28>>2])continue}break}if((a|0)==(g|0)){a=J[l>>2];f=J[a+36>>2]+Pc(J[c+28>>2]-J[a+28>>2]|0,m)|0;break e}b=J[c+28>>2]; -h=J[d+28>>2];f=J[d+36>>2];if((b|0)==(h|0))break e;a=J[(a<<2)+e>>2];f=J[a+28>>2];if((f|0)==(b|0)){f=J[a+36>>2];break e}n=J[a+36>>2];a=J[d+36>>2];f=Dd(b-h|0,n-a|0,f-h|0)+a|0}J[c+36>>2]=f;J[c+16>>2]=J[c+16>>2]|32}c=c+40|0;if(k>>>0>c>>>0)continue;break}}if((i+16|0)==(e|0))break a;if(e)gc[J[j+8>>2]](j,e)}bc=i+80|0}function apa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=bc-32|0;bc=e;b=J[b>>2];c=b?b+12|0:2728584;d=1;d=b?J[b+8>>2]+1|0:d;b=J[c>>2];i=ch(e+16|0,e+24|0,d,1);c=J[e+24>>2];a:{b:{c:{d:{e:{f:{g:{h:{while(1){i:{d= -K[b|0];j:{if((d|0)!=37){if(d)break j;H[c|0]=0;J[695492]=0;a=aa(4989,a|0,J[e+24>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;b=J[a>>2];if(!b)break d;c=J[J[b>>2]+80>>2];J[695492]=0;b=$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;if(b)break d;J[695492]=0;b=aa(6073,e+8|0,J[e+24>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;c=J[b>>2];if(!c)break i;d=J[J[c>>2]+28>>2];J[695492]=0;ca(d|0,e+28|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break h;c=Z()|0;sc(b);break b}f=H[b+1|0];g=f-48| -0;k:{if((g&255)>>>0<=9)break k;if((f-65&255)>>>0<=5){g=f-55|0;break k}d=37;if((f-97&255)>>>0>5)break j;g=f-87|0}d=37;if((g|0)<0)break j;f=H[b+2|0];h=f-48|0;l:{if((h&255)>>>0<=9)break l;if((f-65&255)>>>0<=5){h=f-55|0;break l}if((f-97&255)>>>0>5)break j;h=f-87|0}if((h|0)<0)break j;b=b+2|0;d=g<<4|h}H[c|0]=d;c=c+1|0;b=b+1|0;continue}break}J[e+28>>2]=0}J[695492]=0;aa(4993,a|0,e+28|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+28>>2];J[e+28>>2]=0;if(!c)break e;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d; -f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e}ea(0)|0;yc();B()}c=Z()|0;vc(e+28|0);sc(b);break b}c=Z()|0;break a}c=Z()|0;break b}c=a;a=J[a>>2];J[c+4>>2]=J[(a?a+12|0:2728584)>>2];sc(b)}_c(i);bc=e+32|0;return}c=Z()|0}sc(a)}_c(i);ba(c|0);B()}function AN(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;J[a+52>>2]=b;c=J[a>>2];a:{d=bd(1,28);b:{c:{if(!d){J[c+20>>2]=1;break c}J[a+4>>2]=1;J[a+40>>2]=d;while(1){e=2637008;h=gc[J[J[b>>2]+20>>2]](b,2)|0;if((h& --256)!=65280){c=J[d+24>>2];d:{if(!c)break d;f=0;e=J[d+16>>2];if((e|0)>0){while(1){a=J[d+24>>2]+P(f,48)|0;c=J[a+44>>2];if(c){qc(c);J[a+44>>2]=0;e=J[d+16>>2]}f=f+1|0;if((e|0)>(f|0))continue;break}c=J[d+24>>2];if(!c)break d}qc(c)}qc(d);gc[J[J[b>>2]+36>>2]](b)|0;break c}while(1){f=e;g=J[f>>2];if(g){e=f+12|0;if((g|0)!=(h|0))continue}break}if(!(J[f+4>>2]&J[a+4>>2])){c=J[d+24>>2];e:{if(!c)break e;f=0;e=J[d+16>>2];if((e|0)>0){while(1){a=J[d+24>>2]+P(f,48)|0;c=J[a+44>>2];if(c){qc(c);J[a+44>>2]=0;e=J[d+16>> -2]}f=f+1|0;if((e|0)>(f|0))continue;break}c=J[d+24>>2];if(!c)break e}qc(c)}qc(d);gc[J[J[b>>2]+36>>2]](b)|0;break c}if((g|0)==65424&J[J[a+44>>2]+20>>2]==1)break b;f:{g:{e=J[f+8>>2];if(e){gc[e|0](a);e=J[a+4>>2];if((e|0)==32)break g;if((e|0)!=64)break f;J[c+20>>2]=0;break a}c=J[d+24>>2];h:{if(!c)break h;f=0;e=J[d+16>>2];if((e|0)>0){while(1){b=J[d+24>>2]+P(f,48)|0;c=J[b+44>>2];if(c){qc(c);J[b+44>>2]=0;e=J[d+16>>2]}f=f+1|0;if((e|0)>(f|0))continue;break}c=J[d+24>>2];if(!c)break h}qc(c)}qc(d);d=0;if(J[a+ -4>>2]==64)break a;break b}J[c+20>>2]=0;return d}if(!J[c+20>>2])continue;break}c=J[d+24>>2];i:{if(!c)break i;f=0;e=J[d+16>>2];if((e|0)>0){while(1){a=J[d+24>>2]+P(f,48)|0;b=J[a+44>>2];if(b){qc(b);J[a+44>>2]=0;e=J[d+16>>2]}f=f+1|0;if((e|0)>(f|0))continue;break}c=J[d+24>>2];if(!c)break i}qc(c)}qc(d)}d=0}return d}U8(a);return d}function H7(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;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(M[J[c+(d<<2)>>2]>>2]>=M[J[c+(e<< -2)>>2]>>2])break b;J[a>>2]=d;J[b>>2]=e;break a;case 3:d=b-4|0;e=J[d>>2];b=J[J[c>>2]+12>>2];g=J[J[(e<<2)+b>>2]>>2];h=J[a+4>>2];f=J[J[b+(h<<2)>>2]>>2];c=J[a>>2];i=J[b+(c<<2)>>2];if(f>>>0>=M[i>>2]){if(g>>>0>=f>>>0)break b;J[a+4>>2]=e;J[d>>2]=h;c=J[a+4>>2];d=J[a>>2];if(M[J[b+(c<<2)>>2]>>2]>=M[J[b+(d<<2)>>2]>>2])break b;J[a+4>>2]=d;J[a>>2]=c;break a}if(g>>>0>>0){J[a>>2]=e;J[d>>2]=c;break a}J[a+4>>2]=c;J[a>>2]=h;e=J[d>>2];if(M[J[b+(e<<2)>>2]>>2]>=M[i>>2])break b;J[a+4>>2]=e;J[d>>2]=c;break a;case 4:RM(a, -a+4|0,a+8|0,b-4|0,c);break a;case 5:SM(a,a+4|0,a+8|0,a+12|0,b-4|0,c);break a;case 0:case 1:break b;default:break c}g=a+4|0;e=a+8|0;h=J[J[c>>2]+12>>2];f=J[a+8>>2];i=J[h+(f<<2)>>2];j=J[i>>2];k=J[a+4>>2];l=J[J[h+(k<<2)>>2]>>2];m=J[a>>2];n=J[h+(m<<2)>>2];d:{e:{if(l>>>0>=M[n>>2]){if(j>>>0>=l>>>0)break d;J[g>>2]=f;J[e>>2]=k;c=a;d=g;if(M[i>>2]>2])break e;break d}c=a;d=e;if(j>>>0>>0)break e;J[a+4>>2]=m;J[a>>2]=k;c=g;if(M[i>>2]>=M[n>>2])break d}J[c>>2]=f;J[d>>2]=m}d=a+12|0;if((d|0)==(b|0))break b; -g=0;while(1){f:{c=d;i=J[c>>2];j=J[h+(i<<2)>>2];f=J[e>>2];if(M[j>>2]>=M[J[h+(f<<2)>>2]>>2])break f;while(1){g:{J[c>>2]=f;c=e;if((c|0)==(a|0)){c=a;break g}e=c-4|0;f=J[e>>2];if(M[j>>2]>2]>>2])continue}break}J[c>>2]=i;g=g+1|0;if((g|0)!=8)break f;return(d+4|0)==(b|0)}e=d;c=d+4|0;d=c;if((b|0)!=(c|0))continue;break}}return 1}return 1}function xhb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=wc(a,0,656);J[a+56>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0; -J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a>>2]=J[b>>2];if(c){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=K[b+68|0]|K[b+69|0]<<8;e=K[b+70|0];J[a+540>>2]=b+1508;f=J[65281];J[a+52>>2]=J[65280];J[a+56>>2]=f;H[a+48|0]=c;H[a+47|0]=e;H[a+45|0]=d;H[a+46|0]=d>>>8;H[a+44|0]=0;J[a+604>>2]=J[b+1348>>2];J[a+ -584>>2]=J[b+1352>>2];J[a+580>>2]=J[b+1356>>2];J[a+588>>2]=J[b+1472>>2];J[a+644>>2]=J[b+1468>>2];J[a+556>>2]=J[b+1364>>2];J[a+572>>2]=J[b+1368>>2];J[a+612>>2]=J[b+1372>>2];J[a+616>>2]=J[b+1376>>2];J[a+648>>2]=J[b+1496>>2];J[a+652>>2]=J[b+1500>>2];J[a+608>>2]=J[b+1360>>2];return}J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];c=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=c;c=J[b+64>>2];d=J[65281];J[a+52>>2]= -J[65280];J[a+56>>2]=d;H[a+48|0]=0;J[a+44>>2]=c;c=J[b+108>>2];J[a+532>>2]=c;J[a+540>>2]=c+3104;J[a+536>>2]=J[b+768>>2];J[a+560>>2]=J[b+732>>2];J[a+576>>2]=J[b+748>>2];J[a+568>>2]=J[b+740>>2];J[a+556>>2]=J[b+728>>2];J[a+572>>2]=J[b+744>>2];c=J[b+736>>2];J[a+544>>2]=b+584;J[a+564>>2]=c;H[a+548|0]=K[b+593|0];J[a+588>>2]=J[b+760>>2];J[a+596>>2]=J[b+772>>2];J[a+600>>2]=J[b+776>>2]}function pW(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return 0;d=rc(552);J[d+176>>2]=0;J[d+116>>2]=8;J[d+104>>2]=0;wc(d+192| -0,0,72);J[d+264>>2]=0;J[d+248>>2]=0;J[d+252>>2]=1081073664;J[d+208>>2]=8;J[d+184>>2]=1;J[d+188>>2]=23;J[d+128>>2]=0;J[d+132>>2]=0;e=v0();J[d+276>>2]=0;J[d+280>>2]=0;J[d+272>>2]=e;J[d>>2]=J[a>>2];O[d+136>>3]=O[a+136>>3];J[d+4>>2]=J[a+4>>2];e=J[a+76>>2];J[d+72>>2]=J[a+72>>2];J[d+76>>2]=e;f=a- -64|0;g=J[f+4>>2];e=d- -64|0;J[e>>2]=J[f>>2];J[e+4>>2]=g;e=J[a+60>>2];J[d+56>>2]=J[a+56>>2];J[d+60>>2]=e;e=J[a+52>>2];J[d+48>>2]=J[a+48>>2];J[d+52>>2]=e;e=J[a+44>>2];J[d+40>>2]=J[a+40>>2];J[d+44>>2]=e;e=J[a+36>> -2];J[d+32>>2]=J[a+32>>2];J[d+36>>2]=e;e=J[a+28>>2];J[d+24>>2]=J[a+24>>2];J[d+28>>2]=e;e=J[a+20>>2];J[d+16>>2]=J[a+16>>2];J[d+20>>2]=e;e=J[a+12>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=e;e=J[a+84>>2];J[d+80>>2]=J[a+80>>2];J[d+84>>2]=e;e=J[a+92>>2];J[d+88>>2]=J[a+88>>2];J[d+92>>2]=e;e=J[a+100>>2];J[d+96>>2]=J[a+96>>2];J[d+100>>2]=e;O[d+168>>3]=O[a+168>>3];J[d+108>>2]=c?c:J[a+108>>2];J[d+112>>2]=b?b:J[a+112>>2];J[d+288>>2]=J[a+288>>2];b=J[a+120>>2];J[d+144>>2]=0;J[d+120>>2]=b;O[d+152>>3]=O[a+152>>3];O[d+160>> -3]=O[a+160>>3];J[d+268>>2]=J[a+268>>2];O[d+232>>3]=O[a+232>>3];O[d+224>>3]=O[a+224>>3];O[d+216>>3]=O[a+216>>3];b=J[a+124>>2];J[d+124>>2]=b;c=J[a+264>>2];if(c){b=P(b,80);e=zc(b+80|0);J[d+264>>2]=e;tc(e,c,b)}b=J[a+272>>2];if(b){c=zc(260);J[d+272>>2]=c;tc(c,b,260)}b=J[a+128>>2];if(b)h=d,i=tY(b),J[h+128>>2]=i;b=J[a+132>>2];if(b)h=d,i=tY(b),J[h+132>>2]=i;J[d+276>>2]=J[a+276>>2];J[d+280>>2]=J[a+280>>2];return d}function gZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;r=J[a+332>>2];b=J[b+84>>2];k=bc-128|0;a=k;l=4;while(1){a:{b:{f=L[c+32>>1];g=I[c+16>>1];if((f|g)&65535)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;f=P(I[c>>1],J[b>>2])<<2;J[a+96>>2]=f;J[a+80>>2]=f;J[a+64>>2]=f;J[a+48>>2]=f;J[a+32>>2]=f;J[a+16>>2]=f;J[a>>2]=f;h=28;break a}m=P(J[b+192>>2],I[c+96>>1]);i=P(J[b+64>>2],f<<16>>16);f=P(m+i|0,4433);n=P(I[c+64>>1],J[b+128>>2])<<13;o=P(I[c>>1],J[b>>2])<<13|1024;s=n+o|0; -t=f+P(i,6270)|0;p=s+t|0;g=P(g,J[b+32>>2]);i=P(J[b+224>>2],I[c+112>>1]);u=P(g+i|0,-7373);x=u+P(g,12299)|0;j=P(J[b+96>>2],I[c+48>>1]);v=j+i|0;h=g;g=P(J[b+160>>2],I[c+80>>1]);q=h+g|0;w=P(v+q|0,9633);q=w+P(q,-3196)|0;h=x+q|0;J[a+112>>2]=p-h>>11;J[a>>2]=p+h>>11;n=o-n|0;f=f+P(m,-15137)|0;m=n+f|0;o=P(v,-16069)+w|0;h=P(j,25172);j=P(g+j|0,-20995);p=o+(h+j|0)|0;J[a+96>>2]=m-p>>11;J[a+16>>2]=m+p>>11;f=n-f|0;g=q+(j+P(g,16819)|0)|0;J[a+80>>2]=f-g>>11;J[a+32>>2]=f+g>>11;f=o+(P(i,2446)+u|0)|0;g=s-t|0;J[a+48>>2]= -f+g>>11;f=g-f>>11;h=16}J[(h<<2)+a>>2]=f;c=c+2|0;b=b+4|0;a=a+4|0;f=l>>>0>1;l=l-1|0;if(f)continue;break}a=r+128|0;c=k;l=0;while(1){f=J[c+12>>2];g=J[c+4>>2];k=P(f+g|0,4433);b=J[(l<<2)+d>>2]+e|0;g=k+P(g,6270)|0;i=J[c+8>>2];j=J[c>>2]+16|0;r=i+j<<13;H[b|0]=K[a+(g+r>>>18&1023)|0];H[b+3|0]=K[a+(r-g>>>18&1023)|0];k=k+P(f,-15137)|0;f=j-i<<13;H[b+1|0]=K[a+(k+f>>>18&1023)|0];H[b+2|0]=K[a+(f-k>>>18&1023)|0];c=c+16|0;l=l+1|0;if((l|0)!=8)continue;break}}function SV(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0, -m=0;g=bc-272|0;bc=g;d=J[a+200>>2];if(d&1){a:{if(d&4){Yc(a,65729);Ld(a,c);break a}if(d&2){Yc(a,65753);d=J[a+200>>2]}if(!(!(d&16384)&(!b|!(K[b+9|0]&24)))){Yc(a,65821);Ld(a,c);break a}J[a+200>>2]=d|16384;rd(a,J[a+740>>2]);d=_g(a,c+1|0);J[a+740>>2]=d;qg(a,d,c);pe(a,d,c);e=Ld(a,0);d=J[a+740>>2];if(e){rd(a,d);J[a+740>>2]=0;break a}H[c+d|0]=0;e=J[a+740>>2];d=e;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}if(!((c+e|0)-1>>>0>d>>>0?c:0)){rd(a,e);J[a+740>>2]=0;Yc(a,65878);break a}d=f+2|0;if(K[f+1|0]){Yc(a, -65899);e=J[a+740>>2]}f=c;c=d-e|0;aH(a,0,f,c,g+268|0);d=J[a+740>>2];b:{e=J[g+268>>2];if(e>>>0>=c>>>0){e=e-c|0;if(e>>>0>3)break b}rd(a,d);J[a+740>>2]=0;Yc(a,65947);break a}j=c+d|0;c=j;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(h>>>0>e>>>0){rd(a,d);J[a+740>>2]=0;dY(g,1,h);dY(g,2,e);Kq(a,g,65990);break a}f=d;e=bc-80|0;bc=e;c:{if(!a|!b|(!d|!j))break c;c=e;k=1;d=K[d|0];d:{if(!d)break d;l=1;while(1){m=0;k=d>>>0<161&(d-127&255)>>>0<162;e:{if(k){m=1;if(l)break e; -d=32}H[c|0]=d;i=i+1|0;c=c+1|0}f=f+1|0;d=K[f|0];if(!d)break d;l=m;if(i>>>0<79)continue;break}}d=c;c=(i|0)!=0&k;H[d-c|0]=0;c=i-c|0;if(!c){Yc(a,63475);break c}c=c+1|0;d=gg(a,c);if(!d){Yc(a,63497);break c}c=tc(d,e,c);d=gg(a,h);if(!d){rd(a,c);Yc(a,63597);break c}d=tc(d,j,h);fp(a,b,16,0);H[b+208|0]=0;J[b+200>>2]=d;J[b+196>>2]=c;J[b+204>>2]=h;J[b+184>>2]=J[b+184>>2]|16;J[b+8>>2]=J[b+8>>2]|4096}bc=e+80|0;rd(a,J[a+740>>2]);J[a+740>>2]=0}bc=g+272|0;return}Ad(a,65686);B()}function UJ(a,b){var c=0,d=0,e=0,f= -0,g=0,h=0,i=0,j=0;if(!(!a|!b)){c=J[a+8>>2];a:{if(!c)break a;d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=e-c|0;if((d|0)<0)break a;e=gc[J[659450]](d+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break a}f=tc(e,c,d);H[d+f|0]=0}c=J[a+16>>2];b:{if(!c)break b;d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=e-c|0;if((d|0)<0)break b;e=gc[J[659450]](d+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}g=tc(e,c,d);H[d+g|0]=0}c=J[a+24>>2];c:{if(!c)break c;d=c;while(1){e=d;d=e+1|0;if(K[e| -0])continue;break}d=e-c|0;if((d|0)<0)break c;e=gc[J[659450]](d+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break c}h=tc(e,c,d);H[d+h|0]=0}c=J[a+28>>2];d:{if(!c)break d;d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=e-c|0;if((d|0)<0)break d;e=gc[J[659450]](d+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}i=tc(e,c,d);H[d+i|0]=0}c=J[a+32>>2];e:{if(!c){d=0;break e}d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=0;e=e-c|0;if((e|0)<0)break e;j=gc[J[659450]](e+1|0)|0;if(!j){Cc(0, -0,0,0,0,1,2,3,0,0,0,0,36013,0);break e}d=tc(j,c,e);H[e+d|0]=0}c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+16>>2];if(c)gc[J[659451]](c);c=J[b+24>>2];if(c)gc[J[659451]](c);c=J[b+28>>2];if(c)gc[J[659451]](c);c=J[b+32>>2];if(c)gc[J[659451]](c);J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+12>>2]=J[a+12>>2];J[b+20>>2]=J[a+20>>2];c=J[a+48>>2];J[b+36>>2]=J[a+36>>2];e=J[a+40>>2];J[b+48>>2]=c;J[b+40>>2]=e;a=J[a+44>>2];J[b+32>>2]=d;J[b+28>>2]=i;J[b+24>>2]=h;J[b+16>>2]=g;J[b+8>>2]=f;J[b+44>>2]=a}}function UDa(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=Hp(a,1,0,0,1,0,0);J[c+56>>2]=0;J[c+60>>2]=0;J[c+48>>2]=0;J[c+52>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+28>>2]=b;J[c+12>>2]=0;J[c+16>>2]=0;b=c+4|0;J[c+8>>2]=b;J[c+4>>2]=b;J[c+20>>2]=0;J[c+24>>2]=0;J[c- -64>>2]=0;J[c+40>>2]=0;J[695492]=0;a=$(4,12)|0;d=J[695492];J[695492]=0;f=c+32|0;a:{b:{c:{if((d|0)==1)break c;J[a>>2]=0;J[695492]=0;aa(2281,a+8|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1){e=Z()|0;qc(a);break a}J[a+4>>2]=b;d=J[c+4>>2];J[a>>2]=d;J[d+4>> -2]=a;J[c+4>>2]=a;J[c+12>>2]=J[c+12>>2]+1;a=J[c+36>>2];if((a|0)!=J[c+40>>2]){O[a>>3]=O[c+48>>3];J[c+36>>2]=a+8;return c|0}d=J[f>>2];e=a-d|0;i=e>>3;g=i+1|0;if(g>>>0>=536870912){J[695492]=0;_(2399,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break b}h=e>>2;e=e>>>0>=2147483640?536870911:g>>>0>>0?h:g;d:{if(!e){g=0;break d}if(e>>>0>=536870912){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break c}J[695492]=0;g=$(4,e<<3)|0;h=J[695492];J[695492]=0;if((h|0)==1)break c}b=(i<<3)+g|0; -O[b>>3]=O[c+48>>3];f=b+8|0;if((a|0)!=(d|0))while(1){b=b-8|0;a=a-8|0;O[b>>3]=O[a>>3];if((a|0)!=(d|0))continue;break}J[c+40>>2]=(e<<3)+g;J[c+36>>2]=f;J[c+32>>2]=b;if(d)qc(d);return c|0}e=Z()|0;break a}B()}a=J[c+56>>2];if(a){J[c+60>>2]=a;qc(a)}a=J[f>>2];if(a){J[c+36>>2]=a;qc(a)}cA(c+16|0);a=b;e:{if(!J[a+8>>2])break e;b=J[a+4>>2];d=J[b>>2];f=J[J[a>>2]+4>>2];J[d+4>>2]=f;J[f>>2]=d;J[a+8>>2]=0;if((a|0)==(b|0))break e;while(1){d=J[b+4>>2];Ed(b+8|0);qc(b);b=d;if((a|0)!=(b|0))continue;break}}Ed(c);ba(e|0); -B()}function L1a(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;a:{if(f>>>0>2)break a;b:{if(f)break b;c:{d:{if((e|0)<=8202){if((e|0)<=6067){if((e|0)<=4446){if((e|0)==173|(e|0)==847)break c;if((e|0)!=1564)break d;break c}if(e-4447>>>0>=2)break d;break c}if(e-6155>>>0<4)break c;if(e-6068>>>0>=2)break d;break c}e:switch(e-8203|0){case 0:case 1:case 2:case 3:case 4:case 31:case 32:case 33:case 34:case 35:case 85:case 86:case 87:case 88:case 89:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:break c; -case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 90:break d; -default:break e}if((e|0)==12644)break c}if((e&-4)==113824|(e|0)==65440|((e|0)==65279|(e&-16)==65024))break c;if((e|0)==917505|e-119155>>>0<8|((e|0)==8293|e-917536>>>0<96))break c;if(e-917760>>>0<240|e-918E3>>>0<3600|((e&-128)==917632|e-917506>>>0<30))break c;if((e|0)==917504)break c;if(e-65520>>>0>8)break b}J[g>>2]=0;return}if(K[a|0]!=105|f?a:0)break a;J[g>>2]=0;r1(b,g)}}function z3a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=-1;a:{e=J[a+188>>2];b:{if(!e)break b;f=qn(e,2);if(!f|L[f>>1]==65535)break b; +0;b=J[e+16>>2];g:{if(b&4)break g;J[e+16>>2]=b|4;c=J[a+16>>2];J[e+20>>2]=0;h:{if(!f)break h;k=J[e>>2];l=k+J[e+4>>2]|0;b=f;d=c;while(1){h=J[d>>2];j=J[h>>2];if(!((j|0)>(l|0)|(k|0)>(j+J[h+4>>2]|0))){J[e+20>>2]=h;break h}d=d+4|0;b=b-1|0;if(b)continue;break}}if(f>>>0>=g>>>0)break g;b=f+1|0;J[a+4>>2]=b;J[c+(f<<2)>>2]=e;f=b}o=o+1|0;if((o|0)!=(g|0))continue;break}}fc=i+16|0;return J[i+12>>2]}function iV(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;e=L[b+14>>1];f=L[b+8>>1];h=L[b+10>>1];J[a+8>>2]= +h-1;a:{b:{c:{if(!h)break c;i=P(e,f);while(1){if(!J[b+20>>2])_i(b);d:{if(!L[b+8>>1]){c=L[b+12>>1];if(J[685890]<(c+L[b+14>>1]|0)){a=Qc(g+8|0,2398385,2398717,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=c+J[685889]|0;break d}c=J[b+20>>2]+L[b+12>>1]|0}d=J[a+8>>2];if(i){c=c+d|0;j=i+c|0;while(1){if(K[c|0])break c;c=c+e|0;if(j>>>0>c>>>0)continue;break}}J[a+8>>2]=d-1;if((d|0)>0)continue;break}}c=f-1|0;J[a>>2]=c;e:{if(!f)break e;while(1){if(!J[b+20>>2])_i(b); +d=L[b+14>>1];f:{if(L[b+8>>1]<=c>>>0){c=L[b+12>>1];if(J[685890]<(c+d|0)){a=Qc(g+8|0,2398385,2398717,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=c+J[685889]|0;break f}c=L[b+12>>1]+(J[b+20>>2]+P(c,d)|0)|0}if(h){d=c+h|0;while(1){if(K[c|0])break e;c=c+1|0;if(d>>>0>c>>>0)continue;break}}d=J[a>>2];c=d-1|0;J[a>>2]=c;if((d|0)>0)continue;break}}J[a+4>>2]=0;g:{if(J[a+8>>2]<0)break g;d=P(e,f);while(1){if(!J[b+20>>2])_i(b);h:{if(!L[b+8>>1]){c=L[b+12>>1];if(J[685890]< +(c+L[b+14>>1]|0)){a=Qc(g+8|0,2398385,2398717,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=c+J[685889]|0;break h}c=J[b+20>>2]+L[b+12>>1]|0}f=J[a+4>>2];if(d){c=c+f|0;i=d+c|0;while(1){if(K[c|0])break g;c=c+e|0;if(i>>>0>c>>>0)continue;break}}J[a+4>>2]=f+1;if((f|0)>2])continue;break}}J[a+12>>2]=0;i:{if(J[a>>2]<0)break i;c=0;while(1){if(!J[b+20>>2])_i(b);e=L[b+14>>1];j:{if(!(L[b+8>>1]>c>>>0&(c|0)>=0)){c=L[b+12>>1];if(J[685890]<(c+e|0)){a=Qc(g+8|0,2398385, +2398717,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=c+J[685889]|0;break j}c=L[b+12>>1]+(J[b+20>>2]+P(c,e)|0)|0}if(h){e=c+h|0;while(1){if(K[c|0])break i;c=c+1|0;if(e>>>0>c>>>0)continue;break}}e=J[a+12>>2];c=e+1|0;J[a+12>>2]=c;if((e|0)>2])continue;break}}fc=g+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Y7a(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;g=fc-32|0;fc=g;j=J[a>>2];k=b-j>>3;a:{b:{c:{e=J[a+4>>2];d=J[a+8>>2];d:{if(e>>> +0>>0){if((b|0)==(e|0)){J[b>>2]=J[c>>2];c=J[c+4>>2];J[((k<<3)+j|0)+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[a+4>>2]=b+8;break d}d=e;h=d-8|0;if(h>>>0>>0){f=h;while(1){J[d>>2]=J[f>>2];J[d+4>>2]=J[f+4>>2];J[f>>2]=0;J[f+4>>2]=0;d=d+8|0;f=f+8|0;if(f>>>0>>0)continue;break}}J[a+4>>2]=d;l=b>>>0<=c>>>0;if((b+8|0)!=(e|0)){while(1){h=h-8|0;f=J[h>>2];d=J[h+4>>2];J[h>>2]=0;J[h+4>>2]=0;e=e-8|0;i=J[e+4>>2];J[e>>2]=f;J[e+4>>2]=d;e:{if(!i)break e;d=J[i+4>>2];J[i+4>>2]=d-1;if(d)break e;kc[J[J[i>>2]+8>>2]](i);Gc(i)}if((b| +0)!=(h|0))continue;break}d=J[a+4>>2]}c=((c>>>0>>0&l)<<3)+c|0;a=J[c>>2];c=J[c+4>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[b>>2]=a;a=(k<<3)+j|0;d=J[a+4>>2];J[a+4>>2]=c;if(!d)break d;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break d;kc[J[J[d>>2]+8>>2]](d);Gc(d);break d}h=(e-j>>3)+1|0;if(h>>>0>=536870912)break c;J[g+28>>2]=a+8;e=0;f=d-j|0;d=f>>2;f=f>>>0>=2147483640?536870911:d>>>0>h>>>0?d:h;if(f){if(f>>>0>=536870912)break b;e=vc(f<<3)}J[699344]=0;J[g+12>>2]=e;d=(k<<3)+e|0;J[g+20>>2]=d;J[g+24>>2]=(f<<3)+e;J[g+16>>2]=d; +da(2522,g+12|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[g+16>>2];h=c;d=J[a>>2];if((d|0)!=(b|0)){e=b;while(1){h=h-8|0;e=e-8|0;J[h>>2]=J[e>>2];J[h+4>>2]=J[e+4>>2];J[e>>2]=0;J[e+4>>2]=0;if((e|0)!=(d|0))continue;break}}J[g+16>>2]=h;e=J[g+20>>2];d=J[a+4>>2];if((d|0)!=(b|0)){while(1){J[e>>2]=J[b>>2];J[e+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;e=e+8|0;b=b+8|0;if((d|0)!=(b|0))continue;break}h=J[g+16>>2];b=J[a+4>>2]}f=J[a>>2];J[a>>2]=h;J[g+16>>2]=f;J[a+4>>2]=e;J[g+20>>2]=b;d=J[a+8>>2];J[a+8>>2]= +J[g+24>>2];J[g+12>>2]=f;J[g+24>>2]=d;if((b|0)!=(f|0)){while(1){a=b-8|0;J[g+20>>2]=a;b=J[a+4>>2];f:{if(!b)break f;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break f;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[g+20>>2];if((f|0)!=(b|0))continue;break}b=J[g+12>>2]}if(b)uc(b);b=c}fc=g+32|0;return b|0}Fg(a);B()}Pd();B()}a=Z()|0;P4(g+12|0);ba(a|0);B()}function Sna(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;g=fc-32|0;fc=g;j=J[a>>2];k=b-j>>3;a:{b:{c:{e=J[a+4>>2];d=J[a+8>>2];d:{if(e>>>0>>0){if((b|0)==(e| +0)){J[b>>2]=J[c>>2];c=J[c+4>>2];J[((k<<3)+j|0)+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[a+4>>2]=b+8;break d}d=e;h=d-8|0;if(h>>>0>>0){f=h;while(1){J[d>>2]=J[f>>2];J[d+4>>2]=J[f+4>>2];J[f>>2]=0;J[f+4>>2]=0;d=d+8|0;f=f+8|0;if(f>>>0>>0)continue;break}}J[a+4>>2]=d;l=b>>>0<=c>>>0;if((b+8|0)!=(e|0)){while(1){h=h-8|0;f=J[h>>2];d=J[h+4>>2];J[h>>2]=0;J[h+4>>2]=0;e=e-8|0;i=J[e+4>>2];J[e>>2]=f;J[e+4>>2]=d;e:{if(!i)break e;d=J[i+4>>2];J[i+4>>2]=d-1;if(d)break e;kc[J[J[i>>2]+8>>2]](i);Gc(i)}if((b|0)!=(h|0))continue; +break}d=J[a+4>>2]}c=((c>>>0>>0&l)<<3)+c|0;a=J[c>>2];c=J[c+4>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[b>>2]=a;a=(k<<3)+j|0;d=J[a+4>>2];J[a+4>>2]=c;if(!d)break d;a=J[d+4>>2];J[d+4>>2]=a-1;if(a)break d;kc[J[J[d>>2]+8>>2]](d);Gc(d);break d}h=(e-j>>3)+1|0;if(h>>>0>=536870912)break c;J[g+28>>2]=a+8;e=0;f=d-j|0;d=f>>2;f=f>>>0>=2147483640?536870911:d>>>0>h>>>0?d:h;if(f){if(f>>>0>=536870912)break b;e=vc(f<<3)}J[699344]=0;J[g+12>>2]=e;d=(k<<3)+e|0;J[g+20>>2]=d;J[g+24>>2]=(f<<3)+e;J[g+16>>2]=d;da(6579,g+12|0,c|0); +c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[g+16>>2];h=c;d=J[a>>2];if((d|0)!=(b|0)){e=b;while(1){h=h-8|0;e=e-8|0;J[h>>2]=J[e>>2];J[h+4>>2]=J[e+4>>2];J[e>>2]=0;J[e+4>>2]=0;if((e|0)!=(d|0))continue;break}}J[g+16>>2]=h;e=J[g+20>>2];d=J[a+4>>2];if((d|0)!=(b|0)){while(1){J[e>>2]=J[b>>2];J[e+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;e=e+8|0;b=b+8|0;if((d|0)!=(b|0))continue;break}h=J[g+16>>2];b=J[a+4>>2]}f=J[a>>2];J[a>>2]=h;J[g+16>>2]=f;J[a+4>>2]=e;J[g+20>>2]=b;d=J[a+8>>2];J[a+8>>2]=J[g+24>>2];J[g+12>>2]= +f;J[g+24>>2]=d;if((b|0)!=(f|0)){while(1){a=b-8|0;J[g+20>>2]=a;b=J[a+4>>2];f:{if(!b)break f;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break f;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[g+20>>2];if((f|0)!=(b|0))continue;break}b=J[g+12>>2]}if(b)uc(b);b=c}fc=g+32|0;return b|0}eh(a);B()}Pd();B()}a=Z()|0;P4(g+12|0);ba(a|0);B()}function r4(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;N[a+8>>2]=N[a>>2]+c;N[a+12>>2]=N[a+4>>2]+d;h=J[a+80>>2];if(h){j=h-4|0;e=J[j>>2];if(e){e=h+P(e,96)|0;while(1){g=e;e=e-96|0;a:{if(!J[e+ +92>>2])break a;g=g-8|0;f=J[g>>2];if(!f)break a;uc(f);J[g>>2]=0}if((e|0)!=(h|0))continue;break}}uc(j)}j=J[b>>2];f=H[b+11|0];J[a+88>>2]=0;e=K[b+11|0];g=e<<24>>24<0?J[b+4>>2]:e;J[a+84>>2]=g;if((g|0)>0){e=vc((n=-1,o=vEb(g,0,96,0)|4,p=jc,p?n:o));J[e>>2]=g;h=e+4|0;e=h;i=P(g,96);l=i-96|0;m=((l>>>0)/96|0)+1&7;if(m)while(1){J[e+68>>2]=0;J[e+72>>2]=0;J[e+84>>2]=0;J[e+88>>2]=0;J[e+76>>2]=0;J[e+80>>2]=0;J[e+92>>2]=1;e=e+96|0;k=k+1|0;if((m|0)!=(k|0))continue;break}if(l>>>0>=672){k=h+i|0;while(1){J[e+68>>2]=0; +J[e+72>>2]=0;J[e+84>>2]=0;J[e+88>>2]=0;J[e+76>>2]=0;J[e+80>>2]=0;J[e+164>>2]=0;J[e+168>>2]=0;J[e+92>>2]=1;J[e+172>>2]=0;J[e+176>>2]=0;J[e+180>>2]=0;J[e+184>>2]=0;J[e+260>>2]=0;J[e+264>>2]=0;J[e+188>>2]=1;J[e+268>>2]=0;J[e+272>>2]=0;J[e+276>>2]=0;J[e+280>>2]=0;J[e+356>>2]=0;J[e+360>>2]=0;J[e+284>>2]=1;J[e+364>>2]=0;J[e+368>>2]=0;J[e+372>>2]=0;J[e+376>>2]=0;J[e+380>>2]=1;J[e+452>>2]=0;J[e+456>>2]=0;J[e+460>>2]=0;J[e+464>>2]=0;J[e+468>>2]=0;J[e+472>>2]=0;J[e+548>>2]=0;J[e+552>>2]=0;J[e+476>>2]=1;J[e+ +556>>2]=0;J[e+560>>2]=0;J[e+564>>2]=0;J[e+568>>2]=0;J[e+644>>2]=0;J[e+648>>2]=0;J[e+572>>2]=1;J[e+652>>2]=0;J[e+656>>2]=0;J[e+660>>2]=0;J[e+664>>2]=0;J[e+740>>2]=0;J[e+744>>2]=0;J[e+668>>2]=1;J[e+748>>2]=0;J[e+752>>2]=0;J[e+756>>2]=0;J[e+760>>2]=0;J[e+764>>2]=1;e=e+768|0;if((k|0)!=(e|0))continue;break}}b=(f|0)<0?j:b;J[a+80>>2]=h;k=0;e=0;if(g>>>0>=4){j=g&-4;a=0;while(1){f=J[b+(e<<2)>>2];i=P(e,96)+h|0;H[i+64|0]=0;J[i>>2]=f;f=e|1;i=J[b+(f<<2)>>2];f=P(f,96)+h|0;H[f+64|0]=0;J[f>>2]=i;f=e|2;i=J[b+(f<<2)>> +2];f=P(f,96)+h|0;H[f+64|0]=0;J[f>>2]=i;f=e|3;i=J[b+(f<<2)>>2];f=P(f,96)+h|0;H[f+64|0]=0;J[f>>2]=i;e=e+4|0;a=a+4|0;if((j|0)!=(a|0))continue;break}}a=g&3;if(a)while(1){g=J[b+(e<<2)>>2];j=P(e,96)+h|0;H[j+64|0]=0;J[j>>2]=g;e=e+1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}return}J[a+80>>2]=0}function p7(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;n=fc-1024|0;fc=n;q=K[a+8|0];if(q){k=K[a+9|0];f=Ac(n,0,1024);h=J[a+4>>2];a:{if(!h)break a;e=J[a>>2];if(h>>>0>=4){l= +h&-4;while(1){g=e+k|0;j=f+(K[g|0]<<2)|0;J[j>>2]=J[j>>2]+1;j=f+(K[g+8|0]<<2)|0;J[j>>2]=J[j>>2]+1;j=f+(K[g+16|0]<<2)|0;J[j>>2]=J[j>>2]+1;g=f+(K[g+24|0]<<2)|0;J[g>>2]=J[g>>2]+1;e=e+32|0;i=i+4|0;if((l|0)!=(i|0))continue;break}}i=h&3;if(!i)break a;g=0;while(1){l=f+(K[e+k|0]<<2)|0;J[l>>2]=J[l>>2]+1;e=e+8|0;g=g+1|0;if((i|0)!=(g|0))continue;break}}i=h>>>1|0;e=0;while(1){g=d;d=d+1|0;e=J[f+(g<<2)>>2]+e|0;if(i>>>0>e>>>0)continue;break}f=J[a>>2];d=f+(h<<3)|0;b:{if(!h){e=f;f=d;break b}e=g-((e|0)==(h|0))|0;while(1){c:{if(e>>> +0>=K[f+k|0]){f=f+8|0;break c}g=J[f>>2];i=J[f+4>>2];d=d-8|0;h=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=h;J[d>>2]=g;J[d+4>>2]=i}if((d|0)!=(f|0))continue;break}e=J[a>>2]}J[b>>2]=e;d=f;f=J[a>>2];d=d-f|0;e=d>>>3|0;J[b+4>>2]=e;f=f+(d&-8)|0;J[c>>2]=f;o=J[a+4>>2]-e|0;J[c+4>>2]=o;e=0;d=0;r=J[b+4>>2];if(r>>>0>=2){e=J[b>>2];g=K[e|0];h=g;i=K[e+1|0];k=i;p=1;l=K[e+3|0];j=l;a=K[e+2|0];m=a;while(1){d=K[e+3|0];l=(d|0)<(l|0)?l:d;j=(d|0)>(j|0)?j:d;d=K[e+2|0];a=(a|0)>(d|0)?a:d;m=(d|0)>(m|0)?m:d;d=K[e+1|0];k=(d|0)<(k|0)?k: +d;i=(d|0)>(i|0)?i:d;d=K[e|0];h=(d|0)<(h|0)?h:d;g=(d|0)>(g|0)?g:d;e=e+8|0;p=p+1|0;if((r|0)!=(p|0))continue;break}d=h-g|0;g=k-i|0;i=(d|0)>(g|0)?d:g;a=a-m|0;h=(a|0)<(i|0)?i:a;k=l-j|0;e=(h|0)>(k|0)?h:k;d=(h|0)<(k|0)?3:(a|0)>(i|0)?2:(d|0)<(g|0)}H[b+8|0]=e;H[b+9|0]=d;e=0;if(o>>>0>=2){d=K[f|0];g=d;h=K[f+1|0];i=h;m=1;k=K[f+3|0];l=k;j=K[f+2|0];a=j;while(1){b=K[f+3|0];k=(b|0)<(k|0)?k:b;l=(b|0)>(l|0)?l:b;b=K[f+2|0];j=(b|0)<(j|0)?j:b;a=(a|0)<(b|0)?a:b;b=K[f+1|0];i=(b|0)<(i|0)?i:b;h=(b|0)>(h|0)?h:b;b=K[f|0];g= +(b|0)<(g|0)?g:b;d=(b|0)>(d|0)?d:b;f=f+8|0;m=m+1|0;if((o|0)!=(m|0))continue;break}b=g-d|0;f=i-h|0;d=(b|0)>(f|0)?b:f;a=j-a|0;e=(a|0)<(d|0)?d:a;g=k-l|0;s=(e|0)>(g|0)?e:g;e=(e|0)<(g|0)?3:(a|0)>(d|0)?2:(b|0)<(f|0)}H[c+8|0]=s;H[c+9|0]=e}fc=n+1024|0;return(q|0)!=0|0}function gt(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;f=1;a:{b:switch(b-a>>3){case 2:e=b-8|0;d=J[e>>2];c=J[a>>2];if(!(O[d+16>>3]>3]))break a;J[a>>2]=d;J[e>>2]=c;f=J[a+4>>2];c=a;a=b-4|0;J[c+4>>2]=J[a>>2];J[a>>2]=f;return 1; +case 3:g=b-8|0;d=J[g>>2];h=O[d+16>>3];c=J[a+8>>2];i=O[c+16>>3];j=J[a>>2];l=O[j+16>>3];c:{if(!(i>2]=d;J[g>>2]=c;d=a+12|0;c=J[d>>2];b=b-4|0;J[a+12>>2]=J[b>>2];J[b>>2]=c;c=J[a+8>>2];b=J[a>>2];if(!(O[c+16>>3]>3]))break a;J[a+8>>2]=b;J[a>>2]=c;e=a+4|0;break c}if(h>2]=d;J[g>>2]=j;d=b-4|0;break c}J[a+8>>2]=j;J[a>>2]=c;c=J[a+4>>2];e=a+12|0;J[a+4>>2]=J[e>>2];J[a+12>>2]=c;c=J[g>>2];if(!(l>O[c+16>>3]))break a;J[a+8>>2]=c;J[g>>2]=j;d=b-4|0}a=J[e>>2];J[e>>2]= +J[d>>2];J[d>>2]=a;return 1;case 4:Pv(a,a+8|0,a+16|0,b-8|0);return 1;case 5:rr(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}k=J[a+16>>2];h=O[k+16>>3];c=J[a+8>>2];i=O[c+16>>3];g=J[a>>2];l=O[g+16>>3];d:{e:{if(!(i>2]=c;J[a+8>>2]=k;d=a+12|0;c=J[d>>2];J[a+12>>2]=J[a+20>>2];J[a+20>>2]=c;if(!(h>2]=g;J[a>>2]=k;e=a+4|0;break e}if(h>2]=g;J[a>>2]=k;d=a+20|0;break e}J[a+8>>2]=g;J[a>>2]=c;c=J[a+4>>2];e=a+12|0;J[a+ +4>>2]=J[e>>2];J[a+12>>2]=c;if(!(h>2]=g;J[a+8>>2]=k;d=a+20|0}c=J[e>>2];J[e>>2]=J[d>>2];J[d>>2]=c}c=a+24|0;if((c|0)==(b|0))break a;e=a+16|0;f:{while(1){n=J[c>>2];m=J[e>>2];if(O[n+16>>3]>3]){k=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;d=c;while(1){g=J[e+4>>2];f=e;J[e>>2]=0;J[e+4>>2]=0;J[d>>2]=m;e=J[d+4>>2];J[d+4>>2]=g;g:{if(!e)break g;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break g;kc[J[J[e>>2]+8>>2]](e);Gc(e)}h:{if((a|0)==(f|0)){f=a;break h}d=f;e=d-8|0;m=J[e>>2];if(O[n+16>>3]>3])continue}break}J[f>> +2]=n;d=J[f+4>>2];J[f+4>>2]=k;i:{if(!d)break i;f=J[d+4>>2];J[d+4>>2]=f-1;if(f)break i;kc[J[J[d>>2]+8>>2]](d);Gc(d)}j=j+1|0;if((j|0)==8)break f}e=c;c=c+8|0;if((c|0)!=(b|0))continue;break}return 1}f=(c+8|0)==(b|0)}return f}function _z(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;f=1;a:{b:switch(b-a>>3){case 2:e=b-8|0;d=J[e>>2];c=J[a>>2];if(!(O[d+32>>3]>3]))break a;J[a>>2]=d;J[e>>2]=c;f=J[a+4>>2];c=a;a=b-4|0;J[c+4>>2]=J[a>>2];J[a>>2]=f;return 1;case 3:g=b-8|0;d=J[g>>2];h=O[d+32>>3]; +c=J[a+8>>2];i=O[c+32>>3];j=J[a>>2];l=O[j+32>>3];c:{if(!(i>2]=d;J[g>>2]=c;d=a+12|0;c=J[d>>2];b=b-4|0;J[a+12>>2]=J[b>>2];J[b>>2]=c;c=J[a+8>>2];b=J[a>>2];if(!(O[c+32>>3]>3]))break a;J[a+8>>2]=b;J[a>>2]=c;e=a+4|0;break c}if(h>2]=d;J[g>>2]=j;d=b-4|0;break c}J[a+8>>2]=j;J[a>>2]=c;c=J[a+4>>2];e=a+12|0;J[a+4>>2]=J[e>>2];J[a+12>>2]=c;c=J[g>>2];if(!(l>O[c+32>>3]))break a;J[a+8>>2]=c;J[g>>2]=j;d=b-4|0}a=J[e>>2];J[e>>2]=J[d>>2];J[d>>2]=a;return 1;case 4:$z(a, +a+8|0,a+16|0,b-8|0);return 1;case 5:Qv(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}k=J[a+16>>2];h=O[k+32>>3];c=J[a+8>>2];i=O[c+32>>3];g=J[a>>2];l=O[g+32>>3];d:{e:{if(!(i>2]=c;J[a+8>>2]=k;d=a+12|0;c=J[d>>2];J[a+12>>2]=J[a+20>>2];J[a+20>>2]=c;if(!(h>2]=g;J[a>>2]=k;e=a+4|0;break e}if(h>2]=g;J[a>>2]=k;d=a+20|0;break e}J[a+8>>2]=g;J[a>>2]=c;c=J[a+4>>2];e=a+12|0;J[a+4>>2]=J[e>>2];J[a+12>>2]=c;if(!(h>2]=g;J[a+8>>2]=k;d=a+20|0}c=J[e>>2];J[e>>2]=J[d>>2];J[d>>2]=c}c=a+24|0;if((c|0)==(b|0))break a;e=a+16|0;f:{while(1){n=J[c>>2];m=J[e>>2];if(O[n+32>>3]>3]){k=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;d=c;while(1){g=J[e+4>>2];f=e;J[e>>2]=0;J[e+4>>2]=0;J[d>>2]=m;e=J[d+4>>2];J[d+4>>2]=g;g:{if(!e)break g;d=J[e+4>>2];J[e+4>>2]=d-1;if(d)break g;kc[J[J[e>>2]+8>>2]](e);Gc(e)}h:{if((a|0)==(f|0)){f=a;break h}d=f;e=d-8|0;m=J[e>>2];if(O[n+32>>3]>3])continue}break}J[f>>2]=n;d=J[f+4>>2];J[f+4>>2]=k; +i:{if(!d)break i;f=J[d+4>>2];J[d+4>>2]=f-1;if(f)break i;kc[J[J[d>>2]+8>>2]](d);Gc(d)}j=j+1|0;if((j|0)==8)break f}e=c;c=c+8|0;if((c|0)!=(b|0))continue;break}return 1}f=(c+8|0)==(b|0)}return f}function OB(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;f=J[a+200>>2];b=Qk(J[a+24>>2],f);if(b){J[b+28>>2]=J[b+28>>2]+1;return b}a:{b:{c:{e=J[a+424>>2];a=J[e>>2];if(!a)break c;if(Eg(J[a>>2],f))break c;a=J[e>>2];break b}b=4;k=e+4|0;d:{e:{a=J[e+4>>2];if(a)if(!Eg(J[a>>2],f))break e; +f:{a=J[e+8>>2];if(!a)break f;if(Eg(J[a>>2],f))break f;b=8;break e}g:{a=J[e+12>>2];if(!a)break g;if(Eg(J[a>>2],f))break g;b=12;break e}b=0;a=fc-384|0;fc=a;h:{i:{j:{c=Qk(J[J[693464]+28>>2],f);if(c)j=Qn(J[c+4>>2],820943);else j=0;k:{if(!j){J[a>>2]=f;Cc(1,-1,776640,a);break k}b=vc(32);J[699344]=0;c=_(4,8)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;J[699344]=0;g=aa(3350,c|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1){a=Z()|0;uc(c);break i}J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=g;J[b+28>>2]=1;J[b+12>>2]=0; +J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;r=b,s=Gd(8,16),J[r+12>>2]=s;if(Qw(a+128|0,j)){c=0;l=8;g=1;while(1){l:{m:{h=Og(a+128|0,778332);if(!h)break m;i=Og(0,778332);if(!i)break m;d=Og(0,778332);o=d?i:h;m=d?d:i;d=Yc(m);i=(d|0)/2|0;if((d|0)<10){d=J[b+12>>2];p=J[b+16>>2];if((p|0)==(l|0)){l=l<<1;d=Wd(d,l,16);J[b+12>>2]=d}d=(p<<4)+d|0;J[a+64>>2]=d;Zg(h,778462,a- -64|0);J[a+48>>2]=d+4;Zg(o,778462,a+48|0);J[a+32>>2]=d+8;Zg(m,778462,a+32|0);J[d+12>>2]=i;J[b+16>>2]=J[b+16>>2]+1;break l}if((h|0)==(o|0)){if((c| +0)==(q|0)){q=c+16|0;n=Wd(n,q,24);J[b+20>>2]=n;c=J[b+24>>2]}d=P(c,24)+n|0;J[a+96>>2]=d;Zg(h,778462,a+96|0);c=0;while(1){J[a+80>>2]=a+124;Zg((c<<1)+m|0,779708,a+80|0);H[(c+d|0)+4|0]=J[a+124>>2];c=c+1|0;if((i|0)!=(c|0))continue;break}J[d+20>>2]=i;c=J[b+24>>2]+1|0;J[b+24>>2]=c;break l}J[a+116>>2]=f;J[a+112>>2]=g;Cc(1,-1,781295,a+112|0);break l}J[a+20>>2]=f;J[a+16>>2]=g;Cc(1,-1,781295,a+16|0)}g=g+1|0;if(Qw(a+128|0,j))continue;break}}pg(j)}fc=a+384|0;a=b;break h}a=Z()|0}uc(b);ba(a|0);B()}b=0;if(!a)break a; +b=J[e+12>>2];if(b)Mo(b);b=J[e+4>>2];c=J[e>>2];J[k+8>>2]=J[e+8>>2];J[k>>2]=c;J[k+4>>2]=b;break d}a=J[b+e>>2];cd(k,e,b)}J[e>>2]=a}J[a+28>>2]=J[a+28>>2]+1;b=a}return b}function $7a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{f=J[a+4>>2];h=J[a>>2];e=(f-h|0)/144|0;g=e+1|0;if(g>>>0<29826162){d=(J[a+8>>2]-h|0)/144|0;c=d<<1;c=d>>>0>=14913080?29826161:c>>>0>g>>>0?c:g;if(c>>>0>=29826162)break a;d=P(e,144);g=P(c,144);e=vc(g);c=d+e|0;O[c>>3]=O[b>>3];O[c+8>>3]=O[b+8>>3];O[c+16>>3]=O[b+16>>3];O[c+24>>3]= +O[b+24>>3];O[c+32>>3]=O[b+32>>3];O[c+40>>3]=O[b+40>>3];d=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=d;d=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=d;J[c+64>>2]=J[b+64>>2];J[c+68>>2]=J[b+68>>2];J[b+64>>2]=0;J[b+68>>2]=0;O[c+72>>3]=O[b+72>>3];O[c+80>>3]=O[b+80>>3];O[c+88>>3]=O[b+88>>3];O[c+96>>3]=O[b+96>>3];O[c+104>>3]=O[b+104>>3];O[c+112>>3]=O[b+112>>3];d=J[b+124>>2];J[c+120>>2]=J[b+120>>2];J[c+124>>2]=d;d=J[b+132>>2];J[c+128>>2]=J[b+128>>2];J[c+132>>2]=d;J[c+136>>2]=J[b+136>>2];J[c+140>>2]=J[b+ +140>>2];J[b+136>>2]=0;J[b+140>>2]=0;i=e+g|0;g=c+144|0;b:{if((f|0)==(h|0)){b=c;break b}while(1){b=c-144|0;d=f-144|0;O[b>>3]=O[d>>3];O[b+8>>3]=O[d+8>>3];O[b+16>>3]=O[d+16>>3];O[b+24>>3]=O[d+24>>3];O[b+32>>3]=O[d+32>>3];O[b+40>>3]=O[d+40>>3];e=J[d+52>>2];J[b+48>>2]=J[d+48>>2];J[b+52>>2]=e;e=J[d+60>>2];J[b+56>>2]=J[d+56>>2];J[b+60>>2]=e;J[b- -64>>2]=J[d- -64>>2];e=J[d+68>>2];J[b+68>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;e=c-144|0;f=f-144|0;O[e+72>>3]=O[f+72>>3];O[e+80>>3]=O[f+80>>3];O[e+88>>3]=O[f+88>>3];O[e+ +96>>3]=O[f+96>>3];O[e+104>>3]=O[f+104>>3];O[e+112>>3]=O[f+112>>3];c=J[f+124>>2];J[e+120>>2]=J[f+120>>2];J[e+124>>2]=c;c=J[f+132>>2];J[e+128>>2]=J[f+128>>2];J[e+132>>2]=c;J[e+136>>2]=J[f+136>>2];c=J[f+140>>2];J[e+140>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;c=b;f=d;if((d|0)!=(h|0))continue;break}}J[a+8>>2]=i;f=J[a>>2];J[a>>2]=b;b=J[a+4>>2];J[a+4>>2]=g;if((b|0)!=(f|0))while(1){a=b;b=b-144|0;d=J[b+140>>2];c:{if(!d)break c;c=J[d+4>>2];J[d+4>>2]=c-1;if(c)break c;kc[J[J[d>>2]+8>>2]](d);Gc(d)}c=J[a-76>>2];d:{if(!c)break d; +a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break d;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b|0)!=(f|0))continue;break}if(f)uc(f);return}Fg(a);B()}Pd();B()}function MV(a){var b=0,c=0,d=0,e=Q(0),f=0,g=0,h=0,i=0,j=0,k=Q(0),l=Q(0),m=Q(0),n=0,o=Q(0),p=Q(0),q=Q(0),r=Q(0),s=Q(0),t=0,u=0,v=0,w=0,x=0,y=0,z=Q(0),A=0,B=0,C=0,D=0;i=fc-32|0;fc=i;a:{b:{if(J[a+68>>2])break b;d=Dc(6168);J[a+68>>2]=d;if(d)break b;Uc(J[J[a>>2]+628>>2],2641952,82639,0);a=0;break a}d=J[a>>2];J[i+16>>2]=i+28;$i(d,529,i+16|0);d=J[a>>2];J[i>>2]=i+24;$i(d, +532,i);f=J[i+28>>2];d=J[i+24>>2];b=J[a+68>>2];Sg(b+24|0,0,256);g=b+280|0;J[b>>2]=g;while(1){H[c+g|0]=c;a=c|1;H[a+g|0]=a;a=c|2;H[a+g|0]=a;a=c|3;H[a+g|0]=a;a=c|4;H[a+g|0]=a;a=c|5;H[a+g|0]=a;a=c|6;H[a+g|0]=a;a=c|7;H[a+g|0]=a;c=c+8|0;if((c|0)!=256)continue;break}Sg(b+536|0,255,512);u=b+5144|0;J[b+20>>2]=u;v=b+4120|0;J[b+16>>2]=v;w=b+3096|0;J[b+12>>2]=w;x=b+2072|0;J[b+8>>2]=x;y=b+1048|0;J[b+4>>2]=y;k=N[d+12>>2];p=Q(N[d+16>>2]+Q(-128));l=N[d+20>>2];q=N[d>>2];z=N[d+4>>2];r=Q(N[d+8>>2]+Q(-128));c:{if(Q(R(r))< +Q(2147483648)){a=~~r;break c}a=-2147483648}A=a;if(Q(R(p))>2];e=Q(Q(2)-Q(m+m));h=+Q(e*Q(65536))+.5;d:{if(R(h)<2147483648){d=~~h;break d}d=-2147483648}s=N[f>>2];o=Q(Q(2)-Q(s+s));h=+Q(o*Q(65536))+.5;e:{if(R(h)<2147483648){a=~~h;break e}a=-2147483648}k=Q(k+Q(-128));l=Q(l+Q(-128));m=Q(m*e);e=N[f+4>>2];h=+Q(Q(m/e)*Q(65536))+.5;f:{if(R(h)<2147483648){b=~~h;break f}b=-2147483648}C=b;m=Q(k-r);k=Q(l-p);l=Q(z-q);h=+Q(Q(Q(s*o)/e)*Q(65536))+.5;g:{if(R(h)<2147483648){b= +~~h;break g}b=-2147483648}j=m!=Q(0);c=k!=Q(0);f=l!=Q(0);if(Q(R(q))>2]=P(a,f)+32768>>16;D=n+x|0;e=Q(Q(Q(c-A|0)*Q(127))/o);i:{if(Q(R(e))>2]=P(d,j)+32768>>16;J[n+w>>2]=0-P(b,f);J[n+v>>2]=32768-P(j,C);j=n+u|0;e=Q(Q(Q((c-g|0)+128|0)*Q(255))/l);j:{if(Q(R(e))>2]=f;c=c+1|0;t=t+1|0;if((t|0)!=256)continue;break}a=1}fc=i+32|0;return a}function pya(a){a=a|0;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;o=fc-32|0;fc=o;a:{if(L[a+16>>1]>=3){a=Qc(o+8|0,2387643,2385834,402,2419052,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}b:{if(!J[a+20>>2])break b;i=a+40|0;xe(i,0,1);xe(a+52|0,0,4);g=fc-16|0;fc=g;c:{d:{e:{f:{g:{d=a;if(!(!L[a+8>>1]|!L[a+10>>1])){b=J[a+36>>2]; +a=J[a+20>>2];if(b|a)break g}xe(i,0,1);break f}if(!a){a=sh(g+4|0,g+12|0,J[d+60>>2],1);xc(J[g+12>>2],J[d+36>>2],J[d+60>>2]);J[699344]=0;wA(a,i);b=J[699344];J[699344]=0;if((b|0)==1)break e;h=J[d+60>>2];hd(a);break f}xe(i,0,1);j=(L[d+10>>1]<<1)+1024|0;k=sh(g+4|0,g+12|0,j,1);a=L[d+8>>1];if(a){m=a-1|0;n=(J[d+20>>2]+L[d+12>>1]|0)+P(m,L[d+14>>1])|0;while(1){c=L[d+10>>1];a=c<<1;if(((a+h|0)+2|0)>(j|0)){J[699344]=0;j=(a+j|0)+1024|0;ca(5614,k|0,j|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break d;c=L[d+10>>1]}q= +J[g+12>>2]+h|0;e=q;if(c){f=c+n|0;p=0;a=n;while(1){b=K[a|0];h:{i:{p=p^1;j:{k:{if(!(p&1)){if(!b){c=0;break j}c=1;b=a+1|0;if(f>>>0<=b>>>0){a=b;break j}l=f-a|0;while(1){a=b;if(!K[a|0])break k;c=c+1|0;b=a+1|0;if((f|0)!=(b|0))continue;break}c=l;a=f;break k}c=0;if(b)break j;c=1;b=a+1|0;if(f>>>0<=b>>>0){a=b;break j}l=f-a|0;while(1){a=b;if(K[a|0])break k;c=c+1|0;b=a+1|0;if((f|0)!=(b|0))continue;break}c=l;a=f}if(c>>>0>191)break i}H[e|0]=c;b=1;break h}l:{if(c>>>0<=16383){H[e+1|0]=c;H[e|0]=(c>>>8|0)+-64;break l}while(1){b= +e;H[b+2|0]=0;H[b|0]=255;H[b+1|0]=255;e=b+3|0;l=c>>>0>32766;c=c-16383|0;if(l)continue;break}if(c>>>0<=191){H[e|0]=c;b=1;break h}H[b+4|0]=c;H[b+3|0]=(c>>>8|0)+-64}b=2}e=b+e|0;if(a>>>0>>0)continue;break}}n=n-L[d+14>>1]|0;h=(h-q|0)+e|0;a=(m|0)>0;m=m-1|0;if(a)continue;break}}J[699344]=0;ca(5614,k|0,h|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;wA(i,k);a=J[699344];J[699344]=0;if((a|0)==1)break d;hd(k)}fc=g+16|0;break c}b=Z()|0;hd(a);ba(b|0);B()}a=Z()|0;hd(k);ba(a|0);B()}J[d+60>>2]=h; +if(!h)break b;xe(d+28|0,0,1);J[d+20>>2]=0}fc=o+32|0;return}B()}function Dhb(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;e=fc-1552|0;fc=e;f=6;g=J[a+4>>2];a:{if(M[g+16>>2]<=c>>>0)break a;h=J[g+136>>2];J[a+164>>2]=J[b+16>>2];J[a+168>>2]=J[b+20>>2];d=d&1024?d|3:d;j=d&1;H[a+161|0]=!j;f=!(d&3);H[a+160|0]=f;J[a+108>>2]=0;J[a+72>>2]=1869968492;i=e+36|0;f=kc[J[J[h+12>>2]>>2]](i,g,b,a,0,0,f,d>>>16&15,1754)|0;if(f)break a;k=d&1024;H[e+105|0]=k>>>10;f=V5(i,c);if(!f){l=K[a+ +161|0];m=K[a+160|0];c=e+1424|0;f=J[c+4>>2];J[e+24>>2]=J[c>>2];J[e+28>>2]=f;c=J[e+1420>>2];J[e+16>>2]=J[e+1416>>2];J[e+20>>2]=c;c=J[e+1436>>2];f=J[e+1432>>2];kc[J[J[h+12>>2]+4>>2]](i);J[a+124>>2]=J[a+124>>2]&1|4;if(k){b=J[a+156>>2];d=J[e+68>>2];J[a+32>>2]=(((d>>31)+d|0)+32768&-65536)>>16;d=a;a=J[e+76>>2];J[d+40>>2]=(((a>>31)+a|0)+32768&-65536)>>16;a=J[e+28>>2];J[b+20>>2]=J[e+24>>2];J[b+24>>2]=a;a=J[e+20>>2];J[b+12>>2]=J[e+16>>2];J[b+16>>2]=a;J[b+32>>2]=c;J[b+28>>2]=f;H[b+8|0]=1;f=0;break a}h=J[e+76>> +2];J[a+40>>2]=(((h>>31)+h|0)+32768&-65536)>>16;h=J[e+76>>2];J[a+56>>2]=(((h>>31)+h|0)+32768&-65536)>>16;H[J[a+156>>2]+8|0]=0;h=J[g+200>>2];g=J[g+208>>2];J[a+72>>2]=1869968492;g=g-h>>16;J[a+60>>2]=g;J[a+52>>2]=g;if(L[b+14>>1]<=23)J[a+124>>2]=J[a+124>>2]|256;g=a+108|0;b:{if(!(J[e+20>>2]|(J[e+16>>2]!=65536|J[e+28>>2]!=65536)))if(!J[e+24>>2])break b;kp(g,e+16|0);n=a,o=Wc(J[a+40>>2],J[e+16>>2]),J[n+40>>2]=o;n=a,o=Wc(J[a+52>>2],J[e+28>>2]),J[n+52>>2]=o}if(c|f){Xh(g,f,c);J[a+40>>2]=f+J[a+40>>2];J[a+52>> +2]=c+J[a+52>>2]}if(!(!l&j)){c=J[a+168>>2];h=J[a+164>>2];c:{if(J[e+108>>2]?m:0)break c;f=J[e+52>>2];b=I[f+2>>1];if((b|0)<=0)break c;b=b&65535;f=J[f+4>>2];while(1){n=f,o=Wc(J[f>>2],h),J[n>>2]=o;n=f,o=Wc(J[f+4>>2],c),J[n+4>>2]=o;f=f+8|0;i=b>>>0>1;b=b-1|0;if(i)continue;break}}n=a,o=Wc(J[a+40>>2],h),J[n+40>>2]=o;n=a,o=Wc(J[a+52>>2],c),J[n+52>>2]=o}Hq(g,e);b=J[e>>2];J[a+24>>2]=J[e+8>>2]-b;c=J[e+4>>2];f=J[e+12>>2];J[a+36>>2]=f;J[a+32>>2]=b;J[a+28>>2]=f-c;if(d&16)Xu(a+24|0,J[a+52>>2]);f=0;break a}kc[J[J[h+ +12>>2]+4>>2]](e+36|0)}fc=e+1552|0;return f|0}function fsa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;kc[J[J[a>>2]+20>>2]](a,J[a+32>>2],0,0)|0;J[a+24>>2]=0;c=fc-16|0;fc=c;d=f+4|0;J[d>>2]=0;J[d+4>>2]=J[685894];a:{b:{c:{d:{e:{f:{g:{e=J[b>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break g;g=J[b>>2]}J[699344]=0;J[c+4>>2]=g;ia(5665,c+8|0,0,0,c+4|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[c+8>>2];h:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,c+12| +0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break h;a=Z()|0;break e}J[c+12>>2]=0}J[699344]=0;aa(5153,d|0,c+12|0)|0;b=J[699344];J[699344]=0;i:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break i;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i}break b}a=Z()|0;zc(c+12|0);break e}b=J[d>>2];J[d+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+8>>2];J[c+8>>2]=0;j:{if(!b)break j;J[699344]=0;d=J[b+4>>2]-1| +0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break j;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[c+4>>2];J[c+4>>2]=0;k:{if(!b)break k;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(d)break k;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}fc=c+16|0;break a}a=Z()|0;break c}a=Z()|0;break d}zc(c+8|0)}zc(c+4|0)}wc(d);ba(a|0);B()}ea(0)|0;Bc();B()}l:{b=J[f+4>>2];m:{if(b){c=J[J[b>>2]+28>>2];J[699344]= +0;ca(c|0,f+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break m;a=Z()|0;break l}J[f+12>>2]=0}J[699344]=0;aa(5153,a+16|0,f+12|0)|0;b=J[699344];J[699344]=0;n:{if((b|0)!=1){b=J[f+12>>2];J[f+12>>2]=0;if(!b)break n;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break n;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break n}ea(0)|0;Bc();B()}a=Z()|0;zc(f+12|0);break l}b=a;a=J[a+16>>2];J[b+20>>2]=J[(a?a+12|0:2743576)>>2];wc(f+4|0);fc=f+16|0;return}wc(f+4| +0);ba(a|0);B()}function aoa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;J[a>>2]=0;H[a+11|0]=0;J[699344]=0;e=_(2226,a+16|0)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((b|0)!=1){I[a+408>>1]=0;J[a+400>>2]=0;J[a+404>>2]=0;J[a+384>>2]=0;H[a+395|0]=0;J[699344]=0;b=_(4,48)|0;d=J[699344];J[699344]=0;if((d|0)==1)break k;J[a+412>>2]=b;J[a+416>>2]=9;J[a+420>>2]=-2147483636;J[b+32>>2]=J[610040];d=J[610039];J[b+24>>2]=J[610038];J[b+28>>2]=d;d=J[610037];J[b+16>>2]=J[610036];J[b+20>>2]=d; +d=J[610035];J[b+8>>2]=J[610034];J[b+12>>2]=d;d=J[610033];J[b>>2]=J[610032];J[b+4>>2]=d;J[b+36>>2]=0;J[a+424>>2]=0;J[a+428>>2]=0;J[a+432>>2]=0;J[698537]=J[698537]+1;l:{if(H[a+11|0]>=0){J[699344]=0;ga(1631,a|0,b|0,9)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break l;break d}J[699344]=0;ga(1630,a|0,b|0,9)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d}b=J[698537];if((b|0)>9)break f;J[699344]=0;d=c+4|0;da(6259,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break j;J[699344]=0;b=ga(2280,d|0,0,2440168)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break i;J[c+24>>2]=J[b+8>>2];d=J[b+4>>2];J[c+16>>2]=J[b>>2];J[c+20>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[699344]=0;b=K[c+27|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+16>>2]:c+16|0)|0,(d?J[c+20>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+15|0]>=0)break e;uc(J[c+4>>2]);break e}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break g}b=Z()|0;if(H[c+27|0]>=0)break g;uc(J[c+16>>2])}if(H[c+15|0]>=0)break c;uc(J[c+4>>2]);break c}J[699344]= +0;d=c+16|0;da(6259,d|0,b|0);b=J[699344];J[699344]=0;m:{if((b|0)!=1){J[699344]=0;f=d;b=K[c+27|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+16>>2]:f)|0,(d?J[c+20>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break m;if(H[c+27|0]>=0)break e;uc(J[c+16>>2]);break e}b=Z()|0;break c}b=Z()|0;if(H[c+27|0]>=0)break c;uc(J[c+16>>2]);break c}fc=c+32|0;return a|0}b=Z()|0}if(H[a+423|0]>=0)break b;uc(J[a+412>>2])}if(H[a+395|0]<0)uc(J[a+384>>2]);bo(e)}if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}function mfb(a,b,c,d,e,f,g,h){a= +a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=Q(0),m=0,n=0;a:{if(!(!J[c>>2]&(d|0)==1|(!c|!d))){J[a+508>>2]=1;h=0;if(J[a+632>>2]==8)break a;kc[J[J[a>>2]+136>>2]](a,340208)|0;fs(a);i=ID(a,a+88|0);b=J[a+16>>2];g=J[a+12>>2];m=O[e>>3];n=O[f>>3];e=fc-144|0;fc=e;J[e+140>>2]=d;b:{c:{d:{e:{f:{g:{if(!J[i+4>>2]){d=Mx(e+136|0,b+48|0);J[699344]=0;Yk(d,b+52|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;cs(d,e+80|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;O[e+72>>3]=m;O[e+64>> +3]=n;J[699344]=0;f=aa(2259,e+60|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;bs(f);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;Yk(f,b+56|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;ce(f,e+72|0,e- -64|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;O[e+48>>3]=Q(O[e+80>>3]);O[e+40>>3]=Q(O[e+88>>3]);O[e+32>>3]=Q(O[e+96>>3]);O[e+24>>3]=Q(O[e+104>>3]);O[e+16>>3]=Q(O[e+112>>3]);O[e+8>>3]=Q(O[e+120>>3]);a=J[J[g>>2]+124>>2];J[699344]=0;j=a;a=e+48|0;k=e+40|0; +va(j|0,g|0,a|0,k|0,e+32|0,e+24|0,e+16|0,e+8|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break g;J[b+2940>>2]=J[g+160>>2];N[e+48>>2]=O[e+72>>3];N[e+40>>2]=O[e+64>>3];j=J[J[g>>2]+96>>2];J[699344]=0;na(j|0,g|0,c|0,e+140|0,a|0,k|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[e+48>>2]=0;J[e+40>>2]=0;h:{while(1){i:{J[e+32>>2]=0;a=J[J[g>>2]+200>>2];J[699344]=0;a=ha(a|0,g|0,e+32|0,e+48|0,e+40|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;if(!a)break h;k=J[e+32>>2];if(!k)continue;J[699344]=0;l=N[e+40>> +2];j:{if(Q(R(l))>2];k:{if(Q(R(l))>2]+4>>2]](i);return 0}J[a+508>>2]=0;h=kc[J[J[a>>2]+292>>2]](a,b,e,f,g,h)|0}return h|0}function Yd(a){var b=0,c=0,d=0,e=0;c=fc+-64|0;fc=c;b=J[J[a+36>> +2]+16>>2];a:{if(K[b|0]!=37)break a;b:{c:switch(J[a+172>>2]+1|0){case 0:if(J[a+212>>2])break a;J[a+84>>2]=18;J[c+16>>2]=2518;Hc(0,0,0,a,0,1,18,3,0,0,0,0,32906,c+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a;case 1:case 2:case 5:J[a+84>>2]=19;J[c+32>>2]=12717;Hc(0,0,0,a,0,1,19,3,0,0,0,0,32906,c+32|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a;case 15:J[a+84>>2]=20;J[c+48>>2]=12739;Hc(0,0,0,a,0,1,20,3,0,0,0,0,32906,c+48|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>> +2]=1;break a;case 3:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 16:case 17:break a;case 4:break c;default:break b}if(!J[a+96>>2]&J[a+40>>2]==1)break a;switch(K[b+1|0]){case 0:case 9:case 10:case 13:case 32:break a;default:break b}}Zd(a);b=hi(a);if(J[693384]){J[c>>2]=b;kc[J[663297]](J[693366],32810,c)}if(!b){Xe(a,24,0);break a}if(K[J[J[a+36>>2]+16>>2]]==59){Zd(a);d=J[a>>2];d:{if(!d)break d;d=J[d+96>>2];if(!d)break d;e=kc[d|0](J[a+4>>2],b)|0}if(J[a+172>>2]==-1)break a;if(!e){e:{if(!(J[a+ +88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){Uf(a,26,34968,b);break e}f:{if(!(!J[a+104>>2]|!J[a+112>>2])){Um(a,27,34968,b,0);break f}Vo(a,27,34968,b)}J[a+100>>2]=0}sk(a,0,0,0);break a}if(J[J[a+36>>2]+40>>2]!=3346){mu(a,z1(a,e));break a}d=J[e+48>>2];if((d&-2)==4){if(!(J[a+16>>2]|(K[a+360|0]&30|(d|0)!=5)))if(!J[a+104>>2])break a;if((mu(a,RK(a,e))|0)<0)break a;g:{if(J[a+292>>2])break g;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break g;Rd(a)}if(J[a+172>>2]==-1)break a;d=J[a+36>>2];b=J[d+16>>2];h:{if((J[d+ +20>>2]-b|0)<4)break h;H[c+60|0]=K[b|0];H[c+61|0]=K[b+1|0];H[c+62|0]=K[b+2|0];H[c+63|0]=K[b+3|0];b=Vr(c+60|0,4);if(!b)break h;Sr(a,b)}if(J[e+48>>2]!=5)break a;b=J[J[a+36>>2]+16>>2];if(K[b|0]!=60|K[b+1|0]!=63|(K[b+2|0]!=120|K[b+3|0]!=109))break a;if(K[b+4|0]!=108)break a;b=K[b+5|0]-9|0;if(b>>>0>23|!(1<>2]=f;m=a+168|0;J[a+48>>2]=m;f=J[a+64>>2];J[a+ +192>>2]=J[a+60>>2];J[a+196>>2]=f;J[a+188>>2]=c;J[a+184>>2]=b;J[a+180>>2]=e;J[a+176>>2]=d;J[a+172>>2]=g;f=m;while(1){n=J[f>>2];a:{b:{c:{d:{i=J[f+20>>2];k=J[f+12>>2];e=J[f+28>>2];g=J[f+4>>2];if((((i|0)<(k|0)?i:k)|0)>=(((e|0)<(g|0)?e:g)|0)){j=(e|0)>(g|0);if((((i|0)>(k|0)?i:k)|0)<=((j?e:g)|0))break d}b=J[f+24>>2];J[f+48>>2]=b;J[f+52>>2]=e;c=e+i|0;J[f+44>>2]=c>>1;d=g+k|0;J[f+12>>2]=d>>1;e=J[f+8>>2];j=e+n|0;J[f+8>>2]=j>>1;l=b;b=J[f+16>>2];h=l+b|0;J[f+40>>2]=h>>1;l=c;c=i+k|0;i=l+c|0;J[f+36>>2]=i>>2;c=c+ +d|0;J[f+20>>2]=c>>2;b=b+e|0;d=b+j|0;J[f+16>>2]=d>>2;b=b+h|0;J[f+32>>2]=b>>2;J[f+28>>2]=c+i>>3;J[f+24>>2]=b+d>>3;b=f+24|0;break c}if((e|0)!=(g|0))break b;b=f-24|0}J[a+48>>2]=b;break a}o=j?2:1;h=J[a+92>>2];if((o|0)!=(h|0)){b=J[a+4>>2];d=j?e&b-1:((b+e|0)-1&0-b)-e|0;c=J[a+36>>2];l=J[a+8>>2];e:{if(!h){b=c;break e}h=J[a+80>>2];b=J[h+8>>2];p=c-b>>2;if((p|0)<0){J[a+40>>2]=99;return 1}f:{if((b|0)==(c|0)){b=c;break f}J[h+16>>2]=p;if((d|0)>=(l|0)){b=L[h+12>>1];I[h+12>>1]=(b&8?16:32)|b}J[a+80>>2]=c;b=c+32|0; +J[a+36>>2]=b;J[c+8>>2]=b;J[c+16>>2]=0;J[h+28>>2]=c;I[a+76>>1]=L[a+76>>1]+1}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}H[a+79|0]=0}if(!J[a+84>>2]){J[a+84>>2]=b;J[a+80>>2]=b;b=b+32|0;J[a+36>>2]=b}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}c=J[a+80>>2];J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=b;J[c+28>>2]=0;J[c+4>>2]=0;b=K[a+164|0];I[c+12>>1]=b;g:{h:{if(!j){I[c+12>>1]=b|8;h=40;if((d|0)>=(l|0))break h;break g}h=16;if((d|0)<(l|0))break g}I[c+12>>1]=b|h}if(!J[a+88>>2])J[a+88>>2]=c;I[a+78>>1]=1;J[a+92>>2]= +o}b=J[a+72>>2];c=J[a+68>>2];i:{if(!j){if(!PD(a,3,1704,c,b))break a;break i}J[f+28>>2]=0-e;J[f+20>>2]=0-i;J[f+12>>2]=0-k;J[f+4>>2]=0-g;d=K[a+78|0];b=PD(a,3,1704,0-b|0,0-c|0);if(!(K[a+78|0]|!d)){c=J[a+80>>2];J[c+20>>2]=0-J[c+20>>2]}J[f+4>>2]=0-J[f+4>>2];if(!b)break a}return 1}f=J[a+48>>2];if(m>>>0<=f>>>0)continue;break}J[a+64>>2]=g;J[a+60>>2]=n;return 0}function Lg(a){var b=0,c=0,d=0,e=0,f=0;d=J[a>>2];c=J[a+4>>2];e=J[a+20>>2];f=J[e>>2];b=J[f>>2];J[e>>2]=J[f+12>>2];e=c-b|0;c=e>>>0>>0;e=c?e:b;b=(c? +b:0)+d|0;c=J[a+8>>2];while(1){c=c-1|0;J[a+8>>2]=c;d=b<<1;J[a>>2]=d;J[a+4>>2]=e<<1;a:{if(c){b=d;break a}c=J[a+28>>2];b:{c:{if((c|0)!=255){if(b&67108864){e=c+1|0;J[a+28>>2]=e;if((e|0)==255){J[a>>2]=d&134217726;b=J[a+24>>2];c=J[b+8>>2];d:{e:{if(c&7)break e;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break e}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break d}if((bd(b,255)|0)!=-1)break d}J[a+36>>2]=J[a+ +36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>20&255;b=b&1048575;break c}f:{if((c|0)<-1)break f;b=J[a+24>>2];c=J[b+8>>2];g:{if(c&7)break g;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break g}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break f}if((bd(b,e&255)|0)!=-1)break f}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>19&255;b=b&524287;c=8;break b}h:{if((c|0)<0)break h; +b=J[a+24>>2];d=J[b+8>>2];i:{if(d&7)break i;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break i}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break h}if((bd(b,c&255)|0)!=-1)break h}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>19&255;b=b&524287;c=8;break b}b=J[a+24>>2];c=J[b+8>>2];j:{k:{if(c&7)break k;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break k}J[b+4>>2]= +J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break j}if((bd(b,255)|0)!=-1)break j}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>20&255;b=b&1048575}c=7}J[a+8>>2]=c;J[a>>2]=b}e=J[a+4>>2];if(!(e&32768))continue;break}}function fJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc+-64|0;fc=d;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;a:{if(J[a>>2]!=7){Cc(0,-1,776469,0);break a}Ec(J[a+8>>2],777838, +d+48|0,0);b:{c:{d:{e:{if(J[d+48>>2]==4){c=J[d+56>>2];if(!Ic(c,778612)){b=d+32|0;Ec(J[a+8>>2],780496,b,0);e=vc(12);J[699344]=0;a=aa(3626,e|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break c;break e}if(!Ic(c,781454)){c=d+32|0;Ec(J[a+8>>2],782750,c,0);b=d+16|0;Ec(J[a+8>>2],780496,b,0);e=vc(16);J[699344]=0;a=ga(3627,e|0,c|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;break d}if(!Ic(c,783307)){e=vc(12);J[699344]=0;a=aa(3628,e|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break b;break e}if(!Ic(c, +784858)){c=d+32|0;Ec(J[a+8>>2],784858,c,0);e=vc(8);J[699344]=0;a=ga(3629,e|0,c|0,b|0)|0;f=J[699344];J[699344]=0;b=c;if((f|0)!=1)break c;break e}if(!Ic(c,785447)){b=d+32|0;Ec(J[a+8>>2],786449,b,0);e=vc(8);J[699344]=0;a=aa(3630,e|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break c;break e}if(!Ic(c,787193)){c=d+32|0;Ke(J[a+8>>2],787944,c);b=d+16|0;Ec(J[a+8>>2],789036,b,0);e=vc(16);J[699344]=0;a=ga(3631,e|0,c|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break d;break e}if(!Ic(c,789647)){b=d+32|0;Ec(J[a+ +8>>2],790880,b,0);e=vc(8);J[699344]=0;a=aa(3632,e|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break c;break e}if(!Ic(c,791554)){b=d+32|0;Ec(J[a+8>>2],782750,b,0);c=d+16|0;Ec(J[a+8>>2],792275,c,0);Ec(J[a+8>>2],793040,d,0);e=vc(32);J[699344]=0;a=ha(3633,e|0,b|0,c|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){yc(b);b=d;break d}break e}if(!Ic(c,794058)){c=d+32|0;Ke(J[a+8>>2],789036,c);b=d+16|0;Ec(J[a+8>>2],795035,b,0);e=vc(32);J[699344]=0;a=ga(3634,e|0,c|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break d; +break e}e=vc(8);J[699344]=0;a=aa(3635,e|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break b;break e}Cc(0,-1,776469,0);yc(d+48|0);break a}a=Z()|0;uc(e);ba(a|0);B()}yc(c)}yc(b)}yc(d+48|0);if(kc[J[J[a>>2]+8>>2]](a)|0){g=a;break a}kc[J[J[a>>2]+4>>2]](a)}fc=d- -64|0;return g|0}function Mg(a){var b=0,c=0,d=0,e=0,f=0;d=J[a>>2];c=J[a+4>>2];e=J[a+20>>2];f=J[e>>2];b=J[f>>2];J[e>>2]=J[f+8>>2];e=b>>>0>>0?c:b;b=(b>>>0<=c>>>0?b:0)+d|0;c=J[a+8>>2];while(1){c=c-1|0;J[a+8>>2]=c;d=b<<1;J[a>>2]=d;J[a+4>>2]=e<<1; +a:{if(c){b=d;break a}c=J[a+28>>2];b:{c:{if((c|0)!=255){if(b&67108864){e=c+1|0;J[a+28>>2]=e;if((e|0)==255){J[a>>2]=d&134217726;b=J[a+24>>2];c=J[b+8>>2];d:{e:{if(c&7)break e;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break e}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=255;break d}if((bd(b,255)|0)!=-1)break d}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>20&255;b=b&1048575;break c}f:{if((c| +0)<-1)break f;b=J[a+24>>2];c=J[b+8>>2];g:{if(c&7)break g;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break g}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break f}if((bd(b,e&255)|0)!=-1)break f}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>19&255;b=b&524287;c=8;break b}h:{if((c|0)<0)break h;b=J[a+24>>2];d=J[b+8>>2];i:{if(d&7)break i;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+ +8>>2]=d|4;break i}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c;break h}if((bd(b,c&255)|0)!=-1)break h}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>19&255;b=b&524287;c=8;break b}b=J[a+24>>2];c=J[b+8>>2];j:{k:{if(c&7)break k;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=c|4;break k}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=b;b=J[b+24>>2]; +J[c+24>>2]=b+1;H[b|0]=255;break j}if((bd(b,255)|0)!=-1)break j}J[a+36>>2]=J[a+36>>2]|1}J[a+32>>2]=J[a+28>>2];b=J[a>>2];J[a+28>>2]=b>>>20&255;b=b&1048575}c=7}J[a+8>>2]=c;J[a>>2]=b}e=J[a+4>>2];if(!(e&32768))continue;break}}function dV(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=fc-48|0;fc=g;d=J[a+12>>2];a:{b:{if(d&131072)break b;h=J[J[a+188>>2]+(b<<2)>>2];if(!h){d=J[a+628>>2];a=J[a>>2];J[g+8>>2]=b;J[g+4>>2]=0;J[g>>2]=a;Uc(d,83348,71921,g);c=0;break a}if(!(!(d&2048)|!((L[a+94>>1]|256)&d))){c:{if(!(d& +512))break c;c=J[a+596>>2];if(!c)break c;uc(c);d=J[a+12>>2]}d=d&-513;J[a+12>>2]=d;c=J[a+616>>2];e=J[a+184>>2]+(b<<2)|0;f=J[e>>2];if(!(c>>>0>=h>>>0&f>>>0<=c-h>>>0)){d=J[a+628>>2];e=J[a>>2];J[g+44>>2]=h;J[g+40>>2]=c-f;J[g+36>>2]=b;J[g+32>>2]=e;Uc(d,83348,72388,g+32|0);J[a+480>>2]=-1;c=0;break a}J[a+600>>2]=h;J[a+596>>2]=J[a+612>>2]+J[e>>2];break b}if(h>>>0>M[a+600>>2]){J[a+480>>2]=-1;if(!(d&512)){d=J[a+628>>2];a=J[a>>2];J[g+20>>2]=b;J[g+16>>2]=a;Uc(d,83348,72966,g+16|0);c=0;break a}c=0;if(!cV(a,h>>> +0<4294966272?h+1023&-1024:0))break a}e=J[a+596>>2];d=h;c=fc+-64|0;fc=c;d:{f=J[a+12>>2];if(!(f&131072)){e:{if(!(f&2048)){f=b<<2;if((kc[J[a+640>>2]](J[a+628>>2],J[f+J[a+184>>2]>>2],0)|0)!=J[f+J[a+184>>2]>>2]){d=J[a+628>>2];e=J[a>>2];f=J[a+472>>2];J[c+24>>2]=b;J[c+20>>2]=f;J[c+16>>2]=e;Uc(d,83348,79797,c+16|0);d=-1;break e}e=kc[J[a+632>>2]](J[a+628>>2],e,d)|0;if((e|0)==(d|0))break e;f=J[a+628>>2];i=J[a>>2];j=J[a+472>>2];J[c+12>>2]=d;J[c+8>>2]=e;J[c+4>>2]=j;J[c>>2]=i;Uc(f,83348,80037,c);d=-1;break e}i= +J[a+616>>2];f=J[J[a+184>>2]+(b<<2)>>2];if(i>>>0>>0){e=J[a+628>>2];j=J[a>>2];k=J[a+472>>2];J[c+48>>2]=d;J[c+44>>2]=i-f;J[c+40>>2]=b;J[c+36>>2]=k;J[c+32>>2]=j;Uc(e,83348,80506,c+32|0);d=-1;break e}Ue(e,f+J[a+612>>2]|0,d)}fc=c- -64|0;break d}fa(75579,76157,176,83472);B()}c=0;if((d|0)!=(h|0))break a;d=J[a+12>>2];if(d&(L[a+94>>1]|256))break b;mH(J[a+596>>2],h);d=J[a+12>>2]}if(!(d&32)){c=0;if(!(kc[J[a+516>>2]](a)|0))break a;d=J[a+12>>2]|32;J[a+12>>2]=d}J[a+480>>2]=b;c=J[a+176>>2];h=(b>>>0)/(c>>>0)| +0;J[a+472>>2]=P(J[a+100>>2],b-P(c,h)|0);c=0;e=0;if(!(d&131072)){e=J[J[a+188>>2]+(b<<2)>>2];c=J[a+596>>2]}J[a+608>>2]=e;J[a+604>>2]=c;c=kc[J[a+520>>2]](a,h&65535)|0}fc=g+48|0;return c}function yQa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!a|!b)break a;b:{c=K[a+407|0];if(c>>>0>7)break b;J[a+744>>2]=17;d=b+32|0;e=8-c|0;Dg(a,d+c|0,e);H[a+407|0]=8;c:{if(o_(d,c,e)){if(c>>>0<=3)if(o_(d,c,4-c|0))break c;Ld(a,58323);B()}if(c>>>0>2)break b;J[a+200>>2]=J[a+200>>2]|4096;break b}Ld(a,58118);B()}d:{e:{while(1){f:{d= +dB(a);g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{c=J[a+348>>2];if((c|0)!=1229278788){if((c|0)!=1229472850){if((c|0)!=1229209940)break r;c=J[a+200>>2];if(c&8)J[a+200>>2]=c|8192;e=sw(a,1229209940);c=J[a+200>>2];if(!e)break q;J[a+200>>2]=c|4;mw(a,b,d);b=J[a+200>>2];if(!(b&1))break f;if(b&2|K[a+401|0]!=3)break a;Ld(a,59249);B()}LY(a,b,d);continue}IY(a,d);continue}if(sw(a,c)){mw(a,b,d);if((c|0)!=1347179589)continue;J[a+200>>2]=J[a+200>>2]|2;continue}s:{if((c|0)<=1883789682){if((c|0)<=1749635923){if((c|0)<=1665684044){if((c| +0)==1347179589)break s;if((c|0)!=1649100612)break g;cY(a,b,d);continue}if((c|0)==1665684045)break p;if((c|0)!=1732332865)break g;zY(a,b,d);continue}if((c|0)<=1767135347){if((c|0)==1749635924)break o;if((c|0)!=1766015824)break g;gY(a,b,d);continue}if((c|0)==1767135348)break h;if((c|0)==1866876531)break n;if((c|0)!=1883455820)break g;WX(a,b,d);continue}if((c|0)<=1934772033){if((c|0)<=1933787467){if((c|0)==1883789683)break l;if((c|0)!=1933723988)break g;vY(a,b,d);continue}if((c|0)==1933787468)break m; +if((c|0)!=1934642260)break g;eY(a,b,d);continue}if((c|0)<=1950960964){if((c|0)==1934772034)break k;if((c|0)!=1950701684)break g;SX(a,b,d);continue}if((c|0)==1950960965)break j;if((c|0)==1951551059)break i;if((c|0)!=2052348020)break g;RX(a,b,d);continue}JY(a,b,d);continue}if(!(c&1))break e;if(!(c&2)&K[a+401|0]==3)break d;J[a+380>>2]=d;J[a+200>>2]=c|4;break a}pY(a,b,d);continue}bY(a,b,d);continue}ZX(a,b,d);continue}VX(a,b,d);continue}_X(a,b,d);continue}jY(a,b,d);continue}TX(a,b,d);continue}dY(a,b,d); +continue}NX(a,b,d);continue}mw(a,b,d);continue}break}Ld(a,59083);B()}Ld(a,59083);B()}Ld(a,59249);B()}}function Uub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if((c|0)!=13){Jc(a,1028,0,0);return 1028}c=J[a+8>>2];if(c-1>>>0>=2){Jc(a,1030,0,0);return 1030}a:{b:{c:{if(!((c|0)!=1|M[a+272>>2]<2)|(K[a+286|0]|K[a+287|0]))break c;if(K[a+300|0]|K[a+289|0])break c;H[a+286|0]=1;f=K[a+288|0];if(!(K[a+2253|0]!=7?f:0)){c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+316>>2]=c<<24|(c&65280)<< +8|(c>>>8&65280|c>>>24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+320>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}c=K[d+8|0];H[a+324|0]=c;g=K[d+9|0];H[a+325|0]=g;h=K[d+10|0];H[a+326|0]=h;i=K[d+11|0];H[a+327|0]=i;j=K[d+12|0];H[a+328|0]=j;if(!(1<>>0<=16:0))break b;d:{e:switch(g|0){case 3:if(c>>>0<9)break d;break b;case 0:break d;case 2:case 4:case 6:break e;default:break a}if(c>>>0>7)break d;break b}if(h){Jc(a,1038,0,0);return 1038}if(i){Jc(a,1039,0,0);return 1039}if(j>>>0>=2){Jc(a, +1040,0,0);return 1040}f:{if(!f)break f;f=K[J[J[a+528>>2]+88>>2]+45|0];if((f|0)==(g|0)|(f?(g|0)==3:0)|!g&(f|0)!=3)break f;break a}g:{h:{if(K[a+284|0])break h;J[a+12>>2]=1;H[a+284|0]=1;f=J[a+316>>2];J[a+16>>2]=f;h=J[a+320>>2];J[a+20>>2]=h;i:{j:switch(g-3|0){case 0:c=8;break i;case 1:case 3:break i;default:break j}c=1}H[a+44|0]=c;if(!(f>>>0<=M[a+124>>2]&h>>>0<=M[a+128>>2])){c=4097;if(!Jc(a,4097,0,0))break g}c=J[a+188>>2];if(!c)break h;if(kc[c|0](a,J[a+16>>2],J[a+20>>2])|0)break h;Jc(a,904,0,0);return 904}if(!K[a+ +288|0])J[a+48>>2]=J[a+48>>2]+1;c=EO(a);if(c)break g;c=0;if(!K[a+112|0])break g;c=kc[J[b+4>>2]](a,b,e)|0;if(c)break g;b=J[e>>2];c=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+32>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[b+36>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+40|0]=K[a+324|0];H[b+41|0]=K[a+325|0];H[b+42|0]=K[a+326|0];H[b+43|0]=K[a+327|0];H[b+44|0]=K[a+328|0];c=0}return c|0}Jc(a,1029,0,0);return 1029}Jc(a,1036,0,0);return 1036}Jc(a, +1037,0,0);return 1037}function yha(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;t=fc-16|0;fc=t;J[c>>2]=a;w=d&512;x=h<<2;while(1){if((u|0)==4){if(K[n+11|0]>>>7|0)e=J[n+4>>2];else e=K[n+11|0]&127;if(e>>>0>1){z=t,A=Ei(n),J[z+12>>2]=A;z=c,A=jR(ez(t+12|0,1),Fp(n),J[c>>2]),J[z>>2]=A}d=d&176;if((d|0)!=16){if((d|0)==32)a=J[c>>2];J[b>>2]=a}fc=t+16|0}else{a:{b:switch(H[i+u|0]){case 0:J[b>> +2]=J[c>>2];break a;case 1:J[b>>2]=J[c>>2];h=kc[J[J[g>>2]+44>>2]](g,32)|0;p=J[c>>2];J[c>>2]=p+4;J[p>>2]=h;break a;case 3:if(K[n+11|0]>>>7|0)h=J[n+4>>2];else h=K[n+11|0]&127;if(!h)break a;if(K[n+11|0]>>>7|0)h=J[n>>2];else h=n;h=J[h>>2];p=J[c>>2];J[c>>2]=p+4;J[p>>2]=h;break a;case 2:p=!w;if(K[m+11|0]>>>7|0)h=J[m+4>>2];else h=K[m+11|0]&127;if(p|!h)break a;z=c,A=jR(Ei(m),Fp(m),J[c>>2]),J[z>>2]=A;break a;case 4:break b;default:break a}y=J[c>>2];e=e+x|0;h=e;while(1){c:{if(f>>>0<=h>>>0)break c;if(!(kc[J[J[g>> +2]+12>>2]](g,64,J[h>>2])|0))break c;h=h+4|0;continue}break}if((o|0)>0){p=J[c>>2];q=o;while(1){if(!(!q|e>>>0>=h>>>0)){q=q-1|0;h=h-4|0;s=J[h>>2];r=p+4|0;J[c>>2]=r;J[p>>2]=s;p=r;continue}break}d:{if(!q){r=0;break d}r=kc[J[J[g>>2]+44>>2]](g,48)|0;p=J[c>>2]}while(1){s=p+4|0;if((q|0)>0){J[p>>2]=r;q=q-1|0;p=s;continue}break}J[c>>2]=s;J[p>>2]=j}e:{if((e|0)==(h|0)){p=kc[J[J[g>>2]+44>>2]](g,48)|0;q=J[c>>2];h=q+4|0;J[c>>2]=h;J[q>>2]=p;break e}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;r=H[p|0];if(K[l+11|0]>>>7|0)p= +J[l+4>>2];else p=K[l+11|0]&127;r=p?r:-1;p=0;s=0;while(1){if((e|0)!=(h|0)){f:{if((p|0)!=(r|0)){q=p;break f}q=J[c>>2];J[c>>2]=q+4;J[q>>2]=k;q=0;if(K[l+11|0]>>>7|0)r=J[l+4>>2];else r=K[l+11|0]&127;s=s+1|0;if(r>>>0<=s>>>0){r=p;break f}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;if(K[p+s|0]==127){r=-1;break f}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;r=H[p+s|0]}h=h-4|0;p=J[h>>2];v=J[c>>2];J[c>>2]=v+4;J[v>>2]=p;p=q+1|0;continue}break}h=J[c>>2]}xv(y,h)}u=u+1|0;continue}break}}function xW(a){a=a|0;var b=0,c=0,d=0, +e=0,f=0,g=0;c=fc-32|0;fc=c;a:{b:{if(!K[a+144|0]){c=Qc(c+8|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(c);break a}J[699344]=0;e=a+148|0;b=J[e>>2];d=J[699344];J[699344]=0;c:{d:{if((d|0)==1)break d;e:{f:{g:{h:{if(b&256)break h;J[699344]=0;b=J[e>>2];d=J[699344];J[699344]=0;if((d|0)==1)break d;if(b&1)break h;J[699344]=0;b=J[e>>2];d=J[699344];J[699344]=0;if((d|0)==1)break d;if(b&8){J[699344]=0;$(5505,a|0);b=J[699344];J[699344]=0;if((b| +0)==1)break d}J[699344]=0;kh(e,0,0,0,14);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;kh(e,0,0,1,0);b=J[699344];J[699344]=0;if((b|0)==1)break d;f=J[a+152>>2];J[a+152>>2]=0;J[699344]=0;b=c+8|0;ia(5446,b|0,a+108|0,0,-1);d=J[699344];J[699344]=0;if((d|0)==1)break g;J[699344]=0;aa(5153,a+156|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[c+8>>2];J[c+8>>2]=0;i:{if(!b)break i;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break e;if(d)break i;J[699344]=0; +$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break e}J[699344]=0;aa(5145,a+160|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;b=_(4,8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[a+152>>2]=b;J[699344]=0;ga(5506,b|0,5507,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;if(!f)break h;uc(f)}fc=c+32|0;return}b=ea(0)|0;break c}b=ea(0)|0;zc(c+8|0);break c}ea(0)|0;Bc();break b}b=ea(0)|0}oa(b|0)|0;J[699344]=0;kh(e,0,0,0,1);c=J[699344];J[699344]=0;j:{if((c|0)==1)break j;J[699344]= +0;kh(e,0,0,4,0);c=J[699344];J[699344]=0;if((c|0)==1)break j;J[699344]=0;c=pa(5383)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j;e=J[J[c>>2]+40>>2];J[699344]=0;ia(e|0,c|0,a|0,4,1);a=J[699344];J[699344]=0;if((a|0)==1)break j;if(f)uc(f);J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break b}a=Z()|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)!=1)break a;ea(0)|0;Bc();B()}B()}ba(a|0);B()}function Gjb(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;o= +fc-16|0;fc=o;a:{b:{if(!J[c+88>>2]){J[c+100>>2]=J[d+100>>2];J[c+104>>2]=J[d+104>>2];f=J[d+80>>2];J[c+80>>2]=f;e=J[d+76>>2];H[c+94|0]=7;J[c+76>>2]=e;I[c+92>>1]=256;f=f<<2;J[c+84>>2]=f;f=P(e,f);e=bE(c,f);J[o+12>>2]=e;if(e)break a;Ac(J[c+88>>2],0,f);break b}h=J[d+104>>2];i=h-J[d+76>>2]|0;j=J[c+104>>2];l=j-J[c+76>>2]|0;k=J[d+100>>2];m=k+J[d+80>>2]|0;e=J[c+100>>2];f=e+J[c+80>>2]|0;if(!((f|0)<(m|0)|(e|0)>(k|0)|(h|0)>(j|0)))if((i|0)>=(l|0))break b;h=(h|0)<(j|0)?j:h;l=h-((i|0)>(l|0)?l:i)|0;j=(e|0)<(k|0)?e: +k;m=((f|0)>(m|0)?f:m)-j|0;i=m<<2;k=he(J[a+100>>2],P(l,i),o+12|0);e=J[o+12>>2];if(e)break a;if(J[c+76>>2]){f=(k+P(i,h-J[c+104>>2]|0)|0)+(J[c+100>>2]-j<<2)|0;e=J[c+88>>2];while(1){f=xc(f,e,J[c+80>>2]<<2)+i|0;e=J[c+84>>2]+e|0;g=g+1|0;if(g>>>0>2])continue;break}}CN(c,k);J[c+100>>2]=j;J[c+104>>2]=h;J[c+80>>2]=m;J[c+84>>2]=i;J[c+76>>2]=l;f=J[c+156>>2];J[f+4>>2]=J[f+4>>2]|1;J[c+72>>2]=1651078259}c:{if((b|0)==65535){if(K[a+676|0]){f=K[a+680|0];g=K[a+679|0];n=K[a+678|0];b=K[a+677|0];break c}e=J[a+ +656>>2];if(e){f=255;g=255;n=255;b=255;if(K[e+(L[a+668>>1]<<1)|0]&2)break c}g=0;f=255;n=0;b=0;break c}a=J[a+672>>2]+(b<<2)|0;f=K[a+3|0];g=K[a+2|0];n=K[a+1|0];b=K[a|0]}e=0;h=J[d+76>>2];if(!h|!J[d+80>>2])break a;k=g&255;l=n&255;m=f&255;a=J[c+84>>2];n=(J[c+88>>2]+P(a,J[c+104>>2]-J[d+104>>2]|0)|0)+(J[d+100>>2]-J[c+100>>2]<<2)|0;i=J[d+88>>2];j=0;f=1;while(1){g=0;e=0;if(f){while(1){e=(g<<2)+n|0;f=(P(m,K[i+g|0])>>>0)/255|0;a=255-f|0;H[e+1|0]=(((P(a,K[e+1|0])&65535)>>>0)/255|0)+(((P(f,l)&65535)>>>0)/255|0); +H[e|0]=(((P(a,K[e|0])&65535)>>>0)/255|0)+(((P(b,f)&65535)>>>0)/255|0);H[e+2|0]=(((P(a,K[e+2|0])&65535)>>>0)/255|0)+(((P(f,k)&65535)>>>0)/255|0);H[e+3|0]=f+(((P(a,K[e+3|0])&65535)>>>0)/255|0);e=J[d+80>>2];g=g+1|0;if(e>>>0>g>>>0)continue;break}h=J[d+76>>2];a=J[c+84>>2]}n=a+n|0;i=J[d+84>>2]+i|0;f=e;j=j+1|0;if(j>>>0>>0)continue;break}e=0}fc=o+16|0;return e|0}function OOa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=fc-32|0;fc=j;J[a+64>>2]=1;J[a+48>>2]=13;J[a+32>>2]=13;J[a+16>> +2]=13;J[a>>2]=b;b=J[b+24>>2];J[a+12>>2]=e;J[a+8>>2]=c;J[a+4>>2]=b;i=O[e>>3];h=i;f=O[e+32>>3];a:{if(!(h>f)){h=O[e+16>>3];if(!(f>h))break a}O[e+32>>3]=h}h=i;f=O[e+48>>3];b:{if(!(h>f)){h=O[e+16>>3];if(!(f>h))break b}O[e+48>>3]=h}h=O[e+8>>3];f=h;g=O[e+40>>3];c:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break c}O[e+40>>3]=f}f=h;g=O[e+56>>3];d:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break d}O[e+56>>3]=f}f=i;g=O[e+72>>3];e:{if(!(f>g)){f=O[e+16>>3];if(!(g>f))break e}O[e+72>>3]=f}f=i;g=O[e+88>>3];f:{if(!(f>g)){f=O[e+16>> +3];if(!(g>f))break f}O[e+88>>3]=f}f=h;g=O[e+80>>3];g:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break g}O[e+80>>3]=f}f=h;g=O[e+96>>3];h:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break h}O[e+96>>3]=f}f=i;g=O[e+104>>3];i:{if(!(f>g)){f=O[e+16>>3];if(!(g>f))break i}O[e+104>>3]=f}f=i;g=O[e+120>>3];j:{if(!(f>g)){f=O[e+16>>3];if(!(g>f))break j}O[e+120>>3]=f}f=h;g=O[e+112>>3];k:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break k}O[e+112>>3]=f}f=h;g=O[e+128>>3];l:{if(!(f>g)){f=O[e+24>>3];if(!(g>f))break l}O[e+128>>3]=f}f=i;g=O[e+ +136>>3];m:{if(!(f>g)){f=O[e+16>>3];if(!(g>f))break m}O[e+136>>3]=f}f=O[e+152>>3];n:{if(!(f>3];if(!(f>i))break n}O[e+152>>3]=i}i=h;f=O[e+144>>3];o:{if(!(f>3];if(!(f>i))break o}O[e+144>>3]=i}f=O[e+160>>3];p:{if(!(f>3];if(!(f>h))break p}O[e+160>>3]=h}c=a+16|0;Ke(d,790666,c);q:{r:{b=J[a+16>>2];s:{if(!(1<>>0<=9:0)){b=J[a+8>>2];J[j+4>>2]=J[(J[c>>2]<<2)+2735600>>2];J[j>>2]=b;Cc(1,-1,791987,j);yc(c);J[a+16>>2]=5;break s}e=a+32|0;Ke(d,792248,e);c=J[e>>2]; +if(1<>>0<=9:0)break r;b=J[a+8>>2];J[j+20>>2]=J[(c<<2)+2735600>>2];J[j+16>>2]=b;Cc(1,-1,793635,j+16|0);yc(e)}J[a+64>>2]=0;J[a+48>>2]=5;J[a+32>>2]=5;break q}b=a+48|0;Ke(d,794067,b);t:switch(J[b>>2]-5|0){case 0:case 4:break q;default:break t}yc(b);J[b>>2]=5}fc=j+32|0;return a|0}function KJ(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=fc-16|0;fc=i;a:{b:{e=J[c>>2];if((e|0)>2])while(1){J[c>>2]=e+1;c:{d:{e=J[J[b>>2]+(e<<2)>>2];f=J[e+4>>2];g=K[f|0];if((g-45&255)>>>0>=2)if((g<<24>>24)-48>>> +0>9)break d;l=qg(f);h=J[d>>2];e=J[a+1056>>2];e:{if((h|0)<(e|0)){e=J[a+1048>>2];break e}e=e?e<<1:16;J[a+1056>>2]=e;e=Wd(J[a+1048>>2],e,16);J[a+1048>>2]=e;h=J[d>>2]}J[(h<<4)+e>>2]=40;O[((J[d>>2]<<4)+e|0)+8>>3]=l;J[d>>2]=J[d>>2]+1;break c}if(!Dd(e,837028)){e=J[d>>2];f=J[a+1056>>2];f:{if((e|0)<(f|0)){h=J[a+1048>>2];f=e;break f}f=f?f<<1:16;J[a+1056>>2]=f;h=Wd(J[a+1048>>2],f,16);J[a+1048>>2]=h;f=J[d>>2]}J[(f<<4)+h>>2]=42;J[((J[d>>2]<<4)+h|0)+8>>2]=0;J[d>>2]=J[d>>2]+1;g=0;if(!KJ(a,b,c,d))break a;f=J[c>> +2];if((f|0)>=J[b+8>>2]){Cc(1,-1,812146,0);g=0;break a}J[c>>2]=f+1;f=J[J[b>>2]+(f<<2)>>2];if(!Dd(f,812508)){J[(J[a+1048>>2]+(e<<4)|0)+8>>2]=J[d>>2];break c}if(!Dd(f,837028)){f=J[d>>2];g=J[a+1056>>2];g:{if((f|0)<(g|0)){h=J[a+1048>>2];g=f;break g}g=g?g<<1:16;J[a+1056>>2]=g;h=Wd(J[a+1048>>2],g,16);J[a+1048>>2]=h;g=J[d>>2]}J[(g<<4)+h>>2]=41;J[((J[d>>2]<<4)+h|0)+8>>2]=0;g=J[d>>2]+1|0;J[d>>2]=g;J[(J[a+1048>>2]+(e<<4)|0)+8>>2]=g;g=0;if(!KJ(a,b,c,d))break a;e=J[c>>2];if((e|0)>=J[b+8>>2]){Cc(1,-1,812146,0); +g=0;break a}J[c>>2]=e+1;if(!Dd(J[J[b>>2]+(e<<2)>>2],812854)){J[(J[a+1048>>2]+(f<<4)|0)+8>>2]=J[d>>2];break c}Cc(1,-1,813174,0);g=0;break a}Cc(1,-1,813512,0);g=0;break a}g=1;if(!Dd(e,813756))break a;if(!Dd(e,812508)){Cc(1,-1,814081,0);g=0;break a}if(!Dd(e,812854))break b;f=40;h=-1;while(1){g=(f+h|0)/2|0;j=Dd(e,J[(g<<2)+2216976>>2]);k=(j|0)>0;f=k?f:g;h=k?g:(j|0)<0?h:g;if((f-h|0)>1)continue;break}if(j){J[i>>2]=e;Cc(1,-1,814731,i);g=0;break a}e=J[d>>2];f=J[a+1056>>2];h:{if((e|0)<(f|0)){f=J[a+1048>>2]; +break h}e=f?f<<1:16;J[a+1056>>2]=e;f=Wd(J[a+1048>>2],e,16);J[a+1048>>2]=f;e=J[d>>2]}J[(e<<4)+f>>2]=h;J[d>>2]=J[d>>2]+1}e=J[c>>2];if((e|0)>2])continue;break}Cc(1,-1,812146,0);g=0;break a}Cc(1,-1,814378,0);g=0}fc=i+16|0;return g}function FJa(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=fc-16|0;fc=g;a:{b:{if(b){if(!a)break b;if(!d)break a;if(J[a+8>>2]==16)h=J[a+156>>2]+P(J[a+192>>2],5644)|0;else h=J[a+12>>2];c:{if(!c){Nc(d,1,2369404,0);break c}i=J[a+72>>2];e=1;wd(b,g+8|0, +1);f=J[g+8>>2];if(f>>>0>=2){Nc(d,2,2369430,0);break c}if((f+1|0)!=(c|0)){e=0;Nc(d,2,2369404,0);break c}c=J[i+16>>2];d:{if(!c)break d;e=J[h+5584>>2];if(c>>>0>=8){i=c&-8;d=0;while(1){J[e+1076>>2]=0;J[e+8636>>2]=0;J[e+7556>>2]=0;J[e+6476>>2]=0;J[e+5396>>2]=0;J[e+4316>>2]=0;J[e+3236>>2]=0;J[e+2156>>2]=0;e=e+8640|0;d=d+8|0;if((i|0)!=(d|0))continue;break}}c=c&7;if(!c)break d;d=0;while(1){J[e+1076>>2]=0;e=e+1080|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}c=J[h+5608>>2];if(c){uc(c);J[h+5608>>2]=0;f=J[g+8>> +2]}if(!f){e=1;break c}i=0;while(1){b=b+1|0;wd(b,g+12|0,1);e:{if(!J[h+5632>>2])break e;d=J[h+5628>>2];if(J[d>>2]!=J[g+12>>2])break e;f=J[d+4>>2];j=J[a+72>>2];if((f|0)!=J[j+16>>2])break e;c=J[d+8>>2];if(c){e=0;f=P(f,f);if(J[c+16>>2]!=(P(f,J[(J[c>>2]<<2)+2358608>>2])|0))break c;k=ef(f<<2);J[h+5608>>2]=k;if(!k)break c;kc[J[(J[c>>2]<<2)+2369488>>2]](J[c+12>>2],k,f)}c=J[d+12>>2];if(!c)break e;e=0;d=J[j+16>>2];if(J[c+16>>2]!=(P(d,J[(J[c>>2]<<2)+2358608>>2])|0))break c;f=ef(d<<2);if(!f)break c;kc[J[(J[c>> +2]<<2)+2369504>>2]](J[c+12>>2],f,d);c=J[j+16>>2];f:{if(!c)break f;j=c&7;e=J[h+5584>>2];g:{if(c>>>0<8){d=f;break g}k=c&-8;c=0;d=f;while(1){J[e+1076>>2]=J[d>>2];J[e+2156>>2]=J[d+4>>2];J[e+3236>>2]=J[d+8>>2];J[e+4316>>2]=J[d+12>>2];J[e+5396>>2]=J[d+16>>2];J[e+6476>>2]=J[d+20>>2];J[e+7556>>2]=J[d+24>>2];J[e+8636>>2]=J[d+28>>2];e=e+8640|0;d=d+32|0;c=c+8|0;if((k|0)!=(c|0))continue;break}}c=0;if(!j)break f;while(1){J[e+1076>>2]=J[d>>2];e=e+1080|0;d=d+4|0;c=c+1|0;if((j|0)!=(c|0))continue;break}}uc(f)}e=1; +i=i+1|0;if(i>>>0>2])continue;break}}fc=g+16|0;return e|0}fa(2365733,2358254,6306,2369387);B()}fa(2358373,2358254,6307,2369387);B()}fa(2358486,2358254,6308,2369387);B()}function eG(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=J[b>>2];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!d)break l;g=J[d>>2];if(!g)break l;if(!a){d=c;break j}J[d>>2]=0;d=c;break k}m:{if(!J[J[698634]>>2]){if(!a)break m;if(!c)break a;g=c;while(1){d=H[e|0];if(d){J[a>>2]=d&57343;a=a+4|0;e=e+1|0;g=g-1|0;if(g)continue; +break a}break}J[a>>2]=0;J[b>>2]=0;return c-g|0}d=c;if(!a)break i;break g}return Yc(e)|0}f=1;break g}f=0;break h}f=1}while(1){if(!f){f=K[e|0]>>>3|0;if((f-16|f+(g>>26))>>>0>7)break f;f=e+1|0;n:{if(!(g&33554432))break n;if((K[f|0]&192)!=128){e=e-1|0;break d}f=e+2|0;if(!(g&524288))break n;if((K[f|0]&192)!=128){e=e-1|0;break d}f=e+3|0}e=f;d=d-1|0;f=1;continue}while(1){g=K[e|0];o:{if(e&3|g-1>>>0>126)break o;g=J[e>>2];if((g|g-16843009)&-2139062144)break o;while(1){d=d-4|0;g=J[e+4>>2];e=e+4|0;if(!((g-16843009| +g)&-2139062144))continue;break}}f=g&255;if(f-1>>>0<=126){d=d-1|0;e=e+1|0;continue}break}f=f-194|0;if(f>>>0>50)break e;e=e+1|0;g=J[(f<<2)+2615808>>2];f=0;continue}}while(1){if(!f){if(!d)break a;while(1){p:{f=K[e|0];h=f-1|0;q:{r:{if(h>>>0>126){g=f;break r}if(e&3|d>>>0<5)break q;s:{while(1){g=J[e>>2];if((g|g-16843009)&-2139062144)break s;J[a>>2]=g&255;J[a+4>>2]=K[e+1|0];J[a+8>>2]=K[e+2|0];J[a+12>>2]=K[e+3|0];a=a+16|0;e=e+4|0;d=d-4|0;if(d>>>0>4)continue;break}g=K[e|0]}f=g&255;h=f-1|0}if(h>>>0>126)break p}J[a>> +2]=f;a=a+4|0;e=e+1|0;d=d-1|0;if(d)continue;break a}break}f=f-194|0;if(f>>>0>50)break e;e=e+1|0;g=J[(f<<2)+2615808>>2];f=1;continue}i=K[e|0];f=i>>>3|0;if((f-16|f+(g>>26))>>>0>7)break f;t:{u:{h=e+1|0;f=i-128|g<<6;v:{if((f|0)>=0)break v;i=K[h|0]-128|0;if(i>>>0>63)break u;h=e+2|0;f=i|f<<6;if((f|0)>=0)break v;h=K[h|0]-128|0;if(h>>>0>63)break u;f=h|f<<6;h=e+3|0}e=h;J[a>>2]=f;d=d-1|0;a=a+4|0;break t}J[698583]=25;e=e-1|0;break c}f=0;continue}}e=e-1|0;if(g)break d;g=K[e|0]}if(g&255)break d;if(a){J[a>>2]=0; +J[b>>2]=0}return c-d|0}J[698583]=25;if(!a)break b}J[b>>2]=e}return-1}J[b>>2]=e;return c|0}function q0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;u=fc-256|0;fc=u;p=J[a+332>>2];b=J[b+84>>2];a=u;g=8;while(1){a:{b:{h=L[c+32>>1];f=I[c+16>>1];if((h|f)&65535)break b;h=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;h=P(J[b>>2],I[c>>1]);J[a+192>>2]=h;J[a+160>>2]=h;J[a+128>>2]=h;J[a+96>>2]=h;J[a+64>>2]= +h;J[a+32>>2]=h;J[a>>2]=h;f=56;break a}j=P(J[b+192>>2],I[c+96>>1]);l=P(J[b+64>>2],h<<16>>16);h=j+l|0;k=P(J[b+128>>2],I[c+64>>1]);m=P(J[b>>2],I[c>>1]);q=k+m|0;i=h+q|0;n=P(J[b+160>>2],I[c+80>>1]);o=P(J[b+96>>2],I[c+48>>1]);r=n+o|0;s=P(J[b+224>>2],I[c+112>>1]);t=P(f,J[b+32>>2]);v=s+t|0;f=r+v|0;J[a+224>>2]=i-f;J[a>>2]=f+i;n=n-o|0;o=t-s|0;i=P(n+o|0,473)>>8;j=(P(l-j|0,362)>>8)-h|0;l=m-k|0;k=j+l|0;f=i+((P(n,-669)>>8)-f|0)|0;J[a+192>>2]=k-f;J[a+32>>2]=f+k;j=l-j|0;f=(P(v-r|0,362)>>8)-f|0;J[a+160>>2]=j-f;J[a+ +64>>2]=f+j;f=f+((P(o,277)>>8)-i|0)|0;h=q-h|0;J[a+128>>2]=f+h;h=h-f|0;f=24}J[(f<<2)+a>>2]=h;c=c+2|0;b=b+4|0;a=a+4|0;h=g>>>0>1;g=g-1|0;if(h)continue;break}b=p+128|0;c=u;h=0;while(1){a=J[(h<<2)+d>>2]+e|0;c:{d:{g=J[c+8>>2];f=J[c+4>>2];if(g|f)break d;g=0;if(J[c+12>>2]|J[c+16>>2]|(J[c+20>>2]|J[c+24>>2]))break d;if(J[c+28>>2])break d;g=K[b+(J[c>>2]>>>5&1023)|0];H[a+6|0]=g;H[a+5|0]=g;H[a+4|0]=g;H[a+3|0]=g;H[a+2|0]=g;H[a+1|0]=g;H[a|0]=g;f=7;break c}j=J[c+28>>2];l=j+f|0;k=J[c+12>>2];m=J[c+20>>2];q=k+m|0;i= +l+q|0;n=J[c+24>>2];p=n+g|0;o=J[c+16>>2];r=J[c>>2];s=o+r|0;t=p+s|0;H[a|0]=K[b+(i+t>>>5&1023)|0];H[a+7|0]=K[b+(t-i>>>5&1023)|0];k=m-k|0;j=f-j|0;f=P(k+j|0,473)>>8;i=f+((P(k,-669)>>8)-i|0)|0;k=(P(g-n|0,362)>>8)-p|0;m=r-o|0;g=k+m|0;H[a+1|0]=K[b+(i+g>>>5&1023)|0];H[a+6|0]=K[b+(g-i>>>5&1023)|0];g=(P(l-q|0,362)>>8)-i|0;i=m-k|0;H[a+2|0]=K[b+(g+i>>>5&1023)|0];H[a+5|0]=K[b+(i-g>>>5&1023)|0];g=g+((P(j,277)>>8)-f|0)|0;f=s-p|0;H[a+4|0]=K[b+(g+f>>>5&1023)|0];g=K[b+(f-g>>>5&1023)|0];f=3}H[f+a|0]=g;c=c+32|0;h=h+1| +0;if((h|0)!=8)continue;break}fc=u+256|0}function d3a(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(K[b+8|0])break a;d=J[b+12>>2];j=J[a+24>>2];k=K[j+200|0];if((k|0)==219){d=d&-17;J[b+12>>2]=d;J[a+28>>2]=d}b:{if(J[j+40>>2]|!(d&16))break b;c:{d=J[a+24>>2];g=K[d+200|0];e=g;if((e|0)!=12?e:0)break c;e=J[d+36>>2];if(J[e+148>>2]!=-2147483638|J[e+84>>2]!=-2147483515)break c;e=J[d+188>>2];h=J[d+52>>2];f=L[h>>1];d:{if(!g){f=h+(f<<1)|0;if(L[(e+(L[f>>1]<<1)|0)+20>>1]!=3877)break c;if(L[(e+ +(L[f+16>>1]<<1)|0)+10>>1]==3861)break d;break c}f=h+(f<<2)|0;g=J[f>>2];if(!(g&67108864)|L[(e+(g<<5&2097120)|0)+20>>1]!=37)break c;f=J[f+32>>2];if(!(f&2097152)|L[(e+(f<<5&2097120)|0)+10>>1]!=21)break c}i=J[d+196>>2];if(i){f=ji((i+(K[d+28|0]<<10)|0)+80|0);if(!f){J[c>>2]=7;return}c=K[d+28|0]<<10;g=xc(f,J[d+36>>2],c);J[g+84>>2]=-2147483638;J[g+148>>2]=-2147483515;f=xc(c+g|0,e,i);c=L[h>>1];e:{if(!K[d+200|0]){c=h+(c<<1)|0;I[(f+(L[c>>1]<<1)|0)+20>>1]=3861;I[(f+(L[c+16>>1]<<1)|0)+10>>1]=3877;break e}c=h+ +(c<<2)|0;I[(f+(J[c>>2]<<5&2097120)|0)+20>>1]=21;I[(f+(J[c+32>>2]<<5&2097120)|0)+10>>1]=37}i=of(f+i|0,J[d+12>>2]+4|0);e=Yc(i)+i|0;c=K[733867]|K[733868]<<8|(K[733869]<<16|K[733870]<<24);h=K[733863]|K[733864]<<8|(K[733865]<<16|K[733866]<<24);H[e|0]=h;H[e+1|0]=h>>>8;H[e+2|0]=h>>>16;H[e+3|0]=h>>>24;H[e+4|0]=c;H[e+5|0]=c>>>8;H[e+6|0]=c>>>16;H[e+7|0]=c>>>24;c=K[733871]|K[733872]<<8;H[e+8|0]=c;H[e+9|0]=c>>>8;if(!J[d+40>>2]){J[d+40>>2]=g;J[d+216>>2]=i;J[d+192>>2]=f;break b}Nf(g);break b}J[c>>2]=3;return}if(J[c>> +2]>0)break a;c=J[b+12>>2]&-17;J[b+12>>2]=c;J[a+28>>2]=c}b=J[b+20>>2];f:{g:{if(Je(b,730802)){d=32768;if(Je(b,731442))break g;if(Je(b,731901))break g;break f}d=4096;if(Je(b,732311))break g;if(Je(b,732681))break g;d=8192;if(Je(b,733058))break g;if(Je(b,733289))break g;d=16384;if(Je(b,733552))break g;if(!Je(b,733673))break f}J[a+28>>2]=J[a+28>>2]|d}if((k|0)==12)H[a+60|0]=3;b=J[j+224>>2];if(!b)break a;b=K[b+68|0]+((k|0)==12)<<24>>24;if((b|0)<=H[a+60|0])break a;H[a+60|0]=b}}function v0(a,b,c){var d=0,e= +0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=fc-2128|0;fc=d;e=d+2096|0;J[e>>2]=0;J[e+4>>2]=0;e=d+2104|0;J[e>>2]=0;J[e+4>>2]=0;H[d+2112|0]=0;J[d+2080>>2]=0;J[d+2084>>2]=0;J[d+2088>>2]=0;J[d+2092>>2]=0;Ac(d+1040|0,0,1028);f=Ac(d,255,1028);J[c+1024>>2]=1;i=1E9;j=-1;while(1){d=J[(h<<2)+c>>2];e=!d|(d|0)>(i|0);i=e?i:d;j=e?j:h;g=1E9;d=0;e=-1;h=h+1|0;if((h|0)!=257)continue;while(1){h=J[(d<<2)+c>>2];l=!h|(d|0)==(j|0)|(g|0)<(h|0);i=l?e:d;e=d|1;if((e|0)!=257){k=J[(e<<2)+c>>2];g=l?g:h;h=!k|(e|0)==(j|0)|(k|0)>(g|0);g=h?g: +k;e=h?i:e;d=d+2|0;continue}break}d=0;if((i|0)<0){while(1){c=J[(f+1040|0)+(d<<2)>>2];if(c){if((c|0)>=33){e=J[a>>2];J[e+20>>2]=40;kc[J[e>>2]](a)}c=c+(f+2080|0)|0;H[c|0]=K[c|0]+1}d=d+1|0;if((d|0)!=257)continue;break}c=32;while(1){i=(f+2080|0)+c|0;j=K[i|0];a:{if(!j){a=c-1|0;break a}g=c-2|0;a=c-1|0;h=a+(f+2080|0)|0;while(1){d=g;while(1){e=d;d=d-1|0;k=e+(f+2080|0)|0;if(!K[k|0])continue;break}H[i|0]=j-2;H[h|0]=K[h|0]+1;d=(e+f|0)+2081|0;H[d|0]=K[d|0]+2;H[k|0]=K[k|0]-1;j=K[i|0];if(j)continue;break}}d=c>>> +0>17;c=a;if(d)continue;break}d=16;while(1){a=(f+2080|0)+d|0;d=d-1|0;c=K[a|0];if(!c)continue;break}H[a|0]=c-1;H[b+16|0]=K[f+2096|0];a=J[f+2092>>2];J[b+8>>2]=J[f+2088>>2];J[b+12>>2]=a;a=J[f+2084>>2];J[b>>2]=J[f+2080>>2];J[b+4>>2]=a;e=0;g=1;while(1){d=0;while(1){if(J[(f+1040|0)+(d<<2)>>2]==(g|0)){H[(b+e|0)+17|0]=d;e=e+1|0}a=d|1;if(J[(f+1040|0)+(a<<2)>>2]==(g|0)){H[(b+e|0)+17|0]=a;e=e+1|0}d=d+2|0;if((d|0)!=256)continue;break}g=g+1|0;if((g|0)!=33)continue;break}J[b+276>>2]=0;fc=f+2128|0;return}d=j<<2; +e=d+c|0;l=e;k=J[e>>2];g=i<<2;e=g+c|0;J[l>>2]=k+J[e>>2];J[e>>2]=0;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;e=d+f|0;d=J[e>>2];if((d|0)>=0)while(1){d=d<<2;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;e=d+f|0;d=J[e>>2];if((d|0)>=0)continue;break}J[e>>2]=i;d=g+(f+1040|0)|0;J[d>>2]=J[d>>2]+1;h=0;i=1E9;j=-1;d=J[f+g>>2];if((d|0)<0)continue;while(1){d=d<<2;e=d+(f+1040|0)|0;J[e>>2]=J[e>>2]+1;d=J[d+f>>2];if((d|0)>=0)continue;break}continue}}function OJ(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=fc-832|0;fc=e;f=vc(12);J[699344]= +0;J[f+8>>2]=-1;J[f+4>>2]=d;J[f>>2]=c;c=J[699344];J[699344]=0;if((c|0)!=1){c=e+576|0;sf(f,c,e+60|0);d=e+320|0;if(sf(f,d,e+56|0)){h=d|1;d=c|1;while(1){a:{if(J[e+320>>2]==1667593077&J[e+324>>2]==7364973){if(K[e+576|0]==47){c=vc(8);J[699344]=0;g=aa(3349,c|0,d|0)|0;i=J[699344];J[699344]=0;b:{c:{if((i|0)!=1){if(!b)break c;c=L$(b,J[a>>2],g);break b}a=Z()|0;uc(c);ba(a|0);B()}c=Y_(J[693464],J[a>>2],g)}uc(Zc(g));if(c){J[a+8>>2]=J[c+8>>2];g=J[c+16>>2];if(g)PJ(a,J[a+16>>2],g);cq(c)}}sf(f,e+576|0,e+60|0);break a}c= +e+576|0;if(!dd(c,786407,7)){j=a,k=fg(e+320|0),J[j+12>>2]=k;sf(f,c,e+60|0);break a}if(!dd(e+320|0,787075,13)){d:{if(!sf(f,e+576|0,e+60|0))break d;while(1){if(!dd(e+576|0,788061,11))break d;e:{c=e+320|0;if(sf(f,c,e+56|0))if(dd(c,788061,11))break e;Cc(1,-1,788885,0);break d}f:{g:{if(K[e+576|0]!=60)break g;c=J[e+60>>2];if(c&1|(c|0)<4)break g;c=c+e|0;if(K[c+575|0]!=62)break g;H[c+575|0]=0;J[e>>2]=e+40;if((Zg(d,789628,e)|0)!=1)break g;c=(J[e+60>>2]-2|0)/2|0;J[e+60>>2]=c;g=J[e+40>>2];M$(a,g,g,c,fg(e+320| +0));break f}Cc(1,-1,788885,0)}if(sf(f,e+576|0,e+60|0))continue;break}}sf(f,e+576|0,e+60|0);break a}if(!dd(e+320|0,790759,14)){h:{if(!sf(f,e+576|0,e+60|0))break h;while(1){if(!dd(e+576|0,791673,12))break h;i:{c=e+320|0;j:{if(!sf(f,c,e+56|0))break j;if(!dd(c,791673,12))break j;c=e- -64|0;if(!sf(f,c,e+52|0))break j;if(dd(c,791673,12))break i}Cc(1,-1,792299,0);break h}k:{if(K[e+576|0]!=60|K[e+320|0]!=60)break k;c=J[e+60>>2];if(c&1|(c|0)<4|(c|0)!=J[e+56>>2])break k;c=c-1|0;H[c+(e+576|0)|0]=0;H[c+(e+320| +0)|0]=0;J[e+32>>2]=e+48;Zg(d,789628,e+32|0);J[e+16>>2]=e+44;Zg(h,789628,e+16|0);c=(J[e+60>>2]-2|0)/2|0;J[e+60>>2]=c;M$(a,J[e+48>>2],J[e+44>>2],c,fg(e- -64|0))}if(sf(f,e+576|0,e+60|0))continue;break}}sf(f,e+576|0,e+60|0);break a}of(e+576|0,e+320|0)}if(sf(f,e+320|0,e+56|0))continue;break}}uc(f);fc=e+832|0;return}a=Z()|0;uc(f);ba(a|0);B()}function Lia(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;a=fc-384|0;fc=a;J[a+376>>2]=c;J[a+380>>2]=b;_F(a+220|0,d,a+240|0,a+236|0,a+232|0);b=Ze(a+ +208|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+204>>2]=c;J[a+28>>2]=a+32;J[a+24>>2]=0;H[a+23|0]=1;H[a+22|0]=69;while(1){d:{J[699344]=0;d=aa(6858,a+380|0,a+376|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+204>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11| +0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+204>>2]=d+c}J[699344]=0;d=a+380|0;g=_(6859,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=jz(g,a+23|0,a+22|0,c,a+204|0,J[a+236>>2],J[a+232>>2],a+220|0,a+32|0,a+28|0,a+24|0,a+240|0);h=J[699344];J[699344]= +0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+231|0]>>>7|0)d=J[a+224>>2];else d=K[a+231|0]&127;e:{if(!d|!K[a+23|0])break e;d=J[a+28>>2];if((d-(a+32|0)|0)>159)break e;J[a+28>>2]=d+4;J[d>>2]=J[a+24>>2]}J[699344]=0;ia(6850,a|0,c|0,J[a+204>>2],e|0);c=J[699344];J[699344]=0;f:{if((c|0)==1)break f;c=J[a+8>>2];d=J[a+12>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[f+8>>2]=c;J[f+12>>2]=d;J[699344]=0;Nh(a+220|0,a+32|0, +J[a+28>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+380|0,a+376|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+380>>2];jd(b);jd(a+220|0);fc=a+384|0;break a}}c=Z()|0;jd(b);jd(a+220|0);ba(c|0);B()}return c|0}function Dha(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;u=fc-16|0;fc=u;J[c>>2]=a;x=d&512;while(1){if((v| +0)==4){if(K[n+11|0]>>>7|0)e=J[n+4>>2];else e=K[n+11|0]&127;if(e>>>0>1){z=u,A=Ei(n),J[z+12>>2]=A;z=c,A=kR(fz(u+12|0,1),Hp(n),J[c>>2]),J[z>>2]=A}d=d&176;if((d|0)!=16){if((d|0)==32)a=J[c>>2];J[b>>2]=a}fc=u+16|0}else{a:{b:switch(H[i+v|0]){case 0:J[b>>2]=J[c>>2];break a;case 1:J[b>>2]=J[c>>2];p=kc[J[J[g>>2]+28>>2]](g,32)|0;q=J[c>>2];J[c>>2]=q+1;H[q|0]=p;break a;case 3:if(K[n+11|0]>>>7|0)p=J[n+4>>2];else p=K[n+11|0]&127;if(!p)break a;if(K[n+11|0]>>>7|0)p=J[n>>2];else p=n;p=K[p|0];q=J[c>>2];J[c>>2]=q+1; +H[q|0]=p;break a;case 2:q=!x;if(K[m+11|0]>>>7|0)p=J[m+4>>2];else p=K[m+11|0]&127;if(q|!p)break a;z=c,A=kR(Ei(m),Hp(m),J[c>>2]),J[z>>2]=A;break a;case 4:break b;default:break a}y=J[c>>2];e=e+h|0;r=e;while(1){c:{if(f>>>0<=r>>>0)break c;p=H[r|0];if((p|0)>=0)p=(J[J[g+8>>2]+((p&255)<<2)>>2]&64)!=0;else p=0;if(!p)break c;r=r+1|0;continue}break}p=o;if((p|0)>0){while(1){if(!(!p|e>>>0>=r>>>0)){p=p-1|0;r=r-1|0;q=K[r|0];s=J[c>>2];J[c>>2]=s+1;H[s|0]=q;continue}break}if(p)q=kc[J[J[g>>2]+28>>2]](g,48)|0;else q= +0;while(1){s=J[c>>2];J[c>>2]=s+1;if((p|0)>0){H[s|0]=q;p=p-1|0;continue}break}H[s|0]=j}d:{if((e|0)==(r|0)){p=kc[J[J[g>>2]+28>>2]](g,48)|0;q=J[c>>2];J[c>>2]=q+1;H[q|0]=p;break d}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;q=H[p|0];if(K[l+11|0]>>>7|0)p=J[l+4>>2];else p=K[l+11|0]&127;q=p?q:-1;p=0;t=0;while(1){if((e|0)==(r|0))break d;e:{if((p|0)!=(q|0)){s=p;break e}q=J[c>>2];J[c>>2]=q+1;H[q|0]=k;s=0;if(K[l+11|0]>>>7|0)q=J[l+4>>2];else q=K[l+11|0]&127;t=t+1|0;if(q>>>0<=t>>>0){q=p;break e}if(K[l+11|0]>>>7|0)p= +J[l>>2];else p=l;if(K[p+t|0]==127){q=-1;break e}if(K[l+11|0]>>>7|0)p=J[l>>2];else p=l;q=H[p+t|0]}r=r-1|0;p=K[r|0];w=J[c>>2];J[c>>2]=w+1;H[w|0]=p;p=s+1|0;continue}}Ep(y,J[c>>2])}v=v+1|0;continue}break}}function aja(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;a=fc-272|0;fc=a;J[a+264>>2]=c;J[a+268>>2]=b;bG(a+208|0,d,a+224|0,a+223|0,a+222|0);b=Ze(a+196|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!= +1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+192>>2]=c;J[a+28>>2]=a+32;J[a+24>>2]=0;H[a+23|0]=1;H[a+22|0]=69;while(1){d:{J[699344]=0;d=aa(6744,a+268|0,a+264|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+192>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+ +8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+192>>2]=d+c}J[699344]=0;d=a+268|0;g=_(6745,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=lz(g,a+23|0,a+22|0,c,a+192|0,H[a+223|0],H[a+222|0],a+208|0,a+32|0,a+28|0,a+24|0,a+224|0);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6747,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+219| +0]>>>7|0)d=J[a+212>>2];else d=K[a+219|0]&127;e:{if(!d|!K[a+23|0])break e;d=J[a+28>>2];if((d-(a+32|0)|0)>159)break e;J[a+28>>2]=d+4;J[d>>2]=J[a+24>>2]}J[699344]=0;ia(6850,a|0,c|0,J[a+192>>2],e|0);c=J[699344];J[699344]=0;f:{if((c|0)==1)break f;c=J[a+8>>2];d=J[a+12>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[f+8>>2]=c;J[f+12>>2]=d;J[699344]=0;Nh(a+208|0,a+32|0,J[a+28>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6744,a+268|0,a+264|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f; +if(c)J[e>>2]=J[e>>2]|2;c=J[a+268>>2];jd(b);jd(a+208|0);fc=a+272|0;break a}}c=Z()|0;jd(b);jd(a+208|0);ba(c|0);B()}return c|0}function h2(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=fc+-64|0;fc=g;a:{if(a){f=J[a+12>>2];if(f)while(1){if(J[f+4>>2]==14){f=0;break a}f=J[f+24>>2];if(f)continue;break}f=0;if(J[a+44>>2])break a}e=kc[J[663195]](64)|0;if(!e){J[g>>2]=3231;Hc(0,0,0,0,0,2,2,3,3231,0,0,0,32879,g);break a}J[e>>2]=0;J[e+4>>2]=0;J[e+56>>2]=0;J[e+60>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+ +32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=14;if(b){f=b;while(1){h=f;f=f+1|0;if(K[h|0])continue;break}f=0;b:{h=h-b|0;if((h|0)>=0){i=kc[J[663198]](h+1|0)|0;if(i)break b;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0)}J[e+8>>2]=0;J[g+48>>2]=3231;Hc(0,0,0,0,0,2,2,3,3231,0,0,0,32879,g+48|0);kc[J[663199]](e);break a}b=xc(i,b,h);H[b+h|0]=0;J[e+8>>2]=b}if(c){f=c;while(1){b=f;f=b+1|0;if(K[b|0])continue;break}c:{b=b-c|0;if((b|0)>=0){f=kc[J[663198]](b+1| +0)|0;if(f)break c;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0)}J[e+52>>2]=0;J[g+32>>2]=3231;Hc(0,0,0,0,0,2,2,3,3231,0,0,0,32879,g+32|0);a=J[e+8>>2];if(a)kc[J[663199]](a);f=0;kc[J[663199]](e);break a}h=b;b=xc(f,c,b);H[h+b|0]=0;J[e+52>>2]=b}if(d){b=d;while(1){c=b;b=b+1|0;if(K[c|0])continue;break}d:{b=c-d|0;if((b|0)>=0){c=kc[J[663198]](b+1|0)|0;if(c)break d;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0)}J[e+56>>2]=0;J[g+16>>2]=3231;Hc(0,0,0,0,0,2,2,3,3231,0,0,0,32879,g+16|0);a=J[e+8>>2];if(a)kc[J[663199]](a);a=J[e+52>> +2];if(a)kc[J[663199]](a);f=0;kc[J[663199]](e);break a}f=b;b=xc(c,d,b);H[f+b|0]=0;J[e+56>>2]=b}if(a){J[a+44>>2]=e;J[e+32>>2]=a;J[e+20>>2]=a;f=J[a+12>>2];e:{if(!f){J[a+12>>2]=e;b=a+16|0;break e}b=a+12|0;if(J[a+4>>2]!=13){f:{while(1){if(J[f+4>>2]==1)break f;f=J[f+24>>2];if(f)continue;break}b=J[a+16>>2];J[e+28>>2]=b;J[b+24>>2]=e;J[e+24>>2]=0;b=a+16|0;break e}J[e+24>>2]=f;a=J[f+28>>2];J[e+28>>2]=a;J[(a?a+24|0:b)>>2]=e;b=f+28|0;break e}J[f+28>>2]=e;J[e+24>>2]=f}J[b>>2]=e}g:{if(!J[693393])break g;a=J[693390]; +if(!a)break g;kc[a|0](e)}f=e}fc=g- -64|0;return f}function SAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-32|0;fc=d;a:{if(!K[a+144|0]){a=Qc(d+8|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}J[699344]=0;f=a+148|0;kh(f,0,0,256,0);c=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{if((c|0)==1)break g;h:{i:{j:{k:{c=J[a+120>>2];if(c)while(1){e=J[c+8>>2];J[699344]=0;da(5397,e|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break k;c=J[c>>2]; +if(c)continue;break}if(!b)break h;J[d+8>>2]=0;c=J[a+120>>2];if(!c)break i;break j}c=ea(0)|0;break b}while(1){b=J[c+8>>2];J[699344]=0;b=J[b+148>>2];e=J[699344];J[699344]=0;l:{if((e|0)!=1){if(!(b&1)){c=J[c>>2];if(!c)break l;continue}J[699344]=0;aa(5153,d+8|0,c+8|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break l;break d}break d}b=J[d+8>>2];if(!b)break i;J[699344]=0;da(5397,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[d+8>>2];J[d+8>>2]=0;m:{if(!b)break m;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]= +c;e=J[699344];J[699344]=0;if((e|0)==1)break e;if(c)break m;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break e}J[d+8>>2]=0;c=J[a+120>>2];if(c)continue;break}}if(!K[a+144|0]){J[699344]=0;a=ja(5178,d+8|0,2394631,2386059,164,2414168,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;c=ea(0)|0;Kc(a);break b}J[699344]=0;a=J[f>>2];b=J[699344];J[699344]=0;if((b|0)==1)break g;if(!(a&1))break h;while(1){J[699344]=0;a=J[f>>2]; +b=J[699344];J[699344]=0;if((b|0)==1)break c;if(a&1)continue;break}}J[699344]=0;kh(f,0,0,0,256);a=J[699344];J[699344]=0;if((a|0)!=1)break f}c=ea(0)|0;break b}fc=d+32|0;return}ea(0)|0;Bc();break a}c=ea(0)|0;zc(d+8|0);break b}c=ea(0)|0}oa(c|0)|0;J[699344]=0;kh(f,0,0,0,256);a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break a}a=Z()|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1){ba(a|0);B()}ea(0)|0;Bc();B()}B()}function A$a(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;f=fc-16|0;fc=f;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{g=J[b>>2];c:{if(!g)break c;d=K[c+11|0];h=d<<24>>24;i=d;d=(h|0)<0;d:{if(((d?J[c+4>>2]:i)|0)==1){g=0;d=qd(d?J[c>>2]:c,769936,1);h=J[b>>2];h=J[h+28>>2]-J[h+24>>2]>>2;if((h|0)<=0)break c;if(d)break d;e:{f:{while(1){g:{J[699344]=0;J[f+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1)break g;c=J[f+12>>2];d=J[J[J[b>>2]+24>>2]+(g<<2)>>2];J[f+12>>2]=d;if(d){e=J[J[d>>2]+8>>2];J[699344]=0;_(e|0,d|0)|0;d=J[699344]; +J[699344]=0;if((d|0)==1)break f}if(c){d=J[J[c>>2]+12>>2];J[699344]=0;_(d|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f}d=J[a+4>>2];h:{if((d|0)!=J[a+8>>2]){J[699344]=0;aa(3261,d|0,f+12|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[a+4>>2]=d+4;break h}J[699344]=0;da(3263,a|0,f+12|0);c=J[699344];J[699344]=0;if((c|0)==1)break f}mh(f+12|0);g=g+1|0;if((h|0)!=(g|0))continue;break c}break}c=Z()|0;break a}c=Z()|0;break b}c=Z()|0;J[a+4>>2]=d;break b}h=J[g+28>>2]-J[g+24>>2]>>2;if((h|0)<=0)break c}g= +0;while(1){j=K[c+11|0];d=j<<24>>24<0;l=g<<2;e=J[l+J[J[b>>2]+24>>2]>>2];i=K[e+59|0];k=i<<24>>24<0;i:{j=d?J[c+4>>2]:j;if((j|0)!=((k?J[e+52>>2]:i)|0))break i;if(j){i=d?J[c>>2]:c;d=e+48|0;if(qd(i,k?J[d>>2]:d,j))break i}J[699344]=0;J[f+12>>2]=0;d=J[699344];J[699344]=0;j:{if((d|0)!=1){d=J[f+12>>2];e=J[J[J[b>>2]+24>>2]+l>>2];J[f+12>>2]=e;if(e){k=J[J[e>>2]+8>>2];J[699344]=0;_(k|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break j}if(d){e=J[J[d>>2]+12>>2];J[699344]=0;_(e|0,d|0)|0;d=J[699344];J[699344]=0;if((d| +0)==1)break j}d=J[a+4>>2];k:{if((d|0)!=J[a+8>>2]){J[699344]=0;aa(3261,d|0,f+12|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){c=Z()|0;J[a+4>>2]=d;break b}J[a+4>>2]=d+4;break k}J[699344]=0;da(3263,a|0,f+12|0);d=J[699344];J[699344]=0;if((d|0)==1)break j}mh(f+12|0);break i}c=Z()|0;break a}c=Z()|0;break b}g=g+1|0;if((h|0)!=(g|0))continue;break}}fc=f+16|0;return}mh(f+12|0)}lL(a);ba(c|0);B()}function j2a(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;o=J[a+ +4>>2];h=K[o+36|0];k=h?-1:0;p=o+37|0;f=J[o+44>>2];i=f>>>16|0;c=J[a+24>>2];t=J[a+20>>2];g=J[a+16>>2];m=J[a+12>>2];e=J[a+8>>2];d=!(f&16777216);a:{b:{while(1){if(!d){h=0;c:{d=m-e|0;j=t-g>>1;j=(d|0)<(j|0)?d:j;d:{if((j|0)<=0){d=e;break d}d=e;while(1){e=K[d|0];d=d+1|0;e:{if(!((e|0)!=92&(e-32&255)>>>0<94)){if(1<>>0<=13:0)break e;H[p|0]=e;J[b>>2]=12;h=1;break d}if((e|0)==43)break c}I[g>>1]=e;if(c){J[c>>2]=k;k=k+1|0;c=c+4|0}else c=0;g=g+2|0;e=(j|0)>1;j=j-1|0;if(e)continue;break}}n=16777216;if(d>>> +0>=m>>>0)break a;q=15;if(g>>>0>=t>>>0)break b;break a}i=255;f=0;k=k+1|0;s=k;e=d;d=1;continue}if(e>>>0>=m>>>0){n=0;d=e;break a}n=0;q=15;d=e;j=k;f:{g:{h:{while(1){v=h;k=s;e=d;if(g>>>0>=t>>>0)break f;r=K[e|0];H[(h&255)+p|0]=r;h=h+1|0;d=e+1|0;i:{j:{if(r>>>0>125){l=253;break j}u=K[r+743520|0];l=u<<24>>24;if((u&253)!=253)break i}if((i&255)==255){H[p|0]=43;n=16777216;h=1;q=12;i=255;d=e;break b}n=16777216;q=12;if(f&65535)break f;f=0;if((l&255)!=253)break g;break b}s=k+1|0;k:{l:{if((l|0)>=0){m:switch((i<< +24>>24)+1|0){case 2:case 4:case 5:case 7:i=i+1|0;f=(f&65535)<<6|l;break k;case 3:I[g>>1]=f<<4|l>>>2;if(c){J[c>>2]=j;j=k;c=c+4|0}else c=0;g=g+2|0;H[p|0]=r;i=3;f=l&3;h=1;break k;case 6:I[g>>1]=f<<2|l>>>4;if(c){J[c>>2]=j;j=k;c=c+4|0}else c=0;g=g+2|0;H[p|0]=r;f=l&15;i=6;h=1;break k;case 0:case 1:break l;case 8:break m;default:break k}I[g>>1]=f<<6|l;g=g+2|0;if(!c){c=0;h=0;f=0;i=0;break k}J[c>>2]=j;c=c+4|0;h=0;f=0;i=0;j=s;break k}n:{if((i&255)==255){I[g>>1]=43;g=g+2|0;if(!c){c=0;i=255;break n}J[c>>2]=j- +1;c=c+4|0;i=255;break n}if(f&65535)break h;f=0}k=s;e=d;break g}f=l&255;i=1}if((d|0)!=(m|0))continue;break}d=m;break a}n=16777216;q=12;break b}d=0;continue}break}h=v;d=e}J[b>>2]=q}H[o+36|0]=!K[a+2|0]|J[b>>2]>0?h:(d|0)==(m|0)?f&65535?h:0:h;J[o+44>>2]=f&65535|((i&255)<<16|n);J[a+24>>2]=c;J[a+16>>2]=g;J[a+8>>2]=d}function eI(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;n=fc-160|0;fc=n;a:{if(!a|!b)break a;b:{g=J[b+48>>2];if((2147483639-g|0)>0){d=g+1|0;f=d+8|0;if(f>>>0<153391689)break b}fd(a, +63816);break a}e=d;d=J[b+52>>2];c:{if((e|0)<=(d|0))break c;e=J[b+56>>2];if(e){J[b+52>>2]=f;g=sg(a,P(f,28));J[b+56>>2]=g;if(!g){J[b+56>>2]=e;J[b+52>>2]=d;e=1;break a}xc(g,e,P(d,28));Bd(a,e);break c}J[b+48>>2]=0;J[b+52>>2]=9;e=sg(a,252);J[b+56>>2]=e;if(!e){J[b+52>>2]=d;J[b+48>>2]=g;e=1;break a}J[b+184>>2]=J[b+184>>2]|16384}d:{while(1){h=P(o,28)+c|0;d=J[h+4>>2];e:{if(!d)break e;if(J[h>>2]-3>>>0<=4294967291){fd(a,63920);break e}k=J[b+48>>2];p=J[b+56>>2];j=n+80|0;l=1;i=0;e=K[d|0];f:{if(!e)break f;f=1; +while(1){g=0;l=e>>>0<161&(e-127&255)>>>0<162;g:{if(l){g=1;if(f)break g;e=32}H[j|0]=e;i=i+1|0;j=j+1|0}d=d+1|0;e=K[d|0];if(!e)break f;f=g;if(i>>>0<79)continue;break}}d=(i|0)!=0&l;H[j-d|0]=0;m=i-d|0;if(!m){fd(a,64053);break e}q=P(k,28);h:{if(J[h>>2]<=0){g=0;k=0;break h}k=0;g=0;j=J[h+20>>2];if(j){d=n;l=1;i=0;e=K[j|0];i:{if(!e)break i;f=1;while(1){g=0;l=e>>>0<161&(e-127&255)>>>0<162;j:{if(l){g=1;if(f)break j;e=32}H[d|0]=e;i=i+1|0;d=d+1|0}j=j+1|0;e=K[j|0];if(!e)break i;f=g;if(i>>>0<79)continue;break}}f= +d;d=(i|0)!=0&l;H[f-d|0]=0;g=i-d|0}d=J[h+24>>2];if(!d)break h;k=Yc(d)}f=p+q|0;k:{l:{e=J[h+8>>2];m:{if(!e){d=J[h>>2];break m}d=J[h>>2];if(K[e|0])break l}d=(d|0)<=0?-1:1;e=0;break k}e=Yc(e)}J[f>>2]=d;d=sg(a,(e+((g+m|0)+k|0)|0)+4|0);J[f+4>>2]=d;if(!d)break d;xc(d,n+80|0,m);d=f+4|0;H[J[d>>2]+m|0]=0;n:{if(J[h>>2]>0){d=(J[f+4>>2]+m|0)+1|0;J[f+20>>2]=d;xc(d,J[h+20>>2],g);H[J[f+20>>2]+g|0]=0;d=(J[f+20>>2]+g|0)+1|0;J[f+24>>2]=d;xc(d,J[h+24>>2],k);H[J[f+24>>2]+k|0]=0;d=f+24|0;break n}J[f+20>>2]=0;J[f+24>>2]= +0;k=m}d=(J[d>>2]+k|0)+1|0;J[f+8>>2]=d;if(e){xc(d,J[h+8>>2],e);d=J[f+8>>2]}H[d+e|0]=0;d=J[f>>2]>0;J[f+16>>2]=d?e:0;J[f+12>>2]=d?0:e;J[b+48>>2]=J[b+48>>2]+1}o=o+1|0;if((o|0)!=1)continue;break}e=0;break a}e=1}fc=n+160|0;return e}function aM(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0),l=0,m=Q(0),n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=Q(0);g=fc-112|0;fc=g;a:{q=J[b+84>>2];if((q|0)>0){r=a+316|0;p=a+304|0;s=g+80|0;while(1){i=Yn(b,h);j=J[i>>2];J[g+108>>2]=j;c=J[J[a+328>>2]+216>>2]?p:r;d=c+4|0;e=d;b:{c:{c=J[c+4>> +2];if(!c)break c;while(1){l=J[c+16>>2]<(j|0);e=l?e:c;c=J[(l?c+4|0:c)>>2];if(c)continue;break}if(!K[e+92|0]|((d|0)==(e|0)|J[e+16>>2]>(j|0)))break c;d=e+20|0;break b}H[g+3|0]=1;H[g+2|0]=0;c=g+4|0;Eu(c,a,g+108|0,g+3|0,0,g+2|0);J[699344]=0;da(2924,p|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;Cj(s);d=0;c=J[J[a+328>>2]+216>>2]?p:r;l=c+4|0;e=l;c=J[c+4>>2];if(!c)break b;while(1){t=J[c+16>>2]<(j|0);e=t?e:c;c=J[(t?c+4|0:c)>>2];if(c)continue;break}if((e|0)==(l|0))break b;d=J[e+16>>2]<=(j|0)?e+20|0:0}if((j| +0)<0)J[g+108>>2]=0;c=J[d+12>>2];d:{e:{f:{g:{e=J[d+4>>2];switch(e-1|0){case 0:break e;case 1:break g;default:break f}}nD(b,h,k,Q(0));oD(b,h,Q(0),Q(0),Q(0),Q(0));mD(b,h,2);c=0;k=Q(k+Q(O[a+144>>3]+O[a+8>>3]*+N[d+16>>2]));break d}e=0}mD(b,h,e);h:{if(!K[a+105|0]|!f)break h;if(J[Yn(b,h)+60>>2]!=J[Yn(b,h-1|0)+60>>2])break h;wN(J[a+188>>2],f,c,g+4|0);k=Q(k+Q(J[g+4>>2]>>6))}m=N[b+12>>2];n=+Q(m+Q(0));u=N[b+8>>2];o=+Q(k+u);nD(b,h,Q(n*O[b+40>>3]+(o*O[b+24>>3]+O[b+56>>3])-+u),Q(n*O[b+48>>3]+(o*O[b+32>>3]+O[b+ +64>>3])-+m));f=Yn(b,h);e=d- -64|0;j=J[e+4>>2];J[f+52>>2]=J[e>>2];J[f+56>>2]=j;e=J[d+60>>2];J[f+44>>2]=J[d+56>>2];J[f+48>>2]=e;e=J[d+52>>2];J[f+36>>2]=J[d+48>>2];J[f+40>>2]=e;e=J[d+44>>2];J[f+28>>2]=J[d+40>>2];J[f+32>>2]=e;oD(b,h,N[d+24>>2],N[d+36>>2],N[d+28>>2],N[d+32>>2]);n=O[a+144>>3];o=O[a+8>>3];m=N[d+16>>2];H[i+64|0]=K[d+72|0];f=J[d+80>>2];J[i+68>>2]=J[d+76>>2];J[i+72>>2]=f;f=J[d+88>>2];J[i+76>>2]=J[d+84>>2];J[i+80>>2]=f;f=J[d+96>>2];J[i+84>>2]=J[d+92>>2];J[i+88>>2]=f;J[i+92>>2]=J[d+100>>2];k= +Q(k+Q(n+o*+m))}f=c;h=h+1|0;if((q|0)!=(h|0))continue;break}N[b+16>>2]=k+N[b+8>>2];N[b+20>>2]=N[b+12>>2]+Q(0)}fc=g+112|0;return}a=Z()|0;Cj(s);ba(a|0);B()}function Zl(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,z=Q(0),A=Q(0),B=0,C=0;n=J[a+20>>2];t=J[a+28>>2]-n>>3;r=J[a+8>>2];v=+(r|0);while(1){w=J[n+12>>2];g=I[n+8>>1];a=I[n+10>>1];f=a>>31;a:{b:{j=(a^f)-f|0;f=J[c+4>>2];if(j>>>0>f>>>0){k=J[c>>2];a=j+255&130816;if((a|0)==(f|0))break b;if(k)uc(k);J[c+4>> +2]=a;k=vc(a<<2);J[c>>2]=k;break b}k=J[c>>2];if(a)break b;a=0;break a}u=0;f=k;p=g;while(1){e=+(p|0);q=O[d+24>>3]*(O[d+88>>3]+(e*O[d+56>>3]+O[d+72>>3]*v))+O[d+32>>3]*(O[d+96>>3]+(e*O[d+64>>3]+O[d+80>>3]*v));e=R(O[d+40>>3]+q);q=R(q+O[d+48>>3]);x=e>q?1:0;e=(e>=1?x:q>=1?x:e)*512+.5;c:{if(R(e)<2147483648){h=~~e;break c}h=-2147483648}y=(h+d|0)+2168|0;if(!K[y|0]){i=J[d+112>>2];d:{if((i|0)>=2){e=+(h|0)*.001953125;l=J[d+108>>2];a=1;while(1){m=a<<2;z=N[m+l>>2];if(e<+z){if(!(!(e<+N[l>>2])|(a|0)!=1)){a=J[d+104>> +2];J[((h<<2)+d|0)+116>>2]=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);break d}a=J[d+104>>2];i=a+m|0;o=a;a=m-4|0;m=o+a|0;s=K[m+3|0];B=K[i+3|0]-s|0;C=(h<<2)+d|0;o=K[m|0];A=N[a+l>>2];e=(e-+A)/+Q(z-A)*256+.5;e:{if(e<4294967296&e>=0){a=~~e>>>0;break e}a=0}o=o+(P(a,K[i|0]-o|0)>>>8|0)&255;l=K[m+2|0];l=(P(a,B)>>>8|0)+s<<24|((P(a,K[i+2|0]-l|0)>>>8|0)+l&255)<<16;s=K[i+1|0];i=K[m+1|0];J[C+116>>2]=o|(l|((P(a,s-i|0)>>>8|0)+i&255)<<8);break d}a=a+1|0;if((i|0)!=(a|0))continue;break}}if((i|0)<=0)break d;a=J[d+ +104>>2];if(!a)break d;a=(a+(i<<2)|0)-4|0;J[((h<<2)+d|0)+116>>2]=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24)}H[y|0]=1}a=J[((h<<2)+d|0)+116>>2];H[f|0]=a;H[f+1|0]=a>>>8;H[f+2|0]=a>>>16;H[f+3|0]=a>>>24;p=p+1|0;f=f+4|0;u=u+1|0;if((u|0)!=(j|0))continue;break}a=L[n+10>>1]}f:{if(J[b+16>>2]<(r|0)|J[b+8>>2]>(r|0))break f;h=a<<16>>16<0;f=h?0:w;p=K[w|0];a=J[b+4>>2];g:{if((g|0)>=(a|0)){a=g;break g}g=a-g|0;j=j-g|0;if((j|0)<=0)break f;f=h?0:f+g|0;k=(g<<2)+k|0}h=J[b>>2];g=J[b+12>>2];if((g|0)<(a+j|0)){g=g-a|0; +if((g|0)<0)break f;j=g+1|0}_k(h,a,r,j,k,f,p)}n=n+8|0;t=t-1|0;if(t)continue;break}}function Z3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0;b=J[b+84>>2];j=P(J[b+108>>2],I[c+54>>1]);f=P(J[b+44>>2],I[c+22>>1]);g=P(j+f|0,4433)+1024|0;k=P(J[b+100>>2],I[c+50>>1]);h=P(J[b+36>>2],I[c+18>>1]);i=P(k+h|0,4433)+1024|0;m=P(J[b+76>>2],I[c+38>>1]);n=P(J[b+12>>2],I[c+6>>1]);t=m+n<<2;u=g+P(f,6270)>> +11;o=t+u|0;p=P(J[b+68>>2],I[c+34>>1]);q=P(J[b+4>>2],I[c+2>>1]);v=p+q<<2;w=i+P(h,6270)>>11;l=v+w|0;h=P(o+l|0,4433);f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;r=P(J[b+64>>2],L[c+32>>1]);x=P(J[b>>2],L[c>>1]);y=r+x<<2;z=P(J[b+96>>2],I[c+48>>1]);s=P(J[b+32>>2],I[c+16>>1]);A=P(z+s|0,4433)+1024|0;s=A+P(s,6270)>>11;B=(y+s|0)+16|0;C=P(J[b+72>>2],L[c+36>>1]);D=P(J[b+8>>2],L[c+4>>1]);E=C+D<<2;F=P(J[b+104>>2],I[c+52>>1]);b=P(J[b+40>>2],I[c+20>>1]);G=P(F+b|0,4433)+1024|0;M=G+P(b,6270)>>11;b=E+M|0;c=B+b<<13;l=h+P(l,6270)| +0;H[f|0]=K[a+(c+l>>>18&1023)|0];H[f+3|0]=K[a+(c-l>>>18&1023)|0];c=h+P(o,-15137)|0;b=B-b<<13;H[f+1|0]=K[a+(c+b>>>18&1023)|0];H[f+2|0]=K[a+(b-c>>>18&1023)|0];f=g+P(j,-15137)>>11;g=n-m<<2;h=f+g|0;i=i+P(k,-15137)>>11;j=q-p<<2;k=i+j|0;c=P(h+k|0,4433);b=J[d+4>>2]+e|0;k=c+P(k,6270)|0;m=P(z,-15137)+A>>11;n=x-r<<2;o=(m+n|0)+16|0;p=P(F,-15137)+G>>11;q=D-C<<2;l=p+q|0;r=o+l<<13;H[b|0]=K[a+(k+r>>>18&1023)|0];H[b+3|0]=K[a+(r-k>>>18&1023)|0];c=c+P(h,-15137)|0;h=o-l<<13;H[b+1|0]=K[a+(c+h>>>18&1023)|0];H[b+2|0]=K[a+ +(h-c>>>18&1023)|0];f=g-f|0;g=j-i|0;c=P(f+g|0,4433);b=J[d+8>>2]+e|0;g=c+P(g,6270)|0;i=(n-m|0)+16|0;h=q-p|0;j=i+h<<13;H[b|0]=K[a+(g+j>>>18&1023)|0];H[b+3|0]=K[a+(j-g>>>18&1023)|0];c=c+P(f,-15137)|0;f=i-h<<13;H[b+1|0]=K[a+(c+f>>>18&1023)|0];H[b+2|0]=K[a+(f-c>>>18&1023)|0];f=t-u|0;g=v-w|0;c=P(f+g|0,4433);b=J[d+12>>2]+e|0;d=c+P(g,6270)|0;e=(y-s|0)+16|0;g=E-M|0;i=e+g<<13;H[b|0]=K[a+(d+i>>>18&1023)|0];H[b+3|0]=K[a+(i-d>>>18&1023)|0];c=c+P(f,-15137)|0;d=e-g<<13;H[b+1|0]=K[a+(c+d>>>18&1023)|0];H[b+2|0]=K[a+ +(d-c>>>18&1023)|0]}function V0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;J[a+176>>2]=0;J[a+180>>2]=0;J[a>>2]=836212;H[a+228|0]=0;J[a+168>>2]=d;J[a+160>>2]=c;J[a+108>>2]=0;J[a+104>>2]=b;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0;a:{b:{c:{if(!b)break c;J[e>>2]=0;c=J[J[b>>2]+52>>2];J[699344]=0;aa(c|0,b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[a+104>>2];J[e>>2]=255;c=J[J[b>>2]+ +60>>2];J[699344]=0;aa(c|0,b|0,e|0)|0;b=J[699344];J[699344]=0;d:{e:{f:{g:{h:{if((b|0)!=1){b=J[a+104>>2];J[e>>2]=0;J[e+4>>2]=1072693248;c=J[J[b>>2]+68>>2];J[699344]=0;aa(c|0,b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;c=J[a+104>>2];J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;J[e>>2]=b;J[e+4>>2]=5;J[e+8>>2]=-2147483640;J[b+16>>2]=J[198781];d=J[198780];J[b+8>>2]=J[198779];J[b+12>>2]=d;d=J[198778];J[b>>2]=J[198777];J[b+4>>2]=d;J[b+20>>2]=0;b=J[J[c>>2]+236>>2];J[699344]= +0;aa(b|0,c|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;if(H[e+11|0]<0)uc(J[e>>2]);b=J[a+104>>2];J[e>>2]=0;c=J[J[b>>2]+260>>2];J[699344]=0;aa(c|0,b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[a+104>>2];J[e>>2]=0;J[e+4>>2]=1076101120;c=J[J[b>>2]+252>>2];J[699344]=0;aa(c|0,b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[a+104>>2];c=J[J[b>>2]+16>>2];J[699344]=0;aa(c|0,b|0,a+108|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;break a}b= +Z()|0;break a}b=Z()|0;if(H[e+11|0]>=0)break a;uc(J[e>>2]);break a}b=Z()|0;break a}b=Z()|0;break a}H[a+229|0]=0;J[a+224>>2]=0;J[a+172>>2]=0;J[a+164>>2]=0;fc=e+16|0;return a|0}b=Z()|0}T0(a+200|0);d=J[a+204>>2];c=J[a+208>>2];i:{if((d|0)==(c|0))break i;while(1){uc(J[d>>2]);d=d+4|0;if((c|0)!=(d|0))continue;break}c=J[a+208>>2];d=J[a+204>>2];if((c|0)==(d|0))break i;J[a+208>>2]=c+((d-c|0)+3&-4)}c=J[a+200>>2];if(c)uc(c);U0(a+176|0);ba(b|0);B()}function zva(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;j=fc-16|0;fc=j;t=J[a+52>>2];h=J[a+16>>2];o=J[a+12>>2];g=J[a>>2];f=ot(g);e=P(o?4:3,f);n=Dc(e);a:{if(!n){Uc(J[g+628>>2],J[g>>2],81440,0);break a}Sg(n,0,e);k=1;p=1;e=0;b:{c:{d:{e:{f:{g:{h:{i:switch(L[a+28>>1]-1|0){case 0:case 4:e=L[a+30>>1];if(e>>>0>8)break e;e=1<>1];if(l>>>0>8)break e;i=1<>1];if(e>>>0>8)break e;e=1<>1];if(e>>>0>7)break e;e=1<>2]=j+12;$i(g,278,j);l=wj(g);j:{if(!d)break j;q=f+n|0;r=f+q|0;s=f+r|0;v=o?s:0;k=h-c|0;w=h>>>0>=k>>>0?k:0;k=p?0:d-1|0;f=0;k:{while(1){h=J[j+12>>2];i=J[a+76>>2]+f|0;h=h-((i>>>0)%(h>>> +0)|0)|0;h=f+h>>>0>d>>>0?d-f|0:h;m=0;if(!((nt(g,pt(g,i,0),n,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2]))break k;m=0;if(!((nt(g,pt(g,i,1),q,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2]))break k;m=0;if(!((nt(g,pt(g,i,2),r,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2]))break k;l:{if(!o)break l;if((nt(g,pt(g,i,3),s,P(l,h+((J[a+76>>2]+f>>>0)%M[j+12>>2]|0)|0))|0)>=0|!J[a+4>>2])break l;m=0;break k}i=P(l,(J[a+76>>2]+f>>>0)%M[j+12>>2]|0);kc[t|0](a,(P(c,k)<<2)+ +b|0,0,k,c,h,w,u,i+n|0,i+q|0,i+r|0,o?i+v|0:0);k=(p?h:0-h|0)+k|0;f=f+h|0;if(f>>>0>>0)continue;break}m=1}k=m;if(!e)break j;g=0;while(1){f=(P(c,g)<<2)+b|0;a=(f+(c<<2)|0)-4|0;if(a>>>0>f>>>0)while(1){e=J[f>>2];J[f>>2]=J[a>>2];J[a>>2]=e;a=a-4|0;f=f+4|0;if(a>>>0>f>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}uc(n)}fc=j+16|0;return k|0}function Rhb(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;g=fc-16|0;fc=g;h=J[b+16>>2];n=J[a+492>>2];kc[J[b+28>>2]](b);e=J[b>> +2];a:{if(!(e>>>0>=M[b+8>>2]|K[e|0]!=91)){kc[J[b+32>>2]](b);kc[J[b+28>>2]](b);a=J[b>>2];if(a>>>0>2]&K[a|0]==93)break a;J[b+12>>2]=3;break a}e=kc[J[b+36>>2]](b)|0;if((e|0)<0){J[b+12>>2]=3;break a}b:{d=J[b+8>>2];c=J[b>>2];c:{if(d>>>0>>0)break c;d=d-c>>3;if((d|0)>=(e|0))break c;if(J[b+368>>2]){e=d;break c}e=he(h,24,g+12|0);J[b+368>>2]=e;c=J[g+12>>2];if(c)break b;i=g;J[e+16>>2]=1654;J[e+12>>2]=1655;J[e+8>>2]=0;J[e>>2]=80;J[e+4>>2]=241;c=kc[J[h+4>>2]](h,964)|0;d:{if(!c){J[e+20>>2]=c;c=64;break d}o= +e,p=Ac(c,0,964),J[o+20>>2]=p;c=0}J[i+12>>2]=c;e=d;if(c)break b}kc[J[b+32>>2]](b);if(J[b+12>>2])break a;j=b+316|0;kc[J[b+28>>2]](b);if(!J[b+312>>2]){c=kc[J[J[n>>2]>>2]](j,e,h)|0;J[g+12>>2]=c;if(c)break b}d=J[b>>2];e:{if(M[b+8>>2]<=d+4>>>0)break e;while(1){if(ud(d,254327,3))break e;kc[J[b+32>>2]](b);d=kc[J[b+36>>2]](b)|0;k=J[J[a+128>>2]+52>>2];c=J[b+8>>2];kc[J[b+28>>2]](b);f:{f=J[b>>2];g:{if(f>>>0>=c>>>0|K[f|0]-48>>>0>9)break g;f=kc[J[b+36>>2]](b)|0;kc[J[b+32>>2]](b);if((f|0)<0)break g;i=c;c=J[b>>2]; +l=c+1|0;if((f|0)<(i-l|0))break f}if(k)break a;J[b+12>>2]=3;break a}J[b>>2]=(c+f|0)+1;if(J[b+12>>2])break a;kc[J[b+32>>2]](b);if(J[b+12>>2])break a;kc[J[b+28>>2]](b);c=J[b>>2];h:{if(M[b+8>>2]<=c+4>>>0)break h;if(ud(c,254349,3))break h;kc[J[b+32>>2]](b);kc[J[b+28>>2]](b)}c=J[b+368>>2];if(c){cE(d,m,c,h);d=m}if(!J[b+312>>2]){c=J[a+172>>2];i:{if((c|0)>=0){if(c>>>0>f>>>0){c=3;break b}k=he(h,f,g+12|0);c=J[g+12>>2];if(c)break b;c=xc(k,l,f);kc[J[n+16>>2]](c,f,4330);i=d;d=J[a+172>>2];o=g,p=kc[J[b+360>>2]](j, +i,d+c|0,f-d|0)|0,J[o+12>>2]=p;if(c)kc[J[h+8>>2]](h,c);c=J[g+12>>2];break i}c=kc[J[b+360>>2]](j,d,l,f)|0;J[g+12>>2]=c}if(c)break b}m=m+1|0;d=J[b>>2];if(M[b+8>>2]>d+4>>>0)continue;break}}if(J[b+312>>2])break a;J[b+312>>2]=e;break a}J[b+12>>2]=c}fc=g+16|0}function RDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=fc-96|0;fc=e;c=ZU(e+20|0,b);J[699344]=0;f=aa(5151,e+56|0,c|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((d|0)!=1){J[c+24>>2]=2392964;J[c>>2]=2392932;d=J[c+28>>2];if(d){g=J[d+4>>2]-1| +0;J[d+4>>2]=g;if(!g)kc[J[J[d>>2]+4>>2]](d);J[c+28>>2]=0}J[c+16>>2]=2392964;d=J[c+20>>2];if(d){g=J[d+4>>2]-1|0;J[d+4>>2]=g;if(!g)kc[J[J[d>>2]+4>>2]](d);J[c+20>>2]=0}wc(c+8|0);i:{if(K[f+32|0])break i;J[699344]=0;da(5282,f|0,1);c=J[699344];J[699344]=0;if((c|0)==1)break h;if(K[f+32|0])break i;J[699344]=0;b=aa(5150,e+20|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[699344]=0;aa(5253,f|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[b+24>>2]=2392964;J[b>>2]=2392932;c=J[b+28>>2];if(c){d= +J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[b+28>>2]=0}J[b+16>>2]=2392964;c=J[b+20>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[b+20>>2]=0}wc(b+8|0)}J[699344]=0;da(5283,e+12|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;b=J[e+12>>2];if(!b)break e;c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,e+92|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;a=Z()|0;break b}a=Z()|0;Ed(c);ba(a|0);B()}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;Ed(b);break a}J[e+92>>2]=0}J[699344]= +0;aa(5153,a+36|0,e+92|0)|0;b=J[699344];J[699344]=0;j:{if((b|0)!=1){b=J[e+92>>2];J[e+92>>2]=0;if(!b)break j;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break j;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j}ea(0)|0;Bc();B()}a=Z()|0;zc(e+92|0);break b}b=a;a=J[a+36>>2];J[b+40>>2]=J[(a?a+12|0:2743576)>>2];wc(e+12|0);J[f+24>>2]=2392964;J[f>>2]=2392932;a=J[f+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[f+28>>2]=0}J[f+ +16>>2]=2392964;a=J[f+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[f+20>>2]=0}wc(f+8|0);fc=e+96|0;return}a=Z()|0;break a}wc(e+12|0)}Ed(f);ba(a|0);B()}function $0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0,z=0;w=fc-400|0;fc=w;t=J[a+332>>2];b=J[b+84>>2];a=w;while(1){i=J[b+192>>2];j=I[c+96>>1];m=J[b+64>>2];q=I[c+32>>1];l=P(I[c>>1],J[b>>2])<<13|1024;f=P(J[b+128>>2],I[c+64>>1]);k=l+P(f,-11586)>> +11;n=P(J[b+224>>2],I[c+112>>1]);g=P(J[b+32>>2],I[c+16>>1]);h=P(J[b+96>>2],I[c+48>>1]);r=g-h|0;o=P(J[b+160>>2],I[c+80>>1]);p=n+(r-o|0)<<2;J[a+280>>2]=k-p;J[a+84>>2]=k+p;j=P(i,j);m=P(m,q);q=P(j+m|0,9058);k=q+P(j,-14084)|0;p=l+P(f,2578)|0;u=k+p|0;i=n<<13;n=P(h+o|0,-1297)-i|0;x=P(g+h|0,10935);v=n+(x+P(h,-3474)|0)|0;J[a+336>>2]=u-v>>11;J[a+28>>2]=u+v>>11;j=P(j,-11295)+P(m,5027)|0;u=l+P(f,-7223)|0;v=j+u|0;s=n;n=g+o|0;y=P(n,9810);s=s+(y+P(o,-19447)|0)|0;J[a+308>>2]=v-s>>11;J[a+56>>2]=v+s>>11;k=p-k|0;r=P(r, +3826)-i|0;s=P(h,5529);h=P(o-h|0,11512);p=r+(s+h|0)|0;J[a+224>>2]=k-p>>11;J[a+140>>2]=k+p>>11;f=l+P(f,10438)|0;l=q+P(m,2237)|0;m=f-l|0;q=P(n,6164);k=r+(q+P(g,-8693)|0)|0;J[a+196>>2]=m-k>>11;J[a+168>>2]=m+k>>11;f=f+l|0;g=i+((P(g,-9232)+x|0)+y|0)|0;J[a+364>>2]=f-g>>11;J[a>>2]=f+g>>11;g=u-j|0;h=i+(q+(h+P(o,-13850)|0)|0)|0;J[a+252>>2]=g-h>>11;J[a+112>>2]=g+h>>11;a=a+4|0;b=b+4|0;c=c+2|0;z=z+1|0;if((z|0)!=7)continue;break}b=t+128|0;a=w;h=0;while(1){g=J[a+12>>2];f=J[a+4>>2];l=P(g+f|0,7663);o=J[a+16>>2];i= +J[a+24>>2];j=P(o-i|0,7223);c=J[(h<<2)+d>>2]+e|0;m=J[a+20>>2];q=P(m+f|0,5027);t=P(f-g|0,1395);k=q+(l-t|0)|0;s=j+P(i,-637)|0;f=J[a+8>>2];r=f+i|0;i=(J[a>>2]<<13)+131072|0;n=P(r,10438)+i|0;p=s+n|0;H[c|0]=K[b+(k+p>>>18&1023)|0];H[c+6|0]=K[b+(p-k>>>18&1023)|0];g=P(g+m|0,-11295);l=g+(l+t|0)|0;t=P(f-o|0,2578);j=j+(t+(i+P(o,-15083)|0)|0)|0;H[c+1|0]=K[b+(l+j>>>18&1023)|0];H[c+5|0]=K[b+(j-l>>>18&1023)|0];g=g+(P(m,15326)+q|0)|0;f=n+(t+P(f,-20239)|0)|0;H[c+2|0]=K[b+(g+f>>>18&1023)|0];H[c+4|0]=K[b+(f-g>>>18&1023)| +0];H[c+3|0]=K[b+(i+P(o-r|0,11585)>>>18&1023)|0];a=a+28|0;h=h+1|0;if((h|0)!=14)continue;break}fc=w+400|0}function rna(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;a=fc-16|0;fc=a;j=K[c+11|0];k=J[c+4>>2];a:{if(H[b+11|0]>=0){J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;break a}Ve(a,J[b>>2],J[b+4>>2])}e=J[a>>2];d=K[a+11|0];g=d<<24>>24;h=(g|0)<0;f=J[a+4>>2];i=h?f:d;b:{if(i){d=h?e:a;e=d+(i<<2)|0;while(1){f=J[d>>2];J[699344]=0;f=$s(f);g=J[699344];J[699344]=0;if((g|0)==1)break b; +J[d>>2]=f;d=d+4|0;if((e|0)!=(d|0))continue;break}f=J[a+4>>2];d=K[a+11|0];g=d;e=J[a>>2]}j=j<<24>>24<0?k:j;h=g<<24>>24<0;f=h?f:d;d=K[c+11|0];g=d<<24>>24<0;d=g?J[c+4>>2]:d;g=g?J[c>>2]:c;h=h?e:a;k=0;e=0;c:{while(1){d:{e:{f:{g:{if(d){i=(f<<2)+h|0;f=(e<<2)+h|0;e=i-f>>2;if((d|0)>(e|0))break d;l=J[g>>2];while(1){e=(e-d|0)+1|0;if(!e)break d;e=og(f,l,e);if(!e)break d;if(qd(e,g,d)){f=e+4|0;e=i-f>>2;if((d|0)<=(e|0))continue;break d}break}if((e|0)==(i|0))break d;e=e-h>>2}h:{i:switch(e+1|0){default:J[699344]=0; +d=e-1|0;g=aa(3358,a|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;h=K[b+11|0];f=h<<24>>24<0;i=d;d=J[g>>2]==45;e=d?i:e;if(e>>>0>(f?J[b+4>>2]:h)>>>0)break c;d=d+j|0;break h;case 1:break i;case 0:break d}e=0;f=H[b+11|0]<0;d=j}if((d|0)==-1){j:{if(f){J[b+4>>2]=e;d=J[b>>2];break j}H[b+11|0]=e;d=b}f=e<<2;J[d+f>>2]=0;g=K[a+11|0];d=g<<24>>24;if(((d|0)<0?J[a+4>>2]:g)>>>0>=e>>>0)break g;b=a;break c}J[699344]=0;ca(2971,b|0,e|0,d|0);f=J[699344];J[699344]=0;if((f|0)==1)break b;f=K[a+11|0];if((f<<24>>24< +0?J[a+4>>2]:f)>>>0>=e>>>0)break f;b=a;break c}k:{if((d|0)<0){J[a+4>>2]=e;d=J[a>>2];break k}H[a+11|0]=e;d=a}J[d+f>>2]=0;break e}J[699344]=0;ca(2971,a|0,e|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b}d=K[c+11|0];f=d<<24>>24<0;d=f?J[c+4>>2]:d;g=f?J[c>>2]:c;f=K[a+11|0];i=f<<24>>24<0;h=i?J[a>>2]:a;k=1;f=i?J[a+4>>2]:f;if(f>>>0>=e>>>0)continue}break}if(H[a+11|0]<0)uc(J[a>>2]);fc=a+16|0;return k|0}J[699344]=0;$(2970,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)B()}b=Z()|0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b| +0);B()}function s4(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;N[a+8>>2]=N[a>>2]+d;N[a+12>>2]=N[a+4>>2]+e;h=J[a+80>>2];if(h){k=h-4|0;f=J[k>>2];if(f){f=h+P(f,96)|0;while(1){i=f;f=f-96|0;a:{if(!J[f+92>>2])break a;i=i-8|0;g=J[i>>2];if(!g)break a;uc(g);J[i>>2]=0}if((f|0)!=(h|0))continue;break}}uc(k)}h=0;J[a+88>>2]=0;c=J[c>>2];J[a+84>>2]=c;if((c|0)>0){f=vc((l=-1,m=vEb(c,0,96,0)|4,n=jc,n?l:m));J[f>>2]=c;i=f+4|0;f=i;k=P(c,96);g=k-96|0;j=((g>>>0)/96|0)+1&7;if(j)while(1){J[f+68>>2]=0;J[f+72>>2]=0;J[f+ +84>>2]=0;J[f+88>>2]=0;J[f+76>>2]=0;J[f+80>>2]=0;J[f+92>>2]=1;f=f+96|0;h=h+1|0;if((j|0)!=(h|0))continue;break}if(g>>>0>=672){h=i+k|0;while(1){J[f+68>>2]=0;J[f+72>>2]=0;J[f+84>>2]=0;J[f+88>>2]=0;J[f+76>>2]=0;J[f+80>>2]=0;J[f+164>>2]=0;J[f+168>>2]=0;J[f+92>>2]=1;J[f+172>>2]=0;J[f+176>>2]=0;J[f+180>>2]=0;J[f+184>>2]=0;J[f+260>>2]=0;J[f+264>>2]=0;J[f+188>>2]=1;J[f+268>>2]=0;J[f+272>>2]=0;J[f+276>>2]=0;J[f+280>>2]=0;J[f+356>>2]=0;J[f+360>>2]=0;J[f+284>>2]=1;J[f+364>>2]=0;J[f+368>>2]=0;J[f+372>>2]=0;J[f+ +376>>2]=0;J[f+380>>2]=1;J[f+452>>2]=0;J[f+456>>2]=0;J[f+460>>2]=0;J[f+464>>2]=0;J[f+468>>2]=0;J[f+472>>2]=0;J[f+548>>2]=0;J[f+552>>2]=0;J[f+476>>2]=1;J[f+556>>2]=0;J[f+560>>2]=0;J[f+564>>2]=0;J[f+568>>2]=0;J[f+644>>2]=0;J[f+648>>2]=0;J[f+572>>2]=1;J[f+652>>2]=0;J[f+656>>2]=0;J[f+660>>2]=0;J[f+664>>2]=0;J[f+740>>2]=0;J[f+744>>2]=0;J[f+668>>2]=1;J[f+748>>2]=0;J[f+752>>2]=0;J[f+756>>2]=0;J[f+760>>2]=0;J[f+764>>2]=1;f=f+768|0;if((h|0)!=(f|0))continue;break}}J[a+80>>2]=i;h=0;f=0;if(c>>>0>=4){k=c&-4;a= +0;while(1){g=J[(f<<2)+b>>2];j=i+P(f,96)|0;H[j+64|0]=0;J[j>>2]=g;g=f|1;j=J[(g<<2)+b>>2];g=i+P(g,96)|0;H[g+64|0]=0;J[g>>2]=j;g=f|2;j=J[(g<<2)+b>>2];g=i+P(g,96)|0;H[g+64|0]=0;J[g>>2]=j;g=f|3;j=J[(g<<2)+b>>2];g=i+P(g,96)|0;H[g+64|0]=0;J[g>>2]=j;f=f+4|0;a=a+4|0;if((k|0)!=(a|0))continue;break}}a=c&3;if(a)while(1){c=J[(f<<2)+b>>2];k=i+P(f,96)|0;H[k+64|0]=0;J[k>>2]=c;f=f+1|0;h=h+1|0;if((a|0)!=(h|0))continue;break}return}J[a+80>>2]=0}function xia(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0; +h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=fc-256|0;fc=i;J[i+248>>2]=37;J[i+252>>2]=0;k=i+248|0;m=iz(k|1,21181,J[c+4>>2]);j=i+208|0;J[i+204>>2]=j;a=gh();a:{if(m){l=J[c+8>>2];n=i- -64|0;J[n>>2]=g;J[n+4>>2]=h;J[i+56>>2]=e;J[i+60>>2]=f;J[i+48>>2]=l;a=Di(j,30,a,k,i+48|0);break a}J[i+80>>2]=e;J[i+84>>2]=f;J[i+88>>2]=g;J[i+92>>2]=h;a=Di(i+208|0,30,a,i+248|0,i+80|0)}J[i+128>>2]=1617;k=Bg(i+196|0,0,i+128|0);l=i+208|0;j=l;b:{c:{d:{e:{if((a|0)>=30){f:{if(m){J[699344]=0;a=pa(6851)|0;j=J[699344];J[699344]=0;if((j|0)== +1)break d;j=J[c+8>>2];J[i+16>>2]=g;J[i+20>>2]=h;J[i>>2]=j;J[699344]=0;J[i+8>>2]=e;J[i+12>>2]=f;a=ha(6872,i+204|0,a|0,i+248|0,i|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break f;break d}J[699344]=0;a=pa(6851)|0;j=J[699344];J[699344]=0;if((j|0)==1)break d;J[i+32>>2]=e;J[i+36>>2]=f;J[699344]=0;J[i+40>>2]=g;J[i+44>>2]=h;a=ha(6872,i+204|0,a|0,i+248|0,i+32|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d}if((a|0)==-1){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;break e}zh(k,J[i+204>> +2]);j=J[i+204>>2]}h=a+j|0;j=fk(j,h,c);J[i+116>>2]=1617;e=Bg(i+120|0,0,i+116|0);g:{h:{if(J[i+204>>2]==(i+208|0)){a=i+128|0;break h}a=Dc(a<<1);if(!a){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)!=1)break e;b=Z()|0;break g}zh(e,a);l=J[i+204>>2]}J[699344]=0;f=i+108|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;g=J[699344];J[699344]=0;i:{j:{if((g|0)!=1){J[699344]=0;ua(6873,l|0,j|0,h|0,a|0,i+116|0,i+112|0,f|0);g=J[699344];J[699344]=0;if((g|0)==1)break j;f=J[f>>2];g=J[f+4>>2]-1|0;J[f+4>>2]=g;if((g| +0)==-1)kc[J[J[f>>2]+8>>2]](f);J[699344]=0;a=ja(6874,b|0,a|0,J[i+116>>2],J[i+112>>2],c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;Ie(e);Ie(k);fc=i+256|0;break b}b=Z()|0;break g}b=Z()|0;a=J[i+108>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ie(e);break c}B()}b=Z()|0}Ie(k);ba(b|0);B()}return a|0}function xha(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;g=fc-480|0;fc=g;a=g+476|0;h=J[d+28>>2];J[a>>2]=h;J[h+ +4>>2]=J[h+4>>2]+1;J[699344]=0;n=_(6750,a|0)|0;a=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((a|0)!=1){if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;if(a){if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;k=J[a>>2];J[699344]=0;h=aa(6881,n|0,45)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;o=(h|0)==(k|0)}l=Ze(g+452|0);i=Ze(g+440|0);j=Ze(g+428|0);J[699344]=0;Ka(6912,c|0,o|0,g+476|0,g+472|0,g+468|0,g+464|0,l|0,i|0,j|0,g+424|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;J[g+4>>2]=1617;m=Bg(g+8|0,0,g+4|0); +c=g+16|0;if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;h:{if((a|0)>J[g+424>>2]){if(K[f+11|0]>>>7|0)h=J[f+4>>2];else h=K[f+11|0]&127;k=J[g+424>>2];if(K[i+11|0]>>>7|0)a=J[i+4>>2];else a=K[i+11|0]&127;if(K[j+11|0]>>>7|0)p=J[j+4>>2];else p=K[j+11|0]&127;a=(k+(a+(p+(h-k<<1)|0)|0)|0)+1|0;break h}k=J[g+424>>2];if(K[j+11|0]>>>7|0)a=J[j+4>>2];else a=K[j+11|0]&127;if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;a=(k+(a+h|0)|0)+2|0}if(a>>>0<101)break e;zh(m,Dc(a<<2));c=J[m>>2];if(c)break e;J[699344]= +0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;B()}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break c}k=J[d+4>>2];if(K[f+11|0]>>>7|0)h=J[f>>2];else h=f;if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;if(K[f+11|0]>>>7|0)f=J[f+4>>2];else f=K[f+11|0]&127;J[699344]=0;Qa(6913,c|0,g+4|0,g|0,k|0,h|0,(f<<2)+a|0,n|0,o|0,g+472|0,J[g+468>>2],J[g+464>>2],l|0,i|0,j|0,J[g+424>>2]);a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;b=ja(6885,b|0,c|0,J[g+4>>2],J[g>>2],d|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break a}}f= +Z()|0;Ie(m)}df(j);df(i);jd(l)}b=J[g+476>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)kc[J[J[b>>2]+8>>2]](b);ba(f|0);B()}Ie(m);df(j);df(i);jd(l);c=J[g+476>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)kc[J[J[c>>2]+8>>2]](c);fc=g+480|0;return b|0}function lia(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;i=fc-416|0;fc=i;J[i+408>>2]=37;J[i+412>>2]=0;k=i+408|0;m=iz(k|1,21181,J[c+4>>2]);j=i+368|0;J[i+364>>2]=j;a=gh();a:{if(m){l=J[c+8>>2];n=i- -64|0;J[n>>2]= +g;J[n+4>>2]=h;J[i+56>>2]=e;J[i+60>>2]=f;J[i+48>>2]=l;a=Di(j,30,a,k,i+48|0);break a}J[i+80>>2]=e;J[i+84>>2]=f;J[i+88>>2]=g;J[i+92>>2]=h;a=Di(i+368|0,30,a,i+408|0,i+80|0)}J[i+128>>2]=1617;k=Bg(i+356|0,0,i+128|0);l=i+368|0;j=l;b:{c:{d:{e:{if((a|0)>=30){f:{if(m){J[699344]=0;a=pa(6851)|0;j=J[699344];J[699344]=0;if((j|0)==1)break d;j=J[c+8>>2];J[i+16>>2]=g;J[i+20>>2]=h;J[i>>2]=j;J[699344]=0;J[i+8>>2]=e;J[i+12>>2]=f;a=ha(6872,i+364|0,a|0,i+408|0,i|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break f;break d}J[699344]= +0;a=pa(6851)|0;j=J[699344];J[699344]=0;if((j|0)==1)break d;J[i+32>>2]=e;J[i+36>>2]=f;J[699344]=0;J[i+40>>2]=g;J[i+44>>2]=h;a=ha(6872,i+364|0,a|0,i+408|0,i+32|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d}if((a|0)==-1){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;break e}zh(k,J[i+364>>2]);j=J[i+364>>2]}h=a+j|0;j=fk(j,h,c);J[i+116>>2]=1617;e=Bg(i+120|0,0,i+116|0);g:{h:{if(J[i+364>>2]==(i+368|0)){a=i+128|0;break h}a=Dc(a<<3);if(!a){J[699344]=0;ka(6831);a=J[699344];J[699344]=0; +if((a|0)!=1)break e;b=Z()|0;break g}zh(e,a);l=J[i+364>>2]}J[699344]=0;f=i+108|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;g=J[699344];J[699344]=0;i:{j:{if((g|0)!=1){J[699344]=0;ua(6884,l|0,j|0,h|0,a|0,i+116|0,i+112|0,f|0);g=J[699344];J[699344]=0;if((g|0)==1)break j;f=J[f>>2];g=J[f+4>>2]-1|0;J[f+4>>2]=g;if((g|0)==-1)kc[J[J[f>>2]+8>>2]](f);J[699344]=0;a=ja(6885,b|0,a|0,J[i+116>>2],J[i+112>>2],c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;Ie(e);Ie(k);fc=i+416|0;break b}b=Z()|0;break g}b= +Z()|0;a=J[i+108>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ie(e);break c}B()}b=Z()|0}Ie(k);ba(b|0);B()}return a|0}function dza(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;d=fc-16|0;fc=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2397928;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;h=a;a:{b:{c:{d:{e:{a=J[c>>2];f:{if(!a)break f;i=J[a+8>>2];if(!i)break f;J[699344]=0;f=b- -64|0;a=f;g=J[a+24>>2];J[d+12>>2]=a;J[d+8>>2]=g;a=J[699344];J[699344]=0;if((a| +0)==1)break c;a=J[d+8>>2];if(!a)break f;g=b+36|0;while(1){if(J[d+12>>2]!=(f|0)){J[699344]=0;da(5243,d+8|0,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break a}J[699344]=0;a=ga(5287,c|0,a+16|0,i|0)|0;b=J[699344];J[699344]=0;g:{h:{i:{if((b|0)!=1){if(a)break g;a=J[d+8>>2];if(!(J[d+12>>2]==(f|0)?a:0)){J[699344]=0;da(5243,d+8|0,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;break b}b=J[a+24>>2];J[699344]=0;J[d+4>>2]=0;a=J[J[g+12>>2]+((b>>>0)%M[g+8>>2]<<2)>>2];e=J[699344];J[699344]=0;if((e| +0)!=1){if(!a)break h;while(1){if(!((b|0)==J[a+12>>2]&(b|0)==J[a+16>>2])){a=J[a+8>>2];if(a)continue;break i}break}if(!J[a+20>>2]|J[b+4>>2]<=0)break i;J[699344]=0;aa(5145,d+4|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break i;break e}break e}a=Z()|0;break b}a=J[d+4>>2];if(!a)break g;if(J[a+4>>2]>0)break h;J[699344]=0;aa(5145,d+4|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e}if(!J[d+4>>2])break g;J[699344]=0;a=_(4,12)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[a>>2]=0;J[a+4>>2]=0;b=J[d+4>> +2];e=0;j:{if(!b)break j;J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break e;e=J[d+4>>2]}b=e;J[a+8>>2]=b;J[699344]=0;vf(h,a);a=J[699344];J[699344]=0;if((a|0)==1)break e;a=J[d+4>>2];J[d+4>>2]=0;if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;e=J[699344];J[699344]=0;if((e|0)==1)break d;if(b)break g;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break d}a=J[d+8>>2];if(!a)break f;a=J[a>>2];J[d+8>>2]=a;if(a)continue;break}}fc=d+16|0;return}a=Z()|0;zc(d+4|0); +break b}ea(0)|0;Bc();B()}a=Z()|0}id(h);ba(a|0);B()}B()}function Yl(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=Q(0),r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=Q(0),A=0,B=0;n=J[a+20>>2];t=J[a+28>>2]-n>>3;p=J[a+8>>2];v=+(p|0);while(1){w=J[n+12>>2];i=I[n+8>>1];a=I[n+10>>1];h=a>>31;a:{b:{k=(a^h)-h|0;h=J[c+4>>2];if(k>>>0>h>>>0){l=J[c>>2];a=k+255&130816;if((a|0)==(h|0))break b;if(l)uc(l);J[c+4>>2]=a;l=vc(a<<2);J[c>>2]=l;break b}l=J[c>>2];if(a)break b;a=0;break a}u=0;h=l;a=i;while(1){f=+(a|0); +x=O[d+64>>3]+(f*O[d+32>>3]+O[d+48>>3]*v)-O[d+8>>3];f=O[d+72>>3]+(f*O[d+40>>3]+O[d+56>>3]*v)-O[d+16>>3];f=O[d+24>>3]*Y(x*x+f*f);f=(f>1?1:f)*512+.5;c:{if(R(f)<2147483648){g=~~f;break c}g=-2147483648}y=(d+g|0)+2144|0;if(!K[y|0]){d:{e:{f:{j=J[d+88>>2];g:{if((j|0)<2)break g;f=+(g|0)*.001953125;m=J[d+84>>2];if(f<+N[m>>2])break f;e=1;q=N[m+4>>2];if(f<+q)break e;e=2;if((j|0)==2)break g;while(1){q=N[(e<<2)+m>>2];if(f<+q)break e;e=e+1|0;if((j|0)!=(e|0))continue;break}}e=(J[d+80>>2]+(j<<2)|0)-4|0;J[((g<<2)+ +d|0)+92>>2]=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);break d}e=J[d+80>>2];J[((g<<2)+d|0)+92>>2]=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);break d}o=J[d+80>>2];e=e<<2;j=o+e|0;e=e-4|0;o=e+o|0;r=K[o+3|0];A=K[j+3|0]-r|0;B=(g<<2)+d|0;s=K[o|0];z=N[e+m>>2];f=(f-+z)/+Q(q-z)*256+.5;h:{if(f<4294967296&f>=0){e=~~f>>>0;break h}e=0}s=s+(P(e,K[j|0]-s|0)>>>8|0)&255;m=K[o+2|0];m=r+(P(e,A)>>>8|0)<<24|((P(e,K[j+2|0]-m|0)>>>8|0)+m&255)<<16;r=K[j+1|0];j=K[o+1|0];J[B+92>>2]=s|(m|((P(e,r-j|0)>>>8|0)+j&255)<< +8)}H[y|0]=1}g=J[((g<<2)+d|0)+92>>2];H[h|0]=g;H[h+1|0]=g>>>8;H[h+2|0]=g>>>16;H[h+3|0]=g>>>24;a=a+1|0;h=h+4|0;u=u+1|0;if((u|0)!=(k|0))continue;break}a=L[n+10>>1]}i:{if(J[b+16>>2]<(p|0)|J[b+8>>2]>(p|0))break i;g=a<<16>>16<0;h=g?0:w;e=K[w|0];a=J[b+4>>2];j:{if((i|0)>=(a|0)){a=i;break j}i=a-i|0;k=k-i|0;if((k|0)<=0)break i;h=g?0:h+i|0;l=(i<<2)+l|0}g=J[b>>2];i=J[b+12>>2];if((i|0)<(a+k|0)){i=i-a|0;if((i|0)<0)break i;k=i+1|0}_k(g,a,p,k,l,h,e)}n=n+8|0;t=t-1|0;if(t)continue;break}}function Tra(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;e=fc-16|0;fc=e;J[a+8>>2]=0;J[a>>2]=2436744;J[a+4>>2]=0;c=J[685894];J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=c;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[699344]=0;i=aa(5250,a+16|0,2401340)|0;c=J[699344];J[699344]=0;j=a+8|0;a:{b:{c:{d:{e:{f:{g:{h:{if((c|0)!=1){J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[699344]=0;g=a+44|0;J[g>>2]=2436816;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1)break h;J[a+60>>2]= +0;c=J[685894];J[a+68>>2]=0;J[a+72>>2]=0;J[a- -64>>2]=c;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[699344]=0;k=aa(5250,a+68|0,2436836)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[a+96>>2]=0;while(1){c=b;b=c+1|0;d=H[c|0];if((d|0)==32|d-9>>>0<5)continue;break}b=c;while(1){i:{j:{k:{f=d&255;switch(f-47|0){case 0:case 15:break i;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break j;default:break k}}if(!f)break i}if((d| +0)==32|d-9>>>0<5)break i;d=H[b+1|0];b=b+1|0;continue}break}J[699344]=0;h=ga(5339,e+4|0,c|0,b-c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;f=J[h>>2];l:{if(f){c=J[J[f>>2]+28>>2];J[699344]=0;ca(c|0,e+12|0,f|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break l;b=Z()|0;wc(h);break d}J[e+12>>2]=0}J[699344]=0;aa(5153,j|0,e+12|0)|0;c=J[699344];J[699344]=0;m:{if((c|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break m;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;c=J[699344];J[699344]=0;if((c|0)!=1){if(f)break m;J[699344]= +0;$(5147,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break m}ea(0)|0;Bc();B()}b=Z()|0;zc(e+12|0);wc(h);break d}c=J[a+8>>2];J[a+12>>2]=J[(c?c+12|0:2743576)>>2];wc(h);J[699344]=0;ca(5709,b|0,i|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break e;fc=e+16|0;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0}Md(k)}wc(a+60|0);id(g)}Md(i)}wc(j);nd(a);ba(b|0);B()}function sU(a,b){var c=0,d=0,e=0;e=a+1768|0;c=fc-80|0;fc=c;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+12>> +2]=0;J[c+16>>2]=0;J[c+8>>2]=340552;J[699344]=0;ga(2227,c+24|0,2443472,5)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){if(H[c+23|0]>=0)break b;J[c+16>>2]=0;d=J[c+12>>2];break a}a=Z()|0;if(H[c+35|0]<0)uc(J[c+24>>2]);if(H[c+23|0]<0)uc(J[c+12>>2]);ba(a|0);B()}H[c+23|0]=0;d=c+8|4}J[d>>2]=0;I[c+56>>1]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+68>>2]=0;J[c+72>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+60>>2]=0;J[c+64>>2]=0;J[699344]=0;aa(6543,e+8|0,c+8|0)|0;d=J[699344];J[699344]=0;c:{if((d|0)!=1){J[c+8>>2]=340552;if(H[c+ +35|0]<0)uc(J[c+24>>2]);if(H[c+23|0]<0)uc(J[c+12>>2]);d=J[e>>2];if(d){d=kc[J[J[d>>2]+16>>2]](d)|0;kc[J[J[d>>2]+16>>2]](d)}fc=c+80|0;break c}a=Z()|0;yk(c+8|0);ba(a|0);B()}c=J[a+4>>2];if(!(!c|!K[b|0])){b=kc[J[J[c>>2]+24>>2]](c)|0;kc[J[J[b>>2]+24>>2]](b)}Zz(a);c=J[a+2788>>2];d=a+2792|0;if((c|0)!=(d|0))while(1){b=J[c+20>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[c+4>>2];d:{if(b)while(1){c=b;b=J[c>>2];if(b)continue;break d}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}qr(a+ +2788|0,J[a+2792>>2]);J[a+2788>>2]=d;J[a+2792>>2]=0;J[a+2796>>2]=0;b=a+1928|0;Xz(b);J[a+2696>>2]=0;d=a+1976|0;J[d+80>>2]=b;J[d+76>>2]=e;b=a+1720|0;J[d+68>>2]=b;c=a+652|0;J[d+64>>2]=c;J[d+60>>2]=a+2776;J[d+56>>2]=a+648;J[d+52>>2]=a+552;J[d+48>>2]=a+512;J[d+44>>2]=a+72;J[d+40>>2]=a+8;J[d+36>>2]=a+440;J[d+72>>2]=a+1736;J[685895]=1024;e:{if(H[c+23|0]<0){J[c+16>>2]=0;a=J[c+12>>2];break e}H[c+23|0]=0;a=c+12|0}J[a>>2]=0;J[c+28>>2]=1200;J[c+32>>2]=0;pr(c,J[c+4>>2]);J[c>>2]=c+4;J[c+4>>2]=0;J[c+8>>2]=0;a=b; +f:{if(!J[a+8>>2])break f;b=J[a+4>>2];c=J[b>>2];d=J[J[a>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+8>>2]=0;if((a|0)==(b|0))break f;while(1){c=b;b=J[c+4>>2];d=J[c+12>>2];g:{if(!d)break g;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break g;kc[J[J[d>>2]+8>>2]](d);Gc(d)}uc(c);if((a|0)!=(b|0))continue;break}}}function YTa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;m=fc-128|0;d=a;while(1){a:{e=d;d=J[(i<<2)+b>>2]+c|0;g=K[d+11|0];j=K[d|0];f=g+j| +0;l=K[d+6|0];p=K[d+5|0];k=l+p|0;n=f-k|0;o=K[d+10|0];q=K[d+1|0];h=o+q|0;r=K[d+7|0];s=K[d+4|0];t=r+s|0;u=h-t|0;v=K[d+9|0];w=K[d+2|0];x=v+w|0;y=K[d+8|0];z=K[d+3|0];A=y+z|0;d=x-A|0;J[e+24>>2]=n-(u+d|0);f=f+k|0;k=h;h=x+A|0;J[e>>2]=(f+(t+(k+h|0)|0)|0)-1536;J[e+16>>2]=P(f-h|0,10033)+4096>>13;J[e+8>>2]=((u-d|0)+P(d+n|0,11190)|0)+4096>>13;f=s-r|0;n=q-o|0;k=P(f+n|0,4433);o=k+P(f,-15137)|0;d=j-g|0;g=z-y|0;j=p-l|0;f=w-v|0;J[e+12>>2]=((o+P(d-g|0,10703)|0)+P(j+f|0,-4433)|0)+4096>>13;l=P(d+g|0,7053);h=l+P(g,5946)| +0;g=P(g+f|0,-1512);k=k+P(n,6270)|0;J[e+28>>2]=(((h+g|0)-k|0)+P(j,-9191)|0)+4096>>13;h=g;g=P(d+f|0,9191)+4096|0;J[e+20>>2]=((h+(g+P(f,-19165)|0)|0)-o|0)+P(j,7053)>>13;J[e+4>>2]=(k+(l+(g+P(d,-4758)|0)|0)|0)+P(j,1512)>>13;j=i-7|0;i=i+1|0;d=m;g=7;b:switch(j|0){case 0:continue;case 4:break a;default:break b}d=e+32|0;continue}break}while(1){b=J[d+64>>2];c=J[a+128>>2];m=J[a+192>>2];j=J[a+160>>2];e=m+j|0;f=J[d+96>>2];k=J[a>>2];i=f+k|0;l=e+i|0;p=J[d>>2];n=J[a+96>>2];o=p+n|0;q=J[d+32>>2];h=J[a+64>>2];r=q+h| +0;s=o+r|0;J[a+128>>2]=P(l-s|0,8918)- -8192>>14;i=i-e|0;t=J[a+32>>2];u=t+b|0;v=J[a+224>>2];w=v+c|0;x=u-w|0;e=r-o|0;J[a+192>>2]=P(i-(x+e|0)|0,7282)- -8192>>14;J[a+64>>2]=(P(x-e|0,7282)+P(e+i|0,9947)|0)- -8192>>14;J[a>>2]=P(l+(w+(s+u|0)|0)|0,7282)- -8192>>14;e=c-v|0;l=t-b|0;i=P(e+l|0,3941);b=k-f|0;c=n-p|0;f=i+P(e,-13455)|0;e=j-m|0;m=h-q|0;J[a+96>>2]=((P(b-c|0,9514)+f|0)+P(e+m|0,-3941)|0)- -8192>>14;j=P(b+c|0,6269);h=j+P(c,5285)|0;c=P(c+m|0,-1344);i=i+P(l,5573)|0;J[a+224>>2]=(((h+c|0)-i|0)+P(e,-8170)| +0)- -8192>>14;h=c;c=P(b+m|0,8170)- -8192|0;J[a+160>>2]=((h+(c+P(m,-17036)|0)|0)-f|0)+P(e,6269)>>14;J[a+32>>2]=(i+(j+(c+P(b,-4229)|0)|0)|0)+P(e,1344)>>14;b=g;g=g-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function FB(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(J[a+16>>2])a=0;else{c=J[a+49196>>2];d=J[a+24>>2];while(1){b:{c:{d:{e:{if((c|0)<=(d|0)){b=J[a+20>>2];break e}while(1){b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break d;d=J[a+24>>2]+8|0;J[a+24>>2]=d;b=J[a+53324>>2];e=J[a+53320>>2]+1|0;b=e?b: +b+1|0;J[a+53320>>2]=e;J[a+53324>>2]=b;b=c&255|J[a+20>>2]<<8;J[a+20>>2]=b;c=J[a+49196>>2];if((c|0)>(d|0))continue;break}}d=d-c|0;J[a+24>>2]=d;c=(-1<>d;if((c|0)==256)break c;if((c|0)!=257)break b}J[a+16>>2]=1;return 0}J[a+53316>>2]=1;J[a+53308>>2]=0;J[a+53312>>2]=0;J[a+49192>>2]=258;J[a+49196>>2]=9;c=9;continue}break}d=J[a+49192>>2];if((d|0)<=4096)e=J[a+53308>>2];else{Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,810317,0);J[a+53316>>2]=1;J[a+53308>>2]=0;J[a+53312>>2]=0;J[a+49192>>2]=258;J[a+49196>>2]=9; +d=258;e=0}f:{if(c>>>0<=255){J[a+53308>>2]=1;H[a+49208|0]=c;b=c;break f}if((c|0)<(d|0)){d=J[(P(c,12)+a|0)+28>>2];J[a+53308>>2]=d;b=c;if((d|0)>=2)while(1){f=d-1|0;b=P(b,12)+a|0;H[(f+a|0)+49208|0]=K[b+36|0];g=d>>>0>2;b=J[b+32>>2];d=f;if(g)continue;break}H[a+49208|0]=b;break f}if((c|0)!=(d|0))break a;H[e+(a+49208|0)|0]=J[a+49204>>2];J[a+53308>>2]=J[a+53308>>2]+1;b=K[a+49208|0]}J[a+49204>>2]=b&255;g:{if(J[a+53316>>2]){J[a+53316>>2]=0;break g}f=J[a+49192>>2];d=P(f,12)+a|0;J[d+28>>2]=e+1;e=J[a+49200>>2]; +H[d+36|0]=b;J[d+32>>2]=e;b=f+1|0;J[a+49192>>2]=b;b=b+J[a+12>>2]|0;if((b|0)!=2048){if((b|0)!=1024){if((b|0)!=512)break g;J[a+49196>>2]=10;break g}J[a+49196>>2]=11;break g}J[a+49196>>2]=12}J[a+49200>>2]=c;b=J[a+53308>>2];d=b;c=b+J[a+53328>>2]|0;b=J[a+53332>>2]+(b>>31)|0;J[a+53328>>2]=c;b=c>>>0>>0?b+1|0:b;J[a+53332>>2]=b;h:{if(!b&c>>>0<500000001)break h;e=J[a+53320>>2];d=J[a+53324>>2];b=xEb(c,b,250,0);c=jc;if((c|0)==(d|0)&b>>>0<=e>>>0|c>>>0>>0)break h;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,810946,0);J[a+ +16>>2]=1;return 0}J[a+53312>>2]=0;a=1}return a}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,810664,0);J[a+16>>2]=1;return 0}function S6(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,r=0;i=fc-16|0;fc=i;d=J[a+12>>2];if(d)J[(J[a+20>>2]+(d<<4)|0)-4>>2]=b;k=J[a+24>>2];a:{if((k|0)<2)break a;o=k;while(1){p=o;g=J[a+32>>2];o=o-1|0;b=g+(o<<4)|0;l=J[b>>2];d=J[b+8>>2];j=p-2|0;while(1){b:{h=g+(j<<4)|0;b=J[h+8>>2];c:{h=J[h>>2];f=h>>>0>l>>>0?l:h;d:{e:{if(f>>>0<8){m=d;break e}m=(f-8>>>3|0)+1|0;h=m+b|0;m=d+ +m|0;e=d;while(1){if(K[b|0]&K[e|0])break d;b=b+1|0;e=e+1|0;f=f-8|0;if(f>>>0>7)continue;break}b=h}if(!f|!(K[b|0]&K[m|0]&-256>>f))break c}b=j>>>0>>0?j:o;m=j>>>0>o>>>0?j:o;if(b>>>0>=m>>>0|m>>>0>=k>>>0)break b;n=g+(m<<4)|0;l=J[n>>2];f:{if(!l)break f;g=g+(b<<4)|0;b=J[g>>2];g:{if(l>>>0<=b>>>0){k=l+7|0;f=k>>>3|0;break g}d=J[g+4>>2];J[i>>2]=0;k=l+7|0;f=k>>>3|0;d=d+7>>>3|0;if(f>>>0>d>>>0){e=d;d=f+7&1073741816;q=g,r=_c(c,1,e,d,J[g+8>>2],i),J[q+8>>2]=r;e=J[i>>2];if(e)break a;J[g+4>>2]=d<<3}d=b+1|0;if(l-b& +1){if(M[g>>2]>b>>>0){h=J[g+8>>2]+(b>>>3|0)|0;H[h|0]=K[h|0]&-129>>(b&7)}b=d}if((d|0)==(l|0))break g;while(1){if(M[g>>2]>b>>>0){d=J[g+8>>2]+(b>>>3|0)|0;H[d|0]=K[d|0]&-129>>(b&7)}h=b+1|0;if(h>>>0>2]){d=J[g+8>>2]+(h>>>3|0)|0;H[d|0]=K[d|0]&-129>>(h&7)}b=b+2|0;if((l|0)!=(b|0))continue;break}}if(k>>>0<8)break f;h=f-1|0;e=J[n+8>>2];b=J[g+8>>2];j=0;d=f&3;if(d)while(1){H[b|0]=K[e|0]|K[b|0];f=f-1|0;e=e+1|0;b=b+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}if(h>>>0<3)break f;while(1){H[b|0]=K[e|0]|K[b|0];H[b+ +1|0]=K[e+1|0]|K[b+1|0];H[b+2|0]=K[e+2|0]|K[b+2|0];H[b+3|0]=K[e+3|0]|K[b+3|0];e=e+4|0;b=b+4|0;f=f-4|0;if(f)continue;break}}J[n>>2]=0;J[n+12>>2]=0;b=J[a+24>>2];d=b+(m^-1)|0;if((d|0)>0){b=J[n+12>>2];J[i+8>>2]=J[n+8>>2];J[i+12>>2]=b;b=J[n+4>>2];J[i>>2]=J[n>>2];J[i+4>>2]=b;b=d<<4;d=cd(n,n+16|0,b)+b|0;b=J[i+12>>2];J[d+8>>2]=J[i+8>>2];J[d+12>>2]=b;b=J[i+4>>2];J[d>>2]=J[i>>2];J[d+4>>2]=b;b=J[a+24>>2]}k=b-1|0;J[a+24>>2]=k;break b}b=(j|0)>0;j=j-1|0;if(b)continue}break}if((p|0)>2)continue;break}e=0}fc=i+16| +0;return e}function Cha(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;g=fc-176|0;fc=g;a=g+172|0;h=J[d+28>>2];J[a>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[699344]=0;n=_(6826,a|0)|0;a=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((a|0)!=1){if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;if(a){if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;k=K[a|0];J[699344]=0;h=aa(6869,n|0,45)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;o=(h&255)==(k|0)}l=Ze(g+152|0);i=Ze(g+140|0);j= +Ze(g+128|0);J[699344]=0;Ka(6910,c|0,o|0,g+172|0,g+168|0,g+167|0,g+166|0,l|0,i|0,j|0,g+124|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;J[g+4>>2]=1617;m=Bg(g+8|0,0,g+4|0);c=g+16|0;if(K[f+11|0]>>>7|0)a=J[f+4>>2];else a=K[f+11|0]&127;h:{if((a|0)>J[g+124>>2]){if(K[f+11|0]>>>7|0)h=J[f+4>>2];else h=K[f+11|0]&127;k=J[g+124>>2];if(K[i+11|0]>>>7|0)a=J[i+4>>2];else a=K[i+11|0]&127;if(K[j+11|0]>>>7|0)p=J[j+4>>2];else p=K[j+11|0]&127;a=(k+(a+(p+(h-k<<1)|0)|0)|0)+1|0;break h}k=J[g+124>>2];if(K[j+11|0]>>>7|0)a= +J[j+4>>2];else a=K[j+11|0]&127;if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;a=(k+(a+h|0)|0)+2|0}if(a>>>0<101)break e;zh(m,Dc(a));c=J[m>>2];if(c)break e;J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;B()}f=Z()|0;break b}f=Z()|0;break b}f=Z()|0;break c}k=J[d+4>>2];if(K[f+11|0]>>>7|0)h=J[f>>2];else h=f;if(K[f+11|0]>>>7|0)a=J[f>>2];else a=f;if(K[f+11|0]>>>7|0)f=J[f+4>>2];else f=K[f+11|0]&127;J[699344]=0;Qa(6911,c|0,g+4|0,g|0,k|0,h|0,a+f|0,n|0,o|0,g+168|0,H[g+167|0],H[g+166|0], +l|0,i|0,j|0,J[g+124>>2]);a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;b=ja(6874,b|0,c|0,J[g+4>>2],J[g>>2],d|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break a}}f=Z()|0;Ie(m)}jd(j);jd(i);jd(l)}b=J[g+172>>2];a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)kc[J[J[b>>2]+8>>2]](b);ba(f|0);B()}Ie(m);jd(j);jd(i);jd(l);c=J[g+172>>2];a=J[c+4>>2]-1|0;J[c+4>>2]=a;if((a|0)==-1)kc[J[J[c>>2]+8>>2]](c);fc=g+176|0;return b|0}function _Sa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;h=a;while(1){d=J[(p<<2)+b>>2]+c|0;i=K[d+9|0];k=K[d+6|0];f=i+k|0;n=K[d+14|0];j=K[d+1|0];g=n+j|0;e=f+g|0;m=K[d+13|0];o=K[d+2|0];l=m+o|0;r=K[d+10|0];s=K[d+5|0];q=r+s|0;t=l+q|0;u=K[d+8|0];v=K[d+7|0];w=u+v|0;x=K[d+15|0];y=K[d|0];z=x+y|0;A=w+z|0;B=K[d+11|0];C=K[d+4|0];D=B+C|0;E=K[d+12|0];F=K[d+3|0];d=E+F|0;G=D+d|0;J[h+16>>2]=(P(e-t|0,4433)+P(A-G|0,10703)|0)+1024>>11;J[h>>2]=((e+(t+G|0)|0)+A<<2)+-8192;e=z-w|0;l=l-q|0;q=d-D|0;f=g-f|0; +d=(P(e-l|0,11363)+P(q-f|0,2260)|0)+1024|0;J[h+24>>2]=(d+P(q,-8697)|0)+P(e,-1730)>>11;J[h+8>>2]=(d+P(l,17799)|0)+P(f,11893)>>11;d=s-r|0;f=C-B|0;g=F-E|0;e=o-m|0;m=(P(d-f|0,3363)+P(g+e|0,-11086)|0)+1024|0;i=k-i|0;k=j-n|0;n=P(i+f|0,-10217)+P(k+g|0,-5461)|0;o=n+((m+P(g,8728)|0)+P(f,17760)|0)|0;j=f;f=v-u|0;l=g;g=y-x|0;j=P(j-f|0,7350)+P(l+g|0,8956)|0;J[h+28>>2]=o+j>>11;l=(m+P(e,-9222)|0)+P(d,10055)|0;m=P(i-d|0,11529)+P(e+k|0,1136)|0;d=P(d+f|0,5461)+P(e+g|0,10217)|0;J[h+20>>2]=(l+m|0)+d>>11;e=P(i-f|0,3363)+ +P(g+k|0,11086)|0;J[h+12>>2]=(e+(m+((n+P(k,589)|0)+P(i,-13631)|0)|0)|0)+1024>>11;J[h+4>>2]=(j+(e+((d+P(g,-18730)|0)+P(f,6387)|0)|0)|0)+1024>>11;h=h+32|0;p=p+1|0;if((p|0)!=8)continue;break}b=7;while(1){h=J[a+128>>2];d=J[a+96>>2];c=h+d|0;f=J[a+224>>2];g=J[a>>2];e=f+g|0;i=c+e|0;k=J[a+160>>2];p=J[a+64>>2];m=k+p|0;n=J[a+192>>2];j=J[a+32>>2];o=n+j|0;l=m+o|0;J[a+128>>2]=(i-l|0)+4>>3;J[a>>2]=(i+l|0)+4>>3;e=e-c|0;i=o-m|0;c=P(e+i|0,4433)+32768|0;J[a+192>>2]=c+P(i,-15137)>>16;J[a+64>>2]=c+P(e,6270)>>16;c=d-h| +0;h=g-f|0;d=P(c+h|0,-7373)+32768|0;f=j-n|0;i=f+c|0;g=p-k|0;k=g+h|0;e=P(i+k|0,9633);j=d+P(c,2446)|0;c=e+P(i,-16069)|0;J[a+224>>2]=j+c>>16;e=e+P(k,-3196)|0;j=P(g,16819);g=P(f+g|0,-20995)+32768|0;J[a+160>>2]=e+(j+g|0)>>16;J[a+96>>2]=c+(g+P(f,25172)|0)>>16;J[a+32>>2]=e+(d+P(h,12299)|0)>>16;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function cvb(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;var h=0,i=0,j=0,k=0,l=0;a:{b:{if(f){if(((c+1|0)/2|0)>(b|0))break b;if(!d)break a;a=c<<1;l=b<<1;b=0;while(1){i= +L[e>>1];c:{if((i|0)==L[f>>1]){I[g>>1]=i;break c}i=K[e|0]|K[e+1|0]<<8;k=i>>>8|0;h=K[f|0]|K[f+1|0]<<8;i=((i<<8|k)&65535)+((P(l,((h<<8|h>>>8)&65535)-((k|i<<8)&65535)|0)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];d:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break d}h=e+2|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=j+((P(l,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[e+4>> +1];e:{if((h|0)==L[f+4>>1]){I[i>>1]=h;break e}h=e+4|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+4|0]|K[f+5|0]<<8;h=j+((P(l,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}I[g+6>>1]=L[f+6>>1];g=g+8|0;f=f+8|0;e=e+8|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}xc(g,e,d<<3);break a}if(!d)break a;a=c<<1;l=b<<1;b=0;while(1){i=L[e>>1];f:{if((i|0)==L[f>>1]){I[g>>1]=i;break f}i=K[e|0]|K[e+1|0]<<8;k=i>>>8|0;h=K[f|0]|K[f+1|0]<<8;i= +((i<<8|k)&65535)+((P(l,((h<<8|h>>>8)&65535)-((k|i<<8)&65535)|0)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];g:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break g}h=e+2|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=j+((P(l,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[e+4>>1];h:{if((h|0)==L[f+4>>1]){I[i>>1]=h;break h}h=e+4|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>> +8)&65535;h=K[f+4|0]|K[f+5|0]<<8;h=j+((P(l,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}I[g+6>>1]=L[e+6>>1];g=g+8|0;e=e+8|0;f=f+8|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}return 0}function Ogb(a){a=a|0;var b=0,c=0,d=0,e=0;H[a+8|0]=0;J[a+4>>2]=1;J[a+24>>2]=340456;J[a>>2]=339588;J[a+72>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+40>>2]=0;J[a+44>>2]=1072693248;J[a+28>>2]=0;J[a+32>>2]=255;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+80>>2]=0;J[a+84>> +2]=1071644672;J[699344]=0;c=_(2226,a+88|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[a+456>>2]=340552;b=a+460|0;J[b>>2]=0;J[b+4>>2]=0;J[a+468>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+480>>2]=0;J[699344]=0;ga(2227,a+472|0,340592,5)|0;d=J[699344];J[699344]=0;b:{c:{d:{e:{f:{if((d|0)!=1){if(H[a+471|0]>=0)break f;J[a+464>>2]=0;b=J[a+460>>2];break e}b=Z()|0;if(H[a+483|0]<0)uc(J[a+472>>2]);if(H[a+471|0]>=0)break d;uc(J[a+460>>2]);bo(c);break a}H[a+471|0]=0}J[b>>2]=0;I[a+504>>1]=0;J[a+496>>2]=0;J[a+500>>2]= +0;J[a+488>>2]=0;J[a+492>>2]=0;J[a+508>>2]=0;J[a+512>>2]=0;J[a+516>>2]=0;J[a+520>>2]=0;b=a+532|0;J[b>>2]=0;J[b+4>>2]=0;J[a+528>>2]=340552;J[a+540>>2]=0;J[a+544>>2]=0;J[a+548>>2]=0;J[a+552>>2]=0;J[699344]=0;d=a+544|0;ga(2227,d|0,340592,5)|0;e=J[699344];J[699344]=0;if((e|0)!=1){if(H[a+543|0]>=0)break c;J[a+536>>2]=0;b=J[a+532>>2];break b}b=Z()|0;if(H[a+555|0]<0)uc(J[a+544>>2]);if(H[a+543|0]<0)uc(J[a+532>>2]);yk(a+456|0)}bo(c);break a}H[a+543|0]=0}J[b>>2]=0;I[a+576>>1]=0;J[a+568>>2]=0;J[a+572>>2]=0;J[a+ +560>>2]=0;J[a+564>>2]=0;J[a+580>>2]=0;J[a+584>>2]=0;J[a+588>>2]=0;J[a+592>>2]=0;J[a+704>>2]=0;J[a+696>>2]=0;J[a+700>>2]=0;J[a+640>>2]=0;J[a+632>>2]=0;J[a+636>>2]=0;J[a+624>>2]=0;J[a+628>>2]=1082261504;J[a+616>>2]=0;J[a+620>>2]=1082556416;J[a+608>>2]=0;J[a+612>>2]=1080541184;J[a+600>>2]=0;J[a+604>>2]=1080705024;J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;g:{if(H[a+555|0]<0){J[a+548>>2]=0;d=J[a+544>>2];break g}H[a+555|0]=0}J[d>>2]=0;J[a+688>>2]=0;J[a+692>>2]=-1074790400;H[a+680|0]=0;J[a+672>>2]=0;J[a+676>> +2]=1072693248;J[a+668>>2]=0;J[a+660>>2]=0;J[a+664>>2]=0;return a|0}b=Z()|0}J[a+24>>2]=340456;c=J[a+52>>2];if(c){uc(c);J[a+52>>2]=0}ba(b|0);B()}function GU(a){var b=0,c=0,d=0,e=0;J[699344]=0;$(6501,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)a:{J[a+344>>2]=340504;d=J[a+372>>2];if(d){b=J[J[d>>2]+12>>2];J[699344]=0;_(b|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+372>>2]=0}Se(a+556|0);b=J[a+464>>2];if(b){J[a+468>>2]=b;uc(b)}if(H[a+391|0]<0)uc(J[a+380>>2]);Jd(a+376|0);J[a+272>>2]=340552;if(H[a+ +299|0]<0)uc(J[a+288>>2]);if(H[a+287|0]<0)uc(J[a+276>>2]);d=J[a+264>>2];b:{if(!d)break b;b=J[d+4>>2];J[d+4>>2]=b-1;if(b)break b;kc[J[J[d>>2]+8>>2]](d);Gc(d)}d=J[a+244>>2];if(d){e=J[a+248>>2];b=d;if((e|0)!=(b|0)){while(1){e=e-8|0;c=J[e+4>>2];c:{if(!c)break c;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break c;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((d|0)!=(e|0))continue;break}b=J[a+244>>2]}J[a+248>>2]=d;uc(b)}c=J[a+232>>2];if(c){b=J[a+236>>2];e=c;if((b|0)!=(c|0)){while(1){d=b-12|0;if(H[b-1|0]<0)uc(J[d>>2]);b=d;if((b|0)!= +(c|0))continue;break}e=J[a+232>>2]}J[a+236>>2]=c;uc(e)}d=J[a+220>>2];if(d){e=J[a+224>>2];b=d;if((e|0)!=(b|0)){while(1){e=e-8|0;c=J[e+4>>2];d:{if(!c)break d;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break d;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((d|0)!=(e|0))continue;break}b=J[a+220>>2]}J[a+224>>2]=d;uc(b)}d=J[a+208>>2];if(d){e=J[a+212>>2];b=d;if((e|0)!=(b|0)){while(1){e=e-8|0;c=J[e+4>>2];e:{if(!c)break e;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break e;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((d|0)!=(e|0))continue;break}b=J[a+208>>2]}J[a+ +212>>2]=d;uc(b)}d=J[a+196>>2];if(d){e=J[a+200>>2];b=d;if((e|0)!=(b|0)){while(1){e=e-8|0;c=J[e+4>>2];f:{if(!c)break f;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break f;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((d|0)!=(e|0))continue;break}b=J[a+196>>2]}J[a+200>>2]=d;uc(b)}d=J[a+184>>2];if(d){e=J[a+188>>2];b=d;if((e|0)!=(b|0)){while(1){e=e-8|0;c=J[e+4>>2];g:{if(!c)break g;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break g;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((d|0)!=(e|0))continue;break}b=J[a+184>>2]}J[a+188>>2]=d;uc(b)}kk(a+136|0);kk(a+ +88|0);return}ea(0)|0;Bc();B()}function c4(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=Q(0),k=0,l=0,m=Q(0),n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=Q(0);g=fc-112|0;fc=g;a:{q=J[b+84>>2];if((q|0)>0){r=a+316|0;p=a+304|0;s=g+80|0;while(1){i=Yn(b,h);c=J[i>>2];k=(c|0)>0?c:0;J[g+108>>2]=k;c=J[J[a+328>>2]+216>>2]?p:r;d=c+4|0;e=d;b:{c:{c=J[c+4>>2];if(!c)break c;while(1){l=J[c+16>>2]<(k|0);e=l?e:c;c=J[(l?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(e|0)|J[e+16>>2]>(k|0))break c;d=e+20|0;break b}H[g+3|0]=0;H[g+2|0]=0;c=g+4|0; +Eu(c,a,g+108|0,g+3|0,0,g+2|0);J[699344]=0;da(2924,p|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;Cj(s);d=0;c=J[J[a+328>>2]+216>>2]?p:r;l=c+4|0;e=l;c=J[c+4>>2];if(!c)break b;while(1){t=J[c+16>>2]<(k|0);e=t?e:c;c=J[(t?c+4|0:c)>>2];if(c)continue;break}if((e|0)==(l|0))break b;d=J[e+16>>2]<=(k|0)?e+20|0:0}c=J[d+12>>2];d:{e:{f:{g:{e=J[d+4>>2];switch(e-1|0){case 1:break g;case 0:break e;default:break f}}nD(b,h,j,Q(0));oD(b,h,Q(0),Q(0),Q(0),Q(0));mD(b,h,2);c=0;j=Q(j+Q(O[a+144>>3]+O[a+8>>3]*+N[d+16>> +2]));break d}e=0}mD(b,h,e);h:{if(!K[a+105|0]|!f)break h;if(J[Yn(b,h)+60>>2]!=J[Yn(b,h-1|0)+60>>2])break h;wN(J[a+188>>2],f,c,g+4|0);j=Q(j+Q(J[g+4>>2]>>6))}m=N[b+12>>2];n=+Q(m+Q(0));u=N[b+8>>2];o=+Q(j+u);nD(b,h,Q(n*O[b+40>>3]+(o*O[b+24>>3]+O[b+56>>3])-+u),Q(n*O[b+48>>3]+(o*O[b+32>>3]+O[b+64>>3])-+m));f=Yn(b,h);e=d- -64|0;k=J[e+4>>2];J[f+52>>2]=J[e>>2];J[f+56>>2]=k;e=J[d+60>>2];J[f+44>>2]=J[d+56>>2];J[f+48>>2]=e;e=J[d+52>>2];J[f+36>>2]=J[d+48>>2];J[f+40>>2]=e;e=J[d+44>>2];J[f+28>>2]=J[d+40>>2];J[f+ +32>>2]=e;oD(b,h,N[d+24>>2],N[d+36>>2],N[d+28>>2],N[d+32>>2]);n=O[a+144>>3];o=O[a+8>>3];m=N[d+16>>2];H[i+64|0]=K[d+72|0];f=J[d+80>>2];J[i+68>>2]=J[d+76>>2];J[i+72>>2]=f;f=J[d+88>>2];J[i+76>>2]=J[d+84>>2];J[i+80>>2]=f;f=J[d+96>>2];J[i+84>>2]=J[d+92>>2];J[i+88>>2]=f;J[i+92>>2]=J[d+100>>2];j=Q(j+Q(n+o*+m))}f=c;h=h+1|0;if((q|0)!=(h|0))continue;break}N[b+16>>2]=j+N[b+8>>2];N[b+20>>2]=N[b+12>>2]+Q(0)}fc=g+112|0;return}a=Z()|0;Cj(s);ba(a|0);B()}function Nra(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;e=fc-48|0;fc=e;a:{j=J[c+8>>2];if(j)while(1){k=J[j+8>>2];b:{if(!k)break b;J[e+40>>2]=0;J[e+44>>2]=0;f=rl(e+32|0,a);J[699344]=0;h=rf(f);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;i=k+68|0;c=i;c=J[J[c+12>>2]+((h>>>0)%M[c+8>>2]<<2)>>2];g=J[699344];J[699344]=0;if((g|0)==1)break a;g=0;c:{if(!c)break c;while(1){d:{if((h|0)!=J[c+12>>2])break d;J[699344]=0;l=ga(5287,c+16|0,f|0,-1)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;if(l)break d;g=c;break c}c=J[c+8>>2];if(c)continue; +break}}J[e+44>>2]=i;J[e+40>>2]=g;wc(f);if(!g)break b;e:{c=J[j+8>>2];if((k|0)==(c|0)){k=Eo(e+16|0,g+24|0);g=J[e+24>>2];if(!g)break e;while(1){f:{c=J[g+8>>2];g:{if(!c)break g;J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;h:{i:{if((c|0)!=1){c=J[g+8>>2];J[e+12>>2]=c;if(!c)break g;J[699344]=0;f=aa(5149,e+4|0,b|0)|0;h=J[699344];J[699344]=0;j:{k:{if((h|0)!=1){J[699344]=0;h=rf(f);i=J[699344];J[699344]=0;if((i|0)==1)break k;J[699344]=0;c=J[J[c+28>>2]+((h>>>0)%M[c+24>>2]<<2)>>2];i=J[699344];J[699344]= +0;if((i|0)==1)break k;l:{if(c)while(1){if((h|0)==J[c+12>>2]){J[699344]=0;i=ga(5287,c+16|0,f|0,-1)|0;l=J[699344];J[699344]=0;if((l|0)==1)break k;if(!i)break l}c=J[c+8>>2];if(c)continue;break}wc(f);break h}wc(f);J[699344]=0;c=aa(5717,d|0,c+24|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){J[699344]=0;aa(5153,c+24|0,e+12|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break h}c=Z()|0;break j}c=Z()|0;break j}c=Z()|0;wc(f)}zc(e+12|0);break i}c=Z()|0}id(k);ba(c|0);B()}c=J[e+12>>2];J[e+12>>2]=0;if(!c)break g;J[699344]= +0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;h=J[699344];J[699344]=0;if((h|0)==1)break f;if(f)break g;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break f}g=J[g>>2];if(g)continue;break e}break}ea(0)|0;Bc();B()}xj(e+40|0,c+68|0);B()}id(k)}j=J[j>>2];if(j)continue;break}fc=e+48|0;return}a=Z()|0;wc(f);ba(a|0);B()}function Qeb(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;a:{e=J[a+444>>2];if(!J[e+48>>2]){if(!(kc[J[J[a+448>>2]+12>>2]](a,J[((J[e+64>>2]<< +2)+e|0)+56>>2])|0))break a;J[e+48>>2]=1;J[e+76>>2]=J[e+76>>2]+1}b:switch(J[e+68>>2]){case 2:kc[J[J[a+452>>2]+4>>2]](a,J[((J[e+64>>2]<<2)+e|0)+56>>2],e+52|0,J[e+72>>2],b,c,d);if(M[e+52>>2]>2])break a;J[e+68>>2]=0;if(M[c>>2]>=d>>>0)break a;case 0:J[e+52>>2]=0;l=J[a+324>>2];J[e+72>>2]=l-1;c:{if(J[e+76>>2]!=J[a+328>>2])break c;q=J[a+36>>2];if((q|0)<=0)break c;n=J[a+444>>2];r=(J[n+64>>2]<<2)+n|0;i=J[a+216>>2];while(1){f=P(J[i+40>>2],J[i+12>>2]);g=M[i+48>>2]%(f>>>0)|0;g=g?g:f;f=(f|0)/(l|0)|0;if(!j)J[n+ +72>>2]=((g-1|0)/(f|0)|0)+1;d:{if((f|0)<=0)break d;f=f<<1;h=(f|0)<=1?1:f;p=h&7;f=J[J[r+56>>2]+(j<<2)>>2]+(g<<2)|0;g=J[f-4>>2];o=0;m=0;if(h>>>0>=8){s=h&2147483640;k=0;while(1){h=m<<2;J[h+f>>2]=g;J[f+(h|4)>>2]=g;J[f+(h|8)>>2]=g;J[f+(h|12)>>2]=g;J[f+(h|16)>>2]=g;J[f+(h|20)>>2]=g;J[f+(h|24)>>2]=g;J[f+(h|28)>>2]=g;m=m+8|0;k=k+8|0;if((s|0)!=(k|0))continue;break}}if(!p)break d;while(1){J[f+(m<<2)>>2]=g;m=m+1|0;o=o+1|0;if((p|0)!=(o|0))continue;break}}i=i+88|0;j=j+1|0;if((q|0)!=(j|0))continue;break}}J[e+68>> +2]=1;break;case 1:break b;default:break a}kc[J[J[a+452>>2]+4>>2]](a,J[((J[e+64>>2]<<2)+e|0)+56>>2],e+52|0,J[e+72>>2],b,c,d);if(M[e+52>>2]>2])break a;b=J[a+324>>2];e:{if(J[e+76>>2]!=1)break e;h=J[a+36>>2];if((h|0)<=0)break e;m=b+2|0;n=b+1|0;g=J[a+444>>2];i=J[a+216>>2];j=0;while(1){c=(P(J[i+40>>2],J[i+12>>2])|0)/(b|0)|0;if((c|0)>0){a=j<<2;d=J[a+J[g+60>>2]>>2];f=J[a+J[g+56>>2]>>2];p=P(c,m);o=P(c,n);a=0;while(1){k=a-c<<2;l=a+o<<2;J[k+f>>2]=J[l+f>>2];J[d+k>>2]=J[d+l>>2];k=a+p<<2;l=a<<2;J[k+f>> +2]=J[l+f>>2];J[d+k>>2]=J[d+l>>2];a=a+1|0;if((c|0)!=(a|0))continue;break}}i=i+88|0;j=j+1|0;if((h|0)!=(j|0))continue;break}}J[e+48>>2]=0;J[e+68>>2]=2;J[e+72>>2]=b+2;J[e+52>>2]=b+1;J[e+64>>2]=J[e+64>>2]^1}}function b9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>> +3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g; +l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911? +-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;Ac(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>> +2]=J[c+4>>2];Nl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Zo(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,r=0,s=0,t=0,u=0,v=0;d=a&65535;f=a>>>16|0;a:{if((c|0)==1){a=K[b|0]+d|0;a=a>>>0>65520?a-65521|0:a;b=a+f|0;c=b<<16;a=(b>>>0>65520?c+983040|0:c)|a;break a}if(b){b:{c:{d:{e:{if(c>>>0>=16){f:{if(c>>>0>5551){while(1){c=c-5552|0;e=347;a=b;while(1){g=K[a|0]+d|0;i=g+K[a+1|0]|0;j=i+K[a+2|0]|0;k=j+K[a+3|0]|0;l=k+K[a+4|0]|0;m=l+K[a+5|0]|0; +n=m+K[a+6|0]|0;o=n+K[a+7|0]|0;p=o+K[a+8|0]|0;q=p+K[a+9|0]|0;r=q+K[a+10|0]|0;s=r+K[a+11|0]|0;t=s+K[a+12|0]|0;u=t+K[a+13|0]|0;v=u+K[a+14|0]|0;d=v+K[a+15|0]|0;f=d+(v+(u+(t+(s+(r+(q+(p+(o+(n+(m+(l+(k+(j+(i+(f+g|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;a=a+16|0;e=e-1|0;if(e)continue;break}f=(f>>>0)%65521|0;d=(d>>>0)%65521|0;b=b+5552|0;if(c>>>0>5551)continue;break}if(!c)break b;if(c>>>0<16)break f}while(1){a=K[b|0]+d|0;e=a+K[b+1|0]|0;g=e+K[b+2|0]|0;i=g+K[b+3|0]|0;j=i+K[b+4|0]|0;k=j+K[b+5|0]|0;l=k+ +K[b+6|0]|0;m=l+K[b+7|0]|0;n=m+K[b+8|0]|0;o=n+K[b+9|0]|0;p=o+K[b+10|0]|0;q=p+K[b+11|0]|0;r=q+K[b+12|0]|0;s=r+K[b+13|0]|0;t=s+K[b+14|0]|0;d=t+K[b+15|0]|0;f=d+(t+(s+(r+(q+(p+(o+(n+(m+(l+(k+(j+(i+(g+(e+(a+f|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;b=b+16|0;c=c-16|0;if(c>>>0>15)continue;break}if(!c)break c}g=c&3;if(g)break e;a=c;break d}g:{if(!c)break g;g=c&3;h:{if(!g){a=c;break h}a=c;e=b;while(1){a=a-1|0;d=K[e|0]+d|0;f=f+d|0;b=e+1|0;e=b;h=h+1|0;if((g|0)!=(h|0))continue;break}}if(c>>>0<4)break g; +while(1){c=K[b|0]+d|0;e=c+K[b+1|0]|0;h=e+K[b+2|0]|0;d=h+K[b+3|0]|0;f=d+(h+(e+(c+f|0)|0)|0)|0;b=b+4|0;a=a-4|0;if(a)continue;break}}a=(f>>>0)%65521<<16|(d>>>0>65520?d-65521|0:d);break a}a=c;e=b;while(1){a=a-1|0;d=K[e|0]+d|0;f=f+d|0;b=e+1|0;e=b;h=h+1|0;if((g|0)!=(h|0))continue;break}}if(c>>>0<4)break c;while(1){c=K[b|0]+d|0;e=c+K[b+1|0]|0;h=e+K[b+2|0]|0;d=h+K[b+3|0]|0;f=d+(h+(e+(c+f|0)|0)|0)|0;b=b+4|0;a=a-4|0;if(a)continue;break}}f=(f>>>0)%65521|0;d=(d>>>0)%65521|0}a=f<<16|d}else a=1}return a}function V7a(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;e=J[a+8>>2];a:{if((e|0)!=J[a+12>>2])break a;c=J[a+4>>2];d=J[a>>2];if(c>>>0>d>>>0){h=P((((c-d|0)/72|0)+1|0)/-2|0,72);f=h+c|0;b:{if((c|0)==(e|0)){d=f;break b}d=f;while(1){O[d>>3]=O[c>>3];O[d+8>>3]=O[c+8>>3];O[d+16>>3]=O[c+16>>3];O[d+24>>3]=O[c+24>>3];O[d+32>>3]=O[c+32>>3];O[d+40>>3]=O[c+40>>3];g=J[c+52>>2];J[d+48>>2]=J[c+48>>2];J[d+52>>2]=g;g=J[c+60>>2];J[d+56>>2]=J[c+56>>2];J[d+60>>2]=g;i=J[c+64>>2];j=J[c+68>>2];J[c+64>>2]=0;J[c+68>>2]=0;g=J[d+68>> +2];J[d+64>>2]=i;J[d+68>>2]=j;c:{if(!g)break c;i=J[g+4>>2];J[g+4>>2]=i-1;if(i)break c;kc[J[J[g>>2]+8>>2]](g);Gc(g)}d=d+72|0;c=c+72|0;if((e|0)!=(c|0))continue;break}e=J[a+4>>2]}J[a+4>>2]=e+h;e=f+P((d-f|0)/72|0,72)|0;J[a+8>>2]=e;break a}d:{e:{f=(d|0)==(e|0)?1:(e-d|0)/72<<1;if(f>>>0<59652324){h=P(f,72);g=vc(h);h=g+h|0;f=g+P(f>>>2|0,72)|0;if((c|0)==(e|0))break e;e=f+P((e-c|0)/72|0,72)|0;d=f;while(1){O[d>>3]=O[c>>3];O[d+8>>3]=O[c+8>>3];O[d+16>>3]=O[c+16>>3];O[d+24>>3]=O[c+24>>3];O[d+32>>3]=O[c+32>>3];O[d+ +40>>3]=O[c+40>>3];i=J[c+52>>2];J[d+48>>2]=J[c+48>>2];J[d+52>>2]=i;i=J[c+60>>2];J[d+56>>2]=J[c+56>>2];J[d+60>>2]=i;J[d+64>>2]=J[c+64>>2];J[d+68>>2]=J[c+68>>2];J[c+64>>2]=0;J[c+68>>2]=0;c=c+72|0;d=d+72|0;if((e|0)!=(d|0))continue;break}J[a+12>>2]=h;c=J[a+8>>2];J[a+8>>2]=e;e=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=g;if((c|0)==(e|0))break d;while(1){c=c-72|0;f=J[c+68>>2];f:{if(!f)break f;g=J[f+4>>2];J[f+4>>2]=g-1;if(g)break f;kc[J[J[f>>2]+8>>2]](f);Gc(f)}if((c|0)!=(e|0))continue;break}break d}Pd();B()}J[a+ +12>>2]=h;J[a+8>>2]=f;J[a+4>>2]=f;J[a>>2]=g}if(d)uc(d);e=J[a+8>>2]}O[e>>3]=O[b>>3];O[e+8>>3]=O[b+8>>3];O[e+16>>3]=O[b+16>>3];O[e+24>>3]=O[b+24>>3];O[e+32>>3]=O[b+32>>3];O[e+40>>3]=O[b+40>>3];d=J[b+52>>2];J[e+48>>2]=J[b+48>>2];J[e+52>>2]=d;d=J[b+60>>2];J[e+56>>2]=J[b+56>>2];J[e+60>>2]=d;J[e+64>>2]=J[b+64>>2];b=J[b+68>>2];J[e+68>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[a+8>>2]=J[a+8>>2]+72}function Ju(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,u=0;j=fc-16|0;fc=j;r=f*3.141592/180; +q=Me(r);q=qf(Ee(r)/e,q/d);n=J[a+4>>2];J[j+12>>2]=0;s=Qe(n,j+12|0),t=2,H[s|0]=t;k=Ee(q);i=J[j+12>>2];O[i+8>>3]=e*k+c;s=i,u=d*Me(q)+b,O[s>>3]=u;J[n>>2]=J[n>>2]+1;if(R(f)<2147483648)n=~~f;else n=-2147483648;i=(n|0)/90|0;n=(n|0)<=89?1:((i|0)>=3?3:i)+1|0;if(R(g)<2147483648)i=~~g;else i=-2147483648;o=(i|0)/90|0;o=(i|0)<=89?1:((o|0)>=3?3:o)+1|0;q=g*3.141592/180;a:{if(h){if(n>>>0>>0)break a;h=n;while(1){f=r;if((h|0)!=(n|0))f=+Q(Q(Q(P(h,90)>>>0)*Q(3.141592025756836))/Q(180));g=q;if((h|0)!=(o|0))g=+Q(Q(Q(P(h, +90)-90>>>0)*Q(3.141592025756836))/Q(180));k=Me(g);g=Ee(g);l=Me(f);f=qf(Ee(f)/e,l/d);g=qf(g/e,k/d);l=g-f;k=Av(l*.5);i=J[a+4>>2];J[j+12>>2]=0;s=Qe(i,j+12|0),t=4,H[s|0]=t;p=Ee(l);l=Me(f);f=Ee(f);m=J[j+12>>2];k=p*(Y(k*(k*3)+4)+-1)/3;p=k*e;O[m+8>>3]=l*p+(e*f+c);k=k*d;O[m>>3]=d*l+b-f*k;J[i>>2]=J[i>>2]+1;J[j+12>>2]=0;s=Qe(i,j+12|0),t=4,H[s|0]=t;f=Me(g);g=Ee(g);m=J[j+12>>2];l=e*g+c;O[m+8>>3]=l-p*f;f=d*f+b;O[m>>3]=k*g+f;J[i>>2]=J[i>>2]+1;J[j+12>>2]=0;s=Qe(i,j+12|0),t=4,H[s|0]=t;m=J[j+12>>2];O[m+8>>3]=l;O[m>> +3]=f;J[i>>2]=J[i>>2]+1;h=h-1|0;if(o>>>0<=h>>>0)continue;break}break a}if(n>>>0>o>>>0)break a;h=n;while(1){f=q;if((h|0)!=(o|0))f=+Q(Q(Q(P(h,90)>>>0)*Q(3.141592025756836))/Q(180));g=Me(f);k=Ee(f);if((h|0)!=(n|0))r=+Q(Q(Q(P(h,90)-90>>>0)*Q(3.141592025756836))/Q(180));f=Me(r);f=qf(Ee(r)/e,f/d);g=qf(k/e,g/d);l=g-f;k=Av(l*.5);i=J[a+4>>2];J[j+12>>2]=0;s=Qe(i,j+12|0),t=4,H[s|0]=t;p=Ee(l);l=Me(f);f=Ee(f);m=J[j+12>>2];k=p*(Y(k*(k*3)+4)+-1)/3;p=k*e;O[m+8>>3]=l*p+(e*f+c);k=k*d;O[m>>3]=d*l+b-f*k;J[i>>2]=J[i>> +2]+1;J[j+12>>2]=0;s=Qe(i,j+12|0),t=4,H[s|0]=t;f=Me(g);g=Ee(g);m=J[j+12>>2];l=e*g+c;O[m+8>>3]=l-p*f;f=d*f+b;O[m>>3]=k*g+f;J[i>>2]=J[i>>2]+1;J[j+12>>2]=0;s=Qe(i,j+12|0),t=4,H[s|0]=t;m=J[j+12>>2];O[m+8>>3]=l;O[m>>3]=f;J[i>>2]=J[i>>2]+1;h=h+1|0;if(o>>>0>=h>>>0)continue;break}}fc=j+16|0}function wSa(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;a=Ac(a,0,256);d=J[b>>2]+c|0;e=K[d|0];f=K[d+5|0];h=e-f|0;j=K[d+1|0];i=K[d+4|0];g=j-i|0;k=K[d+2|0];l=K[d+3|0];d=k-l|0;J[a+12>>2]=h-(g+d|0)<< +3;e=e+f|0;f=k+l|0;J[a+8>>2]=P(e-f|0,10033)+512>>10;e=e+f|0;f=i+j|0;J[a>>2]=(e+f<<3)-6144;J[a+16>>2]=P(e-(f<<1)|0,5793)+512>>10;e=d-g<<3;d=P(d+h|0,2998)+512>>10;J[a+20>>2]=e+d;J[a+4>>2]=d+(g+h<<3);d=J[b+4>>2]+c|0;e=K[d|0];f=K[d+5|0];h=e-f|0;j=K[d+1|0];i=K[d+4|0];g=j-i|0;k=K[d+2|0];l=K[d+3|0];d=k-l|0;J[a+44>>2]=h-(g+d|0)<<3;e=e+f|0;f=k+l|0;J[a+40>>2]=P(e-f|0,10033)+512>>10;f=e+f|0;j=i+j|0;e=(f+j<<3)-6144|0;J[a+32>>2]=e;J[a+48>>2]=P(f-(j<<1)|0,5793)+512>>10;f=d-g<<3;d=P(d+h|0,2998)+512>>10;J[a+52>>2]= +f+d;d=d+(g+h<<3)|0;J[a+36>>2]=d;b=J[b+8>>2]+c|0;f=K[b+2|0];j=K[b+3|0];c=f-j|0;i=K[b|0];k=K[b+5|0];h=i-k|0;g=P(c+h|0,2998)+512>>10;l=K[b+1|0];m=K[b+4|0];b=l-m|0;J[a+84>>2]=g+(c-b<<3);f=f+j|0;j=i+k|0;i=f+j|0;k=l+m|0;J[a+80>>2]=P(i-(k<<1)|0,5793)+512>>10;l=J[a>>2];i=(i+k<<3)-6144|0;J[a+32>>2]=P(l-i|0,17837)+16384>>15;i=i+l|0;J[a+64>>2]=P(i-(e<<1)|0,10298)+16384>>15;J[a>>2]=P(e+i|0,14564)+16384>>15;e=J[a+4>>2];g=g+(b+h<<3)|0;J[a+36>>2]=P(e-g|0,17837)+16384>>15;g=e+g|0;J[a+68>>2]=P(g-(d<<1)|0,10298)+16384>> +15;J[a+4>>2]=P(d+g|0,14564)+16384>>15;d=J[a+40>>2];g=J[a+8>>2];e=P(j-f|0,10033)+512>>10;J[a+40>>2]=P(g-e|0,17837)+16384>>15;g=e+g|0;J[a+72>>2]=P(g-(d<<1)|0,10298)+16384>>15;J[a+8>>2]=P(d+g|0,14564)+16384>>15;b=h-(b+c|0)<<3;c=J[a+12>>2];d=b+c|0;h=J[a+44>>2];J[a+76>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+12>>2]=P(d+h|0,14564)+16384>>15;J[a+44>>2]=P(c-b|0,17837)+16384>>15;b=J[a+80>>2];c=J[a+16>>2];d=b+c|0;h=J[a+48>>2];J[a+80>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+16>>2]=P(d+h|0,14564)+16384>>15;J[a+48>> +2]=P(c-b|0,17837)+16384>>15;b=J[a+84>>2];c=J[a+20>>2];d=b+c|0;h=J[a+52>>2];J[a+84>>2]=P(d-(h<<1)|0,10298)+16384>>15;J[a+20>>2]=P(d+h|0,14564)+16384>>15;J[a+52>>2]=P(c-b|0,17837)+16384>>15}function $za(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-16|0;fc=g;J[a>>2]=0;h=b+8|0;a:{b:{c:{d:{if(J[b+8>>2]){J[699344]=0;ca(5520,g+8|0,b|0,h|0);f=J[699344];J[699344]=0;if((f|0)!=1)break d;break c}J[699344]=0;J[g+8>>2]=0;aa(5145,g+8|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c}f= +J[g+8>>2];e:{if(!f)break e;i=J[f+8>>2];J[699344]=0;J[g+8>>2]=0;j=J[f+4>>2]-1|0;J[f+4>>2]=j;k=J[699344];J[699344]=0;if((k|0)==1)break a;if(j)break e;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}f:{g:{h:{i:{j:{k:{l:{if(J[h>>2]){J[699344]=0;ca(5520,g+12|0,b|0,h|0);f=J[699344];J[699344]=0;if((f|0)!=1)break l;break k}J[699344]=0;J[g+12>>2]=0;aa(5145,g+12|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break k}f=J[g+12>>2];if(!f)break h;h=J[f+12>>2];J[699344]=0;J[g+12>>2]=0;j=J[f+4>>2]- +1|0;J[f+4>>2]=j;k=J[699344];J[699344]=0;if((k|0)==1)break a;if(!j){J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break a}if(!i|!h)break h;h=J[c>>2];i=J[c+8>>2];j=J[c+4>>2];k=J[c+12>>2];J[699344]=0;f=_(4,24)|0;l=J[699344];J[699344]=0;if((l|0)==1)break j;J[699344]=0;h=ha(5432,f|0,k-j|0,i-h|0,2424756)|0;i=J[699344];J[699344]=0;if((i|0)==1)break g;J[699344]=0;J[g+4>>2]=0;f=g+4|0;aa(5145,f|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break j;J[699344]=0;aa(5153,a|0,f|0)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break i;f=J[g+4>>2];J[g+4>>2]=0;m:{if(!f)break m;J[699344]=0;h=J[f+4>>2]-1|0;J[f+4>>2]=h;i=J[699344];J[699344]=0;if((i|0)==1)break f;if(h)break m;J[699344]=0;$(5147,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break f}f=J[a>>2];J[699344]=0;b=bb(5555,b|0,f|0,c|0,d|0,+e)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;if(b)break h;J[699344]=0;aa(5145,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break h}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;zc(g+4|0);break b}fc=g+16|0;return}b=Z()|0;uc(f); +break b}break a}b=Z()|0}zc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function zbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>> +2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c; +if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632; +J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Yl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function h9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>> +2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2]; +if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g+4>> +2]!=1){J[g+4>>2]=1;Ac(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Nl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function fe(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;if(!a)return Dc(b)|0;if(b>>>0>=4294967232){J[698583]=48;return 0}f=b>>>0<11? +16:b+11&-8;e=a-8|0;i=J[e+4>>2];d=i&-8;a:{if(!(i&3)){if(f>>>0<256)break a;if(d>>>0>=f+4>>>0){c=e;if(d-f>>>0<=J[699340]<<1>>>0)break a}c=0;break a}g=d+e|0;b:{if(d>>>0>=f>>>0){c=d-f|0;if(c>>>0<16)break b;J[e+4>>2]=i&1|f|2;d=e+f|0;J[d+4>>2]=c|3;J[g+4>>2]=J[g+4>>2]|1;zz(d,c);break b}if(J[699226]==(g|0)){d=d+J[699223]|0;if(d>>>0<=f>>>0)break a;J[e+4>>2]=i&1|f|2;c=e+f|0;d=d-f|0;J[c+4>>2]=d|1;J[699223]=d;J[699226]=c;break b}if(J[699225]==(g|0)){d=d+J[699222]|0;if(d>>>0>>0)break a;c=d-f|0;c:{if(c>>>0>= +16){J[e+4>>2]=i&1|f|2;h=e+f|0;J[h+4>>2]=c|1;d=d+e|0;J[d>>2]=c;J[d+4>>2]=J[d+4>>2]&-2;break c}J[e+4>>2]=d|i&1|2;c=d+e|0;J[c+4>>2]=J[c+4>>2]|1;c=0}J[699225]=h;J[699222]=c;break b}h=J[g+4>>2];if(h&2)break a;j=d+(h&-8)|0;if(j>>>0>>0)break a;l=j-f|0;d:{if(h>>>0<=255){c=J[g+12>>2];d=J[g+8>>2];if((c|0)==(d|0)){n=2796880,o=J[699220]&zEb(-2,h>>>3|0),J[n>>2]=o;break d}J[d+12>>2]=c;J[c+8>>2]=d;break d}k=J[g+24>>2];d=J[g+12>>2];e:{if((g|0)!=(d|0)){c=J[g+8>>2];J[c+12>>2]=d;J[d+8>>2]=c;break e}f:{c=g+20|0;h= +J[c>>2];if(!h){h=J[g+16>>2];if(!h)break f;c=g+16|0}while(1){m=c;d=h;c=d+20|0;h=J[c>>2];if(h)continue;c=d+16|0;h=J[d+16>>2];if(h)continue;break}J[m>>2]=0;break e}d=0}if(!k)break d;c=J[g+28>>2];h=(c<<2)+2797184|0;g:{if(J[h>>2]==(g|0)){J[h>>2]=d;if(d)break g;n=2796884,o=J[699221]&zEb(-2,c),J[n>>2]=o;break d}J[(J[k+16>>2]==(g|0)?16:20)+k>>2]=d;if(!d)break d}J[d+24>>2]=k;c=J[g+16>>2];if(c){J[d+16>>2]=c;J[c+24>>2]=d}c=J[g+20>>2];if(!c)break d;J[d+20>>2]=c;J[c+24>>2]=d}if(l>>>0<=15){J[e+4>>2]=i&1|j|2;c= +e+j|0;J[c+4>>2]=J[c+4>>2]|1;break b}J[e+4>>2]=i&1|f|2;c=e+f|0;J[c+4>>2]=l|3;d=e+j|0;J[d+4>>2]=J[d+4>>2]|1;zz(c,l)}c=e}if(c)return c+8|0;c=Dc(b);if(!c)return 0;e=J[a-4>>2];e=(e&3?-4:-8)+(e&-8)|0;xc(c,a,b>>>0>e>>>0?e:b);uc(a);return c|0}function f9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>> +2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j); +h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>> +2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;Ac(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+ +28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Nl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function d9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>> +2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h= +(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>> +2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;Ac(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Nl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue; +break}}}function Ibb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a; +h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3); +J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a, +c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Zl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function wE(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,r=0;f=!a;a:{if(f|(((f?-1:J[a+ +8>>2])|0)!=1|b-5>>>0<4294967292))break a;f=c;if(!f){f=b9();if(!f)break a}h=a?J[a>>2]:-1;e=a?J[a+4>>2]:-1;if((e|0)<2)break a;l=a?J[a+12>>2]:-1;r=a?J[a+40>>2]:0;h=xh((h|0)/2|0,e>>>1|0,1);if(!h)break a;if(!(!h|!a|(a|0)==(h|0))){J[h+20>>2]=J[a+20>>2];J[h+24>>2]=J[a+24>>2]}bv(h,Q(.5),Q(.5));a=h?J[h+12>>2]:-1;o=h?J[h+40>>2]:0;i=a<<1;i=(l|0)>(i|0)?i:l;b:{c:switch(b-1|0){case 3:if((e|0)<2|(i|0)<=0)break b;e=e-2>>>1|0;while(1){k=(P(j,l)<<2)+r|0;m=k+(l<<2)|0;n=(P(a,g)<<2)+o|0;b=0;while(1){d=b<<2;d=J[d+m>>2]& +J[d+k>>2];d=P(d<<1&d&-1431655766,129);I[(n+(b<<1)^2)>>1]=K[(d>>>24|0)+f|0]<<8|K[(d>>>8&255)+f|0];b=b+1|0;if((i|0)!=(b|0))continue;break}j=j+2|0;b=(e|0)==(g|0);g=g+1|0;if(!b)continue;break}break b;case 2:if((e|0)<2|(i|0)<=0)break b;e=e-2>>>1|0;while(1){k=(P(j,l)<<2)+r|0;m=k+(l<<2)|0;n=(P(a,g)<<2)+o|0;b=0;while(1){d=b<<2;p=J[d+m>>2];d=J[d+k>>2];q=p|d;d=d&p;d=P(q<<1&q&(d<<1|d)&-1431655766,129);I[(n+(b<<1)^2)>>1]=K[(d>>>24|0)+f|0]<<8|K[(d>>>8&255)+f|0];b=b+1|0;if((i|0)!=(b|0))continue;break}j=j+2|0;b= +(e|0)==(g|0);g=g+1|0;if(!b)continue;break}break b;case 1:if((e|0)<2|(i|0)<=0)break b;e=e-2>>>1|0;while(1){k=(P(j,l)<<2)+r|0;m=k+(l<<2)|0;n=(P(a,g)<<2)+o|0;b=0;while(1){d=b<<2;p=J[d+m>>2];d=J[d+k>>2];q=p&d;d=d|p;d=P((q<<1|d<<1&d|q)&-1431655766,129);I[(n+(b<<1)^2)>>1]=K[(d>>>24|0)+f|0]<<8|K[(d>>>8&255)+f|0];b=b+1|0;if((i|0)!=(b|0))continue;break}j=j+2|0;b=(e|0)==(g|0);g=g+1|0;if(!b)continue;break}break b;case 0:break c;default:break b}if((e|0)<2|(i|0)<=0)break b;e=e-2>>>1|0;while(1){k=(P(j,l)<<2)+r| +0;m=k+(l<<2)|0;n=(P(a,g)<<2)+o|0;b=0;while(1){d=b<<2;d=J[d+m>>2]|J[d+k>>2];d=P((d<<1|d)&-1431655766,129);I[(n+(b<<1)^2)>>1]=K[(d>>>24|0)+f|0]<<8|K[(d>>>8&255)+f|0];b=b+1|0;if((i|0)!=(b|0))continue;break}j=j+2|0;b=(e|0)!=(g|0);g=g+1|0;if(b)continue;break}}if(!c)uc(f);o=h}return o}function pta(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;if(!J[b+12>>2]){J[a>>2]=0;vd(a,0);return}e=J[d+4>>2];i=J[d+12>>2];j=J[d>>2];g=J[d+8>>2];f=vc(24);J[699344]=0;i=i-e|0;e=g-j|0;k=ha(5432,f|0, +i|0,e|0,0)|0;h=J[699344];J[699344]=0;if((h|0)!=1){J[a>>2]=0;vd(a,k);f=J[a>>2];if(L[f+8>>1])l=J[f+16>>2];k=J[b+12>>2];f=L[f+12>>1];J[699344]=0;h=k;k=P(f,3);ua(5679,h|0,c|0,d|0,l|0,k|0,3,0);f=J[699344];J[699344]=0;a:{b:{c:{if((f|0)==1)break c;d:{if(!J[b+20>>2])break d;f=1;h=J[b+16>>2];if(!(!h|J[b+36>>2]<0)){f=J[b+40>>2];J[699344]=0;ua(5679,h|0,c|0,d|0,l+1|0,k|0,3,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break c;f=J[b+40>>2];h=J[b+20>>2];J[699344]=0;ua(5679,h|0,c|0,d|0,l+2|0,k|0,3,f|0);c=J[699344];J[699344]= +0;if((c|0)==1)break c;f=J[b+20>>2]!=0}if(!f|!J[b+16>>2])break d;if(J[b+36>>2]>=0)break b}if((i|0)<=0|(e|0)<=0)break a;d=J[a>>2];l=e&-4;f=e&3;c=0;j=g+(j^-1)>>>0<3;while(1){b=0;e:{if(L[d+8>>1]<=c>>>0)break e;a=J[d+16>>2];b=0;if(!a)break e;b=a+P(P(L[d+12>>1],c),3)|0}a=0;if(!j)while(1){e=K[b|0]^127;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;e=K[b+3|0]^127;H[b+3|0]=e;H[b+5|0]=e;H[b+4|0]=e;e=K[b+6|0]^127;H[b+6|0]=e;H[b+8|0]=e;H[b+7|0]=e;e=K[b+9|0]^127;H[b+9|0]=e;H[b+11|0]=e;H[b+10|0]=e;b=b+12|0;a=a+4|0;if((l|0)!=(a| +0))continue;break}a=0;if(f)while(1){e=K[b|0]^127;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;b=b+3|0;a=a+1|0;if((f|0)!=(a|0))continue;break}c=c+1|0;if((i|0)!=(c|0))continue;break}break a}b=Z()|0;zc(a);ba(b|0);B()}c=0;f=0;a=J[a>>2];if(L[a+8>>1])f=J[a+16>>2];if((e|0)<=0|(i|0)<=0)break a;l=P(L[a+12>>1],3);while(1){b=f;d=0;while(1){a=H[b+2|0];j=(a>>1)+a|0;a=H[b|0]+128|0;g=j+a|0;g=(g|0)>=255?255:g;H[b+2|0]=(g|0)>0?g:0;g=H[b+1|0];a=a-(g>>2)|0;g=a+(g<<1)|0;g=(g|0)>=255?255:g;H[b|0]=(g|0)>0?g:0;a=a-(j>>1)|0;a=(a|0)>= +255?255:a;H[b+1|0]=(a|0)>0?a:0;b=b+3|0;d=d+1|0;if((e|0)!=(d|0))continue;break}f=f+l|0;c=c+1|0;if((i|0)!=(c|0))continue;break}}return}a=Z()|0;uc(f);ba(a|0);B()}function kna(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;a:{i=J[b+4>>2];b:{if((i|0)!=(b|0))while(1){c:{h=J[i+8>>2];if(J[c+8>>2]!=J[h+24>>2]|J[c+12>>2]!=J[h+28>>2]|(J[c+16>>2]!=J[h+32>>2]|J[c+20>>2]!=J[h+36>>2]))break c;if(J[c+24>>2]!=J[h+40>>2]|O[c+112>>3]!=O[h+128>>3]|O[h+400>>3]!=e)break c;j=K[d+11| +0];k=j<<24>>24<0;m=K[h+395|0];l=m<<24>>24<0;j=k?J[d+4>>2]:j;if((j|0)!=((l?J[h+388>>2]:m)|0))break c;if(j){h=h+384|0;if(qd(k?J[d>>2]:d,l?J[h>>2]:h,j))break c;h=J[i+8>>2]}if(K[h+408|0]!=(f|0)|K[h+409|0]!=(g|0))break c;J[a>>2]=h;c=J[i+12>>2];J[a+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;if(J[b+4>>2]==(i|0))break b;c=J[i>>2];d=J[i+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[b+8>>2]=J[b+8>>2]-1;c=J[i+12>>2];d:{if(!c)break d;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break d;kc[J[J[c>>2]+8>>2]](c);Gc(c)}uc(i);J[699344]=0;da(6626,b|0,a| +0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}i=J[i+4>>2];if((i|0)!=(b|0))continue;break}h=vc(456);J[h>>2]=2443504;J[h+4>>2]=0;J[h+8>>2]=0;J[699344]=0;i=_(6627,h+16|0)|0;k=J[699344];J[699344]=0;if((k|0)==1){a=Z()|0;uc(h);ba(a|0);B()}J[a+4>>2]=h;J[a>>2]=i;J[699344]=0;aa(6518,h+32|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;i=J[a>>2];c=i+384|0;e:{if((c|0)==(d|0))break e;k=K[d+11|0];h=k<<24>>24;f:{if(H[i+395|0]>=0){if((h|0)<0)break f;h=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=h;J[c+8>>2]= +J[d+8>>2];break e}i=J[d>>2];l=J[d+4>>2];J[699344]=0;j=c;c=(h|0)<0;ga(1630,j|0,(c?i:d)|0,(c?l:k)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;break e}h=J[d+4>>2];d=J[d>>2];J[699344]=0;ga(1631,c|0,d|0,h|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a}d=J[a>>2];H[d+409|0]=g;H[d+408|0]=f;O[d+400>>3]=e;J[699344]=0;c=_(4,16)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[c+8>>2]=d;a=J[a+4>>2];J[c+12>>2]=a;if(a)J[a+4>>2]=J[a+4>>2]+1;J[c>>2]=b;a=J[b+4>>2];J[c+4>>2]=a;J[a>>2]=c;J[b+4>>2]=c;J[b+8>>2]= +J[b+8>>2]+1}return}b=Z()|0;je(a);ba(b|0);B()}function Pbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>> +2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g); +J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]= +g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Zl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Nbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g| +0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+ +20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+ +2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Zl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Lbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]= +3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>> +0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+ +20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g| +0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Zl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Gbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>> +3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g; +l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911? +-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+ +4>>2]);Yl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Ebb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>> +2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h:g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3| +0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h), +J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Yl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Cbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;g=J[b+84>>2];J[b+1212>>2]=g;h=J[a+88>>2];i=J[b+88>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+80>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[a+84>>2];k=(g|0)<(h|0)?h: +g;g=J[a+92>>2];h=J[b+92>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>> +2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a; +g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Yl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Rba(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,p=0,q=0,r=0,s=0;a:{b:{f=f-16|0;if(f){if((f|0)==16)break b;break a}i=J[a+20>> +2];if((i|0)<=0)break a;h=J[a+16>>2];if((h|0)<=0)break a;f=(((((((((((((((c&1)+(c>>>1&1)|0)+(c>>>2&1)|0)+(c>>>3&1)|0)+(c>>>4&1)|0)+(c>>>5&1)|0)+(c>>>6&1)|0)+(c>>>7&1)|0)+(c>>>8&1)|0)+(c>>>9&1)|0)+(c>>>10&1)|0)+(c>>>11&1)|0)+(c>>>12&1)|0)+(c>>>13&1)|0)+(c>>>14&1)|0)+(c>>>15&1)|0;q=(f+((((((((((((((((d&1)+(d>>>1&1)|0)+(d>>>2&1)|0)+(d>>>3&1)|0)+(d>>>4&1)|0)+(d>>>5&1)|0)+(d>>>6&1)|0)+(d>>>7&1)|0)+(d>>>8&1)|0)+(d>>>9&1)|0)+(d>>>10&1)|0)+(d>>>11&1)|0)+(d>>>12&1)|0)+(d>>>13&1)|0)+(d>>>14&1)|0)+(d>>>15&1)| +0)|0)-8|0;r=q+((((((((((((((((e>>>1&1)+(e&1)|0)+(e>>>2&1)|0)+(e>>>3&1)|0)+(e>>>4&1)|0)+(e>>>5&1)|0)+(e>>>6&1)|0)+(e>>>7&1)|0)+(e>>>8&1)|0)+(e>>>9&1)|0)+(e>>>10&1)|0)+(e>>>11&1)|0)+(e>>>12&1)|0)+(e>>>13&1)|0)+(e>>>14&1)|0)+(e>>>15&1)|0)|0;s=8-f|0;j=(h+1|0)/2<<2;k=J[a+56>>2];while(1){h=i;i=h-1|0;f=J[a+16>>2];if((f|0)>0){l=P(i,j);m=k+P(J[a+52>>2],i)|0;while(1){n=f-1|0;g=l+(n<<1)|0;o=K[(g|1)+b|0];p=m+P(n,3)|0;g=K[b+g|0];H[p|0]=(g&e)<>>r;H[p+1|0]=(d&g)>>>q;g=f>>>0>1;f=n;if(g)continue; +break}}if((h|0)>=2)continue;break}break a}h=J[a+20>>2];if((h|0)<=0)break a;f=J[a+16>>2];if((f|0)<=0)break a;i=f<<2;n=J[a+56>>2];j=(((c>>>0>255)+b|0)+(c>>>0>65535)|0)+(c>>>0>16777215)|0;k=(((d>>>0>255)+b|0)+(d>>>0>65535)|0)+(d>>>0>16777215)|0;l=(((e>>>0>255)+b|0)+(e>>>0>65535)|0)+(e>>>0>16777215)|0;while(1){b=h;h=h-1|0;c=J[a+16>>2];c:{if((c|0)<=0)break c;m=P(h,i);o=n+P(J[a+52>>2],h)|0;f=c;if(c&1){f=c-1|0;e=o+P(f,3)|0;d=m+(f<<2)|0;H[e|0]=K[d+l|0];H[e+1|0]=K[d+k|0];H[e+2|0]=K[d+j|0]}if((c|0)==1)break c; +while(1){d=o+P(f,3)|0;g=d-3|0;c=f-1|0;e=m+(c<<2)|0;H[g|0]=K[e+l|0];H[g+1|0]=K[e+k|0];H[g+2|0]=K[e+j|0];e=d-6|0;f=f-2|0;d=m+(f<<2)|0;H[e|0]=K[d+l|0];H[e+1|0]=K[d+k|0];H[e+2|0]=K[d+j|0];if(c>>>0>1)continue;break}}if((b|0)>=2)continue;break}}}function Sqb(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=fc-16|0;fc=f;e=J[a+16>>2];if(e){kc[J[J[e>>2]+4>>2]](e);J[a+16>>2]=0}J[a+20>>2]=-1;a:{b:{c:{d:{e:{f:{if((c|0)<6)break f;g=((c|0)>=4096?4096:c)-6|0;e=0;g:{h:{i:{j:{k:{l:{while(1){if(ud(b+e|0,28675, +5)){h=(e|0)==(g|0);e=e+1|0;if(!h)continue;break l}break}g=vc(20);e=J[a>>2];J[699344]=0;e=aa(1621,g|0,e|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[a+16>>2]=e;J[f+4>>2]=0;H[f+15|0]=0;g=J[J[e>>2]+12>>2];J[699344]=0;b=ja(g|0,e|0,b|0,c|0,f+4|0,d|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break k;if(H[f+15|0]<0)uc(J[f+4>>2]);if(b)break i;if((DZ(J[a+16>>2])|0)==4)break j;b=J[a+16>>2];if(!b)break e;kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0;break e}if(K[b|0]!=65|(c|0)<8|(K[b+1|0]!=84|K[b+2|0]!=38))break f; +if(K[b+3|0]!=84|K[b+4|0]!=70|(K[b+5|0]!=79|K[b+6|0]!=82))break f;if(K[b+7|0]!=77)break f;e=vc(8);g=J[a>>2];J[699344]=0;g=aa(1622,e|0,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;J[a+16>>2]=g;J[f+4>>2]=0;H[f+15|0]=0;e=J[J[g>>2]+12>>2];J[699344]=0;b=ja(e|0,g|0,b|0,c|0,f+4|0,d|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;if(H[f+15|0]<0)uc(J[f+4>>2]);if(b)break g;b=J[a+16>>2];if(!b)break e;kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0;break e}e=Z()|0;if(H[f+15|0]>=0)break c;break b}J[a+20>>2]=0;break e}J[a+ +20>>2]=0;break e}e=Z()|0;if(H[f+15|0]>=0)break c;break b}J[a+20>>2]=1;break e}e=vc(8);g=J[a>>2];J[699344]=0;g=aa(1623,e|0,g|0)|0;h=J[699344];J[699344]=0;m:{n:{if((h|0)!=1){J[a+16>>2]=g;J[f+4>>2]=0;H[f+15|0]=0;e=J[J[g>>2]+12>>2];J[699344]=0;b=ja(e|0,g|0,b|0,c|0,f+4|0,d|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break n;if(H[f+15|0]<0)uc(J[f+4>>2]);if(b)break m;b=J[a+16>>2];if(!b)break e;kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0;break e}break a}e=Z()|0;if(H[f+15|0]>=0)break c;break b}J[a+20>>2]=2}fc=f+ +16|0;return J[a+16>>2]!=0|0}e=Z()|0;uc(g)}ba(e|0);B()}uc(J[f+4>>2]);ba(e|0);B()}a=Z()|0;uc(e);ba(a|0);B()}function ks(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=fc-16|0;fc=g;a:{b:{c:{d:{f=J[a+8>>2];if(M[a+4>>2]<=f+3>>>0)break d;e=J[a+20>>2];e:{if(e){d=g+12|0;if((kc[e|0](a,f,d,4)|0)!=4)break d;f=J[a+8>>2];break e}d=J[a>>2];if(!d)break c;d=d+f|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break b}e=85;break a}h=0}d=f+4|0;J[a+8>>2]=d;e=2;if((b|0)!=(h|0))break a;f:{g:{h:{if(M[a+ +4>>2]>f+7>>>0){b=J[a+20>>2];if(!b){J[a+8>>2]=f+8;f=f+24|0;break g}if((kc[b|0](a,d,g+12|0,4)|0)==4)break h}e=85;break a}d=J[a+8>>2];J[a+8>>2]=d+4;f=d+20|0;b=J[a+20>>2];if(!b)break g;e=85;if(kc[b|0](a,f,0,0)|0)break a;b=J[a+4>>2];break f}e=85;b=J[a+4>>2];if(f>>>0>b>>>0)break a}J[a+8>>2]=f;i:{j:{k:{if(d+21>>>0>=b>>>0)break k;e=J[a+20>>2];if(e){b=g+12|0;if((kc[e|0](a,f,b,2)|0)!=2)break k;f=J[a+8>>2];break i}b=J[a>>2];if(!b)break j;b=b+f|0;break i}e=85;break a}J[a+8>>2]=d+22;e=2;break a}e=2;b=K[b|0]|K[b+ +1|0]<<8;J[a+8>>2]=f+2;h=(b<<8|b>>>8)&65535;if(!h)break a;b=0;while(1){l:{e=J[a+8>>2];if(M[a+4>>2]<=e+3>>>0)break l;m:{n:{o:{p:{f=J[a+20>>2];q:{if(f){d=g+12|0;if((kc[f|0](a,e,d,4)|0)!=4)break l;e=J[a+8>>2];break q}d=J[a>>2];if(!d)break p;d=d+e|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=e+4|0;J[a+8>>2]=f;if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))==2){J[g+8>>2]=0;r:{s:{t:{if(M[a+4>>2]<=e+7>>>0)break t;e=J[a+20>>2];u:{if(e){d=g+12|0;if((kc[e|0](a,f,d,4)|0)!=4)break t;f=J[a+8>>2];break u}d= +J[a>>2];if(!d)break s;d=d+f|0}d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break r}J[g+8>>2]=85;break m}d=0}J[a+8>>2]=f+4;Rf(a,g+8|0);if(J[g+8>>2])break m;J[c>>2]=d;e=0;break a}e=e+12|0;d=J[a+20>>2];if(!d)break o;if(!(kc[d|0](a,e,0,0)|0))break n;e=85;break a}J[a+8>>2]=e+4;e=e+12|0}if(e>>>0<=M[a+4>>2])break n;e=85;break a}J[a+8>>2]=e;J[g+8>>2]=0}e=2;b=b+1|0;if((h|0)!=(b|0))continue;break a}break}e=85}fc=g+16|0;return e}function H4(a,b,c,d,e,f){var g=0, +h=0,i=0,j=0,k=0,l=0;if(!(!K[a+1188|0]|J[a+1208>>2]!=2)){Sd(a+104|0,a,O[a+1192>>3],O[a+1200>>3]);J[a+1208>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1212>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);i=J[b+12>>2];if(i)J[b+1212>>2]=J[b+84>>2];g=J[e+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+12>>2])break b;j=J[e+8>>2];if(j){uc(j); +g=J[e+20>>2]}J[e+12>>2]=h;k=e,l=vc(h),J[k+8>>2]=l}J[e>>2]=2147483632;J[e+28>>2]=g;J[e+16>>2]=J[e+8>>2];I[g+2>>1]=0;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;j=J[c+8>>2];if(j){uc(j);g=J[c+20>>2]}J[c+12>>2]=h;k=c,l=vc(h),J[k+8>>2]=l}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d; +if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;j=J[d+8>>2];if(j){uc(j);g=J[d+20>>2]}J[d+12>>2]=h;k=d,l=vc(h),J[k+8>>2]=l}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];h=0;I[g+2>>1]=0;if(!Xc(a,c))break a;if(i)h=Xc(b,d);g=J[f+20>>2]-1|0;if((g|0)>=0)while(1){i=J[(J[J[f+32>>2]+(g>>>4&268435452)>>2]+((g&63)<<3)|0)+4>>2];if(i)uc(i);i=(g|0)>0;g=g-1|0;if(i)continue;break}J[f+60>>2]=0;J[f>>2]=0;J[f+20>>2]=0;J[f+120>>2]=0;J[f+112>>2]=-2147483647;J[f+116>> +2]=-2147483647;J[f+104>>2]=2147483647;J[f+108>>2]=2147483647;J[f+40>>2]=0;while(1){g=h&1;h=0;e:{f:{if(!g)break f;while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break f}break}h=1;if((g|0)!=(i|0))break f;fM(c,d,e);if(J[e+28>>2]==J[e+20>>2])break e;J[e+4>>2]=J[c+4>>2];Zj(f,e);break e}Qf(c,e,f)}if(Xc(a,c))continue;break}}}function G3(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0;a:{if(h>>>0>32)break a;while(1){s=c;l=e;w=(s+l)*.5; +e=(l+g)*.5;c=(w+e)*.5;t=b;q=d;x=(t+q)*.5;d=(q+f)*.5;b=(x+d)*.5;b:{i=g-s;r=f-t;k=(q-f)*i-r*(l-g);c:{if(R(k)>1E-30){if(!(k*k<=(r*r+i*i)*O[a+8>>3]))break b;i=O[a+16>>3];if(i<.01){h=J[a+32>>2];o=J[a+28>>2];m=o>>>6|0;if(h>>>0<=m>>>0){j=J[a+36>>2];d:{if(j>>>0>m>>>0){j=J[a+40>>2];break d}n=j+J[a+44>>2]|0;j=vc(n>>>0>1073741823?-1:n<<2);p=J[a+40>>2];if(p){xc(j,p,h<<2);uc(p);n=J[a+36>>2]+J[a+44>>2]|0;o=J[a+28>>2];h=J[a+32>>2]}J[a+36>>2]=n;J[a+40>>2]=j}z=(m<<2)+j|0,A=vc(1024),J[z>>2]=A;J[a+32>>2]=h+1}h=a+28| +0;a=J[J[a+40>>2]+(m<<2)>>2]+((o&63)<<4)|0;O[a>>3]=b;break c}l=R(qf(g-l,f-q)-qf(l-s,q-t));if(!(i>(l>=3.141592653589793?6.283185307179586-l:l)))break b;h=J[a+32>>2];o=J[a+28>>2];m=o>>>6|0;if(h>>>0<=m>>>0){j=J[a+36>>2];e:{if(j>>>0>m>>>0){j=J[a+40>>2];break e}n=j+J[a+44>>2]|0;j=vc(n>>>0>1073741823?-1:n<<2);p=J[a+40>>2];if(p){xc(j,p,h<<2);uc(p);n=J[a+36>>2]+J[a+44>>2]|0;o=J[a+28>>2];h=J[a+32>>2]}J[a+36>>2]=n;J[a+40>>2]=j}z=(m<<2)+j|0,A=vc(1024),J[z>>2]=A;J[a+32>>2]=h+1}h=a+28|0;a=J[J[a+40>>2]+(m<<2)>> +2]+((o&63)<<4)|0;O[a>>3]=b;break c}k=q-t;v=l-s;y=r*r+i*i;u=k*k+v*v;f:{if(y==0)break f;k=(k*r+i*v)/y;if(k>0&k<1)break a;if(k<=0){i=t-q;k=i*i;i=s-l;u=k+i*i;break f}if(k>=1){i=f-q;k=i*i;i=g-l;u=k+i*i;break f}r=k*r+t-q;i=k*i+s-l;u=r*r+i*i}if(!(u>3]))break b;h=J[a+32>>2];o=J[a+28>>2];m=o>>>6|0;if(h>>>0<=m>>>0){j=J[a+36>>2];g:{if(j>>>0>m>>>0){j=J[a+40>>2];break g}n=j+J[a+44>>2]|0;j=vc(n>>>0>1073741823?-1:n<<2);p=J[a+40>>2];if(p){xc(j,p,h<<2);uc(p);n=J[a+36>>2]+J[a+44>>2]|0;o=J[a+28>>2];h=J[a+32>> +2]}J[a+36>>2]=n;J[a+40>>2]=j}z=(m<<2)+j|0,A=vc(1024),J[z>>2]=A;J[a+32>>2]=h+1}h=a+28|0;a=J[J[a+40>>2]+(m<<2)>>2]+((o&63)<<4)|0;O[a>>3]=q;c=l}O[a+8>>3]=c;J[h>>2]=J[h>>2]+1;break a}h=h+1|0;G3(a,t,s,x,w,b,c,h);if((h|0)!=33)continue;break}}}function ahb(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;f=fc-16|0;fc=f;j=J[b+16>>2];k=J[b+8>>2];kc[J[b+28>>2]](b);a:{b:{c:{d:{c=J[b>>2];if(c>>>0>>0){J[b>>2]=c+1;if(K[c|0]==91)break d}c=3;J[f+12>>2]=3;break c}kc[J[b+ +28>>2]](b);e:{f:{d=J[b>>2];g:{if(k>>>0<=d>>>0)break g;while(1){h:{i:{j:{c=K[d|0];if((c|0)!=60){if((c|0)!=93)break j;J[b>>2]=d+1;break b}if(l?0:g)break e;kc[J[b+32>>2]](b);if(J[b+12>>2])break b;c=J[b>>2];i=(c+(d^-1)|0)/2|0;if(c-d>>>0<=2)break g;g=_c(j,1,p,i,g,f+12|0);c=J[f+12>>2];if(c)break c;J[b>>2]=d;l=1;kc[J[b+44>>2]](b,g,i,f+8|0,1)|0;h=J[f+8>>2];break i}if(c-48>>>0>9){i=p;break i}if(l)break g;h=kc[J[b+36>>2]](b)|0;if((h|0)<0)break e;kc[J[b+32>>2]](b);if(J[b+12>>2])break a;c=J[b>>2];g=c+1|0;if(k- +c>>>0<=h>>>0)break e;J[b>>2]=(c+h|0)+1;l=0;break h}if(!g)break f;p=i}k:{l:{if(!(h&1)){c=h;break l}c=h-1|0;if(K[g+c|0])break k}h=c;if(!c)break g}i=k-J[b>>2]|0;n=0;while(1){m:{n:{o:switch(e|0){case 0:e=0;if((m|0)<12)break n;c=J[a+496>>2];o=(K[c+4|0]<<4)+K[c+5|0]|0;d=o<<4|12;J[a+500>>2]=d;if((d|0)>(i|0))break g;s=a,t=_c(j,1,12,d,c,f+12|0),J[s+496>>2]=t;c=J[f+12>>2];if(c)break c;case 1:e=1;c=J[a+500>>2];if((m|0)<(c|0))break n;q=J[a+496>>2];if(o){r=q+12|0;d=0;while(1){e=(d<<4)+r|0;e=K[e+12|0]|K[e+13|0]<< +8|(K[e+14|0]<<16|K[e+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(e>>>0>i>>>0|(i-e|0)<(c|0))break g;c=(e+3&-4)+c|0;J[a+500>>2]=c;d=d+1|0;if((o|0)!=(d|0))continue;break}}s=a,t=_c(j,1,o<<4|12,c+1|0,q,f+12|0),J[s+496>>2]=t;c=J[f+12>>2];if(c)break c;break;case 2:break o;default:break m}e=2;if(J[a+500>>2]<=(m|0))break g}H[J[a+496>>2]+m|0]=K[g+n|0];m=m+1|0}n=n+1|0;if((n|0)!=(h|0))continue;break}kc[J[b+28>>2]](b);d=J[b>>2];if(k>>>0>d>>>0)continue;break}}c=3;J[f+12>>2]=3;break c}c=3;J[f+12>>2]= +3;g=0;break c}c=3;J[f+12>>2]=3;l=0}J[b+12>>2]=c}if(!l)break a;if(g)kc[J[j+8>>2]](j,g)}fc=f+16|0}function ig(a,b,c){var d=0,e=0;if(b){d=a^-1;a:{if(!c|!(b&3))break a;d=J[(((K[b|0]^d)&255)<<2)+756160>>2]^d>>>8;e=c-1|0;a=b+1|0;if(!(!e|!(a&3))){d=J[(((K[b+1|0]^d)&255)<<2)+756160>>2]^d>>>8;e=c-2|0;a=b+2|0;if(!(!e|!(a&3))){d=J[(((K[b+2|0]^d)&255)<<2)+756160>>2]^d>>>8;e=c-3|0;a=b+3|0;if(!(!e|!(a&3))){d=J[(((K[b+3|0]^d)&255)<<2)+756160>>2]^d>>>8;c=c-4|0;b=b+4|0;break a}b=a;c=e;break a}b=a;c=e;break a}b=a; +c=e}if(c>>>0>31)while(1){a=J[b>>2]^d;a=J[b+4>>2]^(J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22&1020)+756160>>2]);a=J[b+8>>2]^(J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22&1020)+756160>>2]);a=J[b+12>>2]^(J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22&1020)+756160>>2]);a=J[b+16>>2]^(J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22& +1020)+756160>>2]);a=J[b+20>>2]^(J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22&1020)+756160>>2]);a=J[b+24>>2]^(J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22&1020)+756160>>2]);a=J[b+28>>2]^(J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22&1020)+756160>>2]);d=J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22&1020)+756160>>2];b=b+32|0;c=c- +32|0;if(c>>>0>31)continue;break}if(c>>>0>3)while(1){a=J[b>>2]^d;d=J[(a>>>6&1020)+758208>>2]^J[((a&255)<<2)+759232>>2]^J[(a>>>14&1020)+757184>>2]^J[(a>>>22&1020)+756160>>2];b=b+4|0;c=c-4|0;if(c>>>0>3)continue;break}b:{if(!c)break b;if(c&1){d=J[(((K[b|0]^d)&255)<<2)+756160>>2]^d>>>8;b=b+1|0;a=c-1|0}else a=c;if((c|0)==1)break b;while(1){c=J[(((K[b|0]^d)&255)<<2)+756160>>2]^d>>>8;d=J[(((c^K[b+1|0])&255)<<2)+756160>>2]^c>>>8;b=b+2|0;a=a-2|0;if(a)continue;break}}a=d^-1}else a=0;return a}function XXa(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;h=J[a+420>>2];if(J[a+236>>2]){e=J[h+68>>2];if(!e){Vw(a,J[h+72>>2]);e=J[a+236>>2];J[h+72>>2]=J[h+72>>2]+1&7}J[h+68>>2]=e-1}if(J[a+316>>2]>0){o=J[a+380>>2];r=h+204|0;while(1){g=p<<2;c=J[(g+a|0)+320>>2]<<2;k=J[(c+a|0)+292>>2];m=J[k+20>>2];l=(m<<2)+h|0;f=c+h|0;i=J[l+76>>2]+J[f+52>>2]|0;n=J[b+g>>2];c=I[n>>1];d=c-J[f+36>>2]|0;a:{if(!d){We(a,i,0);J[f+52>>2]=0;break a}J[f+36>>2]=c;We(a,i,1);e=0;b:{if((d|0)>0){j=2;g=0;c=4;break b}d= +0-d|0;j=3;g=1;c=8}We(a,i+1|0,g);J[f+52>>2]=c;c=i+j|0;g=d-1|0;c:{if(!g)break c;e=1;We(a,c,1);c=J[l+76>>2]+20|0;d=g;if((d|0)==1)break c;while(1){We(a,c,1);c=c+1|0;e=e<<1;l=d>>>0>3;d=d>>>1|0;if(l)continue;break}}We(a,c,0);d=a+m|0;d:{if(1<>1<=(e|0)){if(1<>1>=(e|0))break d;d=J[f+52>>2]+8|0}else d=0;J[f+52>>2]=d}if(e>>>0<2)break a;c=c+14|0;while(1){e=e>>1;We(a,c,(g&e)!=0);if(e>>>0>1)continue;break}}c=1;q=J[k+24>>2];d=J[a+384>>2];j=d;e:{if((d|0)<=0)break e;while(1){if(!L[(J[(j<<2)+ +o>>2]<<1)+n>>1]){f=(j|0)>1;j=j-1|0;if(f)continue;break e}break}l=a+q|0;m=(q<<2)+h|0;while(1){e=(J[m+140>>2]+P(c,3)|0)-3|0;We(a,e,0);d=L[(J[(c<<2)+o>>2]<<1)+n>>1];if(!d)while(1){We(a,e+1|0,0);e=e+3|0;c=c+1|0;d=L[(J[(c<<2)+o>>2]<<1)+n>>1];if(!d)continue;break}g=c;We(a,e+1|0,1);d=d<<16>>16;We(a,r,(d|0)<=0);i=e+2|0;f:{g:{h:{i:{f=d>>31;k=(f^-1)+(d^f)|0;if(!k)break i;We(a,i,1);if((k|0)==1)break i;We(a,i,1);c=J[m+140>>2]+((c|0)>K[l+184|0]?217:189)|0;e=2;d=k>>1;if(d>>>0>1)break h;We(a,c,0);c=c+14|0;break g}We(a, +i,0);break f}while(1){f=c;We(a,c,1);c=c+1|0;e=e<<1;d=d>>1;if(d>>>0>=2)continue;break}We(a,c,0);if(!e)break f;c=f+15|0}while(1){e=e>>1;We(a,c,(k&e)!=0);if(e>>>0>1)continue;break}}c=g+1|0;if((g|0)<(j|0))continue;break}d=J[a+384>>2]}if((c|0)<=(d|0))We(a,(J[((q<<2)+h|0)+140>>2]+P(c,3)|0)-3|0,1);p=p+1|0;if((p|0)>2])continue;break}}return 1}function I2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=-9;a:{b:{c:{d:{e:{d=J[a+4>>2];switch(J[d+48>>2]-8|0){case 1:break d;case 0:break e;default:break b}}c= +J[a+8>>2];g=J[a+12>>2];if(c>>>0>=g>>>0){J[b>>2]=8;break c}e=c+2|0;if(g>>>0>>0){H[d+37|0]=K[c|0];H[J[a+4>>2]+36|0]=1;J[a+8>>2]=c+1;J[b>>2]=11;break c}f=K[c|0];h=K[c+1|0]|f<<8;if((f&248)==216){f:{g:{h:{if(f&4)break h;f=c+4|0;if(f>>>0>g>>>0)break g;g=K[e|0];if((g&252)!=220)break h;e=(K[c+3|0]|g<<8)+(h<<10)|0;if(e>>>0>56613887)break f;e=f}H[d+36|0]=2;H[d+37|0]=K[e-2|0];H[d+38|0]=K[e-1|0];f=12;break a}e=g-c|0;H[d+36|0]=e;d=d+37|0;h=g+(c^-1)|0;f=e&7;if(f){e=0;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+1|0;e= +e+1|0;if((f|0)!=(e|0))continue;break}}f=11;if(h>>>0<7){e=g;break a}while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];H[d+6|0]=K[c+6|0];H[d+7|0]=K[c+7|0];d=d+8|0;c=c+8|0;if((g|0)!=(c|0))continue;break}e=g;break a}h=e-56613888|0;e=f}J[a+8>>2]=e;return h|0}c=J[a+8>>2];g=J[a+12>>2];if(c>>>0>=g>>>0){J[b>>2]=8;break c}e=c+2|0;if(e>>>0>g>>>0){H[d+37|0]=K[c|0];H[J[a+4>>2]+36|0]=1;J[a+8>>2]=c+1;J[b>>2]=11;break c}f=K[c+1|0];h=K[c|0]|f<<8;if((f& +248)!=216){J[a+8>>2]=e;return h|0}i:{j:{k:{if(f&4)break k;f=c+4|0;if(g>>>0>=f>>>0){g=K[c+3|0];if((g&252)!=220)break k;e=(K[e|0]|g<<8)+(h<<10)|0;if(e>>>0<=56613887)break j;J[a+8>>2]=f;return e-56613888|0}e=g-c|0;H[d+36|0]=e;d=d+37|0;f=g+(c^-1)|0;h=e&7;if(h){e=0;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}e=11;if(f>>>0<7){f=g;break i}while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];H[d+6|0]=K[c+6|0];H[d+ +7|0]=K[c+7|0];d=d+8|0;c=c+8|0;if((g|0)!=(c|0))continue;break}f=g;break i}f=e}H[d+36|0]=2;H[d+37|0]=K[f-2|0];H[d+38|0]=K[f-1|0];e=12}J[b>>2]=e;J[a+8>>2]=f;return 65535}c=65535}return c|0}J[b>>2]=f;J[a+8>>2]=e;return 65535}function FAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-48|0;fc=c;d=J[a>>2];kc[J[J[d>>2]+20>>2]](d,0,0,0)|0;tV(c+44|0,a);d=J[c+44>>2];J[c+36>>2]=0;J[c+40>>2]=J[685894];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{while(1){J[699344]=0;h=ha(5279,d|0,c+36|0,0,0)|0;a=J[699344];J[699344]=0;if((a| +0)==1)break c;if(!h)break d;a=J[c+36>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;ca(5330,b|0,a|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;J[c+32>>2]=0;aa(5145,c+32|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;a=J[c+32>>2];J[c+8>>2]=0;aa(5145,c+8|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;f=ga(5335,J[c+8>>2],a|0,0)|0;a=J[699344];J[699344]=0;k:{if((a|0)!=1){a=J[c+8>>2];J[c+8>>2]=0;if(!a)break k;J[699344]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;g=J[699344]; +J[699344]=0;if((g|0)!=1){if(e)break k;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break k}break a}a=Z()|0;zc(c+8|0);break h}a=J[c+32>>2];J[c+32>>2]=0;l:{if(!a)break l;J[699344]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(e)break l;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[699344]=0;$(5332,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;$(5468,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;if((f|0)==(h|0))continue; +break}J[699344]=0;b=ja(5178,c+8|0,J[685886],2386059,2258,2416364,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;B()}a=Z()|0;break b}a=Z()|0}zc(c+32|0);break b}a=Z()|0;break b}a=Z()|0;break b}a=Z()|0;Kc(b);break b}wc(c+36|0);a=J[c+44>>2];J[c+44>>2]=0;m:{if(!a)break m;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break m;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc= +c+48|0;return}a=Z()|0}wc(c+36|0);zc(c+44|0);ba(a|0);B()}ea(0)|0;Bc();B()}function AA(a,b,c,d){var e=0;e=P(b,3);b=e+a|0;H[c|0]=((K[b+3|0]+P(K[a|0],11)|0)+(K[b|0]+K[a+3|0]<<1)|0)+8>>>4;H[c+1|0]=((K[b+4|0]+P(K[a+1|0],11)|0)+(K[b+1|0]+K[a+4|0]<<1)|0)+8>>>4;H[c+2|0]=((K[b+5|0]+P(K[a+2|0],11)|0)+(K[b+2|0]+K[a+5|0]<<1)|0)+8>>>4;H[c+3|0]=(K[b+6|0]+(K[b+3|0]+P(K[a+6|0]+K[a+3|0]|0,7)|0)|0)+8>>>4;H[c+4|0]=(K[b+7|0]+(K[b+4|0]+P(K[a+7|0]+K[a+4|0]|0,7)|0)|0)+8>>>4;H[c+5|0]=(K[b+8|0]+(K[b+5|0]+P(K[a+8|0]+K[a+5| +0]|0,7)|0)|0)+8>>>4;H[c+6|0]=((K[b+6|0]+P(K[a+9|0],11)|0)+(K[b+9|0]+K[a+6|0]<<1)|0)+8>>>4;H[c+7|0]=((K[b+7|0]+P(K[a+10|0],11)|0)+(K[b+10|0]+K[a+7|0]<<1)|0)+8>>>4;H[c+8|0]=((K[b+8|0]+P(K[a+11|0],11)|0)+(K[b+11|0]+K[a+8|0]<<1)|0)+8>>>4;d=P(d,3);c=d+c|0;a=b+e|0;H[c|0]=(K[b+3|0]+(K[a+3|0]+P(K[b|0]+K[a|0]|0,7)|0)|0)+8>>>4;H[c+1|0]=(K[b+4|0]+(K[a+4|0]+P(K[b+1|0]+K[a+1|0]|0,7)|0)|0)+8>>>4;H[c+2|0]=(K[b+5|0]+(K[a+5|0]+P(K[b+2|0]+K[a+2|0]|0,7)|0)|0)+8>>>4;H[c+3|0]=(K[b+3|0]+(K[a+3|0]+(K[a+6|0]+K[b+6|0]|0)| +0)|0)+2>>>2;H[c+4|0]=(K[b+4|0]+(K[a+4|0]+(K[a+7|0]+K[b+7|0]|0)|0)|0)+2>>>2;H[c+5|0]=(K[b+5|0]+(K[a+5|0]+(K[a+8|0]+K[b+8|0]|0)|0)|0)+2>>>2;H[c+6|0]=(K[b+6|0]+(K[a+6|0]+P(K[b+9|0]+K[a+9|0]|0,7)|0)|0)+8>>>4;H[c+7|0]=(K[b+7|0]+(K[a+7|0]+P(K[b+10|0]+K[a+10|0]|0,7)|0)|0)+8>>>4;H[c+8|0]=(K[b+8|0]+(K[a+8|0]+P(K[b+11|0]+K[a+11|0]|0,7)|0)|0)+8>>>4;c=c+d|0;b=a+e|0;H[c|0]=((K[a+3|0]+P(K[b|0],11)|0)+(K[a|0]+K[b+3|0]<<1)|0)+8>>>4;H[c+1|0]=((K[a+4|0]+P(K[b+1|0],11)|0)+(K[a+1|0]+K[b+4|0]<<1)|0)+8>>>4;H[c+2|0]=((K[a+ +5|0]+P(K[b+2|0],11)|0)+(K[a+2|0]+K[b+5|0]<<1)|0)+8>>>4;H[c+3|0]=(K[a+6|0]+(K[a+3|0]+P(K[b+6|0]+K[b+3|0]|0,7)|0)|0)+8>>>4;H[c+4|0]=(K[a+7|0]+(K[a+4|0]+P(K[b+7|0]+K[b+4|0]|0,7)|0)|0)+8>>>4;H[c+5|0]=(K[a+8|0]+(K[a+5|0]+P(K[b+8|0]+K[b+5|0]|0,7)|0)|0)+8>>>4;H[c+6|0]=((K[a+6|0]+P(K[b+9|0],11)|0)+(K[a+9|0]+K[b+6|0]<<1)|0)+8>>>4;H[c+7|0]=((K[a+7|0]+P(K[b+10|0],11)|0)+(K[a+10|0]+K[b+7|0]<<1)|0)+8>>>4;H[c+8|0]=((K[a+8|0]+P(K[b+11|0],11)|0)+(K[a+11|0]+K[b+8|0]<<1)|0)+8>>>4}function ODa(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0,f=0;d=fc-16|0;fc=d;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d:{e:{f:{c=J[b>>2];if(!c){J[d+8>>2]=0;break f}g:{h:{if(J[c+8>>2]){b=J[J[c>>2]+24>>2];J[699344]=0;ca(b|0,d+8|0,c|0,2);b=J[699344];J[699344]=0;if((b|0)==1)break h;b=J[d+8>>2];i:{if(b){c=J[J[b>>2]+24>>2];J[699344]=0;ca(c|0,d+12|0,b|0,2);b=J[699344];J[699344]=0;if((b|0)!=1)break i;b=Z()|0;break g}J[d+12>>2]=0}J[699344]=0;aa(5153,a|0,d+12|0)|0;b=J[699344];J[699344]=0;j:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break j;J[699344]=0; +c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break j;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break j}break a}b=Z()|0;zc(d+12|0);break g}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[d+8>>2];J[d+8>>2]=0;if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;break b}J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;k:{if((c| +0)!=1){b=J[b>>2];J[d+8>>2]=b;if(!b)break f;c=J[J[b>>2]+24>>2];J[699344]=0;ca(c|0,d+12|0,b|0,2);c=J[699344];J[699344]=0;if((c|0)==1)break k;break e}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break c}zc(d+8|0);break c}b=0;J[d+12>>2]=0}J[699344]=0;aa(5153,a|0,d+12|0)|0;c=J[699344];J[699344]=0;l:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break l;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break l;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break l}break a}b= +Z()|0;zc(d+12|0);break d}c=J[a>>2];J[a+4>>2]=J[(c?c+12|0:2743576)>>2];J[d+8>>2]=0;if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b}break a}zc(d+8|0)}wc(a);ba(b|0);B()}fc=d+16|0;return a|0}ea(0)|0;Bc();B()}function LC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=fc-96|0;fc=g;d=-1;a:{if(!a|!J[a+12>>2])break a;c=J[a+16>>2];if(!c)break a;i=J[a+20>>2];if(!i)break a;d=0;if(J[i+32>>2])break a; +f=J[i+8>>2];if(!((f|0)==J[i+24>>2]|f>>>0>2147483646))J[i+24>>2]=f;f=J[i+20>>2];e=J[i+4>>2];if(!((f|0)==(e|0)|e>>>0>2147483646)){J[i+20>>2]=e;f=e}if(!f)break a;j=b?f:f>>>0>65536?65536:f;b:{c:{d:{f=J[c+32>>2];if(!f){d=J[c+24>>2];e=J[c+8>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[c+24>>2]=e;d=e}h=J[c+20>>2];e=J[c+4>>2];if(!((h|0)==(e|0)|e>>>0>2147483646)){J[c+20>>2]=e;h=e}if((d|0)!=(h|0))break d}e=j<<1;break c}e=j<<1;d=(h^-1)+d|0;h=1;if(e>>>0>>0)break b}if((e|0)>0){jL(c,e);f=J[c+32>>2]}e:{if(f)break e; +d=J[c+24>>2];e=J[c+8>>2];if(!((d|0)==(e|0)|e>>>0>2147483646)){J[c+24>>2]=e;d=e}e=J[c+20>>2];h=J[c+4>>2];if(!((e|0)==(h|0)|h>>>0>2147483646)){J[c+20>>2]=h;e=h}if((d|0)==(e|0))break e;d=(e^-1)+d|0;h=1;break b}d=0;h=!f}f=h;J[g+92>>2]=j;J[g+88>>2]=b?d:d>>>0>131072?131072:d;f:{g:{d=J[J[a+12>>2]+4>>2];if(d){if(f){a=J[c+8>>2];if(!((a|0)==J[c+24>>2]|a>>>0>2147483646))J[c+24>>2]=a;f=J[c+20>>2];a=J[c+4>>2];if((f|0)==(a|0)|a>>>0>2147483646)a=f;else J[c+20>>2]=a;a=a+J[c>>2]|0}else a=0;f=kc[d|0](a,g+88|0,J[i+ +32>>2]?0:J[i>>2],g+92|0)|0;wx(i,J[g+92>>2]);h:{if(J[c+32>>2])break h;d=J[c+24>>2];a=J[c+8>>2];if(!((d|0)==(a|0)|a>>>0>2147483646)){J[c+24>>2]=a;d=a}e=J[g+88>>2];b=J[c+20>>2];a=J[c+4>>2];if(!((b|0)==(a|0)|a>>>0>2147483646)){J[c+20>>2]=a;b=a}if(e>>>0>d-b>>>0)break h;a=b+e|0;J[c+20>>2]=a;J[c+8>>2]=d>>>0>=2147483647?2147483647:d;J[c+4>>2]=a>>>0>=2147483647?2147483647:a;if(a>>>0>=d>>>0)break h;H[a+J[c>>2]|0]=0}if((f|0)!=-2)break g}a=J[i>>2];b=K[a|0];d=K[a+1|0];f=K[a+2|0];J[g+28>>2]=K[a+3|0];J[g+24>>2]= +f;J[g+20>>2]=d;J[g+16>>2]=b;a=g+32|0;Wi(a,49,19995,g+16|0);H[g+81|0]=0;J[g>>2]=a;Hc(0,0,0,0,0,27,6003,3,a,0,0,0,32407,g);a=-2;break f}a=(f|0)!=-3?f:0}b=J[g+88>>2];d=b?b:a}fc=g+96|0;return d}function owa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;h=fc-1056|0;fc=h;a:{b:{c:{d:{if(!b){a=Qc(h,2391804,2385793,1405,2424948,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break a}if(!K[2776625]){H[2776625]=1;while(1){H[f+2776640| +0]=f>>>0>=255?255:f;g=f|1;H[g+2776640|0]=g>>>0>=255?255:g;g=f|2;H[g+2776640|0]=g>>>0>=255?255:g;g=f|3;H[g+2776640|0]=g>>>0>=255?255:g;f=f+4|0;if((f|0)!=512)continue;break}}if(!e)break b;j=L[b+8>>1];f=j+d|0;g=L[a+8>>1];l=(d|0)>0?d:0;o=((f|0)<(g|0)?f:g)-l|0;if((o|0)<=0)break b;f=L[b+10>>1]+c|0;g=L[a+10>>1];q=(c|0)>0?c:0;p=((f|0)<(g|0)?f:g)-q|0;if((p|0)<=0)break b;i=L[b+16>>1];m=i-1|0;e:{if(m>>>0<2)break e;f=1;if((i|0)!=3){n=(i&65534)-4|0;g=0;while(1){J[(f<<2)+h>>2]=(f<<16>>>0)/(m>>>0);k=f+1|0;J[(k<< +2)+h>>2]=(k<<16>>>0)/(m>>>0);f=f+2|0;k=(g|0)==(n|0);g=g+2|0;if(!k)continue;break}}if(!(i&1))break e;J[(f<<2)+h>>2]=(f<<16>>>0)/(m>>>0)}n=K[e|0];k=K[e+1|0];r=K[e+2|0];if(!J[b+20>>2]){_i(b);j=L[b+8>>1]}f=L[b+12>>1];i=L[b+14>>1];if(j&65535){g=b+20|0;break c}g=2743556;if(J[685890]>=(f+i|0))break c;a=Qc(h+1032|0,2393468,2393871,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break a}B()}if((o|0)<=0|(p|0)<=0)break b;j=0;b=l;l=L[a+12>>1];e=(P(P(b,l),3)+(L[a+8>>1]?J[a+16>> +2]:0)|0)+P(q,3)|0;b=((f+J[g>>2]|0)-P(i,d>>31&d)|0)-(c>>31&c)|0;while(1){f=0;while(1){c=K[b+f|0];if(c){f:{if(c>>>0>=m>>>0){a=P(f,3)+e|0;H[a|0]=K[(n+K[a|0]|0)+2776640|0];H[a+1|0]=K[(k+K[a+1|0]|0)+2776640|0];g=K[a+2|0]+r|0;a=a+2|0;break f}a=P(f,3)+e|0;c=J[(c<<2)+h>>2];H[a|0]=K[(K[a|0]+(P(c,n)>>>16|0)|0)+2776640|0];H[a+1|0]=K[(K[a+1|0]+(P(c,k)>>>16|0)|0)+2776640|0];g=K[a+2|0]+(P(c,r)>>>16|0)|0;a=a+2|0}H[a|0]=K[g+2776640|0]}f=f+1|0;if((p|0)!=(f|0))continue;break}b=b+i|0;e=P(l,3)+e|0;j=j+1|0;if((o|0)!= +(j|0))continue;break}}fc=h+1056|0;return}b=Z()|0;Kc(a);ba(b|0);B()}function oJ(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;k=fc-16|0;a:{if(!b)break a;n=b-2|0;l=1;while(1){d=b>>>0>l>>>0?b:l;c=g;b:{while(1){if(J[((c<<4)+a|0)+4>>2])break b;c=c+1|0;if(c>>>0>>0)continue;break}c=d}if((b|0)==(c|0))break a;e=c+1|0;c:{if(e>>>0>=b>>>0){d=c;break c}d:{if(!((c^-1)+b&1)){d=c;break d}d=c;f=J[((e<<4)+a|0)+4>>2];if(f)d=f>>>0>2]?e:c;e=c+2|0}if((c|0)==(n|0))break c;while(1){c=J[((e<< +4)+a|0)+4>>2];if(c)d=c>>>0>2]?e:d;c=e+1|0;f=J[((c<<4)+a|0)+4>>2];if(f)d=f>>>0>2]?c:d;e=e+2|0;if((e|0)!=(b|0))continue;break}}if((d|0)!=(g|0)){e=g^-1;c=(d<<4)+a|0;f=J[c+12>>2];J[k+8>>2]=J[c+8>>2];J[k+12>>2]=f;f=J[c+4>>2];J[k>>2]=J[c>>2];J[k+4>>2]=f;e:{if(d>>>0<=g>>>0)break e;i=d+e|0;e=0;j=d-g&3;if(j)while(1){c=(d<<4)+a|0;f=c-16|0;h=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=h;h=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=h;d=d-1|0;e=e+1|0;if((j|0)!=(e|0))continue;break}if(i>>> +0<3)break e;while(1){e=(d<<4)+a|0;c=e-16|0;f=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=f;f=e-32|0;j=J[f>>2];h=J[f+4>>2];i=e-48|0;m=J[i+4>>2];J[f>>2]=J[i>>2];J[f+4>>2]=m;J[c>>2]=j;J[c+4>>2]=h;j=e+-64|0;h=J[j+4>>2];J[i>>2]=J[j>>2];J[i+4>>2]=h;h=J[c+12>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=h;e=J[f+8>>2];h=J[f+12>>2];m=J[i+12>>2];J[f+8>>2]=J[i+8>>2];J[f+12>>2]=m;J[c+8>>2]=e;J[c+12>>2]=h;c=J[j+12>>2];J[i+8>>2]=J[j+8>>2];J[i+12>>2]=c;d=d-4|0;if(g>>>0>>0)continue;break}}d=J[k+4>>2];c=(g<<4)+a|0;J[c>>2]=J[k>>2]; +J[c+4>>2]=d;d=J[k+12>>2];J[c+8>>2]=J[k+8>>2];J[c+12>>2]=d}l=l+1|0;g=g+1|0;if((g|0)!=(b|0))continue;break}g=b}b=(b<<4)+a|0;d=J[b+4>>2];c=(g<<4)+a|0;J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;f:{if(J[a+8>>2]==-1)break f;J[a+12>>2]=0;if(J[a+24>>2]==-1)break f;g=a-12|0;c=1;d=1;while(1){e=c;b=d<<4;c=b+a|0;b=e<>2]-J[b+g>>2];J[c+12>>2]=b;c=b+1|0;d=d+1|0;if(J[((d<<4)+a|0)+8>>2]!=-1)continue;break}}}function BCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16| +0;fc=e;J[a>>2]=0;a:{b:{c:{d:{e:{f=J[b+8>>2];if(!f)break e;f:{g:{h:{if(d){i:{while(1){j:{b=0;d=J[f+8>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break j;b=J[f+8>>2]}J[e+12>>2]=b;k:{l:{if(J[b+8>>2]!=4){J[e+12>>2]=0;break l}J[699344]=0;d=e+4|0;da(5361,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;b=pd(d,c,-1);g=J[699344];J[699344]=0;if((g|0)==1)break d;wc(d);if(!b){J[699344]=0;aa(5153,a|0,e+12|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i}b=J[e+ +12>>2];J[e+12>>2]=0;if(!b)break k}J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break f;if(d)break k;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break f}f=J[f>>2];if(f)continue;break e}break}b=Z()|0;break b}b=Z()|0;break c}while(1){b=0;d=J[f+8>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[f+8>>2]}J[e+12>>2]=b;m:{n:{o:{if(J[b+8>>2]!=4){J[e+12>>2]=0;break o}J[699344]=0;d=e+4|0;da(5361,d|0,b|0);b=J[699344];J[699344]= +0;p:{if((b|0)!=1){J[699344]=0;b=pd(d,c,-1);g=J[699344];J[699344]=0;if((g|0)==1)break d;wc(d);if(b)break p;J[699344]=0;aa(5153,a|0,e+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break m;b=Z()|0;break c}b=Z()|0;break c}b=J[e+12>>2];J[e+12>>2]=0;if(!b)break n}J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break f;if(d)break n;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break f}f=J[f>>2];if(f)continue;break e}break}a=J[e+12>>2];J[e+12>>2]=0;if(!a)break e;J[699344]= +0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e}break a}b=Z()|0;break c}b=Z()|0;break b}break a}fc=e+16|0;return}b=Z()|0;wc(e+4|0)}zc(e+12|0)}zc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function Jaa(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=0,o=0,p=0,q=0,r=0,s=0,t=0;q=fc-16|0;fc=q;o=kc[J[a+152>>2]](92)|0;a:{if(!o){Jc(a,1,0,0);a=1;break a}n=kc[J[a+152>>2]](1180)|0;b:{if(n){H[n+54|0]=0;H[n+53|0]=0;H[n+49|0]=0;H[n+50|0]= +0;H[n+51|0]=0;H[n+52|0]=0;H[n+48|0]=0;H[n+47|0]=0;H[n+46|0]=0;H[n+45|0]=0;H[n+44|0]=0;J[n+40>>2]=0;J[n+36>>2]=0;H[n+34|0]=e;H[n+33|0]=c;H[n+32|0]=0;J[n+28>>2]=1;J[n+4>>2]=0;J[n>>2]=950;J[n+1164>>2]=1;J[n+1168>>2]=0;J[n+1172>>2]=0;p=K[a+308|0];H[n+57|0]=p;r=K[a+309|0];H[n+58|0]=r;s=K[a+310|0];H[n+59|0]=s;t=K[a+311|0];H[n+60|0]=t;c=K[a+312|0];H[n+61|0]=c;if(p)J[n+1104>>2]=J[a+2192>>2];if(r){J[n+1108>>2]=J[a+2196>>2];J[n+1112>>2]=J[a+2200>>2];J[n+1116>>2]=J[a+2204>>2];J[n+1120>>2]=J[a+2208>>2];J[n+1124>> +2]=J[a+2212>>2];J[n+1128>>2]=J[a+2216>>2];J[n+1132>>2]=J[a+2220>>2];J[n+1136>>2]=J[a+2224>>2]}if(s)H[n+1140|0]=K[a+2228|0];c:{d:{if(!t)break d;p=J[a+2232>>2];J[n+1144>>2]=p;if(!p)break d;c=kc[J[a+152>>2]](p)|0;J[n+1148>>2]=c;if(!c){c=J[n+1176>>2];if(c)kc[J[a+156>>2]](c,J[n+1172>>2]);break c}xc(c,J[a+2236>>2],J[n+1144>>2]);c=K[a+312|0]}if(c){I[n+1156>>1]=L[a+2240>>1];I[n+1158>>1]=L[a+2242>>1];I[n+1160>>1]=L[a+2244>>1]}J[q+12>>2]=n;c=0;break b}kc[J[a+156>>2]](n,1180)}Jc(a,1,0,0);c=1}if(c){kc[J[a+156>> +2]](o,92);a=1;break a}H[o+32|0]=e;H[o+31|0]=d;e=0;H[o+30|0]=0;I[o+28>>1]=b;J[o+4>>2]=0;J[o>>2]=951;e=!K[a+432|0]|!(K[a+496|0]|K[a+476|0])?e:!K[a+500|0];J[o+80>>2]=0;J[o+84>>2]=0;J[o+60>>2]=l;J[o+56>>2]=k;J[o+52>>2]=j;J[o+48>>2]=i;H[o+44|0]=h;J[o+40>>2]=g;J[o+36>>2]=f;H[o+33|0]=e;J[o+64>>2]=0;J[o+68>>2]=0;I[o+70>>1]=0;I[o+72>>1]=0;I[o+74>>1]=0;I[o+76>>1]=0;J[o+88>>2]=J[q+12>>2];if(b){c=a+692|0;e:{f:{e=J[a+692>>2];if(e)while(1){if(L[e+28>>1]<=b>>>0)break f;e=J[e+12>>2];if(e)continue;break}e=J[a+688>> +2];J[o+8>>2]=e;J[a+688>>2]=o;break e}J[o+12>>2]=e;J[o+8>>2]=J[e+8>>2];J[e+8>>2]=o;e=J[o+8>>2]}J[(e?e+12|0:c)>>2]=o}J[m>>2]=o;a=0}fc=q+16|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;g=fc-32|0;fc=g;a:{b:{d=J[a+372>>2];if(d){J[a+372>>2]=J[d+24>>2];J[a+368>>2]=J[a+368>>2]-1;break b}d=kc[J[663195]](60)|0;if(d)break b;if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break a}J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;J[g>>2]=4008;c=0;Hc(0,0,0,a,0,1,2,3,4008,0,0,0,32879,g);break a}J[d>>2]=0;J[d+ +4>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;c:{d:{e:{if(!J[a+364>>2])break e;f=b+c|0;e=K[f|0];f:{g:{if((c|0)>7)break g;if(H[a+362|0]&1){e=d+44|0;j=xc(e,b,c)+c|0,k=0,H[j|0]=k;J[d+8>>2]=774748;J[d+4>>2]=3;break c}if((c|0)>3)break g;h:switch(e-34|0){case 26:break h;case 0:case 5:break f;default:break g}if(K[f+1|0]!=33)break f}h=K[b|0];i=h-9|0;i:{if(!(1<>>0<= +23:0)){if((h|0)!=13|(c|0)>59)break e;if((e|0)==60)break i;break e}if((e|0)!=60|(c|0)>59)break e}e=1;if(K[f+1|0]==33)break e;if((c|0)<2)break f;while(1){f=K[b+e|0]-9|0;if(f>>>0>23|!(1<>2],b,c);J[d+8>>2]=774748;J[d+4>>2]=3;if(e)break c;break d}J[d+8>>2]=774748;J[d+4>>2]=3}j:{if(!(!b|(c|0)<0)){e=kc[J[663198]](c+1|0)|0;if(e)break j;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0)}c=0;J[d+40>>2]=0;J[a+84>>2]=2;e=J[a>>2];b=0;k:{if(!e)break k;b= +0;if(J[e+108>>2]!=-554844497)break k;b=J[e+124>>2]}e=J[a+112>>2];f=J[a+108>>2];J[g+20>>2]=0;J[g+16>>2]=30591;Hc(b,e,f,a,0,1,2,2,30591,0,0,0,14663,g+16|0);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;kc[J[663199]](d);break a}j=xc(e,b,c)+c|0,k=0,H[j|0]=k}J[d+40>>2]=e;l:{if(!J[a+280>>2])break l;b=J[a+36>>2];if(!b)break l;b=J[b+28>>2];if((b|0)<=65534){I[d+56>>1]=b;break l}I[d+56>>1]=65535;if(!(K[a+362|0]&64))break l;J[d+52>>2]=b}m:{if(!J[693393])break m;a=J[693390];if(!a)break m;kc[a|0](d)}c=d}fc=g+32|0; +return c}function CK(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=fc-128|0;fc=i;a:{if(!c)break a;J[c>>2]=0;if(!b)break a;b:{d=K[b|0];if((d|0)!=58){g=b;while(1){h=g+1|0;c:{d:{e:{f=d&255;f:{if(!f|(f|0)==58)break f;if((e|0)==100)break e;H[(i+16|0)+e|0]=d;h=g+2|0;f=e|1;d=K[g+1|0];if(!d){e=f;break f}if((d|0)==58){e=f;break f}H[f+(i+16|0)|0]=d;h=g+3|0;f=e|2;d=K[g+2|0];if(!d){e=f;break f}if((d|0)==58){e=f;break f}H[f+(i+16|0)|0]=d;h=g+4|0;f=e|3;d=K[g+3|0];if((d|0)!=58?d:0)break c;e=f}g=d&255;if(e>>>0>99)break d; +f=0;j=100;break b}e=100;g=d&255}d=0;j=e<<1;f=kc[J[663198]](j)|0;if(!f){se(a,0);break a}xc(f,i+16|0,e);while(1){g:{d=g&255;if(!(!d|(d|0)==58)){if((e+10|0)<=(j|0)){d=f;break g}j=j<<1;d=kc[J[663200]](f,j)|0;if(d)break g;d=0;kc[J[663199]](f);se(a,0);break a}H[e+f|0]=0;break b}H[d+e|0]=g;e=e+1|0;g=K[h|0];h=h+1|0;f=d;continue}}H[f+(i+16|0)|0]=d;e=e+4|0;d=K[h|0];g=h;continue}}d=ff(b);break a}if(!(K[h|0]|(g|0)!=58)){if(f)kc[J[663199]](f);J[c>>2]=0;d=ff(b);break a}d=100;if(!f){f=Hl(i+16|0,e);d=j}if((g|0)!= +58){d=f;break a}g=K[h|0];J[c>>2]=f;if(!(g&255)){d=Hl(39197,0);break a}h:{if(((g&223)-65&255)>>>0<26)break h;c=g&255;if((c|0)==58|(c|0)==95)break h;c=Wm(a,h,i+12|0);i:{if((c|0)<=255){if(c-192>>>0<23|(c&-33)-65>>>0<26|((c|0)==95|(c|0)>247))break h;if(c-216>>>0>=31)break i;break h}if(Zm(c,771140)|c-12330>>>0>4294967286|((c|0)==12295|c-40870>>>0>4294946393))break h}Uf(a,202,31116,b)}h=h+1|0;j:{k:{if((d|0)<=0){e=0;break k}e=0;while(1){l:{H[(i+16|0)+e|0]=g;b=h+1|0;e=e+1|0;g=K[h|0];if(!g)break l;h=b;if((d| +0)>(e|0))continue}break}if((d|0)>(e|0))break j;h=b}b=e<<1;c=kc[J[663198]](b)|0;if(!c){d=0;se(a,0);break a}d=xc(c,i+16|0,e);if(g&255)while(1){m:{if((e+10|0)<=(b|0)){d=c;break m}b=b<<1;d=kc[J[663200]](c,b)|0;if(d)break m;d=0;se(a,0);kc[J[663199]](c);break a}H[d+e|0]=g;e=e+1|0;g=K[h|0];c=d;h=h+1|0;if(g)continue;break}H[d+e|0]=0;break a}d=Hl(i+16|0,e)}fc=i+128|0;return d}function Kx(a,b,c,d,e){a=a|0;b=+b;c=+c;d=+d;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=fc-48|0;fc=f;b=b*3.141592653589793/180;i=Ee(b); +j=-i;g=J[a>>2];k=-d;l=-c;b=Me(b);a:{if(!e){J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;O[f+40>>3]=k;O[f+32>>3]=l;J[f+24>>2]=0;J[f+28>>2]=1072693248;J[f>>2]=0;J[f+4>>2]=1072693248;e=Bj(f,g);h=J[e+4>>2];J[g>>2]=J[e>>2];J[g+4>>2]=h;h=J[e+44>>2];J[g+40>>2]=J[e+40>>2];J[g+44>>2]=h;h=J[e+36>>2];J[g+32>>2]=J[e+32>>2];J[g+36>>2]=h;h=J[e+28>>2];J[g+24>>2]=J[e+24>>2];J[g+28>>2]=h;h=J[e+20>>2];J[g+16>>2]=J[e+16>>2];J[g+20>>2]=h;h=J[e+12>>2];J[g+8>>2]=J[e+8>>2];J[g+12>>2]=h;e=J[a>>2];J[f+40>>2]=0;J[f+ +44>>2]=0;J[f+32>>2]=0;J[f+36>>2]=0;O[f+24>>3]=b;O[f+16>>3]=j;O[f+8>>3]=i;O[f>>3]=b;g=Bj(f,e);h=J[g+4>>2];J[e>>2]=J[g>>2];J[e+4>>2]=h;h=J[g+44>>2];J[e+40>>2]=J[g+40>>2];J[e+44>>2]=h;h=J[g+36>>2];J[e+32>>2]=J[g+32>>2];J[e+36>>2]=h;h=J[g+28>>2];J[e+24>>2]=J[g+24>>2];J[e+28>>2]=h;h=J[g+20>>2];J[e+16>>2]=J[g+16>>2];J[e+20>>2]=h;h=J[g+12>>2];J[e+8>>2]=J[g+8>>2];J[e+12>>2]=h;a=J[a>>2];J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;O[f+40>>3]=d;O[f+32>>3]=c;J[f+24>>2]=0;J[f+28>>2]=1072693248;J[f>>2]= +0;J[f+4>>2]=1072693248;e=Bj(f,a);g=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=g;g=J[e+44>>2];J[a+40>>2]=J[e+40>>2];J[a+44>>2]=g;g=J[e+36>>2];J[a+32>>2]=J[e+32>>2];J[a+36>>2]=g;g=J[e+28>>2];J[a+24>>2]=J[e+24>>2];J[a+28>>2]=g;g=J[e+20>>2];J[a+16>>2]=J[e+16>>2];J[a+20>>2]=g;g=J[e+12>>2];J[a+8>>2]=J[e+8>>2];J[a+12>>2]=g;break a}J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=1072693248;O[f+40>>3]=k;O[f+32>>3]=l;J[f+24>>2]=0;J[f+28>>2]=1072693248;Bj(g,f);e=J[a>>2];J[f+40>>2]=0;J[f+44>> +2]=0;J[f+32>>2]=0;J[f+36>>2]=0;O[f+24>>3]=b;O[f+16>>3]=j;O[f+8>>3]=i;O[f>>3]=b;Bj(e,f);a=J[a>>2];J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f>>2]=0;J[f+4>>2]=1072693248;O[f+40>>3]=d;O[f+32>>3]=c;J[f+24>>2]=0;J[f+28>>2]=1072693248;Bj(a,f)}fc=f+48|0}function B2a(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;o=fc-16|0;p=J[a+12>>2];e=J[a+24>>2];k=J[a+8>>2];h=J[a+4>>2];s=J[h+24>>2];f=J[h+56>>2];d=J[a+16>>2];l=J[a+20>>2];if(d>>>0>>0?f:0){J[h+56>>2]= +0;g=-1;c=1}else c=0;while(1){a:{b:{c:{d:{e:{f:{if(!c){c=k;if(c>>>0>=p>>>0|d>>>0>=l>>>0)break c;k=c+2|0;f=L[c>>1];if(f>>>0<=127){J[e>>2]=g;H[d|0]=f;d=d+1|0;e=e+4|0;g=g+1|0;break a}if(f>>>0<=2047){J[e>>2]=g;H[d|0]=f>>>6|192;c=d+1|0;if(c>>>0>>0){J[e+4>>2]=g;H[d+1|0]=f&63|128;d=d+2|0;e=e+8|0;g=g+1|0;break a}e=e+4|0;H[h+63|0]=1;H[h+76|0]=f&63|128;J[b>>2]=15;d=c;break a}n=g+1|0;if((s|0)==740848|(f&63488)!=55296)break f;c=1;continue}if(k>>>0>=p>>>0)break d;if(f&1024)break e;c=L[k>>1];if((c&64512)!=56320)break e; +k=k+2|0;f=(c+(f<<10)|0)-56613888|0;n=n+1|0}c=3;m=l-d|0;j=(m|0)>3;i=j?d:o+12|0;g:{if((f|0)<=65535){c=2;j=f>>>12|-32;break g}H[(j?d:o+12|0)+1|0]=f>>>12&63|128;j=f>>>18|-16}H[i|0]=j;j=c+i|0;H[j|0]=f&63|128;H[j-1|0]=f>>>6&63|128;h:{if((d|0)!=(i|0)){j=(o+12|0)+c|0;if(i>>>0>j>>>0){g=n;break a}q=(o+12|0)+c|0;i:{if(!((q-i|0)+1&1)){c=d;d=i;break i}j:{if(d>>>0>=l>>>0){c=K[i|0];r=H[h+63|0];H[h+63|0]=r+1;H[(h+r|0)+76|0]=c;J[b>>2]=15;c=d;break j}J[e>>2]=g;H[d|0]=K[i|0];e=e+4|0;c=d+1|0}d=((m|0)>3?d:o+12|0)+1|0}if((i| +0)!=(q|0))break h;break b}J[e+8>>2]=g;J[e+4>>2]=g;J[e>>2]=g;c=c+1|0;d=c+d|0;if((f|0)>=65536)J[e+12>>2]=g;e=(c<<2)+e|0;g=n;break a}while(1){k:{if(c>>>0>>0){J[e>>2]=g;H[c|0]=K[d|0];c=c+1|0;e=e+4|0;break k}i=K[d|0];m=H[h+63|0];H[h+63|0]=m+1;H[(h+m|0)+76|0]=i;J[b>>2]=15}l:{if(c>>>0>=l>>>0){i=K[d+1|0];m=H[h+63|0];H[h+63|0]=m+1;H[(h+m|0)+76|0]=i;J[b>>2]=15;break l}J[e>>2]=g;H[c|0]=K[d+1|0];c=c+1|0;e=e+4|0}d=d+2|0;if(j>>>0>=d>>>0)continue;break}break b}J[h+56>>2]=f;J[b>>2]=12;break c}J[h+56>>2]=f}if(!(d>>> +0>>0|k>>>0>=p>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=e;J[a+8>>2]=k;J[a+16>>2]=d;return}d=c;g=n}c=0;continue}}function zBb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;d=fc-8240|0;fc=d;Ac(d+28|0,0,8212);g=d+12|0;J[g+12>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[g>>2]=415588;J[699344]=0;a=ga(3,g|0,c|0,0)|0;f=J[699344];J[699344]=0;a:{b:{c:{if((f|0)!=1){d:{if(!a)break d;f=0;J[699344]=0;a=J[g+4>>2];h=J[699344];J[699344]=0;e:{f:{g:{h:{i:{if((h|0)==1)break i;if(a){J[699344]=0;h=_(27,1024)|0;f=J[699344]; +J[699344]=0;if((f|0)==1)break i;f=Paa(h,ge(h,1,1024,a));uc(h);hh(a,0,0)}h=0;J[699344]=0;$(21,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break i;j:switch(f-1|0){case 0:break j;case 2:break g;case 1:break h;default:break d}J[699344]=0;a=_(4,36)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[699344]=0;c=ga(901,a|0,c|0,1)|0;f=J[699344];J[699344]=0;if((f|0)==1){c=Z()|0;uc(a);break a}J[699344]=0;a=aa(902,c|0,d+28|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;kc[J[J[c>>2]+4>>2]](c);if(a)break e;break d}c= +Z()|0;break a}J[699344]=0;a=_(4,36)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[699344]=0;c=ga(901,a|0,c|0,1)|0;f=J[699344];J[699344]=0;if((f|0)==1){c=Z()|0;uc(a);break a}J[699344]=0;a=aa(903,c|0,d+28|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break f;break b}J[699344]=0;a=_(4,36)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[699344]=0;c=ga(901,a|0,c|0,1)|0;f=J[699344];J[699344]=0;if((f|0)==1){c=Z()|0;uc(a);break a}J[699344]=0;a=aa(904,c|0,d+28|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b; +kc[J[J[c>>2]+4>>2]](c);if(a)break e;break d}kc[J[J[c>>2]+4>>2]](c);if(!a)break d}J[699344]=0;h=ga(905,a|0,b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;e=J[a+24>>2];k:{if(!e)break k;c=0;f=J[a+16>>2];if((f|0)>0){while(1){b=J[a+24>>2]+P(c,48)|0;e=J[b+44>>2];if(e){uc(e);J[b+44>>2]=0;f=J[a+16>>2]}c=c+1|0;if((f|0)>(c|0))continue;break}e=J[a+24>>2];if(!e)break k}uc(e)}uc(a)}De(g);fc=d+8240|0;return h|0}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0}De(g);ba(c|0);B()}function RCa(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;e=J[b>>2]}J[699344]=0;J[c+8>>2]=e;da(5295,c+12|0,c+8|0);b=J[699344];J[699344]=0;a:{b:{c:{d:{if((b|0)!=1){b=J[c+8>>2];J[c+8>>2]=0;e:{if(!b)break e;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(e)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;f=a+12|0;$(5249,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;e=0;J[699344]=0;b=_(5346,J[c+12>>2])|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break d;f:{g:{h:{if((b|0)>0)while(1){J[699344]=0;a=_(4,28)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2401368;J[a+4>>2]=0;d=J[685894];J[a+24>>2]=d;J[a+20>>2]=0;J[a+16>>2]=d;J[699344]=0;J[c+4>>2]=0;aa(5145,c+4|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;J[699344]=0;da(5347,J[c+4>>2],c+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;a=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;J[a>>2]=0;J[a+4>>2]=0;d=J[c+4>> +2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break g;d=J[c+4>>2]}else d=0;J[a+8>>2]=d;J[699344]=0;vf(f,a);a=J[699344];J[699344]=0;if((a|0)==1)break g;a=J[c+4>>2];J[c+4>>2]=0;i:{if(!a)break i;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(d)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}e=e+1|0;if((b|0)!=(e|0))continue;break}a=J[c+12>>2];J[c+12>>2]=0;if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+ +4>>2]=b;e=J[699344];J[699344]=0;if((e|0)!=1){if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}break a}b=Z()|0;a=c+12|0;break b}b=Z()|0;zc(c+4|0);a=c+12|0;break b}fc=c+16|0;return}b=Z()|0;a=c+8|0;break b}b=Z()|0;a=c+12|0;break b}b=Z()|0;a=c+12|0}zc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function Os(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=J[a+584>>2];g=J[i+64>>2];e=J[i+68>>2];if((b|0)>=2624)while(1){h=L[c+620>>1];d=L[c+618>>1];a:{if(d>>>0<=e>>>0)break a;d=d-e|0;e=h>>>d|g;if(J[a+ +608>>2]>=J[a+600>>2])pf(a);g=J[a+604>>2];J[a+604>>2]=g+1;H[g|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;g=0;if(d>>>0<9)break a;while(1){d=d-8|0;e=h>>>d|0;if(J[a+600>>2]<=(f|0))pf(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}e=e-d|0;g=(h&J[(d<<2)+95808>>2])<>2]>=J[a+600>>2])pf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=g;J[a+608>>2]=J[a+608>>2]+1;g=0;e=8}b=b-I[c+622>>1]|0;if((b|0)>2623)continue;break}b:{if((b|0)>=64){h=P(b>>> +6|0,6)+c|0;if(I[h+382>>1]!=(b&-64))break b;j=L[h+380>>1];d=L[h+378>>1];c:{if(d>>>0<=e>>>0)break c;d=d-e|0;e=j>>>d|g;if(J[a+608>>2]>=J[a+600>>2])pf(a);g=J[a+604>>2];J[a+604>>2]=g+1;H[g|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;g=0;if(d>>>0<9)break c;while(1){d=d-8|0;e=j>>>d|0;if(J[a+600>>2]<=(f|0))pf(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}e=e-d|0;g=(J[(d<<2)+95808>>2]&j)<>2]>=J[a+600>>2])pf(a);d=J[a+604>>2];J[a+ +604>>2]=d+1;H[d|0]=g;J[a+608>>2]=J[a+608>>2]+1;g=0;e=8}b=b-I[h+382>>1]|0}c=P(b,6)+c|0;b=L[c+2>>1];d=L[c>>1];d:{if(d>>>0<=e>>>0)break d;d=d-e|0;c=b>>>d|g;if(J[a+608>>2]>=J[a+600>>2])pf(a);e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=c;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;g=0;if(d>>>0<9)break d;while(1){d=d-8|0;c=b>>>d|0;if(J[a+600>>2]<=(f|0))pf(a);e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=c;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}c=b&J[(d<<2)+95808>>2];b=e-d|0;f=c<> +2]>=J[a+600>>2])pf(a);b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=f;J[a+608>>2]=J[a+608>>2]+1;f=0;b=8}J[i+68>>2]=b;J[i+64>>2]=f;return}fa(89274,70539,643,96112);B()}function Nia(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=Q(0);a=fc-368|0;fc=a;J[a+360>>2]=c;J[a+364>>2]=b;_F(a+204|0,d,a+224|0,a+220|0,a+216|0);b=Ze(a+192|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c= +b;J[a+188>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[699344]=0;d=aa(6858,a+364|0,a+360|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+188>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834, +b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=d+c}J[699344]=0;d=a+364|0;g=_(6859,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=jz(g,a+7|0,a+6|0,c,a+188|0,J[a+220>>2],J[a+216>>2],a+204|0,a+16|0,a+12|0,a+8|0,a+224|0);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+215|0]>>>7|0)d=J[a+208>>2];else d=K[a+215|0]&127; +e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;i=Q(lb(6846,c|0,J[a+188>>2],e|0));c=J[699344];J[699344]=0;f:{if((c|0)==1)break f;N[f>>2]=i;J[699344]=0;Nh(a+204|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+364|0,a+360|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+364>>2];jd(b);jd(a+204|0);fc=a+368|0;break a}}c=Z()|0;jd(b);jd(a+204|0);ba(c|0);B()}return c| +0}function JM(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;J[a>>2]=340504;e=wk(a+32|0);J[a+44>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+156>>2]=0;J[a+160>>2]=1065353216;J[a+172>>2]=0;J[a+176>>2]=0;I[a+188>>1]=0;J[a+ +208>>2]=0;J[a+212>>2]=1;J[a+200>>2]=0;J[a+204>>2]=0;J[a+192>>2]=1056964608;J[a+196>>2]=1065353216;J[a+180>>2]=1065353216;J[a+184>>2]=1065353216;J[a+216>>2]=1;J[a+236>>2]=0;J[a+240>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;d=a+220|0;b=d;J[b>>2]=0;J[b+4>>2]=0;J[a+252>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+272>>2]=0;J[699344]=0;b=_(4,24)|0;g=J[699344];J[699344]=0;f=a+36|0;a:{if((g|0)==1){b=Z()|0;xk(d);break a}d=b+24|0;J[a+272>>2]=d;J[a+264>>2]=b;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]= +0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[a+268>>2]=d;Ac(a+280|0,0,88);J[a+8>>2]=1E3;J[a+12>>2]=0;J[a+24>>2]=255;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=255;b=c;J[b+40>>2]=0;J[b+44>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+8>>2]=0;J[b+12>>2]=0;J[699344]=0;J[b>>2]=0;J[b+4>>2]=0;dp(e,b+40|0,b+32|0,b+24|0,b+16|0,b+8|0,b);b=J[699344];J[699344]=0;if((b|0)!=1){J[a+112>>2]=0;J[a+116>>2]=0;J[a+48>>2]=255;J[a+52>>2]=0;b:{if(H[a+47|0]<0){J[a+40>>2]= +0;f=J[a+36>>2];break b}H[a+47|0]=0}J[f>>2]=0;J[a+72>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+124>>2]=J[a+120>>2];fc=c+48|0;return a|0}b=Z()|0;Se(a+212|0)}c=J[a+120>>2];if(c){J[a+124>>2]=c;uc(c)}if(H[a+47|0]<0)uc(J[a+36>>2]);Jd(e);ba(b|0);B()}function fja(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=Q(0);a=fc-256|0;fc=a;J[a+248>>2]=c;J[a+252>>2]=b; +bG(a+192|0,d,a+208|0,a+207|0,a+206|0);b=Ze(a+180|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[699344]=0;d=aa(6744,a+252|0,a+248|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+176>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c= +J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=d+c}J[699344]=0;d=a+252|0;g=_(6745,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=lz(g,a+7|0,a+6|0,c,a+176|0,H[a+207|0],H[a+206|0],a+192|0,a+16|0,a+12| +0,a+8|0,a+208|0);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6747,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+203|0]>>>7|0)d=J[a+196>>2];else d=K[a+203|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;i=Q(lb(6846,c|0,J[a+176>>2],e|0));c=J[699344];J[699344]=0;f:{if((c|0)==1)break f;N[f>>2]=i;J[699344]=0;Nh(a+192|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c| +0)==1)break f;J[699344]=0;c=aa(6744,a+252|0,a+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];jd(b);jd(a+192|0);fc=a+256|0;break a}}c=Z()|0;jd(b);jd(a+192|0);ba(c|0);B()}return c|0}function Rua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-48|0;fc=d;J[a>>2]=0;a:{b:{c:{d:{e:{f=J[b+12>>2];f:{if(K[f|0]){h=Yc(f);J[699344]=0;g=ha(5213,d+20|0,d+28|0,P(h,12)+12|0,1)|0;e=J[699344];J[699344]=0;if((e|0)==1)break e;e=J[d+28>>2];b=J[b+12>>2];J[d+32>>2]=b;f=f+ +h|0;g:{if(f>>>0<=b>>>0)break g;if((c|0)==1){while(1){if(!K[b|0])break g;c=ur(d+32|0,f);J[699344]=0;b=zn(e,c);h=J[699344];J[699344]=0;if((h|0)!=1){h:{i:{if((b|0)<0){H[e|0]=0;break i}e=b+e|0;H[e|0]=0;if(b)break h}J[d>>2]=c;cg(e,2392663,d);e=Yc(e)+e|0}b=J[d+32>>2];if(f>>>0>b>>>0)continue;break g}break}e=Z()|0;hd(g);break b}while(1){if(!K[b|0])break g;b=ur(d+32|0,f);J[699344]=0;b=zn(e,b);c=J[699344];J[699344]=0;j:{if((c|0)!=1){if((b|0)>=0)break j;H[e|0]=0;e=J[d+28>>2];break g}e=Z()|0;hd(g);break b}e= +b+e|0;H[e|0]=0;if(!b){e=J[d+28>>2];break g}b=J[d+32>>2];if(f>>>0>b>>>0)continue;break}}H[e|0]=0;J[699344]=0;b=J[d+28>>2];J[d+40>>2]=0;J[d+44>>2]=0;J[d+36>>2]=0;J[d+32>>2]=2425848;ca(5638,d+16|0,d+32|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[d+32>>2]=2426484;b=J[d+44>>2];if(b){H[b|0]=0;uc(J[d+44>>2])}J[d+44>>2]=0;nd(d+32|0);J[699344]=0;aa(5153,a|0,d+16|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){a=J[d+16>>2];J[d+16>>2]=0;k:{if(!a)break k;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344]; +J[699344]=0;if((c|0)==1)break a;if(b)break k;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}hd(g);break f}e=Z()|0;zc(d+16|0);hd(g);break b}J[699344]=0;J[d+32>>2]=0;aa(5153,a|0,d+32|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;a=J[d+32>>2];J[d+32>>2]=0;if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+48|0;return}e=Z()|0;break b}e=Z()|0;rh(d+ +32|0);hd(g);break b}e=Z()|0;zc(d+32|0)}zc(a);ba(e|0);B()}ea(0)|0;Bc();B()}function pfb(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=Q(0),k=0,l=0,m=0,n=0;a:{if(J[a+632>>2]==8)break a;kc[J[J[a>>2]+136>>2]](a,340208)|0;fs(a);e=ID(a,a+88|0);g=J[a+16>>2];f=J[a+12>>2];m=O[c>>3];n=O[d>>3];c=fc-144|0;fc=c;b:{c:{d:{e:{f:{g:{if(!J[e+4>>2]){d=Mx(c+140|0,g+48|0);J[699344]=0;Yk(d,g+52|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;cs(d,c+80|0);a=J[699344];J[699344]=0;if((a| +0)==1)break e;O[c+72>>3]=m;O[c+64>>3]=n;J[699344]=0;h=aa(2259,c+60|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;bs(h);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;Yk(h,g+56|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;ce(h,c+72|0,c- -64|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;O[c+48>>3]=Q(O[c+80>>3]);O[c+40>>3]=Q(O[c+88>>3]);O[c+32>>3]=Q(O[c+96>>3]);O[c+24>>3]=Q(O[c+104>>3]);O[c+16>>3]=Q(O[c+112>>3]);O[c+8>>3]=Q(O[c+120>>3]);a=J[J[f>>2]+124>>2]; +J[699344]=0;k=a;a=c+48|0;i=c+40|0;l=c+32|0;va(k|0,f|0,a|0,i|0,l|0,c+24|0,c+16|0,c+8|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;J[g+2940>>2]=J[f+160>>2];J[c+48>>2]=J[b>>2];N[c+40>>2]=O[c+72>>3];N[c+32>>2]=O[c+64>>3];b=J[J[f>>2]+108>>2];J[699344]=0;ha(b|0,f|0,a|0,i|0,l|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[c+48>>2]=0;J[c+40>>2]=0;h:{while(1){i:{J[c+32>>2]=0;a=J[J[f>>2]+200>>2];J[699344]=0;a=ha(a|0,f|0,c+32|0,c+48|0,c+40|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;if(!a)break h; +i=J[c+32>>2];if(!i)continue;J[699344]=0;j=N[c+40>>2];j:{if(Q(R(j))>2];k:{if(Q(R(j))>2]+4>>2]](e)}return 0}function Mia(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;a=fc-368|0;fc=a;J[a+360>>2]=c;J[a+364>>2]=b;_F(a+204|0,d,a+224|0,a+220|0,a+216|0);b=Ze(a+192|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[699344]=0;d=aa(6858,a+364|0,a+360|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+188>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+ +11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+188>>2]=d+c}J[699344]=0;d=a+364|0;g=_(6859,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=jz(g,a+7|0,a+6|0,c, +a+188|0,J[a+220>>2],J[a+216>>2],a+204|0,a+16|0,a+12|0,a+8|0,a+224|0);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+215|0]>>>7|0)d=J[a+208>>2];else d=K[a+215|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;i=+Da(6849,c|0,J[a+188>>2],e|0);c=J[699344];J[699344]=0;f:{if((c|0)==1)break f;O[f>>3]=i;J[699344]=0;Nh(a+204|0, +a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+364|0,a+360|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+364>>2];jd(b);jd(a+204|0);fc=a+368|0;break a}}c=Z()|0;jd(b);jd(a+204|0);ba(c|0);B()}return c|0}function y3(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc+-64|0;fc=c;d=K[a+11|0];e=d<<24>>24<0;a:{b:{c:{d:{e:{b=J[a+4>>2];f:{if(!(e?b:d))break f;g:{if(!e){J[c+48>>2]=J[a+8>>2];b=J[a+4>>2];J[c+40>>2]=J[a>>2];J[c+44>>2]=b;break g}Ve(c+ +40|0,J[a>>2],b)}J[699344]=0;ca(2985,c+52|0,c+40|0,0);b=J[699344];J[699344]=0;h:{i:{j:{if((b|0)!=1){if(H[c+51|0]<0)uc(J[c+40>>2]);b=J[c+52>>2];if((b|0)!=J[c+56>>2]){d=0;while(1){J[699344]=0;_(44,P(d,12)+b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;d=d+1|0;b=J[c+52>>2];if(d>>>0<(J[c+56>>2]-b|0)/12>>>0)continue;break}}if(H[a+11|0]<0)break i;J[c+24>>2]=J[a+8>>2];b=J[a+4>>2];J[c+16>>2]=J[a>>2];J[c+20>>2]=b;break h}d=Z()|0;if(H[c+51|0]>=0)break a;uc(J[c+40>>2]);ba(d|0);B()}d=Z()|0;break b}d=J[a+4>> +2];b=J[a>>2];J[699344]=0;ca(15,c+16|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break e}J[699344]=0;da(3035,c+28|0,c+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;if(H[c+27|0]<0)uc(J[c+16>>2]);b=J[c+28>>2];if((b|0)!=J[c+32>>2]){d=0;while(1){J[699344]=0;da(3036,P(d,12)+b|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break c;d=d+1|0;b=J[c+28>>2];if(d>>>0<(J[c+32>>2]-b|0)/12>>>0)continue;break}}J[c+12>>2]=0;J[c+8>>2]=0;d=J[a>>2];b=J[a+4>>2];e=K[a+11|0];J[699344]=0;f=a;a=e<<24>>24<0;ma(1637,(a?d:f)| +0,(a?b:e)|0,c+12|0,c+8|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break c;a=mb(J[c+12>>2])|0;if(a>>>0>=4294963201)J[698583]=0-a;a=J[c+12>>2];if(a)uc(a);e=J[c+28>>2];if(e){b=J[c+32>>2];d=e;if((b|0)!=(d|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((a|0)!=(e|0))continue;break}d=J[c+28>>2]}J[c+32>>2]=e;uc(d)}e=J[c+52>>2];if(!e)break f;b=J[c+56>>2];d=e;if((b|0)!=(d|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((a|0)!=(e|0))continue;break}d=J[c+52>>2]}J[c+56>>2]=e;uc(d)}fc=c- -64|0;return}d= +Z()|0;break b}d=Z()|0;if(H[c+27|0]>=0)break b;uc(J[c+16>>2]);break b}d=Z()|0;Ag(c+28|0)}Ag(c+52|0)}ba(d|0);B()}function kM(a,b,c){var d=0,e=0;d=J[c+52>>2];a:{b:{c:{d:{if(J[c+56>>2]==1){e=J[b+88>>2];b=J[b+84>>2];if(d)break b;if(!K[c+50|0])break c;b=P((e-b|0)/144|0,144)+b|0;break d}e=J[b+100>>2];b=J[b+96>>2];if(d)break b;if(!K[c+50|0])break c;b=P((e-b|0)/144|0,144)+b|0}b=b-144|0;O[a>>3]=O[b>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>> +3];c=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=c;c=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=c;J[a+64>>2]=J[b- -64>>2];c=J[b+68>>2];J[a+68>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;O[a+72>>3]=O[b+72>>3];O[a+80>>3]=O[b+80>>3];O[a+88>>3]=O[b+88>>3];O[a+96>>3]=O[b+96>>3];O[a+104>>3]=O[b+104>>3];O[a+112>>3]=O[b+112>>3];c=J[b+124>>2];J[a+120>>2]=J[b+120>>2];J[a+124>>2]=c;c=J[b+132>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=c;J[a+136>>2]=J[b+136>>2];c=a;a=J[b+140>>2];J[c+140>>2]=a;if(!a)break a;J[a+4>>2]=J[a+4>> +2]+1;return}J[a>>2]=0;J[a+4>>2]=0;J[a+52>>2]=-1;H[a+47|0]=0;H[a+48|0]=0;H[a+49|0]=0;H[a+50|0]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;Ac(a+56|0,0,67);J[a+128>>2]=0;J[a+132>>2]=0;J[a+124>>2]=-1;J[a+136>>2]=0;J[a+140>>2]=0;return}b=(P(d,144)+b|0)-144|0;O[a>>3]=O[b>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3];c=J[b+52>>2];J[a+48>>2]=J[b+48>>2]; +J[a+52>>2]=c;c=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=c;J[a+64>>2]=J[b- -64>>2];c=J[b+68>>2];J[a+68>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;O[a+72>>3]=O[b+72>>3];O[a+80>>3]=O[b+80>>3];O[a+88>>3]=O[b+88>>3];O[a+96>>3]=O[b+96>>3];O[a+104>>3]=O[b+104>>3];O[a+112>>3]=O[b+112>>3];c=J[b+124>>2];J[a+120>>2]=J[b+120>>2];J[a+124>>2]=c;c=J[b+132>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=c;J[a+136>>2]=J[b+136>>2];c=a;a=J[b+140>>2];J[c+140>>2]=a;if(!a)break a;J[a+4>>2]=J[a+4>>2]+1}}function dja(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;a=fc-256|0;fc=a;J[a+248>>2]=c;J[a+252>>2]=b;bG(a+192|0,d,a+208|0,a+207|0,a+206|0);b=Ze(a+180|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;H[a+7|0]=1;H[a+6|0]=69;while(1){d:{J[699344]=0;d=aa(6744,a+252|0,a+248|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+176>> +2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+176>>2]=d+c}J[699344]=0;d=a+252|0;g=_(6745,d|0)|0;h=J[699344];J[699344]=0;if((h|0)== +1)break d;J[699344]=0;g=lz(g,a+7|0,a+6|0,c,a+176|0,H[a+207|0],H[a+206|0],a+192|0,a+16|0,a+12|0,a+8|0,a+208|0);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6747,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+203|0]>>>7|0)d=J[a+196>>2];else d=K[a+203|0]&127;e:{if(!d|!K[a+7|0])break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;i=+Da(6849,c|0,J[a+176>>2],e|0);c=J[699344];J[699344]=0;f:{if((c|0)==1)break f; +O[f>>3]=i;J[699344]=0;Nh(a+192|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6744,a+252|0,a+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];jd(b);jd(a+192|0);fc=a+256|0;break a}}c=Z()|0;jd(b);jd(a+192|0);ba(c|0);B()}return c|0}function FP(a,b,c,d,e,f,g,h,i){var j=0;j=Dc(44);a:{if(j){J[j+32>>2]=0;J[j+28>>2]=h;J[j+24>>2]=g;J[j+20>>2]=f;J[j+16>>2]=e;J[j+12>>2]=d;J[j+8>>2]=c;J[j+4>>2]=b;J[j>>2]=a;J[j+40>>2]=65536;a=g+7>>> +3|0;J[j+36>>2]=a;h=P(a,P(e,f));b:{if(i){a=Vi(0,h);break b}g=0;e=fc-16|0;fc=e;a=Dc(68);c:{if(!a){a=0;break c}J[a+52>>2]=0;J[a+56>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+60>>2]=0;J[a+64>>2]=-1;J[a>>2]=11;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;d:{c=Dc(32);if(!c){if(!(K[a+4|0]&8))break d;b=J[a+12>>2];if(!b)break d;uc(b);J[a+12>>2]=0;break d}H[c+8|0]=0;J[c>>2]=-1;J[c+4>>2]=0;J[a+56>>2]=c;d=c+8|0;b=fc-48|0;fc=b;f=K[2622639]|K[2622640]<<8|(K[2622641]<<16|K[2622642]<<24);H[b+31|0]=f;H[b+ +32|0]=f>>>8;H[b+33|0]=f>>>16;H[b+34|0]=f>>>24;f=J[655659];J[b+24>>2]=J[655658];J[b+28>>2]=f;f=J[655657];J[b+16>>2]=J[655656];J[b+20>>2]=f;f=b+16|12;e:{f:{while(1){dT(f);H[b+15|0]=0;if((Wa(-100,b+16|0,b+15|0,1)|0)==-44)break f;g=g+1|0;if((g|0)!=100)continue;break}break e}of(d?d:2796832,b+16|0)}fc=b+48|0;J[e>>2]=438;b=Cv(d,706,e);J[c>>2]=b;if((b|0)<0){if(!(K[a+4|0]&8))break d;b=J[a+12>>2];if(!b)break d;uc(b);J[a+12>>2]=0;break d}if(QS(d))J[c+4>>2]=J[c+4>>2]|1;if(!J[a+12>>2]){b=Dc(8208);J[a+12>>2]=b; +g:{if(b){d=J[a+4>>2]|8;c=8192;break g}b=a+32|0;J[a+12>>2]=b;d=J[a+4>>2];c=1}J[a+28>>2]=0;J[a+20>>2]=c;J[a+52>>2]=2642248;b=b+16|0;J[a+24>>2]=b;J[a+16>>2]=b;J[a+4>>2]=d|2;break c}fa(205938,198694,703,206461);B()}uc(a);a=0}fc=e+16|0}J[j+32>>2]=a;h:{if(!a)break h;i:{j:{if((Xg(a,h-1|0,0)|0)<0)break j;g=J[j+32>>2];a=J[g+8>>2];if(a&7)break i;b=J[g+64>>2];if(!((b|0)<0|(b|0)>J[g+60>>2])){J[g+8>>2]=a|4;break j}J[g+4>>2]=J[g+4>>2]|32;a=J[g+28>>2];J[g+28>>2]=a-1;k:{if((a|0)<=0){if((bd(g,0)|0)!=-1)break k;break j}J[g+ +60>>2]=J[g+60>>2]+1;a=J[g+24>>2];J[g+24>>2]=a+1;H[a|0]=0}if((Xg(J[j+32>>2],0,0)|0)>=0)break a}g=J[j+32>>2];if(!g)break h}Pf(g)}uc(j)}j=0}return j}function jM(a,b,c){var d=0,e=0;d=J[c+52>>2];a:{b:{c:{d:{if(J[c+56>>2]==1){e=J[b+88>>2];b=J[b+84>>2];if((((e-b|0)/144|0)-1|0)!=(d|0))break c;if(K[c+50|0])break d;break a}e=J[b+100>>2];b=J[b+96>>2];if((((e-b|0)/144|0)-1|0)!=(d|0))break c;if(!K[c+50|0])break a}O[a>>3]=O[b>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>> +3];O[a+40>>3]=O[b+40>>3];c=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=c;c=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=c;J[a+64>>2]=J[b+64>>2];c=J[b+68>>2];J[a+68>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;O[a+72>>3]=O[b+72>>3];O[a+80>>3]=O[b+80>>3];O[a+88>>3]=O[b+88>>3];O[a+96>>3]=O[b+96>>3];O[a+104>>3]=O[b+104>>3];O[a+112>>3]=O[b+112>>3];c=J[b+124>>2];J[a+120>>2]=J[b+120>>2];J[a+124>>2]=c;c=J[b+132>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=c;J[a+136>>2]=J[b+136>>2];c=a;a=J[b+140>>2];J[c+140>>2]=a;if(!a)break b; +J[a+4>>2]=J[a+4>>2]+1;return}b=P(d,144)+b|0;O[a>>3]=O[b+144>>3];O[a+8>>3]=O[b+152>>3];O[a+16>>3]=O[b+160>>3];O[a+24>>3]=O[b+168>>3];O[a+32>>3]=O[b+176>>3];O[a+40>>3]=O[b+184>>3];c=J[b+196>>2];J[a+48>>2]=J[b+192>>2];J[a+52>>2]=c;c=J[b+204>>2];J[a+56>>2]=J[b+200>>2];J[a+60>>2]=c;J[a+64>>2]=J[b+208>>2];c=J[b+212>>2];J[a+68>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;O[a+72>>3]=O[b+216>>3];O[a+80>>3]=O[b+224>>3];O[a+88>>3]=O[b+232>>3];O[a+96>>3]=O[b+240>>3];O[a+104>>3]=O[b+248>>3];O[a+112>>3]=O[b+256>>3];c=J[b+ +268>>2];J[a+120>>2]=J[b+264>>2];J[a+124>>2]=c;c=J[b+276>>2];J[a+128>>2]=J[b+272>>2];J[a+132>>2]=c;J[a+136>>2]=J[b+280>>2];c=a;a=J[b+284>>2];J[c+140>>2]=a;if(!a)break b;J[a+4>>2]=J[a+4>>2]+1}return}J[a>>2]=0;J[a+4>>2]=0;J[a+52>>2]=-1;H[a+47|0]=0;H[a+48|0]=0;H[a+49|0]=0;H[a+50|0]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;Ac(a+56|0,0,67);J[a+128>>2]=0;J[a+132>>2]=0;J[a+124>>2]=-1;J[a+136>>2]=0;J[a+140>>2]=0}function ZC(a, +b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{g=J[b>>2];if(g>>>0>=c>>>0)break a;m=K[a+36|0];f=J[a+8>>2];i=J[f+60>>2];b:{c:{d:{e:{f:{g:{while(1){J[b>>2]=g+1;g=K[g|0];h=H[a+36|0];H[a+36|0]=h+1;H[(a+h|0)+37|0]=g;g=H[g+745808|0];if(!g)break e;i=g+(i<<5)|0;j=74;h=0;k=0;while(1){g=h;h=j+k>>1;if((g|0)==(h|0))break e;h:{g=h;l=J[(g<<2)+745424>>2];if((l|0)<=(i|0)){k=g;g=j;if((i|0)<=(l|0))break h}j=g;if((g|0)==(k|0))break e;continue}break}i:{j=H[h+745728|0];switch(j+1|0){case 0:break d;case 2:case 3:break g; +default:break i}}g=J[b>>2];if(g>>>0>>0)continue;break}J[f+60>>2]=i;switch(j+1|0){case 1:break a;case 0:break c;default:break f}}J[f+60>>2]=0}j:{k:{l:{m:switch(d-1|0){case 0:n:{o:{p:{c=H[h+745264|0];switch(c+1|0){case 0:break k;case 2:case 3:break o;case 17:break p;default:break n}}if(!K[f+50|0])break c;c=H[f+52|0];if((c|0)<=1)H[f+53|0]=c;H[f+52|0]=2;break l}if(!(L[(J[f+64>>2]<<1)+744396>>1]>>>c&1))break k;H[f+50|0]=c;break l}if(!(L[(J[f+64>>2]<<1)+744396>>1]>>>c&1))break k;H[f+48|0]=c;break l; +case 2:q:{r:{s:{t:{u:{v:{c=H[h+745344|0];switch(c+1|0){case 0:break k;case 35:break r;case 2:case 34:break s;case 3:break t;case 18:break u;case 17:break v;default:break q}}if(!K[f+50|0])break c;c=H[f+52|0];if((c|0)<=1)H[f+53|0]=c;H[f+52|0]=2;break l}if(!K[f+51|0])break c;c=H[f+52|0];if((c|0)<=1)H[f+53|0]=c;H[f+52|0]=3;break l}if(!J[f+64>>2])break k}H[f+49|0]=c;break l}H[f+50|0]=c;break l}if(!J[f+64>>2])break k;H[f+51|0]=c;break l;case 1:break m;default:break c}if((h|0)!=48)break k}c=J[e>>2];if((c| +0)<=0){H[a+36|0]=0;return}switch(c-18|0){case 1:break j;case 0:break b;default:break a}}J[e>>2]=19}J[a+256>>2]=0;break a}i=0}J[f+60>>2]=i}J[e>>2]=18}c=H[a+36|0];if((c|0)<2)break a;d=c-1|0;g=d&255;e=c-m|0;c=e<<24>>24;if((g|0)>(c|0)){d=e-d|0;H[a+254|0]=d;xc(a+222|0,a+38|0,0-(d<<24>>24)|0);g=c}J[b>>2]=J[b>>2]-g;H[a+36|0]=1}}function Ck(a,b,c,d,e,f,g,h,i,j){var k=0,l=0,m=0;k=J[b+88>>2];H[k+49|0]=0;H[k+50|0]=0;H[k+48|0]=i;H[k+47|0]=h;H[k+46|0]=g;H[k+45|0]=f;H[k+44|0]=e;J[k+40>>2]=d;J[k+36>>2]=c;a:{b:switch(f| +0){case 0:case 8:l=e>>>0>8?2:1;break a;case 2:case 10:l=e>>>0>8?6:3;break a;case 3:l=1;break a;case 4:case 12:l=e>>>0>8?4:2;break a;case 6:case 14:break b;default:break a}l=e>>>0>8?8:4}c:{i=P(c,l);g=P(i,d);f=J[k+1172>>2];d:{if((g|0)!=(f|0)){h=J[k+1176>>2];if(h){kc[J[a+156>>2]](h,f);J[k+1176>>2]=0}if(!g)break d;f=kc[J[a+152>>2]](g)|0;J[k+1176>>2]=f;if(f)break d;break c}if(!g)break d;h=J[k+1176>>2];f=h;m=g&-4;if(m){f=(m-1&-4)+4|0;f=Ac(h,0,f)+f|0}if(g+h>>>0<=f>>>0)break d;while(1){H[f|0]=0;f=f+1|0;if(f>>> +0>2]>>>0)continue;break}}J[k+1172>>2]=g;J[k+1168>>2]=i;J[k+1164>>2]=l;if(!K[k+53|0])H[k+53|0]=e;if(!K[k+54|0])H[k+54|0]=e;if(!(K[b+44|0]|(!c|!d))){J[b+60>>2]=d;J[b+56>>2]=0;J[b+52>>2]=c;J[b+48>>2]=0}if(L[b+28>>1]){J[b+64>>2]=0;J[b+68>>2]=0;I[b+70>>1]=0;I[b+72>>1]=0;I[b+74>>1]=0;I[b+76>>1]=0}if(!j)return 0;J[b+80>>2]=0;J[b+84>>2]=0;H[k+55|0]=0;H[k+56|0]=0;f=K[a+308|0];H[k+57|0]=f;H[k+58|0]=K[a+309|0];H[k+59|0]=K[a+310|0];H[k+60|0]=K[a+311|0];H[k+61|0]=K[a+312|0];b=J[k+1144>>2];if(b){c= +J[k+1148>>2];if(c){kc[J[a+156>>2]](c,b);J[k+1148>>2]=0;f=K[a+308|0]}J[k+1144>>2]=0}if(f&255)J[k+1104>>2]=J[a+2192>>2];if(K[a+309|0]){J[k+1108>>2]=J[a+2196>>2];J[k+1112>>2]=J[a+2200>>2];J[k+1116>>2]=J[a+2204>>2];J[k+1120>>2]=J[a+2208>>2];J[k+1124>>2]=J[a+2212>>2];J[k+1128>>2]=J[a+2216>>2];J[k+1132>>2]=J[a+2220>>2];J[k+1136>>2]=J[a+2224>>2]}if(K[a+310|0])H[k+1140|0]=K[a+2228|0];if(K[a+311|0]){b=J[a+2232>>2];if(b){b=kc[J[a+152>>2]](b)|0;J[k+1148>>2]=b;if(!b)break c;xc(b,J[a+2236>>2],J[a+2232>>2]);b= +J[a+2232>>2]}else b=0;J[k+1144>>2]=b}if(K[a+312|0]){I[k+1156>>1]=L[a+2240>>1];I[k+1158>>1]=L[a+2242>>1];I[k+1160>>1]=L[a+2244>>1]}return 0}Jc(a,1,0,0);return 1}function sab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+ +12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]= +i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d; +i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Rl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function rbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g| +0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g| +0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b, +d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Xl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function kab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]= +3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>> +0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+ +20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h| +0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Ql(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function dm(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=fc-48|0;fc=g;J[a+8>>2]=0;i=J[a+4>>2];if(i){J[J[a>>2]>>2]=254785;J[J[a>>2]+4>>2]=254785;J[J[a>>2]+8>>2]=254785;J[J[a>>2]+12>>2]=254785;J[J[a>>2]+16>>2]=254785}a:{if(!d)break a;e=K[c|0];if(!e)break a;j=6;if(!b)break a;f=K[b|0];if(!f)break a;J[g+24>>2]=0;J[g+28>>2]=0;J[g+16>>2]=0;J[g+20>>2]= +0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;while(1){b:{c:{d:{h=f&255;if((h|0)!=43){if(!h)break d;h=K[b+1|0];break c}h=K[b+1|0];if(h)break c;k=1;h=0;break b}e:{if((d|0)<=0){d=0;e=0;break e}i=c+d|0;while(1){f=c;while(1){f:{if(K[((e&248)>>>3|0)+g|0]>>>(e&7)&1){h=f;break f}e=K[f+1|0];h=f+1|0;f=h;if(e)continue}break}e=J[a+8>>2];g:{if((e|0)!=J[a+4>>2])break g;J[g+44>>2]=0;if((e|0)==-1)break g;if((e|0)==536870911){j=64;break a}b=((e>>>1|0)+e|0)+5|0;b=b>>>0>>0?536870911:b>>>0>536870911?536870911: +b;l=a,m=_c(J[a+12>>2],4,e,b,J[a>>2],g+44|0),J[l>>2]=m;j=J[g+44>>2];if(j)break a;J[a+4>>2]=b;e=J[a+8>>2]}J[a+8>>2]=e+1;J[J[a>>2]+(e<<2)>>2]=c>>>0>=h>>>0?254785:c;f=K[h|0];h:{i:{if(k){d=0;b=h;if(!(f&255)){e=0;c=b;break h}while(1){j:{if(!(K[((f&248)>>>3|0)+g|0]>>>(f&7)&1)){e=f;c=b;break j}e=0;H[b|0]=0;f=K[b+1|0];c=b+1|0;b=c;if(f)continue}break}if(c>>>0<=h>>>0)break h;break i}if(!(f&255)){e=0;c=h;d=0;break h}H[h|0]=0;c=h+1|0;e=K[h+1|0]}d=!(e&255)}if(e&255?c>>>0>>0:0)continue;break}i=J[a+4>>2];e=J[a+ +8>>2]}b=d+e|0;k:{if(b>>>0>>0)break k;J[g+44>>2]=0;if(b+1>>>0<=i>>>0)break k;j=64;if((i|0)==536870911)break a;b=((i>>>1|0)+i|0)+5|0;b=b>>>0>>0?536870911:b>>>0>536870911?536870911:b;l=a,m=_c(J[a+12>>2],4,i,b,J[a>>2],g+44|0),J[l>>2]=m;j=J[g+44>>2];if(j)break a;J[a+4>>2]=b;e=J[a+8>>2]}f=J[a>>2];l:{if(!d){b=e;break l}b=e+1|0;J[a+8>>2]=b;J[(e<<2)+f>>2]=254785;f=J[a>>2]}j=0;J[(b<<2)+f>>2]=0;break a}j=((f&248)>>>3|0)+g|0;H[j|0]=K[j|0]|1<<(f&7)}b=b+1|0;f=h;continue}}fc=g+48|0;return j}function bab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g| +0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g| +0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b, +d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Pl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function U9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]= +3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>> +0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+ +20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h| +0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Ol(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Sab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>> +2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+ +4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d; +i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Ul(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Jab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g| +0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g| +0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b, +d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Tl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Aab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]= +3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>> +0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+ +20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h| +0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Sl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function rH(a,b){var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;if(!K[b+32|0])Sp(b,0);J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d=J[b+8>>2];d:{if(!d|!J[d+8>>2])break d;J[699344]=0;d=c+20|0;ca(5401,d|0,b|0,0);e=J[699344];J[699344]=0;if((e|0)==1)break c;e=J[c+20>>2];if(!e){wc(d);break d}d=J[e+8>>2];wc(c+20|0);if(!d)break d;J[c+20>>2]=0;J[c+24>>2]=J[685894];e:{b=J[b+ +8>>2];f:{g:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break g;b=Z()|0;break f}J[c+12>>2]=0}J[699344]=0;aa(5153,c+20|0,c+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}b=Z()|0;zc(c+12|0)}wc(c+20|0);break b}b=J[c+20>>2];J[c+24>>2]=J[(b?b+12|0:2743576)>> +2];b=0;J[699344]=0;da(6232,c+12|0,c+20|0);d=J[699344];J[699344]=0;h:{i:{j:{if((d|0)!=1){d=J[c+12>>2];if(d)b=J[d+8>>2];wc(c+12|0);d=b;b=J[c+20>>2];b=d+J[(b?b+12|0:2743576)>>2]|0;d=b-1|0;while(1){e=K[b|0];if(!e|(e|0)==35|(e|0)==63)break j;d=(e|0)==47?b:d;b=b+1|0;continue}}b=Z()|0;break i}J[699344]=0;d=ga(5339,c+12|0,d+1|0,(d^-1)+b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d>>2];k:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break k;b=Z()|0;wc(d); +break i}J[c+28>>2]=0}J[699344]=0;aa(5153,a|0,c+28|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break h;J[699344]=0;e=J[b+4>>2]-1|0;J[b+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break a}b=Z()|0;zc(c+28|0);wc(d);break i}b=Z()|0}wc(c+20|0);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(d);wc(c+20|0)}fc=c+32|0;return}b=Z()|0}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function ofb(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=Q(0),l=0,m=0;a:{if(J[a+632>>2]==8)break a;kc[J[J[a>>2]+136>>2]](a,340208)|0;J[a+508>>2]=0;fs(a);e=ID(a,a+88|0);g=J[a+16>>2];f=J[a+12>>2];l=O[c>>3];m=O[d>>3];c=fc-144|0;fc=c;b:{c:{d:{e:{f:{g:{if(!J[e+4>>2]){d=Mx(c+140|0,g+48|0);J[699344]=0;Yk(d,g+52|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;cs(d,c+80|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;O[c+72>>3]=l;O[c+64>>3]=m;J[699344]=0;h=aa(2259,c+60|0,d|0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break f;J[699344]=0;bs(h);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;Yk(h,g+56|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;ce(h,c+72|0,c- -64|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;O[c+48>>3]=Q(O[c+80>>3]);O[c+40>>3]=Q(O[c+88>>3]);O[c+32>>3]=Q(O[c+96>>3]);O[c+24>>3]=Q(O[c+104>>3]);O[c+16>>3]=Q(O[c+112>>3]);O[c+8>>3]=Q(O[c+120>>3]);a=J[J[f>>2]+124>>2];J[699344]=0;i=a;a=c+48|0;j=c+40|0;va(i|0,f|0,a|0,j|0,c+32|0,c+24|0,c+16|0,c+8|0)|0;i=J[699344]; +J[699344]=0;if((i|0)==1)break g;J[g+2940>>2]=J[f+160>>2];N[c+48>>2]=O[c+72>>3];N[c+40>>2]=O[c+64>>3];i=J[J[f>>2]+88>>2];J[699344]=0;ha(i|0,f|0,b|0,a|0,j|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;J[c+48>>2]=0;J[c+40>>2]=0;h:{while(1){i:{J[c+32>>2]=0;a=J[J[f>>2]+200>>2];J[699344]=0;a=ha(a|0,f|0,c+32|0,c+48|0,c+40|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;if(!a)break h;j=J[c+32>>2];if(!j)continue;J[699344]=0;k=N[c+40>>2];j:{if(Q(R(k))> +2];k:{if(Q(R(k))>2]+4>>2]](e)}return 0}function yab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+ +12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1: +h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>> +2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c, +d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Rl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function xbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>> +2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h= +J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i); +h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Xl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function wab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2]; +g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i= +J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+ +4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Rl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function vbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a; +J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]= +g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]| +0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>> +2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Xl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function uab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]= +h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+ +88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+ +12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Rl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function tbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k| +0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i); +h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a, +c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Xl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function qab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>> +2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>> +2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<= +M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e, +J[c+4>>2]);Ql(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function oab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+ +88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]| +0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d, +m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Ql(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function mab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)> +(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>> +2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue; +break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Ql(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function iab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+ +1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j= +J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d; +if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Pl(e, +J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function gab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i| +0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<= +M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>> +2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Pl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function dab(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;if(!(!K[a+ +1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>> +2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+ +8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+ +4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Pl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Z9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!= +2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j); +g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>> +2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Ol(e,J[f>>2],J[f+4>>2], +J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Yab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>> +2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c; +if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632; +J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Ul(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function X9a(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;if(!(!K[a+1160|0]| +J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j- +i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]= +m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2]; +g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Ol(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Wab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+ +104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>> +2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>> +0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Ul(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a, +c))break a;if(Xc(b,d))continue;break}}}function Uab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g| +0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>> +2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>> +2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Ul(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Pab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+ +100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<= +M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632; +J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)< +(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Tl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Nab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>> +3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h; +l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911? +-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Tl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a; +if(Xc(b,d))continue;break}}}function Lab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)? +g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h= +vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+ +8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Tl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Hab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100| +0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+ +24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+ +28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b, +d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Sl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Eab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]); +J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+ +12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>> +2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Sl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue; +break}}}function Cab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a; +g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3); +J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a, +c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Sl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function $9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>> +2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+ +24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2]; +I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if(Xc(b,d))continue;break a}break}if((g| +0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Ol(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function qvb(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;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;if(e){w=e-2|0;x=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];f=a+8|0;g=g+8|0;a:{if(n>>>0>w>>>0)break a;k=n?(n|0)==(w|0)?d:b:c;j=!n&x;if(!j){if(k>>>0<2)break a; +p=j?0:f;q=a+6|0;r=a+4|0;s=a+2|0;t=a+14|0;u=a+12|0;v=a+10|0;j=1;o=k<<1;while(1){i=L[a>>1];b:{if((i|0)==L[p>>1]){I[g>>1]=i;break b}i=K[a|0]|K[a+1|0]<<8;l=i>>>8|0;h=K[p|0]|K[p+1|0]<<8;i=((i<<8|l)&65535)+((k+(P(((h<<8|h>>>8)&65535)-((l|i<<8)&65535)|0,j)<<1)|0)/(o|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[s>>1];c:{if((h|0)==L[v>>1]){I[i>>1]=h;break c}h=K[s|0]|K[s+1|0]<<8;m=h>>>8|0;l=K[v|0]|K[v+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((m|h<<8)&65535)|0,j)<<1)|0)/(o|0)| +0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[r>>1];d:{if((h|0)==L[u>>1]){I[i>>1]=h;break d}h=K[r|0]|K[r+1|0]<<8;m=h>>>8|0;l=K[u|0]|K[u+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((m|h<<8)&65535)|0,j)<<1)|0)/(o|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+6|0;h=L[q>>1];e:{if((h|0)==L[t>>1]){I[i>>1]=h;break e}h=K[q|0]|K[q+1|0]<<8;m=h>>>8|0;l=K[t|0]|K[t+1|0]<<8;h=((h<<8|m)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((m|h<<8)&65535)|0,j)<<1)|0)/(o|0)|0)&65535;h=h<<8|h>>>8;H[i| +0]=h;H[i+1|0]=h>>>8}g=g+8|0;j=j+1|0;if((k|0)!=(j|0))continue;break}break a}if(k>>>0<2)break a;j=k-1|0;o=j&1;if((k|0)!=2){k=j&-2;j=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a+4>>1];I[g+14>>1]=L[a+6>>1];g=g+16|0;j=j+2|0;if((k|0)!=(j|0))continue;break}}if(!o)break a;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];g=g+8|0}n=n+1|0;if((n|0)!=(e|0))continue;break}}return 0}function ny(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;if(!J[a+4>>2])return;c=vc(976);J[699344]=0;j=na(160,c|0,a|0,0,1,1)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(J[j+4>>2]){b=L[a+26>>1];i=P(J[a+16>>2]-1|0,(b|0)==24?3:1);e=i+J[a+56>>2]|0;c=0;f=(i|0)<0|J[a+20>>2]<=0;g=J[j+56>>2];a:{b:{c:{b=b-8|0;if(b){if((b|0)==16)break c;break b}if(f)break a;b=i+1|0;f=b&-4;n=b&3;while(1){d=0;c=0;if(i>>>0>=3)while(1){H[d+g|0]=K[e-d|0];b=d|1;H[b+g|0]=K[e-b|0];b=d|2;H[b+g|0]=K[e-b|0];b=d|3;H[b+g|0]=K[e-b|0];d=d+4|0; +c=c+4|0;if((f|0)!=(c|0))continue;break}c=0;if(n)while(1){H[d+g|0]=K[e-d|0];d=d+1|0;c=c+1|0;if((n|0)!=(c|0))continue;break}b=J[a+52>>2];g=b+g|0;e=b+e|0;h=h+1|0;if((h|0)>2])continue;break}break a}if(f)break a;b=(i>>>0)/3|0;n=b&1;f=b+1&2147483646;while(1){c=0;d=0;if(i>>>0>=3)while(1){k=c+g|0;b=e-c|0;H[k|0]=K[b|0];H[k+1|0]=K[b+1|0];H[k+2|0]=K[b+2|0];b=b-3|0;H[k+3|0]=K[b|0];H[k+4|0]=K[b+1|0];H[k+5|0]=K[b+2|0];c=c+6|0;d=d+2|0;if((f|0)!=(d|0))continue;break}if(!n){d=c+g|0;b=e-c|0;H[d|0]=K[b|0];H[d+ +1|0]=K[b+1|0];H[d+2|0]=K[b+2|0]}b=J[a+52>>2];g=b+g|0;e=b+e|0;h=h+1|0;if((h|0)>2])continue;break}break a}if(f)break a;while(1){d=0;while(1){jn(j,d,c,Ij(a,i-d|0,c));b=(d|0)!=(i|0);d=d+1|0;if(b)continue;break}c=c+1|0;if((c|0)>2])continue;break}}g=J[j+964>>2];d:{if(!g)break d;i=J[j+20>>2];l=J[j+16>>2];b=Dc(P(i,l));if(!b)break d;if(!((i|0)<=0|(l|0)<=0)){d=l&-4;k=l&3;m=(g+l|0)-1|0;n=l>>>0<4;c=b;while(1){e=0;h=0;if(!n)while(1){H[c+e|0]=K[m-e|0];f=e|1;H[f+c|0]=K[m-f|0];f=e|2;H[f+c|0]=K[m- +f|0];f=e|3;H[f+c|0]=K[m-f|0];e=e+4|0;h=h+4|0;if((d|0)!=(h|0))continue;break}h=0;if(k)while(1){H[c+e|0]=K[m-e|0];e=e+1|0;h=h+1|0;if((k|0)!=(h|0))continue;break}c=c+l|0;m=l+m|0;o=o+1|0;if((i|0)!=(o|0))continue;break}}uc(g);J[j+964>>2]=b}mF(a,j,1)}kc[J[J[j>>2]+4>>2]](j);return}a=Z()|0;uc(c);ba(a|0);B()}function n8(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=fc-32|0;fc=h;g=J[b+72>>2];a:{if((g|0)==1651078259)break a;b:{if(!(K[J[b+156>>2]+42|0]&16))break b;d=J[b+4>>2];e=J[b+12>>2];J[h+28>>2]=0;if(!(K[d+8| +0]&8)|(!d|e>>>0>=M[d+16>>2]))break b;f=J[J[d+540>>2]+132>>2];if(!f)break b;if(!(kc[f|0](d,e,h+16|0,h+12|0,h+20|0)|0)){g=J[b+72>>2];break b}c:{if(BN(d,0))break c;f=J[d+540>>2];d:{while(1){if(lp(d,J[h+16>>2],J[J[b+156>>2]+40>>2]&-1048581|4))break d;if(kc[J[f+136>>2]](d,J[h+12>>2],b,J[d+84>>2])|0)break d;e:{if(!(K[d+8|0]&8)|e>>>0>=M[d+16>>2])break e;g=J[J[d+540>>2]+132>>2];if(!g)break e;if(kc[g|0](d,e,h+16|0,h+12|0,h+20|0)|0)continue}break}J[b+72>>2]=1651078259;f:{b=J[d+84>>2];if(!b)break f;c=J[b+4>> +2];d=J[c+84>>2];if(!d)break f;e=J[J[c+96>>2]+8>>2];g:{if((b|0)==(d|0)){f=0;break g}while(1){a=J[d+8>>2];if(!a)break f;f=d;d=a;if((b|0)!=(d|0))continue;break}}J[(f?f+8|0:c+84|0)>>2]=J[b+8>>2];a=J[b+20>>2];if(a)kc[a|0](b);fy(b);kc[J[e+8>>2]](e,b);f=0;break a}f=0;break a}g=J[d+84>>2];if(!g)break c;i=J[g+4>>2];d=J[i+84>>2];if(!d)break c;j=J[J[i+96>>2]+8>>2];h:{if((d|0)==(g|0)){e=0;break h}while(1){f=J[d+8>>2];if(!f)break c;e=d;d=f;if((g|0)!=(d|0))continue;break}}J[(e?e+8|0:i+84|0)>>2]=J[g+8>>2];d=J[g+ +20>>2];if(d)kc[d|0](g);fy(g);kc[J[j+8>>2]](j,g)}g=1869968492;J[b+72>>2]=1869968492}i:{j:{k:{if((g|0)!=1869968492){f=7;if(!a)break a;d=J[a+148>>2];if(!d)break a;while(1){e=J[d+8>>2];if(J[e+16>>2]==(g|0))break k;d=J[d+4>>2];if(d)continue;break}break a}e=J[a+156>>2];if(!e)break j;d=J[a+148>>2]}f=0;e=kc[J[e+60>>2]](e,b,c,0)|0;if(!a)break i;if(!e)break a;g=a+148|0;while(1){if((e&255)!=19)break i;d=J[(d?d+4|0:g)>>2];if(!d)break i;f=J[b+72>>2];while(1){a=J[d+8>>2];if((f|0)!=J[a+16>>2]){d=J[d+4>>2];if(d)continue; +break i}break}f=0;e=kc[J[a+60>>2]](a,b,c,0)|0;if(e)continue;break}break a}f=7;break a}f=e}fc=h+32|0;return f}function Qka(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;if(!d){d=J[a+584>>2];if(d){l=(c|0)/J[d+8>>2]|0;a:{b:{if(J[d>>2]==2){i=b;break b}if(J[d+16>>2]<(l|0))break a;i=J[d+12>>2];kc[J[d+20>>2]](d,b,l)}c=J[a+600>>2];f=c-J[a+608>>2]|0;d=J[a+604>>2];if((l|0)>0){c=24;while(1){j=c;m=255<>2]=d;J[a+608>>2]=J[a+600>>2]-f;if(!pf(a))return-1; +f=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}b=c;g=c;c:{if((c|0)>=(l|0))break c;while(1){g=b;k=J[(b<<2)+i>>2];e=1;d:{while(1){b=e+g|0;if((l|0)<=(b|0)){h=e;break d}e:{if((k^J[(b<<2)+i>>2])&m){h=e;break e}h=e+1|0;b=h+g|0;if((l|0)<=(b|0))break d;if((k^J[(b<<2)+i>>2])&m)break e;h=129;e=e+2|0;if((e|0)!=129)continue;break c}break}if(h>>>0<=3)continue;break c}break}g=h>>>0>3?g:b}f:{g:{if((g-c&-2)!=2)break g;b=c+1|0;e=J[(c<<2)+i>>2]&m;while(1){if((e|0)!=(J[(b<<2)+i>>2]&m))break g;b=b+1|0;if((g|0)!=(b|0))continue; +break}H[d+1|0]=e>>>j;H[d|0]=((c^-1)+g|0)+127;f=f-2|0;d=d+2|0;c=g;break f}if((c|0)>=(g|0))break f;while(1){b=g-c|0;k=(b|0)>=127?127:b;if((k+3|0)>(f|0)){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-f;if(!pf(a))return-1;f=J[a+600>>2]-J[a+608>>2]|0;d=J[a+604>>2]}H[d|0]=k;d=d+1|0;f=f-1|0;if((c|0)==(g|0)){c=g;break f}e=0;b=k;n=b&3;if(n)while(1){H[d|0]=J[(c<<2)+i>>2]>>>j;d=d+1|0;c=c+1|0;b=b-1|0;e=e+1|0;if((n|0)!=(e|0))continue;break}if(k-1>>>0>=3)while(1){e=(c<<2)+i|0;H[d|0]=J[e>>2]>>>j;H[d+1|0]=J[e+4>>2]>>>j; +H[d+2|0]=J[e+8>>2]>>>j;H[d+3|0]=J[e+12>>2]>>>j;d=d+4|0;c=c+4|0;b=b-4|0;if(b)continue;break}f=f-k|0;if((c|0)<(g|0))continue;break}}h:{if((h|0)<4){h=0;break h}H[d|0]=h+126;H[d+1|0]=J[(g<<2)+i>>2]>>>j;f=f-2|0;d=d+2|0}c=c+h|0;if((l|0)>(c|0))continue;break}c=j-8|0;if(j)continue;break}c=J[a+600>>2]}J[a+604>>2]=d;J[a+608>>2]=c-f;return 1}fa(77140,70372,524,93935);B()}fa(74429,70372,516,93935);B()}fa(76922,70372,515,93935);B()}function NP(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;e= +J[a+604>>2];if((c|0)<=0)b=e;else{k=J[a+596>>2]+J[a+600>>2]|0;while(1){d=b+1|0;j=K[b|0];a:{if(c>>>0<2){h=1;b=d;c=0;break a}b=b+c|0;h=1;f=c;while(1){f=f-1|0;if(K[d|0]!=(j|0)){b=d;c=f;break a}d=d+1|0;h=h+1|0;if((h|0)!=(c|0))continue;break}h=c;c=0}d=g;b:{c:{d:{e:{while(1){f:{f=i;g:{h:{i:{j:{if((h|0)==1)while(1){k:{if(e+2>>>0>=k>>>0){g=J[a+608>>2];l:{if((i&-3)!=1){J[a+608>>2]=g+(e-J[a+604>>2]|0);if(pf(a))break l;return-1}J[a+608>>2]=g+(d-J[a+604>>2]|0);if(!pf(a))return-1;f=e-d|0;e=J[a+604>>2];g=e;if((f| +0)<=0)break k;while(1){H[e|0]=K[d|0];e=e+1|0;d=d+1|0;g=f>>>0>1;f=f-1|0;if(g)continue;break}g=J[a+604>>2];break k}e=J[a+604>>2]}g=d}if((i|0)!=3)switch(i|0){case 2:break h;case 1:break i;case 0:break j;default:break b}i=2;d=g;g=e-2|0;if(K[g|0]!=255)continue;f=K[d|0];if(f>>>0>125)continue;f=f+2|0;H[d|0]=f;H[g|0]=K[e-1|0];i=(f&255)!=127;continue}while(1){i=f;m:{if(e+2>>>0>>0)break m;d=J[a+608>>2];if((f&-3)==1){J[a+608>>2]=d+(g-J[a+604>>2]|0);if(!pf(a))return-1;d=e-g|0;f=g;e=J[a+604>>2];g=e;if((d|0)<= +0)break m;while(1){H[e|0]=K[f|0];e=e+1|0;f=f+1|0;g=d>>>0>1;d=d-1|0;if(g)continue;break}g=J[a+604>>2];break m}J[a+608>>2]=d+(e-J[a+604>>2]|0);if(!pf(a))return-1;e=J[a+604>>2]}f=2;if((i|0)==3)continue;break}switch(i|0){case 2:break h;case 1:break i;case 0:break j;default:break b}}if((h|0)<2)break e;i=2;if(h>>>0>128)break g;break d}if((h|0)>=2){i=3;if(h>>>0>128)break g;H[e|0]=1-h;f=e+1|0;e=e+2|0;break c}d=K[g|0]+1|0;H[g|0]=d;i=(d&255)!=127;f=e;e=e+1|0;break c}if((h|0)<2)break e;i=2;if(h>>>0<129)break f}H[e+ +1|0]=j;H[e|0]=129;h=h-128|0;e=e+2|0;d=g;continue}break}break d}H[e|0]=0;i=1;f=e+1|0;g=e;e=e+2|0;break c}H[e|0]=1-h;f=e+1|0;e=e+2|0}H[f|0]=j}if((c|0)>0)continue;break}b=J[a+604>>2]}J[a+604>>2]=e;J[a+608>>2]=J[a+608>>2]+(e-b|0);return 1}function nrb(a,b,c,d,e,f,g,h,i){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;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,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0;J[692580]=J[692580]+1;w=(f+31|0)/32|0;q=(c+31|0)/32|0;if(!((g| +0)<=0|(f|0)<=0)){G=a+24|0;M=h+29|0;x=2-h|0;y=h+30|0;while(1){r=0;l=i+s|0;B=(l|0)<=0|(d|0)<(l|0);if(!B)r=J[(P(l-1|0,q)<<2)+b>>2];C=(d|0)>(l|0)&(l|0)>=0;a:{b:{if(!C){t=1;p=0;m=0;if((l|0)>-2)break b;break a}m=J[(P(l,q)<<2)+b>>2]}t=0;c=l+1|0;if((c|0)>=(d|0)){p=0;break a}p=J[(P(c,q)<<2)+b>>2]}v=P(s-1|0,w);h=0;c=0;c=s?J[(v<<2)+e>>2]:c;j=c<<2;k=p<>>30|0;c=p>>>y|0;p=m>>>y|0;r=r>>>y|0;N=(v<<2)+e|0;m=l+1|0;O=(m|0)>=(d|0)|t;Q=(P(l,q)<<2)+b|0;R=(P(m,q)<<2)+b|0;S=(P(l-1|0,q)<<2)+b|0;D=(P(s, +w)<<2)+e|0;m=J[D>>2];z=0;while(1){l=o;t=u;v=k;E=j;F=n<<1;k=(F|((p<<7|c<<4|r<<10)&65520|z))+G|0;n=K[k|0];o=n<<2;j=L[o+2652240>>1];u=k;z=m>>>31|0;c:{d:{if((z|0)!=(n>>>0>46|0)){k=L[a+4>>1]-j|0;if(j>>>0<=(k&65535)>>>0){k=j;j=o+2652243|0;break d}J[a>>2]=j+J[a>>2];j=o+2652243|0;break d}k=L[a+4>>1]-j|0;I[a+4>>1]=k;if(k<<16>>16<0){J[a>>2]=j+J[a>>2];break c}e:{if(j>>>0>(k&65535)>>>0){k=j;break e}J[a>>2]=j+J[a>>2]}j=o+2652242|0}H[u|0]=K[j|0];while(1){k=k<<1;I[a+4>>1]=k;J[a>>2]=J[a>>2]<<1;j=K[a+6|0]-1|0;H[a+ +6|0]=j;if(!(j&255)){km(a);k=L[a+4>>1]}if(k<<16>>16>=0)continue;break}}n=(h>>>5|0)+1|0;A=h&31;f:{if((M|0)!=(A|0)){u=t<<1;o=l<<1;k=v<<1;break f}o=0;u=0;k=0;if(n>>>0>=q>>>0)break f;o=B?o:J[(n<<2)+S>>2];u=C?J[(n<<2)+Q>>2]:u;k=0;if(O)break f;k=J[(n<<2)+R>>2]}c=c<<1|v>>>31;t=p<<1|t>>>31;l=r<<1|l>>>31;g:{h:{if(!((A|0)==29?s:0)){j=E<<1;if((A|0)!=31)break h;m=0;if(n>>>0>=w>>>0)break g;m=J[(n<<2)+D>>2];break g}j=0;if(n>>>0>=w>>>0)break h;j=J[(n<<2)+N>>2]}m=m<<1}c=c&7;p=t&7;r=l&7;n=F&6|E>>>31;h=h+1|0;if((h| +0)!=(f|0))continue;break}s=s+1|0;if((s|0)!=(g|0))continue;break}}}function FN(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;if(J[a+72>>2]==1869968492){if(c){n=J[c>>2];j=J[c+4>>2]}c=0;f=I[a+110>>1];a:{if(!f)break a;h=J[a+112>>2];c=J[h+4>>2];e=J[h>>2];if((f|0)<2){g=c;d=e;break a}i=(f<<3)+h|0;f=h+8|0;d=e;g=c;while(1){m=J[h+12>>2];g=(g|0)<(m|0)?m:g;c=(c|0)>(m|0)?m:c;h=J[h+8>>2];d=(d|0)<(h|0)?h:d;e=(e|0)>(h|0)?h:e;h=f;f=h+8|0;if(i>>>0>f>>>0)continue;break}}i=j&63;k=i+(g&63)|0;f=n&63;l=f+(d& +63)|0;o=i+(c&63)|0;m=f+(e&63)|0;h=6;f=j>>6;i=f+(g>>6)|0;g=d>>6;d=n>>6;g=g+d|0;n=(c>>6)+f|0;j=d+(e>>6)|0;b:{c:{d:switch(b-2|0){default:g=g+(l+63>>>6|0)|0;c=j+(m>>>6|0)|0;e=g-c|0;h=2;i=i+(k+63>>>6|0)|0;d=n+(o>>>6|0)|0;f=i-d|0;break c;case 0:d=l+32|0;g=g+(d>>>6|0)|0;b=m+31|0;c=(b>>>6|0)+j|0;e:if((g|0)==(c|0)){if((((d&63)+(b&63)|0)-31|0)<=31){g=c;c=c-1|0;break e}g=c+1|0}e=k+32|0;i=i+(e>>>6|0)|0;b=o+31|0;d=(b>>>6|0)+n|0;f:if((i|0)==(d|0)){if((((e&63)+(b&63)|0)-31|0)<=31){i=d;d=d-1|0;break f}i=d+1|0}f= +i-d|0;e=g-c|0;b=e+15>>3&-2;h=1;break b;case 1:f=k;k=J[a>>2];e=J[k+184>>2];d=J[k+192>>2];b=(d|0)>(e|0)?e:d;c=J[k+200>>2];i=((f-((b|0)<(c|0)?b:c)|0)+63>>6)+i|0;b=(d|0)<(e|0)?e:d;d=(o-((b|0)>(c|0)?b:c)>>6)+n|0;f=i-d|0;h=J[k+180>>2];e=J[k+188>>2];b=(e|0)>(h|0)?h:e;c=J[k+196>>2];g=((l-((b|0)<(c|0)?b:c)|0)+63>>6)+g|0;b=(e|0)<(h|0)?h:e;c=(m-((b|0)>(c|0)?b:c)>>6)+j|0;e=P(g-c|0,3);b=e+3&-4;h=5;break b;case 2:break d}f=l;l=J[a>>2];e=J[l+184>>2];d=J[l+192>>2];b=(d|0)>(e|0)?e:d;c=J[l+200>>2];g=((f-((b|0)<(c| +0)?b:c)|0)+63>>6)+g|0;b=(d|0)<(e|0)?e:d;c=(m-((b|0)>(c|0)?b:c)>>6)+j|0;e=g-c|0;j=J[l+180>>2];f=J[l+188>>2];b=(f|0)<(j|0)?j:f;d=J[l+196>>2];i=((k+((b|0)>(d|0)?b:d)|0)+63>>6)+i|0;b=(f|0)>(j|0)?j:f;d=(o+((b|0)<(d|0)?b:d)>>6)+n|0;f=P(i-d|0,3)}b=e}J[a+104>>2]=i;J[a+100>>2]=c;J[a+76>>2]=f;H[a+94|0]=h;I[a+92>>1]=256;J[a+80>>2]=e;J[a+84>>2]=b;a=(c|0)<-32768|(d|0)<-32768|(g|0)>32767|(i|0)>32767}else a=1;return a}function acb(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; +if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a; +g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c, +m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g= +J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];_l(e,J[f>>2],h)}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Rbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104| +0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+ +16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0> +536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];oh(e,J[f>>2],h)}if(!Lc(a,c))break a; +if(Xc(b,d))continue;break}}}function AV(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-32|0;fc=g;J[a>>2]=0;e=J[b+12>>2];j=e+J[b+8>>2]|0;a:{b:{c:{d:{while(1){f=e;if(e>>>0>=j>>>0)break c;J[g+20>>2]=e;i=J[J[b>>2]+60>>2];J[699344]=0;i=aa(i|0,b|0,g+20|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;if(J[g+20>>2]!=(e|0)){J[699344]=0;i=_(c|0,i|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;e=i?J[g+20>>2]:e}if((e|0)!=(f|0))continue;break}e=J[b+12>>2];i=J[b+8>>2];J[699344]=0;e=f-e|0;i=ha(5213,g+20|0, +g+28|0,(P(i-e|0,6)+e|0)+6|0,1)|0;f=J[699344];J[699344]=0;if((f|0)!=1){if((e|0)>0)Ad(J[g+28>>2],J[b+12>>2],e);h=J[g+28>>2];f=e+J[b+12>>2]|0;J[g+16>>2]=f;e=e+h|0;e:{if(f>>>0>=j>>>0)break e;while(1){h=J[J[b>>2]+60>>2];J[699344]=0;h=aa(h|0,b|0,g+16|0)|0;k=J[699344];J[699344]=0;f:{g:{if((k|0)==1)break g;if(J[g+16>>2]==(f|0))break e;J[699344]=0;k=_(c|0,h|0)|0;l=J[699344];J[699344]=0;if((l|0)==1)break g;if(k){h=e;e=J[g+16>>2]-f|0;e=Ad(h,f,e)+e|0;break f}J[699344]=0;J[g+8>>2]=0;J[g+12>>2]=0;f=_(d|0,h|0)| +0;h=J[699344];J[699344]=0;if((h|0)!=1){h=J[J[b>>2]+56>>2];J[699344]=0;e=ha(h|0,b|0,f|0,e|0,g+8|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break f}f=Z()|0;hd(i);break b}f=Z()|0;hd(i);break b}f=J[g+16>>2];if(j>>>0>f>>>0)continue;break}}H[e|0]=0;J[699344]=0;c=g+8|0;d=b;b=J[g+28>>2];ma(5634,c|0,d|0,b|0,0,e-b|0);b=J[699344];J[699344]=0;h:{i:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;a=J[g+8>>2];J[g+8>>2]=0;j:{if(!a)break j;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>> +2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break h;if(b)break j;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break h}hd(i);break a}f=Z()|0;hd(i);break b}f=Z()|0;zc(g+8|0);hd(i);break b}ea(0)|0;Bc();B()}f=Z()|0;break b}f=Z()|0;break b}J[699344]=0;aa(5145,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a;f=Z()|0}zc(a);ba(f|0);B()}fc=g+32|0}function xvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){o=e-2|0;p=(e|0)==1;while(1){a= +f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];f=a+6|0;g=g+6|0;a:{if(k>>>0>o>>>0)break a;j=k?(k|0)==(o|0)?d:b:c;l=!k&p;if(l){if(j>>>0<2)break a;h=j-1|0;i=h&3;if(j-2>>>0>=3){j=h&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a>>1];I[g+8>>1]=L[a+2>>1];I[g+10>>1]=L[a+4>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];I[g+16>>1]=L[a+4>>1];I[g+18>>1]=L[a>>1];I[g+20>>1]=L[a+2>>1];I[g+22>>1]=L[a+4>>1];g=g+24|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a; +while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];g=g+6|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;m=i-1|0;n=m&3;if(i-2>>>0>=3){m=m&-4;i=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a>>1];I[g+8>>1]=L[a+2>>1];I[g+10>>1]=L[a+4>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];I[g+16>>1]=L[a+4>>1];I[g+18>>1]=L[a>>1];I[g+20>>1]=L[a+2>>1];I[g+22>>1]=L[a+4>>1];g=g+24|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i= +0;if(!n)break b;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];g=g+6|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;a=l?0:f;n=j+(h^-1)|0;i=0;l=j-h&3;if(l)while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];h=h+1|0;g=g+6|0;i=i+1|0;if((l|0)!=(i|0))continue;break}if(n>>>0<3)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a>>1];I[g+8>>1]=L[a+2>>1];I[g+10>>1]=L[a+4>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];I[g+16>> +1]=L[a+4>>1];I[g+18>>1]=L[a>>1];I[g+20>>1]=L[a+2>>1];I[g+22>>1]=L[a+4>>1];g=g+24|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function FVa(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;e=J[a+400>>2];d=e;c=J[e+20>>2];j=J[e+16>>2];if((c|0)>(j|0)){t=J[a+284>>2]-1|0;p=J[a+308>>2]-1|0;m=e+24|0;i=J[e+12>>2];while(1){if(i>>>0<=p>>>0){while(1){c=J[a+288>>2];if((c|0)>0){d=0;n=0;while(1){f=J[((n<<2)+a|0)+ +292>>2];if(J[f+60>>2]>0){u=P(J[f+68>>2],i);v=J[(J[a+416>>2]+(J[f+4>>2]<<2)|0)+4>>2];k=J[(i>>>0

      >>0?56:72)+f>>2];s=k+1|0;q=P(J[f+40>>2],j);o=0;while(1){a:{if(!(J[f+76>>2]<=(j+o|0)&M[e+8>>2]>=t>>>0)){kc[v|0](a,f,J[(J[f+4>>2]<<2)+b>>2],J[((d<<2)+e|0)+24>>2],q,u,k);h=J[f+56>>2];if((k|0)>=(h|0))break a;g=(d+k<<2)+e|0;Re(J[g+24>>2],h-k<<7);h=J[f+56>>2];if((k|0)>=(h|0))break a;c=k;if(h-c&1){I[J[g+24>>2]>>1]=L[J[g+20>>2]>>1];c=s}if((h|0)==(s|0))break a;while(1){g=(c+d<<2)+e|0;I[J[g+24>>2]>>1]=L[J[g+20>> +2]>>1];I[J[g+28>>2]>>1]=L[J[g+24>>2]>>1];c=c+2|0;if((h|0)!=(c|0))continue;break}break a}c=(d<<2)+e|0;Re(J[c+24>>2],J[f+56>>2]<<7);h=J[f+56>>2];if((h|0)<=0)break a;g=L[J[c+20>>2]>>1];r=0;c=0;if(h>>>0>=4){w=h&-4;l=0;while(1){I[J[(c+d<<2)+m>>2]>>1]=g;I[J[((c|1)+d<<2)+m>>2]>>1]=g;I[J[((c|2)+d<<2)+m>>2]>>1]=g;I[J[((c|3)+d<<2)+m>>2]>>1]=g;c=c+4|0;l=l+4|0;if((w|0)!=(l|0))continue;break}}l=h&3;if(!l)break a;while(1){I[J[((c+d<<2)+e|0)+24>>2]>>1]=g;c=c+1|0;r=r+1|0;if((l|0)!=(r|0))continue;break}}d=d+h|0;q= +J[f+40>>2]+q|0;o=o+1|0;if((o|0)>2])continue;break}c=J[a+288>>2]}n=n+1|0;if((n|0)<(c|0))continue;break}}if(!(kc[J[J[a+420>>2]+4>>2]](a,m)|0)){J[e+12>>2]=i;J[e+16>>2]=j;return 0}i=i+1|0;if(p>>>0>=i>>>0)continue;break}c=J[e+20>>2]}i=0;J[e+12>>2]=0;j=j+1|0;if((j|0)<(c|0))continue;break}d=J[a+400>>2]}J[e+8>>2]=J[e+8>>2]+1;b:{if(J[a+288>>2]>=2){J[d+20>>2]=1;break b}b=J[a+292>>2];if(M[d+8>>2]>2]-1>>>0){J[d+20>>2]=J[b+12>>2];break b}J[d+20>>2]=J[b+76>>2]}J[d+12>>2]=0;J[d+16>>2]=0;return 1} +function gcb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g= +J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+ +20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a; +if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);_l(e,J[f>>2],h)}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function ecb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a); +a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911? +-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+ +88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue; +xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);_l(e,J[f>>2],h)}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function ccb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>> +2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g= +(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>> +2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);_l(e,J[f>>2],h)}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Ybb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k| +0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i); +h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Wbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2]; +if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b; +j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d; +if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>> +2]);oh(e,J[f>>2],h)}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function Ubb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;J[a+1176>>2]=J[a+84>>2];if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+88>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i; +g=J[a+80>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+84>>2];k=(g|0)>(h|0)?g:h;h=J[a+92>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>> +2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]= +2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!Lc(a,c))break a;if(Xc(b,d))continue;break}}}function K5a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;e=J[a+168>>2];kc[J[J[e>>2]+56>>2]](d+ +20|0,e,c);c=0;g=K[d+31|0];e=g<<24>>24;a:{b:{c:{if((e|0)<0?J[d+24>>2]:g){g=J[a+8>>2];J[a+8>>2]=0;e=a+112|0;d:{if(H[a+123|0]>=0){J[d+16>>2]=J[e+8>>2];c=J[e+4>>2];J[d+8>>2]=J[e>>2];J[d+12>>2]=c;break d}c=J[a+116>>2];f=J[a+112>>2];J[699344]=0;ca(15,d+8|0,f|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break b}J[d+4>>2]=0;e:{if(!J[b+140>>2]){c=J[J[b>>2]+52>>2];J[699344]=0;f=_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=2;if(!f)break e}J[d+4>>2]=1;c=3}f:{if(!J[b+136>>2]){f=J[J[b>>2]+48>>2];J[699344]= +0;f=_(f|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break c;if(!f)break f}J[d+4>>2]=c}c=J[J[a>>2]+144>>2];J[699344]=0;ja(c|0,a|0,d+20|0,b+112|0,d+4|0,b+120|0,b+128|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[a+8>>2];J[a+8>>2]=g;g:{if(!c)break g;h:{i:{if((e|0)==(d+8|0))break i;f=K[d+19|0];g=f<<24>>24;if(H[a+123|0]>=0){if((g|0)>=0){a=J[d+12>>2];J[e>>2]=J[d+8>>2];J[e+4>>2]=a;J[e+8>>2]=J[d+16>>2];break i}J[699344]=0;ga(1631,e|0,J[d+8>>2],J[d+12>>2])|0;a=J[699344];J[699344]=0;if((a|0)!=1)break i; +break h}J[699344]=0;a=(g|0)<0;ga(1630,e|0,(a?J[d+8>>2]:d+8|0)|0,(a?J[d+12>>2]:f)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h}a=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=a;a=J[b+100>>2];J[c+96>>2]=J[b+96>>2];J[c+100>>2]=a;a=J[b+92>>2];J[c+88>>2]=J[b+88>>2];J[c+92>>2]=a;a=J[b+84>>2];J[c+80>>2]=J[b+80>>2];J[c+84>>2]=a;a=J[b+76>>2];J[c+72>>2]=J[b+72>>2];J[c+76>>2]=a;b=b- -64|0;e=J[b+4>>2];a=c- -64|0;J[a>>2]=J[b>>2];J[a+4>>2]=e;J[699344]=0;f4(c);a=J[699344];J[699344]=0;if((a|0)!=1)break g}break c}if(H[d+ +19|0]<0)uc(J[d+8>>2]);e=H[d+31|0]}if(e<<24>>24<0)uc(J[d+20>>2]);fc=d+32|0;return c|0}a=Z()|0;if(H[d+19|0]>=0)break a;uc(J[d+8>>2]);break a}a=Z()|0}if(H[d+31|0]<0)uc(J[d+20>>2]);ba(a|0);B()}function hZ(a,b){var c=0,d=0,e=0,f=0;a:{d=K[a+8|0];if(!(d&2))break a;c=J[a>>2];b:switch(K[a+9|0]-8|0){case 0:c:switch(d-2|0){case 4:if(!c)break a;if(c>>>0>=4){d=c&-4;a=0;while(1){e=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=e;e=K[b+4|0];H[b+4|0]=K[b+6|0];H[b+6|0]=e;e=K[b+8|0];H[b+8|0]=K[b+10|0];H[b+10|0]=e;e=K[b+12|0];H[b+ +12|0]=K[b+14|0];H[b+14|0]=e;b=b+16|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){d=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=d;b=b+4|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 0:break c;default:break a}if(!c)break a;if(c>>>0>=4){d=c&-4;a=0;while(1){e=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=e;e=K[b+3|0];H[b+3|0]=K[b+5|0];H[b+5|0]=e;e=K[b+6|0];H[b+6|0]=K[b+8|0];H[b+8|0]=e;e=K[b+9|0];H[b+9|0]=K[b+11|0];H[b+11|0]=e;b=b+12|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a; +a=0;while(1){d=K[b+2|0];H[b+2|0]=K[b|0];H[b|0]=d;b=b+3|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 8:break b;default:break a}d:switch(d-2|0){case 4:if(!c)break a;if((c|0)!=1){e=c&-2;a=0;while(1){d=K[b|0]|K[b+1|0]<<8;f=K[b+4|0]|K[b+5|0]<<8;H[b|0]=f;H[b+1|0]=f>>>8;H[b+4|0]=d;H[b+5|0]=d>>>8;d=K[b+8|0]|K[b+9|0]<<8;f=K[b+12|0]|K[b+13|0]<<8;H[b+8|0]=f;H[b+9|0]=f>>>8;H[b+12|0]=d;H[b+13|0]=d>>>8;b=b+16|0;a=a+2|0;if((e|0)!=(a|0))continue;break}}if(!(c&1))break a;a=K[b|0]|K[b+1|0]<<8;c=K[b+4|0]|K[b+ +5|0]<<8;H[b|0]=c;H[b+1|0]=c>>>8;H[b+4|0]=a;H[b+5|0]=a>>>8;return;case 0:break d;default:break a}if(!c)break a;if((c|0)!=1){e=c&-2;a=0;while(1){d=K[b|0]|K[b+1|0]<<8;f=K[b+4|0]|K[b+5|0]<<8;H[b|0]=f;H[b+1|0]=f>>>8;H[b+4|0]=d;H[b+5|0]=d>>>8;d=K[b+6|0]|K[b+7|0]<<8;f=K[b+10|0]|K[b+11|0]<<8;H[b+6|0]=f;H[b+7|0]=f>>>8;H[b+10|0]=d;H[b+11|0]=d>>>8;b=b+12|0;a=a+2|0;if((e|0)!=(a|0))continue;break}}if(!(c&1))break a;a=K[b|0]|K[b+1|0]<<8;c=K[b+4|0]|K[b+5|0]<<8;H[b|0]=c;H[b+1|0]=c>>>8;H[b+4|0]=a;H[b+5|0]=a>>>8}} +function ZI(a){var b=0,c=0,d=0,e=0,f=0,g=0;g=fc-16|0;fc=g;a:{b:{if(!J[a+28>>2]){b=J[a+56>>2];c=1;while(1){c:{d:{if((b|0)>=(c|0)){d=J[a+52>>2];break d}while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==-1){b=J[a+56>>2];if(!b){f=1;break a}d=J[a+52>>2];e=d<>2]+8|0;J[a+56>>2]=b;d=d+(J[a+52>>2]<<8)|0;J[a+52>>2]=d;if((b|0)<(c|0))continue;break}}e=d>>>b-c|0}f=1;e=-1>>>32-c&e;if((e&65535)==65535)break a;e=e<<9-c<<16>>16;if(I[(e<<2)+2312336>>1]==(c|0)){d=a;a=b-c|0;J[d+56>>2]= +(a|0)>0?a:0;f=I[(e<<2)+2312338>>1];break a}c=c+1|0;if((c|0)!=10)continue;break}e:{if((b|0)<11)while(1){b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1){b=J[a+56>>2];if(!b)break a;d=J[a+52>>2];e=d<<11-b;break e}e=J[a+56>>2];b=e+8|0;J[a+56>>2]=b;d=c+(J[a+52>>2]<<8)|0;J[a+52>>2]=d;if((e|0)<3)continue;break}e=d>>>b-11|0}c=-11;e=e<<1&4094;if(L[(e<<2)+2310160>>1]!=11){f:{g:{if((b|0)<=11)while(1){b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1)break g;e=J[a+56>>2];b=e+8|0;J[a+56>>2]=b;d=c+(J[a+ +52>>2]<<8)|0;J[a+52>>2]=d;if((e|0)<4)continue;break}d=d>>>b-12|0;break f}b=J[a+56>>2];if(!b)break a;d=J[a+52>>2]<<12-b}c=-12;e=d&4095;if(L[(e<<2)+2310160>>1]!=12)break b}d=a;a=b+c|0;J[d+56>>2]=(a|0)>0?a:0;f=I[(e<<2)+2310162>>1];break a}c=J[a+56>>2];h:{i:{if((c|0)>=12){b=J[a+52>>2];break i}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1){c=J[a+56>>2];if(!c){f=1;break a}b=J[a+52>>2]<<12-c;break h}d=J[a+56>>2];c=d+8|0;J[a+56>>2]=c;b=b+(J[a+52>>2]<<8)|0;J[a+52>>2]=b;if((d|0)<4)continue; +break}}b=b>>>c-12|0}e=b&4095;b=b&4064?(b>>>1&2044)+2312336|0:(e<<2)+2310160|0;d=I[b>>1];if((d|0)<=0)break b;e=a;a=c-(d&65535)|0;J[e+56>>2]=(a|0)>0?a:0;f=I[b+2>>1];break a}b=kc[J[J[a>>2]+52>>2]](a)|0;J[g>>2]=e;f=1;Cc(1,b,813468,g);J[a+80>>2]=J[a+80>>2]+1;e=a;a=J[a+56>>2];J[e+56>>2]=((a|0)<=1?1:a)-1}fc=g+16|0;return f<<16>>16}function w3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;v=fc-320|0;fc=v;s=J[a+332>>2];b=J[b+84>>2];a=v;while(1){h= +J[b+192>>2];l=I[c+96>>1];m=J[b+64>>2];t=I[c+32>>1];g=P(I[c>>1],J[b>>2])<<13|1024;f=P(J[b+128>>2],I[c+64>>1]);k=g+P(f,-11586)>>11;i=P(J[b+32>>2],I[c+16>>1]);o=P(J[b+160>>2],I[c+80>>1]);n=P(J[b+96>>2],I[c+48>>1]);p=P(J[b+224>>2],I[c+112>>1]);j=n-p|0;q=i-(o+j|0)<<2;J[a+224>>2]=k-q;J[a+64>>2]=k+q;l=P(h,l);m=P(m,t);h=P(l+m|0,6810);m=h+P(m,4209)|0;t=g+P(f,9373)|0;k=m+t|0;o=o<<13;q=o+P(j,2531)|0;n=n+p|0;p=P(n,7791);r=q+(p+P(i,11443)|0)|0;J[a+288>>2]=k-r>>11;J[a>>2]=k+r>>11;f=g+P(f,-3580)|0;g=h+P(l,-17828)| +0;h=f-g|0;j=o+P(j,-6627)|0;l=P(n,4815);k=j+(P(i,5260)-l|0)|0;J[a+192>>2]=h-k>>11;J[a+96>>2]=h+k>>11;h=t-m|0;m=q+(P(i,1812)-p|0)|0;J[a+160>>2]=h-m>>11;J[a+128>>2]=h+m>>11;f=f+g|0;i=P(i,10323)-(j+l|0)|0;J[a+256>>2]=f-i>>11;J[a+32>>2]=f+i>>11;a=a+4|0;b=b+4|0;c=c+2|0;u=u+1|0;if((u|0)!=8)continue;break}a=s+128|0;c=v;u=0;while(1){s=J[c+24>>2];j=J[c+8>>2];f=P(s+j|0,6810);b=J[(u<<2)+d>>2]+e|0;g=J[c+28>>2];h=J[c+12>>2];l=g+h|0;m=P(l,7791);i=J[c+4>>2];t=J[c+20>>2];k=t<<13;g=h-g|0;o=k+P(g,2531)|0;n=(m+P(i,11443)| +0)+o|0;p=f+P(j,4209)|0;h=(J[c>>2]<<13)+131072|0;j=J[c+16>>2];q=h+P(j,9373)|0;r=p+q|0;H[b|0]=K[a+(n+r>>>18&1023)|0];H[b+9|0]=K[a+(r-n>>>18&1023)|0];l=P(l,4815);k=k+P(g,-6627)|0;n=P(i,10323)-(l+k|0)|0;f=f+P(s,-17828)|0;s=h+P(j,-3580)|0;r=f+s|0;H[b+1|0]=K[a+(n+r>>>18&1023)|0];H[b+8|0]=K[a+(r-n>>>18&1023)|0];g=i-(g+t|0)<<13;j=h+P(j,-11586)|0;H[b+2|0]=K[a+(g+j>>>18&1023)|0];H[b+7|0]=K[a+(j-g>>>18&1023)|0];g=k+(P(i,5260)-l|0)|0;f=s-f|0;H[b+3|0]=K[a+(g+f>>>18&1023)|0];H[b+6|0]=K[a+(f-g>>>18&1023)|0];i=o+ +(P(i,1812)-m|0)|0;f=q-p|0;H[b+4|0]=K[a+(i+f>>>18&1023)|0];H[b+5|0]=K[a+(f-i>>>18&1023)|0];c=c+32|0;u=u+1|0;if((u|0)!=10)continue;break}fc=v+320|0}function _Ja(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;a:{b:{if(a){if(!b)break b;if(!c)break a;j=J[a+72>>2];k=P(J[a+104>>2],J[a+108>>2]);c:{if(k){b=J[j+16>>2];o=P(b,1080);l=P(b,b)<<2;e=J[a+12>>2];b=J[a+156>>2];while(1){m=J[b+5584>>2];d=xc(b,e,5644);J[d+5608>>2]=0;J[d+5588>>2]=-1;J[d+5168>>2]=0;J[d+5636>>2]=0;J[d+5616>> +2]=0;J[d+5624>>2]=0;J[d+5628>>2]=0;J[d+5584>>2]=m;H[d+5640|0]=K[d+5640|0]&252;if(J[e+5608>>2]){b=ef(l);J[d+5608>>2]=b;if(!b)return 0;xc(b,J[e+5608>>2],l)}f=P(J[e+5624>>2],20);b=ef(f);J[d+5616>>2]=b;i=0;if(!b)break c;xc(b,J[e+5616>>2],f);g=J[e+5620>>2];if(g){b=J[e+5616>>2];f=J[d+5616>>2];h=0;while(1){if(J[b+12>>2]){g=ef(J[b+16>>2]);J[f+12>>2]=g;if(!g)return 0;xc(g,J[b+12>>2],J[b+16>>2]);g=J[e+5620>>2]}J[d+5624>>2]=J[d+5624>>2]+1;f=f+20|0;b=b+20|0;h=h+1|0;if(h>>>0>>0)continue;break}}f=P(J[e+5636>> +2],20);b=ef(f);J[d+5628>>2]=b;if(!b)break c;xc(b,J[e+5628>>2],f);i=J[e+5636>>2];J[d+5636>>2]=i;if(i){b=J[e+5628>>2];f=J[d+5628>>2];h=0;while(1){g=J[b+8>>2];if(g)J[f+8>>2]=J[d+5616>>2]+P((g-J[e+5616>>2]|0)/20|0,20);g=J[b+12>>2];if(g)J[f+12>>2]=J[d+5616>>2]+P((g-J[e+5616>>2]|0)/20|0,20);f=f+20|0;b=b+20|0;h=h+1|0;if((i|0)!=(h|0))continue;break}}xc(m,J[e+5584>>2],o);b=d+5644|0;n=n+1|0;if((n|0)!=(k|0))continue;break}}i=1;d=Ge(1,72);b=0;d:{if(!d)break d;H[d+40|0]=K[d+40|0]&254|1;e=Ge(1,4);J[d+20>>2]=e; +b=d;if(e)break d;uc(d);b=0}J[a+196>>2]=b;if(!b)return 0;f=J[a+200>>2];d=0;J[b+28>>2]=a+80;J[b+24>>2]=j;e=Ge(1,848);J[J[b+20>>2]>>2]=e;e:{if(!e)break e;e=Ge(J[j+16>>2],76);h=J[J[b+20>>2]>>2];J[h+20>>2]=e;if(!e)break e;J[h+16>>2]=J[j+16>>2];d=J[a+164>>2];J[b+44>>2]=f;J[b>>2]=d;d=1}if(d)break c;qY(J[a+196>>2]);i=0;J[a+196>>2]=0;Nc(c,1,2359694,0)}return i|0}fa(2358373,2358254,8900,2364557);B()}fa(2358446,2358254,8901,2364557);B()}fa(2358486,2358254,8902,2364557);B()}function JD(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,r=0,s=0;h=fc-16|0;fc=h;j=J[a+100>>2];J[h+12>>2]=0;e=J[a+532>>2];a:{if(!e){e=he(j,420,h+12|0);if(J[h+12>>2])break a;J[e+416>>2]=0;J[a+532>>2]=e}b:{c:{if(!b)break c;d=J[e>>2];if(!d){d=h+12|0;r=e,s=_c(j,32,0,b,0,d),J[r+148>>2]=s;if(J[h+12>>2])break a;r=e,s=_c(j,196,0,b,0,d),J[r+216>>2]=s;if(J[h+12>>2])break a;r=e,s=_c(j,16,0,b,0,d),J[r+288>>2]=s;if(J[h+12>>2])break a;d=_c(j,4,0,b<<1,0,d);J[e+136>>2]=d;if(J[h+12>>2])break a;J[e+284>>2]=a+464;J[e+212>>2]=a+168; +J[e+144>>2]=a+132;k=2;J[e+140>>2]=d+(b<<2);d:{if(b>>>0<2)break d;a=b+1|0;f=a>>>0<=3?3:a;i=f-2|0;o=i&3;a=J[e+288>>2];d=J[e+216>>2];g=J[e+148>>2];if(f-3>>>0>=3){q=i&-4;i=e+144|0;m=e+212|0;n=e+284|0;while(1){f=k<<2;J[f+i>>2]=g+32;J[f+m>>2]=d+196;J[f+n>>2]=a+16;l=f|4;J[l+i>>2]=g- -64;J[l+m>>2]=d+392;J[l+n>>2]=a+32;l=f+8|0;J[l+i>>2]=g+96;J[l+m>>2]=d+588;J[l+n>>2]=a+48;f=f+12|0;g=g+128|0;J[f+i>>2]=g;d=d+784|0;J[f+m>>2]=d;a=a- -64|0;J[f+n>>2]=a;k=k+4|0;p=p+4|0;if((q|0)!=(p|0))continue;break}}if(!o)break d; +f=0;while(1){i=(k<<2)+e|0;a=a+16|0;J[i+284>>2]=a;d=d+196|0;J[i+212>>2]=d;g=g+32|0;J[i+144>>2]=g;k=k+1|0;f=f+1|0;if((o|0)!=(f|0))continue;break}}J[e>>2]=b;break c}if((b|0)!=(d|0))break b}a=J[e+4>>2];e:{if(!c){c=a;break e}if((a|0)!=(c|0)?a:0)break b;J[e+4>>2]=c}d=J[e>>2];if(J[e+24>>2]|(!d|!c))break a;b=_c(j,4,0,P(c,d),0,h+12|0);J[e+24>>2]=b;if(J[h+12>>2]|d>>>0<2)break a;g=d-1|0;j=g&3;a=1;if(d-2>>>0>=3){k=g&-4;d=0;g=e+24|0;while(1){J[g+(a<<2)>>2]=b+(P(a,c)<<2);f=a+1|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);f= +a+2|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);f=a+3|0;J[g+(f<<2)>>2]=b+(P(c,f)<<2);a=a+4|0;d=d+4|0;if((k|0)!=(d|0))continue;break}}if(!j)break a;d=0;while(1){J[((a<<2)+e|0)+24>>2]=b+(P(a,c)<<2);a=a+1|0;d=d+1|0;if((j|0)!=(d|0))continue;break}break a}J[h+12>>2]=3}fc=h+16|0;return J[h+12>>2]}function Tia(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;a=fc-336|0;fc=a;J[a+328>>2]=c;J[a+332>>2]=b;h=ml(d);j=Ts(d,a+208|0);Ss(a+196|0,d,a+324|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)- +1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6858,a+332|0,a+328|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344]; +J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+332|0;g=_(6859,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d;J[699344]=0;g=Ip(g,h,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);i=J[699344];J[699344]=0;if((i|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+ +207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=Wy(6840,c,J[a+180>>2],e,h);d=jc;h=J[699344];J[699344]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+332|0,a+328|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];jd(b);jd(a+196|0);fc=a+336|0;break a}}c= +Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function Oia(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;a=fc-336|0;fc=a;J[a+328>>2]=c;J[a+332>>2]=b;h=ml(d);j=Ts(d,a+208|0);Ss(a+196|0,d,a+324|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6858,a+332|0,a+328|0)|0;g= +J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]= +0;d=a+332|0;g=_(6859,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d;J[699344]=0;g=Ip(g,h,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);i=J[699344];J[699344]=0;if((i|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=Wy(6844,c,J[a+180>>2],e,h);d=jc;h=J[699344]; +J[699344]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+332|0,a+328|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];jd(b);jd(a+196|0);fc=a+336|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function XHa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=fc-32|0;fc=f;a:{b:{e=J[a>>2];g=(J[a+4>>2]-e|0)/40|0;d=g+1|0;if(d>>>0<107374183){c=a+ +8|0;h=J[c>>2];J[f+28>>2]=c;c=0;e=(h-e|0)/40|0;h=e<<1;e=e>>>0>=53687091?107374182:d>>>0>>0?h:d;if(e){if(e>>>0>=107374183)break b;c=vc(P(e,40))}J[f+12>>2]=c;d=P(g,40)+c|0;J[f+20>>2]=d;J[f+24>>2]=P(e,40)+c;J[f+16>>2]=d;e=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=e;e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;e=d+16|0;c:{d:{e:{if(H[b+27|0]>=0){h=J[b+20>>2];J[e>>2]=J[b+16>>2];J[e+4>>2]=h;J[e+8>>2]=J[b+24>>2];break e}h=J[b+20>>2];i=J[b+16>>2];J[699344]=0;ca(2838,e|0,i|0,h|0);h=J[699344];J[699344]=0;if((h| +0)==1)break d}c=(P(g,40)+c|0)+28|0;if(H[b+39|0]>=0){d=J[b+32>>2];J[c>>2]=J[b+28>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+36>>2];break a}g=J[b+32>>2];b=J[b+28>>2];J[699344]=0;ca(15,c|0,b|0,g|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;if(H[d+27|0]>=0)break c;uc(J[e>>2]);break c}b=Z()|0}a=J[f+20>>2];d=J[f+16>>2];if((a|0)!=(d|0))while(1){J[f+20>>2]=a-40;if(H[a-1|0]<0)uc(J[a-12>>2]);if(H[a-13|0]<0)uc(J[a-24>>2]);a=J[f+20>>2];if((d|0)!=(a|0))continue;break}a=J[f+12>>2];if(a)uc(a);ba(b|0);B()}eh(a);B()}Pd(); +B()}e=J[f+20>>2]+40|0;c=J[f+16>>2];b=J[a+4>>2];d=J[a>>2];f:{if((b|0)==(d|0)){d=b;break f}while(1){b=b-40|0;g=J[b+4>>2];c=c-40|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;g=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=g;J[c+24>>2]=J[b+24>>2];g=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=g;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[c+36>>2]=J[b+36>>2];g=J[b+32>>2];J[c+28>>2]=J[b+28>>2];J[c+32>>2]=g;J[b+36>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;if((b|0)!=(d|0))continue;break}b=J[a+4>>2];d=J[a>>2]}J[a+4>>2]=e;J[a>>2]=c;J[a+8>> +2]=J[f+24>>2];if((b|0)!=(d|0)){while(1){if(H[b-1|0]<0)uc(J[b-12>>2]);if(H[b-13|0]<0)uc(J[b-24>>2]);b=b-40|0;if((d|0)!=(b|0))continue;break}b=d}if(b)uc(b);fc=f+32|0}function lta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=fc-48|0;fc=f;a:{b:{if(J[a+44>>2]){a=Qc(f+24|0,2399950,2386101,1836,2432761,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;c=Z()|0;Kc(a);break b}J[f+16>>2]=0;J[699344]=0;J[f+20>>2]=J[685894];d=f+16|0;ha(5279,b|0,d|0,0,0)|0;e=J[699344];J[699344]=0;c:{d:{e:{f:{if((e| +0)==1)break f;J[699344]=0;e=pd(d,2400243,-1);g=J[699344];J[699344]=0;if((g|0)==1)break f;g:{if(!e)break g;J[699344]=0;d=pd(d,2394061,-1);e=J[699344];J[699344]=0;if((e|0)==1)break f;if(!d)break g;J[699344]=0;a=ja(5178,f+24|0,2400422,2386101,1840,2432761,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;c=Z()|0;Kc(a);break c}h:{while(1){if((c|0)<=0)break h;J[699344]=0;d=f+16|0;e=ha(5279,b|0,d|0,0,0)|0;g=J[699344];J[699344]=0;i:{if((g| +0)==1)break i;if(!e)break h;J[699344]=0;e=pd(d,2401962,-1);g=J[699344];J[699344]=0;if((g|0)==1)break i;j:{if(e){J[699344]=0;d=pd(d,2398477,-1);e=J[699344];J[699344]=0;if((e|0)==1)break i;if(d)break j}J[699344]=0;J[f+12>>2]=0;d=f+12|0;aa(5145,d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[J[a>>2]+40>>2];J[699344]=0;aa(e|0,a|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[f+12>>2];J[f+12>>2]=0;if(!d)break j;J[699344]=0;e=J[d+4>>2]-1|0;J[d+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break j; +J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break j}ea(0)|0;Bc();B()}c=Z()|0;zc(f+12|0);break c}c=c-1|0;J[699344]=0;$(5332,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}c=Z()|0;break c}J[699344]=0;$(5332,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[J[a>>2]+48>>2];J[699344]=0;$(b|0,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}c=Z()|0;break c}c=Z()|0;break c}wc(f+16|0);fc=f+48|0;return}wc(f+16|0)}ba(c|0)}B()}function sD(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,w=0,x=0;d=fc+-64|0;fc=d;e=O[b>>3];g=e>0;i=g?0:1;O[d+48>>3]=i;c=i;a:{b:{if(e==0)break b;J[699344]=0;l=g?c:0;m=g?1:c;n=+jb(2499,a|0,+l,+m);g=J[699344];J[699344]=0;if((g|0)==1)break a;c=e>0?1:0;o=O[b>>3];e=R(o)-n;if(R(e)<1E-12)break b;c=2.2250738585072014E-308;if(e>1E-12)break b;f=O[a+72>>3];k=O[a>>3];c:{if(!K[a+120|0]){J[699344]=0;j=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;O[j+24>>3]=f;O[j+16>>3]=f;O[j+8>>3]=k;O[j>>3]=k;e=O[a+80>>3];h=O[a+ +8>>3];J[699344]=0;a=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;O[a>>3]=h;f=e;c=h;break c}e=O[a+104>>3];c=O[a+88>>3];J[699344]=0;j=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;O[j+24>>3]=f;O[j>>3]=k;O[j+16>>3]=f+e;O[j+8>>3]=f+c;q=O[a+112>>3];e=O[a+96>>3];f=O[a+80>>3];c=O[a+8>>3];J[699344]=0;a=_(4,32)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;O[a>>3]=c;h=f+e;e=f+q}O[a+24>>3]=f;O[a+16>>3]=e;O[a+8>>3]=h;f=O[j+8>>3];e=O[j+16>>3];O[d+40>>3]=(f-e)*9+(O[j+24>>3]-k)*3;O[d+32>>3]=(e+ +k)*6+f*-12;O[d+24>>3]=(f-k)*3;f=O[a+8>>3];e=O[a+16>>3];O[d+16>>3]=(f-e)*9+(O[a+24>>3]-c)*3;O[d+8>>3]=(e+c)*6+f*-12;O[d>>3]=(f-c)*3;h=o/n+i;O[d+56>>3]=h;f=0;while(1){J[699344]=0;r=d+40|0;s=d+32|0;t=d+24|0;u=d+16|0;v=d+8|0;w=d+48|0;x=d+56|0;c=W(R(h-i)*32);c=c<16?c:16;c=c>2?c:2;d:{if(R(c)<2147483648){g=~~c;break d}g=-2147483648}c=+Pb(2500,r|0,s|0,t|0,u|0,v|0,d|0,w|0,x|0,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break a;i=O[d+56>>3];O[d+48>>3]=i;f=f+c;e=f-O[b>>3];c=i*(i*O[d+40>>3]+O[d+32>>3])+O[d+24>> +3];h=c*c;c=i*(i*O[d+16>>3]+O[d+8>>3])+O[d>>3];c=e/Y(h+c*c);h=i-c;if(!(R(c)<1E-12)){e:{if(e>0){m=i;c=l;g=!(h<=c);break e}l=i;c=m;g=!(h>=c)}h=g?h:(i+c)*.5;O[d+56>>3]=h;p=p+1|0;if((p|0)!=32)continue}break}uc(a);uc(j);c=hm?m:h}fc=d- -64|0;return c}ea(0)|0;Bc();B()}function Zd(a){var b=0,c=0,d=0,e=0,f=0;e=fc-192|0;fc=e;a:{if(!a|J[a+172>>2]==-1)break a;b=J[a+36>>2];if(!b)break a;c=J[b+16>>2];if(c>>>0>M[b+20>>2]){J[a+84>>2]=1;J[e>>2]=0;Hc(0,0,0,a,0,1,1,3,0,0,0,0,32910,e);J[a+12>>2]=0;if(!J[a+288>> +2])J[a+212>>2]=1;J[a+84>>2]=1;_0(a);break a}b:{if(K[c|0])break b;if((Nd(b)|0)>0)break b;if(J[a+172>>2]==5)break a;He(a);break a}c=J[a+36>>2];d=J[c+16>>2];b=K[d|0];c:{d:{e:{if(J[a+256>>2]==1){f:{if((b|0)==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break f}J[c+32>>2]=J[c+32>>2]+1}f=K[d|0];b=f<<24>>24;g:{if((b|0)<0){if((b|0)==-64)break c;b=K[d+1|0];if(!b){Nd(c);c=J[a+36>>2];d=J[c+16>>2];b=K[d+1|0]}if((b&192)!=128)break c;if((f&224)==224){b=K[d+2|0];if(!b){Nd(c);c=J[a+36>>2];d=J[c+16>>2];b=K[d+2|0]}if((b& +192)!=128)break c;h:{if((f&240)==240){if(!K[d+3|0]){Nd(c);c=J[a+36>>2];d=J[c+16>>2]}if((f&248)!=240|(K[d+3|0]&192)!=128)break c;b=d+3|0;J[c+16>>2]=J[c+16>>2]+4;f=(K[d+1|0]&63)<<12|(K[d|0]&7)<<18;d=(K[d+2|0]&63)<<6;break h}b=d+2|0;J[c+16>>2]=J[c+16>>2]+3;f=(K[d+1|0]&63)<<6;d=(K[d|0]&15)<<12}d=d|f;b=d|K[b|0]&63;if(!((d&2095104)==55296|b>>>0>1114111)&(b&2097150)!=65534)break g;DC(a,34779,b);c=J[a+36>>2];break g}J[c+16>>2]=d+2;break g}J[c+16>>2]=d+1}J[a+200>>2]=J[a+200>>2]+1;if(!K[J[c+16>>2]])break e; +break d}i:{if((b|0)==10){J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break i}J[c+32>>2]=J[c+32>>2]+1}J[c+16>>2]=d+1;J[a+200>>2]=J[a+200>>2]+1;if(K[d+1|0])break d}Nd(c)}d=J[a+36>>2];b=K[J[d+16>>2]];if((b|0)==37){if(J[a+32>>2])break a;Yd(a);d=J[a+36>>2];b=K[J[d+16>>2]]}if(b&255)break a;if((Nd(d)|0)>0)break a;He(a);break a}b=J[c+16>>2];j:{if((J[c+20>>2]-b|0)<=3){tk(a,9,38856,0);break j}c=K[b|0];d=K[b+1|0];f=K[b+2|0];J[e+28>>2]=K[b+3|0];J[e+24>>2]=f;J[e+20>>2]=d;J[e+16>>2]=c;b=e+32|0;Wi(b,149,36527,e+16|0); +tk(a,9,4560,b)}J[a+256>>2]=10;a=J[a+36>>2];J[a+16>>2]=J[a+16>>2]+1}fc=e+192|0}function tI(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;k=J[J[a+24>>2]+24>>2]+P(b,52)|0;j=J[k>>2];if(j)a:{p=j-1|0;m=J[a+48>>2];l=p+m|0;n=0-!j|0;i=n;i=xEb(l,l>>>0>>0?i+1|0:i,j,0);k=J[k+4>>2];if(!k)break a;r=J[(J[J[a+32>>2]+5584>>2]+P(b,1080)|0)+20>>2];m=J[J[J[a+20>>2]>>2]+20>>2]+P(b,76)|0;b=J[m>>2];l=b>>>0>i>>>0?b:i;i=n;o=J[m+8>>2];b=p;p=J[a+56>>2];b=b+p|0;b=xEb(b,b>>>0

      >>0?i+1|0:i,j,0);p=b>>>0>o>>> +0?o:b;j=k;b=j-1|0;q=J[a+60>>2];k=b+q|0;n=0-!j|0;i=n;o=J[m+12>>2];i=xEb(k,k>>>0>>0?i+1|0:i,j,0);k=i>>>0>o>>>0?o:i;o=J[a+52>>2];a=o+b|0;b=n;i=J[m+4>>2];a=xEb(a,a>>>0>>0?b+1|0:b,j,0);n=a>>>0>>0?i:a;a=0;j=J[m+20>>2]+(c?0-c|0:-1)|0;b:{if(!j){b=p;a=l;c=n;break b}o=j-1|0;m=(d&1)<>>0>m>>>0){a=j&31;if((j&63)>>>0>=32){i=-1<>>32-a;a=-1<>>0>>0?b+1|0:b;c=a;a=j&31;if((j&63)>>>0>=32)a=b>>>a|0;else a=((1<>>a}b= +0;c=0;l=d>>>1<>>0>>0){c=j&31;if((j&63)>>>0>=32){i=-1<>>32-c;c=-1<>>0>>0?i+1|0:i;d=c;c=j&31;if((j&63)>>>0>=32)c=i>>>c|0;else c=((1<>>c}if(m>>>0

      >>0){d=j&31;if((j&63)>>>0>=32){b=-1<>>32-d;d=-1<>>0>>0?b+1|0:b;i=d;d=j&31;if((j&63)>>>0>=32)b=b>>>d|0;else b=((1<>>d}if(l>>>0>=k>>>0){k=0;break b}d=j&31;n=k-l|0;if((j&63)>>> +0>=32){i=-1<>>32-d;d=-1<>>0>>0?i+1|0:i;l=d;d=j&31;if((j&63)>>>0>=32)k=i>>>d|0;else k=((1<>>d}n=e;d=(r|0)==1?2:3;e=d+b|0;e=n>>>0<(b>>>0>e>>>0?-1:e)>>>0;b=d+k|0;e=e&(b>>>0>>0?-1:b)>>>0>f>>>0;b=a-d|0;b=e&(a>>>0>=b>>>0?b:0)>>>0>>0;a=c-d|0;return b&(a>>>0<=c>>>0?a:0)>>>0>>0}fa(2355247,2355365,172,2355230);B()}function Mha(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;var h=0,i=0,j=0,k=0,l=0,m=0;h=fc-624| +0;fc=h;J[h+616>>2]=c;J[h+620>>2]=b;J[h+16>>2]=6891;a=h+16|0;b=Bg(h+200|0,h+208|0,a);J[699344]=0;j=h+192|0;i=J[e+28>>2];J[j>>2]=i;J[i+4>>2]=J[i+4>>2]+1;i=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((i|0)!=1){J[699344]=0;i=_(6750,j|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break j;H[h+191|0]=0;e=J[e+4>>2];J[699344]=0;c=Fa(6903,h+620|0,c|0,d|0,j|0,e|0,f|0,h+191|0,i|0,b|0,h+196|0,h+608|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if(!c)break f;c=K[22312]|K[22313]<<8|(K[22314]<<16|K[22315]<< +24);H[h+183|0]=c;H[h+184|0]=c>>>8;H[h+185|0]=c>>>16;H[h+186|0]=c>>>24;c=K[22309]|K[22310]<<8|(K[22311]<<16|K[22312]<<24);J[h+176>>2]=K[22305]|K[22306]<<8|(K[22307]<<16|K[22308]<<24);J[h+180>>2]=c;J[699344]=0;ha(6866,i|0,h+176|0,h+186|0,h+128|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;J[h+4>>2]=1617;d=Bg(h+8|0,0,h+4|0);e=a;a=J[h+196>>2]-J[b>>2]|0;if((a|0)<393)break g;zh(d,Dc((a>>2)+2|0));if(J[d>>2])break h;J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;break a}c=Z()|0;break b}c= +Z()|0;break c}c=Z()|0;break c}e=J[d>>2]}if(K[h+191|0]){H[e|0]=45;e=e+1|0}c=J[b>>2];while(1){if(M[h+196>>2]<=c>>>0){H[e|0]=0;J[h>>2]=g;if((Zg(h+16|0,13199,h)|0)!=1){J[699344]=0;$(6893,4888);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break d}Ie(d)}else{a=h+128|0;l=e,m=K[(h+176|0)+(ZF(a,a+40|0,c)-a>>2)|0],H[l|0]=m;e=e+1|0;c=c+4|0;continue}break}}J[699344]=0;a=aa(6858,h+620|0,h+616|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(a)J[f>>2]=J[f>>2]|2;d=J[h+620>>2];a=J[h+192>>2];c=J[a+4>>2]-1|0;J[a+ +4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);Ie(b);fc=h+624|0;return d|0}c=Z()|0;break c}c=Z()|0;Ie(d)}a=J[h+192>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)kc[J[J[a>>2]+8>>2]](a)}Ie(b);ba(c|0);B()}B()}function yza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=fc-48|0;fc=g;f=g+4|0;d=fc-32|0;fc=d;a:{b:{c:{d:{e:{if((c|0)<0){J[699344]=0;a=ja(5178,d+8|0,2388562,2385572,185,2417691,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e; +break d}e=J[b+68>>2];h=J[b- -64>>2];if(((e-h|0)+1|0)<=(c|0)){J[699344]=0;a=ja(5178,d+8|0,2389150,2385572,187,2417691,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break d}if(!((c|0)<=(e|0)&(c|0)>=(h|0))){a=Qc(d+8|0,2390191,2390824,632,2417953,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break d}e=J[b+52>>2];h=J[b+56>>2];J[f>>2]=0;J[f+4>>2]=J[685894];c=J[e+(c-h<<3)>>2];f:{if(c){e=J[J[c>>2]+28>>2];J[699344]= +0;ca(e|0,d+8|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break f;a=Z()|0;break c}J[d+8>>2]=0}J[699344]=0;aa(5153,f|0,d+8|0)|0;c=J[699344];J[699344]=0;g:{if((c|0)!=1){c=J[d+8>>2];J[d+8>>2]=0;if(!c)break g;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;h=J[699344];J[699344]=0;if((h|0)!=1){if(e)break g;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break g}ea(0)|0;Bc();B()}a=Z()|0;zc(d+8|0);break c}c=J[f>>2];J[f+4>>2]=J[(c?c+12|0:2743576)>>2];fc=d+32|0;break a}B()}b=Z()|0;Kc(a);ba(b|0);B()}wc(f); +ba(a|0);B()}ba(Z()|0);B()}J[699344]=0;b=ga(5343,g+12|0,f|0,b+12|0)|0;c=J[699344];J[699344]=0;h:{i:{if((c|0)!=1){J[699344]=0;aa(5151,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);wc(g+4|0);fc=g+48|0;return}c=Z()|0;break h}c=Z()|0;Ed(b)}wc(g+4|0);ba(c| +0);B()}function q8(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;J[a+12>>2]=b;J[a+8>>2]=c;J[a+4>>2]=b;J[a+20>>2]=J[a+16>>2];a:{b:{while(1){if(b>>>0>=c>>>0)break b;k=J[a+20>>2];i=J[a+16>>2];l=k-i>>2;e=J[a+24>>2];g=K[b|0];c:{d:{if(!((g|0)==31|(g-27&255)>>>0>227)){d=4;if(e>>>0<=l>>>0)break c;J[a+20>>2]=k+4;J[k>>2]=b;e:switch(g-28|0){case 2:while(1){b=b+1|0;if(c>>>0<=b>>>0){b=c;d=7;break c}e=K[b|0];if((e&240)==240)break d;if((e&15)!=15)continue;break}break d;case 0:b=b+2|0;break d;case 1:b=b+4|0; +break d;default:break e}b=(g>>>0>246)+b|0;break d}d=4;if(e>>>0<=l>>>0)break c;J[k>>2]=b;if((g|0)==12){b=b+1|0;d=8;if(c>>>0<=b>>>0)break c;g=K[b|0]|256}h=256080;j=4;d=256080;f=J[a+28>>2]|g;f:{g:{if((f|0)==4096)break g;h:{i:{while(1){if((f|0)==J[d+32>>2])break h;if((f|0)==J[d+60>>2])break i;if((f|0)!=J[d+88>>2]){j=J[d+112>>2];if(!j)break f;e=d;h=d+112|0;d=h;if((f|0)!=J[e+116>>2])continue;break g}break}h=d+84|0;j=J[d+84>>2];break g}h=d+56|0;j=J[d+56>>2];break g}h=d+28|0;j=J[d+28>>2]}e=J[h+8>>2];f=J[a+ +32>>2];if((i|0)==(k|0)){d=12;if((j|0)!=6)break c}d=e+f|0;j:{k:{l:{m:{n:{o:switch(j-1|0){case 0:case 3:case 4:e=cm(a,J[J[a+16>>2]>>2]);break n;case 1:e=$u(a,J[J[a+16>>2]>>2],0);break n;case 5:break m;case 2:break o;default:break l}e=$u(a,J[J[a+16>>2]>>2],3)}p:switch(K[h+12|0]-1|0){case 1:I[d>>1]=e;break f;case 0:break j;default:break p}J[d>>2]=e;break f}g=J[a+16>>2];e=J[h+20>>2];i=e>>>0>l>>>0?l:e;H[f+J[h+24>>2]|0]=i;if(!i)break f;f=0;while(1){e=K[h+12|0];f=cm(a,J[g>>2])+f|0;q:{r:switch(e-1|0){case 0:H[d| +0]=f;break q;case 1:I[d>>1]=f;break q;default:break r}J[d>>2]=f}g=g+4|0;d=d+e|0;i=i-1|0;if(i)continue;break}break k}m=kc[J[h+16>>2]](a)|0;d=7;if(m)break c;m=0}if((j|0)!=8)break f;break d}H[d|0]=e}J[a+20>>2]=J[a+16>>2]}b=b+1|0;d=0}if(!d)continue;break}a=6;if(zEb(d,30)-1>>>0<3)break a}a=m}return a}function Uia(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;a=fc-336|0;fc=a;J[a+328>>2]=c;J[a+332>>2]=b;i=ml(d);j=Ts(d,a+208|0);Ss(a+196|0,d,a+324|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c= +(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6858,a+332|0,a+328|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]= +0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+332|0;g=_(6859,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=Ip(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]= +0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=ha(6836,c|0,J[a+180>>2],e|0,i|0)|0;d=J[699344];J[699344]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+332|0,a+328|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+ +332>>2];jd(b);jd(a+196|0);fc=a+336|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function Sia(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;a=fc-336|0;fc=a;J[a+328>>2]=c;J[a+332>>2]=b;i=ml(d);j=Ts(d,a+208|0);Ss(a+196|0,d,a+324|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]= +0;d=aa(6858,a+332|0,a+328|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>> +2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+332|0;g=_(6859,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=Ip(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=ha(6841, +c|0,J[a+180>>2],e|0,i|0)|0;d=J[699344];J[699344]=0;f:{if((d|0)==1)break f;I[f>>1]=c;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+332|0,a+328|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];jd(b);jd(a+196|0);fc=a+336|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function Ria(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;a=fc-336|0;fc=a;J[a+328>>2]=c;J[a+332>> +2]=b;i=ml(d);j=Ts(d,a+208|0);Ss(a+196|0,d,a+324|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6858,a+332|0,a+328|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>> +2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+332|0;g=_(6859,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=Ip(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[699344];J[699344]= +0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=ha(6842,c|0,J[a+180>>2],e|0,i|0)|0;d=J[699344];J[699344]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+332|0, +a+328|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];jd(b);jd(a+196|0);fc=a+336|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function Pia(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;a=fc-336|0;fc=a;J[a+328>>2]=c;J[a+332>>2]=b;i=ml(d);j=Ts(d,a+208|0);Ss(a+196|0,d,a+324|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+ +11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6858,a+332|0,a+328|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]= +0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+332|0;g=_(6859,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=Ip(g,i,c,a+180|0,a+8|0,J[a+324>>2],a+196|0,a+16|0,a+12|0,j);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6861,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d= +J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=ha(6843,c|0,J[a+180>>2],e|0,i|0)|0;d=J[699344];J[699344]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6858,a+332|0,a+328|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+332>>2];jd(b);jd(a+196|0);fc=a+336|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function $pa(a,b){a=a|0; +b=b|0;var c=0,d=0,e=0;c=fc+-64|0;fc=c;e=1;a:{if(!b)break a;e=0;b:switch(J[b+4>>2]-7|0){case 0:e=b+8|0;c:{d:{e:{f:{g:{h:{i:{b=J[b+20>>2];j:{if(!b)break j;ZG(c+56|0,J[a+12>>2]+652|0,b);b=J[J[c+56>>2]+4>>2];J[699344]=0;d=c+12|0;da(6382,d|0,b+6|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;b=ga(3712,d|0,0,17392)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;J[c+32>>2]=J[b+8>>2];d=J[b+4>>2];J[c+24>>2]=J[b>>2];J[c+28>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[699344]=0;b=aa(2834,c+24|0,29449)| +0;d=J[699344];J[699344]=0;if((d|0)==1)break g;J[c+48>>2]=J[b+8>>2];d=J[b+4>>2];J[c+40>>2]=J[b>>2];J[c+44>>2]=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if(H[c+35|0]<0)uc(J[c+24>>2]);if(H[c+23|0]<0)uc(J[c+12>>2]);I[c+32>>1]=K[29412]|K[29413]<<8;J[699344]=0;I[c+34>>1]=2560;b=K[29408]|K[29409]<<8|(K[29410]<<16|K[29411]<<24);J[c+24>>2]=K[29404]|K[29405]<<8|(K[29406]<<16|K[29407]<<24);J[c+28>>2]=b;ca(6383,e|0,c+24|0,c+40|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;if(H[c+35|0]<0)uc(J[c+24>>2]);if(H[c+51|0]< +0)uc(J[c+40>>2]);b=J[c+60>>2];if(!b)break j;d=J[b+4>>2];J[b+4>>2]=d-1;if(d)break j;kc[J[J[b>>2]+8>>2]](b);Gc(b)}a=J[a+12>>2];b=K[e+11|0];d=b<<24>>24<0;Ll(c+40|0,d?J[e>>2]:e,d?J[e+4>>2]:b);b=J[a+2212>>2];if(b>>>0>=M[a+2216>>2])break c;e=J[c+44>>2];J[b>>2]=J[c+40>>2];J[b+4>>2]=e;J[b+8>>2]=J[c+48>>2];J[a+2212>>2]=b+12;e=0;break a}b=Z()|0;break d}b=Z()|0;break f}b=Z()|0;if(H[c+35|0]>=0)break f;uc(J[c+24>>2])}if(H[c+23|0]>=0)break d;uc(J[c+12>>2]);break d}b=Z()|0;if(H[c+35|0]<0)uc(J[c+24>>2]);if(H[c+51| +0]>=0)break d;uc(J[c+40>>2])}je(c+56|0);ba(b|0);B()}J[699344]=0;da(2957,a+2208|0,c+40|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+51|0]<0)uc(J[c+40>>2]);e=0;break a}a=Z()|0;if(H[c+51|0]<0)uc(J[c+40>>2]);ba(a|0);B();case 1:break a;default:break b}e=1}fc=c- -64|0;return e|0}function qta(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;d=J[b+12>>2];if(!d){J[a>>2]=0;vd(a,0);return}i=J[d+8>>2];e=J[d+4>>2];d=vc(24);J[699344]=0;c=ha(5432,d|0,i|0,e|0,0)|0;h=J[699344];J[699344]=0;if((h|0)!=1){J[a>> +2]=0;vd(a,c);d=J[a>>2];if(L[d+8>>1])f=J[d+16>>2];c=J[b+12>>2];d=L[d+12>>1];J[699344]=0;d=P(d,3);ma(5678,c|0,f|0,d|0,3,0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)==1)break c;d:{if(!J[b+20>>2])break d;c=1;h=J[b+16>>2];if(!(!h|J[b+36>>2]<0)){c=J[b+40>>2];J[699344]=0;ma(5678,h|0,f+1|0,d|0,3,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[b+40>>2];h=J[b+20>>2];J[699344]=0;ma(5678,h|0,f+2|0,d|0,3,c|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;c=J[b+20>>2]!=0}if(!c|!J[b+16>>2])break d;if(J[b+36>> +2]>=0)break b}if((i|0)<=0|(e|0)<=0)break a;a=J[a>>2];h=e&-4;c=e&3;d=0;j=e>>>0<4;while(1){b=0;e:{if(L[a+8>>1]<=d>>>0)break e;f=J[a+16>>2];b=0;if(!f)break e;b=f+P(P(L[a+12>>1],d),3)|0}f=0;if(!j)while(1){e=K[b|0]^127;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;e=K[b+3|0]^127;H[b+3|0]=e;H[b+5|0]=e;H[b+4|0]=e;e=K[b+6|0]^127;H[b+6|0]=e;H[b+8|0]=e;H[b+7|0]=e;e=K[b+9|0]^127;H[b+9|0]=e;H[b+11|0]=e;H[b+10|0]=e;b=b+12|0;f=f+4|0;if((h|0)!=(f|0))continue;break}f=0;if(c)while(1){e=K[b|0]^127;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e; +b=b+3|0;f=f+1|0;if((c|0)!=(f|0))continue;break}d=d+1|0;if((i|0)!=(d|0))continue;break}break a}b=Z()|0;zc(a);ba(b|0);B()}f=0;d=0;a=J[a>>2];if(L[a+8>>1])d=J[a+16>>2];if((e|0)<=0|(i|0)<=0)break a;h=P(L[a+12>>1],3);while(1){b=d;a=0;while(1){c=H[b+2|0];j=(c>>1)+c|0;c=H[b|0]+128|0;g=j+c|0;g=(g|0)>=255?255:g;H[b+2|0]=(g|0)>0?g:0;g=H[b+1|0];c=c-(g>>2)|0;g=c+(g<<1)|0;g=(g|0)>=255?255:g;H[b|0]=(g|0)>0?g:0;c=c-(j>>1)|0;c=(c|0)>=255?255:c;H[b+1|0]=(c|0)>0?c:0;b=b+3|0;a=a+1|0;if((e|0)!=(a|0))continue;break}d= +d+h|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}return}a=Z()|0;uc(d);ba(a|0);B()}function x1a(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;k=fc-16|0;fc=k;j=J[a+16>>2];i=J[a+4>>2];e=J[i+8>>2];m=J[a+12>>2];f=J[a+8>>2];H[k+14|0]=0;H[k+15|0]=0;a:{if(f>>>0>=m>>>0)break a;b:while(1){if(M[a+20>>2]>j>>>0){g=J[i+48>>2];while(1){d=f;f=d+1|0;c=K[d|0];h=c<<24>>24;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{if((g|0)!=126){r:{if(K[e+13|0]){l=J[i+44>>2];if(l)break q;if((h|0)==126)break r;J[i+ +44>>2]=c|256;H[e+15|0]=0;break c}if((h|0)!=126)break p}g=126;J[i+48>>2]=126;break c}g=0;J[i+48>>2]=0;s:switch(c-123|0){case 1:break l;case 3:break o;case 0:case 2:break s;default:break m}H[e+13|0]=(h|0)==123;if(K[e+15|0])break n;H[e+15|0]=1;break c}g=h-33&255;if(g>>>0<94&(l+223&255)>>>0<=92)break k;J[i+44>>2]=0;J[b>>2]=12;b=l&255;if(g>>>0>=94)break h;f=d;c=b;break e}H[e+15|0]=0;if((h|0)<0)break f;d=c;break j}d=J[a+24>>2];if(d)J[d+(j-J[a+16>>2]<<1)>>2]=(f-J[a+8>>2]|0)-2;I[j>>1]=126;H[e+15|0]=0;break d}H[e+ +15|0]=0;J[b>>2]=18;b=J[a+4>>2];H[b+37|0]=126;J[b+256>>2]=2;H[J[a+4>>2]+38|0]=h;H[J[a+4>>2]+36|0]=2;break a}if((c|0)==10)break c}H[e+15|0]=0;J[b>>2]=18;H[J[a+4>>2]+37|0]=126;t:{u:{if(K[e+13|0]){g=1;if((h-33&255)>>>0>=94)break u;break t}g=1;if((h|0)>=0)break t}H[J[a+4>>2]+38|0]=h;g=2;d=f}H[J[a+4>>2]+36|0]=g;f=d;break a}H[k+15|0]=h^128;H[k+14|0]=l^128;d=Xn(J[J[e>>2]+24>>2],k+14|0,2);i=J[a+4>>2];J[i+44>>2]=0;if((d|0)>65533)break i}c=J[a+24>>2];if(c)J[c+(j-J[a+16>>2]<<1)>>2]=((J[a+8>>2]^-1)+f|0)-H[e+13| +0];I[j>>1]=d;break d}J[b>>2]=(d|0)==65534?10:12;c=l<<8&65280|c;if(c>>>0>=256)break g;break e}c=b<<8|c|65536}H[J[a+4>>2]+37|0]=c>>>8;H[J[a+4>>2]+38|0]=c;H[J[a+4>>2]+36|0]=2;break a}J[b>>2]=12}H[J[a+4>>2]+37|0]=c;H[J[a+4>>2]+36|0]=1;break a}j=j+2|0;if(f>>>0>>0)continue b;break a}if(f>>>0>>0)continue;break}break a}break}J[b>>2]=15}J[a+8>>2]=f;J[a+16>>2]=j;fc=k+16|0}function t2(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;a:{if(!J[a+12>>2])break a;while(1){if((b|0)==1)break a;if((Nr(J[a+12>> +2])|0)!=1)break a;b=ou(J[a+12>>2]);if((b|0)!=-1)continue;break}}s2(a);g=-1;b:{c:{d:{b=J[a+12>>2];e:{f:{if(!b)break f;g=Vm(b);b=J[a+12>>2];if(!b)break f;if((Mr(b)|0)==1)break e}while(1){if((Nr(J[a+12>>2])|0)!=1)break e;h=ou(J[a+12>>2]);if((h|0)==-1)break e;b=J[a+12>>2];if(b)Vm(b);g:{h:switch(h-1|0){case 2:case 12:case 13:e=gx(J[a+12>>2]);i:{if(!e){H[c+15|0]=0;b=c+4|0;break i}d=Yc(e);if(d>>>0>=2147483632)break d;j:{if(d>>>0<=10){H[c+15|0]=d;b=c+4|0;break j}f=(d|15)+1|0;b=vc(f);J[c+12>>2]=f|-2147483648; +J[c+4>>2]=b;J[c+8>>2]=d}b=cd(b,e,d)+d|0}H[b|0]=0;b=J[a+28>>2];J[699344]=0;f=b+36|0;b=K[c+15|0];d=b<<24>>24<0;ga(2835,f|0,(d?J[c+4>>2]:c+4|0)|0,(d?J[c+8>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+15|0]>=0)break g;uc(J[c+4>>2]);break g}a=Z()|0;if(H[c+15|0]>=0)break b;uc(J[c+4>>2]);break b;case 3:e=gx(J[a+12>>2]);k:{if(!e){H[c+15|0]=0;b=c+4|0;break k}d=Yc(e);if(d>>>0>=2147483632)break c;l:{if(d>>>0<=10){H[c+15|0]=d;b=c+4|0;break l}f=(d|15)+1|0;b=vc(f);J[c+12>>2]=f|-2147483648;J[c+4>>2]= +b;J[c+8>>2]=d}b=cd(b,e,d)+d|0}H[b|0]=0;b=J[a+28>>2];J[699344]=0;f=b+36|0;b=K[c+15|0];d=b<<24>>24<0;ga(2835,f|0,(d?J[c+4>>2]:c+4|0)|0,(d?J[c+8>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+15|0]>=0)break g;uc(J[c+4>>2]);break g}a=Z()|0;if(H[c+15|0]>=0)break b;uc(J[c+4>>2]);ba(a|0);B();case 0:s2(a);break g;case 14:break h;default:break g}b=J[a+32>>2];d=J[b>>2];e=J[b+4>>2];J[d+4>>2]=e;J[e>>2]=d;J[a+40>>2]=J[a+40>>2]-1;uc(b);if(J[a+40>>2]){J[a+28>>2]=J[J[a+32>>2]+8>>2];break g}J[a+28>>2]=J[a+ +24>>2]}b=J[a+12>>2];if(b)b=Vm(b);else b=-1;if((b|0)<(g|0))break e;if((h|0)!=15|(b|0)!=(g|0))continue;break}}fc=c+16|0;return}_d(c+4|0);B()}_d(c+4|0);B()}ba(a|0);B()}function Uha(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;var h=0,i=0,j=0,k=0,l=0,m=0;h=fc-272|0;fc=h;J[h+264>>2]=c;J[h+268>>2]=b;J[h+16>>2]=6891;a=h+16|0;b=Bg(h+152|0,h+160|0,a);J[699344]=0;j=h+144|0;i=J[e+28>>2];J[j>>2]=i;J[i+4>>2]=J[i+4>>2]+1;i=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((i|0)!=1){J[699344]=0; +i=_(6826,j|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break j;H[h+143|0]=0;e=J[e+4>>2];J[699344]=0;c=Fa(6892,h+268|0,c|0,d|0,j|0,e|0,f|0,h+143|0,i|0,b|0,h+148|0,h+260|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;if(!c)break f;c=K[22312]|K[22313]<<8|(K[22314]<<16|K[22315]<<24);H[h+135|0]=c;H[h+136|0]=c>>>8;H[h+137|0]=c>>>16;H[h+138|0]=c>>>24;c=K[22309]|K[22310]<<8|(K[22311]<<16|K[22312]<<24);J[h+128>>2]=K[22305]|K[22306]<<8|(K[22307]<<16|K[22308]<<24);J[h+132>>2]=c;J[699344]=0;ha(6847,i|0,h+128| +0,h+138|0,h+118|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;J[h+4>>2]=1617;d=Bg(h+8|0,0,h+4|0);e=a;a=J[h+148>>2]-J[b>>2]|0;if((a|0)<99)break g;zh(d,Dc(a+2|0));if(J[d>>2])break h;J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;break a}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;break c}e=J[d>>2]}if(K[h+143|0]){H[e|0]=45;e=e+1|0}c=J[b>>2];while(1){if(M[h+148>>2]<=c>>>0){H[e|0]=0;J[h>>2]=g;if((Zg(h+16|0,13199,h)|0)!=1){J[699344]=0;$(6893,4888);a=J[699344];J[699344]=0;if((a|0)!=1)break a; +break d}Ie(d)}else{a=h+118|0;l=e,m=K[(h+(aG(a,a+10|0,c)-h|0)|0)+10|0],H[l|0]=m;e=e+1|0;c=c+1|0;continue}break}}J[699344]=0;a=aa(6744,h+268|0,h+264|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(a)J[f>>2]=J[f>>2]|2;d=J[h+268>>2];a=J[h+144>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);Ie(b);fc=h+272|0;return d|0}c=Z()|0;break c}c=Z()|0;Ie(d)}a=J[h+144>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)kc[J[J[a>>2]+8>>2]](a)}Ie(b);ba(c|0);B()}B()}function UYa(a,b,c,d,e,f,g){a=a| +0;b=b|0;c=c|0;d=d|0;e=e|0;f=Q(f);g=Q(g);var h=0,i=0,j=0,k=0,l=0,m=0;k=fc-32|0;fc=k;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1065353216;J[a+32>>2]=0;J[a+36>>2]=0;J[a+76>>2]=0;J[a+80>>2]=1;J[a+68>>2]=0;J[a+72>>2]=0;J[a+60>>2]=1056964608;J[a+64>>2]=1065353216;I[a+56>>1]=0;J[a+48>>2]=1065353216;J[a+52>>2]=1065353216;J[a+8>>2]=0;J[a+12>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=1;i=a+88|0;h=i;J[h>>2]=0;J[h+4>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0; +J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[699344]=0;h=_(4,24)|0;j=J[699344];J[699344]=0;if((j|0)==1){a=Z()|0;xk(i);ba(a|0);B()}m=a+80|0;i=h+24|0;J[a+140>>2]=i;J[a+132>>2]=h;J[h+16>>2]=0;J[h+20>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[a+136>>2]=i;Ac(a+148|0,0,88);h=a+200|0;a:{if((h|0)!=(b|0)){i=J[b+4>>2];b=J[b>>2];J[699344]=0;ca(2474,h|0,b|0,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+84>>2]=1;J[699344]=0;j=Pa(3409,k|0,256,Q(f),Q(g))|0;b=J[699344];J[699344]=0; +if((b|0)!=1){J[a+88>>2]=J[j>>2];i=J[a+92>>2];if(i){b=J[a+96>>2];h=i;if((b|0)!=(h|0)){while(1){h=b-12|0;l=J[h>>2];if(l){J[b-8>>2]=l;uc(l)}b=h;if((h|0)!=(i|0))continue;break}h=J[a+92>>2]}J[a+96>>2]=i;uc(h);J[a+100>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0}J[a+92>>2]=J[j+4>>2];J[a+96>>2]=J[j+8>>2];J[a+100>>2]=J[j+12>>2];b=J[j+20>>2];J[a+104>>2]=J[j+16>>2];J[a+108>>2]=b;b=J[j+28>>2];J[a+112>>2]=J[j+24>>2];J[a+116>>2]=b;J[a+72>>2]=0;J[a+76>>2]=0;b:{if(e){a=a+224|0;if((a|0)==(c|0)){h=1;break b}b=J[c+4>>2];c=J[c>> +2];J[699344]=0;ca(3412,a|0,c|0,b|0);a=J[699344];J[699344]=0;h=1;if((a|0)!=1)break b;break a}h=4;a=a+212|0;if((a|0)==(d|0))break b;b=J[d+4>>2];c=J[d>>2];J[699344]=0;ca(3413,a|0,c|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[m>>2]=h;fc=k+32|0;return}}a=Z()|0;Se(m);ba(a|0);B()}function P1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!b)return-1;e=J[b>>2];a:{if(!a)while(1){a=K[e|0];c=(a&223)-65|0;b:{if((a-48&255)>>>0<10|(c&255)>>>0<26)break b;c:switch(a-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 58:case 60:case 62:case 93:break b; +case 4:break c;default:break a}d:{c=K[e+1|0];if((c-48&255)>>>0<10)break d;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break d;default:break a}}c=K[e+2|0];if((c-48&255)>>>0<10)break b;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break b;default:break a}}e=((a|0)==37?3:1)+e|0;continue}while(1){e:{d=K[e|0];c=(d&223)-65|0;f:{if((d-48&255)>>>0<10|(c&255)>>>0<26)break f;g:{h:switch(d- +33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 25:case 26:case 28:case 30:case 31:case 58:case 60:case 62:case 93:break f;case 4:break h;default:break g}i:{c=K[e+1|0];if((c-48&255)>>>0<10)break i;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i;default:break g}}c=K[e+2|0];if((c-48&255)>>>0<10)break f;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break f; +default:break g}}c=J[a+36>>2];if(!(c&1))break e;switch(d-92|0){case 0:case 2:case 4:case 31:case 32:case 33:break f;default:break e}}e=((d|0)==37?3:1)+e|0;continue}break}d=J[a+32>>2];if(d){kc[J[663199]](d);c=J[a+36>>2]}f=J[b>>2];d=e-f|0;j:{if(c&2){c=0;if(!f|(d|0)<0)break j;c=kc[J[663198]](d+1|0)|0;if(!c){c=0;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break j}g=xc(c,f,d)+d|0,h=0,H[g|0]=h;break j}c=Wo(f,d)}J[a+32>>2]=c}J[b>>2]=e;return 0}function ORa(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,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;u=fc-192|0;fc=u;f=Ac(a,0,256);while(1){a:{i=f;d=J[(j<<2)+b>>2]+c|0;l=K[d+5|0];m=K[d+1|0];g=l+m|0;h=K[d+3|0];n=K[d+4|0];o=K[d+2|0];e=n+o|0;p=K[d+6|0];r=K[d|0];d=p+r|0;q=e+d|0;J[f>>2]=((g+h|0)+q<<2)-3584;q=P(q-(h<<2)|0,2896);s=P(d-g|0,7223)+1024|0;d=P(d-e|0,7542);J[f+24>>2]=q+(s-d|0)>>11;e=P(g-e|0,2578);J[f+16>>2]=(e+s|0)+P(g-(h<<1)|0,-5793)>>11;J[f+8>>2]=(q+(d+e|0)|0)+1024>>11;d=o-n|0;g=r-p|0;h=P(d+g|0,5027)+1024|0;t=h+P(d, +15326)|0;k=d;d=m-l|0;e=P(k+d|0,-11295);J[f+20>>2]=t+e>>11;k=e;e=P(g-d|0,1395);d=P(d+g|0,7663);J[f+12>>2]=((k+e|0)+d|0)+1024>>11;J[f+4>>2]=d+(h-e|0)>>11;d=j-7|0;j=j+1|0;f=u;b:switch(d|0){case 0:continue;case 6:break a;default:break b}f=i+32|0;continue}break}while(1){c=J[f+32>>2];g=J[a+128>>2];h=c+g|0;i=J[f+96>>2];d=J[a+64>>2];e=i+d|0;j=h+e|0;l=J[f+64>>2];m=J[a+96>>2];n=l+m|0;b=n<<1;o=J[a+32>>2];p=J[f+128>>2];r=o+p|0;q=J[f>>2];s=J[a+160>>2];v=q+s|0;w=r+v|0;x=J[a+224>>2];y=J[a+192>>2];z=x+y|0;A=J[f+ +160>>2];B=J[a>>2];t=A+B|0;k=z+t|0;J[a+128>>2]=((P(j-b|0,-4717)+P(w-b|0,1684)|0)+P(k-b|0,6817)|0)+16384>>15;J[a>>2]=P(((j+n|0)+w|0)+k|0,5350)+16384>>15;b=B-A|0;l=m-l|0;i=d-i|0;d=o-p|0;m=i+d|0;j=s-q|0;g=g-c|0;n=j-g|0;c=y-x|0;J[a+224>>2]=P(b+l-((m+n|0)+c)|0,5350)+16384>>15;h=e-h|0;e=t-z|0;o=r-v|0;p=P(e+o|0,5915)+16384|0;J[a+192>>2]=(P(h,-7376)+p|0)+P(o,-9198)>>15;J[a+64>>2]=(p+P(h,3283)|0)+P(e,1461)>>15;h=P(l,5350);e=((P(n,7518)-h|0)+P(m,-847)|0)+16384|0;k=(e+P(i,-12700)|0)+P(g,5992)|0;i=P(c+g|0,4025)+ +P(b+i|0,6406)|0;J[a+160>>2]=k+i>>15;k=(e+P(d,-2269)|0)+P(j,-16423)|0;d=P(j-c|0,2499)+P(b+d|0,7141)|0;J[a+96>>2]=k+d>>15;J[a+32>>2]=(i+((h+(d+P(b,-6029)|0)|0)+P(c,-679)|0)|0)+16384>>15;f=f+4|0;a=a+4|0;C=C+1|0;if((C|0)!=7)continue;break}fc=u+192|0}function tH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;J[a+8>>2]=0;J[a>>2]=2392932;J[a+12>>2]=J[685894];f=a+8|0;a:{b=J[b>>2];b:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break b;a=Z()|0;break a}J[c+ +12>>2]=0}J[699344]=0;aa(5153,f|0,c+12|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}ea(0)|0;Bc();B()}a=Z()|0;zc(c+12|0);break a}b=J[a+8>>2];b=J[(b?b+12|0:2743576)>>2];J[a+20>>2]=0;J[a+12>>2]=b;J[a+16>>2]=2438824;J[699344]=0;e=_(4,52)|0;b=J[699344];J[699344]=0;d:{e:{f:{g:{h:{if((b|0)!=1){J[699344]=0;d=Io(e, +8,6246,6247,6248,6249,6250);b=J[699344];J[699344]=0;if((b|0)==1)break h;J[d+4>>2]=J[d+4>>2]+1;b=J[a+20>>2];i:{if(!b)break i;e=J[b+4>>2]-1|0;J[b+4>>2]=e;if(e)break i;kc[J[J[b>>2]+4>>2]](b)}J[a+20>>2]=d;J[a+24>>2]=2438824;J[a+28>>2]=0;J[699344]=0;e=_(4,52)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;d=Io(e,8,6246,6247,6248,6249,6250);b=J[699344];J[699344]=0;if((b|0)==1)break g;J[d+4>>2]=J[d+4>>2]+1;b=J[a+28>>2];j:{if(!b)break j;f=J[b+4>>2]-1|0;J[b+4>>2]=f;if(f)break j;kc[J[J[b>>2]+4>> +2]](b)}H[a+32|0]=0;J[a+28>>2]=d;fc=c+16|0;return a|0}b=Z()|0;J[a+16>>2]=2392964;break d}b=Z()|0;uc(e);J[a+16>>2]=2392964;c=J[a+20>>2];if(!c)break d;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0;break d}b=Z()|0;uc(e);J[a+24>>2]=2392964;c=J[a+28>>2];if(!c)break e;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0;break e}b=Z()|0;J[a+24>>2]=2392964}J[a+16>>2]=2392964;c=J[a+20>>2];if(!c)break d;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+20>> +2]=0}wc(f);ba(b|0);B()}wc(f);ba(a|0);B()}function oja(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;a=fc-256|0;fc=a;J[a+248>>2]=c;J[a+252>>2]=b;h=ml(d);Us(a+196|0,d,a+247|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6744,a+252|0,a+248|0)|0;g=J[699344];J[699344]=0;if((g| +0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+252|0;g=_(6745,d| +0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d;J[699344]=0;g=Jp(g,h,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2632752);i=J[699344];J[699344]=0;if((i|0)==1)break d;if(g)break c;J[699344]=0;_(6747,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=Wy(6840,c,J[a+180>>2],e,h);d=jc;h=J[699344];J[699344]=0;f:{if((h| +0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6744,a+252|0,a+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];jd(b);jd(a+196|0);fc=a+256|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function hja(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;a=fc-256|0;fc=a;J[a+248>>2]=c;J[a+252>>2]=b;h=ml(d);Us(a+196|0,d,a+247|0);b=Ze(a+184|0);if(K[b+ +11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6744,a+252|0,a+248|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]& +127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+252|0;g=_(6745,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d;J[699344]=0;g=Jp(g,h,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2632752);i=J[699344];J[699344]=0;if((i|0)==1)break d;if(g)break c;J[699344]=0;_(6747,d|0)|0; +d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=Wy(6844,c,J[a+180>>2],e,h);d=jc;h=J[699344];J[699344]=0;f:{if((h|0)==1)break f;J[f>>2]=c;J[f+4>>2]=d;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6744,a+252|0,a+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f; +if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];jd(b);jd(a+196|0);fc=a+256|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function WYa(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=Q(f);g=Q(g);var h=0,i=0,j=0,k=0,l=0,m=0;k=fc-32|0;fc=k;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1065353216;J[a+32>>2]=0;J[a+36>>2]=0;J[a+76>>2]=0;J[a+80>>2]=1;J[a+68>>2]=0;J[a+72>>2]=0;J[a+60>>2]=1056964608;J[a+64>>2]=1065353216;I[a+56>>1]=0;J[a+48>>2]=1065353216;J[a+52>>2]=1065353216;J[a+8>>2]=0;J[a+12>>2]=0;J[a+ +40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=1;i=a+88|0;h=i;J[h>>2]=0;J[h+4>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[699344]=0;h=_(4,24)|0;j=J[699344];J[699344]=0;if((j|0)==1){a=Z()|0;xk(i);ba(a|0);B()}l=a+80|0;i=h+24|0;J[a+140>>2]=i;J[a+132>>2]=h;J[h+16>>2]=0;J[h+20>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[a+136>>2]=i;Ac(a+148|0,0,88);h=a+164|0;a:{if((h|0)!=(b|0)){i=J[b+4>>2];b=J[b>>2];J[699344]= +0;ca(3410,h|0,b|0,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[l>>2]=1;J[699344]=0;j=Pa(3409,k|0,256,Q(f),Q(g))|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[a+88>>2]=J[j>>2];i=J[a+92>>2];if(i){b=J[a+96>>2];h=i;if((b|0)!=(h|0)){while(1){h=b-12|0;m=J[h>>2];if(m){J[b-8>>2]=m;uc(m)}b=h;if((h|0)!=(i|0))continue;break}h=J[a+92>>2]}J[a+96>>2]=i;uc(h);J[a+100>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0}J[a+92>>2]=J[j+4>>2];J[a+96>>2]=J[j+8>>2];J[a+100>>2]=J[j+12>>2];b=J[j+20>>2];J[a+104>>2]=J[j+16>>2];J[a+108>>2]= +b;b=J[j+28>>2];J[a+112>>2]=J[j+24>>2];J[a+116>>2]=b;J[a+72>>2]=0;J[a+76>>2]=0;b:{if(e){a=a+188|0;if((a|0)==(d|0)){h=1;break b}b=J[d+4>>2];c=J[d>>2];J[699344]=0;ca(2339,a|0,c|0,b|0);a=J[699344];J[699344]=0;h=1;if((a|0)!=1)break b;break a}h=2;a=a+176|0;if((a|0)==(c|0))break b;b=J[c+4>>2];c=J[c>>2];J[699344]=0;ca(3411,a|0,c|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[l>>2]=h;fc=k+32|0;return}}a=Z()|0;Se(l);ba(a|0);B()}function ow(a,b,c,d,e){var f=0,g=0,h=0;f=fc-16|0;fc=f;g=kc[J[e>>2]](b,a)| +0;h=kc[J[e>>2]](c,b)|0;a:{b:{if(!g){g=0;if(!h)break a;J[f+8>>2]=J[b+8>>2];g=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=g;J[b+8>>2]=J[c+8>>2];g=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=g;J[c+8>>2]=J[f+8>>2];g=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=g;g=1;if(!(kc[J[e>>2]](b,a)|0))break a;J[f+8>>2]=J[a+8>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[a+8>>2]=J[b+8>>2];g=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=g;J[b+8>>2]=J[f+8>>2];g=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=g;break b}if(h){J[f+8>>2]=J[a+8>>2];g=J[a+4>>2];J[f>> +2]=J[a>>2];J[f+4>>2]=g;J[a+8>>2]=J[c+8>>2];g=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=g;J[c+8>>2]=J[f+8>>2];g=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=g;g=1;break a}J[f+8>>2]=J[a+8>>2];g=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=g;J[a+8>>2]=J[b+8>>2];g=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=g;J[b+8>>2]=J[f+8>>2];g=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=g;g=1;if(!(kc[J[e>>2]](c,b)|0))break a;J[f+8>>2]=J[b+8>>2];g=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=g;J[b+8>>2]=J[c+8>>2];g=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=g;J[c+8>>2]= +J[f+8>>2];g=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=g}g=2}c:{if(!(kc[J[e>>2]](d,c)|0))break c;J[f+8>>2]=J[c+8>>2];h=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=h;J[c+8>>2]=J[d+8>>2];h=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=h;J[d+8>>2]=J[f+8>>2];h=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=h;if(!(kc[J[e>>2]](c,b)|0)){g=g+1|0;break c}J[f+8>>2]=J[b+8>>2];d=J[b+4>>2];J[f>>2]=J[b>>2];J[f+4>>2]=d;J[b+8>>2]=J[c+8>>2];d=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=d;J[c+8>>2]=J[f+8>>2];d=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=d;if(!(kc[J[e>> +2]](b,a)|0)){g=g+2|0;break c}J[f+8>>2]=J[a+8>>2];c=J[a+4>>2];J[f>>2]=J[a>>2];J[f+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[b+8>>2]=J[f+8>>2];a=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=a;g=g+3|0}fc=f+16|0;return g}function nN(a,b){var c=0,d=0,e=0,f=0,g=0;c=I[a+1044>>1];a:{d=L[a+1046>>1];if(!d){b:{if((c|0)>0)break b;J[a+1056>>2]=J[a+1052>>2];c=J[a+1020>>2];if((c|0)>=16383){c=0;d=kc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=d;if((d|0)<=16382)H[d+J[a+1028>>2]| +0]=255;J[a+1020>>2]=0}if(J[a+1024>>2]<=(c|0))break a;J[a+1020>>2]=c+1;d=K[J[a+1028>>2]+c|0];I[a+1044>>1]=d;c=0;if(!d)break b;d=0;while(1){c=J[a+1020>>2];if((c|0)>=16383){c=kc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=c;if((c|0)<=16382)H[c+J[a+1028>>2]|0]=255;J[a+1020>>2]=0;c=0}if(J[a+1024>>2]<=(c|0))return-1;J[a+1020>>2]=c+1;H[J[a+1052>>2]+d|0]=K[J[a+1028>>2]+c|0];c=I[a+1044>>1];d=d+1|0;if((c|0)>(d|0))continue;break}}d=J[a+1056>>2];J[a+1056>>2]=d+1;d=K[d|0];I[a+1046>>1]=8;H[a+1048| +0]=d;c=c-1|0;I[a+1044>>1]=c;d=8}if(c<<16>>16<0)return I[a+1036>>1];f=d<<16>>16;g=K[a+1048|0]>>>8-f|0;e=I[a+1032>>1];if((f|0)<(e|0))while(1){c:{if(c<<16>>16>0)break c;J[a+1056>>2]=J[a+1052>>2];c=J[a+1020>>2];if((c|0)>=16383){c=kc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=c;if((c|0)<=16382)H[c+J[a+1028>>2]|0]=255;J[a+1020>>2]=0;c=0}if(J[a+1024>>2]<=(c|0))break a;J[a+1020>>2]=c+1;d=K[J[a+1028>>2]+c|0];I[a+1044>>1]=d;c=0;if(!d)break c;d=0;while(1){c=J[a+1020>>2];if((c|0)>=16383){c= +kc[J[J[b>>2]+12>>2]](b,J[a+1028>>2],1,16383,0,0)|0;J[a+1024>>2]=c;if((c|0)<=16382)H[c+J[a+1028>>2]|0]=255;J[a+1020>>2]=0;c=0}if(J[a+1024>>2]<=(c|0))return-1;J[a+1020>>2]=c+1;H[J[a+1052>>2]+d|0]=K[J[a+1028>>2]+c|0];c=I[a+1044>>1];d=d+1|0;if((c|0)>(d|0))continue;break}}d=J[a+1056>>2];J[a+1056>>2]=d+1;d=K[d|0];H[a+1048|0]=d;e=L[a+1046>>1];f=e+8|0;I[a+1046>>1]=f;c=c-1|0;I[a+1044>>1]=c;g=d<>16;e=I[a+1032>>1];if((d|0)<(e|0))continue;break}I[a+1046>>1]=d-e;return(J[(e<<2)+47888>>2]&g)<<16>> +16}I[a+1044>>1]=65535;return-1}function $8a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)< +(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>> +2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;Ac(g+ +2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Nl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Fl(a){var b=0,c=0,d=0,e=0,f=0,g=0;if(a){a:switch(J[a+4>>2]-2|0){case 12:Ur(a);return;case 16:b=J[a+8>>2];if(b)kc[J[663199]](b);b=J[a+12>>2];if(b)kc[J[663199]](b);kc[J[663199]](a); +return;case 0:nx(a);return;default:break a}b:{if(!J[693393])break b;b=J[693391];if(!b)break b;kc[b|0](a)}b=J[a+32>>2];if(b)e=J[b+80>>2];c=J[a+4>>2];if((c|0)==17){d=J[a+56>>2];c:{if(!d)break c;if(e){b=e;while(1){c=J[b+16>>2];if(c)while(1){if(d>>>0<=M[c+4>>2]&d>>>0>=c+20>>>0)break c;c=J[c>>2];if(c)continue;break}b=J[b+20>>2];if(b)continue;break}}kc[J[663199]](d)}d=J[a+52>>2];d:{if(!d)break d;if(e){b=e;while(1){c=J[b+16>>2];if(c)while(1){if(d>>>0<=M[c+4>>2]&d>>>0>=c+20>>>0)break d;c=J[c>>2];if(c)continue; +break}b=J[b+20>>2];if(b)continue;break}}kc[J[663199]](d)}c=J[a+4>>2]}d=J[a+12>>2];e:{f:{if(d){b=5;if((c|0)==5)break f;Ym(d);b=J[a+4>>2]}else b=c;g:{if(b>>>0>20|!(1<>2];if(!c)break g;while(1){b=J[c+24>>2];nx(c);c=b;if(c)continue;break}b=J[a+4>>2]}f=1;if((b|0)==1)break e}f=b;if(b-19>>>0<2)break e;f=b;if((b|0)==5)break e;g=J[a+40>>2];f=b;if(!g)break e;f=b;if((a+44|0)==(g|0))break e;if(e){d=e;while(1){c=J[d+16>>2];if(c)while(1){f=b;if(!(M[c+4>>2]>>0|c+20>>>0>g>>>0))break e; +c=J[c>>2];if(c)continue;break}d=J[d+20>>2];if(d)continue;break}}kc[J[663199]](g);f=J[a+4>>2]}d=f;b=J[a+8>>2];h:{if(!b)break h;i:switch(d-3|0){case 0:case 5:break h;default:break i}if(e)while(1){c=J[e+16>>2];if(c)while(1){if(b>>>0<=M[c+4>>2]&b>>>0>=c+20>>>0)break h;c=J[c>>2];if(c)continue;break}e=J[e+20>>2];if(e)continue;break}kc[J[663199]](b);d=J[a+4>>2]}j:{if(!(1<>>0>20)break j;c=J[a+48>>2];if(!c)break j;while(1){b=J[c>>2];e=J[c+8>>2];if(e)kc[J[663199]](e);e=J[c+12>>2];if(e)kc[J[663199]](e); +kc[J[663199]](c);c=b;if(b)continue;break}}kc[J[663199]](a)}}function QFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;b=J[b+4>>2];if(b){c=fc-32|0;fc=c;J[a>>2]=123;J[a+4>>2]=0;H[a+11|0]=1;d=J[b+12>>2];J[c+12>>2]=0;J[c+28>>2]=0;J[699344]=0;J[c+24>>2]=0;f=d;d=c+12|0;ma(5195,f|0,0,d|0,c+28|0,c+24|0);e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((e|0)==1)break i;J[699344]=0;e=J[c+28>>2];g=J[c+12>>2];aa(3026,a|0,2386656)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;da(2279,d|0,P(g,100)| +0);g=J[699344];J[699344]=0;if((g|0)==1)break h;J[699344]=0;f=d;d=K[c+23|0];g=d<<24>>24<0;ga(2960,a|0,(g?J[c+12>>2]:f)|0,(g?J[c+16>>2]:d)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;if(H[c+23|0]<0)uc(J[c+12>>2]);J[699344]=0;aa(3026,a|0,2387500)|0;d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;d=c+12|0;da(2279,d|0,P(e,100)|0);e=J[699344];J[699344]=0;if((e|0)==1)break f;J[699344]=0;f=d;d=K[c+23|0];e=d<<24>>24<0;ga(2960,a|0,(e?J[c+12>>2]:f)|0,(e?J[c+16>>2]:d)|0)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break e;if(H[c+23|0]<0)uc(J[c+12>>2]);d=0;J[699344]=0;aa(3026,a|0,2388176)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;b=J[b+12>>2];if(b){J[699344]=0;d=_(5196,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d}J[699344]=0;b=c+12|0;da(2279,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break d;J[699344]=0;f=b;b=K[c+23|0];d=b<<24>>24<0;ga(2960,a|0,(d?J[c+12>>2]:f)|0,(d?J[c+16>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(H[c+23|0]<0)uc(J[c+12>>2]);J[699344]=0;aa(3026,a|0, +2388868)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[c+23|0]>=0)break b;uc(J[c+12>>2]);break b}b=Z()|0;break b}b=Z()|0;if(H[c+23|0]>=0)break b;uc(J[c+12>>2]);break b}b=Z()|0;break b}b=Z()|0;if(H[c+23|0]>=0)break b;uc(J[c+12>>2])}if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}fc=c+32|0;return}J[a>>2]=0;H[a+11|0]=0}function ybb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+ +1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b; +j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d; +if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c, +d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Yl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function g9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)? +h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h; +g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]= +J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;Ac(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Nl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function e9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h= +vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0; +g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;Ac(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+ +4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Nl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function c9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+ +88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>> +2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+ +12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g+4>>2]!=1){J[g+4>>2]=1;Ac(g+2400|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Nl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}} +function Sjb(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;d=fc-48|0;fc=d;i=J[b+28>>2];J[d+24>>2]=J[b+8>>2];o=d,p=Rf(b,d+8|0),J[o+12>>2]=p;c=J[d+8>>2];a:{if(c)break a;c=Te(b,326592,d+12|0);J[d+8>>2]=c;if(c)break a;c=1330926671;b:{if(J[d+12>>2]!=1330926671){e=J[d+24>>2];c=yd(b,e+12|0);J[d+44>>2]=c;if(c)break a;c=2;if(!L[d+16>>1])break a;j=e+28|0;e=0;while(1){c:{c=Te(b,326624,d+28|0);J[d+44>>2]=c;if(c){I[d+16>>1]=e-1;break c}g=J[b+4>>2];h=J[d+36>>2];d:{if(g>>>0>>0)break d; +c=J[d+28>>2];m=g-h|0;g=J[d+40>>2];if(!((c|0)==1986884728|m>>>0>=g>>>0)&(c|0)!=1752003704)break d;f=f+1|0;e:{if((c|0)<=1651008867){if((c|0)==1296389185)break e;if((c|0)!=1397313095)break d;l=1;break d}if((c|0)!=1751474532&(c|0)!=1651008868)break d;if(g>>>0<54){c=142;break a}c=yd(b,h+12|0);J[d+44>>2]=c;if(c)break a;Rf(b,d+44|0);c=J[d+44>>2];if(c)break a;c=yd(b,j+(e<<4)|0);J[d+44>>2]=c;k=1;if(!c)break d;break a}n=1}e=e+1|0;if(e>>>0>1])continue}break}c=2;if(!(f&65535))break a;if(!k){c=142;if(!l| +!n)break a}J[d+8>>2]=0;c=J[d+12>>2];break b}f=L[d+16>>1];if(f)break b;c=2;break a}J[a+148>>2]=c;I[a+152>>1]=f;o=a,p=_c(i,16,0,f&65535,0,d+8|0),J[o+156>>2]=p;c=J[d+8>>2];if(c)break a;c=yd(b,J[d+24>>2]+12|0);J[d+8>>2]=c;if(c)break a;c=af(b,L[d+16>>1]<<4);J[d+8>>2]=c;if(c)break a;f:{if(!L[d+16>>1]){f=0;break f}j=0;f=0;while(1){h=Fh(b);l=Fh(b);i=Fh(b);k=Fh(b);c=J[b+4>>2];g:{if(c>>>0>>0)break g;c=c-i|0;if(c>>>0>>0){if((h|0)!=1986884728&(h|0)!=1752003704)break g;k=c&-4}g=J[a+156>>2];e=f&65535;h:{if(!e){e= +0;break h}c=0;while(1){if((h|0)==J[g+(c<<4)>>2])break g;c=c+1|0;if((e|0)!=(c|0))continue;break}}c=g+(e<<4)|0;J[c+12>>2]=k;J[c+8>>2]=i;J[c+4>>2]=l;J[c>>2]=h;f=f+1|0}j=j+1|0;if(L[d+16>>1]>(j&65535)>>>0)continue;break}}I[a+152>>1]=f;ve(b);c=J[d+8>>2]}fc=d+48|0;return c|0}function Hbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+ +1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]= +h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)== +J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Zl(e,J[f>>2],J[f+4>>2], +J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function qja(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;a=fc-256|0;fc=a;J[a+248>>2]=c;J[a+252>>2]=b;i=ml(d);Us(a+196|0,d,a+247|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6744,a+252|0,a+248|0)|0;g=J[699344]; +J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d= +a+252|0;g=_(6745,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=Jp(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2632752);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6747,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=ha(6836,c|0,J[a+180>>2],e|0,i|0)|0;d=J[699344]; +J[699344]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6744,a+252|0,a+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];jd(b);jd(a+196|0);fc=a+256|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function mja(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;a=fc-256|0;fc=a;J[a+248>>2]=c;J[a+252>>2]=b;i=ml(d);Us(a+196|0,d,a+247|0);b=Ze(a+ +184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6744,a+252|0,a+248|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d= +K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+252|0;g=_(6745,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=Jp(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2632752);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6747, +d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=ha(6841,c|0,J[a+180>>2],e|0,i|0)|0;d=J[699344];J[699344]=0;f:{if((d|0)==1)break f;I[f>>1]=c;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6744,a+252|0,a+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f; +if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];jd(b);jd(a+196|0);fc=a+256|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function jja(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;a=fc-256|0;fc=a;J[a+248>>2]=c;J[a+252>>2]=b;i=ml(d);Us(a+196|0,d,a+247|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]= +0;while(1){d:{J[699344]=0;d=aa(6744,a+252|0,a+248|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c=J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+ +11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+252|0;g=_(6745,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=Jp(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2632752);h=J[699344];J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6747,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+ +8>>2]}J[699344]=0;c=ha(6842,c|0,J[a+180>>2],e|0,i|0)|0;d=J[699344];J[699344]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6744,a+252|0,a+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];jd(b);jd(a+196|0);fc=a+256|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function ija(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;a=fc-256|0;fc= +a;J[a+248>>2]=c;J[a+252>>2]=b;i=ml(d);Us(a+196|0,d,a+247|0);b=Ze(a+184|0);if(K[b+11|0]>>>7|0)c=(J[b+8>>2]&2147483647)-1|0;else c=10;J[699344]=0;da(6834,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=c;J[a+12>>2]=a+16;J[a+8>>2]=0;while(1){d:{J[699344]=0;d=aa(6744,a+252|0,a+248|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(d)break c;g=J[a+180>>2];if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if((g|0)==(d+c|0)){if(K[b+11|0]>>>7|0)c= +J[b+4>>2];else c=K[b+11|0]&127;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;da(6834,b|0,d<<1);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=K[b+11|0]>>>7|0?(J[b+8>>2]&2147483647)-1|0:10;J[699344]=0;da(6834,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=c;if(K[b+11|0]>>>7|0)c=J[b>>2];else c=b;J[a+180>>2]=d+c}J[699344]=0;d=a+252|0;g=_(6745,d|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[699344]=0;g=Jp(g,i,c,a+180|0,a+8|0,H[a+247|0],a+196|0,a+16|0,a+12|0,2632752);h=J[699344]; +J[699344]=0;if((h|0)==1)break d;if(g)break c;J[699344]=0;_(6747,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}break b}break b}if(K[a+207|0]>>>7|0)d=J[a+200>>2];else d=K[a+207|0]&127;e:{if(!d)break e;d=J[a+12>>2];if((d-(a+16|0)|0)>159)break e;J[a+12>>2]=d+4;J[d>>2]=J[a+8>>2]}J[699344]=0;c=ha(6843,c|0,J[a+180>>2],e|0,i|0)|0;d=J[699344];J[699344]=0;f:{if((d|0)==1)break f;J[f>>2]=c;J[699344]=0;Nh(a+196|0,a+16|0,J[a+12>>2],e);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=aa(6744, +a+252|0,a+248|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(c)J[e>>2]=J[e>>2]|2;c=J[a+252>>2];jd(b);jd(a+196|0);fc=a+256|0;break a}}c=Z()|0;jd(b);jd(a+196|0);ba(c|0);B()}return c|0}function NHa(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;c=fc-48|0;fc=c;if(!Th(b)){h=c+36|0;J[h>>2]=0;J[h+4>>2]=0;H[h+8|0]=0;J[699344]=0;f=$g(b);e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{if((e|0)!=1){while(1){J[699344]=0;i=aa(4975,b|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break d;if(!i)break a;J[699344]=0;e=c+12|0;da(4962,e|0,b|0);g=J[699344];J[699344]=0;if((g|0)==1)break o;J[699344]=0;e=aa(4985,c+24|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break n;J[699344]=0;dg(h,e);g=J[699344];J[699344]=0;if((g|0)==1)break m;Rc(e);if(H[c+23|0]<0)uc(J[c+12>>2]);J[699344]=0;e=Qd(h,2379232);g=J[699344];J[699344]=0;if((g|0)==1)break d;if(!e)continue;break}J[699344]=0;e=c+12|0;J[e>>2]=0;J[e+4>>2]=0;H[e+8|0]=0;f=J[699344];J[699344]=0;if((f|0)==1)break k;J[699344]=0;ca(4989,b|0, +2379308,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;f=J[e+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break g;if(!f)break h;J[699344]=0;da(5039,c|0,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break j;a=J[a+36>>2];J[699344]=0;a=aa(5047,a|0,(H[c+11|0]<0?J[c>>2]:c)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;ca(5048,d|0,a|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break i;if(H[c+11|0]>=0)break b;uc(J[c>>2]);break b}b=Z()|0;break c}b=Z()|0;break c}b=Z()|0;break l}b=Z()|0;Rc(e)}if(H[c+ +23|0]>=0)break c;uc(J[c+12>>2]);break c}b=Z()|0;break c}b=Z()|0;Rc(e);break c}b=Z()|0;if(H[c+11|0]>=0)break e;uc(J[c>>2]);Rc(e);break c}J[699344]=0;a=_(4,36)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0;b=aa(5049,a|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break f;J[699344]=0;ca(5048,d|0,b|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break b}b=Z()|0;Rc(e);break c}b=Z()|0;uc(a)}Rc(e);break c}b=Z()|0}Rc(h);ba(b|0);B()}Rc(e)}Rc(h)}fc=c+48|0;return i|0}function v1(a){var b=0,c=0,d=0,e=0,f= +0,g=0,h=0,i=0;e=fc-128|0;fc=e;a:{if(J[a+292>>2])break a;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break a;Rd(a)}b:{if(J[a+172>>2]==-1){b=0;break b}f=Mf(a,e+12|0);c:{while(1){if(!Kr(J[a+360>>2],f))break c;d:{if((g|0)<101){g=g+1|0;break d}g=0;if(J[a+292>>2])break d;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break d;Rd(a)}e:{if(J[e+12>>2]==1){H[(e+16|0)+d|0]=f;d=d+1|0;break e}d=ej((e+16|0)+d|0,f)+d|0}b=J[a+36>>2];c=J[b+16>>2];f:{if(K[c|0]==10){J[b+32>>2]=1;J[b+28>>2]=J[b+28>>2]+1;break f}J[b+ +32>>2]=J[b+32>>2]+1}i=b;b=c+J[e+12>>2]|0;J[i+16>>2]=b;if(K[b|0]==37)Yd(a);f=Mf(a,e+12|0);if(!f){g:{if(J[a+292>>2])break g;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break g;Rd(a)}if(J[a+172>>2]==-1){b=0;break b}g=0;f=Mf(a,e+12|0)}if((d|0)<100)continue;break}b=0;h=d<<1;c=kc[J[663198]](h)|0;if(!c){se(a,0);break b}b=xc(c,e+16|0,d);if(Kr(J[a+360>>2],f))while(1){h:{if((g|0)<101){g=g+1|0;break h}i:{if(J[a+292>>2])break i;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break i;Rd(a)}g=0;if(J[a+172>>2]!= +-1)break h;b=0;kc[J[663199]](c);break b}j:{if((d+10|0)<=(h|0)){b=c;break j}if(!(K[a+362|0]&8|(h|0)<50001)){k:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break k;J[a+84>>2]=110;J[e+4>>2]=7229;J[e>>2]=6556;Hc(0,0,0,a,0,1,110,3,7229,0,0,0,32777,e);J[a+12>>2]=0;if(J[a+288>>2])break k;J[a+212>>2]=1}b=0;kc[J[663199]](c);break b}h=h<<1;b=kc[J[663200]](c,h)|0;if(b)break j;b=0;se(a,0);kc[J[663199]](c);break b}l:{if(J[e+12>>2]==1){H[b+d|0]=f;d=d+1|0;break l}d=ej(b+d|0,f)+d|0}c=J[a+36>>2];f=J[c+16>>2];m:{if(K[f|0]==10){J[c+ +32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break m}J[c+32>>2]=J[c+32>>2]+1}i=c;c=f+J[e+12>>2]|0;J[i+16>>2]=c;if(K[c|0]==37)Yd(a);f=Mf(a,e+12|0);c=b;if(Kr(J[a+360>>2],f))continue;break}H[b+d|0]=0;break b}if(!d){b=0;break b}b=Hl(e+16|0,d)}fc=e+128|0;return b}function Obb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>> +2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]= +2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+ +8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Zl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a; +if($c(b,d))continue;break}}}function Mbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h| +0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>> +2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+ +2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Zl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Kbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]= +3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+ +16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>> +0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2168|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e, +J[c+4>>2]);Zl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Fbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2]; +k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]= +g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a; +if(!$c(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Yl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Dbb(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;if(!(!K[a+1160|0]|J[a+1172>> +2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>>2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g| +0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g);J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0; +d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g| +0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Yl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Abb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;g=J[a+84>>2];J[a+1176>>2]=g;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+88>>2];i=J[b+112>>2];j=(h|0)<(i|0)?h:i;h=J[a+80>>2];i=J[b+104>> +2];i=(h|0)>(i|0)?h:i;if((j|0)<(i|0))break a;h=J[b+108>>2];k=(g|0)>(h|0)?g:h;g=J[a+92>>2];h=J[b+116>>2];if((k|0)>(((g|0)<(h|0)?g:h)|0))break a;h=J[e+20>>2];g=(j-i|0)+2|0;b:{if(g>>>0<=M[e+24>>2])break b;if(h)uc(h);J[e+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[e+20>>2]=h;if((g|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);h=J[e+20>>2]}J[e+16>>2]=g;l=e,m=vc(g),J[l+12>>2]=m}J[e+28>>2]=h;J[e>>2]=i;J[e+4>>2]=2147483632;g=J[c+20>>2];h=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(h>>>0<=M[c+24>>2])break c;if(g)uc(g); +J[c+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[c+20>>2]=g;if((h|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);g=J[c+20>>2]}J[c+12>>2]=h;l=c,m=vc(h),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=g;J[c+16>>2]=J[c+8>>2];I[g+2>>1]=0;g=J[d+20>>2];h=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(h>>>0<=M[d+24>>2])break d;if(g)uc(g);J[d+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[d+20>>2]=g;if((h|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);g=J[d+20>>2]}J[d+12>>2]=h;l=d,m=vc(h),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]= +g;J[d+16>>2]=J[d+8>>2];I[g+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;g=J[f+8>>2];if(J[g>>2]!=1){J[g>>2]=1;Ac(g+2144|0,0,513)}while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];h=J[c+4>>2];if((g|0)<(h|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Yl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function g8a(a,b,c){a=a|0;b=+b;c=+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;d=fc-80|0;fc=d;O[d+64>>3]=c;O[d+72>>3]=b;a:{b:{if(!K[a+120|0]){c:{if(c<1){es(d+48|0,a,d- -64|0);f=J[d+48>>2];b=O[f+8>>3];h=O[f>>3];i=J[f+68>>2];if(i)J[i+4>>2]=J[i+4>>2]+1;c=O[f+80>>3];k=O[f+72>>3];j=J[f+140>>2];if(j)J[j+4>>2]=J[j+4>>2]+1;e=f;a=J[d+52>>2];if((f|0)!=(a|0)){while(1){e=a;a=a-144|0;g=J[a+140>>2];d:{if(!g)break d;l=J[g+4>>2];J[g+4>>2]=l-1;if(l)break d;kc[J[J[g>>2]+8>>2]](g);Gc(g)}e=J[e-76>>2];e:{if(!e)break e;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break e;kc[J[J[e>>2]+ +8>>2]](e);Gc(e)}if((a|0)!=(f|0))continue;break}e=J[d+48>>2]}J[d+52>>2]=f;uc(e);c=c-b;b=k-h;break c}if(!(b>0))break b;es(d+48|0,a,d+72|0);f=J[d+48>>2];b=O[f+152>>3];h=O[f+144>>3];i=J[f+212>>2];if(i)J[i+4>>2]=J[i+4>>2]+1;c=O[f+224>>3];k=O[f+216>>3];j=J[f+284>>2];if(j)J[j+4>>2]=J[j+4>>2]+1;e=f;a=J[d+52>>2];if((f|0)!=(a|0)){while(1){e=a;a=a-144|0;g=J[a+140>>2];f:{if(!g)break f;l=J[g+4>>2];J[g+4>>2]=l-1;if(l)break f;kc[J[J[g>>2]+8>>2]](g);Gc(g)}e=J[e-76>>2];g:{if(!e)break g;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break g; +kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((a|0)!=(f|0))continue;break}e=J[d+48>>2]}J[d+52>>2]=f;uc(e);c=c-b;b=k-h}b=b*b+c*c;h:{if(!j)break h;a=J[j+4>>2];J[j+4>>2]=a-1;if(a)break h;kc[J[J[j>>2]+8>>2]](j);Gc(j)}c=Y(b);if(!i)break a;a=J[i+4>>2];J[i+4>>2]=a-1;if(a)break a;kc[J[J[i>>2]+8>>2]](i);Gc(i);break a}n=O[a+96>>3];b=O[a+80>>3];o=O[a+112>>3];c=O[a+8>>3];h=O[a+72>>3];k=h+O[a+88>>3];m=h+O[a+104>>3];p=h;h=O[a>>3];O[d+48>>3]=(k-m)*9+(p-h)*3;O[d+40>>3]=(m+h)*6+k*-12;O[d+32>>3]=(k-h)*3;h=b+n;k=b+o;O[d+24>>3]=(h- +k)*9+(b-c)*3;O[d+16>>3]=(k+c)*6+h*-12;O[d+8>>3]=(h-c)*3;c=c5(d+48|0,d+40|0,d+32|0,d+24|0,d+16|0,d+8|0,d+72|0,d- -64|0,16);break a}b=O[a+72>>3]-O[a>>3];c=b*b;b=O[a+80>>3]-O[a+8>>3];c=Y(c+b*b)}fc=d+80|0;return+c}function aTa(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;g=fc-128|0;fc=g;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,d,823044,0);break a}c:{d=J[d+116>>2];if((kc[J[J[d>>2]+ +12>>2]](d)|0)==10){d:{if(c){e=c-1|0;if(J[(e<<4)+b>>2]==4)break d}d=-1;a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,825839,0);break a}if((c|0)>=2){d=J[J[J[a+28>>2]+116>>2]+12>>2];if(!d)break c;if((kc[J[J[d>>2]+28>>2]](d)|0)!=(e|0))break c;c=c-2|0;f=c>>>0>=31?31:c;d=0;while(1){c=(d<<4)+b|0;i=J[c>>2];if(i-3>>>0>=4294967294){j=(d<<2)+g|0;h=((i|0)==1?+J[c+8>>2]:O[c+8>>3])*65536;f:{if(R(h)<2147483648){c=~~h;break f}c=-2147483648}J[j>> +2]=c}c=(d|0)!=(f|0);d=d+1|0;if(c)continue;break}xc(J[a+28>>2]+124|0,g,128);c=J[a+8>>2];kc[J[J[c>>2]+116>>2]](c,J[a+28>>2])}b=z$(J[a+20>>2],J[((e<<4)+b|0)+8>>2]);if(!b)break a;c=J[a+28>>2];a=J[c+380>>2];if(a)kc[J[J[a>>2]+4>>2]](a);J[c+380>>2]=b;break a}d=J[J[a+28>>2]+116>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)!=(c|0)){d=-1;a=J[a+108>>2];g:{if(!a)break g;a=J[a+4>>2];if(J[a+8>>2]==13)break g;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,827318,0);break a}d=0;f=J[a+28>>2];e=J[f+380>>2];if(e)kc[J[J[e>>2]+ +4>>2]](e);J[f+380>>2]=0;if((c|0)>0){c=c-1|0;e=c>>>0>=31?31:c;while(1){c=(d<<4)+b|0;f=J[c>>2];if(f-3>>>0>=4294967294){i=(d<<2)+g|0;h=((f|0)==1?+J[c+8>>2]:O[c+8>>3])*65536;h:{if(R(h)<2147483648){c=~~h;break h}c=-2147483648}J[i>>2]=c}c=(d|0)!=(e|0);d=d+1|0;if(c)continue;break}}xc(J[a+28>>2]+124|0,g,128);b=J[a+8>>2];kc[J[J[b>>2]+116>>2]](b,J[a+28>>2]);break a}d=-1;a=J[a+108>>2];i:{if(!a)break i;a=J[a+4>>2];if(J[a+8>>2]==13)break i;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,827318,0)}fc=g+128|0}function QTa(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;g=fc-128|0;fc=g;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,d,823044,0);break a}c:{d=J[d+120>>2];if((kc[J[J[d>>2]+12>>2]](d)|0)==10){d:{if(c){e=c-1|0;if(J[(e<<4)+b>>2]==4)break d}d=-1;a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,827552,0);break a}if((c|0)>=2){d=J[J[J[a+ +28>>2]+120>>2]+12>>2];if(!d)break c;if((kc[J[J[d>>2]+28>>2]](d)|0)!=(e|0))break c;c=c-2|0;f=c>>>0>=31?31:c;d=0;while(1){c=(d<<4)+b|0;i=J[c>>2];if(i-3>>>0>=4294967294){j=(d<<2)+g|0;h=((i|0)==1?+J[c+8>>2]:O[c+8>>3])*65536;f:{if(R(h)<2147483648){c=~~h;break f}c=-2147483648}J[j>>2]=c}c=(d|0)!=(f|0);d=d+1|0;if(c)continue;break}xc(J[a+28>>2]+252|0,g,128);c=J[a+8>>2];kc[J[J[c>>2]+120>>2]](c,J[a+28>>2])}b=z$(J[a+20>>2],J[((e<<4)+b|0)+8>>2]);if(!b)break a;c=J[a+28>>2];a=J[c+384>>2];if(a)kc[J[J[a>>2]+4>>2]](a); +J[c+384>>2]=b;break a}d=J[J[a+28>>2]+120>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)!=(c|0)){d=-1;a=J[a+108>>2];g:{if(!a)break g;a=J[a+4>>2];if(J[a+8>>2]==13)break g;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,828291,0);break a}d=0;f=J[a+28>>2];e=J[f+384>>2];if(e)kc[J[J[e>>2]+4>>2]](e);J[f+384>>2]=0;if((c|0)>0){c=c-1|0;e=c>>>0>=31?31:c;while(1){c=(d<<4)+b|0;f=J[c>>2];if(f-3>>>0>=4294967294){i=(d<<2)+g|0;h=((f|0)==1?+J[c+8>>2]:O[c+8>>3])*65536;h:{if(R(h)<2147483648){c=~~h;break h}c=-2147483648}J[i>>2]= +c}c=(d|0)!=(e|0);d=d+1|0;if(c)continue;break}}xc(J[a+28>>2]+252|0,g,128);b=J[a+8>>2];kc[J[J[b>>2]+120>>2]](b,J[a+28>>2]);break a}d=-1;a=J[a+108>>2];i:{if(!a)break i;a=J[a+4>>2];if(J[a+8>>2]==13)break i;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,828291,0)}fc=g+128|0}function D9(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;i=fc-16|0;fc=i;f=!a;a:{if(f)break a;b:switch((f?-1:J[a+8>>2])-1|0){case 0:f=0;e=fc-16|0;fc=e;j=!a;c:{if(j|((j?-1:J[a+8>>2])|0)!=1)break c;Df(a,e+12|0,e+ +8|0,0);c=xh(J[e+12>>2],J[e+8>>2],32);if(!c)break c;if(!(!c|!a|(a|0)==(c|0))){J[c+20>>2]=J[a+20>>2];J[c+24>>2]=J[a+24>>2]}J[e+4>>2]=0;J[e>>2]=-1;b=a?J[a+40>>2]:0;m=a?J[a+12>>2]:-1;n=c?J[c+40>>2]:0;j=c?J[c+12>>2]:-1;a=J[e+8>>2];d:{if((a|0)<=0)break d;f=J[e+12>>2];if((f|0)<=0)break d;while(1){if((f|0)>0){k=n+(P(g,j)<<2)|0;o=b+(P(g,m)<<2)|0;a=0;while(1){J[k+(a<<2)>>2]=J[e+((J[o+(a>>>3&536870908)>>2]>>>(a^-1)&1)<<2)>>2];a=a+1|0;f=J[e+12>>2];if((a|0)<(f|0))continue;break}a=J[e+8>>2]}g=g+1|0;if((g|0)<(a| +0))continue;break}}f=c}fc=e+16|0;b=f;break a;case 1:a=F9(a,1);J[i+12>>2]=a;b=CE(a);Fd(i+12|0);break a;case 3:a=E9(a,1);J[i+12>>2]=a;b=CE(a);Fd(i+12|0);break a;case 7:b=CE(a);break a;case 15:a=G9(a);J[i+12>>2]=a;b=CE(a);Fd(i+12|0);break a;case 23:d=fc-32|0;fc=d;f=!a;e:{if(f)break e;Df(a,d+28|0,d+24|0,d+20|0);if(J[d+20>>2]!=32)break e;m=f?0:J[a+40>>2];n=a?J[a+12>>2]:-1;b=iO(J[d+28>>2],J[d+24>>2],24);if(b)j=J[b+40>>2];else j=0;f=b?J[b+12>>2]:-1;h=J[d+24>>2];f:{if((h|0)<=0)break f;c=J[d+28>>2];if((c| +0)<=0)break f;while(1){if((c|0)>0){o=m+(P(g,n)<<2)|0;h=(P(f,g)<<2)+j|0;l=0;while(1){p=J[(l<<2)+o>>2];e=d+12|0;k=d+8|0;c=d+16|0;if(c)J[c>>2]=p>>>24;if(e)J[e>>2]=p>>>16&255;if(k)J[k>>2]=p>>>8&255;H[h|0]=J[d+16>>2];H[h+1|0]=J[d+12>>2];H[h+2|0]=J[d+8>>2];h=h+3|0;c=J[d+28>>2];l=l+1|0;if((c|0)>(l|0))continue;break}h=J[d+24>>2]}g=g+1|0;if((g|0)<(h|0))continue;break}}if(!(!b|!a|(a|0)==(b|0))){J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2]}if(!(!b|!a|(a|0)==(b|0)))J[b+28>>2]=J[a+28>>2]}fc=d+32|0;break a;case 31:break b; +default:break a}b=Ff(0,a)}fc=i+16|0;return b}function sEa(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=fc-32|0;fc=g;a:{b:{if(J[a+16>>2]){a=Qc(g+8|0,2389305,2387711,881,2397340,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;d=Z()|0;Kc(a);break b}if(lk(a+20|0)){a=Qc(g+8|0,2390012,2387711,882,2397340,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;d=Z()|0;Kc(a);break b}if((c|0)<0){a=Qc(g+8|0,2386793,2387711,883,2397340,0);J[699344]=0;$(5179, +a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;d=Z()|0;Kc(a);break b}Rj(a+16|0,b);J[a+84>>2]=d;J[a+80>>2]=c;e=J[a+16>>2];b=J[e+84>>2];d=(d|0)<0?(b|0)>0?b-c|0:d:d;f=J[e+16>>2];c:{if(!f){b=e;break c}while(1){b=f;f=J[b+84>>2];c=J[e+80>>2]+c|0;d=(d|0)<0?(f|0)>0?f-c|0:d:d;e=b;f=J[b+16>>2];if(f)continue;break}}d:{e:{f:{if(lk(b+20|0)){if(J[b+84>>2]<(J[b+80>>2]+(c+d|0)|0))break e;break f}if((d|0)<0){if(K[b+8|0])break f;break e}if((qX(J[b+72>>2],c,d)|0)!=(d|0))break e}H[a+8|0]=1;break d}aI(J[a+16>>2],J[a+ +80>>2],J[a+84>>2],5261,a)}vd(a- -64|0,0);d=J[a+96>>2];if(d)while(1){b=J[d+8>>2];if(!J[b+8>>2])J[b+8>>2]=1;d=J[d>>2];if(d)continue;break}g:{h:{i:{b=J[a+116>>2];if(b)while(1){d=0;c=J[b+8>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break i;d=J[b+8>>2]}J[g+8>>2]=d;c=J[d+16>>2];j:{if((c|0)>=0)break j;e=J[a+84>>2];if((e|0)<=0)break j;c=e-J[d+12>>2]|0}e=J[d+24>>2];f=J[d+20>>2];h=J[a+16>>2];i=J[d+12>>2];j=J[a+80>>2];J[699344]=0;ma(5260,h|0,i+j|0,c|0,f|0,e|0);c=J[699344]; +J[699344]=0;if((c|0)==1)break h;J[699344]=0;J[g+8>>2]=0;c=J[d+4>>2]-1|0;J[d+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break g;if(!c){J[699344]=0;$(5147,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break g}b=J[b>>2];if(b)continue;break}fc=g+32|0;return}d=Z()|0;break b}d=Z()|0;zc(g+8|0);break b}ea(0)|0;Bc();B()}ba(d|0)}B()}function xI(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(a){a:{if(J[a>>2]){b=J[a+12>>2];if(b){eB(b);uc(J[a+12>>2]);J[a+12>>2]=0}b=J[a+16>>2];if(b){uc(b);J[a+16>>2]=0;J[a+20>>2]=0}uc(J[a- +-64>>2]);J[a+60>>2]=0;J[a+64>>2]=0;break a}b=J[a+36>>2];if(b){uc(b);J[a+36>>2]=0}b=J[a+24>>2];if(b){uc(b);J[a+24>>2]=0;J[a+28>>2]=0}b=J[a+44>>2];if(!b)break a;uc(b);J[a+44>>2]=0;J[a+48>>2]=0}qY(J[a+196>>2]);b=J[a+156>>2];if(b){e=P(J[a+104>>2],J[a+108>>2]);if(e){while(1){eB(b);b=b+5644|0;c=c+1|0;if((e|0)!=(c|0))continue;break}b=J[a+156>>2]}uc(b);J[a+156>>2]=0}b=J[a+116>>2];if(b){c=J[a+112>>2];if(c){b=0;while(1){e=J[J[a+116>>2]+(b<<3)>>2];if(e){uc(e);c=J[a+112>>2]}b=b+1|0;if(c>>>0>b>>>0)continue;break}b= +J[a+116>>2]}J[a+112>>2]=0;uc(b);J[a+116>>2]=0}uc(J[a+136>>2]);J[a+120>>2]=0;J[a+136>>2]=0;uc(J[a+100>>2]);J[a+100>>2]=0;if(!(K[a+176|0]&2))uc(J[a+168>>2]);Ac(a+80|0,0,100);gB(J[a+180>>2]);J[a+180>>2]=0;gB(J[a+184>>2]);J[a+180>>2]=0;d=J[a+188>>2];if(d){b=J[d+28>>2];if(b){uc(b);J[d+28>>2]=0}c=J[d+40>>2];if(c){if(J[d+36>>2])while(1){e=P(g,40);b=J[(e+c|0)+36>>2];if(b){uc(b);c=J[d+40>>2];J[(e+c|0)+36>>2]=0}b=J[(c+e|0)+16>>2];if(b){uc(b);c=J[d+40>>2];J[(e+c|0)+16>>2]=0}b=J[(c+e|0)+24>>2];if(b){uc(b);c= +J[d+40>>2];J[(e+c|0)+24>>2]=0}g=g+1|0;if(g>>>0>2])continue;break}uc(c);J[d+40>>2]=0}uc(d)}J[a+188>>2]=0;Jn(J[a+72>>2]);J[a+72>>2]=0;Jn(J[a+76>>2]);J[a+76>>2]=0;f=J[a+200>>2];if(f){b:{if(!J[f+8>>2])break b;if(J[f+12>>2]){J[f+40>>2]=0;while(1){if(J[f+24>>2]>0)continue;break}}J[f+16>>2]=1;uc(J[f>>2]);c=J[f+28>>2];if(!c)break b;while(1){b=J[c+4>>2];uc(c);J[f+28>>2]=b;c=b;if(b)continue;break}}d=J[f+36>>2];if(d){g=J[d+4>>2];if((g|0)>0){b=0;while(1){e=J[d>>2]+P(b,12)|0;c=J[e+8>>2];if(c){kc[c|0](J[e+ +4>>2]);g=J[d+4>>2]}b=b+1|0;if((g|0)>(b|0))continue;break}}uc(J[d>>2]);uc(d)}uc(f)}J[a+200>>2]=0;uc(a)}}function urb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;b=(b<<9)+a|0;e=b+65560|0;d=K[b+65561|0];c=L[(d<<2)+2652240>>1];a:{b:{if(d>>>0>=47){b=L[a+4>>1]-c|0;if(b<<16>>16>=0){c:{if(c>>>0>(b&65535)>>>0){b=c;break c}J[a>>2]=c+J[a>>2]}c=(d<<2)+2652242|0;break b}J[a>>2]=c+J[a>>2];break a}b=L[a+4>>1]-c|0;d:{if(c>>>0<=(b&65535)>>>0){b=c;break d}J[a>>2]=c+J[a>>2]}c=(d<<2)+2652243|0}H[e+1|0]=K[c|0];while(1){b=b<<1;I[a+ +4>>1]=b;J[a>>2]=J[a>>2]<<1;c=K[a+6|0]-1|0;H[a+6|0]=c;if(!(c&255)){km(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}d=K[e+3|0];c=L[(d<<2)+2652240>>1];e:{f:{if(d>>>0<=46){b=b-c|0;if(b<<16>>16>=0){g:{if(c>>>0>(b&65535)>>>0){b=c;break g}J[a>>2]=c+J[a>>2]}c=(d<<2)+2652242|0;break f}J[a>>2]=c+J[a>>2];break e}b=b-c|0;h:{if(c>>>0<=(b&65535)>>>0){b=c;break h}J[a>>2]=c+J[a>>2]}c=(d<<2)+2652243|0}H[e+3|0]=K[c|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;c=K[a+6|0]-1|0;H[a+6|0]=c;if(!(c&255)){km(a);b=L[a+ +4>>1]}if(b<<16>>16>=0)continue;break}}d=K[e+6|0];c=L[(d<<2)+2652240>>1];i:{j:{if(d>>>0<=46){b=b-c|0;if(b<<16>>16>=0){k:{if(c>>>0>(b&65535)>>>0){b=c;break k}J[a>>2]=c+J[a>>2]}c=(d<<2)+2652242|0;break j}J[a>>2]=c+J[a>>2];break i}b=b-c|0;l:{if(c>>>0<=(b&65535)>>>0){b=c;break l}J[a>>2]=c+J[a>>2]}c=(d<<2)+2652243|0}H[e+6|0]=K[c|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;c=K[a+6|0]-1|0;H[a+6|0]=c;if(!(c&255)){km(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}d=K[e+12|0];c=L[(d<<2)+2652240>>1];m:{if(d>>> +0<=46){b=b-c|0;I[a+4>>1]=b;if(b<<16>>16>=0){n:{if(c>>>0>(b&65535)>>>0){b=c;break n}J[a>>2]=c+J[a>>2]}c=(d<<2)+2652242|0;break m}J[a>>2]=c+J[a>>2];return}b=b-c|0;o:{if(c>>>0<=(b&65535)>>>0){b=c;break o}J[a>>2]=c+J[a>>2]}c=(d<<2)+2652243|0}H[e+12|0]=K[c|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;e=K[a+6|0]-1|0;H[a+6|0]=e;if(!(e&255)){km(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}function FIa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a=J[J[a+4>>2]+12>>2];b=Dc(1E3);H[b|0]=0; +H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;h=J[a>>2];k=J[a+4>>2];a:{if((h|0)==(k|0)){f=4;break a}c=b+4|0;f=4;e=1E3;while(1){d=J[h+4>>2];b:{c:{d:{e:{f:{g:{h:{i:{if(!b){f=0;e=1E3;c=Dc(1E3);a=c;break i}j:{i=f+4|0;k:{if(i>>>0<=e>>>0){a=b;break k}while(1){e=e<<1;if(i>>>0>e>>>0)continue;break}a=fe(b,e);if(!a)break j;c=a+f|0}H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;g=J[h>>2];break h}a=Dc(e);c=xc(a,b,f);uc(b);c=c+f|0}H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;g=J[h>>2];if(!a)break g;i=f+ +4|0}f=f+8|0;if(f>>>0<=e>>>0)b=c+4|0;else{while(1){e=e<<1;if(f>>>0>e>>>0)continue;break}b=fe(a,e);if(!b)break e;a=b;b=b+i|0}H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;j=O[h+8>>3]*100;if(!(R(j)<2147483648))break f;c=~~j;break c}i=0;e=1E3;b=Dc(1E3);d=b;break d}c=-2147483648;break c}d=Dc(e);b=xc(d,a,i);uc(a);b=b+i|0}H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;j=O[h+8>>3]*100;l:{if(R(j)<2147483648){c=~~j;break l}c=-2147483648}if(d){f=i+4|0;a=d;break c}f=0;e=1E3;b=Dc(1E3);a=b;break b}d= +f+4|0;if(d>>>0<=e>>>0){b=b+4|0;break b}while(1){e=e<<1;if(d>>>0>e>>>0)continue;break}d=fe(a,e);if(d){b=d+f|0;a=d;break b}d=xc(Dc(e),a,f);uc(a);b=d+f|0;a=d}H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=K[h+27|0];d=c<<24>>24<0;l=d?J[h+16>>2]:h+16|0;c=d?J[h+20>>2]:c;i=c+4|0;m:{if(!a){d=0;e=i>>>0<=1E3?1E3:i;g=Dc(e);b=g;break m}d=f+4|0;f=i+d|0;if(f>>>0<=e>>>0){g=b+4|0;b=a;break m}while(1){e=e<<1;if(f>>>0>e>>>0)continue;break}b=fe(a,e);if(!b){b=Dc(e);xc(b,a,d);uc(a)}g=b+d|0}H[g|0]=c;H[g+1|0]= +c>>>8;H[g+2|0]=c>>>16;H[g+3|0]=c>>>24;f=d+i|0;c=xc(g+4|0,l,c)+c|0;h=h+40|0;if((k|0)!=(h|0))continue;break}}H[b|0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24;return b|0}function Tn(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,r=0,s=0,t=0,u=0,v=0;e=c?b+16|0:b;b=(b<<2)+a|0;b=J[(c?b+136|0:b+120|0)>>2];if(!b){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=52;kc[J[J[a>>2]>>2]](a)}if(!J[b+276>>2]){c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=255;f=J[c+4>>2]-1|0;J[c+4>>2]=f;a:{if(f)break a;if(kc[J[c+ +12>>2]](a)|0)break a;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;H[f|0]=196;f=J[c+4>>2]-1|0;J[c+4>>2]=f;b:{if(f)break b;if(kc[J[c+12>>2]](a)|0)break b;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}d=K[b+16|0];g=K[b+15|0];h=K[b+14|0];i=K[b+13|0];j=K[b+12|0];k=K[b+11|0];l=K[b+10|0];m=K[b+9|0];n=K[b+8|0];o=K[b+7|0];p=K[b+6|0];q=K[b+5|0];r=K[b+4|0];s=K[b+3|0];t=K[b+2|0];u=K[b+1|0];c=J[a+24>>2];f=J[c>>2];J[c>>2]=f+1;v=f;f=d+(g+(h+((((((((((((t+u|0)+s|0)+r|0)+q|0)+p|0)+o|0)+n|0)+ +m|0)+l|0)+k|0)+j|0)+i|0)|0)|0)|0;g=f+19|0;H[v|0]=g>>>8;d=J[c+4>>2]-1|0;J[c+4>>2]=d;c:{if(d)break c;if(kc[J[c+12>>2]](a)|0)break c;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=g;d=J[c+4>>2]-1|0;J[c+4>>2]=d;d:{if(d)break d;if(kc[J[c+12>>2]](a)|0)break d;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=e;e=J[c+4>>2]-1|0;J[c+4>>2]=e;e:{if(e)break e;if(kc[J[c+12>>2]](a)|0)break e;c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}c=1;while(1){g=K[b+ +c|0];e=J[a+24>>2];d=J[e>>2];J[e>>2]=d+1;H[d|0]=g;d=J[e+4>>2]-1|0;J[e+4>>2]=d;f:{if(d)break f;if(kc[J[e+12>>2]](a)|0)break f;e=J[a>>2];J[e+20>>2]=25;kc[J[e>>2]](a)}c=c+1|0;if((c|0)!=17)continue;break}if(f){c=0;while(1){g=K[(b+c|0)+17|0];e=J[a+24>>2];d=J[e>>2];J[e>>2]=d+1;H[d|0]=g;d=J[e+4>>2]-1|0;J[e+4>>2]=d;g:{if(d)break g;if(kc[J[e+12>>2]](a)|0)break g;e=J[a>>2];J[e+20>>2]=25;kc[J[e>>2]](a)}c=c+1|0;if(f>>>0>c>>>0)continue;break}}J[b+276>>2]=1}}function ydb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0; +var f=0,g=0,h=0,i=0,j=0;f=fc-48|0;fc=f;a:{if(H[b+11|0]>=0){J[f+40>>2]=J[b+8>>2];g=J[b+4>>2];J[f+32>>2]=J[b>>2];J[f+36>>2]=g;break a}Ve(f+32|0,J[b>>2],J[b+4>>2])}J[f>>2]=92;J[f+4>>2]=0;H[f+11|0]=1;J[699344]=0;J[f+20>>2]=47;J[f+24>>2]=0;H[f+31|0]=1;ca(2275,f+32|0,f|0,f+20|0);b=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){if(H[f+31|0]<0)uc(J[f+20>>2]);if(H[f+11|0]<0)uc(J[f>>2]);J[699344]=0;h=a+8|0;i=mj(h,f+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;j=(a+12|0)==(i|0);if(!j)break g;J[699344]= +0;g=_(4,20)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break h;break c}b=Z()|0;if(H[f+31|0]<0)uc(J[f+20>>2]);if(H[f+11|0]>=0)break b;uc(J[f>>2]);break b}J[699344]=0;J[g+4>>2]=1;J[g>>2]=347804;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=351848;H[g+16|0]=0;b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;uc(g);break b}b=J[J[g>>2]+20>>2];J[699344]=0;ha(b|0,g|0,c|0,d|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;i:{if(H[f+43|0]>=0){J[f+8>>2]=J[f+40>>2];b=J[f+36>>2];J[f>>2]=J[f+32>>2];J[f+4>>2]=b;break i}J[699344]= +0;ca(15,f|0,J[f+32>>2],J[f+36>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break f}J[f+12>>2]=g;J[699344]=0;c=Ye(h,f+20|0,f);b=J[699344];J[699344]=0;if((b|0)==1)break e;if(!J[c>>2]){J[699344]=0;b=_(4,32)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;d=J[f+4>>2];J[b+16>>2]=J[f>>2];J[b+20>>2]=d;J[b+24>>2]=J[f+8>>2];J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[b+28>>2]=J[f+12>>2];J[b+8>>2]=J[f+20>>2];J[b>>2]=0;J[b+4>>2]=0;J[c>>2]=b;d=J[J[h>>2]>>2];if(d){J[h>>2]=d;b=J[c>>2]}Oc(J[i>>2],b);J[a+16>>2]=J[a+16>>2]+1}if(H[f+ +11|0]>=0)break g;uc(J[f>>2])}if(H[f+43|0]<0)uc(J[f+32>>2]);fc=f+48|0;return j|0}b=Z()|0;break b}b=Z()|0;if(H[f+11|0]>=0)break b;uc(J[f>>2]);break b}b=Z()|0;break b}b=Z()|0}if(H[f+43|0]<0)uc(J[f+32>>2]);ba(b|0);B()}function BP(a){var b=0,c=0,d=0,e=0;a:{b:{c:{if((a|0)==1281){a=Pba(1025);if(!a)break c;d=pF(a);pn(a);if(!d)break c;J[d>>2]=1281;if(J[d+4>>2]!=3|J[d+12>>2]!=3)break b;if(J[d+8>>2]!=257)break a;a=Dc(152);if(!a)break c;J[a+4>>2]=2642264;J[a+8>>2]=3;J[a+12>>2]=3;J[a+16>>2]=0;J[a+20>>2]=0;J[a>> +2]=1;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=-1408749273;J[a+132>>2]=1073502748;J[a+120>>2]=0;J[a+124>>2]=1072693248;J[a+104>>2]=555253372;J[a+108>>2]=-1075389892;J[a+96>>2]=-706436221;J[a+100>>2]=-1076492743;J[a+88>>2]=0;J[a+92>>2]=1072693248;J[a+72>>2]=-1924145349;J[a+76>>2]=1073114775;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;e=a+56|0;b=e;J[b>>2]=0;J[b+4>>2]=1072693248;J[a+24>>2]=0;J[a+28>>2]=1;J[a+144>>2]=-1408749273;J[a+148>> +2]=-1075029476;J[a+112>>2]=-2046466017;J[a+116>>2]=1071705772;J[a+80>>2]=-1924145349;J[a+84>>2]=-1075417449;b=Dc(152);if(!b)break c;J[b+4>>2]=2642264;J[b+8>>2]=3;J[b+12>>2]=3;Ac(b+32|0,0,120);J[b+24>>2]=0;J[b+28>>2]=1;J[b+16>>2]=0;J[b+20>>2]=1;J[b>>2]=1;AP(b+56|0,e);d:{c=J[d+20>>2];if(!c)break d;if(!qn(c,0,a))break d;return 0}e:{c=J[d+36>>2];if(!c)break e;if(!qn(c,-1,b))break e;return 0}e=J[d+24>>2];if(e){c=0;if(qn(e,0,a))break c}f:{c=J[d+40>>2];if(!c)break f;if(!qn(c,-1,b))break f;return 0}e=J[d+ +28>>2];if(e){c=0;if(qn(e,0,a))break c}g:{c=J[d+44>>2];if(!c)break g;if(!qn(c,-1,b))break g;return 0}e=J[d+32>>2];if(e){c=0;if(qn(e,0,a))break c}e=J[d+48>>2];if(e){c=0;if(qn(e,-1,b))break c}c=J[a>>2];J[a>>2]=c-1;if((c|0)<=1){kc[J[J[a+4>>2]>>2]](a);uc(a)}a=J[b>>2];J[b>>2]=a-1;if((a|0)>1)return d;kc[J[J[b+4>>2]>>2]](b);uc(b);return d}d=Pba(a);if(!d)break c;b=pF(d);pn(d);if(!b)break c;if(a&255)J[b>>2]=a;c=b}return c}fa(200926,198656,187,206601);B()}fa(201438,198656,188,206601);B()}function qub(a,b,c, +d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if((c|0)!=21){Jc(a,1028,0,0);return 1028}c=K[d|0]|K[d+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[d+2|0]|K[d+3|0]<<8;h=(c<<8|c>>>8)&65535;i=K[d+4|0];c=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);j=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+9|0]|K[d+10|0]<<8|(K[d+11|0]<<16|K[d+12|0]<<24);k=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+13|0]|K[d+14|0]<< +8|(K[d+15|0]<<16|K[d+16|0]<<24);l=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+17|0]|K[d+18|0]<<8|(K[d+19|0]<<16|K[d+20|0]<<24);m=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b:{if(K[a+114|0]){c=kc[J[a+152>>2]](52)|0;if(!c){Jc(a,1,0,0);c=1;break b}J[c+4>>2]=1056;J[c>>2]=1057;f=J[a+700>>2];c:{if(f){J[f+8>>2]=c;break c}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;J[c+48>> +2]=m;J[c+44>>2]=l;J[c+40>>2]=k;J[c+36>>2]=j;H[c+32|0]=i;I[c+30>>1]=h;I[c+28>>1]=g}c=caa(a,g,h,i,j,k,l,m)}d:{if(c)break d;c=0;if(!K[a+112|0])break d;c=kc[J[b+4>>2]](a,b,e)|0;if(c)break d;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;b=K[d+2|0]|K[d+3|0]<<8;I[a+34>>1]=b<<8|b>>>8;H[a+36|0]=K[d+4|0];b=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+9|0]|K[d+10|0]<<8|(K[d+11|0]<<16|K[d+12|0]<<24);J[a+44>>2]=b<<24|(b&65280)<<8|(b>>>8&65280| +b>>>24);b=K[d+13|0]|K[d+14|0]<<8|(K[d+15|0]<<16|K[d+16|0]<<24);J[a+48>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+17|0]|K[d+18|0]<<8|(K[d+19|0]<<16|K[d+20|0]<<24);J[b+52>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=0}return c|0}Jc(a,1029,0,0);return 1029}function QSa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;b=fc-48|0;fc=b;J[b+32>>2]=13;J[b+16>>2]=13;J[b>>2]=13;J[a+24>>2]=2;a:{if(J[Ec(c,791460,b+32|0,0)>>2]==7){if(J[Ec(J[b+40>>2],798509,b+16|0,0)>>2]==1)J[a+24>>2]=J[b+24>>2];c=b+16| +0;yc(c);Ec(J[b+40>>2],799478,c,0);if(J[b+16>>2]==4){c=vc(8);J[699344]=0;f=aa(3349,c|0,J[b+24>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[a+28>>2]=f}c=b+16|0;yc(c);Ec(J[b+40>>2],800124,c,0);c=J[b+16>>2];if(c-3>>>0>=4294967294)O[a+120>>3]=(c|0)==1?+J[b+24>>2]:O[b+24>>3];c=b+16|0;yc(c);Ec(J[b+40>>2],800761,c,0);Ec(J[b+40>>2],801475,b,0);c=J[b+16>>2];b:{c:{if(c-3>>>0<=4294967293){if(J[b>>2]-3>>>0>=4294967294)break c;break b}d=((c|0)==1?+J[b+24>>2]:O[b+24>>3])*.001;if(!(d<0))break c;d=-d}c=J[b>> +2];d:{if(c-3>>>0<4294967294)break d;e=((c|0)==1?+J[b+8>>2]:O[b+8>>3])*.001;if(!(e<0))break d;e=-e}if(!(!(d<1.9)|d==0))O[a+144>>3]=d;d=e!=0?d==0?e:d>e?e:d:d;if(d==0|!(d<1.9))break b;O[a+128>>3]=d}c=b+16|0;yc(c);yc(b);Ec(J[b+40>>2],802268,c,0);c=J[b+16>>2];e:{if(c-3>>>0<4294967294)break e;d=((c|0)==1?+J[b+24>>2]:O[b+24>>3])*.001;d=d>0?-d:d;if(d==0|!(d>-1.9))break e;O[a+136>>3]=d}c=b+16|0;yc(c);f:{if(J[Ec(J[b+40>>2],802792,c,0)>>2]!=6)break f;c=J[b+24>>2];if(J[c+12>>2]<=0)break f;if(J[Sc(c,0,b,0)>>2]- +3>>>0>=4294967294)O[a+88>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.001;yc(b);c=J[b+24>>2];if(J[c+12>>2]<2)break f;if(J[Sc(c,1,b,0)>>2]-3>>>0>=4294967294)O[a+96>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.001;yc(b);c=J[b+24>>2];if(J[c+12>>2]<3)break f;if(J[Sc(c,2,b,0)>>2]-3>>>0>=4294967294)O[a+104>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.001;yc(b);c=J[b+24>>2];if(J[c+12>>2]<4)break f;if(J[Sc(c,3,b,0)>>2]-3>>>0>=4294967294)O[a+112>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.001;yc(b)}yc(b+16|0)}yc(b+32|0);fc=b+48| +0;return}a=Z()|0;uc(c);ba(a|0);B()}function qEb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=-1;d=J[b+8>>2];a:{if(d&7)break a;f=J[a+12>>2];b:{c:{c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=f>>>24|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;e=J[b+28>>2];J[b+28>>2]=e-1;d:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break d}if((bd(b,d)|0)==-1)break a}c=-1;d=J[b+8>>2];if(d&7)break a;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=f>>>16|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;e=J[b+28>>2]; +J[b+28>>2]=e-1;e:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break e}if((bd(b,d&255)|0)==-1)break a}c=-1;d=J[b+8>>2];if(d&7)break a;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=f>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=-1;e=J[b+28>>2];J[b+28>>2]=e-1;f:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break f}if((bd(b,d&255)|0)==-1)break a}c=-1;d=J[b+8>>2];if(d&7)break a;c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;c= +-1;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=f;break g}if((bd(b,f&255)|0)==-1)break a}if(!J[a+12>>2])return 0;f=0;while(1){d=J[b+8>>2];if(d&7)break b;e=J[J[a+16>>2]+(f<<2)>>2];c=J[b+64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;d=e>>>8|0;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;h:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break h}c=-1;if((bd(b,d&255)|0)==-1)break a}d=J[b+8>>2];if(d&7)break b;c=J[b+ +64>>2];if((c|0)>=0&(c|0)<=J[b+60>>2])break c;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;i:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break i}c=-1;if((bd(b,e&255)|0)==-1)break a}c=0;f=f+1|0;if(f>>>0>2])continue;break}break a}J[b+8>>2]=d|4}c=-1}return c|0}function S5(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=1;b=J[a+336>>2];a:{b:{if((b|0)==1){b=J[a+340>>2];J[a+356>>2]=J[b+28>>2];c=J[b+32>>2];J[a+360>>2]=c;J[b+64>>2]=1;J[b+56>>2]=1;J[b+60>>2]=1; +J[b+72>>2]=1;J[b+68>>2]=J[b+36>>2];f=b;b=J[b+12>>2];c=(c>>>0)%(b>>>0)|0;J[f+76>>2]=c?c:b;J[a+364>>2]=1;J[a+368>>2]=0;break b}if(b-5>>>0<=4294967291){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=27;J[J[a>>2]+28>>2]=4;kc[J[J[a>>2]>>2]](a)}b=P(J[a+424>>2],J[a+312>>2]);J[a+356>>2]=((b+J[a+28>>2]|0)-1|0)/(b|0);b=P(J[a+424>>2],J[a+316>>2]);b=((b+J[a+32>>2]|0)-1|0)/(b|0)|0;J[a+364>>2]=0;J[a+360>>2]=b;if(J[a+336>>2]<=0)break a;h=a+368|0;while(1){b=J[((e<<2)+a|0)+340>>2];d=J[b+8>>2];J[b+56>>2]=d;g=J[b+12>>2];J[b+60>> +2]=g;c=P(d,g);J[b+64>>2]=c;J[b+68>>2]=P(d,J[b+36>>2]);f=M[b+28>>2]%(d>>>0)|0;J[b+72>>2]=f?f:d;f=b;b=M[b+32>>2]%(g>>>0)|0;J[f+76>>2]=b?b:g;if((c+J[a+364>>2]|0)>=11){b=J[a>>2];J[b+20>>2]=14;kc[J[b>>2]](a)}c:{if((c|0)<=0)break c;d=0;b=c;g=b&3;if(g)while(1){f=J[a+364>>2];J[a+364>>2]=f+1;J[((f<<2)+a|0)+368>>2]=e;b=b-1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}if(c>>>0<4)break c;while(1){c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=J[a+364>>2];J[a+364>> +2]=c+1;J[(c<<2)+h>>2]=e;c=J[a+364>>2];J[a+364>>2]=c+1;J[(c<<2)+h>>2]=e;c=b-5|0;b=b-4|0;if(c>>>0<4294967294)continue;break}}d=J[a+336>>2];e=e+1|0;if((d|0)>(e|0))continue;break}if((d|0)<=0)break a}b=0;while(1){e=J[((b<<2)+a|0)+340>>2];if(!J[e+80>>2]){c=J[e+16>>2];if(!(J[((c<<2)+a|0)+164>>2]?c>>>0<=3:0)){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=54;kc[J[J[a>>2]>>2]](a)}i=e,j=xc(kc[J[J[a+4>>2]>>2]](a,1,132)|0,J[((c<<2)+a|0)+164>>2],132),J[i+80>>2]=j;d=J[a+336>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}}kc[J[J[a+ +464>>2]>>2]](a);kc[J[J[a+448>>2]>>2]](a);J[J[a+456>>2]>>2]=J[J[a+448>>2]+4>>2]}function K6(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;m=K[b+7|0]&254|K[b+6|0]<<8;a:{if(!m)break a;g=J[c>>2]+((d|0)!=0)|0;if(g>>>0>65535)break a;p=J[a+508>>2]+J[a+512>>2]|0;f=m>>>1|0;q=f>>>0<=1?1:f;r=f-1|0;l=b+14|0;f=(b+m|0)+16|0;b:{c:{if(d){while(1){b=f;i=K[b|0]<<8|K[b+1|0];g=g>>>0>i>>>0?g:i;h=K[l+1|0]|K[l|0]<<8;s=(i|0)==65535&(h|0)==65535&n>>>0>=r>>>0;f=b+2|0;l=l+2|0;j=b+m|0;k=j+m|0; +t=k+2|0;d:{while(1){if(g>>>0>h>>>0)break d;b=K[j|0]|K[j+1|0]<<8;e=K[k+1|0]|K[k|0]<<8;o=(e|0)!=0&s&e+t>>>0>p>>>0;b=o?1:(b<<8|b>>>8)<<16>>16;e:{f:{e=o?0:e;if(e){if((e|0)==65535)break d;e=(e+k|0)+(g-i<<1)|0;if(e>>>0>p>>>0)break d;e=K[e+1|0]|K[e|0]<<8;if(!e){b=g;break e}e=b+e&65535;if(e>>>0>2])break f;b=g;break e}o=b+g|0;e=o&65535;if(e>>>0>2])break f;e=b+h|0;if(!((e|0)<0|(o|0)>=0)){b=0-b|0;break e}if((e|0)<65536|(o|0)>65535)break d;b=65536-b|0;break e}b=g;if(e)break c}g=b+1|0;if(b>>>0<= +65534)continue;break}e=0;g=b;break b}n=n+1|0;if((q|0)!=(n|0))continue;break}e=0;break c}g:{h:{i:{j:{k:{while(1){k=K[f+1|0]|K[f|0]<<8;if(k>>>0>g>>>0)break a;g=g>>>0>k>>>0?g:k;b=f+m|0;i=b+m|0;l:{h=K[l+1|0]|K[l|0]<<8;if(!((k|0)==65535&(h|0)==65535&n>>>0>=r>>>0)){if(g>>>0>h>>>0)break l;h=K[i+1|0]|K[i|0]<<8;if((h|0)==65535)break l;if(!h)break k;f=(h+i|0)+(g-k<<1)|0;f=K[f|0]<<8|K[f+1|0];if(f)break h;break c}if(g>>>0>h>>>0)break l;j=K[i+1|0]|K[i|0]<<8;h=(j|0)!=0&j+(i+2|0)>>>0>p>>>0;j=h?0:j;if((j|0)==65535)break l; +if(!j)break j;f=(i+j|0)+(g-k<<1)|0;f=K[f|0]<<8|K[f+1|0];if(!f)break c;b=f+(h?1:K[b+1|0]|K[b|0]<<8)|0;break g}f=f+2|0;l=l+2|0;n=n+1|0;if((q|0)!=(n|0))continue;break}break c}a=K[b+1|0]|K[b|0]<<8;break i}a=h?1:K[b+1|0]|K[b|0]<<8}return a+g&65535}b=f+(K[b+1|0]|K[b|0]<<8)|0}b=b&65535;e=b>>>0>2]?b:0}if(!d)break a}J[c>>2]=g}return e}function s5(a){var b=0,c=0,d=0;c=J[a+480>>2];a=kc[J[J[a+4>>2]>>2]](a,1,2044)|0;b=a+1020|0;J[c+40>>2]=b;J[a+1016>>2]=-1;J[a+1020>>2]=0;J[a+1024>>2]=1;J[a+1028>>2]=2;J[a+ +1032>>2]=3;J[a+1036>>2]=4;J[a+1008>>2]=-3;J[a+1012>>2]=-2;J[a+1040>>2]=5;J[a+1044>>2]=6;J[a+1E3>>2]=-5;J[a+1004>>2]=-4;J[a+1048>>2]=7;J[a+1052>>2]=8;J[a+992>>2]=-7;J[a+996>>2]=-6;J[a+1056>>2]=9;J[a+1060>>2]=10;J[a+984>>2]=-9;J[a+988>>2]=-8;J[a+1064>>2]=11;J[a+1068>>2]=12;J[a+976>>2]=-11;J[a+980>>2]=-10;J[a+1072>>2]=13;J[a+1076>>2]=14;J[a+968>>2]=-13;J[a+972>>2]=-12;J[a+1080>>2]=15;J[a+1084>>2]=16;J[a+960>>2]=-15;J[a+964>>2]=-14;J[a+956>>2]=-16;J[a+1088>>2]=16;J[a+1092>>2]=17;J[a+1096>>2]=17;J[a+948>> +2]=-17;J[a+952>>2]=-16;J[a+1100>>2]=18;J[a+940>>2]=-18;J[a+944>>2]=-17;J[a+1104>>2]=18;J[a+1108>>2]=19;J[a+932>>2]=-19;J[a+936>>2]=-18;J[a+924>>2]=-20;J[a+928>>2]=-19;J[a+1112>>2]=19;J[a+1116>>2]=20;J[a+1120>>2]=20;J[a+1124>>2]=21;J[a+916>>2]=-21;J[a+920>>2]=-20;J[a+1128>>2]=21;J[a+1132>>2]=22;J[a+908>>2]=-22;J[a+912>>2]=-21;J[a+1136>>2]=22;J[a+1140>>2]=23;J[a+900>>2]=-23;J[a+904>>2]=-22;J[a+1144>>2]=23;J[a+1148>>2]=24;J[a+892>>2]=-24;J[a+896>>2]=-23;J[a+1152>>2]=24;J[a+1156>>2]=25;J[a+888>>2]=-24; +J[a+1160>>2]=25;J[a+884>>2]=-25;J[a+1164>>2]=26;J[a+880>>2]=-25;J[a+1168>>2]=26;J[a+876>>2]=-26;J[a+1172>>2]=27;J[a+872>>2]=-26;J[a+1176>>2]=27;J[a+868>>2]=-27;J[a+1180>>2]=28;J[a+864>>2]=-27;J[a+1184>>2]=28;J[a+860>>2]=-28;J[a+1188>>2]=29;J[a+856>>2]=-28;J[a+1192>>2]=29;J[a+852>>2]=-29;J[a+1196>>2]=30;J[a+848>>2]=-29;J[a+1200>>2]=30;J[a+844>>2]=-30;J[a+1204>>2]=31;J[a+840>>2]=-30;J[a+1208>>2]=31;J[a+836>>2]=-31;J[a+832>>2]=-31;d=48;while(1){a=d<<2;J[a+b>>2]=32;J[b-a>>2]=-32;c=a|4;J[c+b>>2]=32;J[b- +c>>2]=-32;c=a|8;J[c+b>>2]=32;J[b-c>>2]=-32;a=a|12;J[a+b>>2]=32;J[b-a>>2]=-32;d=d+4|0;if((d|0)!=256)continue;break}}function swa(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,C=0,D=0,E=0,F=0,G=0;m=fc-32|0;fc=m;e=c-1|0;g=(e+L[b+8>>1]>>>0)/(c>>>0)|0;e=(e+L[b+10>>1]>>>0)/(c>>>0)|0;a:{if(!d)break a;h=J[d>>2];b:{if((h|0)<0)break b;i=J[d+4>>2];if((i|0)<0)break b;f=e;e=J[d+8>>2];if((f|0)<(e|0))break b;f=g;g=J[d+12>>2];if((f| +0)>=(g|0))break a}a=Qc(m+8|0,2390033,2385793,879,2424776,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0);B()}B()}if(!K[2776624]){H[2776624]=1;d=1;while(1){J[(d<<2)+2775600>>2]=65536/(d>>>0);f=d+1|0;J[(f<<2)+2775600>>2]=65536/(f>>>0);f=d+2|0;J[(f<<2)+2775600>>2]=65536/(f>>>0);d=d+3|0;if((d|0)!=256)continue;break}}d=J[a+20>>2];if(d)uc(d);J[a+16>>2]=0;J[a+20>>2]=0;d=e-h|0;I[a+12>>1]=d;I[a+10>>1]=d;e=g-i|0;I[a+8>>1]=e;k=d&65535;n=e&65535;d=P(k,n);if(d){j=vc((E=-1, +F=vEb(d,0,3,0),G=jc,G?E:F));J[a+16>>2]=j;J[a+20>>2]=j}if(!(!n|!k)){f=P(c,i);o=L[b+12>>1];p=L[b+8>>1];q=(f|0)>=0?p>>>0>f>>>0?J[b+16>>2]+P(P(f,o),3)|0:0:0;C=P(c,h);w=P(k,3);x=L[b+10>>1];D=P(P(c,o),3);while(1){l=0;e=C;r=c+f|0;y=(p|0)>(r|0)?r:p;c:{if((y|0)<=(f|0)){Ac(j,0,w);break c}while(1){a=0;d=0;g=0;s=f;t=q;b=0;h=0;i=0;d:{e:{u=c+e|0;z=(x|0)>(u|0)?u:x;if((z|0)<=(e|0))break e;while(1){d=e;while(1){g=a;a=a+1|0;v=P(d,3)+t|0;b=K[v|0]+b|0;h=K[v+1|0]+h|0;i=K[v+2|0]+i|0;d=d+1|0;if((z|0)>(d|0))continue;break}t= +P(o,3)+t|0;s=s+1|0;if((y|0)>(s|0))continue;break}if((g|0)<=254){d=b;g=h;break e}d=(b|0)/(a|0)|0;b=(h|0)/(a|0)|0;a=(i|0)/(a|0)|0;break d}a=J[(a<<2)+2775600>>2];d=P(a,d)+32768>>>16|0;b=P(a,g)+32768>>>16|0;a=P(a,i)+32768>>>16|0}e=P(l,3)+j|0;H[e+1|0]=b;H[e+2|0]=a;H[e|0]=d;e=u;l=l+1|0;if((l|0)!=(k|0))continue;break}}j=j+w|0;q=q+D|0;f=r;A=A+1|0;if((A|0)!=(n|0))continue;break}}fc=m+32|0}function ou(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b:{if(!a)break b;e=J[a+64>>2];if(!e)break a;b=2;c:{d:{e:{f:{g:{h:{i:{c= +J[a+68>>2];c=J[(c?c:e)+4>>2];switch(c-1|0){case 1:case 17:break a;case 14:case 15:case 16:case 18:case 19:break c;case 9:case 13:break d;case 10:case 11:break e;case 8:case 12:break f;case 3:case 4:case 5:case 6:case 7:break g;case 2:break h;case 0:break i;default:break b}}return(J[a+16>>2]-2&-3?1:15)|0}b=0;j:{if(!e)break j;a=1;b=0;if(J[e+4>>2]-3>>>0>1)break j;b=J[e+40>>2];k:{if(!b)break k;while(1){l:{a=0;m:switch(K[b|0]){case 0:break l;case 9:case 10:case 13:case 32:break m;default:break k}b=b+1| +0;continue}break}a=1}b=a}if(!b)return 3;n:{o:{if(!(!e|J[e+4>>2]!=1))while(1){a=SK(e,14980,14854);p:{if(!a)break p;c=0;q:{r:{s:{t:{b=J[a+4>>2]-2|0;if(b)if((b|0)==14)break t;else break s;b=J[a+12>>2];if(b){if(!(J[b+24>>2]|J[b+4>>2]-3>>>0>1)){b=J[b+40>>2];if(!b)break s;a=b;while(1){d=a;a=a+1|0;if(K[d|0])continue;break}a=d-b|0;if((a|0)<0)break s;c=kc[J[663198]](a+1|0)|0;if(!c)break r;d=a;a=xc(c,b,a);H[d+a|0]=0;break q}c=mx(J[a+32>>2],b);if(c)break s}a=kc[J[663198]](1)|0;if(!a)break r;H[a|0]=0;break q}b= +J[a+48>>2];if(!b)break s;a=b;while(1){d=a;a=a+1|0;if(K[d|0])continue;break}a=d-b|0;if((a|0)<0)break s;c=kc[J[663198]](a+1|0)|0;if(!c)break r;c=xc(c,b,a);H[a+c|0]=0}a=c;break q}Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);a=0}b=a;if(!a)break p;d=13268;if((a|0)==13268){c=1;break o}while(1){f=K[a|0];if((f|0)==K[d|0]){c=1;d=d+1|0;a=a+1|0;if(f)continue;break o}break}d=2769;c=0;a=b;if((a|0)==2769)break o;while(1){f=K[a|0];if((f|0)==K[d|0]){d=d+1|0;a=a+1|0;if(f)continue;break o}break}kc[J[663199]](b)}e=J[e+20>>2]; +if(e)continue;break}c=-1;break n}kc[J[663199]](b)}return(c?14:13)|0}return c|0}return 9}return c|0}return 10}return 0}b=-1}return b|0}function hY(a,b,c){var d=0,e=0,f=0,g=0;f=!a;a:{if(f)break a;e=b;d=-1;b:{c:{if(f)break c;d:{e:{f:{if(b>>>0>=32){b=K[a|0];if(b)break f;if(K[a+1|0]|K[a+2|0]|(K[a+3|0]!=12|K[a+4|0]!=106))break e;if(K[a+5|0]!=80|K[a+6|0]!=32|(K[a+7|0]!=32|K[a+8|0]!=13))break e;if(K[a+9|0]!=10|K[a+10|0]!=135|(K[a+12|0]|K[a+11|0]!=10))break e;if(K[a+13|0]|K[a+14|0]|(K[a+16|0]!=102|K[a+17| +0]!=116))break e;if(K[a+18|0]!=121|K[a+19|0]!=112|(K[a+20|0]!=106|K[a+21|0]!=112))break e;if(K[a+22|0]!=50|K[a+23|0]!=32|(K[a+24|0]|K[a+25|0]))break e;if(K[a+26|0]|K[a+27|0])break e;b=2;break b}if(e>>>0<4)break d;b=K[a|0]}g:{if((b|0)!=255)break g;b=255;if(K[a+1|0]!=79|K[a+2|0]!=255)break g;d=0;if(K[a+3|0]==81)break c}if(b|e>>>0<32)break d}if(K[a+1|0]|K[a+2|0]|(K[a+3|0]!=12|K[a+4|0]!=106))break d;if(K[a+5|0]!=80|K[a+6|0]!=32|(K[a+7|0]!=32|K[a+8|0]!=13))break d;if(K[a+9|0]!=10|K[a+10|0]!=135|(K[a+12| +0]|K[a+11|0]!=10))break d;if(K[a+13|0]|K[a+14|0]|(K[a+15|0]!=24|K[a+16|0]!=102))break d;if(K[a+17|0]!=116|K[a+18|0]!=121|(K[a+19|0]!=112|K[a+20|0]!=109))break d;if(K[a+21|0]!=106|K[a+22|0]!=112|(K[a+24|0]|K[a+23|0]!=50))break d;if(K[a+25|0]|K[a+26|0]|(K[a+27|0]|K[a+28|0]!=109))break d;if(K[a+29|0]!=106|K[a+30|0]!=112)break d;d=1;if(K[a+31|0]==50)break c}d=-1}b=d}J[c>>2]=b;if((b|0)==-1)break a;b=Ge(1,72);if(b)h:{J[b+64>>2]=1048576;c=ef(1048576);J[b+32>>2]=c;if(!c){uc(b);b=0;break h}J[b+36>>2]=c;J[b+ +28>>2]=4802;J[b+24>>2]=4803;J[b+20>>2]=4804;J[b+16>>2]=4805;J[b+44>>2]=4806;J[b+40>>2]=4808;J[b+68>>2]=J[b+68>>2]|2}else b=0;if(!b)break a;c=Dc(12);J[c+8>>2]=0;J[c+4>>2]=e;J[c>>2]=a;if(b){J[b+4>>2]=4856;J[b>>2]=c}if(b){J[b+8>>2]=e;J[b+12>>2]=0}if(!(!b|!(K[b+68|0]&2)))J[b+16>>2]=4857;if(!(!b|!(H[b+68|0]&1)))J[b+20>>2]=4858;if(b)J[b+24>>2]=4859;if(b)J[b+28>>2]=4860;g=b}return g}function UA(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;g=fc-32|0;fc=g;d=c-b|0;a:{b:{if((d|0)<=-2){a= +Qc(g+8|0,2395070,2385485,148,2395412,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;d=Z()|0;Kc(a);break b}c:{d:{if((d|0)==-1){d=J[a+12>>2];kc[J[a+32>>2]](J[a+8>>2],J[a+20>>2]-d|0,J[a+24>>2]-d|0);uc(J[a+8>>2]);J[a+20>>2]=b;J[a+12>>2]=b;J[a+8>>2]=0;J[a+24>>2]=c;J[a+16>>2]=c;break d}f=J[a+16>>2];d=J[a+12>>2];if(!((f|0)<(c|0)|(d|0)>(b|0))){kc[J[a+36>>2]](J[a+8>>2],b-d|0,J[a+20>>2]+(d^-1)|0);d=J[a+12>>2];kc[J[a+32>>2]](J[a+8>>2],J[a+20>>2]-d|0,(d^-1)+b|0);d=J[a+12>>2];kc[J[a+36>> +2]](J[a+8>>2],(J[a+24>>2]-d|0)+1|0,c-d|0);d=J[a+12>>2];kc[J[a+32>>2]](J[a+8>>2],(c-d|0)+1|0,J[a+24>>2]-d|0);J[a+24>>2]=c;J[a+20>>2]=b;break d}i=(d|0)>(f|0);f=i?b:f;d=i?b:d;if((d|0)>(b|0))while(1){e=d;d=f-d|0;d=(d|0)>=32768?32768:d;d=e-((d|0)<=8?8:d)|0;if((d|0)>(b|0))continue;break}if((c|0)>(f|0))while(1){e=f;f=f-d|0;f=(f|0)>=32768?32768:f;f=e+((f|0)<=8?8:f)|0;if((f|0)<(c|0))continue;break}e=P(J[a+28>>2],(f-d|0)+1|0);i=sh(g+8|0,g+4|0,e,1);Ac(J[g+4>>2],0,e);e=J[a+36>>2];h=J[a+20>>2];J[699344]=0;ca(e| +0,J[g+4>>2],b-d|0,h+(d^-1)|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;k=J[a+8>>2];l=J[a+40>>2];e=J[a+20>>2];h=J[a+12>>2];j=J[a+24>>2];J[699344]=0;la(l|0,J[g+4>>2],e-d|0,j-d|0,k|0,e-h|0,j-h|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;e=J[a+36>>2];h=J[a+24>>2];J[699344]=0;ca(e|0,J[g+4>>2],(h-d|0)+1|0,c-d|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;h=J[a+8>>2];j=J[a+32>>2];k=J[a+20>>2];l=J[a+24>>2];e=J[a+12>>2];J[699344]=0;ca(j|0,h|0,k-e|0,l-e|0);e=J[699344];J[699344]=0;if((e|0)==1)break c; +e=J[a+8>>2];J[a+8>>2]=J[g+4>>2];J[g+4>>2]=e;J[a+24>>2]=c;J[a+20>>2]=b;J[a+16>>2]=f;J[a+12>>2]=d;hd(i)}fc=g+32|0;return}d=Z()|0;hd(i)}ba(d|0)}B()}function oEa(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;e=fc-16|0;fc=e;J[e+12>>2]=0;a:{b:{f=J[a+116>>2];if(!f)break b;i=a+108|0;c:{d:{while(1){e:{d=J[f+8>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break e;d=J[f+8>>2]}else d=0;J[e+8>>2]=d;f:{g:{h:{if(!(J[d+20>>2]!=(b|0)|J[d+24>>2]!=(c|0))){J[699344]=0;aa(5153, +e+12|0,e+8|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;J[e+4>>2]=i;J[e>>2]=f;J[699344]=0;da(5235,i|0,e|0);d=J[699344];J[699344]=0;if((d|0)!=1){g=J[e+8>>2];J[e+8>>2]=0;if(!g)break h;J[699344]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;d=J[699344];J[699344]=0;if((d|0)!=1){if(h)break h;J[699344]=0;$(5147,g|0);d=J[699344];J[699344]=0;if((d|0)!=1)break h}break a}break g}f=J[f>>2];J[699344]=0;J[e+8>>2]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break a;if(!g){J[699344]=0;$(5147,d|0);d=J[699344]; +J[699344]=0;if((d|0)==1)break a}if(f)continue}d=J[e+12>>2];if(d)break f;break b}f=Z()|0;zc(e+8|0);break d}J[699344]=0;d=d+8|0;if(J[d>>2]!=1)J[d>>2]=1;d=J[699344];J[699344]=0;if((d|0)==1){f=Z()|0;break d}g=J[e+12>>2];J[e+12>>2]=0;i:{if(!g)break i;J[699344]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(h)break i;J[699344]=0;$(5147,g|0);d=J[699344];J[699344]=0;if((d|0)==1)break c}J[e+12>>2]=0;f=J[a+116>>2];if(f)continue;break b}break}f=Z()|0}zc(e+12|0);ba(f|0);B()}break a}j:{d= +J[a+16>>2];k:{if(!d)break k;J[d+4>>2]=J[d+4>>2]+1;d=J[a+16>>2];J[e>>2]=d;if(!d)break k;J[699344]=0;ca(5270,d|0,b|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;zc(e);ba(a|0);B()}J[699344]=0;b=J[d+4>>2]-1|0;J[d+4>>2]=b;a=J[699344];J[699344]=0;if((a|0)==1)break j;if(b)break k;J[699344]=0;$(5147,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break j}fc=e+16|0;return}}ea(0)|0;Bc();B()}function mz(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;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;j=fc-128|0;fc=j;J[j+124>>2]=b;J[j+4>>2]=1617;o=Bg(j+8|0,0,j+4|0);k=j+16|0;m=(d-c|0)/12|0;a:{b:{if(m>>>0>=101){k=Dc(m);if(!k){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}zh(o,k)}h=k;b=c;c:{d:{while(1){if((b|0)==(d|0))e:while(1){f:{J[699344]=0;b=aa(6744,a|0,j+124|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break f;if((!m|b)==1){J[699344]=0;a=aa(6744,a|0,j+124|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(!a)break d;J[f>>2]=J[f>>2]|2;break d}J[699344]=0;b=_(6745,a|0)| +0;h=J[699344];J[699344]=0;g:{if((h|0)!=1){if(g)break g;J[699344]=0;b=aa(6832,e|0,b|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break g}break b}i=p+1|0;q=0;r=b&255;h=k;b=c;while(1){if((b|0)==(d|0)){p=i;if(!q)continue e;J[699344]=0;_(6747,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){h=k;b=c;if(m+n>>>0<2)continue e;while(1){if((b|0)==(d|0))continue e;if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;if(!((i|0)==(p|0)|K[h|0]!=2)){H[h|0]=0;n=n-1|0}h=h+1|0;b=b+12|0;continue}}break b}h:{if(K[h|0]!=1)break h; +if(K[b+11|0]>>>7|0)l=J[b>>2];else l=b;l=H[l+p|0];i:{if(g)break i;J[699344]=0;l=aa(6832,e|0,l<<24>>24)|0;s=J[699344];J[699344]=0;if((s|0)!=1)break i;break b}j:{if((l&255)==(r|0)){q=1;if(K[b+11|0]>>>7|0)l=J[b+4>>2];else l=K[b+11|0]&127;if((l|0)!=(i|0))break h;H[h|0]=2;n=n+1|0;break j}H[h|0]=0}m=m-1|0}h=h+1|0;b=b+12|0;continue}}break}else{if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;i=!i;H[h|0]=i?2:1;h=h+1|0;b=b+12|0;n=n+i|0;m=m-i|0;continue}break}break b}k:{l:{while(1){if((c|0)==(d|0))break l; +if(K[k|0]!=2){k=k+1|0;c=c+12|0;continue}break}d=c;break k}J[f>>2]=J[f>>2]|4}Ie(o);fc=j+128|0;return d|0}}a=Z()|0;Ie(o);ba(a|0)}B()}function ijb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-16|0;fc=g;f=J[a+4>>2]&2147418112;a:{if(d&16){if(f|K[a+9|0]&128){i=7;if(!(K[a+740|0]&16))break a}if(!c){i=0;break a}b:{if(K[a+292|0]){d=0;f=1;break b}if(L[a+372>>1]==65535){b=I[a+220>>1]-I[a+222>>1]|0;a=b>>31;a=(a^b)-a&65535;i=0;b=0;if(c>>>0>=8){h=c&-8;f=0;while(1){d=b<<2;J[d+e>> +2]=a;J[(d|4)+e>>2]=a;J[(d|8)+e>>2]=a;J[(d|12)+e>>2]=a;J[(d|16)+e>>2]=a;J[(d|20)+e>>2]=a;J[(d|24)+e>>2]=a;J[(d|28)+e>>2]=a;b=b+8|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}c=c&7;if(!c)break a;d=0;while(1){J[(b<<2)+e>>2]=a;b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break a}b=I[a+442>>1]-I[a+444>>1]|0;a=b>>31;a=(a^b)-a&65535;i=0;b=0;if(c>>>0>=8){h=c&-8;f=0;while(1){d=b<<2;J[d+e>>2]=a;J[(d|4)+e>>2]=a;J[(d|8)+e>>2]=a;J[(d|12)+e>>2]=a;J[(d|16)+e>>2]=a;J[(d|20)+e>>2]=a;J[(d|24)+e>>2]=a;J[(d|28)+e>>2]= +a;b=b+8|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}c=c&7;if(!c)break a;d=0;while(1){J[(b<<2)+e>>2]=a;b=b+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}break a}while(1){i=(d<<2)+e|0;c:{if(f&255){kc[J[J[a+540>>2]+140>>2]](a,1,b+d|0,g+14|0,g+12|0);f=L[g+12>>1];break c}if(L[a+372>>1]!=65535){h=I[a+442>>1]-I[a+444>>1]|0;f=h>>31;f=(f^h)-f|0;break c}h=I[a+220>>1]-I[a+222>>1]|0;f=h>>31;f=(f^h)-f|0}J[i>>2]=f&65535;d=d+1|0;if((d|0)!=(c|0)){f=K[a+292|0];continue}break}i=0;break a}if(f|K[a+9|0]&128){i=7;if(!(K[a+ +740|0]&2))break a}if(!c){i=0;break a}i=0;d=0;if((c|0)!=1){h=c&-2;f=0;while(1){j=g+10|0;k=g+8|0;kc[J[J[a+540>>2]+140>>2]](a,0,b+d|0,j,k);J[(d<<2)+e>>2]=L[g+8>>1];l=d|1;kc[J[J[a+540>>2]+140>>2]](a,0,l+b|0,j,k);J[(l<<2)+e>>2]=L[g+8>>1];d=d+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!(c&1))break a;kc[J[J[a+540>>2]+140>>2]](a,0,b+d|0,g+10|0,g+8|0);J[(d<<2)+e>>2]=L[g+8>>1]}fc=g+16|0;return i|0}function Zx(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;J[a+168>>2]=d;j=a+168|0;J[a+48>>2]=j;d= +J[a+64>>2];J[a+184>>2]=J[a+60>>2];J[a+188>>2]=d;J[a+180>>2]=c;J[a+176>>2]=b;J[a+172>>2]=e;d=j;while(1){l=J[d>>2];a:{b:{h=J[d+4>>2];f=J[d+20>>2];b=(h|0)>(f|0);i=J[d+12>>2];c:{if(!((i|0)>=((b?f:h)|0)&(i|0)<=(((f|0)>(h|0)?f:h)|0))){b=J[d+16>>2];J[d+32>>2]=b;J[d+36>>2]=f;c=f+i|0;J[d+28>>2]=c>>1;e=h+i|0;J[d+12>>2]=e>>1;f=J[d+8>>2];i=f+l|0;J[d+8>>2]=i>>1;b=b+f|0;J[d+24>>2]=b>>1;J[d+20>>2]=c+e>>2;J[d+16>>2]=b+i>>2;b=d+16|0;break c}if((f|0)!=(h|0))break b;b=d-16|0}J[a+48>>2]=b;break a}m=b?1:2;g=J[a+92>>2]; +if((m|0)!=(g|0)){b=J[a+4>>2];n=(f|0)>=(h|0);e=n?f&b-1:((b+f|0)-1&0-b)-f|0;c=J[a+36>>2];k=J[a+8>>2];d:{if(!g){b=c;break d}g=J[a+80>>2];b=J[g+8>>2];o=c-b>>2;if((o|0)<0){J[a+40>>2]=99;return 1}e:{if((b|0)==(c|0)){b=c;break e}J[g+16>>2]=o;if((e|0)>=(k|0)){b=L[g+12>>1];I[g+12>>1]=(b&8?16:32)|b}J[a+80>>2]=c;b=c+32|0;J[a+36>>2]=b;J[c+8>>2]=b;J[c+16>>2]=0;J[g+28>>2]=c;I[a+76>>1]=L[a+76>>1]+1}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}H[a+79|0]=0}if(!J[a+84>>2]){J[a+84>>2]=b;J[a+80>>2]=b;b=b+32|0;J[a+36>> +2]=b}if(M[a+32>>2]<=b>>>0){J[a+40>>2]=98;return 1}c=J[a+80>>2];J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=b;J[c+28>>2]=0;J[c+4>>2]=0;b=K[a+164|0];I[c+12>>1]=b;f:{g:{if(!n){I[c+12>>1]=b|8;g=40;if((e|0)>=(k|0))break g;break f}g=16;if((e|0)<(k|0))break f}I[c+12>>1]=b|g}if(!J[a+88>>2])J[a+88>>2]=c;I[a+78>>1]=1;J[a+92>>2]=m}b=J[a+72>>2];c=J[a+68>>2];h:{if((f|0)<(h|0)){if(!PD(a,2,1703,c,b))break a;break h}J[d+20>>2]=0-f;J[d+12>>2]=0-i;J[d+4>>2]=0-h;e=K[a+78|0];b=PD(a,2,1703,0-b|0,0-c|0);if(!(K[a+78|0]|!e)){c= +J[a+80>>2];J[c+20>>2]=0-J[c+20>>2]}J[d+4>>2]=0-J[d+4>>2];if(!b)break a}return 1}d=J[a+48>>2];if(j>>>0<=d>>>0)continue;break}J[a+64>>2]=h;J[a+60>>2]=l;return 0}function fqa(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=fc-48|0;fc=f;$G(J[b+12>>2]);e=J[b+12>>2];H[f+8|0]=0;h=e;e=f+8|0;sU(h,e);g=J[b+12>>2];H[g+2812|0]=0;I[g+2008>>1]=257;kc[J[J[b>>2]+20>>2]](b)|0;J[f+8>>2]=1;kc[J[J[b>>2]+308>>2]](b,e)|0;g=J[b+12>>2];J[g+2760>>2]=d;H[g+2768|0]=1;g=f+32|0;h=f+24|0;kc[J[J[c>>2]+40>>2]](c,d,g,h,e, +f+40|0);O[f+32>>3]=O[f+32>>3]*(25.4/O[f+8>>3]);O[f+24>>3]=O[f+24>>3]*(25.4/O[f+40>>3]);kc[J[J[b>>2]+36>>2]](b,g)|0;kc[J[J[b>>2]+28>>2]](b,h)|0;kc[J[J[c>>2]+44>>2]](c,b,d,0);H[J[b+12>>2]+2768|0]=0;J[f+20>>2]=1;kc[J[J[b>>2]+312>>2]](b,f+20|0)|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{d=J[b+12>>2];c=J[d+2196>>2];g=J[d+2200>>2];if((c|0)!=(g|0)){c:{d:{e:{while(1){f:{if(J[c>>2]){J[699344]=0;d=_(4,20)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2463920;J[d+12>> +2]=0;J[d+16>>2]=0;e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[c>>2];J[699344]=0;da(6378,e|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;da(3513,f+8|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break f;e=J[a+4>>2];g:{if(e>>>0>2]){h=J[f+12>>2];J[e>>2]=J[f+8>>2];J[e+4>>2]=h;J[e+8>>2]=J[f+16>>2];J[a+4>>2]=e+12;break g}J[699344]=0;da(2957,a|0,f+8|0);e=J[699344];J[699344]=0;if((e|0)==1)break e;if(H[f+19|0]>=0)break g;uc(J[f+8>>2])}kc[J[J[d>>2]+4>>2]](d)}c=c+8|0;if((g|0)!=(c|0))continue; +break c}break}c=Z()|0;break a}c=Z()|0;if(H[f+19|0]>=0)break a;uc(J[f+8>>2]);break a}c=Z()|0;uc(d);break a}d=J[b+12>>2]}h:{c=J[d+2208>>2];e=J[d+2212>>2];if((c|0)!=(e|0)){d=J[a+4>>2];J[699344]=0;ha(6379,a|0,d|0,c|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break h;d=J[b+12>>2]}J[699344]=0;$(6380,d|0);b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;break a}fc=f+48|0;return}c=Z()|0;break a}c=Z()|0}Ag(a);ba(c|0);B()}function w0(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;H[c+12|0]=0;a:{if(a){d=c+12| +0;e=ge(d,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=ge(d,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+2>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;if((ge(d,1,4,a)|0)==4){d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24)}else d=-1;J[b+4>>2]=d;H[c+12|0]=0;d=c+12|0;e=ge(d,1,2,a);J[b+8>>2]=(e|0)!=2?65535:K[c+13|0]|K[c+12|0]<<8;H[c+12|0]=0;ge(d,1,2,a);H[c+12|0]=0;e=ge(d,1,2,a);J[b+12>>2]=(e|0)!=2?65535:K[c+13|0]|K[c+12|0]<<8;H[c+12|0]= +0;ge(c+12|0,1,2,a);H[c+12|0]=0;e=ge(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+16>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=ge(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+18>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=ge(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+20>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;e=ge(c+12|0,1,2,a);f=K[c+12|0]|K[c+13|0]<<8;I[b+22>>1]=(e|0)!=2?-1:f<<8|f>>>8;H[c+12|0]=0;if((ge(d,1,4,a)|0)==4){d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280| +d>>>24)}else d=-1;J[b+24>>2]=d;H[c+12|0]=0;d=-1;f=b+22|0;g=b+20|0;h=b+18|0;if((ge(c+12|0,1,4,a)|0)==4){e=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24)}else e=-1;J[b+28>>2]=e;H[c+12|0]=0;if((ge(c+12|0,1,4,a)|0)!=4)break a;d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break a}J[b+24>>2]=-1;J[b+28>>2]=-1;J[b+16>>2]=-1;J[b+20>>2]=-1;J[b+12>>2]=65535;J[b+4>>2]=-1;J[b+8>>2]=65535;d=-1;J[b>>2]=-1;f=b+22|0; +g=b+20|0;h=b+18|0}J[b+32>>2]=d;b=0;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];if(!(a>>>4&1|(L[h>>1]-33&65535)>>>0<65504|(L[g>>1]-5&65535)>>>0<65532))b=I[f>>1]>0;fc=c+16|0;return b}function SGa(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;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;g=fc-96|0;fc=g;n=c-e;O[g+88>>3]=n;O[g+80>>3]=d;i=g+88|0;j=g+80|0;ce(b,i,j);O[g+72>>3]=O[g+88>>3]*25.4/96;O[g+64>>3]=O[g+80>>3]*25.4/96;k=g+72|0;l=g- -64|0;kc[J[J[a>>2]+316>>2]](a,k,l)|0;O[g+88>>3]=n;q=f*.552;r= +q+d;O[g+80>>3]=r;m=e*.552;s=c-m;O[g+72>>3]=s;h=d+f;O[g+64>>3]=h;O[g+56>>3]=c;O[g+48>>3]=h;ce(b,i,j);ce(b,k,l);o=g+56|0;p=g+48|0;ce(b,o,p);O[g+40>>3]=O[g+88>>3]*25.4/96;O[g+32>>3]=O[g+80>>3]*25.4/96;O[g+24>>3]=O[g+72>>3]*25.4/96;O[g+16>>3]=O[g+64>>3]*25.4/96;O[g+8>>3]=O[g+56>>3]*25.4/96;O[g>>3]=O[g+48>>3]*25.4/96;kc[J[J[a>>2]+328>>2]](a,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g)|0;m=m+c;O[g+88>>3]=m;O[g+80>>3]=h;e=c+e;O[g+72>>3]=e;O[g+64>>3]=r;O[g+56>>3]=e;O[g+48>>3]=d;ce(b,i,j);ce(b,k,l);ce(b,o,p);O[g+ +40>>3]=O[g+88>>3]*25.4/96;O[g+32>>3]=O[g+80>>3]*25.4/96;O[g+24>>3]=O[g+72>>3]*25.4/96;O[g+16>>3]=O[g+64>>3]*25.4/96;O[g+8>>3]=O[g+56>>3]*25.4/96;O[g>>3]=O[g+48>>3]*25.4/96;kc[J[J[a>>2]+328>>2]](a,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g)|0;O[g+88>>3]=e;h=d-q;O[g+80>>3]=h;O[g+72>>3]=m;e=d-f;O[g+64>>3]=e;O[g+56>>3]=c;O[g+48>>3]=e;ce(b,i,j);ce(b,k,l);ce(b,o,p);O[g+40>>3]=O[g+88>>3]*25.4/96;O[g+32>>3]=O[g+80>>3]*25.4/96;O[g+24>>3]=O[g+72>>3]*25.4/96;O[g+16>>3]=O[g+64>>3]*25.4/96;O[g+8>>3]=O[g+56>>3]*25.4/ +96;O[g>>3]=O[g+48>>3]*25.4/96;kc[J[J[a>>2]+328>>2]](a,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g)|0;O[g+88>>3]=s;O[g+80>>3]=e;O[g+72>>3]=n;O[g+64>>3]=h;O[g+56>>3]=n;O[g+48>>3]=d;ce(b,i,j);ce(b,k,l);ce(b,o,p);O[g+40>>3]=O[g+88>>3]*25.4/96;O[g+32>>3]=O[g+80>>3]*25.4/96;O[g+24>>3]=O[g+72>>3]*25.4/96;O[g+16>>3]=O[g+64>>3]*25.4/96;O[g+8>>3]=O[g+56>>3]*25.4/96;O[g>>3]=O[g+48>>3]*25.4/96;kc[J[J[a>>2]+328>>2]](a,g+40|0,g+32|0,g+24|0,g+16|0,g+8|0,g)|0;fc=g+96|0}function kz(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;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;j=fc-128|0;fc=j;J[j+124>>2]=b;J[j+4>>2]=1617;o=Bg(j+8|0,0,j+4|0);k=j+16|0;m=(d-c|0)/12|0;a:{b:{if(m>>>0>=101){k=Dc(m);if(!k){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}zh(o,k)}h=k;b=c;c:{d:{while(1){if((b|0)==(d|0))e:while(1){f:{J[699344]=0;b=aa(6858,a|0,j+124|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break f;if((!m|b)==1){J[699344]=0;a=aa(6858,a|0,j+124|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c; +if(!a)break d;J[f>>2]=J[f>>2]|2;break d}J[699344]=0;p=_(6859,a|0)|0;b=J[699344];J[699344]=0;g:{if((b|0)!=1){if(g)break g;J[699344]=0;p=aa(6860,e|0,p|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break g}break b}i=q+1|0;r=0;h=k;b=c;while(1){if((b|0)==(d|0)){q=i;if(!r)continue e;J[699344]=0;_(6861,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){h=k;b=c;if(m+n>>>0<2)continue e;while(1){if((b|0)==(d|0))continue e;if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;if(!((i|0)==(q|0)|K[h|0]!=2)){H[h|0]=0;n=n-1| +0}h=h+1|0;b=b+12|0;continue}}break b}h:{if(K[h|0]!=1)break h;if(K[b+11|0]>>>7|0)l=J[b>>2];else l=b;l=J[l+(q<<2)>>2];i:{if(g)break i;J[699344]=0;l=aa(6860,e|0,l|0)|0;s=J[699344];J[699344]=0;if((s|0)!=1)break i;break b}j:{if((p|0)==(l|0)){r=1;if(K[b+11|0]>>>7|0)l=J[b+4>>2];else l=K[b+11|0]&127;if((l|0)!=(i|0))break h;H[h|0]=2;n=n+1|0;break j}H[h|0]=0}m=m-1|0}h=h+1|0;b=b+12|0;continue}}break}else{if(K[b+11|0]>>>7|0)i=J[b+4>>2];else i=K[b+11|0]&127;i=!i;H[h|0]=i?2:1;h=h+1|0;b=b+12|0;n=n+i|0;m=m-i|0;continue}break}break b}k:{l:{while(1){if((c| +0)==(d|0))break l;if(K[k|0]!=2){k=k+1|0;c=c+12|0;continue}break}d=c;break k}J[f>>2]=J[f>>2]|4}Ie(o);fc=j+128|0;return d|0}}a=Z()|0;Ie(o);ba(a|0)}B()}function Z5(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;k=fc+-64|0;fc=k;m=6;i=J[a+532>>2];a:{if(!i)break a;d=J[i+4>>2];o=b>>>0>d>>>0?d:b;b:{if(!d){d=0;break b}r=i+88|0;while(1){b=P(h,12)+r|0;g=J[b+8>>2];l=J[b+4>>2];c:{if(h>>>0>>0){e=K[b|0];f=J[(h<<2)+c>>2];break c}e=K[b|0];f=(J[((e<<2)+l|0)-4>>2]-J[l>>2]| +0)/2|0}d:{e:{if(!e)break e;b=0;j=-1;f:{g:{while(1){n=b<<2;p=n+l|0;q=J[p>>2];if((f|0)==(q|0))break f;if((f|0)<(q|0))break g;j=b;b=b+1|0;if((e|0)!=(b|0))continue;break}if(!e)break e;b=J[(g+(e<<2)|0)-4>>2];break d}if((j|0)<0)break e;b=j<<2;e=J[b+l>>2];b=Od(f-e|0,J[g+n>>2]-J[b+g>>2]|0,J[p>>2]-e|0);d=J[i+4>>2];break d}b=J[g+n>>2];break d}b=J[g>>2]}J[(h<<2)+k>>2]=b;h=h+1|0;if(h>>>0>>0)continue;break}i=J[a+532>>2];if(!i)break a}m=-1;b=J[i>>2];if(!b)break a;f=J[i+4>>2];h:{if(f){g=d>>>0>f>>>0?f:d;j=0;e= +f;h=0;while(1){b=0;d=65536;c=0;i:{if(!e)break i;while(1){j:{if(b>>>0>=g>>>0){d=d>>1;break j}c=J[(b<<2)+k>>2];c=h>>>b&1?c:65536-c|0;if((c|0)<=0){d=0;c=e;break i}if(c>>>0>65535)break j;d=Wc(d,c);f=J[i+4>>2]}e=f;c=f;b=b+1|0;if(f>>>0>b>>>0)continue;break}}b=J[i+136>>2]+(h<<2)|0;if(J[b>>2]!=(d|0)){J[b>>2]=d;j=1}e=c;h=h+1|0;if(h>>>0>2])continue;break}break h}h=b&3;f=J[i+136>>2];c=0;k:{if(b>>>0<4){j=0;b=0;break k}i=b&-4;j=0;b=0;e=0;while(1){d=b<<2;g=d+f|0;if(J[g>>2]!=65536){J[g>>2]=65536;j=1}g=f+(d| +4)|0;if(J[g>>2]!=65536){J[g>>2]=65536;j=1}g=f+(d|8)|0;if(J[g>>2]!=65536){J[g>>2]=65536;j=1}d=f+(d|12)|0;if(J[d>>2]!=65536){J[d>>2]=65536;j=1}b=b+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(!h)break h;while(1){e=f+(b<<2)|0;if(J[e>>2]!=65536){J[e>>2]=65536;j=1}b=b+1|0;c=c+1|0;if((h|0)!=(c|0))continue;break}}if(!j)break a;m=0;J[a+8>>2]=J[a+8>>2]&-32769|((o|0)!=0)<<15}fc=k- -64|0;return m|0}function VSa(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;g=+g;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0; +var m=0;J[a>>2]=b;b=J[b+24>>2];J[a+12>>2]=0;J[a+4>>2]=b;J[a+16>>2]=J[J[693464]+404>>2];b=vc(112);m=J[a+4>>2];J[699344]=0;e=ha(3565,b|0,m|0,e|0,0)|0;m=J[699344];J[699344]=0;if((m|0)!=1)a:{J[a+8>>2]=c;J[a+20>>2]=e;b=vc(672);e=J[J[c>>2]+8>>2];J[699344]=0;c=_(e|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[699344]=0;c=Ib(3567,b|0,+f,+g,h|0,j|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+28>>2]=c;b=J[a+8>>2];kc[J[J[b>>2]+44>>2]](b,d,c);b=J[a+8>> +2];kc[J[J[b>>2]+36>>2]](b,J[a+28>>2]+16|0);b=J[a+8>>2];kc[J[J[b>>2]+72>>2]](b,J[a+28>>2]);b=J[a+28>>2];O[a+48>>3]=O[b+16>>3];O[a+56>>3]=O[b+24>>3];O[a- -64>>3]=O[b+32>>3];O[a+72>>3]=O[b+40>>3];O[a+80>>3]=O[b+48>>3];O[a+88>>3]=O[b+56>>3];J[a+96>>2]=0;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)b:{J[a+108>>2]=0;J[a+100>>2]=1;J[a+104>>2]=c;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+120>>2]=l;J[a+116>>2]=k;J[a+112>>2]=c;if(i){f=O[i>> +3];b=J[a+28>>2];g=O[i+8>>3];O[b+608>>3]=g;O[b+600>>3]=f;b=J[b+596>>2];O[b+16>>3]=g;O[b+8>>3]=f;J[b>>2]=1;f=O[i+16>>3];b=J[a+28>>2];g=O[i+8>>3];O[b+608>>3]=g;O[b+600>>3]=f;re(J[b+596>>2],f,g);f=O[i+16>>3];b=J[a+28>>2];g=O[i+24>>3];O[b+608>>3]=g;O[b+600>>3]=f;re(J[b+596>>2],f,g);f=O[i>>3];b=J[a+28>>2];g=O[i+24>>3];O[b+608>>3]=g;O[b+600>>3]=f;re(J[b+596>>2],f,g);b=J[a+28>>2];gg(J[b+596>>2]);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>> +3]=O[(d+J[c+4>>2]|0)-8>>3];Tj(J[a+28>>2]);b=J[a+8>>2];kc[J[J[b>>2]+220>>2]](b,J[a+28>>2]);_f(J[a+28>>2])}return a|0}}a=Z()|0;uc(b);ba(a|0);B()}function Nm(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;h=J[a+28>>2];a:{i=J[a>>2];b:{if(!i)if(!J[J[(J[a+24>>2]+(h<<2)|0)-4>>2]+20>>2]|(h|0)<=0)break b;k=h;h=J[a+32>>2];if((k|0)>=(h|0)){h=h<<1;J[a+32>>2]=h;n=a,o=Wd(J[a+24>>2],h,4),J[n+24>>2]=o;i=J[a>>2]}h=vc(24);c:{if(i){l=O[a+16>>3];m=O[a+8>>3];J[h+16>>2]=16;J[699344]=0;i=aa(3551,16,8)|0;j=J[699344]; +J[699344]=0;if((j|0)==1)break a;J[h>>2]=i;i=J[h+16>>2];J[699344]=0;i=aa(3551,i|0,8)|0;j=J[699344];J[699344]=0;if((j|0)==1)break a;J[h+4>>2]=i;i=J[h+16>>2];J[699344]=0;i=aa(3551,i|0,4)|0;j=J[699344];J[699344]=0;if((j|0)==1)break a;J[h+12>>2]=1;J[h+8>>2]=i;O[J[h>>2]>>3]=m;O[J[h+4>>2]>>3]=l;J[i>>2]=0;J[h+20>>2]=0;i=J[a+28>>2];k=J[a+24>>2]+(i<<2)|0;break c}i=J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2];j=J[i+12>>2]<<3;l=O[(j+J[i+4>>2]|0)-8>>3];m=O[(j+J[i>>2]|0)-8>>3];J[h+16>>2]=16;J[699344]=0;i=aa(3551,16, +8)|0;j=J[699344];J[699344]=0;if((j|0)==1)break a;J[h>>2]=i;i=J[h+16>>2];J[699344]=0;i=aa(3551,i|0,8)|0;j=J[699344];J[699344]=0;if((j|0)==1)break a;J[h+4>>2]=i;i=J[h+16>>2];J[699344]=0;i=aa(3551,i|0,4)|0;j=J[699344];J[699344]=0;if((j|0)==1)break a;J[h+12>>2]=1;J[h+8>>2]=i;O[J[h>>2]>>3]=m;O[J[h+4>>2]>>3]=l;J[i>>2]=0;J[h+20>>2]=0;i=J[a+28>>2];k=J[a+24>>2]+(i<<2)|0}J[k>>2]=h;J[a>>2]=0;h=i+1|0;J[a+28>>2]=h}a=J[(J[a+24>>2]+(h<<2)|0)-4>>2];h=J[a+16>>2];i=J[a+12>>2];d:{if((h|0)>=(i+3|0)){h=J[a+8>>2];break d}h= +h<<1;J[a+16>>2]=h;n=a,o=Wd(J[a>>2],h,8),J[n>>2]=o;n=a,o=Wd(J[a+4>>2],J[a+16>>2],8),J[n+4>>2]=o;h=Wd(J[a+8>>2],J[a+16>>2],4);J[a+8>>2]=h;i=J[a+12>>2]}k=i<<3;j=k+J[a>>2]|0;O[j>>3]=b;k=k+J[a+4>>2]|0;O[k>>3]=c;O[j+8>>3]=d;O[k+8>>3]=e;O[j+16>>3]=f;O[k+16>>3]=g;J[((i<<2)+h|0)+4>>2]=1;J[(J[a+12>>2]<<2)+h>>2]=1;J[((J[a+12>>2]<<2)+h|0)+8>>2]=0;J[a+12>>2]=J[a+12>>2]+3;return}a=Z()|0;uc(h);ba(a|0);B()}function QJ(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=fc-32|0;fc=i;a:{if((d|0)<=0|b>>>0>16777215)break a; +m=i-4|0;b:{while(1){f=0;g=k;k=(d-g|0)>4?g+4|0:d;l=k-g|0;c:{if((l|0)<=0)break c;j=c+g|0;f=J[(K[j|0]<<2)+2211280>>2];if((f|0)<0)break b;if((l|0)==1)break c;g=J[(K[j+1|0]<<2)+2211280>>2];if((g|0)<0)break b;f=g+(f<<4)|0;if((l|0)==2)break c;g=J[(K[j+2|0]<<2)+2211280>>2];if((g|0)<0)break b;f=g+(f<<4)|0;if((l|0)==3)break c;g=J[(K[j+3|0]<<2)+2211280>>2];if((g|0)<0)break b;f=g+(f<<4)|0}d:{if((h|0)>0){g=(h<<2)+m|0;j=J[g>>2];if(!(j>>>0<55296|j>>>0>56319|(f>>>0<56320|f>>>0>57343))){J[g>>2]=(j<<10&1047552|f&1023)+ +65536;break d}if(h>>>0>7)break d}J[(h<<2)+i>>2]=f;h=h+1|0}if((d|0)>(k|0))continue;break}if(!h)break a;f=J[a+8>>2];e:{if(f>>>0>b>>>0)break e;c=f?f<<1:256;c=b>>>0>>0?c:(b&-256)+256|0;J[a+8>>2]=c;c=Wd(J[a+4>>2],c,4);J[a+4>>2]=c;if(M[a+8>>2]<=f>>>0)break e;while(1){J[c+(f<<2)>>2]=0;f=f+1|0;if(f>>>0>2])continue;break}}if((h|0)==1){J[J[a+4>>2]+(b<<2)>>2]=J[i>>2]+e;break a}c=J[a+20>>2];f:{if((c|0)>J[a+16>>2]){c=J[a+12>>2];break f}c=c+16|0;J[a+20>>2]=c;c=Wd(J[a+12>>2],c,40);J[a+12>>2]=c}f=0;J[J[a+ +4>>2]+(b<<2)>>2]=0;d=J[a+16>>2];J[P(d,40)+c>>2]=b;if((h|0)>0){if(h>>>0>=4){d=h&-4;k=0;while(1){g=f<<2;J[(g+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[g+i>>2];b=g|4;J[(b+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[b+i>>2];b=g|8;J[(b+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[b+i>>2];b=g|12;J[(b+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[b+i>>2];f=f+4|0;k=k+4|0;if((d|0)!=(k|0))continue;break}}g=h&3;if(g){d=0;while(1){b=f<<2;J[(b+(P(J[a+16>>2],40)+c|0)|0)+4>>2]=J[b+i>>2];f=f+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}d=J[a+16>>2]}b=(P(d, +40)+c|0)+(h<<2)|0;J[b>>2]=J[b>>2]+e;b=J[a+16>>2];J[(P(b,40)+c|0)+36>>2]=h;J[a+16>>2]=b+1;break a}Cc(0,-1,800031,0)}fc=i+32|0}function y0(a){var b=0,c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;a:{if(kc[J[J[a>>2]+28>>2]](a,0,779286)|0)break a;if(kc[J[J[a>>2]+28>>2]](a,0,780511)|0)break a;b:{if((kc[J[J[a>>2]+8>>2]](a,0)|0)!=128)break b;if((kc[J[J[a>>2]+8>>2]](a,1)|0)!=1)break b;if(!(kc[J[J[a>>2]+20>>2]](a,2,e+12|0)|0))break b;b=J[e+12>>2];if(b>>>0>=16){b=1;if(kc[J[J[a>>2]+28>>2]](a,6,779286)|0)break a;b=J[e+12>> +2]}if(b>>>0<11)break b;b=1;if(kc[J[J[a>>2]+28>>2]](a,6,780511)|0)break a}c:{if(kc[J[J[a>>2]+8>>2]](a,0)|0)break c;if((kc[J[J[a>>2]+8>>2]](a,1)|0)!=1)break c;if(kc[J[J[a>>2]+8>>2]](a,2)|0)break c;if(kc[J[J[a>>2]+8>>2]](a,3)|0)break c;b=4;break a}d:{if((kc[J[J[a>>2]+8>>2]](a,0)|0)!=116)break d;if((kc[J[J[a>>2]+8>>2]](a,1)|0)!=114)break d;if((kc[J[J[a>>2]+8>>2]](a,2)|0)!=117)break d;b=4;if((kc[J[J[a>>2]+8>>2]](a,3)|0)==101)break a}e:{if((kc[J[J[a>>2]+8>>2]](a,0)|0)!=116)break e;if((kc[J[J[a>>2]+8>>2]](a, +1)|0)!=116)break e;if((kc[J[J[a>>2]+8>>2]](a,2)|0)!=99)break e;b=5;if((kc[J[J[a>>2]+8>>2]](a,3)|0)==102)break a}f:{if((kc[J[J[a>>2]+8>>2]](a,0)|0)!=79)break f;if((kc[J[J[a>>2]+8>>2]](a,1)|0)!=84)break f;if((kc[J[J[a>>2]+8>>2]](a,2)|0)!=84)break f;if((kc[J[J[a>>2]+8>>2]](a,3)|0)!=79)break f;c=fc-16|0;fc=c;b=9;g:{if(!(kc[J[J[a>>2]+12>>2]](a,4,c+8|0)|0)|J[c+8>>2]<=0)break g;while(1){f=d<<4;if(!(kc[J[J[a>>2]+28>>2]](a,f|12,781837)|0)){d=d+1|0;if((d|0)>2])continue;break g}break}if(!(kc[J[J[a>>2]+ +16>>2]](a,f+20|0,c+12|0)|0))break g;d=J[c+12>>2];if(d>>>0>2147483646)break g;a=eK(a,d);b=(a|0)==2?6:(a|0)==3?7:a}fc=c+16|0;break a}h:{if((kc[J[J[a>>2]+8>>2]](a,0)|0)!=1)break h;if(kc[J[J[a>>2]+8>>2]](a,1)|0)break h;b=eK(a,0);break a}b=9;if((kc[J[J[a>>2]+8>>2]](a,1)|0)!=1)break a;if(kc[J[J[a>>2]+8>>2]](a,2)|0)break a;b=eK(a,1)}fc=e+16|0;return b}function wub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+ +288|0]))break a;if(K[a+289|0])break a;if(!((c|0)==16|c-4>>>0<4)){Jc(a,1028,0,0);return 1028}g=K[d+2|0]|K[d+3|0]<<8;f=g<<8|g>>>8;g=K[d|0]|K[d+1|0]<<8;j=g<<8|g>>>8;b:{c:{d:{e:{if(c>>>0>=5){n=K[d+4|0];if((c|0)!=5)break e}break d}o=K[d+5|0];if(c>>>0<7){i=1;break d}h=K[d+6|0];if((c|0)==7){i=1;g=1;break c}g=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);p=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);g=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);q=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);k=1;i=1; +g=1;l=K[d+7|0];break b}g=0}l=0}j=j&65535;r=f&65535;f:{if(K[a+114|0]){f=kc[J[a+152>>2]](48)|0;if(!f){Jc(a,1,0,0);h=1;break f}J[f+4>>2]=1048;J[f>>2]=1049;m=J[a+700>>2];g:{if(m){J[m+8>>2]=f;break g}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=m;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[f+44>>2]=p;J[f+40>>2]=q;H[f+37|0]=l;H[f+36|0]=k;H[f+35|0]=h;H[f+34|0]=o;H[f+33|0]=i;H[f+32|0]=n;I[f+28>>1]=r;I[f+30>>1]=j}h=gaa(a, +j,r,n,i,o,h,k,l,q,p)}h:{if(h)break h;h=0;if(!K[a+112|0])break h;h=kc[J[b+4>>2]](a,b,e)|0;if(h)break h;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;b=K[d+2|0]|K[d+3|0]<<8;I[a+34>>1]=b<<8|b>>>8;if(c>>>0>=5)H[a+36|0]=K[d+4|0];if(i)H[a+37|0]=K[d+5|0];if(g)H[a+38|0]=K[d+6|0];if(k){H[a+39|0]=1;H[a+40|0]=K[d+7|0];b=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+44>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[b+48>>2]=a<<24|(a&65280)<< +8|(a>>>8&65280|a>>>24);return 0}h=0;H[a+39|0]=0}return h|0}Jc(a,1029,0,0);return 1029}function pda(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;f=J[a+584>>2];k=J[f+32>>2];a:{b:{if(!k)break b;s=f+844|0;e=J[f+884>>2];c=J[J[f+216>>2]+132>>2];if(!c)while(1){if((e|0)>=8){e=0;b=J[f+316>>2]<<3;d=0;if((PP(f,s,b)|0)!=(b|0))break a}e=e+1|0;J[f+884>>2]=e;b=L[f+836>>1];J[a+472>>2]=b+J[a+472>>2];k=k-b|0;if((k|0)>0)continue;break b}n=J[f+888>> +2];t=c&3;w=c>>>0<4;while(1){if((e|0)>=8){e=0;h=J[f+316>>2]<<3;d=0;if((PP(f,s,h)|0)!=(h|0))break a;J[f+884>>2]=0}if(J[f+36>>2]>0){p=J[f+216>>2];i=0;q=0;while(1){o=J[p+12>>2];c:{if((o|0)<=0)break c;u=(q<<2)+f|0;j=0;l=J[p+8>>2];if((l|0)==1)while(1){e=J[(J[u+844>>2]+(P(J[f+884>>2],o)<<2)|0)+(j<<2)>>2];g=b+i|0;d=c;m=0;if(t)while(1){H[g|0]=K[e|0];g=g+n|0;e=e+1|0;d=d-1|0;m=m+1|0;if((t|0)!=(m|0))continue;break}if(!w)while(1){H[g|0]=K[e|0];h=g+n|0;H[h|0]=K[e+1|0];h=h+n|0;H[h|0]=K[e+2|0];h=h+n|0;H[h|0]=K[e+ +3|0];e=e+4|0;g=h+n|0;d=d-4|0;if(d)continue;break}i=i+1|0;j=j+1|0;if((o|0)!=(j|0))continue;break c}if((l|0)>0){x=l&-4;v=l&3;r=0;while(1){g=J[(J[u+844>>2]+(P(J[f+884>>2],o)<<2)|0)+(r<<2)>>2];d=b+i|0;h=c;while(1){m=0;e=0;j=0;if(l>>>0>=4)while(1){H[d+e|0]=K[g|0];H[(e|1)+d|0]=K[g+1|0];H[(e|2)+d|0]=K[g+2|0];H[(e|3)+d|0]=K[g+3|0];e=e+4|0;g=g+4|0;j=j+4|0;if((x|0)!=(j|0))continue;break}if(v)while(1){H[d+e|0]=K[g|0];e=e+1|0;g=g+1|0;m=m+1|0;if((v|0)!=(m|0))continue;break}d=d+n|0;h=h-1|0;if(h)continue;break}i= +i+l|0;r=r+1|0;if((r|0)!=(o|0))continue;break}break c}i=P(l,o)+i|0}p=p+88|0;q=q+1|0;if((q|0)>2])continue;break}e=J[f+884>>2]}e=e+1|0;J[f+884>>2]=e;d=L[f+836>>1];J[a+472>>2]=d+J[a+472>>2];b=J[f+840>>2]+b|0;k=k-d|0;if((k|0)>0)continue;break}}d=1;if(M[f+140>>2]>2])break a;d=(WP(f)|0)!=0}return d|0}function Zh(a,b,c){var d=0,e=0;a:{if(!(K[a+460|0]|!(K[a+496|0]|K[a+476|0])|(K[a+498|0]|!(K[b+64|0]|K[b+65|0])))){d=iv(a,b);if(d)break a}J[a+544>>2]=b;if(!c){c=J[a+512>>2];J[a+512>>2]=b;GO(a); +J[a+512>>2]=c}if(!(K[a+497|0]|!K[a+477|0])){H[a+477|0]=0;c=J[a+512>>2];J[a+512>>2]=b;d=up(a);J[a+512>>2]=c;if(d)break a;J[a+440>>2]=J[a+440>>2]+1}b:{if(K[a+497|0]|(K[a+460|0]|!(K[a+496|0]|K[a+476|0])))break b;H[a+498|0]=0;if(J[a+676>>2]>2]|J[a+684>>2]>2])break b;Fy(a);c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{b=J[b+88>>2];switch(K[b+45|0]){case 14:break f;case 12:break g;case 10:break h;case 8:break i;case 6:break j;case 4:break k;case 3:break l;case 2:break m;case 0:break n;default:break c}}J[a+ +980>>2]=K[b+44|0]>8?1149:1150;c=!K[b+56|0];break d}J[a+980>>2]=K[b+44|0]>8?1151:1152;c=!K[b+56|0];break d}J[a+980>>2]=1153;c=!K[b+56|0];break d}J[a+980>>2]=K[b+44|0]>8?1154:1155;break e}J[a+980>>2]=K[b+44|0]>8?1022:1023;break e}J[a+980>>2]=K[b+44|0]>8?1149:1150;c=1;break d}J[a+980>>2]=K[b+44|0]>8?1151:1152;c=1;break d}J[a+980>>2]=K[b+44|0]>8?1154:1155;break e}J[a+980>>2]=K[b+44|0]>8?1022:1023}c=0}H[a+649|0]=c}J[a+584>>2]=1;J[a+576>>2]=1;J[a+580>>2]=0;H[a+568|0]=255;J[a+572>>2]=J[a+664>>2];c=J[b+36>> +2];J[a+588>>2]=c;H[a+648|0]=0;J[a+604>>2]=c<<2;if(K[b+44|0]>=9){H[a+648|0]=1;J[a+604>>2]=c<<3}J[a+976>>2]=0;d=gv(a,0,0,1);if(d)break a;b=kc[J[a+152>>2]](J[a+604>>2])|0;J[a+644>>2]=b;if(!b){Jc(a,1,0,0);return 1}b=J[a+664>>2];while(1){o:{c=b;e=J[a+668>>2];if((e|0)<=(b|0)){d=0;break o}d=kc[J[a+980>>2]](a)|0;if(d)break o;b=J[a+976>>2];if(b){d=kc[b|0](a)|0;if(d)break o}d=kc[J[a+968>>2]](a)|0;if(d)break o;b=c+1|0;d=zs(a);if(!d)continue}break}b=J[a+644>>2];if(b){kc[J[a+156>>2]](b,J[a+604>>2]);J[a+644>>2]= +0}if((c|0)<(e|0))break a}d=0}return d}function zab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)> +(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i); +h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a, +c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Sl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function rab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+ +1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]= +g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)== +J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Rl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}} +function qbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>> +2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+ +8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+ +4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Xl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function jab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>> +2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+ +20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i); +h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Ql(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function aab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>> +2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>> +2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b, +d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Pl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function T9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j= +(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0; +c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g), +J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Ol(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Rab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g= +vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0; +h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g| +0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Ul(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Iab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+ +104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h); +J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]= +h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];Tl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function xNa(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{c:{if(J[a+44>>2]>2])break c;b=-1;if(J[a+52>>2])break b;J[a+44>> +2]=0;while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[a+8>>2]=b;if(K[b+2318736|0]==1&b>>>0<=255)continue;break}d:{e:{f:{b=J[a+8>>2];switch(b-122|0){case 4:break a;case 1:case 2:case 3:break d;case 0:break f;default:break e}}J[a+28>>2]=0;J[a+32>>2]=0;J[a+48>>2]=4;J[a+36>>2]=0;J[a+40>>2]=0;break c}if((b|0)==-1)break a}while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[a+12>>2]=b;if(K[b+2318736|0]==1&b>>>0<=255)continue;break}d=1;g:{h:{b=J[a+12>>2];if((b|0)==-1){c=1;break h}c=1;if((b|0)==126)break h; +while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[a+16>>2]=b;if(K[b+2318736|0]==1&b>>>0<=255)continue;break}c=2;b=J[a+16>>2];if((b|0)==-1|(b|0)==126)break h;while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[a+20>>2]=b;if(K[b+2318736|0]==1&b>>>0<=255)continue;break}c=3;b=J[a+20>>2];if((b|0)==-1|(b|0)==126)break h;while(1){b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[a+24>>2]=b;if(K[b+2318736|0]==1&b>>>0<=255)continue;break}c=4;d=0;b=J[a+24>>2];if((b|0)==-1|(b|0)==126)break h;J[a+48>>2]=4;break g}J[a+ +48>>2]=c-1;if((b|0)!=126&(b|0)!=-1)break g;i:{if(!d)break i;e=4-c&7;if(e){b=0;while(1){c=c+1|0;J[((c<<2)+a|0)+8>>2]=117;b=b+1|0;if((e|0)!=(b|0))continue;break}}if(d)break i;while(1){d=a+8|0;b=d+(c<<2)|0;J[b+28>>2]=117;J[b+20>>2]=117;J[b+24>>2]=117;J[b+12>>2]=117;J[b+16>>2]=117;J[b+4>>2]=117;J[b+8>>2]=117;c=c+8|0;J[d+(c<<2)>>2]=117;continue}}J[a+52>>2]=1}b=(J[a+24>>2]+P(J[a+20>>2]+P(J[a+16>>2]+P(J[a+12>>2]+P(J[a+8>>2],85)|0,85)|0,85)|0,85)|0)-1743128013|0;J[a+40>>2]=b&255;J[a+28>>2]=b>>>24;J[a+36>> +2]=b>>>8&255;J[a+32>>2]=b>>>16&255}b=J[((J[a+44>>2]<<2)+a|0)+28>>2]}return b|0}J[a+48>>2]=0;J[a+52>>2]=1;return-1}function xab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a; +g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<< +3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a, +c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Rl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function wbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>> +2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j); +g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+ +24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Xl(e,J[f>>2],J[f+4>> +2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function vab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2]; +g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c; +i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+ +4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Rl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function ubb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a; +h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>> +2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>> +2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Xl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue; +break}}}function tab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a; +g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c, +m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h= +J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Rl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function sbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>> +2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+ +20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i); +h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Xl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function pab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b; +if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>> +2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue; +break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Ql(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function nab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i; +g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+ +24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>> +2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Ql(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function lab(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;if(!(!K[a+ +1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3); +J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]- +J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d, +e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Ql(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function hab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j| +0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0> +536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2]; +I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Pl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function fab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+ +1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b; +j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d; +if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Pl(e, +J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function cab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h: +g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+ +12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a; +while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Pl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function _9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+ +12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e, +m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911? +-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Ol(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a; +if($c(b,d))continue;break}}}function Y9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h| +0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>> +2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue; +break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Ol(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Xab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>> +2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]= +2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+ +8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Ul(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Vab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>> +0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632; +J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)< +(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Ul(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function V9a(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+ +112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>> +2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g; +l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Ol(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Tab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>> +2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+ +2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g| +0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Ul(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Oab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>> +2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h); +J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]= +h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Tl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Mab(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;if(!(!K[a+1160|0]|J[a+1172>> +2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h| +0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0; +d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!= +J[e+20>>2]){Wf(e,J[c+4>>2]);Tl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Kab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a; +g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<< +3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a, +c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Tl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Fab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>> +2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j); +g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+ +24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);Sl(e,J[f>>2],J[f+4>> +2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Dab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2]; +g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c; +i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+ +4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);Sl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Bab(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a; +h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>> +2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>> +2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){h=J[d+4>>2];g=J[c+4>>2];if((h|0)<(g|0)){if($c(b,d))continue;break a}break}if((g|0)!=(h|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);Sl(e,J[f>>2],J[f+4>>2],J[f+8>>2])}if(!Lc(a,c))break a;if($c(b,d))continue; +break}}}function xda(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;a:{c=J[a+584>>2];if(c){if(J[c+16>>2])break a;b:{if(K[a+13|0]&4){e=J[a+72>>2];d=J[a+68>>2];f=Cn(a);break b}d=J[a+60>>2]-J[a+472>>2]|0;f=J[a+100>>2];e=d>>>0>>0?d:f;d=J[a+56>>2];f=mV(a)}J[c+840>>2]=f;c:{if(!b){f=d;break c}if(L[a+138>>1]!=2){f=d;break c}f=0;g=L[c+834>>1];if(0-g>>>0>d>>>0)f=((d+g|0)-1>>>0)/(g>>>0)|0;d=L[c+836>>1];if(0-d>>>0<=e>>>0){e=0;break c}e=((d+e|0)-1>>>0)/(d>>>0)|0}if(!(e>>>0<65536&f>>>0<=65535)){Uc(J[a+ +628>>2],97744,87623,0);return 0}J[c+32>>2]=e;J[c+28>>2]=f;d:{e:{if(L[a+138>>1]==1){J[c+36>>2]=L[a+98>>1];if(L[c+832>>1]==6){e=1;f:{if(J[c+924>>2]==1){J[c+40>>2]=2;break f}J[c+40>>2]=3;if(L[c+834>>1]==1&L[c+836>>1]==1)break f;e=0}if(!vF(c,3))return 0;J[J[c+84>>2]+8>>2]=L[c+834>>1];J[J[c+84>>2]+12>>2]=L[c+836>>1];break e}f=0;J[c+40>>2]=0;e=1;if(vF(c,0))break e;break d}J[c+36>>2]=1;J[c+40>>2]=0;f=0;if(!vF(c,0))break d;J[J[c+84>>2]>>2]=b;e=1;if(!b|L[c+832>>1]!=6)break e;J[J[c+84>>2]+16>>2]=1;J[J[c+84>> +2]+20>>2]=1;J[J[c+84>>2]+24>>2]=1}f=0;J[c+256>>2]=0;J[c+244>>2]=0;if(!VP(c,J[c+920>>2]))break d;b=J[c+928>>2];g:{if(b&1)break g;d=J[c+88>>2];if(d)J[d+128>>2]=0;d=J[c+92>>2];if(!d)break g;J[d+128>>2]=0}J[c+216>>2]=(b^-1)>>>1&1;h:{if(e){J[c+208>>2]=0;J[a+560>>2]=649;J[a+552>>2]=649;J[a+544>>2]=649;if(UP(c))break h;break d}J[c+208>>2]=1;J[a+560>>2]=661;J[a+552>>2]=661;J[a+544>>2]=661;if(!UP(c))break d;b=J[a+584>>2];g=J[c+76>>2];i:{if((g|0)<=0){d=0;break i}a=J[c+84>>2];d=0;e=0;while(1){j=J[a+8>>2];h= +J[a+12>>2];i=TP(b,J[a+28>>2]<<3,h<<3);if(!i)break d;J[(b+(e<<2)|0)+844>>2]=i;a=a+88|0;d=P(j,h)+d|0;e=e+1|0;if((g|0)!=(e|0))continue;break}}J[b+888>>2]=d}J[c+884>>2]=0;f=1}return f|0}fa(75270,70506,1306,97744);B()}fa(82256,70506,1307,97744);B()}function Gk(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{if((b|0)<0|J[a+16>>2]<=(b|0))break b;h=J[J[a+24>>2]+(b<<2)>>2];a=J[h+16>>2];if((a|0)<=(c|0))break b;b=J[h+20>>2];if((a|0)<(c+e|0)|(b|0)<=(d|0)|(b|0)<(d+f|0))break b;c:{if(J[g+20>>2]==(f|0)){a= +f;if(J[g+24>>2]==(e|0))break c}a=0;k=-1;d:{if(J[g+40>>2]<(P(e,f)|0)|J[g+32>>2]<(f|0))break d;J[g+24>>2]=e;J[g+20>>2]=f;k=0;if((f|0)<=0)break d;if(f>>>0>=4){j=f&-4;b=0;while(1){J[J[g+28>>2]+(a<<2)>>2]=J[g+36>>2]+(P(a,e)<<2);i=a|1;J[J[g+28>>2]+(i<<2)>>2]=J[g+36>>2]+(P(e,i)<<2);i=a|2;J[J[g+28>>2]+(i<<2)>>2]=J[g+36>>2]+(P(e,i)<<2);i=a|3;J[J[g+28>>2]+(i<<2)>>2]=J[g+36>>2]+(P(e,i)<<2);a=a+4|0;b=b+4|0;if((j|0)!=(b|0))continue;break}}j=f&3;if(!j)break d;b=0;while(1){J[J[g+28>>2]+(a<<2)>>2]=J[g+36>>2]+(P(a, +e)<<2);a=a+1|0;b=b+1|0;if((j|0)!=(b|0))continue;break}}if(k)break b;a=J[g+20>>2]}j=J[g+28>>2];k=J[j>>2];b=0;g=0;g=(a|0)>=2?J[j+4>>2]-k>>2:g;if((f|0)<=0)break a;if((e|0)>0){o=g<<2;while(1){j=k;i=e;if((Xg(J[h+32>>2],P(J[h+36>>2],P(J[h+16>>2],d+l|0)+c|0),0)|0)<0)break b;while(1){m=0;e:{g=J[h+36>>2];if((g|0)<=0)break e;while(1){a=J[h+32>>2];b=J[a+8>>2];if(b&7)break b;n=J[a+64>>2];if(!((n|0)>=0&J[a+60>>2]>=(n|0))){b=J[a+28>>2];J[a+28>>2]=b-1;f:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=a;a=J[a+24>>2];J[b+ +24>>2]=a+1;a=K[a|0];break f}b=-1;a=td(a,1);if((a|0)==-1)break a}m=a&255|m<<8;a=(g|0)>1;g=g-1|0;if(!a)break e;continue}break}J[a+8>>2]=b|4;break b}b=J[h+24>>2];g=1<>2])a=a-(g&0-(a>>>b-1&1))|0;J[j>>2]=a;j=j+4|0;a=(i|0)>1;i=i-1|0;if(a)continue;break}k=k+o|0;b=0;l=l+1|0;if((l|0)!=(f|0))continue;break}break a}while(1){if((Xg(J[h+32>>2],P(J[h+36>>2],P(J[h+16>>2],d+l|0)+c|0),0)|0)<0)break b;l=l+1|0;if((l|0)!=(f|0))continue;break}break a}b=-1}return b}function A1(a){var b=0,c=0,d=0,e= +0;a:{b:{c:{if(!a)break c;d:{e:{f:{g:{h:{i:{b=K[a|0];switch(b-73|0){case 0:break f;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break g;case 15:break h;default:break i}}b=b-105|0;if(!b)break e;if((b|0)!=15)break g;b=a;if(K[a+1|0]==45)break a;break d}b=a;if(K[a+1|0]==45)break a;break d}b=a;break d}b=a;if(K[a+1|0]!=45)break d;break a}b=a;if(K[a+1|0]==45)break a}while(1){d=b;b=b+1|0;c=K[d|0];if(((c&223)-65&255)>>>0<26)continue;break}a=d-a|0;if((a| +0)>=4)return!c&a>>>0<9;if((a|0)<2)break c;e=1;if(!c)break b;if((c|0)!=45)break c;j:{k:{l:{a=K[b|0];if((a-48&255)>>>0<10)break l;c=b;if(((a&223)-65&255)>>>0<=25){d=b;while(1){a=K[d+1|0];c=d+1|0;d=c;if(((a&223)-65&255)>>>0<26)continue;break}}m:{n:{b=c-b|0;switch(b-2|0){case 0:break k;case 2:break m;default:break n}}if(b-5>>>0<4)break j;if((b|0)!=3)break c;a=a&255;if(!a)break b;if((a|0)!=45)break c;b=c+1|0;if((K[c+1|0]-48&255)>>>0<10)break l;d=b;while(1){c=d;d=c+1|0;a=K[c|0];if(((a&223)-65&255)>>>0< +26)continue;break}b=c-b|0;if((b|0)==2)break k;if(b-5>>>0<4)break j;if((b|0)!=4)break c}a=a&255;if(!a)break b;if((a|0)!=45)break c;b=c+1|0;if((K[c+1|0]-48&255)>>>0<10)break l;d=b;while(1){c=d;d=c+1|0;a=K[c|0];if(((a&223)-65&255)>>>0<26)continue;break}b=c-b|0;if(b-5>>>0<4)break j;if((b|0)==2)break k;break c}if((K[b+1|0]-48&255)>>>0>9|(K[b+2|0]-48&255)>>>0>9)break c;c=b+3|0;a=K[b+3|0]}a=a&255;if(!a)break b;if((a|0)!=45)break c;c=c+1|0;b=c;while(1){d=b;b=b+1|0;a=K[d|0];if(((a&223)-65&255)>>>0<26)continue; +break}e=0;if((d-c|0)-9>>>0<4294967292)break b}a=a&255;return!a|(a|0)==45}e=0}return e}b=a+2|0;while(1){a=K[b|0];b=b+1|0;if(((a&223)-65&255)>>>0<26)continue;break}return!a}function JU(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;e=fc-16|0;fc=e;J[699344]=0;m=_(2250,a|0)|0;a=J[699344];J[699344]=0;a:{if((a|0)==1)break a;f=J[b+4>>2];if((f|0)!=(b|0))while(1){b:{c:{d:{e:switch(J[f+8>>2]){case 1:a=J[f+16>>2];j=O[a+8>>3];k=O[a+16>>3];J[699344]=0;wa(2326,m|0,+j,+k)|0;a=J[699344]; +J[699344]=0;if((a|0)!=1)break b;break a;case 3:J[699344]=0;_(2327,m|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a;case 2:J[e+8>>2]=0;J[e+12>>2]=0;c=0;a=0;i=0;h=J[f+16>>2];n=f+12|0;if((h|0)==(n|0))break c;while(1){f:{g:{if((a|0)!=(i|0)){O[a>>3]=O[h+8>>3];O[a+8>>3]=O[h+16>>3];a=a+16|0;J[e+8>>2]=a;break g}d=a-c|0;i=d>>4;g=i+1|0;if(g>>>0>=268435456){J[699344]=0;J[e+4>>2]=c;$(6496,e+4|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;break d}l=d>>3;d=d>>>0>=2147483632?268435455:g>>>0>>0?l:g; +if(d>>>0>=268435456){J[699344]=0;J[e+4>>2]=c;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break d;break a}J[699344]=0;l=d<<4;g=_(4,l|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;d=g+(i<<4)|0;O[d>>3]=O[h+8>>3];O[d+8>>3]=O[h+16>>3];i=g+l|0;g=d+16|0;if((a|0)!=(c|0))while(1){d=d-16|0;a=a-16|0;O[d>>3]=O[a>>3];O[d+8>>3]=O[a+8>>3];if((a|0)!=(c|0))continue;break}J[e+12>>2]=i;J[e+8>>2]=g;if(c)uc(c);a=g;c=d}h=J[h+4>>2];if((n|0)!=(h|0))continue;break c}break}ea(0)|0;J[e+4>>2]=c;Bc();B();case 0:break e;default:break b}a= +J[f+16>>2];j=O[a+8>>3];k=O[a+16>>3];J[699344]=0;wa(2325,m|0,+j,+k)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}B()}J[e+4>>2]=c;j=O[c+40>>3];k=O[c+24>>3];o=O[c+32>>3];p=O[c+16>>3];q=O[c+8>>3];r=O[c>>3];J[699344]=0;Aa(2511,m|0,+r,+q,+p,+k,+o,+j)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;uc(c)}f=J[f+4>>2];if((f|0)!=(b|0))continue;break}fc=e+16|0;return}ea(0)|0;Bc();B()}function j2(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=fc-352|0;fc=f;a:{if(!a|!J[a+4>>2])break a;j=J[693366];g=J[663297]; +h=J[a+48>>2];if(!(!h|J[h+4>>2]!=1))m=J[h+8>>2];i=d?e:j;g=d?d:g;d=J[a+12>>2];k=J[a>>2];l=J[a+20>>2];b:{c:{d:{if(b){h=J[b+36>>2];if(!h){j=0;break d}e=J[h+4>>2];e:{if(e){j=h;h=0;break e}e=J[b+40>>2];if((e|0)<2){j=h;h=0;break c}j=J[(J[b+48>>2]+(e<<2)|0)-8>>2];if(!j){j=0;break b}e=J[j+4>>2];if(!e)break c}J[f+180>>2]=J[j+28>>2];J[f+176>>2]=e;kc[g|0](i,29777,f+176|0);break b}e=J[a+16>>2];if(e){J[f+148>>2]=l;J[f+144>>2]=e;kc[g|0](i,29777,f+144|0);j=0;break d}j=0;if(!(1<>>0>19))break d;J[f+ +128>>2]=l;kc[g|0](i,29785,f+128|0)}h=0;break b}if(!l|(k|0)!=1)break b;J[f+160>>2]=J[j+28>>2];kc[g|0](i,29785,f+160|0)}if(m){J[f+112>>2]=m;kc[g|0](i,29728,f+112|0)}e=k-1|0;if(!(e>>>0>29|!(1048558845>>>e&1)))kc[g|0](i,J[(e<<2)+775364>>2],0);if(d>>>0<=3)kc[g|0](i,J[(d<<2)+775484>>2],0);f:{if(c){g:{if(!K[c|0])break g;e=0;d=c;while(1){e=e+1|0;m=K[d+1|0];d=d+1|0;if(m)continue;break}if(K[(c+e|0)-1|0]==10)break g;J[f+96>>2]=c;kc[g|0](i,32906,f+96|0);break f}J[f+80>>2]=c;kc[g|0](i,4607,f+80|0);break f}J[f+ +64>>2]=4780;kc[g|0](i,32906,f- -64|0)}h:{if(!b)break h;pq(j,g,i);if(!h)break h;b=J[h+4>>2];i:{if(b){J[f+52>>2]=J[h+28>>2];J[f+48>>2]=b;kc[g|0](i,39151,f+48|0);break i}if(!l|(k|0)!=1)break i;J[f+32>>2]=J[h+28>>2];kc[g|0](i,39160,f+32|0)}pq(h,g,i)}if((k|0)!=12)break a;b=J[a+24>>2];if(!b)break a;c=J[a+36>>2];if((c|0)>99)break a;e=0;if(K[b|0]){d=b;while(1){e=e+1|0;h=K[d+1|0];d=d+1|0;if(h)continue;break}}if((c|0)>=(e|0))break a;J[f+16>>2]=b;kc[g|0](i,32906,f+16|0);d=J[a+36>>2];j:{if((d|0)<=0){d=0;break j}Ac(f+ +192|0,32,d)}a=f+192|0;b=a+d|0;H[b|0]=94;H[b+1|0]=0;J[f>>2]=a;kc[g|0](i,32906,f)}fc=f+352|0}function Qbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k= +(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h; +if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a; +if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];oh(e,J[f>>2],h)}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function L9a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b, +O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+112>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+104>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+108>>2];k=(g|0)>(h|0)?g:h;h=J[a+116>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+ +16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>> +0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!$c(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if($c(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];oh(e,J[f>>2],h)}if(!$c(a, +c))break a;if(Xc(b,d))continue;break}}}function $bb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)> +(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i); +h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];_l(e,J[f>>2],h)}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function fcb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>> +2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>> +2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>> +2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);_l(e,J[f>>2],h)}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function dcb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2| +0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>> +2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>> +2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);_l(e,J[f>>2],h)}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function bcb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2]; +i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+ +80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>> +2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);_l(e,J[f>>2],h)}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Xbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h; +g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]= +0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g| +0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Vbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i| +0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]= +g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>> +2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function Sbb(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;if(!(!K[a+1160|0]|J[a+1172>>2]!=2)){gd(a+100|0,a, +J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}Vc(a);a:{if(!J[a+12>>2])break a;h=J[a+84>>2];J[a+1176>>2]=h;J[b+120>>2]=0;if(!J[b+60>>2])break a;g=J[a+88>>2];i=J[b+112>>2];j=(g|0)<(i|0)?g:i;g=J[a+80>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[b+108>>2];k=(g|0)<(h|0)?h:g;h=J[a+92>>2];g=J[b+116>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b; +j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+88>>2]-J[a+80>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d; +if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!Lc(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if(Lc(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>> +2]);oh(e,J[f>>2],h)}if(!Lc(a,c))break a;if($c(b,d))continue;break}}}function S9a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+112>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+104>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+108>>2];k=(g|0)>(h|0)?g:h;h=J[a+ +116>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c; +i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!$c(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+ +4>>2]>2]){if($c(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!$c(a,c))break a;if(Xc(b,d))continue;break}}}function Q9a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b); +if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+112>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+104>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+108>>2];k=(g|0)>(h|0)?g:h;h=J[a+116>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>> +2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)== +J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!$c(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if($c(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!$c(a,c))break a;if(Xc(b,d))continue;break}}}function O9a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;if(!(!K[b+1188|0]|J[b+1208>>2]!=2)){Sd(b+104|0,b,O[b+1192>>3],O[b+1200>>3]);J[b+1208>>2]=3}Vc(b);if(!J[b+12>>2])break a;h=J[b+84>>2];J[b+1212>>2]=h;g=J[a+112>>2];i=J[b+88>>2];j=(g|0)<(i|0)?g:i;g=J[a+104>>2];i=J[b+80>>2];i=(g|0)>(i|0)?g:i;if((j|0)<(i|0))break a;g=J[a+108>>2];k=(g|0)>(h|0)?g:h;h=J[a+116>>2];g=J[b+92>>2];if((k|0)>(((g|0)>(h|0)?h:g)|0))break a;g=J[e+20>>2];h=(j-i|0)+ +2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>> +2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+88>>2]-J[b+80>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!$c(a,c))break a;if(!Xc(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if($c(a,c))continue;break a}while(1){g=J[d+4>>2]; +i=J[c+4>>2];if((g|0)<(i|0)){if(Xc(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Vf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!$c(a,c))break a;if(Xc(b,d))continue;break}}}function X3(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;d=J[a+32>>2];if(d){e=d-4|0;c=J[e>>2];if(c){c=d+P(c,20)|0;while(1){f=c-20|0;if(H[c-9|0]<0)uc(J[f>>2]);c=f;if((d|0)!=(c|0))continue;break}}uc(e);J[a+32>>2]=0}c=g+24|0;J[c+4>>2]=b;J[c>>2]=b;J[699344]=0;b=J[c+4>>2];f=K[b|0]|K[b+1|0]<< +8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+4>>2]=b+4;b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[a+36>>2]=f;b:{c:{if((f|0)<=0)break c;d=0;J[699344]=0;b=vEb(f,0,20,0);h=b+4|0;b=_(27,(jc?-1:b>>>0>h>>>0?-1:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b>>2]=f;e=b+4|0;b=e;h=P(f,20);i=h-20|0;j=((i>>>0)/20|0)+1&7;if(j)while(1){J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;b=b+20|0;d=d+1|0;if((j|0)!=(d|0))continue;break}if(i>>>0>=140){d=e+h|0;while(1){J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+40>>2]=0; +J[b+44>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;J[b+120>>2]=0;J[b+124>>2]=0;J[b+140>>2]=0;J[b+144>>2]=0;J[b+8>>2]=0;J[b+28>>2]=0;J[b+48>>2]=0;J[b+68>>2]=0;J[b+88>>2]=0;J[b+108>>2]=0;J[b+128>>2]=0;J[b+148>>2]=0;b=b+160|0;if((d|0)!=(b|0))continue;break}}J[a+32>>2]=e;d=0;if((f|0)<=0)break c;while(1){J[699344]=0;da(2988,g+12|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;f=P(d,20);b=f+J[a+32>>2]|0;if(H[b+11|0]<0)uc(J[b>>2]);e=J[g+16>>2];J[b>>2]=J[g+12>> +2];J[b+4>>2]=e;J[b+8>>2]=J[g+20>>2];J[699344]=0;b=J[c+4>>2];e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+4>>2]=b+4;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[(f+J[a+32>>2]|0)+12>>2]=e;J[699344]=0;b=J[c+4>>2];e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[c+4>>2]=b+4;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[(f+J[a+32>>2]|0)+16>>2]=e;d=d+1|0;if((d|0)>2])continue;break}}fc=g+32|0;return}}ba(Z()|0);B()}function Kub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i= +0,j=0,k=0,l=0,m=0;f=fc-16|0;fc=f;a:{b:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;c=1029;Jc(a,1029,0,0);break a}if(c>>>0>2){k=d;while(1){j=k;k=j+1|0;if(K[j|0])continue;break}i=j-d|0;if((i|0)>(c|0)){c=1043;Jc(a,1043,0,0);break a}if((d|0)==(j|0)){c=1044;Jc(a,1044,0,0);break a}if(K[k|0]){c=1038;Jc(a,1038,0,0);break a}J[f+4>>2]=0;l=(c-i|0)-2|0;c:{if(!J[a+192>>2])break c;c=hv(a,j+2|0,l,f+4|0,f+8|0,f+12|0);if(c){b=J[f+4>>2];if(!b)break a;kc[J[a+156>>2]](b,J[f+8>>2]); +break a}c=i+1|0;h=kc[J[a+152>>2]](c)|0;if(!h){b=J[f+4>>2];if(b)kc[J[a+156>>2]](b,J[f+8>>2]);c=1;Jc(a,1,0,0);break a}m=xc(h,d,i);g=J[f+4>>2];if(kc[J[a+192>>2]](a,1,m,g,0,0)|0)break c;if(g)kc[J[a+156>>2]](g,J[f+8>>2]);kc[J[a+156>>2]](m,c);c=904;Jc(a,904,0,0);break a}d:{if(!K[a+112|0])break d;c=kc[J[b+4>>2]](a,b,e)|0;if(c){if(g)kc[J[a+156>>2]](g,J[f+8>>2]);if(!h)break a;kc[J[a+156>>2]](h,i+1|0);break a}b=J[e>>2];J[b+32>>2]=i;H[b+40|0]=K[k|0];e:{if(g|!l)break e;c=hv(a,j+2|0,l,f+4|0,f+8|0,f+12|0);if(!c)break e; +b=J[f+4>>2];if(b)kc[J[a+156>>2]](b,J[f+8>>2]);if(!h)break a;kc[J[a+156>>2]](h,i+1|0);break a}b=i+1|0;c=kc[J[a+152>>2]](b)|0;J[J[e>>2]+36>>2]=c;c=J[J[e>>2]+36>>2];if(!c){c=J[f+4>>2];if(c)kc[J[a+156>>2]](c,J[f+8>>2]);if(h)kc[J[a+156>>2]](h,b);c=1;Jc(a,1,0,0);break a}xc(c,d,i);c=J[f+12>>2];J[J[e>>2]+44>>2]=c;if(!l){g=J[f+4>>2];break d}d=kc[J[a+152>>2]](c+1|0)|0;J[J[e>>2]+48>>2]=d;g=J[f+4>>2];d=J[J[e>>2]+48>>2];if(!d){if(g)kc[J[a+156>>2]](g,J[f+8>>2]);if(h)kc[J[a+156>>2]](h,b);c=1;Jc(a,1,0,0);break a}xc(d, +g,c)}if(g)kc[J[a+156>>2]](g,J[f+8>>2]);c=0;if(!h)break a;kc[J[a+156>>2]](h,i+1|0);break a}c=1028;Jc(a,1028,0,0)}fc=f+16|0;return c|0}function tZ(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;J[d+12>>2]=1E3;J[d+4>>2]=231660;c=Dc(1E3);J[d+8>>2]=c;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;J[d+20>>2]=8;J[d+16>>2]=c+8;c=J[a+32>>2];g=a+36|0;a:{b:{if((c|0)==(g|0)){c=J[d+8>>2];break b}c:{d:{if(b)while(1){J[699344]=0;a=_(3725,c+28|0)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break d;if(a){J[d+28>>2]=0;J[d+24>>2]=0;b=J[c+20>>2];e=J[c+16>>2];a=K[c+27|0];J[699344]=0;h=e;e=a<<24>>24<0;ma(1637,(e?h:c+16|0)|0,(e?b:a)|0,d+28|0,d+24|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ca(1638,d+4|0,J[d+28>>2],J[d+24>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break d;a=J[d+28>>2];if(a)uc(a);f=f+1|0}b=J[c+4>>2];e:{if(b)while(1){a=b;b=J[a>>2];if(b)continue;break e}while(1){a=J[c+8>>2];b=J[a>>2]!=(c|0);c=a;if(b)continue;break}}c=a;if((g|0)!=(c|0))continue;break c}while(1){J[699344]= +0;a=_(3725,c+28|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;if(!a){J[d+28>>2]=0;J[d+24>>2]=0;b=J[c+20>>2];e=J[c+16>>2];a=K[c+27|0];J[699344]=0;h=e;e=a<<24>>24<0;ma(1637,(e?h:c+16|0)|0,(e?b:a)|0,d+28|0,d+24|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;ca(1638,d+4|0,J[d+28>>2],J[d+24>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break d;a=J[d+28>>2];if(a)uc(a);f=f+1|0}b=J[c+4>>2];f:{if(b)while(1){a=b;b=J[a>>2];if(b)continue;break f}while(1){a=J[c+8>>2];b=J[a>>2]!=(c|0);c=a;if(b)continue; +break}}c=a;if((g|0)!=(c|0))continue;break}break c}a=Z()|0;J[d+4>>2]=231660;b=J[d+8>>2];if(b)uc(b);ba(a|0);B()}c=J[d+8>>2];a=J[d+20>>2];b=c;if(a>>>0<5)break a}H[c+4|0]=f;H[c+5|0]=f>>>8;H[c+6|0]=f>>>16;H[c+7|0]=f>>>24;a=J[d+20>>2];b=J[d+8>>2]}H[b|0]=a;H[b+1|0]=a>>>8;H[b+2|0]=a>>>16;H[b+3|0]=a>>>24;fc=d+32|0;return J[d+8>>2]}function oia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=fc-368|0;fc=f;J[f+360>>2]=37;J[f+364>>2]=0;j=f+360|0;h=iz(j|1,39197,J[c+4>>2]);g=f+320| +0;J[f+316>>2]=g;a=gh();a:{if(h){i=J[c+8>>2];O[f+40>>3]=e;J[f+32>>2]=i;a=Di(g,30,a,j,f+32|0);break a}O[f+48>>3]=e;a=Di(f+320|0,30,a,f+360|0,f+48|0)}J[f+80>>2]=1617;j=Bg(f+308|0,0,f+80|0);i=f+320|0;g=i;b:{c:{d:{e:{if((a|0)>=30){f:{if(h){J[699344]=0;a=pa(6851)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;J[f>>2]=J[c+8>>2];J[699344]=0;O[f+8>>3]=e;a=ha(6872,f+316|0,a|0,f+360|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1)break f;break d}J[699344]=0;a=pa(6851)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d; +O[f+16>>3]=e;J[699344]=0;a=ha(6872,f+316|0,a|0,f+360|0,f+16|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d}if((a|0)==-1){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;break e}zh(j,J[f+316>>2]);g=J[f+316>>2]}l=a+g|0;m=fk(g,l,c);J[f+68>>2]=1617;g=Bg(f+72|0,0,f+68|0);g:{h:{if(J[f+316>>2]==(f+320|0)){a=f+80|0;break h}a=Dc(a<<3);if(!a){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)!=1)break e;b=Z()|0;break g}zh(g,a);i=J[f+316>>2]}J[699344]=0;h=f+60|0;k=J[c+28>>2];J[h>>2]=k; +J[k+4>>2]=J[k+4>>2]+1;k=J[699344];J[699344]=0;i:{j:{if((k|0)!=1){J[699344]=0;ua(6884,i|0,m|0,l|0,a|0,f+68|0,f- -64|0,h|0);i=J[699344];J[699344]=0;if((i|0)==1)break j;h=J[h>>2];i=J[h+4>>2]-1|0;J[h+4>>2]=i;if((i|0)==-1)kc[J[J[h>>2]+8>>2]](h);J[699344]=0;a=ja(6885,b|0,a|0,J[f+68>>2],J[f+64>>2],c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;Ie(g);Ie(j);fc=f+368|0;break b}b=Z()|0;break g}b=Z()|0;a=J[f+60>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ie(g); +break c}B()}b=Z()|0}Ie(j);ba(b|0);B()}return a|0}function Aia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=fc-208|0;fc=f;J[f+200>>2]=37;J[f+204>>2]=0;j=f+200|0;h=iz(j|1,39197,J[c+4>>2]);g=f+160|0;J[f+156>>2]=g;a=gh();a:{if(h){i=J[c+8>>2];O[f+40>>3]=e;J[f+32>>2]=i;a=Di(g,30,a,j,f+32|0);break a}O[f+48>>3]=e;a=Di(f+160|0,30,a,f+200|0,f+48|0)}J[f+80>>2]=1617;j=Bg(f+148|0,0,f+80|0);i=f+160|0;g=i;b:{c:{d:{e:{if((a|0)>=30){f:{if(h){J[699344]=0;a=pa(6851)|0;g=J[699344];J[699344]= +0;if((g|0)==1)break d;J[f>>2]=J[c+8>>2];J[699344]=0;O[f+8>>3]=e;a=ha(6872,f+156|0,a|0,f+200|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1)break f;break d}J[699344]=0;a=pa(6851)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;O[f+16>>3]=e;J[699344]=0;a=ha(6872,f+156|0,a|0,f+200|0,f+16|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d}if((a|0)==-1){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)==1)break d;break e}zh(j,J[f+156>>2]);g=J[f+156>>2]}l=a+g|0;m=fk(g,l,c);J[f+68>>2]=1617;g=Bg(f+72|0,0,f+ +68|0);g:{h:{if(J[f+156>>2]==(f+160|0)){a=f+80|0;break h}a=Dc(a<<1);if(!a){J[699344]=0;ka(6831);a=J[699344];J[699344]=0;if((a|0)!=1)break e;b=Z()|0;break g}zh(g,a);i=J[f+156>>2]}J[699344]=0;h=f+60|0;k=J[c+28>>2];J[h>>2]=k;J[k+4>>2]=J[k+4>>2]+1;k=J[699344];J[699344]=0;i:{j:{if((k|0)!=1){J[699344]=0;ua(6873,i|0,m|0,l|0,a|0,f+68|0,f- -64|0,h|0);i=J[699344];J[699344]=0;if((i|0)==1)break j;h=J[h>>2];i=J[h+4>>2]-1|0;J[h+4>>2]=i;if((i|0)==-1)kc[J[J[h>>2]+8>>2]](h);J[699344]=0;a=ja(6874,b|0,a|0,J[f+68>>2], +J[f+64>>2],c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;Ie(g);Ie(j);fc=f+208|0;break b}b=Z()|0;break g}b=Z()|0;a=J[f+60>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);break g}b=Z()|0}Ie(g);break c}B()}b=Z()|0}Ie(j);ba(b|0);B()}return a|0}function lY(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;j=fc-256|0;fc=j;a:{if(!a){a=0;break a}if(!(J[a>>2]==(b|0)&J[a+4>>2]==(c|0))){J[a+4>>2]=c;J[a>>2]=b;J[j>>2]=c;J[j+128>>2]=b;e=c;f=b;while(1){o=i;i=i+1|0;h=i<<2;n=(e+ +1|0)/2|0;J[h+j>>2]=n;k=h+(j+128|0)|0;h=(f+1|0)/2|0;J[k>>2]=h;m=P(e,f);g=m+g|0;e=n;f=h;if(m>>>0>1)continue;break}J[a+8>>2]=g;b:{c:{d:{e:{if(!g){e=J[a+12>>2];if(!e)break d;f=a+12|0;break e}g=g<<4;if(g>>>0<=M[a+16>>2])break b;b=ch(J[a+12>>2],g);if(b)break c;Nc(d,1,2351799,0);f=a+12|0;e=J[f>>2];if(!e)break d}uc(e);J[f>>2]=0}uc(a);a=0;break a}J[a+12>>2]=b;c=b;b=J[a+16>>2];Ac(c+b|0,0,g-b|0);J[a+16>>2]=g;c=J[a+4>>2];b=J[a>>2]}f=J[a+12>>2];if(o){d=0;e=(P(b,c)<<4)+f|0;g=e;while(1){b=d<<2;k=J[b+j>>2];f:{if((k| +0)<=0)break f;m=k-1|0;l=0;g:{h:{c=J[b+(j+128|0)>>2];if((c|0)<=0){n=k&1;i=0;if((k|0)!=1)break h;b=g;break g}while(1){b=g;g=c;while(1){i:{J[f>>2]=e;if((g|0)==1){f=f+16|0;e=e+16|0;break i}J[f+16>>2]=e;e=e+16|0;f=f+32|0;h=(g|0)>2;g=g-2|0;if(h)continue}break}h=((l|0)==(m|0)|l)&1;g=h?e:b+(c<<4)|0;e=h?e:b;l=l+1|0;if((k|0)!=(l|0))continue;break}break f}h=k&-2;while(1){b=(i|0)==(m|0);i=i+2|0;e=b?e:g;g=e;b=e;l=l+2|0;if((h|0)!=(l|0))continue;break}}if(!n){g=e;break f}g=(c<<4)+b|0;c=((i|0)==(m|0)|i)&1;g=c?e: +g;e=c?e:b}d=d+1|0;if((o|0)!=(d|0))continue;break}}J[f>>2]=0}c=J[a+8>>2];if(!c)break a;e=J[a+12>>2];if(c>>>0>=4){b=c&-4;f=0;while(1){J[e+12>>2]=0;J[e+4>>2]=999;J[e+8>>2]=0;J[e+60>>2]=0;J[e+52>>2]=999;J[e+56>>2]=0;J[e+44>>2]=0;J[e+36>>2]=999;J[e+40>>2]=0;J[e+28>>2]=0;J[e+20>>2]=999;J[e+24>>2]=0;e=e- -64|0;f=f+4|0;if((b|0)!=(f|0))continue;break}}b=c&3;if(!b)break a;f=0;while(1){J[e+12>>2]=0;J[e+4>>2]=999;J[e+8>>2]=0;e=e+16|0;f=f+1|0;if((b|0)!=(f|0))continue;break}}fc=j+256|0;return a}function $Sa(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;e=fc-32|0;fc=e;a:{b:{if(J[J[a+28>>2]+664>>2]){b=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,832483,0);break b}c=J[a+8>>2];if(!(kc[J[J[c>>2]+28>>2]](c)|0)|!J[a+100>>2])break b;c=J[b+8>>2];b=J[a+20>>2];J[e+16>>2]=13;d:{while(1){if(J[b+56>>2]==7){f=e+16|0;if(J[Ec(J[b- -64>>2],c,f,0)>>2]!=5)break d;yc(f)}b=J[b+104>>2];if(b)continue;break}J[e>>2]=c;Cc(1,-1,791171,e);break b}b= +e+16|0;c=i$(b);yc(b);if(!c)break b;b=J[a+8>>2];kc[J[J[b>>2]+64>>2]](b,J[a+28>>2]);f=J[a+28>>2];d=vc(672);J[699344]=0;b=ga(3564,d|0,f|0,1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[a+28>>2]=b;if(J[c+176>>2]){h=O[c+168>>3];i=O[c+160>>3];j=O[c+144>>3];k=O[c+152>>3];O[b+608>>3]=k;O[b+600>>3]=j;b=J[b+596>>2];O[b+16>>3]=k;O[b+8>>3]=j;J[b>>2]=1;b=J[a+28>>2];O[b+608>>3]=k;O[b+600>>3]=i;re(J[b+596>>2],i,k);b=J[a+28>>2];O[b+608>>3]=h;O[b+600>>3]=i;re(J[b+596>>2],i,h);b=J[a+28>>2];O[b+608>>3]=h;O[b+600>> +3]=j;re(J[b+596>>2],j,h);b=J[a+28>>2];gg(J[b+596>>2]);d=J[b+596>>2];d=J[(J[d+24>>2]+(J[d+28>>2]<<2)|0)-4>>2];g=J[d+12>>2]<<3;O[b+600>>3]=O[(g+J[d>>2]|0)-8>>3];O[b+608>>3]=O[(g+J[d+4>>2]|0)-8>>3];Tj(J[a+28>>2]);b=J[a+8>>2];kc[J[J[b>>2]+220>>2]](b,J[a+28>>2]);_f(J[a+28>>2]);b=J[a+28>>2]}d=J[c+8>>2];g=kc[J[J[d>>2]+8>>2]](d)|0;d=J[b+116>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[b+116>>2]=g;b=J[a+8>>2];kc[J[J[b>>2]+108>>2]](b,J[a+28>>2]);x$(a,c);b=J[a+28>>2];if(J[b+668>>2])while(1){b=Mm(b);J[a+28>>2]=b;d=J[a+ +8>>2];kc[J[J[d>>2]+68>>2]](d,b);b=J[a+28>>2];if(J[b+668>>2])continue;break}uc(Br(b));J[a+28>>2]=f;a=J[a+8>>2];kc[J[J[a>>2]+68>>2]](a,f);kc[J[J[c>>2]+4>>2]](c)}fc=e+32|0;return}a=Z()|0;uc(d);ba(a|0);B()}function Zvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){o=e-2|0;p=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];f=a+3|0;g=g+3|0;a:{if(k>>>0>o>>>0)break a;j=k?(k|0)==(o|0)?d:b:c;l=!k&p;if(l){if(j>>>0<2)break a;h=j- +1|0;i=h&3;if(j-2>>>0>=3){j=h&-4;h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a|0];H[g+4|0]=K[a+1|0];H[g+5|0]=K[a+2|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];H[g+8|0]=K[a+2|0];H[g+9|0]=K[a|0];H[g+10|0]=K[a+1|0];H[g+11|0]=K[a+2|0];g=g+12|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];g=g+3|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;m=i-1|0;n=m&3;if(i- +2>>>0>=3){m=m&-4;i=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a|0];H[g+4|0]=K[a+1|0];H[g+5|0]=K[a+2|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];H[g+8|0]=K[a+2|0];H[g+9|0]=K[a|0];H[g+10|0]=K[a+1|0];H[g+11|0]=K[a+2|0];g=g+12|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;if(!n)break b;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];g=g+3|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;a=l?0:f;n=j+(h^-1)|0;i=0;l=j-h&3;if(l)while(1){H[g|0]=K[a|0];H[g+ +1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];h=h+1|0;g=g+3|0;i=i+1|0;if((l|0)!=(i|0))continue;break}if(n>>>0<3)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a|0];H[g+4|0]=K[a+1|0];H[g+5|0]=K[a+2|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];H[g+8|0]=K[a+2|0];H[g+9|0]=K[a|0];H[g+10|0]=K[a+1|0];H[g+11|0]=K[a+2|0];g=g+12|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function YKa(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;d=vc(44);g=J[J[a+16>>2]+36>>2];J[699344]=0;g=aa(3671,d|0,g|0)|0;h=J[699344];J[699344]=0;a:{if((h|0)!=1){d=J[a+16>>2];J[d+40>>2]=g;b:{if(H[d+11|0]<0){J[d+4>>2]=0;d=J[d>>2];break b}H[d+11|0]=0}J[d>>2]=0;h=J[a+16>>2];d=h+12|0;c:{if((d|0)==(e|0))break c;i=K[e+11|0];g=i<<24>>24;if(H[h+23|0]>=0){if((g|0)>=0){g=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=g;J[d+8>>2]=J[e+8>>2];break c}Gf(d,J[e>>2],J[e+4>>2]);break c}h=d;d=(g|0)<0;Lf(h,d?J[e>>2]:e,d?J[e+4>>2]:i)}g=J[a+16>>2];d=J[g+40>>2];h=J[g+36>>2];g= +fc-32|0;fc=g;i=J[d+16>>2];if(i){kc[J[J[i>>2]+12>>2]](i)|0;J[d+16>>2]=0}j=d,k=kc[J[J[h>>2]+52>>2]](h)|0,J[j+16>>2]=k;i=Sx();k=i,l=kc[J[J[h>>2]+24>>2]](h)|0,j=J[J[i>>2]+24>>2],kc[j](k|0,l|0);h=J[d+16>>2];kc[J[J[h>>2]+68>>2]](h,i);J[g+16>>2]=1;kc[J[J[i>>2]+20>>2]](i,g+16|0);J[J[693464]+468>>2]=J[d+16>>2];h=J[d>>2];if(h){uc(Xt(h));J[d>>2]=0}J[d+28>>2]=0;e=fC(e);f=fC(f);J[g+16>>2]=5;h=vc(48);J[699344]=0;i=Ln(h,b,0,c,g+16|0);b=J[699344];J[699344]=0;d:{e:{if((b|0)!=1){b=vc(48);J[699344]=0;h=na(3694,b|0, +i|0,e|0,f|0,0)|0;i=J[699344];J[699344]=0;f:{g:{if((i|0)!=1){J[d+24>>2]=c;J[d>>2]=h;if(e)uc(Zc(e));if(f)uc(Zc(f));b=J[d>>2];if(!b){J[d+28>>2]=12;b=0;break f}J[d+28>>2]=J[b+44>>2];if(J[b+40>>2])break g;uc(Xt(b));b=0;J[d>>2]=0;break f}a=Z()|0;uc(b);break a}Zw(J[d+20>>2]);c=g+4|0;K0(c,J[d>>2],J[d+16>>2],J[d+20>>2]);J[699344]=0;ca(3693,d+32|0,J[g+4>>2],g+8|0);d=J[699344];J[699344]=0;b=1;if((d|0)==1)break e;dj(c,J[g+8>>2])}fc=g+32|0;break d}a=Z()|0;uc(h);break a}a=Z()|0;dj(g+4|0,J[g+8>>2]);break a}if(b){a= +J[J[a+16>>2]+40>>2];b=J[a>>2];h:{if(b){a=0;if(J[b+40>>2])break h;a=b+44|0}else a=a+28|0;a=J[a>>2]}}else a=1;return!a|0}a=Z()|0;uc(d)}ba(a|0);B()}function Myb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=J[J[a+2248>>2]+88>>2];d=J[f+1168>>2];b=(J[f+1176>>2]+P(d,J[a+572>>2])|0)+P(d,J[a+2268>>2])|0;f=J[f+1164>>2];e=(b+P(f,J[a+580>>2])|0)+P(f,J[a+2264>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;f=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((f|0)<=0)break a;f=0;while(1){c=K[e|0]|K[e+1|0]<<8;b=(c<<8|c>>>8)&65535;c=K[d|0]| +K[d+1|0]<<8;c=b+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[e|0]=c;H[e+1|0]=c>>>8;c=e+2|0;b=K[c|0]|K[c+1|0]<<8;g=(b<<8|b>>>8)&65535;b=K[d+2|0]|K[d+3|0]<<8;b=g+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;c=e+4|0;b=K[c|0]|K[c+1|0]<<8;g=(b<<8|b>>>8)&65535;b=K[d+4|0]|K[d+5|0]<<8;b=g+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;c=e+6|0;b=K[c|0]|K[c+1|0]<<8;g=(b<<8|b>>>8)&65535;b=K[d+6|0]|K[d+7|0]<<8;b=g+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>> +8;d=d+8|0;e=(J[a+584>>2]<<3)+e|0;c=J[a+588>>2];f=f+1|0;if((c|0)>(f|0))continue;break}break b}if((f|0)<=0)break a;f=0;while(1){c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[e|0]=b;H[e+1|0]=b>>>8;H[e+2|0]=b>>>16;H[e+3|0]=b>>>24;H[e+4|0]=c;H[e+5|0]=c>>>8;H[e+6|0]=c>>>16;H[e+7|0]=c>>>24;d=d+8|0;e=(J[a+584>>2]<<3)+e|0;c=J[a+588>>2];f=f+1|0;if((c|0)>(f|0))continue;break}}if((c|0)<=0)break a;f=J[a+540>>2];e=(J[f+1176>>2]+P(J[a+572>>2],J[f+1168>>2])| +0)+P(J[a+580>>2],J[f+1164>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;c=0;while(1){f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[e|0]=b;H[e+1|0]=b>>>8;H[e+2|0]=b>>>16;H[e+3|0]=b>>>24;H[e+4|0]=f;H[e+5|0]=f>>>8;H[e+6|0]=f>>>16;H[e+7|0]=f>>>24;d=d+8|0;e=(J[a+584>>2]<<3)+e|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function A3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w= +0,x=0;u=fc-288|0;fc=u;q=J[a+332>>2];b=J[b+84>>2];a=u;while(1){j=J[b+96>>2];i=I[c+48>>1];k=J[b+160>>2];h=I[c+80>>1];o=J[b+224>>2];m=I[c+112>>1];n=J[b+32>>2];v=I[c+16>>1];r=P(I[c>>1],J[b>>2])<<13|1024;l=P(J[b+192>>2],I[c+96>>1]);s=r+P(l,-11586)|0;g=P(J[b+64>>2],I[c+32>>1]);f=P(J[b+128>>2],I[c+64>>1]);t=g-f|0;J[a+128>>2]=s+P(t,-11586)>>11;w=P(f+g|0,10887);x=P(f,2012);f=r+P(l,5793)|0;l=(w-x|0)+f|0;k=P(h,k);h=P(n,v);n=P(k+h|0,7447);j=P(P(i,j),-10033);i=P(m,o);o=P(i+h|0,3962);m=(n-j|0)+o|0;J[a+256>>2]= +l-m>>11;J[a>>2]=m+l>>11;m=s+P(t,5793)|0;h=P(h-(i+k|0)|0,10033);J[a+224>>2]=m-h>>11;J[a+32>>2]=h+m>>11;g=P(g,8875);h=g+(f-w|0)|0;k=P(k-i|0,11409);i=n+(j-k|0)|0;J[a+192>>2]=h-i>>11;J[a+64>>2]=h+i>>11;g=(f-g|0)+x|0;f=o+(j+k|0)|0;J[a+160>>2]=g-f>>11;J[a+96>>2]=f+g>>11;a=a+4|0;b=b+4|0;c=c+2|0;p=p+1|0;if((p|0)!=8)continue;break}b=q+128|0;a=u;p=0;while(1){c=J[(p<<2)+d>>2]+e|0;g=J[a+20>>2];f=J[a+4>>2];o=P(g+f|0,7447);k=P(J[a+12>>2],-10033);h=J[a+28>>2];m=P(h+f|0,3962);n=(o-k|0)+m|0;r=(J[a>>2]<<13)+131072| +0;l=J[a+24>>2];q=r+P(l,5793)|0;j=J[a+16>>2];i=J[a+8>>2];v=P(j+i|0,10887);t=P(j,2012);s=q+(v-t|0)|0;H[c|0]=K[b+(n+s>>>18&1023)|0];H[c+8|0]=K[b+(s-n>>>18&1023)|0];f=P(f-(h+g|0)|0,10033);n=r+P(l,-11586)|0;j=i-j|0;l=n+P(j,5793)|0;H[c+1|0]=K[b+(f+l>>>18&1023)|0];H[c+7|0]=K[b+(l-f>>>18&1023)|0];g=P(g-h|0,11409);f=o+(k-g|0)|0;h=P(i,8875);i=h+(q-v|0)|0;H[c+2|0]=K[b+(f+i>>>18&1023)|0];H[c+6|0]=K[b+(i-f>>>18&1023)|0];g=m+(g+k|0)|0;f=t+(q-h|0)|0;H[c+3|0]=K[b+(g+f>>>18&1023)|0];H[c+5|0]=K[b+(f-g>>>18&1023)|0]; +H[c+4|0]=K[b+(n+P(j,268423870)>>>18&1023)|0];a=a+32|0;p=p+1|0;if((p|0)!=9)continue;break}fc=u+288|0}function x4a(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;a:{h=a;f=b+72|0;k=J[f+48>>2];b=J[f+44>>2];i=f+40|0;if(!(!k|(b|0)==(i|0))){a=b;while(1){if(!(J[a+24>>2]<(c|0)|J[a+20>>2]>(c|0))){if(H[a+19|0]>=0){b=J[a+12>>2];J[h>>2]=J[a+8>>2];J[h+4>>2]=b;J[h+8>>2]=J[a+16>>2];break a}Ve(h,J[a+8>>2],J[a+12>>2]);break a}a=J[a+4>>2];if((i|0)!=(a|0))continue;break}}b:{c:{g=J[f+36>>2];if((g|0)<= +0)break c;d=J[f+32>>2];if(!d)break c;a=0;d:{e:{f:{g:{if(g>>>0>=2){e=g-1|0;while(1){g=a+e>>1;j=P(g,20)+d|0;h:{if(J[j+12>>2]>(c|0)){e=g-1|0;break h}if(J[j+16>>2]>=(c|0))break g;a=g+1|0}if((a|0)<(e|0))continue;break}}if((a|0)<=(e|0))break f;break c}a=vc(28);J[a>>2]=0;e=a+8|0;c=P(g,20)+d|0;i:{if(H[c+11|0]>=0){l=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=l;J[e+8>>2]=J[c+8>>2];break i}b=J[c+4>>2];c=J[c>>2];J[699344]=0;ca(15,e|0,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;d=J[f+32>>2];k=J[f+48>>2];b=J[f+ +44>>2]}c=J[j+16>>2];e=J[j+12>>2];J[a+4>>2]=b;J[a>>2]=i;J[a+20>>2]=e;J[a+24>>2]=c;J[b>>2]=a;J[f+48>>2]=k+1;J[f+44>>2]=a;a=P(g,20)+d|0;if(H[a+11|0]>=0)break d;break b}b=P(a,20)+d|0;if(!(J[b+12>>2]<=(c|0)&J[b+16>>2]>=(c|0)))break c;c=vc(28);J[c>>2]=0;d=c+8|0;j:{k:{l:{if(H[b+11|0]>=0){e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;J[d+8>>2]=J[b+8>>2];break l}e=J[b+4>>2];g=J[b>>2];J[699344]=0;ca(15,d|0,g|0,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break k}d=J[b+16>>2];b=J[b+12>>2];J[c>>2]=i;J[c+20>>2]=b;J[c+24>> +2]=d;b=J[i+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[i+4>>2]=c;J[i+8>>2]=J[i+8>>2]+1;break j}a=Z()|0;uc(c);ba(a|0);B()}a=J[f+32>>2]+P(a,20)|0;if(H[a+11|0]>=0)break d;break b}b=Z()|0;uc(a);ba(b|0);B()}b=J[a+4>>2];J[h>>2]=J[a>>2];J[h+4>>2]=b;J[h+8>>2]=J[a+8>>2];break a}J[h>>2]=0;H[h+11|0]=0;break a}Ve(h,J[a>>2],J[a+4>>2])}}function Dy(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:switch(K[a+498|0]){case 3:b=ph(a,L[a+1154>>1]);if(b)Zh(a,b,0);H[a+498|0]=0;return 0;default:g=L[a+1156>>1];b=L[a+1154>>1];d=I[a+1152>> +1];c=L[a+1150>>1];break a;case 0:break b}b=L[a+1150>>1];d=L[a+1152>>1];g=b>>>0>d>>>0?-1:1;I[a+1156>>1]=g;c=b}c:{d:{if((K[a+1148|0]&254)!=6){e:{while(1){c=ph(a,b&65535);f:{if(!c)break f;if(K[a+498|0]){Zh(a,c,0);H[a+498|0]=0;break f}g:switch(K[a+1148|0]){case 0:H[c+31|0]=1;Zh(a,c,0);break f;case 1:H[c+31|0]=0;break f;case 2:if(!K[c+31|0])break f;Zh(a,c,0);break f;case 3:H[c+31|0]=1;break f;case 4:e=K[c+31|0];H[c+31|0]=!e;if(e)break f;Zh(a,c,0);break f;case 5:break g;default:break f}H[c+31|0]=!K[c+31| +0]}if(K[a+497|0])break e;b=b+g<<16>>16;c=d<<16>>16;e=g<<16>>16;if((b|0)<=(c|0)&(e|0)>0|(e|0)<0&(b|0)>=(c|0))continue;break}H[a+498|0]=0;break d}I[a+1154>>1]=b;H[a+498|0]=4;return 0}i=1;h:{if(g<<16>>16>0){h=d<<16>>16;if((h|0)>16)break c;while(1){d=0;b=c;while(1){f=ph(a,b&65535);i:{if(!f)break i;if(d&65535){H[f+31|0]=0;break i}if(e&65535){H[f+31|0]=1;d=b;j=f;break i}if(!K[f+31|0]){e=0;d=0;break i}d=0;H[f+31|0]=0;e=b}b=b+g<<16>>16;if((h|0)>=(b|0))continue;break}b=e&65535;e=b>>>0<=1?1:b;b=!(d& +65535)&i;i=0;if(b)continue;break}break h}h=d<<16>>16;if((h|0)>c<<16>>16)break c;while(1){d=0;b=c;while(1){f=ph(a,b&65535);j:{if(!f)break j;if(d&65535){H[f+31|0]=0;break j}if(e&65535){H[f+31|0]=1;d=b;j=f;break j}if(!K[f+31|0]){e=0;d=0;break j}d=0;H[f+31|0]=0;e=b}b=b+g<<16>>16;if((h|0)<=(b|0))continue;break}b=e&65535;e=b>>>0<=1?1:b;b=!(d&65535)&i;i=0;if(b)continue;break}}H[a+498|0]=0;if(!j|K[a+1148|0]!=6)break d;Zh(a,j,0);if(!K[a+497|0])break d;I[a+1154>>1]=d;H[a+498|0]=3;return 0}return 0}H[a+498| +0]=0;return 0}function I9(a,b,c){var d=0,e=0,f=Q(0),g=0,h=0,i=Q(0),j=Q(0),k=0,l=0,m=0;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]+16>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(!(N[c+(d<<2)>>2]>2]))break b;J[a>>2]=d;J[b>>2]=e;return 1;case 3:c=J[J[c>>2]+16>>2];b=b-4|0;e=J[b>>2];f=N[c+(e<<2)>>2];g=J[a+4>>2];i=N[c+(g<<2)>>2];d=J[a>>2];j=N[c+(d<<2)>>2];if(!(i>2]=e;J[b>>2]=g;b=J[a+4>>2];d=J[a>>2];if(!(N[c+(b<<2)>>2]>2]))break b;break a}if(f>2]=e;J[b>> +2]=d;return 1}J[a+4>>2]=d;J[a>>2]=g;e=J[b>>2];if(!(j>N[c+(e<<2)>>2]))break b;J[a+4>>2]=e;J[b>>2]=d;return 1;case 4:ry(a,a+4|0,a+8|0,b-4|0,c);return 1;case 5:ry(a,a+4|0,a+8|0,a+12|0,c);c=J[J[c>>2]+16>>2];b=b-4|0;d=J[b>>2];e=J[a+12>>2];if(!(N[c+(d<<2)>>2]>2]))break b;J[a+12>>2]=d;J[b>>2]=e;b=J[a+12>>2];f=N[c+(b<<2)>>2];d=J[a+8>>2];if(!(f>2]))break b;J[a+8>>2]=b;J[a+12>>2]=d;d=J[a+4>>2];if(!(f>2]))break b;J[a+8>>2]=d;J[a+4>>2]=b;d=J[a>>2];if(!(f>2]))break b; +break a;case 0:case 1:break b;default:break c}g=a+4|0;d=a+8|0;k=J[J[c>>2]+16>>2];h=J[a+8>>2];f=N[k+(h<<2)>>2];l=J[a+4>>2];i=N[(l<<2)+k>>2];m=J[a>>2];j=N[(m<<2)+k>>2];d:{e:{if(!(i>2]=h;J[d>>2]=l;e=a;c=g;if(f>2]=m;J[a>>2]=l;e=g;if(!(f>2]=h;J[c>>2]=m}g=a+12|0;if((g|0)==(b|0))break b;e=0;while(1){f:{c=g;l=J[c>>2];f=N[(l<<2)+k>>2];h=J[d>>2];if(!(f>2]))break f;while(1){g:{J[c>>2]=h;c=d;if((c|0)==(a|0)){c= +a;break g}d=c-4|0;h=J[d>>2];if(f>2])continue}break}J[c>>2]=l;e=e+1|0;if((e|0)!=8)break f;return(g+4|0)==(b|0)}d=g;c=d+4|0;g=c;if((b|0)!=(c|0))continue;break}}return 1}J[a+4>>2]=d;J[a>>2]=b;return 1}function H9(a,b,c){var d=0,e=0,f=Q(0),g=0,h=0,i=Q(0),j=Q(0),k=0,l=0,m=0;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(!(N[c+(d<<2)>>2]>2]))break b;J[a>>2]=d;J[b>>2]=e;return 1;case 3:c=J[J[c>>2]+12>>2];b=b-4|0;e=J[b>>2];f=N[c+(e<<2)>>2];g=J[a+4>> +2];i=N[c+(g<<2)>>2];d=J[a>>2];j=N[c+(d<<2)>>2];if(!(i>2]=e;J[b>>2]=g;b=J[a+4>>2];d=J[a>>2];if(!(N[c+(b<<2)>>2]>2]))break b;break a}if(f>2]=e;J[b>>2]=d;return 1}J[a+4>>2]=d;J[a>>2]=g;e=J[b>>2];if(!(j>N[c+(e<<2)>>2]))break b;J[a+4>>2]=e;J[b>>2]=d;return 1;case 4:qy(a,a+4|0,a+8|0,b-4|0,c);return 1;case 5:qy(a,a+4|0,a+8|0,a+12|0,c);c=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[a+12>>2];if(!(N[c+(d<<2)>>2]>2]))break b;J[a+12>>2]=d;J[b>>2]=e;b=J[a+ +12>>2];f=N[c+(b<<2)>>2];d=J[a+8>>2];if(!(f>2]))break b;J[a+8>>2]=b;J[a+12>>2]=d;d=J[a+4>>2];if(!(f>2]))break b;J[a+8>>2]=d;J[a+4>>2]=b;d=J[a>>2];if(!(f>2]))break b;break a;case 0:case 1:break b;default:break c}g=a+4|0;d=a+8|0;k=J[J[c>>2]+12>>2];h=J[a+8>>2];f=N[k+(h<<2)>>2];l=J[a+4>>2];i=N[(l<<2)+k>>2];m=J[a>>2];j=N[(m<<2)+k>>2];d:{e:{if(!(i>2]=h;J[d>>2]=l;e=a;c=g;if(f>2]=m;J[a>>2]=l;e=g; +if(!(f>2]=h;J[c>>2]=m}g=a+12|0;if((g|0)==(b|0))break b;e=0;while(1){f:{c=g;l=J[c>>2];f=N[(l<<2)+k>>2];h=J[d>>2];if(!(f>2]))break f;while(1){g:{J[c>>2]=h;c=d;if((c|0)==(a|0)){c=a;break g}d=c-4|0;h=J[d>>2];if(f>2])continue}break}J[c>>2]=l;e=e+1|0;if((e|0)!=8)break f;return(g+4|0)==(b|0)}d=g;c=d+4|0;g=c;if((b|0)!=(c|0))continue;break}}return 1}J[a+4>>2]=d;J[a>>2]=b;return 1}function ldb(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;e=fc- +16|0;fc=e;d=J[b>>2];i=J[d>>2];J[J[i>>2]+20>>2]=c;c=i;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+24>>2]=0;J[c+28>>2]=-1;J[c+208>>2]=0;J[c+212>>2]=-1;J[c+176>>2]=0;J[c+180>>2]=0;J[c+400>>2]=0;J[c+404>>2]=0;J[d+156>>2]=0;if(K[a+96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1172>>2]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+ +56>>2]=0;J[a+60>>2]=0}i=a+100|0;while(1){a:{j=e+8|0;d=J[b>>2];h=d+8|0;k=d+176|0;l=d+168|0;while(1){b:{c:{d:{e:switch(J[d+156>>2]){case 1:c=J[d+160>>2];break d;case 2:break c;case 0:break e;default:continue}c=Lu(J[d>>2],l,k);J[d+156>>2]=1;J[d+160>>2]=c}if(!c){c=0;break b}J[h+120>>2]=0;J[h+124>>2]=0;J[h+72>>2]=0;Cu(h,O[l>>3],O[k>>3],1);f:{while(1){c=Lu(J[d>>2],j,e);if(c-1>>>0<=13){J[d+160>>2]=c;f=O[j>>3];if((c|0)==1){O[l>>3]=f;O[k>>3]=O[e>>3];break f}Cu(h,f,O[e>>3],c);continue}if(!c){J[d+160>>2]=0; +break f}if((c&15)!=15)continue;break}Cu(h,O[j>>3],O[e>>3],c)}T3(h);J[d+156>>2]=2}c=S3(h,j,e);if(c)break b;J[d+156>>2]=1;continue}break}if(c-1>>>0>=14){if(!c)break a;if((c&-49)!=79|J[a+1172>>2]!=2)continue;gd(i,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3;continue}d=J[b+4>>2];g=O[e+8>>3];m=O[e>>3];f=O[d+32>>3]+(g*O[d>>3]+m*O[d+16>>3]);O[e+8>>3]=f;g=O[d+40>>3]+(g*O[d+8>>3]+m*O[d+24>>3]);O[e>>3]=g;if((c|0)==1)zM(a,f,g);else{g=g*256;g=g+(g<0?-.5:.5);g:{if(R(g)<2147483648){c=~~g;break g}c=-2147483648}f= +f*256;f=f+(f<0?-.5:.5);h:{if(R(f)<2147483648){d=~~f;break h}d=-2147483648}gd(i,a,d,c);J[a+1172>>2]=2}continue}break}fc=e+16|0}function wwa(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=fc-48|0;fc=j;d=L[b+10>>1];e=L[b+8>>1];f=J[a+20>>2];if(f)uc(f);J[a+16>>2]=0;J[a+20>>2]=0;I[a+12>>1]=d;I[a+10>>1]=d;I[a+8>>1]=e;d=P(d,e);if(d){d=vc((n=-1,o=vEb(d,0,3,0),p=jc,p?n:o));J[a+16>>2]=d;J[a+20>>2]=d}k=sh(j+12|0,j+20|0,0,3);a:{b:{c:{d:{e:{f:{if(!L[a+8>>1]|!L[a+10>>1])break f; +g:{if(c)break g;J[699344]=0;ca(5614,k|0,256,3);c=J[699344];J[699344]=0;if((c|0)==1)break c;J[699344]=0;ri(k,3,0);c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[j+20>>2];d=L[b+16>>1];if(!d)break g;h=16711680/(d-1|0)|0;l=d&1;h:{if((d|0)==1){e=0;d=255;break h}m=d&65534;e=0;d=16711680;f=0;while(1){g=P(e,3)+c|0;i=d>>>16|0;H[g+2|0]=i;H[g+1|0]=i;H[g|0]=i;g=P(e|1,3)+c|0;i=d-h|0;d=i>>>16|0;H[g+2|0]=d;H[g+1|0]=d;H[g|0]=d;e=e+2|0;d=i-h|0;f=f+2|0;if((m|0)!=(f|0))continue;break}d=d>>>16|0}if(!l)break g;e=P(e, +3)+c|0;H[e+2|0]=d;H[e+1|0]=d;H[e|0]=d}if(!L[a+8>>1])break f;f=0;while(1){h=L[a+12>>1];e=J[a+16>>2];if(!J[b+20>>2]){J[699344]=0;$(5177,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break e}d=L[b+14>>1];i:{if(L[b+8>>1]<=f>>>0){g=d;d=L[b+12>>1];if(J[685890]<(g+d|0)){J[699344]=0;a=ja(5178,j+24|0,2393468,2393871,592,2423452,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;e=Z()|0;Kc(a);break b}d=d+J[685889]|0;break i}d=L[b+12>>1]+(J[b+20>> +2]+P(d,f)|0)|0}if(L[a+10>>1]){i=e?e+P(P(f,h),3)|0:0;e=0;while(1){h=i+P(e,3)|0;g=P(K[d+e|0],3)+c|0;l=K[g|0]|K[g+1|0]<<8;H[h|0]=l;H[h+1|0]=l>>>8;H[h+2|0]=K[g+2|0];e=e+1|0;if(e>>>0>1])continue;break}}f=f+1|0;if(f>>>0>1])continue;break}}hd(k);fc=j+48|0;return}e=Z()|0;break b}e=Z()|0;break b}e=Z()|0}hd(k);ba(e|0)}B()}function iE(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;if(d)J[d>>2]=0;g=4;a:{while(1){f=j;i=(f|0)<214748364;b:{while(1){c:{if(!g)break c;b=b+1|0;if(b>>>0< +M[a+8>>2])break c;e=0;break a}e=4-g|0;j=K[b|0];h=j>>>g&15;if((h|0)==14){o=1;g=e;continue}if(h>>>0>9)break b;if(!i){n=n+1|0;g=e;continue}break}j=0;g=e;if(!(f|h))continue;l=l+1|0;j=P(f,10)+h|0;continue}break}g=0;d:{if((h|0)!=10)break d;e:while(1){k=(f|0)<214748364&(m|0)<9;while(1){if(e){b=b+1|0;if(b>>>0>=M[a+8>>2]){e=0;break a}j=K[b|0]}i=4-e|0;h=(j&255)>>>e&15;if(h>>>0>9){e=i;break d}if(!(f|h)){n=n-1|0;f=0;e=i;continue e}e=i;if(!k)continue;break}m=m+1|0;f=P(f,10)+h|0;continue}}f:{g:{h:{if(h-11>>>0<= +1){i=0;while(1){if(e){b=b+1|0;if(b>>>0>=M[a+8>>2]){e=0;break a}j=K[b|0]}k=(j&255)>>>e&15;if(k>>>0<=9){p=k+P(g,10)|0;k=(g|0)>1E3;g=k?g:p;i=k?1:i;e=4-e|0;continue}break}if(!f){e=0;break a}a=(h|0)==12;if(i)break g;e=a?0-g|0:g;break h}e=0;if(!f)break a}a=(c+n|0)+e|0;if(d){a=a+l|0;b=l+m|0;if((b|0)<=5){if((f|0)>=32768){e=Cd(f,10);J[d>>2]=(a-b|0)+1;break a}i:{j:{if((a|0)<=0)break j;c=(a|0)>=5?5:a;e=c-b|0;if((e|0)<=0)break j;a=a-c|0;f=P(J[(e<<2)+258240>>2],f);if((f|0)<32768)break i;f=(f>>>0)/10|0;a=a+1|0; +break i}a=a-b|0}J[d>>2]=a;e=f<<16;break a}b=b<<2;c=J[b+258220>>2];if(((f|0)/(c|0)|0)>=32768){e=Cd(f,J[b+258224>>2]);J[d>>2]=a-4;break a}e=Cd(f,c);J[d>>2]=a-5;break a}e=2147483647;b=a+l|0;if((b|0)>5)break a;if((b|0)<-5)break f;if((b|0)>=0)a=m-a|0;else{f=(f|0)/J[258240-(b<<2)>>2]|0;a=l+m|0}c=(a|0)==10;b=c?(f|0)/10|0:f;a=c?9:a;if((a|0)>0){e=0;a=J[(a<<2)+258240>>2];if(((b|0)/(a|0)|0)>32767)break a;e=Cd(b,a);break a}a=P(b,J[258240-(a<<2)>>2]);e=(a|0)>32767?2147483647:a<<16;break a}e=2147483647;if(!a)break a}e= +0}return o?0-e|0:e}function fi(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=fc-32|0;fc=h;J[h+16>>2]=13;a:{if((d|0)>=9){Cc(1,-1,776271,0);break a}b:{c:{d:{e:switch(J[a>>2]-4|0){case 3:g=J[a+8>>2];break b;case 4:break c;case 0:break e;default:break d}if(Ic(J[a+8>>2],777384))break d;if((b|0)!=(c|0)){Cc(1,-1,778617,0);break a}f=vc(1048);J[f+8>>2]=b;J[f>>2]=2216812;J[f+4>>2]=b;f:{if((b|0)<=0)break f;c=0;d=0;if(b>>>0>=4){j=b&-4;while(1){a=f+16|0;g=d<<4;e=a+g|0;J[e+8>>2]=0;J[e+12>>2]=1072693248;J[e>>2]=0;J[e+ +4>>2]=0;e=a+(g|16)|0;J[e+8>>2]=0;J[e+12>>2]=1072693248;J[e>>2]=0;J[e+4>>2]=0;e=a+(g|32)|0;J[e+8>>2]=0;J[e+12>>2]=1072693248;J[e>>2]=0;J[e+4>>2]=0;a=a+(g|48)|0;J[a+8>>2]=0;J[a+12>>2]=1072693248;J[a>>2]=0;J[a+4>>2]=0;d=d+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}b=b&3;if(!b)break f;while(1){a=(d<<4)+f|0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;d=d+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}J[f+1040>>2]=0;break a}Cc(1,-1,779930,0);break a}f=J[a+8>>2];g=kc[J[J[f>>2]+76>>2]](f)| +0}f=0;e=h+16|0;if(J[Ec(g,781404,e,0)>>2]!=1){Cc(1,-1,782386,0);yc(e);break a}e=J[h+24>>2];yc(h+16|0);g:{h:{i:{j:switch(e|0){case 0:e=vc(2992);J[699344]=0;a=ga(3559,e|0,a|0,g|0)|0;break i;case 2:e=vc(1576);J[699344]=0;a=ga(3560,e|0,h|0,g|0)|0;break i;case 3:e=vc(1072);J[699344]=0;a=ja(3561,e|0,h|0,g|0,b|0,c|0,d|0)|0;break i;case 4:break j;default:break h}e=vc(1584);J[699344]=0;a=ga(3562,e|0,a|0,g|0)|0}d=J[699344];J[699344]=0;if((d|0)!=1)break g;a=Z()|0;uc(e);ba(a|0);B()}J[h>>2]=e;Cc(1,-1,783872,h); +break a}if(!(kc[J[J[a>>2]+20>>2]](a)|0)){kc[J[J[a>>2]+4>>2]](a);break a}k:{if(J[a+4>>2]!=(b|0))break k;if((c|0)<0){f=a;break a}if(J[a+8>>2]!=(c|0))break k;f=a;break a}Cc(1,-1,784243,0);kc[J[J[a>>2]+4>>2]](a)}fc=h+32|0;return f}function Gl(a,b,c){var d=0,e=0,f=0,g=0,h=0;h=fc-16|0;fc=h;a:{if(J[a+4>>2]!=1?a:0)break a;b:{if(!c)break b;d=9684;if((c|0)!=9684){e=c;while(1){f=K[e|0];if((f|0)!=K[d|0])break b;d=d+1|0;e=e+1|0;if(f)continue;break}}d=14854;f=0;if((b|0)==14854)break a;if(!b)break b;e=b;while(1){g= +K[e|0];if((g|0)!=K[d|0])break b;d=d+1|0;e=e+1|0;if(g)continue;break}break a}f=kc[J[663195]](24)|0;if(!f){J[h>>2]=14911;Hc(0,0,0,0,0,2,2,3,14911,0,0,0,32879,h);f=0;break a}J[f>>2]=0;J[f+4>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[f+4>>2]=18;if(b){d=b;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}d=0;e=e-b|0;c:{if((e|0)<0)break c;g=kc[J[663198]](e+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break c}d=xc(g,b,e);H[e+d|0]=0}J[f+8>>2]=d}if(c){d=c;while(1){b=d;d=d+1|0;if(K[b|0])continue; +break}d=0;b=b-c|0;d:{if((b|0)<0)break d;e=kc[J[663198]](b+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}d=xc(e,c,b);H[b+d|0]=0}J[f+12>>2]=d}if(!a)break a;b=J[a+48>>2];if(!b){J[a+48>>2]=f;break a}e=0;c=J[f+12>>2];d=J[b+12>>2];if(c|d){e:{if((c|0)==(d|0))break e;f:{if(!d|!c)break f;e=c;while(1){a=K[d|0];if((a|0)!=K[e|0])break f;e=e+1|0;d=d+1|0;if(a)continue;break}break e}g:{d=J[b>>2];h:{if(!d)break h;if(c)while(1){b=d;d=J[d+12>>2];if((d|0)==(c|0))break g;e=c;i:{if(!d)break i;while(1){a=K[d| +0];if((a|0)!=K[e|0])break i;e=e+1|0;d=d+1|0;if(a)continue;break}break g}d=J[b>>2];if(d)continue;break h}while(1){b=d;if(!J[d+12>>2])break g;d=J[d>>2];if(d)continue;break}}J[b>>2]=f;break a}a=J[f+8>>2];if(a){kc[J[663199]](a);c=J[f+12>>2]}if(c)kc[J[663199]](c);kc[J[663199]](f);f=0;break a}e=c}a=J[f+8>>2];if(a){kc[J[663199]](a);e=J[f+12>>2]}if(e)kc[J[663199]](e);kc[J[663199]](f);f=0}fc=h+16|0;return f}function lM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a=fc-176|0;fc=a;a:{b:{c:{n=O[c>>3];h=O[b>>3];k=n-h;f=O[d+8>>3];o=O[d+80>>3]-f;j=O[d>>3];i=O[d+72>>3]-j;p=O[c+8>>3];l=O[b+8>>3];m=p-l;g=k*o-i*m;if(g>=-1.12E-16&g<=1.12E-16)break c;r=i;i=l-f;j=h-j;f=(r*i-j*o)/g;if(!(f>-1E-12)|!(f<1.000000000001))break c;g=(k*i+j*-m)/g;if(!(g>-1E-12)|!(g<1.000000000001))break c;g=f<=0?0:f>=1?1:f;f=g*k+h;h=f-n;i=h*h;g=g*m+l;h=g-p;if(Y(i+h*h)<=1E-7){b=(J[e>>2]+1|0)%2|0;break a}d:{h=f-O[d>>3];i=h*h;h=g-O[d+8>>3];if(!(Y(i+h*h)<=1E-7)){f=f-O[d+72>>3];i=f*f;f=g- +O[d+80>>3];if(!(Y(i+f*f)<=1E-7))break d}b=J[e>>2]+1|0;J[e>>2]=b;b=(b|0)%2|0;break a}if(K[d+120|0])break b;b=1;J[e>>2]=J[e>>2]+1;break a}if(K[d+120|0])break b;b=0;break a}O[a+16>>3]=O[b>>3]-O[c>>3];O[a>>3]=O[b+8>>3]-O[c+8>>3];a5(a+160|0,d,c,c+8|0,a+16|0,a);f=O[b+8>>3];g=O[b>>3];O[a+16>>3]=O[c>>3];O[a+24>>3]=O[c+8>>3];O[a+32>>3]=O[c+16>>3];O[a+40>>3]=O[c+24>>3];O[a+48>>3]=O[c+32>>3];O[a+56>>3]=O[c+40>>3];b=J[c+60>>2];J[a+72>>2]=J[c+56>>2];J[a+76>>2]=b;b=J[c+52>>2];J[a+64>>2]=J[c+48>>2];J[a+68>>2]=b; +J[a+80>>2]=J[c+64>>2];e=J[c+68>>2];J[a+84>>2]=e;if(e)J[e+4>>2]=J[e+4>>2]+1;J[a+104>>2]=0;J[a+108>>2]=0;O[a+96>>3]=f;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=-1;J[a+152>>2]=0;J[a+156>>2]=0;O[a+88>>3]=g;b=0;c=J[a+160>>2];q=J[a+164>>2];if((c|0)!=(q|0))while(1){J[a+172>>2]=0;ah(a,d,c,a+172|0);b=(an(a+16|0,a)!=-1)+b|0;c=c+8|0;if((q|0)!=(c|0))continue;break}e:{if(!e)break e;c=J[e+4>>2];J[e+4>>2]=c-1;if(c)break e; +kc[J[J[e>>2]+8>>2]](e);Gc(e)}c=J[a+160>>2];if(!c)break a;J[a+164>>2]=c;uc(c)}fc=a+176|0;return b|0}function bda(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;j=fc-16|0;fc=j;d=1;a:{if((c|0)<=0)break a;k=J[a+608>>2];m=J[a+604>>2];while(1){l=J[a+56>>2];e=(l|0)>0;b:{if((l|0)<=0){f=k;g=0;break b}g=0;h=0;d=b;f=k;if((f|0)<=0)break b;while(1){c:{d:{e:{f:{g:{f=K[m|0];switch((f>>>6|0)-1|0){case 2:break d;case 1:break e;case 0:break f;default:break g}}h:{if(g&1){e=K[d|0]|h;H[d|0]= +e;f=f-1|0;g=g+1|0;d=d+1|0;e=e&255;break h}e=h<<4|h}g=f+g|0;if(!((f|0)<=0|(l|0)<=(g|0))){i=f-2|0;h=(f>>>0>=i>>>0?i:0)+1|0;i=(h>>>1|0)+1|0;f=(f-(h&-2)|0)-2|0;d=Ac(d,e,i)+i|0}if((f|0)==-1){d=d-1|0;H[d|0]=K[d|0]&240}h=e&15;break c}e=f>>>4&3;i:{if((e|0)==2){e=d;break i}e=J[(e<<2)+97792>>2]+h|0;h=e&15;j:{if(g&1){i=K[d|0]|h;e=d+1|0;break j}i=e<<4;e=d}g=g+1|0;H[d|0]=i}d=f>>>2&3;k:{if((d|0)==2){d=e;e=g;break k}d=J[(d<<2)+97792>>2]+h|0;h=d&15;l:{if(g&1){i=K[e|0]|h;d=e+1|0;break l}i=d<<4;d=e}H[e|0]=i;e=g+1| +0}f=f&3;if((f|0)==2){g=e;break c}g=e+1|0;f=J[(f<<2)+97792>>2]+h|0;h=f&15;if(e&1){H[d|0]=K[d|0]|h;d=d+1|0;break c}H[d|0]=f<<4;break c}e=f>>>3&7;m:{if((e|0)==4){e=d;break m}e=J[(e<<2)+97808>>2]+h|0;h=e&15;n:{if(g&1){i=K[d|0]|h;e=d+1|0;break n}i=e<<4;e=d}H[d|0]=i;g=g+1|0}i=g;d=f&7;if((d|0)==4){d=e;break c}g=i+1|0;d=J[(d<<2)+97808>>2]+h|0;h=d&15;if(i&1){H[e|0]=K[e|0]|h;d=e+1|0;break c}H[e|0]=d<<4;d=e;break c}e=g+1|0;h=f&15;o:{if(g&1){H[d|0]=K[d|0]|h;d=d+1|0;break o}H[d|0]=f<<4}g=e}f=k-1|0;m=m+1|0;e=(g| +0)<(l|0);if(k>>>0<2)break b;k=f;if(e)continue;break}}J[a+608>>2]=f;J[a+604>>2]=m;if((g|0)!=(l|0)){b=J[a>>2];c=J[a+628>>2];a=J[a+472>>2];J[j+12>>2]=l;J[j+8>>2]=g;J[j+4>>2]=a;J[j>>2]=e?70212:70803;Uc(c,b,69732,j);d=0;break a}d=J[a+588>>2];b=d+b|0;k=f;c=c-d|0;if((c|0)>0)continue;break}d=1}fc=j+16|0;return d|0}function Gw(a,b,c,d,e,f,g,h,i,j,k,l){var 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;o=fc-1152|0;fc=o;m=J[k+8>>2];p=kc[J[J[m>>2]+28>>2]](m)|0;$t(k,d,o+256|0);$t(k,g,o+128|0);$t(k,j,o);a:{b:{c:{d:{if((p| +0)<=0)break d;while(1){m=t<<2;v=J[m+(o+128|0)>>2];x=J[m+(o+256|0)>>2]-v|0;y=x>>31;if((y^x)-y>>>0>256)break d;v=v-J[m+o>>2]|0;m=v>>31;if((m^v)-m>>>0>256)break d;t=t+1|0;if((p|0)!=(t|0))continue;break}m=J[a+28>>2];break c}m=J[a+28>>2];if((l|0)==6|(p|0)==(t|0))break c;n=O[m+16>>3];u=e-b;q=f-c;s=O[m+32>>3];if(!(R(n*u+q*s)<.5))break b;w=O[m+24>>3];r=w*u;u=O[m+40>>3];if(!(R(r+q*u)<.5))break b;q=h-e;r=i-f;if(!(R(n*q+r*s)<.5)|!(R(w*q+r*u)<.5))break b;r=n;n=b-h;q=c-i;if(!(R(r*n+q*s)<.5)|!(R(w*n+q*u)<.5))break b}xc(m+ +124|0,o+256|0,128);d=J[a+8>>2];kc[J[J[d>>2]+116>>2]](d,J[a+28>>2]);d=J[a+28>>2];O[d+608>>3]=c;O[d+600>>3]=b;d=J[d+596>>2];O[d+16>>3]=c;O[d+8>>3]=b;J[d>>2]=1;d=J[a+28>>2];O[d+608>>3]=f;O[d+600>>3]=e;re(J[d+596>>2],e,f);d=J[a+28>>2];O[d+608>>3]=i;O[d+600>>3]=h;re(J[d+596>>2],h,i);d=J[a+28>>2];gg(J[d+596>>2]);g=J[d+596>>2];g=J[(J[g+24>>2]+(J[g+28>>2]<<2)|0)-4>>2];j=J[g+12>>2]<<3;O[d+600>>3]=O[(j+J[g>>2]|0)-8>>3];O[d+608>>3]=O[(j+J[g+4>>2]|0)-8>>3];d=J[a+8>>2];kc[J[J[d>>2]+204>>2]](d,J[a+28>>2]);_f(J[a+ +28>>2]);break a}t=J[k+324>>2];if((t|0)>0){m=0;while(1){p=m<<3;n=O[p+d>>3];s=O[g+p>>3];O[p+(o+896|0)>>3]=(n+s)*.5;r=n;n=O[j+p>>3];O[p+(o+384|0)>>3]=(r+n)*.5;O[p+(o+640|0)>>3]=(s+n)*.5;m=m+1|0;if((t|0)!=(m|0))continue;break}}r=b;q=c;t=d;n=(b+e)*.5;s=(c+f)*.5;m=o+896|0;b=(b+h)*.5;c=(c+i)*.5;p=o+384|0;d=l+1|0;Gw(a,r,q,t,n,s,m,b,c,p,k,d);r=e;q=f;l=g;e=(e+h)*.5;f=(f+i)*.5;g=o+640|0;Gw(a,n,s,m,r,q,l,e,f,g,k,d);Gw(a,n,s,m,e,f,g,b,c,p,k,d);Gw(a,b,c,p,e,f,g,h,i,j,k,d)}fc=o+1152|0}function xT(a,b,c){var d=0; +a:{b:{c:{d:{e:{f:switch(c|0){case 1:kc[J[J[a>>2]+8>>2]](a,1);c=J[a+12>>2];J[a+12>>2]=c+4;J[c>>2]=b;break e;case 0:kc[J[J[a>>2]+8>>2]](a,1);b=J[a+12>>2];J[a+12>>2]=b+4;J[b>>2]=32;break e;case 2:kc[J[J[a>>2]+8>>2]](a,5);b=J[a+12>>2];J[b+8>>2]=109;J[b+12>>2]=112;J[b>>2]=38;J[b+4>>2]=97;break c;case 3:kc[J[J[a>>2]+8>>2]](a,6);b=J[a+12>>2];J[b+16>>2]=115;J[b+8>>2]=112;J[b+12>>2]=111;J[b>>2]=38;J[b+4>>2]=97;break b;case 4:kc[J[J[a>>2]+8>>2]](a,4);b=J[a+12>>2];J[b+8>>2]=116;J[b>>2]=38;J[b+4>>2]=108;break a; +case 5:kc[J[J[a>>2]+8>>2]](a,4);b=J[a+12>>2];J[b+8>>2]=116;J[b>>2]=38;J[b+4>>2]=103;break a;case 6:kc[J[J[a>>2]+8>>2]](a,6);b=J[a+12>>2];J[b+16>>2]=116;J[b+8>>2]=117;J[b+12>>2]=111;J[b>>2]=38;J[b+4>>2]=113;break b;case 7:kc[J[J[a>>2]+8>>2]](a,5);b=J[a+12>>2];J[b+8>>2]=120;J[b+12>>2]=65;break d;case 8:kc[J[J[a>>2]+8>>2]](a,5);b=J[a+12>>2];J[b+8>>2]=120;J[b+12>>2]=68;break d;case 9:kc[J[J[a>>2]+8>>2]](a,5);b=J[a+12>>2];J[b+8>>2]=120;J[b+12>>2]=57;break d;case 10:kc[J[J[a>>2]+8>>2]](a,7);b=J[a+12>>2]; +J[b+16>>2]=53;J[b+20>>2]=70;J[b+8>>2]=48;J[b+12>>2]=48;J[b>>2]=95;J[b+4>>2]=120;J[a+12>>2]=b+28;J[b+24>>2]=95;J[a+16>>2]=J[a+16>>2]+7;return;case 11:kc[J[J[a>>2]+8>>2]](a,7);c=J[a+12>>2];J[c>>2]=95;J[c+4>>2]=120;d=J[a+16>>2];J[c+20>>2]=J[((b&15)<<2)+2463936>>2];J[c+16>>2]=J[(b>>>2&60)+2463936>>2];J[c+12>>2]=J[(b>>>6&60)+2463936>>2];J[c+8>>2]=J[(b>>>10&60)+2463936>>2];J[a+12>>2]=c+28;J[c+24>>2]=95;J[a+16>>2]=d+7;break;default:break f}return}J[a+16>>2]=J[a+16>>2]+1;return}J[b>>2]=38;J[b+4>>2]=35}J[a+ +12>>2]=b+20;J[b+16>>2]=59;J[a+16>>2]=J[a+16>>2]+5;return}J[a+12>>2]=b+24;J[b+20>>2]=59;J[a+16>>2]=J[a+16>>2]+6;return}J[a+12>>2]=b+16;J[b+12>>2]=59;J[a+16>>2]=J[a+16>>2]+4}function Yza(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;h=fc-32|0;fc=h;p=J[a+52>>2];i=J[a>>2];l=Dc(Dm(i));a:{if(!l){Uc(J[i+628>>2],J[i>>2],81440,0);break a}Sg(l,0,Dm(i));J[h+16>>2]=h+28;ne(i,322,h+16|0);J[h>>2]=h+24;ne(i,323,h);b:{c:{d:{e:{f:{g:{h:switch(L[a+28>>1]-1|0){case 0:case 4:f= +L[a+30>>1];if(f>>>0>8)break d;e=1<>1];if(f>>>0>8)break d;e=1<>1];if(f>>>0>8)break d;f=1<>1];if(g>>>0>7)break d;f=1<>2]+c|0)|0;break b}g=0}t=1;f=c-J[h+28>>2]|0}q=1;if(!(!d|!c))while(1){e=J[h+24>>2];e=e-((J[a+76>>2]+k>>>0)%(e>>>0)|0)|0;n=e+k>>>0>d>>>0?d-k|0:e;r=(P(c,m)<<2)+b|0;e=0;while(1){i:{if(!((mt(i,l,J[a+80>>2]+e|0,J[a+76>>2]+k|0,0)|0)>=0|!J[a+4>>2])){q=0;break i}o=J[a+76>>2];j=J[h+24>>2];o=P(Cn(i),(k+o>>>0)%(j>>>0)|0);j=J[h+28>>2];j:{if(j+e>>>0<=c>>>0){kc[p|0](a,(e<<2)+r|0,e,m,j,n,0,f,l+o|0);break j}s=c-e|0;j=j-s|0;kc[p|0](a,(e<<2)+r|0,e,m,s,n,j,f+j|0,l+o|0)}e=J[h+28>>2]+ +e|0;if(e>>>0>>0)continue}break}m=(t?n:0-n|0)+m|0;k=k+n|0;if(k>>>0>>0)continue;break}uc(l);if(!d|g>>>0<2)break a;g=0;while(1){e=(P(c,g)<<2)+b|0;a=(e+(c<<2)|0)-4|0;if(a>>>0>e>>>0)while(1){f=J[e>>2];J[e>>2]=J[a>>2];J[a>>2]=f;a=a-4|0;e=e+4|0;if(a>>>0>e>>>0)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}fc=h+32|0;return q|0}function U5a(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;i=fc-16|0;fc=i;a:{g=J[a+168>>2];b:{if(!g){g=0;break b}h=J[a+172>>2]; +if(!h)h=kc[J[J[g>>2]+16>>2]](g)|0;g=J[a+8>>2];if(g){kc[J[J[g>>2]+12>>2]](g)|0;J[a+8>>2]=0}j=L5(i+12|0);J[J[j>>2]>>2]=J[h+40>>2];k=J[J[h>>2]+28>>2];g=0;J[699344]=0;b=na(k|0,h|0,j|0,b|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+8>>2]=b;c:{if(!b)break c;J[b+284>>2]=a;l=O[f>>3];m=O[e>>3];n=O[d>>3];J[699344]=0;ib(2847,b|0,+n,+m,+l);b=J[699344];J[699344]=0;if((b|0)==1)break a;c=a+112|0;d:{if(H[a+123|0]<0){J[a+116>>2]=0;b=J[a+112>>2];break d}H[a+123|0]=0;b=c}J[b>>2]=0;g=1;b=J[J[a+8>>2]+ +188>>2];if(!b)break c;b=J[b+20>>2];e:{if(b){d=0;f:{f=K[b|0];if(!f)break f;h=b;while(1){e=d;d=d+1|0;k=K[h+1|0];h=h+1|0;if(k)continue;break}if((f|0)!=60|e>>>0<6|(K[b+1|0]!=117|K[b+2|0]!=116))break f;if(K[b+3|0]!=102|K[b+4|0]!=56|K[b+5|0]!=62)break f;J[699344]=0;ca(1618,i|0,b+6|0,e-5|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}J[699344]=0;ia(2848,i|0,b|0,d|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break a;break e}J[i>>2]=0;H[i+11|0]=0}b=J[a+8>>2];if(H[b+303|0]<0)uc(J[b+292>>2]);d=J[i+4>>2]; +J[b+292>>2]=J[i>>2];J[b+296>>2]=d;J[b+300>>2]=J[i+8>>2];b=J[a+8>>2];d=b+292|0;if((d|0)==(c|0))break c;f=K[b+303|0];e=f<<24>>24;if(H[a+123|0]>=0){if((e|0)>=0){a=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=a;J[c+8>>2]=J[d+8>>2];break c}a=J[b+296>>2];b=J[b+292>>2];J[699344]=0;ga(1631,c|0,b|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c;break a}a=J[b+296>>2];b=J[b+292>>2];J[699344]=0;h=b;b=(e|0)<0;ga(1630,c|0,(b?h:d)|0,(b?a:f)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a}Jd(j)}fc=i+16|0;return g|0}a= +Z()|0;Jd(j);ba(a|0);B()}function $x(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;m=1;a:{b:{if(!J[b>>2]){b=c;break b}if(!J[c>>2])break b;m=0;if(J[c+8>>2]>2])break a}d=J[a+20>>2];c:{if(!d)break c;e=J[b+8>>2];d:{while(1){h=J[(P(g,20)+a|0)+36>>2];if((h|0)>=(e|0))break d;g=g+1|0;if((d|0)!=(g|0))continue;break}g=d;break c}if(K[(P(g,20)+a|0)+28|0]&8|(!m&(h|0)<=J[c+8>>2]|(e|0)==(h|0)))break a}d=J[a+4>>2];if(!(!K[d+12|0]|K[b|0]&16)){e:{if(!m){d=fn(d,(J[b+8>>2]+J[c+8>>2]|0)/2|0);e=Wc((J[c+8>>2]- +J[b+8>>2]|0)/2|0,J[a+16>>2]);J[b+12>>2]=d-e;e=d+e|0;d=c;break e}e=fn(d,J[b+8>>2]);d=b}J[d+12>>2]=e}e=P(g,20)+a|0;if(J[b+12>>2]>2]?g:0)break a;d=J[a+20>>2];f:{if(d>>>0<=g>>>0)break f;e=J[e+40>>2];if(!m){if((e|0)>=J[c+12>>2])break f;break a}if((e|0)>2])break a}h=d+!m|0;if(h>>>0>191)break a;k=d-g|0;g:{if(!k)break g;i=g+1|0;h:{if(!(k&1)){e=d;break h}f=a+28|0;j=f+P(h,20)|0;e=d-1|0;f=f+P(e,20)|0;l=J[f+4>>2];J[j>>2]=J[f>>2];J[j+4>>2]=l;J[j+16>>2]=J[f+16>>2];l=J[f+12>>2];J[j+8>>2]=J[f+8>> +2];J[j+12>>2]=l;h=h-1|0;k=k-1|0}if((d|0)==(i|0))break g;j=a+28|0;while(1){i=j+P(e,20)|0;f=i-20|0;l=J[f+4>>2];d=j+P(h,20)|0;J[d>>2]=J[f>>2];J[d+4>>2]=l;J[d+16>>2]=J[f+16>>2];l=J[f+12>>2];J[d+8>>2]=J[f+8>>2];J[d+12>>2]=l;f=d-20|0;d=i-40|0;J[f+16>>2]=J[d+16>>2];i=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=i;i=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=i;h=h-2|0;e=e-2|0;k=k-2|0;if(k)continue;break}}g=P(g,20);d=g+a|0;J[d+44>>2]=J[b+16>>2];e=J[b+12>>2];J[d+36>>2]=J[b+8>>2];J[d+40>>2]=e;e=J[b+4>>2];J[d+28>>2]=J[b>> +2];J[d+32>>2]=e;J[a+20>>2]=J[a+20>>2]+1;if(m)break a;b=g+(a+20|0)|0;J[b+44>>2]=J[c+16>>2];d=J[c+12>>2];J[b+36>>2]=J[c+8>>2];J[b+40>>2]=d;d=J[c+4>>2];J[b+28>>2]=J[c>>2];J[b+32>>2]=d;J[a+20>>2]=J[a+20>>2]+1}}function Te(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(!b)return 6;if(!a)return 40;d=J[a+32>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{g=K[b|0];switch(g-4|0){case 18:case 19:break h;case 16:case 17:break i;case 14:case 15:break j;case 12:case 13:break k;case 10:case 11:break l;case 8:case 9:break m; +case 20:case 21:break n;case 0:break o;case 4:case 5:break f;default:break g}}e=J[a+4>>2];g=L[b+2>>1];h=J[a+20>>2];if(h){if(e>>>0>>0){f=85;break c}e=J[a+28>>2];f=0;d=0;if(g){d=kc[J[e+4>>2]](e,g)|0;if(!d)break d;h=J[a+20>>2]}J[a>>2]=d;h=kc[h|0](a,J[a+8>>2],d,g)|0;d=J[a>>2];if(g>>>0>h>>>0){if(d)kc[J[e+8>>2]](e,d);J[a>>2]=0;f=85;d=0}J[a+32>>2]=d;J[a+36>>2]=d?d+g|0:0;J[a+8>>2]=h+J[a+8>>2];e=1;if(g>>>0<=h>>>0)break a;break c}f=85;d=J[a+8>>2];if(d>>>0>=e>>>0|g>>>0>e-d>>>0)break c;J[a+8>>2]=d+g;d=d+J[a>> +2]|0;J[a+32>>2]=d;J[a+36>>2]=d+g;e=1;break a}f=K[b+1|0];e=f+d|0;if(e>>>0>M[a+36>>2]){f=85;break c}if((g|0)!=24)break b;xc(L[b+2>>1]+c|0,d,f);break b}e=d+2|0;f=16;d=K[d+1|0]|K[d|0]<<8;break e}e=d+2|0;f=16;d=K[d|0]|K[d+1|0]<<8;break e}e=d+4|0;f=0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break e}e=d+4|0;f=0;d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);break e}f=8;e=d+3|0;d=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);break e}f=8;e=d+3|0;d=K[d|0]|(K[d+1|0]<< +8|K[d+2|0]<<16);break e}J[a+32>>2]=d;f=0;break c}e=d+1|0;f=24;d=K[d|0]}d=g&1?d<>f:d;f=L[b+2>>1]+c|0;p:{q:switch(K[b+1|0]-1|0){case 0:H[f|0]=d;break p;case 1:I[f>>1]=d;break p;default:break q}J[f>>2]=d}d=e;e=i;break a}J[a>>2]=0;f=64}if(i&255){if(J[a+20>>2]){b=J[a>>2];if(b){c=J[a+28>>2];kc[J[c+8>>2]](c,b)}J[a>>2]=0}J[a+32>>2]=0;J[a+36>>2]=0}return f}d=e;e=i}b=b+4|0;i=e;continue}}function KBa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=fc-32|0;fc=f;a:{b:{c:{d:{if(!K[b+89|0]){a=Qc(f+8|0, +2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=Z()|0;Kc(a);ba(b|0);B()}J[a>>2]=0;J[699344]=0;ia(5392,f+8|0,b|0,c|0,0);b=J[699344];J[699344]=0;e:{if((b|0)!=1){f:{g:{h:{if(!J[f+8>>2])break h;J[699344]=0;b=_(5424,20)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[699344]=0;c=_(5425,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){e=Z()|0;Gm(b);break b}J[699344]=0;J[f+4>>2]=0;b=f+4|0;aa(5145,b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[699344]= +0;da(5426,J[f+4>>2],f+8|0);c=J[699344];J[699344]=0;if((c|0)==1){e=Z()|0;zc(b);break b}J[699344]=0;aa(5153,a|0,f+4|0)|0;b=J[699344];J[699344]=0;i:{if((b|0)!=1){b=J[f+4>>2];J[f+4>>2]=0;j:{if(!b)break j;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;g=J[699344];J[699344]=0;if((g|0)==1)break f;if(c)break j;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break f}if(!e)break i;J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[a>>2];J[699344]=0;ca(5415,b|0,c|0,e|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break i;break c}e=Z()|0;zc(f+4|0);break b}J[699344]=0;aa(5427,J[f+8>>2],0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;b=J[a>>2];if(!(!b|!d)){J[699344]=0;_(5161,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c}a=J[f+8>>2];J[f+8>>2]=0;if(!a)break h;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(b)break h;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break e}fc=f+32|0;return}e=Z()|0;break b}ea(0)|0;Bc();B()}e=Z()|0;break a}ea(0)| +0;Bc()}B()}e=Z()|0}zc(f+8|0)}zc(a);ba(e|0);B()}function SD(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;j=fc+-64|0;fc=j;J[j>>2]=J[b>>2];J[j+4>>2]=J[c>>2];l=K[e+9|0];n=l?10:9;while(1){i=(g<<2)+j|0;o=i;m=J[i>>2];J[i+8>>2]=m;if(K[e+g|0]){i=J[a+8>>2];a:{if(J[a+12>>2]-i>>3>>>0<=h>>>0){i=0;k=J[a+4>>2];if(!k|J[k>>2])break a;J[k>>2]=130;break a}k=i+(h<<3)|0;i=J[k>>2];b:switch(J[k+4>>2]-1|0){case 1:i=i<<16;break a;case 0:break b;default:break a}i=((i>>31)+i|0)- -8192>>14}J[o+8>>2]=i+m;h=h+1|0}g=g+ +1|0;if((n|0)!=(g|0))continue;break}if(!l)J[j+44>>2]=J[c>>2];c:{if(f){i=J[j+44>>2];f=i-J[c>>2]|0;e=f>>31;f=(e^f)-e|0;k=J[j+40>>2];g=k-J[b>>2]|0;e=g>>31;l=(e^g)-e|0;e=J[a+8>>2];d:{if(J[a+12>>2]-e>>3>>>0<=h>>>0){g=0;e=J[a+4>>2];if(!e|J[e>>2])break d;J[e>>2]=130;break d}e=e+(h<<3)|0;g=J[e>>2];e:switch(J[e+4>>2]-1|0){case 1:g=g<<16;break d;case 0:break e;default:break d}g=((g>>31)+g|0)- -8192>>14}if((f|0)<(l|0)){g=g+k|0;h=J[c>>2];break c}h=g+i|0;g=J[b>>2];break c}f:{if(K[e+10|0]){i=J[j+40>>2];f=J[a+8>> +2];g:{if(J[a+12>>2]-f>>3>>>0<=h>>>0){g=0;f=J[a+4>>2];if(!f|J[f>>2])break g;J[f>>2]=130;break g}f=f+(h<<3)|0;g=J[f>>2];h:switch(J[f+4>>2]-1|0){case 1:g=g<<16;break g;case 0:break h;default:break g}g=((g>>31)+g|0)- -8192>>14}h=h+1|0;g=g+i|0;break f}g=J[b>>2]}if(K[e+11|0]){i=J[j+44>>2];e=J[a+8>>2];i:{if(J[a+12>>2]-e>>3>>>0<=h>>>0){h=0;e=J[a+4>>2];if(!e|J[e>>2])break i;J[e>>2]=130;h=i;break c}e=e+(h<<3)|0;h=J[e>>2];j:switch(J[e+4>>2]-1|0){case 1:h=(h<<16)+i|0;break c;case 0:break j;default:break i}h= +((h>>31)+h|0)- -8192>>14}h=h+i|0;break c}h=J[c>>2];i=J[j+44>>2]}Cq(d,J[j+8>>2],J[j+12>>2],J[j+16>>2],J[j+20>>2],J[j+24>>2],J[j+28>>2]);Cq(d,J[j+32>>2],J[j+36>>2],J[j+40>>2],i,g,h);J[a+12>>2]=J[a+8>>2];J[b>>2]=g;J[c>>2]=h;fc=j- -64|0}function Eya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d:{e:{f:{g:{b=J[b+8>>2];if(b){J[699344]=0;ca(5605,d+20|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[d+20>>2];h:{i:{if(b){c=J[J[b>>2]+28>>2];J[699344]= +0;ca(c|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break i;c=Z()|0;break h}J[d+12>>2]=0}J[699344]=0;aa(5153,a|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break g;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g}break a}c=Z()|0;zc(d+12|0)}wc(d+20|0);break b}J[699344]=0;b=aa(5149,d+4|0,2394048)|0;c=J[699344];J[699344]=0;j:{k:{if((c|0)!=1){J[699344]= +0;c=d+12|0;ca(5218,c|0,2391049,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break k;J[699344]=0;ca(5291,d+20|0,c|0,2391552);c=J[699344];J[699344]=0;if((c|0)==1)break j;c=J[d+20>>2];l:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+28|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break l;c=Z()|0;break d}J[d+28>>2]=0}J[699344]=0;aa(5153,a|0,d+28|0)|0;c=J[699344];J[699344]=0;m:{if((c|0)!=1){c=J[d+28>>2];J[d+28>>2]=0;if(!c)break m;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break m; +J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break m}break a}c=Z()|0;zc(d+28|0);break d}c=a;a=J[a>>2];J[c+4>>2]=J[(a?a+12|0:2743576)>>2];wc(d+20|0);wc(d+12|0);wc(b);break f}c=Z()|0;break b}c=Z()|0;wc(b);break b}c=Z()|0;break c}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(d+20|0)}fc=d+32|0;return}c=Z()|0;break b}wc(d+20|0)}wc(d+12|0);wc(b)}wc(a);ba(c|0);B()}ea(0)|0;Bc();B()}function sKa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;J[a+4>>2]=0;J[a+8>>2]=0;J[a+24>>2]=0;J[a>> +2]=0;J[a+12>>2]=0;c=a+36|0;J[c>>2]=0;J[c+4>>2]=0;J[a+32>>2]=c;J[699344]=0;d=_(4,472)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((c|0)==1)break f;J[699344]=0;c=aa(3680,d|0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[c+432>>2]=0;J[c+436>>2]=0;H[c+464|0]=0;J[c+456>>2]=0;J[c+460>>2]=0;J[c+448>>2]=0;J[c+452>>2]=0;J[c+440>>2]=0;J[c+444>>2]=0;J[693464]=c;J[699344]=0;J[c+408>>2]=1;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;J[699344]= +0;d=_(3682,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;J[a+20>>2]=d;c=J[J[b>>2]+52>>2];J[699344]=0;c=_(c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;J[a+16>>2]=c;J[699344]=0;c=pa(1619)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;d=J[J[b>>2]+24>>2];J[699344]=0;b=_(d|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;d=J[J[c>>2]+24>>2];J[699344]=0;da(d|0,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;b=J[a+16>>2];d=J[J[b>>2]+68>>2];J[699344]=0;da(d|0,b|0,c|0);b=J[699344];J[699344]= +0;if((b|0)==1)break c;J[e+12>>2]=1;b=J[J[c>>2]+20>>2];J[699344]=0;da(b|0,c|0,e+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[a+16>>2];J[699344]=0;J[J[693464]+468>>2]=b;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;J[J[693464]+336>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;ca(3685,J[693464],0,0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[a+28>>2]=0;fc=e+16|0;return a|0}b=Z()|0;break a}b=Z()|0;uc(d);break a}b=Z()|0;uc(c);break a}b=Z()|0;break a}b=Z()|0}dj(a+32| +0,J[a+36>>2]);if(H[a+15|0]<0)uc(J[a+4>>2]);ba(b|0);B()}function jC(a){var b=0,c=0,d=0,e=0,f=0;d=fc+-64|0;fc=d;a:{if(K[J[J[a+36>>2]+16>>2]]!=37)break a;Zd(a);e=hi(a);if(!e){oe(a,68,34594);break a}if(K[J[J[a+36>>2]+16>>2]]!=59){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=23;J[d+48>>2]=29313;Hc(0,0,0,a,0,1,23,3,0,0,0,0,32906,d+48|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}Zd(a);J[a+440>>2]=J[a+440>>2]+1;c=J[a>>2];b:{if(!c)break b;c=J[c+96>>2];if(!c)break b;b=kc[c|0](J[a+4>> +2],e)|0}if(J[a+172>>2]==-1)break a;c:{if(!b){d:{if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){J[a+84>>2]=26;J[d+16>>2]=e;Hc(0,0,0,a,0,1,26,3,e,0,0,0,34968,d+16|0);J[a+12>>2]=0;if(J[a+288>>2])break d;J[a+212>>2]=1;break d}Vo(a,27,34968,e);J[a+100>>2]=0}if(K[a+362|0]&8|(J[a+388>>2]&-2)!=26|(M[a+440>>2]<10001|(J[a+172>>2]==-1?J[a+212>>2]:0)))break c;J[a+84>>2]=89;J[d>>2]=5754;Hc(0,0,0,a,0,1,89,3,0,0,0,0,32906,d);J[a+12>>2]=0;if(J[a+288>>2])break c;J[a+212>>2]=1;break c}c=J[b+48>>2];if((c&-2)!=4){b=0; +c=J[a>>2];if(c){b=J[c+108>>2]==-554844497?J[c+124>>2]:b;f=J[c+84>>2]}c=J[a+4>>2];J[d+36>>2]=0;J[d+32>>2]=e;Hc(b,f,c,a,0,1,27,1,e,0,0,0,29877,d+32|0);break c}if(J[J[a+36>>2]+40>>2]!=3346){if((mu(a,z1(a,b))|0)>=0)break c;break a}if(!(J[a+16>>2]|(K[a+360|0]&30|(c|0)!=5)))if(!J[a+104>>2])break a;if((mu(a,RK(a,b))|0)<0)break a;if(J[b+48>>2]!=5)break c;b=J[J[a+36>>2]+16>>2];if(K[b|0]!=60|K[b+1|0]!=63|(K[b+2|0]!=120|K[b+3|0]!=109))break c;if(K[b+4|0]!=108)break c;b=K[b+5|0]-9|0;if(b>>>0>23|!(1<>2]!=32)break c;J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(!b)break a;e=J[b+40>>2];if(e){kc[e|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39197;J[b+16>>2]=39197;break a}J[a+92>>2]=1}fc=d- -64|0}function $Aa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-96|0;fc=d;sX(J[a+108>>2],1);a:{b:{c:{d:{e:{f:{g:{h:{i:{if(K[a+136|0])if(!En(b,J[685886]))break i;if(c){b=PV(d+36|0,b);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break b}c=si();b=J[b+ +4>>2];b=rl(d+36|0,b?b:2389698);e=J[J[c>>2]+20>>2];J[699344]=0;ga(e|0,c|0,a|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){wc(b);break h}a=Z()|0;wc(b);break b}e=mk(d+36|0,a+72|0);J[699344]=0;ca(5401,d+28|0,e|0,0);g=J[699344];J[699344]=0;j:{k:{if((g|0)!=1){J[699344]=0;g=aa(5149,d+12|0,2394132)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;f=J[e+8>>2];f=J[(f?f+12|0:2743576)>>2];J[699344]=0;ca(5291,d+20|0,g|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break k;wc(g);if(!c)break j;a=J[d+20>>2];a=J[(a?a+12| +0:2743576)>>2];l:{if(a){c=J[b+12>>2];g=J[b+16>>2];b=J[b+8>>2];J[699344]=0;ja(5178,d+72|0,a|0,b|0,g|0,c|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break l;break f}J[699344]=0;aa(5503,d+72|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f}J[699344]=0;b=d+72|0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break e}a=Z()|0;break c}a=Z()|0;wc(g);break d}J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;c=J[J[b>>2]+20>>2];J[699344]=0;f=a;a=d+20|0;ga(c|0,b|0, +f|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;wc(a);wc(d+28|0);J[e+24>>2]=2392964;J[e>>2]=2392932;a=J[e+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[e+28>>2]=0}J[e+16>>2]=2392964;a=J[e+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[e+20>>2]=0}wc(e+8|0)}fc=d+96|0;return}a=Z()|0;break d}a=Z()|0}wc(d+20|0)}wc(d+28|0)}Ed(e)}ba(a|0)}B()}function S8a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b+4>>2];J[a>>2]=349384;J[a+4>>2]=c;J[a+8>>2]=0;J[a+12>> +2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=1065353216;J[a+48>>2]=0;J[a+52>>2]=0;J[a+92>>2]=1;J[a+84>>2]=0;J[a+88>>2]=1;J[a+76>>2]=0;J[a+80>>2]=0;J[a+68>>2]=1056964608;J[a+72>>2]=1065353216;I[a- -64>>1]=0;J[a+56>>2]=1065353216;J[a+60>>2]=1065353216;e=a+96|0;c=e;J[c>>2]=0;J[c+4>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[699344]=0;c=_(4,24)|0;d=J[699344];J[699344]= +0;if((d|0)==1){a=Z()|0;xk(e);ba(a|0);B()}d=c+24|0;J[a+148>>2]=d;J[a+140>>2]=c;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[a+144>>2]=d;Ac(a+156|0,0,88);J[a+252>>2]=0;J[a+256>>2]=0;J[a+244>>2]=-16777216;J[a+248>>2]=-16777216;J[a+260>>2]=0;J[a+264>>2]=0;f=a+268|0;c=f;J[c>>2]=0;J[c+4>>2]=0;J[a+276>>2]=0;J[699344]=0;e=_(2256,a+280|0)|0;c=J[699344];J[699344]=0;a:{b:{if((c|0)!=1){J[a+288>>2]=0;J[a+292>>2]=0;J[a+312>>2]=0;J[a+316>>2]=0;J[a+304>>2]=0;J[a+308>>2]=0;J[a+296>>2]= +0;J[a+300>>2]=0;J[a+244>>2]=J[b+244>>2];J[a+248>>2]=J[b+248>>2];N[a+252>>2]=N[b+252>>2];N[a+256>>2]=N[b+256>>2];N[a+260>>2]=N[b+260>>2];N[a+264>>2]=N[b+264>>2];if((a|0)!=(b|0)){d=J[b+272>>2];c=J[b+268>>2];J[699344]=0;ca(2484,f|0,c|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break b}J[699344]=0;Dj(e,b+280|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;N[a+284>>2]=N[b+284>>2];J[a+320>>2]=J[b+320>>2];J[a+324>>2]=J[b+324>>2];J[a+328>>2]=J[b+328>>2];J[a+332>>2]=J[b+332>>2];return a|0}b=Z()|0;break a}b= +Z()|0;Jd(e)}c=J[f>>2];if(c){J[a+272>>2]=c;uc(c)}Se(a+88|0);ba(b|0);B()}function bIa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;b=K[a+11|0];f=b<<24>>24;c=(f|0)<0;h=c?J[a+4>>2]:b;a:{if(!h)break a;b=h-1|0;e=J[a>>2];c=J[(b<<2)+(c?e:a)>>2];if((c|0)!=92&(c|0)!=47)break a;b:{if((f|0)<0){J[a+4>>2]=b;break b}H[a+11|0]=b;e=a}J[(b<<2)+e>>2]=0}c:{d:{if((Ci(a,37,0)|0)==-1)break d;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[699344]=0;da(4960,d|0,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;if(h){i= +h-2|0;b=0;while(1){c=J[a>>2];e=H[a+11|0];e:{f:{g:{if(b>>>0>=i>>>0)break g;f=(e|0)<0?c:a;g=f+(b<<2)|0;if(J[g>>2]!=37)break g;c=J[g+4>>2];e=c-48|0;if(e>>>0<10)break f;if(c-97>>>0<=5){e=c-87|0;break f}if(c-71>>>0>4294967289){e=c-55|0;break f}J[699344]=0;da(3417,d|0,37);e=J[699344];J[699344]=0;c=b;if((e|0)!=1)break e;break c}c=J[(b<<2)+((e|0)<0?c:a)>>2];J[699344]=0;da(3417,d|0,c|0);e=J[699344];J[699344]=0;c=b;if((e|0)!=1)break e;break c}h:{c=b+2|0;f=J[f+(c<<2)>>2];g=f-48|0;if(g>>>0<10)break h;if(f-97>>> +0<=5){g=f-87|0;break h}if(f-71>>>0>4294967289){g=f-55|0;break h}J[699344]=0;da(3417,d|0,37);e=J[699344];J[699344]=0;c=b;if((e|0)!=1)break e;break c}J[699344]=0;da(3417,d|0,e<<4|g);b=J[699344];J[699344]=0;if((b|0)==1)break c}b=c+1|0;if(h>>>0>b>>>0)continue;break}}i:{if((a|0)==(d|0))break i;c=K[d+11|0];b=c<<24>>24;j:{if(H[a+11|0]>=0){if((b|0)<0)break j;b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+8>>2];break i}J[699344]=0;e=a;a=(b|0)<0;ga(1630,e|0,(a?J[d>>2]:d)|0,(a?J[d+4>>2]:c)|0)|0;a=J[699344]; +J[699344]=0;if((a|0)!=1)break i;break c}J[699344]=0;ga(1631,a|0,J[d>>2],J[d+4>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break c}if(H[d+11|0]>=0)break d;uc(J[d>>2])}fc=d+16|0;return}a=Z()|0;if(H[d+11|0]<0)uc(J[d>>2]);ba(a|0);B()}function mU(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=fc-16|0;fc=d;a:{b:{b=J[a>>2];c:{if(!b)break c;if(!(kc[J[J[b>>2]+24>>2]](b)|0))break c;b=J[a>>2];b=kc[J[J[b>>2]+24>>2]](b)|0;l=a,m=kc[J[J[b>>2]+52>>2]](b)|0,H[l+132|0]=m;b=J[a>>2];b=kc[J[J[b>>2]+24>>2]](b)| +0;l=a,m=kc[J[J[b>>2]+48>>2]](b)|0,H[l+133|0]=m;b=J[a>>2];kc[J[J[b>>2]+60>>2]](d+4|0,b);if(H[a+131|0]<0)uc(J[a+120>>2]);b=J[d+8>>2];J[a+120>>2]=J[d+4>>2];J[a+124>>2]=b;J[a+128>>2]=J[d+12>>2];b=J[a>>2];b=kc[J[J[b>>2]+24>>2]](b)|0;kc[J[J[b>>2]+20>>2]](b,d+4|0);b=K[d+12|0]|K[d+13|0]<<8;H[a+145|0]=b;H[a+146|0]=b>>>8;b=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);c=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);H[a+137|0]=c;H[a+138|0]=c>>>8;H[a+139|0]=c>>>16;H[a+140|0]=c>>>24;H[a+141|0]=b;H[a+142| +0]=b>>>8;H[a+143|0]=b>>>16;H[a+144|0]=b>>>24;b=J[a>>2];b=kc[J[J[b>>2]+24>>2]](b)|0;l=a,m=kc[J[J[b>>2]+24>>2]](b)|0,H[l+136|0]=m;i=a+148|0;J[a+152>>2]=J[i>>2];b=J[a>>2];b=kc[J[J[b>>2]+24>>2]](b)|0;if((kc[J[J[b>>2]+68>>2]](b,0,0)|0)==-1)break c;while(1){c=0;g=0;while(1){b=J[a>>2];b=kc[J[J[b>>2]+24>>2]](b)|0;g=(kc[J[J[b>>2]+68>>2]](b,c,j)|0?1<>2];e=J[a+156>>2];d:{if(c>>>0>>0){J[c>>2]=g;J[a+152>>2]=c+4;break d}h=J[i>>2];f=c-h>>2;b=f+1|0;if(b>>> +0>=1073741824)break b;k=f<<2;e=e-h|0;f=e>>1;f=e>>>0>=2147483644?1073741823:b>>>0>>0?f:b;if(f){if(f>>>0>=1073741824)break a;b=vc(f<<2)}else b=0;e=k+b|0;J[e>>2]=g;g=e+4|0;if((c|0)!=(h|0))while(1){e=e-4|0;c=c-4|0;J[e>>2]=J[c>>2];if((c|0)!=(h|0))continue;break}J[a+156>>2]=b+(f<<2);J[a+152>>2]=g;J[a+148>>2]=e;if(!h)break d;uc(h)}j=j+1|0;if((j|0)!=6)continue;break}}fc=d+16|0;return}qj(i);B()}Pd();B()}function yvb(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;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;if(e){u=e-2|0;v=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];f=a+6|0;g=g+6|0;a:{if(m>>>0>u>>>0)break a;k=m?(m|0)==(u|0)?d:b:c;i=!m&v;if(!i){if(k>>>0<2)break a;n=i?0:f;p=a+4|0;q=a+2|0;r=a+10|0;s=a+8|0;i=1;t=k<<1;while(1){j=L[a>>1];b:{if((j|0)==L[n>>1]){I[g>>1]=j;break b}j=K[a|0]|K[a+1|0]<<8;l=j>>>8|0;h=K[n|0]|K[n+1|0]<<8;j=((j<<8|l)&65535)+((k+(P(((h<<8|h>>>8)&65535)-((l|j<<8)&65535)|0,i)<<1)|0)/(t|0)|0)&65535;j=j<<8|j>>>8;H[g|0]=j; +H[g+1|0]=j>>>8}j=g+2|0;h=L[q>>1];c:{if((h|0)==L[s>>1]){I[j>>1]=h;break c}h=K[q|0]|K[q+1|0]<<8;o=h>>>8|0;l=K[s|0]|K[s+1|0]<<8;h=((h<<8|o)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((o|h<<8)&65535)|0,i)<<1)|0)/(t|0)|0)&65535;h=h<<8|h>>>8;H[j|0]=h;H[j+1|0]=h>>>8}j=g+4|0;h=L[p>>1];d:{if((h|0)==L[r>>1]){I[j>>1]=h;break d}h=K[p|0]|K[p+1|0]<<8;o=h>>>8|0;l=K[r|0]|K[r+1|0]<<8;h=((h<<8|o)&65535)+((k+(P(((l<<8|l>>>8)&65535)-((o|h<<8)&65535)|0,i)<<1)|0)/(t|0)|0)&65535;h=h<<8|h>>>8;H[j|0]=h;H[j+1|0]=h>>>8}g=g+6|0;i= +i+1|0;if((k|0)!=(i|0))continue;break}break a}if(k>>>0<2)break a;i=k-1|0;n=i&3;if(k-2>>>0>=3){k=i&-4;i=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a>>1];I[g+8>>1]=L[a+2>>1];I[g+10>>1]=L[a+4>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];I[g+16>>1]=L[a+4>>1];I[g+18>>1]=L[a>>1];I[g+20>>1]=L[a+2>>1];I[g+22>>1]=L[a+4>>1];g=g+24|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}i=0;if(!n)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];g=g+6|0;i=i+1|0;if((n| +0)!=(i|0))continue;break}}m=m+1|0;if((m|0)!=(e|0))continue;break}}return 0}function Cob(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=fc-48|0;fc=f;a:{b:{if(!Ic(b,240970)){c:{if(!d){b=J[c>>2];break c}d=f+12|0;b=Ig(c,d,10);e=J[f+12>>2];if(K[e|0]!=44|(c|0)==(e|0))break b;e=e+1|0;l=f,m=Ig(e,d,10),J[l+20>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Ig(e,d,10),J[l+24>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Ig(e,d,10),J[l+28>> +2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Ig(e,f+12|0,10),J[l+32>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Ig(e,f+12|0,10),J[l+36>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;e=c+1|0;l=f,m=Ig(e,f+12|0,10),J[l+40>>2]=m;c=J[f+12>>2];if(K[c|0]!=44|(c|0)==(e|0))break b;c=c+1|0;l=f,m=Ig(c,d,10),J[l+44>>2]=m;d=J[f+12>>2];if((K[d|0]|32)!=32|(c|0)==(d|0))break b;c=f+16|0}e=6;if((b|0)<0)break a;d=J[c+8>>2];if((d|0)<0)break a;g=J[c+16>>2];if((g|0)< +0)break a;h=J[c+24>>2];if((h|0)<0)break a;i=J[c+4>>2];if((i|0)<0)break a;j=J[c+12>>2];if((j|0)<0)break a;k=J[c+20>>2];if((k|0)<0)break a;c=J[c+28>>2];if((c|0)<0|(b|0)>(d|0)|((d|0)>(g|0)|g>>>0>h>>>0))break a;if(i>>>0>500|j>>>0>500|(k>>>0>500|c>>>0>500))break a;J[a+36>>2]=b;J[a- -64>>2]=c;J[a+60>>2]=h;J[a+56>>2]=k;J[a+52>>2]=g;J[a+48>>2]=j;J[a+44>>2]=d;J[a+40>>2]=i;e=0;break a}if(!Ic(b,241142)){if(d){e=6;if(Ic(c,241293))break a;J[a+28>>2]=1;e=0;break a}e=7;if(J[c>>2]!=1)break a;J[a+28>>2]=1;e=0;break a}if(!Ic(b, +241407)){if(d){if(!Ig(c,0,10)){H[a+32|0]=0;break a}H[a+32|0]=1;break a}H[a+32|0]=K[c|0];break a}e=12;if(Ic(b,241534))break a;e=0;d:{if(d){b=Ig(c,0,10);break d}b=J[c>>2]}J[a+68>>2]=(b|0)>0?b:0;break a}e=6}fc=f+48|0;return e|0}function rYa(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;e=fc-32|0;fc=e;h=J[c+4>>2];d=J[b+4>>2];i=J[c>>2];c=J[b>>2];b=(h-d|0)+(i-c<<3)|0;f=J[a+4>>2];g=b+f|0;J[a+4>>2]=g;j=g-1|0;if(!((j^f-1)>>>0<32?f:0))J[J[a>>2]+((g>>>0>=33?j>>>5|0:0)<<2)>>2]=0;a=J[a>>2]+(f>>> +3&536870908)|0;f=f&31;a:{if((f|0)==(d|0)){if((b|0)<=0)break a;if(d){g=32-d|0;f=(b|0)<(g|0)?b:g;g=-1<>>g-f;J[a>>2]=J[a>>2]&(g^-1)|g&J[c>>2];b=b-f|0;c=c+4|0;a=a+(d+f>>>3&536870908)|0}f=a;d=(b|0)/32|0;a=d<<2;f=cd(f,c,a);b=b-(d<<5)|0;if((b|0)<=0)break a;d=a+f|0;b=-1>>>32-b|0;J[d>>2]=J[d>>2]&(b^-1)|b&J[a+c>>2];break a}J[e+28>>2]=d;J[e+24>>2]=c;J[e+20>>2]=h;J[e+16>>2]=i;J[e+12>>2]=f;J[e+8>>2]=a;a=J[e+28>>2];b=J[e+24>>2];c=(J[e+20>>2]-a|0)+(J[e+16>>2]-b<<3)|0;b:{if((c|0)<=0){a=J[e+12>>2];d=J[e+8>> +2];break b}c:{if(!a){a=J[e+12>>2];break c}d=J[e+12>>2];h=32-d|0;i=32-a|0;f=(c|0)<(i|0)?c:i;g=f>>>0>h>>>0?h:f;j=J[e+8>>2];k=J[j>>2]&(-1<>>h-g^-1);h=J[b>>2]&(-1<>>i-f);J[j>>2]=k|(a>>>0>>0?h<>>a-d|0);b=d+g|0;a=b&31;J[e+12>>2]=a;d=j+(b>>>3&536870908)|0;J[e+8>>2]=d;b=f-g|0;if((b|0)>0){J[d>>2]=J[d>>2]&(-1>>>32-b^-1)|h>>>g+J[e+28>>2];J[e+12>>2]=b;a=b}c=c-f|0;b=J[e+24>>2]+4|0;J[e+24>>2]=b}g=-1<=32){h=g^-1;while(1){d=J[e+8>>2];b=J[b>>2];J[d>>2]=h&J[d>>2]|b<>2]=d+4;J[d+4>>2]=g&J[d+4>>2]|b>>>f;b=J[e+24>>2]+4|0;J[e+24>>2]=b;d=c>>>0>63;c=c-32|0;if(d)continue;break}}d=J[e+8>>2];if((c|0)<=0)break b;h=f;f=(c|0)>(f|0)?f:c;h=J[d>>2]&(g&-1>>>h-f^-1);g=J[b>>2]&-1>>>32-c;J[d>>2]=h|g<>2]=b;d=(a>>>3&536870908)+d|0;J[e+8>>2]=d;a=c-f|0;if((a|0)<=0){a=b;break b}J[d>>2]=J[d>>2]&(-1>>>32-a^-1)|g>>>f;J[e+12>>2]=a}J[e+4>>2]=a;J[e>>2]=d}fc=e+32|0}function WJa(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=fc-16|0;fc=g;J[g+12>> +2]=c;a:{b:{if(b){if(!a)break b;if(!d)break a;h=J[a+72>>2];if(J[a+8>>2]==16)e=J[a+156>>2]+P(J[a+192>>2],5644)|0;else e=J[a+12>>2];H[e+5640|0]=K[e+5640|0]|1;c:{if(c>>>0<=4){Nc(d,1,2365793,0);break c}wd(b,e,1);if(M[e>>2]>=8){Nc(d,1,2365819,0);break c}wd(b+1|0,g+8|0,1);c=J[g+8>>2];J[e+4>>2]=c;if((c|0)>=5){Nc(d,1,2365853,0);J[e+4>>2]=-1}wd(b+2|0,e+8|0,2);c=J[e+8>>2];if(c-65536>>>0<=4294901760){J[g>>2]=c;Nc(d,1,2365894,g);break c}i=J[a+164>>2];J[e+12>>2]=i?i:c;wd(b+4|0,e+16|0,1);if(M[e+16>>2]>=2){Nc(d, +1,2365962,0);break c}i=b+5|0;J[g+12>>2]=J[g+12>>2]-5;h=J[h+16>>2];d:{if(!h)break d;b=J[e>>2]&1;c=J[e+5584>>2];e=0;if(h>>>0>=8){k=h&-8;while(1){J[c+P(f,1080)>>2]=b;J[c+P(f|1,1080)>>2]=b;J[c+P(f|2,1080)>>2]=b;J[c+P(f|3,1080)>>2]=b;J[c+P(f|4,1080)>>2]=b;J[c+P(f|5,1080)>>2]=b;J[c+P(f|6,1080)>>2]=b;J[c+P(f|7,1080)>>2]=b;f=f+8|0;j=j+8|0;if((k|0)!=(j|0))continue;break}}h=h&7;if(!h)break d;while(1){J[c+P(f,1080)>>2]=b;f=f+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}f=0;if(!TY(a,0,i,g+12|0,d)){Nc(d,1,2365793, +0);break c}if(J[g+12>>2]){Nc(d,1,2365793,0);break c}if(J[a+8>>2]==16)b=J[a+156>>2]+P(J[a+192>>2],5644)|0;else b=J[a+12>>2];if(M[J[a+72>>2]+16>>2]>=2){b=J[b+5584>>2];d=J[b+4>>2]<<2;f=b+944|0;h=b+812|0;e=1;c=b;while(1){J[c+1084>>2]=J[b+4>>2];J[c+1088>>2]=J[b+8>>2];J[c+1092>>2]=J[b+12>>2];J[c+1096>>2]=J[b+16>>2];J[c+1100>>2]=J[b+20>>2];xc(c+1892|0,h,d);xc(c+2024|0,f,d);c=c+1080|0;e=e+1|0;if(e>>>0>2]+16>>2])continue;break}}f=1}fc=g+16|0;return f|0}fa(2365733,2358254,2642,2365776);B()}fa(2358373, +2358254,2643,2365776);B()}fa(2358486,2358254,2644,2365776);B()}function IYa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a+420>>2];if(b){b=J[a>>2];J[b+20>>2]=49;kc[J[b>>2]](a)}a:{if(J[a+264>>2]){b=J[a+360>>2];if(!J[a+368>>2]){if(!b){J[d+4>>2]=470;break a}J[d+4>>2]=471;break a}if(!b){J[d+4>>2]=472;break a}J[d+4>>2]=473;break a}J[d+4>>2]=474}if(J[a+288>>2]>0){b=0;while(1){f=b<<2;g=J[(f+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2])){e=J[g+20>>2];if(e>>>0>=16){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=50;kc[J[J[a>> +2]>>2]](a)}e=(e<<2)+d|0;c=J[e+76>>2];if(!c){c=kc[J[J[a+4>>2]>>2]](a,1,64)|0;J[e+76>>2]=c}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+ +35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;c=d+f|0;J[c+52>>2]=0;J[c+36>>2]=0}if(J[a+364>>2]){e=J[g+24>>2];if(e>>>0>=16){c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=50;kc[J[J[a>>2]>>2]](a)}e=(e<<2)+d|0;c=J[e+140>> +2];if(!c){c=kc[J[J[a+4>>2]>>2]](a,1,256)|0;J[e+140>>2]=c}Ac(c,0,256)}b=b+1|0;if((b|0)>2])continue;break}}J[d+28>>2]=11;J[d+32>>2]=-1;J[d+20>>2]=0;J[d+24>>2]=0;J[d+12>>2]=0;J[d+16>>2]=65536;a=J[a+236>>2];J[d+72>>2]=0;J[d+68>>2]=a}function Sd(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;a:{if(K[a+52|0]){k=J[a+48>>2];f=k&10;n=f;o=O[a+24>>3];l=O[a+16>>3];m=O[a>>3];f=(oc)<<2;p=O[a+8>>3];i=f|(p>d)<<3;b:{if((n|0)==(i&10)?n:0)break b;h=O[a+40>>3];j=O[a+32>>3];c:switch(k<< +1&10|f&5){case 0:kj(a,b,j,h,c,d,k,i);J[a+48>>2]=i;break a;case 1:g=h+(l-j)*(d-h)/(c-j);f=(go)<<1;kj(a,b,j,h,l,g,k,f);e=O[a+16>>3];kj(a,b,e,g,e,d,f,i);J[a+48>>2]=i;break a;case 2:e=h+(l-j)*(d-h)/(c-j);f=(eo)<<1;kj(a,b,l,h,l,e,k,f);kj(a,b,O[a+16>>3],e,c,d,f,i);J[a+48>>2]=i;break a;case 3:kj(a,b,l,h,l,d,k,i);J[a+48>>2]=i;break a;case 4:g=h+(m-j)*(d-h)/(c-j);f=(go)<<1;kj(a,b,j,h,m,g,k,f);e=O[a>>3];kj(a,b,e,g,e,d,f,i);J[a+48>>2]=i;break a;case 6:g=d-h;e=c-j;q=h+(l-j)*g/e; +n=(qo)<<1;kj(a,b,O[a+16>>3],q,O[a>>3],g,n,f);e=O[a>>3];kj(a,b,e,g,e,d,f,i);J[a+48>>2]=i;break a;case 8:e=h+(m-j)*(d-h)/(c-j);f=(eo)<<1;kj(a,b,m,h,m,e,k,f);kj(a,b,O[a>>3],e,c,d,f,i);J[a+48>>2]=i;break a;case 9:g=d-h;e=c-j;q=h+(m-j)*g/e;n=(qo)<<1;kj(a,b,O[a>>3],q,O[a+16>>3],g,n,f);e=O[a+16>>3];kj(a,b,e,g,e,d,f,i);J[a+48>>2]=i;break a;case 12:break c;default:break b}kj(a, +b,m,h,m,d,k,i)}J[a+48>>2]=i;break a}e=d*256;e=e+(e<0?-.5:.5);d:{if(R(e)<2147483648){k=~~e;break d}k=-2147483648}e=c*256;e=e+(e<0?-.5:.5);e:{if(R(e)<2147483648){n=~~e;break e}n=-2147483648}e=O[a+40>>3]*256;e=e+(e<0?-.5:.5);f:{if(R(e)<2147483648){f=~~e;break f}f=-2147483648}e=O[a+32>>3]*256;e=e+(e<0?-.5:.5);g:{if(R(e)<2147483648){i=~~e;break g}i=-2147483648}ep(b,i,f,n,k)}O[a+40>>3]=d;O[a+32>>3]=c}function Z9(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=J[J[a+528>>2]+88>>2];a:{b:{c:{d:{e:switch(b|0){case 5:if(!c)break c; +a=0;while(1){if(K[a+f|0]){i=P(a,3);g=i+h|0;i=d+i|0;H[g+68|0]=K[i|0]+K[g+68|0];H[g+69|0]=K[i+1|0]+K[g+69|0];H[g+70|0]=K[i+2|0]+K[g+70|0];g=a+h|0;H[g+848|0]=K[a+e|0]+K[g+848|0]}a=a+1|0;if((c|0)!=(a|0))continue;break}break d;case 4:if(!c)break c;a=0;while(1){if(K[a+f|0]){i=P(a,3);g=i+h|0;i=d+i|0;H[g+68|0]=K[i|0];H[g+69|0]=K[i+1|0];H[g+70|0]=K[i+2|0];H[(a+h|0)+848|0]=K[a+e|0]}a=a+1|0;if((c|0)!=(a|0))continue;break}break d;case 3:if(!c)break c;a=0;if((c|0)!=1){i=c&-2;d=0;while(1){if(K[a+f|0]){g=a+h|0; +H[g+848|0]=K[a+e|0]+K[g+848|0]}g=a|1;if(K[g+f|0]){j=g+h|0;H[j+848|0]=K[e+g|0]+K[j+848|0]}a=a+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1)|!K[a+f|0])break d;d=a+h|0;H[d+848|0]=K[a+e|0]+K[d+848|0];break d;case 2:if(!c)break c;a=0;if((c|0)!=1){i=c&-2;d=0;while(1){if(K[a+f|0])H[(a+h|0)+848|0]=K[a+e|0];g=a|1;if(K[g+f|0])H[(g+h|0)+848|0]=K[e+g|0];a=a+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1)|!K[a+f|0])break d;H[(a+h|0)+848|0]=K[a+e|0];break d;case 1:if(!c)break b;a=0;while(1){if(K[a+ +f|0]){g=P(a,3);e=g+h|0;g=d+g|0;H[e+68|0]=K[g|0]+K[e+68|0];H[e+69|0]=K[g+1|0]+K[e+69|0];H[e+70|0]=K[g+2|0]+K[e+70|0]}a=a+1|0;if((c|0)!=(a|0))continue;break}break d;case 0:break e;default:break c}if(!c)break b;a=0;while(1){if(K[a+f|0]){g=P(a,3);e=g+h|0;g=d+g|0;H[e+68|0]=K[g|0];H[e+69|0]=K[g+1|0];H[e+70|0]=K[g+2|0]}a=a+1|0;if((c|0)!=(a|0))continue;break}}if(b>>>0<2)break b}f:{g:{if(K[h+56|0]){if(M[h+844>>2]>>0)break g;break f}H[h+56|0]=1}J[h+844>>2]=c}if((b-4&255)>>>0>253)break a}if(M[h+64>>2]>=c>>> +0)break a;J[h+64>>2]=c}return 0}function R2(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;l=fc-32|0;fc=l;a:{b:{c:{d:{g=J[a+8>>2];k=J[a+12>>2];if((g|0)==(k|0))break d;f=K[b+11|0];e=f<<24>>24;j=(e|0)<0?J[b+4>>2]:f;if((e|0)>=0)while(1){h=K[g+11|0];i=h<<24>>24;e=(i|0)<0;f=J[g+4>>2];e:{if((j|0)!=((e?f:h)|0))break e;if(!e){f=b;e=g;if(!i)break d;while(1){if(K[e|0]!=K[f|0])break e;f=f+1|0;e=e+1|0;h=h-1|0;if(h)continue;break}break d}if(!f)break d;if(!dd(J[g>>2],b,f))break d}g= +g+20|0;if((k|0)!=(g|0))continue;break c}i=J[b>>2];while(1){h=K[g+11|0];m=h<<24>>24;e=(m|0)<0;f=J[g+4>>2];f:{if((j|0)!=((e?f:h)|0))break f;if(!e){f=i;e=g;if(!m)break d;while(1){if(K[e|0]!=K[f|0])break f;f=f+1|0;e=e+1|0;h=h-1|0;if(h)continue;break}break d}if(!f)break d;if(!dd(J[g>>2],i,f))break d}g=g+20|0;if((k|0)!=(g|0))continue;break}break c}if((g|0)==(k|0))break c;e=J[g+16>>2];if(!e)break b;J[c>>2]=J[g+12>>2];J[d>>2]=e;break a}J[c>>2]=0;J[d>>2]=0;break a}i=vc(24);J[i>>2]=J[a>>2];J[i+4>>2]=J[a+4>> +2];tL(l,i);f=M2(l);J[c>>2]=0;J[d>>2]=0;k=H[b+11|0]<0?J[b>>2]:b;h=fc-80|0;fc=h;if(c)g:{J[c>>2]=0;while(1){e=0;a=fc-352|0;fc=a;h:{i:{b=a+96|0;if(!Ax(f,a+16|0,b,256)){b=Yc(b);if(b>>>0>=2147483632)break i;j:{if(b>>>0<=10){H[a+15|0]=b;e=a+4|0;break j}j=(b|15)+1|0;e=vc(j);J[a+12>>2]=j|-2147483648;J[a+4>>2]=e;J[a+8>>2]=b}n=xc(e,a+96|0,b)+b|0,o=0,H[n|0]=o;b=J[a+4>>2];e=H[a+15|0];j=Ic(k,(e|0)<0?b:a+4|0);if((e|0)<0)uc(b);e=!j}fc=a+352|0;break h}_d(a+4|0);B()}if(e){Ax(f,h,0,0);a=J[h+28>>2];b=J[d>>2];a=b?a>>> +0>>0?a:b:a;J[d>>2]=a;b=vc(a);J[c>>2]=b;if(!K2(f,0)){J2(f,b,a);L2(f)}break g}if(!wL(f))continue;break}}fc=h+80|0;UC(f);J[g+16>>2]=J[d>>2];J[g+12>>2]=J[c>>2];uc(i)}fc=l+32|0}function Cub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if(J[a+8>>2]!=2){Jc(a,1030,0,0);return 1030}if(K[a+284|0]){Jc(a,1029,0,0);return 1029}if((c&-17)!=12){Jc(a,1028,0,0);return 1028}I[a+284>>1]=257;J[a+12>>2]=2;f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);g=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+ +16>>2]=g;f=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+20>>2]=h;f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);J[a+24>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);a:{b:{c:{if((c|0)!=28){J[a+28>>2]=0;J[a+32>>2]=0;H[a+264|0]=1;J[a+36>>2]=0;J[a+40>>2]=0;d=0;break c}c=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);J[a+28>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+16|0]|K[d+17|0]<<8|(K[d+18|0]<<16|K[d+19|0]<<24);J[a+32>>2]=c<<24|(c&65280)<< +8|(c>>>8&65280|c>>>24);c=K[d+20|0]|K[d+21|0]<<8|(K[d+22|0]<<16|K[d+23|0]<<24);J[a+36>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+27|0];f=K[d+26|0];i=K[d+25|0];d=K[d+24|0];H[a+264|0]=0;d=c|(i<<16|d<<24|f<<8);J[a+40>>2]=d;if(c&1)break b}H[a+44|0]=16;break a}if(!(c&8)){H[a+44|0]=0;break a}if((d&320)==64){H[a+44|0]=1;break a}H[a+44|0]=16}if(d&64512){Jc(a,1060,0,0);return 1060}d:{if(!(M[a+124>>2]>=g>>>0&M[a+128>>2]>=h>>>0)){d=4097;if(!Jc(a,4097,0,0))break d}e:{c=J[a+188>>2];if(!c)break e;if(kc[c| +0](a,J[a+16>>2],J[a+20>>2])|0)break e;Jc(a,904,0,0);return 904}J[a+48>>2]=J[a+48>>2]+1;d=0;if(!K[a+112|0])break d;d=kc[J[b+4>>2]](a,b,e)|0;if(d)break d;b=J[e>>2];J[b+32>>2]=J[a+16>>2];J[b+36>>2]=J[a+20>>2];J[b+40>>2]=J[a+24>>2];J[b+44>>2]=J[a+28>>2];J[b+48>>2]=J[a+32>>2];J[b+52>>2]=J[a+36>>2];J[b+56>>2]=J[a+40>>2];d=0}return d|0}function q6a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[a+8>>2];if(!d){J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;return}J[a+140>>2]=J[d+268>>2];J[a+ +144>>2]=J[d+256>>2];J[a+148>>2]=J[d+260>>2];J[a+152>>2]=J[d+264>>2];c=fc-32|0;fc=c;J[d+288>>2]=1;a:{b:{e=J[d+188>>2];c:{if(!e)break c;a=J[e+96>>2];if(!a)break c;a=J[a+12>>2];if(!a)break c;d:{e:{f:{f=J[a+8>>2];a=Yc(f);if(a>>>0<2147483632){g:{if(a>>>0<=10){H[c+31|0]=a;b=c+20|0;break g}g=(a|15)+1|0;b=vc(g);J[c+28>>2]=g|-2147483648;J[c+20>>2]=b;J[c+24>>2]=a}i=cd(b,f,a)+a|0,j=0,H[i|0]=j;f=K[c+31|0];a=f<<24>>24;b=(a|0)<0;h:{if(((b?J[c+24>>2]:f)|0)==8){b=b?J[c+20>>2]:c+20|0;if((K[b|0]|K[b+1|0]<<8|(K[b+2| +0]<<16|K[b+3|0]<<24))==1702195828&(K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24))==1701869940)break h}J[d+288>>2]=0;break d}b=J[e+20>>2];if(!b)break f;a=0;i:{g=K[b|0];if(!g)break i;e=b;while(1){f=a;a=a+1|0;h=K[e+1|0];e=e+1|0;if(h)continue;break}if((g|0)!=60|f>>>0<6|(K[b+1|0]!=117|K[b+2|0]!=116))break i;if(K[b+3|0]!=102|K[b+4|0]!=56|K[b+5|0]!=62)break i;J[699344]=0;ca(1618,c+8|0,b+6|0,f-5|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;break b}J[699344]=0;ia(2848,c+8|0,b|0,a|0,0);a=J[699344];J[699344]= +0;if((a|0)==1)break b;break e}_d(c+20|0);B()}J[c+8>>2]=0;H[c+19|0]=0}f=d+292|0;e=K[d+303|0];a=e<<24>>24;g=(a|0)<0;b=J[d+296>>2];j:{k:{if(((g?b:e)|0)==9){if(!qd(g?J[f>>2]:f,352404,9))break k;b=J[d+296>>2];e=K[d+303|0];a=e}a=a<<24>>24;if((((a|0)<0?b:e)|0)!=9)break j;if(qd((a|0)<0?J[f>>2]:f,352444,9))break j}J[d+288>>2]=0}if(H[c+19|0]<0)uc(J[c+8>>2]);a=K[c+31|0]}if(a<<24>>24>=0)break c;uc(J[c+20>>2])}fc=c+32|0;break a}a=Z()|0;if(H[c+31|0]<0)uc(J[c+20>>2]);ba(a|0);B()}}function Tbb(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;a:{if((d|0)<=0)break a;g=J[a+480>>2];j=J[a+112>>2];f=J[a+120>>2];if((f|0)<=0)while(1){Re(J[(e<<2)+c>>2],j);J[g+84>>2]=!J[g+84>>2];e=e+1|0;if((e|0)!=(d|0))continue;break a}if(j){v=J[a+332>>2];o=0-f|0;s=j-1|0;w=P(f,s);while(1){a=p<<2;t=a+c|0;Re(J[t>>2],j);x=a+b|0;k=0;while(1){m=J[x>>2]+k|0;e=J[t>>2];b:{if(J[g+84>>2]){h=(J[((k<<2)+g|0)+68>>2]+(j<<1)|0)+2|0;e=e+s|0;m=m+w|0;q=-1;a=o;break b}h= +J[((k<<2)+g|0)+68>>2];q=1;a=f}y=a;a=k<<2;z=J[a+J[g+16>>2]>>2];A=J[a+J[g+24>>2]>>2];i=0;B=q<<1;n=0;l=j;r=0;while(1){u=h+B|0;a=K[K[m|0]+(((I[u>>1]+i|0)+8>>4)+v|0)|0];i=K[a+A|0];H[e|0]=i+K[e|0];a=a-K[i+z|0]|0;I[h>>1]=P(a,3)+r;i=P(a,7);r=P(a,5)+n|0;e=e+q|0;m=m+y|0;n=a;h=u;l=l-1|0;if(l)continue;break}I[h>>1]=r;k=k+1|0;if((f|0)!=(k|0))continue;break}J[g+84>>2]=!J[g+84>>2];p=p+1|0;if((p|0)!=(d|0))continue;break}break a}j=f&-4;a=f&3;n=f>>>0<4;while(1){Re(J[(l<<2)+c>>2],0);o=J[g+84>>2];c:{if(o){h=0;e=0;i= +0;if(!n)while(1){b=g+68|0;f=e<<2;I[J[b+f>>2]+2>>1]=0;I[J[b+(f|4)>>2]+2>>1]=0;I[J[b+(f|8)>>2]+2>>1]=0;I[J[b+(f|12)>>2]+2>>1]=0;e=e+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}if(!a)break c;while(1){I[J[((e<<2)+g|0)+68>>2]+2>>1]=0;e=e+1|0;h=h+1|0;if((a|0)!=(h|0))continue;break}break c}h=0;e=0;i=0;if(!n)while(1){b=g+68|0;f=e<<2;I[J[b+f>>2]>>1]=0;I[J[b+(f|4)>>2]>>1]=0;I[J[b+(f|8)>>2]>>1]=0;I[J[b+(f|12)>>2]>>1]=0;e=e+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}if(!a)break c;while(1){I[J[((e<<2)+g|0)+68>> +2]>>1]=0;e=e+1|0;h=h+1|0;if((a|0)!=(h|0))continue;break}}J[g+84>>2]=!o;l=l+1|0;if((l|0)!=(d|0))continue;break}}}function MCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=M[a+4>>2]/((M[b>>2]>256?9:7)>>>0)|0;J[a+12>>2]=d;e=Dc(d<<4);J[a+16>>2]=e;if(!e)return-1;if(J[a+12>>2]<=0)return 0;a:{b:{while(1){d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break c}d=td(c,1); +if((d|0)==-1)break a}H[e+1|0]=d;d:{if(M[b>>2]>=257){if(!Wg(c,e+4|0))break d;break a}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break e}d=td(c,1);if((d|0)==-1)break a}J[e+4>>2]=d&255}if(Wg(c,e+12|0))break a;d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;f:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2]; +J[c+24>>2]=d+1;d=K[d|0];break f}d=td(c,1);if((d|0)==-1)break a}H[e+2|0]=d;g:{if(M[b>>2]>=257){if(!Wg(c,e+8|0))break g;break a}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;h:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break h}d=td(c,1);if((d|0)==-1)break a}J[e+8>>2]=d&255}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;d=J[c+28>>2];J[c+28>>2]=d-1;i:{if((d|0)>0){J[c+60>>2]=J[c+60>> +2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;d=K[d|0];break i}d=td(c,1);if((d|0)==-1)break a}H[e|0]=d;if(K[e+1|0]>K[e+2|0]|M[e+4>>2]>M[e+8>>2])break a;e=e+16|0;g=g+1|0;if((g|0)>2])continue;break}return 0}J[c+8>>2]=d|4}a=J[a+16>>2];if(a)uc(a);return-1}function o8(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;j=fc-48|0;fc=j;J[j>>2]=0;m=J[h+556>>2];k=J[g>>2];i=J[k>>2];J[j+16>>2]=0;J[j+20>>2]=0;J[j+24>>2]=0;J[j+28>>2]=0;J[j+8>>2]=0;J[j+12>>2]=0;J[j+36>>2]=a;J[j+32>>2]=f;J[j+40>>2]=0;J[j+4>>2]=k;l=(f|0)==12288| +(f|0)==16384;n=l?513:96;k=_c(i,4,0,n,0,j+44|0);J[j+20>>2]=k;a:{b:{if(!J[j+44>>2]){J[j+24>>2]=k;J[j+28>>2]=n;break b}if(k)kc[J[i+8>>2]](i,k);J[j+20>>2]=0;i=J[j+44>>2];if(i)break a}Ac(a+24|0,0,160);J[a+156>>2]=8720;J[a+60>>2]=65536;J[a+44>>2]=2;J[a+48>>2]=65536;J[a+32>>2]=-6553600;J[a+36>>2]=3276800;J[a+184>>2]=l?513:48;J[a+172>>2]=65535;J[a+136>>2]=65535;J[a+128>>2]=65535;J[a+132>>2]=65535;J[a+16>>2]=65535;J[a+20>>2]=65535;J[a+8>>2]=65535;J[a+12>>2]=65535;J[a>>2]=65535;J[a+4>>2]=65535;c:{d:{if(!J[b+ +12>>2]){i=yd(d,J[b+20>>2]);if(i)break a;i=Oi(d,J[b+24>>2],j);if(i)break a;c=b+24|0;break d}i=c;c=j+44|0;i=hE(b,i,j,c);if(i)break c}i=J[j>>2];i=q8(j+4|0,i,i?i+J[c>>2]|0:0)}e:{if(J[b+12>>2]){if(J[b+32>>2])break e;b=J[b>>2]}else b=d;$f(b,j)}if(i)break a;i=0;if(J[a+132>>2]!=65535)break a;i=r8(g,a,0,0);if(i)break a;f:{if((f|0)==12288|(f|0)==16384)break f;f=J[J[h+128>>2]+60>>2];g:{if((f|0)==-1){b=J[h+96>>2];f=J[b+68>>2];J[a+648>>2]=f;if(!f)break g;while(1){f=kc[J[m+20>>2]](f)|0;J[b+68>>2]=f;if((f|0)<0)continue; +break}break g}J[a+648>>2]=f;if(!f)break g;while(1){f=kc[J[m+20>>2]](f)|0;J[J[h+128>>2]+60>>2]=f;if((f|0)<0)continue;break}}if(J[a+648>>2])break f;J[a+648>>2]=J[a+532>>2]}b=J[a+536>>2];if(!b){i=0;break a}i=yd(d,J[a+116>>2]+(b+e|0)|0);if(i)break a;b=a+608|0;i=Iq(b,d,1,l);if(i)break a;i=GN(b,a+644|0,0,0)}a=J[J[j+4>>2]>>2];b=J[j+20>>2];if(b)kc[J[a+8>>2]](a,b);fc=j+48|0;return i}function EU(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;c=vc(160);J[c+16>>2]=0;J[c+20>>2]=0;J[c>>2]=2442544;J[c+4>>2]= +0;J[c+8>>2]=0;J[c+16>>2]=2450296;J[c+24>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;e=c- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[c+76>>2]=16777215;J[c+80>>2]=0;I[c+72>>1]=0;Ac(c+88|0,0,72);J[d+12>>2]=c;f=c+16|0;J[d+8>>2]=f;J[699344]=0;da(6549,c+136|0,b|0);h=J[699344];J[699344]=0;a:{b:{if((h|0)==1)break b;b=J[b>>2];O[c+48>>3]=O[b+32>>3];O[c+24>>3]=O[b+8>>3];O[c+32>>3]=O[b+16>>3];O[e>>3]=O[b+48>>3]+1;g=O[b+24>>3];O[c+40>>3]=g;i=O[b+ +40>>3];O[c+128>>3]=g;O[c+56>>3]=i;b=J[b+84>>2];if(b){H[c+73|0]=1;J[c+76>>2]=J[b+76>>2];J[699344]=0;MT(f);b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]=0;b=_(4,712)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[b>>2]=2441796;J[b+4>>2]=0;J[b+8>>2]=0;J[699344]=0;e=_(6508,b+16|0)|0;h=J[699344];J[699344]=0;if((h|0)==1){c=Z()|0;uc(b);break a}J[a+4>>2]=b;J[a>>2]=e;J[d+4>>2]=c;J[d>>2]=f;J[c+4>>2]=J[c+4>>2]+1;c:{e=J[b+696>>2];d:{if(e>>>0>2]){J[e+4>>2]=c;J[e>>2]=f;J[b+696>>2]=e+8;break d}J[699344]= +0;da(6560,b+692|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;b=J[d+4>>2];if(!b)break d;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break d;kc[J[J[b>>2]+8>>2]](b);Gc(b)}a=J[a>>2];J[a+56>>2]=1;b=J[d+8>>2];O[a+32>>3]=O[b+32>>3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+48>>3]=O[b+48>>3];O[a+24>>3]=O[b+24>>3];g=O[b+40>>3];H[a+622|0]=0;O[a+40>>3]=g;a=J[d+12>>2];e:{if(!a)break e;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break e;kc[J[J[a>>2]+8>>2]](a);Gc(a)}fc=d+16|0;return}c=Z()|0;je(d);je(a);break a}c=Z()|0}je(d+8| +0);ba(c|0);B()}function Xma(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+8>>2]=0;J[a+12>>2]=0;H[a+96|0]=0;J[a+92>>2]=0;J[a>>2]=2444156;J[a+56>>2]=0;J[a+60>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+120>>2]=340552;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;H[a+87|0]=0;H[a+88|0]=0;H[a+89|0]=0;H[a+90|0]=0;H[a+105|0]=0;H[a+106|0]=0;H[a+107|0]=0;H[a+ +108|0]=0;H[a+109|0]=0;H[a+110|0]=0;H[a+111|0]=0;H[a+112|0]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;d=a+124|0;c=d;J[c>>2]=0;J[c+4>>2]=0;J[699344]=0;ga(2227,a+136|0,2447880,5)|0;c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){if(H[a+135|0]>=0)break c;J[a+128>>2]=0;d=J[a+124>>2];break b}b=Z()|0;if(H[a+147|0]<0)uc(J[a+136>>2]);if(H[a+135|0]>=0)break a;uc(J[a+124>>2]);break a}H[a+135|0]=0}J[d>>2]=0;I[a+168>>1]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+172>>2]=0;J[a+ +176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0;J[a+224>>2]=0;J[a+228>>2]=0;H[a+231|0]=0;H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;J[699344]=0;c=a+240|0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=2463820;d=J[699344];J[699344]=0;d:{e:{if((d|0)!=1){J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0;J[699344]=0;d=aa(6649,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break e;return d|0}b=Z()|0;break d}b=Z()|0;d=J[a+256>>2];if(d){J[a+260>>2]=d;uc(d)}qi(c)}yk(a+120|0)}c=J[a+80>>2];if(c)Gc(c);je(a+68|0);je(a+56|0);ba(b|0);B()}function nUa(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,u=0,v=0,w=0;m=fc+-64|0;d=a;while(1){a:{e=d;d=J[(i<<2)+b>>2]+c|0;f=K[d+4|0];g=K[d+5|0];r=f-g|0;l=K[d|0];n=K[d+9|0];h=l-n|0;s=r+h|0;o=K[d+2|0];t=K[d+7|0];u=o-t|0;p=K[d+1|0];q=K[d+8|0];j=p-q|0;v=K[d+3|0];w=K[d+6|0];d=v-w|0;k=j-d| +0;J[e+20>>2]=s-(u+k|0)<<1;f=f+g|0;g=l+n|0;l=f+g|0;v=v+w|0;p=p+q|0;q=v+p|0;o=o+t|0;J[e>>2]=(l+(q+o|0)<<1)-2560;n=o<<1;J[e+16>>2]=(P(q-n|0,-3580)+P(l-n|0,9373)|0)+2048>>12;g=g-f|0;l=p-v|0;f=P(g+l|0,6810)+2048|0;J[e+24>>2]=f+P(l,-17828)>>12;J[e+8>>2]=f+P(g,4209)>>12;f=(P(h-r|0,7791)+P(d+j|0,-4815)|0)+2048|0;g=u<<13;k=((k<<12)-g|0)+P(k+s|0,2531)|0;J[e+28>>2]=f-k>>12;J[e+12>>2]=f+k>>12;J[e+4>>2]=(((g+(P(h,11443)+P(j,10323)|0)|0)+P(d,5260)|0)+P(r,1812)|0)+2048>>12;h=i-7|0;i=i+1|0;d=m;r=7;b:switch(h|0){case 0:continue; +case 2:break a;default:break b}d=e+32|0;continue}break}while(1){m=J[a+192>>2];i=J[a+96>>2];b=m+i|0;e=J[d>>2];h=J[a+32>>2];c=e+h|0;j=b+c|0;k=J[a+224>>2];f=J[a+64>>2];g=k+f|0;l=g<<1;n=J[a+160>>2];s=J[a+128>>2];o=n+s|0;t=J[d+32>>2];u=J[a>>2];p=t+u|0;q=o+p|0;J[a+128>>2]=(P(j-l|0,-4582)+P(q-l|0,11997)|0)+16384>>15;J[a>>2]=P(q+(g+j|0)|0,10486)+16384>>15;j=p-o|0;c=c-b|0;b=P(j+c|0,8716)+16384|0;J[a+192>>2]=b+P(c,-22820)>>15;J[a+64>>2]=b+P(j,5387)>>15;b=s-n|0;c=u-t|0;j=b+c|0;e=h-e|0;m=i-m|0;i=e-m|0;h=f-k| +0;J[a+160>>2]=P(j-(i+h|0)|0,10486)+16384>>15;k=(P(c-b|0,9973)+P(e+m|0,-6163)|0)+16384|0;h=P(h,10486);i=(P(i,5243)-h|0)+P(i+j|0,3240)|0;J[a+224>>2]=k-i>>15;J[a+96>>2]=i+k>>15;J[a+32>>2]=(((h+(P(c,14647)+P(e,13213)|0)|0)+P(m,6732)|0)+P(b,2320)|0)+16384>>15;b=r;r=b-1|0;d=d+4|0;a=a+4|0;if(b)continue;break}}function K9a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+112>>2];g=J[b+112>>2]; +h=(g|0)>(h|0)?h:g;g=J[a+104>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((h|0)<(i|0))break a;g=J[a+108>>2];j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+116>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+112>>2]- +J[a+104>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+ +12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!$c(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if($c(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){J[e+8>>2]=J[c+4>>2];oh(e,J[f>>2],h)}if(!$c(a,c))break a;if($c(b,d))continue;break}}}function n2a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0,y=0;t=fc-192|0;fc=t;h=J[a+332>>2];a=J[b+84>>2];b=t;while(1){k=J[a+64>>2];i=I[c+32>>1];g=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+128>>2],I[c+64>>1]);r=g+P(j,-11586)>>11;f=P(J[a+32>>2],I[c+16>>1]);n=P(J[a+96>>2],I[c+48>>1]);l=P(J[a+160>>2],I[c+80>>1]);o=f-(n+l|0)<<2;J[b+128>>2]=r-o;J[b+32>>2]=o+r;k=P(P(i,k),10033);i=g+P(j,5793)|0;j=k+i|0;g=f+n<<13;f=P(f+l|0,2998);g=g+f|0;J[b+160>>2]=j-g>>11;J[b>>2]=g+j>>11;k=i-k|0;f=f+(l-n<<13)|0;J[b+96>> +2]=k-f>>11;J[b+64>>2]=f+k>>11;b=b+4|0;a=a+4|0;c=c+2|0;p=p+1|0;if((p|0)!=8)continue;break}a=h+128|0;b=t;n=0;while(1){l=J[b+4>>2];h=J[b+20>>2];i=l+h|0;f=J[b+28>>2];k=P(i+f|0,7053);c=J[(n<<2)+d>>2]+e|0;o=k+P(i,2139)|0;j=J[b+12>>2];r=P(j,10703);p=o+(r+P(l,2295)|0)|0;m=J[b+24>>2];s=m<<13;g=J[b+8>>2];u=s+P(g,11190)|0;v=P(J[b+16>>2],10033);i=(J[b>>2]<<13)+131072|0;w=v+i|0;q=u+w|0;H[c|0]=K[a+(p+q>>>18&1023)|0];H[c+11|0]=K[a+(q-p>>>18&1023)|0];p=g-m<<13;m=p+i|0;q=l-f|0;x=j-h|0;y=P(q+x|0,4433);q=y+P(q,6270)| +0;H[c+1|0]=K[a+(m+q>>>18&1023)|0];H[c+10|0]=K[a+(m-q>>>18&1023)|0];j=P(j,-4433);m=j+P(h,-12112)|0;h=P(f+h|0,-8565);o=(m+h|0)+o|0;g=P(g,2998)-s|0;m=i-v|0;s=g+m|0;H[c+2|0]=K[a+(o+s>>>18&1023)|0];H[c+9|0]=K[a+(s-o>>>18&1023)|0];h=h+(k+(P(f,12998)-r|0)|0)|0;g=m-g|0;H[c+3|0]=K[a+(h+g>>>18&1023)|0];H[c+8|0]=K[a+(g-h>>>18&1023)|0];h=P(x,-15137)+y|0;i=i-p|0;H[c+4|0]=K[a+(h+i>>>18&1023)|0];H[c+7|0]=K[a+(i-h>>>18&1023)|0];f=k+((j+P(l,-5540)|0)+P(f,-16244)|0)|0;l=w-u|0;H[c+5|0]=K[a+(f+l>>>18&1023)|0];H[c+6| +0]=K[a+(l-f>>>18&1023)|0];b=b+32|0;n=n+1|0;if((n|0)!=6)continue;break}fc=t+192|0}function Pjb(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;e=fc-16|0;fc=e;J[a+788>>2]=0;J[a+792>>2]=0;f=a+796|0;J[f>>2]=0;J[f+4>>2]=0;i=a+788|0;a:{b:{c:{d:{if(!(kc[J[a+516>>2]](a,1128418371,b,e+12|0)|0)){c=2;break d}c=1;h=e+12|0;if(!(kc[J[a+516>>2]](a,1161972803,b,h)|0))break d;if(!(kc[J[a+516>>2]](a,1651273571,b,h)|0))break d;c=kc[J[a+516>>2]](a,1935829368,b,h)|0;if(c)break c;c=3}J[f>>2]=c;if(M[e+12>>2]<8){c= +3;break c}h=a+800|0;j=J[b+8>>2];e:{f:{g:{h:{i:{c=J[f>>2];switch(c-1|0){case 2:break h;case 0:case 1:break i;default:break f}}c=Oi(b,J[e+12>>2],i);if(c)break c;g=J[e+12>>2];J[a+792>>2]=g;c=J[a+788>>2];d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if((K[c+1|0]<<16|K[c|0]<<24|65536)!=196608){c=K[c+2|0]|K[c+3|0]<<8;if(((c<<8|c>>>8|256)&65535)!=768)break e}c=3;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(d>>>0>65535)break c;if(g>>>0>=(P(d,48)|8)>>>0)break g;d=(g-8>>>0)/48|0;break g}c=af(b,8);if(c)break c; +c=tf(b);g=tf(b);d=Fh(b);ve(b);if(!c)break e;if((g&65533)!=1){c=3;break c}c=3;if(d>>>0>65535)break c;g=J[e+12>>2];c=yd(b,J[b+8>>2]-8|0);if(c)break c;d=g>>>0<(d<<2)+8>>>0?g-8>>>2|0:d;c=(d<<2)+8|0;J[a+792>>2]=c;c=Oi(b,c,i);if(c)break c}J[a+800>>2]=d;c=J[f>>2]}J[a+860>>2]=0;J[a+864>>2]=0;j:{k:{l:switch(c|0){case 3:J[a+860>>2]=j;b=J[e+12>>2];break k;case 0:break b;default:break l}m:{f=e+8|0;if(!(kc[J[a+516>>2]](a,1128416340,b,f)|0))break m;if(!(kc[J[a+516>>2]](a,1161970772,b,f)|0))break m;if(!(kc[J[a+ +516>>2]](a,1650745716,b,f)|0))break m;b=J[a+864>>2];break j}J[a+860>>2]=J[b+8>>2];b=J[e+8>>2]}J[a+864>>2]=b}c=0;if(b)break a;break b}c=2}if(J[i>>2])$f(b,i);J[a+792>>2]=0;h=f}J[h>>2]=0}fc=e+16|0;return c|0}function R9a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+112>>2];g=J[b+112>>2];h=(g|0)>(h|0)?h:g;g=J[a+104>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((h|0)<(i|0))break a;g=J[a+108>> +2];j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+116>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911? +-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]= +0;if(!$c(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if($c(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Xf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!$c(a,c))break a;if($c(b,d))continue;break}}}function P9a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;J[b+120>>2]=0;if(!J[b+60>>2])break a; +h=J[a+112>>2];g=J[b+112>>2];h=(g|0)>(h|0)?h:g;g=J[a+104>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((h|0)<(i|0))break a;g=J[a+108>>2];j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+116>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>>2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632; +h=J[c+20>>2];g=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>>0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2]; +if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!$c(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if($c(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+20>>2]){Wf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!$c(a,c))break a;if($c(b,d))continue;break}}}function N9a(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;J[a+120>>2]=0;a:{if(!J[a+60>>2])break a;J[b+120>>2]=0;if(!J[b+60>>2])break a;h=J[a+112>>2];g=J[b+112>>2];h=(g|0)>(h|0)?h:g;g=J[a+104>>2];i=J[b+104>>2];i=(g|0)>(i|0)?g:i;if((h|0)<(i|0))break a;g=J[a+108>>2];j=J[b+108>>2];k=(g|0)>(j|0)?g:j;g=J[a+116>>2];j=J[b+116>>2];if((k|0)>(((g|0)<(j|0)?g:j)|0))break a;g=J[e+20>>2];h=(h-i|0)+2|0;b:{if(h>>>0<=M[e+24>>2])break b;if(g)uc(g);J[e+24>>2]=h;g=vc(h>>>0>536870911?-1:h<<3);J[e+20>>2]=g;if((h|0)==J[e+16>> +2])break b;j=J[e+12>>2];if(j){uc(j);g=J[e+20>>2]}J[e+16>>2]=h;l=e,m=vc(h),J[l+12>>2]=m}J[e+28>>2]=g;J[e>>2]=i;J[e+4>>2]=2147483632;h=J[c+20>>2];g=(J[a+112>>2]-J[a+104>>2]|0)+3|0;c:{if(g>>>0<=M[c+24>>2])break c;if(h)uc(h);J[c+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[c+20>>2]=h;if((g|0)==J[c+12>>2])break c;i=J[c+8>>2];if(i){uc(i);h=J[c+20>>2]}J[c+12>>2]=g;l=c,m=vc(g),J[l+8>>2]=m}J[c>>2]=2147483632;J[c+28>>2]=h;J[c+16>>2]=J[c+8>>2];I[h+2>>1]=0;h=J[d+20>>2];g=(J[b+112>>2]-J[b+104>>2]|0)+3|0;d:{if(g>>> +0<=M[d+24>>2])break d;if(h)uc(h);J[d+24>>2]=g;h=vc(g>>>0>536870911?-1:g<<3);J[d+20>>2]=h;if((g|0)==J[d+12>>2])break d;i=J[d+8>>2];if(i){uc(i);h=J[d+20>>2]}J[d+12>>2]=g;l=d,m=vc(g),J[l+8>>2]=m}J[d>>2]=2147483632;J[d+28>>2]=h;J[d+16>>2]=J[d+8>>2];I[h+2>>1]=0;if(!$c(a,c))break a;if(!$c(b,d))break a;h=f+4|0;while(1){if(J[c+4>>2]>2]){if($c(a,c))continue;break a}while(1){g=J[d+4>>2];i=J[c+4>>2];if((g|0)<(i|0)){if($c(b,d))continue;break a}break}if((g|0)!=(i|0))continue;xd(c,d,e);if(J[e+28>>2]!=J[e+ +20>>2]){Vf(e,J[c+4>>2]);oh(e,J[f>>2],h)}if(!$c(a,c))break a;if($c(b,d))continue;break}}}function llb(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;if(M[b+160>>2]>>0)pe(b,8);d=K[a+3|0]|K[a+2|0]<<8;if(M[b+160>>2]>>0){if(J[b+164>>2]>0)pe(b,8);d=J[b+160>>2]-a|0}if(d>>>0<=15)pe(b,8);c=K[a+7|0];k=c|K[a+6|0]<<8;if(!(!(c&1)|J[b+164>>2]<2))pe(b,8);h=k&65534;if((h<<2)+16>>>0>d>>>0)pe(b,8);g=k>>>1|0;a:{if(J[b+164>>2]<2)break a;l=K[a+12|0];i=K[a+10|0];e=K[a+ +11|0];c=K[a+9|0];q=c|K[a+8|0]<<8;f=c;c=K[a+13|0];if((f|c)&1)pe(b,8);f=q>>>1|0;if(!(f>>>0>g>>>0|g>>>0>(q&65534)>>>0|(g|0)!=(f+((c|l<<8)>>>1|0)|0)))if((f|0)==1<<(e|i<<8))break a;pe(b,8)}m=a+14|0;b:{if(J[b+164>>2]<2)break b;c=h+m|0;if((K[c-2|0]<<8|K[c-1|0])==65535)break b;pe(b,8)}if(k>>>0>=2){n=(a+h|0)+16|0;o=h+n|0;j=h+o|0;s=h+j|0;h=g>>>0<=1?1:g;k=a+d|0;g=g-1|0;e=0;c=0;while(1){a=c;d=e;q=K[j|0]<<8;f=K[j+1|0];l=K[o|0];i=K[o+1|0];c=K[n+1|0]|K[n|0]<<8;e=K[m+1|0]|K[m|0]<<8;if(c>>>0>e>>>0)pe(b,8);f=f|q;c:{if(!p| +c>>>0>d>>>0)break c;if(J[b+164>>2]>0){pe(b,8);break c}if(!(a>>>0<=c>>>0&e>>>0>=d>>>0)){r=r|1;break c}r=r|2}d:{if(!f)break d;if((f|0)!=65535){a=f+j|0;e:{f:{if(J[b+164>>2]>0){if(a>>>0>>0|k>>>0<((e-c<<1)+a|0)+2>>>0)break f;break e}if(!((g|0)!=(p|0)|(c|0)!=65535)&(e|0)==65535)break e;if(a>>>0>>0)break f;if(M[b+160>>2]>=((e-c<<1)+a|0)+2>>>0)break e}pe(b,8)}if(J[b+164>>2]<=0|c>>>0>=e>>>0)break d;l=i|l<<8;d=c;while(1){i=K[a+1|0]|K[a|0]<<8;if(!(!i|M[b+172>>2]>(l+i&65535)>>>0))pe(b,16);a=a+2|0;d=d+1| +0;if(d>>>0>>0)continue;break}break d}if(!((g|0)!=(p|0)|J[b+164>>2]>1|(c|0)!=65535))if((e|0)==65535)break d;pe(b,8)}j=j+2|0;o=o+2|0;m=m+2|0;n=n+2|0;p=p+1|0;if((h|0)!=(p|0))continue;break}}return r|0}function vib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+20>>2];if((c&-2)!=200){d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;kc[J[J[a>>2]>>2]](a)}c=1;a:{b:{c:{d:{e:{d=J[a+20>>2];switch(d-200|0){case 2:break a;case 3:case 4:case 5:case 6:case 7:case 8:case 10:break c;case 1:break d;case 0:break e;default:break b}}kc[J[J[a+ +456>>2]+4>>2]](a);kc[J[J[a+24>>2]+8>>2]](a);J[a+20>>2]=201}c=kc[J[J[a+456>>2]>>2]](a)|0;if((c|0)!=1)break a;c=J[a+36>>2];d=c;f:{g:switch(c-1|0){case 2:d=2;c=3;if(J[a+284>>2])break f;if(J[a+296>>2]){c=2;h:{i:{e=K[a+300|0];switch(e|0){case 1:break i;case 0:break f;default:break h}}c=3;break f}c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=116;kc[J[J[a>>2]+4>>2]](a,-1);c=3;break f}f=J[a+216>>2];e=J[f+176>>2];g=J[f+88>>2];f=J[f>>2];if(!((f|0)!=1|(g|0)!=2)&(e|0)==3)break f;if(!((f|0)!=82|(g|0)!=71|(e|0)!=66)){c=2; +break f}c=J[a>>2];J[c+24>>2]=f;J[c+20>>2]=113;J[c+32>>2]=e;J[c+28>>2]=g;kc[J[c+4>>2]](a,1);c=3;break f;case 3:d=4;if(!J[a+296>>2]){c=4;break f}c=4;j:{k:{e=K[a+300|0];switch(e|0){case 2:break k;case 0:break f;default:break j}}c=5;break f}c=J[a>>2];J[c+24>>2]=e;J[c+20>>2]=116;kc[J[J[a>>2]+4>>2]](a,-1);c=5;break f;case 0:break f;default:break g}c=0;d=0}J[a+44>>2]=d;J[a+40>>2]=c;J[a+136>>2]=0;J[a+96>>2]=256;J[a+88>>2]=2;J[a+92>>2]=1;J[a+80>>2]=1;J[a+84>>2]=0;J[a+72>>2]=0;J[a+76>>2]=1;J[a+64>>2]=0;J[a+ +68>>2]=0;J[a+56>>2]=0;J[a+60>>2]=1072693248;J[a+108>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+20>>2]=202;c=J[a+424>>2];J[a+52>>2]=c;J[a+48>>2]=c;c=1;break a}c=kc[J[J[a+456>>2]>>2]](a)|0;break a}c=J[a>>2];J[c+24>>2]=d;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a);c=0}if((c|0)==2){if(b){b=J[a>>2];J[b+20>>2]=53;kc[J[b>>2]](a)}Vx(a)}return c|0}function i1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=fc-32|0;fc=f;a:{if(J[a+292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Rd(a)}d=J[a+36>>2];c=J[d+16>>2];b:{if(!(K[c| +0]==60&K[c+1|0]==47)){oe(a,74,34998);break b}J[a+200>>2]=J[a+200>>2]+2;J[d+16>>2]=c+2;J[d+32>>2]=J[d+32>>2]+2;c=K[c+2|0];if((c|0)==37){Yd(a);d=J[a+36>>2];c=K[J[d+16>>2]]}c:{if(c&255)break c;if((Nd(d)|0)>0)break c;while(1){e=J[a+40>>2];if((e|0)<2)break c;d:{e:{f:{if(!J[693384]){c=e-1|0;J[a+40>>2]=c;d=J[a+48>>2];break f}J[f+16>>2]=e;d=0;kc[J[663297]](J[693366],36125,f+16|0);e=J[a+40>>2];if((e|0)<=0)break d;c=e-1|0;J[a+40>>2]=c;d=J[a+48>>2];h=0;g=0;if((e|0)==1)break e}h=J[((e<<2)+d|0)-8>>2];g=c}e=g; +J[a+36>>2]=h;c=(e<<2)+d|0;d=J[c>>2];J[c>>2]=0}th(d);c=J[a+36>>2];if(K[J[c+16>>2]])break c;if((Nd(c)|0)<=0)continue;break}}e=h1(a,J[a+184>>2]);g:{if(J[a+292>>2])break g;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break g;Rd(a)}be(a);c=J[a+36>>2];d=J[c+16>>2];h:{if(K[d|0]!=62){if(J[a+172>>2]==-1?J[a+212>>2]:0)break h;J[a+84>>2]=73;J[f>>2]=29287;Hc(0,0,0,a,0,1,73,3,0,0,0,0,32906,f);J[a+12>>2]=0;if(J[a+288>>2])break h;J[a+212>>2]=1;break h}J[c+16>>2]=d+1;J[c+32>>2]=J[c+32>>2]+1;J[a+200>>2]=J[a+200>> +2]+1;if(K[d+1|0])break h;Nd(c)}if((e|0)!=1)hC(a,76,32636,J[a+184>>2],b,e?e:14322);b=J[a>>2];i:{if(!b)break i;b=J[b+60>>2];if(J[a+212>>2]|!b)break i;kc[b|0](J[a+4>>2],J[a+184>>2])}b=J[a+188>>2];if((b|0)>0){e=b-1|0;J[a+188>>2]=e;c=J[a+196>>2];J[a+184>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;J[c+(e<<2)>>2]=0}b=J[a+236>>2];if((b|0)<=0)break b;c=b-1|0;J[a+236>>2]=c;g=a;a=J[a+244>>2];J[g+232>>2]=(b|0)==1?a:(a+(b<<2)|0)-8|0;J[a+(c<<2)>>2]=-1}fc=f+32|0}function D1(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=fc+-64| +0;fc=e;a:{if(!d|(!b|!c))break a;b:{g=J[b+68>>2];if(g)break b;g=mq(0,J[b+80>>2]);J[b+68>>2]=g;if(g)break b;c:{if(!a){b=0;c=0;break c}b=J[a>>2];c=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break c;h=(b^-1)+a>>>0<249?b:0}J[e>>2]=38521;Hc(0,c,b,h,0,23,2,3,38521,0,0,0,32879,e);break a}f=kc[J[663195]](20)|0;if(!f){b=0;d=0;c=0;d:{if(!a)break d;b=J[a>>2];d=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break d;c=(b^-1)+a>>>0<249?b:0}J[e+16>>2]=17054;Hc(0,d,b,c,0,23,2,3,17054,0,0,0,32879,e+16|0);break a}i=f, +j=ff(c),J[i+4>>2]=j;b=d;e:{if(!a)break e;b=d;if(!J[a+44>>2])break e;h=ff(J[d+8>>2]);b=0}J[f+8>>2]=b;J[f+12>>2]=h;i=f,j=i2(J[d+20>>2]),J[i+16>>2]=j;f:{g:{d=e2(g,c);if(d)break g;d=kc[J[663195]](12)|0;h:{if(!d){kc[J[663297]](J[693366],2090,0);d=0;break h}J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;a=kc[J[663195]](12)|0;J[d>>2]=a;if(!a){kc[J[663297]](J[693366],9890,0);kc[J[663199]](d);d=0;break h}J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;J[d+4>>2]=3343;J[d+8>>2]=3344}if(!d){J[e+32>>2]=38345;Hc(0,0,0,0,0,23,1,2,0,0,0,0, +4607,e+32|0);break f}if((WK(g,c,d)|0)>=0)break g;a2(d);a=fc-16|0;fc=a;J[a>>2]=38300;Hc(0,0,0,0,0,23,1,2,0,0,0,0,4607,a);fc=a+16|0;break f}if(d){a=J[d>>2];while(1){a=J[a+4>>2];if((a|0)!=J[d>>2])if((kc[J[d+8>>2]](J[a+8>>2],f)|0)>0)continue;break}b=kc[J[663195]](12)|0;i:{if(!b){kc[J[663297]](J[693366],10262,0);a=1;break i}J[b+8>>2]=f;c=J[a>>2];J[b>>2]=c;J[c+4>>2]=b;J[a>>2]=b;J[b+4>>2]=a;a=0}}else a=1;if(!a)break a;J[e+48>>2]=38300;Hc(0,0,0,0,0,23,1,2,0,0,0,0,4607,e+48|0)}a=J[f+4>>2];if(a)kc[J[663199]](a); +a=J[f+12>>2];if(a)kc[J[663199]](a);kc[J[663199]](f)}fc=e- -64|0}function qC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=J[a+20>>2];if(g)g=J[g+296>>2];else g=0;a:{b:switch(J[b+4>>2]-9|0){case 9:while(1){a=J[b>>2];g=J[b+8>>2];if(g)kc[J[663199]](g);g=J[b+12>>2];if(g)kc[J[663199]](g);kc[J[663199]](b);b=a;if(b)continue;break}break a;case 0:case 4:Rr(b);return;default:break b}while(1){d=b;b=J[d+24>>2];c=J[d+4>>2];c:{if((c|0)==14)break c;d:{if((c|0)==5)break d;c=J[d+12>>2];if(!c)break d;if(J[c+20>>2]==(d|0))qC(a, +c);J[d+12>>2]=0}e:{if(!J[693393])break e;c=J[693391];if(!c)break e;kc[c|0](d)}e=J[d+4>>2];f:{if(e>>>0>20|!(1<>2];if(!c)break f;while(1){f=J[c+24>>2];KK(a,c);c=f;if(c)continue;break}e=J[d+4>>2]}h=J[d+40>>2];g:{if((h|0)==(d+44|0)|(1<>>0<=20:0)|!h)break g;f=g;if(f)while(1){c=J[f+16>>2];if(c)while(1){if(h>>>0<=M[c+4>>2]&h>>>0>=c+20>>>0)break g;c=J[c>>2];if(c)continue;break}f=J[f+20>>2];if(f)continue;break}kc[J[663199]](h);e=J[d+4>>2]}h:{if(!(1<>> +0>20)break h;c=J[d+48>>2];if(!c)break h;while(1){f=J[c>>2];e=J[c+8>>2];if(e)kc[J[663199]](e);e=J[c+12>>2];if(e)kc[J[663199]](e);kc[J[663199]](c);c=f;if(c)continue;break}e=J[d+4>>2]}i:{j:switch(e-3|0){case 0:case 5:break i;default:break j}h=J[d+8>>2];if(!h)break i;f=g;if(f)while(1){c=J[f+16>>2];if(c)while(1){if(h>>>0<=M[c+4>>2]&h>>>0>=c+20>>>0)break i;c=J[c>>2];if(c)continue;break}f=J[f+20>>2];if(f)continue;break}kc[J[663199]](h);e=J[d+4>>2]}k:{l:switch(e-1|0){case 0:case 2:break l;default:break k}c= +J[a+20>>2];if(!c)break k;f=J[c+368>>2];if((f|0)>99)break k;J[d+24>>2]=J[c+372>>2];J[c+368>>2]=f+1;J[c+372>>2]=d;break c}kc[J[663199]](d)}if(b)continue;break}}}function vta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-48|0;fc=e;a:{b:{if(J[a+36>>2]){a=Qc(e+24|0,2393618,2386101,1569,2432538,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;c=Z()|0;Kc(a);break b}J[e+16>>2]=0;J[699344]=0;J[e+20>>2]=J[685894];d=e+16|0;ha(5279,b|0,d|0,0,0)|0;f=J[699344];J[699344]=0;c:{d:{e:{f:{if((f| +0)==1)break f;J[699344]=0;d=pd(d,2394061,-1);f=J[699344];J[699344]=0;if((f|0)==1)break f;if(d)break d;g:{while(1){if((c|0)<=0)break g;J[699344]=0;d=e+16|0;f=ha(5279,b|0,d|0,0,0)|0;g=J[699344];J[699344]=0;h:{if((g|0)==1)break h;if(!f)break g;J[699344]=0;d=pd(d,2398477,-1);f=J[699344];J[699344]=0;if((f|0)==1)break h;i:{if(d)break i;J[699344]=0;J[e+12>>2]=0;d=e+12|0;aa(5145,d|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break h;f=J[J[a>>2]+40>>2];J[699344]=0;aa(f|0,a|0,d|0)|0;d=J[699344];J[699344]=0; +if((d|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break i;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break i;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break i}ea(0)|0;Bc();B()}c=Z()|0;zc(e+12|0);break c}c=c-1|0;J[699344]=0;$(5332,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}c=Z()|0;break c}J[699344]=0;$(5332,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[J[a>>2]+48>>2];J[699344]=0;$(b|0,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e}c= +Z()|0;break c}wc(e+16|0);fc=e+48|0;return}J[699344]=0;a=ja(5178,e+24|0,2394308,2386101,1573,2432538,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;c=Z()|0;Kc(a);break c}c=Z()|0}wc(e+16|0)}ba(c|0)}B()}function rEa(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;a:{f=J[693726];if(!f){e=vc(32);J[e>>2]=0;J[e+4>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[699344]=0;f=aa(5250,e|0,2397856)|0;g= +J[699344];J[699344]=0;if((g|0)==1)break a;J[693726]=f}J[a>>2]=0;J[699344]=0;e=_(5244,b|0)|0;g=J[699344];J[699344]=0;b:{if((g|0)!=1)c:{if(e){J[699344]=0;g=_(5239,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[699344]=0;e=J[J[f+12>>2]+((g>>>0)%M[f+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break c;d:{if(!e)break d;while(1){e:{if((g|0)==J[e+12>>2]){J[699344]=0;h=aa(5236,e+16|0,b|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break c;if(h)break e}e=J[e+8>>2];if(e)continue;break d}break}e=J[e+60>> +2];if(!e)break d;f:{if((d|0)<0)while(1){if(J[J[e+8>>2]+80>>2]==(c|0))break f;e=J[e>>2];if(e)continue;break d}while(1){g=J[e+8>>2];if(J[g+80>>2]==(c|0)&J[g+84>>2]==(d|0))break f;e=J[e>>2];if(e)continue;break}break d}J[699344]=0;aa(5153,a|0,e+8|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c}J[699344]=0;$(5245,f|0);e=J[699344];J[699344]=0;if((e|0)==1)break c}break b}b=Z()|0;zc(a);ba(b|0);B()}g:{if(J[a>>2])break g;J[699344]=0;g=_(4,128)|0;e=J[699344];J[699344]=0;h:{i:{j:{if((e|0)==1)break j;J[699344]= +0;e=_(5258,g|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;aa(5145,a|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break j;J[699344]=0;$(5259,e|0);f=J[699344];J[699344]=0;if((f|0)==1)break j;J[699344]=0;ia(5266,e|0,b|0,c|0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g}f=Z()|0;break h}f=Z()|0;uc(g)}zc(a);ba(f|0);B()}return}a=Z()|0;uc(e);ba(a|0);B()}function $Ua(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;a=Ac(a,0,256);d=J[b>>2]+c|0;e=K[d+3|0];f=K[d|0]; +g=e+f|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+8>>2]=g-i<<4;J[a>>2]=(g+i<<4)+-8192;g=d-h|0;e=f-e|0;d=P(g+e|0,4433)+256|0;J[a+12>>2]=d+P(g,-15137)>>9;J[a+4>>2]=d+P(e,6270)>>9;d=J[b+4>>2]+c|0;f=K[d+3|0];g=K[d|0];e=f+g|0;h=K[d+2|0];d=K[d+1|0];i=h+d|0;J[a+40>>2]=e-i<<4;e=(e+i<<4)+-8192|0;J[a+32>>2]=e;h=d-h|0;f=g-f|0;d=P(h+f|0,4433)+256|0;J[a+44>>2]=d+P(h,-15137)>>9;J[a+36>>2]=d+P(f,6270)>>9;d=J[b+8>>2]+c|0;f=K[d+3|0];g=K[d|0];h=f+g|0;i=K[d+2|0];j=K[d+1|0];d=i+j|0;J[a+72>>2]=h-d<<4;d=(d+h<<4)+-8192|0;J[a+64>> +2]=d;h=j-i|0;g=g-f|0;f=P(h+g|0,4433)+256|0;J[a+76>>2]=f+P(h,-15137)>>9;f=f+P(g,6270)>>9;J[a+68>>2]=f;b=J[b+12>>2]+c|0;c=K[b+2|0];g=K[b+3|0];h=K[b|0];i=g+h|0;j=K[b+1|0];k=j+c|0;b=(i+k<<4)+-8192|0;l=J[a>>2];m=(b+l|0)+2|0;n=d+e|0;J[a+64>>2]=m-n>>2;J[a>>2]=m+n>>2;d=e-d|0;e=l-b|0;b=P(d+e|0,4433)+16384|0;J[a+96>>2]=b+P(d,-15137)>>15;J[a+32>>2]=b+P(e,6270)>>15;d=j-c|0;c=h-g|0;b=P(d+c|0,4433)+256|0;e=J[a+4>>2];c=b+P(c,6270)>>9;g=(e+c|0)+2|0;h=J[a+36>>2];j=h+f|0;J[a+68>>2]=g-j>>2;J[a+4>>2]=g+j>>2;f=h-f|0; +e=e-c|0;c=P(f+e|0,4433)+16384|0;J[a+100>>2]=c+P(f,-15137)>>15;J[a+36>>2]=c+P(e,6270)>>15;c=J[a+8>>2];e=i-k<<4;f=(c+e|0)+2|0;g=J[a+72>>2];h=J[a+40>>2];i=g+h|0;J[a+72>>2]=f-i>>2;J[a+8>>2]=f+i>>2;f=h-g|0;e=c-e|0;c=P(f+e|0,4433)+16384|0;J[a+104>>2]=c+P(f,-15137)>>15;J[a+40>>2]=c+P(e,6270)>>15;c=J[a+12>>2];b=b+P(d,-15137)>>9;d=(c+b|0)+2|0;e=J[a+76>>2];f=J[a+44>>2];g=e+f|0;J[a+76>>2]=d-g>>2;J[a+12>>2]=d+g>>2;d=f-e|0;c=c-b|0;b=P(d+c|0,4433)+16384|0;J[a+108>>2]=b+P(d,-15137)>>15;J[a+44>>2]=b+P(c,6270)>>15} +function vi(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[c+8>>2]==-1)return 0;f=c+8|0;k=b;a:{b:{c:{while(1){g=(e<<4)+c|0;h=J[g+4>>2];if(h>>>0>i>>>0){b=J[a+8>>2];while(1){d:{if(b){j=J[a+4>>2];b=b-1|0;break d}b=J[a>>2];j=kc[J[J[b>>2]+28>>2]](b)|0;J[a+4>>2]=j;J[a+12>>2]=J[a+12>>2]+1;h=J[g+4>>2];b=7}J[a+8>>2]=b;d=j>>>b&1|d<<1;i=i+1|0;if(h>>>0>i>>>0)continue;break}}if(J[g+12>>2]==(d|0)){d=(e<<4)+c|0;b=0;e:{f:{c=J[f>>2];switch(c+3|0){case 0:break f;case 1:break a;case 3:break c;default:break e}}e=J[a+ +4>>2];f=J[d>>2];c=J[a+8>>2];if(c>>>0>=32){b=a;a=c-32|0;J[b+8>>2]=a;a=f-(e>>>a|0)|0;break b}J[a+8>>2]=0;b=32-c|0;d=e&(-1<>>0<=24){c=24-c|0;if(!(c&8)){b=J[a>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[a+12>>2]=J[a+12>>2]+1;d=b&255|d<<8;b=c}if(c>>>0>=8)while(1){c=J[a>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+12>>2]=J[a+12>>2]+1;e=J[a>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;J[a+12>>2]=J[a+12>>2]+1;d=e&255|(c<<8&65280|d<<16);b=b-16|0;if(b>>>0>7)continue;break}if(!b)break g}c=J[a>>2];c=kc[J[J[c>>2]+28>>2]](c)|0; +J[a+4>>2]=c;e=8-b|0;J[a+8>>2]=e;J[a+12>>2]=J[a+12>>2]+1;d=(-1<>>e|d<>2];b=J[a+8>>2];if(b>>>0>=c>>>0){b=b-c|0;J[a+8>>2]=b;a=e+(J[a+4>>2]>>>b&((c|0)==32?-1:-1<>2]=0;d=J[a+4>>2]&(-1<>>0>=8)while(1){c=J[a>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+12>>2]=J[a+12>>2]+1;d=c&255|d<<8;b=b-8|0;if(b>>>0>7)continue;break}if(b){c=J[a>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+4>>2]=c;f=8-b|0;J[a+8>>2]=f;J[a+12>>2]=J[a+12>>2]+1;d=(-1<>>f| +d<>2]!=-1)continue;break}return 0}a=J[d>>2]}J[k>>2]=a;b=1}return b}function kA(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-80|0;fc=d;f=d+72|0;Pj(f,b,0);J[699344]=0;da(6232,d+36|0,f|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){b=J[d+36>>2];if(b)c=J[b+8>>2];wc(d+36|0);b=J[d+72>>2];f=J[(b?b+12|0:2743576)>>2];b=f+c|0;if(K[b+1|0]==47)break c;c=b+1|0;b=c;break b}b=Z()|0;break a}c=K[b+2|0]==47?b+3|0:b+2|0;b=c;while(1){d:{e:{f:{g:{e=K[c|0];switch(e- +35|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:break d;case 12:break e;case 0:case 28:break f;default:break g}}if(e)break d}b=K[b|0]==47?b:c;break b}e=K[c+1|0];if(!e)break d;b=(e|0)==35?b:(e|0)==63?b:c}c=c+1|0;continue}}J[699344]=0;f=ga(5339,d+12|0,f|0,b-f|0)|0;b=J[699344];J[699344]=0;h:{i:{j:{k:{l:{m:{n:{if((b|0)!=1){J[699344]=0;b=d+20|0;ca(5291, +b|0,f|0,28666);e=J[699344];J[699344]=0;if((e|0)==1)break n;J[699344]=0;e=d+28|0;ca(5291,e|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break m;J[699344]=0;c=aa(6252,d+36|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[c>>2]=2438660;J[699344]=0;aa(5151,a|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break k;J[c+24>>2]=2392964;J[c>>2]=2392932;a=J[c+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[c+28>>2]=0}J[c+16>>2]=2392964;a=J[c+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>> +2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[c+20>>2]=0}wc(c+8|0);wc(d+28|0);wc(d+20|0);wc(f);wc(d+72|0);fc=d+80|0;return}b=Z()|0;break a}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;break j}b=Z()|0;Ed(c)}wc(d+28|0)}wc(d+20|0)}wc(f)}wc(d+72|0);ba(b|0);B()}function $eb(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;i=J[a+444>>2];a:switch(b|0){case 0:b:{if(J[J[a+472>>2]+8>>2]){J[i+4>>2]=300;q=J[a+36>>2];if((q|0)>0){n=J[a+324>>2];r=n-2|0;s=n+2|0;o=J[a+216>>2];while(1){a=p<< +2;b=J[a+J[i+60>>2]>>2];j=J[a+J[i+56>>2]>>2];e=J[(a+i|0)+8>>2];h=(P(J[o+40>>2],J[o+12>>2])|0)/(n|0)|0;k=P(s,h);c:{if((k|0)<=0)break c;c=0;a=0;if(k>>>0>=4){m=k&-4;l=0;while(1){d=a<<2;f=J[d+e>>2];J[b+d>>2]=f;J[d+j>>2]=f;f=d|4;g=J[f+e>>2];J[b+f>>2]=g;J[f+j>>2]=g;f=d|8;g=J[f+e>>2];J[b+f>>2]=g;J[f+j>>2]=g;d=d|12;f=J[d+e>>2];J[b+d>>2]=f;J[d+j>>2]=f;a=a+4|0;l=l+4|0;if((m|0)!=(l|0))continue;break}}l=k&3;if(!l)break c;while(1){d=a<<2;k=J[d+e>>2];J[b+d>>2]=k;J[d+j>>2]=k;a=a+1|0;c=c+1|0;if((l|0)!=(c|0))continue; +break}}d:{if((h|0)<=0)break d;a=h<<1;c=(a|0)<=1?1:a;l=c&1;d=P(h,r);k=P(h,n);a=0;if((c|0)!=1){f=c&2147483646;c=0;while(1){g=a+d<<2;m=a+k<<2;J[g+b>>2]=J[m+e>>2];J[b+m>>2]=J[e+g>>2];g=a|1;m=g+d<<2;g=g+k<<2;J[m+b>>2]=J[g+e>>2];J[b+g>>2]=J[e+m>>2];a=a+2|0;c=c+2|0;if((f|0)!=(c|0))continue;break}}if(l){c=a+d<<2;a=a+k<<2;J[c+b>>2]=J[a+e>>2];J[a+b>>2]=J[e+c>>2]}e=J[j>>2];a=0;b=0;if(h>>>0>=4){d=h&-4;c=0;while(1){J[(b-h<<2)+j>>2]=e;J[((b|1)-h<<2)+j>>2]=e;J[((b|2)-h<<2)+j>>2]=e;J[((b|3)-h<<2)+j>>2]=e;b=b+4|0; +c=c+4|0;if((d|0)!=(c|0))continue;break}}c=h&3;if(!c)break d;while(1){J[(b-h<<2)+j>>2]=e;b=b+1|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}o=o+88|0;p=p+1|0;if((q|0)!=(p|0))continue;break}}J[i+76>>2]=0;J[i+64>>2]=0;J[i+68>>2]=0;break b}J[i+4>>2]=301}J[i+48>>2]=0;J[i+52>>2]=0;return;case 2:J[i+4>>2]=302;return;default:break a}b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}function gZ(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:{b:{c:{d:{if(b){if(!a)break d;if(!d)break c;e=fB();J[b+72>> +2]=e;e:{if(!e)break e;f:{if(Xp(J[b+184>>2],4815,d))if(Xp(J[b+184>>2],4816,d))break f;break b}h=J[b+184>>2];if(!h)break a;g=J[h+8>>2];j=J[h>>2];g:{if(j){e=1;if((j|0)!=1){k=j&-2;while(1){i=0;h:{if(!e)break h;i=0;if(!(kc[J[g>>2]](b,a,d)|0))break h;i=(kc[J[g+4>>2]](b,a,d)|0)!=0}e=i;g=g+8|0;f=f+2|0;if((k|0)!=(f|0))continue;break}}i:{j:{if(j&1){if(!e)break j;e=(kc[J[g>>2]](b,a,d)|0)!=0}J[h>>2]=0;if(!e)break i;break g}J[h>>2]=0}break b}J[h>>2]=0}k:{if(Xp(J[b+180>>2],4817,d))if(Xp(J[b+180>>2],4818,d))break k; +break b}h=J[b+180>>2];if(!h)break a;g=J[h+8>>2];f=J[h>>2];l:{if(f){e=1;j=f&1;if((f|0)==1)f=0;else{k=f&-2;f=0;while(1){i=0;m:{if(!e)break m;i=0;if(!(kc[J[g>>2]](b,a,d)|0))break m;i=(kc[J[g+4>>2]](b,a,d)|0)!=0}e=i;g=g+8|0;f=f+2|0;if((k|0)!=(f|0))continue;break}f=!e}n:{o:{if(j){if(f)break o;e=(kc[J[g>>2]](b,a,d)|0)!=0}J[h>>2]=0;if(!e)break n;break l}J[h>>2]=0}break b}J[h>>2]=0}a=fB();J[c>>2]=a;if(!a)break e;yI(J[b+72>>2],a);a=P(J[b+108>>2],J[b+104>>2]);J[J[b+188>>2]+36>>2]=a;d=Ge(a,40);a=J[b+188>>2]; +J[a+40>>2]=d;p:{if(!d)break p;if(!J[a+36>>2])return 1;g=0;while(1){e=P(g,40);a=e+d|0;J[a+20>>2]=0;J[a+28>>2]=100;a=Ge(100,24);f=J[b+188>>2];d=J[f+40>>2];J[(e+d|0)+24>>2]=a;if(!a)break p;l=1;g=g+1|0;if(g>>>0>2])continue;break}break e}Jn(J[c>>2]);l=0;J[c>>2]=0}return l|0}fa(2358373,2358254,8261,2358426);B()}fa(2358446,2358254,8262,2358426);B()}fa(2358486,2358254,8263,2358426);B()}Jn(J[b+72>>2]);J[b+72>>2]=0;return 0}fa(2364625,2358254,8861,2364648);B()}function FEa(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;f=fc-32|0;fc=f;if(lk(b)){J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;g=f+16|0;J[g>>2]=2397928;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[699344]=0;e=_(5239,b|0)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)==1)break b;J[699344]=0;d=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break b;c:{if(d)while(1){if((e|0)==J[d+12>>2]){J[699344]=0;h=aa(5236,d+16|0,b|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(h)break c}d=J[d+8>>2];if(d)continue; +break}J[f+12>>2]=a;J[f+8>>2]=0;J[699344]=0;d=aa(5241,a|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;aa(5242,d+52|0,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;e=_(5239,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;d=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break b;if(d)while(1){if((e|0)==J[d+12>>2]){J[699344]=0;h=aa(5236,d+16|0,b|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(h)break c}d=J[d+8>>2];if(d)continue; +break}J[f+12>>2]=a;J[f+8>>2]=0;J[699344]=0;da(5243,f+8|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;B()}J[f+12>>2]=a;J[f+8>>2]=d;b=J[d+60>>2];if(b){e=J[c>>2];while(1){if((e|0)==J[b+8>>2])break a;b=J[b>>2];if(b)continue;break}}J[699344]=0;b=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[b>>2]=0;J[b+4>>2]=0;e=J[c>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break b;c=J[c>>2]}else c=0;J[b+8>>2]=c;J[699344]=0;vf(d+52|0,b);b=J[699344];J[699344]=0;if((b| +0)!=1)break a}a=Z()|0;id(g);ba(a|0);B()}id(g)}QA(a);fc=f+32|0}function F9(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=fc-32|0;fc=c;h=!a;a:{if(h|((h?-1:J[a+8>>2])|0)!=2)break a;f=a?J[a+36>>2]:0;if(!(!f|b)){d=el(a,1);break a}Df(a,c+28|0,c+24|0,0);e=xh(J[c+28>>2],J[c+24>>2],8);if(!e)break a;if(!(!e|!a|(a|0)==(e|0))){J[e+20>>2]=J[a+20>>2];J[e+24>>2]=J[a+24>>2]}m=a?J[a+40>>2]:0;n=a?J[a+12>>2]:-1;o=e?J[e+40>>2]:0;h=e?J[e+12>>2]:-1;b:{if((b|0)==1){d=r9();c:{if(f){b=f?J[f+12>>2]:0; +if((b|0)<=0)break c;a=0;while(1){Lq(f,a,c+20|0,c+16|0,c+12|0);Ih(d,J[c+20>>2],J[c+16>>2],J[c+12>>2]);a=a+1|0;if((b|0)!=(a|0))continue;break}break c}Ih(d,0,0,0);Ih(d,85,85,85);Ih(d,170,170,170);Ih(d,255,255,255)}gO(e,d);a=J[c+24>>2];if((a|0)<=0)break b;b=J[c+28>>2];if((b|0)<=0)break b;d=0;while(1){if((b|0)>0){j=(P(d,h)<<2)+o|0;f=(P(d,n)<<2)+m|0;a=0;while(1){H[a+j^3]=J[f+(a>>>2&1073741820)>>2]>>>((a^-1)<<1)&3;a=a+1|0;b=J[c+28>>2];if((a|0)<(b|0))continue;break}a=J[c+24>>2]}d=d+1|0;if((d|0)<(a|0))continue; +break}break b}g=kd(256,4);if(!g)break a;H[c+23|0]=255;H[c+22|0]=170;H[c+21|0]=85;H[c+20|0]=0;a=0;while(1){b=c+20|0;J[g+(a<<2)>>2]=K[b+(a&3)|0]|(K[b+(a>>>4&3)|0]<<16|K[b+(a>>>6|0)|0]<<24|K[b+(a>>>2&3)|0]<<8);a=a+1|0;if((a|0)!=256)continue;break}d:{if(J[c+24>>2]<=0)break d;b=J[c+28>>2];if((b|0)<=0)break d;a=(b+3|0)/4|0;a=(a|0)<=1?1:a;p=a&2147483646;j=a&1;f=(b|0)<5;while(1){k=(P(h,i)<<2)+o|0;l=(P(i,n)<<2)+m|0;a=0;d=0;if(!f)while(1){J[k+(a<<2)>>2]=J[g+(K[a+l^3]<<2)>>2];b=a|1;J[k+(b<<2)>>2]=J[g+(K[b+l^ +3]<<2)>>2];a=a+2|0;d=d+2|0;if((p|0)!=(d|0))continue;break}if(j)J[k+(a<<2)>>2]=J[g+(K[a+l^3]<<2)>>2];i=i+1|0;if((i|0)>2])continue;break}}uc(g)}d=e}fc=c+32|0;return d}function px(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=fc-16|0;fc=j;a:{if(!a|!b)break a;f=J[a+76>>2];b:{i=J[b>>2];if(!i){g=-1;break b}if(f){g=J[a+80>>2];c=1;d=f;while(1){c:{k=(d-c>>>1|0)+c|0;l=k-1|0;h=J[P(l,20)+g>>2];e=i>>>0>h>>>0;if((h|0)==(i|0))break c;d=h>>>0>i>>>0?l:d;c=e?k+1|0:c;if(d>>>0>=c>>>0)continue}break}g=k? +e?k:l:0}else g=0;if(g>>>0>=f>>>0)break b;d=J[a+80>>2];if(!d)break b;d=d+P(g,20)|0;if((i|0)!=J[d>>2])break b;a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;J[d+16>>2]=J[b+16>>2];a=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=a;break a}d=J[a+72>>2];d:{if(d>>>0>=f+1>>>0){c=J[a+80>>2];if(c)break d}if(!d){J[a+72>>2]=2;d=2}c=P(d,40);d=J[a+80>>2];e:{if(!d){c=kc[J[663195]](c)|0;break e}c=kc[J[663200]](d,c)|0}if(!c){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;J[j>>2]=33122;Hc(0, +0,0,a,0,1,2,3,33122,0,0,0,32879,j);break a}J[a+80>>2]=c;J[a+72>>2]=J[a+72>>2]<<1;f=J[a+76>>2]}if(f>>>0>g>>>0){d=f;if(d-g&1){c=J[a+80>>2]+P(d,20)|0;e=c-20|0;d=J[e+4>>2];J[c>>2]=J[e>>2];J[c+4>>2]=d;J[c+16>>2]=J[e+16>>2];d=J[e+12>>2];J[c+8>>2]=J[e+8>>2];J[c+12>>2]=d;d=f-1|0}if((g+1|0)!=(f|0))while(1){f=P(d,20);e=f+J[a+80>>2]|0;h=e-20|0;c=J[h+4>>2];J[e>>2]=J[h>>2];J[e+4>>2]=c;J[e+16>>2]=J[h+16>>2];c=J[h+12>>2];J[e+8>>2]=J[h+8>>2];J[e+12>>2]=c;f=f+J[a+80>>2]|0;c=f-20|0;e=f-40|0;f=J[e+4>>2];J[c>>2]=J[e>> +2];J[c+4>>2]=f;f=J[e+12>>2];J[c+8>>2]=J[e+8>>2];J[c+12>>2]=f;J[c+16>>2]=J[e+16>>2];d=d-2|0;if(g>>>0>>0)continue;break}c=J[a+80>>2]}d=J[b+4>>2];c=P(g,20)+c|0;J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+16>>2]=J[b+16>>2];d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;J[a+76>>2]=J[a+76>>2]+1}fc=j+16|0}function BZa(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=J[a+224>>2];if(c){kc[J[J[c>>2]+12>>2]](c)|0;J[a+224>>2]=0}f=J[a+204>>2];e=(J[a+220>>2]+J[a+216>>2]|0)-1|0;c=e>>>8|0;e=e&255;g=J[(J[f+(c<< +2)>>2]+(e<<4)|0)+4>>2];J[a+224>>2]=g;a:{if(J[a+108>>2]!=16)break a;d=J[a+104>>2];if(!d)break a;d=pm(d,340388,340400);if(!d)break a;kc[J[J[d>>2]+600>>2]](d,g);c=(J[a+220>>2]+J[a+216>>2]|0)-1|0;e=c&255;c=c>>>8|0;f=J[a+204>>2]}d=a+200|0;c=J[(c<<2)+f>>2];e=e<<4;b:{c:{if(!J[(c+e|0)+8>>2]){c=J[(c+e|0)+12>>2];S0(d);kc[J[J[a>>2]+72>>2]](a,b);if(c)break c;break b}S0(d);kc[J[J[a>>2]+72>>2]](a,b)}e=0;f=fc-16|0;fc=f;if(!(K[a+229|0]|K[a+228|0])){c=J[a+104>>2];J[f+12>>2]=64;d=f+12|0;kc[J[J[c>>2]+308>>2]](c,d)| +0;c=J[a+104>>2];J[f+12>>2]=64;kc[J[J[c>>2]+312>>2]](c,d)|0;if(J[a+220>>2]){j=b+16|0;while(1){d=J[a+204>>2];c=J[a+216>>2]+e|0;g=c>>>8|0;h=c&255;i=J[(J[d+(g<<2)>>2]+(h<<4)|0)+8>>2];d:{if(!i)break d;c=0;i=J[i+16>>2]-J[i+12>>2]>>2;if((i|0)<=0)break d;while(1){if(!(K[a+229|0]|K[a+228|0])){d=J[a+216>>2]+e|0;d=J[(J[J[a+204>>2]+(d>>>6&67108860)>>2]+((d&255)<<4)|0)+8>>2];k=J[J[d+12>>2]+(c<<2)>>2];l=J[J[d+24>>2]+(c>>>3&536870908)>>2];g=J[a+104>>2];J[f+12>>2]=32;h=f+12|0;kc[J[J[g>>2]+308>>2]](g,h)|0;g=J[a+104>> +2];J[f+12>>2]=l>>>c&1;kc[J[J[g>>2]+412>>2]](g,h)|0;rk(a,k,O[b+104>>3],j,J[d>>2]+P(c,48)|0);d=J[a+104>>2];J[f+12>>2]=32;kc[J[J[d>>2]+312>>2]](d,h)|0;d=J[a+104>>2];kc[J[J[d>>2]+344>>2]](d)|0}c=c+1|0;if((i|0)!=(c|0))continue;break}c=J[a+216>>2]+e|0;h=c&255;g=c>>>8|0;d=J[a+204>>2]}c=J[(g<<2)+d>>2]+(h<<4)|0;if(J[c+12>>2])R0(a,c);e=e+1|0;if(e>>>0>2])continue;break}}kc[J[J[a>>2]+156>>2]](a,b)}fc=f+16|0}}function Dua(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;H[c+15|0]=b;b=J[a>>2];b=J[(b?b+ +12|0:2743576)>>2];J[699344]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2426580;ma(5634,c+4|0,c+16|0,c+15|0,0,1);d=J[699344];J[699344]=0;a:{b:{c:{d:{if((d|0)!=1){J[c+16>>2]=2426484;d=J[c+28>>2];if(d){H[d|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);J[699344]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2426580;ia(5656,c+8|0,d|0,b|0,c+4|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[c+16>>2]=2426484;b=J[c+28>>2];if(b){H[b|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);b=J[c+8>> +2];e:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break e;a=Z()|0;break c}J[c+16>>2]=0}J[699344]=0;aa(5153,a|0,c+16|0)|0;b=J[699344];J[699344]=0;f:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break f;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f}break a}a=Z()|0;zc(c+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+8>>2];J[c+ +8>>2]=0;g:{if(!b)break g;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[c+4>>2];J[c+4>>2]=0;h:{if(!b)break h;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+32|0;return a|0}a=Z()|0;rh(c+16|0);ba(a|0);B()}a=Z()|0;rh(c+16|0);break b}zc(c+8|0)}zc(c+4|0);ba(a|0); +B()}ea(0)|0;Bc();B()}function gka(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;a:{b:{if(!J[a+64>>2]){g=-1;break b}g=J[a+92>>2]&8;if(!g){J[a+28>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;c:{if(K[a+98|0]){b=J[a+32>>2];c=b+J[a+52>>2]|0;J[a+16>>2]=c;break c}b=J[a+56>>2];c=b+J[a+60>>2]|0;J[a+16>>2]=c}J[a+12>>2]=c;J[a+8>>2]=b;J[a+92>>2]=8}if(!J[a+12>>2]){b=e+16|0;J[a+16>>2]=b;J[a+12>>2]=b;J[a+8>>2]=e+15}if(g){b=J[a+16>>2];c=J[a+8>>2];J[e+4>>2]=4;J[e+8>>2]=(b-c|0)/2;b=fc-16|0;fc=b;fc=b+16|0;b=e+4|0;c=e+ +8|0;f=J[(M[b>>2]>2]?b:c)>>2]}g=-1;b=J[a+16>>2];d:{if((b|0)==J[a+12>>2]){cd(J[a+8>>2],b-f|0,f);if(K[a+98|0]){b=J[a+8>>2]+f|0;b=ge(b,1,J[a+16>>2]-b|0,J[a+64>>2]);if(!b)break d;c=J[a+8>>2];g=J[a+8>>2]+f|0;J[a+16>>2]=b+(J[a+8>>2]+f|0);J[a+12>>2]=g;J[a+8>>2]=c;g=K[J[a+12>>2]];break d}b=J[a+40>>2];c=J[a+36>>2];e:{if((b|0)==(c|0)){d=b;break e}cd(J[a+32>>2],c,b-c|0);b=J[a+36>>2];d=J[a+40>>2]}d=d-b|0;b=J[a+32>>2];c=d+b|0;J[a+36>>2]=c;b=b+((b|0)==(a+44|0)?8:J[a+52>>2])|0;J[a+40>>2]=b;J[e+8>>2]=J[a+60>> +2]-f;J[e+4>>2]=b-c;b=fc-16|0;fc=b;fc=b+16|0;c=e+4|0;b=e+8|0;c=J[(M[c>>2]>2]?c:b)>>2];d=J[a+76>>2];J[a+80>>2]=J[a+72>>2];J[a+84>>2]=d;d=ge(J[a+36>>2],1,c,J[a+64>>2]);if(!d)break d;c=J[a+68>>2];if(!c)break a;d=d+J[a+36>>2]|0;J[a+40>>2]=d;h=d;d=J[a+8>>2];f:{if((kc[J[J[c>>2]+16>>2]](c,a+72|0,J[a+32>>2],h,a+36|0,d+f|0,d+J[a+60>>2]|0,b)|0)==3){b=J[a+32>>2];J[a+16>>2]=J[a+40>>2];J[a+12>>2]=b;J[a+8>>2]=b;break f}b=J[e+8>>2];c=J[a+8>>2];f=c+f|0;if((b|0)==(f|0))break d;J[a+16>>2]=b;J[a+12>>2]=f;J[a+8>> +2]=c}g=K[J[a+12>>2]];break d}g=K[J[a+12>>2]]}if(J[a+8>>2]!=(e+15|0))break b;J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0}fc=e+16|0;return g|0}yv();B()}function Uq(a,b){a=a|0;b=b|0;var c=0;c=K[b+12|0]|K[b+13|0]<<8;a=K[a+494|0];c=a?c:c<<8|c>>>8;H[b+12|0]=c;H[b+13|0]=c>>>8;c=K[b+14|0]|K[b+15|0]<<8;c=a?c:c<<8|c>>>8;H[b+14|0]=c;H[b+15|0]=c>>>8;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=K[b+4|0]|K[b+5| +0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+4|0]=c;H[b+5|0]=c>>>8;H[b+6|0]=c>>>16;H[b+7|0]=c>>>24;c=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]=c>>>16;H[b+11|0]=c>>>24;c=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+16|0]=c;H[b+17|0]=c>>>8;H[b+18|0]=c>>>16;H[b+19|0]=c>>>24;c=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+ +23|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+20|0]=c;H[b+21|0]=c>>>8;H[b+22|0]=c>>>16;H[b+23|0]=c>>>24;c=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+24|0]=c;H[b+25|0]=c>>>8;H[b+26|0]=c>>>16;H[b+27|0]=c>>>24;c=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);c=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+28|0]=c;H[b+29|0]=c>>>8;H[b+30|0]=c>>>16;H[b+31|0]=c>>>24;c=K[b+32|0]|K[b+33|0]<<8|(K[b+34|0]<<16|K[b+35|0]<<24);c= +a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+32|0]=c;H[b+33|0]=c>>>8;H[b+34|0]=c>>>16;H[b+35|0]=c>>>24;c=K[b+36|0]|K[b+37|0]<<8|(K[b+38|0]<<16|K[b+39|0]<<24);a=a?c:c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+36|0]=a;H[b+37|0]=a>>>8;H[b+38|0]=a>>>16;H[b+39|0]=a>>>24}function TE(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;g=fc-16|0;fc=g;a:{b:{c:{d:{if(K[a+370|0]){J[e>>2]=0;if(!J[a+376>>2]){J[a+372>>2]=32768;f=kc[J[a+152>>2]](32768)|0;J[a+376>>2]=f;if(!f){f=1;break b}J[a+380>>2]=f;J[a+384>>2]=0}if(M[a+ +372>>2]>>0)break d;if(K[a+368|0])break c;while(1){if(K[a+346|0])break c;e:{f=J[a+384>>2];if(f>>>0>>0){c=J[a+376>>2];h=J[a+372>>2];i=J[a+380>>2];f:{if(c+(h-(i+f|0)|0)>>>0>1023){c=i;break f}if(f){xc(c,i,f);h=J[a+372>>2];c=J[a+376>>2];f=J[a+384>>2]}else f=0;J[a+380>>2]=c}if(h-f>>>0<1024){f=999;break b}f=HO(a,c+f|0,1024,g+12|0);if(f)break a;f=J[g+12>>2];c=f+J[a+384>>2]|0;J[a+384>>2]=c;if(!(f|!K[a+369|0])){g:{if(K[a+346|0])break g;H[a+346|0]=1;f=J[a+168>>2];if(!f)break g;if(!(kc[f|0](a)|0)){f=901; +break b}c=J[a+384>>2]}if(c){xc(b,J[a+380>>2],c);c=J[a+384>>2]}else c=0;J[e>>2]=c;J[a+384>>2]=0;J[a+380>>2]=J[a+376>>2];break e}if(f>>>0>1023|c>>>0>=d>>>0)break e;H[a+368|0]=1;break c}xc(b,J[a+380>>2],d);J[e>>2]=d;J[a+380>>2]=J[a+380>>2]+d;J[a+384>>2]=J[a+384>>2]-d;break c}H[a+369|0]=0;if(!K[a+368|0])continue;break}break c}f=HO(a,b,d,e);if(f)break a;if(J[e>>2])break c;H[a+368|0]=1;break c}f=J[c>>2];h:{if(f)break h;f=J[a+384>>2];if(f){j=c,k=xc(b,J[a+380>>2],f)+J[a+384>>2]|0,J[j>>2]=k;J[a+384>>2]=0; +J[a+380>>2]=J[a+376>>2];f=J[c>>2];break h}J[c>>2]=b;f=b}i=f-b|0;h=d-i|0;f=HO(a,f,h,g+12|0);if(f)break a;b=J[g+12>>2];if(!(b|!K[a+369|0])){i:{if(K[a+346|0])break i;H[a+346|0]=1;b=J[a+168>>2];if(!b)break i;if(kc[b|0](a)|0)break i;f=901;break b}J[e>>2]=i;break c}if(b>>>0>>0){J[c>>2]=b+J[c>>2];H[a+368|0]=1;break c}J[e>>2]=d}f=0;H[a+369|0]=0;break a}Jc(a,f,0,0)}fc=g+16|0;return f}function T5a(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=fc-16|0;fc=h;a:{if(b){i= +J[a+8>>2];if(i){kc[J[J[i>>2]+12>>2]](i)|0;J[a+8>>2]=0}i=L5(h+12|0);J[J[i>>2]>>2]=J[b+40>>2];j=J[J[b>>2]+28>>2];J[699344]=0;b=na(j|0,b|0,i|0,c|0,d|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+8>>2]=b;b:{if(!b)break b;J[b+284>>2]=a;k=O[g>>3];l=O[f>>3];m=O[e>>3];J[699344]=0;ib(2847,b|0,+m,+l,+k);b=J[699344];J[699344]=0;if((b|0)==1)break a;d=a+112|0;c:{if(H[a+123|0]<0){J[a+116>>2]=0;b=J[a+112>>2];break c}H[a+123|0]=0;b=d}J[b>>2]=0;n=1;b=J[J[a+8>>2]+188>>2];if(!b)break b;c=J[b+20>>2];d:{if(c){e= +0;e:{g=K[c|0];if(!g)break e;b=c;while(1){f=e;e=e+1|0;j=K[b+1|0];b=b+1|0;if(j)continue;break}if((g|0)!=60|f>>>0<6|(K[c+1|0]!=117|K[c+2|0]!=116))break e;if(K[c+3|0]!=102|K[c+4|0]!=56|K[c+5|0]!=62)break e;J[699344]=0;ca(1618,h|0,c+6|0,f-5|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break a}J[699344]=0;ia(2848,h|0,c|0,e|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break a;break d}J[h>>2]=0;H[h+11|0]=0}b=J[a+8>>2];if(H[b+303|0]<0)uc(J[b+292>>2]);c=J[h+4>>2];J[b+292>>2]=J[h>>2];J[b+296>>2]=c;J[b+300>>2]= +J[h+8>>2];b=J[a+8>>2];c=b+292|0;if((c|0)==(d|0))break b;f=K[b+303|0];e=f<<24>>24;if(H[a+123|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=a;J[d+8>>2]=J[c+8>>2];break b}a=J[b+296>>2];b=J[b+292>>2];J[699344]=0;ga(1631,d|0,b|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}a=J[b+296>>2];b=J[b+292>>2];J[699344]=0;g=b;b=(e|0)<0;ga(1630,d|0,(b?g:c)|0,(b?a:f)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a}Jd(i)}fc=h+16|0;return n|0}a=Z()|0;Jd(i);ba(a|0);B()}function re(a,b,c){var d= +0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[a+28>>2];a:{e=J[a>>2];b:{if(!e)if(!J[J[(J[a+24>>2]+(d<<2)|0)-4>>2]+20>>2]|(d|0)<=0)break b;f=d;d=J[a+32>>2];if((f|0)>=(d|0)){d=d<<1;J[a+32>>2]=d;i=a,j=Wd(J[a+24>>2],d,4),J[i+24>>2]=j;e=J[a>>2]}d=vc(24);c:{if(e){g=O[a+16>>3];h=O[a+8>>3];J[d+16>>2]=16;J[699344]=0;e=aa(3551,16,8)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[d>>2]=e;e=J[d+16>>2];J[699344]=0;e=aa(3551,e|0,8)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[d+4>>2]=e;e=J[d+16>>2];J[699344]=0;e=aa(3551,e| +0,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[d+12>>2]=1;J[d+8>>2]=e;O[J[d>>2]>>3]=h;O[J[d+4>>2]>>3]=g;J[e>>2]=0;J[d+20>>2]=0;e=J[a+28>>2];f=J[a+24>>2]+(e<<2)|0;break c}e=J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2];f=J[e+12>>2]<<3;g=O[(f+J[e+4>>2]|0)-8>>3];h=O[(f+J[e>>2]|0)-8>>3];J[d+16>>2]=16;J[699344]=0;e=aa(3551,16,8)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[d>>2]=e;e=J[d+16>>2];J[699344]=0;e=aa(3551,e|0,8)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[d+4>>2]=e;e=J[d+16>>2];J[699344]= +0;e=aa(3551,e|0,4)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[d+12>>2]=1;J[d+8>>2]=e;O[J[d>>2]>>3]=h;O[J[d+4>>2]>>3]=g;J[e>>2]=0;J[d+20>>2]=0;e=J[a+28>>2];f=J[a+24>>2]+(e<<2)|0}J[f>>2]=d;J[a>>2]=0;d=e+1|0;J[a+28>>2]=d}a=J[(J[a+24>>2]+(d<<2)|0)-4>>2];d=J[a+12>>2];e=J[a+16>>2];d:{if((d|0)<(e|0)){e=J[a+8>>2];break d}d=e<<1;J[a+16>>2]=d;i=a,j=Wd(J[a>>2],d,8),J[i>>2]=j;i=a,j=Wd(J[a+4>>2],J[a+16>>2],8),J[i+4>>2]=j;e=Wd(J[a+8>>2],J[a+16>>2],4);J[a+8>>2]=e;d=J[a+12>>2]}f=d<<3;O[f+J[a>>2]>>3]=b;O[f+J[a+ +4>>2]>>3]=c;J[(d<<2)+e>>2]=0;J[a+12>>2]=J[a+12>>2]+1;return}a=Z()|0;uc(d);ba(a|0);B()}function ZJa(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;d=fc-80|0;fc=d;J[d+76>>2]=1;a:{b:{e=J[a+104>>2];if((e|0)!=1|J[a+108>>2]!=1|(J[a+84>>2]|J[a+88>>2]))break b;g=J[a+76>>2];if(J[g>>2]|J[g+4>>2]|(J[g+8>>2]!=J[a+92>>2]|J[g+12>>2]!=J[a+96>>2]))break b;e=0;if(!Lt(a,d+72|0,0,d+68|0,d- -64|0,d+60|0,d+56|0,d+52|0,d+76|0,b,c))break a;c:{if(qw(a,J[d+72>>2],0,0,b,c)){b=J[a+76>>2];if(J[b+16>>2])break c;e=1;break a}Nc(c, +1,2370784,0);break a}b=J[b+24>>2];c=0;while(1){e=P(c,52);uc(J[(e+b|0)+44>>2]);g=J[a+76>>2];b=J[g+24>>2];f=e+b|0;h=J[a+196>>2];i=J[J[J[h+20>>2]>>2]+20>>2]+P(c,76)|0;J[f+44>>2]=J[i+36>>2];J[f+36>>2]=J[(e+J[J[h+24>>2]+24>>2]|0)+36>>2];J[i+36>>2]=0;e=1;c=c+1|0;if(c>>>0>2])continue;break}break a}while(1){d:{e:{if(!(!J[J[a+156>>2]+5596>>2]|((e|0)!=1|J[a+108>>2]!=1))){J[d+72>>2]=0;J[a+192>>2]=0;J[a+8>>2]=J[a+8>>2]|128;e=0;break e}e=0;if(!Lt(a,d+72|0,0,d+68|0,d- -64|0,d+60|0,d+56|0,d+52|0,d+76|0, +b,c))break a;if(!J[d+76>>2])break d;e=J[d+72>>2]}g=e+1|0;h=qw(a,e,0,0,b,c);f=P(J[a+104>>2],J[a+108>>2]);if(!h){J[d+4>>2]=f;J[d>>2]=g;Nc(c,1,2370811,d);e=0;break a}J[d+36>>2]=f;J[d+32>>2]=g;Nc(c,4,2370840,d+32|0);if(!QY(J[a+196>>2],J[J[a+76>>2]+24>>2])){e=0;break a}f:{if(!(J[a+104>>2]!=1|J[a+108>>2]!=1)){f=J[a+76>>2];h=J[a+72>>2];if(J[f>>2]!=J[h>>2]|J[f+4>>2]!=J[h+4>>2]|(J[f+8>>2]!=J[h+8>>2]|J[f+12>>2]!=J[h+12>>2]))break f}e=J[a+156>>2]+P(e,5644)|0;f=J[e+5596>>2];if(!f)break f;uc(f);J[e+5596>>2]=0; +J[e+5600>>2]=0}J[d+16>>2]=g;Nc(c,4,2370870,d+16|0);if(!(vl(b)|jc)&J[a+8>>2]==64)break d;i=i+1|0;e=J[a+104>>2];if((i|0)!=(P(e,J[a+108>>2])|0))continue}break}e=PY(a,c)}fc=d+80|0;return e|0}function tba(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=fc-16|0;fc=g;b=Ny(b?b:202528);a:{if(!b)break a;d=16384;f=-1;if(!wp(b))while(1){b:{c:{d:{e:{c=Es(2647888,J[b+4>>2]);switch(J[(c?c:2646048)>>2]){case 2:break b;case 1:break d;case 0:break e;default:break c}}d=fg(J[b+8>>2]);break b}f=fg(J[b+8>>2]);break b}J[g>> +2]=J[b+4>>2];rd(203046,g)}if(!wp(b))continue;break}ov(b);rba();c=Dc(108);if(!c)break a;J[c>>2]=0;J[c+4>>2]=0;J[c+76>>2]=0;J[c+80>>2]=0;J[c+72>>2]=f;J[c+68>>2]=d;J[c+64>>2]=0;J[c+60>>2]=a;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+84>>2]=0;J[c+88>>2]=0;J[c+92>>2]=0;J[c+96>>2]=0;J[c+100>>2]=0;f=Gba();f:{if(!f)break f;J[c+84>>2]=1;J[c+104>>2]=f;while(1){d=kP(J[c+60>>2],f); +if(!d){e=0;rd(203579,0);break f}b=J[d>>2];e=2647648;while(1){a=e;h=J[a>>2];if(h){e=a+12|0;if((b|0)!=(h|0))continue}break}if(!(J[a+4>>2]&J[c+84>>2])){e=0;rd(204481,0);Si(d);break f}a=J[a+8>>2];g:{if(!a){Si(d);b=0;break g}b=kc[a|0](c,d)|0;Si(d);e=0;if((b|0)<0)break f}if(!b)continue;break}e=J[c>>2];b=J[e+16>>2];a=J[e+24>>2];J[J[a>>2]+40>>2]=0;if((b|0)>=3){J[J[a+4>>2]+40>>2]=1;J[J[a+8>>2]+40>>2]=2;a=1025}else a=769;J[e+28>>2]=a;J[c>>2]=0}a=J[c+104>>2];if(a)uc(a);d=J[c+96>>2];if(d){a=J[d+8>>2];if(a){if(J[d>> +2]>0){b=0;while(1){Pf(J[J[d+8>>2]+(b<<2)>>2]);b=b+1|0;if((b|0)>2])continue;break}a=J[d+8>>2]}uc(a)}uc(d)}a=J[c>>2];if(a)Mh(a);a=J[c+64>>2];if(a){b=J[a+24>>2];if(b)uc(b);b=J[a+4>>2];if(b)bP(b);uc(a)}a=J[c+88>>2];if(a)uc(a);a=J[c+48>>2];if(a)uc(a);uc(c)}fc=g+16|0;return e|0}function mXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;zd(b,J[a+4>>2]-J[a>>2]>>2);c=J[a>>2];if((c|0)!=J[a+4>>2])while(1){zd(b,J[(f<<2)+c>>2]);f=f+1|0;c=J[a>>2];if(f>>>0>2]-c>>2>>>0)continue;break}zd(b,J[a+16>>2]-J[a+ +12>>2]>>2);c=J[a+12>>2];if((c|0)!=J[a+16>>2]){f=0;while(1){d=J[(f<<2)+c>>2];zd(b,J[d+4>>2]);zd(b,J[d>>2]);c=J[d>>2];if(c&1){c=K[d+59|0];e=c<<24>>24<0;lf(b,e?J[d+48>>2]:d+48|0,e?J[d+52>>2]:c);c=J[d>>2]}if(c&2){c=K[d+71|0];e=c<<24>>24<0;lf(b,e?J[d+60>>2]:d+60|0,e?J[d- -64>>2]:c);c=J[d>>2]}if(c&4){c=K[d+83|0];e=c<<24>>24<0;lf(b,e?J[d+72>>2]:d+72|0,e?J[d+76>>2]:c);c=J[d>>2]}a:{if(!(c&8))break a;zd(b,J[d+16>>2]-J[d+12>>2]>>2);e=J[d+12>>2];if((e|0)==J[d+16>>2])break a;c=0;while(1){zd(b,J[(c<<2)+e>>2]); +c=c+1|0;e=J[d+12>>2];if(c>>>0>2]-e>>2>>>0)continue;break}}c=J[d>>2];if(c&16){zd(b,J[d+8>>2]);c=J[d>>2]}b:{if(!(c&32))break b;zd(b,(J[d+28>>2]-J[d+24>>2]|0)/12|0);c=J[d+24>>2];if((c|0)==J[d+28>>2])break b;e=0;while(1){c=P(e,12)+c|0;g=K[c+11|0];h=g<<24>>24<0;lf(b,h?J[c>>2]:c,h?J[c+4>>2]:g);e=e+1|0;c=J[d+24>>2];if(e>>>0<(J[d+28>>2]-c|0)/12>>>0)continue;break}}c:{if(!(K[d|0]&64))break c;zd(b,(J[d+40>>2]-J[d+36>>2]|0)/12|0);c=J[d+36>>2];if((c|0)==J[d+40>>2])break c;e=0;while(1){c=P(e,12)+c|0;g= +K[c+11|0];h=g<<24>>24<0;lf(b,h?J[c>>2]:c,h?J[c+4>>2]:g);e=e+1|0;c=J[d+36>>2];if(e>>>0<(J[d+40>>2]-c|0)/12>>>0)continue;break}}f=f+1|0;c=J[a+12>>2];if(f>>>0>2]-c>>2>>>0)continue;break}}zd(b,J[a+28>>2]-J[a+24>>2]>>2);c=J[a+24>>2];if((c|0)!=J[a+28>>2]){f=0;while(1){c=J[(f<<2)+c>>2];kc[J[J[c>>2]+8>>2]](c,b);f=f+1|0;c=J[a+24>>2];if(f>>>0>2]-c>>2>>>0)continue;break}}}function hda(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=J[a+508>>2];if((c|0)>=2){d=c-2|0;c=0;while(1){if(J[(P(c,12)+a|0)+272>> +2]==218)break a;e=(c|0)!=(d|0);c=c+1|0;if(e)continue;break}}b=K[47337]|K[47338]<<8|(K[47339]<<16|K[47340]<<24);H[a+35|0]=b;H[a+36|0]=b>>>8;H[a+37|0]=b>>>16;H[a+38|0]=b>>>24;b=K[47334]|K[47335]<<8|(K[47336]<<16|K[47337]<<24);c=K[47330]|K[47331]<<8|(K[47332]<<16|K[47333]<<24);H[a+28|0]=c;H[a+29|0]=c>>>8;H[a+30|0]=c>>>16;H[a+31|0]=c>>>24;H[a+32|0]=b;H[a+33|0]=b>>>8;H[a+34|0]=b>>>16;H[a+35|0]=b>>>24;b=K[47326]|K[47327]<<8|(K[47328]<<16|K[47329]<<24);c=K[47322]|K[47323]<<8|(K[47324]<<16|K[47325]<<24); +H[a+20|0]=c;H[a+21|0]=c>>>8;H[a+22|0]=c>>>16;H[a+23|0]=c>>>24;H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24;b=K[47318]|K[47319]<<8|(K[47320]<<16|K[47321]<<24);c=K[47314]|K[47315]<<8|(K[47316]<<16|K[47317]<<24);H[a+12|0]=c;H[a+13|0]=c>>>8;H[a+14|0]=c>>>16;H[a+15|0]=c>>>24;H[a+16|0]=b;H[a+17|0]=b>>>8;H[a+18|0]=b>>>16;H[a+19|0]=b>>>24;b=K[47310]|K[47311]<<8|(K[47312]<<16|K[47313]<<24);c=K[47306]|K[47307]<<8|(K[47308]<<16|K[47309]<<24);H[a+4|0]=c;H[a+5|0]=c>>>8;H[a+6|0]=c>>>16;H[a+7|0]= +c>>>24;H[a+8|0]=b;H[a+9|0]=b>>>8;H[a+10|0]=b>>>16;H[a+11|0]=b>>>24;return 0}kc[J[J[b>>2]+44>>2]](b,255)|0;kc[J[J[b>>2]+44>>2]](b,216)|0;if((J[a+272>>2]&-2)!=224)kc[J[J[b>>2]+16>>2]](b,2641824,18,1)|0;c=0;if(J[a+508>>2]>=2)while(1){kc[J[J[b>>2]+44>>2]](b,255)|0;d=P(c,12)+a|0;kc[J[J[b>>2]+44>>2]](b,K[d+272|0])|0;kc[J[J[b>>2]+16>>2]](b,J[d+268>>2],J[d+276>>2],1)|0;c=c+1|0;if((c|0)<(J[a+508>>2]-1|0))continue;break}a=P(c,12)+a|0;kc[J[J[b>>2]+16>>2]](b,J[a+268>>2],J[a+276>>2],1)|0;return 1}function To(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;jK(a,b);zd(b,J[a+8>>2]);c=J[a+8>>2];if(c&1){zd(b,J[a+176>>2]);c=J[a+8>>2]}if(c&2){c=K[a+203|0];d=c<<24>>24<0;lf(b,d?J[a+192>>2]:a+192|0,d?J[a+196>>2]:c);c=J[a+8>>2]}if(c&4){e=O[a+184>>3]*100;a:{if(R(e)<2147483648){d=~~e;break a}d=-2147483648}zd(b,d);c=J[a+8>>2]}b:{if(!(c&8))break b;zd(b,J[a+164>>2]-J[a+160>>2]>>2);c=J[a+160>>2];if((c|0)==J[a+164>>2])break b;while(1){f=h<<2;Fe(b,K[J[f+c>>2]+1|0]);zd(b,J[J[f+J[a+160>>2]>>2]+4>>2]);c=J[f+J[a+160>>2]>>2];d=J[c+ +4>>2];if(d&32){d=b;e=O[c+16>>3]*100;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}zd(d,c);c=J[f+J[a+160>>2]>>2];d=J[c+4>>2]}if(d&64){d=K[c+71|0];g=d<<24>>24<0;lf(b,g?J[c+60>>2]:c+60|0,g?J[c- -64>>2]:d);c=J[f+J[a+160>>2]>>2]}e=O[c+8>>3]*100;d:{if(R(e)<2147483648){d=~~e;break d}d=-2147483648}zd(b,d);e=O[J[f+J[a+160>>2]>>2]+24>>3]*1E4;e:{if(R(e)<2147483648){d=~~e;break e}d=-2147483648}zd(b,d);e=O[J[f+J[a+160>>2]>>2]+32>>3]*1E4;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}zd(b,d);e=O[J[f+J[a+ +160>>2]>>2]+40>>3]*1E4;g:{if(R(e)<2147483648){d=~~e;break g}d=-2147483648}zd(b,d);c=J[f+J[a+160>>2]>>2];g=K[c+59|0];d=g<<24>>24<0;lf(b,d?J[c+48>>2]:c+48|0,d?J[c+52>>2]:g);c=J[f+J[a+160>>2]>>2];f=K[c+83|0];d=f<<24>>24<0;lf(b,d?J[c+72>>2]:c+72|0,d?J[c+76>>2]:f);h=h+1|0;c=J[a+160>>2];if(h>>>0>2]-c>>2>>>0)continue;break}}c=J[a+8>>2];if(c&16){c=K[a+215|0];d=c<<24>>24<0;lf(b,d?J[a+204>>2]:a+204|0,d?J[a+208>>2]:c);c=J[a+8>>2]}if(c&32){zd(b,J[a+180>>2]);c=J[a+8>>2]}if(c&64){Fe(b,K[a+172|0]);c=J[a+ +8>>2]}if(c&128){d=b;b=K[a+227|0];c=b<<24>>24<0;lf(d,c?J[a+216>>2]:a+216|0,c?J[a+220>>2]:b)}}function _L(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;d=K[b+11|0];e=d<<24>>24;f=J[b+4>>2];k=(e|0)<0;c=k?f:d;l=0;a:{if(!c)break a;g=K[a+11|0];h=g<<24>>24;i=J[a+4>>2];n=(h|0)<0;m=n?i:g;l=1E4;if(!m)break a;if((c|0)==(m|0)){l=0;if(!qd(k?J[b>>2]:b,n?J[a>>2]:a,c))break a;f=J[b+4>>2];i=J[a+4>>2];d=K[b+11|0];e=d;g=K[a+11|0];h=g}k=e<<24>>24<0;e=k?J[b>>2]:b;c=h<<24>>24<0;h=c?J[a>>2]:a;k=k?f:d;m=k<<2;c= +c?i:g;n=c<<2;d=0;b:{while(1){c:{if((c|0)<=(j|0)){g=0;break c}i=(h+n|0)-(j<<2)|0;d:{while(1){g=J[h>>2];j=j+1|0;h=h+4|0;f=g-32|0;if(f>>>0>13|!(1<>>0<26?g+32|0:g}f=0;e:{if((d|0)>=(k|0))break e;i=(e+m|0)-(d<<2)|0;f:{while(1){f=J[e>>2];d=d+1|0;e=e+4|0;l=f-32|0;if(l>>>0>13|!(1<>>0<26?f+32|0:f}if((f|0)!=(g|0))break b;if(g)continue;break}return 100}if(!(f?g:0))return Ex(a, +b)?700:1E3;l=1E3;if(Ex(a,b))break a;h=0;d=K[a+11|0];j=d<<24>>24<0;e=K[b+11|0];c=e<<24>>24<0;d=j?J[a+4>>2]:d;e=c?J[b+4>>2]:e;l=1500;g:{if(!(d|e))break g;a=j?J[a>>2]:a;b=c?J[b>>2]:b;g=e<<2;f=d<<2;j=0;while(1){i=0;h:{if((d|0)<=(h|0)){c=0;break h}k=(a+f|0)-(h<<2)|0;i:{while(1){c=J[a>>2];h=h+1|0;a=a+4|0;m=c-32|0;if(m>>>0>13|!(1<>>0<26?c+32|0:c}j:{if((e|0)<=(j|0))break j;k=(b+g|0)-(j<<2)|0;k:{while(1){i=J[b>>2];j=j+1|0;b=b+4|0;m=i- +32|0;if(m>>>0>13|!(1<>>0<26?i+32|0:i}if((c|0)==(i|0)?c:0)continue;break}l=(c|0)!=(i|0)?1E4:3E3}}return l}function Eba(a,b,c){var d=0,e=0,f=0,g=0;f=K[c+1|0];if(f>>>0<33){d=-1;e=J[a+8>>2];a:{if(e&7)break a;b:{c:{d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;d:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=f;break d}if((bd(a,f)|0)==-1)break a}d= +-1;e=J[a+8>>2];if(e&7)break a;f=K[c+2|0];d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;e:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=f;break e}if((bd(a,f)|0)==-1)break a}d=-1;e=J[a+8>>2];if(e&7)break a;f=K[c+3|0];d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;f:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=f;break f}if((bd(a, +f)|0)==-1)break a}d=-1;e=J[a+8>>2];if(e&7)break a;f=K[c+4|0];d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break c;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;g:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=f;break g}if((bd(a,f)|0)==-1)break a}d=-1;if(Cs(a,K[c+5|0]))break a;d=0;if(!b|J[c+8>>2]<=0)break a;b=0;while(1){e=J[a+8>>2];if(e&7)break b;d=(b<<1)+c|0;f=K[d+13|0];d=K[d+12|0];g=J[a+64>>2];if((g|0)>=0&J[a+60>>2]>=(g|0))break c;e=d&15|f<<4;J[a+4>>2]=J[a+4>>2]| +32;d=J[a+28>>2];J[a+28>>2]=d-1;h:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=e;break h}d=-1;if((bd(a,e&255)|0)==-1)break a}d=0;b=b+1|0;if((b|0)>2])continue;break}break a}J[a+8>>2]=e|4}d=-1}return d}fa(208702,207976,771,208891);B()}function Vy(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=fc-32|0;fc=f;e=J[a+584>>2];J[f+28>>2]=0;a:{b:{c:{if(J[e+488>>2]){if(!(J[e+16>>2]|!c?J[e+16>>2]?b:0:1))break c;QP(e);J[e+488>>2]=0}d=1;d:{if(!(J[a+12>>2]>>>10&1))break d;J[f+16>>2]=f+28;if(!ne(a, +325,f+16|0))break d;g=J[f+28>>2];if(!g)break d;d=!J[g>>2]}e:{if(J[a+12>>2]>>>10&1)break e;J[f>>2]=f+28;if(!ne(a,279,f))break e;g=J[f+28>>2];if(!g)break e;d=!J[g>>2]}f:{g:{h:{if(c)break h;if(b)break g;if(!J[a+8>>2])break h;if(d)break g}b=Dc(40);J[b>>2]=0;J[699344]=0;h=Bq(e+492|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;g=4;d=-1;i:{if(!a)break i;c=J[699345];if(!c)break i;d=Pc(J[a>>2],b,4);if(!d)break b;gc=c}a=gc;if((d|0)!=1){J[e+492>>2]=673;J[e>>2]=h;J[e+500>>2]=674;b=Hf(e+624|0,1,b,4);g=gc;a=0}while(1){j:{if(a){c= +0;break j}J[699344]=0;ca(71,e|0,80,488);a=J[699344];J[699344]=0;if((a|0)==1)break a;d=-1;k:{if(!a)break k;c=J[699345];if(!c)break k;d=Pc(J[a>>2],b,g);if(!d)break b;gc=c}c=1;a=gc;if((d|0)==1)continue}break}uc(b);if(c)break f;break c}b=Dc(40);J[b>>2]=0;J[699344]=0;h=Bq(e+492|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;g=4;d=-1;l:{if(!a)break l;c=J[699345];if(!c)break l;d=Pc(J[a>>2],b,4);if(!d)break b;gc=c}a=gc;if((d|0)!=1){J[e+492>>2]=673;J[e>>2]=h;J[e+500>>2]=674;b=Hf(e+624|0,1,b,4);g=gc;a=0}while(1){m:{if(a){c= +0;break m}J[699344]=0;ca(94,e|0,80,432);a=J[699344];J[699344]=0;if((a|0)==1)break a;d=-1;n:{if(!a)break n;c=J[699345];if(!c)break n;d=Pc(J[a>>2],b,g);if(!d)break b;gc=c}c=1;a=gc;if((d|0)==1)continue}break}uc(b);if(!c)break c}J[e+488>>2]=1}fc=f+32|0;return}uc(b);nf(a,c);B()}a=Z()|0;uc(b);ba(a|0);B()}function S0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0;t=fc-288|0;fc=t;u=J[a+332>>2];b=J[b+84>>2];a=t;while(1){m=J[b+128>>2];n= +I[c+64>>1];i=P(J[b+32>>2],I[c+16>>1]);j=P(J[b+224>>2],I[c+112>>1]);g=i-j|0;k=P(J[b+96>>2],I[c+48>>1]);f=P(J[b+160>>2],I[c+80>>1]);o=k-f|0;h=P(g+o|0,4433);p=P(J[b+64>>2],I[c+32>>1]);q=P(J[b+192>>2],I[c+96>>1]);r=p-q<<13;l=P(I[c>>1],J[b>>2])<<13|1024;s=r+l|0;g=h+P(g,6270)|0;J[a+240>>2]=s-g>>11;J[a+24>>2]=g+s>>11;g=l-r|0;h=h+P(o,-15137)|0;J[a+168>>2]=g-h>>11;J[a+96>>2]=h+g>>11;m=P(P(m,n),10033);n=m+l|0;g=q<<13;o=g+P(p,11190)|0;q=n-o|0;s=f+i|0;h=P(s+j|0,7053);r=P(k,-4433);v=h+((r+P(i,-5540)|0)+P(j,-16244)| +0)|0;J[a+144>>2]=q-v>>11;J[a+120>>2]=q+v>>11;n=n+o|0;o=P(i,2295);i=P(k,10703);k=h+P(s,2139)|0;o=(o+i|0)+k|0;J[a+264>>2]=n-o>>11;J[a>>2]=n+o>>11;p=P(p,2998)-g|0;l=l-m|0;m=p+l|0;g=r+P(f,-12112)|0;f=P(f+j|0,-8565);k=k+(g+f|0)|0;J[a+216>>2]=m-k>>11;J[a+48>>2]=k+m>>11;l=l-p|0;j=f+(h+(P(j,12998)-i|0)|0)|0;J[a+192>>2]=l-j>>11;J[a+72>>2]=j+l>>11;a=a+4|0;b=b+4|0;c=c+2|0;w=w+1|0;if((w|0)!=6)continue;break}b=u+128|0;a=t;j=0;while(1){i=J[a+20>>2];f=J[a+4>>2];l=P(i+f|0,2998);c=J[(j<<2)+d>>2]+e|0;k=J[a+12>>2]; +h=l+(k+f<<13)|0;u=(J[a>>2]<<13)+131072|0;p=J[a+16>>2];m=u+P(p,5793)|0;n=P(J[a+8>>2],10033);g=m+n|0;H[c|0]=K[b+(h+g>>>18&1023)|0];H[c+5|0]=K[b+(g-h>>>18&1023)|0];f=f-(i+k|0)<<13;h=u+P(p,-11586)|0;H[c+1|0]=K[b+(f+h>>>18&1023)|0];H[c+4|0]=K[b+(h-f>>>18&1023)|0];i=l+(i-k<<13)|0;f=m-n|0;H[c+2|0]=K[b+(i+f>>>18&1023)|0];H[c+3|0]=K[b+(f-i>>>18&1023)|0];a=a+24|0;j=j+1|0;if((j|0)!=12)continue;break}fc=t+288|0}function eJa(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=fc-80|0;fc=e;a:{b:{c:{d:{e:{if(a){if(!b)break e; +if(!d)break d;if(c>>>0<=2){Nc(d,1,2362282,0);break a}if(K[a+124|0]){Nc(d,4,2362331,0);g=1;break a}g=1;wd(b,a+40|0,1);wd(b+1|0,a+52|0,1);wd(b+2|0,a+44|0,1);f=b+3|0;f:{g:{h:{h=J[a+40>>2];switch(h-1|0){case 1:break g;case 0:break h;default:break f}}if(c>>>0<=6){J[e+16>>2]=c;Nc(d,1,2362456,e+16|0);g=0;break a}if(!((c|0)==7|J[a+48>>2]==14)){J[e+48>>2]=c;Nc(d,2,2362456,e+48|0)}wd(f,a+48|0,4);if(J[a+48>>2]!=14)break b;f=ef(36);if(!f){g=0;Nc(d,1,2362512,0);break a}J[f>>2]=14;J[e+64>>2]=0;J[e+56>>2]=0;J[e+ +72>>2]=0;J[e+60>>2]=0;J[e+68>>2]=0;J[e+76>>2]=0;g=4470064;J[e+52>>2]=4470064;J[f+4>>2]=1145390592;i:{if((c|0)!=7){if((c|0)==35){wd(b+7|0,e+76|0,4);wd(b+11|0,e+72|0,4);wd(b+15|0,e+68|0,4);wd(b+19|0,e- -64|0,4);wd(b+23|0,e+60|0,4);wd(b+27|0,e+56|0,4);wd(b+31|0,e+52|0,4);J[f+4>>2]=0;g=J[e+52>>2];d=J[e+56>>2];c=J[e+72>>2];i=J[e+68>>2];j=J[e+76>>2];h=J[e+64>>2];b=J[e+60>>2];break i}J[e+32>>2]=c;Nc(d,2,2362547,e+32|0)}d=0;c=0;h=0;b=0}J[f+24>>2]=b;J[f+16>>2]=i;J[f+8>>2]=j;J[f+32>>2]=g;J[f+28>>2]=d;J[f+20>> +2]=h;J[f+12>>2]=c;J[a+112>>2]=0;J[a+108>>2]=f;break b}b=c-3|0;J[a+112>>2]=b;d=Ge(1,b);J[a+108>>2]=d;if(!d)break c;if((c|0)<=3)break b;d=0;while(1){wd(f,e+76|0,1);H[J[a+108>>2]+d|0]=J[e+76>>2];f=f+1|0;d=d+1|0;if((b|0)!=(d|0))continue;break}break b}if(h>>>0<3)break a;J[e>>2]=h;Nc(d,4,2362594,e);break a}fa(2354499,2354795,1473,2371522);B()}fa(2362226,2354795,1474,2371522);B()}fa(2355439,2354795,1475,2371522);B()}g=0;J[a+112>>2]=0;break a}g=1;H[a+124|0]=1}fc=e+80|0;return g|0}function Xc(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;e=J[a+1212>>2];if((e|0)<=J[a+92>>2]){f=J[b+20>>2];a:{while(1){J[b>>2]=2147483632;J[b+28>>2]=f;j=J[b+8>>2];J[b+16>>2]=j;I[f+2>>1]=0;e=J[a+44>>2]+(e-J[a+84>>2]<<3)|0;k=J[e+4>>2];if(k){e=J[a+32>>2]+(J[e>>2]<<2)|0;l=0;i=2147483632;g=f;while(1){f=J[e>>2];l=J[f+8>>2]+l|0;m=J[f+12>>2];h=J[f>>2];d=k-1|0;b:{if(!d){n=1;c=0;break b}k=((k<<2)+e|0)-4|0;while(1){c=e+4|0;f=J[e+4>>2];e=J[f>>2];n=(e|0)==(h|0);if((e|0)!=(h|0)){e=c;c=d;break b}l=J[f+8>>2]+l|0;m=J[f+12>>2]+ +m|0;e=c;d=d-1|0;if(d)continue;break}e=k;c=0}k=c;if(m){d=(l<<9)-m>>9;c=d>>31;d=(c^d)-c|0;c=d&511;c=J[a+1184>>2]==1?c>>>0>256?512-c|0:c:d;c=J[((((c|0)>=255?255:c)<<2)+a|0)+160>>2];if(c){H[j|0]=c;c=J[b+28>>2];c:{d:{if((J[b>>2]+1|0)!=(h|0))break d;g=I[c+2>>1];if((g|0)<=0)break d;I[c+2>>1]=g+1;d=J[b+16>>2];g=c;break c}g=c+8|0;J[b+28>>2]=g;d=J[b+16>>2];I[c+10>>1]=1;I[c+8>>1]=h;J[c+12>>2]=d}J[b>>2]=h;j=d+1|0;J[b+16>>2]=j;i=h}h=h+1|0}e:{if(n)break e;f=J[f>>2];if((f|0)<=(h|0))break e;d=l<<9>>9;c=d>>31;d=(c^ +d)-c|0;c=d&511;c=J[a+1184>>2]==1?c>>>0>256?512-c|0:c:d;c=J[((((c|0)>=255?255:c)<<2)+a|0)+160>>2];if(!c)break e;d=f-h|0;f:{g:{if((i+1|0)!=(h|0))break g;i=I[g+2>>1];if((c|0)!=K[J[g+4>>2]]|(i|0)>=0)break g;I[g+2>>1]=i-d;break f}H[j|0]=c;c=J[b+28>>2];g=c+8|0;J[b+28>>2]=g;i=J[b+16>>2];j=i+1|0;J[b+16>>2]=j;I[c+10>>1]=0-d;I[c+8>>1]=h;J[c+12>>2]=i}i=f-1|0;J[b>>2]=i}if(k)continue;break}f=J[b+20>>2];if((g|0)!=(f|0))break a}g=J[a+1212>>2];e=g+1|0;J[a+1212>>2]=e;if((g|0)>2])continue;break}return 0}e= +b;b=J[a+1212>>2];J[e+4>>2]=b;J[a+1212>>2]=b+1;a=1}else a=0;return a}function Lc(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;e=J[a+1176>>2];if((e|0)<=J[a+92>>2]){f=J[b+20>>2];a:{while(1){J[b>>2]=2147483632;J[b+28>>2]=f;j=J[b+8>>2];J[b+16>>2]=j;I[f+2>>1]=0;e=J[a+44>>2]+(e-J[a+84>>2]<<3)|0;k=J[e+4>>2];if(k){e=J[a+32>>2]+(J[e>>2]<<2)|0;l=0;i=2147483632;g=f;while(1){f=J[e>>2];l=J[f+8>>2]+l|0;m=J[f+12>>2];h=J[f>>2];d=k-1|0;b:{if(!d){n=1;c=0;break b}k=((k<<2)+e|0)-4|0;while(1){c=e+4|0;f=J[e+ +4>>2];e=J[f>>2];n=(e|0)==(h|0);if((e|0)!=(h|0)){e=c;c=d;break b}l=J[f+8>>2]+l|0;m=J[f+12>>2]+m|0;e=c;d=d-1|0;if(d)continue;break}e=k;c=0}k=c;if(m){d=(l<<9)-m>>9;c=d>>31;d=(c^d)-c|0;c=d&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0:c:d;c=J[((((c|0)>=255?255:c)<<2)+a|0)+132>>2];if(c){H[j|0]=c;c=J[b+28>>2];c:{d:{if((J[b>>2]+1|0)!=(h|0))break d;g=I[c+2>>1];if((g|0)<=0)break d;I[c+2>>1]=g+1;d=J[b+16>>2];g=c;break c}g=c+8|0;J[b+28>>2]=g;d=J[b+16>>2];I[c+10>>1]=1;I[c+8>>1]=h;J[c+12>>2]=d}J[b>>2]=h;j=d+1|0;J[b+ +16>>2]=j;i=h}h=h+1|0}e:{if(n)break e;f=J[f>>2];if((f|0)<=(h|0))break e;d=l<<9>>9;c=d>>31;d=(c^d)-c|0;c=d&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0:c:d;c=J[((((c|0)>=255?255:c)<<2)+a|0)+132>>2];if(!c)break e;d=f-h|0;f:{g:{if((i+1|0)!=(h|0))break g;i=I[g+2>>1];if((c|0)!=K[J[g+4>>2]]|(i|0)>=0)break g;I[g+2>>1]=i-d;break f}H[j|0]=c;c=J[b+28>>2];g=c+8|0;J[b+28>>2]=g;i=J[b+16>>2];j=i+1|0;J[b+16>>2]=j;I[c+10>>1]=0-d;I[c+8>>1]=h;J[c+12>>2]=i}i=f-1|0;J[b>>2]=i}if(k)continue;break}f=J[b+20>>2];if((g|0)!=(f|0))break a}g= +J[a+1176>>2];e=g+1|0;J[a+1176>>2]=e;if((g|0)>2])continue;break}return 0}e=b;b=J[a+1176>>2];J[e+4>>2]=b;J[a+1176>>2]=b+1;a=1}else a=0;return a}function ytb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;c=J[a+428>>2];H[c+8|0]=K[b+33|0];g=c+8|0;d=J[b+36>>2];a:{b:{c:{if(!d){if(K[b+44|0]){d=c+9|0;c=g;break b}if(!(K[b+47|0]|(K[b+45|0]|K[b+46|0]))){e=1;break a}d=c+9|0;c=g;e=1;break c}xc(c+9|0,J[b+40>>2],d);f=J[b+36>>2];c=g+f|0;d=c+1|0;if(K[b+44|0])break b;e= +f+1|0}if(K[b+45|0]|K[b+46|0])break b;if(!K[b+47|0])break a}H[d|0]=0;H[c+2|0]=K[b+44|0];H[c+3|0]=K[b+45|0];H[c+4|0]=K[b+46|0];H[c+5|0]=K[b+47|0];d:{if(!K[b+44|0]){e=f+6|0;c=c+6|0;break d}d=J[b+48>>2];d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);H[c+6|0]=d;H[c+7|0]=d>>>8;H[c+8|0]=d>>>16;H[c+9|0]=d>>>24;e=f+10|0;c=c+10|0}d=c;if(K[b+45|0]){c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;e=e+4|0;d=d+4|0}if(K[b+46|0]){H[d|0]=K[b+56|0];c=J[b+60>> +2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+1|0]=c;H[d+2|0]=c>>>8;H[d+3|0]=c>>>16;H[d+4|0]=c>>>24;c=J[b+64>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+5|0]=c;H[d+6|0]=c>>>8;H[d+7|0]=c>>>16;H[d+8|0]=c>>>24;c=J[b+68>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+9|0]=c;H[d+10|0]=c>>>8;H[d+11|0]=c>>>16;H[d+12|0]=c>>>24;c=J[b+72>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+13|0]=c;H[d+14|0]=c>>>8;H[d+15|0]=c>>>16;H[d+16|0]=c>>>24;e=e+17|0;d=d+17|0}if(!K[b+47|0])break a;c=J[b+76>>2]; +e=(c<<2)+e|0;if(!c)break a;f=J[b+80>>2];while(1){c=J[f>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;d=d+4|0;f=f+4|0;h=h+1|0;if(h>>>0>2])continue;break}}return Ce(a,J[b>>2],e,g)|0}function n9(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;s=d-1|0;i=s<<2;a:{b:{c:{if(!f){h=P(b,12)+a|0;k=(b<<3)+a|0;l=(b<<2)+a|0;f=K[c^3];x=(e<<2)+c|0;e=K[x^3];if((d|0)<=1)break c;b=0;while(1){n=n+1|0;d=K[x+n^3]; +g=K[c+n^3];H[a+b^3]=f;o=b|1;j=P(f,3);t=j+g|0;H[o+a^3]=t>>>2;p=b|2;u=f+g|0;H[p+a^3]=u>>>1;q=b|3;m=P(g,3);v=m+f|0;H[q+a^3]=v>>>2;w=e+j|0;H[b+l^3]=w>>>2;r=P(e,3);y=r+d|0;H[l+o^3]=(y+P(f,9)|0)+m>>>4;H[l+p^3]=(m+w|0)+d>>>3;j=P(d,3);H[l+q^3]=j+(P(g,9)+w|0)>>>4;H[b+k^3]=e+f>>>1;H[k+o^3]=t+y>>>3;H[k+p^3]=(d+e|0)+u>>>2;H[k+q^3]=(e+j|0)+v>>>3;H[b+h^3]=f+r>>>2;H[h+o^3]=(P(e,9)+t|0)+j>>>4;H[h+p^3]=(r+u|0)+j>>>3;H[h+q^3]=(r+v|0)+P(d,9)>>>4;b=b+4|0;e=d;f=g;if((n|0)!=(s|0))continue;break}break b}e=P(b,12)+a|0;g= +(b<<3)+a|0;h=(b<<2)+a|0;f=K[c^3];d:{if((d|0)<2){d=f;break d}b=0;while(1){p=p+1|0;d=K[p+c^3];H[a+b^3]=f;k=b|1;l=P(f,3)+d>>>2|0;H[k+a^3]=l;j=b|2;m=d+f>>>1|0;H[j+a^3]=m;n=b|3;o=P(d,3)+f>>>2|0;H[n+a^3]=o;H[b+h^3]=f;H[h+k^3]=l;H[h+j^3]=m;H[h+n^3]=o;H[b+g^3]=f;H[g+k^3]=l;H[g+j^3]=m;H[g+n^3]=o;H[b+e^3]=f;H[e+k^3]=l;H[e+j^3]=m;H[e+n^3]=o;b=b+4|0;f=d;if((p|0)!=(s|0))continue;break}}H[a+i^3]=d;b=i|1;H[b+a^3]=d;c=i|2;H[c+a^3]=d;f=a;a=i|3;H[f+a^3]=d;H[h+i^3]=d;H[b+h^3]=d;H[c+h^3]=d;H[a+h^3]=d;H[g+i^3]=d;H[b+ +g^3]=d;H[c+g^3]=d;H[a+g^3]=d;H[e+i^3]=d;H[b+e^3]=d;H[c+e^3]=d;a=a+e|0;break a}j=P(e,3);m=P(f,3);g=f;d=e}H[a+i^3]=g;b=i|1;H[b+a^3]=g;c=i|2;H[c+a^3]=g;e=a;a=i|3;H[e+a^3]=g;e=d+m>>>2|0;H[i+l^3]=e;H[b+l^3]=e;H[c+l^3]=e;H[a+l^3]=e;d=d+g>>>1|0;H[i+k^3]=d;H[b+k^3]=d;H[c+k^3]=d;H[a+k^3]=d;d=g+j>>>2|0;H[h+i^3]=d;H[b+h^3]=d;H[c+h^3]=d;a=a+h|0}H[a^3]=d}function mt(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[a+8>>2]==1){Uc(J[a+628>>2],J[a>>2],81776,0);return-1}if(!(K[a+13|0]&4)){Uc(J[a+628>>2],J[a>>2],82001, +0);return-1}f=fc+-64|0;fc=f;g=J[a+56>>2];a:{b:{if(g>>>0<=c>>>0){h=J[a>>2];i=J[a+628>>2];J[f+52>>2]=g-1;J[f+48>>2]=c;Uc(i,h,69079,f+48|0);break b}g=J[a+60>>2];if(g>>>0<=d>>>0){h=J[a>>2];i=J[a+628>>2];J[f+36>>2]=g-1;J[f+32>>2]=d;Uc(i,h,69928,f+32|0);break b}g=J[a- -64>>2];if(!g){h=J[a>>2];i=J[a+628>>2];J[f+20>>2]=g-1;J[f+16>>2]=0;Uc(i,h,70617,f+16|0);break b}g=1;if(L[a+138>>1]!=2)break a;h=L[a+98>>1];if(h>>>0>e>>>0)break a;g=J[a>>2];i=J[a+628>>2];J[f+4>>2]=h-1;J[f>>2]=e;Uc(i,g,71357,f)}g=0}fc=f- -64| +0;if(!g)return-1;h=J[a+72>>2];f=1;g=J[a+68>>2];if((g|0)==-1)g=J[a+56>>2];h=(h|0)==-1?J[a+60>>2]:h;c:{d:{if(!g|!h)break d;k=J[a- -64>>2];i=J[a+76>>2];i=(i|0)==-1?k:i;if(!i)break d;f=0;j=J[a+56>>2];if(j>>>0<0-g>>>0)l=((g+j|0)-1>>>0)/(g>>>0)|0;j=J[a+60>>2];if(j>>>0<0-h>>>0)f=((h+j|0)-1>>>0)/(h>>>0)|0;j=0;if(0-i>>>0>k>>>0)j=((i+k|0)-1>>>0)/(i>>>0)|0;e=P(P(P(e,j)+(0/(i>>>0)|0)|0,f)+((d>>>0)/(h>>>0)|0)|0,l)+((c>>>0)/(g>>>0)|0)|0;if(L[a+138>>1]==2)break c;f=P(P(0/(i>>>0)|0,f)+((d>>>0)/(h>>>0)|0)|0,l)+((c>>> +0)/(g>>>0)|0)|0}e=f}c=e;e=b;f=fc-16|0;fc=f;e:{if(J[a+8>>2]==1){Uc(J[a+628>>2],J[a>>2],81776,0);b=-1;break e}if(!(K[a+13|0]&4)){Uc(J[a+628>>2],J[a>>2],82001,0);b=-1;break e}b=J[a+180>>2];if(b>>>0<=c>>>0){d=J[a>>2];a=J[a+628>>2];J[f+4>>2]=b;J[f>>2]=c;Uc(a,d,73647,f);b=-1;break e}d=J[a+508>>2];b=-1;if(!aV(a,c))break e;if(!(kc[J[a+556>>2]](a,e,d,(c>>>0)/M[a+176>>2]&65535)|0))break e;kc[J[a+652>>2]](a,e,d);b=d}fc=f+16|0;return b}function R$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{d=fc-16| +0;fc=d;b:{c:{d:{e:{f:{g:{h:{b=J[b+4>>2];c=J[b+4>>2];i:{if(!c){H[a|0]=0;H[a+11|0]=0;break i}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[699344]=0;c=Mr(c);e=J[699344];J[699344]=0;if((e|0)==1)break c;if(c)break i;c=J[b+4>>2];if(!c)break i;J[699344]=0;h=Vm(c);c=J[699344];J[699344]=0;if((c|0)==1)break h;c=J[b+4>>2];if(!c)break i;while(1){J[699344]=0;c=_(3240,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;if((c|0)!=1)break i;c=J[b+4>>2];J[699344]=0;c=_(3241,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g; +if((c|0)==-1)break i;e=J[b+4>>2];j:{if(!e){e=-1;break j}J[699344]=0;e=Vm(e);f=J[699344];J[699344]=0;if((f|0)==1)break g}if((c|0)==15|(e|0)<(h|0))break i;k:{if(!(1<>>0>14)break k;c=J[b+4>>2];J[699344]=0;e=_(3242,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;l:{if(!e){H[d+15|0]=0;c=d+4|0;break l}c=Yc(e);if(c>>>0>=2147483632){J[699344]=0;$(3030,d+4|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;B()}m:{if(c>>>0<=10){H[d+15|0]=c;f=d+4|0;break m}J[699344]=0;g=(c|15)+1|0;f=_(4,g|0)|0;i= +J[699344];J[699344]=0;if((i|0)==1)break f;J[d+4>>2]=f;J[d+8>>2]=c;J[d+12>>2]=g|-2147483648}c=cd(f,e,c)+c|0}H[c|0]=0;J[699344]=0;c=K[d+15|0];e=c<<24>>24<0;ga(2835,a|0,(e?J[d+4>>2]:d+4|0)|0,(e?J[d+8>>2]:c)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d;if(H[d+15|0]>=0)break k;uc(J[d+4>>2])}c=J[b+4>>2];if(c)continue;break}}fc=d+16|0;break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[d+15|0]>=0)break b;uc(J[d+4>>2]);break b}b=Z()|0}if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0); +B()}}function LCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if(J[a+12>>2]<=0)return 0;g=J[a+16>>2];a:{b:{while(1){d=J[c+8>>2];if(d&7)break a;e=K[g+1|0];f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break c}if((bd(c,e)|0)==-1)break a}e=J[g+4>>2];d:{if(M[b>>2]>=257){if(!Kh(c,e))break d;break a}d=J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b; +J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break d}if((bd(c,e&255)|0)==-1)break a}if(Kh(c,J[g+12>>2]))break a;d=J[c+8>>2];if(d&7)break a;e=K[g+2|0];f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break e}if((bd(c,e)|0)==-1)break a}e=J[g+8>>2];f:{if(M[b>>2]>=257){if(!Kh(c,e))break f;break a}d= +J[c+8>>2];if(d&7)break a;f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break f}if((bd(c,e&255)|0)==-1)break a}d=J[c+8>>2];if(d&7)break a;e=K[g|0];f=J[c+64>>2];if((f|0)>=0&(f|0)<=J[c+60>>2])break b;J[c+4>>2]=J[c+4>>2]|32;d=J[c+28>>2];J[c+28>>2]=d-1;g:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;d=J[c+24>>2];J[c+24>>2]=d+1;H[d|0]=e;break g}if((bd(c,e)|0)==-1)break a}g=g+16|0;h=h+ +1|0;if((h|0)>2])continue;break}return 0}J[c+8>>2]=d|4}return-1}function CBa(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;f=fc+-64|0;fc=f;e=mk(f+28|0,a+72|0);J[699344]=0;g=_(5239,e|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((d|0)==1)break h;J[699344]=0;d=J[J[b+12>>2]+((g>>>0)%M[b+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break h;i:{if(d)while(1){if((g|0)==J[d+12>>2]){J[699344]=0;h=aa(5236,d+16|0,e|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(h)break i}d= +J[d+8>>2];if(d)continue;break}J[699344]=0;g=_(5239,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;J[699344]=0;d=J[J[c+12>>2]+((g>>>0)%M[c+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break f;if(d)while(1){if((g|0)==J[d+12>>2]){J[699344]=0;h=aa(5236,d+16|0,e|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break g;if(h)break i}d=J[d+8>>2];if(d)continue;break}J[699344]=0;d=aa(5438,c|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;J[d+52>>2]=0;J[699344]=0;$(5449,a|0);d=J[699344];J[699344]=0;if((d| +0)==1)break e;J[699344]=0;ca(5450,f+12|0,a|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break d;d=J[f+20>>2];if(d)while(1){a=J[d+8>>2];J[699344]=0;ca(5448,a|0,b|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;d=J[d>>2];if(d)continue;break}id(f+12|0)}J[e+24>>2]=2392964;J[e>>2]=2392932;a=J[e+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[e+28>>2]=0}J[e+16>>2]=2392964;a=J[e+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[e+20>>2]=0}wc(e+8|0);fc=f- -64| +0;return}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;id(f+12|0);break a}d=Z()|0}Ed(e);ba(d|0);B()}function j0(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;g=fc-32|0;fc=g;J[g+16>>2]=13;J[b>>2]=-1;J[b+4>>2]=-1;J[c>>2]=0;J[c+4>>2]=0;k=Rm(a,J[a+32>>2],805430,g+16|0);if(J[k>>2]==3){h=1;e=gu(J[k+8>>2]);d=J[e+8>>2];if((d|0)>=3){i=Dd(J[J[e>>2]+8>>2],805790)?-1:0;f=0;a:{if(J[e+8>>2]<4)break a;i=Dd(J[J[e>>2]+12>>2],805790)?i:1;f=0; +if(J[e+8>>2]<5)break a;i=Dd(J[J[e>>2]+16>>2],805790)?i:2;d=6;f=0;if(J[e+8>>2]<6)break a;i=Dd(J[J[e>>2]+20>>2],805790)?i:3;f=0;if(J[e+8>>2]<7)break a;f=-1;while(1){j=d<<2;b:{if(!Dd(J[j+J[e>>2]>>2],805790)){i=d-2|0;break b}f=Dd(J[j+J[e>>2]>>2],806212)?f:d-6|0}d=d+1|0;if((d|0)>2])continue;break}f=(f|0)>=0}c:{d:{if((i|0)>=0){l=i<<2;d=J[J[l+J[e>>2]>>2]+4>>2];j=(K[d|0]==47)+d|0;d=fc-48|0;fc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;J[g+8>>2]=-1;J[g+12>>2]=-1;e:{f:{g:{h:{if(J[Ec(J[a+32>>2],806716, +d+32|0,0)>>2]==7){if(J[Ec(J[d+40>>2],806935,d+16|0,0)>>2]==7){if(J[Ke(J[d+24>>2],j,d)>>2]==9)break h;yc(d)}yc(d+16|0)}m=d+32|0;yc(m);if(J[Ec(J[J[a>>2]+16>>2],806716,m,0)>>2]!=7)break e;if(J[Ec(J[d+40>>2],806935,d+16|0,0)>>2]!=7)break f;if(J[Ke(J[d+24>>2],j,d)>>2]!=9)break g}a=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=a}yc(d)}yc(d+16|0)}yc(d+32|0);fc=d+48|0;a=J[g+12>>2];J[b>>2]=J[g+8>>2];J[b+4>>2]=a;h=qg(J[J[(J[e>>2]+l|0)+4>>2]+4>>2]);if(f)break d;break c}if(!f)break c}n=h;a=J[e>>2]+(i<<2)|0;h=qg(J[J[a+ +8>>2]+4>>2]);o=h*h;h=qg(J[J[a+12>>2]+4>>2]);h=n*Y(o+h*h)}d=J[e+8>>2]}O[c>>3]=h;if((d|0)>0){a=0;while(1){b=J[J[e>>2]+(a<<2)>>2];if(b){uc(Zc(b));d=J[e+8>>2]}a=a+1|0;if((d|0)>(a|0))continue;break}}uc(ld(e))}yc(k);fc=g+32|0}function Lza(){var a=0,b=0,c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;if(!K[2774984]){J[693745]=0;H[2774984]=1}a:{c=J[693745];if(!c){a=vc(44);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2417352;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[699344]=0;aa(5250,a+8|0,2417580)| +0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+36>>2]=0;J[a+40>>2]=J[685894];vd(2774980,a);c=J[693745]}if(!K[2774976]){J[693742]=0;J[693743]=0;J[693740]=0;J[693741]=0;J[693740]=2397928;J[693741]=0;J[693742]=0;J[693743]=0;H[2774976]=1}J[e+12>>2]=2774960;a=J[693742];J[e+8>>2]=a;if(a)while(1){d=a+8|0;a=fc-48|0;fc=a;b=vc(100);J[699344]=0;f=_(5575,b|0)|0;g=J[699344];J[699344]=0;b:{if((g|0)!=1){J[a+44>>2]=0;b=a+44|0;vd(b,f);J[699344]=0;da(5576,J[a+44>>2],d|0);d=J[699344];J[699344]=0;if((d|0)==1){a=Z()| +0;zc(b);ba(a|0);B()}J[699344]=0;b=a+28|0;ca(5577,b|0,J[a+44>>2],2417531);d=J[699344];J[699344]=0;c:{d:{e:{f:{g:{if((d|0)!=1){if(J[a+32>>2]){J[699344]=0;b=aa(5201,a+12|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;ia(5578,2417536,2417544,b|0,c+8|0);d=J[699344];J[699344]=0;if((d|0)==1)break g;id(b)}id(a+28|0);b=J[a+44>>2];J[a+44>>2]=0;if(!b)break f;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break f}ea(0)|0;Bc();B()}c=Z()|0;break c}c=Z()|0;id(b);break d}fc=a+48|0;break b}c=Z()|0}id(a+28|0)}zc(a+44|0);ba(c|0);B()}a=Z()|0;uc(b);ba(a|0);B()}Do(2774960,e+8|0);J[e+12>>2]=2774960;a=J[693742];J[e+8>>2]=a;if(a)continue;break}fc=e+16|0;return c|0}c=Z()|0;uc(nd(a));ba(c|0);B()}function sia(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=fc-16|0;fc=l;n=kG(g);i=l+4|0;g=$F(g);kc[J[J[g>>2]+20>>2]](i,g);a:{if(K[i+11|0]>>>7|0)h=J[i+4>> +2];else h=K[i+11|0]&127;b:{if(!h){J[699344]=0;ha(6866,n|0,a|0,c|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=(c-a<<2)+d|0;J[f>>2]=g;break a}J[f>>2]=d;c:{d:{i=a;h=K[i|0];switch(h-43|0){case 0:case 2:break d;default:break c}}J[699344]=0;i=aa(6881,n|0,h<<24>>24)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;h=J[f>>2];J[f>>2]=h+4;J[h>>2]=i;i=a+1|0}if(!(K[i|0]!=48|(c-i|0)<2|(K[i+1|0]|32)!=120)){J[699344]=0;h=aa(6881,n|0,48)|0;j=J[699344];J[699344]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+4; +J[j>>2]=h;h=H[i+1|0];J[699344]=0;h=aa(6881,n|0,h|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+4;J[j>>2]=h;i=i+2|0}J[699344]=0;Ep(i,c);h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;o=_(6863,g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;j=0;g=i;while(1){e:{if(c>>>0<=g>>>0){g=J[f>>2];J[699344]=0;xv((i-a<<2)+d|0,g);g=J[699344];J[699344]=0;if((g|0)==1)break e;g=J[f>>2];break a}h=l+4|0;f:{if(K[h+11|0]>>>7|0){k=J[h>>2];break f}k=h}p=!K[k+j|0];if(K[h+11|0]>>>7|0)k=J[h>> +2];else k=h;if(!(p|H[k+j|0]!=(m|0))){m=J[f>>2];J[f>>2]=m+4;J[m>>2]=o;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;j=(h-1>>>0>j>>>0)+j|0;m=0}h=H[g|0];J[699344]=0;h=aa(6881,n|0,h|0)|0;k=J[699344];J[699344]=0;if((k|0)!=1){k=J[f>>2];J[f>>2]=k+4;J[k>>2]=h;g=g+1|0;m=m+1|0;continue}}break}}a=Z()|0;jd(l+4|0);ba(a|0);B()}J[e>>2]=(b|0)==(c|0)?g:(b-a<<2)+d|0;jd(l+4|0);fc=l+16|0}function Pub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+ +288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+300|0]|K[a+293|0]|(K[a+292|0]|K[a+291|0]))break b;d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!K[a+286|0]){f=K[a+287|0];if(f)break k;if(!(K[a+288|0]|K[a+289|0]))break l;if((c|0)!=4)break a;if(f)break j;break i}if((c|0)==4)break j;break a}if(!(c&-5))break i;break a}if((c|0)!=4)break a}H[a+295|0]=1;break h}m:{if(!(K[a+288|0]|K[a+289|0])){H[a+308|0]=(c|0)!=0;break m}H[a+295|0]=1}if(K[a+288|0]|K[a+289|0])break h;if(c)break g;f=J[a+2192>>2];break f}n:{if(!K[a+288| +0]){g=J[a+512>>2];if(g)break n}g=J[a+528>>2]}f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);g=J[g+88>>2];H[g+57|0]=1;J[g+1104>>2]=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);break e}f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);f=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);J[a+2192>>2]=f}h=0;o:{if(!K[a+114|0])break o;h=!c;g=kc[J[a+152>>2]](36)|0;if(!g){Jc(a,1,0,0);h=1;break o}J[g+4>>2]=1030;J[g>>2]=1031;i=J[a+700>>2];p:{if(i){J[i+8>>2]=g;break p}J[a+696>>2]=g}J[g+8>>2]=0;J[g+12>>2]=i;J[a+700>>2]=g;J[g+ +16>>2]=J[a+436>>2];J[g+20>>2]=J[a+440>>2];J[g+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=g;J[g+32>>2]=f;H[g+28|0]=h;h=0}f=h;if(f)break d}q:{if(!K[a+112|0])break q;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break d;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break q;b=a;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[b+36>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}f=0}return f|0}Jc(a,1029,0,0);return 1029}Jc(a,1028,0,0);return 1028}function jK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;zd(b,J[a+ +36>>2]);zd(b,J[a+32>>2]);zd(b,J[a+40>>2]);e=O[a+48>>3]*1E4;a:{if(R(e)<2147483648){c=~~e;break a}c=-2147483648}zd(b,c);e=O[a+56>>3]*1E4;b:{if(R(e)<2147483648){c=~~e;break b}c=-2147483648}zd(b,c);e=O[a- -64>>3]*1E4;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}zd(b,c);e=O[a+72>>3]*1E4;d:{if(R(e)<2147483648){c=~~e;break d}c=-2147483648}zd(b,c);zd(b,J[a+4>>2]);d=J[a+4>>2];if(d&1){d=K[a+119|0];c=d<<24>>24<0;lf(b,c?J[a+108>>2]:a+108|0,c?J[a+112>>2]:d);d=J[a+4>>2]}if(d&2){d=K[a+107|0];c=d<<24>>24<0; +lf(b,c?J[a+96>>2]:a+96|0,c?J[a+100>>2]:d);d=J[a+4>>2]}if(d&4){Fe(b,K[a+80|0]);e=O[a+88>>3]*100;e:{if(R(e)<2147483648){c=~~e;break e}c=-2147483648}zd(b,c);d=J[a+4>>2]}f:{if(!(d&8))break f;zd(b,J[a+148>>2]-J[a+144>>2]>>3);c=J[a+144>>2];if((c|0)==J[a+148>>2])break f;d=0;while(1){e=O[(d<<3)+c>>3]*1E4;g:{if(R(e)<2147483648){c=~~e;break g}c=-2147483648}zd(b,c);d=d+1|0;c=J[a+144>>2];if(d>>>0>2]-c>>3>>>0)continue;break}}c=J[a+156>>2];d=J[a+4>>2];if(!(!c|!(d&16))){d=K[c|0];Fe(b,(d|0)==1?2:(d|0)== +2?1:d);e=O[c+8>>3]*100;h:{if(R(e)<2147483648){d=~~e;break h}d=-2147483648}zd(b,d);i:{if(K[c|0]!=1)break i;zd(b,J[c+20>>2]-J[c+16>>2]>>3);f=J[c+16>>2];if((f|0)==J[c+20>>2])break i;d=0;while(1){e=O[(d<<3)+f>>3]*100;j:{if(R(e)<2147483648){f=~~e;break j}f=-2147483648}zd(b,f);d=d+1|0;f=J[c+16>>2];if(d>>>0>2]-f>>3>>>0)continue;break}}d=J[a+4>>2]}if(d&32){d=K[a+131|0];c=d<<24>>24<0;lf(b,c?J[a+120>>2]:a+120|0,c?J[a+124>>2]:d);d=J[a+4>>2]}if(d&128){c=b;b=K[a+143|0];d=b<<24>>24<0;lf(c,d?J[a+132>>2]: +a+132|0,d?J[a+136>>2]:b)}}function hV(a,b){var c=0,d=0,e=0,f=0,g=0;e=fc-144|0;fc=e;a:{if(!J[a+72>>2])break a;f=J[a+68>>2];if(!f|!J[a+76>>2])break a;b:{c:{d:{e:{f:{d=L[a+138>>1];if(!(K[a+13|0]&64|((d|0)!=1|L[a+90>>1]!=6))){d=L[a+204>>1];if(f>>>0<0-d>>>0)c=((d+f|0)-1>>>0)/(d>>>0)|0;else c=0;d=P(c,d);f=L[a+84>>1];c=vEb(d,0,f,0);g=(jc|0)!=0;g:{h:{if(f){if(!g)break h;f=J[a>>2];c=J[a+628>>2];J[e+64>>2]=73145;Uc(c,f,74135,e- -64|0);f=L[a+84>>1];c=vEb(f,0,d,0);g=(jc|0)!=0;d=!f;break f}if(c&7)break g;d=1; +break f}if(!(c&7))break e;if(!g)break g;d=J[a>>2];c=J[a+628>>2];J[e+80>>2]=73145;Uc(c,d,74135,e+80|0);c=0}d=(c>>>3|0)+1|0;break c}c=vEb(L[a+84>>1],0,f,0);if(jc){d=J[a>>2];c=J[a+628>>2];J[e+128>>2]=72535;Uc(c,d,74135,e+128|0);d=L[a+138>>1];c=0}i:{if((d|0)!=1)break i;d=L[a+98>>1];c=vEb(d,0,c,0);f=jc;if(!d|!f)break i;d=J[a>>2];c=J[a+628>>2];J[e+112>>2]=72535;Uc(c,d,74135,e+112|0);c=0}f=(c>>>3|0)+((c&7)!=0)|0;c=vEb(f,0,b,0);d=jc;if(!f|!d)break b;c=J[a>>2];b=J[a+628>>2];J[e+96>>2]=73145;Uc(b,c,74135,e+ +96|0);c=0;break b}if(d)break d}if(!g)break d;d=J[a>>2];c=J[a+628>>2];J[e+48>>2]=73145;Uc(c,d,74135,e+48|0);c=0}d=c>>>3|0}c=L[a+206>>1];f=P(c,L[a+204>>1]);if(!f){c=0;Uc(J[a+628>>2],J[a>>2],73572,0);break a}if(0-c>>>0>b>>>0)b=((b+c|0)-1>>>0)/(c>>>0)|0;else b=0;c=vEb(d,0,P(b,c),0);b=jc;if(!(!d|!b)){c=J[a>>2];b=J[a+628>>2];J[e+32>>2]=73145;Uc(b,c,74135,e+32|0);c=0}b=(c|0)/(f|0)|0;if((b|0)>=0){c=(b<<1)+c|0;break b}d=J[a>>2];b=J[a+628>>2];J[e+16>>2]=73145;Uc(b,d,74135,e+16|0)}d=J[a+76>>2];c=vEb(d,0,c,0); +b=jc;if(!d|!b)break a;b=J[a>>2];a=J[a+628>>2];J[e>>2]=73145;Uc(a,b,74135,e);c=0}fc=e+144|0;return c}function d1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(J[d>>2]<=0){if(!J[c>>2]){J[c>>2]=308;return 0}a=J[a+8>>2];c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);d=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);H[b+260|0]=d;H[b+261|0]=d>>>8;H[b+262|0]=d>>>16;H[b+263|0]=d>>>24;H[b+264|0]=c;H[b+265|0]=c>>>8;H[b+266|0]=c>>>16;H[b+267|0]=c>>>24;c=K[a+44|0]|K[a+45|0]<<8|(K[a+46|0]<<16|K[a+47|0]<<24);d=K[a+40| +0]|K[a+41|0]<<8|(K[a+42|0]<<16|K[a+43|0]<<24);H[b+300|0]=d;H[b+301|0]=d>>>8;H[b+302|0]=d>>>16;H[b+303|0]=d>>>24;H[b+304|0]=c;H[b+305|0]=c>>>8;H[b+306|0]=c>>>16;H[b+307|0]=c>>>24;c=K[a+36|0]|K[a+37|0]<<8|(K[a+38|0]<<16|K[a+39|0]<<24);d=K[a+32|0]|K[a+33|0]<<8|(K[a+34|0]<<16|K[a+35|0]<<24);H[b+292|0]=d;H[b+293|0]=d>>>8;H[b+294|0]=d>>>16;H[b+295|0]=d>>>24;H[b+296|0]=c;H[b+297|0]=c>>>8;H[b+298|0]=c>>>16;H[b+299|0]=c>>>24;c=K[a+28|0]|K[a+29|0]<<8|(K[a+30|0]<<16|K[a+31|0]<<24);d=K[a+24|0]|K[a+25|0]<<8|(K[a+ +26|0]<<16|K[a+27|0]<<24);H[b+284|0]=d;H[b+285|0]=d>>>8;H[b+286|0]=d>>>16;H[b+287|0]=d>>>24;H[b+288|0]=c;H[b+289|0]=c>>>8;H[b+290|0]=c>>>16;H[b+291|0]=c>>>24;c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);H[b+276|0]=d;H[b+277|0]=d>>>8;H[b+278|0]=d>>>16;H[b+279|0]=d>>>24;H[b+280|0]=c;H[b+281|0]=c>>>8;H[b+282|0]=c>>>16;H[b+283|0]=c>>>24;c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<< +24);H[b+268|0]=a;H[b+269|0]=a>>>8;H[b+270|0]=a>>>16;H[b+271|0]=a>>>24;H[b+272|0]=c;H[b+273|0]=c>>>8;H[b+274|0]=c>>>16;H[b+275|0]=c>>>24;H[b+34|0]=1;J[b+8>>2]=b+260}else b=0;return b|0}function _g(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=fc-16|0;fc=h;d=J[a+36>>2];a:{if(!d)break a;e=J[d>>2];if(!e|!J[d+12>>2])break a;b=J[d+16>>2];if(!b)break a;c=J[e+16>>2];if(!c)break a;b:{c:{b=b-(J[c+32>>2]?0:J[c>>2])|0;if(b>>>0>=251){b=wx(c,b-80|0);if(b){J[d+16>>2]=J[d+16>>2]-b;J[d+36>>2]=b+J[d+36>>2]}e=J[d>>2];c=J[e+ +16>>2];if(!c)break c;if(J[c+32>>2])b=0;else{b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;b=J[c+20>>2];g=J[c+4>>2];if(!((b|0)==(g|0)|g>>>0>2147483646)){J[c+20>>2]=g;b=g}b=b+J[c>>2]|0}J[d+20>>2]=b}if(J[c+32>>2])break b;b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;b=J[c+20>>2];f=J[c+4>>2];if(!((b|0)==(f|0)|f>>>0>2147483646)){J[c+20>>2]=f;b=f}if(b>>>0>250)break a;break b}c=0;J[d+20>>2]=0}if(!(J[e+28>>2]|!J[e+4>>2])){CC(e,500);c=J[J[d>>2]+16>>2]}e=0;e=J[c+32>> +2]|!c?e:J[c>>2];b=J[d+12>>2];if((e|0)!=(b|0)){J[d+12>>2]=e;J[d+16>>2]=(J[d+16>>2]-b|0)+e}e=0;if(!(J[c+32>>2]|!c)){b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;b=J[c+20>>2];f=J[c+4>>2];if(!((b|0)==(f|0)|f>>>0>2147483646)){J[c+20>>2]=f;b=f}e=b+J[c>>2]|0}J[d+20>>2]=e}b=J[a+36>>2];d:{if(K[J[b+16>>2]])break d;if((Nd(b)|0)>0)break d;while(1){b=J[a+40>>2];if((b|0)<2)break d;e:{f:{g:{if(!J[693384]){c=b-1|0;J[a+40>>2]=c;d=J[a+48>>2];break g}J[h>>2]=b;d=0;kc[J[663297]](J[693366],36125, +h);b=J[a+40>>2];if((b|0)<=0)break e;c=b-1|0;J[a+40>>2]=c;d=J[a+48>>2];g=0;f=0;if((b|0)==1)break f}g=J[((b<<2)+d|0)-8>>2];f=c}J[a+36>>2]=g;b=(f<<2)+d|0;d=J[b>>2];J[b>>2]=0}th(d);b=J[a+36>>2];if(K[J[b+16>>2]])break d;if((Nd(b)|0)<=0)continue;break}}fc=h+16|0}function _5a(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;d=fc-48|0;fc=d;m=J[a+420>>2];f=J[a+464>>2];a:{b:{if(J[f+40>>2]|!J[a+280>>2])break b;e=J[a+460>>2];J[e+24>>2]=J[e+24>>2]+(J[f+12>>2]/8|0);J[f+12>>2]=0;g=0;if(!(kc[J[e+ +8>>2]](a)|0))break a;if(J[a+336>>2]>0){e=0;while(1){J[((e<<2)+f|0)+20>>2]=0;e=e+1|0;if((e|0)>2])continue;break}}J[f+16>>2]=0;J[f+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[f+36>>2]=0}if(!J[f+36>>2]){J[d+44>>2]=a;c=J[a+24>>2];i=J[c>>2];J[d+28>>2]=i;g=J[c+4>>2];J[d+32>>2]=g;e=J[f+12>>2];h=J[f+8>>2];J[d+24>>2]=J[f+32>>2];k=J[f+28>>2];J[d+16>>2]=J[f+24>>2];J[d+20>>2]=k;k=J[f+20>>2];J[d+8>>2]=J[f+16>>2];J[d+12>>2]=k;if(J[a+364>>2]>0){i=0;while(1){c=i<<2;k=J[c+b>>2];l=J[(a+c|0)+368>>2]<<2;c=J[((J[J[(l+ +a|0)+340>>2]+20>>2]<<2)+f|0)+44>>2];c:{d:{e:{if((e|0)>7)break e;j=d+28|0;g=0;if(!Qg(j,h,e,0))break a;h=J[d+36>>2];e=J[d+40>>2];if((e|0)>7)break e;c=Ni(j,h,e,c,1);break d}g=h>>e-8&255;j=J[(c+(g<<2)|0)+144>>2];if(j){c=K[(c+g|0)+1168|0];e=e-j|0;break c}c=Ni(d+28|0,h,e,c,9)}g=0;if((c|0)<0)break a;h=J[d+36>>2];e=J[d+40>>2]}if(c){if((c|0)>(e|0)){g=0;if(!Qg(d+28|0,h,e,c))break a;h=J[d+36>>2];e=J[d+40>>2]}e=e-c|0;c=c<<2;g=J[c+55920>>2];j=h>>e&g;c=j-((j|0)<=J[c+55916>>2]?g:0)|0}else c=0;g=d+l|0;c=c+J[g+12>> +2]|0;J[g+12>>2]=c;I[k>>1]=c<>2])continue;break}g=J[d+32>>2];i=J[d+28>>2];c=J[a+24>>2]}J[c+4>>2]=g;J[c>>2]=i;J[f+12>>2]=e;J[f+8>>2]=h;J[f+32>>2]=J[d+24>>2];a=J[d+20>>2];J[f+24>>2]=J[d+16>>2];J[f+28>>2]=a;a=J[d+12>>2];J[f+16>>2]=J[d+8>>2];J[f+20>>2]=a}J[f+40>>2]=J[f+40>>2]-1;g=1}fc=d+48|0;return g|0}function oKa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=fc-32|0;fc=b;J[b+20>>2]=92;J[b+24>>2]=0;J[699344]=0;H[b+31|0]=1;c=_(4,16)|0;e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((e| +0)!=1){J[b+8>>2]=c;J[b+12>>2]=2;J[b+16>>2]=-2147483644;J[c+8>>2]=0;J[c>>2]=92;J[c+4>>2]=92;J[699344]=0;ca(3697,a|0,b+20|0,b+8|0);e=J[699344];J[699344]=0;if((e|0)==1)break g;if(H[b+19|0]<0)uc(J[b+8>>2]);if(H[b+31|0]<0)uc(J[b+20>>2]);J[b+20>>2]=34;J[b+24>>2]=0;J[699344]=0;H[b+31|0]=1;c=_(4,16)|0;e=J[699344];J[699344]=0;if((e|0)==1)break e;J[b+8>>2]=c;J[b+12>>2]=2;J[b+16>>2]=-2147483644;J[c+8>>2]=0;J[c>>2]=92;J[c+4>>2]=34;J[699344]=0;ca(3697,a|0,b+20|0,b+8|0);e=J[699344];J[699344]=0;if((e|0)==1)break d; +if(H[b+19|0]<0)uc(J[b+8>>2]);if(H[b+31|0]<0)uc(J[b+20>>2]);e=J[a>>2];i=K[a+11|0];g=i<<24>>24;c=(g|0)<0;d=c?e:a;h=J[a+4>>2];f=c?h:i;c=d+(f<<2)|0;h:{i:{if(!f)break i;while(1){if(J[d>>2]<32)break i;d=d+4|0;if((c|0)!=(d|0))continue;break}d=c;break h}if((c|0)==(d|0))break h;f=d+4|0;if((c|0)==(f|0))break h;while(1){e=J[f>>2];if((e|0)>=32){J[d>>2]=e;d=d+4|0}f=f+4|0;if((c|0)!=(f|0))continue;break}h=J[a+4>>2];e=J[a>>2];i=K[a+11|0];g=i}f=h;h=g<<24>>24;c=(h|0)<0;f=c?f:i;c=c?e:a;g=d-c>>2;if(f>>>0>>0)break a; +c=(c+(f<<2)|0)-d|0;j:{if((c|0)==-4){k:{if((h|0)<0){J[a+4>>2]=g;break k}H[a+11|0]=g;e=a}J[(g<<2)+e>>2]=0;break j}sv(a,g,c>>2)}fc=b+32|0;return}d=Z()|0;break f}d=Z()|0;if(H[b+19|0]>=0)break f;uc(J[b+8>>2])}if(H[b+31|0]>=0)break b;uc(J[b+20>>2]);ba(d|0);B()}d=Z()|0;break c}d=Z()|0;if(H[b+19|0]>=0)break c;uc(J[b+8>>2])}if(H[b+31|0]>=0)break b;uc(J[b+20>>2])}ba(d|0);B()}as(a);B()}function b5(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;i=R(d);j=R(c);i=i>j?i:j;j=R(b);q=R(a);j=j>q? +j:q;i=i>j?i:j;if(!(i==0|!(i<1E-8|i>1E8))){i=oT(-Lp(fT(i)));d=i*d;c=i*c;a=i*a;q=R(a);b=i*b}h=1.7976931348623157E308;a:{if(q<1E-12){i=d;j=c;a=b;break a}h=0;if(R(d)<1E-12){i=c;j=b;break a}h=b/a/-3;m=a*h;j=m+b;i=h*j+c;s=(h*i+d)/a<0?-1:1;m=-(h*(m+j)+i)/a;o=Y(m);m=h-s*(m>0?(o>1?o:1)*1.324717957244746:1);if(m==h)break a;while(1){h=m;o=a*h;j=o+b;i=j*h+c;o=(o+j)*h+i;if(o!=0)m=h+(i*h+d)/o/-1.0000000000000002;if(s*m>s*h)continue;break}if(!(R(d/h)>2];k=O[n>>3]!=h;if((p|0)==1)break d;l=O[n+8>>3]!=h}e:{if(!(!p|k|l)|h==1.7976931348623157E308)break e;a=O[f>>3];if(!(a+-1E-12>3];if(!(b+1E-12>h))break e;a=a>h?a:b>2];l=J[e+8>>2];f:{if(f>>>0>>0){O[f>>3]=a;J[e+4>>2]=f+8;break f}k=J[e>>2];r=f-k>>3;g=r+1|0;if(g>>>0>=536870912){J[699344]=0;$(2494,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;break b}l=l-k|0;n=l>> +2;n=l>>>0>=2147483640?536870911:g>>>0>>0?n:g;g:{if(!n){l=0;break g}if(n>>>0>=536870912){J[699344]=0;ka(209);e=J[699344];J[699344]=0;if((e|0)!=1)break b;break c}J[699344]=0;l=_(4,n<<3)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c}g=(r<<3)+l|0;O[g>>3]=a;r=g+8|0;if((f|0)!=(k|0))while(1){g=g-8|0;f=f-8|0;O[g>>3]=O[f>>3];if((f|0)!=(k|0))continue;break}J[e+8>>2]=(n<<3)+l;J[e+4>>2]=r;J[e>>2]=g;if(!k)break f;uc(k)}p=p+1|0}return p}ea(0)|0;Bc();B()}B()}function C2a(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;k=fc-16|0;l=J[a+12>>2];i=J[a+8>>2];h=J[a+4>>2];p=J[h+24>>2];f=J[h+56>>2];d=J[a+16>>2];j=J[a+20>>2];if(d>>>0>>0?f:0){J[h+56>>2]=0;c=1}else c=0;while(1){a:{b:{c:{d:{e:{f:{if(!c){c=i;if(c>>>0>=l>>>0|d>>>0>=j>>>0)break c;i=c+2|0;f=L[c>>1];if(f>>>0<=127){H[d|0]=f;d=d+1|0;break a}if(f>>>0<=2047){H[d|0]=f>>>6|192;g=f&63|-128;c=d+1|0;if(c>>>0>>0){H[d+1|0]=g;d=d+2|0;break a}H[h+63|0]=1;H[h+76|0]=g;J[b>>2]=15;d=c;break a}if((p|0)==740848|(f&63488)!=55296)break f; +c=1;continue}if(i>>>0>=l>>>0)break d;if(f&1024)break e;c=L[i>>1];if((c&64512)!=56320)break e;i=i+2|0;f=(c+(f<<10)|0)-56613888|0}c=3;m=j-d|0;e=(m|0)>3;g=e?d:k+12|0;g:{if((f|0)<=65535){c=2;e=f>>>12|-32;break g}H[(e?d:k+12|0)+1|0]=f>>>12&63|128;e=f>>>18|-16}H[g|0]=e;e=c+g|0;H[e|0]=f&63|128;H[e-1|0]=f>>>6&63|128;h:{if((d|0)!=(g|0)){e=k+12|0;n=e+c|0;if(g>>>0>n>>>0)break a;e=c+e|0;i:{if(!((e-g|0)+1&1)){c=d;d=g;break i}o=K[g|0];j:{if(d>>>0>=j>>>0){c=H[h+63|0];H[h+63|0]=c+1;H[(c+h|0)+76|0]=o;J[b>>2]=15;c= +d;break j}H[d|0]=o;c=d+1|0}d=((m|0)>3?d:k+12|0)+1|0}if((g|0)!=(e|0))break h;break b}d=(d+c|0)+1|0;break a}while(1){e=K[d|0];k:{if(c>>>0>>0){H[c|0]=e;c=c+1|0;break k}g=H[h+63|0];H[h+63|0]=g+1;H[(h+g|0)+76|0]=e;J[b>>2]=15}e=K[d+1|0];l:{if(c>>>0>=j>>>0){g=H[h+63|0];H[h+63|0]=g+1;H[(h+g|0)+76|0]=e;J[b>>2]=15;break l}H[c|0]=e;c=c+1|0}d=d+2|0;if(n>>>0>=d>>>0)continue;break}break b}J[h+56>>2]=f;J[b>>2]=12;break c}J[h+56>>2]=f}if(!(d>>>0>>0|i>>>0>=l>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=i;J[a+16>>2]= +d;return}d=c}c=0;continue}}function xO(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;a:{f=J[a+4>>2];if(!f)break a;g=J[a+44>>2];if(!g)break a;d=f+40|0;i=b>>>0>=g>>>0;if(!i){e=d+(b<<2)|0;j=K[e|0];k=K[e+1|0];l=K[e+2|0];m=K[e+3|0]}e=0;if(c>>>0>>0){e=d+(c<<2)|0;n=K[e|0];h=K[e+3|0];o=K[e+2|0];e=K[e+1|0]}b:{if(!i){d=d+(b<<2)|0;H[d|0]=n;H[d+1|0]=e;H[d+2|0]=o;H[d+3|0]=h;H[a+481|0]=0;f=J[a+4>>2];if(!f)break b}if(M[a+44>>2]<=c>>>0)break b;d=(c<<2)+f|0;H[d+41|0]=k;H[d+ +40|0]=j;H[d+42|0]=l;H[d+43|0]=m;H[a+481|0]=0}e=J[a+20>>2];if((e|0)<=0)break a;d=J[a+16>>2];if((d|0)<=0)break a;j=b&15;m=b&1;k=c&15;l=c&1;h=0;while(1){f=0;if((d|0)>0){while(1){c:{d:{e:{f:{g=L[a+26>>1];if((g|0)!=8){i=J[a+56>>2]+P(J[a+52>>2],h)+(P(f,g)>>>3)|0;e=K[i|0];d=0;g:{h:{i:{g=g-1|0;switch(g|0){case 0:break h;case 3:break i;default:break g}}d=(f^-1)<<2&4;d=(e&15<>>d|0;break g}d=(f^-1)&7;d=(e&1<>>d|0}if((b|0)!=(d|0))break c;d=b;switch(g|0){case 0:break e;case 3:break f;default:break c}}e= +(J[a+56>>2]+P(J[a+52>>2],h)|0)+f|0;d=K[e|0];if((d|0)!=(b|0))break c;H[e|0]=c;break d}d=(f^-1)<<2&4;H[i|0]=e&(15<>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],h)|0)+f|0]=b;break j}d=J[a+56>>2]+P(J[a+52>>2],h)+(P(e,f)>>>3)|0;k:switch(e-1|0){case 3:e=d;g=K[d|0];d=(f^-1)<<2&4;H[e|0]=g&(15<> +2];f=f+1|0;if((d|0)>(f|0))continue;break}e=J[a+20>>2]}h=h+1|0;if((h|0)<(e|0))continue;break}}}function Fia(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=fc-16|0;fc=l;n=mG(g);i=l+4|0;g=cG(g);kc[J[J[g>>2]+20>>2]](i,g);a:{if(K[i+11|0]>>>7|0)h=J[i+4>>2];else h=K[i+11|0]&127;b:{if(!h){J[699344]=0;ha(6847,n|0,a|0,c|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;g=(c-a|0)+d|0;J[f>>2]=g;break a}J[f>>2]=d;c:{d:{i=a;h=K[i|0];switch(h-43|0){case 0:case 2:break d; +default:break c}}J[699344]=0;i=aa(6869,n|0,h<<24>>24)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;h=J[f>>2];J[f>>2]=h+1;H[h|0]=i;i=a+1|0}if(!(K[i|0]!=48|(c-i|0)<2|(K[i+1|0]|32)!=120)){J[699344]=0;h=aa(6869,n|0,48)|0;j=J[699344];J[699344]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+1;H[j|0]=h;h=H[i+1|0];J[699344]=0;h=aa(6869,n|0,h|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break b;j=J[f>>2];J[f>>2]=j+1;H[j|0]=h;i=i+2|0}J[699344]=0;Ep(i,c);h=J[699344];J[699344]=0;if((h|0)==1)break b;J[699344]=0;o=_(6838, +g|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;j=0;g=i;while(1){e:{if(c>>>0<=g>>>0){g=J[f>>2];J[699344]=0;Ep((i-a|0)+d|0,g);g=J[699344];J[699344]=0;if((g|0)==1)break e;g=J[f>>2];break a}h=l+4|0;f:{if(K[h+11|0]>>>7|0){k=J[h>>2];break f}k=h}p=!K[k+j|0];if(K[h+11|0]>>>7|0)k=J[h>>2];else k=h;if(!(p|H[k+j|0]!=(m|0))){m=J[f>>2];J[f>>2]=m+1;H[m|0]=o;if(K[h+11|0]>>>7|0)h=J[h+4>>2];else h=K[h+11|0]&127;j=(h-1>>>0>j>>>0)+j|0;m=0}h=H[g|0];J[699344]=0;h=aa(6869,n|0,h|0)|0;k=J[699344];J[699344]=0;if((k|0)!= +1){k=J[f>>2];J[f>>2]=k+1;H[k|0]=h;g=g+1|0;m=m+1|0;continue}}break}}a=Z()|0;jd(l+4|0);ba(a|0);B()}J[e>>2]=(b|0)==(c|0)?g:(b-a|0)+d|0;jd(l+4|0);fc=l+16|0}function V5a(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;g=fc-112|0;fc=g;a:{b:{c:{d:{e:{f:{g:{if(!J[a+168>>2]){b=0;break g}Ac(g+8|0,0,104);J[699344]=0;h=_(4,12)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d;h:{if(H[b+11|0]>=0){i=J[b+4>>2];J[h>>2]=J[b>>2];J[h+4>>2]=i;J[h+8>>2]=J[b+8>>2];break h}i=J[b+4>>2];b=J[b>>2];J[699344]=0; +ca(15,h|0,b|0,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break c}J[699344]=0;J[g+8>>2]=h;b=_(4,4)|0;h=J[699344];J[699344]=0;if((h|0)==1)break d;J[b>>2]=0;J[699344]=0;J[g+28>>2]=b;h=_(4,4)|0;i=J[699344];J[699344]=0;if((i|0)==1)break d;J[h>>2]=0;J[g+32>>2]=h;d=J[d>>2];if(d&1)J[b>>2]=1;if(d&2)J[h>>2]=1;b=J[a+168>>2];d=J[J[b>>2]+20>>2];J[699344]=0;b=_(d|0,b|0)|0;d=J[699344];J[699344]=0;i:{j:{k:{if((d|0)==1)break k;d=K[a+164|0];h=J[J[b>>2]+20>>2];J[699344]=0;d=ga(h|0,b|0,g+8|0,d|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break k;if(d)break j;b=0;break i}a=Z()|0;break a}J[g+4>>2]=J[d+24>>2];b=J[J[a>>2]+148>>2];J[699344]=0;b=ja(b|0,a|0,d+12|0,g+4|0,c|0,e|0,f|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;if((b|0)!=1)break i;f=0;c=J[g+28>>2];b=0;l:{if(!c)break l;b=0;if(J[c>>2]!=1)break l;b=!J[d+40>>2]}c=J[g+32>>2];f=!c|J[c>>2]!=1?f:!J[d+44>>2];c=J[a+8>>2];J[g+4>>2]=b;b=J[J[c>>2]+60>>2];J[699344]=0;d=b;b=g+4|0;da(d|0,c|0,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;a=J[a+8>>2];J[g+4>>2]=f;c=J[J[a>> +2]+56>>2];J[699344]=0;da(c|0,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;b=1}bp(g+8|0)}fc=g+112|0;return b|0}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;uc(h);break a}a=Z()|0}bp(g+8|0);ba(a|0);B()}function Mf(a,b){var c=0,d=0,e=0,f=0,g=0;f=fc-176|0;fc=f;a:{if(!a|!b)break a;e=J[a+36>>2];if(!e|J[a+172>>2]==-1)break a;d=J[e+16>>2];g=K[d|0];c=g<<24>>24;if((c|0)>=32){J[b>>2]=1;c=K[d|0];break a}b:{c:{d:{if(J[a+256>>2]==1){if((c|0)<0){if(!(g&64)|(c|0)==-64)break c;c=K[d+1|0];if(!c){Nd(e); +e=J[a+36>>2];d=J[e+16>>2];c=K[d+1|0]}if((c&192)!=128)break c;if((g&224)==224){c=K[d+2|0];if(!c){Nd(e);e=J[a+36>>2];d=J[e+16>>2];c=K[d+2|0]}if((c&192)!=128)break c;if((g&240)!=240)break d;if(!K[d+3|0]){Nd(e);e=J[a+36>>2];d=J[e+16>>2]}if((g&248)!=240|(K[d+3|0]&192)!=128)break c;J[b>>2]=4;c=K[d+3|0]&63|((K[d+1|0]&63)<<12|(K[d|0]&7)<<18|(K[d+2|0]&63)<<6);if(c>>>0>=65536)break b;break c}J[b>>2]=2;c=K[d+1|0]&63|(K[d|0]&31)<<6;if(c>>>0<128)break c;break b}J[b>>2]=1;e:{c=K[d|0];f:{if(c)break f;Nd(e);e=J[a+ +36>>2];d=J[e+16>>2];c=K[d|0];if(c)break f;c=0;if(M[e+20>>2]<=d>>>0)break e;DC(a,34811,0);e=J[a+36>>2];d=J[e+16>>2];c=K[d|0]}if((c&255)!=13)break e;c=10;if(K[d+1|0]!=10)break a;J[a+200>>2]=J[a+200>>2]+1;J[e+16>>2]=d+1;break a}c=c&255;break a}J[b>>2]=1;c=K[d|0];if((c|0)!=13)break a;c=10;if(K[d+1|0]!=10)break a;J[a+200>>2]=J[a+200>>2]+1;J[e+16>>2]=d+1;break a}J[b>>2]=3;c=K[d+2|0]&63|((K[d+1|0]&63)<<6|(K[d|0]&15)<<12);if(c>>>0>=2048)break b}c=J[e+16>>2];if((J[e+20>>2]-c|0)<=3){c=0;J[b>>2]=0;break a}d= +K[c|0];e=K[c+1|0];g=K[c+2|0];J[f+12>>2]=K[c+3|0];J[f+8>>2]=g;J[f+4>>2]=e;J[f>>2]=d;c=f+16|0;Wi(c,149,36527,f);tk(a,9,4560,c);J[a+256>>2]=10;J[b>>2]=1;c=K[J[J[a+36>>2]+16>>2]];break a}if(c>>>0<55296|c-57344>>>0<8190|c-65536>>>0<1048576)break a;DC(a,34779,c)}fc=f+176|0;return c}function Iia(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;if((c|0)>0){g=J[a+584>>2];while(1){if(!(K[g+4|0]&2)){j=J[a+584>>2];h=J[j+64>>2];e=J[j+68>>2];a:{if(!(K[j+28|0]&4))break a;if((e|0)==4){e=4;break a}i=((e| +0)>3?-4:4)+e|0;b:{if(i>>>0<=e>>>0)break b;if(J[a+608>>2]>=J[a+600>>2])pf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=h;d=J[a+608>>2]+1|0;J[a+608>>2]=d;i=4;f=-4;if((e|0)<4){h=0;e=8;break b}while(1){if(J[a+600>>2]<=(d|0))pf(a);d=J[a+604>>2];J[a+604>>2]=d+1;h=0;H[d|0]=0;d=J[a+608>>2]+1|0;J[a+608>>2]=d;e=8;f=f-8|0;if(f>>>0>8)continue;break}}e=e-i|0;if(e)break a;if(J[a+608>>2]>=J[a+600>>2])pf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=h;J[a+608>>2]=J[a+608>>2]+1;h=0;e=8}i=1;d=12;if(H[j+28|0]&1){i=!J[j+92>>2]| +2;d=13}c:{if(d>>>0<=e>>>0)break c;d=d-e|0;e=i>>>d|h;if(J[a+608>>2]>=J[a+600>>2])pf(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;h=0;e=8;if(d>>>0<9)break c;while(1){d=d-8|0;e=i>>>d|0;if(J[a+600>>2]<=(f|0))pf(a);f=J[a+604>>2];J[a+604>>2]=f+1;H[f|0]=e;f=J[a+608>>2]+1|0;J[a+608>>2]=f;e=8;if(d>>>0>8)continue;break}}f=J[(d<<2)+95808>>2]&i;d=e-d|0;f=f<>2]>=J[a+600>>2])pf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=f;J[a+608>>2]=J[a+608>>2]+1;f=0;d=8}J[j+68>> +2]=d;J[j+64>>2]=f}d:{if(H[g+28|0]&1){e:{if(!J[g+92>>2]){hR(a,b,J[g+12>>2]);J[g+92>>2]=1;d=J[g+100>>2];break e}tR(a,b,J[g+96>>2],J[g+12>>2]);d=J[g+100>>2]-1|0;J[g+100>>2]=d}if(!d){J[g+92>>2]=0;J[g+100>>2]=J[g+104>>2]-1;break d}Ue(J[g+96>>2],b,J[g+8>>2]);break d}hR(a,b,J[g+12>>2])}d=J[g+8>>2];b=d+b|0;c=c-d|0;if((c|0)>0)continue;break}}return 1}function e3(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,p=0,q=0,r=0,s=0;k=fc-128|0;fc=k;h=J[a+8>>2];l=J[a+16>>2];j=H[b+c|0];g=j<<2&224;a:{b:{if(!g){if((j| +0)<=63){m=((j&7)<<5)+32|0;g=0;break b}J[k>>2]=-1;g=1}m=((j&7)<<5)+32|0;i=1;if(m>>>0<=g>>>0)break a}o=e<<8;r=h+(c<<10)|0;s=(d<<1)+l|0;j=-1;while(1){c=g;g=J[(c<<2)+r>>2];c:{if((g|0)>=0){d:{e=g>>>24|0;if(H[e+b|0]<0)break d;if(e3(a,b,e,(g&16777215)+d|0,c|o,f))break d;i=0;break a}J[((c&31)<<2)+k>>2]=-1;break c}e=-1;e:{f:switch(g>>>20&15){case 0:e=g&65535;break e;case 4:e=L[((g&65535)<<1)+s>>1];e=e>>>0>=65534?-1:e;break e;case 5:g=(g&65535)+d|0;e=L[(g<<1)+l>>1];if(e>>>0<55296)break e;g=g+1|0;if(e>>>0<= +56319){e=(L[(g<<1)+l>>1]+(e<<10&1047552)|0)+9216|0;break e}i=(e|0)!=57344;e=-1;if(i)break e;e=L[(g<<1)+l>>1];break e;case 1:break f;default:break e}e=(g&1048575)+65536|0}J[((c&31)<<2)+k>>2]=e;j=e&j}g=c+1|0;if(!(g&31|(j|0)<0)){j=-1;c=c-31|o;e=0;g:{h:switch(K[f+172|0]-8|0){case 0:if(c>>>0<65536)break g;if(c>>>0<=9371647){c=c&32767;break g}c=c&65407;break g;case 1:break h;default:break g}if(c>>>0<16777216)break g;if(c>>>0<=2399141887){c=c&8388607;break g}c=c&16744447}i=J[f+160>>2];p=J[f+24>>2];while(1){h= +J[(e<<2)+k>>2];if((h|0)>=0){q=h&15;n=((L[(h>>>9&8388606)+p>>1]<<2)+p|0)+(h>>>2&252)|0;h=q|J[n>>2]<<4&1048560;i:{j:switch(K[f+172|0]-2|0){case 0:case 7:h=i+P(h,3)|0;H[h+2|0]=c;H[h+1|0]=c>>>8;H[h|0]=c>>>16;break i;case 1:J[i+(h<<2)>>2]=c;break i;default:break j}I[i+(h<<1)>>1]=c}J[n>>2]=J[n>>2]|1<<(q|16)}c=c+1|0;e=e+1|0;if((e|0)!=32)continue;break}}if(g>>>0>>0)continue;break}i=1}fc=k+128|0;return i}function Mkb(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;e=a+10|0;if(e>>>0> +M[b+160>>2])pe(b,8);l=K[a+9|0]|(K[a+7|0]<<16|K[a+6|0]<<24|K[a+8|0]<<8);c=K[a+2|0]|K[a+3|0]<<8|(K[a+4|0]<<16|K[a+5|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!(h>>>0<10|J[b+160>>2]-a>>>0>>0))if((h-10>>>0)/11>>>0>=l>>>0)break a;pe(b,8)}if(l){d=1;while(1){m=K[e+2|0]|(K[e+1|0]<<8|K[e|0]<<16);c=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(!(f>>> +0>>0&c>>>0>>0))pe(b,8);if(d>>>0>m>>>0)pe(b,8);b:{if(!c)break b;d=a+c|0;c=d+4|0;if(c>>>0>M[b+160>>2])pe(b,8);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);g=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);c:{if(g>>>0>J[b+160>>2]-c>>>2>>>0){pe(b,8);break c}if(!g)break b}d=0;i=0;while(1){j=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);k=j+K[c+3|0]|0;if(k>>>0>=1114112)pe(b,8);if(i>>>0>j>>>0)pe(b,8);c=c+4|0;i=k+1|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}d:{if(!f)break d;d=a+f|0;c=d+4|0;if(c>>>0>M[b+160>>2])pe(b, +8);d=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);e:{if(d>>>0>(J[b+160>>2]-c>>>0)/5>>>0){pe(b,8);break e}if(!d)break d}i=0;f=0;while(1){j=K[c+3|0];k=K[c+4|0];g=K[c+2|0]|(K[c+1|0]<<8|K[c|0]<<16);if(g>>>0>=1114112)pe(b,8);if(g>>>0>>0)pe(b,8);if(!(J[b+164>>2]<=0|M[b+172>>2]>(k|j<<8)>>>0))pe(b,16);c=c+5|0;i=g+1|0;f=f+1|0;if((d|0)!=(f|0))continue;break}}e=e+11|0;d=m+1|0;n=n+1|0;if((n|0)!=(l|0))continue;break}}return 0}function J4a(a){a=a|0;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;j=fc-16|0;fc=j;e=J[a+448>>2];if(J[a+336>>2]>0)while(1){f=b<<2;c=J[(f+a|0)+340>>2];d=J[c+12>>2];t=f+j|0,u=kc[J[J[a+4>>2]+32>>2]](a,J[((J[c+4>>2]<<2)+e|0)+72>>2],P(d,J[a+148>>2]),d,1)|0,J[t>>2]=u;b=b+1|0;if((b|0)>2])continue;break}c=J[e+28>>2];h=J[e+24>>2];a:{if((c|0)>(h|0)){p=e+32|0;b=J[a+356>>2];g=J[e+20>>2];while(1){if(b>>>0>g>>>0){while(1){k=0;f=0;m=J[a+336>>2];if((m|0)>0)while(1){d=k<<2;b=J[(d+a|0)+340>>2];n=J[b+60>>2]; +b:{if((n|0)<=0)break b;i=J[b+56>>2];if((i|0)<=0)break b;q=J[d+j>>2]+(h<<2)|0;o=i&7;l=0;r=P(g,i)<<7;s=i>>>0<8;while(1){b=J[(l<<2)+q>>2]+r|0;d=f;c=0;if(o)while(1){J[((d<<2)+e|0)+32>>2]=b;d=d+1|0;b=b+128|0;c=c+1|0;if((o|0)!=(c|0))continue;break}f=f+i|0;if(!s)while(1){c=(d<<2)+e|0;J[c+36>>2]=b+128;J[c+32>>2]=b;J[c+40>>2]=b+256;J[c+44>>2]=b+384;J[c+48>>2]=b+512;J[c+52>>2]=b+640;J[c+56>>2]=b+768;J[c+60>>2]=b+896;b=b+1024|0;d=d+8|0;if((f|0)!=(d|0))continue;break}l=l+1|0;if((n|0)!=(l|0))continue;break}}k= +k+1|0;if((m|0)!=(k|0))continue;break}if(!(kc[J[J[a+464>>2]+4>>2]](a,p)|0)){J[e+20>>2]=g;J[e+24>>2]=h;a=0;break a}b=J[a+356>>2];g=g+1|0;if(b>>>0>g>>>0)continue;break}c=J[e+28>>2]}g=0;J[e+20>>2]=0;h=h+1|0;if((h|0)<(c|0))continue;break}}f=J[a+148>>2]+1|0;J[a+148>>2]=f;b=J[a+328>>2];if(b>>>0>f>>>0){d=J[a+448>>2];c:{if(J[a+336>>2]>=2){J[d+28>>2]=1;break c}a=J[a+340>>2];if(f>>>0>>0){J[d+28>>2]=J[a+12>>2];break c}J[d+28>>2]=J[a+76>>2]}J[d+20>>2]=0;J[d+24>>2]=0;a=3;break a}kc[J[J[a+456>>2]+12>>2]](a); +a=4}fc=j+16|0;return a|0}function Qdb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=c+d|0;if(J[b>>2]?M[b+12>>2]>>0|i>>>0>M[b+4>>2]:1){d=J[a>>2];J[d+20>>2]=23;kc[J[d>>2]](a)}d=J[b+24>>2];a:{if(d>>>0<=c>>>0&d+J[b+16>>2]>>>0>=i>>>0)break a;if(!J[b+40>>2]){d=J[a>>2];J[d+20>>2]=71;kc[J[d>>2]](a)}if(J[b+36>>2]){g=J[b+16>>2];b:{if((g|0)<=0)break b;l=b+48|0;j=J[b+8>>2]<<7;h=P(j,J[b+24>>2]);f=J[b+20>>2];d=0;while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g| +0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break b;f=P(f,j);kc[J[b+52>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}J[b+36>>2]=0}d=0;g=J[b+16>>2];h=i-g|0;h=M[b+24>>2]>>0?c:(h|0)>0?h:0;J[b+24>>2]=h;if((g|0)<=0)break a;l=b+48|0;j=J[b+8>>2]<<7;h=P(j,h);f=J[b+20>>2];while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break a;f=P(f,j); +kc[J[b+48>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}d=J[b+28>>2];c:{d:{e:{if(i>>>0<=d>>>0)break e;f:{g:{h:{i:{if(c>>>0>d>>>0){if(!e)break i;d=J[a>>2];J[d+20>>2]=23;kc[J[d>>2]](a);d=c;break g}if(e)break g;break h}d=c}if(J[b+32>>2])break f;d=J[a>>2];J[d+20>>2]=23;kc[J[d>>2]](a);break c}J[b+28>>2]=i;if(!J[b+32>>2])break d}a=J[b+24>>2];d=d-a|0;a=i-a|0;if(d>>>0>=a>>>0)break e;h=J[b+8>>2]<<7;while(1){Re(J[J[b>>2]+(d<<2)>>2],h);d=d+1|0;if((a| +0)!=(d|0))continue;break}}if(!e)break c}J[b+36>>2]=1}return J[b>>2]+(c-J[b+24>>2]<<2)|0}function K9(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;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(M[J[c+(d<<2)>>2]+4>>2]>=M[J[c+(e<<2)>>2]+4>>2])break b;J[a>>2]=d;J[b>>2]=e;break a;case 3:d=b-4|0;e=J[d>>2];b=J[J[c>>2]+12>>2];g=J[J[(e<<2)+b>>2]+4>>2];h=J[a+4>>2];f=J[J[b+(h<<2)>>2]+4>>2];c=J[a>>2];i=J[b+(c<<2)>>2];if(f>>>0>=M[i+4>>2]){if(g>>>0>=f>>>0)break b;J[a+4>> +2]=e;J[d>>2]=h;c=J[a+4>>2];d=J[a>>2];if(M[J[b+(c<<2)>>2]+4>>2]>=M[J[b+(d<<2)>>2]+4>>2])break b;J[a+4>>2]=d;J[a>>2]=c;break a}if(g>>>0>>0){J[a>>2]=e;J[d>>2]=c;break a}J[a+4>>2]=c;J[a>>2]=h;e=J[d>>2];if(M[J[b+(e<<2)>>2]+4>>2]>=M[i+4>>2])break b;J[a+4>>2]=e;J[d>>2]=c;break a;case 4:lO(a,a+4|0,a+8|0,b-4|0,c);break a;case 5:mO(a,a+4|0,a+8|0,a+12|0,b-4|0,c);break a;case 0:case 1:break b;default:break c}g=a+4|0;e=a+8|0;h=J[J[c>>2]+12>>2];f=J[a+8>>2];i=J[h+(f<<2)>>2];j=J[i+4>>2];k=J[a+4>>2];l=J[J[h+(k<< +2)>>2]+4>>2];m=J[a>>2];n=J[h+(m<<2)>>2];d:{e:{if(l>>>0>=M[n+4>>2]){if(j>>>0>=l>>>0)break d;J[g>>2]=f;J[e>>2]=k;c=a;d=g;if(M[i+4>>2]>2])break e;break d}c=a;d=e;if(j>>>0>>0)break e;J[a+4>>2]=m;J[a>>2]=k;c=g;if(M[i+4>>2]>=M[n+4>>2])break d}J[c>>2]=f;J[d>>2]=m}d=a+12|0;if((d|0)==(b|0))break b;g=0;while(1){f:{c=d;i=J[c>>2];j=J[h+(i<<2)>>2];f=J[e>>2];if(M[j+4>>2]>=M[J[h+(f<<2)>>2]+4>>2])break f;while(1){g:{J[c>>2]=f;c=e;if((c|0)==(a|0)){c=a;break g}e=c-4|0;f=J[e>>2];if(M[j+4>>2]> +2]+4>>2])continue}break}J[c>>2]=i;g=g+1|0;if((g|0)!=8)break f;return(d+4|0)==(b|0)}e=d;c=d+4|0;d=c;if((b|0)!=(c|0))continue;break}}return 1}return 1}function IZ(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;n=d+e|0;a:{if((n|0)<0)break a;f=J[a+12>>2];if((f|0)<(n|0)){f=f?f<<1:1024;while(1){g=f;if((g|0)<(n|0)){f=g<<1;if((g|0)>0)continue}break}if((g|0)<0)break a;j=Wd(J[a+8>>2],g,12);J[a+8>>2]=j;f=J[a+12>>2];b:{if((g|0)<=(f|0))break b;i=g+(f^-1)|0;h=g-f&3;if(h)while(1){k=P(f,12)+j|0;J[k+8>> +2]=0;J[k>>2]=-1;f=f+1|0;m=m+1|0;if((h|0)!=(m|0))continue;break}if(i>>>0<3)break b;while(1){i=P(f,12)+j|0;J[i+8>>2]=0;J[i+12>>2]=-1;J[i>>2]=-1;J[i+20>>2]=0;J[i+24>>2]=-1;J[i+44>>2]=0;J[i+32>>2]=0;J[i+36>>2]=-1;f=f+4|0;if((g|0)!=(f|0))continue;break}}J[a+12>>2]=g}m=1;if((e|0)<=0)break a;while(1){g=J[c>>2];c:{if(!g){e=1;f=0;break c}e=0;f=0;m=0;k=0;if((g|0)<=0)break c;while(1){g=kc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1)break a;i=g>>31;f=f<<8|e>>>24;h=g;g=e<<8;e=h+g|0;f=f+i|0;f=e>>>0>>0?f+1|0:f;k=k+1| +0;if((k|0)>2])continue;break}}g=0;j=0;m=0;k=0;i=0;h=0;if(J[c+4>>2]>0){while(1){l=kc[J[J[b>>2]+28>>2]](b)|0;if((l|0)==-1)break a;o=l>>31;h=h<<8|i>>>24;p=l;l=i<<8;i=p+l|0;h=h+o|0;h=i>>>0>>0?h+1|0:h;k=k+1|0;if((k|0)>2])continue;break}if(!h&i>>>0>2147483647|h)break a}k=0;if(J[c+8>>2]>0){while(1){h=kc[J[J[b>>2]+28>>2]](b)|0;if((h|0)==-1)break a;l=h>>31;p=h;h=j<<8|g>>>24;o=g<<8;g=p+o|0;j=h+l|0;j=g>>>0>>0?j+1|0:j;k=k+1|0;if((k|0)>2])continue;break}if(!j&g>>>0>2147483647|j)break a}j= +J[a+8>>2]+P(d,12)|0;d:{if(J[j>>2]!=-1)break d;if(!f&e>>>0>2|f)return 0;J[j>>2]=i;J[j+8>>2]=e;J[j+4>>2]=g;if(J[a+16>>2]>=(d|0))break d;J[a+16>>2]=d}m=1;d=d+1|0;if((n|0)>(d|0))continue;break}}return m}function yZ(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-80|0;fc=c;d=1;a:{b:{if(!J[J[a+16>>2]+44>>2])break b;c:{d:switch(J[b+4>>2]){case 0:O[c+16>>3]=O[b+32>>3];O[c>>3]=O[b+40>>3];O[c+72>>3]=O[b+48>>3];O[c+64>>3]=O[b+56>>3];x4(c+48|0,b);J[699344]=0;da(3674,c+32|0,b|0);a=J[699344];J[699344]=0;e:{f:{if((a|0)!=1){J[699344]= +0;d=0;a=J[699344];J[699344]=0;if((a|0)==1)break f;if(H[c+43|0]<0)uc(J[c+32>>2]);if(H[c+59|0]>=0)break b;uc(J[c+48>>2]);break b}b=Z()|0;break e}b=Z()|0;if(H[c+43|0]>=0)break e;uc(J[c+32>>2])}if(H[c+59|0]>=0)break a;uc(J[c+48>>2]);break a;case 1:O[c+48>>3]=O[b+32>>3];O[c+32>>3]=O[b+40>>3];O[c+16>>3]=O[b+48>>3];O[c>>3]=O[b+56>>3];O[c+72>>3]=O[b+16>>3];O[c+64>>3]=O[b+24>>3];J[c+28>>2]=J[b+8>>2];d=0;break b;case 2:x4(c+48|0,b);J[699344]=0;da(3676,c+32|0,b|0);a=J[699344];J[699344]=0;g:{h:{i:{j:{k:{l:{if((a| +0)!=1){J[699344]=0;da(3677,c+16|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break l;J[699344]=0;da(3678,c|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break k;J[699344]=0;a=J[699344];J[699344]=0;if((a|0)==1)break j;if(H[c+11|0]<0)uc(J[c>>2]);if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+43|0]<0)uc(J[c+32>>2]);if(H[c+59|0]>=0)break c;uc(J[c+48>>2]);break c}b=Z()|0;break g}b=Z()|0;break h}b=Z()|0;break i}b=Z()|0;if(H[c+11|0]>=0)break i;uc(J[c>>2])}if(H[c+27|0]>=0)break h;uc(J[c+16>>2])}if(H[c+43|0]>=0)break g; +uc(J[c+32>>2])}if(H[c+59|0]>=0)break a;uc(J[c+48>>2]);ba(b|0);B();case 3:d=0;break b;case 4:d=0;break b;case 7:d=0;break b;case 5:case 6:case 8:case 9:case 11:break c;case 10:break d;default:break b}d=0;break b}d=0}fc=c+80|0;return d|0}ba(b|0);B()}function nvb(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;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;if(e){r=e-2|0;u=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];f=a+8| +0;g=g+8|0;a:{if(n>>>0>r>>>0)break a;h=n?(n|0)==(r|0)?d:b:c;p=!n&u;if(p){if(h>>>0<2)break a;k=h-1|0;m=k&1;if((h|0)!=2){k=k&-2;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a+4>>1];I[g+14>>1]=L[a+6>>1];g=g+16|0;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(!m)break a;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];I[g+6>>1]=L[a+6>>1];g=g+8|0;break a}m=a+6|0;k=h+1>>>1|0;if(h>>>0>=3){q=k>>>0<=2?2:k;l=1; +v=h<<1;i=a+14|0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];o=g+6|0;j=L[a+6>>1];b:{if((j|0)==L[a+14>>1]){I[o>>1]=j;break b}j=K[m|0]|K[m+1|0]<<8;s=j>>>8|0;t=K[i|0]|K[i+1|0]<<8;j=((j<<8|s)&65535)+((h+(P(((t<<8|t>>>8)&65535)-((s|j<<8)&65535)|0,l)<<1)|0)/(v|0)|0)&65535;j=j<<8|j>>>8;H[o|0]=j;H[o+1|0]=j>>>8}g=g+8|0;l=l+1|0;if((q|0)!=(l|0))continue;break}}if(h>>>0<=k>>>0)break a;j=h<<1;a=p?0:f;o=a+6|0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a+4>>1];l=g+6|0;i=L[m>>1]; +c:{if((i|0)==L[a+6>>1]){I[l>>1]=i;break c}i=K[m|0]|K[m+1|0]<<8;q=i>>>8|0;p=K[o|0]|K[o+1|0]<<8;i=((i<<8|q)&65535)+((h+(P(((p<<8|p>>>8)&65535)-((q|i<<8)&65535)|0,k)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[l|0]=i;H[l+1|0]=i>>>8}g=g+8|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}n=n+1|0;if((n|0)!=(e|0))continue;break}}return 0}function wI(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,w=0,x=0;j=fc-32|0;fc=j;a:{b:{t=J[a+16>>2];if(!t){c=1;break b}c:{d:{q=J[a>>2];if((q| +0)<0)break d;r=J[a+4>>2];if((r|0)<0)break d;d=J[a+8>>2];if((d|0)<0)break d;g=J[a+12>>2];if((g|0)<0)break d;a=J[a+24>>2];u=d-1|0;w=0-!d|0;v=g-1|0;x=0-!g|0;while(1){e=J[a>>2];if(!e)break a;h=e>>31;c=h;d=e+q|0;c=d>>>0>>0?c+1|0:c;d=wEb(d-1|0,c-!d|0,e,h);J[a+16>>2]=d;k=J[a+4>>2];if(!k)break c;m=k>>31;c=m;g=k+r|0;c=g>>>0>>0?c+1|0:c;g=wEb(g-1|0,c-!g|0,k,m);J[a+20>>2]=g;i=J[a+40>>2];f=i&31;if((i&63)>>>0>=32){c=1<>>32-f}n=l;l=c;f=n-1|0;c=c-!n|0;s=c;c=h+w|0;o=e+u|0;c=o>>>0< +u>>>0?c+1|0:c;c=wEb(o,c,e,h);o=c;h=c+f|0;c=(c>>31)+s|0;c=h>>>0>>0?c+1|0:c;e=i&31;if((i&63)>>>0>=32)h=c>>e;else h=((1<>>e;e=d;c=d>>31;d=d+f|0;c=c+s|0;c=d>>>0>>0?c+1|0:c;e=d;d=i&31;if((i&63)>>>0>=32)c=c>>d;else c=((1<>>d;c=h-c|0;if((c|0)<0){J[j+4>>2]=c;J[j>>2]=p;Nc(b,1,2369961,j);c=0;break b}J[a+8>>2]=c;c=m+x|0;d=k+v|0;c=d>>>0>>0?c+1|0:c;c=wEb(d,c,k,m);d=f;f=c;d=d+c|0;c=(c>>31)+s|0;c=d>>>0>>0?c+1|0:c;f=d;d=i&31;if((i&63)>>>0>=32)f=c>>d;else f=((1<>>d;e=g;c=e>>31;d=e+n|0;c=c+l|0;g=d-1|0;d=(d>>>0>>0?c+1|0:c)-!d|0;c=i&31;if((i&63)>>>0>=32)c=d>>c;else c=((1<>>c;c=f-c|0;if((c|0)<0){J[j+20>>2]=c;J[j+16>>2]=p;Nc(b,1,2370030,j+16|0);c=0;break b}J[a+12>>2]=c;a=a+52|0;c=1;p=p+1|0;if((t|0)!=(p|0))continue;break}break b}Nc(b,1,2369910,0);break b}break a}fc=j+32|0;return c}fa(2363745,2363747,162,2363821);B()}function c_(a){a=a|0;var b=0,c=0,d=0,e=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+144>>2]=0;J[a+ +148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;Mc(J[a+160>>2]);J[a+200>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;c=J[a+204>>2];b=J[c+8>>2];if((b|0)>0)while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){uc(e);b=J[c+8>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}uc(ld(c));d=0;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)a:{J[a+204>>2]=c;c=J[a+208>>2];b=J[c+8>>2];if((b|0)>0)while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){b=J[e+8>>2];if(b)uc(Zc(b));uc(e);b=J[c+ +8>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}uc(ld(c));d=0;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[a+208>>2]=c;c=J[a+212>>2];b=J[c+8>>2];if((b|0)>0)while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){uc(e);b=J[c+8>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}uc(ld(c));d=0;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[a+212>>2]=c;c=J[a+216>>2];b=J[c+8>>2];if((b|0)>0)while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){b=J[e+32>>2];if(b)uc(Zc(b));uc(e); +b=J[c+8>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}uc(ld(c));b=vc(16);J[699344]=0;d=_(3352,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+216>>2]=d;c=J[a+220>>2];if(c){b=J[c+8>>2];if((b|0)>0){d=0;while(1){e=J[J[c>>2]+(d<<2)>>2];if(e){uc(yr(e));b=J[c+8>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}}uc(ld(c));J[a+220>>2]=0}J[a+224>>2]=0;J[a+228>>2]=0;J[a+240>>2]=0;J[a+244>>2]=0;J[a+232>>2]=0;J[a+236>>2]=0;return}a=Z()|0;uc(b);ba(a|0);B()}function pu(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(!a|!b|(J[a+ +4>>2]==18|(a|0)==(b|0)))break a;if(J[b+4>>2]==18)break a;Wj(b);b:{c:switch(J[b+4>>2]-2|0){case 1:if(J[a+4>>2]==3){f=J[b+40>>2];if(f){if(K[f|0]){c=f;while(1){d=d+1|0;e=K[c+1|0];c=c+1|0;if(e)continue;break}}vC(a,f,d)}Fl(b);return a}c=J[a+24>>2];if(!c|J[c+4>>2]!=3|J[a+8>>2]!=J[c+8>>2])break b;f=nq(ff(J[b+40>>2]),J[J[a+24>>2]+40>>2]);e=J[a+24>>2];d:{if(!e)break d;c=J[e+4>>2];if(c>>>0>11)break d;c=1<>2];if(c)Ym(c);c=xC(J[e+32>>2],f);J[e+12>>2]=c;e:{f:{if(c){d= +J[c+24>>2];if(d)break f;break e}J[e+16>>2]=0;break d}while(1){J[c+20>>2]=e;c=d;d=J[c+24>>2];if(d)continue;break}}J[c+20>>2]=e;J[e+16>>2]=c;break d}g=J[e+40>>2];g:{if(!g|(g|0)==(e+44|0))break g;c=J[e+32>>2];h:{if(!c)break h;d=J[c+80>>2];if(!d)break h;while(1){c=J[d+16>>2];if(c)while(1){if(g>>>0<=M[c+4>>2]&g>>>0>=c+20>>>0)break g;c=J[c>>2];if(c)continue;break}d=J[d+20>>2];if(d)continue;break}}kc[J[663199]](g)}c=J[e+12>>2];if(c)Ym(c);J[e+12>>2]=0;J[e+16>>2]=0;i:{if(!f){c=0;break i}c=f;while(1){d=c;c= +c+1|0;if(K[d|0])continue;break}c=0;d=d-f|0;if((d|0)<0)break i;g=kc[J[663198]](d+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break i}c=xc(g,f,d);H[d+c|0]=0}J[e+44>>2]=0;J[e+48>>2]=0;J[e+40>>2]=c}kc[J[663199]](f);Fl(b);return J[a+24>>2];case 0:break c;default:break b}return b2(a,a,b)}c=J[a+32>>2];if((c|0)!=J[b+32>>2])Xm(b,c);c=J[a+20>>2];J[b+28>>2]=a;J[b+20>>2]=c;J[b+24>>2]=J[a+24>>2];J[a+24>>2]=b;f=J[b+24>>2];if(f)J[f+28>>2]=b;if(!(!c|J[c+16>>2]!=(a|0)))J[c+16>>2]=b;c=b}return c}function cla(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;k=fc-16|0;fc=k;a:{b:{c:{d:{if(!d){j=J[a+584>>2];if(!j)break d;g=(c|0)/J[j+8>>2]|0;i=b;if(J[j>>2]!=1){if(J[j+16>>2]<(g|0))break c;i=J[j+12>>2]}d=0;Sg(i,0,g<<1);e=J[a+608>>2];c=J[a+604>>2];e:{if((g|0)>0){f:{g:{if((e|0)<=0)break g;while(1){h=H[c|0];f=h&255;h:{if((h|0)>=0){c=c+1|0;e=e-1|0;if(e)while(1){if(!f|(d|0)>=(g|0))break h;f=f-1|0;h=(d<<1)+i|0;I[h>>1]=L[h>>1]|K[c|0]<<8;c=c+1|0;d=d+1|0;e=e-1|0;if(e)continue;break}f=0;e=0;if((d|0)== +(g|0))break f;break b}e=e-2|0;h=c+2|0;f=f-126|0;i:{if(!f|(d|0)>=(g|0))break i;c=K[c+1|0]<<8;while(1){l=(d<<1)+i|0;I[l>>1]=c|L[l>>1];d=d+1|0;f=f-1|0;if(!f)break i;if((d|0)<(g|0))continue;break}}c=h}if((d|0)>=(g|0))break g;if((e|0)>0)continue;break}}if((d|0)!=(g|0))break b;f=0;if((e|0)<=0)break f;while(1){h=H[c|0];d=h&255;j:{if((h|0)>=0){c=c+1|0;e=e-1|0;if(!e){e=0;break f}while(1){if(!d|(f|0)>=(g|0))break j;d=d-1|0;h=(f<<1)+i|0;I[h>>1]=L[h>>1]|K[c|0];c=c+1|0;f=f+1|0;e=e-1|0;if(e)continue;break}e=0; +break f}e=e-2|0;h=c+2|0;d=d-126|0;k:{if(!d|(f|0)>=(g|0))break k;c=K[c+1|0];while(1){l=(f<<1)+i|0;I[l>>1]=c|L[l>>1];f=f+1|0;d=d-1|0;if(!d)break k;if((f|0)<(g|0))continue;break}}c=h}if((f|0)>=(g|0))break f;if((e|0)>0)continue;break}}d=f;if((g|0)==(d|0))break e;break b}if(g)break b}kc[J[j+20>>2]](j,b,g);b=1;break a}fa(76922,70372,193,93872);B()}fa(74429,70372,194,93872);B()}fa(77140,70372,201,93872);B()}b=J[a>>2];f=J[a+628>>2];i=J[a+472>>2];J[k+4>>2]=g-d;J[k>>2]=i;Uc(f,b,79707,k);b=0}J[a+608>>2]=e;J[a+ +604>>2]=c;fc=k+16|0;return b|0}function Idb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=c+d|0;if(J[b>>2]?M[b+12>>2]>>0|i>>>0>M[b+4>>2]:1){d=J[a>>2];J[d+20>>2]=23;kc[J[d>>2]](a)}d=J[b+24>>2];a:{if(d>>>0<=c>>>0&d+J[b+16>>2]>>>0>=i>>>0)break a;if(!J[b+40>>2]){d=J[a>>2];J[d+20>>2]=71;kc[J[d>>2]](a)}if(J[b+36>>2]){g=J[b+16>>2];b:{if((g|0)<=0)break b;l=b+48|0;j=J[b+8>>2];h=P(j,J[b+24>>2]);f=J[b+20>>2];d=0;while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]- +g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break b;f=P(f,j);kc[J[b+52>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}J[b+36>>2]=0}d=0;g=J[b+16>>2];h=i-g|0;h=M[b+24>>2]>>0?c:(h|0)>0?h:0;J[b+24>>2]=h;if((g|0)<=0)break a;l=b+48|0;j=J[b+8>>2];h=P(j,h);f=J[b+20>>2];while(1){g=g-d|0;f=(f|0)<(g|0)?f:g;g=J[b+24>>2]+d|0;k=J[b+28>>2]-g|0;f=(f|0)<(k|0)?f:k;g=J[b+4>>2]-g|0;f=(f|0)<(g|0)?f:g;if((f|0)<=0)break a;f=P(f,j);kc[J[b+ +48>>2]](a,l,J[J[b>>2]+(d<<2)>>2],h,f);h=f+h|0;f=J[b+20>>2];d=f+d|0;g=J[b+16>>2];if((d|0)<(g|0))continue;break}}d=J[b+28>>2];c:{d:{e:{if(i>>>0<=d>>>0)break e;f:{g:{h:{i:{if(c>>>0>d>>>0){if(!e)break i;d=J[a>>2];J[d+20>>2]=23;kc[J[d>>2]](a);d=c;break g}if(e)break g;break h}d=c}if(J[b+32>>2])break f;d=J[a>>2];J[d+20>>2]=23;kc[J[d>>2]](a);break c}J[b+28>>2]=i;if(!J[b+32>>2])break d}a=J[b+24>>2];d=d-a|0;a=i-a|0;if(d>>>0>=a>>>0)break e;h=J[b+8>>2];while(1){Re(J[J[b>>2]+(d<<2)>>2],h);d=d+1|0;if((a|0)!=(d| +0))continue;break}}if(!e)break c}J[b+36>>2]=1}return J[b>>2]+(c-J[b+24>>2]<<2)|0}function CAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;c=fc-16|0;fc=c;f=e+12|0;Ho(f);J[699344]=0;J[c+12>>2]=0;d=c+12|0;aa(5145,d|0,a|0)|0;a=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((a|0)!=1){J[699344]=0;da(5511,d|0,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break d;a=J[c+12>>2];J[c+12>>2]=0;f:{if(!a)break f;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break e;if(d)break f;J[699344]= +0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break e}a=J[f>>2];d=J[J[a>>2]+16>>2];J[699344]=0;d=_(d|0,a|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;g:{if(!d){J[699344]=0;aa(5145,f|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break g;break c}d=J[J[a>>2]+20>>2];J[699344]=0;ha(d|0,a|0,0,0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c}fc=c+16|0;break a}a=Z()|0;break b}ea(0)|0;Bc();B()}a=Z()|0;zc(c+12|0);break b}a=Z()|0}zc(f);ba(a|0);B()}h:{i:{a=J[e+12>>2];j:{if(!a)break j;c=J[J[a>>2]+20>>2]; +J[699344]=0;ha(c|0,a|0,0,0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;a=J[J[b>>2]+16>>2];J[699344]=0;a=_(a|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;if(a){a=J[J[b>>2]+12>>2];J[699344]=0;ga(a|0,b|0,2390543,1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i}J[699344]=0;ga(5335,b|0,J[e+12>>2],0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;a=J[e+12>>2];J[e+12>>2]=0;if(!a)break j;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break h;if(b)break j;J[699344]= +0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break h}fc=e+16|0;return}a=Z()|0;zc(e+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function gF(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{c:{d:{e:{f=J[a+8>>2];if((f|0)<=0){if(!f)break e;break b}if(f>>>0>31)break d;break c}f=7;if(K[a+4|0]==255)break c;break b}fa(204035,202126,198,212113);B()}j=f;while(1){f:{if(H[a+16|0]&1){g=J[a+8>>2];d=g-1|0;J[a+8>>2]=d;if((g|0)>0){g=J[a+4>>2]>>>d&1;break f}g=Ng(a);if((g|0)>=0)break f;return-1}break a}i=i<<1|g;g=j>>>0>1;j= +j-1|0;if(g)continue;break}g=f;if((i|0)>=0)break b;return-1}f=J[a+4>>2];g:{if((f&255)==255){if(!(H[a+16|0]&1))break a;j=-1;e=J[a+8>>2];d=e-1|0;J[a+8>>2]=d;h:{if((e|0)>0){f=f>>>d&1;break h}f=Ng(a);if((f|0)<0)break g;if(!(H[a+16|0]&1))break a;d=J[a+8>>2]}e=d-1|0;J[a+8>>2]=e;i:{if((d|0)<=0){d=Ng(a);if((d|0)<0)break g;if(!(H[a+16|0]&1))break a;break i}d=J[a+4>>2]>>>e&1}e=J[a+8>>2];h=e-1|0;J[a+8>>2]=h;j:{if((e|0)<=0){e=Ng(a);if((e|0)<0)break g;if(!(H[a+16|0]&1))break a;f=e|(f<<2|d<<1);break j}f=J[a+4>> +2]>>>h&1|(f<<2|d<<1)}d=J[a+8>>2];e=d-1|0;J[a+8>>2]=e;k:{if((d|0)<=0){d=Ng(a);if((d|0)<0)break g;if(!(H[a+16|0]&1))break a;break k}d=J[a+4>>2]>>>e&1}e=J[a+8>>2];h=e-1|0;J[a+8>>2]=h;l:{if((e|0)<=0){e=Ng(a);if((e|0)<0)break g;if(!(H[a+16|0]&1))break a;f=e|(f<<2|d<<1);break l}f=J[a+4>>2]>>>h&1|(f<<2|d<<1)}d=J[a+8>>2];e=d-1|0;J[a+8>>2]=e;m:{if((d|0)<=0){d=Ng(a);if((d|0)<0)break g;if(H[a+16|0]&1)break m;break a}d=J[a+4>>2]>>>e&1}e=J[a+8>>2];h=e-1|0;J[a+8>>2]=h;n:{if((e|0)<=0){a=Ng(a);if((a|0)>=0)break n; +break g}a=J[a+4>>2]>>>h&1}i=f<<2|d<<1|a|i<<7;g=g+7|0}o:{if((g|0)>=8){i=i>>g-7;break o}a=7-g|0;b=b>>a;c=c>>a}j=((c^i^-1)&b)!=(b|0)}return j}fa(202788,202126,203,212113);B()}function Sr(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;a:{if(!a)break a;c=-1;b:{c:switch(b+1|0){case 0:tk(a,31,33149,0);break a;case 1:J[a+256>>2]=1;break a;case 2:J[a+256>>2]=1;b=J[a+36>>2];if(!b)break a;a=J[b+16>>2];if(K[a|0]!=239|K[a+1|0]!=187|K[a+2|0]!=191)break a;J[b+16>>2]=a+3;break a;case 3:case 4:c=90;f=J[a+36>>2]; +if(!f)break b;d=J[f+16>>2];if(!d|K[d|0]!=239|(K[d+1|0]!=187|K[d+2|0]!=191))break b;J[f+16>>2]=d+3;break b;case 10:c=90;break b;case 5:case 6:case 8:case 9:c=180;break b;case 7:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:break c;default:break b}c=45}d=gL(b);if(!d){d:switch(b-4|0){case 18:J[a+256>>2]=1;break a;case 0:tk(a,32,32688,7332);break a;case 1:tk(a,32,32688,7316);break a;case 2:tk(a,32,32688,21820);break a;case 3:tk(a,32,32688,24390); +break a;case 4:tk(a,32,32688,24748);break a;case 5:tk(a,32,32688,24674);break a;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:e:{if(J[a+24>>2]|J[a+40>>2]!=1)break e;c=J[a+36>>2];if(!c)break e;c=J[c+44>>2];if(!c)break e;g=a,h=ff(c),J[g+24>>2]=h}J[a+256>>2]=b;break a;case 15:tk(a,32,32688,20932);break a;case 16:tk(a,32,32688,20779);break a;case 17:break d;default:break a}tk(a,32,32688,20925);break a}J[a+256>>2]=1;b=J[a+36>>2];f:{if(!b){if(J[a+172>>2]==-1?J[a+212>>2]:0)break f; +J[a+84>>2]=1;J[e>>2]=0;Hc(0,0,0,a,0,1,1,3,0,0,0,0,30803,e);J[a+12>>2]=0;if(J[a+288>>2])break f;J[a+212>>2]=1;break f}b=UK(a,b,d,c);J[a+256>>2]=1;if((b|0)<0)break f;if(J[a+84>>2]!=6003)break a}_0(a);J[a+84>>2]=6003}fc=e+16|0}function Nw(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=fc-96|0;fc=d;J[d+24>>2]=528734635;J[d+28>>2]=1541459225;J[d+16>>2]=1359893119;J[d+20>>2]=-1694144372;J[d+8>>2]=1013904242;J[d+12>>2]=-1521486534;J[d>>2]=1779033703;J[d+4>>2]=-1150833019;e=64;if((b|0)>=64)while(1){LJ(a+f|0,d);g=e;f=e; +e=e- -64|0;if((e|0)<=(b|0))continue;break}e=b-g|0;a:{b:{if((e|0)<=0){H[e+(d+32|0)|0]=128;f=e+1|0;break b}h=d+32|0;xc(h,a+g|0,e);H[e+h|0]=128;f=e+1|0;if(e>>>0>=56){if(e>>>0<=62)Ac(f+h|0,0,(g|63)-b|0);LJ(d+32|0,d);f=0;break b}if((e|0)==55)break a}Ac((d+32|0)+f|0,0,56-f|0)}J[d+88>>2]=0;H[d+95|0]=b<<3;H[d+94|0]=b>>>5;H[d+93|0]=b>>>13;H[d+92|0]=b>>>21;LJ(d+32|0,d);a=J[d>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c|0]=a;H[c+1|0]=a>>>8;H[c+2|0]=a>>>16;H[c+3|0]=a>>>24;a=J[d+4>>2];a=a<<24|(a&65280)<< +8|(a>>>8&65280|a>>>24);H[c+4|0]=a;H[c+5|0]=a>>>8;H[c+6|0]=a>>>16;H[c+7|0]=a>>>24;a=J[d+8>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+8|0]=a;H[c+9|0]=a>>>8;H[c+10|0]=a>>>16;H[c+11|0]=a>>>24;a=J[d+12>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+12|0]=a;H[c+13|0]=a>>>8;H[c+14|0]=a>>>16;H[c+15|0]=a>>>24;a=J[d+16>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+16|0]=a;H[c+17|0]=a>>>8;H[c+18|0]=a>>>16;H[c+19|0]=a>>>24;a=J[d+20>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+20|0]=a;H[c+21| +0]=a>>>8;H[c+22|0]=a>>>16;H[c+23|0]=a>>>24;a=J[d+24>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+24|0]=a;H[c+25|0]=a>>>8;H[c+26|0]=a>>>16;H[c+27|0]=a>>>24;a=J[d+28>>2];a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[c+28|0]=a;H[c+29|0]=a>>>8;H[c+30|0]=a>>>16;H[c+31|0]=a>>>24;fc=d+96|0}function Cqb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-48|0;fc=c;e=c+36|0;d=K[b+11|0];f=d<<24>>24<0;Ll(e,f?J[b>>2]:b,f?J[b+4>>2]:d);J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;d=0;b=0;a:{if(!J[a+20>>2]){a=J[a+16>>2];J[699344]= +0;ca(1629,c+12|0,a|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;J[c+32>>2]=J[c+20>>2];a=J[c+16>>2];J[c+24>>2]=J[c+12>>2];J[c+28>>2]=a;d=J[c+28>>2];b=K[c+35|0]}a=b&255;b=b<<24>>24;b:{if((b|0)<0?d:a)break b;d=K[c+47|0];a=d<<24>>24;c:{if((b|0)>=0){if((a|0)<0)break c;J[c+32>>2]=J[c+44>>2];a=J[c+40>>2];J[c+24>>2]=J[c+36>>2];J[c+28>>2]=a;break b}J[699344]=0;a=(a|0)<0;ga(1630,c+24|0,(a?J[c+36>>2]:c+36|0)|0,(a?J[c+40>>2]:d)|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}J[699344]=0;ga(1631, +c+24|0,J[c+36>>2],J[c+40>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break a}b=0;J[699344]=0;a=J[693078];d=J[699344];J[699344]=0;d:{e:{if((d|0)!=1){if(!a)break d;d=J[J[a>>2]+24>>2];J[699344]=0;a=aa(d|0,a|0,c+24|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(!a)break d;J[c+12>>2]=0;J[c+8>>2]=0;b=J[J[a>>2]+24>>2];J[699344]=0;ca(b|0,a|0,c+12|0,c+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+12>>2];if(a)break e;b=0;break d}break a}b=Dc(1E3);d=J[c+8>>2];H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0; +H[b+15|0]=0;H[b+8|0]=a;H[b+9|0]=a>>>8;H[b+10|0]=a>>>16;H[b+11|0]=a>>>24;H[b+4|0]=d;H[b+5|0]=d>>>8;H[b+6|0]=d>>>16;H[b+7|0]=d>>>24;H[b|0]=16;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0}if(H[c+35|0]<0)uc(J[c+24>>2]);if(H[c+47|0]<0)uc(J[c+36>>2]);fc=c+48|0;return b|0}a=Z()|0;if(H[c+35|0]<0)uc(J[c+24>>2]);if(H[c+47|0]<0)uc(J[c+36>>2]);ba(a|0);B()}function Wma(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;a:{if((a|0)==(b|0))break a;XG(a,b);c=J[b+56>>2];d=J[b+60>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+56>>2]=c; +c=J[a+60>>2];J[a+60>>2]=d;b:{if(!c)break b;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break b;kc[J[J[c>>2]+8>>2]](c);Gc(c)}H[a+88|0]=K[b+88|0];H[a+89|0]=K[b+89|0];H[a+90|0]=K[b+90|0];J[a+92>>2]=J[b+92>>2];H[a+96|0]=K[b+96|0];J[a+100>>2]=J[b+100>>2];J[a+104>>2]=J[b+104>>2];H[a+108|0]=K[b+108|0];H[a+109|0]=K[b+109|0];H[a+110|0]=K[b+110|0];H[a+111|0]=K[b+111|0];PG(a+240|0,b+240|0);O[a+200>>3]=O[b+200>>3];O[a+208>>3]=O[b+208>>3];O[a+192>>3]=O[b+192>>3];J[a+84>>2]=J[b+84>>2];J[a+64>>2]=J[b+64>>2];c=J[b+68>>2];d=J[b+ +72>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+68>>2]=c;c=J[a+72>>2];J[a+72>>2]=d;c:{if(!c)break c;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break c;kc[J[J[c>>2]+8>>2]](c);Gc(c)}d=J[b+76>>2];c=J[b+80>>2];if(c)J[c+8>>2]=J[c+8>>2]+1;J[a+76>>2]=d;d=J[a+80>>2];J[a+80>>2]=c;if(d)Gc(d);J[a+232>>2]=J[b+232>>2];O[a+216>>3]=O[b+216>>3];O[a+224>>3]=O[b+224>>3];$l(a+120|0,b+120|0);H[a+238|0]=K[b+238|0];H[a+237|0]=K[b+237|0];J[a+260>>2]=J[a+256>>2];c=J[b+260>>2];d=J[b+256>>2];if((c|0)==(d|0))break a;WG(a+256|0,c-d>>3);d=J[b+260>> +2];c=J[b+256>>2];if((d|0)==(c|0))break a;e=d-c>>3;f=e>>>0<=1?1:e;h=f&3;d=J[a+256>>2];b=0;if(e>>>0>=4){j=f&-4;f=0;while(1){e=b<<3;O[e+d>>3]=O[c+e>>3];g=e|8;O[g+d>>3]=O[c+g>>3];g=e|16;O[g+d>>3]=O[c+g>>3];e=e|24;O[e+d>>3]=O[c+e>>3];b=b+4|0;f=f+4|0;if((j|0)!=(f|0))continue;break}}if(!h)break a;while(1){e=b<<3;O[e+d>>3]=O[c+e>>3];b=b+1|0;i=i+1|0;if((i|0)!=(h|0))continue;break}}return a|0}function w1(a){var b=0,c=0,d=0,e=0;be(a);a:{c=J[a+36>>2];b=J[c+16>>2];b:{c:{if(K[b|0]!=101|K[b+1|0]!=110|(K[b+2|0]!= +99|K[b+3|0]!=111))break c;if(K[b+4|0]!=100|K[b+5|0]!=105|(K[b+6|0]!=110|K[b+7|0]!=103))break c;J[a+200>>2]=J[a+200>>2]+8;J[c+16>>2]=b+8;J[c+32>>2]=J[c+32>>2]+8;b=K[b+8|0];if((b|0)==37){Yd(a);c=J[a+36>>2];b=K[J[c+16>>2]]}d:{if(b&255)break d;if((Nd(c)|0)>0)break d;He(a)}be(a);if(K[J[J[a+36>>2]+16>>2]]!=61){Xe(a,75,0);return 0}Zd(a);be(a);e:{f:{g:{h:{i:switch(K[J[J[a+36>>2]+16>>2]]-34|0){case 0:Zd(a);d=o1(a);if(K[J[J[a+36>>2]+16>>2]]==34)break h;Xe(a,34,0);kc[J[663199]](d);return 0;case 5:break i;default:break g}Zd(a); +d=o1(a);if(K[J[J[a+36>>2]+16>>2]]!=39)break a}Zd(a);if(K[a+362|0]&32)break f;if(!d)break c;if(EC(d,22641))if(EC(d,22635))break e;c=J[a+24>>2];j:{if(!c){b=J[J[a+36>>2]>>2];if(!b|J[b+12>>2])break j;oe(a,81,30907);c=J[a+24>>2];if(!c)break j}kc[J[663199]](c)}J[a+24>>2]=d;return d}Xe(a,33,0);if(!(K[a+362|0]&32))break b}kc[J[663199]](d);break c}k:{if(EC(d,22406))if(EC(d,22339))break k;b=J[a+24>>2];if(b)kc[J[663199]](b);J[a+24>>2]=d;return d}b=J[a+36>>2];c=J[b+44>>2];if(c){kc[J[663199]](c);b=J[a+36>>2]}J[b+ +44>>2]=d;b=ug(d);if(b){c=fc-16|0;fc=c;l:{if(!b){b=-1;break l}e=J[a+36>>2];m:{if(e){b=UK(a,e,b,-1);e=a+256|0;break m}if(J[a+212>>2]){b=-1;if(J[a+172>>2]==-1)break l}J[a+84>>2]=1;J[c>>2]=0;Hc(0,0,0,a,0,1,1,3,0,0,0,0,30803,c);J[a+12>>2]=0;b=-1;if(J[a+288>>2])break l;e=a+212|0}J[e>>2]=1}fc=c+16|0;if((b|0)>=0)break b;J[a+84>>2]=32;break c}Uf(a,32,32461,d)}d=0}return d}Xe(a,34,0);kc[J[663199]](d);return 0}function i6a(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;d=fc-32|0;fc= +d;e=J[a+464>>2];a:{b:{if(J[e+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[e+12>>2]/8|0);J[e+12>>2]=0;i=0;if(!(kc[J[c+8>>2]](a)|0))break a;if(J[a+336>>2]>0){c=0;while(1){J[((c<<2)+e|0)+20>>2]=0;c=c+1|0;if((c|0)>2])continue;break}}J[e+16>>2]=0;J[e+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[e+36>>2]=0}if(!J[e+36>>2]){c=J[e+16>>2];c:{if(c){f=c-1|0;break c}m=J[a+428>>2];n=J[a+420>>2];l=J[a+412>>2];J[d+28>>2]=a;c=J[a+24>>2];J[d+12>>2]=J[c>>2];J[d+16>>2]=J[c+4>>2];c=J[e+12>> +2];g=J[e+8>>2];k=J[a+408>>2];f=0;d:{if((l|0)<(k|0))break d;f=J[e+60>>2];o=J[b>>2];while(1){e:{f:{g:{if((c|0)>7)break g;b=d+12|0;i=0;if(!Qg(b,g,c,0))break a;g=J[d+20>>2];c=J[d+24>>2];if((c|0)>7)break g;b=Ni(b,g,c,f,1);break f}b=g>>c-8&255;h=J[((b<<2)+f|0)+144>>2];if(h){b=K[(b+f|0)+1168|0];c=c-h|0;break e}b=Ni(d+12|0,g,c,f,9)}i=0;if((b|0)<0)break a;g=J[d+20>>2];c=J[d+24>>2]}h=b>>>4|0;h:{j=b&15;if(j){if((c|0)<(j|0)){i=0;if(!Qg(d+12|0,g,c,j))break a;g=J[d+20>>2];c=J[d+24>>2]}b=h+k|0;h=j<<2;k=J[h+55920>> +2];c=c-j|0;j=k&g>>c;I[(J[(b<<2)+m>>2]<<1)+o>>1]=j-((j|0)<=J[h+55916>>2]?k:0)<>>0>=16){if((c|0)<(h|0)){i=0;if(!Qg(d+12|0,g,c,h))break a;g=J[d+20>>2];c=J[d+24>>2]}c=c-h|0;f=f+(J[(h<<2)+55920>>2]&g>>c)|0}f=f-1|0;break d}k=b+1|0;if((b|0)<(l|0))continue;break}f=0}a=J[a+24>>2];J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+16>>2];J[e+12>>2]=c;J[e+8>>2]=g}J[e+16>>2]=f}J[e+40>>2]=J[e+40>>2]-1;i=1}fc=d+32|0;return i|0}function CC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0, +j=0;g=fc-48|0;fc=g;e=-1;a:{if(J[a+28>>2]|!a)break a;b:{f=J[a+16>>2];if(!(!f|J[f+32>>2])){d=J[f+24>>2];c=J[f+8>>2];if(!((d|0)==(c|0)|c>>>0>2147483646)){J[f+24>>2]=c;d=c}h=d;d=J[f+20>>2];c=J[f+4>>2];if(!((d|0)==(c|0)|c>>>0>2147483646)){J[f+20>>2]=c;d=c}if((h|0)!=(d|0))break b}J[g>>2]=0;Hc(0,0,0,0,0,8,1548,2,0,0,0,0,9748,g);J[a+28>>2]=1548;break a}c=(b|0)<4001?(b|0)!=4?4E3:b:b;b=jL(f,c+1|0);if(!(!J[f+32>>2]&(b|0)>=0)){J[g+16>>2]=5381;Hc(0,0,0,0,0,8,2,3,5381,0,0,0,32879,g+16|0);J[a+28>>2]=2;break a}b= +0;d=J[a+16>>2];if(!(!d|J[d+32>>2])){b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;e=J[d+20>>2];b=J[d+4>>2];if((e|0)==(b|0)|b>>>0>2147483646)b=e;else J[d+20>>2]=b;b=b+J[d>>2]|0}e=J[a+4>>2];if(e){c:{c=kc[e|0](J[a>>2],b,c)|0;if((c|0)>0)break c;J[a+4>>2]=3292;if((c|0)>=0)break c;e=-1;break a}if(J[a+12>>2]){d=J[a+20>>2];if(!d){d=kL();J[a+20>>2]=d}e=-1;if(Xj(d,b,c))break a;d=Li(J[a+20>>2]);b=LC(a,1);if((b|0)<0){dL(1544,4972,0);J[a+28>>2]=1544;break a}i=a,j=(d-Li(J[a+20>>2])|0)+J[a+32>> +2]|0,J[i+32>>2]=j;e=b;break a}e=c;c=J[a+16>>2];d:{if(!c|J[c+32>>2])break d;a=J[c+24>>2];b=J[c+8>>2];if(!((a|0)==(b|0)|b>>>0>2147483646)){J[c+24>>2]=b;a=b}b=J[c+20>>2];d=J[c+4>>2];if(!((b|0)==(d|0)|d>>>0>2147483646)){J[c+20>>2]=d;b=d}if(a-b>>>0>>0)break d;b=b+e|0;J[c+20>>2]=b;J[c+8>>2]=a>>>0>=2147483647?2147483647:a;J[c+4>>2]=b>>>0>=2147483647?2147483647:b;if(a>>>0<=b>>>0)break d;H[b+J[c>>2]|0]=0}break a}J[g+32>>2]=0;Hc(0,0,0,0,0,8,1547,2,0,0,0,0,2008,g+32|0);J[a+28>>2]=1547;e=-1}fc=g+48|0;return e} +function GO(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{if(K[a+498|0])break b;c:{d:{if(!J[a+440>>2]|J[a+12>>2]!=2)break d;switch(K[a+1112|0]-1|0){case 0:case 2:break c;default:break d}}J[a+1116>>2]=J[a+1144>>2];break b}if(Ey(a))break a}if(K[a+497|0])break a;e:{f:{if(!J[a+440>>2]){g:switch(J[a+12>>2]-1|0){case 0:case 2:H[a+477|0]=1;break e;default:break g}d=up(a);J[a+440>>2]=J[a+440>>2]+1;break f}if(K[a+1112|0]!=3)break e;d=up(a)}if(d)break a}d=J[(K[a+288|0]?2248:512)+a>>2];if(!d)d=J[a+528>> +2];h=J[d+36>>2];f=(h|0)>0?h:0;J[a+672>>2]=f;i=J[d+40>>2];g=(i|0)>0?i:0;J[a+680>>2]=g;h:{i:{k=J[d+88>>2];j=J[k+36>>2];if(!j)break i;b=J[k+40>>2];if(!b)break i;e=J[a+16>>2];c=h+j|0;e=(c|0)>(e|0)?e:c;J[a+676>>2]=e;c=J[a+20>>2];b=b+i|0;b=(c|0)<(b|0)?c:b;break h}b=J[a+16>>2];e=J[a+316>>2];e=(b|0)<(e|0)?b:e;J[a+676>>2]=e;b=J[a+20>>2];c=J[a+320>>2];b=(c|0)>(b|0)?b:c}J[a+684>>2]=b;if(K[a+1124|0]){c=J[a+1128>>2];f=(c|0)<(f|0)?f:c;J[a+672>>2]=f;c=J[a+1136>>2];g=(c|0)<(g|0)?g:c;J[a+680>>2]=g;c=J[a+1132>>2]; +e=(c|0)>(e|0)?e:c;J[a+676>>2]=e;c=J[a+1140>>2];b=(c|0)>(b|0)?b:c;J[a+684>>2]=b}if(K[d+44|0]){c=J[d+48>>2];f=(c|0)<(f|0)?f:c;J[a+672>>2]=f;c=J[d+56>>2];g=(c|0)<(g|0)?g:c;J[a+680>>2]=g;c=J[d+52>>2];e=(c|0)>(e|0)?e:c;J[a+676>>2]=e;d=J[d+60>>2];b=(d|0)>(b|0)?b:d;J[a+684>>2]=b}d=g-i|0;d=(d|0)>0?d:0;J[a+664>>2]=d;h=f-h|0;h=(h|0)>0?h:0;J[a+656>>2]=h;j:{k:{if(!j)break k;i=J[k+40>>2];if(!i)break k;f=(h-f|0)+e|0;J[a+660>>2]=(f|0)>(j|0)?j:f;b=(d-g|0)+b|0;b=(b|0)>(i|0)?i:b;break j}J[a+660>>2]=(h-f|0)+e;b=(d- +g|0)+b|0}J[a+668>>2]=b;J[a+440>>2]=J[a+440>>2]+1}}function _O(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;m=fc-128|0;fc=m;a:{b:{if(b){if((c|0)<0)break b;h=m;if(!J[b>>2]){g=b;break a}g=b;while(1){J[h>>2]=g;h=h+4|0;g=J[g>>2];if(J[g>>2])continue;break}break a}fa(201331,198855,278,212502);B()}fa(202183,198855,279,212502);B()}c:{d:{e:{while(1){a=J[g+8>>2];if((e|0)>(a|0)){J[g+8>>2]=e;a=e}f:{if((a|0)>=(c|0))break f;while(1){if(J[g+4>>2]<=(a|0)){if(J[g+12>>2])break f;if(!(K[d+16|0]&2))break d;e=J[d+ +8>>2];f=e-1|0;J[d+8>>2]=f;g:{if((e|0)<=0){j=J[d+4>>2];i=j<<8&65280;e=(i|0)==65280?6:7;J[d+8>>2]=e;J[d+4>>2]=i|1<>2];k=J[e+8>>2];if(k&7)break e;l=J[e+64>>2];if(!((l|0)<0|(l|0)>J[e+60>>2])){J[e+8>>2]=k|4;break e}J[e+4>>2]=J[e+4>>2]|32;f=J[e+28>>2];J[e+28>>2]=f-1;if((f|0)>0){J[e+60>>2]=J[e+60>>2]+1;f=e;e=J[e+24>>2];J[f+24>>2]=e+1;H[e|0]=j;J[g+12>>2]=1;break f}f=-1;if((bd(e,i>>>8|0)|0)!=-1)break g;break e}J[d+4>>2]=J[d+4>>2]|1<>2]=1;break f}if(!(K[d+16|0]&2))break c;e=J[d+8>> +2];J[d+8>>2]=e-1;h:{if((e|0)>0)break h;j=J[d+4>>2];i=j<<8&65280;J[d+4>>2]=i;J[d+8>>2]=(i|0)==65280?6:7;f=-1;e=J[d+12>>2];k=J[e+8>>2];if(k&7)break e;l=J[e+64>>2];if(!((l|0)<0|(l|0)>J[e+60>>2])){J[e+8>>2]=k|4;break e}J[e+4>>2]=J[e+4>>2]|32;f=J[e+28>>2];J[e+28>>2]=f-1;if((f|0)>0){J[e+60>>2]=J[e+60>>2]+1;f=e;e=J[e+24>>2];J[f+24>>2]=e+1;H[e|0]=j;break h}f=-1;if((bd(e,i>>>8|0)|0)==-1)break e}a=a+1|0;if((c|0)!=(a|0))continue;break}a=c}J[g+8>>2]=a;if((h|0)!=(m|0)){h=h-4|0;g=J[h>>2];e=a;continue}break}f=J[b+ +8>>2]<(c|0)}fc=m+128|0;return f}fa(202745,198855,302,212502);B()}fa(202745,198855,309,212502);B()}function Avb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(e){n=e-2|0;while(1){a=L[f>>1];I[g>>1]=a;g=g+2|0;f=f+2|0;a:{if(l>>>0>n>>>0)break a;j=l?(l|0)==(n|0)?d:b:c;if(!((e|0)!=1|l)){if(j>>>0<2)break a;h=j-1|0;i=h&7;if(j-2>>>0>=7){j=h&-8;h=0;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;h= +h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){I[g>>1]=a;g=g+2|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}if((a|0)==L[f>>1]){if(j>>>0<2)break a;h=j-1|0;i=h&7;if(j-2>>>0>=7){j=h&-8;h=0;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){I[g>>1]=a;g=g+2|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2: +h;k=i-1|0;m=k&7;if(i-2>>>0>=7){k=k&-8;i=0;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;i=i+8|0;if((k|0)!=(i|0))continue;break}}i=0;if(!m)break b;while(1){I[g>>1]=a;g=g+2|0;i=i+1|0;if((m|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;m=j+(h^-1)|0;a=L[f>>1];i=0;k=j-h&7;if(k)while(1){I[g>>1]=a;h=h+1|0;g=g+2|0;i=i+1|0;if((k|0)!=(i|0))continue;break}if(m>>>0<7)break a;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+ +6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function QE(a){var b=0,c=0,d=0;a:{b:{c:{if(K[a+432|0]){d:{if(!K[a+496|0]|!K[a+304|0])break d;c=J[a+520>>2];if(!c)break d;J[a+524>>2]=J[a+524>>2]+1;e:switch(K[c+28|0]-1|0){case 0:b=J[c+32>>2];d=J[a+1116>>2];f:{if(b>>>0<=d>>>0){if(d)break f;b=1}J[a+1116>>2]=b}b=Ey(a);if(b)break b;if(!K[a+497|0]){b=SE(a);if(b)break b}H[a+498|0]=10;break d;case 1:b=Cy(a);if(b)break b; +g:{b=J[a+208>>2];if(!b)break g;if(kc[b|0](a,J[a+524>>2],0)|0)break g;break a}J[a+508>>2]=0;H[a+504|0]=1;J[a+516>>2]=c;b=J[c+32>>2];d=J[a+1116>>2];if(b>>>0>d>>>0){J[a+1116>>2]=b;break d}if(d)break d;J[a+1116>>2]=1;break d;case 2:break e;default:break d}d=J[c+36>>2];b=d-1|0;if(b>>>0<=2147483645)J[c+36>>2]=b;else b=d;if(b){b=Cy(a);if(b)break b;h:{b=J[a+208>>2];if(!b)break h;if(kc[b|0](a,J[a+524>>2],J[c+36>>2])|0)break h;break a}J[a+516>>2]=c;b=J[c+32>>2];if(!b)break d;if(b>>>0>M[a+1116>>2])J[a+1116>> +2]=b;H[a+502|0]=1;break d}i:switch(K[c+29|0]-1|0){case 0:b=J[c+32>>2];d=J[a+1116>>2];j:{if(b>>>0<=d>>>0){if(d)break j;b=1}J[a+1116>>2]=b}b=Ey(a);if(b)break b;if(!K[a+497|0]){b=SE(a);if(b)break b}H[a+498|0]=10;break d;case 1:break i;default:break d}b=Cy(a);if(b)break b;k:{b=J[a+208>>2];if(!b)break k;if(kc[b|0](a,J[a+524>>2],0)|0)break k;break a}J[a+508>>2]=0;H[a+504|0]=1;J[a+516>>2]=c;b=J[c+32>>2];d=J[a+1116>>2];if(b>>>0>d>>>0){J[a+1116>>2]=b;break d}if(d)break d;J[a+1116>>2]=1}if(K[a+432|0])break c}if(!K[a+ +344|0])break c;b=J[a+208>>2];if(!b)break c;if(kc[b|0](a,0,0)|0)break c;break a}b=0;if(J[a+516>>2])break b;H[a+502|0]=1}return b}Jc(a,904,0,0);return 904}function TY(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;a:{b:{c:{if(c){if(J[a+8>>2]==16)h=J[a+156>>2]+P(J[a+192>>2],5644)|0;else h=J[a+12>>2];if(M[J[a+72>>2]+16>>2]<=b>>>0)break c;if(M[d>>2]<=4){a=0;Nc(e,1,2366072,0);break a}i=J[h+5584>>2];h=i+P(b,1080)|0;wd(c,h+4|0,1);f=J[h+4>>2]+1|0;J[h+4>>2]=f;if(f>>>0>=34){J[g+4>>2]=33;J[g>>2]=f;Nc(e,1, +2366107,g);a=0;break a}j=J[a+160>>2];if(j>>>0>=f>>>0){J[g+24>>2]=f;J[g+20>>2]=j;J[g+16>>2]=b;Nc(e,1,2366184,g+16|0);J[a+8>>2]=J[a+8>>2]|32768;a=0;break a}a=i+P(b,1080)|0;wd(c+1|0,a+8|0,1);J[a+8>>2]=J[a+8>>2]+2;wd(c+2|0,a+12|0,1);f=J[a+12>>2]+2|0;J[a+12>>2]=f;a=J[a+8>>2];if(!(!(a>>>0>10|f>>>0>10)&a+f>>>0<13)){a=0;Nc(e,1,2366362,0);break a}a=i+P(b,1080)|0;wd(c+3|0,a+16|0,1);if(K[a+16|0]&192){a=0;Nc(e,1,2366430,0);break a}wd(c+4|0,a+20|0,1);if(M[a+20>>2]>=2){a=0;Nc(e,1,2366497,0);break a}f=J[d>>2]-5| +0;J[d>>2]=f;a=1;j=J[h+4>>2];if(!(H[h|0]&1)){if(!j)break a;c=0;b=i+P(b,1080)|0;while(1){a=b+(c<<2)|0;J[a+944>>2]=15;J[a+812>>2]=15;a=1;c=c+1|0;if(c>>>0>2])continue;break}break a}if(f>>>0>>0)break b;d:{if(!j){b=0;break d}wd(c+5|0,g+28|0,1);i=i+P(b,1080)|0;a=J[g+28>>2];J[i+944>>2]=a>>>4;J[i+812>>2]=a&15;b=J[h+4>>2];if(b>>>0>=2){a=c+6|0;c=1;while(1){wd(a,g+28|0,1);e:{b=J[g+28>>2];if(b>>>0>=16){f=b&15;if(f)break e}a=0;Nc(e,1,2366562,0);break a}j=i+(c<<2)|0;J[j+944>>2]=b>>>4;J[j+812>>2]=f;a=a+ +1|0;b=J[h+4>>2];c=c+1|0;if(b>>>0>c>>>0)continue;break}}f=J[d>>2]}J[d>>2]=f-b;a=1;break a}fa(2365733,2358254,10526,2366005);B()}fa(2366030,2358254,10534,2366005);B()}a=0;Nc(e,1,2366072,0)}fc=g+32|0;return a}function akb(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;e=fc-16|0;fc=e;j=J[b+28>>2];J[a+368>>2]=b;c=kc[J[a+516>>2]](a,1851878757,b,e+8|0)|0;a:{if(c)break a;k=J[b+8>>2];c=Te(b,326432,a+344|0);J[e+12>>2]=c;if(c)break a;c=145;g=k+6|0;d=J[a+348>>2];h=g+P(d,12)|0;i=J[e+8>>2]+k| +0;if(h>>>0>i>>>0)break a;if(L[a+344>>1]==1){c=yd(b,h);J[e+12>>2]=c;if(c)break a;d=e+12|0;f=ee(b,d);J[a+360>>2]=f;c=J[e+12>>2];if(c)break a;l=a,m=_c(j,12,0,f,0,d),J[l+364>>2]=m;c=J[e+12>>2];if(c)break a;c=af(b,J[a+360>>2]<<2);J[e+12>>2]=c;if(c)break a;h=((f<<2)+h|0)+2|0;c=J[a+364>>2];b:{if(!c)break b;d=J[a+360>>2];if((d|0)<=0)break b;d=P(d,12)+c|0;while(1){l=e,m=Te(b,326492,c),J[l+12>>2]=m;f=J[c+4>>2]+(J[a+352>>2]+k|0)|0;J[c+4>>2]=f;if(!(f+L[c>>1]>>>0<=i>>>0&f>>>0>=h>>>0))I[c>>1]=0;c=c+12|0;if(d>>> +0>c>>>0)continue;break}}ve(b);l=e,m=yd(b,g),J[l+12>>2]=m;d=J[a+348>>2]}l=a,m=_c(j,20,0,d,0,e+12|0),J[l+356>>2]=m;c=J[e+12>>2];if(c)break a;c=af(b,P(J[a+348>>2],12));J[e+12>>2]=c;if(c)break a;d=J[a+356>>2];f=J[a+348>>2];c:{if(!f){c=d;i=0;break c}c=d;while(1){d=Te(b,326464,c);J[e+12>>2]=d;d:{if(d)break d;d=L[c+8>>1];if(!d)break d;g=J[c+12>>2]+(J[a+352>>2]+k|0)|0;J[c+12>>2]=g;if(h>>>0>g>>>0|d+g>>>0>i>>>0)break d;e:{if(L[a+344>>1]!=1)break e;d=I[c+4>>1];if((d|0)>=0)break e;d=(d&65535)-32768|0;if(d>>> +0>=M[a+360>>2]|!L[J[a+364>>2]+P(d,12)>>1])break d}c=c+20|0}f=f-1|0;if(f)continue;break}d=J[a+356>>2];i=J[a+348>>2]}c=(c-d|0)/20|0;j=_c(j,20,i,c,d,e+12|0);J[a+348>>2]=c;J[a+356>>2]=j;ve(b);I[a+340>>1]=J[a+348>>2];c=J[e+12>>2]}fc=e+16|0;return c|0}function TI(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,w=0,x=0,y=0;l=J[b+8>>2];if((l|0)>0){u=J[b>>2];while(1){b=J[J[(k<<2)+u>>2]>>2];m=J[b+8>>2];if((m|0)>0){v=J[b>>2];g=0;while(1){b=J[J[(g<<2)+v>>2]>>2];n=J[b+ +8>>2];if((n|0)>0){o=J[a+216>>2];p=J[a+212>>2];w=J[b>>2];h=0;while(1){b=J[J[(h<<2)+w>>2]>>2];q=J[b+8>>2];if((q|0)>0){r=J[o+8>>2];s=J[p+8>>2];x=J[b>>2];i=0;while(1){a:{b:{c:{d:{e:{c=J[(i<<2)+x>>2];j=K[c+100|0];t=j-1|0;switch(t|0){case 2:break b;case 1:break c;case 0:break d;default:break e}}d=O[c+56>>3];f=d*O[J[c+48>>2]+32>>3]+O[c+24>>3];break a}d=O[c+56>>3];f=O[c>>3]-d*O[J[c+48>>2]+32>>3];break a}d=O[c+56>>3];f=O[c+16>>3]-d*O[J[c+48>>2]+32>>3];break a}d=O[c+56>>3];f=d*O[J[c+48>>2]+32>>3]+O[c+8>>3]}d= +d*.2;if((s|0)>0){y=J[p>>2];b=0;while(1){e=J[(b<<2)+y>>2];f:{g:{if(J[e+32>>2]){h:switch(j|0){case 0:case 2:break h;default:break f}if(!(d>R(O[e+8>>3]-f))|!(O[e>>3]>3]))break f;if(O[e+16>>3]>O[c+8>>3]-d)break g;break f}i:switch(t|0){case 0:case 2:break i;default:break f}if(!(O[e+24>>3]>O[c+24>>3]-d)|(!(d>R(O[e>>3]-f))|!(O[e+8>>3]>3])))break f}H[c+104|0]=1}b=b+1|0;if((s|0)!=(b|0))continue;break}}if((r|0)>0){f=d+O[c>>3];j=J[o>>2];b=0;while(1){e=J[j+(b<<2)>>2];if(!(!(f>O[e>>3])|!(O[e+ +16>>3]>O[c+8>>3]-d)|(!(O[e+8>>3]>3])|!(O[e+24>>3]>O[c+24>>3]-d))))J[c+64>>2]=e;b=b+1|0;if((r|0)!=(b|0))continue;break}}i=i+1|0;if((q|0)!=(i|0))continue;break}}h=h+1|0;if((n|0)!=(h|0))continue;break}}g=g+1|0;if((m|0)!=(g|0))continue;break}}k=k+1|0;if((l|0)!=(k|0))continue;break}}}function Z1(a){var b=0,c=0,d=0,e=0,f=0;f=fc-16|0;fc=f;e=J[a+52>>2];a:{if(e)break a;e=kc[J[663195]](24)|0;if(!e){J[f>>2]=14930;Hc(0,0,0,0,0,2,2,3,14930,0,0,0,32879,f);e=0;break a}J[e>>2]=0;J[e+4>>2]=0;J[e+16>>2]= +0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=18;b=kc[J[663198]](37)|0;b:{if(!b){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}H[b+36|0]=0;c=K[14886]|K[14887]<<8|(K[14888]<<16|K[14889]<<24);H[b+32|0]=c;H[b+33|0]=c>>>8;H[b+34|0]=c>>>16;H[b+35|0]=c>>>24;c=K[14882]|K[14883]<<8|(K[14884]<<16|K[14885]<<24);d=K[14878]|K[14879]<<8|(K[14880]<<16|K[14881]<<24);H[b+24|0]=d;H[b+25|0]=d>>>8;H[b+26|0]=d>>>16;H[b+27|0]=d>>>24;H[b+28|0]=c;H[b+29|0]=c>>>8;H[b+30|0]=c>>>16;H[b+31|0]=c>>>24;c=K[14874]|K[14875]<< +8|(K[14876]<<16|K[14877]<<24);d=K[14870]|K[14871]<<8|(K[14872]<<16|K[14873]<<24);H[b+16|0]=d;H[b+17|0]=d>>>8;H[b+18|0]=d>>>16;H[b+19|0]=d>>>24;H[b+20|0]=c;H[b+21|0]=c>>>8;H[b+22|0]=c>>>16;H[b+23|0]=c>>>24;c=K[14866]|K[14867]<<8|(K[14868]<<16|K[14869]<<24);d=K[14862]|K[14863]<<8|(K[14864]<<16|K[14865]<<24);H[b+8|0]=d;H[b+9|0]=d>>>8;H[b+10|0]=d>>>16;H[b+11|0]=d>>>24;H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;c=K[14858]|K[14859]<<8|(K[14860]<<16|K[14861]<<24);d=K[14854]|K[14855]<< +8|(K[14856]<<16|K[14857]<<24);H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;H[b+4|0]=c;H[b+5|0]=c>>>8;H[b+6|0]=c>>>16;H[b+7|0]=c>>>24}J[e+8>>2]=b;b=kc[J[663198]](4)|0;c:{if(!b){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break c}H[b+3|0]=0;H[b+2|0]=K[9686];c=K[9684]|K[9685]<<8;H[b|0]=c;H[b+1|0]=c>>>8}J[e+12>>2]=b;J[a+52>>2]=e}fc=f+16|0;return e}function F4a(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;e=J[a+328>>2];f=J[a+448>>2];i=J[f+24>>2];a:{c= +J[f+28>>2];if((i|0)<(c|0)){s=e-1|0;o=J[a+356>>2]-1|0;k=f+32|0;h=J[f+20>>2];while(1){if(h>>>0<=o>>>0){while(1){Re(J[k>>2],J[a+364>>2]<<7);if(!(kc[J[J[a+464>>2]+4>>2]](a,k)|0))break a;c=J[a+336>>2];if((c|0)>0){g=0;l=0;while(1){d=J[((l<<2)+a|0)+340>>2];b:{if(!J[d+52>>2]){g=J[d+64>>2]+g|0;break b}e=J[d+60>>2];if((e|0)<=0)break b;m=J[(h>>>0>>0?56:72)+d>>2];if((m|0)>0){t=P(J[d+68>>2],h);c=J[d+4>>2]<<2;p=J[(c+J[a+468>>2]|0)+4>>2];q=J[b+c>>2];c=J[d+40>>2];j=q+(P(i,c)<<2)|0;u=m&-2;q=m&1;n=0;while(1){if(!(J[d+ +76>>2]<=(i+n|0)&M[a+148>>2]>=s>>>0)){e=0;c=t;r=0;if((m|0)!=1)while(1){kc[p|0](a,d,J[(e+g<<2)+k>>2],j,c);c=J[d+36>>2]+c|0;kc[p|0](a,d,J[((e|1)+g<<2)+k>>2],j,c);e=e+2|0;c=c+J[d+36>>2]|0;r=r+2|0;if((u|0)!=(r|0))continue;break}if(q)kc[p|0](a,d,J[((e+g<<2)+f|0)+32>>2],j,c);e=J[d+60>>2];c=J[d+40>>2]}j=(c<<2)+j|0;g=J[d+56>>2]+g|0;n=n+1|0;if((n|0)<(e|0))continue;break}c=J[a+336>>2];break b}g=P(J[d+56>>2],e)+g|0}l=l+1|0;if((l|0)<(c|0))continue;break}}h=h+1|0;if(o>>>0>=h>>>0)continue;break}c=J[f+28>>2]}h=0; +J[f+20>>2]=0;i=i+1|0;if((i|0)<(c|0))continue;break}e=J[a+328>>2]}J[a+156>>2]=J[a+156>>2]+1;c=J[a+148>>2]+1|0;J[a+148>>2]=c;if(c>>>0>>0){b=J[a+448>>2];c:{if(J[a+336>>2]>=2){J[b+28>>2]=1;break c}a=J[a+340>>2];if(c>>>0>>0){J[b+28>>2]=J[a+12>>2];break c}J[b+28>>2]=J[a+76>>2]}J[b+20>>2]=0;J[b+24>>2]=0;return 3}kc[J[J[a+456>>2]+12>>2]](a);return 4}J[f+20>>2]=h;J[f+24>>2]=i;return 0}function fL(a){var b=0,c=0,d=0,e=0;d=J[a+32>>2];if(d)d=J[d+80>>2];else d=0;c=J[a+12>>2];if(!(!c|J[a+68>>2]!=1|J[c+ +20>>2]!=(a|0)))Ym(c);e=J[a+8>>2];a:{b:{if(d){c:{if(!e)break c;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break c;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}kc[J[663199]](e)}e=J[a+52>>2];d:{if(!e)break d;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break d;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}kc[J[663199]](e)}e=J[a+56>>2];e:{if(!e)break e;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+ +4>>2]&e>>>0>=b+20>>>0)break e;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}kc[J[663199]](e)}e=J[a+64>>2];f:{if(!e)break f;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break f;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}kc[J[663199]](e)}e=J[a+40>>2];g:{if(!e)break g;c=d;while(1){b=J[c+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break g;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}kc[J[663199]](e)}c=J[a+ +36>>2];if(!c)break a;while(1){b=J[d+16>>2];if(b)while(1){if(b+20>>>0<=c>>>0&M[b+4>>2]>=c>>>0)break a;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}break b}if(e)kc[J[663199]](e);d=J[a+52>>2];if(d)kc[J[663199]](d);d=J[a+56>>2];if(d)kc[J[663199]](d);d=J[a+64>>2];if(d)kc[J[663199]](d);d=J[a+40>>2];if(d)kc[J[663199]](d);c=J[a+36>>2];if(!c)break a}kc[J[663199]](c)}kc[J[663199]](a)}function jv(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;i=fc-256|0;fc=i;if(!((a|0)<=0|(b| +0)<=0)){g=Dc(16);a:{if(!g)break a;J[g+4>>2]=b;J[g>>2]=a;J[g+12>>2]=0;J[i>>2]=b;J[i+128>>2]=a;while(1){n=f;f=f+1|0;e=f<<2;h=(b+1|0)/2|0;J[e+i>>2]=h;c=e+(i+128|0)|0;e=(a+1|0)/2|0;J[c>>2]=e;c=P(a,b);d=c+d|0;b=h;a=e;if((c|0)>1)continue;break}J[g+8>>2]=d;c=Dc(d<<4);J[g+12>>2]=c;if(!c){d=0;break a}b=c;if(n){d=(P(J[g+4>>2],J[g>>2])<<4)+c|0;a=d;while(1){e=l<<2;k=J[e+i>>2];b:{if((k|0)<=0)break b;m=k-1|0;j=0;c:{h=J[e+(i+128|0)>>2];if((h|0)<=0){f=0;if((k|0)!=1){o=k&-2;while(1){e=(f|0)==(m|0);f=f+2|0;d=e?a:d; +a=d;j=j+2|0;if((o|0)!=(j|0))continue;break}}if(k&1)break c;a=d;break b}while(1){e=d;d=h;while(1){d:{J[b>>2]=a;if((d|0)==1){b=b+16|0;a=a+16|0;break d}J[b+16>>2]=a;a=a+16|0;b=b+32|0;f=(d|0)>2;d=d-2|0;if(f)continue}break}f=((j|0)==(m|0)|j)&1;d=f?a:e+(h<<4)|0;a=f?a:e;j=j+1|0;if((k|0)!=(j|0))continue;break}break b}e=(h<<4)+d|0;h=((f|0)==(m|0)|f)&1;e=h?a:e;a=h?a:d;d=e}l=l+1|0;if((l|0)!=(n|0))continue;break}}d=0;J[b>>2]=0;b=J[g+8>>2];e:{if((b|0)<=0)break e;e=b&3;f:{if(!e){a=b;break f}a=b;while(1){J[c+12>> +2]=0;J[c+4>>2]=2147483647;J[c+8>>2]=0;c=c+16|0;a=a-1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}if(b>>>0<4)break e;while(1){J[c+12>>2]=0;J[c+4>>2]=2147483647;J[c+8>>2]=0;J[c+60>>2]=0;J[c+52>>2]=2147483647;J[c+56>>2]=0;J[c+44>>2]=0;J[c+36>>2]=2147483647;J[c+40>>2]=0;J[c+28>>2]=0;J[c+20>>2]=2147483647;J[c+24>>2]=0;c=c- -64|0;b=a-5|0;a=a-4|0;if(b>>>0<4294967294)continue;break}}d=g}fc=i+256|0;return d}fa(198066,198855,109,212445);B()}function LK(a,b){var c=0,d=0,e=0,f=0,g=0;c=J[a+20>>2];if(c)f=J[c+296>> +2];else f=0;a:{b:{c:{d:{c=J[b+4>>2];switch(c-2|0){case 0:break b;case 16:break c;case 12:break d;default:break a}}Ur(b);return}a=J[b+8>>2];if(a)kc[J[663199]](a);a=J[b+12>>2];if(a)kc[J[663199]](a);kc[J[663199]](b);return}KK(a,b);return}e:{if((c|0)==5)break e;c=J[b+12>>2];if(!c)break e;if(J[c+20>>2]==(b|0))qC(a,c);J[b+12>>2]=0}f:{if(!J[693393])break f;c=J[693391];if(!c)break f;kc[c|0](b)}d=J[b+4>>2];g:{if(d>>>0>20|!(1<>2];if(!c)break g;while(1){e=J[c+24>>2];KK(a,c);c=e; +if(c)continue;break}d=J[b+4>>2]}g=J[b+40>>2];h:{if((g|0)==(b+44|0)|(1<>>0<=20:0)|!g)break h;if(f){e=f;while(1){c=J[e+16>>2];if(c)while(1){if(c+20>>>0<=g>>>0&M[c+4>>2]>=g>>>0)break h;c=J[c>>2];if(c)continue;break}e=J[e+20>>2];if(e)continue;break}}kc[J[663199]](g);d=J[b+4>>2]}i:{if(!(1<>>0>20)break i;c=J[b+48>>2];if(!c)break i;while(1){e=J[c>>2];d=J[c+8>>2];if(d)kc[J[663199]](d);d=J[c+12>>2];if(d)kc[J[663199]](d);kc[J[663199]](c);c=e;if(c)continue;break}d=J[b+4>>2]}j:{k:switch(d- +3|0){case 0:case 5:break j;default:break k}e=J[b+8>>2];if(!e)break j;if(f)while(1){c=J[f+16>>2];if(c)while(1){if(e>>>0<=M[c+4>>2]&e>>>0>=c+20>>>0)break j;c=J[c>>2];if(c)continue;break}f=J[f+20>>2];if(f)continue;break}kc[J[663199]](e);d=J[b+4>>2]}l:{m:switch(d-1|0){case 0:case 2:break m;default:break l}a=J[a+20>>2];if(!a)break l;c=J[a+368>>2];if((c|0)>99)break l;J[b+24>>2]=J[a+372>>2];J[a+368>>2]=c+1;J[a+372>>2]=b;return}kc[J[663199]](b)}function fpb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h= +fc-16|0;fc=h;d=J[a+712>>2];J[h+12>>2]=0;a:{if(!d)break a;f=J[d+3092>>2];if(!f){f=he(J[a+100>>2],32,h+12|0);c=J[h+12>>2];if(c)break a;a=0;e=J[d+1372>>2];g=0;b:{if((e|0)==65535)break b;if(e>>>0>=391){e=e-391|0;g=0;if(e>>>0>=M[d+1356>>2])break b;g=J[J[d+1360>>2]+(e<<2)>>2];break b}c=J[d+3084>>2];g=0;if(!c)break b;g=kc[J[c+20>>2]](e)|0}J[f>>2]=g;c=J[d+1376>>2];c:{if((c|0)==65535)break c;if(c>>>0>=391){c=c-391|0;if(c>>>0>=M[d+1356>>2])break c;a=J[J[d+1360>>2]+(c<<2)>>2];break c}e=J[d+3084>>2];if(!e)break c; +a=kc[J[e+20>>2]](c)|0}J[f+4>>2]=a;a=0;e=J[d+1384>>2];g=0;d:{if((e|0)==65535)break d;if(e>>>0>=391){e=e-391|0;g=0;if(e>>>0>=M[d+1356>>2])break d;g=J[J[d+1360>>2]+(e<<2)>>2];break d}c=J[d+3084>>2];g=0;if(!c)break d;g=kc[J[c+20>>2]](e)|0}J[f+8>>2]=g;c=J[d+1388>>2];e:{if((c|0)==65535)break e;if(c>>>0>=391){c=c-391|0;if(c>>>0>=M[d+1356>>2])break e;a=J[J[d+1360>>2]+(c<<2)>>2];break e}e=J[d+3084>>2];if(!e)break e;a=kc[J[e+20>>2]](c)|0}J[f+12>>2]=a;c=0;a=J[d+1392>>2];f:{if((a|0)==65535)break f;if(a>>>0>= +391){a=a-391|0;if(a>>>0>=M[d+1356>>2])break f;c=J[J[d+1360>>2]+(a<<2)>>2];break f}e=J[d+3084>>2];if(!e)break f;c=kc[J[e+20>>2]](a)|0}J[f+16>>2]=c;J[f+20>>2]=J[d+1400>>2];H[f+24|0]=K[d+1396|0];I[f+26>>1]=J[d+1404>>2];I[f+28>>1]=J[d+1408>>2];J[d+3092>>2]=f;c=J[h+12>>2]}a=J[f+4>>2];J[b>>2]=J[f>>2];J[b+4>>2]=a;a=J[f+28>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=a;a=J[f+20>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=a;a=J[f+12>>2];J[b+8>>2]=J[f+8>>2];J[b+12>>2]=a}fc=h+16|0;return c|0}function Usa(a,b){a=a|0;b=b|0; +var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;g=vj(a,0,262142,a+164|0);e=J[b+20>>2];if(e){J[e+4>>2]=J[e+4>>2]+1;c=J[b+20>>2]}J[d+28>>2]=c;a:{b:{c:{d:{e:{e=(g|0)<=0;f:{if(c|e)break f;c=J[a+3316>>2];if(!c){c=0;break f}a=J[a+3320>>2];J[699344]=0;f=c;c=d+4|0;da(f|0,c|0,a|0);a=J[699344];J[699344]=0;g:{h:{if((a|0)!=1){J[699344]=0;aa(5153,d+28|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;a=J[d+4>>2];c=0;J[d+4>>2]=0;if(!a)break g;J[699344]=0;h=J[a+4>>2]-1|0;J[a+4>>2]=h;f=J[699344];J[699344]=0;if((f| +0)!=1){if(h)break g;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break g}break a}c=Z()|0;break c}c=Z()|0;zc(d+4|0);break c}if(!J[d+28>>2])break f;J[699344]=0;da(5686,b|0,d+28|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;c=J[d+28>>2]}if(!(c|e)){J[699344]=0;a=ja(5178,d+4|0,2390599,2386144,658,2433508,0)|0;b=J[699344];J[699344]=0;i:{if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;break b}c=Z()|0;break c}c=Z()|0;Kc(a);break c}j:{if(!c)break j;if((((J[c+ +16>>2]+J[c+44>>2]|0)-J[c+40>>2]|0)+1|0)!=(g|0)){J[699344]=0;a=ja(5178,d+4|0,2391191,2386144,660,2433508,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;c=Z()|0;Kc(a);break c}J[699344]=0;J[d+28>>2]=0;a=J[c+4>>2]-1|0;J[c+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(a)break j;J[699344]=0;$(5147,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+32|0;return}c=Z()|0;break c}c=Z()|0}zc(d+28|0);ba(c|0);B()}B()}ea(0)|0;Bc(); +B()}function SZa(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;h=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<-1)break a;l=J[a+28>>2];f=(h<<1)-l|0;if((f|0)<=0)break a;g=c-4|0;k=e+2|0;m=k&3;b=0;if(e+1>>>0>=3){n=k&-4;k=0;while(1){e=b<<2;j=l+J[e+g>>2]|0;Ac(j,K[j-1|0],f);j=l+J[g+(e|4)>>2]|0;Ac(j,K[j-1|0],f);j=l+J[g+(e|8)>>2]|0;Ac(j,K[j-1|0],f);e=l+J[g+(e|12)>>2]|0;Ac(e,K[e-1|0],f);b=b+4|0;k=k+4|0;if((n|0)!=(k|0))continue;break}}if(m)while(1){e=l+J[g+(b<<2)>> +2]|0;Ac(e,K[e-1|0],f);b=b+1|0;i=i+1|0;if((m|0)!=(i|0))continue;break}e=J[a+272>>2]}if((e|0)>0){b=J[a+228>>2];k=b<<4;n=P(b,-80)+16384|0;l=h-2|0;m=0;j=0;while(1){b=m<<2;i=J[(b|4)+c>>2];f=b+c|0;b=J[f>>2];e=K[i|0]+K[b|0]|0;h=J[(j<<2)+d>>2];g=J[f-4>>2];o=K[g|0];m=m+2|0;f=J[(m<<2)+c>>2];p=K[f|0];H[h|0]=(P(n,K[i+1|0]+(e+K[b+1|0]|0)|0)+P(k,(((o+p|0)+K[g+2|0]|0)+K[f+2|0]|0)+(K[i+2|0]+(K[b+2|0]+(K[f+1|0]+(p+(K[g+1|0]+(e+o|0)|0)|0)|0)|0)<<1)|0)|0)+32768>>>16;e=h+1|0;b=b+2|0;f=f+2|0;g=g+2|0;h=i+2|0;i=l;if(i)while(1){H[e| +0]=(P(n,K[h+1|0]+(K[h|0]+(K[b+1|0]+K[b|0]|0)|0)|0)+P(k,K[f+2|0]+(K[f-1|0]+((K[g+2|0]+K[g-1|0]|0)+(K[h+2|0]+(K[h-1|0]+(K[b+2|0]+(K[b-1|0]+(K[f+1|0]+(K[f|0]+(K[g+1|0]+K[g|0]|0)|0)|0)|0)|0)|0)<<1)|0)|0)|0)|0)+32768>>>16;e=e+1|0;f=f+2|0;g=g+2|0;h=h+2|0;b=b+2|0;i=i-1|0;if(i)continue;break}p=e;i=K[h+1|0]+K[b+1|0]|0;e=K[f+1|0];o=K[g+1|0];H[p|0]=(P(n,K[h|0]+(i+K[b|0]|0)|0)+P(k,(K[f-1|0]+(K[g-1|0]+(e+o|0)|0)|0)+(K[h-1|0]+(K[b-1|0]+(e+(K[f|0]+(o+(i+K[g|0]|0)|0)|0)|0)|0)<<1)|0)|0)+32768>>>16;j=j+1|0;if(J[a+ +272>>2]>(m|0))continue;break}}}function Q4(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;f=J[a+8>>2];a:{if((f|0)!=J[a+12>>2]){d=f;break a}d=J[a>>2];c=J[a+4>>2];if(d>>>0>>0){g=((c-d>>3)+1|0)/-2<<3;d=g+c|0;if((c|0)!=(f|0)){while(1){h=J[c>>2];i=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;e=J[d+4>>2];J[d>>2]=h;J[d+4>>2]=i;b:{if(!e)break b;h=J[e+4>>2];J[e+4>>2]=h-1;if(h)break b;kc[J[J[e>>2]+8>>2]](e);Gc(e)}d=d+8|0;c=c+8|0;if((f|0)!=(c|0))continue;break}f=J[a+4>>2]}J[a+8>>2]=d;J[a+4>>2]=f+g;break a}c:{d:{e= +(d|0)==(f|0)?1:f-d>>2;if(e>>>0<536870912){h=e<<3;g=vc(h);h=g+h|0;e=g+(e<<1&-8)|0;if((c|0)==(f|0))break d;i=f-c|0;j=i-8|0;k=(j>>>3|0)+1&3;e:{if(!k){d=e;break e}f=0;d=e;while(1){J[d>>2]=J[c>>2];J[d+4>>2]=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;c=c+8|0;d=d+8|0;f=f+1|0;if((k|0)!=(f|0))continue;break}}f=e+i|0;if(j>>>0>=24)while(1){J[d>>2]=J[c>>2];J[d+4>>2]=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;J[d+8>>2]=J[c+8>>2];J[d+12>>2]=J[c+12>>2];J[c+8>>2]=0;J[c+12>>2]=0;J[d+16>>2]=J[c+16>>2];J[d+20>>2]=J[c+20>>2];J[c+16>>2]=0; +J[c+20>>2]=0;J[d+24>>2]=J[c+24>>2];J[d+28>>2]=J[c+28>>2];J[c+24>>2]=0;J[c+28>>2]=0;c=c+32|0;d=d+32|0;if((f|0)!=(d|0))continue;break}J[a+12>>2]=h;c=J[a+8>>2];J[a+8>>2]=f;f=J[a+4>>2];J[a+4>>2]=e;d=J[a>>2];J[a>>2]=g;if((c|0)==(f|0))break c;while(1){c=c-8|0;e=J[c+4>>2];f:{if(!e)break f;g=J[e+4>>2];J[e+4>>2]=g-1;if(g)break f;kc[J[J[e>>2]+8>>2]](e);Gc(e)}if((c|0)!=(f|0))continue;break}break c}Pd();B()}J[a+12>>2]=h;J[a+8>>2]=e;J[a+4>>2]=e;J[a>>2]=g}if(d)uc(d);d=J[a+8>>2]}J[d>>2]=J[b>>2];b=J[b+4>>2];J[d+ +4>>2]=b;if(b){J[b+4>>2]=J[b+4>>2]+1;d=J[a+8>>2]}J[a+8>>2]=d+8}function q4a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;t=fc-208|0;fc=t;q=J[a+332>>2];a=J[b+84>>2];b=t;while(1){i=J[a+160>>2];h=I[c+80>>1];o=J[a+32>>2];m=I[c+16>>1];r=J[a+96>>2];n=I[c+48>>1];j=P(I[c>>1],J[a>>2])<<13|1024;k=P(J[a+128>>2],I[c+64>>1]);f=P(J[a+192>>2],I[c+96>>1]);g=P(J[a+64>>2],I[c+32>>1]);p=f+g|0;J[b+84>>2]=j+P(k-p|0,11585)>>11;i=P(h,i);h=P(o,m);o=P(i+h|0,5027); +p=j+P(p,10438)|0;m=P(k-f|0,7223);l=p+(m+P(f,-637)|0)|0;f=P(n,r);r=P(f+h|0,7663);h=P(h-f|0,1395);n=o+(r-h|0)|0;J[b+168>>2]=l-n>>11;J[b>>2]=n+l>>11;l=P(g,-20239);g=P(g-k|0,2578);n=p+(l+g|0)|0;f=P(f+i|0,-11295);i=f+(o+P(i,15326)|0)|0;J[b+112>>2]=n-i>>11;J[b+56>>2]=i+n>>11;k=m+(g+(j+P(k,-15083)|0)|0)|0;f=f+(h+r|0)|0;J[b+140>>2]=k-f>>11;J[b+28>>2]=f+k>>11;b=b+4|0;a=a+4|0;c=c+2|0;s=s+1|0;if((s|0)!=7)continue;break}a=q+128|0;c=t;k=0;while(1){f=J[c+16>>2];g=J[c+24>>2];j=P(f-g|0,7223);b=J[(k<<2)+d>>2]+e|0; +i=J[c+12>>2];h=J[c+4>>2];q=P(i+h|0,7663);m=P(h-i|0,1395);l=h;h=J[c+20>>2];r=P(l+h|0,5027);n=(q-m|0)+r|0;s=j+P(g,-637)|0;o=(J[c>>2]<<13)+131072|0;l=g;g=J[c+8>>2];p=l+g|0;l=o+P(p,10438)|0;s=s+l|0;H[b|0]=K[a+(n+s>>>18&1023)|0];H[b+6|0]=K[a+(s-n>>>18&1023)|0];i=P(h+i|0,-11295);q=i+(m+q|0)|0;m=P(g-f|0,2578);j=j+(m+(o+P(f,-15083)|0)|0)|0;H[b+1|0]=K[a+(q+j>>>18&1023)|0];H[b+5|0]=K[a+(j-q>>>18&1023)|0];j=i+(r+P(h,15326)|0)|0;g=l+(m+P(g,-20239)|0)|0;H[b+2|0]=K[a+(j+g>>>18&1023)|0];H[b+4|0]=K[a+(g-j>>>18&1023)| +0];H[b+3|0]=K[a+(o+P(f-p|0,11585)>>>18&1023)|0];c=c+28|0;k=k+1|0;if((k|0)!=7)continue;break}fc=t+208|0}function dY(a,b,c){var d=0,e=0,f=0;d=fc-256|0;fc=d;f=J[a+200>>2];if(f&1){a:{if(f&4){fd(a,66283);Vd(a,c);break a}if(!(!b|!(K[b+8|0]&16))){fd(a,66307);Vd(a,c);break a}b:{c:{d:switch(K[a+401|0]){case 0:if((c|0)==2){Dg(a,d,2);Ae(a,d,2);I[a+394>>1]=1;c=K[d|0]|K[d+1|0]<<8;I[a+516>>1]=c<<8|c>>>8;break b}fd(a,66328);Vd(a,c);break a;case 2:if((c|0)==6){Dg(a,d,6);Ae(a,d,6);I[a+394>>1]=1;c=K[d|0]|K[d+1|0]<< +8;I[a+510>>1]=c<<8|c>>>8;c=K[d+2|0]|K[d+3|0]<<8;I[a+512>>1]=c<<8|c>>>8;c=K[d+4|0]|K[d+5|0]<<8;I[a+514>>1]=c<<8|c>>>8;break b}fd(a,66328);Vd(a,c);break a;case 3:if(!(f&2))fd(a,66356);if(!(c>>>0<=256&L[a+392>>1]>=c>>>0)){fd(a,66328);Vd(a,c);break a}if(c)break c;fd(a,66381);Vd(a,0);break a;default:break d}fd(a,66404);Vd(a,c);break a}Dg(a,d,c);Ae(a,d,c);I[a+394>>1]=c}if(Vd(a,0)){I[a+394>>1]=0;break a}f=L[a+394>>1];c=a+508|0;e:{if(!a|!b)break e;if(f>>>0>=257){fd(a,65018);break e}f:{g:{h:{i:{if(d){Zp(a, +b,8192,0);e=lh(a,256);J[b+76>>2]=e;J[a+504>>2]=e;if(!f)break i;xc(e,d,f)}if(!c)break h;break g}if(c)break g;I[b+22>>1]=f;break e}I[b+22>>1]=f;if(!f)break e;break f}e=K[b+24|0];j:{if(e>>>0>15)break j;e=-1<>>0>1])break k;break j;case 2:break l;default:break j}if(e>>>0>1]|e>>>0>1])break k;if(e>>>0>=L[c+6>>1])break j}fd(a,65112)}a=L[c+4>>1]|L[c+6>>1]<<16;e=L[c>>1]|L[c+2>>1]<<16;I[b+80>>1]=e;I[b+82>>1]=e>>>16;I[b+84>>1]=a;I[b+86>>1]=a>>>16; +I[b+88>>1]=L[c+8>>1];I[b+22>>1]=f>>>0<=1?1:f}J[b+8>>2]=J[b+8>>2]|16;J[b+184>>2]=J[b+184>>2]|8192}}fc=d+256|0;return}Ld(a,66258);B()}function lxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc-48|0;fc=d;if(!K[2775596]){Dn(2775588,32);H[2775596]=1}c=Dn(d+16|0,40);J[699344]=0;e=d+24|0;ca(5291,e|0,c|0,2423663);f=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((f|0)!=1){J[699344]=0;ca(5292,a|0,e|0,2775588);f=J[699344];J[699344]=0;if((f|0)!=1){wc(e);wc(c);if(J[b+92>>2]<=0)break e;c=0;f:{g:{while(1){J[d+16>>2]=0; +J[d+20>>2]=J[685894];if(!(J[b+116>>2]<=(c|0)&J[b+120>>2]>=(c|0))){J[699344]=0;c=ja(5178,d+24|0,2404388,2405416,619,2413160,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(c);break f}if(!(J[b+140>>2]<=(c|0)&J[b+144>>2]>=(c|0))){J[699344]=0;c=ja(5178,d+24|0,2404388,2405416,619,2413160,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(c);break f}e= +J[J[b+128>>2]+(c-J[b+132>>2]<<2)>>2];J[d>>2]=J[J[b+104>>2]+(c-J[b+108>>2]<<2)>>2];J[699344]=0;J[d+4>>2]=e;e=d+16|0;f=ga(5350,e|0,2391534,d|0)|0;g=J[699344];J[699344]=0;h:{if((g|0)==1)break h;J[699344]=0;aa(5340,a|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break h;wc(e);c=c+1|0;if((c|0)>2])continue;break e}break}b=Z()|0;break f}b=Z()|0}wc(d+16|0);break d}a=Z()|0;wc(d+24|0);break a}a=Z()|0;break a}b=J[a>>2];if(b)b=J[b+8>>2]-1|0;else b=-1;J[699344]=0;ca(5336,a|0,b|0,41);b=J[699344];J[699344]= +0;if((b|0)!=1){J[699344]=0;aa(5340,a|0,2775588)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c}b=Z()|0}wc(a);ba(b|0);B()}fc=d+48|0;return}B()}wc(c);ba(a|0);B()}function g0(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;j=fc-16|0;fc=j;e=J[a+400>>2];d=J[a+288>>2];if((d|0)>0)while(1){f=c<<2;d=J[(f+a|0)+292>>2];b=J[d+12>>2];t=f+j|0,u=kc[J[J[a+4>>2]+32>>2]](a,J[((J[d+4>>2]<<2)+e|0)- -64>>2],P(b,J[e+8>>2]),b,0)|0,J[t>>2]=u;c=c+1|0;d=J[a+288>>2];if((c|0)< +(d|0))continue;break}b=J[e+20>>2];h=J[e+16>>2];a:{if((b|0)>(h|0)){p=e+24|0;c=J[a+308>>2];g=J[e+12>>2];while(1){if(c>>>0>g>>>0){while(1){k=0;f=0;m=J[a+288>>2];if((m|0)>0)while(1){b=k<<2;c=J[(b+a|0)+292>>2];n=J[c+60>>2];b:{if((n|0)<=0)break b;i=J[c+56>>2];if((i|0)<=0)break b;q=J[b+j>>2]+(h<<2)|0;o=i&7;l=0;r=P(g,i)<<7;s=i>>>0<8;while(1){c=J[(l<<2)+q>>2]+r|0;b=f;d=0;if(o)while(1){J[((b<<2)+e|0)+24>>2]=c;b=b+1|0;c=c+128|0;d=d+1|0;if((o|0)!=(d|0))continue;break}f=f+i|0;if(!s)while(1){d=(b<<2)+e|0;J[d+28>> +2]=c+128;J[d+24>>2]=c;J[d+32>>2]=c+256;J[d+36>>2]=c+384;J[d+40>>2]=c+512;J[d+44>>2]=c+640;J[d+48>>2]=c+768;J[d+52>>2]=c+896;c=c+1024|0;b=b+8|0;if((f|0)!=(b|0))continue;break}l=l+1|0;if((n|0)!=(l|0))continue;break}}k=k+1|0;if((m|0)!=(k|0))continue;break}if(!(kc[J[J[a+420>>2]+4>>2]](a,p)|0)){J[e+12>>2]=g;J[e+16>>2]=h;a=0;break a}c=J[a+308>>2];g=g+1|0;if(c>>>0>g>>>0)continue;break}b=J[e+20>>2]}g=0;J[e+12>>2]=0;h=h+1|0;if((h|0)<(b|0))continue;break}d=J[a+288>>2]}J[e+8>>2]=J[e+8>>2]+1;b=J[a+400>>2];c:{if((d| +0)>=2){J[b+20>>2]=1;break c}f=J[a+292>>2];if(M[b+8>>2]>2]-1>>>0){J[b+20>>2]=J[f+12>>2];break c}J[b+20>>2]=J[f+76>>2]}J[b+12>>2]=0;J[b+16>>2]=0;a=1}fc=j+16|0;return a|0}function W6(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;i=fc-80|0;fc=i;h=J[a>>2];a:{if((h|0)<=0)break a;d=J[a+24>>2];e=P(b,204);j=J[a+16>>2];c=J[a+8>>2];k=c+P(h,40)|0;b=0;a=c;while(1){b=(J[a+16>>2]>>>4&1)+b|0;a=a+40|0;if(k>>>0>a>>>0)continue;break}if(!b)break a;m=J[(e+d|0)+200>>2];e=i+16|0;if(b>>>0>=17){e=_c(j, +4,0,b,0,i+12|0);if(J[i+12>>2])break a}b:{if((h|0)<=0)break b;d=c;while(1){if(K[d+16|0]&16){a=(g<<2)+e|0;c:{if((g|0)<=0){b=a;break c}l=J[d+28>>2];while(1){b=a-4|0;f=J[b>>2];if((l|0)>=J[f+28>>2]){b=a;break c}J[a>>2]=f;a=b;if(e>>>0>>0)continue;break}}J[b>>2]=d;g=g+1|0}d=d+40|0;if(k>>>0>d>>>0)continue;break}if((h|0)<=0)break b;l=((g<<2)+e|0)-4|0;while(1){b=J[c+16>>2];d:{if(b&16)break d;a=J[c+12>>2];if(a&2){d=K[c+20|0];if(!(a&4|b&64)|((d|0)==4|(d|0)!=K[c+21|0]))break d;J[c+12>>2]=a&-3}e:{f:{if(g){b= +J[c+28>>2];a=0;g:{while(1){if((b|0)>2]+28>>2])break g;a=a+1|0;if((g|0)!=(a|0))continue;break}a=g}if(a)break f}a=J[e>>2];f=J[a+36>>2]+Wc(J[c+28>>2]-J[a+28>>2]|0,m)|0;break e}d=J[((a<<2)+e|0)-4>>2];b=g;while(1){a=b;if(a){b=a-1|0;if(J[J[(b<<2)+e>>2]+28>>2]>=J[c+28>>2])continue}break}if((a|0)==(g|0)){a=J[l>>2];f=J[a+36>>2]+Wc(J[c+28>>2]-J[a+28>>2]|0,m)|0;break e}b=J[c+28>>2];h=J[d+28>>2];f=J[d+36>>2];if((b|0)==(h|0))break e;a=J[(a<<2)+e>>2];f=J[a+28>>2];if((f|0)==(b|0)){f=J[a+36>>2];break e}n= +J[a+36>>2];a=J[d+36>>2];f=Od(b-h|0,n-a|0,f-h|0)+a|0}J[c+36>>2]=f;J[c+16>>2]=J[c+16>>2]|32}c=c+40|0;if(k>>>0>c>>>0)continue;break}}if((i+16|0)==(e|0))break a;if(e)kc[J[j+8>>2]](j,e)}fc=i+80|0}function Vna(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a+12>>2]=0;H[a+96|0]=0;J[a+92>>2]=0;J[a+64>>2]=b;J[a+56>>2]=0;J[a+60>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+120>>2]=340552;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>> +2]=0;J[a+20>>2]=0;J[a>>2]=2444156;J[a+76>>2]=0;J[a+80>>2]=0;H[a+83|0]=0;H[a+84|0]=0;H[a+85|0]=0;H[a+86|0]=0;H[a+87|0]=0;H[a+88|0]=0;H[a+89|0]=0;H[a+90|0]=0;H[a+105|0]=0;H[a+106|0]=0;H[a+107|0]=0;H[a+108|0]=0;H[a+109|0]=0;H[a+110|0]=0;H[a+111|0]=0;H[a+112|0]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;b=a+124|0;J[b>>2]=0;J[b+4>>2]=0;J[699344]=0;ga(2227,a+136|0,2441764,5)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{if((c|0)!=1){if(H[a+135|0]>=0)break d;J[a+128>>2]=0;b=J[a+124>>2];break c}b= +Z()|0;if(H[a+147|0]<0)uc(J[a+136>>2]);if(H[a+135|0]>=0)break b;uc(J[a+124>>2]);break b}H[a+135|0]=0}J[b>>2]=0;I[a+168>>1]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0;J[a+224>>2]=0;J[a+228>>2]=0;H[a+231|0]=0;H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;J[699344]=0;b=a+240|0; +J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2463820;b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;yk(a+120|0)}c=J[a+80>>2];if(c)Gc(c);je(a+68|0);je(a+56|0);ba(b|0);B()}J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0;return a|0}function sra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=fc-32|0;fc=e;b=J[b>>2];c=b?b+12|0:2743576;d=1;d=b?J[b+8>>2]+1|0:d;b=J[c>>2];i=sh(e+16|0,e+24|0,d,1);c=J[e+24>>2];a:{b:{c:{d:{e:{f:{g:{h:{while(1){i:{d=K[b|0];j:{if((d|0)!=37){if(d)break j;H[c|0]=0;J[699344]=0; +a=aa(5149,a|0,J[e+24>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[a>>2];if(!b)break d;c=J[J[b>>2]+80>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;if(b)break d;J[699344]=0;b=aa(6244,e+8|0,J[e+24>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;c=J[b>>2];if(!c)break i;d=J[J[c>>2]+28>>2];J[699344]=0;ca(d|0,e+28|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break h;c=Z()|0;wc(b);break b}f=H[b+1|0];g=f-48|0;k:{if((g&255)>>>0<=9)break k;if((f-65&255)>>>0<=5){g=f- +55|0;break k}d=37;if((f-97&255)>>>0>5)break j;g=f-87|0}d=37;if((g|0)<0)break j;f=H[b+2|0];h=f-48|0;l:{if((h&255)>>>0<=9)break l;if((f-65&255)>>>0<=5){h=f-55|0;break l}if((f-97&255)>>>0>5)break j;h=f-87|0}if((h|0)<0)break j;b=b+2|0;d=g<<4|h}H[c|0]=d;c=c+1|0;b=b+1|0;continue}break}J[e+28>>2]=0}J[699344]=0;aa(5153,a|0,e+28|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+28>>2];J[e+28>>2]=0;if(!c)break e;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break e;J[699344]= +0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break e}ea(0)|0;Bc();B()}c=Z()|0;zc(e+28|0);wc(b);break b}c=Z()|0;break a}c=Z()|0;break b}c=a;a=J[a>>2];J[c+4>>2]=J[(a?a+12|0:2743576)>>2];wc(b)}hd(i);fc=e+32|0;return}c=Z()|0}wc(a)}hd(i);ba(c|0);B()}function UO(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;J[a+52>>2]=b;c=J[a>>2];a:{d=kd(1,28);b:{c:{if(!d){J[c+20>>2]=1;break c}J[a+4>>2]=1;J[a+40>>2]=d;while(1){e=2652E3;h=kc[J[J[b>>2]+20>>2]](b,2)|0;if((h&-256)!=65280){c=J[d+24>>2];d:{if(!c)break d;f=0;e=J[d+16>> +2];if((e|0)>0){while(1){a=J[d+24>>2]+P(f,48)|0;c=J[a+44>>2];if(c){uc(c);J[a+44>>2]=0;e=J[d+16>>2]}f=f+1|0;if((e|0)>(f|0))continue;break}c=J[d+24>>2];if(!c)break d}uc(c)}uc(d);kc[J[J[b>>2]+36>>2]](b)|0;break c}while(1){f=e;g=J[f>>2];if(g){e=f+12|0;if((g|0)!=(h|0))continue}break}if(!(J[f+4>>2]&J[a+4>>2])){c=J[d+24>>2];e:{if(!c)break e;f=0;e=J[d+16>>2];if((e|0)>0){while(1){a=J[d+24>>2]+P(f,48)|0;c=J[a+44>>2];if(c){uc(c);J[a+44>>2]=0;e=J[d+16>>2]}f=f+1|0;if((e|0)>(f|0))continue;break}c=J[d+24>>2];if(!c)break e}uc(c)}uc(d); +kc[J[J[b>>2]+36>>2]](b)|0;break c}if((g|0)==65424&J[J[a+44>>2]+20>>2]==1)break b;f:{g:{e=J[f+8>>2];if(e){kc[e|0](a);e=J[a+4>>2];if((e|0)==32)break g;if((e|0)!=64)break f;J[c+20>>2]=0;break a}c=J[d+24>>2];h:{if(!c)break h;f=0;e=J[d+16>>2];if((e|0)>0){while(1){b=J[d+24>>2]+P(f,48)|0;c=J[b+44>>2];if(c){uc(c);J[b+44>>2]=0;e=J[d+16>>2]}f=f+1|0;if((e|0)>(f|0))continue;break}c=J[d+24>>2];if(!c)break h}uc(c)}uc(d);d=0;if(J[a+4>>2]==64)break a;break b}J[c+20>>2]=0;return d}if(!J[c+20>>2])continue;break}c= +J[d+24>>2];i:{if(!c)break i;f=0;e=J[d+16>>2];if((e|0)>0){while(1){a=J[d+24>>2]+P(f,48)|0;b=J[a+44>>2];if(b){uc(b);J[a+44>>2]=0;e=J[d+16>>2]}f=f+1|0;if((e|0)>(f|0))continue;break}c=J[d+24>>2];if(!c)break i}uc(c)}uc(d)}d=0}return d}Waa(a);return d}function J9(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;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]+12>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(M[J[c+(d<<2)>>2]>>2]>=M[J[c+(e<<2)>>2]>>2])break b;J[a>>2]=d;J[b>>2]=e;break a;case 3:d=b-4|0;e=J[d>>2];b=J[J[c>> +2]+12>>2];g=J[J[(e<<2)+b>>2]>>2];h=J[a+4>>2];f=J[J[b+(h<<2)>>2]>>2];c=J[a>>2];i=J[b+(c<<2)>>2];if(f>>>0>=M[i>>2]){if(g>>>0>=f>>>0)break b;J[a+4>>2]=e;J[d>>2]=h;c=J[a+4>>2];d=J[a>>2];if(M[J[b+(c<<2)>>2]>>2]>=M[J[b+(d<<2)>>2]>>2])break b;J[a+4>>2]=d;J[a>>2]=c;break a}if(g>>>0>>0){J[a>>2]=e;J[d>>2]=c;break a}J[a+4>>2]=c;J[a>>2]=h;e=J[d>>2];if(M[J[b+(e<<2)>>2]>>2]>=M[i>>2])break b;J[a+4>>2]=e;J[d>>2]=c;break a;case 4:jO(a,a+4|0,a+8|0,b-4|0,c);break a;case 5:kO(a,a+4|0,a+8|0,a+12|0,b-4|0,c);break a; +case 0:case 1:break b;default:break c}g=a+4|0;e=a+8|0;h=J[J[c>>2]+12>>2];f=J[a+8>>2];i=J[h+(f<<2)>>2];j=J[i>>2];k=J[a+4>>2];l=J[J[h+(k<<2)>>2]>>2];m=J[a>>2];n=J[h+(m<<2)>>2];d:{e:{if(l>>>0>=M[n>>2]){if(j>>>0>=l>>>0)break d;J[g>>2]=f;J[e>>2]=k;c=a;d=g;if(M[i>>2]>2])break e;break d}c=a;d=e;if(j>>>0>>0)break e;J[a+4>>2]=m;J[a>>2]=k;c=g;if(M[i>>2]>=M[n>>2])break d}J[c>>2]=f;J[d>>2]=m}d=a+12|0;if((d|0)==(b|0))break b;g=0;while(1){f:{c=d;i=J[c>>2];j=J[h+(i<<2)>>2];f=J[e>>2];if(M[j>>2]>=M[J[h+(f<< +2)>>2]>>2])break f;while(1){g:{J[c>>2]=f;c=e;if((c|0)==(a|0)){c=a;break g}e=c-4|0;f=J[e>>2];if(M[j>>2]>2]>>2])continue}break}J[c>>2]=i;g=g+1|0;if((g|0)!=8)break f;return(d+4|0)==(b|0)}e=d;c=d+4|0;d=c;if((b|0)!=(c|0))continue;break}}return 1}return 1}function nmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=Ac(a,0,656);J[a+56>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>> +2]=0;J[a+4>>2]=0;J[a>>2]=J[b>>2];if(c){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=K[b+68|0]|K[b+69|0]<<8;e=K[b+70|0];J[a+540>>2]=b+1508;f=J[65285];J[a+52>>2]=J[65284];J[a+56>>2]=f;H[a+48|0]=c;H[a+47|0]=e;H[a+45|0]=d;H[a+46|0]=d>>>8;H[a+44|0]=0;J[a+604>>2]=J[b+1348>>2];J[a+584>>2]=J[b+1352>>2];J[a+580>>2]=J[b+1356>>2];J[a+588>>2]=J[b+1472>>2];J[a+644>> +2]=J[b+1468>>2];J[a+556>>2]=J[b+1364>>2];J[a+572>>2]=J[b+1368>>2];J[a+612>>2]=J[b+1372>>2];J[a+616>>2]=J[b+1376>>2];J[a+648>>2]=J[b+1496>>2];J[a+652>>2]=J[b+1500>>2];J[a+608>>2]=J[b+1360>>2];return}J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];c=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=c;c=J[b+64>>2];d=J[65285];J[a+52>>2]=J[65284];J[a+56>>2]=d;H[a+48|0]=0;J[a+44>>2]=c;c=J[b+108>>2];J[a+532>>2]=c;J[a+ +540>>2]=c+3104;J[a+536>>2]=J[b+768>>2];J[a+560>>2]=J[b+732>>2];J[a+576>>2]=J[b+748>>2];J[a+568>>2]=J[b+740>>2];J[a+556>>2]=J[b+728>>2];J[a+572>>2]=J[b+744>>2];c=J[b+736>>2];J[a+544>>2]=b+584;J[a+564>>2]=c;H[a+548|0]=K[b+593|0];J[a+588>>2]=J[b+760>>2];J[a+596>>2]=J[b+772>>2];J[a+600>>2]=J[b+776>>2]}function mZ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return 0;d=vc(552);J[d+176>>2]=0;J[d+116>>2]=8;J[d+104>>2]=0;Ac(d+192|0,0,72);J[d+264>>2]=0;J[d+248>>2]=0;J[d+252>>2]=1081073664;J[d+208>>2]=8;J[d+184>> +2]=1;J[d+188>>2]=23;J[d+128>>2]=0;J[d+132>>2]=0;e=_2();J[d+276>>2]=0;J[d+280>>2]=0;J[d+272>>2]=e;J[d>>2]=J[a>>2];O[d+136>>3]=O[a+136>>3];J[d+4>>2]=J[a+4>>2];e=J[a+76>>2];J[d+72>>2]=J[a+72>>2];J[d+76>>2]=e;f=a- -64|0;g=J[f+4>>2];e=d- -64|0;J[e>>2]=J[f>>2];J[e+4>>2]=g;e=J[a+60>>2];J[d+56>>2]=J[a+56>>2];J[d+60>>2]=e;e=J[a+52>>2];J[d+48>>2]=J[a+48>>2];J[d+52>>2]=e;e=J[a+44>>2];J[d+40>>2]=J[a+40>>2];J[d+44>>2]=e;e=J[a+36>>2];J[d+32>>2]=J[a+32>>2];J[d+36>>2]=e;e=J[a+28>>2];J[d+24>>2]=J[a+24>>2];J[d+28>> +2]=e;e=J[a+20>>2];J[d+16>>2]=J[a+16>>2];J[d+20>>2]=e;e=J[a+12>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=e;e=J[a+84>>2];J[d+80>>2]=J[a+80>>2];J[d+84>>2]=e;e=J[a+92>>2];J[d+88>>2]=J[a+88>>2];J[d+92>>2]=e;e=J[a+100>>2];J[d+96>>2]=J[a+96>>2];J[d+100>>2]=e;O[d+168>>3]=O[a+168>>3];J[d+108>>2]=c?c:J[a+108>>2];J[d+112>>2]=b?b:J[a+112>>2];J[d+288>>2]=J[a+288>>2];b=J[a+120>>2];J[d+144>>2]=0;J[d+120>>2]=b;O[d+152>>3]=O[a+152>>3];O[d+160>>3]=O[a+160>>3];J[d+268>>2]=J[a+268>>2];O[d+232>>3]=O[a+232>>3];O[d+224>>3]=O[a+ +224>>3];O[d+216>>3]=O[a+216>>3];b=J[a+124>>2];J[d+124>>2]=b;c=J[a+264>>2];if(c){b=P(b,80);e=Dc(b+80|0);J[d+264>>2]=e;xc(e,c,b)}b=J[a+272>>2];if(b){c=Dc(260);J[d+272>>2]=c;xc(c,b,260)}b=J[a+128>>2];if(b)h=d,i=R_(b),J[h+128>>2]=i;b=J[a+132>>2];if(b)h=d,i=R_(b),J[h+132>>2]=i;J[d+276>>2]=J[a+276>>2];J[d+280>>2]=J[a+280>>2];return d}function gY(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=fc-272|0;fc=g;d=J[a+200>>2];if(d&1){a:{if(d&4){fd(a,65745);Vd(a,c);break a}if(d&2){fd(a,65769);d=J[a+200>> +2]}if(!(!(d&16384)&(!b|!(K[b+9|0]&24)))){fd(a,65837);Vd(a,c);break a}J[a+200>>2]=d|16384;Bd(a,J[a+740>>2]);d=lh(a,c+1|0);J[a+740>>2]=d;Dg(a,d,c);Ae(a,d,c);e=Vd(a,0);d=J[a+740>>2];if(e){Bd(a,d);J[a+740>>2]=0;break a}H[c+d|0]=0;e=J[a+740>>2];d=e;while(1){f=d;d=d+1|0;if(K[f|0])continue;break}if(!((c+e|0)-1>>>0>d>>>0?c:0)){Bd(a,e);J[a+740>>2]=0;fd(a,65894);break a}d=f+2|0;if(K[f+1|0]){fd(a,65915);e=J[a+740>>2]}f=c;c=d-e|0;vI(a,0,f,c,g+268|0);d=J[a+740>>2];b:{e=J[g+268>>2];if(e>>>0>=c>>>0){e=e-c|0;if(e>>> +0>3)break b}Bd(a,d);J[a+740>>2]=0;fd(a,65963);break a}j=c+d|0;c=j;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);h=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(h>>>0>e>>>0){Bd(a,d);J[a+740>>2]=0;v_(g,1,h);v_(g,2,e);zr(a,g,66006);break a}f=d;e=fc-80|0;fc=e;c:{if(!a|!b|(!d|!j))break c;c=e;k=1;d=K[d|0];d:{if(!d)break d;l=1;while(1){m=0;k=d>>>0<161&(d-127&255)>>>0<162;e:{if(k){m=1;if(l)break e;d=32}H[c|0]=d;i=i+1|0;c=c+1|0}f=f+1|0;d=K[f|0];if(!d)break d;l=m;if(i>>>0<79)continue;break}}d=c;c=(i|0)!=0& +k;H[d-c|0]=0;c=i-c|0;if(!c){fd(a,63491);break c}c=c+1|0;d=sg(a,c);if(!d){fd(a,63513);break c}c=xc(d,e,c);d=sg(a,h);if(!d){Bd(a,c);fd(a,63613);break c}d=xc(d,j,h);Zp(a,b,16,0);H[b+208|0]=0;J[b+200>>2]=d;J[b+196>>2]=c;J[b+204>>2]=h;J[b+184>>2]=J[b+184>>2]|16;J[b+8>>2]=J[b+8>>2]|4096}fc=e+80|0;Bd(a,J[a+740>>2]);J[a+740>>2]=0}fc=g+272|0;return}Ld(a,65702);B()}function K0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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,w=0,x=0;r=J[a+332>> +2];b=J[b+84>>2];k=fc-128|0;a=k;l=4;while(1){a:{b:{f=L[c+32>>1];g=I[c+16>>1];if((f|g)&65535)break b;f=0;if(L[c+48>>1]|L[c+64>>1]|(L[c+80>>1]|L[c+96>>1]))break b;if(L[c+112>>1])break b;f=P(I[c>>1],J[b>>2])<<2;J[a+96>>2]=f;J[a+80>>2]=f;J[a+64>>2]=f;J[a+48>>2]=f;J[a+32>>2]=f;J[a+16>>2]=f;J[a>>2]=f;h=28;break a}m=P(J[b+192>>2],I[c+96>>1]);i=P(J[b+64>>2],f<<16>>16);f=P(m+i|0,4433);n=P(I[c+64>>1],J[b+128>>2])<<13;o=P(I[c>>1],J[b>>2])<<13|1024;s=n+o|0;t=f+P(i,6270)|0;p=s+t|0;g=P(g,J[b+32>>2]);i=P(J[b+224>> +2],I[c+112>>1]);u=P(g+i|0,-7373);x=u+P(g,12299)|0;j=P(J[b+96>>2],I[c+48>>1]);v=j+i|0;h=g;g=P(J[b+160>>2],I[c+80>>1]);q=h+g|0;w=P(v+q|0,9633);q=w+P(q,-3196)|0;h=x+q|0;J[a+112>>2]=p-h>>11;J[a>>2]=p+h>>11;n=o-n|0;f=f+P(m,-15137)|0;m=n+f|0;o=P(v,-16069)+w|0;h=P(j,25172);j=P(g+j|0,-20995);p=o+(h+j|0)|0;J[a+96>>2]=m-p>>11;J[a+16>>2]=m+p>>11;f=n-f|0;g=q+(j+P(g,16819)|0)|0;J[a+80>>2]=f-g>>11;J[a+32>>2]=f+g>>11;f=o+(P(i,2446)+u|0)|0;g=s-t|0;J[a+48>>2]=f+g>>11;f=g-f>>11;h=16}J[(h<<2)+a>>2]=f;c=c+2|0;b=b+4| +0;a=a+4|0;f=l>>>0>1;l=l-1|0;if(f)continue;break}a=r+128|0;c=k;l=0;while(1){f=J[c+12>>2];g=J[c+4>>2];k=P(f+g|0,4433);b=J[(l<<2)+d>>2]+e|0;g=k+P(g,6270)|0;i=J[c+8>>2];j=J[c>>2]+16|0;r=i+j<<13;H[b|0]=K[a+(g+r>>>18&1023)|0];H[b+3|0]=K[a+(r-g>>>18&1023)|0];k=k+P(f,-15137)|0;f=j-i<<13;H[b+1|0]=K[a+(k+f>>>18&1023)|0];H[b+2|0]=K[a+(f-k>>>18&1023)|0];c=c+16|0;l=l+1|0;if((l|0)!=8)continue;break}}function lGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=yq(a,1,0,0,1,0,0);J[c+56>>2]=0;J[c+60>>2]=0;J[c+ +48>>2]=0;J[c+52>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+28>>2]=b;J[c+12>>2]=0;J[c+16>>2]=0;b=c+4|0;J[c+8>>2]=b;J[c+4>>2]=b;J[c+20>>2]=0;J[c+24>>2]=0;J[c- -64>>2]=0;J[c+40>>2]=0;J[699344]=0;a=_(4,12)|0;d=J[699344];J[699344]=0;f=c+32|0;a:{b:{c:{if((d|0)==1)break c;J[a>>2]=0;J[699344]=0;aa(2259,a+8|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1){e=Z()|0;uc(a);break a}J[a+4>>2]=b;d=J[c+4>>2];J[a>>2]=d;J[d+4>>2]=a;J[c+4>>2]=a;J[c+12>>2]=J[c+12>>2]+1;a=J[c+36>>2];if((a|0)!=J[c+40>>2]){O[a>>3]=O[c+48>> +3];J[c+36>>2]=a+8;return c|0}d=J[f>>2];e=a-d|0;i=e>>3;g=i+1|0;if(g>>>0>=536870912){J[699344]=0;$(2494,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break b}h=e>>2;e=e>>>0>=2147483640?536870911:g>>>0>>0?h:g;d:{if(!e){g=0;break d}if(e>>>0>=536870912){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break c}J[699344]=0;g=_(4,e<<3)|0;h=J[699344];J[699344]=0;if((h|0)==1)break c}b=(i<<3)+g|0;O[b>>3]=O[c+48>>3];f=b+8|0;if((a|0)!=(d|0))while(1){b=b-8|0;a=a-8|0;O[b>>3]=O[a>>3];if((a|0)!= +(d|0))continue;break}J[c+40>>2]=(e<<3)+g;J[c+36>>2]=f;J[c+32>>2]=b;if(d)uc(d);return c|0}e=Z()|0;break a}B()}a=J[c+56>>2];if(a){J[c+60>>2]=a;uc(a)}a=J[f>>2];if(a){J[c+36>>2]=a;uc(a)}_A(c+16|0);a=b;e:{if(!J[a+8>>2])break e;b=J[a+4>>2];d=J[b>>2];f=J[J[a>>2]+4>>2];J[d+4>>2]=f;J[f>>2]=d;J[a+8>>2]=0;if((a|0)==(b|0))break e;while(1){d=J[b+4>>2];Jd(b+8|0);uc(b);b=d;if((a|0)!=(b|0))continue;break}}Jd(c);ba(e|0);B()}function eL(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;if(!(!a|!b)){c=J[a+8>>2];a:{if(!c)break a; +d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=e-c|0;if((d|0)<0)break a;e=kc[J[663198]](d+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break a}f=xc(e,c,d);H[d+f|0]=0}c=J[a+16>>2];b:{if(!c)break b;d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=e-c|0;if((d|0)<0)break b;e=kc[J[663198]](d+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}g=xc(e,c,d);H[d+g|0]=0}c=J[a+24>>2];c:{if(!c)break c;d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=e-c|0;if((d|0)<0)break c;e=kc[J[663198]](d+ +1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break c}h=xc(e,c,d);H[d+h|0]=0}c=J[a+28>>2];d:{if(!c)break d;d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=e-c|0;if((d|0)<0)break d;e=kc[J[663198]](d+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}i=xc(e,c,d);H[d+i|0]=0}c=J[a+32>>2];e:{if(!c){d=0;break e}d=c;while(1){e=d;d=e+1|0;if(K[e|0])continue;break}d=0;e=e-c|0;if((e|0)<0)break e;j=kc[J[663198]](e+1|0)|0;if(!j){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break e}d=xc(j,c,e);H[e+d|0]=0}c= +J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+16>>2];if(c)kc[J[663199]](c);c=J[b+24>>2];if(c)kc[J[663199]](c);c=J[b+28>>2];if(c)kc[J[663199]](c);c=J[b+32>>2];if(c)kc[J[663199]](c);J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+12>>2]=J[a+12>>2];J[b+20>>2]=J[a+20>>2];c=J[a+48>>2];J[b+36>>2]=J[a+36>>2];e=J[a+40>>2];J[b+48>>2]=c;J[b+40>>2]=e;a=J[a+44>>2];J[b+32>>2]=d;J[b+28>>2]=i;J[b+24>>2]=h;J[b+16>>2]=g;J[b+8>>2]=f;J[b+44>>2]=a}}function E3a(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;a:{if(f>>>0>2)break a; +b:{if(f)break b;c:{d:{if((e|0)<=8202){if((e|0)<=6067){if((e|0)<=4446){if((e|0)==173|(e|0)==847)break c;if((e|0)!=1564)break d;break c}if(e-4447>>>0>=2)break d;break c}if(e-6155>>>0<4)break c;if(e-6068>>>0>=2)break d;break c}e:switch(e-8203|0){case 0:case 1:case 2:case 3:case 4:case 31:case 32:case 33:case 34:case 35:case 85:case 86:case 87:case 88:case 89:case 91:case 92:case 93:case 94:case 95:case 96:case 97:case 98:case 99:case 100:break c;case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 90:break d; +default:break e}if((e|0)==12644)break c}if((e&-4)==113824|(e|0)==65440|((e|0)==65279|(e&-16)==65024))break c;if((e|0)==917505|e-119155>>>0<8|((e|0)==8293|e-917536>>>0<96))break c;if(e-917760>>>0<240|e-918E3>>>0<3600|((e&-128)==917632|e-917506>>>0<30))break c;if((e|0)==917504)break c;if(e-65520>>>0>8)break b}J[g>>2]=0;return}if(K[a|0]!=105|f?a:0)break a;J[g>>2]=0;q3(b,g)}}function s5a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=-1;a:{e=J[a+188>>2];b:{if(!e)break b;f=ho(e,2);if(!f|L[f>>1]==65535)break b; c:{if(!b){e=1;break c}g=b&7;d:{if(b>>>0<8){e=1;break d}h=b&-8;d=0;e=1;while(1){e=e<<8;d=d+8|0;if((h|0)!=(d|0))continue;break}}if(!g)break c;d=0;while(1){e=e<<1;d=d+1|0;if((g|0)!=(d|0))continue;break}}d=0;e:{f:switch(c|0){case 1:a=f+48|0;break e;case 2:a=f+52|0;break e;case 3:a=f+56|0;break e;case 5:a=f+84|0;break e;case 4:d=1;if(J[f+80>>2]&e)break b;a=J[a+188>>2];c=J[a+36>>2];if((c|0)<=0)return 0;d=0;g:switch(b-17|0){case 14:b=J[a+40>>2];a=0;while(1){d=J[b+(a<<2)>>2];if(!(L[d+10>>1]|L[d+8>>1]!=3))break a; d=0;a=a+1|0;if((c|0)!=(a|0))continue;break}break b;case 0:b=J[a+40>>2];a=0;while(1){d=J[b+(a<<2)>>2];if(!(L[d+10>>1]!=2|L[d+8>>1]!=3))break a;d=0;a=a+1|0;if((c|0)!=(a|0))continue;break}break b;case 1:b=J[a+40>>2];a=0;while(1){d=J[b+(a<<2)>>2];if(!(L[d+10>>1]!=3|L[d+8>>1]!=3))break a;d=0;a=a+1|0;if((c|0)!=(a|0))continue;break}break b;case 3:b=J[a+40>>2];a=0;while(1){d=J[b+(a<<2)>>2];if(!(L[d+10>>1]!=4|L[d+8>>1]!=3))break a;d=0;a=a+1|0;if((c|0)!=(a|0))continue;break}break b;case 2:b=J[a+40>>2];a=0; -while(1){d=J[b+(a<<2)>>2];if(!(L[d+10>>1]!=5|L[d+8>>1]!=3))break a;d=0;a=a+1|0;if((c|0)!=(a|0))continue;break}break b;case 4:break g;default:break b}b=J[a+40>>2];a=0;while(1){d=J[b+(a<<2)>>2];if(!(L[d+10>>1]!=6|L[d+8>>1]!=3))break a;d=0;a=a+1|0;if((c|0)!=(a|0))continue;break}break b;case 0:break f;default:break b}a=f+44|0}d=(J[a>>2]&e)!=0}return d|0}return 1}function nZa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=bc-16|0;bc=g;h=gc[J[659447]](76)|0;a:{if(!h){J[g>>2]=17022;Cc(0,0,0,0,0,2,2,3,17022, -0,0,0,32863,g);break a}f=wc(h,0,76);J[f+4>>2]=17;J[f+48>>2]=J[a+48>>2];d=J[a+8>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-d|0;b:{if((b|0)<0)break b;e=gc[J[659450]](b+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}c=tc(e,d,b);H[b+c|0]=0}J[f+8>>2]=c}d=J[a+52>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-d|0;c:{if((b|0)<0)break c;e=gc[J[659450]](b+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break c}c=tc(e,d,b);H[b+c|0]=0}J[f+52>>2]=c}d= -J[a+56>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-d|0;d:{if((b|0)<0)break d;e=gc[J[659450]](b+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}c=tc(e,d,b);H[b+c|0]=0}J[f+56>>2]=c}d=J[a+40>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-d|0;e:{if((b|0)<0)break e;e=gc[J[659450]](b+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break e}c=tc(e,d,b);H[b+c|0]=0}J[f+40>>2]=c}d=J[a+36>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0; -b=b-d|0;f:{if((b|0)<0)break f;e=gc[J[659450]](b+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break f}c=tc(e,d,b);H[b+c|0]=0}J[f+36>>2]=c}a=J[a+64>>2];if(!a)break a;c=a;while(1){d=c;c=d+1|0;if(K[d|0])continue;break}c=0;d=d-a|0;g:{if((d|0)<0)break g;b=gc[J[659450]](d+1|0)|0;if(!b){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break g}c=tc(b,a,d);H[d+c|0]=0}J[f+64>>2]=c}bc=g+16|0;return h|0}function vla(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;a:{if((a|0)==(b|0))break a;d=K[b+11|0];c= -d<<24>>24;if(H[a+11|0]>=0){if((c|0)>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];break a}yf(a,J[b>>2],J[b+4>>2]);break a}c=(c|0)<0;Df(a,c?J[b>>2]:b,c?J[b+4>>2]:d)}H[a+12|0]=K[b+12|0];H[a+13|0]=K[b+13|0];I[a+14>>1]=L[b+14>>1];H[a+16|0]=K[b+16|0];H[a+17|0]=K[b+17|0];H[a+18|0]=K[b+18|0];H[a+19|0]=K[b+19|0];H[a+20|0]=K[b+20|0];H[a+21|0]=K[b+21|0];H[a+22|0]=K[b+22|0];H[a+23|0]=K[b+23|0];H[a+24|0]=K[b+24|0];H[a+25|0]=K[b+25|0];H[a+26|0]=K[b+26|0];J[a+32>>2]=J[a+28>>2];h=J[b+32>>2];e= -J[b+28>>2];b:{if((h|0)==(e|0))break b;c:{k=h-e>>2;c=a+28|0;g=J[c+8>>2];d=J[c+4>>2];if(k>>>0<=g-d>>2>>>0){if(k){e=d;d=k<<2;d=wc(e,0,d)+d|0}J[c+4>>2]=d;break c}d:{i=J[c>>2];h=d-i>>2;f=k+h|0;if(f>>>0<1073741824){e=g-i|0;g=e>>1;f=e>>>0>=2147483644?1073741823:f>>>0>>0?g:f;if(f){if(f>>>0>=1073741824)break d;j=rc(f<<2)}e=(h<<2)+j|0;g=k<<2;g=wc(e,0,g)+g|0;if((d|0)!=(i|0))while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(i|0))continue;break}J[c+8>>2]=(f<<2)+j;J[c+4>>2]=g;J[c>>2]=e;if(i)qc(i);break c}kj(c); -B()}Sd();B()}c=J[a+32>>2];f=J[a+28>>2];if((c|0)==(f|0))break b;d=c-f>>2;c=d>>>0<=1?1:d;g=c&3;h=J[b+28>>2];b=0;if(d>>>0>=4){d=c&-4;j=0;while(1){e=b<<2;J[e+f>>2]=J[e+h>>2];c=e|4;J[c+f>>2]=J[c+h>>2];c=e|8;J[c+f>>2]=J[c+h>>2];c=e|12;J[c+f>>2]=J[c+h>>2];b=b+4|0;j=j+4|0;if((d|0)!=(j|0))continue;break}}if(!g)break b;while(1){c=b<<2;J[c+f>>2]=J[c+h>>2];b=b+1|0;l=l+1|0;if((g|0)!=(l|0))continue;break}}return a|0}function jxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-48|0;bc=c;J[a>>2]=2405704;J[a+4>> -2]=0;J[695492]=0;h=$(5082,a+12|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((d|0)!=1){J[695492]=0;d=a+48|0;J[d+20>>2]=-1;J[d+12>>2]=-1;J[d+16>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2405860;f=J[695492];J[695492]=0;if((f|0)==1)break k;J[a+72>>2]=0;J[a+76>>2]=0;J[a+96>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[695492]=0;f=aa(5080,a+72|0,2402168)|0;g=J[695492];J[695492]=0;if((g|0)==1)break j;J[a+100>>2]=0;J[a+104>>2]=0;J[a+124>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+ -108>>2]=0;J[a+112>>2]=0;J[695492]=0;g=aa(5080,a+100|0,2405880)|0;e=J[695492];J[695492]=0;if((e|0)==1)break i;e=J[b+8>>2];if(J[(e?e+12|0:2728584)>>2])break f;J[695492]=0;c=ja(5018,c+12|0,2382891,2373668,87,2405712,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break g;B()}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;Fc(c);break e}J[695492]=0;e=c+12|0;da(5226,e|0,b|0);b=J[695492];J[695492]=0;l:{if((b| -0)!=1){J[695492]=0;aa(5083,h|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break l;J[c+36>>2]=2381060;J[c+12>>2]=2381028;b=J[c+40>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)gc[J[J[b>>2]+4>>2]](b);J[c+40>>2]=0}J[c+28>>2]=2381060;b=J[c+32>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)gc[J[J[b>>2]+4>>2]](b);J[c+32>>2]=0}sc(c+20|0);bc=c+48|0;return a|0}b=Z()|0;break e}b=Z()|0;ud(c+12|0)}Bd(g)}Bd(f)}xd(d)}ud(h)}ed(a);ba(b|0);B()}function t9(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;f=J[b+36>>2];if(!(!f|J[a+56>>2]<=0))while(1){d=J[f+24>>2];j=0;if(J[f+20>>2]>0){while(1){g=J[d+4>>2];a:{if(!g)break a;if(J[d>>2]>0){k=0;while(1){h=J[g>>2];b:{if(!h)break b;l=0;if(J[d+40>>2]<=0)break b;while(1){e=J[h+28>>2];c:{if(!e)break c;m=0;if(J[h+24>>2]>0)while(1){c=J[e+4>>2];if(c){o=e+4|0;q=e+8|0;while(1){i=J[c+4>>2];n=J[c>>2];J[(i?i:o)>>2]=n;J[(n?n+4|0:q)>>2]=i;J[c>>2]=0;J[c+4>>2]=0;i=J[c+24>>2];if(i)If(i);qc(c);c=J[o>>2];if(c)continue;break}}dg(J[e+40>>2]);c=J[e+28>>2];if(c)YD(c);c=J[e+ -32>>2];if(c)wu(c);c=J[e+36>>2];if(c)dg(c);e=e+44|0;m=m+1|0;if((m|0)>2])continue;break}c=J[h+32>>2];if(c)wn(c);c=J[h+36>>2];if(c)wn(c);c=J[h+28>>2];if(!c)break c;qc(c)}h=h+40|0;l=l+1|0;if((l|0)>2])continue;break}}c=J[g+4>>2];if(c)dg(c);c=J[g>>2];if(c)qc(c);g=g+32|0;k=k+1|0;if((k|0)>2])continue;break}g=J[d+4>>2];if(!g)break a}qc(g)}d=d+60|0;j=j+1|0;if((j|0)>2])continue;break}d=J[f+24>>2]}if(d)qc(d);d=J[f+16>>2];if(d)dg(d);d=J[f+28>>2];if(d)qc(d);f=f+32|0;p=p+1|0;if((p|0)< -J[a+56>>2])continue;break}a=J[b+32>>2];if(a){d=J[a+24>>2];if(d)qc(d);d=J[a+4>>2];if(d)JN(d);qc(a);J[b+32>>2]=0}a=J[b+36>>2];if(a){qc(a);J[b+36>>2]=0}a=J[b+52>>2];if(a){aE(a);J[b+52>>2]=0}a=J[b+24>>2];if(a){If(a);J[b+24>>2]=0}a=J[b+20>>2];if(a){if(J[a>>2]>0){c=0;while(1){d=J[J[a+8>>2]+(c<<2)>>2];e=J[d+8>>2];if(e)qc(e);qc(d);c=c+1|0;if((c|0)>2])continue;break}}d=J[a+8>>2];if(d)qc(d);qc(a);J[b+20>>2]=0}J[b>>2]=3}function X0(a){var b=0,c=0,d=0;if((a|0)>=-64){if((a|0)<=10512){a=a+-64|0;b=(a<<16>> -16)/243|0;c=b&65535;a=a-P(b,243)<<16>>16;a:{if((a|0)>=20){a=a+13|0;break a}a=H[a+753856|0]}return a|(c<<8)+53248|33554432}if(a>>>0<=187659){a=a-10513|0;b=(a>>>0)/243|0;c=a-P(b,243)|0;b:{if(c>>>0>=20){c=c+13|0;break b}c=H[c+753856|0]}c=c|((a>>>0)/59049<<16)+16449536;a=((b&65535)>>>0)%243|0;c:{if(a>>>0>=20){a=a+13|0;break c}a=H[a+753856|0]}return c|a<<8|50331648}b=a-187660|0;c=(b>>>0)/243|0;a=b-P(c,243)|0;d:{if(a>>>0>=20){a=a+13|0;break d}a=H[a+753856|0]}d=(b>>>0)/59049|0;c=(c>>>0)%243|0;e:{if(c>>> -0>=20){c=c+13|0;break e}c=H[c+753856|0]}return a|c<<8|(b>>>0>=1180980?d+13|0:H[d+753856|0])<<16|-33554432}if(a>>>0>=4294956783){b=-64-a|0;a=((b&65535)>>>0)/243|0;c=a^-1;d=0-a|0;a=b-P(a,243)|0;b=a&65535;c=b?c:d;a=(b?243-a|0:0)&65535;f:{if(a>>>0>=20){a=a+13|0;break f}a=H[a+753856|0]}return a|(c<<8)+20480|33554432}if(a>>>0>=4294779636){b=-10513-a|0;a=(b>>>0)/243|0;b=b-P(a,243)|0;a=a+((b|0)!=0)|0;c=a;a=((a&65535)>>>0)/243|0;d=c-P(a,243)|0;c=d&65535;b=b?243-b|0:0;g:{if(b>>>0>=20){b=b+13|0;break g}b=H[b+ -753856|0]}b=b|((c?a^-1:0-a|0)<<16)+2424832;a=(c?243-d|0:0)&65535;h:{if(a>>>0>=20){a=a+13|0;break h}a=H[a+753856|0]}return b|a<<8|50331648}b=-187660-a|0;a=(b>>>0)/243|0;b=b-P(a,243)|0;c=a+((b|0)!=0)|0;a=b?243-b|0:0;i:{if(a>>>0>=20){a=a+13|0;break i}a=H[a+753856|0]}b=c;c=(c>>>0)/243|0;b=b-P(c,243)|0;c=b?c^-1:0-c|0;b=b?243-b|0:0;j:{if(b>>>0>=20){b=b+13|0;break j}b=H[b+753856|0]}return a|b<<8|((c|0)>=-223?c+256|0:H[c+754099|0])<<16|553648128}function GD(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=-15; -j=16777215;a:switch(b|0){case 0:J[a>>2]=K[c+4|0]|(L[c+2>>1]<<8&65280|L[c>>1]<<16)|-16777216;return 0;case 1:i=L[c>>1];e=+L[c+4>>1]/100;k=a;b:{c:{d:{d=+L[c+2>>1]/100;if(d==0){d=e*255;if(!(R(d)<2147483648))break d;g=~~d;b=g;a=b;break b}d=e<=.5?(d+1)*e:d+e-e*d;e=e+e-d;a=(i>>>0)%360|0;j=a>>>0>59;b=(i+120>>>0)%360|0;e:{if(b>>>0<=59){h=e+(d-e)*+(b|0)/60;break e}h=d;if(b>>>0<180)break e;h=e;if(b>>>0>239)break e;h=e+(d-e)*+(240-b|0)/60}f=h*255;f:{if(R(f)<2147483648){g=~~f;break f}g=-2147483648}i=(i-120|0)% -360|0;c=(i|0)>59;f=d-e;h=e+f*+(a|0)/60;g:{if(!j)break g;h=d;if(a>>>0<180)break g;h=e;if(a>>>0>239)break g;h=e+f*+(240-a|0)/60}f=h*255;h:{if(R(f)<2147483648){b=~~f;break h}b=-2147483648}i:{if(!c){d=e+(d-e)*+(i|0)/60;break i}if(i>>>0<180)break i;if(i>>>0>239){d=e;break i}d=e+(d-e)*+(240-i|0)/60}d=d*255;if(!(R(d)<2147483648))break c;a=~~d;break b}g=-2147483648;b=-2147483648}a=-2147483648}J[k>>2]=a|(g<<16|-16777216|b<<8);return 0;case 2:g=a;f=+L[c+6>>1]/100;e=1-f;d=1-(+L[c+2>>1]/100*e+f);j:{if(R(d)<2147483648){a= -~~d;break j}a=-2147483648}b=P(a,255);b=(b|0)>0?b:0;a=(b>>>0>=255?255:b)<<8;d=1-(+L[c>>1]/100*e+f);k:{if(R(d)<2147483648){b=~~d;break k}b=-2147483648}b=P(b,255);b=(b|0)>0?b:0;b=a|(b>>>0>=255?255:b)<<16;d=1-(+L[c+4>>1]/100*e+f);l:{if(R(d)<2147483648){a=~~d;break l}a=-2147483648}a=P(a,255);a=(a|0)>0?a:0;J[g>>2]=b|(a>>>0>=255?255:a)|-16777216;return 0;case 7:g=0;j=Wp(255,L[c>>1],L[c+2>>1],L[c+4>>1]);break;default:break a}J[a>>2]=j;return g}function FVa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0, -g=0,h=0,i=0,j=0;f=bc-80|0;bc=f;o_(c,f+72|0,a+160|0);g=J[f+72>>2];J[f+56>>2]=13;J[f+40>>2]=13;J[f+24>>2]=13;h=d;d=f+40|0;i=d;j=f+24|0;a:{b:{c:{if((g|0)>=0){d:{if(J[FI(c,819866,f+56|0)>>2]!=7)break d;if(J[Bc(J[f+64>>2],819251,d,0)>>2]!=7)break d;d=J[f+48>>2];if(J[d+16>>2]<=0)break d;c=0;while(1){if(J[Wm(d,c,f+24|0)>>2]==9){d=J[f+36>>2];J[f+16>>2]=J[f+32>>2];J[f+20>>2]=d;if(J[f+20>>2]==J[f+76>>2]&J[f+16>>2]==J[f+72>>2])break c}uc(f+24|0);c=c+1|0;d=J[f+48>>2];if((c|0)>2])continue;break}}c=f+56| -0;uc(c);d=f+40|0;uc(d);e:{g=J[J[b+28>>2]+132>>2];if(J[g+8>>2]!=7)break e;if(J[Bc(J[g+16>>2],819866,c,0)>>2]!=7)break e;if(J[Bc(J[f+64>>2],819251,d,0)>>2]!=7)break e;d=J[f+48>>2];if(J[d+16>>2]>0){c=0;while(1){if(J[Wm(d,c,f+24|0)>>2]==9){d=J[f+36>>2];J[f+16>>2]=J[f+32>>2];J[f+20>>2]=d;if(J[f+20>>2]==J[f+76>>2]&J[f+16>>2]==J[f+72>>2])break c}uc(f+24|0);c=c+1|0;d=J[f+48>>2];if((c|0)>2])continue;break}}H[f+16|0]=0;H[f+15|0]=0;break a}H[f+16|0]=0;H[f+15|0]=0;break a}d=_I(b,c,f+56|0,f+40|0,f+24| -0,a+268|0);H[f+16|0]=0;H[f+15|0]=0;c=6;if(d)break b;break a}ky(a+268|0,J[J[J[f+48>>2]+4>>2]+(c<<5)>>2]);H[f+16|0]=0;H[f+15|0]=0;c=7}ZI(f,b,h,e,i,j,c,a+280|0,a+292|0,f+16|0,f+15|0);if(H[f+11|0]>=0)break a;qc(J[f>>2])}uc(f+56|0);uc(f+40|0);uc(f+24|0);b=K[a+303|0];if(b<<24>>24<0?J[a+296>>2]:b)J[a+4>>2]=J[a+4>>2]|4;b=K[a+279|0];if(b<<24>>24<0?J[a+272>>2]:b)J[a+4>>2]=J[a+4>>2]|16;b=K[f+16|0];J[a+156>>2]=b;if(K[f+15|0])J[a+156>>2]=b|2;bc=f+80|0}function CIa(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;d=rc(44);h=J[J[a+16>>2]+36>>2];J[695492]=0;h=aa(3496,d|0,h|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){d=J[a+16>>2];J[d+40>>2]=h;a:{if(H[d+11|0]<0){J[d+4>>2]=0;d=J[d>>2];break a}H[d+11|0]=0}J[d>>2]=0;g=J[a+16>>2];d=g+12|0;b:{if((d|0)==(e|0))break b;i=K[e+11|0];h=i<<24>>24;if(H[g+23|0]>=0){if((h|0)>=0){h=J[e+4>>2];J[d>>2]=J[e>>2];J[d+4>>2]=h;J[d+8>>2]=J[e+8>>2];break b}yf(d,J[e>>2],J[e+4>>2]);break b}g=d;d=(h|0)<0;Df(g,d?J[e>>2]:e,d?J[e+4>>2]:i)}h=J[a+16>>2];d=J[h+40>> -2];g=J[h+36>>2];h=bc-16|0;bc=h;i=J[d+16>>2];if(i){gc[J[J[i>>2]+12>>2]](i)|0;J[d+16>>2]=0}j=d,k=gc[J[J[g>>2]+52>>2]](g)|0,J[j+16>>2]=k;i=_w();k=i,l=gc[J[J[g>>2]+24>>2]](g)|0,j=J[J[i>>2]+24>>2],gc[j](k|0,l|0);g=J[d+16>>2];gc[J[J[g>>2]+68>>2]](g,i);J[h>>2]=1;gc[J[J[i>>2]+20>>2]](i,h);J[J[689612]+468>>2]=J[d+16>>2];g=J[d>>2];if(g){qc(ht(g));J[d>>2]=0}J[d+28>>2]=0;g=gB(e);f=gB(f);J[h>>2]=5;e=rc(48);J[695492]=0;b=Wn(e,b,0,c,h);i=J[695492];J[695492]=0;c:{if((i|0)!=1)d:{e=rc(48);J[695492]=0;b=ma(3517,e|0, -b|0,g|0,f|0,0)|0;i=J[695492];J[695492]=0;e:{f:{if((i|0)!=1){J[d+24>>2]=c;J[d>>2]=b;if(g)qc(Rc(g));if(f)qc(Rc(f));b=J[d>>2];if(!b){J[d+28>>2]=12;b=0;break e}J[d+28>>2]=J[b+44>>2];if(J[b+40>>2])break f;qc(ht(b));J[d>>2]=0;b=0;break e}break d}jw(J[d+20>>2]);b=1}bc=h+16|0;break c}a=Z()|0;qc(e);ba(a|0);B()}if(b){a=J[J[a+16>>2]+40>>2];b=J[a>>2];g:{if(b){a=0;if(J[b+40>>2])break g;a=b+44|0}else a=a+28|0;a=J[a>>2]}}else a=1;return!a|0}a=Z()|0;qc(d);ba(a|0);B()}function u6a(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,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0;a:{if((d|0)>0){g=J[a+480>>2];o=J[a+112>>2];p=P(o,3);if(!o)break a;r=J[a+332>>2];e=J[a+136>>2];F=J[e+8>>2];G=J[e+4>>2];M=J[e>>2];s=J[g+40>>2];N=J[g+24>>2];O=o-1|0;Q=p-3|0;while(1){e=t<<2;k=J[e+c>>2];i=J[b+e>>2];b:{if(J[g+36>>2]){k=k+O|0;i=i+Q|0;l=-3;y=-1;f=0;e=(J[g+32>>2]+(p<<1)|0)+6|0;break b}l=3;f=1;y=1;e=J[g+32>>2]}J[g+36>>2]=f;m=0;R=l+1<<1;S=l+2<<1;j=0; -n=0;z=0;A=0;B=0;u=0;v=0;w=0;x=o;while(1){C=(l<<1)+e|0;m=K[K[i|0]+(J[((I[C>>1]+m|0)+8>>4<<2)+s>>2]+r|0)|0];h=m>>>3|0;j=K[K[i+1|0]+(J[((I[e+R>>1]+j|0)+8>>4<<2)+s>>2]+r|0)|0];q=j>>>2|0;n=K[K[i+2|0]+(J[((I[e+S>>1]+n|0)+8>>4<<2)+s>>2]+r|0)|0];D=n>>>3|0;E=(J[(h<<2)+N>>2]+(q<<6)|0)+(D<<1)|0;f=L[E>>1];if(!f){Q2(a,h,q,D);f=L[E>>1]}f=(f&65535)-1|0;H[k|0]=f;q=K[f+M|0];h=K[f+G|0];f=n-K[f+F|0]|0;I[e+4>>1]=P(f,3)+w;h=j-h|0;I[e+2>>1]=P(h,3)+v;j=e;e=m-q|0;I[j>>1]=P(e,3)+u;k=k+y|0;i=i+l|0;n=P(f,7);j=P(h,7);m=P(e, -7);w=P(f,5)+B|0;v=P(h,5)+A|0;u=P(e,5)+z|0;z=e;A=h;B=f;e=C;x=x-1|0;if(x)continue;break}I[e+4>>1]=w;I[e+2>>1]=v;I[e>>1]=u;t=t+1|0;if((t|0)!=(d|0))continue;break}}return}a=J[g+36>>2];if((d|0)!=1){c=J[g+32>>2];e=(c+(p<<1)|0)+6|0;b=a?c:e;c=a?e:c;e=d&-2;while(1){I[c+4>>1]=0;I[c>>1]=0;I[c+2>>1]=0;I[b+4>>1]=0;I[b>>1]=0;I[b+2>>1]=0;f=f+2|0;if((e|0)!=(f|0))continue;break}a=(a|0)!=0}if(d&1){b=J[g+32>>2];b=a?(b+(p<<1)|0)+6|0:b;I[b+4>>1]=0;I[b>>1]=0;I[b+2>>1]=0;a=!a}J[g+36>>2]=a}function cXa(a,b,c,d,e,f){a=a| -0;b=Q(b);c=Q(c);d=Q(d);e=Q(e);f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;k=bc-32|0;bc=k;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1065353216;J[a+32>>2]=0;J[a+36>>2]=0;J[a+76>>2]=0;J[a+80>>2]=1;J[a+68>>2]=0;J[a+72>>2]=0;J[a+60>>2]=1056964608;J[a+64>>2]=1065353216;I[a+56>>1]=0;J[a+48>>2]=1065353216;J[a+52>>2]=1065353216;J[a+8>>2]=0;J[a+12>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=1;h=a+88|0;g=h;J[g>>2]=0;J[g+4>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;l=a+120|0;g=l;J[g>>2]=0;J[g+ -4>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[695492]=0;g=$(4,24)|0;j=J[695492];J[695492]=0;if((j|0)==1){a=Z()|0;$j(h);ba(a|0);B()}h=g+24|0;J[a+140>>2]=h;J[a+132>>2]=g;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[a+136>>2]=h;wc(a+148|0,0,88);J[695492]=0;i=Lb(3233,k|0,256,Q(b),Q(c),Q(d),Q(e))|0;g=J[695492];J[695492]=0;if((g|0)!=1)a:{J[a+88>>2]=J[i>>2];g=J[a+92>>2];if(g){j=g;h=J[a+96>>2];if((g|0)!=(h|0)){while(1){j=h-12|0;m=J[j>>2];if(m){J[h-8>>2]=m; -qc(m)}h=j;if((g|0)!=(h|0))continue;break}j=J[a+92>>2]}J[a+96>>2]=g;qc(j);J[a+100>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0}J[a+92>>2]=J[i+4>>2];J[a+96>>2]=J[i+8>>2];J[a+100>>2]=J[i+12>>2];g=J[i+20>>2];J[a+104>>2]=J[i+16>>2];J[a+108>>2]=g;g=J[i+28>>2];J[a+112>>2]=J[i+24>>2];J[a+116>>2]=g;J[a+80>>2]=0;J[a+84>>2]=1;b:{if((f|0)==(l|0))break b;g=J[f+4>>2];f=J[f>>2];J[695492]=0;ca(2367,l|0,f|0,g|0);f=J[695492];J[695492]=0;if((f|0)!=1)break b;break a}bc=k+32|0;return}f=Z()|0;Qe(a+80|0);ba(f|0);B()}function QHa(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;if((c|0)>0|(c|0)>=0){e=J[a+48>>2];if(e>>>0>=b>>>0){J[a+48>>2]=e-b;J[a+36>>2]=J[a+36>>2]+b;e=c+J[a+60>>2]|0;d=b+J[a+56>>2]|0;e=d>>>0>>0?e+1|0:e;J[a+56>>2]=d;J[a+60>>2]=e;fc=c;return b|0}if(K[a+68|0]&4){J[a+48>>2]=0;J[a+36>>2]=e+J[a+36>>2];f=J[a+60>>2];c=J[a+56>>2];b=c+e|0;J[a+56>>2]=b;J[a+60>>2]=b>>>0>>0?f+1|0:f;fc=e?0:-1;return(e?e:-1)|0}if(e){J[a+48>>2]=0;J[a+36>>2]=J[a+32>>2];f=b;g=e;b=b-e|0;c=c-(f>>>0>>0)|0}if((c|0)>0)f=1;else f= -!!b&(c|0)>=0;if(f)while(1){i=J[a+12>>2];f=c+h|0;j=b+g|0;e=J[a+60>>2]+(j>>>0>>0?f+1|0:f)|0;f=j+J[a+56>>2]|0;e=f>>>0>>0?e+1|0:e;if((e|0)==(i|0)&f>>>0>M[a+8>>2]|e>>>0>i>>>0){Hc(d,4,2340217,0);J[a+48>>2]=0;J[a+36>>2]=J[a+32>>2];b=h+J[a+60>>2]|0;c=g+J[a+56>>2]|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;g=b;d=J[a+8>>2];e=d-c|0;h=J[a+12>>2];f=h-((c>>>0>d>>>0)+b|0)|0;i=gc[J[a+28>>2]](d,h,J[a>>2])|0;b=J[a+68>>2];if(i){J[a+56>>2]=d;J[a+60>>2]=h;b=b&-5}J[a+68>>2]=b|4;a=(c|0)==(d|0)&(h|0)==(g|0); -b=a?-1:e;fc=a?-1:f;return b|0}e=gc[J[a+24>>2]](b,c,J[a>>2])|0;f=fc;i=f;if((e&f)==-1){Hc(d,4,2340217,0);J[a+68>>2]=J[a+68>>2]|4;f=h+J[a+60>>2]|0;b=g+J[a+56>>2]|0;f=b>>>0>>0?f+1|0:f;J[a+56>>2]=b;J[a+60>>2]=f;a=!(h|g);b=a?-1:g;fc=a?-1:h;return b|0}h=h+i|0;g=e+g|0;h=g>>>0>>0?h+1|0:h;f=b;b=b-e|0;c=c-((e>>>0>f>>>0)+i|0)|0;if(!!b&(c|0)>=0|(c|0)>0)continue;break}b=h+J[a+60>>2]|0;c=g+J[a+56>>2]|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;fc=h;return g|0}fa(2340951,2338843,469,2341316);B()}function Bmb(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;while(1){d=g<<4;if(!(J[d+228240>>2]<=(c|0)&J[d+228244>>2]>=(c|0))){g=g+1|0;continue}break}d=g<<4;e=K[d+228249|0];i=e>>>0<=1?1:e;e=c;c=c>>31;m=((e^c)-c|0)-L[d+228250>>1]|0;k=((b<<9)+a|0)+65560|0;e=K[d+228248|0];c=1;while(1){b=c+k|0;f=K[b|0];h=f<<2;d=L[h+2637248>>1];j=b;b=f>>>0<47;f=e&1;a:{b:{if((b|0)!=(f|0)){b=L[a+4>>1]-d|0;I[a+4>>1]=b;if(b<<16>>16>=0){if(d>>>0>(b&65535)>>>0){b=d;d=h+2637250|0;break b}J[a>>2]=d+J[a>>2];d=h+2637250| -0;break b}J[a>>2]=d+J[a>>2];break a}b=L[a+4>>1]-d|0;c:{if(d>>>0<=(b&65535)>>>0){b=d;break c}J[a>>2]=d+J[a>>2]}d=h+2637251|0}H[j|0]=K[d|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;d=K[a+6|0]-1|0;H[a+6|0]=d;if(!(d&255)){Al(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}b=c<<1;c=c&256?f|b&254|256:b|f;e=(e&254)>>>1|0;l=l+1|0;if((i|0)!=(l|0))continue;break}if((g|0)!=1){b=K[(g<<4)+228252|0];i=b>>>0<=1?1:b;g=m<<32-b;b=0;while(1){e=c+k|0;f=K[e|0];h=f<<2;d=L[h+2637248>>1];j=e;e=f>>>0>46;f=g>>>31|0;d:{e:{if((e| -0)==(f|0)){e=L[a+4>>1]-d|0;I[a+4>>1]=e;if(e<<16>>16>=0){if(d>>>0>(e&65535)>>>0){e=d;d=h+2637250|0;break e}J[a>>2]=d+J[a>>2];d=h+2637250|0;break e}J[a>>2]=d+J[a>>2];break d}e=L[a+4>>1]-d|0;f:{if(d>>>0<=(e&65535)>>>0){e=d;break f}J[a>>2]=d+J[a>>2]}d=h+2637251|0}H[j|0]=K[d|0];while(1){e=e<<1;I[a+4>>1]=e;J[a>>2]=J[a>>2]<<1;d=K[a+6|0]-1|0;H[a+6|0]=d;if(!(d&255)){Al(a);e=L[a+4>>1]}if(e<<16>>16>=0)continue;break}}d=c<<1;c=c&256?f|d&254|256:d|f;g=g<<1;b=b+1|0;if((i|0)!=(b|0))continue;break}}}function iga(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;var h=0,i=0,j=0,k=0;a=bc-144|0;bc=a;J[a+136>>2]=c;J[a+140>>2]=b;J[a+20>>2]=6678;j=a+20|0;i=ng(a+24|0,a+32|0,j);J[695492]=0;b=a+16|0;h=J[e+28>>2];J[b>>2]=h;J[h+4>>2]=J[h+4>>2]+1;h=J[695492];J[695492]=0;a:{b:{c:{d:{if((h|0)!=1){J[695492]=0;h=$(6613,b|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break b;H[a+15|0]=0;e=J[e+4>>2];J[695492]=0;b=Ba(6679,a+140|0,c|0,d|0,b|0,e|0,f|0,a+15|0,h|0,i|0,j|0,a+132|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b; -if(!b)break c;b=bc-16|0;bc=b;e:{if(K[g+11|0]>>>7|0){c=J[g>>2];H[b+15|0]=0;H[c|0]=K[b+15|0];J[g+4>>2]=0;break e}H[b+14|0]=0;H[g|0]=K[b+14|0];H[g+11|0]=K[g+11|0]&128;H[g+11|0]=K[g+11|0]&127}bc=b+16|0;if(!K[a+15|0])break d;J[695492]=0;b=aa(6656,h|0,45)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;da(6684,g|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break b}c=Z()|0;break a}J[695492]=0;b=aa(6656,h|0,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;c=J[i>>2];d=J[a+20>>2];e=d-1|0;b= -b&255;while(1){if(!((b|0)!=K[c|0]|c>>>0>=e>>>0)){c=c+1|0;continue}break}J[695492]=0;ga(6689,g|0,c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}J[695492]=0;b=aa(6531,a+140|0,a+136|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)J[f>>2]=J[f>>2]|2;d=J[a+140>>2];b=J[a+16>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)gc[J[J[b>>2]+8>>2]](b);Ae(i);bc=a+144|0;return d|0}c=Z()|0;a=J[a+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a)}Ae(i);ba(c|0);B()}function c2(a, -b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0),l=0,m=0,n=Q(0),o=0,p=Q(0);g=bc-112|0;bc=g;e=fn(b,0);d=J[e>>2];i=(d|0)>0?d:0;J[g+108>>2]=i;a:{b:{c:{h=a+304|0;j=a+316|0;d=J[J[a+328>>2]+216>>2]?h:j;c=J[d+4>>2];if(!c)break c;d=d+4|0;f=d;while(1){o=J[c+16>>2]<(i|0);f=o?f:c;c=J[(o?c+4|0:c)>>2];if(c)continue;break}if(!K[f+92|0]|((d|0)==(f|0)|J[f+16>>2]>(i|0)))break c;d=f+20|0;break b}H[g+3|0]=1;H[g+2|0]=0;d=g+4|0;St(d,a,g+108|0,g+3|0,0,g+2|0);J[695492]=0;da(2758,h|0,d|0);d=J[695492];J[695492]=0;if((d|0)== -1)break a;fj(g+80|0);d=0;f=J[J[a+328>>2]+216>>2]?h:j;c=J[f+4>>2];if(!c)break b;h=f+4|0;f=h;while(1){j=J[c+16>>2]<(i|0);f=j?f:c;c=J[(j?c+4|0:c)>>2];if(c)continue;break}if((f|0)==(h|0))break b;d=J[f+16>>2]<=(i|0)?f+20|0:0}d:{e:{f:{c=J[d+4>>2];switch(c-1|0){case 1:break d;case 0:break e;default:break f}}c=0}J[e+60>>2]=c;c=J[d+44>>2];J[e+28>>2]=J[d+40>>2];J[e+32>>2]=c;c=J[d+52>>2];J[e+36>>2]=J[d+48>>2];J[e+40>>2]=c;c=J[d+60>>2];J[e+44>>2]=J[d+56>>2];J[e+48>>2]=c;c=d- -64|0;f=J[c+4>>2];J[e+52>>2]=J[c>> -2];J[e+56>>2]=f;H[e+64|0]=K[d+72|0];J[e+92>>2]=J[d+100>>2];c=J[d+96>>2];J[e+84>>2]=J[d+92>>2];J[e+88>>2]=c;c=J[d+88>>2];J[e+76>>2]=J[d+84>>2];J[e+80>>2]=c;c=J[d+80>>2];J[e+68>>2]=J[d+76>>2];J[e+72>>2]=c;k=N[b+12>>2];p=Q(k+Q(0));l=+p;n=N[b+8>>2];m=+Q(n+Q(0));N[e+4>>2]=l*O[b+40>>3]+(m*O[b+24>>3]+O[b+56>>3])-+n;N[e+8>>2]=l*O[b+48>>3]+(m*O[b+32>>3]+O[b- -64>>3])-+k;l=O[a+144>>3];m=O[a+8>>3];k=N[d+16>>2];N[b+20>>2]=p;N[b+16>>2]=n+Q(Q(l+m*+k)+Q(0))}bc=g+112|0;return}a=Z()|0;fj(g+80|0);ba(a|0);B()}function y2a(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=J[a+464>>2];if(J[a+280>>2]){d=J[e+52>>2];if(!d){if(!(gc[J[J[a+460>>2]+8>>2]](a)|0)){d=J[a>>2];J[d+20>>2]=25;gc[J[d>>2]](a)}if(J[a+336>>2]>0)while(1){d=f<<2;g=J[(d+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[(e+(J[g+20>>2]<<2)|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+ -48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+ -10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;d=e+d|0;J[d+36>>2]=0;J[d+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}wc(J[(e+(J[g+24>>2]<<2)|0)+120>>2],0,256)}f=f+1|0;if((f|0)>2])continue;break}J[e+16>>2]=-16;J[e+8>>2]=0;J[e+12>>2]=0;d=J[a+280>>2]}J[e+52>>2]=d-1}if(J[a+364>>2]>0){g=e+184|0;e=1<>2];f=0;while(1){if(Kd(a,g)){d=J[(f<<2)+b>>2];I[d>>1]=e|L[d>>1]}f=f+1|0;if((f|0)>2])continue;break}}return 1}function xqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){m=e-2|0;o=(e|0)==1;while(1){h=f;I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];f=h+8|0;g=g+8|0;a:{if(k>>>0>m>>>0)break a;i=k?(k|0)==(m|0)?d:b:c;n=!k&o;if(n){if(i>>>0<2)break a;a=i-1|0;l=a&1;if((i|0)!=2){j=a&-2;a=0;while(1){I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];I[g+8>>1]=L[h>>1];I[g+10>>1]=L[h+2>>1];I[g+12>>1]=L[h+4>>1];I[g+14>>1]=L[h+ -6>>1];g=g+16|0;a=a+2|0;if((j|0)!=(a|0))continue;break}}if(!l)break a;I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];g=g+8|0;break a}j=i+1>>>1|0;b:{if(i>>>0<3)break b;a=(j>>>0<=2?2:j)-1|0;p=a&1;if(i>>>0>=5){l=a&-2;a=0;while(1){I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];I[g+8>>1]=L[h>>1];I[g+10>>1]=L[h+2>>1];I[g+12>>1]=L[h+4>>1];I[g+14>>1]=L[h+6>>1];g=g+16|0;a=a+2|0;if((l|0)!=(a|0))continue;break}}if(!p)break b;I[g>>1]=L[h>>1];I[g+2>>1]= -L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];g=g+8|0}if(i>>>0<=j>>>0)break a;h=n?0:f;if(i-j&1){I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];g=g+8|0;a=j+1|0}else a=j;if((0-i^j)==-1)break a;while(1){I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];I[g+8>>1]=L[h>>1];I[g+10>>1]=L[h+2>>1];I[g+12>>1]=L[h+4>>1];I[g+14>>1]=L[h+6>>1];g=g+16|0;a=a+2|0;if((i|0)!=(a|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function MLa(a, -b){a=a|0;b=b|0;var c=0,d=0;if(a){Ld(a,0);while(1){d=dA(a);a:{b:{c=J[a+348>>2];if((c|0)!=1229278788){if((c|0)!=1229472850)break b;fW(a,b,d);break a}aW(a,d);break a}c:{if(Dv(a,c)){if((c|0)==1229209940){if(!(d|K[a+201|0]&32))break c;EH(a,61123);break c}uv(a,b,d);if((c|0)!=1347179589)break a;J[a+200>>2]=J[a+200>>2]|2;break a}d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((c|0)<=1883455819){if((c|0)<=1732332864){if((c|0)<=1649100611){if((c|0)==1229209940)break n;if((c|0)!=1347179589)break c;bW(a,b,d);break a}if((c| -0)==1649100612)break m;if((c|0)!=1665684045)break c;XV(a,b,d);break a}if((c|0)<=1766015823){if((c|0)==1732332865)break l;if((c|0)!=1749635924)break c;MV(a,b,d);break a}if((c|0)==1766015824)break g;if((c|0)==1767135348)break d;if((c|0)!=1866876531)break c;JV(a,b,d);break a}if((c|0)<=1934772033){if((c|0)<=1933723987){if((c|0)==1883455820)break k;if((c|0)!=1883789683)break c;LV(a,b,d);break a}if((c|0)==1933723988)break i;if((c|0)==1933787468)break j;if((c|0)!=1934642260)break c;QV(a,b,d);break a}if((c| -0)<=1950960964){if((c|0)==1934772034)break h;if((c|0)!=1950701684)break c;zV(a,b,d);break a}if((c|0)==1950960965)break f;if((c|0)==1951551059)break e;if((c|0)!=2052348020)break c;yV(a,b,d);break a}if(d|K[a+201|0]&32)EH(a,61123);Ld(a,d);break a}OV(a,b,d);break a}$V(a,b,d);break a}GV(a,b,d);break a}DV(a,b,d);break a}YV(a,b,d);break a}WV(a,b,d);break a}SV(a,b,d);break a}AV(a,b,d);break a}PV(a,b,d);break a}tV(a,b,d);break a}uv(a,b,d)}if(!(K[a+200|0]&16))continue;break}}}function Cqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){o=e-2|0;p=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];f=a+4|0;g=g+4|0;a:{if(k>>>0>o>>>0)break a;j=k?(k|0)==(o|0)?d:b:c;l=!k&p;if(l){if(j>>>0<2)break a;h=j-1|0;i=h&3;if(j-2>>>0>=3){j=h&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}h= -0;if(!i)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;m=i-1|0;n=m&3;if(i-2>>>0>=3){m=m&-4;i=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;if(!n)break b;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;i=i+1|0;if((n| -0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;a=l?0:f;n=j+(h^-1)|0;i=0;l=j-h&3;if(l)while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];h=h+1|0;g=g+4|0;i=i+1|0;if((l|0)!=(i|0))continue;break}if(n>>>0<3)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function bga(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;var h=0,i=0,j=0,k=0;a=bc-448|0;bc=a;J[a+440>>2]=c;J[a+444>>2]=b;J[a+20>>2]=6678;j=a+20|0;i=ng(a+24|0,a+32|0,j);J[695492]=0;b=a+16|0;h=J[e+28>>2];J[b>>2]=h;J[h+4>>2]=J[h+4>>2]+1;h=J[695492];J[695492]=0;a:{b:{c:{d:{if((h|0)!=1){J[695492]=0;h=$(6537,b|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break b;H[a+15|0]=0;e=J[e+4>>2];J[695492]=0;b=Ba(6690,a+444|0,c|0,d|0,b|0,e|0,f|0,a+15|0,h|0,i|0,j|0,a+432|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(!b)break c;b=bc- -16|0;bc=b;e:{if(K[g+11|0]>>>7|0){c=J[g>>2];J[b+12>>2]=0;J[c>>2]=J[b+12>>2];J[g+4>>2]=0;break e}J[b+8>>2]=0;J[g>>2]=J[b+8>>2];H[g+11|0]=K[g+11|0]&128;H[g+11|0]=K[g+11|0]&127}bc=b+16|0;if(!K[a+15|0])break d;J[695492]=0;b=aa(6668,h|0,45)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;da(3256,g|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break b}c=Z()|0;break a}J[695492]=0;b=aa(6668,h|0,48)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;c=J[i>>2];d=J[a+20>>2];e=d-4|0;while(1){if(!((b| -0)!=J[c>>2]|c>>>0>=e>>>0)){c=c+4|0;continue}break}J[695492]=0;ga(6696,g|0,c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}J[695492]=0;b=aa(6645,a+444|0,a+440|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)J[f>>2]=J[f>>2]|2;d=J[a+444>>2];b=J[a+16>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)gc[J[J[b>>2]+8>>2]](b);Ae(i);bc=a+448|0;return d|0}c=Z()|0;a=J[a+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a)}Ae(i);ba(c|0);B()}function yPa(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,u=0,v=0;k=bc-32|0;j=a;while(1){a:{d=J[(e<<2)+b>>2]+c|0;g=K[d+6|0];f=j;l=K[d+5|0];m=K[d+3|0];j=l+m|0;n=K[d+2|0];h=n+g|0;o=K[d+8|0];p=K[d|0];i=o+p|0;q=j+(h+i|0)|0;r=K[d+7|0];s=K[d+1|0];t=r+s|0;u=K[d+4|0];v=t+u|0;J[f>>2]=(q+v<<1)-2304;d=p-o|0;g=n-g|0;l=m-l|0;J[f+12>>2]=P(d-(g+l|0)|0,10033)+2048>>12;J[f+24>>2]=P(q-(v<<1)|0,5793)+2048>>12;n=P(j-i|0,2012);i=P(i-h|0,10887)+2048|0;m=P(t-(u<<1)|0,5793);J[f+16>>2]=(n+i|0)-m>>12;J[f+ -8>>2]=m+(i+P(h-j|0,8875)|0)>>12;i=P(g-l|0,11409);h=P(d+l|0,3962);j=P(s-r|0,10033);J[f+28>>2]=(i+(h-j|0)|0)+2048>>12;d=P(d+g|0,7447);J[f+20>>2]=(d-(j+i|0)|0)+2048>>12;J[f+4>>2]=(h+(d+j|0)|0)+2048>>12;g=e-7|0;e=e+1|0;j=k;d=7;b:switch(g|0){case 0:continue;case 1:break a;default:break b}j=f+32|0;continue}break}while(1){e=J[a>>2];g=J[j>>2];b=e-g|0;k=J[a+64>>2];h=J[a+192>>2];c=k-h|0;i=J[a+96>>2];l=J[a+160>>2];f=i-l|0;J[a+96>>2]=P(b-(c+f|0)|0,15855)+16384>>15;k=h+k|0;e=e+g|0;g=i+l|0;h=(k+e|0)+g|0;i=J[a+ -128>>2];l=J[a+224>>2];m=J[a+32>>2];n=l+m|0;o=i+n|0;J[a+192>>2]=P(h-(o<<1)|0,9154)+16384>>15;J[a>>2]=P(h+o|0,12945)+16384>>15;o=P(g-e|0,3179);e=P(e-k|0,17203)+16384|0;h=P(n-(i<<1)|0,9154);J[a+128>>2]=(o+e|0)-h>>15;J[a+64>>2]=h+(e+P(k-g|0,14024)|0)>>15;e=P(b+f|0,6262);k=P(m-l|0,15855);f=P(c-f|0,18029);J[a+224>>2]=((e-k|0)+f|0)+16384>>15;b=P(b+c|0,11768);J[a+160>>2]=(b-(f+k|0)|0)+16384>>15;J[a+32>>2]=(e+(b+k|0)|0)+16384>>15;b=d;d=d-1|0;j=j+4|0;a=a+4|0;if(b)continue;break}}function gP(a,b,c){var d=0, -e=0,f=0;d=bc-16|0;bc=d;a:{b:switch(b-9|0){case 0:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];break a;case 1:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 2:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;break a;case 4:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 5:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;break a;case 3:b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;break a;case 6:b=J[c>>2];J[c>>2]=b+4;b=I[b>>1];J[a>>2]=b; -J[a+4>>2]=b>>31;break a;case 7:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=L[b>>1];J[a+4>>2]=0;break a;case 8:b=J[c>>2];J[c>>2]=b+4;b=H[b|0];J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 9:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=K[b|0];J[a+4>>2]=0;break a;case 10:b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;break a;case 11:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;break a;case 12:b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;break a;case 13:b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>> -2];J[a>>2]=J[b>>2];J[a+4>>2]=c;break a;case 14:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 15:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;break a;case 16:b=J[c>>2]+7&-8;J[c>>2]=b+8;Hl(d,O[b>>3]);b=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=b;b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;break a;case 17:break b;default:break a}b=J[c>>2]+7&-8;J[c>>2]=b+16;c=J[b>>2];e=J[b+4>>2];f=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=f;J[a>>2]=c;J[a+4>>2]=e}bc=d+16|0}function Job(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{g=P(J[b+44>>2],30)+11|0;if(g>>>0<=M[a+424>>2]){e=J[a+428>>2]+8|0;break b}e=gc[J[a+152>>2]](g)|0;if(e)break b;d=1;Dc(a,1,0,0);break a}d=L[b+32>>1];d=d<<8|d>>>8;H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=K[b+34|0];d=J[b+36>>2];d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);H[e+3|0]=d;H[e+4|0]=d>>>8;H[e+5|0]=d>>>16;H[e+6|0]=d>>>24;d=J[b+40>>2];d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);H[e+7|0]=d;H[e+8|0]=d>>>8;H[e+9|0]=d>>>16;H[e+10|0]=d>>>24;if(J[b+44>>2]){d=e+11|0;f=J[b+ -48>>2];while(1){c=L[f>>1];c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=K[f+2|0];H[d+3|0]=K[f+3|0];H[d+4|0]=K[f+4|0];c=J[f+8>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+5|0]=c;H[d+6|0]=c>>>8;H[d+7|0]=c>>>16;H[d+8|0]=c>>>24;c=J[f+12>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+9|0]=c;H[d+10|0]=c>>>8;H[d+11|0]=c>>>16;H[d+12|0]=c>>>24;H[d+13|0]=K[f+16|0];c=J[f+20>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+14|0]=c;H[d+15|0]=c>>>8;H[d+16|0]=c>>>16;H[d+17|0]=c>>>24;c=J[f+24>>2];c=c<<24| -(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+18|0]=c;H[d+19|0]=c>>>8;H[d+20|0]=c>>>16;H[d+21|0]=c>>>24;c=J[f+28>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+22|0]=c;H[d+23|0]=c>>>8;H[d+24|0]=c>>>16;H[d+25|0]=c>>>24;c=J[f+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+26|0]=c;H[d+27|0]=c>>>8;H[d+28|0]=c>>>16;H[d+29|0]=c>>>24;d=d+30|0;f=f+36|0;h=h+1|0;if(h>>>0>2])continue;break}}d=ue(a,J[b>>2],g,e);if(M[a+424>>2]>=g>>>0)break a;gc[J[a+156>>2]](e,g);return d|0}return d|0}function irb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(e){n=e-2|0;while(1){a=K[f|0];H[g|0]=a;g=g+1|0;f=f+1|0;a:{if(l>>>0>n>>>0)break a;j=l?(l|0)==(n|0)?d:b:c;if(!((e|0)!=1|l)){if(j>>>0<2)break a;h=j-1|0;i=h&7;if(j-2>>>0>=7){j=h&-8;h=0;while(1){H[g+7|0]=a;H[g+6|0]=a;H[g+5|0]=a;H[g+4|0]=a;H[g+3|0]=a;H[g+2|0]=a;H[g+1|0]=a;H[g|0]=a;g=g+8|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){H[g|0]=a;g=g+1|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}if((a| +while(1){d=J[b+(a<<2)>>2];if(!(L[d+10>>1]!=5|L[d+8>>1]!=3))break a;d=0;a=a+1|0;if((c|0)!=(a|0))continue;break}break b;case 4:break g;default:break b}b=J[a+40>>2];a=0;while(1){d=J[b+(a<<2)>>2];if(!(L[d+10>>1]!=6|L[d+8>>1]!=3))break a;d=0;a=a+1|0;if((c|0)!=(a|0))continue;break}break b;case 0:break f;default:break b}a=f+44|0}d=(J[a>>2]&e)!=0}return d|0}return 1}function f$a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=fc-16|0;fc=g;h=kc[J[663195]](76)|0;a:{if(!h){J[g>>2]=17038;Hc(0,0,0,0,0,2,2,3,17038, +0,0,0,32879,g);break a}f=Ac(h,0,76);J[f+4>>2]=17;J[f+48>>2]=J[a+48>>2];d=J[a+8>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-d|0;b:{if((b|0)<0)break b;e=kc[J[663198]](b+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}c=xc(e,d,b);H[b+c|0]=0}J[f+8>>2]=c}d=J[a+52>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-d|0;c:{if((b|0)<0)break c;e=kc[J[663198]](b+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break c}c=xc(e,d,b);H[b+c|0]=0}J[f+52>>2]=c}d= +J[a+56>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-d|0;d:{if((b|0)<0)break d;e=kc[J[663198]](b+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}c=xc(e,d,b);H[b+c|0]=0}J[f+56>>2]=c}d=J[a+40>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-d|0;e:{if((b|0)<0)break e;e=kc[J[663198]](b+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break e}c=xc(e,d,b);H[b+c|0]=0}J[f+40>>2]=c}d=J[a+36>>2];if(d){c=d;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0; +b=b-d|0;f:{if((b|0)<0)break f;e=kc[J[663198]](b+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break f}c=xc(e,d,b);H[b+c|0]=0}J[f+36>>2]=c}a=J[a+64>>2];if(!a)break a;c=a;while(1){d=c;c=d+1|0;if(K[d|0])continue;break}c=0;d=d-a|0;g:{if((d|0)<0)break g;b=kc[J[663198]](d+1|0)|0;if(!b){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break g}c=xc(b,a,d);H[d+c|0]=0}J[f+64>>2]=c}fc=g+16|0;return h|0}function wna(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;a:{if((a|0)==(b|0))break a;d=K[b+11|0];c= +d<<24>>24;if(H[a+11|0]>=0){if((c|0)>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];break a}Gf(a,J[b>>2],J[b+4>>2]);break a}c=(c|0)<0;Lf(a,c?J[b>>2]:b,c?J[b+4>>2]:d)}H[a+12|0]=K[b+12|0];H[a+13|0]=K[b+13|0];I[a+14>>1]=L[b+14>>1];H[a+16|0]=K[b+16|0];H[a+17|0]=K[b+17|0];H[a+18|0]=K[b+18|0];H[a+19|0]=K[b+19|0];H[a+20|0]=K[b+20|0];H[a+21|0]=K[b+21|0];H[a+22|0]=K[b+22|0];H[a+23|0]=K[b+23|0];H[a+24|0]=K[b+24|0];H[a+25|0]=K[b+25|0];H[a+26|0]=K[b+26|0];J[a+32>>2]=J[a+28>>2];h=J[b+32>>2];e= +J[b+28>>2];b:{if((h|0)==(e|0))break b;c:{k=h-e>>2;c=a+28|0;g=J[c+8>>2];d=J[c+4>>2];if(k>>>0<=g-d>>2>>>0){if(k){e=d;d=k<<2;d=Ac(e,0,d)+d|0}J[c+4>>2]=d;break c}d:{i=J[c>>2];h=d-i>>2;f=k+h|0;if(f>>>0<1073741824){e=g-i|0;g=e>>1;f=e>>>0>=2147483644?1073741823:f>>>0>>0?g:f;if(f){if(f>>>0>=1073741824)break d;j=vc(f<<2)}e=(h<<2)+j|0;g=k<<2;g=Ac(e,0,g)+g|0;if((d|0)!=(i|0))while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(i|0))continue;break}J[c+8>>2]=(f<<2)+j;J[c+4>>2]=g;J[c>>2]=e;if(i)uc(i);break c}qj(c); +B()}Pd();B()}c=J[a+32>>2];f=J[a+28>>2];if((c|0)==(f|0))break b;d=c-f>>2;c=d>>>0<=1?1:d;g=c&3;h=J[b+28>>2];b=0;if(d>>>0>=4){d=c&-4;j=0;while(1){e=b<<2;J[e+f>>2]=J[e+h>>2];c=e|4;J[c+f>>2]=J[c+h>>2];c=e|8;J[c+f>>2]=J[c+h>>2];c=e|12;J[c+f>>2]=J[c+h>>2];b=b+4|0;j=j+4|0;if((d|0)!=(j|0))continue;break}}if(!g)break b;while(1){c=b<<2;J[c+f>>2]=J[c+h>>2];b=b+1|0;l=l+1|0;if((g|0)!=(l|0))continue;break}}return a|0}function Bza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-48|0;fc=c;J[a>>2]=2417608;J[a+4>> +2]=0;J[699344]=0;h=_(5252,a+12|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if((d|0)!=1){J[699344]=0;d=a+48|0;J[d+20>>2]=-1;J[d+12>>2]=-1;J[d+16>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2417764;f=J[699344];J[699344]=0;if((f|0)==1)break k;J[a+72>>2]=0;J[a+76>>2]=0;J[a+96>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[699344]=0;f=aa(5250,a+72|0,2414072)|0;g=J[699344];J[699344]=0;if((g|0)==1)break j;J[a+100>>2]=0;J[a+104>>2]=0;J[a+124>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+ +108>>2]=0;J[a+112>>2]=0;J[699344]=0;g=aa(5250,a+100|0,2417784)|0;e=J[699344];J[699344]=0;if((e|0)==1)break i;e=J[b+8>>2];if(J[(e?e+12|0:2743576)>>2])break f;J[699344]=0;c=ja(5178,c+12|0,2394795,2385572,87,2417616,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;B()}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;Kc(c);break e}J[699344]=0;e=c+12|0;da(5396,e|0,b|0);b=J[699344];J[699344]=0;l:{if((b| +0)!=1){J[699344]=0;aa(5253,h|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break l;J[c+36>>2]=2392964;J[c+12>>2]=2392932;b=J[c+40>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)kc[J[J[b>>2]+4>>2]](b);J[c+40>>2]=0}J[c+28>>2]=2392964;b=J[c+32>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)kc[J[J[b>>2]+4>>2]](b);J[c+32>>2]=0}wc(c+20|0);fc=c+48|0;return a|0}b=Z()|0;break e}b=Z()|0;Ed(c+12|0)}Md(g)}Md(f)}Hd(d)}Ed(h)}nd(a);ba(b|0);B()}function c5(a,b,c,d,e,f,g,h,i){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;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,y=0,z=0,A=0,C=0,D=0;m=fc-32|0;fc=m;J[m+28>>2]=0;J[m+20>>2]=0;J[m+24>>2]=0;p=P(i-2|0,12);t=J[p+2772340>>2];a:{b:{c:{d:{e:{f:{j=J[p+2772336>>2];if((t|0)!=(j|0)){k=t-j|0;if((k|0)<0){J[699344]=0;$(2494,m+20|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;break a}J[699344]=0;q=_(4,k|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break f;k=q;while(1){O[k>>3]=O[j>>3];k=k+8|0;j=j+8|0;if((t|0)!=(j|0))continue;break}}J[m+16>>2]=0;J[m+8>>2]= +0;J[m+12>>2]=0;j=J[p+2772528>>2];p=J[p+2772532>>2];if((j|0)==(p|0))break d;k=p-j|0;if((k|0)>=0)break e;J[699344]=0;$(2494,m+8|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break c}j=Z()|0;a=J[m+20>>2];if(!a)break b;J[m+24>>2]=a;uc(a);break b}J[699344]=0;s=_(4,k|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break c;k=s;while(1){O[k>>3]=O[j>>3];k=k+8|0;j=j+8|0;if((p|0)!=(j|0))continue;break}}n=O[g>>3];u=(O[h>>3]-n)*.5;n=n+u;if(i&1){o=(O[a>>3]*n+O[b>>3])*n+O[c>>3];l=o*o;o=(O[d>>3]*n+O[e>>3])*n+O[f>>3];o= +Y(l+o*o)}g=i+1|0;g:{h:{if(g>>>0>=2){g=g>>>1|0;v=O[f>>3];w=O[e>>3];x=O[d>>3];y=O[c>>3];z=O[b>>3];A=O[a>>3];j=0;while(1){a=j<<3;C=u*O[a+q>>3];l=n+C;r=(A*l+z)*l+y;l=(x*l+w)*l+v;D=Y(r*r+l*l);l=n-C;r=(A*l+z)*l+y;l=(x*l+w)*l+v;o=O[a+s>>3]*(D+Y(r*r+l*l))+o;j=j+1|0;if((g|0)!=(j|0))continue;break}break h}if(!s)break g}uc(s)}if(q)uc(q);fc=m+32|0;return+(u*o)}j=Z()|0;a=J[m+8>>2];if(a){J[m+12>>2]=a;uc(a)}if(!q)break b;uc(q);ba(j|0);B()}ba(j|0);B()}B()}function vba(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;f=J[b+36>>2];if(!(!f|J[a+56>>2]<=0))while(1){d=J[f+24>>2];j=0;if(J[f+20>>2]>0){while(1){g=J[d+4>>2];a:{if(!g)break a;if(J[d>>2]>0){k=0;while(1){h=J[g>>2];b:{if(!h)break b;l=0;if(J[d+40>>2]<=0)break b;while(1){e=J[h+28>>2];c:{if(!e)break c;m=0;if(J[h+24>>2]>0)while(1){c=J[e+4>>2];if(c){o=e+4|0;q=e+8|0;while(1){i=J[c+4>>2];n=J[c>>2];J[(i?i:o)>>2]=n;J[(n?n+4|0:q)>>2]=i;J[c>>2]=0;J[c+4>>2]=0;i=J[c+24>>2];if(i)Pf(i);uc(c);c=J[o>>2];if(c)continue;break}}mg(J[e+40>>2]);c=J[e+28>> +2];if(c)aF(c);c=J[e+32>>2];if(c)lv(c);c=J[e+36>>2];if(c)mg(c);e=e+44|0;m=m+1|0;if((m|0)>2])continue;break}c=J[h+32>>2];if(c)no(c);c=J[h+36>>2];if(c)no(c);c=J[h+28>>2];if(!c)break c;uc(c)}h=h+40|0;l=l+1|0;if((l|0)>2])continue;break}}c=J[g+4>>2];if(c)mg(c);c=J[g>>2];if(c)uc(c);g=g+32|0;k=k+1|0;if((k|0)>2])continue;break}g=J[d+4>>2];if(!g)break a}uc(g)}d=d+60|0;j=j+1|0;if((j|0)>2])continue;break}d=J[f+24>>2]}if(d)uc(d);d=J[f+16>>2];if(d)mg(d);d=J[f+28>>2];if(d)uc(d);f=f+ +32|0;p=p+1|0;if((p|0)>2])continue;break}a=J[b+32>>2];if(a){d=J[a+24>>2];if(d)uc(d);d=J[a+4>>2];if(d)bP(d);uc(a);J[b+32>>2]=0}a=J[b+36>>2];if(a){uc(a);J[b+36>>2]=0}a=J[b+52>>2];if(a){eF(a);J[b+52>>2]=0}a=J[b+24>>2];if(a){Pf(a);J[b+24>>2]=0}a=J[b+20>>2];if(a){if(J[a>>2]>0){c=0;while(1){d=J[J[a+8>>2]+(c<<2)>>2];e=J[d+8>>2];if(e)uc(e);uc(d);c=c+1|0;if((c|0)>2])continue;break}}d=J[a+8>>2];if(d)uc(d);uc(a);J[b+20>>2]=0}J[b>>2]=3}function EYa(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=fc-80|0;fc=e;J[e+64>>2]=13;a:{b:{if(!c|J[c>>2]!=9)break b;f=c;c=e- -64|0;if(J[jf(f,J[a+164>>2],c,0)>>2]!=8)break b;J[e+16>>2]=13;a=J[e+72>>2];f=e+16|0;g=J[Ec(kc[J[J[a>>2]+76>>2]](a)|0,819085,f,0)>>2];a=J[e+24>>2];yc(f);yc(c);if(!a|(g|0)!=1)break a;c=vc(a);d=kc[J[J[d>>2]+72>>2]](d)|0;kc[J[J[d>>2]+20>>2]](d);d=kc[J[J[d>>2]+40>>2]](d,c,a)|0;if(!d){uc(c);break a}a=e+16|0;J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25| +0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[699344]=0;h=ha(2235,a|0,c|0,d|0,3)|0;d=J[699344];J[699344]=0;c:{if((d|0)==1)break c;d:{if(!h)break d;J[699344]=0;d=J[a+16>>2];f=J[699344];J[699344]=0;if((f|0)==1)break c;J[699344]=0;f=J[a+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break c;J[e+12>>2]=f;J[699344]=0;f=J[a+8>>2];g=J[699344];J[699344]=0;if((g|0)==1)break c;J[e+8>>2]=f;J[699344]=0;f=J[a+4>>2];g=J[699344];J[699344]=0;if((g|0)==1)break c;J[699344]= +0;J[e+4>>2]=0-(f<<2);yi(b,d,e+12|0,e+8|0,e+4|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)!=1)break d;break c}uc(c);Yg(a);break a}b=Z()|0;Yg(a);ba(b|0);B()}yc(e- -64|0)}fc=e+80|0;return h|0}function V2(a){var b=0,c=0,d=0;if((a|0)>=-64){if((a| +0)<=10512){a=a+-64|0;b=(a<<16>>16)/243|0;c=b&65535;a=a-P(b,243)<<16>>16;a:{if((a|0)>=20){a=a+13|0;break a}a=H[a+755600|0]}return a|(c<<8)+53248|33554432}if(a>>>0<=187659){a=a-10513|0;b=(a>>>0)/243|0;c=a-P(b,243)|0;b:{if(c>>>0>=20){c=c+13|0;break b}c=H[c+755600|0]}c=c|((a>>>0)/59049<<16)+16449536;a=((b&65535)>>>0)%243|0;c:{if(a>>>0>=20){a=a+13|0;break c}a=H[a+755600|0]}return c|a<<8|50331648}b=a-187660|0;c=(b>>>0)/243|0;a=b-P(c,243)|0;d:{if(a>>>0>=20){a=a+13|0;break d}a=H[a+755600|0]}d=(b>>>0)/59049| +0;c=(c>>>0)%243|0;e:{if(c>>>0>=20){c=c+13|0;break e}c=H[c+755600|0]}return a|c<<8|(b>>>0>=1180980?d+13|0:H[d+755600|0])<<16|-33554432}if(a>>>0>=4294956783){b=-64-a|0;a=((b&65535)>>>0)/243|0;c=a^-1;d=0-a|0;a=b-P(a,243)|0;b=a&65535;c=b?c:d;a=(b?243-a|0:0)&65535;f:{if(a>>>0>=20){a=a+13|0;break f}a=H[a+755600|0]}return a|(c<<8)+20480|33554432}if(a>>>0>=4294779636){b=-10513-a|0;a=(b>>>0)/243|0;b=b-P(a,243)|0;a=a+((b|0)!=0)|0;c=a;a=((a&65535)>>>0)/243|0;d=c-P(a,243)|0;c=d&65535;b=b?243-b|0:0;g:{if(b>>> +0>=20){b=b+13|0;break g}b=H[b+755600|0]}b=b|((c?a^-1:0-a|0)<<16)+2424832;a=(c?243-d|0:0)&65535;h:{if(a>>>0>=20){a=a+13|0;break h}a=H[a+755600|0]}return b|a<<8|50331648}b=-187660-a|0;a=(b>>>0)/243|0;b=b-P(a,243)|0;c=a+((b|0)!=0)|0;a=b?243-b|0:0;i:{if(a>>>0>=20){a=a+13|0;break i}a=H[a+755600|0]}b=c;c=(c>>>0)/243|0;b=b-P(c,243)|0;c=b?c^-1:0-c|0;b=b?243-b|0:0;j:{if(b>>>0>=20){b=b+13|0;break j}b=H[b+755600|0]}return a|b<<8|((c|0)>=-223?c+256|0:H[c+755843|0])<<16|553648128}function KE(a,b,c){var d=0,e= +0,f=0,g=0,h=0,i=0,j=0,k=0;g=-15;j=16777215;a:switch(b|0){case 0:J[a>>2]=K[c+4|0]|(L[c+2>>1]<<8&65280|L[c>>1]<<16)|-16777216;return 0;case 1:i=L[c>>1];e=+L[c+4>>1]/100;k=a;b:{c:{d:{d=+L[c+2>>1]/100;if(d==0){d=e*255;if(!(R(d)<2147483648))break d;g=~~d;b=g;a=b;break b}d=e<=.5?(d+1)*e:d+e-e*d;e=e+e-d;a=(i>>>0)%360|0;j=a>>>0>59;b=(i+120>>>0)%360|0;e:{if(b>>>0<=59){h=e+(d-e)*+(b|0)/60;break e}h=d;if(b>>>0<180)break e;h=e;if(b>>>0>239)break e;h=e+(d-e)*+(240-b|0)/60}f=h*255;f:{if(R(f)<2147483648){g=~~f; +break f}g=-2147483648}i=(i-120|0)%360|0;c=(i|0)>59;f=d-e;h=e+f*+(a|0)/60;g:{if(!j)break g;h=d;if(a>>>0<180)break g;h=e;if(a>>>0>239)break g;h=e+f*+(240-a|0)/60}f=h*255;h:{if(R(f)<2147483648){b=~~f;break h}b=-2147483648}i:{if(!c){d=e+(d-e)*+(i|0)/60;break i}if(i>>>0<180)break i;if(i>>>0>239){d=e;break i}d=e+(d-e)*+(240-i|0)/60}d=d*255;if(!(R(d)<2147483648))break c;a=~~d;break b}g=-2147483648;b=-2147483648}a=-2147483648}J[k>>2]=a|(g<<16|-16777216|b<<8);return 0;case 2:g=a;f=+L[c+6>>1]/100;e=1-f;d=1- +(+L[c+2>>1]/100*e+f);j:{if(R(d)<2147483648){a=~~d;break j}a=-2147483648}b=P(a,255);b=(b|0)>0?b:0;a=(b>>>0>=255?255:b)<<8;d=1-(+L[c>>1]/100*e+f);k:{if(R(d)<2147483648){b=~~d;break k}b=-2147483648}b=P(b,255);b=(b|0)>0?b:0;b=a|(b>>>0>=255?255:b)<<16;d=1-(+L[c+4>>1]/100*e+f);l:{if(R(d)<2147483648){a=~~d;break l}a=-2147483648}a=P(a,255);a=(a|0)>0?a:0;J[g>>2]=b|(a>>>0>=255?255:a)|-16777216;return 0;case 7:g=0;j=Nq(255,L[c>>1],L[c+2>>1],L[c+4>>1]);break;default:break a}J[a>>2]=j;return g}function T4(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;g=fc-16|0;fc=g;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{h=J[b>>2];if((h|0)!=J[b+4>>2])while(1){d=P(r,144)+h|0;f=O[d+72>>3];j=O[d>>3];b:{if(!K[d+120|0]){J[699344]=0;h=_(4,32)|0;c=J[699344];J[699344]=0;i=f;e=j;if((c|0)!=1)break b;break a}i=O[d+104>>3];e=O[d+88>>3];J[699344]=0;h=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;i=f+i;e=f+e}O[h+24>>3]=f;O[h+16>>3]=i;O[h+8>>3]=e;O[h>>3]=j;e=O[d+80>>3];f=O[d+8>>3];c:{if(!K[d+120|0]){J[699344]= +0;d=_(4,32)|0;c=J[699344];J[699344]=0;k=f;i=e;if((c|0)!=1)break c;break a}i=O[d+112>>3];k=O[d+96>>3];J[699344]=0;d=_(4,32)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;k=e+k;i=e+i}O[d+24>>3]=e;O[d+16>>3]=i;O[d+8>>3]=k;O[d>>3]=f;e=O[d+16>>3];i=O[d+24>>3];k=O[d+8>>3];n=O[h+16>>3];o=O[h+24>>3];p=O[h+8>>3];J[g+12>>2]=0;J[g+4>>2]=0;J[g+8>>2]=0;J[699344]=0;c=_(4,32)|0;q=J[699344];J[699344]=0;if((q|0)==1)break a;J[g+4>>2]=c;q=c+32|0;J[g+12>>2]=q;l=e>3]=l>m?l:m;l=n>3]=l>m?l:m;e=e>i?i:e;f=f>k?k:f;O[c+8>>3]=f>e?e:f;f=n>o?o:n;j=j>p?p:j;O[c>>3]=f>2]=q;c=J[a+4>>2];d:{if(c>>>0>2]){J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c>>2]=J[g+4>>2];J[c+4>>2]=J[g+8>>2];J[c+8>>2]=J[g+12>>2];J[a+4>>2]=c+12;break d}J[699344]=0;da(2524,a|0,g+4|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[g+4>>2];if(!c)break d;J[g+8>>2]=c;uc(c)}uc(d);uc(h);r=r+1|0;h=J[b>>2];if(r>>>0<(J[b+4>>2]-h|0)/144>>>0)continue;break}fc=g+16|0;return}ea(0)|0;Bc();B()}function Zab(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,F=0,G=0,M=0,N=0,O=0,Q=0,R=0,S=0;a:{if((d|0)>0){g=J[a+480>>2];o=J[a+112>>2];p=P(o,3);if(!o)break a;r=J[a+332>>2];e=J[a+136>>2];F=J[e+8>>2];G=J[e+4>>2];M=J[e>>2];s=J[g+40>>2];N=J[g+24>>2];O=o-1|0;Q=p-3|0;while(1){e=t<<2;k=J[e+c>>2];i=J[b+e>>2];b:{if(J[g+36>>2]){k=k+O|0;i=i+Q|0;l=-3;y=-1;f=0;e=(J[g+32>>2]+(p<<1)|0)+6|0;break b}l=3;f=1;y=1;e=J[g+32>>2]}J[g+36>> +2]=f;m=0;R=l+1<<1;S=l+2<<1;j=0;n=0;z=0;A=0;B=0;u=0;v=0;w=0;x=o;while(1){C=(l<<1)+e|0;m=K[K[i|0]+(J[((I[C>>1]+m|0)+8>>4<<2)+s>>2]+r|0)|0];h=m>>>3|0;j=K[K[i+1|0]+(J[((I[e+R>>1]+j|0)+8>>4<<2)+s>>2]+r|0)|0];q=j>>>2|0;n=K[K[i+2|0]+(J[((I[e+S>>1]+n|0)+8>>4<<2)+s>>2]+r|0)|0];D=n>>>3|0;E=(J[(h<<2)+N>>2]+(q<<6)|0)+(D<<1)|0;f=L[E>>1];if(!f){r5(a,h,q,D);f=L[E>>1]}f=(f&65535)-1|0;H[k|0]=f;q=K[f+M|0];h=K[f+G|0];f=n-K[f+F|0]|0;I[e+4>>1]=P(f,3)+w;h=j-h|0;I[e+2>>1]=P(h,3)+v;j=e;e=m-q|0;I[j>>1]=P(e,3)+u;k=k+y|0;i= +i+l|0;n=P(f,7);j=P(h,7);m=P(e,7);w=P(f,5)+B|0;v=P(h,5)+A|0;u=P(e,5)+z|0;z=e;A=h;B=f;e=C;x=x-1|0;if(x)continue;break}I[e+4>>1]=w;I[e+2>>1]=v;I[e>>1]=u;t=t+1|0;if((t|0)!=(d|0))continue;break}}return}a=J[g+36>>2];if((d|0)!=1){c=J[g+32>>2];e=(c+(p<<1)|0)+6|0;b=a?c:e;c=a?e:c;e=d&-2;while(1){I[c+4>>1]=0;I[c>>1]=0;I[c+2>>1]=0;I[b+4>>1]=0;I[b>>1]=0;I[b+2>>1]=0;f=f+2|0;if((e|0)!=(f|0))continue;break}a=(a|0)!=0}if(d&1){b=J[g+32>>2];b=a?(b+(p<<1)|0)+6|0:b;I[b+4>>1]=0;I[b>>1]=0;I[b+2>>1]=0;a=!a}J[g+36>>2]=a} +function XYa(a,b,c,d,e,f){a=a|0;b=Q(b);c=Q(c);d=Q(d);e=Q(e);f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;k=fc-32|0;fc=k;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1065353216;J[a+32>>2]=0;J[a+36>>2]=0;J[a+76>>2]=0;J[a+80>>2]=1;J[a+68>>2]=0;J[a+72>>2]=0;J[a+60>>2]=1056964608;J[a+64>>2]=1065353216;I[a+56>>1]=0;J[a+48>>2]=1065353216;J[a+52>>2]=1065353216;J[a+8>>2]=0;J[a+12>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+84>>2]=1;h=a+88|0;g=h;J[g>>2]=0;J[g+4>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]= +0;l=a+120|0;g=l;J[g>>2]=0;J[g+4>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[699344]=0;g=_(4,24)|0;j=J[699344];J[699344]=0;if((j|0)==1){a=Z()|0;xk(h);ba(a|0);B()}h=g+24|0;J[a+140>>2]=h;J[a+132>>2]=g;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[a+136>>2]=h;Ac(a+148|0,0,88);J[699344]=0;i=Lb(3408,k|0,256,Q(b),Q(c),Q(d),Q(e))|0;g=J[699344];J[699344]=0;if((g|0)!=1)a:{J[a+88>>2]=J[i>>2];g=J[a+92>>2];if(g){j=g;h=J[a+96>>2];if((g|0)!=(h|0)){while(1){j=h-12| +0;m=J[j>>2];if(m){J[h-8>>2]=m;uc(m)}h=j;if((g|0)!=(h|0))continue;break}j=J[a+92>>2]}J[a+96>>2]=g;uc(j);J[a+100>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0}J[a+92>>2]=J[i+4>>2];J[a+96>>2]=J[i+8>>2];J[a+100>>2]=J[i+12>>2];g=J[i+20>>2];J[a+104>>2]=J[i+16>>2];J[a+108>>2]=g;g=J[i+28>>2];J[a+112>>2]=J[i+24>>2];J[a+116>>2]=g;J[a+80>>2]=0;J[a+84>>2]=1;b:{if((f|0)==(l|0))break b;g=J[f+4>>2];f=J[f>>2];J[699344]=0;ca(2339,l|0,f|0,g|0);f=J[699344];J[699344]=0;if((f|0)!=1)break b;break a}fc=k+32|0;return}f=Z()|0;Se(a+80| +0);ba(f|0);B()}function oK(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=fc-112|0;fc=e;J[e+96>>2]=13;J[e+80>>2]=13;g=J[a+24>>2];a:{b:{c:{d:{if(J[k0(b,807124,e+96|0)>>2]!=7)break d;b=e+80|0;if(J[Ec(J[e+104>>2],808457,b,0)>>2]!=8)break d;h=vc(56);J[699344]=0;f=_(4,160)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[699344]=0;b=ga(3466,f|0,g|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;g=ha(3467,h|0,g|0,b|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[e+64>>2]=13; +J[e+48>>2]=13;J[e+32>>2]=13;rg(g,e- -64|0,0,0,0,0,0,0,0);e:{while(1){f:{f=0;g:{h:{i:switch(J[e+64>>2]-4|0){case 0:break i;case 8:break e;default:break h}rg(g,e+48|0,0,0,0,0,0,0,0);a=J[e+48>>2];if((a|0)==12)break e;if(a-3>>>0<4294967294)break g;J[e+16>>2]=13;rg(g,e+16|0,0,0,0,0,0,0,0);j:switch(J[e+16>>2]-10|0){case 0:break j;case 2:break e;default:break h}if(!Ic(J[e+24>>2],808835))break f}a=J[e+48>>2]}if((a|0)==4){b=e- -64|0;yc(b);a=e+48|0;Pe(a,b);yc(a);yc(e+32|0);continue}a=J[e+32>>2];b=e- -64|0; +yc(b);if((a|0)==4){a=e+32|0;Pe(a,b);yc(a);yc(e+48|0)}else{yc(e+48|0);yc(e+32|0);rg(g,e- -64|0,0,0,0,0,0,0,0)}continue}break}if(J[e+64>>2]!=4)break e;J[e+16>>2]=13;J[e>>2]=13;a=J[e+88>>2];f=0;k:{if(J[Ec(kc[J[J[a>>2]+76>>2]](a)|0,809102,e+16|0,0)>>2]!=7)break k;f=0;if(J[Ec(J[e+24>>2],809399,e,0)>>2]!=7)break k;f=J[Ke(J[e+8>>2],J[e+72>>2],c)>>2]==9}OF(d,J[e+72>>2]);yc(e+16|0);yc(e)}yc(e- -64|0);yc(e+48|0);yc(e+32|0);uc(Nk(g))}yc(e+96|0);yc(e+80|0);fc=e+112|0;return f|0}a=Z()|0;uc(f);break a}a=Z()|0}uc(h); +ba(a|0);B()}function gKa(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;if((c|0)>0|(c|0)>=0){e=J[a+48>>2];if(e>>>0>=b>>>0){J[a+48>>2]=e-b;J[a+36>>2]=J[a+36>>2]+b;e=c+J[a+60>>2]|0;d=b+J[a+56>>2]|0;e=d>>>0>>0?e+1|0:e;J[a+56>>2]=d;J[a+60>>2]=e;jc=c;return b|0}if(K[a+68|0]&4){J[a+48>>2]=0;J[a+36>>2]=e+J[a+36>>2];f=J[a+60>>2];c=J[a+56>>2];b=c+e|0;J[a+56>>2]=b;J[a+60>>2]=b>>>0>>0?f+1|0:f;jc=e?0:-1;return(e?e:-1)|0}if(e){J[a+48>>2]=0;J[a+36>>2]=J[a+32>>2];f=b;g=e;b=b-e|0;c=c-(f>>>0>> +0)|0}if((c|0)>0)f=1;else f=!!b&(c|0)>=0;if(f)while(1){i=J[a+12>>2];f=c+h|0;j=b+g|0;e=J[a+60>>2]+(j>>>0>>0?f+1|0:f)|0;f=j+J[a+56>>2]|0;e=f>>>0>>0?e+1|0:e;if((e|0)==(i|0)&f>>>0>M[a+8>>2]|e>>>0>i>>>0){Nc(d,4,2352113,0);J[a+48>>2]=0;J[a+36>>2]=J[a+32>>2];b=h+J[a+60>>2]|0;c=g+J[a+56>>2]|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;g=b;d=J[a+8>>2];e=d-c|0;h=J[a+12>>2];f=h-((c>>>0>d>>>0)+b|0)|0;i=kc[J[a+28>>2]](d,h,J[a>>2])|0;b=J[a+68>>2];if(i){J[a+56>>2]=d;J[a+60>>2]=h;b=b&-5}J[a+68>>2]=b|4; +a=(c|0)==(d|0)&(h|0)==(g|0);b=a?-1:e;jc=a?-1:f;return b|0}e=kc[J[a+24>>2]](b,c,J[a>>2])|0;f=jc;i=f;if((e&f)==-1){Nc(d,4,2352113,0);J[a+68>>2]=J[a+68>>2]|4;f=h+J[a+60>>2]|0;b=g+J[a+56>>2]|0;f=b>>>0>>0?f+1|0:f;J[a+56>>2]=b;J[a+60>>2]=f;a=!(h|g);b=a?-1:g;jc=a?-1:h;return b|0}h=h+i|0;g=e+g|0;h=g>>>0>>0?h+1|0:h;f=b;b=b-e|0;c=c-((e>>>0>f>>>0)+i|0)|0;if(!!b&(c|0)>=0|(c|0)>0)continue;break}b=h+J[a+60>>2]|0;c=g+J[a+56>>2]|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;jc=h;return g|0}fa(2352847,2350739, +469,2353212);B()}function trb(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;while(1){d=g<<4;if(!(J[d+228256>>2]<=(c|0)&J[d+228260>>2]>=(c|0))){g=g+1|0;continue}break}d=g<<4;e=K[d+228265|0];i=e>>>0<=1?1:e;e=c;c=c>>31;m=((e^c)-c|0)-L[d+228266>>1]|0;k=((b<<9)+a|0)+65560|0;e=K[d+228264|0];c=1;while(1){b=c+k|0;f=K[b|0];h=f<<2;d=L[h+2652240>>1];j=b;b=f>>>0<47;f=e&1;a:{b:{if((b|0)!=(f|0)){b=L[a+4>>1]-d|0;I[a+4>>1]=b;if(b<<16>>16>=0){if(d>>>0>(b&65535)>>>0){b=d;d=h+2652242|0;break b}J[a>> +2]=d+J[a>>2];d=h+2652242|0;break b}J[a>>2]=d+J[a>>2];break a}b=L[a+4>>1]-d|0;c:{if(d>>>0<=(b&65535)>>>0){b=d;break c}J[a>>2]=d+J[a>>2]}d=h+2652243|0}H[j|0]=K[d|0];while(1){b=b<<1;I[a+4>>1]=b;J[a>>2]=J[a>>2]<<1;d=K[a+6|0]-1|0;H[a+6|0]=d;if(!(d&255)){km(a);b=L[a+4>>1]}if(b<<16>>16>=0)continue;break}}b=c<<1;c=c&256?f|b&254|256:b|f;e=(e&254)>>>1|0;l=l+1|0;if((i|0)!=(l|0))continue;break}if((g|0)!=1){b=K[(g<<4)+228268|0];i=b>>>0<=1?1:b;g=m<<32-b;b=0;while(1){e=c+k|0;f=K[e|0];h=f<<2;d=L[h+2652240>>1];j= +e;e=f>>>0>46;f=g>>>31|0;d:{e:{if((e|0)==(f|0)){e=L[a+4>>1]-d|0;I[a+4>>1]=e;if(e<<16>>16>=0){if(d>>>0>(e&65535)>>>0){e=d;d=h+2652242|0;break e}J[a>>2]=d+J[a>>2];d=h+2652242|0;break e}J[a>>2]=d+J[a>>2];break d}e=L[a+4>>1]-d|0;f:{if(d>>>0<=(e&65535)>>>0){e=d;break f}J[a>>2]=d+J[a>>2]}d=h+2652243|0}H[j|0]=K[d|0];while(1){e=e<<1;I[a+4>>1]=e;J[a>>2]=J[a>>2]<<1;d=K[a+6|0]-1|0;H[a+6|0]=d;if(!(d&255)){km(a);e=L[a+4>>1]}if(e<<16>>16>=0)continue;break}}d=c<<1;c=c&256?f|d&254|256:d|f;g=g<<1;b=b+1|0;if((i|0)!= +(b|0))continue;break}}}function b4(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0),l=0,m=0,n=Q(0),o=0,p=Q(0);g=fc-112|0;fc=g;e=Yn(b,0);d=J[e>>2];i=(d|0)>0?d:0;J[g+108>>2]=i;a:{b:{c:{h=a+304|0;j=a+316|0;d=J[J[a+328>>2]+216>>2]?h:j;c=J[d+4>>2];if(!c)break c;d=d+4|0;f=d;while(1){o=J[c+16>>2]<(i|0);f=o?f:c;c=J[(o?c+4|0:c)>>2];if(c)continue;break}if(!K[f+92|0]|((d|0)==(f|0)|J[f+16>>2]>(i|0)))break c;d=f+20|0;break b}H[g+3|0]=1;H[g+2|0]=0;d=g+4|0;Eu(d,a,g+108|0,g+3|0,0,g+2|0);J[699344]=0;da(2924,h|0,d| +0);d=J[699344];J[699344]=0;if((d|0)==1)break a;Cj(g+80|0);d=0;f=J[J[a+328>>2]+216>>2]?h:j;c=J[f+4>>2];if(!c)break b;h=f+4|0;f=h;while(1){j=J[c+16>>2]<(i|0);f=j?f:c;c=J[(j?c+4|0:c)>>2];if(c)continue;break}if((f|0)==(h|0))break b;d=J[f+16>>2]<=(i|0)?f+20|0:0}d:{e:{f:{c=J[d+4>>2];switch(c-1|0){case 1:break d;case 0:break e;default:break f}}c=0}J[e+60>>2]=c;c=J[d+44>>2];J[e+28>>2]=J[d+40>>2];J[e+32>>2]=c;c=J[d+52>>2];J[e+36>>2]=J[d+48>>2];J[e+40>>2]=c;c=J[d+60>>2];J[e+44>>2]=J[d+56>>2];J[e+48>>2]=c;c= +d- -64|0;f=J[c+4>>2];J[e+52>>2]=J[c>>2];J[e+56>>2]=f;H[e+64|0]=K[d+72|0];J[e+92>>2]=J[d+100>>2];c=J[d+96>>2];J[e+84>>2]=J[d+92>>2];J[e+88>>2]=c;c=J[d+88>>2];J[e+76>>2]=J[d+84>>2];J[e+80>>2]=c;c=J[d+80>>2];J[e+68>>2]=J[d+76>>2];J[e+72>>2]=c;k=N[b+12>>2];p=Q(k+Q(0));l=+p;n=N[b+8>>2];m=+Q(n+Q(0));N[e+4>>2]=l*O[b+40>>3]+(m*O[b+24>>3]+O[b+56>>3])-+n;N[e+8>>2]=l*O[b+48>>3]+(m*O[b+32>>3]+O[b- -64>>3])-+k;l=O[a+144>>3];m=O[a+8>>3];k=N[d+16>>2];N[b+20>>2]=p;N[b+16>>2]=n+Q(Q(l+m*+k)+Q(0))}fc=g+112|0;return}a= +Z()|0;Cj(g+80|0);ba(a|0);B()}function Pha(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;var h=0,i=0,j=0,k=0;a=fc-144|0;fc=a;J[a+136>>2]=c;J[a+140>>2]=b;J[a+20>>2]=6891;j=a+20|0;i=Bg(a+24|0,a+32|0,j);J[699344]=0;b=a+16|0;h=J[e+28>>2];J[b>>2]=h;J[h+4>>2]=J[h+4>>2]+1;h=J[699344];J[699344]=0;a:{b:{c:{d:{if((h|0)!=1){J[699344]=0;h=_(6826,b|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break b;H[a+15|0]=0;e=J[e+4>>2];J[699344]=0;b=Fa(6892,a+140|0,c|0,d|0,b|0,e|0,f|0,a+15|0,h|0,i|0,j|0,a+132|0)|0; +c=J[699344];J[699344]=0;if((c|0)==1)break b;if(!b)break c;b=fc-16|0;fc=b;e:{if(K[g+11|0]>>>7|0){c=J[g>>2];H[b+15|0]=0;H[c|0]=K[b+15|0];J[g+4>>2]=0;break e}H[b+14|0]=0;H[g|0]=K[b+14|0];H[g+11|0]=K[g+11|0]&128;H[g+11|0]=K[g+11|0]&127}fc=b+16|0;if(!K[a+15|0])break d;J[699344]=0;b=aa(6869,h|0,45)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;da(6897,g|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break b}c=Z()|0;break a}J[699344]=0;b=aa(6869,h|0,48)|0;c=J[699344];J[699344]=0;if((c|0)== +1)break b;c=J[i>>2];d=J[a+20>>2];e=d-1|0;b=b&255;while(1){if(!((b|0)!=K[c|0]|c>>>0>=e>>>0)){c=c+1|0;continue}break}J[699344]=0;ga(6902,g|0,c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}J[699344]=0;b=aa(6744,a+140|0,a+136|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)J[f>>2]=J[f>>2]|2;d=J[a+140>>2];b=J[a+16>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)kc[J[J[b>>2]+8>>2]](b);Ie(i);fc=a+144|0;return d|0}c=Z()|0;a=J[a+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>> +2]+8>>2]](a)}Ie(i);ba(c|0);B()}function pvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){m=e-2|0;o=(e|0)==1;while(1){h=f;I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];f=h+8|0;g=g+8|0;a:{if(k>>>0>m>>>0)break a;i=k?(k|0)==(m|0)?d:b:c;n=!k&o;if(n){if(i>>>0<2)break a;a=i-1|0;l=a&1;if((i|0)!=2){j=a&-2;a=0;while(1){I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];I[g+8>>1]=L[h>>1];I[g+10>> +1]=L[h+2>>1];I[g+12>>1]=L[h+4>>1];I[g+14>>1]=L[h+6>>1];g=g+16|0;a=a+2|0;if((j|0)!=(a|0))continue;break}}if(!l)break a;I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];g=g+8|0;break a}j=i+1>>>1|0;b:{if(i>>>0<3)break b;a=(j>>>0<=2?2:j)-1|0;p=a&1;if(i>>>0>=5){l=a&-2;a=0;while(1){I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];I[g+8>>1]=L[h>>1];I[g+10>>1]=L[h+2>>1];I[g+12>>1]=L[h+4>>1];I[g+14>>1]=L[h+6>>1];g=g+16|0;a=a+2|0;if((l|0)!=(a|0))continue; +break}}if(!p)break b;I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];g=g+8|0}if(i>>>0<=j>>>0)break a;h=n?0:f;if(i-j&1){I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];g=g+8|0;a=j+1|0}else a=j;if((0-i^j)==-1)break a;while(1){I[g>>1]=L[h>>1];I[g+2>>1]=L[h+2>>1];I[g+4>>1]=L[h+4>>1];I[g+6>>1]=L[h+6>>1];I[g+8>>1]=L[h>>1];I[g+10>>1]=L[h+2>>1];I[g+12>>1]=L[h+4>>1];I[g+14>>1]=L[h+6>>1];g=g+16|0;a=a+2|0;if((i|0)!=(a|0))continue;break}}k=k+1|0;if((k|0)!= +(e|0))continue;break}}return 0}function c7a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=J[a+464>>2];if(J[a+280>>2]){d=J[e+52>>2];if(!d){if(!(kc[J[J[a+460>>2]+8>>2]](a)|0)){d=J[a>>2];J[d+20>>2]=25;kc[J[d>>2]](a)}if(J[a+336>>2]>0)while(1){d=f<<2;g=J[(d+a|0)+340>>2];a:{b:{if(J[a+224>>2]){if(J[a+408>>2])break b;if(J[a+416>>2])break a}c=J[(e+(J[g+20>>2]<<2)|0)+56>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+ +60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+ +22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;d=e+d|0;J[d+36>>2]=0;J[d+20>>2]=0;if(!J[a+224>>2]){if(J[a+432>>2])break b;break a}if(!J[a+408>>2])break a}Ac(J[(e+(J[g+24>>2]<<2)|0)+120>>2],0,256)}f=f+1|0;if((f|0)>2])continue;break}J[e+16>>2]=-16;J[e+8>>2]=0;J[e+12>>2]=0;d=J[a+280>>2]}J[e+52>>2]=d-1}if(J[a+364>>2]>0){g=e+184|0;e=1<>2];f=0;while(1){if(Ud(a,g)){d=J[(f<<2)+b>>2];I[d>>1]=e|L[d>>1]}f=f+1|0;if((f|0)>2])continue;break}}return 1}function uvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){o=e-2|0;p=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];f=a+4|0;g=g+4|0;a:{if(k>>>0>o>>>0)break a;j=k?(k|0)==(o|0)?d:b:c;l=!k&p;if(l){if(j>>>0<2)break a;h=j-1|0;i=h&3;if(j-2>>>0>=3){j=h&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>> +1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;m=i-1|0;n=m&3;if(i-2>>>0>=3){m=m&-4;i=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;if(!n)break b;while(1){I[g>> +1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;a=l?0:f;n=j+(h^-1)|0;i=0;l=j-h&3;if(l)while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];h=h+1|0;g=g+4|0;i=i+1|0;if((l|0)!=(i|0))continue;break}if(n>>>0<3)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue; +break}}return 0}function rQa(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){Vd(a,0);while(1){d=dB(a);a:{b:{c=J[a+348>>2];if((c|0)!=1229278788){if((c|0)!=1229472850)break b;LY(a,b,d);break a}IY(a,d);break a}c:{if(sw(a,c)){if((c|0)==1229209940){if(!(d|K[a+201|0]&32))break c;cJ(a,61139);break c}mw(a,b,d);if((c|0)!=1347179589)break a;J[a+200>>2]=J[a+200>>2]|2;break a}d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{if((c|0)<=1883455819){if((c|0)<=1732332864){if((c|0)<=1649100611){if((c|0)==1229209940)break n;if((c|0)!=1347179589)break c; +JY(a,b,d);break a}if((c|0)==1649100612)break m;if((c|0)!=1665684045)break c;pY(a,b,d);break a}if((c|0)<=1766015823){if((c|0)==1732332865)break l;if((c|0)!=1749635924)break c;bY(a,b,d);break a}if((c|0)==1766015824)break g;if((c|0)==1767135348)break d;if((c|0)!=1866876531)break c;ZX(a,b,d);break a}if((c|0)<=1934772033){if((c|0)<=1933723987){if((c|0)==1883455820)break k;if((c|0)!=1883789683)break c;_X(a,b,d);break a}if((c|0)==1933723988)break i;if((c|0)==1933787468)break j;if((c|0)!=1934642260)break c; +eY(a,b,d);break a}if((c|0)<=1950960964){if((c|0)==1934772034)break h;if((c|0)!=1950701684)break c;SX(a,b,d);break a}if((c|0)==1950960965)break f;if((c|0)==1951551059)break e;if((c|0)!=2052348020)break c;RX(a,b,d);break a}if(d|K[a+201|0]&32)cJ(a,61139);Vd(a,d);break a}cY(a,b,d);break a}zY(a,b,d);break a}WX(a,b,d);break a}VX(a,b,d);break a}vY(a,b,d);break a}jY(a,b,d);break a}gY(a,b,d);break a}TX(a,b,d);break a}dY(a,b,d);break a}NX(a,b,d);break a}mw(a,b,d)}if(!(K[a+200|0]&16))continue;break}}}function Iha(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;var h=0,i=0,j=0,k=0;a=fc-448|0;fc=a;J[a+440>>2]=c;J[a+444>>2]=b;J[a+20>>2]=6891;j=a+20|0;i=Bg(a+24|0,a+32|0,j);J[699344]=0;b=a+16|0;h=J[e+28>>2];J[b>>2]=h;J[h+4>>2]=J[h+4>>2]+1;h=J[699344];J[699344]=0;a:{b:{c:{d:{if((h|0)!=1){J[699344]=0;h=_(6750,b|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break b;H[a+15|0]=0;e=J[e+4>>2];J[699344]=0;b=Fa(6903,a+444|0,c|0,d|0,b|0,e|0,f|0,a+15|0,h|0,i|0,j|0,a+432|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b; +if(!b)break c;b=fc-16|0;fc=b;e:{if(K[g+11|0]>>>7|0){c=J[g>>2];J[b+12>>2]=0;J[c>>2]=J[b+12>>2];J[g+4>>2]=0;break e}J[b+8>>2]=0;J[g>>2]=J[b+8>>2];H[g+11|0]=K[g+11|0]&128;H[g+11|0]=K[g+11|0]&127}fc=b+16|0;if(!K[a+15|0])break d;J[699344]=0;b=aa(6881,h|0,45)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;da(3417,g|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break b}c=Z()|0;break a}J[699344]=0;b=aa(6881,h|0,48)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;c=J[i>>2];d=J[a+20>>2];e=d-4| +0;while(1){if(!((b|0)!=J[c>>2]|c>>>0>=e>>>0)){c=c+4|0;continue}break}J[699344]=0;ga(6909,g|0,c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}J[699344]=0;b=aa(6858,a+444|0,a+440|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)J[f>>2]=J[f>>2]|2;d=J[a+444>>2];b=J[a+16>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)kc[J[J[b>>2]+8>>2]](b);Ie(i);fc=a+448|0;return d|0}c=Z()|0;a=J[a+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a)}Ie(i);ba(c|0);B()}function Rna(a){a= +a|0;var b=0,c=0;J[a+8>>2]=0;J[a+12>>2]=0;H[a+96|0]=0;J[a+92>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+120>>2]=340552;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=2444156;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;H[a+87|0]=0;H[a+88|0]=0;H[a+89|0]=0;H[a+90|0]=0;H[a+105|0]=0;H[a+106|0]=0;H[a+107|0]=0;H[a+108|0]=0;H[a+109|0]=0;H[a+110|0]=0;H[a+111| +0]=0;H[a+112|0]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;b=a+124|0;J[b>>2]=0;J[b+4>>2]=0;J[699344]=0;ga(2227,a+136|0,2441764,5)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{if((c|0)!=1){if(H[a+135|0]>=0)break d;J[a+128>>2]=0;b=J[a+124>>2];break c}b=Z()|0;if(H[a+147|0]<0)uc(J[a+136>>2]);if(H[a+135|0]>=0)break b;uc(J[a+124>>2]);break b}H[a+135|0]=0}J[b>>2]=0;I[a+168>>1]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+192>> +2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0;J[a+224>>2]=0;J[a+228>>2]=0;H[a+231|0]=0;H[a+232|0]=0;H[a+233|0]=0;H[a+234|0]=0;H[a+235|0]=0;H[a+236|0]=0;H[a+237|0]=0;H[a+238|0]=0;J[699344]=0;b=a+240|0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2463820;b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;yk(a+120|0)}c=J[a+80>>2];if(c)Gc(c);je(a+68|0);je(a+56|0);ba(b|0);B()}J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0;return a|0}function yQ(a,b, +c){var d=0,e=0,f=0;d=fc-16|0;fc=d;a:{b:switch(b-9|0){case 0:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];break a;case 1:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 2:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;break a;case 4:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 5:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;break a;case 3:b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;break a;case 6:b=J[c>>2];J[c>>2]=b+4;b=I[b>>1]; +J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 7:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=L[b>>1];J[a+4>>2]=0;break a;case 8:b=J[c>>2];J[c>>2]=b+4;b=H[b|0];J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 9:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=K[b|0];J[a+4>>2]=0;break a;case 10:b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;break a;case 11:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;break a;case 12:b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;break a;case 13:b=J[c>>2]+7&-8;J[c>>2]=b+8; +c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;break a;case 14:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;break a;case 15:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;break a;case 16:b=J[c>>2]+7&-8;J[c>>2]=b+8;sm(d,O[b>>3]);b=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=b;b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;break a;case 17:break b;default:break a}b=J[c>>2]+7&-8;J[c>>2]=b+16;c=J[b>>2];e=J[b+4>>2];f=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=f;J[a>>2]=c;J[a+4>>2]=e}fc=d+16|0}function wUa(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,u=0,v=0;k=fc-32|0;j=a;while(1){a:{d=J[(e<<2)+b>>2]+c|0;g=K[d+6|0];f=j;l=K[d+5|0];m=K[d+3|0];j=l+m|0;n=K[d+2|0];h=n+g|0;o=K[d+8|0];p=K[d|0];i=o+p|0;q=j+(h+i|0)|0;r=K[d+7|0];s=K[d+1|0];t=r+s|0;u=K[d+4|0];v=t+u|0;J[f>>2]=(q+v<<1)-2304;d=p-o|0;g=n-g|0;l=m-l|0;J[f+12>>2]=P(d-(g+l|0)|0,10033)+2048>>12;J[f+24>>2]=P(q-(v<<1)|0,5793)+2048>>12;n=P(j-i|0,2012);i=P(i-h|0,10887)+2048|0;m=P(t-(u<<1)|0,5793);J[f+16>>2]= +(n+i|0)-m>>12;J[f+8>>2]=m+(i+P(h-j|0,8875)|0)>>12;i=P(g-l|0,11409);h=P(d+l|0,3962);j=P(s-r|0,10033);J[f+28>>2]=(i+(h-j|0)|0)+2048>>12;d=P(d+g|0,7447);J[f+20>>2]=(d-(j+i|0)|0)+2048>>12;J[f+4>>2]=(h+(d+j|0)|0)+2048>>12;g=e-7|0;e=e+1|0;j=k;d=7;b:switch(g|0){case 0:continue;case 1:break a;default:break b}j=f+32|0;continue}break}while(1){e=J[a>>2];g=J[j>>2];b=e-g|0;k=J[a+64>>2];h=J[a+192>>2];c=k-h|0;i=J[a+96>>2];l=J[a+160>>2];f=i-l|0;J[a+96>>2]=P(b-(c+f|0)|0,15855)+16384>>15;k=h+k|0;e=e+g|0;g=i+l|0;h= +(k+e|0)+g|0;i=J[a+128>>2];l=J[a+224>>2];m=J[a+32>>2];n=l+m|0;o=i+n|0;J[a+192>>2]=P(h-(o<<1)|0,9154)+16384>>15;J[a>>2]=P(h+o|0,12945)+16384>>15;o=P(g-e|0,3179);e=P(e-k|0,17203)+16384|0;h=P(n-(i<<1)|0,9154);J[a+128>>2]=(o+e|0)-h>>15;J[a+64>>2]=h+(e+P(k-g|0,14024)|0)>>15;e=P(b+f|0,6262);k=P(m-l|0,15855);f=P(c-f|0,18029);J[a+224>>2]=((e-k|0)+f|0)+16384>>15;b=P(b+c|0,11768);J[a+160>>2]=(b-(f+k|0)|0)+16384>>15;J[a+32>>2]=(e+(b+k|0)|0)+16384>>15;b=d;d=d-1|0;j=j+4|0;a=a+4|0;if(b)continue;break}}function Btb(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{g=P(J[b+44>>2],30)+11|0;if(g>>>0<=M[a+424>>2]){e=J[a+428>>2]+8|0;break b}e=kc[J[a+152>>2]](g)|0;if(e)break b;d=1;Jc(a,1,0,0);break a}d=L[b+32>>1];d=d<<8|d>>>8;H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=K[b+34|0];d=J[b+36>>2];d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);H[e+3|0]=d;H[e+4|0]=d>>>8;H[e+5|0]=d>>>16;H[e+6|0]=d>>>24;d=J[b+40>>2];d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);H[e+7|0]=d;H[e+8|0]=d>>>8;H[e+9|0]=d>>>16;H[e+10|0]=d>>>24;if(J[b+44>>2]){d=e+11|0; +f=J[b+48>>2];while(1){c=L[f>>1];c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=K[f+2|0];H[d+3|0]=K[f+3|0];H[d+4|0]=K[f+4|0];c=J[f+8>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+5|0]=c;H[d+6|0]=c>>>8;H[d+7|0]=c>>>16;H[d+8|0]=c>>>24;c=J[f+12>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+9|0]=c;H[d+10|0]=c>>>8;H[d+11|0]=c>>>16;H[d+12|0]=c>>>24;H[d+13|0]=K[f+16|0];c=J[f+20>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+14|0]=c;H[d+15|0]=c>>>8;H[d+16|0]=c>>>16;H[d+17|0]=c>>>24;c=J[f+24>>2]; +c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+18|0]=c;H[d+19|0]=c>>>8;H[d+20|0]=c>>>16;H[d+21|0]=c>>>24;c=J[f+28>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+22|0]=c;H[d+23|0]=c>>>8;H[d+24|0]=c>>>16;H[d+25|0]=c>>>24;c=J[f+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+26|0]=c;H[d+27|0]=c>>>8;H[d+28|0]=c>>>16;H[d+29|0]=c>>>24;d=d+30|0;f=f+36|0;h=h+1|0;if(h>>>0>2])continue;break}}d=Ce(a,J[b>>2],g,e);if(M[a+424>>2]>=g>>>0)break a;kc[J[a+156>>2]](e,g);return d|0}return d|0}function awb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(e){n=e-2|0;while(1){a=K[f|0];H[g|0]=a;g=g+1|0;f=f+1|0;a:{if(l>>>0>n>>>0)break a;j=l?(l|0)==(n|0)?d:b:c;if(!((e|0)!=1|l)){if(j>>>0<2)break a;h=j-1|0;i=h&7;if(j-2>>>0>=7){j=h&-8;h=0;while(1){H[g+7|0]=a;H[g+6|0]=a;H[g+5|0]=a;H[g+4|0]=a;H[g+3|0]=a;H[g+2|0]=a;H[g+1|0]=a;H[g|0]=a;g=g+8|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){H[g|0]=a;g=g+1|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}if((a| 0)==K[f|0]){if(j>>>0<2)break a;h=j-1|0;i=h&7;if(j-2>>>0>=7){j=h&-8;h=0;while(1){H[g+7|0]=a;H[g+6|0]=a;H[g+5|0]=a;H[g+4|0]=a;H[g+3|0]=a;H[g+2|0]=a;H[g+1|0]=a;H[g|0]=a;g=g+8|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){H[g|0]=a;g=g+1|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;k=i-1|0;m=k&7;if(i-2>>>0>=7){k=k&-8;i=0;while(1){H[g+7|0]=a;H[g+6|0]=a;H[g+5|0]=a;H[g+4|0]=a;H[g+3|0]=a;H[g+2|0]=a;H[g+1|0]=a;H[g|0]=a;g=g+8|0;i=i+ -8|0;if((k|0)!=(i|0))continue;break}}i=0;if(!m)break b;while(1){H[g|0]=a;g=g+1|0;i=i+1|0;if((m|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;m=j+(h^-1)|0;a=K[f|0];i=0;k=j-h&7;if(k)while(1){H[g|0]=a;h=h+1|0;g=g+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}if(m>>>0<7)break a;while(1){H[g+7|0]=a;H[g+6|0]=a;H[g+5|0]=a;H[g+4|0]=a;H[g+3|0]=a;H[g+2|0]=a;H[g+1|0]=a;H[g|0]=a;g=g+8|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function aV(a,b){var c=0,d=0,e=0,f= +8|0;if((k|0)!=(i|0))continue;break}}i=0;if(!m)break b;while(1){H[g|0]=a;g=g+1|0;i=i+1|0;if((m|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;m=j+(h^-1)|0;a=K[f|0];i=0;k=j-h&7;if(k)while(1){H[g|0]=a;h=h+1|0;g=g+1|0;i=i+1|0;if((k|0)!=(i|0))continue;break}if(m>>>0<7)break a;while(1){H[g+7|0]=a;H[g+6|0]=a;H[g+5|0]=a;H[g+4|0]=a;H[g+3|0]=a;H[g+2|0]=a;H[g+1|0]=a;H[g|0]=a;g=g+8|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function EX(a,b){var c=0,d=0,e=0,f= 0,g=0,h=0;a:{c=K[a+9|0];if(c>>>0<8)break a;d=K[a+8|0];if(d&2)break a;e=J[a>>2];b:{c:switch(d|0){case 0:if((c|0)==8){if(!e)break b;b=(b+e|0)-1|0;c=b+(e<<1)|0;if((e|0)!=1){g=e&-2;d=0;while(1){f=K[b|0];H[c-1|0]=f;H[c|0]=f;H[c-2|0]=K[b|0];f=b-1|0;h=K[f|0];H[c-4|0]=h;H[c-3|0]=h;H[c-5|0]=K[f|0];c=c-6|0;b=b-2|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(e&1))break b;d=K[b|0];H[c-1|0]=d;H[c|0]=d;H[c-2|0]=K[b|0];break b}if(!e)break b;b=((e<<1)+b|0)-1|0;c=b+(e<<2)|0;d=0;while(1){H[c|0]=K[b|0];g=b-1|0;H[c- 1|0]=K[g|0];H[c-2|0]=K[b|0];H[c-3|0]=K[g|0];H[c-4|0]=K[b|0];H[c-5|0]=K[g|0];c=c-6|0;b=b-2|0;d=d+1|0;if((d|0)!=(e|0))continue;break}break b;case 4:break c;default:break b}if((c|0)==8){if(!e)break b;c=e<<1;b=(c+b|0)-1|0;c=b+c|0;if((e|0)!=1){g=e&-2;d=0;while(1){H[c|0]=K[b|0];f=b-1|0;h=K[f|0];H[c-2|0]=h;H[c-1|0]=h;H[c-3|0]=K[f|0];H[c-4|0]=K[b-2|0];f=b-3|0;h=K[f|0];H[c-6|0]=h;H[c-5|0]=h;H[c-7|0]=K[f|0];c=c-8|0;b=b-4|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(e&1))break b;H[c|0]=K[b|0];b=b-1|0;d=K[b| -0];H[c-2|0]=d;H[c-1|0]=d;H[c-3|0]=K[b|0];break b}if(!e)break b;c=e<<2;b=(c+b|0)-1|0;c=b+c|0;d=0;while(1){H[c|0]=K[b|0];H[c-1|0]=K[b-1|0];g=b-2|0;H[c-2|0]=K[g|0];f=b-3|0;H[c-3|0]=K[f|0];H[c-4|0]=K[g|0];H[c-5|0]=K[f|0];H[c-6|0]=K[g|0];H[c-7|0]=K[f|0];c=c-8|0;b=b-4|0;d=d+1|0;if((d|0)!=(e|0))continue;break}}b=K[a+10|0]+2|0;H[a+10|0]=b;H[a+8|0]=K[a+8|0]|2;b=P(b,K[a+9|0]);H[a+11|0]=b;b=b&255;d:{if(b>>>0>=8){b=P(b>>>3|0,e);break d}b=P(b,e)+7>>>3|0}J[a+4>>2]=b}}function jl(a,b,c){var d=0,e=0,f=0,g=0,h=0, -i=0;if(!b)return 0;g=J[b+4>>2];if((g|0)==18)return 0;e=b;a:{b:{if(!c)break b;d=9668;c:{d:{if((c|0)!=9668){e=c;while(1){f=K[e|0];if((f|0)!=K[d|0])break d;d=d+1|0;e=e+1|0;if(f)continue;break}}if(!a){if((g|0)==1){a=gc[J[659447]](24)|0;if(a)break c;Ew(14875);return 0}d=0;a=J[b+32>>2];if(!a)break a}d=J[a+52>>2];if(d)break a;return _$(a)}e=b;if(!c)break b;f=e;while(1){d=0;e:{f:switch(J[f+4>>2]-1|0){case 0:break f;case 4:case 5:case 16:break a;default:break e}d=J[f+48>>2];if(d)while(1){g:{e=J[d+12>>2];if(!e| +0];H[c-2|0]=d;H[c-1|0]=d;H[c-3|0]=K[b|0];break b}if(!e)break b;c=e<<2;b=(c+b|0)-1|0;c=b+c|0;d=0;while(1){H[c|0]=K[b|0];H[c-1|0]=K[b-1|0];g=b-2|0;H[c-2|0]=K[g|0];f=b-3|0;H[c-3|0]=K[f|0];H[c-4|0]=K[g|0];H[c-5|0]=K[f|0];H[c-6|0]=K[g|0];H[c-7|0]=K[f|0];c=c-8|0;b=b-4|0;d=d+1|0;if((d|0)!=(e|0))continue;break}}b=K[a+10|0]+2|0;H[a+10|0]=b;H[a+8|0]=K[a+8|0]|2;b=P(b,K[a+9|0]);H[a+11|0]=b;b=b&255;d:{if(b>>>0>=8){b=P(b>>>3|0,e);break d}b=P(b,e)+7>>>3|0}J[a+4>>2]=b}}function Il(a,b,c){var d=0,e=0,f=0,g=0,h=0, +i=0;if(!b)return 0;g=J[b+4>>2];if((g|0)==18)return 0;e=b;a:{b:{if(!c)break b;d=9684;c:{d:{if((c|0)!=9684){e=c;while(1){f=K[e|0];if((f|0)!=K[d|0])break d;d=d+1|0;e=e+1|0;if(f)continue;break}}if(!a){if((g|0)==1){a=kc[J[663195]](24)|0;if(a)break c;tx(14891);return 0}d=0;a=J[b+32>>2];if(!a)break a}d=J[a+52>>2];if(d)break a;return Z1(a)}e=b;if(!c)break b;f=e;while(1){d=0;e:{f:switch(J[f+4>>2]-1|0){case 0:break f;case 4:case 5:case 16:break a;default:break e}d=J[f+48>>2];if(d)while(1){g:{e=J[d+12>>2];if(!e| !J[d+8>>2])break g;a=c;if((e|0)==(a|0))break a;while(1){g=K[e|0];if((g|0)!=K[a|0])break g;a=a+1|0;e=e+1|0;if(g)continue;break}break a}d=J[d>>2];if(d)continue;break}if((b|0)==(f|0))break e;d=J[f+36>>2];if(!d)break e;e=J[d+12>>2];if(!e|!J[d+8>>2])break e;a=c;if((e|0)==(a|0))break a;while(1){g=K[e|0];if((g|0)!=K[a|0])break e;a=a+1|0;e=e+1|0;if(g)continue;break}break a}f=J[f+20>>2];if(f)continue;break}return 0}J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=18;h=a,i= -$e(14838),J[h+8>>2]=i;h=a,i=$e(9668),J[h+12>>2]=i;J[a>>2]=J[b+48>>2];J[b+48>>2]=a;d=a;break a}while(1){d=0;h:{i:switch(J[e+4>>2]-1|0){case 0:break i;case 4:case 5:case 16:break a;default:break h}d=J[e+48>>2];if(d)while(1){if(!(J[d+8>>2]?J[d+12>>2]:1))break a;d=J[d>>2];if(d)continue;break}if((b|0)==(e|0))break h;d=J[e+36>>2];if(!d|J[d+12>>2])break h;if(J[d+8>>2])break a}e=J[e+20>>2];if(e)continue;break}return 0}return d}function Zia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;J[695492]= -0;aa(6526,d+24|0,a|0)|0;e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((e|0)!=1){if(!K[d+24|0])break g;if(b){e=d+20|0;J[e>>2]=b;g=d+16|0;J[g>>2]=0;b=d+12|0;c=J[J[a>>2]-12>>2];J[695492]=0;c=J[(a+c|0)+24>>2];f=J[695492];J[695492]=0;j:{if((f|0)!=1){J[b>>2]=c;break j}ea(0)|0;yc();B()}k:{while(1){l:{J[695492]=0;c=aa(6531,e|0,g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;if(c)break k;J[695492]=0;c=$(6532,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break l;J[695492]=0;aa(6533,b|0,c|0)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break l;if(!J[b>>2])break k;J[695492]=0;$(6534,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break l;h=h+1|0;continue}break}break i}if(h)break g;b=J[J[a>>2]-12>>2];J[695492]=0;da(6528,a+b|0,4);b=J[695492];J[695492]=0;if((b|0)==1)break i;break g}b=J[J[a>>2]-12>>2];J[695492]=0;da(6528,a+b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break h;break g}b=ea(0)|0;break d}na(ea(0)|0)|0;b=J[J[a>>2]-12>>2];J[695492]=0;_(6535,a+b|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;ka(4893); -b=J[695492];J[695492]=0;if((b|0)!=1)break g}b=ea(0)|0;break e}By(d+24|0);break c}b=ea(0)|0;J[695492]=0;ka(4893);e=J[695492];J[695492]=0;if((e|0)==1)break a}By(d+24|0)}na(b|0)|0;b=J[J[a>>2]-12>>2];J[695492]=0;_(6529,a+b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;ta()}bc=d+32|0;return a|0}a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break a;ba(a|0);B()}ea(0)|0;yc();B()}function xyb(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;J[a+28>>2]=0;d=-1;a:{b:{c:{if(Lg(b, -a+20|0))break c;c=J[b+8>>2];if(c&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;d=-1;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break d}c=jd(b,1);if((c|0)==-1)break c}H[a+24|0]=c;c=zc(P(J[a+20>>2],c<<2&1020));J[a+28>>2]=c;if(!c)break c;c=zc(K[a+24|0]);J[a+32>>2]=c;if(!c)break c;c=0;if(K[a+24|0])while(1){c=J[b+8>>2];if(c&7)break a;f=J[a+32>>2];d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c| -0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break e}d=-1;c=jd(b,1);if((c|0)==-1)break c}if(f)H[e+f|0]=c;c=K[a+24|0];e=e+1|0;if(c>>>0>e>>>0)continue;break}d=0;e=J[a+20>>2];if(!e)break c;while(1){f=0;f:{if(!(c&255)){c=0;break f}while(1){c=K[J[a+32>>2]+f|0];d=c&127;j=d+1|0;i=d+8|0;k=i>>>3|0;l=c<<24>>24;g=0;e=0;while(1){c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;c=J[b+28>>2];J[b+28>>2]=c-1;g:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+ -24>>2]=c+1;c=K[c|0];break g}d=-1;c=jd(b,1);if((c|0)==-1)break c}e=e<<8|c;g=g+1|0;if((k|0)!=(g|0))continue;break}d=(-1<>>c-1&1?0-e|0:e}c=K[a+24|0];J[(J[a+28>>2]+(P(h,c)<<2)|0)+(f<<2)>>2]=d;f=f+1|0;if(f>>>0>>0)continue;break}e=J[a+20>>2]}d=0;h=h+1|0;if(h>>>0>>0)continue;break}}return d|0}J[b+8>>2]=c|4}return-1}function JSa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+4>>2];gc[J[J[b>>2]+20>>2]](b);a:switch(J[a+40>>2]){case 0:I[a+348>> -1]=0;d=a+92|0;e=J[a+56>>2];while(1){H[c+d|0]=c;b=c|1;H[b+d|0]=b;b=c|2;H[b+d|0]=b;b=c|3;H[b+d|0]=b;b=c|4;H[b+d|0]=b;b=c|5;H[b+d|0]=b;b=c|6;H[b+d|0]=b;b=c|7;H[b+d|0]=b;c=c+8|0;if((c|0)!=256)continue;break}j=a+60|0;c=0;b=0;while(1){f=c+d|0;g=K[f|0];h=b&255;i=g+(K[h+j|0]+(i&255)|0)|0;b=d+(i&255)|0;H[f|0]=K[b|0];H[b|0]=g;b=(h+1|0)%(e|0)|0;c=c+1|0;if((c|0)!=256)continue;break}J[a+352>>2]=-1;return;case 1:c=a+92|0;b=K[a+60|0]|K[a+61|0]<<8|(K[a+62|0]<<16|K[a+63|0]<<24);J[c>>2]=b<<24|(b&65280)<<8|(b>>>8&65280| -b>>>24);b=K[a+64|0]|K[a+65|0]<<8|(K[a+66|0]<<16|K[a+67|0]<<24);J[c+4>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[a+68|0]|K[a+69|0]<<8|(K[a+70|0]<<16|K[a+71|0]<<24);J[c+8>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[a+72|0]|K[a+73|0]<<8|(K[a+74|0]<<16|K[a+75|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[c+12>>2]=b;d=4;while(1){e=c+(d<<2)|0;if(!(d&3)){f=J[(d&-4)+2201552>>2];b=Hzb(b,8);b=f^(K[(b>>>16&255)+2202272|0]<<16|K[(b>>>24|0)+2202272|0]<<24|K[(b>>>8&255)+2202272|0]<<8|K[(b&255)+2202272| -0])}b=J[e-16>>2]^b;J[e>>2]=b;d=d+1|0;if((d|0)!=44)continue;break}jh(c+16|0);jh(c+32|0);jh(c+48|0);jh(c- -64|0);jh(c+80|0);jh(c+96|0);jh(c+112|0);jh(c+128|0);jh(c+144|0);b=J[a+4>>2];gc[J[J[b>>2]+40>>2]](b,a+284|0,16)|0;J[a+316>>2]=16;return;case 2:wI(a+92|0,a+60|0);b=J[a+4>>2];gc[J[J[b>>2]+40>>2]](b,a+348|0,16)|0;J[a+380>>2]=16;break;default:break a}}function Gv(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;c=bc-16|0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;g=J[b+8>>2];if((g|0)<=0)d=0; -else{d=J[b>>2];if((g|0)!=1){l=g&-2;while(1){k=e<<2;m=c+(K[J[k+d>>2]+88|0]<<2)|0;J[m>>2]=J[m>>2]+1;k=c+(K[J[d+(k|4)>>2]+88|0]<<2)|0;J[k>>2]=J[k>>2]+1;e=e+2|0;i=i+2|0;if((l|0)!=(i|0))continue;break}}if(g&1){d=c+(K[J[d+(e<<2)>>2]+88|0]<<2)|0;J[d>>2]=J[d>>2]+1}e=J[c+8>>2];i=J[c>>2];l=J[c+4>>2];d=J[c+12>>2]}a:{b:{c:{d:{e:{f:{g:{h:{i=(i|0)<(l|0);e=J[(c|i<<2)>>2]<(e|0)?2:i;d=(d|0)>J[(c|e<<2)>>2]?3:e;switch(d-1|0){case 2:break f;case 0:break g;case 1:break h;default:break a}}if((g|0)<=0)break a;f=O[a+120>> -3];h=O[a+112>>3];b=J[b>>2];c=0;while(1){a=J[b+(c<<2)>>2];j=O[a+32>>3];O[a+32>>3]=h-O[a+16>>3];O[a+16>>3]=h-j;j=O[a+40>>3];O[a+40>>3]=f-O[a+24>>3];O[a+24>>3]=f-j;H[a+88|0]=K[a+88|0]+2&3;c=c+1|0;if((g|0)!=(c|0))continue;break}break a}c=0;if((g|0)>0)break e;f=O[a+112>>3];break d}c=0;if((g|0)>0)break c;f=O[a+120>>3];break b}f=O[a+112>>3];e=J[b>>2];while(1){b=J[e+(c<<2)>>2];h=O[b+32>>3];O[b+32>>3]=O[b+40>>3];j=O[b+16>>3];O[b+16>>3]=O[b+24>>3];O[b+40>>3]=f-j;O[b+24>>3]=f-h;H[b+88|0]=K[b+88|0]-1&3;c=c+1| -0;if((g|0)!=(c|0))continue;break}}h=O[a+120>>3];O[a+120>>3]=f;O[a+112>>3]=h;return d}f=O[a+120>>3];e=J[b>>2];while(1){b=J[e+(c<<2)>>2];h=O[b+40>>3];O[b+40>>3]=O[b+32>>3];j=O[b+24>>3];O[b+24>>3]=O[b+16>>3];O[b+32>>3]=f-j;O[b+16>>3]=f-h;H[b+88|0]=K[b+88|0]+1&3;c=c+1|0;if((g|0)!=(c|0))continue;break}}O[a+120>>3]=O[a+112>>3];O[a+112>>3]=f}return d}function i9a(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;var i=0,j=0,k=0,l=0,m=0;k=bc-32|0;bc=k;l=O[J[a+16>>2]+24>>3];O[k+24>>3]=d;O[k+16>>3]= -c;O[k+8>>3]=e;O[k>>3]=c;i=gc[J[J[a>>2]+540>>2]](a)|0;je(i,k+24|0,k+16|0);je(i,k+8|0,k);c=l*f/25.4+.5;a:{if(R(c)<2147483648){i=~~c;break a}i=-2147483648}m=i>>>0>1;c=O[k+8>>3];b:{if(R(c)<2147483648){j=~~c;break b}j=-2147483648}f=+(j|0);c=O[k+24>>3];c:{if(R(c)<2147483648){j=~~c;break c}j=-2147483648}c=+(j|0)+.5;e=c;d:{if(g==0)break d;d=R(g)*O[J[a+16>>2]+24>>3];d=(d+d)/25.4+.5;e:{if(R(d)<2147483648){j=~~d;break e}j=-2147483648}j=j>>>0<=1?1:j;e=c-+(j>>1);if(g<0)break d;e=c+ +(j-1>>1)}j=m?i:1;c=f+.5;d= -c;f:{if(h==0)break f;d=R(h)*O[J[a+16>>2]+24>>3];d=(d+d)/25.4+.5;g:{if(R(d)<2147483648){i=~~d;break g}i=-2147483648}i=i>>>0<=1?1:i;d=c-+(i>>1);if(h<0)break f;d=c+ +(i-1>>1)}g=+(j|0);O[a+40>>3]=g;c=e+-.5;h:{i:{j:switch(b|0){case 0:f=O[k+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;i=J[a+20>>2];e=c;c=g*.5;if(R(f)<2147483648)b=~~f;else b=-2147483648;c=c+(+(b|0)+.5)+-.5;Zj(i,e,c);break i;case 1:e=O[k+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;i=j&1;j=J[a+20>>2];f= -c;if(R(e)<2147483648)b=~~e;else b=-2147483648;c=+(b|0)+.5;c=i?c:c+-.5;Zj(j,f,c);break i;case 2:break j;default:break h}f=O[k+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;e=g*.5;i=J[a+20>>2];g=c;if(R(f)<2147483648)b=~~f;else b=-2147483648;c=+(b|0)+.5-e+.5;Zj(i,g,c)}gn(J[a+20>>2],d+.5,c);gc[J[J[a>>2]+564>>2]](a)}bc=k+32|0}function WI(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;pd(b,J[a+32>>2]);pd(b,J[a+28>>2]);pd(b,J[a+36>>2]);d=O[a+40>>3]*1E4;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}pd(b, -c);d=O[a+48>>3]*1E4;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}pd(b,c);d=O[a+56>>3]*1E4;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}pd(b,c);d=O[a- -64>>3]*1E4;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}pd(b,c);pd(b,J[a+24>>2]);c=J[a+24>>2];if(c&1){e=K[a+111|0];c=e<<24>>24<0;jf(b,c?J[a+100>>2]:a+100|0,c?J[a+104>>2]:e);c=J[a+24>>2]}if(c&2){e=K[a+99|0];c=e<<24>>24<0;jf(b,c?J[a+88>>2]:a+88|0,c?J[a+92>>2]:e);c=J[a+24>>2]}if(c&4){we(b,K[a+72|0]);d=O[a+80>>3]*100;e:{if(R(d)<2147483648){c= -~~d;break e}c=-2147483648}pd(b,c);c=J[a+24>>2]}f:{if(!(c&8))break f;pd(b,J[a+128>>2]-J[a+124>>2]>>3);e=J[a+124>>2];if((e|0)==J[a+128>>2])break f;c=0;while(1){d=O[(c<<3)+e>>3]*1E4;g:{if(R(d)<2147483648){e=~~d;break g}e=-2147483648}pd(b,e);c=c+1|0;e=J[a+124>>2];if(c>>>0>2]-e>>3>>>0)continue;break}}f=J[a+136>>2];c=J[a+24>>2];if(!(!f|!(c&16))){c=K[f|0];we(b,(c|0)==1?2:(c|0)==2?1:c);d=O[f+8>>3]*100;h:{if(R(d)<2147483648){c=~~d;break h}c=-2147483648}pd(b,c);i:{if(K[f|0]!=1)break i;pd(b,J[f+20>> -2]-J[f+16>>2]>>3);e=J[f+16>>2];if((e|0)==J[f+20>>2])break i;c=0;while(1){d=O[(c<<3)+e>>3]*100;j:{if(R(d)<2147483648){e=~~d;break j}e=-2147483648}pd(b,e);c=c+1|0;e=J[f+16>>2];if(c>>>0>2]-e>>3>>>0)continue;break}}c=J[a+24>>2]}if(c&32){e=b;c=K[a+123|0];b=c<<24>>24<0;jf(e,b?J[a+112>>2]:a+112|0,b?J[a+116>>2]:c)}}function Cba(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;h=bc-16|0;bc=h;f=J[a+584>>2];e=J[f+840>>2];d=(c|0)/(e|0)|0;if((P(d,e)|0)!=(c|0))ae(J[a+628>>2], -J[a>>2],82167,0);c=J[f+32>>2];c=(c|0)>(d|0)?d:c;a:{b:{if(!c)break b;J[h+12>>2]=0;if(J[f+212>>2]==12)m=h,n=zc(P(J[f+112>>2],J[f+36>>2])<<1),J[m+12>>2]=n;while(1){d=c;c:{d:{if(J[h+12>>2]){if((DO(f,h+12|0)|0)!=1)break d;e:switch(J[f+212>>2]-8|0){case 4:i=P(J[f+36>>2],J[f+112>>2]);if(i>>>0<2)break c;c=0;l=J[h+12>>2];e=i>>>1|0;if((e|0)!=1){k=e&2147483646;e=0;while(1){j=P(c,3)+b|0;g=l+(c<<1)|0;H[j|0]=K[g|0]>>>4;H[j+1|0]=K[g|0]<<4;H[j+2|0]=K[g+1|0];g=c|1;j=P(g,3)+b|0;g=l+(g<<1)|0;H[j|0]=K[g|0]>>>4;H[j+1| -0]=K[g|0]<<4;H[j+2|0]=K[g+1|0];c=c+2|0;e=e+2|0;if((k|0)!=(e|0))continue;break}}if(!(i&2))break c;e=P(c,3)+b|0;c=l+(c<<1)|0;H[e|0]=K[c|0]>>>4;H[e+1|0]=K[c|0]<<4;H[e+2|0]=K[c+1|0];break c;case 0:break e;default:break c}i=P(J[f+36>>2],J[f+112>>2]);if((i|0)<=0)break c;e=0;l=J[h+12>>2];c=0;if(i>>>0>=4){g=i&-4;j=0;while(1){H[b+c|0]=K[c+l|0];k=c|1;H[k+b|0]=K[l+k|0];k=c|2;H[k+b|0]=K[l+k|0];k=c|3;H[k+b|0]=K[l+k|0];c=c+4|0;j=j+4|0;if((g|0)!=(j|0))continue;break}}i=i&3;if(!i)break c;while(1){H[b+c|0]=K[c+l| -0];c=c+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}break c}J[h+8>>2]=b;if((DO(f,h+8|0)|0)==1)break c}a=0;break a}J[a+472>>2]=J[a+472>>2]+1;c=d-1|0;b=J[f+840>>2]+b|0;if((d|0)>1)continue;break}a=J[h+12>>2];if(!a)break b;qc(a)}a=1;if(M[f+140>>2]>2])break a;a=(CO(f)|0)!=0}bc=h+16|0;return a|0}function tx(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;if(!(K[(P(c,9804)+b|0)+256|0]|!(a&4))){h=d>>31;h=(h^d)-h|0;a:{b:{c:{if((c|0)==1){if(a&2)break c;if(!(g&2)|h>>>0>=192)break b;f=h;break a}if(!(a& +ff(14854),J[h+8>>2]=i;h=a,i=ff(9684),J[h+12>>2]=i;J[a>>2]=J[b+48>>2];J[b+48>>2]=a;d=a;break a}while(1){d=0;h:{i:switch(J[e+4>>2]-1|0){case 0:break i;case 4:case 5:case 16:break a;default:break h}d=J[e+48>>2];if(d)while(1){if(!(J[d+8>>2]?J[d+12>>2]:1))break a;d=J[d>>2];if(d)continue;break}if((b|0)==(e|0))break h;d=J[e+36>>2];if(!d|J[d+12>>2])break h;if(J[d+8>>2])break a}e=J[e+20>>2];if(e)continue;break}return 0}return d}function Ieb(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;n=fc-16|0;fc=n;m=O[c+16>>3];i=O[c>>3];k=O[c+8>>3];p=O[c+24>>3]-k;a:{if(R(p)<2147483648){g=~~p;break a}g=-2147483648}O[a+624>>3]=g|0;m=m-i;b:{if(R(m)<2147483648){g=~~m;break b}g=-2147483648}O[a+616>>3]=g|0;if(R(i)<2147483648)g=~~i;else g=-2147483648;h=(g<<2)+b|0;if(R(k)<2147483648)j=~~k;else j=-2147483648;J[a+660>>2]=h+(P(j,d)<<2);h=J[a+16>>2];if(h){uc(BM(h));J[a+16>>2]=0}h=J[a+20>>2];if(h){kc[J[J[h>>2]+20>>2]](h);J[a+20>>2]=0}h=vc(2952);J[699344]=0;l=_(2249,h|0)|0;o=J[699344]; +J[699344]=0;c:{d:{if((o|0)!=1){J[a+16>>2]=l;h=vc(8);J[699344]=0;l=_(2250,h|0)|0;o=J[699344];J[699344]=0;if((o|0)==1)break c;J[a+20>>2]=l;j=(j|0)>0?j:0;J[a+648>>2]=j;h=(g|0)>0?g:0;J[a+644>>2]=h;i=O[c+16>>3];k=O[c+24>>3];e:{if(R(k)<2147483648){g=~~k;break e}g=-2147483648}l=((e|0)>(g|0)?g:e)-j|0;J[a+656>>2]=l;if(R(i)<2147483648)g=~~i;else g=-2147483648;g=((d|0)>(g|0)?g:d)-h|0;J[a+652>>2]=g;J5(J[a+16>>2],b,d,e,0-(d<<2)|0,h,j,g,l,i-O[c>>3],k-O[c+8>>3],f);b=yq(n+12|0,1,0,0,1,O[c>>3],O[c+8>>3]);c=J[a+16>> +2];J[699344]=0;AM(c,b);c=J[699344];J[699344]=0;if((c|0)==1)break d;i=O[a+600>>3];c=J[a+16>>2];J[699344]=0;DD(c,i,6);c=J[699344];J[699344]=0;if((c|0)==1)break d;i=O[a+608>>3];c=J[a+16>>2];J[699344]=0;CD(c,i,6);c=J[699344];J[699344]=0;if((c|0)==1)break d;a=J[a+16>>2];J[699344]=0;Rx(a,6);a=J[699344];J[699344]=0;if((a|0)==1)break d;Jd(b);fc=n+16|0;return}break c}a=Z()|0;Jd(b);ba(a|0);B()}a=Z()|0;uc(h);ba(a|0);B()}function lH(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;c=fc-128|0;fc=c;O[c+ +120>>3]=N[a+148>>2];O[c+112>>3]=N[a+152>>2];O[c+104>>3]=N[a+156>>2];O[c+96>>3]=N[a+160>>2];ce(b,c+120|0,c+112|0);ce(b,c+104|0,c+96|0);N[a+148>>2]=O[c+120>>3];N[a+152>>2]=O[c+112>>3];N[a+156>>2]=O[c+104>>3];N[a+160>>2]=O[c+96>>3];d=J[a+164>>2];e=J[a+168>>2];if((d|0)!=(e|0))while(1){O[c+88>>3]=N[d>>2];O[c+80>>3]=N[d+4>>2];ce(b,c+88|0,c+80|0);N[d>>2]=O[c+88>>3];N[d+4>>2]=O[c+80>>3];d=d+8|0;if((e|0)!=(d|0))continue;break}O[c+88>>3]=N[a+104>>2];O[c+80>>3]=N[a+112>>2];O[c+72>>3]=N[a+108>>2];O[c+64>>3]= +N[a+116>>2];ce(b,c+88|0,c+80|0);ce(b,c+72|0,c- -64|0);N[a+104>>2]=O[c+88>>3];N[a+112>>2]=O[c+80>>3];N[a+108>>2]=O[c+72>>3];N[a+116>>2]=O[c+64>>3];O[c+56>>3]=N[a+32>>2];O[c+48>>3]=N[a+36>>2];ce(b,c+56|0,c+48|0);O[c+40>>3]=N[a>>2];O[c+32>>3]=N[a+4>>2];O[c+24>>3]=N[a+8>>2];O[c+16>>3]=N[a+12>>2];ce(b,c+40|0,c+32|0);ce(b,c+24|0,c+16|0);N[a>>2]=O[c+40>>3];N[a+4>>2]=O[c+32>>3];N[a+8>>2]=O[c+24>>3];N[a+12>>2]=O[c+16>>3];e=J[a+200>>2];f=J[a+204>>2];if((e|0)!=(f|0))while(1){d=0;i=P(h,12);j=i+e|0;g=J[j>>2]; +if((g|0)!=J[j+4>>2]){while(1){e=d<<3;f=e+g|0;O[c+8>>3]=N[f>>2];O[c>>3]=N[f+4>>2];ce(b,c+8|0,c);g=e;e=J[a+200>>2];f=i+e|0;g=g+J[f>>2]|0;N[g>>2]=O[c+8>>3];N[g+4>>2]=O[c>>3];d=d+1|0;g=J[f>>2];if(d>>>0>2]-g>>3>>>0)continue;break}f=J[a+204>>2]}h=h+1|0;if(h>>>0<(f-e|0)/12>>>0)continue;break}b=J[b>>2];k=Y(R(O[b>>3]*O[b+24>>3]-O[b+16>>3]*O[b+8>>3]));N[a+16>>2]=k*+N[a+16>>2];N[a+20>>2]=k*+N[a+20>>2];fc=c+128|0}function Eka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;J[699344]=0;aa(6739, +d+24|0,a|0)|0;e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((e|0)!=1){if(!K[d+24|0])break g;if(b){e=d+20|0;J[e>>2]=b;g=d+16|0;J[g>>2]=0;b=d+12|0;c=J[J[a>>2]-12>>2];J[699344]=0;c=J[(a+c|0)+24>>2];f=J[699344];J[699344]=0;j:{if((f|0)!=1){J[b>>2]=c;break j}ea(0)|0;Bc();B()}k:{while(1){l:{J[699344]=0;c=aa(6744,e|0,g|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;if(c)break k;J[699344]=0;c=_(6745,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break l;J[699344]=0;aa(6746,b|0,c|0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break l;if(!J[b>>2])break k;J[699344]=0;_(6747,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break l;h=h+1|0;continue}break}break i}if(h)break g;b=J[J[a>>2]-12>>2];J[699344]=0;da(6741,a+b|0,4);b=J[699344];J[699344]=0;if((b|0)==1)break i;break g}b=J[J[a>>2]-12>>2];J[699344]=0;da(6741,a+b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break h;break g}b=ea(0)|0;break d}oa(ea(0)|0)|0;b=J[J[a>>2]-12>>2];J[699344]=0;$(6748,a+b|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;ka(5053);b=J[699344]; +J[699344]=0;if((b|0)!=1)break g}b=ea(0)|0;break e}qz(d+24|0);break c}b=ea(0)|0;J[699344]=0;ka(5053);e=J[699344];J[699344]=0;if((e|0)==1)break a}qz(d+24|0)}oa(b|0)|0;b=J[J[a>>2]-12>>2];J[699344]=0;$(6742,a+b|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;ta()}fc=d+32|0;return a|0}a=Z()|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break a;ba(a|0);B()}ea(0)|0;Bc();B()}function uw(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;c=fc-16|0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]= +0;g=J[b+8>>2];if((g|0)<=0)d=0;else{d=J[b>>2];if((g|0)!=1){l=g&-2;while(1){k=e<<2;m=c+(K[J[k+d>>2]+88|0]<<2)|0;J[m>>2]=J[m>>2]+1;k=c+(K[J[d+(k|4)>>2]+88|0]<<2)|0;J[k>>2]=J[k>>2]+1;e=e+2|0;i=i+2|0;if((l|0)!=(i|0))continue;break}}if(g&1){d=c+(K[J[d+(e<<2)>>2]+88|0]<<2)|0;J[d>>2]=J[d>>2]+1}e=J[c+8>>2];i=J[c>>2];l=J[c+4>>2];d=J[c+12>>2]}a:{b:{c:{d:{e:{f:{g:{h:{i=(i|0)<(l|0);e=J[(c|i<<2)>>2]<(e|0)?2:i;d=(d|0)>J[(c|e<<2)>>2]?3:e;switch(d-1|0){case 2:break f;case 0:break g;case 1:break h;default:break a}}if((g| +0)<=0)break a;f=O[a+120>>3];h=O[a+112>>3];b=J[b>>2];c=0;while(1){a=J[b+(c<<2)>>2];j=O[a+32>>3];O[a+32>>3]=h-O[a+16>>3];O[a+16>>3]=h-j;j=O[a+40>>3];O[a+40>>3]=f-O[a+24>>3];O[a+24>>3]=f-j;H[a+88|0]=K[a+88|0]+2&3;c=c+1|0;if((g|0)!=(c|0))continue;break}break a}c=0;if((g|0)>0)break e;f=O[a+112>>3];break d}c=0;if((g|0)>0)break c;f=O[a+120>>3];break b}f=O[a+112>>3];e=J[b>>2];while(1){b=J[e+(c<<2)>>2];h=O[b+32>>3];O[b+32>>3]=O[b+40>>3];j=O[b+16>>3];O[b+16>>3]=O[b+24>>3];O[b+40>>3]=f-j;O[b+24>>3]=f-h;H[b+ +88|0]=K[b+88|0]-1&3;c=c+1|0;if((g|0)!=(c|0))continue;break}}h=O[a+120>>3];O[a+120>>3]=f;O[a+112>>3]=h;return d}f=O[a+120>>3];e=J[b>>2];while(1){b=J[e+(c<<2)>>2];h=O[b+40>>3];O[b+40>>3]=O[b+32>>3];j=O[b+24>>3];O[b+24>>3]=O[b+16>>3];O[b+32>>3]=f-j;O[b+16>>3]=f-h;H[b+88|0]=K[b+88|0]+1&3;c=c+1|0;if((g|0)!=(c|0))continue;break}}O[a+120>>3]=O[a+112>>3];O[a+112>>3]=f}return d}function pDb(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;J[a+28>>2]=0;d=-1;a:{b:{c:{if(Wg(b,a+20|0))break c;c=J[b+ +8>>2];if(c&7)break c;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;d=-1;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break d}c=td(b,1);if((c|0)==-1)break c}H[a+24|0]=c;c=Dc(P(J[a+20>>2],c<<2&1020));J[a+28>>2]=c;if(!c)break c;c=Dc(K[a+24|0]);J[a+32>>2]=c;if(!c)break c;c=0;if(K[a+24|0])while(1){c=J[b+8>>2];if(c&7)break a;f=J[a+32>>2];d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c|0)>0){J[b+60>>2]= +J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break e}d=-1;c=td(b,1);if((c|0)==-1)break c}if(f)H[e+f|0]=c;c=K[a+24|0];e=e+1|0;if(c>>>0>e>>>0)continue;break}d=0;e=J[a+20>>2];if(!e)break c;while(1){f=0;f:{if(!(c&255)){c=0;break f}while(1){c=K[J[a+32>>2]+f|0];d=c&127;j=d+1|0;i=d+8|0;k=i>>>3|0;l=c<<24>>24;g=0;e=0;while(1){c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;c=J[b+28>>2];J[b+28>>2]=c-1;g:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c| +0];break g}d=-1;c=td(b,1);if((c|0)==-1)break c}e=e<<8|c;g=g+1|0;if((k|0)!=(g|0))continue;break}d=(-1<>>c-1&1?0-e|0:e}c=K[a+24|0];J[(J[a+28>>2]+(P(h,c)<<2)|0)+(f<<2)>>2]=d;f=f+1|0;if(f>>>0>>0)continue;break}e=J[a+20>>2]}d=0;h=h+1|0;if(h>>>0>>0)continue;break}}return d|0}J[b+8>>2]=c|4}return-1}function YUa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+4>>2];kc[J[J[b>>2]+20>>2]](b);a:switch(J[a+40>>2]){case 0:I[a+348>>1]=0;d=a+92|0;e=J[a+ +56>>2];while(1){H[c+d|0]=c;b=c|1;H[b+d|0]=b;b=c|2;H[b+d|0]=b;b=c|3;H[b+d|0]=b;b=c|4;H[b+d|0]=b;b=c|5;H[b+d|0]=b;b=c|6;H[b+d|0]=b;b=c|7;H[b+d|0]=b;c=c+8|0;if((c|0)!=256)continue;break}j=a+60|0;c=0;b=0;while(1){f=c+d|0;g=K[f|0];h=b&255;i=g+(K[h+j|0]+(i&255)|0)|0;b=d+(i&255)|0;H[f|0]=K[b|0];H[b|0]=g;b=(h+1|0)%(e|0)|0;c=c+1|0;if((c|0)!=256)continue;break}J[a+352>>2]=-1;return;case 1:c=a+92|0;b=K[a+60|0]|K[a+61|0]<<8|(K[a+62|0]<<16|K[a+63|0]<<24);J[c>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[a+64| +0]|K[a+65|0]<<8|(K[a+66|0]<<16|K[a+67|0]<<24);J[c+4>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[a+68|0]|K[a+69|0]<<8|(K[a+70|0]<<16|K[a+71|0]<<24);J[c+8>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[a+72|0]|K[a+73|0]<<8|(K[a+74|0]<<16|K[a+75|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[c+12>>2]=b;d=4;while(1){e=c+(d<<2)|0;if(!(d&3)){f=J[(d&-4)+2213440>>2];b=zEb(b,8);b=f^(K[(b>>>16&255)+2214160|0]<<16|K[(b>>>24|0)+2214160|0]<<24|K[(b>>>8&255)+2214160|0]<<8|K[(b&255)+2214160|0])}b=J[e- +16>>2]^b;J[e>>2]=b;d=d+1|0;if((d|0)!=44)continue;break}Ah(c+16|0);Ah(c+32|0);Ah(c+48|0);Ah(c- -64|0);Ah(c+80|0);Ah(c+96|0);Ah(c+112|0);Ah(c+128|0);Ah(c+144|0);b=J[a+4>>2];kc[J[J[b>>2]+40>>2]](b,a+284|0,16)|0;J[a+316>>2]=16;return;case 2:MJ(a+92|0,a+60|0);b=J[a+4>>2];kc[J[J[b>>2]+40>>2]](b,a+348|0,16)|0;J[a+380>>2]=16;break;default:break a}}function Udb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;var i=0,j=0,k=0,l=0,m=0;k=fc-32|0;fc=k;l=O[J[a+16>>2]+24>>3];O[k+24>>3]=d;O[k+16>>3]=c; +O[k+8>>3]=e;O[k>>3]=c;i=kc[J[J[a>>2]+556>>2]](a)|0;ce(i,k+24|0,k+16|0);ce(i,k+8|0,k);c=l*f/25.4+.5;a:{if(R(c)<2147483648){i=~~c;break a}i=-2147483648}m=i>>>0>1;c=O[k+8>>3];b:{if(R(c)<2147483648){j=~~c;break b}j=-2147483648}f=+(j|0);c=O[k+24>>3];c:{if(R(c)<2147483648){j=~~c;break c}j=-2147483648}c=+(j|0)+.5;e=c;d:{if(g==0)break d;d=R(g)*O[J[a+16>>2]+24>>3];d=(d+d)/25.4+.5;e:{if(R(d)<2147483648){j=~~d;break e}j=-2147483648}j=j>>>0<=1?1:j;e=c-+(j>>1);if(g<0)break d;e=c+ +(j-1>>1)}j=m?i:1;c=f+.5;d=c; +f:{if(h==0)break f;d=R(h)*O[J[a+16>>2]+24>>3];d=(d+d)/25.4+.5;g:{if(R(d)<2147483648){i=~~d;break g}i=-2147483648}i=i>>>0<=1?1:i;d=c-+(i>>1);if(h<0)break f;d=c+ +(i-1>>1)}g=+(j|0);O[a+40>>3]=g;c=e+-.5;h:{i:{j:switch(b|0){case 0:f=O[k+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;i=J[a+20>>2];e=c;c=g*.5;if(R(f)<2147483648)b=~~f;else b=-2147483648;c=c+(+(b|0)+.5)+-.5;Yj(i,e,c);break i;case 1:e=O[k+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;i=j&1;j=J[a+20>>2];f=c; +if(R(e)<2147483648)b=~~e;else b=-2147483648;c=+(b|0)+.5;c=i?c:c+-.5;Yj(j,f,c);break i;case 2:break j;default:break h}f=O[k+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;e=g*.5;i=J[a+20>>2];g=c;if(R(f)<2147483648)b=~~f;else b=-2147483648;c=+(b|0)+.5-e+.5;Yj(i,g,c)}_n(J[a+20>>2],d+.5,c);kc[J[J[a>>2]+580>>2]](a)}fc=k+32|0}function V4(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a>>2];g=J[a+4>>2];if(g)J[g+4>>2]=J[g+4>>2]+1;f=J[b>>2];a:{if(e){while(1){if((e|0)==(f|0))break a;d=g;c=e;e=J[c+244>>2]; +g=J[c+248>>2];if(g)J[g+4>>2]=J[g+4>>2]+1;b:{if(!d)break b;c=J[d+4>>2];J[d+4>>2]=c-1;f=J[b>>2];if(c)break b;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if(e)continue;break}c=J[a>>2]}else c=0;e=J[c+236>>2];if(e)while(1){if((e|0)==(f|0))break a;c=J[c+240>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[a>>2]=e;d=J[a+4>>2];J[a+4>>2]=c;c:{if(!d)break c;c=J[d+4>>2];J[d+4>>2]=c-1;f=J[b>>2];if(c)break c;kc[J[J[d>>2]+8>>2]](d);Gc(d)}c=J[a>>2];e=J[c+236>>2];if(e)continue;break}e=J[f+244>>2];if(e){while(1){c=J[f+248>>2];if(c)J[c+4>>2]=J[c+ +4>>2]+1;J[b>>2]=e;d=J[b+4>>2];J[b+4>>2]=c;d:{if(!d)break d;c=J[d+4>>2];J[d+4>>2]=c-1;if(c)break d;kc[J[J[d>>2]+8>>2]](d);Gc(d)}f=J[b>>2];e=J[f+244>>2];if(e)continue;break}c=J[a>>2]}d=J[b+4>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[c+236>>2]=f;e=J[c+240>>2];J[c+240>>2]=d;e:{if(!e)break e;c=J[e+4>>2];J[e+4>>2]=c-1;if(c)break e;kc[J[J[e>>2]+8>>2]](e);Gc(e)}c=J[a>>2];e=J[b>>2];d=J[a+4>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[e+244>>2]=c;f=J[e+248>>2];J[e+248>>2]=d;if(!f)break a;c=J[f+4>>2];J[f+4>>2]=c-1;if(c)break a; +kc[J[J[f>>2]+8>>2]](f);Gc(f)}f:{if(!g)break f;c=J[g+4>>2];J[g+4>>2]=c-1;if(c)break f;kc[J[J[g>>2]+8>>2]](g);Gc(g)}c=J[b+4>>2];g:{if(!c)break g;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break g;kc[J[J[c>>2]+8>>2]](c);Gc(c)}b=J[a+4>>2];h:{if(!b)break h;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break h;kc[J[J[b>>2]+8>>2]](b);Gc(b)}}function Eda(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;h=fc-16|0;fc=h;f=J[a+584>>2];e=J[f+840>>2];d=(c|0)/(e|0)|0;if((P(d,e)|0)!=(c|0))le(J[a+628>>2],J[a>>2], +82183,0);c=J[f+32>>2];c=(c|0)>(d|0)?d:c;a:{b:{if(!c)break b;J[h+12>>2]=0;if(J[f+212>>2]==12)m=h,n=Dc(P(J[f+112>>2],J[f+36>>2])<<1),J[m+12>>2]=n;while(1){d=c;c:{d:{if(J[h+12>>2]){if((XP(f,h+12|0)|0)!=1)break d;e:switch(J[f+212>>2]-8|0){case 4:i=P(J[f+36>>2],J[f+112>>2]);if(i>>>0<2)break c;c=0;l=J[h+12>>2];e=i>>>1|0;if((e|0)!=1){k=e&2147483646;e=0;while(1){j=P(c,3)+b|0;g=l+(c<<1)|0;H[j|0]=K[g|0]>>>4;H[j+1|0]=K[g|0]<<4;H[j+2|0]=K[g+1|0];g=c|1;j=P(g,3)+b|0;g=l+(g<<1)|0;H[j|0]=K[g|0]>>>4;H[j+1|0]=K[g| +0]<<4;H[j+2|0]=K[g+1|0];c=c+2|0;e=e+2|0;if((k|0)!=(e|0))continue;break}}if(!(i&2))break c;e=P(c,3)+b|0;c=l+(c<<1)|0;H[e|0]=K[c|0]>>>4;H[e+1|0]=K[c|0]<<4;H[e+2|0]=K[c+1|0];break c;case 0:break e;default:break c}i=P(J[f+36>>2],J[f+112>>2]);if((i|0)<=0)break c;e=0;l=J[h+12>>2];c=0;if(i>>>0>=4){g=i&-4;j=0;while(1){H[b+c|0]=K[c+l|0];k=c|1;H[k+b|0]=K[l+k|0];k=c|2;H[k+b|0]=K[l+k|0];k=c|3;H[k+b|0]=K[l+k|0];c=c+4|0;j=j+4|0;if((g|0)!=(j|0))continue;break}}i=i&3;if(!i)break c;while(1){H[b+c|0]=K[c+l|0];c=c+ +1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}break c}J[h+8>>2]=b;if((XP(f,h+8|0)|0)==1)break c}a=0;break a}J[a+472>>2]=J[a+472>>2]+1;c=d-1|0;b=J[f+840>>2]+b|0;if((d|0)>1)continue;break}a=J[h+12>>2];if(!a)break b;uc(a)}a=1;if(M[f+140>>2]>2])break a;a=(WP(f)|0)!=0}fc=h+16|0;return a|0}function jy(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;if(!(K[(P(c,9804)+b|0)+256|0]|!(a&4))){h=d>>31;h=(h^d)-h|0;a:{b:{c:{if((c|0)==1){if(a&2)break c;if(!(g&2)|h>>>0>=192)break b;f=h;break a}if(!(a& 1))break b}d:{e:{f:{g:{h:{e=P(c,9804)+b|0;b=J[e+52>>2];if(b){e=e+56|0;p=b&1;if((b|0)!=1)break h;f=98;b=0;g=h;break g}b=h+32&2147483584;g=h;break f}q=b&-2;f=98;b=0;g=h;while(1){m=J[(e+P(b|1,12)|0)+4>>2];j=h-m|0;i=j>>31;n=J[(e+P(b,12)|0)+4>>2];k=h-n|0;l=k>>31;k=(l^k)-l|0;l=(k|0)<(f|0);j=(i^j)-i|0;f=l?k:f;i=(j|0)<(f|0);f=i?j:f;g=i?m:l?n:g;b=b+2|0;o=o+2|0;if((q|0)!=(o|0))continue;break}}if(p){e=J[(e+P(b,12)|0)+4>>2];i=h-e|0;b=i>>31;g=((b^i)-b|0)<(f|0)?e:g}b=g+32&-64;if((g|0)>(h|0))break e}b=(h|0)<(b| 48)?g:h;break d}b=(h|0)>(b-48|0)?g:h}if((c|0)==1){f=64;if((b|0)<64)break a;f=b+16&-64;break a}if(a&8){f=64;if((b|0)<64)break a;f=b+32&-64;break a}if((b|0)<=47){f=b- -64>>1;break a}if(b>>>0<=127){f=b+22&-64;b=f-h|0;a=b>>31;if((a^b)-a>>>0<16)break a;if(h>>>0>47){f=h;break a}f=h- -64>>>1|0;break a}f=b+32&-64;break a}f=f&1?h>>>0<80?64:h:(h|0)<=56?56:h;a=P(c,9804)+b|0;if(!J[a+52>>2])break a;a=J[a+60>>2];g=f-a|0;c=g>>31;if((c^g)-c>>>0<=39){f=(a|0)<=48?48:a;break a}if(f>>>0<=191){a=f&63;if(a>>>0<10)break a; -b=f&2147483584;if(a>>>0<=31){f=b|10;break a}f=a>>>0<54?b|54:f;break a}a=0;i:{if(!((d|0)>0&(e|0)>0)&(d&e)>=0)break i;b=L[J[J[b+4>>2]+88>>2]+12>>1];if(b>>>0>=10){if(b>>>0>29)break i;e=(P(30-b|0,e)|0)/20|0}a=e>>31;a=(a^e)-a|0}f=(f-a|0)+32&-64}d=(d|0)<0?0-f|0:f}return d}function yW(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;j=bc-256|0;bc=j;f=ye(1,20);a:{if(!f){Hc(c,1,2338370,0);f=0;break a}J[f+4>>2]=b;J[f>>2]=a;J[j>>2]=b;J[j+128>>2]=a;while(1){p=g;g=g+1|0;h=g<<2;d=(b+1|0)/2|0;J[h+ -j>>2]=d;m=h+(j+128|0)|0;h=(a+1|0)/2|0;J[m>>2]=h;i=P(a,b);e=i+e|0;b=d;a=h;if(i>>>0>1)continue;break}J[f+8>>2]=e;if(!e){qc(f);f=0;break a}d=ye(e,16);J[f+12>>2]=d;if(!d){Hc(c,1,2339339,0);qc(f);f=0;break a}l=J[f+8>>2];J[f+16>>2]=l<<4;a=d;if(p){e=(P(J[f+4>>2],J[f>>2])<<4)+d|0;b=e;while(1){c=n<<2;i=J[c+j>>2];b:{if((i|0)<=0)break b;o=i-1|0;h=0;c:{c=J[c+(j+128|0)>>2];if((c|0)<=0){g=0;if((i|0)!=1){k=i&-2;while(1){m=(g|0)==(o|0);g=g+2|0;e=m?b:e;b=e;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(i&1)break c;b= +b=f&2147483584;if(a>>>0<=31){f=b|10;break a}f=a>>>0<54?b|54:f;break a}a=0;i:{if(!((d|0)>0&(e|0)>0)&(d&e)>=0)break i;b=L[J[J[b+4>>2]+88>>2]+12>>1];if(b>>>0>=10){if(b>>>0>29)break i;e=(P(30-b|0,e)|0)/20|0}a=e>>31;a=(a^e)-a|0}f=(f-a|0)+32&-64}d=(d|0)<0?0-f|0:f}return d}function nY(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;j=fc-256|0;fc=j;f=Ge(1,20);a:{if(!f){Nc(c,1,2350266,0);f=0;break a}J[f+4>>2]=b;J[f>>2]=a;J[j>>2]=b;J[j+128>>2]=a;while(1){p=g;g=g+1|0;h=g<<2;d=(b+1|0)/2|0;J[h+ +j>>2]=d;m=h+(j+128|0)|0;h=(a+1|0)/2|0;J[m>>2]=h;i=P(a,b);e=i+e|0;b=d;a=h;if(i>>>0>1)continue;break}J[f+8>>2]=e;if(!e){uc(f);f=0;break a}d=Ge(e,16);J[f+12>>2]=d;if(!d){Nc(c,1,2351235,0);uc(f);f=0;break a}l=J[f+8>>2];J[f+16>>2]=l<<4;a=d;if(p){e=(P(J[f+4>>2],J[f>>2])<<4)+d|0;b=e;while(1){c=n<<2;i=J[c+j>>2];b:{if((i|0)<=0)break b;o=i-1|0;h=0;c:{c=J[c+(j+128|0)>>2];if((c|0)<=0){g=0;if((i|0)!=1){k=i&-2;while(1){m=(g|0)==(o|0);g=g+2|0;e=m?b:e;b=e;h=h+2|0;if((k|0)!=(h|0))continue;break}}if(i&1)break c;b= e;break b}while(1){g=e;e=c;while(1){d:{J[a>>2]=b;if((e|0)==1){a=a+16|0;b=b+16|0;break d}J[a+16>>2]=b;b=b+16|0;a=a+32|0;k=(e|0)>2;e=e-2|0;if(k)continue}break}k=((h|0)==(o|0)|h)&1;e=k?b:g+(c<<4)|0;b=k?b:g;h=h+1|0;if((i|0)!=(h|0))continue;break}break b}g=((g|0)==(o|0)|g)&1;c=g?b:(c<<4)+e|0;b=g?b:e;e=c}n=n+1|0;if((n|0)!=(p|0))continue;break}}J[a>>2]=0;e:{if(!l)break e;if(l>>>0>=4){a=l&-4;b=0;while(1){J[d+12>>2]=0;J[d+4>>2]=999;J[d+8>>2]=0;J[d+60>>2]=0;J[d+52>>2]=999;J[d+56>>2]=0;J[d+44>>2]=0;J[d+36>> -2]=999;J[d+40>>2]=0;J[d+28>>2]=0;J[d+20>>2]=999;J[d+24>>2]=0;d=d- -64|0;b=b+4|0;if((a|0)!=(b|0))continue;break}}a=l&3;if(!a)break e;b=0;while(1){J[d+12>>2]=0;J[d+4>>2]=999;J[d+8>>2]=0;d=d+16|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}}bc=j+256|0;return f}function Opa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;f=J[a+12>>2];c=gc[J[J[f>>2]+20>>2]](f,b,c,d)|0;J[a+24>>2]=0;J[e>>2]=0;a:{b:{c:{b=J[a+16>>2];if(!b)break c;d=J[J[b>>2]+76>>2];J[695492]=0;f=d;d=e+12|0;da(f|0,d|0,b|0);b=J[695492]; -J[695492]=0;d:{if((b|0)!=1){J[695492]=0;aa(4993,e|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}break b}a=Z()|0;vc(e+12|0);break d}a=Z()|0}break a}J[695492]=0;ia(5534,e+4|0,0,0,e|0);b=J[695492];J[695492]=0;e:{f:{if((b|0)!=1){b=J[e+4>>2];g:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,e+12|0,b|0,1);b=J[695492]; -J[695492]=0;if((b|0)!=1)break g;a=Z()|0;break f}J[e+12>>2]=0}J[695492]=0;aa(4993,a+16|0,e+12|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break h;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break b}a=Z()|0;vc(e+12|0);break f}b=a;a=J[a+16>>2];J[b+20>>2]=J[(a?a+12|0:2728584)>>2];sc(e+4|0);a=J[e>>2];J[e>>2]=0;i:{if(!a)break i;J[695492]=0;b=J[a+4>>2]-1|0;J[a+ -4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(b)break i;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}bc=e+16|0;return c|0}a=Z()|0;break e}sc(e+4|0)}break a}ea(0)|0;yc();B()}vc(e);ba(a|0);B()}function qVa(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;J[a+48>>2]=0;J[a+52>>2]=0;J[a+80>>2]=0;f=a+72|0;J[f>>2]=0;J[f+4>>2]=0;e=a- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;H[a|0]=K[b|0];H[a+1|0]=K[b+1|0];J[a+4>>2]=J[b+4>>2];O[a+8>>3]=O[b+8>>3];O[a+16>> -3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3];a:{b:{if((a|0)==(b|0))break b;e=a+60|0;g=a+48|0;c:{if(H[b+59|0]>=0){c=J[b+52>>2];J[g>>2]=J[b+48>>2];J[g+4>>2]=c;J[g+8>>2]=J[b+56>>2];break c}c=J[b+52>>2];d=J[b+48>>2];J[695492]=0;ga(3295,g|0,d|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a}c=b+60|0;h=K[b+71|0];d=h<<24>>24;d:{e:{if(H[a+71|0]>=0){if((d|0)<0)break e;d=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=d;J[e+8>>2]=J[c+8>>2];break d}i=J[b- -64>>2];k=J[b+60>>2];J[695492]= -0;j=c;c=(d|0)<0;ga(3294,e|0,(c?k:j)|0,(c?i:h)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;break d}c=J[b- -64>>2];d=J[b+60>>2];J[695492]=0;ga(3295,e|0,d|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a}c=b+72|0;h=K[b+83|0];d=h<<24>>24;if(H[a+83|0]>=0){if((d|0)>=0){b=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=b;J[f+8>>2]=J[c+8>>2];return a|0}c=J[b+76>>2];b=J[b+72>>2];J[695492]=0;ga(3295,f|0,b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}i=J[b+76>>2];b=J[b+72>>2];J[695492]=0;j=b;b= -(d|0)<0;ga(3294,f|0,(b?j:c)|0,(b?i:h)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}return a|0}b=Z()|0;if(H[a+83|0]<0)qc(J[f>>2]);if(H[a+71|0]<0)qc(J[e>>2]);if(H[a+59|0]<0)qc(J[g>>2]);ba(b|0);B()}function H0a(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;f=J[a+8>>2];i=J[a+12>>2];a:{b:{if(f>>>0>=i>>>0){J[b>>2]=8;break b}c=f+1|0;d=K[f|0];e=d<<24>>24;if((e|0)>=0){J[a+8>>2]=c;return d|0}g=J[a+4>>2];j=H[d+739344|0];h=j&65535;if(!h){H[g+36|0]=1;H[g+37|0]=e;J[b>>2]=12;J[a+8>>2]=c;break b}if(i>>> -0<(c+h|0)-1>>>0){H[g+37|0]=e;J[b>>2]=11;f=1;c:{if(M[a+12>>2]<=c>>>0)break c;while(1){d=K[c|0];if((d&192)==128){H[((f<<24>>24)+g|0)+37|0]=d;f=f+1|0;c=c+1|0;if(c>>>0>2])continue;break c}break}J[b>>2]=12}H[g+36|0]=f;J[a+8>>2]=c;break b}d=d<<6;e=1;d:{e:{f:switch((j&65535)-2|0){case 4:e=K[c|0];if((e&192)!=128)break e;c=f+2|0;d=d+e<<6;case 3:e=K[c|0];if((e&192)!=128)break e;c=c+1|0;d=d+e<<6;case 2:e=K[c|0];if((e&192)!=128)break e;c=c+1|0;d=d+e<<6;case 1:e=K[c|0];if((e&192)!=128)break e;c=c+1|0; -d=d+e<<6;case 0:e=K[c|0];d=e+d|0;e=(e&192)==128;c=e+c|0;break;default:break f}J[a+8>>2]=c;if(!e)break d;a=d;d=h<<2;a=a-J[d+739600>>2]|0;if(a>>>0>1114111|(a&-2048)==55296)break d;if(M[d+739632>>2]<=a>>>0)break a;break d}J[a+8>>2]=c}a=0;g:{if(c>>>0<=f>>>0)break g;a=c-f|0;h=a&3;d=0;h:{if((f^-1)+c>>>0<3){a=0;break h}i=a&-4;a=0;c=g+37|0;e=0;while(1){H[c+(a<<24>>24)|0]=K[f|0];H[c+((a|1)<<24>>24)|0]=K[f+1|0];H[c+((a|2)<<24>>24)|0]=K[f+2|0];H[c+((a|3)<<24>>24)|0]=K[f+3|0];a=a+4|0;f=f+4|0;e=e+4|0;if((i|0)!= -(e|0))continue;break}}if(!h)break g;while(1){H[((a<<24>>24)+g|0)+37|0]=K[f|0];a=a+1|0;f=f+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}H[g+36|0]=a;J[b>>2]=12}a=65535}return a|0}function D9(a,b,c){var d=0,e=0,f=0;e=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2]))break a;e=-1;d=J[a+28>>2];J[a+28>>2]=d-1;c:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break c}d=jd(a,1);if((d|0)==-1)break b}H[c+1|0]=d;d=J[a+8>>2];if(d&7)break b;e=J[a+64>>2];if(!((e| -0)<0|(e|0)>J[a+60>>2]))break a;e=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break d}d=jd(a,1);if((d|0)==-1)break b}H[c+2|0]=d;d=J[a+8>>2];if(d&7)break b;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2]))break a;e=-1;d=J[a+28>>2];J[a+28>>2]=d-1;e:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break e}d=jd(a,1);if((d|0)==-1)break b}H[c+3|0]=d;d=J[a+8>>2];if(d&7)break b;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2]))break a; -e=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break f}d=jd(a,1);if((d|0)==-1)break b}H[c+4|0]=d;if(Nr(a,c+5|0))break b;e=K[c+1|0]+1|0;J[c+8>>2]=e;if(b){d=0;while(1){b=J[a+8>>2];if(b&7)return-1;f=J[a+64>>2];if(!((f|0)<0|(f|0)>J[a+60>>2])){J[a+8>>2]=b|4;return-1}b=J[a+28>>2];J[a+28>>2]=b-1;g:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break g}e=-1;b=jd(a,1);if((b|0)==-1)break b;e=J[c+8>>2]}f=(d<<1)+c|0;H[f+ -13|0]=(b&240)>>>4;H[f+12|0]=b&15;d=d+1|0;if((e|0)>(d|0))continue;break}H[c|0]=K[c|0]|1}e=0-(J[a+8>>2]&1)|0}return e}J[a+8>>2]=d|4;return-1}function R9a(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;n=bc-16|0;bc=n;m=O[c+16>>3];i=O[c>>3];k=O[c+8>>3];p=O[c+24>>3]-k;a:{if(R(p)<2147483648){g=~~p;break a}g=-2147483648}O[a+624>>3]=g|0;m=m-i;b:{if(R(m)<2147483648){g=~~m;break b}g=-2147483648}O[a+616>>3]=g|0;if(R(i)<2147483648)g=~~i;else g=-2147483648;h=(g<<2)+ -b|0;if(R(k)<2147483648)j=~~k;else j=-2147483648;J[a+660>>2]=h+(P(j,d)<<2);h=J[a+16>>2];if(h){qc(dL(h));J[a+16>>2]=0}h=J[a+20>>2];if(h){qc(pr(h));J[a+20>>2]=0}h=rc(2944);J[695492]=0;l=$(2252,h|0)|0;o=J[695492];J[695492]=0;c:{d:{if((o|0)!=1){J[a+16>>2]=l;h=rc(8);J[695492]=0;l=$(2253,h|0)|0;o=J[695492];J[695492]=0;if((o|0)==1)break c;J[a+20>>2]=l;j=(j|0)>0?j:0;J[a+648>>2]=j;h=(g|0)>0?g:0;J[a+644>>2]=h;i=O[c+16>>3];k=O[c+24>>3];e:{if(R(k)<2147483648){g=~~k;break e}g=-2147483648}l=((e|0)>(g|0)?g:e)-j| -0;J[a+656>>2]=l;if(R(i)<2147483648)g=~~i;else g=-2147483648;g=((d|0)>(g|0)?g:d)-h|0;J[a+652>>2]=g;J3(J[a+16>>2],b,d,e,0-(d<<2)|0,h,j,g,l,i-O[c>>3],k-O[c+8>>3],f);b=Hp(n+12|0,1,0,0,1,O[c>>3],O[c+8>>3]);c=J[a+16>>2];J[695492]=0;bL(c,b);c=J[695492];J[695492]=0;if((c|0)==1)break d;i=O[a+600>>3];c=J[a+16>>2];J[695492]=0;AC(c,i,6);c=J[695492];J[695492]=0;if((c|0)==1)break d;i=O[a+608>>3];c=J[a+16>>2];J[695492]=0;zC(c,i,6);c=J[695492];J[695492]=0;if((c|0)==1)break d;a=J[a+16>>2];J[695492]=0;Zw(a,6);a=J[695492]; -J[695492]=0;if((a|0)==1)break d;Ed(b);bc=n+16|0;return}break c}a=Z()|0;Ed(b);ba(a|0);B()}a=Z()|0;qc(h);ba(a|0);B()}function K6(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=bc-16|0;bc=i;J[i+12>>2]=0;g=J[a+12>>2];a:{b:{c:{d:{if((g|0)<=11){if(J[a+20>>2])break d;J[a+16>>2]=12;J[a+20>>2]=a+820;break d}j=J[a+16>>2];if((j|0)>(g|0)){e=J[a+20>>2];h=e+P(g,44)|0;break c}g=64;if((j|0)>48806445)break a;g=j>>2;e:{if((g|0)>=-4){k=(g+j|0)+4|0;if((k|0)<48806447)break e}k=48806446}l=J[a+20>>2];f:{if((l|0)==(a+ -820|0)){e=Sc(e,44,0,k,0,i+12|0);J[a+20>>2]=e;g=J[i+12>>2];if(g)break a;tc(e,l,528);break f}m=a,n=Sc(e,44,j,k,l,i+12|0),J[m+20>>2]=n;g=J[i+12>>2];if(g)break a}J[a+16>>2]=k;g=J[a+12>>2]}e=J[a+20>>2];h=e+P(g,44)|0;if((g|0)<=0)break b}if(!d){g=h;while(1){h=g-44|0;d=I[h>>1];if((d|0)<(b|0)){h=g;break b}if(!((b|0)!=(d|0)|J[a+24>>2]!=(c|0))){h=g;break b}d=J[h+4>>2];J[g>>2]=J[h>>2];J[g+4>>2]=d;J[g+40>>2]=J[h+40>>2];d=J[h+36>>2];J[g+32>>2]=J[h+32>>2];J[g+36>>2]=d;d=J[h+28>>2];J[g+24>>2]=J[h+24>>2];J[g+28>> -2]=d;d=J[h+20>>2];J[g+16>>2]=J[h+16>>2];J[g+20>>2]=d;d=J[h+12>>2];J[g+8>>2]=J[h+8>>2];J[g+12>>2]=d;g=h;if(g>>>0>e>>>0)continue;break}break b}g=h;while(1){h=g-44|0;d=I[h>>1];if((d|0)>(b|0)){h=g;break b}if(!((b|0)!=(d|0)|J[a+24>>2]!=(c|0))){h=g;break b}d=J[h+4>>2];J[g>>2]=J[h>>2];J[g+4>>2]=d;J[g+40>>2]=J[h+40>>2];d=J[h+36>>2];J[g+32>>2]=J[h+32>>2];J[g+36>>2]=d;d=J[h+28>>2];J[g+24>>2]=J[h+24>>2];J[g+28>>2]=d;d=J[h+20>>2];J[g+16>>2]=J[h+16>>2];J[g+20>>2]=d;d=J[h+12>>2];J[g+8>>2]=J[h+8>>2];J[g+12>>2]= -d;g=h;if(g>>>0>e>>>0)continue;break}}J[a+12>>2]=J[a+12>>2]+1;g=0}J[f>>2]=h;bc=i+16|0;return g}function wl(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,r=0,s=0,t=0;d=bc-48|0;bc=d;e=b7(a,b,c,d+4|0);if(e){xf(b,d+44|0,d+40|0,0);Cr(c,d+32|0,d+36|0,d+24|0,d+28|0);a=!e;a:{if(a)break a;a=a?0:J[e+36>>2];if(J[a+8>>2]>((a?J[a+12>>2]:0)|0)?a:0)break a;uf(e,0,0,e?J[e>>2]:-1,e?J[e+4>>2]:-1,30,0,0,0)}g=J[d+32>>2];b:{if((g|0)<=0)break b;f=J[d+36>>2];if((f|0)<=0)break b;a=0;while(1){b=0;if((f| -0)>0){while(1){if(J[J[J[c+16>>2]+(a<<2)>>2]+(b<<2)>>2]==1){uf(e,J[d+28>>2]-b|0,J[d+24>>2]-a|0,J[d+44>>2],J[d+40>>2],16,J[d+4>>2],0,0);f=J[d+36>>2]}b=b+1|0;if((f|0)>(b|0))continue;break}g=J[d+32>>2]}a=a+1|0;if((g|0)>(a|0))continue;break}}c:{if(J[659409]!=1)break c;i=d+12|0;j=d+8|0;f=0;a=0;g=0;k=d+16|0;d:{if(!k|(d|0)==-20|(!i|!j))break d;J[j>>2]=0;J[i>>2]=0;J[k>>2]=0;J[d+20>>2]=0;if(!c)break d;n=J[c>>2];e:{if((n|0)<=0)break e;o=J[c+4>>2];if((o|0)<=0)break e;p=J[c+12>>2];q=J[c+8>>2];s=J[c+16>>2];while(1){c= -a-q|0;r=q-a|0;t=J[(a<<2)+s>>2];b=0;while(1){if(J[(b<<2)+t>>2]==1){h=b-p|0;g=(g|0)>(h|0)?g:h;h=p-b|0;l=(h|0)<(l|0)?l:h;m=(c|0)<(m|0)?m:c;f=(f|0)>(r|0)?f:r}b=b+1|0;if((o|0)!=(b|0))continue;break}a=a+1|0;if((n|0)!=(a|0))continue;break}}J[d+20>>2]=l;J[k>>2]=f;J[i>>2]=g;J[j>>2]=m}a=J[d+20>>2];if((a|0)>0)uf(e,0,0,a,J[d+40>>2],0,0,0,0);a=J[d+12>>2];if((a|0)>0)uf(e,J[d+44>>2]-a|0,0,a,J[d+40>>2],0,0,0,0);a=J[d+16>>2];if((a|0)>0)uf(e,0,0,J[d+44>>2],a,0,0,0,0);a=J[d+8>>2];if((a|0)<=0)break c;uf(e,0,J[d+40>> -2]-a|0,J[d+44>>2],a,0,0,0,0)}wd(d+4|0)}bc=d+48|0;return e}function ue(a,b,c,d){var e=0,f=0,g=0;f=bc-16|0;bc=f;e=J[a+428>>2];a:{b:{if(!(!d|(e+8|0)==(d|0))){g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[e|0]=g;H[e+1|0]=g>>>8;H[e+2|0]=g>>>16;H[e+3|0]=g>>>24;e=J[a+428>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[e+4|0]=b;H[e+5|0]=b>>>8;H[e+6|0]=b>>>16;H[e+7|0]=b>>>24;e=J[a+116>>2]&240;if(e){b=0;if((e|0)==32)b=LD(a,LD(a,-1,J[a+428>>2]+4|0,4),d,c)^-1;e=J[a+428>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>> -24);H[e+8|0]=b;H[e+9|0]=b>>>8;H[e+10|0]=b>>>16;H[e+11|0]=b>>>24}b=901;if(!(gc[J[a+176>>2]](a,J[a+428>>2],8,f+12|0)|0))break b;if(J[f+12>>2]!=8){b=12;break b}if(!(gc[J[a+176>>2]](a,d,c,f+12|0)|0))break b;if(J[f+12>>2]!=(c|0)){b=12;break b}c=0;if(!(K[a+116|0]&240))break a;if(!(gc[J[a+176>>2]](a,J[a+428>>2]+8|0,4,f+12|0)|0))break b;b=12;if(J[f+12>>2]!=4)break b;break a}d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=d>>>16;H[e+3|0]=d>>>24;d=J[a+428>>2];b=b<<24|(b&65280)<<8| -(b>>>8&65280|b>>>24);H[d+4|0]=b;H[d+5|0]=b>>>8;H[d+6|0]=b>>>16;H[d+7|0]=b>>>24;d=J[a+116>>2]&240;if(d){b=0;if((d|0)==32)b=LD(a,-1,J[a+428>>2]+4|0,c+4|0)^-1;d=J[a+428>>2]+c|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+8|0]=b;H[d+9|0]=b>>>8;H[d+10|0]=b>>>16;H[d+11|0]=b>>>24;b=12;d=c+12|0;if(!(gc[J[a+176>>2]](a,J[a+428>>2],d,f+12|0)|0)){b=901;break b}c=0;if((d|0)!=J[f+12>>2])break b;break a}d=c+8|0;if(!(gc[J[a+176>>2]](a,J[a+428>>2],d,f+12|0)|0)){b=901;break b}b=12;c=0;if((d|0)==J[f+12>>2])break a}Dc(a, -b,0,0);c=b}bc=f+16|0;return c}function mya(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;f=bc-16|0;bc=f;g=f+12|0;e=bc-32|0;bc=e;a:{b:{if(!K[b+144|0]){a=Kc(e,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);ba(b|0);B()}On(g);J[695492]=0;da(5108,e+28|0,g|0);h=J[695492];J[695492]=0;c:{d:{e:{f:{g:{if((h|0)!=1){h=J[e+28>>2];J[e+24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[695492]=0;J[e>>2]=0;J[e+4>>2]=0;i=aa(5080, -e|0,2401340)|0;j=J[695492];J[695492]=0;if((j|0)==1)break g;J[695492]=0;la(5344,b|0,h|0,i|0,c|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[J[h>>2]+24>>2];J[695492]=0;_(b|0,h|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[g>>2];c=J[J[b>>2]+20>>2];J[695492]=0;ha(c|0,b|0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;Bd(i);b=J[e+28>>2];J[e+28>>2]=0;h:{if(!b)break h;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break c;if(c)break h;J[695492]=0;_(4987,b| -0);b=J[695492];J[695492]=0;if((b|0)==1)break c}bc=e+32|0;break a}a=Z()|0;break d}a=Z()|0;break e}a=Z()|0;Bd(i)}vc(e+28|0)}vc(g);ba(a|0);B()}ea(0)|0;yc()}B()}J[695492]=0;da(5158,a|0,g|0);a=J[695492];J[695492]=0;i:{if((a|0)!=1){a=J[f+12>>2];J[f+12>>2]=0;j:{if(!a)break j;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break i;if(b)break j;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break i}bc=f+16|0;return}a=Z()|0;vc(f+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function Ppa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;J[a+24>>2]=0;J[e>>2]=0;a:{b:{c:{d=J[a+16>>2];if(!d)break c;f=J[J[d>>2]+76>>2];J[695492]=0;g=f;f=e+12|0;da(g|0,f|0,d|0);d=J[695492];J[695492]=0;d:{if((d|0)!=1){J[695492]=0;aa(4993,e|0,f|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break c;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break c;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)!=1)break c}break b}a=Z()|0;vc(e+ -12|0);break d}a=Z()|0}break a}J[695492]=0;ia(5534,e+4|0,0,0,e|0);d=J[695492];J[695492]=0;e:{f:{if((d|0)!=1){d=J[e+4>>2];g:{if(d){f=J[J[d>>2]+28>>2];J[695492]=0;ca(f|0,e+12|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break g;a=Z()|0;break f}J[e+12>>2]=0}J[695492]=0;aa(4993,a+16|0,e+12|0)|0;d=J[695492];J[695492]=0;h:{if((d|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break h;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break h;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]= -0;if((d|0)!=1)break h}break b}a=Z()|0;vc(e+12|0);break f}d=J[a+16>>2];J[a+20>>2]=J[(d?d+12|0:2728584)>>2];sc(e+4|0);d=J[e>>2];J[e>>2]=0;i:{if(!d)break i;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break b;if(f)break i;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b}a=J[a+12>>2];a=gc[J[J[a>>2]+12>>2]](a,b,c)|0;bc=e+16|0;return a|0}a=Z()|0;break e}sc(e+4|0)}break a}ea(0)|0;yc();B()}vc(e);ba(a|0);B()}function lg(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;g=J[a+1176>>2];a:{if((g|0)>J[a+92>>2])break a;d=J[b+20>>2];while(1){b:{J[b+28>>2]=d;J[b+4>>2]=2147483632;e=J[a+44>>2]+(g-J[a+84>>2]<<3)|0;h=J[e+4>>2];if(h){g=J[a+32>>2]+(J[e>>2]<<2)|0;j=0;e=d;while(1){d=J[g>>2];j=J[d+8>>2]+j|0;k=J[d+12>>2];i=J[d>>2];c=h-1|0;c:{if(!c){l=1;h=0;break c}f=((h<<2)+g|0)-4|0;while(1){h=g+4|0;d=J[g+4>>2];g=J[d>>2];l=(g|0)==(i|0);if((g|0)!=(i|0)){g=h;h=c;break c}j=J[d+8>>2]+j|0;k=J[d+12>>2]+k|0;g=h;c=c-1|0;if(c)continue;break}g=f;h=0}if(k){f=(j<<9)-k>>9;c= -f>>31;f=(c^f)-c|0;c=f&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0:c:f;c=J[((((c|0)>=255?255:c)<<2)+a|0)+132>>2];if(c){f=i-J[b>>2]|0;H[f+J[b+12>>2]|0]=c;e=J[b+28>>2];d:{if((f|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=L[e+2>>1]+1;break d}c=e+8|0;J[b+28>>2]=c;k=J[b>>2];I[e+10>>1]=1;I[e+8>>1]=f+k;J[e+12>>2]=f+J[b+12>>2];e=c}J[b+4>>2]=f}i=i+1|0}e:{if(l)break e;f=J[d>>2];if((f|0)<=(i|0))break e;c=j<<9>>9;d=c>>31;c=(c^d)-d|0;d=c&511;d=J[a+1156>>2]==1?d>>>0>256?512-d|0:d:c;d=J[((((d|0)>=255?255:d)<<2)+a|0)+132>>2];if(!d)break e; -c=i-J[b>>2]|0;f=f-i|0;wc(c+J[b+12>>2]|0,d,f);e=J[b+28>>2];f:{if((c|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=f+L[e+2>>1];break f}d=e+8|0;J[b+28>>2]=d;i=J[b>>2];I[e+10>>1]=f;I[e+8>>1]=c+i;J[e+12>>2]=c+J[b+12>>2];e=d}J[b+4>>2]=(c+f|0)-1}if(h)continue;break}d=J[b+20>>2];if((d|0)!=(e|0))break b}e=J[a+1176>>2];g=e+1|0;J[a+1176>>2]=g;if((e|0)>2])continue;break a}break}e=b;b=J[a+1176>>2];J[e+8>>2]=b;m=1;J[a+1176>>2]=b+1}return m}function hj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return;a:{if(!b|J[b+16>> -2]>131082)break a;e=J[a+16>>2];if(e){c=J[b+8>>2];b:{while(1){g=J[((d<<2)+a|0)+20>>2];f=J[g>>2];if(Ec(J[f+8>>2],c)){d=d+1|0;if((d|0)!=(e|0))continue;break b}break}if(J[b+12>>2]<=J[f+12>>2])break a;W5(a,g);e=J[a+16>>2]}if(e>>>0>31)break a}e=0;g=J[a>>2];c=J[b+4>>2];c:{if((c|0)<=0){if(!c)break c;break a}e=gc[J[g+4>>2]](g,c)|0;if(!e)return;wc(e,0,c)}J[e+8>>2]=g;J[e+4>>2]=a;J[e>>2]=b;d:{c=b;d=J[c>>2];if(d&2){c=64;f=J[e+4>>2];h=J[f>>2];d=gc[J[h+4>>2]](h,12)|0;e:{if(!d)break e;H[d|0]=0;H[d+1|0]=0;H[d+2|0]= -0;H[d+3|0]=0;H[d+4|0]=0;H[d+5|0]=0;H[d+6|0]=0;H[d+7|0]=0;H[d+8|0]=0;H[d+9|0]=0;H[d+10|0]=0;H[d+11|0]=0;i=J[e>>2];J[e+12>>2]=i;c=J[i+36>>2];J[e+16>>2]=c;f:{g:{if((c|0)!=1869968492)break g;c=J[J[i+56>>2]+4>>2];if(!c)break g;c=gc[c|0](h,e+52|0)|0;if(c)break f;J[e+56>>2]=J[J[i+56>>2]+16>>2];J[e+60>>2]=J[i+40>>2]}J[d+8>>2]=e;c=J[f+152>>2];J[d>>2]=c;J[d+4>>2]=0;J[(c?c+4|0:f+148|0)>>2]=d;J[f+152>>2]=d;c=J[f+148>>2];h:{if(c)while(1){d=J[c+8>>2];if(J[d+16>>2]==1869968492)break h;c=J[c+4>>2];if(c)continue; -break}d=0}J[f+156>>2]=d;c=0;break e}gc[J[h+8>>2]](h,d)}if(c)break d;c=J[e>>2];d=J[c>>2]}if(d&4)J[a+160>>2]=e;if(d&1)J[e+12>>2]=c;b=J[b+24>>2];if(b)if(gc[b|0](e)|0)break d;b=J[a+16>>2];J[a+16>>2]=b+1;J[((b<<2)+a|0)+20>>2]=e;return}i:{if(!(K[J[e>>2]]&2))break i;a=J[e+12>>2];if(!a|J[a+36>>2]!=1869968492)break i;b=J[e+52>>2];if(!b)break i;gc[J[J[a+56>>2]+20>>2]](b)}gc[J[g+8>>2]](g,e)}}function OVa(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;k=P(J[b+36>>2],J[b+ -28>>2]);e=J[a+272>>2];a:{if((e|0)<-1)break a;f=J[a+28>>2];l=k-f|0;if((l|0)<=0)break a;i=c-4|0;g=e+2|0;m=g&3;b=0;if(e+1>>>0>=3){n=g&-4;g=0;while(1){e=b<<2;h=f+J[e+i>>2]|0;wc(h,K[h-1|0],l);h=f+J[i+(e|4)>>2]|0;wc(h,K[h-1|0],l);h=f+J[i+(e|8)>>2]|0;wc(h,K[h-1|0],l);e=f+J[i+(e|12)>>2]|0;wc(e,K[e-1|0],l);b=b+4|0;g=g+4|0;if((n|0)!=(g|0))continue;break}}if(m)while(1){e=f+J[i+(b<<2)>>2]|0;wc(e,K[e-1|0],l);b=b+1|0;j=j+1|0;if((m|0)!=(j|0))continue;break}e=J[a+272>>2]}b:{if((e|0)<=0)break b;b=J[a+228>>2];m=b<< -6;n=65536-(b<<9)|0;i=0;l=k-2|0;if(!l)while(1){f=i<<2;b=J[f+d>>2];e=c+f|0;f=J[e>>2];j=K[f|0];i=i+1|0;g=J[(i<<2)+c>>2];l=J[e-4>>2];k=K[g|0]+K[l|0]|0;e=j+k|0;h=P(j,n);j=K[f+1|0]+(K[g+1|0]+K[l+1|0]|0)|0;H[b|0]=(h+P(m,j+(e+k|0)|0)|0)+32768>>>16;g=b;b=K[f+1|0];H[g+1|0]=(P(b,n)+P(m,(e+(j<<1)|0)-b|0)|0)+32768>>>16;if(J[a+272>>2]>(i|0))continue;break b}while(1){f=i<<2;b=J[f+d>>2];e=c+f|0;f=J[e>>2];k=K[f|0];i=i+1|0;g=J[(i<<2)+c>>2];o=J[e-4>>2];h=K[g|0]+K[o|0]|0;j=k+h|0;e=K[f+1|0]+(K[g+1|0]+K[o+1|0]|0)|0;H[b| -0]=(P(k,n)+P(m,e+(h+j|0)|0)|0)+32768>>>16;k=b+1|0;b=f+1|0;h=g+1|0;o=o+1|0;g=l;while(1){f=e;j=e+j|0;e=K[b|0];j=j-e|0;p=P(e,n);e=K[b+1|0]+(K[h+1|0]+K[o+1|0]|0)|0;H[k|0]=(p+P(m,j+e|0)|0)+32768>>>16;k=k+1|0;h=h+1|0;o=o+1|0;b=b+1|0;j=f;g=g-1|0;if(g)continue;break}b=K[b|0];H[k|0]=(P(b,n)+P(m,(f+(e<<1)|0)-b|0)|0)+32768>>>16;if(J[a+272>>2]>(i|0))continue;break}}}function zQa(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;l=bc-16|0;bc=l; -o=J[a+164>>2];a:{if(!o){J[d>>2]=0;J[g>>2]=0;J[i>>2]=0;J[i+4>>2]=0;J[h>>2]=0;J[h+4>>2]=0;a=1;break a}m=J[o+16>>2];b:{c:{if(!m|(c|0)<=0)break c;while(1){p=K[b+n|0];q=p|q<<8;n=n+1|0;m=(p<<3)+m|0;if(!J[m>>2]){J[l+12>>2]=q;J[l+8>>2]=n;b=J[m+4>>2];break b}m=J[m+4>>2];if(!m)break c;if((c|0)>(n|0))continue;break}}if(!(!J[o+8>>2]|(c|0)<2)){J[l+8>>2]=2;b=K[b+1|0]|K[b|0]<<8;J[l+12>>2]=b;break b}J[l+8>>2]=1;J[l+12>>2]=K[b|0];b=0}J[d>>2]=b;c=J[a+168>>2];if(c)c=al(c,J[a+172>>2]?J[l+12>>2]:b,e,f);else c=0;J[g>> -2]=c;if(!(!J[J[689612]+380>>2]|(c|(f|0)<=0))){J[e>>2]=J[d>>2];J[g>>2]=1}d:{if(!J[J[a+164>>2]+12>>2]){d=J[a+204>>2];e:{if((d|0)>0){e=J[a+200>>2];g=0;while(1){c=e+(g<<4)|0;if(!(b>>>0>2]|b>>>0>M[c+4>>2])){a=c+8|0;break e}g=g+1|0;if((d|0)!=(g|0))continue;break}}a=a+176|0}O[h>>3]=O[a>>3];J[k>>2]=0;J[k+4>>2]=0;J[j>>2]=0;J[j+4>>2]=0;break d}d=J[a+212>>2];f:{if((d|0)>0){e=J[a+208>>2];g=0;while(1){c=e+(g<<5)|0;if(!(b>>>0>2]|b>>>0>M[c+4>>2])){O[i>>3]=O[c+8>>3];O[j>>3]=O[c+16>>3];a=c+24|0;break f}g= -g+1|0;if((d|0)!=(g|0))continue;break}}O[i>>3]=O[a+184>>3];d=J[a+204>>2];g:{if((d|0)>0){e=J[a+200>>2];g=0;while(1){c=e+(g<<4)|0;if(!(b>>>0>2]|b>>>0>M[c+4>>2])){b=c+8|0;break g}g=g+1|0;if((d|0)!=(g|0))continue;break}}b=a+176|0}O[j>>3]=O[b>>3]*.5;a=a+192|0}O[k>>3]=O[a>>3];i=h}J[i>>2]=0;J[i+4>>2]=0;a=J[l+8>>2]}bc=l+16|0;return a|0}function uNa(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,u=0,v=0,w=0,x=0;p=bc-128|0;bc=p;f=wc(a,0,256);while(1){a:{k= -f;d=J[(l<<2)+b>>2]+c|0;o=K[d|0];e=K[d+5|0];m=o-e|0;g=K[d+1|0];i=K[d+4|0];h=g-i|0;j=K[d+2|0];d=K[d+3|0];n=j-d|0;J[f+12>>2]=m-(h+n|0)<<2;e=e+o|0;d=d+j|0;J[f+8>>2]=P(e-d|0,10033)+1024>>11;e=d+e|0;d=g+i|0;J[f>>2]=(e+d<<2)-3072;J[f+16>>2]=P(e-(d<<1)|0,5793)+1024>>11;d=P(m+n|0,2998)+1024>>11;J[f+20>>2]=d+(n-h<<2);J[f+4>>2]=d+(h+m<<2);d=l-7|0;l=l+1|0;f=p;b:switch(d|0){case 0:continue;case 4:break a;default:break b}f=k+32|0;continue}break}while(1){q=J[f+64>>2];r=J[a+128>>2];s=J[a+192>>2];t=J[a+160>>2];c= -s+t|0;u=J[f+96>>2];v=J[a>>2];b=u+v|0;w=c+b|0;l=J[f>>2];m=J[a+96>>2];h=l+m|0;n=J[f+32>>2];o=J[a+64>>2];g=n+o|0;i=h+g|0;J[a+128>>2]=P(w-i|0,8918)+16384>>15;j=b-c|0;e=J[a+32>>2];d=e+q|0;k=J[a+224>>2];c=k+r|0;b=d-c|0;g=g-h|0;J[a+192>>2]=P(j-(b+g|0)|0,7282)+16384>>15;J[a+64>>2]=(P(b-g|0,7282)+P(g+j|0,9947)|0)+16384>>15;J[a>>2]=P((c+(d+i|0)|0)+w|0,7282)+16384>>15;b=r-k|0;c=e-q|0;e=P(b+c|0,3941);d=e+P(b,-13455)|0;h=v-u|0;g=m-l|0;i=t-s|0;j=o-n|0;J[a+96>>2]=((d+P(h-g|0,9514)|0)+P(i+j|0,-3941)|0)+16384>>15; -b=P(g+j|0,-1344);k=P(g+h|0,6269);c=e+P(c,5573)|0;J[a+224>>2]=(((b+(k+P(g,5285)|0)|0)-c|0)+P(i,-8170)|0)+16384>>15;e=b;b=P(h+j|0,8170)+16384|0;J[a+160>>2]=((e+(b+P(j,-17036)|0)|0)-d|0)+P(i,6269)>>15;J[a+32>>2]=(c+(k+(b+P(h,-4229)|0)|0)|0)+P(i,1344)>>15;f=f+4|0;a=a+4|0;x=x+1|0;if((x|0)!=6)continue;break}bc=p+128|0}function jua(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;h=bc-1056|0;bc=h;a:{b:{c:{d:{if(!b){a=Kc(h,2379900,2373889,1355,2412993,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break a}i=L[b+8>>1];e=i+d|0;g=L[a+8>>1];j=(d|0)>0?d:0;l=((e|0)<(g|0)?e:g)-j|0;if((l|0)<=0)break b;e=L[b+10>>1]+c|0;g=L[a+10>>1];n=(c|0)>0?c:0;m=((e|0)<(g|0)?e:g)-n|0;if((m|0)<=0)break b;f=L[b+16>>1];g=f-1|0;e:{if(!g)break e;e=0;if((f|0)!=2){k=g&-2;f=0;while(1){J[(e<<2)+h>>2]=(e<<16>>>0)/(g>>>0);o=e|1;J[(o<<2)+h>>2]=(o<<16>>>0)/(g>>>0);e=e+2|0;f=f+2|0;if((k|0)!=(f|0))continue;break}}if(!(g&1))break e;J[(e<<2)+h>>2]=(e<<16>>>0)/(g>>>0)}if(!J[b+20>>2]){Li(b); -i=L[b+8>>1]}e=L[b+12>>1];k=L[b+14>>1];if(i){f=b+20|0;break c}f=2728564;if(J[682142]>=(e+k|0))break c;a=Kc(h+1032|0,2381564,2381967,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break a}B()}if((l|0)<=0|(m|0)<=0)break b;b=j;j=L[a+12>>1];i=(P(P(b,j),3)+(L[a+8>>1]?J[a+16>>2]:0)|0)+P(n,3)|0;b=((e+J[f>>2]|0)-P(k,d>>31&d)|0)-(c>>31&c)|0;c=0;while(1){e=0;while(1){d=K[b+e|0];f:{if(!d)break f;if(d>>>0>=g>>>0){a=P(e,3)+i|0;H[a+2|0]=0;H[a|0]=0;H[a+1|0]=0;break f}a=P(e,3)+ -i|0;f=K[a|0];d=J[(d<<2)+h>>2];H[a|0]=f-(P(d,f)>>>16|0);f=K[a+1|0];H[a+1|0]=f-(P(d,f)>>>16|0);f=a;a=K[a+2|0];H[f+2|0]=a-(P(a,d)>>>16|0)}e=e+1|0;if((m|0)!=(e|0))continue;break}b=b+k|0;i=P(j,3)+i|0;c=c+1|0;if((l|0)!=(c|0))continue;break}}bc=h+1056|0;return}b=Z()|0;Fc(a);ba(b|0);B()}function S_a(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;f=bc-32|0;bc=f;a:{b:{c:{d:{e=J[a+8>>2];i=J[a+12>>2];if((e|0)==(i|0))break d;g=K[b+11|0];l=g<<24>>24;m=(l|0)<0?J[b+4>>2]:g;if((l| -0)>=0)while(1){j=K[e+11|0];k=j<<24>>24;g=(k|0)<0;h=J[e+4>>2];e:{if(((g?h:j)|0)!=(m|0))break e;if(!g){g=b;h=e;if(!k)break d;while(1){if(K[h|0]!=K[g|0])break e;g=g+1|0;h=h+1|0;j=j-1|0;if(j)continue;break}break d}if(!h)break d;if(!Wc(J[e>>2],b,h))break d}e=e+20|0;if((i|0)!=(e|0))continue;break c}k=J[b>>2];while(1){j=K[e+11|0];n=j<<24>>24;g=(n|0)<0;h=J[e+4>>2];f:{if(((g?h:j)|0)!=(m|0))break f;if(!g){g=k;h=e;if(!n)break d;while(1){if(K[h|0]!=K[g|0])break f;g=g+1|0;h=h+1|0;j=j-1|0;if(j)continue;break}break d}if(!h)break d; -if(!Wc(J[e>>2],k,h))break d}e=e+20|0;if((i|0)!=(e|0))continue;break}break c}if((e|0)!=(i|0))break b;l=K[b+11|0]}c=tc(rc(d),c,d);g:{if(l<<24>>24>=0){J[f+16>>2]=J[b+8>>2];e=J[b+4>>2];J[f+8>>2]=J[b>>2];J[f+12>>2]=e;break g}IE(f+8|0,J[b>>2],J[b+4>>2]);i=J[a+12>>2]}J[f+24>>2]=d;J[f+20>>2]=c;if(M[a+16>>2]>i>>>0){b=J[f+12>>2];J[i>>2]=J[f+8>>2];J[i+4>>2]=b;J[i+8>>2]=J[f+16>>2];b=J[f+24>>2];J[i+12>>2]=J[f+20>>2];J[i+16>>2]=b;J[a+12>>2]=i+20;break a}J[695492]=0;da(3031,a+8|0,f+8|0);a=J[695492];J[695492]=0; -if((a|0)!=1){if(H[f+19|0]>=0)break a;qc(J[f+8>>2]);break a}a=Z()|0;if(H[f+19|0]<0)qc(J[f+8>>2]);ba(a|0);B()}a=J[e+12>>2];if((a|0)!=(c|0)){if(a){qc(a);J[e+12>>2]=0}o=e,p=tc(rc(d),c,d),J[o+12>>2]=p}J[e+16>>2]=d}bc=f+32|0}function yga(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;if((c|0)>0){k=J[a+12>>2];while(1){h=J[a+4>>2];i=.210526316;j=.473684211;e=+N[b+4>>2];d=32767;a:{if(e>=1.8371976E19)break a;d=65535;if(e<=-1.8371976E19)break a;if(e>5.4136769E-20){e=os(e)*1.4426950408889634+ -64;if(h){d=Dzb(J[694792],J[694793],1284865837,1481765933);f=fc;d=d+1|0;f=d?f:f+1|0;J[694792]=d;J[694793]=f;e=e*256+ +(f>>>1|0)*4.656612875245797E-10+-.5}else e=e*256;if(R(e)<2147483648){d=~~e;break a}d=-2147483648;break a}d=0;if(!(e<-5.4136769E-20))break a;e=os(-e)*1.4426950408889634+64;if(h){d=Dzb(J[694792],J[694793],1284865837,1481765933);f=fc;d=d+1|0;f=d?f:f+1|0;J[694792]=d;J[694793]=f;e=e*256+ +(f>>>1|0)*4.656612875245797E-10+-.5}else e=e*256;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}d= -d|-32768}c:{d:{if(!d)break d;m=+N[b+4>>2];e=+N[b>>2];l=+N[b+8>>2]*3+(m*15+e);if(l<=0)break d;j=m*9/l;i=e*4/l;f=0;if(i<=0)break c}if(h){f=Dzb(J[694792],J[694793],1284865837,1481765933);g=fc;f=f+1|0;g=f?g:g+1|0;J[694792]=f;J[694793]=g;e=i*410+ +(g>>>1|0)*4.656612875245797E-10+-.5}else e=i*410;if(R(e)<2147483648){f=~~e;break c}f=-2147483648}f=(f>>>0>=255?255:f)<<8|d<<16;d=0;e:{if(j<=0)break e;if(h){d=Dzb(J[694792],J[694793],1284865837,1481765933);g=fc;d=d+1|0;g=d?g:g+1|0;J[694792]=d;J[694793]=g;e=j* -410+ +(g>>>1|0)*4.656612875245797E-10+-.5}else e=j*410;if(R(e)<2147483648){d=~~e;break e}d=-2147483648}J[k>>2]=f|(d>>>0>=255?255:d);b=b+12|0;k=k+4|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}}}function haa(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;f=L[a+84>>1];g=f>>>3|0;h=(c>>>0)/(g>>>0)|0;d=J[J[a+584>>2]+4>>2];i=zc(c);a:{if(!i)break a;Ne(i,b,c);if((h|0)>0){a=g>>>0<=1?1:g;l=a&8190;m=a&1;n=f>>>0<16;while(1){f=b+e|0;j=i+P(e,g)|0;a=0;k=0;if(!n)while(1){H[f+P(h,g+(a^-1)|0)| -0]=K[a+j|0];H[f+P(h,g+(a^-2)|0)|0]=K[(a|1)+j|0];a=a+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}if(m)H[f+P(h,g+(a^-1)|0)|0]=K[a+j|0];e=e+1|0;if((h|0)>(e|0))continue;break}}qc(i);if((c|0)<=(d|0))break a;a=((d^-1)+b|0)+c|0;if((d|0)>=5){g=d-4|0;h=d&3;i=d-5>>>0>2;while(1){b:{c:{d:{e:{f:{g:switch(d|0){case 1:break c;case 2:break d;case 3:break e;case 4:break f;case 0:break b;default:break g}e=0;b=g;if(h)while(1){f=a+d|0;H[f|0]=K[f|0]-K[a|0];b=b-1|0;a=a-1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(!i)break f; -while(1){e=a+d|0;H[e|0]=K[e|0]-K[a|0];e=a-1|0;f=e+d|0;H[f|0]=K[f|0]-K[e|0];e=a-2|0;f=e+d|0;H[f|0]=K[f|0]-K[e|0];e=a-3|0;f=e+d|0;H[f|0]=K[f|0]-K[e|0];a=a-4|0;e=(b|0)>4;b=b-4|0;if(e)continue;break}}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}c=c-d|0;if((d|0)<(c|0))continue;break}break a}while(1){h:switch(d|0){default:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;case 3:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0; -case 2:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;case 1:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;break;case 0:break h}c=c-d|0;if((d|0)<(c|0))continue;break}}}function bVa(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;n=P(J[b+36>>2],J[b+28>>2]);b=J[a+412>>2]+J[b+4>>2]|0;k=K[b+92|0];m=K[b+102|0];e=J[a+272>>2];a:{if((e|0)<=0)break a;f=J[a+28>>2];h=P(k,n)-f|0;if((h|0)<=0)break a;b=0;if(e>>>0>=4){o=e&-4;while(1){i=b<<2;g=f+J[i+c>>2]|0;wc(g,K[g-1|0],h); -g=f+J[(i|4)+c>>2]|0;wc(g,K[g-1|0],h);g=f+J[(i|8)+c>>2]|0;wc(g,K[g-1|0],h);i=f+J[(i|12)+c>>2]|0;wc(i,K[i-1|0],h);b=b+4|0;j=j+4|0;if((o|0)!=(j|0))continue;break}}e=e&3;if(e)while(1){j=f+J[(b<<2)+c>>2]|0;wc(j,K[j-1|0],h);b=b+1|0;l=l+1|0;if((e|0)!=(l|0))continue;break}e=J[a+272>>2]}b:{if(!n|(e|0)<=0)break b;h=P(k,m);i=h>>>1|0;if(m){if(k){s=k&248;r=k&7;l=0;t=k>>>0<8;o=0;while(1){u=(l<<2)+c|0;g=J[(o<<2)+d>>2];p=0;q=0;while(1){e=0;j=0;while(1){b=J[(j<<2)+u>>2]+p|0;f=0;if(!t)while(1){e=K[b+7|0]+(K[b+6|0]+ -(K[b+5|0]+(K[b+4|0]+(K[b+3|0]+(K[b+2|0]+(K[b+1|0]+(K[b|0]+e|0)|0)|0)|0)|0)|0)|0)|0;b=b+8|0;f=f+8|0;if((s|0)!=(f|0))continue;break}f=0;if(r)while(1){e=K[b|0]+e|0;b=b+1|0;f=f+1|0;if((r|0)!=(f|0))continue;break}j=j+1|0;if((m|0)!=(j|0))continue;break}H[g|0]=(e+i|0)/(h|0);p=k+p|0;g=g+1|0;q=q+1|0;if((q|0)!=(n|0))continue;break}o=o+1|0;l=m+l|0;if((l|0)>2])continue;break}break b}c=(i>>>0)/(h>>>0)|0;e=0;b=0;while(1){wc(J[(b<<2)+d>>2],c,n);b=b+1|0;e=e+m|0;if((e|0)>2])continue;break}break b}c= -(i>>>0)/(h>>>0)|0;e=0;b=0;while(1){wc(J[(b<<2)+d>>2],c,n);b=b+1|0;e=e+m|0;if((e|0)>2])continue;break}}}function Bpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if(!(1<>>0<=10:0)){Dc(a,1028,0,0);return 1028}H[a+302|0]=1;f=K[d|0]|K[d+1|0]<<8;i=f<<8|f>>>8;I[a+1052>>1]=i;f=K[d+2|0]|K[d+3|0]<<8;j=f<<8|f>>>8;I[a+1054>>1]=j;f=K[d+4|0]|K[d+5|0]<<8;k=f<<8|f>>>8;I[a+ -1056>>1]=k;b:{c:{d:{if(c>>>0<=6){H[a+1058|0]=0;break d}g=K[d+6|0];H[a+1058|0]=g;if((c|0)!=7)break c}I[a+1060>>1]=0;h=0;break b}f=K[d+7|0]|K[d+8|0]<<8;l=f<<8|f>>>8;I[a+1060>>1]=l;if(c>>>0<10){m=1;h=0;break b}n=1;m=1;h=K[d+9|0]}H[a+1062|0]=h;f=0;e:{if(!K[a+114|0])break e;i=i&65535;j=j&65535;k=k&65535;l=l&65535;o=h&255;f=gc[J[a+152>>2]](40)|0;if(!f){Dc(a,1,0,0);f=1;break e}J[f+4>>2]=1050;J[f>>2]=1051;h=J[a+700>>2];f:{if(h){J[h+8>>2]=f;break f}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=h;J[a+700>>2]=f;J[f+ -16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+38|0]=o;I[f+36>>1]=l;H[f+34|0]=g;I[f+32>>1]=k;I[f+30>>1]=j;I[f+28>>1]=i;f=0}g=f;g:{if(g)break g;h:{if(!K[a+112|0])break h;g=gc[J[b+4>>2]](a,b,e)|0;if(g)break g;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;b=K[d+2|0]|K[d+3|0]<<8;I[a+34>>1]=b<<8|b>>>8;b=K[d+4|0]|K[d+5|0]<<8;I[a+36>>1]=b<<8|b>>>8;if(c>>>0>=7)H[a+38|0]=K[d+6|0];if(m){b=K[d+7|0]|K[d+8|0]<<8;I[a+40>>1]=b<< -8|b>>>8}if(!n)break h;H[a+42|0]=K[d+9|0]}g=0}return g|0}Dc(a,1029,0,0);return 1029}function qw(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=bc-16|0;bc=g;a:{if(!b)break a;f=a?J[a+80>>2]:f;e=gc[J[659447]](28)|0;if(e){J[e>>2]=0;J[e+4>>2]=0;J[e+24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=J[b>>2];J[e+4>>2]=J[b+4>>2];b:{c:{d:{e:{c=J[b+8>>2];if(c){if(!f)break e;h=e,i=le(f,c,-1),J[h+8>>2]=i}c=J[b+24>>2];if(!c)break b;if(!f)break d;c=le(f,c,-1);break c}h=e,i=$e(c),J[h+8>>2]=i;c=J[b+24>>2]; -if(!c)break b}c=$e(c)}J[e+24>>2]=c}c=J[b+12>>2];f:{if(!c){c=J[e+12>>2];break f}c=qw(a,c);J[e+12>>2]=c}if(c)J[c+20>>2]=e;g:{b=J[b+16>>2];h:{if(!b)break h;if(!f){c=e;while(1){d=gc[J[659447]](28)|0;if(!d)break g;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[c+16>>2]=d;c=J[b+8>>2];if(c)h=d,i=$e(c),J[h+8>>2]=i;c=J[b+24>>2];if(c)h=d,i=$e(c),J[h+24>>2]=i;c=J[b+12>>2];i:{if(!c){c=J[d+12>>2];break i}c=qw(a,c);J[d+12>>2]=c}if(c)J[c+ -20>>2]=e;c=d;b=J[b+16>>2];if(b)continue;break}break h}c=e;while(1){d=gc[J[659447]](28)|0;if(!d)break g;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[c+16>>2]=d;c=J[b+8>>2];if(c)h=d,i=le(f,c,-1),J[h+8>>2]=i;c=J[b+24>>2];if(c)h=d,i=le(f,c,-1),J[h+24>>2]=i;c=J[b+12>>2];j:{if(!c){c=J[d+12>>2];break j}c=qw(a,c);J[d+12>>2]=c}if(c)J[c+20>>2]=e;c=d;b=J[b+16>>2];if(b)continue;break}}c=e;break a}c=e}J[g>>2]=17038;Cc(0,0,0,0,0,23, -2,3,17038,0,0,0,32863,g)}bc=g+16|0;return c}function c0(a,b,c,d){var e=0,f=0,g=0;g=bc-32|0;bc=g;a:{if(!(!a|J[a+4>>2]==1)){if((d|0)!=1)break a;a=J[a+32>>2];if(a){if(!c)break a;b=J[a+80>>2];while(1){if(!b)break a;d=J[b+16>>2];if(d)while(1){if(d+20>>>0<=c>>>0&M[d+4>>2]>=c>>>0)break a;d=J[d>>2];if(d)continue;break}b=J[b+20>>2];if(b)continue;break}}gc[J[659451]](c);break a}e=gc[J[659447]](48)|0;if(!e){b:{if((d|0)!=1)break b;c:{if(!a)break c;a=J[a+32>>2];if(!a)break c;if(!c)break b;d=J[a+80>>2];while(1){if(!d)break b; -e=J[d+16>>2];if(e)while(1){if(e+20>>>0<=c>>>0&M[e+4>>2]>=c>>>0)break b;e=J[e>>2];if(e)continue;break}d=J[d+20>>2];if(d)continue;break}}gc[J[659451]](c)}J[g>>2]=13570;e=0;Cc(0,0,0,0,0,2,2,3,13570,0,0,0,32863,g);break a}J[e>>2]=0;J[e+4>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=2;J[e+20>>2]=a;d:{e:{f:{if(a){f=J[a+32>>2];J[e+36>>2]=b;J[e+32>>2]=f;if(!d)break f;d=c;break d}J[e+36>>2]=b;if(!d)break e; -d=c;break d}if(!f)break e;b=J[f+80>>2];if(!b)break e;d=le(b,c,-1);break d}if(!c){d=0;break d}d=c;while(1){b=d;d=d+1|0;if(K[b|0])continue;break}d=0;b=b-c|0;if((b|0)<0)break d;f=gc[J[659450]](b+1|0)|0;if(!f){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}d=tc(f,c,b);H[b+d|0]=0}J[e+8>>2]=d;if(a)g:{d=J[a+44>>2];if(!d){J[a+44>>2]=e;break g}while(1){a=d;d=J[d+24>>2];if(d)continue;break}J[a+24>>2]=e;J[e+28>>2]=a}if(!J[689540])break a;a=J[689537];if(!a)break a;gc[a|0](e)}bc=g+32|0;return e}function Yya(a){a= -a|0;var b=0,c=0,d=0,e=0;e=bc-16|0;bc=e;J[695492]=0;b=pa(5213)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((d|0)==1)break f;J[695492]=0;ca(5299,e|0,b|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[e>>2];if(!b)break d;J[695492]=0;d=aa(4989,e+8|0,2403809)|0;c=J[695492];J[695492]=0;g:{h:{if((c|0)!=1){c=J[J[b>>2]+8>>2];J[695492]=0;b=aa(c|0,b|0,d|0)|0;c=J[695492];J[695492]=0;i:{if((c|0)!=1){sc(d);if(!b)break i;J[695492]=0;_(5300,J[e>>2]);b=J[695492];J[695492]=0;if((b|0)!=1)break i;b=ea(2411712)| -0;break h}b=ea(2411712)|0;c=cc;sc(d);break g}a=J[e>>2];J[e>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}b=ea(2411712)|0}c=cc}vc(e);break e}b=ea(2411712)|0;c=cc}if((sa(2411712)|0)!=(c|0))break b;d=na(b|0)|0;J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;j:{k:{l:{m:{if((c|0)!=1){J[695492]=0;d=J[d+4>>2];c=J[695492];J[695492]=0;if((c|0)==1)break m;J[695492]=0; -d=aa(4989,e|0,(d?d:2377794)|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break m;c=J[J[b>>2]+20>>2];J[695492]=0;ga(c|0,b|0,a|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break l;sc(d);break j}b=ea(0)|0;break k}b=ea(0)|0;break k}b=ea(0)|0;sc(d)}na(b|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break c}ta()}bc=e+16|0;return}b=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}ba(b|0);B()}ea(0)|0;yc();B()}function uk(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;f=bc-112|0;bc=f;a:{if(K[a+220|0]|K[a+204|0])break a;O[f+64>>3]=O[d>>3];O[f+72>>3]=-O[d+8>>3];O[f+80>>3]=O[d+16>>3];O[f+88>>3]=-O[d+24>>3];O[f+96>>3]=O[d+32>>3];O[f+104>>3]=c-O[d+40>>3];if(e){O[f+64>>3]=O[e>>3];O[f+72>>3]=-O[e+8>>3];O[f+80>>3]=O[e+16>>3];O[f+88>>3]=-O[e+24>>3];O[f+96>>3]=O[e+32>>3];O[f+104>>3]=c-O[e+40>>3]}J[f+56>>2]=0;J[f+60>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;Q_(a,f- -64|0,f+56|0,f+48|0,0);d=J[a+104>>2];J[f+40>>2]=4;gc[J[J[d>>2]+308>>2]](d,f+40|0)|0;d=J[a+104>>2];gc[J[J[d>> -2]+344>>2]](d)|0;l=J[b+28>>2];if((l|0)<=0)break a;c=O[f+48>>3];g=O[f+56>>3];while(1){e=J[J[b+24>>2]+(i<<2)>>2];m=J[e+12>>2];d=J[a+104>>2];O[f+40>>3]=(O[J[e>>2]>>3]+g)/72*25.4;O[f+32>>3]=(O[J[e+4>>2]>>3]+c)/72*25.4;gc[J[J[d>>2]+316>>2]](d,f+40|0,f+32|0)|0;if((m|0)>=2){d=1;while(1){h=J[a+104>>2];o=d;b:{if(J[J[e+8>>2]+(d<<2)>>2]){j=J[e>>2];d=d<<3;O[f+40>>3]=(g+O[j+d>>3])/72*25.4;k=J[e+4>>2];O[f+32>>3]=(c+O[d+k>>3])/72*25.4;n=d+8|0;O[f+24>>3]=(g+O[n+j>>3])/72*25.4;O[f+16>>3]=(c+O[k+n>>3])/72*25.4;d=d+ -16|0;O[f+8>>3]=(g+O[d+j>>3])/72*25.4;O[f>>3]=(c+O[d+k>>3])/72*25.4;gc[J[J[h>>2]+328>>2]](h,f+40|0,f+32|0,f+24|0,f+16|0,f+8|0,f)|0;d=3;break b}d=d<<3;O[f+40>>3]=(g+O[d+J[e>>2]>>3])/72*25.4;O[f+32>>3]=(c+O[d+J[e+4>>2]>>3])/72*25.4;gc[J[J[h>>2]+320>>2]](h,f+40|0,f+32|0)|0;d=1}d=o+d|0;if((m|0)>(d|0))continue;break}}if(J[e+20>>2]){d=J[a+104>>2];gc[J[J[d>>2]+340>>2]](d)|0}i=i+1|0;if((l|0)!=(i|0))continue;break}}bc=f+112|0}function taa(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;a:{d=J[J[a+584>> -2]+4>>2];if((d|0)>=(c|0))break a;c=c-d|0;b:{c:switch(d-3|0){default:if((d|0)>=5)break b;while(1){d:switch(d|0){default:a=b+d|0;H[a|0]=K[b|0]+K[a|0];a=d+(b+1|0)|0;H[a|0]=K[b+1|0]+K[a|0];b=b+2|0;case 2:a=b+d|0;H[a|0]=K[b|0]+K[a|0];b=b+1|0;case 1:a=b+d|0;H[a|0]=K[b|0]+K[a|0];b=b+1|0;break;case 0:break d}c=c-d|0;if((c|0)>0)continue;break}break a;case 1:a=K[b+3|0];e=K[b+2|0];f=K[b+1|0];d=K[b|0];while(1){d=K[b+4|0]+d|0;H[b+4|0]=d;f=K[b+5|0]+f|0;H[b+5|0]=f;e=K[b+6|0]+e|0;H[b+6|0]=e;a=K[b+7|0]+a|0;H[b+7| -0]=a;b=b+4|0;g=(c|0)>4;c=c-4|0;if(g)continue;break}break a;case 0:break c}a=K[b+2|0];e=K[b+1|0];f=K[b|0];while(1){f=K[b+3|0]+f|0;H[b+3|0]=f;e=K[b+4|0]+e|0;H[b+4|0]=e;a=K[b+5|0]+a|0;H[b+5|0]=a;b=b+3|0;d=(c|0)>3;c=c-3|0;if(d)continue;break}break a}a=d-4|0;g=d&3;i=d-5>>>0>2;while(1){e:{f:{g:{h:{i:switch(d|0){case 0:break e;case 1:break f;case 2:break g;case 4:break h;default:break i}f=0;e=a;if(g)while(1){h=b+d|0;H[h|0]=K[b|0]+K[h|0];e=e-1|0;b=b+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}if(!i)break h; -while(1){f=b+d|0;H[f|0]=K[b|0]+K[f|0];f=d+(b+1|0)|0;H[f|0]=K[b+1|0]+K[f|0];f=d+(b+2|0)|0;H[f|0]=K[b+2|0]+K[f|0];f=d+(b+3|0)|0;H[f|0]=K[b+3|0]+K[f|0];b=b+4|0;f=(e|0)>4;e=e-4|0;if(f)continue;break}}e=b+d|0;H[e|0]=K[b|0]+K[e|0];e=d+(b+1|0)|0;H[e|0]=K[b+1|0]+K[e|0];b=b+2|0}e=b+d|0;H[e|0]=K[b|0]+K[e|0];b=b+1|0}e=b+d|0;H[e|0]=K[b|0]+K[e|0];b=b+1|0}c=c-d|0;if((c|0)>0)continue;break}}}function lf(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{d=J[a+8>>2];if((d|0)>=0){J[a+8>>2]=-1;break b}d=gc[J[a>>2]](J[a+4>>2])|0; -J[a+8>>2]=-1;if((d|0)!=-1)break b;break a}e=1;c:{if((d|0)!=37){e=0;if(K[d+2307104|0]!=1)break c}while(1){d=gc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=-1;if((d|0)==-1){e=0;break a}if(e){e=(d|0)!=13&(d|0)!=10;continue}e=1;if((d|0)==37)continue;e=0;if(K[d+2307104|0]==1)continue;break}}H[b|0]=d;h=1;e=1;d:{e:{f:switch(d-91|0){case 1:break e;case 0:case 2:break d;default:break f}if((d|0)!=40){if((d|0)!=60)break e;while(1){d=J[a+8>>2];g:{if((d|0)>=0)break g;d=gc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=d;if((d|0)==-1)break d; -if((d|0)>=0)break g;gc[J[a>>2]](J[a+4>>2])|0}J[a+8>>2]=-1;if(!(K[d+2307104|0]==1|(e|0)>=255)){H[b+e|0]=d;e=e+1|0}if((d|0)!=62)continue;break}break d}d=J[a+8>>2];if((d|0)<0){d=gc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=d;if((d|0)==-1)break d}H[b+1|0]=d;e=2;if(J[a+8>>2]<0)gc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=-1;g=(d|0)!=92;if(g&(d|0)==41)break d;while(1){d=gc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=d;if((d|0)==-1)break d;if((e|0)>=255)f=d;else{H[b+e|0]=d;e=e+1|0;f=J[a+8>>2]}if((f|0)<0)gc[J[a>>2]](J[a+4>>2])|0;f=g;J[a+ -8>>2]=-1;g=(d|0)!=92;if(!((d|0)==41&f)|(d|0)==92)continue;break}break d}while(1){d=J[a+8>>2];if((d|0)<0){d=gc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=d;if((d|0)==-1)break d}if(K[d+2307104|0])break d;if((d|0)<0)gc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=-1;if((e|0)>=255)continue;H[b+e|0]=d;e=e+1|0;continue}}b=b+e|0}H[b|0]=0;J[c>>2]=e;return h}function Tgb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=bc-17408|0;bc=e;d=96;a:{if(!a)break a;a=J[b+4>>2];d=20;if(!a)break a;f=I[a+2>>1];d=0;if(!f)break a;c=I[a>>1];d=0;if((c| -0)<=0)break a;g=J[a+12>>2];d=20;if(!g)break a;d=20;if(!J[a+4>>2])break a;d=20;if((f|0)!=(I[((c<<1)+g|0)-2>>1]+1|0))break a;d=19;if(K[b+8|0]&3)break a;b=J[b>>2];d=20;if(!b)break a;d=0;if(!J[b+4>>2])break a;d=0;if(!J[b>>2])break a;d=20;if(!J[b+12>>2])break a;J[e+16520>>2]=J[a+16>>2];f=J[a+12>>2];c=e+16512|0;J[c>>2]=J[a+8>>2];J[c+4>>2]=f;c=J[a+4>>2];J[e+16504>>2]=J[a>>2];J[e+16508>>2]=c;c=J[b+12>>2];a=e+16488|0;J[a>>2]=J[b+8>>2];J[a+4>>2]=c;c=J[b+20>>2];a=e+16496|0;J[a>>2]=J[b+16>>2];J[a+4>>2]=c;a=J[b+ -4>>2];J[e+16480>>2]=J[b>>2];J[e+16484>>2]=a;a=e+16384|0;J[e+16412>>2]=a;J[e+16408>>2]=e;b=J[a+136>>2];c=b&256;J[a+20>>2]=c?30:2;J[a+16>>2]=c?256:32;c=c?12:6;J[a>>2]=c;c=1<>2]=c;J[a+12>>2]=c>>>6;J[a+8>>2]=c>>>1;b:{if(b&8){H[a+164|0]=2;break b}c=b>>>2&4;H[a+164|0]=c;if(b&32)break b;H[a+164|0]=c|1}J[a+1008>>2]=0;J[a+160>>2]=1694;J[a+156>>2]=1695;J[a+152>>2]=1696;J[a+148>>2]=1697;I[a+944>>1]=0;H[a+165|0]=!(b&512);b=J[a+96>>2]-1|0;I[a+946>>1]=b;I[a+52>>1]=J[a+100>>2];c=J[a+108>>2];J[a+56>>2]= -c;f=J[a+104>>2];if((f|0)>0)J[a+56>>2]=c+P(b,f);b=O4(a,0);c:{if(b)break c;if(!(!K[a+165|0]|K[a+164|0]==2)){J[a+1008>>2]=0;J[a+160>>2]=1698;J[a+156>>2]=1699;J[a+152>>2]=1700;J[a+148>>2]=1701;I[a+944>>1]=0;I[a+946>>1]=L[a+100>>1]-1;b=O4(a,1);if(b)break c}b=0}d=b}c=d;bc=e+17408|0;return c|0}function BX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc+-64|0;bc=c;a:{d=J[a+16>>2];if(!J[d+44>>2]){d=1;break a}b:{if(H[b+11|0]>=0){J[c+56>>2]=J[b+8>>2];a=J[b+4>>2];J[c+48>>2]=J[b>>2];J[c+52>>2]=a;break b}Re(c+48|0,J[b>> -2],J[b+4>>2]);d=J[a+16>>2]}c:{d:{if(!J[d+48>>2])break d;e=K[b+11|0];a=e<<24>>24<0;d=a?J[b+4>>2]:e;if((d|0)<10)break d;e=a?J[b>>2]:b;f=e+(d<<2)|0;a=e;while(1){a=og(a,69,d-9|0);if(!a)break d;if(gd(a,781312,10)){a=a+4|0;d=f-a>>2;if((d|0)>=10)continue;break d}break}if((a|0)==(f|0)|(a|0)!=(e|0))break d;J[695492]=0;b=ma(2797,c+36|0,b|0,10,-1,c+16|0)|0;a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;break c}H[c+35|0]=0;H[c+34|0]=0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;e=K[b+11|0];a=e<<24>>24;e:{f:{g:{if(H[c+ -59|0]>=0){if((a|0)>=0){J[c+56>>2]=J[b+8>>2];a=J[b+4>>2];J[c+48>>2]=J[b>>2];J[c+52>>2]=a;break g}a=J[b+4>>2];e=J[b>>2];J[695492]=0;ga(1630,c+48|0,e|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break g;break f}d=J[b>>2];f=J[b+4>>2];J[695492]=0;a=(a|0)<0;ga(1629,c+48|0,(a?d:b)|0,(a?f:e)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f}J[695492]=0;J[c+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[b+11|0]>=0)break d;qc(J[b>>2]);break d}a=Z()|0;if(H[c+27|0]>=0)break e; -qc(J[c+16>>2]);break e}a=Z()|0}if(H[b+11|0]>=0)break c;qc(J[b>>2]);break c}J[695492]=0;d=0;a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+59|0]>=0)break a;qc(J[c+48>>2]);break a}a=Z()|0}if(H[c+59|0]<0)qc(J[c+48>>2]);ba(a|0);B()}bc=c- -64|0;return d|0}function maa(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;n=L[a+84>>1];h=n>>>3|0;l=(c>>>0)/(h>>>0)|0;d=J[J[a+584>>2]+4>>2];m=zc(c);if(m){a:{if((c|0)<=(d|0))break a;if((d|0)<5){e=c;a=b;while(1){b:switch(d|0){default:g=a+d| -0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;case 3:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;case 2:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;case 1:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;break;case 0:break b}e=e-d|0;if((e|0)>(d|0))continue;break}break a}g=d-4|0;o=d&3;i=d-5>>>0>2;j=c;a=b;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}k=0;e=g;if(o)while(1){f=a+d|0;H[f|0]=K[f|0]+K[a|0];e=e-1|0;a=a+1|0;k=k+1|0;if((o|0)!=(k|0))continue;break}if(!i)break g; -while(1){f=a+d|0;H[f|0]=K[f|0]+K[a|0];f=(a+1|0)+d|0;H[f|0]=K[f|0]+K[a+1|0];f=(a+2|0)+d|0;H[f|0]=K[f|0]+K[a+2|0];f=(a+3|0)+d|0;H[f|0]=K[f|0]+K[a+3|0];a=a+4|0;f=(e|0)>4;e=e-4|0;if(f)continue;break}}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}j=j-d|0;if((j|0)>(d|0))continue;break}}Ne(m,b,c);if((l|0)>0){a=h>>>0<=1?1:h;g=a&8190;e=a&1;i=0;c=n>>>0<16;while(1){f=i+m|0;j=P(h,i)+b|0;a=0;k=0;if(!c)while(1){H[a+ -j|0]=K[f+P((a^-1)+h|0,l)|0];H[j+(a|1)|0]=K[f+P((a^-2)+h|0,l)|0];a=a+2|0;k=k+2|0;if((g|0)!=(k|0))continue;break}if(e)H[a+j|0]=K[f+P((a^-1)+h|0,l)|0];i=i+1|0;if((l|0)>(i|0))continue;break}}qc(m)}}function C7(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=bc-32|0;bc=d;g=!a;a:{if(g|((g?-1:J[a+8>>2])|0)!=4)break a;f=a?J[a+36>>2]:0;if(!(!f|b)){c=Hk(a,1);break a}xf(a,d+28|0,d+24|0,0);e=uh(J[d+28>>2],J[d+24>>2],8);if(!e)break a;if(!(!e|!a|(a|0)==(e|0))){J[e+20>>2]=J[a+20>>2];J[e+24>>2]=J[a+24>>2]}i=a?J[a+ -40>>2]:0;j=a?J[a+12>>2]:-1;k=e?J[e+40>>2]:0;g=e?J[e+12>>2]:-1;b:{if((b|0)!=1){a=J[d+24>>2];if((a|0)<=0)break b;c=J[d+28>>2];if((c|0)<=0)break b;b=0;while(1){if((c|0)>0){h=(P(b,g)<<2)+k|0;f=(P(b,j)<<2)+i|0;a=0;while(1){H[a+h^3]=P(J[f+(a>>>1&2147483644)>>2]>>>((a^-1)<<2)&15,17);a=a+1|0;c=J[d+28>>2];if((a|0)<(c|0))continue;break}a=J[d+24>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}break b}c=p7();c:{if(!f){th(c,0,0,0);th(c,17,17,17);th(c,34,34,34);th(c,51,51,51);th(c,68,68,68);th(c,85,85,85);th(c,102,102, -102);th(c,119,119,119);th(c,136,136,136);th(c,153,153,153);th(c,170,170,170);th(c,187,187,187);th(c,204,204,204);th(c,221,221,221);th(c,238,238,238);th(c,255,255,255);break c}b=f?J[f+12>>2]:0;if((b|0)<=0)break c;a=0;while(1){Up(f,a,d+20|0,d+16|0,d+12|0);th(c,J[d+20>>2],J[d+16>>2],J[d+12>>2]);a=a+1|0;if((b|0)!=(a|0))continue;break}}OM(e,c);a=J[d+24>>2];if((a|0)<=0)break b;c=J[d+28>>2];if((c|0)<=0)break b;b=0;while(1){if((c|0)>0){h=(P(b,g)<<2)+k|0;f=(P(b,j)<<2)+i|0;a=0;while(1){H[a+h^3]=J[f+(a>>>1& -2147483644)>>2]>>>((a^-1)<<2)&15;a=a+1|0;c=J[d+28>>2];if((a|0)<(c|0))continue;break}a=J[d+24>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}c=e}bc=d+32|0;return c}function _v(a,b){var c=0,d=0,e=0,f=0;f=J[a+420>>2];z_(a);d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=255;e=J[d+4>>2]-1|0;J[d+4>>2]=e;a:{if(e)break a;if(gc[J[d+12>>2]](a)|0)break a;e=J[a>>2];J[e+20>>2]=25;gc[J[e>>2]](a)}d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=b-48;b=J[d+4>>2]-1|0;J[d+4>>2]=b;b:{if(b)break b;if(gc[J[d+12>>2]](a)|0)break b;b=J[a>> -2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(J[a+288>>2]>0){d=0;while(1){b=d<<2;e=J[(b+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2])){c=J[((J[e+20>>2]<<2)+f|0)+76>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]= -0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;b=b+f|0;J[b+52>>2]=0;J[b+36>>2]=0}if(J[a+364>>2])wc(J[((J[e+24>>2]<<2)+f|0)+140>>2],0,256);d= -d+1|0;if((d|0)>2])continue;break}}J[f+28>>2]=11;J[f+32>>2]=-1;J[f+20>>2]=0;J[f+24>>2]=0;J[f+12>>2]=0;J[f+16>>2]=65536}function ewb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{c:{d:{if(K[a+288|0]){d=J[a+2248>>2];if(!K[a+498|0]){H[a+2272|0]=0;b=m8(a,d,b);if(b)break b}b=0;if(!(!K[d+31|0]|!K[d+32|0]))b=Lh(a,d,0);if(K[a+497|0])break d;H[a+288|0]=0;break d}f=J[a+512>>2];if(f){e:{if(K[a+498|0])break e;d=J[f+88>>2];c=J[d+1172>>2];f:{if(!c)break f;e=J[d+1176>>2];if(!e)break f;gc[J[a+156>>2]](e,c); -J[d+1176>>2]=0}c=J[d+1144>>2];g:{if(!c)break g;e=J[d+1148>>2];if(!e)break g;gc[J[a+156>>2]](e,c);J[d+1148>>2]=0}d=tc(d,J[b+88>>2],1180);H[f+32|0]=K[b+32|0];c=J[d+1172>>2];if(c){c=gc[J[a+152>>2]](c)|0;J[d+1176>>2]=c;if(!c)break a;tc(c,J[J[b+88>>2]+1176>>2],J[d+1172>>2])}c=J[d+1144>>2];if(!c)break e;c=gc[J[a+152>>2]](c)|0;J[d+1148>>2]=c;if(!c)break a;tc(c,J[J[b+88>>2]+1148>>2],J[d+1144>>2])}if(!K[f+31|0]|!K[f+32|0])break c;b=Lh(a,f,0);break d}f=J[a+528>>2];h:{if(K[a+498|0])break h;d=J[f+88>>2];c=J[d+ -1172>>2];i:{if(!c)break i;e=J[d+1176>>2];if(!e)break i;gc[J[a+156>>2]](e,c);J[d+1176>>2]=0}c=J[d+1144>>2];j:{if(!c)break j;e=J[d+1148>>2];if(!e)break j;gc[J[a+156>>2]](e,c);J[d+1148>>2]=0}d=tc(d,J[b+88>>2],1180);H[f+32|0]=K[b+32|0];c=J[d+1172>>2];if(c){c=gc[J[a+152>>2]](c)|0;J[d+1176>>2]=c;if(!c)break a;tc(c,J[J[b+88>>2]+1176>>2],J[d+1172>>2])}c=J[d+1144>>2];if(!c)break h;c=gc[J[a+152>>2]](c)|0;J[d+1148>>2]=c;if(!c)break a;tc(c,J[J[b+88>>2]+1148>>2],J[d+1144>>2])}b=Lh(a,f,0)}if(b)break b}if(K[a+497| -0]){H[a+498|0]=99;return 0}b=0;H[a+498|0]=0}return b|0}Dc(a,1,0,0);return 1}function Dn(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0;i=bc-16|0;bc=i;J[i+8>>2]=c;J[i+12>>2]=b;b=i+4|0;c=J[d+28>>2];J[b>>2]=c;J[c+4>>2]=J[c+4>>2]+1;J[695492]=0;j=$(6537,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){b=J[b>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)gc[J[J[b>>2]+8>>2]](b);J[e>>2]=0;b=0;a:{while(1){if(b|(g|0)==(h|0))break a;b:{if(Lj(i+12|0,i+8|0))break b;c:{if((gc[J[J[j>>2]+52>>2]](j,J[g>>2],0)|0)==37){if((g+4| -0)==(h|0))break b;c=0;d:{e:{b=gc[J[J[j>>2]+52>>2]](j,J[g+4>>2],0)|0;if((b|0)==69)break e;k=1;if((b&255)==48)break e;break d}if((g+8|0)==(h|0))break b;k=2;c=b;b=gc[J[J[j>>2]+52>>2]](j,J[g+8>>2],0)|0}l=i,m=gc[J[J[a>>2]+36>>2]](a,J[i+12>>2],J[i+8>>2],d,e,f,b,c)|0,J[l+12>>2]=m;g=((k<<2)+g|0)+4|0;break c}if(gc[J[J[j>>2]+12>>2]](j,1,J[g>>2])|0){while(1){f:{g=g+4|0;if((h|0)==(g|0)){g=h;break f}if(gc[J[J[j>>2]+12>>2]](j,1,J[g>>2])|0)continue}break}while(1){c=i+12|0;if(Lj(c,i+8|0))break c;b=J[c>>2];k=J[b+ -12>>2];g:{if((k|0)==J[b+16>>2]){b=gc[J[J[b>>2]+36>>2]](b)|0;break g}b=J[k>>2]}if(!(gc[J[J[j>>2]+12>>2]](j,1,b)|0))break c;oq(c);continue}}k=i+12|0;b=J[k>>2];c=J[b+12>>2];h:{if((c|0)==J[b+16>>2]){b=gc[J[J[b>>2]+36>>2]](b)|0;break h}b=J[c>>2]}if((gc[J[J[j>>2]+28>>2]](j,b)|0)==(gc[J[J[j>>2]+28>>2]](j,J[g>>2])|0)){g=g+4|0;oq(k);break c}J[e>>2]=4}b=J[e>>2];continue}break}J[e>>2]=4}if(Lj(i+12|0,i+8|0))J[e>>2]=J[e>>2]|2;bc=i+16|0;return J[i+12>>2]}c=Z()|0;a=J[i+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)== --1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function BS(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=bc-32|0;bc=h;a:{f=J[b+1076>>2];if(f){gc[J[J[f>>2]+8>>2]](a,f,c);break a}f=P(J[c+20>>2],J[c+16>>2]);d=f>>31;i=AS(b+44|0,J[c+24>>2],(d^f)-d|0);b:{f=b+16|0;e=J[f>>2];if(!e)break b;d=f;while(1){g=M[e+16>>2]>>0;d=g?d:e;e=J[(g?e+4|0:e)>>2];if(e)continue;break}if((d|0)==(f|0)|M[d+16>>2]>i>>>0)break b;J[a>>2]=J[d+20>>2];b=a;a=J[d+24>>2];J[b+4>>2]=a;if(!a)break a;J[a+4>>2]=J[a+4>>2]+1;break a}e=J[b+40>>2]+1|0;J[b+ -40>>2]=e;g=rc(32);J[g+12>>2]=0;J[g>>2]=2431668;J[g+4>>2]=0;J[g+8>>2]=0;H[g+31|0]=0;J[g+20>>2]=0;J[a+4>>2]=g;d=g+12|0;J[a>>2]=d;J[g+16>>2]=e;J[h+28>>2]=g;J[h+24>>2]=d;J[g+4>>2]=J[g+4>>2]+1;J[695492]=0;d=J[h+28>>2];J[h>>2]=J[h+24>>2];J[h+4>>2]=d;ca(6423,b|0,c|0,h|0);c=J[695492];J[695492]=0;c:{d:{if((c|0)!=1){J[h+12>>2]=i;j=J[a>>2];J[h+16>>2]=j;c=J[a+4>>2];J[h+20>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;e=f;d=J[e>>2];e:{f:{if(!d)break f;while(1){e=d;f=J[d+16>>2];if(f>>>0>i>>>0){f=d;d=J[d>>2];if(d)continue;break f}if(f>>> -0>=i>>>0)break e;d=J[e+4>>2];if(d)continue;break}f=e+4|0}J[695492]=0;d=$(4,28)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[d+16>>2]=i;J[d+24>>2]=c;J[d+20>>2]=j;J[h+16>>2]=0;J[h+20>>2]=0;J[d+8>>2]=e;J[d>>2]=0;J[d+4>>2]=0;J[f>>2]=d;a=J[J[b+12>>2]>>2];if(a){J[b+12>>2]=a;d=J[f>>2]}Ic(J[b+16>>2],d);J[b+20>>2]=J[b+20>>2]+1;c=J[h+20>>2]}if(!c)break a;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break a;gc[J[J[c>>2]+8>>2]](c);Vc(c);break a}e=Z()|0;break c}e=Z()|0;zS(h+12|0)}Ie(a);ba(e|0);B()}bc=h+32|0}function Lja(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;d=K[b+11|0];e=d<<24>>24<0;h=e?J[b+4>>2]:d;l=e?J[b>>2]:b;d=K[a+11|0];e=d<<24>>24<0;d=e?J[a+4>>2]:d;e=e?J[a>>2]:a;while(1){a:{if(h){f=d+e|0;d=e+g|0;g=f-d|0;if((h|0)>(g|0))break a;i=H[l|0];while(1){g=(g-h|0)+1|0;if(!g)break a;d=pg(d,i,g);if(!d)break a;if(Wc(d,l,h)){d=d+1|0;g=f-d|0;if((h|0)<=(g|0))continue;break a}break}if((d|0)==(f|0))break a;g=d-e|0}if((g|0)==-1)break a;e=K[c+11|0];d=e<<24>>24<0;l=d?J[c>>2]:c;d=d?J[c+4>>2]:e;i=bc-16| -0;bc=i;J[i+12>>2]=h;b:{c:{h=g;if(K[a+11|0]>>>7|0)f=J[a+4>>2];else f=K[a+11|0]&127;if(h>>>0<=f>>>0){j=f-h|0;J[i+8>>2]=j;e=bc-16|0;bc=e;bc=e+16|0;e=i+8|0;k=i+12|0;J[i+12>>2]=J[(M[e>>2]>2]?e:k)>>2];k=J[i+12>>2];e=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(k+(e-f|0)>>>0>=d>>>0){if(K[a+11|0]>>>7|0)e=J[a>>2];else e=a;k=J[i+12>>2];if(!((k|0)==(d|0)|(j|0)==(k|0))){m=j-k|0;j=e+h|0;if(d>>>0>>0)break c;d:{if(l>>>0<=j>>>0|e+f>>>0<=l>>>0)break d;if(j+k>>>0<=l>>>0){l=(d-k|0)+l|0;break d}Dm(j,l,k); -j=J[i+12>>2];k=0;J[i+12>>2]=0;l=d+l|0;d=d-j|0;h=h+j|0}j=e+h|0;Dm(j+d|0,j+k|0,m)}Dm(e+h|0,l,d);Gu(a,e,(d+f|0)-J[i+12>>2]|0);break b}Zr(a,e,d+f-(e+k)|0,f,h,k,d,l);break b}ax(a);B()}Dm(j,l,d);Dm(d+j|0,j+J[i+12>>2]|0,m);Gu(a,e,(d+f|0)-J[i+12>>2]|0)}bc=i+16|0;d=K[b+11|0];e=d<<24>>24<0;h=e?J[b+4>>2]:d;l=e?J[b>>2]:b;d=K[a+11|0];f=d<<24>>24<0;e=f?J[a>>2]:a;d=f?J[a+4>>2]:d;f=g;g=K[c+11|0];g=f+(g<<24>>24<0?J[c+4>>2]:g)|0;if(d>>>0>=g>>>0)continue}break}}function cT(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0; -h=J[a+88>>2];f=J[a+92>>2];a:{if((h|0)>(f|0)){c=J[a+84>>2];break a}e=h<<6;i=h<<1;c=rc(i>>>0>134217727?-1:e|8);J[c+4>>2]=i;c=c+8|0;b:{c:{d:{if(!h)break d;b=c;d=e-32|0;e=(d>>>5|0)+1&2;if(e)while(1){J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=0;J[b+4>>2]=0;b=b+32|0;g=g+1|0;if((e|0)!=(g|0))continue;break}if(d>>>0>=96){e=(i<<5)+c|0;while(1){J[b+96>>2]=0;J[b+100>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+120>>2]=0;J[b+112>> -2]=0;J[b+116>>2]=0;J[b+88>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;b=b+128|0;if((e|0)!=(b|0))continue;break}}if((h|0)<=0)break d;g=J[a+84>>2];e=0;while(1){b=e<<5;d=b+c|0;b=b+g|0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];j=O[b+16>>3];J[d+24>>2]=0;O[d+16>>3]=j;if(J[b+24>>2]){f=rc(32);J[d+24>>2]=f;d=J[b+24>>2];b=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=b;b=J[d+28>>2];J[f+24>>2]=J[d+24>>2];J[f+28>>2]=b;b=J[d+20>>2];J[f+16>>2]=J[d+16>>2];J[f+20>>2]=b;b=J[d+12>>2];J[f+8>>2]=J[d+8>>2]; -J[f+12>>2]=b}e=e+1|0;if((h|0)!=(e|0))continue;break}break c}g=J[a+84>>2];if(!g)break b}b=J[g-4>>2];if(b){b=(b<<5)+g|0;while(1){b=b-32|0;e=J[b+24>>2];if(e){qc(e);J[b+24>>2]=0}if((b|0)!=(g|0))continue;break}}qc(g-8|0);J[a+84>>2]=0;i=J[a+88>>2]<<1;f=J[a+92>>2]}J[a+88>>2]=i;J[a+84>>2]=c}J[a+92>>2]=f+1;c=(f<<5)+c|0;J[c+16>>2]=0;J[c+20>>2]=0;J[c>>2]=0;J[c+4>>2]=0;a=J[c+24>>2];if(a){qc(a);J[c+24>>2]=0}return c}function FAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-48|0;bc=c;e=J[b>>2];if(e){J[e+4>>2]=J[e+4>> -2]+1;d=J[b>>2]}J[695492]=0;J[c+40>>2]=d;ca(5132,c+44|0,c+40|0,1024);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){b=J[c+40>>2];J[c+40>>2]=0;c:{if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}e=J[a+16>>2];J[695492]=0;da(5178,J[c+44>>2],e|0);b=J[695492];J[695492]=0;d:{e:{f:{if((b|0)!=1){if(e){d=0;b=J[a+20>>2];if(!b)break e;while(1){a=J[b+8>>2];J[695492]=0;da(5179,a|0,c+44| -0);a=J[695492];J[695492]=0;if((a|0)==1)break f;d=d+1|0;b=J[b>>2];if(b)continue;break}if((d|0)!=(e|0))break e}a=J[c+44>>2];J[c+44>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}b=Z()|0;a=c+44|0;break b}b=Z()|0;a=c+44|0;break b}J[c+32>>2]=0;J[695492]=0;J[c>>2]=d;J[c+4>>2]=e;J[c+36>>2]=J[682146];ga(5180,c+32|0,2376845,c|0)|0;a=J[695492];J[695492]=0;g:{h:{i:{if((a| -0)!=1){a=J[c+32>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,c+8|0,a|0,2373371,226,2389531,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break i;J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break h;B()}b=Z()|0;break g}b=Z()|0;break g}b=Z()|0;Fc(a)}sc(c+32|0);a=c+44|0;break b}bc=c+48|0;return}b=Z()|0;a=c+40|0}vc(a);ba(b|0);B()}ea(0)|0;yc();B()}function Cpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288| -0]))break b;if(K[a+289|0])break b;if(c&1){Dc(a,1028,0,0);return 1028}i=c>>>1|0;c:{if(c>>>0<2)break c;d:{e:{h=gc[J[a+152>>2]](c)|0;if(h){f=i>>>0<=1?1:i;k=f&3;if(c>>>0>=8)break e;f=h;break d}break a}l=f&2147483644;f=h;while(1){g=K[d|0]|K[d+1|0]<<8;I[f>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[f+2>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;I[f+4>>1]=g<<8|g>>>8;g=K[d+6|0]|K[d+7|0]<<8;I[f+6>>1]=g<<8|g>>>8;d=d+8|0;f=f+8|0;j=j+4|0;if((l|0)!=(j|0))continue;break}}if(!k)break c;j=0;while(1){l=K[d|0]|K[d+1|0]<<8; -I[f>>1]=l<<8|l>>>8;d=d+2|0;f=f+2|0;j=j+1|0;if((k|0)!=(j|0))continue;break}}f:{g:{h:{if(!K[a+114|0])break h;d=gc[J[a+152>>2]](36)|0;if(!d)break g;J[d+4>>2]=1080;J[d>>2]=1081;f=J[a+700>>2];i:{if(f){J[f+8>>2]=d;break i}J[a+696>>2]=d}J[d+8>>2]=0;J[d+12>>2]=f;J[a+700>>2]=d;J[d+16>>2]=J[a+436>>2];J[d+20>>2]=J[a+440>>2];J[d+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=d;J[d+28>>2]=i;if(!i)break h;k=d;f=i<<1;d=gc[J[a+152>>2]](f)|0;J[k+32>>2]=d;if(!d)break g;tc(d,h,f)}d8(a,i,h); -d=0;break f}Dc(a,1,0,0);d=1}j:{if(d)break j;if(K[a+112|0]){d=gc[J[b+4>>2]](a,b,e)|0;if(d)break j;J[J[e>>2]+32>>2]=i;if(!c)return 0;b=gc[J[a+152>>2]](c)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(!b)break a;tc(b,h,c)}d=0;if(!c|!h)break j;gc[J[a+156>>2]](h,c)}return d|0}Dc(a,1029,0,0);return 1029}Dc(a,1,0,0);return 1}function Ara(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;d=bc-16|0;bc=d;if(f>>>0>=2){o=P((g|0)/2|0,6);g=((e<<2)+b|0)+(h<<2)|0;n= -(h<<1)+e<<2;while(1){c=e;if(e>>>0>=2)while(1){h=K[i+4|0];j=K[i+5|0];k=d+12|0;l=d+8|0;m=d+4|0;_d(J[a+68>>2],K[i|0],h,j,k,l,m);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+1|0],h,j,k,l,m);J[b+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+2|0],h,j,k,l,m);J[g>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+3|0],h,j,k,l,m);J[g+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;g=g+8|0;b=b+8|0;c=c-2|0;if(c>>>0>1)continue; -break}if(c){c=K[i+4|0];h=K[i+5|0];j=d+12|0;k=d+8|0;l=d+4|0;_d(J[a+68>>2],K[i|0],c,h,j,k,l);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+2|0],c,h,j,k,l);J[g>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;g=g+4|0;b=b+4|0}i=i+o|0;g=g+n|0;b=b+n|0;f=f-2|0;if(f>>>0>1)continue;break}}a:{if(!f)break a;if(e>>>0>=2)while(1){c=K[i+4|0];f=K[i+5|0];g=d+12|0;h=d+8|0;j=d+4|0;_d(J[a+68>>2],K[i|0],c,f,g,h,j);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;_d(J[a+68>> -2],K[i+1|0],c,f,g,h,j);J[b+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;b=b+8|0;e=e-2|0;if(e>>>0>1)continue;break}if(!e)break a;_d(J[a+68>>2],K[i|0],K[i+4|0],K[i+5|0],d+12|0,d+8|0,d+4|0);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216}bc=d+16|0}function Aqb(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;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;if(e){r=e-2|0;u=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];f=a+4|0;g=g+4|0;a:{if(n>>> -0>r>>>0)break a;h=n?(n|0)==(r|0)?d:b:c;p=!n&u;if(p){if(h>>>0<2)break a;k=h-1|0;l=k&3;if(h-2>>>0>=3){k=k&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((k|0)!=(h|0))continue;break}}h=0;if(!l)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;h=h+1|0;if((l|0)!=(h|0))continue;break}break a}k=a+2|0;l=h+1>>>1|0;if(h>>>0>=3){q=l>>>0<=2?2:l;m=1;v=h<<1;i= -a+6|0;while(1){I[g>>1]=L[a>>1];o=g+2|0;j=L[a+2>>1];b:{if((j|0)==L[a+6>>1]){I[o>>1]=j;break b}j=K[k|0]|K[k+1|0]<<8;s=j>>>8|0;t=K[i|0]|K[i+1|0]<<8;j=((j<<8|s)&65535)+((h+(P(((t<<8|t>>>8)&65535)-((s|j<<8)&65535)|0,m)<<1)|0)/(v|0)|0)&65535;j=j<<8|j>>>8;H[o|0]=j;H[o+1|0]=j>>>8}g=g+4|0;m=m+1|0;if((q|0)!=(m|0))continue;break}}if(h>>>0<=l>>>0)break a;j=h<<1;m=p?0:f;o=m+2|0;while(1){I[g>>1]=L[m>>1];a=g+2|0;i=L[k>>1];c:{if((i|0)==L[m+2>>1]){I[a>>1]=i;break c}i=K[k|0]|K[k+1|0]<<8;q=i>>>8|0;p=K[o|0]|K[o+1|0]<< -8;i=((i<<8|q)&65535)+((h+(P(((p<<8|p>>>8)&65535)-((q|i<<8)&65535)|0,l)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[a|0]=i;H[a+1|0]=i>>>8}g=g+4|0;l=l+1|0;if((h|0)!=(l|0))continue;break}}n=n+1|0;if((n|0)!=(e|0))continue;break}}return 0}function uv(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{e:{f:{e=J[a+708>>2];switch(e|0){case 1:break d;case 0:break e;default:break f}}e=e-1|0;J[a+708>>2]=e;if((e|0)!=1)break e;Yc(a,68235);Ld(a,c);return}d=J[a+348>>2];e=J[a+200>>2];g:{h:{if(e&4){if((d|0)==1229209940){e=a+348| -0;d=1229209940;break h}J[a+200>>2]=e|8}e=a+348|0;if(d&536870912)break g}if((Dv(a,d)|0)==3)break g;if(!J[a+640>>2])break c}if(!(K[a+205|0]&128|J[a+640>>2]))break d;J[a+728>>2]=c;H[a+720|0]=0;d=J[a+348>>2];H[a+719|0]=d;H[a+718|0]=d>>>8;H[a+717|0]=d>>>16;H[a+716|0]=d>>>24;i:{if(!c){J[a+724>>2]=0;break i}d=_g(a,c);J[a+724>>2]=d;qg(a,d,c);pe(a,d,c)}g=a+716|0;c=J[a+640>>2];j:{k:{if(!c)break k;c=gc[c|0](a,g)|0;if((c|0)<0)break b;if(c)break j;c=J[e>>2];if(c&536870912)break k;if((Dv(a,c)|0)!=3)break a}e=0; -l:{if(!a|!b)break l;m:{c=J[b+192>>2];n:{if(!(c^2147483647))break n;c=c+1|0;if(c>>>0>214748363)break n;c=gg(a,P(c,20));if(c)break m}Yc(a,65422);break l}d=c;c=J[b+188>>2];h=tc(d,c,P(J[b+192>>2],20));rd(a,c);J[b+188>>2]=0;while(1){c=P(e,20);d=c+g|0;f=J[d>>2];c=c+(P(J[b+192>>2],20)+h|0)|0;H[c+4|0]=0;J[c>>2]=f;f=J[d+12>>2];J[c+12>>2]=f;H[c+16|0]=J[a+200>>2];o:{if(!f){J[c+8>>2]=0;break o}f=gg(a,f);J[c+8>>2]=f;if(!f){Yc(a,65422);J[c+12>>2]=0;break o}tc(f,J[d+8>>2],J[d+12>>2])}e=e+1|0;if((e|0)!=1)continue; -break}J[b+188>>2]=h;J[b+192>>2]=J[b+192>>2]+1;J[b+184>>2]=J[b+184>>2]|512}}rd(a,J[a+724>>2]);c=0;J[a+724>>2]=0}Ld(a,c);return}Ev(a,68277);B()}Ev(a,68300);B()}Ev(a,68277);B()}function b5a(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;f=bc-32|0;bc=f;a:{d=J[a+4>>2];j=J[a>>2];h=(d-j|0)/12|0;c=h+1|0;if(c>>>0<357913942){e=a+8|0;g=J[e>>2];J[f+28>>2]=e;e=0;g=(g-j|0)/12|0;i=g<<1;g=g>>>0>=178956970?357913941:c>>>0>>0?i:c;if(g){if(g>>>0>=357913942)break a;e=rc(P(g,12))}J[f+12>>2]=e;c=P(h,12)+e| -0;J[f+20>>2]=c;h=P(g,12)+e|0;J[f+24>>2]=h;J[f+16>>2]=c;J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;g=J[b+4>>2];b:{c:{d:{b=J[b>>2];if((g|0)!=(b|0)){e=g-b|0;i=e>>3;if(i>>>0>=536870912){J[695492]=0;_(2399,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;B()}J[695492]=0;e=$(4,e|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break d;J[c>>2]=e;J[c+4>>2]=e;J[c+8>>2]=(i<<3)+e;while(1){O[e>>3]=O[b>>3];e=e+8|0;b=b+8|0;if((g|0)!=(b|0))continue;break}J[c+4>>2]=e}e=c+12|0;J[f+20>>2]=e;if((d|0)!=(j|0))break c;b=d;break b}e=Z()| -0;a=J[c>>2];if(a){J[c+4>>2]=a;qc(a)}a=J[f+20>>2];c=J[f+16>>2];if((a|0)!=(c|0))while(1){b=a-12|0;J[f+20>>2]=b;d=J[b>>2];if(d){J[a-8>>2]=d;qc(d);a=J[f+20>>2]}else a=b;if((c|0)!=(a|0))continue;break}a=J[f+12>>2];if(a)qc(a);ba(e|0);B()}while(1){c=c-12|0;J[c+8>>2]=0;d=d-12|0;J[c>>2]=J[d>>2];J[c+4>>2]=J[d+4>>2];J[c+8>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;if((d|0)!=(j|0))continue;break}d=J[a+4>>2];h=J[f+24>>2];e=J[f+20>>2];b=J[a>>2]}J[a+8>>2]=h;J[a+4>>2]=e;J[a>>2]=c;if((b|0)!=(d|0)){while(1){a= -d-12|0;c=J[a>>2];if(c){J[d-8>>2]=c;qc(c)}d=a;if((b|0)!=(a|0))continue;break}d=b}if(d)qc(d);bc=f+32|0;return}Gp(a);B()}Sd();B()}function M1(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=a+320|0;h=J[a+344>>2];a:{b:{c:{d:{while(1){e:switch(h|0){case 3:break b;case 2:break c;case 1:break d;case 0:break e;default:continue}break}Nw(d,J[a+340>>2]!=0);jC(d,O[a+280>>3],J[a+340>>2]);J[a+344>>2]=1;J[a+348>>2]=0}if(M[a+264>>2]<2|M[a+320>>2]<2)break b;J[a+344>>2]=2;J[a+348>>2]=1;f=J[J[a+332>>2]>>2];J[a+312>>2]=f;J[a+316>> -2]=f+24;O[a+304>>3]=O[f+16>>3];O[b>>3]=O[f>>3];O[c>>3]=O[f+8>>3];f=1;e=O[a+272>>3];if(!(e>=0))break b;J[a+288>>2]=0;J[a+292>>2]=0;b=0;J[a+296>>2]=0;if(!(e>0))break b;c=J[a+264>>2];while(1){g=O[(b<<3)+a>>3];if(!(g>2]=0;J[a+292>>2]=0;b=b+1|0;J[a+296>>2]=b;e=e-g;if(b>>>0>=c>>>0){J[a+296>>2]=0;b=0}if(e>0)continue;break}return 1}d=J[a+296>>2];f=d&1?1:2;g=O[a+288>>3];i=O[(d<<3)+a>>3]-g;e=O[a+304>>3];if(i>2]=0;J[a+292>>2]=0;e=e-i;O[a+304>>3]=e;d=d+1|0;J[a+296>>2]=d>>>0>2]?d:0;h=b;d=J[a+316>>2];g=O[d>>3];b=J[a+312>>2];O[h>>3]=g-e*(g-O[b>>3])/O[b+16>>3];e=O[d+8>>3];O[c>>3]=e-(e-O[b+8>>3])*O[a+304>>3]/O[b+16>>3];return f}O[a+288>>3]=g+e;d=J[a+316>>2];O[b>>3]=O[d>>3];O[c>>3]=O[d+8>>3];J[a+312>>2]=d;b=J[a+348>>2]+1|0;J[a+348>>2]=b;O[a+304>>3]=O[d+16>>3];c=J[a+320>>2];if(J[a+340>>2]){if(b>>>0>c>>>0){J[a+344>>2]=3;return f}h=a;d=J[a+332>>2];a=b>>>0>>0?b:0;J[h+316>>2]=J[d+(a>>>4&268435452)>>2]+P(a&63,24);return f}if(b>>>0>=c>>>0){J[a+344>>2]=3;return f}J[a+316>> -2]=J[J[a+332>>2]+(b>>>4&268435452)>>2]+P(b&63,24)}return f}O[a+288>>3]=e;return 1}function ux(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;g=P(d,1348)+a|0;k=J[g+44>>2];c=b?J[(P(b,12)+c|0)-12>>2]:0;f=J[J[a+2748>>2]+40>>2];e=(f|0)/256|0;l=(P(f,6E3)|0)/2048|0;a:{if((k|0)<=0)break a;b=J[g+52>>2];h=b+P(k,44)|0;m=f+255>>>0<511?1:e;i=J[(P(d,1348)+a|0)+68>>2];b:{if(!c){d=b;while(1){if((i|0)==H[d+1|0]){f=I[d+2>>1];a=b;while(1){c:{if((i|0)!=(0-H[a+1|0]|0))break c;g=I[a+2>>1];if((g|0)<=(f|0))break c; -e=I[d+8>>1];c=I[a+8>>1];j=(c|0)>(e|0)?e:c;e=I[d+6>>1];c=I[a+6>>1];c=j-((c|0)<(e|0)?e:c)|0;if((c|0)<(m|0))break c;c=(g-f|0)+((l|0)/(c|0)|0)|0;if((c|0)>2]){J[d+20>>2]=a;J[d+28>>2]=c}if((c|0)>=J[a+28>>2])break c;J[a+20>>2]=d;J[a+28>>2]=c}a=a+44|0;if(h>>>0>a>>>0)continue;break}}d=d+44|0;if(h>>>0>d>>>0)continue;break}break b}d=b;while(1){if((i|0)==H[d+1|0]){j=I[d+2>>1];a=b;while(1){d:{if((i|0)!=(0-H[a+1|0]|0))break d;f=I[a+2>>1];if((f|0)<=(j|0))break d;g=I[d+8>>1];e=I[a+8>>1];n=(e|0)>(g|0)?g:e; -g=I[d+6>>1];e=I[a+6>>1];g=n-((e|0)<(g|0)?g:e)|0;if((g|0)<(m|0))break d;e=(f-j<<10)/(c|0)|0;f=32E3;e:{if((e|0)>11024)break e;f=0;if((e|0)<1025)break e;e=e-1024|0;f=(P(e,e)>>>0)/3E3|0}e=f+((l|0)/(g|0)|0)|0;if((e|0)>2]){J[d+20>>2]=a;J[d+28>>2]=e}if((e|0)>=J[a+28>>2])break d;J[a+20>>2]=d;J[a+28>>2]=e}a=a+44|0;if(h>>>0>a>>>0)continue;break}}d=d+44|0;if(h>>>0>d>>>0)continue;break}}if((k|0)<=0)break a;while(1){a=J[b+20>>2];if(!(!a|J[a+20>>2]==(b|0))){J[b+20>>2]=0;J[b+24>>2]=J[a+20>>2]}b=b+44|0;if(h>>> -0>b>>>0)continue;break}}}function Npa(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;b=J[a+12>>2];gc[J[J[b>>2]+24>>2]](b);J[a+24>>2]=0;J[c>>2]=0;a:{b:{c:{b=J[a+16>>2];if(!b)break c;d=J[J[b>>2]+76>>2];J[695492]=0;e=d;d=c+12|0;da(e|0,d|0,b|0);b=J[695492];J[695492]=0;d:{if((b|0)!=1){J[695492]=0;aa(4993,c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break c}break b}a=Z()|0;vc(c+12|0);break d}a=Z()|0}break a}J[695492]=0;ia(5534,c+4|0,0,0,c|0);b=J[695492];J[695492]=0;e:{f:{if((b|0)!=1){b=J[c+4>>2];g:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break g;a=Z()|0;break f}J[c+12>>2]=0}J[695492]=0;aa(4993,a+16|0,c+12|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break h;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e| -0)!=1){if(d)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break b}a=Z()|0;vc(c+12|0);break f}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2728584)>>2];sc(c+4|0);a=J[c>>2];J[c>>2]=0;i:{if(!a)break i;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(b)break i;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}bc=c+16|0;return}a=Z()|0;break e}sc(c+4|0)}break a}ea(0)|0;yc();B()}vc(c);ba(a|0);B()}function _I(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;g=bc-96|0;bc=g;J[g+80>>2]=13;J[g+64>>2]=13;i=J[a+24>>2];a:{b:{c:{d:{if(J[FI(b,811150,g+80|0)>>2]!=7)break d;b=g- -64|0;if(J[Bc(J[g+88>>2],809748,b,0)>>2]!=8)break d;j=rc(56);J[695492]=0;h=$(4,160)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[695492]=0;b=ga(3307,h|0,i|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;i=ha(3308,j|0,i|0,b|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[g+48>>2]=13;J[g+32>>2]=13;J[g+16>>2]=13; -hg(i,g+48|0,0,0,0,0,0,0,0);e:{while(1){f:{h=0;g:{h:{i:switch(J[g+48>>2]-4|0){case 0:break i;case 8:break e;default:break h}hg(i,g+32|0,0,0,0,0,0,0,0);a=J[g+32>>2];if((a|0)==12)break e;if(a-3>>>0<4294967294)break g;J[g>>2]=13;hg(i,g,0,0,0,0,0,0,0);j:switch(J[g>>2]-10|0){case 0:break j;case 2:break e;default:break h}if(!Ec(J[g+8>>2],818631))break f}a=J[g+32>>2]}if((a|0)==4){b=g+48|0;uc(b);a=g+32|0;Ef(a,b);uc(a);uc(g+16|0);continue}a=J[g+16>>2];b=g+48|0;uc(b);if((a|0)==4){a=g+16|0;Ef(a,b);uc(a);uc(g+ -32|0)}else{uc(g+32|0);uc(g+16|0);hg(i,g+48|0,0,0,0,0,0,0,0)}continue}break}if(J[g+48>>2]!=4)break e;a=J[g+72>>2];h=0;k:{if(J[Bc(gc[J[J[a>>2]+76>>2]](a)|0,818965,c,0)>>2]!=7)break k;h=0;if(J[Bc(J[c+8>>2],819251,d,0)>>2]!=7)break k;h=J[Ce(J[d+8>>2],J[g+56>>2],e)>>2]==9}ky(f,J[g+56>>2])}uc(g+48|0);uc(g+32|0);uc(g+16|0);qc(qk(i))}uc(g+80|0);uc(g- -64|0);bc=g+96|0;return h|0}a=Z()|0;qc(h);break a}a=Z()|0}qc(j);ba(a|0);B()}function $Z(a){var b=0,c=0,d=0,e=0;b=J[a+8>>2];if(b)qc(e_(b));a:{b=J[a+12>>2];if(b){c= -J[a+20>>2];if((c|0)>0){b=0;while(1){d=J[J[a+12>>2]+(b<<2)>>2];if(d){qc(AY(d));c=J[a+20>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}b=J[a+12>>2]}J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+16>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;_(3205,a+24|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+40|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+56>>2];if(b)qc(Rc(b));J[695492]=0;_(3205,a- -64|0);b=J[695492];J[695492]=0; -if((b|0)==1)break a;J[695492]=0;_(3205,a+80|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+96|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+112|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+132>>2];if(b)qc(p_(b));J[695492]=0;_(3205,a+136|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;d=J[a+152>>2];if(d){c=J[d+8>>2];if((c|0)>0){b=0;while(1){e=J[J[d>>2]+(b<<2)>>2];if(e){c=J[e>>2];if(c)qc(dd(c));J[695492]=0;_(3205,e+8|0);c=J[695492];J[695492]=0;if((c| -0)==1)break a;qc(e);c=J[d+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}qc(dd(d))}d=J[a+156>>2];if(d){c=J[d+8>>2];if((c|0)>0){b=0;while(1){e=J[J[d>>2]+(b<<2)>>2];if(e){c=J[e+8>>2];if(c)qc(dd(c));qc(e);c=J[d+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}qc(dd(d))}J[695492]=0;_(3205,a+160|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a}ea(0)|0;yc();B()}function qM(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,w=0,x=0;a:{c=P(b,1348)+a|0;e=J[c+56>>2];if((e| -0)<=0)break a;g=J[a+24>>2];if((g|0)<=0)break a;a=J[a+28>>2];l=a+P(g,40)|0;h=b?8:4;m=h|16;f=J[c- -64>>2];c=f+P(e,44)|0;n=c-40|0;o=c-36|0;p=c-44|0;i=(b|0)==1;q=i?14:12;r=(e|0)==2;s=(e|0)==3;t=(e|0)==5;u=(e|0)==6;v=(e|0)==7;w=b?20:16;while(1){if(!(L[a>>1]&m)){b=J[(i?8:4)+a>>2];x=a+w|0;d=I[a+q>>1];c=(b+J[f+8>>2]|0)-J[f+4>>2]|0;b:{if((d|0)<=I[f>>1])break b;c=(b+J[o>>2]|0)-J[n>>2]|0;if(I[p>>1]<=(d|0))break b;b=0;c:{c=e;d:{if(c>>>0<=8){c=I[f>>1];b=(c|0)<(d|0)?e:0;e:{if((e|0)==1|(c|0)>=(d|0))break e;c=I[f+ -44>>1];b=(c|0)>=(d|0)?1:e;if(r|(c|0)>=(d|0))break e;c=I[f+88>>1];b=(c|0)>=(d|0)?2:e;if(s|(c|0)>=(d|0))break e;c=I[f+132>>1];b=(c|0)>=(d|0)?3:e;if((e|0)==4|(c|0)>=(d|0))break e;c=I[f+176>>1];b=(c|0)>=(d|0)?4:e;if(t|(c|0)>=(d|0))break e;c=I[f+220>>1];b=(c|0)>=(d|0)?5:e;if(u|(c|0)>=(d|0))break e;c=I[f+264>>1];b=(c|0)>=(d|0)?6:e;if(v|(c|0)>=(d|0))break e;b=I[f+308>>1]>=(d|0)?7:e}c=P(b,44)+f|0;if(L[c>>1]!=(d&65535))break d;c=J[c+8>>2];break b}while(1){g=b+c>>1;j=P(g,44)+f|0;k=I[j>>1];f:{if((k|0)>(d|0)){c= -g;break f}if((d|0)<=(k|0))break c;b=g+1|0}if((b|0)<(c|0))continue;break}}b=P(b,44)+f|0;c=b-44|0;g=J[c+16>>2];if(!g){g=td(J[b+8>>2]-J[b-36>>2]|0,I[b>>1]-I[c>>1]|0);J[c+16>>2]=g}c=J[b-36>>2]+Pc(d-I[c>>1]|0,g)|0;break b}c=J[j+8>>2]}J[x>>2]=c;I[a>>1]=L[a>>1]|h}a=a+40|0;if(l>>>0>a>>>0)continue;break}}}function nFa(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;a=bc-48|0;bc=a;a:{b:{c:{d:{e:{f:{if(!Gh(b)){J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[695492]=0;i=Qg(b);f=J[695492];J[695492]=0;if((f| -0)==1)break e;g:{while(1){J[695492]=0;f=aa(4815,b|0,i|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;if(!f)break g;J[695492]=0;da(4802,a+16|0,b|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;if(H[a+43|0]<0)qc(J[a+32>>2]);J[a+40>>2]=J[a+24>>2];e=J[a+20>>2];J[a+32>>2]=J[a+16>>2];J[a+36>>2]=e;h=H[a+43|0];e=(h|0)<0;if(((e?J[a+36>>2]:h&255)|0)!=15)continue;if(gd(e?J[a+32>>2]:a+32|0,2369416,15))continue;break}J[a+24>>2]=0;J[695492]=0;J[a+16>>2]=0;J[a+20>>2]=0;e=b;b=a+16|0;ca(4803,e|0,2369480,b|0);e=J[695492]; -J[695492]=0;if((e|0)==1)break c;J[695492]=0;ca(4873,b|0,a+12|0,a+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[a+4>>2]=J[a+12>>2]&16777215;b=J[J[c>>2]+52>>2];J[695492]=0;aa(b|0,c|0,a+4|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;b=J[a+8>>2];g=O[d+48>>3];d=J[695492];J[695492]=0;if((d|0)==1)break c;g=g*+(b|0);h:{if(R(g)<2147483648){b=~~g;break h}b=-2147483648}J[a+4>>2]=b;b=J[J[c>>2]+60>>2];J[695492]=0;aa(b|0,c|0,a+4|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(H[a+27|0]>= -0)break g;qc(J[a+16>>2])}if(H[a+43|0]<0)qc(J[a+32>>2]);b=1;if(f)break f}b=0}bc=a+48|0;return b|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;if(H[a+27|0]>=0)break a;qc(J[a+16>>2]);break a}b=Z()|0}if(H[a+43|0]<0)qc(J[a+32>>2]);ba(b|0);B()}function Yqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(e){p=e-2|0;q=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];f=a+4|0;g=g+4|0;a:{if(n>>>0>p>>>0)break a;i= -n?(n|0)==(p|0)?d:b:c;h=!n&q;if(h){if(i>>>0<2)break a;h=i-1|0;l=h&1;if((i|0)!=2){h=h&-2;j=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a+2|0];H[g+7|0]=K[a+3|0];g=g+8|0;j=j+2|0;if((h|0)!=(j|0))continue;break}}if(!l)break a;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];g=g+4|0;break a}o=h?0:f;l=i+1>>>1|0;if(i>>>0>=3){r=l>>>0<=2?2:l;j=1;k=i<<1;while(1){h=K[a|0];m=K[o|0];if((h|0)!=(m|0))h=h+((i+(P(m-h| -0,j)<<1)|0)/(k|0)|0)|0;H[g|0]=h;h=K[a+1|0];m=K[a+5|0];if((h|0)!=(m|0))h=h+((i+(P(m-h|0,j)<<1)|0)/(k|0)|0)|0;H[g+1|0]=h;h=K[a+2|0];m=K[a+6|0];if((h|0)!=(m|0))h=h+((i+(P(m-h|0,j)<<1)|0)/(k|0)|0)|0;H[g+2|0]=h;H[g+3|0]=K[a+3|0];g=g+4|0;j=j+1|0;if((r|0)!=(j|0))continue;break}}if(i>>>0<=l>>>0)break a;j=i<<1;while(1){h=K[a|0];k=K[o|0];if((h|0)!=(k|0))h=h+((i+(P(k-h|0,l)<<1)|0)/(j|0)|0)|0;H[g|0]=h;h=K[a+1|0];k=K[o+1|0];if((h|0)!=(k|0))h=h+((i+(P(k-h|0,l)<<1)|0)/(j|0)|0)|0;H[g+1|0]=h;h=K[a+2|0];k=K[o+2|0]; -if((h|0)!=(k|0))h=h+((i+(P(k-h|0,l)<<1)|0)/(j|0)|0)|0;H[g+2|0]=h;H[g+3|0]=K[o+3|0];g=g+4|0;l=l+1|0;if((i|0)!=(l|0))continue;break}}n=n+1|0;if((n|0)!=(e|0))continue;break}}return 0}function cD(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;k=bc-16|0;bc=k;f=6;a:{if(!a)break a;g=J[a+12>>2];if(g>>>0<=b>>>0)break a;l=J[a>>2];b:{c:{d:{e:{f:{h=J[a+28>>2];if(!h){f=nd(l,(J[a+8>>2]+J[a+4>>2]|0)+P(K[a+16|0],b)|0);if(f)break a;f=mg(J[a>>2],k+8|0,K[a+16|0]);if(f)break a;g:{j=K[a+16|0];if(j){h=0;if(j>>>0>= -4){i=j&252;f=0;while(1){g=e;e=e+4|0;f=f+4|0;if((i|0)!=(f|0))continue;break}f=k+8|0;i=K[f+(g|3)|0]|(K[f+(g|2)|0]|(K[f+g|0]<<16|K[f+(g|1)|0]<<8))<<8}g=j&3;if(g)while(1){i=K[(k+8|0)+e|0]|i<<8;e=e+1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}if(i)break g}i=0;f=0;break e}while(1){f=mg(J[a>>2],k+12|0,K[a+16|0]);h:{if(f)break h;m=K[a+16|0];if(!m)break h;j=0;h=0;e=0;if(m>>>0>=4){n=m&252;while(1){g=h;h=g+4|0;e=e+4|0;if((n|0)!=(e|0))continue;break}e=k+12|0;e=K[e+(g|3)|0]|(K[e+(g|2)|0]|(K[e+g|0]<<16|K[e+(g|1)| -0]<<8))<<8}g=m&3;if(g)while(1){e=K[(k+12|0)+h|0]|e<<8;h=h+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}if(e)break f}b=b+1|0;if(b>>>0>2])continue;break}break e}f=0;i=J[h+(b<<2)>>2];if(!i)break e;while(1){b=b+1|0;e=J[h+(b<<2)>>2];if(e)break f;if((b|0)!=(g|0))continue;break}break e}f=0;b=J[l+4>>2];h=b+1|0;if(h>>>0>=e>>>0)break d;j=J[a+20>>2];break c}b=J[l+4>>2];e=0}j=J[a+20>>2];h=b+1|0;if(j>>>0<=h-e>>>0)break b}e=h-j|0}if(!(!i|e>>>0<=i>>>0)){b=e-i|0;J[d>>2]=b;d=J[a+32>>2];if(d){J[c>>2]=(d+i|0)- -1;break a}f=nd(l,(J[a+20>>2]+i|0)-1|0);if(f)break a;f=yi(l,b,c);break a}J[c>>2]=0;J[d>>2]=0}bc=k+16|0;return f}function laa(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:{e=J[J[a+584>>2]+4>>2];if((e|0)>=(c|0))break a;c=c-e|0;b:switch(e-3|0){case 0:a=K[b+2|0];d=K[b+1|0];f=K[b|0];while(1){g=K[b+3|0];H[b+3|0]=g-f;f=K[b+4|0];H[b+4|0]=f-d;d=K[b+5|0];H[b+5|0]=d-a;b=b+3|0;e=(c|0)>3;a=d;d=f;f=g;c=c-3|0;if(e)continue;break}break a;case 1:a=K[b+3|0];d=K[b+2|0];f=K[b+1|0];g=K[b|0];while(1){e= -K[b+4|0];H[b+4|0]=e-g;h=K[b+5|0];H[b+5|0]=h-f;i=K[b+6|0];H[b+6|0]=i-d;j=K[b+7|0];H[b+7|0]=j-a;b=b+4|0;k=(c|0)>4;c=c-4|0;g=e;f=h;d=i;a=j;if(k)continue;break}break a;default:break b}b=(b+c|0)-1|0;if((e|0)<5)while(1){c:switch(e|0){default:a=b+e|0;H[a|0]=K[a|0]-K[b|0];a=b-1|0;d=a+e|0;H[d|0]=K[d|0]-K[a|0];b=b-2|0;case 2:a=b+e|0;H[a|0]=K[a|0]-K[b|0];b=b-1|0;case 1:a=b+e|0;H[a|0]=K[a|0]-K[b|0];b=b-1|0;break;case 0:break c}c=c-e|0;if((c|0)>0)continue;break a}a=e-4|0;h=e&3;i=e-5>>>0<3;while(1){d:switch(e| -0){default:g=0;f=a;if(h)while(1){d=b+e|0;j=d;k=K[d|0];d=b;H[j|0]=k-K[b|0];f=f-1|0;b=b-1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}if(!i)while(1){d=b+e|0;H[d|0]=K[d|0]-K[b|0];d=b-1|0;g=d+e|0;H[g|0]=K[g|0]-K[d|0];d=b-2|0;g=d+e|0;H[g|0]=K[g|0]-K[d|0];d=b-3|0;g=e+d|0;H[g|0]=K[g|0]-K[d|0];b=b-4|0;g=(f|0)>4;f=f-4|0;if(g)continue;break}f=b+e|0;H[f|0]=K[f|0]-K[b|0];b=d-2|0;f=b+e|0;H[f|0]=K[f|0]-K[b|0];b=d-3|0;case 2:d=b+e|0;H[d|0]=K[d|0]-K[b|0];b=b-1|0;case 1:d=b+e|0;H[d|0]=K[d|0]-K[b|0];b=b-1|0;break;case 0:break d}c= -c-e|0;if((c|0)>0)continue;break}}}function qHa(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=bc-16|0;bc=h;a:{b:{c:{d:{e:{f:{if(b){if(!a)break f;if(J[a+8>>2]==16)f=J[a+156>>2]+P(J[a+192>>2],5644)|0;else f=J[a+12>>2];if(c>>>0<=1){Hc(d,1,2356915,0);a=0;break a}ld(b,h+12|0,2);if(J[h+12>>2]){Hc(d,2,2356941,0);break b}if(c>>>0<=6){Hc(d,1,2356915,0);a=0;break a}ld(b+2|0,h+12|0,2);e=J[f+5616>>2];k=K[h+12|0];g=J[f+5620>>2];if(!g){a=e;break e}a=e;while(1){if(J[a+8>>2]==(k|0))break e; -a=a+20|0;i=i+1|0;if((i|0)!=(g|0))continue;break}break d}fa(2353829,2346358,5754,2356898);B()}fa(2346477,2346358,5755,2356898);B()}if((g|0)!=(i|0))break c}if(J[f+5624>>2]==(g|0)){a=g+10|0;J[f+5624>>2]=a;a=Tg(e,P(a,20));e=J[f+5616>>2];if(!a){qc(e);J[f+5624>>2]=0;J[f+5616>>2]=0;J[f+5620>>2]=0;Hc(d,1,2357001,0);a=0;break a}g:{if((a|0)==(e|0))break g;l=J[f+5632>>2];if(!l)break g;m=J[f+5628>>2];i=0;while(1){g=P(i,20)+m|0;j=J[g+8>>2];if(j)J[g+8>>2]=a+P((j-e|0)/20|0,20);j=J[g+12>>2];if(j)J[g+12>>2]=a+P((j- -e|0)/20|0,20);i=i+1|0;if((l|0)!=(i|0))continue;break}}J[f+5616>>2]=a;e=J[f+5620>>2];wc(a+P(e,20)|0,0,P(J[f+5624>>2]-e|0,20));g=J[f+5620>>2];e=J[f+5616>>2]}J[f+5620>>2]=g+1;a=P(g,20)+e|0}e=J[a+12>>2];if(e){qc(e);J[a+12>>2]=0;J[a+16>>2]=0}J[a+8>>2]=k;e=J[h+12>>2];J[a>>2]=e>>>10&3;J[a+4>>2]=e>>>8&3;ld(b+4|0,h+12|0,2);if(J[h+12>>2]){Hc(d,2,2357039,0);break b}c=c-6|0;e=_e(c);J[a+12>>2]=e;if(!e){Hc(d,1,2356915,0);a=0;break a}tc(e,b+6|0,c);J[a+16>>2]=c}a=1}bc=h+16|0;return a|0}function hdb(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;h=bc-80|0;bc=h;j=J[a+532>>2];a:{if(!j){a=6;break a}g=J[a+100>>2];i=J[j+4>>2];if(i){c=j+88|0;f=h+32|0;a=0;while(1){d=P(a,12);e=d+f|0;J[e>>2]=J[((a<<2)+j|0)+8>>2];d=c+d|0;k=J[d+4>>2];J[e+4>>2]=J[k>>2];J[e+8>>2]=J[(k+(K[d|0]<<2)|0)-4>>2];a=a+1|0;if((i|0)!=(a|0))continue;break}}c=J[j>>2];J[h+20>>2]=0;f=i<<1;e=f+3&-4;g=Zd(g,(e+P(i,24)|0)+20|0,h+20|0);a=J[h+20>>2];if(a)break a;J[g+8>>2]=0;J[g+4>>2]=c;J[g>>2]=i;c=g+20|0;b:{if(!i){J[g+16>>2]=0;J[g+12>> -2]=c+e;break b}a=0;c=wc(c,0,f);J[g+16>>2]=0;f=c+e|0;J[g+12>>2]=f;while(1){e=P(a,24)+f|0;d=(h+24|0)+P(a,12)|0;c=J[d+8>>2];J[e>>2]=c;J[e+4>>2]=J[d+12>>2]<<16;d=J[d+16>>2];J[e+16>>2]=-1;J[e+20>>2]=-1;J[e+12>>2]=d<<16;c:{if(!c)break c;d=2003265652;d:{if(!Ec(c,240838))break d;d=2003072104;if(!Ec(c,240975))break d;if(Ec(c,241114))break c;d=1869640570}J[e+16>>2]=d}a=a+1|0;if((i|0)!=(a|0))continue;break}pL(J[j+140>>2],h,J[j+4>>2]);if(!i)break b;e=0;while(1){k=J[(e<<2)+h>>2];c=P(e,12)+j|0;d=J[c+96>>2];e:{if((k| -0)>J[d>>2]){a=1;l=K[c+88|0];if(l>>>0>1)while(1){m=a<<2;n=J[d+m>>2];if((k|0)<=(n|0)){c=J[c+92>>2];f=m-4|0;a=J[c+f>>2];c=J[c+m>>2];f=J[f+d>>2];a=P(td(k-f|0,n-f|0),c-a|0)+(a<<16)|0;f=J[g+12>>2];break e}a=a+1|0;if((l|0)!=(a|0))continue;break}a=J[(J[c+92>>2]+(l<<2)|0)-4>>2]<<16;break e}a=J[J[c+92>>2]>>2]<<16}J[(P(e,24)+f|0)+8>>2]=a;e=e+1|0;if((i|0)!=(e|0))continue;break}}J[b>>2]=g;a=J[h+20>>2]}bc=h+80|0;return a|0}function _0(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=bc-16|0;bc=g;d=J[a+8>>2];e=J[a+12>>2]; -a:{b:{if(d>>>0>=e>>>0){J[b>>2]=1;break b}h=d+1|0;J[a+8>>2]=h;c=K[d|0];f=c<<24>>24;if((f|0)>31)break a;c:{d:{if(c>>>0>25)break d;if(1<>>0<=e>>>0)break e;J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}c=d+2|0;if(c>>>0>e>>>0)break c;J[a+8>>2]=c;a=H[h|0];b=a&255;c=(a|0)<0?b:b-32|0;break a}J[a+8>>2]=d+2;b=K[d+1|0];J[a+8>>2]=c;a=K[d+2|0];c=b;b=(b|0)==246;c=((b?a:c)&255)<<8|(b?0:a)&255;break a}if(c>>>0<=32){f:{if(c>>>0<=19){i=J[J[a+4>>2]+8>> -2];f=J[i+(c<<2)>>2];if(f)break f}J[b>>2]=10;c=0;break a}if(c>>>0>=16){if(e>>>0>>0){J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}if(H[h|0]==(c|0)){b=d+2|0;J[a+8>>2]=b;c=en(f,b,1);J[a+8>>2]=J[a+8>>2]+1;break a}c=en(f,h,2);J[a+8>>2]=J[a+8>>2]+2;break a}d=d+2|0;if(d>>>0>e>>>0){J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}J[a+8>>2]=d;a=K[h|0];b=a<<24>>24;if((b|0)<0){c=L[J[f+36>>2]+(a<<2)>>1];break a}a=J[i>>2];H[g+15|0]=b;H[g+14|0]=c;c=en(a,g+14|0,2);break a}d=J[J[a+4>>2]+8>>2];e=K[d+80|0];d=J[(e<<2)+d>>2]; -if(e>>>0>=16){c=J[a+8>>2];if(!((J[J[d+36>>2]+((f&255)<<2)>>2]^-1)>>>31|0)){if(c>>>0>M[a+12>>2]){J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}c=en(d,c-1|0,1);break a}if(M[a+12>>2]>>0){J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}c=en(d,c-1|0,2);J[a+8>>2]=J[a+8>>2]+1;break a}c=L[J[d+36>>2]+(c<<2)>>1];break a}J[b>>2]=11;J[a+8>>2]=J[a+12>>2]}c=65535}bc=g+16|0;return c}function VZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;s=bc-160|0;bc= -s;m=J[a+332>>2];a=J[b+84>>2];b=s;while(1){g=J[a+96>>2];h=I[c+48>>1];f=J[a+32>>2];i=I[c+16>>1];n=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+64>>2],I[c+32>>1]);k=P(J[a+128>>2],I[c+64>>1]);l=j-k|0;J[b+64>>2]=n+P(l,-11584)>>11;h=P(g,h);f=P(f,i);g=P(h+f|0,6810);i=n+P(l,2896)|0;j=P(j+k|0,6476);k=i+j|0;f=g+P(f,4209)|0;J[b+128>>2]=k-f>>11;J[b>>2]=f+k>>11;f=i-j|0;g=g+P(h,-17828)|0;J[b+96>>2]=f-g>>11;J[b+32>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;o=o+1|0;if((o|0)!=8)continue;break}b=m+128|0;a=s;m=0;while(1){k=J[a+24>> -2];i=J[a+8>>2];h=P(k+i|0,6810);c=J[(m<<2)+d>>2]+e|0;f=J[a+28>>2];j=J[a+12>>2];l=f+j|0;n=P(l,7791);g=J[a+4>>2];o=J[a+20>>2];p=o<<13;f=j-f|0;t=p+P(f,2531)|0;q=(n+P(g,11443)|0)+t|0;u=h+P(i,4209)|0;j=(J[a>>2]<<13)+131072|0;i=J[a+16>>2];v=j+P(i,9373)|0;r=u+v|0;H[c|0]=K[b+(q+r>>>18&1023)|0];H[c+9|0]=K[b+(r-q>>>18&1023)|0];l=P(l,4815);p=p+P(f,-6627)|0;q=P(g,10323)-(l+p|0)|0;h=h+P(k,-17828)|0;k=j+P(i,-3580)|0;r=h+k|0;H[c+1|0]=K[b+(q+r>>>18&1023)|0];H[c+8|0]=K[b+(r-q>>>18&1023)|0];f=g-(f+o|0)<<13;i=j+P(i, --11586)|0;H[c+2|0]=K[b+(f+i>>>18&1023)|0];H[c+7|0]=K[b+(i-f>>>18&1023)|0];f=p+(P(g,5260)-l|0)|0;h=k-h|0;H[c+3|0]=K[b+(f+h>>>18&1023)|0];H[c+6|0]=K[b+(h-f>>>18&1023)|0];g=t+(P(g,1812)-n|0)|0;h=v-u|0;H[c+4|0]=K[b+(g+h>>>18&1023)|0];H[c+5|0]=K[b+(h-g>>>18&1023)|0];a=a+32|0;m=m+1|0;if((m|0)!=5)continue;break}bc=s+160|0}function CQa(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;i=bc-16|0;bc=i;j=wc(vd(256,4),0,1024);f=-1;a:{if(J[b+32>>2]<=0){d=-1;e=-1;break a}e=-1;d=-1;while(1){g=J[b+28>> -2]+P(c,20)|0;h=J[g+4>>2];g=J[g>>2];b:{if(!((g|0)!=3|(h|0)!=1)){f=c;break b}if(!((h|0)>=5|g)){f=c;break b}if(!(h|(g|0)!=1)){e=c;break b}d=(g|0)==3?h?d:c:d}c=c+1|0;if((c|0)>2])continue;break}}c=J[a+24>>2];c:{d:{e:{if((e|0)>=0?J[a+1452>>2]:0)break e;if(!(!J[a+1448>>2]|J[a+32>>2]>=0)&(f|0)>=0)break d;h=(f|0)>=0;c=c&4;if(h&!c)break d;g=(e|0)>=0;if(g&!c)break e;c=0;f=(d|0)<0?h?f:g?e:0:d;while(1){e=(c<<2)+j|0;d=$n(b,f,c);J[e>>2]=d;if(!d)k=e,l=$n(b,f,c+61440|0),J[k>>2]=l;c=c+1|0;if((c|0)!=256)continue; -break}break c}c=0;while(1){h=c<<2;d=J[(h+a|0)+164>>2];f:{g:{if(d){g=DY(J[J[689612]>>2],d);if(g){d=$n(b,e,g);break g}if((f|0)<0)break f;d=RA(J[689612],d);J[i+12>>2]=d;if(!d)break f;d=$n(b,f,d);break g}d=-1;if((f|0)<0)break g;if(!al(J[a+1444>>2],c,i+12|0,1))break g;d=$n(b,e,J[i+12>>2])}J[h+j>>2]=d}c=c+1|0;if((c|0)!=256)continue;break}break c}c=0;while(1){h=c<<2;e=J[(h+a|0)+164>>2];h:{i:{if(e){d=RA(J[689612],e);J[i+12>>2]=d;if(d)break i}e=-1;if(!al(J[a+1444>>2],c,i+12|0,1))break h;d=J[i+12>>2]}e=$n(b, -f,d)}J[h+j>>2]=e;c=c+1|0;if((c|0)!=256)continue;break}}c=0;while(1){e=c<<2;f=e+j|0;j:{if(J[f>>2]>0)break j;e=J[(a+e|0)+164>>2];if(!e)break j;d=J[b+60>>2];if(d)e=$v(d,e);else e=0;J[f>>2]=e}c=c+1|0;if((c|0)!=256)continue;break}bc=i+16|0;return j|0}function mqa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(f){a=e>>>0<8;c=h<<2;while(1){h=e;if(!a)while(1){J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;J[b+4>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|K[l+ -1|0]<<24;J[b+8>>2]=K[i+2|0]|K[j+2|0]<<8|K[k+2|0]<<16|K[l+2|0]<<24;J[b+12>>2]=K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|K[l+3|0]<<24;J[b+16>>2]=K[i+4|0]|K[j+4|0]<<8|K[k+4|0]<<16|K[l+4|0]<<24;J[b+20>>2]=K[i+5|0]|K[j+5|0]<<8|K[k+5|0]<<16|K[l+5|0]<<24;J[b+24>>2]=K[i+6|0]|K[j+6|0]<<8|K[k+6|0]<<16|K[l+6|0]<<24;J[b+28>>2]=K[i+7|0]|K[j+7|0]<<8|K[k+7|0]<<16|K[l+7|0]<<24;b=b+32|0;l=l+8|0;k=k+8|0;j=j+8|0;i=i+8|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24; -b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 5:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 4:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 3:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 2:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 1:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0; -i=i+1|0;case 0:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;break;default:break a}l=g+l|0;k=g+k|0;j=g+j|0;i=g+i|0;b=b+c|0;f=f-1|0;if(f)continue;break}}}function _x(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;if((c|0)>1){e=J[a>>2];if(e){qc(e);J[a>>2]=0}a:{f=J[b+4>>2];if((f|0)<2)break a;h=J[b>>2];e=1;while(1){d=h+(e<<3)|0;if(!(O[d-8>>3]>O[d>>3])){e=e+1|0;if((f|0)!=(e|0))continue;break a}break}fa(202223,198640,952,206679);B()}f=zc(c<<3); -J[a>>2]=f;if(!f)return-1;J[a+4>>2]=c;if((c|0)>0)b:{a=0;d=J[b+4>>2];if((d|0)<=0){if(c>>>0>=8){h=c&-8;e=0;while(1){b=a<<3;d=b+f|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|8)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|16)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|24)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|32)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|40)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|48)|0;J[d>>2]=0;J[d+4>>2]=1072693248;b=f+(b|56)|0;J[b>>2]=0;J[b+4>>2]=1072693248;a=a+8|0;e=e+8|0;if((h|0)!=(e|0))continue; -break}}b=c&7;if(!b)break b;e=0;while(1){c=f+(a<<3)|0;J[c>>2]=0;J[c+4>>2]=1072693248;a=a+1|0;e=e+1|0;if((b|0)!=(e|0))continue;break}break b}p=+(c-1|0);k=d-1|0;j=+(k|0);l=J[b>>2];h=0;while(1){i=+(h|0)/p;e=0;q=f+(h<<3)|0;c:{d:{while(1){a=(e<<3)+l|0;g=O[a>>3];if(i==g){a=e;while(1){b=a;a=b+1|0;g=1;if((d|0)<=(a|0))break c;if(i==O[(a<<3)+l>>3])continue;break}g=(+(e|0)/j+ +(b|0)/j)*.5;break c}if(!(!(i>g)|(e|0)>=(k|0))){m=O[a+8>>3];if(i>3]=g;h=h+1|0;if((h|0)!=(c|0))continue;break}}return 0}fa(204712,198640,944,206679);B()}function $0a(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;e=J[a+24>>2];k=J[a+12>>2];d=J[a+8>>2];f=k-d|0;l=J[a+20>>2];i=J[a+16>>2];g=l-i>>1;h=(f|0)<(g|0)?f:g;a:{if((h|0)<8){f=i;break a}g=h>>>3|0;c=g;f=i;b:{while(1){j=K[d|0];I[f>>1]=j;m=K[d+1|0];I[f+2>>1]=m;n=K[d+2|0];I[f+4>>1]=n;o=K[d+3|0];I[f+6>>1]=o;p=K[d+4|0];I[f+8>>1]=p;q=K[d+ -5|0];I[f+10>>1]=q;r=K[d+6|0];I[f+12>>1]=r;s=K[d+7|0];I[f+14>>1]=s;if((j|m|n|o|p|q|r|s)<<24>>24<0)break b;f=f+16|0;d=d+8|0;j=(c|0)>1;c=c-1|0;if(j)continue;break}c=0}g=g-c|0;c=g<<3;h=h-c|0;if(!e){e=0;c=0;break a}i=(c<<1)+i|0;c=0;if((g|0)<=0)break a;while(1){J[e>>2]=c;J[e+28>>2]=c|7;J[e+24>>2]=c|6;J[e+20>>2]=c|5;J[e+16>>2]=c|4;J[e+12>>2]=c|3;J[e+8>>2]=c|2;J[e+4>>2]=c|1;e=e+32|0;c=c+8|0;j=g>>>0>1;g=g-1|0;if(j)continue;break}}c:{d:{e:{f:{if((h|0)<=0){g=d;break f}while(1){g=d+1|0;d=H[d|0];if((d|0)<0)break e; -I[f>>1]=d&255;f=f+2|0;j=(h|0)>1;d=g;h=h-1|0;if(j)continue;break}}if(g>>>0>=k>>>0)break c;d=15;if(f>>>0>>0)break c;break d}h=J[a+4>>2];H[h+36|0]=1;H[h+37|0]=d;d=12}J[b>>2]=d}g:{if(!e){e=0;break g}if((f|0)==(i|0))break g;d=f-i>>1;b=d-1|0;i=d&7;if(i){h=0;while(1){J[e>>2]=c;d=d-1|0;e=e+4|0;c=c+1|0;h=h+1|0;if((i|0)!=(h|0))continue;break}}if(b>>>0<7)break g;while(1){J[e>>2]=c;J[e+28>>2]=c+7;J[e+24>>2]=c+6;J[e+20>>2]=c+5;J[e+16>>2]=c+4;J[e+12>>2]=c+3;J[e+8>>2]=c+2;J[e+4>>2]=c+1;e=e+32|0;c=c+8|0;d=d-8| -0;if(d)continue;break}}J[a+24>>2]=e;J[a+16>>2]=f;J[a+8>>2]=g}function tV(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;h=bc-16|0;bc=h;a:{b:{c:{d:{e:{f:{d=J[a+708>>2];switch(d|0){case 1:break d;case 0:break e;default:break f}}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break e;Yc(a,67963);Ld(a,c);break a}d=J[a+200>>2];if(!(d&1))break c;if(d&4)J[a+200>>2]=d|8;rd(a,J[a+740>>2]);d=gg(a,c+1|0);J[a+740>>2]=d;if(!d){Yc(a,68021);break a}qg(a,d,c);pe(a,d,c);d=Ld(a,0);e=J[a+740>>2];if(d){rd(a,e);J[a+740>>2]= -0;break a}H[c+e|0]=0;g=J[a+740>>2];e=g;while(1){d=e;e=d+1|0;if(K[d|0])continue;break}g:{if(c>>>0>=3){j=c+g|0;if(j-3>>>0>e>>>0)break g}Yc(a,68053);rd(a,J[a+740>>2]);J[a+740>>2]=0;break a}f=H[d+2|0];k=d+3|0;e=k;h:{i=K[d+1|0];if(!i)break h;if((i|0)!=1){Yc(a,68074);rd(a,J[a+740>>2]);J[a+740>>2]=0;break a}if(!f)break h;Yc(a,68104);rd(a,J[a+740>>2]);J[a+740>>2]=0;break a}while(1){d=K[e|0];l=e+1|0;e=l;if(d)continue;break}if(e>>>0>=j>>>0)break b;while(1){d=K[e|0];e=e+1|0;if(d)continue;break}if(e>>>0>=j>>> -0){Yc(a,68134);rd(a,J[a+740>>2]);J[a+740>>2]=0;break a}e=e-g|0;i:{if(i){aH(a,f,c,e,h+12|0);break i}m=h,n=Qc(e+g|0),J[m+12>>2]=n}f=gg(a,28);if(!f){Yc(a,68155);rd(a,J[a+740>>2]);J[a+740>>2]=0;break a}J[f>>2]=i?2:1;d=J[a+740>>2];J[f+20>>2]=d+(k-g|0);J[f+24>>2]=d+(l-g|0);c=J[h+12>>2];J[f+12>>2]=0;J[f+16>>2]=c;J[f+8>>2]=d+e;J[f+4>>2]=d;b=CG(a,b,f);rd(a,f);rd(a,J[a+740>>2]);J[a+740>>2]=0;if(!b)break a;Ad(a,68195);B()}Ld(a,c);break a}Ad(a,67996);B()}Yc(a,68053);rd(a,J[a+740>>2]);J[a+740>>2]=0}bc=h+16|0} -function VHa(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;g=bc-16|0;bc=g;a:{e=J[b+8>>2];b:{if(!e)break b;if(gc[J[J[e>>2]+12>>2]](e)|0)break b;i=J[e+8>>2];c:{if(i){e=ZZ(J[a+28>>2],i);break c}e=J[e+4>>2]}if(!e)break b;d:{if(J[e+4>>2]){h=J[e+8>>2];f=_Z(J[a+28>>2],h,J[e+12>>2]);break d}f=J[e+8>>2]}j=O[e+40>>3];h=f>>>0<=1?1:f;f=J[Ni(J[a+28>>2],h)+12>>2];k=O[f+40>>3];l=O[f+56>>3];if(i)qc(e);i=g+4|0;e=J[b+4>>2];if(e)e=J[e>>2];else e=0;f=J[b+4>>2];if(f)f=J[f+4>>2];else f=0;jr(i,e, -f);J[695492]=0;da(3530,c|0,h-1|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;J[695492]=0;da(3530,c|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;k=l-k;f=k>j&j>0;J[695492]=0;j=(k-j)*100;e:{if(R(j)<2147483648){e=~~j;break e}e=-2147483648}da(3530,c|0,(f?e:0)|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;J[695492]=0;e=K[g+15|0];f=e<<24>>24<0;ca(1637,c|0,(f?J[g+4>>2]:g+4|0)|0,(f?J[g+8>>2]:e)|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;J[695492]=0;_(3531,b|0);e=J[695492];J[695492]=0;if((e|0)== -1)break a;e=J[b+88>>2];f:{if(!e)break f;f=J[e+8>>2];if((f|0)<=0)break f;i=d+1|0;d=0;while(1){g:{h=J[J[e>>2]+(d<<2)>>2];if(!h)break g;J[695492]=0;ia(3532,a|0,h|0,c|0,i|0);h=J[695492];J[695492]=0;if((h|0)!=1)break g;break a}d=d+1|0;if((f|0)!=(d|0))continue;break}}J[695492]=0;_(3533,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;if(H[g+15|0]>=0)break b;qc(J[g+4>>2])}bc=g+16|0;return}a=Z()|0;if(H[g+15|0]<0)qc(J[g+4>>2]);ba(a|0);B()}function bX(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{d=ye(1,48);if(d){b= -J[a+188>>2];c=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=c;c=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=c;c=J[b+20>>2];J[d+16>>2]=J[b+16>>2];J[d+20>>2]=c;c=J[b+24>>2];J[d+24>>2]=c;b=_e(P(c,24));J[d+28>>2]=b;if(!b){qc(d);return 0}c=J[J[a+188>>2]+28>>2];b:{if(c){tc(b,c,P(J[d+24>>2],24));break b}qc(b);J[d+28>>2]=0}c=J[J[a+188>>2]+36>>2];J[d+36>>2]=c;b=ye(c,40);J[d+40>>2]=b;if(!b){qc(J[d+28>>2]);qc(d);return 0}c:{if(J[J[a+188>>2]+40>>2]){if(!J[d+36>>2])break c;while(1){e=P(g,40);c=J[(e+J[J[a+188>>2]+40>>2]|0)+ -20>>2];J[(b+e|0)+20>>2]=c;f=_e(P(c,24));c=J[d+40>>2];b=c+e|0;J[b+24>>2]=f;if(!f){if(g){b=0;while(1){qc(J[(J[d+40>>2]+P(b,40)|0)+24>>2]);b=b+1|0;if((g|0)!=(b|0))continue;break}c=J[d+40>>2]}break a}c=J[(e+J[J[a+188>>2]+40>>2]|0)+24>>2];d:{if(c){tc(f,c,P(J[b+20>>2],24));b=J[d+40>>2];break d}qc(f);b=J[d+40>>2];J[(e+b|0)+24>>2]=0}c=J[(e+J[J[a+188>>2]+40>>2]|0)+4>>2];J[(b+e|0)+4>>2]=c;f=_e(P(c,24));c=J[d+40>>2];b=c+e|0;J[b+16>>2]=f;if(!f){if(g){b=0;while(1){a=P(b,40);qc(J[(a+J[d+40>>2]|0)+24>>2]);qc(J[(a+ -J[d+40>>2]|0)+16>>2]);b=b+1|0;if((g|0)!=(b|0))continue;break}c=J[d+40>>2]}break a}c=J[(e+J[J[a+188>>2]+40>>2]|0)+16>>2];e:{if(c){tc(f,c,P(J[b+4>>2],24));b=J[d+40>>2];break e}qc(f);b=J[d+40>>2];J[(e+b|0)+16>>2]=0}c=b+e|0;J[c+32>>2]=0;J[c+36>>2]=0;g=g+1|0;if(g>>>0>2])continue;break}break c}qc(b);J[d+40>>2]=0}}else d=0;return d|0}qc(c);qc(J[d+28>>2]);qc(d);return 0}function WS(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+156>>2];d=J[a+152>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];a:{if(!c)break a; -e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break a;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}J[a+156>>2]=d;b=J[a+168>>2];d=J[a+164>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];b:{if(!c)break b;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break b;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}J[a+168>>2]=d;b=J[a+180>>2];d=J[a+176>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];c:{if(!c)break c;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break c;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}J[a+ -180>>2]=d;b=J[a+192>>2];d=J[a+188>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];d:{if(!c)break d;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break d;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}J[a+192>>2]=d;b=J[a+204>>2];d=J[a+200>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];e:{if(!c)break e;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break e;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}J[a+204>>2]=d;b=J[a+228>>2];d=J[a+224>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];f:{if(!c)break f; -e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break f;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}J[a+236>>2]=0;J[a+228>>2]=d;cv(a+72|0);b=J[a+216>>2];d=J[a+212>>2];if((b|0)!=(d|0))while(1){e=b-12|0;if(H[b-1|0]<0)qc(J[e>>2]);b=e;if((d|0)!=(b|0))continue;break}J[a+216>>2]=d}function jG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;a:{b:{c:{if(J[a+36>>2]<0){a=Kc(d,2378433,2378846,320,2415090,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break a}f=J[a+24>> -2];if(!(!f|K[f+20|0])){a=Kc(d,2386588,2378846,322,2415090,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break a}J[a+36>>2]=1;f=vz(b);d:{if((f|0)<0)break d;e=K[b+4|0];if(!f){if(e)break d;break b}if((e|0)!=58)break d;if(vz(b+5|0))break d;if(!K[b+9|0])break b}a=Kc(d,2386788,2378846,329,2415090,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break a}B()}e=J[a+28>>2];if((e|0)>=J[a+32>>2]){J[d+24>>2]=0;J[d+28>>2]=0;if(e&1){e=J[a+16>>2];g=a,h=(gc[J[J[e>>2]+ -12>>2]](e,d+24|4,1)|0)+J[a+28>>2]|0,J[g+28>>2]=h}if(c){J[d+24>>2]=1411798081;g=a,h=Os(J[a+16>>2],d+24|0,4)+J[a+28>>2]|0,J[g+28>>2]=h}J[d+24>>2]=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);e=d+24|0;c=Os(J[a+16>>2],e,8)+J[a+28>>2]|0;J[a+32>>2]=c;J[a+28>>2]=c;if(f){J[d+28>>2]=K[b+5|0]|K[b+6|0]<<8|(K[b+7|0]<<16|K[b+8|0]<<24);g=a,h=Os(J[a+16>>2],e|4,4)+J[a+28>>2]|0,J[g+28>>2]=h;c=J[a+32>>2]}b=rc(24);e=J[a+24>>2];J[b+8>>2]=0;J[b+4>>2]=c;J[b>>2]=e;e=J[d+28>>2];c=J[d+24>>2];H[b+20|0]=(f|0)!=0;H[b+12|0]= -c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;c=f?e:0;H[b+16|0]=c;H[b+17|0]=c>>>8;H[b+18|0]=c>>>16;H[b+19|0]=c>>>24;J[a+24>>2]=b;bc=d+32|0;return}fa(2387055,2378846,332,2415139);B()}b=Z()|0;Fc(a);ba(b|0);B()}function P9a(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;n=bc-16|0;bc=n;m=O[c+16>>3];i=O[c>>3];j=O[c+8>>3];p=O[c+24>>3]-j;a:{if(R(p)<2147483648){g=~~p;break a}g=-2147483648}O[a+624>>3]=g|0;m=m-i;b:{if(R(m)<2147483648){g=~~m;break b}g=-2147483648}O[a+ -616>>3]=g|0;h=J[a+16>>2];if(R(j)<2147483648)g=~~j;else g=-2147483648;if(R(i)<2147483648)k=~~i;else k=-2147483648;if(h){qc(dL(h));J[a+16>>2]=0}h=J[a+20>>2];if(h){qc(pr(h));J[a+20>>2]=0}h=rc(2944);J[695492]=0;l=$(2252,h|0)|0;o=J[695492];J[695492]=0;c:{d:{if((o|0)!=1){J[a+16>>2]=l;h=rc(8);J[695492]=0;l=$(2253,h|0)|0;o=J[695492];J[695492]=0;if((o|0)==1)break c;J[a+20>>2]=l;h=(g|0)>0?g:0;J[a+648>>2]=h;k=(k|0)>0?k:0;J[a+644>>2]=k;i=O[c+16>>3];j=O[c+24>>3];e:{if(R(j)<2147483648){g=~~j;break e}g=-2147483648}l= -((e|0)>(g|0)?g:e)-h|0;J[a+656>>2]=l;if(R(i)<2147483648)g=~~i;else g=-2147483648;g=((d|0)>(g|0)?g:d)-k|0;J[a+652>>2]=g;J3(J[a+16>>2],b,d,e,d<<2,k,h,g,l,i-O[c>>3],j-O[c+8>>3],f);b=Hp(n+12|0,1,0,0,1,O[c>>3],O[c+8>>3]);c=J[a+16>>2];J[695492]=0;bL(c,b);c=J[695492];J[695492]=0;if((c|0)==1)break d;i=O[a+600>>3];c=J[a+16>>2];J[695492]=0;AC(c,i,6);c=J[695492];J[695492]=0;if((c|0)==1)break d;i=O[a+608>>3];c=J[a+16>>2];J[695492]=0;zC(c,i,6);c=J[695492];J[695492]=0;if((c|0)==1)break d;a=J[a+16>>2];J[695492]= -0;Zw(a,6);a=J[695492];J[695492]=0;if((a|0)==1)break d;Ed(b);bc=n+16|0;return}break c}a=Z()|0;Ed(b);ba(a|0);B()}a=Z()|0;qc(h);ba(a|0);B()}function NVa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc+-64|0;bc=d;a=cB(a,b,c);J[a+316>>2]=0;J[a+320>>2]=0;J[a>>2]=827372;J[a+332>>2]=0;J[a+336>>2]=0;J[a+324>>2]=0;J[a+340>>2]=0;J[d+48>>2]=13;J[d+32>>2]=13;J[695492]=0;J[d+16>>2]=13;e=d+32|0;aa(3289,c|0,e|0)|0;f=J[695492];J[695492]=0;a:{if((f|0)==1)break a;b=J[b+24>>2];J[695492]=0;ha(3207,e|0,b|0,d+16|0,0)|0;b= -J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;b=d+48|0;e=ha(3203,J[d+24>>2],804102,b|0,0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;b:{if(!e)break b;J[695492]=0;ca(3290,d+4|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break a;if(H[a+327|0]<0)qc(J[a+316>>2]);b=J[d+8>>2];J[a+316>>2]=J[d+4>>2];J[a+320>>2]=b;J[a+324>>2]=J[d+12>>2];b=K[a+327|0];if(!(b<<24>>24<0?J[a+320>>2]:b))break b;J[a+4>>2]=J[a+4>>2]|512}J[695492]=0;_(3205, -d+48|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,d+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;b=$(3304,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;if((b|0)>0){J[a+328>>2]=b;J[a+4>>2]=J[a+4>>2]|1024}if(K[c+51|0]&2){J[695492]=0;la(3297,d+4|0,a|0,c|0,811791,11);b=J[695492];J[695492]=0;if((b|0)==1)break a;if(H[a+343|0]<0)qc(J[a+332>>2]);b=J[d+8>>2];J[a+332>>2]=J[d+4>>2];J[a+336>>2]=b;J[a+340>>2]=J[d+12>>2]}bc=d- -64|0;return a|0}b=Z()|0;if(H[a+343|0]<0)qc(J[a+ -332>>2]);if(H[a+327|0]<0)qc(J[a+316>>2]);em(a);ba(b|0);B()}function b6(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;j=J[a+8>>2];a:{b:{l=J[a+12>>2];h=J[l+36>>2];c:{if((h|0)<=0){if(!h)break c;c=6;break b}k=gc[J[j+4>>2]](j,h)|0;if(!k){c=64;break b}i=wc(k,0,h)}J[i+100>>2]=j;J[i+96>>2]=a;J[i+104>>2]=J[b>>2];if(c)J[i+8>>2]=J[i+8>>2]|1024;d:{k=gc[J[j+4>>2]](j,68)|0;if(!k){c=64;break d}h=0;c=wc(k,0,68);J[i+128>>2]=c;e:{if((e|0)<=0)break e;a=0;while(1){if(h)break e;h=0;m=(a<<3)+f|0;if(J[m>>2]==1768842098){h= -J[m+4>>2];J[c+52>>2]=h}a=a+1|0;if((e|0)!=(a|0))continue;break}}J[c+60>>2]=-1;a=J[l+48>>2];f:{if(!a){J[b>>2]=J[i+104>>2];break f}c=gc[a|0](J[b>>2],i,d,e,f)|0;J[b>>2]=J[i+104>>2];if(c)break d}b=J[i+40>>2];g:{if(!b)break g;a=b+(J[i+36>>2]<<2)|0;c=a-4|0;h:{if(b>>>0<=c>>>0)while(1){h=J[c>>2];i:{if(J[h+4>>2]!=1970170211)break i;j:switch(L[h+8>>1]){case 3:if(L[h+10>>1]!=10)break i;break h;case 0:break j;default:break i}if(L[h+10>>1]==4)break h}c=c-4|0;if(b>>>0<=c>>>0)continue;break}while(1){a=a-4|0;if(b>>> -0>a>>>0)break g;h=J[a>>2];if(J[h+4>>2]!=1970170211)continue;break}}J[i+92>>2]=h}J[g>>2]=i;return 0}if(J[i+36>>2]>0){h=0;while(1){d=h<<2;a=J[d+J[i+40>>2]>>2];b=J[J[a>>2]+100>>2];e=J[J[a+12>>2]+8>>2];if(e)gc[e|0](a);gc[J[b+8>>2]](b,a);J[d+J[i+40>>2]>>2]=0;h=h+1|0;if((h|0)>2])continue;break}}a=J[i+40>>2];if(a)gc[J[j+8>>2]](j,a);J[i+36>>2]=0;J[i+40>>2]=0;a=0;break a}k=0;a=1}b=J[l+52>>2];if(b)gc[b|0](i);if(k)gc[J[j+8>>2]](j,k);if(!a)gc[J[j+8>>2]](j,i);J[g>>2]=0;return c}function Mn(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;f=bc-32|0;bc=f;a:{b:{c:{d:{c=L[a+8>>1];if(c){d=L[a+10>>1];if(d)break d}a=Kc(f+8|0,2380573,2373930,1283,2407299,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);break c}e=d;d=L[a+12>>1];e=e+d|0;I[a+14>>1]=e;if(!b){a=Kc(f+8|0,2382006,2373930,1286,2407299,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);break c}if(!J[a+24>>2]){oe(a+28|0,d+P(c,e&65535)|0,1);J[a+20>>2]=J[a+24>>2]}ci(a+28|0, -1,0);c=f+8|0;vG(c,L[a+12>>1]+L[a+14>>1]|0);J[695492]=0;aa(4993,a+68|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[f+8>>2];J[f+8>>2]=0;e:{if(!c)break e;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=L[a+8>>1];if(c){g=c-1|0;h=(J[a+24>>2]+L[a+12>>1]|0)+P(g,L[a+14>>1])|0;c=0;while(1){e=K[b|0];if(e>>>0<192)b=b+1|0;else{e=K[b+1|0]|e<<8&16128;b=b+2|0}f:{g:{d=c+e|0;i=L[a+10>>1];if((d| -0)<=(i|0)){if(e)break g;d=c;break f}a=Kc(f+8|0,2381736,2373930,1306,2407299,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);break c}wc(c+h|0,j,e);i=L[a+10>>1]}h:{if((d|0)<(i|0)){j=1-j|0;break h}g=g-1|0;h=h-L[a+14>>1]|0;j=0;d=0}c=d;if((g|0)>=0)continue;break}}oe(a+40|0,0,1);oe(a+52|0,0,4);J[a+60>>2]=0;Nz(a);bc=f+32|0;return}b=Z()|0;vc(f+8|0)}ba(b|0)}B()}ea(0)|0;yc();B()}function wI(a,b){var c=0,d=0,e=0;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[a>>2]=c<< -24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);J[a+4>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);J[a+8>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);J[a+12>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);J[a+16>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<< -24);J[a+20>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);J[a+24>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b=K[b+28|0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[a+28>>2]=b;e=a+16|0;c=8;while(1){a:{b:switch(c&7){case 0:d=J[(c>>>1&2147483644)+2201552>>2];b=Hzb(b,8);b=d^(K[(b>>>16&255)+2202272|0]<<16|K[(b>>>24|0)+2202272|0]<<24|K[(b>>>8&255)+2202272|0]<<8|K[(b&255)+2202272|0]);break a;case 4:break b;default:break a}b= -K[(b&255)+2202272|0]|(K[(b>>>16&255)+2202272|0]<<16|K[(b>>>24|0)+2202272|0]<<24|K[(b>>>8&255)+2202272|0]<<8)}d=(c<<2)+a|0;b=J[d-32>>2]^b;J[d>>2]=b;c=c+1|0;if((c|0)!=60)continue;break}jh(e);jh(a+32|0);jh(a+48|0);jh(a- -64|0);jh(a+80|0);jh(a+96|0);jh(a+112|0);jh(a+128|0);jh(a+144|0);jh(a+160|0);jh(a+176|0);jh(a+192|0);jh(a+208|0)}function h6a(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=Q(e);f=f|0;var g=0,h=0,i=Q(0),j=Q(0),k=0;J[a>>2]=349272;J[a+4>>2]=4;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0; -J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=1065353216;J[a+48>>2]=0;J[a+52>>2]=0;J[a+92>>2]=1;J[a+84>>2]=0;J[a+88>>2]=1;J[a+76>>2]=0;J[a+80>>2]=0;J[a+68>>2]=1056964608;J[a+72>>2]=1065353216;I[a- -64>>1]=0;J[a+56>>2]=1065353216;J[a+60>>2]=1065353216;h=a+96|0;g=h;J[g>>2]=0;J[g+4>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[695492]=0;g=$(4,24)|0;k=J[695492];J[695492]=0;if((k|0)==1){a=Z()|0;$j(h); -ba(a|0);B()}h=g+24|0;J[a+148>>2]=h;J[a+140>>2]=g;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[a+144>>2]=h;wc(a+156|0,0,88);J[a+252>>2]=0;J[a+256>>2]=0;J[a+244>>2]=-16777216;J[a+248>>2]=-16777216;J[a+260>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+272>>2]=0;J[a+276>>2]=0;J[695492]=0;$(2278,a+280|0)|0;g=J[695492];J[695492]=0;if((g|0)==1){c=Z()|0;b=J[a+268>>2];if(b){J[a+272>>2]=b;qc(b)}Qe(a+88|0);ba(c|0);B()}J[a+288>>2]=0;J[a+292>>2]=0;J[a+312>>2]=0;J[a+316>>2]=0;J[a+304>>2]= -0;J[a+308>>2]=0;J[a+296>>2]=0;J[a+300>>2]=0;i=N[b>>2];N[a+252>>2]=i;j=N[b+4>>2];N[a+256>>2]=j;N[a+260>>2]=i+N[b+8>>2];N[a+264>>2]=j+N[b+12>>2];J[a+244>>2]=J[c>>2];b=J[d>>2];J[a+328>>2]=1;J[a+332>>2]=0;J[a+324>>2]=f;J[a+320>>2]=0;N[a+284>>2]=e;J[a+248>>2]=b;return a|0}function CK(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;J[c+20>>2]=a;h=b+60|0;J[c+24>>2]=h;J[c+12>>2]=J[b+220>>2];e=b;a:{b:{c:{d:{e:{while(1){f=K[a|0];if(!f|(f|0)==44)break b;H[e|0]=f;f=K[a+1|0];if(!f|(f|0)==44)break c;H[e+1|0]=f;f=K[a+2|0]; -if(!f|(f|0)==44)break d;H[e+2|0]=f;f=K[a+3|0];if(!f|(f|0)==44)break e;H[e+3|0]=f;f=K[a+4|0];if(!(!f|(f|0)==44)){if((g|0)==55)break a;H[e+4|0]=f;a=a+5|0;e=e+5|0;g=g+5|0;continue}break}e=e+4|0;a=a+4|0;break b}e=e+3|0;a=a+3|0;break b}e=e+2|0;a=a+2|0;break b}e=e+1|0;a=a+1|0}H[e|0]=0;J[c+20>>2]=b;f:while(1){g:{e=K[a|0];h:{if((e|0)!=44){if(e)break h;break g}a=a+1|0}e=a;if(!kd(e,732707,7)){g=e+7|0;i=0;f=h;i:{j:{k:{while(1){e=K[g|0];if(!e){a=g;break j}if((e|0)==44){a=g;break j}a=g+1|0;if((i|0)==156){J[d>> -2]=1;H[h|0]=0;break i}H[f|0]=e;j=f+1|0;e=K[a|0];if(!e){f=j;break j}if((e|0)==44){f=j;break j}H[f+1|0]=e;e=K[g+2|0];if(!e|(e|0)==44)break k;H[f+2|0]=e;e=K[g+3|0];if(!(!e|(e|0)==44)){H[f+3|0]=e;f=f+4|0;i=i+4|0;g=g+4|0;continue}break}f=f+3|0;a=g+3|0;break j}f=f+2|0;a=g+2|0}H[f|0]=0}if(!e|(e|0)==44)continue;break g}if(!kd(e,732798,8)){f=H[e+8|0];if(!f){a=J[b+220>>2]&-16;J[b+220>>2]=a;J[c+12>>2]=a;return}a=e+8|0;f=f-48|0;if((f&254)>>>0>9)continue;a=f|J[b+220>>2]&-16;J[b+220>>2]=a;J[c+12>>2]=a;a=e+9|0; -continue}if(!kd(e,732876,8)){a=J[b+220>>2]|16;J[b+220>>2]=a;J[c+12>>2]=a;a=e+8|0;continue}while(1){a=e+1|0;f=K[e|0];if((f|0)==44)continue f;e=a;if(f)continue;break}}break}return}J[d>>2]=1;H[b|0]=0}function uCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;J[a>>2]=0;a:{b:{c:{d:{e:{f:{g:{e=J[b+16>>2];h:{if(e){i:{while(1){f=J[e+8>>2];J[695492]=0;f=aa(5066,f+8|0,c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;if(!f){e=J[e>>2];if(!e)break i;continue}break}J[695492]=0;aa(4993,a|0,e+8|0)|0;e=J[695492]; -J[695492]=0;if((e|0)==1)break b}f=J[a>>2];if(f)break h}J[695492]=0;e=$(4,76)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[695492]=0;c=ga(5067,e|0,c|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;J[695492]=0;aa(4985,a|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[695492]=0;c=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[c>>2]=0;J[c+4>>2]=0;e=J[a>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break c;e=J[a>>2]}else e=0;J[c+8>>2]=e;J[695492]= -0;of(b+8|0,c);c=J[695492];J[695492]=0;if((c|0)==1)break c;J[695492]=0;_(5068,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;f=J[a>>2]}e=J[f+60>>2];if(e){b=J[d>>2];while(1){if((b|0)==J[e+8>>2])break e;e=J[e>>2];if(e)continue;break}}J[695492]=0;b=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break f;break c}c=Z()|0;qc(e);break a}J[b>>2]=0;J[b+4>>2]=0;c=J[d>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[d>>2]}else c=0;J[b+8>>2]=c;J[695492]=0;of(f+52|0,b); -b=J[695492];J[695492]=0;if((b|0)==1)break c}return}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0}vc(a);ba(c|0);B()}function mZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;t=bc-208|0;bc=t;n=J[a+332>>2];b=J[b+84>>2];a=t;while(1){f=J[b+192>>2];l=I[c+96>>1];h=J[b+64>>2];o=I[c+32>>1];j=P(I[c>>1],J[b>>2])<<13|1024;g=P(J[b+128>>2],I[c+64>>1]);m=j+P(g,-11586)>>11;i=P(J[b+32>>2],I[c+16>>1]);p=P(J[b+160>>2],I[c+80>>1]);q=P(J[b+96>>2],I[c+48>>1]); -r=P(J[b+224>>2],I[c+112>>1]);k=q-r|0;s=i-(p+k|0)<<2;J[a+140>>2]=m-s;J[a+40>>2]=m+s;l=P(f,l);h=P(h,o);f=P(l+h|0,6810);h=f+P(h,4209)|0;o=j+P(g,9373)|0;m=h+o|0;p=p<<13;s=p+P(k,2531)|0;q=q+r|0;r=P(q,7791);u=s+(r+P(i,11443)|0)|0;J[a+180>>2]=m-u>>11;J[a>>2]=m+u>>11;g=j+P(g,-3580)|0;j=f+P(l,-17828)|0;f=g-j|0;k=p+P(k,-6627)|0;l=P(q,4815);m=k+(P(i,5260)-l|0)|0;J[a+120>>2]=f-m>>11;J[a+60>>2]=f+m>>11;f=o-h|0;h=s+(P(i,1812)-r|0)|0;J[a+100>>2]=f-h>>11;J[a+80>>2]=f+h>>11;g=g+j|0;i=P(i,10323)-(k+l|0)|0;J[a+160>> -2]=g-i>>11;J[a+20>>2]=g+i>>11;a=a+4|0;b=b+4|0;c=c+2|0;v=v+1|0;if((v|0)!=5)continue;break}b=n+128|0;a=t;i=0;while(1){j=J[a+12>>2];k=J[a+4>>2];g=P(j+k|0,6810);c=J[(i<<2)+d>>2]+e|0;k=g+P(k,4209)|0;h=(J[a>>2]<<13)+131072|0;f=J[a+8>>2];n=J[a+16>>2];l=f-n|0;o=h+P(l,2896)|0;f=P(f+n|0,6476);n=o+f|0;H[c|0]=K[b+(k+n>>>18&1023)|0];H[c+4|0]=K[b+(n-k>>>18&1023)|0];g=g+P(j,-17828)|0;j=o-f|0;H[c+1|0]=K[b+(g+j>>>18&1023)|0];H[c+3|0]=K[b+(j-g>>>18&1023)|0];H[c+2|0]=K[b+(h+P(l,268423872)>>>18&1023)|0];a=a+20|0;i=i+ -1|0;if((i|0)!=10)continue;break}bc=t+208|0}function mK(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;a:{if(!a)break a;j=b>>10;if((j|0)>=J[a+44>>2])break a;k=J[a+40>>2]+a|0;j=J[(J[a+60>>2]+a|0)+(L[((J[a+52>>2]+a|0)+(L[(k+(b>>>3&126)|0)+(L[k+(j<<1)>>1]<<1)>>1]<<3)|0)+((b&15)<<1)>>1]<<2)>>2];if(!j)break a;b:{c:{d:{if(j>>>0<=2031615){u=J[a+24>>2]+a|0;v=J[a+20>>2]+a|0;s=b-57344|0;w=s>>>0<6400;t=b-983040|0;x=t>>>0<131072;k=0;while(1){l=(j<<1)+v|0;o=(j<<2)+u|0;a=J[o>> -2];if(!(!a|a&536870912|!((h|0)!=0|a>>>0>1073741823|w|x))){r=(m+n|0)+2|0;k=a}b=L[l>>1];e:{if((d|0)>(m|0)){j=(m<<1)+c|0;m=m+1|0;break e}if((f|0)<=(n|0))break d;j=(n<<1)+e|0;n=n+1|0}p=l+2|0;q=L[j>>1];a=0;j=b;f:{if(j>>>0<2)break f;while(1){if(b>>>0<=4){if(q>>>0<=L[(a<<1)+p>>1])break f;b=a+1|0;if(!((b|0)>=(j|0)|q>>>0>L[(b<<1)+p>>1])){a=b;break f}b=a+2|0;if(!((b|0)>=(j|0)|q>>>0>L[(b<<1)+p>>1])){a=b;break f}a=a+3|0;break f}l=(a+j|0)/2|0;b=q>>>0>1];j=b?l:j;a=b?a:l;b=j-a|0;if((b|0)>1)continue; -break}}if((a|0)<0|(a|0)>=(j|0)|(q|0)!=L[(a<<1)+p>>1])break c;j=J[(o+4|0)+(a<<2)>>2];if(j>>>0<16777216)continue;break}if(!((h|0)!=0|j>>>0>1073741823|s>>>0<6400|t>>>0<131072)|j&536870912)break c;r=(m+n|0)+2|0;k=j;break c}if(j&536870912)break a;r=2;k=j;if(!((h|0)!=0|j>>>0>1073741823|b-57344>>>0<6400|b-983040>>>0<131072))break a;break b}if(i)break c;a=m+n|0;if((a|0)>19)break c;return-2-a|0}if(r)break b;return 0}o=1;if((k|0)==-2147483647)break a;J[g>>2]=k;o=r}return o}function Rs(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;j=bc-32|0;bc=j;n=g*3.141592/180;o=He(n);m=Cf(xe(n)/f,o/e);s=j,t=e*He(m)+c,O[s+24>>3]=t;s=j,t=f*xe(m)+d,O[s+16>>3]=t;je(b,j+24|0,j+16|0);O[j+8>>3]=O[j+24>>3]*25.4/96;O[j>>3]=O[j+16>>3]*25.4/96;gc[J[J[a>>2]+320>>2]](a,j+8|0,j)|0;if(R(g)<2147483648)k=~~g;else k=-2147483648;k=((k|0)/90|0)+1|0;p=k>>>0<=1?1:k;k=p>>>0>=4?4:p;if(R(h)<2147483648)l=~~h;else l=-2147483648;l=((l|0)/90|0)+1|0;q=l>>>0<=1?1:l;l=q>>>0>=4?4:q;o=h*3.141592/180;a:{if(!i){if(k>>>0>q>>>0)break a; -g=o;if((k|0)!=(l|0))g=+Q(Q(Q(P(k,90)>>>0)*Q(3.141592025756836))/Q(180));h=He(g);aA(a,b,c,d,e,f,m,Cf(xe(g)/f,h/e),j+24|0,j+16|0);if(l>>>0<=p>>>0)break a;while(1){g=o;k=k+1|0;if((l|0)!=(k|0))g=+Q(Q(Q(P(k,90)>>>0)*Q(3.141592025756836))/Q(180));h=He(g);g=xe(g);n=+Q(Q(Q(P(k,90)-90>>>0)*Q(3.141592025756836))/Q(180));m=He(n);aA(a,b,c,d,e,f,Cf(xe(n)/f,m/e),Cf(g/f,h/e),j+24|0,j+16|0);if(k>>>0>>0)continue;break}break a}if(l>>>0>p>>>0)break a;g=o;if((k|0)!=(l|0))g=+Q(Q(Q(P(k,90)-90>>>0)*Q(3.141592025756836))/ -Q(180));h=He(g);aA(a,b,c,d,e,f,m,Cf(xe(g)/f,h/e),j+24|0,j+16|0);i=k-1|0;if(l>>>0>i>>>0)break a;while(1){g=n;if((i|0)!=(k|0))g=+Q(Q(Q(P(i,90)>>>0)*Q(3.141592025756836))/Q(180));h=o;if((i|0)!=(l|0))h=+Q(Q(Q(P(i,90)-90>>>0)*Q(3.141592025756836))/Q(180));m=He(h);h=xe(h);r=He(g);aA(a,b,c,d,e,f,Cf(xe(g)/f,r/e),Cf(h/f,m/e),j+24|0,j+16|0);i=i-1|0;if(l>>>0<=i>>>0)continue;break}}bc=j+32|0}function T7a(a,b){a=a|0;b=b|0;var c=0,d=Q(0),e=Q(0),f=Q(0),g=0,h=0,i=0;J[a>>2]=348804;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>> -2]=0;J[a+32>>2]=0;h=a+36|0;c=h;J[c>>2]=0;J[c+4>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+60>>2]=0;J[a+64>>2]=1065353216;J[a+76>>2]=0;J[a+80>>2]=0;J[a+120>>2]=1;J[a+112>>2]=0;J[a+116>>2]=1;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=1056964608;J[a+100>>2]=1065353216;I[a+92>>1]=0;J[a+84>>2]=1065353216;J[a+88>>2]=1065353216;i=a+124|0;c=i;J[c>>2]=0;J[c+4>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+156>>2]=0;J[a+ -160>>2]=0;J[695492]=0;c=$(4,24)|0;g=J[695492];J[695492]=0;if((g|0)==1){a=Z()|0;$j(i);ba(a|0);B()}g=c+24|0;J[a+176>>2]=g;J[a+168>>2]=c;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[a+172>>2]=g;wc(a+184|0,0,88);J[a+284>>2]=1092616192;N[a+12>>2]=N[b+16>>2];N[a+16>>2]=N[b+20>>2];c=J[b+4>>2];J[a+20>>2]=J[b>>2];J[a+24>>2]=c;c=J[b+12>>2];J[a+28>>2]=J[b+8>>2];J[a+32>>2]=c;tc(h,b,80);J[695492]=0;c=a+116|0;aa(2370,c|0,b+80|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[a+272>>2]=0; -J[a+276>>2]=0;if(N[a+108>>2]==Q(0))d=Q(1);else{e=N[a+12>>2];d=N[a+16>>2];a:{if(e>2]}N[a+276>>2]=d;d=Q(d+Q(1))}if(N[a+112>>2]!=Q(0)){e=N[a+16>>2];f=N[a+12>>2];b:{if(e>2]}N[a+272>>2]=f}N[a+280>>2]=Q(1)/Q(d+f);return a|0}a=Z()|0;Qe(c);ba(a|0);B()}function nJ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+288>>2];a:{if((b|0)==1){b=J[a+292>>2];J[a+308>>2]=J[b+28>>2];c=J[b+32>>2];J[a+312>>2]=c;J[b+64>>2]=1;J[b+56>>2]=1;J[b+60>>2]=1;J[b+72>> -2]=1;J[b+68>>2]=J[b+36>>2];d=b;b=J[b+12>>2];c=(c>>>0)%(b>>>0)|0;J[d+76>>2]=c?c:b;J[a+316>>2]=1;J[a+320>>2]=0;break a}if(b-5>>>0<=4294967291){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=27;J[J[a>>2]+28>>2]=4;gc[J[J[a>>2]>>2]](a)}b=P(J[a+376>>2],J[a+268>>2]);J[a+308>>2]=((b+J[a+64>>2]|0)-1|0)/(b|0);b=P(J[a+376>>2],J[a+272>>2]);b=((b+J[a+68>>2]|0)-1|0)/(b|0)|0;J[a+316>>2]=0;J[a+312>>2]=b;if(J[a+288>>2]<=0)break a;h=a+320|0;while(1){c=J[((f<<2)+a|0)+292>>2];e=J[c+8>>2];J[c+56>>2]=e;g=J[c+12>>2];J[c+60>>2]=g;b= -P(e,g);J[c+64>>2]=b;J[c+68>>2]=P(e,J[c+36>>2]);d=M[c+28>>2]%(e>>>0)|0;J[c+72>>2]=d?d:e;d=c;c=M[c+32>>2]%(g>>>0)|0;J[d+76>>2]=c?c:g;if((b+J[a+316>>2]|0)>=11){c=J[a>>2];J[c+20>>2]=14;gc[J[c>>2]](a)}b:{if((b|0)<=0)break b;e=0;c=b;g=b&3;if(g)while(1){d=J[a+316>>2];J[a+316>>2]=d+1;J[((d<<2)+a|0)+320>>2]=f;c=c-1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}if(b>>>0<4)break b;while(1){b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1; -J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}f=f+1|0;if((f|0)>2])continue;break}}b=J[a+240>>2];if((b|0)>0){c=a;a=P(b,J[a+308>>2]);J[c+236>>2]=(a|0)>=65535?65535:a}}function gcb(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;i=bc-16|0;bc=i;b=J[b>>2];J[i+12>>2]=0;a:{if(!b){e=35;break a}e=6;g=J[b+132>>2];if(!g|M[b+16>>2]<=c>>>0)break a;e=3;h=L[g+4>>1];b=(h|0)==768;c=P(c?c-1|0:K[g+106|0],b?6:4)+(b?148:118)|0; -f=b?-4:-2;b=J[g+8>>2];if(c>>>0>=(f+b|0)-2>>>0)break a;f=c+J[g+160>>2]|0;j=K[f|0]|K[f+1|0]<<8;J[a+80>>2]=j;c=b;if((h|0)==768)b=K[f+2|0]|K[f+3|0]<<8|(K[f+4|0]<<16|K[f+5|0]<<24);else b=K[f+2|0]|K[f+3|0]<<8;if(c>>>0<=b>>>0)break a;c=L[g+96>>1];e=0;J[a+100>>2]=0;H[a+94|0]=1;J[a+76>>2]=c;f=L[g+80>>1];J[a+72>>2]=1651078259;J[a+104>>2]=f;h=j<<6;J[a+40>>2]=h;c=c<<6;J[a+28>>2]=c;J[a+24>>2]=h;J[a+32>>2]=0;J[a+36>>2]=f<<6;gu(a+24|0,c);if(d&4194304)break a;e=3;c=J[J[a+4>>2]+100>>2];h=J[g+160>>2];d=J[a+80>>2]+ -7|0;f=d>>>3|0;J[a+84>>2]=f;if(d>>>0<8)break a;j=J[g+8>>2];g=J[a+76>>2];if(j>>>0>>0)break a;c=Sc(c,f,0,g,0,i+12|0);J[a+88>>2]=c;e=J[i+12>>2];if(e)break a;b=b+h|0;if(d&8){d=J[a+76>>2];if((d|0)>0){d=b+d|0;e=c;while(1){H[e|0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(d>>>0>b>>>0)continue;break}}c=c+1|0;d=f-1|0}else d=f;if((f|0)!=1)while(1){e=J[a+76>>2];if((e|0)>0){f=b+e|0;e=c;while(1){H[e|0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(f>>>0>b>>>0)continue;break}}e=J[a+76>>2];if((e|0)>0){f=b+e|0;e=c+1|0;while(1){H[e| -0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(f>>>0>b>>>0)continue;break}}c=c+2|0;d=d-2|0;if(d)continue;break}e=J[i+12>>2];J[J[a+156>>2]+4>>2]=1}bc=i+16|0;return e|0}function crb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){o=e-2|0;p=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];f=a+2|0;g=g+2|0;a:{if(k>>>0>o>>>0)break a;j=k?(k|0)==(o|0)?d:b:c;l=!k&p;if(l){if(j>>>0<2)break a;h=j-1|0;i=h&3;if(j-2>>>0>=3){j=h&-4;h=0;while(1){H[g|0]=K[a|0];H[g+ -1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];g=g+8|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];g=g+2|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;m=i-1|0;n=m&3;if(i-2>>>0>=3){m=m&-4;i=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+7|0]= -K[a+1|0];g=g+8|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;if(!n)break b;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];g=g+2|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;a=l?0:f;n=j+(h^-1)|0;i=0;l=j-h&3;if(l)while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];h=h+1|0;g=g+2|0;i=i+1|0;if((l|0)!=(i|0))continue;break}if(n>>>0<3)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];g=g+8|0;h=h+4|0;if((j| -0)!=(h|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function Bo(a){var b=0,c=0;c=bc-16|0;bc=c;a:{b:{c:{if((af(a,c+12|0,4)|0)!=4)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{a=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if((a|0)<=1818850404){if((a|0)<=1749903735){if((a|0)<=1684632434){if((a|0)==1668246642)break o;if((a|0)==1684107883)break b;if((a|0)!=1684629094)break c;b=17;break a}if((a|0)==1684632435)break l;if((a|0)==1684633120)break h; -if((a|0)!=1749838196)break c;b=12;break a}if((a|0)<=1816947059){if((a|0)==1749903736)break e;if((a|0)==1752524064)break p;if((a|0)!=1768188278)break c;b=4;break a}if((a|0)==1816947060)break f;if((a|0)==1818391150)break g;if((a|0)!=1818518631)break c;b=9;break a}q:{if((a|0)<=1885434738){if((a|0)<=1852797548){if((a|0)==1818850405)break q;if((a|0)==1819634976)break n;if((a|0)!=1836411936)break c;b=3;break a}b=0;if((a|0)==1852797549)break a;if((a|0)==1870030194)break k;if((a|0)!=1884055924)break c;b= -15;break a}if((a|0)<=1935897197){if((a|0)==1885434739)break d;if((a|0)==1934387572)break j;if((a|0)!=1935766560)break c;b=20;break a}if((a|0)==1935897198)break m;if((a|0)==1936553316)break i;if((a|0)!=1984719220)break c;b=13;break a}b=6;break a}b=19;break a}b=21;break a}b=22;break a}b=7;break a}b=1;break a}b=10;break a}b=11;break a}b=18;break a}b=8;break a}b=5;break a}b=14;break a}b=16;break a}b=23;break a}fa(221272,220026,361,223646);B()}b=2}a=b;bc=c+16|0;return a}function eZ(a,b,c,d,e,f,g,h,i,j, -k){var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;l=c;o=J[a+180>>2];q=J[a+188>>2];r=q+P(b,12)|0;m=J[r>>2];c=o+P(m,272)|0;O[l>>3]=O[c>>3];O[d>>3]=O[c+8>>3];n=J[a+324>>2];s=(n|0)<=0;a:{if(s)break a;c=0;a=0;if(n>>>0>=4){u=n&-4;d=(P(m,272)+o|0)+16|0;while(1){l=a<<3;O[l+e>>3]=O[d+l>>3];p=l|8;O[p+e>>3]=O[d+p>>3];p=l|16;O[p+e>>3]=O[d+p>>3];l=l|24;O[l+e>>3]=O[d+l>>3];a=a+4|0;t=t+4|0;if((u|0)!=(t|0))continue;break}}d=n&3;if(!d)break a;l=P(m,272)+o|0;while(1){m=a<<3;O[m+e>>3]=O[(l+m|0)+16>>3];a=a+1|0;c=c+1|0; -if((d|0)!=(c|0))continue;break}}l=J[r+4>>2];a=P(l,272)+o|0;O[f>>3]=O[a>>3];O[g>>3]=O[a+8>>3];b:{if(s)break b;d=0;a=0;if(n>>>0>=4){g=n&-4;e=(P(l,272)+o|0)+16|0;c=0;while(1){f=a<<3;O[f+h>>3]=O[e+f>>3];m=f|8;O[m+h>>3]=O[e+m>>3];m=f|16;O[m+h>>3]=O[e+m>>3];f=f|24;O[f+h>>3]=O[e+f>>3];a=a+4|0;c=c+4|0;if((g|0)!=(c|0))continue;break}}c=n&3;if(!c)break b;e=P(l,272)+o|0;while(1){f=a<<3;O[f+h>>3]=O[(e+f|0)+16>>3];a=a+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}f=J[(P(b,12)+q|0)+8>>2];a=P(f,272)+o|0;O[i>>3]=O[a>> -3];O[j>>3]=O[a+8>>3];c:{if((n|0)<=0)break c;c=0;a=0;if(n>>>0>=4){g=n&-4;b=(P(f,272)+o|0)+16|0;d=0;while(1){e=a<<3;O[e+k>>3]=O[b+e>>3];h=e|8;O[h+k>>3]=O[b+h>>3];h=e|16;O[h+k>>3]=O[b+h>>3];e=e|24;O[e+k>>3]=O[b+e>>3];a=a+4|0;d=d+4|0;if((g|0)!=(d|0))continue;break}}b=n&3;if(!b)break c;d=P(f,272)+o|0;while(1){e=a<<3;O[e+k>>3]=O[(d+e|0)+16>>3];a=a+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}}function RI(a,b){var c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;f=9;a:{if((gc[J[J[a>>2]+8>>2]](a,b)|0)!=1)break a;if(gc[J[J[a>> -2]+8>>2]](a,b+1|0)|0)break a;c=gc[J[J[a>>2]+8>>2]](a,b+2|0)|0;if((c|0)<0)break a;if((gc[J[J[a>>2]+8>>2]](a,b+3|0)|0)-5>>>0<4294967292)break a;c=b+c|0;if((c|0)<0)break a;if(!(gc[J[J[a>>2]+12>>2]](a,c,d+4|0)|0))break a;b=c+2|0;if(J[d+4>>2]){e=gc[J[J[a>>2]+8>>2]](a,b)|0;if(e-5>>>0<4294967292)break a;if(!(gc[J[J[a>>2]+24>>2]](a,(c+P(e,J[d+4>>2])|0)+3|0,e,d+8|0)|0))break a;c=J[d+8>>2];if((c|0)<0)break a;b=(b+c|0)+P(e,J[d+4>>2]+1|0)|0;if((b|0)<0)break a}if(!(gc[J[J[a>>2]+12>>2]](a,b,d+4|0)|0)|J[d+4>>2]<= -0)break a;c=gc[J[J[a>>2]+8>>2]](a,b+2|0)|0;if(c-5>>>0<4294967292)break a;b=b+3|0;if(!(gc[J[J[a>>2]+24>>2]](a,b,c,d+12|0)|0)|J[d+12>>2]<0)break a;if(!(gc[J[J[a>>2]+24>>2]](a,b+c|0,c,d+8|0)|0))break a;e=J[d+8>>2];if((e|0)<0)break a;g=J[d+12>>2];if(g>>>0>e>>>0)break a;g=b+g|0;b=P(c,J[d+4>>2]+1|0);c=g+b|0;if((c|0)<=0)break a;b=c+(b+e|0)|0;e=b+2|0;if((e|0)<=0|(c|0)>(e|0))break a;g=b+1|0;b=c-1|0;b:{if(c>>>0>=e>>>0)break b;while(1){f=3;c:{d:{e:{c=gc[J[J[a>>2]+8>>2]](a,b)|0;switch(c-28|0){case 0:break c; -case 1:break d;default:break e}}f=2;if(c-247>>>0<8)break c;f=1;if(c-32>>>0<=214)break c;break b}f=5}b=b+f|0;if((g|0)>(b|0))continue;break}}c=b+1|0;f:{if((c|0)>=(g|0))break f;if((gc[J[J[a>>2]+8>>2]](a,b)|0)!=12)break f;f=3;if((gc[J[J[a>>2]+8>>2]](a,c)|0)==30)break a}f=2}bc=d+16|0;return f}function Fr(a){var b=0,c=0,d=0,e=0;b=J[a+376>>2];if((b|0)>0)while(1){e=(d<<2)+a|0;c=J[e+460>>2];if(c){a:{b:switch(J[e+380>>2]-1|0){case 0:Gc(J[c+352>>2]);qc(c);break a;case 1:Gc(J[c+4>>2]);qc(c);break a;case 10:Gc(J[c+ -8>>2]);Gc(J[c+16>>2]);Gc(J[c+24>>2]);qc(c);break a;case 12:b=0;if(I[c+48>>1]>0)while(1){qc(J[(J[c+52>>2]+P(b,788)|0)+784>>2]);b=b+1|0;if((b|0)>1])continue;break}qc(J[c+52>>2]);qc(J[c+60>>2]);qc(J[c+96>>2]);qc(c);break a;case 14:case 15:if(c){Gc(J[c+3300>>2]);J[c+3300>>2]=0;b=c+3304|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3308|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3312|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3316|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3320|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3324|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3328|0;Gc(J[b>>2]); -J[b>>2]=0;b=c+3332|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3336|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3340|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3344|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3348|0;Gc(J[b>>2]);J[b>>2]=0;b=c+3352|0;Gc(J[b>>2]);J[b>>2]=0;Gc(J[c+1892>>2]);Gc(J[c+2500>>2]);Gc(J[c+2508>>2]);Gc(J[c+2516>>2]);Gc(J[c+2576>>2]);Gc(J[c+2880>>2]);Gc(J[c+2888>>2]);Gc(J[c+2896>>2]);Gc(J[c+2932>>2]);qc(c)}break a;default:break b}Gc(c)}J[e+460>>2]=0;b=J[a+376>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}J[a+376>>2]=0;Gc(J[a+32>>2]);J[a+32>>2]= -0;Gc(J[a+548>>2]);J[a+548>>2]=0;Gc(J[a+372>>2]);J[a+372>>2]=0;Gc(J[a+76>>2]);J[a+76>>2]=0;Gc(J[a+92>>2]);J[a+92>>2]=0;Gc(J[a+96>>2]);J[a+96>>2]=0;Gc(J[a+100>>2]);J[a+100>>2]=0;Gc(J[a+104>>2]);J[a+104>>2]=0}function jD(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,r=0,s=0,t=0,u=0,v=0;i=bc-16|0;f=1;a:{b:{c:switch(J[a>>2]){case 1:break a;case 0:break b;default:break c}while(1){e=f;while(1){d=P(e,12)+b|0;g=d-12|0;if(J[d>>2]>2]){J[i+8>>2]=J[d+8>>2];j=J[d+4>>2];J[i>>2]=J[d>>2]; -J[i+4>>2]=j;J[d+8>>2]=J[g+8>>2];j=J[g+4>>2];J[d>>2]=J[g>>2];J[d+4>>2]=j;J[g+8>>2]=J[i+8>>2];d=J[i+4>>2];J[g>>2]=J[i>>2];J[g+4>>2]=d;e=e-1|0;if(e)continue}break}f=f+1|0;j=J[a>>2];if(f>>>0>>0)continue;break}f=1;if(j>>>0<2)break b;p=b+36|0;q=b+24|0;r=b+12|0;m=j-1|0;n=J[b>>2];g=0;d=1;while(1){h=(d|0)==(m|0);f=J[P(d,12)+b>>2]-n|0;d:{if(!(h|(f|0)>(c|0))){f=d;break d}i=0;h=h&(c|0)>=(f|0);f=h+d|0;e=g;e:{if(g>>>0>=f>>>0)break e;e=(d+h|0)-g|0;o=e&3;l=0;d=g;if(e-1>>>0>=3){s=e&-4;e=0;while(1){h=P(d,12);k= -h+b|0;t=J[k>>2];J[k>>2]=0;k=h+r|0;u=J[k>>2];J[k>>2]=0;k=h+q|0;v=J[k>>2];J[k>>2]=0;h=h+p|0;k=J[h>>2];J[h>>2]=0;i=(((i+t|0)+u|0)+v|0)+k|0;d=d+4|0;e=e+4|0;if((s|0)!=(e|0))continue;break}}e=f;if(!o)break e;while(1){e=P(d,12)+b|0;h=J[e>>2];J[e>>2]=0;d=d+1|0;i=i+h|0;l=l+1|0;if((l|0)!=(o|0))continue;break}e=f}J[P(g,12)+b>>2]=(i|0)/(e|0);if(f>>>0>=m>>>0)break d;g=f+1|0;n=J[P(g,12)+b>>2]}d=f+1|0;if(j>>>0>d>>>0)continue;break}f=1;if(j>>>0<=1)break b;d=1;while(1){c=P(d,12)+b|0;if(J[c>>2]){g=J[c+4>>2];e=P(f, -12)+b|0;J[e>>2]=J[c>>2];J[e+4>>2]=g;J[e+8>>2]=J[c+8>>2];j=J[a>>2];f=f+1|0}d=d+1|0;if(j>>>0>d>>>0)continue;break}}J[a>>2]=f}}function l1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=Q(0),j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=Q(0),r=0;f=bc-16|0;bc=f;c=H[a+48|0];h=J[a+28>>2];l=J[a>>2];d=J[a+24>>2];a:{b:{if((d|0)>J[a+32>>2]){if((c|0)>26)break a;c=c+1|0;break b}if((c|0)<=0|(d|0)>=J[a+36>>2])break a;c=c-1|0}c:{if(J[b>>2]>0)break c;H[a+48|0]=c;c=J[(c<<2)+735104>>2];J[a+28>>2]=c;d=Wh(P(c,12));J[a>>2]=d;if(!d){J[b>>2]=7;break c}c= -J[a+28>>2];if((c|0)>0){e=P(c,12)+d|0;while(1){J[d+8>>2]=0;J[d>>2]=-2147483647;J[d+4>>2]=0;d=d+12|0;if(e>>>0>d>>>0)continue;break}}J[a+24>>2]=0;i=Q(c|0);q=Q(N[a+44>>2]*i);d:{if(Q(R(q))>2]=c;i=Q(N[a+40>>2]*i);e:{if(Q(R(i))>2]=c;if(J[b>>2]>0)break c;if((h|0)>0)while(1){c=h-1|0;e=P(c,12)+l|0;k=J[e>>2];if((k|0)>=0){J[f+8>>2]=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);m=0;g=-1;b=J[a+28>>2];n=(k^ -67108864)%(b|0)|0;d=n;o=J[a>>2];f:{g:{while(1){r=P(d,12);j=r+o|0;p=J[j>>2];h:{if((p|0)==(k|0)){b=J[a+8>>2];J[f+4>>2]=J[f+8>>2];J[f>>2]=J[(o+r|0)+8>>2];if(gc[b|0](f+4|0,f)|0)break f;b=J[a+28>>2];break h}if((p|0)>=0)break h;g=(g|0)<0?d:g;if((p|0)==-2147483647)break g}if(!m)m=((k|0)%(b-1|0)|0)+1|0;d=(d+m|0)%(b|0)|0;if((n|0)!=(d|0))continue;break}g=(g|0)<0?n:g}j=o+P(g,12)|0}J[j+8>>2]=J[e+8>>2];J[j+4>>2]=J[e+4>>2];J[j>>2]=J[e>>2];J[a+24>>2]=J[a+24>>2]+1}b=(h|0)>1;h=c;if(b)continue;break}Gf(l);break a}J[a+ -28>>2]=h;J[a>>2]=l}bc=f+16|0}function fi(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+48>>2];if(g>>>0>=c>>>0){tc(b,J[a+36>>2],c);J[a+36>>2]=J[a+36>>2]+c;J[a+48>>2]=J[a+48>>2]-c;f=J[a+60>>2];b=J[a+56>>2]+c|0;f=b>>>0>>0?f+1|0:f;J[a+56>>2]=b;J[a+60>>2]=f;return c}if(K[a+68|0]&4){tc(b,J[a+36>>2],g);c=J[a+48>>2];J[a+48>>2]=0;J[a+36>>2]=c+J[a+36>>2];b=J[a+60>>2];d=c;c=J[a+56>>2]+c|0;b=d>>>0>c>>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;return g?g:-1}a:{if(g){h=tc(b,J[a+36>>2],g);i=J[a+32>>2];J[a+36>>2]=i;e= -J[a+48>>2];J[a+48>>2]=0;b=J[a+60>>2];f=J[a+56>>2]+e|0;b=f>>>0>>0?b+1|0:b;J[a+56>>2]=f;J[a+60>>2]=b;c=c-e|0;b=e+h|0;break a}i=J[a+32>>2];J[a+36>>2]=i}b:{c:{while(1){d:{e=J[a>>2];h=J[a+16>>2];f=J[a+64>>2];e:{if(f>>>0>c>>>0){h=gc[h|0](i,f,e)|0;J[a+48>>2]=h;if((h|0)==-1)break b;if(c>>>0<=h>>>0)break d;tc(b,J[a+36>>2],h);i=J[a+32>>2];J[a+36>>2]=i;e=J[a+48>>2];break e}e=gc[h|0](b,c,e)|0;J[a+48>>2]=e;if((e|0)==-1)break b;if(c>>>0<=e>>>0)break c;i=J[a+32>>2];J[a+36>>2]=i;h=e}J[a+48>>2]=0;f=J[a+60>>2]; -j=J[a+56>>2]+e|0;f=j>>>0>>0?f+1|0:f;J[a+56>>2]=j;J[a+60>>2]=f;b=b+e|0;c=c-e|0;g=g+h|0;continue}break}tc(b,J[a+36>>2],c);J[a+36>>2]=J[a+36>>2]+c;J[a+48>>2]=J[a+48>>2]-c;b=J[a+60>>2];d=J[a+56>>2]+c|0;b=d>>>0>>0?b+1|0:b;J[a+56>>2]=d;J[a+60>>2]=b;return c+g|0}J[a+48>>2]=0;J[a+36>>2]=J[a+32>>2];b=J[a+60>>2];c=J[a+56>>2]+e|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;return e+g|0}Hc(d,4,2340217,0);J[a+48>>2]=0;J[a+68>>2]=J[a+68>>2]|4;return g?g:-1}function eC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d| -0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if(!d|(!a|!c))break a;h=J[d>>2];if((b|0)<=536870911){f=Ezb(b<<2,b>>31<<2|b>>>30,3,0);f=e&1?f:((b|0)%3|0)+f|0;j=(f|0)/76|0;i=f-P(j,76)|0;b:{if(!i)break b;i=(i<<24>>24)%4|0;if(!i)break b;f=((0-i<<24>>24)+f|0)+4|0}f=(e&2?0:(j<<1)+2|0)+f|0}else f=-1;if((f|0)>(h|0))break a;o=(b|0)/57|0;c:{if((b|0)<-56)break c;p=e&2;h=((b|0)/3<<2)%76>>2;f=19;while(1){k=0;j=(l|0)==(o|0);f=j?h:f;if((f|0)>0)while(1){m=K[a+1|0];n=K[a|0];i=K[a+2|0];H[c+3|0]=K[(i&63)+ -413920|0];H[c|0]=K[(n>>>2|0)+413920|0];H[c+2|0]=K[((i<<20|m<<28)>>>26|0)+413920|0];H[c+1|0]=K[((n<<30|m<<22)>>>26|0)+413920|0];a=a+3|0;c=c+4|0;k=k+1|0;if((k|0)!=(f|0))continue;break}g=(f<<2)+g|0;if(!p){H[c|0]=13;H[c+1|0]=10;g=g+2|0;c=c+2|0}l=l+1|0;if(!j)continue;break}if(!g){g=0;break c}if(e&2)break c;g=g-2|0;c=c-2|0}k=1;h=(b|0)%3|0;i=h+1|0;d:{if(i>>>0<2)break d;f=0;e:{f:{if((h|0)>0){f=K[a|0]<<8;if((h|0)==1)break f;f=K[a+1|0]|f;break f}if((h|0)<0)break e}a=f<<16;b=h+1|0;j=b&3;if(h>>>0>=3){b=b&-4; -f=0;while(1){H[c+3|0]=65;H[c|0]=K[(a>>>26|0)+413920|0];H[c+2|0]=K[(a>>>14&63)+413920|0];H[c+1|0]=K[(a>>>20&63)+413920|0];c=c+4|0;a=0;f=f+4|0;if((b|0)!=(f|0))continue;break}}if(!j)break e;f=0;while(1){H[c|0]=K[(a>>>26|0)+413920|0];a=a<<6;c=c+1|0;f=f+1|0;if((j|0)!=(f|0))continue;break}}if(e&1){g=g+i|0;break d}a=3-h|0;wc(c,61,(a|0)<=1?1:a);g=g+4|0}J[d>>2]=g}return k|0}function b9(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;r=bc;i=b+1|0;l=r-((P(i>>>1|0,c)<<2)+15&-16)|0;bc=l; -a:{if((b|0)<2)break a;m=(P(1-e|0,d)<<2)+a|0;p=i-e>>1;i=e?p:b-p|0;b:{if((i|0)<=0|(c|0)<=0)break b;o=d<<1;j=c<<2;h=i;f=m;g=l;k=i&3;if(k)while(1){g=tc(g,f,j);h=h-1|0;f=(o<<2)+f|0;g=g+j|0;n=n+1|0;if((k|0)!=(n|0))continue;break}if(i>>>0<4)break b;while(1){g=tc(g,f,j);q=f;f=o<<2;k=q+f|0;n=f+k|0;s=f+n|0;f=f+s|0;q=g;g=c<<2;g=tc(tc(tc(q+g|0,k,j)+g|0,n,j)+g|0,s,j)+g|0;k=h-5|0;h=h-4|0;if(k>>>0<4294967294)continue;break}}g=(b-!e|0)-i|0;if(!((g|0)<=0|(c|0)<=0)){o=c&-8;j=c&7;e=(P(2-e|0,d)<<2)+a|0;k=c>>>0<8;n=d<< -3;while(1){h=0;f=m;b=e;if(!k)while(1){J[f>>2]=J[b>>2];J[f+4>>2]=J[b+4>>2];J[f+8>>2]=J[b+8>>2];J[f+12>>2]=J[b+12>>2];J[f+16>>2]=J[b+16>>2];J[f+20>>2]=J[b+20>>2];J[f+24>>2]=J[b+24>>2];J[f+28>>2]=J[b+28>>2];b=b+32|0;f=f+32|0;h=h+8|0;if((o|0)!=(h|0))continue;break}h=0;if(j)while(1){J[f>>2]=J[b>>2];b=b+4|0;f=f+4|0;h=h+1|0;if((j|0)!=(h|0))continue;break}e=e+n|0;m=(d<<2)+m|0;b=(g|0)>1;g=g-1|0;if(b)continue;break}}if((i|0)<=0|(c|0)<=0)break a;e=c<<2;h=(P(d,p)<<2)+a|0;a=i&3;c:{if(!a){b=i;break c}g=0;b=i;while(1){f= -tc(h,l,e);b=b-1|0;l=e+l|0;h=(d<<2)+f|0;g=g+1|0;if((a|0)!=(g|0))continue;break}}if(i>>>0<4)break a;while(1){f=tc(h,l,e);a=c<<2;i=a+l|0;m=a+i|0;h=m+a|0;l=h+a|0;a=d<<2;h=tc(tc(tc(a+f|0,i,e)+a|0,m,e)+a|0,h,e)+a|0;a=b-5|0;b=b-4|0;if(a>>>0<4294967294)continue;break}}bc=r}function rn(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=J[a+88>>2];b=J[a+32>>2]+(b<<4)|0;g=J[b+8>>2];I[h+12>>1]=g+32>>>6;j=J[b+12>>2];I[h+14>>1]=j+32>>>6;a:{b:{c:{d:{if(H[a+8|0]&1){l=h+12|0;d=L[a+68>>1];if(!d){e=2147483647;J[h+16>> -2]=(g|0)<0?-2147483647:2147483647;break a}b=g>>31;e=(b^g)-b|0;if(e>>>0<=65535){b=((e<<16|d>>>1)>>>0)/(d>>>0)|0;break c}b=2147483647;c=e>>>16|0;if(c>>>0>=d>>>0)break c;b=e<<16|d>>>1;i=S(c);f=32-i|0;c=b>>>f|c<>>0)/(d>>>0)|0;c=c-P(d,e)|0;b=b<>>31;f=c>>>0>=d>>>0;c=c-(f?d:0)|0;e=f|e<<1;f=31-i|0;b=b<<1}if((i|0)!=31)while(1){c=c<<1|b>>>31;i=c>>>0>=d>>>0;c=b>>>30&1|c-(i?d:0)<<1;k=c>>>0>=d>>>0;c=c-(k?d:0)|0;e=e<<2|i<<1|k;b=b<<2;f=f-2|0;if(f)continue;break}J[h+16>>2]=(g|0)<0?0-e| -0:e;if(!d)break d;b=j>>31;b=(b^j)-b|0;break b}J[h+28>>2]=0;J[h+24>>2]=j;J[h+16>>2]=65536;J[h+20>>2]=65536;a=I[b>>1];J[h+36>>2]=g;J[h+32>>2]=a<<6;return}e=2147483647;break a}J[h+16>>2]=(g|0)<0?0-b|0:b;b=j>>31;b=(b^j)-b|0}if(b>>>0<=65535){e=((b<<16|d>>>1)>>>0)/(d>>>0)|0;break a}e=2147483647;c=b>>>16|0;if(c>>>0>=d>>>0)break a;b=b<<16|d>>>1;g=S(c);f=32-g|0;c=b>>>f|c<>>0)/(d>>>0)|0;c=c-P(d,e)|0;b=b<>>31;f=c>>>0>=d>>>0;c=c-(f?d:0)|0;e=f|e<<1;f=31-g|0;b=b<<1}if((g|0)==31)break a; -while(1){c=c<<1|b>>>31;g=c>>>0>=d>>>0;c=b>>>30&1|c-(g?d:0)<<1;i=c>>>0>=d>>>0;c=c-(i?d:0)|0;e=i|(e<<2|g<<1);b=b<<2;f=f-2|0;if(f)continue;break}}J[h+20>>2]=(j|0)<0?0-e|0:e;Z5(a,l)}function kpa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;J[a>>2]=0;a:{b:{c:{d:{if(c){J[695492]=0;f=$(4,2860)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;c=0;e:{g=J[b>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[b>>2]}J[695492]=0;J[e+12>>2]=c;c=e+12|0;b=ga(5550, -f|0,c|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1){b=Z()|0;vc(c);qc(f);break b}J[695492]=0;aa(4985,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){a=J[e+12>>2];J[e+12>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}b=Z()|0;vc(e+12|0);break b}b=Z()|0;qc(f);break b}J[695492]=0;f=$(4,2860)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;c=0;f:{g=J[b>>2];if(g){J[695492]= -0;J[g+4>>2]=J[g+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break f;c=J[b>>2]}J[695492]=0;J[e+8>>2]=c;c=e+8|0;b=ga(5551,f|0,c|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1){b=Z()|0;vc(c);qc(f);break b}J[695492]=0;aa(4985,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){a=J[e+8>>2];J[e+8>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}b=Z()|0;vc(e+8|0);break b}b=Z()| -0;qc(f);break b}bc=e+16|0;return}b=Z()|0}vc(a);ba(b|0);B()}ea(0)|0;yc();B()}function hqb(a){a=a|0;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;if(J[a+588>>2]>0){e=J[J[a+536>>2]+88>>2];e=(J[e+1176>>2]+P(J[e+1168>>2],J[a+572>>2])|0)+P(J[e+1164>>2],J[a+580>>2])|0;f=J[a+644>>2];while(1){d=e+6|0;b=K[d|0]|K[d+1|0]<<8;h=(b<<8|b>>>8)&65535;b=K[f+6|0]|K[f+7|0]<<8;b=(b<<8|b>>>8)&65535;a:{if(!b)break a;if(!(h?(b|0)!=65535:0)){I[e>>1]=L[f>>1];I[e+2>>1]=L[f+2>>1];I[e+4>>1]=L[f+4>>1];I[e+ -6>>1]=L[f+6>>1];break a}c=K[f|0]|K[f+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[f+2|0]|K[f+3|0]<<8;l=(c<<8|c>>>8)&65535;c=K[f+4|0]|K[f+5|0]<<8;m=(c<<8|c>>>8)&65535;c=K[e|0]|K[e+1|0]<<8;n=(c<<8|c>>>8)&65535;c=e+2|0;i=K[c|0]|K[c+1|0]<<8;o=(i<<8|i>>>8)&65535;i=e+4|0;j=K[i|0]|K[i+1|0]<<8;j=(j<<8|j>>>8)&65535;if((h|0)==65535){h=b^65535;d=(P(b,g)+P(h,n)|0)+32768|0;d=(d>>>16|0)+d>>>16|0;d=d<<8|d>>>8;H[e|0]=d;H[e+1|0]=d>>>8;d=(P(b,l)+P(h,o)|0)+32768|0;d=(d>>>16|0)+d>>>16|0;d=d<<8|d>>>8;H[c|0]=d;H[c+1|0]=d>>>8;b=(P(b, -m)+P(h,j)|0)+32768|0;b=(b>>>16|0)+b>>>16|0;b=b<<8|b>>>8;H[i|0]=b;H[i+1|0]=b>>>8;break a}k=b<<16;p=b^65535;b=(P(p,h^65535)^-1)>>>16|0;k=(k>>>0)/(b>>>0)|0;h=(P(h,p)>>>0)/(b>>>0)|0;g=(P(g,k)+P(h,n)|0)+32767>>>16|0;g=g<<8|g>>>8;H[e|0]=g;H[e+1|0]=g>>>8;g=(P(l,k)+P(h,o)|0)+32767>>>16|0;g=g<<8|g>>>8;H[c|0]=g;H[c+1|0]=g>>>8;c=(P(m,k)+P(h,j)|0)+32767>>>16|0;c=c<<8|c>>>8;H[i|0]=c;H[i+1|0]=c>>>8;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8}f=f+8|0;e=e+8|0;q=q+1|0;if((q|0)>2])continue;break}}return 0}function g4(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;g=bc-16|0;bc=g;d=J[a+104>>2];h=J[d+28>>2];m=J[a+736>>2];H[m+(b?44:32)|0]=1;c=gc[J[a+516>>2]](a,b?1448493394:1213612370,d,g+8|0)|0;J[g+12>>2]=c;a:{if(c)break a;j=J[d+8>>2];k=g+12|0;e=Wd(d,k);c=J[g+12>>2];if(c)break a;c=bg(d,2);J[g+12>>2]=c;if(c)break a;c=8;if((e|0)!=1)break a;e=Kf(d,k);c=J[g+12>>2];if(c)break a;d=Kf(d,k);c=J[g+12>>2];if(c)break a;f=Zd(h,32,k);b:{if(b){J[m+52>>2]=f;break b}J[m+40>>2]=f}c=J[g+12>>2];if(c)break a; -c=i4(J[a+104>>2],J[a+736>>2],e+j|0,f);J[g+12>>2]=c;if(c)break a;if(d){i=bc-16|0;bc=i;l=J[a+104>>2];h=J[l+28>>2];c=nd(l,d+j|0);J[i+12>>2]=c;c:{if(c)break c;j=i+12|0;d=Wd(l,j);c=J[i+12>>2];if(c)break c;e=Wd(l,j);J[f+20>>2]=e;c=J[i+12>>2];if(c)break c;c=8;if(d>>>0>63)break c;q=f,r=Sc(h,4,0,e,0,j),J[q+28>>2]=r;c=J[i+12>>2];if(c)break c;q=f,r=Sc(h,4,0,J[f+20>>2],0,j),J[q+24>>2]=r;c=J[i+12>>2];if(c)break c;if(!J[f+20>>2]){c=0;break c}k=d>>>4|0;c=d&15;j=c+1|0;d=(2<>2];if(c)break c;n=e&255|n<<8;c=(h|0)!=(k|0);h=h+1|0;if(c)continue;break}c=8;e=n>>>j|0;if(e>>>0>=M[f>>2])break c;h=o<<2;J[h+J[f+24>>2]>>2]=e;p=J[J[f+4>>2]+(e<<4)>>2];e=d&n;if(p>>>0<=e>>>0)break c;J[J[f+28>>2]+h>>2]=e;o=o+1|0;if(o>>>0>2])continue;break}c=J[i+12>>2]}bc=i+16|0;if(c)break a}H[(b?45:33)+m|0]=1;J[a+740>>2]=J[a+740>>2]|(b?16:2);c=0}bc=g+16|0;return c}function aub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+2248>>2]+88>>2];d=J[b+1168>>2];c=(J[b+1176>>2]+P(d,J[a+ -572>>2])|0)+P(d,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;f=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((f|0)<=0)break a;f=0;while(1){c=K[b|0]|K[b+1|0]<<8;e=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=e+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;c=b+2|0;e=K[c|0]|K[c+1|0]<<8;g=(e<<8|e>>>8)&65535;e=K[d+2|0]|K[d+3|0]<<8;e=g+((e<<8|e>>>8)&65535)&65535;e=e<<8|e>>>8;H[c|0]=e;H[c+1|0]=e>>>8;c=b+4|0;e=K[c|0]|K[c+1|0]<<8;g=(e<<8| -e>>>8)&65535;e=K[d+4|0]|K[d+5|0]<<8;e=g+((e<<8|e>>>8)&65535)&65535;e=e<<8|e>>>8;H[c|0]=e;H[c+1|0]=e>>>8;d=d+6|0;b=P(J[a+584>>2],6)+b|0;c=J[a+588>>2];f=f+1|0;if((c|0)>(f|0))continue;break}break b}if((f|0)<=0)break a;f=0;while(1){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0];H[b+3|0]=K[d+3|0];H[b+4|0]=K[d+4|0];H[b+5|0]=K[d+5|0];d=d+6|0;b=P(J[a+584>>2],6)+b|0;c=J[a+588>>2];f=f+1|0;if((c|0)>(f|0))continue;break}}if((c|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+ -580>>2],J[b+1164>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;c=0;while(1){f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[b|0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24;f=K[d+4|0]|K[d+5|0]<<8;H[b+4|0]=f;H[b+5|0]=f>>>8;d=d+6|0;b=P(J[a+584>>2],6)+b|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Zqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){m=e-2|0;o=(e|0)==1;while(1){h=f;H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0]; -H[g+3|0]=K[h+3|0];f=h+4|0;g=g+4|0;a:{if(k>>>0>m>>>0)break a;i=k?(k|0)==(m|0)?d:b:c;n=!k&o;if(n){if(i>>>0<2)break a;a=i-1|0;l=a&1;if((i|0)!=2){j=a&-2;a=0;while(1){H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];H[g+4|0]=K[h|0];H[g+5|0]=K[h+1|0];H[g+6|0]=K[h+2|0];H[g+7|0]=K[h+3|0];g=g+8|0;a=a+2|0;if((j|0)!=(a|0))continue;break}}if(!l)break a;H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];g=g+4|0;break a}j=i+1>>>1|0;b:{if(i>>>0<3)break b;a=(j>>>0<=2?2:j)-1|0; -p=a&1;if(i>>>0>=5){l=a&-2;a=0;while(1){H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];H[g+4|0]=K[h|0];H[g+5|0]=K[h+1|0];H[g+6|0]=K[h+2|0];H[g+7|0]=K[h+3|0];g=g+8|0;a=a+2|0;if((l|0)!=(a|0))continue;break}}if(!p)break b;H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];g=g+4|0}if(i>>>0<=j>>>0)break a;h=n?0:f;if(i-j&1){H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];g=g+4|0;a=j+1|0}else a=j;if((0-i^j)==-1)break a;while(1){H[g|0]=K[h|0];H[g+1| -0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];H[g+4|0]=K[h|0];H[g+5|0]=K[h+1|0];H[g+6|0]=K[h+2|0];H[g+7|0]=K[h+3|0];g=g+8|0;a=a+2|0;if((i|0)!=(a|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function Nz(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=bc-32|0;bc=e;a:{b:{c:{d:{if(!J[a+20>>2])break d;f=L[a+14>>1];b=L[a+12>>1];if(J[682142]<(f+b|0)){a=Kc(e+8|0,2387307,2387639,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}g=L[a+8>> -1];c=0-b|0;d=b+L[a+10>>1]|0;if((c|0)<(d|0)){b=b+J[682141]|0;while(1){if(K[b+c|0])break c;c=c+1|0;if((d|0)!=(c|0))continue;break}}if(!g)break d;while(1){e:{if(J[a+20>>2])break e;b=J[a+36>>2];if(!b)break e;Mn(a,b);f=L[a+14>>1];g=L[a+8>>1]}f:{if(g>>>0<=h>>>0){d=L[a+12>>1];if(J[682142]<(f+d|0)){a=Kc(e+8|0,2387307,2387639,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}b=J[682141]+d|0;break f}d=L[a+12>>1];b=d+(J[a+20>>2]+P(h,f)|0)|0}g:{if(!d)break g;c=0-d|0;i= -(c|0)<0?-1:c;h:{while(1){if(!K[b+c|0]){j=(c|0)==(i|0);c=c+1|0;if(!j)continue;break h}break}a=Kc(e+8|0,2386852,2373930,1671,2411456,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=L[a+10>>1];d=d+c|0;while(1){if(!K[b+c|0]){c=c+1|0;if(d>>>0>c>>>0)continue;break g}break}a=Kc(e+8|0,2387123,2373930,1674,2411456,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}h=h+1|0;if(g>>>0>h>>>0)continue;break}}bc=e+32|0;return}a=Kc(e+8|0,2386531,2373930, -1665,2411456,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}B()}b=Z()|0;Fc(a);ba(b|0);B()}function eK(a){var b=0,c=0,d=0;c=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a;b=J[a+28>>2];if(!b|J[b>>2]!=(a|0))break a;b:{c:{d=J[b+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break a; -case 0:case 12:case 16:case 34:case 46:case 56:break b;default:break c}}if((d|0)==666)break b;if((d|0)!=42)break a}J[a+44>>2]=2;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[b+20>>2]=0;J[b+16>>2]=J[b+8>>2];c=J[b+24>>2];if((c|0)<0){c=0-c|0;J[b+24>>2]=c}d=c?42:113;c=(c|0)==2;J[b+4>>2]=c?57:d;d:{if(c){c=$f(0,0,0);break d}c=ho(0,0,0)}J[a+48>>2]=c;c=0;J[b+40>>2]=0;J[b+5820>>2]=0;I[b+5816>>1]=0;J[b+2872>>2]=766024;J[b+2864>>2]=b+2684;J[b+2860>>2]=766004;J[b+2852>>2]=b+2440;J[b+2848>>2]=765984;J[b+2840>>2]=b+ -148;D0(b)}if(!c){a=J[a+28>>2];J[a+60>>2]=J[a+44>>2]<<1;b=(J[a+76>>2]<<1)-2|0;d=J[a+68>>2];I[b+d>>1]=0;wc(d,0,b);J[a+5812>>2]=0;J[a+116>>2]=0;J[a+120>>2]=2;J[a+104>>2]=0;J[a+108>>2]=0;J[a+92>>2]=0;J[a+96>>2]=2;J[a+72>>2]=0;b=P(J[a+132>>2],12);J[a+144>>2]=L[b+762612>>1];J[a+140>>2]=L[b+762608>>1];J[a+128>>2]=L[b+762610>>1];J[a+124>>2]=L[b+762614>>1]}return c}function ypa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;e=J[b>>2]}J[d+12>>2]=J[682146];J[d+4>>2]= -0;J[d+8>>2]=0;J[d>>2]=e;J[695492]=0;c=d+4|0;aa(4993,c|0,d|0)|0;f=J[695492];J[695492]=0;e=d+8|0;a:{b:{if((f|0)==1){b=Z()|0;sc(e);vc(c);break b}J[695492]=0;c=$(4,20)|0;f=J[695492];J[695492]=0;c:{if((f|0)==1)break c;J[c>>2]=0;J[c+4>>2]=0;J[c+16>>2]=0;f=c+8|0;J[f>>2]=0;J[f+4>>2]=0;J[695492]=0;aa(5545,f|0,d+4|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[695492]=0;of(a+44|0,c);c=J[695492];J[695492]=0;if((c|0)==1)break c;sc(e);c=J[d+4>>2];J[d+4>>2]=0;d:{if(!c)break d;J[695492]=0;e=J[c+4>>2]-1|0;J[c+ -4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break d;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[d>>2];J[d>>2]=0;e:{if(!c)break e;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}e=jV(a+68|0,J[b>>2]+8|0);a=rc(12);J[a>>2]=0;J[a+4>>2]=0;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;b=J[b>>2]}else b=0;J[a+8>>2]=b;of(e+24|0,a);bc=d+16|0;return}b=Z()|0;sc(d+ -8|0);a=J[d+4>>2];J[d+4>>2]=0;f:{if(!a)break f;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break f}ea(0)|0;yc();B()}}vc(d);ba(b|0);B()}ea(0)|0;yc();B()}function Bqb(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;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;if(e){p=e-2|0;s=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];f=a+4|0;g=g+4|0;a:{if(m>>>0>p>>>0)break a;h=m?(m| -0)==(p|0)?d:b:c;k=!m&s;if(k){if(h>>>0<2)break a;l=h-1|0;k=l&3;if(h-2>>>0>=3){l=l&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((l|0)!=(h|0))continue;break}}h=0;if(!k)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break a}k=k?0:f;l=h+1>>>1|0;if(h>>>0>=3){n=l>>>0<=2?2:l;i=1;o=h<<1;while(1){j=L[a>>1];b:{if((j| -0)==L[k>>1]){I[g>>1]=j;break b}j=K[a|0]|K[a+1|0]<<8;q=j>>>8|0;r=K[k|0]|K[k+1|0]<<8;j=((j<<8|q)&65535)+((h+(P(((r<<8|r>>>8)&65535)-((q|j<<8)&65535)|0,i)<<1)|0)/(o|0)|0)&65535;j=j<<8|j>>>8;H[g|0]=j;H[g+1|0]=j>>>8}I[g+2>>1]=L[a+2>>1];g=g+4|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0<=l>>>0)break a;j=h<<1;while(1){i=L[a>>1];c:{if((i|0)==L[k>>1]){I[g>>1]=i;break c}i=K[a|0]|K[a+1|0]<<8;o=i>>>8|0;n=K[k|0]|K[k+1|0]<<8;i=((i<<8|o)&65535)+((h+(P(((n<<8|n>>>8)&65535)-((o|i<<8)&65535)|0,l)<<1)|0)/(j|0)| -0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}I[g+2>>1]=L[k+2>>1];g=g+4|0;l=l+1|0;if((h|0)!=(l|0))continue;break}}m=m+1|0;if((m|0)!=(e|0))continue;break}}return 0}function DV(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=bc-16|0;bc=e;d=J[a+200>>2];if(d&1){a:{if(d&4){Yc(a,67155);Ld(a,c);break a}if(!(!b|!(K[b+9|0]&64))){Yc(a,67179);Ld(a,c);break a}if(c>>>0<=3){Yc(a,67200);Ld(a,c);break a}d=gg(a,c+1|0);J[a+740>>2]=d;if(!d){Yc(a,67221);Ld(a,c);break a}qg(a,d,c);pe(a,d,c);H[J[a+740>>2]+c|0]=0;f=Ld(a,0); -d=J[a+740>>2];if(f){rd(a,d);J[a+740>>2]=0;break a}if((K[d|0]-1&255)>>>0>=2){Yc(a,67263);rd(a,J[a+740>>2]);J[a+740>>2]=0;break a}J[e+8>>2]=0;J[e+12>>2]=1;b:{c:{d:{if(!kH(d,c,e+8|0,e+12|0))break d;d=J[e+12>>2];if(d>>>0>=c>>>0)break d;f=J[a+740>>2];g=d+1|0;J[e+12>>2]=g;if(!K[d+f|0])break c}Yc(a,67298);break b}if((J[e+8>>2]&392)!=264){Yc(a,67343);break b}J[e+8>>2]=0;if(!(i=kH(f,c,e+8|0,e+12|0),j=0,k=J[e+12>>2]==(c|0),k?i:j)){Yc(a,67390);break b}if((J[e+8>>2]&392)!=264){Yc(a,67436);break b}d=J[a+740>> -2];f=H[d|0];c=d+1|0;d=d+g|0;e:{if(!a|!b)break e;f:{g:{if(f-3>>>0>4294967293){if(!c)break g;g=Qc(c);if(!g|K[c|0]==45)break g;if(!jH(c,g))break g;if(!d)break f;h=Qc(d);if(!h|K[d|0]==45)break f;if(!jH(d,h))break f;H[b+220|0]=f;g=g+1|0;f=gg(a,g);J[b+224>>2]=f;if(!f){Yc(a,62967);break e}tc(f,c,g);f=h+1|0;c=gg(a,f);J[b+228>>2]=c;if(!c){rd(a,J[b+224>>2]);J[b+224>>2]=0;Yc(a,62967);break e}tc(c,d,f);J[b+8>>2]=J[b+8>>2]|16384;J[b+184>>2]=J[b+184>>2]|256;break e}Ad(a,62446);B()}Ad(a,62606);B()}Ad(a,62711);B()}}rd(a, -J[a+740>>2]);J[a+740>>2]=0}bc=e+16|0;return}Ad(a,67130);B()}function H4(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;b=J[a+24>>2];a:{b:{if(b>>>0>65534)break b;m=J[a>>2];o=J[m+508>>2]+J[m+512>>2]|0;b=b+1|0;f=J[a+40>>2];c=b>>>0>f>>>0?b:f;e=J[a+48>>2];d=J[a+44>>2];i=J[a+52>>2];c:while(1){d:{if(c>>>0>d>>>0)break d;e:{if(!i){i=J[m+16>>2];k=d+e|0;if((k|0)<0)break e;j=0-e|0;f=65536-e|0;while(1){g=c+e|0;h=g&65535;f:{if(i>>>0<=h>>>0){b=j;if((g|0)<0)break f;if(g>>>0>65535)break d; -b=f;if((k|0)>65535)break f;break d}b=c;if(h)break a}c=b+1|0;if(d>>>0>=c>>>0)continue;break}break d}b=(c-f<<1)+i|0;if(o>>>0>>0)break d;while(1){j=K[b+1|0]|K[b|0]<<8;if(j){h=e+j&65535;if(h)break a}b=b+2|0;c=c+1|0;if(d>>>0>=c>>>0)continue;break}break d}while(1){h=c+e&65535;if(i>>>0<=h>>>0)break d;if(h)break a;c=c+1|0;if(d>>>0>=c>>>0)continue;break}}h=0;b=J[a+36>>2]+1|0;k=J[a+32>>2];if(b>>>0>=k>>>0)break b;p=k-1|0;n=k<<1;q=J[a+16>>2]+14|0;while(1){d=(b<<1)+q|0;j=K[d|0]<<8|K[d+1|0];J[a+44>>2]=j;d=d+ -n|0;e=d+2|0;f=K[e|0]<<8|K[d+3|0];J[a+40>>2]=f;d=e+n|0;e=K[d|0]|K[d+1|0]<<8;e=(e<<8|e>>>8)<<16>>16;J[a+48>>2]=e;l=d+n|0;g=K[l|0]<<8|K[l+1|0];g:{h:{i:{if((f|0)!=65535|b>>>0

      >>0|(j|0)!=65535)break i;i=0;d=65535;if(!g)break h;if((g+l|0)+2>>>0<=o>>>0)break i;e=1;J[a+48>>2]=1;break h}if((g|0)==65535)break g;i=g?g+l|0:0;d=j}J[a+36>>2]=b;J[a+52>>2]=i;c=c>>>0>f>>>0?c:f;continue c}b=b+1|0;if((k|0)!=(b|0))continue;break}break}}c=-1}J[a+28>>2]=h;J[a+24>>2]=c}function zW(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0, -j=0;e=J[a+24>>2];j=J[e+16>>2];if(!j)return 0;f=J[e+24>>2];e=J[J[J[a+20>>2]>>2]+20>>2];a:{b:{if(!b){b=0;while(1){c=J[f+24>>2];a=(J[e+28>>2]+P(J[e+24>>2],152)|0)-152|0;g=J[a+12>>2];h=J[a+4>>2];d=g-h|0;a=J[a+8>>2]-J[a>>2]|0;c:{if((g|0)==(h|0))break c;Dzb(a,0,d,0);if(!fc)break c;break a}d=P(a,d);d:{a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;if(!c)break d;Dzb(c,0,d,0);if(!fc)break d;break a}a=-1;c=P(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(!J[a+64>>2]){while(1){c=J[f+24>>2];a=(J[e+28>>2]+P(J[e+24>>2],152)|0)-152|0;g=J[a+148>>2];h=J[a+140>>2];d=g-h|0;a=J[a+144>>2]-J[a+136>>2]|0;e:{if((g|0)==(h|0))break e;Dzb(a,0,d,0);if(!fc)break e;break a}d=P(a,d);f:{a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;if(!c)break f;Dzb(c,0,d,0);if(!fc)break f;break a}a=-1;c=P(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=J[f+24>>2];a=(J[e+28>>2]+P(J[e+24>>2],152)|0)-152|0;g=J[a+12>> -2];h=J[a+4>>2];d=g-h|0;a=J[a+8>>2]-J[a>>2]|0;g:{if((g|0)==(h|0))break g;Dzb(a,0,d,0);if(!fc)break g;break a}d=P(a,d);h:{a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;if(!c)break h;Dzb(c,0,d,0);if(!fc)break h;break a}a=-1;c=P(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 axb(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;c=bc-48|0;bc=c;a:{b:{c:{if((J[a+28>>2]&-256)==768){d=-1;j=fk(a, -0);if((j|0)>=0)break c;hd(198136,0);break a}hd(199378,0);break b}d:{if(J[a+16>>2]<=1){d=J[J[a+24>>2]+(j<<2)>>2];e=J[d+24>>2];if((e|0)<17)break d}hd(200583,0);break b}o=J[d+28>>2];i=J[d+16>>2];k=J[d+20>>2];J[c+32>>2]=80;J[c+36>>2]=71;El(b,200840,c+32|0);J[c+16>>2]=k;J[c+12>>2]=i;J[c+8>>2]=e;J[c+4>>2]=o?203406:204036;J[c>>2]=202164;El(b,201903,c);d=-1;if(K[b+8|0]&2)break a;g=ek(1,i);if(!g)break a;e:{f:{g:{if(!k)break g;if(!i){b=0;while(1){if(hk(a,j,0,b,0,1,g))break e;b=b+1|0;if((k|0)!=(b|0))continue; -break}break g}if((e|0)>0){n=(e+7|0)/8|0;p=(n|0)<=1?1:n;q=1<>2]>>2]+(e<<2)>>2];l=(o?l>>31&q:0)+l&r;while(1){m=J[b+8>>2];if(m&7)break e;f=J[b+64>>2];if((f|0)>=0&(f|0)<=J[b+60>>2])break f;m=(d^-1)+n|0;J[b+4>>2]=J[b+4>>2]|32;f=J[b+28>>2];J[b+28>>2]=f-1;h:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;f=J[b+24>>2];J[b+24>>2]=f+1;H[f|0]=l>>>(m<<3);break h}if((Uc(b,l>>>(m<<3)&255)|0)==-1)break e}d=d+1|0;if((p|0)!=(d|0))continue;break}e= -e+1|0;if((i|0)!=(e|0))continue;break}h=h+1|0;if((k|0)!=(h|0))continue;break}break g}while(1){if(hk(a,j,0,h,i,1,g))break e;h=h+1|0;if((k|0)!=(h|0))continue;break}}dg(g);d=0;break a}J[b+8>>2]=m|4}dg(g)}d=-1}bc=c+48|0;return d|0}function _i(a){var b=0,c=0,d=0,e=0,f=0;c=bc-128|0;bc=c;a:{b:{c:{d:{e:{f:{if(L[a+138>>1]==1){if(!(K[a+13|0]&64|L[a+90>>1]!=6)){J[c+52>>2]=c+126;J[c+48>>2]=c+124;ce(a,530,c+48|0);d=L[c+124>>1];if(!d){Nc(J[a+628>>2],J[a>>2],70796,0);a=0;break a}b=J[a+56>>2];if(b>>>0<0-d>>>0)b=((b+ -d|0)-1>>>0)/(d>>>0)|0;else b=0;d=P(b,d);e=L[a+84>>1];b=Dzb(d,0,e,0);f=(fc|0)!=0;g:{h:{if(e){if(!f)break h;e=J[a>>2];b=J[a+628>>2];J[c+16>>2]=72535;Nc(b,e,73480,c+16|0);e=L[a+84>>1];b=Dzb(e,0,d,0);f=(fc|0)!=0;d=!e;break e}if(b&7)break g;d=1;break e}if(!(b&7))break d;if(!f)break g;b=J[a>>2];a=J[a+628>>2];J[c+32>>2]=72535;Nc(a,b,73480,c+32|0);b=0}a=(b>>>3|0)+1|0;break b}d=L[a+98>>1];b=Dzb(J[a+56>>2],0,d,0);e=fc;if(!d|!e)break f;d=J[a>>2];b=J[a+628>>2];J[c+112>>2]=72535;Nc(b,d,73480,c+112|0);b=0;break f}b= -J[a+56>>2]}d=b;e=L[a+84>>1];b=Dzb(b,0,e,0);f=(fc|0)!=0;i:{j:{k:{l:{m:{if(e){if(!f)break m;e=J[a>>2];b=J[a+628>>2];J[c+80>>2]=72535;Nc(b,e,73480,c+80|0);e=L[a+84>>1];b=Dzb(e,0,d,0);f=(fc|0)!=0;d=!e;break k}if(b&7)break l;d=1;break k}if(!(b&7))break j;if(!f)break l;b=J[a>>2];a=J[a+628>>2];J[c+96>>2]=72535;Nc(a,b,73480,c+96|0);b=0}a=(b>>>3|0)+1|0;break a}if(d)break i}if(!f)break i;b=J[a>>2];a=J[a+628>>2];J[c+64>>2]=72535;Nc(a,b,73480,c- -64|0);b=0}a=b>>>3|0;break a}if(d)break c}if(!f)break c;b=J[a>> -2];a=J[a+628>>2];J[c>>2]=72535;Nc(a,b,73480,c);b=0}a=b>>>3|0}a=((a>>>0)/L[c+124>>1]<<1)+a|0}bc=c+128|0;return a}function BM(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if(b)J[b>>2]=0;d=!a;a:{if(d|((d?-1:J[a+8>>2])|0)!=1)break a;b:switch(c-4|0){case 0:case 4:break b;default:break a}if(!b)return AM(a,c);d=bc-48|0;bc=d;c:{if(!b)break c;J[b>>2]=0;g=!a;if(g|((g?-1:J[a+8>>2])|0)!=1)break c;d:switch(c-4|0){case 0:case 4:break d;default:break c}g=Fk(0);J[b>>2]=g;yx(a,d+32|0);if(J[d+32>>2]){f=Tp(1); -break c}e=wf(0,a);J[d+20>>2]=e;if(!e)break c;j=wf(0,a);J[d+16>>2]=j;if(!j)break c;i=qD(a?J[a+4>>2]:-1);J[d+8>>2]=i;if(!i)break c;a=qD(0);if(!a)break c;J[i+12>>2]=a;a=Tp(0);if(!a)break c;xf(e,d+44|0,d+40|0,d+36|0);e:{if(J[d+36>>2]!=1)break e;m=c-4|0;while(1){b=e?J[e+12>>2]:-1;if(!i7(e?J[e+40>>2]:0,J[d+44>>2],J[d+40>>2],b,k,l,d+28|0,d+24|0))break e;l=J[d+24>>2];k=J[d+28>>2];f=0;if(((e?J[e+8>>2]:-1)|0)!=1)break c;f:{g:switch(m|0){case 0:c=h7(e,i,k,l);if(c)break f;break c;case 4:break g;default:break c}c= -g7(e,i,k,l);if(!c)break c}tD(a,c);f=vD(e,c);h=vD(j,c);J[d+12>>2]=h;h:{if((f|0)==(h|0))break h;b=!f;if(b|!h|((b?-1:J[f+8>>2])|0)!=((h?J[h+8>>2]:-1)|0))break h;b=wf(f,f);if(!b)break h;uf(b,0,0,b?J[b>>2]:-1,b?J[b+4>>2]:-1,12,h,0,0)}uf(j,J[c>>2],J[c+4>>2],J[c+8>>2],J[c+12>>2],12,f,0,0);$h(g,f,0);wd(d+12|0);xf(e,d+44|0,d+40|0,d+36|0);if(J[d+36>>2]==1)continue;break}}wo(g+16|0);i:{if(a){J[a+8>>2]=J[a+8>>2]+1;b=a;break i}b=0}J[g+16>>2]=b;wM(d+8|0,1);wd(d+20|0);wd(d+16|0);f=a}bc=d+48|0}return f}function zN(a){var b= -0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(a){if(J[J[a>>2]+8>>2]){g=J[a+4>>2];if(g){c=J[g+48>>2];if(c){a:{if(!J[c>>2])break a;d=J[g+44>>2];if(!d)break a;if((P(J[d+52>>2],J[d+48>>2])|0)>0)while(1){e=J[c+80>>2]+P(b,568)|0;f=J[e>>2];if(f){qc(f);J[e>>2]=0}f=J[e+548>>2];if(f){qc(f);J[e+548>>2]=0}b=b+1|0;if((b|0)<(P(J[d+52>>2],J[d+48>>2])|0))continue;break}b=J[c+80>>2];if(!b)break a;qc(b)}qc(c)}c=J[g+44>>2];if(c){b=J[c+44>>2];if(b){qc(b);J[c+44>>2]=0}b=J[c+92>>2];if(b){qc(b);J[c+92>>2]=0}b=J[c+52>>2];e=J[c+48>>2]; -if((P(b,e)|0)>0){d=0;while(1){f=J[c+88>>2]+P(d,1876)|0;i=J[f+1872>>2];if(i){qc(i);J[f+1872>>2]=0;e=J[c+48>>2];b=J[c+52>>2]}d=d+1|0;if((d|0)<(P(b,e)|0))continue;break}}b=J[c+88>>2];if(b)qc(b);qc(c)}qc(g)}}c=J[a+20>>2];if(c){qc(c);J[a+20>>2]=0}if((J[a+52>>2]+(J[a+48>>2]+J[a+44>>2]|0)|0)>0)while(1){c=J[a+100>>2]+P(h,384)|0;b=J[c+284>>2];if(b){qc(b);J[c+284>>2]=0}b:{if(J[c+8>>2])break b;b=J[c+356>>2];if(b){qc(b);J[c+356>>2]=0}b=J[c+352>>2];if(b){qc(b);J[c+352>>2]=0}b=J[c+196>>2];if(!b)break b;qc(b);J[c+ -196>>2]=0}b=J[c+84>>2];if(b){qc(b);J[c+84>>2]=0}b=J[c+92>>2];if(b){qc(b);J[c+92>>2]=0}b=J[c+188>>2];if(b){qc(b);J[c+188>>2]=0}b=J[c+264>>2];if(b){qc(b);J[c+264>>2]=0}b=J[c+272>>2];if(b){qc(b);J[c+272>>2]=0}b=J[c+280>>2];if(b){qc(b);J[c+280>>2]=0}b=J[c+380>>2];if(b){qc(b);J[c+380>>2]=0}qc(c);h=h+1|0;if((h|0)<(J[a+52>>2]+(J[a+48>>2]+J[a+44>>2]|0)|0))continue;break}qc(a)}}function jm(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!a)break a;b:switch(J[a+4>>2]-9|0){case 9:while(1){b=J[a>>2];d=J[a+8>>2];if(d)gc[J[659451]](d); -d=J[a+12>>2];if(d)gc[J[659451]](d);gc[J[659451]](a);a=b;if(b)continue;break}break a;case 0:case 4:cr(a);return;default:break b}b=J[a+32>>2];if(b)f=J[b+80>>2];while(1){g=J[a+24>>2];c=J[a+4>>2];if((c|0)!=14){c:{if(!J[689540])break c;b=J[689538];if(!b)break c;gc[b|0](a);c=J[a+4>>2]}b=J[a+12>>2];d:{if(b){if((c|0)==5)break d;jm(b);c=J[a+4>>2]}e:{if(!(1<>>0>20)break e;b=J[a+44>>2];if(!b)break e;while(1){d=J[b+24>>2];yw(b);b=d;if(b)continue;break}c=J[a+4>>2]}f:{if(1<>>0<=20:0)break f; -e=J[a+40>>2];if((e|0)==(a+44|0)|!e)break f;d=f;if(d)while(1){b=J[d+16>>2];if(b)while(1){if(b+20>>>0<=e>>>0&M[b+4>>2]>=e>>>0)break f;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}gc[J[659451]](e);c=J[a+4>>2]}if(!(1<>>0>20)break d;b=J[a+48>>2];if(!b)break d;while(1){d=J[b>>2];c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+12>>2];if(c)gc[J[659451]](c);gc[J[659451]](b);b=d;if(b)continue;break}}c=J[a+8>>2];g:{if(!c)break g;h:switch(J[a+4>>2]-3|0){case 0:case 5:break g;default:break h}d= -f;if(d)while(1){b=J[d+16>>2];if(b)while(1){if(c>>>0<=M[b+4>>2]&c>>>0>=b+20>>>0)break g;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}gc[J[659451]](c)}gc[J[659451]](a)}a=g;if(a)continue;break}}}function Eba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+584>>2];if(d){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)<=34907){if((b|0)==262)break j;if((b|0)==347)break m;if((b|0)!=530)break d;J[d+932>>2]=1;return gc[J[d+896>>2]](a,530,c)|0}n:switch(b-34908|0){case 3:break e;case 2:break f; -case 1:break g;case 0:break h;default:break n}switch(b-65537|0){case 2:break i;case 1:break k;case 0:break l;default:break d}}e=J[c>>2];if(e)break c;return 0}J[d+920>>2]=J[c>>2];return 1}c=J[c>>2];J[d+924>>2]=c;d=J[a+12>>2];b=d&-16385;J[a+12>>2]=b;if(!(L[a+138>>1]!=1|L[a+90>>1]!=6|(c|0)!=1)){b=d|16384;J[a+12>>2]=b}if(J[a+508>>2]>0){if(b&1024)b=Ol(a);else b=-1;J[a+508>>2]=b}b=1;if(J[a+588>>2]<=0)break a;f=a,g=_i(a),J[f+588>>2]=g;return 1}b=gc[J[d+896>>2]](a,262,c)|0;d=J[a+12>>2];c=d&-16385;J[a+12>> -2]=c;if(!(L[a+138>>1]!=1|L[a+90>>1]!=6|J[J[a+584>>2]+924>>2]!=1)){c=d|16384;J[a+12>>2]=c}if(J[a+508>>2]>0){if(c&1024)c=Ol(a);else c=-1;J[a+508>>2]=c}if(J[a+588>>2]<=0)break a;f=a,g=_i(a),J[f+588>>2]=g;return b|0}J[d+928>>2]=J[c>>2];return 1}J[d+936>>2]=J[c>>2];break b}nv(d+940|0,J[c>>2]);break b}J[d+944>>2]=J[c>>2];break b}nv(d+948|0,J[c>>2]);break b}return gc[J[d+896>>2]](a,b,c)|0}eU(d+912|0,J[c+4>>2],e);J[d+916>>2]=e;J[a+48>>2]=J[a+48>>2]|4}c=Lf(a,b);if(!c)return 0;b=1;c=L[c+12>>1];d=(c>>>3&8188)+ -a|0;J[d+40>>2]=J[d+40>>2]|1<>2]=J[a+12>>2]|8}return b|0}fa(75254,70490,1634,97646);B()}function yj(a){var b=0,c=0,d=0;if(a){b=oB(a);if(b)while(1){c=J[b+4>>2];if(c)gc[J[659451]](c);c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+44>>2];if(c)gc[J[659451]](c);c=J[b+48>>2];if(c)gc[J[659451]](c);c=J[b+40>>2];a:{if(!c)break a;d=J[b+12>>2];if(!d)break a;gc[c|0](d)}c=J[b>>2];if(c)cn(c);gc[J[659451]](b);b=oB(a);if(b)continue;break}b=J[a+244>>2];if(b)gc[J[659451]](b);b=J[a+196>>2];if(b)gc[J[659451]](b);b= -J[a+64>>2];if(b)gc[J[659451]](b);b=J[a+460>>2];if(b)gc[J[659451]](b);b=J[a+48>>2];if(b)gc[J[659451]](b);b=J[a+20>>2];if(b)gc[J[659451]](b);b=J[a+24>>2];if(b)gc[J[659451]](b);b=J[a+224>>2];if(b)gc[J[659451]](b);b=J[a+228>>2];if(b)gc[J[659451]](b);b=J[a>>2];if(!(!b|(b|0)==2638208))gc[J[659451]](b);b=J[a+180>>2];if(b)gc[J[659451]](b);b=J[a+132>>2];if(b)gc[J[659451]](b);b=J[a+300>>2];if(b)gc[J[659451]](b);b=J[a+296>>2];if(b)dn(b);b=J[a+336>>2];if(b)gc[J[659451]](b);b=J[a+344>>2];if(b)gc[J[659451]](b); -b=J[a+340>>2];if(b)gc[J[659451]](b);b=J[a+348>>2];if(b)fo(b,J[659451]);b=J[a+352>>2];if(b)fo(b,0);b=J[a+372>>2];if(b)while(1){c=J[b+24>>2];gc[J[659451]](b);b=c;if(b)continue;break}b=J[a+380>>2];if(b)while(1){c=J[b+24>>2];gc[J[659451]](b);b=c;if(b)continue;break}b=J[a+392>>2];if(b)gc[J[659451]](b);b=J[a+400>>2];if(b)gc[J[659451]](b);b=J[a+408>>2];if(b)gc[J[659451]](b);b=J[a+412>>2];if(b)gc[J[659451]](b);b=J[a+416>>2];if(b)gc[J[659451]](b);gc[J[659451]](a)}}function Feb(a){a=a|0;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;i=J[a+12>>2];j=J[a+200>>2];c=J[a+196>>2];n=J[J[a>>2]+16>>2];a:{while(1){b=k;k=b+1|0;g=i6(i,k);if(g)break a;g=21;h=c+4|0;if(h>>>0>j>>>0)break a;d=J[i+88>>2]+(b<<5)|0;J[d+8>>2]=0;J[d+12>>2]=0;l=K[c+1|0];e=l|K[c|0]<<8;I[d+4>>1]=e;b=K[c+3|0]|K[c+2|0]<<8;J[d>>2]=b;if((b|0)>=(n|0))break a;f=l&1?4:2;m=e&8;b=f+2|0;b:{if(m)break b;b=f+4|0;if(e&64)break b;b=f|e>>>4&8}if(b+h>>>0>j>>>0)break a;b=e&1;c:{if(e&2){if(b){b=K[c+4|0]|K[c+5|0]<<8;J[d+8>>2]=(b<<8|b>>>8)<<16>>16;b=K[c+ -6|0]|K[c+7|0]<<8;f=(b<<8|b>>>8)<<16>>16;b=c+8|0;break c}J[d+8>>2]=H[c+4|0];f=H[c+5|0];b=c+6|0;break c}if(b){J[d+8>>2]=K[c+5|0]|K[c+4|0]<<8;f=K[c+7|0]|K[c+6|0]<<8;b=c+8|0;break c}J[d+8>>2]=K[c+4|0];f=K[c+5|0];b=c+6|0}J[d+12>>2]=f;d:{if(m){c=b+2|0;e=0;b=K[b|0]|K[b+1|0]<<8;g=(b<<8|b>>>8)<<16>>16<<2;f=g;h=0;break d}if(e&64){c=K[b+2|0]|K[b+3|0]<<8;f=(c<<8|c>>>8)<<16>>16<<2;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)<<16>>16<<2;c=b+4|0;e=0;h=0;break d}if(!(e&128)){e=0;g=65536;c=b;f=65536;h=0;break d}c=K[b+6|0]| -K[b+7|0]<<8;f=(c<<8|c>>>8)<<16>>16<<2;c=K[b+4|0]|K[b+5|0]<<8;e=(c<<8|c>>>8)<<16>>16<<2;c=K[b+2|0]|K[b+3|0]<<8;h=(c<<8|c>>>8)<<16>>16<<2;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)<<16>>16<<2;c=b+8|0}J[d+16>>2]=g;J[d+28>>2]=f;J[d+24>>2]=h;J[d+20>>2]=e;if(l&32)continue;break}J[i+84>>2]=k;b=J[J[a+24>>2]+8>>2];J[a+196>>2]=c;J[a+164>>2]=(c+b|0)-j;g=0}return g|0}function Hsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-16|0;bc=e;a:{d=J[b>>2];b:{if(d){if(gc[J[J[d>>2]+20>>2]](d)|0){d=J[b>>2];gc[J[J[d>>2]+28>>2]](e+ -12|0,d,1);c:{d:{e:{f:{f=J[e+12>>2];if(f){d=0;if(!c)break e;b=J[f+12>>2];a=J[a+12>>2];if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break e;if((c|0)<=0)break f;d=kd(a,b,c);J[e+12>>2]=0;break c}if(!b)break e;d=K[b|0]?-1:0;J[e+12>>2]=0;break c}b=J[b>>2];d=J[J[a>>2]+24>>2];J[695492]=0;f=d;d=e+8|0;ca(f|0,d|0,a|0,2);a=J[695492];J[695492]=0;g:{h:{if((a|0)!=1){a=J[J[b>>2]+36>>2];J[695492]=0;b=ga(a|0,b|0,d|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break d;J[695492]=0;c=J[a+4>> -2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}d=Z()|0;break g}d=Z()|0;vc(e+8|0)}vc(e+12|0);ba(d|0);B()}d=Ec(a,b)}J[e+12>>2]=0;break c}d=0-b|0;f=J[e+12>>2];J[e+12>>2]=0;if(!f)break b}J[695492]=0;a=J[f+4>>2]-1|0;J[f+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break b;J[695492]=0;_(4987,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}d=0;if(!c)break b;b=J[J[b>>2]+12>>2];a=J[a+12>>2];if(!(!a| -!K[a|0])){d=1;if(!b|!K[b|0])break b;if((c|0)>0){d=kd(a,b,c);break b}d=Ec(a,b);break b}if(!b)break b;d=K[b|0]?-1:0;break b}d=0;if(!c)break b;a=J[a+12>>2];if(a){d=1;if(K[a|0])break b}d=0}bc=e+16|0;return d|0}ea(0)|0;yc();B()}function En(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;i=bc-16|0;bc=i;J[i+8>>2]=c;J[i+12>>2]=b;b=i+4|0;c=J[d+28>>2];J[b>>2]=c;J[c+4>>2]=J[c+4>>2]+1;J[695492]=0;j=$(6613,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){b=J[b>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)gc[J[J[b>>2]+ -8>>2]](b);J[e>>2]=0;b=0;a:{while(1){if(b|(g|0)==(h|0))break a;b:{if(Qk(i+12|0,i+8|0))break b;c:{if((gc[J[J[j>>2]+36>>2]](j,H[g|0],0)|0)==37){if((g+1|0)==(h|0))break b;c=0;d:{e:{b=gc[J[J[j>>2]+36>>2]](j,H[g+1|0],0)|0;if((b|0)==69)break e;k=1;if((b&255)==48)break e;break d}if((g+2|0)==(h|0))break b;k=2;c=b;b=gc[J[J[j>>2]+36>>2]](j,H[g+2|0],0)|0}l=i,m=gc[J[J[a>>2]+36>>2]](a,J[i+12>>2],J[i+8>>2],d,e,f,b,c)|0,J[l+12>>2]=m;g=(g+k|0)+1|0;break c}b=H[g|0];if((b|0)>=0)b=J[J[j+8>>2]+((b&255)<<2)>>2]&1;else b= -0;if(b){while(1){f:{g=g+1|0;if((h|0)==(g|0)){g=h;break f}b=H[g|0];if((b|0)>=0)b=J[J[j+8>>2]+((b&255)<<2)>>2]&1;else b=0;if(b)continue}break}while(1){b=i+12|0;if(Qk(b,i+8|0))break c;c=qq(b);if((c|0)>=0)c=J[J[j+8>>2]+((c&255)<<2)>>2]&1;else c=0;if(!c)break c;gs(b);continue}}b=i+12|0;if(((m=j,n=qq(b),l=J[J[j>>2]+12>>2],gc[l](m|0,n|0)|0)|0)==(gc[J[J[j>>2]+12>>2]](j,H[g|0])|0)){g=g+1|0;gs(b);break c}J[e>>2]=4}b=J[e>>2];continue}break}J[e>>2]=4}if(Qk(i+12|0,i+8|0))J[e>>2]=J[e>>2]|2;bc=i+16|0;return J[i+ -12>>2]}c=Z()|0;a=J[i+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function $W(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{e=J[a+60>>2];if(!e){if(J[b+16>>2])break c;return 1}i=_e(P(e,52));if(!i)break a;e=0;if(J[b+16>>2]){d=J[b+24>>2];while(1){e=P(f,52);qc(J[(e+d|0)+44>>2]);d=J[b+24>>2];J[(e+d|0)+44>>2]=0;f=f+1|0;e=J[b+16>>2];if(f>>>0>>0)continue;break}}if(J[a+60>>2]){f=J[J[a+76>>2]+24>>2];e=0;while(1){h=P(J[J[a+64>>2]+(e<<2)>>2],52);d=h+f|0;c=J[d+4>>2];g=i+ -P(e,52)|0;J[g>>2]=J[d>>2];J[g+4>>2]=c;J[g+48>>2]=J[d+48>>2];c=J[d+44>>2];J[g+40>>2]=J[d+40>>2];J[g+44>>2]=c;c=J[d+36>>2];J[g+32>>2]=J[d+32>>2];J[g+36>>2]=c;c=J[d+28>>2];J[g+24>>2]=J[d+24>>2];J[g+28>>2]=c;c=J[d+20>>2];J[g+16>>2]=J[d+16>>2];J[g+20>>2]=c;c=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>>2]=c;f=J[J[a+76>>2]+24>>2];c=h+f|0;J[g+36>>2]=J[c+36>>2];J[g+44>>2]=J[c+44>>2];J[c+44>>2]=0;e=e+1|0;c=J[a+60>>2];if(e>>>0>>0)continue;break}e=J[b+16>>2]}if(e){d=J[J[a+76>>2]+24>>2];f=0;while(1){c=P(f,52);if(J[(c+ -d|0)+44>>2])break b;qc(0);d=J[J[a+76>>2]+24>>2];J[(c+d|0)+44>>2]=0;f=f+1|0;if(f>>>0>2])continue;break}c=J[a+60>>2]}J[b+16>>2]=c;qc(J[b+24>>2]);J[b+24>>2]=i;return 1}e=J[b+24>>2];f=J[J[a+76>>2]+24>>2];while(1){h=P(d,52);c=h+e|0;J[c+36>>2]=J[(f+h|0)+36>>2];qc(J[c+44>>2]);e=J[b+24>>2];f=J[J[a+76>>2]+24>>2];c=h+f|0;J[(h+e|0)+44>>2]=J[c+44>>2];J[c+44>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}return 1}fa(2359129,2346358,11796,2359179);B()}Rm(J[a+72>>2]);J[a+72>>2]=0;return 0}function Fv(a, -b,c,d,e){var f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;a:{if(!J[c+8>>2]){d=0;if((b|0)<=0)break a;while(1){cf(e,g,Rh(c,J[(d<<2)+a>>2],g,8));d=d+1|0;if((d|0)!=(b|0))continue;break}break a}h=Rh(c,8234,g+24|0,8);i=Rh(c,8235,g+16|0,8);j=Rh(c,8236,g+8|0,8);if(d){if((b|0)<=0)break a;while(1){d=f;while(1){if(!ok(J[(d<<2)+a>>2])){d=d+1|0;if((d|0)<(b|0))continue}break}if((d|0)>(f|0))while(1){cf(e,g,Rh(c,J[(f<<2)+a>>2],g,8));f=f+1|0;if((f|0)!=(d|0))continue;break}f=d;b:{if((f|0)>=(b|0))break b;c:{while(1){h=(f<<2)+ -a|0;if(Zk(J[h>>2]))break c;if(dt(J[h>>2]))break c;f=f+1|0;if((f|0)!=(b|0))continue;break}f=b}if((d|0)>=(f|0)){f=d;break b}cf(e,g+16|0,i);h=f;while(1){h=h-1|0;cf(e,g,Rh(c,J[(h<<2)+a>>2],g,8));if((d|0)<(h|0))continue;break}cf(e,g+8|0,j)}if((b|0)>(f|0))continue;break}break a}cf(e,g+16|0,i);d:{if((b|0)<=0)break d;d=b-1|0;while(1){f=d;while(1){e:{b=(f<<2)+a|0;if(Zk(J[b>>2])){b=f;break e}if(dt(J[b>>2])){b=f;break e}i=(f|0)>0;b=f-1|0;f=b;if(i)continue}break}if((b|0)<(d|0))while(1){cf(e,g,Rh(c,J[(d<<2)+a>> -2],g,8));d=d-1|0;if((d|0)>(b|0))continue;break}f=b;if((f|0)<0)break d;while(1){f:{if(ok(J[(f<<2)+a>>2])){d=f;break f}d=-1;i=(f|0)>0;f=f-1|0;if(i)continue}break}g:{if((b|0)<=(d|0)){d=b;break g}cf(e,g+24|0,h);f=d;while(1){f=f+1|0;cf(e,g,Rh(c,J[(f<<2)+a>>2],g,8));if((b|0)!=(f|0))continue;break}cf(e,g+8|0,j)}if((d|0)>=0)continue;break}}cf(e,g+8|0,j)}bc=g+32|0}function nX(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;d=(J[a+28>>2]+P(b,152)|0)-152|0;c=J[d+8>>2]-J[d>>2]| -0;g=c;d=J[d+12>>2]-J[d+4>>2]|0;f=d;c=c>>>0>=64?64:c;e=d>>>0>=64?64:d;a:{b:{if(!g|!d|(!c|!e))break b;if(c>>>0>4294967295/(e>>>0)>>>2>>>0)break b;d=ye(1,28);J[d+12>>2]=e;J[d+8>>2]=c;J[d+4>>2]=f;J[d>>2]=g;i=f;f=e+f|0;j=i>>>0>f>>>0?1:j;e=Fzb(f-1|0,j-!f|0,e,0);J[d+20>>2]=e;f=0;i=g;g=c+g|0;f=i>>>0>g>>>0?1:f;c=Fzb(g-1|0,f-!g|0,c,0);J[d+16>>2]=c;Dzb(e,0,c,0);c:{if(fc)break c;c=ye(4,P(c,e));J[d+24>>2]=c;if(!c)break c;break a}qc(d)}d=0}if(!d)return 0;d:{if(b)while(1){o=P(n,152);f=o+J[a+28>>2]|0;c=J[f+24>>2]; -if(c){g=J[f+20>>2];h=J[f+16>>2];l=0;while(1){if(P(g,h)){j=f+P(l,36)|0;m=0;while(1){k=J[j+48>>2]+P(m,40)|0;e=J[k+20>>2];c=J[k+16>>2];if(P(e,c)){g=0;while(1){h=J[k+24>>2]+P(g,60)|0;p=J[h+56>>2];if(p){s=J[h+20>>2];t=J[h+16>>2];q=J[h+8>>2];c=q-J[j+28>>2]|0;h=J[h+12>>2];e=h-J[j+32>>2]|0;r=J[j+44>>2];if(r&1){i=c;c=(J[a+28>>2]+o|0)-152|0;c=(i+J[c+8>>2]|0)-J[c>>2]|0}if(r&2){i=e;e=(J[a+28>>2]+o|0)-152|0;e=(i+J[e+12>>2]|0)-J[e+4>>2]|0}i=c;c=t-q|0;if(!Us(d,i,e,i+c|0,(s-h|0)+e|0,p,1,c))break d;e=J[k+20>>2];c= -J[k+16>>2]}g=g+1|0;if(g>>>0>>0)continue;break}h=J[f+16>>2];g=J[f+20>>2]}m=m+1|0;if(m>>>0>>0)continue;break}c=J[f+24>>2]}l=l+1|0;if(l>>>0>>0)continue;break}}n=n+1|0;if((n|0)!=(b|0))continue;break}return d}Rn(d);return 0}function Vwa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-32|0;bc=d;e=a- -64|0;c=e;f=J[c+24>>2];J[d+28>>2]=c;J[d+24>>2]=f;a:{b:{c=J[d+24>>2];if(c)while(1){if((e|0)!=J[d+28>>2])break b;c:{if(J[c+24>>2]==(b|0)){J[d+20>>2]=e;J[d+16>>2]=c;J[d+24>>2]=J[c>>2];$o(e,d+16|0); -c=J[d+24>>2];break c}c=J[c>>2];J[d+24>>2]=c}if(c)continue;break}d:{e:{e=a+36|0;c=e;c=J[J[c+12>>2]+((b>>>0)%M[c+8>>2]<<2)>>2];if(c)while(1){if(J[c+12>>2]==(b|0)&J[c+16>>2]==(b|0))break e;c=J[c+8>>2];if(c)continue;break}J[d+28>>2]=e;J[d+24>>2]=0;break d}J[d+28>>2]=e;J[d+24>>2]=c;$o(e,d+24|0)}f:{g:{a=a+8|0;c=J[J[a+12>>2]+((b>>>0)%M[a+8>>2]<<2)>>2];if(c)while(1){if(J[c+12>>2]==(b|0)&J[c+16>>2]==(b|0))break g;c=J[c+8>>2];if(c)continue;break}J[d+28>>2]=a;J[d+24>>2]=0;break f}J[d+28>>2]=a;J[d+24>>2]=c;c= -J[c+20>>2];if(c)qc($c(c));$o(a,d+24|0)}c=J[a+24>>2];J[d+20>>2]=a;J[d+16>>2]=c;e=J[d+20>>2];c=J[d+16>>2];J[d+24>>2]=c;J[d+28>>2]=e;h:{if(!c)break h;while(1){if((a|0)!=J[d+28>>2])break a;e=J[c+20>>2];J[d+16>>2]=0;J[d+20>>2]=0;c=J[e+8>>2];i:{if(!c)break i;while(1){if(J[c+8>>2]!=(b|0)){c=J[c>>2];if(c)continue;break i}break}J[d+20>>2]=e;J[d+16>>2]=c;Kn(e,d+16|0)}j:{if(!J[e+4>>2]){qc($c(e));c=J[d+24>>2];J[d+8>>2]=c;J[d+12>>2]=J[d+28>>2];if(c)J[d+24>>2]=J[c>>2];$o(a,d+8|0);c=J[d+24>>2];break j}c=J[d+24>> -2];if(!c)break h;c=J[c>>2];J[d+24>>2]=c}if(c)continue;break}}bc=d+32|0;return}aj(d+24|0,e);B()}aj(d+24|0,a);B()}function QS(a){var b=0,c=0,d=0,e=0;J[a>>2]=2430520;J[695492]=0;$(6400,a|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;c=J[a+2324>>2];d=a+2328|0;if((c|0)!=(d|0))while(1){b=J[c+20>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break b}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}e=a+2324|0;Dq(e,J[a+ -2328>>2]);J[a+2324>>2]=d;J[a+2328>>2]=0;J[a+2332>>2]=0;J[695492]=0;c=a+1936|0;ez(c);b=J[695492];J[695492]=0;if((b|0)==1)break a;d=J[a+2308>>2];if(d){b=J[J[d>>2]+12>>2];J[695492]=0;$(b|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+2308>>2]=0}Dq(e,J[a+2328>>2]);O2(a+2312|0);if(H[a+2295|0]<0)qc(J[a+2284>>2]);if(H[a+2283|0]<0)qc(J[a+2272>>2]);VS(a+1984|0);LS(c);JS(a+1776|0);xS(a+1744|0);DS(a+1732|0);if(H[a+687|0]<0)qc(J[a+676>>2]);Cq(a+664|0,J[a+668>>2]);Xu(a+652|0,J[a+656>>2]);Ed(a+648|0); -J[a+576>>2]=340520;if(H[a+603|0]<0)qc(J[a+592>>2]);if(H[a+591|0]<0)qc(J[a+580>>2]);J[a+440>>2]=340520;if(H[a+467|0]<0)qc(J[a+456>>2]);if(H[a+455|0]<0)qc(J[a+444>>2]);J[a+72>>2]=340472;c=J[a+100>>2];if(c){b=J[J[c>>2]+12>>2];J[695492]=0;$(b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+100>>2]=0}Qe(a+284|0);b=J[a+192>>2];if(b){J[a+196>>2]=b;qc(b)}if(H[a+119|0]<0)qc(J[a+108>>2]);Ed(a+104|0);J[a+8>>2]=340424;b=J[a+36>>2];if(b){qc(b);J[a+36>>2]=0}return a}ea(0)|0;yc();B()}function PL(a){a=a| -0;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)return 33;l=J[a>>2];if(a){b=J[a+204>>2];J[a+204>>2]=b-1;if((b|0)<=1){k=J[a>>2];b=J[a+16>>2];a:{if(!b)break a;while(1){i=J[((h<<2)+a|0)+20>>2];c=J[i>>2];b:{if(Ec(J[c+8>>2],240645)|!(H[c|0]&1))break b;c=J[i+16>>2];if(!c)break b;while(1){f=J[c+8>>2];c:{if(!f)break c;d=J[f+96>>2];if(!d)break c;e=J[f+128>>2];b=J[e+64>>2];J[e+64>>2]=b-1;if((b|0)>1)break c;b=J[d+16>>2];if(!b)break c;g=d+16|0;e=J[d+8>>2];while(1){if((f|0)!=J[b+8>>2]){b=J[b+4>>2];if(b)continue; -break c}break}c=J[b>>2];j=c?c+4|0:g;g=J[b+4>>2];J[j>>2]=g;J[(g?g:d+20|0)>>2]=c;gc[J[e+8>>2]](e,b);hu(e,f,d);c=J[i+16>>2]}if(c)continue;break}b=J[a+16>>2]}h=h+1|0;if(h>>>0>>0)continue;break}if(!b)break a;h=0;while(1){i=J[((h<<2)+a|0)+20>>2];d:{if(!(H[J[i>>2]]&1))break d;c=J[i+16>>2];if(!c)break d;while(1){f=J[c+8>>2];e:{if(!f)break e;d=J[f+96>>2];if(!d)break e;e=J[f+128>>2];b=J[e+64>>2];J[e+64>>2]=b-1;if((b|0)>1)break e;b=J[d+16>>2];if(!b)break e;g=d+16|0;e=J[d+8>>2];while(1){if((f|0)!=J[b+8>>2]){b= -J[b+4>>2];if(b)continue;break e}break}c=J[b>>2];j=c?c+4|0:g;g=J[b+4>>2];J[j>>2]=g;J[(g?g:d+20|0)>>2]=c;gc[J[e+8>>2]](e,b);hu(e,f,d);c=J[i+16>>2]}if(c)continue;break}b=J[a+16>>2]}h=h+1|0;if(h>>>0>>0)continue;break}if(!b)break a;while(1){W5(a,J[((b<<2)+a|0)+16>>2]);b=J[a+16>>2];if(b)continue;break}}gc[J[k+8>>2]](k,a)}}qc(l);return 0}function Gs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{e=a+36|0;d=e;d=J[J[d+12>>2]+((b>>>0)%M[d+8>>2]<<2)>>2];b:{if(!d)break b;while(1){if(!(J[d+12>>2]==(b|0)&J[d+16>>2]== -(b|0))){d=J[d+8>>2];if(d)continue;break b}break}if(J[b+4>>2]<=0)break b;d=J[J[e+12>>2]+((c>>>0)%M[e+8>>2]<<2)>>2];if(!d)break b;while(1){if(!(J[d+12>>2]==(c|0)&J[d+16>>2]==(c|0))){d=J[d+8>>2];if(d)continue;break b}break}if(J[c+4>>2]<=0)break b;e=a+8|0;d=J[J[e+12>>2]+((b>>>0)%M[e+8>>2]<<2)>>2];c:{if(d)while(1){if(J[d+12>>2]==(b|0)&J[d+16>>2]==(b|0))break c;d=J[d+8>>2];if(d)continue;break}a=rc(16);J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[695492]=0;J[a>>2]=2406696;J[a+4>>2]=0;J[a+8>>2]=0;J[a+ -12>>2]=0;d=J[695492];J[695492]=0;if((d|0)==1)break a;d=J[J[e+12>>2]+((b>>>0)%M[e+8>>2]<<2)>>2];d:{if(d)while(1){if(J[d+12>>2]==(b|0)&J[d+16>>2]==(b|0))break d;d=J[d+8>>2];if(d)continue;break}d=rc(24);J[d>>2]=0;J[d+4>>2]=0;J[d+20>>2]=0;J[d+16>>2]=b;J[d+12>>2]=b;J[d+8>>2]=0;Rl(e,d)}J[d+20>>2]=a}d=J[J[e+12>>2]+((b>>>0)%M[e+8>>2]<<2)>>2];e:{if(d)while(1){if(J[d+12>>2]==(b|0)&J[d+16>>2]==(b|0))break e;d=J[d+8>>2];if(d)continue;break}d=rc(24);J[d>>2]=0;J[d+4>>2]=0;J[d+20>>2]=0;J[d+16>>2]=b;J[d+12>>2]=b; -J[d+8>>2]=0;Rl(e,d)}b=J[d+20>>2];d=J[b+8>>2];if(d)while(1){if(J[d+8>>2]==(c|0))break b;d=J[d>>2];if(d)continue;break}a=rc(12);J[a+8>>2]=c;J[a>>2]=0;J[a+4>>2]=0;of(b,a)}return}b=Z()|0;qc(a);ba(b|0);B()}function XHa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-32|0;bc=e;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[695492]=0;J[e+16>>2]=13;b=ha(3203,b|0,c|0,e+16|0,0)|0;c=J[695492];J[695492]=0;a:{b:{if((c|0)==1)break b;c:{d:{e:{f:{g:{if(J[b>>2]!=3)break g;J[695492]=0;f=$(4,12)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break f;J[695492]=0;b=aa(3187,f|0,J[e+24>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;f=J[b+4>>2];g=J[b>>2];J[695492]=0;c=e+4|0;ca(3528,c|0,g|0,f|0);f=J[695492];J[695492]=0;if((f|0)==1)break c;qc(dd(b));J[695492]=0;_(3529,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;f=K[e+15|0];b=f<<24>>24;if((b|0)<0?J[e+8>>2]:f){J[695492]=0;aa(2860,a|0,834488)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;aa(2860,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]= -0;aa(2860,a|0,2171540)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;d=c;b=K[e+15|0];c=b<<24>>24<0;ga(2794,a|0,(c?J[e+4>>2]:d)|0,(c?J[e+8>>2]:b)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;aa(2860,a|0,2171640)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;b=K[e+15|0]}if(b<<24>>24>=0)break g;qc(J[e+4>>2])}J[695492]=0;_(3205,e+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;bc=e+32|0;return}c=Z()|0;break a}c=Z()|0;qc(f);break a}c=Z()|0;if(H[e+15|0]>=0)break a;qc(J[e+4>> -2]);break a}c=Z()|0;break a}c=Z()|0}if(H[a+11|0]<0)qc(J[a>>2]);ba(c|0);B()}function FDa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=J[a+4>>2];if(!a)return 0;d=bc-16|0;bc=d;f=a+12|0;md(f,0);J[695492]=0;e=d+12|0;ca(4998,e|0,b|0,c|0);a=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((a|0)!=1){J[d+4>>2]=0;J[695492]=0;a=d+4|0;aa(4985,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break j;J[695492]=0;b=d+8|0;ia(4999,b|0,e|0,a|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break i;J[695492]=0;aa(4993, -f|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;a=J[d+8>>2];J[d+8>>2]=0;k:{if(!a)break k;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break k;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[d+4>>2];J[d+4>>2]=0;l:{if(!a)break l;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break l;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[f>>2];J[695492]=0;$(4994,a|0)| -0;a=J[695492];J[695492]=0;if((a|0)==1)break f;a=J[d+12>>2];J[d+12>>2]=0;m:{if(!a)break m;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break m;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=1;break c}b=ea(0)|0;break d}b=ea(0)|0;break e}b=ea(0)|0;break g}b=ea(0)|0;vc(d+8|0)}vc(d+4|0);break e}b=ea(0)|0}vc(d+12|0)}na(b|0)|0;ta();a=0}bc=d+16|0;break a}ea(0)|0;yc();B()}return a|0}function gz(a){a=a|0;var b=0,c=0;b=bc-48|0;bc=b;J[a+56>>2]= -0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+12>>2]=0;J[a+16>>2]=255;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+80>>2]=1E3;J[a+84>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=1071644672;J[a+96>>2]=255;J[a+100>>2]=0;J[a+88>>2]=0;J[a+92>>2]=255;J[b+40>>2]=0;J[b+44>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;mo(a+104|0,b+40|0,b+32|0,b+24|0,b+16|0,b+8|0,b);J[a+184>>2]=0;J[a+188>>2]=0; -J[a+120>>2]=255;J[a+124>>2]=0;a:{if(H[a+119|0]<0){J[a+112>>2]=0;c=J[a+108>>2];break a}H[a+119|0]=0;c=a+108|0}J[c>>2]=0;J[a+144>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+196>>2]=J[a+192>>2];Xr(a+456|0,2430672,5);b:{if(H[a+455|0]<0){J[a+448>>2]=0;c=J[a+444>>2];break b}H[a+455|0]=0;c=a+444|0}J[c>>2]=0;I[a+488>>1]=0;J[a+480>>2]=0;J[a+484>>2]=0;J[a+472>>2]=0;J[a+476>> -2]=0;J[a+492>>2]=0;J[a+496>>2]=0;J[a+500>>2]=0;J[a+504>>2]=0;J[a+568>>2]=0;J[a+572>>2]=255;J[a+560>>2]=0;J[a+564>>2]=1075052544;J[a+556>>2]=0;J[a+544>>2]=0;J[a+548>>2]=120;J[a+536>>2]=0;J[a+540>>2]=0;J[a+528>>2]=0;J[a+532>>2]=1076756480;J[a+520>>2]=0;J[a+524>>2]=1076756480;J[a+516>>2]=0;Ut(a+648|0);WS(a+1984|0);bc=b+48|0;return 0}function Xya(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=bc-32|0;bc=d;J[d+28>>2]=0;md(d+28|0,a);b=J[a+108>>2];J[695492]=0;b=Ls(b);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)==1)break c; -J[a+68>>2]=b;J[695492]=0;e=a+148|0;Zg(e,0,0,16,0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[J[b>>2]+40>>2];J[695492]=0;ia(c|0,b|0,a|0,16,0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;b=J[e>>2];c=J[695492];J[695492]=0;if((c|0)==1)break c;if(b&64)break b;J[695492]=0;_(5279,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b}b=Z()|0;break a}J[695492]=0;c=aa(5031,d+12|0,a+112|0)|0;b=J[695492];J[695492]=0;d:{e:{if((b| -0)!=1){b=J[c+8>>2];f:{if(b)while(1){f=J[b+8>>2];J[695492]=0;f=J[f+148>>2];g=J[695492];J[695492]=0;if((g|0)==1)break d;if(!(f&32))break f;b=J[b>>2];if(b)continue;break}J[695492]=0;Zg(e,0,0,32,0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;b=pa(5213)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[J[b>>2]+40>>2];J[695492]=0;ia(e|0,b|0,a|0,32,0);a=J[695492];J[695492]=0;if((a|0)==1)break d}$c(c);a=J[d+28>>2];J[d+28>>2]=0;if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492]; -J[695492]=0;if((c|0)!=1){if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e}ea(0)|0;yc();B()}b=Z()|0;break a}bc=d+32|0;return}b=Z()|0;$c(c)}vc(d+28|0);ba(b|0);B()}function kta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-16|0;bc=e;a:{d=J[b>>2];b:{if(d){if(gc[J[J[d>>2]+16>>2]](d)|0){gc[J[J[a>>2]+28>>2]](e+12|0,a,1);c:{d:{e:{f:{f=J[e+12>>2];if(f){d=0;if(!c)break e;a=J[J[b>>2]+12>>2];b=J[f+12>>2];if(!(!b|!K[b|0])){d=1;if(!a|!K[a|0])break e;if((c|0)<=0)break f;d=kd(b,a, -c);J[e+12>>2]=0;break c}if(!a)break e;d=K[a|0]?-1:0;J[e+12>>2]=0;break c}b=J[b>>2];d=J[J[b>>2]+24>>2];J[695492]=0;f=d;d=e+8|0;ca(f|0,d|0,b|0,2);b=J[695492];J[695492]=0;g:{h:{if((b|0)!=1){b=J[J[a>>2]+36>>2];J[695492]=0;d=ga(b|0,a|0,d|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break h;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}d=Z()|0;break g}d= -Z()|0;vc(e+8|0)}vc(e+12|0);ba(d|0);B()}d=Ec(b,a)}J[e+12>>2]=0;break c}f=J[e+12>>2];J[e+12>>2]=0;if(!f)break b}J[695492]=0;a=J[f+4>>2]-1|0;J[f+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break b;J[695492]=0;_(4987,f|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}d=0;if(!c)break b;b=J[J[b>>2]+12>>2];a=J[a+12>>2];if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break b;if((c|0)>0){d=kd(a,b,c);break b}d=Ec(a,b);break b}if(!b)break b;d=K[b|0]?-1:0;break b}d=0;if(!c)break b;a=J[a+12>>2];if(a){d=1;if(K[a| -0])break b}d=0}bc=e+16|0;return d|0}ea(0)|0;yc();B()}function q5(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;J[d>>2]=0;J[d+4>>2]=0;g=b-1|0;g=b>>>0>=g>>>0?g:0;b=J[a+408>>2];a:{if(g>>>0>b>>>0)break a;e=b;b=c-1|0;c=b>>>0<=c>>>0?b:0;if(e>>>0>>0)break a;b=J[a+424>>2];if(!b)break a;e=c<<4;c=J[a+416>>2];c=L[e+c>>1]|J[c+(g<<4)>>2]<<16;i=J[a+104>>2];while(1){if(!(c>>>0<=M[b+20>>2]&c>>>0>=M[b+16>>2])){b=J[b>>2];if(b)continue;break a}break}f=nd(i,J[b+12>>2]);if(f)break a;f=Ue(i,P(J[b+ -8>>2],K[b+4|0]));if(f)break a;a=K[b+5|0];j=a&1;k=a>>>1&1;g=J[b+8>>2];f=J[i+32>>2];a=K[b+4|0];h=-2147483648>>>S(a)|0;b:{c:{d:{if((a|0)==(h|0))break d;a=P(g,a-h|0)+f|0;e=K[a+1|0];l=K[a|0];e:{if(j){e=K[a+3|0]|(e<<16|l<<24|K[a+2|0]<<8);a=a+4|0;break e}e=e|l<<16;a=a+2|0}if((c|0)==(e|0))break c;if(c>>>0<=e>>>0)break d;f=(k?2:1)+a|0}f:{a=P(g,h);g:{if(g>>>0>=a>>>0)break g;if(!j){while(1){a=a>>>1|0;h=f+a|0;e=K[h|0]<<16|K[h+1|0];if((e|0)!=(c|0)){f=c>>>0>e>>>0?h:f;if(a>>>0>g>>>0)continue;break g}break}a=h+2| -0;break c}while(1){a=a>>>1|0;h=f+a|0;e=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if((e|0)==(c|0))break f;f=c>>>0>e>>>0?h:f;if(a>>>0>g>>>0)continue;break}}a=K[f+1|0];g=K[f|0];h:{if(j){g=K[f+3|0]|(a<<16|g<<24|K[f+2|0]<<8);a=f+4|0;break h}g=a|g<<16;a=f+2|0}if((c|0)==(g|0))break c;break b}a=h+4|0}c=K[a|0];if(k)c=(K[a+1|0]|c<<8)<<16>>16;J[d>>2]=I[b+6>>1]+c}ne(i);f=0}return f|0}function CSa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=bc-48|0;bc=b;J[a>>2]=2204988; -J[b+32>>2]=13;J[b+16>>2]=13;J[a+1568>>2]=0;a:{if(!ZA(a,c))break a;if(J[a+4>>2]!=1){xc(1,-1,800400,0);break a}d=Bc(c,801554,b+32|0,0);e=J[a+1040>>2];b:{c:{d:{e:{f:{if(J[d>>2]==6){d=J[J[b+40>>2]+12>>2];if(!(!e|(d|0)==J[a+8>>2])){xc(1,-1,802040,0);break b}J[a+8>>2]=d;if((d|0)>32)break e;if((d|0)<=0)break f;d=0;while(1){Mc(J[b+40>>2],d,b+16|0,0);e=J[b+16>>2];if(e-3>>>0<4294967294){c=802544;break c}O[((d<<3)+a|0)+1048>>3]=(e|0)==1?+J[b+24>>2]:O[b+24>>3];uc(b+16|0);d=d+1|0;if((d|0)>2])continue;break}break f}if(!(!e| -J[a+8>>2]==1)){xc(1,-1,802040,0);break b}J[a+1048>>2]=0;J[a+1052>>2]=0;J[a+8>>2]=1}d=b+32|0;uc(d);g:{if(J[Bc(c,803715,d,0)>>2]==6){d=J[J[b+40>>2]+12>>2];if((d|0)!=J[a+8>>2])break d;if((d|0)<=0)break g;d=0;while(1){Mc(J[b+40>>2],d,b+16|0,0);e=J[b+16>>2];if(e-3>>>0<4294967294){c=804279;break c}O[((d<<3)+a|0)+1304>>3]=(e|0)==1?+J[b+24>>2]:O[b+24>>3];uc(b+16|0);d=d+1|0;if((d|0)>2])continue;break}break g}if(J[a+8>>2]!=1){xc(1,-1,804019,0);break b}J[a+1304>>2]=0;J[a+1308>>2]=1072693248}d=b+32|0; -uc(d);if(J[Bc(c,804961,d,0)>>2]-3>>>0<=4294967293){xc(1,-1,805390,0);break b}O[a+1560>>3]=J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3];uc(b+32|0);J[a+1568>>2]=1;break a}J[b>>2]=32;xc(1,-1,788147,b);break b}xc(1,-1,804019,0);break b}xc(1,-1,c,0);uc(b+16|0)}uc(b+32|0)}bc=b+48|0;return a|0}function yCa(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;e=bc-16|0;bc=e;J[a>>2]=2385264;J[a+4>>2]=0;J[695492]=0;h=aa(4991,a+8|0,b|0)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[a+52>>2]=0;J[a+ -56>>2]=0;J[a+44>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[695492]=0;f=a+52|0;J[f>>2]=2386024;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;b=J[695492];J[695492]=0;i=a+44|0;if((b|0)==1)break h;J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[a+72>>2]=0;J[695492]=0;d=e+12|0;ca(5061,d|0,h|0,2374679);b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;aa(4993,i|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;g=J[e+12>>2];J[e+12>>2]=0;i:{if(!g)break i;J[695492]=0;d=J[g+4>>2]-1|0;J[g+4>>2]=d;b=J[695492]; -J[695492]=0;if((b|0)==1)break a;if(d)break i;J[695492]=0;_(4987,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+60>>2];j:{if(b){d=J[c>>2];while(1){if((d|0)==J[b+8>>2])break j;b=J[b>>2];if(b)continue;break}}J[695492]=0;b=$(4,12)|0;d=J[695492];J[695492]=0;if((d|0)==1)break g;J[b>>2]=0;J[b+4>>2]=0;d=J[c>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break g;c=J[c>>2]}else c=0;J[b+8>>2]=c;J[695492]=0;of(f,b);b=J[695492];J[695492]=0;if((b|0)==1)break g}bc=e+16|0; -return a|0}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break d}b=Z()|0;vc(e+12|0)}$c(f)}vc(i);ud(h)}ed(a);ba(b|0);B()}ea(0)|0;yc();B()}function _ea(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;if(c-b&4){J[c>>2]=0;c=c+4|0}if(b>>>0>>0)while(1){f=J[b>>2];if(!(f>>>0<=d>>>0&f+i>>>0<=d>>>0)){f=d-i|0;J[b>>2]=f}if(f){e=(i>>>3|0)+a|0;g=i&7;h=8-g|0;a:{if(h>>>0>>0){if(g){H[e|0]=K[e|0]&255<>>0>=8){g=f>>>3|0;if(f>>>0>=64){if(e&3){h=(e^-1)&3;g=g-1|0;j=g>>> -0>h>>>0?h:g;h=j+1|0;g=g-j|0;e=wc(e,0,h)+h|0}h=g&-4;g=g&3;e=wc(e,0,h)+h|0}b:switch(g-1|0){case 6:H[e+6|0]=0;case 5:H[e+5|0]=0;case 4:H[e+4|0]=0;case 3:H[e+3|0]=0;case 2:H[e+2|0]=0;case 1:H[e+1|0]=0;case 0:H[e|0]=0;e=e+g|0;break;default:break b}f=f&7}if(!f)break a;H[e|0]=K[e|0]&255>>>f;break a}H[e|0]=K[e|0]&(K[f+95374|0]>>>g^-1)}i=J[b>>2]+i|0}f=J[b+4>>2];if(!(f>>>0<=d>>>0&f+i>>>0<=d>>>0)){f=d-i|0;J[b+4>>2]=f}if(f){e=(i>>>3|0)+a|0;g=i&7;h=8-g|0;c:{d:{if(h>>>0>>0){if(g){H[e|0]=K[e|0]|255>>>g;f=f-h| -0;e=e+1|0}if(f>>>0>=8){g=f>>>3|0;if(f>>>0>=64){if(e&3){h=(e^-1)&3;g=g-1|0;j=g>>>0>h>>>0?h:g;h=j+1|0;g=g-j|0;e=wc(e,255,h)+h|0}h=g&-4;g=g&3;e=wc(e,255,h)+h|0}e:switch(g-1|0){case 6:H[e+6|0]=255;case 5:H[e+5|0]=255;case 4:H[e+4|0]=255;case 3:H[e+3|0]=255;case 2:H[e+2|0]=255;case 1:H[e+1|0]=255;case 0:H[e|0]=255;e=e+g|0;break;default:break e}f=f&7}if(!f)break c;f=65280>>>f|0;break d}f=K[f+95374|0]>>>g|0}H[e|0]=f|K[e|0]}i=J[b+4>>2]+i|0}b=b+8|0;if(c>>>0>b>>>0)continue;break}if((d|0)!=(i|0)){fa(69052,70523, -450,95383);B()}}function QGa(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=bc-16|0;bc=g;a:{b:{c:{d:{e:{if(b){if(!a)break e;if(!d)break d;if(!(K[a+100|0]&2)){Hc(d,1,2348604,0);a=0;break a}J[a+104>>2]=0;f:{if(c){while(1){if(c>>>0<=7){Hc(d,1,2349213,0);break b}f=g+12|0;ld(b,f,4);h=J[g+12>>2];ld(b+4|0,f,4);e=8;f=J[g+12>>2];g:{h:{i:switch(h|0){case 1:if(c>>>0<16){b=2349339;break c}ld(b+8|0,g+8|0,4);if(J[g+8>>2]){b=2347824;break c}ld(b+12|0,g+12|0,4);h=J[g+12>>2];if(h)break h;b=2346791; -break c;case 0:break i;default:break g}Hc(d,1,2346791,0);break b}e=16}if(h>>>0>>0){Hc(d,1,2349449,0);break b}if(c>>>0>>0){Hc(d,1,2348845,0);a=0;break a}j:{k:{j=b+e|0;k=h-e|0;l:{m:{n:{o:{if((f|0)<=1668246641){if((f|0)==1651532643)break o;if((f|0)==1667523942)break m;if((f|0)!=1668112752)break k;e=2359584;break l}if((f|0)==1885564018)break n;e=2359552;if((f|0)==1768449138)break l;if((f|0)!=1668246642)break k;e=2359560;break l}e=2359568;break l}e=2359576;break l}e=2359592}if(gc[J[e+4>>2]](a,j, -k,d)|0)break j;a=0;break a}J[a+104>>2]=J[a+104>>2]|2147483647}i=(f|0)==1768449138?1:i;b=b+h|0;c=c-h|0;if(c)continue;break}if(i)break f}Hc(d,1,2349005,0);a=0;break a}H[a+132|0]=1;J[a+100>>2]=J[a+100>>2]|4;a=1;break a}fa(2347980,2342899,2702,2359530);B()}fa(2342603,2342899,2703,2359530);B()}fa(2343543,2342899,2704,2359530);B()}Hc(d,1,b,0)}Hc(d,1,2348715,0);a=0}bc=g+16|0;return a|0}function ADa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=J[a+4>>2];if(a)a:{d=bc-16|0;bc=d;b:{e=J[a+12>>2];c:{if(!e)break c; -J[695492]=0;la(5E3,d+12|0,e|0,c|0,1,0);c=J[695492];J[695492]=0;d:{e:{f:{g:{h:{i:{j:{if((c|0)!=1){J[695492]=0;$(5001,J[d+12>>2])|0;c=J[695492];J[695492]=0;if((c|0)==1)break j;J[695492]=0;J[J[d+12>>2]+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break j;J[d+8>>2]=0;c=J[J[b>>2]+16>>2];J[695492]=0;aa(c|0,b|0,d+8|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;c=0;e=J[d+12>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break h;c=J[d+12>>2]}J[695492]=0;J[d>>2]=c;ca(5003, -d+4|0,d|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break g;J[d>>2]=0;k:{if(!c)break k;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break b;if(e)break k;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break b}J[695492]=0;c=a;a=d+4|0;la(5004,c|0,b|0,d+12|0,d|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;mh(a);a=J[d+12>>2];J[d+12>>2]=0;if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break c;J[695492]=0;_(4987, -a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break b}a=ea(0)|0;break d}a=ea(0)|0;break e}a=ea(0)|0;break e}a=ea(0)|0;break e}a=ea(0)|0;vc(d);break e}a=ea(0)|0;mh(d+4|0)}vc(d+12|0)}na(a|0)|0;ta()}bc=d+16|0;break a}ea(0)|0;yc();B()}}function cr(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;e=J[a+80>>2];b:{if(!J[689540])break b;c=J[689538];if(!c)break b;gc[c|0](a)}c=J[a+64>>2];if(c)fo(c,3175);J[a+64>>2]=0;c=J[a+68>>2];if(c)C$(c);J[a+68>>2]=0;b=J[a+48>>2];c=J[a+44>>2];if(!(!b|(b|0)==(c|0))){zj(b);J[a+48>> -2]=0;fr(b)}if(c){zj(J[a+44>>2]);J[a+44>>2]=0;fr(c)}c=J[a+12>>2];if(c)jm(c);b=J[a+52>>2];if(b)while(1){c=J[b>>2];d=J[b+8>>2];if(d)gc[J[659451]](d);d=J[b+12>>2];if(d)gc[J[659451]](d);gc[J[659451]](b);b=c;if(b)continue;break}d=J[a+56>>2];c:{if(!d)break c;if(e){c=e;while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break c;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}}gc[J[659451]](d)}d=J[a+8>>2];d:{if(!d)break d;if(e){c=e;while(1){b=J[c+16>>2];if(b)while(1){if(d>>> -0<=M[b+4>>2]&d>>>0>=b+20>>>0)break d;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}}gc[J[659451]](d)}d=J[a+60>>2];e:{if(!d)break e;if(e){c=e;while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break e;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}}gc[J[659451]](d)}f:{g:{d=J[a+72>>2];if(d){if(e){c=e;while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break g;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}}gc[J[659451]](d)}gc[J[659451]](a); -if(!e)break a;break f}gc[J[659451]](a)}dn(e)}}function PJ(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=bc-16|0;bc=g;a:{if(!b)break a;e=gc[J[659447]](60)|0;if(!e){J[g>>2]=14780;Cc(0,0,0,0,0,2,2,3,14780,0,0,0,32863,g);break a}J[e>>2]=0;J[e+4>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+56>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=5;J[e+32>>2]=a;b:{c:{d:{c=b;d=K[c|0];if(d){if((d|0)==38)break d;d=c;while(1){f= -K[d+1|0];c=d+1|0;d=c;if(f)continue;break}}d=0;c=c-b|0;if((c|0)<0)break b;f=gc[J[659450]](c+1|0)|0;if(f)break c;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}f=b+1|0;c=0;e:{if(!K[b+1|0])break e;d=f;while(1){h=c;c=c+1|0;i=K[d+1|0];d=d+1|0;if(i)continue;break}if(K[b+c|0]!=59)break e;d=0;b=gc[J[659450]](c)|0;if(!b){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}d=tc(b,f,h);H[h+d|0]=0;break b}d=gc[J[659450]](c+1|0)|0;if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}j=tc(d,f,c)+c|0,k=0,H[j|0]=k;break b}d= -tc(f,b,c);H[c+d|0]=0}J[e+8>>2]=d;f:{g:{h:{if(!a)break h;b=J[a+44>>2];i:{if(!b)break i;b=J[b+48>>2];if(!b)break i;c=tf(b,d,0,0);if(c)break g}if(J[a+40>>2]==1)break h;a=J[a+48>>2];if(!a)break h;a=J[a+48>>2];if(!a)break h;c=tf(a,d,0,0);if(c)break g}c=Qi(d);if(!c)break f}a=J[c+40>>2];J[e+16>>2]=c;J[e+12>>2]=c;J[e+40>>2]=a}j:{if(!J[689540])break j;a=J[689537];if(!a)break j;gc[a|0](e)}d=e}bc=g+16|0;return d}function cjb(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;i=bc-400|0;bc= -i;e=J[c+4>>2];g=J[b+4>>2];c=J[c>>2];b=J[b>>2];f=J[a>>2];a=J[a+4>>2];J[i+20>>2]=a<<2;J[i+16>>2]=f<<2;J[i+12>>2]=g<<2;j=b<<2;J[i+8>>2]=j;h=e<<2;J[i+4>>2]=h;f=c<<2;J[i>>2]=f;b=J[d+208>>2];J[i+24>>2]=b;c=J[d+212>>2];J[i+28>>2]=c;k=a>>6;a:{b:{l=e>>6;a=J[d+176>>2];g=g>>6;c:{d:{if(!((l|0)>=(a|0)&(g|0)>=(a|0))){e=c>>8;break d}e=c>>8;if((a|0)>(k|0))break d;if((a|0)<=(e|0))break c}c=i;a=J[d+172>>2];if((a|0)<=(l|0)|(a|0)<=(g|0)|((a|0)<=(k|0)|(a|0)<=(e|0)))break b}J[d+212>>2]=h;J[d+208>>2]=f;break a}while(1){e= -(P(j,-3)+b|0)+(f<<1)|0;a=e>>31;e:{f:{if((a^e)-a>>>0>=129){k=J[c+12>>2];e=J[c+28>>2];g=J[c+4>>2];break f}e=J[c+28>>2];k=J[c+12>>2];g=J[c+4>>2];h=e+(P(k,-3)+(g<<1)|0)|0;a=h>>31;if((a^h)-a>>>0>128)break f;h=((b<<1)+f|0)+P(J[c+16>>2],-3)|0;a=h>>31;if((a^h)-a>>>0>128)break f;h=((e<<1)+g|0)+P(J[c+20>>2],-3)|0;a=h>>31;if((a^h)-a>>>0>128)break f;NL(d,f,g);if((c|0)==(i|0))break a;a=c-24|0;f=J[a>>2];break e}a=c+24|0;J[c+48>>2]=b;J[c+52>>2]=e;f=f+j|0;J[c+8>>2]=f>>1;g=g+k|0;J[c+12>>2]=g>>1;l=b;b=J[c+16>>2];h= -l+b|0;J[c+40>>2]=h>>1;b=b+j|0;f=b+f|0;J[c+16>>2]=f>>2;b=b+h|0;J[c+32>>2]=b>>2;l=e;e=J[c+20>>2];j=l+e|0;J[c+44>>2]=j>>1;f=b+f>>3;J[c+24>>2]=f;b=e+k|0;e=b+g|0;J[c+20>>2]=e>>2;b=b+j|0;J[c+36>>2]=b>>2;J[c+28>>2]=b+e>>3}b=J[a+24>>2];j=J[a+8>>2];c=a;continue}}bc=i+400|0;return 0}function T2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=bc-32|0;bc=f;a:{e=J[a>>2];h=(J[a+4>>2]-e|0)/12|0;d=h+1|0;if(d>>>0<357913942){c=a+8|0;g=J[c>>2];J[f+28>>2]=c;c=0;e=(g-e|0)/12|0;g=e<<1;d=e>>>0>=178956970?357913941:d>>> -0>>0?g:d;if(d){if(d>>>0>=357913942)break a;c=rc(P(d,12))}J[695492]=0;J[f+12>>2]=c;e=P(h,12)+c|0;J[f+20>>2]=e;J[f+24>>2]=P(d,12)+c;J[f+16>>2]=e;aa(2801,e|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){e=J[f+20>>2]+12|0;b=J[f+16>>2];c=J[a+4>>2];d=J[a>>2];b:{if((c|0)==(d|0)){d=c;break b}while(1){b=b-12|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;c=c-12|0;J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;if((c|0)!=(d|0))continue;break}c=J[a+4>>2];d=J[a>>2]}J[a+4>>2]= -e;J[a>>2]=b;J[a+8>>2]=J[f+24>>2];if((c|0)!=(d|0)){while(1){e=c-12|0;a=J[e>>2];if(a){h=a;g=c-8|0;b=J[g>>2];if((a|0)!=(b|0)){while(1){c=b-12|0;if(H[b-1|0]<0)qc(J[c>>2]);b=c;if((c|0)!=(a|0))continue;break}h=J[e>>2]}J[g>>2]=a;qc(h)}c=e;if((d|0)!=(c|0))continue;break}c=d}if(c)qc(c);bc=f+32|0;return}h=Z()|0;a=J[f+20>>2];e=J[f+16>>2];if((a|0)!=(e|0))while(1){c=a-12|0;J[f+20>>2]=c;b=J[c>>2];if(b){d=b;g=a-8|0;a=J[g>>2];if((b|0)!=(a|0)){while(1){d=a-12|0;if(H[a-1|0]<0)qc(J[d>>2]);a=d;if((b|0)!=(a|0))continue; -break}d=J[c>>2]}J[g>>2]=b;qc(d);a=J[f+20>>2]}else a=c;if((e|0)!=(a|0))continue;break}a=J[f+12>>2];if(a)qc(a);ba(h|0);B()}ph(a);B()}Sd();B()}function tsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d:{e:{b=J[b>>2];f:{if(b){c=J[c>>2];J[695492]=0;ca(5469,d+4|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[d+4>>2];g:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+8|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break g;b=Z()|0;break c}J[d+8>>2]=0}J[695492]= -0;aa(4993,a|0,d+8|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[d+8>>2];J[d+8>>2]=0;if(!b)break h;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break a}b=Z()|0;vc(d+8|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[d+4>>2];J[d+4>>2]=0;if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break f}break a}J[695492]=0;J[d+12>>2]=0;aa(4993,a|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[d+12>>2];J[d+12>>2]=0;i:{if(!b)break i;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2]}bc=d+16|0;return a|0}b=Z()|0;break b}b=Z()|0;vc(d+12|0);break b}vc(d+4|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function c8(a, -b,c,d,e,f,g,h,i,j,k,l){var m=0,n=0;a:{b:{if(K[a+498|0])break b;c:{d:{e:{f:{n=K[a+1112|0];switch(n-2|0){case 0:case 2:break f;default:break e}}if(J[a+436>>2]?(b&253)!=1:0)break d;J[a+1116>>2]=J[a+1144>>2];break c}if(!K[a+433|0]|(b|0)!=4)break c}m=Nx(a);if(m)break a}g:{if(b){H[a+1080|0]=b;break g}b=K[a+1080|0]}H[a+1112|0]=b;h:{if(c){J[a+1144>>2]=d;i:switch(n-2|0){case 0:case 2:J[a+1116>>2]=J[a+1084>>2];break;default:break i}if((c|0)!=2)break h;J[a+1084>>2]=d;break h}J[a+1144>>2]=J[a+1084>>2]}j:{if(e){J[a+ -1120>>2]=f;if(!(1<>>0>8)break j;J[a+1088>>2]=f;break j}J[a+1120>>2]=J[a+1088>>2]}if(g){H[a+1124|0]=1;if(!h){J[a+1140>>2]=l;J[a+1136>>2]=k;J[a+1132>>2]=j;J[a+1128>>2]=i;if((g|0)!=2)break b;J[a+1108>>2]=l;J[a+1104>>2]=k;J[a+1100>>2]=j;J[a+1096>>2]=i;H[a+1092|0]=1;break b}J[a+1128>>2]=J[a+1128>>2]+i;J[a+1132>>2]=J[a+1132>>2]+j;J[a+1136>>2]=J[a+1136>>2]+k;J[a+1140>>2]=J[a+1140>>2]+l;if((g|0)!=2)break b;H[a+1092|0]=1;J[a+1096>>2]=J[a+1096>>2]+i;J[a+1100>>2]=J[a+1100>>2]+j;J[a+1104>>2]=J[a+1104>> -2]+k;J[a+1108>>2]=J[a+1108>>2]+l;break b}H[a+1124|0]=K[a+1092|0];b=J[a+1100>>2];J[a+1128>>2]=J[a+1096>>2];J[a+1132>>2]=b;b=J[a+1108>>2];J[a+1136>>2]=J[a+1104>>2];J[a+1140>>2]=b}m=0;if(K[a+497|0])break a;if(!(J[a+440>>2]?K[a+1112|0]!=4:0)){m=Eo(a);if(m)break a}H[a+433|0]=1;J[a+436>>2]=J[a+436>>2]+1;m=0}if(K[a+497|0])H[a+498|0]=1;return m}function a_a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{d=bc-16|0;bc=d;b:{c:{d:{e:{f:{g:{e=J[b+4>>2];b=J[e+4>>2];h:{if(!b){J[a>>2]=0;H[a+11|0]=0;break h}J[a>>2]= -0;J[a+4>>2]=0;J[a+8>>2]=0;J[695492]=0;b=Zq(b);c=J[695492];J[695492]=0;if((c|0)==1)break c;if(b)break h;b=J[e+4>>2];if(!b)break h;J[695492]=0;g=gm(b);b=J[695492];J[695492]=0;if((b|0)==1)break g;b=J[e+4>>2];if(!b)break h;while(1){J[695492]=0;b=$(3073,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;if((b|0)!=1)break h;b=J[e+4>>2];J[695492]=0;c=$(3074,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;if((c|0)==-1)break h;b=J[e+4>>2];i:{if(!b){b=-1;break i}J[695492]=0;b=gm(b);f=J[695492];J[695492]= -0;if((f|0)==1)break f}if((c|0)==15|(b|0)<(g|0))break h;j:{if(!(1<>>0>14)break j;b=J[e+4>>2];J[695492]=0;b=$(3075,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;k:{if(!b){J[d+4>>2]=0;H[d+15|0]=0;c=0;f=0;break k}c=Qc(b);J[695492]=0;ca(1618,d+4|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;c=K[d+15|0];f=J[d+4>>2]}J[695492]=0;b=c<<24>>24<0;ga(2794,a|0,(b?f:d+4|0)|0,(b?J[d+8>>2]:c&255)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;if(H[d+15|0]>=0)break j;qc(J[d+4>>2])}b=J[e+ -4>>2];if(b)continue;break}}bc=d+16|0;break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[d+15|0]>=0)break b;qc(J[d+4>>2]);break b}b=Z()|0}if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}}function aJ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;a:{b:{c:{d:{e:{f:{g:switch(J[b>>2]-3|0){case 0:c=rc(12);b=J[b+8>>2];J[695492]=0;b=aa(3187,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break e;break b;case 4:J[d>>2]=13;b=J[b+8>>2];J[695492]=0;c=ha(3203,b|0, -782546,d|0,0)|0;b=J[695492];J[695492]=0;h:{if((b|0)==1)break h;b=0;i:{if(J[c>>2]!=3)break i;J[695492]=0;c=$(4,12)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;b=aa(3187,c|0,J[d+8>>2])|0;e=J[695492];J[695492]=0;if((e|0)!=1)break i;break b}J[695492]=0;_(3205,d|0);c=J[695492];J[695492]=0;if((c|0)!=1)break f}break a;case 1:break d;case 3:break g;default:break c}if(!c)break c;J[d>>2]=13;c=J[b+8>>2];b=0;J[695492]=0;c=ha(3283,c|0,0,d|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;j:{if(J[c>> -2]!=3)break j;J[695492]=0;c=$(4,12)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;b=aa(3187,c|0,J[d+8>>2])|0;e=J[695492];J[695492]=0;if((e|0)!=1)break j;break b}J[695492]=0;_(3205,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}if(!b)break c}jr(d,J[b>>2],J[b+4>>2]);J[a+8>>2]=J[d+8>>2];c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;qc(dd(b));break c}b=J[b+8>>2];J[695492]=0;aa(2808,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}bc=d+16|0; -return}a=Z()|0;qc(c);ba(a|0);B()}ba(Z()|0);B()}function Q_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=bc-16|0;bc=g;a:{b:{f=O[b>>3];if(f!=1|O[b+8>>3]!=0|(O[b+16>>3]!=0|O[b+24>>3]!=1))break b;if(e)break b;f=O[b+32>>3];if(!(f!=0|O[b+40>>3]!=0)){b=J[a+104>>2];gc[J[J[b>>2]+404>>2]](b)|0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=1072693248;J[a+128>>2]=0;J[a+132>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=1072693248;J[a+152>>2]= -0;J[a+156>>2]=0;break a}O[c>>3]=f;O[d>>3]=O[b+40>>3];b=J[a+104>>2];gc[J[J[b>>2]+404>>2]](b)|0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=1072693248;J[a+128>>2]=0;J[a+132>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=1072693248;J[a+152>>2]=0;J[a+156>>2]=0;break a}c:{if(f!=O[a+112>>3])break c;j=O[a+120>>3];k=O[b+8>>3];if(j!=k)break c;l=O[b+16>>3];if(l!=O[a+128>>3])break c;m=O[a+136>>3];n=O[b+24>>3];if(m!=n)break c;h=O[b+32>>3];o=O[a+144>>3];if(h!=o)break c;i=O[b+40>>3];p=O[a+ -152>>3];if(e|i!=p)break c;f=1/(f*n-l*k);O[c>>3]=f*((h-o)*m-j*(i-p));O[d>>3]=f*((i-O[a+152>>3])*O[a+112>>3]-O[a+128>>3]*(h-O[a+144>>3]));break a}c=J[a+104>>2];O[g+8>>3]=O[b+32>>3]/72*25.4;O[g>>3]=O[b+40>>3]/72*25.4;gc[J[J[c>>2]+396>>2]](c,b,b+8|0,b+16|0,b+24|0,g+8|0,g)|0;O[a+112>>3]=O[b>>3];O[a+120>>3]=O[b+8>>3];O[a+128>>3]=O[b+16>>3];O[a+136>>3]=O[b+24>>3];O[a+144>>3]=O[b+32>>3];O[a+152>>3]=O[b+40>>3]}bc=g+16|0}function o6(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;j=bc-16|0;bc=j;J[j+12>>2]=0;k=J[a+4>>2];p=J[k+8>>2];e=3;a:{if(d?0:c)break a;H[a|0]=0;if(M[k+3112>>2]<=b>>>0|(L[k+3120>>1]!=(c|0)?c:0))break a;h=J[k+3116>>2];i=b<<3;n=J[h+i>>2];g=n+1|0;f=Sc(p,1,J[a+20>>2]<<2,g<<2,J[a+24>>2],j+12|0);J[a+24>>2]=f;e=J[j+12>>2];if(e)break a;J[a+20>>2]=g;b:{c:{if(!g)break c;q=h+i|0;if(c){h=0;while(1){d:{if(!h){J[f>>2]=65536;break d}o=h<<2;e=J[(o+J[q+4>>2]|0)-4>>2];if(e>>>0>=M[k+3124>>2]){e=3;break a}r=J[k+3128>>2]+(e<<2)|0;J[f+o>>2]=65536;e=0;while(1){f= -65536;i=J[r>>2]+P(e,12)|0;g=J[i+4>>2];l=J[i>>2];e:{if((g|0)<(l|0))break e;m=J[i+8>>2];if(!g|(g|0)>(m|0)|(l|0)<0&(m|0)>0)break e;f=0;i=J[(e<<2)+d>>2];if((i|0)<(l|0)|(i|0)>(m|0))break e;f=65536;if((g|0)==(i|0))break e;if((g|0)>(i|0)){f=td(i-l|0,g-l|0);break e}f=td(m-i|0,m-g|0)}g=Pc(J[J[a+24>>2]+o>>2],f);f=J[a+24>>2];J[o+f>>2]=g;e=e+1|0;if((e|0)!=(c|0))continue;break}}e=(h|0)!=(n|0);h=h+1|0;if(e)continue;break}break c}J[f>>2]=65536;if(!n){J[a+8>>2]=b;break b}g=J[q+4>>2]-4|0;e=1;while(1){h=e<<2;if(M[h+ -g>>2]>=M[k+3124>>2]){e=3;break a}J[f+h>>2]=0;h=(e|0)==(n|0);e=e+1|0;if(!h)continue;break}}J[a+8>>2]=b;if(!c)break b;b=c<<2;f=Sc(p,1,J[a+12>>2]<<2,b,J[a+16>>2],j+12|0);J[a+16>>2]=f;e=J[j+12>>2];if(e)break a;tc(f,d,b)}H[a|0]=1;J[a+12>>2]=c;e=J[j+12>>2]}bc=j+16|0;return e|0}function _M(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=bc+-64|0;bc=g;J[g+24>>2]=0;J[g+28>>2]=0;J[g+56>>2]=0;J[g+60>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=d;J[g+16>>2]= -0;J[g+20>>2]=0;J[g+12>>2]=b;J[g+8>>2]=a;J[g+20>>2]=c;a:{b:{if(!Iw(g+8|0,219244,56)){while(1){b=zk(g+8|0,1);if((b|0)==1)break b;if(!(J[g+24>>2]?b:1))continue;break}if(b>>>0<2)break b}b=-101;break a}if(!K[2755321])H[2755321]=1;i=e-1|0;if((f|0)==16){if(!i){b=0;break a}m=e<<1;k=e-2|0;n=i&1;j=(e|0)==2;while(1){a=K[c|0];c:{if(!n){h=c;f=i;break c}e=K[c+3|0];b=K[c+1|0];H[c+3|0]=e+b;a=(K[c+2|0]+a|0)+(e>>>0>((b^-1)&255)>>>0)|0;H[c+2|0]=a;h=c+2|0;f=k}if(!j){while(1){b=h;l=K[b+3|0];e=K[b+1|0];h=e+l|0;H[b+3|0]= -h;c=K[b+5|0];H[b+5|0]=c+h;a=(K[b+2|0]+a|0)+(l>>>0>((e^-1)&255)>>>0)|0;H[b+2|0]=a;a=(a+K[b+4|0]|0)+(c>>>0>((h^-1)&255)>>>0)|0;H[b+4|0]=a;h=b+4|0;f=f-2|0;if(f)continue;break}c=b+2|0}c=c+4|0;b=0;d=d-m|0;if((d|0)>0)continue;break}break a}if(!i){b=0;break a}j=i&3;k=e-2>>>0<3;while(1){h=K[c|0];f=0;a=i;if(j)while(1){b=c;h=K[c+1|0]+h|0;H[c+1|0]=h;a=a-1|0;c=c+1|0;f=f+1|0;if((j|0)!=(f|0))continue;break}if(!k){while(1){b=c;f=K[c+1|0]+h|0;H[c+1|0]=f;f=f+K[c+2|0]|0;H[c+2|0]=f;f=f+K[c+3|0]|0;H[c+3|0]=f;h=f+K[c+ -4|0]|0;H[c+4|0]=h;c=c+4|0;a=a-4|0;if(a)continue;break}b=b+3|0}c=b+2|0;b=0;d=d-e|0;if((d|0)>0)continue;break}}bc=g- -64|0;return b}function wN(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0;m=bc-16|0;bc=m;a:{if(!(!L[j+28>>1]|!(K[j+64|0]|K[j+65|0]))){l=tu(a,j);if(l)break a}l=gc[J[a+152>>2]](92)|0;if(!l){l=1;Dc(a,1,0,0);break a}H[l+31|0]=d;H[l+30|0]=0;I[l+28>>1]=b;J[l+4>>2]=0;J[l>>2]=951;d=K[j+32|0];H[l+33|0]=1;H[l+32|0]=d;b:{if(f){if(!g){J[l+36>>2]=h;break b}J[l+36>>2]=J[j+36>>2]+h;i=J[j+40>>2]+i|0;break b}J[l+ -36>>2]=J[j+36>>2];i=J[j+40>>2]}J[l+40>>2]=i;H[l+44|0]=K[j+44|0];J[l+48>>2]=J[j+48>>2];J[l+52>>2]=J[j+52>>2];J[l+56>>2]=J[j+56>>2];d=J[j+60>>2];J[l+80>>2]=0;J[l+84>>2]=0;J[l+60>>2]=d;if(b){d=a+692|0;c:{d:{i=J[a+692>>2];if(i)while(1){if(L[i+28>>1]<=b>>>0)break d;i=J[i+12>>2];if(i)continue;break}i=J[a+688>>2];J[l+8>>2]=i;J[a+688>>2]=l;break c}J[l+12>>2]=i;J[l+8>>2]=J[i+8>>2];J[i+8>>2]=l;i=J[l+8>>2]}J[(i?i+12|0:d)>>2]=l}e:{f:{if(c){a=J[j+88>>2];J[l+88>>2]=a;J[a+28>>2]=J[a+28>>2]+1;break f}c=J[j+88>>2]; -d=(e?0:K[c+33|0])<<24>>24;b=gc[J[a+152>>2]](1180)|0;g:{if(b){b=tc(b,c,1180);H[b+33|0]=d;J[b+28>>2]=1;H[b+32|0]=0;h:{d=J[b+1172>>2];if(d){d=gc[J[a+152>>2]](d)|0;J[b+1176>>2]=d;if(!d)break h;tc(d,J[c+1176>>2],J[b+1172>>2])}d=J[b+1144>>2];if(d){d=gc[J[a+152>>2]](d)|0;J[b+1148>>2]=d;if(!d)break h;tc(d,J[c+1148>>2],J[b+1144>>2])}J[m+12>>2]=b;b=0;break g}gc[J[a+156>>2]](b,1180)}Dc(a,1,0,0);b=1}if(b)break e;J[l+88>>2]=J[m+12>>2]}J[k>>2]=l;l=0;break a}gc[J[a+156>>2]](l,92);l=1}bc=m+16|0;return l}function Ndb(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+4>>2]=0;if((b|0)!=80){d=J[a>>2];J[d+20>>2]=13;J[d+24>>2]=80;J[J[a>>2]+28>>2]=b;gc[J[J[a>>2]>>2]](a)}if((c|0)!=488){b=J[a>>2];J[b+20>>2]=22;J[b+24>>2]=488;J[J[a>>2]+28>>2]=c;gc[J[J[a>>2]>>2]](a)}b=J[a>>2];c=J[a+12>>2];wc(a+4|0,0,484);J[a+16>>2]=1;J[a+12>>2]=c;J[a>>2]=b;O3(a);J[a+308>>2]=0;J[a+24>>2]=0;J[a+8>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]= -0;J[a+208>>2]=0;b=gc[J[J[a+4>>2]>>2]](a,0,172)|0;J[a+460>>2]=b;J[b+96>>2]=0;J[b+100>>2]=0;J[b+28>>2]=288;J[b+8>>2]=289;J[b+4>>2]=290;J[b>>2]=291;J[b+104>>2]=0;J[b+36>>2]=288;J[b+40>>2]=288;J[b+108>>2]=0;J[b+112>>2]=0;J[b+44>>2]=288;J[b+48>>2]=288;J[b+116>>2]=0;J[b+120>>2]=0;J[b+52>>2]=288;J[b+56>>2]=288;J[b+124>>2]=0;J[b+128>>2]=0;J[b+60>>2]=288;J[b+132>>2]=0;J[b- -64>>2]=288;J[b+136>>2]=0;J[b+140>>2]=0;J[b+68>>2]=288;J[b+72>>2]=288;J[b+76>>2]=288;J[b+80>>2]=288;J[b+144>>2]=0;J[b+148>>2]=0;J[b+84>> -2]=288;J[b+152>>2]=0;J[b+156>>2]=0;J[b+160>>2]=0;J[b+92>>2]=288;J[b+32>>2]=292;J[b+88>>2]=292;J[a+216>>2]=0;J[a+436>>2]=0;J[a+144>>2]=0;b=J[a+460>>2];J[b+164>>2]=0;J[b+24>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;b=gc[J[J[a+4>>2]>>2]](a,0,28)|0;J[a+456>>2]=b;J[b+24>>2]=1;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=295;J[b+8>>2]=296;J[b+4>>2]=297;J[b>>2]=298;J[a+20>>2]=200}function mta(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d:{b=J[b>>2];e:{if(b){d=J[J[b>>2]+24>>2];J[695492]= -0;ca(d|0,c+4|0,b|0,2);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[c+4>>2];f:{if(b){d=J[J[b>>2]+24>>2];J[695492]=0;ca(d|0,c+8|0,b|0,2);b=J[695492];J[695492]=0;if((b|0)!=1)break f;b=Z()|0;break c}J[c+8>>2]=0}J[695492]=0;aa(4993,a|0,c+8|0)|0;b=J[695492];J[695492]=0;g:{if((b|0)!=1){b=J[c+8>>2];J[c+8>>2]=0;if(!b)break g;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break g;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}break a}b=Z()|0;vc(c+8| -0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+4>>2];J[c+4>>2]=0;if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}J[695492]=0;J[c+12>>2]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break h;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break h;J[695492]=0;_(4987,b|0); -b=J[695492];J[695492]=0;if((b|0)!=1)break h}break a}b=Z()|0;vc(c+12|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2]}bc=c+16|0;return a|0}b=Z()|0;break b}vc(c+4|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function w5a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;J[J[J[b>>2]>>2]+20>>2]=c;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+24>>2]=0;J[b+28>>2]=-1;J[b+208>>2]=0;J[b+212>>2]=-1;J[b+176>>2]=0;J[b+180>>2]=0;J[b+400>>2]=0;J[b+404>>2]=0;if(K[a+96|0]){H[a+96|0]=0;J[a+64>> -2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1208>>2]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}c=xC(b,d+8|0,d);if(c){g=a+104|0;while(1){e=O[d>>3];f=O[d+8>>3];a:{if((c|0)==1){if(K[a+96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1208>>2]=0;J[a+88>> -2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}if(!(!K[a+1188|0]|J[a+1208>>2]!=2))Af(a+104|0,a,O[a+1192>>3],O[a+1200>>3]);O[a+1200>>3]=e;O[a+1192>>3]=f;O[a+144>>3]=e;O[a+136>>3]=f;if(K[a+156|0])J[a+152>>2]=(O[a+128>>3]>3]>3]>f)<<2|(O[a+112>>3]>e)<<3;J[a+1208>>2]=1;break a}if(c>>>0<=14){Af(g,a,f,e);J[a+1208>>2]=2;break a}if((c&-49)!=79|J[a+1208>>2]!=2)break a;Af(g,a,O[a+1192>>3],O[a+1200>> -3]);J[a+1208>>2]=3}c=xC(b,d+8|0,d);if(c)continue;break}}bc=d+16|0}function uMa(a,b,c){a=a|0;b=b|0;c=c|0;var d=Q(0),e=Q(0),f=Q(0),g=Q(0),h=0,i=0,j=Q(0),k=Q(0),l=Q(0),m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=Q(0),v=Q(0),w=Q(0),x=Q(0),y=Q(0),z=Q(0),A=Q(0);h=a;while(1){i=J[(m<<2)+b>>2]+c|0;n=K[i+7|0];o=K[i|0];d=Q(n+o|0);p=K[i+4|0];q=K[i+3|0];e=Q(p+q|0);g=Q(d+e);r=K[i+6|0];s=K[i+1|0];f=Q(r+s|0);t=K[i+5|0];i=K[i+2|0];j=Q(t+i|0);k=Q(f+j);N[h+16>>2]=g-k;N[h>>2]=Q(k+g)+Q(-1024);d=Q(d-e);e=Q(Q(d+Q(f-j))*Q(.7071067690849304)); +2]=999;J[d+40>>2]=0;J[d+28>>2]=0;J[d+20>>2]=999;J[d+24>>2]=0;d=d- -64|0;b=b+4|0;if((a|0)!=(b|0))continue;break}}a=l&3;if(!a)break e;b=0;while(1){J[d+12>>2]=0;J[d+4>>2]=999;J[d+8>>2]=0;d=d+16|0;b=b+1|0;if((a|0)!=(b|0))continue;break}}}fc=j+256|0;return f}function bsa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;f=J[a+12>>2];c=kc[J[J[f>>2]+20>>2]](f,b,c,d)|0;J[a+24>>2]=0;J[e>>2]=0;a:{b:{c:{b=J[a+16>>2];if(!b)break c;d=J[J[b>>2]+76>>2];J[699344]=0;f=d;d=e+12|0;da(f|0,d|0,b|0);b=J[699344]; +J[699344]=0;d:{if((b|0)!=1){J[699344]=0;aa(5153,e|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}break b}a=Z()|0;zc(e+12|0);break d}a=Z()|0}break a}J[699344]=0;ia(5705,e+4|0,0,0,e|0);b=J[699344];J[699344]=0;e:{f:{if((b|0)!=1){b=J[e+4>>2];g:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,e+12|0,b|0,1);b=J[699344]; +J[699344]=0;if((b|0)!=1)break g;a=Z()|0;break f}J[e+12>>2]=0}J[699344]=0;aa(5153,a+16|0,e+12|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break h;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break b}a=Z()|0;zc(e+12|0);break f}b=a;a=J[a+16>>2];J[b+20>>2]=J[(a?a+12|0:2743576)>>2];wc(e+4|0);a=J[e>>2];J[e>>2]=0;i:{if(!a)break i;J[699344]=0;b=J[a+4>>2]-1|0;J[a+ +4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(b)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}fc=e+16|0;return c|0}a=Z()|0;break e}wc(e+4|0)}break a}ea(0)|0;Bc();B()}zc(e);ba(a|0);B()}function Fba(a,b,c){var d=0,e=0,f=0;e=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2]))break a;e=-1;d=J[a+28>>2];J[a+28>>2]=d-1;c:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break c}d=td(a,1);if((d|0)==-1)break b}H[c+ +1|0]=d;d=J[a+8>>2];if(d&7)break b;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2]))break a;e=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break d}d=td(a,1);if((d|0)==-1)break b}H[c+2|0]=d;d=J[a+8>>2];if(d&7)break b;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2]))break a;e=-1;d=J[a+28>>2];J[a+28>>2]=d-1;e:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break e}d=td(a,1);if((d|0)==-1)break b}H[c+3|0]=d;d=J[a+8>>2];if(d&7)break b; +e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2]))break a;e=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break f}d=td(a,1);if((d|0)==-1)break b}H[c+4|0]=d;if(Ds(a,c+5|0))break b;e=K[c+1|0]+1|0;J[c+8>>2]=e;if(b){d=0;while(1){b=J[a+8>>2];if(b&7)return-1;f=J[a+64>>2];if(!((f|0)<0|(f|0)>J[a+60>>2])){J[a+8>>2]=b|4;return-1}b=J[a+28>>2];J[a+28>>2]=b-1;g:{if((b|0)>0){J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0];break g}e=-1;b=td(a,1); +if((b|0)==-1)break b;e=J[c+8>>2]}f=(d<<1)+c|0;H[f+13|0]=(b&240)>>>4;H[f+12|0]=b&15;d=d+1|0;if((e|0)>(d|0))continue;break}H[c|0]=K[c|0]|1}e=0-(J[a+8>>2]&1)|0}return e}J[a+8>>2]=d|4;return-1}function y2a(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;f=J[a+8>>2];i=J[a+12>>2];a:{b:{if(f>>>0>=i>>>0){J[b>>2]=8;break b}c=f+1|0;d=K[f|0];e=d<<24>>24;if((e|0)>=0){J[a+8>>2]=c;return d|0}g=J[a+4>>2];j=H[d+741088|0];h=j&65535;if(!h){H[g+36|0]=1;H[g+37|0]=e;J[b>>2]=12;J[a+8>>2]=c;break b}if(i>>>0<(c+h|0)- +1>>>0){H[g+37|0]=e;J[b>>2]=11;f=1;c:{if(M[a+12>>2]<=c>>>0)break c;while(1){d=K[c|0];if((d&192)==128){H[((f<<24>>24)+g|0)+37|0]=d;f=f+1|0;c=c+1|0;if(c>>>0>2])continue;break c}break}J[b>>2]=12}H[g+36|0]=f;J[a+8>>2]=c;break b}d=d<<6;e=1;d:{e:{f:switch((j&65535)-2|0){case 4:e=K[c|0];if((e&192)!=128)break e;c=f+2|0;d=d+e<<6;case 3:e=K[c|0];if((e&192)!=128)break e;c=c+1|0;d=d+e<<6;case 2:e=K[c|0];if((e&192)!=128)break e;c=c+1|0;d=d+e<<6;case 1:e=K[c|0];if((e&192)!=128)break e;c=c+1|0;d=d+e<<6;case 0:e= +K[c|0];d=e+d|0;e=(e&192)==128;c=e+c|0;break;default:break f}J[a+8>>2]=c;if(!e)break d;a=d;d=h<<2;a=a-J[d+741344>>2]|0;if(a>>>0>1114111|(a&-2048)==55296)break d;if(M[d+741376>>2]<=a>>>0)break a;break d}J[a+8>>2]=c}a=0;g:{if(c>>>0<=f>>>0)break g;a=c-f|0;h=a&3;d=0;h:{if((f^-1)+c>>>0<3){a=0;break h}i=a&-4;a=0;c=g+37|0;e=0;while(1){H[c+(a<<24>>24)|0]=K[f|0];H[c+((a|1)<<24>>24)|0]=K[f+1|0];H[c+((a|2)<<24>>24)|0]=K[f+2|0];H[c+((a|3)<<24>>24)|0]=K[f+3|0];a=a+4|0;f=f+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}if(!h)break g; +while(1){H[((a<<24>>24)+g|0)+37|0]=K[f|0];a=a+1|0;f=f+1|0;d=d+1|0;if((h|0)!=(d|0))continue;break}}H[g+36|0]=a;J[b>>2]=12}a=65535}return a|0}function UXa(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;J[a+48>>2]=0;J[a+52>>2]=0;J[a+80>>2]=0;f=a+72|0;J[f>>2]=0;J[f+4>>2]=0;e=a- -64|0;J[e>>2]=0;J[e+4>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;H[a|0]=K[b|0];H[a+1|0]=K[b+1|0];J[a+4>>2]=J[b+4>>2];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3];a:{b:{if((a| +0)==(b|0))break b;e=a+60|0;g=a+48|0;c:{if(H[b+59|0]>=0){c=J[b+52>>2];J[g>>2]=J[b+48>>2];J[g+4>>2]=c;J[g+8>>2]=J[b+56>>2];break c}c=J[b+52>>2];d=J[b+48>>2];J[699344]=0;ga(3484,g|0,d|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a}c=b+60|0;h=K[b+71|0];d=h<<24>>24;d:{e:{if(H[a+71|0]>=0){if((d|0)<0)break e;d=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=d;J[e+8>>2]=J[c+8>>2];break d}i=J[b- -64>>2];k=J[b+60>>2];J[699344]=0;j=c;c=(d|0)<0;ga(3483,e|0,(c?k:j)|0,(c?i:h)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a; +break d}c=J[b- -64>>2];d=J[b+60>>2];J[699344]=0;ga(3484,e|0,d|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a}c=b+72|0;h=K[b+83|0];d=h<<24>>24;if(H[a+83|0]>=0){if((d|0)>=0){b=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=b;J[f+8>>2]=J[c+8>>2];return a|0}c=J[b+76>>2];b=J[b+72>>2];J[699344]=0;ga(3484,f|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}i=J[b+76>>2];b=J[b+72>>2];J[699344]=0;j=b;b=(d|0)<0;ga(3483,f|0,(b?j:c)|0,(b?i:h)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}return a| +0}b=Z()|0;if(H[a+83|0]<0)uc(J[f>>2]);if(H[a+71|0]<0)uc(J[e>>2]);if(H[a+59|0]<0)uc(J[g>>2]);ba(b|0);B()}function f8a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[e+12|0]=0;J[e+8>>2]=a;a:{d=J[b+4>>2];if(d){if(d>>>0>=29826162){J[699344]=0;$(2498,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}J[699344]=0;f=P(d,144);c=_(4,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+4>>2]=c;J[a>>2]=c;J[a+8>>2]=c+f;b=J[b>>2];f=f+b|0;while(1){O[c>>3]=O[b>> +3];O[c+8>>3]=O[b+8>>3];O[c+16>>3]=O[b+16>>3];O[c+24>>3]=O[b+24>>3];O[c+32>>3]=O[b+32>>3];O[c+40>>3]=O[b+40>>3];d=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=d;d=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=d;J[c+64>>2]=J[b+64>>2];d=J[b+68>>2];J[c+68>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;O[c+72>>3]=O[b+72>>3];O[c+80>>3]=O[b+80>>3];O[c+88>>3]=O[b+88>>3];O[c+96>>3]=O[b+96>>3];O[c+104>>3]=O[b+104>>3];O[c+112>>3]=O[b+112>>3];d=J[b+124>>2];J[c+120>>2]=J[b+120>>2];J[c+124>>2]=d;d=J[b+132>>2];J[c+128>>2]=J[b+128>> +2];J[c+132>>2]=d;J[c+136>>2]=J[b+136>>2];d=J[b+140>>2];J[c+140>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;c=c+144|0;b=b+144|0;if((f|0)!=(b|0))continue;break}J[a+4>>2]=c}fc=e+16|0;return a|0}f=Z()|0;b:{if(K[e+12|0])break b;h=J[e+8>>2];d=J[h>>2];if(!d)break b;b=J[h+4>>2];c=d;if((b|0)!=(c|0)){while(1){a=b;b=b-144|0;g=J[b+140>>2];c:{if(!g)break c;c=J[g+4>>2];J[g+4>>2]=c-1;if(c)break c;kc[J[J[g>>2]+8>>2]](g);Gc(g)}c=J[a-76>>2];d:{if(!c)break d;a=J[c+4>>2];J[c+4>>2]=a-1;if(a)break d;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b| +0)!=(d|0))continue;break}c=J[J[e+8>>2]>>2]}J[h+4>>2]=d;uc(c)}ba(f|0);B()}function O4(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:switch(b-a>>2){case 2:c=J[J[c>>2]>>2];b=b-4|0;d=J[b>>2];e=J[a>>2];if(!(O[J[c+P(d,12)>>2]>>3]>2]>>3]))break b;J[a>>2]=d;J[b>>2]=e;break a;case 3:d=b-4|0;e=J[d>>2];b=J[J[c>>2]>>2];g=O[J[P(e,12)+b>>2]>>3];f=J[a+4>>2];i=O[J[b+P(f,12)>>2]>>3];c=J[a>>2];j=O[J[b+P(c,12)>>2]>>3];if(!(i>2]=e;J[d>>2]=f;c=J[a+4>>2];d=J[a>> +2];if(!(O[J[b+P(c,12)>>2]>>3]>2]>>3]))break b;J[a+4>>2]=d;J[a>>2]=c;break a}if(g>2]=e;J[d>>2]=c;break a}J[a+4>>2]=c;J[a>>2]=f;e=J[d>>2];if(!(j>O[J[b+P(e,12)>>2]>>3]))break b;J[a+4>>2]=e;J[d>>2]=c;break a;case 4:gM(a,a+4|0,a+8|0,b-4|0,J[J[c>>2]>>2]);break a;case 5:hM(a,a+4|0,a+8|0,a+12|0,b-4|0,c);break a;case 0:case 1:break b;default:break c}f=a+4|0;d=a+8|0;k=J[J[c>>2]>>2];h=J[a+8>>2];g=O[J[k+P(h,12)>>2]>>3];l=J[a+4>>2];i=O[J[P(l,12)+k>>2]>>3];m=J[a>>2];j=O[J[P(m,12)+k>>2]>> +3];d:{e:{if(!(i>2]=h;J[d>>2]=l;e=a;c=f;if(g>2]=m;J[a>>2]=l;e=f;if(!(g>2]=h;J[c>>2]=m}f=a+12|0;if((f|0)==(b|0))break b;e=0;while(1){f:{c=f;l=J[c>>2];g=O[J[P(l,12)+k>>2]>>3];h=J[d>>2];if(!(g>2]>>3]))break f;while(1){g:{J[c>>2]=h;c=d;if((c|0)==(a|0)){c=a;break g}d=c-4|0;h=J[d>>2];if(g>2]>>3])continue}break}J[c>>2]=l;e=e+1|0;if((e|0)!=8)break f;return(f+4|0)==(b|0)}d=f;c=d+4|0;f=c; +if((b|0)!=(c|0))continue;break}}return 1}return 1}function L8(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=fc-16|0;fc=i;J[i+12>>2]=0;g=J[a+12>>2];a:{b:{c:{d:{if((g|0)<=11){if(J[a+20>>2])break d;J[a+16>>2]=12;J[a+20>>2]=a+820;break d}j=J[a+16>>2];if((j|0)>(g|0)){e=J[a+20>>2];h=e+P(g,44)|0;break c}g=64;if((j|0)>48806445)break a;g=j>>2;e:{if((g|0)>=-4){k=(g+j|0)+4|0;if((k|0)<48806447)break e}k=48806446}l=J[a+20>>2];f:{if((l|0)==(a+820|0)){e=_c(e,44,0,k,0,i+12|0);J[a+20>>2]=e;g=J[i+12>>2];if(g)break a; +xc(e,l,528);break f}m=a,n=_c(e,44,j,k,l,i+12|0),J[m+20>>2]=n;g=J[i+12>>2];if(g)break a}J[a+16>>2]=k;g=J[a+12>>2]}e=J[a+20>>2];h=e+P(g,44)|0;if((g|0)<=0)break b}if(!d){g=h;while(1){h=g-44|0;d=I[h>>1];if((d|0)<(b|0)){h=g;break b}if(!((b|0)!=(d|0)|J[a+24>>2]!=(c|0))){h=g;break b}d=J[h+4>>2];J[g>>2]=J[h>>2];J[g+4>>2]=d;J[g+40>>2]=J[h+40>>2];d=J[h+36>>2];J[g+32>>2]=J[h+32>>2];J[g+36>>2]=d;d=J[h+28>>2];J[g+24>>2]=J[h+24>>2];J[g+28>>2]=d;d=J[h+20>>2];J[g+16>>2]=J[h+16>>2];J[g+20>>2]=d;d=J[h+12>>2];J[g+8>> +2]=J[h+8>>2];J[g+12>>2]=d;g=h;if(g>>>0>e>>>0)continue;break}break b}g=h;while(1){h=g-44|0;d=I[h>>1];if((d|0)>(b|0)){h=g;break b}if(!((b|0)!=(d|0)|J[a+24>>2]!=(c|0))){h=g;break b}d=J[h+4>>2];J[g>>2]=J[h>>2];J[g+4>>2]=d;J[g+40>>2]=J[h+40>>2];d=J[h+36>>2];J[g+32>>2]=J[h+32>>2];J[g+36>>2]=d;d=J[h+28>>2];J[g+24>>2]=J[h+24>>2];J[g+28>>2]=d;d=J[h+20>>2];J[g+16>>2]=J[h+16>>2];J[g+20>>2]=d;d=J[h+12>>2];J[g+8>>2]=J[h+8>>2];J[g+12>>2]=d;g=h;if(g>>>0>e>>>0)continue;break}}J[a+12>>2]=J[a+12>>2]+1;g=0}J[f>>2]= +h;fc=i+16|0;return g}function gm(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,r=0,s=0,t=0;d=fc-48|0;fc=d;e=d9(a,b,c,d+4|0);if(e){Df(b,d+44|0,d+40|0,0);ss(c,d+32|0,d+36|0,d+24|0,d+28|0);a=!e;a:{if(a)break a;a=a?0:J[e+36>>2];if(J[a+8>>2]>((a?J[a+12>>2]:0)|0)?a:0)break a;Cf(e,0,0,e?J[e>>2]:-1,e?J[e+4>>2]:-1,30,0,0,0)}g=J[d+32>>2];b:{if((g|0)<=0)break b;f=J[d+36>>2];if((f|0)<=0)break b;a=0;while(1){b=0;if((f|0)>0){while(1){if(J[J[J[c+16>>2]+(a<<2)>>2]+(b<<2)>>2]==1){Cf(e,J[d+28>> +2]-b|0,J[d+24>>2]-a|0,J[d+44>>2],J[d+40>>2],16,J[d+4>>2],0,0);f=J[d+36>>2]}b=b+1|0;if((f|0)>(b|0))continue;break}g=J[d+32>>2]}a=a+1|0;if((g|0)>(a|0))continue;break}}c:{if(J[663157]!=1)break c;i=d+12|0;j=d+8|0;f=0;a=0;g=0;k=d+16|0;d:{if(!k|(d|0)==-20|(!i|!j))break d;J[j>>2]=0;J[i>>2]=0;J[k>>2]=0;J[d+20>>2]=0;if(!c)break d;n=J[c>>2];e:{if((n|0)<=0)break e;o=J[c+4>>2];if((o|0)<=0)break e;p=J[c+12>>2];q=J[c+8>>2];s=J[c+16>>2];while(1){c=a-q|0;r=q-a|0;t=J[(a<<2)+s>>2];b=0;while(1){if(J[(b<<2)+t>>2]==1){h= +b-p|0;g=(g|0)>(h|0)?g:h;h=p-b|0;l=(h|0)<(l|0)?l:h;m=(c|0)<(m|0)?m:c;f=(f|0)>(r|0)?f:r}b=b+1|0;if((o|0)!=(b|0))continue;break}a=a+1|0;if((n|0)!=(a|0))continue;break}}J[d+20>>2]=l;J[k>>2]=f;J[i>>2]=g;J[j>>2]=m}a=J[d+20>>2];if((a|0)>0)Cf(e,0,0,a,J[d+40>>2],0,0,0,0);a=J[d+12>>2];if((a|0)>0)Cf(e,J[d+44>>2]-a|0,0,a,J[d+40>>2],0,0,0,0);a=J[d+16>>2];if((a|0)>0)Cf(e,0,0,J[d+44>>2],a,0,0,0,0);a=J[d+8>>2];if((a|0)<=0)break c;Cf(e,0,J[d+40>>2]-a|0,J[d+44>>2],a,0,0,0,0)}Fd(d+4|0)}fc=d+48|0;return e}function dsa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;J[a+24>>2]=0;J[e>>2]=0;a:{b:{c:{d=J[a+16>>2];if(!d)break c;f=J[J[d>>2]+76>>2];J[699344]=0;g=f;f=e+12|0;da(g|0,f|0,d|0);d=J[699344];J[699344]=0;d:{if((d|0)!=1){J[699344]=0;aa(5153,e|0,f|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break c;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break c;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)!=1)break c}break b}a=Z()|0;zc(e+ +12|0);break d}a=Z()|0}break a}J[699344]=0;ia(5705,e+4|0,0,0,e|0);d=J[699344];J[699344]=0;e:{f:{if((d|0)!=1){d=J[e+4>>2];g:{if(d){f=J[J[d>>2]+28>>2];J[699344]=0;ca(f|0,e+12|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break g;a=Z()|0;break f}J[e+12>>2]=0}J[699344]=0;aa(5153,a+16|0,e+12|0)|0;d=J[699344];J[699344]=0;h:{if((d|0)!=1){d=J[e+12>>2];J[e+12>>2]=0;if(!d)break h;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break h;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]= +0;if((d|0)!=1)break h}break b}a=Z()|0;zc(e+12|0);break f}d=J[a+16>>2];J[a+20>>2]=J[(d?d+12|0:2743576)>>2];wc(e+4|0);d=J[e>>2];J[e>>2]=0;i:{if(!d)break i;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break b;if(f)break i;J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b}a=J[a+12>>2];a=kc[J[J[a>>2]+12>>2]](a,b,c)|0;fc=e+16|0;return a|0}a=Z()|0;break e}wc(e+4|0)}break a}ea(0)|0;Bc();B()}zc(e);ba(a|0);B()}function EAa(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;f=fc-16|0;fc=f;g=f+12|0;e=fc-32|0;fc=e;a:{b:{if(!K[b+144|0]){a=Qc(e,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);ba(b|0);B()}Ho(g);J[699344]=0;da(5278,e+28|0,g|0);h=J[699344];J[699344]=0;c:{d:{e:{f:{g:{if((h|0)!=1){h=J[e+28>>2];J[e+24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[699344]=0;J[e>>2]=0;J[e+4>>2]=0;i=aa(5250,e|0,2413244)|0;j=J[699344];J[699344]=0;if((j|0)==1)break g;J[699344]=0;ma(5514, +b|0,h|0,i|0,c|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[J[h>>2]+24>>2];J[699344]=0;$(b|0,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[g>>2];c=J[J[b>>2]+20>>2];J[699344]=0;ha(c|0,b|0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;Md(i);b=J[e+28>>2];J[e+28>>2]=0;h:{if(!b)break h;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(c)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break c}fc=e+32|0;break a}a=Z()|0;break d}a= +Z()|0;break e}a=Z()|0;Md(i)}zc(e+28|0)}zc(g);ba(a|0);B()}ea(0)|0;Bc()}B()}J[699344]=0;da(5328,a|0,g|0);a=J[699344];J[699344]=0;i:{if((a|0)!=1){a=J[f+12>>2];J[f+12>>2]=0;j:{if(!a)break j;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break i;if(b)break j;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break i}fc=f+16|0;return}a=Z()|0;zc(f+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Ce(a,b,c,d){var e=0,f=0,g=0;f=fc-16|0;fc=f;e=J[a+428>>2];a:{b:{if(!(!d|(e+8| +0)==(d|0))){g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[e|0]=g;H[e+1|0]=g>>>8;H[e+2|0]=g>>>16;H[e+3|0]=g>>>24;e=J[a+428>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[e+4|0]=b;H[e+5|0]=b>>>8;H[e+6|0]=b>>>16;H[e+7|0]=b>>>24;e=J[a+116>>2]&240;if(e){b=0;if((e|0)==32)b=PE(a,PE(a,-1,J[a+428>>2]+4|0,4),d,c)^-1;e=J[a+428>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[e+8|0]=b;H[e+9|0]=b>>>8;H[e+10|0]=b>>>16;H[e+11|0]=b>>>24}b=901;if(!(kc[J[a+176>>2]](a,J[a+428>>2],8,f+12|0)|0))break b;if(J[f+12>>2]!=8){b= +12;break b}if(!(kc[J[a+176>>2]](a,d,c,f+12|0)|0))break b;if(J[f+12>>2]!=(c|0)){b=12;break b}c=0;if(!(K[a+116|0]&240))break a;if(!(kc[J[a+176>>2]](a,J[a+428>>2]+8|0,4,f+12|0)|0))break b;b=12;if(J[f+12>>2]!=4)break b;break a}d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[e|0]=d;H[e+1|0]=d>>>8;H[e+2|0]=d>>>16;H[e+3|0]=d>>>24;d=J[a+428>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+4|0]=b;H[d+5|0]=b>>>8;H[d+6|0]=b>>>16;H[d+7|0]=b>>>24;d=J[a+116>>2]&240;if(d){b=0;if((d|0)==32)b=PE(a,-1,J[a+428>>2]+4|0, +c+4|0)^-1;d=J[a+428>>2]+c|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+8|0]=b;H[d+9|0]=b>>>8;H[d+10|0]=b>>>16;H[d+11|0]=b>>>24;b=12;d=c+12|0;if(!(kc[J[a+176>>2]](a,J[a+428>>2],d,f+12|0)|0)){b=901;break b}c=0;if((d|0)!=J[f+12>>2])break b;break a}d=c+8|0;if(!(kc[J[a+176>>2]](a,J[a+428>>2],d,f+12|0)|0)){b=901;break b}b=12;c=0;if((d|0)==J[f+12>>2])break a}Jc(a,b,0,0);c=b}fc=f+16|0;return c}function vg(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;g=J[a+1176>>2];a:{if((g|0)>J[a+92>>2])break a; +d=J[b+20>>2];while(1){b:{J[b+28>>2]=d;J[b+4>>2]=2147483632;e=J[a+44>>2]+(g-J[a+84>>2]<<3)|0;h=J[e+4>>2];if(h){g=J[a+32>>2]+(J[e>>2]<<2)|0;j=0;e=d;while(1){d=J[g>>2];j=J[d+8>>2]+j|0;k=J[d+12>>2];i=J[d>>2];c=h-1|0;c:{if(!c){l=1;h=0;break c}f=((h<<2)+g|0)-4|0;while(1){h=g+4|0;d=J[g+4>>2];g=J[d>>2];l=(g|0)==(i|0);if((g|0)!=(i|0)){g=h;h=c;break c}j=J[d+8>>2]+j|0;k=J[d+12>>2]+k|0;g=h;c=c-1|0;if(c)continue;break}g=f;h=0}if(k){f=(j<<9)-k>>9;c=f>>31;f=(c^f)-c|0;c=f&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0: +c:f;c=J[((((c|0)>=255?255:c)<<2)+a|0)+132>>2];if(c){f=i-J[b>>2]|0;H[f+J[b+12>>2]|0]=c;e=J[b+28>>2];d:{if((f|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=L[e+2>>1]+1;break d}c=e+8|0;J[b+28>>2]=c;k=J[b>>2];I[e+10>>1]=1;I[e+8>>1]=f+k;J[e+12>>2]=f+J[b+12>>2];e=c}J[b+4>>2]=f}i=i+1|0}e:{if(l)break e;f=J[d>>2];if((f|0)<=(i|0))break e;c=j<<9>>9;d=c>>31;c=(c^d)-d|0;d=c&511;d=J[a+1156>>2]==1?d>>>0>256?512-d|0:d:c;d=J[((((d|0)>=255?255:d)<<2)+a|0)+132>>2];if(!d)break e;c=i-J[b>>2]|0;f=f-i|0;Ac(c+J[b+12>>2]|0,d,f);e=J[b+28>> +2];f:{if((c|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=f+L[e+2>>1];break f}d=e+8|0;J[b+28>>2]=d;i=J[b>>2];I[e+10>>1]=f;I[e+8>>1]=c+i;J[e+12>>2]=c+J[b+12>>2];e=d}J[b+4>>2]=(c+f|0)-1}if(h)continue;break}d=J[b+20>>2];if((d|0)!=(e|0))break b}e=J[a+1176>>2];g=e+1|0;J[a+1176>>2]=g;if((e|0)>2])continue;break a}break}e=b;b=J[a+1176>>2];J[e+8>>2]=b;m=1;J[a+1176>>2]=b+1}return m}function yg(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;g=J[a+1176>>2];a:{if((g|0)>J[a+92>>2])break a;d=J[b+20>>2];while(1){b:{J[b+ +28>>2]=d;J[b+4>>2]=2147483632;e=J[a+44>>2]+(g-J[a+84>>2]<<3)|0;h=J[e+4>>2];if(h){g=J[a+32>>2]+(J[e>>2]<<2)|0;j=0;e=d;while(1){d=J[g>>2];j=J[d+8>>2]+j|0;k=J[d+12>>2];i=J[d>>2];c=h-1|0;c:{if(!c){l=1;h=0;break c}f=((h<<2)+g|0)-4|0;while(1){h=g+4|0;d=J[g+4>>2];g=J[d>>2];l=(g|0)==(i|0);if((g|0)!=(i|0)){g=h;h=c;break c}j=J[d+8>>2]+j|0;k=J[d+12>>2]+k|0;g=h;c=c-1|0;if(c)continue;break}g=f;h=0}if(k){f=(j<<9)-k>>9;c=f>>31;f=(c^f)-c|0;c=f&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0:c:f;c=J[((((c|0)>=255?255:c)<< +2)+a|0)+132>>2];if(c){f=i-J[b>>2]|0;H[f+J[b+12>>2]|0]=c;e=J[b+28>>2];d:{if((f|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=L[e+2>>1]+1;break d}c=e+8|0;J[b+28>>2]=c;k=J[b>>2];I[e+10>>1]=1;I[e+8>>1]=f+k;J[e+12>>2]=f+J[b+12>>2];e=c}J[b+4>>2]=f}i=i+1|0}e:{if(l)break e;f=J[d>>2];if((f|0)<=(i|0))break e;c=j<<9>>9;d=c>>31;c=(c^d)-d|0;d=c&511;d=J[a+1156>>2]==1?d>>>0>256?512-d|0:d:c;d=J[((((d|0)>=255?255:d)<<2)+a|0)+132>>2];if(!d)break e;c=i-J[b>>2]|0;f=f-i|0;Ac(c+J[b+12>>2]|0,d,f);e=J[b+28>>2];f:{if((c|0)==(J[b+4>>2]+ +1|0)){I[e+2>>1]=f+L[e+2>>1];break f}d=e+8|0;J[b+28>>2]=d;i=J[b>>2];I[e+10>>1]=f;I[e+8>>1]=c+i;J[e+12>>2]=c+J[b+12>>2];e=d}J[b+4>>2]=(c+f|0)-1}if(h)continue;break}d=J[b+20>>2];if((d|0)!=(e|0))break b}e=J[a+1176>>2];g=e+1|0;J[a+1176>>2]=g;if((e|0)>2])continue;break a}break}Xf(b,J[a+1176>>2]);m=1;J[a+1176>>2]=J[a+1176>>2]+1}return m}function xg(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;g=J[a+1176>>2];a:{if((g|0)>J[a+92>>2])break a;d=J[b+20>>2];while(1){b:{J[b+28>>2]=d;J[b+4>>2]=2147483632; +e=J[a+44>>2]+(g-J[a+84>>2]<<3)|0;h=J[e+4>>2];if(h){g=J[a+32>>2]+(J[e>>2]<<2)|0;j=0;e=d;while(1){d=J[g>>2];j=J[d+8>>2]+j|0;k=J[d+12>>2];i=J[d>>2];c=h-1|0;c:{if(!c){l=1;h=0;break c}f=((h<<2)+g|0)-4|0;while(1){h=g+4|0;d=J[g+4>>2];g=J[d>>2];l=(g|0)==(i|0);if((g|0)!=(i|0)){g=h;h=c;break c}j=J[d+8>>2]+j|0;k=J[d+12>>2]+k|0;g=h;c=c-1|0;if(c)continue;break}g=f;h=0}if(k){f=(j<<9)-k>>9;c=f>>31;f=(c^f)-c|0;c=f&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0:c:f;c=J[((((c|0)>=255?255:c)<<2)+a|0)+132>>2];if(c){f=i-J[b>> +2]|0;H[f+J[b+12>>2]|0]=c;e=J[b+28>>2];d:{if((f|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=L[e+2>>1]+1;break d}c=e+8|0;J[b+28>>2]=c;k=J[b>>2];I[e+10>>1]=1;I[e+8>>1]=f+k;J[e+12>>2]=f+J[b+12>>2];e=c}J[b+4>>2]=f}i=i+1|0}e:{if(l)break e;f=J[d>>2];if((f|0)<=(i|0))break e;c=j<<9>>9;d=c>>31;c=(c^d)-d|0;d=c&511;d=J[a+1156>>2]==1?d>>>0>256?512-d|0:d:c;d=J[((((d|0)>=255?255:d)<<2)+a|0)+132>>2];if(!d)break e;c=i-J[b>>2]|0;f=f-i|0;Ac(c+J[b+12>>2]|0,d,f);e=J[b+28>>2];f:{if((c|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=f+L[e+2>>1];break f}d= +e+8|0;J[b+28>>2]=d;i=J[b>>2];I[e+10>>1]=f;I[e+8>>1]=c+i;J[e+12>>2]=c+J[b+12>>2];e=d}J[b+4>>2]=(c+f|0)-1}if(h)continue;break}d=J[b+20>>2];if((d|0)!=(e|0))break b}e=J[a+1176>>2];g=e+1|0;J[a+1176>>2]=g;if((e|0)>2])continue;break a}break}Wf(b,J[a+1176>>2]);m=1;J[a+1176>>2]=J[a+1176>>2]+1}return m}function wg(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;g=J[a+1176>>2];a:{if((g|0)>J[a+92>>2])break a;d=J[b+20>>2];while(1){b:{J[b+28>>2]=d;J[b+4>>2]=2147483632;e=J[a+44>>2]+(g-J[a+84>>2]<<3)| +0;h=J[e+4>>2];if(h){g=J[a+32>>2]+(J[e>>2]<<2)|0;j=0;e=d;while(1){d=J[g>>2];j=J[d+8>>2]+j|0;k=J[d+12>>2];i=J[d>>2];c=h-1|0;c:{if(!c){l=1;h=0;break c}f=((h<<2)+g|0)-4|0;while(1){h=g+4|0;d=J[g+4>>2];g=J[d>>2];l=(g|0)==(i|0);if((g|0)!=(i|0)){g=h;h=c;break c}j=J[d+8>>2]+j|0;k=J[d+12>>2]+k|0;g=h;c=c-1|0;if(c)continue;break}g=f;h=0}if(k){f=(j<<9)-k>>9;c=f>>31;f=(c^f)-c|0;c=f&511;c=J[a+1156>>2]==1?c>>>0>256?512-c|0:c:f;c=J[((((c|0)>=255?255:c)<<2)+a|0)+132>>2];if(c){f=i-J[b>>2]|0;H[f+J[b+12>>2]|0]=c;e=J[b+ +28>>2];d:{if((f|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=L[e+2>>1]+1;break d}c=e+8|0;J[b+28>>2]=c;k=J[b>>2];I[e+10>>1]=1;I[e+8>>1]=f+k;J[e+12>>2]=f+J[b+12>>2];e=c}J[b+4>>2]=f}i=i+1|0}e:{if(l)break e;f=J[d>>2];if((f|0)<=(i|0))break e;c=j<<9>>9;d=c>>31;c=(c^d)-d|0;d=c&511;d=J[a+1156>>2]==1?d>>>0>256?512-d|0:d:c;d=J[((((d|0)>=255?255:d)<<2)+a|0)+132>>2];if(!d)break e;c=i-J[b>>2]|0;f=f-i|0;Ac(c+J[b+12>>2]|0,d,f);e=J[b+28>>2];f:{if((c|0)==(J[b+4>>2]+1|0)){I[e+2>>1]=f+L[e+2>>1];break f}d=e+8|0;J[b+28>>2]=d;i=J[b>> +2];I[e+10>>1]=f;I[e+8>>1]=c+i;J[e+12>>2]=c+J[b+12>>2];e=d}J[b+4>>2]=(c+f|0)-1}if(h)continue;break}d=J[b+20>>2];if((d|0)!=(e|0))break b}e=J[a+1176>>2];g=e+1|0;J[a+1176>>2]=g;if((e|0)>2])continue;break a}break}Vf(b,J[a+1176>>2]);m=1;J[a+1176>>2]=J[a+1176>>2]+1}return m}function Fj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return;a:{if(!b|J[b+16>>2]>131082)break a;e=J[a+16>>2];if(e){c=J[b+8>>2];b:{while(1){g=J[((d<<2)+a|0)+20>>2];f=J[g>>2];if(Ic(J[f+8>>2],c)){d=d+1|0;if((d|0)!=(e|0))continue; +break b}break}if(J[b+12>>2]<=J[f+12>>2])break a;X7(a,g);e=J[a+16>>2]}if(e>>>0>31)break a}e=0;g=J[a>>2];c=J[b+4>>2];c:{if((c|0)<=0){if(!c)break c;break a}e=kc[J[g+4>>2]](g,c)|0;if(!e)return;Ac(e,0,c)}J[e+8>>2]=g;J[e+4>>2]=a;J[e>>2]=b;d:{c=b;d=J[c>>2];if(d&2){c=64;f=J[e+4>>2];h=J[f>>2];d=kc[J[h+4>>2]](h,12)|0;e:{if(!d)break e;H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;H[d+4|0]=0;H[d+5|0]=0;H[d+6|0]=0;H[d+7|0]=0;H[d+8|0]=0;H[d+9|0]=0;H[d+10|0]=0;H[d+11|0]=0;i=J[e>>2];J[e+12>>2]=i;c=J[i+36>>2];J[e+16>> +2]=c;f:{g:{if((c|0)!=1869968492)break g;c=J[J[i+56>>2]+4>>2];if(!c)break g;c=kc[c|0](h,e+52|0)|0;if(c)break f;J[e+56>>2]=J[J[i+56>>2]+16>>2];J[e+60>>2]=J[i+40>>2]}J[d+8>>2]=e;c=J[f+152>>2];J[d>>2]=c;J[d+4>>2]=0;J[(c?c+4|0:f+148|0)>>2]=d;J[f+152>>2]=d;c=J[f+148>>2];h:{if(c)while(1){d=J[c+8>>2];if(J[d+16>>2]==1869968492)break h;c=J[c+4>>2];if(c)continue;break}d=0}J[f+156>>2]=d;c=0;break e}kc[J[h+8>>2]](h,d)}if(c)break d;c=J[e>>2];d=J[c>>2]}if(d&4)J[a+160>>2]=e;if(d&1)J[e+12>>2]=c;b=J[b+24>>2];if(b)if(kc[b| +0](e)|0)break d;b=J[a+16>>2];J[a+16>>2]=b+1;J[((b<<2)+a|0)+20>>2]=e;return}i:{if(!(K[J[e>>2]]&2))break i;a=J[e+12>>2];if(!a|J[a+36>>2]!=1869968492)break i;b=J[e+52>>2];if(!b)break i;kc[J[J[a+56>>2]+20>>2]](b)}kc[J[g+8>>2]](g,e)}}function VZa(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;k=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<-1)break a;f=J[a+28>>2];l=k-f|0;if((l|0)<=0)break a;i=c-4|0;g=e+2|0;m=g&3;b=0;if(e+1>>>0>=3){n=g&-4;g=0;while(1){e=b<<2;h= +f+J[e+i>>2]|0;Ac(h,K[h-1|0],l);h=f+J[i+(e|4)>>2]|0;Ac(h,K[h-1|0],l);h=f+J[i+(e|8)>>2]|0;Ac(h,K[h-1|0],l);e=f+J[i+(e|12)>>2]|0;Ac(e,K[e-1|0],l);b=b+4|0;g=g+4|0;if((n|0)!=(g|0))continue;break}}if(m)while(1){e=f+J[i+(b<<2)>>2]|0;Ac(e,K[e-1|0],l);b=b+1|0;j=j+1|0;if((m|0)!=(j|0))continue;break}e=J[a+272>>2]}b:{if((e|0)<=0)break b;b=J[a+228>>2];m=b<<6;n=65536-(b<<9)|0;i=0;l=k-2|0;if(!l)while(1){f=i<<2;b=J[f+d>>2];e=c+f|0;f=J[e>>2];j=K[f|0];i=i+1|0;g=J[(i<<2)+c>>2];l=J[e-4>>2];k=K[g|0]+K[l|0]|0;e=j+k|0; +h=P(j,n);j=K[f+1|0]+(K[g+1|0]+K[l+1|0]|0)|0;H[b|0]=(h+P(m,j+(e+k|0)|0)|0)+32768>>>16;g=b;b=K[f+1|0];H[g+1|0]=(P(b,n)+P(m,(e+(j<<1)|0)-b|0)|0)+32768>>>16;if(J[a+272>>2]>(i|0))continue;break b}while(1){f=i<<2;b=J[f+d>>2];e=c+f|0;f=J[e>>2];k=K[f|0];i=i+1|0;g=J[(i<<2)+c>>2];o=J[e-4>>2];h=K[g|0]+K[o|0]|0;j=k+h|0;e=K[f+1|0]+(K[g+1|0]+K[o+1|0]|0)|0;H[b|0]=(P(k,n)+P(m,e+(h+j|0)|0)|0)+32768>>>16;k=b+1|0;b=f+1|0;h=g+1|0;o=o+1|0;g=l;while(1){f=e;j=e+j|0;e=K[b|0];j=j-e|0;p=P(e,n);e=K[b+1|0]+(K[h+1|0]+K[o+1|0]| +0)|0;H[k|0]=(p+P(m,j+e|0)|0)+32768>>>16;k=k+1|0;h=h+1|0;o=o+1|0;b=b+1|0;j=f;g=g-1|0;if(g)continue;break}b=K[b|0];H[k|0]=(P(b,n)+P(m,(f+(e<<1)|0)-b|0)|0)+32768>>>16;if(J[a+272>>2]>(i|0))continue;break}}}function qwa(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;h=fc-1056|0;fc=h;a:{b:{c:{d:{if(!b){a=Qc(h,2391804,2385793,1355,2424897,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break a}i=L[b+8>>1];e=i+d|0;g=L[a+8>>1];j=(d|0)>0?d:0;l=((e|0)< +(g|0)?e:g)-j|0;if((l|0)<=0)break b;e=L[b+10>>1]+c|0;g=L[a+10>>1];n=(c|0)>0?c:0;m=((e|0)<(g|0)?e:g)-n|0;if((m|0)<=0)break b;f=L[b+16>>1];g=f-1|0;e:{if(!g)break e;e=0;if((f|0)!=2){k=g&-2;f=0;while(1){J[(e<<2)+h>>2]=(e<<16>>>0)/(g>>>0);o=e|1;J[(o<<2)+h>>2]=(o<<16>>>0)/(g>>>0);e=e+2|0;f=f+2|0;if((k|0)!=(f|0))continue;break}}if(!(g&1))break e;J[(e<<2)+h>>2]=(e<<16>>>0)/(g>>>0)}if(!J[b+20>>2]){_i(b);i=L[b+8>>1]}e=L[b+12>>1];k=L[b+14>>1];if(i){f=b+20|0;break c}f=2743556;if(J[685890]>=(e+k|0))break c;a=Qc(h+ +1032|0,2393468,2393871,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break a}B()}if((l|0)<=0|(m|0)<=0)break b;b=j;j=L[a+12>>1];i=(P(P(b,j),3)+(L[a+8>>1]?J[a+16>>2]:0)|0)+P(n,3)|0;b=((e+J[f>>2]|0)-P(k,d>>31&d)|0)-(c>>31&c)|0;c=0;while(1){e=0;while(1){d=K[b+e|0];f:{if(!d)break f;if(d>>>0>=g>>>0){a=P(e,3)+i|0;H[a+2|0]=0;H[a|0]=0;H[a+1|0]=0;break f}a=P(e,3)+i|0;f=K[a|0];d=J[(d<<2)+h>>2];H[a|0]=f-(P(d,f)>>>16|0);f=K[a+1|0];H[a+1|0]=f-(P(d,f)>>>16|0);f=a;a=K[a+2|0]; +H[f+2|0]=a-(P(a,d)>>>16|0)}e=e+1|0;if((m|0)!=(e|0))continue;break}b=b+k|0;i=P(j,3)+i|0;c=c+1|0;if((l|0)!=(c|0))continue;break}}fc=h+1056|0;return}b=Z()|0;Kc(a);ba(b|0);B()}function H0a(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;f=fc-32|0;fc=f;a:{b:{c:{d:{e=J[a+8>>2];i=J[a+12>>2];if((e|0)==(i|0))break d;g=K[b+11|0];l=g<<24>>24;m=(l|0)<0?J[b+4>>2]:g;if((l|0)>=0)while(1){j=K[e+11|0];k=j<<24>>24;g=(k|0)<0;h=J[e+4>>2];e:{if(((g?h:j)|0)!=(m|0))break e;if(!g){g= +b;h=e;if(!k)break d;while(1){if(K[h|0]!=K[g|0])break e;g=g+1|0;h=h+1|0;j=j-1|0;if(j)continue;break}break d}if(!h)break d;if(!dd(J[e>>2],b,h))break d}e=e+20|0;if((i|0)!=(e|0))continue;break c}k=J[b>>2];while(1){j=K[e+11|0];n=j<<24>>24;g=(n|0)<0;h=J[e+4>>2];f:{if(((g?h:j)|0)!=(m|0))break f;if(!g){g=k;h=e;if(!n)break d;while(1){if(K[h|0]!=K[g|0])break f;g=g+1|0;h=h+1|0;j=j-1|0;if(j)continue;break}break d}if(!h)break d;if(!dd(J[e>>2],k,h))break d}e=e+20|0;if((i|0)!=(e|0))continue;break}break c}if((e| +0)!=(i|0))break b;l=K[b+11|0]}c=xc(vc(d),c,d);g:{if(l<<24>>24>=0){J[f+16>>2]=J[b+8>>2];e=J[b+4>>2];J[f+8>>2]=J[b>>2];J[f+12>>2]=e;break g}PF(f+8|0,J[b>>2],J[b+4>>2]);i=J[a+12>>2]}J[f+24>>2]=d;J[f+20>>2]=c;if(M[a+16>>2]>i>>>0){b=J[f+12>>2];J[i>>2]=J[f+8>>2];J[i+4>>2]=b;J[i+8>>2]=J[f+16>>2];b=J[f+24>>2];J[i+12>>2]=J[f+20>>2];J[i+16>>2]=b;J[a+12>>2]=i+20;break a}J[699344]=0;da(3198,a+8|0,f+8|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[f+19|0]>=0)break a;uc(J[f+8>>2]);break a}a=Z()|0;if(H[f+19|0]<0)uc(J[f+ +8>>2]);ba(a|0);B()}a=J[e+12>>2];if((a|0)!=(c|0)){if(a){uc(a);J[e+12>>2]=0}o=e,p=xc(vc(d),c,d),J[o+12>>2]=p}J[e+16>>2]=d}fc=f+32|0}function FSa(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;l=fc-16|0;fc=l;o=J[a+164>>2];a:{if(!o){J[d>>2]=0;J[g>>2]=0;J[i>>2]=0;J[i+4>>2]=0;J[h>>2]=0;J[h+4>>2]=0;a=1;break a}m=J[o+16>>2];b:{c:{if(!m|(c|0)<=0)break c;while(1){p=K[b+n|0];q=p|q<<8;n=n+1|0;m=(p<<3)+m|0;if(!J[m>>2]){J[l+12>>2]=q;J[l+8>>2]= +n;b=J[m+4>>2];break b}m=J[m+4>>2];if(!m)break c;if((c|0)>(n|0))continue;break}}if(!(!J[o+8>>2]|(c|0)<2)){J[l+8>>2]=2;b=K[b+1|0]|K[b|0]<<8;J[l+12>>2]=b;break b}J[l+8>>2]=1;J[l+12>>2]=K[b|0];b=0}J[d>>2]=b;c=J[a+168>>2];if(c)c=Al(c,J[a+172>>2]?J[l+12>>2]:b,e,f);else c=0;J[g>>2]=c;if(!(!J[J[693464]+380>>2]|(c|(f|0)<=0))){J[e>>2]=J[d>>2];J[g>>2]=1}d:{if(!J[J[a+164>>2]+12>>2]){d=J[a+204>>2];e:{if((d|0)>0){e=J[a+200>>2];g=0;while(1){c=e+(g<<4)|0;if(!(b>>>0>2]|b>>>0>M[c+4>>2])){a=c+8|0;break e}g=g+1| +0;if((d|0)!=(g|0))continue;break}}a=a+176|0}O[h>>3]=O[a>>3];J[k>>2]=0;J[k+4>>2]=0;J[j>>2]=0;J[j+4>>2]=0;break d}d=J[a+212>>2];f:{if((d|0)>0){e=J[a+208>>2];g=0;while(1){c=e+(g<<5)|0;if(!(b>>>0>2]|b>>>0>M[c+4>>2])){O[i>>3]=O[c+8>>3];O[j>>3]=O[c+16>>3];a=c+24|0;break f}g=g+1|0;if((d|0)!=(g|0))continue;break}}O[i>>3]=O[a+184>>3];d=J[a+204>>2];g:{if((d|0)>0){e=J[a+200>>2];g=0;while(1){c=e+(g<<4)|0;if(!(b>>>0>2]|b>>>0>M[c+4>>2])){b=c+8|0;break g}g=g+1|0;if((d|0)!=(g|0))continue;break}}b=a+176| +0}O[j>>3]=O[b>>3]*.5;a=a+192|0}O[k>>3]=O[a>>3];i=h}J[i>>2]=0;J[i+4>>2]=0;a=J[l+8>>2]}fc=l+16|0;return a|0}function DRa(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,u=0,v=0,w=0,x=0;p=fc-128|0;fc=p;f=Ac(a,0,256);while(1){a:{k=f;d=J[(l<<2)+b>>2]+c|0;o=K[d|0];e=K[d+5|0];m=o-e|0;g=K[d+1|0];i=K[d+4|0];h=g-i|0;j=K[d+2|0];d=K[d+3|0];n=j-d|0;J[f+12>>2]=m-(h+n|0)<<2;e=e+o|0;d=d+j|0;J[f+8>>2]=P(e-d|0,10033)+1024>>11;e=d+e|0;d=g+i|0;J[f>>2]=(e+d<<2)-3072;J[f+ +16>>2]=P(e-(d<<1)|0,5793)+1024>>11;d=P(m+n|0,2998)+1024>>11;J[f+20>>2]=d+(n-h<<2);J[f+4>>2]=d+(h+m<<2);d=l-7|0;l=l+1|0;f=p;b:switch(d|0){case 0:continue;case 4:break a;default:break b}f=k+32|0;continue}break}while(1){q=J[f+64>>2];r=J[a+128>>2];s=J[a+192>>2];t=J[a+160>>2];c=s+t|0;u=J[f+96>>2];v=J[a>>2];b=u+v|0;w=c+b|0;l=J[f>>2];m=J[a+96>>2];h=l+m|0;n=J[f+32>>2];o=J[a+64>>2];g=n+o|0;i=h+g|0;J[a+128>>2]=P(w-i|0,8918)+16384>>15;j=b-c|0;e=J[a+32>>2];d=e+q|0;k=J[a+224>>2];c=k+r|0;b=d-c|0;g=g-h|0;J[a+192>> +2]=P(j-(b+g|0)|0,7282)+16384>>15;J[a+64>>2]=(P(b-g|0,7282)+P(g+j|0,9947)|0)+16384>>15;J[a>>2]=P((c+(d+i|0)|0)+w|0,7282)+16384>>15;b=r-k|0;c=e-q|0;e=P(b+c|0,3941);d=e+P(b,-13455)|0;h=v-u|0;g=m-l|0;i=t-s|0;j=o-n|0;J[a+96>>2]=((d+P(h-g|0,9514)|0)+P(i+j|0,-3941)|0)+16384>>15;b=P(g+j|0,-1344);k=P(g+h|0,6269);c=e+P(c,5573)|0;J[a+224>>2]=(((b+(k+P(g,5285)|0)|0)-c|0)+P(i,-8170)|0)+16384>>15;e=b;b=P(h+j|0,8170)+16384|0;J[a+160>>2]=((e+(b+P(j,-17036)|0)|0)-d|0)+P(i,6269)>>15;J[a+32>>2]=(c+(k+(b+P(h,-4229)| +0)|0)|0)+P(i,1344)>>15;f=f+4|0;a=a+4|0;x=x+1|0;if((x|0)!=6)continue;break}fc=p+128|0}function jca(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;f=L[a+84>>1];g=f>>>3|0;h=(c>>>0)/(g>>>0)|0;d=J[J[a+584>>2]+4>>2];i=Dc(c);a:{if(!i)break a;Ue(i,b,c);if((h|0)>0){a=g>>>0<=1?1:g;l=a&8190;m=a&1;n=f>>>0<16;while(1){f=b+e|0;j=i+P(e,g)|0;a=0;k=0;if(!n)while(1){H[f+P(h,g+(a^-1)|0)|0]=K[a+j|0];H[f+P(h,g+(a^-2)|0)|0]=K[(a|1)+j|0];a=a+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}if(m)H[f+ +P(h,g+(a^-1)|0)|0]=K[a+j|0];e=e+1|0;if((h|0)>(e|0))continue;break}}uc(i);if((c|0)<=(d|0))break a;a=((d^-1)+b|0)+c|0;if((d|0)>=5){g=d-4|0;h=d&3;i=d-5>>>0>2;while(1){b:{c:{d:{e:{f:{g:switch(d|0){case 1:break c;case 2:break d;case 3:break e;case 4:break f;case 0:break b;default:break g}e=0;b=g;if(h)while(1){f=a+d|0;H[f|0]=K[f|0]-K[a|0];b=b-1|0;a=a-1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(!i)break f;while(1){e=a+d|0;H[e|0]=K[e|0]-K[a|0];e=a-1|0;f=e+d|0;H[f|0]=K[f|0]-K[e|0];e=a-2|0;f=e+d|0;H[f|0]= +K[f|0]-K[e|0];e=a-3|0;f=e+d|0;H[f|0]=K[f|0]-K[e|0];a=a-4|0;e=(b|0)>4;b=b-4|0;if(e)continue;break}}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0}c=c-d|0;if((d|0)<(c|0))continue;break}break a}while(1){h:switch(d|0){default:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;case 3:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;case 2:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;case 1:b=a+d|0;H[b|0]=K[b|0]-K[a|0];a=a-1|0;break;case 0:break h}c= +c-d|0;if((d|0)<(c|0))continue;break}}}function Tqb(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;g=fc-32|0;fc=g;if(!J[692584])i=2770336,j=EM(),J[i>>2]=j;e=vc(24);J[e>>2]=348728;J[e+4>>2]=1;J[e+20>>2]=1;d=e+12|0;J[d>>2]=0;J[d+4>>2]=0;J[e+8>>2]=d;d=J[693078];if(!((d|0)==(e|0)|!d))kc[J[J[d>>2]+12>>2]](d)|0;J[693078]=e;e=vc(28);d=J[692584];J[e>>2]=d;J[e+20>>2]=-1;f=J[J[d>>2]+8>>2];J[699344]=0;_(f|0,d|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{if((d|0)==1)break c;d=J[e>>2];f=J[J[d>>2]+52>>2];J[699344]= +0;d=_(f|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[e+4>>2]=d;J[699344]=0;d=pa(1619)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;f=J[e>>2];h=J[J[f>>2]+24>>2];J[699344]=0;f=_(h|0,f|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break c;h=J[J[d>>2]+24>>2];J[699344]=0;da(h|0,d|0,f|0);f=J[699344];J[699344]=0;if((f|0)==1)break c;J[g+16>>2]=8;f=J[J[d>>2]+20>>2];J[699344]=0;da(f|0,d|0,g+16|0);f=J[699344];J[699344]=0;if((f|0)==1)break c;f=J[e+4>>2];h=J[J[f>>2]+68>>2];J[699344]=0;da(h|0,f|0,d|0);d= +J[699344];J[699344]=0;if((d|0)==1)break c;H[e+24|0]=0;J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[g+16>>2]=0;H[g+27|0]=0;if(c){d=Yc(c);J[699344]=0;ca(1618,g+4|0,c|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;J[g+24>>2]=J[g+12>>2];c=J[g+8>>2];J[g+16>>2]=J[g+4>>2];J[g+20>>2]=c}J[699344]=0;ha(1620,e|0,a|0,b|0,g+16|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;if(H[g+27|0]<0)uc(J[g+16>>2]);fc=g+32|0;return e|0}a=Z()|0;uc(e);ba(a|0);B()}ba(Z()|0);B()}a=Z()|0;if(H[g+27|0]<0)uc(J[g+16>>2]);ba(a|0); +B()}function Pka(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;if((c|0)>0){k=J[a+12>>2];while(1){h=J[a+4>>2];i=.210526316;j=.473684211;e=+N[b+4>>2];d=32767;a:{if(e>=1.8371976E19)break a;d=65535;if(e<=-1.8371976E19)break a;if(e>5.4136769E-20){e=ct(e)*1.4426950408889634+64;if(h){d=vEb(J[698644],J[698645],1284865837,1481765933);f=jc;d=d+1|0;f=d?f:f+1|0;J[698644]=d;J[698645]=f;e=e*256+ +(f>>>1|0)*4.656612875245797E-10+-.5}else e=e*256;if(R(e)<2147483648){d=~~e;break a}d=-2147483648; +break a}d=0;if(!(e<-5.4136769E-20))break a;e=ct(-e)*1.4426950408889634+64;if(h){d=vEb(J[698644],J[698645],1284865837,1481765933);f=jc;d=d+1|0;f=d?f:f+1|0;J[698644]=d;J[698645]=f;e=e*256+ +(f>>>1|0)*4.656612875245797E-10+-.5}else e=e*256;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}d=d|-32768}c:{d:{if(!d)break d;m=+N[b+4>>2];e=+N[b>>2];l=+N[b+8>>2]*3+(m*15+e);if(l<=0)break d;j=m*9/l;i=e*4/l;f=0;if(i<=0)break c}if(h){f=vEb(J[698644],J[698645],1284865837,1481765933);g=jc;f=f+1|0;g=f?g:g+1|0;J[698644]= +f;J[698645]=g;e=i*410+ +(g>>>1|0)*4.656612875245797E-10+-.5}else e=i*410;if(R(e)<2147483648){f=~~e;break c}f=-2147483648}f=(f>>>0>=255?255:f)<<8|d<<16;d=0;e:{if(j<=0)break e;if(h){d=vEb(J[698644],J[698645],1284865837,1481765933);g=jc;d=d+1|0;g=d?g:g+1|0;J[698644]=d;J[698645]=g;e=j*410+ +(g>>>1|0)*4.656612875245797E-10+-.5}else e=j*410;if(R(e)<2147483648){d=~~e;break e}d=-2147483648}J[k>>2]=f|(d>>>0>=255?255:d);b=b+12|0;k=k+4|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}}}function PZa(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;n=P(J[b+36>>2],J[b+28>>2]);b=J[a+412>>2]+J[b+4>>2]|0;k=K[b+92|0];m=K[b+102|0];e=J[a+272>>2];a:{if((e|0)<=0)break a;f=J[a+28>>2];h=P(k,n)-f|0;if((h|0)<=0)break a;b=0;if(e>>>0>=4){o=e&-4;while(1){i=b<<2;g=f+J[i+c>>2]|0;Ac(g,K[g-1|0],h);g=f+J[(i|4)+c>>2]|0;Ac(g,K[g-1|0],h);g=f+J[(i|8)+c>>2]|0;Ac(g,K[g-1|0],h);i=f+J[(i|12)+c>>2]|0;Ac(i,K[i-1|0],h);b=b+4|0;j=j+4|0;if((o|0)!=(j|0))continue;break}}e=e&3;if(e)while(1){j= +f+J[(b<<2)+c>>2]|0;Ac(j,K[j-1|0],h);b=b+1|0;l=l+1|0;if((e|0)!=(l|0))continue;break}e=J[a+272>>2]}b:{if(!n|(e|0)<=0)break b;h=P(k,m);i=h>>>1|0;if(m){if(k){s=k&248;r=k&7;l=0;t=k>>>0<8;o=0;while(1){u=(l<<2)+c|0;g=J[(o<<2)+d>>2];p=0;q=0;while(1){e=0;j=0;while(1){b=J[(j<<2)+u>>2]+p|0;f=0;if(!t)while(1){e=K[b+7|0]+(K[b+6|0]+(K[b+5|0]+(K[b+4|0]+(K[b+3|0]+(K[b+2|0]+(K[b+1|0]+(K[b|0]+e|0)|0)|0)|0)|0)|0)|0)|0;b=b+8|0;f=f+8|0;if((s|0)!=(f|0))continue;break}f=0;if(r)while(1){e=K[b|0]+e|0;b=b+1|0;f=f+1|0;if((r| +0)!=(f|0))continue;break}j=j+1|0;if((m|0)!=(j|0))continue;break}H[g|0]=(e+i|0)/(h|0);p=k+p|0;g=g+1|0;q=q+1|0;if((q|0)!=(n|0))continue;break}o=o+1|0;l=m+l|0;if((l|0)>2])continue;break}break b}c=(i>>>0)/(h>>>0)|0;e=0;b=0;while(1){Ac(J[(b<<2)+d>>2],c,n);b=b+1|0;e=e+m|0;if((e|0)>2])continue;break}break b}c=(i>>>0)/(h>>>0)|0;e=0;b=0;while(1){Ac(J[(b<<2)+d>>2],c,n);b=b+1|0;e=e+m|0;if((e|0)>2])continue;break}}}function tub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h= +0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if(!(1<>>0<=10:0)){Jc(a,1028,0,0);return 1028}H[a+302|0]=1;f=K[d|0]|K[d+1|0]<<8;i=f<<8|f>>>8;I[a+1052>>1]=i;f=K[d+2|0]|K[d+3|0]<<8;j=f<<8|f>>>8;I[a+1054>>1]=j;f=K[d+4|0]|K[d+5|0]<<8;k=f<<8|f>>>8;I[a+1056>>1]=k;b:{c:{d:{if(c>>>0<=6){H[a+1058|0]=0;break d}g=K[d+6|0];H[a+1058|0]=g;if((c|0)!=7)break c}I[a+1060>>1]=0;h=0;break b}f=K[d+7|0]|K[d+8|0]<<8;l=f<<8|f>>>8;I[a+1060>>1]=l;if(c>>> +0<10){m=1;h=0;break b}n=1;m=1;h=K[d+9|0]}H[a+1062|0]=h;f=0;e:{if(!K[a+114|0])break e;i=i&65535;j=j&65535;k=k&65535;l=l&65535;o=h&255;f=kc[J[a+152>>2]](40)|0;if(!f){Jc(a,1,0,0);f=1;break e}J[f+4>>2]=1050;J[f>>2]=1051;h=J[a+700>>2];f:{if(h){J[h+8>>2]=f;break f}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=h;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+38|0]=o;I[f+36>>1]=l;H[f+34|0]=g;I[f+32>>1]=k;I[f+30>>1]=j; +I[f+28>>1]=i;f=0}g=f;g:{if(g)break g;h:{if(!K[a+112|0])break h;g=kc[J[b+4>>2]](a,b,e)|0;if(g)break g;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;b=K[d+2|0]|K[d+3|0]<<8;I[a+34>>1]=b<<8|b>>>8;b=K[d+4|0]|K[d+5|0]<<8;I[a+36>>1]=b<<8|b>>>8;if(c>>>0>=7)H[a+38|0]=K[d+6|0];if(m){b=K[d+7|0]|K[d+8|0]<<8;I[a+40>>1]=b<<8|b>>>8}if(!n)break h;H[a+42|0]=K[d+9|0]}g=0}return g|0}Jc(a,1029,0,0);return 1029}function qBa(a){a=a|0;var b=0,c=0,d=0,e=0;e=fc-16|0;fc=e;J[699344]=0;b=pa(5383)|0;d=J[699344];J[699344]= +0;a:{b:{c:{d:{e:{f:{if((d|0)==1)break f;J[699344]=0;ca(5469,e|0,b|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[e>>2];if(!b)break d;J[699344]=0;d=aa(5149,e+8|0,2415713)|0;c=J[699344];J[699344]=0;g:{h:{if((c|0)!=1){c=J[J[b>>2]+8>>2];J[699344]=0;b=aa(c|0,b|0,d|0)|0;c=J[699344];J[699344]=0;i:{if((c|0)!=1){wc(d);if(!b)break i;J[699344]=0;$(5470,J[e>>2]);b=J[699344];J[699344]=0;if((b|0)!=1)break i;b=ea(2423616)|0;break h}b=ea(2423616)|0;c=gc;wc(d);break g}a=J[e>>2];J[e>>2]=0;if(!a)break d;J[699344]= +0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}b=ea(2423616)|0}c=gc}zc(e);break e}b=ea(2423616)|0;c=gc}if((sa(2423616)|0)!=(c|0))break b;d=oa(b|0)|0;J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;j:{k:{l:{m:{if((c|0)!=1){J[699344]=0;d=J[d+4>>2];c=J[699344];J[699344]=0;if((c|0)==1)break m;J[699344]=0;d=aa(5149,e|0,(d?d:2389698)|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break m;c=J[J[b>>2]+ +20>>2];J[699344]=0;ga(c|0,b|0,a|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break l;wc(d);break j}b=ea(0)|0;break k}b=ea(0)|0;break k}b=ea(0)|0;wc(d)}oa(b|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break c}ta()}fc=e+16|0;return}b=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}ba(b|0);B()}ea(0)|0;Bc();B()}function fx(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=fc-16|0;fc=g;a:{if(!b)break a;f=a?J[a+80>>2]:f;e=kc[J[663195]](28)|0;if(e){J[e>>2]=0;J[e+4>> +2]=0;J[e+24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=J[b>>2];J[e+4>>2]=J[b+4>>2];b:{c:{d:{e:{c=J[b+8>>2];if(c){if(!f)break e;h=e,i=te(f,c,-1),J[h+8>>2]=i}c=J[b+24>>2];if(!c)break b;if(!f)break d;c=te(f,c,-1);break c}h=e,i=ff(c),J[h+8>>2]=i;c=J[b+24>>2];if(!c)break b}c=ff(c)}J[e+24>>2]=c}c=J[b+12>>2];f:{if(!c){c=J[e+12>>2];break f}c=fx(a,c);J[e+12>>2]=c}if(c)J[c+20>>2]=e;g:{b=J[b+16>>2];h:{if(!b)break h;if(!f){c=e;while(1){d=kc[J[663195]](28)|0;if(!d)break g;J[d>>2]=0;J[d+4>> +2]=0;J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2];J[c+16>>2]=d;c=J[b+8>>2];if(c)h=d,i=ff(c),J[h+8>>2]=i;c=J[b+24>>2];if(c)h=d,i=ff(c),J[h+24>>2]=i;c=J[b+12>>2];i:{if(!c){c=J[d+12>>2];break i}c=fx(a,c);J[d+12>>2]=c}if(c)J[c+20>>2]=e;c=d;b=J[b+16>>2];if(b)continue;break}break h}c=e;while(1){d=kc[J[663195]](28)|0;if(!d)break g;J[d>>2]=0;J[d+4>>2]=0;J[d+24>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=J[b>>2];J[d+4>>2]=J[b+4>>2]; +J[c+16>>2]=d;c=J[b+8>>2];if(c)h=d,i=te(f,c,-1),J[h+8>>2]=i;c=J[b+24>>2];if(c)h=d,i=te(f,c,-1),J[h+24>>2]=i;c=J[b+12>>2];j:{if(!c){c=J[d+12>>2];break j}c=fx(a,c);J[d+12>>2]=c}if(c)J[c+20>>2]=e;c=d;b=J[b+16>>2];if(b)continue;break}}c=e;break a}c=e}J[g>>2]=17054;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,g)}fc=g+16|0;return c}function c2(a,b,c,d){var e=0,f=0,g=0;g=fc-32|0;fc=g;a:{if(!(!a|J[a+4>>2]==1)){if((d|0)!=1)break a;a=J[a+32>>2];if(a){if(!c)break a;b=J[a+80>>2];while(1){if(!b)break a;d=J[b+16>>2];if(d)while(1){if(d+ +20>>>0<=c>>>0&M[d+4>>2]>=c>>>0)break a;d=J[d>>2];if(d)continue;break}b=J[b+20>>2];if(b)continue;break}}kc[J[663199]](c);break a}e=kc[J[663195]](48)|0;if(!e){b:{if((d|0)!=1)break b;c:{if(!a)break c;a=J[a+32>>2];if(!a)break c;if(!c)break b;d=J[a+80>>2];while(1){if(!d)break b;e=J[d+16>>2];if(e)while(1){if(e+20>>>0<=c>>>0&M[e+4>>2]>=c>>>0)break b;e=J[e>>2];if(e)continue;break}d=J[d+20>>2];if(d)continue;break}}kc[J[663199]](c)}J[g>>2]=13586;e=0;Hc(0,0,0,0,0,2,2,3,13586,0,0,0,32879,g);break a}J[e>>2]=0; +J[e+4>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=2;J[e+20>>2]=a;d:{e:{f:{if(a){f=J[a+32>>2];J[e+36>>2]=b;J[e+32>>2]=f;if(!d)break f;d=c;break d}J[e+36>>2]=b;if(!d)break e;d=c;break d}if(!f)break e;b=J[f+80>>2];if(!b)break e;d=te(b,c,-1);break d}if(!c){d=0;break d}d=c;while(1){b=d;d=d+1|0;if(K[b|0])continue;break}d=0;b=b-c|0;if((b|0)<0)break d;f=kc[J[663198]](b+1|0)|0;if(!f){Hc(0,0,0,0,0,1,2,3,0,0, +0,0,36029,0);break d}d=xc(f,c,b);H[b+d|0]=0}J[e+8>>2]=d;if(a)g:{d=J[a+44>>2];if(!d){J[a+44>>2]=e;break g}while(1){a=d;d=J[d+24>>2];if(d)continue;break}J[a+24>>2]=e;J[e+28>>2]=a}if(!J[693393])break a;a=J[693390];if(!a)break a;kc[a|0](e)}fc=g+32|0;return e}function vca(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;a:{d=J[J[a+584>>2]+4>>2];if((d|0)>=(c|0))break a;c=c-d|0;b:{c:switch(d-3|0){default:if((d|0)>=5)break b;while(1){d:switch(d|0){default:a=b+d|0;H[a|0]=K[b|0]+K[a|0];a=d+(b+1|0)|0;H[a| +0]=K[b+1|0]+K[a|0];b=b+2|0;case 2:a=b+d|0;H[a|0]=K[b|0]+K[a|0];b=b+1|0;case 1:a=b+d|0;H[a|0]=K[b|0]+K[a|0];b=b+1|0;break;case 0:break d}c=c-d|0;if((c|0)>0)continue;break}break a;case 1:a=K[b+3|0];e=K[b+2|0];f=K[b+1|0];d=K[b|0];while(1){d=K[b+4|0]+d|0;H[b+4|0]=d;f=K[b+5|0]+f|0;H[b+5|0]=f;e=K[b+6|0]+e|0;H[b+6|0]=e;a=K[b+7|0]+a|0;H[b+7|0]=a;b=b+4|0;g=(c|0)>4;c=c-4|0;if(g)continue;break}break a;case 0:break c}a=K[b+2|0];e=K[b+1|0];f=K[b|0];while(1){f=K[b+3|0]+f|0;H[b+3|0]=f;e=K[b+4|0]+e|0;H[b+4|0]=e; +a=K[b+5|0]+a|0;H[b+5|0]=a;b=b+3|0;d=(c|0)>3;c=c-3|0;if(d)continue;break}break a}a=d-4|0;g=d&3;i=d-5>>>0>2;while(1){e:{f:{g:{h:{i:switch(d|0){case 0:break e;case 1:break f;case 2:break g;case 4:break h;default:break i}f=0;e=a;if(g)while(1){h=b+d|0;H[h|0]=K[b|0]+K[h|0];e=e-1|0;b=b+1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}if(!i)break h;while(1){f=b+d|0;H[f|0]=K[b|0]+K[f|0];f=d+(b+1|0)|0;H[f|0]=K[b+1|0]+K[f|0];f=d+(b+2|0)|0;H[f|0]=K[b+2|0]+K[f|0];f=d+(b+3|0)|0;H[f|0]=K[b+3|0]+K[f|0];b=b+4|0;f=(e|0)> +4;e=e-4|0;if(f)continue;break}}e=b+d|0;H[e|0]=K[b|0]+K[e|0];e=d+(b+1|0)|0;H[e|0]=K[b+1|0]+K[e|0];b=b+2|0}e=b+d|0;H[e|0]=K[b|0]+K[e|0];b=b+1|0}e=b+d|0;H[e|0]=K[b|0]+K[e|0];b=b+1|0}c=c-d|0;if((c|0)>0)continue;break}}}function sf(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{d=J[a+8>>2];if((d|0)>=0){J[a+8>>2]=-1;break b}d=kc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=-1;if((d|0)!=-1)break b;break a}e=1;c:{if((d|0)!=37){e=0;if(K[d+2318992|0]!=1)break c}while(1){d=kc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=-1;if((d|0)==-1){e=0;break a}if(e){e= +(d|0)!=13&(d|0)!=10;continue}e=1;if((d|0)==37)continue;e=0;if(K[d+2318992|0]==1)continue;break}}H[b|0]=d;h=1;e=1;d:{e:{f:switch(d-91|0){case 1:break e;case 0:case 2:break d;default:break f}if((d|0)!=40){if((d|0)!=60)break e;while(1){d=J[a+8>>2];g:{if((d|0)>=0)break g;d=kc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=d;if((d|0)==-1)break d;if((d|0)>=0)break g;kc[J[a>>2]](J[a+4>>2])|0}J[a+8>>2]=-1;if(!(K[d+2318992|0]==1|(e|0)>=255)){H[b+e|0]=d;e=e+1|0}if((d|0)!=62)continue;break}break d}d=J[a+8>>2];if((d|0)<0){d= +kc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=d;if((d|0)==-1)break d}H[b+1|0]=d;e=2;if(J[a+8>>2]<0)kc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=-1;g=(d|0)!=92;if(g&(d|0)==41)break d;while(1){d=kc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=d;if((d|0)==-1)break d;if((e|0)>=255)f=d;else{H[b+e|0]=d;e=e+1|0;f=J[a+8>>2]}if((f|0)<0)kc[J[a>>2]](J[a+4>>2])|0;f=g;J[a+8>>2]=-1;g=(d|0)!=92;if(!((d|0)==41&f)|(d|0)==92)continue;break}break d}while(1){d=J[a+8>>2];if((d|0)<0){d=kc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=d;if((d|0)==-1)break d}if(K[d+2318992| +0])break d;if((d|0)<0)kc[J[a>>2]](J[a+4>>2])|0;J[a+8>>2]=-1;if((e|0)>=255)continue;H[b+e|0]=d;e=e+1|0;continue}}b=b+e|0}H[b|0]=0;J[c>>2]=e;return h}function Jlb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=fc-17408|0;fc=e;d=96;a:{if(!a)break a;a=J[b+4>>2];d=20;if(!a)break a;f=I[a+2>>1];d=0;if(!f)break a;c=I[a>>1];d=0;if((c|0)<=0)break a;g=J[a+12>>2];d=20;if(!g)break a;d=20;if(!J[a+4>>2])break a;d=20;if((f|0)!=(I[((c<<1)+g|0)-2>>1]+1|0))break a;d=19;if(K[b+8|0]&3)break a;b=J[b>>2];d=20;if(!b)break a; +d=0;if(!J[b+4>>2])break a;d=0;if(!J[b>>2])break a;d=20;if(!J[b+12>>2])break a;J[e+16520>>2]=J[a+16>>2];f=J[a+12>>2];c=e+16512|0;J[c>>2]=J[a+8>>2];J[c+4>>2]=f;c=J[a+4>>2];J[e+16504>>2]=J[a>>2];J[e+16508>>2]=c;c=J[b+12>>2];a=e+16488|0;J[a>>2]=J[b+8>>2];J[a+4>>2]=c;c=J[b+20>>2];a=e+16496|0;J[a>>2]=J[b+16>>2];J[a+4>>2]=c;a=J[b+4>>2];J[e+16480>>2]=J[b>>2];J[e+16484>>2]=a;a=e+16384|0;J[e+16412>>2]=a;J[e+16408>>2]=e;b=J[a+136>>2];c=b&256;J[a+20>>2]=c?30:2;J[a+16>>2]=c?256:32;c=c?12:6;J[a>>2]=c;c=1<>2]=c;J[a+12>>2]=c>>>6;J[a+8>>2]=c>>>1;b:{if(b&8){H[a+164|0]=2;break b}c=b>>>2&4;H[a+164|0]=c;if(b&32)break b;H[a+164|0]=c|1}J[a+1008>>2]=0;J[a+160>>2]=1695;J[a+156>>2]=1696;J[a+152>>2]=1697;J[a+148>>2]=1698;I[a+944>>1]=0;H[a+165|0]=!(b&512);b=J[a+96>>2]-1|0;I[a+946>>1]=b;I[a+52>>1]=J[a+100>>2];c=J[a+108>>2];J[a+56>>2]=c;f=J[a+104>>2];if((f|0)>0)J[a+56>>2]=c+P(b,f);b=P6(a,0);c:{if(b)break c;if(!(!K[a+165|0]|K[a+164|0]==2)){J[a+1008>>2]=0;J[a+160>>2]=1699;J[a+156>>2]=1700;J[a+152>>2]=1701;J[a+148>> +2]=1702;I[a+944>>1]=0;I[a+946>>1]=L[a+100>>1]-1;b=P6(a,1);if(b)break c}b=0}d=b}c=d;fc=e+17408|0;return c|0}function AZ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc+-64|0;fc=c;a:{d=J[a+16>>2];if(!J[d+44>>2]){d=1;break a}b:{if(H[b+11|0]>=0){J[c+56>>2]=J[b+8>>2];a=J[b+4>>2];J[c+48>>2]=J[b>>2];J[c+52>>2]=a;break b}Ve(c+48|0,J[b>>2],J[b+4>>2]);d=J[a+16>>2]}c:{d:{if(!J[d+48>>2])break d;e=K[b+11|0];a=e<<24>>24<0;d=a?J[b+4>>2]:e;if((d|0)<10)break d;e=a?J[b>>2]:b;f=e+(d<<2)|0;a=e;while(1){a=og(a,69,d-9|0);if(!a)break d; +if(qd(a,783056,10)){a=a+4|0;d=f-a>>2;if((d|0)>=10)continue;break d}break}if((a|0)==(f|0)|(a|0)!=(e|0))break d;J[699344]=0;b=na(2963,c+36|0,b|0,10,-1,c+16|0)|0;a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;break c}H[c+35|0]=0;H[c+34|0]=0;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;e=K[b+11|0];a=e<<24>>24;e:{f:{g:{if(H[c+59|0]>=0){if((a|0)>=0){J[c+56>>2]=J[b+8>>2];a=J[b+4>>2];J[c+48>>2]=J[b>>2];J[c+52>>2]=a;break g}a=J[b+4>>2];e=J[b>>2];J[699344]=0;ga(1631,c+48|0,e|0,a|0)|0;a=J[699344];J[699344]=0;if((a| +0)!=1)break g;break f}d=J[b>>2];f=J[b+4>>2];J[699344]=0;a=(a|0)<0;ga(1630,c+48|0,(a?d:b)|0,(a?f:e)|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f}J[699344]=0;J[c+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[b+11|0]>=0)break d;uc(J[b>>2]);break d}a=Z()|0;if(H[c+27|0]>=0)break e;uc(J[c+16>>2]);break e}a=Z()|0}if(H[b+11|0]>=0)break c;uc(J[b>>2]);break c}J[699344]=0;d=0;a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+59|0]>=0)break a;uc(J[c+48>>2]);break a}a=Z()|0}if(H[c+ +59|0]<0)uc(J[c+48>>2]);ba(a|0);B()}fc=c- -64|0;return d|0}function oca(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;n=L[a+84>>1];h=n>>>3|0;l=(c>>>0)/(h>>>0)|0;d=J[J[a+584>>2]+4>>2];m=Dc(c);if(m){a:{if((c|0)<=(d|0))break a;if((d|0)<5){e=c;a=b;while(1){b:switch(d|0){default:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;case 3:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;case 2:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;case 1:g=a+d|0;H[g|0]=K[g|0]+K[a|0];a=a+1|0;break;case 0:break b}e=e-d| +0;if((e|0)>(d|0))continue;break}break a}g=d-4|0;o=d&3;i=d-5>>>0>2;j=c;a=b;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}k=0;e=g;if(o)while(1){f=a+d|0;H[f|0]=K[f|0]+K[a|0];e=e-1|0;a=a+1|0;k=k+1|0;if((o|0)!=(k|0))continue;break}if(!i)break g;while(1){f=a+d|0;H[f|0]=K[f|0]+K[a|0];f=(a+1|0)+d|0;H[f|0]=K[f|0]+K[a+1|0];f=(a+2|0)+d|0;H[f|0]=K[f|0]+K[a+2|0];f=(a+3|0)+d|0;H[f|0]=K[f|0]+K[a+3|0];a=a+4|0;f=(e|0)>4;e=e-4|0;if(f)continue; +break}}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}e=a+d|0;H[e|0]=K[e|0]+K[a|0];a=a+1|0}j=j-d|0;if((j|0)>(d|0))continue;break}}Ue(m,b,c);if((l|0)>0){a=h>>>0<=1?1:h;g=a&8190;e=a&1;i=0;c=n>>>0<16;while(1){f=i+m|0;j=P(h,i)+b|0;a=0;k=0;if(!c)while(1){H[a+j|0]=K[f+P((a^-1)+h|0,l)|0];H[j+(a|1)|0]=K[f+P((a^-2)+h|0,l)|0];a=a+2|0;k=k+2|0;if((g|0)!=(k|0))continue;break}if(e)H[a+j|0]=K[f+P((a^-1)+h|0,l)|0];i=i+1|0;if((l|0)>(i|0))continue;break}}uc(m)}} +function E9(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=fc-32|0;fc=d;g=!a;a:{if(g|((g?-1:J[a+8>>2])|0)!=4)break a;f=a?J[a+36>>2]:0;if(!(!f|b)){c=el(a,1);break a}Df(a,d+28|0,d+24|0,0);e=xh(J[d+28>>2],J[d+24>>2],8);if(!e)break a;if(!(!e|!a|(a|0)==(e|0))){J[e+20>>2]=J[a+20>>2];J[e+24>>2]=J[a+24>>2]}i=a?J[a+40>>2]:0;j=a?J[a+12>>2]:-1;k=e?J[e+40>>2]:0;g=e?J[e+12>>2]:-1;b:{if((b|0)!=1){a=J[d+24>>2];if((a|0)<=0)break b;c=J[d+28>>2];if((c|0)<=0)break b;b=0;while(1){if((c|0)>0){h=(P(b,g)<<2)+k|0;f=(P(b, +j)<<2)+i|0;a=0;while(1){H[a+h^3]=P(J[f+(a>>>1&2147483644)>>2]>>>((a^-1)<<2)&15,17);a=a+1|0;c=J[d+28>>2];if((a|0)<(c|0))continue;break}a=J[d+24>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}break b}c=r9();c:{if(!f){Ih(c,0,0,0);Ih(c,17,17,17);Ih(c,34,34,34);Ih(c,51,51,51);Ih(c,68,68,68);Ih(c,85,85,85);Ih(c,102,102,102);Ih(c,119,119,119);Ih(c,136,136,136);Ih(c,153,153,153);Ih(c,170,170,170);Ih(c,187,187,187);Ih(c,204,204,204);Ih(c,221,221,221);Ih(c,238,238,238);Ih(c,255,255,255);break c}b=f?J[f+12>>2]:0; +if((b|0)<=0)break c;a=0;while(1){Lq(f,a,d+20|0,d+16|0,d+12|0);Ih(c,J[d+20>>2],J[d+16>>2],J[d+12>>2]);a=a+1|0;if((b|0)!=(a|0))continue;break}}gO(e,c);a=J[d+24>>2];if((a|0)<=0)break b;c=J[d+28>>2];if((c|0)<=0)break b;b=0;while(1){if((c|0)>0){h=(P(b,g)<<2)+k|0;f=(P(b,j)<<2)+i|0;a=0;while(1){H[a+h^3]=J[f+(a>>>1&2147483644)>>2]>>>((a^-1)<<2)&15;a=a+1|0;c=J[d+28>>2];if((a|0)<(c|0))continue;break}a=J[d+24>>2]}b=b+1|0;if((b|0)<(a|0))continue;break}}c=e}fc=d+32|0;return c}function Vw(a,b){var c=0,d=0,e=0, +f=0;f=J[a+420>>2];M0(a);d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=255;e=J[d+4>>2]-1|0;J[d+4>>2]=e;a:{if(e)break a;if(kc[J[d+12>>2]](a)|0)break a;e=J[a>>2];J[e+20>>2]=25;kc[J[e>>2]](a)}d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=b-48;b=J[d+4>>2]-1|0;J[d+4>>2]=b;b:{if(b)break b;if(kc[J[d+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(J[a+288>>2]>0){d=0;while(1){b=d<<2;e=J[(b+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2])){c=J[((J[e+20>>2]<<2)+f|0)+76>>2];H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+ +3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+56|0]=0;H[c+57|0]=0;H[c+58|0]=0;H[c+59|0]=0;H[c+60|0]=0;H[c+61|0]=0;H[c+62|0]=0;H[c+63|0]=0;H[c+48|0]=0;H[c+49|0]=0;H[c+50|0]=0;H[c+51|0]=0;H[c+52|0]=0;H[c+53|0]=0;H[c+54|0]=0;H[c+55|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+44|0]=0;H[c+45|0]=0;H[c+46|0]=0;H[c+47|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29| +0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;b=b+f|0;J[b+52>>2]=0;J[b+36>>2]=0}if(J[a+364>>2])Ac(J[((J[e+24>>2]<<2)+f|0)+140>>2],0,256);d=d+1|0;if((d|0)>2])continue;break}}J[f+28>>2]=11;J[f+32>>2]=-1;J[f+20>>2]=0;J[f+24>>2]=0;J[f+12>>2]=0;J[f+16>>2]=65536}function YAb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{c:{d:{if(K[a+ +288|0]){d=J[a+2248>>2];if(!K[a+498|0]){H[a+2272|0]=0;b=oaa(a,d,b);if(b)break b}b=0;if(!(!K[d+31|0]|!K[d+32|0]))b=Zh(a,d,0);if(K[a+497|0])break d;H[a+288|0]=0;break d}f=J[a+512>>2];if(f){e:{if(K[a+498|0])break e;d=J[f+88>>2];c=J[d+1172>>2];f:{if(!c)break f;e=J[d+1176>>2];if(!e)break f;kc[J[a+156>>2]](e,c);J[d+1176>>2]=0}c=J[d+1144>>2];g:{if(!c)break g;e=J[d+1148>>2];if(!e)break g;kc[J[a+156>>2]](e,c);J[d+1148>>2]=0}d=xc(d,J[b+88>>2],1180);H[f+32|0]=K[b+32|0];c=J[d+1172>>2];if(c){c=kc[J[a+152>>2]](c)| +0;J[d+1176>>2]=c;if(!c)break a;xc(c,J[J[b+88>>2]+1176>>2],J[d+1172>>2])}c=J[d+1144>>2];if(!c)break e;c=kc[J[a+152>>2]](c)|0;J[d+1148>>2]=c;if(!c)break a;xc(c,J[J[b+88>>2]+1148>>2],J[d+1144>>2])}if(!K[f+31|0]|!K[f+32|0])break c;b=Zh(a,f,0);break d}f=J[a+528>>2];h:{if(K[a+498|0])break h;d=J[f+88>>2];c=J[d+1172>>2];i:{if(!c)break i;e=J[d+1176>>2];if(!e)break i;kc[J[a+156>>2]](e,c);J[d+1176>>2]=0}c=J[d+1144>>2];j:{if(!c)break j;e=J[d+1148>>2];if(!e)break j;kc[J[a+156>>2]](e,c);J[d+1148>>2]=0}d=xc(d,J[b+ +88>>2],1180);H[f+32|0]=K[b+32|0];c=J[d+1172>>2];if(c){c=kc[J[a+152>>2]](c)|0;J[d+1176>>2]=c;if(!c)break a;xc(c,J[J[b+88>>2]+1176>>2],J[d+1172>>2])}c=J[d+1144>>2];if(!c)break h;c=kc[J[a+152>>2]](c)|0;J[d+1148>>2]=c;if(!c)break a;xc(c,J[J[b+88>>2]+1148>>2],J[d+1144>>2])}b=Zh(a,f,0)}if(b)break b}if(K[a+497|0]){H[a+498|0]=99;return 0}b=0;H[a+498|0]=0}return b|0}Jc(a,1,0,0);return 1}function uo(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0;i=fc-16|0;fc=i;J[i+8>>2]=c;J[i+12>>2]=b;b=i+4|0;c=J[d+28>>2];J[b>>2]= +c;J[c+4>>2]=J[c+4>>2]+1;J[699344]=0;j=_(6750,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){b=J[b>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)kc[J[J[b>>2]+8>>2]](b);J[e>>2]=0;b=0;a:{while(1){if(b|(g|0)==(h|0))break a;b:{if(gk(i+12|0,i+8|0))break b;c:{if((kc[J[J[j>>2]+52>>2]](j,J[g>>2],0)|0)==37){if((g+4|0)==(h|0))break b;c=0;d:{e:{b=kc[J[J[j>>2]+52>>2]](j,J[g+4>>2],0)|0;if((b|0)==69)break e;k=1;if((b&255)==48)break e;break d}if((g+8|0)==(h|0))break b;k=2;c=b;b=kc[J[J[j>>2]+52>>2]](j,J[g+8>>2],0)|0}l= +i,m=kc[J[J[a>>2]+36>>2]](a,J[i+12>>2],J[i+8>>2],d,e,f,b,c)|0,J[l+12>>2]=m;g=((k<<2)+g|0)+4|0;break c}if(kc[J[J[j>>2]+12>>2]](j,1,J[g>>2])|0){while(1){f:{g=g+4|0;if((h|0)==(g|0)){g=h;break f}if(kc[J[J[j>>2]+12>>2]](j,1,J[g>>2])|0)continue}break}while(1){c=i+12|0;if(gk(c,i+8|0))break c;b=J[c>>2];k=J[b+12>>2];g:{if((k|0)==J[b+16>>2]){b=kc[J[J[b>>2]+36>>2]](b)|0;break g}b=J[k>>2]}if(!(kc[J[J[j>>2]+12>>2]](j,1,b)|0))break c;dr(c);continue}}k=i+12|0;b=J[k>>2];c=J[b+12>>2];h:{if((c|0)==J[b+16>>2]){b=kc[J[J[b>> +2]+36>>2]](b)|0;break h}b=J[c>>2]}if((kc[J[J[j>>2]+28>>2]](j,b)|0)==(kc[J[J[j>>2]+28>>2]](j,J[g>>2])|0)){g=g+4|0;dr(k);break c}J[e>>2]=4}b=J[e>>2];continue}break}J[e>>2]=4}if(gk(i+12|0,i+8|0))J[e>>2]=J[e>>2]|2;fc=i+16|0;return J[i+12>>2]}c=Z()|0;a=J[i+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Ala(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;d=K[b+11|0];e=d<<24>>24<0;h=e?J[b+4>>2]:d;l=e?J[b>>2]:b;d=K[a+11|0];e=d<<24>>24<0;d=e? +J[a+4>>2]:d;e=e?J[a>>2]:a;while(1){a:{if(h){f=d+e|0;d=e+g|0;g=f-d|0;if((h|0)>(g|0))break a;i=H[l|0];while(1){g=(g-h|0)+1|0;if(!g)break a;d=Cg(d,i,g);if(!d)break a;if(dd(d,l,h)){d=d+1|0;g=f-d|0;if((h|0)<=(g|0))continue;break a}break}if((d|0)==(f|0))break a;g=d-e|0}if((g|0)==-1)break a;e=K[c+11|0];d=e<<24>>24<0;l=d?J[c>>2]:c;d=d?J[c+4>>2]:e;i=fc-16|0;fc=i;J[i+12>>2]=h;b:{c:{h=g;if(K[a+11|0]>>>7|0)f=J[a+4>>2];else f=K[a+11|0]&127;if(h>>>0<=f>>>0){j=f-h|0;J[i+8>>2]=j;e=fc-16|0;fc=e;fc=e+16|0;e=i+8|0; +k=i+12|0;J[i+12>>2]=J[(M[e>>2]>2]?e:k)>>2];k=J[i+12>>2];e=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(k+(e-f|0)>>>0>=d>>>0){if(K[a+11|0]>>>7|0)e=J[a>>2];else e=a;k=J[i+12>>2];if(!((k|0)==(d|0)|(j|0)==(k|0))){m=j-k|0;j=e+h|0;if(d>>>0>>0)break c;d:{if(l>>>0<=j>>>0|e+f>>>0<=l>>>0)break d;if(j+k>>>0<=l>>>0){l=(d-k|0)+l|0;break d}un(j,l,k);j=J[i+12>>2];k=0;J[i+12>>2]=0;l=d+l|0;d=d-j|0;h=h+j|0}j=e+h|0;un(j+d|0,j+k|0,m)}un(e+h|0,l,d);vv(a,e,(d+f|0)-J[i+12>>2]|0);break b}Ls(a,e,d+f-(e+k)|0,f, +h,k,d,l);break b}bC(a);B()}un(j,l,d);un(d+j|0,j+J[i+12>>2]|0,m);vv(a,e,(d+f|0)-J[i+12>>2]|0)}fc=i+16|0;d=K[b+11|0];e=d<<24>>24<0;h=e?J[b+4>>2]:d;l=e?J[b>>2]:b;d=K[a+11|0];f=d<<24>>24<0;e=f?J[a>>2]:a;d=f?J[a+4>>2]:d;f=g;g=K[c+11|0];g=f+(g<<24>>24<0?J[c+4>>2]:g)|0;if(d>>>0>=g>>>0)continue}break}}function uub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;if(c&1){Jc(a,1028,0,0);return 1028}i= +c>>>1|0;c:{if(c>>>0<2)break c;d:{e:{h=kc[J[a+152>>2]](c)|0;if(h){f=i>>>0<=1?1:i;k=f&3;if(c>>>0>=8)break e;f=h;break d}break a}l=f&2147483644;f=h;while(1){g=K[d|0]|K[d+1|0]<<8;I[f>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[f+2>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;I[f+4>>1]=g<<8|g>>>8;g=K[d+6|0]|K[d+7|0]<<8;I[f+6>>1]=g<<8|g>>>8;d=d+8|0;f=f+8|0;j=j+4|0;if((l|0)!=(j|0))continue;break}}if(!k)break c;j=0;while(1){l=K[d|0]|K[d+1|0]<<8;I[f>>1]=l<<8|l>>>8;d=d+2|0;f=f+2|0;j=j+1|0;if((k|0)!=(j|0))continue;break}}f:{g:{h:{if(!K[a+ +114|0])break h;d=kc[J[a+152>>2]](36)|0;if(!d)break g;J[d+4>>2]=1080;J[d>>2]=1081;f=J[a+700>>2];i:{if(f){J[f+8>>2]=d;break i}J[a+696>>2]=d}J[d+8>>2]=0;J[d+12>>2]=f;J[a+700>>2]=d;J[d+16>>2]=J[a+436>>2];J[d+20>>2]=J[a+440>>2];J[d+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=d;J[d+28>>2]=i;if(!i)break h;k=d;f=i<<1;d=kc[J[a+152>>2]](f)|0;J[k+32>>2]=d;if(!d)break g;xc(d,h,f)}faa(a,i,h);d=0;break f}Jc(a,1,0,0);d=1}j:{if(d)break j;if(K[a+112|0]){d=kc[J[b+4>>2]](a,b,e)|0;if(d)break j; +J[J[e>>2]+32>>2]=i;if(!c)return 0;b=kc[J[a+152>>2]](c)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(!b)break a;xc(b,h,c)}d=0;if(!c|!h)break j;kc[J[a+156>>2]](h,c)}return d|0}Jc(a,1029,0,0);return 1029}Jc(a,1,0,0);return 1}function TU(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=J[a+88>>2];f=J[a+92>>2];a:{if((h|0)>(f|0)){c=J[a+84>>2];break a}e=h<<6;i=h<<1;c=vc(i>>>0>134217727?-1:e|8);J[c+4>>2]=i;c=c+8|0;b:{c:{d:{if(!h)break d;b=c;d=e-32|0;e=(d>>>5|0)+1&2;if(e)while(1){J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>> +2]=0;J[b>>2]=0;J[b+4>>2]=0;b=b+32|0;g=g+1|0;if((e|0)!=(g|0))continue;break}if(d>>>0>=96){e=(i<<5)+c|0;while(1){J[b+96>>2]=0;J[b+100>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+120>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+88>>2]=0;J[b+80>>2]=0;J[b+84>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;b=b+128|0;if((e|0)!=(b|0))continue;break}}if((h|0)<=0)break d;g=J[a+84>>2];e=0;while(1){b=e<<5;d=b+c|0;b=b+g|0;J[d>>2]=J[b>>2];J[d+ +4>>2]=J[b+4>>2];j=O[b+16>>3];J[d+24>>2]=0;O[d+16>>3]=j;if(J[b+24>>2]){f=vc(32);J[d+24>>2]=f;d=J[b+24>>2];b=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=b;b=J[d+28>>2];J[f+24>>2]=J[d+24>>2];J[f+28>>2]=b;b=J[d+20>>2];J[f+16>>2]=J[d+16>>2];J[f+20>>2]=b;b=J[d+12>>2];J[f+8>>2]=J[d+8>>2];J[f+12>>2]=b}e=e+1|0;if((h|0)!=(e|0))continue;break}break c}g=J[a+84>>2];if(!g)break b}b=J[g-4>>2];if(b){b=(b<<5)+g|0;while(1){b=b-32|0;e=J[b+24>>2];if(e){uc(e);J[b+24>>2]=0}if((b|0)!=(g|0))continue;break}}uc(g-8|0);J[a+84>>2]= +0;i=J[a+88>>2]<<1;f=J[a+92>>2]}J[a+88>>2]=i;J[a+84>>2]=c}J[a+92>>2]=f+1;c=(f<<5)+c|0;J[c+16>>2]=0;J[c+20>>2]=0;J[c>>2]=0;J[c+4>>2]=0;a=J[c+24>>2];if(a){uc(a);J[c+24>>2]=0}return c}function QCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-48|0;fc=c;e=J[b>>2];if(e){J[e+4>>2]=J[e+4>>2]+1;d=J[b>>2]}J[699344]=0;J[c+40>>2]=d;ca(5302,c+44|0,c+40|0,1024);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){b=J[c+40>>2];J[c+40>>2]=0;c:{if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)== +1)break a;if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}e=J[a+16>>2];J[699344]=0;da(5348,J[c+44>>2],e|0);b=J[699344];J[699344]=0;d:{e:{f:{if((b|0)!=1){if(e){d=0;b=J[a+20>>2];if(!b)break e;while(1){a=J[b+8>>2];J[699344]=0;da(5349,a|0,c+44|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;d=d+1|0;b=J[b>>2];if(b)continue;break}if((d|0)!=(e|0))break e}a=J[c+44>>2];J[c+44>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break d; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}b=Z()|0;a=c+44|0;break b}b=Z()|0;a=c+44|0;break b}J[c+32>>2]=0;J[699344]=0;J[c>>2]=d;J[c+4>>2]=e;J[c+36>>2]=J[685894];ga(5350,c+32|0,2388749,c|0)|0;a=J[699344];J[699344]=0;g:{h:{i:{if((a|0)!=1){a=J[c+32>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,c+8|0,a|0,2385275,226,2401435,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break i;J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;B()}b=Z()|0;break g}b= +Z()|0;break g}b=Z()|0;Kc(a)}wc(c+32|0);a=c+44|0;break b}fc=c+48|0;return}b=Z()|0;a=c+40|0}zc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function iwa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;d=fc-16|0;fc=d;if(f>>>0>=2){o=P((g|0)/2|0,6);g=((e<<2)+b|0)+(h<<2)|0;n=(h<<1)+e<<2;while(1){c=e;if(e>>>0>=2)while(1){h=K[i+4|0];j=K[i+5|0];k=d+12|0;l=d+8|0;m=d+4|0;ie(J[a+68>>2],K[i|0],h,j,k,l,m);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;ie(J[a+68>> +2],K[i+1|0],h,j,k,l,m);J[b+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+2|0],h,j,k,l,m);J[g>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+3|0],h,j,k,l,m);J[g+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;g=g+8|0;b=b+8|0;c=c-2|0;if(c>>>0>1)continue;break}if(c){c=K[i+4|0];h=K[i+5|0];j=d+12|0;k=d+8|0;l=d+4|0;ie(J[a+68>>2],K[i|0],c,h,j,k,l);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+2|0],c,h,j,k,l);J[g>> +2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;g=g+4|0;b=b+4|0}i=i+o|0;g=g+n|0;b=b+n|0;f=f-2|0;if(f>>>0>1)continue;break}}a:{if(!f)break a;if(e>>>0>=2)while(1){c=K[i+4|0];f=K[i+5|0];g=d+12|0;h=d+8|0;j=d+4|0;ie(J[a+68>>2],K[i|0],c,f,g,h,j);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+1|0],c,f,g,h,j);J[b+4>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216;i=i+6|0;b=b+8|0;e=e-2|0;if(e>>>0>1)continue;break}if(!e)break a;ie(J[a+68>>2],K[i|0],K[i+4|0],K[i+5|0], +d+12|0,d+8|0,d+4|0);J[b>>2]=J[d+12>>2]|J[d+8>>2]<<8|J[d+4>>2]<<16|-16777216}fc=d+16|0}function svb(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;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;if(e){r=e-2|0;u=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];f=a+4|0;g=g+4|0;a:{if(n>>>0>r>>>0)break a;h=n?(n|0)==(r|0)?d:b:c;p=!n&u;if(p){if(h>>>0<2)break a;k=h-1|0;l=k&3;if(h-2>>>0>=3){k=k&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>> +1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((k|0)!=(h|0))continue;break}}h=0;if(!l)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;h=h+1|0;if((l|0)!=(h|0))continue;break}break a}k=a+2|0;l=h+1>>>1|0;if(h>>>0>=3){q=l>>>0<=2?2:l;m=1;v=h<<1;i=a+6|0;while(1){I[g>>1]=L[a>>1];o=g+2|0;j=L[a+2>>1];b:{if((j|0)==L[a+6>>1]){I[o>>1]=j;break b}j=K[k|0]|K[k+1|0]<<8;s=j>>>8|0;t=K[i|0]|K[i+1|0]<<8;j=((j<<8|s)&65535)+((h+(P(((t<<8|t>>> +8)&65535)-((s|j<<8)&65535)|0,m)<<1)|0)/(v|0)|0)&65535;j=j<<8|j>>>8;H[o|0]=j;H[o+1|0]=j>>>8}g=g+4|0;m=m+1|0;if((q|0)!=(m|0))continue;break}}if(h>>>0<=l>>>0)break a;j=h<<1;m=p?0:f;o=m+2|0;while(1){I[g>>1]=L[m>>1];a=g+2|0;i=L[k>>1];c:{if((i|0)==L[m+2>>1]){I[a>>1]=i;break c}i=K[k|0]|K[k+1|0]<<8;q=i>>>8|0;p=K[o|0]|K[o+1|0]<<8;i=((i<<8|q)&65535)+((h+(P(((p<<8|p>>>8)&65535)-((q|i<<8)&65535)|0,l)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[a|0]=i;H[a+1|0]=i>>>8}g=g+4|0;l=l+1|0;if((h|0)!=(l|0))continue;break}}n= +n+1|0;if((n|0)!=(e|0))continue;break}}return 0}function mw(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{e:{f:{e=J[a+708>>2];switch(e|0){case 1:break d;case 0:break e;default:break f}}e=e-1|0;J[a+708>>2]=e;if((e|0)!=1)break e;fd(a,68251);Vd(a,c);return}d=J[a+348>>2];e=J[a+200>>2];g:{h:{if(e&4){if((d|0)==1229209940){e=a+348|0;d=1229209940;break h}J[a+200>>2]=e|8}e=a+348|0;if(d&536870912)break g}if((sw(a,d)|0)==3)break g;if(!J[a+640>>2])break c}if(!(K[a+205|0]&128|J[a+640>>2]))break d;J[a+728>>2]=c;H[a+ +720|0]=0;d=J[a+348>>2];H[a+719|0]=d;H[a+718|0]=d>>>8;H[a+717|0]=d>>>16;H[a+716|0]=d>>>24;i:{if(!c){J[a+724>>2]=0;break i}d=lh(a,c);J[a+724>>2]=d;Dg(a,d,c);Ae(a,d,c)}g=a+716|0;c=J[a+640>>2];j:{k:{if(!c)break k;c=kc[c|0](a,g)|0;if((c|0)<0)break b;if(c)break j;c=J[e>>2];if(c&536870912)break k;if((sw(a,c)|0)!=3)break a}e=0;l:{if(!a|!b)break l;m:{c=J[b+192>>2];n:{if(!(c^2147483647))break n;c=c+1|0;if(c>>>0>214748363)break n;c=sg(a,P(c,20));if(c)break m}fd(a,65438);break l}d=c;c=J[b+188>>2];h=xc(d,c,P(J[b+ +192>>2],20));Bd(a,c);J[b+188>>2]=0;while(1){c=P(e,20);d=c+g|0;f=J[d>>2];c=c+(P(J[b+192>>2],20)+h|0)|0;H[c+4|0]=0;J[c>>2]=f;f=J[d+12>>2];J[c+12>>2]=f;H[c+16|0]=J[a+200>>2];o:{if(!f){J[c+8>>2]=0;break o}f=sg(a,f);J[c+8>>2]=f;if(!f){fd(a,65438);J[c+12>>2]=0;break o}xc(f,J[d+8>>2],J[d+12>>2])}e=e+1|0;if((e|0)!=1)continue;break}J[b+188>>2]=h;J[b+192>>2]=J[b+192>>2]+1;J[b+184>>2]=J[b+184>>2]|512}}Bd(a,J[a+724>>2]);c=0;J[a+724>>2]=0}Vd(a,c);return}ww(a,68293);B()}ww(a,68316);B()}ww(a,68293);B()}function R7a(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;f=fc-32|0;fc=f;a:{d=J[a+4>>2];j=J[a>>2];h=(d-j|0)/12|0;c=h+1|0;if(c>>>0<357913942){e=a+8|0;g=J[e>>2];J[f+28>>2]=e;e=0;g=(g-j|0)/12|0;i=g<<1;g=g>>>0>=178956970?357913941:c>>>0>>0?i:c;if(g){if(g>>>0>=357913942)break a;e=vc(P(g,12))}J[f+12>>2]=e;c=P(h,12)+e|0;J[f+20>>2]=c;h=P(g,12)+e|0;J[f+24>>2]=h;J[f+16>>2]=c;J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;g=J[b+4>>2];b:{c:{d:{b=J[b>>2];if((g|0)!=(b|0)){e=g-b|0;i=e>>3;if(i>>>0>=536870912){J[699344]=0;$(2494, +c|0);a=J[699344];J[699344]=0;if((a|0)==1)break d;B()}J[699344]=0;e=_(4,e|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break d;J[c>>2]=e;J[c+4>>2]=e;J[c+8>>2]=(i<<3)+e;while(1){O[e>>3]=O[b>>3];e=e+8|0;b=b+8|0;if((g|0)!=(b|0))continue;break}J[c+4>>2]=e}e=c+12|0;J[f+20>>2]=e;if((d|0)!=(j|0))break c;b=d;break b}e=Z()|0;a=J[c>>2];if(a){J[c+4>>2]=a;uc(a)}a=J[f+20>>2];c=J[f+16>>2];if((a|0)!=(c|0))while(1){b=a-12|0;J[f+20>>2]=b;d=J[b>>2];if(d){J[a-8>>2]=d;uc(d);a=J[f+20>>2]}else a=b;if((c|0)!=(a|0))continue; +break}a=J[f+12>>2];if(a)uc(a);ba(e|0);B()}while(1){c=c-12|0;J[c+8>>2]=0;d=d-12|0;J[c>>2]=J[d>>2];J[c+4>>2]=J[d+4>>2];J[c+8>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;if((d|0)!=(j|0))continue;break}d=J[a+4>>2];h=J[f+24>>2];e=J[f+20>>2];b=J[a>>2]}J[a+8>>2]=h;J[a+4>>2]=e;J[a>>2]=c;if((b|0)!=(d|0)){while(1){a=d-12|0;c=J[a>>2];if(c){J[d-8>>2]=c;uc(c)}d=a;if((b|0)!=(a|0))continue;break}d=b}if(d)uc(d);fc=f+32|0;return}Fg(a);B()}Pd();B()}function K3(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=a+320|0;h=J[a+ +344>>2];a:{b:{c:{d:{while(1){e:switch(h|0){case 3:break b;case 2:break c;case 1:break d;case 0:break e;default:continue}break}Cx(d,J[a+340>>2]!=0);iD(d,O[a+280>>3],J[a+340>>2]);J[a+344>>2]=1;J[a+348>>2]=0}if(M[a+264>>2]<2|M[a+320>>2]<2)break b;J[a+344>>2]=2;J[a+348>>2]=1;f=J[J[a+332>>2]>>2];J[a+312>>2]=f;J[a+316>>2]=f+24;O[a+304>>3]=O[f+16>>3];O[b>>3]=O[f>>3];O[c>>3]=O[f+8>>3];f=1;e=O[a+272>>3];if(!(e>=0))break b;J[a+288>>2]=0;J[a+292>>2]=0;b=0;J[a+296>>2]=0;if(!(e>0))break b;c=J[a+264>>2];while(1){g= +O[(b<<3)+a>>3];if(!(g>2]=0;J[a+292>>2]=0;b=b+1|0;J[a+296>>2]=b;e=e-g;if(b>>>0>=c>>>0){J[a+296>>2]=0;b=0}if(e>0)continue;break}return 1}d=J[a+296>>2];f=d&1?1:2;g=O[a+288>>3];i=O[(d<<3)+a>>3]-g;e=O[a+304>>3];if(i>2]=0;J[a+292>>2]=0;e=e-i;O[a+304>>3]=e;d=d+1|0;J[a+296>>2]=d>>>0>2]?d:0;h=b;d=J[a+316>>2];g=O[d>>3];b=J[a+312>>2];O[h>>3]=g-e*(g-O[b>>3])/O[b+16>>3];e=O[d+8>>3];O[c>>3]=e-(e-O[b+8>>3])*O[a+304>>3]/O[b+16>>3];return f}O[a+288>>3]=g+e;d=J[a+316>>2];O[b>> +3]=O[d>>3];O[c>>3]=O[d+8>>3];J[a+312>>2]=d;b=J[a+348>>2]+1|0;J[a+348>>2]=b;O[a+304>>3]=O[d+16>>3];c=J[a+320>>2];if(J[a+340>>2]){if(b>>>0>c>>>0){J[a+344>>2]=3;return f}h=a;d=J[a+332>>2];a=b>>>0>>0?b:0;J[h+316>>2]=J[d+(a>>>4&268435452)>>2]+P(a&63,24);return f}if(b>>>0>=c>>>0){J[a+344>>2]=3;return f}J[a+316>>2]=J[J[a+332>>2]+(b>>>4&268435452)>>2]+P(b&63,24)}return f}O[a+288>>3]=e;return 1}function ky(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;g=P(d,1348)+a|0;k=J[g+44>>2];c=b?J[(P(b,12)+ +c|0)-12>>2]:0;f=J[J[a+2748>>2]+40>>2];e=(f|0)/256|0;l=(P(f,6E3)|0)/2048|0;a:{if((k|0)<=0)break a;b=J[g+52>>2];h=b+P(k,44)|0;m=f+255>>>0<511?1:e;i=J[(P(d,1348)+a|0)+68>>2];b:{if(!c){d=b;while(1){if((i|0)==H[d+1|0]){f=I[d+2>>1];a=b;while(1){c:{if((i|0)!=(0-H[a+1|0]|0))break c;g=I[a+2>>1];if((g|0)<=(f|0))break c;e=I[d+8>>1];c=I[a+8>>1];j=(c|0)>(e|0)?e:c;e=I[d+6>>1];c=I[a+6>>1];c=j-((c|0)<(e|0)?e:c)|0;if((c|0)<(m|0))break c;c=(g-f|0)+((l|0)/(c|0)|0)|0;if((c|0)>2]){J[d+20>>2]=a;J[d+28>>2]=c}if((c| +0)>=J[a+28>>2])break c;J[a+20>>2]=d;J[a+28>>2]=c}a=a+44|0;if(h>>>0>a>>>0)continue;break}}d=d+44|0;if(h>>>0>d>>>0)continue;break}break b}d=b;while(1){if((i|0)==H[d+1|0]){j=I[d+2>>1];a=b;while(1){d:{if((i|0)!=(0-H[a+1|0]|0))break d;f=I[a+2>>1];if((f|0)<=(j|0))break d;g=I[d+8>>1];e=I[a+8>>1];n=(e|0)>(g|0)?g:e;g=I[d+6>>1];e=I[a+6>>1];g=n-((e|0)<(g|0)?g:e)|0;if((g|0)<(m|0))break d;e=(f-j<<10)/(c|0)|0;f=32E3;e:{if((e|0)>11024)break e;f=0;if((e|0)<1025)break e;e=e-1024|0;f=(P(e,e)>>>0)/3E3|0}e=f+((l|0)/ +(g|0)|0)|0;if((e|0)>2]){J[d+20>>2]=a;J[d+28>>2]=e}if((e|0)>=J[a+28>>2])break d;J[a+20>>2]=d;J[a+28>>2]=e}a=a+44|0;if(h>>>0>a>>>0)continue;break}}d=d+44|0;if(h>>>0>d>>>0)continue;break}}if((k|0)<=0)break a;while(1){a=J[b+20>>2];if(!(!a|J[a+20>>2]==(b|0))){J[b+20>>2]=0;J[b+24>>2]=J[a+20>>2]}b=b+44|0;if(h>>>0>b>>>0)continue;break}}}function asa(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;b=J[a+12>>2];kc[J[J[b>>2]+24>>2]](b);J[a+24>>2]=0;J[c>>2]=0;a:{b:{c:{b=J[a+16>>2];if(!b)break c;d=J[J[b>> +2]+76>>2];J[699344]=0;e=d;d=c+12|0;da(e|0,d|0,b|0);b=J[699344];J[699344]=0;d:{if((b|0)!=1){J[699344]=0;aa(5153,c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}break b}a=Z()|0;zc(c+12|0);break d}a=Z()|0}break a}J[699344]=0;ia(5705,c+4|0,0,0,c|0);b=J[699344];J[699344]=0;e:{f:{if((b|0)!=1){b=J[c+4>>2];g:{if(b){d= +J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break g;a=Z()|0;break f}J[c+12>>2]=0}J[699344]=0;aa(5153,a+16|0,c+12|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break h;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break b}a=Z()|0;zc(c+12|0);break f}d=a;a=J[a+16>>2];J[d+20>>2]=J[(a?a+12|0:2743576)>>2];wc(c+4|0);a=J[c>> +2];J[c>>2]=0;i:{if(!a)break i;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(b)break i;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}fc=c+16|0;return}a=Z()|0;break e}wc(c+4|0)}break a}ea(0)|0;Bc();B()}zc(c);ba(a|0);B()}function W$(a){var b=0,c=0,d=0,e=0;b=J[a+8>>2];if(b)uc($$(b));a:{b=J[a+12>>2];if(b){c=J[a+20>>2];if((c|0)>0){b=0;while(1){d=J[J[a+12>>2]+(b<<2)>>2];if(d){uc(A_(d));c=J[a+20>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}b=J[a+ +12>>2]}J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+16>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;$(3370,a+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+40|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+56>>2];if(b)uc(Zc(b));J[699344]=0;$(3370,a- -64|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+80|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+96|0);b=J[699344];J[699344]= +0;if((b|0)==1)break a;J[699344]=0;$(3370,a+112|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+132>>2];if(b)uc(l0(b));J[699344]=0;$(3370,a+136|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;d=J[a+152>>2];if(d){c=J[d+8>>2];if((c|0)>0){b=0;while(1){e=J[J[d>>2]+(b<<2)>>2];if(e){c=J[e>>2];if(c)uc(ld(c));J[699344]=0;$(3370,e+8|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(e);c=J[d+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}uc(ld(d))}d=J[a+156>>2];if(d){c=J[d+8>>2];if((c|0)>0){b=0;while(1){e= +J[J[d>>2]+(b<<2)>>2];if(e){c=J[e+8>>2];if(c)uc(ld(c));uc(e);c=J[d+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}uc(ld(d))}J[699344]=0;$(3370,a+160|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a}ea(0)|0;Bc();B()}function MN(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,w=0,x=0;a:{c=P(b,1348)+a|0;e=J[c+56>>2];if((e|0)<=0)break a;g=J[a+24>>2];if((g|0)<=0)break a;a=J[a+28>>2];l=a+P(g,40)|0;h=b?8:4;m=h|16;f=J[c- -64>>2];c=f+P(e,44)|0;n=c-40|0;o=c-36|0; +p=c-44|0;i=(b|0)==1;q=i?14:12;r=(e|0)==2;s=(e|0)==3;t=(e|0)==5;u=(e|0)==6;v=(e|0)==7;w=b?20:16;while(1){if(!(L[a>>1]&m)){b=J[(i?8:4)+a>>2];x=a+w|0;d=I[a+q>>1];c=(b+J[f+8>>2]|0)-J[f+4>>2]|0;b:{if((d|0)<=I[f>>1])break b;c=(b+J[o>>2]|0)-J[n>>2]|0;if(I[p>>1]<=(d|0))break b;b=0;c:{c=e;d:{if(c>>>0<=8){c=I[f>>1];b=(c|0)<(d|0)?e:0;e:{if((e|0)==1|(c|0)>=(d|0))break e;c=I[f+44>>1];b=(c|0)>=(d|0)?1:e;if(r|(c|0)>=(d|0))break e;c=I[f+88>>1];b=(c|0)>=(d|0)?2:e;if(s|(c|0)>=(d|0))break e;c=I[f+132>>1];b=(c|0)>=(d| +0)?3:e;if((e|0)==4|(c|0)>=(d|0))break e;c=I[f+176>>1];b=(c|0)>=(d|0)?4:e;if(t|(c|0)>=(d|0))break e;c=I[f+220>>1];b=(c|0)>=(d|0)?5:e;if(u|(c|0)>=(d|0))break e;c=I[f+264>>1];b=(c|0)>=(d|0)?6:e;if(v|(c|0)>=(d|0))break e;b=I[f+308>>1]>=(d|0)?7:e}c=P(b,44)+f|0;if(L[c>>1]!=(d&65535))break d;c=J[c+8>>2];break b}while(1){g=b+c>>1;j=P(g,44)+f|0;k=I[j>>1];f:{if((k|0)>(d|0)){c=g;break f}if((d|0)<=(k|0))break c;b=g+1|0}if((b|0)<(c|0))continue;break}}b=P(b,44)+f|0;c=b-44|0;g=J[c+16>>2];if(!g){g=Cd(J[b+8>>2]-J[b- +36>>2]|0,I[b>>1]-I[c>>1]|0);J[c+16>>2]=g}c=J[b-36>>2]+Wc(d-I[c>>1]|0,g)|0;break b}c=J[j+8>>2]}J[x>>2]=c;I[a>>1]=L[a>>1]|h}a=a+40|0;if(l>>>0>a>>>0)continue;break}}}function IHa(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;a=fc-48|0;fc=a;a:{b:{c:{d:{e:{f:{if(!Th(b)){J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[699344]=0;i=$g(b);f=J[699344];J[699344]=0;if((f|0)==1)break e;g:{while(1){J[699344]=0;f=aa(4975,b|0,i|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;if(!f)break g;J[699344]=0;da(4962, +a+16|0,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;if(H[a+43|0]<0)uc(J[a+32>>2]);J[a+40>>2]=J[a+24>>2];e=J[a+20>>2];J[a+32>>2]=J[a+16>>2];J[a+36>>2]=e;h=H[a+43|0];e=(h|0)<0;if(((e?J[a+36>>2]:h&255)|0)!=15)continue;if(qd(e?J[a+32>>2]:a+32|0,2381320,15))continue;break}J[a+24>>2]=0;J[699344]=0;J[a+16>>2]=0;J[a+20>>2]=0;e=b;b=a+16|0;ca(4963,e|0,2381384,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;J[699344]=0;ca(5033,b|0,a+12|0,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[a+4>>2]=J[a+ +12>>2]&16777215;b=J[J[c>>2]+52>>2];J[699344]=0;aa(b|0,c|0,a+4|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;b=J[a+8>>2];g=O[d+48>>3];d=J[699344];J[699344]=0;if((d|0)==1)break c;g=g*+(b|0);h:{if(R(g)<2147483648){b=~~g;break h}b=-2147483648}J[a+4>>2]=b;b=J[J[c>>2]+60>>2];J[699344]=0;aa(b|0,c|0,a+4|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(H[a+27|0]>=0)break g;uc(J[a+16>>2])}if(H[a+43|0]<0)uc(J[a+32>>2]);b=1;if(f)break f}b=0}fc=a+48|0;return b|0}b=Z()|0;break a}b=Z()|0;break a}b= +Z()|0;if(H[a+27|0]>=0)break a;uc(J[a+16>>2]);break a}b=Z()|0}if(H[a+43|0]<0)uc(J[a+32>>2]);ba(b|0);B()}function Heb(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;n=fc-16|0;fc=n;m=O[c+16>>3];i=O[c>>3];j=O[c+8>>3];p=O[c+24>>3]-j;a:{if(R(p)<2147483648){g=~~p;break a}g=-2147483648}O[a+624>>3]=g|0;m=m-i;b:{if(R(m)<2147483648){g=~~m;break b}g=-2147483648}O[a+616>>3]=g|0;h=J[a+16>>2];if(R(j)<2147483648)g=~~j;else g=-2147483648;if(R(i)<2147483648)k=~~i;else k= +-2147483648;if(h){uc(BM(h));J[a+16>>2]=0}h=J[a+20>>2];if(h){kc[J[J[h>>2]+20>>2]](h);J[a+20>>2]=0}h=vc(2952);J[699344]=0;l=_(2249,h|0)|0;o=J[699344];J[699344]=0;c:{d:{if((o|0)!=1){J[a+16>>2]=l;h=vc(8);J[699344]=0;l=_(2250,h|0)|0;o=J[699344];J[699344]=0;if((o|0)==1)break c;J[a+20>>2]=l;h=(g|0)>0?g:0;J[a+648>>2]=h;k=(k|0)>0?k:0;J[a+644>>2]=k;i=O[c+16>>3];j=O[c+24>>3];e:{if(R(j)<2147483648){g=~~j;break e}g=-2147483648}l=((e|0)>(g|0)?g:e)-h|0;J[a+656>>2]=l;if(R(i)<2147483648)g=~~i;else g=-2147483648;g= +((d|0)>(g|0)?g:d)-k|0;J[a+652>>2]=g;J5(J[a+16>>2],b,d,e,d<<2,k,h,g,l,i-O[c>>3],j-O[c+8>>3],f);b=yq(n+12|0,1,0,0,1,O[c>>3],O[c+8>>3]);c=J[a+16>>2];J[699344]=0;AM(c,b);c=J[699344];J[699344]=0;if((c|0)==1)break d;i=O[a+600>>3];c=J[a+16>>2];J[699344]=0;DD(c,i,6);c=J[699344];J[699344]=0;if((c|0)==1)break d;i=O[a+608>>3];c=J[a+16>>2];J[699344]=0;CD(c,i,6);c=J[699344];J[699344]=0;if((c|0)==1)break d;a=J[a+16>>2];J[699344]=0;Rx(a,6);a=J[699344];J[699344]=0;if((a|0)==1)break d;Jd(b);fc=n+16|0;return}break c}a= +Z()|0;Jd(b);ba(a|0);B()}a=Z()|0;uc(h);ba(a|0);B()}function Qvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(e){p=e-2|0;q=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];f=a+4|0;g=g+4|0;a:{if(n>>>0>p>>>0)break a;i=n?(n|0)==(p|0)?d:b:c;h=!n&q;if(h){if(i>>>0<2)break a;h=i-1|0;l=h&1;if((i|0)!=2){h=h&-2;j=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];H[g+4|0]=K[a|0]; +H[g+5|0]=K[a+1|0];H[g+6|0]=K[a+2|0];H[g+7|0]=K[a+3|0];g=g+8|0;j=j+2|0;if((h|0)!=(j|0))continue;break}}if(!l)break a;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];g=g+4|0;break a}o=h?0:f;l=i+1>>>1|0;if(i>>>0>=3){r=l>>>0<=2?2:l;j=1;k=i<<1;while(1){h=K[a|0];m=K[o|0];if((h|0)!=(m|0))h=h+((i+(P(m-h|0,j)<<1)|0)/(k|0)|0)|0;H[g|0]=h;h=K[a+1|0];m=K[a+5|0];if((h|0)!=(m|0))h=h+((i+(P(m-h|0,j)<<1)|0)/(k|0)|0)|0;H[g+1|0]=h;h=K[a+2|0];m=K[a+6|0];if((h|0)!=(m|0))h=h+((i+(P(m-h|0,j)<<1)|0)/ +(k|0)|0)|0;H[g+2|0]=h;H[g+3|0]=K[a+3|0];g=g+4|0;j=j+1|0;if((r|0)!=(j|0))continue;break}}if(i>>>0<=l>>>0)break a;j=i<<1;while(1){h=K[a|0];k=K[o|0];if((h|0)!=(k|0))h=h+((i+(P(k-h|0,l)<<1)|0)/(j|0)|0)|0;H[g|0]=h;h=K[a+1|0];k=K[o+1|0];if((h|0)!=(k|0))h=h+((i+(P(k-h|0,l)<<1)|0)/(j|0)|0)|0;H[g+1|0]=h;h=K[a+2|0];k=K[o+2|0];if((h|0)!=(k|0))h=h+((i+(P(k-h|0,l)<<1)|0)/(j|0)|0)|0;H[g+2|0]=h;H[g+3|0]=K[o+3|0];g=g+4|0;l=l+1|0;if((i|0)!=(l|0))continue;break}}n=n+1|0;if((n|0)!=(e|0))continue;break}}return 0}function hE(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;k=fc-16|0;fc=k;f=6;a:{if(!a)break a;g=J[a+12>>2];if(g>>>0<=b>>>0)break a;l=J[a>>2];b:{c:{d:{e:{f:{h=J[a+28>>2];if(!h){f=yd(l,(J[a+8>>2]+J[a+4>>2]|0)+P(K[a+16|0],b)|0);if(f)break a;f=zg(J[a>>2],k+8|0,K[a+16|0]);if(f)break a;g:{j=K[a+16|0];if(j){h=0;if(j>>>0>=4){i=j&252;f=0;while(1){g=e;e=e+4|0;f=f+4|0;if((i|0)!=(f|0))continue;break}f=k+8|0;i=K[f+(g|3)|0]|(K[f+(g|2)|0]|(K[f+g|0]<<16|K[f+(g|1)|0]<<8))<<8}g=j&3;if(g)while(1){i=K[(k+8|0)+e|0]|i<<8;e=e+ +1|0;h=h+1|0;if((g|0)!=(h|0))continue;break}if(i)break g}i=0;f=0;break e}while(1){f=zg(J[a>>2],k+12|0,K[a+16|0]);h:{if(f)break h;m=K[a+16|0];if(!m)break h;j=0;h=0;e=0;if(m>>>0>=4){n=m&252;while(1){g=h;h=g+4|0;e=e+4|0;if((n|0)!=(e|0))continue;break}e=k+12|0;e=K[e+(g|3)|0]|(K[e+(g|2)|0]|(K[e+g|0]<<16|K[e+(g|1)|0]<<8))<<8}g=m&3;if(g)while(1){e=K[(k+12|0)+h|0]|e<<8;h=h+1|0;j=j+1|0;if((g|0)!=(j|0))continue;break}if(e)break f}b=b+1|0;if(b>>>0>2])continue;break}break e}f=0;i=J[h+(b<<2)>>2];if(!i)break e; +while(1){b=b+1|0;e=J[h+(b<<2)>>2];if(e)break f;if((b|0)!=(g|0))continue;break}break e}f=0;b=J[l+4>>2];h=b+1|0;if(h>>>0>=e>>>0)break d;j=J[a+20>>2];break c}b=J[l+4>>2];e=0}j=J[a+20>>2];h=b+1|0;if(j>>>0<=h-e>>>0)break b}e=h-j|0}if(!(!i|e>>>0<=i>>>0)){b=e-i|0;J[d>>2]=b;d=J[a+32>>2];if(d){J[c>>2]=(d+i|0)-1;break a}f=yd(l,(J[a+20>>2]+i|0)-1|0);if(f)break a;f=Oi(l,b,c);break a}J[c>>2]=0;J[d>>2]=0}fc=k+16|0;return f}function nca(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:{e=J[J[a+584>> +2]+4>>2];if((e|0)>=(c|0))break a;c=c-e|0;b:switch(e-3|0){case 0:a=K[b+2|0];d=K[b+1|0];f=K[b|0];while(1){g=K[b+3|0];H[b+3|0]=g-f;f=K[b+4|0];H[b+4|0]=f-d;d=K[b+5|0];H[b+5|0]=d-a;b=b+3|0;e=(c|0)>3;a=d;d=f;f=g;c=c-3|0;if(e)continue;break}break a;case 1:a=K[b+3|0];d=K[b+2|0];f=K[b+1|0];g=K[b|0];while(1){e=K[b+4|0];H[b+4|0]=e-g;h=K[b+5|0];H[b+5|0]=h-f;i=K[b+6|0];H[b+6|0]=i-d;j=K[b+7|0];H[b+7|0]=j-a;b=b+4|0;k=(c|0)>4;c=c-4|0;g=e;f=h;d=i;a=j;if(k)continue;break}break a;default:break b}b=(b+c|0)-1|0;if((e| +0)<5)while(1){c:switch(e|0){default:a=b+e|0;H[a|0]=K[a|0]-K[b|0];a=b-1|0;d=a+e|0;H[d|0]=K[d|0]-K[a|0];b=b-2|0;case 2:a=b+e|0;H[a|0]=K[a|0]-K[b|0];b=b-1|0;case 1:a=b+e|0;H[a|0]=K[a|0]-K[b|0];b=b-1|0;break;case 0:break c}c=c-e|0;if((c|0)>0)continue;break a}a=e-4|0;h=e&3;i=e-5>>>0<3;while(1){d:switch(e|0){default:g=0;f=a;if(h)while(1){d=b+e|0;j=d;k=K[d|0];d=b;H[j|0]=k-K[b|0];f=f-1|0;b=b-1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}if(!i)while(1){d=b+e|0;H[d|0]=K[d|0]-K[b|0];d=b-1|0;g=d+e|0;H[g|0]=K[g| +0]-K[d|0];d=b-2|0;g=d+e|0;H[g|0]=K[g|0]-K[d|0];d=b-3|0;g=e+d|0;H[g|0]=K[g|0]-K[d|0];b=b-4|0;g=(f|0)>4;f=f-4|0;if(g)continue;break}f=b+e|0;H[f|0]=K[f|0]-K[b|0];b=d-2|0;f=b+e|0;H[f|0]=K[f|0]-K[b|0];b=d-3|0;case 2:d=b+e|0;H[d|0]=K[d|0]-K[b|0];b=b-1|0;case 1:d=b+e|0;H[d|0]=K[d|0]-K[b|0];b=b-1|0;break;case 0:break d}c=c-e|0;if((c|0)>0)continue;break}}}function c2a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;s=fc-160|0;fc=s;m=J[a+332>> +2];a=J[b+84>>2];b=s;while(1){g=J[a+96>>2];h=I[c+48>>1];f=J[a+32>>2];i=I[c+16>>1];n=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+64>>2],I[c+32>>1]);k=P(J[a+128>>2],I[c+64>>1]);l=j-k|0;J[b+64>>2]=n+P(l,-11584)>>11;h=P(g,h);f=P(f,i);g=P(h+f|0,6810);i=n+P(l,2896)|0;j=P(j+k|0,6476);k=i+j|0;f=g+P(f,4209)|0;J[b+128>>2]=k-f>>11;J[b>>2]=f+k>>11;f=i-j|0;g=g+P(h,-17828)|0;J[b+96>>2]=f-g>>11;J[b+32>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;o=o+1|0;if((o|0)!=8)continue;break}b=m+128|0;a=s;m=0;while(1){k=J[a+24>>2];i=J[a+8>> +2];h=P(k+i|0,6810);c=J[(m<<2)+d>>2]+e|0;f=J[a+28>>2];j=J[a+12>>2];l=f+j|0;n=P(l,7791);g=J[a+4>>2];o=J[a+20>>2];p=o<<13;f=j-f|0;t=p+P(f,2531)|0;q=(n+P(g,11443)|0)+t|0;u=h+P(i,4209)|0;j=(J[a>>2]<<13)+131072|0;i=J[a+16>>2];v=j+P(i,9373)|0;r=u+v|0;H[c|0]=K[b+(q+r>>>18&1023)|0];H[c+9|0]=K[b+(r-q>>>18&1023)|0];l=P(l,4815);p=p+P(f,-6627)|0;q=P(g,10323)-(l+p|0)|0;h=h+P(k,-17828)|0;k=j+P(i,-3580)|0;r=h+k|0;H[c+1|0]=K[b+(q+r>>>18&1023)|0];H[c+8|0]=K[b+(r-q>>>18&1023)|0];f=g-(f+o|0)<<13;i=j+P(i,-11586)|0;H[c+ +2|0]=K[b+(f+i>>>18&1023)|0];H[c+7|0]=K[b+(i-f>>>18&1023)|0];f=p+(P(g,5260)-l|0)|0;h=k-h|0;H[c+3|0]=K[b+(f+h>>>18&1023)|0];H[c+6|0]=K[b+(h-f>>>18&1023)|0];g=t+(P(g,1812)-n|0)|0;h=v-u|0;H[c+4|0]=K[b+(g+h>>>18&1023)|0];H[c+5|0]=K[b+(h-g>>>18&1023)|0];a=a+32|0;m=m+1|0;if((m|0)!=5)continue;break}fc=s+160|0}function Zhb(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;h=fc-80|0;fc=h;j=J[a+532>>2];a:{if(!j){a=6;break a}g=J[a+100>>2];i=J[j+4>>2];if(i){c=j+88|0;f=h+32|0;a=0;while(1){d= +P(a,12);e=d+f|0;J[e>>2]=J[((a<<2)+j|0)+8>>2];d=c+d|0;k=J[d+4>>2];J[e+4>>2]=J[k>>2];J[e+8>>2]=J[(k+(K[d|0]<<2)|0)-4>>2];a=a+1|0;if((i|0)!=(a|0))continue;break}}c=J[j>>2];J[h+20>>2]=0;f=i<<1;e=f+3&-4;g=he(g,(e+P(i,24)|0)+20|0,h+20|0);a=J[h+20>>2];if(a)break a;J[g+8>>2]=0;J[g+4>>2]=c;J[g>>2]=i;c=g+20|0;b:{if(!i){J[g+16>>2]=0;J[g+12>>2]=c+e;break b}a=0;c=Ac(c,0,f);J[g+16>>2]=0;f=c+e|0;J[g+12>>2]=f;while(1){e=P(a,24)+f|0;d=(h+24|0)+P(a,12)|0;c=J[d+8>>2];J[e>>2]=c;J[e+4>>2]=J[d+12>>2]<<16;d=J[d+16>>2]; +J[e+16>>2]=-1;J[e+20>>2]=-1;J[e+12>>2]=d<<16;c:{if(!c)break c;d=2003265652;d:{if(!Ic(c,240854))break d;d=2003072104;if(!Ic(c,240991))break d;if(Ic(c,241130))break c;d=1869640570}J[e+16>>2]=d}a=a+1|0;if((i|0)!=(a|0))continue;break}LM(J[j+140>>2],h,J[j+4>>2]);if(!i)break b;e=0;while(1){k=J[(e<<2)+h>>2];c=P(e,12)+j|0;d=J[c+96>>2];e:{if((k|0)>J[d>>2]){a=1;l=K[c+88|0];if(l>>>0>1)while(1){m=a<<2;n=J[d+m>>2];if((k|0)<=(n|0)){c=J[c+92>>2];f=m-4|0;a=J[c+f>>2];c=J[c+m>>2];f=J[f+d>>2];a=P(Cd(k-f|0,n-f|0),c- +a|0)+(a<<16)|0;f=J[g+12>>2];break e}a=a+1|0;if((l|0)!=(a|0))continue;break}a=J[(J[c+92>>2]+(l<<2)|0)-4>>2]<<16;break e}a=J[J[c+92>>2]>>2]<<16}J[(P(e,24)+f|0)+8>>2]=a;e=e+1|0;if((i|0)!=(e|0))continue;break}}J[b>>2]=g;a=J[h+20>>2]}fc=h+80|0;return a|0}function Y2(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=fc-16|0;fc=g;d=J[a+8>>2];e=J[a+12>>2];a:{b:{if(d>>>0>=e>>>0){J[b>>2]=1;break b}h=d+1|0;J[a+8>>2]=h;c=K[d|0];f=c<<24>>24;if((f|0)>31)break a;c:{d:{if(c>>>0>25)break d;if(1<>>0<=e>>>0)break e;J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}c=d+2|0;if(c>>>0>e>>>0)break c;J[a+8>>2]=c;a=H[h|0];b=a&255;c=(a|0)<0?b:b-32|0;break a}J[a+8>>2]=d+2;b=K[d+1|0];J[a+8>>2]=c;a=K[d+2|0];c=b;b=(b|0)==246;c=((b?a:c)&255)<<8|(b?0:a)&255;break a}if(c>>>0<=32){f:{if(c>>>0<=19){i=J[J[a+4>>2]+8>>2];f=J[i+(c<<2)>>2];if(f)break f}J[b>>2]=10;c=0;break a}if(c>>>0>=16){if(e>>>0>>0){J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}if(H[h|0]==(c|0)){b=d+2|0;J[a+8>> +2]=b;c=Xn(f,b,1);J[a+8>>2]=J[a+8>>2]+1;break a}c=Xn(f,h,2);J[a+8>>2]=J[a+8>>2]+2;break a}d=d+2|0;if(d>>>0>e>>>0){J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}J[a+8>>2]=d;a=K[h|0];b=a<<24>>24;if((b|0)<0){c=L[J[f+36>>2]+(a<<2)>>1];break a}a=J[i>>2];H[g+15|0]=b;H[g+14|0]=c;c=Xn(a,g+14|0,2);break a}d=J[J[a+4>>2]+8>>2];e=K[d+80|0];d=J[(e<<2)+d>>2];if(e>>>0>=16){c=J[a+8>>2];if(!((J[J[d+36>>2]+((f&255)<<2)>>2]^-1)>>>31|0)){if(c>>>0>M[a+12>>2]){J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}c=Xn(d,c-1|0,1);break a}if(M[a+ +12>>2]>>0){J[b>>2]=11;J[a+8>>2]=J[a+12>>2];break b}c=Xn(d,c-1|0,2);J[a+8>>2]=J[a+8>>2]+1;break a}c=L[J[d+36>>2]+(c<<2)>>1];break a}J[b>>2]=11;J[a+8>>2]=J[a+12>>2]}c=65535}fc=g+16|0;return c}function IJa(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=fc-16|0;fc=h;a:{b:{c:{d:{e:{f:{if(b){if(!a)break f;if(J[a+8>>2]==16)f=J[a+156>>2]+P(J[a+192>>2],5644)|0;else f=J[a+12>>2];if(c>>>0<=1){Nc(d,1,2368819,0);a=0;break a}wd(b,h+12|0,2);if(J[h+12>>2]){Nc(d,2,2368845,0);break b}if(c>>> +0<=6){Nc(d,1,2368819,0);a=0;break a}wd(b+2|0,h+12|0,2);e=J[f+5616>>2];k=K[h+12|0];g=J[f+5620>>2];if(!g){a=e;break e}a=e;while(1){if(J[a+8>>2]==(k|0))break e;a=a+20|0;i=i+1|0;if((i|0)!=(g|0))continue;break}break d}fa(2365733,2358254,5754,2368802);B()}fa(2358373,2358254,5755,2368802);B()}if((g|0)!=(i|0))break c}if(J[f+5624>>2]==(g|0)){a=g+10|0;J[f+5624>>2]=a;a=ch(e,P(a,20));e=J[f+5616>>2];if(!a){uc(e);J[f+5624>>2]=0;J[f+5616>>2]=0;J[f+5620>>2]=0;Nc(d,1,2368905,0);a=0;break a}g:{if((a|0)==(e|0))break g; +l=J[f+5632>>2];if(!l)break g;m=J[f+5628>>2];i=0;while(1){g=P(i,20)+m|0;j=J[g+8>>2];if(j)J[g+8>>2]=a+P((j-e|0)/20|0,20);j=J[g+12>>2];if(j)J[g+12>>2]=a+P((j-e|0)/20|0,20);i=i+1|0;if((l|0)!=(i|0))continue;break}}J[f+5616>>2]=a;e=J[f+5620>>2];Ac(a+P(e,20)|0,0,P(J[f+5624>>2]-e|0,20));g=J[f+5620>>2];e=J[f+5616>>2]}J[f+5620>>2]=g+1;a=P(g,20)+e|0}e=J[a+12>>2];if(e){uc(e);J[a+12>>2]=0;J[a+16>>2]=0}J[a+8>>2]=k;e=J[h+12>>2];J[a>>2]=e>>>10&3;J[a+4>>2]=e>>>8&3;wd(b+4|0,h+12|0,2);if(J[h+12>>2]){Nc(d,2,2368943, +0);break b}c=c-6|0;e=ef(c);J[a+12>>2]=e;if(!e){Nc(d,1,2368819,0);a=0;break a}xc(e,b+6|0,c);J[a+16>>2]=c}a=1}fc=h+16|0;return a|0}function ISa(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;i=fc-16|0;fc=i;j=Ac(Gd(256,4),0,1024);f=-1;a:{if(J[b+32>>2]<=0){d=-1;e=-1;break a}e=-1;d=-1;while(1){g=J[b+28>>2]+P(c,20)|0;h=J[g+4>>2];g=J[g>>2];b:{if(!((g|0)!=3|(h|0)!=1)){f=c;break b}if(!((h|0)>=5|g)){f=c;break b}if(!(h|(g|0)!=1)){e=c;break b}d=(g|0)==3?h?d:c:d}c=c+1|0;if((c|0)>2])continue; +break}}c=J[a+24>>2];c:{d:{e:{if((e|0)>=0?J[a+1452>>2]:0)break e;if(!(!J[a+1448>>2]|J[a+32>>2]>=0)&(f|0)>=0)break d;h=(f|0)>=0;c=c&4;if(h&!c)break d;g=(e|0)>=0;if(g&!c)break e;c=0;f=(d|0)<0?h?f:g?e:0:d;while(1){e=(c<<2)+j|0;d=So(b,f,c);J[e>>2]=d;if(!d)k=e,l=So(b,f,c+61440|0),J[k>>2]=l;c=c+1|0;if((c|0)!=256)continue;break}break c}c=0;while(1){h=c<<2;d=J[(h+a|0)+164>>2];f:{g:{if(d){g=E_(J[J[693464]>>2],d);if(g){d=So(b,e,g);break g}if((f|0)<0)break f;d=PB(J[693464],d);J[i+12>>2]=d;if(!d)break f;d=So(b, +f,d);break g}d=-1;if((f|0)<0)break g;if(!Al(J[a+1444>>2],c,i+12|0,1))break g;d=So(b,e,J[i+12>>2])}J[h+j>>2]=d}c=c+1|0;if((c|0)!=256)continue;break}break c}c=0;while(1){h=c<<2;e=J[(h+a|0)+164>>2];h:{i:{if(e){d=PB(J[693464],e);J[i+12>>2]=d;if(d)break i}e=-1;if(!Al(J[a+1444>>2],c,i+12|0,1))break h;d=J[i+12>>2]}e=So(b,f,d)}J[h+j>>2]=e;c=c+1|0;if((c|0)!=256)continue;break}}c=0;while(1){e=c<<2;f=e+j|0;j:{if(J[f>>2]>0)break j;e=J[(a+e|0)+164>>2];if(!e)break j;d=J[b+60>>2];if(d)e=Pw(d,e);else e=0;J[f>>2]= +e}c=c+1|0;if((c|0)!=256)continue;break}fc=i+16|0;return j|0}function sva(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(f){a=e>>>0<8;c=h<<2;while(1){h=e;if(!a)while(1){J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;J[b+4>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|K[l+1|0]<<24;J[b+8>>2]=K[i+2|0]|K[j+2|0]<<8|K[k+2|0]<<16|K[l+2|0]<<24;J[b+12>>2]=K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|K[l+3|0]<<24;J[b+16>>2]=K[i+4|0]|K[j+4|0]<<8|K[k+4|0]<<16|K[l+4|0]<<24;J[b+ +20>>2]=K[i+5|0]|K[j+5|0]<<8|K[k+5|0]<<16|K[l+5|0]<<24;J[b+24>>2]=K[i+6|0]|K[j+6|0]<<8|K[k+6|0]<<16|K[l+6|0]<<24;J[b+28>>2]=K[i+7|0]|K[j+7|0]<<8|K[k+7|0]<<16|K[l+7|0]<<24;b=b+32|0;l=l+8|0;k=k+8|0;j=j+8|0;i=i+8|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 5:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 4:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24; +b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 3:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 2:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 1:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;case 0:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|K[l|0]<<24;b=b+4|0;l=l+1|0;k=k+1|0;j=j+1|0;i=i+1|0;break;default:break a}l=g+l|0;k=g+k|0;j=g+j|0;i=g+i|0;b=b+c|0;f=f-1|0;if(f)continue;break}}} +function ah(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;f=O[b+72>>3];h=O[b>>3];a:{b:{if(!K[b+120|0]){J[699344]=0;i=_(4,32)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;O[i+24>>3]=f;O[i+16>>3]=f;O[i+8>>3]=h;O[i>>3]=h;k=O[b+80>>3];g=O[b+8>>3];J[699344]=0;b=_(4,32)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;O[b>>3]=g;e=k;f=g;break b}e=O[b+104>>3];j=O[b+88>>3];J[699344]=0;i=_(4,32)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;O[i+24>>3]=f;O[i>>3]=h;O[i+16>>3]= +f+e;O[i+8>>3]=f+j;j=O[b+112>>3];l=O[b+96>>3];e=O[b+80>>3];f=O[b+8>>3];J[699344]=0;b=_(4,32)|0;m=J[699344];J[699344]=0;if((m|0)==1)break a;O[b>>3]=f;g=e+l;k=e+j}O[b+24>>3]=e;O[b+16>>3]=k;O[b+8>>3]=g;e=O[i+8>>3];j=e-h;c:{if(!(j>=-1E-12)|!(j<=1E-12))break c;j=O[b+8>>3]-f;if(!(j>=-1E-12)|!(j<=1E-12))break c;O[i+8>>3]=h;O[b+8>>3]=f;e=h}j=O[b+24>>3];n=O[b+16>>3];o=O[i+16>>3];l=O[i+24>>3];g=o-l;d:{if(!(g>=-1E-12)|!(g<=1E-12))break d;g=n-j;if(!(g>=-1E-12)|!(g<=1E-12))break d;O[i+16>>3]=l;n=j;o=l}r=o-e;g= +(e-h)*3;p=r*3-g;s=l-h-g-p;e=O[b+8>>3];k=(e-f)*3;t=n-e;q=t*3-k;u=j-f-k-q;e=O[c>>3];e:{if(e==0)break e;if(e!=1){h=((s*e+p)*e+g)*e+h;f=((u*e+q)*e+k)*e+f;break e}h=l;f=j}f:{if(J[d>>2]!=1)break f;c=e<1E-8;g:{if(c)break g;if(e>.99999999){k=(j-n)*3;g=(l-o)*3;break g}k=(u*3*e+(q+q))*e+k;g=(s*3*e+(p+p))*e+g}c=g==0&k==0&(c|e>.99999999);h=c?r:g;f=c?t:k;e=Y(h*h+f*f);if(e==0)break f;f=f/e;h=h/e}O[a+8>>3]=f;O[a>>3]=h;uc(b);uc(i);return}ea(0)|0;Bc();B()}function Ry(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;if((c|0)>1){e=J[a>>2];if(e){uc(e);J[a>>2]=0}a:{f=J[b+4>>2];if((f|0)<2)break a;h=J[b>>2];e=1;while(1){d=h+(e<<3)|0;if(!(O[d-8>>3]>O[d>>3])){e=e+1|0;if((f|0)!=(e|0))continue;break a}break}fa(202239,198656,952,206695);B()}f=Dc(c<<3);J[a>>2]=f;if(!f)return-1;J[a+4>>2]=c;if((c|0)>0)b:{a=0;d=J[b+4>>2];if((d|0)<=0){if(c>>>0>=8){h=c&-8;e=0;while(1){b=a<<3;d=b+f|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|8)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|16)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b| +24)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|32)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|40)|0;J[d>>2]=0;J[d+4>>2]=1072693248;d=f+(b|48)|0;J[d>>2]=0;J[d+4>>2]=1072693248;b=f+(b|56)|0;J[b>>2]=0;J[b+4>>2]=1072693248;a=a+8|0;e=e+8|0;if((h|0)!=(e|0))continue;break}}b=c&7;if(!b)break b;e=0;while(1){c=f+(a<<3)|0;J[c>>2]=0;J[c+4>>2]=1072693248;a=a+1|0;e=e+1|0;if((b|0)!=(e|0))continue;break}break b}p=+(c-1|0);k=d-1|0;j=+(k|0);l=J[b>>2];h=0;while(1){i=+(h|0)/p;e=0;q=f+(h<<3)|0;c:{d:{while(1){a=(e<<3)+l|0;g= +O[a>>3];if(i==g){a=e;while(1){b=a;a=b+1|0;g=1;if((d|0)<=(a|0))break c;if(i==O[(a<<3)+l>>3])continue;break}g=(+(e|0)/j+ +(b|0)/j)*.5;break c}if(!(!(i>g)|(e|0)>=(k|0))){m=O[a+8>>3];if(i>3]=g;h=h+1|0;if((h|0)!=(c|0))continue;break}}return 0}fa(204728,198656,944,206695);B()}function yYa(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;b=fc-32|0;fc=b;a:{if(J[a+ +108>>2]!=16)break a;c=J[a+104>>2];if(!c)break a;c=pm(c,340388,340400);if(!c)break a;g=J[a+224>>2];if(g){kc[J[J[g>>2]+12>>2]](g)|0;J[a+224>>2]=0}c=kc[J[J[c>>2]+596>>2]](c,(d|0)!=0)|0;J[a+224>>2]=c;kc[J[J[c>>2]+8>>2]](c)|0;b:{if(d)break b;c=(J[a+196>>2]+J[a+192>>2]|0)-1|0;c=J[(J[J[a+180>>2]+(c>>>7&33554428)>>2]+((c&511)<<3)|0)+4>>2];if(!c)break b;kc[J[J[c>>2]+20>>2]](c,f,b+16|0,0)}c:{if(!e)break c;c=J[J[a+224>>2]+8>>2];j=J[c+32>>2];if((j|0)<=0)break c;g=J[c+28>>2];if((g|0)<=0)break c;k=J[c+4>>2];c= +0;if(d)while(1){l=P(c,g);d=0;while(1){f=k+(d+l<<2)|0;O[b+16>>3]=+K[f+3|0]*.00390625;kc[J[J[e>>2]+16>>2]](e,b+16|0,b+8|0);h=O[b+8>>3]*255+.5;d:{if(R(h)<2147483648){i=~~h;break d}i=-2147483648}H[f+3|0]=i;d=d+1|0;if((g|0)!=(d|0))continue;break}c=c+1|0;if((j|0)!=(c|0))continue;break c}i=g<<2;while(1){l=P(c,g);m=k+P(c,i)|0;d=0;while(1){f=(d<<2)+m|0;O[b+16>>3]=+((P(K[f+1|0],150)+P(K[f+2|0],77)|0)+P(K[f|0],29)>>>8|0)*.00390625;kc[J[J[e>>2]+16>>2]](e,b+16|0,b+8|0);n=k+(d+l<<2)|0;h=O[b+8>>3]*255+.5;e:{if(R(h)< +2147483648){f=~~h;break e}f=-2147483648}H[n+3|0]=f;d=d+1|0;if((g|0)!=(d|0))continue;break}c=c+1|0;if((j|0)!=(c|0))continue;break}}d=J[a+196>>2];J[a+196>>2]=d-1;c=J[a+184>>2];e=J[a+180>>2];if((((c|0)!=(e|0)?(c-e<<7)-1|0:0)-(d+J[a+192>>2]|0)|0)+1>>>0<1024)break a;uc(J[c-4>>2]);J[a+184>>2]=J[a+184>>2]-4}fc=b+32|0}function R2a(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;e=J[a+24>>2];k=J[a+12>>2];d=J[a+8>>2];f=k-d|0;l=J[a+20>>2];i=J[a+16>>2];g=l-i>>1;h=(f|0)< +(g|0)?f:g;a:{if((h|0)<8){f=i;break a}g=h>>>3|0;c=g;f=i;b:{while(1){j=K[d|0];I[f>>1]=j;m=K[d+1|0];I[f+2>>1]=m;n=K[d+2|0];I[f+4>>1]=n;o=K[d+3|0];I[f+6>>1]=o;p=K[d+4|0];I[f+8>>1]=p;q=K[d+5|0];I[f+10>>1]=q;r=K[d+6|0];I[f+12>>1]=r;s=K[d+7|0];I[f+14>>1]=s;if((j|m|n|o|p|q|r|s)<<24>>24<0)break b;f=f+16|0;d=d+8|0;j=(c|0)>1;c=c-1|0;if(j)continue;break}c=0}g=g-c|0;c=g<<3;h=h-c|0;if(!e){e=0;c=0;break a}i=(c<<1)+i|0;c=0;if((g|0)<=0)break a;while(1){J[e>>2]=c;J[e+28>>2]=c|7;J[e+24>>2]=c|6;J[e+20>>2]=c|5;J[e+16>> +2]=c|4;J[e+12>>2]=c|3;J[e+8>>2]=c|2;J[e+4>>2]=c|1;e=e+32|0;c=c+8|0;j=g>>>0>1;g=g-1|0;if(j)continue;break}}c:{d:{e:{f:{if((h|0)<=0){g=d;break f}while(1){g=d+1|0;d=H[d|0];if((d|0)<0)break e;I[f>>1]=d&255;f=f+2|0;j=(h|0)>1;d=g;h=h-1|0;if(j)continue;break}}if(g>>>0>=k>>>0)break c;d=15;if(f>>>0>>0)break c;break d}h=J[a+4>>2];H[h+36|0]=1;H[h+37|0]=d;d=12}J[b>>2]=d}g:{if(!e){e=0;break g}if((f|0)==(i|0))break g;d=f-i>>1;b=d-1|0;i=d&7;if(i){h=0;while(1){J[e>>2]=c;d=d-1|0;e=e+4|0;c=c+1|0;h=h+1|0;if((i|0)!= +(h|0))continue;break}}if(b>>>0<7)break g;while(1){J[e>>2]=c;J[e+28>>2]=c+7;J[e+24>>2]=c+6;J[e+20>>2]=c+5;J[e+16>>2]=c+4;J[e+12>>2]=c+3;J[e+8>>2]=c+2;J[e+4>>2]=c+1;e=e+32|0;c=c+8|0;d=d-8|0;if(d)continue;break}}J[a+24>>2]=e;J[a+16>>2]=f;J[a+8>>2]=g}function lKa(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;g=fc-16|0;fc=g;a:{e=J[b+8>>2];b:{if(!e)break b;if(kc[J[J[e>>2]+12>>2]](e)|0)break b;i=J[e+8>>2];c:{if(i){e=U$(J[a+28>>2],i);break c}e=J[e+4>>2]}if(!e)break b;d:{if(J[e+4>>2]){h= +J[e+8>>2];f=V$(J[a+28>>2],h,J[e+12>>2]);break d}f=J[e+8>>2]}j=O[e+40>>3];h=f>>>0<=1?1:f;f=J[bj(J[a+28>>2],h)+12>>2];k=O[f+40>>3];l=O[f+56>>3];if(i)uc(e);i=g+4|0;e=J[b+4>>2];if(e)e=J[e>>2];else e=0;f=J[b+4>>2];if(f)f=J[f+4>>2];else f=0;Zr(i,e,f);J[699344]=0;da(3706,c|0,h-1|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;J[699344]=0;da(3706,c|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;k=l-k;f=k>j&j>0;J[699344]=0;j=(k-j)*100;e:{if(R(j)<2147483648){e=~~j;break e}e=-2147483648}da(3706,c|0,(f?e: +0)|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;J[699344]=0;e=K[g+15|0];f=e<<24>>24<0;ca(1638,c|0,(f?J[g+4>>2]:g+4|0)|0,(f?J[g+8>>2]:e)|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;J[699344]=0;$(3707,b|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;e=J[b+88>>2];f:{if(!e)break f;f=J[e+8>>2];if((f|0)<=0)break f;i=d+1|0;d=0;while(1){g:{h=J[J[e>>2]+(d<<2)>>2];if(!h)break g;J[699344]=0;ia(3708,a|0,h|0,c|0,i|0);h=J[699344];J[699344]=0;if((h|0)!=1)break g;break a}d=d+1|0;if((f|0)!=(d|0))continue;break}}J[699344]= +0;$(3709,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;if(H[g+15|0]>=0)break b;uc(J[g+4>>2])}fc=g+16|0;return}a=Z()|0;if(H[g+15|0]<0)uc(J[g+4>>2]);ba(a|0);B()}function NX(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;h=fc-16|0;fc=h;a:{b:{c:{d:{e:{f:{d=J[a+708>>2];switch(d|0){case 1:break d;case 0:break e;default:break f}}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break e;fd(a,67979);Vd(a,c);break a}d=J[a+200>>2];if(!(d&1))break c;if(d&4)J[a+200>>2]=d|8;Bd(a,J[a+740>>2]);d=sg(a,c+1|0);J[a+740>> +2]=d;if(!d){fd(a,68037);break a}Dg(a,d,c);Ae(a,d,c);d=Vd(a,0);e=J[a+740>>2];if(d){Bd(a,e);J[a+740>>2]=0;break a}H[c+e|0]=0;g=J[a+740>>2];e=g;while(1){d=e;e=d+1|0;if(K[d|0])continue;break}g:{if(c>>>0>=3){j=c+g|0;if(j-3>>>0>e>>>0)break g}fd(a,68069);Bd(a,J[a+740>>2]);J[a+740>>2]=0;break a}f=H[d+2|0];k=d+3|0;e=k;h:{i=K[d+1|0];if(!i)break h;if((i|0)!=1){fd(a,68090);Bd(a,J[a+740>>2]);J[a+740>>2]=0;break a}if(!f)break h;fd(a,68120);Bd(a,J[a+740>>2]);J[a+740>>2]=0;break a}while(1){d=K[e|0];l=e+1|0;e=l;if(d)continue; +break}if(e>>>0>=j>>>0)break b;while(1){d=K[e|0];e=e+1|0;if(d)continue;break}if(e>>>0>=j>>>0){fd(a,68150);Bd(a,J[a+740>>2]);J[a+740>>2]=0;break a}e=e-g|0;i:{if(i){vI(a,f,c,e,h+12|0);break i}m=h,n=Yc(e+g|0),J[m+12>>2]=n}f=sg(a,28);if(!f){fd(a,68171);Bd(a,J[a+740>>2]);J[a+740>>2]=0;break a}J[f>>2]=i?2:1;d=J[a+740>>2];J[f+20>>2]=d+(k-g|0);J[f+24>>2]=d+(l-g|0);c=J[h+12>>2];J[f+12>>2]=0;J[f+16>>2]=c;J[f+8>>2]=d+e;J[f+4>>2]=d;b=eI(a,b,f);Bd(a,f);Bd(a,J[a+740>>2]);J[a+740>>2]=0;if(!b)break a;Ld(a,68211); +B()}Vd(a,c);break a}Ld(a,68012);B()}fd(a,68069);Bd(a,J[a+740>>2]);J[a+740>>2]=0}fc=h+16|0}function YY(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{d=Ge(1,48);if(d){b=J[a+188>>2];c=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=c;c=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=c;c=J[b+20>>2];J[d+16>>2]=J[b+16>>2];J[d+20>>2]=c;c=J[b+24>>2];J[d+24>>2]=c;b=ef(P(c,24));J[d+28>>2]=b;if(!b){uc(d);return 0}c=J[J[a+188>>2]+28>>2];b:{if(c){xc(b,c,P(J[d+24>>2],24));break b}uc(b);J[d+28>>2]=0}c=J[J[a+188>>2]+36>>2];J[d+36>>2]=c; +b=Ge(c,40);J[d+40>>2]=b;if(!b){uc(J[d+28>>2]);uc(d);return 0}c:{if(J[J[a+188>>2]+40>>2]){if(!J[d+36>>2])break c;while(1){e=P(g,40);c=J[(e+J[J[a+188>>2]+40>>2]|0)+20>>2];J[(b+e|0)+20>>2]=c;f=ef(P(c,24));c=J[d+40>>2];b=c+e|0;J[b+24>>2]=f;if(!f){if(g){b=0;while(1){uc(J[(J[d+40>>2]+P(b,40)|0)+24>>2]);b=b+1|0;if((g|0)!=(b|0))continue;break}c=J[d+40>>2]}break a}c=J[(e+J[J[a+188>>2]+40>>2]|0)+24>>2];d:{if(c){xc(f,c,P(J[b+20>>2],24));b=J[d+40>>2];break d}uc(f);b=J[d+40>>2];J[(e+b|0)+24>>2]=0}c=J[(e+J[J[a+ +188>>2]+40>>2]|0)+4>>2];J[(b+e|0)+4>>2]=c;f=ef(P(c,24));c=J[d+40>>2];b=c+e|0;J[b+16>>2]=f;if(!f){if(g){b=0;while(1){a=P(b,40);uc(J[(a+J[d+40>>2]|0)+24>>2]);uc(J[(a+J[d+40>>2]|0)+16>>2]);b=b+1|0;if((g|0)!=(b|0))continue;break}c=J[d+40>>2]}break a}c=J[(e+J[J[a+188>>2]+40>>2]|0)+16>>2];e:{if(c){xc(f,c,P(J[b+4>>2],24));b=J[d+40>>2];break e}uc(f);b=J[d+40>>2];J[(e+b|0)+16>>2]=0}c=b+e|0;J[c+32>>2]=0;J[c+36>>2]=0;g=g+1|0;if(g>>>0>2])continue;break}break c}uc(b);J[d+40>>2]=0}}else d=0;return d|0}uc(c); +uc(J[d+28>>2]);uc(d);return 0}function AH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;a:{b:{c:{if(J[a+36>>2]<0){a=Qc(d,2390337,2390750,320,2426994,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break a}f=J[a+24>>2];if(!(!f|K[f+20|0])){a=Qc(d,2398492,2390750,322,2426994,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break a}J[a+36>>2]=1;f=qA(b);d:{if((f|0)<0)break d;e=K[b+4|0];if(!f){if(e)break d;break b}if((e|0)!=58)break d;if(qA(b+ +5|0))break d;if(!K[b+9|0])break b}a=Qc(d,2398692,2390750,329,2426994,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break a}B()}e=J[a+28>>2];if((e|0)>=J[a+32>>2]){J[d+24>>2]=0;J[d+28>>2]=0;if(e&1){e=J[a+16>>2];g=a,h=(kc[J[J[e>>2]+12>>2]](e,d+24|4,1)|0)+J[a+28>>2]|0,J[g+28>>2]=h}if(c){J[d+24>>2]=1411798081;g=a,h=Dt(J[a+16>>2],d+24|0,4)+J[a+28>>2]|0,J[g+28>>2]=h}J[d+24>>2]=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);e=d+24|0;c=Dt(J[a+16>>2],e,8)+J[a+28>>2]|0;J[a+32>>2]=c; +J[a+28>>2]=c;if(f){J[d+28>>2]=K[b+5|0]|K[b+6|0]<<8|(K[b+7|0]<<16|K[b+8|0]<<24);g=a,h=Dt(J[a+16>>2],e|4,4)+J[a+28>>2]|0,J[g+28>>2]=h;c=J[a+32>>2]}b=vc(24);e=J[a+24>>2];J[b+8>>2]=0;J[b+4>>2]=c;J[b>>2]=e;e=J[d+28>>2];c=J[d+24>>2];H[b+20|0]=(f|0)!=0;H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;c=f?e:0;H[b+16|0]=c;H[b+17|0]=c>>>8;H[b+18|0]=c>>>16;H[b+19|0]=c>>>24;J[a+24>>2]=b;fc=d+32|0;return}fa(2398959,2390750,332,2427043);B()}b=Z()|0;Kc(a);ba(b|0);B()}function PXa(a,b,c){a=a|0;b=b|0; +c=c|0;var d=0,e=0,f=0;d=fc+-64|0;fc=d;a=$B(a,b,c);J[a+340>>2]=0;J[a+344>>2]=0;J[a>>2]=837708;J[a+356>>2]=0;J[a+360>>2]=0;J[a+348>>2]=0;J[a+364>>2]=0;J[d+48>>2]=13;J[d+32>>2]=13;J[699344]=0;J[d+16>>2]=13;e=d+32|0;aa(3488,c|0,e|0)|0;f=J[699344];J[699344]=0;a:{if((f|0)==1)break a;b=J[b+24>>2];J[699344]=0;ha(3372,e|0,b|0,d+16|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;b=d+48|0;e=ha(3368,J[d+24>>2],812930,b|0,0)|0; +f=J[699344];J[699344]=0;if((f|0)==1)break a;b:{if(!e)break b;J[699344]=0;ca(3489,d+4|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(H[a+351|0]<0)uc(J[a+340>>2]);b=J[d+8>>2];J[a+340>>2]=J[d+4>>2];J[a+344>>2]=b;J[a+348>>2]=J[d+12>>2];b=K[a+351|0];if(!(b<<24>>24<0?J[a+344>>2]:b))break b;J[a+8>>2]=J[a+8>>2]|512}J[699344]=0;$(3370,d+48|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,d+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;b=_(3501,c|0)|0;e=J[699344];J[699344]= +0;if((e|0)==1)break a;if((b|0)>0){J[a+352>>2]=b;J[a+8>>2]=J[a+8>>2]|1024}if(K[c+51|0]&2){J[699344]=0;ma(3494,d+4|0,a|0,c|0,820165,11);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(H[a+367|0]<0)uc(J[a+356>>2]);b=J[d+8>>2];J[a+356>>2]=J[d+4>>2];J[a+360>>2]=b;J[a+364>>2]=J[d+12>>2]}fc=d- -64|0;return a|0}b=Z()|0;if(H[a+367|0]<0)uc(J[a+356>>2]);if(H[a+351|0]<0)uc(J[a+340>>2]);Tm(a);ba(b|0);B()}function c8(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;j=J[a+8>>2];a:{b:{l=J[a+12>>2];h=J[l+36>>2];c:{if((h| +0)<=0){if(!h)break c;c=6;break b}k=kc[J[j+4>>2]](j,h)|0;if(!k){c=64;break b}i=Ac(k,0,h)}J[i+100>>2]=j;J[i+96>>2]=a;J[i+104>>2]=J[b>>2];if(c)J[i+8>>2]=J[i+8>>2]|1024;d:{k=kc[J[j+4>>2]](j,68)|0;if(!k){c=64;break d}h=0;c=Ac(k,0,68);J[i+128>>2]=c;e:{if((e|0)<=0)break e;a=0;while(1){if(h)break e;h=0;m=(a<<3)+f|0;if(J[m>>2]==1768842098){h=J[m+4>>2];J[c+52>>2]=h}a=a+1|0;if((e|0)!=(a|0))continue;break}}J[c+60>>2]=-1;a=J[l+48>>2];f:{if(!a){J[b>>2]=J[i+104>>2];break f}c=kc[a|0](J[b>>2],i,d,e,f)|0;J[b>>2]=J[i+ +104>>2];if(c)break d}b=J[i+40>>2];g:{if(!b)break g;a=b+(J[i+36>>2]<<2)|0;c=a-4|0;h:{if(b>>>0<=c>>>0)while(1){h=J[c>>2];i:{if(J[h+4>>2]!=1970170211)break i;j:switch(L[h+8>>1]){case 3:if(L[h+10>>1]!=10)break i;break h;case 0:break j;default:break i}if(L[h+10>>1]==4)break h}c=c-4|0;if(b>>>0<=c>>>0)continue;break}while(1){a=a-4|0;if(b>>>0>a>>>0)break g;h=J[a>>2];if(J[h+4>>2]!=1970170211)continue;break}}J[i+92>>2]=h}J[g>>2]=i;return 0}if(J[i+36>>2]>0){h=0;while(1){d=h<<2;a=J[d+J[i+40>>2]>>2];b=J[J[a>> +2]+100>>2];e=J[J[a+12>>2]+8>>2];if(e)kc[e|0](a);kc[J[b+8>>2]](b,a);J[d+J[i+40>>2]>>2]=0;h=h+1|0;if((h|0)>2])continue;break}}a=J[i+40>>2];if(a)kc[J[j+8>>2]](j,a);J[i+36>>2]=0;J[i+40>>2]=0;a=0;break a}k=0;a=1}b=J[l+52>>2];if(b)kc[b|0](i);if(k)kc[J[j+8>>2]](j,k);if(!a)kc[J[j+8>>2]](j,i);J[g>>2]=0;return c}function Fo(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;f=fc-32|0;fc=f;a:{b:{c:{d:{c=L[a+8>>1];if(c){d=L[a+10>>1];if(d)break d}a=Qc(f+8|0,2392477,2385834,1283,2419203,0);J[699344]= +0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);break c}e=d;d=L[a+12>>1];e=e+d|0;I[a+14>>1]=e;if(!b){a=Qc(f+8|0,2393910,2385834,1286,2419203,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);break c}if(!J[a+24>>2]){xe(a+28|0,d+P(c,e&65535)|0,1);J[a+20>>2]=J[a+24>>2]}ri(a+28|0,1,0);c=f+8|0;LH(c,L[a+12>>1]+L[a+14>>1]|0);J[699344]=0;aa(5153,a+68|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[f+8>>2];J[f+8>>2]=0;e:{if(!c)break e;J[699344]= +0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=L[a+8>>1];if(c){g=c-1|0;h=(J[a+24>>2]+L[a+12>>1]|0)+P(g,L[a+14>>1])|0;c=0;while(1){e=K[b|0];if(e>>>0<192)b=b+1|0;else{e=K[b+1|0]|e<<8&16128;b=b+2|0}f:{g:{d=c+e|0;i=L[a+10>>1];if((d|0)<=(i|0)){if(e)break g;d=c;break f}a=Qc(f+8|0,2393640,2385834,1306,2419203,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);break c}Ac(c+ +h|0,j,e);i=L[a+10>>1]}h:{if((d|0)<(i|0)){j=1-j|0;break h}g=g-1|0;h=h-L[a+14>>1]|0;j=0;d=0}c=d;if((g|0)>=0)continue;break}}xe(a+40|0,0,1);xe(a+52|0,0,4);J[a+60>>2]=0;GA(a);fc=f+32|0;return}b=Z()|0;zc(f+8|0)}ba(b|0)}B()}ea(0)|0;Bc();B()}function MJ(a,b){var c=0,d=0,e=0;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[a>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);J[a+4>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<< +16|K[b+11|0]<<24);J[a+8>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);J[a+12>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+16|0]|K[b+17|0]<<8|(K[b+18|0]<<16|K[b+19|0]<<24);J[a+16>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+20|0]|K[b+21|0]<<8|(K[b+22|0]<<16|K[b+23|0]<<24);J[a+20>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[b+24|0]|K[b+25|0]<<8|(K[b+26|0]<<16|K[b+27|0]<<24);J[a+24>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b=K[b+28| +0]|K[b+29|0]<<8|(K[b+30|0]<<16|K[b+31|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);J[a+28>>2]=b;e=a+16|0;c=8;while(1){a:{b:switch(c&7){case 0:d=J[(c>>>1&2147483644)+2213440>>2];b=zEb(b,8);b=d^(K[(b>>>16&255)+2214160|0]<<16|K[(b>>>24|0)+2214160|0]<<24|K[(b>>>8&255)+2214160|0]<<8|K[(b&255)+2214160|0]);break a;case 4:break b;default:break a}b=K[(b&255)+2214160|0]|(K[(b>>>16&255)+2214160|0]<<16|K[(b>>>24|0)+2214160|0]<<24|K[(b>>>8&255)+2214160|0]<<8)}d=(c<<2)+a|0;b=J[d-32>>2]^b;J[d>>2]=b;c=c+1|0; +if((c|0)!=60)continue;break}Ah(e);Ah(a+32|0);Ah(a+48|0);Ah(a- -64|0);Ah(a+80|0);Ah(a+96|0);Ah(a+112|0);Ah(a+128|0);Ah(a+144|0);Ah(a+160|0);Ah(a+176|0);Ah(a+192|0);Ah(a+208|0)}function U8a(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=Q(e);f=f|0;var g=0,h=0,i=Q(0),j=Q(0),k=0;J[a>>2]=349384;J[a+4>>2]=4;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=1065353216;J[a+48>>2]=0;J[a+52>>2]=0;J[a+92>>2]=1;J[a+84>>2]=0;J[a+88>>2]=1;J[a+76>>2]=0;J[a+80>>2]=0;J[a+ +68>>2]=1056964608;J[a+72>>2]=1065353216;I[a- -64>>1]=0;J[a+56>>2]=1065353216;J[a+60>>2]=1065353216;h=a+96|0;g=h;J[g>>2]=0;J[g+4>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[699344]=0;g=_(4,24)|0;k=J[699344];J[699344]=0;if((k|0)==1){a=Z()|0;xk(h);ba(a|0);B()}h=g+24|0;J[a+148>>2]=h;J[a+140>>2]=g;J[g+16>>2]=0;J[g+20>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[a+144>>2]=h;Ac(a+156|0,0,88); +J[a+252>>2]=0;J[a+256>>2]=0;J[a+244>>2]=-16777216;J[a+248>>2]=-16777216;J[a+260>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+272>>2]=0;J[a+276>>2]=0;J[699344]=0;_(2256,a+280|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){c=Z()|0;b=J[a+268>>2];if(b){J[a+272>>2]=b;uc(b)}Se(a+88|0);ba(c|0);B()}J[a+288>>2]=0;J[a+292>>2]=0;J[a+312>>2]=0;J[a+316>>2]=0;J[a+304>>2]=0;J[a+308>>2]=0;J[a+296>>2]=0;J[a+300>>2]=0;i=N[b>>2];N[a+252>>2]=i;j=N[b+4>>2];N[a+256>>2]=j;N[a+260>>2]=i+N[b+8>>2];N[a+264>>2]=j+N[b+12>>2];J[a+244>>2]= +J[c>>2];b=J[d>>2];J[a+328>>2]=1;J[a+332>>2]=0;J[a+324>>2]=f;J[a+320>>2]=0;N[a+284>>2]=e;J[a+248>>2]=b;return a|0}function QL(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;J[c+20>>2]=a;h=b+60|0;J[c+24>>2]=h;J[c+12>>2]=J[b+220>>2];e=b;a:{b:{c:{d:{e:{while(1){f=K[a|0];if(!f|(f|0)==44)break b;H[e|0]=f;f=K[a+1|0];if(!f|(f|0)==44)break c;H[e+1|0]=f;f=K[a+2|0];if(!f|(f|0)==44)break d;H[e+2|0]=f;f=K[a+3|0];if(!f|(f|0)==44)break e;H[e+3|0]=f;f=K[a+4|0];if(!(!f|(f|0)==44)){if((g|0)==55)break a;H[e+4|0]=f;a=a+5|0;e= +e+5|0;g=g+5|0;continue}break}e=e+4|0;a=a+4|0;break b}e=e+3|0;a=a+3|0;break b}e=e+2|0;a=a+2|0;break b}e=e+1|0;a=a+1|0}H[e|0]=0;J[c+20>>2]=b;f:while(1){g:{e=K[a|0];h:{if((e|0)!=44){if(e)break h;break g}a=a+1|0}e=a;if(!ud(e,734451,7)){g=e+7|0;i=0;f=h;i:{j:{k:{while(1){e=K[g|0];if(!e){a=g;break j}if((e|0)==44){a=g;break j}a=g+1|0;if((i|0)==156){J[d>>2]=1;H[h|0]=0;break i}H[f|0]=e;j=f+1|0;e=K[a|0];if(!e){f=j;break j}if((e|0)==44){f=j;break j}H[f+1|0]=e;e=K[g+2|0];if(!e|(e|0)==44)break k;H[f+2|0]=e;e=K[g+ +3|0];if(!(!e|(e|0)==44)){H[f+3|0]=e;f=f+4|0;i=i+4|0;g=g+4|0;continue}break}f=f+3|0;a=g+3|0;break j}f=f+2|0;a=g+2|0}H[f|0]=0}if(!e|(e|0)==44)continue;break g}if(!ud(e,734542,8)){f=H[e+8|0];if(!f){a=J[b+220>>2]&-16;J[b+220>>2]=a;J[c+12>>2]=a;return}a=e+8|0;f=f-48|0;if((f&254)>>>0>9)continue;a=f|J[b+220>>2]&-16;J[b+220>>2]=a;J[c+12>>2]=a;a=e+9|0;continue}if(!ud(e,734620,8)){a=J[b+220>>2]|16;J[b+220>>2]=a;J[c+12>>2]=a;a=e+8|0;continue}while(1){a=e+1|0;f=K[e|0];if((f|0)==44)continue f;e=a;if(f)continue; +break}}break}return}J[d>>2]=1;H[b|0]=0}function O0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;t=fc-208|0;fc=t;n=J[a+332>>2];b=J[b+84>>2];a=t;while(1){f=J[b+192>>2];l=I[c+96>>1];h=J[b+64>>2];o=I[c+32>>1];j=P(I[c>>1],J[b>>2])<<13|1024;g=P(J[b+128>>2],I[c+64>>1]);m=j+P(g,-11586)>>11;i=P(J[b+32>>2],I[c+16>>1]);p=P(J[b+160>>2],I[c+80>>1]);q=P(J[b+96>>2],I[c+48>>1]);r=P(J[b+224>>2],I[c+112>>1]);k=q-r|0;s=i-(p+k|0)<<2;J[a+140>>2]=m-s; +J[a+40>>2]=m+s;l=P(f,l);h=P(h,o);f=P(l+h|0,6810);h=f+P(h,4209)|0;o=j+P(g,9373)|0;m=h+o|0;p=p<<13;s=p+P(k,2531)|0;q=q+r|0;r=P(q,7791);u=s+(r+P(i,11443)|0)|0;J[a+180>>2]=m-u>>11;J[a>>2]=m+u>>11;g=j+P(g,-3580)|0;j=f+P(l,-17828)|0;f=g-j|0;k=p+P(k,-6627)|0;l=P(q,4815);m=k+(P(i,5260)-l|0)|0;J[a+120>>2]=f-m>>11;J[a+60>>2]=f+m>>11;f=o-h|0;h=s+(P(i,1812)-r|0)|0;J[a+100>>2]=f-h>>11;J[a+80>>2]=f+h>>11;g=g+j|0;i=P(i,10323)-(k+l|0)|0;J[a+160>>2]=g-i>>11;J[a+20>>2]=g+i>>11;a=a+4|0;b=b+4|0;c=c+2|0;v=v+1|0;if((v| +0)!=5)continue;break}b=n+128|0;a=t;i=0;while(1){j=J[a+12>>2];k=J[a+4>>2];g=P(j+k|0,6810);c=J[(i<<2)+d>>2]+e|0;k=g+P(k,4209)|0;h=(J[a>>2]<<13)+131072|0;f=J[a+8>>2];n=J[a+16>>2];l=f-n|0;o=h+P(l,2896)|0;f=P(f+n|0,6476);n=o+f|0;H[c|0]=K[b+(k+n>>>18&1023)|0];H[c+4|0]=K[b+(n-k>>>18&1023)|0];g=g+P(j,-17828)|0;j=o-f|0;H[c+1|0]=K[b+(g+j>>>18&1023)|0];H[c+3|0]=K[b+(j-g>>>18&1023)|0];H[c+2|0]=K[b+(h+P(l,268423872)>>>18&1023)|0];a=a+20|0;i=i+1|0;if((i|0)!=10)continue;break}fc=t+208|0}function HEa(a,b,c,d){a= +a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;J[a>>2]=0;a:{b:{c:{d:{e:{f:{g:{e=J[b+16>>2];h:{if(e){i:{while(1){f=J[e+8>>2];J[699344]=0;f=aa(5236,f+8|0,c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;if(!f){e=J[e>>2];if(!e)break i;continue}break}J[699344]=0;aa(5153,a|0,e+8|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b}f=J[a>>2];if(f)break h}J[699344]=0;e=_(4,76)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[699344]=0;c=ga(5237,e|0,c|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;J[699344]=0; +aa(5145,a|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[699344]=0;c=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[c>>2]=0;J[c+4>>2]=0;e=J[a>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break c;e=J[a>>2]}else e=0;J[c+8>>2]=e;J[699344]=0;vf(b+8|0,c);c=J[699344];J[699344]=0;if((c|0)==1)break c;J[699344]=0;$(5238,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;f=J[a>>2]}e=J[f+60>>2];if(e){b=J[d>>2];while(1){if((b|0)==J[e+8>>2])break e;e=J[e>>2];if(e)continue; +break}}J[699344]=0;b=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break f;break c}c=Z()|0;uc(e);break a}J[b>>2]=0;J[b+4>>2]=0;c=J[d>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[d>>2]}else c=0;J[b+8>>2]=c;J[699344]=0;vf(f+52|0,b);b=J[699344];J[699344]=0;if((b|0)==1)break c}return}c=Z()|0;break a}c=Z()|0;break a}c=Z()|0}zc(a);ba(c|0);B()}function Gt(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;j=fc-32|0;fc=j;n=g*3.141592/180;o=Me(n); +m=qf(Ee(n)/f,o/e);s=j,t=e*Me(m)+c,O[s+24>>3]=t;s=j,t=f*Ee(m)+d,O[s+16>>3]=t;ce(b,j+24|0,j+16|0);O[j+8>>3]=O[j+24>>3]*25.4/96;O[j>>3]=O[j+16>>3]*25.4/96;kc[J[J[a>>2]+320>>2]](a,j+8|0,j)|0;if(R(g)<2147483648)k=~~g;else k=-2147483648;k=((k|0)/90|0)+1|0;p=k>>>0<=1?1:k;k=p>>>0>=4?4:p;if(R(h)<2147483648)l=~~h;else l=-2147483648;l=((l|0)/90|0)+1|0;q=l>>>0<=1?1:l;l=q>>>0>=4?4:q;o=h*3.141592/180;a:{if(!i){if(k>>>0>q>>>0)break a;g=o;if((k|0)!=(l|0))g=+Q(Q(Q(P(k,90)>>>0)*Q(3.141592025756836))/Q(180));h=Me(g); +XA(a,b,c,d,e,f,m,qf(Ee(g)/f,h/e),j+24|0,j+16|0);if(l>>>0<=p>>>0)break a;while(1){g=o;k=k+1|0;if((l|0)!=(k|0))g=+Q(Q(Q(P(k,90)>>>0)*Q(3.141592025756836))/Q(180));h=Me(g);g=Ee(g);n=+Q(Q(Q(P(k,90)-90>>>0)*Q(3.141592025756836))/Q(180));m=Me(n);XA(a,b,c,d,e,f,qf(Ee(n)/f,m/e),qf(g/f,h/e),j+24|0,j+16|0);if(k>>>0>>0)continue;break}break a}if(l>>>0>p>>>0)break a;g=o;if((k|0)!=(l|0))g=+Q(Q(Q(P(k,90)-90>>>0)*Q(3.141592025756836))/Q(180));h=Me(g);XA(a,b,c,d,e,f,m,qf(Ee(g)/f,h/e),j+24|0,j+16|0);i=k-1|0;if(l>>> +0>i>>>0)break a;while(1){g=n;if((i|0)!=(k|0))g=+Q(Q(Q(P(i,90)>>>0)*Q(3.141592025756836))/Q(180));h=o;if((i|0)!=(l|0))h=+Q(Q(Q(P(i,90)-90>>>0)*Q(3.141592025756836))/Q(180));m=Me(h);h=Ee(h);r=Me(g);XA(a,b,c,d,e,f,qf(Ee(g)/f,r/e),qf(h/f,m/e),j+24|0,j+16|0);i=i-1|0;if(l>>>0<=i>>>0)continue;break}}fc=j+32|0}function AL(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;a:{if(!a)break a;j=b>>10;if((j|0)>=J[a+44>>2])break a;k=J[a+40>>2]+a|0;j=J[(J[a+60>>2]+a|0)+(L[((J[a+52>> +2]+a|0)+(L[(k+(b>>>3&126)|0)+(L[k+(j<<1)>>1]<<1)>>1]<<3)|0)+((b&15)<<1)>>1]<<2)>>2];if(!j)break a;b:{c:{d:{if(j>>>0<=2031615){u=J[a+24>>2]+a|0;v=J[a+20>>2]+a|0;s=b-57344|0;w=s>>>0<6400;t=b-983040|0;x=t>>>0<131072;k=0;while(1){l=(j<<1)+v|0;o=(j<<2)+u|0;a=J[o>>2];if(!(!a|a&536870912|!((h|0)!=0|a>>>0>1073741823|w|x))){r=(m+n|0)+2|0;k=a}b=L[l>>1];e:{if((d|0)>(m|0)){j=(m<<1)+c|0;m=m+1|0;break e}if((f|0)<=(n|0))break d;j=(n<<1)+e|0;n=n+1|0}p=l+2|0;q=L[j>>1];a=0;j=b;f:{if(j>>>0<2)break f;while(1){if(b>>> +0<=4){if(q>>>0<=L[(a<<1)+p>>1])break f;b=a+1|0;if(!((b|0)>=(j|0)|q>>>0>L[(b<<1)+p>>1])){a=b;break f}b=a+2|0;if(!((b|0)>=(j|0)|q>>>0>L[(b<<1)+p>>1])){a=b;break f}a=a+3|0;break f}l=(a+j|0)/2|0;b=q>>>0>1];j=b?l:j;a=b?a:l;b=j-a|0;if((b|0)>1)continue;break}}if((a|0)<0|(a|0)>=(j|0)|(q|0)!=L[(a<<1)+p>>1])break c;j=J[(o+4|0)+(a<<2)>>2];if(j>>>0<16777216)continue;break}if(!((h|0)!=0|j>>>0>1073741823|s>>>0<6400|t>>>0<131072)|j&536870912)break c;r=(m+n|0)+2|0;k=j;break c}if(j&536870912)break a;r= +2;k=j;if(!((h|0)!=0|j>>>0>1073741823|b-57344>>>0<6400|b-983040>>>0<131072))break a;break b}if(i)break c;a=m+n|0;if((a|0)>19)break c;return-2-a|0}if(r)break b;return 0}o=1;if((k|0)==-2147483647)break a;J[g>>2]=k;o=r}return o}function Ncb(a,b){a=a|0;b=b|0;var c=0,d=Q(0),e=Q(0),f=Q(0),g=0,h=0,i=0;J[a>>2]=348916;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;h=a+36|0;c=h;J[c>>2]=0;J[c+4>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+60>>2]=0;J[a+64>>2]=1065353216;J[a+76>>2]=0;J[a+ +80>>2]=0;J[a+120>>2]=1;J[a+112>>2]=0;J[a+116>>2]=1;J[a+104>>2]=0;J[a+108>>2]=0;J[a+96>>2]=1056964608;J[a+100>>2]=1065353216;I[a+92>>1]=0;J[a+84>>2]=1065353216;J[a+88>>2]=1065353216;i=a+124|0;c=i;J[c>>2]=0;J[c+4>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[699344]=0;c=_(4,24)|0;g=J[699344];J[699344]=0;if((g|0)==1){a=Z()|0;xk(i);ba(a|0);B()}g=c+24|0;J[a+176>>2]=g;J[a+168>>2]=c;J[c+16>>2]=0;J[c+20>> +2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[a+172>>2]=g;Ac(a+184|0,0,88);J[a+284>>2]=1092616192;N[a+12>>2]=N[b+16>>2];N[a+16>>2]=N[b+20>>2];c=J[b+4>>2];J[a+20>>2]=J[b>>2];J[a+24>>2]=c;c=J[b+12>>2];J[a+28>>2]=J[b+8>>2];J[a+32>>2]=c;xc(h,b,80);J[699344]=0;c=a+116|0;aa(2342,c|0,b+80|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[a+272>>2]=0;J[a+276>>2]=0;if(N[a+108>>2]==Q(0))d=Q(1);else{e=N[a+12>>2];d=N[a+16>>2];a:{if(e>2]}N[a+276>>2]=d;d=Q(d+Q(1))}if(N[a+112>> +2]!=Q(0)){e=N[a+16>>2];f=N[a+12>>2];b:{if(e>2]}N[a+272>>2]=f}N[a+280>>2]=Q(1)/Q(d+f);return a|0}a=Z()|0;Se(c);ba(a|0);B()}function Xgb(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;i=fc-16|0;fc=i;b=J[b>>2];J[i+12>>2]=0;a:{if(!b){e=35;break a}e=6;g=J[b+132>>2];if(!g|M[b+16>>2]<=c>>>0)break a;e=3;h=L[g+4>>1];b=(h|0)==768;c=P(c?c-1|0:K[g+106|0],b?6:4)+(b?148:118)|0;f=b?-4:-2;b=J[g+8>>2];if(c>>>0>=(f+b|0)-2>>>0)break a;f=c+J[g+160>>2]|0;j=K[f|0]|K[f+ +1|0]<<8;J[a+80>>2]=j;c=b;if((h|0)==768)b=K[f+2|0]|K[f+3|0]<<8|(K[f+4|0]<<16|K[f+5|0]<<24);else b=K[f+2|0]|K[f+3|0]<<8;if(c>>>0<=b>>>0)break a;c=L[g+96>>1];e=0;J[a+100>>2]=0;H[a+94|0]=1;J[a+76>>2]=c;f=L[g+80>>1];J[a+72>>2]=1651078259;J[a+104>>2]=f;h=j<<6;J[a+40>>2]=h;c=c<<6;J[a+28>>2]=c;J[a+24>>2]=h;J[a+32>>2]=0;J[a+36>>2]=f<<6;Xu(a+24|0,c);if(d&4194304)break a;e=3;c=J[J[a+4>>2]+100>>2];h=J[g+160>>2];d=J[a+80>>2]+7|0;f=d>>>3|0;J[a+84>>2]=f;if(d>>>0<8)break a;j=J[g+8>>2];g=J[a+76>>2];if(j>>>0>>0)break a;c=_c(c,f,0,g,0,i+12|0);J[a+88>>2]=c;e=J[i+12>>2];if(e)break a;b=b+h|0;if(d&8){d=J[a+76>>2];if((d|0)>0){d=b+d|0;e=c;while(1){H[e|0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(d>>>0>b>>>0)continue;break}}c=c+1|0;d=f-1|0}else d=f;if((f|0)!=1)while(1){e=J[a+76>>2];if((e|0)>0){f=b+e|0;e=c;while(1){H[e|0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(f>>>0>b>>>0)continue;break}}e=J[a+76>>2];if((e|0)>0){f=b+e|0;e=c+1|0;while(1){H[e|0]=K[b|0];e=J[a+84>>2]+e|0;b=b+1|0;if(f>>>0>b>>>0)continue;break}}c=c+2|0;d= +d-2|0;if(d)continue;break}e=J[i+12>>2];J[J[a+156>>2]+4>>2]=1}fc=i+16|0;return e|0}function Wvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){o=e-2|0;p=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];f=a+2|0;g=g+2|0;a:{if(k>>>0>o>>>0)break a;j=k?(k|0)==(o|0)?d:b:c;l=!k&p;if(l){if(j>>>0<2)break a;h=j-1|0;i=h&3;if(j-2>>>0>=3){j=h&-4;h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+ +1|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];g=g+8|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}h=0;if(!i)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];g=g+2|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}h=j+1>>>1|0;b:{if(j>>>0<3)break b;i=h>>>0<=2?2:h;m=i-1|0;n=m&3;if(i-2>>>0>=3){m=m&-4;i=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];g=g+8|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;if(!n)break b;while(1){H[g| +0]=K[a|0];H[g+1|0]=K[a+1|0];g=g+2|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0>=j>>>0)break a;a=l?0:f;n=j+(h^-1)|0;i=0;l=j-h&3;if(l)while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];h=h+1|0;g=g+2|0;i=i+1|0;if((l|0)!=(i|0))continue;break}if(n>>>0<3)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];g=g+8|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function $K(a){var b= +0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+288>>2];a:{if((b|0)==1){b=J[a+292>>2];J[a+308>>2]=J[b+28>>2];c=J[b+32>>2];J[a+312>>2]=c;J[b+64>>2]=1;J[b+56>>2]=1;J[b+60>>2]=1;J[b+72>>2]=1;J[b+68>>2]=J[b+36>>2];d=b;b=J[b+12>>2];c=(c>>>0)%(b>>>0)|0;J[d+76>>2]=c?c:b;J[a+316>>2]=1;J[a+320>>2]=0;break a}if(b-5>>>0<=4294967291){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=27;J[J[a>>2]+28>>2]=4;kc[J[J[a>>2]>>2]](a)}b=P(J[a+376>>2],J[a+268>>2]);J[a+308>>2]=((b+J[a+64>>2]|0)-1|0)/(b|0);b=P(J[a+376>>2],J[a+272>>2]);b=((b+J[a+68>>2]| +0)-1|0)/(b|0)|0;J[a+316>>2]=0;J[a+312>>2]=b;if(J[a+288>>2]<=0)break a;h=a+320|0;while(1){c=J[((f<<2)+a|0)+292>>2];e=J[c+8>>2];J[c+56>>2]=e;g=J[c+12>>2];J[c+60>>2]=g;b=P(e,g);J[c+64>>2]=b;J[c+68>>2]=P(e,J[c+36>>2]);d=M[c+28>>2]%(e>>>0)|0;J[c+72>>2]=d?d:e;d=c;c=M[c+32>>2]%(g>>>0)|0;J[d+76>>2]=c?c:g;if((b+J[a+316>>2]|0)>=11){c=J[a>>2];J[c+20>>2]=14;kc[J[c>>2]](a)}b:{if((b|0)<=0)break b;e=0;c=b;g=b&3;if(g)while(1){d=J[a+316>>2];J[a+316>>2]=d+1;J[((d<<2)+a|0)+320>>2]=f;c=c-1|0;e=e+1|0;if((g|0)!=(e|0))continue; +break}if(b>>>0<4)break b;while(1){b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=J[a+316>>2];J[a+316>>2]=b+1;J[(b<<2)+h>>2]=f;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}f=f+1|0;if((f|0)>2])continue;break}}b=J[a+240>>2];if((b|0)>0){c=a;a=P(b,J[a+308>>2]);J[c+236>>2]=(a|0)>=65535?65535:a}}function rp(a){var b=0,c=0;c=fc-16|0;fc=c;a:{b:{c:{if((gf(a,c+12|0,4)|0)!=4)break c;d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{a= +K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if((a|0)<=1818850404){if((a|0)<=1749903735){if((a|0)<=1684632434){if((a|0)==1668246642)break o;if((a|0)==1684107883)break b;if((a|0)!=1684629094)break c;b=17;break a}if((a|0)==1684632435)break l;if((a|0)==1684633120)break h;if((a|0)!=1749838196)break c;b=12;break a}if((a|0)<=1816947059){if((a|0)==1749903736)break e;if((a|0)==1752524064)break p;if((a|0)!=1768188278)break c;b=4;break a}if((a|0)==1816947060)break f; +if((a|0)==1818391150)break g;if((a|0)!=1818518631)break c;b=9;break a}q:{if((a|0)<=1885434738){if((a|0)<=1852797548){if((a|0)==1818850405)break q;if((a|0)==1819634976)break n;if((a|0)!=1836411936)break c;b=3;break a}b=0;if((a|0)==1852797549)break a;if((a|0)==1870030194)break k;if((a|0)!=1884055924)break c;b=15;break a}if((a|0)<=1935897197){if((a|0)==1885434739)break d;if((a|0)==1934387572)break j;if((a|0)!=1935766560)break c;b=20;break a}if((a|0)==1935897198)break m;if((a|0)==1936553316)break i;if((a| +0)!=1984719220)break c;b=13;break a}b=6;break a}b=19;break a}b=21;break a}b=22;break a}b=7;break a}b=1;break a}b=10;break a}b=11;break a}b=18;break a}b=8;break a}b=5;break a}b=14;break a}b=16;break a}b=23;break a}fa(221288,220042,361,223662);B()}b=2}a=b;fc=c+16|0;return a}function eK(a,b){var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;f=9;a:{if((kc[J[J[a>>2]+8>>2]](a,b)|0)!=1)break a;if(kc[J[J[a>>2]+8>>2]](a,b+1|0)|0)break a;c=kc[J[J[a>>2]+8>>2]](a,b+2|0)|0;if((c|0)<0)break a;if((kc[J[J[a>>2]+8>>2]](a,b+ +3|0)|0)-5>>>0<4294967292)break a;c=b+c|0;if((c|0)<0)break a;if(!(kc[J[J[a>>2]+12>>2]](a,c,d+4|0)|0))break a;b=c+2|0;if(J[d+4>>2]){e=kc[J[J[a>>2]+8>>2]](a,b)|0;if(e-5>>>0<4294967292)break a;if(!(kc[J[J[a>>2]+24>>2]](a,(c+P(e,J[d+4>>2])|0)+3|0,e,d+8|0)|0))break a;c=J[d+8>>2];if((c|0)<0)break a;b=(b+c|0)+P(e,J[d+4>>2]+1|0)|0;if((b|0)<0)break a}if(!(kc[J[J[a>>2]+12>>2]](a,b,d+4|0)|0)|J[d+4>>2]<=0)break a;c=kc[J[J[a>>2]+8>>2]](a,b+2|0)|0;if(c-5>>>0<4294967292)break a;b=b+3|0;if(!(kc[J[J[a>>2]+24>>2]](a, +b,c,d+12|0)|0)|J[d+12>>2]<0)break a;if(!(kc[J[J[a>>2]+24>>2]](a,b+c|0,c,d+8|0)|0))break a;e=J[d+8>>2];if((e|0)<0)break a;g=J[d+12>>2];if(g>>>0>e>>>0)break a;g=b+g|0;b=P(c,J[d+4>>2]+1|0);c=g+b|0;if((c|0)<=0)break a;b=c+(b+e|0)|0;e=b+2|0;if((e|0)<=0|(c|0)>(e|0))break a;g=b+1|0;b=c-1|0;b:{if(c>>>0>=e>>>0)break b;while(1){f=3;c:{d:{e:{c=kc[J[J[a>>2]+8>>2]](a,b)|0;switch(c-28|0){case 0:break c;case 1:break d;default:break e}}f=2;if(c-247>>>0<8)break c;f=1;if(c-32>>>0<=214)break c;break b}f=5}b=b+f|0;if((g| +0)>(b|0))continue;break}}c=b+1|0;f:{if((c|0)>=(g|0))break f;if((kc[J[J[a>>2]+8>>2]](a,b)|0)!=12)break f;f=3;if((kc[J[J[a>>2]+8>>2]](a,c)|0)==30)break a}f=2}fc=d+16|0;return f}function e$(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;l=c;o=J[a+180>>2];q=J[a+188>>2];r=q+P(b,12)|0;m=J[r>>2];c=o+P(m,272)|0;O[l>>3]=O[c>>3];O[d>>3]=O[c+8>>3];n=J[a+324>>2];s=(n|0)<=0;a:{if(s)break a;c=0;a=0;if(n>>>0>=4){u=n&-4;d=(P(m,272)+o|0)+16|0;while(1){l=a<<3;O[l+e>>3]=O[d+l>>3];p=l|8;O[p+e>>3]= +O[d+p>>3];p=l|16;O[p+e>>3]=O[d+p>>3];l=l|24;O[l+e>>3]=O[d+l>>3];a=a+4|0;t=t+4|0;if((u|0)!=(t|0))continue;break}}d=n&3;if(!d)break a;l=P(m,272)+o|0;while(1){m=a<<3;O[m+e>>3]=O[(l+m|0)+16>>3];a=a+1|0;c=c+1|0;if((d|0)!=(c|0))continue;break}}l=J[r+4>>2];a=P(l,272)+o|0;O[f>>3]=O[a>>3];O[g>>3]=O[a+8>>3];b:{if(s)break b;d=0;a=0;if(n>>>0>=4){g=n&-4;e=(P(l,272)+o|0)+16|0;c=0;while(1){f=a<<3;O[f+h>>3]=O[e+f>>3];m=f|8;O[m+h>>3]=O[e+m>>3];m=f|16;O[m+h>>3]=O[e+m>>3];f=f|24;O[f+h>>3]=O[e+f>>3];a=a+4|0;c=c+4|0; +if((g|0)!=(c|0))continue;break}}c=n&3;if(!c)break b;e=P(l,272)+o|0;while(1){f=a<<3;O[f+h>>3]=O[(e+f|0)+16>>3];a=a+1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}f=J[(P(b,12)+q|0)+8>>2];a=P(f,272)+o|0;O[i>>3]=O[a>>3];O[j>>3]=O[a+8>>3];c:{if((n|0)<=0)break c;c=0;a=0;if(n>>>0>=4){g=n&-4;b=(P(f,272)+o|0)+16|0;d=0;while(1){e=a<<3;O[e+k>>3]=O[b+e>>3];h=e|8;O[h+k>>3]=O[b+h>>3];h=e|16;O[h+k>>3]=O[b+h>>3];e=e|24;O[e+k>>3]=O[b+e>>3];a=a+4|0;d=d+4|0;if((g|0)!=(d|0))continue;break}}b=n&3;if(!b)break c;d=P(f,272)+ +o|0;while(1){e=a<<3;O[e+k>>3]=O[(d+e|0)+16>>3];a=a+1|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}}function vs(a){var b=0,c=0,d=0,e=0;b=J[a+376>>2];if((b|0)>0)while(1){e=(d<<2)+a|0;c=J[e+460>>2];if(c){a:{b:switch(J[e+380>>2]-1|0){case 0:Mc(J[c+352>>2]);uc(c);break a;case 1:Mc(J[c+4>>2]);uc(c);break a;case 10:Mc(J[c+8>>2]);Mc(J[c+16>>2]);Mc(J[c+24>>2]);uc(c);break a;case 12:b=0;if(I[c+48>>1]>0)while(1){uc(J[(J[c+52>>2]+P(b,788)|0)+784>>2]);b=b+1|0;if((b|0)>1])continue;break}uc(J[c+52>>2]);uc(J[c+ +60>>2]);uc(J[c+96>>2]);uc(c);break a;case 14:case 15:if(c){Mc(J[c+3300>>2]);J[c+3300>>2]=0;b=c+3304|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3308|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3312|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3316|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3320|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3324|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3328|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3332|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3336|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3340|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3344|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3348|0;Mc(J[b>>2]);J[b>>2]=0;b=c+3352|0;Mc(J[b>> +2]);J[b>>2]=0;Mc(J[c+1892>>2]);Mc(J[c+2500>>2]);Mc(J[c+2508>>2]);Mc(J[c+2516>>2]);Mc(J[c+2576>>2]);Mc(J[c+2880>>2]);Mc(J[c+2888>>2]);Mc(J[c+2896>>2]);Mc(J[c+2932>>2]);uc(c)}break a;default:break b}Mc(c)}J[e+460>>2]=0;b=J[a+376>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}J[a+376>>2]=0;Mc(J[a+32>>2]);J[a+32>>2]=0;Mc(J[a+548>>2]);J[a+548>>2]=0;Mc(J[a+372>>2]);J[a+372>>2]=0;Mc(J[a+76>>2]);J[a+76>>2]=0;Mc(J[a+92>>2]);J[a+92>>2]=0;Mc(J[a+96>>2]);J[a+96>>2]=0;Mc(J[a+100>>2]);J[a+100>>2]=0;Mc(J[a+104>>2]); +J[a+104>>2]=0}function oE(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,r=0,s=0,t=0,u=0,v=0;i=fc-16|0;f=1;a:{b:{c:switch(J[a>>2]){case 1:break a;case 0:break b;default:break c}while(1){e=f;while(1){d=P(e,12)+b|0;g=d-12|0;if(J[d>>2]>2]){J[i+8>>2]=J[d+8>>2];j=J[d+4>>2];J[i>>2]=J[d>>2];J[i+4>>2]=j;J[d+8>>2]=J[g+8>>2];j=J[g+4>>2];J[d>>2]=J[g>>2];J[d+4>>2]=j;J[g+8>>2]=J[i+8>>2];d=J[i+4>>2];J[g>>2]=J[i>>2];J[g+4>>2]=d;e=e-1|0;if(e)continue}break}f=f+1|0;j=J[a>>2];if(f>>>0>> +0)continue;break}f=1;if(j>>>0<2)break b;p=b+36|0;q=b+24|0;r=b+12|0;m=j-1|0;n=J[b>>2];g=0;d=1;while(1){h=(d|0)==(m|0);f=J[P(d,12)+b>>2]-n|0;d:{if(!(h|(f|0)>(c|0))){f=d;break d}i=0;h=h&(c|0)>=(f|0);f=h+d|0;e=g;e:{if(g>>>0>=f>>>0)break e;e=(d+h|0)-g|0;o=e&3;l=0;d=g;if(e-1>>>0>=3){s=e&-4;e=0;while(1){h=P(d,12);k=h+b|0;t=J[k>>2];J[k>>2]=0;k=h+r|0;u=J[k>>2];J[k>>2]=0;k=h+q|0;v=J[k>>2];J[k>>2]=0;h=h+p|0;k=J[h>>2];J[h>>2]=0;i=(((i+t|0)+u|0)+v|0)+k|0;d=d+4|0;e=e+4|0;if((s|0)!=(e|0))continue;break}}e=f;if(!o)break e; +while(1){e=P(d,12)+b|0;h=J[e>>2];J[e>>2]=0;d=d+1|0;i=i+h|0;l=l+1|0;if((l|0)!=(o|0))continue;break}e=f}J[P(g,12)+b>>2]=(i|0)/(e|0);if(f>>>0>=m>>>0)break d;g=f+1|0;n=J[P(g,12)+b>>2]}d=f+1|0;if(j>>>0>d>>>0)continue;break}f=1;if(j>>>0<=1)break b;d=1;while(1){c=P(d,12)+b|0;if(J[c>>2]){g=J[c+4>>2];e=P(f,12)+b|0;J[e>>2]=J[c>>2];J[e+4>>2]=g;J[e+8>>2]=J[c+8>>2];j=J[a>>2];f=f+1|0}d=d+1|0;if(j>>>0>d>>>0)continue;break}}J[a>>2]=f}}function j3(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=Q(0),j=0,k=0,l=0,m=0,n=0,o=0,p= +0,q=Q(0),r=0;f=fc-16|0;fc=f;c=H[a+48|0];h=J[a+28>>2];l=J[a>>2];d=J[a+24>>2];a:{b:{if((d|0)>J[a+32>>2]){if((c|0)>26)break a;c=c+1|0;break b}if((c|0)<=0|(d|0)>=J[a+36>>2])break a;c=c-1|0}c:{if(J[b>>2]>0)break c;H[a+48|0]=c;c=J[(c<<2)+736848>>2];J[a+28>>2]=c;d=ji(P(c,12));J[a>>2]=d;if(!d){J[b>>2]=7;break c}c=J[a+28>>2];if((c|0)>0){e=P(c,12)+d|0;while(1){J[d+8>>2]=0;J[d>>2]=-2147483647;J[d+4>>2]=0;d=d+12|0;if(e>>>0>d>>>0)continue;break}}J[a+24>>2]=0;i=Q(c|0);q=Q(N[a+44>>2]*i);d:{if(Q(R(q))>2]=c;i=Q(N[a+40>>2]*i);e:{if(Q(R(i))>2]=c;if(J[b>>2]>0)break c;if((h|0)>0)while(1){c=h-1|0;e=P(c,12)+l|0;k=J[e>>2];if((k|0)>=0){J[f+8>>2]=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);m=0;g=-1;b=J[a+28>>2];n=(k^67108864)%(b|0)|0;d=n;o=J[a>>2];f:{g:{while(1){r=P(d,12);j=r+o|0;p=J[j>>2];h:{if((p|0)==(k|0)){b=J[a+8>>2];J[f+4>>2]=J[f+8>>2];J[f>>2]=J[(o+r|0)+8>>2];if(kc[b|0](f+4|0,f)|0)break f;b=J[a+28>>2];break h}if((p| +0)>=0)break h;g=(g|0)<0?d:g;if((p|0)==-2147483647)break g}if(!m)m=((k|0)%(b-1|0)|0)+1|0;d=(d+m|0)%(b|0)|0;if((n|0)!=(d|0))continue;break}g=(g|0)<0?n:g}j=o+P(g,12)|0}J[j+8>>2]=J[e+8>>2];J[j+4>>2]=J[e+4>>2];J[j>>2]=J[e>>2];J[a+24>>2]=J[a+24>>2]+1}b=(h|0)>1;h=c;if(b)continue;break}Nf(l);break a}J[a+28>>2]=h;J[a>>2]=l}fc=f+16|0}function ui(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+48>>2];if(g>>>0>=c>>>0){xc(b,J[a+36>>2],c);J[a+36>>2]=J[a+36>>2]+c;J[a+48>>2]=J[a+48>>2]-c;f=J[a+60>>2];b=J[a+56>>2]+c|0; +f=b>>>0>>0?f+1|0:f;J[a+56>>2]=b;J[a+60>>2]=f;return c}if(K[a+68|0]&4){xc(b,J[a+36>>2],g);c=J[a+48>>2];J[a+48>>2]=0;J[a+36>>2]=c+J[a+36>>2];b=J[a+60>>2];d=c;c=J[a+56>>2]+c|0;b=d>>>0>c>>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;return g?g:-1}a:{if(g){h=xc(b,J[a+36>>2],g);i=J[a+32>>2];J[a+36>>2]=i;e=J[a+48>>2];J[a+48>>2]=0;b=J[a+60>>2];f=J[a+56>>2]+e|0;b=f>>>0>>0?b+1|0:b;J[a+56>>2]=f;J[a+60>>2]=b;c=c-e|0;b=e+h|0;break a}i=J[a+32>>2];J[a+36>>2]=i}b:{c:{while(1){d:{e=J[a>>2];h=J[a+16>>2];f=J[a+64>>2]; +e:{if(f>>>0>c>>>0){h=kc[h|0](i,f,e)|0;J[a+48>>2]=h;if((h|0)==-1)break b;if(c>>>0<=h>>>0)break d;xc(b,J[a+36>>2],h);i=J[a+32>>2];J[a+36>>2]=i;e=J[a+48>>2];break e}e=kc[h|0](b,c,e)|0;J[a+48>>2]=e;if((e|0)==-1)break b;if(c>>>0<=e>>>0)break c;i=J[a+32>>2];J[a+36>>2]=i;h=e}J[a+48>>2]=0;f=J[a+60>>2];j=J[a+56>>2]+e|0;f=j>>>0>>0?f+1|0:f;J[a+56>>2]=j;J[a+60>>2]=f;b=b+e|0;c=c-e|0;g=g+h|0;continue}break}xc(b,J[a+36>>2],c);J[a+36>>2]=J[a+36>>2]+c;J[a+48>>2]=J[a+48>>2]-c;b=J[a+60>>2];d=J[a+56>>2]+c|0;b=d>>> +0>>0?b+1|0:b;J[a+56>>2]=d;J[a+60>>2]=b;return c+g|0}J[a+48>>2]=0;J[a+36>>2]=J[a+32>>2];b=J[a+60>>2];c=J[a+56>>2]+e|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;return e+g|0}Nc(d,4,2352113,0);J[a+48>>2]=0;J[a+68>>2]=J[a+68>>2]|4;return g?g:-1}function dba(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;r=fc;i=b+1|0;l=r-((P(i>>>1|0,c)<<2)+15&-16)|0;fc=l;a:{if((b|0)<2)break a;m=(P(1-e|0,d)<<2)+a|0;p=i-e>>1;i=e?p:b-p|0;b:{if((i|0)<=0|(c|0)<=0)break b;o=d<<1;j=c<<2;h=i;f= +m;g=l;k=i&3;if(k)while(1){g=xc(g,f,j);h=h-1|0;f=(o<<2)+f|0;g=g+j|0;n=n+1|0;if((k|0)!=(n|0))continue;break}if(i>>>0<4)break b;while(1){g=xc(g,f,j);q=f;f=o<<2;k=q+f|0;n=f+k|0;s=f+n|0;f=f+s|0;q=g;g=c<<2;g=xc(xc(xc(q+g|0,k,j)+g|0,n,j)+g|0,s,j)+g|0;k=h-5|0;h=h-4|0;if(k>>>0<4294967294)continue;break}}g=(b-!e|0)-i|0;if(!((g|0)<=0|(c|0)<=0)){o=c&-8;j=c&7;e=(P(2-e|0,d)<<2)+a|0;k=c>>>0<8;n=d<<3;while(1){h=0;f=m;b=e;if(!k)while(1){J[f>>2]=J[b>>2];J[f+4>>2]=J[b+4>>2];J[f+8>>2]=J[b+8>>2];J[f+12>>2]=J[b+12>>2]; +J[f+16>>2]=J[b+16>>2];J[f+20>>2]=J[b+20>>2];J[f+24>>2]=J[b+24>>2];J[f+28>>2]=J[b+28>>2];b=b+32|0;f=f+32|0;h=h+8|0;if((o|0)!=(h|0))continue;break}h=0;if(j)while(1){J[f>>2]=J[b>>2];b=b+4|0;f=f+4|0;h=h+1|0;if((j|0)!=(h|0))continue;break}e=e+n|0;m=(d<<2)+m|0;b=(g|0)>1;g=g-1|0;if(b)continue;break}}if((i|0)<=0|(c|0)<=0)break a;e=c<<2;h=(P(d,p)<<2)+a|0;a=i&3;c:{if(!a){b=i;break c}g=0;b=i;while(1){f=xc(h,l,e);b=b-1|0;l=e+l|0;h=(d<<2)+f|0;g=g+1|0;if((a|0)!=(g|0))continue;break}}if(i>>>0<4)break a;while(1){f= +xc(h,l,e);a=c<<2;i=a+l|0;m=a+i|0;h=m+a|0;l=h+a|0;a=d<<2;h=xc(xc(xc(a+f|0,i,e)+a|0,m,e)+a|0,h,e)+a|0;a=b-5|0;b=b-4|0;if(a>>>0<4294967294)continue;break}}fc=r}function dD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if(!d|(!a|!c))break a;h=J[d>>2];if((b|0)<=536870911){f=wEb(b<<2,b>>31<<2|b>>>30,3,0);f=e&1?f:((b|0)%3|0)+f|0;j=(f|0)/76|0;i=f-P(j,76)|0;b:{if(!i)break b;i=(i<<24>>24)%4|0;if(!i)break b;f=((0-i<<24>>24)+f|0)+4|0}f=(e&2?0:(j<<1)+2|0)+f|0}else f= +-1;if((f|0)>(h|0))break a;o=(b|0)/57|0;c:{if((b|0)<-56)break c;p=e&2;h=((b|0)/3<<2)%76>>2;f=19;while(1){k=0;j=(l|0)==(o|0);f=j?h:f;if((f|0)>0)while(1){m=K[a+1|0];n=K[a|0];i=K[a+2|0];H[c+3|0]=K[(i&63)+415664|0];H[c|0]=K[(n>>>2|0)+415664|0];H[c+2|0]=K[((i<<20|m<<28)>>>26|0)+415664|0];H[c+1|0]=K[((n<<30|m<<22)>>>26|0)+415664|0];a=a+3|0;c=c+4|0;k=k+1|0;if((k|0)!=(f|0))continue;break}g=(f<<2)+g|0;if(!p){H[c|0]=13;H[c+1|0]=10;g=g+2|0;c=c+2|0}l=l+1|0;if(!j)continue;break}if(!g){g=0;break c}if(e&2)break c; +g=g-2|0;c=c-2|0}k=1;h=(b|0)%3|0;i=h+1|0;d:{if(i>>>0<2)break d;f=0;e:{f:{if((h|0)>0){f=K[a|0]<<8;if((h|0)==1)break f;f=K[a+1|0]|f;break f}if((h|0)<0)break e}a=f<<16;b=h+1|0;j=b&3;if(h>>>0>=3){b=b&-4;f=0;while(1){H[c+3|0]=65;H[c|0]=K[(a>>>26|0)+415664|0];H[c+2|0]=K[(a>>>14&63)+415664|0];H[c+1|0]=K[(a>>>20&63)+415664|0];c=c+4|0;a=0;f=f+4|0;if((b|0)!=(f|0))continue;break}}if(!j)break e;f=0;while(1){H[c|0]=K[(a>>>26|0)+415664|0];a=a<<6;c=c+1|0;f=f+1|0;if((j|0)!=(f|0))continue;break}}if(e&1){g=g+i|0;break d}a= +3-h|0;Ac(c,61,(a|0)<=1?1:a);g=g+4|0}J[d>>2]=g}return k|0}function io(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=J[a+88>>2];b=J[a+32>>2]+(b<<4)|0;g=J[b+8>>2];I[h+12>>1]=g+32>>>6;j=J[b+12>>2];I[h+14>>1]=j+32>>>6;a:{b:{c:{d:{if(H[a+8|0]&1){l=h+12|0;d=L[a+68>>1];if(!d){e=2147483647;J[h+16>>2]=(g|0)<0?-2147483647:2147483647;break a}b=g>>31;e=(b^g)-b|0;if(e>>>0<=65535){b=((e<<16|d>>>1)>>>0)/(d>>>0)|0;break c}b=2147483647;c=e>>>16|0;if(c>>>0>=d>>>0)break c;b=e<<16|d>>>1;i=S(c);f=32-i|0;c=b>>>f|c<< +i;e=(c>>>0)/(d>>>0)|0;c=c-P(d,e)|0;b=b<>>31;f=c>>>0>=d>>>0;c=c-(f?d:0)|0;e=f|e<<1;f=31-i|0;b=b<<1}if((i|0)!=31)while(1){c=c<<1|b>>>31;i=c>>>0>=d>>>0;c=b>>>30&1|c-(i?d:0)<<1;k=c>>>0>=d>>>0;c=c-(k?d:0)|0;e=e<<2|i<<1|k;b=b<<2;f=f-2|0;if(f)continue;break}J[h+16>>2]=(g|0)<0?0-e|0:e;if(!d)break d;b=j>>31;b=(b^j)-b|0;break b}J[h+28>>2]=0;J[h+24>>2]=j;J[h+16>>2]=65536;J[h+20>>2]=65536;a=I[b>>1];J[h+36>>2]=g;J[h+32>>2]=a<<6;return}e=2147483647;break a}J[h+16>>2]=(g|0)<0?0-b|0:b;b=j>>31; +b=(b^j)-b|0}if(b>>>0<=65535){e=((b<<16|d>>>1)>>>0)/(d>>>0)|0;break a}e=2147483647;c=b>>>16|0;if(c>>>0>=d>>>0)break a;b=b<<16|d>>>1;g=S(c);f=32-g|0;c=b>>>f|c<>>0)/(d>>>0)|0;c=c-P(d,e)|0;b=b<>>31;f=c>>>0>=d>>>0;c=c-(f?d:0)|0;e=f|e<<1;f=31-g|0;b=b<<1}if((g|0)==31)break a;while(1){c=c<<1|b>>>31;g=c>>>0>=d>>>0;c=b>>>30&1|c-(g?d:0)<<1;i=c>>>0>=d>>>0;c=c-(i?d:0)|0;e=i|(e<<2|g<<1);b=b<<2;f=f-2|0;if(f)continue;break}}J[h+20>>2]=(j|0)<0?0-e|0:e;_7(a,l)}function Cra(a,b,c,d){a=a| +0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;J[a>>2]=0;a:{b:{c:{d:{if(c){J[699344]=0;f=_(4,2860)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=0;e:{g=J[b>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[b>>2]}J[699344]=0;J[e+12>>2]=c;c=e+12|0;b=ga(5721,f|0,c|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1){b=Z()|0;zc(c);uc(f);break b}J[699344]=0;aa(5145,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){a=J[e+12>>2];J[e+12>>2]=0;if(!a)break d;J[699344]= +0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}b=Z()|0;zc(e+12|0);break b}b=Z()|0;uc(f);break b}J[699344]=0;f=_(4,2860)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=0;f:{g=J[b>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break f;c=J[b>>2]}J[699344]=0;J[e+8>>2]=c;c=e+8|0;b=ga(5722,f|0,c|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1){b=Z()|0;zc(c);uc(f);break b}J[699344]= +0;aa(5145,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){a=J[e+8>>2];J[e+8>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}b=Z()|0;zc(e+8|0);break b}b=Z()|0;uc(f);break b}fc=e+16|0;return}b=Z()|0}zc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function h6(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;g=fc-16|0;fc=g;d=J[a+104>>2];h=J[d+28>>2];m=J[a+ +736>>2];H[m+(b?44:32)|0]=1;c=kc[J[a+516>>2]](a,b?1448493394:1213612370,d,g+8|0)|0;J[g+12>>2]=c;a:{if(c)break a;j=J[d+8>>2];k=g+12|0;e=ee(d,k);c=J[g+12>>2];if(c)break a;c=kg(d,2);J[g+12>>2]=c;if(c)break a;c=8;if((e|0)!=1)break a;e=Rf(d,k);c=J[g+12>>2];if(c)break a;d=Rf(d,k);c=J[g+12>>2];if(c)break a;f=he(h,32,k);b:{if(b){J[m+52>>2]=f;break b}J[m+40>>2]=f}c=J[g+12>>2];if(c)break a;c=j6(J[a+104>>2],J[a+736>>2],e+j|0,f);J[g+12>>2]=c;if(c)break a;if(d){i=fc-16|0;fc=i;l=J[a+104>>2];h=J[l+28>>2];c=yd(l, +d+j|0);J[i+12>>2]=c;c:{if(c)break c;j=i+12|0;d=ee(l,j);c=J[i+12>>2];if(c)break c;e=ee(l,j);J[f+20>>2]=e;c=J[i+12>>2];if(c)break c;c=8;if(d>>>0>63)break c;q=f,r=_c(h,4,0,e,0,j),J[q+28>>2]=r;c=J[i+12>>2];if(c)break c;q=f,r=_c(h,4,0,J[f+20>>2],0,j),J[q+24>>2]=r;c=J[i+12>>2];if(c)break c;if(!J[f+20>>2]){c=0;break c}k=d>>>4|0;c=d&15;j=c+1|0;d=(2<>2];if(c)break c;n=e&255|n<<8;c=(h|0)!=(k|0);h=h+1|0;if(c)continue;break}c=8;e=n>>>j|0;if(e>>>0>=M[f>> +2])break c;h=o<<2;J[h+J[f+24>>2]>>2]=e;p=J[J[f+4>>2]+(e<<4)>>2];e=d&n;if(p>>>0<=e>>>0)break c;J[J[f+28>>2]+h>>2]=e;o=o+1|0;if(o>>>0>2])continue;break}c=J[i+12>>2]}fc=i+16|0;if(c)break a}H[(b?45:33)+m|0]=1;J[a+740>>2]=J[a+740>>2]|(b?16:2);c=0}fc=g+16|0;return c}function Uyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+2248>>2]+88>>2];d=J[b+1168>>2];c=(J[b+1176>>2]+P(d,J[a+572>>2])|0)+P(d,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0; +f=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((f|0)<=0)break a;f=0;while(1){c=K[b|0]|K[b+1|0]<<8;e=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=e+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;c=b+2|0;e=K[c|0]|K[c+1|0]<<8;g=(e<<8|e>>>8)&65535;e=K[d+2|0]|K[d+3|0]<<8;e=g+((e<<8|e>>>8)&65535)&65535;e=e<<8|e>>>8;H[c|0]=e;H[c+1|0]=e>>>8;c=b+4|0;e=K[c|0]|K[c+1|0]<<8;g=(e<<8|e>>>8)&65535;e=K[d+4|0]|K[d+5|0]<<8;e=g+((e<<8|e>>>8)&65535)&65535;e=e<<8|e>>>8;H[c|0]=e;H[c+1|0]=e>>>8;d=d+6|0;b=P(J[a+ +584>>2],6)+b|0;c=J[a+588>>2];f=f+1|0;if((c|0)>(f|0))continue;break}break b}if((f|0)<=0)break a;f=0;while(1){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0];H[b+3|0]=K[d+3|0];H[b+4|0]=K[d+4|0];H[b+5|0]=K[d+5|0];d=d+6|0;b=P(J[a+584>>2],6)+b|0;c=J[a+588>>2];f=f+1|0;if((c|0)>(f|0))continue;break}}if((c|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;c=0;while(1){f=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[b| +0]=f;H[b+1|0]=f>>>8;H[b+2|0]=f>>>16;H[b+3|0]=f>>>24;f=K[d+4|0]|K[d+5|0]<<8;H[b+4|0]=f;H[b+5|0]=f>>>8;d=d+6|0;b=P(J[a+584>>2],6)+b|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Rvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(e){m=e-2|0;o=(e|0)==1;while(1){h=f;H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];f=h+4|0;g=g+4|0;a:{if(k>>>0>m>>>0)break a;i=k?(k|0)==(m|0)?d:b:c;n=!k&o;if(n){if(i>>>0<2)break a;a= +i-1|0;l=a&1;if((i|0)!=2){j=a&-2;a=0;while(1){H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];H[g+4|0]=K[h|0];H[g+5|0]=K[h+1|0];H[g+6|0]=K[h+2|0];H[g+7|0]=K[h+3|0];g=g+8|0;a=a+2|0;if((j|0)!=(a|0))continue;break}}if(!l)break a;H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];g=g+4|0;break a}j=i+1>>>1|0;b:{if(i>>>0<3)break b;a=(j>>>0<=2?2:j)-1|0;p=a&1;if(i>>>0>=5){l=a&-2;a=0;while(1){H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];H[g+4|0]=K[h| +0];H[g+5|0]=K[h+1|0];H[g+6|0]=K[h+2|0];H[g+7|0]=K[h+3|0];g=g+8|0;a=a+2|0;if((l|0)!=(a|0))continue;break}}if(!p)break b;H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];g=g+4|0}if(i>>>0<=j>>>0)break a;h=n?0:f;if(i-j&1){H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];g=g+4|0;a=j+1|0}else a=j;if((0-i^j)==-1)break a;while(1){H[g|0]=K[h|0];H[g+1|0]=K[h+1|0];H[g+2|0]=K[h+2|0];H[g+3|0]=K[h+3|0];H[g+4|0]=K[h|0];H[g+5|0]=K[h+1|0];H[g+6|0]=K[h+2|0];H[g+7|0]=K[h+3|0];g= +g+8|0;a=a+2|0;if((i|0)!=(a|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function GA(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=fc-32|0;fc=e;a:{b:{c:{d:{if(!J[a+20>>2])break d;f=L[a+14>>1];b=L[a+12>>1];if(J[685890]<(f+b|0)){a=Qc(e+8|0,2399211,2399543,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}g=L[a+8>>1];c=0-b|0;d=b+L[a+10>>1]|0;if((c|0)<(d|0)){b=b+J[685889]|0;while(1){if(K[b+c|0])break c;c=c+1|0;if((d|0)!=(c|0))continue; +break}}if(!g)break d;while(1){e:{if(J[a+20>>2])break e;b=J[a+36>>2];if(!b)break e;Fo(a,b);f=L[a+14>>1];g=L[a+8>>1]}f:{if(g>>>0<=h>>>0){d=L[a+12>>1];if(J[685890]<(f+d|0)){a=Qc(e+8|0,2399211,2399543,592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}b=J[685889]+d|0;break f}d=L[a+12>>1];b=d+(J[a+20>>2]+P(h,f)|0)|0}g:{if(!d)break g;c=0-d|0;i=(c|0)<0?-1:c;h:{while(1){if(!K[b+c|0]){j=(c|0)==(i|0);c=c+1|0;if(!j)continue;break h}break}a=Qc(e+8|0,2398756,2385834,1671, +2423360,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=L[a+10>>1];d=d+c|0;while(1){if(!K[b+c|0]){c=c+1|0;if(d>>>0>c>>>0)continue;break g}break}a=Qc(e+8|0,2399027,2385834,1674,2423360,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}h=h+1|0;if(g>>>0>h>>>0)continue;break}}fc=e+32|0;return}a=Qc(e+8|0,2398435,2385834,1665,2423360,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}B()}b=Z()|0;Kc(a);ba(b|0);B()} +function $ub(a){a=a|0;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;if(J[a+588>>2]>0){e=J[J[a+536>>2]+88>>2];e=(J[e+1176>>2]+P(J[e+1168>>2],J[a+572>>2])|0)+P(J[e+1164>>2],J[a+580>>2])|0;f=J[a+644>>2];while(1){d=e+6|0;b=K[d|0]|K[d+1|0]<<8;h=(b<<8|b>>>8)&65535;b=K[f+6|0]|K[f+7|0]<<8;b=(b<<8|b>>>8)&65535;a:{if(!b)break a;if(!(h?(b|0)!=65535:0)){I[e>>1]=L[f>>1];I[e+2>>1]=L[f+2>>1];I[e+4>>1]=L[f+4>>1];I[e+6>>1]=L[f+6>>1];break a}c=K[f|0]|K[f+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[f+2|0]| +K[f+3|0]<<8;l=(c<<8|c>>>8)&65535;c=K[f+4|0]|K[f+5|0]<<8;m=(c<<8|c>>>8)&65535;c=K[e|0]|K[e+1|0]<<8;n=(c<<8|c>>>8)&65535;c=e+2|0;i=K[c|0]|K[c+1|0]<<8;o=(i<<8|i>>>8)&65535;i=e+4|0;j=K[i|0]|K[i+1|0]<<8;j=(j<<8|j>>>8)&65535;if((h|0)==65535){h=b^65535;d=(P(b,g)+P(h,n)|0)+32768|0;d=(d>>>16|0)+d>>>16|0;d=d<<8|d>>>8;H[e|0]=d;H[e+1|0]=d>>>8;d=(P(b,l)+P(h,o)|0)+32768|0;d=(d>>>16|0)+d>>>16|0;d=d<<8|d>>>8;H[c|0]=d;H[c+1|0]=d>>>8;b=(P(b,m)+P(h,j)|0)+32768|0;b=(b>>>16|0)+b>>>16|0;b=b<<8|b>>>8;H[i|0]=b;H[i+1|0]= +b>>>8;break a}k=b<<16;p=b^65535;b=(P(p,h^65535)^-1)>>>16|0;k=(k>>>0)/(b>>>0)|0;h=(P(h,p)>>>0)/(b>>>0)|0;g=(P(g,k)+P(h,n)|0)+32767>>>16|0;g=g<<8|g>>>8;H[e|0]=g;H[e+1|0]=g>>>8;g=(P(l,k)+P(h,o)|0)+32767>>>16|0;g=g<<8|g>>>8;H[c|0]=g;H[c+1|0]=g>>>8;c=(P(m,k)+P(h,j)|0)+32767>>>16|0;c=c<<8|c>>>8;H[i|0]=c;H[i+1|0]=c>>>8;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8}f=f+8|0;e=e+8|0;q=q+1|0;if((q|0)>2])continue;break}}return 0}function sL(a){var b=0,c=0,d=0;c=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a;b= +J[a+28>>2];if(!b|J[b>>2]!=(a|0))break a;b:{c:{d=J[b+4>>2];switch(d-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break a;case 0:case 12:case 16:case 34:case 46:case 56:break b; +default:break c}}if((d|0)==666)break b;if((d|0)!=42)break a}J[a+44>>2]=2;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[b+20>>2]=0;J[b+16>>2]=J[b+8>>2];c=J[b+24>>2];if((c|0)<0){c=0-c|0;J[b+24>>2]=c}d=c?42:113;c=(c|0)==2;J[b+4>>2]=c?57:d;d:{if(c){c=ig(0,0,0);break d}c=Zo(0,0,0)}J[a+48>>2]=c;c=0;J[b+40>>2]=0;J[b+5820>>2]=0;I[b+5816>>1]=0;J[b+2872>>2]=767768;J[b+2864>>2]=b+2684;J[b+2860>>2]=767748;J[b+2852>>2]=b+2440;J[b+2848>>2]=767728;J[b+2840>>2]=b+148;C2(b)}if(!c){a=J[a+28>>2];J[a+60>>2]=J[a+44>>2]<<1; +b=(J[a+76>>2]<<1)-2|0;d=J[a+68>>2];I[b+d>>1]=0;Ac(d,0,b);J[a+5812>>2]=0;J[a+116>>2]=0;J[a+120>>2]=2;J[a+104>>2]=0;J[a+108>>2]=0;J[a+92>>2]=0;J[a+96>>2]=2;J[a+72>>2]=0;b=P(J[a+132>>2],12);J[a+144>>2]=L[b+764356>>1];J[a+140>>2]=L[b+764352>>1];J[a+128>>2]=L[b+764354>>1];J[a+124>>2]=L[b+764358>>1]}return c}function tvb(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;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;if(e){p=e-2|0;s=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];f= +a+4|0;g=g+4|0;a:{if(m>>>0>p>>>0)break a;h=m?(m|0)==(p|0)?d:b:c;k=!m&s;if(k){if(h>>>0<2)break a;l=h-1|0;k=l&3;if(h-2>>>0>=3){l=l&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((l|0)!=(h|0))continue;break}}h=0;if(!k)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break a}k=k?0:f;l=h+1>>>1|0;if(h>>>0>=3){n=l>>> +0<=2?2:l;i=1;o=h<<1;while(1){j=L[a>>1];b:{if((j|0)==L[k>>1]){I[g>>1]=j;break b}j=K[a|0]|K[a+1|0]<<8;q=j>>>8|0;r=K[k|0]|K[k+1|0]<<8;j=((j<<8|q)&65535)+((h+(P(((r<<8|r>>>8)&65535)-((q|j<<8)&65535)|0,i)<<1)|0)/(o|0)|0)&65535;j=j<<8|j>>>8;H[g|0]=j;H[g+1|0]=j>>>8}I[g+2>>1]=L[a+2>>1];g=g+4|0;i=i+1|0;if((n|0)!=(i|0))continue;break}}if(h>>>0<=l>>>0)break a;j=h<<1;while(1){i=L[a>>1];c:{if((i|0)==L[k>>1]){I[g>>1]=i;break c}i=K[a|0]|K[a+1|0]<<8;o=i>>>8|0;n=K[k|0]|K[k+1|0]<<8;i=((i<<8|o)&65535)+((h+(P(((n<<8| +n>>>8)&65535)-((o|i<<8)&65535)|0,l)<<1)|0)/(j|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}I[g+2>>1]=L[k+2>>1];g=g+4|0;l=l+1|0;if((h|0)!=(l|0))continue;break}}m=m+1|0;if((m|0)!=(e|0))continue;break}}return 0}function Pra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;e=J[b>>2]}J[d+12>>2]=J[685894];J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=e;J[699344]=0;c=d+4|0;aa(5153,c|0,d|0)|0;f=J[699344];J[699344]=0;e=d+8|0;a:{b:{if((f|0)==1){b=Z()|0;wc(e);zc(c);break b}J[699344]= +0;c=_(4,20)|0;f=J[699344];J[699344]=0;c:{if((f|0)==1)break c;J[c>>2]=0;J[c+4>>2]=0;J[c+16>>2]=0;f=c+8|0;J[f>>2]=0;J[f+4>>2]=0;J[699344]=0;aa(5716,f|0,d+4|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[699344]=0;vf(a+44|0,c);c=J[699344];J[699344]=0;if((c|0)==1)break c;wc(e);c=J[d+4>>2];J[d+4>>2]=0;d:{if(!c)break d;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break d;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[d>>2];J[d>>2]= +0;e:{if(!c)break e;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}e=iX(a+68|0,J[b>>2]+8|0);a=vc(12);J[a>>2]=0;J[a+4>>2]=0;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;b=J[b>>2]}else b=0;J[a+8>>2]=b;vf(e+24|0,a);fc=d+16|0;return}b=Z()|0;wc(d+8|0);a=J[d+4>>2];J[d+4>>2]=0;f:{if(!a)break f;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break f;J[699344]=0;$(5147, +a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break f}ea(0)|0;Bc();B()}}zc(d);ba(b|0);B()}ea(0)|0;Bc();B()}function VX(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=fc-16|0;fc=e;d=J[a+200>>2];if(d&1){a:{if(d&4){fd(a,67171);Vd(a,c);break a}if(!(!b|!(K[b+9|0]&64))){fd(a,67195);Vd(a,c);break a}if(c>>>0<=3){fd(a,67216);Vd(a,c);break a}d=sg(a,c+1|0);J[a+740>>2]=d;if(!d){fd(a,67237);Vd(a,c);break a}Dg(a,d,c);Ae(a,d,c);H[J[a+740>>2]+c|0]=0;f=Vd(a,0);d=J[a+740>>2];if(f){Bd(a,d);J[a+740>>2]=0;break a}if((K[d|0]- +1&255)>>>0>=2){fd(a,67279);Bd(a,J[a+740>>2]);J[a+740>>2]=0;break a}J[e+8>>2]=0;J[e+12>>2]=1;b:{c:{d:{if(!LI(d,c,e+8|0,e+12|0))break d;d=J[e+12>>2];if(d>>>0>=c>>>0)break d;f=J[a+740>>2];g=d+1|0;J[e+12>>2]=g;if(!K[d+f|0])break c}fd(a,67314);break b}if((J[e+8>>2]&392)!=264){fd(a,67359);break b}J[e+8>>2]=0;if(!(i=LI(f,c,e+8|0,e+12|0),j=0,k=J[e+12>>2]==(c|0),k?i:j)){fd(a,67406);break b}if((J[e+8>>2]&392)!=264){fd(a,67452);break b}d=J[a+740>>2];f=H[d|0];c=d+1|0;d=d+g|0;e:{if(!a|!b)break e;f:{g:{if(f-3>>> +0>4294967293){if(!c)break g;g=Yc(c);if(!g|K[c|0]==45)break g;if(!JI(c,g))break g;if(!d)break f;h=Yc(d);if(!h|K[d|0]==45)break f;if(!JI(d,h))break f;H[b+220|0]=f;g=g+1|0;f=sg(a,g);J[b+224>>2]=f;if(!f){fd(a,62983);break e}xc(f,c,g);f=h+1|0;c=sg(a,f);J[b+228>>2]=c;if(!c){Bd(a,J[b+224>>2]);J[b+224>>2]=0;fd(a,62983);break e}xc(c,d,f);J[b+8>>2]=J[b+8>>2]|16384;J[b+184>>2]=J[b+184>>2]|256;break e}Ld(a,62462);B()}Ld(a,62622);B()}Ld(a,62727);B()}}Bd(a,J[a+740>>2]);J[a+740>>2]=0}fc=e+16|0;return}Ld(a,67146); +B()}function hma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=J[J[a+8>>2]>>2];f=O[J[J[a>>2]>>2]+40>>3];O[c+32>>3]=f;b=J[J[a+4>>2]>>2];h=O[b+32>>3];O[c+40>>3]=h;f=h-f;O[c+48>>3]=f;O[c+16>>3]=O[b+16>>3];O[c+8>>3]=O[b+8>>3];O[c+216>>3]=O[b+216>>3];O[c+224>>3]=O[b+224>>3];O[c+24>>3]=O[b+24>>3];g=fc-16|0;fc=g;J[g+12>>2]=32;i=c+240|0;b=fc-16|0;fc=b;a:{b:{d=bf(2447832);if(d>>>0<1073741808){c:{if(d>>>0<=1){H[b+15|0]=d;e=b+4|0;break c}e=d|3;if(e>>>0>=1073741823)break b;j=e+1|0;e=vc(j<<2);J[b+ +12>>2]=j|-2147483648;J[b+4>>2]=e;J[b+8>>2]=d}d=d<<2;k=xc(e,2447832,d)+d|0,l=0,J[k>>2]=l;J[699344]=0;aa(6708,i|0,b+4|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){if(H[b+15|0]>=0)break a;uc(J[b+4>>2]);break a}a=Z()|0;if(H[b+15|0]<0)uc(J[b+4>>2]);ba(a|0);B()}_d(b+4|0);B()}Pd();B()}fc=b+16|0;Sz(i,g+12|0);b=J[c+256>>2];J[c+260>>2]=b;d:{if((b|0)!=J[c+264>>2]){O[b>>3]=f;J[c+260>>2]=b+8;break d}d=vc(8);O[d>>3]=f;e=d+8|0;J[c+264>>2]=e;J[c+260>>2]=e;J[c+256>>2]=d;if(!b)break d;uc(b)}O[c+48>>3]=f;O[c+40>>3]=O[c+ +32>>3]+f;fc=g+16|0;b=J[J[a+8>>2]>>2];c=J[J[a>>2]>>2];g=J[c+56>>2];d=J[c+60>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[b+56>>2]=g;c=J[b+60>>2];J[b+60>>2]=d;e:{if(!c)break e;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break e;kc[J[J[c>>2]+8>>2]](c);Gc(c)}b=J[J[a+8>>2]>>2];J[b+68>>2]=0;c=J[b+72>>2];J[b+72>>2]=0;f:{if(!c)break f;b=J[c+4>>2];J[c+4>>2]=b-1;if(b)break f;kc[J[J[c>>2]+8>>2]](c);Gc(c)}a=J[J[a+8>>2]>>2];J[a+232>>2]=0;Vz(a)}function rk(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;f=fc-112| +0;fc=f;a:{if(K[a+229|0])break a;b:{if(e){l=-O[e+24>>3];g=-O[e+8>>3];break b}e=d;l=-O[e+24>>3];g=-O[e+8>>3]}p=O[e+40>>3];q=O[e>>3];r=O[e+16>>3];O[f+96>>3]=O[e+32>>3];O[f+88>>3]=l;O[f+80>>3]=r;O[f+72>>3]=g;O[f+64>>3]=q;O[f+104>>3]=c-p;J[f+56>>2]=0;J[f+60>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;qK(a,f- -64|0,f+56|0,f+48|0,0);d=J[a+104>>2];J[f+40>>2]=4;kc[J[J[d>>2]+308>>2]](d,f+40|0)|0;d=J[a+104>>2];kc[J[J[d>>2]+344>>2]](d)|0;m=J[b+28>>2];if((m|0)<=0)break a;c=O[f+48>>3];g=O[f+56>>3];while(1){d=J[J[b+24>>2]+ +(i<<2)>>2];n=J[d+12>>2];e=J[a+104>>2];O[f+40>>3]=(O[J[d>>2]>>3]+g)/72*25.4;O[f+32>>3]=(O[J[d+4>>2]>>3]+c)/72*25.4;kc[J[J[e>>2]+316>>2]](e,f+40|0,f+32|0)|0;if((n|0)>=2){e=1;while(1){h=J[a+104>>2];s=e;c:{if(J[J[d+8>>2]+(e<<2)>>2]){j=J[d>>2];e=e<<3;O[f+40>>3]=(g+O[j+e>>3])/72*25.4;k=J[d+4>>2];O[f+32>>3]=(c+O[e+k>>3])/72*25.4;o=e+8|0;O[f+24>>3]=(g+O[o+j>>3])/72*25.4;O[f+16>>3]=(c+O[k+o>>3])/72*25.4;e=e+16|0;O[f+8>>3]=(g+O[e+j>>3])/72*25.4;O[f>>3]=(c+O[e+k>>3])/72*25.4;kc[J[J[h>>2]+328>>2]](h,f+40|0,f+ +32|0,f+24|0,f+16|0,f+8|0,f)|0;e=3;break c}e=e<<3;O[f+40>>3]=(g+O[e+J[d>>2]>>3])/72*25.4;O[f+32>>3]=(c+O[e+J[d+4>>2]>>3])/72*25.4;kc[J[J[h>>2]+320>>2]](h,f+40|0,f+32|0)|0;e=1}e=s+e|0;if((n|0)>(e|0))continue;break}}if(J[d+20>>2]){d=J[a+104>>2];kc[J[J[d>>2]+340>>2]](d)|0}i=i+1|0;if((m|0)!=(i|0))continue;break}}fc=f+112|0}function I6(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;b=J[a+24>>2];a:{b:{if(b>>>0>65534)break b;m=J[a>>2];o=J[m+508>>2]+J[m+512>>2]|0;b=b+1|0;f=J[a+40>> +2];c=b>>>0>f>>>0?b:f;e=J[a+48>>2];d=J[a+44>>2];i=J[a+52>>2];c:while(1){d:{if(c>>>0>d>>>0)break d;e:{if(!i){i=J[m+16>>2];k=d+e|0;if((k|0)<0)break e;j=0-e|0;f=65536-e|0;while(1){g=c+e|0;h=g&65535;f:{if(i>>>0<=h>>>0){b=j;if((g|0)<0)break f;if(g>>>0>65535)break d;b=f;if((k|0)>65535)break f;break d}b=c;if(h)break a}c=b+1|0;if(d>>>0>=c>>>0)continue;break}break d}b=(c-f<<1)+i|0;if(o>>>0>>0)break d;while(1){j=K[b+1|0]|K[b|0]<<8;if(j){h=e+j&65535;if(h)break a}b=b+2|0;c=c+1|0;if(d>>>0>=c>>>0)continue;break}break d}while(1){h= +c+e&65535;if(i>>>0<=h>>>0)break d;if(h)break a;c=c+1|0;if(d>>>0>=c>>>0)continue;break}}h=0;b=J[a+36>>2]+1|0;k=J[a+32>>2];if(b>>>0>=k>>>0)break b;p=k-1|0;n=k<<1;q=J[a+16>>2]+14|0;while(1){d=(b<<1)+q|0;j=K[d|0]<<8|K[d+1|0];J[a+44>>2]=j;d=d+n|0;e=d+2|0;f=K[e|0]<<8|K[d+3|0];J[a+40>>2]=f;d=e+n|0;e=K[d|0]|K[d+1|0]<<8;e=(e<<8|e>>>8)<<16>>16;J[a+48>>2]=e;l=d+n|0;g=K[l|0]<<8|K[l+1|0];g:{h:{i:{if((f|0)!=65535|b>>>0

      >>0|(j|0)!=65535)break i;i=0;d=65535;if(!g)break h;if((g+l|0)+2>>>0<=o>>>0)break i;e=1;J[a+ +48>>2]=1;break h}if((g|0)==65535)break g;i=g?g+l|0:0;d=j}J[a+36>>2]=b;J[a+52>>2]=i;c=c>>>0>f>>>0?c:f;continue c}b=b+1|0;if((k|0)!=(b|0))continue;break}break}}c=-1}J[a+28>>2]=h;J[a+24>>2]=c}function oY(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=J[a+24>>2];j=J[e+16>>2];if(!j)return 0;f=J[e+24>>2];e=J[J[J[a+20>>2]>>2]+20>>2];a:{b:{if(!b){b=0;while(1){c=J[f+24>>2];a=(J[e+28>>2]+P(J[e+24>>2],152)|0)-152|0;g=J[a+12>>2];h=J[a+4>>2];d=g-h|0;a=J[a+8>>2]-J[a>>2]|0;c:{if((g|0)==(h|0))break c;vEb(a,0,d,0);if(!jc)break c; +break a}d=P(a,d);d:{a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;if(!c)break d;vEb(c,0,d,0);if(!jc)break d;break a}a=-1;c=P(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(!J[a+64>>2]){while(1){c=J[f+24>>2];a=(J[e+28>>2]+P(J[e+24>>2],152)|0)-152|0;g=J[a+148>>2];h=J[a+140>>2];d=g-h|0;a=J[a+144>>2]-J[a+136>>2]|0;e:{if((g|0)==(h|0))break e;vEb(a,0,d,0);if(!jc)break e;break a}d=P(a,d);f:{a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;if(!c)break f; +vEb(c,0,d,0);if(!jc)break f;break a}a=-1;c=P(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=J[f+24>>2];a=(J[e+28>>2]+P(J[e+24>>2],152)|0)-152|0;g=J[a+12>>2];h=J[a+4>>2];d=g-h|0;a=J[a+8>>2]-J[a>>2]|0;g:{if((g|0)==(h|0))break g;vEb(a,0,d,0);if(!jc)break g;break a}d=P(a,d);h:{a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;if(!c)break h;vEb(c,0,d,0);if(!jc)break h;break a}a=-1;c=P(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 UBb(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;c=fc-48|0;fc=c;a:{b:{c:{if((J[a+28>>2]&-256)==768){d=-1;j=Ek(a,0);if((j|0)>=0)break c;rd(198152,0);break a}rd(199394,0);break b}d:{if(J[a+16>>2]<=1){d=J[J[a+24>>2]+(j<<2)>>2];e=J[d+24>>2];if((e|0)<17)break d}rd(200599,0);break b}o=J[d+28>>2];i=J[d+16>>2];k=J[d+20>>2];J[c+32>>2]=80;J[c+36>>2]=71;om(b,200856,c+32|0);J[c+16>>2]=k;J[c+ +12>>2]=i;J[c+8>>2]=e;J[c+4>>2]=o?203422:204052;J[c>>2]=202180;om(b,201919,c);d=-1;if(K[b+8|0]&2)break a;g=Dk(1,i);if(!g)break a;e:{f:{g:{if(!k)break g;if(!i){b=0;while(1){if(Gk(a,j,0,b,0,1,g))break e;b=b+1|0;if((k|0)!=(b|0))continue;break}break g}if((e|0)>0){n=(e+7|0)/8|0;p=(n|0)<=1?1:n;q=1<>2]>>2]+(e<<2)>>2];l=(o?l>>31&q:0)+l&r;while(1){m=J[b+8>>2];if(m&7)break e;f=J[b+64>>2];if((f|0)>=0&(f|0)<=J[b+60>>2])break f;m= +(d^-1)+n|0;J[b+4>>2]=J[b+4>>2]|32;f=J[b+28>>2];J[b+28>>2]=f-1;h:{if((f|0)>0){J[b+60>>2]=J[b+60>>2]+1;f=J[b+24>>2];J[b+24>>2]=f+1;H[f|0]=l>>>(m<<3);break h}if((bd(b,l>>>(m<<3)&255)|0)==-1)break e}d=d+1|0;if((p|0)!=(d|0))continue;break}e=e+1|0;if((i|0)!=(e|0))continue;break}h=h+1|0;if((k|0)!=(h|0))continue;break}break g}while(1){if(Gk(a,j,0,h,i,1,g))break e;h=h+1|0;if((k|0)!=(h|0))continue;break}}mg(g);d=0;break a}J[b+8>>2]=m|4}mg(g)}d=-1}fc=c+48|0;return d|0}function wj(a){var b=0,c=0,d=0,e=0,f=0; +c=fc-128|0;fc=c;a:{b:{c:{d:{e:{f:{if(L[a+138>>1]==1){if(!(K[a+13|0]&64|L[a+90>>1]!=6)){J[c+52>>2]=c+126;J[c+48>>2]=c+124;ne(a,530,c+48|0);d=L[c+124>>1];if(!d){Uc(J[a+628>>2],J[a>>2],70812,0);a=0;break a}b=J[a+56>>2];if(b>>>0<0-d>>>0)b=((b+d|0)-1>>>0)/(d>>>0)|0;else b=0;d=P(b,d);e=L[a+84>>1];b=vEb(d,0,e,0);f=(jc|0)!=0;g:{h:{if(e){if(!f)break h;e=J[a>>2];b=J[a+628>>2];J[c+16>>2]=72551;Uc(b,e,73496,c+16|0);e=L[a+84>>1];b=vEb(e,0,d,0);f=(jc|0)!=0;d=!e;break e}if(b&7)break g;d=1;break e}if(!(b&7))break d; +if(!f)break g;b=J[a>>2];a=J[a+628>>2];J[c+32>>2]=72551;Uc(a,b,73496,c+32|0);b=0}a=(b>>>3|0)+1|0;break b}d=L[a+98>>1];b=vEb(J[a+56>>2],0,d,0);e=jc;if(!d|!e)break f;d=J[a>>2];b=J[a+628>>2];J[c+112>>2]=72551;Uc(b,d,73496,c+112|0);b=0;break f}b=J[a+56>>2]}d=b;e=L[a+84>>1];b=vEb(b,0,e,0);f=(jc|0)!=0;i:{j:{k:{l:{m:{if(e){if(!f)break m;e=J[a>>2];b=J[a+628>>2];J[c+80>>2]=72551;Uc(b,e,73496,c+80|0);e=L[a+84>>1];b=vEb(e,0,d,0);f=(jc|0)!=0;d=!e;break k}if(b&7)break l;d=1;break k}if(!(b&7))break j;if(!f)break l; +b=J[a>>2];a=J[a+628>>2];J[c+96>>2]=72551;Uc(a,b,73496,c+96|0);b=0}a=(b>>>3|0)+1|0;break a}if(d)break i}if(!f)break i;b=J[a>>2];a=J[a+628>>2];J[c+64>>2]=72551;Uc(a,b,73496,c- -64|0);b=0}a=b>>>3|0;break a}if(d)break c}if(!f)break c;b=J[a>>2];a=J[a+628>>2];J[c>>2]=72551;Uc(a,b,73496,c);b=0}a=b>>>3|0}a=((a>>>0)/L[c+124>>1]<<1)+a|0}fc=c+128|0;return a}function VN(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if(b)J[b>>2]=0;d=!a;a:{if(d|((d?-1:J[a+8>>2])|0)!=1)break a;b:switch(c-4|0){case 0:case 4:break b; +default:break a}if(!b)return UN(a,c);d=fc-48|0;fc=d;c:{if(!b)break c;J[b>>2]=0;g=!a;if(g|((g?-1:J[a+8>>2])|0)!=1)break c;d:switch(c-4|0){case 0:case 4:break d;default:break c}g=cl(0);J[b>>2]=g;py(a,d+32|0);if(J[d+32>>2]){f=Kq(1);break c}e=Ff(0,a);J[d+20>>2]=e;if(!e)break c;j=Ff(0,a);J[d+16>>2]=j;if(!j)break c;i=uE(a?J[a+4>>2]:-1);J[d+8>>2]=i;if(!i)break c;a=uE(0);if(!a)break c;J[i+12>>2]=a;a=Kq(0);if(!a)break c;Df(e,d+44|0,d+40|0,d+36|0);e:{if(J[d+36>>2]!=1)break e;m=c-4|0;while(1){b=e?J[e+12>>2]: +-1;if(!k9(e?J[e+40>>2]:0,J[d+44>>2],J[d+40>>2],b,k,l,d+28|0,d+24|0))break e;l=J[d+24>>2];k=J[d+28>>2];f=0;if(((e?J[e+8>>2]:-1)|0)!=1)break c;f:{g:switch(m|0){case 0:c=j9(e,i,k,l);if(c)break f;break c;case 4:break g;default:break c}c=i9(e,i,k,l);if(!c)break c}xE(a,c);f=zE(e,c);h=zE(j,c);J[d+12>>2]=h;h:{if((f|0)==(h|0))break h;b=!f;if(b|!h|((b?-1:J[f+8>>2])|0)!=((h?J[h+8>>2]:-1)|0))break h;b=Ff(f,f);if(!b)break h;Cf(b,0,0,b?J[b>>2]:-1,b?J[b+4>>2]:-1,12,h,0,0)}Cf(j,J[c>>2],J[c+4>>2],J[c+8>>2],J[c+12>> +2],12,f,0,0);ni(g,f,0);Fd(d+12|0);Df(e,d+44|0,d+40|0,d+36|0);if(J[d+36>>2]==1)continue;break}}mp(g+16|0);i:{if(a){J[a+8>>2]=J[a+8>>2]+1;b=a;break i}b=0}J[g+16>>2]=b;QN(d+8|0,1);Fd(d+20|0);Fd(d+16|0);f=a}fc=d+48|0}return f}function TO(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(a){if(J[J[a>>2]+8>>2]){g=J[a+4>>2];if(g){c=J[g+48>>2];if(c){a:{if(!J[c>>2])break a;d=J[g+44>>2];if(!d)break a;if((P(J[d+52>>2],J[d+48>>2])|0)>0)while(1){e=J[c+80>>2]+P(b,568)|0;f=J[e>>2];if(f){uc(f);J[e>>2]=0}f=J[e+548>>2];if(f){uc(f); +J[e+548>>2]=0}b=b+1|0;if((b|0)<(P(J[d+52>>2],J[d+48>>2])|0))continue;break}b=J[c+80>>2];if(!b)break a;uc(b)}uc(c)}c=J[g+44>>2];if(c){b=J[c+44>>2];if(b){uc(b);J[c+44>>2]=0}b=J[c+92>>2];if(b){uc(b);J[c+92>>2]=0}b=J[c+52>>2];e=J[c+48>>2];if((P(b,e)|0)>0){d=0;while(1){f=J[c+88>>2]+P(d,1876)|0;i=J[f+1872>>2];if(i){uc(i);J[f+1872>>2]=0;e=J[c+48>>2];b=J[c+52>>2]}d=d+1|0;if((d|0)<(P(b,e)|0))continue;break}}b=J[c+88>>2];if(b)uc(b);uc(c)}uc(g)}}c=J[a+20>>2];if(c){uc(c);J[a+20>>2]=0}if((J[a+52>>2]+(J[a+48>> +2]+J[a+44>>2]|0)|0)>0)while(1){c=J[a+100>>2]+P(h,384)|0;b=J[c+284>>2];if(b){uc(b);J[c+284>>2]=0}b:{if(J[c+8>>2])break b;b=J[c+356>>2];if(b){uc(b);J[c+356>>2]=0}b=J[c+352>>2];if(b){uc(b);J[c+352>>2]=0}b=J[c+196>>2];if(!b)break b;uc(b);J[c+196>>2]=0}b=J[c+84>>2];if(b){uc(b);J[c+84>>2]=0}b=J[c+92>>2];if(b){uc(b);J[c+92>>2]=0}b=J[c+188>>2];if(b){uc(b);J[c+188>>2]=0}b=J[c+264>>2];if(b){uc(b);J[c+264>>2]=0}b=J[c+272>>2];if(b){uc(b);J[c+272>>2]=0}b=J[c+280>>2];if(b){uc(b);J[c+280>>2]=0}b=J[c+380>>2];if(b){uc(b); +J[c+380>>2]=0}uc(c);h=h+1|0;if((h|0)<(J[a+52>>2]+(J[a+48>>2]+J[a+44>>2]|0)|0))continue;break}uc(a)}}function Ym(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!a)break a;b:switch(J[a+4>>2]-9|0){case 9:while(1){b=J[a>>2];d=J[a+8>>2];if(d)kc[J[663199]](d);d=J[a+12>>2];if(d)kc[J[663199]](d);kc[J[663199]](a);a=b;if(b)continue;break}break a;case 0:case 4:Rr(a);return;default:break b}b=J[a+32>>2];if(b)f=J[b+80>>2];while(1){g=J[a+24>>2];c=J[a+4>>2];if((c|0)!=14){c:{if(!J[693393])break c;b=J[693391];if(!b)break c; +kc[b|0](a);c=J[a+4>>2]}b=J[a+12>>2];d:{if(b){if((c|0)==5)break d;Ym(b);c=J[a+4>>2]}e:{if(!(1<>>0>20)break e;b=J[a+44>>2];if(!b)break e;while(1){d=J[b+24>>2];nx(b);b=d;if(b)continue;break}c=J[a+4>>2]}f:{if(1<>>0<=20:0)break f;e=J[a+40>>2];if((e|0)==(a+44|0)|!e)break f;d=f;if(d)while(1){b=J[d+16>>2];if(b)while(1){if(b+20>>>0<=e>>>0&M[b+4>>2]>=e>>>0)break f;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}kc[J[663199]](e);c=J[a+4>>2]}if(!(1<>>0> +20)break d;b=J[a+48>>2];if(!b)break d;while(1){d=J[b>>2];c=J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+12>>2];if(c)kc[J[663199]](c);kc[J[663199]](b);b=d;if(b)continue;break}}c=J[a+8>>2];g:{if(!c)break g;h:switch(J[a+4>>2]-3|0){case 0:case 5:break g;default:break h}d=f;if(d)while(1){b=J[d+16>>2];if(b)while(1){if(c>>>0<=M[b+4>>2]&c>>>0>=b+20>>>0)break g;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}kc[J[663199]](c)}kc[J[663199]](a)}a=g;if(a)continue;break}}}function Gda(a,b,c){a=a|0;b=b| +0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+584>>2];if(d){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)<=34907){if((b|0)==262)break j;if((b|0)==347)break m;if((b|0)!=530)break d;J[d+932>>2]=1;return kc[J[d+896>>2]](a,530,c)|0}n:switch(b-34908|0){case 3:break e;case 2:break f;case 1:break g;case 0:break h;default:break n}switch(b-65537|0){case 2:break i;case 1:break k;case 0:break l;default:break d}}e=J[c>>2];if(e)break c;return 0}J[d+920>>2]=J[c>>2];return 1}c=J[c>>2];J[d+924>>2]=c;d=J[a+12>>2];b=d&-16385; +J[a+12>>2]=b;if(!(L[a+138>>1]!=1|L[a+90>>1]!=6|(c|0)!=1)){b=d|16384;J[a+12>>2]=b}if(J[a+508>>2]>0){if(b&1024)b=Dm(a);else b=-1;J[a+508>>2]=b}b=1;if(J[a+588>>2]<=0)break a;f=a,g=wj(a),J[f+588>>2]=g;return 1}b=kc[J[d+896>>2]](a,262,c)|0;d=J[a+12>>2];c=d&-16385;J[a+12>>2]=c;if(!(L[a+138>>1]!=1|L[a+90>>1]!=6|J[J[a+584>>2]+924>>2]!=1)){c=d|16384;J[a+12>>2]=c}if(J[a+508>>2]>0){if(c&1024)c=Dm(a);else c=-1;J[a+508>>2]=c}if(J[a+588>>2]<=0)break a;f=a,g=wj(a),J[f+588>>2]=g;return b|0}J[d+928>>2]=J[c>>2];return 1}J[d+ +936>>2]=J[c>>2];break b}cw(d+940|0,J[c>>2]);break b}J[d+944>>2]=J[c>>2];break b}cw(d+948|0,J[c>>2]);break b}return kc[J[d+896>>2]](a,b,c)|0}FW(d+912|0,J[c+4>>2],e);J[d+916>>2]=e;J[a+48>>2]=J[a+48>>2]|4}c=Sf(a,b);if(!c)return 0;b=1;c=L[c+12>>1];d=(c>>>3&8188)+a|0;J[d+40>>2]=J[d+40>>2]|1<>2]=J[a+12>>2]|8}return b|0}fa(75270,70506,1634,97662);B()}function Vj(a){var b=0,c=0,d=0;if(a){b=nC(a);if(b)while(1){c=J[b+4>>2];if(c)kc[J[663199]](c);c=J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+44>>2];if(c)kc[J[663199]](c); +c=J[b+48>>2];if(c)kc[J[663199]](c);c=J[b+40>>2];a:{if(!c)break a;d=J[b+12>>2];if(!d)break a;kc[c|0](d)}c=J[b>>2];if(c)Vn(c);kc[J[663199]](b);b=nC(a);if(b)continue;break}b=J[a+244>>2];if(b)kc[J[663199]](b);b=J[a+196>>2];if(b)kc[J[663199]](b);b=J[a+64>>2];if(b)kc[J[663199]](b);b=J[a+460>>2];if(b)kc[J[663199]](b);b=J[a+48>>2];if(b)kc[J[663199]](b);b=J[a+20>>2];if(b)kc[J[663199]](b);b=J[a+24>>2];if(b)kc[J[663199]](b);b=J[a+224>>2];if(b)kc[J[663199]](b);b=J[a+228>>2];if(b)kc[J[663199]](b);b=J[a>>2];if(!(!b| +(b|0)==2653196))kc[J[663199]](b);b=J[a+180>>2];if(b)kc[J[663199]](b);b=J[a+132>>2];if(b)kc[J[663199]](b);b=J[a+300>>2];if(b)kc[J[663199]](b);b=J[a+296>>2];if(b)Wn(b);b=J[a+336>>2];if(b)kc[J[663199]](b);b=J[a+344>>2];if(b)kc[J[663199]](b);b=J[a+340>>2];if(b)kc[J[663199]](b);b=J[a+348>>2];if(b)Xo(b,J[663199]);b=J[a+352>>2];if(b)Xo(b,0);b=J[a+372>>2];if(b)while(1){c=J[b+24>>2];kc[J[663199]](b);b=c;if(b)continue;break}b=J[a+380>>2];if(b)while(1){c=J[b+24>>2];kc[J[663199]](b);b=c;if(b)continue;break}b= +J[a+392>>2];if(b)kc[J[663199]](b);b=J[a+400>>2];if(b)kc[J[663199]](b);b=J[a+408>>2];if(b)kc[J[663199]](b);b=J[a+412>>2];if(b)kc[J[663199]](b);b=J[a+416>>2];if(b)kc[J[663199]](b);kc[J[663199]](a)}}function vjb(a){a=a|0;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;i=J[a+12>>2];j=J[a+200>>2];c=J[a+196>>2];n=J[J[a>>2]+16>>2];a:{while(1){b=k;k=b+1|0;g=j8(i,k);if(g)break a;g=21;h=c+4|0;if(h>>>0>j>>>0)break a;d=J[i+88>>2]+(b<<5)|0;J[d+8>>2]=0;J[d+12>>2]=0;l=K[c+1|0];e=l|K[c|0]<<8;I[d+4>>1]=e; +b=K[c+3|0]|K[c+2|0]<<8;J[d>>2]=b;if((b|0)>=(n|0))break a;f=l&1?4:2;m=e&8;b=f+2|0;b:{if(m)break b;b=f+4|0;if(e&64)break b;b=f|e>>>4&8}if(b+h>>>0>j>>>0)break a;b=e&1;c:{if(e&2){if(b){b=K[c+4|0]|K[c+5|0]<<8;J[d+8>>2]=(b<<8|b>>>8)<<16>>16;b=K[c+6|0]|K[c+7|0]<<8;f=(b<<8|b>>>8)<<16>>16;b=c+8|0;break c}J[d+8>>2]=H[c+4|0];f=H[c+5|0];b=c+6|0;break c}if(b){J[d+8>>2]=K[c+5|0]|K[c+4|0]<<8;f=K[c+7|0]|K[c+6|0]<<8;b=c+8|0;break c}J[d+8>>2]=K[c+4|0];f=K[c+5|0];b=c+6|0}J[d+12>>2]=f;d:{if(m){c=b+2|0;e=0;b=K[b|0]|K[b+ +1|0]<<8;g=(b<<8|b>>>8)<<16>>16<<2;f=g;h=0;break d}if(e&64){c=K[b+2|0]|K[b+3|0]<<8;f=(c<<8|c>>>8)<<16>>16<<2;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)<<16>>16<<2;c=b+4|0;e=0;h=0;break d}if(!(e&128)){e=0;g=65536;c=b;f=65536;h=0;break d}c=K[b+6|0]|K[b+7|0]<<8;f=(c<<8|c>>>8)<<16>>16<<2;c=K[b+4|0]|K[b+5|0]<<8;e=(c<<8|c>>>8)<<16>>16<<2;c=K[b+2|0]|K[b+3|0]<<8;h=(c<<8|c>>>8)<<16>>16<<2;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)<<16>>16<<2;c=b+8|0}J[d+16>>2]=g;J[d+28>>2]=f;J[d+24>>2]=h;J[d+20>>2]=e;if(l&32)continue;break}J[i+ +84>>2]=k;b=J[J[a+24>>2]+8>>2];J[a+196>>2]=c;J[a+164>>2]=(c+b|0)-j;g=0}return g|0}function Mua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;a:{d=J[b>>2];b:{if(d){if(kc[J[J[d>>2]+20>>2]](d)|0){d=J[b>>2];kc[J[J[d>>2]+28>>2]](e+12|0,d,1);c:{d:{e:{f:{f=J[e+12>>2];if(f){d=0;if(!c)break e;b=J[f+12>>2];a=J[a+12>>2];if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break e;if((c|0)<=0)break f;d=ud(a,b,c);J[e+12>>2]=0;break c}if(!b)break e;d=K[b|0]?-1:0;J[e+12>>2]=0;break c}b=J[b>>2];d=J[J[a>>2]+24>>2];J[699344]= +0;f=d;d=e+8|0;ca(f|0,d|0,a|0,2);a=J[699344];J[699344]=0;g:{h:{if((a|0)!=1){a=J[J[b>>2]+36>>2];J[699344]=0;b=ga(a|0,b|0,d|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break d;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}d=Z()|0;break g}d=Z()|0;zc(e+8|0)}zc(e+12|0);ba(d|0);B()}d=Ic(a,b)}J[e+12>>2]=0;break c}d=0-b|0;f=J[e+12>>2];J[e+12>>2]=0;if(!f)break b}J[699344]= +0;a=J[f+4>>2]-1|0;J[f+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break b;J[699344]=0;$(5147,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}d=0;if(!c)break b;b=J[J[b>>2]+12>>2];a=J[a+12>>2];if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break b;if((c|0)>0){d=ud(a,b,c);break b}d=Ic(a,b);break b}if(!b)break b;d=K[b|0]?-1:0;break b}d=0;if(!c)break b;a=J[a+12>>2];if(a){d=1;if(K[a|0])break b}d=0}fc=e+16|0;return d|0}ea(0)|0;Bc();B()}function vo(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;i=fc-16| +0;fc=i;J[i+8>>2]=c;J[i+12>>2]=b;b=i+4|0;c=J[d+28>>2];J[b>>2]=c;J[c+4>>2]=J[c+4>>2]+1;J[699344]=0;j=_(6826,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){b=J[b>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)kc[J[J[b>>2]+8>>2]](b);J[e>>2]=0;b=0;a:{while(1){if(b|(g|0)==(h|0))break a;b:{if(nl(i+12|0,i+8|0))break b;c:{if((kc[J[J[j>>2]+36>>2]](j,H[g|0],0)|0)==37){if((g+1|0)==(h|0))break b;c=0;d:{e:{b=kc[J[J[j>>2]+36>>2]](j,H[g+1|0],0)|0;if((b|0)==69)break e;k=1;if((b&255)==48)break e;break d}if((g+2|0)==(h| +0))break b;k=2;c=b;b=kc[J[J[j>>2]+36>>2]](j,H[g+2|0],0)|0}l=i,m=kc[J[J[a>>2]+36>>2]](a,J[i+12>>2],J[i+8>>2],d,e,f,b,c)|0,J[l+12>>2]=m;g=(g+k|0)+1|0;break c}b=H[g|0];if((b|0)>=0)b=J[J[j+8>>2]+((b&255)<<2)>>2]&1;else b=0;if(b){while(1){f:{g=g+1|0;if((h|0)==(g|0)){g=h;break f}b=H[g|0];if((b|0)>=0)b=J[J[j+8>>2]+((b&255)<<2)>>2]&1;else b=0;if(b)continue}break}while(1){b=i+12|0;if(nl(b,i+8|0))break c;c=gr(b);if((c|0)>=0)c=J[J[j+8>>2]+((c&255)<<2)>>2]&1;else c=0;if(!c)break c;Xs(b);continue}}b=i+12|0;if(((m= +j,n=gr(b),l=J[J[j>>2]+12>>2],kc[l](m|0,n|0)|0)|0)==(kc[J[J[j>>2]+12>>2]](j,H[g|0])|0)){g=g+1|0;Xs(b);break c}J[e>>2]=4}b=J[e>>2];continue}break}J[e>>2]=4}if(nl(i+12|0,i+8|0))J[e>>2]=J[e>>2]|2;fc=i+16|0;return J[i+12>>2]}c=Z()|0;a=J[i+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function WY(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{e=J[a+60>>2];if(!e){if(J[b+16>>2])break c;return 1}i=ef(P(e,52));if(!i)break a;e=0;if(J[b+16>>2]){d=J[b+24>>2];while(1){e=P(f,52); +uc(J[(e+d|0)+44>>2]);d=J[b+24>>2];J[(e+d|0)+44>>2]=0;f=f+1|0;e=J[b+16>>2];if(f>>>0>>0)continue;break}}if(J[a+60>>2]){f=J[J[a+76>>2]+24>>2];e=0;while(1){h=P(J[J[a+64>>2]+(e<<2)>>2],52);d=h+f|0;c=J[d+4>>2];g=i+P(e,52)|0;J[g>>2]=J[d>>2];J[g+4>>2]=c;J[g+48>>2]=J[d+48>>2];c=J[d+44>>2];J[g+40>>2]=J[d+40>>2];J[g+44>>2]=c;c=J[d+36>>2];J[g+32>>2]=J[d+32>>2];J[g+36>>2]=c;c=J[d+28>>2];J[g+24>>2]=J[d+24>>2];J[g+28>>2]=c;c=J[d+20>>2];J[g+16>>2]=J[d+16>>2];J[g+20>>2]=c;c=J[d+12>>2];J[g+8>>2]=J[d+8>>2];J[g+12>> +2]=c;f=J[J[a+76>>2]+24>>2];c=h+f|0;J[g+36>>2]=J[c+36>>2];J[g+44>>2]=J[c+44>>2];J[c+44>>2]=0;e=e+1|0;c=J[a+60>>2];if(e>>>0>>0)continue;break}e=J[b+16>>2]}if(e){d=J[J[a+76>>2]+24>>2];f=0;while(1){c=P(f,52);if(J[(c+d|0)+44>>2])break b;uc(0);d=J[J[a+76>>2]+24>>2];J[(c+d|0)+44>>2]=0;f=f+1|0;if(f>>>0>2])continue;break}c=J[a+60>>2]}J[b+16>>2]=c;uc(J[b+24>>2]);J[b+24>>2]=i;return 1}e=J[b+24>>2];f=J[J[a+76>>2]+24>>2];while(1){h=P(d,52);c=h+e|0;J[c+36>>2]=J[(f+h|0)+36>>2];uc(J[c+44>>2]);e=J[b+24>> +2];f=J[J[a+76>>2]+24>>2];c=h+f|0;J[(h+e|0)+44>>2]=J[c+44>>2];J[c+44>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}return 1}fa(2371033,2358254,11796,2371083);B()}Jn(J[a+72>>2]);J[a+72>>2]=0;return 0}function tw(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;a:{if(!J[c+8>>2]){d=0;if((b|0)<=0)break a;while(1){kf(e,g,ei(c,J[(d<<2)+a>>2],g,8));d=d+1|0;if((d|0)!=(b|0))continue;break}break a}h=ei(c,8234,g+24|0,8);i=ei(c,8235,g+16|0,8);j=ei(c,8236,g+8|0,8);if(d){if((b|0)<=0)break a;while(1){d=f;while(1){if(!Lk(J[(d<< +2)+a>>2])){d=d+1|0;if((d|0)<(b|0))continue}break}if((d|0)>(f|0))while(1){kf(e,g,ei(c,J[(f<<2)+a>>2],g,8));f=f+1|0;if((f|0)!=(d|0))continue;break}f=d;b:{if((f|0)>=(b|0))break b;c:{while(1){h=(f<<2)+a|0;if(xl(J[h>>2]))break c;if(Ut(J[h>>2]))break c;f=f+1|0;if((f|0)!=(b|0))continue;break}f=b}if((d|0)>=(f|0)){f=d;break b}kf(e,g+16|0,i);h=f;while(1){h=h-1|0;kf(e,g,ei(c,J[(h<<2)+a>>2],g,8));if((d|0)<(h|0))continue;break}kf(e,g+8|0,j)}if((b|0)>(f|0))continue;break}break a}kf(e,g+16|0,i);d:{if((b|0)<=0)break d; +d=b-1|0;while(1){f=d;while(1){e:{b=(f<<2)+a|0;if(xl(J[b>>2])){b=f;break e}if(Ut(J[b>>2])){b=f;break e}i=(f|0)>0;b=f-1|0;f=b;if(i)continue}break}if((b|0)<(d|0))while(1){kf(e,g,ei(c,J[(d<<2)+a>>2],g,8));d=d-1|0;if((d|0)>(b|0))continue;break}f=b;if((f|0)<0)break d;while(1){f:{if(Lk(J[(f<<2)+a>>2])){d=f;break f}d=-1;i=(f|0)>0;f=f-1|0;if(i)continue}break}g:{if((b|0)<=(d|0)){d=b;break g}kf(e,g+24|0,h);f=d;while(1){f=f+1|0;kf(e,g,ei(c,J[(f<<2)+a>>2],g,8));if((b|0)!=(f|0))continue;break}kf(e,g+8|0,j)}if((d| +0)>=0)continue;break}}kf(e,g+8|0,j)}fc=g+32|0}function kZ(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;d=(J[a+28>>2]+P(b,152)|0)-152|0;c=J[d+8>>2]-J[d>>2]|0;g=c;d=J[d+12>>2]-J[d+4>>2]|0;f=d;c=c>>>0>=64?64:c;e=d>>>0>=64?64:d;a:{b:{if(!g|!d|(!c|!e))break b;if(c>>>0>4294967295/(e>>>0)>>>2>>>0)break b;d=Ge(1,28);J[d+12>>2]=e;J[d+8>>2]=c;J[d+4>>2]=f;J[d>>2]=g;i=f;f=e+f|0;j=i>>>0>f>>>0?1:j;e=xEb(f-1|0,j-!f|0,e,0);J[d+20>>2]=e;f=0;i=g;g=c+g|0;f=i>>>0>g>>>0?1:f;c=xEb(g- +1|0,f-!g|0,c,0);J[d+16>>2]=c;vEb(e,0,c,0);c:{if(jc)break c;c=Ge(4,P(c,e));J[d+24>>2]=c;if(!c)break c;break a}uc(d)}d=0}if(!d)return 0;d:{if(b)while(1){o=P(n,152);f=o+J[a+28>>2]|0;c=J[f+24>>2];if(c){g=J[f+20>>2];h=J[f+16>>2];l=0;while(1){if(P(g,h)){j=f+P(l,36)|0;m=0;while(1){k=J[j+48>>2]+P(m,40)|0;e=J[k+20>>2];c=J[k+16>>2];if(P(e,c)){g=0;while(1){h=J[k+24>>2]+P(g,60)|0;p=J[h+56>>2];if(p){s=J[h+20>>2];t=J[h+16>>2];q=J[h+8>>2];c=q-J[j+28>>2]|0;h=J[h+12>>2];e=h-J[j+32>>2]|0;r=J[j+44>>2];if(r&1){i=c;c= +(J[a+28>>2]+o|0)-152|0;c=(i+J[c+8>>2]|0)-J[c>>2]|0}if(r&2){i=e;e=(J[a+28>>2]+o|0)-152|0;e=(i+J[e+12>>2]|0)-J[e+4>>2]|0}i=c;c=t-q|0;if(!Jt(d,i,e,i+c|0,(s-h|0)+e|0,p,1,c))break d;e=J[k+20>>2];c=J[k+16>>2]}g=g+1|0;if(g>>>0>>0)continue;break}h=J[f+16>>2];g=J[f+20>>2]}m=m+1|0;if(m>>>0>>0)continue;break}c=J[f+24>>2]}l=l+1|0;if(l>>>0>>0)continue;break}}n=n+1|0;if((n|0)!=(b|0))continue;break}return d}Ko(d);return 0}function jza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-32|0;fc=d;e=a- -64| +0;c=e;f=J[c+24>>2];J[d+28>>2]=c;J[d+24>>2]=f;a:{b:{c=J[d+24>>2];if(c)while(1){if((e|0)!=J[d+28>>2])break b;c:{if(J[c+24>>2]==(b|0)){J[d+20>>2]=e;J[d+16>>2]=c;J[d+24>>2]=J[c>>2];Tp(e,d+16|0);c=J[d+24>>2];break c}c=J[c>>2];J[d+24>>2]=c}if(c)continue;break}d:{e:{e=a+36|0;c=e;c=J[J[c+12>>2]+((b>>>0)%M[c+8>>2]<<2)>>2];if(c)while(1){if(J[c+12>>2]==(b|0)&J[c+16>>2]==(b|0))break e;c=J[c+8>>2];if(c)continue;break}J[d+28>>2]=e;J[d+24>>2]=0;break d}J[d+28>>2]=e;J[d+24>>2]=c;Tp(e,d+24|0)}f:{g:{a=a+8|0;c=J[J[a+ +12>>2]+((b>>>0)%M[a+8>>2]<<2)>>2];if(c)while(1){if(J[c+12>>2]==(b|0)&J[c+16>>2]==(b|0))break g;c=J[c+8>>2];if(c)continue;break}J[d+28>>2]=a;J[d+24>>2]=0;break f}J[d+28>>2]=a;J[d+24>>2]=c;c=J[c+20>>2];if(c)uc(id(c));Tp(a,d+24|0)}c=J[a+24>>2];J[d+20>>2]=a;J[d+16>>2]=c;e=J[d+20>>2];c=J[d+16>>2];J[d+24>>2]=c;J[d+28>>2]=e;h:{if(!c)break h;while(1){if((a|0)!=J[d+28>>2])break a;e=J[c+20>>2];J[d+16>>2]=0;J[d+20>>2]=0;c=J[e+8>>2];i:{if(!c)break i;while(1){if(J[c+8>>2]!=(b|0)){c=J[c>>2];if(c)continue;break i}break}J[d+ +20>>2]=e;J[d+16>>2]=c;Do(e,d+16|0)}j:{if(!J[e+4>>2]){uc(id(e));c=J[d+24>>2];J[d+8>>2]=c;J[d+12>>2]=J[d+28>>2];if(c)J[d+24>>2]=J[c>>2];Tp(a,d+8|0);c=J[d+24>>2];break j}c=J[d+24>>2];if(!c)break h;c=J[c>>2];J[d+24>>2]=c}if(c)continue;break}}fc=d+32|0;return}xj(d+24|0,e);B()}xj(d+24|0,a);B()}function vt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{e=a+36|0;d=e;d=J[J[d+12>>2]+((b>>>0)%M[d+8>>2]<<2)>>2];b:{if(!d)break b;while(1){if(!(J[d+12>>2]==(b|0)&J[d+16>>2]==(b|0))){d=J[d+8>>2];if(d)continue;break b}break}if(J[b+ +4>>2]<=0)break b;d=J[J[e+12>>2]+((c>>>0)%M[e+8>>2]<<2)>>2];if(!d)break b;while(1){if(!(J[d+12>>2]==(c|0)&J[d+16>>2]==(c|0))){d=J[d+8>>2];if(d)continue;break b}break}if(J[c+4>>2]<=0)break b;e=a+8|0;d=J[J[e+12>>2]+((b>>>0)%M[e+8>>2]<<2)>>2];c:{if(d)while(1){if(J[d+12>>2]==(b|0)&J[d+16>>2]==(b|0))break c;d=J[d+8>>2];if(d)continue;break}a=vc(16);J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[699344]=0;J[a>>2]=2418600;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;d=J[699344];J[699344]=0;if((d|0)==1)break a;d= +J[J[e+12>>2]+((b>>>0)%M[e+8>>2]<<2)>>2];d:{if(d)while(1){if(J[d+12>>2]==(b|0)&J[d+16>>2]==(b|0))break d;d=J[d+8>>2];if(d)continue;break}d=vc(24);J[d>>2]=0;J[d+4>>2]=0;J[d+20>>2]=0;J[d+16>>2]=b;J[d+12>>2]=b;J[d+8>>2]=0;Em(e,d)}J[d+20>>2]=a}d=J[J[e+12>>2]+((b>>>0)%M[e+8>>2]<<2)>>2];e:{if(d)while(1){if(J[d+12>>2]==(b|0)&J[d+16>>2]==(b|0))break e;d=J[d+8>>2];if(d)continue;break}d=vc(24);J[d>>2]=0;J[d+4>>2]=0;J[d+20>>2]=0;J[d+16>>2]=b;J[d+12>>2]=b;J[d+8>>2]=0;Em(e,d)}b=J[d+20>>2];d=J[b+8>>2];if(d)while(1){if(J[d+ +8>>2]==(c|0))break b;d=J[d>>2];if(d)continue;break}a=vc(12);J[a+8>>2]=c;J[a>>2]=0;J[a+4>>2]=0;vf(b,a)}return}b=Z()|0;uc(a);ba(b|0);B()}function jN(a){a=a|0;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)return 33;l=J[a>>2];if(a){b=J[a+204>>2];J[a+204>>2]=b-1;if((b|0)<=1){k=J[a>>2];b=J[a+16>>2];a:{if(!b)break a;while(1){i=J[((h<<2)+a|0)+20>>2];c=J[i>>2];b:{if(Ic(J[c+8>>2],240661)|!(H[c|0]&1))break b;c=J[i+16>>2];if(!c)break b;while(1){f=J[c+8>>2];c:{if(!f)break c;d=J[f+96>>2];if(!d)break c; +e=J[f+128>>2];b=J[e+64>>2];J[e+64>>2]=b-1;if((b|0)>1)break c;b=J[d+16>>2];if(!b)break c;g=d+16|0;e=J[d+8>>2];while(1){if((f|0)!=J[b+8>>2]){b=J[b+4>>2];if(b)continue;break c}break}c=J[b>>2];j=c?c+4|0:g;g=J[b+4>>2];J[j>>2]=g;J[(g?g:d+20|0)>>2]=c;kc[J[e+8>>2]](e,b);Yu(e,f,d);c=J[i+16>>2]}if(c)continue;break}b=J[a+16>>2]}h=h+1|0;if(h>>>0>>0)continue;break}if(!b)break a;h=0;while(1){i=J[((h<<2)+a|0)+20>>2];d:{if(!(H[J[i>>2]]&1))break d;c=J[i+16>>2];if(!c)break d;while(1){f=J[c+8>>2];e:{if(!f)break e; +d=J[f+96>>2];if(!d)break e;e=J[f+128>>2];b=J[e+64>>2];J[e+64>>2]=b-1;if((b|0)>1)break e;b=J[d+16>>2];if(!b)break e;g=d+16|0;e=J[d+8>>2];while(1){if((f|0)!=J[b+8>>2]){b=J[b+4>>2];if(b)continue;break e}break}c=J[b>>2];j=c?c+4|0:g;g=J[b+4>>2];J[j>>2]=g;J[(g?g:d+20|0)>>2]=c;kc[J[e+8>>2]](e,b);Yu(e,f,d);c=J[i+16>>2]}if(c)continue;break}b=J[a+16>>2]}h=h+1|0;if(h>>>0>>0)continue;break}if(!b)break a;while(1){X7(a,J[((b<<2)+a|0)+16>>2]);b=J[a+16>>2];if(b)continue;break}}kc[J[k+8>>2]](k,a)}}uc(l);return 0} +function nKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-32|0;fc=e;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[699344]=0;J[e+16>>2]=13;b=ha(3368,b|0,c|0,e+16|0,0)|0;c=J[699344];J[699344]=0;a:{b:{if((c|0)==1)break b;c:{d:{e:{f:{g:{if(J[b>>2]!=3)break g;J[699344]=0;f=_(4,12)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;b=aa(3354,f|0,J[e+24>>2])|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;f=J[b+4>>2];g=J[b>>2];J[699344]=0;c=e+4|0;ca(3420,c|0,g|0,f|0);f=J[699344];J[699344]=0;if((f|0)== +1)break c;uc(ld(b));J[699344]=0;$(3705,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;f=K[e+15|0];b=f<<24>>24;if((b|0)<0?J[e+8>>2]:f){J[699344]=0;aa(3026,a|0,846420)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;aa(3026,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;aa(3026,a|0,2183344)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;d=c;b=K[e+15|0];c=b<<24>>24<0;ga(2960,a|0,(c?J[e+4>>2]:d)|0,(c?J[e+8>>2]:b)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d; +J[699344]=0;aa(3026,a|0,2183444)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;b=K[e+15|0]}if(b<<24>>24>=0)break g;uc(J[e+4>>2])}J[699344]=0;$(3370,e+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;fc=e+32|0;return}c=Z()|0;break a}c=Z()|0;uc(f);break a}c=Z()|0;if(H[e+15|0]>=0)break a;uc(J[e+4>>2]);break a}c=Z()|0;break a}c=Z()|0}if(H[a+11|0]<0)uc(J[a>>2]);ba(c|0);B()}function WFa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=J[a+4>>2];if(!a)return 0;d=fc-16|0;fc=d;f=a+12|0;vd(f,0);J[699344]= +0;e=d+12|0;ca(5158,e|0,b|0,c|0);a=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{if((a|0)!=1){J[d+4>>2]=0;J[699344]=0;a=d+4|0;aa(5145,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break j;J[699344]=0;b=d+8|0;ia(5159,b|0,e|0,a|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break i;J[699344]=0;aa(5153,f|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;a=J[d+8>>2];J[d+8>>2]=0;k:{if(!a)break k;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break k;J[699344]= +0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[d+4>>2];J[d+4>>2]=0;l:{if(!a)break l;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break l;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[f>>2];J[699344]=0;_(5154,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f;a=J[d+12>>2];J[d+12>>2]=0;m:{if(!a)break m;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break m;J[699344]=0;$(5147, +a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=1;break c}b=ea(0)|0;break d}b=ea(0)|0;break e}b=ea(0)|0;break g}b=ea(0)|0;zc(d+8|0)}zc(d+4|0);break e}b=ea(0)|0}zc(d+12|0)}oa(b|0)|0;ta();a=0}fc=d+16|0;break a}ea(0)|0;Bc();B()}return a|0}function pBa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=fc-32|0;fc=d;J[d+28>>2]=0;vd(d+28|0,a);b=J[a+108>>2];J[699344]=0;b=At(b);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)==1)break c;J[a+68>>2]=b;J[699344]=0;e=a+148|0;kh(e,0,0,16,0);b=J[699344];J[699344]=0;if((b|0)== +1)break c;J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[J[b>>2]+40>>2];J[699344]=0;ia(c|0,b|0,a|0,16,0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;b=J[e>>2];c=J[699344];J[699344]=0;if((c|0)==1)break c;if(b&64)break b;J[699344]=0;$(5449,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b}b=Z()|0;break a}J[699344]=0;c=aa(5201,d+12|0,a+112|0)|0;b=J[699344];J[699344]=0;d:{e:{if((b|0)!=1){b=J[c+8>>2];f:{if(b)while(1){f=J[b+8>>2];J[699344]=0;f=J[f+148>>2];g=J[699344]; +J[699344]=0;if((g|0)==1)break d;if(!(f&32))break f;b=J[b>>2];if(b)continue;break}J[699344]=0;kh(e,0,0,32,0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;b=pa(5383)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[J[b>>2]+40>>2];J[699344]=0;ia(e|0,b|0,a|0,32,0);a=J[699344];J[699344]=0;if((a|0)==1)break d}id(c);a=J[d+28>>2];J[d+28>>2]=0;if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0; +if((a|0)!=1)break e}ea(0)|0;Bc();B()}b=Z()|0;break a}fc=d+32|0;return}b=Z()|0;id(c)}zc(d+28|0);ba(b|0);B()}function Zz(a){a=a|0;var b=0,c=0;b=fc-48|0;fc=b;J[a+56>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+12>>2]=0;J[a+16>>2]=255;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+80>>2]=1E3;J[a+84>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=1071644672;J[a+96>>2]=255;J[a+100>>2]=0;J[a+88>>2]=0;J[a+92>>2]=255;J[b+40>>2]=0;J[b+44>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+ +28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1072693248;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;dp(a+104|0,b+40|0,b+32|0,b+24|0,b+16|0,b+8|0,b);J[a+184>>2]=0;J[a+188>>2]=0;J[a+120>>2]=255;J[a+124>>2]=0;a:{if(H[a+119|0]<0){J[a+112>>2]=0;c=J[a+108>>2];break a}H[a+119|0]=0;c=a+108|0}J[c>>2]=0;J[a+144>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+196>>2]=J[a+192>>2];Js(a+456| +0,2442820,5);b:{if(H[a+455|0]<0){J[a+448>>2]=0;c=J[a+444>>2];break b}H[a+455|0]=0;c=a+444|0}J[c>>2]=0;I[a+488>>1]=0;J[a+480>>2]=0;J[a+484>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+492>>2]=0;J[a+496>>2]=0;J[a+500>>2]=0;J[a+504>>2]=0;J[a+568>>2]=0;J[a+572>>2]=255;J[a+560>>2]=0;J[a+564>>2]=1075052544;J[a+556>>2]=0;J[a+544>>2]=0;J[a+548>>2]=120;J[a+536>>2]=0;J[a+540>>2]=0;J[a+528>>2]=0;J[a+532>>2]=1076756480;J[a+520>>2]=0;J[a+524>>2]=1076756480;J[a+516>>2]=0;Hu(a+648|0);HU(a+1976|0);fc=b+48|0;return 0}function qva(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;a:{d=J[b>>2];b:{if(d){if(kc[J[J[d>>2]+16>>2]](d)|0){kc[J[J[a>>2]+28>>2]](e+12|0,a,1);c:{d:{e:{f:{f=J[e+12>>2];if(f){d=0;if(!c)break e;a=J[J[b>>2]+12>>2];b=J[f+12>>2];if(!(!b|!K[b|0])){d=1;if(!a|!K[a|0])break e;if((c|0)<=0)break f;d=ud(b,a,c);J[e+12>>2]=0;break c}if(!a)break e;d=K[a|0]?-1:0;J[e+12>>2]=0;break c}b=J[b>>2];d=J[J[b>>2]+24>>2];J[699344]=0;f=d;d=e+8|0;ca(f|0,d|0,b|0,2);b=J[699344];J[699344]=0;g:{h:{if((b|0)!=1){b=J[J[a>>2]+36>>2];J[699344]= +0;d=ga(b|0,a|0,d|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break h;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}d=Z()|0;break g}d=Z()|0;zc(e+8|0)}zc(e+12|0);ba(d|0);B()}d=Ic(b,a)}J[e+12>>2]=0;break c}f=J[e+12>>2];J[e+12>>2]=0;if(!f)break b}J[699344]=0;a=J[f+4>>2]-1|0;J[f+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break b;J[699344]= +0;$(5147,f|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}d=0;if(!c)break b;b=J[J[b>>2]+12>>2];a=J[a+12>>2];if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break b;if((c|0)>0){d=ud(a,b,c);break b}d=Ic(a,b);break b}if(!b)break b;d=K[b|0]?-1:0;break b}d=0;if(!c)break b;a=J[a+12>>2];if(a){d=1;if(K[a|0])break b}d=0}fc=e+16|0;return d|0}ea(0)|0;Bc();B()}function r7(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;J[d>>2]=0;J[d+4>>2]=0;g=b-1|0;g=b>>>0>=g>>>0?g:0;b=J[a+408>>2];a:{if(g>>> +0>b>>>0)break a;e=b;b=c-1|0;c=b>>>0<=c>>>0?b:0;if(e>>>0>>0)break a;b=J[a+424>>2];if(!b)break a;e=c<<4;c=J[a+416>>2];c=L[e+c>>1]|J[c+(g<<4)>>2]<<16;i=J[a+104>>2];while(1){if(!(c>>>0<=M[b+20>>2]&c>>>0>=M[b+16>>2])){b=J[b>>2];if(b)continue;break a}break}f=yd(i,J[b+12>>2]);if(f)break a;f=af(i,P(J[b+8>>2],K[b+4|0]));if(f)break a;a=K[b+5|0];j=a&1;k=a>>>1&1;g=J[b+8>>2];f=J[i+32>>2];a=K[b+4|0];h=-2147483648>>>S(a)|0;b:{c:{d:{if((a|0)==(h|0))break d;a=P(g,a-h|0)+f|0;e=K[a+1|0];l=K[a|0];e:{if(j){e=K[a+3| +0]|(e<<16|l<<24|K[a+2|0]<<8);a=a+4|0;break e}e=e|l<<16;a=a+2|0}if((c|0)==(e|0))break c;if(c>>>0<=e>>>0)break d;f=(k?2:1)+a|0}f:{a=P(g,h);g:{if(g>>>0>=a>>>0)break g;if(!j){while(1){a=a>>>1|0;h=f+a|0;e=K[h|0]<<16|K[h+1|0];if((e|0)!=(c|0)){f=c>>>0>e>>>0?h:f;if(a>>>0>g>>>0)continue;break g}break}a=h+2|0;break c}while(1){a=a>>>1|0;h=f+a|0;e=K[h|0]|K[h+1|0]<<8|(K[h+2|0]<<16|K[h+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if((e|0)==(c|0))break f;f=c>>>0>e>>>0?h:f;if(a>>>0>g>>>0)continue;break}}a= +K[f+1|0];g=K[f|0];h:{if(j){g=K[f+3|0]|(a<<16|g<<24|K[f+2|0]<<8);a=f+4|0;break h}g=a|g<<16;a=f+2|0}if((c|0)==(g|0))break c;break b}a=h+4|0}c=K[a|0];if(k)c=(K[a+1|0]|c<<8)<<16>>16;J[d>>2]=I[b+6>>1]+c}ve(i);f=0}return f|0}function QUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=fc-48|0;fc=b;J[a>>2]=2216876;J[b+32>>2]=13;J[b+16>>2]=13;J[a+1568>>2]=0;a:{if(!VB(a,c))break a;if(J[a+4>>2]!=1){Cc(1,-1,802136,0);break a}d=Ec(c,803292,b+32|0,0);e=J[a+1040>>2];b:{c:{d:{e:{f:{if(J[d>>2]==6){d=J[J[b+40>>2]+12>>2];if(!(!e| +(d|0)==J[a+8>>2])){Cc(1,-1,803732,0);break b}J[a+8>>2]=d;if((d|0)>32)break e;if((d|0)<=0)break f;d=0;while(1){Sc(J[b+40>>2],d,b+16|0,0);e=J[b+16>>2];if(e-3>>>0<4294967294){c=804276;break c}O[((d<<3)+a|0)+1048>>3]=(e|0)==1?+J[b+24>>2]:O[b+24>>3];yc(b+16|0);d=d+1|0;if((d|0)>2])continue;break}break f}if(!(!e|J[a+8>>2]==1)){Cc(1,-1,803732,0);break b}J[a+1048>>2]=0;J[a+1052>>2]=0;J[a+8>>2]=1}d=b+32|0;yc(d);g:{if(J[Ec(c,805438,d,0)>>2]==6){d=J[J[b+40>>2]+12>>2];if((d|0)!=J[a+8>>2])break d;if((d| +0)<=0)break g;d=0;while(1){Sc(J[b+40>>2],d,b+16|0,0);e=J[b+16>>2];if(e-3>>>0<4294967294){c=806022;break c}O[((d<<3)+a|0)+1304>>3]=(e|0)==1?+J[b+24>>2]:O[b+24>>3];yc(b+16|0);d=d+1|0;if((d|0)>2])continue;break}break g}if(J[a+8>>2]!=1){Cc(1,-1,805738,0);break b}J[a+1304>>2]=0;J[a+1308>>2]=1072693248}d=b+32|0;yc(d);if(J[Ec(c,806719,d,0)>>2]-3>>>0<=4294967293){Cc(1,-1,807127,0);break b}O[a+1560>>3]=J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3];yc(b+32|0);J[a+1568>>2]=1;break a}J[b>>2]=32;Cc(1,-1,789891, +b);break b}Cc(1,-1,805738,0);break b}Cc(1,-1,c,0);yc(b+16|0)}yc(b+32|0)}fc=b+48|0;return a|0}function _ja(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;if(c-b&4){J[c>>2]=0;c=c+4|0}if(b>>>0>>0)while(1){f=J[b>>2];if(!(f>>>0<=d>>>0&f+i>>>0<=d>>>0)){f=d-i|0;J[b>>2]=f}if(f){e=(i>>>3|0)+a|0;g=i&7;h=8-g|0;a:{if(h>>>0>>0){if(g){H[e|0]=K[e|0]&255<>>0>=8){g=f>>>3|0;if(f>>>0>=64){if(e&3){h=(e^-1)&3;g=g-1|0;j=g>>>0>h>>>0?h:g;h=j+1|0;g=g-j|0;e=Ac(e,0,h)+h|0}h=g&-4; +g=g&3;e=Ac(e,0,h)+h|0}b:switch(g-1|0){case 6:H[e+6|0]=0;case 5:H[e+5|0]=0;case 4:H[e+4|0]=0;case 3:H[e+3|0]=0;case 2:H[e+2|0]=0;case 1:H[e+1|0]=0;case 0:H[e|0]=0;e=e+g|0;break;default:break b}f=f&7}if(!f)break a;H[e|0]=K[e|0]&255>>>f;break a}H[e|0]=K[e|0]&(K[f+95390|0]>>>g^-1)}i=J[b>>2]+i|0}f=J[b+4>>2];if(!(f>>>0<=d>>>0&f+i>>>0<=d>>>0)){f=d-i|0;J[b+4>>2]=f}if(f){e=(i>>>3|0)+a|0;g=i&7;h=8-g|0;c:{d:{if(h>>>0>>0){if(g){H[e|0]=K[e|0]|255>>>g;f=f-h|0;e=e+1|0}if(f>>>0>=8){g=f>>>3|0;if(f>>>0>=64){if(e& +3){h=(e^-1)&3;g=g-1|0;j=g>>>0>h>>>0?h:g;h=j+1|0;g=g-j|0;e=Ac(e,255,h)+h|0}h=g&-4;g=g&3;e=Ac(e,255,h)+h|0}e:switch(g-1|0){case 6:H[e+6|0]=255;case 5:H[e+5|0]=255;case 4:H[e+4|0]=255;case 3:H[e+3|0]=255;case 2:H[e+2|0]=255;case 1:H[e+1|0]=255;case 0:H[e|0]=255;e=e+g|0;break;default:break e}f=f&7}if(!f)break c;f=65280>>>f|0;break d}f=K[f+95390|0]>>>g|0}H[e|0]=f|K[e|0]}i=J[b+4>>2]+i|0}b=b+8|0;if(c>>>0>b>>>0)continue;break}if((d|0)!=(i|0)){fa(69068,70539,450,95399);B()}}function LEa(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;e=fc-16|0;fc=e;J[a>>2]=2397168;J[a+4>>2]=0;J[699344]=0;h=aa(5151,a+8|0,b|0)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[699344]=0;f=a+52|0;J[f>>2]=2397928;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;b=J[699344];J[699344]=0;i=a+44|0;if((b|0)==1)break h;J[699344]=0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[a+72>>2]=0;J[699344]=0;d=e+12|0;ca(5231,d|0,h|0,2386583);b=J[699344];J[699344]= +0;if((b|0)==1)break f;J[699344]=0;aa(5153,i|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;g=J[e+12>>2];J[e+12>>2]=0;i:{if(!g)break i;J[699344]=0;d=J[g+4>>2]-1|0;J[g+4>>2]=d;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(d)break i;J[699344]=0;$(5147,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+60>>2];j:{if(b){d=J[c>>2];while(1){if((d|0)==J[b+8>>2])break j;b=J[b>>2];if(b)continue;break}}J[699344]=0;b=_(4,12)|0;d=J[699344];J[699344]=0;if((d|0)==1)break g;J[b>>2]=0;J[b+4>>2]=0;d=J[c>> +2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break g;c=J[c>>2]}else c=0;J[b+8>>2]=c;J[699344]=0;vf(f,b);b=J[699344];J[699344]=0;if((b|0)==1)break g}fc=e+16|0;return a|0}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break d}b=Z()|0;zc(e+12|0)}id(f)}zc(i);Ed(h)}nd(a);ba(b|0);B()}ea(0)|0;Bc();B()}function RFa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=J[a+4>>2];if(f)a:{d=fc-16|0;fc=d;b:{a=J[f+12>>2];c:{if(!a)break c;J[699344]=0;ma(5160,d+12|0,a|0,c| +0,1,0);a=J[699344];J[699344]=0;d:{e:{f:{g:{h:{i:{j:{if((a|0)!=1){J[699344]=0;_(5161,J[d+12>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break j;J[699344]=0;J[J[d+12>>2]+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break j;J[d+8>>2]=0;a=J[J[b>>2]+16>>2];J[699344]=0;aa(a|0,b|0,d+8|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break i;a=0;e=J[d+12>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;a=J[699344];J[699344]=0;if((a|0)==1)break h;a=J[d+12>>2]}J[699344]=0;J[d>>2]=a;ca(5163,d+4|0,d|0,d|0);e=J[699344];J[699344]= +0;if((e|0)==1)break g;J[d>>2]=0;k:{if(!a)break k;J[699344]=0;e=J[a+4>>2]-1|0;J[a+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)==1)break b;if(e)break k;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}J[699344]=0;a=d+4|0;ma(5164,f|0,b|0,d+12|0,c|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;mh(a);a=J[d+12>>2];J[d+12>>2]=0;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!= +1)break c}break b}a=ea(0)|0;break d}a=ea(0)|0;break e}a=ea(0)|0;break e}a=ea(0)|0;break e}a=ea(0)|0;zc(d);break e}a=ea(0)|0;mh(d+4|0)}zc(d+12|0)}oa(a|0)|0;ta()}fc=d+16|0;break a}ea(0)|0;Bc();B()}}function gJa(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=fc-16|0;fc=g;a:{b:{c:{d:{e:{if(b){if(!a)break e;if(!d)break d;if(!(K[a+100|0]&2)){Nc(d,1,2360508,0);a=0;break a}J[a+104>>2]=0;f:{if(c){while(1){if(c>>>0<=7){Nc(d,1,2361117,0);break b}f=g+12|0;wd(b,f,4);h=J[g+12>>2];wd(b+4|0,f, +4);e=8;f=J[g+12>>2];g:{h:{i:switch(h|0){case 1:if(c>>>0<16){b=2361243;break c}wd(b+8|0,g+8|0,4);if(J[g+8>>2]){b=2359728;break c}wd(b+12|0,g+12|0,4);h=J[g+12>>2];if(h)break h;b=2358695;break c;case 0:break i;default:break g}Nc(d,1,2358695,0);break b}e=16}if(h>>>0>>0){Nc(d,1,2361353,0);break b}if(c>>>0>>0){Nc(d,1,2360749,0);a=0;break a}j:{k:{j=b+e|0;k=h-e|0;l:{m:{n:{o:{if((f|0)<=1668246641){if((f|0)==1651532643)break o;if((f|0)==1667523942)break m;if((f|0)!=1668112752)break k;e=2371488;break l}if((f| +0)==1885564018)break n;e=2371456;if((f|0)==1768449138)break l;if((f|0)!=1668246642)break k;e=2371464;break l}e=2371472;break l}e=2371480;break l}e=2371496}if(kc[J[e+4>>2]](a,j,k,d)|0)break j;a=0;break a}J[a+104>>2]=J[a+104>>2]|2147483647}i=(f|0)==1768449138?1:i;b=b+h|0;c=c-h|0;if(c)continue;break}if(i)break f}Nc(d,1,2360909,0);a=0;break a}H[a+132|0]=1;J[a+100>>2]=J[a+100>>2]|4;a=1;break a}fa(2359884,2354795,2702,2371434);B()}fa(2354499,2354795,2703,2371434);B()}fa(2355439,2354795,2704,2371434);B()}Nc(d, +1,b,0)}Nc(d,1,2360619,0);a=0}fc=g+16|0;return a|0}function _K(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=fc-16|0;fc=g;a:{if(!b)break a;e=kc[J[663195]](60)|0;if(!e){J[g>>2]=14796;Hc(0,0,0,0,0,2,2,3,14796,0,0,0,32879,g);break a}J[e>>2]=0;J[e+4>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+56>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=5;J[e+32>>2]=a;b:{c:{d:{c=b;d=K[c|0];if(d){if((d|0)==38)break d;d=c;while(1){f= +K[d+1|0];c=d+1|0;d=c;if(f)continue;break}}d=0;c=c-b|0;if((c|0)<0)break b;f=kc[J[663198]](c+1|0)|0;if(f)break c;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}f=b+1|0;c=0;e:{if(!K[b+1|0])break e;d=f;while(1){h=c;c=c+1|0;i=K[d+1|0];d=d+1|0;if(i)continue;break}if(K[b+c|0]!=59)break e;d=0;b=kc[J[663198]](c)|0;if(!b){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}d=xc(b,f,h);H[h+d|0]=0;break b}d=kc[J[663198]](c+1|0)|0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}j=xc(d,f,c)+c|0,k=0,H[j|0]=k;break b}d= +xc(f,b,c);H[c+d|0]=0}J[e+8>>2]=d;f:{g:{h:{if(!a)break h;b=J[a+44>>2];i:{if(!b)break i;b=J[b+48>>2];if(!b)break i;c=Bf(b,d,0,0);if(c)break g}if(J[a+40>>2]==1)break h;a=J[a+48>>2];if(!a)break h;a=J[a+48>>2];if(!a)break h;c=Bf(a,d,0,0);if(c)break g}c=fj(d);if(!c)break f}a=J[c+40>>2];J[e+16>>2]=c;J[e+12>>2]=c;J[e+40>>2]=a}j:{if(!J[693393])break j;a=J[693390];if(!a)break j;kc[a|0](e)}d=e}fc=g+16|0;return d}function Rr(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;e=J[a+80>>2];b:{if(!J[693393])break b;c=J[693391]; +if(!c)break b;kc[c|0](a)}c=J[a+64>>2];if(c)Xo(c,3342);J[a+64>>2]=0;c=J[a+68>>2];if(c)C1(c);J[a+68>>2]=0;b=J[a+48>>2];c=J[a+44>>2];if(!(!b|(b|0)==(c|0))){Wj(b);J[a+48>>2]=0;Ur(b)}if(c){Wj(J[a+44>>2]);J[a+44>>2]=0;Ur(c)}c=J[a+12>>2];if(c)Ym(c);b=J[a+52>>2];if(b)while(1){c=J[b>>2];d=J[b+8>>2];if(d)kc[J[663199]](d);d=J[b+12>>2];if(d)kc[J[663199]](d);kc[J[663199]](b);b=c;if(b)continue;break}d=J[a+56>>2];c:{if(!d)break c;if(e){c=e;while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break c; +b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}}kc[J[663199]](d)}d=J[a+8>>2];d:{if(!d)break d;if(e){c=e;while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break d;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}}kc[J[663199]](d)}d=J[a+60>>2];e:{if(!d)break e;if(e){c=e;while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break e;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}}kc[J[663199]](d)}f:{g:{d=J[a+72>>2]; +if(d){if(e){c=e;while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break g;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}}kc[J[663199]](d)}kc[J[663199]](a);if(!e)break a;break f}kc[J[663199]](a)}Wn(e)}}function Tnb(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;i=fc-400|0;fc=i;e=J[c+4>>2];g=J[b+4>>2];c=J[c>>2];b=J[b>>2];f=J[a>>2];a=J[a+4>>2];J[i+20>>2]=a<<2;J[i+16>>2]=f<<2;J[i+12>>2]=g<<2;j=b<<2;J[i+8>>2]=j;h=e<<2;J[i+4>>2]=h;f=c<<2;J[i>> +2]=f;b=J[d+208>>2];J[i+24>>2]=b;c=J[d+212>>2];J[i+28>>2]=c;k=a>>6;a:{b:{l=e>>6;a=J[d+176>>2];g=g>>6;c:{d:{if(!((l|0)>=(a|0)&(g|0)>=(a|0))){e=c>>8;break d}e=c>>8;if((a|0)>(k|0))break d;if((a|0)<=(e|0))break c}c=i;a=J[d+172>>2];if((a|0)<=(l|0)|(a|0)<=(g|0)|((a|0)<=(k|0)|(a|0)<=(e|0)))break b}J[d+212>>2]=h;J[d+208>>2]=f;break a}while(1){e=(P(j,-3)+b|0)+(f<<1)|0;a=e>>31;e:{f:{if((a^e)-a>>>0>=129){k=J[c+12>>2];e=J[c+28>>2];g=J[c+4>>2];break f}e=J[c+28>>2];k=J[c+12>>2];g=J[c+4>>2];h=e+(P(k,-3)+(g<<1)|0)| +0;a=h>>31;if((a^h)-a>>>0>128)break f;h=((b<<1)+f|0)+P(J[c+16>>2],-3)|0;a=h>>31;if((a^h)-a>>>0>128)break f;h=((e<<1)+g|0)+P(J[c+20>>2],-3)|0;a=h>>31;if((a^h)-a>>>0>128)break f;hN(d,f,g);if((c|0)==(i|0))break a;a=c-24|0;f=J[a>>2];break e}a=c+24|0;J[c+48>>2]=b;J[c+52>>2]=e;f=f+j|0;J[c+8>>2]=f>>1;g=g+k|0;J[c+12>>2]=g>>1;l=b;b=J[c+16>>2];h=l+b|0;J[c+40>>2]=h>>1;b=b+j|0;f=b+f|0;J[c+16>>2]=f>>2;b=b+h|0;J[c+32>>2]=b>>2;l=e;e=J[c+20>>2];j=l+e|0;J[c+44>>2]=j>>1;f=b+f>>3;J[c+24>>2]=f;b=e+k|0;e=b+g|0;J[c+20>> +2]=e>>2;b=b+j|0;J[c+36>>2]=b>>2;J[c+28>>2]=b+e>>3}b=J[a+24>>2];j=J[a+8>>2];c=a;continue}}fc=i+400|0;return 0}function O4a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=fc-32|0;fc=f;a:{e=J[a>>2];h=(J[a+4>>2]-e|0)/12|0;d=h+1|0;if(d>>>0<357913942){c=a+8|0;g=J[c>>2];J[f+28>>2]=c;c=0;e=(g-e|0)/12|0;g=e<<1;d=e>>>0>=178956970?357913941:d>>>0>>0?g:d;if(d){if(d>>>0>=357913942)break a;c=vc(P(d,12))}J[699344]=0;J[f+12>>2]=c;e=P(h,12)+c|0;J[f+20>>2]=e;J[f+24>>2]=P(d,12)+c;J[f+16>>2]=e;aa(2967,e|0,b|0)|0; +b=J[699344];J[699344]=0;if((b|0)!=1){e=J[f+20>>2]+12|0;b=J[f+16>>2];c=J[a+4>>2];d=J[a>>2];b:{if((c|0)==(d|0)){d=c;break b}while(1){b=b-12|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;c=c-12|0;J[b>>2]=J[c>>2];J[b+4>>2]=J[c+4>>2];J[b+8>>2]=J[c+8>>2];J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;if((c|0)!=(d|0))continue;break}c=J[a+4>>2];d=J[a>>2]}J[a+4>>2]=e;J[a>>2]=b;J[a+8>>2]=J[f+24>>2];if((c|0)!=(d|0)){while(1){e=c-12|0;a=J[e>>2];if(a){h=a;g=c-8|0;b=J[g>>2];if((a|0)!=(b|0)){while(1){c=b-12|0;if(H[b-1|0]<0)uc(J[c>>2]); +b=c;if((c|0)!=(a|0))continue;break}h=J[e>>2]}J[g>>2]=a;uc(h)}c=e;if((d|0)!=(c|0))continue;break}c=d}if(c)uc(c);fc=f+32|0;return}h=Z()|0;a=J[f+20>>2];e=J[f+16>>2];if((a|0)!=(e|0))while(1){c=a-12|0;J[f+20>>2]=c;b=J[c>>2];if(b){d=b;g=a-8|0;a=J[g>>2];if((b|0)!=(a|0)){while(1){d=a-12|0;if(H[a-1|0]<0)uc(J[d>>2]);a=d;if((b|0)!=(a|0))continue;break}d=J[c>>2]}J[g>>2]=b;uc(d);a=J[f+20>>2]}else a=c;if((e|0)!=(a|0))continue;break}a=J[f+12>>2];if(a)uc(a);ba(h|0);B()}eh(a);B()}Pd();B()}function zua(a,b,c){a=a| +0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d:{e:{b=J[b>>2];f:{if(b){c=J[c>>2];J[699344]=0;ca(5640,d+4|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[d+4>>2];g:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+8|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break g;b=Z()|0;break c}J[d+8>>2]=0}J[699344]=0;aa(5153,a|0,d+8|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[d+8>>2];J[d+8>>2]=0;if(!b)break h;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344]; +J[699344]=0;if((e|0)!=1){if(c)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break a}b=Z()|0;zc(d+8|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[d+4>>2];J[d+4>>2]=0;if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f}break a}J[699344]=0;J[d+12>>2]=0;aa(5153,a|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[d+12>>2];J[d+12>> +2]=0;i:{if(!b)break i;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2]}fc=d+16|0;return a|0}b=Z()|0;break b}b=Z()|0;zc(d+12|0);break b}zc(d+4|0)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function eaa(a,b,c,d,e,f,g,h,i,j,k,l){var m=0,n=0;a:{b:{if(K[a+498|0])break b;c:{d:{e:{f:{n=K[a+1112|0];switch(n-2|0){case 0:case 2:break f;default:break e}}if(J[a+ +436>>2]?(b&253)!=1:0)break d;J[a+1116>>2]=J[a+1144>>2];break c}if(!K[a+433|0]|(b|0)!=4)break c}m=Ey(a);if(m)break a}g:{if(b){H[a+1080|0]=b;break g}b=K[a+1080|0]}H[a+1112|0]=b;h:{if(c){J[a+1144>>2]=d;i:switch(n-2|0){case 0:case 2:J[a+1116>>2]=J[a+1084>>2];break;default:break i}if((c|0)!=2)break h;J[a+1084>>2]=d;break h}J[a+1144>>2]=J[a+1084>>2]}j:{if(e){J[a+1120>>2]=f;if(!(1<>>0>8)break j;J[a+1088>>2]=f;break j}J[a+1120>>2]=J[a+1088>>2]}if(g){H[a+1124|0]=1;if(!h){J[a+1140>>2]=l;J[a+1136>> +2]=k;J[a+1132>>2]=j;J[a+1128>>2]=i;if((g|0)!=2)break b;J[a+1108>>2]=l;J[a+1104>>2]=k;J[a+1100>>2]=j;J[a+1096>>2]=i;H[a+1092|0]=1;break b}J[a+1128>>2]=J[a+1128>>2]+i;J[a+1132>>2]=J[a+1132>>2]+j;J[a+1136>>2]=J[a+1136>>2]+k;J[a+1140>>2]=J[a+1140>>2]+l;if((g|0)!=2)break b;H[a+1092|0]=1;J[a+1096>>2]=J[a+1096>>2]+i;J[a+1100>>2]=J[a+1100>>2]+j;J[a+1104>>2]=J[a+1104>>2]+k;J[a+1108>>2]=J[a+1108>>2]+l;break b}H[a+1124|0]=K[a+1092|0];b=J[a+1100>>2];J[a+1128>>2]=J[a+1096>>2];J[a+1132>>2]=b;b=J[a+1108>>2];J[a+ +1136>>2]=J[a+1104>>2];J[a+1140>>2]=b}m=0;if(K[a+497|0])break a;if(!(J[a+440>>2]?K[a+1112|0]!=4:0)){m=up(a);if(m)break a}H[a+433|0]=1;J[a+436>>2]=J[a+436>>2]+1;m=0}if(K[a+497|0])H[a+498|0]=1;return m}function pK(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;a:{b:{c:{d:{e:{f:{g:switch(J[b>>2]-3|0){case 0:c=vc(12);b=J[b+8>>2];J[699344]=0;b=aa(3354,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;break b;case 4:J[d>>2]=13;b=J[b+8>>2];J[699344]=0;c=ha(3368, +b|0,784290,d|0,0)|0;b=J[699344];J[699344]=0;h:{if((b|0)==1)break h;b=0;i:{if(J[c>>2]!=3)break i;J[699344]=0;c=_(4,12)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;b=aa(3354,c|0,J[d+8>>2])|0;e=J[699344];J[699344]=0;if((e|0)!=1)break i;break b}J[699344]=0;$(3370,d|0);c=J[699344];J[699344]=0;if((c|0)!=1)break f}break a;case 1:break d;case 3:break g;default:break c}if(!c)break c;J[d>>2]=13;c=J[b+8>>2];b=0;J[699344]=0;c=ha(3449,c|0,0,d|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;j:{if(J[c>> +2]!=3)break j;J[699344]=0;c=_(4,12)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;b=aa(3354,c|0,J[d+8>>2])|0;e=J[699344];J[699344]=0;if((e|0)!=1)break j;break b}J[699344]=0;$(3370,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}if(!b)break c}Zr(d,J[b>>2],J[b+4>>2]);J[a+8>>2]=J[d+8>>2];c=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=c;uc(ld(b));break c}b=J[b+8>>2];J[699344]=0;aa(2974,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}fc=d+16|0; +return}a=Z()|0;uc(c);ba(a|0);B()}ba(Z()|0);B()}function S$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{d=fc-16|0;fc=d;b:{c:{d:{e:{f:{g:{e=J[b+4>>2];b=J[e+4>>2];h:{if(!b){J[a>>2]=0;H[a+11|0]=0;break h}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[699344]=0;b=Mr(b);c=J[699344];J[699344]=0;if((c|0)==1)break c;if(b)break h;b=J[e+4>>2];if(!b)break h;J[699344]=0;g=Vm(b);b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[e+4>>2];if(!b)break h;while(1){J[699344]=0;b=_(3240,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f; +if((b|0)!=1)break h;b=J[e+4>>2];J[699344]=0;c=_(3241,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;if((c|0)==-1)break h;b=J[e+4>>2];i:{if(!b){b=-1;break i}J[699344]=0;b=Vm(b);f=J[699344];J[699344]=0;if((f|0)==1)break f}if((c|0)==15|(b|0)<(g|0))break h;j:{if(!(1<>>0>14)break j;b=J[e+4>>2];J[699344]=0;b=_(3242,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;k:{if(!b){J[d+4>>2]=0;H[d+15|0]=0;c=0;f=0;break k}c=Yc(b);J[699344]=0;ca(1618,d+4|0,b|0,c|0);b=J[699344];J[699344]=0;if((b| +0)==1)break e;c=K[d+15|0];f=J[d+4>>2]}J[699344]=0;b=c<<24>>24<0;ga(2960,a|0,(b?f:d+4|0)|0,(b?J[d+8>>2]:c&255)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;if(H[d+15|0]>=0)break j;uc(J[d+4>>2])}b=J[e+4>>2];if(b)continue;break}}fc=d+16|0;break a}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;if(H[d+15|0]>=0)break b;uc(J[d+4>>2]);break b}b=Z()|0}if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}}function p8(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;j=fc-16|0;fc=j;J[j+12>>2]=0;k=J[a+4>>2];p=J[k+8>>2];e=3;a:{if(d?0:c)break a;H[a|0]=0;if(M[k+3112>>2]<=b>>>0|(L[k+3120>>1]!=(c|0)?c:0))break a;h=J[k+3116>>2];i=b<<3;n=J[h+i>>2];g=n+1|0;f=_c(p,1,J[a+20>>2]<<2,g<<2,J[a+24>>2],j+12|0);J[a+24>>2]=f;e=J[j+12>>2];if(e)break a;J[a+20>>2]=g;b:{c:{if(!g)break c;q=h+i|0;if(c){h=0;while(1){d:{if(!h){J[f>>2]=65536;break d}o=h<<2;e=J[(o+J[q+4>>2]|0)-4>>2];if(e>>>0>=M[k+3124>>2]){e=3;break a}r=J[k+3128>>2]+(e<<2)|0;J[f+o>>2]=65536;e=0;while(1){f=65536;i=J[r>> +2]+P(e,12)|0;g=J[i+4>>2];l=J[i>>2];e:{if((g|0)<(l|0))break e;m=J[i+8>>2];if(!g|(g|0)>(m|0)|(l|0)<0&(m|0)>0)break e;f=0;i=J[(e<<2)+d>>2];if((i|0)<(l|0)|(i|0)>(m|0))break e;f=65536;if((g|0)==(i|0))break e;if((g|0)>(i|0)){f=Cd(i-l|0,g-l|0);break e}f=Cd(m-i|0,m-g|0)}g=Wc(J[J[a+24>>2]+o>>2],f);f=J[a+24>>2];J[o+f>>2]=g;e=e+1|0;if((e|0)!=(c|0))continue;break}}e=(h|0)!=(n|0);h=h+1|0;if(e)continue;break}break c}J[f>>2]=65536;if(!n){J[a+8>>2]=b;break b}g=J[q+4>>2]-4|0;e=1;while(1){h=e<<2;if(M[h+g>>2]>=M[k+ +3124>>2]){e=3;break a}J[f+h>>2]=0;h=(e|0)==(n|0);e=e+1|0;if(!h)continue;break}}J[a+8>>2]=b;if(!c)break b;b=c<<2;f=_c(p,1,J[a+12>>2]<<2,b,J[a+16>>2],j+12|0);J[a+16>>2]=f;e=J[j+12>>2];if(e)break a;xc(f,d,b)}H[a|0]=1;J[a+12>>2]=c;e=J[j+12>>2]}fc=j+16|0;return e|0}function sO(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=fc+-64|0;fc=g;J[g+24>>2]=0;J[g+28>>2]=0;J[g+56>>2]=0;J[g+60>>2]=0;J[g+48>>2]=0;J[g+52>>2]=0;J[g+40>>2]=0;J[g+44>>2]=0;J[g+32>>2]=0;J[g+36>>2]=0;J[g+24>>2]=d;J[g+16>>2]=0;J[g+20>> +2]=0;J[g+12>>2]=b;J[g+8>>2]=a;J[g+20>>2]=c;a:{b:{if(!xx(g+8|0,219260,56)){while(1){b=Vk(g+8|0,1);if((b|0)==1)break b;if(!(J[g+24>>2]?b:1))continue;break}if(b>>>0<2)break b}b=-101;break a}if(!K[2770313])H[2770313]=1;i=e-1|0;if((f|0)==16){if(!i){b=0;break a}m=e<<1;k=e-2|0;n=i&1;j=(e|0)==2;while(1){a=K[c|0];c:{if(!n){h=c;f=i;break c}e=K[c+3|0];b=K[c+1|0];H[c+3|0]=e+b;a=(K[c+2|0]+a|0)+(e>>>0>((b^-1)&255)>>>0)|0;H[c+2|0]=a;h=c+2|0;f=k}if(!j){while(1){b=h;l=K[b+3|0];e=K[b+1|0];h=e+l|0;H[b+3|0]=h;c=K[b+ +5|0];H[b+5|0]=c+h;a=(K[b+2|0]+a|0)+(l>>>0>((e^-1)&255)>>>0)|0;H[b+2|0]=a;a=(a+K[b+4|0]|0)+(c>>>0>((h^-1)&255)>>>0)|0;H[b+4|0]=a;h=b+4|0;f=f-2|0;if(f)continue;break}c=b+2|0}c=c+4|0;b=0;d=d-m|0;if((d|0)>0)continue;break}break a}if(!i){b=0;break a}j=i&3;k=e-2>>>0<3;while(1){h=K[c|0];f=0;a=i;if(j)while(1){b=c;h=K[c+1|0]+h|0;H[c+1|0]=h;a=a-1|0;c=c+1|0;f=f+1|0;if((j|0)!=(f|0))continue;break}if(!k){while(1){b=c;f=K[c+1|0]+h|0;H[c+1|0]=f;f=f+K[c+2|0]|0;H[c+2|0]=f;f=f+K[c+3|0]|0;H[c+3|0]=f;h=f+K[c+4|0]|0; +H[c+4|0]=h;c=c+4|0;a=a-4|0;if(a)continue;break}b=b+3|0}c=b+2|0;b=0;d=d-e|0;if((d|0)>0)continue;break}}fc=g- -64|0;return b}function QO(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0;m=fc-16|0;fc=m;a:{if(!(!L[j+28>>1]|!(K[j+64|0]|K[j+65|0]))){l=iv(a,j);if(l)break a}l=kc[J[a+152>>2]](92)|0;if(!l){l=1;Jc(a,1,0,0);break a}H[l+31|0]=d;H[l+30|0]=0;I[l+28>>1]=b;J[l+4>>2]=0;J[l>>2]=951;d=K[j+32|0];H[l+33|0]=1;H[l+32|0]=d;b:{if(f){if(!g){J[l+36>>2]=h;break b}J[l+36>>2]=J[j+36>>2]+h;i=J[j+40>>2]+i|0;break b}J[l+36>>2]= +J[j+36>>2];i=J[j+40>>2]}J[l+40>>2]=i;H[l+44|0]=K[j+44|0];J[l+48>>2]=J[j+48>>2];J[l+52>>2]=J[j+52>>2];J[l+56>>2]=J[j+56>>2];d=J[j+60>>2];J[l+80>>2]=0;J[l+84>>2]=0;J[l+60>>2]=d;if(b){d=a+692|0;c:{d:{i=J[a+692>>2];if(i)while(1){if(L[i+28>>1]<=b>>>0)break d;i=J[i+12>>2];if(i)continue;break}i=J[a+688>>2];J[l+8>>2]=i;J[a+688>>2]=l;break c}J[l+12>>2]=i;J[l+8>>2]=J[i+8>>2];J[i+8>>2]=l;i=J[l+8>>2]}J[(i?i+12|0:d)>>2]=l}e:{f:{if(c){a=J[j+88>>2];J[l+88>>2]=a;J[a+28>>2]=J[a+28>>2]+1;break f}c=J[j+88>>2];d=(e? +0:K[c+33|0])<<24>>24;b=kc[J[a+152>>2]](1180)|0;g:{if(b){b=xc(b,c,1180);H[b+33|0]=d;J[b+28>>2]=1;H[b+32|0]=0;h:{d=J[b+1172>>2];if(d){d=kc[J[a+152>>2]](d)|0;J[b+1176>>2]=d;if(!d)break h;xc(d,J[c+1176>>2],J[b+1172>>2])}d=J[b+1144>>2];if(d){d=kc[J[a+152>>2]](d)|0;J[b+1148>>2]=d;if(!d)break h;xc(d,J[c+1148>>2],J[b+1144>>2])}J[m+12>>2]=b;b=0;break g}kc[J[a+156>>2]](b,1180)}Jc(a,1,0,0);b=1}if(b)break e;J[l+88>>2]=J[m+12>>2]}J[k>>2]=l;l=0;break a}kc[J[a+156>>2]](l,92);l=1}fc=m+16|0;return l}function Dib(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+4>>2]=0;if((b|0)!=80){d=J[a>>2];J[d+20>>2]=13;J[d+24>>2]=80;J[J[a>>2]+28>>2]=b;kc[J[J[a>>2]>>2]](a)}if((c|0)!=488){b=J[a>>2];J[b+20>>2]=22;J[b+24>>2]=488;J[J[a>>2]+28>>2]=c;kc[J[J[a>>2]>>2]](a)}b=J[a>>2];c=J[a+12>>2];Ac(a+4|0,0,484);J[a+16>>2]=1;J[a+12>>2]=c;J[a>>2]=b;P5(a);J[a+308>>2]=0;J[a+24>>2]=0;J[a+8>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]= +0;J[a+208>>2]=0;b=kc[J[J[a+4>>2]>>2]](a,0,172)|0;J[a+460>>2]=b;J[b+96>>2]=0;J[b+100>>2]=0;J[b+28>>2]=288;J[b+8>>2]=289;J[b+4>>2]=290;J[b>>2]=291;J[b+104>>2]=0;J[b+36>>2]=288;J[b+40>>2]=288;J[b+108>>2]=0;J[b+112>>2]=0;J[b+44>>2]=288;J[b+48>>2]=288;J[b+116>>2]=0;J[b+120>>2]=0;J[b+52>>2]=288;J[b+56>>2]=288;J[b+124>>2]=0;J[b+128>>2]=0;J[b+60>>2]=288;J[b+132>>2]=0;J[b- -64>>2]=288;J[b+136>>2]=0;J[b+140>>2]=0;J[b+68>>2]=288;J[b+72>>2]=288;J[b+76>>2]=288;J[b+80>>2]=288;J[b+144>>2]=0;J[b+148>>2]=0;J[b+84>> +2]=288;J[b+152>>2]=0;J[b+156>>2]=0;J[b+160>>2]=0;J[b+92>>2]=288;J[b+32>>2]=292;J[b+88>>2]=292;J[a+216>>2]=0;J[a+436>>2]=0;J[a+144>>2]=0;b=J[a+460>>2];J[b+164>>2]=0;J[b+24>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;b=kc[J[J[a+4>>2]>>2]](a,0,28)|0;J[a+456>>2]=b;J[b+24>>2]=1;J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=295;J[b+8>>2]=296;J[b+4>>2]=297;J[b>>2]=298;J[a+20>>2]=200}function tva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d:{b=J[b>>2];e:{if(b){d=J[J[b>>2]+24>>2];J[699344]= +0;ca(d|0,c+4|0,b|0,2);b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[c+4>>2];f:{if(b){d=J[J[b>>2]+24>>2];J[699344]=0;ca(d|0,c+8|0,b|0,2);b=J[699344];J[699344]=0;if((b|0)!=1)break f;b=Z()|0;break c}J[c+8>>2]=0}J[699344]=0;aa(5153,a|0,c+8|0)|0;b=J[699344];J[699344]=0;g:{if((b|0)!=1){b=J[c+8>>2];J[c+8>>2]=0;if(!b)break g;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g}break a}b=Z()|0;zc(c+8| +0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+4>>2];J[c+4>>2]=0;if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}J[699344]=0;J[c+12>>2]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break h;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break h;J[699344]=0;$(5147,b|0); +b=J[699344];J[699344]=0;if((b|0)!=1)break h}break a}b=Z()|0;zc(c+12|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2]}fc=c+16|0;return a|0}b=Z()|0;break b}zc(c+4|0)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function x7a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;J[J[J[b>>2]>>2]+20>>2]=c;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+24>>2]=0;J[b+28>>2]=-1;J[b+208>>2]=0;J[b+212>>2]=-1;J[b+176>>2]=0;J[b+180>>2]=0;J[b+400>>2]=0;J[b+404>>2]=0;if(K[a+96|0]){H[a+96|0]=0;J[a+64>> +2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1208>>2]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}c=zD(b,d+8|0,d);if(c){g=a+104|0;while(1){e=O[d>>3];f=O[d+8>>3];a:{if((c|0)==1){if(K[a+96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1208>>2]=0;J[a+88>> +2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}if(!(!K[a+1188|0]|J[a+1208>>2]!=2))Sd(a+104|0,a,O[a+1192>>3],O[a+1200>>3]);O[a+1200>>3]=e;O[a+1192>>3]=f;O[a+144>>3]=e;O[a+136>>3]=f;if(K[a+156|0])J[a+152>>2]=(O[a+128>>3]>3]>3]>f)<<2|(O[a+112>>3]>e)<<3;J[a+1208>>2]=1;break a}if(c>>>0<=14){Sd(g,a,f,e);J[a+1208>>2]=2;break a}if((c&-49)!=79|J[a+1208>>2]!=2)break a;Sd(g,a,O[a+1192>>3],O[a+1200>> +3]);J[a+1208>>2]=3}c=zD(b,d+8|0,d);if(c)continue;break}}fc=d+16|0}function KQa(a,b,c){a=a|0;b=b|0;c=c|0;var d=Q(0),e=Q(0),f=Q(0),g=Q(0),h=0,i=0,j=Q(0),k=Q(0),l=Q(0),m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=Q(0),v=Q(0),w=Q(0),x=Q(0),y=Q(0),z=Q(0),A=Q(0);h=a;while(1){i=J[(m<<2)+b>>2]+c|0;n=K[i+7|0];o=K[i|0];d=Q(n+o|0);p=K[i+4|0];q=K[i+3|0];e=Q(p+q|0);g=Q(d+e);r=K[i+6|0];s=K[i+1|0];f=Q(r+s|0);t=K[i+5|0];i=K[i+2|0];j=Q(t+i|0);k=Q(f+j);N[h+16>>2]=g-k;N[h>>2]=Q(k+g)+Q(-1024);d=Q(d-e);e=Q(Q(d+Q(f-j))*Q(.7071067690849304)); N[h+24>>2]=d-e;N[h+8>>2]=d+e;d=Q(o-n|0);g=Q(s-r|0);f=Q(i-t|0);j=Q(Q(g+f)*Q(.7071067690849304));e=Q(d-j);f=Q(f+Q(q-p|0));k=Q(d+g);g=Q(Q(f-k)*Q(.3826834261417389));f=Q(Q(f*Q(.5411961078643799))+g);N[h+20>>2]=e+f;N[h+12>>2]=e-f;d=Q(j+d);e=Q(Q(k*Q(1.3065630197525024))+g);N[h+28>>2]=d-e;N[h+4>>2]=d+e;h=h+32|0;m=m+1|0;if((m|0)!=8)continue;break}h=7;while(1){g=N[a>>2];f=N[a+224>>2];d=Q(g+f);j=N[a+96>>2];k=N[a+128>>2];e=Q(j+k);l=Q(d+e);u=N[a+32>>2];v=N[a+192>>2];w=Q(u+v);x=N[a+64>>2];y=N[a+160>>2];z=Q(x+ -y);A=Q(w+z);N[a+128>>2]=l-A;N[a>>2]=A+l;d=Q(d-e);e=Q(Q(d+Q(w-z))*Q(.7071067690849304));N[a+192>>2]=d-e;N[a+64>>2]=d+e;d=Q(g-f);g=Q(u-v);f=Q(x-y);l=Q(Q(g+f)*Q(.7071067690849304));e=Q(d-l);f=Q(f+Q(j-k));j=Q(d+g);g=Q(Q(f-j)*Q(.3826834261417389));f=Q(Q(f*Q(.5411961078643799))+g);N[a+160>>2]=e+f;N[a+96>>2]=e-f;d=Q(d+l);e=Q(Q(j*Q(1.3065630197525024))+g);N[a+224>>2]=d-e;N[a+32>>2]=d+e;b=h;h=h-1|0;a=a+4|0;if(b)continue;break}}function e2a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-160|0;bc=d;f= -d+52|0;e=K[a+11|0];h=e<<24>>24<0;lm(f,h?J[a>>2]:a,h?J[a+4>>2]:e,0);h=Rk(H[d+63|0]<0?J[d+52>>2]:f,d- -64|0);if(!h){f=J[d+104>>2];e=J[d+108>>2];a:{if(!b){a=J[d+120>>2];b=J[d+124>>2];break a}g=J[b+20>>2];a=J[b+16>>2];J[d+24>>2]=a;J[d+28>>2]=g;J[d+48>>2]=J[b+40>>2];g=J[b+36>>2];J[d+40>>2]=J[b+32>>2];J[d+44>>2]=g;g=J[b+28>>2];J[d+32>>2]=J[b+24>>2];J[d+36>>2]=g;g=J[b+12>>2];J[d+16>>2]=J[b+8>>2];J[d+20>>2]=g;g=J[b>>2];b=J[b+4>>2];J[d+24>>2]=a-1;J[d+8>>2]=g;J[d+12>>2]=b;J[d+28>>2]=J[d+28>>2]-1900;a=AR(d+ -8|0);b=fc}if(c){e=J[c+20>>2];f=J[c+16>>2];J[d+24>>2]=f;J[d+28>>2]=e;J[d+48>>2]=J[c+40>>2];e=J[c+36>>2];J[d+40>>2]=J[c+32>>2];J[d+44>>2]=e;e=J[c+28>>2];J[d+32>>2]=J[c+24>>2];J[d+36>>2]=e;e=J[c+12>>2];J[d+16>>2]=J[c+8>>2];J[d+20>>2]=e;e=J[c>>2];c=J[c+4>>2];J[d+24>>2]=f-1;J[d+8>>2]=e;J[d+12>>2]=c;J[d+28>>2]=J[d+28>>2]-1900;f=AR(d+8|0);e=fc}J[d+16>>2]=a;J[d+20>>2]=b;J[d+8>>2]=f;J[d+12>>2]=e;b=H[d+63|0]<0?J[d+52>>2]:d+52|0;a=bc-32|0;bc=a;if(d+8|0){c=J[d+8>>2];f=J[d+12>>2];J[a+8>>2]=0;J[a>>2]=c;J[a+4>> -2]=f;c=J[d+16>>2];f=J[d+20>>2];J[a+24>>2]=0;J[a+16>>2]=c;J[a+20>>2]=f;c=a}else c=0;b:{if(!c){c=0;break b}if(J[c+8>>2]!=1073741823)break b;c=J[c+24>>2]!=1073741823?c:0}b=kb(-100,b|0,c|0,0)|0;if(b>>>0>=4294963201)J[694731]=0-b;bc=a+32|0}if(H[d+63|0]<0)qc(J[d+52>>2]);bc=d+160|0;return!h|0}function KA(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;a:{if((e|0)==-1)break a;f=J[a+8>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break a;g=J[a+8>>2];g=gc[J[J[g>>2]+28>> -2]](g)|0;if((g|0)==-1)break a;h=J[a+8>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break a;i=J[a+8>>2];i=gc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break a;j=J[a+8>>2];j=gc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break a;k=J[a+8>>2];k=gc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break a;l=J[a+8>>2];l=gc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break a;J[b>>2]=l|(j<<16|i<<24|k<<8);b:{c:{d:{e:{b=h|(f<<16|e<<24|g<<8);switch(b|0){case 0:break d;case 1:break e;default:break c}}b=J[a+8>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if((b| -0)==-1)break a;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break a;f=J[a+8>>2];f=gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break a;g=J[a+8>>2];g=gc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break a;h=J[a+8>>2];h=gc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break a;i=J[a+8>>2];i=gc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break a;j=J[a+8>>2];j=gc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break a;k=J[a+8>>2];k=gc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break a;if(g|(e<<16|b<<24|f<<8)){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,811313, -0);return 0}a=k|(i<<16|h<<24|j<<8);J[c>>2]=a;J[d>>2]=a-16;break b}J[c>>2]=0;J[d>>2]=0;break b}J[c>>2]=b;J[d>>2]=b-8}m=1}return m}function Z8(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;p=bc;f=b+1|0;l=p-((P(f>>>1|0,c)<<2)+15&-16)|0;bc=l;j=f-e>>1;a:{if((j|0)<=0|(c|0)<=0)break a;f=c<<2;h=j;g=a;i=l;m=j&3;if(m)while(1){h=h-1|0;i=tc(i,g,f)+f|0;g=(d<<2)+g|0;k=k+1|0;if((m|0)!=(k|0))continue;break}if(j>>>0<4)break a;while(1){k=d<<2;m=k+g|0;n=k+m|0;o=n+k|0;i=tc(i,g,f);g=c<<2;i=tc(tc(tc(i+ -g|0,m,f)+g|0,n,f)+g|0,o,f)+g|0;g=k+o|0;k=h-5|0;h=h-4|0;if(k>>>0<4294967294)continue;break}}k=b-j|0;if(!((k|0)<=0|(c|0)<=0)){o=c&-8;m=c&7;b=(P(d,j)<<2)+a|0;i=(P(1-e|0,d)<<2)+a|0;n=c>>>0<8;q=d<<3;while(1){h=0;g=i;f=b;if(!n)while(1){J[g>>2]=J[f>>2];J[g+4>>2]=J[f+4>>2];J[g+8>>2]=J[f+8>>2];J[g+12>>2]=J[f+12>>2];J[g+16>>2]=J[f+16>>2];J[g+20>>2]=J[f+20>>2];J[g+24>>2]=J[f+24>>2];J[g+28>>2]=J[f+28>>2];f=f+32|0;g=g+32|0;h=h+8|0;if((o|0)!=(h|0))continue;break}h=0;if(m)while(1){J[g>>2]=J[f>>2];f=f+4|0;g=g+4| -0;h=h+1|0;if((m|0)!=(h|0))continue;break}b=(d<<2)+b|0;i=i+q|0;f=(k|0)>1;k=k-1|0;if(f)continue;break}}b:{if((j|0)<=0|(c|0)<=0)break b;g=d<<1;b=c<<2;h=(P(d,e)<<2)+a|0;a=j&3;c:{if(!a){f=j;break c}i=0;f=j;while(1){d=tc(h,l,b);f=f-1|0;l=b+l|0;h=(g<<2)+d|0;i=i+1|0;if((a|0)!=(i|0))continue;break}}if(j>>>0<4)break b;while(1){e=tc(h,l,b);a=c<<2;d=a+l|0;j=a+d|0;i=j+a|0;l=i+a|0;a=g<<2;h=tc(tc(tc(a+e|0,d,b)+a|0,j,b)+a|0,i,b)+a|0;a=f-5|0;f=f-4|0;if(a>>>0<4294967294)continue;break}}bc=p}function Mqa(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;f=bc-32|0;bc=f;h=J[b+16>>2];c=h-1|0;Sl(a+72|0,0,c);Sl(a+96|0,0,c);Sl(a+120|0,0,c);a:{b:{if((h|0)>0)while(1){if(!(J[a+88>>2]<=(d|0)&J[a+92>>2]>=(d|0))){a=Kc(f+8|0,2381890,2382316,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}J[J[a+76>>2]+(d-J[a+80>>2]<<2)>>2]=d;if(!(J[a+112>>2]<=(d|0)&J[a+116>>2]>=(d|0))){a=Kc(f+8|0,2381890,2382316,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b; -break a}J[J[a+100>>2]+(d-J[a+104>>2]<<2)>>2]=d;if(!(J[a+136>>2]<=(d|0)&J[a+140>>2]>=(d|0))){a=Kc(f+8|0,2381890,2382316,619,2422816,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=b;g=J[a+124>>2]+(d-J[a+128>>2]<<4)|0;i=bc-32|0;bc=i;c:{d:{while(1){e=c;c=J[c+16>>2];if((c|0)>(d|0)){c=J[e+20>>2];if(c)continue;break d}break}j=J[e+68>>2];k=J[e- -64>>2];if((((c+j|0)-k|0)+1|0)<=(d|0))break d;e:{c=d-c|0;if(!((c|0)<=(j|0)&(c|0)>=(k|0))){a=Kc(i+8|0,2381890,2382316,619,2422816, -0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e;break a}c=J[e+52>>2]+(c-J[e+56>>2]<<4)|0;e=J[c+4>>2];J[g>>2]=J[c>>2];J[g+4>>2]=e;e=J[c+12>>2];J[g+8>>2]=J[c+8>>2];J[g+12>>2]=e;break c}B()}rT(g,J[qz(e,d)+4>>2])}bc=i+32|0;d=d+1|0;if((h|0)!=(d|0))continue;break}bc=f+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function cxa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;a:{b:{c:{d:{if((c|0)<=0)break d;c=c-1|0;if(!d){while(1){d=c;J[a>>2]=0;J[a+4>>2]=J[682146];c=J[b>> -2];e:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,e+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break e;b=Z()|0;break b}J[e+12>>2]=0}J[695492]=0;aa(4993,a|0,e+12|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+12>>2];J[e+12>>2]=0;f:{if(!c)break f;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break f;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[a>>2];J[a+4>>2]=J[(c?c+12|0:2728584)>>2];c=d-1|0;b=b+8|0;a=a+8|0;if((d|0)>0)continue; -break d}break}break c}while(1){d=c;J[a>>2]=0;J[a+4>>2]=J[682146];c=J[b>>2];g:{if(c){f=J[J[c>>2]+28>>2];J[695492]=0;ca(f|0,e+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break g;b=Z()|0;break b}J[e+12>>2]=0}J[695492]=0;aa(4993,a|0,e+12|0)|0;c=J[695492];J[695492]=0;h:{if((c|0)!=1){c=J[e+12>>2];J[e+12>>2]=0;if(!c)break h;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break h;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break h;break a}break c}c= -J[a>>2];J[a+4>>2]=J[(c?c+12|0:2728584)>>2];c=d-1|0;a=a+8|0;b=sc(b)+8|0;if((d|0)>0)continue;break}}bc=e+16|0;return}b=Z()|0;vc(e+12|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function Rla(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a+12>>2]=0;H[a+96|0]=0;J[a+92>>2]=0;J[a+64>>2]=b;J[a+56>>2]=0;J[a+60>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+112>>2]=340520;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>> -2]=2432012;J[a+76>>2]=0;J[a+80>>2]=0;H[a+83|0]=0;H[a+84|0]=0;H[a+85|0]=0;H[a+86|0]=0;H[a+87|0]=0;H[a+88|0]=0;H[a+89|0]=0;H[a+90|0]=0;J[a+108>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;b=a+116|0;J[b>>2]=0;J[b+4>>2]=0;J[695492]=0;ga(2226,a+128|0,2429884,5)|0;c=J[695492];J[695492]=0;a:{b:{c:{d:{if((c|0)!=1){if(H[a+127|0]>=0)break d;J[a+120>>2]=0;b=J[a+116>>2];break c}b=Z()|0;if(H[a+139|0]<0)qc(J[a+128>>2]);if(H[a+127|0]>=0)break b;qc(J[a+116>>2]);break b}H[a+127|0]=0}J[b>>2]=0;I[a+ -160>>1]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;J[a+220>>2]=0;J[695492]=0;b=a+224|0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2451200;b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;kn(a+112|0)}c=J[a+80>>2];if(c)Vc(c);Ie(a+68|0);Ie(a+56|0);ba(b|0);B()}J[a+248>>2]=0;J[a+252>>2]=0;I[a+244>>1]=0; -J[a+240>>2]=0;return a|0}function Q4(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{g=K[a|0];if((g|0)!=117)break b;c:{d=K[a+1|0];if((d|0)!=110|K[a+2|0]!=105)break c;b=K[a+3|0];c=b-48|0;e=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(e>>>0>15)break c;b=K[a+4|0];c=b-48|0;f=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(f>>>0>15)break c;b=K[a+5|0];c=b-48|0;h=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(h>>>0>15)break c;b=K[a+6|0];c=b-48|0;b=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(b>>>0>15)break c;b=b+(((e<< -8)+(f<<4)|0)+h<<4)|0;c=K[a+7|0];if(!c)break a;if((c|0)!=46)break c;return b|-2147483648}b=d-48|0;c=b>>>0>9?d-71>>>0<4294967290?16:d-55|0:b;if(c>>>0>15)break b;b=K[a+2|0];d=b-48|0;e=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(e>>>0>15)break b;b=K[a+3|0];d=b-48|0;f=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(f>>>0>15)break b;b=K[a+4|0];d=b-48|0;b=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(b>>>0>15)break b;b=b+(f+((c<<8)+(e<<4)|0)<<4)|0;c=K[a+5|0];e=c-48|0;c=e>>>0>9?c-71>>>0<4294967290?16:c-55|0:e;d=a+ -5|0;d:{if(c>>>0>15)break d;b=c+(b<<4)|0;c=K[a+6|0];e=c-48|0;c=e>>>0>9?c-71>>>0<4294967290?16:c-55|0:e;d=a+6|0;if(c>>>0>15)break d;b=c+(b<<4)|0;d=a+7|0}d=K[d|0];if(!d)break a;if((d|0)!=46)break b;return b|-2147483648}b=a;while(1){e:{f:{if((g|0)!=46){if(g)break f;return P4(a,b)|0}if(a>>>0>>0)break e}g=K[b+1|0];b=b+1|0;continue}break}b=P4(a,b)|-2147483648}return b|0}function bm(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0,o=0;m=J[a>>2];a:{if((m|0)<=(b|0)){i=b;break a}i=b;if(!(e>=0))break a;n=d*.5; -if(c){while(1){b:{k=K[J[a+4>>2]+i|0];switch(k-10|0){case 0:case 3:break a;default:break b}}if(gc[J[J[c>>2]+8>>2]](c)|0)l=n;else l=O[((k<<3)+c|0)+1464>>3]*d;j=j+l;i=i+1|0;if((i|0)>=J[a>>2])break a;if(e>=j)continue;break}break a}k=J[a+4>>2];while(1){c:switch(K[i+k|0]-10|0){case 0:case 3:break a;default:break c}j=j+n;i=i+1|0;if((m|0)<=(i|0))break a;if(e>=j)continue;break}}o=f;if(e(i|0)?i:b;f=i;while(1){d:{k=f;if((b|0)>=(f|0)){k=m;break d}f=k-1|0;if(K[f+J[a+4>>2]|0]!=32)continue}break}while(1){e:{f= -k;if((f|0)<=(b|0)){f=i;break e}k=f-1|0;if(K[k+J[a+4>>2]|0]==32)continue}break}i=(b|0)==(f|0)?b+1|0:f}J[o>>2]=i;e=0;f:{if((b|0)>=(i|0))break f;j=d*.5;if(c){while(1){if(gc[J[J[c>>2]+8>>2]](c)|0)l=j;else l=O[((K[J[a+4>>2]+b|0]<<3)+c|0)+1464>>3]*d;e=e+l;b=b+1|0;if((i|0)!=(b|0))continue;break}break f}f=(b^-1)+i|0;c=i-b&7;if(c){k=0;while(1){b=b+1|0;e=e+j;k=k+1|0;if((c|0)!=(k|0))continue;break}}if(f>>>0<7)break f;while(1){e=e+j+j+j+j+j+j+j+j;b=b+8|0;if((i|0)!=(b|0))continue;break}}O[g>>3]=e;f=J[a>>2];if((f| -0)>(i|0)){c=J[a+4>>2];g:{while(1){b=K[c+i|0];if((b|0)!=32)break g;i=i+1|0;if((f|0)!=(i|0))continue;break}J[h>>2]=f;return}i=((b|0)==13)+i|0}if((f|0)>(i|0))i=(K[J[a+4>>2]+i|0]==10)+i|0;J[h>>2]=i}function TNa(a){a=a|0;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;Gc(J[a+16>>2]);J[a+16>>2]=0;if(J[a+96>>2]){Gc(J[a+88>>2]);Gc(J[a+92>>2]);J[a+96>>2]=0}if(J[a+116>>2]){Gc(J[a+104>>2]);Gc(J[a+108>>2]);Gc(J[a+112>>2]);J[a+116>>2]=0}if(J[a+136>>2]){Gc(J[a+124>>2]);Gc(J[a+128>>2]);Gc(J[a+132>>2]);J[a+ -136>>2]=0}b=J[a+200>>2];if(b){c=J[a+192>>2];d=J[a+196>>2];if(P(c,d)){while(1){l=J[a+200>>2]+(k<<6)|0;b=J[l+60>>2];if(b){if(J[a+188>>2]){h=0;while(1){e=J[l+60>>2]+P(h,88)|0;Gc(J[e+44>>2]);Gc(J[e+76>>2]);Gc(J[e+80>>2]);if(J[e+84>>2]){f=0;while(1){g=J[e+84>>2]+P(f,100)|0;b=J[g+96>>2];if(b){c=J[g+8>>2];if(c){i=0;while(1){j=0;m=J[g+96>>2]+(i<<2)|0;if(J[m>>2]){while(1){c=J[m>>2]+P(j,24)|0;Gc(J[c+12>>2]);Gc(J[c+16>>2]);b=J[c+20>>2];if(b){if(P(J[c+4>>2],J[c>>2])){d=0;while(1){b=J[c+20>>2]+P(d,68)|0;Gc(J[b+ -40>>2]);Gc(J[b+52>>2]);n=J[b+60>>2];if(n)qc(TY(n));b=J[b+64>>2];if(b)qc(dd(b));d=d+1|0;if(d>>>0>2],J[c>>2])>>>0)continue;break}b=J[c+20>>2]}Gc(b)}if(f){b=j>>>0<2;j=j+1|0;if(b)continue}break}Gc(J[m>>2]);c=J[g+8>>2]}i=i+1|0;if(i>>>0>>0)continue;break}b=J[g+96>>2]}Gc(b)}f=f+1|0;if(f>>>0<=M[e+20>>2])continue;break}Gc(J[e+84>>2])}h=h+1|0;if(h>>>0>2])continue;break}b=J[l+60>>2]}Gc(b);d=J[a+196>>2];c=J[a+192>>2]}k=k+1|0;if(k>>>0>>0)continue;break}b=J[a+200>>2]}Gc(b);J[a+200>> -2]=0}a=J[a+8>>2];gc[J[J[a>>2]+24>>2]](a)}function rfb(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+540>>2];a:{if(!b)break a;d=J[b+80>>2];if(d)gc[d|0](a);d=J[b+100>>2];if(d)gc[d|0](a);d=J[b+120>>2];if(!d)break a;gc[d|0](a);gc[J[b+124>>2]](a)}if(K[a+848|0]){d=a+828|0;if(J[d>>2])Sf(J[a+104>>2],d);J[a+840>>2]=0;J[a+832>>2]=0;J[a+836>>2]=0}Sf(J[a+104>>2],a+808|0);J[a+820>>2]=0;J[a+824>>2]=0;J[a+812>>2]=0;J[a+816>>2]=0;d=J[a+144>>2];if(d)gc[J[c+8>>2]](c,d);J[a+140>>2]=0;J[a+144>>2]=0;d=J[a+156>>2]; -if(d)gc[J[c+8>>2]](c,d);I[a+152>>1]=0;J[a+156>>2]=0;Sf(J[a+104>>2],a+508|0);J[a+752>>2]=0;J[a+756>>2]=0;J[a+512>>2]=0;if(K[a+292|0]){d=J[a+332>>2];if(d)gc[J[c+8>>2]](c,d);J[a+332>>2]=0;d=J[a+336>>2];if(d)gc[J[c+8>>2]](c,d);H[a+292|0]=0;J[a+336>>2]=0}d=J[a+564>>2];if(d)gc[J[c+8>>2]](c,d);I[a+562>>1]=0;J[a+564>>2]=0;if(b)gc[J[b+52>>2]](a);b=J[a+20>>2];if(b)gc[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>>2];if(b)gc[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+32>>2];if(b)gc[J[c+8>>2]](c,b);J[a+32>>2]=0;b=J[a+804>>2]; -if(b)gc[J[c+8>>2]](c,b);J[a+28>>2]=0;J[a+804>>2]=0;b=J[a+720>>2];if(b)gc[J[c+8>>2]](c,b);J[a+720>>2]=0;b=J[a+744>>2];if(b)gc[J[c+8>>2]](c,b);J[a+744>>2]=0;b=J[a+652>>2];if(b)gc[J[c+8>>2]](c,b);J[a+652>>2]=0;b=J[a+656>>2];if(b)gc[J[c+8>>2]](c,b);J[a+656>>2]=0;b=J[a+664>>2];if(b)gc[J[c+8>>2]](c,b);J[a+664>>2]=0;b=J[a+672>>2];if(b)gc[J[c+8>>2]](c,b);J[a+540>>2]=0;J[a+672>>2]=0}}function NQa(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;f=a;while(1){d=J[(l<< -2)+b>>2]+c|0;h=K[d+4|0];g=K[d+3|0];e=h+g|0;i=K[d+7|0];j=K[d|0];k=i+j|0;m=e+k|0;n=K[d+5|0];o=K[d+2|0];p=n+o|0;q=K[d+6|0];r=K[d+1|0];d=q+r|0;s=p+d|0;J[f+16>>2]=m-s<<2;J[f>>2]=(m+s<<2)-4096;e=k-e|0;k=d-p|0;d=P(e+k|0,4433)+1024|0;J[f+24>>2]=d+P(k,-15137)>>11;J[f+8>>2]=d+P(e,6270)>>11;d=g-h|0;h=j-i|0;g=P(d+h|0,-7373);e=r-q|0;k=e+d|0;i=o-n|0;m=i+h|0;j=P(k+m|0,9633)+1024|0;n=g+P(d,2446)|0;d=j+P(k,-16069)|0;J[f+28>>2]=n+d>>11;j=j+P(m,-3196)|0;k=P(i,16819);i=P(e+i|0,-20995);J[f+20>>2]=j+(k+i|0)>>11;J[f+12>> -2]=d+(i+P(e,25172)|0)>>11;J[f+4>>2]=j+(g+P(h,12299)|0)>>11;f=f+32|0;l=l+1|0;if((l|0)!=8)continue;break}b=7;while(1){f=J[a+224>>2];d=J[a>>2];c=f+d|0;l=J[a+128>>2];h=J[a+96>>2];g=l+h|0;e=(c+g|0)+2|0;i=J[a+160>>2];j=J[a+64>>2];k=i+j|0;m=J[a+192>>2];n=J[a+32>>2];o=m+n|0;p=k+o|0;J[a+128>>2]=e-p>>2;J[a>>2]=e+p>>2;g=c-g|0;e=o-k|0;c=P(g+e|0,4433)+16384|0;J[a+192>>2]=c+P(e,-15137)>>15;J[a+64>>2]=c+P(g,6270)>>15;c=h-l|0;f=d-f|0;d=P(c+f|0,-7373);l=n-m|0;e=l+c|0;h=j-i|0;i=h+f|0;g=P(e+i|0,9633)+16384|0;j=d+P(c, -2446)|0;c=g+P(e,-16069)|0;J[a+224>>2]=j+c>>15;g=g+P(i,-3196)|0;e=P(h,16819);h=P(h+l|0,-20995);J[a+160>>2]=g+(e+h|0)>>15;J[a+96>>2]=c+(h+P(l,25172)|0)>>15;J[a+32>>2]=g+(d+P(f,12299)|0)>>15;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function xp(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=bc-128|0;bc=f;a:{if(!a)break a;h=J[a+16>>2];if(!h)break a;d=h;a=J[a+12>>2];b:{if(d>>>0<=a>>>0)break b;while(1){c:switch(K[d|0]-10|0){case 0:case 3:break c;default:break b}d=d-1|0;if(a>>>0>>0)continue;break}d=a}d:{e:{if(a>>> -0>=d>>>0)break e;e=1;while(1){f:{g=K[d|0];switch(g-10|0){case 0:case 3:break d;default:break f}}d=d-1|0;if(e>>>0>79)break e;e=e+1|0;if(a>>>0>>0)continue;break}}g=K[d|0]}g:switch(g-10|0){case 0:case 3:d=d+1|0;break;default:break g}g=h-d|0;a=f+32|0;e=d;while(1){h:{i:{i=K[e|0];switch(i|0){case 0:case 10:break h;default:break i}}if((i|0)==13|j>>>0>79)break h;H[a|0]=i;j=j+1|0;a=a+1|0;e=e+1|0;continue}break}e=0;H[a|0]=0;a=f+32|0;J[f+16>>2]=a;gc[b|0](c,32890,f+16|0);j:{if((d|0)==(h|0)){d=a;break j}h= -g>>>0<=1?1:g;a=f+32|0;while(1){d=a;k:switch(K[a|0]){default:H[d|0]=32;break;case 0:break j;case 9:break k}d=d+1|0;if((h|0)==(e|1))break j;l:switch(K[a+1|0]){default:H[a+1|0]=32;break;case 0:break j;case 9:break l}d=a+2|0;if((g|0)==(e|2))break j;m:switch(K[a+2|0]){default:H[a+2|0]=32;break;case 0:break j;case 9:break m}d=a+3|0;i=e|3;if((i|0)==(g|0)|(i|0)==79)break j;n:switch(K[a+3|0]){default:H[a+3|0]=32;break;case 0:break j;case 9:break n}a=a+4|0;d=a;e=e+4|0;if((g|0)!=(e|0))continue;break}}H[d|0]= -94;H[d+1|0]=0;J[f>>2]=f+32;gc[b|0](c,32890,f)}bc=f+128|0}function E0a(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;h=J[a+8>>2];n=J[a+12>>2];if(h>>>0>>0){k=J[a+20>>2];d=J[a+4>>2];if(J[d+52>>2]==1){hi(d,740948,4,a+16|0,k,a+24|0,-1,b);d=J[a+4>>2];J[d+52>>2]=0}f=J[a+24>>2];c=J[a+16>>2];g=J[d+56>>2];if(g){J[d+56>>2]=0;i=h;d=1}else d=0;a:{while(1){b:{c:{d:{e:{f:{if(!d){if(h>>>0>=n>>>0){i=h;break a}if(c>>>0>=k>>>0){i=h;break a}i=h+2|0;g=L[h>>1];d=i;if((g&63488)!=55296)break f; -if((g&64512)!=55296)break e;d=1;continue}if(i>>>0>=n>>>0)break d;h=L[i>>1];if((h&64512)!=56320)break e;g=(h+(g<<10)|0)-56613888|0;d=i+2|0}h=d;l=g>>>8|0;d=g>>>16&31;g:{if(c>>>0>>0){H[c|0]=0;J[f>>2]=m;f=f+4|0;c=c+1|0;break g}e=J[a+4>>2];j=H[e+63|0];H[e+63|0]=j+1;H[(e+j|0)+76|0]=0;J[b>>2]=15}h:{if(c>>>0>=k>>>0){e=J[a+4>>2];j=H[e+63|0];H[e+63|0]=j+1;H[(e+j|0)+76|0]=d;J[b>>2]=15;break h}H[c|0]=d;J[f>>2]=m;f=f+4|0;c=c+1|0}i:{if(c>>>0>=k>>>0){e=J[a+4>>2];j=H[e+63|0];H[e+63|0]=j+1;H[(e+j|0)+76|0]=l;J[b>> -2]=15;break i}H[c|0]=l;J[f>>2]=m;f=f+4|0;c=c+1|0}j:{if(c>>>0>=k>>>0){l=J[a+4>>2];e=H[l+63|0];H[l+63|0]=e+1;H[(e+l|0)+76|0]=g;J[b>>2]=15;break j}H[c|0]=g;J[f>>2]=m;f=f+4|0;c=c+1|0}m=(((d|0)!=0)+m|0)+1|0;break c}J[J[a+4>>2]+56>>2]=g;break b}J[J[a+4>>2]+56>>2]=g;if(K[a+2|0])break b;break a}d=0;continue}break}J[b>>2]=12}if(!(c>>>0>>0|i>>>0>=n>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=f;J[a+8>>2]=i;J[a+16>>2]=c}}function A0a(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;h=J[a+8>>2]; -n=J[a+12>>2];if(h>>>0>>0){k=J[a+20>>2];d=J[a+4>>2];if(J[d+52>>2]==1){hi(d,740956,4,a+16|0,k,a+24|0,-1,b);d=J[a+4>>2];J[d+52>>2]=0}e=J[a+24>>2];c=J[a+16>>2];g=J[d+56>>2];if(g){J[d+56>>2]=0;i=h;d=1}else d=0;a:{while(1){b:{c:{d:{e:{f:{if(!d){if(h>>>0>=n>>>0){i=h;break a}if(c>>>0>=k>>>0){i=h;break a}i=h+2|0;g=L[h>>1];d=i;if((g&63488)!=55296)break f;if((g&64512)!=55296)break e;d=1;continue}if(i>>>0>=n>>>0)break d;h=L[i>>1];if((h&64512)!=56320)break e;g=(h+(g<<10)|0)-56613888|0;d=i+2|0}h=d;j=g>>>8|0; -d=g>>>16&31;g:{if(c>>>0>>0){H[c|0]=g;J[e>>2]=l;e=e+4|0;c=c+1|0;break g}f=J[a+4>>2];m=H[f+63|0];H[f+63|0]=m+1;H[(f+m|0)+76|0]=g;J[b>>2]=15}h:{if(c>>>0>=k>>>0){f=J[a+4>>2];m=H[f+63|0];H[f+63|0]=m+1;H[(f+m|0)+76|0]=j;J[b>>2]=15;break h}H[c|0]=j;J[e>>2]=l;e=e+4|0;c=c+1|0}i:{if(c>>>0>=k>>>0){j=J[a+4>>2];f=H[j+63|0];H[j+63|0]=f+1;H[(f+j|0)+76|0]=d;J[b>>2]=15;break i}H[c|0]=d;J[e>>2]=l;e=e+4|0;c=c+1|0}j:{if(c>>>0>=k>>>0){j=J[a+4>>2];f=H[j+63|0];H[j+63|0]=f+1;H[(f+j|0)+76|0]=0;J[b>>2]=15;break j}H[c|0]= -0;J[e>>2]=l;e=e+4|0;c=c+1|0}l=(((d|0)!=0)+l|0)+1|0;break c}J[J[a+4>>2]+56>>2]=g;break b}J[J[a+4>>2]+56>>2]=g;if(K[a+2|0])break b;break a}d=0;continue}break}J[b>>2]=12}if(!(c>>>0>>0|i>>>0>=n>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=e;J[a+8>>2]=i;J[a+16>>2]=c}}function Upa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(f){a=e>>>0<8;c=h<<2;while(1){h=e;if(!a)while(1){J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;J[b+4>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1| -0]<<16|-16777216;J[b+8>>2]=K[i+2|0]|K[j+2|0]<<8|K[k+2|0]<<16|-16777216;J[b+12>>2]=K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|-16777216;J[b+16>>2]=K[i+4|0]|K[j+4|0]<<8|K[k+4|0]<<16|-16777216;J[b+20>>2]=K[i+5|0]|K[j+5|0]<<8|K[k+5|0]<<16|-16777216;J[b+24>>2]=K[i+6|0]|K[j+6|0]<<8|K[k+6|0]<<16|-16777216;J[b+28>>2]=K[i+7|0]|K[j+7|0]<<8|K[k+7|0]<<16|-16777216;b=b+32|0;k=k+8|0;j=j+8|0;i=i+8|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+ -1|0;i=i+1|0;case 5:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 4:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 3:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 2:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 1:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 0:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+ -1|0;j=j+1|0;i=i+1|0;break;default:break a}k=g+k|0;j=g+j|0;i=g+i|0;b=b+c|0;f=f-1|0;if(f)continue;break}}}function R5(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;c=1;a:{if((gc[J[J[b>>2]+12>>2]](b,d+14|0,1,1,0,0)|0)!=1)break a;e=K[d+14|0];if((e|0)==249){c=0;b:{if((gc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break b;f=K[d+15|0];g=gc[J[J[b>>2]+12>>2]](b,a+976|0,1,4,0,0)|0;c=(K[a+977|0]|K[a+978|0]<<8)<<16>>16;e=(K[a+494|0]?c:c<<8|(c&65280)>>>8)<<16>>16;H[a+977|0]=e;H[a+978|0]=e>>>8;c=0;if((f|0)!=(g| -0))break b;J[a+360>>2]=e&65535;c=K[a+976|0];J[a+336>>2]=c&1?K[a+979|0]:-1;H[a+492|0]=c>>>2&7;c=1}e=K[d+14|0]}c:{if((e|0)!=254)break c;c=0;if((gc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break c;c=gc[J[J[b>>2]+12>>2]](b,J[a+1116>>2],K[d+15|0],1,0,0)|0;H[J[a+1116>>2]+K[d+15|0]|0]=0;c=(c|0)==1}d:{if(K[d+14|0]==255){if((gc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1|K[d+15|0]!=11)break a;if((gc[J[J[b>>2]+12>>2]](b,d+3|0,11,1,0,0)|0)!=1)break a;if((gc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break a;e= -K[d+15|0];c=zc(e);if(!c){qc(c);break a}e=gc[J[J[b>>2]+12>>2]](b,c,e,1,0,0)|0;if(K[d+15|0]>=3){J[a+1120>>2]=K[c+1|0]|K[c+2|0]<<8;qc(c);if((e|0)==1)break d;break a}qc(c);if((e|0)==1)break d;break a}if(!c)break a}h=1;if(!(gc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0))break a;c=K[d+15|0];if(!c)break a;while(1){gc[J[J[b>>2]+20>>2]](b,c,1)|0;if(!(gc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0))break a;c=K[d+15|0];if(c)continue;break}}bc=d+16|0;return h}function Pfb(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;j=bc-16|0;bc=j;e=J[a+16>>2];d=J[a+28>>2];k=J[a+24>>2];J[j+12>>2]=0;a:{b:{g=k+1|0;c:{if(g>>>0<=d>>>0){l=J[a+32>>2];break c}J[a+36>>2]=b;l=Sc(b,4,d,g,J[a+32>>2],j+12|0);J[a+32>>2]=l;if(J[j+12>>2])break b;J[a+28>>2]=g}g=l;if(k){e=e+10|0;while(1){f=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);o=K[e|0];p=K[e+1|0];q=K[e+2|0];d:{e:{f:{b=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b)break f;d=b+J[a+16>>2]|0;b=K[d| -0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);m=d+4|0;h=0;while(1){if(b>>>0<=h>>>0)break f;d=b;b=b+h>>>1|0;i=m+(b<<2)|0;n=K[i+1|0]<<8|K[i|0]<<16|K[i+2|0];if(n>>>0>c>>>0)continue;h=b+1|0;b=d;if(K[i+3|0]+n>>>0>>0)continue;break}break e}b=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(!b)break d;d=b+J[a+16>>2]|0;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b)break d;i=d+4|0;h=0;while(1){g:{d=b+h>>>1|0;f=i+P(d,5)| -0;m=K[f+1|0]<<8|K[f|0]<<16|K[f+2|0];h:{if(m>>>0>c>>>0){b=d;break h}if(c>>>0<=m>>>0)break g;h=d+1|0}if(b>>>0>h>>>0)continue;break d}break}if(!(K[f+4|0]|K[f+3|0]<<8))break d}J[g>>2]=p<<8|o<<16|q;g=g+4|0}e=e+11|0;k=k-1|0;if(k)continue;break}}J[g>>2]=0;break a}l=0}bc=j+16|0;return l|0}function cX(a){a=a|0;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;g=bc-16|0;bc=g;l=J[J[a+72>>2]+16>>2];b=ye(1,56);J[g+12>>2]=b;a:{if(!b)break a;i=J[J[a+72>>2]+16>>2];J[b+24>>2]=i;J[b>>2]=J[a+84>>2];J[b+ -4>>2]=J[a+88>>2];J[b+8>>2]=J[a+92>>2];J[b+12>>2]=J[a+96>>2];J[b+16>>2]=J[a+104>>2];h=J[a+108>>2];J[b+52>>2]=0;J[b+20>>2]=h;j=J[a+12>>2];J[b+32>>2]=J[j>>2];J[b+36>>2]=J[j+4>>2];J[b+40>>2]=J[j+8>>2];J[b+44>>2]=J[j+16>>2];a=ye(i,1080);J[b+48>>2]=a;if(a){if(l)while(1){a=P(k,1080);d=a+J[b+48>>2]|0;c=a+J[j+5584>>2]|0;J[d+4>>2]=J[c>>2];a=J[c+4>>2];J[d+8>>2]=a;J[d+12>>2]=J[c+8>>2];J[d+16>>2]=J[c+12>>2];J[d+20>>2]=J[c+16>>2];J[d+24>>2]=J[c+20>>2];if(a>>>0<=32){tc(d+948|0,c+944|0,a);tc(d+816|0,c+812|0,J[c+ -4>>2])}a=J[c+24>>2];J[d+28>>2]=a;J[d+808>>2]=J[c+804>>2];f=1;b:{if((a|0)!=1){a=P(J[c+4>>2],3);if(a-3>>>0>95)break b;f=a-2|0}o=f&1;a=0;if((f|0)!=1){p=f&-2;f=0;while(1){m=d+32|0;h=a<<2;n=c+28|0;e=n+(a<<3)|0;J[m+h>>2]=J[e+4>>2];i=d+420|0;J[i+h>>2]=J[e>>2];e=a|1;h=e<<2;e=(e<<3)+n|0;J[h+m>>2]=J[e+4>>2];J[h+i>>2]=J[e>>2];a=a+2|0;f=f+2|0;if((p|0)!=(f|0))continue;break}}if(!o)break b;e=(a<<2)+d|0;a=(a<<3)+c|0;J[e+32>>2]=J[a+32>>2];J[e+420>>2]=J[a+28>>2]}J[d+812>>2]=J[c+808>>2];k=k+1|0;if((k|0)!=(l|0))continue; -break}e=b;break a}if(g+12|0){a=J[g+12>>2];b=J[a+48>>2];if(b){qc(b);a=J[g+12>>2]}qc(a);J[g+12>>2]=0}}bc=g+16|0;return e|0}function $Aa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;c=b+36|0;e=J[b+20>>2];a:{if(!e)break a;c=J[e+8>>2]?b+20|0:c}J[d+4>>2]=0;J[d+8>>2]=J[682146];b:{c=J[c>>2];c:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break c;c=Z()|0;break b}J[d+12>>2]=0}J[695492]=0;aa(4993,d+4|0,d+12|0)|0;c=J[695492];J[695492]=0;d:{e:{if((c|0)!= -1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break e;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)!=1){if(e)break e;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break e}break d}c=Z()|0;vc(d+12|0);break b}c=J[d+4>>2];J[d+8>>2]=J[(c?c+12|0:2728584)>>2];f:{g:{h:{i:{j:{if(!(!c|!J[c+8>>2])){J[a>>2]=0;J[a+4>>2]=J[682146];break j}c=J[b+36>>2];J[a>>2]=0;J[a+4>>2]=J[682146];if(!c)break i}b=J[J[c>>2]+28>>2];J[695492]=0;ca(b|0,d+12|0,c|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break h; -c=Z()|0;break g}J[d+12>>2]=0}J[695492]=0;aa(4993,a|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f}break d}c=Z()|0;vc(d+12|0)}sc(a);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(d+4|0);bc=d+16|0;return}ea(0)|0;yc();B()}sc(d+4|0);ba(c|0);B()}function l4a(a,b){a=a|0;b=b|0;var c=Q(0),d=Q(0), -e=0,f=0,g=0,h=Q(0),i=0,j=0,k=Q(0),l=Q(0),m=0,n=0,o=0,p=0,q=Q(0),r=Q(0),s=0,t=0,u=0,v=Q(0),w=Q(0),x=Q(0),y=Q(0),z=0,A=0,B=0;g=bc-16|0;bc=g;J[a>>2]=1199570688;J[a+4>>2]=-947912960;J[a+8>>2]=1199570688;J[a+12>>2]=-947912960;f=b+16|0;u=J[f+84>>2];if((u|0)>0){v=Q(65535);w=Q(-65535);b=0;x=Q(65535);y=Q(-65535);while(1){e=J[f+84>>2];B=J[f+80>>2];a:{b:{if((b|0)<0){if((e|0)<=0)break a;s=J[f+88>>2];if((s|0)<=0|(e|0)<(s|0))break a;e=s-1|0;break b}if((e|0)<=0)break a;e=b>>>0>>0?b:e-1|0}e=B+P(e,96)|0;c=N[e+ -12>>2];d=N[e+20>>2];h=Q(-N[e+16>>2]);l=Q(-N[e+24>>2]);i=O[f+48>>3];n=O[f+40>>3];t=O[f+24>>3];j=O[f+32>>3];c:{d:{if(t!=1|j!=0|(n!=0|i!=1))break d;if(O[f+56>>3]!=0)break d;if(O[f- -64>>3]==0)break c}o=+c;m=o*j;z=+h;A=i*z;c=Q(m+A);p=m;m=i;i=+l;m=m*i;l=Q(p+m);h=ch?h:d;k=Q(j+A);h=hl?c:l;c=c>d?c:d;l=c>k?c:k;j=o*t;o=n*z;d=Q(j+o);i=n*i;k=Q(j+i);c=dk?d:k;d=d>q?d:q;d=d>r?d:r}N[g+4>>2]=Q(c+N[e+4>>2])+N[f+8>>2];N[g>> -2]=Q(d+N[e+4>>2])+N[f+8>>2];N[g+12>>2]=Q(h+N[e+8>>2])+N[f+12>>2];N[g+8>>2]=Q(l+N[e+8>>2])+N[f+12>>2]}c=N[g+8>>2];if(c>w){N[a+12>>2]=c;w=c}c=N[g+12>>2];if(c>2]=c;v=c}c=N[g+4>>2];if(c>2]=c;x=c}c=N[g>>2];if(c>y){N[a+4>>2]=c;y=c}b=b+1|0;if((u|0)!=(b|0))continue;break}}bc=g+16|0}function zpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if((c|0)!=13){Dc(a,1028,0,0);return 1028}c= -K[d|0]|K[d+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[d+2|0]|K[d+3|0]<<8;h=(c<<8|c>>>8)&65535;i=K[d+4|0];c=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);j=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+9|0]|K[d+10|0]<<8|(K[d+11|0]<<16|K[d+12|0]<<24);k=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b:{if(K[a+114|0]){c=gc[J[a+152>>2]](44)|0;if(!c){Dc(a,1,0,0);c=1;break b}J[c+4>>2]=1054;J[c>>2]=1055;f=J[a+700>>2];c:{if(f){J[f+8>>2]=c;break c}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>> -2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;J[c+40>>2]=k;J[c+36>>2]=j;H[c+32|0]=i;I[c+30>>1]=h;I[c+28>>1]=g}c=b8(a,g,h,i,j,k)}d:{if(c)break d;c=0;if(!K[a+112|0])break d;c=gc[J[b+4>>2]](a,b,e)|0;if(c)break d;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;b=K[d+2|0]|K[d+3|0]<<8;I[a+34>>1]=b<<8|b>>>8;H[a+36|0]=K[d+4|0];b=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+9|0]| -K[d+10|0]<<8|(K[d+11|0]<<16|K[d+12|0]<<24);J[b+44>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=0}return c|0}Dc(a,1029,0,0);return 1029}function Pqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-48|0;bc=c;d=J[b>>2];a:{b:{if(!d){b=Kc(c+24|0,2382912,2374240,1347,2422361,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break b}J[c+4>>2]=0;c:{d:{e:{f:{while(1){J[695492]=0;la(5514,a|0,c+20|0,b|0,c|0,c+12|0);e=J[695492];J[695492]=0;if((e|0)==1)break f;if(J[c+20>>2]!=11)continue; -break}if(K[a+49|0])break d;J[695492]=0;b=ja(5018,c+24|0,2380554,2374240,1362,2422361,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);break c}a=Z()|0;break c}a=Z()|0;break c}g:{h:{i:{a=J[d+40>>2];if((a|0)<=J[d+44>>2])while(1){if(J[d+40>>2]>(a|0)){J[695492]=0;b=ja(5018,c+24|0,2381890,2382316,619,2422660,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a; -a=Z()|0;Fc(b);break c}b=J[(J[d+28>>2]+P(a-J[d+32>>2]|0,12)|0)+4>>2];J[695492]=0;_(5445,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break i;b=J[d+44>>2]>(a|0);a=a+1|0;if(b)continue;break}a=J[c+4>>2];J[c+4>>2]=0;j:{if(!a)break j;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break h;if(b)break j;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break h}bc=c+48|0;return}a=Z()|0;break c}ea(0)|0;yc();B()}a=Z()|0}rv(c)}ba(a|0)}B()}function wB(a,b,c){var d=0,e=0,f=0,g= -0,h=0,i=0,j=0;a:{b:{if(!a|(c|0)<=0)break b;d=J[a+4>>2];if(d>>>0>12)break b;d=1<>2];h=bc-16|0;bc=h;d=gc[J[659447]](60)|0;c:{if(!d){J[h>>2]=1832;Cc(0,0,0,0,0,2,2,3,1832,0,0,0,32863,h);break c}J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+4>>2]=3;J[d+8>>2]=773004;if(b){d:{if((c|0)<0)break d;e=gc[J[659450]](c+ -1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}f=tc(e,b,c);H[f+c|0]=0}J[d+40>>2]=f}if(!J[689540])break c;b=J[689537];if(!b)break c;gc[b|0](d)}bc=h+16|0;if(!d)break b;if((Ug(a,d)|0)!=(d|0))break b;b=!g;if(b|(d|0)!=J[g+24>>2])break b;a=d;e=0;if(!b)if(!(!d|J[g+4>>2]!=3|(J[d+4>>2]!=3|J[d+8>>2]!=J[g+8>>2]))){c=J[d+40>>2];if(c){if(K[c|0]){b=c;while(1){e=e+1|0;d=K[b+1|0];b=b+1|0;if(d)continue;break}}wB(g,c,e)}zj(a);gl(a)}return}if(!b)break b;f=J[a+40>>2];if((f|0)==(a+44|0))break a;d=J[a+32>>2]; -e:{if(!d)break e;d=J[d+80>>2];if(!d)break e;if(!f)break a;while(1){e=J[d+16>>2];if(e)while(1){if(f>>>0<=M[e+4>>2]&f>>>0>=e+20>>>0)break a;e=J[e>>2];if(e)continue;break}d=J[d+20>>2];if(d)continue;break}}i=a,j=OJ(f,b,c),J[i+40>>2]=j}return}b=NJ(f,b,c);J[a+44>>2]=0;J[a+48>>2]=0;J[a+40>>2]=b}function U7(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+300|0]|K[a+293|0]|(K[a+292|0]|K[a+291| -0]))break b;d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!K[a+286|0]){f=K[a+287|0];if(f)break k;if(!(K[a+288|0]|K[a+289|0]))break l;if((c|0)!=1)break a;if(f)break j;break i}if((c|0)==1)break j;break a}if(c>>>0<2)break i;break a}if((c|0)!=1)break a}H[a+297|0]=1;break h}m:{if(!(K[a+288|0]|K[a+289|0])){H[a+310|0]=(c|0)!=0;break m}H[a+297|0]=1}if(K[a+288|0]|K[a+289|0])break h;if(c)break g;f=K[a+2228|0];break f}n:{if(!K[a+288|0]){f=J[a+512>>2];if(f)break n}f=J[a+528>>2]}h=K[d|0];f=J[f+88>>2];H[f+59|0]=1;H[f+1140|0]= -h;break e}f=K[d|0];H[a+2228|0]=f}g=0;o:{if(!K[a+114|0])break o;i=!c;g=f&255;f=gc[J[a+152>>2]](32)|0;if(!f){Dc(a,1,0,0);g=1;break o}J[f+4>>2]=1034;J[f>>2]=1035;h=J[a+700>>2];p:{if(h){J[h+8>>2]=f;break p}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=h;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+29|0]=g;H[f+28|0]=i;g=0}f=g;if(f)break d}q:{if(!K[a+112|0])break q;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break d;a=J[e>>2];b= -!c;H[a+32|0]=b;if(b)break q;H[a+33|0]=K[d|0]}f=0}return f|0}Dc(a,1029,0,0);return 1029}Dc(a,1028,0,0);return 1028}function Slb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+20>>2])a=0;else{a=J[J[J[a>>2]+16>>2]+40>>2];if(a)a:{e=bc-32|0;bc=e;b:{c:{d:{e:{c=J[a>>2];f:{if(!c)break f;d=J[c+28>>2];if(!J[c+24>>2]|(!d|!J[d+132>>2]))break f;J[e+20>>2]=1E3;J[e+12>>2]=231644;b=zc(1E3);J[e+16>>2]=b;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;J[695492]=0;J[e+28>>2]=4;J[e+24>>2]=b+4;d=$(4,36)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break e;f=J[a+20>>2];a=J[a+16>>2];J[695492]=0;c=ha(3547,d|0,c|0,a|0,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;da(3548,c|0,e+12|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;d=0;b=J[c+12>>2];a=J[c+16>>2];if((b|0)!=(a|0))while(1){f=d<<2;g=J[f+b>>2];if(g){qc(J_(g));J[f+J[c+12>>2]>>2]=0;b=J[c+12>>2];a=J[c+16>>2]}d=d+1|0;if(d>>>0>2>>>0)continue;break}b=J[c+24>>2];a=J[c+28>>2];g:{if((b|0)==(a|0)){b=a;break g}d=0;while(1){g=d<<2;f=J[g+b>>2];if(f){gc[J[J[f>>2]+4>> -2]](f);J[g+J[c+24>>2]>>2]=0;b=J[c+24>>2];a=J[c+28>>2]}d=d+1|0;if(d>>>0>2>>>0)continue;break}}if(b){J[c+28>>2]=b;qc(b)}a=J[c+12>>2];if(a){J[c+16>>2]=a;qc(a)}a=J[c>>2];if(a){J[c+4>>2]=a;qc(a)}qc(c);a=J[e+16>>2];b=J[e+28>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;b=J[e+16>>2]}bc=e+32|0;a=b;break a}a=Z()|0;J[e+12>>2]=231644;b=J[e+16>>2];if(!b)break b;break c}a=Z()|0;qc(d);J[e+12>>2]=231644}qc(b)}ba(a|0);B()}else a=0}return a|0}function SS(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;e=1;a:{b:switch(b-a>>3){case 2:d=b-8|0;c=J[d>>2];if(!c)break a;f=J[a>>2];c:{if(!f)break c;g=O[c+16>>3];h=O[f+16>>3];if(R(g-h)<=.01){if(O[c+32>>3]>3])break c;break a}if(!(g>2]=c;J[d>>2]=f;c=J[a+4>>2];f=a;a=b-4|0;J[f+4>>2]=J[a>>2];J[a>>2]=c;return 1;case 3:vs(a,a+8|0,b-8|0);return 1;case 4:QF(a,a+8|0,a+16|0,b-8|0);return 1;case 5:PF(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}d=a+16|0;vs(a,a+8|0,d);c=a+24|0;if((c|0)==(b|0))break a; -d:{while(1){f=c;j=J[c>>2];e:{if(!j)break e;i=J[d>>2];f:{if(!i)break f;g=O[j+16>>3];h=O[i+16>>3];if(R(g-h)<=.01){if(O[j+32>>3]>3])break f;break e}if(!(g>2];J[f>>2]=0;J[f+4>>2]=0;e=f;while(1){m=J[d+4>>2];c=d;J[c>>2]=0;J[c+4>>2]=0;J[e>>2]=i;d=J[e+4>>2];J[e+4>>2]=m;g:{if(!d)break g;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break g;gc[J[J[d>>2]+8>>2]](d);Vc(d)}h:{if((a|0)==(c|0)){c=a;break h}e=c;d=c-8|0;i=J[d>>2];if(!i)continue;g=O[j+16>>3];h=O[i+16>>3];if(R(g-h)<=.01){if(O[j+32>>3]>3])continue;break h}if(g>2]=j;e=J[c+4>>2];J[c+4>>2]=l;i:{if(!e)break i;c=J[e+4>>2];J[e+4>>2]=c-1;if(c)break i;gc[J[J[e>>2]+8>>2]](e);Vc(e)}k=k+1|0;if((k|0)==8)break d}d=f;c=d+8|0;if((c|0)!=(b|0))continue;break}return 1}e=(f+8|0)==(b|0)}return e}function MSa(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;g=J[a+420>>2];d=J[a+236>>2];if(d){c=J[g+36>>2];a:{if(c)break a;c=d;if(J[a+288>>2]<=0)break a;c=0;while(1){J[((c<<2)+g|0)+20>>2]=0;c=c+1|0;if((c| -0)>2])continue;break}c=J[a+236>>2]}J[g+36>>2]=c-1}if(J[a+316>>2]>0)while(1){e=j<<2;c=J[(e+a|0)+320>>2]<<2;d=J[(c+a|0)+292>>2];h=J[((J[d+24>>2]<<2)+g|0)+92>>2];i=J[((J[d+20>>2]<<2)+g|0)+76>>2];o=J[a+380>>2];k=J[a+384>>2];d=0;l=b+e|0;m=J[l>>2];e=I[m>>1];n=c+g|0;c=J[n+20>>2];b:{if((e|0)==(c|0))break b;e=e-c|0;d=e>>31;c=(d^e)-d|0;d=0;while(1){e=d;d=e+1|0;f=c>>>0>1;c=c>>>1|0;if(f)continue;break}if(e>>>0<11)break b;e=J[a>>2];J[e+20>>2]=6;gc[J[e>>2]](a)}d=(d<<2)+i|0;J[d>>2]=J[d>>2]+1;c:{if((k|0)<= -0)break c;f=1;e=0;while(1){d:{c=L[(J[(f<<2)+o>>2]<<1)+m>>1];e:{if(c){if((e|0)>=16){d=(e-((e|0)>=31?31:e)|0)+15|0;J[h+960>>2]=(J[h+960>>2]+(d>>>4|0)|0)+1;e=(e-(d&-16)|0)-16|0}d=1;i=c;c=c<<16>>31;c=(i^c)-c&65535;f:{if(c>>>0<2)break f;while(1){i=d;d=d+1|0;p=c>>>0>3;c=c>>>1|0;if(p)continue;break}if(i>>>0<10)break f;c=J[a>>2];J[c+20>>2]=6;gc[J[c>>2]](a)}d=((e<<6)+h|0)+(d<<2)|0;J[d>>2]=J[d>>2]+1;e=0;if((f|0)!=(k|0))break e;break c}if((f|0)==(k|0))break d;e=e+1|0}f=f+1|0;continue}break}if((e|0)<0)break c; -J[h>>2]=J[h>>2]+1}J[n+20>>2]=I[J[l>>2]>>1];j=j+1|0;if((j|0)>2])continue;break}return 1}function vqa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;p=bc-32|0;bc=p;a:{b:{if((f|0)>=0){n=J[a+3312>>2];s=(e|0)<=0;while(1){r=i;o=k;k=l;if(!s){i=K[l+1|0]|(K[h|0]<<9|K[h-1|0]<<10|K[h+1|0]<<8|K[i-1|0]<<7|K[j|0]<<6|K[o-1|0]<<5|K[o|0]<<4|K[o+1|0]<<3|K[l-1|0]<<2|K[l|0]<<1);l=0;while(1){t=l+r|0;m=(a+i|0)+1264|0;q=J[((K[m| -0]<<2)+n|0)+44>>2]+J[n+20>>2]|0;c:{if(q>>>0<=M[n+28>>2]){J[n+20>>2]=q;m=H[m|0]&1;break c}m=ah(n,m,q)}H[t|0]=m;m=i<<1&1590|m<<7;i=l+2|0;l=l+1|0;i=m|K[i+h|0]<<8|K[l+j|0]<<6|K[i+o|0]<<3|K[i+k|0];if((e|0)!=(l|0))continue;break}}if(!J[b+20>>2])Li(b);i=L[b+14>>1];h=f-1|0;d:{if(!(h>>>0>1]&(f|0)>0)){j=i;i=L[b+12>>1];if(J[682142]<(j+i|0)){a=Kc(p+8|0,2386481,2386813,577,2381799,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}i=i+J[682141]|0;break d}i=L[b+12>>1]+(J[b+20>> -2]+P(h,i)|0)|0}if(!J[c+20>>2])Li(c);j=L[c+14>>1];e:{f:{if((g|0)>=2){l=g-2|0;if(l>>>0>1])break f}l=j;j=L[c+12>>1];if(J[682142]<(l+j|0)){a=Kc(p+8|0,2386481,2386813,577,2381799,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}j=j+J[682141]|0;break e}j=L[c+12>>1]+(J[c+20>>2]+P(j,l)|0)|0}g=g-1|0;Nz(b);l=d+j|0;m=(f|0)>0;f=h;j=o;h=r;if(m)continue;break}}bc=p+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function oo(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;m= -d-b|0;if(m-4194304>>>0<=4286578688){f=b+d>>1;g=c+e>>1;oo(a,b,c,f,g);oo(a,f,g,d,e)}h=J[a+80>>2];g=b>>8;if((h|0)>(g|0)){J[a+80>>2]=g;h=g}k=J[a+88>>2];if((g|0)>(k|0)){J[a+88>>2]=g;k=g}l=J[a+84>>2];f=c>>8;if((l|0)>(f|0)){J[a+84>>2]=f;l=f}i=J[a+92>>2];if((f|0)>(i|0)){J[a+92>>2]=f;i=f}n=h;h=d>>8;if((n|0)>(h|0))J[a+80>>2]=h;if((h|0)>(k|0))J[a+88>>2]=h;j=e>>8;if((l|0)>(j|0))J[a+84>>2]=j;if((i|0)<(j|0))J[a+92>>2]=j;o=e&255;h=c&255;Ip(a,g,f);if((f|0)==(j|0)){Ww(a,f,b,h,d,o);return}i=e-c|0;if((b|0)==(d|0)){c= -(i^-1)>>>23&256;b=c-h|0;J[a+56>>2]=b+J[a+56>>2];d=d<<1&510;J[a+60>>2]=J[a+60>>2]+P(d,b);b=f;f=i>>31|1;b=b+f|0;Ip(a,g,b);if((b|0)!=(j|0)){h=(c<<1)-256|0;i=P(h,d);while(1){J[a+60>>2]=i;J[a+56>>2]=h;b=b+f|0;Ip(a,g,b);if((b|0)!=(j|0))continue;break}}b=c+(e|-256)|0;J[a+56>>2]=b+J[a+56>>2];J[a+60>>2]=J[a+60>>2]+P(b,d);return}l=-1;c=h;a:{if((i|0)>=0){l=1;h=256-c|0;k=256;break a}i=0-i|0;k=0}n=b;g=c;b=P(h,m);c=(b|0)/(i|0)|0;e=b-P(c,i)|0;c=(n+c|0)+(e>>31)|0;Ww(a,f,n,g,c,k);b=f+l|0;Ip(a,c>>8,b);if((b|0)==(j| -0)){Ww(a,j,c,256-k|0,d,o);return}g=m<<8;f=(g|0)/(i|0)|0;g=g-P(f,i)|0;h=g>>31;g=(h&i)+g|0;h=f+h|0;f=256-k|0;e=e-((e|0)>=0?i:0)|0;while(1){n=c;e=e+g|0;m=(e|0)>=0;c=m+(c+h|0)|0;Ww(a,b,n,f,c,k);b=b+l|0;Ip(a,c>>8,b);e=e-(m?i:0)|0;if((b|0)!=(j|0))continue;break}Ww(a,j,c,f,d,o)}function lBa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=bc-32|0;bc=f;a:{b:{c:{d:{g=J[b>>2];if(!g)break d;if((In(g,47,0)|0)<0)break d;b=Kc(f+8|0,2383147,2374462,157,2388796,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]= -0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break c}g=rc(28);J[695492]=0;c=ma(5147,g|0,b|0,c|0,d|0,e|0)|0;d=J[695492];J[695492]=0;e:{f:{if((d|0)!=1){J[f+4>>2]=0;d=f+4|0;md(d,c);J[695492]=0;b=aa(5148,a+8|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;aa(4993,b+24|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[a+52>>2];c=J[a+56>>2];J[695492]=0;ca(5128,a+36|0,0,(c-b|0)+1|0);b=J[695492];J[695492]=0;if((b|0)==1)break f;c=J[a+56>>2];d=J[a+52>>2];b=c-d|0;if(!((b|0)<=(c|0)&(b|0)>=(d|0))){J[695492]= -0;b=ja(5018,f+8|0,2374909,2375924,619,2388908,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);break e}c=J[a+40>>2];a=J[a+44>>2];J[695492]=0;aa(4993,c+(b-a<<2)|0,f+4|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;a=J[f+4>>2];J[f+4>>2]=0;g:{if(!a)break g;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break g;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc= -f+32|0;return}a=Z()|0;qc(g);break c}a=Z()|0}vc(f+4|0)}ba(a|0)}B()}ea(0)|0;yc();B()}function Wt(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,u=0,v=0,w=0;p=f*3.141592/180;o=He(p);o=Cf(xe(p)/e,o/d);i=xe(o);u=a,v=d*He(o)+b,w=e*i+c,t=J[J[a>>2]+4>>2],gc[t](u|0,+v,+w)|0;if(R(f)<2147483648)l=~~f;else l=-2147483648;j=(l|0)/90|0;l=(l|0)<=89?1:((j|0)>=3?3:j)+1|0;if(R(g)<2147483648)j=~~g;else j=-2147483648;s=(j|0)/90|0;j=(j|0)<=89?1:((s|0)>=3?3:s)+1|0;o=g*3.141592/180;a:{if(h){if(j>>> -0>l>>>0)break a;h=l;while(1){f=p;if((h|0)!=(l|0))f=+Q(Q(Q(P(h,90)>>>0)*Q(3.141592025756836))/Q(180));g=o;if((h|0)!=(j|0))g=+Q(Q(Q(P(h,90)-90>>>0)*Q(3.141592025756836))/Q(180));i=He(g);g=xe(g);k=He(f);f=Cf(xe(f)/e,k/d);g=Cf(g/e,i/d);k=g-f;i=Lu(k*.5);m=xe(k);k=He(g);g=xe(g);n=He(f);i=m*(Y(i*(i*3)+4)+-1)/3;m=i*d;f=xe(f);q=d*n+b-m*f;i=i*e;r=n*i+(e*f+c);f=d*k+b;n=m*g+f;g=e*g+c;gc[J[J[a>>2]+8>>2]](a,q,r,n,g-i*k,f,g)|0;h=h-1|0;if(j>>>0<=h>>>0)continue;break}break a}if(j>>>0>>0)break a;h=l;while(1){f= -o;if((h|0)!=(j|0))f=+Q(Q(Q(P(h,90)>>>0)*Q(3.141592025756836))/Q(180));g=He(f);i=xe(f);if((h|0)!=(l|0))p=+Q(Q(Q(P(h,90)-90>>>0)*Q(3.141592025756836))/Q(180));f=He(p);f=Cf(xe(p)/e,f/d);g=Cf(i/e,g/d);k=g-f;i=Lu(k*.5);m=xe(k);k=He(g);g=xe(g);n=He(f);i=m*(Y(i*(i*3)+4)+-1)/3;m=i*d;f=xe(f);q=d*n+b-m*f;i=i*e;r=n*i+(e*f+c);f=d*k+b;n=m*g+f;g=e*g+c;gc[J[J[a>>2]+8>>2]](a,q,r,n,g-i*k,f,g)|0;h=h+1|0;if(j>>>0>=h>>>0)continue;break}}}function kEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-48|0;bc=d;a:{b:{c:{d:{if((Bp(a)| -0)<=0)break d;if(!Yj(a))break d;g=d+24|0;QB(g,a);J[695492]=0;g=aa(4825,d+36|0,g|0)|0;e=J[695492];J[695492]=0;e:{if((e|0)!=1){if(H[d+35|0]<0)qc(J[d+24>>2]);f:{g:{h:{i:{while(1){J[695492]=0;e=J[g+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break f;if(!e)break e;J[695492]=0;e=Fd(g,b);f=J[695492];J[695492]=0;if((f|0)==1)break f;if(e){J[695492]=0;b=d+24|0;da(4811,b|0,a|0);e=J[695492];J[695492]=0;j:{if((e|0)!=1){J[695492]=0;ca(4862,c|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break j;if(H[d+35|0]>=0)break e; -qc(J[d+24>>2]);break e}a=Z()|0;break b}a=Z()|0;if(H[d+35|0]>=0)break b;qc(J[d+24>>2]);break b}J[695492]=0;e=vi(a);f=J[695492];J[695492]=0;if((f|0)==1)break f;if(!e)break e;J[695492]=0;e=d+24|0;da(4810,e|0,a|0);f=J[695492];J[695492]=0;if((f|0)!=1){J[695492]=0;e=aa(4825,d+12|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break i;J[695492]=0;Xf(g,e);f=J[695492];J[695492]=0;if((f|0)==1)break h;Lc(e);if(H[d+35|0]>=0)continue;qc(J[d+24>>2]);continue}break}a=Z()|0;break b}a=Z()|0;break g}a=Z()|0;Lc(e)}if(H[d+ -35|0]>=0)break b;qc(J[d+24>>2]);break b}a=Z()|0;break b}a=Z()|0;if(H[d+35|0]>=0)break a;qc(J[d+24>>2]);ba(a|0);B()}J[695492]=0;Ri(a);a=J[695492];J[695492]=0;if((a|0)==1)break c;Lc(g)}bc=d+48|0;return}a=Z()|0}Lc(g)}ba(a|0);B()}function FJ(a,b){var c=0,d=0,e=0,f=0,g=0;f=bc-32|0;bc=f;a:{if(!b){br(a,36652,0);break a}if(J[689531]){J[f+16>>2]=J[b+8>>2];gc[J[659549]](J[689514],32734,f+16|0)}if(!J[b+40>>2]){b:switch(J[b+48>>2]-1|0){case 2:br(a,32236,J[b+8>>2]);break a;case 1:case 4:c=LB(J[b+64>>2],J[b+52>> -2],a);break a;case 0:br(a,38714,J[b+8>>2]);break a;case 3:br(a,38666,J[b+8>>2]);break a;case 5:break b;default:break a}br(a,38752,J[b+8>>2]);break a}c=gc[J[659447]](60)|0;if(!c){if(a){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break a}J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2}J[f>>2]=33592;c=0;Cc(0,0,0,a,0,1,2,3,33592,0,0,0,32863,f);break a}J[c+48>>2]=0;J[c+52>>2]=0;d=c+32|0;J[d>>2]=0;J[d+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+56>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+16>>2]=0;J[c+ -20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+52>>2]=-1;J[c+32>>2]=1;J[c+28>>2]=1;if(a){d=a;a=J[a+464>>2];J[d+464>>2]=a+1;J[c+56>>2]=a}d=J[b+64>>2];if(d){a=d;while(1){e=a;a=a+1|0;if(K[e|0])continue;break}a=0;e=e-d|0;c:{if((e|0)<0)break c;g=gc[J[659450]](e+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break c}a=tc(g,d,e);H[e+a|0]=0}J[c+4>>2]=a}d=J[b+40>>2];J[c+12>>2]=d;e=J[b+44>>2];if(!e){d:{if(!d){e=0;break d}e=0;if(!K[d|0])break d;a=d;while(1){e=e+1|0;g=K[a+1|0];a=a+1|0;if(g)continue;break}}J[b+44>> -2]=e}J[c+24>>2]=e;J[c+16>>2]=d;J[c+20>>2]=e+d}bc=f+32|0;return c}function EP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;a=bc-16|0;bc=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;a:{b:{c:{while(1){d:{c=J[a+12>>2];if(c>>>0>=d>>>0)break d;j=J[a+8>>2];if(j>>>0>=g>>>0)break d;b=2;f=K[c|0];e:{if(f<<24>>24>=0){I[j>>1]=f;b=c+1|0;break e}if(f>>>0<194)break b;if(f>>>0<=223){if((d-c|0)<2)break c;i=K[c+1|0];if((i&192)!=128)break a;I[j>>1]=i&63|f<<6&1984;b=c+2| -0;break e}if(f>>>0<=239){if((d-c|0)<3)break c;k=K[c+2|0];i=K[c+1|0];f:{g:{if((f|0)!=237){if((f|0)!=224)break g;if((i&224)==160)break f;break a}if((i&224)==128)break f;break a}if((i&192)!=128)break a}if((k&192)!=128)break a;I[j>>1]=k&63|((i&63)<<6|f<<12);b=c+3|0;break e}if(f>>>0>244)break b;b=1;if((d-c|0)<4)break a;k=K[c+3|0];i=K[c+2|0];c=K[c+1|0];h:{i:switch(f-240|0){case 0:if((c+112&255)>>>0>=48)break b;break h;case 4:if((c&240)!=128)break b;break h;default:break i}if((c&192)!=128)break b}if((i& -192)!=128|(k&192)!=128)break b;if((g-j|0)<4)break a;b=2;k=k&63;l=i<<6;f=f&7;if((k|(l&4032|(c<<12&258048|f<<18)))>>>0>1114111)break a;b=c<<2;I[j>>1]=(i>>>4&3|(b&192|f<<8|b&60))+16320|55296;J[a+8>>2]=j+2;I[j+2>>1]=k|l&960|56320;b=J[a+12>>2]+4|0}J[a+12>>2]=b;J[a+8>>2]=J[a+8>>2]+2;continue}break}b=c>>>0>>0;break a}b=1;break a}b=2}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];bc=a+16|0;return b|0}function fqb(a){a=a|0;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;if(J[a+588>>2]>0){e=J[J[a+ -536>>2]+88>>2];e=(J[e+1176>>2]+P(J[e+1168>>2],J[a+572>>2])|0)+P(J[e+1164>>2],J[a+580>>2])|0;g=J[a+644>>2];while(1){d=K[g+6|0]|K[g+7|0]<<8;c=(d<<8|d>>>8)&65535;i=e+6|0;b=K[i|0]|K[i+1|0]<<8;b=(b<<8|b>>>8)&65535;a:{if(!c|(b|0)==65535)break a;d=K[e|0]|K[e+1|0]<<8;f=(d<<8|d>>>8)&65535;d=e+2|0;h=K[d|0]|K[d+1|0]<<8;o=(h<<8|h>>>8)&65535;h=e+4|0;j=K[h|0]|K[h+1|0]<<8;j=(j<<8|j>>>8)&65535;k=K[g|0]|K[g+1|0]<<8;k=(k<<8|k>>>8)&65535;l=K[g+2|0]|K[g+3|0]<<8;l=(l<<8|l>>>8)&65535;m=K[g+4|0]|K[g+5|0]<<8;m=(m<<8|m>>> -8)&65535;if((c|0)==65535){i=b^65535;c=(P(b,f)+P(i,k)|0)+32768|0;c=(c>>>16|0)+c>>>16|0;c=c<<8|c>>>8;H[e|0]=c;H[e+1|0]=c>>>8;c=(P(b,o)+P(i,l)|0)+32768|0;c=(c>>>16|0)+c>>>16|0;c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;b=(P(b,j)+P(i,m)|0)+32768|0;b=(b>>>16|0)+b>>>16|0;b=b<<8|b>>>8;H[h|0]=b;H[h+1|0]=b>>>8;I[e+6>>1]=65535;break a}n=b<<16;p=b^65535;b=(P(p,c^65535)^-1)>>>16|0;n=(n>>>0)/(b>>>0)|0;c=(P(c,p)>>>0)/(b>>>0)|0;f=(P(f,n)+P(c,k)|0)+32767>>>16|0;f=f<<8|f>>>8;H[e|0]=f;H[e+1|0]=f>>>8;f=(P(o,n)+P(c,l)|0)+ -32767>>>16|0;f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;d=(P(j,n)+P(c,m)|0)+32767>>>16|0;d=d<<8|d>>>8;H[h|0]=d;H[h+1|0]=d>>>8;b=b<<8|b>>>8;H[i|0]=b;H[i+1|0]=b>>>8}g=g+8|0;e=e+8|0;q=q+1|0;if((q|0)>2])continue;break}}return 0}function yX(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;d=bc+-64|0;bc=d;J[d+48>>2]=13;f=c;c=d+48|0;a:{if(J[Bc(J[a>>2],f,c,0)>>2]!=7){uc(c);break a}b:{c:{d:{l=J[J[d+56>>2]+16>>2];if((l|0)>0)while(1){J[d+32>>2]=13;J[d+16>>2]=13;e:{f:{if(J[ip(J[d+56>>2],k,d+32|0)>>2]== -8){c=J[d+40>>2];if(J[Bc(gc[J[J[c>>2]+76>>2]](c)|0,783512,d+16|0,0)>>2]==7)break f}uc(d+32|0);uc(d+16|0);break e}J[d>>2]=13;c=J[d+40>>2];f=Ce(gc[J[J[c>>2]+76>>2]](c)|0,783512,d);g=J[a+8>>2];c=J[d+8>>2];g:{if(J[f>>2]!=9){f=c;c=J[g+4>>2];break g}f=c;h:{c=J[g+4>>2];e=J[g>>2];if((c|0)==(e|0))break h;while(1){if(J[e>>2]==(f|0))break h;e=e+4|0;if((e|0)!=(c|0))continue;break}break g}if((c|0)==(e|0))break g;uc(d+32|0);uc(d+16|0);uc(d);break e}e=J[g+8>>2];i:{if(e>>>0>c>>>0){J[c>>2]=f;J[g+4>>2]=c+4;break i}j= -J[g>>2];h=c-j>>2;i=h+1|0;if(i>>>0>=1073741824)break d;m=h<<2;e=e-j|0;h=e>>1;h=e>>>0>=2147483644?1073741823:h>>>0>i>>>0?h:i;if(h){if(h>>>0>=1073741824)break c;i=rc(h<<2)}else i=0;e=m+i|0;J[e>>2]=f;f=e+4|0;if((c|0)!=(j|0))while(1){e=e-4|0;c=c-4|0;J[e>>2]=J[c>>2];if((c|0)!=(j|0))continue;break}J[g+8>>2]=i+(h<<2);J[g+4>>2]=f;J[g>>2]=e;if(!j)break i;qc(j)}uc(d+32|0);uc(d);c=rA(J[d+24>>2],b,J[a+4>>2]+1|0,J[a+8>>2]);uc(d+16|0);if(c)break b}k=k+1|0;if((l|0)!=(k|0))continue;break}uc(d+48|0);break a}kj(g); -B()}Sd();B()}uc(d+48|0);n=1}bc=d- -64|0;return n}function IUa(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if(M[f>>2]>=g>>>0)break a;o=P(J[a+272>>2],3);j=J[a+396>>2];p=j+8|0;while(1){b:{c:{d:{h=J[c>>2];if(h>>>0>>0){i=J[j+52>>2];k=J[j+60>>2]-i|0;l=d-h|0;l=k>>>0>>0?k:l;gc[J[J[a+408>>2]+4>>2]](a,(h<<2)+b|0,p,i,l);e:{if(J[j+48>>2]!=J[a+32>>2])break e;i=J[a+76>>2];if((i|0)<=0)break e;k=0;h=J[a+272>>2];if((h|0)<=0)break e;while(1){if((h|0)>0){m= -(k<<2)+j|0;i=1;while(1){h=J[m+8>>2];jn(h,0,h,0-i|0,1,J[a+28>>2]);h=J[a+272>>2];n=(h|0)>(i|0);i=i+1|0;if(n)continue;break}i=J[a+76>>2]}k=k+1|0;if((k|0)<(i|0))continue;break}}J[c>>2]=l+J[c>>2];k=l+J[j+52>>2]|0;J[j+52>>2]=k;J[j+48>>2]=J[j+48>>2]-l;h=J[j+60>>2];break d}if(J[j+48>>2])break a;h=J[j+60>>2];k=J[j+52>>2];if((h|0)<=(k|0))break d;l=0;k=J[a+76>>2];if((k|0)>0){while(1){i=J[j+52>>2];m=J[j+60>>2];if((i|0)<(m|0)){h=J[((l<<2)+j|0)+8>>2];k=J[a+28>>2];n=i-1|0;while(1){jn(h,n,h,i,1,k);i=i+1|0;if((m| -0)!=(i|0))continue;break}k=J[a+76>>2]}l=l+1|0;if((l|0)<(k|0))continue;break}h=J[j+60>>2]}J[j+52>>2]=h;i=J[f>>2];break c}i=J[f>>2];if((h|0)!=(k|0))break b}gc[J[J[a+412>>2]+4>>2]](a,p,J[j+56>>2],e,i);J[f>>2]=J[f>>2]+1;i=J[a+272>>2];h=i+J[j+56>>2]|0;J[j+56>>2]=(h|0)<(o|0)?h:0;h=J[j+52>>2];if((h|0)>=(o|0)){J[j+52>>2]=0;h=0}J[j+60>>2]=h+i;i=J[f>>2]}if(i>>>0>>0)continue;break}}}function t7(){var a=0,b=0,c=0,d=0,e=0;a=bd(256,4);if(a){J[a+4>>2]=7;J[a+8>>2]=6;J[a+252>>2]=27;J[a+244>>2]=21;J[a+248>>2]=20; -J[a+236>>2]=22;J[a+240>>2]=14;J[a+228>>2]=16;J[a+232>>2]=15;J[a+220>>2]=23;J[a+224>>2]=9;J[a+212>>2]=17;J[a+216>>2]=16;J[a+204>>2]=18;J[a+208>>2]=10;J[a+196>>2]=12;J[a+200>>2]=11;J[a+188>>2]=24;J[a+192>>2]=5;J[a+180>>2]=18;J[a+184>>2]=17;J[a+172>>2]=19;J[a+176>>2]=11;J[a+164>>2]=13;J[a+168>>2]=12;J[a+156>>2]=20;J[a+160>>2]=6;J[a+148>>2]=14;J[a+152>>2]=13;J[a+140>>2]=15;J[a+144>>2]=7;J[a+132>>2]=9;J[a+136>>2]=8;J[a+124>>2]=25;J[a+128>>2]=2;J[a+116>>2]=19;J[a+120>>2]=18;J[a+108>>2]=20;J[a+112>>2]=12; -J[a+100>>2]=14;J[a+104>>2]=13;J[a+92>>2]=21;J[a+96>>2]=7;J[a+84>>2]=15;J[a+88>>2]=14;J[a+76>>2]=16;J[a+80>>2]=8;J[a+68>>2]=10;J[a+72>>2]=9;J[a+60>>2]=22;J[a+64>>2]=3;J[a+52>>2]=16;J[a+56>>2]=15;J[a+44>>2]=17;J[a+48>>2]=9;J[a+36>>2]=11;J[a+40>>2]=10;J[a+28>>2]=18;J[a+32>>2]=4;J[a+20>>2]=12;J[a+24>>2]=11;J[a+12>>2]=13;J[a+16>>2]=5;d=64;while(1){c=d<<2;b=c+a|0;J[b>>2]=J[b-256>>2]+1;b=(c|4)+a|0;J[b>>2]=J[b-256>>2]+1;b=(c|8)+a|0;J[b>>2]=J[b-256>>2]+1;b=(c|12)+a|0;J[b>>2]=J[b-256>>2]+1;e=128;d=d+4|0;if((d| -0)!=128)continue;break}while(1){c=e<<2;b=c+a|0;J[b>>2]=J[b-512>>2];b=(c|4)+a|0;J[b>>2]=J[b-512>>2];b=(c|8)+a|0;J[b>>2]=J[b-512>>2];b=(c|12)+a|0;J[b>>2]=J[b-512>>2];e=e+4|0;if((e|0)!=256)continue;break}}return a}function N4a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-48|0;bc=e;J[e+16>>2]=17;J[e+20>>2]=J[b+8>>2];J[e+24>>2]=J[b+12>>2];d=zc(32);J[d+24>>2]=1768386675;J[d+28>>2]=0;J[d+16>>2]=1768386662;J[d+20>>2]=0;J[d+8>>2]=1768386675;J[d+12>>2]=0;J[d>>2]=1768386662;J[d+4>>2]=0;J[e+40>>2]=4;J[e+ -44>>2]=d;b=0;a:{if(XC(J[J[a>>2]>>2],e+16|0,c,e+12|0))break a;qc(d);b=rc(336);J[695492]=0;a=j2(b);d=J[695492];J[695492]=0;b:{if((d|0)!=1){J[a+184>>2]=c;b=J[e+12>>2];J[a+268>>2]=L[b+68>>1];J[a+256>>2]=I[b+70>>1];J[a+260>>2]=I[b+72>>1];J[a+264>>2]=I[b+74>>1];c=J[b+36>>2];J[a+188>>2]=b;J[a+252>>2]=c;J[a+200>>2]=-1;J[a+204>>2]=-1;b=qn(J[a+188>>2],2);c:{if(!b)break c;J[a+200>>2]=L[b+92>>1];if(L[b>>1]==65535)break c;c=J[b+80>>2];if(c|J[b+84>>2]?(c|0)>=0:0)break c;b=J[a+188>>2];c=J[b+36>>2];if((c|0)<=0)break c; -d=J[b+40>>2];b=0;while(1){f=J[d+(b<<2)>>2];if(!(L[f+10>>1]|L[f+8>>1]!=3)){J[a+204>>2]=b;break c}b=b+1|0;if((c|0)!=(b|0))continue;break}}b=0;d=J[e+12>>2];g=O[a+112>>3]*64;d:{if(R(g)<2147483648){c=~~g;break d}c=-2147483648}if(!Y5(d,c,0,0))break b;gc[J[J[a>>2]+4>>2]](a);break a}a=Z()|0;qc(b);ba(a|0);B()}J[a+56>>2]=0;J[a+60>>2]=1072693248;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=1072693248;J[a+96>>2]=0;J[a+100>>2]=0;gc[J[J[a>>2]+72>> -2]](a);QK(a);b=a}bc=e+48|0;return b|0}function PJa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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;H[a+101|0]=f;H[a+100|0]=e;J[a+44>>2]=d;s=a,t=vd(d,4),J[s+32>>2]=t;s=a,t=vd(J[a+44>>2]+1|0,8),J[s+40>>2]=t;k=vd(J[a+44>>2]+1|0,4);J[a+36>>2]=k;m=c<<2;e=m+J[b>>2]|0;d=J[e>>2];f=J[a+44>>2];i=J[(e+(f<<2)|0)-4>>2];e=K[a+100|0];j=e&1;l=O[(j?d:i)+32>>3];n=O[d+16>>3];o=O[d+24>>3];O[a+24>>3]=O[(j?i:d)+40>>3];O[a+16>>3]=o;O[a>>3]=n;O[a+8>>3]= -l;i=J[b>>2];if((f|0)>0){j=J[a+40>>2];p=J[a+32>>2];d=0;q=e>>>0>1;r=e-1|0;while(1){e=d<<2;b=J[i+((q?((d^-1)+c|0)+f|0:c+d|0)<<2)>>2];J[e+p>>2]=J[b>>2];f=e+k|0;e=J[b+4>>2];J[f>>2]=e;f=J[a+44>>2];if((f-1|0)==(d|0))J[(f<<2)+k>>2]=e+J[b+8>>2];e=j+(d<<3)|0;a:{b:{c:switch(r|0){default:O[e>>3]=O[b+16>>3];f=J[a+44>>2];if((f-1|0)!=(d|0))break a;b=b+32|0;break b;case 0:O[e>>3]=O[b+24>>3];f=J[a+44>>2];if((f-1|0)!=(d|0))break a;b=b+40|0;break b;case 1:O[e>>3]=O[b+32>>3];f=J[a+44>>2];if((f-1|0)!=(d|0))break a;b= -b+16|0;break b;case 2:break c}O[e>>3]=O[b+40>>3];f=J[a+44>>2];if((f-1|0)!=(d|0))break a;b=b+24|0}O[j+(f<<3)>>3]=O[b>>3]}d=d+1|0;if((f|0)>(d|0))continue;break}}b=J[i+m>>2];J[a+48>>2]=J[b+48>>2];l=O[b+56>>3];H[a+104|0]=0;H[a+103|0]=h;H[a+102|0]=g;O[a+56>>3]=l;J[a+64>>2]=0;O[a+72>>3]=O[b+64>>3];O[a+80>>3]=O[b+72>>3];O[a+88>>3]=O[b+80>>3];J[a+96>>2]=H[b+91|0];return a|0}function s$(a){var b=0,c=0,d=0,e=0,f=0;f=bc-16|0;bc=f;a:{if(J[a+292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a; -Hd(a)}c=0;b:{if(J[a+172>>2]==-1|K[J[J[a+36>>2]+16>>2]]!=38)break b;Qd(a);e=Uh(a);if(!e){fe(a,68,34514);break b}if(K[J[J[a+36>>2]+16>>2]]!=59){if(J[a+172>>2]==-1?J[a+212>>2]:0)break b;J[a+84>>2]=23;J[f>>2]=29297;Cc(0,0,0,a,0,1,23,3,0,0,0,0,32890,f);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}Qd(a);if(!(K[a+362|0]&16)){c=Qi(e);if(c)break b}J[a+440>>2]=J[a+440>>2]+1;c=0;d=J[a>>2];c:{if(!d)break c;b=J[d+20>>2];if(b)b=gc[b|0](J[a+4>>2],e)|0;else b=0;d=J[a+12>>2];d:{if(b|(d|0)!=1)break d; -if(!(K[a+362|0]&16)){b=0;d=1;break d}b=Qi(e);d=J[a+12>>2]}if(b|(d|0)!=1)break c;b=0;if(J[a+4>>2]!=(a|0))break c;b=KB(a,e)}d=J[a+172>>2];if((d|0)==-1)break b;if(!b){e:{if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){Nf(a,26,35957,e);break e}xt(a,27,35957,e);if(J[a+216>>2])break e;b=J[a>>2];if(!b)break e;b=J[b+64>>2];if(!b)break e;gc[b|0](J[a+4>>2],e)}Vj(a,0,0,0);J[a+100>>2]=0;break b}c=J[b+48>>2];f:{if((c|0)==3){Nf(a,28,32260,e);break f}d=(d|0)!=12;if(!(d|(c|0)!=2)){Nf(a,29,37385,e);break f}if(!d){if((c| -0)==6)break f;c=J[b+72>>2];if(c&1?0:c)break f;c=J[b+40>>2];if(!c)break f;if(!zp(c,60))break f;Nf(a,38,31794,e);break f}if((c&-2)!=4)break f;Nf(a,30,37337,e)}c=b}bc=f+16|0;return c}function Dkb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=bc-16|0;bc=h;i=J[a+84>>2];a:{b:{c:{f=J[a+8>>2];if(!(f&8))break c;f=J[a+4>>2]&2147418112|f&32768;if(d&16){if(f){f=7;if(!(K[a+740|0]&16))break a}if(!K[a+292|0])break c;if(!c)break b;f=0;if((c|0)!=1){i=c&-2;d=0;while(1){j=h+14|0;k=h+12| -0;gc[J[J[a+540>>2]+140>>2]](a,1,b+g|0,j,k);J[(g<<2)+e>>2]=L[h+12>>1];l=g|1;gc[J[J[a+540>>2]+140>>2]](a,1,l+b|0,j,k);J[(l<<2)+e>>2]=L[h+12>>1];g=g+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1))break a;gc[J[J[a+540>>2]+140>>2]](a,1,b+g|0,h+14|0,h+12|0);J[(g<<2)+e>>2]=L[h+12>>1];break a}if(f){f=7;if(!(K[a+740|0]&2))break a}if(!L[a+250>>1])break c;if(!c)break b;f=0;if((c|0)!=1){i=c&-2;d=0;while(1){j=h+14|0;k=h+10|0;gc[J[J[a+540>>2]+140>>2]](a,0,b+g|0,j,k);J[(g<<2)+e>>2]=L[h+10>>1];l=g|1;gc[J[J[a+ -540>>2]+140>>2]](a,0,l+b|0,j,k);J[(l<<2)+e>>2]=L[h+10>>1];g=g+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1))break a;gc[J[J[a+540>>2]+140>>2]](a,0,b+g|0,h+14|0,h+10|0);J[(g<<2)+e>>2]=L[h+10>>1];break a}if(!c)break b;if(!i){f=37;break a}l=i+(d&16?60:56)|0;while(1){f=J[a+88>>2];j=(f?256:259)|d;k=b+g|0;d:{if(!(j&1?0:f)){f=fD(i,0,k,j);break d}if(J[f>>2]!=J[i+4>>2]){f=35;break a}f=fD(i,f,k,j)}if(f)break a;J[(g<<2)+e>>2]=J[l>>2];g=g+1|0;if((g|0)!=(c|0))continue;break}}f=0}bc=h+16|0;return f|0}function qha(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;g=bc-32|0;bc=g;J[g+28>>2]=b;a:{b:{if(!(J[d+4>>2]&1)){J[g>>2]=-1;b=gc[J[J[a>>2]+16>>2]](a,b,c,d,e,g)|0;c:switch(J[g>>2]){case 1:H[f|0]=1;break a;case 0:break b;default:break c}H[f|0]=1;J[e>>2]=4;break a}a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;h=$(6537,g|0)|0;a=J[695492];J[695492]=0;d:{e:{f:{g:{if((a|0)!=1){a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1; -J[695492]=0;b=$(6641,g|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[g>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)gc[J[J[a>>2]+8>>2]](a);J[695492]=0;da(6642,g|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1){b=Z()|0;break d}J[695492]=0;da(6643,g|12,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;d=g+24|0;a=va(6644,g+28|0,c|0,g|0,d|0,h|0,e|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;H[f|0]=(a|0)==(g|0);b=J[g+28>>2];while(1){d=Ze(d-12|0);if((g|0)!=(d|0))continue;break}break a}b= -Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;Ze(g);break d}b=Z()|0;while(1){d=Ze(d-12|0);if((g|0)!=(d|0))continue;break}}ba(b|0);B()}H[f|0]=0}bc=g+32|0;return b|0}function Oha(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;g=bc-32|0;bc=g;J[g+28>>2]=b;a:{b:{if(!(J[d+4>>2]&1)){J[g>>2]=-1;b=gc[J[J[a>>2]+16>>2]](a,b,c,d,e,g)|0;c:switch(J[g>>2]){case 1:H[f| -0]=1;break a;case 0:break b;default:break c}H[f|0]=1;J[e>>2]=4;break a}a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;h=$(6613,g|0)|0;a=J[695492];J[695492]=0;d:{e:{f:{g:{if((a|0)!=1){a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;b=$(6614,g|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[g>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)gc[J[J[a>>2]+8>>2]](a);J[695492]=0;da(6615,g|0,b|0);a=J[695492];J[695492]= -0;if((a|0)==1){b=Z()|0;break d}J[695492]=0;da(6616,g|12,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;d=g+24|0;a=va(6617,g+28|0,c|0,g|0,d|0,h|0,e|0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;H[f|0]=(a|0)==(g|0);b=J[g+28>>2];while(1){d=ad(d-12|0);if((g|0)!=(d|0))continue;break}break a}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;ad(g);break d}b= -Z()|0;while(1){d=ad(d-12|0);if((g|0)!=(d|0))continue;break}}ba(b|0);B()}H[f|0]=0}bc=g+32|0;return b|0}function vFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a=bc-80|0;bc=a;e=XG(a+68|0,b);J[695492]=0;f=!J[e+4>>2];b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{if((b|0)==1)break g;if(f)break e;J[695492]=0;b=J[e+4>>2];d=J[695492];J[695492]=0;if((d|0)==1)break g;if(!b)break f;J[695492]=0;J[a>>2]=0;b=J[e>>2];if(K[e+8|0])b=J[b>>2];b=J[(J[a>>2]<<2)+b>>2];d=J[695492];J[695492]=0;if((d|0)==1)break d;if((b| -0)!=123)break f;J[695492]=0;ca(4852,c|0,e|0,e|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f}b=Z()|0;break a}J[695492]=0;ia(4853,a+56|0,e|0,44,0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=1072693248;b=J[a+60>>2]-J[a+56>>2]|0;if((b|0)>0){b=(b>>>0)/12|0;b=b>>>0>=6?6:b;d=(b|0)<=1?1:b;b=0;while(1){J[695492]=0;g=+qa(4854,J[a+56>>2]+P(b,12)|0);h= -J[695492];J[695492]=0;if((h|0)==1)break b;O[(b<<3)+a>>3]=g;b=b+1|0;if((d|0)!=(b|0))continue;break}}J[695492]=0;da(4855,c|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;d=J[a+56>>2];if(!d)break e;c=d;b=J[a+60>>2];if((d|0)!=(b|0)){while(1){b=Lc(b-12|0);if((d|0)!=(b|0))continue;break}c=J[a+56>>2]}J[a+60>>2]=d;qc(c)}Lc(e);bc=a+80|0;return!f|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;cA(a+56|0)}Lc(e);ba(b|0);B()}function IT(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,w=0;h=bc-16|0;bc=h;g=J[c+4>>2];f=J[c+12>>2];b=(b|0)<(g|0)?g:(b|0)<(f|0)?b:f-1|0;f=J[a+104>>2];a:{b:{if((b|0)==(f|0))break b;g=J[a+76>>2];if((b|0)==J[a+100>>2])break a;J[a+100>>2]=f;J[a+104>>2]=b;J[a+76>>2]=J[a+88>>2];J[a+88>>2]=g;f=J[a+16>>2];J[h>>2]=J[c>>2]<>2]=J[c+8>>2]<>2];J[h+12>>2]=b+1<>2]=b<>2]|0,0-J[d+4>>2]|0);f=J[h>>2];k=J[h+8>>2];if((f|0)>=(k|0))break b;b=J[a+16>>2];o=1<>2];j=d+b|0;c=j-1|0;l=1<>2];i=J[h+ -12>>2]-b|0;d=1<(i|0)?i:d;if((p|0)>0){q=L[e+12>>1];t=(b|0)>=0?b>>>0>1]?J[e+16>>2]+P(P(b,q),3)|0:0:0;u=2<(f|0);w=P(r?f:k,3);c=0;i=0;m=0;d=0;while(1){b=e;s=(w+b|0)+v|0;if(b>>>0>>0)while(1){c=c+1|0;i=K[b|0]+i|0;m=K[b+1|0]+m|0;d=K[b+2|0]+d|0;b=b+3|0;if(s>>>0>b>>>0)continue;break}e=P(q,3)+e|0;n=n+1|0;if((p|0)!=(n|0))continue;break}c:{if((c|0)==(u|0)){b=i+l>>j;i=l+m>>j;c=d+l>>j;break c}e=(c|0)/2|0;b=(e+i|0)/(c|0)|0;i=(e+m|0)/(c| -0)|0;c=(d+e|0)/(c|0)|0}H[g+1|0]=i;H[g+2|0]=c;H[g|0]=b;g=g+3|0;if(r)continue;break}break b}if(c>>>0<31)break b;b=l>>j;while(1){H[g+1|0]=b;H[g+2|0]=b;H[g|0]=b;g=g+3|0;f=f+o|0;if((k|0)>(f|0))continue;break}}g=J[a+88>>2]}bc=h+16|0;return g}function x0a(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;h=J[a+4>>2];d=J[h+48>>2];c=J[a+8>>2];g=J[a+12>>2];a:{if(c>>>0>=g>>>0)break a;f=J[a+24>>2];while(1){b:{if(J[b>>2]>0)break b;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:switch(d|0){case 1:case 2:case 3:case 5:case 6:case 7:if(K[c| -0]==K[d+740960|0])break h;e=c;c=J[a+8>>2];e=e-c|0;j=d&3;if((e|0)!=(j|0)){k=K[a+2|0];H[a+2|0]=0;d=(d&4)+740960|0;J[a+8>>2]=d;J[a+12>>2]=d+(j-e|0);Mw(a,b);H[a+2|0]=k;J[a+12>>2]=g}d=8;if(c>>>0>=g>>>0)break b;if(J[b>>2]<=0)break k;break b;case 8:break k;case 0:break l;case 9:break e;default:break c}e=K[c|0];if(!e)break j;d=5;if((e|0)==255)break i}J[a+8>>2]=c;if(f)break g;Mw(a,b);break f}d=1}c=c+1|0;break c}e=d-3|0;c=c+1|0;d=d+1|0;m:switch(e|0){case 0:i=c-J[a+8>>2]|0;d=8;break c;case 4:break m;default:break c}i= -c-J[a+8>>2]|0;break d}c1(a,b)}c=J[a+8>>2];d=8;break c}J[a+8>>2]=c;n:{if(f){b1(a,b);break n}sK(a,b)}c=J[a+8>>2]}d=9}if(c>>>0>>0)continue}break}if(!f|!i)break a;e=J[a+24>>2];if(e>>>0<=f>>>0)break a;while(1){J[f>>2]=J[f>>2]+i;f=f+4|0;if(e>>>0>f>>>0)continue;break}}J[a+8>>2]=c;o:{if(!K[a+2|0]|(c|0)!=(g|0))break o;p:{q:switch(d|0){case 8:Mw(a,b);break p;case 9:sK(a,b);J[h+48>>2]=9;return;case 0:break o;default:break q}c=(d&4)+740960|0;J[a+8>>2]=c;J[a+12>>2]=c+(d&3);Mw(a,b);J[a+12>>2]=g;J[a+8>>2]=g}d= -8}J[h+48>>2]=d}function FP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;a=bc-16|0;bc=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;c=J[a+12>>2];a:{b:{while(1){if(c>>>0>=d>>>0){f=0;break a}f=2;c:{b=L[c>>1];d:{if(b>>>0<=127){f=1;c=J[a+8>>2];if((g-c|0)<=0)break a;J[a+8>>2]=c+1;H[c|0]=b;break d}if(b>>>0<=2047){c=J[a+8>>2];if((g-c|0)<2)break b;J[a+8>>2]=c+1;H[c|0]=b>>>6|192;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break d}if(b>>>0<=55295){c=J[a+8>>2];if((g-c|0)<3)break b; -J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break d}if(b>>>0<=56319){f=1;if((d-c|0)<4)break a;i=L[c+2>>1];if((i&64512)!=56320)break c;if((g-J[a+8>>2]|0)<4)break a;f=b&960;if((i&1023|(b<<10&64512|f<<10))>>>0>1048575)break c;J[a+12>>2]=c+2;c=J[a+8>>2];J[a+8>>2]=c+1;j=c;c=(f>>>6|0)+1|0;H[j|0]=c>>>2|240;f=J[a+8>>2];J[a+8>>2]=f+1;H[f|0]=c<<4&48|b>>>2&15|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=i>>>6&15|b<<4&48|128;b=J[a+8>>2];J[a+ -8>>2]=b+1;H[b|0]=i&63|128;break d}if(b>>>0<57344)break a;c=J[a+8>>2];if((g-c|0)<3)break b;J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128}c=J[a+12>>2]+2|0;J[a+12>>2]=c;continue}break}f=2;break a}f=1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];bc=a+16|0;return f|0}function $i(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;k=bc-32|0;bc=k;if(!(!d|J[d>>2]>=J[a+8>>2])){n=a+24|0;j=a+36|0;o=a+40|0;p=a+28|0;q=a+16|0;h= --1;i=1;while(1){if(!J[d>>2]){f=J[a+8>>2];g=J[J[a+16>>2]>>2]?J[a+20>>2]:0;if((f|0)>=(g|0)){f=g+2E4|0;oe(q,f,1);oe(p,f,4);oe(o,f,4);f=J[a+8>>2]}J[a+8>>2]=f+1;J[d>>2]=f;H[J[a+12>>2]+f|0]=0;J[J[a+36>>2]+(J[d>>2]<<2)>>2]=0;J[J[a+24>>2]+(J[d>>2]<<2)>>2]=0}a:{b:{if(K[a+4|0]){if(!((c|0)<(e|0)|(b|0)>=(e|0))){g=1;f=j;if(!(gc[J[J[a>>2]+8>>2]](a,(e|0)<=(l|0),J[a+12>>2]+J[d>>2]|0)|0))break b;break a}g=1;f=j;if((e|0)>(l|0))break b;break a}g=1;if((b|0)>=(e|0)){f=j;break a}if((c|0)<(e|0))break b;f=j;if(gc[J[J[a>> -2]+8>>2]](a,0,J[a+12>>2]+J[d>>2]|0)|0)break a}g=0;f=n}r=J[d>>2];f=J[f>>2];c:{d:{e:{f:{g:switch(i-1|0){case 0:i=2;if(!g)break f;m=0;e=1;break d;case 1:if(!g){if(e-1>>>0<2){e=0;break c}d=e+1|0;h=(d|0)/2|0;e=((d|0)/-4|0)+e|0;i=3;break d}e=e<<1|1;i=2;break d;case 2:break g;default:break d}d=(h|0)/2|0;if((h&-2)!=2){if(!g){e=((h|0)/-4|0)+e|0;break e}e=((h|0)/4|0)+e|0;break e}e=e-!g|0;break c}d=c^-1;c=b^-1;l=0-K[a+4|0]<<24>>24^l;e=1;m=1;b=d;break d}i=3;h=d}d=f+(r<<2)|0;if((h|0)!=1)continue}break}bc=k+32| -0;return 0-m^e}a=Kc(k+8|0,2378262,2374240,478,2421544,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0);B()}B()}function Js(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(K[a|0]!=35)break a;b=0;f=a+1|0;i=Qc(f);e=i+a|0;g=e-1|0;d=(i|0)<2?f:g;if(d>>>0>>0){c=H[d|0];a=0;a=d>>>0>>0?K[d+1|0]:a;b:{if(!c)break b;b=c-97>>>0<26?c&95:c;c=b<<24>>24;b=c-65>>>0<6?b-55|0:c-48>>>0<10?b-48|0:0;if(!(a&255))break b;a=a<<24>>24;a=a-97>>>0<26?a&95:a;c=a<<24>>24;b=(b&255)<<4| -(c-65>>>0<6?a+201|0:c-48>>>0<10?a+208|0:0)}b=b&255}j=e-3|0;h=(i|0)<4?f:j;if(h>>>0>>0){d=H[h|0];a=0;c=0;c=g>>>0>h+1>>>0?K[h+1|0]:c;c:{if(!d)break c;a=d-97>>>0<26?d&95:d;d=a<<24>>24;a=d-65>>>0<6?a-55|0:d-48>>>0<10?a-48|0:0;if(!c)break c;c=c<<24>>24;c=c-97>>>0<26?c&95:c;d=c<<24>>24;a=(a&255)<<4|(d-65>>>0<6?c+201|0:d-48>>>0<10?c+208|0:0)}b=(a&255)<<8|b}h=e-5|0;g=(i|0)<6?f:h;if(g>>>0>>0){d=H[g|0];a=0;c=0;c=g+1>>>0>>0?K[g+1|0]:c;d:{if(!d)break d;a=d-97>>>0<26?d&95:d;d=a<<24>>24;a=d-65>>>0<6?a- -55|0:d-48>>>0<10?a-48|0:0;if(!c)break d;c=c<<24>>24;c=c-97>>>0<26?c&95:c;d=c<<24>>24;a=(a&255)<<4|(d-65>>>0<6?c+201|0:d-48>>>0<10?c+208|0:0)}b=(a&255)<<16|b}e=(i|0)<8?f:e-7|0;if(e>>>0>=h>>>0)break a;c=H[e|0];a=0;f=0;f=h>>>0>e+1>>>0?K[e+1|0]:f;e:{if(!c)break e;a=c-97>>>0<26?c&95:c;c=a<<24>>24;a=c-65>>>0<6?a-55|0:c-48>>>0<10?a-48|0:0;if(!f)break e;c=f<<24>>24;c=c-97>>>0<26?c&95:c;e=c<<24>>24;a=(a&255)<<4|(e-65>>>0<6?c+201|0:e-48>>>0<10?c+208|0:0)}b=a<<24|b}return b}function jNa(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,u=0,v=0;n=bc+-64|0;bc=n;d=wc(a,0,256);while(1){a:{h=d;d=J[(i<<2)+b>>2]+c|0;e=K[d+3|0];f=K[d+1|0];g=e+f|0;j=K[d+4|0];k=K[d|0];l=j+k|0;m=g+l|0;d=K[d+2|0];J[h>>2]=(m+d<<2)-2560;g=P(l-g|0,6476)+1024|0;d=P(m-(d<<2)|0,2896);J[h+16>>2]=g-d>>11;J[h+8>>2]=d+g>>11;e=f-e|0;f=k-j|0;d=P(e+f|0,6810)+1024|0;J[h+12>>2]=d+P(e,-17828)>>11;J[h+4>>2]=d+P(f,4209)>>11;e=i-7|0;i=i+1|0;d=n;b:switch(e|0){case 0:continue;case 2:break a;default:break b}d= -h+32|0;continue}break}while(1){i=J[a+192>>2];e=J[a+96>>2];b=i+e|0;h=J[d>>2];f=J[a+32>>2];c=h+f|0;g=b+c|0;j=J[a+224>>2];k=J[a+64>>2];l=j+k|0;m=l<<1;o=J[a+160>>2];p=J[a+128>>2];q=o+p|0;r=J[d+32>>2];s=J[a>>2];t=r+s|0;u=q+t|0;J[a+128>>2]=(P(g-m|0,-4582)+P(u-m|0,11997)|0)+16384>>15;J[a>>2]=P((g+l|0)+u|0,10486)+16384>>15;g=t-q|0;c=c-b|0;b=P(g+c|0,8716)+16384|0;J[a+192>>2]=b+P(c,-22820)>>15;J[a+64>>2]=b+P(g,5387)>>15;b=p-o|0;c=s-r|0;g=b+c|0;h=f-h|0;i=e-i|0;e=h-i|0;f=k-j|0;J[a+160>>2]=P(g-(e+f|0)|0,10486)+ -16384>>15;j=(P(c-b|0,9973)+P(h+i|0,-6163)|0)+16384|0;f=P(f,10486);e=(P(e,5243)-f|0)+P(e+g|0,3240)|0;J[a+224>>2]=j-e>>15;J[a+96>>2]=e+j>>15;J[a+32>>2]=(((f+(P(c,14647)+P(h,13213)|0)|0)+P(i,6732)|0)+P(b,2320)|0)+16384>>15;d=d+4|0;a=a+4|0;v=v+1|0;if((v|0)!=5)continue;break}bc=n- -64|0}function Sn(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(!J[a+12>>2]){k=1;if(J[a+4>>2]>0|J[a+8>>2]>1)break b;break a}e=1;if(J[a+8>>2]>0)break b;if(J[a+4>>2]<2)break a}b=J[a>>2];f=b+(e<<5)|0;g=J[a+16>>2]; -h=J[a+20>>2];if(g>>>0>>0){d=g;while(1){c=(d<<6)+f|0;N[c>>2]=N[c>>2]*Q(1.2301740646362305);N[c+4>>2]=N[c+4>>2]*Q(1.2301740646362305);N[c+8>>2]=N[c+8>>2]*Q(1.2301740646362305);N[c+12>>2]=N[c+12>>2]*Q(1.2301740646362305);N[c+16>>2]=N[c+16>>2]*Q(1.2301740646362305);N[c+20>>2]=N[c+20>>2]*Q(1.2301740646362305);N[c+24>>2]=N[c+24>>2]*Q(1.2301740646362305);N[c+28>>2]=N[c+28>>2]*Q(1.2301740646362305);d=d+1|0;if((h|0)!=(d|0))continue;break}}i=b+(k<<5)|0;j=J[a+28>>2];c=J[a+24>>2];if(j>>>0>c>>>0){d=c;while(1){b= -(d<<6)+i|0;N[b>>2]=N[b>>2]*Q(1.625732421875);N[b+4>>2]=N[b+4>>2]*Q(1.625732421875);N[b+8>>2]=N[b+8>>2]*Q(1.625732421875);N[b+12>>2]=N[b+12>>2]*Q(1.625732421875);N[b+16>>2]=N[b+16>>2]*Q(1.625732421875);N[b+20>>2]=N[b+20>>2]*Q(1.625732421875);N[b+24>>2]=N[b+24>>2]*Q(1.625732421875);N[b+28>>2]=N[b+28>>2]*Q(1.625732421875);d=d+1|0;if((j|0)!=(d|0))continue;break}}b=f+32|0;d=J[a+8>>2];a=J[a+4>>2];e=a-e|0;e=(d|0)<(e|0)?d:e;nA(i,b,g,h,e,Q(-.4435068666934967));l=i+32|0;d=d-k|0;a=(a|0)<(d|0)?a:d;nA(f,l,c,j, -a,Q(-.8829110860824585));nA(i,b,g,h,e,Q(.05298011749982834));nA(f,l,c,j,a,Q(1.5861343145370483))}}function X4(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(d){g=(f|0)==2;m=g?256:128;n=g?128:256;l=0-f|0;while(1){i=J[c+16>>2];a:{if(i&16)break a;k=J[c+28>>2];b:{g=H[c+20|0];c:{if((g|0)==(f|0)|(g|0)==(l|0))break c;g=H[c+21|0];if((g|0)==(f|0))break c;if((g|0)!=(l|0))break b}if(!g)break b;if((f|0)==(g|0)){g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-J[h>>2]|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g= -g+1|0;if((g|0)!=(a|0))continue;break a}break}J[c+24>>2]=h;J[c+16>>2]=i|528;break a}if((g|0)!=(l|0))break a;g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-(J[h>>2]+J[h+4>>2]|0)|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break a}break}J[c+24>>2]=h;J[c+16>>2]=i|1040;break a}if(!(i&64))break a;d:{e:{if(i&n){g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-J[h>>2]|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break d}break}g=528;break e}if(!(i&m))break d; -g=0;if(!a)break d;while(1){h=J[(g<<2)+b>>2];j=k-(J[h>>2]+J[h+4>>2]|0)|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break d}break}g=1040}J[c+24>>2]=h;J[c+16>>2]=g|i}if(J[c+24>>2])break a;g=0;if(!a)break a;while(1){i=J[(g<<2)+b>>2];h=J[i>>2];if(!((h|0)>(k|0)|(h+J[i+4>>2]|0)<(k|0))){J[c+24>>2]=i;break a}g=g+1|0;if((g|0)!=(a|0))continue;break}}c=c+40|0;d=d-1|0;if(d)continue;break}}}function Vba(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; -g=bc-16|0;bc=g;a:{b:{c:{e=J[a+584>>2];if(!K[e+401|0]){if((c>>>0)%M[e+1116>>2]|0){Nc(J[a+628>>2],97324,90323,0);break a}if((c|0)<=0)break c;o=e+536|0;a=J[e+1112>>2];while(1){d=K[e+209|0];if(!a){if(!sE(e,o,J[e+1104>>2],d<<3)){f=0;break a}d=K[e+209|0];a=J[e+1112>>2]}if(J[e+1108>>2]){f=P(J[e+1064>>2],a);i=f+J[e+1092>>2]|0;j=f+J[e+1096>>2]|0;k=J[e+1088>>2]+P(J[e+1056>>2],P(d&255,a))|0;l=0;d=b;while(1){h=K[e+208|0];m=K[e+209|0];d:{if(!m)break d;f=1;n=0;a=k;if(!h){h=0;break d}while(1){p=f&255;f=0;if(p){while(1){H[d| -0]=K[a|0];d=d+1|0;a=a+1|0;h=K[e+208|0];f=f+1|0;if(h>>>0>(f&255)>>>0)continue;break}m=K[e+209|0];f=h}a=(J[e+1056>>2]-f|0)+a|0;n=n+1|0;if((n&255)>>>0>>0)continue;break}}H[d|0]=K[i|0];H[d+1|0]=K[j|0];d=d+2|0;j=j+1|0;i=i+1|0;k=h+k|0;l=l+1|0;if(l>>>0>2])continue;break}a=J[e+1112>>2]}f=1;a=a+1|0;a=(a|0)!=J[e+1068>>2]?a:0;J[e+1112>>2]=a;d=J[e+1116>>2];b=d+b|0;c=c-d|0;if(c)continue;break}break a}if((c>>>0)%M[e+1116>>2]|0){Nc(J[a+628>>2],97344,90323,0);break a}if((c|0)<=0)break b;J[g+12>>2]=b; -a=e+536|0;while(1){if(!FO(e,a,g+12|0))break a;b=J[e+1116>>2];J[g+12>>2]=b+J[g+12>>2];c=c-b|0;if(c)continue;break}f=1;break a}fa(90369,70456,778,97324);B()}fa(90369,70456,826,97344);B()}bc=g+16|0;return f|0}function zA(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=J[b>>2];if((i|0)>2]){j=1;d=i+1|0;J[b>>2]=d;h=J[a+4>>2];e=h+i|0;f=H[e|0];g=f&255;a:{if((f|0)>=0)break a;if(f>>>0<=4294967263){if((d|0)>=J[a>>2])break a;a=K[d+h|0];if((a&192)!=128)break a;J[b>>2]=i+2;g=a&63|g<<6&1984;break a}if(f>>>0<=4294967279){if((d| -0)>=(J[a>>2]-1|0))break a;a=K[d+h|0];if((a&192)!=128)break a;d=K[e+2|0];if((d&192)!=128)break a;J[b>>2]=i+3;g=d&63|(a<<6&4032|g<<12&61440);break a}if(f>>>0<=4294967287){if((d|0)>=(J[a>>2]-2|0))break a;a=K[d+h|0];if((a&192)!=128)break a;d=K[e+2|0];if((d&192)!=128)break a;e=K[e+3|0];if((e&192)!=128)break a;J[b>>2]=i+4;g=e&63|(d<<6&4032|(a<<12&258048|g<<18&1835008));break a}if(f>>>0<=4294967291){if((d|0)>=(J[a>>2]-3|0))break a;a=K[d+h|0];if((a&192)!=128)break a;d=K[e+2|0];if((d&192)!=128)break a;f=K[e+ -3|0];if((f&192)!=128)break a;e=K[e+4|0];if((e&192)!=128)break a;J[b>>2]=i+5;g=e&63|(f<<6&4032|(d<<12&258048|(a<<18&16515072|g<<24&50331648)));break a}if(f>>>0>4294967293|(d|0)>=(J[a>>2]-4|0))break a;a=K[d+h|0];if((a&192)!=128)break a;d=K[e+2|0];if((d&192)!=128)break a;f=K[e+3|0];if((f&192)!=128)break a;h=K[e+4|0];if((h&192)!=128)break a;e=K[e+5|0];if((e&192)!=128)break a;J[b>>2]=i+6;g=e&63|(h<<6&4032|(f<<12&258048|(d<<18&16515072|(a<<24&1056964608|g<<30&1073741824))))}J[c>>2]=g}return j}function kCa(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;a:{b:{c:{b=J[a+16>>2];if(!b){J[f+12>>2]=0;break c}J[b+4>>2]=J[b+4>>2]+1;c=J[a+16>>2];J[f+12>>2]=c;if(!c)break c;d:{if(K[c+8|0])break d;d=J[c+84>>2];g=J[a+80>>2];b=J[a+84>>2];e=(b|0)<0?(d|0)>0?d-g|0:b:b;d=J[c+16>>2];e:{if(!d){b=c;break e}while(1){b=d;d=J[b+84>>2];g=J[c+80>>2]+g|0;e=(e|0)<0?(d|0)>0?d-g|0:e:e;c=b;d=J[b+16>>2];if(d)continue;break}}J[695492]=0;c=$(5074,b+20|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c){if(J[b+84>>2]>=(J[b+80>>2]+ -(e+g|0)|0))break d;break b}if((e|0)<0){if(K[b+8|0])break d;break b}b=J[b+72>>2];J[695492]=0;b=ga(5092,b|0,g|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if((b|0)!=(e|0))break b}H[a+8|0]=1;break b}J[695492]=0;b=$(5074,a+20|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(J[a+84>>2]>=0|b)break b;J[695492]=0;_(5094,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;if(!K[a+8|0]|J[a+84>>2]>=0)break b;b=J[a+64>>2];c=J[J[b>>2]+28>>2];J[695492]=0;b=$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)== -1)break a;J[a+84>>2]=b}f:{a=J[f+12>>2];g:{if(!a)break g;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break f;if(b)break g;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break f}bc=f+16|0;return}ea(0)|0;yc();B()}a=Z()|0;vc(f+12|0);ba(a|0);B()}function b1(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;c=J[a+4>>2];l=c+37|0;k=J[a+12>>2];j=J[a+24>>2];e=J[a+8>>2];a:{b:{d=J[c+44>>2];h=J[a+16>>2];m=J[a+20>>2];if(!(!d|h>>>0>=m>>>0)){J[c+ -44>>2]=0;f=H[c+36|0];H[c+36|0]=0;g=d-1|0;break b}c=0;break a}c=1}while(1){c:{if(!c){if(e>>>0>=k>>>0)break c;g=0;f=0;if(h>>>0>=m>>>0)break c;c=1;continue}d:{if(f>>>0>3){c=f;break d}e:{f:{if(e>>>0>=k>>>0)break f;c=K[e|0];H[f+l|0]=c;d=e+1|0;g=c<<(f<<3)|g;c=4;i=f+1|0;if((i|0)==4){e=d;break d}if(d>>>0>=k>>>0){f=i;e=d;break f}c=K[e+1|0];H[i+l|0]=c;d=e+2|0;g=c<<(i<<3)|g;c=4;i=f+2|0;if((i|0)==4){e=d;break d}if(d>>>0>=k>>>0){f=i;e=d;break f}c=K[e+2|0];H[i+l|0]=c;d=e+3|0;g=c<<(i<<3)|g;c=4;f=f+3|0;if((f|0)== -4){e=d;break d}if(d>>>0>>0)break e;e=d}c=J[a+4>>2];H[c+36|0]=f;J[c+44>>2]=g+1;break c}d=K[e+3|0];H[f+l|0]=d;e=e+4|0;g=d<<(f<<3)|g}g:{if(!((g&-2048)==55296|g>>>0>1114111)){h:{i:{if(g>>>0<=65535){I[h>>1]=g;o=1;d=j;h=h+2|0;break i}I[h>>1]=(g>>>10|0)-10304;J[j>>2]=n;d=j+4|0;p=g&1023|-9216;o=2;i=h+2|0;if(i>>>0>=m>>>0)break h;I[h+2>>1]=p;h=h+4|0}J[d>>2]=n;n=c+n|0;j=(o<<2)+j|0;break g}f=J[a+4>>2];H[f+65|0]=1;I[f+116>>1]=p;J[b>>2]=15;j=d;h=i;break c}H[J[a+4>>2]+36|0]=c;J[b>>2]=12;break c}c=0;continue}break}if(!(h>>> -0>>0|e>>>0>=k>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=j;J[a+8>>2]=e;J[a+16>>2]=h}function sJ(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=bc-144|0;bc=c;f=J[b>>2];e=hm(a,f,c+28|0);a:{if(!t$(J[a+360>>2],e))break a;g=1;b:{if(J[c+28>>2]==1){H[c+32|0]=e;d=1;break b}d=Pi(c+32|0,e);g=J[c+28>>2]}g=f+g|0;f=hm(a,g,c+28|0);c:{while(1){if(!Xq(J[a+360>>2],f))break c;d:{if(J[c+28>>2]==1){H[(c+32|0)+d|0]=f;d=d+1|0;e=1;break d}d=Pi((c+32|0)+d|0,f)+d|0;e=J[c+28>>2]}g=e+g|0;f=hm(a,g,c+28|0);if((d|0)<100)continue;break}i= -d<<1;e=gc[J[659450]](i)|0;if(!e){ke(a,0);break a}h=tc(e,c+32|0,d);if(Xq(J[a+360>>2],f))while(1){e:{if((d+10|0)<=(i|0)){h=e;break e}if(!(K[a+362|0]&8|(d|0)<50001)){f:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break f;J[a+84>>2]=110;J[c+20>>2]=14115;J[c+16>>2]=6556;Cc(0,0,0,a,0,1,110,3,14115,0,0,0,32761,c+16|0);J[a+12>>2]=0;if(J[a+288>>2])break f;J[a+212>>2]=1}h=0;gc[J[659451]](e);break a}i=i<<1;h=gc[J[659452]](e,i)|0;if(h)break e;h=0;ke(a,0);gc[J[659451]](e);break a}g:{if(J[c+28>>2]==1){H[d+h|0]=f;d=d+1|0; -break g}d=Pi(d+h|0,f)+d|0}g=J[c+28>>2]+g|0;f=hm(a,g,c+28|0);e=h;if(Xq(J[a+360>>2],f))continue;break}H[d+h|0]=0;J[b>>2]=g;break a}if(!(K[a+362|0]&8|(d|0)<50001)){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=110;J[c+4>>2]=14115;J[c>>2]=6556;Cc(0,0,0,a,0,1,110,3,14115,0,0,0,32761,c);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[b>>2]=g;h=il(c+32|0,d)}bc=c+144|0;return h}function pZa(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;l=bc-32|0;bc=l;f=-1; -if(!(!d|(!a|!b))){a:{b:{c:{if(!c){J[b>>2]=0;g=0;break c}g=c;k=a;i=J[d>>2];d:{if((i|0)<=0)break d;n=J[b>>2]+k|0;m=g+i|0;i=g;while(1){g=H[i|0];f=g&255;j=(g|0)>=0;h=0;e:{if(j)break e;if(g>>>0<=4294967231)break b;if(g>>>0<=4294967263){f=f&31;h=1;break e}if(g>>>0<=4294967279){f=f&15;h=2;break e}if(g>>>0>4294967287)break b;f=f&7;h=3}e=i+1|0;if((h|0)>(m-e|0)){g=i;break d}f:{if(j){g=e;break f}g=e;if(e>>>0>=m>>>0)break f;while(1){g=e+1|0;e=K[e|0];if((e&192)!=128)break f;f=e&63|f<<6;h=h-1|0;if(!h)break f;e= -g;if(m>>>0>e>>>0)continue;break}}g:{h:{if(f>>>0<=127){e=k+1|0;if(e>>>0>>0)break h;g=i;break d}e=0;i:{j:{k:{l:{while(1){h=J[P(e,12)+769968>>2];if(h>>>0>>0){j=e|1;if((j|0)==253)break k;h=J[P(j,12)+769968>>2];if(h>>>0>=f>>>0)break l;j=e|2;h=J[P(j,12)+769968>>2];if(h>>>0>=f>>>0)break l;j=e|3;h=J[P(j,12)+769968>>2];if(h>>>0>=f>>>0)break l;e=e+4|0;continue}break}j=e}if(f>>>0>=h>>>0)break j}J[l>>2]=f;e=l+16|0;Gi(e,16,1814,l);break i}e=J[P(j,12)+769972>>2]}f=Qc(e);if((f+k|0)+2>>>0>>0){H[k|0]=38; -i=tc(k+1|0,e,f)+f|0;H[i|0]=59;e=i+1|0;break g}g=i;break d}H[k|0]=f}k=e;i=g;if(g>>>0>>0)continue;break}}J[b>>2]=k-a;g=g-c|0}f=0;break a}J[b>>2]=k-a;g=i-c|0;f=-2}J[d>>2]=g}bc=l+32|0;return f|0}function nw(a){var b=0,c=0,d=0,e=0;e=bc-16|0;bc=e;a:{b:{c:{d:{c=J[a+36>>2];b=J[c+16>>2];if(K[b|0]!=60|K[b+1|0]!=63|(K[b+2|0]!=120|K[b+3|0]!=109))break d;if(K[b+4|0]!=108)break d;d=K[b+5|0]-9|0;if(d>>>0>23|!(1<>2]=J[a+200>>2]+5;J[c+16>>2]=b+5;J[c+32>>2]=J[c+32>>2]+5;b=K[b+5|0];if((b| -0)==37){Od(a);c=J[a+36>>2];b=K[J[c+16>>2]]}e:{if(b&255)break e;if((Cd(c)|0)>0)break e;ze(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))fe(a,65,37724);Ud(a);b=x$(a);if(b)break c;b=uJ();break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=56;J[e>>2]=16750;Cc(0,0,0,a,0,1,56,3,0,0,0,0,32890,e);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}c=K[J[J[a+36>>2]+16>>2]]-9|0;if(1<>>0<=23:0)break b;fe(a,65,34177)}J[J[a+36>>2]+48>>2]=b;b=w$(a);c=J[a+84>>2];if((c| -0)==32)break a;if(!(b|c))fe(a,101,33358);Ud(a);f:{g:{h:{i:{c=J[a+36>>2];b=J[c+16>>2];switch(K[b|0]-62|0){case 0:break g;case 1:break i;default:break h}}if(K[b+1|0]!=62)break h;J[a+200>>2]=J[a+200>>2]+2;J[c+16>>2]=b+2;J[c+32>>2]=J[c+32>>2]+2;b=K[b+2|0];if((b|0)==37){Od(a);c=J[a+36>>2];b=K[J[c+16>>2]]}if(b&255)break a;if((Cd(c)|0)>0)break a;ze(a);break a}Pe(a,57,0);c=J[a+36>>2];b=J[c+16>>2];while(1){d=K[b|0];if(!d|(d|0)==62)break f;b=b+1|0;J[c+16>>2]=b;continue}}Pe(a,57,0)}Qd(a)}bc=e+16|0}function Sqa(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;j=bc-32|0;bc=j;a:{b:{c:{d:{if(!(J[b+76>>2]?J[b+72>>2]:0)){a=Kc(j+8|0,2377893,2374240,316,2421336,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;Fc(a);ba(b|0);B()}h=J[c+12>>2];i=J[c+4>>2];k=J[c+8>>2];c=J[c>>2];g=rc(72);J[695492]=0;l=h-i|0;h=k-c|0;e=ha(5381,g|0,l|0,h|0,((e+h|0)-1&0-e)-h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;J[a>>2]=0;md(a,e);e=J[a>>2];J[695492]=0;da(5372,e|0,P(d,d)+ -1|0);e=J[695492];J[695492]=0;if((e|0)!=1){e=J[b+100>>2];g=J[b+96>>2];if(((e-g|0)+1|0)>0){h=P(c,d);f=f-P(d,i)|0;c=0;while(1){if(!((c|0)<=(e|0)&(c|0)>=(g|0))){J[695492]=0;c=ja(5018,j+8|0,2381890,2382316,632,2422536,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;Fc(c);break b}e=J[b+84>>2]+(c-J[b+88>>2]<<3)|0;i=J[e+4>>2];J[695492]=0;i=aa(5512,b|0,i|0)|0;g=J[695492];J[695492]=0;e:{if((g|0)!=1){i=J[i+4>>2];if(!i)break e;g=L[e+ -2>>1];k=J[a>>2];e=L[e>>1];J[695492]=0;la(5375,k|0,i|0,e-h|0,f+g|0,d|0);e=J[695492];J[695492]=0;if((e|0)!=1)break e}b=Z()|0;break b}c=c+1|0;e=J[b+100>>2];g=J[b+96>>2];if((c|0)<((e-g|0)+1|0))continue;break}}bc=j+32|0;return}b=Z()|0;break b}B()}b=Z()|0}vc(a);ba(b|0);B()}a=Z()|0;qc(g);ba(a|0);B()}function fo(a,b){var c=0,d=0,e=0,f=0,g=0;if(a){if(J[a>>2]){e=J[a+4>>2];a:{if((e|0)<=0)break a;f=J[a+8>>2];if((f|0)<=0)break a;if(!b)while(1){c=J[a>>2];b=c+P(g,24)|0;if(!(!J[b+20>>2]|!c)){e=J[b>>2];b:{if(J[a+ -12>>2])break b;c=J[b+4>>2];if(c)gc[J[659451]](c);c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+12>>2];if(!c)break b;gc[J[659451]](c)}J[b+16>>2]=0;while(1){f=f-1|0;if(e){b=e;e=J[b>>2];c:{if(J[a+12>>2])break c;c=J[b+4>>2];if(c)gc[J[659451]](c);c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+12>>2];if(!c)break c;gc[J[659451]](c)}J[b+16>>2]=0;gc[J[659451]](b);continue}else e=J[a+4>>2];break}}g=g+1|0;if((g|0)>=(e|0))break a;if((f|0)>0)continue;break a}while(1){d=J[a>>2];c=d+P(g,24)|0;if(!(!J[c+20>>2]|!d)){e=J[c>>2]; -d=J[c+16>>2];if(d)gc[b|0](d,J[c+4>>2]);d:{if(J[a+12>>2])break d;d=J[c+4>>2];if(d)gc[J[659451]](d);d=J[c+8>>2];if(d)gc[J[659451]](d);d=J[c+12>>2];if(!d)break d;gc[J[659451]](d)}J[c+16>>2]=0;while(1){f=f-1|0;if(e){c=e;e=J[c>>2];d=J[c+16>>2];if(d)gc[b|0](d,J[c+4>>2]);e:{if(J[a+12>>2])break e;d=J[c+4>>2];if(d)gc[J[659451]](d);d=J[c+8>>2];if(d)gc[J[659451]](d);d=J[c+12>>2];if(!d)break e;gc[J[659451]](d)}J[c+16>>2]=0;gc[J[659451]](c);continue}break}e=J[a+4>>2]}g=g+1|0;if((g|0)>=(e|0))break a;if((f|0)>0)continue; -break}}gc[J[659451]](J[a>>2])}b=J[a+12>>2];if(b)dn(b);gc[J[659451]](a)}}function Web(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=J[a+804>>2];a:{b:{if(e){d=6;if(M[a+28>>2]<=b>>>0)break a;b=J[e+(b<<2)>>2];break b}d=6;if(M[a+800>>2]<=b>>>0)break a}d=2;c:{d:switch(J[a+796>>2]-1|0){case 0:case 1:b=J[a+788>>2]+P(b,48)|0;f=K[b+52|0];I[c>>1]=f;g=K[b+53|0];I[c+2>>1]=g;j=H[b+24|0];e=j<<6;J[c+12>>2]=e;h=H[b+25|0];d=h<<6;J[c+16>>2]=d;i=H[b+33|0];e:{f:{if((h|0)>0){if((i|0)>=0)break e;d= -0-d|0;break f}if(h|j)break e;d=H[b+32|0];if(d|i){e=d<<6;J[c+12>>2]=e;d=i<<6;break f}e=g<<6;J[c+12>>2]=e;d=0}J[c+16>>2]=d}J[c+20>>2]=e-d;if((d|0)==(e|0)){e=g<<6;J[c+20>>2]=e;J[c+16>>2]=d-e}J[c+24>>2]=H[b+31|0]+(K[b+26|0]+H[b+30|0]|0)<<6;b=a+178|0;break c;case 2:break d;default:break a}d=3;b=J[a+788>>2]+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(M[a+864>>2]>>0)break a;b=J[a+104>>2];d=nd(b,e+J[a+860>>2]|0);if(d)break a;d=Ue(b,4);if(d)break a; -e=mf(b);mf(b);ne(b);b=a+178|0;d=L[b>>1];I[c+2>>1]=e;I[c>>1]=e;e=e<<6;k=c,l=Dd(I[a+220>>1],e,d),J[k+12>>2]=l;k=c,l=Dd(I[a+222>>1],e,d),J[k+16>>2]=l;k=c,l=Dd(I[a+224>>1]+(I[a+220>>1]-I[a+222>>1]|0)|0,e,d),J[k+20>>2]=l;k=c,l=Dd(L[a+226>>1],e,d),J[k+24>>2]=l;f=L[c>>1]}k=c,l=Dd(f,4194304,L[b>>1]),J[k+4>>2]=l;k=c,l=Dd(L[c+2>>1],4194304,L[b>>1]),J[k+8>>2]=l;d=0}return d|0}function Te(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{d=J[b>>2];b:{if((d|0)>=J[c>>2])break b;while(1){h=J[(d<<2)+a>>2];g=h-32|0;if(!((g|0)!= -12?g:0)){d=d+1|0;J[b>>2]=d;if(J[c>>2]>(d|0))continue;break b}break}g=1;d=d+1|0;J[b>>2]=d;c:{d:{e:{f:{e=h-48|0;g:{h:{i:{if(e>>>0<10)break i;c=0;j:switch(h-45|0){case 1:break g;case 0:break h;case 24:break i;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:break b;default:break j}if((h|0)!=101)break b}g=0;c=e}h=J[(d<<2)+a>>2];e=h-48|0;if(e>>>0<=9){while(1){c=P(c,10)+e|0;d=d+1|0;h=J[(d<< -2)+a>>2];e=h-48|0;if(e>>>0<10)continue;break}J[b>>2]=d}if((h|0)!=46)break f;d=d+1|0;J[b>>2]=d;f=+(c|0);c=g}e=J[(d<<2)+a>>2];if((e&-33)!=69){i=.1;while(1){g=e-48|0;if(g>>>0>9)break a;d=d+1|0;J[b>>2]=d;f=i*+(g|0)+f;i=i*.1;e=J[(d<<2)+a>>2];if((e&-33)!=69)continue;break}}g=c;break e}if((h&-33)!=69)break d;f=+(c|0)}c=d+2|0;J[b>>2]=c;e=J[((d<<2)+a|0)+4>>2];if(J[(c<<2)+a>>2]-48>>>0<=9){while(1){c=c+1|0;if(J[(c<<2)+a>>2]-48>>>0<10)continue;break}J[b>>2]=c}f=g?-f:f;if((e|0)==45)break c;return f*10*10*10*10* -10*10*10*10*10*10*10*10*10*10*10*10*10*10*10*10}return+((g?0-c|0:c)|0)}f=f/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10}return f}return c?-f:f}function QYa(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;a:{if(!a)break a;f=J[a+52>>2];i=J[a+8>>2];g=c;c=0;h=bc-16|0;bc=h;b:{if(!b)break b;d=gc[J[659447]](60)|0;if(!d){J[h>>2]=21261;Cc(0,0,0,0,0,2,2,3,21261,0,0,0,32863,h);break b}J[d>>2]=0;J[d+4>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0; -J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=7;c=b;c:{d:{if(!i)break d;e=J[i+80>>2];if(!e)break d;c=le(e,b,-1);break c}while(1){e=c;c=c+1|0;if(K[e|0])continue;break}c=0;e=e-b|0;if((e|0)<0)break c;j=gc[J[659450]](e+1|0)|0;if(!j){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break c}c=tc(j,b,e);H[e+c|0]=0}J[d+8>>2]=c;if(g){c=g;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-g|0;e:{if((b|0)<0)break e;e=gc[J[659450]](b+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2, -3,0,0,0,0,36013,0);break e}c=tc(e,g,b);H[b+c|0]=0}J[d+40>>2]=c}J[d+32>>2]=i;f:{if(!J[689540])break f;b=J[689537];if(!b)break f;gc[b|0](d)}c=d}bc=h+16|0;if(!c)break a;g:{if(!J[a+280>>2])break g;b=J[a+36>>2];if(!b)break g;b=J[b+28>>2];I[c+56>>1]=(b|0)>=65535?65535:b}h:switch(J[a+216>>2]-1|0){case 0:Ug(J[J[a+8>>2]+44>>2],c);return;case 1:Ug(J[J[a+8>>2]+48>>2],c);return;default:break h}if(!f){Ug(J[a+8>>2],c);return}if(J[f+4>>2]==1){Ug(f,c);return}JB(f,c)}}function CTa(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;f=J[a+420>>2];if(J[a+236>>2]){d=J[f+68>>2];if(!d){_v(a,J[f+72>>2]);d=J[a+236>>2];J[f+72>>2]=J[f+72>>2]+1&7}J[f+68>>2]=d-1}j=J[b>>2];k=J[a+380>>2];e=J[a+292>>2];b=J[a+364>>2];g=b;a:{if((b|0)<=0)break a;while(1){c=I[(J[(g<<2)+k>>2]<<1)+j>>1];b:{if((c|0)>=0){if(!(c>>>J[a+372>>2]|0))break b;break a}if(0-c>>>J[a+372>>2]|0)break a}c=(g|0)>1;g=g-1|0;if(c)continue;break}g=0}i=J[e+24>>2];c=J[a+360>>2];if((g|0)>=(c|0)){m=f+204|0;n=a+i|0;l=(i<<2)+f|0;while(1){d=(J[l+ -140>>2]+P(c,3)|0)-3|0;Oe(a,d,0);b=c;c:{d:{e:{while(1){f:{g:{c=I[(J[(b<<2)+k>>2]<<1)+j>>1];h:{if((c|0)>=0){c=c>>>J[a+372>>2]|0;if(!c)break g;e=0;break h}c=0-c>>>J[a+372>>2]|0;if(!c)break g;e=1}Oe(a,d+1|0,1);Oe(a,m,e);e=d+2|0;h=c-1|0;if(!h)break e;Oe(a,e,1);if((h|0)==1)break e;Oe(a,e,1);e=J[l+140>>2]+(K[n+184|0]<(b|0)?217:189)|0;d=2;if(c>>>0<=4)break f;c=h;while(1){o=e;Oe(a,e,1);e=e+1|0;d=d<<1;p=c>>>0<8;c=c>>>1|0;if(!p)continue;break}Oe(a,e,0);if(!d)break c;c=o+15|0;break d}Oe(a,d+1|0,0);b=b+1|0;d= -d+3|0;continue}break}Oe(a,e,0);c=e+14|0;break d}Oe(a,e,0);break c}while(1){d=d>>1;Oe(a,c,(h&d)!=0);if(d>>>0>1)continue;break}}c=b+1|0;if((b|0)<(g|0))continue;break}b=J[a+364>>2]}if((b|0)>=(c|0))Oe(a,(J[((i<<2)+f|0)+140>>2]+P(c,3)|0)-3|0,1);return 1}function I0a(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;e=J[a+4>>2];p=e+37|0;q=J[e+24>>2];o=J[a+12>>2];f=J[a+24>>2];j=J[a+8>>2];l=J[e+44>>2];d=J[a+16>>2];n=J[a+20>>2];a:{if(!(!l|d>>>0>=n>>>0)){J[e+44>>2]=0;h=H[e+36| -0];H[e+36|0]=0;k=J[e+48>>2];c=0;break a}g=j;c=1}b:{c:{while(1){d:{if(!c){e:{if((h|0)>=(k|0))break e;while(1){if(j>>>0>=o>>>0)break d;g=K[j|0];H[h+p|0]=g;if((g&192)!=128)break e;j=j+1|0;l=g+(l<<6)|0;h=h+1|0;if((h|0)!=(k|0))continue;break}h=k}g=j;if((h|0)!=(k|0))break c;c=k<<2;i=l-J[c+739600>>2]|0;if(i>>>0>1114111|i>>>0>2])break c;f:{if((q|0)==739104){if((k|0)<4)break f;break c}if((i&-2048)==55296)break c}g:{if(i>>>0<=65535){I[d>>1]=i;J[f>>2]=m;f=f+4|0;c=d+2|0;break g}I[d>>1]=(i+67043328>>> -10|0)-10240;J[f>>2]=m;i=i&1023|-9216;c=d+2|0;if(c>>>0>>0){I[d+2>>1]=i;J[f+4>>2]=m;f=f+8|0;c=d+4|0;break g}f=f+4|0;H[e+65|0]=1;I[e+116>>1]=i;J[b>>2]=15}d=c;m=k+m|0;c=1;continue}while(1){if(g>>>0>=o>>>0|d>>>0>=n>>>0)break b;j=g+1|0;l=K[g|0];c=l<<24>>24;if((c|0)>=0){I[d>>1]=c&255;J[f>>2]=m;f=f+4|0;m=m+1|0;d=d+2|0;g=j;continue}break}H[p|0]=c;k=H[l+739344|0];h=1;c=0;continue}break}J[e+48>>2]=k;J[e+44>>2]=l;H[e+36|0]=h;g=j;break b}H[e+36|0]=h;J[b>>2]=12}if(!(d>>>0>>0|g>>>0>=o>>>0|J[b>>2]>0))J[b>> -2]=15;J[a+24>>2]=f;J[a+8>>2]=g;J[a+16>>2]=d}function c1(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;c=J[a+4>>2];k=c+37|0;j=J[a+12>>2];i=J[a+24>>2];f=J[a+8>>2];a:{b:{d=J[c+44>>2];h=J[a+16>>2];l=J[a+20>>2];if(!(!d|h>>>0>=l>>>0)){J[c+44>>2]=0;e=H[c+36|0];H[c+36|0]=0;g=d-1|0;break b}c=0;break a}c=1}while(1){c:{if(!c){if(f>>>0>=j>>>0)break c;g=0;e=0;if(h>>>0>=l>>>0)break c;c=1;continue}d:{if(e>>>0>3)break d;e:{f:{if(f>>>0>=j>>>0)break f;d=K[f|0];H[e+k|0]=d;c=f+1|0;g=d|g<<8; -d=e+1|0;if((d|0)==4){f=c;e=4;break d}if(c>>>0>=j>>>0){e=d;f=c;break f}c=d+k|0;d=K[f+1|0];H[c|0]=d;c=f+2|0;g=d|g<<8;d=e+2|0;if((d|0)==4){f=c;e=4;break d}if(c>>>0>=j>>>0){e=d;f=c;break f}c=d+k|0;d=K[f+2|0];H[c|0]=d;c=f+3|0;g=d|g<<8;e=e+3|0;if((e|0)==4){f=c;e=4;break d}if(c>>>0>>0)break e;f=c}c=J[a+4>>2];H[c+36|0]=e;J[c+44>>2]=g+1;break c}c=K[f+3|0];H[e+k|0]=c;e=4;f=f+4|0;g=c|g<<8}g:{if(!((g&-2048)==55296|g>>>0>1114111)){h:{i:{if(g>>>0<=65535){I[h>>1]=g;n=1;c=i;h=h+2|0;break i}I[h>>1]=(g>>>10|0)- -10304;J[i>>2]=m;c=i+4|0;o=g&1023|-9216;n=2;d=h+2|0;if(d>>>0>=l>>>0)break h;I[h+2>>1]=o;h=h+4|0}J[c>>2]=m;m=e+m|0;i=(n<<2)+i|0;break g}e=J[a+4>>2];H[e+65|0]=1;I[e+116>>1]=o;J[b>>2]=15;i=c;h=d;break c}H[J[a+4>>2]+36|0]=e;J[b>>2]=12;break c}c=0;continue}break}if(!(h>>>0>>0|f>>>0>=j>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=i;J[a+8>>2]=f;J[a+16>>2]=h}function YU(a,b){var c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;J[a+16>>2]=0; -J[a+20>>2]=J[682146];f=a+16|0;a:{b:{c=J[b+16>>2];c:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+8|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break c;a=Z()|0;break b}J[d+8>>2]=0}J[695492]=0;aa(4993,f|0,d+8|0)|0;c=J[695492];J[695492]=0;d:{if((c|0)!=1){c=J[d+8>>2];J[d+8>>2]=0;if(!c)break d;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break d;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break d}break a}a=Z()|0;vc(d+8|0);break b}c=J[a+16>>2];c=J[(c? -c+12|0:2728584)>>2];J[a+24>>2]=0;J[a+20>>2]=c;J[a+28>>2]=J[682146];c=a+24|0;e:{b=J[b+24>>2];f:{g:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break g;a=Z()|0;break f}J[d+12>>2]=0}J[695492]=0;aa(4993,c|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}a= -Z()|0;vc(d+12|0)}sc(c);break b}b=J[a+24>>2];J[a+28>>2]=J[(b?b+12|0:2728584)>>2];bc=d+16|0;return a}sc(f);ba(a|0);B()}ea(0)|0;yc();B()}function LL(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;J[c+12>>2]=J[a>>2];d=J[a+8>>2];fh(c+12|0,d);b=J[c+12>>2];a:{if(d>>>0<=b>>>0)break a;b:{c:{d:{e:{f:{g:{h:{i:{e=K[b|0];switch(e-40|0){case 1:case 2:case 3:case 4:case 5:case 6: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 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 52:break c; -case 7:break d;case 22:break e;case 20:break f;case 0:break g;case 51:case 53:break i;default:break h}}J[c+12>>2]=b+1;break b}if((e|0)!=123)break c;e=p5(c+12|0,d);break a}e=KL(c+12|0,d);break a}if(!(K[b+1|0]!=60|b+1>>>0>=d>>>0)){J[c+12>>2]=b+2;break b}e=o5(c+12|0,d);break a}f=b+1|0;J[c+12>>2]=f;e=3;if(K[f|0]!=62|d>>>0<=f>>>0)break a;J[c+12>>2]=b+2;break b}b=b+1|0}j:{if(b>>>0>=d>>>0)break j;while(1){k:switch(K[b|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break j; -default:break k}b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}J[c+12>>2]=b}e=0}b=J[c+12>>2];if(b>>>0>>0)e=(b|0)==J[a>>2]?3:e;J[a+12>>2]=e;J[a>>2]=b>>>0>d>>>0?d:b;bc=c+16|0}function Rz(a,b,c,d,e){var f=0,g=0;g=bc-256|0;bc=g;J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=c;J[e>>2]=0;a:{if((d|0)==-1){J[e>>2]=b;break a}if((d|0)>=3){pk(g,1,1,d);Kq(a,g,63696)}vU(a,2);J[a+212>>2]=b;J[a+216>>2]=c;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;c=a+212|0;b:{c:{while(1){if(Ak(c,0)){b=J[a+236>>2];if(b)break c; -Ad(a,63394);B()}if(!J[a+228>>2]){b=J[e+8>>2];d=J[e+12>>2];d:{if((b|0)<(d|0))break d;f=b+4|0;J[e+12>>2]=f;b=J[e+16>>2];f=_g(a,f<<2);J[e+16>>2]=f;if(!b)break d;tc(f,b,d<<2);rd(a,b)}b=_g(a,J[a+272>>2]);d=J[e+8>>2]<<2;J[d+J[e+16>>2]>>2]=b;tc(J[d+J[e+16>>2]>>2],J[a+268>>2],J[a+272>>2]);J[e+8>>2]=J[e+8>>2]+1;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b}if(J[a+216>>2])continue;break}while(1){e:{b=Ak(c,4);if(b){if((b|0)!=1)break e;b=J[a+272>>2];a=b-J[a+228>>2]|0;c=(a>>>0<=b>>>0?a:0)+P(b,J[e+8>>2])| -0;break a}if(J[a+228>>2])continue;b=J[e+8>>2];d=J[e+12>>2];f:{if((b|0)<(d|0))break f;f=b+4|0;J[e+12>>2]=f;b=J[e+16>>2];f=_g(a,f<<2);J[e+16>>2]=f;if(!b)break f;tc(f,b,d<<2);rd(a,b)}b=_g(a,J[a+272>>2]);d=J[e+8>>2]<<2;J[d+J[e+16>>2]>>2]=b;tc(J[d+J[e+16>>2]>>2],J[a+268>>2],J[a+272>>2]);J[e+8>>2]=J[e+8>>2]+1;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;continue}break}b=J[a+236>>2];if(b)break b;Ad(a,63394);B()}Ad(a,b);B()}Ad(a,b);B()}bc=g+256|0;return c}function sza(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;f=bc+-64|0;bc=f;e=Qj(f+28|0,J[a>>2]+72|0);J[695492]=0;g=$(5069,e|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((d|0)==1)break f;J[695492]=0;d=J[J[b+12>>2]+((g>>>0)%M[b+8>>2]<<2)>>2];h=J[695492];J[695492]=0;if((h|0)==1)break f;g:{if(d)while(1){if((g|0)==J[d+12>>2]){J[695492]=0;h=aa(5066,d+16|0,e|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;if(h)break g}d=J[d+8>>2];if(d)continue;break}J[695492]=0;d=aa(5268,b|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[d+52>> -2]=0;J[695492]=0;da(5269,c|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[695492]=0;a=f+8|0;J[a>>2]=2386024;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;d=J[695492];J[695492]=0;if((d|0)==1)break d;d=J[a+8>>2];if(d)while(1){J[695492]=0;ca(5259,d+8|0,b|0,c|0);g=J[695492];J[695492]=0;if((g|0)==1)break c;d=J[d>>2];if(d)continue;break}$c(a)}J[e+24>>2]=2381060;J[e>>2]=2381028;a=J[e+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[e+ -28>>2]=0}J[e+16>>2]=2381060;a=J[e+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[e+20>>2]=0}sc(e+8|0);bc=f- -64|0;return}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;$c(a);break a}d=Z()|0}ud(e);ba(d|0);B()}function nma(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;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;a=J[a+12>>2]+2312|0;i=O[b>>3];m=O[c>>3];p=-O[f>>3];o=-O[g>>3];j=O[d>>3];h=O[e>>3];a:{if(j<=0|h<=0)break a;b=J[a+8>>2];c=J[b+4>> -2];b:{c:{if(c){if(!(o<360))break b;d=J[b+20>>2];b=c-1|0;if(K[J[d+(b>>>6&67108860)>>2]+(b&255)|0]&64)break c;break b}if(!(o<360))break b}k=p*3.141592653589793/180;l=He(k);n=xe(k);k=h*.5;r=l;l=j*.5;n=Cf(n/k,r/l);q=xe(n);if(!(t=a,u=l*He(n)+(l+i),v=k+m-k*q,s=J[J[a>>2]>>2],gc[s](t|0,+u,+v)|0))break a}d:{if(R(o)>=360){j=j*.5;i=j+i;k=i-j;l=h*.5;h=l+m;gc[J[J[a>>2]>>2]](a,k,h)|0;o=l*.552;p=o+h;n=j*.552;q=i-n;m=l+h;gc[J[J[a>>2]+8>>2]](a,k,p,q,m,i,m)|0;n=n+i;j=j+i;gc[J[J[a>>2]+8>>2]](a,n,m,j,p,j,h)|0;r=j;m= -h-o;j=h-l;gc[J[J[a>>2]+8>>2]](a,r,m,n,j,i,j)|0;gc[J[J[a>>2]+8>>2]](a,q,j,k,m,k,h)|0;break d}j=j*.5;k=j+i;l=h*.5;m=l+m;h=360-(p+o);i=360-p;if(i<0)while(1){i=i+360;if(i<0)continue;break}if(i>360)while(1){i=i+-360;if(i>360)continue;break}if(h<0)while(1){h=h+360;if(h<0)continue;break}if(h>=360)while(1){h=h+-360;if(h>=360)continue;break}e:{if(!(o>0)){if(h>=i){Wt(a,k,m,j,l,i,h,0);break e}Wt(a,k,m,j,l,i,360,0);Wt(a,k,m,j,l,0,h,0);break e}if(h<=i){Wt(a,k,m,j,l,i,h,1);break e}Wt(a,k,m,j,l,i,0,1);Wt(a,k,m, -j,l,360,h,1)}}}return 0}function GQa(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;f=wc(a,0,256);while(1){d=J[(j<<2)+b>>2]+c|0;k=K[d+5|0];l=K[d+1|0];h=k+l|0;i=K[d+3|0];g=K[d+4|0];m=K[d+2|0];e=g+m|0;o=K[d+6|0];p=K[d|0];d=o+p|0;n=e+d|0;J[f>>2]=((h+i|0)+n<<2)-3584;n=P(n-(i<<2)|0,2896);q=P(d-h|0,7223)+1024|0;d=P(d-e|0,7542);J[f+24>>2]=n+(q-d|0)>>11;e=P(h-e|0,2578);J[f+16>>2]=(e+q|0)+P(h-(i<<1)|0,-5793)>>11;J[f+8>>2]=(n+(d+e|0)|0)+1024>>11;d=m-g|0;h=p-o|0;i=P(d+ -h|0,5027)+1024|0;g=i+P(d,15326)|0;e=d;d=l-k|0;e=P(e+d|0,-11295);J[f+20>>2]=g+e>>11;g=e;e=P(h-d|0,1395);d=P(d+h|0,7663);J[f+12>>2]=((g+e|0)+d|0)+1024>>11;J[f+4>>2]=d+(i-e|0)>>11;f=f+32|0;j=j+1|0;if((j|0)!=7)continue;break}while(1){i=J[a+128>>2];e=J[a+64>>2];f=i+e|0;k=J[a+192>>2];l=J[a>>2];d=k+l|0;g=f+d|0;c=J[a+96>>2];h=J[a+160>>2];j=J[a+32>>2];b=h+j|0;J[a>>2]=P(g+(c+b|0)|0,10700)+16384>>15;g=P(g-(c<<2)|0,3783);m=P(d-b|0,9434)+16384|0;d=P(d-f|0,9850);J[a+192>>2]=g+(m-d|0)>>15;f=P(b-f|0,3367);J[a+128>> -2]=(f+m|0)+P(b-(c<<1)|0,-7566)>>15;J[a+64>>2]=(g+(d+f|0)|0)+16384>>15;b=e-i|0;c=l-k|0;f=P(b+c|0,6565)+16384|0;e=f+P(b,20017)|0;d=b;b=j-h|0;d=P(d+b|0,-14752);J[a+160>>2]=e+d>>15;e=d;d=P(c-b|0,1822);b=P(b+c|0,10009);J[a+96>>2]=((e+d|0)+b|0)+16384>>15;J[a+32>>2]=b+(f-d|0)>>15;a=a+4|0;r=r+1|0;if((r|0)!=7)continue;break}}function wpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;b:{if(!(K[a+301|0]|M[a+272>> -2]<3)){H[a+503|0]=1;f=1029;if(!Dc(a,1029,0,0))break b}if(K[a+305|0])break a;if(K[a+304|0]){Dc(a,1031,0,0);return 1031}c:switch(c-1|0){default:Dc(a,1028,0,0);return 1028;case 0:case 9:break c}H[a+304|0]=1;if(c>>>0>=2){c=K[d+6|0]|K[d+7|0]<<8|(K[d+8|0]<<16|K[d+9|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);h=K[d+1|0];c=K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24);i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}d=K[d|0];d:{c=J[a+216>>2];if(!c)break d;if(gc[c|0](a,d,h,i,g)|0)break d;Dc(a,904,0,0);return 904}f= -0;e:{if(!K[a+114|0])break e;c=gc[J[a+152>>2]](40)|0;if(!c){Dc(a,1,0,0);f=1;break e}J[c+4>>2]=1060;J[c>>2]=1061;f=J[a+700>>2];f:{if(f){J[f+8>>2]=c;break f}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;J[c+36>>2]=g;J[c+32>>2]=i;H[c+29|0]=h;H[c+28|0]=d;f=0}if(f)break b;J[a+520>>2]=J[a+700>>2];f=0;if(!K[a+112|0])break b;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break b;a=J[e>>2];J[a+ -40>>2]=g;J[a+36>>2]=i;H[a+33|0]=h;H[a+32|0]=d;f=0}return f|0}Dc(a,1029,0,0);return 1029}function Ud(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;a:{if(!(J[a+172>>2]==3|J[a+40>>2]!=1))while(1){c=J[a+36>>2];b=J[c+16>>2];while(1){b:{c:{d=K[b|0];if((d|0)==32)break c;d:{if((d-9&255)>>>0>=2){if((d|0)!=13)break d;break c}if((d|0)!=10)break c;J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break b}J[c+16>>2]=b;break a}J[c+32>>2]=J[c+32>>2]+1}f=f+1|0;d=K[b+1|0];b=b+1|0;if(d)continue;break}J[c+16>>2]=b;Cd(c);continue}while(1){d= -J[a+36>>2];b=K[J[d+16>>2]];c=b;e:{f:switch(b|0){case 9:case 10:case 13:case 32:if(J[a+172>>2]==-1)break e;Qd(a);f=f+1|0;continue;case 0:g:{if(J[a+40>>2]<=1){c=0;break g}while(1){if(J[a+172>>2]==5){c=0;break g}while(1){h:{b=J[a+40>>2];if((b|0)<2)break h;i:{j:{k:{if(!J[689531]){d=b-1|0;J[a+40>>2]=d;c=J[a+48>>2];break k}J[e>>2]=b;c=0;gc[J[659549]](J[689514],36109,e);b=J[a+40>>2];if((b|0)<=0)break i;d=b-1|0;J[a+40>>2]=d;c=J[a+48>>2];h=0;g=0;if((b|0)==1)break j}h=J[((b<<2)+c|0)-8>>2];g=d}b=g;J[a+36>>2]= -h;b=(b<<2)+c|0;c=J[b>>2];J[b>>2]=0}dh(c);b=J[a+36>>2];if(K[J[b+16>>2]])break h;if((Cd(b)|0)<=0)continue}break}d=J[a+36>>2];c=K[J[d+16>>2]];if(c)break g;if(J[a+40>>2]>=2)continue;break}c=0}b=K[J[d+16>>2]];break;default:break f}if((b&255)==37)Od(a);b=c}b=b-9|0;if(b>>>0>23|!(1<>2]!=-1)continue;break}}bc=e+16|0;return f}function Dqb(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;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;if(e){q=e-2|0;t=(e|0)==1;while(1){a= -f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];f=a+4|0;g=g+4|0;a:{if(l>>>0>q>>>0)break a;k=l?(l|0)==(q|0)?d:b:c;h=!l&t;if(!h){if(k>>>0<2)break a;m=h?0:f;o=a+2|0;p=a+6|0;h=1;r=k<<1;while(1){i=L[a>>1];b:{if((i|0)==L[m>>1]){I[g>>1]=i;break b}i=K[a|0]|K[a+1|0]<<8;n=i>>>8|0;j=K[m|0]|K[m+1|0]<<8;i=((i<<8|n)&65535)+((k+(P(((j<<8|j>>>8)&65535)-((n|i<<8)&65535)|0,h)<<1)|0)/(r|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;j=L[o>>1];c:{if((j|0)==L[p>>1]){I[i>>1]=j;break c}j=K[o|0]|K[o+1|0]<<8;n=j>>>8|0;s= -K[p|0]|K[p+1|0]<<8;j=((j<<8|n)&65535)+((k+(P(((s<<8|s>>>8)&65535)-((n|j<<8)&65535)|0,h)<<1)|0)/(r|0)|0)&65535;j=j<<8|j>>>8;H[i|0]=j;H[i+1|0]=j>>>8}g=g+4|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break a}if(k>>>0<2)break a;h=k-1|0;m=h&3;if(k-2>>>0>=3){k=h&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((k|0)!=(h|0))continue;break}}h=0;if(!m)break a;while(1){I[g>> -1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;h=h+1|0;if((m|0)!=(h|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function Aia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;a:{b:{if(!J[a+64>>2])break b;if(!(K[a+92|0]&16)){J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0;c=J[a+52>>2];c:{if(c>>>0>=9){if(K[a+98|0]){f=c;c=J[a+32>>2];J[a+28>>2]=(f+c|0)-1;J[a+20>>2]=c;J[a+24>>2]=c;break c}c=J[a+56>>2];J[a+28>>2]=(c+J[a+60>>2]|0)-1;J[a+20>>2]=c;J[a+24>>2]=c;break c}J[a+28>>2]=0;J[a+ -20>>2]=0;J[a+24>>2]=0}J[a+92>>2]=16}g=J[a+20>>2];h=J[a+28>>2];if((b|0)!=-1){if(!J[a+24>>2]){J[a+28>>2]=d+16;c=d+15|0;J[a+20>>2]=c;J[a+24>>2]=c}H[J[a+24>>2]]=b;J[a+24>>2]=J[a+24>>2]+1}e=J[a+24>>2];c=J[a+20>>2];if((e|0)!=(c|0)){d:{if(K[a+98|0]){f=c;c=e-c|0;if((Td(f,1,c,J[a+64>>2])|0)!=(c|0))break b;break d}J[d+8>>2]=J[a+32>>2];i=a+72|0;while(1){c=J[a+68>>2];if(c){e=J[a+32>>2];c=gc[J[J[c>>2]+12>>2]](c,i,J[a+20>>2],J[a+24>>2],d+4|0,e,e+J[a+52>>2]|0,d+8|0)|0;if(J[a+20>>2]==J[d+4>>2])break b;if((c|0)== -3){c=J[a+24>>2]-J[a+20>>2]|0;if((Td(J[a+20>>2],1,c,J[a+64>>2])|0)!=(c|0))break b;break d}if(c>>>0>1)break b;f=J[a+32>>2];e=J[d+8>>2]-f|0;if((Td(f,1,e,J[a+64>>2])|0)!=(e|0))break b;if((c|0)!=1)break d;c=J[d+4>>2];J[a+28>>2]=J[a+24>>2];J[a+20>>2]=c;J[a+24>>2]=c;J[a+24>>2]=J[a+24>>2]+(J[a+28>>2]-J[a+20>>2]|0);continue}break}Ju();B()}J[a+28>>2]=h;J[a+20>>2]=g;J[a+24>>2]=g}a=(b|0)!=-1?b:0;break a}a=-1}bc=d+16|0;return a|0}function egb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(M[b+160>>2]>> -0)ge(b,8);g=K[a+15|0]|(K[a+13|0]<<16|K[a+12|0]<<24|K[a+14|0]<<8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!(c>>>0<16|c>>>0>J[b+160>>2]-a>>>0))if((c-16>>>0)/12>>>0>=g>>>0)break a;ge(b,8)}b:{if(!g)break b;f=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280| -d>>>24);if(c>>>0>>0)ge(b,8);h=1;c:{if(J[b+164>>2]<=0)break c;e=J[b+172>>2];d=c-d|0;if(e>>>0>=d>>>0)if(e-d>>>0>(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0)break c;ge(b,16)}if((g|0)==1)break b;a=a+28|0;while(1){f=c;d=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(c>>>0>>0)ge(b,8);if(e>>>0<=f>>>0)ge(b,8); -d:{if(J[b+164>>2]<=0)break d;f=J[b+172>>2];e=c-e|0;if(f>>>0>=e>>>0)if(f-e>>>0>(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)break d;ge(b,16)}a=a+12|0;h=h+1|0;if((h|0)!=(g|0))continue;break}}return 0}function ar(a,b,c){var d=0,e=0,f=0;a:{d=J[a>>2];e=K[d|0];if((e-48&255)>>>0<10|((e&223)-65&255)>>>0<26)break a;b:{c:switch(e-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break a;case 4:break c;default:break b}d:{f= -K[d+1|0];if((f-48&255)>>>0<10)break d;switch(f-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break d;default:break b}}f=K[d+2|0];if((f-48&255)>>>0<10)break a;switch(f-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break a;default:break b}}return!c}while(1){e:{f:{g:{if((e-48&255)>>>0<10|((e&-33)-65&255)>>>0<26)break g;h:switch(e-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break g; -case 4:break h;default:break e}i:{c=K[d+1|0];if((c-48&255)>>>0<10)break i;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i;default:break e}}c=K[d+2|0];if((c-48&255)>>>0<10|(c-97&255)>>>0<6)break g;if((b|0)==37)break e;if((c-71&255)>>>0>=250)break f;break e}if((b&255)==(e|0))break e}d=((e|0)==37?3:1)+d|0;e=K[d|0];continue}break}J[a>>2]=d;return 0}function osa(a,b,c,d,e,f,g,h,i){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;var j= -0,k=0,l=0;k=(g|0)/8|0;a:{if(!f)break a;f=f-1|0;j=J[a+60>>2];if(e>>>0>=8){l=(e&7|8)-9|0;while(1){a=f;g=e;while(1){d=i;c=b;f=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[f>>2];J[b+4>>2]=J[f+4>>2];J[b+8>>2]=J[f+8>>2];J[b+12>>2]=J[f+12>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=J[f+20>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=J[f+28>>2];b=b+32|0;i=i+1|0;g=g-8|0;if(g>>>0>7)continue;break}b:{if(g){g=2;i=J[(K[i|0]<<2)+j>>2];c:switch(l|0){case 6:J[c+32>>2]=J[i>>2];b=c+36|0;i=i+4|0;case 5:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 4:J[b>> -2]=J[i>>2];b=b+4|0;i=i+4|0;case 3:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 2:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 1:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;break;case 0:break c;default:break b}J[b>>2]=J[i>>2];b=b+4|0;break b}g=1}f=a-1|0;i=(d+g|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}break a}if(!e)break a;c=e-1|0;while(1){a=f;f=J[(K[i|0]<<2)+j>>2];d:switch(c|0){case 6:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 5:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 4:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 3:J[b>>2]=J[f>>2];b=b+4|0;f= -f+4|0;case 2:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 1:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 0:J[b>>2]=J[f>>2];b=b+4|0;break;default:break d}f=a-1|0;i=(i+1|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}}}function ata(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;k=(g|0)/8|0;a:{if(!f)break a;f=f-1|0;j=J[a+64>>2];if(e>>>0>=8){l=(e&7|8)-9|0;while(1){a=f;g=e;while(1){d=i;c=b;f=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[f>>2];J[b+4>>2]=J[f+4>>2];J[b+8>>2]=J[f+8>>2];J[b+12>>2]=J[f+12>> -2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=J[f+20>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=J[f+28>>2];b=b+32|0;i=i+1|0;g=g-8|0;if(g>>>0>7)continue;break}b:{if(g){g=2;i=J[(K[i|0]<<2)+j>>2];c:switch(l|0){case 6:J[c+32>>2]=J[i>>2];b=c+36|0;i=i+4|0;case 5:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 4:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 3:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 2:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 1:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;break;case 0:break c;default:break b}J[b>>2]=J[i>>2];b=b+4|0;break b}g=1}f= -a-1|0;i=(d+g|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}break a}if(!e)break a;c=e-1|0;while(1){a=f;f=J[(K[i|0]<<2)+j>>2];d:switch(c|0){case 6:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 5:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 4:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 3:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 2:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 1:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 0:J[b>>2]=J[f>>2];b=b+4|0;break;default:break d}f=a-1|0;i=(i+1|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}}}function qm(a){var b=0,c= -0;c=bc-256|0;bc=c;a:{b:{c:{b=Ac(a);if(!b){d:{e:{f:{g:{h:{i:{j:{a=Ac(a);if((a|0)<=1281845357){if((a|0)<=1148349293){if((a|0)<=1131180575){if((a|0)==1128428142)break j;if((a|0)!=1128555623)break a;b=8;break b}if((a|0)==1131180576)break d;if((a|0)!=1147564654)break a;b=17;break b}if((a|0)<=1210064927){if((a|0)==1148349294)break c;if((a|0)!=1148415094)break a;b=1;break b}if((a|0)==1210064928)break f;if((a|0)!=1215456332)break a;b=12;break b}k:{if((a|0)<=1333162603){if((a|0)<=1298953327){if((a|0)==1281845358)break i; -if((a|0)!=1282240115)break a;b=22;break b}if((a|0)==1298953328)break k;b=0;if((a|0)==1316121964)break b;break a}if((a|0)<=1399223371){if((a|0)==1333162604)break h;if((a|0)!=1399026286)break a;b=7;break b}if((a|0)==1399223372)break g;if((a|0)==1400140404)break e;if((a|0)!=1482910837)break a;b=18;break b}b=3;break b}b=4;break b}b=6;break b}b=10;break b}b=11;break b}b=19;break b}b=20;break b}b=21;break b}af(a,c,b);H[c+b|0]=0;b=5;if(!Wc(c,225120,11))break b;b=9;if(!Wc(c,225145,12))break b;b=13;if(!Wc(c, -225171,11))break b;b=14;if(!Wc(c,225182,12))break b;b=15;if(!Wc(c,225194,9))break b;b=16;if(J[c>>2]==1685217640&J[c+4>>2]==7891277)break b;fa(219530,219843,800,225087);B()}b=2}bc=c+256|0;return b}fa(219530,219843,779,225087);B()}function qU(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=bc-16|0;bc=f;i=b+8|0;a:{if(J[b+8>>2]){ei(f+8|0,b,i);break a}J[f+8>>2]=0;md(f+8|0,0)}b:{g=J[f+8>>2];c:{if(!g)break c;k=J[g+8>>2];J[695492]=0;J[f+8>>2]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;j=J[695492]; -J[695492]=0;if((j|0)==1)break b;if(h)break c;J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break b}d:{if(J[i>>2]){ei(f+12|0,b,i);break d}J[f+12>>2]=0;md(f+12|0,0)}g=J[f+12>>2];e:{if(!g){h=0;break e}h=J[g+12>>2];J[695492]=0;J[f+12>>2]=0;j=J[g+4>>2]-1|0;J[g+4>>2]=j;l=J[695492];J[695492]=0;if((l|0)==1)break b;if(j)break e;J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)==1)break b}f:{if(J[i>>2]){uU(f+4|0,b,i);break f}J[f+4>>2]=0;md(f+4|0,0)}g:{h:{i:{if(!k|!h)break i;b=J[f+4>>2]; -if(!b|J[b+72>>2]!=(k|0)|J[b+76>>2]!=(h|0))break i;J[695492]=0;oa(5357,a|0,b|0,c|0,d|0,e|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)break h;break g}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g}a=J[f+4>>2];J[f+4>>2]=0;j:{if(!a)break j;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break j;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}bc=f+16|0;return}a=Z()|0;vc(f+4|0);ba(a|0);B()}ea(0)|0;yc();B()}function Ft(a, -b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!a|!b)break a;g=K[b|0];e=P(g,30);if(g){f=b;while(1){e=(g<<24>>24)+((e<<5)+(e>>>3|0)|0)^e;g=K[f+1|0];f=f+1|0;if(g)continue;break}}e=(e<<5)+(e>>>3|0)^e;b:{if(!c)break b;g=K[c|0];if(!g)break b;f=c;while(1){e=((g<<24>>24)+(e>>>3|0)|0)+(e<<5)^e;g=K[f+1|0];f=f+1|0;if(g)continue;break}}f=J[a>>2];i=(((e<<5)+(e>>>3|0)^e)>>>0)%M[a+4>>2]|0;if(!J[(f+P(i,24)|0)+20>>2]|!f)break a;e=f+P(i,24)|0;while(1){f=e;c:{j=J[e+4>>2];if((j|0)!=(b|0)){g=b;e=j;if(!e)break c;while(1){h= -K[e|0];if((h|0)!=K[g|0])break c;g=g+1|0;e=e+1|0;if(h)continue;break}}e=J[f+8>>2];if((e|0)!=(c|0)){if(!c)break c;g=c;if(!e)break c;while(1){h=K[e|0];if((h|0)!=K[g|0])break c;g=g+1|0;e=e+1|0;if(h)continue;break}}if(J[f+12>>2])break c;d:{if(!d)break d;b=J[f+16>>2];if(!b)break d;gc[d|0](b,j)}J[f+16>>2]=0;e:{if(J[a+12>>2])break e;b=J[f+4>>2];if(b)gc[J[659451]](b);b=J[f+8>>2];if(b)gc[J[659451]](b);b=J[f+12>>2];if(!b)break e;gc[J[659451]](b)}d=J[f>>2];f:{if(k){J[k>>2]=d;gc[J[659451]](f);break f}if(!d){J[f+ -20>>2]=0;break f}b=J[d+4>>2];c=J[a>>2]+P(i,24)|0;J[c>>2]=J[d>>2];J[c+4>>2]=b;b=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=b;b=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=b;gc[J[659451]](d)}J[a+8>>2]=J[a+8>>2]-1;return}k=f;e=J[f>>2];if(e)continue;break}}}function BN(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;a:{c=J[a+4>>2];if(!c)break a;b:{if((P(J[c+4>>2],J[c>>2])|0)<=0)break b;a=J[c+8>>2];if(!a)break b;while(1){c:{if(!a)break c;d:{g=P(k,840)+a|0;if(J[g+16>>2]<=0)break d;a=J[g+20>>2];if(!a)break d; -i=0;while(1){e:{if(!a)break e;f:{e=(i<<5)+a|0;b=J[e+16>>2];if((b|0)<=0)break f;a=J[e+20>>2];if(!a)break f;j=0;while(1){g:{if(!a)break g;f=P(j,124)+a|0;if(J[f+24>>2]<=0)break g;h=0;while(1){h:{if((P(J[f+16>>2],J[f+20>>2])|0)<=0)break h;a=0;l=(h<<5)+f|0;b=J[l+48>>2];if(!b)break h;while(1){i:{if(!b)break i;b=P(a,36)+b|0;d=J[b+24>>2];if(d){qc(d);J[b+24>>2]=0}d=J[b+32>>2];if(d){m=J[d+12>>2];if(m)qc(m);qc(d)}b=J[b+28>>2];if(!b)break i;d=J[b+12>>2];if(d)qc(d);qc(b)}a=a+1|0;if((a|0)>=(P(J[f+16>>2],J[f+20>> -2])|0))break h;b=J[l+48>>2];continue}}a=(h<<5)+f|0;b=J[a+48>>2];if(b){qc(b);J[a+48>>2]=0}h=h+1|0;if((h|0)>2])continue;break}b=J[e+16>>2]}j=j+1|0;if((j|0)>=(b|0))break f;a=J[e+20>>2];continue}}a=J[e+20>>2];if(a){qc(a);J[e+20>>2]=0}a=J[e+24>>2];if(!a)break e;qc(a);J[e+24>>2]=0}i=i+1|0;if((i|0)>=J[g+16>>2])break d;a=J[g+20>>2];continue}}a=J[g+20>>2];if(!a)break c;qc(a);J[g+20>>2]=0}k=k+1|0;if((k|0)>=(P(J[c+4>>2],J[c>>2])|0))break b;a=J[c+8>>2];continue}}a=J[c+8>>2];if(!a)break a;qc(a);J[c+8>> -2]=0}}function UHa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];d=(J[a+4>>2]-c|0)/56|0;e=d+1|0;if(e>>>0<76695845){c=(J[a+8>>2]-c|0)/56|0;f=c<<1;e=c>>>0>=38347922?76695844:e>>>0>>0?f:e;if(e){if(e>>>0>=76695845)break c;g=rc(P(e,56))}c=P(d,56)+g|0;d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;d=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d; -d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;d=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=d;e=P(e,56)+g|0;g=c+56|0;b=J[a+4>>2];d=J[a>>2];if((b|0)==(d|0))break b;while(1){b=b-56|0;f=J[b+4>>2];c=c-56|0;J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;f=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=f;f=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=f;f=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]= -J[b+16>>2];J[c+20>>2]=f;if((b|0)!=(d|0))continue;break}J[a+8>>2]=e;b=J[a+4>>2];J[a+4>>2]=g;e=J[a>>2];J[a>>2]=c;if((b|0)==(e|0))break a;while(1){a=b-56|0;if(H[b-45|0]<0)qc(J[a>>2]);b=a;if((e|0)!=(b|0))continue;break}b=e;break a}sX();B()}Sd();B()}J[a+8>>2]=e;J[a+4>>2]=g;J[a>>2]=c}if(b)qc(b)}function nua(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a=L[a+26>>1];d=P(a,g);j=e>>>0<8;h=h<<2;while(1){g=e;if(!j)while(1){J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216; -c=a+i|0;J[b+4>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+8>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+12>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+16>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+20>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+24>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+28>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;b=b+32|0;i=a+c|0;g=g-8|0;if(g>>>0>7)continue;break}a:switch(g-1|0){case 6:J[b>> -2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 4:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;break; -default:break a}i=d+i|0;b=b+h|0;f=f-1|0;if(f)continue;break}}}function qB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=bc-128|0;bc=h;a:{if(!c)break a;e=J[c+8>>2];if(!e)break a;b:{d=J[c+36>>2];c:{d:{if(!d)break d;f=J[d+12>>2];if(!f)break d;if(Ec(e,15571))break d;if(!Ec(f,9668))break c}if(!a|!(J[a+44>>2]|J[a+48>>2])&J[a+4>>2]!=13)break a;if(J[a+4>>2]==13){g=1;if(Eg(15571,e))break a;if(!Eg(14095,J[c+8>>2]))break b;if(!b)break a;if(Eg(J[b+8>>2],19863))break a;break b}if(!b)break a;e:{f:{e=J[b+36>>2];if(!e)break f; -e=J[e+12>>2];if(!e)break f;g=Dt(J[b+8>>2],e,h- -64|0,50);d=J[c+36>>2];break e}g=J[b+8>>2]}e=J[c+8>>2];g:{if(!d)break g;e=J[c+8>>2];d=J[d+12>>2];if(!d)break g;e=Dt(e,d,h,50)}d=0;h:{if(!g|!e)break h;d=J[a+44>>2];J[h+124>>2]=0;i:{if(!d)break i;d=J[d+44>>2];if(!d)break i;f=sp(e,h+124|0);j:{if(f){d=tf(d,f,J[h+124>>2],g);i=J[h+124>>2];if(i)gc[J[659451]](i);gc[J[659451]](f);break j}d=tf(d,e,0,g)}if(d)break h}f=J[a+48>>2];if(!f){d=0;break h}d=0;a=bc-16|0;bc=a;J[a+12>>2]=0;k:{if(!f)break k;f=J[f+44>>2];if(!f)break k; -i=sp(e,a+12|0);if(i){d=tf(f,i,J[a+12>>2],g);f=J[a+12>>2];if(f)gc[J[659451]](f);gc[J[659451]](i);break k}d=tf(f,e,0,g)}bc=a+16|0}if(!((e|0)==(h|0)|(e|0)==J[c+8>>2]))gc[J[659451]](e);if(!((h- -64|0)==(g|0)|J[b+8>>2]==(g|0)))gc[J[659451]](g);if(!d|J[d+40>>2]!=2)break b}g=1;break a}g=0}bc=h+128|0;return g}function wka(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a>>2]=2439740;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+ -28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=nL(a- -64|0);J[a+480>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+448>>2]=0;J[a+452>>2]=1072693248;J[a+436>>2]=0;J[a+440>>2]=255;J[a+432>>2]=340424;J[a+456>>2]=0;J[a+460>>2]=0;J[a+464>>2]=0;J[a+488>>2]=0;J[a+492>>2]=1071644672;J[695492]=0;mz(a+496|0);c=J[695492];J[695492]=0;if((c|0)==1){c=Z()|0;J[a+432>>2]=340424;d=J[a+460>>2];if(d){qc(d);J[a+460>>2]=0}ln(b);ba(c|0);B()}J[a+576>>2]=0;J[a+580>>2]=0;H[a+603|0]=0;H[a+604|0]=0;H[a+605|0]=0;H[a+606|0]=0;H[a+607|0]=0;H[a+608| -0]=0;H[a+609|0]=0;H[a+610|0]=0;H[a+602|0]=1;I[a+600>>1]=257;J[a+592>>2]=0;J[a+596>>2]=0;J[a+56>>2]=2;J[a+584>>2]=0;H[a+611|0]=0;H[a+612|0]=0;H[a+613|0]=0;H[a+614|0]=0;H[a+615|0]=0;H[a+616|0]=0;H[a+617|0]=0;H[a+618|0]=0;H[a+619|0]=0;H[a+620|0]=0;H[a+621|0]=0;H[a+622|0]=0;H[a+623|0]=0;H[a+624|0]=0;H[a+625|0]=0;H[a+626|0]=0;H[a+627|0]=0;H[a+628|0]=0;H[a+629|0]=0;H[a+630|0]=0;H[a+631|0]=0;H[a+632|0]=0;H[a+633|0]=0;H[a+634|0]=0;H[a+632|0]=0;H[a+633|0]=0;H[a+634|0]=0;H[a+635|0]=0;H[a+636|0]=0;H[a+637|0]= -0;H[a+638|0]=0;H[a+639|0]=0;b=J[682147];J[a+640>>2]=b;J[682147]=b+1024;return a|0}function mB(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=J[a>>2];a:{if(J[e+72>>2]==J[e+68>>2])break a;e=J[a+232>>2];if(!e)break a;b:switch(J[e>>2]+2|0){case 0:case 3:break a;default:break b}if(!((c|0)<=0|d)){d=0;while(1){e=K[b+d|0]-9|0;if(e>>>0>23|!(1<>2];if(!b)return 0;c:{e=J[a+8>>2];if(!e)break c;f=1;c=J[b+8>>2];b=bc-16|0;bc=b;h=-1;d:{if(!e)break d;d=J[e+44>> -2];if(!d)break d;J[b+8>>2]=0;if(c){d=J[d+40>>2];e:{if(d){g=sp(c,b+8|0);d=bn(d,g?g:c,J[b+8>>2]);i=J[b+8>>2];if(i)gc[J[659451]](i);if(g)gc[J[659451]](g);if(d)break e}d=J[e+48>>2];if(!d)break d;J[b+12>>2]=0;d=J[d+40>>2];if(!d)break d;e=sp(c,b+12|0);d=bn(d,e?e:c,J[b+12>>2]);c=J[b+12>>2];if(c)gc[J[659451]](c);if(e)gc[J[659451]](e);if(!d)break d}h=1;c=J[d+36>>2];if(c>>>0>4)break d;h=J[(c<<2)+774016>>2]}}bc=b+16|0;f:switch(h|0){case 0:break a;case 1:break f;default:break c}return 0}d=J[J[a+36>>2]+16>>2]; -c=K[d|0];if(!((c|0)==60|(c|0)==13))return 0;b=J[a+52>>2];if(!(J[b+12>>2]|(c|0)!=60|K[d+1|0]!=47))return 0;c=0;c=!b|J[b+4>>2]==18?c:J[b+16>>2];g:{if(!c){a=J[a+52>>2];if(J[a+4>>2]==1)break g;f=0;if(!J[a+40>>2])break g;break a}if(c?J[c+4>>2]==3:0)return 0;a=J[J[a+52>>2]+12>>2];if(!a)break g;f=0;if(a?J[a+4>>2]==3:0)break a}f=1}return f}function Kp(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;h=bc+-64|0;bc=h;i=a+11724|0;GL(a,J[a+11720>>2],J[i>>2],b,c,h+20|0,h+16|0);GL(a,d,e,f,g,h+12|0,h+ -8|0);j=J[a+4>>2];J[j+16>>2]=J[j+16>>2]+(P(e-c>>16,b>>16)-P(d-b>>16,c>>16)|0);j=J[h+20>>2];l=j+J[a+11720>>2]|0;J[h>>2]=l;k=J[h+16>>2];i=k+J[i>>2]|0;J[h+4>>2]=i;n=J[h+8>>2];o=J[h+12>>2];c=c+k|0;j=b+j|0;if(K[a+11667|0]){J[h+56>>2]=1;b=J[a+11732>>2];J[h+24>>2]=J[a+11728>>2];J[h+28>>2]=b;if(!K[a+20|0])du(a,J[a+11736>>2],J[a+11740>>2]);k=Pc(J[a+11644>>2],l);m=Pc(J[a+11648>>2],i);b=pm(a+8|0,i);k=k+m|0;p=h,q=(Pc(J[J[a>>2]+64>>2],k)+Pc(J[J[a>>2]+72>>2],b)|0)+J[a+11656>>2]|0,J[p+32>>2]=q;p=h,q=(Pc(J[J[a>>2]+ -68>>2],k)+Pc(J[J[a>>2]+76>>2],b)|0)+J[a+11660>>2]|0,J[p+36>>2]=q;b=J[a+4>>2];gc[J[b>>2]](b,h+24|0);b=J[h+32>>2];k=J[h+36>>2];m=l;l=0;J[a+11704>>2]=m|l;J[a+11708>>2]=i;J[a+11728>>2]=b;J[a+11732>>2]=k;J[a+11712>>2]=j|l;J[a+11716>>2]=c;H[a+11664|0]=1;H[a+11667|0]=0}if(K[a+11744|0])lx(a,a+8|0,h,j,c,0);J[a+11748>>2]=4;H[a+11744|0]=1;b=J[h>>2];i=J[h+4>>2];J[a+11780>>2]=g+n;J[a+11776>>2]=f+o;J[a+11772>>2]=e+n;J[a+11768>>2]=d+o;J[a+11752>>2]=b;J[a+11756>>2]=i;J[a+11760>>2]=j;J[a+11764>>2]=c;b=J[a+11676>> -2];if(K[b+5|0])kx(a+8|0,J[a+11668>>2],J[a+11672>>2],b,J[a+11680>>2],0);J[a+11724>>2]=g;J[a+11720>>2]=f;bc=h- -64|0}function sw(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){b=J[a+76>>2];if(b)gl(b);c=J[a+20>>2];a:{if(!c)break a;if(J[a+88>>2]==J[c+296>>2])J[a+88>>2]=0;d=J[c+8>>2];if(d){if(!J[a+80>>2]){b:{if(!J[689540])break b;b=J[689538];if(!b)break b;gc[b|0](d)}b=J[d+64>>2];if(b)fo(b,3161);J[d+64>>2]=0;b=J[d+68>>2];if(b)C$(b);J[d+68>>2]=0;b=J[d+48>>2];c=J[d+44>>2];if(!(!b|(c|0)==(b|0))){zj(b);J[d+48>>2]=0;fr(b)}if(c){zj(J[d+ -44>>2]);J[d+44>>2]=0;fr(c)}b=J[d+12>>2];if(b)rB(a,b);b=J[d+56>>2];if(b)gc[J[659451]](b);b=J[d+8>>2];if(b)gc[J[659451]](b);b=J[d+60>>2];if(b)gc[J[659451]](b);c=J[d+52>>2];if(c)while(1){b=J[c>>2];e=J[c+8>>2];if(e)gc[J[659451]](e);e=J[c+12>>2];if(e)gc[J[659451]](e);gc[J[659451]](c);c=b;if(b)continue;break}b=J[d+72>>2];if(b)gc[J[659451]](b);b=J[d+80>>2];if(b)dn(b);gc[J[659451]](d);c=J[a+20>>2]}J[c+8>>2]=0}b=J[c+160>>2];if(!(!b|J[c+156>>2]<=0)){gc[J[659451]](b);c=J[a+20>>2];J[c+156>>2]=0;J[c+160>>2]=0}if(!(K[a+ -12|0]&2))break a;yj(c)}b=J[a+24>>2];if(b)gc[J[659451]](b);b=J[a+28>>2];if(!(!b|!(H[a+12|0]&1)))cn(b);e=J[a+84>>2];if(e){b=J[e+12>>2];c:{d:{e:{if((b|0)==3){c=J[e+16>>2];if(!c)break e;break d}if((b|0)==2)break c}c=J[e>>2];if(!c)break c}gc[J[659451]](c)}gc[J[659451]](e)}b=J[a+104>>2];if(b)gc[J[659451]](b);b=J[a+88>>2];if(b)dn(b);gc[J[659451]](a)}}function XCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-48|0;bc=d;c=J[a+32>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;e=J[a+32>>2]}J[695492]=0;J[d+44>>2]=e;c=d+20|0;ia(5044, -c|0,d+44|0,1,1);e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((e|0)!=1){J[695492]=0;aa(4993,a+48|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break i;c=J[d+20>>2];J[d+20>>2]=0;j:{if(!c)break j;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break j;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=J[d+44>>2];J[d+44>>2]=0;k:{if(!c)break k;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break k; -J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}b=(b|0)<=10?10:b;if(b>>>0<4097)break b;a=kv(d+4|0,4096);J[695492]=0;ca(5048,d+12|0,2378617,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break g;b=J[d+12>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;c=ja(5018,d+20|0,b|0,2373971,931,2384356,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;B()}a=Z()|0;break h}a=Z()|0;vc(d+20|0)}vc(d+44|0);ba(a|0);B()}b=Z()|0;break c}b=Z()| -0;break d}b=Z()|0;Fc(c)}sc(d+12|0)}sc(a);ba(b|0);B()}J[a+20>>2]=b<<10;bc=d+48|0;return}ea(0)|0;yc();B()}function S5a(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;d=bc-32|0;bc=d;a:{b:{c:{d:{e:{if(J[b+216>>2]){J[b+192>>2]=0;c=0;break e}H1(b);if(!J[b+216>>2])break d;c=J[b+192>>2]}if(c>>>0>=M[b+196>>2])break a;J[b+192>>2]=c+1;e=J[J[b+208>>2]+(c>>>4&268435452)>>2]+((c&63)<<4)|0;O[d+16>>3]=O[e>>3];O[d+8>>3]=O[e+8>>3];c=c?2:1;break c}c=jo(b,d+16|0,d+8|0);if(!c)break a;if(c>>>0>14)break b}h= -J[a>>2];e=1;f:{if(!h)break f;e=h-1|0;h=e>>>8<<2;e=e&255;i=K[J[h+J[a+16>>2]>>2]+e|0];if(i-1>>>0<=13){e=J[h+J[a+12>>2]>>2]+(e<<4)|0;g=O[d+16>>3];f=O[e>>3]-g;k=f*f;f=O[d+8>>3];j=O[e+8>>3]-f;if(!(Y(k+j*j)>1E-14))break b;J[d+28>>2]=0;l=Ke(a,d+28|0),m=(c|0)==1?2:c,H[l|0]=m;c=J[d+28>>2];O[c+8>>3]=f;O[c>>3]=g;J[a>>2]=J[a>>2]+1;break b}e=1;if(!i)break f;e=(c|0)==1?2:c}g=O[d+16>>3];f=O[d+8>>3];J[d+28>>2]=0;l=Ke(a,d+28|0),m=e,H[l|0]=m;c=J[d+28>>2];O[c+8>>3]=f;O[c>>3]=g;J[a>>2]=J[a>>2]+1}while(1){g:{if(J[b+216>> -2]){c=J[b+192>>2];if(c>>>0>=M[b+196>>2])break a;J[b+192>>2]=c+1;e=J[J[b+208>>2]+(c>>>4&268435452)>>2]+((c&63)<<4)|0;g=O[e>>3];O[d+16>>3]=g;f=O[e+8>>3];O[d+8>>3]=f;c=c?2:1;break g}c=jo(b,d+16|0,d+8|0);if(!c)break a;f=O[d+8>>3];g=O[d+16>>3]}J[d+28>>2]=0;l=Ke(a,d+28|0),m=(c|0)==1?2:c,H[l|0]=m;c=J[d+28>>2];O[c+8>>3]=f;O[c>>3]=g;J[a>>2]=J[a>>2]+1;continue}}bc=d+32|0}function AW(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(a){b=J[a+20>>2];if(b){f=J[b>>2];if(f){e=J[f+20>>2];if(J[f+16>>2]){h=H[a+40| -0]&1?4694:4695;while(1){d=J[e+28>>2];if(d){b=J[e+32>>2];if(b>>>0>=152){k=(b>>>0)/152|0;i=0;while(1){b=J[d+48>>2];if(b){c=J[d+52>>2];if(c>>>0>=40){g=(c>>>0)/40|0;c=0;while(1){Ts(J[b+32>>2]);J[b+32>>2]=0;Ts(J[b+36>>2]);J[b+36>>2]=0;gc[h|0](b);b=b+40|0;c=c+1|0;if((g|0)!=(c|0))continue;break}b=J[d+48>>2]}qc(b);J[d+48>>2]=0}b=J[d+84>>2];if(b){c=J[d+88>>2];if(c>>>0>=40){g=(c>>>0)/40|0;c=0;while(1){Ts(J[b+32>>2]);J[b+32>>2]=0;Ts(J[b+36>>2]);J[b+36>>2]=0;gc[h|0](b);b=b+40|0;c=c+1|0;if((g|0)!=(c|0))continue; -break}b=J[d+84>>2]}qc(b);J[d+84>>2]=0}b=J[d+120>>2];if(b){c=J[d+124>>2];if(c>>>0>=40){g=(c>>>0)/40|0;c=0;while(1){Ts(J[b+32>>2]);J[b+32>>2]=0;Ts(J[b+36>>2]);J[b+36>>2]=0;gc[h|0](b);b=b+40|0;c=c+1|0;if((g|0)!=(c|0))continue;break}b=J[d+120>>2]}qc(b);J[d+120>>2]=0}d=d+152|0;i=i+1|0;if((k|0)!=(i|0))continue;break}d=J[e+28>>2]}qc(d);J[e+28>>2]=0}a:{if(!J[e+40>>2])break a;b=J[e+36>>2];if(!b)break a;qc(b);J[e+44>>2]=0;J[e+48>>2]=0;J[e+36>>2]=0;J[e+40>>2]=0}qc(J[e+52>>2]);e=e+76|0;j=j+1|0;if(j>>>0> -2])continue;break}e=J[f+20>>2]}qc(e);J[f+20>>2]=0;qc(J[J[a+20>>2]>>2]);b=J[a+20>>2];J[b>>2]=0}qc(b);J[a+20>>2]=0}qc(J[a+68>>2]);qc(a)}}function de(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;e=2147483632;J[b>>2]=2147483632;g=J[b+8>>2];J[b+16>>2]=g;f=J[b+20>>2];J[b+28>>2]=f;I[f+2>>1]=0;c=J[a+120>>2];a:{while(1){o=c;l=J[a+60>>2];if(l>>>0<=c>>>0)break a;m=J[J[a+72>>2]+(c>>>6&67108860)>>2];n=c&255;c=m+P(n,12)|0;i=J[c+8>>2];j=J[c+4>>2];while(1){k=J[J[a+52>>2]+(i>>>8&16777212)>>2]+P(i& -1023,12)|0;d=J[k+8>>2];b:{if((d|0)>=0){c=0;if(d>>>0>=M[a>>2])break b;c=J[J[a+12>>2]+(d>>>10&4194300)>>2]+(d&4095)|0;break b}d=d^-1;c=0;if(d>>>0>=M[a+20>>2])break b;c=J[(J[J[a+32>>2]+(d>>>4&268435452)>>2]+((d&63)<<3)|0)+4>>2]}h=J[k>>2];i=i+1|0;d=J[k+4>>2];c:{if((d|0)<0){c=K[c|0];d:{e:{if((e+1|0)!=(h|0))break e;e=I[f+2>>1];if((c|0)!=K[J[f+4>>2]]|(e|0)>=0)break e;I[f+2>>1]=d+e;break d}H[g|0]=c;c=J[b+28>>2];f=c+8|0;J[b+28>>2]=f;e=J[b+16>>2];g=e+1|0;J[b+16>>2]=g;I[c+10>>1]=d;I[c+8>>1]=h;J[c+12>>2]=e}e= -(d^-1)+h|0;break c}tc(g,c,d);c=J[b+28>>2];f:{g:{if((J[b>>2]+1|0)!=(h|0))break g;f=I[c+2>>1];if((f|0)<=0)break g;I[c+2>>1]=d+f;e=J[b+16>>2];f=c;break f}f=c+8|0;J[b+28>>2]=f;e=J[b+16>>2];I[c+10>>1]=d;I[c+8>>1]=h;J[c+12>>2]=e}g=d+e|0;J[b+16>>2]=g;e=(d+h|0)-1|0}J[b>>2]=e;j=j-1|0;if(j)continue;break}c=J[a+120>>2]+1|0;J[a+120>>2]=c;if(J[b+20>>2]==(f|0))continue;break}J[b+4>>2]=J[P(n,12)+m>>2]}return o>>>0>>0}function m7(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,p=0,q=0,r=0,s=0,t=0,u=0;l=d- -1|0;a:{b:{c:{if(!f){h=J[c>>2];f=h>>>24|0;k=(b<<2)+a|0;p=(e<<2)+c|0;g=J[p>>2];b=g>>>24|0;e=0;if((d|0)<5)break b;d=d-5|0;t=d&-4;r=d>>>2|0;u=r<<3;while(1){i=e<<3;d=h>>>16&255;j=d+f|0;s=h>>>8|0;m=s&255;n=d+m|0;J[i+a>>2]=j<<15&16711680|f<<24|(d<<8|n>>>1);o=b+f<<23&-16777216;q=g>>>8&255;f=g>>>16&255;J[i+k>>2]=o|q+(f+n|0)>>>2|d+f<<7&65280|f+(b+j|0)<<14&2147418112;j=e+1|0;f=j<<2;d=J[f+p>>2];b=h&255;i=i|4;h=J[c+f>>2];f=h>>>24|0;n=b+f|0;o=b+m|0;J[i+a>>2]=b<<8|n>>>1|(o<<15&16711680|s<<24);g=g&255;m=(m+q<<23| -g+b<<7)&-16711936|o+(g+q|0)<<14&16711680;b=d>>>24|0;J[i+k>>2]=m|b+(g+n|0)>>>2;i=(e|0)==(r|0);g=d;e=j;if(!i)continue;break}break c}h=(b<<2)+a|0;b=K[c^3];d:{if((d|0)<2){e=b;break d}f=0;while(1){g=g+1|0;e=K[g+c^3];H[a+f^3]=b;H[f+h^3]=b;d=f|1;b=b+e>>>1|0;H[d+a^3]=b;H[d+h^3]=b;f=f+2|0;b=e;if((g|0)!=(l|0))continue;break}}b=l<<1;H[b+a^3]=e;c=a;a=b|1;H[c+a^3]=e;H[b+h^3]=e;a=a+h|0;break a}j=t+4|0;e=u+8|0}h=j;e:{if((l|0)<=(h|0)){g=f;d=b;break e}while(1){h=h+1|0;d=K[p+h^3];g=K[c+h^3];H[a+e^3]=f;j=e|1;i=f+g| -0;H[j+a^3]=i>>>1;H[e+k^3]=b+f>>>1;H[j+k^3]=(b+i|0)+d>>>2;e=e+2|0;b=d;f=g;if((h|0)!=(l|0))continue;break}}b=l<<1;H[b+a^3]=g;c=a;a=b|1;H[c+a^3]=g;e=d+g>>>1|0;H[b+k^3]=e;a=a+k|0}H[a^3]=e}function Y$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(J[c>>2]<=0){J[c>>2]=344;return 0}a=J[a+8>>2];d=tc(b+260|0,a,84);c=J[a>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+4>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+8>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+12>>2];if(!c|!K[c+17|0]?0:c)J[c+4>> -2]=J[c+4>>2]+1;c=J[a+16>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+20>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+24>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+28>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+32>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+36>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+40>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+44>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+48>>2];if(!c|!K[c+17|0]?0:c)J[c+ -4>>2]=J[c+4>>2]+1;c=J[a+52>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+56>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+60>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+64>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+68>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+72>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;a=J[a+76>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;H[b+34|0]=1;J[b+8>>2]=d;return b|0}function $7(a){var b=0,c=0,d=0;d=999;a:{b:{if(J[a+548>>2])break b; -b=gc[J[a+152>>2]](1136)|0;J[a+548>>2]=b;d=1;if(!b)break b;H[b|0]=K[a+306|0];H[b+1|0]=K[a+307|0];H[b+2|0]=K[a+308|0];H[b+3|0]=K[a+309|0];H[b+4|0]=K[a+310|0];H[b+5|0]=K[a+311|0];H[b+6|0]=K[a+312|0];I[b+8>>1]=L[a+1052>>1];I[b+10>>1]=L[a+1054>>1];I[b+12>>1]=L[a+1056>>1];H[b+14|0]=K[a+1058|0];I[b+16>>1]=L[a+1060>>1];H[b+18|0]=K[a+1062|0];H[b+19|0]=K[a+1080|0];J[b+20>>2]=J[a+1084>>2];J[b+24>>2]=J[a+1088>>2];H[b+28|0]=K[a+1092|0];J[b+32>>2]=J[a+1096>>2];J[b+36>>2]=J[a+1100>>2];J[b+40>>2]=J[a+1104>>2];J[b+ -44>>2]=J[a+1108>>2];J[b+48>>2]=J[a+1160>>2];tc(b+52|0,a+1164|0,768);J[b+820>>2]=J[a+1932>>2];tc(b+824|0,a+1936|0,256);J[b+1080>>2]=J[a+2192>>2];J[b+1084>>2]=J[a+2196>>2];J[b+1088>>2]=J[a+2200>>2];J[b+1092>>2]=J[a+2204>>2];J[b+1096>>2]=J[a+2208>>2];J[b+1100>>2]=J[a+2212>>2];J[b+1104>>2]=J[a+2216>>2];J[b+1108>>2]=J[a+2220>>2];J[b+1112>>2]=J[a+2224>>2];H[b+1116|0]=K[a+2228|0];c=J[a+2232>>2];J[b+1120>>2]=c;if(c){c=gc[J[a+152>>2]](c)|0;J[b+1124>>2]=c;if(!c)break b;tc(c,J[a+2236>>2],J[b+1120>>2])}I[b+1128>> -1]=L[a+2240>>1];I[b+1130>>1]=L[a+2242>>1];I[b+1132>>1]=L[a+2244>>1];d=0;a=J[a+688>>2];if(!a)break a;while(1){H[a+30|0]=1;H[J[a+88>>2]+32|0]=1;a=J[a+8>>2];if(a)continue;break}break a}Dc(a,d,0,0)}return d}function OUa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;we(b,3);ao(a,b);d=O[a+248>>3]*100;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}pd(b,c);d=O[a+256>>3]*100;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}pd(b,c);d=O[a+264>>3]*100;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}pd(b,c);d=O[a+ -272>>3]*100;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}pd(b,c);c=J[a+4>>2];if(c&32768){we(b,K[a+240|0]);we(b,K[a+241|0]);c=J[a+4>>2]}e:{if(!(c&65536))break e;pd(b,J[a+300>>2]-J[a+296>>2]>>3);e=J[a+296>>2];if((e|0)==J[a+300>>2])break e;c=0;while(1){d=O[(c<<3)+e>>3]*1E4;f:{if(R(d)<2147483648){e=~~d;break f}e=-2147483648}pd(b,e);c=c+1|0;e=J[a+296>>2];if(c>>>0>2]-e>>3>>>0)continue;break}}c=J[a+4>>2];if(c&131072){d=O[a+216>>3]*100;g:{if(R(d)<2147483648){c=~~d;break g}c=-2147483648}pd(b, -c);c=J[a+4>>2]}if(c&262144){d=O[a+224>>3]*100;h:{if(R(d)<2147483648){c=~~d;break h}c=-2147483648}pd(b,c);c=J[a+4>>2]}if(c&1048576){we(b,K[a+208|0]);c=J[a+4>>2]}if(c&2097152){d=O[a+232>>3]*100;i:{if(R(d)<2147483648){c=~~d;break i}c=-2147483648}pd(b,c);c=J[a+4>>2]}if(c&4194304){we(b,K[a+209|0]);c=J[a+4>>2]}if(c&8388608){d=O[a+280>>3]*100;j:{if(R(d)<2147483648){c=~~d;break j}c=-2147483648}pd(b,c);d=O[a+288>>3]*100;k:{if(R(d)<2147483648){a=~~d;break k}a=-2147483648}pd(b,a)}}function XW(a,b,c,d,e){var f= -0,g=0,h=0,i=0,j=0,k=0;h=bc-16|0;bc=h;a:{if(c){if(J[a+8>>2]==16)f=J[a+156>>2]+P(J[a+192>>2],5644)|0;else f=J[a+12>>2];if(M[J[a+72>>2]+16>>2]<=b>>>0)break a;a=J[d>>2];b:{if(!a){d=0;Hc(e,1,2354988,0);break b}j=J[f+5584>>2];J[d>>2]=a-1;ld(c,h+12|0,1);i=P(b,1080)+j|0;a=J[h+12>>2];J[i+804>>2]=a>>>5;g=a&31;J[i+24>>2]=g;a=c+1|0;c:{d:{e:{f:switch(g|0){case 0:f=J[d>>2];break e;case 1:break d;default:break f}f=J[d>>2]>>>1|0}if(f>>>0>=98){J[h+4>>2]=97;J[h+8>>2]=97;J[h>>2]=f;Hc(e,2,2355024,h);g=J[i+24>>2]}if(g){g= -f;if(f)break d;f=0;break c}if(!f)break c;c=0;e=P(b,1080)+j|0;while(1){ld(a,h+12|0,1);if(c>>>0<=96){g=J[h+12>>2];k=e+(c<<3)|0;J[k+32>>2]=0;J[k+28>>2]=g>>>3}a=a+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}break c}c=0;while(1){ld(a,h+12|0,2);if(c>>>0<=96){e=(c<<3)+i|0;f=J[h+12>>2];J[e+32>>2]=f&2047;J[e+28>>2]=f>>>11}a=a+2|0;c=c+1|0;if((g|0)!=(c|0))continue;break}f=g<<1}J[d>>2]=J[d>>2]-f;d=1;if(J[i+24>>2]!=1)break b;c=P(b,1080)+j|0;e=J[c+28>>2];f=J[c+32>>2];a=1;while(1){b=c+(a<<3)|0;g=e-((a>>>0)/3|0)| -0;J[b+36>>2]=(g|0)>0?g:0;J[b+32>>2]=f;J[b+40>>2]=f;g=b;b=e-((a-1>>>0)/3|0)|0;J[g+28>>2]=(b|0)>0?b:0;a=a+2|0;if((a|0)!=97)continue;break}}bc=h+16|0;return d}fa(2353829,2346358,10868,2354920);B()}fa(2354943,2346358,10878,2354920);B()}function Ira(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;while(1){i=(h>>>2&1073741820)+a|0;e=J[i>>2];if(!e){e=J[c+28>>2];a:{if((e|0)<=4046){d=J[c+24>>2];break a}d=rc(8164);J[d>>2]=J[c+24>>2];e=0;wc(d+4|0,0,8160);J[c+24>>2]=d}J[c+28>>2]=e+34;f=d;d=e<<1;e=(f+ -((f-d&2)+d|0)|0)+4|0;J[i>>2]=e}f=(h&15)<<2;d=J[f+e>>2];if(!d){d=J[c+28>>2];b:{if((d|0)<=4064){g=J[c+24>>2];break b}g=rc(8164);J[g>>2]=J[c+24>>2];d=0;wc(g+4|0,0,8160);J[c+24>>2]=g;e=J[i>>2]}J[c+28>>2]=d+16;J[e+f>>2]=((d<<1)+g|0)+4;d=J[J[i>>2]+f>>2]}e=j<<2;I[d>>1]=L[(J[e+2415952>>2]<<1)+b>>1];I[d+2>>1]=L[(J[(e|4)+2415952>>2]<<1)+b>>1];I[d+4>>1]=L[(J[(e|8)+2415952>>2]<<1)+b>>1];I[d+6>>1]=L[(J[(e|12)+2415952>>2]<<1)+b>>1];I[d+8>>1]=L[(J[(e|16)+2415952>>2]<<1)+b>>1];I[d+10>>1]=L[(J[(e|20)+2415952>>2]<< -1)+b>>1];I[d+12>>1]=L[(J[(e|24)+2415952>>2]<<1)+b>>1];I[d+14>>1]=L[(J[(e|28)+2415952>>2]<<1)+b>>1];I[d+16>>1]=L[(J[(e|32)+2415952>>2]<<1)+b>>1];I[d+18>>1]=L[(J[(e|36)+2415952>>2]<<1)+b>>1];I[d+20>>1]=L[(J[(e|40)+2415952>>2]<<1)+b>>1];I[d+22>>1]=L[(J[(e|44)+2415952>>2]<<1)+b>>1];I[d+24>>1]=L[(J[(e|48)+2415952>>2]<<1)+b>>1];I[d+26>>1]=L[(J[(e|52)+2415952>>2]<<1)+b>>1];I[d+28>>1]=L[(J[(e|56)+2415952>>2]<<1)+b>>1];I[d+30>>1]=L[(J[(e|60)+2415952>>2]<<1)+b>>1];j=j+16|0;h=h+1|0;if((h|0)!=64)continue;break}} -function FRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;J[c>>2]=13;d=J[a+28>>2];a:{if(!J[d+492>>2]){b=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,b,824222,0);break a}if(J[a+32>>2]){f=J[a+8>>2];gc[J[J[f>>2]+156>>2]](f,d);J[a+32>>2]=0}if(J[a+100>>2]){d=J[a+8>>2];gc[J[J[d>>2]+232>>2]](d,J[a+28>>2]);d=J[J[a+28>>2]+492>>2];h=gc[J[J[d>>2]+12>>2]](d)|0;f=J[b+8>>2];if(J[f+12>>2]>0){b=0;while(1){Mc(f,b,c,0);e=J[c>> -2];c:{if(e-3>>>0>=4294967294){d=J[a+28>>2];g=O[d+496>>3]*(((e|0)==1?+J[c+8>>2]:O[c+8>>3])*-.001);d:{if(h){ZY(d,0,g);break d}ZY(d,O[d+568>>3]*g,0)}d=J[a+8>>2];gc[J[J[d>>2]+188>>2]](d,J[a+28>>2],J[c>>2]==1?+J[c+8>>2]:O[c+8>>3]);break c}if((e|0)==3){XA(a,J[c+8>>2]);break c}d=-1;e=J[a+108>>2];e:{if(!e)break e;e=J[e+4>>2];if(J[e+8>>2]==13)break e;d=J[e+16>>2];d=gc[J[J[d>>2]+52>>2]](d)|0}xc(1,d,824465,0)}uc(c);b=b+1|0;if((b|0)>2])continue;break}}b=J[a+8>>2];gc[J[J[b>>2]+236>>2]](b,J[a+28>>2]);break a}d= -J[b+8>>2];if(J[d+12>>2]<=0)break a;b=0;while(1){Mc(d,b,c,0);f:{if(J[c>>2]!=3)break f;f=J[c+8>>2];e=J[a+8>>2];if(!(gc[J[J[e>>2]+32>>2]](e)|0))break f;e=J[a+8>>2];gc[J[J[e>>2]+268>>2]](e,J[f>>2])}uc(c);b=b+1|0;if((b|0)>2])continue;break}}bc=c+16|0}function oX(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;c=J[a+8>>2];e=c+J[a+4>>2]|0;a:{if(!J[a+12>>2]){if((e|0)<2)break a;i=(c<<2)+b|0;c=J[i>>2];d=J[b>>2]-(c+1>>1)|0;h=J[a>>2];b:{if(e>>>0<4){f=c;break b}k=(e-4>>>1|0)+1|0;a=1;while(1){f= -a<<2;l=J[f+b>>2];f=J[f+i>>2];m=g<<2;J[m+h>>2]=d;j=d;d=l-((c+f|0)+2>>2)|0;J[h+(m|4)>>2]=(j+d>>1)+c;g=g+2|0;j=(a|0)!=(k|0);c=f;a=a+1|0;if(j)continue;break}}J[h+(g<<2)>>2]=d;c=e<<2;g=c+h|0;if(e&1){j=e-1|0;a=J[(j<<1&-4)+b>>2]-(f+1>>1)|0;J[h+(j<<2)>>2]=a;d=a+d>>1;a=-2}else a=-1;J[g+(a<<2)>>2]=d+f;tc(b,h,c);return}c:switch(e-1|0){case 0:J[b>>2]=J[b>>2]/2;return;case 1:a=J[a>>2];c=(c<<2)+b|0;d=J[b>>2]-(J[c>>2]+1>>1)|0;J[a+4>>2]=d;J[a>>2]=d+J[c>>2];c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;return;default:break c}if((e| -0)<3)break a;i=J[a>>2];k=(c<<2)+b|0;c=J[k+4>>2];a=J[k>>2];d=J[b>>2]-((c+a|0)+2>>2)|0;J[i>>2]=d+a;a=e|-2;l=e-2|0;d:{if((a+l|0)+1>>>0<2){g=c;f=1;break d}m=((a+e|0)-3>>>1|0)+1|0;f=1;a=1;while(1){o=J[(a<<2)+b>>2];j=a+1|0;g=J[(j<<2)+k>>2];n=(f<<2)+i|0;J[n>>2]=d;h=d;d=o-((c+g|0)+2>>2)|0;J[n+4>>2]=(h+d>>1)+c;f=f+2|0;h=(a|0)!=(m|0);c=g;a=j;if(h)continue;break}}J[(f<<2)+i>>2]=d;e:{if(!(e&1)){a=J[((e<<1&-4)+b|0)-4>>2]-(g+1>>1)|0;J[(l<<2)+i>>2]=(d+a>>1)+g;break e}a=d+g|0}c=e<<2;J[(c+i|0)-4>>2]=a;tc(b,i,c)}} -function l9(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;a:{if((i|0)>0){k=d+1>>1;m=e+1>>1;q=f+1>>1;n=g+1>>1;l9(a,b,c,k,m,q,n,h,i-1|0);j=J[h>>2];o=(c-m|0)+n|0;J[j+32>>2]=o;J[j+24>>2]=c;p=(b-k|0)+q|0;J[j+20>>2]=p;J[j+12>>2]=n;f=f>>1;J[j+8>>2]=f;J[j+4>>2]=m;d=d>>1;J[j>>2]=d;J[j+16>>2]=2;m=(f-d|0)+p|0;J[j+28>>2]=m;c=J[a>>2]-i<<3;n=J[a+4>>2];l=O[c+J[n+12>>2]>>3]*O[c+J[n+8>>2]>>3]*8192;b:{if(R(l)<2147483648){i=~~l;break b}i=-2147483648}J[j+36>>2]=i;J[h>>2]=j+40;g=g>>1;e=e>>1;i=(g-e|0)+o|0;J[j+ -72>>2]=i;J[j+68>>2]=p;J[j- -64>>2]=o;J[j+60>>2]=b;J[j+52>>2]=g;J[j+48>>2]=q;J[j+44>>2]=e;J[j+40>>2]=k;J[j+56>>2]=1;b=J[a+4>>2];l=O[c+J[b+8>>2]>>3]*O[c+J[b+12>>2]>>3]*8192;c:{if(R(l)<2147483648){b=~~l;break c}b=-2147483648}J[j+76>>2]=b;k=j+80|0;J[h>>2]=k;J[j+112>>2]=i;J[j+108>>2]=m;J[j+104>>2]=o;J[j+100>>2]=p;J[j+92>>2]=g;J[j+88>>2]=f;J[j+84>>2]=e;J[j+80>>2]=d;J[j+96>>2]=3;l=O[c+J[J[a+4>>2]+12>>2]>>3];l=l*l*8192;if(R(l)<2147483648){J[j+116>>2]=~~l;break a}J[j+116>>2]=-2147483648;break a}k=J[h>>2]; -J[k+24>>2]=c;J[k+20>>2]=b;J[k+12>>2]=g;J[k+8>>2]=f;J[k+4>>2]=e;J[k>>2]=d;J[k+16>>2]=0;J[k+32>>2]=(c-e|0)+g;J[k+28>>2]=(b-d|0)+f;l=O[(J[J[a+4>>2]+8>>2]+(J[a>>2]<<3)|0)+((i^-1)<<3)>>3];l=l*l*8192;d:{if(R(l)<2147483648){a=~~l;break d}a=-2147483648}J[k+36>>2]=a}J[h>>2]=k+40}function scb(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;h=J[J[J[a+4>>2]+96>>2]+28>>2];i=vg(J[J[J[b>>2]+428>>2]+(c<<2)>>2],0,10);a:{b:{c=J[a+160>>2];e=J[c+156>>2];if(!e)break b;f=J[e+4>>2];if(!(f&1))break b;g=J[c+88>> -2];if(g){e=J[J[c+4>>2]+100>>2];gc[J[e+8>>2]](e,g);e=J[c+156>>2];f=J[e+4>>2]}J[c+88>>2]=0;J[e+4>>2]=f&-2;break a}J[c+88>>2]=0}J[c+24>>2]=0;J[c+28>>2]=0;J[c+152>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;wc(c+72|0,0,72);c=gc[J[h+72>>2]](J[a+160>>2],J[b+44>>2],i,d|8)|0;if(!c){b=J[a+160>>2];d=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=d;d=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=d;d=J[b+44>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=d;d= -J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=d;J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];J[a+72>>2]=J[b+72>>2];J[a+124>>2]=J[b+124>>2];d=J[b+120>>2];J[a+116>>2]=J[b+116>>2];J[a+120>>2]=d;d=J[b+112>>2];J[a+108>>2]=J[b+108>>2];J[a+112>>2]=d;d=J[b+96>>2];J[a+92>>2]=J[b+92>>2];J[a+96>>2]=d;d=J[b+88>>2];J[a+84>>2]=J[b+84>>2];J[a+88>>2]=d;d=J[b+80>>2];J[a+76>>2]=J[b+76>>2];J[a+80>>2]=d;J[a+100>>2]=J[b+100>>2];J[a+104>>2]=J[b+104>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=J[b+132>>2];J[a+136>>2]=J[b+136>> -2];J[a+140>>2]=J[b+140>>2]}return c|0}function l3a(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(J[b+4>>2]){d=J[b>>2];c=J[d+24>>2];f=J[d+16>>2];if((c|0)!=(f|0)){e=J[d+8>>2];g=f-1|0;a:{b:{if((g|0)==(c|0)){h=O[e+(c<<4)>>3];break b}j=e+(c<<4)|0;h=O[j>>3];g=e+(g<<4)|0;if(h!=O[g>>3])break b;if(O[g+8>>3]==O[j+8>>3])break a}i=O[(e+(c<<4)|0)+8>>3];c=(f+J[d+12>>2]|0)-1|0;H[c|0]=K[c|0]&253;c=J[d+20>>2];e=J[d+16>>2];c:{if((c|0)>(e|0)){c=J[d+12>>2];break c}if(!c){J[d+20>>2]=32;c=32}if((c|0)<= -(e|0)){while(1){c=c<<1;if((e|0)>=(c|0))continue;break}J[d+20>>2]=c}k=d,l=Vd(J[d+8>>2],c<<4),J[k+8>>2]=l;c=Vd(J[d+12>>2],J[d+20>>2]);J[d+12>>2]=c;e=J[d+16>>2]}f=J[d+8>>2]+(e<<4)|0;O[f+8>>3]=i;O[f>>3]=h;H[c+e|0]=2;J[d+16>>2]=J[d+16>>2]+1;c=J[d+24>>2]}c=J[d+12>>2]+c|0;H[c|0]=K[c|0]|4;c=(J[d+12>>2]+J[d+16>>2]|0)-1|0;H[c|0]=K[c|0]|4;J[d+24>>2]=J[d+16>>2]}J[b+4>>2]=0}h=+J[a>>2]*.015625;i=+J[a+4>>2]*.015625;a=J[b>>2];d=J[a+16>>2];if(J[a+24>>2]!=(d-1|0)){b=J[a+20>>2];d:{if((d|0)<(b|0)){b=J[a+12>>2];break d}if(!b){J[a+ -20>>2]=32;b=32}if((b|0)<=(d|0)){while(1){b=b<<1;if((d|0)>=(b|0))continue;break}J[a+20>>2]=b}k=a,l=Vd(J[a+8>>2],b<<4),J[k+8>>2]=l;b=Vd(J[a+12>>2],J[a+20>>2]);J[a+12>>2]=b;d=J[a+16>>2]}c=J[a+8>>2]+(d<<4)|0;O[c+8>>3]=i;O[c>>3]=h;H[b+d|0]=3;b=J[a+16>>2];J[a+24>>2]=b;J[a+16>>2]=b+1}return 0}function zdb(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+548>>2];if(b){if(b)gc[J[c+8>>2]](c,b);J[a+544>>2]=0;J[a+548>>2]=0}fx(a);J[a+532>>2]=0;b=J[a+132>>2];if(b)gc[J[c+8>>2]](c,b);J[a+132>>2]=0;b=J[a+136>>2]; -if(b)gc[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+140>>2];if(b)gc[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+144>>2];if(b)gc[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+148>>2];if(b)gc[J[c+8>>2]](c,b);J[a+148>>2]=0;b=J[a+432>>2];if(b)gc[J[c+8>>2]](c,b);J[a+432>>2]=0;b=J[a+428>>2];if(b)gc[J[c+8>>2]](c,b);J[a+428>>2]=0;b=J[a+424>>2];if(b)gc[J[c+8>>2]](c,b);J[a+424>>2]=0;b=J[a+408>>2];if(b)gc[J[c+8>>2]](c,b);J[a+408>>2]=0;b=J[a+412>>2];if(b)gc[J[c+8>>2]](c,b);J[a+412>>2]=0;_C(J[a+416>>2],c);b=J[a+416>>2];if(b)gc[J[c+8>> -2]](c,b);J[a+416>>2]=0;b=J[a+392>>2];if(b)gc[J[c+8>>2]](c,b);J[a+392>>2]=0;b=J[a+396>>2];if(b)gc[J[c+8>>2]](c,b);J[a+396>>2]=0;b=J[a+400>>2];if(b)gc[J[c+8>>2]](c,b);J[a+400>>2]=0;b=J[a+384>>2];if(b)gc[J[c+8>>2]](c,b);J[a+384>>2]=0;b=J[a+388>>2];if(b)gc[J[c+8>>2]](c,b);J[a+388>>2]=0;b=J[a+364>>2];if(b)gc[J[c+8>>2]](c,b);J[a+364>>2]=0;b=J[a+496>>2];if(b){d=J[b+36>>2];if(d)gc[J[c+8>>2]](c,d);J[b+36>>2]=0;J[b+40>>2]=0;d=J[b+28>>2];if(d)gc[J[c+8>>2]](c,d);J[b+28>>2]=0;J[b+32>>2]=0;if(b)gc[J[c+8>>2]](c, -b)}J[a+20>>2]=0;J[a+24>>2]=0}}function pJ(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;f=J[a+204>>2];a:{if(f){i=J[J[a+388>>2]+32>>2];e=J[f+P(i,36)>>2];J[a+288>>2]=e;b:{if((e|0)<=0)break b;c=J[a+84>>2];if(e>>>0>=4){m=e&-4;h=a+292|0;d=(f+P(i,36)|0)+4|0;while(1){g=b<<2;J[g+h>>2]=c+P(J[d+g>>2],88);j=g|4;J[j+h>>2]=c+P(J[d+j>>2],88);j=g|8;J[j+h>>2]=c+P(J[d+j>>2],88);g=g|12;J[g+h>>2]=c+P(J[d+g>>2],88);b=b+4|0;k=k+4|0;if((m|0)!=(k|0))continue;break}}e=e&3;if(!e)break b;h=f+P(i,36)|0;while(1){d= -b<<2;J[(d+a|0)+292>>2]=c+P(J[(d+h|0)+4>>2],88);b=b+1|0;l=l+1|0;if((e|0)!=(l|0))continue;break}}if(!J[a+264>>2])break a;b=f+P(i,36)|0;J[a+360>>2]=J[b+20>>2];J[a+364>>2]=J[b+24>>2];J[a+368>>2]=J[b+28>>2];J[a+372>>2]=J[b+32>>2];return}c=J[a+76>>2];if((c|0)>=5){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=27;J[J[a>>2]+28>>2]=4;gc[J[J[a>>2]>>2]](a);c=J[a+76>>2]}J[a+288>>2]=c;if((c|0)<=0)break a;f=J[a+84>>2];b=0;if(c>>>0>=4){h=c&-4;e=a+292|0;while(1){J[e+(b<<2)>>2]=f+P(b,88);d=b|1;J[e+(d<<2)>>2]=f+P(d,88);d=b|2;J[e+ -(d<<2)>>2]=f+P(d,88);d=b|3;J[e+(d<<2)>>2]=f+P(d,88);b=b+4|0;g=g+4|0;if((h|0)!=(g|0))continue;break}}c=c&3;if(!c)break a;while(1){J[((b<<2)+a|0)+292>>2]=f+P(b,88);b=b+1|0;i=i+1|0;if((c|0)!=(i|0))continue;break}}J[a+360>>2]=0;J[a+368>>2]=0;b=J[a+376>>2];J[a+364>>2]=P(b,b)-1;J[a+372>>2]=0}function d4a(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;j=bc-16|0;bc=j;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;b=J[b+168>>2];if(b){l=gc[J[J[b>>2]+20>>2]](b)|0;b=0;f=j+4|0;J[f+8>>2]=0;J[f>>2]=0;J[f+ -4>>2]=0;k=J[l+8>>2];if((k|0)!=J[l+12>>2])while(1){h=J[k>>2];d=K[h+11|0];g=d<<24>>24<0;i=K[c+11|0];e=i<<24>>24<0;a:{d=g?J[h+4>>2]:d;if((d|0)!=((e?J[c+4>>2]:i)|0))break a;if(d)if(gd(g?J[h>>2]:h,e?J[c>>2]:c,d))break a;if(J[f+8>>2]!=(b|0)){J[b>>2]=h;b=b+4|0;J[f+4>>2]=b;break a}b:{c:{d:{e:{f:{g=J[f>>2];e=b-g|0;m=e>>2;d=m+1|0;g:{if(d>>>0>=1073741824){J[695492]=0;_(2806,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;break b}i=e>>1;d=e>>>0>=2147483644?1073741823:d>>>0>>0?i:d;if(!d){i=0;break e}if(d>>> -0<1073741824)break f;J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break b}b=Z()|0;g=J[f>>2];break c}J[695492]=0;i=$(4,d<<2)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d}e=(m<<2)+i|0;J[e>>2]=h;h=e+4|0;if((b|0)!=(g|0)){while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(g|0))continue;break}b=J[f>>2]}J[f+8>>2]=(d<<2)+i;J[f+4>>2]=h;J[f>>2]=e;if(b)qc(b);b=h;break a}b=Z()|0}if(g){J[f+4>>2]=g;qc(g)}ba(b|0);B()}B()}k=k+4|0;if((k|0)!=J[l+12>>2])continue;break}J[a>>2]=J[j+4>>2];J[a+4>>2]=J[j+8>> -2];J[a+8>>2]=J[j+12>>2]}bc=j+16|0}function ED(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(J[a+92>>2])bk(a+92|0);a:{if(!a)break a;b=J[a>>2];if(!b)break a;yM(b);Ai(b+28|0);g=b+68|0;b:{if(!g)break b;c=J[g>>2];if(!c)break b;c:{f=J[c>>2];if((f|0)<=0)break c;d=J[c+8>>2];if(!d)break c;while(1){d:{if(!d)break d;i=(h<<2)+d|0;e=J[i>>2];if(!e)break d;d=J[e+8>>2]-1|0;J[e+8>>2]=d;if(!d){if(J[e>>2]>0){d=0;while(1){wd(J[e+12>>2]+(d<<2)|0);d=d+1|0;if((d|0)>2])continue;break}}qc(J[e+12>>2]);wo(e+16|0);qc(e); -f=J[c>>2]}J[i>>2]=0}h=h+1|0;if((f|0)<=(h|0))break c;d=J[c+8>>2];continue}}qc(J[c+8>>2]);wo(c+12|0);qc(c);J[g>>2]=0}bk(b+72|0);bk(b+76|0);d=0;g=b+80|0;e:{if(!g)break e;e=J[g>>2];if(!e)break e;f:{f=J[e>>2];if((f|0)<=0)break f;c=J[e+8>>2];if(!c)break f;while(1){g:{if(!c)break g;h=(d<<2)+c|0;c=J[h>>2];if(!c)break g;i=J[c+8>>2];J[c+8>>2]=i-1;if((i|0)<=1){f=J[c+20>>2];if(f)qc(f);qc(c);f=J[e>>2]}J[h>>2]=0}d=d+1|0;if((f|0)<=(d|0))break f;c=J[e+8>>2];continue}}qc(J[e+8>>2]);qc(e);J[g>>2]=0}Ai(b+84|0);Ai(b+ -48|0);zo(b+88|0);zo(b+92|0);Ai(b+96|0);Ai(b+100|0);zo(b+104|0);zo(b+108|0);qc(b);J[a>>2]=0}b=J[a+100>>2];if(b){J[a+104>>2]=b;qc(b)}Dx(a+76|0,J[a+80>>2]);b=J[a+64>>2];if(b){J[a+68>>2]=b;qc(b)}b=J[a+52>>2];if(b){J[a+56>>2]=b;qc(b)}XM(a+36|0,J[a+40>>2]);WM(a+24|0,J[a+28>>2]);qc(a)}function AJ(a){var b=0,c=0,d=0;b=1501;c=J[694731];d=c;a:{b:{c:switch(c|0){case 6:b=1502;break b;case 8:b=1503;break b;case 9:b=1504;break b;case 10:b=1505;break b;case 11:b=1506;break b;case 12:b=1507;break b;case 16:b=1508; -break b;case 18:b=1509;break b;case 20:b=1510;break b;case 21:b=1511;break b;case 22:b=1512;break b;case 26:b=1513;break b;case 27:b=1514;break b;case 28:b=1515;break b;case 29:b=1516;break b;case 31:b=1517;break b;case 33:b=1518;break b;case 34:b=1519;break b;case 35:b=1520;break b;case 37:b=1521;break b;case 41:b=1522;break b;case 43:b=1523;break b;case 44:b=1524;break b;case 45:b=1525;break b;case 46:b=1526;break b;case 48:b=1527;break b;case 51:b=1528;break b;case 52:b=1529;break b;case 54:b= -1530;break b;case 55:b=1531;break b;case 138:b=1532;break b;case 59:b=1533;break b;case 60:b=1534;break b;case 63:b=1535;break b;case 64:b=1536;break b;case 68:b=1537;break b;case 69:b=1538;break b;case 70:b=1539;break b;case 71:b=1540;break b;case 73:b=1541;break b;case 75:b=1542;break b;case 57:b=1550;break b;case 30:b=1551;break b;case 14:b=1552;break b;case 40:b=1553;break b;case 3:b=1554;break b;case 7:b=1555;break b;case 5:b=1556;break b;case 0:break a;case 2:break b;default:break c}b=1500}d= -b-1500|0;c=b}TJ(c,J[(d<<2)+773040>>2],a)}function FOa(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;a=tc(a,b,672);if(J[a+116>>2]){d=J[b+116>>2];l=a,m=gc[J[J[d>>2]+8>>2]](d)|0,J[l+116>>2]=m}if(J[a+120>>2]){d=J[b+120>>2];l=a,m=gc[J[J[d>>2]+8>>2]](d)|0,J[l+120>>2]=m}if(J[a+380>>2]){d=J[b+380>>2];l=a,m=gc[J[J[d>>2]+8>>2]](d)|0,J[l+380>>2]=m}if(J[a+384>>2]){d=J[b+384>>2];l=a,m=gc[J[J[d>>2]+8>>2]](d)|0,J[l+384>>2]=m}if(J[a+424>>2]){d=J[b+424>>2];l=a,m=gc[J[J[d>>2]+8>>2]](d)|0,J[l+ -424>>2]=m}if(J[a+428>>2]){d=J[b+428>>2];l=a,m=gc[J[J[d>>2]+8>>2]](d)|0,J[l+428>>2]=m}if(J[a+432>>2]){d=J[b+432>>2];l=a,m=gc[J[J[d>>2]+8>>2]](d)|0,J[l+432>>2]=m}if(J[a+436>>2]){d=J[b+436>>2];l=a,m=gc[J[J[d>>2]+8>>2]](d)|0,J[l+436>>2]=m}d=J[a+452>>2];if((d|0)>0){d=vd(d,8);J[a+448>>2]=d;tc(d,J[b+448>>2],J[a+452>>2]<<3)}a:{if(c){b=J[b+596>>2];c=rc(40);h=J[b+24>>2];d=J[b+28>>2];f=J[b>>2];i=O[b+8>>3];j=O[b+16>>3];e=J[b+32>>2];J[c+32>>2]=e;O[c+16>>3]=j;O[c+8>>3]=i;J[c>>2]=f;J[c+28>>2]=d;b=0;J[695492]=0; -f=aa(3376,e|0,4)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[c+24>>2]=f;if((d|0)>0)while(1){e=b<<2;g=J[e+h>>2];J[695492]=0;g=$(3428,g|0)|0;k=J[695492];J[695492]=0;if((k|0)==1)break a;J[e+f>>2]=g;b=b+1|0;if((d|0)!=(b|0))continue;break}J[a+596>>2]=c}J[a+668>>2]=0;return a|0}a=Z()|0;qc(c);ba(a|0);B()}function dX(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=bc-256|0;bc=d;if(a){Td(2358195,17,1,c);J[d+240>>2]=J[a>>2];cd(c,2358213,d+240|0);J[d+224>>2]=J[a+4>>2];cd(c,2358226,d+224|0);J[d+208>>2]=J[a+ -8>>2];cd(c,2358238,d+208|0);J[d+192>>2]=J[a+16>>2];cd(c,2358255,d+192|0);if((b|0)>0)while(1){e=J[a+5584>>2];J[d+176>>2]=h;cd(c,2358266,d+176|0);e=e+P(h,1080)|0;J[d+160>>2]=J[e>>2];cd(c,2358280,d+160|0);J[d+144>>2]=J[e+4>>2];cd(c,2358294,d+144|0);J[d+128>>2]=J[e+8>>2];cd(c,2358317,d+128|0);J[d+112>>2]=J[e+12>>2];cd(c,2358333,d+112|0);J[d+96>>2]=J[e+16>>2];cd(c,2358349,d+96|0);J[d+80>>2]=J[e+20>>2];cd(c,2358366,d+80|0);Td(2358381,23,1,c);f=0;if(J[e+4>>2])while(1){g=e+(f<<2)|0;i=J[g+812>>2];J[d+68>> -2]=J[g+944>>2];J[d+64>>2]=i;cd(c,2358405,d- -64|0);f=f+1|0;if(f>>>0>2])continue;break}Ph(10,c);J[d+48>>2]=J[e+24>>2];cd(c,2358414,d+48|0);J[d+32>>2]=J[e+804>>2];cd(c,2358429,d+32|0);g=1;Td(2358446,20,1,c);a:{if(J[e+24>>2]!=1){f=J[e+4>>2];if((f|0)<=0)break a;g=P(f,3)-2|0}f=0;while(1){i=e+(f<<3)|0;j=d,k=Izb(J[i+28>>2],J[i+32>>2],32),J[j+16>>2]=k;J[d+20>>2]=fc;cd(c,2358405,d+16|0);f=f+1|0;if((g|0)!=(f|0))continue;break}}Ph(10,c);J[d>>2]=J[e+808>>2];cd(c,2358467,d);Td(2358484,5,1,c);h=h+1|0;if((h| -0)!=(b|0))continue;break}Td(2358490,4,1,c)}bc=d+256|0}function W_a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-384|0;bc=d;e=rc(c);J[a>>2]=e;b=tc(e,b,c);J[a+4>>2]=c;e=rc(24);J[e+4>>2]=c;J[e>>2]=b;b=d+128|0;fK(b,e);h=a+8|0;c=N0(b);a:{b:{c:{d:{while(1){Lw(c,d+48|0,0,0);e:{if(!J[d+76>>2])break e;b=d+128|0;f:{if(!Lw(c,0,b,256)){b=Qc(b);if(b>>>0>=2147483632)break a;g:{if(b>>>0<=10){H[d+23|0]=b;f=d+12|0;break g}g=(b|15)+1|0;f=rc(g);J[d+20>>2]=g|-2147483648;J[d+12>>2]=f;J[d+16>>2]=b}b=tc(f,d+128| -0,b)+b|0;break f}H[d+23|0]=0;b=d+12|0}H[b|0]=0;h:{if(H[d+23|0]>=0){J[d+32>>2]=J[d+20>>2];b=J[d+16>>2];J[d+24>>2]=J[d+12>>2];J[d+28>>2]=b;break h}J[695492]=0;ca(2672,d+24|0,J[d+12>>2],J[d+16>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break d}J[d+36>>2]=0;J[d+40>>2]=0;b=J[a+12>>2];i:{if(b>>>0>2]){f=J[d+28>>2];J[b>>2]=J[d+24>>2];J[b+4>>2]=f;J[b+8>>2]=J[d+32>>2];J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;f=J[d+40>>2];J[b+12>>2]=J[d+36>>2];J[b+16>>2]=f;J[a+12>>2]=b+20;break i}J[695492]=0;da(3031,h|0, -d+24|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;if(H[d+35|0]>=0)break i;qc(J[d+24>>2])}if(H[d+23|0]>=0)break e;qc(J[d+12>>2])}if(!iK(c))continue;break}UB(c);qc(e);bc=d+384|0;return}c=Z()|0;break b}c=Z()|0;if(H[d+35|0]>=0)break b;qc(J[d+24>>2])}if(H[d+23|0]<0)qc(J[d+12>>2]);ba(c|0);B()}Id(d+12|0);B()}function Kq(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=bc-192|0;bc=e;a:{if(!b)while(1){b=K[c|0];if(!b){f=d;break a}H[d+e|0]=b;f=d|1;b=K[c+1|0];if(!b)break a;H[e+f|0]=b;f=d|2;b=K[c+2|0];if(!b)break a;H[e+ -f|0]=b;f=191;b=d|3;if((b|0)==191)break a;f=K[c+3|0];if(f){H[b+e|0]=f;d=d+4|0;c=c+4|0;continue}else{f=b;break a}}while(1){g=K[c|0];b:{c:{if((g|0)!=64){d=c;if(g)break c;break a}g=K[c+1|0];if(g){d=c+1|0;i=0;while(1){h=i;if((h|0)!=9){i=h+1|0;if(K[h+61521|0]!=(g|0))continue}break}if(h>>>0>7)break c;d:{if(f>>>0>190)break d;h=(h<<5)+b|0;i=191-f|0;d=0;while(1){g=K[d+h|0];if(!g|d>>>0>31)break d;H[e+f|0]=g;f=f+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}f=191}c=c+2|0;break b}g=64;d=c}H[e+f|0]=g;f=f+1|0;c=d+ -1|0}if(f>>>0<191)continue;break}}d=0;H[e+f|0]=0;e:{if(!a)break e;f:{if(K[e|0]!=35)break f;d=1;if(K[e+1|0]==32)break f;d=2;if(K[e+2|0]==32)break f;d=3;if(K[e+3|0]==32)break f;d=4;if(K[e+4|0]==32)break f;d=5;if(K[e+5|0]==32)break f;d=6;if(K[e+6|0]==32)break f;d=7;if(K[e+7|0]==32)break f;d=8;if(K[e+8|0]==32)break f;d=9;if(K[e+9|0]==32)break f;d=10;if(K[e+10|0]==32)break f;d=11;if(K[e+11|0]==32)break f;d=12;if(K[e+12|0]==32)break f;d=13;if(K[e+13|0]==32)break f;d=K[e+14|0]==32?14:15}b=J[a+164>>2];if(!b)break e; -gc[b|0](a,d|e)}bc=e+192|0}function bG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;a:{b:{c:{d:{e:{if(!K[b+32|0]){_o(b,1);if(!K[b+32|0])break e}J[695492]=0;ca(5231,c+4|0,b|0,0);b=J[695492];J[695492]=0;if((b|0)==1)break c;b=J[c+4>>2];f:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break f;a=Z()|0;break b}J[c+12>>2]=0}J[695492]=0;aa(4993,a+8|0,c+12|0)|0;b=J[695492];J[695492]=0;g:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break g;J[695492]=0;d=J[b+ -4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break g;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}break a}a=Z()|0;vc(c+12|0);break b}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2728584)>>2];sc(c+4|0);_o(a,1);break d}d=a+8|0;b=J[b+8>>2];h:{if(b){gc[J[J[b>>2]+28>>2]](c+4|0,b,1);break h}J[c+4>>2]=0}J[695492]=0;aa(4993,d|0,c+4|0)|0;b=J[695492];J[695492]=0;i:{if((b|0)!=1){b=J[c+4>>2];J[c+4>>2]=0;if(!b)break i;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]= -0;if((e|0)!=1){if(d)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break i}break a}a=Z()|0;vc(c+4|0);ba(a|0);B()}b=J[a+8>>2];b=J[(b?b+12|0:2728584)>>2];H[a+32|0]=0;J[a+12>>2]=b}bc=c+16|0;return a|0}ba(Z()|0);B()}sc(c+4|0);ba(a|0);B()}ea(0)|0;yc();B()}function xpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if(!(1<>>0<=5:0)){Dc(a,1028,0,0);return 1028}b:{c:{if(c){f=K[d| -0]|K[d+1|0]<<8;f=f<<8|f>>>8;I[a+1150>>1]=f;if(c>>>0<=2){I[a+1152>>1]=f;g=f;break c}g=K[d+2|0]|K[d+3|0]<<8;g=g<<8|g>>>8;I[a+1152>>1]=g;if(c>>>0<5)break c;i=K[d+4|0];H[a+1148|0]=i;break b}I[a+1150>>1]=1;I[a+1152>>1]=65535;i=2;H[a+1148|0]=2;f=1;g=65535;break b}H[a+1148|0]=0}h=0;d:{if(!K[a+114|0])break d;h=f&65535;j=g&65535;f=gc[J[a+152>>2]](36)|0;if(!f){Dc(a,1,0,0);h=1;break d}J[f+4>>2]=1058;J[f>>2]=1059;g=J[a+700>>2];e:{if(g){J[g+8>>2]=f;break e}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f; -J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+32|0]=i;I[f+30>>1]=j;I[f+28>>1]=h;h=0}f=h;f:{if(f)break f;f=Mx(a);if(f)break f;g:{if(!K[a+112|0])break g;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break f;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break g;b=K[d|0]|K[d+1|0]<<8;b=b<<8|b>>>8;I[a+34>>1]=b;if(c>>>0<=2){I[a+36>>1]=b;break g}b=K[d+2|0]|K[d+3|0]<<8;I[a+36>>1]=b<<8|b>>>8;if(c>>>0<5)break g;H[a+38|0]=K[d+4|0]}f=0}return f|0}Dc(a,1029, -0,0);return 1029}function oR(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{c=J[a+4>>2];f:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break f}c=nf(a)}switch(c-43|0){case 0:case 2:break e;default:break d}}g=(c|0)==45;b=!b;c=J[a+4>>2];g:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break g}c=nf(a)}d=c-58|0;if(b|d>>>0>4294967285)break c;if(J[a+116>>2]<0)break b;J[a+4>>2]=J[a+4>>2]-1;break b}d=c-58|0}if(d>>>0<4294967286)break b;h:{if(c-48>>>0>=10)break h;while(1){e=(P(e,10)+c|0)-48|0;f=(e|0)<214748364; -c=J[a+4>>2];i:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break i}c=nf(a)}b=c-48|0;if(f&b>>>0<=9)continue;break}f=e>>31;if(b>>>0>=10)break h;while(1){b=c;c=Dzb(e,f,10,0);d=b+c|0;b=fc;e=d-48|0;d=(c>>>0>d>>>0?b+1|0:b)-(d>>>0<48)|0;f=d;d=e>>>0<2061584302&(d|0)<=21474836|(d|0)<21474836;c=J[a+4>>2];j:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break j}c=nf(a)}b=c-48|0;if(d&b>>>0<=9)continue;break}if(b>>>0>=10)break h;while(1){b=J[a+4>>2];k:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break k}b= -nf(a)}if(b-48>>>0<10)continue;break}}b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;a=e;e=g?0-a|0:a;f=g?0-(((a|0)!=0)+f|0)|0:f;break a}f=-2147483648;if(J[a+116>>2]<0)break a;J[a+4>>2]=J[a+4>>2]-1;fc=-2147483648;return 0}fc=f;return e}function YR(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;h=a+4|0;g=J[a+8>>2];a:{c=J[b+8>>2];l=J[b+4>>2];f=c-l|0;m=f>>2;if((m|0)<=0)break a;b=J[h+8>>2];j=J[h+4>>2];if((m|0)<=b-j>>2){f=j-g>>2;b:{if((f|0)>=(m|0)){d=j;e=c; -break b}d=j;e=l+(f<<2)|0;if((c|0)!=(e|0)){b=e;while(1){J[d>>2]=J[b>>2];d=d+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}}J[h+4>>2]=d;if((f|0)<=0)break a}c=m<<2;i=d-(c+g|0)|0;f=i>>2;b=d;c=b-c|0;if(j>>>0>c>>>0)while(1){J[b>>2]=J[c>>2];b=b+4|0;c=c+4|0;if(j>>>0>c>>>0)continue;break}J[h+4>>2]=b;Zc(d-(f<<2)|0,g,i);Zc(g,l,e-l|0);break a}c:{k=J[h>>2];e=m+(j-k>>2)|0;if(e>>>0<1073741824){d=b-k|0;b=d>>1;i=d>>>0>=2147483644?1073741823:b>>>0>e>>>0?b:e;if(i){if(i>>>0>=1073741824)break c;b=rc(i<<2)}else b=0;e=g-k| -0;d=b+(e&-4)|0;n=d;if((c|0)!=(l|0))n=tc(d,l,f&-4)+(m<<2)|0;i=b+(i<<2)|0;c=d;d:{if((g|0)==(k|0))break d;f=e-4|0;e=(f>>>2|0)+1&3;e:{if(!e){b=g;break e}d=0;b=g;while(1){c=c-4|0;b=b-4|0;J[c>>2]=J[b>>2];d=d+1|0;if((e|0)!=(d|0))continue;break}}if(f>>>0<12)break d;while(1){J[c-4>>2]=J[b-4>>2];J[c-8>>2]=J[b-8>>2];J[c-12>>2]=J[b-12>>2];c=c-16|0;b=b-16|0;J[c>>2]=J[b>>2];if((b|0)!=(k|0))continue;break}}d=j-g|0;b=Zc(n,g,d);J[h+8>>2]=i;J[h+4>>2]=b+d;J[h>>2]=c;if(k)qc(k);break a}kj(h);B()}Sd();B()}return a|0}function Sfb(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;i=-1;f=J[a+16>>2];a=K[f+6|0]|K[f+7|0]<<8|(K[f+8|0]<<16|K[f+9|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a:{if(!a)break a;j=f+10|0;while(1){b:{e=a+g>>>1|0;d=j+P(e,11)|0;h=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];c:{if(h>>>0>c>>>0){a=e;break c}if(c>>>0<=h>>>0)break b;g=e+1|0}if(a>>>0>g>>>0)continue;break a}break}e=K[d+7|0]|K[d+8|0]<<8|(K[d+9|0]<<16|K[d+10|0]<<24);d:{a=K[d+3|0]|K[d+4|0]<<8|(K[d+5|0]<<16|K[d+6|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280| -a>>>24);if(!a)break d;c=a+f|0;a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);j=c+4|0;g=0;while(1){if(a>>>0<=g>>>0)break d;c=a;a=a+g>>>1|0;d=j+(a<<2)|0;h=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];if(h>>>0>b>>>0)continue;i=1;g=a+1|0;a=c;if(h+K[d+3|0]>>>0>>0)continue;break}break a}a=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e:{if(!a)break e;c=a+f|0;a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break e;d=c+4|0;g=0;while(1){f:{c= -a+g>>>1|0;e=d+P(c,5)|0;f=K[e+1|0]<<8|K[e|0]<<16|K[e+2|0];g:{if(f>>>0>b>>>0){a=c;break g}if(b>>>0<=f>>>0)break f;g=c+1|0}if(a>>>0>g>>>0)continue;break e}break}i=0;if(K[e+4|0]|K[e+3|0]<<8)break a}i=-1}return i|0}function bO(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=zc(72);if(!d)return 0;d=wc(d,0,72);J[d>>2]=J[a>>2];J[d+4>>2]=J[a+4>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=J[a+12>>2];f=d,g=$N(J[a+16>>2]),J[f+16>>2]=g;a:{c=J[a+20>>2];if(c){b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+20>>2]=b}c=J[a+24>>2];if(c){e=1;b= -Yi();if(!b)break a;if(oj(b,c))break a;J[d+24>>2]=b}c=J[a+28>>2];if(c){e=2;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+28>>2]=b}c=J[a+32>>2];if(c){e=3;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+32>>2]=b}c=J[a+36>>2];if(c){e=4;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+36>>2]=b}c=J[a+40>>2];if(c){e=5;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+40>>2]=b}c=J[a+44>>2];if(c){e=6;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+44>>2]=b}c=J[a+48>>2];if(c){e=7;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+48>> -2]=b}c=J[a+52>>2];if(c){e=8;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+52>>2]=b}c=J[a+56>>2];if(c){e=9;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+56>>2]=b}c=J[a+60>>2];if(c){e=10;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d+60>>2]=b}c=J[a- -64>>2];if(c){e=11;b=Yi();if(!b)break a;if(oj(b,c))break a;J[d- -64>>2]=b}b=J[a+68>>2];if(b){e=12;a=Yi();if(!a)break a;if(oj(a,b))break a;J[d+68>>2]=a}return d}J[(d+(e<<2)|0)+20>>2]=0;return 0}function Tfb(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;a:{h=J[a+16>>2];a=K[h+6|0]|K[h+7|0]<<8|(K[h+8|0]<<16|K[h+9|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);b:{if(!a)break b;j=h+10|0;while(1){c:{g=a+f>>>1|0;e=j+P(g,11)|0;i=K[e+1|0]<<8|K[e|0]<<16|K[e+2|0];d:{if(i>>>0>d>>>0){a=g;break d}if(d>>>0<=i>>>0)break c;f=g+1|0}if(a>>>0>f>>>0)continue;break b}break}g=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);e:{a=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break e;d=a+h|0;a=K[d|0]|K[d+1|0]<< -8|(K[d+2|0]<<16|K[d+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);j=d+4|0;f=0;while(1){if(a>>>0<=f>>>0)break e;d=a;a=a+f>>>1|0;e=j+(a<<2)|0;i=K[e+1|0]<<8|K[e|0]<<16|K[e+2|0];if(i>>>0>c>>>0)continue;f=a+1|0;a=d;if(i+K[e+3|0]>>>0>>0)continue;break}return gc[J[J[b+12>>2]+12>>2]](b,c)|0}a=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(!a)break b;b=a+h|0;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break b;g=b+4|0;f=0;while(1){b=a+f>>>1|0;d=g+P(b, -5)|0;e=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];f:{if(e>>>0>c>>>0){a=b;break f}if(c>>>0<=e>>>0)break a;f=b+1|0}if(a>>>0>f>>>0)continue;break}}return 0}return K[d+4|0]|K[d+3|0]<<8}function u7(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;h=bc-16|0;bc=h;a:{if(!c)break a;J[c>>2]=0;e=!a;if(e|((e?-1:J[a+8>>2])|0)!=1)break a;e=d;b:{if(e)break b;e=0;i=bd(256,4);if(!i)break b;while(1){J[i+(e<<2)>>2]=(((((((e&1)+(e>>>7|0)|0)+(e>>>1&1)|0)+(e>>>2&1)|0)+(e>>>3&1)|0)+(e>>>4&1)|0)+(e>>>5&1)|0)+(e>>>6&1); -e=e+1|0;if((e|0)!=256)continue;break}e=i}xf(a,h+12|0,h+8|0,0);o=a?J[a+12>>2]:-1;i=a?J[a+40>>2]:0;k=J[h+8>>2];c:{if((k|0)<=0)break c;a=J[h+12>>2];l=a&31;p=-1<<32-l;d:{m=a>>5;if((m|0)>0){a=0;while(1){f=(P(o,n)<<2)+i|0;g=0;while(1){j=J[(g<<2)+f>>2];if(j)a=J[(j>>>22&1020)+e>>2]+(J[(j>>>14&1020)+e>>2]+(J[(j>>>6&1020)+e>>2]+(J[((j&255)<<2)+e>>2]+a|0)|0)|0)|0;g=g+1|0;if((m|0)!=(g|0))continue;break}e:{if(!l)break e;f=J[(m<<2)+f>>2]&p;if(!f)break e;a=J[(f>>>22&1020)+e>>2]+(J[(f>>>14&1020)+e>>2]+(J[(f>>>6& -1020)+e>>2]+(J[((f&255)<<2)+e>>2]+a|0)|0)|0)|0}if((a|0)>(b|0))break d;n=n+1|0;if((n|0)!=(k|0))continue;break}break c}if(l){a=0;while(1){f=J[(P(g,o)<<2)+i>>2]&p;if(f)a=J[(f>>>22&1020)+e>>2]+(J[(f>>>14&1020)+e>>2]+(J[(f>>>6&1020)+e>>2]+(J[((f&255)<<2)+e>>2]+a|0)|0)|0)|0;if((a|0)>(b|0))break d;g=g+1|0;if((k|0)!=(g|0))continue;break}break c}if((b|0)<0)break d;break c}J[c>>2]=1}if(d)break a;qc(e)}bc=h+16|0}function Vg(a,b,c){var d=0;a:{b:{c:{d:{e:{f:{g:{h:{c=c-1|0;switch(c|0){case 2:case 7:break c;case 11:break d; -case 10:break e;case 4:case 9:break f;case 3:case 8:break g;case 0:case 5:break h;default:break b}}if(J[b+4>>2])break b;return 0}if(M[b+4>>2]>3)break b;break a}if(M[b+4>>2]>7)break b;break a}if(M[b+4>>2]<4)break a;return+N[J[b>>2]>>2]}if(M[b+4>>2]<8)break a;return O[J[b>>2]>>3]}if(M[b+4>>2]<=1)break a}b=J[b>>2];i:switch(c|0){case 5:return+H[b|0];case 0:return+K[b|0];case 2:a=J[a+264>>2];return+(K[!a+b|0]<<8|K[((a|0)!=0)+b|0]);case 3:j:{if(J[a+264>>2]){c=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;b=b+3|0; -break j}c=K[b+2|0]<<16|K[b+3|0]<<24|K[b+1|0]<<8}return+((K[b|0]|c)>>>0);case 4:case 9:k:{if(J[a+264>>2]){a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=K[b+5|0]<<16|K[b+4|0]<<24|K[b+6|0]<<8;b=b+7|0;break k}c=K[b+6|0]<<16|K[b+7|0]<<24|K[b+5|0]<<8;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0}b=K[b|0]|c;if(!b)break a;return+(a|0)/+(b|0);case 7:a=J[a+264>>2];return+((K[!a+b|0]<<8|K[((a|0)!=0)+b|0])<<16>>16);case 8:break i;default:break a}l:{if(J[a+ -264>>2]){c=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;b=b+3|0;break l}c=K[b+2|0]<<16|K[b+3|0]<<24|K[b+1|0]<<8}d=+(K[b|0]|c)}return d}function SZ(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;h=bc-16|0;bc=h;a:{b:{c:switch(J[c>>2]-4|0){case 0:d=rc(8);a=J[c+8>>2];J[695492]=0;a=aa(3182,d|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=VY(J[689612],b,a);if(!c){J[h+4>>2]=b;J[h>>2]=a;xc(1,-1,775440,h)}qc(Rc(a));break b;case 4:a=J[c+8>>2];g=bc-16|0;bc=g;J[g>>2]=13;c=rc(24);J[695492]=0;e=$(4,8)|0;d= -J[695492];J[695492]=0;d:{e:{f:{if((d|0)==1)break f;J[695492]=0;i=aa(3183,e|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){d=Z()|0;qc(e);break e}d=0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=i;J[695492]=0;b=aa(3376,256,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break f;J[c+16>>2]=b;while(1){e=d<<3;f=e+b|0;J[f>>2]=0;J[f+4>>2]=0;f=b+(e|8)|0;J[f>>2]=0;J[f+4>>2]=0;f=b+(e|16)|0;J[f>>2]=0;J[f+4>>2]=0;e=b+(e|24)|0;J[e>>2]=0;J[e+4>>2]=0;d=d+4|0;if((d|0)!=256)continue;break}J[c+20>>2]=1;g:{if(J[Bc(gc[J[J[a>> -2]+76>>2]](a)|0,782602,g,0)>>2]==5)break g;d=SZ(b,i,g);if(!d)break g;J[c+8>>2]=J[d+8>>2];e=J[d+16>>2];if(e)zI(c,b,e);kp(d)}uc(g);gc[J[J[a>>2]+20>>2]](a);yI(c,0,3380,a);gc[J[J[a>>2]+24>>2]](a);bc=g+16|0;break d}d=Z()|0}qc(c);ba(d|0);B()}if(c)break b;xc(1,-1,775694,0);c=0;break b;default:break c}c=0;xc(1,-1,776727,0)}bc=h+16|0;return c|0}a=Z()|0;qc(d);ba(a|0);B()}function Rh(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+12>>2];if(J[a+4>>2]==2)return gc[g|0](b,c,d)|0;a:{b:{if(M[g>>2]>b>>>0)break b;f=J[a+ -16>>2];if((f|0)>=2)while(1){h=(e+f|0)/2|0;j=M[g+(h<<4)>>2]>b>>>0;f=j?h:f;e=j?e:h;if((f-e|0)>1)continue;break}f=g+(e<<4)|0;if(M[f+4>>2]>>0)break b;h=0;a=J[f+12>>2];if((a|0)>(d|0))break a;if((a|0)<=0)return a;e=(J[(g+(e<<4)|0)+8>>2]+b|0)-J[f>>2]|0;d=a&3;c:{if(!d){f=a;break c}b=0;f=a;while(1){f=f-1|0;H[f+c|0]=e;e=e>>>8|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}if(a>>>0<4)return a;d=c-2|0;h=c-1|0;while(1){H[f+h|0]=e;H[d+f|0]=e>>>8;b=f-4|0;H[b+c|0]=e>>>24;g=f-3|0;H[g+c|0]=e>>>16;e=0;f=b;if(g>>>0>1)continue; -break}return a}e=J[a+24>>2];if((e|0)>0){h=J[a+20>>2];f=0;while(1){d=P(f,24);g=d+h|0;if(J[g>>2]==(b|0)){h=J[g+20>>2];if((h|0)<=0)break a;b=0;e=0;if(h>>>0>=4){j=h&-4;g=0;while(1){H[c+e|0]=K[((d+J[a+20>>2]|0)+e|0)+4|0];i=e|1;H[i+c|0]=K[(i+(d+J[a+20>>2]|0)|0)+4|0];i=e|2;H[i+c|0]=K[(i+(d+J[a+20>>2]|0)|0)+4|0];i=e|3;H[i+c|0]=K[(i+(d+J[a+20>>2]|0)|0)+4|0];e=e+4|0;g=g+4|0;if((j|0)!=(g|0))continue;break}}d=h&3;if(!d)break a;f=P(f,24);while(1){H[c+e|0]=K[((f+J[a+20>>2]|0)+e|0)+4|0];e=e+1|0;b=b+1|0;if((d|0)!= -(b|0))continue;break}break a}f=f+1|0;if((e|0)!=(f|0))continue;break}}h=0}return h}function Ql(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a>>2]=2381028;b=J[682146];J[a+20>>2]=0;J[a+12>>2]=b;J[a+16>>2]=2426920;J[695492]=0;d=$(4,52)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((b|0)!=1){J[695492]=0;c=Qn(d,8,6075,6076,6077,6078,6079);b=J[695492];J[695492]=0;if((b|0)==1)break e;J[c+4>>2]=J[c+4>>2]+1;b=J[a+20>>2];f:{if(!b)break f;d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(d)break f;gc[J[J[b>>2]+4>>2]](b)}J[a+20>>2]=c;J[a+ -24>>2]=2426920;J[a+28>>2]=0;J[695492]=0;d=$(4,52)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;c=Qn(d,8,6075,6076,6077,6078,6079);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[c+4>>2]=J[c+4>>2]+1;b=J[a+28>>2];g:{if(!b)break g;d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(d)break g;gc[J[J[b>>2]+4>>2]](b)}H[a+32|0]=0;J[a+28>>2]=c;return a|0}b=Z()|0;J[a+16>>2]=2381060;break a}b=Z()|0;qc(d);J[a+16>>2]=2381060;c=J[a+20>>2];if(!c)break a;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+20>>2]= -0;break a}b=Z()|0;qc(d);J[a+24>>2]=2381060;c=J[a+28>>2];if(!c)break b;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0;break b}b=Z()|0;J[a+24>>2]=2381060}J[a+16>>2]=2381060;c=J[a+20>>2];if(!c)break a;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0}sc(a+8|0);ba(b|0);B()}function Sta(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2413388;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+ -32>>2]=0;J[a+36>>2]=0;J[695492]=0;g=ha(5043,a+44|0,a+40|0,0,4)|0;f=J[695492];J[695492]=0;a:{b:{if((f|0)!=1){J[695492]=0;f=ha(5043,a+56|0,a+52|0,0,4)|0;h=J[695492];J[695492]=0;if((h|0)!=1)break b;b=Z()|0;_c(g);break a}b=Z()|0;break a}J[a>>2]=2413648;J[695492]=0;h=ha(5043,a+68|0,a- -64|0,0,3)|0;i=J[695492];J[695492]=0;c:{d:{e:{f:{g:{h:{if((i|0)!=1){J[695492]=0;i=ha(5043,a+80|0,a+76|0,0,3)|0;j=J[695492];J[695492]=0;if((j|0)==1)break h;J[695492]=0;j=ha(5043,a+92|0,a+88|0,0,3)|0;k=J[695492];J[695492]= -0;if((k|0)==1)break g;J[a+12>>2]=c;J[a+8>>2]=b;if(J[a+40>>2]){J[695492]=0;ca(5443,g|0,0,4);b=J[695492];J[695492]=0;if((b|0)==1)break f}if(J[a+52>>2]){J[695492]=0;ca(5443,f|0,0,4);b=J[695492];J[695492]=0;if((b|0)==1)break f}J[a+36>>2]=e;J[a+32>>2]=d;if(J[a+40>>2]){J[695492]=0;ca(5443,g|0,0,4);b=J[695492];J[695492]=0;if((b|0)==1)break f}if(J[a+52>>2]){J[695492]=0;ca(5443,f|0,0,4);b=J[695492];J[695492]=0;if((b|0)==1)break f}return a|0}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;break e}b=Z()|0;_c(j)}_c(i)}_c(h)}Dz(a); -ba(b|0);B()}ed(a);ba(b|0);B()}function hu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;j=J[c+12>>2];d=J[b+120>>2];if(d)gc[d|0](J[b+116>>2]);e=J[b+84>>2];if(e)while(1){h=J[e+4>>2];d=J[h+84>>2];a:{if(!d)break a;i=J[J[h+96>>2]+8>>2];b:{if((d|0)==(e|0)){g=0;break b}while(1){f=J[d+8>>2];if(!f)break a;g=d;d=f;if((e|0)!=(d|0))continue;break}}J[(g?g+8|0:h+84|0)>>2]=J[e+8>>2];d=J[e+20>>2];if(d)gc[d|0](e);px(e);gc[J[i+8>>2]](i,e);e=J[b+84>>2]}if(e)continue;break}if(a){d=J[b+108>>2];if(d)while(1){g=J[d+4>>2];f=J[d+ -8>>2];e=J[f+8>>2];if(e)gc[e|0](f);e=J[J[c+12>>2]+60>>2];if(e)gc[e|0](f);e=J[f+40>>2];if(e)gc[J[a+8>>2]](a,e);J[f+40>>2]=0;gc[J[a+8>>2]](a,f);gc[J[a+8>>2]](a,d);d=g;if(d)continue;break}J[b+108>>2]=0;J[b+112>>2]=0}J[b+88>>2]=0;c=J[b+48>>2];if(c)gc[c|0](b);if(J[b+36>>2]>0){d=0;while(1){f=d<<2;c=J[f+J[b+40>>2]>>2];g=J[J[c>>2]+100>>2];e=J[J[c+12>>2]+8>>2];if(e)gc[e|0](c);gc[J[g+8>>2]](g,c);J[f+J[b+40>>2]>>2]=0;d=d+1|0;if((d|0)>2])continue;break}}c=J[b+40>>2];if(c)gc[J[a+8>>2]](a,c);J[b+36>>2]= -0;J[b+40>>2]=0;c=J[j+52>>2];if(c)gc[c|0](b);c=J[b+104>>2];c:{if(!c)break c;g=J[b+8>>2];d=J[c+28>>2];f=J[c+24>>2];if(f)gc[f|0](c);if(g&1024)break c;gc[J[d+8>>2]](d,c)}J[b+104>>2]=0;c=J[b+128>>2];if(c){gc[J[a+8>>2]](a,c);J[b+128>>2]=0}gc[J[a+8>>2]](a,b)}function gk(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:{b:{if((b|0)<0|J[a+16>>2]<=(b|0))break b;i=J[J[a+24>>2]+(b<<2)>>2];a=J[i+16>>2];if((a|0)<=(c|0))break b;b=J[i+20>>2];if((a|0)<(c+e|0)|(b|0)<=(d|0)|(J[g+20>>2]!=(f|0)|(b|0)<(d+f|0)))break b; -if(J[g+24>>2]!=(e|0))break b;b=J[g+28>>2];a=J[b>>2];c:{if((f|0)>=2){b=J[b+4>>2]-a>>2;break c}b=0;if((f|0)!=1)break a}d:{if((e|0)>0){p=b<<2;while(1){if((Mg(J[i+32>>2],P(J[i+36>>2],P(J[i+16>>2],d+j|0)+c|0),0)|0)<0)break b;l=a;m=e;e:{g=J[i+36>>2];if((g|0)<=0)break e;while(1){if((g|0)>0){b=J[l>>2];h=J[i+24>>2];n=(b>>31&(J[i+28>>2]?1<>2];b=J[h+8>>2];if(b&7)break b;k=J[i+36>>2];o=J[h+64>>2];if((o|0)>=0&J[h+60>>2]>=(o|0))break d;k=n>>(k<<3)-8;J[h+4>>2]=J[h+4>>2]|32; -b=J[h+28>>2];J[h+28>>2]=b-1;f:{if((b|0)>0){J[h+60>>2]=J[h+60>>2]+1;b=J[h+24>>2];J[h+24>>2]=b+1;H[b|0]=k;break f}b=-1;if((Uc(h,k&255)|0)==-1)break a}n=n<<8;b=(g|0)>1;g=g-1|0;if(b)continue;break}}if((m|0)<=1)break e;m=m-1|0;l=l+4|0;g=J[i+36>>2];continue}}a=a+p|0;b=0;j=j+1|0;if((j|0)!=(f|0))continue;break}break a}while(1){if((Mg(J[i+32>>2],P(J[i+36>>2],P(J[i+16>>2],d+j|0)+c|0),0)|0)<0)break b;b=0;j=j+1|0;if((j|0)!=(f|0))continue;break}break a}J[h+8>>2]=b|4}b=-1}return b}function via(a){a=a|0;var b=0, -c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;a:{if(!J[a+64>>2])break a;b:{d=J[a+68>>2];if(d){c=J[a+92>>2];if(c&16){if(J[a+24>>2]!=J[a+20>>2]){b=-1;if((gc[J[J[a>>2]+52>>2]](a,-1)|0)==-1)break a}d=a+72|0;while(1){b=J[a+68>>2];c=J[a+32>>2];c=gc[J[J[b>>2]+20>>2]](b,d,c,c+J[a+52>>2]|0,e+12|0)|0;f=J[a+32>>2];b=J[e+12>>2]-f|0;if((Td(f,1,b,J[a+64>>2])|0)!=(b|0))break b;c:switch(c-1|0){case 1:break b;case 0:continue;default:break c}break}b=0;if(!Ji(J[a+64>>2]))break a;break b}if(!(c&8))break a;b=J[a+84>>2];J[e>>2]=J[a+ -80>>2];J[e+4>>2]=b;d:{e:{f:{if(K[a+98|0]){b=J[a+16>>2]-J[a+12>>2]|0;d=b>>31;break f}c=gc[J[J[d>>2]+24>>2]](d)|0;b=J[a+40>>2]-J[a+36>>2]|0;d=b>>31;if((c|0)>0){c=P(c,J[a+16>>2]-J[a+12>>2]|0);d=d+(c>>31)|0;f=b;b=b+c|0;d=f>>>0>b>>>0?d+1|0:d;break f}if(J[a+12>>2]!=J[a+16>>2])break e}c=0;break d}c=J[a+68>>2];c=gc[J[J[c>>2]+32>>2]](c,e,J[a+32>>2],J[a+36>>2],J[a+12>>2]-J[a+8>>2]|0)|0;c=J[a+36>>2]-(c+J[a+32>>2]|0)|0;d=d+(c>>31)|0;f=b;b=b+c|0;d=f>>>0>b>>>0?d+1|0:d;c=1}if(Qu(J[a+64>>2],0-b|0,0-(d+((b|0)!=0)| -0)|0,1))break b;if(c){b=J[e+4>>2];J[a+72>>2]=J[e>>2];J[a+76>>2]=b}b=J[a+32>>2];J[a+40>>2]=b;J[a+36>>2]=b;b=0;J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0;J[a+92>>2]=0;break a}Ju();B()}b=-1}bc=e+16|0;return b|0}function xR(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=bc-16|0;bc=h;f=82715;e=J[b+4>>2];a:{if(e>>>0>=c>>>0){f=82923;if(c>>>0>=e>>>0)break a}e=J[a>>2];g=J[a+628>>2];i=J[Lf(a,L[b>>1])+16>>2];j=J[b+4>>2];J[h+8>>2]=c;J[h+4>>2]=j;J[h>>2]=i;ae(g,e,f,h)}b:{c:{f=J[d>>2];if(f)break c;f=Sg(a,c,4,88729);J[d>>2]= -f;if(f)break c;d=0;break b}d=0;Hg(f,0,c<<2);e=J[b+4>>2];if(L[b+2>>1]==3){e=Sg(a,e,2,88836);if(!e)break b;g=J[b+4>>2];d:{if(g>>>0<=2){if(L[a+456>>1]==19789){d=1;e:{f:switch(g-1|0){case 0:a=J[b+8>>2];break e;case 1:break f;default:break d}a=J[b+8>>2];I[e+2>>1]=a}I[e>>1]=a>>>16;break d}d=1;g:switch(g-1|0){case 0:I[e>>1]=J[b+8>>2];break d;case 1:break g;default:break d}a=J[b+8>>2];I[e+2>>1]=a>>>16;I[e>>1]=a;break d}d=(Oh(a,b,e)|0)!=0}h:{if(!d|(c|0)<=0)break h;a=0;while(1){if(J[b+4>>2]<=(a|0))break h; -J[(a<<2)+f>>2]=L[e+(a<<1)>>1];a=a+1|0;if((c|0)!=(a|0))continue;break}}qc(e);break b}if((c|0)!=(e|0)){e=Sg(a,e,4,88836);if(!e)break b;d=1;i:{if(J[b+4>>2]==1){J[e>>2]=J[b+8>>2];break i}d=(Oh(a,b,e)|0)!=0}j:{if(!d|(c|0)<=0)break j;a=0;while(1){if(J[b+4>>2]<=(a|0))break j;g=a<<2;J[g+f>>2]=J[e+g>>2];a=a+1|0;if((c|0)!=(a|0))continue;break}}qc(e);break b}d=1;if((c|0)==1){J[f>>2]=J[b+8>>2];break b}d=(Oh(a,b,f)|0)!=0}bc=h+16|0;return d}function mqb(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; -var h=0,i=0,j=0,k=0,l=0;a:{if(f){if(!d)break a;a=c<<1;b=b<<1;while(1){i=L[e>>1];b:{if((i|0)==L[f>>1]){I[g>>1]=i;break b}i=K[e|0]|K[e+1|0]<<8;k=i>>>8|0;h=K[f|0]|K[f+1|0]<<8;i=((i<<8|k)&65535)+((P(b,((h<<8|h>>>8)&65535)-((k|i<<8)&65535)|0)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];c:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break c}h=e+2|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=j+((P(b,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c| -0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[e+4>>1];d:{if((h|0)==L[f+4>>1]){I[i>>1]=h;break d}h=e+4|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+4|0]|K[f+5|0]<<8;h=j+((P(b,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+6|0;h=L[e+6>>1];e:{if((h|0)==L[f+6>>1]){I[i>>1]=h;break e}h=e+6|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+6|0]|K[f+7|0]<<8;h=j+((P(b,((h<<8|h>>>8)&65535)-((k<< -8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}f=f+8|0;e=e+8|0;g=g+8|0;l=l+1|0;if((l|0)!=(d|0))continue;break}break a}tc(g,e,d<<3)}return 0}function jrb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;if(e){o=e-2|0;while(1){a=f;h=K[a|0];H[g|0]=h;g=g+1|0;f=a+1|0;a:{if(l>>>0>o>>>0)break a;i=l?(l|0)==(o|0)?d:b:c;if(!((e|0)!=1|l)){if(i>>>0<2)break a;a=i-1|0;j=a&7;if(i-2>>>0>=7){i=a&-8;a=0;while(1){H[g+7|0]=h;H[g+6|0]=h; -H[g+5|0]=h;H[g+4|0]=h;H[g+3|0]=h;H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;g=g+8|0;a=a+8|0;if((i|0)!=(a|0))continue;break}}a=0;if(!j)break a;while(1){H[g|0]=h;g=g+1|0;a=a+1|0;if((j|0)!=(a|0))continue;break}break a}if((h|0)!=K[f|0]){if(i>>>0<2)break a;h=1;j=i<<1;k=i-1|0;p=k&1;if((i|0)!=2){q=k&-2;k=0;while(1){m=h<<1;n=K[a|0];H[g|0]=((i+P(m,K[a+1|0]-n|0)|0)/(j|0)|0)+n;n=m+2|0;m=K[a|0];H[g+1|0]=((i+P(n,K[a+1|0]-m|0)|0)/(j|0)|0)+m;h=h+2|0;g=g+2|0;k=k+2|0;if((q|0)!=(k|0))continue;break}}if(!p)break a;k=K[a+1|0];a= -K[a|0];H[g|0]=((i+(P(k-a|0,h)<<1)|0)/(j|0)|0)+a;g=g+1|0;break a}if(i>>>0<2)break a;a=i-1|0;j=a&7;if(i-2>>>0>=7){i=a&-8;a=0;while(1){H[g+7|0]=h;H[g+6|0]=h;H[g+5|0]=h;H[g+4|0]=h;H[g+3|0]=h;H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;g=g+8|0;a=a+8|0;if((i|0)!=(a|0))continue;break}}a=0;if(!j)break a;while(1){H[g|0]=h;g=g+1|0;a=a+1|0;if((j|0)!=(a|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function Jj(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+1144>>2];a:{b:{if(!b){c=J[a+1124>>2];while(1){c:{d:{e:{f:switch(c| -0){case 0:b=J[a+196>>2];g:{if(!b){b=0;break g}J[a+1136>>2]=b;b=J[a+200>>2];J[a+1144>>2]=b}c=1;J[a+1124>>2]=1;break c;case 1:J[a+1124>>2]=2;case 2:d=J[a+1128>>2];if((d|0)==J[a+1132>>2]){c=3;J[a+1124>>2]=3;continue}b=J[a>>2];c=J[b+184>>2];if(!c){H[a+1140|0]=0;Nc(J[b+628>>2],J[b>>2],81720,0);return 0}f=d<<2;c=J[c+f>>2];J[a+1136>>2]=c;if(!c){b=0;break d}e=J[a+168>>2];if(c>>>0>=e>>>0)break e;J[a+1144>>2]=0;b=J[b+188>>2];if(!b)break e;b=J[b+f>>2];J[a+1144>>2]=b;if(!b)break e;if(b+c>>>0<=e>>>0)break d;b= -e-c|0;J[a+1144>>2]=b;break d;default:break f}H[a+1140|0]=0;return 0}b=0;J[a+1136>>2]=0}J[a+1128>>2]=d+1;c=2}if(!b)continue;break}H[a+1140|0]=0;c=J[a>>2];break b}c=J[a>>2];if(K[a+1140|0])break a}gc[J[c+640>>2]](J[c+628>>2],J[a+1136>>2],0)|0;H[a+1140|0]=1;b=J[a+1144>>2];c=J[a>>2]}d=a+1156|0;b=gc[J[c+632>>2]](J[c+628>>2],d,b>>>0>=2048?2048:b&65535)|0;if(!b)return 0;h:{i:{if((b|0)>0){if(b>>>0>=2049)break i;c=J[a+1144>>2];if(c>>>0>>0)break h;J[a+1152>>2]=d;I[a+1148>>1]=b;J[a+1144>>2]=c-b;J[a+1136>> -2]=b+J[a+1136>>2];return 1}fa(80692,70456,1883,96681);B()}fa(80975,70456,1884,96681);B()}fa(81449,70456,1886,96681);B()}function sga(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=J[a+12>>2];a:{if(J[a+4>>2]){if((c|0)<=0)break a;while(1){f=L[b>>1]<<16;e=+I[b+2>>1];b:{c:{d:{if(!J[a+4>>2]){e=e*.01251220703125;e:{if(R(e)<2147483648){d=~~e;break e}d=-2147483648}d=f|d<<8&65280;break d}h=Dzb(J[694792],J[694793],1284865837,1481765933);d=fc;h=h+1|0;d=h?d:d+1|0;J[694792]=h;J[694793]=d;e=e*.01251220703125+ -+(d>>>1|0)*4.656612875245797E-10+-.5;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}d=f|d<<8&65280;if(J[a+4>>2])break c}e=+I[b+4>>1]*.01251220703125;break b}e=+I[b+4>>1]*.01251220703125;h=Dzb(J[694792],J[694793],1284865837,1481765933);f=fc;h=h+1|0;f=h?f:f+1|0;J[694792]=h;J[694793]=f;e=e+ +(f>>>1|0)*4.656612875245797E-10+-.5}g:{if(R(e)<2147483648){f=~~e;break g}f=-2147483648}J[g>>2]=f&255|d;b=b+6|0;g=g+4|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}break a}if((c|0)<=0)break a;if(c&1){J[g>>2]=P(I[b+ -4>>1],410)>>>15&255|(P(I[b+2>>1],410)>>>7&65280|L[b>>1]<<16);b=b+6|0;g=g+4|0;a=c-1|0}else a=c;d=a;if((c|0)==1)break a;while(1){J[g>>2]=P(I[b+4>>1],410)>>>15&255|(P(I[b+2>>1],410)>>>7&65280|L[b>>1]<<16);J[g+4>>2]=P(I[b+10>>1],410)>>>15&255|(P(I[b+8>>1],410)>>>7&65280|L[b+6>>1]<<16);b=b+12|0;g=g+8|0;a=d-3|0;d=d-2|0;if(a>>>0<4294967294)continue;break}}}function BP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;a=bc-16|0;bc=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>> -2]=c;J[a+8>>2]=f;a:{b:{while(1){c:{b=J[a+12>>2];if(d>>>0<=b>>>0)break c;m=J[a+8>>2];if(m>>>0>=g>>>0)break c;f=H[b|0];c=f&255;d:{if((f|0)>=0){if(c>>>0<=1114111){f=1;break d}k=2;break a}k=2;if(f>>>0<4294967234)break a;if(f>>>0<=4294967263){if((d-b|0)<2)break b;i=K[b+1|0];if((i&192)!=128)break a;f=2;c=i&63|c<<6&1984;break d}if(f>>>0<=4294967279){if((d-b|0)<3)break b;i=K[b+2|0];j=K[b+1|0];e:{f:{if((c|0)!=237){if((c|0)!=224)break f;if((j&224)==160)break e;break a}if((j&224)==128)break e;break a}if((j& -192)!=128)break a}if((i&192)!=128)break a;f=3;c=i&63|(c<<12&61440|(j&63)<<6);break d}if(f>>>0>4294967284)break a;if((d-b|0)<4)break b;j=K[b+3|0];i=K[b+2|0];l=K[b+1|0];g:{h:switch(c-240|0){case 0:if((l+112&255)>>>0<48)break g;break a;case 4:if((l&240)==128)break g;break a;default:break h}if((l&192)!=128)break a}if((i&192)!=128|(j&192)!=128)break a;f=4;c=j&63|(i<<6&4032|(c<<18&1835008|(l&63)<<12));if(c>>>0>1114111)break a}J[m>>2]=c;J[a+12>>2]=b+f;J[a+8>>2]=J[a+8>>2]+4;continue}break}k=b>>>0>>0;break a}k= -1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];bc=a+16|0;return k|0}function nK(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;a:{if(!a|J[a+8>>2]<=0)break a;j=J[a+4>>2];if(!b){h=1;if((d|0)>1)break a;f=(d|0)!=1?(f|0)>0?1:f:0}t=a+j|0;a=0;b:{while(1){r=(a<<2)+t|0;l=J[r>>2];a=l&16777215;c:{if(!a)break c;j=n+o|0;if((b|0)<0){p=a;m=j;break c}i=j;j=!b^(j|0)!=1;m=j?i:m;p=j?a:p}d:{e:{f:{g:{if((d|0)>(n|0)){i=c+n|0;n=n+1|0;break g}if((f|0)<=(o|0))break f;i=e+o|0;o=o+1|0}q=K[i|0];k=r+4|0;j=J[k>> -2]>>>24|0;if(q>>>0>>0)break b;i=l>>>24|0;a=K[(k+(i<<2)|0)-1|0];if(a>>>0>>0)break b;if(((a-j|0)+1|0)!=(i|0))break e;a=J[k+(q-j<<2)>>2];break d}if(h)break b;a=n+o|0;if((a|0)>31)break b;return 0-a|0}a=0;h:{if(l>>>0<33554432){j=i;break h}s=q<<24;r=s|16777215;j=i;while(1){if(i>>>0<=4){if(s>>>0<=M[k+(a<<2)>>2])break h;i=a+1|0;if(!((i|0)>=(j|0)|s>>>0>M[k+(i<<2)>>2])){a=i;break h}i=a+2|0;if(!((i|0)>=(j|0)|s>>>0>M[k+(i<<2)>>2])){a=i;break h}a=a+3|0;break h}l=(a+j|0)/2|0;i=M[k+(l<<2)>>2]>r>>>0;j=i?l: -j;a=i?a:l;i=j-a|0;if((i|0)>1)continue;break}}if((a|0)>=(j|0))break b;a=J[k+(a<<2)>>2];if((a>>>24|0)!=(q|0))break b}a=a&16777215;if(!a)break b;if(a>>>0<2031616)continue;break}c=n+o|0;if((b|0)<0){p=a;m=c;break b}b=!b^(c|0)!=1;m=b?c:m;p=b?a:p}if(!m)return 0;J[g>>2]=p&-8388609}return m}function Fmb(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;d=J[a+20>>2];e=J[a+28>>2];g=J[a+16>>2];h=L[a+12>>1];i=L[a+8>>1];j=L[a+4>>1];f=J[a>>2];c=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[b|0]=c;H[b+1|0]=c>>>8; -H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=d-g<<11&-8192|(h<<8&7936|(i<<7&128|j&63));g=e>>>0>255;c=g?c|64:c;H[b+4|0]=c;H[b+5|0]=c>>>8;d=J[a+16>>2];a:{if((d|0)==J[a+20>>2]){c=6;break a}c=6;b:switch((f>>>0<257?1:f>>>0<65537?2:4)-2|0){case 2:while(1){f=b+c|0;e=J[d>>2];e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;c=c+4|0;d=d+4|0;if((d|0)!=J[a+20>>2])continue;break}break a;case 0:while(1){f=b+c|0;e=L[d>>1];e=e<<8|e>>>8;H[f|0]=e;H[f+1|0]=e>>>8;c=c+2|0;d=d+4|0; -if((d|0)!=J[a+20>>2])continue;break}break a;default:break b}while(1){H[b+c|0]=J[d>>2];c=c+1|0;d=d+4|0;if((d|0)!=J[a+20>>2])continue;break}}d=J[a+28>>2];c:{if(g){f=b+c|0;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);H[f|0]=d;H[f+1|0]=d>>>8;d=2;break c}H[b+c|0]=d;d=1}d=d+c|0;b=d+b|0;c=J[a+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;b=J[a>>2];if((d+4|0)==((J[a+20>>2]-J[a+16>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))+(M[a+28>>2]<256?11:12)|0))return; -ra();B()}function VAa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc+-64|0;bc=e;LG(e+48|0,J[a+8>>2],0);a:{b:{c:{d=J[e+56>>2];if(d)while(1){f=J[d+8>>2];J[695492]=0;ia(5172,a|0,b|0,f|0,0);f=J[695492];J[695492]=0;if((f|0)==1)break c;d=J[d>>2];if(d)continue;break}d:{e:{f:{g:{d=J[c>>2];if(!(!d|!J[d+8>>2])){J[695492]=0;b=ga(5173,e+12|0,c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[695492]=0;_(5174,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;c=e+8|0;ca(5061,c|0,b|0,2386553);d= -J[695492];J[695492]=0;if((d|0)==1)break e;J[695492]=0;da(5175,a|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break d;a=J[e+8>>2];J[e+8>>2]=0;h:{if(!a)break h;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break h;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+ -4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0)}$c(e+48|0);bc=e- -64|0;return}a=Z()|0;break b}a=Z()|0;ud(b);break b}a=Z()|0;ud(b);break b}a=Z()|0;vc(e+8|0);ud(b);break b}a=Z()|0}$c(e+48|0);ba(a|0);B()}ea(0)|0;yc();B()}function I6(a){var b=0,c=0,d=0,e=0,f=0;if(a){c=J[a+100>>2];b=J[a>>2];if(b)gc[J[c+8>>2]](c,b);J[a>>2]=0;b=J[a+92>>2];if(b){_C(b,c);b=J[a+92>>2];if(b)gc[J[c+8>>2]](c,b);J[a+92>>2]=0}b=J[a+84>>2];if(b)gc[J[c+8>>2]](c,b);J[a+84>>2]=0;e=J[a+72>>2];if(e){b=0;while(1){d=b<<4;f= -d+J[a+80>>2]|0;if(J[f+4>>2]==1){e=J[f+12>>2];if(e)gc[J[c+8>>2]](c,e);J[(d+J[a+80>>2]|0)+12>>2]=0;e=J[a+72>>2]}b=b+1|0;if(e>>>0>b>>>0)continue;break}}b=J[a+80>>2];if(b)gc[J[c+8>>2]](c,b);J[a+80>>2]=0;if(J[a+52>>2]){b=J[a+56>>2];e=0;while(1){d=J[b>>2];if(d)gc[J[c+8>>2]](c,d);J[b>>2]=0;d=J[b+24>>2];if(d)gc[J[c+8>>2]](c,d);J[b+24>>2]=0;b=b+36|0;e=e+1|0;if(e>>>0>2])continue;break}}if(J[a+64>>2]){b=J[a+68>>2];e=0;while(1){d=J[b>>2];if(d)gc[J[c+8>>2]](c,d);J[b>>2]=0;d=J[b+24>>2];if(d)gc[J[c+8>>2]](c, -d);J[b+24>>2]=0;b=b+36|0;e=e+1|0;if(e>>>0>2])continue;break}}b=J[a+56>>2];if(b)gc[J[c+8>>2]](c,b);e=0;J[a+56>>2]=0;b=J[a+68>>2];if(b)gc[J[c+8>>2]](c,b);J[a+68>>2]=0;_C(a+112|0,c);b=J[a+104>>2];if(J[a+108>>2]){while(1){d=J[b>>2];if(d)gc[J[c+8>>2]](c,d);J[b>>2]=0;if(J[b+4>>2]==1){d=J[b+12>>2];if(d)gc[J[c+8>>2]](c,d);J[b+12>>2]=0}b=b+16|0;e=e+1|0;if(e>>>0>2])continue;break}b=J[a+104>>2]}if(b)gc[J[c+8>>2]](c,b);J[a+104>>2]=0}}function F0a(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;e=J[a+8>>2];l=J[a+12>>2];if(e>>>0>>0){j=J[a+20>>2];c=J[a+4>>2];if(J[c+52>>2]==1){hi(c,740944,4,a+16|0,j,a+24|0,-1,b);c=J[a+4>>2];J[c+52>>2]=0}d=J[a+16>>2];f=J[c+56>>2];a:{if(!f){h=e;c=0;break a}J[c+56>>2]=0;c=1}b:{while(1){c:{d:{e:{f:{g:{if(!c){if(h>>>0>=l>>>0){e=h;break b}if(d>>>0>=j>>>0){e=h;break b}e=h+2|0;f=L[h>>1];c=e;if((f&63488)!=55296)break g;if((f&64512)!=55296)break f;c=1;continue}if(e>>>0>=l>>>0)break e;h=L[e>>1];if((h&64512)!=56320)break f;f=(h+(f<<10)|0)-56613888|0; -c=e+2|0}h=c;c=f>>>8|0;i=f>>>16&31;h:{if(d>>>0>>0){H[d|0]=0;d=d+1|0;break h}g=J[a+4>>2];k=H[g+63|0];H[g+63|0]=k+1;H[(g+k|0)+76|0]=0;J[b>>2]=15}i:{if(d>>>0>=j>>>0){g=J[a+4>>2];k=H[g+63|0];H[g+63|0]=k+1;H[(g+k|0)+76|0]=i;J[b>>2]=15;break i}H[d|0]=i;d=d+1|0}j:{if(d>>>0>=j>>>0){i=J[a+4>>2];g=H[i+63|0];H[i+63|0]=g+1;H[(i+g|0)+76|0]=c;J[b>>2]=15;break j}H[d|0]=c;d=d+1|0}if(d>>>0>=j>>>0){c=J[a+4>>2];i=H[c+63|0];H[c+63|0]=i+1;H[(c+i|0)+76|0]=f;J[b>>2]=15;break d}H[d|0]=f;d=d+1|0;break d}J[J[a+4>>2]+56>> -2]=f;break c}J[J[a+4>>2]+56>>2]=f;if(K[a+2|0])break c;break b}c=0;continue}break}J[b>>2]=12}if(!(d>>>0>>0|e>>>0>=l>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=e;J[a+16>>2]=d}}function B0a(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;e=J[a+8>>2];l=J[a+12>>2];if(e>>>0>>0){i=J[a+20>>2];c=J[a+4>>2];if(J[c+52>>2]==1){hi(c,740952,4,a+16|0,i,a+24|0,-1,b);c=J[a+4>>2];J[c+52>>2]=0}d=J[a+16>>2];f=J[c+56>>2];a:{if(!f){h=e;c=0;break a}J[c+56>>2]=0;c=1}b:{while(1){c:{d:{e:{f:{g:{if(!c){if(h>>>0>= -l>>>0){e=h;break b}if(d>>>0>=i>>>0){e=h;break b}e=h+2|0;f=L[h>>1];c=e;if((f&63488)!=55296)break g;if((f&64512)!=55296)break f;c=1;continue}if(e>>>0>=l>>>0)break e;h=L[e>>1];if((h&64512)!=56320)break f;f=(h+(f<<10)|0)-56613888|0;c=e+2|0}h=c;c=f>>>8|0;j=f>>>16&31;h:{if(d>>>0>>0){H[d|0]=f;d=d+1|0;break h}g=J[a+4>>2];k=H[g+63|0];H[g+63|0]=k+1;H[(g+k|0)+76|0]=f;J[b>>2]=15}i:{if(d>>>0>=i>>>0){g=J[a+4>>2];k=H[g+63|0];H[g+63|0]=k+1;H[(g+k|0)+76|0]=c;J[b>>2]=15;break i}H[d|0]=c;d=d+1|0}j:{if(d>>>0>=i>>> -0){c=J[a+4>>2];g=H[c+63|0];H[c+63|0]=g+1;H[(c+g|0)+76|0]=j;J[b>>2]=15;break j}H[d|0]=j;d=d+1|0}if(d>>>0>=i>>>0){c=J[a+4>>2];j=H[c+63|0];H[c+63|0]=j+1;H[(c+j|0)+76|0]=0;J[b>>2]=15;break d}H[d|0]=0;d=d+1|0;break d}J[J[a+4>>2]+56>>2]=f;break c}J[J[a+4>>2]+56>>2]=f;if(K[a+2|0])break c;break b}c=0;continue}break}J[b>>2]=12}if(!(d>>>0>>0|e>>>0>=l>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=e;J[a+16>>2]=d}}function uV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=bc-16|0;bc=e;a:{b:{d=J[a+56>>2];if(!d)break b;J[d+4>>2]= -J[d+4>>2]+1;c=a+56|0;d=J[c>>2];J[e+12>>2]=d;if(!d)break b;J[695492]=0;aa(4985,c|0,0)|0;c=J[695492];J[695492]=0;c:{d:{e:{f:{if((c|0)==1)break f;if(!b)break c;b=J[689872];if(!b){J[695492]=0;b=$(4,28)|0;c=J[695492];J[695492]=0;if((c|0)==1)break f;J[b+4>>2]=0;J[b+24>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2385980;J[b+16>>2]=0;J[b+20>>2]=0;J[695492]=0;c=b+8|0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;qc(ed(b));break d}J[689872]=b}J[695492]=0;J[e+8>> -2]=0;c=e+8|0;aa(4985,c|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[695492]=0;ca(5064,b|0,d+44|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break c}break a}a=Z()|0;break d}a=Z()|0;vc(e+8|0)}vc(e+12|0);ba(a|0);B()}J[695492]=0;a=J[d+4>>2]-1|0;J[d+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)!=1){if(a)break b; -J[695492]=0;_(4987,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}bc=e+16|0;return}ea(0)|0;yc();B()}function lTa(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;g=bc-16|0;bc=g;J[g>>2]=13;d=rc(16);J[695492]=0;f=$(3185,d|0)|0;c=J[695492];J[695492]=0;a:{b:{c:{d:{if((c|0)!=1){h=cm(a,J[a+32>>2],803707,g);if(J[h>>2]!=3)break a;d=rt(J[h+8>>2]);c=J[d+8>>2];if((c|0)<2)break b;if(!sd(J[J[d>>2]+4>>2],805830)){a=1;break c}c=J[d+8>>2];if((c|0)<3)break b;if(!sd(J[J[d>>2]+8>>2],805830)){a=2;break c}c= -J[d+8>>2];if((c|0)<4)break b;if(!sd(J[J[d>>2]+12>>2],805830)){a=3;break c}if(!sd(J[J[d>>2]+12>>2],806224)){a=3;break d}c=J[d+8>>2];if((c|0)<5)break b;a=4;while(1){c=a<<2;if(!sd(J[c+J[d>>2]>>2],805830))break c;if(!sd(J[c+J[d>>2]>>2],806224))break d;if(!sd(J[c+J[d>>2]>>2],806639)){e=rc(8);i=e,j=Wf(J[J[(c+J[d>>2]|0)-16>>2]+4>>2]),O[i>>3]=j;id(f,e);break d}a=a+1|0;c=J[d+8>>2];if((a|0)<(c|0))continue;break}break b}a=Z()|0;qc(d);ba(a|0);B()}c=rc(8);e=a<<2;i=c,j=Wf(J[J[(e+J[d>>2]|0)-12>>2]+4>>2]),O[i>>3]= -j;id(f,c);c=rc(8);i=c,j=Wf(J[J[(e+J[d>>2]|0)-8>>2]+4>>2]),O[i>>3]=j;id(f,c)}c=rc(8);i=c,j=Wf(J[J[(J[d>>2]+(a<<2)|0)-4>>2]+4>>2]),O[i>>3]=j;id(f,c);c=J[d+8>>2]}if((c|0)>0){a=0;while(1){e=J[J[d>>2]+(a<<2)>>2];if(e){qc(Rc(e));c=J[d+8>>2]}a=a+1|0;if((c|0)>(a|0))continue;break}}qc(dd(d))}uc(h);J[b>>2]=J[f+8>>2];bc=g+16|0;return f|0}function JQa(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=bc-4112|0;bc=f;J[f+4096>>2]=13;a:{g=b;b=f+4096|0;b:{if(J[Bc(g,802121,b,0)>>2]!=8){uc(b);break b}e=rc(8); -J[695492]=0;b=$(3184,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;e=J[f+4104>>2];gc[J[J[e>>2]+20>>2]](e);e=J[f+4104>>2];e=gc[J[J[e>>2]+40>>2]](e,f,4096)|0;if((e|0)>0)while(1){cf(b,f,e);e=J[f+4104>>2];e=gc[J[J[e>>2]+40>>2]](e,f,4096)|0;if((e|0)>0)continue;break}e=J[f+4104>>2];gc[J[J[e>>2]+24>>2]](e);uc(f+4096|0);c:{if(d){e=bc-16|0;bc=e;J[e+12>>2]=0;J[e+8>>2]=b;BI(d,3377,e+8|0,c);bc=e+16|0;break c}g=0;e=bc-16|0;bc=e;d=rc(28);J[d+8>>2]=256;J[d>>2]=0;J[695492]=0;h=aa(3376,256,4)|0;i=J[695492];J[695492]= -0;d:{if((i|0)!=1){J[d+4>>2]=h;if(J[d+8>>2])while(1){J[(g<<2)+h>>2]=0;g=g+1|0;if(g>>>0>2])continue;break}J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=1;J[e+12>>2]=0;J[e+8>>2]=b;e:{if(!BI(d,3377,e+8|0,c)){c=J[d>>2];if(c)qc(Rc(c));c=J[d+4>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[d+12>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break e;qc(d);d=0}bc=e+16|0;break d}ea(0)|0;yc();B()}a=Z()|0;qc(d);ba(a|0);B()}}e=d;qc(Rc(b));J[a+152>>2]=1}bc=f+4112|0; -return e|0}a=Z()|0;qc(e);ba(a|0);B()}function lE(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=bc-112|0;bc=d;J[d+4>>2]=0;J[d>>2]=0;b=zc(72);a:{if(!b)break a;e=wc(b,0,72);O9(a,d+8|0);b=$N(a);J[e+16>>2]=b;b:{if(!b)break b;c:{c=J[d+24>>2];d:{if((c|0)!=1196573017){a=1280;if((c|0)==1497588338)break d;if((c|0)!=1380401696)break c;a=1024;break d}a=768}J[e>>2]=a;c=J[d+28>>2];if((c|0)!=1482250784){if((c|0)!=1281450528)break c;c=513}else c=257;J[e+8>>2]=c;a=a>>>8|0;e:{if(a-4>>>0>=2){if((a|0)!=3)break c;J[e+12>>2]=3; -J[e+4>>2]=1;if(fO(b,0,d+4|0))break b;if(!fO(J[e+16>>2],1,d))break e;break b}J[e+12>>2]=3;J[e+4>>2]=3;if(eO(b,0,d+4|0))break b;if(eO(J[e+16>>2],1,d))break b}J[e+20>>2]=J[d+4>>2];J[e+36>>2]=J[d>>2];break a}ra();B()}b=J[d+4>>2];if(b){a=J[b>>2];if((a|0)>0)while(1){c=J[b+8>>2];a=a-1|0;g=a<<2;f=J[c+g>>2];h=J[f>>2];J[f>>2]=h-1;if((h|0)<=1){gc[J[J[f+4>>2]>>2]](f);qc(f);c=J[b+8>>2];a=J[b>>2]-1|0}J[c+g>>2]=0;J[b>>2]=a;if((a|0)>0)continue;break}a=J[b+8>>2];if(a)qc(a);qc(b)}b=J[d>>2];if(b){a=J[b>>2];if((a|0)> -0)while(1){c=J[b+8>>2];a=a-1|0;g=a<<2;f=J[c+g>>2];h=J[f>>2];J[f>>2]=h-1;if((h|0)<=1){gc[J[J[f+4>>2]>>2]](f);qc(f);c=J[b+8>>2];a=J[b>>2]-1|0}J[c+g>>2]=0;J[b>>2]=a;if((a|0)>0)continue;break}a=J[b+8>>2];if(a)qc(a);qc(b)}$x(e);e=0}bc=d+112|0;return e}function SN(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=bc-16|0;bc=h;c=zc(108);d=0;a:{if(!c)break a;J[c>>2]=0;J[c+4>>2]=0;e=c+4|0;d=2631872;while(1){f=d;d=d+24|0;if(J[f>>2]>0)continue;break}J[c+104>>2]=f+8;wc(c+12|0,0,92);b:{c:{d:{e:{f:{if(Lg(a,c))break f; -g=J[c>>2];if(g-65536>>>0<=4294967039)break f;d=2631872;while(1){f=d;i=J[d>>2];if((i|0)!=(g|0)){d=d+24|0;if((i|0)>=0)continue}break}J[c+104>>2]=f+8;if((g|0)==65359|g-65426>>>0<2|((g|0)==65497|(g&-16)==65328))break d;if(!Lg(a,e)){d=J[e>>2];if(d>>>0>2)break e}a=J[c+104>>2];if(!a)break b;a=J[a>>2];if(!a)break b;gc[a|0](c);break b}a=J[c+104>>2];if(!a)break b;a=J[a>>2];if(!a)break b;gc[a|0](c);break b}J[e>>2]=d-2;d=Fi(0,0);if(!d){a=J[c+104>>2];if(!a)break b;a=J[a>>2];if(!a)break b;gc[a|0](c);break b}g:{if(!xn(d, -a,J[e>>2]))if((Mg(d,0,0)|0)>=0)break g;If(d);a=J[c+104>>2];if(!a)break b;a=J[a>>2];if(!a)break b;gc[a|0](c);break b}if(gc[J[J[c+104>>2]+4>>2]](c,b,d)|0){J[c+104>>2]=0;qc(c);If(d);d=0;break a}if(J[682644]>0)gE(c,J[651370]);f=Zi(d);a=J[e>>2];if((f|0)!=(a|0)){j=h,k=a-Zi(d)|0,J[j>>2]=k;hd(198475,h)}If(d);break c}J[e>>2]=0;if(J[682644]<=0)break c;gE(c,J[651370])}if(J[c>>2]==65361)J[b>>2]=J[c+48>>2];d=c;break a}qc(c);d=0}bc=h+16|0;return d}function tT(a){var b=0,c=0,d=0,e=0,f=0,g=0;J[a+8>>2]=0;H[a+4|0]= -0;J[a>>2]=2421484;c=ch(a+16|0,a+12|0,20500,1);J[695492]=0;d=ha(5043,a+28|0,a+24|0,20500,4)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[695492]=0;e=ha(5043,a+40|0,a+36|0,20500,4)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[a+52>>2]=0;J[a+56>>2]=0;I[a+48>>1]=0;J[a+60>>2]=0;J[a+64>>2]=0;H[a+68|0]=0;J[695492]=0;b=a+72|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2401048;f=b;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;b=a+96|0;J[b+20>> -2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2401048;g=b;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;b=a+120|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2422640;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[a+144>>2]=0;J[a+148>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;H[a+168|0]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;wc(a+240|0,0,3072);H[J[a+12>>2]]=0;J[J[a+36>>2]>>2]= -0;J[J[a+24>>2]>>2]=0;J[a+8>>2]=1;return a}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;xd(g)}xd(f)}_c(e)}_c(d)}_c(c);ba(a|0);B()}function io(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=bc-16|0;bc=e;a:{b:{if((gc[J[a+4>>2]](J[a+28>>2],b,e+8|0,1)|0)==1){d=K[e+8|0];i=d;break b}f=-1;if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break a}c:{d:{if((gc[J[a+4>>2]](J[a+28>>2],b,e+9|0,1)|0)==1){d=K[e+9|0];g=d>>>24|0;k=i|d<<8;break d}if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break c;k=d<<8|i;g=0}j=g;e:{if((gc[J[a+ -4>>2]](J[a+28>>2],b,e+10|0,1)|0)==1){d=K[e+10|0];break e}if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break c}h=d;f:{if((gc[J[a+4>>2]](J[a+28>>2],b,e+11|0,1)|0)==1){d=K[e+11|0];break f}if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break c}g=d;g:{if((gc[J[a+4>>2]](J[a+28>>2],b,e+12|0,1)|0)==1){d=K[e+12|0];break g}if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break c}i=d;h:{if((gc[J[a+4>>2]](J[a+28>>2],b,e+13|0,1)|0)==1){d=K[e+13|0];break h}if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break c}f=d;i:{if((gc[J[a+4>>2]](J[a+28>>2],b,e+14|0,1)|0)== -1){d=K[e+14|0];break i}if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break c}k=k|h<<16;h=j|h>>>16;j=g>>>8|0;g=g<<24|k;j=h|j;h=g;g=f<<8;h=h|0;f=g|(i|j)|d<<16;if((gc[J[a+4>>2]](J[a+28>>2],b,e+15|0,1)|0)==1){i=h;d=f|K[e+15|0]<<24;f=0;break a}a=gc[J[a+24>>2]](J[a+28>>2],b)|0;i=a?0:h;d=a?0:f|d<<24;f=a?-1:0;break a}i=0;d=0;f=-1}J[c>>2]=i;J[c+4>>2]=d;bc=e+16|0;return f}function _Wa(a,b,c,d){a=a|0;b=b|0;c=Q(c);d=Q(d);var e=0,f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;N[a+20>>2]=d;N[a+16>>2]=c;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]= -b;J[a+12>>2]=0;J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;i=a+4|0;a:{if(b){if(b>>>0>=1073741824){J[695492]=0;_(2265,g+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B()}J[695492]=0;f=b<<2;e=$(4,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[g+8>>2]=e;b=e+f|0;J[g+16>>2]=b;J[g+12>>2]=b}J[695492]=0;h=ga(2376,g+20|0,1,g+8|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;f=J[i>>2];if(f){b=f;e=J[a+8>>2];if((b|0)!=(e|0)){while(1){b=e-12|0;j=J[b>>2];if(j){J[e-8>>2]=j;qc(j)}e=b;if((b|0)!=(f|0))continue; -break}b=J[i>>2]}J[a+8>>2]=f;qc(b);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}J[a+4>>2]=J[h>>2];J[a+8>>2]=J[h+4>>2];J[a+12>>2]=J[h+8>>2];b=0;J[h+8>>2]=0;J[h>>2]=0;J[h+4>>2]=0;f=J[g+8>>2];if(f){J[g+12>>2]=f;qc(f)}e=J[a>>2];if(e)while(1){f=J[J[a+4>>2]>>2]+(b<<2)|0;c=Q(Q(Q(Q(b>>>0)/Q(e>>>0))*Q(-255))+Q(255));b:{if(c=Q(0)){e=~~c>>>0;break b}e=0}e=P(e&255,65793)|-16777216;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;b=b+1|0;e=J[a>>2];if(b>>>0>>0)continue;break}bc=g+32|0;return a| -0}a=Z()|0;b=J[g+8>>2];if(b){J[g+12>>2]=b;qc(b)}ol(i);ba(a|0);B()}function ZC(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=bc-16|0;bc=h;J[h+8>>2]=a;J[h+12>>2]=a;g=bc-16|0;bc=g;J[g>>2]=J[h+8>>2];a=J[c+20>>2];f=a+((gc[J[c+12>>2]](g)>>>0)%M[c+4>>2]<<2)|0;e=J[f>>2];a:{if(!e)break a;i=a-4|0;while(1){if(gc[J[c+16>>2]](e,g)|0)break a;f=f-4|0;if(a>>>0>f>>>0)f=i+(J[c+4>>2]<<2)|0;e=J[f>>2];if(e)continue;break}}b:{c:{d:{a=J[f>>2];e:{if(!a){e=64;a=gc[J[d+4>>2]](d,8)|0;if(!a)break b;J[f>>2]=a;e=J[h+8>>2];J[a+ -4>>2]=b;J[a>>2]=e;f:{if(M[c+8>>2]>2])break f;i=J[c+4>>2];a=i<<1;J[c+4>>2]=a;J[c>>2]=(a>>>0)/3;e=0;if((a|0)<0){e=6;break c}b=J[c+20>>2];if(a){e=10;if(a>>>0>536870911)break c;a=i<<3;e=gc[J[d+4>>2]](d,a)|0;if(!e)break d;wc(e,0,a)}J[c+20>>2]=e;if(i){a=b;while(1){e=J[a>>2];if(e){J[g+8>>2]=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);j=J[c+20>>2];f=j+((gc[J[c+12>>2]](g+8|0)>>>0)%M[c+4>>2]<<2)|0;e=J[f>>2];g:{if(!e)break g;l=j-4|0;while(1){if(gc[J[c+16>>2]](e,g+8|0)|0)break g;f=f-4|0;if(j>>>0>f>>> -0)f=(J[c+4>>2]<<2)+l|0;e=J[f>>2];if(e)continue;break}}J[f>>2]=J[a>>2]}a=a+4|0;k=k+1|0;if((i|0)!=(k|0))continue;break}}if(!b)break f;gc[J[d+8>>2]](d,b)}J[c+8>>2]=J[c+8>>2]+1;break e}J[a+4>>2]=b}e=0;break b}J[c+20>>2]=0;e=64;break b}J[c+20>>2]=0}bc=g+16|0;bc=h+16|0;return e}function jT(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-112|0;bc=e;b=(b|0)==-1?J[a+60>>2]:b;a:{b:{c:{d:{e:{if(!(K[a+13|0]&64|(L[a+138>>1]!=1|L[a+90>>1]!=6))){J[e+84>>2]=e+110;J[e+80>>2]=e+108;ce(a,530,e+80|0);d=L[e+108>>1];h=P(d,L[e+110>> -1]);if(!h){b=0;Nc(J[a+628>>2],J[a>>2],70796,0);break a}c=J[a+56>>2];if(c>>>0<0-d>>>0)c=((c+d|0)-1>>>0)/(d>>>0)|0;else c=0;d=P(c,d);f=L[a+84>>1];c=Dzb(d,0,f,0);g=(fc|0)!=0;f:{g:{if(f){if(!g)break g;f=J[a>>2];c=J[a+628>>2];J[e+48>>2]=71689;Nc(c,f,73480,e+48|0);f=L[a+84>>1];c=Dzb(f,0,d,0);g=(fc|0)!=0;d=!f;break e}if(c&7)break f;d=1;break e}if(!(c&7))break d;if(!g)break f;d=J[a>>2];c=J[a+628>>2];J[e+64>>2]=71689;Nc(c,d,73480,e- -64|0);c=0}c=(c>>>3|0)+1|0;break b}c=_i(a);b=Dzb(c,0,b,0);d=fc;if(!c|!d)break a; -b=J[a>>2];a=J[a+628>>2];J[e+96>>2]=71689;Nc(a,b,73480,e+96|0);b=0;break a}if(d)break c}if(!g)break c;d=J[a>>2];c=J[a+628>>2];J[e+32>>2]=71689;Nc(c,d,73480,e+32|0);c=0}c=c>>>3|0}d=L[e+110>>1];if(0-d>>>0>b>>>0)b=((b+d|0)-1>>>0)/(d>>>0)|0;else b=0;b=Dzb(c,0,P(b,d),0);d=fc;if(!(!c|!d)){c=J[a>>2];b=J[a+628>>2];J[e+16>>2]=71689;Nc(b,c,73480,e+16|0);b=0}c=(b|0)/(h|0)|0;if((c|0)>=0){b=(c<<1)+b|0;break a}c=J[a>>2];a=J[a+628>>2];J[e>>2]=71689;Nc(a,c,73480,e)}bc=e+112|0;return b}function K0a(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;f=J[a+4>>2];m=f+37|0;n=J[f+24>>2];l=J[a+12>>2];g=J[a+8>>2];i=J[f+44>>2];e=J[a+16>>2];k=J[a+20>>2];a:{if(!(!i|e>>>0>=k>>>0)){J[f+44>>2]=0;h=H[f+36|0];H[f+36|0]=0;c=J[f+48>>2];d=0;break a}d=1}b:{c:{d:{while(1){e:{f:{g:{if(!d){h:{if((c|0)<=(h|0))break h;while(1){if(g>>>0>=l>>>0)break d;d=K[g|0];H[h+m|0]=d;if((d&192)!=128)break h;g=g+1|0;i=d+(i<<6)|0;h=h+1|0;if((h|0)!=(c|0))continue;break}h=c}if((c|0)!=(h|0))break c;j=c<<2;d=i-J[j+739600>>2]|0;if(d>>> -0>1114111|d>>>0>2])break c;i:{if((n|0)==739104){if((c|0)<4)break i;break c}if((d&-2048)==55296)break c}if(d>>>0>65535)break g;I[e>>1]=d;e=e+2|0;break f}c=g;while(1){if(c>>>0>=l>>>0){g=c;break b}if(e>>>0>=k>>>0){g=c;break b}g=c+1|0;i=K[c|0];c=i<<24>>24;if((c|0)>=0){I[e>>1]=c&255;e=e+2|0;c=g;continue}break}H[m|0]=c;c=H[i+739344|0];h=1;d=0;continue}I[e>>1]=(d+67043328>>>10|0)-10240;j=d&1023|-9216;d=e+2|0;if(d>>>0>=k>>>0)break e;I[e+2>>1]=j;e=e+4|0}d=1;continue}break}H[f+65|0]=1;I[f+116>> -1]=j;J[b>>2]=15;e=d;break b}J[f+48>>2]=c;J[f+44>>2]=i;H[f+36|0]=h;break b}H[f+36|0]=h;J[b>>2]=12}if(!(e>>>0>>0|g>>>0>=l>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=g;J[a+16>>2]=e}function HK(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;b=bc-32800|0;bc=b;c=b+32|0;wc(c,0,32768);d=bc-16|0;bc=d;e=Va(-100,13237,c|0,32768)|0;c=(d+15|0)==(c|0)?(e|0)<=0?e:0:e;if(c>>>0>=4294963201){J[694731]=0-c;c=-1}bc=d+16|0;a:{b:{c:{if((c|0)<=0){J[a>>2]=0;H[a+11|0]=0;break c}c=Qc(b+32|0);if(c>>>0>=2147483632)break b;d:{if(c>>> -0<=10){H[b+31|0]=c;d=b+20|0;break d}e=(c|15)+1|0;d=rc(e);J[b+28>>2]=e|-2147483648;J[b+20>>2]=d;J[b+24>>2]=c}g=tc(d,b+32|0,c)+c|0,h=0,H[g|0]=h;J[b+16>>2]=0;J[695492]=0;J[b+8>>2]=0;J[b+12>>2]=0;c=H[b+31|0];d=(c|0)<0;ca(2852,(d?J[b+20>>2]:b+20|0)|0,(d?J[b+24>>2]:c&255)|0,b+8|0);c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;if(H[b+19|0]<0)qc(J[b+8>>2]);if(H[b+31|0]<0)qc(J[b+20>>2]);ba(a|0);B()}c=J[b+12>>2];J[a>>2]=J[b+8>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+16>>2];if(H[b+31|0]>=0)break c;qc(J[b+20>>2])}bc=b+32800| -0;break a}Id(b+20|0);B()}b=An(a,47);e:{c=An(a,92);f:{g:{if((c|0)!=-1){b=(b|0)==-1?c:b>>>0>>0?c:b;break g}if((b|0)==-1)break f}J[695492]=0;b=ma(2797,f|0,a|0,0,b|0,f+15|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(H[a+11|0]<0)qc(J[a>>2]);c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2]}bc=f+16|0;return}b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}function xTa(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;f=J[a+420>>2];if(J[a+236>>2]){d=J[f+68>>2];if(!d){_v(a,J[f+ -72>>2]);d=J[a+236>>2];J[f+72>>2]=J[f+72>>2]+1&7}J[f+68>>2]=d-1}h=J[b>>2];i=J[a+380>>2];d=J[a+292>>2];b=J[a+364>>2];g=b;e=b;a:{if((e|0)<=0)break a;b:{c:{while(1){e=I[(J[(g<<2)+i>>2]<<1)+h>>1];d:{if((e|0)>=0){if(!(e>>>J[a+372>>2]|0))break d;break c}if(0-e>>>J[a+372>>2]|0)break c}e=(g|0)>1;g=g-1|0;if(e)continue;break}g=0;break b}e=g;while(1){c=I[(J[(e<<2)+i>>2]<<1)+h>>1];e:{if((c|0)>=0){if(!(c>>>J[a+368>>2]|0))break e;break a}if(0-c>>>J[a+368>>2]|0)break a}c=(e|0)>1;e=e-1|0;if(c)continue;break}}e=0}j= -J[d+24>>2];c=J[a+360>>2];if((g|0)>=(c|0)){k=f+204|0;l=(j<<2)+f|0;while(1){d=(J[l+140>>2]+P(c,3)|0)-3|0;if((c|0)>(e|0))Oe(a,d,0);b=c;f:{while(1){g:{h:{c=I[(J[(b<<2)+i>>2]<<1)+h>>1];if((c|0)>=0){c=c>>>J[a+372>>2]|0;if(!c)break h;if((c|0)==1)break g;Oe(a,d+2|0,c&1);break f}c=0-c>>>J[a+372>>2]|0;if(!c)break h;if((c|0)!=1){Oe(a,d+2|0,c&1);break f}Oe(a,d+1|0,1);Oe(a,k,1);break f}Oe(a,d+1|0,0);b=b+1|0;d=d+3|0;continue}break}Oe(a,d+1|0,1);Oe(a,k,0)}c=b+1|0;if((b|0)<(g|0))continue;break}b=J[a+364>>2]}if((b| -0)>=(c|0))Oe(a,(J[((j<<2)+f|0)+140>>2]+P(c,3)|0)-3|0,1);return 1}function zB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;a:{b:{c:{if(!a)break c;d=J[a+80>>2];if(!d)break c;c=le(d,b,-1);if(!c){d=0;break a}d=0;b=gc[J[659447]](60)|0;if(!b){J[f>>2]=14563;Cc(0,0,0,0,0,2,2,3,14563,0,0,0,32863,f);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]= -1;J[b+36>>2]=0;J[b+8>>2]=c;d:{if(!J[689540])break d;d=J[689537];if(!d)break d;gc[d|0](b)}d=b;break b}d=0;g=bc-16|0;bc=g;e:{if(!b)break e;c=gc[J[659447]](60)|0;if(!c){J[g>>2]=14563;Cc(0,0,0,0,0,2,2,3,14563,0,0,0,32863,g);break e}J[c>>2]=0;J[c+4>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=1;d=b;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}d=0;e=e-b|0;f:{if((e| -0)<0)break f;h=gc[J[659450]](e+1|0)|0;if(!h){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break f}d=tc(h,b,e);H[e+d|0]=0}J[c+36>>2]=0;J[c+8>>2]=d;g:{if(!J[689540])break g;b=J[689537];if(!b)break g;gc[b|0](c)}d=c}bc=g+16|0;if(d)break b;d=0;break a}J[d+32>>2]=a}bc=f+16|0;return d}function ck(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;i=bc-16|0;bc=i;m=1;a:{if(!b)break a;J[b>>2]=0;d=!a;if(d|((d?-1:J[a+8>>2])|0)!=1)break a;d=c;b:{if(d)break b;d=0;f=bd(256,4);if(!f)break b;while(1){J[f+ -(d<<2)>>2]=(((((((d&1)+(d>>>7|0)|0)+(d>>>1&1)|0)+(d>>>2&1)|0)+(d>>>3&1)|0)+(d>>>4&1)|0)+(d>>>5&1)|0)+(d>>>6&1);d=d+1|0;if((d|0)!=256)continue;break}d=f}m=0;xf(a,i+12|0,i+8|0,0);g=a?J[a+12>>2]:-1;f=a?J[a+40>>2]:0;a=0;j=J[i+8>>2];c:{if((j|0)<=0)break c;a=J[i+12>>2];k=a&31;n=-1<<32-k;l=a>>5;if((l|0)>0){a=0;while(1){e=0;while(1){h=J[(e<<2)+f>>2];if(h)a=J[(h>>>22&1020)+d>>2]+(J[(h>>>14&1020)+d>>2]+(J[(h>>>6&1020)+d>>2]+(J[((h&255)<<2)+d>>2]+a|0)|0)|0)|0;e=e+1|0;if((l|0)!=(e|0))continue;break}d:{if(!k)break d; -e=J[(l<<2)+f>>2]&n;if(!e)break d;a=J[(e>>>22&1020)+d>>2]+(J[(e>>>14&1020)+d>>2]+(J[(e>>>6&1020)+d>>2]+(J[((e&255)<<2)+d>>2]+a|0)|0)|0)|0}f=(g<<2)+f|0;o=o+1|0;if((o|0)!=(j|0))continue;break}break c}if(!k){a=0;break c}h=g<<2;a=0;while(1){g=J[f>>2]&n;if(g)a=J[(g>>>22&1020)+d>>2]+(J[(g>>>14&1020)+d>>2]+(J[(g>>>6&1020)+d>>2]+(J[((g&255)<<2)+d>>2]+a|0)|0)|0)|0;f=f+h|0;e=e+1|0;if((j|0)!=(e|0))continue;break}}J[b>>2]=a;if(c)break a;qc(d)}bc=i+16|0;return m|0}function Jqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;if(e){m=e-2|0;p=(e|0)==1;while(1){a=f;h=L[a>>1];I[g>>1]=h;f=a+2|0;g=g+2|0;a:{if(l>>>0>m>>>0)break a;i=l?(l|0)==(m|0)?d:b:c;j=!l&p;if(j){if(i>>>0<2)break a;a=i-1|0;j=a&7;if(i-2>>>0>=7){i=a&-8;a=0;while(1){I[g+14>>1]=h;I[g+12>>1]=h;I[g+10>>1]=h;I[g+8>>1]=h;I[g+6>>1]=h;I[g+4>>1]=h;I[g+2>>1]=h;I[g>>1]=h;g=g+16|0;a=a+8|0;if((i|0)!=(a|0))continue;break}}a=0;if(!j)break a;while(1){I[g>>1]=h;g=g+2|0;a=a+1|0;if((j|0)!=(a|0))continue;break}break a}if((h| -0)!=L[f>>1]){if(i>>>0<2)break a;j=j?0:f;h=1;q=i<<1;while(1){k=K[a|0]|K[a+1|0]<<8;n=k>>>8|0;o=K[j|0]|K[j+1|0]<<8;k=((k<<8|n)&65535)+((i+(P(((o<<8|o>>>8)&65535)-((n|k<<8)&65535)|0,h)<<1)|0)/(q|0)|0)&65535;k=k<<8|k>>>8;H[g|0]=k;H[g+1|0]=k>>>8;g=g+2|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}if(i>>>0<2)break a;a=i-1|0;j=a&7;if(i-2>>>0>=7){i=a&-8;a=0;while(1){I[g+14>>1]=h;I[g+12>>1]=h;I[g+10>>1]=h;I[g+8>>1]=h;I[g+6>>1]=h;I[g+4>>1]=h;I[g+2>>1]=h;I[g>>1]=h;g=g+16|0;a=a+8|0;if((i|0)!=(a|0))continue; -break}}a=0;if(!j)break a;while(1){I[g>>1]=h;g=g+2|0;a=a+1|0;if((j|0)!=(a|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function dwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=bc-32|0;bc=g;a:{b:{if(J[b>>2]){d=0;H[a+96|0]=K[44278];b=K[44274]|K[44275]<<8|(K[44276]<<16|K[44277]<<24);c=K[44270]|K[44271]<<8|(K[44272]<<16|K[44273]<<24);H[a+88|0]=c;H[a+89|0]=c>>>8;H[a+90|0]=c>>>16;H[a+91|0]=c>>>24;H[a+92|0]=b;H[a+93|0]=b>>>8;H[a+94|0]=b>>>16;H[a+95|0]=b>>>24;b=K[44266]|K[44267]<< -8|(K[44268]<<16|K[44269]<<24);c=K[44262]|K[44263]<<8|(K[44264]<<16|K[44265]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[44258]|K[44259]<<8|(K[44260]<<16|K[44261]<<24);c=K[44254]|K[44255]<<8|(K[44256]<<16|K[44257]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;break b}e=Gx(g+4|0,0,0);J[695492]=0;$(52,e|0)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break a;J[695492]=0;d=ga(51,a|0,e|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;if(d){J[695492]=0;H[e+12|0]=0;a=J[e+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b>>2]=a;J[695492]=0;a=J[e+8>>2];b=J[e+4>>2];f=J[695492];J[695492]=0;if((f|0)==1)break a;J[c>>2]=b?a:-1}un(e)}bc=g+32|0;return d|0}a=Z()|0;un(e);ba(a|0);B()}function ZA(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=bc+-64|0;bc=c;J[c+48>>2]=13;J[c+32>>2]=13;a:{if(J[Bc(b,783590,c+48|0,0)>>2]!=6){xc(1,-1,784548,0);break a}d= -J[J[c+56>>2]+12>>2];J[a+4>>2]=(d|0)/2;b:{if((d|0)<=65){c:{if((d|0)>=2)while(1){f=e<<1;d=c+32|0;Mc(J[c+56>>2],f,d,0);h=786143;g=J[c+32>>2];if(g-3>>>0<4294967294)break c;i=(e<<4)+a|0;O[i+16>>3]=(g|0)==1?+J[c+40>>2]:O[c+40>>3];uc(d);Mc(J[c+56>>2],f|1,d,0);f=J[c+32>>2];if(f-3>>>0<4294967294)break c;O[i+24>>3]=(f|0)==1?+J[c+40>>2]:O[c+40>>3];uc(d);e=e+1|0;if((e|0)>2])continue;break}d=c+48|0;uc(d);J[a+8>>2]=0;J[a+1040>>2]=0;e=1;if(J[Bc(b,787258,d,0)>>2]!=6)break a;J[a+1040>>2]=1;b=J[J[c+56>>2]+12>> -2];J[a+8>>2]=(b|0)/2;if((b|0)>65)break b;if((b|0)<2)break a;b=0;while(1){e=b<<1;d=c+32|0;Mc(J[c+56>>2],e,d,0);h=788840;f=J[c+32>>2];if(f-3>>>0<4294967294)break c;g=(b<<4)+a|0;O[g+528>>3]=(f|0)==1?+J[c+40>>2]:O[c+40>>3];uc(d);Mc(J[c+56>>2],e|1,d,0);f=J[c+32>>2];if(f-3>>>0<4294967294)break c;e=1;O[g+536>>3]=(f|0)==1?+J[c+40>>2]:O[c+40>>3];uc(d);b=b+1|0;if((b|0)>2])continue;break}break a}e=0;xc(1,-1,h,0);uc(c+32|0);break a}J[c>>2]=32;xc(1,-1,785481,c);break a}J[c+16>>2]=32;xc(1,-1,788147,c+16| -0);e=0}uc(c+48|0);bc=c- -64|0;return e}function EY(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=J[a+4>>2];if(J[a+8>>2]>=((i|0)/2|0)){d=i<<1|1;J[a+4>>2]=d;k=J[a>>2];d=vd(d,8);J[a>>2]=d;h=J[a+4>>2];a:{if((h|0)<=0)break a;if(h>>>0>=8){j=h&-8;while(1){e=f<<3;J[e+d>>2]=0;J[d+(e|8)>>2]=0;J[d+(e|16)>>2]=0;J[d+(e|24)>>2]=0;J[d+(e|32)>>2]=0;J[d+(e|40)>>2]=0;J[d+(e|48)>>2]=0;J[d+(e|56)>>2]=0;f=f+8|0;l=l+8|0;if((j|0)!=(l|0))continue;break}}e=h&7;if(!e)break a;while(1){J[d+(f<<3)>>2]=0;f=f+1|0;g=g+1|0;if((e| -0)!=(g|0))continue;break}}g=0;if((i|0)>0)while(1){h=(g<<3)+k|0;e=J[h>>2];if(e){f=0;d=K[e|0];if(d)while(1){f=P(f,17)+(d&255)|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}j=J[a>>2];d=f;f=J[a+4>>2];e=(d>>>0)%(f>>>0)|0;d=j+(e<<3)|0;if(J[d>>2])while(1){d=e+1|0;e=(d|0)!=(f|0)?d:0;d=j+(e<<3)|0;if(J[d>>2])continue;break}e=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=e}g=g+1|0;if((i|0)!=(g|0))continue;break}Gc(k)}f=0;e=K[b|0];if(e){d=b;while(1){f=P(f,17)+(e&255)|0;e=K[d+1|0];d=d+1|0;if(e)continue;break}}g=J[a>>2];d=f; -f=J[a+4>>2];e=(d>>>0)%(f>>>0)|0;d=J[g+(e<<3)>>2];b:{if(d)while(1){if(!Ec(d,b))break b;d=e+1|0;e=(d|0)!=(f|0)?d:0;d=J[(e<<3)+g>>2];if(d)continue;break}b=Md(b);g=J[a>>2];J[g+(e<<3)>>2]=b}J[((e<<3)+g|0)+4>>2]=c;J[a+8>>2]=J[a+8>>2]+1}function CUa(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{h=J[c>>2];if(h>>>0>=d>>>0)break a;j=J[a+396>>2];m=j+8|0;while(1){if(M[f>>2]>=g>>>0)break a;k=J[j+52>>2];i=J[a+272>>2]-k|0;l=d-h|0;i=i>>>0>>0?i:l;gc[J[J[a+408>> -2]+4>>2]](a,(h<<2)+b|0,m,k,i);J[c>>2]=i+J[c>>2];k=i+J[j+52>>2]|0;J[j+52>>2]=k;l=J[j+48>>2];J[j+48>>2]=l-i;h=J[a+272>>2];b:{c:{if(!((i|0)!=(l|0)|(h|0)<=(k|0))){i=0;k=J[a+76>>2];if((k|0)>0){while(1){h=J[j+52>>2];l=J[a+272>>2];if((h|0)<(l|0)){k=J[(j+(i<<2)|0)+8>>2];n=J[a+28>>2];o=h-1|0;while(1){jn(k,o,k,h,1,n);h=h+1|0;if((l|0)!=(h|0))continue;break}k=J[a+76>>2]}i=i+1|0;if((k|0)>(i|0))continue;break}h=J[a+272>>2]}J[j+52>>2]=h;break c}if((h|0)!=(k|0))break b}gc[J[J[a+412>>2]+4>>2]](a,m,0,e,J[f>>2]);J[j+ -52>>2]=0;J[f>>2]=J[f>>2]+1}if(!(J[j+48>>2]|M[f>>2]>=g>>>0)){c=J[a+76>>2];if((c|0)>0){i=J[a+84>>2];b=0;while(1){d=(P(J[i+40>>2],J[i+12>>2])|0)/J[a+280>>2]|0;h=P(d,J[f>>2]);d=P(d,g);if((h|0)<(d|0)){j=P(J[i+36>>2],J[i+28>>2]);c=J[(b<<2)+e>>2];m=h-1|0;while(1){jn(c,m,c,h,1,j);h=h+1|0;if((d|0)!=(h|0))continue;break}c=J[a+76>>2]}i=i+88|0;b=b+1|0;if((c|0)>(b|0))continue;break}}J[f>>2]=g;return}h=J[c>>2];if(h>>>0>>0)continue;break}}}function fx(a){a=a|0;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;c=J[a+532>>2];if(c){h=J[c+4>>2];f=J[c>>2];e=J[a+100>>2];b=J[c+24>>2];if(b)gc[J[e+8>>2]](e,b);J[c+24>>2]=0;if(f>>>0>=2)wc(c+28|0,0,(f<<2)-4|0);b=J[c+216>>2];if(b)gc[J[e+8>>2]](e,b);J[c+216>>2]=0;b=J[c+148>>2];if(b)gc[J[e+8>>2]](e,b);J[c+148>>2]=0;b=J[c+288>>2];if(b)gc[J[e+8>>2]](e,b);J[c+288>>2]=0;a:{if(!f)break a;if(f>>>0>=4){n=f&-4;i=c+212|0;j=c+144|0;k=c+284|0;while(1){b=d<<2;J[b+i>>2]=0;J[b+j>>2]=0;J[b+k>>2]=0;g=b|4;J[g+i>>2]=0;J[g+j>>2]=0;J[g+k>>2]=0;g=b|8;J[g+i>>2]=0;J[g+j>>2]=0;J[g+ -k>>2]=0;b=b|12;J[b+i>>2]=0;J[b+j>>2]=0;J[b+k>>2]=0;d=d+4|0;l=l+4|0;if((l|0)!=(n|0))continue;break}}b=f&3;if(!b)break a;while(1){f=c+(d<<2)|0;J[f+284>>2]=0;J[f+144>>2]=0;J[f+212>>2]=0;d=d+1|0;m=m+1|0;if((b|0)!=(m|0))continue;break}}d=J[c+136>>2];if(d)gc[J[e+8>>2]](e,d);J[c+136>>2]=0;J[c+140>>2]=0;b:{if(!h)break b;d=0;while(1){f=c+(d<<2)|0;b=J[f+8>>2];if(b)gc[J[e+8>>2]](e,b);J[f+8>>2]=0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!h)break b;f=c+88|0;d=0;while(1){c=f+P(d,12)|0;b=J[c+4>>2];if(b)gc[J[e+ -8>>2]](e,b);H[c|0]=0;J[c+4>>2]=0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=J[a+532>>2];if(c)gc[J[e+8>>2]](e,c);J[a+532>>2]=0}}function HO(a){var b=0,c=0,d=0,e=0,f=0,g=0;g=bc-16|0;bc=g;a:{b:{c:{b=J[a+584>>2];if(!K[b+205|0]){if(!K[b+303|0]){Nc(J[a+628>>2],96864,87854,0);break b}if(!zn(b,g+14|0))break b;e=K[b+194|0];if(L[g+14>>1]!=((e<<1)+6|0)){Nc(J[a+628>>2],96864,87854,0);break b}c=L[b+1148>>1];if(!c){if(!Jj(b))break b;c=L[b+1148>>1];if(!c)break a;e=K[b+194|0]}d=J[b+1152>>2];f=K[d|0];c=c-1|0;I[b+1148>> -1]=c;d=d+1|0;J[b+1152>>2]=d;e=e&255;if((e|0)!=(f|0))break c;if(e){a=0;while(1){d=L[b+1148>>1];if(!d){if(!Jj(b)){d=0;break b}d=L[b+1148>>1];if(!d)break a}c=J[b+1152>>2];e=K[c|0];f=d-1|0;I[b+1148>>1]=f;J[b+1152>>2]=c+1;d=K[b+193|0]+a|0;H[(d+b|0)+325|0]=e;d:{if(f&65535){e=L[b+1148>>1];break d}if(!Jj(b)){d=0;break b}e=L[b+1148>>1];if(!e)break a;d=K[b+193|0]+a|0}c=J[b+1152>>2];f=K[c|0];I[b+1148>>1]=e-1;J[b+1152>>2]=c+1;H[(b+d|0)+328|0]=f;a=a+1|0;if(a>>>0>1];d=J[b+ -1152>>2]}e=c;a=c&65535;c=a>>>0>=3?3:a;I[b+1148>>1]=e-c;J[b+1152>>2]=c+d;d=1;if(a>>>0>2)break b;H[b+1140|0]=0;a=J[b+1144>>2];c=c^3;c=(a>>>0>>0?a:c)&65535;J[b+1144>>2]=a-c;J[b+1136>>2]=c+J[b+1136>>2];break b}fa(87784,70456,1640,96864);B()}d=0;Nc(J[a+628>>2],96864,87854,0)}bc=g+16|0;return d}fa(80381,70456,1949,96701);B()}function lib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;e=bc-464|0;bc=e;f=b+8|0;g=J[f+4>>2];J[e+16>>2]=J[f>>2];J[e+20>>2]=g;J[e+40>>2]=J[b+32>>2];f=J[b+ -28>>2];J[e+32>>2]=J[b+24>>2];J[e+36>>2]=f;f=J[b+20>>2];J[e+24>>2]=J[b+16>>2];J[e+28>>2]=f;f=J[b+4>>2];g=J[b>>2];J[e+16>>2]=2;J[e+8>>2]=g;J[e+12>>2]=f;a:switch(J[b+8>>2]-7|0){case 0:case 3:J[e+16>>2]=3;break;default:break a}Lp(a,e+452|0);b:{if(J[e+460>>2]!=3){h=162;break b}i=J[a>>2];f=J[e+452>>2]+1|0;J[a>>2]=f;j=J[a+8>>2];h=J[e+456>>2]-1|0;J[a+8>>2]=h;g=e+48|0;c:{if(f>>>0>=h>>>0)break c;f=0;while(1){Lp(a,e+440|0);g=(e+48|0)+P(f,12)|0;if(!J[e+448>>2])break c;if(f>>>0<=31){h=J[e+444>>2];J[g>>2]=J[e+ -440>>2];J[g+4>>2]=h;J[g+8>>2]=J[e+448>>2]}f=f+1|0;if(M[a>>2]>2])continue;break}g=(e+48|0)+P(f,12)|0}J[a+8>>2]=j;J[a>>2]=i;f=g-(e+48|0)|0;if((f|0)<0){h=162;break b}f=(f>>>0)/12|0;g=J[b+24>>2];g=f>>>0>>0?f:g;d:{if(J[b+8>>2]==7)break d;b=J[b+28>>2];if(!b)break d;H[b+J[c>>2]|0]=g}e:{if(g){f=e+48|0;b=J[e+24>>2];k=K[e+28|0];while(1){J[a>>2]=J[f>>2];J[a+8>>2]=J[f+4>>2];h=l5(a,e+8|0,c,d,e);if(h)break e;b=b+k|0;J[e+24>>2]=b;f=f+12|0;h=(g|0)>1;g=g-1|0;if(h)continue;break}}h=0}J[a+8>>2]=j;J[a>>2]= -i}bc=e+464|0;return h|0}function kD(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;if(a&4){f=d>>31;e=(f^d)-f|0;a:{b:{c:{if((c|0)==1){if(!(a&2))break c;break b}if(a&1)break b}d:{a=P(c,7676)+b|0;if(!J[a+52>>2])break d;c=J[a+60>>2];a=e-c|0;b=a>>31;if((a^b)-b>>>0>39)break d;e=(c|0)<=48?48:c;break a}if(e>>>0<=53){e=(54-e>>>1&127)+e|0;break a}if(e>>>0>191)break a;b=e&63;if(b>>>0<10)break a;a=e&2147483584;if(b>>>0<=21){e=a|10;break a}e=b-42>>>0<12?a|54:e;break a}e:{f:{g:{h:{i:{b=P(c, -7676)+b|0;f=J[b+52>>2];if(f){l=b+56|0;q=f&1;if((f|0)!=1)break i;h=98;b=0;f=e;break h}b=e+32&2147483584;f=e;break g}r=f&-2;h=98;b=0;f=e;while(1){m=J[(P(b|1,12)+l|0)+4>>2];i=e-m|0;n=i>>31;o=J[(P(b,12)+l|0)+4>>2];g=e-o|0;j=g>>31;g=(g^j)-j|0;p=(g|0)<(h|0);i=(i^n)-n|0;g=p?g:h;j=(i|0)<(g|0);h=j?i:g;f=j?m:p?o:f;b=b+2|0;k=k+2|0;if((r|0)!=(k|0))continue;break}}if(q){k=J[(P(b,12)+l|0)+4>>2];b=e-k|0;g=b>>31;f=((b^g)-g|0)<(h|0)?k:f}b=f+32&-64;if((e|0)<(f|0))break f}b=(b|48)>(e|0)?f:e;break e}b=(b-48|0)<(e|0)? -f:e}if((c|0)==1){e=64;if((b|0)<64)break a;e=b+16&-64;break a}if(a&8){e=64;if((b|0)<64)break a;e=b+32&-64;break a}if((b|0)<=47){e=b- -64>>1;break a}if(b>>>0<=127){e=b+22&-64;break a}e=b+32&-64}d=(d|0)<0?0-e|0:e}return d}function Owa(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;f=bc+-64|0;bc=f;J[f+56>>2]=0;J[f+60>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;h=f+48|0;J[h>>2]=2386024;J[h+4>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[695492]=0;ia(5426,b|0,c|0,h|0,1);b=J[695492];J[695492]=0;a:{b:{if((b|0)==1)break b; -J[695492]=0;a=$(5082,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;c:{d:{b=J[h+8>>2];e:{if(!b)break e;i=f+20|0;while(1){e=J[b+8>>2];g=J[J[e>>2]+12>>2];J[695492]=0;j=g;g=f+12|0;ia(j|0,g|0,e|0,c|0,d|0);e=J[695492];J[695492]=0;f:{g:{h:{if((e|0)!=1){J[695492]=0;aa(5083,a|0,g|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;J[f+36>>2]=2381060;J[f+12>>2]=2381028;e=J[f+40>>2];if(e){g=J[e+4>>2]-1|0;J[e+4>>2]=g;if(!g)gc[J[J[e>>2]+4>>2]](e);J[f+40>>2]=0}J[f+28>>2]=2381060;e=J[f+32>>2];if(e){g=J[e+4>>2]- -1|0;J[e+4>>2]=g;if(!g)gc[J[J[e>>2]+4>>2]](e);J[f+32>>2]=0}sc(i);e=J[a+8>>2];if(!e|!J[e+8>>2])break f;J[695492]=0;e=f+12|0;ca(5231,e|0,a|0,0);g=J[695492];J[695492]=0;if((g|0)==1)break d;g=J[f+12>>2];if(g)break g;sc(e);break f}b=Z()|0;break c}b=Z()|0;ud(f+12|0);break c}e=J[g+8>>2];sc(f+12|0);if(e)break e}b=J[b>>2];if(b)continue;break}}$c(h);bc=f- -64|0;return}b=Z()|0}ud(a);break a}b=Z()|0}$c(h);ba(b|0);B()}function N8(a,b){var c=0,d=0;a:{if(!a)break a;b:{c:{if((b|0)>=32){c=K[a|0];if(c)break c;if(K[a+ -1|0]|K[a+2|0]|(K[a+3|0]!=12|K[a+4|0]!=106))break b;if(K[a+5|0]!=80|K[a+6|0]!=32|(K[a+7|0]!=32|K[a+8|0]!=13))break b;if(K[a+9|0]!=10|K[a+10|0]!=135|(K[a+12|0]|K[a+11|0]!=10))break b;if(K[a+13|0]|K[a+14|0]|(K[a+16|0]!=102|K[a+17|0]!=116))break b;if(K[a+18|0]!=121|K[a+19|0]!=112|(K[a+20|0]!=106|K[a+21|0]!=112))break b;if(K[a+22|0]!=50|K[a+23|0]!=32|(K[a+24|0]|K[a+25|0]))break b;if(K[a+26|0])break b;d=!K[a+27|0];break b}if((b|0)<4)break a;c=K[a|0]}d:{if((c|0)!=255)break d;if(K[a+1|0]!=79){c=255;break d}c= -255;if(K[a+2|0]!=255)break d;d=(K[a+3|0]==81)<<1}if(c|(b|0)<32)break a}if(K[a+1|0]|K[a+2|0]|(K[a+3|0]!=12|K[a+4|0]!=106))break a;if(K[a+5|0]!=80|K[a+6|0]!=32|(K[a+7|0]!=32|K[a+8|0]!=13))break a;if(K[a+9|0]!=10|K[a+10|0]!=135|(K[a+12|0]|K[a+11|0]!=10))break a;if(K[a+13|0]|K[a+14|0]|(K[a+15|0]!=24|K[a+16|0]!=102))break a;if(K[a+17|0]!=116|K[a+18|0]!=121|(K[a+19|0]!=112|K[a+20|0]!=109))break a;if(K[a+21|0]!=106|K[a+22|0]!=112|(K[a+24|0]|K[a+23|0]!=50))break a;if(K[a+25|0]|K[a+26|0]|(K[a+27|0]|K[a+28| -0]!=109))break a;if(K[a+29|0]!=106|K[a+30|0]!=112)break a;d=K[a+31|0]==50?3:d}return d}function Pmb(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=bc-1952|0;bc=g;f=qf(g+976|0,0);i=J[a+8>>2];j=J[a+16>>2];k=J[a+12>>2];e=J[a+4>>2];J[695492]=0;e=za(18,f|0,j|0,e|0,i|0,32,e<<2,(k^-1)>>>31|0,1)|0;i=J[695492];J[695492]=0;a:{b:{if((i|0)!=1){c:{if(!e)break c;J[695492]=0;e=qf(g,0);h=J[695492];J[695492]=0;d:{if((h|0)!=1){c=J[c>>2];b=J[b>>2];J[695492]=0;h=ma(24,f|0,b|0,c|0,2,e|0)|0;b=J[695492]; -J[695492]=0;if((b|0)==1)break d;if(h){if(d){b=J[a+16>>2];if(b)qc(b);b=J[a+20>>2];if(b)qc(b);J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}J[695492]=0;da(9,e|0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break d}J[e>>2]=1032;J[695492]=0;$(13,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;$(14,e|0)|0;a=J[695492];J[695492]=0; -if((a|0)!=1)break c}break a}a=Z()|0;break b}a=Z()|0;mj(e);break b}J[f>>2]=1032;J[695492]=0;$(13,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;J[695492]=0;$(14,f|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;bc=g+1952|0;return h|0}a=Z()|0}mj(f);ba(a|0);B()}ea(0)|0;yc();B()}function rw(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!a)break a;c=J[a+64>>2];if(!c)break a;b=J[a+68>>2];e=b?b:c;b=J[e+4>>2];if(b>>>0>18)break a;if(!(1<>2]}b=J[e+12>> -2];if(!(!b|J[b+4>>2]!=3|J[b+24>>2]))return J[b+40>>2];c=J[a+84>>2];b:{if(!c){b=hr(100);J[a+84>>2]=b;if(!b){gc[J[659549]](J[689514],36073,0);return 0}if(J[b+32>>2]|(J[b+12>>2]&-2)==2)break b;J[b+12>>2]=5;c=J[b+28>>2];if(!c)break b;J[c+12>>2]=5;break b}if(J[c+32>>2]){b=c;break b}d=J[c>>2];if(!d){b=c;break b}f=J[c+24>>2];b=J[c+8>>2];if(!((f|0)==(b|0)|b>>>0>2147483646)){J[c+24>>2]=b;f=b}J[c+20>>2]=0;c:{d:{e:switch(J[c+12>>2]-2|0){case 0:J[c>>2]=39181;J[c+8>>2]=f>>>0>=2147483647?2147483647:f;b=c;break c; -case 1:break e;default:break d}b=J[c+16>>2];if(!b)break d;J[c>>2]=b;J[c+24>>2]=(d+f|0)-b;d=b}H[d|0]=0;b=J[c+24>>2];J[c+8>>2]=b>>>0>=2147483647?2147483647:b;b=J[c+20>>2];g=b>>>0>=2147483647?2147483647:b;b=J[a+84>>2]}J[c+4>>2]=g}uw(b,e);b=J[a+84>>2];if(!(!b|J[b+32>>2])){d=J[b>>2];if(d)break a}OB(b);b=a;a=hr(100);J[b+84>>2]=a;d=39181;if(J[a+32>>2]|!a|(J[a+12>>2]&-2)==2)break a;J[a+12>>2]=5;a=J[a+28>>2];if(!a)break a;J[a+12>>2]=5;return 39181}d=J[e+40>>2]}return d|0}function tf(a,b,c,d){var e=0,f=0,g= -0;a:{b:{c:{if(!a|!b)break c;f=K[b|0];e=P(f,30);if(f){g=b;while(1){e=(f<<24>>24)+((e<<5)+(e>>>3|0)|0)^e;f=K[g+1|0];g=g+1|0;if(f)continue;break}}e=(e<<5)+(e>>>3|0)^e;d:{if(!c)break d;f=K[c|0];if(!f)break d;g=c;while(1){e=((f<<24>>24)+(e>>>3|0)|0)+(e<<5)^e;f=K[g+1|0];g=g+1|0;if(f)continue;break}}e=(e<<5)+(e>>>3|0)^e;e:{if(!d)break e;f=K[d|0];if(!f)break e;g=d;while(1){e=((f<<24>>24)+(e>>>3|0)|0)+(e<<5)^e;f=K[g+1|0];g=g+1|0;if(f)continue;break}}f=J[a>>2];g=f+P((e>>>0)%M[a+4>>2]|0,24)|0;if(!J[g+20>>2])break c; -if(J[a+12>>2]){e=g;while(1){if(!(J[e+4>>2]!=(b|0)|J[e+8>>2]!=(c|0))&J[e+12>>2]==(d|0))break a;e=J[e>>2];if(e)continue;break}if(!f)break c}while(1){f:{e=J[g+4>>2];if((e|0)!=(b|0)){f=b;if(!e)break f;while(1){a=K[e|0];if((a|0)!=K[f|0])break f;f=f+1|0;e=e+1|0;if(a)continue;break}}e=J[g+8>>2];if((e|0)!=(c|0)){if(!c)break f;f=c;if(!e)break f;while(1){a=K[e|0];if((a|0)!=K[f|0])break f;f=f+1|0;e=e+1|0;if(a)continue;break}}e=J[g+12>>2];if((e|0)==(d|0))break b;if(!d)break f;f=d;if(!e)break f;while(1){a=K[e| -0];if((a|0)!=K[f|0])break f;f=f+1|0;e=e+1|0;if(a)continue;break}break b}g=J[g>>2];if(g)continue;break}}return 0}e=g}return J[e+16>>2]}function uK(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;e=J[a+4>>2];c=J[e+48>>2];a:{d=J[a+8>>2];h=J[a+12>>2];b:{if(d>>>0>=h>>>0)break b;f=J[a+24>>2];while(1){c:{if(J[b>>2]>0)break c;d:{e:switch(c|0){case 0:g=K[d|0];c=1;H[e+36|0]=1;H[e+37|0]=g;d=d+1|0;break d;case 1:f:{g:{i=K[e+37|0];c=K[d|0];if(!((i|0)!=254|(c|0)!=255)){c=8;if(J[e+24>>2]!=737500)break g;f= -9;c=255;break a}g=J[e+24>>2];h:{if(!((i|0)==255&(c&255)==254)){if((g|0)!=737900&(g|0)!=738128|(J[e+28>>2]&15)!=1)break h;f=8;break a}c=9;if((g|0)!=737100)break g;f=8;c=254;break a}c=J[a+8>>2];if((c|0)!=(d|0)){H[e+36|0]=0;d=c}c=(g|0)==737500?9:8;break f}H[e+36|0]=0;d=d+1|0;j=d-J[a+8>>2]|0}J[e+48>>2]=c;if(d>>>0>>0)continue;break c;case 8:J[a+8>>2]=d;vK(a,b);d=J[a+8>>2];c=8;break d;case 9:break e;default:break d}J[a+8>>2]=d;tK(a,b);d=J[a+8>>2];c=9}if(d>>>0>>0)continue}break}if(!f|!j)break b;g= -J[a+24>>2];if(g>>>0<=f>>>0)break b;while(1){J[f>>2]=J[f>>2]+j;f=f+4|0;if(g>>>0>f>>>0)continue;break}}J[a+8>>2]=d;i:{if(!K[a+2|0]|(d|0)!=(h|0))break i;j:switch(c-8|0){case 0:vK(a,b);J[e+48>>2]=c;return;case 1:break j;default:break i}tK(a,b)}J[e+48>>2]=c;return}H[e+36|0]=2;H[e+38|0]=c;J[a+8>>2]=d+1;J[e+48>>2]=f;J[b>>2]=18}function Pv(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-32|0;bc=c;J[c+16>>2]=13;J[c>>2]=13;d=c+16|0;Bc(b,817159,d,0);d=am(d,0);J[a+8>>2]=d;a:{if(!d){xc(1,-1,817280,0);break a}e=c+16|0;uc(e); -g=wc(a+12|0,0,132);b:{if(J[Bc(b,817680,e,0)>>2]!=6)break b;e=J[a+8>>2];if(J[J[c+24>>2]+12>>2]==(gc[J[J[e>>2]+28>>2]](e)|0)){J[a+140>>2]=1;e=J[a+8>>2];if((gc[J[J[e>>2]+28>>2]](e)|0)<=0)break b;e=0;while(1){h=(e<<2)+g|0;d=Mc(J[c+24>>2],e,c,0);f=(J[d>>2]==1?+J[d+8>>2]:O[d+8>>3])*65536;c:{if(R(f)<2147483648){d=~~f;break c}d=-2147483648}J[h>>2]=d;uc(c);d=J[a+8>>2];e=e+1|0;if((gc[J[J[d>>2]+28>>2]](d)|0)>(e|0))continue;break}break b}xc(1,-1,817832,0)}d=c+16|0;uc(d);J[a+144>>2]=0;J[a+148>>2]=0;J[a+176>>2]= -0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;e=1;if(J[Bc(b,812848,d,0)>>2]!=6)break a;b=J[c+24>>2];if(J[b+12>>2]==4){J[a+176>>2]=1;b=Mc(b,0,c,0);O[a+144>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];uc(c);b=Mc(J[c+24>>2],1,c,0);O[a+152>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];uc(c);b=Mc(J[c+24>>2],2,c,0);O[a+160>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];uc(c);b=a;a=Mc(J[c+24>>2],3,c,0);O[b+168>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];uc(c);break a}xc(1,-1,818132,0)}uc(c+16|0);bc=c+ -32|0;return e}function Ei(a,b,c){var d=0,e=0,f=0;a:{if((c|0)>0|(c|0)>=0){d=-1;e=J[a+8>>2];b:{if(e&7)break b;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break a;e=(c&16777215)<<8|b>>>24;J[a+4>>2]=J[a+4>>2]|32;d=-1;f=J[a+28>>2];J[a+28>>2]=f-1;c:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=e;break c}if((Uc(a,e&255)|0)==-1)break b}d=-1;e=J[a+8>>2];if(e&7)break b;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break a;e=(c&65535)<<16|b>>>16;J[a+4>>2]=J[a+4>>2]|32;d=-1;f=J[a+28>>2]; -J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=e;break d}if((Uc(a,e&255)|0)==-1)break b}d=-1;e=J[a+8>>2];if(e&7)break b;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break a;c=(c&255)<<24|b>>>8;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;e:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=c;break e}if((Uc(a,c&255)|0)==-1)break b}d=-1;e=J[a+8>>2];if(e&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;J[a+4>>2]=J[a+ -4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;f:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b;break f}if((Uc(a,b&255)|0)==-1)break b}d=0}return d}ra();B()}J[a+8>>2]=e|4;return-1}function Bzb(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=S(d)-S(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;dc=a-P(b,c)|0;ec=0;fc=0;return b}if(!a)break g;if(!d)break f;f=d-1|0;if(f& -d)break f;dc=a;ec=e&f;a=e>>>Czb(d)|0;fc=0;return a}f=c-1|0;if(!(f&c))break e;k=(S(c)+33|0)-S(e)|0;g=0-k|0;break c}k=e+1|0;g=63-e|0;break c}dc=0;a=(e>>>0)/(d>>>0)|0;ec=e-P(a,d)|0;fc=0;return a}e=S(d)-S(e)|0;if(e>>>0<31)break d;break b}dc=a&f;ec=0;if((c|0)==1)break a;c=Czb(c);d=c&31;if((c&63)>>>0>=32){e=0;a=b>>>d|0}else{e=b>>>d|0;a=((1<>>d}fc=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}h=g&63;g=a;i=h&31;if((h& -63)>>>0>=32){j=a<>>32-i|b<>>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>>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}}dc=f;ec=e;j=b<<1|a>>>31;a=l|a<<1;fc=j|o;return a}dc=a;ec=b;a=0;b=0}fc=b;return a}function nE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(J[b+60>>2]){c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+ -16>>2]=c;c=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=c;c=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=c;c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c;tc(a+52|0,b+52|0,908);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+960>>2]=J[b+960>>2];J[a+964>>2]=J[b+964>>2];J[a+968>>2]=J[b+968>>2];c=J[b+972>>2];J[a+60>>2]=b;J[a+972>>2]=c;return}tc(a+52|0,b+52|0,908);f=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=f;f=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=f; -f=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=f;f=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=f;f=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=f;mi(a,J[b+16>>2],J[b+20>>2],L[b+26>>1],J[b+68>>2]);a:{b:{if(!c)break b;c=J[a+4>>2];if(!c)break b;f=J[b+4>>2];if(!f)break b;tc(c,f,(J[a+32>>2]+J[a+12>>2]|0)+(J[a+44>>2]<<2)|0);break a}c=J[b+4>>2];KD(a,c?J[b+44>>2]?c+40|0:0:0,256)}c=P(J[a+20>>2],J[a+16>>2]);if(!(!d|!J[b+960>>2])){d=J[a+960>>2];if(d)qc(d);d=zc(c);J[a+960>>2]=d;tc(d,J[b+960>>2],c)}if(!(!e|!J[b+ -964>>2])){d=J[a+964>>2];if(d)qc(d);d=a;a=zc(c);J[d+964>>2]=a;tc(a,J[b+964>>2],c)}}function kVa(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;l=bc-32|0;bc=l;J[a+104>>2]=0;J[a+108>>2]=0;J[a+128>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[695492]=0;J[l>>2]=13;m=ga(3291,k|0,811150,l|0)|0;n=J[695492];J[695492]=0;a:{if((n|0)==1)break a;if(!(!J[J[l+8>>2]+16>>2]|J[m>>2]!=7)){J[695492]=0;J[l+16>>2]=13;m=l+16|0;aa(3289,k|0,m|0)| -0;n=J[695492];J[695492]=0;if((n|0)==1)break a;J[a>>2]=J[l+24>>2];J[695492]=0;_(3205,m|0);m=J[695492];J[695492]=0;if((m|0)==1)break a;J[695492]=0;la(3302,k|0,a+8|0,a+16|0,a+24|0,a+32|0);m=J[695492];J[695492]=0;if((m|0)==1)break a;J[695492]=0;Ca(3348,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;Sa(3349,a|0,b|0,l|0,f|0,g|0,h|0,k|0,i|0,j|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;_(3205,l|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+ -116>>2];if(b){qc(Vv(b));J[a+116>>2]=0}b=J[a+120>>2];if(b){qc(Ng(b));J[a+120>>2]=0}b=J[a+124>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+124>>2]=0}b=J[a+128>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+128>>2]=0}bc=l+32|0;return a|0}c=Z()|0;b=J[a+104>>2];if(b){J[a+108>>2]=b;qc(b)}ba(c|0);B()}function e1a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+24>>2];c=J[a+8>>2];g=J[a+12>>2]-c|0;e=J[a+16>>2];f=J[a+20>>2]-e>>1;if((g|0)>(f|0)){J[b>>2]=15;g=f}a:{b:{c:{d:{e:{f:{if((g|0)<8){b=0;break f}f=g>>>3|0;b=f;while(1){I[e>> +y);A=Q(w+z);N[a+128>>2]=l-A;N[a>>2]=A+l;d=Q(d-e);e=Q(Q(d+Q(w-z))*Q(.7071067690849304));N[a+192>>2]=d-e;N[a+64>>2]=d+e;d=Q(g-f);g=Q(u-v);f=Q(x-y);l=Q(Q(g+f)*Q(.7071067690849304));e=Q(d-l);f=Q(f+Q(j-k));j=Q(d+g);g=Q(Q(f-j)*Q(.3826834261417389));f=Q(Q(f*Q(.5411961078643799))+g);N[a+160>>2]=e+f;N[a+96>>2]=e-f;d=Q(d+l);e=Q(Q(j*Q(1.3065630197525024))+g);N[a+224>>2]=d-e;N[a+32>>2]=d+e;b=h;h=h-1|0;a=a+4|0;if(b)continue;break}}function wU(a){var b=0,c=0,d=0,e=0;J[a>>2]=2442668;J[699344]=0;_(6612,a|0)|0;b= +J[699344];J[699344]=0;a:{if((b|0)==1)break a;c=J[a+2788>>2];d=a+2792|0;if((c|0)!=(d|0))while(1){b=J[c+20>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break b}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}e=a+2788|0;qr(e,J[a+2792>>2]);J[a+2788>>2]=d;J[a+2792>>2]=0;J[a+2796>>2]=0;J[699344]=0;c=a+1928|0;Xz(c);b=J[699344];J[699344]=0;if((b|0)==1)break a;d=J[a+2772>>2];if(d){b=J[J[d>>2]+12>>2];J[699344]=0;_(b|0,d|0)| +0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+2772>>2]=0}qr(e,J[a+2792>>2]);e5(a+2776|0);if(H[a+2759|0]<0)uc(J[a+2748>>2]);if(H[a+2747|0]<0)uc(J[a+2736>>2]);GU(a+1976|0);rU(c);pU(a+1768|0);cU(a+1736|0);jU(a+1720|0);if(H[a+675|0]<0)uc(J[a+664>>2]);pr(a+652|0,J[a+656>>2]);Jd(a+648|0);J[a+576>>2]=340552;if(H[a+603|0]<0)uc(J[a+592>>2]);if(H[a+591|0]<0)uc(J[a+580>>2]);J[a+440>>2]=340552;if(H[a+467|0]<0)uc(J[a+456>>2]);if(H[a+455|0]<0)uc(J[a+444>>2]);J[a+72>>2]=340504;c=J[a+100>>2];if(c){b=J[J[c>>2]+ +12>>2];J[699344]=0;_(b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+100>>2]=0}Se(a+284|0);b=J[a+192>>2];if(b){J[a+196>>2]=b;uc(b)}if(H[a+119|0]<0)uc(J[a+108>>2]);Jd(a+104|0);J[a+8>>2]=340456;b=J[a+36>>2];if(b){uc(b);J[a+36>>2]=0}return a}ea(0)|0;Bc();B()}function _3a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-160|0;fc=d;f=d+52|0;e=K[a+11|0];h=e<<24>>24<0;_m(f,h?J[a>>2]:a,h?J[a+4>>2]:e,0);h=ol(H[d+63|0]<0?J[d+52>>2]:f,d- -64|0);if(!h){f=J[d+104>>2];e=J[d+108>>2];a:{if(!b){a= +J[d+120>>2];b=J[d+124>>2];break a}g=J[b+20>>2];a=J[b+16>>2];J[d+24>>2]=a;J[d+28>>2]=g;J[d+48>>2]=J[b+40>>2];g=J[b+36>>2];J[d+40>>2]=J[b+32>>2];J[d+44>>2]=g;g=J[b+28>>2];J[d+32>>2]=J[b+24>>2];J[d+36>>2]=g;g=J[b+12>>2];J[d+16>>2]=J[b+8>>2];J[d+20>>2]=g;g=J[b>>2];b=J[b+4>>2];J[d+24>>2]=a-1;J[d+8>>2]=g;J[d+12>>2]=b;J[d+28>>2]=J[d+28>>2]-1900;a=cT(d+8|0);b=jc}if(c){e=J[c+20>>2];f=J[c+16>>2];J[d+24>>2]=f;J[d+28>>2]=e;J[d+48>>2]=J[c+40>>2];e=J[c+36>>2];J[d+40>>2]=J[c+32>>2];J[d+44>>2]=e;e=J[c+28>>2];J[d+ +32>>2]=J[c+24>>2];J[d+36>>2]=e;e=J[c+12>>2];J[d+16>>2]=J[c+8>>2];J[d+20>>2]=e;e=J[c>>2];c=J[c+4>>2];J[d+24>>2]=f-1;J[d+8>>2]=e;J[d+12>>2]=c;J[d+28>>2]=J[d+28>>2]-1900;f=cT(d+8|0);e=jc}J[d+16>>2]=a;J[d+20>>2]=b;J[d+8>>2]=f;J[d+12>>2]=e;b=H[d+63|0]<0?J[d+52>>2]:d+52|0;a=fc-32|0;fc=a;if(d+8|0){c=J[d+8>>2];f=J[d+12>>2];J[a+8>>2]=0;J[a>>2]=c;J[a+4>>2]=f;c=J[d+16>>2];f=J[d+20>>2];J[a+24>>2]=0;J[a+16>>2]=c;J[a+20>>2]=f;c=a}else c=0;b:{if(!c){c=0;break b}if(J[c+8>>2]!=1073741823)break b;c=J[c+24>>2]!=1073741823? +c:0}b=dc(-100,b|0,c|0,0)|0;if(b>>>0>=4294963201)J[698583]=0-b;fc=a+32|0}if(H[d+63|0]<0)uc(J[d+52>>2]);fc=d+160|0;return!h|0}function IB(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;a:{if((e|0)==-1)break a;f=J[a+8>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break a;g=J[a+8>>2];g=kc[J[J[g>>2]+28>>2]](g)|0;if((g|0)==-1)break a;h=J[a+8>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break a;i=J[a+8>>2];i=kc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break a;j=J[a+8>> +2];j=kc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break a;k=J[a+8>>2];k=kc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break a;l=J[a+8>>2];l=kc[J[J[l>>2]+28>>2]](l)|0;if((l|0)==-1)break a;J[b>>2]=l|(j<<16|i<<24|k<<8);b:{c:{d:{e:{b=h|(f<<16|e<<24|g<<8);switch(b|0){case 0:break d;case 1:break e;default:break c}}b=J[a+8>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if((b|0)==-1)break a;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break a;f=J[a+8>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break a;g=J[a+8>>2];g=kc[J[J[g>> +2]+28>>2]](g)|0;if((g|0)==-1)break a;h=J[a+8>>2];h=kc[J[J[h>>2]+28>>2]](h)|0;if((h|0)==-1)break a;i=J[a+8>>2];i=kc[J[J[i>>2]+28>>2]](i)|0;if((i|0)==-1)break a;j=J[a+8>>2];j=kc[J[J[j>>2]+28>>2]](j)|0;if((j|0)==-1)break a;k=J[a+8>>2];k=kc[J[J[k>>2]+28>>2]](k)|0;if((k|0)==-1)break a;if(g|(e<<16|b<<24|f<<8)){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,813079,0);return 0}a=k|(i<<16|h<<24|j<<8);J[c>>2]=a;J[d>>2]=a-16;break b}J[c>>2]=0;J[d>>2]=0;break b}J[c>>2]=b;J[d>>2]=b-8}m=1}return m}function Xsa(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;f=fc-32|0;fc=f;h=J[b+16>>2];c=h-1|0;Fm(a+72|0,0,c);Fm(a+96|0,0,c);Fm(a+120|0,0,c);a:{b:{if((h|0)>0)while(1){if(!(J[a+88>>2]<=(d|0)&J[a+92>>2]>=(d|0))){a=Qc(f+8|0,2393794,2394220,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}J[J[a+76>>2]+(d-J[a+80>>2]<<2)>>2]=d;if(!(J[a+112>>2]<=(d|0)&J[a+116>>2]>=(d|0))){a=Qc(f+8|0,2393794,2394220,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b; +break a}J[J[a+100>>2]+(d-J[a+104>>2]<<2)>>2]=d;if(!(J[a+136>>2]<=(d|0)&J[a+140>>2]>=(d|0))){a=Qc(f+8|0,2393794,2394220,619,2434720,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=b;g=J[a+124>>2]+(d-J[a+128>>2]<<4)|0;i=fc-32|0;fc=i;c:{d:{while(1){e=c;c=J[c+16>>2];if((c|0)>(d|0)){c=J[e+20>>2];if(c)continue;break d}break}j=J[e+68>>2];k=J[e- -64>>2];if((((c+j|0)-k|0)+1|0)<=(d|0))break d;e:{c=d-c|0;if(!((c|0)<=(j|0)&(c|0)>=(k|0))){a=Qc(i+8|0,2393794,2394220,619,2434720, +0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e;break a}c=J[e+52>>2]+(c-J[e+56>>2]<<4)|0;e=J[c+4>>2];J[g>>2]=J[c>>2];J[g+4>>2]=e;e=J[c+12>>2];J[g+8>>2]=J[c+8>>2];J[g+12>>2]=e;break c}B()}iV(g,J[lA(e,d)+4>>2])}fc=i+32|0;d=d+1|0;if((h|0)!=(d|0))continue;break}fc=f+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function $aa(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;p=fc;f=b+1|0;l=p-((P(f>>>1|0,c)<<2)+15&-16)|0;fc=l;j=f-e>>1;a:{if((j|0)<=0|(c|0)<=0)break a;f=c<< +2;h=j;g=a;i=l;m=j&3;if(m)while(1){h=h-1|0;i=xc(i,g,f)+f|0;g=(d<<2)+g|0;k=k+1|0;if((m|0)!=(k|0))continue;break}if(j>>>0<4)break a;while(1){k=d<<2;m=k+g|0;n=k+m|0;o=n+k|0;i=xc(i,g,f);g=c<<2;i=xc(xc(xc(i+g|0,m,f)+g|0,n,f)+g|0,o,f)+g|0;g=k+o|0;k=h-5|0;h=h-4|0;if(k>>>0<4294967294)continue;break}}k=b-j|0;if(!((k|0)<=0|(c|0)<=0)){o=c&-8;m=c&7;b=(P(d,j)<<2)+a|0;i=(P(1-e|0,d)<<2)+a|0;n=c>>>0<8;q=d<<3;while(1){h=0;g=i;f=b;if(!n)while(1){J[g>>2]=J[f>>2];J[g+4>>2]=J[f+4>>2];J[g+8>>2]=J[f+8>>2];J[g+12>>2]=J[f+ +12>>2];J[g+16>>2]=J[f+16>>2];J[g+20>>2]=J[f+20>>2];J[g+24>>2]=J[f+24>>2];J[g+28>>2]=J[f+28>>2];f=f+32|0;g=g+32|0;h=h+8|0;if((o|0)!=(h|0))continue;break}h=0;if(m)while(1){J[g>>2]=J[f>>2];f=f+4|0;g=g+4|0;h=h+1|0;if((m|0)!=(h|0))continue;break}b=(d<<2)+b|0;i=i+q|0;f=(k|0)>1;k=k-1|0;if(f)continue;break}}b:{if((j|0)<=0|(c|0)<=0)break b;g=d<<1;b=c<<2;h=(P(d,e)<<2)+a|0;a=j&3;c:{if(!a){f=j;break c}i=0;f=j;while(1){d=xc(h,l,b);f=f-1|0;l=b+l|0;h=(g<<2)+d|0;i=i+1|0;if((a|0)!=(i|0))continue;break}}if(j>>>0<4)break b; +while(1){e=xc(h,l,b);a=c<<2;d=a+l|0;j=a+d|0;i=j+a|0;l=i+a|0;a=g<<2;h=xc(xc(xc(a+e|0,d,b)+a|0,j,b)+a|0,i,b)+a|0;a=f-5|0;f=f-4|0;if(a>>>0<4294967294)continue;break}}fc=p}function uza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;a:{b:{c:{d:{if((c|0)<=0)break d;c=c-1|0;if(!d){while(1){d=c;J[a>>2]=0;J[a+4>>2]=J[685894];c=J[b>>2];e:{if(c){f=J[J[c>>2]+28>>2];J[699344]=0;ca(f|0,e+12|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break e;b=Z()|0;break b}J[e+12>>2]=0}J[699344]=0;aa(5153,a| +0,e+12|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+12>>2];J[e+12>>2]=0;f:{if(!c)break f;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break f;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[a>>2];J[a+4>>2]=J[(c?c+12|0:2743576)>>2];c=d-1|0;b=b+8|0;a=a+8|0;if((d|0)>0)continue;break d}break}break c}while(1){d=c;J[a>>2]=0;J[a+4>>2]=J[685894];c=J[b>>2];g:{if(c){f=J[J[c>>2]+28>>2];J[699344]=0;ca(f|0,e+12|0,c|0,1);c=J[699344];J[699344]= +0;if((c|0)!=1)break g;b=Z()|0;break b}J[e+12>>2]=0}J[699344]=0;aa(5153,a|0,e+12|0)|0;c=J[699344];J[699344]=0;h:{if((c|0)!=1){c=J[e+12>>2];J[e+12>>2]=0;if(!c)break h;J[699344]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break h;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break h;break a}break c}c=J[a>>2];J[a+4>>2]=J[(c?c+12|0:2743576)>>2];c=d-1|0;a=a+8|0;b=wc(b)+8|0;if((d|0)>0)continue;break}}fc=e+16|0;return}b=Z()|0;zc(e+12|0)}wc(a);ba(b|0);B()}ea(0)| +0;Bc();B()}function R6(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{g=K[a|0];if((g|0)!=117)break b;c:{d=K[a+1|0];if((d|0)!=110|K[a+2|0]!=105)break c;b=K[a+3|0];c=b-48|0;e=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(e>>>0>15)break c;b=K[a+4|0];c=b-48|0;f=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(f>>>0>15)break c;b=K[a+5|0];c=b-48|0;h=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(h>>>0>15)break c;b=K[a+6|0];c=b-48|0;b=c>>>0>9?b-71>>>0<4294967290?16:b-55|0:c;if(b>>>0>15)break c;b=b+(((e<<8)+(f<<4)|0)+ +h<<4)|0;c=K[a+7|0];if(!c)break a;if((c|0)!=46)break c;return b|-2147483648}b=d-48|0;c=b>>>0>9?d-71>>>0<4294967290?16:d-55|0:b;if(c>>>0>15)break b;b=K[a+2|0];d=b-48|0;e=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(e>>>0>15)break b;b=K[a+3|0];d=b-48|0;f=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(f>>>0>15)break b;b=K[a+4|0];d=b-48|0;b=d>>>0>9?b-71>>>0<4294967290?16:b-55|0:d;if(b>>>0>15)break b;b=b+(f+((c<<8)+(e<<4)|0)<<4)|0;c=K[a+5|0];e=c-48|0;c=e>>>0>9?c-71>>>0<4294967290?16:c-55|0:e;d=a+5|0;d:{if(c>>> +0>15)break d;b=c+(b<<4)|0;c=K[a+6|0];e=c-48|0;c=e>>>0>9?c-71>>>0<4294967290?16:c-55|0:e;d=a+6|0;if(c>>>0>15)break d;b=c+(b<<4)|0;d=a+7|0}d=K[d|0];if(!d)break a;if((d|0)!=46)break b;return b|-2147483648}b=a;while(1){e:{f:{if((g|0)!=46){if(g)break f;return Q6(a,b)|0}if(a>>>0>>0)break e}g=K[b+1|0];b=b+1|0;continue}break}b=Q6(a,b)|-2147483648}return b|0}function Qm(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0,o=0;m=J[a>>2];a:{if((m|0)<=(b|0)){i=b;break a}i=b;if(!(e>=0))break a;n=d*.5;if(c){while(1){b:{k= +K[J[a+4>>2]+i|0];switch(k-10|0){case 0:case 3:break a;default:break b}}if(kc[J[J[c>>2]+8>>2]](c)|0)l=n;else l=O[((k<<3)+c|0)+1464>>3]*d;j=j+l;i=i+1|0;if((i|0)>=J[a>>2])break a;if(e>=j)continue;break}break a}k=J[a+4>>2];while(1){c:switch(K[i+k|0]-10|0){case 0:case 3:break a;default:break c}j=j+n;i=i+1|0;if((m|0)<=(i|0))break a;if(e>=j)continue;break}}o=f;if(e(i|0)?i:b;f=i;while(1){d:{k=f;if((b|0)>=(f|0)){k=m;break d}f=k-1|0;if(K[f+J[a+4>>2]|0]!=32)continue}break}while(1){e:{f=k;if((f|0)<= +(b|0)){f=i;break e}k=f-1|0;if(K[k+J[a+4>>2]|0]==32)continue}break}i=(b|0)==(f|0)?b+1|0:f}J[o>>2]=i;e=0;f:{if((b|0)>=(i|0))break f;j=d*.5;if(c){while(1){if(kc[J[J[c>>2]+8>>2]](c)|0)l=j;else l=O[((K[J[a+4>>2]+b|0]<<3)+c|0)+1464>>3]*d;e=e+l;b=b+1|0;if((i|0)!=(b|0))continue;break}break f}f=(b^-1)+i|0;c=i-b&7;if(c){k=0;while(1){b=b+1|0;e=e+j;k=k+1|0;if((c|0)!=(k|0))continue;break}}if(f>>>0<7)break f;while(1){e=e+j+j+j+j+j+j+j+j;b=b+8|0;if((i|0)!=(b|0))continue;break}}O[g>>3]=e;f=J[a>>2];if((f|0)>(i|0)){c= +J[a+4>>2];g:{while(1){b=K[c+i|0];if((b|0)!=32)break g;i=i+1|0;if((f|0)!=(i|0))continue;break}J[h>>2]=f;return}i=((b|0)==13)+i|0}if((f|0)>(i|0))i=(K[J[a+4>>2]+i|0]==10)+i|0;J[h>>2]=i}function $Pa(a){a=a|0;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;Mc(J[a+16>>2]);J[a+16>>2]=0;if(J[a+96>>2]){Mc(J[a+88>>2]);Mc(J[a+92>>2]);J[a+96>>2]=0}if(J[a+116>>2]){Mc(J[a+104>>2]);Mc(J[a+108>>2]);Mc(J[a+112>>2]);J[a+116>>2]=0}if(J[a+136>>2]){Mc(J[a+124>>2]);Mc(J[a+128>>2]);Mc(J[a+132>>2]);J[a+136>>2]=0}b= +J[a+200>>2];if(b){c=J[a+192>>2];d=J[a+196>>2];if(P(c,d)){while(1){l=J[a+200>>2]+(k<<6)|0;b=J[l+60>>2];if(b){if(J[a+188>>2]){h=0;while(1){e=J[l+60>>2]+P(h,88)|0;Mc(J[e+44>>2]);Mc(J[e+76>>2]);Mc(J[e+80>>2]);if(J[e+84>>2]){f=0;while(1){g=J[e+84>>2]+P(f,100)|0;b=J[g+96>>2];if(b){c=J[g+8>>2];if(c){i=0;while(1){j=0;m=J[g+96>>2]+(i<<2)|0;if(J[m>>2]){while(1){c=J[m>>2]+P(j,24)|0;Mc(J[c+12>>2]);Mc(J[c+16>>2]);b=J[c+20>>2];if(b){if(P(J[c+4>>2],J[c>>2])){d=0;while(1){b=J[c+20>>2]+P(d,68)|0;Mc(J[b+40>>2]);Mc(J[b+ +52>>2]);n=J[b+60>>2];if(n)uc(W_(n));b=J[b+64>>2];if(b)uc(ld(b));d=d+1|0;if(d>>>0>2],J[c>>2])>>>0)continue;break}b=J[c+20>>2]}Mc(b)}if(f){b=j>>>0<2;j=j+1|0;if(b)continue}break}Mc(J[m>>2]);c=J[g+8>>2]}i=i+1|0;if(i>>>0>>0)continue;break}b=J[g+96>>2]}Mc(b)}f=f+1|0;if(f>>>0<=M[e+20>>2])continue;break}Mc(J[e+84>>2])}h=h+1|0;if(h>>>0>2])continue;break}b=J[l+60>>2]}Mc(b);d=J[a+196>>2];c=J[a+192>>2]}k=k+1|0;if(k>>>0>>0)continue;break}b=J[a+200>>2]}Mc(b);J[a+200>>2]=0}a=J[a+8>> +2];kc[J[J[a>>2]+24>>2]](a)}function lVa(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;f=a;while(1){d=J[(l<<2)+b>>2]+c|0;h=K[d+4|0];g=K[d+3|0];e=h+g|0;i=K[d+7|0];j=K[d|0];k=i+j|0;m=e+k|0;n=K[d+5|0];o=K[d+2|0];p=n+o|0;q=K[d+6|0];r=K[d+1|0];d=q+r|0;s=p+d|0;J[f+16>>2]=m-s<<2;J[f>>2]=(m+s<<2)-4096;e=k-e|0;k=d-p|0;d=P(e+k|0,4433)+1024|0;J[f+24>>2]=d+P(k,-15137)>>11;J[f+8>>2]=d+P(e,6270)>>11;d=g-h|0;h=j-i|0;g=P(d+h|0,-7373);e=r-q|0;k=e+d|0;i=o-n|0;m=i+h|0;j= +P(k+m|0,9633)+1024|0;n=g+P(d,2446)|0;d=j+P(k,-16069)|0;J[f+28>>2]=n+d>>11;j=j+P(m,-3196)|0;k=P(i,16819);i=P(e+i|0,-20995);J[f+20>>2]=j+(k+i|0)>>11;J[f+12>>2]=d+(i+P(e,25172)|0)>>11;J[f+4>>2]=j+(g+P(h,12299)|0)>>11;f=f+32|0;l=l+1|0;if((l|0)!=8)continue;break}b=7;while(1){f=J[a+224>>2];d=J[a>>2];c=f+d|0;l=J[a+128>>2];h=J[a+96>>2];g=l+h|0;e=(c+g|0)+2|0;i=J[a+160>>2];j=J[a+64>>2];k=i+j|0;m=J[a+192>>2];n=J[a+32>>2];o=m+n|0;p=k+o|0;J[a+128>>2]=e-p>>2;J[a>>2]=e+p>>2;g=c-g|0;e=o-k|0;c=P(g+e|0,4433)+16384| +0;J[a+192>>2]=c+P(e,-15137)>>15;J[a+64>>2]=c+P(g,6270)>>15;c=h-l|0;f=d-f|0;d=P(c+f|0,-7373);l=n-m|0;e=l+c|0;h=j-i|0;i=h+f|0;g=P(e+i|0,9633)+16384|0;j=d+P(c,2446)|0;c=g+P(e,-16069)|0;J[a+224>>2]=j+c>>15;g=g+P(i,-3196)|0;e=P(h,16819);h=P(h+l|0,-20995);J[a+160>>2]=g+(e+h|0)>>15;J[a+96>>2]=c+(h+P(l,25172)|0)>>15;J[a+32>>2]=g+(d+P(f,12299)|0)>>15;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function hkb(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+540>>2];a:{if(!b)break a;d=J[b+80>>2];if(d)kc[d|0](a); +d=J[b+100>>2];if(d)kc[d|0](a);d=J[b+120>>2];if(!d)break a;kc[d|0](a);kc[J[b+124>>2]](a)}if(K[a+848|0]){d=a+828|0;if(J[d>>2])$f(J[a+104>>2],d);J[a+840>>2]=0;J[a+832>>2]=0;J[a+836>>2]=0}$f(J[a+104>>2],a+808|0);J[a+820>>2]=0;J[a+824>>2]=0;J[a+812>>2]=0;J[a+816>>2]=0;d=J[a+144>>2];if(d)kc[J[c+8>>2]](c,d);J[a+140>>2]=0;J[a+144>>2]=0;d=J[a+156>>2];if(d)kc[J[c+8>>2]](c,d);I[a+152>>1]=0;J[a+156>>2]=0;$f(J[a+104>>2],a+508|0);J[a+752>>2]=0;J[a+756>>2]=0;J[a+512>>2]=0;if(K[a+292|0]){d=J[a+332>>2];if(d)kc[J[c+ +8>>2]](c,d);J[a+332>>2]=0;d=J[a+336>>2];if(d)kc[J[c+8>>2]](c,d);H[a+292|0]=0;J[a+336>>2]=0}d=J[a+564>>2];if(d)kc[J[c+8>>2]](c,d);I[a+562>>1]=0;J[a+564>>2]=0;if(b)kc[J[b+52>>2]](a);b=J[a+20>>2];if(b)kc[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>>2];if(b)kc[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+32>>2];if(b)kc[J[c+8>>2]](c,b);J[a+32>>2]=0;b=J[a+804>>2];if(b)kc[J[c+8>>2]](c,b);J[a+28>>2]=0;J[a+804>>2]=0;b=J[a+720>>2];if(b)kc[J[c+8>>2]](c,b);J[a+720>>2]=0;b=J[a+744>>2];if(b)kc[J[c+8>>2]](c,b);J[a+744>>2]=0;b= +J[a+652>>2];if(b)kc[J[c+8>>2]](c,b);J[a+652>>2]=0;b=J[a+656>>2];if(b)kc[J[c+8>>2]](c,b);J[a+656>>2]=0;b=J[a+664>>2];if(b)kc[J[c+8>>2]](c,b);J[a+664>>2]=0;b=J[a+672>>2];if(b)kc[J[c+8>>2]](c,b);J[a+540>>2]=0;J[a+672>>2]=0}}function xeb(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;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{c:{d:{i=J[b>>2];if((i|0)!=J[b+4>>2])while(1){d=J[i>>2];J[699344]=0;g=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d;J[g+8>>2]=1;J[g>>2]=0;J[g+4>>2]=0;c=J[d>>2];if(c){J[699344]= +0;c=_(2258,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;J[g>>2]=c}f=J[d+4>>2];if(f){J[699344]=0;c=_(4,4)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;J[699344]=0;f=aa(2259,c|0,f|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[g+4>>2]=f}J[g+8>>2]=J[d+8>>2];d=J[a+4>>2];e=J[a+8>>2];e:{if(d>>>0>>0){J[d>>2]=g;J[a+4>>2]=d+4;break e}f:{g:{f=J[a>>2];j=d-f>>2;c=j+1|0;h:{if(c>>>0>=1073741824){J[699344]=0;$(2260,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;break a}e=e-f|0;h=e>>1;e=e>>>0>=2147483644? +1073741823:c>>>0>>0?h:c;if(!e){h=0;break f}if(e>>>0<1073741824)break g;J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break a}d=Z()|0;break b}J[699344]=0;h=_(4,e<<2)|0;c=J[699344];J[699344]=0;if((c|0)==1)break d}c=(j<<2)+h|0;J[c>>2]=g;g=c+4|0;if((d|0)!=(f|0)){while(1){c=c-4|0;d=d-4|0;J[c>>2]=J[d>>2];if((d|0)!=(f|0))continue;break}d=J[a>>2]}J[a+8>>2]=(e<<2)+h;J[a+4>>2]=g;J[a>>2]=c;if(!d)break e;uc(d)}i=i+4|0;if((i|0)!=J[b+4>>2])continue;break}return a|0}d=Z()|0;break b}d=Z()|0;uc(c)}b= +J[a>>2];if(b){J[a+4>>2]=b;uc(b)}ba(d|0);B()}B()}function u2a(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;h=J[a+8>>2];n=J[a+12>>2];if(h>>>0>>0){k=J[a+20>>2];d=J[a+4>>2];if(J[d+52>>2]==1){wi(d,742692,4,a+16|0,k,a+24|0,-1,b);d=J[a+4>>2];J[d+52>>2]=0}f=J[a+24>>2];c=J[a+16>>2];g=J[d+56>>2];if(g){J[d+56>>2]=0;i=h;d=1}else d=0;a:{while(1){b:{c:{d:{e:{f:{if(!d){if(h>>>0>=n>>>0){i=h;break a}if(c>>>0>=k>>>0){i=h;break a}i=h+2|0;g=L[h>>1];d=i;if((g&63488)!=55296)break f;if((g&64512)!= +55296)break e;d=1;continue}if(i>>>0>=n>>>0)break d;h=L[i>>1];if((h&64512)!=56320)break e;g=(h+(g<<10)|0)-56613888|0;d=i+2|0}h=d;l=g>>>8|0;d=g>>>16&31;g:{if(c>>>0>>0){H[c|0]=0;J[f>>2]=m;f=f+4|0;c=c+1|0;break g}e=J[a+4>>2];j=H[e+63|0];H[e+63|0]=j+1;H[(e+j|0)+76|0]=0;J[b>>2]=15}h:{if(c>>>0>=k>>>0){e=J[a+4>>2];j=H[e+63|0];H[e+63|0]=j+1;H[(e+j|0)+76|0]=d;J[b>>2]=15;break h}H[c|0]=d;J[f>>2]=m;f=f+4|0;c=c+1|0}i:{if(c>>>0>=k>>>0){e=J[a+4>>2];j=H[e+63|0];H[e+63|0]=j+1;H[(e+j|0)+76|0]=l;J[b>>2]=15;break i}H[c| +0]=l;J[f>>2]=m;f=f+4|0;c=c+1|0}j:{if(c>>>0>=k>>>0){l=J[a+4>>2];e=H[l+63|0];H[l+63|0]=e+1;H[(e+l|0)+76|0]=g;J[b>>2]=15;break j}H[c|0]=g;J[f>>2]=m;f=f+4|0;c=c+1|0}m=(((d|0)!=0)+m|0)+1|0;break c}J[J[a+4>>2]+56>>2]=g;break b}J[J[a+4>>2]+56>>2]=g;if(K[a+2|0])break b;break a}d=0;continue}break}J[b>>2]=12}if(!(c>>>0>>0|i>>>0>=n>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=f;J[a+8>>2]=i;J[a+16>>2]=c}}function r2a(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;h=J[a+8>>2];n=J[a+12>>2];if(h>>> +0>>0){k=J[a+20>>2];d=J[a+4>>2];if(J[d+52>>2]==1){wi(d,742700,4,a+16|0,k,a+24|0,-1,b);d=J[a+4>>2];J[d+52>>2]=0}e=J[a+24>>2];c=J[a+16>>2];g=J[d+56>>2];if(g){J[d+56>>2]=0;i=h;d=1}else d=0;a:{while(1){b:{c:{d:{e:{f:{if(!d){if(h>>>0>=n>>>0){i=h;break a}if(c>>>0>=k>>>0){i=h;break a}i=h+2|0;g=L[h>>1];d=i;if((g&63488)!=55296)break f;if((g&64512)!=55296)break e;d=1;continue}if(i>>>0>=n>>>0)break d;h=L[i>>1];if((h&64512)!=56320)break e;g=(h+(g<<10)|0)-56613888|0;d=i+2|0}h=d;j=g>>>8|0;d=g>>>16&31;g:{if(c>>> +0>>0){H[c|0]=g;J[e>>2]=l;e=e+4|0;c=c+1|0;break g}f=J[a+4>>2];m=H[f+63|0];H[f+63|0]=m+1;H[(f+m|0)+76|0]=g;J[b>>2]=15}h:{if(c>>>0>=k>>>0){f=J[a+4>>2];m=H[f+63|0];H[f+63|0]=m+1;H[(f+m|0)+76|0]=j;J[b>>2]=15;break h}H[c|0]=j;J[e>>2]=l;e=e+4|0;c=c+1|0}i:{if(c>>>0>=k>>>0){j=J[a+4>>2];f=H[j+63|0];H[j+63|0]=f+1;H[(f+j|0)+76|0]=d;J[b>>2]=15;break i}H[c|0]=d;J[e>>2]=l;e=e+4|0;c=c+1|0}j:{if(c>>>0>=k>>>0){j=J[a+4>>2];f=H[j+63|0];H[j+63|0]=f+1;H[(f+j|0)+76|0]=0;J[b>>2]=15;break j}H[c|0]=0;J[e>>2]=l;e=e+4|0; +c=c+1|0}l=(((d|0)!=0)+l|0)+1|0;break c}J[J[a+4>>2]+56>>2]=g;break b}J[J[a+4>>2]+56>>2]=g;if(K[a+2|0])break b;break a}d=0;continue}break}J[b>>2]=12}if(!(c>>>0>>0|i>>>0>=n>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=e;J[a+8>>2]=i;J[a+16>>2]=c}}function pq(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=fc-128|0;fc=f;a:{if(!a)break a;h=J[a+16>>2];if(!h)break a;d=h;a=J[a+12>>2];b:{if(d>>>0<=a>>>0)break b;while(1){c:switch(K[d|0]-10|0){case 0:case 3:break c;default:break b}d=d-1|0;if(a>>>0>>0)continue;break}d= +a}d:{e:{if(a>>>0>=d>>>0)break e;e=1;while(1){f:{g=K[d|0];switch(g-10|0){case 0:case 3:break d;default:break f}}d=d-1|0;if(e>>>0>79)break e;e=e+1|0;if(a>>>0>>0)continue;break}}g=K[d|0]}g:switch(g-10|0){case 0:case 3:d=d+1|0;break;default:break g}g=h-d|0;a=f+32|0;e=d;while(1){h:{i:{i=K[e|0];switch(i|0){case 0:case 10:break h;default:break i}}if((i|0)==13|j>>>0>79)break h;H[a|0]=i;j=j+1|0;a=a+1|0;e=e+1|0;continue}break}e=0;H[a|0]=0;a=f+32|0;J[f+16>>2]=a;kc[b|0](c,32906,f+16|0);j:{if((d|0)==(h|0)){d= +a;break j}h=g>>>0<=1?1:g;a=f+32|0;while(1){d=a;k:switch(K[a|0]){default:H[d|0]=32;break;case 0:break j;case 9:break k}d=d+1|0;if((h|0)==(e|1))break j;l:switch(K[a+1|0]){default:H[a+1|0]=32;break;case 0:break j;case 9:break l}d=a+2|0;if((g|0)==(e|2))break j;m:switch(K[a+2|0]){default:H[a+2|0]=32;break;case 0:break j;case 9:break m}d=a+3|0;i=e|3;if((i|0)==(g|0)|(i|0)==79)break j;n:switch(K[a+3|0]){default:H[a+3|0]=32;break;case 0:break j;case 9:break n}a=a+4|0;d=a;e=e+4|0;if((g|0)!=(e|0))continue;break}}H[d| +0]=94;H[d+1|0]=0;J[f>>2]=f+32;kc[b|0](c,32906,f)}fc=f+128|0}function bva(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(f){a=e>>>0<8;c=h<<2;while(1){h=e;if(!a)while(1){J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;J[b+4>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|-16777216;J[b+8>>2]=K[i+2|0]|K[j+2|0]<<8|K[k+2|0]<<16|-16777216;J[b+12>>2]=K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|-16777216;J[b+16>>2]=K[i+4|0]|K[j+4|0]<<8|K[k+4|0]<<16|-16777216;J[b+20>>2]=K[i+5| +0]|K[j+5|0]<<8|K[k+5|0]<<16|-16777216;J[b+24>>2]=K[i+6|0]|K[j+6|0]<<8|K[k+6|0]<<16|-16777216;J[b+28>>2]=K[i+7|0]|K[j+7|0]<<8|K[k+7|0]<<16|-16777216;b=b+32|0;k=k+8|0;j=j+8|0;i=i+8|0;h=h-8|0;if(h>>>0>7)continue;break}a:switch(h-1|0){case 6:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 5:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 4:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 3:J[b>>2]= +K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 2:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 1:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;case 0:J[b>>2]=K[i|0]|K[j|0]<<8|K[k|0]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;break;default:break a}k=g+k|0;j=g+j|0;i=g+i|0;b=b+c|0;f=f-1|0;if(f)continue;break}}}function S7(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;c=1;a:{if((kc[J[J[b>>2]+12>>2]](b, +d+14|0,1,1,0,0)|0)!=1)break a;e=K[d+14|0];if((e|0)==249){c=0;b:{if((kc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break b;f=K[d+15|0];g=kc[J[J[b>>2]+12>>2]](b,a+976|0,1,4,0,0)|0;c=(K[a+977|0]|K[a+978|0]<<8)<<16>>16;e=(K[a+494|0]?c:c<<8|(c&65280)>>>8)<<16>>16;H[a+977|0]=e;H[a+978|0]=e>>>8;c=0;if((f|0)!=(g|0))break b;J[a+360>>2]=e&65535;c=K[a+976|0];J[a+336>>2]=c&1?K[a+979|0]:-1;H[a+492|0]=c>>>2&7;c=1}e=K[d+14|0]}c:{if((e|0)!=254)break c;c=0;if((kc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break c;c= +kc[J[J[b>>2]+12>>2]](b,J[a+1116>>2],K[d+15|0],1,0,0)|0;H[J[a+1116>>2]+K[d+15|0]|0]=0;c=(c|0)==1}d:{if(K[d+14|0]==255){if((kc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1|K[d+15|0]!=11)break a;if((kc[J[J[b>>2]+12>>2]](b,d+3|0,11,1,0,0)|0)!=1)break a;if((kc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0)!=1)break a;e=K[d+15|0];c=Dc(e);if(!c){uc(c);break a}e=kc[J[J[b>>2]+12>>2]](b,c,e,1,0,0)|0;if(K[d+15|0]>=3){J[a+1120>>2]=K[c+1|0]|K[c+2|0]<<8;uc(c);if((e|0)==1)break d;break a}uc(c);if((e|0)==1)break d;break a}if(!c)break a}h= +1;if(!(kc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0))break a;c=K[d+15|0];if(!c)break a;while(1){kc[J[J[b>>2]+20>>2]](b,c,1)|0;if(!(kc[J[J[b>>2]+12>>2]](b,d+15|0,1,1,0,0)|0))break a;c=K[d+15|0];if(c)continue;break}}fc=d+16|0;return h}function Fkb(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;j=fc-16|0;fc=j;e=J[a+16>>2];d=J[a+28>>2];k=J[a+24>>2];J[j+12>>2]=0;a:{b:{g=k+1|0;c:{if(g>>>0<=d>>>0){l=J[a+32>>2];break c}J[a+36>>2]=b;l=_c(b,4,d,g,J[a+32>>2],j+12|0);J[a+32>> +2]=l;if(J[j+12>>2])break b;J[a+28>>2]=g}g=l;if(k){e=e+10|0;while(1){f=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);o=K[e|0];p=K[e+1|0];q=K[e+2|0];d:{e:{f:{b=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b)break f;d=b+J[a+16>>2]|0;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);m=d+4|0;h=0;while(1){if(b>>>0<=h>>>0)break f;d=b;b=b+h>>>1|0;i=m+(b<<2)|0;n=K[i+1|0]<<8|K[i|0]<<16|K[i+2|0];if(n>>>0>c>>>0)continue; +h=b+1|0;b=d;if(K[i+3|0]+n>>>0>>0)continue;break}break e}b=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);if(!b)break d;d=b+J[a+16>>2]|0;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b)break d;i=d+4|0;h=0;while(1){g:{d=b+h>>>1|0;f=i+P(d,5)|0;m=K[f+1|0]<<8|K[f|0]<<16|K[f+2|0];h:{if(m>>>0>c>>>0){b=d;break h}if(c>>>0<=m>>>0)break g;h=d+1|0}if(b>>>0>h>>>0)continue;break d}break}if(!(K[f+4|0]|K[f+3|0]<<8))break d}J[g>>2]=p<<8|o<<16|q;g=g+4|0}e=e+11|0;k=k-1|0; +if(k)continue;break}}J[g>>2]=0;break a}l=0}fc=j+16|0;return l|0}function kDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;c=b+36|0;e=J[b+20>>2];a:{if(!e)break a;c=J[e+8>>2]?b+20|0:c}J[d+4>>2]=0;J[d+8>>2]=J[685894];b:{c=J[c>>2];c:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+12|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break c;c=Z()|0;break b}J[d+12>>2]=0}J[699344]=0;aa(5153,d+4|0,d+12|0)|0;c=J[699344];J[699344]=0;d:{e:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break e;J[699344]=0;e= +J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)!=1){if(e)break e;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break e}break d}c=Z()|0;zc(d+12|0);break b}c=J[d+4>>2];J[d+8>>2]=J[(c?c+12|0:2743576)>>2];f:{g:{h:{i:{j:{if(!(!c|!J[c+8>>2])){J[a>>2]=0;J[a+4>>2]=J[685894];break j}c=J[b+36>>2];J[a>>2]=0;J[a+4>>2]=J[685894];if(!c)break i}b=J[J[c>>2]+28>>2];J[699344]=0;ca(b|0,d+12|0,c|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break h;c=Z()|0;break g}J[d+12>>2]=0}J[699344]=0;aa(5153, +a|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f}break d}c=Z()|0;zc(d+12|0)}wc(a);break b}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(d+4|0);fc=d+16|0;return}ea(0)|0;Bc();B()}wc(d+4|0);ba(c|0);B()}function ZY(a){a=a|0;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;g=fc-16|0;fc= +g;l=J[J[a+72>>2]+16>>2];b=Ge(1,56);J[g+12>>2]=b;a:{if(!b)break a;i=J[J[a+72>>2]+16>>2];J[b+24>>2]=i;J[b>>2]=J[a+84>>2];J[b+4>>2]=J[a+88>>2];J[b+8>>2]=J[a+92>>2];J[b+12>>2]=J[a+96>>2];J[b+16>>2]=J[a+104>>2];h=J[a+108>>2];J[b+52>>2]=0;J[b+20>>2]=h;j=J[a+12>>2];J[b+32>>2]=J[j>>2];J[b+36>>2]=J[j+4>>2];J[b+40>>2]=J[j+8>>2];J[b+44>>2]=J[j+16>>2];a=Ge(i,1080);J[b+48>>2]=a;if(a){if(l)while(1){a=P(k,1080);d=a+J[b+48>>2]|0;c=a+J[j+5584>>2]|0;J[d+4>>2]=J[c>>2];a=J[c+4>>2];J[d+8>>2]=a;J[d+12>>2]=J[c+8>>2];J[d+ +16>>2]=J[c+12>>2];J[d+20>>2]=J[c+16>>2];J[d+24>>2]=J[c+20>>2];if(a>>>0<=32){xc(d+948|0,c+944|0,a);xc(d+816|0,c+812|0,J[c+4>>2])}a=J[c+24>>2];J[d+28>>2]=a;J[d+808>>2]=J[c+804>>2];f=1;b:{if((a|0)!=1){a=P(J[c+4>>2],3);if(a-3>>>0>95)break b;f=a-2|0}o=f&1;a=0;if((f|0)!=1){p=f&-2;f=0;while(1){m=d+32|0;h=a<<2;n=c+28|0;e=n+(a<<3)|0;J[m+h>>2]=J[e+4>>2];i=d+420|0;J[i+h>>2]=J[e>>2];e=a|1;h=e<<2;e=(e<<3)+n|0;J[h+m>>2]=J[e+4>>2];J[h+i>>2]=J[e>>2];a=a+2|0;f=f+2|0;if((p|0)!=(f|0))continue;break}}if(!o)break b;e= +(a<<2)+d|0;a=(a<<3)+c|0;J[e+32>>2]=J[a+32>>2];J[e+420>>2]=J[a+28>>2]}J[d+812>>2]=J[c+808>>2];k=k+1|0;if((k|0)!=(l|0))continue;break}e=b;break a}if(g+12|0){a=J[g+12>>2];b=J[a+48>>2];if(b){uc(b);a=J[g+12>>2]}uc(a);J[g+12>>2]=0}}fc=g+16|0;return e|0}function Kqb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+20>>2])a=0;else{a=J[J[J[a+16>>2]+16>>2]+40>>2];if(a)a:{e=fc-32|0;fc=e;b:{c:{d:{e:{c=J[a>>2];f:{if(!c)break f;d=J[c+28>>2];if(!J[c+24>>2]|(!d|!J[d+132>>2]))break f;J[e+20>>2]=1E3;J[e+12>>2]=231660;b= +Dc(1E3);J[e+16>>2]=b;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;J[699344]=0;J[e+28>>2]=4;J[e+24>>2]=b+4;d=_(4,36)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;f=J[a+20>>2];a=J[a+16>>2];J[699344]=0;c=ha(3723,d|0,c|0,a|0,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;da(3724,c|0,e+12|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;d=0;b=J[c+12>>2];a=J[c+16>>2];if((b|0)!=(a|0))while(1){f=d<<2;g=J[f+b>>2];if(g){uc(F0(g));J[f+J[c+12>>2]>>2]=0;b=J[c+12>>2];a=J[c+16>>2]}d=d+1|0;if(d>>>0>2>>>0)continue;break}b=J[c+24>>2];a=J[c+28>>2];g:{if((b|0)==(a|0)){b=a;break g}d=0;while(1){g=d<<2;f=J[g+b>>2];if(f){kc[J[J[f>>2]+4>>2]](f);J[g+J[c+24>>2]>>2]=0;b=J[c+24>>2];a=J[c+28>>2]}d=d+1|0;if(d>>>0>2>>>0)continue;break}}if(b){J[c+28>>2]=b;uc(b)}a=J[c+12>>2];if(a){J[c+16>>2]=a;uc(a)}a=J[c>>2];if(a){J[c+4>>2]=a;uc(a)}uc(c);a=J[e+16>>2];b=J[e+28>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;b=J[e+16>>2]}fc=e+32|0;a=b;break a}a=Z()|0;J[e+12>>2]=231660;b=J[e+16>>2];if(!b)break b; +break c}a=Z()|0;uc(d);J[e+12>>2]=231660}uc(b)}ba(a|0);B()}else a=0}return a|0}function rub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if((c|0)!=13){Jc(a,1028,0,0);return 1028}c=K[d|0]|K[d+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[d+2|0]|K[d+3|0]<<8;h=(c<<8|c>>>8)&65535;i=K[d+4|0];c=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);j=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=K[d+9|0]|K[d+10|0]<<8|(K[d+ +11|0]<<16|K[d+12|0]<<24);k=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b:{if(K[a+114|0]){c=kc[J[a+152>>2]](44)|0;if(!c){Jc(a,1,0,0);c=1;break b}J[c+4>>2]=1054;J[c>>2]=1055;f=J[a+700>>2];c:{if(f){J[f+8>>2]=c;break c}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;J[c+40>>2]=k;J[c+36>>2]=j;H[c+32|0]=i;I[c+30>>1]=h;I[c+28>>1]=g}c=daa(a,g,h,i,j,k)}d:{if(c)break d;c=0;if(!K[a+ +112|0])break d;c=kc[J[b+4>>2]](a,b,e)|0;if(c)break d;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;b=K[d+2|0]|K[d+3|0]<<8;I[a+34>>1]=b<<8|b>>>8;H[a+36|0]=K[d+4|0];b=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=a;a=K[d+9|0]|K[d+10|0]<<8|(K[d+11|0]<<16|K[d+12|0]<<24);J[b+44>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=0}return c|0}Jc(a,1029,0,0);return 1029}function c6a(a,b){a=a|0;b=b|0;var c=Q(0),d=Q(0),e=0,f=0,g=0,h=Q(0),i=0,j=0,k=Q(0), +l=Q(0),m=0,n=0,o=0,p=0,q=Q(0),r=Q(0),s=0,t=0,u=0,v=Q(0),w=Q(0),x=Q(0),y=Q(0),z=0,A=0,B=0;g=fc-16|0;fc=g;J[a>>2]=1199570688;J[a+4>>2]=-947912960;J[a+8>>2]=1199570688;J[a+12>>2]=-947912960;f=b+16|0;u=J[f+84>>2];if((u|0)>0){v=Q(65535);w=Q(-65535);b=0;x=Q(65535);y=Q(-65535);while(1){e=J[f+84>>2];B=J[f+80>>2];a:{b:{if((b|0)<0){if((e|0)<=0)break a;s=J[f+88>>2];if((s|0)<=0|(e|0)<(s|0))break a;e=s-1|0;break b}if((e|0)<=0)break a;e=b>>>0>>0?b:e-1|0}e=B+P(e,96)|0;c=N[e+12>>2];d=N[e+20>>2];h=Q(-N[e+16>>2]); +l=Q(-N[e+24>>2]);i=O[f+48>>3];n=O[f+40>>3];t=O[f+24>>3];j=O[f+32>>3];c:{d:{if(t!=1|j!=0|(n!=0|i!=1))break d;if(O[f+56>>3]!=0)break d;if(O[f- -64>>3]==0)break c}o=+c;m=o*j;z=+h;A=i*z;c=Q(m+A);p=m;m=i;i=+l;m=m*i;l=Q(p+m);h=ch?h:d;k=Q(j+A);h=hl?c:l;c=c>d?c:d;l=c>k?c:k;j=o*t;o=n*z;d=Q(j+o);i=n*i;k=Q(j+i);c=dk?d:k;d=d>q?d:q;d=d>r?d:r}N[g+4>>2]=Q(c+N[e+4>>2])+N[f+8>>2];N[g>>2]=Q(d+N[e+4>>2])+N[f+8>>2];N[g+12>> +2]=Q(h+N[e+8>>2])+N[f+12>>2];N[g+8>>2]=Q(l+N[e+8>>2])+N[f+12>>2]}c=N[g+8>>2];if(c>w){N[a+12>>2]=c;w=c}c=N[g+12>>2];if(c>2]=c;v=c}c=N[g+4>>2];if(c>2]=c;x=c}c=N[g>>2];if(c>y){N[a+4>>2]=c;y=c}b=b+1|0;if((u|0)!=(b|0))continue;break}}fc=g+16|0}function _sa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-48|0;fc=c;d=J[b>>2];a:{b:{if(!d){b=Qc(c+24|0,2394816,2386144,1347,2434265,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break b}J[c+4>>2]=0;c:{d:{e:{f:{while(1){J[699344]= +0;ma(5685,a|0,c+20|0,b|0,c|0,c+12|0);e=J[699344];J[699344]=0;if((e|0)==1)break f;if(J[c+20>>2]!=11)continue;break}if(K[a+49|0])break d;J[699344]=0;b=ja(5178,c+24|0,2392458,2386144,1362,2434265,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break c}a=Z()|0;break c}a=Z()|0;break c}g:{h:{i:{a=J[d+40>>2];if((a|0)<=J[d+44>>2])while(1){if(J[d+40>>2]>(a|0)){J[699344]=0;b=ja(5178,c+24|0,2393794,2394220,619,2434564,0)|0;a= +J[699344];J[699344]=0;if((a|0)==1)break g;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);break c}b=J[(J[d+28>>2]+P(a-J[d+32>>2]|0,12)|0)+4>>2];J[699344]=0;$(5616,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break i;b=J[d+44>>2]>(a|0);a=a+1|0;if(b)continue;break}a=J[c+4>>2];J[c+4>>2]=0;j:{if(!a)break j;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break h;if(b)break j;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break h}fc= +c+48|0;return}a=Z()|0;break c}ea(0)|0;Bc();B()}a=Z()|0}fw(c)}ba(a|0)}B()}function vC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{if(!a|(c|0)<=0)break b;d=J[a+4>>2];if(d>>>0>12)break b;d=1<>2];h=fc-16|0;fc=h;d=kc[J[663195]](60)|0;c:{if(!d){J[h>>2]=1832;Hc(0,0,0,0,0,2,2,3,1832,0,0,0,32879,h);break c}J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+ +28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+4>>2]=3;J[d+8>>2]=774748;if(b){d:{if((c|0)<0)break d;e=kc[J[663198]](c+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}f=xc(e,b,c);H[f+c|0]=0}J[d+40>>2]=f}if(!J[693393])break c;b=J[693390];if(!b)break c;kc[b|0](d)}fc=h+16|0;if(!d)break b;if((dh(a,d)|0)!=(d|0))break b;b=!g;if(b|(d|0)!=J[g+24>>2])break b;a=d;e=0;if(!b)if(!(!d|J[g+4>>2]!=3|(J[d+4>>2]!=3|J[d+8>>2]!=J[g+8>>2]))){c=J[d+40>>2];if(c){if(K[c|0]){b=c;while(1){e=e+1|0;d=K[b+1|0];b=b+1|0;if(d)continue; +break}}vC(g,c,e)}Wj(a);Fl(a)}return}if(!b)break b;f=J[a+40>>2];if((f|0)==(a+44|0))break a;d=J[a+32>>2];e:{if(!d)break e;d=J[d+80>>2];if(!d)break e;if(!f)break a;while(1){e=J[d+16>>2];if(e)while(1){if(f>>>0<=M[e+4>>2]&f>>>0>=e+20>>>0)break a;e=J[e>>2];if(e)continue;break}d=J[d+20>>2];if(d)continue;break}}i=a,j=ZK(f,b,c),J[i+40>>2]=j}return}b=YK(f,b,c);J[a+44>>2]=0;J[a+48>>2]=0;J[a+40>>2]=b}function pWa(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;g=J[a+420>>2];d=J[a+ +236>>2];if(d){c=J[g+36>>2];a:{if(c)break a;c=d;if(J[a+288>>2]<=0)break a;c=0;while(1){J[((c<<2)+g|0)+20>>2]=0;c=c+1|0;if((c|0)>2])continue;break}c=J[a+236>>2]}J[g+36>>2]=c-1}if(J[a+316>>2]>0)while(1){e=j<<2;c=J[(e+a|0)+320>>2]<<2;d=J[(c+a|0)+292>>2];h=J[((J[d+24>>2]<<2)+g|0)+92>>2];i=J[((J[d+20>>2]<<2)+g|0)+76>>2];o=J[a+380>>2];k=J[a+384>>2];d=0;l=b+e|0;m=J[l>>2];e=I[m>>1];n=c+g|0;c=J[n+20>>2];b:{if((e|0)==(c|0))break b;e=e-c|0;d=e>>31;c=(d^e)-d|0;d=0;while(1){e=d;d=e+1|0;f=c>>>0>1;c=c>>> +1|0;if(f)continue;break}if(e>>>0<11)break b;e=J[a>>2];J[e+20>>2]=6;kc[J[e>>2]](a)}d=(d<<2)+i|0;J[d>>2]=J[d>>2]+1;c:{if((k|0)<=0)break c;f=1;e=0;while(1){d:{c=L[(J[(f<<2)+o>>2]<<1)+m>>1];e:{if(c){if((e|0)>=16){d=(e-((e|0)>=31?31:e)|0)+15|0;J[h+960>>2]=(J[h+960>>2]+(d>>>4|0)|0)+1;e=(e-(d&-16)|0)-16|0}d=1;i=c;c=c<<16>>31;c=(i^c)-c&65535;f:{if(c>>>0<2)break f;while(1){i=d;d=d+1|0;p=c>>>0>3;c=c>>>1|0;if(p)continue;break}if(i>>>0<10)break f;c=J[a>>2];J[c+20>>2]=6;kc[J[c>>2]](a)}d=((e<<6)+h|0)+(d<<2)|0; +J[d>>2]=J[d>>2]+1;e=0;if((f|0)!=(k|0))break e;break c}if((f|0)==(k|0))break d;e=e+1|0}f=f+1|0;continue}break}if((e|0)<0)break c;J[h>>2]=J[h>>2]+1}J[n+20>>2]=I[J[l>>2]>>1];j=j+1|0;if((j|0)>2])continue;break}return 1}function W9(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+300|0]|K[a+293|0]|(K[a+292|0]|K[a+291|0]))break b;d:{e:{f:{g:{h:{i:{j:{k:{l:{if(!K[a+286|0]){f=K[a+287| +0];if(f)break k;if(!(K[a+288|0]|K[a+289|0]))break l;if((c|0)!=1)break a;if(f)break j;break i}if((c|0)==1)break j;break a}if(c>>>0<2)break i;break a}if((c|0)!=1)break a}H[a+297|0]=1;break h}m:{if(!(K[a+288|0]|K[a+289|0])){H[a+310|0]=(c|0)!=0;break m}H[a+297|0]=1}if(K[a+288|0]|K[a+289|0])break h;if(c)break g;f=K[a+2228|0];break f}n:{if(!K[a+288|0]){f=J[a+512>>2];if(f)break n}f=J[a+528>>2]}h=K[d|0];f=J[f+88>>2];H[f+59|0]=1;H[f+1140|0]=h;break e}f=K[d|0];H[a+2228|0]=f}g=0;o:{if(!K[a+114|0])break o;i= +!c;g=f&255;f=kc[J[a+152>>2]](32)|0;if(!f){Jc(a,1,0,0);g=1;break o}J[f+4>>2]=1034;J[f>>2]=1035;h=J[a+700>>2];p:{if(h){J[h+8>>2]=f;break p}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=h;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+29|0]=g;H[f+28|0]=i;g=0}f=g;if(f)break d}q:{if(!K[a+112|0])break q;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break d;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break q;H[a+33|0]=K[d|0]}f=0}return f|0}Jc(a, +1029,0,0);return 1029}Jc(a,1028,0,0);return 1028}function ep(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;m=d-b|0;if(m-4194304>>>0<=4286578688){f=b+d>>1;g=c+e>>1;ep(a,b,c,f,g);ep(a,f,g,d,e)}h=J[a+80>>2];g=b>>8;if((h|0)>(g|0)){J[a+80>>2]=g;h=g}k=J[a+88>>2];if((g|0)>(k|0)){J[a+88>>2]=g;k=g}l=J[a+84>>2];f=c>>8;if((l|0)>(f|0)){J[a+84>>2]=f;l=f}i=J[a+92>>2];if((f|0)>(i|0)){J[a+92>>2]=f;i=f}n=h;h=d>>8;if((n|0)>(h|0))J[a+80>>2]=h;if((h|0)>(k|0))J[a+88>>2]=h;j=e>>8;if((l|0)>(j|0))J[a+84>>2]=j;if((i| +0)<(j|0))J[a+92>>2]=j;o=e&255;h=c&255;Aq(a,g,f);if((f|0)==(j|0)){Px(a,f,b,h,d,o);return}i=e-c|0;if((b|0)==(d|0)){c=(i^-1)>>>23&256;b=c-h|0;J[a+56>>2]=b+J[a+56>>2];d=d<<1&510;J[a+60>>2]=J[a+60>>2]+P(d,b);b=f;f=i>>31|1;b=b+f|0;Aq(a,g,b);if((b|0)!=(j|0)){h=(c<<1)-256|0;i=P(h,d);while(1){J[a+60>>2]=i;J[a+56>>2]=h;b=b+f|0;Aq(a,g,b);if((b|0)!=(j|0))continue;break}}b=c+(e|-256)|0;J[a+56>>2]=b+J[a+56>>2];J[a+60>>2]=J[a+60>>2]+P(b,d);return}l=-1;c=h;a:{if((i|0)>=0){l=1;h=256-c|0;k=256;break a}i=0-i|0;k=0}n= +b;g=c;b=P(h,m);c=(b|0)/(i|0)|0;e=b-P(c,i)|0;c=(n+c|0)+(e>>31)|0;Px(a,f,n,g,c,k);b=f+l|0;Aq(a,c>>8,b);if((b|0)==(j|0)){Px(a,j,c,256-k|0,d,o);return}g=m<<8;f=(g|0)/(i|0)|0;g=g-P(f,i)|0;h=g>>31;g=(h&i)+g|0;h=f+h|0;f=256-k|0;e=e-((e|0)>=0?i:0)|0;while(1){n=c;e=e+g|0;m=(e|0)>=0;c=m+(c+h|0)|0;Px(a,b,n,f,c,k);b=b+l|0;Aq(a,c>>8,b);e=e-(m?i:0)|0;if((b|0)!=(j|0))continue;break}Px(a,j,c,f,d,o)}function Isa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m= +0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;p=fc-32|0;fc=p;a:{b:{if((f|0)>=0){n=J[a+3312>>2];s=(e|0)<=0;while(1){r=i;o=k;k=l;if(!s){i=K[l+1|0]|(K[h|0]<<9|K[h-1|0]<<10|K[h+1|0]<<8|K[i-1|0]<<7|K[j|0]<<6|K[o-1|0]<<5|K[o|0]<<4|K[o+1|0]<<3|K[l-1|0]<<2|K[l|0]<<1);l=0;while(1){t=l+r|0;m=(a+i|0)+1264|0;q=J[((K[m|0]<<2)+n|0)+44>>2]+J[n+20>>2]|0;c:{if(q>>>0<=M[n+28>>2]){J[n+20>>2]=q;m=H[m|0]&1;break c}m=qh(n,m,q)}H[t|0]=m;m=i<<1&1590|m<<7;i=l+2|0;l=l+1|0;i=m|K[i+h|0]<<8|K[l+j|0]<<6|K[i+o|0]<<3|K[i+k|0];if((e|0)!=(l|0))continue; +break}}if(!J[b+20>>2])_i(b);i=L[b+14>>1];h=f-1|0;d:{if(!(h>>>0>1]&(f|0)>0)){j=i;i=L[b+12>>1];if(J[685890]<(j+i|0)){a=Qc(p+8|0,2398385,2398717,577,2393703,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}i=i+J[685889]|0;break d}i=L[b+12>>1]+(J[b+20>>2]+P(h,i)|0)|0}if(!J[c+20>>2])_i(c);j=L[c+14>>1];e:{f:{if((g|0)>=2){l=g-2|0;if(l>>>0>1])break f}l=j;j=L[c+12>>1];if(J[685890]<(l+j|0)){a=Qc(p+8|0,2398385,2398717,577,2393703,0);J[699344]=0;$(5179,a|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break b;break a}j=j+J[685889]|0;break e}j=L[c+12>>1]+(J[c+20>>2]+P(j,l)|0)|0}g=g-1|0;GA(b);l=d+j|0;m=(f|0)>0;f=h;j=o;h=r;if(m)continue;break}}fc=p+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function wDa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=fc-32|0;fc=f;a:{b:{c:{d:{g=J[b>>2];if(!g)break d;if((Bo(g,47,0)|0)<0)break d;b=Qc(f+8|0,2395051,2386366,157,2400700,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break c}g=vc(28);J[699344]= +0;c=na(5317,g|0,b|0,c|0,d|0,e|0)|0;d=J[699344];J[699344]=0;e:{f:{if((d|0)!=1){J[f+4>>2]=0;d=f+4|0;vd(d,c);J[699344]=0;b=aa(5318,a+8|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;aa(5153,b+24|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;b=J[a+52>>2];c=J[a+56>>2];J[699344]=0;ca(5298,a+36|0,0,(c-b|0)+1|0);b=J[699344];J[699344]=0;if((b|0)==1)break f;c=J[a+56>>2];d=J[a+52>>2];b=c-d|0;if(!((b|0)<=(c|0)&(b|0)>=(d|0))){J[699344]=0;b=ja(5178,f+8|0,2386813,2387828,619,2400812,0)| +0;a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);break e}c=J[a+40>>2];a=J[a+44>>2];J[699344]=0;aa(5153,c+(b-a<<2)|0,f+4|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f;a=J[f+4>>2];J[f+4>>2]=0;g:{if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break g;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=f+32|0;return}a=Z()|0;uc(g);break c}a=Z()|0}zc(f+ +4|0)}ba(a|0)}B()}ea(0)|0;Bc();B()}function Iu(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,u=0,v=0,w=0;p=f*3.141592/180;o=Me(p);o=qf(Ee(p)/e,o/d);i=Ee(o);u=a,v=d*Me(o)+b,w=e*i+c,t=J[J[a>>2]+4>>2],kc[t](u|0,+v,+w)|0;if(R(f)<2147483648)l=~~f;else l=-2147483648;j=(l|0)/90|0;l=(l|0)<=89?1:((j|0)>=3?3:j)+1|0;if(R(g)<2147483648)j=~~g;else j=-2147483648;s=(j|0)/90|0;j=(j|0)<=89?1:((s|0)>=3?3:s)+1|0;o=g*3.141592/180;a:{if(h){if(j>>>0>l>>>0)break a;h=l;while(1){f=p;if((h|0)!=(l|0))f= ++Q(Q(Q(P(h,90)>>>0)*Q(3.141592025756836))/Q(180));g=o;if((h|0)!=(j|0))g=+Q(Q(Q(P(h,90)-90>>>0)*Q(3.141592025756836))/Q(180));i=Me(g);g=Ee(g);k=Me(f);f=qf(Ee(f)/e,k/d);g=qf(g/e,i/d);k=g-f;i=Av(k*.5);m=Ee(k);k=Me(g);g=Ee(g);n=Me(f);i=m*(Y(i*(i*3)+4)+-1)/3;m=i*d;f=Ee(f);q=d*n+b-m*f;i=i*e;r=n*i+(e*f+c);f=d*k+b;n=m*g+f;g=e*g+c;kc[J[J[a>>2]+8>>2]](a,q,r,n,g-i*k,f,g)|0;h=h-1|0;if(j>>>0<=h>>>0)continue;break}break a}if(j>>>0>>0)break a;h=l;while(1){f=o;if((h|0)!=(j|0))f=+Q(Q(Q(P(h,90)>>>0)*Q(3.141592025756836))/ +Q(180));g=Me(f);i=Ee(f);if((h|0)!=(l|0))p=+Q(Q(Q(P(h,90)-90>>>0)*Q(3.141592025756836))/Q(180));f=Me(p);f=qf(Ee(p)/e,f/d);g=qf(i/e,g/d);k=g-f;i=Av(k*.5);m=Ee(k);k=Me(g);g=Ee(g);n=Me(f);i=m*(Y(i*(i*3)+4)+-1)/3;m=i*d;f=Ee(f);q=d*n+b-m*f;i=i*e;r=n*i+(e*f+c);f=d*k+b;n=m*g+f;g=e*g+c;kc[J[J[a>>2]+8>>2]](a,q,r,n,g-i*k,f,g)|0;h=h+1|0;if(j>>>0>=h>>>0)continue;break}}}function RK(a,b){var c=0,d=0,e=0,f=0,g=0;f=fc-32|0;fc=f;a:{if(!b){Qr(a,36668,0);break a}if(J[693384]){J[f+16>>2]=J[b+8>>2];kc[J[663297]](J[693366], +32750,f+16|0)}if(!J[b+40>>2]){b:switch(J[b+48>>2]-1|0){case 2:Qr(a,32252,J[b+8>>2]);break a;case 1:case 4:c=KC(J[b+64>>2],J[b+52>>2],a);break a;case 0:Qr(a,38730,J[b+8>>2]);break a;case 3:Qr(a,38682,J[b+8>>2]);break a;case 5:break b;default:break a}Qr(a,38768,J[b+8>>2]);break a}c=kc[J[663195]](60)|0;if(!c){if(a){if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=0;break a}J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2}J[f>>2]=33608;c=0;Hc(0,0,0,a,0,1,2,3,33608,0,0,0,32879,f);break a}J[c+48>>2]=0;J[c+52>>2]=0;d=c+32| +0;J[d>>2]=0;J[d+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+56>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+52>>2]=-1;J[c+32>>2]=1;J[c+28>>2]=1;if(a){d=a;a=J[a+464>>2];J[d+464>>2]=a+1;J[c+56>>2]=a}d=J[b+64>>2];if(d){a=d;while(1){e=a;a=a+1|0;if(K[e|0])continue;break}a=0;e=e-d|0;c:{if((e|0)<0)break c;g=kc[J[663198]](e+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break c}a=xc(g,d,e);H[e+a|0]=0}J[c+4>>2]=a}d=J[b+40>>2];J[c+12>>2]=d;e=J[b+ +44>>2];if(!e){d:{if(!d){e=0;break d}e=0;if(!K[d|0])break d;a=d;while(1){e=e+1|0;g=K[a+1|0];a=a+1|0;if(g)continue;break}}J[b+44>>2]=e}J[c+24>>2]=e;J[c+16>>2]=d;J[c+20>>2]=e+d}fc=f+32|0;return c}function GGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-48|0;fc=d;a:{b:{c:{d:{if((tq(a)|0)<=0)break d;if(!vk(a))break d;g=d+24|0;QC(g,a);J[699344]=0;g=aa(4985,d+36|0,g|0)|0;e=J[699344];J[699344]=0;e:{if((e|0)!=1){if(H[d+35|0]<0)uc(J[d+24>>2]);f:{g:{h:{i:{while(1){J[699344]=0;e=J[g+4>>2];f=J[699344];J[699344]= +0;if((f|0)==1)break f;if(!e)break e;J[699344]=0;e=Qd(g,b);f=J[699344];J[699344]=0;if((f|0)==1)break f;if(e){J[699344]=0;b=d+24|0;da(4971,b|0,a|0);e=J[699344];J[699344]=0;j:{if((e|0)!=1){J[699344]=0;ca(5022,c|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break j;if(H[d+35|0]>=0)break e;uc(J[d+24>>2]);break e}a=Z()|0;break b}a=Z()|0;if(H[d+35|0]>=0)break b;uc(J[d+24>>2]);break b}J[699344]=0;e=Mi(a);f=J[699344];J[699344]=0;if((f|0)==1)break f;if(!e)break e;J[699344]=0;e=d+24|0;da(4970,e|0,a|0);f=J[699344]; +J[699344]=0;if((f|0)!=1){J[699344]=0;e=aa(4985,d+12|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break i;J[699344]=0;dg(g,e);f=J[699344];J[699344]=0;if((f|0)==1)break h;Rc(e);if(H[d+35|0]>=0)continue;uc(J[d+24>>2]);continue}break}a=Z()|0;break b}a=Z()|0;break g}a=Z()|0;Rc(e)}if(H[d+35|0]>=0)break b;uc(J[d+24>>2]);break b}a=Z()|0;break b}a=Z()|0;if(H[d+35|0]>=0)break a;uc(J[d+24>>2]);ba(a|0);B()}J[699344]=0;gj(a);a=J[699344];J[699344]=0;if((a|0)==1)break c;Rc(g)}fc=d+48|0;return}a=Z()|0}Rc(g)}ba(a| +0);B()}function WQ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;a=fc-16|0;fc=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;a:{b:{c:{while(1){d:{c=J[a+12>>2];if(c>>>0>=d>>>0)break d;j=J[a+8>>2];if(j>>>0>=g>>>0)break d;b=2;f=K[c|0];e:{if(f<<24>>24>=0){I[j>>1]=f;b=c+1|0;break e}if(f>>>0<194)break b;if(f>>>0<=223){if((d-c|0)<2)break c;i=K[c+1|0];if((i&192)!=128)break a;I[j>>1]=i&63|f<<6&1984;b=c+2|0;break e}if(f>>>0<=239){if((d-c|0)<3)break c;k=K[c+2|0];i= +K[c+1|0];f:{g:{if((f|0)!=237){if((f|0)!=224)break g;if((i&224)==160)break f;break a}if((i&224)==128)break f;break a}if((i&192)!=128)break a}if((k&192)!=128)break a;I[j>>1]=k&63|((i&63)<<6|f<<12);b=c+3|0;break e}if(f>>>0>244)break b;b=1;if((d-c|0)<4)break a;k=K[c+3|0];i=K[c+2|0];c=K[c+1|0];h:{i:switch(f-240|0){case 0:if((c+112&255)>>>0>=48)break b;break h;case 4:if((c&240)!=128)break b;break h;default:break i}if((c&192)!=128)break b}if((i&192)!=128|(k&192)!=128)break b;if((g-j|0)<4)break a;b=2;k=k& +63;l=i<<6;f=f&7;if((k|(l&4032|(c<<12&258048|f<<18)))>>>0>1114111)break a;b=c<<2;I[j>>1]=(i>>>4&3|(b&192|f<<8|b&60))+16320|55296;J[a+8>>2]=j+2;I[j+2>>1]=k|l&960|56320;b=J[a+12>>2]+4|0}J[a+12>>2]=b;J[a+8>>2]=J[a+8>>2]+2;continue}break}b=c>>>0>>0;break a}b=1;break a}b=2}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];fc=a+16|0;return b|0}function Zub(a){a=a|0;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;if(J[a+588>>2]>0){e=J[J[a+536>>2]+88>>2];e=(J[e+1176>>2]+P(J[e+1168>>2],J[a+572>>2])| +0)+P(J[e+1164>>2],J[a+580>>2])|0;g=J[a+644>>2];while(1){d=K[g+6|0]|K[g+7|0]<<8;c=(d<<8|d>>>8)&65535;i=e+6|0;b=K[i|0]|K[i+1|0]<<8;b=(b<<8|b>>>8)&65535;a:{if(!c|(b|0)==65535)break a;d=K[e|0]|K[e+1|0]<<8;f=(d<<8|d>>>8)&65535;d=e+2|0;h=K[d|0]|K[d+1|0]<<8;o=(h<<8|h>>>8)&65535;h=e+4|0;j=K[h|0]|K[h+1|0]<<8;j=(j<<8|j>>>8)&65535;k=K[g|0]|K[g+1|0]<<8;k=(k<<8|k>>>8)&65535;l=K[g+2|0]|K[g+3|0]<<8;l=(l<<8|l>>>8)&65535;m=K[g+4|0]|K[g+5|0]<<8;m=(m<<8|m>>>8)&65535;if((c|0)==65535){i=b^65535;c=(P(b,f)+P(i,k)|0)+32768| +0;c=(c>>>16|0)+c>>>16|0;c=c<<8|c>>>8;H[e|0]=c;H[e+1|0]=c>>>8;c=(P(b,o)+P(i,l)|0)+32768|0;c=(c>>>16|0)+c>>>16|0;c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;b=(P(b,j)+P(i,m)|0)+32768|0;b=(b>>>16|0)+b>>>16|0;b=b<<8|b>>>8;H[h|0]=b;H[h+1|0]=b>>>8;I[e+6>>1]=65535;break a}n=b<<16;p=b^65535;b=(P(p,c^65535)^-1)>>>16|0;n=(n>>>0)/(b>>>0)|0;c=(P(c,p)>>>0)/(b>>>0)|0;f=(P(f,n)+P(c,k)|0)+32767>>>16|0;f=f<<8|f>>>8;H[e|0]=f;H[e+1|0]=f>>>8;f=(P(o,n)+P(c,l)|0)+32767>>>16|0;f=f<<8|f>>>8;H[d|0]=f;H[d+1|0]=f>>>8;d=(P(j,n)+P(c, +m)|0)+32767>>>16|0;d=d<<8|d>>>8;H[h|0]=d;H[h+1|0]=d>>>8;b=b<<8|b>>>8;H[i|0]=b;H[i+1|0]=b>>>8}g=g+8|0;e=e+8|0;q=q+1|0;if((q|0)>2])continue;break}}return 0}function xZ(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;d=fc+-64|0;fc=d;J[d+48>>2]=13;f=c;c=d+48|0;a:{if(J[Ec(J[a>>2],f,c,0)>>2]!=7){yc(c);break a}b:{c:{d:{l=J[J[d+56>>2]+16>>2];if((l|0)>0)while(1){J[d+32>>2]=13;J[d+16>>2]=13;e:{f:{if(J[aq(J[d+56>>2],k,d+32|0)>>2]==8){c=J[d+40>>2];if(J[Ec(kc[J[J[c>>2]+76>>2]](c)|0,785256,d+16| +0,0)>>2]==7)break f}yc(d+32|0);yc(d+16|0);break e}J[d>>2]=13;c=J[d+40>>2];f=Ke(kc[J[J[c>>2]+76>>2]](c)|0,785256,d);g=J[a+8>>2];c=J[d+8>>2];g:{if(J[f>>2]!=9){f=c;c=J[g+4>>2];break g}f=c;h:{c=J[g+4>>2];e=J[g>>2];if((c|0)==(e|0))break h;while(1){if(J[e>>2]==(f|0))break h;e=e+4|0;if((e|0)!=(c|0))continue;break}break g}if((c|0)==(e|0))break g;yc(d+32|0);yc(d+16|0);yc(d);break e}e=J[g+8>>2];i:{if(e>>>0>c>>>0){J[c>>2]=f;J[g+4>>2]=c+4;break i}j=J[g>>2];h=c-j>>2;i=h+1|0;if(i>>>0>=1073741824)break d;m=h<<2; +e=e-j|0;h=e>>1;h=e>>>0>=2147483644?1073741823:h>>>0>i>>>0?h:i;if(h){if(h>>>0>=1073741824)break c;i=vc(h<<2)}else i=0;e=m+i|0;J[e>>2]=f;f=e+4|0;if((c|0)!=(j|0))while(1){e=e-4|0;c=c-4|0;J[e>>2]=J[c>>2];if((c|0)!=(j|0))continue;break}J[g+8>>2]=i+(h<<2);J[g+4>>2]=f;J[g>>2]=e;if(!j)break i;uc(j)}yc(d+32|0);yc(d);c=mB(J[d+24>>2],b,J[a+4>>2]+1|0,J[a+8>>2]);yc(d+16|0);if(c)break b}k=k+1|0;if((l|0)!=(k|0))continue;break}yc(d+48|0);break a}qj(g);B()}Pd();B()}yc(d+48|0);n=1}fc=d- -64|0;return n}function FZa(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if(M[f>>2]>=g>>>0)break a;o=P(J[a+272>>2],3);j=J[a+396>>2];p=j+8|0;while(1){b:{c:{d:{h=J[c>>2];if(h>>>0>>0){i=J[j+52>>2];k=J[j+60>>2]-i|0;l=d-h|0;l=k>>>0>>0?k:l;kc[J[J[a+408>>2]+4>>2]](a,(h<<2)+b|0,p,i,l);e:{if(J[j+48>>2]!=J[a+32>>2])break e;i=J[a+76>>2];if((i|0)<=0)break e;k=0;h=J[a+272>>2];if((h|0)<=0)break e;while(1){if((h|0)>0){m=(k<<2)+j|0;i=1;while(1){h=J[m+8>>2];ao(h,0,h,0-i|0,1,J[a+28>> +2]);h=J[a+272>>2];n=(h|0)>(i|0);i=i+1|0;if(n)continue;break}i=J[a+76>>2]}k=k+1|0;if((k|0)<(i|0))continue;break}}J[c>>2]=l+J[c>>2];k=l+J[j+52>>2]|0;J[j+52>>2]=k;J[j+48>>2]=J[j+48>>2]-l;h=J[j+60>>2];break d}if(J[j+48>>2])break a;h=J[j+60>>2];k=J[j+52>>2];if((h|0)<=(k|0))break d;l=0;k=J[a+76>>2];if((k|0)>0){while(1){i=J[j+52>>2];m=J[j+60>>2];if((i|0)<(m|0)){h=J[((l<<2)+j|0)+8>>2];k=J[a+28>>2];n=i-1|0;while(1){ao(h,n,h,i,1,k);i=i+1|0;if((m|0)!=(i|0))continue;break}k=J[a+76>>2]}l=l+1|0;if((l|0)<(k|0))continue; +break}h=J[j+60>>2]}J[j+52>>2]=h;i=J[f>>2];break c}i=J[f>>2];if((h|0)!=(k|0))break b}kc[J[J[a+412>>2]+4>>2]](a,p,J[j+56>>2],e,i);J[f>>2]=J[f>>2]+1;i=J[a+272>>2];h=i+J[j+56>>2]|0;J[j+56>>2]=(h|0)<(o|0)?h:0;h=J[j+52>>2];if((h|0)>=(o|0)){J[j+52>>2]=0;h=0}J[j+60>>2]=h+i;i=J[f>>2]}if(i>>>0>>0)continue;break}}}function ASa(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=fc+-64|0;fc=f;J[f+40>>2]=13;J[f+24>>2]=13;h=vc(16);J[699344]=0;e=aa(3539,h|0,1)|0;g=J[699344];J[699344]=0; +a:{b:{if((g|0)!=1){J[a>>2]=e;h=vc(16);J[699344]=0;e=_(3352,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[a+4>>2]=e;if(J[d+16>>2]>0){h=0;while(1){j=J[J[d+4>>2]+(h<<5)>>2];e=f+40|0;$p(d,h,e);jf(e,b,f+24|0,0);c:{if(J[f+24>>2]!=7){Cc(1,-1,823325,0);break c}d:{if(J[f+40>>2]==9){e=J[f+48>>2];g=J[f+52>>2];i=J[a+4>>2];l=J[i+8>>2];if((l|0)<=0)break d;m=J[i>>2];i=0;while(1){k=J[(i<<2)+m>>2];if(!(J[k+8>>2]==(e|0)&J[k+12>>2]==(g|0))){i=i+1|0;if((l|0)!=(i|0))continue;break d}break}g=J[a>>2];e=vc(8);J[699344]= +0;j=aa(3349,e|0,j|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1){Jg(g,j,k);break c}a=Z()|0;uc(e);ba(a|0);B()}if(c){g=J[c>>2]+1E5|0;e=h;break d}J[f+60>>2]=-2128831035;BJ(a,f+24|0,f+60|0);e=J[f+60>>2];e=e&2147483647^e>>>31;g=1E5}J[f+20>>2]=g;J[f+16>>2]=e;e=J[f+20>>2];J[f+8>>2]=J[f+16>>2];J[f+12>>2]=e;e=u$(b,j,f+8|0,J[f+32>>2]);if(!J[e+156>>2]){kc[J[J[e>>2]+4>>2]](e);break c}sd(J[a+4>>2],e);i=J[a>>2];g=vc(8);J[699344]=0;j=aa(3349,g|0,j|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break b;Jg(i,j,e)}yc(f+40|0); +yc(f+24|0);h=h+1|0;if((h|0)>2])continue;break}}fc=f- -64|0;return a|0}break a}a=Z()|0;uc(g);ba(a|0);B()}a=Z()|0;uc(h);ba(a|0);B()}function v9(){var a=0,b=0,c=0,d=0,e=0;a=kd(256,4);if(a){J[a+4>>2]=7;J[a+8>>2]=6;J[a+252>>2]=27;J[a+244>>2]=21;J[a+248>>2]=20;J[a+236>>2]=22;J[a+240>>2]=14;J[a+228>>2]=16;J[a+232>>2]=15;J[a+220>>2]=23;J[a+224>>2]=9;J[a+212>>2]=17;J[a+216>>2]=16;J[a+204>>2]=18;J[a+208>>2]=10;J[a+196>>2]=12;J[a+200>>2]=11;J[a+188>>2]=24;J[a+192>>2]=5;J[a+180>>2]=18;J[a+184>>2]=17; +J[a+172>>2]=19;J[a+176>>2]=11;J[a+164>>2]=13;J[a+168>>2]=12;J[a+156>>2]=20;J[a+160>>2]=6;J[a+148>>2]=14;J[a+152>>2]=13;J[a+140>>2]=15;J[a+144>>2]=7;J[a+132>>2]=9;J[a+136>>2]=8;J[a+124>>2]=25;J[a+128>>2]=2;J[a+116>>2]=19;J[a+120>>2]=18;J[a+108>>2]=20;J[a+112>>2]=12;J[a+100>>2]=14;J[a+104>>2]=13;J[a+92>>2]=21;J[a+96>>2]=7;J[a+84>>2]=15;J[a+88>>2]=14;J[a+76>>2]=16;J[a+80>>2]=8;J[a+68>>2]=10;J[a+72>>2]=9;J[a+60>>2]=22;J[a+64>>2]=3;J[a+52>>2]=16;J[a+56>>2]=15;J[a+44>>2]=17;J[a+48>>2]=9;J[a+36>>2]=11;J[a+ +40>>2]=10;J[a+28>>2]=18;J[a+32>>2]=4;J[a+20>>2]=12;J[a+24>>2]=11;J[a+12>>2]=13;J[a+16>>2]=5;d=64;while(1){c=d<<2;b=c+a|0;J[b>>2]=J[b-256>>2]+1;b=(c|4)+a|0;J[b>>2]=J[b-256>>2]+1;b=(c|8)+a|0;J[b>>2]=J[b-256>>2]+1;b=(c|12)+a|0;J[b>>2]=J[b-256>>2]+1;e=128;d=d+4|0;if((d|0)!=128)continue;break}while(1){c=e<<2;b=c+a|0;J[b>>2]=J[b-512>>2];b=(c|4)+a|0;J[b>>2]=J[b-512>>2];b=(c|8)+a|0;J[b>>2]=J[b-512>>2];b=(c|12)+a|0;J[b>>2]=J[b-512>>2];e=e+4|0;if((e|0)!=256)continue;break}}return a}function E6a(a,b,c){a=a| +0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-48|0;fc=e;J[e+16>>2]=17;J[e+20>>2]=J[b+8>>2];J[e+24>>2]=J[b+12>>2];d=Dc(32);J[d+24>>2]=1768386675;J[d+28>>2]=0;J[d+16>>2]=1768386662;J[d+20>>2]=0;J[d+8>>2]=1768386675;J[d+12>>2]=0;J[d>>2]=1768386662;J[d+4>>2]=0;J[e+40>>2]=4;J[e+44>>2]=d;b=0;a:{if(aE(J[J[a>>2]>>2],e+16|0,c,e+12|0))break a;uc(d);b=vc(336);J[699344]=0;a=i4(b);d=J[699344];J[699344]=0;b:{if((d|0)!=1){J[a+184>>2]=c;b=J[e+12>>2];J[a+268>>2]=L[b+68>>1];J[a+256>>2]=I[b+70>>1];J[a+260>>2]=I[b+72>>1];J[a+ +264>>2]=I[b+74>>1];c=J[b+36>>2];J[a+188>>2]=b;J[a+252>>2]=c;J[a+200>>2]=-1;J[a+204>>2]=-1;b=ho(J[a+188>>2],2);c:{if(!b)break c;J[a+200>>2]=L[b+92>>1];if(L[b>>1]==65535)break c;c=J[b+80>>2];if(c|J[b+84>>2]?(c|0)>=0:0)break c;b=J[a+188>>2];c=J[b+36>>2];if((c|0)<=0)break c;d=J[b+40>>2];b=0;while(1){f=J[d+(b<<2)>>2];if(!(L[f+10>>1]|L[f+8>>1]!=3)){J[a+204>>2]=b;break c}b=b+1|0;if((c|0)!=(b|0))continue;break}}b=0;d=J[e+12>>2];g=O[a+112>>3]*64;d:{if(R(g)<2147483648){c=~~g;break d}c=-2147483648}if(!Z7(d, +c,0,0))break b;kc[J[J[a>>2]+4>>2]](a);break a}a=Z()|0;uc(b);ba(a|0);B()}J[a+56>>2]=0;J[a+60>>2]=1072693248;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=1072693248;J[a+96>>2]=0;J[a+100>>2]=0;kc[J[J[a>>2]+72>>2]](a);bM(a);b=a}fc=e+48|0;return b|0}function gMa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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;H[a+101|0]=f;H[a+100|0]=e;J[a+44>>2]=d;s=a,t=Gd(d,4),J[s+32>>2]= +t;s=a,t=Gd(J[a+44>>2]+1|0,8),J[s+40>>2]=t;k=Gd(J[a+44>>2]+1|0,4);J[a+36>>2]=k;m=c<<2;e=m+J[b>>2]|0;d=J[e>>2];f=J[a+44>>2];i=J[(e+(f<<2)|0)-4>>2];e=K[a+100|0];j=e&1;l=O[(j?d:i)+32>>3];n=O[d+16>>3];o=O[d+24>>3];O[a+24>>3]=O[(j?i:d)+40>>3];O[a+16>>3]=o;O[a>>3]=n;O[a+8>>3]=l;i=J[b>>2];if((f|0)>0){j=J[a+40>>2];p=J[a+32>>2];d=0;q=e>>>0>1;r=e-1|0;while(1){e=d<<2;b=J[i+((q?((d^-1)+c|0)+f|0:c+d|0)<<2)>>2];J[e+p>>2]=J[b>>2];f=e+k|0;e=J[b+4>>2];J[f>>2]=e;f=J[a+44>>2];if((f-1|0)==(d|0))J[(f<<2)+k>>2]=e+J[b+8>> +2];e=j+(d<<3)|0;a:{b:{c:switch(r|0){default:O[e>>3]=O[b+16>>3];f=J[a+44>>2];if((f-1|0)!=(d|0))break a;b=b+32|0;break b;case 0:O[e>>3]=O[b+24>>3];f=J[a+44>>2];if((f-1|0)!=(d|0))break a;b=b+40|0;break b;case 1:O[e>>3]=O[b+32>>3];f=J[a+44>>2];if((f-1|0)!=(d|0))break a;b=b+16|0;break b;case 2:break c}O[e>>3]=O[b+40>>3];f=J[a+44>>2];if((f-1|0)!=(d|0))break a;b=b+24|0}O[j+(f<<3)>>3]=O[b>>3]}d=d+1|0;if((f|0)>(d|0))continue;break}}b=J[i+m>>2];J[a+48>>2]=J[b+48>>2];l=O[b+56>>3];H[a+104|0]=0;H[a+103|0]=h;H[a+ +102|0]=g;O[a+56>>3]=l;J[a+64>>2]=0;O[a+72>>3]=O[b+64>>3];O[a+80>>3]=O[b+72>>3];O[a+88>>3]=O[b+80>>3];J[a+96>>2]=H[b+91|0];return a|0}function tpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=fc-16|0;fc=h;i=J[a+84>>2];a:{b:{c:{f=J[a+8>>2];if(!(f&8))break c;f=J[a+4>>2]&2147418112|f&32768;if(d&16){if(f){f=7;if(!(K[a+740|0]&16))break a}if(!K[a+292|0])break c;if(!c)break b;f=0;if((c|0)!=1){i=c&-2;d=0;while(1){j=h+14|0;k=h+12|0;kc[J[J[a+540>>2]+140>>2]](a,1,b+g|0,j,k);J[(g<< +2)+e>>2]=L[h+12>>1];l=g|1;kc[J[J[a+540>>2]+140>>2]](a,1,l+b|0,j,k);J[(l<<2)+e>>2]=L[h+12>>1];g=g+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1))break a;kc[J[J[a+540>>2]+140>>2]](a,1,b+g|0,h+14|0,h+12|0);J[(g<<2)+e>>2]=L[h+12>>1];break a}if(f){f=7;if(!(K[a+740|0]&2))break a}if(!L[a+250>>1])break c;if(!c)break b;f=0;if((c|0)!=1){i=c&-2;d=0;while(1){j=h+14|0;k=h+10|0;kc[J[J[a+540>>2]+140>>2]](a,0,b+g|0,j,k);J[(g<<2)+e>>2]=L[h+10>>1];l=g|1;kc[J[J[a+540>>2]+140>>2]](a,0,l+b|0,j,k);J[(l<<2)+e>>2]= +L[h+10>>1];g=g+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!(c&1))break a;kc[J[J[a+540>>2]+140>>2]](a,0,b+g|0,h+14|0,h+10|0);J[(g<<2)+e>>2]=L[h+10>>1];break a}if(!c)break b;if(!i){f=37;break a}l=i+(d&16?60:56)|0;while(1){f=J[a+88>>2];j=(f?256:259)|d;k=b+g|0;d:{if(!(j&1?0:f)){f=kE(i,0,k,j);break d}if(J[f>>2]!=J[i+4>>2]){f=35;break a}f=kE(i,f,k,j)}if(f)break a;J[(g<<2)+e>>2]=J[l>>2];g=g+1|0;if((g|0)!=(c|0))continue;break}}f=0}fc=h+16|0;return f|0}function s1(a){var b=0,c=0,d=0,e=0,f=0;f=fc-16|0; +fc=f;a:{if(J[a+292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Rd(a)}c=0;b:{if(J[a+172>>2]==-1|K[J[J[a+36>>2]+16>>2]]!=38)break b;Zd(a);e=hi(a);if(!e){oe(a,68,34530);break b}if(K[J[J[a+36>>2]+16>>2]]!=59){if(J[a+172>>2]==-1?J[a+212>>2]:0)break b;J[a+84>>2]=23;J[f>>2]=29313;Hc(0,0,0,a,0,1,23,3,0,0,0,0,32906,f);J[a+12>>2]=0;if(J[a+288>>2])break b;J[a+212>>2]=1;break b}Zd(a);if(!(K[a+362|0]&16)){c=fj(e);if(c)break b}J[a+440>>2]=J[a+440>>2]+1;c=0;d=J[a>>2];c:{if(!d)break c;b=J[d+ +20>>2];if(b)b=kc[b|0](J[a+4>>2],e)|0;else b=0;d=J[a+12>>2];d:{if(b|(d|0)!=1)break d;if(!(K[a+362|0]&16)){b=0;d=1;break d}b=fj(e);d=J[a+12>>2]}if(b|(d|0)!=1)break c;b=0;if(J[a+4>>2]!=(a|0))break c;b=JC(a,e)}d=J[a+172>>2];if((d|0)==-1)break b;if(!b){e:{if(!(J[a+88>>2]|J[a+92>>2]?J[a+28>>2]!=1:0)){Uf(a,26,35973,e);break e}ku(a,27,35973,e);if(J[a+216>>2])break e;b=J[a>>2];if(!b)break e;b=J[b+64>>2];if(!b)break e;kc[b|0](J[a+4>>2],e)}sk(a,0,0,0);J[a+100>>2]=0;break b}c=J[b+48>>2];f:{if((c|0)==3){Uf(a, +28,32276,e);break f}d=(d|0)!=12;if(!(d|(c|0)!=2)){Uf(a,29,37401,e);break f}if(!d){if((c|0)==6)break f;c=J[b+72>>2];if(c&1?0:c)break f;c=J[b+40>>2];if(!c)break f;if(!rq(c,60))break f;Uf(a,38,31810,e);break f}if((c&-2)!=4)break f;Uf(a,30,37353,e)}c=b}fc=f+16|0;return c}function tja(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;g=fc-32|0;fc=g;J[g+28>>2]=b;a:{b:{if(!(J[d+4>>2]&1)){J[g>>2]=-1;b=kc[J[J[a>>2]+16>>2]](a,b,c,d,e,g)|0;c:switch(J[g>>2]){case 1:H[f|0]=1;break a;case 0:break b; +default:break c}H[f|0]=1;J[e>>2]=4;break a}a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[699344]=0;h=_(6826,g|0)|0;a=J[699344];J[699344]=0;d:{e:{f:{g:{if((a|0)!=1){a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[699344]=0;b=_(6827,g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;a=J[g>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)kc[J[J[a>>2]+8>>2]](a);J[699344]=0;da(6828,g|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1){b=Z()| +0;break d}J[699344]=0;da(6829,g|12,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;d=g+24|0;a=va(6830,g+28|0,c|0,g|0,d|0,h|0,e|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;H[f|0]=(a|0)==(g|0);b=J[g+28>>2];while(1){d=jd(d-12|0);if((g|0)!=(d|0))continue;break}break a}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;jd(g);break d}b=Z()|0;while(1){d= +jd(d-12|0);if((g|0)!=(d|0))continue;break}}ba(b|0);B()}H[f|0]=0}fc=g+32|0;return b|0}function Via(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;g=fc-32|0;fc=g;J[g+28>>2]=b;a:{b:{if(!(J[d+4>>2]&1)){J[g>>2]=-1;b=kc[J[J[a>>2]+16>>2]](a,b,c,d,e,g)|0;c:switch(J[g>>2]){case 1:H[f|0]=1;break a;case 0:break b;default:break c}H[f|0]=1;J[e>>2]=4;break a}a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[699344]=0;h=_(6750,g|0)|0;a=J[699344];J[699344]=0;d:{e:{f:{g:{if((a|0)!=1){a=J[g>>2];b=J[a+4>> +2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);a=J[d+28>>2];J[g>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[699344]=0;b=_(6854,g|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;a=J[g>>2];d=J[a+4>>2]-1|0;J[a+4>>2]=d;if((d|0)==-1)kc[J[J[a>>2]+8>>2]](a);J[699344]=0;da(6855,g|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1){b=Z()|0;break d}J[699344]=0;da(6856,g|12,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;d=g+24|0;a=va(6857,g+28|0,c|0,g|0,d|0,h|0,e|0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e; +H[f|0]=(a|0)==(g|0);b=J[g+28>>2];while(1){d=df(d-12|0);if((g|0)!=(d|0))continue;break}break a}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;a=J[g>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);break d}b=Z()|0;df(g);break d}b=Z()|0;while(1){d=df(d-12|0);if((g|0)!=(d|0))continue;break}}ba(b|0);B()}H[f|0]=0}fc=g+32|0;return b|0}function QHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a=fc-80|0;fc=a;e=lI(a+68|0,b);J[699344]= +0;f=!J[e+4>>2];b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((b|0)==1)break g;if(f)break e;J[699344]=0;b=J[e+4>>2];d=J[699344];J[699344]=0;if((d|0)==1)break g;if(!b)break f;J[699344]=0;J[a>>2]=0;b=J[e>>2];if(K[e+8|0])b=J[b>>2];b=J[(J[a>>2]<<2)+b>>2];d=J[699344];J[699344]=0;if((d|0)==1)break d;if((b|0)!=123)break f;J[699344]=0;ca(5012,c|0,e|0,e|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f}b=Z()|0;break a}J[699344]=0;ia(5013,a+56|0,e|0,44,0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[a+40>>2]= +0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=1072693248;b=J[a+60>>2]-J[a+56>>2]|0;if((b|0)>0){b=(b>>>0)/12|0;b=b>>>0>=6?6:b;d=(b|0)<=1?1:b;b=0;while(1){J[699344]=0;g=+qa(5014,J[a+56>>2]+P(b,12)|0);h=J[699344];J[699344]=0;if((h|0)==1)break b;O[(b<<3)+a>>3]=g;b=b+1|0;if((d|0)!=(b|0))continue;break}}J[699344]=0;da(5015,c|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;d=J[a+56>>2];if(!d)break e;c= +d;b=J[a+60>>2];if((d|0)!=(b|0)){while(1){b=Rc(b-12|0);if((d|0)!=(b|0))continue;break}c=J[a+56>>2]}J[a+60>>2]=d;uc(c)}Rc(e);fc=a+80|0;return!f|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;_A(a+56|0)}Rc(e);ba(b|0);B()}function CV(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,w=0;h=fc-16|0;fc=h;g=J[c+4>>2];f=J[c+12>>2];b=(b|0)<(g|0)?g:(b|0)<(f|0)?b:f-1|0;f=J[a+104>>2];a:{b:{if((b|0)==(f|0))break b;g=J[a+76>>2];if((b|0)==J[a+100>>2])break a;J[a+100>>2]=f;J[a+104>>2]= +b;J[a+76>>2]=J[a+88>>2];J[a+88>>2]=g;f=J[a+16>>2];J[h>>2]=J[c>>2]<>2]=J[c+8>>2]<>2];J[h+12>>2]=b+1<>2]=b<>2]|0,0-J[d+4>>2]|0);f=J[h>>2];k=J[h+8>>2];if((f|0)>=(k|0))break b;b=J[a+16>>2];o=1<>2];j=d+b|0;c=j-1|0;l=1<>2];i=J[h+12>>2]-b|0;d=1<(i|0)?i:d;if((p|0)>0){q=L[e+12>>1];t=(b|0)>=0?b>>>0>1]?J[e+16>>2]+P(P(b,q),3)|0:0:0;u=2<(f|0);w=P(r?f:k,3);c=0;i= +0;m=0;d=0;while(1){b=e;s=(w+b|0)+v|0;if(b>>>0>>0)while(1){c=c+1|0;i=K[b|0]+i|0;m=K[b+1|0]+m|0;d=K[b+2|0]+d|0;b=b+3|0;if(s>>>0>b>>>0)continue;break}e=P(q,3)+e|0;n=n+1|0;if((p|0)!=(n|0))continue;break}c:{if((c|0)==(u|0)){b=i+l>>j;i=l+m>>j;c=d+l>>j;break c}e=(c|0)/2|0;b=(e+i|0)/(c|0)|0;i=(e+m|0)/(c|0)|0;c=(d+e|0)/(c|0)|0}H[g+1|0]=i;H[g+2|0]=c;H[g|0]=b;g=g+3|0;if(r)continue;break}break b}if(c>>>0<31)break b;b=l>>j;while(1){H[g+1|0]=b;H[g+2|0]=b;H[g|0]=b;g=g+3|0;f=f+o|0;if((k|0)>(f|0))continue;break}}g= +J[a+88>>2]}fc=h+16|0;return g}function vj(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;k=fc-32|0;fc=k;if(!(!d|J[d>>2]>=J[a+8>>2])){n=a+24|0;j=a+36|0;o=a+40|0;p=a+28|0;q=a+16|0;h=-1;i=1;while(1){if(!J[d>>2]){f=J[a+8>>2];g=J[J[a+16>>2]>>2]?J[a+20>>2]:0;if((f|0)>=(g|0)){f=g+2E4|0;xe(q,f,1);xe(p,f,4);xe(o,f,4);f=J[a+8>>2]}J[a+8>>2]=f+1;J[d>>2]=f;H[J[a+12>>2]+f|0]=0;J[J[a+36>>2]+(J[d>>2]<<2)>>2]=0;J[J[a+24>>2]+(J[d>>2]<<2)>>2]=0}a:{b:{if(K[a+4|0]){if(!((c|0)<(e|0)|(b|0)>=(e|0))){g= +1;f=j;if(!(kc[J[J[a>>2]+8>>2]](a,(e|0)<=(l|0),J[a+12>>2]+J[d>>2]|0)|0))break b;break a}g=1;f=j;if((e|0)>(l|0))break b;break a}g=1;if((b|0)>=(e|0)){f=j;break a}if((c|0)<(e|0))break b;f=j;if(kc[J[J[a>>2]+8>>2]](a,0,J[a+12>>2]+J[d>>2]|0)|0)break a}g=0;f=n}r=J[d>>2];f=J[f>>2];c:{d:{e:{f:{g:switch(i-1|0){case 0:i=2;if(!g)break f;m=0;e=1;break d;case 1:if(!g){if(e-1>>>0<2){e=0;break c}d=e+1|0;h=(d|0)/2|0;e=((d|0)/-4|0)+e|0;i=3;break d}e=e<<1|1;i=2;break d;case 2:break g;default:break d}d=(h|0)/2|0;if((h& +-2)!=2){if(!g){e=((h|0)/-4|0)+e|0;break e}e=((h|0)/4|0)+e|0;break e}e=e-!g|0;break c}d=c^-1;c=b^-1;l=0-K[a+4|0]<<24>>24^l;e=1;m=1;b=d;break d}i=3;h=d}d=f+(r<<2)|0;if((h|0)!=1)continue}break}fc=k+32|0;return 0-m^e}a=Qc(k+8|0,2390166,2386144,478,2433448,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0);B()}B()}function o2a(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;h=J[a+4>>2];d=J[h+48>>2];c=J[a+8>>2];g=J[a+12>>2];a:{if(c>>>0>=g>>>0)break a;f=J[a+24>> +2];while(1){b:{if(J[b>>2]>0)break b;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:switch(d|0){case 1:case 2:case 3:case 5:case 6:case 7:if(K[c|0]==K[d+742704|0])break h;e=c;c=J[a+8>>2];e=e-c|0;j=d&3;if((e|0)!=(j|0)){k=K[a+2|0];H[a+2|0]=0;d=(d&4)+742704|0;J[a+8>>2]=d;J[a+12>>2]=d+(j-e|0);Bx(a,b);H[a+2|0]=k;J[a+12>>2]=g}d=8;if(c>>>0>=g>>>0)break b;if(J[b>>2]<=0)break k;break b;case 8:break k;case 0:break l;case 9:break e;default:break c}e=K[c|0];if(!e)break j;d=5;if((e|0)==255)break i}J[a+8>>2]=c;if(f)break g;Bx(a, +b);break f}d=1}c=c+1|0;break c}e=d-3|0;c=c+1|0;d=d+1|0;m:switch(e|0){case 0:i=c-J[a+8>>2]|0;d=8;break c;case 4:break m;default:break c}i=c-J[a+8>>2]|0;break d}a3(a,b)}c=J[a+8>>2];d=8;break c}J[a+8>>2]=c;n:{if(f){$2(a,b);break n}GL(a,b)}c=J[a+8>>2]}d=9}if(c>>>0>>0)continue}break}if(!f|!i)break a;e=J[a+24>>2];if(e>>>0<=f>>>0)break a;while(1){J[f>>2]=J[f>>2]+i;f=f+4|0;if(e>>>0>f>>>0)continue;break}}J[a+8>>2]=c;o:{if(!K[a+2|0]|(c|0)!=(g|0))break o;p:{q:switch(d|0){case 8:Bx(a,b);break p;case 9:GL(a, +b);J[h+48>>2]=9;return;case 0:break o;default:break q}c=(d&4)+742704|0;J[a+8>>2]=c;J[a+12>>2]=c+(d&3);Bx(a,b);J[a+12>>2]=g;J[a+8>>2]=g}d=8}J[h+48>>2]=d}function XQ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;a=fc-16|0;fc=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;c=J[a+12>>2];a:{b:{while(1){if(c>>>0>=d>>>0){f=0;break a}f=2;c:{b=L[c>>1];d:{if(b>>>0<=127){f=1;c=J[a+8>>2];if((g-c|0)<=0)break a;J[a+8>>2]=c+1;H[c|0]=b;break d}if(b>>>0<=2047){c=J[a+8>>2];if((g- +c|0)<2)break b;J[a+8>>2]=c+1;H[c|0]=b>>>6|192;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break d}if(b>>>0<=55295){c=J[a+8>>2];if((g-c|0)<3)break b;J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break d}if(b>>>0<=56319){f=1;if((d-c|0)<4)break a;i=L[c+2>>1];if((i&64512)!=56320)break c;if((g-J[a+8>>2]|0)<4)break a;f=b&960;if((i&1023|(b<<10&64512|f<<10))>>>0>1048575)break c;J[a+12>>2]=c+2;c=J[a+8>>2];J[a+8>>2]=c+1;j=c;c=(f>>>6|0)+ +1|0;H[j|0]=c>>>2|240;f=J[a+8>>2];J[a+8>>2]=f+1;H[f|0]=c<<4&48|b>>>2&15|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=i>>>6&15|b<<4&48|128;b=J[a+8>>2];J[a+8>>2]=b+1;H[b|0]=i&63|128;break d}if(b>>>0<57344)break a;c=J[a+8>>2];if((g-c|0)<3)break b;J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128}c=J[a+12>>2]+2|0;J[a+12>>2]=c;continue}break}f=2;break a}f=1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];fc=a+16|0;return f|0}function yt(a,b){var c=0,d= +0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(K[a|0]!=35)break a;b=0;f=a+1|0;i=Yc(f);e=i+a|0;g=e-1|0;d=(i|0)<2?f:g;if(d>>>0>>0){c=H[d|0];a=0;a=d>>>0>>0?K[d+1|0]:a;b:{if(!c)break b;b=c-97>>>0<26?c&95:c;c=b<<24>>24;b=c-65>>>0<6?b-55|0:c-48>>>0<10?b-48|0:0;if(!(a&255))break b;a=a<<24>>24;a=a-97>>>0<26?a&95:a;c=a<<24>>24;b=(b&255)<<4|(c-65>>>0<6?a+201|0:c-48>>>0<10?a+208|0:0)}b=b&255}j=e-3|0;h=(i|0)<4?f:j;if(h>>>0>>0){d=H[h|0];a=0;c=0;c=g>>>0>h+1>>>0?K[h+1|0]:c;c:{if(!d)break c;a=d-97>>>0<26?d&95:d;d=a<< +24>>24;a=d-65>>>0<6?a-55|0:d-48>>>0<10?a-48|0:0;if(!c)break c;c=c<<24>>24;c=c-97>>>0<26?c&95:c;d=c<<24>>24;a=(a&255)<<4|(d-65>>>0<6?c+201|0:d-48>>>0<10?c+208|0:0)}b=(a&255)<<8|b}h=e-5|0;g=(i|0)<6?f:h;if(g>>>0>>0){d=H[g|0];a=0;c=0;c=g+1>>>0>>0?K[g+1|0]:c;d:{if(!d)break d;a=d-97>>>0<26?d&95:d;d=a<<24>>24;a=d-65>>>0<6?a-55|0:d-48>>>0<10?a-48|0:0;if(!c)break d;c=c<<24>>24;c=c-97>>>0<26?c&95:c;d=c<<24>>24;a=(a&255)<<4|(d-65>>>0<6?c+201|0:d-48>>>0<10?c+208|0:0)}b=(a&255)<<16|b}e=(i|0)<8?f:e-7|0;if(e>>> +0>=h>>>0)break a;c=H[e|0];a=0;f=0;f=h>>>0>e+1>>>0?K[e+1|0]:f;e:{if(!c)break e;a=c-97>>>0<26?c&95:c;c=a<<24>>24;a=c-65>>>0<6?a-55|0:c-48>>>0<10?a-48|0:0;if(!f)break e;c=f<<24>>24;c=c-97>>>0<26?c&95:c;e=c<<24>>24;a=(a&255)<<4|(e-65>>>0<6?c+201|0:e-48>>>0<10?c+208|0:0)}b=a<<24|b}return b}function sRa(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,u=0,v=0;n=fc+-64|0;fc=n;d=Ac(a,0,256);while(1){a:{h=d;d=J[(i<<2)+b>>2]+c|0;e=K[d+3|0];f=K[d+1|0];g=e+f|0; +j=K[d+4|0];k=K[d|0];l=j+k|0;m=g+l|0;d=K[d+2|0];J[h>>2]=(m+d<<2)-2560;g=P(l-g|0,6476)+1024|0;d=P(m-(d<<2)|0,2896);J[h+16>>2]=g-d>>11;J[h+8>>2]=d+g>>11;e=f-e|0;f=k-j|0;d=P(e+f|0,6810)+1024|0;J[h+12>>2]=d+P(e,-17828)>>11;J[h+4>>2]=d+P(f,4209)>>11;e=i-7|0;i=i+1|0;d=n;b:switch(e|0){case 0:continue;case 2:break a;default:break b}d=h+32|0;continue}break}while(1){i=J[a+192>>2];e=J[a+96>>2];b=i+e|0;h=J[d>>2];f=J[a+32>>2];c=h+f|0;g=b+c|0;j=J[a+224>>2];k=J[a+64>>2];l=j+k|0;m=l<<1;o=J[a+160>>2];p=J[a+128>>2]; +q=o+p|0;r=J[d+32>>2];s=J[a>>2];t=r+s|0;u=q+t|0;J[a+128>>2]=(P(g-m|0,-4582)+P(u-m|0,11997)|0)+16384>>15;J[a>>2]=P((g+l|0)+u|0,10486)+16384>>15;g=t-q|0;c=c-b|0;b=P(g+c|0,8716)+16384|0;J[a+192>>2]=b+P(c,-22820)>>15;J[a+64>>2]=b+P(g,5387)>>15;b=p-o|0;c=s-r|0;g=b+c|0;h=f-h|0;i=e-i|0;e=h-i|0;f=k-j|0;J[a+160>>2]=P(g-(e+f|0)|0,10486)+16384>>15;j=(P(c-b|0,9973)+P(h+i|0,-6163)|0)+16384|0;f=P(f,10486);e=(P(e,5243)-f|0)+P(e+g|0,3240)|0;J[a+224>>2]=j-e>>15;J[a+96>>2]=e+j>>15;J[a+32>>2]=(((f+(P(c,14647)+P(h,13213)| +0)|0)+P(i,6732)|0)+P(b,2320)|0)+16384>>15;d=d+4|0;a=a+4|0;v=v+1|0;if((v|0)!=5)continue;break}fc=n- -64|0}function Lo(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(!J[a+12>>2]){k=1;if(J[a+4>>2]>0|J[a+8>>2]>1)break b;break a}e=1;if(J[a+8>>2]>0)break b;if(J[a+4>>2]<2)break a}b=J[a>>2];f=b+(e<<5)|0;g=J[a+16>>2];h=J[a+20>>2];if(g>>>0>>0){d=g;while(1){c=(d<<6)+f|0;N[c>>2]=N[c>>2]*Q(1.2301740646362305);N[c+4>>2]=N[c+4>>2]*Q(1.2301740646362305);N[c+8>>2]=N[c+8>>2]*Q(1.2301740646362305);N[c+ +12>>2]=N[c+12>>2]*Q(1.2301740646362305);N[c+16>>2]=N[c+16>>2]*Q(1.2301740646362305);N[c+20>>2]=N[c+20>>2]*Q(1.2301740646362305);N[c+24>>2]=N[c+24>>2]*Q(1.2301740646362305);N[c+28>>2]=N[c+28>>2]*Q(1.2301740646362305);d=d+1|0;if((h|0)!=(d|0))continue;break}}i=b+(k<<5)|0;j=J[a+28>>2];c=J[a+24>>2];if(j>>>0>c>>>0){d=c;while(1){b=(d<<6)+i|0;N[b>>2]=N[b>>2]*Q(1.625732421875);N[b+4>>2]=N[b+4>>2]*Q(1.625732421875);N[b+8>>2]=N[b+8>>2]*Q(1.625732421875);N[b+12>>2]=N[b+12>>2]*Q(1.625732421875);N[b+16>>2]=N[b+ +16>>2]*Q(1.625732421875);N[b+20>>2]=N[b+20>>2]*Q(1.625732421875);N[b+24>>2]=N[b+24>>2]*Q(1.625732421875);N[b+28>>2]=N[b+28>>2]*Q(1.625732421875);d=d+1|0;if((j|0)!=(d|0))continue;break}}b=f+32|0;d=J[a+8>>2];a=J[a+4>>2];e=a-e|0;e=(d|0)<(e|0)?d:e;iB(i,b,g,h,e,Q(-.4435068666934967));l=i+32|0;d=d-k|0;a=(a|0)<(d|0)?a:d;iB(f,l,c,j,a,Q(-.8829110860824585));iB(i,b,g,h,e,Q(.05298011749982834));iB(f,l,c,j,a,Q(1.5861343145370483))}}function Y6(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(d){g=(f|0)==2; +m=g?256:128;n=g?128:256;l=0-f|0;while(1){i=J[c+16>>2];a:{if(i&16)break a;k=J[c+28>>2];b:{g=H[c+20|0];c:{if((g|0)==(f|0)|(g|0)==(l|0))break c;g=H[c+21|0];if((g|0)==(f|0))break c;if((g|0)!=(l|0))break b}if(!g)break b;if((f|0)==(g|0)){g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-J[h>>2]|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break a}break}J[c+24>>2]=h;J[c+16>>2]=i|528;break a}if((g|0)!=(l|0))break a;g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-(J[h>>2]+J[h+4>>2]|0)| +0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break a}break}J[c+24>>2]=h;J[c+16>>2]=i|1040;break a}if(!(i&64))break a;d:{e:{if(i&n){g=0;if(!a)break a;while(1){h=J[(g<<2)+b>>2];j=k-J[h>>2]|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break d}break}g=528;break e}if(!(i&m))break d;g=0;if(!a)break d;while(1){h=J[(g<<2)+b>>2];j=k-(J[h>>2]+J[h+4>>2]|0)|0;if(!((j|0)<(e|0)&(0-j|0)<(e|0))){g=g+1|0;if((g|0)!=(a|0))continue;break d}break}g=1040}J[c+24>>2]=h;J[c+16>> +2]=g|i}if(J[c+24>>2])break a;g=0;if(!a)break a;while(1){i=J[(g<<2)+b>>2];h=J[i>>2];if(!((h|0)>(k|0)|(h+J[i+4>>2]|0)<(k|0))){J[c+24>>2]=i;break a}g=g+1|0;if((g|0)!=(a|0))continue;break}}c=c+40|0;d=d-1|0;if(d)continue;break}}}function Ofa(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;g=fc-16|0;fc=g;a:{b:{c:{e=J[a+584>>2];if(!K[e+401|0]){if((c>>>0)%M[e+1116>>2]|0){Uc(J[a+628>>2],97340,90339,0);break a}if((c|0)<=0)break c;o=e+536|0;a=J[e+1112>>2];while(1){d=K[e+ +209|0];if(!a){if(!zF(e,o,J[e+1104>>2],d<<3)){f=0;break a}d=K[e+209|0];a=J[e+1112>>2]}if(J[e+1108>>2]){f=P(J[e+1064>>2],a);i=f+J[e+1092>>2]|0;j=f+J[e+1096>>2]|0;k=J[e+1088>>2]+P(J[e+1056>>2],P(d&255,a))|0;l=0;d=b;while(1){h=K[e+208|0];m=K[e+209|0];d:{if(!m)break d;f=1;n=0;a=k;if(!h){h=0;break d}while(1){p=f&255;f=0;if(p){while(1){H[d|0]=K[a|0];d=d+1|0;a=a+1|0;h=K[e+208|0];f=f+1|0;if(h>>>0>(f&255)>>>0)continue;break}m=K[e+209|0];f=h}a=(J[e+1056>>2]-f|0)+a|0;n=n+1|0;if((n&255)>>>0>>0)continue;break}}H[d| +0]=K[i|0];H[d+1|0]=K[j|0];d=d+2|0;j=j+1|0;i=i+1|0;k=h+k|0;l=l+1|0;if(l>>>0>2])continue;break}a=J[e+1112>>2]}f=1;a=a+1|0;a=(a|0)!=J[e+1068>>2]?a:0;J[e+1112>>2]=a;d=J[e+1116>>2];b=d+b|0;c=c-d|0;if(c)continue;break}break a}if((c>>>0)%M[e+1116>>2]|0){Uc(J[a+628>>2],97360,90339,0);break a}if((c|0)<=0)break b;J[g+12>>2]=b;a=e+536|0;while(1){if(!aQ(e,a,g+12|0))break a;b=J[e+1116>>2];J[g+12>>2]=b+J[g+12>>2];c=c-b|0;if(c)continue;break}f=1;break a}fa(90385,70472,778,97340);B()}fa(90385,70472,826, +97360);B()}fc=g+16|0;return f|0}function xB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=J[b>>2];if((i|0)>2]){j=1;d=i+1|0;J[b>>2]=d;h=J[a+4>>2];e=h+i|0;f=H[e|0];g=f&255;a:{if((f|0)>=0)break a;if(f>>>0<=4294967263){if((d|0)>=J[a>>2])break a;a=K[d+h|0];if((a&192)!=128)break a;J[b>>2]=i+2;g=a&63|g<<6&1984;break a}if(f>>>0<=4294967279){if((d|0)>=(J[a>>2]-1|0))break a;a=K[d+h|0];if((a&192)!=128)break a;d=K[e+2|0];if((d&192)!=128)break a;J[b>>2]=i+3;g=d&63|(a<<6&4032|g<<12&61440);break a}if(f>>>0<=4294967287){if((d| +0)>=(J[a>>2]-2|0))break a;a=K[d+h|0];if((a&192)!=128)break a;d=K[e+2|0];if((d&192)!=128)break a;e=K[e+3|0];if((e&192)!=128)break a;J[b>>2]=i+4;g=e&63|(d<<6&4032|(a<<12&258048|g<<18&1835008));break a}if(f>>>0<=4294967291){if((d|0)>=(J[a>>2]-3|0))break a;a=K[d+h|0];if((a&192)!=128)break a;d=K[e+2|0];if((d&192)!=128)break a;f=K[e+3|0];if((f&192)!=128)break a;e=K[e+4|0];if((e&192)!=128)break a;J[b>>2]=i+5;g=e&63|(f<<6&4032|(d<<12&258048|(a<<18&16515072|g<<24&50331648)));break a}if(f>>>0>4294967293|(d| +0)>=(J[a>>2]-4|0))break a;a=K[d+h|0];if((a&192)!=128)break a;d=K[e+2|0];if((d&192)!=128)break a;f=K[e+3|0];if((f&192)!=128)break a;h=K[e+4|0];if((h&192)!=128)break a;e=K[e+5|0];if((e&192)!=128)break a;J[b>>2]=i+6;g=e&63|(h<<6&4032|(f<<12&258048|(d<<18&16515072|(a<<24&1056964608|g<<30&1073741824))))}J[c>>2]=g}return j}function vEa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;a:{b:{c:{b=J[a+16>>2];if(!b){J[f+12>>2]=0;break c}J[b+4>>2]=J[b+4>>2]+1;c=J[a+16>>2];J[f+12>>2]=c;if(!c)break c;d:{if(K[c+ +8|0])break d;d=J[c+84>>2];g=J[a+80>>2];b=J[a+84>>2];e=(b|0)<0?(d|0)>0?d-g|0:b:b;d=J[c+16>>2];e:{if(!d){b=c;break e}while(1){b=d;d=J[b+84>>2];g=J[c+80>>2]+g|0;e=(e|0)<0?(d|0)>0?d-g|0:e:e;c=b;d=J[b+16>>2];if(d)continue;break}}J[699344]=0;c=_(5244,b+20|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c){if(J[b+84>>2]>=(J[b+80>>2]+(e+g|0)|0))break d;break b}if((e|0)<0){if(K[b+8|0])break d;break b}b=J[b+72>>2];J[699344]=0;b=ga(5262,b|0,g|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if((b|0)!= +(e|0))break b}H[a+8|0]=1;break b}J[699344]=0;b=_(5244,a+20|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(J[a+84>>2]>=0|b)break b;J[699344]=0;$(5264,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(!K[a+8|0]|J[a+84>>2]>=0)break b;b=J[a+64>>2];c=J[J[b>>2]+28>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+84>>2]=b}f:{a=J[f+12>>2];g:{if(!a)break g;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break f;if(b)break g;J[699344]=0;$(5147, +a|0);a=J[699344];J[699344]=0;if((a|0)==1)break f}fc=f+16|0;return}ea(0)|0;Bc();B()}a=Z()|0;zc(f+12|0);ba(a|0);B()}function $2(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;c=J[a+4>>2];l=c+37|0;k=J[a+12>>2];j=J[a+24>>2];e=J[a+8>>2];a:{b:{d=J[c+44>>2];h=J[a+16>>2];m=J[a+20>>2];if(!(!d|h>>>0>=m>>>0)){J[c+44>>2]=0;f=H[c+36|0];H[c+36|0]=0;g=d-1|0;break b}c=0;break a}c=1}while(1){c:{if(!c){if(e>>>0>=k>>>0)break c;g=0;f=0;if(h>>>0>=m>>>0)break c;c=1;continue}d:{if(f>>>0>3){c= +f;break d}e:{f:{if(e>>>0>=k>>>0)break f;c=K[e|0];H[f+l|0]=c;d=e+1|0;g=c<<(f<<3)|g;c=4;i=f+1|0;if((i|0)==4){e=d;break d}if(d>>>0>=k>>>0){f=i;e=d;break f}c=K[e+1|0];H[i+l|0]=c;d=e+2|0;g=c<<(i<<3)|g;c=4;i=f+2|0;if((i|0)==4){e=d;break d}if(d>>>0>=k>>>0){f=i;e=d;break f}c=K[e+2|0];H[i+l|0]=c;d=e+3|0;g=c<<(i<<3)|g;c=4;f=f+3|0;if((f|0)==4){e=d;break d}if(d>>>0>>0)break e;e=d}c=J[a+4>>2];H[c+36|0]=f;J[c+44>>2]=g+1;break c}d=K[e+3|0];H[f+l|0]=d;e=e+4|0;g=d<<(f<<3)|g}g:{if(!((g&-2048)==55296|g>>>0>1114111)){h:{i:{if(g>>> +0<=65535){I[h>>1]=g;o=1;d=j;h=h+2|0;break i}I[h>>1]=(g>>>10|0)-10304;J[j>>2]=n;d=j+4|0;p=g&1023|-9216;o=2;i=h+2|0;if(i>>>0>=m>>>0)break h;I[h+2>>1]=p;h=h+4|0}J[d>>2]=n;n=c+n|0;j=(o<<2)+j|0;break g}f=J[a+4>>2];H[f+65|0]=1;I[f+116>>1]=p;J[b>>2]=15;j=d;h=i;break c}H[J[a+4>>2]+36|0]=c;J[b>>2]=12;break c}c=0;continue}break}if(!(h>>>0>>0|e>>>0>=k>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=j;J[a+8>>2]=e;J[a+16>>2]=h}function EK(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=fc-144|0;fc=c;f=J[b>>2];e=Wm(a,f,c+28|0); +a:{if(!t1(J[a+360>>2],e))break a;g=1;b:{if(J[c+28>>2]==1){H[c+32|0]=e;d=1;break b}d=ej(c+32|0,e);g=J[c+28>>2]}g=f+g|0;f=Wm(a,g,c+28|0);c:{while(1){if(!Kr(J[a+360>>2],f))break c;d:{if(J[c+28>>2]==1){H[(c+32|0)+d|0]=f;d=d+1|0;e=1;break d}d=ej((c+32|0)+d|0,f)+d|0;e=J[c+28>>2]}g=e+g|0;f=Wm(a,g,c+28|0);if((d|0)<100)continue;break}i=d<<1;e=kc[J[663198]](i)|0;if(!e){se(a,0);break a}h=xc(e,c+32|0,d);if(Kr(J[a+360>>2],f))while(1){e:{if((d+10|0)<=(i|0)){h=e;break e}if(!(K[a+362|0]&8|(d|0)<50001)){f:{if(J[a+ +172>>2]==-1?J[a+212>>2]:0)break f;J[a+84>>2]=110;J[c+20>>2]=14131;J[c+16>>2]=6556;Hc(0,0,0,a,0,1,110,3,14131,0,0,0,32777,c+16|0);J[a+12>>2]=0;if(J[a+288>>2])break f;J[a+212>>2]=1}h=0;kc[J[663199]](e);break a}i=i<<1;h=kc[J[663200]](e,i)|0;if(h)break e;h=0;se(a,0);kc[J[663199]](e);break a}g:{if(J[c+28>>2]==1){H[d+h|0]=f;d=d+1|0;break g}d=ej(d+h|0,f)+d|0}g=J[c+28>>2]+g|0;f=Wm(a,g,c+28|0);e=h;if(Kr(J[a+360>>2],f))continue;break}H[d+h|0]=0;J[b>>2]=g;break a}if(!(K[a+362|0]&8|(d|0)<50001)){if(J[a+172>> +2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=110;J[c+4>>2]=14131;J[c>>2]=6556;Hc(0,0,0,a,0,1,110,3,14131,0,0,0,32777,c);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[b>>2]=g;h=Hl(c+32|0,d)}fc=c+144|0;return h}function i$a(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;l=fc-32|0;fc=l;f=-1;if(!(!d|(!a|!b))){a:{b:{c:{if(!c){J[b>>2]=0;g=0;break c}g=c;k=a;i=J[d>>2];d:{if((i|0)<=0)break d;n=J[b>>2]+k|0;m=g+i|0;i=g;while(1){g=H[i|0];f=g&255;j=(g|0)>=0;h=0;e:{if(j)break e; +if(g>>>0<=4294967231)break b;if(g>>>0<=4294967263){f=f&31;h=1;break e}if(g>>>0<=4294967279){f=f&15;h=2;break e}if(g>>>0>4294967287)break b;f=f&7;h=3}e=i+1|0;if((h|0)>(m-e|0)){g=i;break d}f:{if(j){g=e;break f}g=e;if(e>>>0>=m>>>0)break f;while(1){g=e+1|0;e=K[e|0];if((e&192)!=128)break f;f=e&63|f<<6;h=h-1|0;if(!h)break f;e=g;if(m>>>0>e>>>0)continue;break}}g:{h:{if(f>>>0<=127){e=k+1|0;if(e>>>0>>0)break h;g=i;break d}e=0;i:{j:{k:{l:{while(1){h=J[P(e,12)+771712>>2];if(h>>>0>>0){j=e|1;if((j|0)==253)break k; +h=J[P(j,12)+771712>>2];if(h>>>0>=f>>>0)break l;j=e|2;h=J[P(j,12)+771712>>2];if(h>>>0>=f>>>0)break l;j=e|3;h=J[P(j,12)+771712>>2];if(h>>>0>=f>>>0)break l;e=e+4|0;continue}break}j=e}if(f>>>0>=h>>>0)break j}J[l>>2]=f;e=l+16|0;Wi(e,16,1814,l);break i}e=J[P(j,12)+771716>>2]}f=Yc(e);if((f+k|0)+2>>>0>>0){H[k|0]=38;i=xc(k+1|0,e,f)+f|0;H[i|0]=59;e=i+1|0;break g}g=i;break d}H[k|0]=f}k=e;i=g;if(g>>>0>>0)continue;break}}J[b>>2]=k-a;g=g-c|0}f=0;break a}J[b>>2]=k-a;g=i-c|0;f=-2}J[d>>2]=g}fc=l+32|0;return f| +0}function bx(a){var b=0,c=0,d=0,e=0;e=fc-16|0;fc=e;a:{b:{c:{d:{c=J[a+36>>2];b=J[c+16>>2];if(K[b|0]!=60|K[b+1|0]!=63|(K[b+2|0]!=120|K[b+3|0]!=109))break d;if(K[b+4|0]!=108)break d;d=K[b+5|0]-9|0;if(d>>>0>23|!(1<>2]=J[a+200>>2]+5;J[c+16>>2]=b+5;J[c+32>>2]=J[c+32>>2]+5;b=K[b+5|0];if((b|0)==37){Yd(a);c=J[a+36>>2];b=K[J[c+16>>2]]}e:{if(b&255)break e;if((Nd(c)|0)>0)break e;He(a)}b=K[J[J[a+36>>2]+16>>2]]-9|0;if(!(1<>>0<=23:0))oe(a,65,37740);be(a);b=x1(a);if(b)break c; +b=GK();break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=56;J[e>>2]=16766;Hc(0,0,0,a,0,1,56,3,0,0,0,0,32906,e);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}c=K[J[J[a+36>>2]+16>>2]]-9|0;if(1<>>0<=23:0)break b;oe(a,65,34193)}J[J[a+36>>2]+48>>2]=b;b=w1(a);c=J[a+84>>2];if((c|0)==32)break a;if(!(b|c))oe(a,101,33374);be(a);f:{g:{h:{i:{c=J[a+36>>2];b=J[c+16>>2];switch(K[b|0]-62|0){case 0:break g;case 1:break i;default:break h}}if(K[b+1|0]!=62)break h;J[a+200>>2]=J[a+200>> +2]+2;J[c+16>>2]=b+2;J[c+32>>2]=J[c+32>>2]+2;b=K[b+2|0];if((b|0)==37){Yd(a);c=J[a+36>>2];b=K[J[c+16>>2]]}if(b&255)break a;if((Nd(c)|0)>0)break a;He(a);break a}Xe(a,57,0);c=J[a+36>>2];b=J[c+16>>2];while(1){d=K[b|0];if(!d|(d|0)==62)break f;b=b+1|0;J[c+16>>2]=b;continue}}Xe(a,57,0)}Zd(a)}fc=e+16|0}function ata(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;j=fc-32|0;fc=j;a:{b:{c:{d:{if(!(J[b+76>>2]?J[b+72>>2]:0)){a=Qc(j+8|0,2389797,2386144,316,2433240,0);J[699344]=0;$(5179, +a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=Z()|0;Kc(a);ba(b|0);B()}h=J[c+12>>2];i=J[c+4>>2];k=J[c+8>>2];c=J[c>>2];g=vc(72);J[699344]=0;l=h-i|0;h=k-c|0;e=ha(5551,g|0,l|0,h|0,((e+h|0)-1&0-e)-h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;J[a>>2]=0;vd(a,e);e=J[a>>2];J[699344]=0;da(5542,e|0,P(d,d)+1|0);e=J[699344];J[699344]=0;if((e|0)!=1){e=J[b+100>>2];g=J[b+96>>2];if(((e-g|0)+1|0)>0){h=P(c,d);f=f-P(d,i)|0;c=0;while(1){if(!((c|0)<=(e|0)&(c|0)>=(g|0))){J[699344]=0;c=ja(5178,j+8|0,2393794,2394220, +632,2434440,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=Z()|0;Kc(c);break b}e=J[b+84>>2]+(c-J[b+88>>2]<<3)|0;i=J[e+4>>2];J[699344]=0;i=aa(5683,b|0,i|0)|0;g=J[699344];J[699344]=0;e:{if((g|0)!=1){i=J[i+4>>2];if(!i)break e;g=L[e+2>>1];k=J[a>>2];e=L[e>>1];J[699344]=0;ma(5545,k|0,i|0,e-h|0,f+g|0,d|0);e=J[699344];J[699344]=0;if((e|0)!=1)break e}b=Z()|0;break b}c=c+1|0;e=J[b+100>>2];g=J[b+96>>2];if((c|0)<((e-g|0)+1|0))continue;break}}fc= +j+32|0;return}b=Z()|0;break b}B()}b=Z()|0}zc(a);ba(b|0);B()}a=Z()|0;uc(g);ba(a|0);B()}function Xo(a,b){var c=0,d=0,e=0,f=0,g=0;if(a){if(J[a>>2]){e=J[a+4>>2];a:{if((e|0)<=0)break a;f=J[a+8>>2];if((f|0)<=0)break a;if(!b)while(1){c=J[a>>2];b=c+P(g,24)|0;if(!(!J[b+20>>2]|!c)){e=J[b>>2];b:{if(J[a+12>>2])break b;c=J[b+4>>2];if(c)kc[J[663199]](c);c=J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+12>>2];if(!c)break b;kc[J[663199]](c)}J[b+16>>2]=0;while(1){f=f-1|0;if(e){b=e;e=J[b>>2];c:{if(J[a+12>>2])break c;c=J[b+ +4>>2];if(c)kc[J[663199]](c);c=J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+12>>2];if(!c)break c;kc[J[663199]](c)}J[b+16>>2]=0;kc[J[663199]](b);continue}else e=J[a+4>>2];break}}g=g+1|0;if((g|0)>=(e|0))break a;if((f|0)>0)continue;break a}while(1){d=J[a>>2];c=d+P(g,24)|0;if(!(!J[c+20>>2]|!d)){e=J[c>>2];d=J[c+16>>2];if(d)kc[b|0](d,J[c+4>>2]);d:{if(J[a+12>>2])break d;d=J[c+4>>2];if(d)kc[J[663199]](d);d=J[c+8>>2];if(d)kc[J[663199]](d);d=J[c+12>>2];if(!d)break d;kc[J[663199]](d)}J[c+16>>2]=0;while(1){f=f-1|0;if(e){c= +e;e=J[c>>2];d=J[c+16>>2];if(d)kc[b|0](d,J[c+4>>2]);e:{if(J[a+12>>2])break e;d=J[c+4>>2];if(d)kc[J[663199]](d);d=J[c+8>>2];if(d)kc[J[663199]](d);d=J[c+12>>2];if(!d)break e;kc[J[663199]](d)}J[c+16>>2]=0;kc[J[663199]](c);continue}break}e=J[a+4>>2]}g=g+1|0;if((g|0)>=(e|0))break a;if((f|0)>0)continue;break}}kc[J[663199]](J[a>>2])}b=J[a+12>>2];if(b)Wn(b);kc[J[663199]](a)}}function Mjb(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=J[a+804>>2];a:{b:{if(e){d=6;if(M[a+28>>2]<=b>>>0)break a; +b=J[e+(b<<2)>>2];break b}d=6;if(M[a+800>>2]<=b>>>0)break a}d=2;c:{d:switch(J[a+796>>2]-1|0){case 0:case 1:b=J[a+788>>2]+P(b,48)|0;f=K[b+52|0];I[c>>1]=f;g=K[b+53|0];I[c+2>>1]=g;j=H[b+24|0];e=j<<6;J[c+12>>2]=e;h=H[b+25|0];d=h<<6;J[c+16>>2]=d;i=H[b+33|0];e:{f:{if((h|0)>0){if((i|0)>=0)break e;d=0-d|0;break f}if(h|j)break e;d=H[b+32|0];if(d|i){e=d<<6;J[c+12>>2]=e;d=i<<6;break f}e=g<<6;J[c+12>>2]=e;d=0}J[c+16>>2]=d}J[c+20>>2]=e-d;if((d|0)==(e|0)){e=g<<6;J[c+20>>2]=e;J[c+16>>2]=d-e}J[c+24>>2]=H[b+31|0]+ +(K[b+26|0]+H[b+30|0]|0)<<6;b=a+178|0;break c;case 2:break d;default:break a}d=3;b=J[a+788>>2]+(b<<2)|0;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(M[a+864>>2]>>0)break a;b=J[a+104>>2];d=yd(b,e+J[a+860>>2]|0);if(d)break a;d=af(b,4);if(d)break a;e=tf(b);tf(b);ve(b);b=a+178|0;d=L[b>>1];I[c+2>>1]=e;I[c>>1]=e;e=e<<6;k=c,l=Od(I[a+220>>1],e,d),J[k+12>>2]=l;k=c,l=Od(I[a+222>>1],e,d),J[k+16>>2]=l;k=c,l=Od(I[a+224>>1]+(I[a+220>>1]-I[a+222>>1]|0)|0, +e,d),J[k+20>>2]=l;k=c,l=Od(L[a+226>>1],e,d),J[k+24>>2]=l;f=L[c>>1]}k=c,l=Od(f,4194304,L[b>>1]),J[k+4>>2]=l;k=c,l=Od(L[c+2>>1],4194304,L[b>>1]),J[k+8>>2]=l;d=0}return d|0}function $e(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{d=J[b>>2];b:{if((d|0)>=J[c>>2])break b;while(1){h=J[(d<<2)+a>>2];g=h-32|0;if(!((g|0)!=12?g:0)){d=d+1|0;J[b>>2]=d;if(J[c>>2]>(d|0))continue;break b}break}g=1;d=d+1|0;J[b>>2]=d;c:{d:{e:{f:{e=h-48|0;g:{h:{i:{if(e>>>0<10)break i;c=0;j:switch(h-45|0){case 1:break g;case 0:break h;case 24:break i; +case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:break b;default:break j}if((h|0)!=101)break b}g=0;c=e}h=J[(d<<2)+a>>2];e=h-48|0;if(e>>>0<=9){while(1){c=P(c,10)+e|0;d=d+1|0;h=J[(d<<2)+a>>2];e=h-48|0;if(e>>>0<10)continue;break}J[b>>2]=d}if((h|0)!=46)break f;d=d+1|0;J[b>>2]=d;f=+(c|0);c=g}e=J[(d<<2)+a>>2];if((e&-33)!=69){i=.1;while(1){g=e-48|0;if(g>>>0>9)break a;d=d+1|0;J[b>>2]=d;f= +i*+(g|0)+f;i=i*.1;e=J[(d<<2)+a>>2];if((e&-33)!=69)continue;break}}g=c;break e}if((h&-33)!=69)break d;f=+(c|0)}c=d+2|0;J[b>>2]=c;e=J[((d<<2)+a|0)+4>>2];if(J[(c<<2)+a>>2]-48>>>0<=9){while(1){c=c+1|0;if(J[(c<<2)+a>>2]-48>>>0<10)continue;break}J[b>>2]=c}f=g?-f:f;if((e|0)==45)break c;return f*10*10*10*10*10*10*10*10*10*10*10*10*10*10*10*10*10*10*10*10}return+((g?0-c|0:c)|0)}f=f/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10/10}return f}return c?-f:f}function _l(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;i=J[a+20>>2];m=J[a+28>>2]-i>>3;h=J[a+8>>2];while(1){a=I[i+8>>1];e=I[i+10>>1];a:{if((e|0)>0){f=J[i+12>>2];b:{if(J[b+16>>2]<(h|0)|J[b+8>>2]>(h|0))break b;d=J[b+4>>2];c:{if((a|0)>=(d|0)){d=a;break c}e=(a-d|0)+e|0;if((e|0)<=0)break b;f=(d-a|0)+f|0}a=J[b+12>>2];if((a|0)<(d+e|0)){a=a-d|0;if((a|0)<0)break b;e=a+1|0}a=0;l=J[b>>2];g=J[l>>2];k=J[g+4>>2];j=J[g+16>>2];d:{e:{if((j|0)>=0){g=P(h,j);break e}n=k-J[g>>2]|0;g=P(h,j);if((n|0)<(0-g|0))break d}a=g+k|0}a=(d<<2)+a|0;while(1){d=K[c+ +3|0];kc[J[(J[l+4>>2]<<2)+2652640>>2]](a,P(d,K[c|0])+255>>>8|0,P(d,K[c+1|0])+255>>>8|0,P(d,K[c+2|0])+255>>>8|0,d,K[f|0]);a=a+4|0;f=f+1|0;e=e-1|0;if(e)continue;break}}break a}if(J[b+16>>2]<(h|0)|J[b+8>>2]>(h|0))break a;d=a+(e^-1)|0;e=(a|0)<(d|0)?a:d;f=J[b+12>>2];if((e|0)>(f|0))break a;a=(a|0)>(d|0)?a:d;d=J[b+4>>2];if((a|0)<(d|0))break a;j=J[b>>2];g=J[j>>2];k=J[g+4>>2];l=K[J[i+12>>2]];f=(a|0)<(f|0)?a:f;a=(d|0)<(e|0)?e:d;d=(f-a|0)+1|0;f=a<<2;a=J[g+16>>2];f:{g:{if((a|0)>=0){a=P(a,h);break g}a=P(a,h);e= +0;if((k-J[g>>2]|0)<(0-a|0))break f}e=a+k|0}a=f+e|0;while(1){e=K[c+3|0];kc[J[(J[j+4>>2]<<2)+2652640>>2]](a,P(e,K[c|0])+255>>>8|0,P(e,K[c+1|0])+255>>>8|0,P(e,K[c+2|0])+255>>>8|0,e,l);a=a+4|0;d=d-1|0;if(d)continue;break}}i=i+8|0;m=m-1|0;if(m)continue;break}}function nYa(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;f=J[a+420>>2];if(J[a+236>>2]){d=J[f+68>>2];if(!d){Vw(a,J[f+72>>2]);d=J[a+236>>2];J[f+72>>2]=J[f+72>>2]+1&7}J[f+68>>2]=d-1}j=J[b>>2];k=J[a+380>>2];e=J[a+292>> +2];b=J[a+364>>2];g=b;a:{if((b|0)<=0)break a;while(1){c=I[(J[(g<<2)+k>>2]<<1)+j>>1];b:{if((c|0)>=0){if(!(c>>>J[a+372>>2]|0))break b;break a}if(0-c>>>J[a+372>>2]|0)break a}c=(g|0)>1;g=g-1|0;if(c)continue;break}g=0}i=J[e+24>>2];c=J[a+360>>2];if((g|0)>=(c|0)){m=f+204|0;n=a+i|0;l=(i<<2)+f|0;while(1){d=(J[l+140>>2]+P(c,3)|0)-3|0;We(a,d,0);b=c;c:{d:{e:{while(1){f:{g:{c=I[(J[(b<<2)+k>>2]<<1)+j>>1];h:{if((c|0)>=0){c=c>>>J[a+372>>2]|0;if(!c)break g;e=0;break h}c=0-c>>>J[a+372>>2]|0;if(!c)break g;e=1}We(a,d+ +1|0,1);We(a,m,e);e=d+2|0;h=c-1|0;if(!h)break e;We(a,e,1);if((h|0)==1)break e;We(a,e,1);e=J[l+140>>2]+(K[n+184|0]<(b|0)?217:189)|0;d=2;if(c>>>0<=4)break f;c=h;while(1){o=e;We(a,e,1);e=e+1|0;d=d<<1;p=c>>>0<8;c=c>>>1|0;if(!p)continue;break}We(a,e,0);if(!d)break c;c=o+15|0;break d}We(a,d+1|0,0);b=b+1|0;d=d+3|0;continue}break}We(a,e,0);c=e+14|0;break d}We(a,e,0);break c}while(1){d=d>>1;We(a,c,(h&d)!=0);if(d>>>0>1)continue;break}}c=b+1|0;if((b|0)<(g|0))continue;break}b=J[a+364>>2]}if((b|0)>=(c|0))We(a, +(J[((i<<2)+f|0)+140>>2]+P(c,3)|0)-3|0,1);return 1}function J_a(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;a:{if(!a)break a;f=J[a+52>>2];i=J[a+8>>2];g=c;c=0;h=fc-16|0;fc=h;b:{if(!b)break b;d=kc[J[663195]](60)|0;if(!d){J[h>>2]=21277;Hc(0,0,0,0,0,2,2,3,21277,0,0,0,32879,h);break b}J[d>>2]=0;J[d+4>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=7;c=b;c:{d:{if(!i)break d; +e=J[i+80>>2];if(!e)break d;c=te(e,b,-1);break c}while(1){e=c;c=c+1|0;if(K[e|0])continue;break}c=0;e=e-b|0;if((e|0)<0)break c;j=kc[J[663198]](e+1|0)|0;if(!j){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break c}c=xc(j,b,e);H[e+c|0]=0}J[d+8>>2]=c;if(g){c=g;while(1){b=c;c=b+1|0;if(K[b|0])continue;break}c=0;b=b-g|0;e:{if((b|0)<0)break e;e=kc[J[663198]](b+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break e}c=xc(e,g,b);H[b+c|0]=0}J[d+40>>2]=c}J[d+32>>2]=i;f:{if(!J[693393])break f;b=J[693390];if(!b)break f; +kc[b|0](d)}c=d}fc=h+16|0;if(!c)break a;g:{if(!J[a+280>>2])break g;b=J[a+36>>2];if(!b)break g;b=J[b+28>>2];I[c+56>>1]=(b|0)>=65535?65535:b}h:switch(J[a+216>>2]-1|0){case 0:dh(J[J[a+8>>2]+44>>2],c);return;case 1:dh(J[J[a+8>>2]+48>>2],c);return;default:break h}if(!f){dh(J[a+8>>2],c);return}if(J[f+4>>2]==1){dh(f,c);return}IC(f,c)}}function z2a(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;e=J[a+4>>2];p=e+37|0;q=J[e+24>>2];o=J[a+12>>2];f=J[a+24>>2];j=J[a+8>>2];l=J[e+ +44>>2];d=J[a+16>>2];n=J[a+20>>2];a:{if(!(!l|d>>>0>=n>>>0)){J[e+44>>2]=0;h=H[e+36|0];H[e+36|0]=0;k=J[e+48>>2];c=0;break a}g=j;c=1}b:{c:{while(1){d:{if(!c){e:{if((h|0)>=(k|0))break e;while(1){if(j>>>0>=o>>>0)break d;g=K[j|0];H[h+p|0]=g;if((g&192)!=128)break e;j=j+1|0;l=g+(l<<6)|0;h=h+1|0;if((h|0)!=(k|0))continue;break}h=k}g=j;if((h|0)!=(k|0))break c;c=k<<2;i=l-J[c+741344>>2]|0;if(i>>>0>1114111|i>>>0>2])break c;f:{if((q|0)==740848){if((k|0)<4)break f;break c}if((i&-2048)==55296)break c}g:{if(i>>> +0<=65535){I[d>>1]=i;J[f>>2]=m;f=f+4|0;c=d+2|0;break g}I[d>>1]=(i+67043328>>>10|0)-10240;J[f>>2]=m;i=i&1023|-9216;c=d+2|0;if(c>>>0>>0){I[d+2>>1]=i;J[f+4>>2]=m;f=f+8|0;c=d+4|0;break g}f=f+4|0;H[e+65|0]=1;I[e+116>>1]=i;J[b>>2]=15}d=c;m=k+m|0;c=1;continue}while(1){if(g>>>0>=o>>>0|d>>>0>=n>>>0)break b;j=g+1|0;l=K[g|0];c=l<<24>>24;if((c|0)>=0){I[d>>1]=c&255;J[f>>2]=m;f=f+4|0;m=m+1|0;d=d+2|0;g=j;continue}break}H[p|0]=c;k=H[l+741088|0];h=1;c=0;continue}break}J[e+48>>2]=k;J[e+44>>2]=l;H[e+36|0]=h;g=j;break b}H[e+ +36|0]=h;J[b>>2]=12}if(!(d>>>0>>0|g>>>0>=o>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=f;J[a+8>>2]=g;J[a+16>>2]=d}function a3(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;c=J[a+4>>2];k=c+37|0;j=J[a+12>>2];i=J[a+24>>2];f=J[a+8>>2];a:{b:{d=J[c+44>>2];h=J[a+16>>2];l=J[a+20>>2];if(!(!d|h>>>0>=l>>>0)){J[c+44>>2]=0;e=H[c+36|0];H[c+36|0]=0;g=d-1|0;break b}c=0;break a}c=1}while(1){c:{if(!c){if(f>>>0>=j>>>0)break c;g=0;e=0;if(h>>>0>=l>>>0)break c;c=1;continue}d:{if(e>>>0>3)break d;e:{f:{if(f>>> +0>=j>>>0)break f;d=K[f|0];H[e+k|0]=d;c=f+1|0;g=d|g<<8;d=e+1|0;if((d|0)==4){f=c;e=4;break d}if(c>>>0>=j>>>0){e=d;f=c;break f}c=d+k|0;d=K[f+1|0];H[c|0]=d;c=f+2|0;g=d|g<<8;d=e+2|0;if((d|0)==4){f=c;e=4;break d}if(c>>>0>=j>>>0){e=d;f=c;break f}c=d+k|0;d=K[f+2|0];H[c|0]=d;c=f+3|0;g=d|g<<8;e=e+3|0;if((e|0)==4){f=c;e=4;break d}if(c>>>0>>0)break e;f=c}c=J[a+4>>2];H[c+36|0]=e;J[c+44>>2]=g+1;break c}c=K[f+3|0];H[e+k|0]=c;e=4;f=f+4|0;g=c|g<<8}g:{if(!((g&-2048)==55296|g>>>0>1114111)){h:{i:{if(g>>>0<=65535){I[h>> +1]=g;n=1;c=i;h=h+2|0;break i}I[h>>1]=(g>>>10|0)-10304;J[i>>2]=m;c=i+4|0;o=g&1023|-9216;n=2;d=h+2|0;if(d>>>0>=l>>>0)break h;I[h+2>>1]=o;h=h+4|0}J[c>>2]=m;m=e+m|0;i=(n<<2)+i|0;break g}e=J[a+4>>2];H[e+65|0]=1;I[e+116>>1]=o;J[b>>2]=15;i=c;h=d;break c}H[J[a+4>>2]+36|0]=e;J[b>>2]=12;break c}c=0;continue}break}if(!(h>>>0>>0|f>>>0>=j>>>0|J[b>>2]>0))J[b>>2]=15;J[a+24>>2]=i;J[a+8>>2]=f;J[a+16>>2]=h}function fN(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;J[c+12>>2]=J[a>>2];d=J[a+8>>2];vh(c+12|0,d);b= +J[c+12>>2];a:{if(d>>>0<=b>>>0)break a;b:{c:{d:{e:{f:{g:{h:{i:{e=K[b|0];switch(e-40|0){case 1:case 2:case 3:case 4:case 5:case 6: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 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 52:break c;case 7:break d;case 22:break e; +case 20:break f;case 0:break g;case 51:case 53:break i;default:break h}}J[c+12>>2]=b+1;break b}if((e|0)!=123)break c;e=q7(c+12|0,d);break a}e=eN(c+12|0,d);break a}if(!(K[b+1|0]!=60|b+1>>>0>=d>>>0)){J[c+12>>2]=b+2;break b}e=o7(c+12|0,d);break a}f=b+1|0;J[c+12>>2]=f;e=3;if(K[f|0]!=62|d>>>0<=f>>>0)break a;J[c+12>>2]=b+2;break b}b=b+1|0}j:{if(b>>>0>=d>>>0)break j;while(1){k:switch(K[b|0]){case 0:case 9:case 10:case 12:case 13:case 32:case 37:case 40:case 41:case 47:case 60:case 62:case 91:case 93:case 123:case 125:break j; +default:break k}b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}J[c+12>>2]=b}e=0}b=J[c+12>>2];if(b>>>0>>0)e=(b|0)==J[a>>2]?3:e;J[a+12>>2]=e;J[a>>2]=b>>>0>d>>>0?d:b;fc=c+16|0}function YW(a,b){var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;J[a+16>>2]=0;J[a+20>>2]=J[685894];f=a+16|0;a:{b:{c=J[b+16>>2];c:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+8|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break c;a=Z()|0;break b}J[d+8>> +2]=0}J[699344]=0;aa(5153,f|0,d+8|0)|0;c=J[699344];J[699344]=0;d:{if((c|0)!=1){c=J[d+8>>2];J[d+8>>2]=0;if(!c)break d;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break d;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break d}break a}a=Z()|0;zc(d+8|0);break b}c=J[a+16>>2];c=J[(c?c+12|0:2743576)>>2];J[a+24>>2]=0;J[a+20>>2]=c;J[a+28>>2]=J[685894];c=a+24|0;e:{b=J[b+24>>2];f:{g:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d+12|0,b|0,1);b=J[699344];J[699344]= +0;if((b|0)!=1)break g;a=Z()|0;break f}J[d+12>>2]=0}J[699344]=0;aa(5153,c|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}a=Z()|0;zc(d+12|0)}wc(c);break b}b=J[a+24>>2];J[a+28>>2]=J[(b?b+12|0:2743576)>>2];fc=d+16|0;return a}wc(f);ba(a|0);B()}ea(0)|0;Bc();B()}function NA(a,b,c,d,e){var f=0,g=0;g= +fc-256|0;fc=g;J[e+16>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=c;J[e>>2]=0;a:{if((d|0)==-1){J[e>>2]=b;break a}if((d|0)>=3){Mk(g,1,1,d);zr(a,g,63712)}ZW(a,2);J[a+212>>2]=b;J[a+216>>2]=c;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;c=a+212|0;b:{c:{while(1){if(Wk(c,0)){b=J[a+236>>2];if(b)break c;Ld(a,63410);B()}if(!J[a+228>>2]){b=J[e+8>>2];d=J[e+12>>2];d:{if((b|0)<(d|0))break d;f=b+4|0;J[e+12>>2]=f;b=J[e+16>>2];f=lh(a,f<<2);J[e+16>>2]=f;if(!b)break d;xc(f,b,d<<2);Bd(a,b)}b=lh(a,J[a+272>>2]);d= +J[e+8>>2]<<2;J[d+J[e+16>>2]>>2]=b;xc(J[d+J[e+16>>2]>>2],J[a+268>>2],J[a+272>>2]);J[e+8>>2]=J[e+8>>2]+1;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b}if(J[a+216>>2])continue;break}while(1){e:{b=Wk(c,4);if(b){if((b|0)!=1)break e;b=J[a+272>>2];a=b-J[a+228>>2]|0;c=(a>>>0<=b>>>0?a:0)+P(b,J[e+8>>2])|0;break a}if(J[a+228>>2])continue;b=J[e+8>>2];d=J[e+12>>2];f:{if((b|0)<(d|0))break f;f=b+4|0;J[e+12>>2]=f;b=J[e+16>>2];f=lh(a,f<<2);J[e+16>>2]=f;if(!b)break f;xc(f,b,d<<2);Bd(a,b)}b=lh(a,J[a+272>>2]); +d=J[e+8>>2]<<2;J[d+J[e+16>>2]>>2]=b;xc(J[d+J[e+16>>2]>>2],J[a+268>>2],J[a+272>>2]);J[e+8>>2]=J[e+8>>2]+1;b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;continue}break}b=J[a+236>>2];if(b)break b;Ld(a,63410);B()}Ld(a,b);B()}Ld(a,b);B()}fc=g+256|0;return c}function woa(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;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;a=J[a+12>>2]+2776|0;i=O[b>>3];m=O[c>>3];p=-O[f>>3];o=-O[g>>3];j=O[d>>3];h=O[e>>3];a:{if(j<=0|h<=0)break a;b= +J[a+8>>2];c=J[b+4>>2];b:{c:{if(c){if(!(o<360))break b;d=J[b+20>>2];b=c-1|0;if(K[J[d+(b>>>6&67108860)>>2]+(b&255)|0]&64)break c;break b}if(!(o<360))break b}k=p*3.141592653589793/180;l=Me(k);n=Ee(k);k=h*.5;r=l;l=j*.5;n=qf(n/k,r/l);q=Ee(n);if(!(t=a,u=l*Me(n)+(l+i),v=k+m-k*q,s=J[J[a>>2]>>2],kc[s](t|0,+u,+v)|0))break a}d:{if(R(o)>=360){j=j*.5;i=j+i;k=i-j;l=h*.5;h=l+m;kc[J[J[a>>2]>>2]](a,k,h)|0;o=l*.552;p=o+h;n=j*.552;q=i-n;m=l+h;kc[J[J[a>>2]+8>>2]](a,k,p,q,m,i,m)|0;n=n+i;j=j+i;kc[J[J[a>>2]+8>>2]](a,n, +m,j,p,j,h)|0;r=j;m=h-o;j=h-l;kc[J[J[a>>2]+8>>2]](a,r,m,n,j,i,j)|0;kc[J[J[a>>2]+8>>2]](a,q,j,k,m,k,h)|0;break d}j=j*.5;k=j+i;l=h*.5;m=l+m;h=360-(p+o);i=360-p;if(i<0)while(1){i=i+360;if(i<0)continue;break}if(i>360)while(1){i=i+-360;if(i>360)continue;break}if(h<0)while(1){h=h+360;if(h<0)continue;break}if(h>=360)while(1){h=h+-360;if(h>=360)continue;break}e:{if(!(o>0)){if(h>=i){Iu(a,k,m,j,l,i,h,0);break e}Iu(a,k,m,j,l,i,360,0);Iu(a,k,m,j,l,0,h,0);break e}if(h<=i){Iu(a,k,m,j,l,i,h,1);break e}Iu(a,k,m,j, +l,i,0,1);Iu(a,k,m,j,l,360,h,1)}}}return 0}function JBa(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;f=fc+-64|0;fc=f;e=mk(f+28|0,J[a>>2]+72|0);J[699344]=0;g=_(5239,e|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((d|0)==1)break f;J[699344]=0;d=J[J[b+12>>2]+((g>>>0)%M[b+8>>2]<<2)>>2];h=J[699344];J[699344]=0;if((h|0)==1)break f;g:{if(d)while(1){if((g|0)==J[d+12>>2]){J[699344]=0;h=aa(5236,d+16|0,e|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;if(h)break g}d=J[d+8>>2];if(d)continue;break}J[699344]= +0;d=aa(5438,b|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break e;J[d+52>>2]=0;J[699344]=0;da(5439,c|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;J[f+16>>2]=0;J[f+20>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;J[699344]=0;a=f+8|0;J[a>>2]=2397928;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;d=J[699344];J[699344]=0;if((d|0)==1)break d;d=J[a+8>>2];if(d)while(1){J[699344]=0;ca(5429,d+8|0,b|0,c|0);g=J[699344];J[699344]=0;if((g|0)==1)break c;d=J[d>>2];if(d)continue;break}id(a)}J[e+24>>2]=2392964;J[e>>2]=2392932;a=J[e+ +28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[e+28>>2]=0}J[e+16>>2]=2392964;a=J[e+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[e+20>>2]=0}wc(e+8|0);fc=f- -64|0;return}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;break a}d=Z()|0;id(a);break a}d=Z()|0}Ed(e);ba(d|0);B()}function hVa(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;f=Ac(a,0,256);while(1){d=J[(j<<2)+b>>2]+c|0;k=K[d+5|0];l=K[d+1|0];h=k+l|0;i=K[d+3|0]; +g=K[d+4|0];m=K[d+2|0];e=g+m|0;o=K[d+6|0];p=K[d|0];d=o+p|0;n=e+d|0;J[f>>2]=((h+i|0)+n<<2)-3584;n=P(n-(i<<2)|0,2896);q=P(d-h|0,7223)+1024|0;d=P(d-e|0,7542);J[f+24>>2]=n+(q-d|0)>>11;e=P(h-e|0,2578);J[f+16>>2]=(e+q|0)+P(h-(i<<1)|0,-5793)>>11;J[f+8>>2]=(n+(d+e|0)|0)+1024>>11;d=m-g|0;h=p-o|0;i=P(d+h|0,5027)+1024|0;g=i+P(d,15326)|0;e=d;d=l-k|0;e=P(e+d|0,-11295);J[f+20>>2]=g+e>>11;g=e;e=P(h-d|0,1395);d=P(d+h|0,7663);J[f+12>>2]=((g+e|0)+d|0)+1024>>11;J[f+4>>2]=d+(i-e|0)>>11;f=f+32|0;j=j+1|0;if((j|0)!=7)continue; +break}while(1){i=J[a+128>>2];e=J[a+64>>2];f=i+e|0;k=J[a+192>>2];l=J[a>>2];d=k+l|0;g=f+d|0;c=J[a+96>>2];h=J[a+160>>2];j=J[a+32>>2];b=h+j|0;J[a>>2]=P(g+(c+b|0)|0,10700)+16384>>15;g=P(g-(c<<2)|0,3783);m=P(d-b|0,9434)+16384|0;d=P(d-f|0,9850);J[a+192>>2]=g+(m-d|0)>>15;f=P(b-f|0,3367);J[a+128>>2]=(f+m|0)+P(b-(c<<1)|0,-7566)>>15;J[a+64>>2]=(g+(d+f|0)|0)+16384>>15;b=e-i|0;c=l-k|0;f=P(b+c|0,6565)+16384|0;e=f+P(b,20017)|0;d=b;b=j-h|0;d=P(d+b|0,-14752);J[a+160>>2]=e+d>>15;e=d;d=P(c-b|0,1822);b=P(b+c|0,10009); +J[a+96>>2]=((e+d|0)+b|0)+16384>>15;J[a+32>>2]=b+(f-d|0)>>15;a=a+4|0;r=r+1|0;if((r|0)!=7)continue;break}}function vvb(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;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;if(e){q=e-2|0;t=(e|0)==1;while(1){a=f;I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];f=a+4|0;g=g+4|0;a:{if(l>>>0>q>>>0)break a;k=l?(l|0)==(q|0)?d:b:c;h=!l&t;if(!h){if(k>>>0<2)break a;m=h?0:f;o=a+2|0;p=a+6|0;h=1;r=k<<1;while(1){i=L[a>>1];b:{if((i|0)==L[m>>1]){I[g>>1]=i;break b}i=K[a| +0]|K[a+1|0]<<8;n=i>>>8|0;j=K[m|0]|K[m+1|0]<<8;i=((i<<8|n)&65535)+((k+(P(((j<<8|j>>>8)&65535)-((n|i<<8)&65535)|0,h)<<1)|0)/(r|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;j=L[o>>1];c:{if((j|0)==L[p>>1]){I[i>>1]=j;break c}j=K[o|0]|K[o+1|0]<<8;n=j>>>8|0;s=K[p|0]|K[p+1|0]<<8;j=((j<<8|n)&65535)+((k+(P(((s<<8|s>>>8)&65535)-((n|j<<8)&65535)|0,h)<<1)|0)/(r|0)|0)&65535;j=j<<8|j>>>8;H[i|0]=j;H[i+1|0]=j>>>8}g=g+4|0;h=h+1|0;if((k|0)!=(h|0))continue;break}break a}if(k>>>0<2)break a;h=k-1|0;m=h&3;if(k- +2>>>0>=3){k=h&-4;h=0;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];I[g+4>>1]=L[a>>1];I[g+6>>1]=L[a+2>>1];I[g+8>>1]=L[a>>1];I[g+10>>1]=L[a+2>>1];I[g+12>>1]=L[a>>1];I[g+14>>1]=L[a+2>>1];g=g+16|0;h=h+4|0;if((k|0)!=(h|0))continue;break}}h=0;if(!m)break a;while(1){I[g>>1]=L[a>>1];I[g+2>>1]=L[a+2>>1];g=g+4|0;h=h+1|0;if((m|0)!=(h|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function oub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287| +0]|K[a+288|0]))break a;if(K[a+289|0])break a;b:{if(!(K[a+301|0]|M[a+272>>2]<3)){H[a+503|0]=1;f=1029;if(!Jc(a,1029,0,0))break b}if(K[a+305|0])break a;if(K[a+304|0]){Jc(a,1031,0,0);return 1031}c:switch(c-1|0){default:Jc(a,1028,0,0);return 1028;case 0:case 9:break c}H[a+304|0]=1;if(c>>>0>=2){c=K[d+6|0]|K[d+7|0]<<8|(K[d+8|0]<<16|K[d+9|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);h=K[d+1|0];c=K[d+2|0]|K[d+3|0]<<8|(K[d+4|0]<<16|K[d+5|0]<<24);i=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}d=K[d|0];d:{c= +J[a+216>>2];if(!c)break d;if(kc[c|0](a,d,h,i,g)|0)break d;Jc(a,904,0,0);return 904}f=0;e:{if(!K[a+114|0])break e;c=kc[J[a+152>>2]](40)|0;if(!c){Jc(a,1,0,0);f=1;break e}J[c+4>>2]=1060;J[c>>2]=1061;f=J[a+700>>2];f:{if(f){J[f+8>>2]=c;break f}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;J[c+36>>2]=g;J[c+32>>2]=i;H[c+29|0]=h;H[c+28|0]=d;f=0}if(f)break b;J[a+520>>2]=J[a+ +700>>2];f=0;if(!K[a+112|0])break b;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break b;a=J[e>>2];J[a+40>>2]=g;J[a+36>>2]=i;H[a+33|0]=h;H[a+32|0]=d;f=0}return f|0}Jc(a,1029,0,0);return 1029}function be(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;a:{if(!(J[a+172>>2]==3|J[a+40>>2]!=1))while(1){c=J[a+36>>2];b=J[c+16>>2];while(1){b:{c:{d=K[b|0];if((d|0)==32)break c;d:{if((d-9&255)>>>0>=2){if((d|0)!=13)break d;break c}if((d|0)!=10)break c;J[c+32>>2]=1;J[c+28>>2]=J[c+28>>2]+1;break b}J[c+16>>2]=b;break a}J[c+32>> +2]=J[c+32>>2]+1}f=f+1|0;d=K[b+1|0];b=b+1|0;if(d)continue;break}J[c+16>>2]=b;Nd(c);continue}while(1){d=J[a+36>>2];b=K[J[d+16>>2]];c=b;e:{f:switch(b|0){case 9:case 10:case 13:case 32:if(J[a+172>>2]==-1)break e;Zd(a);f=f+1|0;continue;case 0:g:{if(J[a+40>>2]<=1){c=0;break g}while(1){if(J[a+172>>2]==5){c=0;break g}while(1){h:{b=J[a+40>>2];if((b|0)<2)break h;i:{j:{k:{if(!J[693384]){d=b-1|0;J[a+40>>2]=d;c=J[a+48>>2];break k}J[e>>2]=b;c=0;kc[J[663297]](J[693366],36125,e);b=J[a+40>>2];if((b|0)<=0)break i; +d=b-1|0;J[a+40>>2]=d;c=J[a+48>>2];h=0;g=0;if((b|0)==1)break j}h=J[((b<<2)+c|0)-8>>2];g=d}b=g;J[a+36>>2]=h;b=(b<<2)+c|0;c=J[b>>2];J[b>>2]=0}th(c);b=J[a+36>>2];if(K[J[b+16>>2]])break h;if((Nd(b)|0)<=0)continue}break}d=J[a+36>>2];c=K[J[d+16>>2]];if(c)break g;if(J[a+40>>2]>=2)continue;break}c=0}b=K[J[d+16>>2]];break;default:break f}if((b&255)==37)Yd(a);b=c}b=b-9|0;if(b>>>0>23|!(1<>2]!=-1)continue;break}}fc=e+16|0;return f}function dka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f= +0,g=0,h=0,i=0;d=fc-16|0;fc=d;a:{b:{if(!J[a+64>>2])break b;if(!(K[a+92|0]&16)){J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0;c=J[a+52>>2];c:{if(c>>>0>=9){if(K[a+98|0]){f=c;c=J[a+32>>2];J[a+28>>2]=(f+c|0)-1;J[a+20>>2]=c;J[a+24>>2]=c;break c}c=J[a+56>>2];J[a+28>>2]=(c+J[a+60>>2]|0)-1;J[a+20>>2]=c;J[a+24>>2]=c;break c}J[a+28>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}J[a+92>>2]=16}g=J[a+20>>2];h=J[a+28>>2];if((b|0)!=-1){if(!J[a+24>>2]){J[a+28>>2]=d+16;c=d+15|0;J[a+20>>2]=c;J[a+24>>2]=c}H[J[a+24>>2]]=b;J[a+24>>2]=J[a+24>> +2]+1}e=J[a+24>>2];c=J[a+20>>2];if((e|0)!=(c|0)){d:{if(K[a+98|0]){f=c;c=e-c|0;if((ae(f,1,c,J[a+64>>2])|0)!=(c|0))break b;break d}J[d+8>>2]=J[a+32>>2];i=a+72|0;while(1){c=J[a+68>>2];if(c){e=J[a+32>>2];c=kc[J[J[c>>2]+12>>2]](c,i,J[a+20>>2],J[a+24>>2],d+4|0,e,e+J[a+52>>2]|0,d+8|0)|0;if(J[a+20>>2]==J[d+4>>2])break b;if((c|0)==3){c=J[a+24>>2]-J[a+20>>2]|0;if((ae(J[a+20>>2],1,c,J[a+64>>2])|0)!=(c|0))break b;break d}if(c>>>0>1)break b;f=J[a+32>>2];e=J[d+8>>2]-f|0;if((ae(f,1,e,J[a+64>>2])|0)!=(e|0))break b; +if((c|0)!=1)break d;c=J[d+4>>2];J[a+28>>2]=J[a+24>>2];J[a+20>>2]=c;J[a+24>>2]=c;J[a+24>>2]=J[a+24>>2]+(J[a+28>>2]-J[a+20>>2]|0);continue}break}yv();B()}J[a+28>>2]=h;J[a+20>>2]=g;J[a+24>>2]=g}a=(b|0)!=-1?b:0;break a}a=-1}fc=d+16|0;return a|0}function Wkb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(M[b+160>>2]>>0)pe(b,8);g=K[a+15|0]|(K[a+13|0]<<16|K[a+12|0]<<24|K[a+14|0]<<8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!(c>>>0<16|c>>>0> +J[b+160>>2]-a>>>0))if((c-16>>>0)/12>>>0>=g>>>0)break a;pe(b,8)}b:{if(!g)break b;f=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(c>>>0>>0)pe(b,8);h=1;c:{if(J[b+164>>2]<=0)break c;e=J[b+172>>2];d=c-d|0;if(e>>>0>=d>>>0)if(e-d>>>0>(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0)break c;pe(b,16)}if((g| +0)==1)break b;a=a+28|0;while(1){f=c;d=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(c>>>0>>0)pe(b,8);if(e>>>0<=f>>>0)pe(b,8);d:{if(J[b+164>>2]<=0)break d;f=J[b+172>>2];e=c-e|0;if(f>>>0>=e>>>0)if(f-e>>>0>(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)break d;pe(b,16)}a=a+12|0;h=h+1|0;if((h|0)!=(g|0))continue; +break}}return 0}function Pr(a,b,c){var d=0,e=0,f=0;a:{d=J[a>>2];e=K[d|0];if((e-48&255)>>>0<10|((e&223)-65&255)>>>0<26)break a;b:{c:switch(e-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break a;case 4:break c;default:break b}d:{f=K[d+1|0];if((f-48&255)>>>0<10)break d;switch(f-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break d;default:break b}}f=K[d+2|0];if((f- +48&255)>>>0<10)break a;switch(f-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break a;default:break b}}return!c}while(1){e:{f:{g:{if((e-48&255)>>>0<10|((e&-33)-65&255)>>>0<26)break g;h:switch(e-33|0){case 0:case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 25:case 26:case 28:case 31:case 62:case 93:break g;case 4:break h;default:break e}i:{c=K[d+1|0];if((c-48&255)>>>0<10)break i;switch(c-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break i; +default:break e}}c=K[d+2|0];if((c-48&255)>>>0<10|(c-97&255)>>>0<6)break g;if((b|0)==37)break e;if((c-71&255)>>>0>=250)break f;break e}if((b&255)==(e|0))break e}d=((e|0)==37?3:1)+d|0;e=K[d|0];continue}break}J[a>>2]=d;return 0}function bxa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;k=(g|0)/8|0;a:{if(!f)break a;f=f-1|0;j=J[a+60>>2];if(e>>>0>=8){l=(e&7|8)-9|0;while(1){a=f;g=e;while(1){d=i;c=b;f=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[f>>2];J[b+4>>2]=J[f+4>>2];J[b+8>> +2]=J[f+8>>2];J[b+12>>2]=J[f+12>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=J[f+20>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=J[f+28>>2];b=b+32|0;i=i+1|0;g=g-8|0;if(g>>>0>7)continue;break}b:{if(g){g=2;i=J[(K[i|0]<<2)+j>>2];c:switch(l|0){case 6:J[c+32>>2]=J[i>>2];b=c+36|0;i=i+4|0;case 5:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 4:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 3:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 2:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 1:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;break;case 0:break c;default:break b}J[b>> +2]=J[i>>2];b=b+4|0;break b}g=1}f=a-1|0;i=(d+g|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}break a}if(!e)break a;c=e-1|0;while(1){a=f;f=J[(K[i|0]<<2)+j>>2];d:switch(c|0){case 6:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 5:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 4:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 3:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 2:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 1:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 0:J[b>>2]=J[f>>2];b=b+4|0;break;default:break d}f=a-1|0;i=(i+1|0)+k|0;b=(h<<2)+b|0;if(a)continue; +break}}}function Xxa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;k=(g|0)/8|0;a:{if(!f)break a;f=f-1|0;j=J[a+64>>2];if(e>>>0>=8){l=(e&7|8)-9|0;while(1){a=f;g=e;while(1){d=i;c=b;f=J[(K[i|0]<<2)+j>>2];J[b>>2]=J[f>>2];J[b+4>>2]=J[f+4>>2];J[b+8>>2]=J[f+8>>2];J[b+12>>2]=J[f+12>>2];J[b+16>>2]=J[f+16>>2];J[b+20>>2]=J[f+20>>2];J[b+24>>2]=J[f+24>>2];J[b+28>>2]=J[f+28>>2];b=b+32|0;i=i+1|0;g=g-8|0;if(g>>>0>7)continue;break}b:{if(g){g=2;i=J[(K[i|0]<<2)+j>>2];c:switch(l| +0){case 6:J[c+32>>2]=J[i>>2];b=c+36|0;i=i+4|0;case 5:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 4:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 3:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 2:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;case 1:J[b>>2]=J[i>>2];b=b+4|0;i=i+4|0;break;case 0:break c;default:break b}J[b>>2]=J[i>>2];b=b+4|0;break b}g=1}f=a-1|0;i=(d+g|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}break a}if(!e)break a;c=e-1|0;while(1){a=f;f=J[(K[i|0]<<2)+j>>2];d:switch(c|0){case 6:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 5:J[b>>2]= +J[f>>2];b=b+4|0;f=f+4|0;case 4:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 3:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 2:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 1:J[b>>2]=J[f>>2];b=b+4|0;f=f+4|0;case 0:J[b>>2]=J[f>>2];b=b+4|0;break;default:break d}f=a-1|0;i=(i+1|0)+k|0;b=(h<<2)+b|0;if(a)continue;break}}}function su(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!a|!b)break a;g=K[b|0];e=P(g,30);if(g){f=b;while(1){e=(g<<24>>24)+((e<<5)+(e>>>3|0)|0)^e;g=K[f+1|0];f=f+1|0;if(g)continue;break}}e=(e<<5)+(e>>>3|0)^e;b:{if(!c)break b; +g=K[c|0];if(!g)break b;f=c;while(1){e=((g<<24>>24)+(e>>>3|0)|0)+(e<<5)^e;g=K[f+1|0];f=f+1|0;if(g)continue;break}}f=J[a>>2];i=(((e<<5)+(e>>>3|0)^e)>>>0)%M[a+4>>2]|0;if(!J[(f+P(i,24)|0)+20>>2]|!f)break a;e=f+P(i,24)|0;while(1){f=e;c:{j=J[e+4>>2];if((j|0)!=(b|0)){g=b;e=j;if(!e)break c;while(1){h=K[e|0];if((h|0)!=K[g|0])break c;g=g+1|0;e=e+1|0;if(h)continue;break}}e=J[f+8>>2];if((e|0)!=(c|0)){if(!c)break c;g=c;if(!e)break c;while(1){h=K[e|0];if((h|0)!=K[g|0])break c;g=g+1|0;e=e+1|0;if(h)continue;break}}if(J[f+ +12>>2])break c;d:{if(!d)break d;b=J[f+16>>2];if(!b)break d;kc[d|0](b,j)}J[f+16>>2]=0;e:{if(J[a+12>>2])break e;b=J[f+4>>2];if(b)kc[J[663199]](b);b=J[f+8>>2];if(b)kc[J[663199]](b);b=J[f+12>>2];if(!b)break e;kc[J[663199]](b)}d=J[f>>2];f:{if(k){J[k>>2]=d;kc[J[663199]](f);break f}if(!d){J[f+20>>2]=0;break f}b=J[d+4>>2];c=J[a>>2]+P(i,24)|0;J[c>>2]=J[d>>2];J[c+4>>2]=b;b=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=b;b=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=b;kc[J[663199]](d)}J[a+8>>2]=J[a+8>>2]-1;return}k= +f;e=J[f>>2];if(e)continue;break}}}function gn(a){var b=0,c=0;c=fc-256|0;fc=c;a:{b:{c:{b=Fc(a);if(!b){d:{e:{f:{g:{h:{i:{j:{a=Fc(a);if((a|0)<=1281845357){if((a|0)<=1148349293){if((a|0)<=1131180575){if((a|0)==1128428142)break j;if((a|0)!=1128555623)break a;b=8;break b}if((a|0)==1131180576)break d;if((a|0)!=1147564654)break a;b=17;break b}if((a|0)<=1210064927){if((a|0)==1148349294)break c;if((a|0)!=1148415094)break a;b=1;break b}if((a|0)==1210064928)break f;if((a|0)!=1215456332)break a;b=12;break b}k:{if((a| +0)<=1333162603){if((a|0)<=1298953327){if((a|0)==1281845358)break i;if((a|0)!=1282240115)break a;b=22;break b}if((a|0)==1298953328)break k;b=0;if((a|0)==1316121964)break b;break a}if((a|0)<=1399223371){if((a|0)==1333162604)break h;if((a|0)!=1399026286)break a;b=7;break b}if((a|0)==1399223372)break g;if((a|0)==1400140404)break e;if((a|0)!=1482910837)break a;b=18;break b}b=3;break b}b=4;break b}b=6;break b}b=10;break b}b=11;break b}b=19;break b}b=20;break b}b=21;break b}gf(a,c,b);H[c+b|0]=0;b=5;if(!dd(c, +225136,11))break b;b=9;if(!dd(c,225161,12))break b;b=13;if(!dd(c,225187,11))break b;b=14;if(!dd(c,225198,12))break b;b=15;if(!dd(c,225210,9))break b;b=16;if(J[c>>2]==1685217640&J[c+4>>2]==7891277)break b;fa(219546,219859,800,225103);B()}b=2}fc=c+256|0;return b}fa(219546,219859,779,225103);B()}function gW(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=fc-16|0;fc=f;i=b+8|0;a:{if(J[b+8>>2]){ti(f+8|0,b,i);break a}J[f+8>>2]=0;vd(f+8|0,0)}b:{g=J[f+8>>2];c:{if(!g)break c;k=J[g+ +8>>2];J[699344]=0;J[f+8>>2]=0;h=J[g+4>>2]-1|0;J[g+4>>2]=h;j=J[699344];J[699344]=0;if((j|0)==1)break b;if(h)break c;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break b}d:{if(J[i>>2]){ti(f+12|0,b,i);break d}J[f+12>>2]=0;vd(f+12|0,0)}g=J[f+12>>2];e:{if(!g){h=0;break e}h=J[g+12>>2];J[699344]=0;J[f+12>>2]=0;j=J[g+4>>2]-1|0;J[g+4>>2]=j;l=J[699344];J[699344]=0;if((l|0)==1)break b;if(j)break e;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)==1)break b}f:{if(J[i>>2]){mW(f+4|0,b,i); +break f}J[f+4>>2]=0;vd(f+4|0,0)}g:{h:{i:{if(!k|!h)break i;b=J[f+4>>2];if(!b|J[b+72>>2]!=(k|0)|J[b+76>>2]!=(h|0))break i;J[699344]=0;la(5527,a|0,b|0,c|0,d|0,e|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)break h;break g}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g}a=J[f+4>>2];J[f+4>>2]=0;j:{if(!a)break j;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break j;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}fc= +f+16|0;return}a=Z()|0;zc(f+4|0);ba(a|0);B()}ea(0)|0;Bc();B()}function VO(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;a:{c=J[a+4>>2];if(!c)break a;b:{if((P(J[c+4>>2],J[c>>2])|0)<=0)break b;a=J[c+8>>2];if(!a)break b;while(1){c:{if(!a)break c;d:{g=P(k,840)+a|0;if(J[g+16>>2]<=0)break d;a=J[g+20>>2];if(!a)break d;i=0;while(1){e:{if(!a)break e;f:{e=(i<<5)+a|0;b=J[e+16>>2];if((b|0)<=0)break f;a=J[e+20>>2];if(!a)break f;j=0;while(1){g:{if(!a)break g;f=P(j,124)+a|0;if(J[f+24>>2]<=0)break g;h=0; +while(1){h:{if((P(J[f+16>>2],J[f+20>>2])|0)<=0)break h;a=0;l=(h<<5)+f|0;b=J[l+48>>2];if(!b)break h;while(1){i:{if(!b)break i;b=P(a,36)+b|0;d=J[b+24>>2];if(d){uc(d);J[b+24>>2]=0}d=J[b+32>>2];if(d){m=J[d+12>>2];if(m)uc(m);uc(d)}b=J[b+28>>2];if(!b)break i;d=J[b+12>>2];if(d)uc(d);uc(b)}a=a+1|0;if((a|0)>=(P(J[f+16>>2],J[f+20>>2])|0))break h;b=J[l+48>>2];continue}}a=(h<<5)+f|0;b=J[a+48>>2];if(b){uc(b);J[a+48>>2]=0}h=h+1|0;if((h|0)>2])continue;break}b=J[e+16>>2]}j=j+1|0;if((j|0)>=(b|0))break f;a= +J[e+20>>2];continue}}a=J[e+20>>2];if(a){uc(a);J[e+20>>2]=0}a=J[e+24>>2];if(!a)break e;uc(a);J[e+24>>2]=0}i=i+1|0;if((i|0)>=J[g+16>>2])break d;a=J[g+20>>2];continue}}a=J[g+20>>2];if(!a)break c;uc(a);J[g+20>>2]=0}k=k+1|0;if((k|0)>=(P(J[c+4>>2],J[c>>2])|0))break b;a=J[c+8>>2];continue}}a=J[c+8>>2];if(!a)break a;uc(a);J[c+8>>2]=0}}function kKa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];d=(J[a+4>>2]-c|0)/56|0;e=d+1|0;if(e>>>0<76695845){c=(J[a+8>>2]-c|0)/56|0;f=c<<1;e=c>>>0>=38347922?76695844: +e>>>0>>0?f:e;if(e){if(e>>>0>=76695845)break c;g=vc(P(e,56))}c=P(d,56)+g|0;d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;d=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d;d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;d=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=d;e=P(e,56)+g|0;g=c+56|0;b=J[a+4>>2];d=J[a>>2];if((b|0)==(d|0))break b;while(1){b=b-56|0;f=J[b+ +4>>2];c=c-56|0;J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;f=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=f;f=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=f;f=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=f;f=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=f;f=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=f;if((b|0)!=(d|0))continue;break}J[a+8>>2]=e;b=J[a+4>>2];J[a+4>>2]=g;e=J[a>>2];J[a>>2]=c;if((b|0)==(e|0))break a;while(1){a=b-56|0;if(H[b-45|0]<0)uc(J[a>>2]);b=a;if((e| +0)!=(b|0))continue;break}b=e;break a}sZ();B()}Pd();B()}J[a+8>>2]=e;J[a+4>>2]=g;J[a>>2]=c}if(b)uc(b)}function kza(a,b,c,d,e,f,g,h,i){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;var j=0;if(f){a=L[a+26>>1];d=P(a,g);j=e>>>0<8;h=h<<2;while(1){g=e;if(!j)while(1){J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;c=a+i|0;J[b+4>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+8>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+12>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+ +c|0;J[b+16>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+20>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+24>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;c=a+c|0;J[b+28>>2]=K[c|0]|K[c+1|0]<<8|K[c+2|0]<<16|-16777216;b=b+32|0;i=a+c|0;g=g-8|0;if(g>>>0>7)continue;break}a:switch(g-1|0){case 6:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 5:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 4:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216; +i=a+i|0;b=b+4|0;case 3:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 2:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 1:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;case 0:J[b>>2]=K[i|0]|K[i+1|0]<<8|K[i+2|0]<<16|-16777216;i=a+i|0;b=b+4|0;break;default:break a}i=d+i|0;b=b+h|0;f=f-1|0;if(f)continue;break}}}function pC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=fc-128|0;fc=h;a:{if(!c)break a;e=J[c+8>>2];if(!e)break a;b:{d=J[c+36>>2];c:{d:{if(!d)break d; +f=J[d+12>>2];if(!f)break d;if(Ic(e,15587))break d;if(!Ic(f,9684))break c}if(!a|!(J[a+44>>2]|J[a+48>>2])&J[a+4>>2]!=13)break a;if(J[a+4>>2]==13){g=1;if(Pg(15587,e))break a;if(!Pg(14111,J[c+8>>2]))break b;if(!b)break a;if(Pg(J[b+8>>2],19879))break a;break b}if(!b)break a;e:{f:{e=J[b+36>>2];if(!e)break f;e=J[e+12>>2];if(!e)break f;g=qu(J[b+8>>2],e,h- -64|0,50);d=J[c+36>>2];break e}g=J[b+8>>2]}e=J[c+8>>2];g:{if(!d)break g;e=J[c+8>>2];d=J[d+12>>2];if(!d)break g;e=qu(e,d,h,50)}d=0;h:{if(!g|!e)break h;d= +J[a+44>>2];J[h+124>>2]=0;i:{if(!d)break i;d=J[d+44>>2];if(!d)break i;f=kq(e,h+124|0);j:{if(f){d=Bf(d,f,J[h+124>>2],g);i=J[h+124>>2];if(i)kc[J[663199]](i);kc[J[663199]](f);break j}d=Bf(d,e,0,g)}if(d)break h}f=J[a+48>>2];if(!f){d=0;break h}d=0;a=fc-16|0;fc=a;J[a+12>>2]=0;k:{if(!f)break k;f=J[f+44>>2];if(!f)break k;i=kq(e,a+12|0);if(i){d=Bf(f,i,J[a+12>>2],g);f=J[a+12>>2];if(f)kc[J[663199]](f);kc[J[663199]](i);break k}d=Bf(f,e,0,g)}fc=a+16|0}if(!((e|0)==(h|0)|(e|0)==J[c+8>>2]))kc[J[663199]](e);if(!((h- +-64|0)==(g|0)|J[b+8>>2]==(g|0)))kc[J[663199]](g);if(!d|J[d+40>>2]!=2)break b}g=1;break a}g=0}fc=h+128|0;return g}function lC(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=J[a>>2];a:{if(J[e+72>>2]==J[e+68>>2])break a;e=J[a+232>>2];if(!e)break a;b:switch(J[e>>2]+2|0){case 0:case 3:break a;default:break b}if(!((c|0)<=0|d)){d=0;while(1){e=K[b+d|0]-9|0;if(e>>>0>23|!(1<>2];if(!b)return 0;c:{e=J[a+8>>2];if(!e)break c;f=1;c=J[b+8>>2];b=fc-16|0;fc= +b;h=-1;d:{if(!e)break d;d=J[e+44>>2];if(!d)break d;J[b+8>>2]=0;if(c){d=J[d+40>>2];e:{if(d){g=kq(c,b+8|0);d=Un(d,g?g:c,J[b+8>>2]);i=J[b+8>>2];if(i)kc[J[663199]](i);if(g)kc[J[663199]](g);if(d)break e}d=J[e+48>>2];if(!d)break d;J[b+12>>2]=0;d=J[d+40>>2];if(!d)break d;e=kq(c,b+12|0);d=Un(d,e?e:c,J[b+12>>2]);c=J[b+12>>2];if(c)kc[J[663199]](c);if(e)kc[J[663199]](e);if(!d)break d}h=1;c=J[d+36>>2];if(c>>>0>4)break d;h=J[(c<<2)+775760>>2]}}fc=b+16|0;f:switch(h|0){case 0:break a;case 1:break f;default:break c}return 0}d= +J[J[a+36>>2]+16>>2];c=K[d|0];if(!((c|0)==60|(c|0)==13))return 0;b=J[a+52>>2];if(!(J[b+12>>2]|(c|0)!=60|K[d+1|0]!=47))return 0;c=0;c=!b|J[b+4>>2]==18?c:J[b+16>>2];g:{if(!c){a=J[a+52>>2];if(J[a+4>>2]==1)break g;f=0;if(!J[a+40>>2])break g;break a}if(c?J[c+4>>2]==3:0)return 0;a=J[J[a+52>>2]+12>>2];if(!a)break g;f=0;if(a?J[a+4>>2]==3:0)break a}f=1}return f}function Cq(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;h=fc+-64|0;fc=h;i=a+11724|0;aN(a,J[a+11720>>2],J[i>>2],b,c,h+20|0,h+16|0);aN(a, +d,e,f,g,h+12|0,h+8|0);j=J[a+4>>2];J[j+16>>2]=J[j+16>>2]+(P(e-c>>16,b>>16)-P(d-b>>16,c>>16)|0);j=J[h+20>>2];l=j+J[a+11720>>2]|0;J[h>>2]=l;k=J[h+16>>2];i=k+J[i>>2]|0;J[h+4>>2]=i;n=J[h+8>>2];o=J[h+12>>2];c=c+k|0;j=b+j|0;if(K[a+11667|0]){J[h+56>>2]=1;b=J[a+11732>>2];J[h+24>>2]=J[a+11728>>2];J[h+28>>2]=b;if(!K[a+20|0])Uu(a,J[a+11736>>2],J[a+11740>>2]);k=Wc(J[a+11644>>2],l);m=Wc(J[a+11648>>2],i);b=fn(a+8|0,i);k=k+m|0;p=h,q=(Wc(J[J[a>>2]+64>>2],k)+Wc(J[J[a>>2]+72>>2],b)|0)+J[a+11656>>2]|0,J[p+32>>2]=q;p= +h,q=(Wc(J[J[a>>2]+68>>2],k)+Wc(J[J[a>>2]+76>>2],b)|0)+J[a+11660>>2]|0,J[p+36>>2]=q;b=J[a+4>>2];kc[J[b>>2]](b,h+24|0);b=J[h+32>>2];k=J[h+36>>2];m=l;l=0;J[a+11704>>2]=m|l;J[a+11708>>2]=i;J[a+11728>>2]=b;J[a+11732>>2]=k;J[a+11712>>2]=j|l;J[a+11716>>2]=c;H[a+11664|0]=1;H[a+11667|0]=0}if(K[a+11744|0])by(a,a+8|0,h,j,c,0);J[a+11748>>2]=4;H[a+11744|0]=1;b=J[h>>2];i=J[h+4>>2];J[a+11780>>2]=g+n;J[a+11776>>2]=f+o;J[a+11772>>2]=e+n;J[a+11768>>2]=d+o;J[a+11752>>2]=b;J[a+11756>>2]=i;J[a+11760>>2]=j;J[a+11764>> +2]=c;b=J[a+11676>>2];if(K[b+5|0])ay(a+8|0,J[a+11668>>2],J[a+11672>>2],b,J[a+11680>>2],0);J[a+11724>>2]=g;J[a+11720>>2]=f;fc=h- -64|0}function mFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-48|0;fc=d;c=J[a+32>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;e=J[a+32>>2]}J[699344]=0;J[d+44>>2]=e;c=d+20|0;ia(5214,c|0,d+44|0,1,1);e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((e|0)!=1){J[699344]=0;aa(5153,a+48|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break i;c=J[d+20>>2];J[d+20>>2]=0;j:{if(!c)break j;J[699344]= +0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break j;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=J[d+44>>2];J[d+44>>2]=0;k:{if(!c)break k;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break k;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}b=(b|0)<=10?10:b;if(b>>>0<4097)break b;a=$v(d+4|0,4096);J[699344]=0;ca(5218,d+12|0,2390521,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break g; +b=J[d+12>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;c=ja(5178,d+20|0,b|0,2385875,931,2396260,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;B()}a=Z()|0;break h}a=Z()|0;zc(d+20|0)}zc(d+44|0);ba(a|0);B()}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;Kc(c)}wc(d+12|0)}wc(a);ba(b|0);B()}J[a+20>>2]=b<<10;fc=d+48|0;return}ea(0)|0;Bc();B()}function hx(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){b=J[a+76>>2];if(b)Fl(b);c=J[a+20>>2];a:{if(!c)break a;if(J[a+ +88>>2]==J[c+296>>2])J[a+88>>2]=0;d=J[c+8>>2];if(d){if(!J[a+80>>2]){b:{if(!J[693393])break b;b=J[693391];if(!b)break b;kc[b|0](d)}b=J[d+64>>2];if(b)Xo(b,3328);J[d+64>>2]=0;b=J[d+68>>2];if(b)C1(b);J[d+68>>2]=0;b=J[d+48>>2];c=J[d+44>>2];if(!(!b|(c|0)==(b|0))){Wj(b);J[d+48>>2]=0;Ur(b)}if(c){Wj(J[d+44>>2]);J[d+44>>2]=0;Ur(c)}b=J[d+12>>2];if(b)qC(a,b);b=J[d+56>>2];if(b)kc[J[663199]](b);b=J[d+8>>2];if(b)kc[J[663199]](b);b=J[d+60>>2];if(b)kc[J[663199]](b);c=J[d+52>>2];if(c)while(1){b=J[c>>2];e=J[c+8>>2]; +if(e)kc[J[663199]](e);e=J[c+12>>2];if(e)kc[J[663199]](e);kc[J[663199]](c);c=b;if(b)continue;break}b=J[d+72>>2];if(b)kc[J[663199]](b);b=J[d+80>>2];if(b)Wn(b);kc[J[663199]](d);c=J[a+20>>2]}J[c+8>>2]=0}b=J[c+160>>2];if(!(!b|J[c+156>>2]<=0)){kc[J[663199]](b);c=J[a+20>>2];J[c+156>>2]=0;J[c+160>>2]=0}if(!(K[a+12|0]&2))break a;Vj(c)}b=J[a+24>>2];if(b)kc[J[663199]](b);b=J[a+28>>2];if(!(!b|!(H[a+12|0]&1)))Vn(b);e=J[a+84>>2];if(e){b=J[e+12>>2];c:{d:{e:{if((b|0)==3){c=J[e+16>>2];if(!c)break e;break d}if((b| +0)==2)break c}c=J[e>>2];if(!c)break c}kc[J[663199]](c)}kc[J[663199]](e)}b=J[a+104>>2];if(b)kc[J[663199]](b);b=J[a+88>>2];if(b)Wn(b);kc[J[663199]](a)}}function z8a(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;d=fc-32|0;fc=d;a:{b:{c:{d:{e:{if(J[b+216>>2]){J[b+192>>2]=0;c=0;break e}F3(b);if(!J[b+216>>2])break d;c=J[b+192>>2]}if(c>>>0>=M[b+196>>2])break a;J[b+192>>2]=c+1;e=J[J[b+208>>2]+(c>>>4&268435452)>>2]+((c&63)<<4)|0;O[d+16>>3]=O[e>>3];O[d+8>>3]=O[e+8>>3];c=c?2:1;break c}c= +$o(b,d+16|0,d+8|0);if(!c)break a;if(c>>>0>14)break b}h=J[a>>2];e=1;f:{if(!h)break f;e=h-1|0;h=e>>>8<<2;e=e&255;i=K[J[h+J[a+16>>2]>>2]+e|0];if(i-1>>>0<=13){e=J[h+J[a+12>>2]>>2]+(e<<4)|0;g=O[d+16>>3];f=O[e>>3]-g;k=f*f;f=O[d+8>>3];j=O[e+8>>3]-f;if(!(Y(k+j*j)>1E-14))break b;J[d+28>>2]=0;l=Qe(a,d+28|0),m=(c|0)==1?2:c,H[l|0]=m;c=J[d+28>>2];O[c+8>>3]=f;O[c>>3]=g;J[a>>2]=J[a>>2]+1;break b}e=1;if(!i)break f;e=(c|0)==1?2:c}g=O[d+16>>3];f=O[d+8>>3];J[d+28>>2]=0;l=Qe(a,d+28|0),m=e,H[l|0]=m;c=J[d+28>>2];O[c+8>> +3]=f;O[c>>3]=g;J[a>>2]=J[a>>2]+1}while(1){g:{if(J[b+216>>2]){c=J[b+192>>2];if(c>>>0>=M[b+196>>2])break a;J[b+192>>2]=c+1;e=J[J[b+208>>2]+(c>>>4&268435452)>>2]+((c&63)<<4)|0;g=O[e>>3];O[d+16>>3]=g;f=O[e+8>>3];O[d+8>>3]=f;c=c?2:1;break g}c=$o(b,d+16|0,d+8|0);if(!c)break a;f=O[d+8>>3];g=O[d+16>>3]}J[d+28>>2]=0;l=Qe(a,d+28|0),m=(c|0)==1?2:c,H[l|0]=m;c=J[d+28>>2];O[c+8>>3]=f;O[c>>3]=g;J[a>>2]=J[a>>2]+1;continue}}fc=d+32|0}function qY(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(a){b=J[a+20>>2];if(b){f= +J[b>>2];if(f){e=J[f+20>>2];if(J[f+16>>2]){h=H[a+40|0]&1?4854:4855;while(1){d=J[e+28>>2];if(d){b=J[e+32>>2];if(b>>>0>=152){k=(b>>>0)/152|0;i=0;while(1){b=J[d+48>>2];if(b){c=J[d+52>>2];if(c>>>0>=40){g=(c>>>0)/40|0;c=0;while(1){It(J[b+32>>2]);J[b+32>>2]=0;It(J[b+36>>2]);J[b+36>>2]=0;kc[h|0](b);b=b+40|0;c=c+1|0;if((g|0)!=(c|0))continue;break}b=J[d+48>>2]}uc(b);J[d+48>>2]=0}b=J[d+84>>2];if(b){c=J[d+88>>2];if(c>>>0>=40){g=(c>>>0)/40|0;c=0;while(1){It(J[b+32>>2]);J[b+32>>2]=0;It(J[b+36>>2]);J[b+36>>2]=0; +kc[h|0](b);b=b+40|0;c=c+1|0;if((g|0)!=(c|0))continue;break}b=J[d+84>>2]}uc(b);J[d+84>>2]=0}b=J[d+120>>2];if(b){c=J[d+124>>2];if(c>>>0>=40){g=(c>>>0)/40|0;c=0;while(1){It(J[b+32>>2]);J[b+32>>2]=0;It(J[b+36>>2]);J[b+36>>2]=0;kc[h|0](b);b=b+40|0;c=c+1|0;if((g|0)!=(c|0))continue;break}b=J[d+120>>2]}uc(b);J[d+120>>2]=0}d=d+152|0;i=i+1|0;if((k|0)!=(i|0))continue;break}d=J[e+28>>2]}uc(d);J[e+28>>2]=0}a:{if(!J[e+40>>2])break a;b=J[e+36>>2];if(!b)break a;uc(b);J[e+44>>2]=0;J[e+48>>2]=0;J[e+36>>2]=0;J[e+40>> +2]=0}uc(J[e+52>>2]);e=e+76|0;j=j+1|0;if(j>>>0>2])continue;break}e=J[f+20>>2]}uc(e);J[f+20>>2]=0;uc(J[J[a+20>>2]>>2]);b=J[a+20>>2];J[b>>2]=0}uc(b);J[a+20>>2]=0}uc(J[a+68>>2]);uc(a)}}function $c(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;e=2147483632;J[b>>2]=2147483632;g=J[b+8>>2];J[b+16>>2]=g;f=J[b+20>>2];J[b+28>>2]=f;I[f+2>>1]=0;c=J[a+120>>2];a:{while(1){o=c;l=J[a+60>>2];if(l>>>0<=c>>>0)break a;m=J[J[a+72>>2]+(c>>>6&67108860)>>2];n=c&255;c=m+P(n,12)|0;i=J[c+8>>2];j=J[c+4>> +2];while(1){k=J[J[a+52>>2]+(i>>>8&16777212)>>2]+P(i&1023,12)|0;d=J[k+8>>2];b:{if((d|0)>=0){c=0;if(d>>>0>=M[a>>2])break b;c=J[J[a+12>>2]+(d>>>10&4194300)>>2]+(d&4095)|0;break b}d=d^-1;c=0;if(d>>>0>=M[a+20>>2])break b;c=J[(J[J[a+32>>2]+(d>>>4&268435452)>>2]+((d&63)<<3)|0)+4>>2]}h=J[k>>2];i=i+1|0;d=J[k+4>>2];c:{if((d|0)<0){c=K[c|0];d:{e:{if((e+1|0)!=(h|0))break e;e=I[f+2>>1];if((c|0)!=K[J[f+4>>2]]|(e|0)>=0)break e;I[f+2>>1]=d+e;break d}H[g|0]=c;c=J[b+28>>2];f=c+8|0;J[b+28>>2]=f;e=J[b+16>>2];g=e+1|0; +J[b+16>>2]=g;I[c+10>>1]=d;I[c+8>>1]=h;J[c+12>>2]=e}e=(d^-1)+h|0;break c}xc(g,c,d);c=J[b+28>>2];f:{g:{if((J[b>>2]+1|0)!=(h|0))break g;f=I[c+2>>1];if((f|0)<=0)break g;I[c+2>>1]=d+f;e=J[b+16>>2];f=c;break f}f=c+8|0;J[b+28>>2]=f;e=J[b+16>>2];I[c+10>>1]=d;I[c+8>>1]=h;J[c+12>>2]=e}g=d+e|0;J[b+16>>2]=g;e=(d+h|0)-1|0}J[b>>2]=e;j=j-1|0;if(j)continue;break}c=J[a+120>>2]+1|0;J[a+120>>2]=c;if(J[b+20>>2]==(f|0))continue;break}J[b+4>>2]=J[P(n,12)+m>>2]}return o>>>0>>0}function o9(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,p=0,q=0,r=0,s=0,t=0,u=0;l=d-1|0;a:{b:{c:{if(!f){h=J[c>>2];f=h>>>24|0;k=(b<<2)+a|0;p=(e<<2)+c|0;g=J[p>>2];b=g>>>24|0;e=0;if((d|0)<5)break b;d=d-5|0;t=d&-4;r=d>>>2|0;u=r<<3;while(1){i=e<<3;d=h>>>16&255;j=d+f|0;s=h>>>8|0;m=s&255;n=d+m|0;J[i+a>>2]=j<<15&16711680|f<<24|(d<<8|n>>>1);o=b+f<<23&-16777216;q=g>>>8&255;f=g>>>16&255;J[i+k>>2]=o|q+(f+n|0)>>>2|d+f<<7&65280|f+(b+j|0)<<14&2147418112;j=e+1|0;f=j<<2;d=J[f+p>>2];b=h&255;i=i|4;h=J[c+f>>2];f=h>>>24|0;n=b+f|0;o=b+m|0;J[i+a>>2]= +b<<8|n>>>1|(o<<15&16711680|s<<24);g=g&255;m=(m+q<<23|g+b<<7)&-16711936|o+(g+q|0)<<14&16711680;b=d>>>24|0;J[i+k>>2]=m|b+(g+n|0)>>>2;i=(e|0)==(r|0);g=d;e=j;if(!i)continue;break}break c}h=(b<<2)+a|0;b=K[c^3];d:{if((d|0)<2){e=b;break d}f=0;while(1){g=g+1|0;e=K[g+c^3];H[a+f^3]=b;H[f+h^3]=b;d=f|1;b=b+e>>>1|0;H[d+a^3]=b;H[d+h^3]=b;f=f+2|0;b=e;if((g|0)!=(l|0))continue;break}}b=l<<1;H[b+a^3]=e;c=a;a=b|1;H[c+a^3]=e;H[b+h^3]=e;a=a+h|0;break a}j=t+4|0;e=u+8|0}h=j;e:{if((l|0)<=(h|0)){g=f;d=b;break e}while(1){h= +h+1|0;d=K[p+h^3];g=K[c+h^3];H[a+e^3]=f;j=e|1;i=f+g|0;H[j+a^3]=i>>>1;H[e+k^3]=b+f>>>1;H[j+k^3]=(b+i|0)+d>>>2;e=e+2|0;b=d;f=g;if((h|0)!=(l|0))continue;break}}b=l<<1;H[b+a^3]=g;c=a;a=b|1;H[c+a^3]=g;e=d+g>>>1|0;H[b+k^3]=e;a=a+k|0}H[a^3]=e}function baa(a){var b=0,c=0,d=0;d=999;a:{b:{if(J[a+548>>2])break b;b=kc[J[a+152>>2]](1136)|0;J[a+548>>2]=b;d=1;if(!b)break b;H[b|0]=K[a+306|0];H[b+1|0]=K[a+307|0];H[b+2|0]=K[a+308|0];H[b+3|0]=K[a+309|0];H[b+4|0]=K[a+310|0];H[b+5|0]=K[a+311|0];H[b+6|0]=K[a+312|0];I[b+ +8>>1]=L[a+1052>>1];I[b+10>>1]=L[a+1054>>1];I[b+12>>1]=L[a+1056>>1];H[b+14|0]=K[a+1058|0];I[b+16>>1]=L[a+1060>>1];H[b+18|0]=K[a+1062|0];H[b+19|0]=K[a+1080|0];J[b+20>>2]=J[a+1084>>2];J[b+24>>2]=J[a+1088>>2];H[b+28|0]=K[a+1092|0];J[b+32>>2]=J[a+1096>>2];J[b+36>>2]=J[a+1100>>2];J[b+40>>2]=J[a+1104>>2];J[b+44>>2]=J[a+1108>>2];J[b+48>>2]=J[a+1160>>2];xc(b+52|0,a+1164|0,768);J[b+820>>2]=J[a+1932>>2];xc(b+824|0,a+1936|0,256);J[b+1080>>2]=J[a+2192>>2];J[b+1084>>2]=J[a+2196>>2];J[b+1088>>2]=J[a+2200>>2];J[b+ +1092>>2]=J[a+2204>>2];J[b+1096>>2]=J[a+2208>>2];J[b+1100>>2]=J[a+2212>>2];J[b+1104>>2]=J[a+2216>>2];J[b+1108>>2]=J[a+2220>>2];J[b+1112>>2]=J[a+2224>>2];H[b+1116|0]=K[a+2228|0];c=J[a+2232>>2];J[b+1120>>2]=c;if(c){c=kc[J[a+152>>2]](c)|0;J[b+1124>>2]=c;if(!c)break b;xc(c,J[a+2236>>2],J[b+1120>>2])}I[b+1128>>1]=L[a+2240>>1];I[b+1130>>1]=L[a+2242>>1];I[b+1132>>1]=L[a+2244>>1];d=0;a=J[a+688>>2];if(!a)break a;while(1){H[a+30|0]=1;H[J[a+88>>2]+32|0]=1;a=J[a+8>>2];if(a)continue;break}break a}Jc(a,d,0,0)}return d} +function O1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(J[c>>2]<=0){J[c>>2]=344;return 0}a=J[a+8>>2];d=xc(b+260|0,a,84);c=J[a>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+4>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+8>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+12>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+16>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+20>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+24>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c= +J[a+28>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+32>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+36>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+40>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+44>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+48>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+52>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+56>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+60>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1; +c=J[a+64>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+68>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;c=J[a+72>>2];if(!c|!K[c+17|0]?0:c)J[c+4>>2]=J[c+4>>2]+1;a=J[a+76>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;H[b+34|0]=1;J[b+8>>2]=d;return b|0}function AU(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=1;a:{b:switch(b-a>>3){case 2:h=J[a>>2];e=K[h+622|0];c=b-8|0;f=J[c>>2];c:{d:{if(K[f+622|0]){if(e)break d;break c}if(e)break a}if(M[f+616>>2]>=M[h+616>>2])break a}J[a>>2]=f;J[c>>2]=h;c= +J[a+4>>2];d=a;a=b-4|0;J[d+4>>2]=J[a>>2];J[a>>2]=c;return 1;case 3:it(a,a+8|0,b-8|0);return 1;case 4:dH(a,a+8|0,a+16|0,b-8|0);return 1;case 5:cH(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}e=a+16|0;it(a,a+8|0,e);c=a+24|0;if((c|0)==(b|0))break a;e:{while(1){i=J[e>>2];d=K[i+622|0];f=c;j=J[c>>2];f:{g:{h:{if(K[j+622|0]){if(d)break h;break g}if(d)break f}if(M[j+616>>2]>=M[i+616>>2])break f}k=J[f+4>>2];J[f>>2]=0;J[f+4>>2]=0;d=f;while(1){c=e;e=J[c+4>>2];J[c>>2]=0;J[c+4>>2]= +0;J[d>>2]=i;g=J[d+4>>2];J[d+4>>2]=e;i:{if(!g)break i;d=J[g+4>>2];J[g+4>>2]=d-1;if(d)break i;kc[J[J[g>>2]+8>>2]](g);Gc(g)}j:{if((a|0)==(c|0)){c=a;break j}e=c-8|0;i=J[e>>2];g=K[i+622|0];k:{if(K[j+622|0]){d=c;if(!g)continue;break k}if(g)break j}d=c;if(M[j+616>>2]>2])continue}break}J[c>>2]=j;d=J[c+4>>2];J[c+4>>2]=k;l:{if(!d)break l;c=J[d+4>>2];J[d+4>>2]=c-1;if(c)break l;kc[J[J[d>>2]+8>>2]](d);Gc(d)}h=h+1|0;if((h|0)==8)break e}e=f;c=f+8|0;if((c|0)!=(b|0))continue;break}return 1}d=(f+8|0)==(b| +0)}return d}function YWa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Fe(b,3);To(a,b);d=O[a+264>>3]*100;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}zd(b,c);d=O[a+272>>3]*100;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}zd(b,c);d=O[a+280>>3]*100;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}zd(b,c);d=O[a+288>>3]*100;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}zd(b,c);c=J[a+8>>2];if(c&32768){Fe(b,K[a+256|0]);Fe(b,K[a+257|0]);c=J[a+8>>2]}e:{if(!(c&65536))break e;zd(b,J[a+316>>2]-J[a+312>> +2]>>3);e=J[a+312>>2];if((e|0)==J[a+316>>2])break e;c=0;while(1){d=O[(c<<3)+e>>3]*1E4;f:{if(R(d)<2147483648){e=~~d;break f}e=-2147483648}zd(b,e);c=c+1|0;e=J[a+312>>2];if(c>>>0>2]-e>>3>>>0)continue;break}}c=J[a+8>>2];if(c&131072){d=O[a+232>>3]*100;g:{if(R(d)<2147483648){c=~~d;break g}c=-2147483648}zd(b,c);c=J[a+8>>2]}if(c&262144){d=O[a+240>>3]*100;h:{if(R(d)<2147483648){c=~~d;break h}c=-2147483648}zd(b,c);c=J[a+8>>2]}if(c&1048576){Fe(b,K[a+228|0]);c=J[a+8>>2]}if(c&2097152){d=O[a+248>>3]*100; +i:{if(R(d)<2147483648){c=~~d;break i}c=-2147483648}zd(b,c);c=J[a+8>>2]}if(c&4194304){Fe(b,K[a+229|0]);c=J[a+8>>2]}if(c&8388608){d=O[a+296>>3]*100;j:{if(R(d)<2147483648){c=~~d;break j}c=-2147483648}zd(b,c);d=O[a+304>>3]*100;k:{if(R(d)<2147483648){a=~~d;break k}a=-2147483648}zd(b,a)}}function SY(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;h=fc-16|0;fc=h;a:{if(c){if(J[a+8>>2]==16)f=J[a+156>>2]+P(J[a+192>>2],5644)|0;else f=J[a+12>>2];if(M[J[a+72>>2]+16>>2]<=b>>>0)break a;a=J[d>>2];b:{if(!a){d=0;Nc(e,1,2366892, +0);break b}j=J[f+5584>>2];J[d>>2]=a-1;wd(c,h+12|0,1);i=P(b,1080)+j|0;a=J[h+12>>2];J[i+804>>2]=a>>>5;g=a&31;J[i+24>>2]=g;a=c+1|0;c:{d:{e:{f:switch(g|0){case 0:f=J[d>>2];break e;case 1:break d;default:break f}f=J[d>>2]>>>1|0}if(f>>>0>=98){J[h+4>>2]=97;J[h+8>>2]=97;J[h>>2]=f;Nc(e,2,2366928,h);g=J[i+24>>2]}if(g){g=f;if(f)break d;f=0;break c}if(!f)break c;c=0;e=P(b,1080)+j|0;while(1){wd(a,h+12|0,1);if(c>>>0<=96){g=J[h+12>>2];k=e+(c<<3)|0;J[k+32>>2]=0;J[k+28>>2]=g>>>3}a=a+1|0;c=c+1|0;if((f|0)!=(c|0))continue; +break}break c}c=0;while(1){wd(a,h+12|0,2);if(c>>>0<=96){e=(c<<3)+i|0;f=J[h+12>>2];J[e+32>>2]=f&2047;J[e+28>>2]=f>>>11}a=a+2|0;c=c+1|0;if((g|0)!=(c|0))continue;break}f=g<<1}J[d>>2]=J[d>>2]-f;d=1;if(J[i+24>>2]!=1)break b;c=P(b,1080)+j|0;e=J[c+28>>2];f=J[c+32>>2];a=1;while(1){b=c+(a<<3)|0;g=e-((a>>>0)/3|0)|0;J[b+36>>2]=(g|0)>0?g:0;J[b+32>>2]=f;J[b+40>>2]=f;g=b;b=e-((a-1>>>0)/3|0)|0;J[g+28>>2]=(b|0)>0?b:0;a=a+2|0;if((a|0)!=97)continue;break}}fc=h+16|0;return d}fa(2365733,2358254,10868,2366824);B()}fa(2366847, +2358254,10878,2366824);B()}function Rta(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;while(1){i=(h>>>2&1073741820)+a|0;e=J[i>>2];if(!e){e=J[c+28>>2];a:{if((e|0)<=4046){d=J[c+24>>2];break a}d=vc(8164);J[d>>2]=J[c+24>>2];e=0;Ac(d+4|0,0,8160);J[c+24>>2]=d}J[c+28>>2]=e+34;f=d;d=e<<1;e=(f+((f-d&2)+d|0)|0)+4|0;J[i>>2]=e}f=(h&15)<<2;d=J[f+e>>2];if(!d){d=J[c+28>>2];b:{if((d|0)<=4064){g=J[c+24>>2];break b}g=vc(8164);J[g>>2]=J[c+24>>2];d=0;Ac(g+4|0,0,8160);J[c+24>>2]=g;e=J[i>>2]}J[c+28>>2]=d+16; +J[e+f>>2]=((d<<1)+g|0)+4;d=J[J[i>>2]+f>>2]}e=j<<2;I[d>>1]=L[(J[e+2427856>>2]<<1)+b>>1];I[d+2>>1]=L[(J[(e|4)+2427856>>2]<<1)+b>>1];I[d+4>>1]=L[(J[(e|8)+2427856>>2]<<1)+b>>1];I[d+6>>1]=L[(J[(e|12)+2427856>>2]<<1)+b>>1];I[d+8>>1]=L[(J[(e|16)+2427856>>2]<<1)+b>>1];I[d+10>>1]=L[(J[(e|20)+2427856>>2]<<1)+b>>1];I[d+12>>1]=L[(J[(e|24)+2427856>>2]<<1)+b>>1];I[d+14>>1]=L[(J[(e|28)+2427856>>2]<<1)+b>>1];I[d+16>>1]=L[(J[(e|32)+2427856>>2]<<1)+b>>1];I[d+18>>1]=L[(J[(e|36)+2427856>>2]<<1)+b>>1];I[d+20>>1]=L[(J[(e| +40)+2427856>>2]<<1)+b>>1];I[d+22>>1]=L[(J[(e|44)+2427856>>2]<<1)+b>>1];I[d+24>>1]=L[(J[(e|48)+2427856>>2]<<1)+b>>1];I[d+26>>1]=L[(J[(e|52)+2427856>>2]<<1)+b>>1];I[d+28>>1]=L[(J[(e|56)+2427856>>2]<<1)+b>>1];I[d+30>>1]=L[(J[(e|60)+2427856>>2]<<1)+b>>1];j=j+16|0;h=h+1|0;if((h|0)!=64)continue;break}}function nba(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;a:{if((i|0)>0){k=d+1>>1;m=e+1>>1;q=f+1>>1;n=g+1>>1;nba(a,b,c,k,m,q,n,h,i-1|0);j=J[h>>2];o=(c-m|0)+n|0;J[j+32>>2]=o;J[j+24>>2]=c;p=(b-k|0)+ +q|0;J[j+20>>2]=p;J[j+12>>2]=n;f=f>>1;J[j+8>>2]=f;J[j+4>>2]=m;d=d>>1;J[j>>2]=d;J[j+16>>2]=2;m=(f-d|0)+p|0;J[j+28>>2]=m;c=J[a>>2]-i<<3;n=J[a+4>>2];l=O[c+J[n+12>>2]>>3]*O[c+J[n+8>>2]>>3]*8192;b:{if(R(l)<2147483648){i=~~l;break b}i=-2147483648}J[j+36>>2]=i;J[h>>2]=j+40;g=g>>1;e=e>>1;i=(g-e|0)+o|0;J[j+72>>2]=i;J[j+68>>2]=p;J[j- -64>>2]=o;J[j+60>>2]=b;J[j+52>>2]=g;J[j+48>>2]=q;J[j+44>>2]=e;J[j+40>>2]=k;J[j+56>>2]=1;b=J[a+4>>2];l=O[c+J[b+8>>2]>>3]*O[c+J[b+12>>2]>>3]*8192;c:{if(R(l)<2147483648){b=~~l;break c}b= +-2147483648}J[j+76>>2]=b;k=j+80|0;J[h>>2]=k;J[j+112>>2]=i;J[j+108>>2]=m;J[j+104>>2]=o;J[j+100>>2]=p;J[j+92>>2]=g;J[j+88>>2]=f;J[j+84>>2]=e;J[j+80>>2]=d;J[j+96>>2]=3;l=O[c+J[J[a+4>>2]+12>>2]>>3];l=l*l*8192;if(R(l)<2147483648){J[j+116>>2]=~~l;break a}J[j+116>>2]=-2147483648;break a}k=J[h>>2];J[k+24>>2]=c;J[k+20>>2]=b;J[k+12>>2]=g;J[k+8>>2]=f;J[k+4>>2]=e;J[k>>2]=d;J[k+16>>2]=0;J[k+32>>2]=(c-e|0)+g;J[k+28>>2]=(b-d|0)+f;l=O[(J[J[a+4>>2]+8>>2]+(J[a>>2]<<3)|0)+((i^-1)<<3)>>3];l=l*l*8192;d:{if(R(l)<2147483648){a= +~~l;break d}a=-2147483648}J[k+36>>2]=a}J[h>>2]=k+40}function MTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;J[c>>2]=13;d=J[a+28>>2];a:{if(!J[d+492>>2]){b=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,834441,0);break a}if(J[a+32>>2]){f=J[a+8>>2];kc[J[J[f>>2]+156>>2]](f,d);J[a+32>>2]=0}if(J[a+100>>2]){d=J[a+8>>2];kc[J[J[d>>2]+232>>2]](d,J[a+28>>2]);d=J[J[a+28>>2]+492>>2];h=kc[J[J[d>>2]+12>>2]](d)|0;f=J[b+8>> +2];if(J[f+12>>2]>0){b=0;while(1){Sc(f,b,c,0);e=J[c>>2];c:{if(e-3>>>0>=4294967294){d=J[a+28>>2];g=O[d+496>>3]*(((e|0)==1?+J[c+8>>2]:O[c+8>>3])*-.001);d:{if(h){a$(d,0,g);break d}a$(d,O[d+568>>3]*g,0)}d=J[a+8>>2];kc[J[J[d>>2]+188>>2]](d,J[a+28>>2],J[c>>2]==1?+J[c+8>>2]:O[c+8>>3]);break c}if((e|0)==3){UB(a,J[c+8>>2]);break c}d=-1;e=J[a+108>>2];e:{if(!e)break e;e=J[e+4>>2];if(J[e+8>>2]==13)break e;d=J[e+16>>2];d=kc[J[J[d>>2]+52>>2]](d)|0}Cc(1,d,834684,0)}yc(c);b=b+1|0;if((b|0)>2])continue;break}}b= +J[a+8>>2];kc[J[J[b>>2]+236>>2]](b,J[a+28>>2]);break a}d=J[b+8>>2];if(J[d+12>>2]<=0)break a;b=0;while(1){Sc(d,b,c,0);f:{if(J[c>>2]!=3)break f;f=J[c+8>>2];e=J[a+8>>2];if(!(kc[J[J[e>>2]+32>>2]](e)|0))break f;e=J[a+8>>2];kc[J[J[e>>2]+268>>2]](e,J[f>>2])}yc(c);b=b+1|0;if((b|0)>2])continue;break}}fc=c+16|0}function nZ(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;c=J[a+8>>2];e=c+J[a+4>>2]|0;a:{if(!J[a+12>>2]){if((e|0)<2)break a;i=(c<<2)+b|0;c=J[i>>2];d=J[b>>2]-(c+1>>1)|0;h=J[a>>2]; +b:{if(e>>>0<4){f=c;break b}k=(e-4>>>1|0)+1|0;a=1;while(1){f=a<<2;l=J[f+b>>2];f=J[f+i>>2];m=g<<2;J[m+h>>2]=d;j=d;d=l-((c+f|0)+2>>2)|0;J[h+(m|4)>>2]=(j+d>>1)+c;g=g+2|0;j=(a|0)!=(k|0);c=f;a=a+1|0;if(j)continue;break}}J[h+(g<<2)>>2]=d;c=e<<2;g=c+h|0;if(e&1){j=e-1|0;a=J[(j<<1&-4)+b>>2]-(f+1>>1)|0;J[h+(j<<2)>>2]=a;d=a+d>>1;a=-2}else a=-1;J[g+(a<<2)>>2]=d+f;xc(b,h,c);return}c:switch(e-1|0){case 0:J[b>>2]=J[b>>2]/2;return;case 1:a=J[a>>2];c=(c<<2)+b|0;d=J[b>>2]-(J[c>>2]+1>>1)|0;J[a+4>>2]=d;J[a>>2]=d+J[c>> +2];c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;return;default:break c}if((e|0)<3)break a;i=J[a>>2];k=(c<<2)+b|0;c=J[k+4>>2];a=J[k>>2];d=J[b>>2]-((c+a|0)+2>>2)|0;J[i>>2]=d+a;a=e|-2;l=e-2|0;d:{if((a+l|0)+1>>>0<2){g=c;f=1;break d}m=((a+e|0)-3>>>1|0)+1|0;f=1;a=1;while(1){o=J[(a<<2)+b>>2];j=a+1|0;g=J[(j<<2)+k>>2];n=(f<<2)+i|0;J[n>>2]=d;h=d;d=o-((c+g|0)+2>>2)|0;J[n+4>>2]=(h+d>>1)+c;f=f+2|0;h=(a|0)!=(m|0);c=g;a=j;if(h)continue;break}}J[(f<<2)+i>>2]=d;e:{if(!(e&1)){a=J[((e<<1&-4)+b|0)-4>>2]-(g+1>>1)|0;J[(l<< +2)+i>>2]=(d+a>>1)+g;break e}a=d+g|0}c=e<<2;J[(c+i|0)-4>>2]=a;xc(b,i,c)}}function ihb(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;h=J[J[J[a+4>>2]+96>>2]+28>>2];i=Ig(J[J[J[b>>2]+428>>2]+(c<<2)>>2],0,10);a:{b:{c=J[a+160>>2];e=J[c+156>>2];if(!e)break b;f=J[e+4>>2];if(!(f&1))break b;g=J[c+88>>2];if(g){e=J[J[c+4>>2]+100>>2];kc[J[e+8>>2]](e,g);e=J[c+156>>2];f=J[e+4>>2]}J[c+88>>2]=0;J[e+4>>2]=f&-2;break a}J[c+88>>2]=0}J[c+24>>2]=0;J[c+28>>2]=0;J[c+152>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+40>> +2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+60>>2]=0;Ac(c+72|0,0,72);c=kc[J[h+72>>2]](J[a+160>>2],J[b+44>>2],i,d|8)|0;if(!c){b=J[a+160>>2];d=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=d;d=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=d;d=J[b+44>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=d;d=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=d;J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];J[a+72>>2]=J[b+72>>2];J[a+124>>2]=J[b+124>>2];d=J[b+120>>2];J[a+116>>2]=J[b+116>>2];J[a+120>>2]=d;d=J[b+112>> +2];J[a+108>>2]=J[b+108>>2];J[a+112>>2]=d;d=J[b+96>>2];J[a+92>>2]=J[b+92>>2];J[a+96>>2]=d;d=J[b+88>>2];J[a+84>>2]=J[b+84>>2];J[a+88>>2]=d;d=J[b+80>>2];J[a+76>>2]=J[b+76>>2];J[a+80>>2]=d;J[a+100>>2]=J[b+100>>2];J[a+104>>2]=J[b+104>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=J[b+132>>2];J[a+136>>2]=J[b+136>>2];J[a+140>>2]=J[b+140>>2]}return c|0}function g5a(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(J[b+4>>2]){d=J[b>>2];c=J[d+24>>2];f=J[d+16>>2];if((c|0)!=(f|0)){e=J[d+8>>2];g=f-1|0; +a:{b:{if((g|0)==(c|0)){h=O[e+(c<<4)>>3];break b}j=e+(c<<4)|0;h=O[j>>3];g=e+(g<<4)|0;if(h!=O[g>>3])break b;if(O[g+8>>3]==O[j+8>>3])break a}i=O[(e+(c<<4)|0)+8>>3];c=(f+J[d+12>>2]|0)-1|0;H[c|0]=K[c|0]&253;c=J[d+20>>2];e=J[d+16>>2];c:{if((c|0)>(e|0)){c=J[d+12>>2];break c}if(!c){J[d+20>>2]=32;c=32}if((c|0)<=(e|0)){while(1){c=c<<1;if((e|0)>=(c|0))continue;break}J[d+20>>2]=c}k=d,l=fe(J[d+8>>2],c<<4),J[k+8>>2]=l;c=fe(J[d+12>>2],J[d+20>>2]);J[d+12>>2]=c;e=J[d+16>>2]}f=J[d+8>>2]+(e<<4)|0;O[f+8>>3]=i;O[f>>3]= +h;H[c+e|0]=2;J[d+16>>2]=J[d+16>>2]+1;c=J[d+24>>2]}c=J[d+12>>2]+c|0;H[c|0]=K[c|0]|4;c=(J[d+12>>2]+J[d+16>>2]|0)-1|0;H[c|0]=K[c|0]|4;J[d+24>>2]=J[d+16>>2]}J[b+4>>2]=0}h=+J[a>>2]*.015625;i=+J[a+4>>2]*.015625;a=J[b>>2];d=J[a+16>>2];if(J[a+24>>2]!=(d-1|0)){b=J[a+20>>2];d:{if((d|0)<(b|0)){b=J[a+12>>2];break d}if(!b){J[a+20>>2]=32;b=32}if((b|0)<=(d|0)){while(1){b=b<<1;if((d|0)>=(b|0))continue;break}J[a+20>>2]=b}k=a,l=fe(J[a+8>>2],b<<4),J[k+8>>2]=l;b=fe(J[a+12>>2],J[a+20>>2]);J[a+12>>2]=b;d=J[a+16>>2]}c= +J[a+8>>2]+(d<<4)|0;O[c+8>>3]=i;O[c>>3]=h;H[b+d|0]=3;b=J[a+16>>2];J[a+24>>2]=b;J[a+16>>2]=b+1}return 0}function pib(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+548>>2];if(b){if(b)kc[J[c+8>>2]](c,b);J[a+544>>2]=0;J[a+548>>2]=0}Xx(a);J[a+532>>2]=0;b=J[a+132>>2];if(b)kc[J[c+8>>2]](c,b);J[a+132>>2]=0;b=J[a+136>>2];if(b)kc[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+140>>2];if(b)kc[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+144>>2];if(b)kc[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+148>>2];if(b)kc[J[c+8>>2]](c,b);J[a+ +148>>2]=0;b=J[a+432>>2];if(b)kc[J[c+8>>2]](c,b);J[a+432>>2]=0;b=J[a+428>>2];if(b)kc[J[c+8>>2]](c,b);J[a+428>>2]=0;b=J[a+424>>2];if(b)kc[J[c+8>>2]](c,b);J[a+424>>2]=0;b=J[a+408>>2];if(b)kc[J[c+8>>2]](c,b);J[a+408>>2]=0;b=J[a+412>>2];if(b)kc[J[c+8>>2]](c,b);J[a+412>>2]=0;dE(J[a+416>>2],c);b=J[a+416>>2];if(b)kc[J[c+8>>2]](c,b);J[a+416>>2]=0;b=J[a+392>>2];if(b)kc[J[c+8>>2]](c,b);J[a+392>>2]=0;b=J[a+396>>2];if(b)kc[J[c+8>>2]](c,b);J[a+396>>2]=0;b=J[a+400>>2];if(b)kc[J[c+8>>2]](c,b);J[a+400>>2]=0;b=J[a+ +384>>2];if(b)kc[J[c+8>>2]](c,b);J[a+384>>2]=0;b=J[a+388>>2];if(b)kc[J[c+8>>2]](c,b);J[a+388>>2]=0;b=J[a+364>>2];if(b)kc[J[c+8>>2]](c,b);J[a+364>>2]=0;b=J[a+496>>2];if(b){d=J[b+36>>2];if(d)kc[J[c+8>>2]](c,d);J[b+36>>2]=0;J[b+40>>2]=0;d=J[b+28>>2];if(d)kc[J[c+8>>2]](c,d);J[b+28>>2]=0;J[b+32>>2]=0;if(b)kc[J[c+8>>2]](c,b)}J[a+20>>2]=0;J[a+24>>2]=0}}function bL(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;f=J[a+204>>2];a:{if(f){i=J[J[a+388>>2]+32>>2];e=J[f+P(i,36)>>2];J[a+288>>2]=e;b:{if((e| +0)<=0)break b;c=J[a+84>>2];if(e>>>0>=4){m=e&-4;h=a+292|0;d=(f+P(i,36)|0)+4|0;while(1){g=b<<2;J[g+h>>2]=c+P(J[d+g>>2],88);j=g|4;J[j+h>>2]=c+P(J[d+j>>2],88);j=g|8;J[j+h>>2]=c+P(J[d+j>>2],88);g=g|12;J[g+h>>2]=c+P(J[d+g>>2],88);b=b+4|0;k=k+4|0;if((m|0)!=(k|0))continue;break}}e=e&3;if(!e)break b;h=f+P(i,36)|0;while(1){d=b<<2;J[(d+a|0)+292>>2]=c+P(J[(d+h|0)+4>>2],88);b=b+1|0;l=l+1|0;if((e|0)!=(l|0))continue;break}}if(!J[a+264>>2])break a;b=f+P(i,36)|0;J[a+360>>2]=J[b+20>>2];J[a+364>>2]=J[b+24>>2];J[a+368>> +2]=J[b+28>>2];J[a+372>>2]=J[b+32>>2];return}c=J[a+76>>2];if((c|0)>=5){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=27;J[J[a>>2]+28>>2]=4;kc[J[J[a>>2]>>2]](a);c=J[a+76>>2]}J[a+288>>2]=c;if((c|0)<=0)break a;f=J[a+84>>2];b=0;if(c>>>0>=4){h=c&-4;e=a+292|0;while(1){J[e+(b<<2)>>2]=f+P(b,88);d=b|1;J[e+(d<<2)>>2]=f+P(d,88);d=b|2;J[e+(d<<2)>>2]=f+P(d,88);d=b|3;J[e+(d<<2)>>2]=f+P(d,88);b=b+4|0;g=g+4|0;if((h|0)!=(g|0))continue;break}}c=c&3;if(!c)break a;while(1){J[((b<<2)+a|0)+292>>2]=f+P(b,88);b=b+1|0;i=i+1|0;if((c|0)!= +(i|0))continue;break}}J[a+360>>2]=0;J[a+368>>2]=0;b=J[a+376>>2];J[a+364>>2]=P(b,b)-1;J[a+372>>2]=0}function W5a(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;j=fc-16|0;fc=j;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;b=J[b+168>>2];if(b){l=kc[J[J[b>>2]+20>>2]](b)|0;b=0;f=j+4|0;J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;k=J[l+8>>2];if((k|0)!=J[l+12>>2])while(1){h=J[k>>2];d=K[h+11|0];g=d<<24>>24<0;i=K[c+11|0];e=i<<24>>24<0;a:{d=g?J[h+4>>2]:d;if((d|0)!=((e?J[c+4>>2]:i)|0))break a;if(d)if(qd(g?J[h>> +2]:h,e?J[c>>2]:c,d))break a;if(J[f+8>>2]!=(b|0)){J[b>>2]=h;b=b+4|0;J[f+4>>2]=b;break a}b:{c:{d:{e:{f:{g=J[f>>2];e=b-g|0;m=e>>2;d=m+1|0;g:{if(d>>>0>=1073741824){J[699344]=0;$(2972,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;break b}i=e>>1;d=e>>>0>=2147483644?1073741823:d>>>0>>0?i:d;if(!d){i=0;break e}if(d>>>0<1073741824)break f;J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break b}b=Z()|0;g=J[f>>2];break c}J[699344]=0;i=_(4,d<<2)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d}e=(m<< +2)+i|0;J[e>>2]=h;h=e+4|0;if((b|0)!=(g|0)){while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(g|0))continue;break}b=J[f>>2]}J[f+8>>2]=(d<<2)+i;J[f+4>>2]=h;J[f>>2]=e;if(b)uc(b);b=h;break a}b=Z()|0}if(g){J[f+4>>2]=g;uc(g)}ba(b|0);B()}B()}k=k+4|0;if((k|0)!=J[l+12>>2])continue;break}J[a>>2]=J[j+4>>2];J[a+4>>2]=J[j+8>>2];J[a+8>>2]=J[j+12>>2]}fc=j+16|0}function MK(a){var b=0,c=0,d=0;b=1501;c=J[698583];d=c;a:{b:{c:switch(c|0){case 6:b=1502;break b;case 8:b=1503;break b;case 9:b=1504;break b;case 10:b=1505; +break b;case 11:b=1506;break b;case 12:b=1507;break b;case 16:b=1508;break b;case 18:b=1509;break b;case 20:b=1510;break b;case 21:b=1511;break b;case 22:b=1512;break b;case 26:b=1513;break b;case 27:b=1514;break b;case 28:b=1515;break b;case 29:b=1516;break b;case 31:b=1517;break b;case 33:b=1518;break b;case 34:b=1519;break b;case 35:b=1520;break b;case 37:b=1521;break b;case 41:b=1522;break b;case 43:b=1523;break b;case 44:b=1524;break b;case 45:b=1525;break b;case 46:b=1526;break b;case 48:b= +1527;break b;case 51:b=1528;break b;case 52:b=1529;break b;case 54:b=1530;break b;case 55:b=1531;break b;case 138:b=1532;break b;case 59:b=1533;break b;case 60:b=1534;break b;case 63:b=1535;break b;case 64:b=1536;break b;case 68:b=1537;break b;case 69:b=1538;break b;case 70:b=1539;break b;case 71:b=1540;break b;case 73:b=1541;break b;case 75:b=1542;break b;case 57:b=1550;break b;case 30:b=1551;break b;case 14:b=1552;break b;case 40:b=1553;break b;case 3:b=1554;break b;case 7:b=1555;break b;case 5:b= +1556;break b;case 0:break a;case 2:break b;default:break c}b=1500}d=b-1500|0;c=b}dL(c,J[(d<<2)+774784>>2],a)}function IE(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(J[a+92>>2])Ak(a+92|0);a:{if(!a)break a;b=J[a>>2];if(!b)break a;SN(b);Qi(b+28|0);g=b+68|0;b:{if(!g)break b;c=J[g>>2];if(!c)break b;c:{f=J[c>>2];if((f|0)<=0)break c;d=J[c+8>>2];if(!d)break c;while(1){d:{if(!d)break d;i=(h<<2)+d|0;e=J[i>>2];if(!e)break d;d=J[e+8>>2]-1|0;J[e+8>>2]=d;if(!d){if(J[e>>2]>0){d=0;while(1){Fd(J[e+12>>2]+(d<< +2)|0);d=d+1|0;if((d|0)>2])continue;break}}uc(J[e+12>>2]);mp(e+16|0);uc(e);f=J[c>>2]}J[i>>2]=0}h=h+1|0;if((f|0)<=(h|0))break c;d=J[c+8>>2];continue}}uc(J[c+8>>2]);mp(c+12|0);uc(c);J[g>>2]=0}Ak(b+72|0);Ak(b+76|0);d=0;g=b+80|0;e:{if(!g)break e;e=J[g>>2];if(!e)break e;f:{f=J[e>>2];if((f|0)<=0)break f;c=J[e+8>>2];if(!c)break f;while(1){g:{if(!c)break g;h=(d<<2)+c|0;c=J[h>>2];if(!c)break g;i=J[c+8>>2];J[c+8>>2]=i-1;if((i|0)<=1){f=J[c+20>>2];if(f)uc(f);uc(c);f=J[e>>2]}J[h>>2]=0}d=d+1|0;if((f|0)<=(d| +0))break f;c=J[e+8>>2];continue}}uc(J[e+8>>2]);uc(e);J[g>>2]=0}Qi(b+84|0);Qi(b+48|0);pp(b+88|0);pp(b+92|0);Qi(b+96|0);Qi(b+100|0);pp(b+104|0);pp(b+108|0);uc(b);J[a>>2]=0}b=J[a+100>>2];if(b){J[a+104>>2]=b;uc(b)}uy(a+76|0,J[a+80>>2]);b=J[a+64>>2];if(b){J[a+68>>2]=b;uc(b)}b=J[a+52>>2];if(b){J[a+56>>2]=b;uc(b)}pO(a+36|0,J[a+40>>2]);oO(a+24|0,J[a+28>>2]);uc(a)}function MQa(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;a=xc(a,b,672);if(J[a+116>>2]){d=J[b+116>>2];l=a,m=kc[J[J[d>>2]+ +8>>2]](d)|0,J[l+116>>2]=m}if(J[a+120>>2]){d=J[b+120>>2];l=a,m=kc[J[J[d>>2]+8>>2]](d)|0,J[l+120>>2]=m}if(J[a+380>>2]){d=J[b+380>>2];l=a,m=kc[J[J[d>>2]+8>>2]](d)|0,J[l+380>>2]=m}if(J[a+384>>2]){d=J[b+384>>2];l=a,m=kc[J[J[d>>2]+8>>2]](d)|0,J[l+384>>2]=m}if(J[a+424>>2]){d=J[b+424>>2];l=a,m=kc[J[J[d>>2]+8>>2]](d)|0,J[l+424>>2]=m}if(J[a+428>>2]){d=J[b+428>>2];l=a,m=kc[J[J[d>>2]+8>>2]](d)|0,J[l+428>>2]=m}if(J[a+432>>2]){d=J[b+432>>2];l=a,m=kc[J[J[d>>2]+8>>2]](d)|0,J[l+432>>2]=m}if(J[a+436>>2]){d=J[b+436>> +2];l=a,m=kc[J[J[d>>2]+8>>2]](d)|0,J[l+436>>2]=m}d=J[a+452>>2];if((d|0)>0){d=Gd(d,8);J[a+448>>2]=d;xc(d,J[b+448>>2],J[a+452>>2]<<3)}a:{if(c){b=J[b+596>>2];c=vc(40);h=J[b+24>>2];d=J[b+28>>2];f=J[b>>2];i=O[b+8>>3];j=O[b+16>>3];e=J[b+32>>2];J[c+32>>2]=e;O[c+16>>3]=j;O[c+8>>3]=i;J[c>>2]=f;J[c+28>>2]=d;b=0;J[699344]=0;f=aa(3551,e|0,4)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[c+24>>2]=f;if((d|0)>0)while(1){e=b<<2;g=J[e+h>>2];J[699344]=0;g=_(3603,g|0)|0;k=J[699344];J[699344]=0;if((k|0)==1)break a; +J[e+f>>2]=g;b=b+1|0;if((d|0)!=(b|0))continue;break}J[a+596>>2]=c}J[a+668>>2]=0;return a|0}a=Z()|0;uc(c);ba(a|0);B()}function jfb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{d:{b=J[b>>2];if((b|0)<=12287){if((b|0)==32)break d;if((b|0)!=64)break a;I5(J[a+16>>2]);J[a+640>>2]=0;break a}if((b|0)==12288)break c;if((b|0)==16384)break b;if((b|0)!=20480)break a;A5(J[a+16>>2]);break a}H[J[J[a+20>>2]+4>>2]+24|0]=J[a+636>>2]&1;b=J[a+16>>2];d=J[a+20>>2];g=(J[a+636>>2]^-1)>>>8&1;f=fc-16|0;fc=f;c=wk(f+12|0); +e=K[b+2896|0]?c:J[J[d+4>>2]+28>>2]?c:b+56|0;J[699344]=0;ha(2282,b|0,d|0,e|0,g|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){Jd(c);fc=f+16|0;break e}a=Z()|0;Jd(c);ba(a|0);B()}break a}f:{b=J[a+16>>2];d=J[b+1604>>2];if(!d)break f;f=J[b+1588>>2];g=J[b+1600>>2];e=d-1|0;c=g+e|0;c=J[J[f+(c>>>8&16777212)>>2]+((c&1023)<<2)>>2];J[b+1604>>2]=e;e=J[b+1592>>2];if((((e|0)!=(f|0)?(e-f<<8)-1|0:0)-(d+g|0)|0)+1>>>0>=2048){uc(J[e-4>>2]);J[b+1592>>2]=J[b+1592>>2]-4}g:{if(J[c+8>>2]){d=J[c+8>>2];J[c+8>>2]=0;kc[J[J[c>>2]+ +12>>2]](c)|0;c=J[b+1576>>2];if(c){kc[J[J[c>>2]+12>>2]](c)|0;J[b+1576>>2]=0}c=vc(20);J[699344]=0;H[c+16|0]=0;J[c+12>>2]=0;J[c+8>>2]=d;J[c+4>>2]=1;J[c>>2]=351284;d=J[699344];J[699344]=0;if((d|0)==1)break g;J[b+1576>>2]=c;xD(b)}break f}a=Z()|0;uc(c);ba(a|0);B()}break a}b=J[a+16>>2];A5(b);c=J[b+1576>>2];if(c){kc[J[J[c>>2]+12>>2]](c)|0;J[b+1576>>2]=0}}J[a+632>>2]=0;return 0}function _Y(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=fc-256|0;fc=d;if(a){ae(2370099,17,1,c);J[d+240>>2]=J[a>>2];md(c,2370117, +d+240|0);J[d+224>>2]=J[a+4>>2];md(c,2370130,d+224|0);J[d+208>>2]=J[a+8>>2];md(c,2370142,d+208|0);J[d+192>>2]=J[a+16>>2];md(c,2370159,d+192|0);if((b|0)>0)while(1){e=J[a+5584>>2];J[d+176>>2]=h;md(c,2370170,d+176|0);e=e+P(h,1080)|0;J[d+160>>2]=J[e>>2];md(c,2370184,d+160|0);J[d+144>>2]=J[e+4>>2];md(c,2370198,d+144|0);J[d+128>>2]=J[e+8>>2];md(c,2370221,d+128|0);J[d+112>>2]=J[e+12>>2];md(c,2370237,d+112|0);J[d+96>>2]=J[e+16>>2];md(c,2370253,d+96|0);J[d+80>>2]=J[e+20>>2];md(c,2370270,d+80|0);ae(2370285, +23,1,c);f=0;if(J[e+4>>2])while(1){g=e+(f<<2)|0;i=J[g+812>>2];J[d+68>>2]=J[g+944>>2];J[d+64>>2]=i;md(c,2370309,d- -64|0);f=f+1|0;if(f>>>0>2])continue;break}bi(10,c);J[d+48>>2]=J[e+24>>2];md(c,2370318,d+48|0);J[d+32>>2]=J[e+804>>2];md(c,2370333,d+32|0);g=1;ae(2370350,20,1,c);a:{if(J[e+24>>2]!=1){f=J[e+4>>2];if((f|0)<=0)break a;g=P(f,3)-2|0}f=0;while(1){i=e+(f<<3)|0;j=d,k=AEb(J[i+28>>2],J[i+32>>2],32),J[j+16>>2]=k;J[d+20>>2]=jc;md(c,2370309,d+16|0);f=f+1|0;if((g|0)!=(f|0))continue;break}}bi(10, +c);J[d>>2]=J[e+808>>2];md(c,2370371,d);ae(2370388,5,1,c);h=h+1|0;if((h|0)!=(b|0))continue;break}ae(2370394,4,1,c)}fc=d+256|0}function M0a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-384|0;fc=d;e=vc(c);J[a>>2]=e;b=xc(e,b,c);J[a+4>>2]=c;e=vc(24);J[e+4>>2]=c;J[e>>2]=b;b=d+128|0;tL(b,e);h=a+8|0;c=M2(b);a:{b:{c:{d:{while(1){Ax(c,d+48|0,0,0);e:{if(!J[d+76>>2])break e;b=d+128|0;f:{if(!Ax(c,0,b,256)){b=Yc(b);if(b>>>0>=2147483632)break a;g:{if(b>>>0<=10){H[d+23|0]=b;f=d+12|0;break g}g=(b|15)+1|0; +f=vc(g);J[d+20>>2]=g|-2147483648;J[d+12>>2]=f;J[d+16>>2]=b}b=xc(f,d+128|0,b)+b|0;break f}H[d+23|0]=0;b=d+12|0}H[b|0]=0;h:{if(H[d+23|0]>=0){J[d+32>>2]=J[d+20>>2];b=J[d+16>>2];J[d+24>>2]=J[d+12>>2];J[d+28>>2]=b;break h}J[699344]=0;ca(2838,d+24|0,J[d+12>>2],J[d+16>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break d}J[d+36>>2]=0;J[d+40>>2]=0;b=J[a+12>>2];i:{if(b>>>0>2]){f=J[d+28>>2];J[b>>2]=J[d+24>>2];J[b+4>>2]=f;J[b+8>>2]=J[d+32>>2];J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;f=J[d+40>>2];J[b+12>>2]= +J[d+36>>2];J[b+16>>2]=f;J[a+12>>2]=b+20;break i}J[699344]=0;da(3198,h|0,d+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;if(H[d+35|0]>=0)break i;uc(J[d+24>>2])}if(H[d+23|0]>=0)break e;uc(J[d+12>>2])}if(!wL(c))continue;break}UC(c);uc(e);fc=d+384|0;return}c=Z()|0;break b}c=Z()|0;if(H[d+35|0]>=0)break b;uc(J[d+24>>2])}if(H[d+23|0]<0)uc(J[d+12>>2]);ba(c|0);B()}_d(d+12|0);B()}function zr(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=fc-192|0;fc=e;a:{if(!b)while(1){b=K[c|0];if(!b){f=d;break a}H[d+e|0]=b;f=d| +1;b=K[c+1|0];if(!b)break a;H[e+f|0]=b;f=d|2;b=K[c+2|0];if(!b)break a;H[e+f|0]=b;f=191;b=d|3;if((b|0)==191)break a;f=K[c+3|0];if(f){H[b+e|0]=f;d=d+4|0;c=c+4|0;continue}else{f=b;break a}}while(1){g=K[c|0];b:{c:{if((g|0)!=64){d=c;if(g)break c;break a}g=K[c+1|0];if(g){d=c+1|0;i=0;while(1){h=i;if((h|0)!=9){i=h+1|0;if(K[h+61537|0]!=(g|0))continue}break}if(h>>>0>7)break c;d:{if(f>>>0>190)break d;h=(h<<5)+b|0;i=191-f|0;d=0;while(1){g=K[d+h|0];if(!g|d>>>0>31)break d;H[e+f|0]=g;f=f+1|0;d=d+1|0;if((i|0)!=(d| +0))continue;break}f=191}c=c+2|0;break b}g=64;d=c}H[e+f|0]=g;f=f+1|0;c=d+1|0}if(f>>>0<191)continue;break}}d=0;H[e+f|0]=0;e:{if(!a)break e;f:{if(K[e|0]!=35)break f;d=1;if(K[e+1|0]==32)break f;d=2;if(K[e+2|0]==32)break f;d=3;if(K[e+3|0]==32)break f;d=4;if(K[e+4|0]==32)break f;d=5;if(K[e+5|0]==32)break f;d=6;if(K[e+6|0]==32)break f;d=7;if(K[e+7|0]==32)break f;d=8;if(K[e+8|0]==32)break f;d=9;if(K[e+9|0]==32)break f;d=10;if(K[e+10|0]==32)break f;d=11;if(K[e+11|0]==32)break f;d=12;if(K[e+12|0]==32)break f; +d=13;if(K[e+13|0]==32)break f;d=K[e+14|0]==32?14:15}b=J[a+164>>2];if(!b)break e;kc[b|0](a,d|e)}fc=e+192|0}function sH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;a:{b:{c:{d:{e:{if(!K[b+32|0]){Sp(b,1);if(!K[b+32|0])break e}J[699344]=0;ca(5401,c+4|0,b|0,0);b=J[699344];J[699344]=0;if((b|0)==1)break c;b=J[c+4>>2];f:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break f;a=Z()|0;break b}J[c+12>>2]=0}J[699344]=0;aa(5153,a+8|0,c+12|0)|0;b=J[699344];J[699344]= +0;g:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break g;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g}break a}a=Z()|0;zc(c+12|0);break b}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2743576)>>2];wc(c+4|0);Sp(a,1);break d}d=a+8|0;b=J[b+8>>2];h:{if(b){kc[J[J[b>>2]+28>>2]](c+4|0,b,1);break h}J[c+4>>2]=0}J[699344]=0;aa(5153,d|0,c+4|0)|0;b=J[699344];J[699344]=0;i:{if((b|0)!=1){b=J[c+4>>2];J[c+4>>2]= +0;if(!b)break i;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break i}break a}a=Z()|0;zc(c+4|0);ba(a|0);B()}b=J[a+8>>2];b=J[(b?b+12|0:2743576)>>2];H[a+32|0]=0;J[a+12>>2]=b}fc=c+16|0;return a|0}ba(Z()|0);B()}wc(c+4|0);ba(a|0);B()}ea(0)|0;Bc();B()}function pub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a; +if(!(1<>>0<=5:0)){Jc(a,1028,0,0);return 1028}b:{c:{if(c){f=K[d|0]|K[d+1|0]<<8;f=f<<8|f>>>8;I[a+1150>>1]=f;if(c>>>0<=2){I[a+1152>>1]=f;g=f;break c}g=K[d+2|0]|K[d+3|0]<<8;g=g<<8|g>>>8;I[a+1152>>1]=g;if(c>>>0<5)break c;i=K[d+4|0];H[a+1148|0]=i;break b}I[a+1150>>1]=1;I[a+1152>>1]=65535;i=2;H[a+1148|0]=2;f=1;g=65535;break b}H[a+1148|0]=0}h=0;d:{if(!K[a+114|0])break d;h=f&65535;j=g&65535;f=kc[J[a+152>>2]](36)|0;if(!f){Jc(a,1,0,0);h=1;break d}J[f+4>>2]=1058;J[f>>2]=1059;g=J[a+700>>2];e:{if(g){J[g+ +8>>2]=f;break e}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+32|0]=i;I[f+30>>1]=j;I[f+28>>1]=h;h=0}f=h;f:{if(f)break f;f=Dy(a);if(f)break f;g:{if(!K[a+112|0])break g;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break f;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break g;b=K[d|0]|K[d+1|0]<<8;b=b<<8|b>>>8;I[a+34>>1]=b;if(c>>>0<=2){I[a+36>>1]=b;break g}b=K[d+2|0]|K[d+3|0]<<8;I[a+36>>1]=b<<8| +b>>>8;if(c>>>0<5)break g;H[a+38|0]=K[d+4|0]}f=0}return f|0}Jc(a,1029,0,0);return 1029}function SS(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{c=J[a+4>>2];f:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break f}c=uf(a)}switch(c-43|0){case 0:case 2:break e;default:break d}}g=(c|0)==45;b=!b;c=J[a+4>>2];g:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break g}c=uf(a)}d=c-58|0;if(b|d>>>0>4294967285)break c;if(J[a+116>>2]<0)break b;J[a+4>>2]=J[a+4>>2]-1;break b}d=c-58|0}if(d>>>0<4294967286)break b;h:{if(c- +48>>>0>=10)break h;while(1){e=(P(e,10)+c|0)-48|0;f=(e|0)<214748364;c=J[a+4>>2];i:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break i}c=uf(a)}b=c-48|0;if(f&b>>>0<=9)continue;break}f=e>>31;if(b>>>0>=10)break h;while(1){b=c;c=vEb(e,f,10,0);d=b+c|0;b=jc;e=d-48|0;d=(c>>>0>d>>>0?b+1|0:b)-(d>>>0<48)|0;f=d;d=e>>>0<2061584302&(d|0)<=21474836|(d|0)<21474836;c=J[a+4>>2];j:{if((c|0)!=J[a+104>>2]){J[a+4>>2]=c+1;c=K[c|0];break j}c=uf(a)}b=c-48|0;if(d&b>>>0<=9)continue;break}if(b>>>0>=10)break h;while(1){b=J[a+ +4>>2];k:{if((b|0)!=J[a+104>>2]){J[a+4>>2]=b+1;b=K[b|0];break k}b=uf(a)}if(b-48>>>0<10)continue;break}}b=J[a+116>>2];if((b|0)>0)b=1;else b=(b|0)>=0;if(b)J[a+4>>2]=J[a+4>>2]-1;a=e;e=g?0-a|0:a;f=g?0-(((a|0)!=0)+f|0)|0:f;break a}f=-2147483648;if(J[a+116>>2]<0)break a;J[a+4>>2]=J[a+4>>2]-1;jc=-2147483648;return 0}jc=f;return e}function Ikb(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;i=-1;f=J[a+16>>2];a=K[f+6|0]|K[f+7|0]<<8|(K[f+8|0]<<16|K[f+9|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>> +24);a:{if(!a)break a;j=f+10|0;while(1){b:{e=a+g>>>1|0;d=j+P(e,11)|0;h=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];c:{if(h>>>0>c>>>0){a=e;break c}if(c>>>0<=h>>>0)break b;g=e+1|0}if(a>>>0>g>>>0)continue;break a}break}e=K[d+7|0]|K[d+8|0]<<8|(K[d+9|0]<<16|K[d+10|0]<<24);d:{a=K[d+3|0]|K[d+4|0]<<8|(K[d+5|0]<<16|K[d+6|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break d;c=a+f|0;a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);j=c+4|0;g=0;while(1){if(a>>>0<=g>>>0)break d; +c=a;a=a+g>>>1|0;d=j+(a<<2)|0;h=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];if(h>>>0>b>>>0)continue;i=1;g=a+1|0;a=c;if(h+K[d+3|0]>>>0>>0)continue;break}break a}a=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e:{if(!a)break e;c=a+f|0;a=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break e;d=c+4|0;g=0;while(1){f:{c=a+g>>>1|0;e=d+P(c,5)|0;f=K[e+1|0]<<8|K[e|0]<<16|K[e+2|0];g:{if(f>>>0>b>>>0){a=c;break g}if(b>>>0<=f>>>0)break f;g=c+1|0}if(a>>>0>g>>>0)continue;break e}break}i= +0;if(K[e+4|0]|K[e+3|0]<<8)break a}i=-1}return i|0}function vP(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=Dc(72);if(!d)return 0;d=Ac(d,0,72);J[d>>2]=J[a>>2];J[d+4>>2]=J[a+4>>2];J[d+8>>2]=J[a+8>>2];J[d+12>>2]=J[a+12>>2];f=d,g=tP(J[a+16>>2]),J[f+16>>2]=g;a:{c=J[a+20>>2];if(c){b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+20>>2]=b}c=J[a+24>>2];if(c){e=1;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+24>>2]=b}c=J[a+28>>2];if(c){e=2;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+28>>2]=b}c=J[a+32>>2];if(c){e=3;b=sj();if(!b)break a; +if(Lj(b,c))break a;J[d+32>>2]=b}c=J[a+36>>2];if(c){e=4;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+36>>2]=b}c=J[a+40>>2];if(c){e=5;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+40>>2]=b}c=J[a+44>>2];if(c){e=6;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+44>>2]=b}c=J[a+48>>2];if(c){e=7;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+48>>2]=b}c=J[a+52>>2];if(c){e=8;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+52>>2]=b}c=J[a+56>>2];if(c){e=9;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+56>>2]=b}c=J[a+60>>2]; +if(c){e=10;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d+60>>2]=b}c=J[a- -64>>2];if(c){e=11;b=sj();if(!b)break a;if(Lj(b,c))break a;J[d- -64>>2]=b}b=J[a+68>>2];if(b){e=12;a=sj();if(!a)break a;if(Lj(a,b))break a;J[d+68>>2]=a}return d}J[(d+(e<<2)|0)+20>>2]=0;return 0}function Jkb(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;a:{h=J[a+16>>2];a=K[h+6|0]|K[h+7|0]<<8|(K[h+8|0]<<16|K[h+9|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);b:{if(!a)break b;j=h+10|0;while(1){c:{g=a+f>>>1|0;e=j+ +P(g,11)|0;i=K[e+1|0]<<8|K[e|0]<<16|K[e+2|0];d:{if(i>>>0>d>>>0){a=g;break d}if(d>>>0<=i>>>0)break c;f=g+1|0}if(a>>>0>f>>>0)continue;break b}break}g=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);e:{a=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break e;d=a+h|0;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);j=d+4|0;f=0;while(1){if(a>>>0<=f>>>0)break e;d=a;a=a+f>>>1|0;e=j+(a<<2)|0;i=K[e+1|0]<<8|K[e|0]<< +16|K[e+2|0];if(i>>>0>c>>>0)continue;f=a+1|0;a=d;if(i+K[e+3|0]>>>0>>0)continue;break}return kc[J[J[b+12>>2]+12>>2]](b,c)|0}a=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(!a)break b;b=a+h|0;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(!a)break b;g=b+4|0;f=0;while(1){b=a+f>>>1|0;d=g+P(b,5)|0;e=K[d+1|0]<<8|K[d|0]<<16|K[d+2|0];f:{if(e>>>0>c>>>0){a=b;break f}if(c>>>0<=e>>>0)break a;f=b+1|0}if(a>>>0>f>>>0)continue;break}}return 0}return K[d+4|0]|K[d+3|0]<< +8}function w9(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;h=fc-16|0;fc=h;a:{if(!c)break a;J[c>>2]=0;e=!a;if(e|((e?-1:J[a+8>>2])|0)!=1)break a;e=d;b:{if(e)break b;e=0;i=kd(256,4);if(!i)break b;while(1){J[i+(e<<2)>>2]=(((((((e&1)+(e>>>7|0)|0)+(e>>>1&1)|0)+(e>>>2&1)|0)+(e>>>3&1)|0)+(e>>>4&1)|0)+(e>>>5&1)|0)+(e>>>6&1);e=e+1|0;if((e|0)!=256)continue;break}e=i}Df(a,h+12|0,h+8|0,0);o=a?J[a+12>>2]:-1;i=a?J[a+40>>2]:0;k=J[h+8>>2];c:{if((k|0)<=0)break c;a=J[h+12>>2];l=a&31;p=-1<<32-l;d:{m= +a>>5;if((m|0)>0){a=0;while(1){f=(P(o,n)<<2)+i|0;g=0;while(1){j=J[(g<<2)+f>>2];if(j)a=J[(j>>>22&1020)+e>>2]+(J[(j>>>14&1020)+e>>2]+(J[(j>>>6&1020)+e>>2]+(J[((j&255)<<2)+e>>2]+a|0)|0)|0)|0;g=g+1|0;if((m|0)!=(g|0))continue;break}e:{if(!l)break e;f=J[(m<<2)+f>>2]&p;if(!f)break e;a=J[(f>>>22&1020)+e>>2]+(J[(f>>>14&1020)+e>>2]+(J[(f>>>6&1020)+e>>2]+(J[((f&255)<<2)+e>>2]+a|0)|0)|0)|0}if((a|0)>(b|0))break d;n=n+1|0;if((n|0)!=(k|0))continue;break}break c}if(l){a=0;while(1){f=J[(P(g,o)<<2)+i>>2]&p;if(f)a=J[(f>>> +22&1020)+e>>2]+(J[(f>>>14&1020)+e>>2]+(J[(f>>>6&1020)+e>>2]+(J[((f&255)<<2)+e>>2]+a|0)|0)|0)|0;if((a|0)>(b|0))break d;g=g+1|0;if((k|0)!=(g|0))continue;break}break c}if((b|0)<0)break d;break c}J[c>>2]=1}if(d)break a;uc(e)}fc=h+16|0}function fh(a,b,c){var d=0;a:{b:{c:{d:{e:{f:{g:{h:{c=c-1|0;switch(c|0){case 2:case 7:break c;case 11:break d;case 10:break e;case 4:case 9:break f;case 3:case 8:break g;case 0:case 5:break h;default:break b}}if(J[b+4>>2])break b;return 0}if(M[b+4>>2]>3)break b;break a}if(M[b+ +4>>2]>7)break b;break a}if(M[b+4>>2]<4)break a;return+N[J[b>>2]>>2]}if(M[b+4>>2]<8)break a;return O[J[b>>2]>>3]}if(M[b+4>>2]<=1)break a}b=J[b>>2];i:switch(c|0){case 5:return+H[b|0];case 0:return+K[b|0];case 2:a=J[a+264>>2];return+(K[!a+b|0]<<8|K[((a|0)!=0)+b|0]);case 3:j:{if(J[a+264>>2]){c=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;b=b+3|0;break j}c=K[b+2|0]<<16|K[b+3|0]<<24|K[b+1|0]<<8}return+((K[b|0]|c)>>>0);case 4:case 9:k:{if(J[a+264>>2]){a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);a=a<<24|(a&65280)<< +8|(a>>>8&65280|a>>>24);c=K[b+5|0]<<16|K[b+4|0]<<24|K[b+6|0]<<8;b=b+7|0;break k}c=K[b+6|0]<<16|K[b+7|0]<<24|K[b+5|0]<<8;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b+4|0}b=K[b|0]|c;if(!b)break a;return+(a|0)/+(b|0);case 7:a=J[a+264>>2];return+((K[!a+b|0]<<8|K[((a|0)!=0)+b|0])<<16>>16);case 8:break i;default:break a}l:{if(J[a+264>>2]){c=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;b=b+3|0;break l}c=K[b+2|0]<<16|K[b+3|0]<<24|K[b+1|0]<<8}d=+(K[b|0]|c)}return d}function N$(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;h=fc-16|0;fc=h;a:{b:{c:switch(J[c>>2]-4|0){case 0:d=vc(8);a=J[c+8>>2];J[699344]=0;a=aa(3349,d|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;c=Y_(J[693464],b,a);if(!c){J[h+4>>2]=b;J[h>>2]=a;Cc(1,-1,777184,h)}uc(Zc(a));break b;case 4:a=J[c+8>>2];g=fc-16|0;fc=g;J[g>>2]=13;c=vc(24);J[699344]=0;e=_(4,8)|0;d=J[699344];J[699344]=0;d:{e:{f:{if((d|0)==1)break f;J[699344]=0;i=aa(3350,e|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){d=Z()|0;uc(e);break e}d=0;J[c+12>>2]=0;J[c+4>>2]= +0;J[c+8>>2]=0;J[c>>2]=i;J[699344]=0;b=aa(3551,256,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break f;J[c+16>>2]=b;while(1){e=d<<3;f=e+b|0;J[f>>2]=0;J[f+4>>2]=0;f=b+(e|8)|0;J[f>>2]=0;J[f+4>>2]=0;f=b+(e|16)|0;J[f>>2]=0;J[f+4>>2]=0;e=b+(e|24)|0;J[e>>2]=0;J[e+4>>2]=0;d=d+4|0;if((d|0)!=256)continue;break}J[c+20>>2]=1;g:{if(J[Ec(kc[J[J[a>>2]+76>>2]](a)|0,784346,g,0)>>2]==5)break g;d=N$(b,i,g);if(!d)break g;J[c+8>>2]=J[d+8>>2];e=J[d+16>>2];if(e)PJ(c,b,e);cq(d)}yc(g);kc[J[J[a>>2]+20>>2]](a);OJ(c,0,3555,a); +kc[J[J[a>>2]+24>>2]](a);fc=g+16|0;break d}d=Z()|0}uc(c);ba(d|0);B()}if(c)break b;Cc(1,-1,777438,0);c=0;break b;default:break c}c=0;Cc(1,-1,778471,0)}fc=h+16|0;return c|0}a=Z()|0;uc(d);ba(a|0);B()}function ei(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+12>>2];if(J[a+4>>2]==2)return kc[g|0](b,c,d)|0;a:{b:{if(M[g>>2]>b>>>0)break b;f=J[a+16>>2];if((f|0)>=2)while(1){h=(e+f|0)/2|0;j=M[g+(h<<4)>>2]>b>>>0;f=j?h:f;e=j?e:h;if((f-e|0)>1)continue;break}f=g+(e<<4)|0;if(M[f+4>>2]>>0)break b;h=0;a=J[f+12>>2]; +if((a|0)>(d|0))break a;if((a|0)<=0)return a;e=(J[(g+(e<<4)|0)+8>>2]+b|0)-J[f>>2]|0;d=a&3;c:{if(!d){f=a;break c}b=0;f=a;while(1){f=f-1|0;H[f+c|0]=e;e=e>>>8|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}if(a>>>0<4)return a;d=c-2|0;h=c-1|0;while(1){H[f+h|0]=e;H[d+f|0]=e>>>8;b=f-4|0;H[b+c|0]=e>>>24;g=f-3|0;H[g+c|0]=e>>>16;e=0;f=b;if(g>>>0>1)continue;break}return a}e=J[a+24>>2];if((e|0)>0){h=J[a+20>>2];f=0;while(1){d=P(f,24);g=d+h|0;if(J[g>>2]==(b|0)){h=J[g+20>>2];if((h|0)<=0)break a;b=0;e=0;if(h>>>0>=4){j= +h&-4;g=0;while(1){H[c+e|0]=K[((d+J[a+20>>2]|0)+e|0)+4|0];i=e|1;H[i+c|0]=K[(i+(d+J[a+20>>2]|0)|0)+4|0];i=e|2;H[i+c|0]=K[(i+(d+J[a+20>>2]|0)|0)+4|0];i=e|3;H[i+c|0]=K[(i+(d+J[a+20>>2]|0)|0)+4|0];e=e+4|0;g=g+4|0;if((j|0)!=(g|0))continue;break}}d=h&3;if(!d)break a;f=P(f,24);while(1){H[c+e|0]=K[((f+J[a+20>>2]|0)+e|0)+4|0];e=e+1|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}f=f+1|0;if((e|0)!=(f|0))continue;break}}h=0}return h}function Cm(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a>>2]=2392932;b=J[685894]; +J[a+20>>2]=0;J[a+12>>2]=b;J[a+16>>2]=2438824;J[699344]=0;d=_(4,52)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((b|0)!=1){J[699344]=0;c=Io(d,8,6246,6247,6248,6249,6250);b=J[699344];J[699344]=0;if((b|0)==1)break e;J[c+4>>2]=J[c+4>>2]+1;b=J[a+20>>2];f:{if(!b)break f;d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(d)break f;kc[J[J[b>>2]+4>>2]](b)}J[a+20>>2]=c;J[a+24>>2]=2438824;J[a+28>>2]=0;J[699344]=0;d=_(4,52)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;c=Io(d,8,6246,6247,6248,6249,6250);b=J[699344];J[699344]= +0;if((b|0)==1)break d;J[c+4>>2]=J[c+4>>2]+1;b=J[a+28>>2];g:{if(!b)break g;d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(d)break g;kc[J[J[b>>2]+4>>2]](b)}H[a+32|0]=0;J[a+28>>2]=c;return a|0}b=Z()|0;J[a+16>>2]=2392964;break a}b=Z()|0;uc(d);J[a+16>>2]=2392964;c=J[a+20>>2];if(!c)break a;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0;break a}b=Z()|0;uc(d);J[a+24>>2]=2392964;c=J[a+28>>2];if(!c)break b;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0;break b}b=Z()|0;J[a+24>> +2]=2392964}J[a+16>>2]=2392964;c=J[a+20>>2];if(!c)break a;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+20>>2]=0}wc(a+8|0);ba(b|0);B()}function fA(a,b){var c=0,d=0,e=0,f=0,g=0;if((a|0)!=(b|0)){c=b;a:{if(!J[a+8>>2])break a;d=J[a+4>>2];b=J[d>>2];e=J[J[a>>2]+4>>2];J[b+4>>2]=e;J[e>>2]=b;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b=d;d=J[b+4>>2];b:{if(!J[b+20>>2])break b;e=J[b+16>>2];f=J[e>>2];g=J[J[b+12>>2]+4>>2];J[f+4>>2]=g;J[g>>2]=f;J[b+20>>2]=0;g=b+12|0;if((g|0)==(e|0))break b;while(1){f= +J[e+4>>2];uc(e);e=f;if((g|0)!=(e|0))continue;break}}uc(b);if((a|0)!=(d|0))continue;break}}e=J[c+8>>2];if(e){b=J[c+4>>2];f=J[b>>2];d=J[c>>2];g=J[d+4>>2];J[f+4>>2]=g;J[g>>2]=f;f=J[a>>2];J[f+4>>2]=b;J[b>>2]=f;J[a>>2]=d;J[d+4>>2]=a;J[a+8>>2]=e+J[a+8>>2];J[c+8>>2]=0}O[a+16>>3]=O[c+16>>3];O[a+24>>3]=O[c+24>>3];O[a+32>>3]=O[c+32>>3];O[a+40>>3]=O[c+40>>3];c:{if(!J[c+8>>2])break c;b=J[c+4>>2];a=J[b>>2];d=J[J[c>>2]+4>>2];J[a+4>>2]=d;J[d>>2]=a;J[c+8>>2]=0;if((b|0)==(c|0))break c;while(1){a=b;b=J[a+4>>2];d:{if(!J[a+ +20>>2])break d;d=J[a+16>>2];e=J[d>>2];f=J[J[a+12>>2]+4>>2];J[e+4>>2]=f;J[f>>2]=e;J[a+20>>2]=0;f=a+12|0;if((f|0)==(d|0))break d;while(1){e=J[d+4>>2];uc(d);d=e;if((f|0)!=(d|0))continue;break}}uc(a);if((b|0)!=(c|0))continue;break}}J[c+40>>2]=-1;J[c+44>>2]=-1048577;J[c+32>>2]=-1;J[c+36>>2]=-1048577;J[c+24>>2]=-1;J[c+28>>2]=2146435071;J[c+16>>2]=-1;J[c+20>>2]=2146435071}}function Yva(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2425292;J[a+4>>2]= +0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[699344]=0;g=ha(5213,a+44|0,a+40|0,0,4)|0;f=J[699344];J[699344]=0;a:{b:{if((f|0)!=1){J[699344]=0;f=ha(5213,a+56|0,a+52|0,0,4)|0;h=J[699344];J[699344]=0;if((h|0)!=1)break b;b=Z()|0;hd(g);break a}b=Z()|0;break a}J[a>>2]=2425552;J[699344]=0;h=ha(5213,a+68|0,a- -64|0,0,3)|0;i=J[699344];J[699344]=0;c:{d:{e:{f:{g:{h:{if((i|0)!=1){J[699344]=0;i=ha(5213,a+80|0,a+76|0,0,3)|0;j=J[699344];J[699344]=0;if((j|0)==1)break h;J[699344]= +0;j=ha(5213,a+92|0,a+88|0,0,3)|0;k=J[699344];J[699344]=0;if((k|0)==1)break g;J[a+12>>2]=c;J[a+8>>2]=b;if(J[a+40>>2]){J[699344]=0;ca(5614,g|0,0,4);b=J[699344];J[699344]=0;if((b|0)==1)break f}if(J[a+52>>2]){J[699344]=0;ca(5614,f|0,0,4);b=J[699344];J[699344]=0;if((b|0)==1)break f}J[a+36>>2]=e;J[a+32>>2]=d;if(J[a+40>>2]){J[699344]=0;ca(5614,g|0,0,4);b=J[699344];J[699344]=0;if((b|0)==1)break f}if(J[a+52>>2]){J[699344]=0;ca(5614,f|0,0,4);b=J[699344];J[699344]=0;if((b|0)==1)break f}return a|0}b=Z()|0;break c}b= +Z()|0;break d}b=Z()|0;break e}b=Z()|0;hd(j)}hd(i)}hd(h)}xA(a);ba(b|0);B()}nd(a);ba(b|0);B()}function Yu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;j=J[c+12>>2];d=J[b+120>>2];if(d)kc[d|0](J[b+116>>2]);e=J[b+84>>2];if(e)while(1){h=J[e+4>>2];d=J[h+84>>2];a:{if(!d)break a;i=J[J[h+96>>2]+8>>2];b:{if((d|0)==(e|0)){g=0;break b}while(1){f=J[d+8>>2];if(!f)break a;g=d;d=f;if((e|0)!=(d|0))continue;break}}J[(g?g+8|0:h+84|0)>>2]=J[e+8>>2];d=J[e+20>>2];if(d)kc[d|0](e);fy(e);kc[J[i+8>>2]](i,e);e=J[b+84>>2]}if(e)continue; +break}if(a){d=J[b+108>>2];if(d)while(1){g=J[d+4>>2];f=J[d+8>>2];e=J[f+8>>2];if(e)kc[e|0](f);e=J[J[c+12>>2]+60>>2];if(e)kc[e|0](f);e=J[f+40>>2];if(e)kc[J[a+8>>2]](a,e);J[f+40>>2]=0;kc[J[a+8>>2]](a,f);kc[J[a+8>>2]](a,d);d=g;if(d)continue;break}J[b+108>>2]=0;J[b+112>>2]=0}J[b+88>>2]=0;c=J[b+48>>2];if(c)kc[c|0](b);if(J[b+36>>2]>0){d=0;while(1){f=d<<2;c=J[f+J[b+40>>2]>>2];g=J[J[c>>2]+100>>2];e=J[J[c+12>>2]+8>>2];if(e)kc[e|0](c);kc[J[g+8>>2]](g,c);J[f+J[b+40>>2]>>2]=0;d=d+1|0;if((d|0)>2])continue; +break}}c=J[b+40>>2];if(c)kc[J[a+8>>2]](a,c);J[b+36>>2]=0;J[b+40>>2]=0;c=J[j+52>>2];if(c)kc[c|0](b);c=J[b+104>>2];c:{if(!c)break c;g=J[b+8>>2];d=J[c+28>>2];f=J[c+24>>2];if(f)kc[f|0](c);if(g&1024)break c;kc[J[d+8>>2]](d,c)}J[b+104>>2]=0;c=J[b+128>>2];if(c){kc[J[a+8>>2]](a,c);J[b+128>>2]=0}kc[J[a+8>>2]](a,b)}function Fk(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:{b:{if((b|0)<0|J[a+16>>2]<=(b|0))break b;i=J[J[a+24>>2]+(b<<2)>>2];a=J[i+16>>2];if((a|0)<=(c|0))break b;b=J[i+20>>2];if((a|0)< +(c+e|0)|(b|0)<=(d|0)|(J[g+20>>2]!=(f|0)|(b|0)<(d+f|0)))break b;if(J[g+24>>2]!=(e|0))break b;b=J[g+28>>2];a=J[b>>2];c:{if((f|0)>=2){b=J[b+4>>2]-a>>2;break c}b=0;if((f|0)!=1)break a}d:{if((e|0)>0){p=b<<2;while(1){if((Xg(J[i+32>>2],P(J[i+36>>2],P(J[i+16>>2],d+j|0)+c|0),0)|0)<0)break b;l=a;m=e;e:{g=J[i+36>>2];if((g|0)<=0)break e;while(1){if((g|0)>0){b=J[l>>2];h=J[i+24>>2];n=(b>>31&(J[i+28>>2]?1<>2];b=J[h+8>>2];if(b&7)break b;k=J[i+36>>2];o=J[h+64>>2];if((o|0)>=0& +J[h+60>>2]>=(o|0))break d;k=n>>(k<<3)-8;J[h+4>>2]=J[h+4>>2]|32;b=J[h+28>>2];J[h+28>>2]=b-1;f:{if((b|0)>0){J[h+60>>2]=J[h+60>>2]+1;b=J[h+24>>2];J[h+24>>2]=b+1;H[b|0]=k;break f}b=-1;if((bd(h,k&255)|0)==-1)break a}n=n<<8;b=(g|0)>1;g=g-1|0;if(b)continue;break}}if((m|0)<=1)break e;m=m-1|0;l=l+4|0;g=J[i+36>>2];continue}}a=a+p|0;b=0;j=j+1|0;if((j|0)!=(f|0))continue;break}break a}while(1){if((Xg(J[i+32>>2],P(J[i+36>>2],P(J[i+16>>2],d+j|0)+c|0),0)|0)<0)break b;b=0;j=j+1|0;if((j|0)!=(f|0))continue;break}break a}J[h+ +8>>2]=b|4}b=-1}return b}function $ja(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;a:{if(!J[a+64>>2])break a;b:{d=J[a+68>>2];if(d){c=J[a+92>>2];if(c&16){if(J[a+24>>2]!=J[a+20>>2]){b=-1;if((kc[J[J[a>>2]+52>>2]](a,-1)|0)==-1)break a}d=a+72|0;while(1){b=J[a+68>>2];c=J[a+32>>2];c=kc[J[J[b>>2]+20>>2]](b,d,c,c+J[a+52>>2]|0,e+12|0)|0;f=J[a+32>>2];b=J[e+12>>2]-f|0;if((ae(f,1,b,J[a+64>>2])|0)!=(b|0))break b;c:switch(c-1|0){case 1:break b;case 0:continue;default:break c}break}b=0;if(!Zi(J[a+64>>2]))break a; +break b}if(!(c&8))break a;b=J[a+84>>2];J[e>>2]=J[a+80>>2];J[e+4>>2]=b;d:{e:{f:{if(K[a+98|0]){b=J[a+16>>2]-J[a+12>>2]|0;d=b>>31;break f}c=kc[J[J[d>>2]+24>>2]](d)|0;b=J[a+40>>2]-J[a+36>>2]|0;d=b>>31;if((c|0)>0){c=P(c,J[a+16>>2]-J[a+12>>2]|0);d=d+(c>>31)|0;f=b;b=b+c|0;d=f>>>0>b>>>0?d+1|0:d;break f}if(J[a+12>>2]!=J[a+16>>2])break e}c=0;break d}c=J[a+68>>2];c=kc[J[J[c>>2]+32>>2]](c,e,J[a+32>>2],J[a+36>>2],J[a+12>>2]-J[a+8>>2]|0)|0;c=J[a+36>>2]-(c+J[a+32>>2]|0)|0;d=d+(c>>31)|0;f=b;b=b+c|0;d=f>>>0>b>>>0? +d+1|0:d;c=1}if(Ev(J[a+64>>2],0-b|0,0-(d+((b|0)!=0)|0)|0,1))break b;if(c){b=J[e+4>>2];J[a+72>>2]=J[e>>2];J[a+76>>2]=b}b=J[a+32>>2];J[a+40>>2]=b;J[a+36>>2]=b;b=0;J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0;J[a+92>>2]=0;break a}yv();B()}b=-1}fc=e+16|0;return b|0}function iU(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=fc-16|0;fc=h;f=82731;e=J[b+4>>2];a:{if(e>>>0>=c>>>0){f=82939;if(c>>>0>=e>>>0)break a}e=J[a>>2];g=J[a+628>>2];i=J[Sf(a,L[b>>1])+16>>2];j=J[b+4>>2];J[h+8>>2]=c;J[h+4>>2]=j;J[h>>2]=i;le(g,e,f,h)}b:{c:{f= +J[d>>2];if(f)break c;f=bh(a,c,4,88745);J[d>>2]=f;if(f)break c;d=0;break b}d=0;Sg(f,0,c<<2);e=J[b+4>>2];if(L[b+2>>1]==3){e=bh(a,e,2,88852);if(!e)break b;g=J[b+4>>2];d:{if(g>>>0<=2){if(L[a+456>>1]==19789){d=1;e:{f:switch(g-1|0){case 0:a=J[b+8>>2];break e;case 1:break f;default:break d}a=J[b+8>>2];I[e+2>>1]=a}I[e>>1]=a>>>16;break d}d=1;g:switch(g-1|0){case 0:I[e>>1]=J[b+8>>2];break d;case 1:break g;default:break d}a=J[b+8>>2];I[e+2>>1]=a>>>16;I[e>>1]=a;break d}d=(ci(a,b,e)|0)!=0}h:{if(!d|(c|0)<=0)break h; +a=0;while(1){if(J[b+4>>2]<=(a|0))break h;J[(a<<2)+f>>2]=L[e+(a<<1)>>1];a=a+1|0;if((c|0)!=(a|0))continue;break}}uc(e);break b}if((c|0)!=(e|0)){e=bh(a,e,4,88852);if(!e)break b;d=1;i:{if(J[b+4>>2]==1){J[e>>2]=J[b+8>>2];break i}d=(ci(a,b,e)|0)!=0}j:{if(!d|(c|0)<=0)break j;a=0;while(1){if(J[b+4>>2]<=(a|0))break j;g=a<<2;J[g+f>>2]=J[e+g>>2];a=a+1|0;if((c|0)!=(a|0))continue;break}}uc(e);break b}d=1;if((c|0)==1){J[f>>2]=J[b+8>>2];break b}d=(ci(a,b,f)|0)!=0}fc=h+16|0;return d}function evb(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;var h=0,i=0,j=0,k=0,l=0;a:{if(f){if(!d)break a;a=c<<1;b=b<<1;while(1){i=L[e>>1];b:{if((i|0)==L[f>>1]){I[g>>1]=i;break b}i=K[e|0]|K[e+1|0]<<8;k=i>>>8|0;h=K[f|0]|K[f+1|0]<<8;i=((i<<8|k)&65535)+((P(b,((h<<8|h>>>8)&65535)-((k|i<<8)&65535)|0)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];c:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break c}h=e+2|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=j+((P(b,((h<<8| +h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[e+4>>1];d:{if((h|0)==L[f+4>>1]){I[i>>1]=h;break d}h=e+4|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+4|0]|K[f+5|0]<<8;h=j+((P(b,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+6|0;h=L[e+6>>1];e:{if((h|0)==L[f+6>>1]){I[i>>1]=h;break e}h=e+6|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+6|0]|K[f+7| +0]<<8;h=j+((P(b,((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}f=f+8|0;e=e+8|0;g=g+8|0;l=l+1|0;if((l|0)!=(d|0))continue;break}break a}xc(g,e,d<<3)}return 0}function ek(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+1144>>2];a:{b:{if(!b){c=J[a+1124>>2];while(1){c:{d:{e:{f:switch(c|0){case 0:b=J[a+196>>2];g:{if(!b){b=0;break g}J[a+1136>>2]=b;b=J[a+200>>2];J[a+1144>>2]=b}c=1;J[a+1124>>2]=1;break c;case 1:J[a+1124>>2]=2;case 2:d=J[a+1128>>2];if((d|0)==J[a+1132>> +2]){c=3;J[a+1124>>2]=3;continue}b=J[a>>2];c=J[b+184>>2];if(!c){H[a+1140|0]=0;Uc(J[b+628>>2],J[b>>2],81736,0);return 0}f=d<<2;c=J[c+f>>2];J[a+1136>>2]=c;if(!c){b=0;break d}e=J[a+168>>2];if(c>>>0>=e>>>0)break e;J[a+1144>>2]=0;b=J[b+188>>2];if(!b)break e;b=J[b+f>>2];J[a+1144>>2]=b;if(!b)break e;if(b+c>>>0<=e>>>0)break d;b=e-c|0;J[a+1144>>2]=b;break d;default:break f}H[a+1140|0]=0;return 0}b=0;J[a+1136>>2]=0}J[a+1128>>2]=d+1;c=2}if(!b)continue;break}H[a+1140|0]=0;c=J[a>>2];break b}c=J[a>>2];if(K[a+1140| +0])break a}kc[J[c+640>>2]](J[c+628>>2],J[a+1136>>2],0)|0;H[a+1140|0]=1;b=J[a+1144>>2];c=J[a>>2]}d=a+1156|0;b=kc[J[c+632>>2]](J[c+628>>2],d,b>>>0>=2048?2048:b&65535)|0;if(!b)return 0;h:{i:{if((b|0)>0){if(b>>>0>=2049)break i;c=J[a+1144>>2];if(c>>>0>>0)break h;J[a+1152>>2]=d;I[a+1148>>1]=b;J[a+1144>>2]=c-b;J[a+1136>>2]=b+J[a+1136>>2];return 1}fa(80708,70472,1883,96697);B()}fa(80991,70472,1884,96697);B()}fa(81465,70472,1886,96697);B()}function bwb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;if(e){o=e-2|0;while(1){a=f;h=K[a|0];H[g|0]=h;g=g+1|0;f=a+1|0;a:{if(l>>>0>o>>>0)break a;i=l?(l|0)==(o|0)?d:b:c;if(!((e|0)!=1|l)){if(i>>>0<2)break a;a=i-1|0;j=a&7;if(i-2>>>0>=7){i=a&-8;a=0;while(1){H[g+7|0]=h;H[g+6|0]=h;H[g+5|0]=h;H[g+4|0]=h;H[g+3|0]=h;H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;g=g+8|0;a=a+8|0;if((i|0)!=(a|0))continue;break}}a=0;if(!j)break a;while(1){H[g|0]=h;g=g+1|0;a=a+1|0;if((j|0)!=(a|0))continue;break}break a}if((h|0)!=K[f|0]){if(i>>>0<2)break a; +h=1;j=i<<1;k=i-1|0;p=k&1;if((i|0)!=2){q=k&-2;k=0;while(1){m=h<<1;n=K[a|0];H[g|0]=((i+P(m,K[a+1|0]-n|0)|0)/(j|0)|0)+n;n=m+2|0;m=K[a|0];H[g+1|0]=((i+P(n,K[a+1|0]-m|0)|0)/(j|0)|0)+m;h=h+2|0;g=g+2|0;k=k+2|0;if((q|0)!=(k|0))continue;break}}if(!p)break a;k=K[a+1|0];a=K[a|0];H[g|0]=((i+(P(k-a|0,h)<<1)|0)/(j|0)|0)+a;g=g+1|0;break a}if(i>>>0<2)break a;a=i-1|0;j=a&7;if(i-2>>>0>=7){i=a&-8;a=0;while(1){H[g+7|0]=h;H[g+6|0]=h;H[g+5|0]=h;H[g+4|0]=h;H[g+3|0]=h;H[g+2|0]=h;H[g+1|0]=h;H[g|0]=h;g=g+8|0;a=a+8|0;if((i| +0)!=(a|0))continue;break}}a=0;if(!j)break a;while(1){H[g|0]=h;g=g+1|0;a=a+1|0;if((j|0)!=(a|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function Wna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;J[a>>2]=340504;e=wk(a+32|0);J[a+44>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]= +0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+156>>2]=0;J[a+160>>2]=1065353216;J[a+172>>2]=0;J[a+176>>2]=0;I[a+188>>1]=0;J[a+208>>2]=0;J[a+212>>2]=1;J[a+200>>2]=0;J[a+204>>2]=0;J[a+192>>2]=1056964608;J[a+196>>2]=1065353216;J[a+180>>2]=1065353216;J[a+184>>2]=1065353216;J[a+216>>2]=1;J[a+236>>2]=0;J[a+240>>2]=0;J[a+228>>2]=0;J[a+232>>2]=0;d=a+220|0;c=d;J[c>>2]=0;J[c+4>>2]=0;J[a+252>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+272>>2]=0;J[699344]=0;c=_(4,24)|0;f= +J[699344];J[699344]=0;a:{b:{if((f|0)==1){b=Z()|0;xk(d);break b}d=c+24|0;J[a+272>>2]=d;J[a+264>>2]=c;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[a+268>>2]=d;Ac(a+280|0,0,88);J[699344]=0;aa(6518,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Se(a+212|0)}c=J[a+120>>2];if(c){J[a+124>>2]=c;uc(c)}if(H[a+47|0]<0)uc(J[a+36>>2]);Jd(e);ba(b|0);B()}return a|0}function Oka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=J[a+12>>2];a:{if(J[a+4>>2]){if((c|0)<=0)break a; +while(1){f=L[b>>1]<<16;e=+I[b+2>>1];b:{c:{d:{if(!J[a+4>>2]){e=e*.01251220703125;e:{if(R(e)<2147483648){d=~~e;break e}d=-2147483648}d=f|d<<8&65280;break d}h=vEb(J[698644],J[698645],1284865837,1481765933);d=jc;h=h+1|0;d=h?d:d+1|0;J[698644]=h;J[698645]=d;e=e*.01251220703125+ +(d>>>1|0)*4.656612875245797E-10+-.5;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}d=f|d<<8&65280;if(J[a+4>>2])break c}e=+I[b+4>>1]*.01251220703125;break b}e=+I[b+4>>1]*.01251220703125;h=vEb(J[698644],J[698645],1284865837,1481765933); +f=jc;h=h+1|0;f=h?f:f+1|0;J[698644]=h;J[698645]=f;e=e+ +(f>>>1|0)*4.656612875245797E-10+-.5}g:{if(R(e)<2147483648){f=~~e;break g}f=-2147483648}J[g>>2]=f&255|d;b=b+6|0;g=g+4|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}break a}if((c|0)<=0)break a;if(c&1){J[g>>2]=P(I[b+4>>1],410)>>>15&255|(P(I[b+2>>1],410)>>>7&65280|L[b>>1]<<16);b=b+6|0;g=g+4|0;a=c-1|0}else a=c;d=a;if((c|0)==1)break a;while(1){J[g>>2]=P(I[b+4>>1],410)>>>15&255|(P(I[b+2>>1],410)>>>7&65280|L[b>>1]<<16);J[g+4>>2]=P(I[b+10>>1],410)>>>15&255| +(P(I[b+8>>1],410)>>>7&65280|L[b+6>>1]<<16);b=b+12|0;g=g+8|0;a=d-3|0;d=d-2|0;if(a>>>0<4294967294)continue;break}}}function HU(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+188>>2];d=J[a+184>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];a:{if(!c)break a;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break a;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b|0)!=(d|0))continue;break}J[a+188>>2]=d;b=J[a+200>>2];d=J[a+196>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];b:{if(!c)break b;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break b;kc[J[J[c>>2]+8>> +2]](c);Gc(c)}if((b|0)!=(d|0))continue;break}J[a+200>>2]=d;b=J[a+212>>2];d=J[a+208>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];c:{if(!c)break c;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break c;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b|0)!=(d|0))continue;break}J[a+212>>2]=d;b=J[a+224>>2];d=J[a+220>>2];if((b|0)!=(d|0))while(1){b=b-8|0;c=J[b+4>>2];d:{if(!c)break d;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break d;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b|0)!=(d|0))continue;break}J[a+224>>2]=d;b=J[a+248>>2];d=J[a+244>>2];if((b|0)!= +(d|0))while(1){b=b-8|0;c=J[b+4>>2];e:{if(!c)break e;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break e;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b|0)!=(d|0))continue;break}J[a+248>>2]=d;An(a+88|0);An(a+136|0);b=J[a+236>>2];d=J[a+232>>2];if((b|0)!=(d|0))while(1){e=b-12|0;if(H[b-1|0]<0)uc(J[e>>2]);b=e;if((d|0)!=(b|0))continue;break}J[a+236>>2]=d}function TQ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;a=fc-16|0;fc=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;a:{b:{while(1){c:{b= +J[a+12>>2];if(d>>>0<=b>>>0)break c;m=J[a+8>>2];if(m>>>0>=g>>>0)break c;f=H[b|0];c=f&255;d:{if((f|0)>=0){if(c>>>0<=1114111){f=1;break d}k=2;break a}k=2;if(f>>>0<4294967234)break a;if(f>>>0<=4294967263){if((d-b|0)<2)break b;i=K[b+1|0];if((i&192)!=128)break a;f=2;c=i&63|c<<6&1984;break d}if(f>>>0<=4294967279){if((d-b|0)<3)break b;i=K[b+2|0];j=K[b+1|0];e:{f:{if((c|0)!=237){if((c|0)!=224)break f;if((j&224)==160)break e;break a}if((j&224)==128)break e;break a}if((j&192)!=128)break a}if((i&192)!=128)break a; +f=3;c=i&63|(c<<12&61440|(j&63)<<6);break d}if(f>>>0>4294967284)break a;if((d-b|0)<4)break b;j=K[b+3|0];i=K[b+2|0];l=K[b+1|0];g:{h:switch(c-240|0){case 0:if((l+112&255)>>>0<48)break g;break a;case 4:if((l&240)==128)break g;break a;default:break h}if((l&192)!=128)break a}if((i&192)!=128|(j&192)!=128)break a;f=4;c=j&63|(i<<6&4032|(c<<18&1835008|(l&63)<<12));if(c>>>0>1114111)break a}J[m>>2]=c;J[a+12>>2]=b+f;J[a+8>>2]=J[a+8>>2]+4;continue}break}k=b>>>0>>0;break a}k=1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+ +8>>2];fc=a+16|0;return k|0}function BL(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;a:{if(!a|J[a+8>>2]<=0)break a;j=J[a+4>>2];if(!b){h=1;if((d|0)>1)break a;f=(d|0)!=1?(f|0)>0?1:f:0}t=a+j|0;a=0;b:{while(1){r=(a<<2)+t|0;l=J[r>>2];a=l&16777215;c:{if(!a)break c;j=n+o|0;if((b|0)<0){p=a;m=j;break c}i=j;j=!b^(j|0)!=1;m=j?i:m;p=j?a:p}d:{e:{f:{g:{if((d|0)>(n|0)){i=c+n|0;n=n+1|0;break g}if((f|0)<=(o|0))break f;i=e+o|0;o=o+1|0}q=K[i|0];k=r+4|0;j=J[k>>2]>>>24|0;if(q>>>0>>0)break b; +i=l>>>24|0;a=K[(k+(i<<2)|0)-1|0];if(a>>>0>>0)break b;if(((a-j|0)+1|0)!=(i|0))break e;a=J[k+(q-j<<2)>>2];break d}if(h)break b;a=n+o|0;if((a|0)>31)break b;return 0-a|0}a=0;h:{if(l>>>0<33554432){j=i;break h}s=q<<24;r=s|16777215;j=i;while(1){if(i>>>0<=4){if(s>>>0<=M[k+(a<<2)>>2])break h;i=a+1|0;if(!((i|0)>=(j|0)|s>>>0>M[k+(i<<2)>>2])){a=i;break h}i=a+2|0;if(!((i|0)>=(j|0)|s>>>0>M[k+(i<<2)>>2])){a=i;break h}a=a+3|0;break h}l=(a+j|0)/2|0;i=M[k+(l<<2)>>2]>r>>>0;j=i?l:j;a=i?a:l;i=j-a|0;if((i|0)>1)continue; +break}}if((a|0)>=(j|0))break b;a=J[k+(a<<2)>>2];if((a>>>24|0)!=(q|0))break b}a=a&16777215;if(!a)break b;if(a>>>0<2031616)continue;break}c=n+o|0;if((b|0)<0){p=a;m=c;break b}b=!b^(c|0)!=1;m=b?c:m;p=b?a:p}if(!m)return 0;J[g>>2]=p&-8388609}return m}function xrb(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;d=J[a+20>>2];e=J[a+28>>2];g=J[a+16>>2];h=L[a+12>>1];i=L[a+8>>1];j=L[a+4>>1];f=J[a>>2];c=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=d-g<< +11&-8192|(h<<8&7936|(i<<7&128|j&63));g=e>>>0>255;c=g?c|64:c;H[b+4|0]=c;H[b+5|0]=c>>>8;d=J[a+16>>2];a:{if((d|0)==J[a+20>>2]){c=6;break a}c=6;b:switch((f>>>0<257?1:f>>>0<65537?2:4)-2|0){case 2:while(1){f=b+c|0;e=J[d>>2];e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;c=c+4|0;d=d+4|0;if((d|0)!=J[a+20>>2])continue;break}break a;case 0:while(1){f=b+c|0;e=L[d>>1];e=e<<8|e>>>8;H[f|0]=e;H[f+1|0]=e>>>8;c=c+2|0;d=d+4|0;if((d|0)!=J[a+20>>2])continue;break}break a; +default:break b}while(1){H[b+c|0]=J[d>>2];c=c+1|0;d=d+4|0;if((d|0)!=J[a+20>>2])continue;break}}d=J[a+28>>2];c:{if(g){f=b+c|0;d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);H[f|0]=d;H[f+1|0]=d>>>8;d=2;break c}H[b+c|0]=d;d=1}d=d+c|0;b=d+b|0;c=J[a+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;b=J[a>>2];if((d+4|0)==((J[a+20>>2]-J[a+16>>2]>>2<<(b>>>0>=257?b>>>0<65537?1:2:0))+(M[a+28>>2]<256?11:12)|0))return;ra();B()}function eDa(a,b,c){a=a|0;b=b|0; +c=c|0;var d=0,e=0,f=0;e=fc+-64|0;fc=e;YH(e+48|0,J[a+8>>2],0);a:{b:{c:{d=J[e+56>>2];if(d)while(1){f=J[d+8>>2];J[699344]=0;ia(5342,a|0,b|0,f|0,0);f=J[699344];J[699344]=0;if((f|0)==1)break c;d=J[d>>2];if(d)continue;break}d:{e:{f:{g:{d=J[c>>2];if(!(!d|!J[d+8>>2])){J[699344]=0;b=ga(5343,e+12|0,c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[699344]=0;$(5344,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;c=e+8|0;ca(5231,c|0,b|0,2398457);d=J[699344];J[699344]=0;if((d|0)==1)break e; +J[699344]=0;da(5345,a|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break d;a=J[e+8>>2];J[e+8>>2]=0;h:{if(!a)break h;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break h;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+ +20>>2]=0}wc(b+8|0)}id(e+48|0);fc=e- -64|0;return}a=Z()|0;break b}a=Z()|0;Ed(b);break b}a=Z()|0;Ed(b);break b}a=Z()|0;zc(e+8|0);Ed(b);break b}a=Z()|0}id(e+48|0);ba(a|0);B()}ea(0)|0;Bc();B()}function v2a(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;e=J[a+8>>2];l=J[a+12>>2];if(e>>>0>>0){j=J[a+20>>2];c=J[a+4>>2];if(J[c+52>>2]==1){wi(c,742688,4,a+16|0,j,a+24|0,-1,b);c=J[a+4>>2];J[c+52>>2]=0}d=J[a+16>>2];f=J[c+56>>2];a:{if(!f){h=e;c=0;break a}J[c+56>>2]=0;c=1}b:{while(1){c:{d:{e:{f:{g:{if(!c){if(h>>> +0>=l>>>0){e=h;break b}if(d>>>0>=j>>>0){e=h;break b}e=h+2|0;f=L[h>>1];c=e;if((f&63488)!=55296)break g;if((f&64512)!=55296)break f;c=1;continue}if(e>>>0>=l>>>0)break e;h=L[e>>1];if((h&64512)!=56320)break f;f=(h+(f<<10)|0)-56613888|0;c=e+2|0}h=c;c=f>>>8|0;i=f>>>16&31;h:{if(d>>>0>>0){H[d|0]=0;d=d+1|0;break h}g=J[a+4>>2];k=H[g+63|0];H[g+63|0]=k+1;H[(g+k|0)+76|0]=0;J[b>>2]=15}i:{if(d>>>0>=j>>>0){g=J[a+4>>2];k=H[g+63|0];H[g+63|0]=k+1;H[(g+k|0)+76|0]=i;J[b>>2]=15;break i}H[d|0]=i;d=d+1|0}j:{if(d>>>0>= +j>>>0){i=J[a+4>>2];g=H[i+63|0];H[i+63|0]=g+1;H[(i+g|0)+76|0]=c;J[b>>2]=15;break j}H[d|0]=c;d=d+1|0}if(d>>>0>=j>>>0){c=J[a+4>>2];i=H[c+63|0];H[c+63|0]=i+1;H[(c+i|0)+76|0]=f;J[b>>2]=15;break d}H[d|0]=f;d=d+1|0;break d}J[J[a+4>>2]+56>>2]=f;break c}J[J[a+4>>2]+56>>2]=f;if(K[a+2|0])break c;break b}c=0;continue}break}J[b>>2]=12}if(!(d>>>0>>0|e>>>0>=l>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=e;J[a+16>>2]=d}}function s2a(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;e=J[a+8>>2];l=J[a+12>>2]; +if(e>>>0>>0){i=J[a+20>>2];c=J[a+4>>2];if(J[c+52>>2]==1){wi(c,742696,4,a+16|0,i,a+24|0,-1,b);c=J[a+4>>2];J[c+52>>2]=0}d=J[a+16>>2];f=J[c+56>>2];a:{if(!f){h=e;c=0;break a}J[c+56>>2]=0;c=1}b:{while(1){c:{d:{e:{f:{g:{if(!c){if(h>>>0>=l>>>0){e=h;break b}if(d>>>0>=i>>>0){e=h;break b}e=h+2|0;f=L[h>>1];c=e;if((f&63488)!=55296)break g;if((f&64512)!=55296)break f;c=1;continue}if(e>>>0>=l>>>0)break e;h=L[e>>1];if((h&64512)!=56320)break f;f=(h+(f<<10)|0)-56613888|0;c=e+2|0}h=c;c=f>>>8|0;j=f>>>16&31;h:{if(d>>> +0>>0){H[d|0]=f;d=d+1|0;break h}g=J[a+4>>2];k=H[g+63|0];H[g+63|0]=k+1;H[(g+k|0)+76|0]=f;J[b>>2]=15}i:{if(d>>>0>=i>>>0){g=J[a+4>>2];k=H[g+63|0];H[g+63|0]=k+1;H[(g+k|0)+76|0]=c;J[b>>2]=15;break i}H[d|0]=c;d=d+1|0}j:{if(d>>>0>=i>>>0){c=J[a+4>>2];g=H[c+63|0];H[c+63|0]=g+1;H[(c+g|0)+76|0]=j;J[b>>2]=15;break j}H[d|0]=j;d=d+1|0}if(d>>>0>=i>>>0){c=J[a+4>>2];j=H[c+63|0];H[c+63|0]=j+1;H[(c+j|0)+76|0]=0;J[b>>2]=15;break d}H[d|0]=0;d=d+1|0;break d}J[J[a+4>>2]+56>>2]=f;break c}J[J[a+4>>2]+56>>2]=f;if(K[a+2| +0])break c;break b}c=0;continue}break}J[b>>2]=12}if(!(d>>>0>>0|e>>>0>=l>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=e;J[a+16>>2]=d}}function I8(a){var b=0,c=0,d=0,e=0,f=0;if(a){c=J[a+100>>2];b=J[a>>2];if(b)kc[J[c+8>>2]](c,b);J[a>>2]=0;b=J[a+92>>2];if(b){dE(b,c);b=J[a+92>>2];if(b)kc[J[c+8>>2]](c,b);J[a+92>>2]=0}b=J[a+84>>2];if(b)kc[J[c+8>>2]](c,b);J[a+84>>2]=0;e=J[a+72>>2];if(e){b=0;while(1){d=b<<4;f=d+J[a+80>>2]|0;if(J[f+4>>2]==1){e=J[f+12>>2];if(e)kc[J[c+8>>2]](c,e);J[(d+J[a+80>>2]|0)+12>>2]=0;e=J[a+ +72>>2]}b=b+1|0;if(e>>>0>b>>>0)continue;break}}b=J[a+80>>2];if(b)kc[J[c+8>>2]](c,b);J[a+80>>2]=0;if(J[a+52>>2]){b=J[a+56>>2];e=0;while(1){d=J[b>>2];if(d)kc[J[c+8>>2]](c,d);J[b>>2]=0;d=J[b+24>>2];if(d)kc[J[c+8>>2]](c,d);J[b+24>>2]=0;b=b+36|0;e=e+1|0;if(e>>>0>2])continue;break}}if(J[a+64>>2]){b=J[a+68>>2];e=0;while(1){d=J[b>>2];if(d)kc[J[c+8>>2]](c,d);J[b>>2]=0;d=J[b+24>>2];if(d)kc[J[c+8>>2]](c,d);J[b+24>>2]=0;b=b+36|0;e=e+1|0;if(e>>>0>2])continue;break}}b=J[a+56>>2];if(b)kc[J[c+8>>2]](c, +b);e=0;J[a+56>>2]=0;b=J[a+68>>2];if(b)kc[J[c+8>>2]](c,b);J[a+68>>2]=0;dE(a+112|0,c);b=J[a+104>>2];if(J[a+108>>2]){while(1){d=J[b>>2];if(d)kc[J[c+8>>2]](c,d);J[b>>2]=0;if(J[b+4>>2]==1){d=J[b+12>>2];if(d)kc[J[c+8>>2]](c,d);J[b+12>>2]=0}b=b+16|0;e=e+1|0;if(e>>>0>2])continue;break}b=J[a+104>>2]}if(b)kc[J[c+8>>2]](c,b);J[a+104>>2]=0}}function zVa(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;g=fc-16|0;fc=g;J[g>>2]=13;d=vc(16);J[699344]=0;f=_(3352,d|0)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{if((c| +0)!=1){h=Rm(a,J[a+32>>2],805430,g);if(J[h>>2]!=3)break a;d=gu(J[h+8>>2]);c=J[d+8>>2];if((c|0)<2)break b;if(!Dd(J[J[d>>2]+4>>2],807564)){a=1;break c}c=J[d+8>>2];if((c|0)<3)break b;if(!Dd(J[J[d>>2]+8>>2],807564)){a=2;break c}c=J[d+8>>2];if((c|0)<4)break b;if(!Dd(J[J[d>>2]+12>>2],807564)){a=3;break c}if(!Dd(J[J[d>>2]+12>>2],807965)){a=3;break d}c=J[d+8>>2];if((c|0)<5)break b;a=4;while(1){c=a<<2;if(!Dd(J[c+J[d>>2]>>2],807564))break c;if(!Dd(J[c+J[d>>2]>>2],807965))break d;if(!Dd(J[c+J[d>>2]>>2],808388)){e= +vc(8);i=e,j=qg(J[J[(c+J[d>>2]|0)-16>>2]+4>>2]),O[i>>3]=j;sd(f,e);break d}a=a+1|0;c=J[d+8>>2];if((a|0)<(c|0))continue;break}break b}a=Z()|0;uc(d);ba(a|0);B()}c=vc(8);e=a<<2;i=c,j=qg(J[J[(e+J[d>>2]|0)-12>>2]+4>>2]),O[i>>3]=j;sd(f,c);c=vc(8);i=c,j=qg(J[J[(e+J[d>>2]|0)-8>>2]+4>>2]),O[i>>3]=j;sd(f,c)}c=vc(8);i=c,j=qg(J[J[(J[d>>2]+(a<<2)|0)-4>>2]+4>>2]),O[i>>3]=j;sd(f,c);c=J[d+8>>2]}if((c|0)>0){a=0;while(1){e=J[J[d>>2]+(a<<2)>>2];if(e){uc(Zc(e));c=J[d+8>>2]}a=a+1|0;if((c|0)>(a|0))continue;break}}uc(ld(d))}yc(h); +J[b>>2]=J[f+8>>2];fc=g+16|0;return f|0}function sX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=fc-16|0;fc=e;a:{b:{d=J[a+56>>2];if(!d)break b;J[d+4>>2]=J[d+4>>2]+1;c=a+56|0;d=J[c>>2];J[e+12>>2]=d;if(!d)break b;J[699344]=0;aa(5145,c|0,0)|0;c=J[699344];J[699344]=0;c:{d:{e:{f:{if((c|0)==1)break f;if(!b)break c;b=J[693724];if(!b){J[699344]=0;b=_(4,28)|0;c=J[699344];J[699344]=0;if((c|0)==1)break f;J[b+4>>2]=0;J[b+24>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2397884;J[b+16>>2]=0;J[b+20>>2]=0;J[699344]=0;c=b+8|0;J[c>> +2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;uc(nd(b));break d}J[693724]=b}J[699344]=0;J[e+8>>2]=0;c=e+8|0;aa(5145,c|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break f;J[699344]=0;ca(5234,b|0,d+44|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;a=J[e+8>>2];J[e+8>>2]=0;if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break c}break a}a= +Z()|0;break d}a=Z()|0;zc(e+8|0)}zc(e+12|0);ba(a|0);B()}J[699344]=0;a=J[d+4>>2]-1|0;J[d+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)!=1){if(a)break b;J[699344]=0;$(5147,d|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}fc=e+16|0;return}ea(0)|0;Bc();B()}function pF(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=fc-112|0;fc=d;J[d+4>>2]=0;J[d>>2]=0;b=Dc(72);a:{if(!b)break a;e=Ac(b,0,72);Qba(a,d+8|0);b=tP(a);J[e+16>>2]=b;b:{if(!b)break b;c:{c=J[d+24>>2];d:{if((c|0)!=1196573017){a=1280;if((c|0)==1497588338)break d; +if((c|0)!=1380401696)break c;a=1024;break d}a=768}J[e>>2]=a;c=J[d+28>>2];if((c|0)!=1482250784){if((c|0)!=1281450528)break c;c=513}else c=257;J[e+8>>2]=c;a=a>>>8|0;e:{if(a-4>>>0>=2){if((a|0)!=3)break c;J[e+12>>2]=3;J[e+4>>2]=1;if(zP(b,0,d+4|0))break b;if(!zP(J[e+16>>2],1,d))break e;break b}J[e+12>>2]=3;J[e+4>>2]=3;if(yP(b,0,d+4|0))break b;if(yP(J[e+16>>2],1,d))break b}J[e+20>>2]=J[d+4>>2];J[e+36>>2]=J[d>>2];break a}ra();B()}b=J[d+4>>2];if(b){a=J[b>>2];if((a|0)>0)while(1){c=J[b+8>>2];a=a-1|0;g=a<<2; +f=J[c+g>>2];h=J[f>>2];J[f>>2]=h-1;if((h|0)<=1){kc[J[J[f+4>>2]>>2]](f);uc(f);c=J[b+8>>2];a=J[b>>2]-1|0}J[c+g>>2]=0;J[b>>2]=a;if((a|0)>0)continue;break}a=J[b+8>>2];if(a)uc(a);uc(b)}b=J[d>>2];if(b){a=J[b>>2];if((a|0)>0)while(1){c=J[b+8>>2];a=a-1|0;g=a<<2;f=J[c+g>>2];h=J[f>>2];J[f>>2]=h-1;if((h|0)<=1){kc[J[J[f+4>>2]>>2]](f);uc(f);c=J[b+8>>2];a=J[b>>2]-1|0}J[c+g>>2]=0;J[b>>2]=a;if((a|0)>0)continue;break}a=J[b+8>>2];if(a)uc(a);uc(b)}Sy(e);e=0}fc=d+112|0;return e}function PSa(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=fc-4112|0;fc=f;J[f+4096>>2]=13;a:{g=b;b=f+4096|0;b:{if(J[Ec(g,803813,b,0)>>2]!=8){yc(b);break b}e=vc(8);J[699344]=0;b=_(3351,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;e=J[f+4104>>2];kc[J[J[e>>2]+20>>2]](e);e=J[f+4104>>2];e=kc[J[J[e>>2]+40>>2]](e,f,4096)|0;if((e|0)>0)while(1){kf(b,f,e);e=J[f+4104>>2];e=kc[J[J[e>>2]+40>>2]](e,f,4096)|0;if((e|0)>0)continue;break}e=J[f+4104>>2];kc[J[J[e>>2]+24>>2]](e);yc(f+4096|0);c:{if(d){e=fc-16|0;fc=e;J[e+12>>2]=0;J[e+8>>2]= +b;RJ(d,3552,e+8|0,c);fc=e+16|0;break c}g=0;e=fc-16|0;fc=e;d=vc(28);J[d+8>>2]=256;J[d>>2]=0;J[699344]=0;h=aa(3551,256,4)|0;i=J[699344];J[699344]=0;d:{if((i|0)!=1){J[d+4>>2]=h;if(J[d+8>>2])while(1){J[(g<<2)+h>>2]=0;g=g+1|0;if(g>>>0>2])continue;break}J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+24>>2]=1;J[e+12>>2]=0;J[e+8>>2]=b;e:{if(!RJ(d,3552,e+8|0,c)){c=J[d>>2];if(c)uc(Zc(c));c=J[d+4>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[d+12>>2];J[699344]=0;Mc(c);c=J[699344]; +J[699344]=0;if((c|0)==1)break e;uc(d);d=0}fc=e+16|0;break d}ea(0)|0;Bc();B()}a=Z()|0;uc(d);ba(a|0);B()}}e=d;uc(Zc(b));J[a+152>>2]=1}fc=f+4112|0;return e|0}a=Z()|0;uc(e);ba(a|0);B()}function zeb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{b=J[a+16>>2];d:{if(!b)break d;c=vc(552);J[699344]=0;b=aa(2255,c|0,b+2928|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;J[b+12>>2]=J[a+28>>2];J[b+16>>2]=J[a+32>>2];O[b+24>>3]=O[a+40>>3];H[b+32|0]=K[a+48|0];H[b+33|0]=K[a+49|0];H[b+34|0]=K[a+50|0];H[b+35| +0]=K[a+51|0];c=J[b+36>>2];if(c){uc(c);J[b+36>>2]=0}c=J[a+56>>2];J[b+40>>2]=c;if(c){d=c<<3;c=vc(c>>>0>536870911?-1:d);J[b+36>>2]=c;xc(c,J[a+52>>2],d)}O[b+48>>3]=O[a- -64>>3];J[b+56>>2]=J[a+72>>2];O[b- -64>>3]=O[a+80>>3];Ux(b+72|0,a+88|0);$l(b+440|0,a+456|0);Dj(b+512|0,J[a+16>>2]+52|0);O[b+520>>3]=O[a+672>>3];H[b+528|0]=K[a+680|0];c=J[a+16>>2];H[b+529|0]=K[c+2896|0];J[b+532>>2]=J[c+2944>>2];d=J[a+700>>2];e=J[a+704>>2];if(d>>>0>>0){J[d>>2]=b;J[a+700>>2]=d+4;return}h=a+696|0;g=J[h>>2];f=d-g>>2;c=f+ +1|0;if(c>>>0>=1073741824)break b;i=f<<2;e=e-g|0;f=e>>1;f=e>>>0>=2147483644?1073741823:c>>>0>>0?f:c;if(f){if(f>>>0>=1073741824)break a;c=vc(f<<2)}else c=0;e=i+c|0;J[e>>2]=b;b=e+4|0;if((d|0)!=(g|0)){while(1){e=e-4|0;d=d-4|0;J[e>>2]=J[d>>2];if((d|0)!=(g|0))continue;break}d=J[h>>2]}J[a+704>>2]=c+(f<<2);J[a+700>>2]=b;J[a+696>>2]=e;if(!d)break d;uc(d)}return}a=Z()|0;uc(c);ba(a|0);B()}nj(h);B()}Pd();B()}function zT(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;a:{b:{k=d-c|0; +i=k>>2;c:{if((i|0)<=0)break c;f=J[a+8>>2];j=J[a+4>>2];if((i|0)<=f-j>>2){g=j-b>>2;d:{if((g|0)>=(i|0)){f=j;h=d;break d}f=j;h=(g<<2)+c|0;if((h|0)!=(d|0)){e=h;while(1){J[f>>2]=J[e>>2];f=f+4|0;e=e+4|0;if((e|0)!=(d|0))continue;break}}J[a+4>>2]=f;if((g|0)<=0)break c}d=i<<2;g=f-(d+b|0)|0;i=g>>2;e=f;d=e-d|0;if(j>>>0>d>>>0)while(1){J[e>>2]=J[d>>2];e=e+4|0;d=d+4|0;if(j>>>0>d>>>0)continue;break}J[a+4>>2]=e;cd(f-(i<<2)|0,b,g);return cd(b,c,h-c|0)|0}g=J[a>>2];e=i+(j-g>>2)|0;if(e>>>0>=1073741824)break b;f=f-g|0; +h=f>>1;f=f>>>0>=2147483644?1073741823:e>>>0>>0?h:e;if(f){if(f>>>0>=1073741824)break a;e=vc(f<<2)}else e=0;l=b-g|0;h=e+(l&-4)|0;m=h;if((c|0)!=(d|0))m=xc(h,c,k&-4)+(i<<2)|0;c=e+(f<<2)|0;d=h;e:{if((b|0)==(g|0))break e;i=l-4|0;k=(i>>>2|0)+1&3;f:{if(!k){e=b;break f}f=0;e=b;while(1){d=d-4|0;e=e-4|0;J[d>>2]=J[e>>2];f=f+1|0;if((k|0)!=(f|0))continue;break}}if(i>>>0<12)break e;while(1){J[d-4>>2]=J[e-4>>2];J[d-8>>2]=J[e-8>>2];J[d-12>>2]=J[e-12>>2];d=d-16|0;e=e-16|0;J[d>>2]=J[e>>2];if((e|0)!=(g|0))continue; +break}}e=b;b=j-b|0;e=cd(m,e,b);J[a+8>>2]=c;J[a+4>>2]=b+e;J[a>>2]=d;if(g)uc(g);b=h}return b|0}qj(a);B()}Pd();B()}function kP(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=fc-16|0;fc=h;c=Dc(108);d=0;a:{if(!c)break a;J[c>>2]=0;J[c+4>>2]=0;e=c+4|0;d=2646864;while(1){f=d;d=d+24|0;if(J[f>>2]>0)continue;break}J[c+104>>2]=f+8;Ac(c+12|0,0,92);b:{c:{d:{e:{f:{if(Wg(a,c))break f;g=J[c>>2];if(g-65536>>>0<=4294967039)break f;d=2646864;while(1){f=d;i=J[d>>2];if((i|0)!=(g|0)){d=d+24|0;if((i|0)>=0)continue}break}J[c+ +104>>2]=f+8;if((g|0)==65359|g-65426>>>0<2|((g|0)==65497|(g&-16)==65328))break d;if(!Wg(a,e)){d=J[e>>2];if(d>>>0>2)break e}a=J[c+104>>2];if(!a)break b;a=J[a>>2];if(!a)break b;kc[a|0](c);break b}a=J[c+104>>2];if(!a)break b;a=J[a>>2];if(!a)break b;kc[a|0](c);break b}J[e>>2]=d-2;d=Vi(0,0);if(!d){a=J[c+104>>2];if(!a)break b;a=J[a>>2];if(!a)break b;kc[a|0](c);break b}g:{if(!oo(d,a,J[e>>2]))if((Xg(d,0,0)|0)>=0)break g;Pf(d);a=J[c+104>>2];if(!a)break b;a=J[a>>2];if(!a)break b;kc[a|0](c);break b}if(kc[J[J[c+ +104>>2]+4>>2]](c,b,d)|0){J[c+104>>2]=0;uc(c);Pf(d);d=0;break a}if(J[686392]>0)kF(c,J[655074]);f=tj(d);a=J[e>>2];if((f|0)!=(a|0)){j=h,k=a-tj(d)|0,J[j>>2]=k;rd(198491,h)}Pf(d);break c}J[e>>2]=0;if(J[686392]<=0)break c;kF(c,J[655074])}if(J[c>>2]==65361)J[b>>2]=J[c+48>>2];d=c;break a}uc(c);d=0}fc=h+16|0;return d}function lV(a){var b=0,c=0,d=0,e=0,f=0,g=0;J[a+8>>2]=0;H[a+4|0]=0;J[a>>2]=2433388;c=sh(a+16|0,a+12|0,20500,1);J[699344]=0;d=ha(5213,a+28|0,a+24|0,20500,4)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b| +0)!=1){J[699344]=0;e=ha(5213,a+40|0,a+36|0,20500,4)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[a+52>>2]=0;J[a+56>>2]=0;I[a+48>>1]=0;J[a+60>>2]=0;J[a+64>>2]=0;H[a+68|0]=0;J[699344]=0;b=a+72|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2412952;f=b;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;b=a+96|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2412952;g=b;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;b=a+120|0;J[b+ +20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2434544;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[a+144>>2]=0;J[a+148>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;H[a+168|0]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;Ac(a+240|0,0,3072);H[J[a+12>>2]]=0;J[J[a+36>>2]>>2]=0;J[J[a+24>>2]>>2]=0;J[a+8>>2]=1;return a}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;break d}a=Z()|0;Hd(g)}Hd(f)}hd(e)}hd(d)}hd(c);ba(a| +0);B()}function _o(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=fc-16|0;fc=e;a:{b:{if((kc[J[a+4>>2]](J[a+28>>2],b,e+8|0,1)|0)==1){d=K[e+8|0];i=d;break b}f=-1;if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break a}c:{d:{if((kc[J[a+4>>2]](J[a+28>>2],b,e+9|0,1)|0)==1){d=K[e+9|0];g=d>>>24|0;k=i|d<<8;break d}if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break c;k=d<<8|i;g=0}j=g;e:{if((kc[J[a+4>>2]](J[a+28>>2],b,e+10|0,1)|0)==1){d=K[e+10|0];break e}if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break c}h=d;f:{if((kc[J[a+4>>2]](J[a+28>>2],b, +e+11|0,1)|0)==1){d=K[e+11|0];break f}if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break c}g=d;g:{if((kc[J[a+4>>2]](J[a+28>>2],b,e+12|0,1)|0)==1){d=K[e+12|0];break g}if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break c}i=d;h:{if((kc[J[a+4>>2]](J[a+28>>2],b,e+13|0,1)|0)==1){d=K[e+13|0];break h}if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break c}f=d;i:{if((kc[J[a+4>>2]](J[a+28>>2],b,e+14|0,1)|0)==1){d=K[e+14|0];break i}if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break c}k=k|h<<16;h=j|h>>>16;j=g>>>8|0;g=g<<24|k;j=h|j;h=g;g=f<<8;h=h|0;f=g|(i| +j)|d<<16;if((kc[J[a+4>>2]](J[a+28>>2],b,e+15|0,1)|0)==1){i=h;d=f|K[e+15|0]<<24;f=0;break a}a=kc[J[a+24>>2]](J[a+28>>2],b)|0;i=a?0:h;d=a?0:f|d<<24;f=a?-1:0;break a}i=0;d=0;f=-1}J[c>>2]=i;J[c+4>>2]=d;fc=e+16|0;return f}function SYa(a,b,c,d){a=a|0;b=b|0;c=Q(c);d=Q(d);var e=0,f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;N[a+20>>2]=d;N[a+16>>2]=c;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;J[a+12>>2]=0;J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;i=a+4|0;a:{if(b){if(b>>>0>=1073741824){J[699344]=0;$(2268,g+8|0);a=J[699344];J[699344]= +0;if((a|0)==1)break a;B()}J[699344]=0;f=b<<2;e=_(4,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[g+8>>2]=e;b=e+f|0;J[g+16>>2]=b;J[g+12>>2]=b}J[699344]=0;h=ga(2354,g+20|0,1,g+8|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;f=J[i>>2];if(f){b=f;e=J[a+8>>2];if((b|0)!=(e|0)){while(1){b=e-12|0;j=J[b>>2];if(j){J[e-8>>2]=j;uc(j)}e=b;if((b|0)!=(f|0))continue;break}b=J[i>>2]}J[a+8>>2]=f;uc(b);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}J[a+4>>2]=J[h>>2];J[a+8>>2]=J[h+4>>2];J[a+12>>2]=J[h+8>>2];b=0;J[h+8>> +2]=0;J[h>>2]=0;J[h+4>>2]=0;f=J[g+8>>2];if(f){J[g+12>>2]=f;uc(f)}e=J[a>>2];if(e)while(1){f=J[J[a+4>>2]>>2]+(b<<2)|0;c=Q(Q(Q(Q(b>>>0)/Q(e>>>0))*Q(-255))+Q(255));b:{if(c=Q(0)){e=~~c>>>0;break b}e=0}e=P(e&255,65793)|-16777216;H[f|0]=e;H[f+1|0]=e>>>8;H[f+2|0]=e>>>16;H[f+3|0]=e>>>24;b=b+1|0;e=J[a>>2];if(b>>>0>>0)continue;break}fc=g+32|0;return a|0}a=Z()|0;b=J[g+8>>2];if(b){J[g+12>>2]=b;uc(b)}jj(i);ba(a|0);B()}function cE(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=fc-16|0;fc=h;J[h+ +8>>2]=a;J[h+12>>2]=a;g=fc-16|0;fc=g;J[g>>2]=J[h+8>>2];a=J[c+20>>2];f=a+((kc[J[c+12>>2]](g)>>>0)%M[c+4>>2]<<2)|0;e=J[f>>2];a:{if(!e)break a;i=a-4|0;while(1){if(kc[J[c+16>>2]](e,g)|0)break a;f=f-4|0;if(a>>>0>f>>>0)f=i+(J[c+4>>2]<<2)|0;e=J[f>>2];if(e)continue;break}}b:{c:{d:{a=J[f>>2];e:{if(!a){e=64;a=kc[J[d+4>>2]](d,8)|0;if(!a)break b;J[f>>2]=a;e=J[h+8>>2];J[a+4>>2]=b;J[a>>2]=e;f:{if(M[c+8>>2]>2])break f;i=J[c+4>>2];a=i<<1;J[c+4>>2]=a;J[c>>2]=(a>>>0)/3;e=0;if((a|0)<0){e=6;break c}b=J[c+20>>2]; +if(a){e=10;if(a>>>0>536870911)break c;a=i<<3;e=kc[J[d+4>>2]](d,a)|0;if(!e)break d;Ac(e,0,a)}J[c+20>>2]=e;if(i){a=b;while(1){e=J[a>>2];if(e){J[g+8>>2]=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);j=J[c+20>>2];f=j+((kc[J[c+12>>2]](g+8|0)>>>0)%M[c+4>>2]<<2)|0;e=J[f>>2];g:{if(!e)break g;l=j-4|0;while(1){if(kc[J[c+16>>2]](e,g+8|0)|0)break g;f=f-4|0;if(j>>>0>f>>>0)f=(J[c+4>>2]<<2)+l|0;e=J[f>>2];if(e)continue;break}}J[f>>2]=J[a>>2]}a=a+4|0;k=k+1|0;if((i|0)!=(k|0))continue;break}}if(!b)break f;kc[J[d+8>> +2]](d,b)}J[c+8>>2]=J[c+8>>2]+1;break e}J[a+4>>2]=b}e=0;break b}J[c+20>>2]=0;e=64;break b}J[c+20>>2]=0}fc=g+16|0;fc=h+16|0;return e}function rV(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-112|0;fc=e;b=(b|0)==-1?J[a+60>>2]:b;a:{b:{c:{d:{e:{if(!(K[a+13|0]&64|(L[a+138>>1]!=1|L[a+90>>1]!=6))){J[e+84>>2]=e+110;J[e+80>>2]=e+108;ne(a,530,e+80|0);d=L[e+108>>1];h=P(d,L[e+110>>1]);if(!h){b=0;Uc(J[a+628>>2],J[a>>2],70812,0);break a}c=J[a+56>>2];if(c>>>0<0-d>>>0)c=((c+d|0)-1>>>0)/(d>>>0)|0;else c=0;d=P(c,d);f=L[a+84>> +1];c=vEb(d,0,f,0);g=(jc|0)!=0;f:{g:{if(f){if(!g)break g;f=J[a>>2];c=J[a+628>>2];J[e+48>>2]=71705;Uc(c,f,73496,e+48|0);f=L[a+84>>1];c=vEb(f,0,d,0);g=(jc|0)!=0;d=!f;break e}if(c&7)break f;d=1;break e}if(!(c&7))break d;if(!g)break f;d=J[a>>2];c=J[a+628>>2];J[e+64>>2]=71705;Uc(c,d,73496,e- -64|0);c=0}c=(c>>>3|0)+1|0;break b}c=wj(a);b=vEb(c,0,b,0);d=jc;if(!c|!d)break a;b=J[a>>2];a=J[a+628>>2];J[e+96>>2]=71705;Uc(a,b,73496,e+96|0);b=0;break a}if(d)break c}if(!g)break c;d=J[a>>2];c=J[a+628>>2];J[e+32>>2]= +71705;Uc(c,d,73496,e+32|0);c=0}c=c>>>3|0}d=L[e+110>>1];if(0-d>>>0>b>>>0)b=((b+d|0)-1>>>0)/(d>>>0)|0;else b=0;b=vEb(c,0,P(b,d),0);d=jc;if(!(!c|!d)){c=J[a>>2];b=J[a+628>>2];J[e+16>>2]=71705;Uc(b,c,73496,e+16|0);b=0}c=(b|0)/(h|0)|0;if((c|0)>=0){b=(c<<1)+b|0;break a}c=J[a>>2];a=J[a+628>>2];J[e>>2]=71705;Uc(a,c,73496,e)}fc=e+112|0;return b}function UL(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;b=fc-32800|0;fc=b;c=b+32|0;Ac(c,0,32768);d=fc-16|0;fc=d;e=Wa(-100,13253,c|0,32768)|0;c=(d+15|0)==(c|0)? +(e|0)<=0?e:0:e;if(c>>>0>=4294963201){J[698583]=0-c;c=-1}fc=d+16|0;a:{b:{c:{if((c|0)<=0){J[a>>2]=0;H[a+11|0]=0;break c}c=Yc(b+32|0);if(c>>>0>=2147483632)break b;d:{if(c>>>0<=10){H[b+31|0]=c;d=b+20|0;break d}e=(c|15)+1|0;d=vc(e);J[b+28>>2]=e|-2147483648;J[b+20>>2]=d;J[b+24>>2]=c}g=xc(d,b+32|0,c)+c|0,h=0,H[g|0]=h;J[b+16>>2]=0;J[699344]=0;J[b+8>>2]=0;J[b+12>>2]=0;c=H[b+31|0];d=(c|0)<0;ca(3018,(d?J[b+20>>2]:b+20|0)|0,(d?J[b+24>>2]:c&255)|0,b+8|0);c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;if(H[b+19| +0]<0)uc(J[b+8>>2]);if(H[b+31|0]<0)uc(J[b+20>>2]);ba(a|0);B()}c=J[b+12>>2];J[a>>2]=J[b+8>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+16>>2];if(H[b+31|0]>=0)break c;uc(J[b+20>>2])}fc=b+32800|0;break a}_d(b+20|0);B()}b=ro(a,47);e:{c=ro(a,92);f:{g:{if((c|0)!=-1){b=(b|0)==-1?c:b>>>0>>0?c:b;break g}if((b|0)==-1)break f}J[699344]=0;b=na(2963,f|0,a|0,0,b|0,f+15|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(H[a+11|0]<0)uc(J[a>>2]);c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2]}fc=f+16|0;return}b=Z()| +0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}function A2a(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;f=J[a+4>>2];m=f+37|0;n=J[f+24>>2];l=J[a+12>>2];g=J[a+8>>2];i=J[f+44>>2];e=J[a+16>>2];k=J[a+20>>2];a:{if(!(!i|e>>>0>=k>>>0)){J[f+44>>2]=0;h=H[f+36|0];H[f+36|0]=0;c=J[f+48>>2];d=0;break a}d=1}b:{c:{d:{while(1){e:{f:{g:{if(!d){h:{if((c|0)<=(h|0))break h;while(1){if(g>>>0>=l>>>0)break d;d=K[g|0];H[h+m|0]=d;if((d&192)!=128)break h;g=g+1|0;i=d+(i<<6)|0;h=h+1|0;if((h|0)!=(c|0))continue; +break}h=c}if((c|0)!=(h|0))break c;j=c<<2;d=i-J[j+741344>>2]|0;if(d>>>0>1114111|d>>>0>2])break c;i:{if((n|0)==740848){if((c|0)<4)break i;break c}if((d&-2048)==55296)break c}if(d>>>0>65535)break g;I[e>>1]=d;e=e+2|0;break f}c=g;while(1){if(c>>>0>=l>>>0){g=c;break b}if(e>>>0>=k>>>0){g=c;break b}g=c+1|0;i=K[c|0];c=i<<24>>24;if((c|0)>=0){I[e>>1]=c&255;e=e+2|0;c=g;continue}break}H[m|0]=c;c=H[i+741088|0];h=1;d=0;continue}I[e>>1]=(d+67043328>>>10|0)-10240;j=d&1023|-9216;d=e+2|0;if(d>>>0>=k>>>0)break e; +I[e+2>>1]=j;e=e+4|0}d=1;continue}break}H[f+65|0]=1;I[f+116>>1]=j;J[b>>2]=15;e=d;break b}J[f+48>>2]=c;J[f+44>>2]=i;H[f+36|0]=h;break b}H[f+36|0]=h;J[b>>2]=12}if(!(e>>>0>>0|g>>>0>=l>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=g;J[a+16>>2]=e}function _Xa(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;f=J[a+420>>2];if(J[a+236>>2]){d=J[f+68>>2];if(!d){Vw(a,J[f+72>>2]);d=J[a+236>>2];J[f+72>>2]=J[f+72>>2]+1&7}J[f+68>>2]=d-1}h=J[b>>2];i=J[a+380>>2];d=J[a+292>>2];b=J[a+364>>2];g=b;e=b;a:{if((e|0)<= +0)break a;b:{c:{while(1){e=I[(J[(g<<2)+i>>2]<<1)+h>>1];d:{if((e|0)>=0){if(!(e>>>J[a+372>>2]|0))break d;break c}if(0-e>>>J[a+372>>2]|0)break c}e=(g|0)>1;g=g-1|0;if(e)continue;break}g=0;break b}e=g;while(1){c=I[(J[(e<<2)+i>>2]<<1)+h>>1];e:{if((c|0)>=0){if(!(c>>>J[a+368>>2]|0))break e;break a}if(0-c>>>J[a+368>>2]|0)break a}c=(e|0)>1;e=e-1|0;if(c)continue;break}}e=0}j=J[d+24>>2];c=J[a+360>>2];if((g|0)>=(c|0)){k=f+204|0;l=(j<<2)+f|0;while(1){d=(J[l+140>>2]+P(c,3)|0)-3|0;if((c|0)>(e|0))We(a,d,0);b=c;f:{while(1){g:{h:{c= +I[(J[(b<<2)+i>>2]<<1)+h>>1];if((c|0)>=0){c=c>>>J[a+372>>2]|0;if(!c)break h;if((c|0)==1)break g;We(a,d+2|0,c&1);break f}c=0-c>>>J[a+372>>2]|0;if(!c)break h;if((c|0)!=1){We(a,d+2|0,c&1);break f}We(a,d+1|0,1);We(a,k,1);break f}We(a,d+1|0,0);b=b+1|0;d=d+3|0;continue}break}We(a,d+1|0,1);We(a,k,0)}c=b+1|0;if((b|0)<(g|0))continue;break}b=J[a+364>>2]}if((b|0)>=(c|0))We(a,(J[((j<<2)+f|0)+140>>2]+P(c,3)|0)-3|0,1);return 1}function yC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;a:{b:{c:{if(!a)break c;d= +J[a+80>>2];if(!d)break c;c=te(d,b,-1);if(!c){d=0;break a}d=0;b=kc[J[663195]](60)|0;if(!b){J[f>>2]=14579;Hc(0,0,0,0,0,2,2,3,14579,0,0,0,32879,f);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=1;J[b+36>>2]=0;J[b+8>>2]=c;d:{if(!J[693393])break d;d=J[693390];if(!d)break d;kc[d|0](b)}d=b;break b}d=0;g=fc-16|0;fc=g;e:{if(!b)break e;c=kc[J[663195]](60)| +0;if(!c){J[g>>2]=14579;Hc(0,0,0,0,0,2,2,3,14579,0,0,0,32879,g);break e}J[c>>2]=0;J[c+4>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=1;d=b;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}d=0;e=e-b|0;f:{if((e|0)<0)break f;h=kc[J[663198]](e+1|0)|0;if(!h){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break f}d=xc(h,b,e);H[e+d|0]=0}J[c+36>>2]=0;J[c+8>>2]=d;g:{if(!J[693393])break g; +b=J[693390];if(!b)break g;kc[b|0](c)}d=c}fc=g+16|0;if(d)break b;d=0;break a}J[d+32>>2]=a}fc=f+16|0;return d}function Bk(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;i=fc-16|0;fc=i;m=1;a:{if(!b)break a;J[b>>2]=0;d=!a;if(d|((d?-1:J[a+8>>2])|0)!=1)break a;d=c;b:{if(d)break b;d=0;f=kd(256,4);if(!f)break b;while(1){J[f+(d<<2)>>2]=(((((((d&1)+(d>>>7|0)|0)+(d>>>1&1)|0)+(d>>>2&1)|0)+(d>>>3&1)|0)+(d>>>4&1)|0)+(d>>>5&1)|0)+(d>>>6&1);d=d+1|0;if((d|0)!=256)continue;break}d=f}m= +0;Df(a,i+12|0,i+8|0,0);g=a?J[a+12>>2]:-1;f=a?J[a+40>>2]:0;a=0;j=J[i+8>>2];c:{if((j|0)<=0)break c;a=J[i+12>>2];k=a&31;n=-1<<32-k;l=a>>5;if((l|0)>0){a=0;while(1){e=0;while(1){h=J[(e<<2)+f>>2];if(h)a=J[(h>>>22&1020)+d>>2]+(J[(h>>>14&1020)+d>>2]+(J[(h>>>6&1020)+d>>2]+(J[((h&255)<<2)+d>>2]+a|0)|0)|0)|0;e=e+1|0;if((l|0)!=(e|0))continue;break}d:{if(!k)break d;e=J[(l<<2)+f>>2]&n;if(!e)break d;a=J[(e>>>22&1020)+d>>2]+(J[(e>>>14&1020)+d>>2]+(J[(e>>>6&1020)+d>>2]+(J[((e&255)<<2)+d>>2]+a|0)|0)|0)|0}f=(g<<2)+ +f|0;o=o+1|0;if((o|0)!=(j|0))continue;break}break c}if(!k){a=0;break c}h=g<<2;a=0;while(1){g=J[f>>2]&n;if(g)a=J[(g>>>22&1020)+d>>2]+(J[(g>>>14&1020)+d>>2]+(J[(g>>>6&1020)+d>>2]+(J[((g&255)<<2)+d>>2]+a|0)|0)|0)|0;f=f+h|0;e=e+1|0;if((j|0)!=(e|0))continue;break}}J[b>>2]=a;if(c)break a;uc(d)}fc=i+16|0;return m|0}function Bvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;if(e){m=e-2|0;p=(e|0)==1;while(1){a=f;h=L[a>>1];I[g>>1]=h;f=a+2|0;g=g+2|0;a:{if(l>>> +0>m>>>0)break a;i=l?(l|0)==(m|0)?d:b:c;j=!l&p;if(j){if(i>>>0<2)break a;a=i-1|0;j=a&7;if(i-2>>>0>=7){i=a&-8;a=0;while(1){I[g+14>>1]=h;I[g+12>>1]=h;I[g+10>>1]=h;I[g+8>>1]=h;I[g+6>>1]=h;I[g+4>>1]=h;I[g+2>>1]=h;I[g>>1]=h;g=g+16|0;a=a+8|0;if((i|0)!=(a|0))continue;break}}a=0;if(!j)break a;while(1){I[g>>1]=h;g=g+2|0;a=a+1|0;if((j|0)!=(a|0))continue;break}break a}if((h|0)!=L[f>>1]){if(i>>>0<2)break a;j=j?0:f;h=1;q=i<<1;while(1){k=K[a|0]|K[a+1|0]<<8;n=k>>>8|0;o=K[j|0]|K[j+1|0]<<8;k=((k<<8|n)&65535)+((i+(P(((o<< +8|o>>>8)&65535)-((n|k<<8)&65535)|0,h)<<1)|0)/(q|0)|0)&65535;k=k<<8|k>>>8;H[g|0]=k;H[g+1|0]=k>>>8;g=g+2|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}if(i>>>0<2)break a;a=i-1|0;j=a&7;if(i-2>>>0>=7){i=a&-8;a=0;while(1){I[g+14>>1]=h;I[g+12>>1]=h;I[g+10>>1]=h;I[g+8>>1]=h;I[g+6>>1]=h;I[g+4>>1]=h;I[g+2>>1]=h;I[g>>1]=h;g=g+16|0;a=a+8|0;if((i|0)!=(a|0))continue;break}}a=0;if(!j)break a;while(1){I[g>>1]=h;g=g+2|0;a=a+1|0;if((j|0)!=(a|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function cBa(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=fc-32|0;fc=g;a:{b:{if(J[b>>2]){d=0;H[a+96|0]=K[44294];b=K[44290]|K[44291]<<8|(K[44292]<<16|K[44293]<<24);c=K[44286]|K[44287]<<8|(K[44288]<<16|K[44289]<<24);H[a+88|0]=c;H[a+89|0]=c>>>8;H[a+90|0]=c>>>16;H[a+91|0]=c>>>24;H[a+92|0]=b;H[a+93|0]=b>>>8;H[a+94|0]=b>>>16;H[a+95|0]=b>>>24;b=K[44282]|K[44283]<<8|(K[44284]<<16|K[44285]<<24);c=K[44278]|K[44279]<<8|(K[44280]<<16|K[44281]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]= +b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[44274]|K[44275]<<8|(K[44276]<<16|K[44277]<<24);c=K[44270]|K[44271]<<8|(K[44272]<<16|K[44273]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;break b}e=xy(g+4|0,0,0);J[699344]=0;_(52,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[699344]=0;d=ga(51,a|0,e|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;if(d){J[699344]=0;H[e+12|0]=0;a=J[e+4>>2];f=J[699344]; +J[699344]=0;if((f|0)==1)break a;J[b>>2]=a;J[699344]=0;a=J[e+8>>2];b=J[e+4>>2];f=J[699344];J[699344]=0;if((f|0)==1)break a;J[c>>2]=b?a:-1}lo(e)}fc=g+32|0;return d|0}a=Z()|0;lo(e);ba(a|0);B()}function VB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=fc+-64|0;fc=c;J[c+48>>2]=13;J[c+32>>2]=13;a:{if(J[Ec(b,785334,c+48|0,0)>>2]!=6){Cc(1,-1,786292,0);break a}d=J[J[c+56>>2]+12>>2];J[a+4>>2]=(d|0)/2;b:{if((d|0)<=65){c:{if((d|0)>=2)while(1){f=e<<1;d=c+32|0;Sc(J[c+56>>2],f,d,0);h=787887;g=J[c+32>>2];if(g-3>>>0<4294967294)break c; +i=(e<<4)+a|0;O[i+16>>3]=(g|0)==1?+J[c+40>>2]:O[c+40>>3];yc(d);Sc(J[c+56>>2],f|1,d,0);f=J[c+32>>2];if(f-3>>>0<4294967294)break c;O[i+24>>3]=(f|0)==1?+J[c+40>>2]:O[c+40>>3];yc(d);e=e+1|0;if((e|0)>2])continue;break}d=c+48|0;yc(d);J[a+8>>2]=0;J[a+1040>>2]=0;e=1;if(J[Ec(b,789002,d,0)>>2]!=6)break a;J[a+1040>>2]=1;b=J[J[c+56>>2]+12>>2];J[a+8>>2]=(b|0)/2;if((b|0)>65)break b;if((b|0)<2)break a;b=0;while(1){e=b<<1;d=c+32|0;Sc(J[c+56>>2],e,d,0);h=790584;f=J[c+32>>2];if(f-3>>>0<4294967294)break c;g=(b<< +4)+a|0;O[g+528>>3]=(f|0)==1?+J[c+40>>2]:O[c+40>>3];yc(d);Sc(J[c+56>>2],e|1,d,0);f=J[c+32>>2];if(f-3>>>0<4294967294)break c;e=1;O[g+536>>3]=(f|0)==1?+J[c+40>>2]:O[c+40>>3];yc(d);b=b+1|0;if((b|0)>2])continue;break}break a}e=0;Cc(1,-1,h,0);yc(c+32|0);break a}J[c>>2]=32;Cc(1,-1,787225,c);break a}J[c+16>>2]=32;Cc(1,-1,789891,c+16|0);e=0}yc(c+48|0);fc=c- -64|0;return e}function F_(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=J[a+4>>2];if(J[a+8>>2]>=((i|0)/2|0)){d=i<<1|1;J[a+4>>2]=d;k=J[a>>2]; +d=Gd(d,8);J[a>>2]=d;h=J[a+4>>2];a:{if((h|0)<=0)break a;if(h>>>0>=8){j=h&-8;while(1){e=f<<3;J[e+d>>2]=0;J[d+(e|8)>>2]=0;J[d+(e|16)>>2]=0;J[d+(e|24)>>2]=0;J[d+(e|32)>>2]=0;J[d+(e|40)>>2]=0;J[d+(e|48)>>2]=0;J[d+(e|56)>>2]=0;f=f+8|0;l=l+8|0;if((j|0)!=(l|0))continue;break}}e=h&7;if(!e)break a;while(1){J[d+(f<<3)>>2]=0;f=f+1|0;g=g+1|0;if((e|0)!=(g|0))continue;break}}g=0;if((i|0)>0)while(1){h=(g<<3)+k|0;e=J[h>>2];if(e){f=0;d=K[e|0];if(d)while(1){f=P(f,17)+(d&255)|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}j= +J[a>>2];d=f;f=J[a+4>>2];e=(d>>>0)%(f>>>0)|0;d=j+(e<<3)|0;if(J[d>>2])while(1){d=e+1|0;e=(d|0)!=(f|0)?d:0;d=j+(e<<3)|0;if(J[d>>2])continue;break}e=J[h+4>>2];J[d>>2]=J[h>>2];J[d+4>>2]=e}g=g+1|0;if((i|0)!=(g|0))continue;break}Mc(k)}f=0;e=K[b|0];if(e){d=b;while(1){f=P(f,17)+(e&255)|0;e=K[d+1|0];d=d+1|0;if(e)continue;break}}g=J[a>>2];d=f;f=J[a+4>>2];e=(d>>>0)%(f>>>0)|0;d=J[g+(e<<3)>>2];b:{if(d)while(1){if(!Ic(d,b))break b;d=e+1|0;e=(d|0)!=(f|0)?d:0;d=J[(e<<3)+g>>2];if(d)continue;break}b=Id(b);g=J[a>>2]; +J[g+(e<<3)>>2]=b}J[((e<<3)+g|0)+4>>2]=c;J[a+8>>2]=J[a+8>>2]+1}function AZa(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{h=J[c>>2];if(h>>>0>=d>>>0)break a;j=J[a+396>>2];m=j+8|0;while(1){if(M[f>>2]>=g>>>0)break a;k=J[j+52>>2];i=J[a+272>>2]-k|0;l=d-h|0;i=i>>>0>>0?i:l;kc[J[J[a+408>>2]+4>>2]](a,(h<<2)+b|0,m,k,i);J[c>>2]=i+J[c>>2];k=i+J[j+52>>2]|0;J[j+52>>2]=k;l=J[j+48>>2];J[j+48>>2]=l-i;h=J[a+272>>2];b:{c:{if(!((i|0)!=(l|0)|(h|0)<=(k|0))){i=0;k=J[a+ +76>>2];if((k|0)>0){while(1){h=J[j+52>>2];l=J[a+272>>2];if((h|0)<(l|0)){k=J[(j+(i<<2)|0)+8>>2];n=J[a+28>>2];o=h-1|0;while(1){ao(k,o,k,h,1,n);h=h+1|0;if((l|0)!=(h|0))continue;break}k=J[a+76>>2]}i=i+1|0;if((k|0)>(i|0))continue;break}h=J[a+272>>2]}J[j+52>>2]=h;break c}if((h|0)!=(k|0))break b}kc[J[J[a+412>>2]+4>>2]](a,m,0,e,J[f>>2]);J[j+52>>2]=0;J[f>>2]=J[f>>2]+1}if(!(J[j+48>>2]|M[f>>2]>=g>>>0)){c=J[a+76>>2];if((c|0)>0){i=J[a+84>>2];b=0;while(1){d=(P(J[i+40>>2],J[i+12>>2])|0)/J[a+280>>2]|0;h=P(d,J[f>> +2]);d=P(d,g);if((h|0)<(d|0)){j=P(J[i+36>>2],J[i+28>>2]);c=J[(b<<2)+e>>2];m=h-1|0;while(1){ao(c,m,c,h,1,j);h=h+1|0;if((d|0)!=(h|0))continue;break}c=J[a+76>>2]}i=i+88|0;b=b+1|0;if((c|0)>(b|0))continue;break}}J[f>>2]=g;return}h=J[c>>2];if(h>>>0>>0)continue;break}}}function nQ(a){var b=0,c=0,d=0,e=0,f=0,g=0;g=fc-16|0;fc=g;a:{b:{c:{b=J[a+584>>2];if(!K[b+205|0]){if(!K[b+303|0]){Uc(J[a+628>>2],96880,87870,0);break b}if(!qo(b,g+14|0))break b;e=K[b+194|0];if(L[g+14>>1]!=((e<<1)+6|0)){Uc(J[a+628>>2],96880, +87870,0);break b}c=L[b+1148>>1];if(!c){if(!ek(b))break b;c=L[b+1148>>1];if(!c)break a;e=K[b+194|0]}d=J[b+1152>>2];f=K[d|0];c=c-1|0;I[b+1148>>1]=c;d=d+1|0;J[b+1152>>2]=d;e=e&255;if((e|0)!=(f|0))break c;if(e){a=0;while(1){d=L[b+1148>>1];if(!d){if(!ek(b)){d=0;break b}d=L[b+1148>>1];if(!d)break a}c=J[b+1152>>2];e=K[c|0];f=d-1|0;I[b+1148>>1]=f;J[b+1152>>2]=c+1;d=K[b+193|0]+a|0;H[(d+b|0)+325|0]=e;d:{if(f&65535){e=L[b+1148>>1];break d}if(!ek(b)){d=0;break b}e=L[b+1148>>1];if(!e)break a;d=K[b+193|0]+a|0}c= +J[b+1152>>2];f=K[c|0];I[b+1148>>1]=e-1;J[b+1152>>2]=c+1;H[(b+d|0)+328|0]=f;a=a+1|0;if(a>>>0>1];d=J[b+1152>>2]}e=c;a=c&65535;c=a>>>0>=3?3:a;I[b+1148>>1]=e-c;J[b+1152>>2]=c+d;d=1;if(a>>>0>2)break b;H[b+1140|0]=0;a=J[b+1144>>2];c=c^3;c=(a>>>0>>0?a:c)&65535;J[b+1144>>2]=a-c;J[b+1136>>2]=c+J[b+1136>>2];break b}fa(87800,70472,1640,96880);B()}d=0;Uc(J[a+628>>2],96880,87870,0)}fc=g+16|0;return d}fa(80397,70472,1949,96717);B()}function Xx(a){a=a|0;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;c=J[a+532>>2];if(c){h=J[c+4>>2];f=J[c>>2];e=J[a+100>>2];b=J[c+24>>2];if(b)kc[J[e+8>>2]](e,b);J[c+24>>2]=0;if(f>>>0>=2)Ac(c+28|0,0,(f<<2)-4|0);b=J[c+216>>2];if(b)kc[J[e+8>>2]](e,b);J[c+216>>2]=0;b=J[c+148>>2];if(b)kc[J[e+8>>2]](e,b);J[c+148>>2]=0;b=J[c+288>>2];if(b)kc[J[e+8>>2]](e,b);J[c+288>>2]=0;a:{if(!f)break a;if(f>>>0>=4){n=f&-4;i=c+212|0;j=c+144|0;k=c+284|0;while(1){b=d<<2;J[b+i>>2]=0;J[b+j>>2]=0;J[b+k>>2]=0;g=b|4;J[g+i>>2]=0;J[g+j>>2]=0;J[g+k>>2]=0;g=b| +8;J[g+i>>2]=0;J[g+j>>2]=0;J[g+k>>2]=0;b=b|12;J[b+i>>2]=0;J[b+j>>2]=0;J[b+k>>2]=0;d=d+4|0;l=l+4|0;if((l|0)!=(n|0))continue;break}}b=f&3;if(!b)break a;while(1){f=c+(d<<2)|0;J[f+284>>2]=0;J[f+144>>2]=0;J[f+212>>2]=0;d=d+1|0;m=m+1|0;if((b|0)!=(m|0))continue;break}}d=J[c+136>>2];if(d)kc[J[e+8>>2]](e,d);J[c+136>>2]=0;J[c+140>>2]=0;b:{if(!h)break b;d=0;while(1){f=c+(d<<2)|0;b=J[f+8>>2];if(b)kc[J[e+8>>2]](e,b);J[f+8>>2]=0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!h)break b;f=c+88|0;d=0;while(1){c=f+P(d, +12)|0;b=J[c+4>>2];if(b)kc[J[e+8>>2]](e,b);H[c|0]=0;J[c+4>>2]=0;d=d+1|0;if((h|0)!=(d|0))continue;break}}c=J[a+532>>2];if(c)kc[J[e+8>>2]](e,c);J[a+532>>2]=0}}function Paa(a,b){var c=0,d=0;a:{if(!a)break a;b:{c:{if((b|0)>=32){c=K[a|0];if(c)break c;if(K[a+1|0]|K[a+2|0]|(K[a+3|0]!=12|K[a+4|0]!=106))break b;if(K[a+5|0]!=80|K[a+6|0]!=32|(K[a+7|0]!=32|K[a+8|0]!=13))break b;if(K[a+9|0]!=10|K[a+10|0]!=135|(K[a+12|0]|K[a+11|0]!=10))break b;if(K[a+13|0]|K[a+14|0]|(K[a+16|0]!=102|K[a+17|0]!=116))break b;if(K[a+ +18|0]!=121|K[a+19|0]!=112|(K[a+20|0]!=106|K[a+21|0]!=112))break b;if(K[a+22|0]!=50|K[a+23|0]!=32|(K[a+24|0]|K[a+25|0]))break b;if(K[a+26|0])break b;d=!K[a+27|0];break b}if((b|0)<4)break a;c=K[a|0]}d:{if((c|0)!=255)break d;if(K[a+1|0]!=79){c=255;break d}c=255;if(K[a+2|0]!=255)break d;d=(K[a+3|0]==81)<<1}if(c|(b|0)<32)break a}if(K[a+1|0]|K[a+2|0]|(K[a+3|0]!=12|K[a+4|0]!=106))break a;if(K[a+5|0]!=80|K[a+6|0]!=32|(K[a+7|0]!=32|K[a+8|0]!=13))break a;if(K[a+9|0]!=10|K[a+10|0]!=135|(K[a+12|0]|K[a+11|0]!= +10))break a;if(K[a+13|0]|K[a+14|0]|(K[a+15|0]!=24|K[a+16|0]!=102))break a;if(K[a+17|0]!=116|K[a+18|0]!=121|(K[a+19|0]!=112|K[a+20|0]!=109))break a;if(K[a+21|0]!=106|K[a+22|0]!=112|(K[a+24|0]|K[a+23|0]!=50))break a;if(K[a+25|0]|K[a+26|0]|(K[a+27|0]|K[a+28|0]!=109))break a;if(K[a+29|0]!=106|K[a+30|0]!=112)break a;d=K[a+31|0]==50?3:d}return d}function pE(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;if(a&4){f=d>>31;e=(f^d)-f|0;a:{b:{c:{if((c|0)==1){if(!(a&2))break c;break b}if(a& +1)break b}d:{a=P(c,7676)+b|0;if(!J[a+52>>2])break d;c=J[a+60>>2];a=e-c|0;b=a>>31;if((a^b)-b>>>0>39)break d;e=(c|0)<=48?48:c;break a}if(e>>>0<=53){e=(54-e>>>1&127)+e|0;break a}if(e>>>0>191)break a;b=e&63;if(b>>>0<10)break a;a=e&2147483584;if(b>>>0<=21){e=a|10;break a}e=b-42>>>0<12?a|54:e;break a}e:{f:{g:{h:{i:{b=P(c,7676)+b|0;f=J[b+52>>2];if(f){l=b+56|0;q=f&1;if((f|0)!=1)break i;h=98;b=0;f=e;break h}b=e+32&2147483584;f=e;break g}r=f&-2;h=98;b=0;f=e;while(1){m=J[(P(b|1,12)+l|0)+4>>2];i=e-m|0;n=i>>31; +o=J[(P(b,12)+l|0)+4>>2];g=e-o|0;j=g>>31;g=(g^j)-j|0;p=(g|0)<(h|0);i=(i^n)-n|0;g=p?g:h;j=(i|0)<(g|0);h=j?i:g;f=j?m:p?o:f;b=b+2|0;k=k+2|0;if((r|0)!=(k|0))continue;break}}if(q){k=J[(P(b,12)+l|0)+4>>2];b=e-k|0;g=b>>31;f=((b^g)-g|0)<(h|0)?k:f}b=f+32&-64;if((e|0)<(f|0))break f}b=(b|48)>(e|0)?f:e;break e}b=(b-48|0)<(e|0)?f:e}if((c|0)==1){e=64;if((b|0)<64)break a;e=b+16&-64;break a}if(a&8){e=64;if((b|0)<64)break a;e=b+32&-64;break a}if((b|0)<=47){e=b- -64>>1;break a}if(b>>>0<=127){e=b+22&-64;break a}e=b+ +32&-64}d=(d|0)<0?0-e|0:e}return d}function bza(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;f=fc+-64|0;fc=f;J[f+56>>2]=0;J[f+60>>2]=0;J[f+48>>2]=0;J[f+52>>2]=0;h=f+48|0;J[h>>2]=2397928;J[h+4>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;J[699344]=0;ia(5597,b|0,c|0,h|0,1);b=J[699344];J[699344]=0;a:{b:{if((b|0)==1)break b;J[699344]=0;a=_(5252,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;c:{d:{b=J[h+8>>2];e:{if(!b)break e;i=f+20|0;while(1){e=J[b+8>>2];g=J[J[e>>2]+12>>2];J[699344]=0;j=g;g=f+12| +0;ia(j|0,g|0,e|0,c|0,d|0);e=J[699344];J[699344]=0;f:{g:{h:{if((e|0)!=1){J[699344]=0;aa(5253,a|0,g|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;J[f+36>>2]=2392964;J[f+12>>2]=2392932;e=J[f+40>>2];if(e){g=J[e+4>>2]-1|0;J[e+4>>2]=g;if(!g)kc[J[J[e>>2]+4>>2]](e);J[f+40>>2]=0}J[f+28>>2]=2392964;e=J[f+32>>2];if(e){g=J[e+4>>2]-1|0;J[e+4>>2]=g;if(!g)kc[J[J[e>>2]+4>>2]](e);J[f+32>>2]=0}wc(i);e=J[a+8>>2];if(!e|!J[e+8>>2])break f;J[699344]=0;e=f+12|0;ca(5401,e|0,a|0,0);g=J[699344];J[699344]=0;if((g|0)==1)break d; +g=J[f+12>>2];if(g)break g;wc(e);break f}b=Z()|0;break c}b=Z()|0;Ed(f+12|0);break c}e=J[g+8>>2];wc(f+12|0);if(e)break e}b=J[b>>2];if(b)continue;break}}id(h);fc=f- -64|0;return}b=Z()|0}Ed(a);break a}b=Z()|0}id(h);ba(b|0);B()}function bnb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;e=fc-464|0;fc=e;f=b+8|0;g=J[f+4>>2];J[e+16>>2]=J[f>>2];J[e+20>>2]=g;J[e+40>>2]=J[b+32>>2];f=J[b+28>>2];J[e+32>>2]=J[b+24>>2];J[e+36>>2]=f;f=J[b+20>>2];J[e+24>>2]=J[b+16>>2];J[e+28>>2]=f;f=J[b+4>>2]; +g=J[b>>2];J[e+16>>2]=2;J[e+8>>2]=g;J[e+12>>2]=f;a:switch(J[b+8>>2]-7|0){case 0:case 3:J[e+16>>2]=3;break;default:break a}Dq(a,e+452|0);b:{if(J[e+460>>2]!=3){h=162;break b}i=J[a>>2];f=J[e+452>>2]+1|0;J[a>>2]=f;j=J[a+8>>2];h=J[e+456>>2]-1|0;J[a+8>>2]=h;g=e+48|0;c:{if(f>>>0>=h>>>0)break c;f=0;while(1){Dq(a,e+440|0);g=(e+48|0)+P(f,12)|0;if(!J[e+448>>2])break c;if(f>>>0<=31){h=J[e+444>>2];J[g>>2]=J[e+440>>2];J[g+4>>2]=h;J[g+8>>2]=J[e+448>>2]}f=f+1|0;if(M[a>>2]>2])continue;break}g=(e+48|0)+P(f,12)| +0}J[a+8>>2]=j;J[a>>2]=i;f=g-(e+48|0)|0;if((f|0)<0){h=162;break b}f=(f>>>0)/12|0;g=J[b+24>>2];g=f>>>0>>0?f:g;d:{if(J[b+8>>2]==7)break d;b=J[b+28>>2];if(!b)break d;H[b+J[c>>2]|0]=g}e:{if(g){f=e+48|0;b=J[e+24>>2];k=K[e+28|0];while(1){J[a>>2]=J[f>>2];J[a+8>>2]=J[f+4>>2];h=m7(a,e+8|0,c,d,e);if(h)break e;b=b+k|0;J[e+24>>2]=b;f=f+12|0;h=(g|0)>1;g=g-1|0;if(h)continue;break}}h=0}J[a+8>>2]=j;J[a>>2]=i}fc=e+464|0;return h|0}function Hrb(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=fc- +1952|0;fc=g;f=xf(g+976|0,0);i=J[a+8>>2];j=J[a+16>>2];k=J[a+12>>2];e=J[a+4>>2];J[699344]=0;e=za(18,f|0,j|0,e|0,i|0,32,e<<2,(k^-1)>>>31|0,1)|0;i=J[699344];J[699344]=0;a:{b:{if((i|0)!=1){c:{if(!e)break c;J[699344]=0;e=xf(g,0);h=J[699344];J[699344]=0;d:{if((h|0)!=1){c=J[c>>2];b=J[b>>2];J[699344]=0;h=na(24,f|0,b|0,c|0,2,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;if(h){if(d){b=J[a+16>>2];if(b)uc(b);b=J[a+20>>2];if(b)uc(b);J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+ +21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}J[699344]=0;da(9,e|0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break d}J[e>>2]=1032;J[699344]=0;_(13,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;_(14,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c}break a}a=Z()|0;break b}a=Z()|0;Jj(e);break b}J[f>>2]=1032;J[699344]=0;_(13,f|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;J[699344]=0;_(14,f| +0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;fc=g+1952|0;return h|0}a=Z()|0}Jj(f);ba(a|0);B()}ea(0)|0;Bc();B()}function gx(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!a)break a;c=J[a+64>>2];if(!c)break a;b=J[a+68>>2];e=b?b:c;b=J[e+4>>2];if(b>>>0>18)break a;if(!(1<>2]}b=J[e+12>>2];if(!(!b|J[b+4>>2]!=3|J[b+24>>2]))return J[b+40>>2];c=J[a+84>>2];b:{if(!c){b=Wr(100);J[a+84>>2]=b;if(!b){kc[J[663297]](J[693366],36089,0);return 0}if(J[b+32>>2]| +(J[b+12>>2]&-2)==2)break b;J[b+12>>2]=5;c=J[b+28>>2];if(!c)break b;J[c+12>>2]=5;break b}if(J[c+32>>2]){b=c;break b}d=J[c>>2];if(!d){b=c;break b}f=J[c+24>>2];b=J[c+8>>2];if(!((f|0)==(b|0)|b>>>0>2147483646)){J[c+24>>2]=b;f=b}J[c+20>>2]=0;c:{d:{e:switch(J[c+12>>2]-2|0){case 0:J[c>>2]=39197;J[c+8>>2]=f>>>0>=2147483647?2147483647:f;b=c;break c;case 1:break e;default:break d}b=J[c+16>>2];if(!b)break d;J[c>>2]=b;J[c+24>>2]=(d+f|0)-b;d=b}H[d|0]=0;b=J[c+24>>2];J[c+8>>2]=b>>>0>=2147483647?2147483647:b;b=J[c+ +20>>2];g=b>>>0>=2147483647?2147483647:b;b=J[a+84>>2]}J[c+4>>2]=g}jx(b,e);b=J[a+84>>2];if(!(!b|J[b+32>>2])){d=J[b>>2];if(d)break a}NC(b);b=a;a=Wr(100);J[b+84>>2]=a;d=39197;if(J[a+32>>2]|!a|(J[a+12>>2]&-2)==2)break a;J[a+12>>2]=5;a=J[a+28>>2];if(!a)break a;J[a+12>>2]=5;return 39197}d=J[e+40>>2]}return d|0}function Bf(a,b,c,d){var e=0,f=0,g=0;a:{b:{c:{if(!a|!b)break c;f=K[b|0];e=P(f,30);if(f){g=b;while(1){e=(f<<24>>24)+((e<<5)+(e>>>3|0)|0)^e;f=K[g+1|0];g=g+1|0;if(f)continue;break}}e=(e<<5)+(e>>>3|0)^ +e;d:{if(!c)break d;f=K[c|0];if(!f)break d;g=c;while(1){e=((f<<24>>24)+(e>>>3|0)|0)+(e<<5)^e;f=K[g+1|0];g=g+1|0;if(f)continue;break}}e=(e<<5)+(e>>>3|0)^e;e:{if(!d)break e;f=K[d|0];if(!f)break e;g=d;while(1){e=((f<<24>>24)+(e>>>3|0)|0)+(e<<5)^e;f=K[g+1|0];g=g+1|0;if(f)continue;break}}f=J[a>>2];g=f+P((e>>>0)%M[a+4>>2]|0,24)|0;if(!J[g+20>>2])break c;if(J[a+12>>2]){e=g;while(1){if(!(J[e+4>>2]!=(b|0)|J[e+8>>2]!=(c|0))&J[e+12>>2]==(d|0))break a;e=J[e>>2];if(e)continue;break}if(!f)break c}while(1){f:{e=J[g+ +4>>2];if((e|0)!=(b|0)){f=b;if(!e)break f;while(1){a=K[e|0];if((a|0)!=K[f|0])break f;f=f+1|0;e=e+1|0;if(a)continue;break}}e=J[g+8>>2];if((e|0)!=(c|0)){if(!c)break f;f=c;if(!e)break f;while(1){a=K[e|0];if((a|0)!=K[f|0])break f;f=f+1|0;e=e+1|0;if(a)continue;break}}e=J[g+12>>2];if((e|0)==(d|0))break b;if(!d)break f;f=d;if(!e)break f;while(1){a=K[e|0];if((a|0)!=K[f|0])break f;f=f+1|0;e=e+1|0;if(a)continue;break}break b}g=J[g>>2];if(g)continue;break}}return 0}e=g}return J[e+16>>2]}function tEb(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=S(d)-S(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;hc=a-P(b,c)|0;ic=0;jc=0;return b}if(!a)break g;if(!d)break f;f=d-1|0;if(f&d)break f;hc=a;ic=e&f;a=e>>>uEb(d)|0;jc=0;return a}f=c-1|0;if(!(f&c))break e;k=(S(c)+33|0)-S(e)|0;g=0-k|0;break c}k=e+1|0;g=63-e|0;break c}hc=0;a=(e>>>0)/(d>>>0)|0;ic=e-P(a,d)|0;jc=0;return a}e=S(d)-S(e)|0;if(e>>>0<31)break d; +break b}hc=a&f;ic=0;if((c|0)==1)break a;c=uEb(c);d=c&31;if((c&63)>>>0>=32){e=0;a=b>>>d|0}else{e=b>>>d|0;a=((1<>>d}jc=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}h=g&63;g=a;i=h&31;if((h&63)>>>0>=32){j=a<>>32-i|b<>>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>>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}}hc=f;ic=e;j=b<<1|a>>>31;a=l|a<<1;jc=j|o;return a}hc=a;ic=b;a=0;b=0}jc=b;return a}function Ui(a,b,c){var d=0,e=0,f=0;a:{if((c|0)>0|(c|0)>=0){d=-1;e=J[a+8>>2];b:{if(e&7)break b;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break a;e=(c&16777215)<<8|b>>>24;J[a+4>>2]=J[a+4>>2]|32;d=-1;f=J[a+28>>2];J[a+28>>2]=f-1;c:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=e;break c}if((bd(a,e&255)|0)==-1)break b}d= +-1;e=J[a+8>>2];if(e&7)break b;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break a;e=(c&65535)<<16|b>>>16;J[a+4>>2]=J[a+4>>2]|32;d=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=e;break d}if((bd(a,e&255)|0)==-1)break b}d=-1;e=J[a+8>>2];if(e&7)break b;d=J[a+64>>2];if((d|0)>=0&(d|0)<=J[a+60>>2])break a;c=(c&255)<<24|b>>>8;J[a+4>>2]=J[a+4>>2]|32;d=-1;e=J[a+28>>2];J[a+28>>2]=e-1;e:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1; +H[d|0]=c;break e}if((bd(a,c&255)|0)==-1)break b}d=-1;e=J[a+8>>2];if(e&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;f:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b;break f}if((bd(a,b&255)|0)==-1)break b}d=0}return d}ra();B()}J[a+8>>2]=e|4;return-1}function IL(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;e=J[a+4>>2];c=J[e+48>>2];a:{d=J[a+8>>2];h=J[a+12>>2];b:{if(d>>>0>=h>>>0)break b;f=J[a+24>> +2];while(1){c:{if(J[b>>2]>0)break c;d:{e:switch(c|0){case 0:g=K[d|0];c=1;H[e+36|0]=1;H[e+37|0]=g;d=d+1|0;break d;case 1:f:{g:{i=K[e+37|0];c=K[d|0];if(!((i|0)!=254|(c|0)!=255)){c=8;if(J[e+24>>2]!=739244)break g;f=9;c=255;break a}g=J[e+24>>2];h:{if(!((i|0)==255&(c&255)==254)){if((g|0)!=739644&(g|0)!=739872|(J[e+28>>2]&15)!=1)break h;f=8;break a}c=9;if((g|0)!=738844)break g;f=8;c=254;break a}c=J[a+8>>2];if((c|0)!=(d|0)){H[e+36|0]=0;d=c}c=(g|0)==739244?9:8;break f}H[e+36|0]=0;d=d+1|0;j=d-J[a+8>>2]|0}J[e+ +48>>2]=c;if(d>>>0>>0)continue;break c;case 8:J[a+8>>2]=d;JL(a,b);d=J[a+8>>2];c=8;break d;case 9:break e;default:break d}J[a+8>>2]=d;HL(a,b);d=J[a+8>>2];c=9}if(d>>>0>>0)continue}break}if(!f|!j)break b;g=J[a+24>>2];if(g>>>0<=f>>>0)break b;while(1){J[f>>2]=J[f>>2]+j;f=f+4|0;if(g>>>0>f>>>0)continue;break}}J[a+8>>2]=d;i:{if(!K[a+2|0]|(d|0)!=(h|0))break i;j:switch(c-8|0){case 0:JL(a,b);J[e+48>>2]=c;return;case 1:break j;default:break i}HL(a,b)}J[e+48>>2]=c;return}H[e+36|0]=2;H[e+38|0]=c;J[a+8>>2]= +d+1;J[e+48>>2]=f;J[b>>2]=18}function Ew(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-32|0;fc=c;J[c+16>>2]=13;J[c>>2]=13;d=c+16|0;Ec(b,821775,d,0);d=Pm(d,0);J[a+8>>2]=d;a:{if(!d){Cc(1,-1,822736,0);break a}e=c+16|0;yc(e);g=Ac(a+12|0,0,132);b:{if(J[Ec(b,823136,e,0)>>2]!=6)break b;e=J[a+8>>2];if(J[J[c+24>>2]+12>>2]==(kc[J[J[e>>2]+28>>2]](e)|0)){J[a+140>>2]=1;e=J[a+8>>2];if((kc[J[J[e>>2]+28>>2]](e)|0)<=0)break b;e=0;while(1){h=(e<<2)+g|0;d=Sc(J[c+24>>2],e,c,0);f=(J[d>>2]==1?+J[d+8>>2]:O[d+8>>3])*65536;c:{if(R(f)< +2147483648){d=~~f;break c}d=-2147483648}J[h>>2]=d;yc(c);d=J[a+8>>2];e=e+1|0;if((kc[J[J[d>>2]+28>>2]](d)|0)>(e|0))continue;break}break b}Cc(1,-1,823288,0)}d=c+16|0;yc(d);J[a+144>>2]=0;J[a+148>>2]=0;J[a+176>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;e=1;if(J[Ec(b,814644,d,0)>>2]!=6)break a;b=J[c+24>>2];if(J[b+12>>2]==4){J[a+176>>2]=1;b=Sc(b,0,c,0);O[a+144>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];yc(c);b=Sc(J[c+24>>2],1,c,0);O[a+152>>3]=J[b>>2]==1?+J[b+8>>2]: +O[b+8>>3];yc(c);b=Sc(J[c+24>>2],2,c,0);O[a+160>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];yc(c);b=a;a=Sc(J[c+24>>2],3,c,0);O[b+168>>3]=J[a>>2]==1?+J[a+8>>2]:O[a+8>>3];yc(c);break a}Cc(1,-1,823680,0)}yc(c+16|0);fc=c+32|0;return e}function uXa(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;l=fc-32|0;fc=l;J[a+104>>2]=0;J[a+108>>2]=0;J[a+128>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[699344]=0;J[l>>2]=13;m=ga(3490,k|0,807124,l|0)| +0;n=J[699344];J[699344]=0;a:{if((n|0)==1)break a;if(!(!J[J[l+8>>2]+16>>2]|J[m>>2]!=7)){J[699344]=0;J[l+16>>2]=13;m=l+16|0;aa(3488,k|0,m|0)|0;n=J[699344];J[699344]=0;if((n|0)==1)break a;J[a>>2]=J[l+24>>2];J[699344]=0;$(3370,m|0);m=J[699344];J[699344]=0;if((m|0)==1)break a;J[699344]=0;ma(3499,k|0,a+8|0,a+16|0,a+24|0,a+32|0);m=J[699344];J[699344]=0;if((m|0)==1)break a;J[699344]=0;Ha(3522,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;Ja(3523,a|0,b|0,l|0,f|0, +g|0,h|0,k|0,i|0,j|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;$(3370,l|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+116>>2];if(b){uc(Kw(b));J[a+116>>2]=0}b=J[a+120>>2];if(b){uc(Yg(b));J[a+120>>2]=0}b=J[a+124>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+124>>2]=0}b=J[a+128>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+128>>2]=0}fc=l+32|0;return a|0}c=Z()|0;b=J[a+104>>2];if(b){J[a+108>>2]=b;uc(b)}ba(c|0);B()}function rF(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(J[b+60>>2]){c=J[b+16>> +2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;c=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=c;c=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=c;c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c;xc(a+52|0,b+52|0,908);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+960>>2]=J[b+960>>2];J[a+964>>2]=J[b+964>>2];J[a+968>>2]=J[b+968>>2];c=J[b+972>>2];J[a+60>>2]=b;J[a+972>>2]=c;return}xc(a+52|0,b+52|0,908);f=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=f;f=J[b+40>>2];J[a+36>> +2]=J[b+36>>2];J[a+40>>2]=f;f=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=f;f=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=f;f=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=f;Bi(a,J[b+16>>2],J[b+20>>2],L[b+26>>1],J[b+68>>2]);a:{b:{if(!c)break b;c=J[a+4>>2];if(!c)break b;f=J[b+4>>2];if(!f)break b;xc(c,f,(J[a+32>>2]+J[a+12>>2]|0)+(J[a+44>>2]<<2)|0);break a}c=J[b+4>>2];OE(a,c?J[b+44>>2]?c+40|0:0:0,256)}c=P(J[a+20>>2],J[a+16>>2]);if(!(!d|!J[b+960>>2])){d=J[a+960>>2];if(d)uc(d);d=Dc(c);J[a+960>>2]=d;xc(d, +J[b+960>>2],c)}if(!(!e|!J[b+964>>2])){d=J[a+964>>2];if(d)uc(d);d=a;a=Dc(c);J[d+964>>2]=a;xc(a,J[b+964>>2],c)}}function iIa(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;c=fc-32|0;fc=c;xr(c+20|0,a,b);b=J[a+4>>2];h=J[b+12>>2];d=J[b+8>>2];a:{b:{c:{d:{e:{if(H[c+31|0]>=0){J[c+16>>2]=J[c+28>>2];b=J[c+24>>2];J[c+8>>2]=J[c+20>>2];J[c+12>>2]=b;break e}J[699344]=0;ca(2838,c+8|0,J[c+20>>2],J[c+24>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break d}i=H[c+19|0];if((d|0)==(h|0))break a;b=(i|0)<0;j=b?J[c+ +12>>2]:i&255;if(b)break c;while(1){f=K[d+11|0];g=f<<24>>24;b=(g|0)<0;e=J[d+4>>2];f:{if(((b?e:f)|0)!=(j|0))break f;if(!b){b=c+8|0;e=d;if(!g)break a;while(1){if(K[e|0]!=K[b|0])break f;b=b+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}break a}if(!e)break a;if(!dd(J[d>>2],c+8|0,e))break a}d=d+20|0;if((h|0)!=(d|0))continue;break}break b}a=Z()|0;if(H[c+31|0]<0)uc(J[c+20>>2]);ba(a|0);B()}g=J[c+8>>2];while(1){f=K[d+11|0];k=f<<24>>24;b=(k|0)<0;e=J[d+4>>2];g:{if(((b?e:f)|0)!=(j|0))break g;if(!b){b=g;e=d;if(!k)break a; +while(1){if(K[e|0]!=K[b|0])break g;b=b+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}break a}if(!e)break a;if(!dd(J[d>>2],g,e))break a}d=d+20|0;if((h|0)!=(d|0))continue;break}}d=h}a=J[J[a+4>>2]+12>>2];if((i|0)<0)uc(J[c+8>>2]);if(H[c+31|0]<0)uc(J[c+20>>2]);fc=c+32|0;return(a|0)!=(d|0)|0}function X2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+24>>2];c=J[a+8>>2];g=J[a+12>>2]-c|0;e=J[a+16>>2];f=J[a+20>>2]-e>>1;if((g|0)>(f|0)){J[b>>2]=15;g=f}a:{b:{c:{d:{e:{f:{if((g|0)<8){b=0;break f}f=g>>>3|0;b=f;while(1){I[e>> 1]=K[c|0];I[e+2>>1]=K[c+1|0];I[e+4>>1]=K[c+2|0];I[e+6>>1]=K[c+3|0];I[e+8>>1]=K[c+4|0];I[e+10>>1]=K[c+5|0];I[e+12>>1]=K[c+6|0];I[e+14>>1]=K[c+7|0];c=c+8|0;e=e+16|0;h=b>>>0>1;b=b-1|0;if(h)continue;break}g=g&7;b=0;if(!d)break e;while(1){J[d>>2]=b;J[d+28>>2]=b|7;J[d+24>>2]=b|6;J[d+20>>2]=b|5;J[d+16>>2]=b|4;J[d+12>>2]=b|3;J[d+8>>2]=b|2;J[d+4>>2]=b|1;d=d+32|0;b=b+8|0;h=(f|0)>1;f=f-1|0;if(h)continue;break}}if((g|0)>0)break d;J[a+16>>2]=e;J[a+8>>2]=c;if(d)break c;break b}if(!g)break a;d=0}f=g;while(1){I[e>> -1]=K[c|0];e=e+2|0;c=c+1|0;h=f>>>0>1;f=f-1|0;if(h)continue;break}J[a+16>>2]=e;J[a+8>>2]=c;if(!d)break b;f=g&7;g:{if(!f){c=b;break g}e=0;c=b;while(1){J[d>>2]=c;d=d+4|0;c=c+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}if(g>>>0<8)break c;b=b+g|0;while(1){J[d>>2]=c;J[d+28>>2]=c+7;J[d+24>>2]=c+6;J[d+20>>2]=c+5;J[d+16>>2]=c+4;J[d+12>>2]=c+3;J[d+8>>2]=c+2;J[d+4>>2]=c+1;d=d+32|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}J[a+24>>2]=d}return}J[a+16>>2]=e;J[a+8>>2]=c}function PFa(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;c=bc-32|0;bc=c;Jq(c+20|0,a,b);b=J[a+4>>2];h=J[b+12>>2];d=J[b+8>>2];a:{b:{c:{d:{e:{if(H[c+31|0]>=0){J[c+16>>2]=J[c+28>>2];b=J[c+24>>2];J[c+8>>2]=J[c+20>>2];J[c+12>>2]=b;break e}J[695492]=0;ca(2672,c+8|0,J[c+20>>2],J[c+24>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break d}i=H[c+19|0];if((d|0)==(h|0))break a;b=(i|0)<0;j=b?J[c+12>>2]:i&255;if(b)break c;while(1){f=K[d+11|0];g=f<<24>>24;b=(g|0)<0;e=J[d+4>>2];f:{if(((b?e:f)|0)!=(j|0))break f;if(!b){b=c+8|0;e=d;if(!g)break a;while(1){if(K[e| -0]!=K[b|0])break f;b=b+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}break a}if(!e)break a;if(!Wc(J[d>>2],c+8|0,e))break a}d=d+20|0;if((h|0)!=(d|0))continue;break}break b}a=Z()|0;if(H[c+31|0]<0)qc(J[c+20>>2]);ba(a|0);B()}g=J[c+8>>2];while(1){f=K[d+11|0];k=f<<24>>24;b=(k|0)<0;e=J[d+4>>2];g:{if(((b?e:f)|0)!=(j|0))break g;if(!b){b=g;e=d;if(!k)break a;while(1){if(K[e|0]!=K[b|0])break g;b=b+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}break a}if(!e)break a;if(!Wc(J[d>>2],g,e))break a}d=d+20|0;if((h|0)!=(d|0))continue; -break}}d=h}a=J[J[a+4>>2]+12>>2];if((i|0)<0)qc(J[c+8>>2]);if(H[c+31|0]<0)qc(J[c+20>>2]);bc=c+32|0;return(a|0)!=(d|0)|0}function M_a(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;d=bc-16|0;bc=d;a:{b:{e=Qc(b);if(e>>>0<2147483632){c:{if(e>>>0<=10){H[d+15|0]=e;c=d+4|0;break c}g=(e|15)+1|0;c=rc(g);J[d+12>>2]=g|-2147483648;J[d+4>>2]=c;J[d+8>>2]=e}k=tc(c,b,e)+e|0,l=0,H[k|0]=l;b=K[d+15|0];h=b<<24>>24;e=(h|0)<0;f=e?J[d+8>>2]:b;if(f>>>0>=1073741808){J[695492]=0;_(2793,a|0);a=J[695492];J[695492]= -0;if((a|0)==1)break b;break a}i=J[d+4>>2];d:{e:{if(f>>>0>=2){b=f|3;if(b>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break b}J[695492]=0;c=b+1|0;b=$(4,c<<2)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;J[a>>2]=b;J[a+4>>2]=f;J[a+8>>2]=c|-2147483648;a=b;break e}H[a+11|0]=f;if(!f)break d}g=e?i:d+4|0;j=f-1|0;e=f&7;f:{if(!e){c=g;break f}b=0;c=g;while(1){J[a>>2]=H[c|0];a=a+4|0;c=c+1|0;b=b+1|0;if((e|0)!=(b|0))continue;break}}if(j>>>0<7)break d;b=f+g|0;while(1){J[a>>2]= -H[c|0];J[a+4>>2]=H[c+1|0];J[a+8>>2]=H[c+2|0];J[a+12>>2]=H[c+3|0];J[a+16>>2]=H[c+4|0];J[a+20>>2]=H[c+5|0];J[a+24>>2]=H[c+6|0];J[a+28>>2]=H[c+7|0];a=a+32|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}J[a>>2]=0;if((h|0)<0)qc(i);bc=d+16|0;return}Id(d+4|0);B()}a=Z()|0;if(H[d+15|0]<0)qc(J[d+4>>2]);ba(a|0);B()}B()}function fia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=0,k=Q(0),l=0,m=0,n=Q(0),o=0,p=0,q=0;if((c|0)>0){j=J[a+12>>2];while(1){n=Q(0);a=J[j>>2];e=a>>>14&1023;a:{if(!e){k=Q(0);i=Q(0); -break a}k=Q(0);d=Vo((+(e|0)+.5)*.010830424696249145+-8.317766166719343);i=Q(0);if(d<=0)break a;b:{c:{d:{l=a&16383;if(l>>>0<=16288){m=163;a=0;while(1){e=a+m>>1;o=l-I[(e<<3)+92422>>1]|0;e:{if((o|0)>0){a=e;break e}if((o|0)>=0)break d;m=e}if((m-a|0)>1)continue;break}e=a;h=+(l-I[(e<<3)+92422>>1]|0)+.5;break c}f=.210526316;h=.473684211;break b}h=.5}f=h*.0035000001080334187+ +N[(e<<3)+92416>>2];h=(+(e|0)+.5)*.0035000001080334187+.016939999535679817}g=f*9;f=1/(f*6+h*-16+12);g=g*f;f=h*4*f;k=Q(d*(g/f));n=Q(d* -((1-g-f)/f));i=Q(d)}d=+k;f=+i;p=d*.061+f*-.224;h=+n;q=h*1.163;g=h*-.414+(d*2.69+f*-1.276);if(g<=0)a=0;else{e=g>=1;g=Y(g)*256;f:{if(R(g)<2147483648){a=~~g;break f}a=-2147483648}a=e?-1:a}H[b|0]=a;d=h*.044+(d*-1.022+f*1.978);if(d<=0)a=0;else{e=d>=1;d=Y(d)*256;g:{if(R(d)<2147483648){a=~~d;break g}a=-2147483648}a=e?-1:a}H[b+1|0]=a;j=j+4|0;d=q+p;if(d<=0)a=0;else{e=d>=1;d=Y(d)*256;h:{if(R(d)<2147483648){a=~~d;break h}a=-2147483648}a=e?-1:a}H[b+2|0]=a;b=b+3|0;a=(c|0)>1;c=c-1|0;if(a)continue;break}}}function jra(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+12>>2];if(d){f=J[d+20>>2];if((f|0)>0){g=J[d>>2];while(1){j=g+(b<<4)|0;c=0;while(1){d=j+(c>>>2&1073741820)|0;h=J[d>>2];if(h)e=J[h+((c&14)<<2)>>2];else e=k;e=((e|0)!=0)+i|0;d=J[d>>2];if(d)d=J[(d+((c&14)<<2)|0)+4>>2];else d=0;i=e+((d|0)!=0)|0;c=c+2|0;if((c|0)!=64)continue;break}b=b+1|0;if((f|0)!=(b|0))continue;break}}d=f<<6}else d=0;c=J[a+16>>2];if(c){g=J[c+20>>2];a:{if((g|0)<=0){b=0;break a}j=J[c>>2];f=0;b=0;while(1){h=j+(f<<4)|0;c=0;while(1){l= -b;b=h+(c>>>2&1073741820)|0;e=J[b>>2];if(e)e=J[((c&14)<<2)+e>>2];else e=k;e=l+((e|0)!=0)|0;b=J[b>>2];if(b)b=J[(b+((c&14)<<2)|0)+4>>2];else b=0;b=e+((b|0)!=0)|0;c=c+2|0;if((c|0)!=64)continue;break}f=f+1|0;if((g|0)!=(f|0))continue;break}}i=b+i|0;d=(g<<6)+d|0}a=J[a+20>>2];if(a){g=J[a+20>>2];b:{if((g|0)<=0){b=0;break b}j=J[a>>2];f=0;b=0;while(1){h=j+(f<<4)|0;c=0;while(1){e=b;a=h+(c>>>2&1073741820)|0;b=J[a>>2];if(b)b=J[b+((c&14)<<2)>>2];else b=k;b=e+((b|0)!=0)|0;a=J[a>>2];if(a)a=J[(a+((c&14)<<2)|0)+4>> -2];else a=0;b=b+((a|0)!=0)|0;c=c+2|0;if((c|0)!=64)continue;break}f=f+1|0;if((g|0)!=(f|0))continue;break}}d=(g<<6)+d|0;i=b+i|0}return(P(i,100)|0)/((d>>>0<=1?1:d)|0)|0}function Q6a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+480>>2];c=J[d+24>>2];a:{b:{c:{if(!J[a+88>>2]){if(b)break b;b=324;break c}J[a+88>>2]=2;if(b)break b;b=325}J[d+8>>2]=326;J[d+4>>2]=b;b=1;e=J[a+132>>2];d:{if((e|0)<=0)e=58;else{if(e>>>0<257)break d;b=256;e=59}f=J[a>>2];J[f+24>>2]=b;J[f+20>>2]=e;gc[J[J[a>>2]>>2]](a)}if(J[a+88>>2]!=2)break a; -b=P(J[a+112>>2],6)+12|0;e=J[d+32>>2];if(!e){e=gc[J[J[a+4>>2]+4>>2]](a,1,b)|0;J[d+32>>2]=e}Le(e,b);if(!J[d+40>>2])X2(a);J[d+36>>2]=0;break a}J[d+28>>2]=1;J[d+8>>2]=327;J[d+4>>2]=328}if(J[d+28>>2]){Le(J[c>>2],4096);Le(J[c+4>>2],4096);Le(J[c+8>>2],4096);Le(J[c+12>>2],4096);Le(J[c+16>>2],4096);Le(J[c+20>>2],4096);Le(J[c+24>>2],4096);Le(J[c+28>>2],4096);Le(J[c+32>>2],4096);Le(J[c+36>>2],4096);Le(J[c+40>>2],4096);Le(J[c+44>>2],4096);Le(J[c+48>>2],4096);Le(J[c+52>>2],4096);Le(J[c+56>>2],4096);Le(J[c+60>> -2],4096);Le(J[c+64>>2],4096);Le(J[c+68>>2],4096);Le(J[c+72>>2],4096);Le(J[c+76>>2],4096);Le(J[c+80>>2],4096);Le(J[c+84>>2],4096);Le(J[c+88>>2],4096);Le(J[c+92>>2],4096);Le(J[c+96>>2],4096);Le(J[c+100>>2],4096);Le(J[c+104>>2],4096);Le(J[c+108>>2],4096);Le(J[c+112>>2],4096);Le(J[c+116>>2],4096);Le(J[c+120>>2],4096);Le(J[c+124>>2],4096);J[d+28>>2]=0}}function r4(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a+736>>2];if(d){f=J[J[d+12>>2]>>2];c=J[a+100>>2];b=J[d+4>>2];if(b)gc[J[c+8>>2]](c,b);J[d+4>>2]=0;b= -J[d+8>>2];if(b)gc[J[c+8>>2]](c,b);J[d+8>>2]=0;b=J[d+20>>2];if(b)gc[J[c+8>>2]](c,b);J[d+20>>2]=0;b=J[d+12>>2];if(b)gc[J[c+8>>2]](c,b);J[d+12>>2]=0;b=J[d+28>>2];if(b){if(f)while(1){g=e<<3;b=J[(g+b|0)+4>>2];if(b)gc[J[c+8>>2]](c,b);b=J[d+28>>2];J[(g+b|0)+4>>2]=0;e=e+1|0;if((e|0)!=(f|0))continue;break}if(b)gc[J[c+8>>2]](c,b);J[d+28>>2]=0}b=J[d+40>>2];if(b){uL(J[a+100>>2],b);b=J[J[d+40>>2]+28>>2];if(b)gc[J[c+8>>2]](c,b);b=J[d+40>>2];J[b+28>>2]=0;b=J[b+24>>2];if(b)gc[J[c+8>>2]](c,b);b=J[d+40>>2];J[b+24>> -2]=0;if(b)gc[J[c+8>>2]](c,b);J[d+40>>2]=0}b=J[d+52>>2];if(b){uL(J[a+100>>2],b);b=J[J[d+52>>2]+28>>2];if(b)gc[J[c+8>>2]](c,b);b=J[d+52>>2];J[b+28>>2]=0;b=J[b+24>>2];if(b)gc[J[c+8>>2]](c,b);b=J[d+52>>2];J[b+24>>2]=0;if(b)gc[J[c+8>>2]](c,b);J[d+52>>2]=0}b=J[d+56>>2];if(b){uL(J[a+100>>2],b+4|0);a=J[J[d+56>>2]+24>>2];if(a)gc[J[c+8>>2]](c,a);a=J[d+56>>2];J[a+24>>2]=0;if(a)gc[J[c+8>>2]](c,a);J[d+56>>2]=0}a=J[d+64>>2];if(a)gc[J[c+8>>2]](c,a);J[d+64>>2]=0;a=J[d+72>>2];if(a)gc[J[c+8>>2]](c,a);J[d+72>>2]=0; -if(d)gc[J[c+8>>2]](c,d)}}function Wtb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+2248>>2]+88>>2];d=J[b+1168>>2];c=(J[b+1176>>2]+P(d,J[a+572>>2])|0)+P(d,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;e=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((e|0)<=0)break a;e=0;while(1){c=K[b|0]|K[b+1|0]<<8;f=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=f+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;c=b+2|0;f=K[c|0]|K[c+1|0]<<8;g=(f<<8|f>>> -8)&65535;f=K[d+2|0]|K[d+3|0]<<8;f=g+((f<<8|f>>>8)&65535)&65535;f=f<<8|f>>>8;H[c|0]=f;H[c+1|0]=f>>>8;d=d+4|0;b=(J[a+584>>2]<<2)+b|0;c=J[a+588>>2];e=e+1|0;if((c|0)>(e|0))continue;break}break b}if((e|0)<=0)break a;e=0;while(1){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0];H[b+3|0]=K[d+3|0];d=d+4|0;b=(J[a+584>>2]<<2)+b|0;c=J[a+588>>2];e=e+1|0;if((c|0)>(e|0))continue;break}}if((c|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;d=J[a+636>>2]+ -J[a+616>>2]|0;c=0;while(1){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[b|0]=e;H[b+1|0]=e>>>8;H[b+2|0]=e>>>16;H[b+3|0]=e>>>24;d=d+4|0;b=(J[a+584>>2]<<2)+b|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function vy(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0;m=bc-16|0;bc=m;J[m+12>>2]=a;a:{b:{if((a|0)==(f|0)){if(!K[b|0])break b;a=0;H[b|0]=0;b=J[e>>2];J[e>>2]=b+1;H[b|0]=46;if(K[h+11|0]>>>7|0)b=J[h+4>>2];else b=K[h+11|0]&127; -if(!b)break a;b=J[j>>2];if((b-i|0)>159)break a;c=J[k>>2];J[j>>2]=b+4;J[b>>2]=c;break a}if(K[h+11|0]>>>7|0)f=J[h+4>>2];else f=K[h+11|0]&127;if(!(!f|(a|0)!=(g|0))){if(!K[b|0])break b;a=0;b=J[j>>2];if((b-i|0)>159)break a;a=J[k>>2];J[j>>2]=b+4;J[b>>2]=a;a=0;J[k>>2]=0;break a}a=-1;l=SE(l,l+128|0,m+12|0)-l|0;g=l>>2;if((g|0)>31)break a;f=H[g+2617936|0];c:{d:{a=l&-5;if((a|0)!=88){if((a|0)!=96)break d;b=J[e>>2];if((b|0)!=(d|0)){a=-1;d=H[b-1|0];c=H[c|0];if(((d-97>>>0<26?d&95:d)|0)!=((c-97>>>0<26?c&95:c)|0))break a}J[e>> -2]=b+1;H[b|0]=f;a=0;break a}H[c|0]=80;break c}a=f-97>>>0<26?f&95:f;if((a|0)!=H[c|0])break c;H[c|0]=a-65>>>0<26?a|32:a;if(!K[b|0])break c;H[b|0]=0;if(K[h+11|0]>>>7|0)a=J[h+4>>2];else a=K[h+11|0]&127;if(!a)break c;a=J[j>>2];if((a-i|0)>159)break c;b=J[k>>2];J[j>>2]=a+4;J[a>>2]=b}a=J[e>>2];J[e>>2]=a+1;H[a|0]=f;a=0;if((g|0)>21)break a;J[k>>2]=J[k>>2]+1;break a}a=-1}bc=m+16|0;return a|0}function mTa(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;d=J[a+420>>2];a:{b:{c:{if(!b){J[d+8>>2]=476;if(J[a+ -264>>2])break c;J[d+4>>2]=477;break a}J[d+8>>2]=478;if(!J[a+264>>2])break b}J[d+108>>2]=b;J[d+120>>2]=a;c=J[a+360>>2];d:{if(!J[a+368>>2]){if(!c){J[d+4>>2]=479;break d}J[d+4>>2]=480;break d}if(!c){J[d+4>>2]=481;break d}J[d+4>>2]=482;if(J[d+136>>2])break d;i=d,j=gc[J[J[a+4>>2]>>2]](a,1,1E3)|0,J[i+136>>2]=j}c=J[J[a+292>>2]+24>>2];J[d+128>>2]=0;J[d+132>>2]=0;J[d+124>>2]=c;break a}J[d+4>>2]=483}if(J[a+288>>2]>0)while(1){h=g<<2;e=J[(h+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2])){c=J[e+20>>2];e:{if(b){if(c>>> -0>=4){f=J[a>>2];J[f+24>>2]=c;J[f+20>>2]=52;gc[J[J[a>>2]>>2]](a)}f=(c<<2)+d|0;c=J[f+76>>2];if(!c){c=gc[J[J[a+4>>2]>>2]](a,1,1028)|0;J[f+76>>2]=c}wc(c,0,1028);break e}JZ(a,1,c,((c<<2)+d|0)+44|0)}J[(d+h|0)+20>>2]=0}f:{if(!J[a+364>>2])break f;c=J[e+24>>2];if(b){if(c>>>0>=4){e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=52;gc[J[J[a>>2]>>2]](a)}e=(c<<2)+d|0;c=J[e+92>>2];if(!c){c=gc[J[J[a+4>>2]>>2]](a,1,1028)|0;J[e+92>>2]=c}wc(c,0,1028);break f}JZ(a,0,c,((c<<2)+d|0)+60|0)}g=g+1|0;if((g|0)>2])continue;break}J[d+ -12>>2]=0;J[d+16>>2]=0;a=J[a+236>>2];J[d+40>>2]=0;J[d+36>>2]=a}function De(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=K[b|0];if(f){d=f;e=b;while(1){g=P(g,17)+(d&255)|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}}a:{e=J[a+12>>2];d=J[J[a+8>>2]+((g>>>0)%((e<<1)-1>>>0)<<2)>>2];if(d)while(1){if(!Ec(b,J[d>>2]))break a;d=J[d+24>>2];if(d)continue;break}if((e|0)==J[a+16>>2]){d=J[a+12>>2]<<1;J[a+12>>2]=d;k=a,l=Nd(J[a+4>>2],d,32),J[k+4>>2]=l;e=Nd(J[a+8>>2],(J[a+12>>2]<<1)-1|0,4);J[a+8>>2]=e;d=0;wc(e,0,(J[a+ -12>>2]<<3)-4|0);i=J[a+16>>2];if((i|0)>0){j=(J[a+12>>2]<<1)-1|0;while(1){e=0;h=J[a+4>>2]+(d<<5)|0;f=J[h>>2];g=K[f|0];if(g)while(1){e=P(e,17)+g|0;g=K[f+1|0];f=f+1|0;if(g)continue;break}e=J[a+8>>2]+((e>>>0)%(j>>>0)<<2)|0;J[h+24>>2]=J[e>>2];J[e>>2]=h;d=d+1|0;if((i|0)!=(d|0))continue;break}}f=K[b|0]}e=0;if(f){d=b;while(1){e=P(e,17)+f|0;f=K[d+1|0];d=d+1|0;if(f)continue;break}}f=J[a+12>>2];d=J[a+4>>2]+(J[a+16>>2]<<5)|0;J[d>>2]=b;b=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=b;b=J[c+12>>2];J[d+16>>2]=J[c+8>>2]; -J[d+20>>2]=b;b=J[a+16>>2];c=J[a+4>>2]+(b<<5)|0;d=J[a+8>>2]+((e>>>0)%((f<<1)-1>>>0)<<2)|0;J[c+24>>2]=J[d>>2];J[d>>2]=c;J[a+16>>2]=b+1;return}uc(d+8|0);a=J[c+12>>2];J[d+16>>2]=J[c+8>>2];J[d+20>>2]=a;a=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=a;Gc(b)}function sK(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=J[a+4>>2];k=c+37|0;j=J[a+12>>2];e=J[a+8>>2];a:{b:{d=J[c+44>>2];h=J[a+16>>2];l=J[a+20>>2];if(!(!d|h>>>0>=l>>>0)){J[c+44>>2]=0;f=H[c+36|0];H[c+36|0]=0;g=d-1|0;break b}c=0;break a}c=1}while(1){c:{d:{if(!c){if(e>>> -0>=j>>>0)break d;g=0;f=0;if(h>>>0>=l>>>0)break d;c=1;continue}e:{if(f>>>0>3){c=f;break e}f:{g:{if(e>>>0>=j>>>0)break g;c=K[e|0];H[f+k|0]=c;d=e+1|0;g=c<<(f<<3)|g;c=4;i=f+1|0;if((i|0)==4){e=d;break e}if(d>>>0>=j>>>0){f=i;e=d;break g}c=K[e+1|0];H[i+k|0]=c;d=e+2|0;g=c<<(i<<3)|g;c=4;i=f+2|0;if((i|0)==4){e=d;break e}if(d>>>0>=j>>>0){f=i;e=d;break g}c=K[e+2|0];H[i+k|0]=c;d=e+3|0;g=c<<(i<<3)|g;c=4;f=f+3|0;if((f|0)==4){e=d;break e}if(d>>>0>>0)break f;e=d}c=J[a+4>>2];H[c+36|0]=f;J[c+44>>2]=g+1;break d}d= -K[e+3|0];H[f+k|0]=d;e=e+4|0;g=d<<(f<<3)|g}if(!((g&-2048)==55296|g>>>0>1114111)){if(g>>>0<=65535){I[h>>1]=g;h=h+2|0;break c}I[h>>1]=(g>>>10|0)-10304;d=g&1023|-9216;c=h+2|0;if(c>>>0>>0){I[h+2>>1]=d;h=h+4|0;break c}f=J[a+4>>2];H[f+65|0]=1;I[f+116>>1]=d;J[b>>2]=15;h=c;break d}H[J[a+4>>2]+36|0]=c;J[b>>2]=12}if(!(h>>>0>>0|e>>>0>=j>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=e;J[a+16>>2]=h;return}c=0;continue}}function CT(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-32|0;bc=e;J[a>>2]=0;J[a+4>>2]=J[682146]; -b=J[b>>2];b=J[(b?b+12|0:2728584)>>2];J[695492]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+20>>2]=0;J[e+16>>2]=2414676;la(5463,e+12|0,e+16|0,b|0,c|0,((d|0)<0?-1:d)|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){J[e+16>>2]=2414580;b=J[e+28>>2];if(b){H[b|0]=0;qc(J[e+28>>2])}J[e+28>>2]=0;c=e+16|0;ed(c);b=J[e+12>>2];d:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;d=Z()|0;break c}J[e+16>>2]=0}J[695492]=0;aa(4993,a|0,e+16|0)|0;b=J[695492];J[695492]=0;e:{if((b| -0)!=1){b=J[e+16>>2];J[e+16>>2]=0;if(!b)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}d=Z()|0;vc(e+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[e+12>>2];J[e+12>>2]=0;f:{if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=e+32| -0;return a|0}d=Z()|0;bh(e+16|0);break b}vc(e+12|0)}sc(a);ba(d|0);B()}ea(0)|0;yc();B()}function pea(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;k=bc-16|0;bc=k;i=c;while(1){a:{if((d|0)==(i|0)){i=d;break a}if(!J[i>>2])break a;i=i+4|0;continue}break}J[h>>2]=f;J[e>>2]=c;b:{while(1){c:{d:{if(!((c|0)==(d|0)|(f|0)==(g|0))){j=J[b+4>>2];J[k+8>>2]=J[b>>2];J[k+12>>2]=j;m=1;l=bc-16|0;bc=l;J[l+12>>2]=J[a+8>>2];n=Gl(l+8|0,l+12|0);J[695492]=0;j=ma(6758,f|0,e|0, -i-c>>2,g-f|0,b|0)|0;o=J[695492];J[695492]=0;e:{if((o|0)!=1){Mh(n);bc=l+16|0;break e}a=Z()|0;Mh(n);ba(a|0);B()}f:{g:{h:switch(j+1|0){case 0:J[h>>2]=f;while(1){if(J[e>>2]==(c|0))break g;b=OE(f,J[c>>2],k+8|0,J[a+8>>2]);if((b|0)==-1)break g;f=b+J[h>>2]|0;J[h>>2]=f;c=c+4|0;continue}case 1:break b;default:break h}f=j+J[h>>2]|0;J[h>>2]=f;if((f|0)==(g|0))break f;if((d|0)==(i|0)){c=J[e>>2];i=d;continue}c=k+4|0;i=OE(c,0,b,J[a+8>>2]);if((i|0)==-1)break c;if(g-J[h>>2]>>>0>>0)break b;while(1){if(i){f=K[c|0]; -j=J[h>>2];J[h>>2]=j+1;H[j|0]=f;i=i-1|0;c=c+1|0;continue}break}c=J[e>>2]+4|0;J[e>>2]=c;i=c;while(1){if((d|0)==(i|0)){i=d;break d}if(!J[i>>2])break d;i=i+4|0;continue}}J[e>>2]=c;break c}c=J[e>>2]}m=(c|0)!=(d|0);break b}f=J[h>>2];continue}break}m=2}bc=k+16|0;return m|0}function aHa(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;a:{b:{c:{if(b){if(!a)break c;if(!d)break b;d:{if(!ep(J[b+8>>2],4661,d))break d;f=J[b+4>>2];if(!f)break a;g=J[f+8>>2];e:{f:{g:{h:{i:{e=J[f>>2];if(e){h=1;k=e& -1;if((e|0)!=1)break i;e=0;break h}J[f>>2]=0;break g}e=e&-2;while(1){i=0;j:{if(!h)break j;i=0;if(!(gc[J[g>>2]](b,a,d)|0))break j;i=(gc[J[g+4>>2]](b,a,d)|0)!=0}h=i;g=g+8|0;j=j+2|0;if((e|0)!=(j|0))continue;break}e=!h}if(k){if(e)break f;h=(gc[J[g>>2]](b,a,d)|0)!=0}J[f>>2]=0;if(!h)break d}f=J[b+8>>2];if(!f)break a;g=J[f+8>>2];k:{l:{m:{e=J[f>>2];if(e){h=1;k=e&1;if((e|0)!=1)break m;e=0;break l}J[f>>2]=0;break k}e=e&-2;j=0;while(1){i=0;n:{if(!h)break n;i=0;if(!(gc[J[g>>2]](b,a,d)|0))break n;i=(gc[J[g+4>> -2]](b,a,d)|0)!=0}h=i;g=g+8|0;j=j+2|0;if((e|0)!=(j|0))continue;break}e=!h}if(k){if(e)break e;h=(gc[J[g>>2]](b,a,d)|0)!=0}J[f>>2]=0;if(!h)break d}if(!K[b+132|0]){Hc(d,1,2344135,0);return 0}if(!K[b+133|0]){Hc(d,1,2344363,0);return 0}return kX(a,J[b>>2],c,d)|0}J[f>>2]=0;break d}J[f>>2]=0}return 0}fa(2342603,2342899,2842,2359370);B()}fa(2343850,2342899,2843,2359370);B()}fa(2343543,2342899,2844,2359370);B()}fa(2351702,2342899,2439,2359708);B()}function xy(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0;m=bc-16|0;bc=m;H[m+15|0]=a;a:{b:{if((a|0)==(f|0)){if(!K[b|0])break b;a=0;H[b|0]=0;b=J[e>>2];J[e>>2]=b+1;H[b|0]=46;if(K[h+11|0]>>>7|0)b=J[h+4>>2];else b=K[h+11|0]&127;if(!b)break a;b=J[j>>2];if((b-i|0)>159)break a;c=J[k>>2];J[j>>2]=b+4;J[b>>2]=c;break a}if(K[h+11|0]>>>7|0)f=J[h+4>>2];else f=K[h+11|0]&127;if(!(!f|(a|0)!=(g|0))){if(!K[b|0])break b;a=0;b=J[j>>2];if((b-i|0)>159)break a;a=J[k>>2];J[j>>2]=b+4;J[b>>2]=a;a=0;J[k>>2]=0;break a}a=-1; -g=VE(l,l+32|0,m+15|0)-l|0;if((g|0)>31)break a;f=H[g+2617936|0];c:{d:switch((g&-2)-22|0){case 2:b=J[e>>2];if((b|0)!=(d|0)){d=H[b-1|0];c=H[c|0];if(((d-97>>>0<26?d&95:d)|0)!=((c-97>>>0<26?c&95:c)|0))break a}J[e>>2]=b+1;H[b|0]=f;a=0;break a;case 0:H[c|0]=80;break c;default:break d}a=f-97>>>0<26?f&95:f;if((a|0)!=H[c|0])break c;H[c|0]=a-65>>>0<26?a|32:a;if(!K[b|0])break c;H[b|0]=0;if(K[h+11|0]>>>7|0)a=J[h+4>>2];else a=K[h+11|0]&127;if(!a)break c;a=J[j>>2];if((a-i|0)>159)break c;b=J[k>>2];J[j>>2]=a+4;J[a>> -2]=b}a=J[e>>2];J[e>>2]=a+1;H[a|0]=f;a=0;if((g|0)>21)break a;J[k>>2]=J[k>>2]+1;break a}a=-1}bc=m+16|0;return a|0}function oca(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;if(pj(a,J[b+8>>2],e)){if(!(J[b+28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{b:{if(pj(a,J[b>>2],e)){if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!=1)break a;J[b+32>>2]=1;return}J[b+32>>2]=d;if(J[b+44>>2]==4)break b;f=a+16|0;g=f+(J[a+12>>2]<<3)|0;d=0;while(1){c:{d:{e:{f:{if(f>>>0>=g>>>0)break f;I[b+52>>1]=0; -uE(f,b,c,c,1,e);if(K[b+54|0])break f;if(!K[b+53|0])break c;if(K[b+52|0]){if(J[b+24>>2]==1)break d;d=1;h=1;if(!(K[a+8|0]&2))break d;break c}d=1;if(H[a+8|0]&1)break c;a=3;break e}a=d?3:4}J[b+44>>2]=a;if(h)break a;break b}J[b+44>>2]=3;break a}f=f+8|0;continue}}g=J[a+12>>2];h=a+16|0;fy(h,b,c,d,e);f=a+24|0;g=h+(g<<3)|0;if(f>>>0>=g>>>0)break a;a=J[a+8>>2];if(!(!(a&2)&J[b+36>>2]!=1)){while(1){if(K[b+54|0])break a;fy(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0)continue;break}break a}if(!(a&1))while(1){if(K[b+54|0]| -J[b+36>>2]==1)break a;fy(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0)continue;break a}while(1){if(K[b+54|0]|J[b+36>>2]==1&J[b+24>>2]==1)break a;fy(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0)continue;break}break a}J[b+20>>2]=c;J[b+40>>2]=J[b+40>>2]+1;if(J[b+36>>2]!=1|J[b+24>>2]!=2)break a;H[b+54|0]=1}}function TYa(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;a:{if(!a)break a;e=J[a+8>>2];b:{if(K[b|0]==35){g=bc-16|0;bc=g;c:{if(!b)break c;f=b;d=gc[J[659447]](60)|0;if(!d){J[g>>2]=14751;Cc(0,0,0,0,0,2,2,3,14751, -0,0,0,32863,g);break c}J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=5;J[d+32>>2]=e;d:{e:{f:{c=K[f|0];if(c){if((c|0)==38)break f;c=b;while(1){e=K[c+1|0];b=c+1|0;c=b;if(e)continue;break}}c=0;b=b-f|0;if((b|0)<0)break d;e=gc[J[659450]](b+1|0)|0;if(e)break e;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}e=f+1|0;b=0;g:{if(!K[f+1|0])break g;c=e;while(1){h= -b;b=b+1|0;i=K[c+1|0];c=c+1|0;if(i)continue;break}if(K[b+f|0]!=59)break g;c=0;b=gc[J[659450]](b)|0;if(!b){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}c=tc(b,e,h);H[h+c|0]=0;break d}c=gc[J[659450]](b+1|0)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}j=tc(c,e,b)+b|0,k=0,H[j|0]=k;break d}c=tc(e,f,b);H[b+c|0]=0}J[d+8>>2]=c;h:{if(!J[689540])break h;b=J[689537];if(!b)break h;gc[b|0](d)}c=d}bc=g+16|0;break b}c=PJ(e,b)}if(Ug(J[a+52>>2],c))break a;gl(c)}}function rW(a,b){var c=0,d=0;a:{b:switch(K[a+ -8|0]){case 0:c=J[a+4>>2];if(!c)break a;if(c>>>0>=4){d=c&-4;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+1|0]=K[b+1|0]^-1;H[b+2|0]=K[b+2|0]^-1;H[b+3|0]=K[b+3|0]^-1;b=b+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1;b=b+1|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 4:break b;default:break a}c:switch(K[a+9|0]-8|0){case 0:a=J[a+4>>2];if(!a)break a;d=(a-1>>>1|0)+1|0;c=d&3;if(a>>>0>=7){d=d&-4;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+2|0]=K[b+2|0]^-1;H[b+4|0]=K[b+4| -0]^-1;H[b+6|0]=K[b+6|0]^-1;b=b+8|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1;b=b+2|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 8:break c;default:break a}a=J[a+4>>2];if(!a)break a;d=(a-1>>>2|0)+1|0;c=d&3;if(a>>>0>=13){d=d&2147483644;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+1|0]=K[b+1|0]^-1;H[b+4|0]=K[b+4|0]^-1;H[b+5|0]=K[b+5|0]^-1;H[b+8|0]=K[b+8|0]^-1;H[b+9|0]=K[b+9|0]^-1;H[b+12|0]=K[b+12|0]^-1;H[b+13|0]=K[b+13|0]^-1;b=b+16|0;a=a+4|0;if((d|0)!=(a|0))continue; -break}}if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+1|0]=K[b+1|0]^-1;b=b+4|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}}function fM(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return 35;d=J[a+96>>2];if(!d)return 6;h=J[d+8>>2];a:{b:{i=J[d+12>>2];c=J[i+44>>2];c:{if((c|0)<=0){g=6;f=h;if(!c)break c;break b}e=gc[J[h+4>>2]](h,c)|0;if(!e){g=64;break b}wc(e,0,c);d=J[a+96>>2];f=J[d+8>>2];i=J[d+12>>2]}J[e+4>>2]=a;J[e>>2]=J[d+4>>2];g=64;d:{c=gc[J[f+4>>2]](f,44)|0;e:{if(!c)break e;H[c|0]=0;H[c+1|0]=0;H[c+2|0]= -0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;J[e+156>>2]=c; -if(!(K[J[d>>2]+1|0]&2)){d=gc[J[f+4>>2]](f,96)|0;if(!d)break e;wc(d+4|0,0,92);J[d>>2]=f;J[c>>2]=d}f=J[i+64>>2];if(!f)break d;g=gc[f|0](e)|0;if(!g)break d}px(e);gc[J[h+8>>2]](h,e);return g}J[e+8>>2]=J[a+84>>2];J[a+84>>2]=e;g=0;if(!b)break a;J[b>>2]=e;break a}if(!b)break a;J[b>>2]=0;return g}return g}function $5(a,b){var c=0,d=0,e=0,f=0,g=0;if(!a)return 35;c=6;a:{if(!b)break a;if(!J[a+96>>2])return 34;J[b>>2]=0;e=J[a+100>>2];g=J[J[a+96>>2]+12>>2];d=J[g+40>>2];b:{if((d|0)<=0){if(!d)break b;break a}f= -gc[J[e+4>>2]](e,d)|0;if(!f)return 64;wc(f,0,d)}c:{d:{d=gc[J[e+4>>2]](e,12)|0;if(d){H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;H[d+4|0]=0;H[d+5|0]=0;H[d+6|0]=0;H[d+7|0]=0;H[d+8|0]=0;H[d+9|0]=0;H[d+10|0]=0;H[d+11|0]=0;J[f>>2]=a;c=gc[J[e+4>>2]](e,36)|0;if(!c){c=64;break d}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+ -16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;J[f+40>>2]=c;c=J[g+56>>2];if(c){c=gc[c|0](f)|0;if(c)break d}J[b>>2]=f;J[d+8>>2]=f;b=J[a+112>>2];J[d>>2]=b;J[d+4>>2]=0;J[(b?b+4|0:a+108|0)>>2]=d;J[a+112>>2]=d;return 0}c=64;if(!f)break a;break c}gc[J[e+8>>2]](e,d)}a=J[f+40>>2];if(a)gc[J[e+8>>2]](e,a);J[f+40>>2]=0;gc[J[e+8>>2]](e,f)}return c}function bXa(a,b,c,d,e,f){a= -a|0;b=b|0;c=Q(c);d=Q(d);e=Q(e);f=Q(f);var g=0,h=0,i=0,j=0,k=0,l=0;g=bc-32|0;bc=g;N[a+28>>2]=f;N[a+24>>2]=e;N[a+20>>2]=d;N[a+16>>2]=c;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;J[a+12>>2]=0;J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;k=a+4|0;a:{if(b){if(b>>>0>=1073741824){J[695492]=0;_(2265,g+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B()}J[695492]=0;h=b<<2;i=$(4,h|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;J[g+8>>2]=i;i=i+h|0;J[g+16>>2]=i;J[g+12>>2]=i}J[695492]=0;j=ga(2376,g+20|0,b|0,g+8|0)|0;b=J[695492]; -J[695492]=0;if((b|0)!=1){i=J[k>>2];if(i){b=i;h=J[a+8>>2];if((b|0)!=(h|0)){while(1){b=h-12|0;l=J[b>>2];if(l){J[h-8>>2]=l;qc(l)}h=b;if((b|0)!=(i|0))continue;break}b=J[k>>2]}J[a+8>>2]=i;qc(b);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}J[a+4>>2]=J[j>>2];J[a+8>>2]=J[j+4>>2];J[a+12>>2]=J[j+8>>2];i=0;J[j+8>>2]=0;J[j>>2]=0;J[j+4>>2]=0;b=J[g+8>>2];if(b){J[g+12>>2]=b;qc(b)}if(J[a>>2])while(1){b=0;j=i<<2;while(1){h=j+J[J[a+4>>2]+P(b,12)>>2]|0;H[h|0]=255;H[h+1|0]=0;H[h+2|0]=0;H[h+3|0]=255;b=b+1|0;h=J[a>>2];if(b>>> -0>>0)continue;break}i=i+1|0;if(h>>>0>i>>>0)continue;break}bc=g+32|0;return a|0}}b=Z()|0;a=J[g+8>>2];if(a){J[g+12>>2]=a;qc(a)}ol(k);ba(b|0);B()}function Xqb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(e){o=e-2|0;q=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];f=a+4|0;g=g+4|0;a:{if(l>>>0>o>>>0)break a;i=l?(l|0)==(o|0)?d:b:c;m=!l&q;if(m){if(i>>>0<2)break a;h=i-1|0;j=h&1;if((i|0)!=2){i=h&-2; -h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a+2|0];H[g+7|0]=K[a+3|0];g=g+8|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!j)break a;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];g=g+4|0;break a}j=i+1>>>1|0;if(i>>>0>=3){n=j>>>0<=2?2:j;k=1;r=i<<1;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];p=K[a+7|0];h=K[a+3|0];if((p|0)!=(h|0))h=h+((i+(P(p-h|0,k)<<1)|0)/(r|0)|0)|0;H[g+3|0]=h;g=g+4|0; -k=k+1|0;if((n|0)!=(k|0))continue;break}}if(i>>>0<=j>>>0)break a;k=m?0:f;m=i<<1;while(1){H[g|0]=K[k|0];H[g+1|0]=K[k+1|0];H[g+2|0]=K[k+2|0];h=K[a+3|0];n=K[k+3|0];if((h|0)!=(n|0))h=h+((i+(P(n-h|0,j)<<1)|0)/(m|0)|0)|0;H[g+3|0]=h;g=g+4|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function agb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(M[b+160>>2]>>0)ge(b,8);g=K[a+15|0]|(K[a+13|0]<<16|K[a+12|0]<<24|K[a+14|0]<<8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<< -16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!(c>>>0<16|c>>>0>J[b+160>>2]-a>>>0))if((c-16>>>0)/12>>>0>=g>>>0)break a;ge(b,8)}b:{if(!g)break b;f=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);if(c>>>0<(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)ge(b,8);h=1;if(!(J[b+164>>2]<=0|M[b+172>>2]>(f<<24|(f&65280)<<8|(f>>>8&65280| -f>>>24))>>>0))ge(b,16);if((g|0)==1)break b;a=a+28|0;while(1){f=c;d=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(c>>>0>>0)ge(b,8);if(f>>>0>=e>>>0)ge(b,8);if(!(J[b+164>>2]<=0|M[b+172>>2]>(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0))ge(b,16);a=a+12|0;h=h+1|0;if((h|0)!=(g|0))continue;break}}return 0}function P_a(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;d=bc-16|0;bc=d;a:{e=H[b+11|0]<0?J[b>>2]:b;b=Ve(e);if(b>>>0<1073741808){b:{if(b>>>0<=1){H[d+15|0]=b;f=d+4|0;break b}c=b|3;if(c>>>0>=1073741823)break a;c=c+1|0;f=rc(c<<2);J[d+12>>2]=c|-2147483648;J[d+4>>2]=f;J[d+8>>2]=b}b=b<<2;k=tc(f,e,b)+b|0,l=0,J[k>>2]=l;b=K[d+15|0];h=b<<24>>24;e=(h|0)<0;c:{c=e?J[d+8>>2]:b;if(c>>>0>=2147483632){J[695492]=0;_(1623,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}i=J[d+4>>2];d:{e:{if(c>>>0>=11){J[695492]= -0;f=(c|15)+1|0;b=$(4,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=f|-2147483648;a=b;break e}H[a+11|0]=c;if(!c)break d}e=e?i:d+4|0;g=c-1&1073741823;j=c&7;f:{if(!j){b=e;break f}f=0;b=e;while(1){H[a|0]=J[b>>2];a=a+1|0;b=b+4|0;f=f+1|0;if((j|0)!=(f|0))continue;break}}if(g>>>0<7)break d;e=e+(c<<2)|0;while(1){H[a|0]=J[b>>2];H[a+1|0]=J[b+4>>2];H[a+2|0]=J[b+8>>2];H[a+3|0]=J[b+12>>2];H[a+4|0]=J[b+16>>2];H[a+5|0]=J[b+20>>2];H[a+6|0]=J[b+24>>2];H[a+7|0]=J[b+28>>2];a=a+8| -0;b=b+32|0;if((e|0)!=(b|0))continue;break}}H[a|0]=0;if((h|0)<0)qc(i);bc=d+16|0;return}a=Z()|0;if(H[d+15|0]<0)qc(J[d+4>>2]);ba(a|0);B()}Id(d+4|0);B()}Sd();B()}function Rr(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=zc(40);if(!d)return 0;J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;J[d+24>>2]=0;J[d+16>>2]=0;J[d+28>>2]=16384;H[d+36|0]=1;J[d+20>>2]=a;J[d+8>>2]=0;J[d+12>>2]=0;c=zc(a<<2);J[d+24>>2]=c;a:{if(!c)break a;e=J[d+20>>2];b:{if((e|0)<=0)break b;c=0;if(e>>>0>=4){h=e&-4;while(1){g=c<<2;J[g+J[d+24>>2]>>2]=0;J[J[d+ -24>>2]+(g|4)>>2]=0;J[J[d+24>>2]+(g|8)>>2]=0;J[J[d+24>>2]+(g|12)>>2]=0;c=c+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}e=e&3;if(!e)break b;while(1){J[J[d+24>>2]+(c<<2)>>2]=0;c=c+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}c:{if((a|0)<=0)break c;g=a&1;d:{if((a|0)==1){e=0;c=b;break d}h=a&-2;e=0;c=b;f=0;while(1){e=(((P(J[c+24>>2]+7|0,P(J[c+20>>2],J[c+16>>2]))|0)/8|0)+e|0)+((P(J[c+56>>2]+7|0,P(J[c+52>>2],J[c+48>>2]))|0)/8|0)|0;c=c- -64|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(g)e=((P(J[c+24>>2]+7| -0,P(J[c+20>>2],J[c+16>>2]))|0)/8|0)+e|0;if((a|0)<=0)break c;f=e>>>0<536870912;e=0;while(1){c=lO(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2],J[b+16>>2],J[b+20>>2],J[b+24>>2],J[b+28>>2]!=0,f);J[J[d+24>>2]+(e<<2)>>2]=c;if(!c)break a;J[d+16>>2]=J[d+16>>2]+1;b=b+32|0;e=e+1|0;if((e|0)!=(a|0))continue;break}}Au(d);return d}yh(d);return 0}function WV(a,b,c){var d=0,e=0,f=0;d=bc-272|0;bc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Yc(a,65382);Ld(a,c);break a}if(e&2)Yc(a,65467);if(!(!b|!(K[b+9|0]&8))){Yc(a,65491);Ld(a,c); -break a}if((c|0)!=1){Yc(a,65560);Ld(a,c);break a}c=d+271|0;qg(a,c,1);pe(a,c,1);if(Ld(a,0))break a;e=K[d+271|0];if(e>>>0>=4){Yc(a,65588);break a}b:{if(!b)break b;c=J[b+8>>2];c:{if(!(c&1))break c;f=J[b+40>>2];if(f-46001>>>0>4294966294)break c;pk(d,1,5,f);Kq(a,d,62839);c=J[b+8>>2]}if(!(c&4))break b;d:{if(J[b+128>>2]-32271>>>0<4294965295|J[b+132>>2]-33901>>>0<4294965295|(J[b+136>>2]-65001>>>0<4294965295|J[b+140>>2]-34001>>>0<4294965295))break d;if(J[b+144>>2]-31001>>>0<4294965295|J[b+148>>2]-61001>>> -0<4294965295|J[b+152>>2]-16001>>>0<4294965295)break d;if(J[b+156>>2]-7001>>>0>4294965294)break b}Yc(a,65622)}H[a+652|0]=1;if(!K[a+654|0]){H[a+654|0]=1;J[a+656>>2]=1535777592}e:{if(!a|!b)break e;H[b+44|0]=e;J[b+40>>2]=45455;J[b+8>>2]=J[b+8>>2]|2049;if(!oH(a,31270,32900,64E3,33E3,3E4,6E4,15E3,6E3))break e;J[b+152>>2]=15E3;J[b+156>>2]=6E3;J[b+144>>2]=3E4;J[b+148>>2]=6E4;J[b+136>>2]=64E3;J[b+140>>2]=33E3;J[b+128>>2]=31270;J[b+132>>2]=32900;J[b+8>>2]=J[b+8>>2]|4}}bc=d+272|0;return}Ad(a,65300);B()}function Mw(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;c=J[a+4>>2];j=c+37|0;i=J[a+12>>2];f=J[a+8>>2];a:{b:{d=J[c+44>>2];h=J[a+16>>2];k=J[a+20>>2];if(!(!d|h>>>0>=k>>>0)){J[c+44>>2]=0;e=H[c+36|0];H[c+36|0]=0;g=d-1|0;break b}c=0;break a}c=1}while(1){c:{d:{if(!c){if(f>>>0>=i>>>0)break d;g=0;e=0;if(h>>>0>=k>>>0)break d;c=1;continue}e:{if(e>>>0>3)break e;f:{g:{if(f>>>0>=i>>>0)break g;d=K[f|0];H[e+j|0]=d;c=f+1|0;g=d|g<<8;d=e+1|0;if((d|0)==4){f=c;e=4;break e}if(c>>>0>=i>>>0){e=d;f=c;break g}c=d+j|0;d=K[f+ -1|0];H[c|0]=d;c=f+2|0;g=d|g<<8;d=e+2|0;if((d|0)==4){f=c;e=4;break e}if(c>>>0>=i>>>0){e=d;f=c;break g}c=d+j|0;d=K[f+2|0];H[c|0]=d;c=f+3|0;g=d|g<<8;e=e+3|0;if((e|0)==4){f=c;e=4;break e}if(c>>>0>>0)break f;f=c}c=J[a+4>>2];H[c+36|0]=e;J[c+44>>2]=g+1;break d}c=K[f+3|0];H[e+j|0]=c;e=4;f=f+4|0;g=c|g<<8}if(!((g&-2048)==55296|g>>>0>1114111)){if(g>>>0<=65535){I[h>>1]=g;h=h+2|0;break c}I[h>>1]=(g>>>10|0)-10304;d=g&1023|-9216;c=h+2|0;if(c>>>0>>0){I[h+2>>1]=d;h=h+4|0;break c}e=J[a+4>>2];H[e+65|0]=1;I[e+ -116>>1]=d;J[b>>2]=15;h=c;break d}H[J[a+4>>2]+36|0]=e;J[b>>2]=12}if(!(h>>>0>>0|f>>>0>=i>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=f;J[a+16>>2]=h;return}c=0;continue}}function Dl(a,b){var c=0,d=0,e=0;a:{if((b|0)>=0){c=-1;d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;c:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b;break c}c=-1;if((Uc(a,b&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c= -J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;d=b>>>8|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;d:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break d}if((Uc(a,d&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;d=b>>>16|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;e:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break e}if((Uc(a,d&255)|0)==-1)break b}c=-1;d= -J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;b=b>>>24|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b;break f}if((Uc(a,b)|0)==-1)break b}c=0}return c}fa(203356,202616,383,207856);B()}J[a+8>>2]=d|4;return-1}function mgb(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;d=a+8208|0;if(d>>>0>M[b+160>>2])ge(b,8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c& -65280)<<8|(c>>>8&65280|c>>>24);if(!(c>>>0<=J[b+160>>2]-a>>>0&c>>>0>8207))ge(b,8);c=K[a+8204|0]|K[a+8205|0]<<8|(K[a+8206|0]<<16|K[a+8207|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{b:{if(g>>>0>(J[b+160>>2]-d>>>0)/12>>>0){ge(b,8);break b}if(!g)break a}h=a+12|0;c=0;while(1){e=c;f=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);j=K[d+1|0]<<16|K[d|0]<<24;a=j|(K[d+3|0]|K[d+2|0]<<8);k=K[d+5|0]<<16|K[d+4|0]<<24;c=k|(K[d+7|0]|K[d+6|0]<<8);if(a>>>0>c>>>0)ge(b,8);if(!(!i|a>>>0>e>>>0))ge(b,8);c:{if(J[b+ -164>>2]<=0)break c;l=J[b+172>>2];e=c-a|0;d:{if(l>>>0>=e>>>0)if(l-e>>>0>(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0)break d;ge(b,16)}e=e+1|0;if(j){if(!e)break c;while(1){if(!(K[(a>>>19|0)+h|0]<<(a>>>16&7)&128))ge(b,8);if(!(K[(a>>>3&8191)+h|0]<<(a&7)&128))ge(b,8);a=a+1|0;e=e-1|0;if(e)continue;break}break c}if(k)ge(b,8);if(!e)break c;while(1){if(K[(a>>>3&8191)+h|0]<<(a&7)&128)ge(b,8);a=a+1|0;e=e-1|0;if(e)continue;break}}d=d+12|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}return 0}function jaa(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;a:{d=J[J[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a;f=a-d|0;c=((f<<2)+b|0)-4|0;if((d|0)<5){a=d<<2;while(1){b:switch(d|0){default:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 3:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 2:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 1:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;break;case 0:break b}f=f-d|0;if((f|0)>0)continue;break}break a}i=d-4|0;h=d&3;j=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c; -case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}b=0;a=i;if(h)while(1){e=(d<<2)+c|0;J[e>>2]=J[e>>2]-J[c>>2];a=a-1|0;c=c-4|0;b=b+1|0;if((h|0)!=(b|0))continue;break}if(!j)break g;while(1){b=d<<2;e=b+c|0;J[e>>2]=J[e>>2]-J[c>>2];e=c-4|0;g=e+b|0;J[g>>2]=J[g>>2]-J[e>>2];e=c-8|0;g=e+b|0;J[g>>2]=J[g>>2]-J[e>>2];e=b;b=c-12|0;e=e+b|0;J[e>>2]=J[e>>2]-J[b>>2];c=c-16|0;b=(a|0)>4;a=a-4|0;if(b)continue;break}}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>> -2];c=c-4|0}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}f=f-d|0;if((f|0)>0)continue;break}}}function gVa(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,m=0,n=0;k=bc-32|0;bc=k;J[a+104>>2]=0;J[a+108>>2]=0;J[a+128>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[k+16>>2]=13;J[k>>2]=13;l=J[b+24>>2];J[695492]=0;m=l;l=k+16|0;ha(3207,j|0,m|0,l|0,0)|0;m=J[695492];J[695492]=0;a:{if((m|0)==1)break a;J[695492]= -0;m=ha(3203,J[k+24>>2],811150,k|0,0)|0;n=J[695492];J[695492]=0;if((n|0)==1)break a;if(J[m>>2]==7){J[a>>2]=J[j+8>>2];J[695492]=0;da(3352,a|0,l|0);l=J[695492];J[695492]=0;if((l|0)==1)break a;J[695492]=0;Ca(3348,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;ua(3353,a|0,b|0,k|0,f|0,g|0,j|0,i|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;_(3205,k|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,k+16|0);b=J[695492];J[695492]=0;if((b| -0)==1)break a;b=J[a+116>>2];if(b){qc(Vv(b));J[a+116>>2]=0}b=J[a+120>>2];if(b){qc(Ng(b));J[a+120>>2]=0}b=J[a+124>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+124>>2]=0}b=J[a+128>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+128>>2]=0}bc=k+32|0;return a|0}c=Z()|0;b=J[a+104>>2];if(b){J[a+108>>2]=b;qc(b)}ba(c|0);B()}function ek(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=zc(44);if(!c)return 0;J[c+36>>2]=0;J[c+32>>2]=a;J[c+28>>2]=0;J[c+24>>2]=b;J[c+20>>2]=a;J[c>>2]=0;b=P(a,b);J[c+40>>2]=b;a:{b:{if((a|0)>0){b=zc(a<<2);J[c+ -28>>2]=b;if(!b){a=J[c+36>>2];if(!a)break a;if(H[c|0]&1)break b;qc(a);J[c+36>>2]=0;a=J[c+28>>2];if(!a)break a;qc(a);J[c+28>>2]=0;break a}b=J[c+40>>2]}c:{if((b|0)<=0)break c;b=zc(b<<2);J[c+36>>2]=b;if(b)break c;a=J[c+28>>2];if(!a)break a;qc(a);J[c+28>>2]=0;break a}d:{if((a|0)<=0)break d;f=a&3;e=J[c+24>>2];b=0;if(a>>>0>=4){h=a&-4;a=0;while(1){J[J[c+28>>2]+(b<<2)>>2]=J[c+36>>2]+(P(b,e)<<2);d=b|1;J[J[c+28>>2]+(d<<2)>>2]=J[c+36>>2]+(P(e,d)<<2);d=b|2;J[J[c+28>>2]+(d<<2)>>2]=J[c+36>>2]+(P(e,d)<<2);d=b|3; -J[J[c+28>>2]+(d<<2)>>2]=J[c+36>>2]+(P(e,d)<<2);b=b+4|0;a=a+4|0;if((h|0)!=(a|0))continue;break}}if(!f)break d;while(1){J[J[c+28>>2]+(b<<2)>>2]=J[c+36>>2]+(P(b,e)<<2);b=b+1|0;g=g+1|0;if((g|0)!=(f|0))continue;break}}if(J[c+40>>2]>0){a=J[c+36>>2];b=0;while(1){J[a+(b<<2)>>2]=0;b=b+1|0;if((b|0)>2])continue;break}}J[c+4>>2]=0;J[c+8>>2]=0;i=c,j=Izb(J[c+20>>2],J[c+24>>2],32),J[i+12>>2]=j;J[c+16>>2]=fc;return c}fa(200321,198601,151,206741);B()}qc(c);return 0}function ZU(a,b,c,d,e,f,g,h,i){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;var j=0,k=0;if(!(!a|!b)){H[b+28|0]=g;H[b+27|0]=i;H[b+26|0]=h;H[b+25|0]=f;H[b+24|0]=e;J[b+4>>2]=d;J[b>>2]=c;j=e&255;f=f&255;k=g&255;h=h&255;g=i&255;a:{b:{if(!c){Yc(a,61827);break b}if((c|0)<0){Yc(a,61920);break b}if(c>>>0>=536870799){Yc(a,62086);break b}e=0;if(M[a+700>>2]>=c>>>0)break a;Yc(a,62251)}e=1}c:{d:{if(!d){Yc(a,62353);break d}if((d|0)<0){Yc(a,62549);break d}if(M[a+704>>2]>=d>>>0)break c;Yc(a,62671)}e=1}if(!(1<>>0<=16:0)){Yc(a,62813);e= -1}d=f&-5;if(!((d|0)!=1&f>>>0<=6)){Yc(a,62940);e=1}e:{if(!((f|0)==3&j>>>0>=9))if(!((f|0)==4|(d|0)==2)|j>>>0>7)break e;Yc(a,63066);e=1}if(k>>>0>=2){Yc(a,63241);e=1}if(h){Yc(a,63359);e=1}if(!(!(K[a+201|0]&16)|!J[a+660>>2]))Yc(a,63405);f:{g:{h:{if(!g)break h;if(!(!(J[a+660>>2]&4)|(g|0)!=64|(d|0)!=2))if(!(J[a+200>>2]&4096))break h;Yc(a,63567);if(!(K[a+201|0]&16))break g;Yc(a,63641);break g}if(!e)break f}Ad(a,63758);B()}d=K[b+25|0];i:{if((d|0)==3)a=1;else{e=d&2;a=e|1;H[b+29|0]=a;if(!(d&4))break i;a=e+2| -0}H[b+29|0]=a}a=P(K[b+24|0],a);H[b+30|0]=a;a=a&255;j:{if(a>>>0>=8){a=P(a>>>3|0,c);break j}a=P(a,c)+7>>>3|0}J[b+12>>2]=a}}function CH(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;e=rc(16);J[695492]=0;j=aa(3365,e|0,0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)a:{b=gc[J[J[b>>2]+40>>2]](b)|0;if(b)while(1){b:{if(gc[J[J[b>>2]+32>>2]](b,782722)|0){if(!c)break b;e=gc[J[J[b>>2]+40>>2]](b)|0;if(!e)break b;if(!(gc[J[J[e>>2]+28>>2]](e)|0))break b;f=gc[J[J[e>>2]+40>>2]](e)|0;if(!f)break b;if(!(gc[J[J[f>>2]+ -36>>2]](f)|0))break b;e=rc(8);J[695492]=0;h=aa(3183,e|0,c|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break a;f=J[f+20>>2];e=rc(8);J[695492]=0;f=aa(3183,e|0,f|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break a;xg(d,h,f);break b}if(!(gc[J[J[b>>2]+28>>2]](b)|0))break b;c:{d:{e=Tj(b,783698);if(!e)break d;if(!(gc[J[J[b>>2]+32>>2]](b,784575)|0))if(!(gc[J[J[b>>2]+32>>2]](b,785475)|0))break d;f=J[e+4>>2];if(c){J[g+20>>2]=f;J[g+16>>2]=c;h=II(g+16|0);break c}e=rc(8);J[695492]=0;h=aa(3183,e|0,f|0)|0;i=J[695492]; -J[695492]=0;if((i|0)!=1)break c;break a}if(!(gc[J[J[b>>2]+32>>2]](b,784575)|0))break b;CH(a,b,c,d);break b}e=tk(j,f);J[g>>2]=e;Xc(h,787279,g);MI(j,f,e+1|0);CH(a,b,h,d);qc(Rc(h))}b=gc[J[J[b>>2]+44>>2]](b)|0;if(b)continue;break}qc(Fh(j));bc=g+32|0;return}a=Z()|0;qc(e);ba(a|0);B()}function XY(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{e=tk(J[a+44>>2],b);if(!e){c:{c=J[a+48>>2];if(J[c+8>>2]>0)while(1){e=J[J[c>>2]+(g<<2)>>2];c=rc(8);J[695492]=0;d=aa(3183,c|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;c= -_n(d,J[b+4>>2]);od(c,2174077);d=Zm(J[c+4>>2],2173977);if(d)break c;qc(Rc(c));c=rc(8);J[695492]=0;d=aa(3183,c|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;c=_n(d,J[b+4>>2]);od(c,2174142);d=Zm(J[c+4>>2],2173977);if(d)break c;qc(Rc(c));c=rc(8);J[695492]=0;d=aa(3183,c|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;c=_n(d,J[b+4>>2]);od(c,2174195);d=Zm(J[c+4>>2],2173977);if(d)break c;qc(Rc(c));c=rc(8);J[695492]=0;d=aa(3183,c|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;c=_n(d,J[b+ -4>>2]);od(c,2174245);d=Zm(J[c+4>>2],2173977);if(d)break c;qc(Rc(c));c=rc(8);J[695492]=0;e=aa(3183,c|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;c=_n(e,J[b+4>>2]);od(c,2174299);d=Zm(J[c+4>>2],2173977);if(d)break c;qc(Rc(c));g=g+1|0;c=J[a+48>>2];if((g|0)>2])continue;break}b=0;break b}fg(d);return c}c=rc(8);J[695492]=0;b=aa(3183,c|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}return b}a=Z()|0;qc(c);ba(a|0);B()}function SL(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g= --1;a:{if(!b|!c)break a;if(!(J[a+16>>2]<=0|L[a+26>>1]>7))while(1){b:{c:{d:{e:{f=L[a+26>>1];switch(f-1|0){case 0:break d;case 3:break e;default:break b}}h=(e^-1)<<2&4;i=15;break c}h=(e^-1)&7;i=1}f=(P(e,f)>>>3|0)+c|0;j=K[f|0]&(i<>2])continue;break}if(J[a+1E3>>2]){e=J[a+1012>>2]+(J[a+1004>>2]^-1)|0;if(!((e|0)<0|(e|0)>J[J[b+20>>2]+20>>2])){J[b+4>>2]=e;k=b,l=df(J[b+20>>2],0)+P(e,J[J[b+20>>2]+52>>2])|0,J[k+16>>2]=l}e=J[J[b+20>>2]+52>>2];d= -(d|0)<0?e:(d|0)>(e|0)?e:d;f:{if((d|0)<=0)break f;b=J[b+16>>2];if(!b)break f;tc(b,c,d)}b=J[a+1008>>2];c=b+J[a+1004>>2]|0;J[a+1004>>2]=c;g=0;d=c;c=J[a+1012>>2];if((d|0)<(c|0))break a;e=J[a+1016>>2];while(1){if((e|0)>0){b=(b|0)/2|0;J[a+1008>>2]=b}e=e+1|0;d=(b|0)/2|0;if((d|0)>(c|0))continue;break}J[a+1004>>2]=d;J[a+1016>>2]=e;return 0}a=J[b+20>>2];if(!a)break a;if(!Yx(a,J[b>>2],J[b+4>>2]))break a;g=0;a=J[J[b+20>>2]+52>>2];a=(d|0)<0?a:(a|0)<(d|0)?a:d;g:{if((a|0)<=0)break g;d=J[b+16>>2];if(!d)break g;tc(d, -c,a)}a=J[b+4>>2];J[b+4>>2]=a-1;if((a|0)<=0)break a;J[b+16>>2]=J[b+16>>2]-J[J[b+20>>2]+52>>2]}return g}function yp(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;f=bc-592|0;bc=f;d=0;a:{if(!a)break a;h=J[689508];d=0;if(!h)break a;while(1){b:{d=H[a+e|0];d=d-97>>>0<26?d&95:d;H[(f+80|0)+e|0]=d;if(!(d&255)){d=e;break b}d=99;e=e+1|0;if((e|0)!=99)continue}break}H[(f+80|0)+d|0]=0;e=0;i=J[689509];d=0;if((i|0)<=0)break a;while(1){d=(e<<3)+h|0;if(!Ec(J[d+4>>2],f+80|0)){d=J[d>>2];break a}e=e+1|0;if((i|0)!=(e|0))continue; -break}d=0}d=d?d:a;c:{if(d){while(1){d:{a=H[d+g|0];a=a-97>>>0<26?a&95:a;H[(f+80|0)+g|0]=a;if(!(a&255)){e=g;break d}e=499;g=g+1|0;if((g|0)!=499)continue}break}g=0;a=f+80|0;H[a+e|0]=0;a=gc[J[659453]](a)|0;if(!a){J[f+16>>2]=38621;Cc(0,0,0,0,0,27,2,3,38621,0,0,0,32863,f+16|0);break c}g=gc[J[659447]](12)|0;if(!g){g=0;gc[J[659451]](a);J[f+32>>2]=38621;Cc(0,0,0,0,0,27,2,3,38621,0,0,0,32863,f+32|0);break c}J[g+8>>2]=c;J[g+4>>2]=b;J[g>>2]=a;e:{e=J[689510];if(e)break e;XJ();e=J[689510];if(e)break e;J[f+48>> -2]=0;Cc(0,0,0,0,0,27,6001,3,0,0,0,0,38792,f+48|0);break c}a=J[689513];if((a|0)>=50){J[f+64>>2]=20697;Cc(0,0,0,0,0,27,6002,3,20697,0,0,0,32551,f- -64|0);break c}J[689513]=a+1;J[(a<<2)+e>>2]=g;break c}J[f>>2]=0;Cc(0,0,0,0,0,27,6E3,3,0,0,0,0,38888,f)}bc=f+592|0;return g}function Y2(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;J[b+4>>2]=2147483632;J[b+28>>2]=J[b+20>>2];e=J[a+120>>2];a:{while(1){m=e;j=J[a+60>>2];if(j>>>0<=e>>>0)break a;k=J[J[a+72>>2]+(e>>>6&67108860)>>2];l=e&255;c=k+P(l,12)| -0;e=J[c+8>>2];i=J[c+4>>2];while(1){f=J[J[a+52>>2]+(e>>>8&16777212)>>2]+P(e&1023,12)|0;d=J[f+8>>2];b:{if((d|0)>=0){c=0;if(d>>>0>=M[a>>2])break b;c=J[J[a+12>>2]+(d>>>10&4194300)>>2]+(d&4095)|0;break b}d=d^-1;c=0;if(d>>>0>=M[a+20>>2])break b;c=J[(J[J[a+32>>2]+(d>>>4&268435452)>>2]+((d&63)<<3)|0)+4>>2]}d=J[f>>2];e=e+1|0;f=J[f+4>>2];c:{if((f|0)<0){g=d-J[b>>2]|0;h=0-f|0;wc(g+J[b+12>>2]|0,K[c|0],h);c=J[b+28>>2];d:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=h+L[c+2>>1];break d}d=c+8|0;J[b+28>>2]=d;n=J[b>>2];I[c+ -10>>1]=h;I[c+8>>1]=g+n;J[c+12>>2]=g+J[b+12>>2];c=d}d=g+(f^-1)|0;break c}g=d-J[b>>2]|0;tc(g+J[b+12>>2]|0,c,f);c=J[b+28>>2];e:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=f+L[c+2>>1];break e}d=c+8|0;J[b+28>>2]=d;h=J[b>>2];I[c+10>>1]=f;I[c+8>>1]=g+h;J[c+12>>2]=g+J[b+12>>2];c=d}d=(f+g|0)-1|0}J[b+4>>2]=d;i=i-1|0;if(i)continue;break}e=J[a+120>>2]+1|0;J[a+120>>2]=e;if(J[b+20>>2]==(c|0))continue;break}J[b+8>>2]=J[P(l,12)+k>>2]}return m>>>0>>0}function Ky(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;l=bc-16|0;bc=l;a:{b:{c:{if((c|0)<=36){f=K[a|0];if(f)break c;g=a;break b}J[694731]=28;d=0;e=0;break a}g=a;d:{while(1){f=f<<24>>24;if(!((f|0)==32|f-9>>>0<5))break d;f=K[g+1|0];g=g+1|0;if(f)continue;break}break b}e:{f=K[g|0];switch(f-43|0){case 0:case 2:break e;default:break b}}i=(f|0)==45?-1:0;g=g+1|0}f:{if(!((c|16)!=16|K[g|0]!=48)){o=1;if((K[g+1|0]&223)==88){g=g+2|0;m=16;break f}g=g+1|0;m=c?c:8;break f}m=c?c:10}c=0;while(1){g:{f=-48;j=H[g|0];h:{if((j-48&255)>>>0<10)break h;f=-87;if((j-97&255)>>> -0<26)break h;f=-55;if((j-65&255)>>>0>25)break g}n=f+j|0;if((n|0)>=(m|0))break g;ai(l,m,0,0,0,k,h,0,0);f=1;i:{if(J[l+8>>2]|J[l+12>>2])break i;p=Dzb(k,h,m,0);j=fc;if((j|0)==-1&(n^-1)>>>0

      >>0)break i;h=j;k=n+p|0;h=k>>>0>>0?h+1|0:h;o=1;f=c}g=g+1|0;c=f;continue}break}if(b)J[b>>2]=o?g:a;j:{k:{if(c){J[694731]=68;a=d&1;i=a?0:i;k=d;h=e;break k}if((e|0)==(h|0)&d>>>0>k>>>0|e>>>0>h>>>0)break j;a=d&1}if(!(a|i)){J[694731]=68;a=d;d=a-1|0;e=e-!a|0;break a}if((e|0)==(h|0)&d>>>0>=k>>>0|e>>>0>h>>>0)break j;J[694731]= -68;break a}a=i^k;d=a-i|0;b=i>>31;e=(b^h)-((a>>>0>>0)+b|0)|0}bc=l+16|0;fc=e;return d}function CV(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;f=bc-48|0;bc=f;g=c-1>>>0>=204799?204800:c;k=ch(f+12|0,f+20|0,g,1);a:{b:{c:{d:{if(!c){e:{while(1){f:{c=J[J[b>>2]+8>>2];J[695492]=0;c=ga(c|0,b|0,J[f+20>>2],g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;if(!c)break d;h=J[f+20>>2];d=c;while(1){e=J[J[a>>2]+12>>2];J[695492]=0;e=ga(e|0,a|0,h|0,d|0)|0;i=J[695492];J[695492]=0;if((i|0)==1)break e; -if(!e)break c;h=e+h|0;d=d-e|0;if(d)continue;break}j=c+j|0;continue}break}d=Z()|0;break a}d=Z()|0;break a}d=c?c>>>0>>0?c:g:g;while(1){e=J[J[b>>2]+8>>2];J[695492]=0;e=ga(e|0,b|0,J[f+20>>2],d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!e)break d;h=J[f+20>>2];d=e;while(1){i=J[J[a>>2]+12>>2];J[695492]=0;i=ga(i|0,a|0,h|0,d|0)|0;l=J[695492];J[695492]=0;if((l|0)==1){d=Z()|0;break a}if(!i)break c;h=h+i|0;d=d-i|0;if(d)continue;break}j=e+j|0;d=g+j>>>0>c>>>0?c-j|0:g;if(d)continue;break}}_c(k);bc= -f+48|0;return j|0}J[695492]=0;a=ja(5018,f+24|0,2378736,2375204,474,2384672,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){d=Z()|0;Fc(a);break a}B()}d=Z()|0;break a}d=Z()|0}_c(k);ba(d|0);B()}function Kw(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;h=-6;a:{if(!g|K[g|0]!=49)break a;h=-2;if(!a)break a;J[a+24>>2]=0;g=J[a+32>>2];if(!g){J[a+40>>2]=0;J[a+32>>2]=3061;g=3061}if(!J[a+36>>2])J[a+36>>2]=3062;b:{if((d|0)<0)d=0-d|0;else{if(d>>>0<16){i=1;j=0; -break b}i=2;d=d-16|0}j=1}if(f>>>0>4)break a;k=(b|0)==-1?6:b;if((c|0)!=8|k>>>0>9|(e-10>>>0<4294967287|d>>>0<8))break a;if(d>>>0>15)break a;c=(d|0)==8;if(c&j)break a;h=-4;b=gc[g|0](J[a+40>>2],1,5828)|0;if(!b)break a;J[a+28>>2]=b;J[b+28>>2]=0;J[b+24>>2]=i;J[b+4>>2]=42;J[b>>2]=a;J[b+80>>2]=e+7;g=128<>2]=g;c=c?9:d;J[b+48>>2]=c;J[b+84>>2]=g-1;c=1<>2]=c;J[b+88>>2]=((e+9&255)>>>0)/3;J[b+52>>2]=c-1;l=b,m=gc[J[a+32>>2]](J[a+40>>2],c,2)|0,J[l+56>>2]=m;l=b,m=gc[J[a+32>>2]](J[a+40>>2],J[b+ -44>>2],2)|0,J[l+64>>2]=m;c=gc[J[a+32>>2]](J[a+40>>2],J[b+76>>2],2)|0;J[b+5824>>2]=0;J[b+68>>2]=c;c=64<>2]=c;c=gc[J[a+32>>2]](J[a+40>>2],c,4)|0;J[b+8>>2]=c;d=J[b+5788>>2];J[b+12>>2]=d<<2;c:{if(!(!J[b+68>>2]|(!J[b+56>>2]|!J[b+64>>2])))if(c)break c;J[b+4>>2]=666;J[a+24>>2]=J[191994];go(a);return-4}J[b+136>>2]=f;J[b+132>>2]=k;H[b+36|0]=8;J[b+5784>>2]=c+P(d,3);J[b+5796>>2]=c+(d&-2);h=eK(a)}return h}function DK(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;if(!f)return 0; -if(J[f>>2]<=0){a:{if(!(!d&(e|0)!=0|((b|0)<0|(e|0)<-1)))if(!b|a)break a;J[f>>2]=1;return 0}j=b;b:{c:{if(J[f>>2]<=0){d:{if(!((b|0)<0|(e|0)<-1|(!d&(e|0)!=0|!a&(b|0)!=0)))break d;J[f>>2]=1;a=0;break b}k=a?(j<<2)+a|0:0;e:{f:{g:{h:{if((e|0)<0){e=L[d>>1];g=(e|0)!=0;if(!e|(e&63488)==55296)break h;b=a;while(1){i:{if(b>>>0>>0){J[b>>2]=e;b=b+4|0;break i}i=i+1|0}d=d+2|0;e=L[d>>1];g=(e|0)!=0;if(!e)break g;if((e&63488)!=55296)continue;break}break g}g=d?(e<<1)+d|0:0;b=a;break f}b=a}if(!g)break e;e=d;while(1){h= -L[e+2>>1];g=e+2|0;e=g;if(h)continue;break}}if(d>>>0>=g>>>0)break e;while(1){h=d+2|0;e=L[d>>1];if((e&63488)!=55296)d=h;else{if(e&1024|g>>>0<=h>>>0)break c;h=L[h>>1];if((h&64512)!=56320)break c;e=(h+(e<<10)|0)-56613888|0;d=d+4|0}j:{if(b>>>0>=k>>>0){i=i+1|0;break j}J[b>>2]=e;b=b+4|0}if(d>>>0>>0)continue;break}}b=(b-a>>2)+i|0;if(c)J[c>>2]=b;k:{if(!f|(b|0)<0)break k;c=J[f>>2];if((c|0)>0)break k;l:{if((b|0)<(j|0)){J[(b<<2)+a>>2]=0;b=0;if((c|0)==-124)break l;break k}b=(b|0)==(j|0)?-124:15}J[f>>2]=b}}else a= -0;break b}J[f>>2]=10;a=0}}else a=0;return a|0}function oCa(a){a=a|0;var b=0,c=0,d=0;d=bc-16|0;bc=d;J[a+84>>2]=-1;J[a+76>>2]=0;J[a+80>>2]=0;H[a+10|0]=0;I[a+8>>1]=0;b=rc(8);J[b>>2]=0;J[a+72>>2]=0;J[a+12>>2]=b;J[695492]=0;b=$(4,20)|0;c=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{if((c|0)!=1){J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[695492]=0;c=b+4|0;J[c>>2]=2385932;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[a+72>>2]=b;J[695492]=0;b=d+12|0;_(5078,b|0); -c=J[695492];J[695492]=0;if((c|0)==1)break f;J[695492]=0;aa(4993,a- -64|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;a=J[d+12>>2];J[d+12>>2]=0;h:{if(!a)break h;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break c;if(b)break h;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c}bc=d+16|0;return}c=ea(0)|0;break d}c=ea(0)|0;qc(b);break d}c=ea(0)|0;break d}c=ea(0)|0;vc(d+12|0)}na(c|0)|0;b=J[a+72>>2];if(b){$c(b+4|0);qc(b)}J[a+72>>2]=0;b=J[a+12>>2]; -if(b)qc(b);J[a+12>>2]=0;J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break a;ea(0)|0;yc();B()}ea(0)|0;yc()}B()}ba(a|0);B()}function j4a(a,b){a=a|0;b=b|0;var c=Q(0),d=Q(0),e=Q(0),f=Q(0),g=0,h=0,i=Q(0),j=0,k=Q(0),l=Q(0),m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;J[a>>2]=0;J[a+4>>2]=0;m=a+8|0;J[m>>2]=0;J[m+4>>2]=0;b=b+16|0;if(J[b+84>>2]>0){n=J[b+84>>2];a:{if((n|0)<=0){J[a>>2]=0;J[a+4>>2]=0;J[a+12>>2]=0;J[m>>2]=0;break a}o= -J[b+80>>2];if((n|0)!=1){v=n&-2;while(1){q=P(h,96)+o|0;c=Q(-N[q+16>>2]);e=c>e?e:c;r=P(h|1,96)+o|0;c=Q(-N[r+16>>2]);e=c>e?e:c;c=Q(-N[q+24>>2]);d=c>2]);d=c>2]);e=c>e?e:c;c=Q(-N[h+24>>2]);d=c>3];p=O[b+40>>3];b:{c:{t=O[b+24>>3];g=O[b+32>>3];if(t!=1|g!=0|(p!=0|j!=1))break c;if(O[b+56>>3]!=0|O[b- -64>>3]!=0)break c;f=Q(0);break b}g=g*0;u=+e;c=Q(g+j*u);w=j;j=+d;d=Q(g+w*j); -e=ce?e:c;d=c>d?c:d;d=ck?k:c;f=c>f?c:f;f=c>2];c=N[b+8>>2];i=Q(i+c);l=N[b+16>>2];l=c>2]=i>2];i=N[b+16>>2];f=f>i?f:i;N[a+4>>2]=c>f?c:f;e=Q(e+k);c=N[b+12>>2];f=N[b+20>>2];c=c>2]=c>e?e:c;e=Q(d+k);d=N[b+12>>2];c=N[b+20>>2];d=c>2]=d>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[e+12|0]= -0;J[e+8>>2]=a;a:{b:{c:{d:{e:{f:{if(b){if(b>>>0>=357913942){J[695492]=0;_(2379,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break a}J[695492]=0;b=P(b,12);d=$(4,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[a+4>>2]=d;J[a>>2]=d;h=b+d|0;J[a+8>>2]=h;f=J[c>>2];i=J[c+4>>2];g:{if((f|0)==(i|0)){b=b-12|0;wc(d,0,(b-((b>>>0)%12|0)|0)+12|0);break g}j=i-f|0;b=j>>2;if(b>>>0>=1073741824)break f;k=b<<2;while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;b=$(4,j|0)|0;c=J[695492];J[695492]=0;if((c|0)== -1)break e;J[d+4>>2]=b;J[d>>2]=b;J[d+8>>2]=b+k;c=f;while(1){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;b=b+4|0;c=c+4|0;if((i|0)!=(c|0))continue;break}J[d+4>>2]=b;d=d+12|0;if((h|0)!=(d|0))continue;break}}J[a+4>>2]=h}bc=e+16|0;return a|0}J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;_(2265,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;c=J[d>>2];if(!c)break d;J[d+4>>2]=c;qc(c);J[a+4>>2]=d;break b}b=Z()|0}J[a+4>>2]=d;break b}b=Z()| -0}no(e+8|0);ba(b|0);B()}B()}function bba(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;l=bc-16|0;bc=l;a:{b:{if((c|0)<=0){p=a+608|0;q=a+604|0;d=J[a+608>>2];e=J[a+604>>2];break b}wc(b,255,c);p=a+608|0;q=a+604|0;h=J[a+588>>2];d=J[a+608>>2];e=J[a+604>>2];while(1){j=d-1|0;i=e+1|0;c:{d:{e:{f=K[e|0];if((f|0)!=64){if(f)break e;if((d|0)<=(h|0))break d;Ne(b,i,h);d=j-h|0;e=h+i|0;break c}f=d;d=K[e+4|0]|K[e+3|0]<<8;g=d+4|0;if((f|0)<=(g|0))break d;f=K[e+2| -0]|K[e+1|0]<<8;if((f+d|0)>(h|0))break d;Ne(b+f|0,e+5|0,d);d=j-g|0;e=g+i|0;break c}m=J[a+56>>2];e=0;d=b;while(1){k=e>>>0>>0;n=f&63;f:{if(!n){g=d;break f}if(e>>>0>=m>>>0){g=d;break f}r=f&192;o=(f&255)>>>6|0;s=o<<4;t=o<<2;g=d;while(1){f=s;k=r;g:{h:{i:switch((e&3)-1|0){case 1:f=t;g=d;break h;case 0:break h;case 2:break i;default:break g}g=d+1|0;f=o}k=K[d|0]|f}H[d|0]=k;e=e+1|0;k=m>>>0>e>>>0;if(n>>>0<2)break f;n=n-1|0;d=g;if(e>>>0>>0)continue;break}}if(!k){d=j;e=i;break c}if(!j)break d;j=j-1|0;f= -K[i|0];d=g;i=i+1|0;continue}}b=J[a>>2];c=J[a+628>>2];J[l>>2]=J[a+472>>2];Nc(c,b,69419,l);a=0;break a}b=b+h|0;c=c-h|0;if((c|0)>0)continue;break}}J[q>>2]=e;J[p>>2]=d;a=1}bc=l+16|0;return a|0}function Rwa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;g=kf(c);a:{b:{c:{d:{e:{f=b- -64|0;d=J[J[f+12>>2]+((g>>>0)%M[f+8>>2]<<2)>>2];if(d)while(1){if(J[d+12>>2]==(g|0))if(!tj(d+16|0,c,-1))break e;d=J[d+8>>2];if(d)continue;break}J[e+12>>2]=f;J[e+8>>2]=0;break d}J[e+12>>2]=f;J[e+8>>2]=d;c=J[d+24>> -2];J[a>>2]=0;J[695492]=0;d=J[J[b+48>>2]+((c>>>0)%M[b+44>>2]<<2)>>2];b=J[695492];J[695492]=0;f:{g:{h:{if((b|0)!=1){if(!d)break g;while(1){if(!((c|0)==J[d+12>>2]&(c|0)==J[d+16>>2])){d=J[d+8>>2];if(d)continue;break h}break}if(!J[d+20>>2]|J[c+4>>2]<=0)break h;J[695492]=0;aa(4985,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break h;break a}break a}b=J[a>>2];if(!b)break f;if(J[b+4>>2]>0)break g;J[695492]=0;aa(4985,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a>>2])break c}J[695492]=0;da(5423, -f|0,e+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a>>2];J[a>>2]=0;if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}J[a>>2]=0;md(a,0)}bc=e+16|0;return}ea(0)|0;yc();B()}b=Z()|0;vc(a);ba(b|0);B()}function Dya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=bc-32|0;bc=f;a:{a=J[a+8>>2];if(a){b:{d=J[a+8>>2];if((d|0)==(b|0)){e=1;if(J[a+12>>2]==(c|0))break b}e=2;if(((d+1|0)/ -2|0)==(b|0))if(((J[a+12>>2]+1|0)/2|0)==(c|0))break b;e=3;if(((d+2|0)/3|0)==(b|0))if(((J[a+12>>2]+2|0)/3|0)==(c|0))break b;e=4;if(((d+3|0)/4|0)==(b|0))if(((J[a+12>>2]+3|0)/4|0)==(c|0))break b;e=5;if(((d+4|0)/5|0)==(b|0))if(((J[a+12>>2]+4|0)/5|0)==(c|0))break b;e=6;if(((d+5|0)/6|0)==(b|0))if(((J[a+12>>2]+5|0)/6|0)==(c|0))break b;e=7;if(((d+6|0)/7|0)==(b|0))if(((J[a+12>>2]+6|0)/7|0)==(c|0))break b;e=8;if(((d+7|0)/8|0)==(b|0))if(((J[a+12>>2]+7|0)/8|0)==(c|0))break b;e=9;if(((d+8|0)/9|0)==(b|0))if(((J[a+ -12>>2]+8|0)/9|0)==(c|0))break b;e=10;if(((d+9|0)/10|0)==(b|0))if(((J[a+12>>2]+9|0)/10|0)==(c|0))break b;e=11;if(((d+10|0)/11|0)==(b|0))if(((J[a+12>>2]+10|0)/11|0)==(c|0))break b;e=12;if(((d+11|0)/12|0)==(b|0))if(((J[a+12>>2]+11|0)/12|0)==(c|0))break b;a=Kc(f+8|0,2387381,2374155,823,2402467,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}a=J[a+20>>2];a=((a?a:300)|0)/(e|0)|0}else a=300;bc=f+32|0;return a|0}B()}function Dqa(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;k=bc-32|0;bc=k;a:{if(!K[a+49|0]){b=Kc(k+8|0,2380554,2374240,718,2421817,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(b);ba(a|0);B()}if(K[a+4|0]){e=L[b+2>>1];h=e+c|0;f=L[b>>1];i=f+d|0;g=f+1|0;f=e+1|0}else f=0;e=gc[J[J[a>>2]+8>>2]](a,J[a+200>>2]>(g|0),a+168|0)|0;j=J[J[a>>2]+56>>2];b:{if(e){j=gc[j|0](a,g-J[a+212>>2]|0,a+176|0)|0;e=gc[J[J[a>>2]+56>>2]](a,h-J[a+208>>2]|0,a+184|0)|0;h=K[a+4|0];if(!h){g=j+J[a+212>>2]|0;i=(g+d|0)- -1|0;f=(J[a+208>>2]+(e-c|0)|0)+1|0}J[a+208>>2]=f;J[a+204>>2]=i;J[a+200>>2]=g;J[a+212>>2]=g;J[a+196>>2]=f;J[a+236>>2]=0;J[a+224>>2]=f;J[a+232>>2]=f;J[a+228>>2]=f;break b}e=gc[j|0](a,g-J[a+204>>2]|0,a+172|0)|0;c=gc[J[J[a>>2]+56>>2]](a,f-J[a+196>>2]|0,a+180|0)|0;h=K[a+4|0];if(!h){g=e+J[a+204>>2]|0;i=(g+d|0)-1|0;f=c+J[a+196>>2]|0}J[a+204>>2]=i;J[a+200>>2]=g;c=J[a+236>>2]+1|0;c=(c|0)!=3?c:0;J[a+236>>2]=c;J[(a+224|0)+(c<<2)>>2]=f;e=J[a+232>>2];d=J[a+224>>2];c=J[a+228>>2];c:{if((d|0)>=(c|0)){c=(d|0)>(e|0)? -(c|0)>(e|0)?c:e:d;break c}c=(d|0)<(e|0)?(c|0)<(e|0)?c:e:d}J[a+196>>2]=c}if(!h){I[b>>1]=g-1;I[b+2>>1]=f-1}bc=k+32|0;return}B()}function $n(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;f=bc-16|0;bc=f;a:{if((b|0)<0|J[a+32>>2]<=(b|0))break a;J[f+12>>2]=1;e=J[a+28>>2];g=e+P(b,20)|0;d=J[g+8>>2];b:{c:switch(J[g+16>>2]){case 0:if((c|0)<0|(J[(e+P(b,20)|0)+12>>2]-6|0)<=(c|0))break a;b=Mf(a,(c+d|0)+6|0,f+12|0);break b;case 2:if(c>>>0>255)break a;b=f+12|0;if(vf(a,d+6|0,b))break a;if(vf(a, -d+518|0,b))break a;if((vf(a,d+520|0,b)|0)!=256)break a;if(vf(a,d+522|0,b))break a;h=c<<1;c=d+524|0;b=vf(a,(h+c|0)+vf(a,c,b)|0,b);break b;case 4:g=-1;h=f+12|0;j=vf(a,d+6|0,h);i=(j|0)/2|0;e=i-1|0;b=e<<1;k=d+14|0;if((vf(a,b+k|0,h)|0)<(c|0))break a;if(!(!J[f+12>>2]|(j|0)<4)){while(1){b=(e+g|0)/2|0;h=(vf(a,(b<<1)+k|0,f+12|0)|0)<(c|0);e=h?e:b;g=h?b:g;if(J[f+12>>2]?(e-g|0)>=2:0)continue;break}b=e<<1}b=(b+d|0)+16|0;h=f+12|0;d=h;e=vf(a,b+(i<<1)|0,d);g=vf(a,b+(i<<2)|0,d);i=b+P(i,6)|0;d=vf(a,i,d);if((c|0)<(e| -0))break a;b=c+g&65535;if(!d)break b;a=vf(a,(d+i|0)+(c-e<<1)|0,h);b=0;if(!a)break b;b=a+g&65535;break b;case 6:break c;default:break a}e=f+12|0;b=vf(a,d+6|0,e);if((b|0)>(c|0)|(vf(a,d+8|0,e)+b|0)<=(c|0))break a;b=vf(a,(d+(c-b<<1)|0)+10|0,e)}l=J[f+12>>2]?b:0}bc=f+16|0;return l|0}function M2(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=bc+-64|0;bc=e;c=J[a+24>>2];if(!(K[a+28|0]|!c))qc(c);J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=8;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;c=e+16|0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>> -2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[695492]=0;H[e+15|0]=0;d=ha(2394,c|0,b|0,0,e+15|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)a:{if(d){J[695492]=0;d=J[c+16>>2];b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+24>>2]=d;J[695492]=0;d=J[c+4>>2];b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+12>>2]=d;J[695492]=0;d=J[c+8>>2];b=J[695492];J[695492]=0;if((b|0)==1)break a; -J[a+16>>2]=d;J[695492]=0;d=J[c+12>>2];b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+8>>2]=0;J[a+20>>2]=d}J[695492]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break a;Ng(c);bc=e- -64|0;return}a=Z()|0;Ng(c);ba(a|0);B()}function Ik(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i= -0,j=0,k=0,l=0;a:{b:{c:{d:{e:{f:{g:{i=J[b+4>>2];h:{if(!(!i|(c|d)<0|J[b+16>>2]<=(c|0)))if(J[b+20>>2]>(d|0))break h;c=J[b+336>>2];if((c|0)>=0)break g;if(!i)break a;e=1;c=0;d=0}j=J[b+44>>2];if(!j)break d;g=L[b+26>>1];if((g|0)!=8)break f;h=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+c|0];break e}if(L[b+26>>1]<=23){H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;if(!i)break b;b=J[b+44>>2];if(!b)break b;d=b;b=c&255;if(d>>>0<=b>>>0)break b;b=i+(b<<2)|0;H[a|0]=K[b+40|0];H[a+1|0]=K[b+41|0];H[a+2|0]=K[b+42|0];H[a+3|0]=K[b+43| -0];return}break a}f=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+(P(c,g)>>3)|0];i:switch(g-1|0){case 3:g=4-((c|0)%2<<2)&252;h=(f&15<>>g|0;break e;case 0:break i;default:break e}g=7-((c|0)%8|0)|0;h=(f&1<>>g|0}g=0;h=h&255;f=0;if(h>>>0>=j>>>0)break c;f=i+(h<<2)|0;g=K[f+43|0];k=K[f+42|0];l=K[f+40|0];f=K[f+41|0];break c}f=(J[b+56>>2]+P(J[b+52>>2],d)|0)+P(c,3)|0;k=K[f+2|0];l=K[f|0];g=K[b+343|0];f=K[f+1|0]}if(!(!J[b+964>>2]|e^1))g=K[(J[b+964>>2]+P(J[b+16>>2],d)|0)+c|0];H[a+3|0]=g;H[a+2|0]=k;H[a+1|0]=f;H[a|0]= -l}return}b=J[b+340>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24}function Um(a,b){var c=0,d=0,e=0,f=0;d=bc-96|0;bc=d;J[d+80>>2]=13;a:{b:switch(J[a>>2]){case 0:BF(J[a+8>>2]?789881:790712,b);break a;case 1:J[d>>2]=J[a+8>>2];cd(b,791584,d);break a;case 2:O[d+16>>3]=O[a+8>>3];Ii(b,792268,d+16|0);break a;case 3:Ph(40,b);a=J[a+8>>2];Td(J[a+4>>2],1,J[a>>2],b);Ph(41,b);break a;case 4:J[d+32>>2]=J[a+8>>2];cd(b,794287,d+32|0);break a;case 5:Td(780512,4,1,b);break a;case 6:Ph(91,b);e=1;c=J[a+8>> -2];c:{if(J[c+12>>2]<=0)break c;f=c;c=d+80|0;jg(f,0,c);Um(c,b);uc(c);if(J[J[a+8>>2]+12>>2]<2)break c;while(1){Ph(32,b);c=d+80|0;jg(J[a+8>>2],e,c);Um(c,b);uc(c);e=e+1|0;if((e|0)>2]+12>>2])continue;break}}Ph(93,b);break a;case 7:Td(798041,2,1,b);c=J[a+8>>2];if(J[c+16>>2]>0)while(1){J[d+48>>2]=J[J[c+4>>2]+(e<<5)>>2];cd(b,798728,d+48|0);c=d+80|0;Wm(J[a+8>>2],e,c);Um(c,b);uc(c);e=e+1|0;c=J[a+8>>2];if((e|0)>2])continue;break}Td(799406,3,1,b);break a;case 8:Td(800207,8,1,b);break a;case 9:e= -J[a+12>>2];J[d+64>>2]=J[a+8>>2];J[d+68>>2]=e;cd(b,800684,d- -64|0);break a;case 10:BF(J[a+8>>2],b);break a;case 11:Td(801542,7,1,b);break a;case 12:Td(802425,5,1,b);break a;case 13:break b;default:break a}Td(803085,6,1,b)}bc=d+96|0}function SJ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{c=J[a+108>>2];if(c){b=J[a+112>>2];if(b)break a}b=K[9761]|K[9762]<<8|(K[9763]<<16|K[9764]<<24);c=K[9757]|K[9758]<<8|(K[9759]<<16|K[9760]<<24);H[a+300|0]=c;H[a+301|0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304| -0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[9753]|K[9754]<<8|(K[9755]<<16|K[9756]<<24);c=K[9749]|K[9750]<<8|(K[9751]<<16|K[9752]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;return}b=P(J[a+288>>2],P(b,c));J[a+120>>2]=b;d=J[a+144>>2];b:{c:{if(!d){b=zc(b);J[a+268>>2]=4;J[a+144>>2]=b;J[J[a+272>>2]+68>>2]=2;b=a+272|0;break c}b=Vd(d,b);J[a+268>>2]=4;J[a+144>>2]=b;c=J[a+108>>2];J[J[a+272>>2]+68>> -2]=2;if(!c)break b;b=a+272|0}d=1;while(1){d:{if(!d){d=0;break d}e=J[a+144>>2];if(!e){d=0;break d}d=1;f=J[a+112>>2];if(!f)break d;g=J[a+288>>2];c=e+P(P(g,h),f)|0;i=0;while(1){e=J[b>>2];if(!((H[J[e+120>>2]+c|0]>=0?J[e+116>>2]:0)|!J[e+68>>2])){H[J[e+72>>2]+c|0]=255;g=J[a+288>>2];f=J[a+112>>2]}c=c+g|0;i=i+1|0;if(i>>>0>>0)continue;break}c=J[a+108>>2]}h=h+1|0;if(h>>>0>>0)continue;break}}}function QCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-1056|0;bc=e;f=gc[J[J[a>>2]+16>>2]](a)|0;a:{b:{c:{d:switch(c| -0){case 2:if(b){b=-1;if(d)break c;a=Kc(e+32|0,2377288,2375204,366,2384583,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}while(1){if(gc[J[J[a>>2]+8>>2]](a,e+32|0,1024)|0)continue;break}b=0;break c;default:a=Kc(e+32|0,2377873,2375204,375,2384583,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a;case 1:c=f;break;case 0:break d}c=b+c|0;if((c|0)>=(f|0)){b=0;if((c|0)<=(f|0))break c;while(1){d=gc[J[J[a>>2]+8>>2]](a,e+32|0,(c|0)>=(f+1024|0)?1024: -c-f|0)|0;if(!d){a=Kc(e+8|0,J[682138],2375204,393,2384583,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=d+f|0;if((gc[J[J[a>>2]+16>>2]](a)|0)!=(f|0)){a=Kc(e+8|0,2378374,2375204,396,2384583,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if((c|0)>(f|0))continue;break}break c}b=-1;if(d)break c;a=Kc(e+32|0,2377288,2375204,383,2384583,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=e+1056|0;return b|0}B()}b= -Z()|0;Fc(a);ba(b|0);B()}function KUa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;we(b,2);ao(a,b);we(b,K[a+208|0]);pd(b,J[a+212>>2]);c=J[a+4>>2];if(c&32768){e=O[a+232>>3]*100;a:{if(R(e)<2147483648){c=~~e;break a}c=-2147483648}pd(b,c);e=O[a+240>>3]*100;b:{if(R(e)<2147483648){c=~~e;break b}c=-2147483648}pd(b,c);e=O[a+248>>3]*100;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}pd(b,c);e=O[a+256>>3]*100;d:{if(R(e)<2147483648){c=~~e;break d}c=-2147483648}pd(b,c);c=J[a+4>>2]}e:{if(!(c&65536))break e;pd(b,J[a+280>> -2]-J[a+276>>2]>>3);d=J[a+276>>2];if((d|0)==J[a+280>>2])break e;c=0;while(1){e=O[(c<<3)+d>>3]*100;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}pd(b,d);c=c+1|0;d=J[a+276>>2];if(c>>>0>2]-d>>3>>>0)continue;break}}c=J[a+4>>2];if(c&131072){c=K[a+227|0];d=c<<24>>24<0;jf(b,d?J[a+216>>2]:a+216|0,d?J[a+220>>2]:c);c=J[a+4>>2]}if(c&262144){we(b,K[a+210|0]);c=J[a+4>>2]}if(c&1048576){we(b,K[a+209|0]);c=J[a+4>>2]}g:{if(!(c&2097152))break g;pd(b,J[a+268>>2]-J[a+264>>2]>>3);d=J[a+264>>2];if((d|0)== -J[a+268>>2])break g;c=0;while(1){e=O[(c<<3)+d>>3]*1E4;h:{if(R(e)<2147483648){d=~~e;break h}d=-2147483648}pd(b,d);c=c+1|0;d=J[a+264>>2];if(c>>>0>2]-d>>3>>>0)continue;break}}}function Qp(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;f=bc-16|0;bc=f;k=J[b+28>>2];J[a+28>>2]=0;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;J[a+4>>2]=J[b+8>>2];a:{b:{c:{if(d){e=Kf(b,f+12|0);if(J[f+12>>2])break b;d=5;break c}e=Wd(b,f+12|0);if(J[f+12>>2])break b; -d=3}J[a+8>>2]=d;d=0;if(!e)break a;g=Gg(b,f+12|0);if(J[f+12>>2])break b;if((g-5&255)>>>0<=251){J[f+12>>2]=8;break b}H[a+16|0]=g;J[a+12>>2]=e;g=g&255;J[a+20>>2]=J[a+8>>2]+(J[a+4>>2]+P(g,e+1|0)|0);e=bg(b,P(e,g));J[f+12>>2]=e;if(e)break b;i=bc-16|0;bc=i;l=mg(J[a>>2],i+12|0,K[a+16|0]);d:{if(l)break d;j=K[a+16|0];if(!j)break d;e=0;if(j>>>0>=4){n=j&252;while(1){g=e;e=e+4|0;h=h+4|0;if((n|0)!=(h|0))continue;break}h=i+12|0;h=K[h+(g|3)|0]|(K[h+(g|2)|0]|(K[g+h|0]<<16|K[h+(g|1)|0]<<8))<<8}g=j&3;if(!g)break d; -while(1){h=K[(i+12|0)+e|0]|h<<8;e=e+1|0;m=m+1|0;if((g|0)!=(m|0))continue;break}}J[f+12>>2]=l;bc=i+16|0;if(J[f+12>>2])break b;if(!h){J[f+12>>2]=8;break b}e=h-1|0;J[a+24>>2]=e;e:{if(c){b=yi(b,e,a+32|0);break e}b=bg(b,e)}J[f+12>>2]=b;if(!b)break a}b=J[a+28>>2];if(b)gc[J[k+8>>2]](k,b);J[a+28>>2]=0;d=J[f+12>>2]}bc=f+16|0;return d}function Vj(a,b,c,d){var e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;a:{if(!a|K[a+362|0]&8)break a;if(J[a+388>>2]==89){g=1;break a}b:{if(!c|J[c+48>>2]==6)break b;e=J[c+40>>2];if(J[c+72>>2]| -!e|J[a+84>>2]==89)break b;h=J[a+440>>2];J[c+72>>2]=1;J[a+248>>2]=J[a+248>>2]+1;e=yt(a,e,xk(e),1);J[a+248>>2]=J[a+248>>2]-1;if(J[a+84>>2]==89)H[J[c+40>>2]]=0;J[c+72>>2]=(J[a+440>>2]-h<<1)+2;if(!e)break b;if(zp(e,60))J[c+72>>2]=J[c+72>>2]|1;gc[J[659451]](e)}c:{if(d){if(d>>>0<15E6)break a;b=J[a+36>>2];if(b)b=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2]|0;else b=0;if(P(b+J[a+444>>2]|0,10)>>>0<=d>>>0)break c;break a}if(b){if(b>>>0<1E3)break a;d=b;c=J[a+36>>2];if(c)b=(J[c+36>>2]+J[c+16>>2]|0)-J[c+12>>2]|0;else b= -0;b=P(b+J[a+444>>2]|0,10);if(d>>>0>=b>>>0|b>>>0<=P(J[a+440>>2],3)>>>0)break c;break a}if(c){c=P(J[c+72>>2]/2|0,3);b=J[a+36>>2];if(b)b=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2]|0;else b=0;if(c>>>0>=P(b+J[a+444>>2]|0,10)>>>0)break c;break a}if((J[a+388>>2]&-2)!=26|M[a+440>>2]<10001)break a}if(J[a+212>>2]){g=1;if(J[a+172>>2]==-1)break a}J[a+84>>2]=89;J[f>>2]=5754;g=1;Cc(0,0,0,a,0,1,89,3,0,0,0,0,32890,f);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}bc=f+16|0;return g}function naa(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;a:{d=J[J[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a;Xo(b,a);g=a-d|0;if((d|0)<5){a=d<<2;while(1){b:switch(d|0){default:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 3:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 2:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 1:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;break;case 0:break b}g=g-d|0;if((g|0)>0)continue;break}break a}a=d-4|0;h=d&3;i=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e; -case 3:break f;case 4:break g;default:break h}e=0;c=a;if(h)while(1){f=(d<<2)+b|0;J[f>>2]=J[f>>2]+J[b>>2];c=c-1|0;b=b+4|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(!i)break g;while(1){e=d<<2;f=e+b|0;J[f>>2]=J[f>>2]+J[b>>2];f=e+(b+4|0)|0;J[f>>2]=J[f>>2]+J[b+4>>2];f=e+(b+8|0)|0;J[f>>2]=J[f>>2]+J[b+8>>2];e=e+(b+12|0)|0;J[e>>2]=J[e>>2]+J[b+12>>2];b=b+16|0;e=(c|0)>4;c=c-4|0;if(e)continue;break}}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]= -J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}g=g-d|0;if((g|0)>0)continue;break}}}function tr(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;d=bc+-64|0;bc=d;l=!(K[J[a+11676>>2]+5|0]?K[a+11665|0]:1);f=J[a+11720>>2];g=a+11724|0;e=J[g>>2];if((f|0)!=(b|0)|(e|0)!=(c|0)|l){GL(a,f,e,b,c,d+20|0,d+16|0);e=J[d+20>>2];h=e+J[a+11720>>2]|0;J[d+8>>2]=h;f=J[d+16>>2];g=f+J[g>>2]|0;J[d+12>>2]=g;f=c+f|0;j=b+e|0;if(K[a+11667|0]){J[d+56>>2]=1;e=J[a+11732>>2];J[d+24>>2]=J[a+11728>>2];J[d+ -28>>2]=e;if(!K[a+20|0])du(a,J[a+11736>>2],J[a+11740>>2]);k=Pc(J[a+11644>>2],h);e=Pc(J[a+11648>>2],g);i=pm(a+8|0,g);e=e+k|0;m=d,n=(Pc(J[J[a>>2]+64>>2],e)+Pc(J[J[a>>2]+72>>2],i)|0)+J[a+11656>>2]|0,J[m+32>>2]=n;m=d,n=(Pc(J[J[a>>2]+68>>2],e)+Pc(J[J[a>>2]+76>>2],i)|0)+J[a+11660>>2]|0,J[m+36>>2]=n;e=J[a+4>>2];gc[J[e>>2]](e,d+24|0);e=J[d+32>>2];k=J[d+36>>2];i=h;h=0;J[a+11704>>2]=i|h;J[a+11708>>2]=g;J[a+11728>>2]=e;J[a+11732>>2]=k;J[a+11712>>2]=h|j;J[a+11716>>2]=f;H[a+11664|0]=1;H[a+11667|0]=0}if(K[a+11744| -0])lx(a,a+8|0,d+8|0,j,f,0);J[a+11748>>2]=2;H[a+11744|0]=1;g=J[d+12>>2];J[a+11752>>2]=J[d+8>>2];J[a+11756>>2]=g;J[a+11760>>2]=j;J[a+11764>>2]=f;if(l)kx(a+8|0,J[a+11668>>2],J[a+11672>>2],J[a+11676>>2],J[a+11680>>2],0);J[a+11724>>2]=c;J[a+11720>>2]=b}bc=d- -64|0}function dBa(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;j=bc-32|0;bc=j;c=J[b>>2];if(c){e=bc-32|0;bc=e;h=J[c+16>>2];J[e+12>>2]=0;i=zc(h<<2);if((h|0)>0){f=c+12|0;c=0;while(1){J[695492]=0;Jz(e+24|0,f,c);d=J[695492];J[695492]=0;a:{b:{if((d| -0)==1)break b;c:{d=J[e+24>>2];if(d){J[e+16>>2]=d;g=J[e+28>>2];J[e+20>>2]=g;if((f|0)==(g|0))break c;J[695492]=0;da(5073,e+16|0,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;B()}J[695492]=0;aa(4985,e+12|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;break a}J[695492]=0;aa(4993,e+12|0,d+8|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break a}a=Z()|0;vc(e+12|0);ba(a|0);B()}g=J[e+12>>2];J[(c<<2)+i>>2]=J[g+8>>2];c=c+1|0;if((h|0)!=(c|0))continue;break}}f=0;while(1){d:{d=0;c=f;if((h|0)<=(c|0))break d;while(1){e:{d= -J[(c<<2)+i>>2]+d|0;if(!d){d=1;break e}if((c-f|0)==(d|0))break e;c=c+1|0;if((h|0)!=(c|0))continue;break d}break}f=d+f|0;if((d|0)>0)continue}break}qc(i);J[e+12>>2]=0;f:{if(!g)break f;J[695492]=0;c=J[g+4>>2]-1|0;J[g+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)!=1){if(c)break f;J[695492]=0;_(4987,g|0);c=J[695492];J[695492]=0;if((c|0)!=1)break f}ea(0)|0;yc();B()}bc=e+32|0}uj(a+12|0,b);bc=j+32|0}function _X(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{e=J[c+52>>2];f=J[e+8>>2];b:{if((f|0)>0){g=J[e>>2];while(1){c:{i= -J[g+(d<<2)>>2];if(J[i+4>>2]|!(O[b+16>>3]>=O[i+16>>3])|(!(O[b+24>>3]>=O[i+24>>3])|!(O[b+32>>3]<=O[i+32>>3])))break c;if(!(O[b+40>>3]<=O[i+40>>3]))break c;_X(a,b,i);break b}d=d+1|0;if((f|0)!=(d|0))continue;break}}d:{e:{f:switch(J[c>>2]){case 0:g:{if(J[c+8>>2]-1>>>0>=2){if((f|0)>0)break g;Ym(e,0,b);break b}if((f|0)<=0){Ym(e,0,b);break b}h=O[b+32>>3];g=J[e>>2];d=0;while(1){a=J[g+(d<<2)>>2];if(h>(O[a+16>>3]+O[a+32>>3])*.5)break d;d=d+1|0;if((f|0)!=(d|0))continue;break}break e}h=O[b+16>>3];g=J[e>>2];d= -0;while(1){a=J[g+(d<<2)>>2];if(h<(O[a+16>>3]+O[a+32>>3])*.5)break d;d=d+1|0;if((f|0)!=(d|0))continue;break}break e;case 1:break f;default:break a}h:{if(J[c+8>>2]<=1){if((f|0)>0)break h;Ym(e,0,b);break b}if((f|0)<=0){Ym(e,0,b);break b}h=O[b+40>>3];g=J[e>>2];d=0;while(1){a=J[g+(d<<2)>>2];if(h>(O[a+24>>3]+O[a+40>>3])*.5)break d;d=d+1|0;if((f|0)!=(d|0))continue;break}break e}h=O[b+24>>3];g=J[e>>2];d=0;while(1){a=J[g+(d<<2)>>2];if(h<(O[a+24>>3]+O[a+40>>3])*.5)break d;d=d+1|0;if((f|0)!=(d|0))continue;break}}d= -f}Ym(e,d,b)}J[c+4>>2]=0}}function xea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+584>>2];if(d){e=J[d+52>>2];if(!e)break a;b:{c:{d:{e:{f:{g:{h:{i:switch(b-292|0){default:j:switch(b-34908|0){case 3:break e;case 2:break f;case 1:break g;case 0:break h;default:break j}k:switch(b-65536|0){case 0:J[d+4>>2]=J[c>>2];return 1;case 4:break k;default:break d}J[d+76>>2]=J[c>>2];return 1;case 0:if(L[a+88>>1]!=3)break b;J[d+28>>2]=J[c>>2];break b;case 1:if(L[a+88>>1]!=4)break b;J[d+28>>2]=J[c>>2];break b;case 35:I[d+ -16>>1]=J[c>>2];break b;case 36:break i;case 34:break c;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:break d}J[d+20>>2]=J[c>>2];break b}J[d+32>>2]=J[c>>2];break b}nv(d+36|0,J[c>>2]);break b}J[d+40>>2]=J[c>>2];break b}nv(d+44|0,J[c>>2]);break b}return gc[e|0](a,b,c)|0}J[d+24>>2]=J[c>>2]}b=Lf(a,b);if(!b)return 0; -b=L[b+12>>1];c=(b>>>3&8188)+a|0;J[c+40>>2]=J[c+40>>2]|1<>2]=J[a+12>>2]|8;return 1}fa(79439,70523,1164,95706);B()}fa(79652,70523,1165,95706);B()}function J5(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=bc-16|0;bc=i;J[i+12>>2]=0;a:{if(!a){d=33;break a}d=6;if(!b|!c)break a;d=0;if((b|0)==(c|0))break a;e=J[c+8>>2];g=e>>31|1;f=J[b+8>>2];h=f>>31|1;if(!J[b+12>>2]){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]= -a;if((g|0)==(h|0))break a;J[c+8>>2]=0-J[c+8>>2];break a}d=f>>31;f=(d^f)-d|0;d=P(f,J[b>>2]);j=J[a>>2];a=J[c+12>>2];b:{c:{if(a){k=e>>31;e=P(J[c>>2],(e^k)-k|0);if((e|0)==(d|0))break b;a=M5(j,e,d,a,i+12|0);break c}a=WL(j,d,i+12|0)}J[c+12>>2]=a}d:{if(J[i+12>>2])break d;e=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=e;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;e=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=e;J[c+12>>2]=a;if((g|0)==(h|0)){tc(a,J[b+12>>2],d);break d}c=J[c>>2];if(!c)break d;g=0;e=0-f|0;a=P(f,c-1| -0)+a|0;b=J[b+12>>2];h=c&3;e:{if(!h){d=c;break e}d=c;while(1){d=d-1|0;a=tc(a,b,f)+e|0;b=b+f|0;g=g+1|0;if((h|0)!=(g|0))continue;break}}if(c>>>0<4)break d;while(1){g=b+f|0;h=g+f|0;c=h+f|0;a=tc(tc(tc(tc(a,b,f)+e|0,g,f)+e|0,h,f)+e|0,c,f)+e|0;b=c+f|0;d=d-4|0;if(d)continue;break}}d=J[i+12>>2]}bc=i+16|0;return d}function om(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;f=bc-16|0;bc=f;i=J[a+100>>2];J[f+12>>2]=0;m=L[a+340>>1];a:{if(!m)break a;g=-1;h=-1;k=-1;l=-1;j=J[a+356>> -2];e=j;while(1){b:{if(!L[e+8>>1]|L[e+6>>1]!=(b|0))break b;c:switch(L[e>>1]){case 0:case 2:g=d;break b;case 1:if(!L[e+4>>1]){k=d;break b}l=L[e+2>>1]?l:d;break b;case 3:break c;default:break b}n=L[e+4>>1]&1023;if((h|0)!=-1&(n|0)!=9)break b;o=L[e+2>>1];if(o>>>0>10|!(1<=0){if((d|0)>=0){b=1711;if(!p)break f}e=0;d=P(h,20)+j|0;g=L[d+2>>1];if(g>>>0>10)break a;b=1712;if(1<=0)break f;e=0;b=1712;d=g;if((d|0)<0)break a}if(!j)break d;d=P(d,20)+j|0}g:{if(J[d+16>>2])break g;g=J[a+368>>2];e=0;a=Sc(i,1,0,L[d+8>>1],0,f+12|0);J[d+16>>2]=a;h:{if(J[f+12>>2])break h;h=nd(g,J[d+12>>2]);J[f+12>>2]=h;a=J[d+16>>2];if(h)break h;a=mg(g,a,L[d+8>>1]);J[f+12>>2]=a;if(!a)break g;a=J[d+16>>2]}if(a)gc[J[i+8>>2]](i,a);I[d+8>>1]=0;J[d+16>>2]=0;break a}e=gc[b|0](d,i)|0;break a}e=0}J[c>>2]=e;bc=f+16|0;return J[f+12>>2]}function Mba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+584>> -2];a:{b:switch(b-512|0){case 2:J[d+200>>2]=J[c>>2];break a;case 18:H[d+207|0]=1;e=J[c>>2];H[d+208|0]=e;c=J[c+4>>2];H[d+209|0]=c;I[a+206>>1]=c&255;I[a+204>>1]=e&255;break a;case 7:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Nc(J[a+628>>2],97028,88391,0);return 0}H[d+211|0]=e;c=J[c+4>>2];J[d+216>>2]=J[c>>2];if((e|0)==1)break a;J[d+220>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+224>>2]=J[c+8>>2];break a;case 8:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Nc(J[a+628>>2],97028,88471,0);return 0}H[d+212|0]=e;c=J[c+4>>2];J[d+ -228>>2]=J[c>>2];if((e|0)==1)break a;J[d+232>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+236>>2]=J[c+8>>2];break a;case 9:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Nc(J[a+628>>2],97028,88586,0);return 0}H[d+213|0]=e;c=J[c+4>>2];J[d+240>>2]=J[c>>2];if((e|0)==1)break a;J[d+244>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+248>>2]=J[c+8>>2];break a;case 0:H[d+204|0]=J[c>>2];break a;case 3:I[d+300>>1]=J[c>>2];break a;default:return gc[J[d+164>>2]](a,b,c)|0;case 1:break b}J[d+196>>2]=J[c>>2]}c=L[Lf(a,b)+12>>1];b=(L[Lf(a, -b)+12>>1]>>>3&8188)+a|0;J[b+40>>2]=J[b+40>>2]|1<>2]=J[a+12>>2]|8;return 1}function Mza(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=bc-48|0;bc=e;f=Hs(180);J[695492]=0;h=$(4995,f|0)|0;g=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{if((g|0)!=1){J[a>>2]=0;md(a,h);J[695492]=0;aa(4993,h+44|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;f=0;J[695492]=0;b=$(5082,e+12|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break f;g=J[c>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;f=J[695492];J[695492]= -0;if((f|0)==1)break e;f=J[c>>2]}J[695492]=0;J[e+8>>2]=f;ia(4997,h|0,b|0,e+8|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;a=J[e+8>>2];J[e+8>>2]=0;h:{if(!a)break h;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break h;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[b+24>>2]=2381060;J[b>>2]=2381028;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2381060;a=J[b+20>>2];if(a){c=J[a+ -4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}sc(b+8|0);bc=e+48|0;return}a=Z()|0;Tl(f);ba(a|0);B()}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break c}c=Z()|0;vc(e+8|0)}ud(b)}vc(a);ba(c|0);B()}ea(0)|0;yc();B()}function XZ(a,b,c){var d=0,e=0,f=0,g=0;e=bc-48|0;bc=e;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;a:{if(J[b>>2]==7){b:{if(J[Bc(J[b+8>>2],808621,e+32|0,0)>>2]==3){d=rc(12);J[695492]=0;c=aa(3187,d|0,J[e+40>>2])|0;f=J[695492];J[695492]=0;if((f|0)!=1)break b;break a}d=e+32|0;uc(d);if(J[Bc(J[b+ -8>>2],808997,d,0)>>2]==3){d=rc(12);J[695492]=0;c=aa(3187,d|0,J[e+40>>2])|0;f=J[695492];J[695492]=0;if((f|0)!=1)break b;break a}if(!(!c|J[c>>2]!=3)){d=rc(12);c=J[c+8>>2];J[695492]=0;c=aa(3187,d|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break b;break a}d=rc(8);J[695492]=0;f=aa(3182,d|0,809321)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;d=rc(12);J[695492]=0;c=aa(3187,d|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;qc(Rc(f))}uc(e+32|0);c:{if(J[Bc(J[b+8>>2],826536,e+16|0,0)>>2]==7){if(J[Ce(J[e+ -24>>2],808997,e)>>2]==9){b=J[a+152>>2];if(!b){d=rc(16);J[695492]=0;b=$(3185,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[a+152>>2]=b}d=rc(24);J[d>>2]=c;J[d+8>>2]=13;J[695492]=0;aa(3282,e|0,d+8|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){id(b,d);uc(e);break c}break a}qc(dd(c));uc(e);break c}qc(dd(c))}uc(e+16|0)}bc=e+48|0;return}a=Z()|0;qc(d);ba(a|0);B()}function T5(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;a:{if(!a)break a;b=L[a+2>>1];c=b<<16>>16;if((c|0)<=0)break a; -h=2;if((c|0)==1)break a;j=J[a+4>>2];k=j+(b<<3)|0;b=j+8|0;d=J[j>>2];e=d;f=j;g=J[f+4>>2];c=g;while(1){i=J[f+12>>2];c=(c|0)<(i|0)?i:c;g=(g|0)>(i|0)?i:g;f=J[f+8>>2];e=(f|0)>(e|0)?f:e;d=(f|0)<(d|0)?f:d;f=b;b=b+8|0;if(k>>>0>b>>>0)continue;break}if((d|0)==(e|0)|(c|0)==(g|0)|((c|0)>16777216|(e|0)>16777216))break a;if((d|0)<-16777216|(g|0)<-16777216)break a;m=I[a>>1];if((m|0)>0){f=0;b=e>>31;e=(b^e)-b|0;b=d>>31;b=17-S(e|(b^d)-b)|0;h=(b|0)>0?b:0;b=17-S(c-g|0)|0;i=(b|0)>0?b:0;p=J[a+12>>2];b=0;k=0;while(1){e= -I[(k<<1)+p>>1];b:{if((e|0)<(b|0))break b;a=(e<<3)+j|0;c=J[a>>2]>>h;a=J[a+4>>2]>>i;c:{if(!((e-b|0)+1&1)){g=a;a=b;break c}d=c;c=(b<<3)+j|0;g=J[c+4>>2]>>i;c=J[c>>2]>>h;f=P(g-a|0,d+c|0)+f|0;a=b+1|0}if((b|0)==(e|0))break b;while(1){n=a+1|0;d=(n<<3)+j|0;b=J[d+4>>2]>>i;l=(a<<3)+j|0;o=J[l+4>>2]>>i;d=J[d>>2]>>h;l=J[l>>2]>>h;f=P(b-o|0,d+l|0)+(P(c+l|0,o-g|0)+f|0)|0;a=a+2|0;c=d;g=b;if((e|0)!=(n|0))continue;break}}b=e+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}h=1;if((f|0)>0)break a;h=0;if(f)break a}h=2}return h} -function raa(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;a:{d=J[J[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a;g=a-d|0;if((d|0)<5){a=d<<2;while(1){b:switch(d|0){default:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 3:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 2:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 1:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;break;case 0:break b}g=g-d|0;if((g|0)>0)continue;break}break a}a=d-4|0;h=d&3;i=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c; -case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}e=0;c=a;if(h)while(1){f=(d<<2)+b|0;J[f>>2]=J[f>>2]+J[b>>2];c=c-1|0;b=b+4|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(!i)break g;while(1){e=d<<2;f=e+b|0;J[f>>2]=J[f>>2]+J[b>>2];f=e+(b+4|0)|0;J[f>>2]=J[f>>2]+J[b+4>>2];f=e+(b+8|0)|0;J[f>>2]=J[f>>2]+J[b+8>>2];e=e+(b+12|0)|0;J[e>>2]=J[e>>2]+J[b+12>>2];b=b+16|0;e=(c|0)>4;c=c-4|0;if(e)continue;break}}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>> -2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}g=g-d|0;if((g|0)>0)continue;break}}}function Tpa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-16|0;bc=e;J[a+8>>2]=1;J[a+4>>2]=0;J[a>>2]=2424684;a:{b:{c:{d:{e:{f:{d=J[b>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break f;f=J[b>>2]}J[a+16>>2]=0;J[a+12>>2]=f;b=J[682146];J[a+24>>2]=0;J[a+28>>2]=0;J[a+20>>2]=b;J[695492]=0;ia(5533,e+4|0,0,0,c|0);b=J[695492];J[695492]= -0;c=a+16|0;if((b|0)==1)break e;b=J[e+4>>2];g:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,e+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break g;b=Z()|0;break c}J[e+12>>2]=0}J[695492]=0;aa(4993,c|0,e+12|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break h;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}ea(0)|0;yc();B()}b=Z()|0;vc(e+12|0);break c}b=J[a+16>> -2];J[a+20>>2]=J[(b?b+12|0:2728584)>>2];sc(e+4|0);b=J[a+12>>2];d=J[J[b>>2]+16>>2];J[695492]=0;b=$(d|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;J[a+32>>2]=b;bc=e+16|0;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break b}sc(e+4|0)}sc(c);vc(a+12|0)}ed(a);ba(b|0);B()}function QSa(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;j=J[a+372>>2];c=J[a+420>>2];d=J[a+24>>2];J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2];if(!(J[c+36>>2]|!J[a+236>>2]))YA(c,J[c+40>>2]);a:{e=J[a+316>>2];if(J[c+108>> -2]|(e|0)<=0)break a;while(1){if(!g){f=J[c+16>>2];g=J[c+12>>2]|(I[J[(i<<2)+b>>2]>>1]>>>j&1)<<23-f;d=f+1|0;if((f|0)>=7){while(1){e=J[c+112>>2];J[c+112>>2]=e+1;H[e|0]=g>>>16;e=J[c+116>>2]-1|0;J[c+116>>2]=e;if(!e){f=J[c+120>>2];e=J[f+24>>2];if(!(gc[J[e+12>>2]](f)|0)){f=J[c+120>>2];h=J[f>>2];J[h+20>>2]=25;gc[J[h>>2]](f)}J[c+112>>2]=J[e>>2];J[c+116>>2]=J[e+4>>2]}e=d;b:{if((g&16711680)!=16711680)break b;d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=0;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(d)break b;f=J[c+120>>2];d=J[f+ -24>>2];if(!(gc[J[d+12>>2]](f)|0)){f=J[c+120>>2];h=J[f>>2];J[h+20>>2]=25;gc[J[h>>2]](f)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=e-8|0;g=g<<8;if((e|0)>15)continue;break}e=J[a+316>>2]}J[c+16>>2]=d;J[c+12>>2]=g}i=i+1|0;if((i|0)>=(e|0))break a;g=J[c+108>>2];continue}}b=J[a+24>>2];J[b>>2]=J[c+112>>2];J[b+4>>2]=J[c+116>>2];a=J[a+236>>2];if(a){b=J[c+36>>2];if(b)a=b;else J[c+40>>2]=J[c+40>>2]+1&7;J[c+36>>2]=a-1}return 1}function mG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-32|0;bc=d;J[a>>2]=0;J[a+4>>2]= -J[682146];J[695492]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2414676;la(5463,d+12|0,d+16|0,b|0,0,((c|0)<0?-1:c)|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){J[d+16>>2]=2414580;b=J[d+28>>2];if(b){H[b|0]=0;qc(J[d+28>>2])}J[d+28>>2]=0;c=d+16|0;ed(c);b=J[d+12>>2];d:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;break c}J[d+16>>2]=0}J[695492]=0;aa(4993,a|0,d+16|0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){b=J[d+16>>2];J[d+16>> -2]=0;if(!b)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}c=Z()|0;vc(d+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[d+12>>2];J[d+12>>2]=0;f:{if(!b)break f;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=d+32|0;return a|0}c=Z()|0;bh(d+16| -0);break b}vc(d+12|0)}sc(a);ba(c|0);B()}ea(0)|0;yc();B()}function _f(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+28>>2];a:{if(J[a>>2]){c=b;b=J[a+32>>2];if((c|0)>=(b|0)){b=b<<1;J[a+32>>2]=b;i=a,j=Nd(J[a+24>>2],b,4),J[i+24>>2]=j}b=rc(24);g=O[a+16>>3];f=O[a+8>>3];J[b+16>>2]=16;J[695492]=0;c=aa(3376,16,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b>>2]=c;c=J[b+16>>2];J[695492]=0;c=aa(3376,c|0,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b+4>>2]=c;c=J[b+16>>2];J[695492]=0;c=aa(3376,c| -0,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b+12>>2]=1;J[b+8>>2]=c;O[J[b>>2]>>3]=f;O[J[b+4>>2]>>3]=g;J[c>>2]=0;J[b+20>>2]=0;c=J[a+28>>2];J[J[a+24>>2]+(c<<2)>>2]=b;J[a>>2]=0;b=c+1|0;J[a+28>>2]=b}a=J[(J[a+24>>2]+(b<<2)|0)-4>>2];b=J[a+4>>2];c=J[a>>2];g=O[c>>3];d=J[a+12>>2];e=d-1<<3;b:{c:{if(g!=O[e+c>>3]){f=O[b>>3];break c}f=O[b>>3];if(f==O[b+e>>3])break b}e=J[a+16>>2];d:{if((e|0)>(d|0)){e=J[a+8>>2];break d}b=e<<1;J[a+16>>2]=b;i=a,j=Nd(c,b,8),J[i>>2]=j;i=a,j=Nd(J[a+4>>2],J[a+16>>2],8),J[i+4>> -2]=j;e=Nd(J[a+8>>2],J[a+16>>2],4);J[a+8>>2]=e;b=J[a+4>>2];c=J[a>>2];d=J[a+12>>2]}h=c;c=d<<3;O[h+c>>3]=g;O[b+c>>3]=f;J[(d<<2)+e>>2]=0;J[a+12>>2]=J[a+12>>2]+1}J[a+20>>2]=1;return}a=Z()|0;qc(b);ba(a|0);B()}function kaa(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;a:{e=J[J[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0))break a;h=a-e|0;c=((h<<1)+b|0)-2|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 3:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 2:b= -a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 1:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;break;case 0:break b}h=h-e|0;if((h|0)>0)continue;break}break a}a=e-4|0;i=e&3;j=e-5>>>0>2;g=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}d=0;b=a;if(i)while(1){f=c+g|0;I[f>>1]=L[f>>1]-L[c>>1];b=b-1|0;c=c-2|0;d=d+1|0;if((i|0)!=(d|0))continue;break}if(!j)break g;while(1){d=c+g|0;I[d>>1]=L[d>>1]-L[c>>1];d=c-2|0;f=d+g|0;I[f>>1]=L[f>> -1]-L[d>>1];d=c-4|0;f=d+g|0;I[f>>1]=L[f>>1]-L[d>>1];d=c-6|0;f=d+g|0;I[f>>1]=L[f>>1]-L[d>>1];c=c-8|0;d=(b|0)>4;b=b-4|0;if(d)continue;break}}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}h=h-e|0;if((h|0)>0)continue;break}}}function RZ(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;k=bc-32|0;bc=k;f=b&-256;m=c&-256;a:{if(f>>>0>m>>>0)break a;n=e-b|0;o=c&255;p=b&255;l=d-1| -0;if(!l)while(1){e=b>>>0>f>>>0?p:0;g=(f|255)>>>0<=c>>>0?255:o;if(e>>>0<=g>>>0){l=J[a+16>>2];h=f+n|0;while(1){i=l+(e<<3)|0;b:{if(J[i>>2]){J[k+4>>2]=d;J[k>>2]=f;xc(1,-1,792203,k);break b}J[i+4>>2]=e+h}i=(e|0)!=(g|0);e=e+1|0;if(i)continue;break}}f=f+256|0;if(m>>>0>=f>>>0)continue;break a}while(1){e=J[a+16>>2];g=l;while(1){e=((f>>>(g<<3)&255)<<3)+e|0;if(!J[e>>2]){J[e>>2]=1;q=e,r=vd(256,8),J[q+4>>2]=r;i=0;while(1){h=i<<3;J[h+J[e+4>>2]>>2]=0;J[(h+J[e+4>>2]|0)+4>>2]=0;j=h|8;J[j+J[e+4>>2]>>2]=0;J[(j+J[e+ -4>>2]|0)+4>>2]=0;j=h|16;J[j+J[e+4>>2]>>2]=0;J[(j+J[e+4>>2]|0)+4>>2]=0;h=h|24;J[h+J[e+4>>2]>>2]=0;J[(h+J[e+4>>2]|0)+4>>2]=0;i=i+4|0;if((i|0)!=256)continue;break}}e=J[e+4>>2];g=g-1|0;if(g)continue;break}g=b>>>0>f>>>0?p:0;h=(f|255)>>>0<=c>>>0?255:o;if(g>>>0<=h>>>0){i=f+n|0;while(1){j=(g<<3)+e|0;c:{if(J[j>>2]){J[k+20>>2]=d;J[k+16>>2]=f;xc(1,-1,792203,k+16|0);break c}J[j+4>>2]=g+i}j=(g|0)!=(h|0);g=g+1|0;if(j)continue;break}}f=f+256|0;if(m>>>0>=f>>>0)continue;break}}bc=k+32|0}function Kd(a,b){var c=0,d= -0,e=0,f=0,g=0,h=0,i=0;e=J[a+464>>2];c=J[e+12>>2];a:{if((c|0)>=32768){d=J[e+16>>2];break a}d=J[e+16>>2];while(1){c=d-1|0;J[e+16>>2]=c;b:{if((d|0)>0){d=c;break b}f=0;if(!J[a+436>>2]){c=J[a+24>>2];c:{if(J[c+4>>2])break c;if(gc[J[c+12>>2]](a)|0)break c;d=J[a>>2];J[d+20>>2]=25;gc[J[d>>2]](a)}J[c+4>>2]=J[c+4>>2]-1;d=c;c=J[c>>2];J[d>>2]=c+1;f=K[c|0];d:{if((f|0)!=255)break d;while(1){c=J[a+24>>2];e:{if(J[c+4>>2])break e;if(gc[J[c+12>>2]](a)|0)break e;d=J[a>>2];J[d+20>>2]=25;gc[J[d>>2]](a)}J[c+4>>2]=J[c+4>> -2]-1;d=c;c=J[c>>2];J[d>>2]=c+1;f=255;c=K[c|0];if((c|0)==255)continue;break}if(!c)break d;J[a+436>>2]=c;f=0}c=J[e+16>>2]}d=c+8|0;J[e+16>>2]=d;J[e+8>>2]=J[e+8>>2]<<8|f;if((c|0)>-9)break b;d=c+9|0;J[e+16>>2]=d;if(d)break b;J[e+12>>2]=32768;d=0}c=J[e+12>>2]<<1;J[e+12>>2]=c;if((c|0)<32768)continue;break}}a=K[b|0];f=J[((a&127)<<2)+55968>>2];g=f>>16;c=c-g|0;J[e+12>>2]=c;h=f>>>8|0;i=J[e+8>>2];d=c<=(d|0)){J[e+12>>2]=g;J[e+8>>2]=i-d;d=a&128;if((c|0)<(g|0)){H[b|0]=d^h;break f}H[b|0]=d^f;a=a^128; -break f}if(c>>>0>32767)break f;d=a&128;if((c|0)<(g|0)){H[b|0]=d^f;a=a^128;break f}H[b|0]=d^h}return a>>>7|0}function Wfa(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,m=0;k=bc-16|0;bc=k;a:{if(a){a=VP(c);b:{if(b){b=k+4|0;gc[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;gc[J[J[a>>2]+32>>2]](b,a);break b}b=k+4|0;gc[J[J[a>>2]+40>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;gc[J[J[a>> -2]+28>>2]](b,a)}Em(i,b);Ze(b);l=e,m=gc[J[J[a>>2]+12>>2]](a)|0,J[l>>2]=m;l=f,m=gc[J[J[a>>2]+16>>2]](a)|0,J[l>>2]=m;b=k+4|0;gc[J[J[a>>2]+20>>2]](b,a);pi(g,b);ad(b);gc[J[J[a>>2]+24>>2]](b,a);Em(h,b);Ze(b);a=gc[J[J[a>>2]+36>>2]](a)|0;break a}a=UP(c);c:{if(b){b=k+4|0;gc[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;gc[J[J[a>>2]+32>>2]](b,a);break c}b=k+4|0;gc[J[J[a>>2]+40>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;gc[J[J[a>> -2]+28>>2]](b,a)}Em(i,b);Ze(b);l=e,m=gc[J[J[a>>2]+12>>2]](a)|0,J[l>>2]=m;l=f,m=gc[J[J[a>>2]+16>>2]](a)|0,J[l>>2]=m;b=k+4|0;gc[J[J[a>>2]+20>>2]](b,a);pi(g,b);ad(b);gc[J[J[a>>2]+24>>2]](b,a);Em(h,b);Ze(b);a=gc[J[J[a>>2]+36>>2]](a)|0}J[j>>2]=a;bc=k+16|0}function _Xa(a){a=a|0;var b=0;J[a+168>>2]=-780903145;J[a+172>>2]=1071454021;J[a>>2]=1;J[a+4>>2]=23;J[a+176>>2]=0;J[a+112>>2]=0;J[a+116>>2]=8;J[a+104>>2]=0;J[a+108>>2]=0;J[a+8>>2]=1202590843;J[a+12>>2]=1071938273;J[a+96>>2]=529139971;J[a+100>>2]=1071050339; -J[a+88>>2]=68719477;J[a+92>>2]=1070927446;J[a+80>>2]=-597859448;J[a+84>>2]=1070859078;J[a+72>>2]=343597384;J[a+76>>2]=1072252846;b=a- -64|0;J[b>>2]=-343597384;J[b+4>>2]=1068415057;J[a+56>>2]=858993459;J[a+60>>2]=1069757235;J[a+48>>2]=-1717986918;J[a+52>>2]=1069128089;J[a+40>>2]=858993459;J[a+44>>2]=1071854387;J[a+32>>2]=858993459;J[a+36>>2]=1070805811;J[a+24>>2]=-343597384;J[a+28>>2]=1067366481;J[a+16>>2]=1374389535;J[a+20>>2]=1070931640;wc(a+192|0,0,72);J[a+140>>2]=0;J[a+144>>2]=0;J[a+132>>2]=0; -J[a+136>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+248>>2]=0;J[a+252>>2]=1081073664;J[a+232>>2]=0;J[a+236>>2]=1081073664;J[a+224>>2]=0;J[a+228>>2]=1081073664;J[a+216>>2]=0;J[a+220>>2]=1081073664;J[a+208>>2]=8;J[a+184>>2]=1;J[a+188>>2]=23;J[a+264>>2]=0;J[a+268>>2]=0;J[a+120>>2]=0;b=v0();J[a+288>>2]=4;J[a+276>>2]=0;J[a+280>>2]=0;J[a+272>>2]=b}function Z$(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(!c)break a;b:{if(b){if(J[b+4>>2]!=1)break a;e=ww(J[b+32>>2], -J[c+8>>2]);break b}if(a){e=ww(a,J[c+8>>2]);break b}a=J[c+20>>2];if(a){e=ww(J[a+32>>2],J[c+8>>2]);break b}a=J[c+12>>2];if(a){e=ww(J[a+32>>2],J[c+8>>2]);break b}e=ww(0,J[c+8>>2])}if(!e)break a;J[e+20>>2]=b;c:{d:{if(!b)break d;a=J[c+36>>2];if(!a)break d;f=jl(J[b+32>>2],b,J[a+12>>2]);if(!f){g=jl(J[c+32>>2],J[c+20>>2],J[J[c+36>>2]+12>>2]);if(!g)break c;a=b;while(1){f=d;d=a;a=J[a+20>>2];if(a)continue;break}f=hl(J[b+32>>2]==(d|0)?f:d,J[g+8>>2],J[g+12>>2]);break d}g=J[c+36>>2];a=J[g+8>>2];d=J[f+8>>2];if((a| -0)==(d|0))break d;e:{if(!d|!a)break e;while(1){h=K[d|0];if((h|0)!=K[a|0])break e;a=a+1|0;d=d+1|0;if(h)continue;break}break d}f=Y$(J[b+32>>2],b,g)}J[e+36>>2]=f}a=J[c+12>>2];f:{if(!a)break f;d=W$(a,J[e+32>>2],e);J[e+16>>2]=0;J[e+12>>2]=d;if(!d)break f;while(1){a=d;d=J[a+24>>2];if(d)continue;break}J[e+16>>2]=a}g:{if(!b|!J[b+32>>2])break g;a=J[c+32>>2];if(!a|!J[a+64>>2])break g;d=J[c+20>>2];if(!d)break g;if(!qB(a,d,c))break g;a=xw(J[c+32>>2],J[c+12>>2]);if(!a)break g;pw(0,J[b+32>>2],a,e);gc[J[659451]](a)}d= -e}return d}function $ca(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;e=bc-16|0;bc=e;J[e+12>>2]=b;if(b>>>0<=1073741807){a:{if((K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1)>>>0>=b>>>0)break a;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;J[e+8>>2]=b;b=bc-16|0;bc=b;g=e+12|0;d=e+8|0;c=M[g>>2]>2];bc=b+16|0;c=J[(c?d:g)>>2];if(c>>>0>=2){c=c+4&-4;d=c-1|0;c=(d|0)==2?c:d}else c=1;if((c|0)==((K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1)|0))break a;f=bc-16|0;bc=f;g=K[a+11|0]>>>7|0?(J[a+ -8>>2]&2147483647)-1|0:1;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;b:{c:{h=c>>>0<2;d:{if(h){i=1;j=c+1|0;b=a;c=J[a>>2];break d}b=c+1|0;e:{if(c>>>0>g>>>0){Cn(f+8|0,a,b);break e}J[695492]=0;ca(7035,f+8|0,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break c}b=J[f+8>>2];j=J[f+12>>2];c=K[a+11|0]>>>7|0;i=c;if(c)c=J[a>>2];else c=a}if(K[a+11|0]>>>7|0)k=J[a+4>>2];else k=K[a+11|0]&127;kk(b,c,k+1|0);if(i)Fu(c,g+1|0);f:{if(!h){J[a+8>>2]=J[a+8>>2]&-2147483648|j&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648; -J[a+4>>2]=d;J[a>>2]=b;break f}H[a+11|0]=K[a+11|0]&128|d;H[a+11|0]=K[a+11|0]&127}break b}na(ea(0)|0)|0;ta()}bc=f+16|0}bc=e+16|0;return}Id(a);B()}function zsa(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;f=bc-16|0;bc=f;d=J[a+8>>2];c=(c|0)<0?d:b+c|0;g=(c|0)>(d|0)?d:c;a:{if((g|0)<=(b|0)){i=g;break a}i=g;while(1){d=J[a+8>>2];b:{if((d|0)<=(b|0)){b=d;break b}c=J[a+12>>2]+b|0;d=d-b|0;b=g-b|0;b=(b|0)<0?d:b;c:{if((b|0)<=0)break c;e=b+c|0;while(1){d:{b=c;if(!K[c|0])break d;J[f+8>>2]=c;h=gc[J[J[a>> -2]+60>>2]](a,f+8|0)|0;c=J[f+8>>2];if((b|0)==(c|0))break d;e:{if(h>>>0>255)break e;d=h<<24>>24;d=(d|0)<-1?h:d;if((d|0)==32|d-9>>>0<5)break e;switch(h-10|0){case 0:case 3:break e;default:break d}}if(c>>>0>>0)continue;break c}break}c=b}b=c;c=J[a+12>>2];b=b-c|0;d=J[a+8>>2];if((b|0)>=(d|0))break b;c=b+c|0;e=d-b|0;d=g-b|0;d=(d|0)<0?e:d;f:{if((d|0)<=0){d=c;break f}h=c+d|0;while(1){if(!K[c|0]){d=c;break f}J[f+12>>2]=c;g:{h:{j=gc[J[J[a>>2]+60>>2]](a,f+12|0)|0;if(j>>>0>255)break h;d=J[f+12>>2];if((d|0)== -(c|0))break h;e=j<<24>>24;e=(e|0)<-1?j:e;if((e|0)==32|e-9>>>0<5)break h;switch(j-10|0){case 0:case 3:break h;default:break g}}d=c;break f}c=d;if(h>>>0>c>>>0)continue;break}}d=d-J[a+12>>2]|0;c=(d|0)==(b|0);b=c?b+1|0:d;i=c?i:d}if((b|0)<(g|0))continue;break}}bc=f+16|0;return i|0}function tfb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a=bc-32|0;bc=a;e=a+16|0;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=413844;J[695492]=0;d=ga(3,e|0,b|0,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)a:{b:{if(!d)break b; -J[695492]=0;f=J[e+12>>2];b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;c=f>>>0>=1E3?1E3:f;g=$(27,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;J[a+12>>2]=0;d=ha(28,e|0,g|0,c|0,a+12|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(!d){qc(g);c=0;break b}J[695492]=0;_(21,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;c:{if(f>>>0<=10){H[a+11|0]=c;b=a;break c}J[695492]=0;f=(c|15)+1|0;b=$(4,f|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]= -f|-2147483648}h=tc(b,g,c)+c|0,i=0,H[h|0]=i;d=K[a+11|0];b=d<<24>>24<0;f=b?J[a>>2]:a;c=b?J[a+4>>2]:d;d=f+c|0;d:{e:{if((c|0)<4)break e;b=f;while(1){c=pg(b,60,c-3|0);if(!c)break e;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==1735815996)break d;b=c+1|0;c=d-b|0;if((c|0)>3)continue;break}}c=d}qc(g);if(H[a+11|0]<0)qc(J[a>>2]);c=(c|0)!=(d|0)&(c-f|0)!=-1}ve(e);bc=a+32|0;return c|0}a=Z()|0;ve(e);ba(a|0);B()}function M9(a,b,c){var d=0,e=0,f=0;e=bc-272|0;bc=e;if(c)while(1){J[e+256>>2]=f;cd(a,198030,e+ -256|0);J[e+240>>2]=K[b+f|0];cd(a,198543,e+240|0);d=f|1;if(d>>>0>>0){J[e+224>>2]=K[b+d|0];cd(a,198543,e+224|0)}d=f|2;if(d>>>0>>0){J[e+208>>2]=K[b+d|0];cd(a,198543,e+208|0)}d=f|3;if(d>>>0>>0){J[e+192>>2]=K[b+d|0];cd(a,198543,e+192|0)}d=f|4;if(d>>>0>>0){J[e+176>>2]=K[b+d|0];cd(a,198543,e+176|0)}d=f|5;if(d>>>0>>0){J[e+160>>2]=K[b+d|0];cd(a,198543,e+160|0)}d=f|6;if(d>>>0>>0){J[e+144>>2]=K[b+d|0];cd(a,198543,e+144|0)}d=f|7;if(d>>>0>>0){J[e+128>>2]=K[b+d|0];cd(a,198543,e+128|0)}d=f| -8;if(d>>>0>>0){J[e+112>>2]=K[b+d|0];cd(a,198543,e+112|0)}d=f|9;if(d>>>0>>0){J[e+96>>2]=K[b+d|0];cd(a,198543,e+96|0)}d=f|10;if(d>>>0>>0){J[e+80>>2]=K[b+d|0];cd(a,198543,e+80|0)}d=f|11;if(d>>>0>>0){J[e+64>>2]=K[b+d|0];cd(a,198543,e- -64|0)}d=f|12;if(d>>>0>>0){J[e+48>>2]=K[b+d|0];cd(a,198543,e+48|0)}d=f|13;if(d>>>0>>0){J[e+32>>2]=K[b+d|0];cd(a,198543,e+32|0)}d=f|14;if(d>>>0>>0){J[e+16>>2]=K[b+d|0];cd(a,198543,e+16|0)}d=f|15;if(d>>>0>>0){J[e>>2]=K[b+d|0];cd(a,198543,e)}Ph(10,a); -f=f+16|0;if(f>>>0>>0)continue;break}bc=e+272|0}function IA(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-48|0;bc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;a:{if((c|0)>=51){e=1;xc(1,-1,790633,0);break a}b:{c:{if(J[b>>2]!=9)break c;e=J[a+4>>2];h=J[e+8>>2];if((h|0)<=0)break c;f=J[b+8>>2];i=J[b+12>>2];j=J[e>>2];e=0;while(1){g=J[(e<<2)+j>>2];if(J[g>>2]==(f|0)&J[g+4>>2]==(i|0))break b;e=e+1|0;if((h|0)!=(e|0))continue;break}}hf(b,J[a>>2],d+32|0,0);d:{if(J[d+32>>2]==6){b=J[d+40>>2];if(J[b+12>>2]>0)break d}e= -1;xc(1,-1,791409,0);uc(d+32|0);break a}Mc(b,0,d+16|0,0);e:{f:{if(J[d+16>>2]!=4)break f;b=J[d+24>>2];if(!Ec(b,792075)){b=J[d+40>>2];if(J[b+12>>2]==2){jg(b,1,d);e=!IA(a,d,c+1|0);uc(d);break e}e=1;xc(1,-1,791409,0);break e}if(!Ec(b,792977)){e=1;f=J[d+40>>2];if(J[f+12>>2]<2)break e;c=c+1|0;b=1;while(1){jg(f,b,d);e=IA(a,d,c);uc(d);if(!e)break e;b=b+1|0;f=J[d+40>>2];if((b|0)>2])continue;break}break e}if(Ec(b,793518))break f;e=0;f=J[d+40>>2];if(J[f+12>>2]<2)break e;c=c+1|0;b=1;while(1){jg(f,b,d); -e=IA(a,d,c);uc(d);if(e)break e;b=b+1|0;f=J[d+40>>2];if((b|0)>2])continue;break}break e}e=1;xc(1,-1,791409,0)}uc(d+16|0);uc(d+32|0);break a}e=J[g+20>>2]}bc=d+48|0;return e}function W5(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return;a:{if(!b)break a;e=J[a+16>>2];if((e|0)<=0)break a;c=a+20|0;d=c+(e<<2)|0;while(1){if(J[c>>2]==(b|0)){J[a+16>>2]=e-1;a=d-4|0;if(a>>>0>c>>>0)while(1){J[c>>2]=J[c+4>>2];c=c+4|0;if(a>>>0>c>>>0)continue;break}J[a>>2]=0;i=J[b+8>>2];e=J[b>>2];d=J[b+4>>2];a=e;b:{if(!d)break b; -if(J[d+160>>2]==(b|0))J[d+160>>2]=0;a=e;if(!(K[a|0]&2))break b;c=J[d+148>>2];if(!c)break b;g=d+148|0;a=J[d>>2];c:{while(1){if(J[c+8>>2]==(b|0))break c;c=J[c+4>>2];if(c)continue;break}a=e;break b}f=J[b+12>>2];d:{if(J[f+36>>2]!=1869968492)break d;h=J[b+52>>2];if(!h)break d;gc[J[J[f+56>>2]+20>>2]](h)}f=J[c>>2];h=f?f+4|0:g;g=J[c+4>>2];J[h>>2]=g;J[(g?g:d+152|0)>>2]=f;gc[J[a+8>>2]](a,c);c=J[d+148>>2];e:{if(c)while(1){a=J[c+8>>2];if(J[a+16>>2]==1869968492)break e;c=J[c+4>>2];if(c)continue;break}a=0}J[d+ -156>>2]=a;a=J[b>>2]}f:{if(!(H[a|0]&1))break f;d=J[b+8>>2];if(!d)break f;c=J[b+16>>2];if(c)while(1){a=J[c+4>>2];hu(d,J[c+8>>2],b);gc[J[d+8>>2]](d,c);c=a;if(c)continue;break}J[b+16>>2]=0;J[b+20>>2]=0}a=J[e+28>>2];if(a)gc[a|0](b);gc[J[i+8>>2]](i,b);return}c=c+4|0;if(d>>>0>c>>>0)continue;break}}}function $_(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{h=0;c:{if(!b)break c;h=0;if((c|0)<4)break c;h=gr(b,c)}g=MJ(h);if(g){e=HJ();if(!e){ke(0,30558);cn(g);return 0}J[e+364>>2]=1;f=gc[J[659447]](P(J[e+192>>2], -12))|0;J[e+344>>2]=f;if(!f)break a;if(a){f=J[e>>2];if((f|0)!=2638208)gc[J[659451]](f);f=gc[J[659447]](128)|0;J[e>>2]=f;if(!f)break a;wc(f,0,128);f=J[e>>2];d:{if(J[a+108>>2]==-554844497){tc(f,a,128);break d}tc(f,a,112)}}e:{if(!d){J[e+180>>2]=0;a=CB(e);if(!a)break b;J[a+4>>2]=0;break e}i=e,j=AB(d),J[i+180>>2]=j;a=CB(e);if(!a)break b;d=zw(d);J[a+4>>2]=d;if(!d)break b}J[a>>2]=g;r0(J[g+16>>2],a);f:{g:{g=J[e+40>>2];d=J[e+44>>2];h:{if((g|0)<(d|0)){d=J[e+48>>2];break h}J[e+44>>2]=d<<1;d=gc[J[659452]](J[e+ -48>>2],d<<3)|0;J[e+48>>2]=d;if(!d)break g;g=J[e+40>>2]}J[(g<<2)+d>>2]=a;J[e+40>>2]=g+1;J[e+36>>2]=a;break f}ke(e,0);dh(a);J[e+44>>2]=J[e+44>>2]/2}i:{if(!(c?b:0)){J[e+256>>2]=0;break i}a=J[e+36>>2];if(!a)break i;d=J[a>>2];if(!d)break i;d=Gw(J[d+16>>2],a);a=J[e+36>>2];g=J[a+12>>2];f=J[a+16>>2];BB(J[a>>2],c,b);a=J[e+36>>2];Fw(J[J[a>>2]+16>>2],a,d,f-g|0)}if(h)dr(e,h)}return e}yj(e);cn(g);return 0}ke(e,0);cn(g);yj(e);return 0}function _fa(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,m=0;k=bc-16|0;bc=k;a:{if(a){a=ZP(c);b:{if(b){b=k+4|0;gc[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;gc[J[J[a>>2]+32>>2]](b,a);break b}b=k+4|0;gc[J[J[a>>2]+40>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;gc[J[J[a>>2]+28>>2]](b,a)}pi(i,b);ad(b);l=e,m=gc[J[J[a>>2]+12>>2]](a)|0,H[l|0]=m;l=f,m=gc[J[J[a>>2]+16>>2]](a)|0,H[l|0]=m;b=k+4|0;gc[J[J[a>>2]+20>>2]](b,a);pi(g,b);ad(b);gc[J[J[a>>2]+24>>2]](b, -a);pi(h,b);ad(b);a=gc[J[J[a>>2]+36>>2]](a)|0;break a}a=YP(c);c:{if(b){b=k+4|0;gc[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;gc[J[J[a>>2]+32>>2]](b,a);break c}b=k+4|0;gc[J[J[a>>2]+40>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;gc[J[J[a>>2]+28>>2]](b,a)}pi(i,b);ad(b);l=e,m=gc[J[J[a>>2]+12>>2]](a)|0,H[l|0]=m;l=f,m=gc[J[J[a>>2]+16>>2]](a)|0,H[l|0]=m;b=k+4|0;gc[J[J[a>>2]+20>>2]](b,a);pi(g,b);ad(b);gc[J[J[a>>2]+24>>2]](b, -a);pi(h,b);ad(b);a=gc[J[J[a>>2]+36>>2]](a)|0}J[j>>2]=a;bc=k+16|0}function LJa(a,b,c,d,e,f,g){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+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;O[a+24>>3]=d;O[a+8>>3]=c;J[a+4>>2]=0;J[a>>2]=b;J[a+64>>2]=0;J[a+68>>2]=0;O[a+40>>3]=g;O[a+32>>3]=f;O[a+16>>3]=e;J[a+56>>2]=0;i=J[b+8>>2];if((i|0)>0){l=i&1;j=J[b>>2];a:{if((i|0)==1){b=0;break a}i=i&-2;b=0;while(1){n=h;h=b<<2;m=J[h+j>>2];h=J[j+(h|4)>>2];h=(((n+J[m+44>>2]|0)+(K[m+103|0]!=0)|0)+J[h+44>>2]|0)+(K[h+103|0]!= -0)|0;b=b+2|0;k=k+2|0;if((i|0)!=(k|0))continue;break}}if(l){b=J[j+(b<<2)>>2];h=(J[b+44>>2]+h|0)+(K[b+103|0]!=0)|0}J[a+56>>2]=h}r=a,s=vd(h,4),J[r+48>>2]=s;l=vd(J[a+56>>2]+1|0,8);J[a+52>>2]=l;o=J[a>>2];if(J[o+8>>2]>0){p=J[a+48>>2];q=J[o>>2];b=0;j=0;while(1){i=J[(j<<2)+q>>2];if(!j)J[a+4>>2]=K[i+100|0];k=J[i+44>>2];b:{if((k|0)<=0){m=J[i+40>>2];break b}m=J[i+40>>2];n=J[i+32>>2];h=0;while(1){J[(b<<2)+p>>2]=J[(h<<2)+n>>2];O[(b<<3)+l>>3]=O[(h<<3)+m>>3];b=b+1|0;h=h+1|0;k=J[i+44>>2];if((h|0)<(k|0))continue; -break}}c=O[(k<<3)+m>>3];O[(b<<3)+l>>3]=c;if(K[i+103|0]){J[(b<<2)+p>>2]=32;b=b+1|0;O[(b<<3)+l>>3]=c}j=j+1|0;if((j|0)>2])continue;break}}J[a+60>>2]=J[(J[a+48>>2]+(J[a+56>>2]<<2)|0)-4>>2]==45;return a|0}function Mia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;J[d+28>>2]=0;NQ(d+27|0,a,0);a:{b:{c:{if(K[d+27|0]){e=J[J[a>>2]-12>>2];J[695492]=0;c=d+16|0;e=J[(a+e|0)+28>>2];J[c>>2]=e;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((e|0)!=1){J[695492]=0;e=$(6542,c|0)|0; -f=J[695492];J[695492]=0;if((f|0)==1)break h;J[d+12>>2]=J[(J[J[a>>2]-12>>2]+a|0)+24>>2];J[d+8>>2]=0;f=J[J[a>>2]-12>>2];g=J[d+8>>2];h=J[d+12>>2];J[695492]=0;ja(6543,e|0,h|0,g|0,a+f|0,d+28|0,d+20|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;c=J[c>>2];e=J[c+4>>2]-1|0;J[c+4>>2]=e;if((e|0)==-1)gc[J[J[c>>2]+8>>2]](c);break f}b=ea(0)|0;break g}b=ea(0)|0;c=J[d+16>>2];e=J[c+4>>2]-1|0;J[c+4>>2]=e;if((e|0)==-1)gc[J[J[c>>2]+8>>2]](c)}na(b|0)|0;c=J[d+28>>2]|1;J[d+28>>2]=c;b=J[J[a>>2]-12>>2]+a|0;J[b+16>>2]= -!J[b+24>>2]|(c|J[b+16>>2]);if(!(J[(J[J[a>>2]-12>>2]+a|0)+20>>2]&1))break e;J[695492]=0;ka(4892);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break c;ba(a|0);B()}c=J[d+20>>2];J[b>>2]=c;break d}ta()}pq(J[J[a>>2]-12>>2]+a|0,J[d+28>>2])}bc=d+32|0;break a}ea(0)|0;yc()}B()}return a|0}function MGa(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;e=bc-16|0;bc=e;a:{b:{c:{d:{if(b){if(!a)break d;if(!d)break c;if(J[a+120>> -2]|c>>>0<3)break a;ld(b,e+12|0,2);j=L[e+12>>1];if(j-1025>>>0<=4294966271){J[e>>2]=j;Hc(d,1,2351074,e);break a}ld(b+2|0,e+12|0,1);i=L[e+12>>1];if(!i){Hc(d,1,2351150,0);break a}if(i+3>>>0>c>>>0)break a;h=_e(P(i,j)<<2);if(!h)break a;k=_e(i);if(!k){qc(h);break a}l=_e(i);if(!l){qc(h);qc(k);break a}f=_e(20);if(!f){qc(h);qc(k);qc(l);break a}d=b+3|0;J[f+8>>2]=k;J[f+4>>2]=l;I[f+16>>1]=j;J[f>>2]=h;m=J[e+12>>2];J[f+12>>2]=0;H[f+18|0]=m;J[a+120>>2]=f;while(1){ld(d,e+12|0,1);H[g+k|0]=(K[e+12|0]&127)+1;H[g+l|0]= -(J[e+12>>2]&128)>>>7;d=d+1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}break b}fa(2351037,2342899,1167,2359654);B()}fa(2342603,2342899,1168,2359654);B()}fa(2343543,2342899,1169,2359654);B()}if(!j){g=1;break a}f=0;while(1){a=0;g=0;while(1){a=K[a+k|0]+7>>>3|0;a=a>>>0>=4?4:a;if((a+(d-b|0)|0)>(c|0)){g=0;break a}ld(d,e+12|0,a);J[h>>2]=J[e+12>>2];h=h+4|0;d=a+d|0;g=g+1|0;a=g&65535;if(i>>>0>a>>>0)continue;break}g=1;f=f+1|0;if((f&65535)>>>0>>0)continue;break}}bc=e+16|0;return g|0}function zqa(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;g=bc-32|0;bc=g;uG(b,3);d=L[b+8>>1];k=L[b+10>>1];a:{b:{c:{d:{e:{if(J[b+20>>2]){e=L[b+14>>1];f=d;break e}Li(b);e=L[b+14>>1];f=L[b+8>>1];h=d+1|0;if(f>>>0>h>>>0)break d}c=L[b+12>>1];if(J[682142]<(c+e|0)){a=Kc(g+8|0,2386481,2386813,577,2381799,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}h=c+J[682141]|0;c=J[b+20>>2];break c}c=J[b+20>>2];h=L[b+12>>1]+(c+P(e,h)|0)|0}if(!c){Li(b);e=L[b+14>>1];f=L[b+8>>1]}f:{if(d>>>0>=(f&65535)>>> -0){c=L[b+12>>1];if(J[682142]<(c+e|0)){a=Kc(g+8|0,2386481,2386813,577,2381799,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}j=c+J[682141]|0;c=J[b+20>>2];break f}c=J[b+20>>2];j=L[b+12>>1]+(c+P(d,e)|0)|0}i=d-1|0;if(!c){Li(b);e=L[b+14>>1];f=L[b+8>>1]}g:{if(!((f&65535)>>>0>i>>>0?d:0)){d=L[b+12>>1];if(J[682142]<(d+e|0)){a=Kc(g+8|0,2386481,2386813,577,2381799,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}d=d+J[682141]|0;break g}d=L[b+12>> -1]+(J[b+20>>2]+P(e,i)|0)|0}gc[J[J[a>>2]+48>>2]](a,b,k,i,h,j,d);bc=g+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Lm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;H[c+15|0]=b;J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2414676;la(5463,c+8|0,c+16|0,c+15|0,0,1);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){J[c+16>>2]=2414580;b=J[c+28>>2];if(b){H[b|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;ed(d);b=J[c+8>>2];d:{if(b){e=J[J[b>>2]+28>>2];J[695492]= -0;ca(e|0,d|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;break c}J[c+16>>2]=0}J[695492]=0;aa(4993,a|0,c+16|0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}b=Z()|0;vc(c+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+8>>2];J[c+8>>2]=0;f:{if(!b)break f;J[695492]=0;d=J[b+ -4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+32|0;return a|0}b=Z()|0;bh(c+16|0);break b}vc(c+8|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function oib(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;f=bc-16|0;bc=f;fh(a,J[a+8>>2]);g=J[a+8>>2];d=J[a>>2];J[f+12>>2]=d;a:{if(d>>>0>=g>>>0)break a;b:{c:{d:{e:{f:{e=K[d|0];if((e|0)==91)i=93;else{if((e|0)!=123)break f;i=125}d=d+1|0;J[f+12>>2]= -d;if(c)break e;if(d>>>0>=g>>>0)break a;while(1){fh(f+12|0,g);e=J[f+12>>2];if(g>>>0<=e>>>0){d=e;break a}if(K[e|0]==(i|0))break b;ql(f+12|0,g,0);d=J[f+12>>2];if((d|0)==(e|0))break d;h=h+1|0;if(d>>>0>>0)continue;break}break a}fh(f+12|0,g);e=J[f+12>>2];if(!c)break c;if(e>>>0>=g>>>0){d=e;break a}if(!K[e|0])break b;if((b|0)<=0){d=e;break a}j=c,k=ql(f+12|0,g,0)>>>16|0,I[j>>1]=k;d=J[f+12>>2];h=(d|0)==(e|0)?-1:1;break a}if(d>>>0>=g>>>0)break a;b=(b|0)>0?b:0;while(1){fh(f+12|0,g);e=J[f+12>>2];if(g>>>0<= -e>>>0){d=e;break a}if(K[e|0]==(i|0))break b;if((b|0)==(h|0)){d=e;h=b;break a}j=(h<<1)+c|0,k=ql(f+12|0,g,0)>>>16|0,I[j>>1]=k;d=J[f+12>>2];if((d|0)==(e|0))break d;h=h+1|0;if(d>>>0>>0)continue;break}break a}h=-1;d=e;break a}if(e>>>0>=g>>>0){d=e;break a}if(!K[e|0])break b;ql(f+12|0,g,0);d=J[f+12>>2];h=(d|0)==(e|0)?-1:1;break a}d=e+1|0}J[a>>2]=d;bc=f+16|0;return h|0}function WJ(a){var b=0;if(!J[689510])XJ();a:{b:{c:switch(a+1|0){case 3:return J[689511];case 4:return J[689512];case 7:b=kg(21804);if(b)break a; -b=kg(17972);if(b)break a;b=kg(20687);if(b)break a;b=kg(22522);if(!b)break b;break a;case 6:b=kg(22845);if(b)break a;b=kg(22855);if(b)break a;b=kg(22744);if(!b)break b;break a;case 5:b=kg(22845);if(b)break a;b=kg(22855);if(b)break a;b=kg(22744);if(!b)break b;break a;case 10:b=kg(24742);if(b)break a;b=kg(24752);if(b)break a;b=kg(24658);if(!b)break b;break a;case 11:b=kg(28313);if(!b)break b;break a;case 12:b=kg(24770);if(!b)break b;break a;case 13:b=kg(24396);if(!b)break b;break a;case 14:b=kg(22861); -if(!b)break b;break a;case 15:b=kg(22726);if(!b)break b;break a;case 16:b=kg(22632);if(!b)break b;break a;case 17:b=kg(22536);if(!b)break b;break a;case 18:b=kg(22396);if(!b)break b;break a;case 19:b=kg(22307);if(!b)break b;break a;case 20:b=kg(20916);if(!b)break b;break a;case 21:b=kg(20793);if(b)break a;b=kg(20773);if(b)break a;b=kg(20763);if(!b)break b;break a;case 0:case 1:case 2:break a;case 22:break c;default:break b}b=kg(20909);if(b)break a}b=0}return b}function fu(a,b,c,d,e){var f=0,g=0,h= -0,i=0,j=0,k=0,l=0;h=bc-16|0;bc=h;g=J[a>>2];J[h+12>>2]=g;j=b>>>0<=g>>>0;a:{if(j)break a;b:{c:{d:{e:{f:{f=K[g|0];if((f|0)==91)f=93;else{if((f|0)!=123)break f;f=125}j=f;g=g+1|0;J[h+12>>2]=g;if(d)break e;if(b>>>0<=g>>>0)break a;while(1){fh(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if((j|0)==K[f|0])break b;ql(h+12|0,b,e);g=J[h+12>>2];if((f|0)==(g|0))break d;i=i+1|0;if(b>>>0>g>>>0)continue;break}break a}if(!d)break c;if(j)break a;fh(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if(!K[f| -0])break b;if((c|0)<=0){g=f;break a}k=d,l=ql(h+12|0,b,e),J[k>>2]=l;g=J[h+12>>2];i=(f|0)==(g|0)?-1:1;break a}if(b>>>0<=g>>>0)break a;c=(c|0)>0?c:0;while(1){fh(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if((j|0)==K[f|0])break b;if((c|0)==(i|0)){g=f;i=c;break a}k=(i<<2)+d|0,l=ql(h+12|0,b,e),J[k>>2]=l;g=J[h+12>>2];if((f|0)==(g|0))break d;i=i+1|0;if(b>>>0>g>>>0)continue;break}break a}i=-1;g=f;break a}if(j)break a;fh(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if(!K[f|0])break b;ql(h+12| -0,b,e);g=J[h+12>>2];i=(f|0)==(g|0)?-1:1;break a}g=f+1|0}J[a>>2]=g;bc=h+16|0;return i}function aNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-32|0;bc=d;J[d+16>>2]=13;J[d>>2]=13;J[a+32>>2]=0;J[a+36>>2]=0;a:{b:{if(J[Bc(b,826462,d+16|0,0)>>2]!=6){xc(1,-1,826805,0);break b}c:{if(J[Mc(J[d+24>>2],0,d,0)>>2]-3>>>0<4294967294)break c;O[a>>3]=J[d>>2]==1?+J[d+8>>2]:O[d+8>>3];uc(d);if(J[Mc(J[d+24>>2],1,d,0)>>2]-3>>>0<4294967294)break c;O[a+8>>3]=J[d>>2]==1?+J[d+8>>2]:O[d+8>>3];uc(d);if(J[Mc(J[d+24>>2], -2,d,0)>>2]-3>>>0<4294967294)break c;O[a+16>>3]=J[d>>2]==1?+J[d+8>>2]:O[d+8>>3];uc(d);if(J[Mc(J[d+24>>2],3,d,0)>>2]-3>>>0<4294967294)break c;O[a+24>>3]=J[d>>2]==1?+J[d+8>>2]:O[d+8>>3];uc(d);uc(d+16|0);f=O[a>>3];g=O[a+16>>3];if(f>g){O[a+16>>3]=f;O[a>>3]=g}f=O[a+8>>3];g=O[a+24>>3];if(f>g){O[a+24>>3]=f;O[a+8>>3]=g}e=d+16|0;d:{e:{if(J[Bc(b,809952,e,0)>>2]!=5){c=rc(12);J[695492]=0;b=aa(3451,c|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){if(gc[J[J[b>>2]+8>>2]](b)|0)break e;gc[J[J[b>>2]+4>>2]](b);b=0;break e}a= -Z()|0;qc(c);ba(a|0);B()}e=d+16|0;uc(e);if(J[Bc(b,810489,e,0)>>2]!=7)break d;b=UH(e,c)}J[a+32>>2]=b}uc(d+16|0);if(!J[a+32>>2])break a;J[a+36>>2]=1;break a}xc(1,-1,809687,0);uc(d)}uc(d+16|0)}bc=d+32|0;return a|0}function NL(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;f=J[a+212>>2];g=f>>8;d=J[a+176>>2];j=c>>8;a:{if((g|0)>=(d|0)&(d|0)<=(j|0))break a;d=J[a+172>>2];if((d|0)>(g|0)&(d|0)>(j|0))break a;p=c&255;d=f&255;e=J[a+208>>2];if((g|0)==(j|0)){RC(a,g,e,d,b,p);break a}h=c-f|0;if((b| -0)==(e|0)){e=(h|0)>0;h=e<<8;d=h-d|0;J[a+184>>2]=d+J[a+184>>2];f=b<<1&510;J[a+180>>2]=J[a+180>>2]+P(f,d);k=b>>8;d=g;g=e?1:-1;d=d+g|0;Op(a,k,d);if((d|0)!=(j|0)){e=(e<<9)-256|0;m=P(e,f);while(1){J[a+180>>2]=m+J[a+180>>2];J[a+184>>2]=e+J[a+184>>2];d=d+g|0;Op(a,k,d);if((d|0)!=(j|0))continue;break}}d=h+(c|-256)|0;J[a+184>>2]=d+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+P(d,f);break a}i=b-e|0;m=1;f=d;b:{if((h|0)>0){k=256;d=256-d|0;break b}h=0-h|0;m=-1}o=e;l=f;d=P(d,i);e=(d|0)/(h|0)|0;f=d-P(e,h)|0;n=f>>31;e=(o+ -e|0)+n|0;RC(a,g,o,l,e,k);d=g+m|0;Op(a,e>>8,d);c:{if((d|0)==(j|0)){g=256-k|0;break c}i=i<<8;g=(i|0)/(h|0)|0;i=i-P(g,h)|0;l=i>>31;i=(l&h)+i|0;l=g+l|0;g=256-k|0;f=f+(h&n)|0;while(1){o=e;f=f+i|0;n=(f|0)>=(h|0);e=n+(e+l|0)|0;RC(a,d,o,g,e,k);d=d+m|0;Op(a,e>>8,d);f=f-(n?h:0)|0;if((d|0)!=(j|0))continue;break}}RC(a,j,e,g,b,p)}J[a+212>>2]=c;J[a+208>>2]=b}function MR(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=bc-80|0;bc=f;d=J[b+4>>2];h=L[a+98>>1];a:{b:{if(d>>>0>=h>>>0){g=f+48|0;if(d>>>0>h>>>0){d=J[a>> -2];e=J[a+628>>2];i=J[Lf(a,L[b>>1])+16>>2];j=J[b+4>>2];J[f+40>>2]=h;J[f+36>>2]=j;J[f+32>>2]=i;ae(e,d,82923,f+32|0);d=J[b+4>>2]}if(d>>>0>=11){g=Sg(a,d,2,88439);if(!g)break b;d=J[b+4>>2]}c:{d:{if(d>>>0<=2){if(L[a+456>>1]==19789){e=0;e:{f:switch(d-1|0){case 0:e=J[b+8>>2];break e;case 1:break f;default:break d}e=J[b+8>>2];I[g+2>>1]=e}I[g>>1]=e>>>16;e=d;break d}e=0;g:switch(d-1|0){case 0:I[g>>1]=J[b+8>>2];e=d;break d;case 1:break g;default:break d}e=J[b+8>>2];I[g+2>>1]=e>>>16;I[g>>1]=e;e=d;break d}d=0; -if(!Oh(a,b,g))break c;e=J[b+4>>2]}i=L[g>>1];h:{h=(e|0)<(h|0)?e:h;if((h|0)<2)break h;d=1;e=1;while(1){if((i|0)==L[(d<<1)+g>>1]){e=e+1|0;d=e&65535;if(d>>>0<(h&65535)>>>0)continue;break h}break}c=J[a>>2];d=J[a+628>>2];k=f,l=J[Lf(a,L[b>>1])+16>>2],J[k+16>>2]=l;Nc(d,c,88529,f+16|0);d=0;break c}I[c>>1]=i;d=1}if((f+48|0)==(g|0))break a;qc(g);break a}c=J[a>>2];d=J[a+628>>2];a=J[Lf(a,L[b>>1])+16>>2];b=J[b+4>>2];J[f+8>>2]=h;J[f+4>>2]=b;J[f>>2]=a;ae(d,c,82715,f)}d=0}bc=f+80|0;return d}function pw(a,b,c,d){var e= -0,f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;a:{if(!d|(!b|!c))break a;b:{f=J[b+64>>2];if(f)break b;f=up(0,J[b+80>>2]);J[b+64>>2]=f;if(f)break b;c:{if(!a){b=0;d=0;break c}b=J[a>>2];d=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break c;e=(b^-1)+a>>>0<249?b:0}J[g>>2]=38540;Cc(0,d,b,e,0,23,2,3,38540,0,0,0,32863,g);break a}e=gc[J[659447]](24)|0;if(!e){d:{if(!a){b=0;e=0;break d}b=J[a>>2];e=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break d;h=(b^-1)+a>>>0<249?b:0}J[g+16>>2]=17038;Cc(0,e,b,h,0,23,2,3,17038,0,0,0,32863, -g+16|0);break a}h=$e(c);J[e+20>>2]=b;J[e+4>>2]=h;e:{if(!(!a|!J[a+44>>2])){a=J[d+8>>2];b=J[b+80>>2];f:{if(b){a=le(b,a,-1);break f}a=$e(a)}J[e+12>>2]=a;a=e+8|0;break e}J[e+8>>2]=d;a=e+12|0}J[a>>2]=0;i=e,j=i0(J[d+20>>2]),J[i+16>>2]=j;g:{h:{i:{j:{if((LJ(f,c,e)|0)<0){a=J[e+20>>2];if(a){b=J[a+80>>2];f=J[e+4>>2];if(!f)break i;if(!b){b=0;break j}if(wk(b,f))break i;f=J[e+4>>2];break j}b=0;f=J[e+4>>2];if(f)break j;f=J[e+12>>2];if(!f)break g;break h}J[d+40>>2]=2;break a}gc[J[659451]](f)}f=J[e+12>>2];if(!f)break g; -if(!b)break h;if(wk(b,f))break g;f=J[e+12>>2]}gc[J[659451]](f)}gc[J[659451]](e)}bc=g+32|0}function oaa(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;a:{e=J[J[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0))break a;qs(b,a);g=a-e|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 3:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 2:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 1:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;break;case 0:break b}g=g-e|0;if((g| -0)>0)continue;break}break a}c=e-4|0;h=e&3;j=e-5>>>0>2;f=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}d=0;a=c;if(h)while(1){i=b+f|0;I[i>>1]=L[i>>1]+L[b>>1];a=a-1|0;b=b+2|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!j)break g;while(1){d=b+f|0;I[d>>1]=L[d>>1]+L[b>>1];d=(b+2|0)+f|0;I[d>>1]=L[d>>1]+L[b+2>>1];d=(b+4|0)+f|0;I[d>>1]=L[d>>1]+L[b+4>>1];d=(b+6|0)+f|0;I[d>>1]=L[d>>1]+L[b+6>>1];b=b+8|0;d=(a|0)>4;a=a-4|0;if(d)continue; -break}}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}g=g-e|0;if((g|0)>0)continue;break}}}function lL(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;i=a+8|0;a:{g=(c-b|0)/12|0;d=J[a+8>>2];e=J[a>>2];if(g>>>0<=(d-e|0)/12>>>0){f=(J[a+4>>2]-e|0)/12|0;h=P(f,12)+b|0;j=f>>>0>>0?h:c;b:{if((j|0)==(b|0)){d=e;break b}d=e;while(1){if((b|0)!=(d|0))kL(d,J[b>>2],J[b+4>>2]);d=d+12|0;b=b+12| -0;if((j|0)!=(b|0))continue;break}}b=(d-e|0)/12|0;d=J[a+4>>2];if(f>>>0>>0){J[695492]=0;b=ha(2261,i|0,h|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}c=e+P(b,12)|0;if((c|0)!=(d|0))while(1){b=d-12|0;e=J[b>>2];if(e){J[d-8>>2]=e;qc(e)}d=b;if((c|0)!=(d|0))continue;break}J[a+4>>2]=c;return}if(e){d=e;f=J[a+4>>2];if((d|0)!=(f|0)){while(1){d=f-12|0;h=J[d>>2];if(h){J[f-8>>2]=h;qc(h)}f=d;if((d|0)!=(e|0))continue;break}d=J[a>>2]}J[a+4>>2]=e;qc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]= -0;d=0}c:{if(g>>>0>=357913942)break c;d=(d|0)/12|0;e=d<<1;d=d>>>0>=178956970?357913941:e>>>0>g>>>0?e:g;if(d>>>0>=357913942)break c;e=P(d,12);d=rc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;J[695492]=0;b=ha(2261,i|0,b|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}_j(a);B()}b=Z()|0;J[a+4>>2]=d;ba(b|0);B()}function N3(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;i=a+8|0;a:{g=(c-b|0)/12|0;d=J[a+8>>2];e=J[a>>2];if(g>>>0<=(d-e|0)/12>>>0){f=(J[a+4>>2]-e|0)/12|0;h=P(f, -12)+b|0;j=f>>>0>>0?h:c;b:{if((j|0)==(b|0)){d=e;break b}d=e;while(1){if((b|0)!=(d|0))CC(d,J[b>>2],J[b+4>>2]);d=d+12|0;b=b+12|0;if((j|0)!=(b|0))continue;break}}b=(d-e|0)/12|0;d=J[a+4>>2];if(f>>>0>>0){J[695492]=0;b=ha(2262,i|0,h|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}c=e+P(b,12)|0;if((c|0)!=(d|0))while(1){b=d-12|0;e=J[b>>2];if(e){J[d-8>>2]=e;qc(e)}d=b;if((c|0)!=(d|0))continue;break}J[a+4>>2]=c;return}if(e){d=e;f=J[a+4>>2];if((d|0)!=(f|0)){while(1){d=f-12|0; -h=J[d>>2];if(h){J[f-8>>2]=h;qc(h)}f=d;if((d|0)!=(e|0))continue;break}d=J[a>>2]}J[a+4>>2]=e;qc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}c:{if(g>>>0>=357913942)break c;d=(d|0)/12|0;e=d<<1;d=d>>>0>=178956970?357913941:e>>>0>g>>>0?e:g;if(d>>>0>=357913942)break c;e=P(d,12);d=rc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;J[695492]=0;b=ha(2262,i|0,b|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}_j(a);B()}b=Z()|0;J[a+4>>2]=d;ba(b|0);B()}function M3(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;i=a+8|0;a:{g=(c-b|0)/12|0;d=J[a+8>>2];e=J[a>>2];if(g>>>0<=(d-e|0)/12>>>0){f=(J[a+4>>2]-e|0)/12|0;h=P(f,12)+b|0;j=f>>>0>>0?h:c;b:{if((j|0)==(b|0)){d=e;break b}d=e;while(1){if((b|0)!=(d|0))$w(d,J[b>>2],J[b+4>>2]);d=d+12|0;b=b+12|0;if((j|0)!=(b|0))continue;break}}b=(d-e|0)/12|0;d=J[a+4>>2];if(f>>>0>>0){J[695492]=0;b=ha(2263,i|0,h|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}c=e+P(b,12)|0;if((c|0)!=(d|0))while(1){b=d-12|0;e=J[b>>2];if(e){J[d- -8>>2]=e;qc(e)}d=b;if((c|0)!=(d|0))continue;break}J[a+4>>2]=c;return}if(e){d=e;f=J[a+4>>2];if((d|0)!=(f|0)){while(1){d=f-12|0;h=J[d>>2];if(h){J[f-8>>2]=h;qc(h)}f=d;if((d|0)!=(e|0))continue;break}d=J[a>>2]}J[a+4>>2]=e;qc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}c:{if(g>>>0>=357913942)break c;d=(d|0)/12|0;e=d<<1;d=d>>>0>=178956970?357913941:e>>>0>g>>>0?e:g;if(d>>>0>=357913942)break c;e=P(d,12);d=rc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;J[695492]=0;b=ha(2263,i|0,b|0,c|0,d|0)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break a;J[a+4>>2]=b;return}_j(a);B()}b=Z()|0;J[a+4>>2]=d;ba(b|0);B()}function r1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-16|0;bc=g;a:{if(J[b>>2]>0)break a;c=J[a+4>>2];e=H[c+61|0];if(!e)break a;if((e|0)<0){c=J[c+20>>2];J[g+12>>2]=c;h=g+12|0;i=c-(e<<1)|0;e=bc-16|0;bc=e;b:{if(J[b>>2]>0)break b;d=J[a+16>>2];y1(J[a+4>>2],a+16|0,J[a+20>>2],h,i,b);c=J[a+24>>2];c:{if(!c)break c;f=J[a+16>>2];if((f|0)==(d|0))break c;l=f+(d^-1)|0;j=f-d&7;if(j)while(1){J[c>>2]=0;d=d+1|0;c=c+4|0;k= -k+1|0;if((j|0)!=(k|0))continue;break}if(l>>>0>=7)while(1){J[c+28>>2]=0;J[c+24>>2]=0;J[c+20>>2]=0;J[c+16>>2]=0;J[c+12>>2]=0;J[c+8>>2]=0;J[c+4>>2]=0;J[c>>2]=0;c=c+32|0;d=d+8|0;if((f|0)!=(d|0))continue;break}J[a+24>>2]=c}if(J[b>>2]!=15)break b;J[e+8>>2]=0;c=J[a+4>>2];d=(H[c+63|0]+c|0)+76|0;J[e+12>>2]=d;f=d;d=c+108|0;d:{if(f>>>0>=d>>>0)break d;H[c+63|0]=0;y1(c,e+12|0,d,h,i,e+8|0);a=J[a+4>>2];c=J[e+12>>2];H[a+63|0]=(c-a|0)-76;if(c>>>0>=d>>>0)break d;if(J[e+8>>2]!=15)break b}J[b>>2]=5}bc=e+16|0;break a}d= -J[J[J[c+24>>2]+20>>2]+52>>2];if(d){gc[d|0](a,0,b);break a}if(!(!K[c+66|0]|L[c+112>>1]>255)){hi(c,c+66|0,1,a+16|0,J[a+20>>2],a+24|0,0,b);break a}hi(c,J[c+20>>2],e,a+16|0,J[a+20>>2],a+24|0,0,b)}bc=g+16|0}function jZa(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=bc-80|0;bc=e;a:{if(!a)break a;d=J[a+36>>2];if(!d)break a;b:{k=J[d+4>>2];c:{if(k){f=J[d+28>>2];i=J[689514];g=J[659549];j=d;break c}h=J[a+40>>2];if((h|0)<=1){f=J[d+28>>2];h=0;i=J[689514];g=J[659549];j=d;break b}j=J[(J[a+48>> -2]+(h<<2)|0)-8>>2];if(!j){h=d;j=0;break a}f=J[j+28>>2];i=J[689514];g=J[659549];h=d;k=J[j+4>>2];if(!k)break b}J[e+68>>2]=f;J[e+64>>2]=k;gc[g|0](i,29761,e- -64|0);break a}J[e+48>>2]=f;gc[g|0](i,29769,e+48|0)}gc[J[659549]](J[689514],29734,0);g=150;f=gc[J[659447]](150)|0;d:{if(!f)break d;i=-1;while(1){l=f;if((g|0)>63999)break d;J[e+76>>2]=c;d=Il(f,g,b,c);if(!((d|0)<0|(d|0)>=(g|0))){f=(d|0)==(i|0);i=d;if(f)break d}g=((d|0)<0?100:d+1|0)+g|0;f=gc[J[659452]](l,g)|0;if(f)continue;break}}J[e+32>>2]=l;gc[J[659549]](J[689514], -4607,e+32|0);if(l)gc[J[659451]](l);e:{if(!a)break e;xp(j,J[659549],J[689514]);if(!h)break e;d=J[h+28>>2];c=J[689514];b=J[659549];a=J[h+4>>2];f:{if(a){J[e+20>>2]=d;J[e+16>>2]=a;gc[b|0](c,29761,e+16|0);break f}J[e>>2]=d;gc[b|0](c,29769,e)}gc[J[659549]](J[689514],39161,0);xp(h,J[659549],J[689514])}bc=e+80|0}function iZa(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=bc-80|0;bc=e;a:{if(!a)break a;d=J[a+36>>2];if(!d)break a;b:{k=J[d+4>>2];c:{if(k){f=J[d+28>>2];i=J[689514];g=J[659549]; -j=d;break c}h=J[a+40>>2];if((h|0)<=1){f=J[d+28>>2];h=0;i=J[689514];g=J[659549];j=d;break b}j=J[(J[a+48>>2]+(h<<2)|0)-8>>2];if(!j){h=d;j=0;break a}f=J[j+28>>2];i=J[689514];g=J[659549];h=d;k=J[j+4>>2];if(!k)break b}J[e+68>>2]=f;J[e+64>>2]=k;gc[g|0](i,29761,e- -64|0);break a}J[e+48>>2]=f;gc[g|0](i,29769,e+48|0)}gc[J[659549]](J[689514],29751,0);g=150;f=gc[J[659447]](150)|0;d:{if(!f)break d;i=-1;while(1){l=f;if((g|0)>63999)break d;J[e+76>>2]=c;d=Il(f,g,b,c);if(!((d|0)<0|(d|0)>=(g|0))){f=(d|0)==(i|0);i= -d;if(f)break d}g=((d|0)<0?100:d+1|0)+g|0;f=gc[J[659452]](l,g)|0;if(f)continue;break}}J[e+32>>2]=l;gc[J[659549]](J[689514],4607,e+32|0);if(l)gc[J[659451]](l);e:{if(!a)break e;xp(j,J[659549],J[689514]);if(!h)break e;d=J[h+28>>2];c=J[689514];b=J[659549];a=J[h+4>>2];f:{if(a){J[e+20>>2]=d;J[e+16>>2]=a;gc[b|0](c,29761,e+16|0);break f}J[e>>2]=d;gc[b|0](c,29769,e)}gc[J[659549]](J[689514],39161,0);xp(h,J[659549],J[689514])}bc=e+80|0}function uG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-80|0;bc=e;a:{b:{c:{d:{if(L[a+ -12>>1]>=(b|0))break d;e:{if(J[a+20>>2]){J[695492]=0;c=ga(5439,e+8|0,a|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;I[a+14>>1]=L[c+14>>1];J[695492]=0;f=c+28|0;Bz(f,a+28|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;J[a+20>>2]=J[a+24>>2];J[c>>2]=2407140;J[c+20>>2]=0;d=J[c+68>>2];J[c+68>>2]=0;f:{if(!d)break f;J[695492]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)==1)break b;if(g)break f;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break b}_c(c+52|0);_c(c+40| -0);_c(f);ed(c)}I[a+12>>1]=b;c=L[a+10>>1];J[695492]=0;d=e+4|0;da(5441,d|0,c+(b<<1&131070)|0);b=J[695492];J[695492]=0;g:{if((b|0)!=1){J[695492]=0;aa(4993,a+68|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;a=J[e+4>>2];J[e+4>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break b}break a}a=Z()|0;vc(e+4|0);ba(a|0);B()}break a}bc=e+80|0;return}a=Z()|0;ZT(c);ba(a|0);B()}ea(0)| -0;yc();B()}ba(Z()|0);B()}function nV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;a:{if(b){H[a+10|0]=1;break a}H[a+9|0]=1}b=J[a+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}b:{b=J[a+16>>2];c:{if(!b)break c;J[b+4>>2]=J[b+4>>2]+1;b=J[a+16>>2];J[d+12>>2]=b;if(!b)break c;d:{if(!J[J[a+12>>2]>>2]){J[d+12>>2]=0;break d}while(1){e=J[d+12>>2];while(1){e:{c=J[e+96>>2];if(!c)break e;f:{while(1){g:{b=J[c+8>>2];if(b){J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[695492]; -J[695492]=0;if((b|0)==1)break g;b=J[c+8>>2]}else b=0;H[b+12|0]=1;if(!J[b+8>>2])J[b+8>>2]=1;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break f;if(!f){J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break f}c=J[c>>2];if(c)continue;break e}break}a=Z()|0;vc(d+12|0);ba(a|0);B()}break b}e=J[e+16>>2];if(e)continue;break}if(J[J[a+12>>2]>>2])continue;break}b=J[d+12>>2];J[d+12>>2]=0;if(!b)break c}J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[695492];J[695492]=0;if((c| -0)==1)break b;if(a)break c;J[695492]=0;_(4987,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}bc=d+16|0;return}ea(0)|0;yc();B()}function iq(a,b){var c=0,d=0,e=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;d=b>>>24|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break c}if((Uc(a,d)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>> -2])break a;d=b>>>16|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;d:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break d}if((Uc(a,d&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;d=b>>>8|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;e:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break e}if((Uc(a,d&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2]; -if((c|0)>=0&(c|0)<=J[a+60>>2])break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b;break f}if((Uc(a,b&255)|0)==-1)break b}c=0}return c}J[a+8>>2]=d|4;return-1}function F0(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=J[a+124>>2];c=e;d=e>>>2|0;e=J[a+120>>2];i=e>>>0>2]?c:d;c=J[a+108>>2];d=(c-J[a+44>>2]|0)+262|0;n=c>>>0>=d>>>0?d:0;d=J[a+144>>2];h=J[a+116>>2];o=d>>>0>> -0?d:h;k=J[a+56>>2];f=c+k|0;p=f+257|0;q=f+258|0;c=e+f|0;l=K[c|0];m=K[c-1|0];r=J[a+52>>2];s=J[a+64>>2];while(1){a:{c=b+k|0;d=c+e|0;b:{if(K[d|0]!=(l|0)|K[d-1|0]!=(m|0)|(K[c|0]!=K[f|0]|K[c+1|0]!=K[f+1|0]))break b;g=2;d=c+2|0;c:{d:{e:{f:{g:{h:{i:{while(1){c=f+g|0;if(K[c+1|0]==K[d+1|0]){if(K[c+2|0]!=K[d+2|0])break i;if(K[c+3|0]!=K[d+3|0])break h;if(K[c+4|0]!=K[d+4|0])break g;if(K[c+5|0]!=K[d+5|0])break f;if(K[c+6|0]!=K[d+6|0])break e;if(K[c+7|0]!=K[d+7|0])break d;j=g>>>0>249;g=g+8|0;c=g+f|0;if(j)break c; -j=K[d+8|0];d=d+8|0;if(K[c|0]==(j|0))continue;break c}break}c=c+1|0;break c}c=c+2|0;break c}c=c+3|0;break c}c=c+4|0;break c}c=c+5|0;break c}c=c+6|0;break c}c=c+7|0}d=c-q|0;c=d+258|0;if((c|0)<=(e|0))break b;J[a+112>>2]=b;if((c|0)>=(o|0)){e=c;break a}l=K[c+f|0];m=K[d+p|0];e=c}b=L[((b&r)<<1)+s>>1];if(n>>>0>=b>>>0)break a;i=i-1|0;if(i)continue}break}return e>>>0>>0?e:h}function vs(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d:{e:{f:{d=J[b>>2];if(d){f=J[a>>2];if(!f)break d;h=O[d+16>>3];g=O[f+16>>3];g:{if(R(h- -g)<=.01){if(!(O[d+32>>3]>3]))break g;break d}if(h>2];if(!e)break a;g=O[e+16>>3];if(!(R(g-h)<=.01))break f;if(O[e+32>>3]>3])break e;break a}e=J[c>>2];if(e)break e;return 0}if(!(h>g))break a}J[b>>2]=e;J[c>>2]=d;f=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=f;f=1;d=J[b>>2];if(!d)break a;e=J[a>>2];h:{if(!e)break h;h=O[d+16>>3];g=O[e+16>>3];if(R(h-g)<=.01){if(O[d+32>>3]>3])break h;break a}if(!(h>2]=d;J[b>>2]=e;a=a+4|0;break c}i:{e=J[c>>2]; -if(!e)break i;h=O[e+16>>3];g=O[d+16>>3];j:{if(R(h-g)<=.01){if(!(O[e+32>>3]>3]))break i;break j}if(!(h>2]=e;J[c>>2]=f;c=c+4|0;a=a+4|0;f=1;break b}J[a>>2]=d;J[b>>2]=f;f=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=f;f=1;a=J[c>>2];if(!a)break a;d=J[b>>2];k:{if(!d)break k;h=O[a+16>>3];g=O[d+16>>3];if(R(h-g)<=.01){if(O[a+32>>3]>3])break k;break a}if(!(h>2]=a;J[c>>2]=d;c=c+4|0;a=b+4|0}f=2}b=J[a>>2];J[a>>2]=J[c>>2];J[c>>2]=b}return f}function sF(a,b,c){var d=0, -e=0,f=0,g=0;f=bc-16|0;bc=f;d=J[a+188>>2];if(d)qc(d);d=Sg(a,J[a+180>>2],4,82042);J[a+188>>2]=d;a:{if(!d){b=-1;break a}b:{c:{d:{if(L[a+88>>1]!=1){e=P(c,12)+14|0;g=gc[J[a+648>>2]](J[a+628>>2])|0;if(c)while(1){d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+91532>>2];else d=0;if(!d){c=J[a+628>>2];a=J[a>>2];J[f+4>>2]=L[b+2>>1];J[f>>2]=a;Nc(c,92160,82327,f);b=-1;break a}d=P(d,J[b+4>>2]);e=(d>>>0>4?d:0)+e|0;b=b+12|0;c=c-1|0;if(c&65535)continue;break}e=g-e|0;e=L[a+138>>1]==2?(e>>>0)/L[a+98>>1]|0:e;d=J[a+188>>2];if(!J[a+ -180>>2])break d;c=0;while(1){b=c;J[d+(b<<2)>>2]=e;c=b+1|0;if(c>>>0>2])continue;break}break c}if(K[a+13|0]&4){c=Ol(a);if(!J[a+180>>2])break b;d=J[a+188>>2];b=0;while(1){J[d+(b<<2)>>2]=c;b=b+1|0;if(b>>>0>2])continue;break}break b}b=_i(a);if(!J[a+180>>2])break b;c=P(b,M[a+60>>2]/M[a+176>>2]|0);d=J[a+188>>2];b=0;while(1){J[d+(b<<2)>>2]=c;b=b+1|0;if(b>>>0>2])continue;break}break b}e=J[d-4>>2];b=-1}b=b<<2;c=J[b+J[a+184>>2]>>2];if(c+e>>>0<=g>>>0)break b;J[b+d>>2]=g-c}c=J[a+40>> -2];J[a+40>>2]=c|16777216;b=1;if(c&131072)break a;J[a+100>>2]=J[a+60>>2]}bc=f+16|0;return b}function ki(a,b){var c=0,d=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;c:{if((d|0)<=0){if((Uc(a,b>>>24|0)|0)!=-1)break c;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b>>>24}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1; -d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)<=0){if((Uc(a,b>>>16&255)|0)!=-1)break d;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b>>>16}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;e:{if((d|0)<=0){if((Uc(a,b>>>8&255)|0)!=-1)break e;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b>>>8}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a; -J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)<=0){if((Uc(a,b&255)|0)!=-1)break f;break b}J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b}c=0}return c}J[a+8>>2]=d|4;return-1}function DBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d:{e=J[b>>2];e:{if(e){if(J[e+8>>2]){b=J[J[e>>2]+28>>2];J[695492]=0;ca(b|0,d+8|0,e|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break d;c=J[d+8>>2];break e}J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;c=J[695492]; -J[695492]=0;if((c|0)==1)break d;c=J[b>>2]}J[d+8>>2]=c}f:{if(c){b=J[J[c>>2]+28>>2];J[695492]=0;ca(b|0,d+12|0,c|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break f;c=Z()|0;break c}J[d+12>>2]=0}J[695492]=0;aa(4993,a|0,d+12|0)|0;b=J[695492];J[695492]=0;g:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break g;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break g;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}break a}c=Z()|0;vc(d+12|0);break c}b=J[a>> -2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[d+8>>2];J[d+8>>2]=0;h:{if(!b)break h;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=d+16|0;return a|0}c=Z()|0;break b}vc(d+8|0)}sc(a);ba(c|0);B()}ea(0)|0;yc();B()}function Xm(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=bc-144|0;bc=e;J[e+128>>2]=13;a:{b:{f=J[a+12>>2];if((f|0)<=0)break b;g=(f|0)>=4?4:f;i=(g|0)<=1?1:g;g=0;while(1){j=(e+96|0)+(g<< -3)|0;if(J[Mc(a,g,e+128|0,0)>>2]-3>>>0>=4294967294)h=J[e+128>>2]==1?+J[e+136>>2]:O[e+136>>3];else h=0;O[j>>3]=h;uc(e+128|0);g=g+1|0;if((i|0)!=(g|0))continue;break}c:{if((((f|0)>3?0-c|0:c)|0)>0){if((f|0)<=0)break c;O[e+96>>3]=O[e+96>>3]*.5+.5;if((f|0)<2)break c;O[e+104>>3]=O[e+104>>3]*.5+.5;if((f|0)==2)break c;O[e+112>>3]=O[e+112>>3]*.5+.5;if((f|0)==3)break c;O[e+120>>3]=O[e+120>>3]*.5+.5;break c}if(!c|(f|0)<=0)break c;O[e+96>>3]=O[e+96>>3]*.5;if((f|0)<2)break c;O[e+104>>3]=O[e+104>>3]*.5;if((f|0)== -2)break c;O[e+112>>3]=O[e+112>>3]*.5;if((f|0)==3)break c;O[e+120>>3]=O[e+120>>3]*.5}if((f|0)>=4){O[e+16>>3]=O[e+112>>3];O[e+24>>3]=O[e+120>>3];J[e+32>>2]=b?107:75;O[e>>3]=O[e+96>>3];O[e+8>>3]=O[e+104>>3];Xc(d,824318,e);break a}if((f|0)!=3)break b;O[e- -64>>3]=O[e+112>>3];J[e+72>>2]=b?806224:824882;O[e+48>>3]=O[e+96>>3];O[e+56>>3]=O[e+104>>3];Xc(d,824617,e+48|0);break a}O[e+80>>3]=O[e+96>>3];J[e+88>>2]=b?103:71;Xc(d,825155,e+80|0)}bc=e+144|0}function Gra(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=bc-16|0;bc=j;n=e&3;o=e>>>2|0;p=h<<2;while(1){e=o;while(1){c=i;h=K[c+4|0];i=K[c+5|0];k=j+12|0;l=j+8|0;m=j+4|0;_d(J[a+68>>2],K[c|0],h,i,k,l,m);d=b;J[d>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[c+1|0],h,i,k,l,m);J[d+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[c+2|0],h,i,k,l,m);J[d+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[c+3|0],h,i,k,l,m);J[d+12>>2]=J[j+12>> -2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=c+6|0;b=d+16|0;e=e-1|0;if(e)continue;break}if(n){e=K[c+11|0];h=K[c+10|0];a:switch(n-1|0){case 2:_d(J[a+68>>2],K[c+8|0],h,e,j+12|0,j+8|0,j+4|0);J[d+24>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:_d(J[a+68>>2],K[c+7|0],h,e,j+12|0,j+8|0,j+4|0);J[d+20>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 0:_d(J[a+68>>2],K[i|0],h,e,j+12|0,j+8|0,j+4|0);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;default:break a}b=(n<<2)+b|0;d= -12}else d=6;i=(d+c|0)+g|0;b=b+p|0;f=f-1|0;if(f)continue;break}bc=j+16|0}function uya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-48|0;bc=e;On(a);J[e+40>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[695492]=0;J[e+16>>2]=0;J[e+20>>2]=0;g=aa(5080,e+16|0,2401340)|0;f=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((f|0)!=1){J[e+12>>2]=0;J[695492]=0;J[e+8>>2]=0;f=e+8|0;aa(4985,f|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;oa(5340,f|0,a|0,c|0,0,e+12|0,g|0); -b=J[695492];J[695492]=0;if((b|0)==1)break h;b=J[e+8>>2];J[e+8>>2]=0;i:{if(!b)break i;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)==1)break d;if(c)break i;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break d}if(d)J[d>>2]=J[e+12>>2];b=J[a>>2];c=J[J[b>>2]+16>>2];J[695492]=0;c=$(c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;if(c)break g;J[695492]=0;aa(4985,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break f;break c}b=Z()|0;break a}b=Z()|0;vc(e+8|0); -break b}c=J[J[b>>2]+20>>2];J[695492]=0;ha(c|0,b|0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c}Bd(g);bc=e+48|0;return}b=Z()|0;break b}ea(0)|0;yc();B()}b=Z()|0}Bd(g)}vc(a);ba(b|0);B()}function q6(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=bc-48|0;bc=e;g=J[a+4>>2];H[b+557|0]=0;J[b+560>>2]=a;if(!(!J[b+116>>2]|!J[b+120>>2])){i=wc(b+188|0,0,364);J[b+528>>2]=3932;J[b+520>>2]=-1;J[b+392>>2]=1;J[b+588>>2]=d;J[b+584>>2]=c;J[b+552>>2]=b;J[b+384>>2]=2596864;J[b+388>>2]=7;a:{if(!K[a+ -32|0]){f=8192;d=97;break a}f=20480;d=J[a+1556>>2]+1|0}h=J[a>>2];c=J[h>>2];j=J[b+176>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+36>>2]=i;J[e+32>>2]=f;J[e+4>>2]=h;J[e+40>>2]=j;f=Sc(c,4,0,d,0,e+44|0);J[e+20>>2]=f;b:{c:{if(!J[e+44>>2]){J[e+24>>2]=f;J[e+28>>2]=d;break c}if(f)gc[J[c+8>>2]](c,f);f=0;J[e+20>>2]=0;if(J[e+44>>2])break b}f=nd(g,J[b+116>>2]+J[a+12>>2]|0);if(f)break b;f=Ue(g,J[b+120>>2]);if(f)break b;f=p6(e+4|0,J[g+32>>2],J[g+36>>2]);ne(g);if(f)break b; -H[b+188|0]=K[b+188|0]&254;a=J[b+532>>2];d:{e:{if((a|0)<0){a=0-a|0;break e}if(a)break d;a=987654321}J[b+532>>2]=a}if(M[b+388>>2]>=1001)J[b+388>>2]=7;f=0;if(M[b+392>>2]<1001)break b;J[b+392>>2]=1}J[b+600>>2]=0;J[b+596>>2]=J[b+592>>2];a=J[J[e+4>>2]>>2];b=J[e+20>>2];if(b)gc[J[a+8>>2]](a,b)}bc=e+48|0;return f|0}function nea(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;j=bc-16|0;bc=j;i=c;while(1){a:{if((d|0)==(i|0)){i=d;break a}if(!K[i|0])break a;i=i+1|0; -continue}break}J[h>>2]=f;J[e>>2]=c;while(1){b:{c:{d:{if((c|0)==(d|0)|(f|0)==(g|0))break d;l=J[b+4>>2];J[j+8>>2]=J[b>>2];J[j+12>>2]=l;k=bc-16|0;bc=k;J[k+12>>2]=J[a+8>>2];m=Gl(k+8|0,k+12|0);J[695492]=0;l=tQ(f,e,i-c|0,g-f>>2,b);n=J[695492];J[695492]=0;e:{if((n|0)!=1){Mh(m);bc=k+16|0;break e}a=Z()|0;Mh(m);ba(a|0);B()}f:{g:{h:{i:{if((l|0)==-1){while(1){j:{J[h>>2]=f;if(J[e>>2]==(c|0))break j;g=1;k:{l:{m:{b=GP(f,c,i-c|0,j+8|0,J[a+8>>2]);switch(b+2|0){case 2:break k;case 1:break m;case 0:break g;default:break l}}J[e>> -2]=c;break i}g=b}c=c+g|0;f=J[h>>2]+4|0;continue}break}J[e>>2]=c;break d}f=J[h>>2]+(l<<2)|0;J[h>>2]=f;if((f|0)==(g|0))break f;c=J[e>>2];if((d|0)==(i|0)){i=d;continue}if(!GP(f,c,1,b,J[a+8>>2]))break h}a=2;break c}J[h>>2]=J[h>>2]+4;c=J[e>>2]+1|0;J[e>>2]=c;i=c;while(1){if((d|0)==(i|0)){i=d;break b}if(!K[i|0])break b;i=i+1|0;continue}}J[e>>2]=c;a=1;break c}c=J[e>>2]}a=(c|0)!=(d|0)}bc=j+16|0;return a|0}f=J[h>>2];continue}}function Ug(a,b){var c=0,d=0,e=0,f=0;a:{if(!a|!b)break a;d=J[a+4>>2];if((d|0)==18| -(a|0)==(b|0))break a;e=J[b+4>>2];if((e|0)==18)break a;b:{c:{d:{e:{f:{g:{h:{if((e|0)!=3)break h;if(!(!J[a+40>>2]|(d|0)!=3|J[a+8>>2]!=J[b+8>>2])){xB(a,J[b+40>>2]);break g}d=J[a+16>>2];if(!d|J[d+4>>2]!=3|((b|0)==(d|0)|J[d+8>>2]!=J[b+8>>2]))break h;xB(d,J[b+40>>2]);gl(b);return J[a+16>>2]}d=J[b+20>>2];J[b+20>>2]=a;e=J[a+32>>2];if((e|0)!=J[b+32>>2])im(b,e);if((a|0)==(d|0))break b;d=J[a+4>>2];if((d|0)!=3)break e;if(!J[a+40>>2])break f;d=J[b+40>>2];if(!d)break g;e=0;if(K[d|0]){c=d;while(1){e=e+1|0;f=K[c+ -1|0];c=c+1|0;if(f)continue;break}}wB(a,d,e)}gl(b);return a}if(J[b+4>>2]!=2)break d;break a}if(J[b+4>>2]==2)break c}if(!J[a+12>>2]){J[a+16>>2]=b;J[a+12>>2]=b;break b}c=J[a+16>>2];J[c+24>>2]=b;J[b+28>>2]=c;J[a+16>>2]=b;break b}if((d|0)!=1)break a;i:{if(J[a+44>>2]){d=J[b+8>>2];c=J[b+36>>2];if(c)c=J[c+8>>2];else c=0;c=GJ(a,d,c);if(!(!c|(b|0)==(c|0)|J[c+4>>2]==16)){zj(c);yw(c)}if((b|0)==(c|0))break b;c=J[a+44>>2];if(c)break i}J[a+44>>2]=b;break b}while(1){a=c;c=J[a+24>>2];if(c)continue;break}J[a+24>>2]= -b;J[b+28>>2]=a}c=b}return c}function saa(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;a:{e=J[J[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0))break a;g=a-e|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 3:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 2:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 1:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;break;case 0:break b}g=g-e|0;if((g|0)>0)continue;break}break a}c=e-4|0;h=e&3;j=e-5>>>0>2;f=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e| +1]=K[c|0];e=e+2|0;c=c+1|0;h=f>>>0>1;f=f-1|0;if(h)continue;break}J[a+16>>2]=e;J[a+8>>2]=c;if(!d)break b;f=g&7;g:{if(!f){c=b;break g}e=0;c=b;while(1){J[d>>2]=c;d=d+4|0;c=c+1|0;e=e+1|0;if((f|0)!=(e|0))continue;break}}if(g>>>0<8)break c;b=b+g|0;while(1){J[d>>2]=c;J[d+28>>2]=c+7;J[d+24>>2]=c+6;J[d+20>>2]=c+5;J[d+16>>2]=c+4;J[d+12>>2]=c+3;J[d+8>>2]=c+2;J[d+4>>2]=c+1;d=d+32|0;c=c+8|0;if((b|0)!=(c|0))continue;break}}J[a+24>>2]=d}return}J[a+16>>2]=e;J[a+8>>2]=c}function B0a(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;d=fc-16|0;fc=d;a:{b:{e=Yc(b);if(e>>>0<2147483632){c:{if(e>>>0<=10){H[d+15|0]=e;c=d+4|0;break c}g=(e|15)+1|0;c=vc(g);J[d+12>>2]=g|-2147483648;J[d+4>>2]=c;J[d+8>>2]=e}k=xc(c,b,e)+e|0,l=0,H[k|0]=l;b=K[d+15|0];h=b<<24>>24;e=(h|0)<0;f=e?J[d+8>>2]:b;if(f>>>0>=1073741808){J[699344]=0;$(2959,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;break a}i=J[d+4>>2];d:{e:{if(f>>>0>=2){b=f|3;if(b>>>0>=1073741823){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}J[699344]= +0;c=b+1|0;b=_(4,c<<2)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;J[a>>2]=b;J[a+4>>2]=f;J[a+8>>2]=c|-2147483648;a=b;break e}H[a+11|0]=f;if(!f)break d}g=e?i:d+4|0;j=f-1|0;e=f&7;f:{if(!e){c=g;break f}b=0;c=g;while(1){J[a>>2]=H[c|0];a=a+4|0;c=c+1|0;b=b+1|0;if((e|0)!=(b|0))continue;break}}if(j>>>0<7)break d;b=f+g|0;while(1){J[a>>2]=H[c|0];J[a+4>>2]=H[c+1|0];J[a+8>>2]=H[c+2|0];J[a+12>>2]=H[c+3|0];J[a+16>>2]=H[c+4|0];J[a+20>>2]=H[c+5|0];J[a+24>>2]=H[c+6|0];J[a+28>>2]=H[c+7|0];a=a+32|0;c=c+8|0;if((b|0)!= +(c|0))continue;break}}J[a>>2]=0;if((h|0)<0)uc(i);fc=d+16|0;return}_d(d+4|0);B()}a=Z()|0;if(H[d+15|0]<0)uc(J[d+4>>2]);ba(a|0);B()}B()}function mla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=Q(0),j=0,k=Q(0),l=0,m=0,n=Q(0),o=0,p=0,q=0;if((c|0)>0){j=J[a+12>>2];while(1){n=Q(0);a=J[j>>2];e=a>>>14&1023;a:{if(!e){k=Q(0);i=Q(0);break a}k=Q(0);d=Np((+(e|0)+.5)*.010830424696249145+-8.317766166719343);i=Q(0);if(d<=0)break a;b:{c:{d:{l=a&16383;if(l>>>0<=16288){m=163;a=0;while(1){e=a+m>>1;o=l-I[(e<<3)+ +92438>>1]|0;e:{if((o|0)>0){a=e;break e}if((o|0)>=0)break d;m=e}if((m-a|0)>1)continue;break}e=a;h=+(l-I[(e<<3)+92438>>1]|0)+.5;break c}f=.210526316;h=.473684211;break b}h=.5}f=h*.0035000001080334187+ +N[(e<<3)+92432>>2];h=(+(e|0)+.5)*.0035000001080334187+.016939999535679817}g=f*9;f=1/(f*6+h*-16+12);g=g*f;f=h*4*f;k=Q(d*(g/f));n=Q(d*((1-g-f)/f));i=Q(d)}d=+k;f=+i;p=d*.061+f*-.224;h=+n;q=h*1.163;g=h*-.414+(d*2.69+f*-1.276);if(g<=0)a=0;else{e=g>=1;g=Y(g)*256;f:{if(R(g)<2147483648){a=~~g;break f}a=-2147483648}a= +e?-1:a}H[b|0]=a;d=h*.044+(d*-1.022+f*1.978);if(d<=0)a=0;else{e=d>=1;d=Y(d)*256;g:{if(R(d)<2147483648){a=~~d;break g}a=-2147483648}a=e?-1:a}H[b+1|0]=a;j=j+4|0;d=q+p;if(d<=0)a=0;else{e=d>=1;d=Y(d)*256;h:{if(R(d)<2147483648){a=~~d;break h}a=-2147483648}a=e?-1:a}H[b+2|0]=a;b=b+3|0;a=(c|0)>1;c=c-1|0;if(a)continue;break}}}function sta(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+12>>2];if(d){f=J[d+20>>2];if((f|0)>0){g=J[d>>2];while(1){j=g+(b<<4)|0;c=0;while(1){d=j+(c>>>2&1073741820)|0; +h=J[d>>2];if(h)e=J[h+((c&14)<<2)>>2];else e=k;e=((e|0)!=0)+i|0;d=J[d>>2];if(d)d=J[(d+((c&14)<<2)|0)+4>>2];else d=0;i=e+((d|0)!=0)|0;c=c+2|0;if((c|0)!=64)continue;break}b=b+1|0;if((f|0)!=(b|0))continue;break}}d=f<<6}else d=0;c=J[a+16>>2];if(c){g=J[c+20>>2];a:{if((g|0)<=0){b=0;break a}j=J[c>>2];f=0;b=0;while(1){h=j+(f<<4)|0;c=0;while(1){l=b;b=h+(c>>>2&1073741820)|0;e=J[b>>2];if(e)e=J[((c&14)<<2)+e>>2];else e=k;e=l+((e|0)!=0)|0;b=J[b>>2];if(b)b=J[(b+((c&14)<<2)|0)+4>>2];else b=0;b=e+((b|0)!=0)|0;c=c+ +2|0;if((c|0)!=64)continue;break}f=f+1|0;if((g|0)!=(f|0))continue;break}}i=b+i|0;d=(g<<6)+d|0}a=J[a+20>>2];if(a){g=J[a+20>>2];b:{if((g|0)<=0){b=0;break b}j=J[a>>2];f=0;b=0;while(1){h=j+(f<<4)|0;c=0;while(1){e=b;a=h+(c>>>2&1073741820)|0;b=J[a>>2];if(b)b=J[b+((c&14)<<2)>>2];else b=k;b=e+((b|0)!=0)|0;a=J[a>>2];if(a)a=J[(a+((c&14)<<2)|0)+4>>2];else a=0;b=b+((a|0)!=0)|0;c=c+2|0;if((c|0)!=64)continue;break}f=f+1|0;if((g|0)!=(f|0))continue;break}}d=(g<<6)+d|0;i=b+i|0}return(P(i,100)|0)/((d>>>0<=1?1:d)|0)| +0}function a8a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{d=J[a+4>>2];h=J[a>>2];f=(d-h|0)/72|0;c=f+1|0;if(c>>>0<59652324){g=(J[a+8>>2]-h|0)/72|0;e=g<<1;c=g>>>0>=29826161?59652323:c>>>0>>0?e:c;if(c>>>0>=59652324)break a;e=P(f,72);f=P(c,72);g=vc(f);c=e+g|0;O[c>>3]=O[b>>3];O[c+8>>3]=O[b+8>>3];O[c+16>>3]=O[b+16>>3];O[c+24>>3]=O[b+24>>3];O[c+32>>3]=O[b+32>>3];O[c+40>>3]=O[b+40>>3];e=J[b+52>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=e;e=J[b+60>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=e;J[c+64>>2]=J[b+64>> +2];J[c+68>>2]=J[b+68>>2];J[b+64>>2]=0;J[b+68>>2]=0;e=c+72|0;if((d|0)!=(h|0))while(1){c=c-72|0;d=d-72|0;O[c>>3]=O[d>>3];O[c+8>>3]=O[d+8>>3];O[c+16>>3]=O[d+16>>3];O[c+24>>3]=O[d+24>>3];O[c+32>>3]=O[d+32>>3];O[c+40>>3]=O[d+40>>3];b=J[d+52>>2];J[c+48>>2]=J[d+48>>2];J[c+52>>2]=b;b=J[d+60>>2];J[c+56>>2]=J[d+56>>2];J[c+60>>2]=b;J[c- -64>>2]=J[d- -64>>2];b=J[d+68>>2];J[c+68>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;if((d|0)!=(h|0))continue;break}J[a+8>>2]=f+g;b=J[a>>2];J[a>>2]=c;d=J[a+4>>2];J[a+4>>2]=e;if((b|0)!= +(d|0))while(1){d=d-72|0;a=J[d+68>>2];b:{if(!a)break b;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break b;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(d|0))continue;break}if(b)uc(b);return}Fg(a);B()}Pd();B()}function Oyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+2248>>2]+88>>2];d=J[b+1168>>2];c=(J[b+1176>>2]+P(d,J[a+572>>2])|0)+P(d,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;e=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((e|0)<=0)break a;e=0;while(1){c=K[b| +0]|K[b+1|0]<<8;f=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=f+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;c=b+2|0;f=K[c|0]|K[c+1|0]<<8;g=(f<<8|f>>>8)&65535;f=K[d+2|0]|K[d+3|0]<<8;f=g+((f<<8|f>>>8)&65535)&65535;f=f<<8|f>>>8;H[c|0]=f;H[c+1|0]=f>>>8;d=d+4|0;b=(J[a+584>>2]<<2)+b|0;c=J[a+588>>2];e=e+1|0;if((c|0)>(e|0))continue;break}break b}if((e|0)<=0)break a;e=0;while(1){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];H[b+2|0]=K[d+2|0];H[b+3|0]=K[d+3|0];d=d+4|0;b=(J[a+584>>2]<<2)+b|0;c=J[a+588>>2]; +e=e+1|0;if((c|0)>(e|0))continue;break}}if((c|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;c=0;while(1){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);H[b|0]=e;H[b+1|0]=e>>>8;H[b+2|0]=e>>>16;H[b+3|0]=e>>>24;d=d+4|0;b=(J[a+584>>2]<<2)+b|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Bbb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+480>>2];c=J[d+24>>2];a:{b:{c:{if(!J[a+88>>2]){if(b)break b;b=324; +break c}J[a+88>>2]=2;if(b)break b;b=325}J[d+8>>2]=326;J[d+4>>2]=b;b=1;e=J[a+132>>2];d:{if((e|0)<=0)e=58;else{if(e>>>0<257)break d;b=256;e=59}f=J[a>>2];J[f+24>>2]=b;J[f+20>>2]=e;kc[J[J[a>>2]>>2]](a)}if(J[a+88>>2]!=2)break a;b=P(J[a+112>>2],6)+12|0;e=J[d+32>>2];if(!e){e=kc[J[J[a+4>>2]+4>>2]](a,1,b)|0;J[d+32>>2]=e}Re(e,b);if(!J[d+40>>2])s5(a);J[d+36>>2]=0;break a}J[d+28>>2]=1;J[d+8>>2]=327;J[d+4>>2]=328}if(J[d+28>>2]){Re(J[c>>2],4096);Re(J[c+4>>2],4096);Re(J[c+8>>2],4096);Re(J[c+12>>2],4096);Re(J[c+ +16>>2],4096);Re(J[c+20>>2],4096);Re(J[c+24>>2],4096);Re(J[c+28>>2],4096);Re(J[c+32>>2],4096);Re(J[c+36>>2],4096);Re(J[c+40>>2],4096);Re(J[c+44>>2],4096);Re(J[c+48>>2],4096);Re(J[c+52>>2],4096);Re(J[c+56>>2],4096);Re(J[c+60>>2],4096);Re(J[c+64>>2],4096);Re(J[c+68>>2],4096);Re(J[c+72>>2],4096);Re(J[c+76>>2],4096);Re(J[c+80>>2],4096);Re(J[c+84>>2],4096);Re(J[c+88>>2],4096);Re(J[c+92>>2],4096);Re(J[c+96>>2],4096);Re(J[c+100>>2],4096);Re(J[c+104>>2],4096);Re(J[c+108>>2],4096);Re(J[c+112>>2],4096);Re(J[c+ +116>>2],4096);Re(J[c+120>>2],4096);Re(J[c+124>>2],4096);J[d+28>>2]=0}}function s6(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a+736>>2];if(d){f=J[J[d+12>>2]>>2];c=J[a+100>>2];b=J[d+4>>2];if(b)kc[J[c+8>>2]](c,b);J[d+4>>2]=0;b=J[d+8>>2];if(b)kc[J[c+8>>2]](c,b);J[d+8>>2]=0;b=J[d+20>>2];if(b)kc[J[c+8>>2]](c,b);J[d+20>>2]=0;b=J[d+12>>2];if(b)kc[J[c+8>>2]](c,b);J[d+12>>2]=0;b=J[d+28>>2];if(b){if(f)while(1){g=e<<3;b=J[(g+b|0)+4>>2];if(b)kc[J[c+8>>2]](c,b);b=J[d+28>>2];J[(g+b|0)+4>>2]=0;e=e+1|0;if((e|0)!=(f| +0))continue;break}if(b)kc[J[c+8>>2]](c,b);J[d+28>>2]=0}b=J[d+40>>2];if(b){QM(J[a+100>>2],b);b=J[J[d+40>>2]+28>>2];if(b)kc[J[c+8>>2]](c,b);b=J[d+40>>2];J[b+28>>2]=0;b=J[b+24>>2];if(b)kc[J[c+8>>2]](c,b);b=J[d+40>>2];J[b+24>>2]=0;if(b)kc[J[c+8>>2]](c,b);J[d+40>>2]=0}b=J[d+52>>2];if(b){QM(J[a+100>>2],b);b=J[J[d+52>>2]+28>>2];if(b)kc[J[c+8>>2]](c,b);b=J[d+52>>2];J[b+28>>2]=0;b=J[b+24>>2];if(b)kc[J[c+8>>2]](c,b);b=J[d+52>>2];J[b+24>>2]=0;if(b)kc[J[c+8>>2]](c,b);J[d+52>>2]=0}b=J[d+56>>2];if(b){QM(J[a+100>> +2],b+4|0);a=J[J[d+56>>2]+24>>2];if(a)kc[J[c+8>>2]](c,a);a=J[d+56>>2];J[a+24>>2]=0;if(a)kc[J[c+8>>2]](c,a);J[d+56>>2]=0}a=J[d+64>>2];if(a)kc[J[c+8>>2]](c,a);J[d+64>>2]=0;a=J[d+72>>2];if(a)kc[J[c+8>>2]](c,a);J[d+72>>2]=0;if(d)kc[J[c+8>>2]](c,d)}}function jz(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0;m=fc-16|0;fc=m;J[m+12>>2]=a;a:{b:{if((a|0)==(f|0)){if(!K[b|0])break b;a=0;H[b|0]=0;b=J[e>>2];J[e>>2]=b+1;H[b|0]=46;if(K[h+11|0]>>>7|0)b=J[h+ +4>>2];else b=K[h+11|0]&127;if(!b)break a;b=J[j>>2];if((b-i|0)>159)break a;c=J[k>>2];J[j>>2]=b+4;J[b>>2]=c;break a}if(K[h+11|0]>>>7|0)f=J[h+4>>2];else f=K[h+11|0]&127;if(!(!f|(a|0)!=(g|0))){if(!K[b|0])break b;a=0;b=J[j>>2];if((b-i|0)>159)break a;a=J[k>>2];J[j>>2]=b+4;J[b>>2]=a;a=0;J[k>>2]=0;break a}a=-1;l=ZF(l,l+128|0,m+12|0)-l|0;g=l>>2;if((g|0)>31)break a;f=H[g+2632752|0];c:{d:{a=l&-5;if((a|0)!=88){if((a|0)!=96)break d;b=J[e>>2];if((b|0)!=(d|0)){a=-1;d=H[b-1|0];c=H[c|0];if(((d-97>>>0<26?d&95:d)|0)!= +((c-97>>>0<26?c&95:c)|0))break a}J[e>>2]=b+1;H[b|0]=f;a=0;break a}H[c|0]=80;break c}a=f-97>>>0<26?f&95:f;if((a|0)!=H[c|0])break c;H[c|0]=a-65>>>0<26?a|32:a;if(!K[b|0])break c;H[b|0]=0;if(K[h+11|0]>>>7|0)a=J[h+4>>2];else a=K[h+11|0]&127;if(!a)break c;a=J[j>>2];if((a-i|0)>159)break c;b=J[k>>2];J[j>>2]=a+4;J[a>>2]=b}a=J[e>>2];J[e>>2]=a+1;H[a|0]=f;a=0;if((g|0)>21)break a;J[k>>2]=J[k>>2]+1;break a}a=-1}fc=m+16|0;return a|0}function de(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=K[b|0];if(f){d=f;e= +b;while(1){g=P(g,17)+(d&255)|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}}a:{e=J[a+12>>2];d=J[J[a+8>>2]+((g>>>0)%((e<<1)-1>>>0)<<2)>>2];if(d)while(1){if(!Ic(b,J[d>>2]))break a;d=J[d+24>>2];if(d)continue;break}if((e|0)==J[a+16>>2]){d=J[a+12>>2]<<1;J[a+12>>2]=d;k=a,l=Wd(J[a+4>>2],d,32),J[k+4>>2]=l;e=Wd(J[a+8>>2],(J[a+12>>2]<<1)-1|0,4);J[a+8>>2]=e;d=0;Ac(e,0,(J[a+12>>2]<<3)-4|0);i=J[a+16>>2];if((i|0)>0){j=(J[a+12>>2]<<1)-1|0;while(1){e=0;h=J[a+4>>2]+(d<<5)|0;f=J[h>>2];g=K[f|0];if(g)while(1){e=P(e,17)+g| +0;g=K[f+1|0];f=f+1|0;if(g)continue;break}e=J[a+8>>2]+((e>>>0)%(j>>>0)<<2)|0;J[h+24>>2]=J[e>>2];J[e>>2]=h;d=d+1|0;if((i|0)!=(d|0))continue;break}}f=K[b|0]}e=0;if(f){d=b;while(1){e=P(e,17)+f|0;f=K[d+1|0];d=d+1|0;if(f)continue;break}}f=J[a+12>>2];d=J[a+4>>2]+(J[a+16>>2]<<5)|0;J[d>>2]=b;b=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=b;b=J[c+12>>2];J[d+16>>2]=J[c+8>>2];J[d+20>>2]=b;b=J[a+16>>2];c=J[a+4>>2]+(b<<5)|0;d=J[a+8>>2]+((e>>>0)%((f<<1)-1>>>0)<<2)|0;J[c+24>>2]=J[d>>2];J[d>>2]=c;J[a+16>>2]=b+1;return}yc(d+ +8|0);a=J[c+12>>2];J[d+16>>2]=J[c+8>>2];J[d+20>>2]=a;a=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=a;Mc(b)}function AXa(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;d=J[a+420>>2];a:{b:{c:{if(!b){J[d+8>>2]=476;if(J[a+264>>2])break c;J[d+4>>2]=477;break a}J[d+8>>2]=478;if(!J[a+264>>2])break b}J[d+108>>2]=b;J[d+120>>2]=a;c=J[a+360>>2];d:{if(!J[a+368>>2]){if(!c){J[d+4>>2]=479;break d}J[d+4>>2]=480;break d}if(!c){J[d+4>>2]=481;break d}J[d+4>>2]=482;if(J[d+136>>2])break d;i=d,j=kc[J[J[a+4>>2]>>2]](a, +1,1E3)|0,J[i+136>>2]=j}c=J[J[a+292>>2]+24>>2];J[d+128>>2]=0;J[d+132>>2]=0;J[d+124>>2]=c;break a}J[d+4>>2]=483}if(J[a+288>>2]>0)while(1){h=g<<2;e=J[(h+a|0)+292>>2];if(!(J[a+360>>2]|J[a+368>>2])){c=J[e+20>>2];e:{if(b){if(c>>>0>=4){f=J[a>>2];J[f+24>>2]=c;J[f+20>>2]=52;kc[J[J[a>>2]>>2]](a)}f=(c<<2)+d|0;c=J[f+76>>2];if(!c){c=kc[J[J[a+4>>2]>>2]](a,1,1028)|0;J[f+76>>2]=c}Ac(c,0,1028);break e}z0(a,1,c,((c<<2)+d|0)+44|0)}J[(d+h|0)+20>>2]=0}f:{if(!J[a+364>>2])break f;c=J[e+24>>2];if(b){if(c>>>0>=4){e=J[a>> +2];J[e+24>>2]=c;J[e+20>>2]=52;kc[J[J[a>>2]>>2]](a)}e=(c<<2)+d|0;c=J[e+92>>2];if(!c){c=kc[J[J[a+4>>2]>>2]](a,1,1028)|0;J[e+92>>2]=c}Ac(c,0,1028);break f}z0(a,0,c,((c<<2)+d|0)+60|0)}g=g+1|0;if((g|0)>2])continue;break}J[d+12>>2]=0;J[d+16>>2]=0;a=J[a+236>>2];J[d+40>>2]=0;J[d+36>>2]=a}function wV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-32|0;fc=e;J[a>>2]=0;J[a+4>>2]=J[685894];b=J[b>>2];b=J[(b?b+12|0:2743576)>>2];J[699344]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+20>>2]=0;J[e+16>>2]=2426580;ma(5634, +e+12|0,e+16|0,b|0,c|0,((d|0)<0?-1:d)|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){J[e+16>>2]=2426484;b=J[e+28>>2];if(b){H[b|0]=0;uc(J[e+28>>2])}J[e+28>>2]=0;c=e+16|0;nd(c);b=J[e+12>>2];d:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;d=Z()|0;break c}J[e+16>>2]=0}J[699344]=0;aa(5153,a|0,e+16|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[e+16>>2];J[e+16>>2]=0;if(!b)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d| +0)!=1){if(c)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}d=Z()|0;zc(e+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[e+12>>2];J[e+12>>2]=0;f:{if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=e+32|0;return a|0}d=Z()|0;rh(e+16|0);break b}zc(e+12|0)}wc(a);ba(d|0);B()}ea(0)|0;Bc();B()}function GL(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=J[a+4>>2];k=c+37|0;j=J[a+12>>2];e=J[a+8>>2];a:{b:{d=J[c+44>>2];h=J[a+16>>2];l=J[a+20>>2];if(!(!d|h>>>0>=l>>>0)){J[c+44>>2]=0;f=H[c+36|0];H[c+36|0]=0;g=d-1|0;break b}c=0;break a}c=1}while(1){c:{d:{if(!c){if(e>>>0>=j>>>0)break d;g=0;f=0;if(h>>>0>=l>>>0)break d;c=1;continue}e:{if(f>>>0>3){c=f;break e}f:{g:{if(e>>>0>=j>>>0)break g;c=K[e|0];H[f+k|0]=c;d=e+1|0;g=c<<(f<<3)|g;c=4;i=f+1|0;if((i|0)==4){e=d;break e}if(d>>>0>=j>>>0){f=i;e=d;break g}c=K[e+1|0];H[i+k|0]= +c;d=e+2|0;g=c<<(i<<3)|g;c=4;i=f+2|0;if((i|0)==4){e=d;break e}if(d>>>0>=j>>>0){f=i;e=d;break g}c=K[e+2|0];H[i+k|0]=c;d=e+3|0;g=c<<(i<<3)|g;c=4;f=f+3|0;if((f|0)==4){e=d;break e}if(d>>>0>>0)break f;e=d}c=J[a+4>>2];H[c+36|0]=f;J[c+44>>2]=g+1;break d}d=K[e+3|0];H[f+k|0]=d;e=e+4|0;g=d<<(f<<3)|g}if(!((g&-2048)==55296|g>>>0>1114111)){if(g>>>0<=65535){I[h>>1]=g;h=h+2|0;break c}I[h>>1]=(g>>>10|0)-10304;d=g&1023|-9216;c=h+2|0;if(c>>>0>>0){I[h+2>>1]=d;h=h+4|0;break c}f=J[a+4>>2];H[f+65|0]=1;I[f+116>>1]= +d;J[b>>2]=15;h=c;break d}H[J[a+4>>2]+36|0]=c;J[b>>2]=12}if(!(h>>>0>>0|e>>>0>=j>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=e;J[a+16>>2]=h;return}c=0;continue}}function sJa(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;a:{b:{c:{if(b){if(!a)break c;if(!d)break b;d:{if(!Xp(J[b+8>>2],4821,d))break d;f=J[b+4>>2];if(!f)break a;g=J[f+8>>2];e:{f:{g:{h:{i:{e=J[f>>2];if(e){h=1;k=e&1;if((e|0)!=1)break i;e=0;break h}J[f>>2]=0;break g}e=e&-2;while(1){i=0;j:{if(!h)break j;i=0;if(!(kc[J[g>>2]](b,a, +d)|0))break j;i=(kc[J[g+4>>2]](b,a,d)|0)!=0}h=i;g=g+8|0;j=j+2|0;if((e|0)!=(j|0))continue;break}e=!h}if(k){if(e)break f;h=(kc[J[g>>2]](b,a,d)|0)!=0}J[f>>2]=0;if(!h)break d}f=J[b+8>>2];if(!f)break a;g=J[f+8>>2];k:{l:{m:{e=J[f>>2];if(e){h=1;k=e&1;if((e|0)!=1)break m;e=0;break l}J[f>>2]=0;break k}e=e&-2;j=0;while(1){i=0;n:{if(!h)break n;i=0;if(!(kc[J[g>>2]](b,a,d)|0))break n;i=(kc[J[g+4>>2]](b,a,d)|0)!=0}h=i;g=g+8|0;j=j+2|0;if((e|0)!=(j|0))continue;break}e=!h}if(k){if(e)break e;h=(kc[J[g>>2]](b,a,d)| +0)!=0}J[f>>2]=0;if(!h)break d}if(!K[b+132|0]){Nc(d,1,2356031,0);return 0}if(!K[b+133|0]){Nc(d,1,2356259,0);return 0}return gZ(a,J[b>>2],c,d)|0}J[f>>2]=0;break d}J[f>>2]=0}return 0}fa(2354499,2354795,2842,2371274);B()}fa(2355746,2354795,2843,2371274);B()}fa(2355439,2354795,2844,2371274);B()}fa(2363606,2354795,2439,2371612);B()}function Xfa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0;k=fc-16|0;fc=k;i=c;while(1){a:{if((d|0)==(i|0)){i=d;break a}if(!J[i>> +2])break a;i=i+4|0;continue}break}J[h>>2]=f;J[e>>2]=c;b:{while(1){c:{d:{if(!((c|0)==(d|0)|(f|0)==(g|0))){j=J[b+4>>2];J[k+8>>2]=J[b>>2];J[k+12>>2]=j;m=1;l=fc-16|0;fc=l;J[l+12>>2]=J[a+8>>2];n=rm(l+8|0,l+12|0);J[699344]=0;j=na(6971,f|0,e|0,i-c>>2,g-f|0,b|0)|0;o=J[699344];J[699344]=0;e:{if((o|0)!=1){$h(n);fc=l+16|0;break e}a=Z()|0;$h(n);ba(a|0);B()}f:{g:{h:switch(j+1|0){case 0:J[h>>2]=f;while(1){if(J[e>>2]==(c|0))break g;b=VF(f,J[c>>2],k+8|0,J[a+8>>2]);if((b|0)==-1)break g;f=b+J[h>>2]|0;J[h>>2]=f;c=c+ +4|0;continue}case 1:break b;default:break h}f=j+J[h>>2]|0;J[h>>2]=f;if((f|0)==(g|0))break f;if((d|0)==(i|0)){c=J[e>>2];i=d;continue}c=k+4|0;i=VF(c,0,b,J[a+8>>2]);if((i|0)==-1)break c;if(g-J[h>>2]>>>0>>0)break b;while(1){if(i){f=K[c|0];j=J[h>>2];J[h>>2]=j+1;H[j|0]=f;i=i-1|0;c=c+1|0;continue}break}c=J[e>>2]+4|0;J[e>>2]=c;i=c;while(1){if((d|0)==(i|0)){i=d;break d}if(!J[i>>2])break d;i=i+4|0;continue}}J[e>>2]=c;break c}c=J[e>>2]}m=(c|0)!=(d|0);break b}f=J[h>>2];continue}break}m=2}fc=k+16|0;return m| +0}function lz(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;var m=0;m=fc-16|0;fc=m;H[m+15|0]=a;a:{b:{if((a|0)==(f|0)){if(!K[b|0])break b;a=0;H[b|0]=0;b=J[e>>2];J[e>>2]=b+1;H[b|0]=46;if(K[h+11|0]>>>7|0)b=J[h+4>>2];else b=K[h+11|0]&127;if(!b)break a;b=J[j>>2];if((b-i|0)>159)break a;c=J[k>>2];J[j>>2]=b+4;J[b>>2]=c;break a}if(K[h+11|0]>>>7|0)f=J[h+4>>2];else f=K[h+11|0]&127;if(!(!f|(a|0)!=(g|0))){if(!K[b|0])break b;a=0;b=J[j>>2];if((b-i|0)>159)break a; +a=J[k>>2];J[j>>2]=b+4;J[b>>2]=a;a=0;J[k>>2]=0;break a}a=-1;g=aG(l,l+32|0,m+15|0)-l|0;if((g|0)>31)break a;f=H[g+2632752|0];c:{d:switch((g&-2)-22|0){case 2:b=J[e>>2];if((b|0)!=(d|0)){d=H[b-1|0];c=H[c|0];if(((d-97>>>0<26?d&95:d)|0)!=((c-97>>>0<26?c&95:c)|0))break a}J[e>>2]=b+1;H[b|0]=f;a=0;break a;case 0:H[c|0]=80;break c;default:break d}a=f-97>>>0<26?f&95:f;if((a|0)!=H[c|0])break c;H[c|0]=a-65>>>0<26?a|32:a;if(!K[b|0])break c;H[b|0]=0;if(K[h+11|0]>>>7|0)a=J[h+4>>2];else a=K[h+11|0]&127;if(!a)break c; +a=J[j>>2];if((a-i|0)>159)break c;b=J[k>>2];J[j>>2]=a+4;J[a>>2]=b}a=J[e>>2];J[e>>2]=a+1;H[a|0]=f;a=0;if((g|0)>21)break a;J[k>>2]=J[k>>2]+1;break a}a=-1}fc=m+16|0;return a|0}function Yda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;if(Mj(a,J[b+8>>2],e)){if(!(J[b+28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{b:{if(Mj(a,J[b>>2],e)){if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!=1)break a;J[b+32>>2]=1;return}J[b+32>>2]=d;if(J[b+44>>2]==4)break b;f=a+16|0;g=f+(J[a+12>>2]<<3)|0;d= +0;while(1){c:{d:{e:{f:{if(f>>>0>=g>>>0)break f;I[b+52>>1]=0;xF(f,b,c,c,1,e);if(K[b+54|0])break f;if(!K[b+53|0])break c;if(K[b+52|0]){if(J[b+24>>2]==1)break d;d=1;h=1;if(!(K[a+8|0]&2))break d;break c}d=1;if(H[a+8|0]&1)break c;a=3;break e}a=d?3:4}J[b+44>>2]=a;if(h)break a;break b}J[b+44>>2]=3;break a}f=f+8|0;continue}}g=J[a+12>>2];h=a+16|0;Yy(h,b,c,d,e);f=a+24|0;g=h+(g<<3)|0;if(f>>>0>=g>>>0)break a;a=J[a+8>>2];if(!(!(a&2)&J[b+36>>2]!=1)){while(1){if(K[b+54|0])break a;Yy(f,b,c,d,e);f=f+8|0;if(g>>>0> +f>>>0)continue;break}break a}if(!(a&1))while(1){if(K[b+54|0]|J[b+36>>2]==1)break a;Yy(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0)continue;break a}while(1){if(K[b+54|0]|J[b+36>>2]==1&J[b+24>>2]==1)break a;Yy(f,b,c,d,e);f=f+8|0;if(g>>>0>f>>>0)continue;break}break a}J[b+20>>2]=c;J[b+40>>2]=J[b+40>>2]+1;if(J[b+36>>2]!=1|J[b+24>>2]!=2)break a;H[b+54|0]=1}}function M_a(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;a:{if(!a)break a;e=J[a+8>>2];b:{if(K[b|0]==35){g=fc-16|0;fc=g;c:{if(!b)break c;f=b;d=kc[J[663195]](60)| +0;if(!d){J[g>>2]=14767;Hc(0,0,0,0,0,2,2,3,14767,0,0,0,32879,g);break c}J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=5;J[d+32>>2]=e;d:{e:{f:{c=K[f|0];if(c){if((c|0)==38)break f;c=b;while(1){e=K[c+1|0];b=c+1|0;c=b;if(e)continue;break}}c=0;b=b-f|0;if((b|0)<0)break d;e=kc[J[663198]](b+1|0)|0;if(e)break e;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}e= +f+1|0;b=0;g:{if(!K[f+1|0])break g;c=e;while(1){h=b;b=b+1|0;i=K[c+1|0];c=c+1|0;if(i)continue;break}if(K[b+f|0]!=59)break g;c=0;b=kc[J[663198]](b)|0;if(!b){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}c=xc(b,e,h);H[h+c|0]=0;break d}c=kc[J[663198]](b+1|0)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}j=xc(c,e,b)+b|0,k=0,H[j|0]=k;break d}c=xc(e,f,b);H[b+c|0]=0}J[d+8>>2]=c;h:{if(!J[693393])break h;b=J[693390];if(!b)break h;kc[b|0](d)}c=d}fc=g+16|0;break b}c=_K(e,b)}if(dh(J[a+52>>2],c))break a;Fl(c)}} +function wZ(a,b){var c=0,d=0;a:{b:switch(K[a+8|0]){case 0:c=J[a+4>>2];if(!c)break a;if(c>>>0>=4){d=c&-4;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+1|0]=K[b+1|0]^-1;H[b+2|0]=K[b+2|0]^-1;H[b+3|0]=K[b+3|0]^-1;b=b+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1;b=b+1|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 4:break b;default:break a}c:switch(K[a+9|0]-8|0){case 0:a=J[a+4>>2];if(!a)break a;d=(a-1>>>1|0)+1|0;c=d&3;if(a>>>0>=7){d=d&-4;a=0;while(1){H[b|0]= +K[b|0]^-1;H[b+2|0]=K[b+2|0]^-1;H[b+4|0]=K[b+4|0]^-1;H[b+6|0]=K[b+6|0]^-1;b=b+8|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1;b=b+2|0;a=a+1|0;if((c|0)!=(a|0))continue;break}break a;case 8:break c;default:break a}a=J[a+4>>2];if(!a)break a;d=(a-1>>>2|0)+1|0;c=d&3;if(a>>>0>=13){d=d&2147483644;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+1|0]=K[b+1|0]^-1;H[b+4|0]=K[b+4|0]^-1;H[b+5|0]=K[b+5|0]^-1;H[b+8|0]=K[b+8|0]^-1;H[b+9|0]=K[b+9|0]^-1;H[b+12|0]=K[b+12|0]^-1;H[b+13|0]=K[b+ +13|0]^-1;b=b+16|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}if(!c)break a;a=0;while(1){H[b|0]=K[b|0]^-1;H[b+1|0]=K[b+1|0]^-1;b=b+4|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}}function BN(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return 35;d=J[a+96>>2];if(!d)return 6;h=J[d+8>>2];a:{b:{i=J[d+12>>2];c=J[i+44>>2];c:{if((c|0)<=0){g=6;f=h;if(!c)break c;break b}e=kc[J[h+4>>2]](h,c)|0;if(!e){g=64;break b}Ac(e,0,c);d=J[a+96>>2];f=J[d+8>>2];i=J[d+12>>2]}J[e+4>>2]=a;J[e>>2]=J[d+4>>2];g=64;d:{c=kc[J[f+4>>2]](f, +44)|0;e:{if(!c)break e;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+40|0]=0;H[c+41|0]=0;H[c+42|0]=0;H[c+43|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+36|0]=0;H[c+37|0]=0;H[c+38|0]=0;H[c+39|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]= +0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;J[e+156>>2]=c;if(!(K[J[d>>2]+1|0]&2)){d=kc[J[f+4>>2]](f,96)|0;if(!d)break e;Ac(d+4|0,0,92);J[d>>2]=f;J[c>>2]=d}f=J[i+64>>2];if(!f)break d;g=kc[f|0](e)|0;if(!g)break d}fy(e);kc[J[h+8>>2]](h,e);return g}J[e+8>>2]=J[a+84>>2];J[a+84>>2]=e;g=0;if(!b)break a;J[b>>2]=e;break a}if(!b)break a;J[b>>2]=0;return g}return g}function a8(a,b){var c=0,d=0,e=0,f=0,g=0;if(!a)return 35;c=6;a:{if(!b)break a;if(!J[a+96>>2])return 34;J[b>>2]=0;e=J[a+100>>2];g=J[J[a+96>>2]+12>>2];d= +J[g+40>>2];b:{if((d|0)<=0){if(!d)break b;break a}f=kc[J[e+4>>2]](e,d)|0;if(!f)return 64;Ac(f,0,d)}c:{d:{d=kc[J[e+4>>2]](e,12)|0;if(d){H[d|0]=0;H[d+1|0]=0;H[d+2|0]=0;H[d+3|0]=0;H[d+4|0]=0;H[d+5|0]=0;H[d+6|0]=0;H[d+7|0]=0;H[d+8|0]=0;H[d+9|0]=0;H[d+10|0]=0;H[d+11|0]=0;J[f>>2]=a;c=kc[J[e+4>>2]](e,36)|0;if(!c){c=64;break d}H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;H[c+4|0]=0;H[c+5|0]=0;H[c+6|0]=0;H[c+7|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;H[c+35|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0; +H[c+28|0]=0;H[c+29|0]=0;H[c+30|0]=0;H[c+31|0]=0;H[c+16|0]=0;H[c+17|0]=0;H[c+18|0]=0;H[c+19|0]=0;H[c+20|0]=0;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+8|0]=0;H[c+9|0]=0;H[c+10|0]=0;H[c+11|0]=0;H[c+12|0]=0;H[c+13|0]=0;H[c+14|0]=0;H[c+15|0]=0;J[f+40>>2]=c;c=J[g+56>>2];if(c){c=kc[c|0](f)|0;if(c)break d}J[b>>2]=f;J[d+8>>2]=f;b=J[a+112>>2];J[d>>2]=b;J[d+4>>2]=0;J[(b?b+4|0:a+108|0)>>2]=d;J[a+112>>2]=d;return 0}c=64;if(!f)break a;break c}kc[J[e+8>>2]](e,d)}a=J[f+40>>2];if(a)kc[J[e+8>>2]](e,a);J[f+40>>2]=0; +kc[J[e+8>>2]](e,f)}return c}function TYa(a,b,c,d,e,f){a=a|0;b=b|0;c=Q(c);d=Q(d);e=Q(e);f=Q(f);var g=0,h=0,i=0,j=0,k=0,l=0;g=fc-32|0;fc=g;N[a+28>>2]=f;N[a+24>>2]=e;N[a+20>>2]=d;N[a+16>>2]=c;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;J[a+12>>2]=0;J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;k=a+4|0;a:{if(b){if(b>>>0>=1073741824){J[699344]=0;$(2268,g+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}J[699344]=0;h=b<<2;i=_(4,h|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break a;J[g+8>>2]=i;i=i+h|0;J[g+16>>2]=i;J[g+12>> +2]=i}J[699344]=0;j=ga(2354,g+20|0,b|0,g+8|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){i=J[k>>2];if(i){b=i;h=J[a+8>>2];if((b|0)!=(h|0)){while(1){b=h-12|0;l=J[b>>2];if(l){J[h-8>>2]=l;uc(l)}h=b;if((b|0)!=(i|0))continue;break}b=J[k>>2]}J[a+8>>2]=i;uc(b);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}J[a+4>>2]=J[j>>2];J[a+8>>2]=J[j+4>>2];J[a+12>>2]=J[j+8>>2];i=0;J[j+8>>2]=0;J[j>>2]=0;J[j+4>>2]=0;b=J[g+8>>2];if(b){J[g+12>>2]=b;uc(b)}if(J[a>>2])while(1){b=0;j=i<<2;while(1){h=j+J[J[a+4>>2]+P(b,12)>>2]|0;H[h|0]=255;H[h+ +1|0]=0;H[h+2|0]=0;H[h+3|0]=255;b=b+1|0;h=J[a>>2];if(b>>>0>>0)continue;break}i=i+1|0;if(h>>>0>i>>>0)continue;break}fc=g+32|0;return a|0}}b=Z()|0;a=J[g+8>>2];if(a){J[g+12>>2]=a;uc(a)}jj(k);ba(b|0);B()}function Pvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(e){o=e-2|0;q=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];f=a+4|0;g=g+4|0;a:{if(l>>>0>o>>>0)break a;i=l?(l|0)==(o|0)?d:b:c;m=!l&q;if(m){if(i>>> +0<2)break a;h=i-1|0;j=h&1;if((i|0)!=2){i=h&-2;h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a+2|0];H[g+7|0]=K[a+3|0];g=g+8|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!j)break a;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];H[g+3|0]=K[a+3|0];g=g+4|0;break a}j=i+1>>>1|0;if(i>>>0>=3){n=j>>>0<=2?2:j;k=1;r=i<<1;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a+2|0];p=K[a+7|0];h=K[a+3|0];if((p|0)!=(h|0))h=h+((i+(P(p- +h|0,k)<<1)|0)/(r|0)|0)|0;H[g+3|0]=h;g=g+4|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}if(i>>>0<=j>>>0)break a;k=m?0:f;m=i<<1;while(1){H[g|0]=K[k|0];H[g+1|0]=K[k+1|0];H[g+2|0]=K[k+2|0];h=K[a+3|0];n=K[k+3|0];if((h|0)!=(n|0))h=h+((i+(P(n-h|0,j)<<1)|0)/(m|0)|0)|0;H[g+3|0]=h;g=g+4|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function Skb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(M[b+160>>2]>>0)pe(b,8);g=K[a+15|0]|(K[a+13|0]<<16|K[a+12|0]<<24|K[a+ +14|0]<<8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!(c>>>0<16|c>>>0>J[b+160>>2]-a>>>0))if((c-16>>>0)/12>>>0>=g>>>0)break a;pe(b,8)}b:{if(!g)break b;f=K[a+24|0]|K[a+25|0]<<8|(K[a+26|0]<<16|K[a+27|0]<<24);c=K[a+20|0]|K[a+21|0]<<8|(K[a+22|0]<<16|K[a+23|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);if(c>>>0<(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0)pe(b,8);h=1;if(!(J[b+164>>2]<=0|M[b+ +172>>2]>(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0))pe(b,16);if((g|0)==1)break b;a=a+28|0;while(1){f=c;d=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if(c>>>0>>0)pe(b,8);if(f>>>0>=e>>>0)pe(b,8);if(!(J[b+164>>2]<=0|M[b+172>>2]>(d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0))pe(b,16);a=a+12|0;h=h+1|0;if((h| +0)!=(g|0))continue;break}}return 0}function F0a(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;d=fc-16|0;fc=d;a:{e=H[b+11|0]<0?J[b>>2]:b;b=bf(e);if(b>>>0<1073741808){b:{if(b>>>0<=1){H[d+15|0]=b;f=d+4|0;break b}c=b|3;if(c>>>0>=1073741823)break a;c=c+1|0;f=vc(c<<2);J[d+12>>2]=c|-2147483648;J[d+4>>2]=f;J[d+8>>2]=b}b=b<<2;k=xc(f,e,b)+b|0,l=0,J[k>>2]=l;b=K[d+15|0];h=b<<24>>24;e=(h|0)<0;c:{c=e?J[d+8>>2]:b;if(c>>>0>=2147483632){J[699344]=0;$(3030,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c; +B()}i=J[d+4>>2];d:{e:{if(c>>>0>=11){J[699344]=0;f=(c|15)+1|0;b=_(4,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=f|-2147483648;a=b;break e}H[a+11|0]=c;if(!c)break d}e=e?i:d+4|0;g=c-1&1073741823;j=c&7;f:{if(!j){b=e;break f}f=0;b=e;while(1){H[a|0]=J[b>>2];a=a+1|0;b=b+4|0;f=f+1|0;if((j|0)!=(f|0))continue;break}}if(g>>>0<7)break d;e=e+(c<<2)|0;while(1){H[a|0]=J[b>>2];H[a+1|0]=J[b+4>>2];H[a+2|0]=J[b+8>>2];H[a+3|0]=J[b+12>>2];H[a+4|0]=J[b+16>>2];H[a+5|0]=J[b+20>>2]; +H[a+6|0]=J[b+24>>2];H[a+7|0]=J[b+28>>2];a=a+8|0;b=b+32|0;if((e|0)!=(b|0))continue;break}}H[a|0]=0;if((h|0)<0)uc(i);fc=d+16|0;return}a=Z()|0;if(H[d+15|0]<0)uc(J[d+4>>2]);ba(a|0);B()}_d(d+4|0);B()}Pd();B()}function Hs(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=Dc(40);if(!d)return 0;J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;J[d+24>>2]=0;J[d+16>>2]=0;J[d+28>>2]=16384;H[d+36|0]=1;J[d+20>>2]=a;J[d+8>>2]=0;J[d+12>>2]=0;c=Dc(a<<2);J[d+24>>2]=c;a:{if(!c)break a;e=J[d+20>>2];b:{if((e|0)<=0)break b;c=0;if(e>>>0>=4){h= +e&-4;while(1){g=c<<2;J[g+J[d+24>>2]>>2]=0;J[J[d+24>>2]+(g|4)>>2]=0;J[J[d+24>>2]+(g|8)>>2]=0;J[J[d+24>>2]+(g|12)>>2]=0;c=c+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}e=e&3;if(!e)break b;while(1){J[J[d+24>>2]+(c<<2)>>2]=0;c=c+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}c:{if((a|0)<=0)break c;g=a&1;d:{if((a|0)==1){e=0;c=b;break d}h=a&-2;e=0;c=b;f=0;while(1){e=(((P(J[c+24>>2]+7|0,P(J[c+20>>2],J[c+16>>2]))|0)/8|0)+e|0)+((P(J[c+56>>2]+7|0,P(J[c+52>>2],J[c+48>>2]))|0)/8|0)|0;c=c- -64|0;f=f+2|0;if((h|0)!= +(f|0))continue;break}}if(g)e=((P(J[c+24>>2]+7|0,P(J[c+20>>2],J[c+16>>2]))|0)/8|0)+e|0;if((a|0)<=0)break c;f=e>>>0<536870912;e=0;while(1){c=FP(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2],J[b+16>>2],J[b+20>>2],J[b+24>>2],J[b+28>>2]!=0,f);J[J[d+24>>2]+(e<<2)>>2]=c;if(!c)break a;J[d+16>>2]=J[d+16>>2]+1;b=b+32|0;e=e+1|0;if((e|0)!=(a|0))continue;break}}pv(d);return d}Mh(d);return 0}function nm(a,b){var c=0,d=0,e=0;a:{if((b|0)>=0){c=-1;d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a; +J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;c:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b;break c}c=-1;if((bd(a,b&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;d=b>>>8|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;d:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break d}if((bd(a,d&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+ +60>>2])break a;d=b>>>16|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;e:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break e}if((bd(a,d&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;b=b>>>24|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b;break f}if((bd(a,b)|0)==-1)break b}c=0}return c}fa(203372,202632,383,207872); +B()}J[a+8>>2]=d|4;return-1}function jY(a,b,c){var d=0,e=0,f=0;d=fc-272|0;fc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){fd(a,65398);Vd(a,c);break a}if(e&2)fd(a,65483);if(!(!b|!(K[b+9|0]&8))){fd(a,65507);Vd(a,c);break a}if((c|0)!=1){fd(a,65576);Vd(a,c);break a}c=d+271|0;Dg(a,c,1);Ae(a,c,1);if(Vd(a,0))break a;e=K[d+271|0];if(e>>>0>=4){fd(a,65604);break a}b:{if(!b)break b;c=J[b+8>>2];c:{if(!(c&1))break c;f=J[b+40>>2];if(f-46001>>>0>4294966294)break c;Mk(d,1,5,f);zr(a,d,62855);c=J[b+8>>2]}if(!(c&4))break b;d:{if(J[b+ +128>>2]-32271>>>0<4294965295|J[b+132>>2]-33901>>>0<4294965295|(J[b+136>>2]-65001>>>0<4294965295|J[b+140>>2]-34001>>>0<4294965295))break d;if(J[b+144>>2]-31001>>>0<4294965295|J[b+148>>2]-61001>>>0<4294965295|J[b+152>>2]-16001>>>0<4294965295)break d;if(J[b+156>>2]-7001>>>0>4294965294)break b}fd(a,65638)}H[a+652|0]=1;if(!K[a+654|0]){H[a+654|0]=1;J[a+656>>2]=1535777592}e:{if(!a|!b)break e;H[b+44|0]=e;J[b+40>>2]=45455;J[b+8>>2]=J[b+8>>2]|2049;if(!OI(a,31270,32900,64E3,33E3,3E4,6E4,15E3,6E3))break e;J[b+ +152>>2]=15E3;J[b+156>>2]=6E3;J[b+144>>2]=3E4;J[b+148>>2]=6E4;J[b+136>>2]=64E3;J[b+140>>2]=33E3;J[b+128>>2]=31270;J[b+132>>2]=32900;J[b+8>>2]=J[b+8>>2]|4}}fc=d+272|0;return}Ld(a,65316);B()}function Bx(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;c=J[a+4>>2];j=c+37|0;i=J[a+12>>2];f=J[a+8>>2];a:{b:{d=J[c+44>>2];h=J[a+16>>2];k=J[a+20>>2];if(!(!d|h>>>0>=k>>>0)){J[c+44>>2]=0;e=H[c+36|0];H[c+36|0]=0;g=d-1|0;break b}c=0;break a}c=1}while(1){c:{d:{if(!c){if(f>>>0>=i>>>0)break d;g=0;e=0;if(h>>> +0>=k>>>0)break d;c=1;continue}e:{if(e>>>0>3)break e;f:{g:{if(f>>>0>=i>>>0)break g;d=K[f|0];H[e+j|0]=d;c=f+1|0;g=d|g<<8;d=e+1|0;if((d|0)==4){f=c;e=4;break e}if(c>>>0>=i>>>0){e=d;f=c;break g}c=d+j|0;d=K[f+1|0];H[c|0]=d;c=f+2|0;g=d|g<<8;d=e+2|0;if((d|0)==4){f=c;e=4;break e}if(c>>>0>=i>>>0){e=d;f=c;break g}c=d+j|0;d=K[f+2|0];H[c|0]=d;c=f+3|0;g=d|g<<8;e=e+3|0;if((e|0)==4){f=c;e=4;break e}if(c>>>0>>0)break f;f=c}c=J[a+4>>2];H[c+36|0]=e;J[c+44>>2]=g+1;break d}c=K[f+3|0];H[e+j|0]=c;e=4;f=f+4|0;g=c|g<< +8}if(!((g&-2048)==55296|g>>>0>1114111)){if(g>>>0<=65535){I[h>>1]=g;h=h+2|0;break c}I[h>>1]=(g>>>10|0)-10304;d=g&1023|-9216;c=h+2|0;if(c>>>0>>0){I[h+2>>1]=d;h=h+4|0;break c}e=J[a+4>>2];H[e+65|0]=1;I[e+116>>1]=d;J[b>>2]=15;h=c;break d}H[J[a+4>>2]+36|0]=e;J[b>>2]=12}if(!(h>>>0>>0|f>>>0>=i>>>0|J[b>>2]>0))J[b>>2]=15;J[a+8>>2]=f;J[a+16>>2]=h;return}c=0;continue}}function lca(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;a:{d=J[J[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a;f=a-d| +0;c=((f<<2)+b|0)-4|0;if((d|0)<5){a=d<<2;while(1){b:switch(d|0){default:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 3:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 2:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;case 1:b=a+c|0;J[b>>2]=J[b>>2]-J[c>>2];c=c-4|0;break;case 0:break b}f=f-d|0;if((f|0)>0)continue;break}break a}i=d-4|0;h=d&3;j=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}b=0;a=i;if(h)while(1){e=(d<<2)+ +c|0;J[e>>2]=J[e>>2]-J[c>>2];a=a-1|0;c=c-4|0;b=b+1|0;if((h|0)!=(b|0))continue;break}if(!j)break g;while(1){b=d<<2;e=b+c|0;J[e>>2]=J[e>>2]-J[c>>2];e=c-4|0;g=e+b|0;J[g>>2]=J[g>>2]-J[e>>2];e=c-8|0;g=e+b|0;J[g>>2]=J[g>>2]-J[e>>2];e=b;b=c-12|0;e=e+b|0;J[e>>2]=J[e>>2]-J[b>>2];c=c-16|0;b=(a|0)>4;a=a-4|0;if(b)continue;break}}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}a=(d<<2)+c|0;J[a>>2]=J[a>>2]-J[c>>2];c=c-4|0}f=f- +d|0;if((f|0)>0)continue;break}}}function clb(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;d=a+8208|0;if(d>>>0>M[b+160>>2])pe(b,8);c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(!(c>>>0<=J[b+160>>2]-a>>>0&c>>>0>8207))pe(b,8);c=K[a+8204|0]|K[a+8205|0]<<8|(K[a+8206|0]<<16|K[a+8207|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{b:{if(g>>>0>(J[b+160>>2]-d>>>0)/12>>>0){pe(b,8);break b}if(!g)break a}h=a+12|0;c=0;while(1){e=c;f=K[d+8| +0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);j=K[d+1|0]<<16|K[d|0]<<24;a=j|(K[d+3|0]|K[d+2|0]<<8);k=K[d+5|0]<<16|K[d+4|0]<<24;c=k|(K[d+7|0]|K[d+6|0]<<8);if(a>>>0>c>>>0)pe(b,8);if(!(!i|a>>>0>e>>>0))pe(b,8);c:{if(J[b+164>>2]<=0)break c;l=J[b+172>>2];e=c-a|0;d:{if(l>>>0>=e>>>0)if(l-e>>>0>(f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0)break d;pe(b,16)}e=e+1|0;if(j){if(!e)break c;while(1){if(!(K[(a>>>19|0)+h|0]<<(a>>>16&7)&128))pe(b,8);if(!(K[(a>>>3&8191)+h|0]<<(a&7)&128))pe(b,8);a=a+1|0;e=e-1|0;if(e)continue; +break}break c}if(k)pe(b,8);if(!e)break c;while(1){if(K[(a>>>3&8191)+h|0]<<(a&7)&128)pe(b,8);a=a+1|0;e=e-1|0;if(e)continue;break}}d=d+12|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}return 0}function qXa(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,m=0,n=0;k=fc-32|0;fc=k;J[a+104>>2]=0;J[a+108>>2]=0;J[a+128>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[k+16>>2]=13;J[k>>2]=13;l=J[b+24>>2];J[699344]=0;m=l;l=k+16|0;ha(3372,j|0,m|0,l|0,0)|0; +m=J[699344];J[699344]=0;a:{if((m|0)==1)break a;J[699344]=0;m=ha(3368,J[k+24>>2],807124,k|0,0)|0;n=J[699344];J[699344]=0;if((n|0)==1)break a;if(J[m>>2]==7){J[a>>2]=J[j+8>>2];J[699344]=0;da(3526,a|0,l|0);l=J[699344];J[699344]=0;if((l|0)==1)break a;J[699344]=0;Ha(3522,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;ua(3527,a|0,b|0,k|0,f|0,g|0,j|0,i|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;$(3370,k|0);b=J[699344];J[699344]=0;if((b|0)==1)break a; +J[699344]=0;$(3370,k+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+116>>2];if(b){uc(Kw(b));J[a+116>>2]=0}b=J[a+120>>2];if(b){uc(Yg(b));J[a+120>>2]=0}b=J[a+124>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+124>>2]=0}b=J[a+128>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+128>>2]=0}fc=k+32|0;return a|0}c=Z()|0;b=J[a+104>>2];if(b){J[a+108>>2]=b;uc(b)}ba(c|0);B()}function MI(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;e=vc(16);J[699344]=0;j=aa(3539,e|0,0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)a:{b=kc[J[J[b>> +2]+40>>2]](b)|0;if(b)while(1){b:{if(kc[J[J[b>>2]+32>>2]](b,784466)|0){if(!c)break b;e=kc[J[J[b>>2]+40>>2]](b)|0;if(!e)break b;if(!(kc[J[J[e>>2]+28>>2]](e)|0))break b;f=kc[J[J[e>>2]+40>>2]](e)|0;if(!f)break b;if(!(kc[J[J[f>>2]+36>>2]](f)|0))break b;e=vc(8);J[699344]=0;h=aa(3350,e|0,c|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break a;f=J[f+20>>2];e=vc(8);J[699344]=0;f=aa(3350,e|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break a;Jg(d,h,f);break b}if(!(kc[J[J[b>>2]+28>>2]](b)|0))break b;c:{d:{e=pk(b, +785442);if(!e)break d;if(!(kc[J[J[b>>2]+32>>2]](b,786319)|0))if(!(kc[J[J[b>>2]+32>>2]](b,787219)|0))break d;f=J[e+4>>2];if(c){J[g+20>>2]=f;J[g+16>>2]=c;h=XJ(g+16|0);break c}e=vc(8);J[699344]=0;h=aa(3350,e|0,f|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1)break c;break a}if(!(kc[J[J[b>>2]+32>>2]](b,786319)|0))break b;MI(a,b,c,d);break b}e=Qk(j,f);J[g>>2]=e;ed(h,789023,g);$J(j,f,e+1|0);MI(a,b,h,d);uc(Zc(h))}b=kc[J[J[b>>2]+44>>2]](b)|0;if(b)continue;break}uc(Sh(j));fc=g+32|0;return}a=Z()|0;uc(e);ba(a|0); +B()}function Dk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=Dc(44);if(!c)return 0;J[c+36>>2]=0;J[c+32>>2]=a;J[c+28>>2]=0;J[c+24>>2]=b;J[c+20>>2]=a;J[c>>2]=0;b=P(a,b);J[c+40>>2]=b;a:{b:{if((a|0)>0){b=Dc(a<<2);J[c+28>>2]=b;if(!b){a=J[c+36>>2];if(!a)break a;if(H[c|0]&1)break b;uc(a);J[c+36>>2]=0;a=J[c+28>>2];if(!a)break a;uc(a);J[c+28>>2]=0;break a}b=J[c+40>>2]}c:{if((b|0)<=0)break c;b=Dc(b<<2);J[c+36>>2]=b;if(b)break c;a=J[c+28>>2];if(!a)break a;uc(a);J[c+28>>2]=0;break a}d:{if((a|0)<=0)break d;f=a& +3;e=J[c+24>>2];b=0;if(a>>>0>=4){h=a&-4;a=0;while(1){J[J[c+28>>2]+(b<<2)>>2]=J[c+36>>2]+(P(b,e)<<2);d=b|1;J[J[c+28>>2]+(d<<2)>>2]=J[c+36>>2]+(P(e,d)<<2);d=b|2;J[J[c+28>>2]+(d<<2)>>2]=J[c+36>>2]+(P(e,d)<<2);d=b|3;J[J[c+28>>2]+(d<<2)>>2]=J[c+36>>2]+(P(e,d)<<2);b=b+4|0;a=a+4|0;if((h|0)!=(a|0))continue;break}}if(!f)break d;while(1){J[J[c+28>>2]+(b<<2)>>2]=J[c+36>>2]+(P(b,e)<<2);b=b+1|0;g=g+1|0;if((g|0)!=(f|0))continue;break}}if(J[c+40>>2]>0){a=J[c+36>>2];b=0;while(1){J[a+(b<<2)>>2]=0;b=b+1|0;if((b|0)< +J[c+40>>2])continue;break}}J[c+4>>2]=0;J[c+8>>2]=0;i=c,j=AEb(J[c+20>>2],J[c+24>>2],32),J[i+12>>2]=j;J[c+16>>2]=jc;return c}fa(200337,198617,151,206757);B()}uc(c);return 0}function CX(a,b,c,d,e,f,g,h,i){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;var j=0,k=0;if(!(!a|!b)){H[b+28|0]=g;H[b+27|0]=i;H[b+26|0]=h;H[b+25|0]=f;H[b+24|0]=e;J[b+4>>2]=d;J[b>>2]=c;j=e&255;f=f&255;k=g&255;h=h&255;g=i&255;a:{b:{if(!c){fd(a,61843);break b}if((c|0)<0){fd(a,61936);break b}if(c>>>0>=536870799){fd(a,62102); +break b}e=0;if(M[a+700>>2]>=c>>>0)break a;fd(a,62267)}e=1}c:{d:{if(!d){fd(a,62369);break d}if((d|0)<0){fd(a,62565);break d}if(M[a+704>>2]>=d>>>0)break c;fd(a,62687)}e=1}if(!(1<>>0<=16:0)){fd(a,62829);e=1}d=f&-5;if(!((d|0)!=1&f>>>0<=6)){fd(a,62956);e=1}e:{if(!((f|0)==3&j>>>0>=9))if(!((f|0)==4|(d|0)==2)|j>>>0>7)break e;fd(a,63082);e=1}if(k>>>0>=2){fd(a,63257);e=1}if(h){fd(a,63375);e=1}if(!(!(K[a+201|0]&16)|!J[a+660>>2]))fd(a,63421);f:{g:{h:{if(!g)break h;if(!(!(J[a+660>>2]&4)|(g|0)!=64|(d| +0)!=2))if(!(J[a+200>>2]&4096))break h;fd(a,63583);if(!(K[a+201|0]&16))break g;fd(a,63657);break g}if(!e)break f}Ld(a,63774);B()}d=K[b+25|0];i:{if((d|0)==3)a=1;else{e=d&2;a=e|1;H[b+29|0]=a;if(!(d&4))break i;a=e+2|0}H[b+29|0]=a}a=P(K[b+24|0],a);H[b+30|0]=a;a=a&255;j:{if(a>>>0>=8){a=P(a>>>3|0,c);break j}a=P(a,c)+7>>>3|0}J[b+12>>2]=a}}function mN(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=-1;a:{if(!b|!c)break a;if(!(J[a+16>>2]<=0|L[a+26>>1]>7))while(1){b:{c:{d:{e:{f=L[a+26>>1];switch(f-1|0){case 0:break d; +case 3:break e;default:break b}}h=(e^-1)<<2&4;i=15;break c}h=(e^-1)&7;i=1}f=(P(e,f)>>>3|0)+c|0;j=K[f|0]&(i<>2])continue;break}if(J[a+1E3>>2]){e=J[a+1012>>2]+(J[a+1004>>2]^-1)|0;if(!((e|0)<0|(e|0)>J[J[b+20>>2]+20>>2])){J[b+4>>2]=e;k=b,l=mf(J[b+20>>2],0)+P(e,J[J[b+20>>2]+52>>2])|0,J[k+16>>2]=l}e=J[J[b+20>>2]+52>>2];d=(d|0)<0?e:(d|0)>(e|0)?e:d;f:{if((d|0)<=0)break f;b=J[b+16>>2];if(!b)break f;xc(b,c,d)}b=J[a+1008>>2];c=b+J[a+1004>>2]|0; +J[a+1004>>2]=c;g=0;d=c;c=J[a+1012>>2];if((d|0)<(c|0))break a;e=J[a+1016>>2];while(1){if((e|0)>0){b=(b|0)/2|0;J[a+1008>>2]=b}e=e+1|0;d=(b|0)/2|0;if((d|0)>(c|0))continue;break}J[a+1004>>2]=d;J[a+1016>>2]=e;return 0}a=J[b+20>>2];if(!a)break a;if(!Py(a,J[b>>2],J[b+4>>2]))break a;g=0;a=J[J[b+20>>2]+52>>2];a=(d|0)<0?a:(a|0)<(d|0)?a:d;g:{if((a|0)<=0)break g;d=J[b+16>>2];if(!d)break g;xc(d,c,a)}a=J[b+4>>2];J[b+4>>2]=a-1;if((a|0)<=0)break a;J[b+16>>2]=J[b+16>>2]-J[J[b+20>>2]+52>>2]}return g}function __(a, +b){var c=0,d=0,e=0,f=0,g=0;a:{b:{e=Qk(J[a+44>>2],b);if(!e){c:{c=J[a+48>>2];if(J[c+8>>2]>0)while(1){e=J[J[c>>2]+(g<<2)>>2];c=vc(8);J[699344]=0;d=aa(3350,c|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;c=Ro(d,J[b+4>>2]);od(c,2185964);d=Qn(J[c+4>>2],2185864);if(d)break c;uc(Zc(c));c=vc(8);J[699344]=0;d=aa(3350,c|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;c=Ro(d,J[b+4>>2]);od(c,2186029);d=Qn(J[c+4>>2],2185864);if(d)break c;uc(Zc(c));c=vc(8);J[699344]=0;d=aa(3350,c|0,e|0)|0;f=J[699344]; +J[699344]=0;if((f|0)==1)break a;c=Ro(d,J[b+4>>2]);od(c,2186082);d=Qn(J[c+4>>2],2185864);if(d)break c;uc(Zc(c));c=vc(8);J[699344]=0;d=aa(3350,c|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;c=Ro(d,J[b+4>>2]);od(c,2186132);d=Qn(J[c+4>>2],2185864);if(d)break c;uc(Zc(c));c=vc(8);J[699344]=0;e=aa(3350,c|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;c=Ro(e,J[b+4>>2]);od(c,2186186);d=Qn(J[c+4>>2],2185864);if(d)break c;uc(Zc(c));g=g+1|0;c=J[a+48>>2];if((g|0)>2])continue;break}b=0;break b}pg(d); +return c}c=vc(8);J[699344]=0;b=aa(3350,c|0,e|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}return b}a=Z()|0;uc(c);ba(a|0);B()}function xX(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;f=fc-48|0;fc=f;g=c-1>>>0>=204799?204800:c;k=sh(f+12|0,f+20|0,g,1);a:{b:{c:{d:{if(!c){e:{while(1){f:{c=J[J[b>>2]+8>>2];J[699344]=0;c=ga(c|0,b|0,J[f+20>>2],g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;if(!c)break d;h=J[f+20>>2];d=c;while(1){e=J[J[a>>2]+12>>2];J[699344]=0;e=ga(e|0,a| +0,h|0,d|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break e;if(!e)break c;h=e+h|0;d=d-e|0;if(d)continue;break}j=c+j|0;continue}break}d=Z()|0;break a}d=Z()|0;break a}d=c?c>>>0>>0?c:g:g;while(1){e=J[J[b>>2]+8>>2];J[699344]=0;e=ga(e|0,b|0,J[f+20>>2],d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!e)break d;h=J[f+20>>2];d=e;while(1){i=J[J[a>>2]+12>>2];J[699344]=0;i=ga(i|0,a|0,h|0,d|0)|0;l=J[699344];J[699344]=0;if((l|0)==1){d=Z()|0;break a}if(!i)break c;h=h+i|0;d=d-i|0;if(d)continue;break}j=e+j| +0;d=g+j>>>0>c>>>0?c-j|0:g;if(d)continue;break}}hd(k);fc=f+48|0;return j|0}J[699344]=0;a=ja(5178,f+24|0,2390640,2387108,474,2396576,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){d=Z()|0;Kc(a);break a}B()}d=Z()|0;break a}d=Z()|0}hd(k);ba(d|0);B()}function qq(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;f=fc-592|0;fc=f;d=0;a:{if(!a)break a;h=J[693360];d=0;if(!h)break a;while(1){b:{d=H[a+e|0];d=d-97>>>0<26?d&95:d;H[(f+80|0)+e|0]=d;if(!(d&255)){d=e;break b}d= +99;e=e+1|0;if((e|0)!=99)continue}break}H[(f+80|0)+d|0]=0;e=0;i=J[693361];d=0;if((i|0)<=0)break a;while(1){d=(e<<3)+h|0;if(!Ic(J[d+4>>2],f+80|0)){d=J[d>>2];break a}e=e+1|0;if((i|0)!=(e|0))continue;break}d=0}d=d?d:a;c:{if(d){while(1){d:{a=H[d+g|0];a=a-97>>>0<26?a&95:a;H[(f+80|0)+g|0]=a;if(!(a&255)){e=g;break d}e=499;g=g+1|0;if((g|0)!=499)continue}break}g=0;a=f+80|0;H[a+e|0]=0;a=kc[J[663201]](a)|0;if(!a){J[f+16>>2]=38637;Hc(0,0,0,0,0,27,2,3,38637,0,0,0,32879,f+16|0);break c}g=kc[J[663195]](12)|0;if(!g){g= +0;kc[J[663199]](a);J[f+32>>2]=38637;Hc(0,0,0,0,0,27,2,3,38637,0,0,0,32879,f+32|0);break c}J[g+8>>2]=c;J[g+4>>2]=b;J[g>>2]=a;e:{e=J[693362];if(e)break e;hL();e=J[693362];if(e)break e;J[f+48>>2]=0;Hc(0,0,0,0,0,27,6001,3,0,0,0,0,38808,f+48|0);break c}a=J[693365];if((a|0)>=50){J[f+64>>2]=20713;Hc(0,0,0,0,0,27,6002,3,20713,0,0,0,32567,f- -64|0);break c}J[693365]=a+1;J[(a<<2)+e>>2]=g;break c}J[f>>2]=0;Hc(0,0,0,0,0,27,6E3,3,0,0,0,0,38904,f)}fc=f+592|0;return g}function n5(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;J[b+4>>2]=2147483632;J[b+28>>2]=J[b+20>>2];e=J[a+120>>2];a:{while(1){m=e;j=J[a+60>>2];if(j>>>0<=e>>>0)break a;k=J[J[a+72>>2]+(e>>>6&67108860)>>2];l=e&255;c=k+P(l,12)|0;e=J[c+8>>2];i=J[c+4>>2];while(1){f=J[J[a+52>>2]+(e>>>8&16777212)>>2]+P(e&1023,12)|0;d=J[f+8>>2];b:{if((d|0)>=0){c=0;if(d>>>0>=M[a>>2])break b;c=J[J[a+12>>2]+(d>>>10&4194300)>>2]+(d&4095)|0;break b}d=d^-1;c=0;if(d>>>0>=M[a+20>>2])break b;c=J[(J[J[a+32>>2]+(d>>>4&268435452)>>2]+((d&63)<<3)|0)+4>>2]}d=J[f>>2]; +e=e+1|0;f=J[f+4>>2];c:{if((f|0)<0){g=d-J[b>>2]|0;h=0-f|0;Ac(g+J[b+12>>2]|0,K[c|0],h);c=J[b+28>>2];d:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=h+L[c+2>>1];break d}d=c+8|0;J[b+28>>2]=d;n=J[b>>2];I[c+10>>1]=h;I[c+8>>1]=g+n;J[c+12>>2]=g+J[b+12>>2];c=d}d=g+(f^-1)|0;break c}g=d-J[b>>2]|0;xc(g+J[b+12>>2]|0,c,f);c=J[b+28>>2];e:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=f+L[c+2>>1];break e}d=c+8|0;J[b+28>>2]=d;h=J[b>>2];I[c+10>>1]=f;I[c+8>>1]=g+h;J[c+12>>2]=g+J[b+12>>2];c=d}d=(f+g|0)-1|0}J[b+4>>2]=d;i=i-1|0;if(i)continue; +break}e=J[a+120>>2]+1|0;J[a+120>>2]=e;if(J[b+20>>2]==(c|0))continue;break}J[b+8>>2]=J[P(l,12)+k>>2]}return m>>>0>>0}function Q7a(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;e=J[a+4>>2];d=J[a+8>>2];if(e>>>0>>0){if((b|0)==(e|0)){J[b>>2]=J[c>>2];J[a+4>>2]=b+4;return b|0}g=(e-b|0)-4|0;h=g>>2;f=e;d=e-4|0;if(e>>>0>d>>>0)while(1){J[f>>2]=J[d>>2];f=f+4|0;d=d+4|0;if(e>>>0>d>>>0)continue;break}J[a+4>>2]=f;cd(e-(h<<2)|0,b,g);J[b>>2]=J[((b>>>0<=c>>>0&M[a+4>>2]>c>>>0)<<2)+c>>2];return b|0}a:{g= +J[a>>2];f=(e-g>>2)+1|0;if(f>>>0<1073741824){e=d-g|0;d=e>>1;d=e>>>0>=2147483644?1073741823:d>>>0>f>>>0?d:f;if(d){if(d>>>0>=1073741824)break a;f=vc(d<<2)}else f=0;h=f+(d<<2)|0;i=b-g|0;j=i>>2;e=f+(j<<2)|0;b:{c:{if((d|0)!=(j|0))break c;if((i|0)>0){e=((j+1|0)/-2<<2)+e|0;break c}e=(b|0)==(g|0)?1:i>>1;if(e>>>0>=1073741824){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)==1)break b;B()}J[699344]=0;h=e<<2;d=_(4,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;h=d+h|0;e=d+(e&-4)|0;if(!f)break c;uc(f); +g=J[a>>2]}J[e>>2]=J[c>>2];d=e;if((b|0)!=(g|0)){f=b;while(1){d=d-4|0;f=f-4|0;J[d>>2]=J[f>>2];if((f|0)!=(g|0))continue;break}}c=b;b=J[a+4>>2]-b|0;c=cd(e+4|0,c,b);J[a+8>>2]=h;J[a+4>>2]=b+c;b=J[a>>2];J[a>>2]=d;if(b)uc(b);return e|0}a=Z()|0;if(f)uc(f);ba(a|0);B()}qj(a);B()}Pd();B()}function Cz(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;l=fc-16|0;fc=l;a:{b:{c:{if((c|0)<=36){f=K[a|0];if(f)break c;g=a;break b}J[698583]=28;d=0;e=0;break a}g=a;d:{while(1){f=f<<24>>24;if(!((f|0)==32|f-9>>>0< +5))break d;f=K[g+1|0];g=g+1|0;if(f)continue;break}break b}e:{f=K[g|0];switch(f-43|0){case 0:case 2:break e;default:break b}}i=(f|0)==45?-1:0;g=g+1|0}f:{if(!((c|16)!=16|K[g|0]!=48)){o=1;if((K[g+1|0]&223)==88){g=g+2|0;m=16;break f}g=g+1|0;m=c?c:8;break f}m=c?c:10}c=0;while(1){g:{f=-48;j=H[g|0];h:{if((j-48&255)>>>0<10)break h;f=-87;if((j-97&255)>>>0<26)break h;f=-55;if((j-65&255)>>>0>25)break g}n=f+j|0;if((n|0)>=(m|0))break g;oi(l,m,0,0,0,k,h,0,0);f=1;i:{if(J[l+8>>2]|J[l+12>>2])break i;p=vEb(k,h,m,0); +j=jc;if((j|0)==-1&(n^-1)>>>0

      >>0)break i;h=j;k=n+p|0;h=k>>>0>>0?h+1|0:h;o=1;f=c}g=g+1|0;c=f;continue}break}if(b)J[b>>2]=o?g:a;j:{k:{if(c){J[698583]=68;a=d&1;i=a?0:i;k=d;h=e;break k}if((e|0)==(h|0)&d>>>0>k>>>0|e>>>0>h>>>0)break j;a=d&1}if(!(a|i)){J[698583]=68;a=d;d=a-1|0;e=e-!a|0;break a}if((e|0)==(h|0)&d>>>0>=k>>>0|e>>>0>h>>>0)break j;J[698583]=68;break a}a=i^k;d=a-i|0;b=i>>31;e=(b^h)-((a>>>0>>0)+b|0)|0}fc=l+16|0;jc=e;return d}function zx(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;h=-6;a:{if(!g| +K[g|0]!=49)break a;h=-2;if(!a)break a;J[a+24>>2]=0;g=J[a+32>>2];if(!g){J[a+40>>2]=0;J[a+32>>2]=3228;g=3228}if(!J[a+36>>2])J[a+36>>2]=3229;b:{if((d|0)<0)d=0-d|0;else{if(d>>>0<16){i=1;j=0;break b}i=2;d=d-16|0}j=1}if(f>>>0>4)break a;k=(b|0)==-1?6:b;if((c|0)!=8|k>>>0>9|(e-10>>>0<4294967287|d>>>0<8))break a;if(d>>>0>15)break a;c=(d|0)==8;if(c&j)break a;h=-4;b=kc[g|0](J[a+40>>2],1,5828)|0;if(!b)break a;J[a+28>>2]=b;J[b+28>>2]=0;J[b+24>>2]=i;J[b+4>>2]=42;J[b>>2]=a;J[b+80>>2]=e+7;g=128<>2]=g;c= +c?9:d;J[b+48>>2]=c;J[b+84>>2]=g-1;c=1<>2]=c;J[b+88>>2]=((e+9&255)>>>0)/3;J[b+52>>2]=c-1;l=b,m=kc[J[a+32>>2]](J[a+40>>2],c,2)|0,J[l+56>>2]=m;l=b,m=kc[J[a+32>>2]](J[a+40>>2],J[b+44>>2],2)|0,J[l+64>>2]=m;c=kc[J[a+32>>2]](J[a+40>>2],J[b+76>>2],2)|0;J[b+5824>>2]=0;J[b+68>>2]=c;c=64<>2]=c;c=kc[J[a+32>>2]](J[a+40>>2],c,4)|0;J[b+8>>2]=c;d=J[b+5788>>2];J[b+12>>2]=d<<2;c:{if(!(!J[b+68>>2]|(!J[b+56>>2]|!J[b+64>>2])))if(c)break c;J[b+4>>2]=666;J[a+24>>2]=J[192430];Yo(a);return-4}J[b+136>> +2]=f;J[b+132>>2]=k;H[b+36|0]=8;J[b+5784>>2]=c+P(d,3);J[b+5796>>2]=c+(d&-2);h=sL(a)}return h}function RL(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;if(!f)return 0;if(J[f>>2]<=0){a:{if(!(!d&(e|0)!=0|((b|0)<0|(e|0)<-1)))if(!b|a)break a;J[f>>2]=1;return 0}j=b;b:{c:{if(J[f>>2]<=0){d:{if(!((b|0)<0|(e|0)<-1|(!d&(e|0)!=0|!a&(b|0)!=0)))break d;J[f>>2]=1;a=0;break b}k=a?(j<<2)+a|0:0;e:{f:{g:{h:{if((e|0)<0){e=L[d>>1];g=(e|0)!=0;if(!e|(e&63488)==55296)break h;b=a;while(1){i:{if(b>>> +0>>0){J[b>>2]=e;b=b+4|0;break i}i=i+1|0}d=d+2|0;e=L[d>>1];g=(e|0)!=0;if(!e)break g;if((e&63488)!=55296)continue;break}break g}g=d?(e<<1)+d|0:0;b=a;break f}b=a}if(!g)break e;e=d;while(1){h=L[e+2>>1];g=e+2|0;e=g;if(h)continue;break}}if(d>>>0>=g>>>0)break e;while(1){h=d+2|0;e=L[d>>1];if((e&63488)!=55296)d=h;else{if(e&1024|g>>>0<=h>>>0)break c;h=L[h>>1];if((h&64512)!=56320)break c;e=(h+(e<<10)|0)-56613888|0;d=d+4|0}j:{if(b>>>0>=k>>>0){i=i+1|0;break j}J[b>>2]=e;b=b+4|0}if(d>>>0>>0)continue;break}}b= +(b-a>>2)+i|0;if(c)J[c>>2]=b;k:{if(!f|(b|0)<0)break k;c=J[f>>2];if((c|0)>0)break k;l:{if((b|0)<(j|0)){J[(b<<2)+a>>2]=0;b=0;if((c|0)==-124)break l;break k}b=(b|0)==(j|0)?-124:15}J[f>>2]=b}}else a=0;break b}J[f>>2]=10;a=0}}else a=0;return a|0}function Hma(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;e=J[a+4>>2];d=J[a+8>>2];if(e>>>0>>0){if((b|0)==(e|0)){O[b>>3]=O[c>>3];J[a+4>>2]=b+8;return b|0}g=(e-b|0)-8|0;h=g>>3;f=e;d=e-8|0;if(e>>>0>d>>>0)while(1){O[f>>3]=O[d>>3];f=f+8|0;d=d+8|0;if(e>>> +0>d>>>0)continue;break}J[a+4>>2]=f;cd(e-(h<<3)|0,b,g);O[b>>3]=O[((b>>>0<=c>>>0&M[a+4>>2]>c>>>0)<<3)+c>>3];return b|0}a:{g=J[a>>2];f=(e-g>>3)+1|0;if(f>>>0<536870912){e=d-g|0;d=e>>2;d=e>>>0>=2147483640?536870911:d>>>0>f>>>0?d:f;if(d){if(d>>>0>=536870912)break a;f=vc(d<<3)}else f=0;h=f+(d<<3)|0;i=b-g|0;j=i>>3;e=f+(j<<3)|0;b:{c:{if((d|0)!=(j|0))break c;if((i|0)>0){e=((j+1|0)/-2<<3)+e|0;break c}e=(b|0)==(g|0)?1:i>>2;if(e>>>0>=536870912){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)==1)break b;B()}J[699344]= +0;h=e<<3;d=_(4,h|0)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;h=d+h|0;e=d+(e<<1&-8)|0;if(!f)break c;uc(f);g=J[a>>2]}O[e>>3]=O[c>>3];d=e;if((b|0)!=(g|0)){f=b;while(1){d=d-8|0;f=f-8|0;O[d>>3]=O[f>>3];if((f|0)!=(g|0))continue;break}}c=b;b=J[a+4>>2]-b|0;c=cd(e+8|0,c,b);J[a+8>>2]=h;J[a+4>>2]=b+c;b=J[a>>2];J[a>>2]=d;if(b)uc(b);return e|0}a=Z()|0;if(f)uc(f);ba(a|0);B()}Fg(a);B()}Pd();B()}function AEa(a){a=a|0;var b=0,c=0,d=0;d=fc-16|0;fc=d;J[a+84>>2]=-1;J[a+76>>2]=0;J[a+80>>2]=0;H[a+10|0]=0;I[a+8>>1]= +0;b=vc(8);J[b>>2]=0;J[a+72>>2]=0;J[a+12>>2]=b;J[699344]=0;b=_(4,20)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((c|0)!=1){J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[699344]=0;c=b+4|0;J[c>>2]=2397836;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[a+72>>2]=b;J[699344]=0;b=d+12|0;$(5248,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break f;J[699344]=0;aa(5153,a- -64|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;a=J[d+12>>2];J[d+12>>2]=0;h:{if(!a)break h; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break c;if(b)break h;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c}fc=d+16|0;return}c=ea(0)|0;break d}c=ea(0)|0;uc(b);break d}c=ea(0)|0;break d}c=ea(0)|0;zc(d+12|0)}oa(c|0)|0;b=J[a+72>>2];if(b){id(b+4|0);uc(b)}J[a+72>>2]=0;b=J[a+12>>2];if(b)uc(b);J[a+12>>2]=0;J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1)break a;ea(0)| +0;Bc();B()}ea(0)|0;Bc()}B()}ba(a|0);B()}function b6a(a,b){a=a|0;b=b|0;var c=Q(0),d=Q(0),e=Q(0),f=Q(0),g=0,h=0,i=Q(0),j=0,k=Q(0),l=Q(0),m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;J[a>>2]=0;J[a+4>>2]=0;m=a+8|0;J[m>>2]=0;J[m+4>>2]=0;b=b+16|0;if(J[b+84>>2]>0){n=J[b+84>>2];a:{if((n|0)<=0){J[a>>2]=0;J[a+4>>2]=0;J[a+12>>2]=0;J[m>>2]=0;break a}o=J[b+80>>2];if((n|0)!=1){v=n&-2;while(1){q=P(h,96)+o|0;c=Q(-N[q+16>>2]);e=c>e?e:c;r=P(h|1,96)+o|0;c=Q(-N[r+16>>2]);e=c>e?e:c;c=Q(-N[q+24>>2]);d=c>2]);d=c>2]);e=c>e?e:c;c=Q(-N[h+24>>2]);d=c>3];p=O[b+40>>3];b:{c:{t=O[b+24>>3];g=O[b+32>>3];if(t!=1|g!=0|(p!=0|j!=1))break c;if(O[b+56>>3]!=0|O[b- -64>>3]!=0)break c;f=Q(0);break b}g=g*0;u=+e;c=Q(g+j*u);w=j;j=+d;d=Q(g+w*j);e=ce?e:c;d=c>d?c:d;d=ck?k:c;f=c>f?c:f;f=c>2];c=N[b+8>>2];i=Q(i+c);l=N[b+16>>2];l=c>2]=i>2];i=N[b+16>>2];f=f>i?f:i;N[a+4>>2]=c>f?c:f;e=Q(e+k);c=N[b+12>>2];f=N[b+20>>2];c=c>2]=c>e?e:c;e=Q(d+k);d=N[b+12>>2];c=N[b+20>>2];d=c>2]=d>2]=2147483632;J[b+28>>2]=J[b+20>>2];e=J[a+120>>2];a:{while(1){m=e;j=J[a+60>>2];if(j>>>0<=e>>>0)break a;k=J[J[a+72>>2]+(e>>>6&67108860)>>2];l=e&255;c=k+P(l,12)|0;e=J[c+8>>2];i=J[c+4>>2];while(1){f=J[J[a+52>>2]+(e>>>8&16777212)>> +2]+P(e&1023,12)|0;d=J[f+8>>2];b:{if((d|0)>=0){c=0;if(d>>>0>=M[a>>2])break b;c=J[J[a+12>>2]+(d>>>10&4194300)>>2]+(d&4095)|0;break b}d=d^-1;c=0;if(d>>>0>=M[a+20>>2])break b;c=J[(J[J[a+32>>2]+(d>>>4&268435452)>>2]+((d&63)<<3)|0)+4>>2]}d=J[f>>2];e=e+1|0;f=J[f+4>>2];c:{if((f|0)<0){g=d-J[b>>2]|0;h=0-f|0;Ac(g+J[b+12>>2]|0,K[c|0],h);c=J[b+28>>2];d:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=h+L[c+2>>1];break d}d=c+8|0;J[b+28>>2]=d;n=J[b>>2];I[c+10>>1]=h;I[c+8>>1]=g+n;J[c+12>>2]=g+J[b+12>>2];c=d}d=g+(f^-1)|0;break c}g= +d-J[b>>2]|0;xc(g+J[b+12>>2]|0,c,f);c=J[b+28>>2];e:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=f+L[c+2>>1];break e}d=c+8|0;J[b+28>>2]=d;h=J[b>>2];I[c+10>>1]=f;I[c+8>>1]=g+h;J[c+12>>2]=g+J[b+12>>2];c=d}d=(f+g|0)-1|0}J[b+4>>2]=d;i=i-1|0;if(i)continue;break}e=J[a+120>>2]+1|0;J[a+120>>2]=e;if(J[b+20>>2]==(c|0))continue;break}Xf(b,J[P(l,12)+k>>2])}return m>>>0>>0}function p5(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;J[b+4>>2]=2147483632;J[b+28>>2]=J[b+20>>2];e=J[a+120>>2];a:{while(1){m=e;j= +J[a+60>>2];if(j>>>0<=e>>>0)break a;k=J[J[a+72>>2]+(e>>>6&67108860)>>2];l=e&255;c=k+P(l,12)|0;e=J[c+8>>2];i=J[c+4>>2];while(1){f=J[J[a+52>>2]+(e>>>8&16777212)>>2]+P(e&1023,12)|0;d=J[f+8>>2];b:{if((d|0)>=0){c=0;if(d>>>0>=M[a>>2])break b;c=J[J[a+12>>2]+(d>>>10&4194300)>>2]+(d&4095)|0;break b}d=d^-1;c=0;if(d>>>0>=M[a+20>>2])break b;c=J[(J[J[a+32>>2]+(d>>>4&268435452)>>2]+((d&63)<<3)|0)+4>>2]}d=J[f>>2];e=e+1|0;f=J[f+4>>2];c:{if((f|0)<0){g=d-J[b>>2]|0;h=0-f|0;Ac(g+J[b+12>>2]|0,K[c|0],h);c=J[b+28>>2];d:{if((g| +0)==(J[b+4>>2]+1|0)){I[c+2>>1]=h+L[c+2>>1];break d}d=c+8|0;J[b+28>>2]=d;n=J[b>>2];I[c+10>>1]=h;I[c+8>>1]=g+n;J[c+12>>2]=g+J[b+12>>2];c=d}d=g+(f^-1)|0;break c}g=d-J[b>>2]|0;xc(g+J[b+12>>2]|0,c,f);c=J[b+28>>2];e:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=f+L[c+2>>1];break e}d=c+8|0;J[b+28>>2]=d;h=J[b>>2];I[c+10>>1]=f;I[c+8>>1]=g+h;J[c+12>>2]=g+J[b+12>>2];c=d}d=(f+g|0)-1|0}J[b+4>>2]=d;i=i-1|0;if(i)continue;break}e=J[a+120>>2]+1|0;J[a+120>>2]=e;if(J[b+20>>2]==(c|0))continue;break}Wf(b,J[P(l,12)+k>>2])}return m>>> +0>>0}function o5(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;J[b+4>>2]=2147483632;J[b+28>>2]=J[b+20>>2];e=J[a+120>>2];a:{while(1){m=e;j=J[a+60>>2];if(j>>>0<=e>>>0)break a;k=J[J[a+72>>2]+(e>>>6&67108860)>>2];l=e&255;c=k+P(l,12)|0;e=J[c+8>>2];i=J[c+4>>2];while(1){f=J[J[a+52>>2]+(e>>>8&16777212)>>2]+P(e&1023,12)|0;d=J[f+8>>2];b:{if((d|0)>=0){c=0;if(d>>>0>=M[a>>2])break b;c=J[J[a+12>>2]+(d>>>10&4194300)>>2]+(d&4095)|0;break b}d=d^-1;c=0;if(d>>>0>=M[a+20>>2])break b;c=J[(J[J[a+32>>2]+(d>>> +4&268435452)>>2]+((d&63)<<3)|0)+4>>2]}d=J[f>>2];e=e+1|0;f=J[f+4>>2];c:{if((f|0)<0){g=d-J[b>>2]|0;h=0-f|0;Ac(g+J[b+12>>2]|0,K[c|0],h);c=J[b+28>>2];d:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=h+L[c+2>>1];break d}d=c+8|0;J[b+28>>2]=d;n=J[b>>2];I[c+10>>1]=h;I[c+8>>1]=g+n;J[c+12>>2]=g+J[b+12>>2];c=d}d=g+(f^-1)|0;break c}g=d-J[b>>2]|0;xc(g+J[b+12>>2]|0,c,f);c=J[b+28>>2];e:{if((g|0)==(J[b+4>>2]+1|0)){I[c+2>>1]=f+L[c+2>>1];break e}d=c+8|0;J[b+28>>2]=d;h=J[b>>2];I[c+10>>1]=f;I[c+8>>1]=g+h;J[c+12>>2]=g+J[b+12>> +2];c=d}d=(f+g|0)-1|0}J[b+4>>2]=d;i=i-1|0;if(i)continue;break}e=J[a+120>>2]+1|0;J[a+120>>2]=e;if(J[b+20>>2]==(c|0))continue;break}Vf(b,J[P(l,12)+k>>2])}return m>>>0>>0}function I9a(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;e=fc-16|0;fc=e;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[e+12|0]=0;J[e+8>>2]=a;a:{b:{c:{d:{e:{f:{if(b){if(b>>>0>=357913942){J[699344]=0;$(2357,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break a}J[699344]=0;b=P(b,12);d=_(4,b|0)|0;f=J[699344];J[699344]=0;if((f| +0)==1)break c;J[a+4>>2]=d;J[a>>2]=d;h=b+d|0;J[a+8>>2]=h;f=J[c>>2];i=J[c+4>>2];g:{if((f|0)==(i|0)){b=b-12|0;Ac(d,0,(b-((b>>>0)%12|0)|0)+12|0);break g}j=i-f|0;b=j>>2;if(b>>>0>=1073741824)break f;k=b<<2;while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[699344]=0;b=_(4,j|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[d+4>>2]=b;J[d>>2]=b;J[d+8>>2]=b+k;c=f;while(1){g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[b|0]=g;H[b+1|0]=g>>>8;H[b+2|0]=g>>>16;H[b+3|0]=g>>>24;b=b+4|0;c=c+4|0;if((i|0)!=(c|0))continue; +break}J[d+4>>2]=b;d=d+12|0;if((h|0)!=(d|0))continue;break}}J[a+4>>2]=h}fc=e+16|0;return a|0}J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[699344]=0;$(2268,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;c=J[d>>2];if(!c)break d;J[d+4>>2]=c;uc(c);J[a+4>>2]=d;break b}b=Z()|0}J[a+4>>2]=d;break b}b=Z()|0}cn(e+8|0);ba(b|0);B()}B()}function dda(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;l=fc-16|0;fc=l;a:{b:{if((c|0)<=0){p=a+608|0;q=a+604|0;d=J[a+608>> +2];e=J[a+604>>2];break b}Ac(b,255,c);p=a+608|0;q=a+604|0;h=J[a+588>>2];d=J[a+608>>2];e=J[a+604>>2];while(1){j=d-1|0;i=e+1|0;c:{d:{e:{f=K[e|0];if((f|0)!=64){if(f)break e;if((d|0)<=(h|0))break d;Ue(b,i,h);d=j-h|0;e=h+i|0;break c}f=d;d=K[e+4|0]|K[e+3|0]<<8;g=d+4|0;if((f|0)<=(g|0))break d;f=K[e+2|0]|K[e+1|0]<<8;if((f+d|0)>(h|0))break d;Ue(b+f|0,e+5|0,d);d=j-g|0;e=g+i|0;break c}m=J[a+56>>2];e=0;d=b;while(1){k=e>>>0>>0;n=f&63;f:{if(!n){g=d;break f}if(e>>>0>=m>>>0){g=d;break f}r=f&192;o=(f&255)>>>6|0; +s=o<<4;t=o<<2;g=d;while(1){f=s;k=r;g:{h:{i:switch((e&3)-1|0){case 1:f=t;g=d;break h;case 0:break h;case 2:break i;default:break g}g=d+1|0;f=o}k=K[d|0]|f}H[d|0]=k;e=e+1|0;k=m>>>0>e>>>0;if(n>>>0<2)break f;n=n-1|0;d=g;if(e>>>0>>0)continue;break}}if(!k){d=j;e=i;break c}if(!j)break d;j=j-1|0;f=K[i|0];d=g;i=i+1|0;continue}}b=J[a>>2];c=J[a+628>>2];J[l>>2]=J[a+472>>2];Uc(c,b,69435,l);a=0;break a}b=b+h|0;c=c-h|0;if((c|0)>0)continue;break}}J[q>>2]=e;J[p>>2]=d;a=1}fc=l+16|0;return a|0}function fza(a,b,c){a= +a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;g=rf(c);a:{b:{c:{d:{e:{f=b- -64|0;d=J[J[f+12>>2]+((g>>>0)%M[f+8>>2]<<2)>>2];if(d)while(1){if(J[d+12>>2]==(g|0))if(!Qj(d+16|0,c,-1))break e;d=J[d+8>>2];if(d)continue;break}J[e+12>>2]=f;J[e+8>>2]=0;break d}J[e+12>>2]=f;J[e+8>>2]=d;c=J[d+24>>2];J[a>>2]=0;J[699344]=0;d=J[J[b+48>>2]+((c>>>0)%M[b+44>>2]<<2)>>2];b=J[699344];J[699344]=0;f:{g:{h:{if((b|0)!=1){if(!d)break g;while(1){if(!((c|0)==J[d+12>>2]&(c|0)==J[d+16>>2])){d=J[d+8>>2];if(d)continue;break h}break}if(!J[d+ +20>>2]|J[c+4>>2]<=0)break h;J[699344]=0;aa(5145,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break h;break a}break a}b=J[a>>2];if(!b)break f;if(J[b+4>>2]>0)break g;J[699344]=0;aa(5145,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a>>2])break c}J[699344]=0;da(5594,f|0,e+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a>>2];J[a>>2]=0;if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]= +0;if((b|0)==1)break b}J[a>>2]=0;vd(a,0)}fc=e+16|0;return}ea(0)|0;Bc();B()}b=Z()|0;zc(a);ba(b|0);B()}function XAa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=fc-32|0;fc=f;a:{a=J[a+8>>2];if(a){b:{d=J[a+8>>2];if((d|0)==(b|0)){e=1;if(J[a+12>>2]==(c|0))break b}e=2;if(((d+1|0)/2|0)==(b|0))if(((J[a+12>>2]+1|0)/2|0)==(c|0))break b;e=3;if(((d+2|0)/3|0)==(b|0))if(((J[a+12>>2]+2|0)/3|0)==(c|0))break b;e=4;if(((d+3|0)/4|0)==(b|0))if(((J[a+12>>2]+3|0)/4|0)==(c|0))break b;e=5;if(((d+4|0)/5|0)==(b|0))if(((J[a+12>> +2]+4|0)/5|0)==(c|0))break b;e=6;if(((d+5|0)/6|0)==(b|0))if(((J[a+12>>2]+5|0)/6|0)==(c|0))break b;e=7;if(((d+6|0)/7|0)==(b|0))if(((J[a+12>>2]+6|0)/7|0)==(c|0))break b;e=8;if(((d+7|0)/8|0)==(b|0))if(((J[a+12>>2]+7|0)/8|0)==(c|0))break b;e=9;if(((d+8|0)/9|0)==(b|0))if(((J[a+12>>2]+8|0)/9|0)==(c|0))break b;e=10;if(((d+9|0)/10|0)==(b|0))if(((J[a+12>>2]+9|0)/10|0)==(c|0))break b;e=11;if(((d+10|0)/11|0)==(b|0))if(((J[a+12>>2]+10|0)/11|0)==(c|0))break b;e=12;if(((d+11|0)/12|0)==(b|0))if(((J[a+12>>2]+11|0)/ +12|0)==(c|0))break b;a=Qc(f+8|0,2399285,2386059,823,2414371,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}a=J[a+20>>2];a=((a?a:300)|0)/(e|0)|0}else a=300;fc=f+32|0;return a|0}B()}function So(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;f=fc-16|0;fc=f;a:{if((b|0)<0|J[a+32>>2]<=(b|0))break a;J[f+12>>2]=1;e=J[a+28>>2];g=e+P(b,20)|0;d=J[g+8>>2];b:{c:switch(J[g+16>>2]){case 0:if((c|0)<0|(J[(e+P(b,20)|0)+12>>2]-6|0)<=(c|0))break a;b= +Tf(a,(c+d|0)+6|0,f+12|0);break b;case 2:if(c>>>0>255)break a;b=f+12|0;if(Ef(a,d+6|0,b))break a;if(Ef(a,d+518|0,b))break a;if((Ef(a,d+520|0,b)|0)!=256)break a;if(Ef(a,d+522|0,b))break a;h=c<<1;c=d+524|0;b=Ef(a,(h+c|0)+Ef(a,c,b)|0,b);break b;case 4:g=-1;h=f+12|0;j=Ef(a,d+6|0,h);i=(j|0)/2|0;e=i-1|0;b=e<<1;k=d+14|0;if((Ef(a,b+k|0,h)|0)<(c|0))break a;if(!(!J[f+12>>2]|(j|0)<4)){while(1){b=(e+g|0)/2|0;h=(Ef(a,(b<<1)+k|0,f+12|0)|0)<(c|0);e=h?e:b;g=h?b:g;if(J[f+12>>2]?(e-g|0)>=2:0)continue;break}b=e<<1}b= +(b+d|0)+16|0;h=f+12|0;d=h;e=Ef(a,b+(i<<1)|0,d);g=Ef(a,b+(i<<2)|0,d);i=b+P(i,6)|0;d=Ef(a,i,d);if((c|0)<(e|0))break a;b=c+g&65535;if(!d)break b;a=Ef(a,(d+i|0)+(c-e<<1)|0,h);b=0;if(!a)break b;b=a+g&65535;break b;case 6:break c;default:break a}e=f+12|0;b=Ef(a,d+6|0,e);if((b|0)>(c|0)|(Ef(a,d+8|0,e)+b|0)<=(c|0))break a;b=Ef(a,(d+(c-b<<1)|0)+10|0,e)}l=J[f+12>>2]?b:0}fc=f+16|0;return l|0}function Psa(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;k=fc-32|0;fc=k;a:{if(!K[a+49|0]){b=Qc(k+ +8|0,2392458,2386144,718,2433721,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(b);ba(a|0);B()}if(K[a+4|0]){e=L[b+2>>1];h=e+c|0;f=L[b>>1];i=f+d|0;g=f+1|0;f=e+1|0}else f=0;e=kc[J[J[a>>2]+8>>2]](a,J[a+200>>2]>(g|0),a+168|0)|0;j=J[J[a>>2]+56>>2];b:{if(e){j=kc[j|0](a,g-J[a+212>>2]|0,a+176|0)|0;e=kc[J[J[a>>2]+56>>2]](a,h-J[a+208>>2]|0,a+184|0)|0;h=K[a+4|0];if(!h){g=j+J[a+212>>2]|0;i=(g+d|0)-1|0;f=(J[a+208>>2]+(e-c|0)|0)+1|0}J[a+208>>2]=f;J[a+204>>2]=i;J[a+200>>2]=g;J[a+ +212>>2]=g;J[a+196>>2]=f;J[a+236>>2]=0;J[a+224>>2]=f;J[a+232>>2]=f;J[a+228>>2]=f;break b}e=kc[j|0](a,g-J[a+204>>2]|0,a+172|0)|0;c=kc[J[J[a>>2]+56>>2]](a,f-J[a+196>>2]|0,a+180|0)|0;h=K[a+4|0];if(!h){g=e+J[a+204>>2]|0;i=(g+d|0)-1|0;f=c+J[a+196>>2]|0}J[a+204>>2]=i;J[a+200>>2]=g;c=J[a+236>>2]+1|0;c=(c|0)!=3?c:0;J[a+236>>2]=c;J[(a+224|0)+(c<<2)>>2]=f;e=J[a+232>>2];d=J[a+224>>2];c=J[a+228>>2];c:{if((d|0)>=(c|0)){c=(d|0)>(e|0)?(c|0)>(e|0)?c:e:d;break c}c=(d|0)<(e|0)?(c|0)<(e|0)?c:e:d}J[a+196>>2]=c}if(!h){I[b>> +1]=g-1;I[b+2>>1]=f-1}fc=k+32|0;return}B()}function fl(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{c:{d:{e:{f:{g:{i=J[b+4>>2];h:{if(!(!i|(c|d)<0|J[b+16>>2]<=(c|0)))if(J[b+20>>2]>(d|0))break h;c=J[b+336>>2];if((c|0)>=0)break g;if(!i)break a;e=1;c=0;d=0}j=J[b+44>>2];if(!j)break d;g=L[b+26>>1];if((g|0)!=8)break f;h=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+c|0];break e}if(L[b+26>>1]<=23){H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;if(!i)break b;b=J[b+44>>2];if(!b)break b;d=b;b= +c&255;if(d>>>0<=b>>>0)break b;b=i+(b<<2)|0;H[a|0]=K[b+40|0];H[a+1|0]=K[b+41|0];H[a+2|0]=K[b+42|0];H[a+3|0]=K[b+43|0];return}break a}f=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+(P(c,g)>>3)|0];i:switch(g-1|0){case 3:g=4-((c|0)%2<<2)&252;h=(f&15<>>g|0;break e;case 0:break i;default:break e}g=7-((c|0)%8|0)|0;h=(f&1<>>g|0}g=0;h=h&255;f=0;if(h>>>0>=j>>>0)break c;f=i+(h<<2)|0;g=K[f+43|0];k=K[f+42|0];l=K[f+40|0];f=K[f+41|0];break c}f=(J[b+56>>2]+P(J[b+52>>2],d)|0)+P(c,3)|0;k=K[f+2|0];l=K[f|0];g=K[b+343|0]; +f=K[f+1|0]}if(!(!J[b+964>>2]|e^1))g=K[(J[b+964>>2]+P(J[b+16>>2],d)|0)+c|0];H[a+3|0]=g;H[a+2|0]=k;H[a+1|0]=f;H[a|0]=l}return}b=J[b+340>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24}function L4(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=fc+-64|0;fc=e;c=J[a+24>>2];if(!(K[a+28|0]|!c))uc(c);J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=8;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;c=e+16|0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25| +0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[699344]=0;H[e+15|0]=0;d=ha(2533,c|0,b|0,0,e+15|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)a:{if(d){J[699344]=0;d=J[c+16>>2];b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+24>>2]=d;J[699344]=0;d=J[c+4>>2];b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+12>>2]=d;J[699344]=0;d=J[c+8>>2];b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+16>>2]=d;J[699344]=0;d=J[c+12>>2];b=J[699344];J[699344]=0;if((b|0)==1)break a; +J[a+8>>2]=0;J[a+20>>2]=d}J[699344]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+40|0]=0;J[c+32>>2]=0;J[c+36>>2]=-1074790400;H[c+21|0]=0;H[c+22|0]=0;H[c+23|0]=0;H[c+24|0]=0;H[c+25|0]=0;H[c+26|0]=0;H[c+27|0]=0;H[c+28|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break a;Yg(c);fc=e- -64|0;return}a=Z()|0;Yg(c);ba(a|0);B()}function yL(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{c=J[a+108>>2];if(c){b=J[a+112>>2];if(b)break a}b=K[9777]|K[9778]<<8|(K[9779]<<16|K[9780]<<24);c=K[9773]| +K[9774]<<8|(K[9775]<<16|K[9776]<<24);H[a+300|0]=c;H[a+301|0]=c>>>8;H[a+302|0]=c>>>16;H[a+303|0]=c>>>24;H[a+304|0]=b;H[a+305|0]=b>>>8;H[a+306|0]=b>>>16;H[a+307|0]=b>>>24;b=K[9769]|K[9770]<<8|(K[9771]<<16|K[9772]<<24);c=K[9765]|K[9766]<<8|(K[9767]<<16|K[9768]<<24);H[a+292|0]=c;H[a+293|0]=c>>>8;H[a+294|0]=c>>>16;H[a+295|0]=c>>>24;H[a+296|0]=b;H[a+297|0]=b>>>8;H[a+298|0]=b>>>16;H[a+299|0]=b>>>24;return}b=P(J[a+288>>2],P(b,c));J[a+120>>2]=b;d=J[a+144>>2];b:{c:{if(!d){b=Dc(b);J[a+268>>2]=4;J[a+144>>2]= +b;J[J[a+272>>2]+68>>2]=2;b=a+272|0;break c}b=fe(d,b);J[a+268>>2]=4;J[a+144>>2]=b;c=J[a+108>>2];J[J[a+272>>2]+68>>2]=2;if(!c)break b;b=a+272|0}d=1;while(1){d:{if(!d){d=0;break d}e=J[a+144>>2];if(!e){d=0;break d}d=1;f=J[a+112>>2];if(!f)break d;g=J[a+288>>2];c=e+P(P(g,h),f)|0;i=0;while(1){e=J[b>>2];if(!((H[J[e+120>>2]+c|0]>=0?J[e+116>>2]:0)|!J[e+68>>2])){H[J[e+72>>2]+c|0]=255;g=J[a+288>>2];f=J[a+112>>2]}c=c+g|0;i=i+1|0;if(i>>>0>>0)continue;break}c=J[a+108>>2]}h=h+1|0;if(h>>>0>>0)continue;break}}} +function eFa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-1056|0;fc=e;f=kc[J[J[a>>2]+16>>2]](a)|0;a:{b:{c:{d:switch(c|0){case 2:if(b){b=-1;if(d)break c;a=Qc(e+32|0,2389192,2387108,366,2396487,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}while(1){if(kc[J[J[a>>2]+8>>2]](a,e+32|0,1024)|0)continue;break}b=0;break c;default:a=Qc(e+32|0,2389777,2387108,375,2396487,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a;case 1:c=f;break;case 0:break d}c= +b+c|0;if((c|0)>=(f|0)){b=0;if((c|0)<=(f|0))break c;while(1){d=kc[J[J[a>>2]+8>>2]](a,e+32|0,(c|0)>=(f+1024|0)?1024:c-f|0)|0;if(!d){a=Qc(e+8|0,J[685886],2387108,393,2396487,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=d+f|0;if((kc[J[J[a>>2]+16>>2]](a)|0)!=(f|0)){a=Qc(e+8|0,2390278,2387108,396,2396487,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if((c|0)>(f|0))continue;break}break c}b=-1;if(d)break c;a=Qc(e+32|0,2389192,2387108,383, +2396487,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}fc=e+1056|0;return b|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function UWa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Fe(b,2);To(a,b);Fe(b,K[a+228|0]);zd(b,J[a+232>>2]);c=J[a+8>>2];if(c&32768){e=O[a+248>>3]*100;a:{if(R(e)<2147483648){c=~~e;break a}c=-2147483648}zd(b,c);e=O[a+256>>3]*100;b:{if(R(e)<2147483648){c=~~e;break b}c=-2147483648}zd(b,c);e=O[a+264>>3]*100;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}zd(b,c);e=O[a+272>> +3]*100;d:{if(R(e)<2147483648){c=~~e;break d}c=-2147483648}zd(b,c);c=J[a+8>>2]}e:{if(!(c&65536))break e;zd(b,J[a+296>>2]-J[a+292>>2]>>3);d=J[a+292>>2];if((d|0)==J[a+296>>2])break e;c=0;while(1){e=O[(c<<3)+d>>3]*100;f:{if(R(e)<2147483648){d=~~e;break f}d=-2147483648}zd(b,d);c=c+1|0;d=J[a+292>>2];if(c>>>0>2]-d>>3>>>0)continue;break}}c=J[a+8>>2];if(c&131072){c=K[a+247|0];d=c<<24>>24<0;lf(b,d?J[a+236>>2]:a+236|0,d?J[a+240>>2]:c);c=J[a+8>>2]}if(c&262144){Fe(b,K[a+230|0]);c=J[a+8>>2]}if(c&1048576){Fe(b, +K[a+229|0]);c=J[a+8>>2]}g:{if(!(c&2097152))break g;zd(b,J[a+284>>2]-J[a+280>>2]>>3);d=J[a+280>>2];if((d|0)==J[a+284>>2])break g;c=0;while(1){e=O[(c<<3)+d>>3]*1E4;h:{if(R(e)<2147483648){d=~~e;break h}d=-2147483648}zd(b,d);c=c+1|0;d=J[a+280>>2];if(c>>>0>2]-d>>3>>>0)continue;break}}}function Mn(a,b){var c=0,d=0,e=0,f=0;d=fc-96|0;fc=d;J[d+80>>2]=13;a:{b:switch(J[a>>2]){case 0:JG(J[a+8>>2]?791625:792456,b);break a;case 1:J[d>>2]=J[a+8>>2];md(b,793328,d);break a;case 2:O[d+16>>3]=O[a+8>>3];Yi(b, +794012,d+16|0);break a;case 3:bi(40,b);a=J[a+8>>2];ae(J[a+4>>2],1,J[a>>2],b);bi(41,b);break a;case 4:J[d+32>>2]=J[a+8>>2];md(b,796048,d+32|0);break a;case 5:ae(782256,4,1,b);break a;case 6:bi(91,b);e=1;c=J[a+8>>2];c:{if(J[c+12>>2]<=0)break c;f=c;c=d+80|0;tg(f,0,c);Mn(c,b);yc(c);if(J[J[a+8>>2]+12>>2]<2)break c;while(1){bi(32,b);c=d+80|0;tg(J[a+8>>2],e,c);Mn(c,b);yc(c);e=e+1|0;if((e|0)>2]+12>>2])continue;break}}bi(93,b);break a;case 7:ae(799790,2,1,b);c=J[a+8>>2];if(J[c+16>>2]>0)while(1){J[d+ +48>>2]=J[J[c+4>>2]+(e<<5)>>2];md(b,800476,d+48|0);c=d+80|0;$p(J[a+8>>2],e,c);Mn(c,b);yc(c);e=e+1|0;c=J[a+8>>2];if((e|0)>2])continue;break}ae(801142,3,1,b);break a;case 8:ae(801943,8,1,b);break a;case 9:e=J[a+12>>2];J[d+64>>2]=J[a+8>>2];J[d+68>>2]=e;md(b,802422,d- -64|0);break a;case 10:JG(J[a+8>>2],b);break a;case 11:ae(803280,7,1,b);break a;case 12:ae(804123,5,1,b);break a;case 13:break b;default:break a}ae(804817,6,1,b)}fc=d+96|0}function Iq(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;f=fc-16|0;fc=f;k=J[b+28>>2];J[a+28>>2]=0;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;J[a+4>>2]=J[b+8>>2];a:{b:{c:{if(d){e=Rf(b,f+12|0);if(J[f+12>>2])break b;d=5;break c}e=ee(b,f+12|0);if(J[f+12>>2])break b;d=3}J[a+8>>2]=d;d=0;if(!e)break a;g=Rg(b,f+12|0);if(J[f+12>>2])break b;if((g-5&255)>>>0<=251){J[f+12>>2]=8;break b}H[a+16|0]=g;J[a+12>>2]=e;g=g&255;J[a+20>>2]=J[a+8>>2]+(J[a+4>>2]+P(g,e+1|0)|0);e=kg(b,P(e,g));J[f+12>>2]=e;if(e)break b; +i=fc-16|0;fc=i;l=zg(J[a>>2],i+12|0,K[a+16|0]);d:{if(l)break d;j=K[a+16|0];if(!j)break d;e=0;if(j>>>0>=4){n=j&252;while(1){g=e;e=e+4|0;h=h+4|0;if((n|0)!=(h|0))continue;break}h=i+12|0;h=K[h+(g|3)|0]|(K[h+(g|2)|0]|(K[g+h|0]<<16|K[h+(g|1)|0]<<8))<<8}g=j&3;if(!g)break d;while(1){h=K[(i+12|0)+e|0]|h<<8;e=e+1|0;m=m+1|0;if((g|0)!=(m|0))continue;break}}J[f+12>>2]=l;fc=i+16|0;if(J[f+12>>2])break b;if(!h){J[f+12>>2]=8;break b}e=h-1|0;J[a+24>>2]=e;e:{if(c){b=Oi(b,e,a+32|0);break e}b=kg(b,e)}J[f+12>>2]=b;if(!b)break a}b= +J[a+28>>2];if(b)kc[J[k+8>>2]](k,b);J[a+28>>2]=0;d=J[f+12>>2]}fc=f+16|0;return d}function sk(a,b,c,d){var e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;a:{if(!a|K[a+362|0]&8)break a;if(J[a+388>>2]==89){g=1;break a}b:{if(!c|J[c+48>>2]==6)break b;e=J[c+40>>2];if(J[c+72>>2]|!e|J[a+84>>2]==89)break b;h=J[a+440>>2];J[c+72>>2]=1;J[a+248>>2]=J[a+248>>2]+1;e=lu(a,e,Tk(e),1);J[a+248>>2]=J[a+248>>2]-1;if(J[a+84>>2]==89)H[J[c+40>>2]]=0;J[c+72>>2]=(J[a+440>>2]-h<<1)+2;if(!e)break b;if(rq(e,60))J[c+72>>2]=J[c+72>>2]|1;kc[J[663199]](e)}c:{if(d){if(d>>> +0<15E6)break a;b=J[a+36>>2];if(b)b=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2]|0;else b=0;if(P(b+J[a+444>>2]|0,10)>>>0<=d>>>0)break c;break a}if(b){if(b>>>0<1E3)break a;d=b;c=J[a+36>>2];if(c)b=(J[c+36>>2]+J[c+16>>2]|0)-J[c+12>>2]|0;else b=0;b=P(b+J[a+444>>2]|0,10);if(d>>>0>=b>>>0|b>>>0<=P(J[a+440>>2],3)>>>0)break c;break a}if(c){c=P(J[c+72>>2]/2|0,3);b=J[a+36>>2];if(b)b=(J[b+36>>2]+J[b+16>>2]|0)-J[b+12>>2]|0;else b=0;if(c>>>0>=P(b+J[a+444>>2]|0,10)>>>0)break c;break a}if((J[a+388>>2]&-2)!=26|M[a+440>>2]< +10001)break a}if(J[a+212>>2]){g=1;if(J[a+172>>2]==-1)break a}J[a+84>>2]=89;J[f>>2]=5754;g=1;Hc(0,0,0,a,0,1,89,3,0,0,0,0,32906,f);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}fc=f+16|0;return g}function pca(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;a:{d=J[J[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a;Pp(b,a);g=a-d|0;if((d|0)<5){a=d<<2;while(1){b:switch(d|0){default:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 3:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 2:c=a+b|0;J[c>>2]= +J[c>>2]+J[b>>2];b=b+4|0;case 1:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;break;case 0:break b}g=g-d|0;if((g|0)>0)continue;break}break a}a=d-4|0;h=d&3;i=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}e=0;c=a;if(h)while(1){f=(d<<2)+b|0;J[f>>2]=J[f>>2]+J[b>>2];c=c-1|0;b=b+4|0;e=e+1|0;if((h|0)!=(e|0))continue;break}if(!i)break g;while(1){e=d<<2;f=e+b|0;J[f>>2]=J[f>>2]+J[b>>2];f=e+(b+4|0)|0;J[f>>2]=J[f>>2]+J[b+4>> +2];f=e+(b+8|0)|0;J[f>>2]=J[f>>2]+J[b+8>>2];e=e+(b+12|0)|0;J[e>>2]=J[e>>2]+J[b+12>>2];b=b+16|0;e=(c|0)>4;c=c-4|0;if(e)continue;break}}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}g=g-d|0;if((g|0)>0)continue;break}}}function oDa(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;j=fc-32|0;fc=j;c=J[b>>2];if(c){e=fc-32|0;fc=e;h=J[c+16>>2];J[e+12>>2]=0;i=Dc(h<<2);if((h| +0)>0){f=c+12|0;c=0;while(1){J[699344]=0;DA(e+24|0,f,c);d=J[699344];J[699344]=0;a:{b:{if((d|0)==1)break b;c:{d=J[e+24>>2];if(d){J[e+16>>2]=d;g=J[e+28>>2];J[e+20>>2]=g;if((f|0)==(g|0))break c;J[699344]=0;da(5243,e+16|0,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;B()}J[699344]=0;aa(5145,e+12|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;break a}J[699344]=0;aa(5153,e+12|0,d+8|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break a}a=Z()|0;zc(e+12|0);ba(a|0);B()}g=J[e+12>>2];J[(c<<2)+i>>2]=J[g+8>>2]; +c=c+1|0;if((h|0)!=(c|0))continue;break}}f=0;while(1){d:{d=0;c=f;if((h|0)<=(c|0))break d;while(1){e:{d=J[(c<<2)+i>>2]+d|0;if(!d){d=1;break e}if((c-f|0)==(d|0))break e;c=c+1|0;if((h|0)!=(c|0))continue;break d}break}f=d+f|0;if((d|0)>0)continue}break}uc(i);J[e+12>>2]=0;f:{if(!g)break f;J[699344]=0;c=J[g+4>>2]-1|0;J[g+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)!=1){if(c)break f;J[699344]=0;$(5147,g|0);c=J[699344];J[699344]=0;if((c|0)!=1)break f}ea(0)|0;Bc();B()}fc=e+32|0}Rj(a+12|0,b);fc=j+32|0}function is(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;d=fc+-64|0;fc=d;l=!(K[J[a+11676>>2]+5|0]?K[a+11665|0]:1);f=J[a+11720>>2];g=a+11724|0;e=J[g>>2];if((f|0)!=(b|0)|(e|0)!=(c|0)|l){aN(a,f,e,b,c,d+20|0,d+16|0);e=J[d+20>>2];h=e+J[a+11720>>2]|0;J[d+8>>2]=h;f=J[d+16>>2];g=f+J[g>>2]|0;J[d+12>>2]=g;f=c+f|0;j=b+e|0;if(K[a+11667|0]){J[d+56>>2]=1;e=J[a+11732>>2];J[d+24>>2]=J[a+11728>>2];J[d+28>>2]=e;if(!K[a+20|0])Uu(a,J[a+11736>>2],J[a+11740>>2]);k=Wc(J[a+11644>>2],h);e=Wc(J[a+11648>>2],g);i=fn(a+8|0,g);e= +e+k|0;m=d,n=(Wc(J[J[a>>2]+64>>2],e)+Wc(J[J[a>>2]+72>>2],i)|0)+J[a+11656>>2]|0,J[m+32>>2]=n;m=d,n=(Wc(J[J[a>>2]+68>>2],e)+Wc(J[J[a>>2]+76>>2],i)|0)+J[a+11660>>2]|0,J[m+36>>2]=n;e=J[a+4>>2];kc[J[e>>2]](e,d+24|0);e=J[d+32>>2];k=J[d+36>>2];i=h;h=0;J[a+11704>>2]=i|h;J[a+11708>>2]=g;J[a+11728>>2]=e;J[a+11732>>2]=k;J[a+11712>>2]=h|j;J[a+11716>>2]=f;H[a+11664|0]=1;H[a+11667|0]=0}if(K[a+11744|0])by(a,a+8|0,d+8|0,j,f,0);J[a+11748>>2]=2;H[a+11744|0]=1;g=J[d+12>>2];J[a+11752>>2]=J[d+8>>2];J[a+11756>>2]=g;J[a+ +11760>>2]=j;J[a+11764>>2]=f;if(l)ay(a+8|0,J[a+11668>>2],J[a+11672>>2],J[a+11676>>2],J[a+11680>>2],0);J[a+11724>>2]=c;J[a+11720>>2]=b}fc=d- -64|0}function XZ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{e=J[c+52>>2];f=J[e+8>>2];b:{if((f|0)>0){g=J[e>>2];while(1){c:{i=J[g+(d<<2)>>2];if(J[i+4>>2]|!(O[b+16>>3]>=O[i+16>>3])|(!(O[b+24>>3]>=O[i+24>>3])|!(O[b+32>>3]<=O[i+32>>3])))break c;if(!(O[b+40>>3]<=O[i+40>>3]))break c;XZ(a,b,i);break b}d=d+1|0;if((f|0)!=(d|0))continue;break}}d:{e:{f:switch(J[c>>2]){case 0:g:{if(J[c+ +8>>2]-1>>>0>=2){if((f|0)>0)break g;Pn(e,0,b);break b}if((f|0)<=0){Pn(e,0,b);break b}h=O[b+32>>3];g=J[e>>2];d=0;while(1){a=J[g+(d<<2)>>2];if(h>(O[a+16>>3]+O[a+32>>3])*.5)break d;d=d+1|0;if((f|0)!=(d|0))continue;break}break e}h=O[b+16>>3];g=J[e>>2];d=0;while(1){a=J[g+(d<<2)>>2];if(h<(O[a+16>>3]+O[a+32>>3])*.5)break d;d=d+1|0;if((f|0)!=(d|0))continue;break}break e;case 1:break f;default:break a}h:{if(J[c+8>>2]<=1){if((f|0)>0)break h;Pn(e,0,b);break b}if((f|0)<=0){Pn(e,0,b);break b}h=O[b+40>>3];g=J[e>> +2];d=0;while(1){a=J[g+(d<<2)>>2];if(h>(O[a+24>>3]+O[a+40>>3])*.5)break d;d=d+1|0;if((f|0)!=(d|0))continue;break}break e}h=O[b+24>>3];g=J[e>>2];d=0;while(1){a=J[g+(d<<2)>>2];if(h<(O[a+24>>3]+O[a+40>>3])*.5)break d;d=d+1|0;if((f|0)!=(d|0))continue;break}}d=f}Pn(e,d,b)}J[c+4>>2]=0}}function K7(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=fc-16|0;fc=i;J[i+12>>2]=0;a:{if(!a){d=33;break a}d=6;if(!b|!c)break a;d=0;if((b|0)==(c|0))break a;e=J[c+8>>2];g=e>>31|1;f=J[b+8>>2];h=f>>31|1;if(!J[b+12>>2]){a=J[b+ +4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;if((g|0)==(h|0))break a;J[c+8>>2]=0-J[c+8>>2];break a}d=f>>31;f=(d^f)-d|0;d=P(f,J[b>>2]);j=J[a>>2];a=J[c+12>>2];b:{c:{if(a){k=e>>31;e=P(J[c>>2],(e^k)-k|0);if((e|0)==(d|0))break b;a=N7(j,e,d,a,i+12|0);break c}a=qN(j,d,i+12|0)}J[c+12>>2]=a}d:{if(J[i+12>>2])break d;e=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=e;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;e=J[b+20>>2];J[c+16>>2]= +J[b+16>>2];J[c+20>>2]=e;J[c+12>>2]=a;if((g|0)==(h|0)){xc(a,J[b+12>>2],d);break d}c=J[c>>2];if(!c)break d;g=0;e=0-f|0;a=P(f,c-1|0)+a|0;b=J[b+12>>2];h=c&3;e:{if(!h){d=c;break e}d=c;while(1){d=d-1|0;a=xc(a,b,f)+e|0;b=b+f|0;g=g+1|0;if((h|0)!=(g|0))continue;break}}if(c>>>0<4)break d;while(1){g=b+f|0;h=g+f|0;c=h+f|0;a=xc(xc(xc(xc(a,b,f)+e|0,g,f)+e|0,h,f)+e|0,c,f)+e|0;b=c+f|0;d=d-4|0;if(d)continue;break}}d=J[i+12>>2]}fc=i+16|0;return d}function Dja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+584>>2];if(d){e= +J[d+52>>2];if(!e)break a;b:{c:{d:{e:{f:{g:{h:{i:switch(b-292|0){default:j:switch(b-34908|0){case 3:break e;case 2:break f;case 1:break g;case 0:break h;default:break j}k:switch(b-65536|0){case 0:J[d+4>>2]=J[c>>2];return 1;case 4:break k;default:break d}J[d+76>>2]=J[c>>2];return 1;case 0:if(L[a+88>>1]!=3)break b;J[d+28>>2]=J[c>>2];break b;case 1:if(L[a+88>>1]!=4)break b;J[d+28>>2]=J[c>>2];break b;case 35:I[d+16>>1]=J[c>>2];break b;case 36:break i;case 34:break c;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:break d}J[d+ +20>>2]=J[c>>2];break b}J[d+32>>2]=J[c>>2];break b}cw(d+36|0,J[c>>2]);break b}J[d+40>>2]=J[c>>2];break b}cw(d+44|0,J[c>>2]);break b}return kc[e|0](a,b,c)|0}J[d+24>>2]=J[c>>2]}b=Sf(a,b);if(!b)return 0;b=L[b+12>>1];c=(b>>>3&8188)+a|0;J[c+40>>2]=J[c+40>>2]|1<>2]=J[a+12>>2]|8;return 1}fa(79455,70539,1164,95722);B()}fa(79668,70539,1165,95722);B()}function qK(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=fc-16|0;fc=g;a:{b:{f=O[b>>3];if(f!=1|O[b+8>>3]!= +0|(O[b+16>>3]!=0|O[b+24>>3]!=1))break b;if(e)break b;f=O[b+32>>3];if(!(f==0&O[b+40>>3]==0)){O[c>>3]=f;O[d>>3]=O[b+40>>3]}b=J[a+104>>2];kc[J[J[b>>2]+404>>2]](b)|0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=1072693248;J[a+128>>2]=0;J[a+132>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=1072693248;J[a+152>>2]=0;J[a+156>>2]=0;break a}c:{if(f!=O[a+112>>3])break c;h=O[a+120>>3];i=O[b+8>>3];if(h!=i)break c;j=O[b+16>>3];if(j!=O[a+128>>3])break c;k=O[a+136>>3];l=O[b+24>>3];if(k!=l)break c; +m=O[a+144>>3];n=O[b+32>>3];if(m!=n)break c;o=O[a+152>>3];p=O[b+40>>3];if(e|o!=p)break c;f=1/(f*l-j*i);O[c>>3]=f*((n-m)*k-h*(p-o));O[d>>3]=f*((O[b+40>>3]-O[a+152>>3])*O[a+112>>3]-O[a+128>>3]*(O[b+32>>3]-O[a+144>>3]));break a}c=J[a+104>>2];O[g+8>>3]=O[b+32>>3]/72*25.4;O[g>>3]=O[b+40>>3]/72*25.4;kc[J[J[c>>2]+396>>2]](c,b,b+8|0,b+16|0,b+24|0,g+8|0,g)|0;O[a+112>>3]=O[b>>3];O[a+120>>3]=O[b+8>>3];O[a+128>>3]=O[b+16>>3];O[a+136>>3]=O[b+24>>3];O[a+144>>3]=O[b+32>>3];O[a+152>>3]=O[b+40>>3]}fc=g+16|0}function Lv(a, +b,c){var d=0,e=0,f=0,g=0,h=0;e=R(O[a+608>>3]);if(e>.01)f=O[a+560>>3];else f=O[a+32>>3];h=f;a:{if(e>.01){e=R(O[a+608>>3]);f=O[a+576>>3];break a}f=O[a+40>>3]}b:{if(e>.01){e=R(O[a+608>>3]);g=O[a+568>>3];break b}g=O[a+8>>3]}if(e>.01)e=O[a+584>>3];else e=O[a+16>>3];Tc(b,2460776,-1);if(R(O[a+608>>3])>.01){Tc(b,2460808,-1);d=O[a+608>>3]*6E4;c:{if(R(d)<2147483648){a=~~d;break c}a=-2147483648}jh(b,a);Tc(b,2453360,-1)}Tc(b,2453660,-1);if(K[c|0]){Tc(b,2460920,-1);d=h*36E3;d:{if(R(d)<0x7fffffffffffffff){a=~~d>>> +0;if(R(d)>=1)c=~~(d>0?T(V(d*2.3283064365386963E-10),4294967295):W((d-+(~~d>>>0>>>0))*2.3283064365386963E-10))>>>0;else c=0;break d}a=0;c=-2147483648}Rz(b,a,c);Tc(b,2452468,-1);d=g*36E3;e:{if(R(d)<0x7fffffffffffffff){a=~~d>>>0;if(R(d)>=1)c=~~(d>0?T(V(d*2.3283064365386963E-10),4294967295):W((d-+(~~d>>>0>>>0))*2.3283064365386963E-10))>>>0;else c=0;break e}a=0;c=-2147483648}Rz(b,a,c);a=2452492}else a=2460836;Tc(b,a,-1);Tc(b,2460964,-1);Tc(b,2454356,-1);f=(f-h)*36E3;f:{if(f<4294967296&f>=0){a=~~f>>>0; +break f}a=0}Oj(b,a);Tc(b,2454380,-1);e=(e-g)*36E3;g:{if(e<4294967296&e>=0){a=~~e>>>0;break g}a=0}Oj(b,a);Tc(b,2452492,-1);Tc(b,2460992,-1)}function en(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;f=fc-16|0;fc=f;i=J[a+100>>2];J[f+12>>2]=0;m=L[a+340>>1];a:{if(!m)break a;g=-1;h=-1;k=-1;l=-1;j=J[a+356>>2];e=j;while(1){b:{if(!L[e+8>>1]|L[e+6>>1]!=(b|0))break b;c:switch(L[e>>1]){case 0:case 2:g=d;break b;case 1:if(!L[e+4>>1]){k=d;break b}l=L[e+2>>1]?l:d;break b;case 3:break c; +default:break b}n=L[e+4>>1]&1023;if((h|0)!=-1&(n|0)!=9)break b;o=L[e+2>>1];if(o>>>0>10|!(1<=0){if((d|0)>=0){b=1712;if(!p)break f}e=0;d=P(h,20)+j|0;g=L[d+2>>1];if(g>>>0>10)break a;b=1713;if(1<=0)break f;e=0;b=1713;d=g;if((d|0)<0)break a}if(!j)break d;d=P(d,20)+j|0}g:{if(J[d+16>>2])break g;g=J[a+368>>2];e=0;a=_c(i,1,0,L[d+8>>1],0,f+12|0);J[d+16>>2]= +a;h:{if(J[f+12>>2])break h;h=yd(g,J[d+12>>2]);J[f+12>>2]=h;a=J[d+16>>2];if(h)break h;a=zg(g,a,L[d+8>>1]);J[f+12>>2]=a;if(!a)break g;a=J[d+16>>2]}if(a)kc[J[i+8>>2]](i,a);I[d+8>>1]=0;J[d+16>>2]=0;break a}e=kc[b|0](d,i)|0;break a}e=0}J[c>>2]=e;fc=f+16|0;return J[f+12>>2]}function Qea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+584>>2];a:{b:switch(b-512|0){case 2:J[d+200>>2]=J[c>>2];break a;case 18:H[d+207|0]=1;e=J[c>>2];H[d+208|0]=e;c=J[c+4>>2];H[d+209|0]=c;I[a+206>>1]=c&255;I[a+204>>1]=e&255;break a; +case 7:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Uc(J[a+628>>2],97044,88407,0);return 0}H[d+211|0]=e;c=J[c+4>>2];J[d+216>>2]=J[c>>2];if((e|0)==1)break a;J[d+220>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+224>>2]=J[c+8>>2];break a;case 8:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Uc(J[a+628>>2],97044,88487,0);return 0}H[d+212|0]=e;c=J[c+4>>2];J[d+228>>2]=J[c>>2];if((e|0)==1)break a;J[d+232>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+236>>2]=J[c+8>>2];break a;case 9:e=J[c>>2];if(!e)break a;if(e>>>0>=4){Uc(J[a+628>>2],97044, +88602,0);return 0}H[d+213|0]=e;c=J[c+4>>2];J[d+240>>2]=J[c>>2];if((e|0)==1)break a;J[d+244>>2]=J[c+4>>2];if((e|0)==2)break a;J[d+248>>2]=J[c+8>>2];break a;case 0:H[d+204|0]=J[c>>2];break a;case 3:I[d+300>>1]=J[c>>2];break a;default:return kc[J[d+164>>2]](a,b,c)|0;case 1:break b}J[d+196>>2]=J[c>>2]}c=L[Sf(a,b)+12>>1];b=(L[Sf(a,b)+12>>1]>>>3&8188)+a|0;J[b+40>>2]=J[b+40>>2]|1<>2]=J[a+12>>2]|8;return 1}function $Ba(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=fc-48|0;fc=e;f=wt(180); +J[699344]=0;h=_(5155,f|0)|0;g=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{if((g|0)!=1){J[a>>2]=0;vd(a,h);J[699344]=0;aa(5153,h+44|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;f=0;J[699344]=0;b=_(5252,e+12|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break f;g=J[c>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;f=J[699344];J[699344]=0;if((f|0)==1)break e;f=J[c>>2]}J[699344]=0;J[e+8>>2]=f;ia(5157,h|0,b|0,e+8|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;a=J[e+8>>2];J[e+8>>2]=0;h:{if(!a)break h; +J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break h;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[b+24>>2]=2392964;J[b>>2]=2392932;a=J[b+28>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+28>>2]=0}J[b+16>>2]=2392964;a=J[b+20>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[b+20>>2]=0}wc(b+8|0);fc=e+48|0;return}a=Z()|0;Gm(f);ba(a|0);B()}c=Z()|0;break b}c=Z()|0;break b}c=Z()|0;break c}c=Z()| +0;zc(e+8|0)}Ed(b)}zc(a);ba(c|0);B()}ea(0)|0;Bc();B()}function U7(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;a:{if(!a)break a;b=L[a+2>>1];c=b<<16>>16;if((c|0)<=0)break a;h=2;if((c|0)==1)break a;j=J[a+4>>2];k=j+(b<<3)|0;b=j+8|0;d=J[j>>2];e=d;f=j;g=J[f+4>>2];c=g;while(1){i=J[f+12>>2];c=(c|0)<(i|0)?i:c;g=(g|0)>(i|0)?i:g;f=J[f+8>>2];e=(f|0)>(e|0)?f:e;d=(f|0)<(d|0)?f:d;f=b;b=b+8|0;if(k>>>0>b>>>0)continue;break}if((d|0)==(e|0)|(c|0)==(g|0)|((c|0)>16777216|(e|0)>16777216))break a; +if((d|0)<-16777216|(g|0)<-16777216)break a;m=I[a>>1];if((m|0)>0){f=0;b=e>>31;e=(b^e)-b|0;b=d>>31;b=17-S(e|(b^d)-b)|0;h=(b|0)>0?b:0;b=17-S(c-g|0)|0;i=(b|0)>0?b:0;p=J[a+12>>2];b=0;k=0;while(1){e=I[(k<<1)+p>>1];b:{if((e|0)<(b|0))break b;a=(e<<3)+j|0;c=J[a>>2]>>h;a=J[a+4>>2]>>i;c:{if(!((e-b|0)+1&1)){g=a;a=b;break c}d=c;c=(b<<3)+j|0;g=J[c+4>>2]>>i;c=J[c>>2]>>h;f=P(g-a|0,d+c|0)+f|0;a=b+1|0}if((b|0)==(e|0))break b;while(1){n=a+1|0;d=(n<<3)+j|0;b=J[d+4>>2]>>i;l=(a<<3)+j|0;o=J[l+4>>2]>>i;d=J[d>>2]>>h;l=J[l>> +2]>>h;f=P(b-o|0,d+l|0)+(P(c+l|0,o-g|0)+f|0)|0;a=a+2|0;c=d;g=b;if((e|0)!=(n|0))continue;break}}b=e+1|0;k=k+1|0;if((m|0)!=(k|0))continue;break}h=1;if((f|0)>0)break a;h=0;if(f)break a}h=2}return h}function S$(a,b,c){var d=0,e=0,f=0,g=0;e=fc-48|0;fc=e;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;a:{if(J[b>>2]==7){b:{if(J[Ec(J[b+8>>2],810403,e+32|0,0)>>2]==3){d=vc(12);J[699344]=0;c=aa(3354,d|0,J[e+40>>2])|0;f=J[699344];J[699344]=0;if((f|0)!=1)break b;break a}d=e+32|0;yc(d);if(J[Ec(J[b+8>>2],810784,d,0)>>2]== +3){d=vc(12);J[699344]=0;c=aa(3354,d|0,J[e+40>>2])|0;f=J[699344];J[699344]=0;if((f|0)!=1)break b;break a}if(!(!c|J[c>>2]!=3)){d=vc(12);c=J[c+8>>2];J[699344]=0;c=aa(3354,d|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break b;break a}d=vc(8);J[699344]=0;f=aa(3349,d|0,811128)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;d=vc(12);J[699344]=0;c=aa(3354,d|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;uc(Zc(f))}yc(e+32|0);c:{if(J[Ec(J[b+8>>2],836797,e+16|0,0)>>2]==7){if(J[Ke(J[e+24>>2],810784,e)>> +2]==9){b=J[a+152>>2];if(!b){d=vc(16);J[699344]=0;b=_(3352,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[a+152>>2]=b}d=vc(24);J[d>>2]=c;J[d+8>>2]=13;J[699344]=0;aa(3448,e|0,d+8|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){sd(b,d);yc(e);break c}break a}uc(ld(c));yc(e);break c}uc(ld(c))}yc(e+16|0)}fc=e+48|0;return}a=Z()|0;uc(d);ba(a|0);B()}function tca(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;a:{d=J[J[a+584>>2]+4>>2];a=(c|0)/4|0;if((d|0)>=(a|0))break a;g=a-d|0;if((d|0)<5){a=d<<2;while(1){b:switch(d| +0){default:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 3:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 2:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;case 1:c=a+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0;break;case 0:break b}g=g-d|0;if((g|0)>0)continue;break}break a}a=d-4|0;h=d&3;i=d-5>>>0>2;while(1){c:{d:{e:{f:{g:{h:switch(d|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}e=0;c=a;if(h)while(1){f=(d<<2)+b|0;J[f>>2]=J[f>>2]+J[b>>2];c=c-1|0;b=b+4|0;e=e+1|0;if((h|0)!= +(e|0))continue;break}if(!i)break g;while(1){e=d<<2;f=e+b|0;J[f>>2]=J[f>>2]+J[b>>2];f=e+(b+4|0)|0;J[f>>2]=J[f>>2]+J[b+4>>2];f=e+(b+8|0)|0;J[f>>2]=J[f>>2]+J[b+8>>2];e=e+(b+12|0)|0;J[e>>2]=J[e>>2]+J[b+12>>2];b=b+16|0;e=(c|0)>4;c=c-4|0;if(e)continue;break}}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}c=(d<<2)+b|0;J[c>>2]=J[c>>2]+J[b>>2];b=b+4|0}g=g-d|0;if((g|0)>0)continue;break}}}function hsa(a,b,c){a=a|0;b=b|0; +c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;J[a+8>>2]=1;J[a+4>>2]=0;J[a>>2]=2436588;a:{b:{c:{d:{e:{f:{d=J[b>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break f;f=J[b>>2]}J[a+16>>2]=0;J[a+12>>2]=f;b=J[685894];J[a+24>>2]=0;J[a+28>>2]=0;J[a+20>>2]=b;J[699344]=0;ia(5704,e+4|0,0,0,c|0);b=J[699344];J[699344]=0;c=a+16|0;if((b|0)==1)break e;b=J[e+4>>2];g:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,e+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break g;b=Z()|0;break c}J[e+ +12>>2]=0}J[699344]=0;aa(5153,c|0,e+12|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break h;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}ea(0)|0;Bc();B()}b=Z()|0;zc(e+12|0);break c}b=J[a+16>>2];J[a+20>>2]=J[(b?b+12|0:2743576)>>2];wc(e+4|0);b=J[a+12>>2];d=J[J[b>>2]+16>>2];J[699344]=0;b=_(d|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[a+32>>2]=b;fc= +e+16|0;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break b}wc(e+4|0)}wc(c);zc(a+12|0)}nd(a);ba(b|0);B()}function DWa(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;j=J[a+372>>2];c=J[a+420>>2];d=J[a+24>>2];J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2];if(!(J[c+36>>2]|!J[a+236>>2]))ZB(c,J[c+40>>2]);a:{e=J[a+316>>2];if(J[c+108>>2]|(e|0)<=0)break a;while(1){if(!g){f=J[c+16>>2];g=J[c+12>>2]|(I[J[(i<<2)+b>>2]>>1]>>>j&1)<<23-f;d=f+1|0;if((f|0)>=7){while(1){e=J[c+112>>2];J[c+112>>2]=e+1;H[e|0]=g>>> +16;e=J[c+116>>2]-1|0;J[c+116>>2]=e;if(!e){f=J[c+120>>2];e=J[f+24>>2];if(!(kc[J[e+12>>2]](f)|0)){f=J[c+120>>2];h=J[f>>2];J[h+20>>2]=25;kc[J[h>>2]](f)}J[c+112>>2]=J[e>>2];J[c+116>>2]=J[e+4>>2]}e=d;b:{if((g&16711680)!=16711680)break b;d=J[c+112>>2];J[c+112>>2]=d+1;H[d|0]=0;d=J[c+116>>2]-1|0;J[c+116>>2]=d;if(d)break b;f=J[c+120>>2];d=J[f+24>>2];if(!(kc[J[d+12>>2]](f)|0)){f=J[c+120>>2];h=J[f>>2];J[h+20>>2]=25;kc[J[h>>2]](f)}J[c+112>>2]=J[d>>2];J[c+116>>2]=J[d+4>>2]}d=e-8|0;g=g<<8;if((e|0)>15)continue; +break}e=J[a+316>>2]}J[c+16>>2]=d;J[c+12>>2]=g}i=i+1|0;if((i|0)>=(e|0))break a;g=J[c+108>>2];continue}}b=J[a+24>>2];J[b>>2]=J[c+112>>2];J[b+4>>2]=J[c+116>>2];a=J[a+236>>2];if(a){b=J[c+36>>2];if(b)a=b;else J[c+40>>2]=J[c+40>>2]+1&7;J[c+36>>2]=a-1}return 1}function gg(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+28>>2];a:{if(J[a>>2]){c=b;b=J[a+32>>2];if((c|0)>=(b|0)){b=b<<1;J[a+32>>2]=b;i=a,j=Wd(J[a+24>>2],b,4),J[i+24>>2]=j}b=vc(24);g=O[a+16>>3];f=O[a+8>>3];J[b+16>>2]=16;J[699344]=0;c=aa(3551,16, +8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b>>2]=c;c=J[b+16>>2];J[699344]=0;c=aa(3551,c|0,8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b+4>>2]=c;c=J[b+16>>2];J[699344]=0;c=aa(3551,c|0,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b+12>>2]=1;J[b+8>>2]=c;O[J[b>>2]>>3]=f;O[J[b+4>>2]>>3]=g;J[c>>2]=0;J[b+20>>2]=0;c=J[a+28>>2];J[J[a+24>>2]+(c<<2)>>2]=b;J[a>>2]=0;b=c+1|0;J[a+28>>2]=b}a=J[(J[a+24>>2]+(b<<2)|0)-4>>2];b=J[a+4>>2];c=J[a>>2];g=O[c>>3];d=J[a+12>>2];e=d-1<<3;b:{c:{if(g!=O[e+ +c>>3]){f=O[b>>3];break c}f=O[b>>3];if(f==O[b+e>>3])break b}e=J[a+16>>2];d:{if((e|0)>(d|0)){e=J[a+8>>2];break d}b=e<<1;J[a+16>>2]=b;i=a,j=Wd(c,b,8),J[i>>2]=j;i=a,j=Wd(J[a+4>>2],J[a+16>>2],8),J[i+4>>2]=j;e=Wd(J[a+8>>2],J[a+16>>2],4);J[a+8>>2]=e;b=J[a+4>>2];c=J[a>>2];d=J[a+12>>2]}h=c;c=d<<3;O[h+c>>3]=g;O[b+c>>3]=f;J[(d<<2)+e>>2]=0;J[a+12>>2]=J[a+12>>2]+1}J[a+20>>2]=1;return}a=Z()|0;uc(b);ba(a|0);B()}function DH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-32|0;fc=d;J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]= +0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2426580;ma(5634,d+12|0,d+16|0,b|0,0,((c|0)<0?-1:c)|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){J[d+16>>2]=2426484;b=J[d+28>>2];if(b){H[b|0]=0;uc(J[d+28>>2])}J[d+28>>2]=0;c=d+16|0;nd(c);b=J[d+12>>2];d:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,c|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;break c}J[d+16>>2]=0}J[699344]=0;aa(5153,a|0,d+16|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[d+16>>2];J[d+16>>2]=0;if(!b)break e;J[699344]= +0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}c=Z()|0;zc(d+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[d+12>>2];J[d+12>>2]=0;f:{if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=d+32|0;return a|0}c=Z()|0;rh(d+16|0);break b}zc(d+12|0)}wc(a); +ba(c|0);B()}ea(0)|0;Bc();B()}function mca(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;a:{e=J[J[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0))break a;h=a-e|0;c=((h<<1)+b|0)-2|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 3:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 2:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;case 1:b=a+c|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0;break;case 0:break b}h=h-e|0;if((h|0)>0)continue;break}break a}a=e-4|0;i=e&3;j=e-5>>> +0>2;g=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}d=0;b=a;if(i)while(1){f=c+g|0;I[f>>1]=L[f>>1]-L[c>>1];b=b-1|0;c=c-2|0;d=d+1|0;if((i|0)!=(d|0))continue;break}if(!j)break g;while(1){d=c+g|0;I[d>>1]=L[d>>1]-L[c>>1];d=c-2|0;f=d+g|0;I[f>>1]=L[f>>1]-L[d>>1];d=c-4|0;f=d+g|0;I[f>>1]=L[f>>1]-L[d>>1];d=c-6|0;f=d+g|0;I[f>>1]=L[f>>1]-L[d>>1];c=c-8|0;d=(b|0)>4;b=b-4|0;if(d)continue;break}}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1]; +c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}b=c+g|0;I[b>>1]=L[b>>1]-L[c>>1];c=c-2|0}h=h-e|0;if((h|0)>0)continue;break}}}function Ud(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+464>>2];c=J[e+12>>2];a:{if((c|0)>=32768){d=J[e+16>>2];break a}d=J[e+16>>2];while(1){c=d-1|0;J[e+16>>2]=c;b:{if((d|0)>0){d=c;break b}f=0;if(!J[a+436>>2]){c=J[a+24>>2];c:{if(J[c+4>>2])break c;if(kc[J[c+12>>2]](a)|0)break c;d=J[a>>2];J[d+20>>2]=25;kc[J[d>>2]](a)}J[c+4>>2]=J[c+4>>2]-1; +d=c;c=J[c>>2];J[d>>2]=c+1;f=K[c|0];d:{if((f|0)!=255)break d;while(1){c=J[a+24>>2];e:{if(J[c+4>>2])break e;if(kc[J[c+12>>2]](a)|0)break e;d=J[a>>2];J[d+20>>2]=25;kc[J[d>>2]](a)}J[c+4>>2]=J[c+4>>2]-1;d=c;c=J[c>>2];J[d>>2]=c+1;f=255;c=K[c|0];if((c|0)==255)continue;break}if(!c)break d;J[a+436>>2]=c;f=0}c=J[e+16>>2]}d=c+8|0;J[e+16>>2]=d;J[e+8>>2]=J[e+8>>2]<<8|f;if((c|0)>-9)break b;d=c+9|0;J[e+16>>2]=d;if(d)break b;J[e+12>>2]=32768;d=0}c=J[e+12>>2]<<1;J[e+12>>2]=c;if((c|0)<32768)continue;break}}a=K[b|0]; +f=J[((a&127)<<2)+55984>>2];g=f>>16;c=c-g|0;J[e+12>>2]=c;h=f>>>8|0;i=J[e+8>>2];d=c<=(d|0)){J[e+12>>2]=g;J[e+8>>2]=i-d;d=a&128;if((c|0)<(g|0)){H[b|0]=d^h;break f}H[b|0]=d^f;a=a^128;break f}if(c>>>0>32767)break f;d=a&128;if((c|0)<(g|0)){H[b|0]=d^f;a=a^128;break f}H[b|0]=d^h}return a>>>7|0}function M$(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;k=fc-32|0;fc=k;f=b&-256;m=c&-256;a:{if(f>>>0>m>>>0)break a;n=e-b|0;o=c&255;p=b&255;l=d-1|0;if(!l)while(1){e=b>>>0>f>>>0? +p:0;g=(f|255)>>>0<=c>>>0?255:o;if(e>>>0<=g>>>0){l=J[a+16>>2];h=f+n|0;while(1){i=l+(e<<3)|0;b:{if(J[i>>2]){J[k+4>>2]=d;J[k>>2]=f;Cc(1,-1,793947,k);break b}J[i+4>>2]=e+h}i=(e|0)!=(g|0);e=e+1|0;if(i)continue;break}}f=f+256|0;if(m>>>0>=f>>>0)continue;break a}while(1){e=J[a+16>>2];g=l;while(1){e=((f>>>(g<<3)&255)<<3)+e|0;if(!J[e>>2]){J[e>>2]=1;q=e,r=Gd(256,8),J[q+4>>2]=r;i=0;while(1){h=i<<3;J[h+J[e+4>>2]>>2]=0;J[(h+J[e+4>>2]|0)+4>>2]=0;j=h|8;J[j+J[e+4>>2]>>2]=0;J[(j+J[e+4>>2]|0)+4>>2]=0;j=h|16;J[j+J[e+ +4>>2]>>2]=0;J[(j+J[e+4>>2]|0)+4>>2]=0;h=h|24;J[h+J[e+4>>2]>>2]=0;J[(h+J[e+4>>2]|0)+4>>2]=0;i=i+4|0;if((i|0)!=256)continue;break}}e=J[e+4>>2];g=g-1|0;if(g)continue;break}g=b>>>0>f>>>0?p:0;h=(f|255)>>>0<=c>>>0?255:o;if(g>>>0<=h>>>0){i=f+n|0;while(1){j=(g<<3)+e|0;c:{if(J[j>>2]){J[k+20>>2]=d;J[k+16>>2]=f;Cc(1,-1,793947,k+16|0);break c}J[j+4>>2]=g+i}j=(g|0)!=(h|0);g=g+1|0;if(j)continue;break}}f=f+256|0;if(m>>>0>=f>>>0)continue;break}}fc=k+32|0}function zha(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,m=0;k=fc-16|0;fc=k;a:{if(a){a=mR(c);b:{if(b){b=k+4|0;kc[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;kc[J[J[a>>2]+32>>2]](b,a);break b}b=k+4|0;kc[J[J[a>>2]+40>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;kc[J[J[a>>2]+28>>2]](b,a)}vn(i,b);df(b);l=e,m=kc[J[J[a>>2]+12>>2]](a)|0,J[l>>2]=m;l=f,m=kc[J[J[a>>2]+16>>2]](a)|0,J[l>>2]=m;b=k+4|0;kc[J[J[a>>2]+20>>2]](b,a);Fi(g,b);jd(b); +kc[J[J[a>>2]+24>>2]](b,a);vn(h,b);df(b);a=kc[J[J[a>>2]+36>>2]](a)|0;break a}a=lR(c);c:{if(b){b=k+4|0;kc[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;kc[J[J[a>>2]+32>>2]](b,a);break c}b=k+4|0;kc[J[J[a>>2]+40>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;kc[J[J[a>>2]+28>>2]](b,a)}vn(i,b);df(b);l=e,m=kc[J[J[a>>2]+12>>2]](a)|0,J[l>>2]=m;l=f,m=kc[J[J[a>>2]+16>>2]](a)|0,J[l>>2]=m;b=k+4|0;kc[J[J[a>>2]+20>>2]](b,a);Fi(g,b);jd(b); +kc[J[J[a>>2]+24>>2]](b,a);vn(h,b);df(b);a=kc[J[J[a>>2]+36>>2]](a)|0}J[j>>2]=a;fc=k+16|0}function Y1(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(!c)break a;b:{if(b){if(J[b+4>>2]!=1)break a;e=lx(J[b+32>>2],J[c+8>>2]);break b}if(a){e=lx(a,J[c+8>>2]);break b}a=J[c+20>>2];if(a){e=lx(J[a+32>>2],J[c+8>>2]);break b}a=J[c+12>>2];if(a){e=lx(J[a+32>>2],J[c+8>>2]);break b}e=lx(0,J[c+8>>2])}if(!e)break a;J[e+20>>2]=b;c:{d:{if(!b)break d;a=J[c+36>>2];if(!a)break d;f=Il(J[b+32>>2],b,J[a+12>>2]);if(!f){g=Il(J[c+32>>2], +J[c+20>>2],J[J[c+36>>2]+12>>2]);if(!g)break c;a=b;while(1){f=d;d=a;a=J[a+20>>2];if(a)continue;break}f=Gl(J[b+32>>2]==(d|0)?f:d,J[g+8>>2],J[g+12>>2]);break d}g=J[c+36>>2];a=J[g+8>>2];d=J[f+8>>2];if((a|0)==(d|0))break d;e:{if(!d|!a)break e;while(1){h=K[d|0];if((h|0)!=K[a|0])break e;a=a+1|0;d=d+1|0;if(h)continue;break}break d}f=X1(J[b+32>>2],b,g)}J[e+36>>2]=f}a=J[c+12>>2];f:{if(!a)break f;d=W1(a,J[e+32>>2],e);J[e+16>>2]=0;J[e+12>>2]=d;if(!d)break f;while(1){a=d;d=J[a+24>>2];if(d)continue;break}J[e+16>> +2]=a}g:{if(!b|!J[b+32>>2])break g;a=J[c+32>>2];if(!a|!J[a+64>>2])break g;d=J[c+20>>2];if(!d)break g;if(!pC(a,d,c))break g;a=mx(J[c+32>>2],J[c+12>>2]);if(!a)break g;ex(0,J[b+32>>2],a,e);kc[J[663199]](a)}d=e}return d}function S_a(a){a=a|0;var b=0;J[a+168>>2]=-780903145;J[a+172>>2]=1071454021;J[a>>2]=1;J[a+4>>2]=23;J[a+176>>2]=0;J[a+112>>2]=0;J[a+116>>2]=8;J[a+104>>2]=0;J[a+108>>2]=0;J[a+8>>2]=1202590843;J[a+12>>2]=1071938273;J[a+96>>2]=529139971;J[a+100>>2]=1071050339;J[a+88>>2]=68719477;J[a+92>>2]= +1070927446;J[a+80>>2]=-597859448;J[a+84>>2]=1070859078;J[a+72>>2]=343597384;J[a+76>>2]=1072252846;b=a- -64|0;J[b>>2]=-343597384;J[b+4>>2]=1068415057;J[a+56>>2]=858993459;J[a+60>>2]=1069757235;J[a+48>>2]=-1717986918;J[a+52>>2]=1069128089;J[a+40>>2]=858993459;J[a+44>>2]=1071854387;J[a+32>>2]=858993459;J[a+36>>2]=1070805811;J[a+24>>2]=-343597384;J[a+28>>2]=1067366481;J[a+16>>2]=1374389535;J[a+20>>2]=1070931640;Ac(a+192|0,0,72);J[a+140>>2]=0;J[a+144>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+124>>2]=0;J[a+ +128>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+248>>2]=0;J[a+252>>2]=1081073664;J[a+232>>2]=0;J[a+236>>2]=1081073664;J[a+224>>2]=0;J[a+228>>2]=1081073664;J[a+216>>2]=0;J[a+220>>2]=1081073664;J[a+208>>2]=8;J[a+184>>2]=1;J[a+188>>2]=23;J[a+264>>2]=0;J[a+268>>2]=0;J[a+120>>2]=0;b=_2();J[a+288>>2]=4;J[a+276>>2]=0;J[a+280>>2]=0;J[a+272>>2]=b}function Oba(a,b,c){var d=0,e=0,f=0;e=fc-272|0;fc=e;if(c)while(1){J[e+256>>2]=f;md(a,198046,e+256|0);J[e+240>>2]=K[b+f|0];md(a,198559,e+240| +0);d=f|1;if(d>>>0>>0){J[e+224>>2]=K[b+d|0];md(a,198559,e+224|0)}d=f|2;if(d>>>0>>0){J[e+208>>2]=K[b+d|0];md(a,198559,e+208|0)}d=f|3;if(d>>>0>>0){J[e+192>>2]=K[b+d|0];md(a,198559,e+192|0)}d=f|4;if(d>>>0>>0){J[e+176>>2]=K[b+d|0];md(a,198559,e+176|0)}d=f|5;if(d>>>0>>0){J[e+160>>2]=K[b+d|0];md(a,198559,e+160|0)}d=f|6;if(d>>>0>>0){J[e+144>>2]=K[b+d|0];md(a,198559,e+144|0)}d=f|7;if(d>>>0>>0){J[e+128>>2]=K[b+d|0];md(a,198559,e+128|0)}d=f|8;if(d>>>0>>0){J[e+112>>2]=K[b+d|0];md(a,198559, +e+112|0)}d=f|9;if(d>>>0>>0){J[e+96>>2]=K[b+d|0];md(a,198559,e+96|0)}d=f|10;if(d>>>0>>0){J[e+80>>2]=K[b+d|0];md(a,198559,e+80|0)}d=f|11;if(d>>>0>>0){J[e+64>>2]=K[b+d|0];md(a,198559,e- -64|0)}d=f|12;if(d>>>0>>0){J[e+48>>2]=K[b+d|0];md(a,198559,e+48|0)}d=f|13;if(d>>>0>>0){J[e+32>>2]=K[b+d|0];md(a,198559,e+32|0)}d=f|14;if(d>>>0>>0){J[e+16>>2]=K[b+d|0];md(a,198559,e+16|0)}d=f|15;if(d>>>0>>0){J[e>>2]=K[b+d|0];md(a,198559,e)}bi(10,a);f=f+16|0;if(f>>>0>>0)continue;break}fc=e+272|0} +function Jea(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;e=fc-16|0;fc=e;J[e+12>>2]=b;if(b>>>0<=1073741807){a:{if((K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1)>>>0>=b>>>0)break a;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;J[e+8>>2]=b;b=fc-16|0;fc=b;g=e+12|0;d=e+8|0;c=M[g>>2]>2];fc=b+16|0;c=J[(c?d:g)>>2];if(c>>>0>=2){c=c+4&-4;d=c-1|0;c=(d|0)==2?c:d}else c=1;if((c|0)==((K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1)|0))break a;f=fc-16|0;fc=f;g=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)- +1|0:1;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;b:{c:{h=c>>>0<2;d:{if(h){i=1;j=c+1|0;b=a;c=J[a>>2];break d}b=c+1|0;e:{if(c>>>0>g>>>0){to(f+8|0,a,b);break e}J[699344]=0;ca(7247,f+8|0,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break c}b=J[f+8>>2];j=J[f+12>>2];c=K[a+11|0]>>>7|0;i=c;if(c)c=J[a>>2];else c=a}if(K[a+11|0]>>>7|0)k=J[a+4>>2];else k=K[a+11|0]&127;Ik(b,c,k+1|0);if(i)uv(c,g+1|0);f:{if(!h){J[a+8>>2]=J[a+8>>2]&-2147483648|j&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=d;J[a>> +2]=b;break f}H[a+11|0]=K[a+11|0]&128|d;H[a+11|0]=K[a+11|0]&127}break b}oa(ea(0)|0)|0;ta()}fc=f+16|0}fc=e+16|0;return}_d(a);B()}function jkb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a=fc-32|0;fc=a;e=a+16|0;J[e+12>>2]=0;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=415588;J[699344]=0;d=ga(3,e|0,b|0,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)a:{b:{if(!d)break b;J[699344]=0;f=J[e+12>>2];b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;c=f>>>0>=1E3?1E3:f;g=_(27,c|0)|0;b=J[699344];J[699344]=0;if((b|0)== +1)break a;J[699344]=0;J[a+12>>2]=0;d=ha(28,e|0,g|0,c|0,a+12|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(!d){uc(g);c=0;break b}J[699344]=0;$(21,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;c:{if(f>>>0<=10){H[a+11|0]=c;b=a;break c}J[699344]=0;f=(c|15)+1|0;b=_(4,f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=f|-2147483648}h=xc(b,g,c)+c|0,i=0,H[h|0]=i;d=K[a+11|0];b=d<<24>>24<0;f=b?J[a>>2]:a;c=b?J[a+4>>2]:d;d=f+c|0;d:{e:{if((c|0)<4)break e;b=f;while(1){c= +Cg(b,60,c-3|0);if(!c)break e;if((K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24))==1735815996)break d;b=c+1|0;c=d-b|0;if((c|0)>3)continue;break}}c=d}uc(g);if(H[a+11|0]<0)uc(J[a>>2]);c=(c|0)!=(d|0)&(c-f|0)!=-1}De(e);fc=a+32|0;return c|0}a=Z()|0;De(e);ba(a|0);B()}function GB(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=fc-48|0;fc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;a:{if((c|0)>=51){e=1;Cc(1,-1,792377,0);break a}b:{c:{if(J[b>>2]!=9)break c;e=J[a+4>>2];h=J[e+8>>2];if((h|0)<=0)break c;f=J[b+8>>2];i=J[b+ +12>>2];j=J[e>>2];e=0;while(1){g=J[(e<<2)+j>>2];if(J[g>>2]==(f|0)&J[g+4>>2]==(i|0))break b;e=e+1|0;if((h|0)!=(e|0))continue;break}}jf(b,J[a>>2],d+32|0,0);d:{if(J[d+32>>2]==6){b=J[d+40>>2];if(J[b+12>>2]>0)break d}e=1;Cc(1,-1,793153,0);yc(d+32|0);break a}Sc(b,0,d+16|0,0);e:{f:{if(J[d+16>>2]!=4)break f;b=J[d+24>>2];if(!Ic(b,793819)){b=J[d+40>>2];if(J[b+12>>2]==2){tg(b,1,d);e=!GB(a,d,c+1|0);yc(d);break e}e=1;Cc(1,-1,793153,0);break e}if(!Ic(b,794721)){e=1;f=J[d+40>>2];if(J[f+12>>2]<2)break e;c=c+1|0;b= +1;while(1){tg(f,b,d);e=GB(a,d,c);yc(d);if(!e)break e;b=b+1|0;f=J[d+40>>2];if((b|0)>2])continue;break}break e}if(Ic(b,795297))break f;e=0;f=J[d+40>>2];if(J[f+12>>2]<2)break e;c=c+1|0;b=1;while(1){tg(f,b,d);e=GB(a,d,c);yc(d);if(e)break e;b=b+1|0;f=J[d+40>>2];if((b|0)>2])continue;break}break e}e=1;Cc(1,-1,793153,0)}yc(d+16|0);yc(d+32|0);break a}e=J[g+20>>2]}fc=d+48|0;return e}function Fua(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;f=fc-16|0;fc=f;d=J[a+8>>2];c=(c|0)<0?d: +b+c|0;g=(c|0)>(d|0)?d:c;a:{if((g|0)<=(b|0)){i=g;break a}i=g;while(1){d=J[a+8>>2];b:{if((d|0)<=(b|0)){b=d;break b}c=J[a+12>>2]+b|0;d=d-b|0;b=g-b|0;b=(b|0)<0?d:b;c:{if((b|0)<=0)break c;e=b+c|0;while(1){d:{b=c;if(!K[c|0])break d;J[f+8>>2]=c;h=kc[J[J[a>>2]+60>>2]](a,f+8|0)|0;c=J[f+8>>2];if((b|0)==(c|0))break d;e:{if(h>>>0>255)break e;d=h<<24>>24;d=(d|0)<-1?h:d;if((d|0)==32|d-9>>>0<5)break e;switch(h-10|0){case 0:case 3:break e;default:break d}}if(c>>>0>>0)continue;break c}break}c=b}b=c;c=J[a+12>>2]; +b=b-c|0;d=J[a+8>>2];if((b|0)>=(d|0))break b;c=b+c|0;e=d-b|0;d=g-b|0;d=(d|0)<0?e:d;f:{if((d|0)<=0){d=c;break f}h=c+d|0;while(1){if(!K[c|0]){d=c;break f}J[f+12>>2]=c;g:{h:{j=kc[J[J[a>>2]+60>>2]](a,f+12|0)|0;if(j>>>0>255)break h;d=J[f+12>>2];if((d|0)==(c|0))break h;e=j<<24>>24;e=(e|0)<-1?j:e;if((e|0)==32|e-9>>>0<5)break h;switch(j-10|0){case 0:case 3:break h;default:break g}}d=c;break f}c=d;if(h>>>0>c>>>0)continue;break}}d=d-J[a+12>>2]|0;c=(d|0)==(b|0);b=c?b+1|0:d;i=c?i:d}if((b|0)<(g|0))continue;break}}fc= +f+16|0;return i|0}function X7(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return;a:{if(!b)break a;e=J[a+16>>2];if((e|0)<=0)break a;c=a+20|0;d=c+(e<<2)|0;while(1){if(J[c>>2]==(b|0)){J[a+16>>2]=e-1;a=d-4|0;if(a>>>0>c>>>0)while(1){J[c>>2]=J[c+4>>2];c=c+4|0;if(a>>>0>c>>>0)continue;break}J[a>>2]=0;i=J[b+8>>2];e=J[b>>2];d=J[b+4>>2];a=e;b:{if(!d)break b;if(J[d+160>>2]==(b|0))J[d+160>>2]=0;a=e;if(!(K[a|0]&2))break b;c=J[d+148>>2];if(!c)break b;g=d+148|0;a=J[d>>2];c:{while(1){if(J[c+8>>2]==(b|0))break c;c= +J[c+4>>2];if(c)continue;break}a=e;break b}f=J[b+12>>2];d:{if(J[f+36>>2]!=1869968492)break d;h=J[b+52>>2];if(!h)break d;kc[J[J[f+56>>2]+20>>2]](h)}f=J[c>>2];h=f?f+4|0:g;g=J[c+4>>2];J[h>>2]=g;J[(g?g:d+152|0)>>2]=f;kc[J[a+8>>2]](a,c);c=J[d+148>>2];e:{if(c)while(1){a=J[c+8>>2];if(J[a+16>>2]==1869968492)break e;c=J[c+4>>2];if(c)continue;break}a=0}J[d+156>>2]=a;a=J[b>>2]}f:{if(!(H[a|0]&1))break f;d=J[b+8>>2];if(!d)break f;c=J[b+16>>2];if(c)while(1){a=J[c+4>>2];Yu(d,J[c+8>>2],b);kc[J[d+8>>2]](d,c);c=a;if(c)continue; +break}J[b+16>>2]=0;J[b+20>>2]=0}a=J[e+28>>2];if(a)kc[a|0](b);kc[J[i+8>>2]](i,b);return}c=c+4|0;if(d>>>0>c>>>0)continue;break}}}function $0(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{h=0;c:{if(!b)break c;h=0;if((c|0)<4)break c;h=Vr(b,c)}g=XK(h);if(g){e=TK();if(!e){se(0,30574);Vn(g);return 0}J[e+364>>2]=1;f=kc[J[663195]](P(J[e+192>>2],12))|0;J[e+344>>2]=f;if(!f)break a;if(a){f=J[e>>2];if((f|0)!=2653196)kc[J[663199]](f);f=kc[J[663195]](128)|0;J[e>>2]=f;if(!f)break a;Ac(f,0,128);f=J[e>>2];d:{if(J[a+108>> +2]==-554844497){xc(f,a,128);break d}xc(f,a,112)}}e:{if(!d){J[e+180>>2]=0;a=BC(e);if(!a)break b;J[a+4>>2]=0;break e}i=e,j=zC(d),J[i+180>>2]=j;a=BC(e);if(!a)break b;d=ox(d);J[a+4>>2]=d;if(!d)break b}J[a>>2]=g;r2(J[g+16>>2],a);f:{g:{g=J[e+40>>2];d=J[e+44>>2];h:{if((g|0)<(d|0)){d=J[e+48>>2];break h}J[e+44>>2]=d<<1;d=kc[J[663200]](J[e+48>>2],d<<3)|0;J[e+48>>2]=d;if(!d)break g;g=J[e+40>>2]}J[(g<<2)+d>>2]=a;J[e+40>>2]=g+1;J[e+36>>2]=a;break f}se(e,0);th(a);J[e+44>>2]=J[e+44>>2]/2}i:{if(!(c?b:0)){J[e+256>> +2]=0;break i}a=J[e+36>>2];if(!a)break i;d=J[a>>2];if(!d)break i;d=vx(J[d+16>>2],a);a=J[e+36>>2];g=J[a+12>>2];f=J[a+16>>2];AC(J[a>>2],c,b);a=J[e+36>>2];ux(J[J[a>>2]+16>>2],a,d,f-g|0)}if(h)Sr(e,h)}return e}Vj(e);Vn(g);return 0}se(e,0);Vn(g);Vj(e);return 0}function cMa(a,b,c,d,e,f,g){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+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;O[a+24>>3]=d;O[a+8>>3]=c;J[a+4>>2]=0;J[a>>2]=b;J[a+64>>2]=0;J[a+68>>2]=0;O[a+40>>3]=g;O[a+32>>3]=f;O[a+16>>3]=e;J[a+56>>2]=0;i=J[b+ +8>>2];if((i|0)>0){l=i&1;j=J[b>>2];a:{if((i|0)==1){b=0;break a}i=i&-2;b=0;while(1){n=h;h=b<<2;m=J[h+j>>2];h=J[j+(h|4)>>2];h=(((n+J[m+44>>2]|0)+(K[m+103|0]!=0)|0)+J[h+44>>2]|0)+(K[h+103|0]!=0)|0;b=b+2|0;k=k+2|0;if((i|0)!=(k|0))continue;break}}if(l){b=J[j+(b<<2)>>2];h=(J[b+44>>2]+h|0)+(K[b+103|0]!=0)|0}J[a+56>>2]=h}r=a,s=Gd(h,4),J[r+48>>2]=s;l=Gd(J[a+56>>2]+1|0,8);J[a+52>>2]=l;o=J[a>>2];if(J[o+8>>2]>0){p=J[a+48>>2];q=J[o>>2];b=0;j=0;while(1){i=J[(j<<2)+q>>2];if(!j)J[a+4>>2]=K[i+100|0];k=J[i+44>>2];b:{if((k| +0)<=0){m=J[i+40>>2];break b}m=J[i+40>>2];n=J[i+32>>2];h=0;while(1){J[(b<<2)+p>>2]=J[(h<<2)+n>>2];O[(b<<3)+l>>3]=O[(h<<3)+m>>3];b=b+1|0;h=h+1|0;k=J[i+44>>2];if((h|0)<(k|0))continue;break}}c=O[(k<<3)+m>>3];O[(b<<3)+l>>3]=c;if(K[i+103|0]){J[(b<<2)+p>>2]=32;b=b+1|0;O[(b<<3)+l>>3]=c}j=j+1|0;if((j|0)>2])continue;break}}J[a+60>>2]=J[(J[a+48>>2]+(J[a+56>>2]<<2)|0)-4>>2]==45;return a|0}function Eha(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,m=0;k=fc- +16|0;fc=k;a:{if(a){a=qR(c);b:{if(b){b=k+4|0;kc[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;kc[J[J[a>>2]+32>>2]](b,a);break b}b=k+4|0;kc[J[J[a>>2]+40>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;kc[J[J[a>>2]+28>>2]](b,a)}Fi(i,b);jd(b);l=e,m=kc[J[J[a>>2]+12>>2]](a)|0,H[l|0]=m;l=f,m=kc[J[J[a>>2]+16>>2]](a)|0,H[l|0]=m;b=k+4|0;kc[J[J[a>>2]+20>>2]](b,a);Fi(g,b);jd(b);kc[J[J[a>>2]+24>>2]](b,a);Fi(h,b);jd(b);a=kc[J[J[a>>2]+36>> +2]](a)|0;break a}a=pR(c);c:{if(b){b=k+4|0;kc[J[J[a>>2]+44>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;kc[J[J[a>>2]+32>>2]](b,a);break c}b=k+4|0;kc[J[J[a>>2]+40>>2]](b,a);c=J[k+4>>2];H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;kc[J[J[a>>2]+28>>2]](b,a)}Fi(i,b);jd(b);l=e,m=kc[J[J[a>>2]+12>>2]](a)|0,H[l|0]=m;l=f,m=kc[J[J[a>>2]+16>>2]](a)|0,H[l|0]=m;b=k+4|0;kc[J[J[a>>2]+20>>2]](b,a);Fi(g,b);jd(b);kc[J[J[a>>2]+24>>2]](b,a);Fi(h,b);jd(b);a=kc[J[J[a>>2]+36>> +2]](a)|0}J[j>>2]=a;fc=k+16|0}function yeb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+8>>2]=340456;J[a>>2]=340716;J[a+4>>2]=0;J[a+56>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+12>>2]=0;J[a+16>>2]=255;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=1071644672;J[699344]=0;e=_(2226,a+72|0)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((c|0)!=1){J[a+440>>2]=340552;c=a+444|0;J[c>>2]=0;J[c+4>>2]=0;J[a+452>>2]=0;J[a+456>>2]=0;J[a+460>>2]=0;J[a+464>>2]=0;J[699344]= +0;ga(2227,a+456|0,340592,5)|0;d=J[699344];J[699344]=0;f:{g:{if((d|0)!=1){if(H[a+455|0]>=0)break g;J[a+448>>2]=0;c=J[a+444>>2];break f}b=Z()|0;if(H[a+467|0]<0)uc(J[a+456>>2]);if(H[a+455|0]>=0)break b;uc(J[a+444>>2]);break b}H[a+455|0]=0}J[c>>2]=0;I[a+488>>1]=0;J[a+480>>2]=0;J[a+484>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+492>>2]=0;J[a+496>>2]=0;J[a+500>>2]=0;J[a+504>>2]=0;J[699344]=0;c=_(2256,a+512|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;J[699344]=0;aa(2257,a+536|0,b|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break d;return a|0}b=Z()|0;break a}b=Z()|0;break c}b=Z()|0;Jd(c)}yk(a+440|0)}bo(e)}J[a+8>>2]=340456;c=J[a+36>>2];if(c){uc(c);J[a+36>>2]=0}ba(b|0);B()}function rka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;J[d+28>>2]=0;dS(d+27|0,a,0);a:{b:{c:{if(K[d+27|0]){e=J[J[a>>2]-12>>2];J[699344]=0;c=d+16|0;e=J[(a+e|0)+28>>2];J[c>>2]=e;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;d:{e:{f:{g:{h:{if((e|0)!=1){J[699344]=0;e=_(6755,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break h; +J[d+12>>2]=J[(J[J[a>>2]-12>>2]+a|0)+24>>2];J[d+8>>2]=0;f=J[J[a>>2]-12>>2];g=J[d+8>>2];h=J[d+12>>2];J[699344]=0;ja(6756,e|0,h|0,g|0,a+f|0,d+28|0,d+20|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;c=J[c>>2];e=J[c+4>>2]-1|0;J[c+4>>2]=e;if((e|0)==-1)kc[J[J[c>>2]+8>>2]](c);break f}b=ea(0)|0;break g}b=ea(0)|0;c=J[d+16>>2];e=J[c+4>>2]-1|0;J[c+4>>2]=e;if((e|0)==-1)kc[J[J[c>>2]+8>>2]](c)}oa(b|0)|0;c=J[d+28>>2]|1;J[d+28>>2]=c;b=J[J[a>>2]-12>>2]+a|0;J[b+16>>2]=!J[b+24>>2]|(c|J[b+16>>2]);if(!(J[(J[J[a>>2]- +12>>2]+a|0)+20>>2]&1))break e;J[699344]=0;ka(5052);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break c;ba(a|0);B()}c=J[d+20>>2];J[b>>2]=c;break d}ta()}fr(J[J[a>>2]-12>>2]+a|0,J[d+28>>2])}fc=d+32|0;break a}ea(0)|0;Bc()}B()}return a|0}function cJa(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;e=fc-16|0;fc=e;a:{b:{c:{d:{if(b){if(!a)break d;if(!d)break c;if(J[a+120>>2]|c>>>0<3)break a;wd(b,e+12|0,2);j=L[e+12>> +1];if(j-1025>>>0<=4294966271){J[e>>2]=j;Nc(d,1,2362978,e);break a}wd(b+2|0,e+12|0,1);i=L[e+12>>1];if(!i){Nc(d,1,2363054,0);break a}if(i+3>>>0>c>>>0)break a;h=ef(P(i,j)<<2);if(!h)break a;k=ef(i);if(!k){uc(h);break a}l=ef(i);if(!l){uc(h);uc(k);break a}f=ef(20);if(!f){uc(h);uc(k);uc(l);break a}d=b+3|0;J[f+8>>2]=k;J[f+4>>2]=l;I[f+16>>1]=j;J[f>>2]=h;m=J[e+12>>2];J[f+12>>2]=0;H[f+18|0]=m;J[a+120>>2]=f;while(1){wd(d,e+12|0,1);H[g+k|0]=(K[e+12|0]&127)+1;H[g+l|0]=(J[e+12>>2]&128)>>>7;d=d+1|0;g=g+1|0;if((i| +0)!=(g|0))continue;break}break b}fa(2362941,2354795,1167,2371558);B()}fa(2354499,2354795,1168,2371558);B()}fa(2355439,2354795,1169,2371558);B()}if(!j){g=1;break a}f=0;while(1){a=0;g=0;while(1){a=K[a+k|0]+7>>>3|0;a=a>>>0>=4?4:a;if((a+(d-b|0)|0)>(c|0)){g=0;break a}wd(d,e+12|0,a);J[h>>2]=J[e+12>>2];h=h+4|0;d=a+d|0;g=g+1|0;a=g&65535;if(i>>>0>a>>>0)continue;break}g=1;f=f+1|0;if((f&65535)>>>0>>0)continue;break}}fc=e+16|0;return g|0}function Lsa(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;g=fc-32|0;fc=g;KH(b,3);d=L[b+8>>1];k=L[b+10>>1];a:{b:{c:{d:{e:{if(J[b+20>>2]){e=L[b+14>>1];f=d;break e}_i(b);e=L[b+14>>1];f=L[b+8>>1];h=d+1|0;if(f>>>0>h>>>0)break d}c=L[b+12>>1];if(J[685890]<(c+e|0)){a=Qc(g+8|0,2398385,2398717,577,2393703,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}h=c+J[685889]|0;c=J[b+20>>2];break c}c=J[b+20>>2];h=L[b+12>>1]+(c+P(e,h)|0)|0}if(!c){_i(b);e=L[b+14>>1];f=L[b+8>>1]}f:{if(d>>>0>=(f&65535)>>>0){c=L[b+12>>1];if(J[685890]<(c+e|0)){a= +Qc(g+8|0,2398385,2398717,577,2393703,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}j=c+J[685889]|0;c=J[b+20>>2];break f}c=J[b+20>>2];j=L[b+12>>1]+(c+P(d,e)|0)|0}i=d-1|0;if(!c){_i(b);e=L[b+14>>1];f=L[b+8>>1]}g:{if(!((f&65535)>>>0>i>>>0?d:0)){d=L[b+12>>1];if(J[685890]<(d+e|0)){a=Qc(g+8|0,2398385,2398717,577,2393703,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}d=d+J[685889]|0;break g}d=L[b+12>>1]+(J[b+20>>2]+P(e,i)|0)|0}kc[J[J[a>>2]+ +48>>2]](a,b,k,i,h,j,d);fc=g+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Dn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;H[c+15|0]=b;J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2426580;ma(5634,c+8|0,c+16|0,c+15|0,0,1);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){J[c+16>>2]=2426484;b=J[c+28>>2];if(b){H[b|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);b=J[c+8>>2];d:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d|0,b|0,1);b=J[699344];J[699344]= +0;if((b|0)!=1)break d;b=Z()|0;break c}J[c+16>>2]=0}J[699344]=0;aa(5153,a|0,c+16|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}b=Z()|0;zc(c+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+8>>2];J[c+8>>2]=0;f:{if(!b)break f;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]= +0;if((e|0)==1)break a;if(d)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+32|0;return a|0}b=Z()|0;rh(c+16|0);break b}zc(c+8|0)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function gL(a){var b=0;if(!J[693362])hL();a:{b:{c:switch(a+1|0){case 3:return J[693363];case 4:return J[693364];case 7:b=ug(21820);if(b)break a;b=ug(17988);if(b)break a;b=ug(20703);if(b)break a;b=ug(22538);if(!b)break b;break a;case 6:b=ug(22861);if(b)break a;b=ug(22871);if(b)break a;b=ug(22760);if(!b)break b; +break a;case 5:b=ug(22861);if(b)break a;b=ug(22871);if(b)break a;b=ug(22760);if(!b)break b;break a;case 10:b=ug(24758);if(b)break a;b=ug(24768);if(b)break a;b=ug(24674);if(!b)break b;break a;case 11:b=ug(28329);if(!b)break b;break a;case 12:b=ug(24786);if(!b)break b;break a;case 13:b=ug(24412);if(!b)break b;break a;case 14:b=ug(22877);if(!b)break b;break a;case 15:b=ug(22742);if(!b)break b;break a;case 16:b=ug(22648);if(!b)break b;break a;case 17:b=ug(22552);if(!b)break b;break a;case 18:b=ug(22412); +if(!b)break b;break a;case 19:b=ug(22323);if(!b)break b;break a;case 20:b=ug(20932);if(!b)break b;break a;case 21:b=ug(20809);if(b)break a;b=ug(20789);if(b)break a;b=ug(20779);if(!b)break b;break a;case 0:case 1:case 2:break a;case 22:break c;default:break b}b=ug(20925);if(b)break a}b=0}return b}function enb(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;f=fc-16|0;fc=f;vh(a,J[a+8>>2]);g=J[a+8>>2];d=J[a>>2];J[f+12>>2]=d;a:{if(d>>>0>=g>>>0)break a;b:{c:{d:{e:{f:{e=K[d|0];if((e|0)==91)i= +93;else{if((e|0)!=123)break f;i=125}d=d+1|0;J[f+12>>2]=d;if(c)break e;if(d>>>0>=g>>>0)break a;while(1){vh(f+12|0,g);e=J[f+12>>2];if(g>>>0<=e>>>0){d=e;break a}if(K[e|0]==(i|0))break b;am(f+12|0,g,0);d=J[f+12>>2];if((d|0)==(e|0))break d;h=h+1|0;if(d>>>0>>0)continue;break}break a}vh(f+12|0,g);e=J[f+12>>2];if(!c)break c;if(e>>>0>=g>>>0){d=e;break a}if(!K[e|0])break b;if((b|0)<=0){d=e;break a}j=c,k=am(f+12|0,g,0)>>>16|0,I[j>>1]=k;d=J[f+12>>2];h=(d|0)==(e|0)?-1:1;break a}if(d>>>0>=g>>>0)break a;b=(b| +0)>0?b:0;while(1){vh(f+12|0,g);e=J[f+12>>2];if(g>>>0<=e>>>0){d=e;break a}if(K[e|0]==(i|0))break b;if((b|0)==(h|0)){d=e;h=b;break a}j=(h<<1)+c|0,k=am(f+12|0,g,0)>>>16|0,I[j>>1]=k;d=J[f+12>>2];if((d|0)==(e|0))break d;h=h+1|0;if(d>>>0>>0)continue;break}break a}h=-1;d=e;break a}if(e>>>0>=g>>>0){d=e;break a}if(!K[e|0])break b;am(f+12|0,g,0);d=J[f+12>>2];h=(d|0)==(e|0)?-1:1;break a}d=e+1|0}J[a>>2]=d;fc=f+16|0;return h|0}function xU(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=fc-80|0;fc=f;d=J[b+ +4>>2];h=L[a+98>>1];a:{b:{if(d>>>0>=h>>>0){g=f+48|0;if(d>>>0>h>>>0){d=J[a>>2];e=J[a+628>>2];i=J[Sf(a,L[b>>1])+16>>2];j=J[b+4>>2];J[f+40>>2]=h;J[f+36>>2]=j;J[f+32>>2]=i;le(e,d,82939,f+32|0);d=J[b+4>>2]}if(d>>>0>=11){g=bh(a,d,2,88455);if(!g)break b;d=J[b+4>>2]}c:{d:{if(d>>>0<=2){if(L[a+456>>1]==19789){e=0;e:{f:switch(d-1|0){case 0:e=J[b+8>>2];break e;case 1:break f;default:break d}e=J[b+8>>2];I[g+2>>1]=e}I[g>>1]=e>>>16;e=d;break d}e=0;g:switch(d-1|0){case 0:I[g>>1]=J[b+8>>2];e=d;break d;case 1:break g; +default:break d}e=J[b+8>>2];I[g+2>>1]=e>>>16;I[g>>1]=e;e=d;break d}d=0;if(!ci(a,b,g))break c;e=J[b+4>>2]}i=L[g>>1];h:{h=(e|0)<(h|0)?e:h;if((h|0)<2)break h;d=1;e=1;while(1){if((i|0)==L[(d<<1)+g>>1]){e=e+1|0;d=e&65535;if(d>>>0<(h&65535)>>>0)continue;break h}break}c=J[a>>2];d=J[a+628>>2];k=f,l=J[Sf(a,L[b>>1])+16>>2],J[k+16>>2]=l;Uc(d,c,88545,f+16|0);d=0;break c}I[c>>1]=i;d=1}if((f+48|0)==(g|0))break a;uc(g);break a}c=J[a>>2];d=J[a+628>>2];a=J[Sf(a,L[b>>1])+16>>2];b=J[b+4>>2];J[f+8>>2]=h;J[f+4>>2]=b; +J[f>>2]=a;le(d,c,82731,f)}d=0}fc=f+80|0;return d}function mPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-32|0;fc=d;J[d+16>>2]=13;J[d>>2]=13;J[a+32>>2]=0;J[a+36>>2]=0;a:{b:{if(J[Ec(b,836718,d+16|0,0)>>2]!=6){Cc(1,-1,837104,0);break b}c:{if(J[Sc(J[d+24>>2],0,d,0)>>2]-3>>>0<4294967294)break c;O[a>>3]=J[d>>2]==1?+J[d+8>>2]:O[d+8>>3];yc(d);if(J[Sc(J[d+24>>2],1,d,0)>>2]-3>>>0<4294967294)break c;O[a+8>>3]=J[d>>2]==1?+J[d+8>>2]:O[d+8>>3];yc(d);if(J[Sc(J[d+24>>2],2,d,0)>>2]-3>>>0<4294967294)break c; +O[a+16>>3]=J[d>>2]==1?+J[d+8>>2]:O[d+8>>3];yc(d);if(J[Sc(J[d+24>>2],3,d,0)>>2]-3>>>0<4294967294)break c;O[a+24>>3]=J[d>>2]==1?+J[d+8>>2]:O[d+8>>3];yc(d);yc(d+16|0);f=O[a>>3];g=O[a+16>>3];if(f>g){O[a+16>>3]=f;O[a>>3]=g}f=O[a+8>>3];g=O[a+24>>3];if(f>g){O[a+24>>3]=f;O[a+8>>3]=g}e=d+16|0;d:{e:{if(J[Ec(b,811728,e,0)>>2]!=5){c=vc(12);J[699344]=0;b=aa(3626,c|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){if(kc[J[J[b>>2]+8>>2]](b)|0)break e;kc[J[J[b>>2]+4>>2]](b);b=0;break e}a=Z()|0;uc(c);ba(a|0);B()}e=d+ +16|0;yc(e);if(J[Ec(b,812275,e,0)>>2]!=7)break d;b=fJ(e,c)}J[a+32>>2]=b}yc(d+16|0);if(!J[a+32>>2])break a;J[a+36>>2]=1;break a}Cc(1,-1,811460,0);yc(d)}yc(d+16|0)}fc=d+32|0;return a|0}function hN(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;f=J[a+212>>2];g=f>>8;d=J[a+176>>2];j=c>>8;a:{if((g|0)>=(d|0)&(d|0)<=(j|0))break a;d=J[a+172>>2];if((d|0)>(g|0)&(d|0)>(j|0))break a;p=c&255;d=f&255;e=J[a+208>>2];if((g|0)==(j|0)){WD(a,g,e,d,b,p);break a}h=c-f|0;if((b|0)==(e|0)){e=(h|0)>0;h=e<<8; +d=h-d|0;J[a+184>>2]=d+J[a+184>>2];f=b<<1&510;J[a+180>>2]=J[a+180>>2]+P(f,d);k=b>>8;d=g;g=e?1:-1;d=d+g|0;Gq(a,k,d);if((d|0)!=(j|0)){e=(e<<9)-256|0;m=P(e,f);while(1){J[a+180>>2]=m+J[a+180>>2];J[a+184>>2]=e+J[a+184>>2];d=d+g|0;Gq(a,k,d);if((d|0)!=(j|0))continue;break}}d=h+(c|-256)|0;J[a+184>>2]=d+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+P(d,f);break a}i=b-e|0;m=1;f=d;b:{if((h|0)>0){k=256;d=256-d|0;break b}h=0-h|0;m=-1}o=e;l=f;d=P(d,i);e=(d|0)/(h|0)|0;f=d-P(e,h)|0;n=f>>31;e=(o+e|0)+n|0;WD(a,g,o,l,e,k);d=g+ +m|0;Gq(a,e>>8,d);c:{if((d|0)==(j|0)){g=256-k|0;break c}i=i<<8;g=(i|0)/(h|0)|0;i=i-P(g,h)|0;l=i>>31;i=(l&h)+i|0;l=g+l|0;g=256-k|0;f=f+(h&n)|0;while(1){o=e;f=f+i|0;n=(f|0)>=(h|0);e=n+(e+l|0)|0;WD(a,d,o,g,e,k);d=d+m|0;Gq(a,e>>8,d);f=f-(n?h:0)|0;if((d|0)!=(j|0))continue;break}}WD(a,j,e,g,b,p)}J[a+212>>2]=c;J[a+208>>2]=b}function Wu(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=fc-16|0;fc=h;g=J[a>>2];J[h+12>>2]=g;j=b>>>0<=g>>>0;a:{if(j)break a;b:{c:{d:{e:{f:{f=K[g|0];if((f|0)==91)f=93;else{if((f|0)!=123)break f; +f=125}j=f;g=g+1|0;J[h+12>>2]=g;if(d)break e;if(b>>>0<=g>>>0)break a;while(1){vh(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if((j|0)==K[f|0])break b;am(h+12|0,b,e);g=J[h+12>>2];if((f|0)==(g|0))break d;i=i+1|0;if(b>>>0>g>>>0)continue;break}break a}if(!d)break c;if(j)break a;vh(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if(!K[f|0])break b;if((c|0)<=0){g=f;break a}k=d,l=am(h+12|0,b,e),J[k>>2]=l;g=J[h+12>>2];i=(f|0)==(g|0)?-1:1;break a}if(b>>>0<=g>>>0)break a;c=(c|0)>0?c:0;while(1){vh(h+ +12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if((j|0)==K[f|0])break b;if((c|0)==(i|0)){g=f;i=c;break a}k=(i<<2)+d|0,l=am(h+12|0,b,e),J[k>>2]=l;g=J[h+12>>2];if((f|0)==(g|0))break d;i=i+1|0;if(b>>>0>g>>>0)continue;break}break a}i=-1;g=f;break a}if(j)break a;vh(h+12|0,b);f=J[h+12>>2];if(f>>>0>=b>>>0){g=f;break a}if(!K[f|0])break b;am(h+12|0,b,e);g=J[h+12>>2];i=(f|0)==(g|0)?-1:1;break a}g=f+1|0}J[a>>2]=g;fc=h+16|0;return i}function qca(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;a:{e= +J[J[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0))break a;jt(b,a);g=a-e|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 3:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 2:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 1:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;break;case 0:break b}g=g-e|0;if((g|0)>0)continue;break}break a}c=e-4|0;h=e&3;j=e-5>>>0>2;f=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e|0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g; +default:break h}d=0;a=c;if(h)while(1){i=b+f|0;I[i>>1]=L[i>>1]+L[b>>1];a=a-1|0;b=b+2|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!j)break g;while(1){d=b+f|0;I[d>>1]=L[d>>1]+L[b>>1];d=(b+2|0)+f|0;I[d>>1]=L[d>>1]+L[b+2>>1];d=(b+4|0)+f|0;I[d>>1]=L[d>>1]+L[b+4>>1];d=(b+6|0)+f|0;I[d>>1]=L[d>>1]+L[b+6>>1];b=b+8|0;d=(a|0)>4;a=a-4|0;if(d)continue;break}}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b= +b+2|0}g=g-e|0;if((g|0)>0)continue;break}}}function ex(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;a:{if(!d|(!b|!c))break a;b:{f=J[b+64>>2];if(f)break b;f=mq(0,J[b+80>>2]);J[b+64>>2]=f;if(f)break b;c:{if(!a){b=0;d=0;break c}b=J[a>>2];d=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break c;e=(b^-1)+a>>>0<249?b:0}J[g>>2]=38556;Hc(0,d,b,e,0,23,2,3,38556,0,0,0,32879,g);break a}e=kc[J[663195]](24)|0;if(!e){d:{if(!a){b=0;e=0;break d}b=J[a>>2];e=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break d;h=(b^ +-1)+a>>>0<249?b:0}J[g+16>>2]=17054;Hc(0,e,b,h,0,23,2,3,17054,0,0,0,32879,g+16|0);break a}h=ff(c);J[e+20>>2]=b;J[e+4>>2]=h;e:{if(!(!a|!J[a+44>>2])){a=J[d+8>>2];b=J[b+80>>2];f:{if(b){a=te(b,a,-1);break f}a=ff(a)}J[e+12>>2]=a;a=e+8|0;break e}J[e+8>>2]=d;a=e+12|0}J[a>>2]=0;i=e,j=i2(J[d+20>>2]),J[i+16>>2]=j;g:{h:{i:{j:{if((WK(f,c,e)|0)<0){a=J[e+20>>2];if(a){b=J[a+80>>2];f=J[e+4>>2];if(!f)break i;if(!b){b=0;break j}if(Sk(b,f))break i;f=J[e+4>>2];break j}b=0;f=J[e+4>>2];if(f)break j;f=J[e+12>>2];if(!f)break g; +break h}J[d+40>>2]=2;break a}kc[J[663199]](f)}f=J[e+12>>2];if(!f)break g;if(!b)break h;if(Sk(b,f))break g;f=J[e+12>>2]}kc[J[663199]](f)}kc[J[663199]](e)}fc=g+32|0}function O5(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;i=a+8|0;a:{g=(c-b|0)/12|0;d=J[a+8>>2];e=J[a>>2];if(g>>>0<=(d-e|0)/12>>>0){f=(J[a+4>>2]-e|0)/12|0;h=P(f,12)+b|0;j=f>>>0>>0?h:c;b:{if((j|0)==(b|0)){d=e;break b}d=e;while(1){if((b|0)!=(d|0))HD(d,J[b>>2],J[b+4>>2]);d=d+12|0;b=b+12|0;if((j|0)!=(b|0))continue;break}}b=(d- +e|0)/12|0;d=J[a+4>>2];if(f>>>0>>0){J[699344]=0;b=ha(2265,i|0,h|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}c=e+P(b,12)|0;if((c|0)!=(d|0))while(1){b=d-12|0;e=J[b>>2];if(e){J[d-8>>2]=e;uc(e)}d=b;if((c|0)!=(d|0))continue;break}J[a+4>>2]=c;return}if(e){d=e;f=J[a+4>>2];if((d|0)!=(f|0)){while(1){d=f-12|0;h=J[d>>2];if(h){J[f-8>>2]=h;uc(h)}f=d;if((d|0)!=(e|0))continue;break}d=J[a>>2]}J[a+4>>2]=e;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}c:{if(g>>>0>=357913942)break c; +d=(d|0)/12|0;e=d<<1;d=d>>>0>=178956970?357913941:e>>>0>g>>>0?e:g;if(d>>>0>=357913942)break c;e=P(d,12);d=vc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;J[699344]=0;b=ha(2265,i|0,b|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}nj(a);B()}b=Z()|0;J[a+4>>2]=d;ba(b|0);B()}function N5(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;i=a+8|0;a:{g=(c-b|0)/12|0;d=J[a+8>>2];e=J[a>>2];if(g>>>0<=(d-e|0)/12>>>0){f=(J[a+4>>2]-e|0)/12|0;h=P(f,12)+b|0;j=f>>>0>>0?h:c;b:{if((j|0)== +(b|0)){d=e;break b}d=e;while(1){if((b|0)!=(d|0))Tx(d,J[b>>2],J[b+4>>2]);d=d+12|0;b=b+12|0;if((j|0)!=(b|0))continue;break}}b=(d-e|0)/12|0;d=J[a+4>>2];if(f>>>0>>0){J[699344]=0;b=ha(2266,i|0,h|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}c=e+P(b,12)|0;if((c|0)!=(d|0))while(1){b=d-12|0;e=J[b>>2];if(e){J[d-8>>2]=e;uc(e)}d=b;if((c|0)!=(d|0))continue;break}J[a+4>>2]=c;return}if(e){d=e;f=J[a+4>>2];if((d|0)!=(f|0)){while(1){d=f-12|0;h=J[d>>2];if(h){J[f-8>>2]=h;uc(h)}f=d;if((d| +0)!=(e|0))continue;break}d=J[a>>2]}J[a+4>>2]=e;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}c:{if(g>>>0>=357913942)break c;d=(d|0)/12|0;e=d<<1;d=d>>>0>=178956970?357913941:e>>>0>g>>>0?e:g;if(d>>>0>=357913942)break c;e=P(d,12);d=vc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;J[699344]=0;b=ha(2266,i|0,b|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}nj(a);B()}b=Z()|0;J[a+4>>2]=d;ba(b|0);B()}function HM(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;i=a+8|0;a:{g=(c-b| +0)/12|0;d=J[a+8>>2];e=J[a>>2];if(g>>>0<=(d-e|0)/12>>>0){f=(J[a+4>>2]-e|0)/12|0;h=P(f,12)+b|0;j=f>>>0>>0?h:c;b:{if((j|0)==(b|0)){d=e;break b}d=e;while(1){if((b|0)!=(d|0))GM(d,J[b>>2],J[b+4>>2]);d=d+12|0;b=b+12|0;if((j|0)!=(b|0))continue;break}}b=(d-e|0)/12|0;d=J[a+4>>2];if(f>>>0>>0){J[699344]=0;b=ha(2264,i|0,h|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}c=e+P(b,12)|0;if((c|0)!=(d|0))while(1){b=d-12|0;e=J[b>>2];if(e){J[d-8>>2]=e;uc(e)}d=b;if((c|0)!=(d|0))continue; +break}J[a+4>>2]=c;return}if(e){d=e;f=J[a+4>>2];if((d|0)!=(f|0)){while(1){d=f-12|0;h=J[d>>2];if(h){J[f-8>>2]=h;uc(h)}f=d;if((d|0)!=(e|0))continue;break}d=J[a>>2]}J[a+4>>2]=e;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}c:{if(g>>>0>=357913942)break c;d=(d|0)/12|0;e=d<<1;d=d>>>0>=178956970?357913941:e>>>0>g>>>0?e:g;if(d>>>0>=357913942)break c;e=P(d,12);d=vc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;J[699344]=0;b=ha(2264,i|0,b|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+4>>2]=b;return}nj(a); +B()}b=Z()|0;J[a+4>>2]=d;ba(b|0);B()}function q3(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-16|0;fc=g;a:{if(J[b>>2]>0)break a;c=J[a+4>>2];e=H[c+61|0];if(!e)break a;if((e|0)<0){c=J[c+20>>2];J[g+12>>2]=c;h=g+12|0;i=c-(e<<1)|0;e=fc-16|0;fc=e;b:{if(J[b>>2]>0)break b;d=J[a+16>>2];w3(J[a+4>>2],a+16|0,J[a+20>>2],h,i,b);c=J[a+24>>2];c:{if(!c)break c;f=J[a+16>>2];if((f|0)==(d|0))break c;l=f+(d^-1)|0;j=f-d&7;if(j)while(1){J[c>>2]=0;d=d+1|0;c=c+4|0;k=k+1|0;if((j|0)!=(k|0))continue;break}if(l>>>0>= +7)while(1){J[c+28>>2]=0;J[c+24>>2]=0;J[c+20>>2]=0;J[c+16>>2]=0;J[c+12>>2]=0;J[c+8>>2]=0;J[c+4>>2]=0;J[c>>2]=0;c=c+32|0;d=d+8|0;if((f|0)!=(d|0))continue;break}J[a+24>>2]=c}if(J[b>>2]!=15)break b;J[e+8>>2]=0;c=J[a+4>>2];d=(H[c+63|0]+c|0)+76|0;J[e+12>>2]=d;f=d;d=c+108|0;d:{if(f>>>0>=d>>>0)break d;H[c+63|0]=0;w3(c,e+12|0,d,h,i,e+8|0);a=J[a+4>>2];c=J[e+12>>2];H[a+63|0]=(c-a|0)-76;if(c>>>0>=d>>>0)break d;if(J[e+8>>2]!=15)break b}J[b>>2]=5}fc=e+16|0;break a}d=J[J[J[c+24>>2]+20>>2]+52>>2];if(d){kc[d|0](a, +0,b);break a}if(!(!K[c+66|0]|L[c+112>>1]>255)){wi(c,c+66|0,1,a+16|0,J[a+20>>2],a+24|0,0,b);break a}wi(c,J[c+20>>2],e,a+16|0,J[a+20>>2],a+24|0,0,b)}fc=g+16|0}function c$a(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=fc-80|0;fc=e;a:{if(!a)break a;d=J[a+36>>2];if(!d)break a;b:{k=J[d+4>>2];c:{if(k){f=J[d+28>>2];i=J[693366];g=J[663297];j=d;break c}h=J[a+40>>2];if((h|0)<=1){f=J[d+28>>2];h=0;i=J[693366];g=J[663297];j=d;break b}j=J[(J[a+48>>2]+(h<<2)|0)-8>>2];if(!j){h=d;j=0;break a}f= +J[j+28>>2];i=J[693366];g=J[663297];h=d;k=J[j+4>>2];if(!k)break b}J[e+68>>2]=f;J[e+64>>2]=k;kc[g|0](i,29777,e- -64|0);break a}J[e+48>>2]=f;kc[g|0](i,29785,e+48|0)}kc[J[663297]](J[693366],29750,0);g=150;f=kc[J[663195]](150)|0;d:{if(!f)break d;i=-1;while(1){l=f;if((g|0)>63999)break d;J[e+76>>2]=c;d=tm(f,g,b,c);if(!((d|0)<0|(d|0)>=(g|0))){f=(d|0)==(i|0);i=d;if(f)break d}g=((d|0)<0?100:d+1|0)+g|0;f=kc[J[663200]](l,g)|0;if(f)continue;break}}J[e+32>>2]=l;kc[J[663297]](J[693366],4607,e+32|0);if(l)kc[J[663199]](l); +e:{if(!a)break e;pq(j,J[663297],J[693366]);if(!h)break e;d=J[h+28>>2];c=J[693366];b=J[663297];a=J[h+4>>2];f:{if(a){J[e+20>>2]=d;J[e+16>>2]=a;kc[b|0](c,29777,e+16|0);break f}J[e>>2]=d;kc[b|0](c,29785,e)}kc[J[663297]](J[693366],39177,0);pq(h,J[663297],J[693366])}fc=e+80|0}function a$a(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=fc-80|0;fc=e;a:{if(!a)break a;d=J[a+36>>2];if(!d)break a;b:{k=J[d+4>>2];c:{if(k){f=J[d+28>>2];i=J[693366];g=J[663297];j=d;break c}h=J[a+40>>2];if((h|0)<= +1){f=J[d+28>>2];h=0;i=J[693366];g=J[663297];j=d;break b}j=J[(J[a+48>>2]+(h<<2)|0)-8>>2];if(!j){h=d;j=0;break a}f=J[j+28>>2];i=J[693366];g=J[663297];h=d;k=J[j+4>>2];if(!k)break b}J[e+68>>2]=f;J[e+64>>2]=k;kc[g|0](i,29777,e- -64|0);break a}J[e+48>>2]=f;kc[g|0](i,29785,e+48|0)}kc[J[663297]](J[693366],29767,0);g=150;f=kc[J[663195]](150)|0;d:{if(!f)break d;i=-1;while(1){l=f;if((g|0)>63999)break d;J[e+76>>2]=c;d=tm(f,g,b,c);if(!((d|0)<0|(d|0)>=(g|0))){f=(d|0)==(i|0);i=d;if(f)break d}g=((d|0)<0?100:d+1| +0)+g|0;f=kc[J[663200]](l,g)|0;if(f)continue;break}}J[e+32>>2]=l;kc[J[663297]](J[693366],4607,e+32|0);if(l)kc[J[663199]](l);e:{if(!a)break e;pq(j,J[663297],J[693366]);if(!h)break e;d=J[h+28>>2];c=J[693366];b=J[663297];a=J[h+4>>2];f:{if(a){J[e+20>>2]=d;J[e+16>>2]=a;kc[b|0](c,29777,e+16|0);break f}J[e>>2]=d;kc[b|0](c,29785,e)}kc[J[663297]](J[693366],39177,0);pq(h,J[663297],J[693366])}fc=e+80|0}function mX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;a:{if(b){H[a+10|0]=1;break a}H[a+9|0]=1}b= +J[a+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}b:{b=J[a+16>>2];c:{if(!b)break c;J[b+4>>2]=J[b+4>>2]+1;b=J[a+16>>2];J[d+12>>2]=b;if(!b)break c;d:{if(!J[J[a+12>>2]>>2]){J[d+12>>2]=0;break d}while(1){e=J[d+12>>2];while(1){e:{c=J[e+96>>2];if(!c)break e;f:{while(1){g:{b=J[c+8>>2];if(b){J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break g;b=J[c+8>>2]}else b=0;H[b+12|0]=1;if(!J[b+8>>2])J[b+8>>2]=1;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]= +f;g=J[699344];J[699344]=0;if((g|0)==1)break f;if(!f){J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break f}c=J[c>>2];if(c)continue;break e}break}a=Z()|0;zc(d+12|0);ba(a|0);B()}break b}e=J[e+16>>2];if(e)continue;break}if(J[J[a+12>>2]>>2])continue;break}b=J[d+12>>2];J[d+12>>2]=0;if(!b)break c}J[699344]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(a)break c;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}fc=d+16|0;return}ea(0)|0;Bc(); +B()}function KH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-80|0;fc=e;a:{b:{c:{d:{if(L[a+12>>1]>=(b|0))break d;e:{if(J[a+20>>2]){J[699344]=0;c=ga(5610,e+8|0,a|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;I[a+14>>1]=L[c+14>>1];J[699344]=0;f=c+28|0;wA(f,a+28|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[a+20>>2]=J[a+24>>2];J[c>>2]=2419044;J[c+20>>2]=0;d=J[c+68>>2];J[c+68>>2]=0;f:{if(!d)break f;J[699344]=0;g=J[d+4>>2]-1|0;J[d+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)==1)break b;if(g)break f; +J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break b}hd(c+52|0);hd(c+40|0);hd(f);nd(c)}I[a+12>>1]=b;c=L[a+10>>1];J[699344]=0;d=e+4|0;da(5612,d|0,c+(b<<1&131070)|0);b=J[699344];J[699344]=0;g:{if((b|0)!=1){J[699344]=0;aa(5153,a+68|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break g;a=J[e+4>>2];J[e+4>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break b}break a}a= +Z()|0;zc(e+4|0);ba(a|0);B()}break a}fc=e+80|0;return}a=Z()|0;SV(c);ba(a|0);B()}ea(0)|0;Bc();B()}ba(Z()|0);B()}function E2(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=J[a+124>>2];c=e;d=e>>>2|0;e=J[a+120>>2];i=e>>>0>2]?c:d;c=J[a+108>>2];d=(c-J[a+44>>2]|0)+262|0;n=c>>>0>=d>>>0?d:0;d=J[a+144>>2];h=J[a+116>>2];o=d>>>0>>0?d:h;k=J[a+56>>2];f=c+k|0;p=f+257|0;q=f+258|0;c=e+f|0;l=K[c|0];m=K[c-1|0];r=J[a+52>>2];s=J[a+64>>2];while(1){a:{c=b+k|0;d=c+e|0;b:{if(K[d| +0]!=(l|0)|K[d-1|0]!=(m|0)|(K[c|0]!=K[f|0]|K[c+1|0]!=K[f+1|0]))break b;g=2;d=c+2|0;c:{d:{e:{f:{g:{h:{i:{while(1){c=f+g|0;if(K[c+1|0]==K[d+1|0]){if(K[c+2|0]!=K[d+2|0])break i;if(K[c+3|0]!=K[d+3|0])break h;if(K[c+4|0]!=K[d+4|0])break g;if(K[c+5|0]!=K[d+5|0])break f;if(K[c+6|0]!=K[d+6|0])break e;if(K[c+7|0]!=K[d+7|0])break d;j=g>>>0>249;g=g+8|0;c=g+f|0;if(j)break c;j=K[d+8|0];d=d+8|0;if(K[c|0]==(j|0))continue;break c}break}c=c+1|0;break c}c=c+2|0;break c}c=c+3|0;break c}c=c+4|0;break c}c=c+5|0;break c}c= +c+6|0;break c}c=c+7|0}d=c-q|0;c=d+258|0;if((c|0)<=(e|0))break b;J[a+112>>2]=b;if((c|0)>=(o|0)){e=c;break a}l=K[c+f|0];m=K[d+p|0];e=c}b=L[((b&r)<<1)+s>>1];if(n>>>0>=b>>>0)break a;i=i-1|0;if(i)continue}break}return e>>>0>>0?e:h}function $q(a,b){var c=0,d=0,e=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;d=b>>>24|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break c}if((bd(a, +d)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;d=b>>>16|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;d:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=d;break d}if((bd(a,d&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;d=b>>>8|0;J[a+4>>2]=J[a+4>>2]|32;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;e:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c| +0]=d;break e}if((bd(a,d&255)|0)==-1)break b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b;break f}if((bd(a,b&255)|0)==-1)break b}c=0}return c}J[a+8>>2]=d|4;return-1}function YG(a,b,c){var d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;d=J[a+188>>2];if(d)uc(d);d=bh(a,J[a+180>>2],4,82058);J[a+188>>2]=d;a:{if(!d){b=-1;break a}b:{c:{d:{if(L[a+88>> +1]!=1){e=P(c,12)+14|0;g=kc[J[a+648>>2]](J[a+628>>2])|0;if(c)while(1){d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+91548>>2];else d=0;if(!d){c=J[a+628>>2];a=J[a>>2];J[f+4>>2]=L[b+2>>1];J[f>>2]=a;Uc(c,92176,82343,f);b=-1;break a}d=P(d,J[b+4>>2]);e=(d>>>0>4?d:0)+e|0;b=b+12|0;c=c-1|0;if(c&65535)continue;break}e=g-e|0;e=L[a+138>>1]==2?(e>>>0)/L[a+98>>1]|0:e;d=J[a+188>>2];if(!J[a+180>>2])break d;c=0;while(1){b=c;J[d+(b<<2)>>2]=e;c=b+1|0;if(c>>>0>2])continue;break}break c}if(K[a+13|0]&4){c=Dm(a);if(!J[a+ +180>>2])break b;d=J[a+188>>2];b=0;while(1){J[d+(b<<2)>>2]=c;b=b+1|0;if(b>>>0>2])continue;break}break b}b=wj(a);if(!J[a+180>>2])break b;c=P(b,M[a+60>>2]/M[a+176>>2]|0);d=J[a+188>>2];b=0;while(1){J[d+(b<<2)>>2]=c;b=b+1|0;if(b>>>0>2])continue;break}break b}e=J[d-4>>2];b=-1}b=b<<2;c=J[b+J[a+184>>2]>>2];if(c+e>>>0<=g>>>0)break b;J[b+d>>2]=g-c}c=J[a+40>>2];J[a+40>>2]=c|16777216;b=1;if(c&131072)break a;J[a+100>>2]=J[a+60>>2]}fc=f+16|0;return b}function zi(a,b){var c=0,d=0;c=-1;a:{d=J[a+ +8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;c:{if((d|0)<=0){if((bd(a,b>>>24|0)|0)!=-1)break c;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b>>>24}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)<=0){if((bd(a,b>>>16&255)|0)!=-1)break d;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>> +2]=c+1;H[c|0]=b>>>16}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;e:{if((d|0)<=0){if((bd(a,b>>>8&255)|0)!=-1)break e;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b>>>8}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)<=0){if((bd(a,b&255)|0)!=-1)break f;break b}J[a+60>>2]=J[a+60>>2]+ +1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b}c=0}return c}J[a+8>>2]=d|4;return-1}function NDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-16|0;fc=d;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d:{e=J[b>>2];e:{if(e){if(J[e+8>>2]){b=J[J[e>>2]+28>>2];J[699344]=0;ca(b|0,d+8|0,e|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break d;c=J[d+8>>2];break e}J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b>>2]}J[d+8>>2]=c}f:{if(c){b=J[J[c>>2]+28>>2];J[699344]=0;ca(b|0,d+12|0,c|0,1);b=J[699344]; +J[699344]=0;if((b|0)!=1)break f;c=Z()|0;break c}J[d+12>>2]=0}J[699344]=0;aa(5153,a|0,d+12|0)|0;b=J[699344];J[699344]=0;g:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break g;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g}break a}c=Z()|0;zc(d+12|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[d+8>>2];J[d+8>>2]=0;h:{if(!b)break h;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344]; +J[699344]=0;if((e|0)==1)break a;if(c)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=d+16|0;return a|0}c=Z()|0;break b}zc(d+8|0)}wc(a);ba(c|0);B()}ea(0)|0;Bc();B()}function pwa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=fc-16|0;fc=j;n=e&3;o=e>>>2|0;p=h<<2;while(1){e=o;while(1){c=i;h=K[c+4|0];i=K[c+5|0];k=j+12|0;l=j+8|0;m=j+4|0;ie(J[a+68>>2],K[c|0],h,i,k,l,m);d=b;J[d>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<< +16|-16777216;ie(J[a+68>>2],K[c+1|0],h,i,k,l,m);J[d+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[c+2|0],h,i,k,l,m);J[d+8>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[c+3|0],h,i,k,l,m);J[d+12>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=c+6|0;b=d+16|0;e=e-1|0;if(e)continue;break}if(n){e=K[c+11|0];h=K[c+10|0];a:switch(n-1|0){case 2:ie(J[a+68>>2],K[c+8|0],h,e,j+12|0,j+8|0,j+4|0);J[d+24>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 1:ie(J[a+ +68>>2],K[c+7|0],h,e,j+12|0,j+8|0,j+4|0);J[d+20>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;case 0:ie(J[a+68>>2],K[i|0],h,e,j+12|0,j+8|0,j+4|0);J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;break;default:break a}b=(n<<2)+b|0;d=12}else d=6;i=(d+c|0)+g|0;b=b+p|0;f=f-1|0;if(f)continue;break}fc=j+16|0}function On(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=fc-144|0;fc=e;J[e+128>>2]=13;a:{b:{f=J[a+12>>2];if((f|0)<=0)break b;g=(f|0)>=4?4:f;i=(g|0)<=1?1:g;g=0;while(1){j=(e+96|0)+(g<<3)|0;if(J[Sc(a, +g,e+128|0,0)>>2]-3>>>0>=4294967294)h=J[e+128>>2]==1?+J[e+136>>2]:O[e+136>>3];else h=0;O[j>>3]=h;yc(e+128|0);g=g+1|0;if((i|0)!=(g|0))continue;break}c:{if((((f|0)>3?0-c|0:c)|0)>0){if((f|0)<=0)break c;O[e+96>>3]=O[e+96>>3]*.5+.5;if((f|0)<2)break c;O[e+104>>3]=O[e+104>>3]*.5+.5;if((f|0)==2)break c;O[e+112>>3]=O[e+112>>3]*.5+.5;if((f|0)==3)break c;O[e+120>>3]=O[e+120>>3]*.5+.5;break c}if(!c|(f|0)<=0)break c;O[e+96>>3]=O[e+96>>3]*.5;if((f|0)<2)break c;O[e+104>>3]=O[e+104>>3]*.5;if((f|0)==2)break c;O[e+ +112>>3]=O[e+112>>3]*.5;if((f|0)==3)break c;O[e+120>>3]=O[e+120>>3]*.5}if((f|0)>=4){O[e+16>>3]=O[e+112>>3];O[e+24>>3]=O[e+120>>3];J[e+32>>2]=b?107:75;O[e>>3]=O[e+96>>3];O[e+8>>3]=O[e+104>>3];ed(d,834537,e);break a}if((f|0)!=3)break b;O[e- -64>>3]=O[e+112>>3];J[e+72>>2]=b?807965:835100;O[e+48>>3]=O[e+96>>3];O[e+56>>3]=O[e+104>>3];ed(d,834836,e+48|0);break a}O[e+80>>3]=O[e+96>>3];J[e+88>>2]=b?103:71;ed(d,835383,e+80|0)}fc=e+144|0}function r8(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=fc-48|0;fc=e;g=J[a+4>>2];H[b+557|0]=0;J[b+560>>2]=a;if(!(!J[b+116>>2]|!J[b+120>>2])){i=Ac(b+188|0,0,364);J[b+528>>2]=3932;J[b+520>>2]=-1;J[b+392>>2]=1;J[b+588>>2]=d;J[b+584>>2]=c;J[b+552>>2]=b;J[b+384>>2]=2596864;J[b+388>>2]=7;a:{if(!K[a+32|0]){f=8192;d=97;break a}f=20480;d=J[a+1556>>2]+1|0}h=J[a>>2];c=J[h>>2];j=J[b+176>>2];J[e+16>>2]=0;J[e+20>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+36>>2]=i;J[e+32>>2]=f;J[e+4>>2]=h;J[e+40>>2]=j;f=_c(c,4,0,d,0,e+44|0);J[e+20>>2]=f;b:{c:{if(!J[e+ +44>>2]){J[e+24>>2]=f;J[e+28>>2]=d;break c}if(f)kc[J[c+8>>2]](c,f);f=0;J[e+20>>2]=0;if(J[e+44>>2])break b}f=yd(g,J[b+116>>2]+J[a+12>>2]|0);if(f)break b;f=af(g,J[b+120>>2]);if(f)break b;f=q8(e+4|0,J[g+32>>2],J[g+36>>2]);ve(g);if(f)break b;H[b+188|0]=K[b+188|0]&254;a=J[b+532>>2];d:{e:{if((a|0)<0){a=0-a|0;break e}if(a)break d;a=987654321}J[b+532>>2]=a}if(M[b+388>>2]>=1001)J[b+388>>2]=7;f=0;if(M[b+392>>2]<1001)break b;J[b+392>>2]=1}J[b+600>>2]=0;J[b+596>>2]=J[b+592>>2];a=J[J[e+4>>2]>>2];b=J[e+20>>2];if(b)kc[J[a+ +8>>2]](a,b)}fc=e+48|0;return f|0}function dh(a,b){var c=0,d=0,e=0,f=0;a:{if(!a|!b)break a;d=J[a+4>>2];if((d|0)==18|(a|0)==(b|0))break a;e=J[b+4>>2];if((e|0)==18)break a;b:{c:{d:{e:{f:{g:{h:{if((e|0)!=3)break h;if(!(!J[a+40>>2]|(d|0)!=3|J[a+8>>2]!=J[b+8>>2])){wC(a,J[b+40>>2]);break g}d=J[a+16>>2];if(!d|J[d+4>>2]!=3|((b|0)==(d|0)|J[d+8>>2]!=J[b+8>>2]))break h;wC(d,J[b+40>>2]);Fl(b);return J[a+16>>2]}d=J[b+20>>2];J[b+20>>2]=a;e=J[a+32>>2];if((e|0)!=J[b+32>>2])Xm(b,e);if((a|0)==(d|0))break b;d=J[a+4>> +2];if((d|0)!=3)break e;if(!J[a+40>>2])break f;d=J[b+40>>2];if(!d)break g;e=0;if(K[d|0]){c=d;while(1){e=e+1|0;f=K[c+1|0];c=c+1|0;if(f)continue;break}}vC(a,d,e)}Fl(b);return a}if(J[b+4>>2]!=2)break d;break a}if(J[b+4>>2]==2)break c}if(!J[a+12>>2]){J[a+16>>2]=b;J[a+12>>2]=b;break b}c=J[a+16>>2];J[c+24>>2]=b;J[b+28>>2]=c;J[a+16>>2]=b;break b}if((d|0)!=1)break a;i:{if(J[a+44>>2]){d=J[b+8>>2];c=J[b+36>>2];if(c)c=J[c+8>>2];else c=0;c=SK(a,d,c);if(!(!c|(b|0)==(c|0)|J[c+4>>2]==16)){Wj(c);nx(c)}if((b|0)==(c| +0))break b;c=J[a+44>>2];if(c)break i}J[a+44>>2]=b;break b}while(1){a=c;c=J[a+24>>2];if(c)continue;break}J[a+24>>2]=b;J[b+28>>2]=a}c=b}return c}function Wfa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;j=fc-16|0;fc=j;i=c;while(1){a:{if((d|0)==(i|0)){i=d;break a}if(!K[i|0])break a;i=i+1|0;continue}break}J[h>>2]=f;J[e>>2]=c;while(1){b:{c:{d:{if((c|0)==(d|0)|(f|0)==(g|0))break d;l=J[b+4>>2];J[j+8>>2]=J[b>>2];J[j+12>>2]=l;k=fc-16|0;fc=k;J[k+12>>2]=J[a+8>> +2];m=rm(k+8|0,k+12|0);J[699344]=0;l=MR(f,e,i-c|0,g-f>>2,b);n=J[699344];J[699344]=0;e:{if((n|0)!=1){$h(m);fc=k+16|0;break e}a=Z()|0;$h(m);ba(a|0);B()}f:{g:{h:{i:{if((l|0)==-1){while(1){j:{J[h>>2]=f;if(J[e>>2]==(c|0))break j;g=1;k:{l:{m:{b=YQ(f,c,i-c|0,j+8|0,J[a+8>>2]);switch(b+2|0){case 2:break k;case 1:break m;case 0:break g;default:break l}}J[e>>2]=c;break i}g=b}c=c+g|0;f=J[h>>2]+4|0;continue}break}J[e>>2]=c;break d}f=J[h>>2]+(l<<2)|0;J[h>>2]=f;if((f|0)==(g|0))break f;c=J[e>>2];if((d|0)==(i|0)){i= +d;continue}if(!YQ(f,c,1,b,J[a+8>>2]))break h}a=2;break c}J[h>>2]=J[h>>2]+4;c=J[e>>2]+1|0;J[e>>2]=c;i=c;while(1){if((d|0)==(i|0)){i=d;break b}if(!K[i|0])break b;i=i+1|0;continue}}J[e>>2]=c;a=1;break c}c=J[e>>2]}a=(c|0)!=(d|0)}fc=j+16|0;return a|0}f=J[h>>2];continue}}function NAa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-48|0;fc=e;Ho(a);J[e+40>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[699344]=0;J[e+16>>2]=0;J[e+20>>2]=0;g=aa(5250,e+16|0,2413244)|0;f=J[699344];J[699344]= +0;a:{b:{c:{d:{e:{f:{g:{h:{if((f|0)!=1){J[e+12>>2]=0;J[699344]=0;J[e+8>>2]=0;f=e+8|0;aa(5145,f|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;la(5510,f|0,a|0,c|0,0,e+12|0,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break h;b=J[e+8>>2];J[e+8>>2]=0;i:{if(!b)break i;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)==1)break d;if(c)break i;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break d}if(d)J[d>>2]=J[e+12>>2];b=J[a>>2];c=J[J[b>>2]+16>>2];J[699344]= +0;c=_(c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;if(c)break g;J[699344]=0;aa(5145,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break f;break c}b=Z()|0;break a}b=Z()|0;zc(e+8|0);break b}c=J[J[b>>2]+20>>2];J[699344]=0;ha(c|0,b|0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c}Md(g);fc=e+48|0;return}b=Z()|0;break b}ea(0)|0;Bc();B()}b=Z()|0}Md(g)}zc(a);ba(b|0);B()}function x5(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;m=fc+-64|0;fc=m; +n=J[d+4>>2];J[a+56>>2]=J[d>>2];J[a+60>>2]=n;n=J[d+44>>2];J[a+96>>2]=J[d+40>>2];J[a+100>>2]=n;n=J[d+36>>2];J[a+88>>2]=J[d+32>>2];J[a+92>>2]=n;n=J[d+28>>2];J[a+80>>2]=J[d+24>>2];J[a+84>>2]=n;n=J[d+20>>2];J[a+72>>2]=J[d+16>>2];J[a+76>>2]=n;r=J[d+12>>2];n=a- -64|0;J[n>>2]=J[d+8>>2];J[n+4>>2]=r;h=O[c>>3]/360;i=(h-V(h))*6.283185307179586;h=Ee(i);O[a+16>>3]=h;i=Me(i);O[a+8>>3]=i;o=i*O[b>>3];j=h*O[b+8>>3];g=o+j;e=i*g;O[m>>3]=e;g=h*g;O[m+8>>3]=g;l=i*O[b+16>>3];f=l+j;j=h*f;O[m+24>>3]=j;f=i*f;O[m+16>>3]=f;k= +h*O[b+24>>3];p=l+k;l=h*p;O[m+56>>3]=l;k=o+k;o=h*k;O[m+40>>3]=o;k=i*k;O[m+32>>3]=k;p=i*p;O[m+48>>3]=p;q=f*f+j*j;j=f*i+h*j<0?-q:q;f=e*e+g*g;e=e*i+h*g<0?-f:f;b=j>e;c=b;g=k*k+o*o;g=k*i+h*o<0?-g:g;f=b?j:e;b=g>f;k=b?g:f;f=p*p+l*l;l=p*i+h*l<0?-f:f;c=((k>3];d=e>j;e=d?j:e;b=e>g;b=((l<(b?g:e)?3:b?2:d)<<4)+m|0;g=O[b>>3];e=f-g;k=e*e;j=O[c+8>>3];l=O[b+8>>3];e=j-l;e=Y(k+e*e);if(R(e)>1.1920928955078125E-7){O[a+32>>3]=h/e;O[a+24>>3]=i/e;O[a+48>>3]=-(f*i+h*j)/e;O[a+40>>3]=-(g*i+h*l)/e}fc= +m- -64|0}function uca(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;a:{e=J[J[a+584>>2]+4>>2];a=(c|0)/2|0;if((e|0)>=(a|0))break a;g=a-e|0;if((e|0)<5){a=e<<1;while(1){b:switch(e|0){default:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 3:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 2:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;case 1:c=a+b|0;I[c>>1]=L[c>>1]+L[b>>1];b=b+2|0;break;case 0:break b}g=g-e|0;if((g|0)>0)continue;break}break a}c=e-4|0;h=e&3;j=e-5>>>0>2;f=e<<1;while(1){c:{d:{e:{f:{g:{h:switch(e| 0){case 0:break c;case 1:break d;case 2:break e;case 3:break f;case 4:break g;default:break h}d=0;a=c;if(h)while(1){i=b+f|0;I[i>>1]=L[i>>1]+L[b>>1];a=a-1|0;b=b+2|0;d=d+1|0;if((h|0)!=(d|0))continue;break}if(!j)break g;while(1){d=b+f|0;I[d>>1]=L[d>>1]+L[b>>1];d=(b+2|0)+f|0;I[d>>1]=L[d>>1]+L[b+2>>1];d=(b+4|0)+f|0;I[d>>1]=L[d>>1]+L[b+4>>1];d=(b+6|0)+f|0;I[d>>1]=L[d>>1]+L[b+6>>1];b=b+8|0;d=(a|0)>4;a=a-4|0;if(d)continue;break}}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+ -2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}g=g-e|0;if((g|0)>0)continue;break}}}function B3(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;m=bc+-64|0;bc=m;n=J[d+4>>2];J[a+56>>2]=J[d>>2];J[a+60>>2]=n;n=J[d+44>>2];J[a+96>>2]=J[d+40>>2];J[a+100>>2]=n;n=J[d+36>>2];J[a+88>>2]=J[d+32>>2];J[a+92>>2]=n;n=J[d+28>>2];J[a+80>>2]=J[d+24>>2];J[a+84>>2]=n;n=J[d+20>>2];J[a+72>>2]=J[d+16>>2];J[a+76>>2]=n;r=J[d+12>>2];n=a- -64|0; -J[n>>2]=J[d+8>>2];J[n+4>>2]=r;h=O[c>>3]/360;i=(h-V(h))*6.283185307179586;h=xe(i);O[a+16>>3]=h;i=He(i);O[a+8>>3]=i;o=i*O[b>>3];j=h*O[b+8>>3];g=o+j;e=i*g;O[m>>3]=e;g=h*g;O[m+8>>3]=g;l=i*O[b+16>>3];f=l+j;j=h*f;O[m+24>>3]=j;f=i*f;O[m+16>>3]=f;k=h*O[b+24>>3];p=l+k;l=h*p;O[m+56>>3]=l;k=o+k;o=h*k;O[m+40>>3]=o;k=i*k;O[m+32>>3]=k;p=i*p;O[m+48>>3]=p;q=f*f+j*j;j=f*i+h*j<0?-q:q;f=e*e+g*g;e=e*i+h*g<0?-f:f;b=j>e;c=b;g=k*k+o*o;g=k*i+h*o<0?-g:g;f=b?j:e;b=g>f;k=b?g:f;f=p*p+l*l;l=p*i+h*l<0?-f:f;c=((k>3];d=e>j;e=d?j:e;b=e>g;b=((l<(b?g:e)?3:b?2:d)<<4)+m|0;g=O[b>>3];e=f-g;k=e*e;j=O[c+8>>3];l=O[b+8>>3];e=j-l;e=Y(k+e*e);if(R(e)>1.1920928955078125E-7){O[a+32>>3]=h/e;O[a+24>>3]=i/e;O[a+48>>3]=-(f*i+h*j)/e;O[a+40>>3]=-(g*i+h*l)/e}bc=m- -64|0}function oea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=bc-176|0;bc=c;e=J[a+584>>2];if(e){d=J[a+48>>2];if(d&512){a:{b:{if(L[a+88>>1]==4){Td(80362,18,1,b);d=80019;if(K[e+28|0]&2)break b;break a}Td(80991,18,1,b);d=80019;f=J[e+28>>2];if(f&1){J[c+160>>2]=80019; -cd(b,81140,c+160|0);f=J[e+28>>2];d=81638}if(f&4){J[c+144>>2]=d;cd(b,81746,c+144|0);f=J[e+28>>2];d=81638}if(!(f&2))break a}J[c+128>>2]=d;cd(b,80667,c+128|0)}d=J[e+28>>2];J[c+116>>2]=d;J[c+112>>2]=d;cd(b,82026,c+112|0);d=J[a+48>>2]}if(d&8){Td(82228,11,1,b);c:{d:switch(L[e+16>>1]){case 0:Td(82289,6,1,b);break c;case 1:Td(82512,21,1,b);break c;case 2:break d;default:break c}Td(82597,19,1,b)}d=L[e+16>>1];J[c+100>>2]=d;J[c+96>>2]=d;cd(b,82897,c+96|0);d=J[a+48>>2]}if(d&4){J[c+80>>2]=J[e+24>>2];cd(b,83112, -c+80|0);d=J[a+48>>2]}if(d&16){J[c+64>>2]=J[e+20>>2];cd(b,87011,c- -64|0);d=J[a+48>>2]}if(d&32){J[c+48>>2]=J[e+32>>2];cd(b,87162,c+48|0);d=J[a+48>>2]}if(d&64){J[c+32>>2]=J[e+36>>2];cd(b,87331,c+32|0);d=J[a+48>>2]}if(d&128){J[c+16>>2]=J[e+40>>2];cd(b,87478,c+16|0);d=J[a+48>>2]}if(d&256){J[c>>2]=J[e+44>>2];cd(b,87637,c)}bc=c+176|0;return}fa(79439,70523,1268,95720);B()}function mn(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;g=bc-16|0;bc=g;a:{if((c|0)<=0)break a;i=J[a+4>>2];while(1){h=(k<< -3)+b|0;b:{if(!J[h>>2]){qo(i);if(J[i+12>>2]>1)break a;d=J[i>>2];f=d-1|0;l=J[i+8>>2];c:{while(1){j=3;if(d>>>0>=l>>>0){e=d;break c}e=d+1|0;J[i>>2]=e;m=K[d|0];d=e;d:switch(m-10|0){case 16:break c;case 0:case 3:break d;default:continue}break}j=2}J[i+12>>2]=j;J[g+8>>2]=f;break b}f=mx(i);J[g+8>>2]=f;if(!f)break a;e=J[i>>2]}d=e-f|0;e=d-1|0;e:{f:switch(J[h>>2]){case 0:case 1:d=WL(J[a>>2],d,g+4|0);J[h+4>>2]=d;if(J[g+4>>2])break e;tc(d,f,e);H[e+J[h+4>>2]|0]=0;break e;case 2:n=h,o=ql(g+8|0,e+f|0,0),J[n+4>>2]= -o;break e;case 3:J[g+12>>2]=f;m=g+12|0;l=e+f|0;j=nn(m,l,10);e=0;d=J[g+12>>2];g:{if((f|0)==(d|0))break g;if(!(K[d|0]!=35|d>>>0>=l>>>0)){f=d+1|0;J[g+12>>2]=f;j=nn(m,l,j);d=J[g+12>>2];if((f|0)==(d|0))break g}J[g+8>>2]=d;e=j}J[h+4>>2]=e;break e;case 4:if((e|0)==4)e=kd(f,254399,4);else e=1;H[h+4|0]=!e;break e;case 5:break f;default:break e}d=J[a+12>>2];if(d){n=h,o=gc[d|0](f,e,J[a+16>>2])|0,J[n+4>>2]=o;break e}J[h+4>>2]=0}k=k+1|0;if((k|0)!=(c|0))continue;break}k=c}bc=g+16|0;return k}function cta(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2413944;ca(5467,c+12|0,c+16|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){J[c+16>>2]=2414580;b=J[c+28>>2];if(b){H[b|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;ed(d);b=J[c+12>>2];d:{if(b){e=J[J[b>>2]+24>>2];J[695492]=0;ca(e|0,d|0,b|0,2);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;break c}J[c+16>>2]=0}J[695492]=0;aa(4993,a|0,c+16|0)|0;b=J[695492];J[695492]= -0;e:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}b=Z()|0;vc(c+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+12>>2];J[c+12>>2]=0;f:{if(!b)break f;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc= -c+32|0;return a|0}b=Z()|0;bh(c+16|0);break b}vc(c+12|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function S$a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;p=bc-144|0;bc=p;q=J[a+332>>2];a=J[b+84>>2];b=p;while(1){g=J[a+64>>2];k=I[c+32>>1];i=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+128>>2],I[c+64>>1]);n=i+P(j,-11586)>>11;f=P(J[a+32>>2],I[c+16>>1]);h=P(J[a+96>>2],I[c+48>>1]);l=P(J[a+160>>2],I[c+80>>1]);o=f-(h+l|0)<<2;J[b+96>>2]=n-o;J[b+24>>2]=n+o;g=P(P(g,k),10033); -k=i+P(j,5793)|0;j=g+k|0;i=f+h<<13;f=P(f+l|0,2998);i=i+f|0;J[b+120>>2]=j-i>>11;J[b>>2]=j+i>>11;g=k-g|0;f=f+(l-h<<13)|0;J[b+72>>2]=g-f>>11;J[b+48>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;m=m+1|0;if((m|0)!=6)continue;break}a=q+128|0;c=p;m=0;while(1){b=J[(m<<2)+d>>2]+e|0;f=J[c+20>>2];h=J[c+4>>2];q=P(f+h|0,2998);l=J[c+12>>2];g=q+(l+h<<13)|0;j=(J[c>>2]<<13)+131072|0;k=J[c+16>>2];i=j+P(k,5793)|0;n=P(J[c+8>>2],10033);o=i+n|0;H[b|0]=K[a+(g+o>>>18&1023)|0];H[b+5|0]=K[a+(o-g>>>18&1023)|0];h=h-(f+l|0)<<13;g=j+P(k, --11586)|0;H[b+1|0]=K[a+(h+g>>>18&1023)|0];H[b+4|0]=K[a+(g-h>>>18&1023)|0];f=(f-l<<13)+q|0;h=i-n|0;H[b+2|0]=K[a+(f+h>>>18&1023)|0];H[b+3|0]=K[a+(h-f>>>18&1023)|0];c=c+24|0;m=m+1|0;if((m|0)!=6)continue;break}bc=p+144|0}function Uk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2414676;ca(5467,c+12|0,c+16|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){J[c+16>>2]=2414580;b=J[c+28>>2];if(b){H[b|0]=0;qc(J[c+ -28>>2])}J[c+28>>2]=0;d=c+16|0;ed(d);b=J[c+12>>2];d:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;break c}J[c+16>>2]=0}J[695492]=0;aa(4993,a|0,c+16|0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}b=Z()|0;vc(c+16|0);break c}b=J[a>>2];J[a+ -4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+12>>2];J[c+12>>2]=0;f:{if(!b)break f;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+32|0;return a|0}b=Z()|0;bh(c+16|0);break b}vc(c+12|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function X1(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;d=bc-48|0;bc=d;c=K[b+11|0];f=c<<24>>24;a:{b:{h=(f|0)<0?J[b+4>>2]:c;c=h+19|0;if(c>>>0<1073741808){c:{if(c>>> -0<=1){J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;H[d+43|0]=c;e=d+32|0;break c}e=c|3;if(e>>>0>=1073741823)break b;g=e+1|0;e=rc(g<<2);J[d+36>>2]=c;J[d+32>>2]=e;J[d+40>>2]=g|-2147483648}c=h<<2;i=tc(Zc(e,(f|0)<0?J[b>>2]:b,c)+c|0,351028,76),j=0,J[i+76>>2]=j;J[695492]=0;c=d+16|0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=413844;e=J[695492];J[695492]=0;d:{e:{f:{if((e|0)!=1){J[695492]=0;h=ga(3,c|0,d+32|0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break e;if(h)break f;break a}b=Z()|0;break d}J[695492]=0;e=J[c+ -12>>2];f=J[695492];J[695492]=0;if((f|0)!=1)g:{J[695492]=0;J[d+12>>2]=0;f=$(27,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break g;J[695492]=0;ha(28,c|0,f|0,e|0,d+12|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break g;J[695492]=0;ia(2823,a|0,b|0,f|0,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break g;qc(f);break a}}b=Z()|0;ve(c)}if(H[d+43|0]<0)qc(J[d+32>>2]);ba(b|0);B()}Id(d+32|0);B()}Sd();B()}ve(c);if(H[d+43|0]<0)qc(J[d+32>>2]);bc=d+48|0;return h|0}function bEa(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;f=bc-32|0;bc=f;a:{if(!J[a+4>>2])break a;while(1){J[f+20>>2]=g;d=J[a>>2];if(K[a+8|0])d=J[d>>2];if(J[(J[f+20>>2]<<2)+d>>2]==44)break a;g=g+1|0;if(g>>>0>2])continue;break}}b:{c:{if(M[a+4>>2]<=g>>>0){e=f+20|0;d=J[a>>2];d:{if(K[a+8|0]){a=0;if(!d)break d;d=J[d>>2]}a=d}a=XG(e,a);J[695492]=0;i=+qa(4854,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;O[b>>3]=i;J[c>>2]=0;J[c+4>>2]=0;Lc(a);break b}h=f+20|0;d=J[a>>2];e:{if(K[a+8|0]){e=0;if(!d)break e;d=J[d>>2]}e=d}h=Ps(h,e,0,g);J[695492]=0; -d=J[a>>2];f:{if(K[a+8|0]){e=0;if(!d)break f;d=J[d>>2]}e=d}d=J[695492];J[695492]=0;g:{h:{if((d|0)==1)break h;J[695492]=0;a=J[a+4>>2];d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;a=ha(4976,f+8|0,(e+(g<<2)|0)+4|0,0,a+(g^-1)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;i=+qa(4854,h|0);d=J[695492];J[695492]=0;if((d|0)==1)break g;O[b>>3]=i;J[695492]=0;i=+qa(4854,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break g;O[c>>3]=i;Lc(a);Lc(h);break b}a=Z()|0;Lc(h);ba(a|0);B()}b=Z()|0;Lc(a); -Lc(h);ba(b|0);B()}b=Z()|0;Lc(a);ba(b|0);B()}bc=f+32|0}function Nza(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=Pz(a);J[b>>2]=2401388;J[695492]=0;e=$(5082,b+8|0)|0;a=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((a|0)!=1){J[b+68>>2]=0;J[b+72>>2]=0;J[b+52>>2]=0;J[b+56>>2]=6;J[b+44>>2]=0;J[b+48>>2]=0;J[b+60>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[695492]=0;a=b+68|0;J[a>>2]=2401320;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;f=a;a=J[695492];J[695492]=0;if((a|0)==1)break f;J[b+92>>2]=0;I[b+88>>1]=0;J[b+84>>2]=0;J[b+100>>2]= -0;J[b+104>>2]=0;J[b+96>>2]=0;c=b+108|0;a=c;J[a>>2]=0;J[a+4>>2]=0;d=b+116|0;J[d>>2]=0;a=J[682146];J[b+124>>2]=0;J[b+128>>2]=0;J[b+120>>2]=a;J[b+132>>2]=0;J[b+136>>2]=0;J[b+140>>2]=0;J[695492]=0;a=b+128|0;J[a>>2]=2386024;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;g=a;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[b+148>>2]=0;J[b+152>>2]=0;J[b+156>>2]=0;J[b+160>>2]=0;J[695492]=0;a=b+148|0;J[a>>2]=2386024;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[b+168>>2]=0;return b| -0}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;$c(g)}vc(b+124|0);sc(d);vc(b+112|0);vc(c);vc(b+104|0);$c(f)}vc(b+52|0);vc(b+48|0);vc(b+44|0);ud(e)}Hq(b);ba(a|0);B()}function yva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(!K[a+88|0]){e=a,f=gc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=gc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=gc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}d=J[a+72>>2];c=rc(12);J[c+8>>2]=d;J[c>>2]=0;J[c+4>>2]=0;of(b,c);if(!K[a+88| -0]){e=a,f=gc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=gc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=gc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}d=J[a+80>>2];c=rc(12);J[c+8>>2]=d;J[c>>2]=0;J[c+4>>2]=0;of(b,c);if(!K[a+88|0]){e=a,f=gc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=gc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=gc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}d=J[a+76>>2];c=rc(12);J[c+8>>2]=d;J[c>>2]= -0;J[c+4>>2]=0;of(b,c);a:{if(K[a+88|0]){c=J[a+84>>2];break a}e=a,f=gc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=gc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=gc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}a=rc(12);J[a+8>>2]=c;J[a>>2]=0;J[a+4>>2]=0;of(b,a)}function oK(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0,n=0,o=0;o=bc-16|0;bc=o;J[o+12>>2]=0;l=K[J[a+24>>2]+200|0];if((l|0)==12)n=H[a+48|0];else n=(l|0)==219?1:-1;m=a+37|0;l=J[d>>2];n=nK(b,n,m,c,l,e-l|0,o+12|0,j); -a:{b:{if((n|0)>0){J[d>>2]=(n-c|0)+l;c=J[o+12>>2];if(c>>>0<=3145727){pK(a,c-2031616|0,f,g,h,i,k);break b}qK(a,(J[b+12>>2]+b|0)+((c&262143)<<1)|0,(c>>>18|0)-12|0,f,g,h,i,k);b=1;break a}b=0;if((n|0)>=0)break a;H[a+255|0]=c;b=0;if((c|0)>0){f=c&3;j=0;c:{if(c>>>0<4){l=0;break c}g=c&-4;l=0;b=a+222|0;e=0;while(1){H[b+l|0]=K[m|0];H[b+(l|1)|0]=K[m+1|0];H[b+(l|2)|0]=K[m+2|0];H[b+(l|3)|0]=K[m+3|0];l=l+4|0;m=m+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}if(f)while(1){H[(a+l|0)+222|0]=K[m|0];l=l+1|0;m=m+1|0;j= -j+1|0;if((f|0)!=(j|0))continue;break}l=J[d>>2];b=c}c=0-n|0;d:{if((c|0)<=(b|0))break d;e=(n^-1)-b|0;f=c-b&3;if(f){m=0;while(1){H[(a+b|0)+222|0]=K[l|0];b=b+1|0;l=l+1|0;m=m+1|0;if((f|0)!=(m|0))continue;break}}if(e>>>0<3)break d;while(1){e=a+b|0;H[e+222|0]=K[l|0];H[e+223|0]=K[l+1|0];H[e+224|0]=K[l+2|0];H[e+225|0]=K[l+3|0];l=l+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}}J[d>>2]=l;H[a+254|0]=c}b=1}bc=o+16|0;return b}function MT(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;h=bc-32|0;bc=h; -a:{b:{c:{d=J[a+8>>2];d:{if((d|0)<=0|J[a+12>>2]<=0)break d;g=J[a+32>>2];if((g|0)<=0)break d;if(J[a+36>>2]>0)break c}a=Kc(h+8|0,2383181,2373803,211,2413396,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=g;e=d;e:{if(!(b|c))break e;if((b|0)>0){f=b;e=c;if((e|0)>0)break e}a=Kc(h+8|0,2375096,2373803,217,2413396,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=0;J[a+16>>2]=0;b=f<<1;if((e|0)>(b|0)){while(1){c=c+1|0;d=d+1>>1;f=b;b=b<<1;if((e| -0)>(b|0))continue;break}J[a+16>>2]=c}J[a+24>>2]=d;c=J[a+52>>2];if(!c){oe(a+56|0,g,4);g=J[a+32>>2];d=J[a+24>>2];c=J[a+52>>2]}a=e<<4;i=((a+f|0)/(b|0)|0)-8|0;b=i;if((g|0)>0){j=(d<<4)-16|0;e=(f|0)/2|0;d=0;while(1){J[(d<<2)+c>>2]=(b|0)<(j|0)?b:j;e=a+e|0;k=(e|0)/(f|0)|0;e=e-P(f,k)|0;b=b+k|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}if(!((a+i|0)==(b|0)|(f|0)!=(g|0))){a=Kc(h+8|0,2377775,2373803,203,2413820,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=h+32|0;return}B()}b= -Z()|0;Fc(a);ba(b|0);B()}function LT(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;h=bc-32|0;bc=h;a:{b:{c:{d:{if(J[a+8>>2]<=0)break d;d=J[a+12>>2];if((d|0)<=0|J[a+32>>2]<=0)break d;g=J[a+36>>2];if((g|0)>0)break c}a=Kc(h+8|0,2383181,2373803,237,2413435,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=g;e=d;e:{if(!(b|c))break e;if((b|0)>0){f=b;e=c;if((e|0)>0)break e}a=Kc(h+8|0,2375096,2373803,243,2413435,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break b;break a}c=0;J[a+20>>2]=0;b=f<<1;if((e|0)>(b|0)){while(1){c=c+1|0;d=d+1>>1;f=b;b=b<<1;if((e|0)>(b|0))continue;break}J[a+20>>2]=c}J[a+28>>2]=d;c=J[a+40>>2];if(!c){oe(a+44|0,g,4);g=J[a+36>>2];d=J[a+28>>2];c=J[a+40>>2]}a=e<<4;i=((a+f|0)/(b|0)|0)-8|0;b=i;if((g|0)>0){j=(d<<4)-16|0;e=(f|0)/2|0;d=0;while(1){J[(d<<2)+c>>2]=(b|0)<(j|0)?b:j;e=a+e|0;k=(e|0)/(f|0)|0;e=e-P(f,k)|0;b=b+k|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}if(!((a+i|0)==(b|0)|(f|0)!=(g|0))){a=Kc(h+8|0,2377775,2373803, -203,2413820,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=h+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function GB(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;h=bc-16|0;bc=h;a:{if(J[a+48>>2]?a:0)break a;e=gc[J[659447]](64)|0;if(!e){J[h>>2]=21454;Cc(0,0,0,0,0,2,2,3,21454,0,0,0,32863,h);break a}J[e>>2]=0;J[e+4>>2]=0;J[e+56>>2]=0;J[e+60>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>> -2]=0;J[e+12>>2]=0;J[e+4>>2]=14;if(b){f=b;while(1){g=f;f=f+1|0;if(K[g|0])continue;break}f=0;g=g-b|0;b:{if((g|0)<0)break b;i=gc[J[659450]](g+1|0)|0;if(!i){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}f=tc(i,b,g);H[g+f|0]=0}J[e+8>>2]=f}if(c){f=c;while(1){b=f;f=b+1|0;if(K[b|0])continue;break}f=0;b=b-c|0;c:{if((b|0)<0)break c;g=gc[J[659450]](b+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break c}f=tc(g,c,b);H[b+f|0]=0}J[e+52>>2]=f}if(d){f=d;while(1){b=f;f=b+1|0;if(K[b|0])continue;break}f=0;b=b-d|0; -d:{if((b|0)<0)break d;c=gc[J[659450]](b+1|0)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}f=tc(c,d,b);H[b+f|0]=0}J[e+56>>2]=f}if(a)J[a+48>>2]=e;J[e+32>>2]=a;e:{if(!J[689540])break e;a=J[689537];if(!a)break e;gc[a|0](e)}f=e}bc=h+16|0;return f}function hyb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{b:{c:{if(!J[a+16>>2])break c;d=K[a+25|0];if(d>>>0>=33)break c;b=-1;if((d|0)!=(J[a+32>>2]-1|0))break b;d=J[c+8>>2];d:{if(d&7)break d;f=a+24|0;e=K[f|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a; -J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break e}if((Uc(c,e)|0)==-1)break d}b=-1;d=J[c+8>>2];if(d&7)break d;e=K[a+13|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;f:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break f}if((Uc(c,e)|0)==-1)break d}b=-1;if(wh(c,J[a+16>>2]))break d;d=J[c+8>>2];if(d&7)break d;e=K[a+20|0]; -b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;g:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break g}if((Uc(c,e)|0)==-1)break d}b=C9(c,H[a+12|0]&1,f)?-1:0}return b|0}fa(208454,207960,612,208858);B()}fa(208553,207960,613,208858);B()}J[c+8>>2]=d|4;return-1}function Qqa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=bc-3328|0;bc=f;J[a+72>>2]=0;J[a+76>>2]=0;Lz(a+80|0);J[a+16>>2]=0;md(a+20|0,0);Lz(a+24|0);e=tT(f); -J[e+3320>>2]=0;J[e+3312>>2]=0;J[e+3316>>2]=0;J[e>>2]=2421416;J[695492]=0;da(5509,e|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)==1)break c;J[e+3320>>2]=d;J[e+3316>>2]=c;J[695492]=0;J[f+3324>>2]=0;b=f+3324|0;aa(4985,b|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;da(5513,e|0,b|0);a=J[695492];J[695492]=0;d:{if((a|0)!=1){a=J[f+3324>>2];J[f+3324>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d;J[695492]=0;_(4987,a|0); -a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}a=Z()|0;vc(f+3324|0);break b}J[e>>2]=2421416;a=J[e+3312>>2];J[e+3312>>2]=0;e:{if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[e>>2]=2421484;xd(e+120|0);xd(e+96|0);xd(e+72|0);_c(e+40|0);_c(e+28|0);_c(e+16|0);bc=f+3328|0;return}a=Z()|0}hG(e);ba(a|0);B()}ea(0)|0;yc();B()}function XQa(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;g=bc-128|0;bc=g;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,d,817588,0);break a}d=J[d+116>>2];if((gc[J[J[d>>2]+28>>2]](d)|0)!=(c|0)){d=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,818634,0);break a}d=0;h=J[a+28>>2];e=J[h+380>>2];if(e)gc[J[J[e>>2]+4>>2]](e);J[h+380>>2]=0;d:{if((c|0)<=0)break d;if((c| -0)!=1){h=c&-2;while(1){i=(d<<2)+g|0;e=(d<<4)+b|0;f=(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3])*65536;e:{if(R(f)<2147483648){e=~~f;break e}e=-2147483648}J[i>>2]=e;i=d|1;e=(i<<4)+b|0;f=(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3])*65536;f:{if(R(f)<2147483648){e=~~f;break f}e=-2147483648}J[(i<<2)+g>>2]=e;d=d+2|0;j=j+2|0;if((h|0)!=(j|0))continue;break}}if(!(c&1))break d;c=(d<<2)+g|0;b=(d<<4)+b|0;f=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*65536;g:{if(R(f)<2147483648){b=~~f;break g}b=-2147483648}J[c>>2]=b}tc(J[a+28>>2]+124|0,g,128); -b=J[a+8>>2];gc[J[J[b>>2]+116>>2]](b,J[a+28>>2])}bc=g+128|0}function ola(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=bc-16|0;bc=e;J[a+8>>2]=340520;c=a+12|0;J[c>>2]=0;J[c+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[695492]=0;ga(2226,a+24|0,2431328,5)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){if(H[a+23|0]>=0)break b;J[a+16>>2]=0;c=J[a+12>>2];break a}b=Z()|0;if(H[a+35|0]<0)qc(J[a+24>>2]);if(H[a+23|0]<0)qc(J[a+12>>2]);ba(b|0);B()}H[a+23|0]=0}J[c>>2]=0;I[a+56>>1]=0;J[a+48>>2]=0;J[a+52>>2]=0; -J[a+40>>2]=0;J[a+44>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;H[a+133|0]=0;H[a+131|0]=0;H[a+132|0]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;c=a+120|0;J[c>>2]=0;J[a+156>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;I[a+134>>1]=65535;J[a+136>>2]=0;J[a+140>>2]=0;H[a+143|0]=0;H[a+144|0]=0;H[a+145|0]=0;H[a+146|0]=0;d=J[J[b>>2]+52>>2];J[695492]=0;b=$(d|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)c:{J[a>> -2]=b;J[e+12>>2]=8;d=J[J[b>>2]+72>>2];J[695492]=0;da(d|0,b|0,e+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;bc=e+16|0;return a|0}b=Z()|0;av(c);kn(a+8|0);ba(b|0);B()}function mFa(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;a=bc-48|0;bc=a;a:{if(!K[c+8|0])break a;e=J[c>>2];if(!e)break a;f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(f)break a;qc(e)}J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;e=Ve(2368360);H[c+8|0]=0;J[c>>2]=2368360;J[c+4>>2]=(e|0)<0?-2147483648:e;b:{c:{if(!Gh(b)){e=a+36|0;J[e>>2]=0;J[e+4>>2]=0;H[e+ -8|0]=0;J[695492]=0;h=Qg(b);f=J[695492];J[695492]=0;d:{e:{f:{g:{h:{if((f|0)!=1){while(1){J[695492]=0;f=aa(4815,b|0,h|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;if(!f)break d;J[695492]=0;f=a+12|0;da(4802,f|0,b|0);g=J[695492];J[695492]=0;if((g|0)==1)break h;J[695492]=0;f=aa(4825,a+24|0,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break g;J[695492]=0;Xf(e,f);g=J[695492];J[695492]=0;if((g|0)==1)break f;Lc(f);if(H[a+23|0]<0)qc(J[a+12>>2]);J[695492]=0;f=Fd(e,2369504);g=J[695492];J[695492]=0;if((g|0)== -1)break c;if(!f)continue;break}J[695492]=0;ia(4894,b|0,c|0,d|0,0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break e}b=Z()|0;Lc(f)}if(H[a+23|0]>=0)break b;qc(J[a+12>>2]);break b}Lc(e)}bc=a+48|0;return}b=Z()|0}Lc(e);ba(b|0);B()}function fT(a){var b=0,c=0,d=0,e=0;b=J[a+1264>>2];if(b){qc(b);J[a+1264>>2]=0}b=J[a+1216>>2];if(b){qc(b);J[a+1216>>2]=0}b=a+944|0;c=J[b+192>>2];if(c){qc(c);J[b+192>>2]=0}c=J[b+116>>2];if(c){d=J[c-4>>2];if(d){d=c+(d<<5)|0;while(1){d=d- -32|0;e=J[d+24>>2];if(e){qc(e);J[d+24>>2]=0}if((c|0)!=(d|0))continue;break}}qc(c-8|0);J[b+116>>2]=0}J[b>>2]=2427564;c=J[b+4>>2];if(c){gc[J[J[c>>2]+4>>2]](c);J[b+4>>2]=0}dv(b+20|0,J[b+24>>2]);Ed(a+924|0);Ed(a+920|0);J[a+832>>2]=340520;if(H[a+859|0]<0)qc(J[a+848>>2]);if(H[a+847|0]<0)qc(J[a+836>>2]);J[a+752>>2]=340520;if(H[a+779|0]<0)qc(J[a+768>>2]);if(H[a+767|0]<0)qc(J[a+756>>2]);J[a+384>>2]=340472;a:{b=J[a+412>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a; -J[a+412>>2]=0}Qe(a+596|0);b=J[a+504>>2];if(b){J[a+508>>2]=b;qc(b)}if(H[a+431|0]<0)qc(J[a+420>>2]);Ed(a+416|0);J[a+16>>2]=340472;b=J[a+44>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+44>>2]=0}Qe(a+228|0);b=J[a+136>>2];if(b){J[a+140>>2]=b;qc(b)}if(H[a+63|0]<0)qc(J[a+52>>2]);Ed(a+48|0);return a}ea(0)|0;yc();B()}function v0(){var a=0,b=0;b=zc(1040);if(b){a=wc(b,0,1040);J[a+1024>>2]=64;J[a+1008>>2]=63;J[a+992>>2]=62;J[a+976>>2]=61;J[a+960>>2]=60; -J[a+944>>2]=59;J[a+928>>2]=58;J[a+912>>2]=57;J[a+896>>2]=56;J[a+880>>2]=55;J[a+864>>2]=54;J[a+848>>2]=53;J[a+832>>2]=52;J[a+816>>2]=51;J[a+800>>2]=50;J[a+784>>2]=49;J[a+768>>2]=48;J[a+752>>2]=47;J[a+736>>2]=46;J[a+720>>2]=45;J[a+704>>2]=44;J[a+688>>2]=43;J[a+672>>2]=42;J[a+656>>2]=41;J[a+640>>2]=40;J[a+624>>2]=39;J[a+608>>2]=38;J[a+592>>2]=37;J[a+576>>2]=36;J[a+560>>2]=35;J[a+544>>2]=34;J[a+528>>2]=33;J[a+512>>2]=32;J[a+496>>2]=31;J[a+480>>2]=30;J[a+464>>2]=29;J[a+448>>2]=28;J[a+432>>2]=27;J[a+416>> -2]=26;J[a+400>>2]=25;J[a+384>>2]=24;J[a+368>>2]=23;J[a+352>>2]=22;J[a+336>>2]=21;J[a+320>>2]=20;J[a+304>>2]=19;J[a+288>>2]=18;J[a+272>>2]=17;J[a+256>>2]=16;J[a+240>>2]=15;J[a+224>>2]=14;J[a+208>>2]=13;J[a+192>>2]=12;J[a+176>>2]=11;J[a+160>>2]=10;J[a+144>>2]=9;J[a+128>>2]=8;J[a+112>>2]=7;J[a+96>>2]=6;J[a+80>>2]=5;J[a+64>>2]=4;J[a+48>>2]=3;J[a+32>>2]=2;J[a+16>>2]=1;J[a+88>>2]=5;J[a+92>>2]=0;J[a+72>>2]=3;J[a+76>>2]=0;J[a+40>>2]=2;J[a+44>>2]=0;J[a+24>>2]=1;J[a+28>>2]=0}return b}function zMa(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;e=a;while(1){d=J[(i<<2)+b>>2]+c|0;g=K[d+4|0];h=K[d+3|0];f=g+h|0;j=K[d+7|0];k=K[d|0];l=j+k|0;m=f+l|0;n=K[d+6|0];o=K[d+1|0];p=n+o|0;q=K[d+5|0];r=K[d+2|0];d=q+r|0;s=p+d|0;J[e+16>>2]=m-s;J[e>>2]=(m+s|0)-1024;m=p-d|0;d=l-f|0;f=P(m+d|0,181)>>8;J[e+24>>2]=d-f;J[e+8>>2]=d+f;d=h-g|0;g=r-q|0;h=d+g|0;l=o-n|0;d=k-j|0;j=l+d|0;f=P(h-j|0,98)>>8;h=f+(P(h,139)>>8)|0;g=P(g+l|0,181)>>8;k=d-g|0;J[e+20>>2]=h+k;J[e+12>>2]=k-h;d=d+g|0;f= -f+(P(j,334)>>8)|0;J[e+28>>2]=d-f;J[e+4>>2]=d+f;e=e+32|0;i=i+1|0;if((i|0)!=8)continue;break}b=7;while(1){d=J[a+128>>2];i=J[a+96>>2];c=d+i|0;f=J[a+224>>2];g=J[a>>2];e=f+g|0;h=c+e|0;j=J[a+160>>2];k=J[a+64>>2];l=j+k|0;m=J[a+192>>2];n=J[a+32>>2];o=m+n|0;p=l+o|0;J[a+128>>2]=h-p;J[a>>2]=h+p;c=e-c|0;e=P(c+(o-l|0)|0,181)>>8;J[a+192>>2]=c-e;J[a+64>>2]=c+e;c=i-d|0;d=k-j|0;i=c+d|0;h=n-m|0;c=g-f|0;f=h+c|0;e=P(i-f|0,98)>>8;i=e+(P(i,139)>>8)|0;d=P(d+h|0,181)>>8;g=c-d|0;J[a+160>>2]=i+g;J[a+96>>2]=g-i;c=c+d|0;e=e+ -(P(f,334)>>8)|0;J[a+224>>2]=c-e;J[a+32>>2]=c+e;c=b;b=c-1|0;a=a+4|0;if(c)continue;break}}function lo(a){var b=0;b=J[a>>2];if(b){if(H[b+11|0]<0)qc(J[b>>2]);qc(b);J[a>>2]=0}b=J[a+4>>2];if(b){if(H[b+11|0]<0)qc(J[b>>2]);qc(b);J[a+4>>2]=0}b=J[a+8>>2];if(b){if(H[b+11|0]<0)qc(J[b>>2]);qc(b);J[a+8>>2]=0}b=J[a+12>>2];if(b){if(H[b+11|0]<0)qc(J[b>>2]);qc(b);J[a+12>>2]=0}b=J[a+16>>2];if(b){qc(b);J[a+16>>2]=0}b=J[a+20>>2];if(b){qc(b);J[a+20>>2]=0}b=J[a+24>>2];if(b){qc(b);J[a+24>>2]=0}b=J[a+28>>2];if(b){qc(b);J[a+ -28>>2]=0}b=J[a+32>>2];if(b){qc(b);J[a+32>>2]=0}b=J[a+36>>2];if(b){qc(b);J[a+36>>2]=0}b=J[a+40>>2];if(b){qc(b);J[a+40>>2]=0}b=J[a+44>>2];if(b){qc(b);J[a+44>>2]=0}b=J[a+48>>2];if(b){qc(b);J[a+48>>2]=0}b=J[a+52>>2];if(b){qc(b);J[a+52>>2]=0}b=J[a+56>>2];if(b){qc(b);J[a+56>>2]=0}b=J[a+60>>2];if(b){qc(b);J[a+60>>2]=0}b=J[a+64>>2];if(b){qc(b);J[a+64>>2]=0}b=J[a+68>>2];if(b){qc(b);J[a+68>>2]=0}b=J[a+72>>2];if(b){qc(b);J[a+72>>2]=0}b=J[a+76>>2];if(b){qc(b);J[a+76>>2]=0}b=J[a+80>>2];if(b){qc(b);J[a+80>>2]= -0}b=J[a+84>>2];if(b){qc(b);J[a+84>>2]=0}b=J[a+88>>2];if(b){qc(b);J[a+88>>2]=0}b=J[a+92>>2];if(b){qc(b);J[a+92>>2]=0}b=J[a+96>>2];if(b){qc(b);J[a+96>>2]=0}b=J[a+100>>2];if(b){qc(b);J[a+100>>2]=0}}function grb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){m=e-2|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];g=g+3|0;a:{if(k>>>0>m>>>0)break a;i=k?(k|0)==(m|0)?d:b:c;if(!(!k&(e|0)==1)){if(i>>>0<2)break a;h=1;l=i<<1;while(1){a=K[f|0];j=K[f+3|0]; -if((a|0)!=(j|0))a=a+((i+(P(j-a|0,h)<<1)|0)/(l|0)|0)|0;H[g|0]=a;a=K[f+1|0];j=K[f+4|0];if((a|0)!=(j|0))a=a+((i+(P(j-a|0,h)<<1)|0)/(l|0)|0)|0;H[g+1|0]=a;a=K[f+2|0];j=K[f+5|0];if((a|0)!=(j|0))a=a+((i+(P(j-a|0,h)<<1)|0)/(l|0)|0)|0;H[g+2|0]=a;g=g+3|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}if(i>>>0<2)break a;h=i-1|0;a=h&3;if(i-2>>>0>=3){i=h&-4;h=0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f|0];H[g+4|0]=K[f+1|0];H[g+5|0]=K[f+2|0];H[g+6|0]=K[f|0];H[g+7|0]=K[f+1|0];H[g+8| -0]=K[f+2|0];H[g+9|0]=K[f|0];H[g+10|0]=K[f+1|0];H[g+11|0]=K[f+2|0];g=g+12|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}h=0;if(!a)break a;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];g=g+3|0;h=h+1|0;if((a|0)!=(h|0))continue;break}}f=f+3|0;k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function _K(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;a:{b:{if((f|0)==255){if(!e)break b;if((e|0)==255)break a;g=a+3|0;h=K[a|0];i=K[a+1|0];j=K[a+2|0];f=K[a+3|0];c:{if((f|0)==255){H[a|0]=h+(P(d-h|0,e)>>>8|0);d= -i+(P(c-i|0,e)>>>8|0)|0;f=j+(P(b-j|0,e)>>>8|0)|0;h=(e-(P(e,255)+255>>>8|0)|0)+255|0;break c}g=e+f-(P(e,f)+255>>>8)|0;H[a+3|0]=g;k=P(d,e);d=P(f,h);g=g&255;h=(k+d-(P(d,e)+255>>>8)>>>0)/(g>>>0)|0;d=P(c,e);c=P(f,i);d=(d+c-(P(c,e)+255>>>8)>>>0)/(g>>>0)|0;c=P(b,e);b=P(f,j);f=(c+b-(P(b,e)+255>>>8)>>>0)/(g>>>0)|0;g=a}H[a+1|0]=d;H[a+2|0]=f;H[g|0]=h;return}if(!e)break b;e=P(f+1|0,e)>>>8|0;if(!e)break b;if((e|0)==255)break a;g=a+3|0;h=K[a|0];i=K[a+1|0];j=K[a+2|0];f=K[a+3|0];d:{if((f|0)==255){H[a|0]=h+(P(e,d- -h|0)>>>8|0);d=i+(P(e,c-i|0)>>>8|0)|0;f=j+(P(e,b-j|0)>>>8|0)|0;h=(e-(P(e,255)+255>>>8|0)|0)+255|0;break d}g=e+f-(P(e,f)+255>>>8)|0;H[a+3|0]=g;k=P(d,e);d=P(f,h);g=g&255;h=(k+d-(P(d,e)+255>>>8)>>>0)/(g>>>0)|0;d=P(c,e);c=P(f,i);d=(d+c-(P(c,e)+255>>>8)>>>0)/(g>>>0)|0;c=P(b,e);b=P(f,j);f=(c+b-(P(b,e)+255>>>8)>>>0)/(g>>>0)|0;g=a}H[a+1|0]=d;H[a+2|0]=f;H[g|0]=h}return}H[a+1|0]=c;H[a+2|0]=b;H[a+3|0]=255;H[a|0]=d}function B9(a,b,c){var d=0,e=0,f=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{e=J[b+8>>2];l:{if(e&7)break l; -d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=e|4;break l}d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break k}e=jd(b,1);if((e|0)!=-1)break k}H[a+12|0]=0;H[a|0]=0;break j}d=e&31;H[a|0]=d;H[a+12|0]=(e&224)>>>5;switch(d|0){case 0:break j;case 2:break g;case 1:break h;default:break i}}c=c-1|0;break f}c=J[a+4>>2];break e}c=1;J[a+4>>2]=1;break d}c=c-1>>>1|0}J[a+4>>2]=c}if((c|0)<=0)break c}c=zc(c<<2);J[a+8>>2]=c;if(!c)break a;if(J[a+4>>2]<= -0)break b;c=0;while(1){m:{if(!K[a|0]){f=J[b+8>>2];n:{if(f&7)break n;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=f|4;break n}d=J[b+28>>2];J[b+28>>2]=d-1;o:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;d=K[d|0];break o}d=jd(b,1);if((d|0)==-1)break n}e=d}J[J[a+8>>2]+(c<<2)>>2]=(e&248)<<8;break m}Lg(b,J[a+8>>2]+(c<<2)|0)}c=c+1|0;if((c|0)>2])continue;break}break b}J[a+8>>2]=0}if(!(K[b+8|0]&3))return 0;a=J[a+8>>2];if(a)qc(a);return-1}fa(209687,207960,988,209729);B()} -function T_a(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;e=bc-32|0;bc=e;a:{f=J[a+4>>2];d=J[a>>2];i=(f-d|0)/12|0;c=i+1|0;if(c>>>0<357913942){g=a+8|0;h=J[g>>2];J[e+28>>2]=g;g=0;h=(h-d|0)/12|0;j=h<<1;h=h>>>0>=178956970?357913941:c>>>0>>0?j:c;if(h){if(h>>>0>=357913942)break a;g=rc(P(h,12))}J[e+12>>2]=g;c=P(i,12)+g|0;J[e+20>>2]=c;J[e+24>>2]=P(h,12)+g;J[e+16>>2]=c;b:{c:{if(H[b+11|0]>=0){g=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];b=c;break c}d=J[b+4>>2];b=J[b>>2];J[695492]=0; -ca(2672,c|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;d=J[a>>2];f=J[a+4>>2];c=J[e+16>>2];b=J[e+20>>2]}g=b+12|0;if((d|0)==(f|0))b=d;else{while(1){f=f-12|0;b=J[f+4>>2];c=c-12|0;J[c>>2]=J[f>>2];J[c+4>>2]=b;J[c+8>>2]=J[f+8>>2];J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if((d|0)!=(f|0))continue;break}d=J[a+4>>2];b=J[a>>2]}J[a>>2]=c;J[e+16>>2]=b;J[a+4>>2]=g;c=J[a+8>>2];J[a+8>>2]=J[e+24>>2];J[e+12>>2]=b;J[e+24>>2]=c;if((b|0)!=(d|0)){while(1){a=d-12|0;J[e+20>>2]=a;if(H[d-1|0]<0)qc(J[a>>2]);d=a;if((a|0)!= -(b|0))continue;break}d=b}if(d)qc(d);bc=e+32|0;return}a=Z()|0;SK(e+12|0);ba(a|0);B()}ph(a);B()}Sd();B()}function S9(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-176|0;bc=c;d=K[a+12|0];e=K[a+13|0];J[c+168>>2]=K[a+52|0];J[c+164>>2]=e;J[c+160>>2]=d;cd(b,207436,c+160|0);d=J[a+16>>2];J[c+144>>2]=0;J[c+148>>2]=0;O[c+152>>3]=+(d|0)*1.52587890625E-5;Ii(b,207540,c+144|0);d=J[a+20>>2];J[c+128>>2]=0;J[c+132>>2]=1;O[c+136>>3]=+(d|0)*1.52587890625E-5;Ii(b,207540,c+128|0);d=J[a+24>>2];J[c+112>>2]=0;J[c+116>>2]=2;O[c+120>> -3]=+(d|0)*1.52587890625E-5;Ii(b,207540,c+112|0);Ph(10,b);d=J[a+28>>2];J[c+96>>2]=1;J[c+100>>2]=0;O[c+104>>3]=+(d|0)*1.52587890625E-5;Ii(b,207540,c+96|0);d=J[a+32>>2];J[c+80>>2]=1;J[c+84>>2]=1;O[c+88>>3]=+(d|0)*1.52587890625E-5;Ii(b,207540,c+80|0);d=J[a+36>>2];J[c+64>>2]=1;J[c+68>>2]=2;O[c+72>>3]=+(d|0)*1.52587890625E-5;Ii(b,207540,c- -64|0);Ph(10,b);d=J[a+40>>2];J[c+48>>2]=2;J[c+52>>2]=0;O[c+56>>3]=+(d|0)*1.52587890625E-5;Ii(b,207540,c+48|0);d=J[a+44>>2];J[c+32>>2]=2;J[c+36>>2]=1;O[c+40>>3]=+(d|0)* -1.52587890625E-5;Ii(b,207540,c+32|0);d=J[a+48>>2];J[c+16>>2]=2;J[c+20>>2]=2;O[c+24>>3]=+(d|0)*1.52587890625E-5;Ii(b,207540,c+16|0);Ph(10,b);d=J[a+60>>2];J[c+4>>2]=J[a+72>>2];J[c>>2]=d;cd(b,207710,c);bc=c+176|0}function OI(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=bc-80|0;bc=g;f=1;e=b+1|0;d=Mf(a,b,c);a:{if((d|0)==28){c=Mf(a,e,c)<<8|Mf(a,b+2|0,c);x(0,(c&32768?c|-65536:c)|0);x(1,0);h=+z();e=b+3|0;break a}if((d|0)==29){d=Mf(a,e,c);x(0,(Mf(a,b+2|0,c)<<8|d<<16|Mf(a,b+3|0,c))<<8|Mf(a,b+4|0,c));x(1,0);h=+z(); -e=b+5|0;break a}if((d|0)==30){b=0;while(1){b:{i=Mf(a,e,c);e=e+1|0;j=i>>4;if((j|0)==15){d=b;break b}H[b+g|0]=K[j+2182480|0];d=64;f=b+1|0;if((f|0)==64)break b;if((j|0)==12){H[f+g|0]=45;f=b+2|0}i=i&15;if((i|0)==15){d=f;break b}if((f|0)==64){d=f;break b}H[f+g|0]=K[i+2182480|0];b=f+1|0;if((b|0)==64)break b;if((i|0)==12){H[b+g|0]=45;b=f+2|0}d=b;if((b|0)<64)continue}break}H[d+g|0]=0;f=2;h=Wf(g);break a}if(d-32>>>0<=214){x(0,d-139|0);x(1,0);h=+z();break a}if(d-247>>>0<=3){x(0,(Mf(a,e,c)+(d<<8)|0)-63124|0); -x(1,0);h=+z();e=b+2|0;break a}if(d-251>>>0<=3){x(0,64148-(Mf(a,e,c)+(d<<8)|0)|0);x(1,0);h=+z();e=b+2|0;break a}c:{if((d|0)==12){x(0,Mf(a,e,c)+3072|0);x(1,0);h=+z();e=b+2|0;break c}x(0,d|0);x(1,0);h=+z()}f=0}b=J[a+1144>>2];if((b|0)<=48){J[a+1144>>2]=b+1;a=(b<<4)+a|0;O[a+368>>3]=h;J[a+360>>2]=f}bc=g+80|0;return e}function _qb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){m=e-2|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f+3|0]; -g=g+4|0;a:{if(k>>>0>m>>>0)break a;j=k?(k|0)==(m|0)?d:b:c;if(!(!k&(e|0)==1)){if(j>>>0<2)break a;h=1;l=j<<1;while(1){a=K[f|0];i=K[f+4|0];if((a|0)!=(i|0))a=a+(((P(i-a|0,h)<<1)+j|0)/(l|0)|0)|0;H[g|0]=a;a=K[f+1|0];i=K[f+5|0];if((a|0)!=(i|0))a=a+(((P(i-a|0,h)<<1)+j|0)/(l|0)|0)|0;H[g+1|0]=a;a=K[f+2|0];i=K[f+6|0];if((a|0)!=(i|0))a=a+(((P(i-a|0,h)<<1)+j|0)/(l|0)|0)|0;H[g+2|0]=a;a=K[f+3|0];i=K[f+7|0];if((a|0)!=(i|0))a=a+(((P(i-a|0,h)<<1)+j|0)/(l|0)|0)|0;H[g+3|0]=a;g=g+4|0;h=h+1|0;if((h|0)!=(j|0))continue;break}break a}if(j>>> -0<2)break a;a=j-1|0;l=a&1;if((j|0)!=2){a=a&-2;h=0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f+3|0];H[g+4|0]=K[f|0];H[g+5|0]=K[f+1|0];H[g+6|0]=K[f+2|0];H[g+7|0]=K[f+3|0];g=g+8|0;h=h+2|0;if((a|0)!=(h|0))continue;break}}if(!l)break a;H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f+3|0];g=g+4|0}f=f+4|0;k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function Rg(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;a=J[a>>2];j=J[a+4>>2];i=J[a+16>>2];a:{b:{if((i|0)>=0){a= -P(c,i);break b}k=j-J[a>>2]|0;a=P(c,i);if((k|0)<(0-a|0))break a}h=a+j|0}h=(b<<2)+h|0;c:{if(f)while(1){_K(h,K[e|0],K[e+1|0],K[e+2|0],K[e+3|0],K[f|0]);e=e+4|0;h=h+4|0;f=f+1|0;d=d-1|0;if(d)continue;break c}if((g|0)==255)while(1){c=K[e+3|0];d:{if(!c)break d;a=K[e+2|0];g=K[e+1|0];j=K[e|0];if((c|0)==255){H[h+1|0]=g;H[h+2|0]=j;H[h+3|0]=255;H[h|0]=a;break d}b=h+3|0;i=K[h|0];k=K[h+1|0];l=K[h+2|0];f=K[h+3|0];e:{if((f|0)==255){H[h|0]=i+(P(c,a-i|0)>>>8|0);a=(P(c,g-k|0)>>>8|0)+k|0;g=(P(c,j-l|0)>>>8|0)+l|0;i=(c- -(P(c,255)+255>>>8|0)|0)+255|0;break e}b=c+f-(P(c,f)+255>>>8)|0;H[h+3|0]=b;m=P(a,c);a=P(f,i);b=b&255;i=(m+a-(P(a,c)+255>>>8)>>>0)/(b>>>0)|0;a=P(f,k);a=(a+P(c,g)-(P(a,c)+255>>>8)>>>0)/(b>>>0)|0;f=P(f,l);g=(f+P(c,j)-(P(c,f)+255>>>8)>>>0)/(b>>>0)|0;b=h}H[h+1|0]=a;H[h+2|0]=g;H[b|0]=i}e=e+4|0;h=h+4|0;d=d-1|0;if(d)continue;break c}_K(h,K[e|0],K[e+1|0],K[e+2|0],K[e+3|0],g);f=d-1|0;if(!f)break c;while(1){h=h+4|0;_K(h,K[e+4|0],K[e+5|0],K[e+6|0],K[e+7|0],g);e=e+4|0;f=f-1|0;if(f)continue;break}}}function iJ(a, -b){var c=0,d=0,e=0,f=0,g=0;e=bc-48|0;bc=e;a:{if(J[a+292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Hd(a)}d=Z_(a);g=K[J[J[a+36>>2]+16>>2]];b:{c:{if(!d){c=0;if((g|0)!=58)break b;d=Uh(a);if(!d)break b;if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=d;break c}J[a+84>>2]=202;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=d;Cc(0,0,0,a,0,3,202,2,d,0,0,0,37625,e);J[a+356>>2]=0;c=d;break c}if((g|0)!=58){c=d;break c}Qd(a);c=Z_(a);if(!c){if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=202;J[e+20>>2]=0;J[e+24>> -2]=0;J[e+16>>2]=d;Cc(0,0,0,a,0,3,202,2,d,0,0,0,38191,e+16|0);J[a+356>>2]=0}c=v$(a);d:{if(!c){d=Dt(39181,d,0,0);break d}d=Dt(c,d,0,0);gc[J[659451]](c)}c=le(J[a+296>>2],d,-1);if(!d)break c;gc[J[659451]](d);break c}e:{if(K[J[J[a+36>>2]+16>>2]]!=58)break e;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=202;J[e+40>>2]=0;J[e+36>>2]=c;J[e+32>>2]=d;Cc(0,0,0,a,0,3,202,2,d,c,0,0,38159,e+32|0);J[a+356>>2]=0}Qd(a);f=Uh(a);f:{if(f){f=Dt(f,c,0,0);c=le(J[a+296>>2],f,-1);if(f)break f;break e}f=Dt(39181,c,0,0);c= -le(J[a+296>>2],f,-1);if(!f)break e}gc[J[659451]](f)}f=d}J[b>>2]=f}bc=e+48|0;return c}function ex(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=bc-1312|0;bc=g;f=J[a+4>>2];j=J[f+492>>2];k=J[j+12>>2];h=J[J[f+128>>2]+52>>2];i=J[f+452>>2];e=a+1388|0;J[e>>2]=J[f+448>>2];J[e+4>>2]=i;e=J[f+444>>2];J[a+1380>>2]=J[f+440>>2];J[a+1384>>2]=e;e=J[f+460>>2];J[a+1396>>2]=J[f+456>>2];J[a+1400>>2]=e;a:{b:{if(!h){e=b<<2;J[c>>2]=J[e+J[f+428>>2]>>2];J[c+4>>2]=J[e+J[f+432>>2]>>2];break b}e=gc[J[J[h>>2]>>2]](J[h+4>> -2],b,c)|0;if(e)break a}c:{if(K[a+70|0]){e=gc[J[k+8>>2]](a,J[c>>2],J[c+4>>2])|0;break c}i=g+656|0;e=i;gc[J[j+24>>2]](e,a,1);l=f;m=f+168|0;f=g+4|0;gc[J[j+28>>2]](l,m,f);J[g+1192>>2]=f;e=gc[J[k+12>>2]](e,J[c>>2],J[c+4>>2])|0;if((e&255)!=164)break c;H[J[a+8>>2]+160|0]=0;H[d|0]=1;e=gc[J[k+12>>2]](i,J[c>>2],J[c+4>>2])|0}if(e|!h)break a;if(!J[J[h>>2]+8>>2]){e=0;break a}c=J[a+32>>2];J[g+8>>2]=0;J[g+4>>2]=((c+(c>>31)|0)+32768&-65536)>>16;c=J[a+40>>2];J[g+12>>2]=(((c>>31)+c|0)+32768&-65536)>>16;c=J[a+44>>2]; -J[g+16>>2]=(((c>>31)+c|0)+32768&-65536)>>16;e=gc[J[J[h>>2]+8>>2]](J[h+4>>2],b,0,g+4|0)|0;J[a+32>>2]=J[g+4>>2]<<16;J[a+40>>2]=J[g+12>>2]<<16;J[a+44>>2]=J[g+16>>2]<<16}bc=g+1312|0;return e}function TK(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;e=bc-32|0;bc=e;a:{f=J[a+4>>2];d=J[a>>2];i=(f-d|0)/12|0;c=i+1|0;if(c>>>0<357913942){g=a+8|0;h=J[g>>2];J[e+28>>2]=g;g=0;h=(h-d|0)/12|0;j=h<<1;h=h>>>0>=178956970?357913941:c>>>0>>0?j:c;if(h){if(h>>>0>=357913942)break a;g=rc(P(h,12))}J[e+12>>2]=g;c=P(i, -12)+g|0;J[e+20>>2]=c;J[e+24>>2]=P(h,12)+g;J[e+16>>2]=c;b:{c:{if(H[b+11|0]>=0){g=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];b=c;break c}d=J[b+4>>2];b=J[b>>2];J[695492]=0;ca(15,c|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;d=J[a>>2];f=J[a+4>>2];c=J[e+16>>2];b=J[e+20>>2]}g=b+12|0;if((d|0)==(f|0))b=d;else{while(1){f=f-12|0;b=J[f+4>>2];c=c-12|0;J[c>>2]=J[f>>2];J[c+4>>2]=b;J[c+8>>2]=J[f+8>>2];J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if((d|0)!=(f|0))continue;break}d=J[a+4>>2];b=J[a>>2]}J[a>> -2]=c;J[e+16>>2]=b;J[a+4>>2]=g;c=J[a+8>>2];J[a+8>>2]=J[e+24>>2];J[e+12>>2]=b;J[e+24>>2]=c;if((b|0)!=(d|0)){while(1){a=d-12|0;J[e+20>>2]=a;if(H[d-1|0]<0)qc(J[a>>2]);d=a;if((a|0)!=(b|0))continue;break}d=b}if(d)qc(d);bc=e+32|0;return}a=Z()|0;SK(e+12|0);ba(a|0);B()}Gp(a);B()}Sd();B()}function asb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];e=J[a+540>>2];if(!e)e=J[J[a+528>>2]+88>>2];a:{b:{c:{if(K[e+56|0]){if((b|0)>0)break c;b=0;break a}if((b| -0)>0)break b;b=1;break a}while(1){b=K[d+2|0]|K[d+3|0]<<8;j=(b<<8|b>>>8)&65535;b=K[d+4|0]|K[d+5|0]<<8;k=(b<<8|b>>>8)&65535;b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;d:{if(!((b|0)!=L[e+838>>1]|(j|0)!=L[e+840>>1])){f=0;h=0;g=0;i=0;if(L[e+842>>1]==(k|0))break d}h=65535;f=k;g=b;i=j}b=i;g=g<<8|g>>>8;H[c|0]=g;H[c+1|0]=g>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;b=f<<8|f>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=h<<8|h>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;c=c+8|0;d=d+6|0;l=l+1|0;if((l|0)>2])continue;break}b=0;break a}while(1){b= -K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;b=K[d+2|0]|K[d+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;b=K[d+4|0]|K[d+5|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;H[c+6|0]=255;H[c+7|0]=255;c=c+8|0;d=d+6|0;b=1;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=b;return 0}function $N(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=zc(120);if(d){c=_N();J[d+112>>2]=c;if(!c){ym(d);return 0}g=tc(wc(d,0,112),a,104);J[g+108>> -2]=0;b=J[c+8>>2];if(b){d=J[c>>2];if((d|0)>0){while(1){b=J[J[c+8>>2]+4>>2];f=J[b>>2];J[b>>2]=f-1;if((f|0)<=1){d=J[J[b+8>>2]>>2];if(d)gc[d|0](b);qc(b);d=J[c>>2]}d=d-1|0;a:{if((d|0)<=0){J[c>>2]=d;break a}b=J[c+8>>2];Zc(b,b+8|0,d<<3);b=J[c>>2];d=b-1|0;J[c>>2]=d;if((b|0)>1)continue}break}b=J[c+8>>2]}qc(b)}qc(c);f=J[a+112>>2];b:{c:{c=_N();if(!c)break c;d=0;if(J[f>>2]<=0)break b;while(1){a=J[f+8>>2]+(d<<3)|0;j=J[a>>2];h=J[a+4>>2];b=J[c>>2];d:{e:{a=d;f:{if((d|0)<0){a=b;if((b|0)>=0)break f;break e}if((a|0)> -(b|0))break e}if(J[c+4>>2]<=(b|0)){i=b+32|0;b=i<<3;e=J[c+8>>2];g:{if(e){b=Kh(e,b);break g}b=zc(b)}e=-1;if(!b)break d;J[c+4>>2]=i;J[c+8>>2]=b;b=J[c>>2]}J[h>>2]=J[h>>2]+1;e=b-a|0;if((e|0)>0){b=J[c+8>>2]+(a<<3)|0;Zc(b+8|0,b,e<<3);b=J[c>>2]}a=J[c+8>>2]+(a<<3)|0;J[a+4>>2]=h;J[a>>2]=j;J[c>>2]=b+1;e=0;break d}fa(205184,199159,765,206777);B()}if(e)break c;d=d+1|0;if((d|0)>2])continue;break}break b}J[g+112>>2]=0;ym(g);return 0}J[g+112>>2]=c}return g}function sH(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k= -0;e=bc-48|0;bc=e;J[e+32>>2]=13;J[e+16>>2]=13;a:{b:{c:{d:{if(J[Bc(b,d,e+32|0,0)>>2]==8){b=J[e+40>>2];if(J[Bc(gc[J[J[b>>2]+76>>2]](b)|0,783512,e+16|0,0)>>2]==7)break d}uc(e+32|0);uc(e+16|0);break c}J[e>>2]=13;b=J[e+40>>2];b=Ce(gc[J[J[b>>2]+76>>2]](b)|0,783512,e);g=J[a>>2];e:{f:{if(J[b>>2]!=9){f=J[g+4>>2];i=J[e+8>>2];break f}i=J[e+8>>2];g:{d=J[g>>2];f=J[g+4>>2];if((d|0)==(f|0))break g;while(1){if(J[d>>2]==(i|0))break g;d=d+4|0;if((f|0)!=(d|0))continue;break}break f}if((d|0)==(f|0))break f;uc(e+32|0); -uc(e+16|0);f=0;a=e;break e}d=J[g+8>>2];h:{if(d>>>0>f>>>0){J[f>>2]=i;J[g+4>>2]=f+4;break h}j=J[g>>2];h=f-j>>2;b=h+1|0;if(b>>>0>=1073741824)break b;k=h<<2;d=d-j|0;h=d>>1;h=d>>>0>=2147483644?1073741823:b>>>0>>0?h:b;if(h){if(h>>>0>=1073741824)break a;b=rc(h<<2)}else b=0;d=k+b|0;J[d>>2]=i;i=d+4|0;if((f|0)!=(j|0))while(1){d=d-4|0;f=f-4|0;J[d>>2]=J[f>>2];if((f|0)!=(j|0))continue;break}J[g+8>>2]=b+(h<<2);J[g+4>>2]=i;J[g>>2]=d;if(!j)break h;qc(j)}uc(e+32|0);uc(e);f=rA(J[e+24>>2],c,0,J[a>>2]);a=e+16|0}uc(a)}bc= -e+48|0;return f}kj(g);B()}Sd();B()}function VWa(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;e=bc-16|0;bc=e;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[e+12|0]=0;J[e+8>>2]=a;a:{b:{c:{d:{e:{f:{if(b){if(b>>>0>=357913942){J[695492]=0;_(2380,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break a}J[695492]=0;b=P(b,12);d=$(4,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[a+4>>2]=d;J[a>>2]=d;g=b+d|0;J[a+8>>2]=g;f=J[c>>2];h=J[c+4>>2];g:{if((f|0)==(h|0)){b=b-12|0;wc(d,0,(b-((b>>>0)%12|0)|0)+ -12|0);break g}i=h-f|0;b=i>>3;if(b>>>0>=536870912)break f;j=b<<3;while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;b=$(4,i|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[d+4>>2]=b;J[d>>2]=b;J[d+8>>2]=b+j;c=f;while(1){k=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=k;b=b+8|0;c=c+8|0;if((h|0)!=(c|0))continue;break}J[d+4>>2]=b;d=d+12|0;if((g|0)!=(d|0))continue;break}}J[a+4>>2]=g}bc=e+16|0;return a|0}J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;_(2264,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b= -Z()|0;c=J[d>>2];if(!c)break d;J[d+4>>2]=c;qc(c);J[a+4>>2]=d;break b}b=Z()|0}J[a+4>>2]=d;break b}b=Z()|0}no(e+8|0);ba(b|0);B()}B()}function Zp(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((b|c)<0)break a;f=J[a+4>>2];if(!f|J[a+16>>2]<=(b|0)|J[a+20>>2]<=(c|0))break a;h=J[a+44>>2];b:{if(h){i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);c:{if(!(!K[a+481|0]|(i|0)!=J[a+476>>2])){h=K[a+480|0];break c}H[a+481|0]=1;J[a+476>>2]=i;g=J[a+48>>2];n=g?g: -h;d:{if((n|0)<=0){h=0;break d}l=f+40|0;o=i>>>16&255;p=i>>>8&255;i=i&255;m=2E5;h=0;g=0;while(1){f=K[(k|1)+l|0]-p|0;j=P(f,f);f=K[k+l|0]-i|0;j=j+P(f,f)|0;f=K[(k|2)+l|0]-o|0;f=j+P(f,f)|0;if(!f){h=g;break d}j=f;f=(f|0)<(m|0);m=f?j:m;h=f?g:h;k=k+4|0;g=g+1|0;if((n|0)!=(g|0))continue;break}}H[a+480|0]=h}g=L[a+26>>1];if((g|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=h;break b}f=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,g)>>3)|0;e:switch(g-1|0){case 3:g=4-((b|0)%2<<2)&252;H[f|0]=K[f|0]&(15<>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;H[g|0]=K[d|0];H[g+1|0]=K[d+1|0];H[g+2|0]=K[d+2|0]}if(!e)break a;hh(a,b,c,K[d+3|0])}}function a$(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{if(!a|(b|0)<=0)break c;while(1){g=e;d=g+a|0;e=H[d|0];h=e&255;d:{if((e|0)>=0){if(e>>>0>=32){e=g+1|0;break d}if(!(!(1<>>0>13)){e=g+1|0;break d}break b}if((h&224)==192){e=g+2|0;if((e|0)>(b|0))break a;d=K[d+1|0];if((d& -192)!=128)break b;d=d&63|h<<6&1984;if(d>>>0>31|(1<>>0<=13:0))break d;break b}if((h&240)==224){e=g+3|0;if((e|0)>(b|0))break a;e:{f=K[d+1|0];if((f&192)==128){d=K[d+2|0];if((d&192)==128)break e}break b}d=d&63|(f<<6&4032|h<<12&61440);f:{if(d>>>0<=255){if(d>>>0>31)break d;if(!(1<>>0>13)break f;break d}if(d>>>0<55296|d-57344>>>0<8190)break d}break b}if((h&248)==240){e=g+4|0;if((e|0)>(b|0))break a;i=K[d+1|0];if((i&192)!=128)break b;f=K[d+2|0];if((f&192)!=128)break b;d=K[d+3|0];if((d& -192)!=128)break b;f=f<<6&4032|d&63;d=i<<12&258048|h<<18&1835008;f=f|d;g:{if(f>>>0<=255){if(f>>>0>31)break d;if(!(1<>>0>13)break g;break d}if(f>>>0<55296|f-57344>>>0<8190|d-65536>>>0<1048576)break d}break b}e=0-g|0;break c}if((b|0)>(e|0))continue;break}}return e}return 0-g|0}return c?0-g|0:g}function k0a(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;f=bc-16|0;bc=f;e=J[a+4>>2];h=J[e+20>>2];d=f+8|0;a:{b:{c:{d:{e:{f:{g=J[e+8>>2];switch(H[g+99|0]-99|0){case 8:break d;case 0:break e; -case 7:break f;default:break c}}d=f+8|0;if(K[g+58|0]==1){H[g+58|0]=0;H[f+8|0]=15;d=f+9|0}g:switch(K[g+54|0]){default:H[g+54|0]=0;H[d+2|0]=66;H[d|0]=27;H[d+1|0]=40;d=d+3|0;break;case 0:case 3:break g}H[d|0]=K[h|0];d=d+1|0;break c}if(K[g+58|0]){H[g+58|0]=0;H[f+8|0]=15;e=f+9|0}else e=f+8|0;H[e|0]=K[h|0];d=e+1|0;break c}d=K[e+61|0];if(J[g+64>>2])break b;g=K[e+52|0];if((d|0)==1){if(g){J[e+52>>2]=0;H[f+8|0]=15;e=f+9|0}else e=f+8|0;H[e|0]=K[h|0];d=e+1|0;break c}d=f+8|0;if(!g){J[e+52>>2]=1;H[f+8|0]=14;d= -f+9|0}H[d|0]=K[h|0];H[d+1|0]=K[h+1|0];d=d+2|0}e=a;a=f+8|0;BK(e,a,d-a|0,b,c);break a}b=J[g+40>>2];i=K[b+61|0];H[b+61|0]=d;j=J[b+20>>2];J[b+20>>2]=h;J[a+4>>2]=b;J[b+56>>2]=J[e+56>>2];r1(a,c);d=J[g+40>>2];J[e+56>>2]=J[d+56>>2];J[a+4>>2]=e;H[d+61|0]=i;J[d+20>>2]=j;if(J[c>>2]!=15)break a;b=K[d+63|0];a=b<<24>>24;if((a|0)>0){tc(e+76|0,d+76|0,b);d=J[g+40>>2];a=K[d+63|0]}H[e+63|0]=a;H[d+63|0]=0}bc=f+16|0}function H6a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=0,e=0,f=Q(0),g=Q(0),h=Q(0),i=0;f=Q(b-N[a+248>>2]);g=N[a+ -4>>2];c=Q(c-N[a+252>>2]);h=N[a+8>>2];b=Q(N[a+264>>2]*Q(Q(f*g)+Q(c*h)));f=Q(Q(Q(g*c)-Q(f*h))*N[a+268>>2]);a:{if(!(((C(b),v(2))&2147483647)>>>0<2139095041&((C(f),v(2))&2147483647)>>>0<=2139095040)){c=Q(b+f);break a}d=(C(f),v(2));if((d|0)==1065353216){c=UR(b);break a}i=d>>>30&2;e=(C(b),v(2));a=i|e>>>31;b:{e=e&2147483647;c:{if(!e){d:switch(a-2|0){case 0:c=Q(3.1415927410125732);break a;case 1:break d;default:break c}c=Q(-3.1415927410125732);break a}d=d&2147483647;if((d|0)!=2139095040){c=(x(2,(C(b),v(2))& --2147483648|1070141403),D());if(!d|!((e|0)!=2139095040&e>>>0<=d+218103808>>>0))break a;e:{if(i){c=Q(0);if(d>>>0>e+218103808>>>0)break e}c=UR(Q(R(Q(b/f))))}b=c;f:switch(a|0){case 1:c=Q(-b);break a;case 2:c=Q(Q(3.1415927410125732)-Q(b+Q(8.742277657347586E-8)));break a;case 0:break c;default:break f}c=Q(Q(b+Q(8.742277657347586E-8))+Q(-3.1415927410125732));break a}if((e|0)==2139095040)break b;b=N[(a<<2)+2451568>>2]}c=b;break a}c=N[(a<<2)+2451552>>2]}return Q(Q(+Q(R(c))*.3183098861837907))}function Ctb(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[J[a+536>>2]+88>>2];d=(J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0)+P(J[d+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];a:{b:switch(K[a+2253|0]-3|0){case 0:if(J[a+588>>2]<=0)break a;while(1){b=K[d|0]|K[d+1|0]<<8;c=(b<<8|b>>>8)&65535;b=K[e|0]|K[e+1|0]<<8;b=c+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8;b=d+2|0;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[e+2|0]|K[e+3|0]<<8;c=g+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;b=d+4|0;c=K[b| -0]|K[b+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[e+4|0]|K[e+5|0]<<8;c=g+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;e=e+6|0;d=d+8|0;f=f+1|0;if((f|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){b=K[e|0]|K[e+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8;b=K[e+2|0]|K[e+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d+2|0]=b;H[d+3|0]=b>>>8;b=K[e+4|0]|K[e+5|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d+4|0]=b;H[d+5|0]=b>>> -8;e=e+6|0;d=d+8|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function tc(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){wb(a|0,b|0,c|0);return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if(!(a&3)){c=a;break b}if(!c){c=a;break b}c=a;while(1){H[c|0]=K[b|0];b=b+1|0;c=c+1|0;if(!(c&3))break b;if(c>>>0>>0)continue;break}}d=e&-4;c:{if(d>>>0<64)break c;f=d+-64|0;if(f>>>0>>0)break c;while(1){J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=J[b+20>> -2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=J[b+28>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=J[b+36>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=J[b+44>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=J[b+52>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=J[b+60>>2];b=b- -64|0;c=c- -64|0;if(f>>>0>=c>>>0)continue;break}}if(c>>>0>=d>>>0)break a;while(1){J[c>>2]=J[b>>2];b=b+4|0;c=c+4|0;if(d>>>0>c>>>0)continue;break}break a}if(e>>>0<4){c=a;break a}d=e-4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){H[c|0]=K[b|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b+2|0]; -H[c+3|0]=K[b+3|0];b=b+4|0;c=c+4|0;if(d>>>0>=c>>>0)continue;break}}if(c>>>0>>0)while(1){H[c|0]=K[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}return a}function nH(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{if(a){if(!b)break b;J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=J[a+12>>2];c=J[b+24>>2];if(c){d=J[b+16>>2];if(d){c=0;while(1){f=J[(J[b+24>>2]+P(c,52)|0)+44>>2];if(f){qc(f);d=J[b+16>>2]}c=c+1|0;if(d>>>0>c>>>0)continue;break}c=J[b+24>>2]}qc(c);J[b+24>>2]=0}c=J[a+16>>2];J[b+ -16>>2]=c;c=_e(P(c,52));J[b+24>>2]=c;if(!c)break a;if(J[b+16>>2]){f=0;while(1){g=P(f,52);c=g+c|0;d=J[a+24>>2]+g|0;e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+48>>2]=J[d+48>>2];e=J[d+44>>2];J[c+40>>2]=J[d+40>>2];J[c+44>>2]=e;e=J[d+36>>2];J[c+32>>2]=J[d+32>>2];J[c+36>>2]=e;e=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=e;e=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=e;e=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=e;c=J[b+24>>2];J[(g+c|0)+44>>2]=0;f=f+1|0;if(f>>>0>2])continue;break}}J[b+20>>2]=J[a+ -20>>2];c=J[a+32>>2];J[b+32>>2]=c;if(c){c=_e(c);J[b+28>>2]=c;if(!c){J[b+28>>2]=0;J[b+32>>2]=0;return}tc(c,J[a+28>>2],J[a+32>>2]);return}J[b+28>>2]=0;return}fa(2338124,2339040,171,2343312);B()}fa(2339706,2339040,172,2343312);B()}J[b+16>>2]=0;J[b+24>>2]=0}function w3(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;f=J[a+480>>2];b=J[a+88>>2];c=(b|0)==1;J[f+28>>2]=c;l=f,m=gc[J[J[a+4>>2]+8>>2]](a,1,c?766:256,J[a+120>>2])|0,J[l+24>>2]=m;a:{if(J[a+120>>2]<=0)break a;i=J[f+20>>2];if((b|0)==1)while(1){c= -g<<2;b=J[(c+f|0)+32>>2];d=c+J[f+24>>2]|0;J[d>>2]=J[d>>2]+255;h=b+254|0;j=(b<<1)-2|0;e=(h|0)/(j|0)|0;i=(i|0)/(b|0)|0;d=J[c+J[f+24>>2]>>2];b=0;c=0;while(1){if((c|0)>(e|0))while(1){b=b+1|0;e=(h+P(b,510)|0)/(j|0)|0;if((e|0)<(c|0))continue;break}H[c+d|0]=P(b,i);c=c+1|0;if((c|0)!=256)continue;break}h=d+257|0;j=d+256|0;c=d+255|0;e=K[d|0];b=1;while(1){k=d-b|0;H[k|0]=e;H[b+c|0]=K[c|0];H[d+(b^-1)|0]=e;H[b+j|0]=K[c|0];H[k-2|0]=e;H[b+h|0]=K[c|0];b=b+3|0;if((b|0)!=256)continue;break}g=g+1|0;if((g|0)> -2])continue;break a}while(1){c=g<<2;b=J[(c+f|0)+32>>2];d=b+254|0;h=(b<<1)-2|0;e=(d|0)/(h|0)|0;i=(i|0)/(b|0)|0;j=J[c+J[f+24>>2]>>2];b=0;c=0;while(1){if((c|0)>(e|0))while(1){b=b+1|0;e=(d+P(b,510)|0)/(h|0)|0;if((e|0)<(c|0))continue;break}H[c+j|0]=P(b,i);c=c+1|0;if((c|0)!=256)continue;break}g=g+1|0;if((g|0)>2])continue;break}}}function GC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=bc-16|0;bc=i;d=J[a+28>>2];J[i+12>>2]=0;J[c>>2]=0;e=J[a+32>>2];if(e>>>0>2]){J[a+32>>2]=e+1;f=H[e|0]}else f= -0;f=f<<24>>24;e=-1;a:{if(!f)break a;h=f&255;if((f|0)<0){e=h<<8&32512;f=J[a+32>>2];if(f>>>0>2]){J[a+32>>2]=f+1;f=H[f|0]}else f=0;h=e|f<<24>>24&255}e=0;if(b>>>0>>0)break a;f=Sc(d,2,0,h+1|0,0,i+12|0);e=0;if(J[i+12>>2])break a;J[c>>2]=h;if(h){c=0;d=0;while(1){e=d+1|0;b=(d<<1)+f|0;d=J[a+32>>2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;g=d<<24>>24;j=g&255;b:{if((g|0)<0){c=mf(a)+c|0;I[b>>1]=c;b=0;d=e;e=j&127;if(!e)break b;while(1){c=mf(a)+c|0;I[(d<<1)+f>>1]=c;d=d+1|0;if(h>>>0<=d>>> -0)break b;b=b+1|0;if(e>>>0>b>>>0)continue;break}break b}d=J[a+32>>2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;c=(d<<24>>24&255)+c|0;I[b>>1]=c;b=0;d=e;if(!g)break b;while(1){e=(d<<1)+f|0;g=J[a+32>>2];if(g>>>0>2]){J[a+32>>2]=g+1;g=H[g|0]}else g=0;c=(g<<24>>24&255)+c|0;I[e>>1]=c;d=d+1|0;if(h>>>0<=d>>>0)break b;b=b+1|0;if(j>>>0>b>>>0)continue;break}}if(d>>>0>>0)continue;break}}e=f}bc=i+16|0;return e}function xsa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;J[695492]=0;J[c+24>> -2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2414676;ia(5486,c+12|0,c+16|0,a|0,b|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[c+16>>2]=2414580;b=J[c+28>>2];if(b){H[b|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;ed(d);b=J[c+12>>2];c:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+16>>2]=0}J[695492]=0;aa(4993,a|0,c+16|0)|0;b=J[695492];J[695492]=0;d:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+ -4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break a}a=Z()|0;vc(c+16|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+12>>2];J[c+12>>2]=0;e:{if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+32|0;return a|0}a=Z()|0;bh(c+16|0);ba(a|0);B()}vc(c+12|0);ba(a|0);B()}ea(0)|0;yc(); -B()}function hm(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=bc-192|0;bc=e;a:{if(!b|!c)break a;b:{if(J[a+256>>2]!=1?a:0)break b;c:{d=H[b|0];if((d|0)<0){if((K[b+1|0]&192)!=128)break c;d=d&255;d:{if((d&224)==224){if((K[b+2|0]&192)!=128)break c;if((d&240)==240){if((d&248)!=240|(K[b+3|0]&192)!=128)break c;d=b+3|0;J[c>>2]=4;b=(K[b+1|0]&63)<<12|(K[b|0]&7)<<18|(K[b+2|0]&63)<<6;break d}d=b+2|0;J[c>>2]=3;b=(K[b+1|0]&63)<<6|(K[b|0]&15)<<12;break d}d=b+1|0;J[c>>2]=2;b=(K[b|0]&31)<<6}d=b|K[d|0]&63;e:{if(d>>>0<=255){if(d>>> -0>31)break a;if(!(1<>>0>13)break e;break a}if(d>>>0<55296|d-57344>>>0<8190|d-65536>>>0<1048576)break a}EB(a,34763,d);break a}break b}f:{g:{if(!a)break g;d=J[a+36>>2];if(!d)break g;f=J[d+20>>2];d=J[d+16>>2];if((f-d|0)>3)break f}d=0;J[c>>2]=0;break a}f=K[d|0];g=K[d+1|0];h=K[d+2|0];J[e+28>>2]=K[d+3|0];J[e+24>>2]=h;J[e+20>>2]=g;J[e+16>>2]=f;d=e+32|0;Gi(d,149,36511,e+16|0);h:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break h;J[a+84>>2]=9;J[e+4>>2]=0;J[e>>2]=d;Cc(0,0,0,a,0,1,9,3,d,0,0,0,4560,e);J[a+12>> -2]=0;if(J[a+288>>2])break h;J[a+212>>2]=1}}J[c>>2]=1;d=K[b|0]}bc=e+192|0;return d}function Zsa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;J[695492]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2414676;ia(5479,c+12|0,c+16|0,a|0,b|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[c+16>>2]=2414580;b=J[c+28>>2];if(b){H[b|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;ed(d);b=J[c+12>>2];c:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+ -16>>2]=0}J[695492]=0;aa(4993,a|0,c+16|0)|0;b=J[695492];J[695492]=0;d:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break a}a=Z()|0;vc(c+16|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+12>>2];J[c+12>>2]=0;e:{if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break e; -J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+32|0;return a|0}a=Z()|0;bh(c+16|0);ba(a|0);B()}vc(c+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function Jta(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=bc-16|0;bc=g;J[a>>2]=0;a:{b:{c:{d:{e:{if(!c|!K[c|0])break e;h=-1;if((d|e)<0)h=Qc(c);f:{if((d|0)<0){d=(c+h|0)+d|0;f=c>>>0>d>>>0?c:d;break f}f=c;if(!d)break f;d=c+d|0;while(1){if(!K[f|0])break f;f=f+1|0;if(d>>>0>f>>>0)continue;break}}g:{if((e|0)<0){c=(c+h|0)+1|0;c=c>>>0< -e+f>>>0?f:c+e|0;break g}if(!e)break e;d=e+f|0;c=f;while(1){if(!K[c|0])break g;c=c+1|0;if(d>>>0>c>>>0)continue;break}}if(c>>>0<=f>>>0)break e;d=J[J[b>>2]+8>>2];J[695492]=0;e=d;d=g+12|0;c=c-f|0;ca(e|0,d|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;b=J[g+12>>2];J[g+12>>2]=0;h:{if(!b)break h;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break h;J[695492]=0;_(4987,b|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break a}b=c+f|0;c=J[J[a>>2]+12>>2];while(1){a=K[f|0];if(a){H[c|0]=a;c=c+1|0;f=f+1|0;if((b|0)!=(f|0))continue}break}H[c|0]=0}bc=g+16|0;return}f=Z()|0;break b}f=Z()|0;vc(g+12|0)}vc(a);ba(f|0);B()}ea(0)|0;yc();B()}function FNa(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[a+4>>2]=0;J[a>>2]=2307440;a:{b:{if(J[b>>2]==3){e=J[b+8>>2];d=J[e+4>>2];b=pF(d,805438);if(!(K[b+d|0]!=58|(b|0)>=J[e>>2])){d=rc(8);J[695492]=0;b=aa(3183,d|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b; -J[a+4>>2]=b;return a|0}g=805867;d=J[e>>2];c:{d:{if((d|0)<=0){d=0;i=805867;break d}i=d+805867|0;h=J[e+4>>2];while(1){e:{if((f|0)<4){b=K[g|0];if(b)break e}b=(f|0)!=4;break c}b=K[h|0]-b|0;if(b)break c;g=g+1|0;h=h+1|0;f=f+1|0;if((f|0)!=(d|0))continue;break}}b=0;if((d|0)==4)break c;b=K[i|0]?-1:0}if(!b){d=rc(8);J[695492]=0;c=aa(3182,d|0,806283)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+4>>2]=c;break a}d=rc(8);if(c){J[695492]=0;b=aa(3183,d|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;J[a+ -4>>2]=b;if((K[(J[b+4>>2]+J[b>>2]|0)-1|0]&239)!=47)zd(b,47);c=J[a+4>>2];b=J[e+4>>2];if(K[b|0]==47){cf(c,b+1|0,J[e>>2]-1|0);return a|0}break a}J[695492]=0;b=aa(3183,d|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;J[a+4>>2]=b;return a|0}xc(0,-1,806619,0);return a|0}a=Z()|0;qc(d);ba(a|0);B()}Dh(c,e);return a|0}function p$a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];i=P(P(I[c+16>>1],J[b+ -32>>2]),10033);g=P(I[c>>1],J[b>>2])<<13|1024;h=P(J[b+64>>2],I[c+32>>1]);j=g+P(h,5793)|0;k=(i+j<<2&-8192)+131072|0;l=P(P(I[c+20>>1],J[b+40>>2]),10033);m=P(I[c+4>>1],J[b+8>>2])<<13|1024;n=P(J[b+72>>2],I[c+36>>1]);o=m+P(n,5793)|0;p=l+o>>11;q=k+P(p,5793)|0;r=P(P(I[c+18>>1],J[b+36>>2]),10033);s=P(I[c+2>>1],J[b+4>>2])<<13|1024;c=P(J[b+68>>2],I[c+34>>1]);t=s+P(c,5793)|0;b=P(r+t>>11,10033);H[f|0]=K[a+(q+b>>>18&1023)|0];H[f+2|0]=K[a+(q-b>>>18&1023)|0];H[f+1|0]=K[a+(P(p,268423870)+k>>>18&1023)|0];b=J[d+4>> -2]+e|0;h=(g+P(h,1073730238)<<2&-8192)+131072|0;f=P(n,-11586)+m>>11;g=h+P(f,5793)|0;c=P(P(c,-11586)+s>>11,10033);H[b|0]=K[a+(g+c>>>18&1023)|0];H[b+2|0]=K[a+(g-c>>>18&1023)|0];H[b+1|0]=K[a+(h+P(f,268423870)>>>18&1023)|0];b=J[d+8>>2]+e|0;d=(j-i<<2&-8192)+131072|0;c=o-l>>11;e=d+P(c,5793)|0;f=P(t-r>>11,10033);H[b|0]=K[a+(e+f>>>18&1023)|0];H[b+2|0]=K[a+(e-f>>>18&1023)|0];H[b+1|0]=K[a+(d+P(c,268423870)>>>18&1023)|0]}function r7a(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;t=P(e,f);g=+(t>>>0)/65025;if(g>0){r=+(P(d,f)>>>0);k=+(P(c,f)>>>0)/65025;d=K[a+3|0];h=d?+(d>>>0)/255:.00392156862745098;c=K[a|0];n=+K[a+1|0];o=+K[a+2|0]/255;j=+(P(b,f)>>>0)/65025;m=j+j;a:{if(m>>0);s=r/65025;p=n/255;n=1-g;j=k+k;b:{if(j=i){i=p*((j-g)*(1-r)*(3-i/ -h)+g)+k*m;break b}i=k*m+(p*g+(j-g)*(Y(r)*h-p))}b=t+255|0;r=o*n;k=q/255;n=p*(1-g)+i;j=s+s;c:{if(j>>0<255?b>>>8|0:e;n=n*255+.5;d:{if(n<4294967296&n>=0){b=~~n>>>0;break d}b=0}H[a+1|0]=b;l=l*255+.5;e:{if(l<4294967296&l>=0){b=~~l>>>0;break e}b=0}H[a+2|0]=b;H[a+3|0]=c+d-(P(c,d)+255>>>8);i=(k*(1-g)+i)*255+.5;f:{if(i<4294967296&i>=0){b=~~i>>>0;break f}b=0}H[a| -0]=b}}function pEa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;a:{if(H[b+11|0]>=0){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+8>>2]=J[b+8>>2];break a}Re(a,J[b>>2],J[b+4>>2])}J[695492]=0;b=$(4,16)|0;d=J[695492];J[695492]=0;b:{c:{d:{e:{if((d|0)!=1){J[c+20>>2]=b;J[c+24>>2]=2;J[c+28>>2]=-2147483644;J[b+8>>2]=0;J[b>>2]=47;J[b+4>>2]=47;J[695492]=0;J[c+8>>2]=47;J[c+12>>2]=0;H[c+19|0]=1;ca(4970,a|0,c+20|0,c+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;if(H[c+19|0]<0)qc(J[c+8>>2]);if(H[c+31|0]<0)qc(J[c+ -20>>2]);J[695492]=0;b=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c+20>>2]=b;J[c+24>>2]=2;J[c+28>>2]=-2147483644;J[b+8>>2]=0;J[b>>2]=47;J[b+4>>2]=47;J[695492]=0;J[c+8>>2]=47;J[c+12>>2]=0;H[c+19|0]=1;ca(4970,a|0,c+20|0,c+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;if(H[c+19|0]<0)qc(J[c+8>>2]);if(H[c+31|0]<0)qc(J[c+20>>2]);bc=c+32|0;return}b=Z()|0;break b}b=Z()|0;if(H[c+19|0]<0)qc(J[c+8>>2]);if(H[c+31|0]>=0)break b;qc(J[c+20>>2]);break b}b=Z()|0;break b}b=Z()|0;if(H[c+19|0]<0)qc(J[c+ -8>>2]);if(H[c+31|0]>=0)break b;qc(J[c+20>>2])}if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}function N8a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-48|0;bc=c;a:{if(H[b+11|0]>=0){J[c+40>>2]=J[b+8>>2];d=J[b+4>>2];J[c+32>>2]=J[b>>2];J[c+36>>2]=d;break a}Re(c+32|0,J[b>>2],J[b+4>>2])}J[c+20>>2]=92;J[c+24>>2]=0;H[c+31|0]=1;J[695492]=0;J[c+8>>2]=47;J[c+12>>2]=0;H[c+19|0]=1;ca(2272,c+32|0,c+20|0,c+8|0);b=J[695492];J[695492]=0;b:{c:{d:{e:{f:{if((b|0)!=1){if(H[c+19|0]<0)qc(J[c+8>>2]);if(H[c+31|0]<0)qc(J[c+20>> -2]);J[695492]=0;e=xi(a+8|0,c+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;f=(a+12|0)!=(e|0);if(!f)break d;b=J[e+28>>2];if(b){d=J[J[b>>2]+12>>2];J[695492]=0;$(d|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[e+28>>2]=0}d=J[e+4>>2];if(d)break f;d=e;while(1){b=J[d+8>>2];g=J[b>>2]!=(d|0);d=b;if(g)continue;break}break e}b=Z()|0;if(H[c+19|0]<0)qc(J[c+8>>2]);if(H[c+31|0]>=0)break b;qc(J[c+20>>2]);break b}while(1){b=d;d=J[b>>2];if(d)continue;break}}if(J[a+8>>2]==(e|0))J[a+8>>2]=b;J[a+16>>2]= -J[a+16>>2]-1;BC(J[a+12>>2],e);if(H[e+27|0]<0)qc(J[e+16>>2]);qc(e)}if(H[c+43|0]<0)qc(J[c+32>>2]);bc=c+48|0;return f|0}b=Z()|0}if(H[c+43|0]<0)qc(J[c+32>>2]);ba(b|0);B()}function lta(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;J[695492]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2413944;ca(5467,c+12|0,c+16|0,b|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[c+16>>2]=2414580;b=J[c+28>>2];if(b){H[b|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;ed(d);b=J[c+12>>2];c:{if(b){e=J[J[b>>2]+24>>2];J[695492]= -0;ca(e|0,d|0,b|0,2);b=J[695492];J[695492]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+16>>2]=0}J[695492]=0;aa(4993,a|0,c+16|0)|0;b=J[695492];J[695492]=0;d:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break a}a=Z()|0;vc(c+16|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+12>>2];J[c+12>>2]=0;e:{if(!b)break e;J[695492]=0;d= -J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+32|0;return a|0}a=Z()|0;bh(c+16|0);ba(a|0);B()}vc(c+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function $R(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=1;a:{b:switch(b-a>>3){case 2:d=b-8|0;c=J[d>>2];if(!c)break a;f=J[a>>2];if(O[c+32>>3]>3]?0:f)break a;J[a>>2]=c;J[d>>2]=f;c=J[a+4>>2];f=a;a=b-4|0;J[f+4>>2]=J[a>>2];J[a>>2]=c;return 1;case 3:rs(a, -a+8|0,b-8|0);return 1;case 4:JF(a,a+8|0,a+16|0,b-8|0);return 1;case 5:IF(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}d=a+16|0;rs(a,a+8|0,d);c=a+24|0;if((c|0)==(b|0))break a;c:{while(1){f=c;h=J[c>>2];d:{if(!h)break d;g=J[d>>2];if(O[h+32>>3]>3]?0:g)break d;j=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;e=c;while(1){k=J[d+4>>2];c=d;J[c>>2]=0;J[c+4>>2]=0;J[e>>2]=g;d=J[e+4>>2];J[e+4>>2]=k;e:{if(!d)break e;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break e;gc[J[J[d>>2]+8>>2]](d);Vc(d)}f:{if((a| -0)==(c|0)){c=a;break f}e=c;d=c-8|0;g=J[d>>2];if(!g|O[h+32>>3]>3])continue}break}J[c>>2]=h;e=J[c+4>>2];J[c+4>>2]=j;g:{if(!e)break g;c=J[e+4>>2];J[e+4>>2]=c-1;if(c)break g;gc[J[J[e>>2]+8>>2]](e);Vc(e)}i=i+1|0;if((i|0)==8)break c}d=f;c=d+8|0;if((c|0)!=(b|0))continue;break}return 1}e=(f+8|0)==(b|0)}return e}function yz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;J[695492]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2414676;ca(5467,c+12|0,c+16|0,b|0);b=J[695492];J[695492]=0;a:{b:{if((b| -0)!=1){J[c+16>>2]=2414580;b=J[c+28>>2];if(b){H[b|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;ed(d);b=J[c+12>>2];c:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+16>>2]=0}J[695492]=0;aa(4993,a|0,c+16|0)|0;b=J[695492];J[695492]=0;d:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!= -1)break d}break a}a=Z()|0;vc(c+16|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+12>>2];J[c+12>>2]=0;e:{if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+32|0;return a|0}a=Z()|0;bh(c+16|0);ba(a|0);B()}vc(c+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function l9a(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;var g=0,h=0,i=0,j=0,k=0;g=bc-32|0;bc=g;k=O[J[a+16>>2]+ -24>>3];O[g+24>>3]=d;O[g+16>>3]=c;O[g+8>>3]=e;O[g>>3]=c;h=gc[J[J[a>>2]+540>>2]](a)|0;je(h,g+24|0,g+16|0);je(h,g+8|0,g);c=O[g+24>>3];d=O[g+8>>3];e=k*f/25.4+.5;a:{if(R(e)<2147483648){h=~~e;break a}h=-2147483648}i=h>>>0<=1?1:h;e=+(i|0);O[a+40>>3]=e;if(R(d)<2147483648)h=~~d;else h=-2147483648;if(R(c)<2147483648)j=~~c;else j=-2147483648;c=+(j|0);b:{c:{d:switch(b|0){case 0:d=O[g+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;i=J[a+20>>2];e=e*.5;if(R(d)<2147483648)b=~~d;else b=-2147483648; -d=e+(+(b|0)+.5)+-.5;Zj(i,c,d);break c;case 1:d=O[g+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;b=i&1;j=J[a+20>>2];e=c;if(R(d)<2147483648)i=~~d;else i=-2147483648;c=+(i|0)+.5;d=b?c:c+-.5;Zj(j,e,d);break c;case 2:break d;default:break b}d=O[g+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;e=e*.5;i=J[a+20>>2];if(R(d)<2147483648)b=~~d;else b=-2147483648;d=+(b|0)+.5-e+.5;Zj(i,c,d)}gn(J[a+20>>2],+(h+1|0),d);gc[J[J[a>>2]+564>>2]](a)}bc=g+32|0}function arb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(e){o=e-2|0;q=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];f=a+2|0;g=g+2|0;a:{if(l>>>0>o>>>0)break a;i=l?(l|0)==(o|0)?d:b:c;m=!l&q;if(m){if(i>>>0<2)break a;h=i-1|0;j=h&3;if(i-2>>>0>=3){i=h&-4;h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];g=g+8|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}h=0;if(!j)break a; -while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];g=g+2|0;h=h+1|0;if((j|0)!=(h|0))continue;break}break a}j=i+1>>>1|0;if(i>>>0>=3){n=j>>>0<=2?2:j;k=1;r=i<<1;while(1){H[g|0]=K[a|0];p=K[a+3|0];h=K[a+1|0];if((p|0)!=(h|0))h=h+((i+(P(p-h|0,k)<<1)|0)/(r|0)|0)|0;H[g+1|0]=h;g=g+2|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}if(i>>>0<=j>>>0)break a;k=m?0:f;m=i<<1;while(1){H[g|0]=K[k|0];h=K[a+1|0];n=K[k+1|0];if((h|0)!=(n|0))h=h+((i+(P(n-h|0,j)<<1)|0)/(m|0)|0)|0;H[g+1|0]=h;g=g+2|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}l= -l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function upb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;a:{b:{if(!(K[a+301|0]?K[a+285|0]:0)|(K[a+286|0]|K[a+287|0]))break b;if(K[a+288|0]|K[a+289|0])break b;c:{d:{if(K[a+114|0])e:{f=gc[J[a+152>>2]](36)|0;if(!f)break d;J[f+4>>2]=1064;J[f>>2]=1065;g=J[a+700>>2];f:{if(g){J[g+8>>2]=f;break f}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]| -!K[a+432|0])))J[a+516>>2]=f;J[a+2336>>2]=f;J[f+28>>2]=c;if(!c)break e;g=f;f=gc[J[a+152>>2]](c+1|0)|0;J[g+32>>2]=f;if(!f)break d;tc(f,d,c)}f=0;break c}Dc(a,1,0,0);f=1}g:{if(f)break g;h:{if(!J[a+200>>2])break h;g=c+1|0;f=gc[J[a+152>>2]](g)|0;if(!f)break a;if(c)tc(f,d,c);h=gc[J[a+200>>2]](a,f)|0;gc[J[a+156>>2]](f,g);if(h)break h;Dc(a,904,0,0);return 904}f=Lx(a);if(f)break g;i:{if(!K[a+112|0])break i;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break g;J[J[e>>2]+32>>2]=c;if(!c)break i;b=gc[J[a+152>>2]](c+1|0)|0;J[J[e>> -2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(!b)break a;tc(b,d,c)}f=0}return f|0}Dc(a,1029,0,0);return 1029}Dc(a,1,0,0);return 1}function L8(a){var b=0,c=0;c=bc-16|0;bc=c;b=LC(3752);a:{if(!b){a=0;break a}J[b+184>>2]=0;J[b+4>>2]=a;J[b>>2]=1381173770;J[b+960>>2]=0;J[b+964>>2]=0;J[b+156>>2]=230;J[b+152>>2]=229;J[b+124>>2]=1E4;J[b+128>>2]=1E4;J[b+116>>2]=8481;J[b+120>>2]=0;J[b+112>>2]=16842753;J[b+104>>2]=-501652180;J[b+108>>2]=1071454040;J[b+96>>2]=-1717986918;J[b+100>>2]=1073846681;J[b+88>>2]=0;J[b+92>>2]=1072693248; -H[b+86|0]=1;a=0;I[b+84>>1]=0;J[b+80>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+160>>2]=0;J[b+164>>2]=0;J[b+168>>2]=0;J[b+172>>2]=0;J[b+176>>2]=0;J[b+180>>2]=0;wc(b+188|0,0,76);if(H8(b,0,1,1,1,0,0,0,0,0,0,0,c+12|0)){gc[J[b+156>>2]](b,3752);break a}a=J[c+12>>2];J[b+372>>2]=0;J[b+376>>2]=0;H[b+370|0]=0;J[b+528>>2]=a;J[b+380>>2]=0;J[b+384>>2]=0;J[b+388>>2]=0;J[b+392>>2]=0;J[b+396>>2]=0;J[b+400>>2]=0;J[b+404>>2]=0;J[b+408>>2]=0;J[b+412>>2]=0;I[b+2420>>1]=0;J[b+2380>>2]=b;J[b+2376>>2]=1082;J[b+2372>>2]=1083;J[b+ -2440>>2]=4096;I[b+2436>>1]=0;J[b+2432>>2]=0;J[b+2424>>2]=0;J[b+2428>>2]=100;J[b+2412>>2]=0;J[b+2416>>2]=4096;J[b+2404>>2]=15;J[b+2408>>2]=9;J[b+2396>>2]=9;J[b+2400>>2]=8;yN(b);a=b}bc=c+16|0;return a}function xm(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=jd(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b; -c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;f=K[c|0];break d}f=jd(a,1);if((f|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;g=J[a+28>>2];J[a+28>>2]=g-1;e:{if((g|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;g=K[c|0];break e}g=jd(a,1);if((g|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>> -2])break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break f}a=jd(a,1);if((a|0)==-1)break b}c=0;if(!b)break b;J[b>>2]=a<<24|(g<<24|(e<<16&16711680|f<<24)>>>8)>>>8}return c}J[a+8>>2]=d|4;return-1}function ix(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;h=bc-16|0;bc=h;if(e)J[e>>2]=-1;k=(c|0)==-21;l=k?b-21|0:b;m=(c|0)>0?c:0;i=J[a+8>>2];g=J[a>>2];a:{b:{if(g){b=i;while(1){if(!(J[b>>2]!=(l|0)|J[b+4>>2]!=(m|0))){g=f;break b}b= -b+12|0;f=f+1|0;if((f|0)!=(g|0))continue;break}}j=g+1|0;b=J[a+4>>2];c:{if(j>>>0>>0)break c;J[h+4>>2]=0;if(b>>>0>=j>>>0)break c;f=b;b=(g&-8)+8|0;i=Sc(d,12,f,b,i,h+4|0);J[a+8>>2]=i;f=J[h+4>>2];if(f)break a;J[a+4>>2]=b}J[a>>2]=j;J[(P(j,12)+i|0)-12>>2]=l;b=P(g,12)+i|0;J[b+8>>2]=c>>31&(k?3:1);J[b+4>>2]=m}b=J[a+12>>2];d:{e:{if(!b){f:{if(J[a+16>>2]){b=J[a+20>>2];break f}J[h+8>>2]=0;b=Sc(d,16,0,8,J[a+20>>2],h+8|0);J[a+20>>2]=b;f=J[h+8>>2];if(f)break a;J[a+16>>2]=8}J[b>>2]=0;J[b+12>>2]=0;J[a+12>>2]=1;break e}b= -(J[a+20>>2]+(b<<4)|0)-16|0;if(M[b>>2]>g>>>0)break d}a=J[b+4>>2];J[h+12>>2]=0;c=g+8>>>3|0;a=a+7>>>3|0;if(c>>>0>a>>>0){f=a;a=c+7&1073741816;n=b,o=Sc(d,1,f,a,J[b+8>>2],h+12|0),J[n+8>>2]=o;f=J[h+12>>2];if(f)break a;J[b+4>>2]=a<<3}J[b>>2]=g+1}a=J[b+8>>2]+(g>>>3|0)|0;H[a|0]=K[a|0]|128>>>(g&7);f=0;if(!e)break a;J[e>>2]=g}bc=h+16|0;return f}function brb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(e){o=e-2|0;q=(e|0)==1;while(1){a=f;H[g|0]=K[a| -0];H[g+1|0]=K[a+1|0];f=a+2|0;g=g+2|0;a:{if(k>>>0>o>>>0)break a;i=k?(k|0)==(o|0)?d:b:c;h=!k&q;if(h){if(i>>>0<2)break a;h=i-1|0;j=h&3;if(i-2>>>0>=3){i=h&-4;h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];g=g+8|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}h=0;if(!j)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];g=g+2|0;h=h+1|0;if((j|0)!=(h|0))continue;break}break a}n=h?0:f;j=i+1>>>1|0;if(i>>>0>=3){m=j>>> -0<=2?2:j;l=1;r=i<<1;while(1){p=K[n|0];h=K[a|0];if((p|0)!=(h|0))h=h+((i+(P(p-h|0,l)<<1)|0)/(r|0)|0)|0;H[g|0]=h;H[g+1|0]=K[a+1|0];g=g+2|0;l=l+1|0;if((m|0)!=(l|0))continue;break}}if(i>>>0<=j>>>0)break a;l=i<<1;while(1){h=K[a|0];m=K[n|0];if((h|0)!=(m|0))h=h+((i+(P(m-h|0,j)<<1)|0)/(l|0)|0)|0;H[g|0]=h;H[g+1|0]=K[n+1|0];g=g+2|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function jr(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;f=bc-16|0;bc=f;J[f+8>>2]= -0;d=rc(P(c,6)+4|0);J[f+12>>2]=d;if((c|0)<=0)b=d;else{while(1){e=J[b>>2];a:{if(e>>>0<=127){H[d|0]=e;d=d+1|0;break a}if(e>>>0<=2047){H[d+1|0]=e&63|128;H[d|0]=e>>>6|192;d=d+2|0;break a}if(e>>>0<=65535){H[d+2|0]=e&63|128;H[d|0]=e>>>12|224;H[d+1|0]=e>>>6&63|128;d=d+3|0;break a}if(e>>>0<=2097150){H[d+3|0]=e&63|128;H[d|0]=e>>>18|240;H[d+2|0]=e>>>6&63|128;H[d+1|0]=e>>>12&63|128;d=d+4|0;break a}if(e>>>0<=67108862){H[d+4|0]=e&63|128;H[d|0]=e>>>24|248;H[d+3|0]=e>>>6&63|128;H[d+2|0]=e>>>12&63|128;H[d+1|0]=e>>> -18&63|128;d=d+5|0;break a}if(e>>>0>2147483646)break a;H[d+5|0]=e&63|128;H[d|0]=e>>>30|252;H[d+4|0]=e>>>6&63|128;H[d+3|0]=e>>>12&63|128;H[d+2|0]=e>>>18&63|128;H[d+1|0]=e>>>24&63|128;d=d+6|0}b=b+4|0;g=g+1|0;if((g|0)!=(c|0))continue;break}b=J[f+12>>2]}J[f+8>>2]=d-b;H[d|0]=0;c=J[f+8>>2];if(c>>>0<2147483632){d=J[f+12>>2];b:{if(c>>>0<=10){H[a+11|0]=c;break b}e=(c|15)+1|0;b=rc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}h=Zc(a,d,c)+c|0,i=0,H[h|0]=i;if(d)qc(d);bc=f+16|0;return}Id(a);B()}function j9a(a, -b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;var g=0,h=0,i=0,j=0,k=0;g=bc-32|0;bc=g;k=O[J[a+16>>2]+24>>3];O[g+24>>3]=c;O[g+16>>3]=d;O[g+8>>3]=c;O[g>>3]=e;h=gc[J[J[a>>2]+540>>2]](a)|0;je(h,g+24|0,g+16|0);je(h,g+8|0,g);c=O[g+16>>3];d=O[g>>3];e=k*f/25.4+.5;a:{if(R(e)<2147483648){h=~~e;break a}h=-2147483648}i=h>>>0<=1?1:h;e=+(i|0);O[a+40>>3]=e;if(R(d)<2147483648)h=~~d;else h=-2147483648;if(R(c)<2147483648)j=~~c;else j=-2147483648;c=+(j|0);b:{c:{d:switch(b|0){case 0:d=O[g+24>>3];b=J[J[a+20>>2]+4>>2];H[b+ -25|0]=0;J[b+20>>2]=0;J[b>>2]=0;i=J[a+20>>2];e=e*.5;if(R(d)<2147483648)b=~~d;else b=-2147483648;d=e+(+(b|0)+.5)+-.5;Zj(i,d,c);break c;case 1:d=O[g+24>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;b=i&1;j=J[a+20>>2];if(R(d)<2147483648)i=~~d;else i=-2147483648;d=+(i|0)+.5;d=b?d:d+-.5;Zj(j,d,c);break c;case 2:break d;default:break b}d=O[g+24>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;e=e*.5;i=J[a+20>>2];if(R(d)<2147483648)b=~~d;else b=-2147483648;d=+(b|0)+.5-e+.5;Zj(i,d, -c)}gn(J[a+20>>2],d,+(h+1|0));gc[J[J[a>>2]+564>>2]](a)}bc=g+32|0}function VCa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;g=rc(352);a:{b:{c:{d:{e:{f:{e=J[b>>2];g:{if(!e){J[d+8>>2]=0;break g}J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break f;b=J[b>>2];J[d+8>>2]=b;if(!b)break g;J[695492]=0;J[b+4>>2]=J[b+4>>2]+1;e=J[695492];J[695492]=0;f=b;if((e|0)==1)break e}J[695492]=0;J[d+12>>2]=f;e=aa(5051,g|0,d+12|0)|0;b=J[695492];J[695492]=0;h:{if((b|0)!=1){b=J[d+12>> -2];J[d+12>>2]=0;if(!b)break h;J[695492]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break h}break a}f=Z()|0;vc(d+12|0);break d}J[e>>2]=2384320;J[d+8>>2]=0;i:{if(!f)break i;J[695492]=0;b=J[f+4>>2]-1|0;J[f+4>>2]=b;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(b)break i;J[695492]=0;_(4987,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a>>2]=0;md(a,e);J[695492]=0;da(5052,e|0,c|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break b;b=Z()|0;vc(a);ba(b|0);B()}f=Z()|0;break c}f=Z()|0}vc(d+8|0)}qc(g);ba(f|0);B()}bc=d+16|0;return}ea(0)|0;yc();B()}function jV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;e=kf(b);c=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];a:{if(c)while(1){if((e|0)==J[c+12>>2])if(!tj(c+16|0,b,-1))break a;c=J[c+8>>2];if(c)continue;break}c=rc(40);J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;e=c+16|0;J[e>>2]=0;J[e+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+ -20>>2]=J[682146];b:{b=J[b>>2];c:{d:{if(b){f=J[J[b>>2]+28>>2];J[695492]=0;ca(f|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;break c}J[d+12>>2]=0}J[695492]=0;aa(4993,e|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break b;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b}ea(0)|0;yc();B()}c=Z()|0;vc(d+12|0)}sc(e);ba(c|0);B()}b=J[c+16>>2]; -b=J[(b?b+12|0:2728584)>>2];J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=b;J[c+32>>2]=0;J[c+36>>2]=0;b=c+24|0;J[b>>2]=2386024;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;h=c,i=kf(e),J[h+12>>2]=i;Rl(a,c)}bc=d+16|0;return c|0}function U4(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;i=J[a+4>>2];if(i){b=J[a+24>>2]+P(b,204)|0;j=J[b+200>>2];l=J[b+204>>2];k=J[a+12>>2];while(1){a=J[k+4>>2];f=(a|0)<=0;a:{if(f)break a;d=J[k>>2];c=d+P(a,40)|0;b=0;a=d;g=0;while(1){e=J[a+16>>2]&32;g=e?g?g:a:g;b=(e>>>5|0)+b|0; -a=a+40|0;if(c>>>0>a>>>0)continue;break}a=g;if(b>>>0<=1){if((b|0)==1)l=J[a+36>>2]-Pc(J[a+28>>2],j)|0;if(f)break a;while(1){if((d|0)!=(g|0))n=d,o=Pc(J[d+28>>2],j)+l|0,J[n+36>>2]=o;d=d+40|0;if(c>>>0>d>>>0)continue;break}break a}while(1){c=a;a=J[a+4>>2];if((g|0)==(a|0))break a;if(K[a+16|0]&32)continue;b=a;while(1){b=J[b+4>>2];if(!(K[b+16|0]&32))continue;break}d=J[c+28>>2];e=J[b+28>>2];b:{if((d|0)<=(e|0)){h=e-d|0;e=c;f=b;break b}h=d-e|0;d=e;e=b;f=c}m=J[f+36>>2];f=J[e+36>>2];c:{if((h|0)<=0){e=65536;break c}e= -td(m-f|0,h);a=J[c+4>>2]}while(1){c=J[a+28>>2]-d|0;d:{if((c|0)<=0){c=Pc(c,j)+f|0;break d}if((c|0)>=(h|0)){c=Pc(c-h|0,j)+m|0;break d}c=Pc(c,e)+f|0}J[a+36>>2]=c;a=J[a+4>>2];if((b|0)!=(a|0))continue;break}a=b;if((g|0)!=(a|0))continue;break}}k=k+8|0;i=i-1|0;if(i)continue;break}}}function e8(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0;m=bc-16|0;bc=m;l=$g(a,b);b=$g(a,c);J[m+12>>2]=b;a:{if(!l){c=1045;Dc(a,1045,0,0);break a}if(b){c=1046;Dc(a,1046,0,0);break a}b=e?!f:H[l+31|0];f=(g|0)==1;b:{c:switch(d-1|0){default:c= -wN(a,c,0,b<<24>>24,f,h,i,j,k,l,m+12|0);break b;case 0:c=wN(a,c,1,b<<24>>24,f,h,i,j,k,l,m+12|0);break b;case 1:break c}H[l+31|0]=b;d:{if(!h)break d;if(!i){J[l+40>>2]=k;J[l+36>>2]=j;break d}J[l+36>>2]=J[l+36>>2]+j;J[l+40>>2]=J[l+40>>2]+k}e:{if(!c)break e;d=0;e=J[a+692>>2];f:{if(!e){g=1;break f}while(1){b=L[e+28>>1];g=b>>>0>c>>>0;if(b>>>0<=c>>>0){d=e;break f}e=J[e+12>>2];if(e)continue;break}}e=J[l+12>>2];if((e|0)==(d|0))break e;h=a+692|0;b=J[l+8>>2];g:{if(e){J[e+8>>2]=b;break g}J[a+688>>2]=b}J[(b?b+ -12|0:h)>>2]=e;h:{if(!g){J[l+12>>2]=d;J[l+8>>2]=J[d+8>>2];J[d+8>>2]=l;e=J[l+8>>2];break h}e=J[a+688>>2];J[l+8>>2]=e;J[a+688>>2]=l}J[(e?e+12|0:h)>>2]=l}I[l+28>>1]=c;if(f)H[J[l+88>>2]+33|0]=0;J[m+12>>2]=l;c=0}if(c)break a;c=0;b=J[m+12>>2];if(!K[b+32|0]|!K[b+31|0])break a;J[a+532>>2]=b;Lh(a,b,0);if(!K[a+497|0])break a;H[a+498|0]=5}bc=m+16|0;return c}function eH(a,b,c){var d=0,e=0,f=0,g=0;f=J[a+4>>2];g=f+b|0;a:{b:{c:switch(K[a+10|0]-2|0){case 0:d:{e:{f:{f=K[a+9|0];switch(f-8|0){case 8:break e;case 0:break f; -default:break a}}e=b+1|0;d=c?b:e;c=c?e:b+2|0;if(g>>>0<=c>>>0)break d;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+2|0;if(g>>>0>c>>>0)continue;break}break d}e=b+2|0;d=c?b:e;c=c?e:b+4|0;if(g>>>0<=c>>>0)break d;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];d=d+2|0;c=c+4|0;if(g>>>0>c>>>0)continue;break}}H[a+10|0]=1;H[a+11|0]=f;if(K[a+8|0]!=4)break b;H[a+8|0]=0;break b;case 2:break c;default:break a}g:{h:switch(K[a+9|0]-8|0){case 0:d=(c?0:3)+b|0;e=24;c=c?1:4;if((c|0)>=(f|0))break g;c=b+c|0;while(1){H[d|0]=K[c|0];H[d+ -1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];d=d+3|0;c=c+4|0;if(g>>>0>c>>>0)continue;break}break g;case 8:break h;default:break a}d=(c?0:6)+b|0;e=48;c=c?2:8;if((c|0)>=(f|0))break g;c=b+c|0;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];d=d+6|0;c=c+8|0;if(g>>>0>c>>>0)continue;break}}H[a+10|0]=3;H[a+11|0]=e;if(K[a+8|0]!=6)break b;H[a+8|0]=2}J[a+4>>2]=d-b}}function Yqa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=bc-3328|0;bc=f;J[a+16>>2]=0;md(a+ -20|0,0);Lz(a+24|0);e=tT(f);J[e+3320>>2]=0;J[e+3312>>2]=0;J[e+3316>>2]=0;J[e>>2]=2421416;J[695492]=0;da(5509,e|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)==1)break c;J[e+3320>>2]=d;J[e+3316>>2]=c;J[695492]=0;J[f+3324>>2]=0;b=f+3324|0;aa(4985,b|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;da(5510,e|0,b|0);a=J[695492];J[695492]=0;d:{if((a|0)!=1){a=J[f+3324>>2];J[f+3324>>2]=0;if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break d; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break d}break a}a=Z()|0;vc(f+3324|0);break b}J[e>>2]=2421416;a=J[e+3312>>2];J[e+3312>>2]=0;e:{if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}J[e>>2]=2421484;xd(e+120|0);xd(e+96|0);xd(e+72|0);_c(e+40|0);_c(e+28|0);_c(e+16|0);bc=f+3328|0;return}a=Z()|0}hG(e);ba(a|0);B()}ea(0)|0;yc();B()}function fBa(a){a=a|0;var b= -0,c=0,d=0,e=0,f=0,g=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a>>2]=2389364;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[695492]=0;b=a+12|0;J[b>>2]=2386024;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;e=b;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[695492]=0;b=a+28|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2389396;f=b;b=J[695492];J[695492]=0;if((b|0)==1)break h;b=a;J[b+52>>2]=0;J[b+56>>2]=0;J[b+76>>2]=0;J[b+68>>2]=0;J[b+72>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[695492]=0;g=aa(5080, -b+52|0,2389416)|0;c=J[695492];J[695492]=0;if((c|0)==1)break g;J[b+80>>2]=0;J[b+84>>2]=0;J[b+104>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[695492]=0;c=aa(5080,b+80|0,2389416)|0;d=J[695492];J[695492]=0;if((d|0)==1)break f;J[b+108>>2]=0;J[b+112>>2]=0;J[b+132>>2]=0;J[b+124>>2]=0;J[b+128>>2]=0;J[b+116>>2]=0;J[b+120>>2]=0;J[695492]=0;aa(5080,b+108|0,2389416)|0;d=J[695492];J[695492]=0;if((d|0)==1)break e;return b|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()| -0;Bd(c)}Bd(g)}xd(f)}$c(e)}ed(a);ba(b|0);B()}function NYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{c:{if(!a)break c;d:{d=J[a+52>>2];if(!d|J[d+4>>2]==18)break d;d=J[d+16>>2];if(!d|J[d+4>>2]!=4)break d;e=J[d+40>>2];if((e|0)==(d+44|0))break b;a=J[d+32>>2];e:{if(!a)break e;f=J[a+80>>2];if(!f)break e;if(!e)break b;while(1){a=J[f+16>>2];if(a)while(1){if(e>>>0<=M[a+4>>2]&e>>>0>=a+20>>>0)break b;a=J[a>>2];if(a)continue;break}f=J[f+20>>2];if(f)continue;break}}a=OJ(e,b,c);break a}f=J[a+8>>2];e=bc- -16|0;bc=e;d=gc[J[659447]](60)|0;f:{if(!d){J[e>>2]=22098;Cc(0,0,0,0,0,2,2,3,22098,0,0,0,32863,e);break f}J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=4;J[d+32>>2]=f;if(b){f=0;g:{if((c|0)<0)break g;g=gc[J[659450]](c+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break g}f=tc(g,b,c);H[f+c|0]=0}J[d+40>>2]=f}if(!J[689540])break f;b=J[689537];if(!b)break f; -gc[b|0](d)}bc=e+16|0;if(Ug(J[a+52>>2],d))break c;gl(d)}return}a=NJ(e,b,c)}J[d+44>>2]=0;J[d+40>>2]=a}function K4a(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;h=bc-16|0;bc=h;k=b+4|0;f=k;d=f;a:{g=J[b+4>>2];b:{c:{if(!g)break c;d=K[c+11|0];f=d<<24>>24>=0;i=f?c:J[c>>2];c=f?d:J[c+4>>2];while(1){d=g;f=K[d+27|0];g=f<<24>>24<0;f=g?J[d+20>>2]:f;l=f>>>0>>0;d:{e:{f:{g:{j=l?f:c;h:{if(j){g=g?J[d+16>>2]:d+16|0;m=Wc(i,g,j);if(!m){if(c>>>0>>0)break h;break g}if((m|0)>=0)break g; -break h}if(c>>>0>=f>>>0)break f}f=d;g=J[d>>2];if(g)continue;break c}f=Wc(g,i,j);if(f)break e}if(l)break d;b=0;break b}if((f|0)<0)break d;b=0;break b}g=J[d+4>>2];if(g)continue;break}f=d+4|0}c=rc(32);J[h+8>>2]=k;J[h+4>>2]=c;g=c+16|0;H[h+12|0]=0;e=J[e>>2];i:{if(H[e+11|0]>=0){i=J[e+4>>2];J[g>>2]=J[e>>2];J[g+4>>2]=i;J[g+8>>2]=J[e+8>>2];break i}i=J[e+4>>2];e=J[e>>2];J[695492]=0;ca(2672,g|0,e|0,i|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}J[c+8>>2]=d;J[c>>2]=0;J[c+4>>2]=0;J[c+28>>2]=0;J[f>>2]=c;d=J[J[b>> -2]>>2];if(d){J[b>>2]=d;c=J[f>>2]}Ic(J[b+4>>2],c);J[b+8>>2]=J[b+8>>2]+1;d=J[h+4>>2];b=1}H[a+4|0]=b;J[a>>2]=d;bc=h+16|0;return}a=Z()|0;k2(h+4|0);ba(a|0);B()}function aN(a){var b=0,c=0,d=0,e=0;if(!a)return;Gc(J[a+60>>2]);e=J[a+360>>2];if(e){c=I[a+356>>1];if((c|0)>1]){b=c;while(1){Gc(J[(P(b-c|0,272)+e|0)+268>>2]);c=J[a+360>>2]+P(b-I[a+356>>1]|0,272)|0;J[c+268>>2]=0;Gc(J[c+260>>2]);e=J[a+360>>2];c=I[a+356>>1];J[(e+P(b-c|0,272)|0)+260>>2]=0;b=b+1|0;if((b|0)>1])continue;break}}qc(e);J[a+ -360>>2]=0}Gc(J[a+372>>2]);Gc(J[a+408>>2]);Gc(J[a+412>>2]);Gc(J[a+432>>2]);Gc(J[a+440>>2]);Gc(J[a+500>>2]);Gc(J[a+504>>2]);Gc(J[a+544>>2]);Gc(J[a+516>>2]);if(J[a+552>>2]>0)while(1){Gc(J[(J[a+556>>2]+(d<<4)|0)+12>>2]);d=d+1|0;if((d|0)>2])continue;break}Gc(J[a+556>>2]);Gc(J[a+564>>2]);Gc(J[a+576>>2]);d=0;if(I[a+632>>1]>0)while(1){Fr(J[a+636>>2]+P(d,600)|0);d=d+1|0;if((d|0)>1])continue;break}Gc(J[a+636>>2]);Gc(J[a+692>>2]);c=0;b=J[a+656>>2];if(b){if(J[a+652>>2]>0){while(1){Gc(J[b+12>> -2]);Gc(J[b+292>>2]);b=b+296|0;c=c+1|0;if((c|0)>2])continue;break}b=J[a+656>>2]}qc(b)}Gc(J[a+672>>2]);Gc(J[a+684>>2]);Gc(J[a+680>>2]);Gc(J[a+676>>2]);b=J[a+12>>2];if(b){qc(b);J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}}function L6a(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;e=bc-16|0;bc=e;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[e+12|0]=0;J[e+8>>2]=a;a:{b:{c:{d:{e:{f:{if(b){if(b>>>0>=357913942){J[695492]=0;_(2381,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;break a}J[695492]=0;b= -P(b,12);d=$(4,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[a+4>>2]=d;J[a>>2]=d;g=b+d|0;J[a+8>>2]=g;f=J[c>>2];h=J[c+4>>2];g:{if((f|0)==(h|0)){b=b-12|0;wc(d,0,(b-((b>>>0)%12|0)|0)+12|0);break g}i=h-f|0;b=i>>2;if(b>>>0>=1073741824)break f;j=b<<2;while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;b=$(4,i|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;J[d+4>>2]=b;J[d>>2]=b;J[d+8>>2]=b+j;c=f;while(1){N[b>>2]=N[c>>2];b=b+4|0;c=c+4|0;if((h|0)!=(c|0))continue;break}J[d+4>>2]=b;d=d+12|0;if((g| -0)!=(d|0))continue;break}}J[a+4>>2]=g}bc=e+16|0;return a|0}J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;_(2266,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;c=J[d>>2];if(!c)break d;J[d+4>>2]=c;qc(c);J[a+4>>2]=d;break b}b=Z()|0}J[a+4>>2]=d;break b}b=Z()|0}no(e+8|0);ba(b|0);B()}B()}function E3a(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0;i=O[b>>3];a:{b:{if(i!=O[a+56>>3]|O[a- -64>>3]!=-O[c>>3])break b;if(O[a+72>>3]!=-O[d>>3])break b;k=O[a+80>>3];j=k==e;if(e!= -k|O[a+88>>3]!=f)break b;h=0;if(O[a+96>>3]==g)break a}h=J[a+276>>2];if(h){gc[J[J[h>>2]+76>>2]](h,b,c,d,e,f,g)|0;i=O[b>>3]}O[a+56>>3]=i;O[a- -64>>3]=-O[c>>3];i=O[d>>3];O[a+96>>3]=g;O[a+88>>3]=f;O[a+80>>3]=e;O[a+72>>3]=-i;if(!j){d=J[a+304>>2];h=a+308|0;if((d|0)!=(h|0))while(1){J[d+120>>2]=1;c=J[d+4>>2];c:{if(c)while(1){b=c;c=J[c>>2];if(c)continue;break c}while(1){b=J[d+8>>2];c=J[b>>2]!=(d|0);d=b;if(c)continue;break}}d=b;if((h|0)!=(d|0))continue;break}l=a+316|0;d=J[l>>2];j=a+320|0;if((d|0)!=(j|0))while(1){J[d+ -120>>2]=1;c=J[d+4>>2];d:{if(c)while(1){b=c;c=J[c>>2];if(c)continue;break d}while(1){b=J[d+8>>2];c=J[b>>2]!=(d|0);d=b;if(c)continue;break}}d=b;if((j|0)!=(d|0))continue;break}Xh(a+304|0,J[a+308>>2]);J[a+304>>2]=h;J[a+308>>2]=0;J[a+312>>2]=0;Xh(l,J[a+320>>2]);J[a+316>>2]=j;J[a+320>>2]=0;J[a+324>>2]=0}gc[J[J[a>>2]+72>>2]](a);h=1}return h|0}function gr(a,b){var c=0;a:{if(!a)break a;b:{c:{d:{e:{if((b|0)>=4){f:{g:{h:{i:{j:{k:{l:{c=K[a|0];switch(c-60|0){case 16:break i;case 0:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break e; -default:break l}}if(c)break e;b=K[a+1|0];if((b|0)==60)break j;if(b)break b;if(!K[a+2|0]){c=5;if(K[a+3|0]==60)break a}if(K[a+3|0]|K[a+2|0]!=60)break b;return 7}b=K[a+1|0];if((b|0)==63)break h;if(b)break b;if(K[a+2|0]|K[a+3|0])break g;return 4}if(K[a+2|0]|K[a+3|0])break f;return 8}if(K[a+1|0]!=111|K[a+2|0]!=167)break b;c=6;if(K[a+3|0]!=148)break b;break a}if(K[a+2|0]!=120)break b;c=1;if(K[a+3|0]!=109)break b;break a}if(K[a+3|0]|K[a+2|0]!=63)break b;return 2}if(K[a+2|0])break b;c=3;if(K[a+3|0]!=63)break b; -break a}if((b|0)!=3)break d;c=K[a|0]}if((c|0)!=239)break c;if(K[a+1|0]!=187)break b;c=1;if(K[a+2|0]!=191)break b;break a}if((b|0)<2)break b;c=K[a|0]}m:switch(c-254|0){case 0:if(K[a+1|0]!=255)break b;return 3;case 1:break m;default:break b}c=2;if(K[a+1|0]==254)break a}c=0}return c}function PXa(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;var h=0,i=0,j=0,k=0,l=0;i=bc-32|0;bc=i;h=rc(4);J[695492]=0;k=aa(3196,h|0,a+12|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1){h=rc(52);J[h+8>>2]=0;J[h+12>>2]= -0;J[h+24>>2]=0;J[h+28>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+4>>2]=J[b+4>>2];J[h>>2]=J[b>>2];j=h+8|0;a:{if((j|0)==(c|0))break a;if(H[c+11|0]>=0){l=J[c+4>>2];J[j>>2]=J[c>>2];J[j+4>>2]=l;J[j+8>>2]=J[c+8>>2];break a}yf(j,J[c>>2],J[c+4>>2])}J[h+44>>2]=g;J[h+40>>2]=f;J[h+36>>2]=e;J[h+32>>2]=d;c=J[b+4>>2];b=J[b>>2];J[i+16>>2]=h;J[i+8>>2]=b;J[i+12>>2]=c;e=i+8|0;d=a;c=a+4|0;b=J[a+4>>2];b:{c:{if(!b){a=c;break c}while(1){a=b;f=b+16|0;if(op(e,f)){c=b;b=J[b>>2];if(b)continue;break c}if(op(f,e)){c=a+4|0;b=J[a+4>> -2];if(b)continue;break c}break}b=J[c>>2];f=0;if(b)break b}b=rc(28);f=J[e+4>>2];J[b+16>>2]=J[e>>2];J[b+20>>2]=f;e=J[e+8>>2];J[b+8>>2]=a;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=e;J[c>>2]=b;a=b;e=J[J[d>>2]>>2];if(e){J[d>>2]=e;a=J[c>>2]}Ic(J[d+4>>2],a);J[d+8>>2]=J[d+8>>2]+1;f=1}H[i+28|0]=f;J[i+24>>2]=b;qc(C2(k));bc=i+32|0;return h|0}a=Z()|0;qc(h);ba(a|0);B()}function Cyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+32>>2]=0;e=a+24|0;J[e>>2]=0;J[e+4>>2]=0;d=-1;a:{c=J[b+8>>2];b:{if(c&7)break b;d=J[b+64>>2];if(!((d|0)< -0|(d|0)>J[b+60>>2]))break a;d=-1;c=J[b+28>>2];J[b+28>>2]=c-1;c:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break c}c=jd(b,1);if((c|0)==-1)break b}H[a+20|0]=c;c=J[b+8>>2];if(c&7)break b;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2]))break a;d=-1;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break d}c=jd(b,1);if((c|0)==-1)break b}H[a+21|0]=c;c=J[b+8>>2];if(c&7)break b;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2]))break a; -d=-1;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break e}c=jd(b,1);if((c|0)==-1)break b}H[a+22|0]=c;f:{g:switch(K[a+20|0]-1|0){case 0:if(!Di(b,e))break f;break b;case 1:break g;default:break f}c=J[a+16>>2]-3|0;J[a+32>>2]=c;c=zc(c);J[a+28>>2]=c;if(!c)break b;if((li(b,c,J[a+32>>2])|0)!=J[a+32>>2])break b}d=0}return d|0}J[b+8>>2]=c|4;return-1}function dAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(a){c=J[a+200>>2];if(!(c&4))break a;b:{if(!b)break b; -if(!(!(J[b+8>>2]&512)|c&512))lU(a,b+60|0);if(J[b+48>>2]>0){e=J[b+56>>2];while(1){g=P(f,28);c=g+e|0;d=J[c>>2];c:{d:{e:{if((d|0)>0){nU(a,d,J[c+4>>2],J[c+20>>2],J[c+24>>2],J[c+8>>2]);break e}if((d|0)>=0){oU(a,J[c+4>>2],J[c+8>>2]);c=-2;break d}if((d|0)!=-1)break c;Qz(a,J[c+4>>2],J[c+8>>2])}c=-3}e=J[b+56>>2];J[g+e>>2]=c}f=f+1|0;if((f|0)>2])continue;break}}c=J[b+192>>2];if(!c|(c|0)<=0)break b;c=J[b+188>>2];while(1){d=qH(a,c);if(!((d|0)==1|!(K[c+16|0]&8)|!(K[c+3|0]&32|(d|0)==3|H[a+206|0]&1)))wG(a, -c,J[c+8>>2],J[c+12>>2]);c=c+20|0;if(c>>>0>2]+P(J[b+192>>2],20)>>>0)continue;break}}J[a+200>>2]=J[a+200>>2]|8;b=bc-16|0;bc=b;if(a){J[a+744>>2]=34;J[b+4>>2]=0;J[b+8>>2]=1145980233;bf(a,b+4|0,8);J[a+348>>2]=1229278788;Xl(a);pe(a,b+8|0,4);J[a+744>>2]=130;c=J[a+384>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;bf(a,b+12|0,4)}J[a+200>>2]=J[a+200>>2]|16;bc=b+16|0}return}Ad(a,58555);B()}function jq(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;a:{d= -J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=jd(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;f=K[c|0];break d}f=jd(a,1);if((f|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2]; -if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;g=J[a+28>>2];J[a+28>>2]=g-1;e:{if((g|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;g=K[c|0];break e}g=jd(a,1);if((g|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break f}a=jd(a,1);if((a|0)==-1)break b}J[b>>2]=a&255|(g<<8&65280|(f<<16&16711680|e<<24));c=0}return c}J[a+8>>2]=d|4;return-1} -function bW(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=bc-784|0;bc=f;a:{d=J[a+200>>2];if(d&1){b:{if(d&4){Yc(a,60464);Ld(a,c);break b}if(d&2)break a;J[a+200>>2]=d|2;d=K[a+401|0];if(!(d&2)){Yc(a,60973);Ld(a,c);break b}if(c>>>0>768?1:(c>>>0)%3|0){if((d|0)!=3){Yc(a,61051);Ld(a,c);break b}Ad(a,61051);B()}e=256;e=(d|0)==3?1<>>0)/3|0;d=(d|0)>(e|0)?e:d;if((d|0)>0){e=0;g=f+16|0;while(1){h=f+13|0;qg(a,h,3);pe(a,h,3);H[g|0]=K[f+13|0];H[g+1|0]=K[f+14|0];H[g+2|0]=K[f+15|0];g=g+3|0;e=e+ -1|0;if((d|0)!=(e|0))continue;break}}Ld(a,P(d,-3)+c|0);c=f+16|0;c:{if(!a|!b)break c;d:{e:{if(K[b+25|0]==3){if((d|0)<=1<=0)break e;Ad(a,63336);B()}if(d>>>0>256)break d}fp(a,b,4096,0);e=Hv(a,768);J[a+388>>2]=e;i=b,j=tc(e,c,P(d,3)),J[i+16>>2]=j;I[a+392>>1]=d;I[b+20>>1]=d;J[b+184>>2]=J[b+184>>2]|4096;J[b+8>>2]=J[b+8>>2]|8;break c}Yc(a,63336)}if(!(K[b+8|0]&16)|(!b|K[a+401|0]!=3))break b;c=d&65535;if(c>>>0>1]){Yc(a,61348);I[a+394>>1]=d}if(c>>>0>=L[b+22>>1])break b;Yc(a,61594);I[b+ -22>>1]=d}bc=f+784|0;return}Ad(a,60281);B()}Ad(a,60609);B()}function en(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=65535;a:{if((c|0)<=0)break a;j=a+28|0;d=K[a+29|0];g=J[a+44>>2];k=J[a+36>>2];while(1){b:{f=b+h|0;h=h+1|0;f=J[(((d&255)<<10)+k|0)+(K[f|0]<<2)>>2];if((f|0)<0)break b;d=f>>>24|0;i=(f&16777215)+i|0;if((c|0)!=(h|0))continue;break a}break}d=65534;c:{d:switch(f>>>20&15){case 4:e=(f&65535)+i|0;d=L[(e<<1)+g>>1];if((d|0)!=65534)break c;d=i1(j,e);break c;case 0:d=f&65535;break c;case 5:e=(f&65535)+ -i|0;d=L[(e<<1)+g>>1];if(d>>>0<55296)break c;e=e+1|0;if(d>>>0<=57343){d=(L[(e<<1)+g>>1]+(d<<10&1047552)|0)+9216|0;break c}if((d&65534)==57344){d=L[(e<<1)+g>>1];break c}e=65535;f=(d|0)==65535;d=65534;if(!f)break c;break a;case 1:d=(f&1048575)+65536|0;break c;case 2:d=f&65535;break c;case 6:break c;case 3:break d;default:break a}d=(f&1048575)+65536|0}e=65535;if((c|0)!=(h|0))break a;e=d;if((d|0)!=65534)break a;e=65534;a=J[a+224>>2];if(!a)break a;d=bc-16|0;bc=d;J[d+12>>2]=0;if((c|0)<=0)e=65535;else{b= -nK(a,-1,b,c,0,0,d+12|0,1);a=J[d+12>>2];e=(b|0)!=(c|0)?65534:a>>>0>=3145728?65534:a-2031616|0}bc=d+16|0}return e}function FH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=O[b+24>>3];f=O[b+40>>3];e=J[c+52>>2];a:{b:{c:switch(J[c>>2]-1|0){case 0:g=J[e+8>>2];if((g|0)<=0)break b;d=(f-d)*.75+d;k=g-1|0;l=J[e>>2];e=0;while(1){i=e<<2;j=J[i+l>>2];if(!(!(d>3])&(e|0)!=(k|0))){FH(a,b,j);a=J[J[J[c+52>>2]>>2]+i>>2];d=O[a+16>>3];if(d>3])O[c+16>>3]=d;d=O[a+24>>3];if(d>3])O[c+24>>3]=d;d=O[a+ -32>>3];if(d>O[c+32>>3])O[c+32>>3]=d;d=O[a+40>>3];if(!(d>O[c+40>>3]))break b;O[c+40>>3]=d;return}e=e+1|0;if((g|0)!=(e|0))continue;break}break b;case 1:break a;default:break c}FH(a,b,J[J[e>>2]>>2]);a=J[J[J[c+52>>2]>>2]>>2];d=O[a+16>>3];if(d>3])O[c+16>>3]=d;d=O[a+24>>3];if(d>3])O[c+24>>3]=d;d=O[a+32>>3];if(d>O[c+32>>3])O[c+32>>3]=d;d=O[a+40>>3];if(!(d>O[c+40>>3]))break b;O[c+40>>3]=d}return}h=O[b+16>>3];d:{e:{if(!J[e+8>>2]){O[c+24>>3]=d;O[c+16>>3]=h;O[c+32>>3]=O[b+32>>3];a=c+40|0;break e}if(O[c+ -16>>3]>h)O[c+16>>3]=h;if(d>3])O[c+24>>3]=d;d=O[b+32>>3];if(d>O[c+32>>3])O[c+32>>3]=d;if(!(O[c+40>>3]>3]=f}Ym(e,0,b)}function Di(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=jd(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a; -c=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;f=K[c|0];break d}f=jd(a,1);if((f|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;g=J[a+28>>2];J[a+28>>2]=g-1;e:{if((g|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;g=K[c|0];break e}g=jd(a,1);if((g|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d| -0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break f}a=jd(a,1);if((a|0)==-1)break b}c=0;if(!b)break b;J[b>>2]=(f<<8|e<<16|g)<<8|a}return c}J[a+8>>2]=d|4;return-1}function a9(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;l=bc;d=b+1|0;j=l-((d<<1&-4)+15&-16)|0;bc=j;a:{if((b|0)<2)break a;f=(1-c<<2)+a|0;k=d-c>>1;h=c?k:b-k|0;b:{if((h|0)<=0)break b;d=f;e=j;g=h;i=h&7;if(i)while(1){J[e>>2]=J[d>>2];d=d+8|0;e=e+4|0;g=g-1|0;m=m+1|0;if((i|0)!=(m|0))continue;break}if(h>>>0<8)break b; -while(1){J[e>>2]=J[d>>2];J[e+4>>2]=J[d+8>>2];J[e+8>>2]=J[d+16>>2];J[e+12>>2]=J[d+24>>2];J[e+16>>2]=J[d+32>>2];J[e+20>>2]=J[d+40>>2];J[e+24>>2]=J[d+48>>2];J[e+28>>2]=J[d+56>>2];d=d- -64|0;e=e+32|0;i=g-9|0;g=g-8|0;if(i>>>0<4294967294)continue;break}}e=(b-!c|0)-h|0;c:{if((e|0)<=0)break c;g=0;d=(2-c<<2)+a|0;i=e&7;if(i)while(1){J[f>>2]=J[d>>2];d=d+8|0;f=f+4|0;e=e-1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}if(((c?0:-1)+b|0)+(h^-1)>>>0<7)break c;while(1){J[f>>2]=J[d>>2];J[f+4>>2]=J[d+8>>2];J[f+8>>2]=J[d+ -16>>2];J[f+12>>2]=J[d+24>>2];J[f+16>>2]=J[d+32>>2];J[f+20>>2]=J[d+40>>2];J[f+24>>2]=J[d+48>>2];J[f+28>>2]=J[d+56>>2];d=d- -64|0;f=f+32|0;b=e-9|0;e=e-8|0;if(b>>>0<4294967294)continue;break}}if((h|0)<=0)break a;tc((k<<2)+a|0,j,h<<2)}bc=l}function O8a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+4>>2];b=J[e+68>>2];if(b)while(1){if(!J[b>>2]){f=J[b+8>>2];d=P(f,J[b+4>>2])+d|0;c=P(f,J[b+12>>2])+c|0}b=J[b+44>>2];if(b)continue;break}b=J[e+72>>2];if(b)while(1){if(!J[b>>2]){f=J[b+8>>2];d=(P(f,J[b+4>>2])<< -7)+d|0;c=(P(f,J[b+12>>2])<<7)+c|0}b=J[b+44>>2];if(b)continue;break}a:{if((c|0)<=0)break a;b=J[e+68>>2];if(b)while(1){if(!J[b>>2]){c=J[b+4>>2];d=J[b+12>>2];b:{if((((c-1>>>0)/(d>>>0)|0)+1|0)<=1E9){J[b+16>>2]=c;break b}J[b+16>>2]=P(d,1E9);c=J[a>>2];J[c+20>>2]=51;gc[J[c>>2]](a);J[b+40>>2]=1;c=J[b+16>>2]}g=b,h=D3(a,1,J[b+8>>2],c),J[g>>2]=h;c=J[e+80>>2];J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+20>>2]=c}b=J[b+44>>2];if(b)continue;break}b=J[e+72>>2];if(!b)break a;while(1){if(!J[b>>2]){c=J[b+4>>2];d=J[b+ -12>>2];c:{if((((c-1>>>0)/(d>>>0)|0)+1|0)<=1E9){J[b+16>>2]=c;break c}J[b+16>>2]=P(d,1E9);c=J[a>>2];J[c+20>>2]=51;gc[J[c>>2]](a);J[b+40>>2]=1;c=J[b+16>>2]}g=b,h=F3(a,1,J[b+8>>2],c),J[g>>2]=h;c=J[e+80>>2];J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+20>>2]=c}b=J[b+44>>2];if(b)continue;break}}}function Mob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;e=d+8|0;c=K[b+35|0];a:{if(!(c|K[b+37|0]|(K[b+38|0]|K[b+48|0]))){c=2;break a}H[d+10|0]=c;c=K[b+37|0]; -if(!(K[b+48|0]|(c|K[b+38|0]))){c=3;break a}H[d+11|0]=c;c=4;if(!(K[b+38|0]|K[b+48|0]))break a;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;c=12;if(!K[b+48|0])break a;c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;c=J[b+56>>2];c=c<<24|(c&65280)<< -8|(c>>>8&65280|c>>>24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=J[b+60>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+28|0]=c;H[d+29|0]=c>>>8;H[d+30|0]=c>>>16;H[d+31|0]=c>>>24;c=J[b+64>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+32|0]=c;H[d+33|0]=c>>>8;H[d+34|0]=c>>>16;H[d+35|0]=c>>>24;c=28}return ue(a,J[b>>2],c,e)|0}function LVa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];e=(J[a+4>>2]-c|0)/24|0;d=e+1|0;if(d>>>0<178956971){c=(J[a+8>>2]-c|0)/24|0;f=c<< -1;d=c>>>0>=89478485?178956970:d>>>0>>0?f:d;if(d){if(d>>>0>=178956971)break c;g=rc(P(d,24))}c=P(e,24)+g|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[c+20>>2]=J[b+20>>2];e=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=e;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;d=P(d,24)+g|0;g=c+24|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-24|0;f=J[b+4>>2];c=c-24|0;J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0; -J[c+20>>2]=J[b+20>>2];f=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=f;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=g;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){if(H[b-1|0]<0)qc(J[b-12>>2]);a=b-24|0;if(H[b-13|0]<0)qc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}qt(a);B()}Sd();B()}J[a+8>>2]=d;J[a+4>>2]=g;J[a>>2]=c}if(b)qc(b)}function azb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l= -0,m=0;a:{if(!b)break a;i=e-1|0;if(i>>>0>31|!(1<>>0>=24){if((e|0)!=32)break c;Jk(a);j=1;if(!d|!c)break a;i=0;l=h?2:0;m=h?0:2;while(1){e=P(f,i)+b|0;k=g?(i^-1)+d|0:i;j=J[a+56>>2]+P(k,J[a+52>>2])|0;h=0;while(1){H[j|0]=K[e+m|0];H[j+1|0]=K[e+1|0];H[j+2|0]=K[e+l|0];hh(a,h,k,K[e+3|0]);e=e+4|0;j=j+3|0;h=h+1|0;if((h|0)!=(c|0))continue;break}j=1;i=i+1|0;if((i|0)!=(d|0))continue;break}break a}Yp(a);if(d)break b;return 1}if(d)break b;return 1}if(g){e= -0;while(1){c=J[a+52>>2];tc(J[a+56>>2]+P(c,(e^-1)+d|0)|0,P(e,f)+b|0,c>>>0>>0?c:f);j=1;e=e+1|0;if((e|0)!=(d|0))continue;break}break a}j=1;e=0;if((d|0)!=1){h=d&-2;c=0;while(1){g=J[a+52>>2];tc(J[a+56>>2]+P(g,e)|0,P(e,f)+b|0,f>>>0>g>>>0?g:f);g=J[a+52>>2];i=e|1;tc(J[a+56>>2]+P(g,i)|0,P(f,i)+b|0,f>>>0>g>>>0?g:f);e=e+2|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!(d&1))break a;c=J[a+56>>2];a=J[a+52>>2];tc(c+P(a,e)|0,P(e,f)+b|0,a>>>0>>0?a:f)}return j|0}function LTa(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;J[b>>2]=0;a:{if(!J[a+64>>2])break a;e=J[a+20>>2];d=-1;f=J[a+24>>2];b:{if((f|0)<=0)break b;while(1){if(J[e+P(c,20)>>2]==1128678944){d=c;break b}c=c+1|0;if((f|0)!=(c|0))continue;break}}c=0;f=P(d,20);e=f+e|0;d=J[e+8>>2];e=J[e+16>>2];if(!((d^2147483647)>=(e|0)&(d|e)>=0&J[a+12>>2]>=(d+e|0)))break a;d=J[a+8>>2];a=f+J[a+20>>2]|0;e=v_(d+J[a+8>>2]|0,J[a+16>>2]);if(!e)break a;d=0;a=0;c:{if(J[e+128>>2]!=3102)break c;d=1;h=J[e+332>>2];if((h|0)>0){f=J[e+344>>2];d=0;if(h>>>0>=4){k=h&-4; -while(1){g=d<<1;i=L[g+f>>1];c=(c|0)>(i|0)?c:i;i=L[f+(g|2)>>1];c=(c|0)>(i|0)?c:i;i=L[f+(g|4)>>1];c=(c|0)>(i|0)?c:i;g=L[f+(g|6)>>1];c=(c|0)>(g|0)?c:g;d=d+4|0;j=j+4|0;if((k|0)!=(j|0))continue;break}}h=h&3;if(h)while(1){g=L[f+(d<<1)>>1];c=(c|0)>(g|0)?c:g;d=d+1|0;a=a+1|0;if((h|0)!=(a|0))continue;break}d=c+1|0}c=0;a=vd(d,4);f=wc(a,0,d<<2);if(J[e+332>>2]<=0)break c;h=J[e+344>>2];while(1){J[f+(L[h+(c<<1)>>1]<<2)>>2]=c;c=c+1|0;if((c|0)>2])continue;break}}J[b>>2]=d;c=a;gc[J[J[e>>2]+4>>2]](e)}return c| -0}function qV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=bc-1024|0;bc=f;c=rc(128);J[695492]=0;d=$(5088,c|0)|0;e=J[695492];J[695492]=0;a:{b:{if((e|0)!=1){J[a>>2]=0;md(a,d);J[695492]=0;_(5089,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;la(5090,d|0,0,32,5091,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;while(1){c=J[b>>2];e=J[J[c>>2]+8>>2];J[695492]=0;c=ga(e|0,c|0,f|0,1024)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(!c)break b;e=J[d+76>>2];J[695492]=0;ia(5084,d|0,f|0,e|0,c|0);e= -J[695492];J[695492]=0;if((e|0)==1)break a;J[d+76>>2]=c+J[d+76>>2];continue}}a=Z()|0;qc(c);ba(a|0);B()}J[695492]=0;b=$(5074,d+20|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(!(J[d+16>>2]!=0|b)){H[d+8|0]=1;if(J[d+84>>2]<0){b=J[d+64>>2];c=J[J[b>>2]+28>>2];J[695492]=0;b=$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[d+84>>2]=b}b=J[d+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}J[695492]=0;_(5085,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc= -f+1024|0;return}b=Z()|0;vc(a);ba(b|0);B()}function Y8(a,b,c,d){var e=0,f=0,g=0,h=0;a:{b:{if(!d){if((c|0)<2&(b|0)<=0)break b;c:{if((c|0)<=0)break c;g=a-4|0;f=g+(b<<3)|0;J[a>>2]=J[a>>2]-((J[a+4>>2]+J[((b|0)>0?a+4|0:f)>>2]|0)+2>>2);if((c|0)==1)break c;d=1;while(1){h=d<<3;e=h+a|0;J[e>>2]=J[e>>2]-((J[((b|0)<(d|0)?f:g+h|0)>>2]+J[((b|0)>(d|0)?e+4|0:f)>>2]|0)+2>>2);d=d+1|0;if((d|0)!=(c|0))continue;break}}if((b|0)<=0)break b;f=((c<<3)+a|0)-8|0;d=0;while(1){g=(c|0)>(d|0);e=(d<<3)+a|0;d=d+1|0;J[e+4>>2]=J[e+ -4>>2]+(J[((c|0)>(d|0)?(d<<3)+a|0:f)>>2]+J[(g?e:f)>>2]>>1);if((b|0)!=(d|0))continue;break}break b}if(!c&(b|0)==1)break a;if((c|0)>0){f=((b<<3)+a|0)-8|0;d=0;while(1){e=(d<<3)+a|0;g=J[((b|0)>(d|0)?e:f)>>2];d=d+1|0;J[e+4>>2]=J[e+4>>2]-((J[((b|0)>(d|0)?(d<<3)+a|0:f)>>2]+g|0)+2>>2);if((c|0)!=(d|0))continue;break}}d=1;if((b|0)<=0)break b;g=a-4|0;f=g+(c<<3)|0;J[a>>2]=J[a>>2]+(J[a+4>>2]+J[((c|0)>0?a+4|0:f)>>2]>>1);if((b|0)==1)break b;while(1){h=d<<3;e=h+a|0;J[e>>2]=J[e>>2]+(J[((c|0)<(d|0)?f:g+h|0)>>2]+J[((c| -0)>(d|0)?e+4|0:f)>>2]>>1);d=d+1|0;if((d|0)!=(b|0))continue;break}}return}J[a>>2]=J[a>>2]/2}function Opb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+292|0]|(K[a+293|0]|K[a+300|0]))break b;if(K[a+291|0])break b;if(c>>>0>=5)break a;d:{if(K[a+289|0]){f=K[a+336|0];if(!((c|0)==1|(f|0)!=8)|!((c|0)==3|(f|0)!=10))break a;if(!((c|0)==2|(f|0)!=12))break a;if((c|0)==4|(f|0)!=14)break d;break a}if(K[a+ -286|0]|K[a+287|0]|K[a+288|0]){f=K[a+325|0];if(!(f|(c|0)==1))break a;g=(c|0)==3;if(!(g|(f|0)!=2)|!((f|0)!=3|g))break a;if(!((c|0)==2|(f|0)!=4))break a;if((c|0)==4|(f|0)!=6)break d;break a}if(!(c&-5))break d;break a}e:{f:{if(!K[a+112|0])break f;b=gc[J[b+4>>2]](a,b,e)|0;if(b)break e;b=J[e>>2];f=!c;H[b+32|0]=f;if(f)break f;f=K[a+336|0];g:{if(K[a+289|0])break g;f=6;if(!K[a+286|0])break g;f=K[a+325|0]}H[b+33|0]=f;H[b+34|0]=K[d|0];if(c>>>0<2)break f;H[J[e>>2]+35|0]=K[d+1|0];if((c|0)==2)break f;H[J[e>>2]+ -36|0]=K[d+2|0];if(c>>>0<4)break f;H[J[e>>2]+37|0]=K[d+3|0]}b=0}return b|0}Dc(a,1029,0,0);return 1029}Dc(a,1028,0,0);return 1028}function Jo(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;c=J[a>>2];if(c){qc(c);J[a>>2]=0}a:{b:{c:{d:{c=J[b>>2];switch(c|0){case 1:break c;case 0:break d;default:break b}}J[a+4>>2]=2;b=a;a=zc(16);J[b>>2]=a;if(!a)return-1;J[a+8>>2]=0;J[a+12>>2]=1072693248;J[a>>2]=0;J[a+4>>2]=0;return 0}J[a+4>>2]=256;c=zc(2048);J[a>>2]=c;if(!c)return-1;d=J[a+4>>2];if((d|0)<= -0)return 0;h=+M[J[b+4>>2]>>2]*.00390625;e=+(d-1|0);a=0;if((d|0)!=1){i=d&-2;b=0;while(1){f=+(a|0)/e;k=c+(a<<3)|0,l=(m=0,n=We(f,h),o=f==0,o?m:n),O[k>>3]=l;g=a|1;f=+(g|0)/e;k=c+(g<<3)|0,l=(m=0,n=We(f,h),o=f==0,o?m:n),O[k>>3]=l;a=a+2|0;b=b+2|0;if((i|0)!=(b|0))continue;break}}if(!(d&1))break a;e=+(a|0)/e;k=c+(a<<3)|0,l=(m=0,n=We(e,h),o=e==0,o?m:n),O[k>>3]=l;return 0}J[a+4>>2]=c;c=zc(c<<3);J[a>>2]=c;if(!c)return-1;d=J[a+4>>2];if((d|0)<=0)return 0;b=J[b+4>>2];a=0;if((d|0)!=1){i=d&-2;while(1){O[c+(a<<3)>> -3]=+M[b+(a<<2)>>2]/65535;g=a|1;O[c+(g<<3)>>3]=+M[b+(g<<2)>>2]/65535;a=a+2|0;j=j+2|0;if((i|0)!=(j|0))continue;break}}if(!(d&1))break a;O[c+(a<<3)>>3]=+M[b+(a<<2)>>2]/65535}return 0}function Zob(a,b){a=a|0;b=b|0;var c=0,d=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;d=J[a+428>>2];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]= -c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=J[b+56>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+28|0]=c;H[d+29|0]=c>>>8;H[d+30|0]=c>>>16;H[d+31|0]=c>>>24;c=J[b+60>>2];c=c<<24|(c&65280)<< -8|(c>>>8&65280|c>>>24);H[d+32|0]=c;H[d+33|0]=c>>>8;H[d+34|0]=c>>>16;H[d+35|0]=c>>>24;c=J[b+64>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+36|0]=c;H[d+37|0]=c>>>8;H[d+38|0]=c>>>16;H[d+39|0]=c>>>24;return ue(a,J[b>>2],32,d+8|0)|0}function Vo(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;A(+a);b=v(1)|0;v(0)|0;a:{b:{b=b>>>20&2047;if(b-969>>>0<63){h=b;break b}if(b>>>0<969)return a+1;if(b>>>0<1033)break b;A(+a);f=v(1)|0;e=0;if(!(v(0)|0)&(f|0)==-1048576)break a;if(b>>>0>=2047)return a+1;if((f|0)<0){b= -bc-16|0;O[b+8>>3]=1.2882297539194267E-231;return O[b+8>>3]*1.2882297539194267E-231}b=bc-16|0;O[b+8>>3]=3.105036184601418E231;return O[b+8>>3]*3.105036184601418E231}c=O[306822];g=O[306821]*a+c;c=g-c;a=c*O[306824]+(c*O[306823]+a);c=a*a;i=c*c*(a*O[306828]+O[306827]);e=c*(a*O[306826]+O[306825]);A(+g);v(1)|0;b=v(0)|0;d=b<<4&2032;a=i+(e+(O[d+2454680>>3]+a));d=d+2454688|0;f=0+J[d>>2]|0;d=J[d+4>>2]+(b<<13)|0;d=f>>>0>>0?d+1|0:d;if(!h){c:{if(!(b&-2147483648)){x(0,f|0);x(1,d-1058013184|0);c=+z();a=(c*a+c)* -5.4861240687936887E303;break c}x(0,f|0);x(1,d+1071644672|0);c=+z();g=c*a;a=g+c;if(a<1){b=bc-16|0;J[b+8>>2]=0;J[b+12>>2]=1048576;O[b+8>>3]=O[b+8>>3]*2.2250738585072014E-308;e=a+1;a=e+(g+(c-a)+(a+(1-e)))+-1;a=a==0?0:a}a=a*2.2250738585072014E-308}return a}x(0,f|0);x(1,d|0);c=+z();e=c*a+c}return e}function djb(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;i=bc-272|0;bc=i;d=J[b+4>>2];f=J[b>>2];b=J[a>>2];g=J[a+4>>2];J[i+12>>2]=g<<2;J[i+8>>2]=b<<2;e=d<<2;J[i+4>>2]=e;f=f<<2;J[i>>2]=f;k= -J[c+208>>2];J[i+16>>2]=k;a=J[c+212>>2];J[i+20>>2]=a;h=g>>6;a:{b:{l=d>>6;j=J[c+176>>2];c:{d:{if((l|0)<(j|0)){d=a>>8;break d}d=a>>8;if((h|0)<(j|0))break d;if((d|0)>=(j|0))break c}j=J[c+172>>2];if((j|0)<=(l|0)|(h|0)>=(j|0)|(d|0)>=(j|0))break b}J[c+212>>2]=e;J[c+208>>2]=f;break a}d=1;f=(f-(b<<3)|0)+k|0;b=f>>31;g=a+(e-(g<<3)|0)|0;a=g>>31;b=(b^f)-b|0;a=(a^g)-a|0;b=a>>>0>>0?b:a;if(b>>>0>=65)while(1){d=d<<1;a=b>>>0>259;b=b>>>2|0;if(a)continue;break}b=i;while(1){a=J[b>>2];g=0-d&d;if(g>>>0>=2)while(1){e= -J[b+16>>2];J[b+32>>2]=e;f=J[b+20>>2];J[b+36>>2]=f;h=a;a=J[b+8>>2];h=h+a|0;J[b+8>>2]=h>>1;a=a+e|0;J[b+24>>2]=a>>1;a=a+h>>2;J[b+16>>2]=a;e=J[b+12>>2];h=e+J[b+4>>2]|0;J[b+12>>2]=h>>1;e=f+e|0;J[b+28>>2]=e>>1;J[b+20>>2]=e+h>>2;b=b+16|0;g=g>>1;if(g>>>0>1)continue;break}NL(c,a,J[b+4>>2]);b=b-16|0;d=d-1|0;if(d)continue;break}}bc=i+272|0;return 0}function OC(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;i=bc-32|0;bc=i;g=J[b+12>>2];h=J[b+8>>2];k=g-h>>3;j=k&1;if(!(K[e|0]|(K[a+8|0]|!j))){a:{if((g|0)==(h|0)){g=0;l= -J[b+4>>2];if(!l|J[l>>2])break a;J[l>>2]=130;break a}g=J[h>>2];b:switch(J[h+4>>2]-1|0){case 1:g=g<<16;break a;case 0:break b;default:break a}g=((g>>31)+g|0)- -8192>>14}J[d>>2]=(J[J[J[a+176>>2]+536>>2]+544>>2]<<16)+g}if(!K[J[a+176>>2]+548|0]){if(k>>>0>=2){while(1){d=J[b+8>>2];g=J[b+12>>2]-d>>3;c:{if(g>>>0<=j>>>0){a=0;h=J[b+4>>2];if(!h|J[h>>2])break c;J[h>>2]=130;break c}h=d+(j<<3)|0;a=J[h>>2];d:switch(J[h+4>>2]-1|0){case 1:a=a<<16;break c;case 0:break d;default:break c}a=((a>>31)+a|0)- -8192>>14}f= -a+f|0;J[i+16>>2]=f;a=j+1|0;e:{if(a>>>0>=g>>>0){a=0;d=J[b+4>>2];if(!d|J[d>>2])break e;J[d>>2]=130;break e}d=d+(a<<3)|0;a=J[d>>2];f:switch(J[d+4>>2]-1|0){case 1:a=a<<16;break e;case 0:break f;default:break e}a=((a>>31)+a|0)- -8192>>14}J[i+24>>2]=0;J[i+28>>2]=0;H[i+12|0]=0;f=a+f|0;J[i+20>>2]=f;$4(c,i+12|0);j=j+2|0;if(k>>>0>j>>>0)continue;break}h=J[b+8>>2]}J[b+12>>2]=h}H[e|0]=1;bc=i+32|0}function KWa(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=bc-32|0;bc=e;a:{b:{c:{d:{if(c){if(!d)break d; -Wr(a,817816);break c}c=K[b+11|0];g=c<<24>>24;f=(g|0)<0?J[b+4>>2]:c;c=f+2|0;if(c>>>0>=1073741808)break b;e:{if(f>>>0>=4294967294){J[e+8>>2]=0;J[e>>2]=0;J[e+4>>2]=0;H[e+11|0]=c;d=e;c=e+8|0;break e}d=c|3;if(d>>>0>=1073741823)break a;h=d+1|0;d=rc(h<<2);J[e+4>>2]=c;J[e>>2]=d;J[e+8>>2]=h|-2147483648;c=d+8|0}J[d>>2]=60;J[d+4>>2]=47;d=(g|0)<0?J[b>>2]:b;b=f<<2;i=Zc(c,d,b)+b|0,j=0,J[i>>2]=j;J[695492]=0;b=aa(2860,e|0,816484)|0;c=J[695492];J[695492]=0;f:{g:{if((c|0)!=1){J[e+24>>2]=J[b+8>>2];c=J[b+4>>2];J[e+16>> -2]=J[b>>2];J[e+20>>2]=c;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;c=a;a=K[e+27|0];b=a<<24>>24<0;ga(2794,c|0,(b?J[e+16>>2]:e+16|0)|0,(b?J[e+20>>2]:a)|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break g;if(H[e+27|0]<0)qc(J[e+16>>2]);if(H[e+11|0]>=0)break c;qc(J[e>>2]);break c}b=Z()|0;break f}b=Z()|0;if(H[e+27|0]>=0)break f;qc(J[e+16>>2])}if(H[e+11|0]<0)qc(J[e>>2]);ba(b|0);B()}Wr(a,816484)}bc=e+32|0;return}Id(e);B()}Sd();B()}function Ola(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=bc-16|0;bc=e;J[a>>2]=0;J[a+4>>2]=0;J[695492]=0;b=$(4,664)|0;d=J[695492];J[695492]=0;a:{if((d|0)!=1){J[b>>2]=2429916;J[b+4>>2]=0;J[b+8>>2]=0;J[695492]=0;d=$(6328,b+16|0)|0;f=J[695492];J[695492]=0;if((f|0)==1){c=Z()|0;qc(b);break a}J[a+4>>2]=b;J[a>>2]=d;d=J[c>>2];g=O[d+96>>3];h=O[d+16>>3];i=O[d+24>>3];j=O[d+48>>3];k=O[d+32>>3];l=O[d+8>>3];O[b+56>>3]=O[d+40>>3];O[b+24>>3]=l;O[b+48>>3]=k;O[b- -64>>3]=j;O[b+40>>3]=i;O[b+32>>3]=h;J[d+80>>2]=0;J[d+84>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;if(g>0){J[d+96>> -2]=0;J[d+100>>2]=0}J[d+104>>2]=0;J[d+108>>2]=0;J[e+8>>2]=d;c=J[c+4>>2];J[e+12>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;b:{f=J[b+636>>2];c:{if(f>>>0>2]){J[f+4>>2]=c;J[f>>2]=d;J[b+636>>2]=f+8;break c}J[695492]=0;da(6357,b+632|0,e+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[e+12>>2];if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;gc[J[J[b>>2]+8>>2]](b);Vc(b)}a=J[a>>2];H[a+602|0]=0;J[a+60>>2]=1;bc=e+16|0;return}c=Z()|0;Ie(e+8|0);break a}c=Z()|0}Ie(a);ba(c|0);B()}function Kub(a){a=a|0;var b= -0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=J[J[a+544>>2]+88>>2];e=J[f+1176>>2]+P(J[f+1168>>2],J[a+572>>2])|0;b=J[a+588>>2];d=J[a+644>>2];a:{if(K[f+56|0]){if((b|0)<=0)break a;while(1){c=K[e+2|0]|K[e+3|0]<<8;j=(c<<8|c>>>8)&65535;c=K[e+4|0]|K[e+5|0]<<8;k=(c<<8|c>>>8)&65535;c=K[e|0]|K[e+1|0]<<8;c=(c<<8|c>>>8)&65535;b:{if(!((c|0)!=L[f+838>>1]|(j|0)!=L[f+840>>1])){b=0;h=0;g=0;i=0;if(L[f+842>>1]==(k|0))break b}h=65535;b=j;g=c;i=k}c=i;g=g<<8|g>>>8;H[d|0]=g;H[d+1|0]=g>>>8;b=b<<8|b>>>8;H[d+2|0]=b;H[d+3|0]= -b>>>8;c=c<<8|c>>>8;H[d+4|0]=c;H[d+5|0]=c>>>8;c=h<<8|h>>>8;H[d+6|0]=c;H[d+7|0]=c>>>8;d=d+8|0;e=e+6|0;l=l+1|0;if((l|0)>2])continue;break}break a}if((b|0)<=0)break a;while(1){b=K[e|0]|K[e+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8;b=K[e+2|0]|K[e+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d+2|0]=b;H[d+3|0]=b>>>8;b=K[e+4|0]|K[e+5|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d+4|0]=b;H[d+5|0]=b>>>8;H[d+6|0]=255;H[d+7|0]=255;d=d+8|0;e=e+6|0;c=c+1|0;if((c|0)>2])continue; -break}}return 0}function Byb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=-1;a:{d=J[b+8>>2];b:{if(d&7)break b;e=K[a+20|0];c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2]))break a;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;c:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break c}if((Uc(b,e)|0)==-1)break b}c=-1;d=J[b+8>>2];if(d&7)break b;e=K[a+21|0];c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2]))break a;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;d:{if((d|0)>0){J[b+ -60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break d}if((Uc(b,e)|0)==-1)break b}c=-1;d=J[b+8>>2];if(d&7)break b;e=K[a+22|0];c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2]))break a;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;e:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break e}if((Uc(b,e)|0)==-1)break b}c=-1;f:{g:switch(K[a+20|0]-1|0){case 0:if(!ki(b,J[a+24>>2]))break f;break b;case 1:break g;default:break f}if((Ko(b,J[a+28>>2],J[a+32>>2])|0)!=J[a+ -32>>2])break b}c=0}return c|0}J[b+8>>2]=d|4;return-1}function oO(a){var b=0,c=0,d=0,e=0;b=zc(68);if(!b)return 0;J[b+52>>2]=0;J[b+56>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+60>>2]=0;J[b+64>>2]=-1;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;d=K[a|0];if(d)while(1){e=a;a:{b:{c:{d:{e:{f:{a=d<<24>>24;switch(a-97|0){case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:case 21:break a;case 0:break b; -case 1:break c;case 22:break d;case 17:break e;default:break f}}if((a|0)!=43)break a;c=c|3;break a}c=c|1;break a}c=c|18;break a}c=c|8;break a}c=c|4}a=e+1|0;d=K[e+1|0];if(d)continue;break}J[b>>2]=c;a=zc(32);if(!a){g:{if(!(K[b+4|0]&8))break g;a=J[b+12>>2];if(!a)break g;qc(a);J[b+12>>2]=0}qc(b);return 0}H[a+8|0]=0;J[a>>2]=0;J[b+56>>2]=a;J[a+4>>2]=2;if(!J[b+12>>2]){a=zc(8208);J[b+12>>2]=a;h:{if(a){d=8192;e=J[b+4>>2]|8;break h}a=b+32|0;J[b+12>>2]=a;d=1;e=J[b+4>>2]}J[b+28>>2]=0;J[b+20>>2]=d;J[b+52>>2]= -2627256;a=a+16|0;J[b+24>>2]=a;J[b+16>>2]=a;J[b+4>>2]=e|2;return b}fa(205922,198678,703,206445);B()}function nA(a,b,c,d,e,f){var g=0,h=Q(0),i=0,j=Q(0);g=(c<<6)+b|0;a=c?g+-64|0:a;i=d>>>0>>0?d:e;a:{if(i>>>0<=c>>>0){b=a;break a}h=N[a>>2];while(1){b=g;g=b-32|0;j=h;h=N[b>>2];N[g>>2]=Q(Q(j+h)*f)+N[g>>2];g=b-28|0;N[g>>2]=Q(Q(N[a+4>>2]+N[b+4>>2])*f)+N[g>>2];g=b-24|0;N[g>>2]=Q(Q(N[a+8>>2]+N[b+8>>2])*f)+N[g>>2];g=b-20|0;N[g>>2]=Q(Q(N[a+12>>2]+N[b+12>>2])*f)+N[g>>2];g=b-16|0;N[g>>2]=Q(Q(N[a+16>>2]+N[b+16>> -2])*f)+N[g>>2];g=b-12|0;N[g>>2]=Q(Q(N[a+20>>2]+N[b+20>>2])*f)+N[g>>2];g=b-8|0;N[g>>2]=Q(Q(N[a+24>>2]+N[b+24>>2])*f)+N[g>>2];g=b-4|0;N[g>>2]=Q(Q(N[a+28>>2]+N[b+28>>2])*f)+N[g>>2];g=b- -64|0;a=b;c=c+1|0;if((i|0)!=(c|0))continue;break}}b:{if(d>>>0>e>>>0){if((e+1|0)!=(d|0))break b;a=g-32|0;f=Q(f+f);N[a>>2]=Q(N[b>>2]*f)+N[a>>2];a=g-28|0;N[a>>2]=Q(N[b+4>>2]*f)+N[a>>2];a=g-24|0;N[a>>2]=Q(N[b+8>>2]*f)+N[a>>2];a=g-20|0;N[a>>2]=Q(N[b+12>>2]*f)+N[a>>2];a=g-16|0;N[a>>2]=Q(N[b+16>>2]*f)+N[a>>2];a=g-12|0;N[a>> -2]=Q(N[b+20>>2]*f)+N[a>>2];a=g-8|0;N[a>>2]=Q(N[b+24>>2]*f)+N[a>>2];a=g-4|0;N[a>>2]=Q(N[b+28>>2]*f)+N[a>>2]}return}fa(2338044,2338616,3112,2342568);B()}function FQ(a){var b=0,c=0,d=0,e=0,f=0;f=bc-16|0;bc=f;a:{b:{c:{d:{e:{d=J[a+584>>2];if(d){if(L[a+90>>1]!=32845)break e;if(L[a+138>>1]!=1){Nc(J[a+628>>2],93792,75201,0);b=0;break a}c=-1;b=J[d>>2];if((b|0)!=-1)break b;b=0;f:{g:{h:{e=L[a+86>>1]|L[a+84>>1]<<3;switch(e-257|0){case 2:break c;case 0:case 1:case 3:break g;default:break h}}b=e-129|0;if(b>>>0<= -3)break f;break d}c=2;b=-1;break c}if((b|0)==2)break d;b=1;break c}fa(74413,70356,1275,93792);B()}fa(74750,70356,1276,93792);B()}i:switch(e-65|0){case 0:case 3:b=3;break c;default:break i}b=-1}j:{k:switch(L[a+98>>1]-1|0){case 2:c=b;break j;case 0:break j;default:break k}c=-1}J[d>>2]=c;b=c}if(b>>>0>=4){Nc(J[a+628>>2],J[a>>2],75338,0);b=0;break a}J[d+8>>2]=J[(b<<2)+93996>>2];l:{if(K[a+13|0]&4){b=J[a+68>>2];e=Dzb(J[a+72>>2],0,b,0);c=(fc|0)!=0;break l}b=J[a+56>>2];e=Dzb(J[a+100>>2],0,b,0);c=(fc|0)!=0}b= -b?c&1?0:e:0;J[d+16>>2]=b;if(!(!(b&1073741823)|b-1073741824>>>0<3221225473)){c=zc(b<<2);J[d+12>>2]=c;b=1;if(c)break a}b=J[a+628>>2];J[f>>2]=J[a>>2];Nc(b,93792,75959,f);b=0}bc=f+16|0;return b}function q4(a){var b=0,c=0,d=0,e=0;d=J[J[a>>2]+100>>2];b=J[a+300>>2];if(b){J[b+444>>2]=0;c=J[b+8>>2];e=J[b+24>>2];if(e)gc[J[c+8>>2]](c,e);J[b+20>>2]=0;J[b+24>>2]=0;e=J[b+440>>2];if(e)gc[J[c+8>>2]](c,e);J[b+440>>2]=0;J[b+432>>2]=0;J[b+436>>2]=0;e=J[b+396>>2];if(e)gc[J[c+8>>2]](c,e);J[b+392>>2]=0;J[b+396>>2]=0;J[b>> -2]=0;J[b+4>>2]=0;if(b)gc[J[c+8>>2]](c,b);J[a+300>>2]=0}b=J[a+252>>2];if(b)gc[J[d+8>>2]](d,b);J[a+248>>2]=0;J[a+252>>2]=0;b=J[a+260>>2];if(b)gc[J[d+8>>2]](d,b);I[a+256>>1]=0;J[a+260>>2]=0;b=J[a+264>>2];if(b){c=J[a+292>>2];if(c)gc[J[b+8>>2]](b,c);J[a+292>>2]=0;c=J[a+288>>2];if(c)gc[J[b+8>>2]](b,c);J[a+288>>2]=0;c=J[a+280>>2];if(c)gc[J[b+8>>2]](b,c);J[a+280>>2]=0;c=J[a+276>>2];if(c)gc[J[b+8>>2]](b,c);J[a+276>>2]=0;c=J[a+284>>2];if(c)gc[J[b+8>>2]](b,c);J[a+284>>2]=0;J[a+272>>2]=0;J[a+264>>2]=0;J[a+268>> -2]=0}b=J[a+132>>2];if(b)gc[J[d+8>>2]](d,b);J[a+132>>2]=0;b=J[a+144>>2];if(b)gc[J[d+8>>2]](d,b);J[a+136>>2]=0;J[a+140>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+304>>2]=-1;J[a+308>>2]=-1}function Tf(a){var b=0,c=0,d=0,e=0;c=bc-32|0;bc=c;J[c+16>>2]=0;J[c+12>>2]=6749;b=J[c+16>>2];J[c>>2]=J[c+12>>2];J[c+4>>2]=b;e=J[c+4>>2];b=c+20|0;J[b+4>>2]=J[c>>2];J[b+8>>2]=e;J[b>>2]=a;e=bc-16|0;bc=e;if(J[a>>2]!=-1)a:{d=e+12|0;J[d>>2]=b;b=e+8|0;J[b>>2]=d;while(1){d=J[a>>2];if((d| -0)==1)continue;break}b:{c:{if(!d){J[a>>2]=1;J[695492]=0;d=J[695492];J[695492]=0;d:{if((d|0)==1)break d;J[695492]=0;_(6755,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[a>>2]=-1;J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}na(ea(0)|0)|0;J[695492]=0;c=J[695492];J[695492]=0;e:{if((c|0)==1)break e;J[a>>2]=0;J[695492]=0;a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0; -a=J[695492];J[695492]=0;if((a|0)==1)break e;J[695492]=0;ka(4892);a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)==1)break c;ba(a|0);B()}break a}ea(0)|0;yc()}B()}bc=e+16|0;bc=c+32|0;return J[a+4>>2]-1|0}function TUa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;ew(a,b);d=J[a+4>>2];if(d&512){d=K[a+327|0];c=d<<24>>24<0;jf(b,c?J[a+316>>2]:a+316|0,c?J[a+320>>2]:d);d=J[a+4>>2]}a:{if(!(d&1024))break a;pd(b,(J[a+356>>2]-J[a+352>>2]|0)/24|0);c=J[a+352>> -2];if((c|0)==J[a+356>>2])break a;d=0;while(1){e=P(d,24);c=e+c|0;g=K[c+11|0];f=g<<24>>24<0;jf(b,f?J[c>>2]:c,f?J[c+4>>2]:g);c=e+J[a+352>>2]|0;e=K[c+23|0];f=e<<24>>24<0;jf(b,f?J[c+12>>2]:c+12|0,f?J[c+16>>2]:e);d=d+1|0;c=J[a+352>>2];if(d>>>0<(J[a+356>>2]-c|0)/24>>>0)continue;break}}d=J[a+4>>2];if(d&2048){pd(b,J[a+364>>2]);d=J[a+4>>2]}b:{if(!(d&4096))break b;pd(b,J[a+344>>2]-J[a+340>>2]>>2);d=J[a+340>>2];if((d|0)==J[a+344>>2])break b;c=0;while(1){pd(b,J[(c<<2)+d>>2]);c=c+1|0;d=J[a+340>>2];if(c>>>0>2]-d>>2>>>0)continue;break}}c:{if(!(K[a+5|0]&32))break c;pd(b,(J[a+332>>2]-J[a+328>>2]|0)/12|0);c=J[a+328>>2];if((c|0)==J[a+332>>2])break c;d=0;while(1){c=P(d,12)+c|0;e=K[c+11|0];f=e<<24>>24<0;jf(b,f?J[c>>2]:c,f?J[c+4>>2]:e);d=d+1|0;c=J[a+328>>2];if(d>>>0<(J[a+332>>2]-c|0)/12>>>0)continue;break}}}function qpa(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;J[a>>2]=2424992;J[a+4>>2]=0;a:{e=J[b>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[b>> -2]}else e=0;J[a+8>>2]=e;b=J[b>>2];J[a+28>>2]=0;J[a+32>>2]=0;H[a+16|0]=c;J[a+12>>2]=b;J[a+36>>2]=0;J[a+40>>2]=0;while(1){e=0;c=(a+f|0)+2604|0;H[c|0]=0;b=f;g=b&128;if(g){while(1){e=e+1|0;h=b&64;b=b<<1;if(h)continue;break}H[c|0]=e}e=0;b=f|1;c=(b+a|0)+2604|0;H[c|0]=0;if(g){while(1){e=e+1|0;g=b&64;b=b<<1;if(g)continue;break}H[c|0]=e}f=f+2|0;if((f|0)!=256)continue;break}b=0;while(1){f=(b<<2)+a|0;c=P(b,6);J[f+1068>>2]=L[c+2425010>>1];J[f+44>>2]=L[c+2425008>>1];f=a+b|0;H[f+2348|0]=K[c+2425013|0];H[f+2092| -0]=K[c+2425012|0];b=b+1|0;if((b|0)!=256)continue;break}if(!d){c=0;while(1){d=(c<<2)+a|0;f=J[d+44>>2];e=0-f|0;while(1){b=e&65535;e=b<<1;if(b>>>0>32767)continue;break}d=J[d+1068>>2];if(!(!d|b+f>>>0<32768|b>>>0>>0))H[(a+c|0)+2348|0]=K[P(K[P(c,6)+2425013|0],6)+2425013|0];c=c+1|0;if((c|0)!=256)continue;break}}return a|0}b=Z()|0;ed(a);ba(b|0);B()}function Vk(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(!b){b=K[43199]|K[43200]<<8;H[a+88|0]=b;H[a+89|0]=b>>>8;b=K[43195]|K[43196]<<8|(K[43197]<<16|K[43198]<<24);c=K[43191]| -K[43192]<<8|(K[43193]<<16|K[43194]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16;H[a+87|0]=b>>>24;b=K[43187]|K[43188]<<8|(K[43189]<<16|K[43190]<<24);c=K[43183]|K[43184]<<8|(K[43185]<<16|K[43186]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;break b}b=0;if(J[a+4>>2])break a;b=K[43956]|K[43957]<<8|(K[43958]<<16|K[43959]<<24);c=K[43952]|K[43953]<<8|(K[43954]<< -16|K[43955]<<24);H[a+78|0]=c;H[a+79|0]=c>>>8;H[a+80|0]=c>>>16;H[a+81|0]=c>>>24;H[a+82|0]=b;H[a+83|0]=b>>>8;H[a+84|0]=b>>>16;H[a+85|0]=b>>>24;b=K[43950]|K[43951]<<8|(K[43952]<<16|K[43953]<<24);c=K[43946]|K[43947]<<8|(K[43948]<<16|K[43949]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24}b=1}return b|0}function Leb(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;f=3;a:{if((d| -e)<0)break a;h=J[a+8>>2];i=J[a+12>>2];m=L[i+2>>1];if(M[h+4>>2]>>0)break a;l=L[i>>1];if(M[h>>2]>>0)break a;j=P(m,K[a+18|0]);if((P(l,j)+7>>>3|0)+b>>>0>c>>>0)break a;f=0;if(!j|!l)break a;n=d&7;a=8-n|0;k=a>>>0>j>>>0?j:a;p=(255<>2];h=J[h+12>>2]+P(o,e)+(d>>>3)|0;m=j-k|0;e=0;d=l;while(1){i=d;b:{if(!n){a=b;f=j;d=h;break b}c:{if((i|0)==(l|0)){e=K[b|0];g=n;a=b+1|0;break c}if((g|0)<(k|0)){g=(g-k|0)+8|0;if(b>>>0>=c>>>0)a=b;else{e=K[b|0]|e;a=b+1|0}break c}g=g-k|0;e=(e&65280)>>> -8|0;a=b}H[h|0]=K[h|0]|(e&65535)>>>g&p;e=e<<8;f=m;d=h+1|0}if((f|0)>=8)while(1){b=K[a|0]|e;H[d|0]=K[d|0]|(b&65535)>>>g;d=d+1|0;a=a+1|0;e=b<<8;b=f>>>0>15;f=f-8|0;if(b)continue;break}d:if((f|0)>0){if((f|0)>(g|0)){if(a>>>0>>0){e=K[a|0]|e;a=a+1|0}H[d|0]=K[d|0]|(e&65535)>>>g&65280>>>f;e=e<<8;g=(g-f|0)+8|0;break d}H[d|0]=K[d|0]|65280>>>f&(e&65535)>>>g;g=g-f|0}b=a;h=h+o|0;d=i-1|0;if((i|0)>1)continue;break}f=0}return f|0}function Ye(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+ -64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=jd(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;f=K[c|0];break d}f=jd(a,1);if((f|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a; -c=-1;g=J[a+28>>2];J[a+28>>2]=g-1;e:{if((g|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;g=K[c|0];break e}g=jd(a,1);if((g|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break f}a=jd(a,1);if((a|0)==-1)break b}J[b>>2]=(e<<16|f<<8|g)<<8|a;c=0}return c}J[a+8>>2]=d|4;return-1}function wA(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;J[a+32>>2]= -J[a+32>>2]+2;g=vA(a);c=J[a+32>>2];f=J[a+36>>2];a:{if(c>>>0>=f>>>0)break a;while(1){e=K[c|0]-9|0;if(e>>>0>23|!(1<>2]=c;if((c|0)!=(f|0))continue;break}c=f}d=f-2|0;b:{if(d>>>0>=c>>>0){e=c;while(1){if(!kd(e,785835,2)){d=rc(28);J[695492]=0;f=$(4,8)|0;h=J[695492];J[695492]=0;c:{if((h|0)!=1){J[695492]=0;c=ga(3181,f|0,c|0,e-c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[d+4>>2]=0;J[d+8>>2]=0;J[d+24>>2]=c;J[d+20>>2]=g;J[d>>2]=2336632;J[d+12>>2]=0;J[d+16>>2]=0;gc[J[J[b>> -2]+48>>2]](b,d);J[a+32>>2]=J[a+32>>2]+2;return}c=Z()|0;break b}c=Z()|0;qc(f);break b}e=e+1|0;J[a+32>>2]=e;if(d>>>0>=e>>>0)continue;break}}J[a+32>>2]=f;d=rc(28);J[695492]=0;a=$(4,8)|0;e=J[695492];J[695492]=0;d:{if((e|0)!=1){J[695492]=0;c=ga(3181,a|0,c|0,f-c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break d;J[d+4>>2]=0;J[d+8>>2]=0;J[d+24>>2]=c;J[d+20>>2]=g;J[d>>2]=2336632;J[d+12>>2]=0;J[d+16>>2]=0;gc[J[J[b>>2]+48>>2]](b,d);return}c=Z()|0;break b}c=Z()|0;qc(a)}qc(d);ba(c|0);B()}function h$a(a,b,c){a= -a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-256|0;bc=d;f=Wh(84);J[a+8>>2]=f;a:{if(f){J[d+24>>2]=J[188575];e=J[188574];J[d+16>>2]=J[188573];J[d+20>>2]=e;e=J[188572];J[d+8>>2]=J[188571];J[d+12>>2]=e;e=J[188570];J[d>>2]=J[188569];J[d+4>>2]=e;J[f>>2]=0;e=d+32|0;g=f,h=ag(729017,e,d,c),J[g+4>>2]=h;g=f,h=ag(729648,e,d,c),J[g+8>>2]=h;g=f,h=ag(730098,e,d,c),J[g+12>>2]=h;g=f,h=ag(730612,e,d,c),J[g+16>>2]=h;g=f,h=ag(730969,e,d,c),J[g+20>>2]=h;g=f,h=ag(731336,e,d,c),J[g+24>>2]=h;g=f,h=ag(731585,e,d,c),J[g+28>> -2]=h;g=f,h=ag(731832,e,d,c),J[g+32>>2]=h;g=f,h=ag(731959,e,d,c),J[g+36>>2]=h;g=f,h=ag(732160,e,d,c),J[g+40>>2]=h;g=f,h=ag(732274,e,d,c),J[g+44>>2]=h;g=f,h=ag(732594,e,d,c),J[g+48>>2]=h;g=f,h=ag(732745,e,d,c),J[g+52>>2]=h;g=f,h=ag(732825,e,d,c),J[g+56>>2]=h;g=f,h=ag(732931,e,d,c),J[g+60>>2]=h;g=f,h=ag(733002,e,d,c),J[g+64>>2]=h;g=f,h=ag(733138,e,d,c),J[g+68>>2]=h;g=f,h=ag(733197,e,d,c),J[g+72>>2]=h;g=f,h=ag(733305,e,d,c),J[g+76>>2]=h;if(!(!K[b+8|0]&J[c>>2]<=0)){W0(a);break a}J[f+80>>2]=0;break a}J[c>> -2]=7}bc=d+256|0}function VDa(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;g=bc-16|0;bc=g;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{j=J[b+4>>2];if((j|0)>0)while(1){h=J[b>>2];k=K[b+8|0];b:{if(!k){e=f+1|0;i=(e|0)<(j|0)?j:e;e=f;while(1){if(J[(e<<2)+h>>2]==(c|0))break b;e=e+1|0;if((i|0)!=(e|0))continue;break}e=i;break b}e=f+1|0;i=(e|0)<(j|0)?j:e;l=J[h>>2];e=f;while(1){if(J[(e<<2)+l>>2]==(c|0))break b;e=e+1|0;if((j|0)>(e|0))continue;break}e=i}H[g+8|0]=0;J[g>>2]=0;J[g+4>>2]=0;c:{if(!k)break c; -if(!h){h=0;break c}h=J[h>>2]}J[695492]=0;ia(4847,g|0,(f<<2)+h|0,d|0,e-f|0);f=J[695492];J[695492]=0;if((f|0)==1)break a;f=J[a+4>>2];d:{if((f|0)!=J[a+8>>2]){J[f+4>>2]=J[g+4>>2];h=K[g+8|0];H[f+8|0]=h;i=J[g>>2];J[f>>2]=i;if(!(!h|!i))J[i+4>>2]=J[i+4>>2]+1;J[a+4>>2]=f+12;break d}J[695492]=0;da(4977,a|0,g|0);f=J[695492];J[695492]=0;if((f|0)==1)break a;h=K[g+8|0]}f=e+1|0;e:{if(!(h&255))break e;e=J[g>>2];if(!e)break e;i=J[e+4>>2]-1|0;J[e+4>>2]=i;if(i)break e;qc(e)}if((f|0)<(j|0))continue;break}bc=g+16|0;return}b= -Z()|0;Lc(g);cA(a);ba(b|0);B()}function yDa(a){a=a|0;var b=0,c=0,d=0,e=0;a=J[a+4>>2];if(!a)return 0;c=bc-32|0;bc=c;a=J[a+12>>2];a:{if(J[a+56>>2]-3>>>0<=1){b=J[a+52>>2];if(!b){b=0;J[c+28>>2]=0;break a}J[b+4>>2]=J[b+4>>2]+1;b=J[a+52>>2];J[c+28>>2]=b;break a}J[c+28>>2]=0;md(c+28|0,0);b=J[c+28>>2]}a=0;b:{c:{d:{if(!b)break d;J[695492]=0;J[c+24>>2]=0;b=J[b+16>>2];d=J[695492];J[695492]=0;if((d|0)!=1){e:{if((b|0)>0){J[c+12>>2]=1E3;J[c+4>>2]=231644;a=zc(1E3);J[c+8>>2]=a;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3| -0]=0;J[695492]=0;J[c+20>>2]=4;J[c+16>>2]=a+4;la(5028,c+28|0,c+24|0,b|0,c+4|0,1);a=J[695492];J[695492]=0;if((a|0)==1)break e;a=J[c+8>>2];b=J[c+20>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[c+8>>2]}b=J[c+28>>2];J[c+28>>2]=0;if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}ea(0)|0;yc();B()}b=Z()|0;J[c+4>>2]=231644;a=J[c+8>>2];if(!a)break c;qc(a);break c}b=Z()| -0;break c}bc=c+32|0;break b}vc(c+28|0);ba(b|0);B()}return a|0}function f2(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=J[a+276>>2];if(e)f2(e,b,c,d);j=O[a+112>>3];g=b/j;e=g>1.001|g<.999;if(!(!(e|O[a+120>>3]!=c)&O[a+128>>3]==d)){O[a+128>>3]=d;O[a+120>>3]=c;if(e){O[a+112>>3]=b;h2(a);j=O[a+112>>3];g=O[a+120>>3]}else g=c;O[a+192>>3]=g/72*j;b=b*64;a:{if(R(b)<2147483648){e=~~b;break a}e=-2147483648}h=J[a+188>>2];if(d<4294967296&d>=0)f=~~d>>>0;else f=0;if(c<4294967296&c>=0)i=~~c>>>0;else i= -0;Y5(h,e,i,f);e=J[a+304>>2];h=a+308|0;if((e|0)!=(h|0))while(1){J[e+120>>2]=1;f=J[e+4>>2];b:{if(f)while(1){e=f;f=J[e>>2];if(f)continue;break b}while(1){f=e;e=J[e+8>>2];if((f|0)!=J[e>>2])continue;break}}if((e|0)!=(h|0))continue;break}i=a+316|0;e=J[i>>2];k=a+320|0;if((e|0)!=(k|0))while(1){J[e+120>>2]=1;f=J[e+4>>2];c:{if(f)while(1){e=f;f=J[e>>2];if(f)continue;break c}while(1){f=e;e=J[e+8>>2];if((f|0)!=J[e>>2])continue;break}}if((e|0)!=(k|0))continue;break}Xh(a+304|0,J[a+308>>2]);J[a+304>>2]=h;J[a+308>> -2]=0;J[a+312>>2]=0;Xh(i,J[a+320>>2]);J[a+316>>2]=k;J[a+320>>2]=0;J[a+324>>2]=0}}function lN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=J[a+44>>2];a:{if(f){h=J[a+4>>2];b:{if(!h){h=0;break b}i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!(!K[a+481|0]|(i|0)!=J[a+476>>2])){h=K[a+480|0];break b}H[a+481|0]=1;J[a+476>>2]=i;g=J[a+48>>2];n=g?g:f;c:{if((n|0)<=0){h=0;break c}l=h+40|0;o=i>>>16&255;p=i>>>8&255;i=i&255;m=2E5;h=0;g=0;while(1){f=K[(k| -1)+l|0]-p|0;j=P(f,f);f=K[k+l|0]-i|0;j=j+P(f,f)|0;f=K[(k|2)+l|0]-o|0;f=j+P(f,f)|0;if(!f){h=g;break c}j=f;f=(f|0)<(m|0);m=f?j:m;h=f?g:h;k=k+4|0;g=g+1|0;if((n|0)!=(g|0))continue;break}}H[a+480|0]=h}g=L[a+26>>1];if((g|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=h;break a}f=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,g)>>3)|0;d:switch(g-1|0){case 3:g=4-((b|0)%2<<2)&252;H[f|0]=K[f|0]&(15<>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;H[g|0]=K[d|0];H[g+1|0]=K[d+1|0];H[g+2|0]=K[d+2|0]}if(e)hh(a,b,c,K[d+3|0])}function lEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;a:{b:{if((Bp(a)|0)<=0)break b;if(!Yj(a))break b;QB(d+16|0,a);e=K[d+27|0];f=e<<24>>24<0;e=f?J[d+20>>2]:e;c:{if(!e)break c;d:{e:{while(1){if((Ve(b)|0)==(e|0)){if((e|0)==-1){J[695492]=0;_(2804,d+16|0);a=J[695492];J[695492]=0;if((a|0)!=1)break e;ea(0)|0;yc();B()}if(!gd(f?J[d+16>>2]:d+16|0,b,e))break d}J[695492]=0;f=vi(a); -e=J[695492];J[695492]=0;if((e|0)!=1){if(!f)break c;J[695492]=0;da(4810,d+4|0,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break a;if(H[d+27|0]<0)qc(J[d+16>>2]);J[d+24>>2]=J[d+12>>2];f=J[d+8>>2];J[d+16>>2]=J[d+4>>2];J[d+20>>2]=f;e=H[d+27|0];f=(e|0)<0;e=f?J[d+20>>2]:e&255;if(e)continue;break c}break}break a}B()}J[695492]=0;da(4811,d+4|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;if(H[c+11|0]<0)qc(J[c>>2]);b=J[d+8>>2];J[c>>2]=J[d+4>>2];J[c+4>>2]=b;J[c+8>>2]=J[d+12>>2]}J[695492]=0;Ri(a);a=J[695492]; -J[695492]=0;if((a|0)==1)break a;if(H[d+27|0]>=0)break b;qc(J[d+16>>2])}bc=d+32|0;return}a=Z()|0;if(H[d+27|0]<0)qc(J[d+16>>2]);ba(a|0);B()}function MI(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[b>>2];a:{if((d|0)<=0)break a;j=d&3;e=J[b+4>>2];b:{if(d>>>0<4){d=e;break b}g=d&-4;while(1){f=K[e+3|0]+P(K[e+2|0]+P(K[e+1|0]+P(K[e|0]+P(f,17)|0,17)|0,17)|0,17)|0;d=e+4|0;e=d;h=h+4|0;if((g|0)!=(h|0))continue;break}}if(!j)break a;while(1){f=K[d|0]+P(f,17)|0;d=d+1|0;i=i+1|0;if((j|0)!=(i|0))continue;break}}c:{d:{e:{f:{d= -J[a+4>>2];e=J[J[a+12>>2]+((f>>>0)%(d>>>0)<<2)>>2];if(e){while(1){if(!rg(J[e>>2],b))break f;e=J[e+8>>2];if(e)continue;break}d=J[a+4>>2]}if((d|0)<=J[a+8>>2])t_(a);g=rc(12);J[g+4>>2]=c;J[g>>2]=b;d=J[b>>2];if((d|0)>0)break e;f=0;break d}J[e+4>>2]=c;if(!J[a>>2])break c;qc(Rc(b));return}c=d&3;e=J[b+4>>2];i=0;g:{if(d>>>0<4){f=0;d=e;break g}b=d&-4;f=0;h=0;while(1){f=K[e+3|0]+P(K[e+2|0]+P(K[e+1|0]+P(K[e|0]+P(f,17)|0,17)|0,17)|0,17)|0;d=e+4|0;e=d;h=h+4|0;if((b|0)!=(h|0))continue;break}}if(!c)break d;while(1){f= -K[d|0]+P(f,17)|0;d=d+1|0;i=i+1|0;if((c|0)!=(i|0))continue;break}}b=J[a+12>>2]+((f>>>0)%M[a+4>>2]<<2)|0;J[g+8>>2]=J[b>>2];J[b>>2]=g;J[a+8>>2]=J[a+8>>2]+1}}function Fba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=bc-16|0;bc=e;d=J[a+584>>2];if(d){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)<=65536){n:switch(b-34908|0){case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break n}if((b|0)==347)break m;if((b|0)!=530)break b;cy(a,0,0);if(J[d+932>>2]|!J[d+16>>2]|L[a+90>>1]!=6)break g;J[d+932>> -2]=1;if(!(J[a+12>>2]>>>10&1))break i;if(YS(a,0))break h;break g}switch(b-65537|0){case 2:break j;case 1:break k;case 0:break l;default:break b}}J[J[c>>2]>>2]=J[d+916>>2];J[J[c+4>>2]>>2]=J[d+912>>2];a=1;break a}J[J[c>>2]>>2]=J[d+920>>2];a=1;break a}J[J[c>>2]>>2]=J[d+924>>2];a=1;break a}J[J[c>>2]>>2]=J[d+928>>2];a=1;break a}if(!_S(a,0))break g}b=L[d+834>>1];J[e+4>>2]=L[d+836>>1];J[e>>2]=b;$d(a,530,e);J[a+480>>2]=-1}a=gc[J[d+892>>2]](a,530,c)|0;break a}J[J[c>>2]>>2]=J[d+936>>2];a=1;break a}J[J[c>>2]>> -2]=J[d+940>>2];a=1;break a}J[J[c>>2]>>2]=J[d+944>>2];a=1;break a}J[J[c>>2]>>2]=J[d+948>>2];a=1;break a}a=gc[J[d+892>>2]](a,b,c)|0}bc=e+16|0;return a|0}fa(75254,70490,1775,97632);B()}function $Ya(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;var h=0,i=0,j=0,k=0,l=0;h=bc-32|0;bc=h;J[h+28>>2]=0;a:{if(!a|!J[a+8>>2])break a;j=15567;b:{if((c|0)!=15567){if(!c)break b;i=c;while(1){k=K[i|0];if((k|0)!=K[j|0])break b;j=j+1|0;i=i+1|0;if(k)continue;break}}if((d|0)==2)break b;k=J[a+100>>2];if(!(J[a+ -172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=540;j=J[a>>2];i=0;c:{if(!j)break c;i=0;if(J[j+108>>2]!=-554844497)break c;i=J[j+124>>2]}j=J[a+112>>2];l=J[a+108>>2];J[h+16>>2]=0;J[h+20>>2]=0;Cc(i,j,l,a,0,4,540,2,0,0,0,0,37199,h+16|0)}J[a+100>>2]=k}c=qJ(a,c,h+28|0);J[a+144>>2]=1;i=a+108|0;d:{e:switch(J[a+216>>2]-1|0){case 1:H$(i,J[J[a+8>>2]+48>>2],b,c,J[h+28>>2],d,e,f,g);break d;default:f:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break f;J[a+84>>2]=1;J[h+4>>2]=0;J[h>>2]=c;Cc(0,0,0,a,0,1,1,3,c,0,0,0,31408,h);J[a+100>> -2]=0;J[a+12>>2]=0;if(J[a+288>>2])break f;J[a+212>>2]=1}vk(g);break a;case 0:break e}H$(i,J[J[a+8>>2]+44>>2],b,c,J[h+28>>2],d,e,f,g)}a=J[h+28>>2];if(a)gc[J[659451]](a);if(!c)break a;gc[J[659451]](c)}bc=h+32|0}function X3(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;j=J[a+532>>2];if(!j)return 6;l=-1;d=J[j>>2];a:{if(!d)break a;e=J[j+4>>2];b:{if(e){m=b>>>0>e>>>0?e:b;d=e;while(1){h=0;i=65536;f=0;c:{if(!d)break c;while(1){d:{if(h>>>0>=m>>>0){i=i>>1;break d}f=J[(h<<2)+c>>2];f=g>>> -h&1?f:65536-f|0;if((f|0)<=0){i=0;f=d;break c}if(f>>>0>65535)break d;i=Pc(i,f);e=J[j+4>>2]}d=e;f=d;h=h+1|0;if(h>>>0>>0)continue;break}}d=J[j+136>>2]+(g<<2)|0;if(J[d>>2]!=(i|0)){J[d>>2]=i;k=1}d=f;g=g+1|0;if(g>>>0>2])continue;break}break b}i=d&3;c=J[j+136>>2];if(d>>>0>=4){j=d&-4;d=0;while(1){e=h<<2;g=e+c|0;if(J[g>>2]!=65536){J[g>>2]=65536;k=1}g=c+(e|4)|0;if(J[g>>2]!=65536){J[g>>2]=65536;k=1}g=c+(e|8)|0;if(J[g>>2]!=65536){J[g>>2]=65536;k=1}e=c+(e|12)|0;if(J[e>>2]!=65536){J[e>>2]=65536;k=1}h=h+ -4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}if(!i)break b;while(1){d=c+(h<<2)|0;if(J[d>>2]!=65536){J[d>>2]=65536;k=1}h=h+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if(!k)break a;l=0;J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15}return l|0}function IBa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=bc-16|0;bc=g;f=rc(60);J[f+20>>2]=0;J[f>>2]=2386220;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;H[f+16|0]=0;h=J[682146];J[f+56>>2]=-1;H[f+52|0]=0;J[f+48>>2]=h;J[f+44>>2]=0;J[f+40>>2]=h;J[f+36>>2]=0;J[f+ -32>>2]=h;J[f+28>>2]=0;J[f+24>>2]=h;J[a>>2]=0;md(a,f);J[695492]=0;da(5110,f|0,b|0);b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{if((b|0)==1)break e;J[695492]=0;da(5111,f|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[d>>2];if(!b)break d;c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,g+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c}b=Z()|0;break b}J[g+12>>2]=0}J[695492]=0;aa(4993,f+44|0,g+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){a=J[g+12>>2];J[g+12>>2]=0;if(!a)break a;J[695492]=0;b=J[a+4>>2]- -1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}b=Z()|0;vc(g+12|0)}vc(a);ba(b|0);B()}a=J[f+44>>2];a=J[(a?a+12|0:2728584)>>2];H[f+52|0]=e&63;J[f+48>>2]=a;bc=g+16|0}function Nwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=J[a+44>>2];e=J[a+52>>2];b=gc[J[J[e>>2]+20>>2]](e,2)|0;J[c+72>>2]=1;d=gc[J[J[e>>2]+20>>2]](e,1)|0;a:{b:{c:{if((b|0)<4)break c;f=b-3|0;b=J[c+80>>2];if(!d)while(1){if(!b){f=f- -4|0;b=gc[J[J[e>>2]+20>>2]](e,4)|0}g=J[c+76>>2];d=bd(1,b);J[c+64>>2]=d;if(!d)break b;J[c+84>>2]=b;J[c+68>>2]=d;if((b|0)>0)while(1){d=gc[J[J[e>>2]+20>>2]](e,1)|0;H[J[c+64>>2]+g|0]=d;d=b-1|0;g=g+1|0;f=f-1|0;if(!f)break a;h=(b|0)>1;b=d;if(h)continue;break}J[c+76>>2]=g;b=b-1|0;J[c+80>>2]=b;if((f|0)>0)continue;break c}while(1){if(!b){f=f-4|0;b=gc[J[J[e>>2]+20>>2]](e,4)|0}g=J[c+76>>2];h=g+b|0;d=bd(1,h);if(!d){J[J[a>>2]+20>>2]=1;return}i=J[c+64>>2];j=tc(d,i,b);d=c;if(i){qc(i);h=J[c+76>>2]+b|0}J[d+84>>2]= -h;J[c+68>>2]=j;J[c+64>>2]=j;if((b|0)>0)while(1){d=gc[J[J[e>>2]+20>>2]](e,1)|0;H[J[c+64>>2]+g|0]=d;d=b-1|0;g=g+1|0;f=f-1|0;if(!f)break a;h=(b|0)>1;b=d;if(h)continue;break}J[c+76>>2]=g;b=b-1|0;J[c+80>>2]=b;if((f|0)>0)continue;break}}return}J[J[a>>2]+20>>2]=1;return}J[c+76>>2]=g;J[c+80>>2]=d}function NIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=rc(8);J[695492]=0;d=aa(3182,e|0,777521)|0;f=J[695492];J[695492]=0;if((f|0)!=1)a:{Dh(d,J[a+20>>2]);e=J[a+28>>2];if(e)while(1){od(d,802431);Dh(d,J[e>> -2]);od(d,803092);f=0;g=J[e+4>>2];if(J[g>>2]>0)while(1){b:{c:{d:{e:{f:{g:{h=K[J[g+4>>2]+f|0];switch(h-34|0){case 4:break e;case 28:break f;case 26:break g;case 0:break d;default:break c}}od(d,803710);break b}od(d,804109);break b}od(d,804522);break b}od(d,804971);break b}zd(d,h<<24>>24)}f=f+1|0;if((f|0)>2])continue;break}od(d,799492);e=J[e+12>>2];if(e)continue;break}e=gc[J[J[a>>2]+40>>2]](a)|0;od(d,e?788533:787568);g=gc[b|0](c,J[d+4>>2],J[d>>2])|0;qc(Rc(d));f=0;h:{if(!g)break h;if(e){while(1){if(!(gc[J[J[e>> -2]+52>>2]](e,b,c)|0))break h;e=gc[J[J[e>>2]+44>>2]](e)|0;if(e)continue;break}e=rc(8);J[695492]=0;d=$(3184,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;od(d,793313);Dh(d,J[a+20>>2]);od(d,788533);a=gc[b|0](c,J[d+4>>2],J[d>>2])|0;qc(Rc(d));if(!a)break h}f=1}return f|0}a=Z()|0;qc(e);ba(a|0);B()}function Oj(a,b){var c=0,d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;a:{b:{if(!Yf(18820,H[b|0])){J[694731]=28;break b}d=2;if(!Yf(b,43))d=K[b|0]!=114;d=Yf(b,120)?d|128:d;d=Yf(b,101)?d|524288:d;e=d;g=d|64;d=K[b|0];e=(d| -0)==114?e:g;e=(d|0)==119?e|512:e;J[f>>2]=438;J[f+4>>2]=0;a=Wa(-100,a|0,((d|0)==97?e|1024:e)|32768,f|0)|0;if(a>>>0>=4294963201){J[694731]=0-a;a=-1}if((a|0)<0)break a;d=bc-32|0;bc=d;c:{d:{e:{if(!Yf(18820,H[b|0])){J[694731]=28;break e}c=zc(1176);if(c)break d}b=0;break c}wc(c,0,144);if(!Yf(b,43))J[c>>2]=K[b|0]==114?8:4;f:{if(K[b|0]!=97){b=J[c>>2];break f}b=_a(a|0,3,0)|0;if(!(b&1024)){b=b|1024;J[d+16>>2]=b;J[d+20>>2]=b>>31;_a(a|0,4,d+16|0)|0}b=J[c>>2]|128;J[c>>2]=b}J[c+80>>2]=-1;J[c+48>>2]=1024;J[c+60>> -2]=a;J[c+44>>2]=c+152;g:{if(b&8)break g;J[d>>2]=d+24;J[d+4>>2]=0;if(xb(a|0,21523,d|0)|0)break g;J[c+80>>2]=10}J[c+40>>2]=6513;J[c+36>>2]=6514;J[c+32>>2]=6515;J[c+12>>2]=6516;if(!K[2778953])J[c+76>>2]=-1;b=J[694757];J[c+56>>2]=b;if(b)J[b+52>>2]=c;J[694757]=c;b=c}bc=d+32|0;c=b;if(c)break a;Ga(a|0)|0}c=0}bc=f+16|0;return c}function kS(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2439740;d=J[a+620>>2];c=J[a+616>>2];if((d|0)!=(c|0))while(1){d=d-8|0;b=J[d+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a; -gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((c|0)!=(d|0))continue;break}J[a+620>>2]=c;J[695492]=0;e=a+496|0;cv(e);b=J[695492];J[695492]=0;if((b|0)!=1)b:{b=J[a+632>>2];c:{if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;gc[J[J[b>>2]+8>>2]](b);Vc(b)}b=J[a+616>>2];if(b){c=b;d=J[a+620>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];d:{if(!c)break d;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break d;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}c=J[a+616>>2]}J[a+620>>2]=b;qc(c)}if(H[a+587|0]<0)qc(J[a+576>> -2]);ZF(e);J[a+432>>2]=340424;b=J[a+460>>2];if(b){qc(b);J[a+460>>2]=0}J[a+64>>2]=340472;b=J[a+92>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+92>>2]=0}Qe(a+276|0);b=J[a+184>>2];if(b){J[a+188>>2]=b;qc(b)}if(H[a+111|0]<0)qc(J[a+100>>2]);Ed(a+96|0);return a|0}ea(0)|0;yc();B()}function jva(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;f=bc-32|0;bc=f;a:{if(K[a+88|0]){c=J[a+84>>2];break a}m=a,n=gc[J[J[a>>2]+36>>2]](a)|0,J[m+ -72>>2]=n;m=a,n=gc[J[J[a>>2]+44>>2]](a)|0,J[m+76>>2]=n;m=a,n=gc[J[J[a>>2]+40>>2]](a)|0,J[m+80>>2]=n;c=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}b:{c:{if(J[a+92>>2]>0){g=J[a+80>>2];i=c-g|0;h=J[a+72>>2];j=J[a+76>>2]-h|0;k=J[a+128>>2];l=J[a+104>>2];c=0;while(1){if(!(J[a+116>>2]<=(c|0)&J[a+120>>2]>=(c|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}d=(c-J[a+108>>2]<<2)+l|0;e=J[b>>2];J[d>>2]=((P(J[b+8>>2]-e|0,J[d>>2]-h| -0)|0)/(j|0)|0)+e;if(!(J[a+140>>2]<=(c|0)&J[a+144>>2]>=(c|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}d=(c-J[a+132>>2]<<2)+k|0;e=J[b+4>>2];J[d>>2]=((P(J[b+12>>2]-e|0,J[d>>2]-g|0)|0)/(i|0)|0)+e;c=c+1|0;if((c|0)>2])continue;break}}bc=f+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function tHa(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=bc-16|0;bc=g;a:{b:{c:{if(b){if(!a)break c;if(!d)break b;d:{if(c>>>0<= -1){Hc(d,1,2356620,0);a=0;break d}if(H[a+176|0]&1){Hc(d,1,2356646,0);a=0;break d}a=J[a+156>>2]+P(J[a+192>>2],5644)|0;H[a+5640|0]=K[a+5640|0]|2;ld(b,g+12|0,1);h=a+5164|0;e=J[a+5164>>2];e:{if(!e){if(J[a+5160>>2])break a;f=J[g+12>>2]+1|0;e=ye(f,8);J[h>>2]=e;if(!e){Hc(d,1,2356778,0);a=0;break d}J[a+5160>>2]=f;break e}f=J[g+12>>2];if(f>>>0>2])break e;i=e;e=f+1|0;f=Tg(i,e<<3);if(!f){Hc(d,1,2356778,0);a=0;break d}J[h>>2]=f;a=a+5160|0;i=J[a>>2];wc(f+(i<<3)|0,0,e-i<<3);J[a>>2]=e;e=J[h>>2]}a=J[g+12>> -2];if(J[(a<<3)+e>>2]){J[g>>2]=a;Hc(d,1,2356816,g);a=0;break d}a=c-1|0;c=_e(a);e=J[h>>2];f=J[g+12>>2];J[e+(f<<3)>>2]=c;if(!c){Hc(d,1,2356778,0);a=0;break d}J[(e+(f<<3)|0)+4>>2]=a;tc(J[e+(J[g+12>>2]<<3)>>2],b+1|0,a);a=1}bc=g+16|0;return a|0}fa(2353829,2346358,4039,2356603);B()}fa(2346477,2346358,4040,2356603);B()}fa(2346590,2346358,4041,2356603);B()}fa(2356747,2346358,4066,2356603);B()}function usb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[a+2308>>2];a:{if(!e)break a;d=J[a+2312>>2];b=J[a+2316>>2];a= -J[a+2300>>2];if(K[a+56|0]){if((e|0)!=1){f=e&-2;while(1){c=L[d>>1];if((c|0)!=L[a+836>>1])I[b+6>>1]=65535;I[b+4>>1]=c;I[b+2>>1]=c;I[b>>1]=c;c=L[d+2>>1];if((c|0)!=L[a+836>>1])I[b+14>>1]=65535;I[b+12>>1]=c;I[b+10>>1]=c;I[b+8>>1]=c;b=b+16|0;d=d+4|0;g=g+2|0;if((f|0)!=(g|0))continue;break}}if(!(e&1))break a;c=L[a+836>>1];a=L[d>>1];if((c|0)!=(a|0))I[b+6>>1]=65535;I[b+4>>1]=a;I[b+2>>1]=a;I[b>>1]=a;return 0}if(e>>>0>=4){f=e&-4;a=0;while(1){c=L[d>>1];I[b+4>>1]=c;I[b+2>>1]=c;I[b>>1]=c;I[b+6>>1]=65535;c=L[d+2>> -1];I[b+12>>1]=c;I[b+10>>1]=c;I[b+8>>1]=c;I[b+14>>1]=65535;c=L[d+4>>1];I[b+20>>1]=c;I[b+18>>1]=c;I[b+16>>1]=c;I[b+22>>1]=65535;c=L[d+6>>1];I[b+28>>1]=c;I[b+26>>1]=c;I[b+24>>1]=c;I[b+30>>1]=65535;b=b+32|0;d=d+8|0;a=a+4|0;if((f|0)!=(a|0))continue;break}}c=e&3;if(!c)break a;a=0;while(1){e=L[d>>1];I[b+4>>1]=e;I[b+2>>1]=e;I[b>>1]=e;I[b+6>>1]=65535;b=b+8|0;d=d+2|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}return 0}function rBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d:{b= -J[b>>2];e:{f:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+8|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[c+8>>2];if(!b)break f;d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break e;b=Z()|0;break c}J[c+8>>2]=0}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;g:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break g;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break g;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break g}break a}b=Z()|0;vc(c+12|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+8>>2];J[c+8>>2]=0;h:{if(!b)break h;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break h;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+16|0;return a|0}b=Z()|0;break b}vc(c+8|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function cEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-48|0;bc=c;f=c+36|0;J[f>>2]= -0;J[f+4>>2]=0;H[f+8|0]=0;J[695492]=0;g=Qg(a);d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((d|0)!=1)while(1){J[695492]=0;e=aa(4815,a|0,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!e)break c;J[695492]=0;e=c+12|0;da(4802,e|0,a|0);d=J[695492];J[695492]=0;if((d|0)==1)break i;J[695492]=0;e=aa(4825,c+24|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break h;J[695492]=0;Xf(f,e);d=J[695492];J[695492]=0;if((d|0)==1)break g;Lc(e);if(H[c+23|0]<0)qc(J[c+12>>2]);J[695492]=0;e=Fd(f,2373196);d=J[695492]; -J[695492]=0;if((d|0)==1)break b;if(!e)continue;J[695492]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;d=J[695492];J[695492]=0;if((d|0)==1)break e;J[695492]=0;ia(4894,a|0,b|0,c|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break d;Lc(c);continue}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break f}a=Z()|0;Lc(e)}if(H[c+23|0]>=0)break a;qc(J[c+12>>2]);break a}a=Z()|0;break a}a=Z()|0;Lc(c);break a}Lc(f);bc=c+48|0;return}a=Z()|0}Lc(f);ba(a|0);B()}function txa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-48|0;bc=c;J[a+32>> -2]=0;J[a+24>>2]=-1717986918;J[a+28>>2]=1073846681;J[a+16>>2]=26;J[a+20>>2]=300;J[a+8>>2]=0;J[a+12>>2]=0;a:{b:{b=bp(b,c+38|0,10);if(!b){a=Kc(c+12|0,J[682138],2383020,120,2405348,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if((b|0)<=4){a=Kc(c+12|0,2374628,2383020,122,2405348,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}J[a+8>>2]=K[c+39|0]|K[c+38|0]<<8;J[a+12>>2]=K[c+41|0]|K[c+40|0]<<8;d=K[c+42|0];J[a+16>>2]=d;c:{if((b|0)==5)break c; -f=K[c+43|0];if((f|0)==255)break c;J[a+16>>2]=d|f<<8}d:{if(b>>>0<8)break d;d=K[c+45|0];if((d|0)==255)break d;J[a+20>>2]=K[c+44|0]|d<<8}e:{if(b>>>0>=9){e=+K[c+46|0]*.1;O[a+24>>3]=e;break e}e=O[a+24>>3]}d=K[c+47|0]&7;g=.3;f:{if(!(e<.3)){g=5;if(!(e>5))break f}O[a+24>>3]=g}if(J[a+20>>2]-6001>>>0<=4294961319)J[a+20>>2]=300;b=b>>>0<=9?-2:d-2|0;if(b>>>0<=4)b=J[(b<<2)+2405408>>2];else b=0;J[a+32>>2]=b;bc=c+48|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function fr(a){var b=0,c=0,d=0,e=0;if(a){d=J[a+32>>2];if(d)c= -J[d+80>>2];a:{if(!J[689540])break a;d=J[689538];if(!d)break a;gc[d|0](a)}b=J[a+12>>2];if(b)while(1){d=J[b+24>>2];e=J[b+4>>2];if(!(1<>>0<=17:0)){zj(b);gl(b)}b=d;if(b)continue;break}e=J[a+8>>2];b:{if(!e)break b;if(c){d=c;while(1){b=J[d+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break b;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}}gc[J[659451]](e)}e=J[a+56>>2];c:{if(!e)break c;if(c){d=c;while(1){b=J[d+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>> -0)break c;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}}gc[J[659451]](e)}d=J[a+52>>2];d:{if(!d)break d;if(c)while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break d;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}gc[J[659451]](d)}c=J[a+36>>2];if(c)fo(c,3173);c=J[a+40>>2];if(c)fo(c,3169);c=J[a+44>>2];if(c)fo(c,3171);c=J[a+48>>2];if(c)k0(c);c=J[a+60>>2];if(c)k0(c);gc[J[659451]](a)}}function PYa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0; -a:{if(!a)break a;i=J[a+8>>2];f=J[a+52>>2];g=bc-16|0;bc=g;c=gc[J[659447]](60)|0;b:{if(!c){J[g>>2]=2652;Cc(0,0,0,0,0,2,2,3,2652,0,0,0,32863,g);break b}J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+4>>2]=8;J[c+8>>2]=773019;if(b){d=b;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}d=0;h=e-b|0;c:{if((h|0)<0)break c;e=gc[J[659450]](h+1|0)|0;if(!e){Cc(0,0,0,0, -0,1,2,3,0,0,0,0,36013,0);break c}d=tc(e,b,h);H[h+d|0]=0}J[c+40>>2]=d}if(!J[689540])break b;b=J[689537];if(!b)break b;gc[b|0](c)}bc=g+16|0;if(!c)break a;b=c;J[c+32>>2]=i;d:{if(!J[a+280>>2])break d;d=J[a+36>>2];if(!d)break d;d=J[d+28>>2];I[c+56>>1]=(d|0)>=65535?65535:d}e:switch(J[a+216>>2]-1|0){case 0:Ug(J[J[a+8>>2]+44>>2],b);return;case 1:Ug(J[J[a+8>>2]+48>>2],b);return;default:break e}if(!f){Ug(J[a+8>>2],b);return}if(J[f+4>>2]==1){Ug(f,b);return}JB(f,b)}}function JO(a){var b=0,c=0,d=0,e=0,f=0,g=0, -h=0;c=bc+-64|0;bc=c;b=J[a+584>>2];if(!K[b+206|0]){a:{b:{c:{if(L[a+98>>1]!=3)break c;switch(L[a+90>>1]-6|0){case 0:case 4:break b;default:break c}}if(K[b+207|0])ae(J[a+628>>2],96608,76010,0);H[b+210|0]=0;I[b+208>>1]=257;break a}H[b+205|0]=1;H[b+206|0]=1;e=K[b+208|0];h=K[b+209|0];IO(a);f=K[b+210|0];d:{e:{f:{if(f){H[b+205|0]=0;I[b+208>>1]=257;d=1;g=1;if((e|0)==1)break f;break d}H[b+205|0]=0;d=e;g=K[b+208|0];if((d|0)!=(g|0))break e}if(f){e=d;break d}e=d;if(K[b+209|0]==(h|0))break d}d=K[b+209|0];f=J[a+ -628>>2];if(!K[b+207|0]){J[c+36>>2]=d;J[c+32>>2]=g;ae(f,96608,76255,c+32|0);break d}J[c+60>>2]=h;J[c+56>>2]=e;J[c+52>>2]=d;J[c+48>>2]=g;ae(f,96608,76941,c+48|0)}if(K[b+210|0]){d=J[a+628>>2];g:{if(!K[b+207|0]){ae(d,96608,77596,0);break g}J[c+20>>2]=h;J[c+16>>2]=e;ae(d,96608,78191,c+16|0)}if(K[b+210|0])break a}e=K[b+208|0];d=K[b+209|0];if(e>>>0>=d>>>0)break a;a=J[a+628>>2];J[c+4>>2]=d;J[c>>2]=e;ae(a,96608,78882,c)}H[b+206|0]=1;bc=c- -64|0;return}fa(75532,70456,943,96608);B()}function E5a(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;g=c<<2;e=J[g+J[b+8>>2]>>2];k=J[g+J[b+4>>2]>>2];b=J[b>>2]+(c<<3)|0;j=J[b>>2];l=J[b+4>>2];b=J[d+4>>2];c=J[d>>2];g=J[a+332>>2];d=J[a+472>>2];o=J[d+28>>2];p=J[d+24>>2];q=J[d+20>>2];r=J[d+16>>2];d=J[a+112>>2];if(d>>>0>=2){n=d>>>1|0;while(1){d=K[k|0]<<2;h=J[d+q>>2];i=K[e|0]<<2;m=J[i+p>>2];s=J[d+o>>2];d=g+J[i+r>>2]|0;f=K[j|0];H[c|0]=K[d+f|0];i=g+(m+s>>16)|0;H[c+1|0]=K[i+f|0];m=f;f=g+h|0;H[c+2|0]=K[m+f|0];h=K[j+1|0];H[c+ -3|0]=K[h+d|0];H[c+4|0]=K[h+i|0];H[c+5|0]=K[h+f|0];h=K[l|0];H[b|0]=K[h+d|0];H[b+1|0]=K[h+i|0];H[b+2|0]=K[h+f|0];m=d;d=K[l+1|0];H[b+3|0]=K[m+d|0];H[b+4|0]=K[d+i|0];H[b+5|0]=K[d+f|0];b=b+6|0;l=l+2|0;c=c+6|0;j=j+2|0;e=e+1|0;k=k+1|0;n=n-1|0;if(n)continue;break}d=J[a+112>>2]}if(d&1){a=K[k|0]<<2;d=J[a+q>>2];e=K[e|0]<<2;k=J[e+p>>2];i=J[a+o>>2];e=g+J[e+r>>2]|0;a=K[j|0];H[c|0]=K[e+a|0];j=g+(i+k>>16)|0;H[c+1|0]=K[j+a|0];f=c;c=d+g|0;H[f+2|0]=K[c+a|0];a=K[l|0];H[b|0]=K[a+e|0];H[b+1|0]=K[a+j|0];H[b+2|0]=K[a+c| -0]}}function A7(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=bc-16|0;bc=b;d=!a;a:{if(d|(d?0:J[a+36>>2]))break a;xf(a,b+12|0,b+8|0,b+4|0);d=J[b+4>>2];if((d|0)>8)break a;if((d|0)==8){e=wf(0,a);break a}c=uh(J[b+12>>2],J[b+8>>2],8);if(!c)break a;if(!(!c|!a|(a|0)==(c|0))){J[c+20>>2]=J[a+20>>2];J[c+24>>2]=J[a+24>>2]}i=a?J[a+40>>2]:0;j=a?J[a+12>>2]:-1;k=c?J[c+40>>2]:0;d=c?J[c+12>>2]:-1;if(J[b+8>>2]>0)while(1){f=(P(e,d)<<2)+k|0;g=(P(e,j)<<2)+i|0;b:{c:{d:switch(J[b+4>>2]-1|0){case 3:h=J[b+12>>2];break c; -case 1:if(J[b+12>>2]<=0)break b;a=0;while(1){H[a+f^3]=J[(a>>>2&1073741820)+g>>2]>>>((a^-1)<<1)&3;a=a+1|0;h=J[b+12>>2];if((a|0)<(h|0))continue;break}break c;case 0:break d;default:break b}a=0;if(J[b+12>>2]<=0)break b;while(1){H[a+f^3]=J[(a>>>3&536870908)+g>>2]>>>(a^-1)&1;a=a+1|0;if((a|0)>2])continue;break}break b}a=0;if((h|0)<=0)break b;while(1){H[a+f^3]=J[(a>>>2&1073741820)+g>>2]>>>((a^-1)<<1)&3;a=a+1|0;if((a|0)>2])continue;break}}e=e+1|0;if((e|0)>2])continue;break}e=c}bc=b+ -16|0;return e}function t5(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=bc-16|0;bc=g;d=3;h=J[b+188>>2];a:{if(!h)break a;f=b+196|0;i=J[b+192>>2];while(1){j=i+(e<<4)|0;if(J[j>>2]==(c|0)){d=83;c=J[j+12>>2];e=J[a+8>>2];if(c>>>0>>0)break a;if(bg(a,c-e|0))break a;J[g+12>>2]=0;c=Vi(a,g+12|0);d=J[g+12>>2];if(d)break a;i=c&-256;if((i|256)==256){e=c&4;b:{if(e){d=Me(a,260400,f);break b}d=Me(a,260464,f)}J[g+12>>2]=d;if(d)break a;d=J[b+204>>2];f=d>>31;if((d^f)-f>>>0>=32768)J[b+204>>2]=(d|0)<0?-32767:32767;d=J[b+ -208>>2];f=d>>31;if((d^f)-f>>>0>=32768)J[b+208>>2]=(d|0)<0?-32767:32767;f=b+216|0;d=Me(a,e?260528:260560,f);J[g+12>>2]=d;if(d)break a;h=c&255;e=b+232|0;d=ML(a,h,e);J[g+12>>2]=d;if(d)break a;c=b+248|0;if((i|0)==256){d=ML(a,h,c);J[g+12>>2]=d;if(d)break a;d=ML(a,h,b+264|0);break a}a=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=a;a=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=a;a=J[e+12>>2];J[b+272>>2]=J[e+8>>2];J[b+276>>2]=a;a=J[e+4>>2];J[b+264>>2]=J[e>>2];J[b+268>>2]=a}d=0;break a}e=e+1|0;if((h|0)!=(e|0))continue; -break}}bc=g+16|0;return d}function dH(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+28>>2];g=a+32|0;if((c|0)!=(g|0))while(1){e=J[c+20>>2];if(e){if(H[e+23|0]<0)qc(J[e+12>>2]);b=J[e>>2];if(b){f=b;d=J[e+4>>2];if((b|0)!=(d|0)){while(1){f=d-56|0;if(H[d-45|0]<0)qc(J[f>>2]);d=f;if((b|0)!=(d|0))continue;break}f=J[e>>2]}J[e+4>>2]=b;qc(f)}qc(e)}b=J[c+4>>2];a:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break a}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(g|0))continue;break}Ss(a+28|0,J[a+ -32>>2]);J[a+28>>2]=g;J[a+32>>2]=0;J[a+36>>2]=0;b=J[a+48>>2];d=J[a+44>>2];if((b|0)!=(d|0))while(1){c=b-12|0;if(H[b-1|0]<0)qc(J[c>>2]);b=c;if((d|0)!=(b|0))continue;break}J[a+48>>2]=d;c=J[a+60>>2];d=a- -64|0;if((c|0)!=(d|0))while(1){b=J[c+28>>2];if(b)qc($G(b));b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break b}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}eA(a+60|0,J[a+64>>2]);J[a+60>>2]=d;J[a+64>>2]=0;J[a+68>>2]=0;b=J[a+24>>2];if(b){gc[J[J[b>> -2]+4>>2]](b);J[a+24>>2]=0}}function go(a){var b=0,c=0,d=0,e=0;b=-2;a:{if(!a|!J[a+32>>2])break a;d=J[a+36>>2];if(!d)break a;c=J[a+28>>2];if(!c|J[c>>2]!=(a|0))break a;b:{c:{e=J[c+4>>2];switch(e-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break a; -case 0:case 12:case 16:case 34:case 46:case 56:break b;default:break c}}if((e|0)==666)break b;if((e|0)!=42)break a}b=J[c+8>>2];if(b){gc[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+68>>2];if(b){gc[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+64>>2];if(b){gc[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+56>>2];if(b){gc[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}gc[d|0](J[a+40>>2],c);J[a+28>>2]=0;b=(e|0)==113?-3:0}return b}function Nm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-32|0;bc= -d;c=rc(544);J[695492]=0;J[d+4>>2]=0;aa(4985,d+4|0,b|0)|0;b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[c+8>>2]=1;J[c+4>>2]=0;J[c>>2]=2385864;b=J[d+4>>2];J[c+536>>2]=0;J[c+540>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+12>>2]=b;e=c+16|0;c:{d:{if(!b){J[695492]=0;a=ja(5018,d+8|0,2381540,2375807,1712,2386140,0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;B()}b=Z()|0;break d}b=Z()|0;Fc(a);break d}if(!J[b+4>>2])break c;J[695492]=0;aa(4985,e|0,b| -0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0}vc(e);ed(c);vc(d+4|0);break b}J[a>>2]=0;J[695492]=0;aa(4985,a|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[d+4>>2];J[d+4>>2]=0;f:{if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+32|0;return}a=Z()|0;vc(d+4|0);ba(a|0);B()}b=Z()|0}qc(c);ba(b|0);B()}ea(0)|0;yc();B()}function xMa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+ -48>>2]=13;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=b;b=J[b+24>>2];J[a+8>>2]=c;J[a+4>>2]=b;b=rc(296);J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+64>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1078525952;J[b+24>>2]=0;J[b+28>>2]=1078525952;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=1078525952;J[b+56>>2]=0;J[b+60>>2]=1078525952;J[b+80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+92>>2]=1078525952;J[b+96>>2]=0;J[b+100>>2]=1078525952;J[b+ -128>>2]=0;J[b+132>>2]=1078525952;J[b+120>>2]=0;J[b+124>>2]=1078525952;J[b+112>>2]=0;J[b+116>>2]=0;J[b+280>>2]=5;J[b+256>>2]=5;J[b+240>>2]=5;J[b+224>>2]=5;J[b+208>>2]=5;J[b+192>>2]=5;J[b+176>>2]=5;J[b+168>>2]=0;c=J[b+28>>2];J[b+160>>2]=J[b+24>>2];J[b+164>>2]=c;c=J[b+20>>2];J[b+152>>2]=J[b+16>>2];J[b+156>>2]=c;c=J[b+12>>2];J[b+144>>2]=J[b+8>>2];J[b+148>>2]=c;c=J[b+4>>2];J[b+136>>2]=J[b>>2];J[b+140>>2]=c;J[a+64>>2]=1;J[a+48>>2]=5;J[a+32>>2]=5;J[a+16>>2]=5;J[a+12>>2]=b;return a|0}function jqb(a,b,c,d, +2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}a=b+f|0;I[a>>1]=L[a>>1]+L[b>>1];b=b+2|0}g=g-e|0;if((g|0)>0)continue;break}}}function vja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=fc-176|0;fc=c;e=J[a+584>>2];if(e){d=J[a+48>>2];if(d&512){a:{b:{if(L[a+88>>1]==4){ae(80378,18,1,b);d=80035;if(K[e+28|0]&2)break b;break a}ae(81007,18,1,b);d=80035;f=J[e+28>>2];if(f&1){J[c+160>>2]=80035;md(b,81156,c+160|0);f=J[e+28>>2];d=81654}if(f&4){J[c+144>>2]=d;md(b,81762,c+144|0);f=J[e+28>>2];d=81654}if(!(f&2))break a}J[c+ +128>>2]=d;md(b,80683,c+128|0)}d=J[e+28>>2];J[c+116>>2]=d;J[c+112>>2]=d;md(b,82042,c+112|0);d=J[a+48>>2]}if(d&8){ae(82244,11,1,b);c:{d:switch(L[e+16>>1]){case 0:ae(82305,6,1,b);break c;case 1:ae(82528,21,1,b);break c;case 2:break d;default:break c}ae(82613,19,1,b)}d=L[e+16>>1];J[c+100>>2]=d;J[c+96>>2]=d;md(b,82913,c+96|0);d=J[a+48>>2]}if(d&4){J[c+80>>2]=J[e+24>>2];md(b,83128,c+80|0);d=J[a+48>>2]}if(d&16){J[c+64>>2]=J[e+20>>2];md(b,87027,c- -64|0);d=J[a+48>>2]}if(d&32){J[c+48>>2]=J[e+32>>2];md(b,87178, +c+48|0);d=J[a+48>>2]}if(d&64){J[c+32>>2]=J[e+36>>2];md(b,87347,c+32|0);d=J[a+48>>2]}if(d&128){J[c+16>>2]=J[e+40>>2];md(b,87494,c+16|0);d=J[a+48>>2]}if(d&256){J[c>>2]=J[e+44>>2];md(b,87653,c)}fc=c+176|0;return}fa(79455,70539,1268,95736);B()}function co(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;g=fc-16|0;fc=g;a:{if((c|0)<=0)break a;i=J[a+4>>2];while(1){h=(k<<3)+b|0;b:{if(!J[h>>2]){gp(i);if(J[i+12>>2]>1)break a;d=J[i>>2];f=d-1|0;l=J[i+8>>2];c:{while(1){j=3;if(d>>>0>=l>>>0){e=d;break c}e= +d+1|0;J[i>>2]=e;m=K[d|0];d=e;d:switch(m-10|0){case 16:break c;case 0:case 3:break d;default:continue}break}j=2}J[i+12>>2]=j;J[g+8>>2]=f;break b}f=cy(i);J[g+8>>2]=f;if(!f)break a;e=J[i>>2]}d=e-f|0;e=d-1|0;e:{f:switch(J[h>>2]){case 0:case 1:d=qN(J[a>>2],d,g+4|0);J[h+4>>2]=d;if(J[g+4>>2])break e;xc(d,f,e);H[e+J[h+4>>2]|0]=0;break e;case 2:n=h,o=am(g+8|0,e+f|0,0),J[n+4>>2]=o;break e;case 3:J[g+12>>2]=f;m=g+12|0;l=e+f|0;j=eo(m,l,10);e=0;d=J[g+12>>2];g:{if((f|0)==(d|0))break g;if(!(K[d|0]!=35|d>>>0>=l>>> +0)){f=d+1|0;J[g+12>>2]=f;j=eo(m,l,j);d=J[g+12>>2];if((f|0)==(d|0))break g}J[g+8>>2]=d;e=j}J[h+4>>2]=e;break e;case 4:if((e|0)==4)e=ud(f,254415,4);else e=1;H[h+4|0]=!e;break e;case 5:break f;default:break e}d=J[a+12>>2];if(d){n=h,o=kc[d|0](f,e,J[a+16>>2])|0,J[n+4>>2]=o;break e}J[h+4>>2]=0}k=k+1|0;if((k|0)!=(c|0))continue;break}k=c}fc=g+16|0;return k}function m4a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;p=fc-144|0;fc=p;q=J[a+332>>2];a=J[b+84>>2];b= +p;while(1){g=J[a+64>>2];k=I[c+32>>1];i=P(I[c>>1],J[a>>2])<<13|1024;j=P(J[a+128>>2],I[c+64>>1]);n=i+P(j,-11586)>>11;f=P(J[a+32>>2],I[c+16>>1]);h=P(J[a+96>>2],I[c+48>>1]);l=P(J[a+160>>2],I[c+80>>1]);o=f-(h+l|0)<<2;J[b+96>>2]=n-o;J[b+24>>2]=n+o;g=P(P(g,k),10033);k=i+P(j,5793)|0;j=g+k|0;i=f+h<<13;f=P(f+l|0,2998);i=i+f|0;J[b+120>>2]=j-i>>11;J[b>>2]=j+i>>11;g=k-g|0;f=f+(l-h<<13)|0;J[b+72>>2]=g-f>>11;J[b+48>>2]=f+g>>11;b=b+4|0;a=a+4|0;c=c+2|0;m=m+1|0;if((m|0)!=6)continue;break}a=q+128|0;c=p;m=0;while(1){b= +J[(m<<2)+d>>2]+e|0;f=J[c+20>>2];h=J[c+4>>2];q=P(f+h|0,2998);l=J[c+12>>2];g=q+(l+h<<13)|0;j=(J[c>>2]<<13)+131072|0;k=J[c+16>>2];i=j+P(k,5793)|0;n=P(J[c+8>>2],10033);o=i+n|0;H[b|0]=K[a+(g+o>>>18&1023)|0];H[b+5|0]=K[a+(o-g>>>18&1023)|0];h=h-(f+l|0)<<13;g=j+P(k,-11586)|0;H[b+1|0]=K[a+(h+g>>>18&1023)|0];H[b+4|0]=K[a+(g-h>>>18&1023)|0];f=(f-l<<13)+q|0;h=i-n|0;H[b+2|0]=K[a+(f+h>>>18&1023)|0];H[b+3|0]=K[a+(h-f>>>18&1023)|0];c=c+24|0;m=m+1|0;if((m|0)!=6)continue;break}fc=p+144|0}function hva(a,b){a=a|0;b= +b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2425848;ca(5638,c+12|0,c+16|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){J[c+16>>2]=2426484;b=J[c+28>>2];if(b){H[b|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);b=J[c+12>>2];d:{if(b){e=J[J[b>>2]+24>>2];J[699344]=0;ca(e|0,d|0,b|0,2);b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=Z()|0;break c}J[c+16>>2]=0}J[699344]=0;aa(5153,a|0,c+16|0)|0;b=J[699344];J[699344]=0;e:{if((b| +0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}b=Z()|0;zc(c+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+12>>2];J[c+12>>2]=0;f:{if(!b)break f;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+32| +0;return a|0}b=Z()|0;rh(c+16|0);break b}zc(c+12|0)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function rl(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2426580;ca(5638,c+12|0,c+16|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){J[c+16>>2]=2426484;b=J[c+28>>2];if(b){H[b|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);b=J[c+12>>2];d:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d|0,b|0,1);b=J[699344];J[699344]= +0;if((b|0)!=1)break d;b=Z()|0;break c}J[c+16>>2]=0}J[699344]=0;aa(5153,a|0,c+16|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}b=Z()|0;zc(c+16|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+12>>2];J[c+12>>2]=0;f:{if(!b)break f;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]= +0;if((e|0)==1)break a;if(d)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+32|0;return a|0}b=Z()|0;rh(c+16|0);break b}zc(c+12|0)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function W3(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;d=fc-48|0;fc=d;c=K[b+11|0];f=c<<24>>24;a:{b:{h=(f|0)<0?J[b+4>>2]:c;c=h+19|0;if(c>>>0<1073741808){c:{if(c>>>0<=1){J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;H[d+43|0]=c;e=d+32|0;break c}e=c|3;if(e>>>0>=1073741823)break b;g=e+1|0;e=vc(g<<2);J[d+ +36>>2]=c;J[d+32>>2]=e;J[d+40>>2]=g|-2147483648}c=h<<2;i=xc(cd(e,(f|0)<0?J[b>>2]:b,c)+c|0,352784,76),j=0,J[i+76>>2]=j;J[699344]=0;c=d+16|0;J[c+12>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=415588;e=J[699344];J[699344]=0;d:{e:{f:{if((e|0)!=1){J[699344]=0;h=ga(3,c|0,d+32|0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break e;if(h)break f;break a}b=Z()|0;break d}J[699344]=0;e=J[c+12>>2];f=J[699344];J[699344]=0;if((f|0)!=1)g:{J[699344]=0;J[d+12>>2]=0;f=_(27,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break g;J[699344]= +0;ha(28,c|0,f|0,e|0,d+12|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break g;J[699344]=0;ia(2989,a|0,b|0,f|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break g;uc(f);break a}}b=Z()|0;De(c)}if(H[d+43|0]<0)uc(J[d+32>>2]);ba(b|0);B()}_d(d+32|0);B()}Pd();B()}De(c);if(H[d+43|0]<0)uc(J[d+32>>2]);fc=d+48|0;return h|0}function wGa(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;f=fc-32|0;fc=f;a:{if(!J[a+4>>2])break a;while(1){J[f+20>>2]=g;d=J[a>>2];if(K[a+8|0])d=J[d>>2];if(J[(J[f+20>>2]<<2)+d>>2]==44)break a; +g=g+1|0;if(g>>>0>2])continue;break}}b:{c:{if(M[a+4>>2]<=g>>>0){e=f+20|0;d=J[a>>2];d:{if(K[a+8|0]){a=0;if(!d)break d;d=J[d>>2]}a=d}a=lI(e,a);J[699344]=0;i=+qa(5014,a|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;O[b>>3]=i;J[c>>2]=0;J[c+4>>2]=0;Rc(a);break b}h=f+20|0;d=J[a>>2];e:{if(K[a+8|0]){e=0;if(!d)break e;d=J[d>>2]}e=d}h=Et(h,e,0,g);J[699344]=0;d=J[a>>2];f:{if(K[a+8|0]){e=0;if(!d)break f;d=J[d>>2]}e=d}d=J[699344];J[699344]=0;g:{h:{if((d|0)==1)break h;J[699344]=0;a=J[a+4>>2];d=J[699344]; +J[699344]=0;if((d|0)==1)break h;J[699344]=0;a=ha(5136,f+8|0,(e+(g<<2)|0)+4|0,0,a+(g^-1)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;J[699344]=0;i=+qa(5014,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break g;O[b>>3]=i;J[699344]=0;i=+qa(5014,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;O[c>>3]=i;Rc(a);Rc(h);break b}a=Z()|0;Rc(h);ba(a|0);B()}b=Z()|0;Rc(a);Rc(h);ba(b|0);B()}b=Z()|0;Rc(a);ba(b|0);B()}fc=f+32|0}function aCa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=JA(a);J[b>>2]=2413292;J[699344]=0; +e=_(5252,b+8|0)|0;a=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((a|0)!=1){J[b+68>>2]=0;J[b+72>>2]=0;J[b+52>>2]=0;J[b+56>>2]=6;J[b+44>>2]=0;J[b+48>>2]=0;J[b+60>>2]=0;J[b+76>>2]=0;J[b+80>>2]=0;J[699344]=0;a=b+68|0;J[a>>2]=2413224;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;f=a;a=J[699344];J[699344]=0;if((a|0)==1)break f;J[b+92>>2]=0;I[b+88>>1]=0;J[b+84>>2]=0;J[b+100>>2]=0;J[b+104>>2]=0;J[b+96>>2]=0;c=b+108|0;a=c;J[a>>2]=0;J[a+4>>2]=0;d=b+116|0;J[d>>2]=0;a=J[685894];J[b+124>>2]=0;J[b+128>>2]=0;J[b+120>>2]=a; +J[b+132>>2]=0;J[b+136>>2]=0;J[b+140>>2]=0;J[699344]=0;a=b+128|0;J[a>>2]=2397928;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;g=a;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[b+148>>2]=0;J[b+152>>2]=0;J[b+156>>2]=0;J[b+160>>2]=0;J[699344]=0;a=b+148|0;J[a>>2]=2397928;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[b+168>>2]=0;return b|0}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;break c}a=Z()|0;id(g)}zc(b+124|0);wc(d);zc(b+112|0);zc(c);zc(b+104|0);id(f)}zc(b+52|0);zc(b+48|0); +zc(b+44|0);Ed(e)}vr(b);ba(a|0);B()}function Fxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(!K[a+88|0]){e=a,f=kc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=kc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=kc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}d=J[a+72>>2];c=vc(12);J[c+8>>2]=d;J[c>>2]=0;J[c+4>>2]=0;vf(b,c);if(!K[a+88|0]){e=a,f=kc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=kc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=kc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f; +c=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}d=J[a+80>>2];c=vc(12);J[c+8>>2]=d;J[c>>2]=0;J[c+4>>2]=0;vf(b,c);if(!K[a+88|0]){e=a,f=kc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=kc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=kc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}d=J[a+76>>2];c=vc(12);J[c+8>>2]=d;J[c>>2]=0;J[c+4>>2]=0;vf(b,c);a:{if(K[a+88|0]){c=J[a+84>>2];break a}e=a,f=kc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=kc[J[J[a>>2]+44>>2]](a)|0,J[e+ +76>>2]=f;e=a,f=kc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}a=vc(12);J[a+8>>2]=c;J[a>>2]=0;J[a+4>>2]=0;vf(b,a)}function CL(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0,n=0,o=0;o=fc-16|0;fc=o;J[o+12>>2]=0;l=K[J[a+24>>2]+200|0];if((l|0)==12)n=H[a+48|0];else n=(l|0)==219?1:-1;m=a+37|0;l=J[d>>2];n=BL(b,n,m,c,l,e-l|0,o+12|0,j);a:{b:{if((n|0)>0){J[d>>2]=(n-c|0)+l;c=J[o+12>>2];if(c>>>0<=3145727){DL(a,c-2031616|0,f,g,h,i,k);break b}EL(a,(J[b+12>>2]+b|0)+((c&262143)<<1)| +0,(c>>>18|0)-12|0,f,g,h,i,k);b=1;break a}b=0;if((n|0)>=0)break a;H[a+255|0]=c;b=0;if((c|0)>0){f=c&3;j=0;c:{if(c>>>0<4){l=0;break c}g=c&-4;l=0;b=a+222|0;e=0;while(1){H[b+l|0]=K[m|0];H[b+(l|1)|0]=K[m+1|0];H[b+(l|2)|0]=K[m+2|0];H[b+(l|3)|0]=K[m+3|0];l=l+4|0;m=m+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}if(f)while(1){H[(a+l|0)+222|0]=K[m|0];l=l+1|0;m=m+1|0;j=j+1|0;if((f|0)!=(j|0))continue;break}l=J[d>>2];b=c}c=0-n|0;d:{if((c|0)<=(b|0))break d;e=(n^-1)-b|0;f=c-b&3;if(f){m=0;while(1){H[(a+b|0)+222|0]= +K[l|0];b=b+1|0;l=l+1|0;m=m+1|0;if((f|0)!=(m|0))continue;break}}if(e>>>0<3)break d;while(1){e=a+b|0;H[e+222|0]=K[l|0];H[e+223|0]=K[l+1|0];H[e+224|0]=K[l+2|0];H[e+225|0]=K[l+3|0];l=l+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}}J[d>>2]=l;H[a+254|0]=c}b=1}fc=o+16|0;return b}function GV(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;h=fc-32|0;fc=h;a:{b:{c:{d=J[a+8>>2];d:{if((d|0)<=0|J[a+12>>2]<=0)break d;g=J[a+32>>2];if((g|0)<=0)break d;if(J[a+36>>2]>0)break c}a=Qc(h+8|0,2395085,2385707, +211,2425300,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=g;e=d;e:{if(!(b|c))break e;if((b|0)>0){f=b;e=c;if((e|0)>0)break e}a=Qc(h+8|0,2387E3,2385707,217,2425300,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=0;J[a+16>>2]=0;b=f<<1;if((e|0)>(b|0)){while(1){c=c+1|0;d=d+1>>1;f=b;b=b<<1;if((e|0)>(b|0))continue;break}J[a+16>>2]=c}J[a+24>>2]=d;c=J[a+52>>2];if(!c){xe(a+56|0,g,4);g=J[a+32>>2];d=J[a+24>>2];c=J[a+52>>2]}a=e<<4;i=((a+f|0)/ +(b|0)|0)-8|0;b=i;if((g|0)>0){j=(d<<4)-16|0;e=(f|0)/2|0;d=0;while(1){J[(d<<2)+c>>2]=(b|0)<(j|0)?b:j;e=a+e|0;k=(e|0)/(f|0)|0;e=e-P(f,k)|0;b=b+k|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}if(!((a+i|0)==(b|0)|(f|0)!=(g|0))){a=Qc(h+8|0,2389679,2385707,203,2425724,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}fc=h+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function FV(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;h=fc-32|0;fc=h;a:{b:{c:{d:{if(J[a+8>>2]<=0)break d; +d=J[a+12>>2];if((d|0)<=0|J[a+32>>2]<=0)break d;g=J[a+36>>2];if((g|0)>0)break c}a=Qc(h+8|0,2395085,2385707,237,2425339,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=g;e=d;e:{if(!(b|c))break e;if((b|0)>0){f=b;e=c;if((e|0)>0)break e}a=Qc(h+8|0,2387E3,2385707,243,2425339,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=0;J[a+20>>2]=0;b=f<<1;if((e|0)>(b|0)){while(1){c=c+1|0;d=d+1>>1;f=b;b=b<<1;if((e|0)>(b|0))continue;break}J[a+20>>2]=c}J[a+ +28>>2]=d;c=J[a+40>>2];if(!c){xe(a+44|0,g,4);g=J[a+36>>2];d=J[a+28>>2];c=J[a+40>>2]}a=e<<4;i=((a+f|0)/(b|0)|0)-8|0;b=i;if((g|0)>0){j=(d<<4)-16|0;e=(f|0)/2|0;d=0;while(1){J[(d<<2)+c>>2]=(b|0)<(j|0)?b:j;e=a+e|0;k=(e|0)/(f|0)|0;e=e-P(f,k)|0;b=b+k|0;d=d+1|0;if((g|0)!=(d|0))continue;break}}if(!((a+i|0)==(b|0)|(f|0)!=(g|0))){a=Qc(h+8|0,2389679,2385707,203,2425724,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}fc=h+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function FC(a,b, +c,d){var e=0,f=0,g=0,h=0,i=0;h=fc-16|0;fc=h;a:{if(J[a+48>>2]?a:0)break a;e=kc[J[663195]](64)|0;if(!e){J[h>>2]=21470;Hc(0,0,0,0,0,2,2,3,21470,0,0,0,32879,h);break a}J[e>>2]=0;J[e+4>>2]=0;J[e+56>>2]=0;J[e+60>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=0;J[e+28>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=14;if(b){f=b;while(1){g=f;f=f+1|0;if(K[g|0])continue;break}f=0;g=g-b|0;b:{if((g|0)<0)break b;i=kc[J[663198]](g+1|0)|0;if(!i){Hc(0, +0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}f=xc(i,b,g);H[g+f|0]=0}J[e+8>>2]=f}if(c){f=c;while(1){b=f;f=b+1|0;if(K[b|0])continue;break}f=0;b=b-c|0;c:{if((b|0)<0)break c;g=kc[J[663198]](b+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break c}f=xc(g,c,b);H[b+f|0]=0}J[e+52>>2]=f}if(d){f=d;while(1){b=f;f=b+1|0;if(K[b|0])continue;break}f=0;b=b-d|0;d:{if((b|0)<0)break d;c=kc[J[663198]](b+1|0)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}f=xc(c,d,b);H[b+f|0]=0}J[e+56>>2]=f}if(a)J[a+48>>2]=e;J[e+32>> +2]=a;e:{if(!J[693393])break e;a=J[693390];if(!a)break e;kc[a|0](e)}f=e}fc=h+16|0;return f}function Zna(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=0;J[a+4>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;I[a+32>>1]=0;J[a+28>>2]=4;H[a+24|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;c=gA(a+88|0);d=gA(a+136|0);e=Ac(a+184|0,0,72);b=a+276|0;J[b>>2]=0;J[b+4>>2]=0;J[a+272>>2]=340552;J[a+ +260>>2]=0;J[a+264>>2]=0;I[a+256>>1]=257;J[a+284>>2]=0;J[a+288>>2]=0;J[a+292>>2]=0;J[a+296>>2]=0;J[699344]=0;ga(2227,a+288|0,2441764,5)|0;f=J[699344];J[699344]=0;a:{b:{c:{d:{if((f|0)!=1){if(H[a+287|0]>=0)break d;J[a+280>>2]=0;b=J[a+276>>2];break c}b=Z()|0;if(H[a+299|0]<0)uc(J[a+288>>2]);if(H[a+287|0]>=0)break b;uc(J[a+276>>2]);break b}H[a+287|0]=0}J[b>>2]=0;I[a+320>>1]=0;J[a+312>>2]=0;J[a+316>>2]=0;J[a+304>>2]=0;J[a+308>>2]=0;J[a+324>>2]=0;J[a+328>>2]=0;J[a+332>>2]=0;J[a+336>>2]=0;J[699344]=0;_(2226, +a+344|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;yk(a+272|0)}je(a+260|0);$m(a+244|0);Ag(a+232|0);$m(a+220|0);$m(a+208|0);$m(a+196|0);$m(e);kk(d);kk(c);ba(b|0);B()}J[a+712>>2]=0;return a|0}function $Cb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{b:{c:{if(!J[a+16>>2])break c;d=K[a+25|0];if(d>>>0>=33)break c;b=-1;if((d|0)!=(J[a+32>>2]-1|0))break b;d=J[c+8>>2];d:{if(d&7)break d;f=a+24|0;e=K[f|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2]; +J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break e}if((bd(c,e)|0)==-1)break d}b=-1;d=J[c+8>>2];if(d&7)break d;e=K[a+13|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;f:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break f}if((bd(c,e)|0)==-1)break d}b=-1;if(Kh(c,J[a+16>>2]))break d;d=J[c+8>>2];if(d&7)break d;e=K[a+20|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>> +2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;g:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break g}if((bd(c,e)|0)==-1)break d}b=Eba(c,H[a+12|0]&1,f)?-1:0}return b|0}fa(208470,207976,612,208874);B()}fa(208569,207976,613,208874);B()}J[c+8>>2]=d|4;return-1}function $sa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=fc-3328|0;fc=f;J[a+72>>2]=0;J[a+76>>2]=0;FA(a+80|0);J[a+16>>2]=0;vd(a+20|0,0);FA(a+24|0);e=lV(f);J[e+3320>>2]=0;J[e+3312>>2]=0;J[e+3316>> +2]=0;J[e>>2]=2433320;J[699344]=0;da(5680,e|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)==1)break c;J[e+3320>>2]=d;J[e+3316>>2]=c;J[699344]=0;J[f+3324>>2]=0;b=f+3324|0;aa(5145,b|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;da(5684,e|0,b|0);a=J[699344];J[699344]=0;d:{if((a|0)!=1){a=J[f+3324>>2];J[f+3324>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}a= +Z()|0;zc(f+3324|0);break b}J[e>>2]=2433320;a=J[e+3312>>2];J[e+3312>>2]=0;e:{if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[e>>2]=2433388;Hd(e+120|0);Hd(e+96|0);Hd(e+72|0);hd(e+40|0);hd(e+28|0);hd(e+16|0);fc=f+3328|0;return}a=Z()|0}yH(e);ba(a|0);B()}ea(0)|0;Bc();B()}function bTa(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;g=fc-128|0;fc=g;d=J[a+28>>2];a:{if(J[d+ +664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,d,823044,0);break a}d=J[d+116>>2];if((kc[J[J[d>>2]+28>>2]](d)|0)!=(c|0)){d=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,824627,0);break a}d=0;h=J[a+28>>2];e=J[h+380>>2];if(e)kc[J[J[e>>2]+4>>2]](e);J[h+380>>2]=0;d:{if((c|0)<=0)break d;if((c|0)!=1){h=c&-2;while(1){i=(d<<2)+g|0;e=(d<<4)+b|0;f=(J[e>>2]== +1?+J[e+8>>2]:O[e+8>>3])*65536;e:{if(R(f)<2147483648){e=~~f;break e}e=-2147483648}J[i>>2]=e;i=d|1;e=(i<<4)+b|0;f=(J[e>>2]==1?+J[e+8>>2]:O[e+8>>3])*65536;f:{if(R(f)<2147483648){e=~~f;break f}e=-2147483648}J[(i<<2)+g>>2]=e;d=d+2|0;j=j+2|0;if((h|0)!=(j|0))continue;break}}if(!(c&1))break d;c=(d<<2)+g|0;b=(d<<4)+b|0;f=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*65536;g:{if(R(f)<2147483648){b=~~f;break g}b=-2147483648}J[c>>2]=b}xc(J[a+28>>2]+124|0,g,128);b=J[a+8>>2];kc[J[J[b>>2]+116>>2]](b,J[a+28>>2])}fc=g+128|0} +function qna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=fc-16|0;fc=e;J[a+8>>2]=340552;c=a+12|0;J[c>>2]=0;J[c+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[699344]=0;ga(2227,a+24|0,2443472,5)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){if(H[a+23|0]>=0)break b;J[a+16>>2]=0;c=J[a+12>>2];break a}b=Z()|0;if(H[a+35|0]<0)uc(J[a+24>>2]);if(H[a+23|0]<0)uc(J[a+12>>2]);ba(b|0);B()}H[a+23|0]=0}J[c>>2]=0;I[a+56>>1]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>> +2]=0;J[a+72>>2]=0;H[a+133|0]=0;H[a+131|0]=0;H[a+132|0]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;c=a+120|0;J[c>>2]=0;J[a+156>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;I[a+134>>1]=65535;J[a+136>>2]=0;J[a+140>>2]=0;H[a+143|0]=0;H[a+144|0]=0;H[a+145|0]=0;H[a+146|0]=0;d=J[J[b>>2]+52>>2];J[699344]=0;b=_(d|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)c:{J[a>>2]=b;J[e+12>>2]=8;d=J[J[b>>2]+72>>2];J[699344]=0;da(d|0,b|0, +e+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;fc=e+16|0;return a|0}b=Z()|0;Tv(c);yk(a+8|0);ba(b|0);B()}function WU(a){var b=0,c=0,d=0,e=0;b=J[a+1264>>2];if(b){uc(b);J[a+1264>>2]=0}b=J[a+1216>>2];if(b){uc(b);J[a+1216>>2]=0}b=a+944|0;c=J[b+192>>2];if(c){uc(c);J[b+192>>2]=0}c=J[b+116>>2];if(c){d=J[c-4>>2];if(d){d=c+(d<<5)|0;while(1){d=d-32|0;e=J[d+24>>2];if(e){uc(e);J[d+24>>2]=0}if((c|0)!=(d|0))continue;break}}uc(c-8|0);J[b+116>>2]=0}J[b>>2]=2439476;c=J[b+4>>2];if(c){kc[J[J[c>>2]+4>>2]](c);J[b+ +4>>2]=0}Uv(b+20|0,J[b+24>>2]);Jd(a+924|0);Jd(a+920|0);J[a+832>>2]=340552;if(H[a+859|0]<0)uc(J[a+848>>2]);if(H[a+847|0]<0)uc(J[a+836>>2]);J[a+752>>2]=340552;if(H[a+779|0]<0)uc(J[a+768>>2]);if(H[a+767|0]<0)uc(J[a+756>>2]);J[a+384>>2]=340504;a:{b=J[a+412>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+412>>2]=0}Se(a+596|0);b=J[a+504>>2];if(b){J[a+508>>2]=b;uc(b)}if(H[a+431|0]<0)uc(J[a+420>>2]);Jd(a+416|0);J[a+16>>2]=340504;b=J[a+44>>2];if(b){c=J[J[b>> +2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+44>>2]=0}Se(a+228|0);b=J[a+136>>2];if(b){J[a+140>>2]=b;uc(b)}if(H[a+63|0]<0)uc(J[a+52>>2]);Jd(a+48|0);return a}ea(0)|0;Bc();B()}function HHa(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;a=fc-48|0;fc=a;a:{if(!K[c+8|0])break a;e=J[c>>2];if(!e)break a;f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(f)break a;uc(e)}J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;e=bf(2380264);H[c+8|0]=0;J[c>>2]=2380264;J[c+4>>2]=(e|0)<0?-2147483648:e;b:{c:{if(!Th(b)){e= +a+36|0;J[e>>2]=0;J[e+4>>2]=0;H[e+8|0]=0;J[699344]=0;h=$g(b);f=J[699344];J[699344]=0;d:{e:{f:{g:{h:{if((f|0)!=1){while(1){J[699344]=0;f=aa(4975,b|0,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;if(!f)break d;J[699344]=0;f=a+12|0;da(4962,f|0,b|0);g=J[699344];J[699344]=0;if((g|0)==1)break h;J[699344]=0;f=aa(4985,a+24|0,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break g;J[699344]=0;dg(e,f);g=J[699344];J[699344]=0;if((g|0)==1)break f;Rc(f);if(H[a+23|0]<0)uc(J[a+12>>2]);J[699344]=0;f=Qd(e,2381408); +g=J[699344];J[699344]=0;if((g|0)==1)break c;if(!f)continue;break}J[699344]=0;ia(5054,b|0,c|0,d|0,0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}b=Z()|0;break b}b=Z()|0;break b}b=Z()|0;break e}b=Z()|0;Rc(f)}if(H[a+23|0]>=0)break b;uc(J[a+12>>2]);break b}Rc(e)}fc=a+48|0;return}b=Z()|0}Rc(e);ba(b|0);B()}function _2(){var a=0,b=0;b=Dc(1040);if(b){a=Ac(b,0,1040);J[a+1024>>2]=64;J[a+1008>>2]=63;J[a+992>>2]=62;J[a+976>>2]=61;J[a+960>>2]=60;J[a+944>>2]=59;J[a+928>>2]=58;J[a+912>>2]=57;J[a+896>>2]=56;J[a+ +880>>2]=55;J[a+864>>2]=54;J[a+848>>2]=53;J[a+832>>2]=52;J[a+816>>2]=51;J[a+800>>2]=50;J[a+784>>2]=49;J[a+768>>2]=48;J[a+752>>2]=47;J[a+736>>2]=46;J[a+720>>2]=45;J[a+704>>2]=44;J[a+688>>2]=43;J[a+672>>2]=42;J[a+656>>2]=41;J[a+640>>2]=40;J[a+624>>2]=39;J[a+608>>2]=38;J[a+592>>2]=37;J[a+576>>2]=36;J[a+560>>2]=35;J[a+544>>2]=34;J[a+528>>2]=33;J[a+512>>2]=32;J[a+496>>2]=31;J[a+480>>2]=30;J[a+464>>2]=29;J[a+448>>2]=28;J[a+432>>2]=27;J[a+416>>2]=26;J[a+400>>2]=25;J[a+384>>2]=24;J[a+368>>2]=23;J[a+352>>2]= +22;J[a+336>>2]=21;J[a+320>>2]=20;J[a+304>>2]=19;J[a+288>>2]=18;J[a+272>>2]=17;J[a+256>>2]=16;J[a+240>>2]=15;J[a+224>>2]=14;J[a+208>>2]=13;J[a+192>>2]=12;J[a+176>>2]=11;J[a+160>>2]=10;J[a+144>>2]=9;J[a+128>>2]=8;J[a+112>>2]=7;J[a+96>>2]=6;J[a+80>>2]=5;J[a+64>>2]=4;J[a+48>>2]=3;J[a+32>>2]=2;J[a+16>>2]=1;J[a+88>>2]=5;J[a+92>>2]=0;J[a+72>>2]=3;J[a+76>>2]=0;J[a+40>>2]=2;J[a+44>>2]=0;J[a+24>>2]=1;J[a+28>>2]=0}return b}function Dba(a,b,c){var d=0,e=0,f=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{e=J[b+8>>2];l:{if(e& +7)break l;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=e|4;break l}d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;e=K[d|0];break k}e=td(b,1);if((e|0)!=-1)break k}H[a+12|0]=0;H[a|0]=0;break j}d=e&31;H[a|0]=d;H[a+12|0]=(e&224)>>>5;switch(d|0){case 0:break j;case 2:break g;case 1:break h;default:break i}}c=c-1|0;break f}c=J[a+4>>2];break e}c=1;J[a+4>>2]=1;break d}c=c-1>>>1|0}J[a+4>>2]=c}if((c|0)<=0)break c}c=Dc(c<<2);J[a+8>>2]=c;if(!c)break a;if(J[a+ +4>>2]<=0)break b;c=0;while(1){m:{if(!K[a|0]){f=J[b+8>>2];n:{if(f&7)break n;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=f|4;break n}d=J[b+28>>2];J[b+28>>2]=d-1;o:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;d=K[d|0];break o}d=td(b,1);if((d|0)==-1)break n}e=d}J[J[a+8>>2]+(c<<2)>>2]=(e&248)<<8;break m}Wg(b,J[a+8>>2]+(c<<2)|0)}c=c+1|0;if((c|0)>2])continue;break}break b}J[a+8>>2]=0}if(!(K[b+8|0]&3))return 0;a=J[a+8>>2];if(a)uc(a);return-1}fa(209703,207976,988,209745); +B()}function xM(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;a:{b:{if((f|0)==255){if(!e)break b;if((e|0)==255)break a;g=a+3|0;h=K[a|0];i=K[a+1|0];j=K[a+2|0];f=K[a+3|0];c:{if((f|0)==255){H[a|0]=h+(P(d-h|0,e)>>>8|0);d=i+(P(c-i|0,e)>>>8|0)|0;f=j+(P(b-j|0,e)>>>8|0)|0;h=(e-(P(e,255)+255>>>8|0)|0)+255|0;break c}g=e+f-(P(e,f)+255>>>8)|0;H[a+3|0]=g;k=P(d,e);d=P(f,h);g=g&255;h=(k+d-(P(d,e)+255>>>8)>>>0)/(g>>>0)|0;d=P(c,e);c=P(f,i);d=(d+c-(P(c,e)+255>>>8)>>>0)/(g>>>0)|0;c=P(b,e);b=P(f,j);f=(c+b-(P(b,e)+255>>>8)>>> +0)/(g>>>0)|0;g=a}H[a+1|0]=d;H[a+2|0]=f;H[g|0]=h;return}if(!e)break b;e=P(f+1|0,e)>>>8|0;if(!e)break b;if((e|0)==255)break a;g=a+3|0;h=K[a|0];i=K[a+1|0];j=K[a+2|0];f=K[a+3|0];d:{if((f|0)==255){H[a|0]=h+(P(e,d-h|0)>>>8|0);d=i+(P(e,c-i|0)>>>8|0)|0;f=j+(P(e,b-j|0)>>>8|0)|0;h=(e-(P(e,255)+255>>>8|0)|0)+255|0;break d}g=e+f-(P(e,f)+255>>>8)|0;H[a+3|0]=g;k=P(d,e);d=P(f,h);g=g&255;h=(k+d-(P(d,e)+255>>>8)>>>0)/(g>>>0)|0;d=P(c,e);c=P(f,i);d=(d+c-(P(c,e)+255>>>8)>>>0)/(g>>>0)|0;c=P(b,e);b=P(f,j);f=(c+b-(P(b, +e)+255>>>8)>>>0)/(g>>>0)|0;g=a}H[a+1|0]=d;H[a+2|0]=f;H[g|0]=h}return}H[a+1|0]=c;H[a+2|0]=b;H[a+3|0]=255;H[a|0]=d}function bp(a){var b=0;b=J[a>>2];if(b){if(H[b+11|0]<0)uc(J[b>>2]);uc(b);J[a>>2]=0}b=J[a+4>>2];if(b){if(H[b+11|0]<0)uc(J[b>>2]);uc(b);J[a+4>>2]=0}b=J[a+8>>2];if(b){if(H[b+11|0]<0)uc(J[b>>2]);uc(b);J[a+8>>2]=0}b=J[a+12>>2];if(b){if(H[b+11|0]<0)uc(J[b>>2]);uc(b);J[a+12>>2]=0}b=J[a+16>>2];if(b){uc(b);J[a+16>>2]=0}b=J[a+20>>2];if(b){uc(b);J[a+20>>2]=0}b=J[a+24>>2];if(b){uc(b);J[a+24>>2]=0}b= +J[a+28>>2];if(b){uc(b);J[a+28>>2]=0}b=J[a+32>>2];if(b){uc(b);J[a+32>>2]=0}b=J[a+36>>2];if(b){uc(b);J[a+36>>2]=0}b=J[a+40>>2];if(b){uc(b);J[a+40>>2]=0}b=J[a+44>>2];if(b){uc(b);J[a+44>>2]=0}b=J[a+48>>2];if(b){uc(b);J[a+48>>2]=0}b=J[a+52>>2];if(b){uc(b);J[a+52>>2]=0}b=J[a+56>>2];if(b){uc(b);J[a+56>>2]=0}b=J[a+60>>2];if(b){uc(b);J[a+60>>2]=0}b=J[a+64>>2];if(b){uc(b);J[a+64>>2]=0}b=J[a+68>>2];if(b){uc(b);J[a+68>>2]=0}b=J[a+72>>2];if(b){uc(b);J[a+72>>2]=0}b=J[a+76>>2];if(b){uc(b);J[a+76>>2]=0}b=J[a+80>> +2];if(b){uc(b);J[a+80>>2]=0}b=J[a+84>>2];if(b){uc(b);J[a+84>>2]=0}b=J[a+88>>2];if(b){uc(b);J[a+88>>2]=0}b=J[a+92>>2];if(b){uc(b);J[a+92>>2]=0}b=J[a+96>>2];if(b){uc(b);J[a+96>>2]=0}b=J[a+100>>2];if(b){uc(b);J[a+100>>2]=0}}function _vb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){m=e-2|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];g=g+3|0;a:{if(k>>>0>m>>>0)break a;i=k?(k|0)==(m|0)?d:b:c;if(!(!k&(e|0)==1)){if(i>>>0<2)break a;h=1;l=i<<1;while(1){a= +K[f|0];j=K[f+3|0];if((a|0)!=(j|0))a=a+((i+(P(j-a|0,h)<<1)|0)/(l|0)|0)|0;H[g|0]=a;a=K[f+1|0];j=K[f+4|0];if((a|0)!=(j|0))a=a+((i+(P(j-a|0,h)<<1)|0)/(l|0)|0)|0;H[g+1|0]=a;a=K[f+2|0];j=K[f+5|0];if((a|0)!=(j|0))a=a+((i+(P(j-a|0,h)<<1)|0)/(l|0)|0)|0;H[g+2|0]=a;g=g+3|0;h=h+1|0;if((i|0)!=(h|0))continue;break}break a}if(i>>>0<2)break a;h=i-1|0;a=h&3;if(i-2>>>0>=3){i=h&-4;h=0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f|0];H[g+4|0]=K[f+1|0];H[g+5|0]=K[f+2|0];H[g+6|0]=K[f|0];H[g+7| +0]=K[f+1|0];H[g+8|0]=K[f+2|0];H[g+9|0]=K[f|0];H[g+10|0]=K[f+1|0];H[g+11|0]=K[f+2|0];g=g+12|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}h=0;if(!a)break a;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];g=g+3|0;h=h+1|0;if((a|0)!=(h|0))continue;break}}f=f+3|0;k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function Uba(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-176|0;fc=c;d=K[a+12|0];e=K[a+13|0];J[c+168>>2]=K[a+52|0];J[c+164>>2]=e;J[c+160>>2]=d;md(b,207452,c+160|0);d=J[a+16>>2];J[c+144>>2]=0;J[c+ +148>>2]=0;O[c+152>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c+144|0);d=J[a+20>>2];J[c+128>>2]=0;J[c+132>>2]=1;O[c+136>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c+128|0);d=J[a+24>>2];J[c+112>>2]=0;J[c+116>>2]=2;O[c+120>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c+112|0);bi(10,b);d=J[a+28>>2];J[c+96>>2]=1;J[c+100>>2]=0;O[c+104>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c+96|0);d=J[a+32>>2];J[c+80>>2]=1;J[c+84>>2]=1;O[c+88>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c+80|0);d=J[a+36>>2];J[c+64>>2]=1;J[c+68>>2]=2; +O[c+72>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c- -64|0);bi(10,b);d=J[a+40>>2];J[c+48>>2]=2;J[c+52>>2]=0;O[c+56>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c+48|0);d=J[a+44>>2];J[c+32>>2]=2;J[c+36>>2]=1;O[c+40>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c+32|0);d=J[a+48>>2];J[c+16>>2]=2;J[c+20>>2]=2;O[c+24>>3]=+(d|0)*1.52587890625E-5;Yi(b,207556,c+16|0);bi(10,b);d=J[a+60>>2];J[c+4>>2]=J[a+72>>2];J[c>>2]=d;md(b,207726,c);fc=c+176|0}function LQa(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;e=a;while(1){d=J[(i<<2)+b>>2]+c|0;g=K[d+4|0];h=K[d+3|0];f=g+h|0;j=K[d+7|0];k=K[d|0];l=j+k|0;m=f+l|0;n=K[d+6|0];o=K[d+1|0];p=n+o|0;q=K[d+5|0];r=K[d+2|0];d=q+r|0;s=p+d|0;J[e+16>>2]=m-s;J[e>>2]=(m+s|0)-1024;m=p-d|0;d=l-f|0;f=P(m+d|0,181)>>8;J[e+24>>2]=d-f;J[e+8>>2]=d+f;d=h-g|0;g=r-q|0;h=d+g|0;l=o-n|0;d=k-j|0;j=l+d|0;f=P(h-j|0,98)>>8;h=f+(P(h,139)>>8)|0;g=P(g+l|0,181)>>8;k=d-g|0;J[e+20>>2]=h+k;J[e+12>>2]=k-h;d=d+g|0;f=f+(P(j,334)>>8)|0;J[e+28>>2]=d-f;J[e+4>>2]=d+f;e=e+ +32|0;i=i+1|0;if((i|0)!=8)continue;break}b=7;while(1){d=J[a+128>>2];i=J[a+96>>2];c=d+i|0;f=J[a+224>>2];g=J[a>>2];e=f+g|0;h=c+e|0;j=J[a+160>>2];k=J[a+64>>2];l=j+k|0;m=J[a+192>>2];n=J[a+32>>2];o=m+n|0;p=l+o|0;J[a+128>>2]=h-p;J[a>>2]=h+p;c=e-c|0;e=P(c+(o-l|0)|0,181)>>8;J[a+192>>2]=c-e;J[a+64>>2]=c+e;c=i-d|0;d=k-j|0;i=c+d|0;h=n-m|0;c=g-f|0;f=h+c|0;e=P(i-f|0,98)>>8;i=e+(P(i,139)>>8)|0;d=P(d+h|0,181)>>8;g=c-d|0;J[a+160>>2]=i+g;J[a+96>>2]=g-i;c=c+d|0;e=e+(P(f,334)>>8)|0;J[a+224>>2]=c-e;J[a+32>>2]=c+e;c=b; +b=c-1|0;a=a+4|0;if(c)continue;break}}function bK(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=fc-80|0;fc=g;f=1;e=b+1|0;d=Tf(a,b,c);a:{if((d|0)==28){c=Tf(a,e,c)<<8|Tf(a,b+2|0,c);x(0,(c&32768?c|-65536:c)|0);x(1,0);h=+z();e=b+3|0;break a}if((d|0)==29){d=Tf(a,e,c);x(0,(Tf(a,b+2|0,c)<<8|d<<16|Tf(a,b+3|0,c))<<8|Tf(a,b+4|0,c));x(1,0);h=+z();e=b+5|0;break a}if((d|0)==30){b=0;while(1){b:{i=Tf(a,e,c);e=e+1|0;j=i>>4;if((j|0)==15){d=b;break b}H[b+g|0]=K[j+2194368|0];d=64;f=b+1|0;if((f|0)==64)break b;if((j|0)==12){H[f+ +g|0]=45;f=b+2|0}i=i&15;if((i|0)==15){d=f;break b}if((f|0)==64){d=f;break b}H[f+g|0]=K[i+2194368|0];b=f+1|0;if((b|0)==64)break b;if((i|0)==12){H[b+g|0]=45;b=f+2|0}d=b;if((b|0)<64)continue}break}H[d+g|0]=0;f=2;h=qg(g);break a}if(d-32>>>0<=214){x(0,d-139|0);x(1,0);h=+z();break a}if(d-247>>>0<=3){x(0,(Tf(a,e,c)+(d<<8)|0)-63124|0);x(1,0);h=+z();e=b+2|0;break a}if(d-251>>>0<=3){x(0,64148-(Tf(a,e,c)+(d<<8)|0)|0);x(1,0);h=+z();e=b+2|0;break a}c:{if((d|0)==12){x(0,Tf(a,e,c)+3072|0);x(1,0);h=+z();e=b+2|0;break c}x(0, +d|0);x(1,0);h=+z()}f=0}b=J[a+1144>>2];if((b|0)<=48){J[a+1144>>2]=b+1;a=(b<<4)+a|0;O[a+368>>3]=h;J[a+360>>2]=f}fc=g+80|0;return e}function I0a(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;e=fc-32|0;fc=e;a:{f=J[a+4>>2];d=J[a>>2];i=(f-d|0)/12|0;c=i+1|0;if(c>>>0<357913942){g=a+8|0;h=J[g>>2];J[e+28>>2]=g;g=0;h=(h-d|0)/12|0;j=h<<1;h=h>>>0>=178956970?357913941:c>>>0>>0?j:c;if(h){if(h>>>0>=357913942)break a;g=vc(P(h,12))}J[e+12>>2]=g;c=P(i,12)+g|0;J[e+20>>2]=c;J[e+24>>2]=P(h,12)+g;J[e+16>>2]=c; +b:{c:{if(H[b+11|0]>=0){g=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];b=c;break c}d=J[b+4>>2];b=J[b>>2];J[699344]=0;ca(2838,c|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;d=J[a>>2];f=J[a+4>>2];c=J[e+16>>2];b=J[e+20>>2]}g=b+12|0;if((d|0)==(f|0))b=d;else{while(1){f=f-12|0;b=J[f+4>>2];c=c-12|0;J[c>>2]=J[f>>2];J[c+4>>2]=b;J[c+8>>2]=J[f+8>>2];J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if((d|0)!=(f|0))continue;break}d=J[a+4>>2];b=J[a>>2]}J[a>>2]=c;J[e+16>>2]=b;J[a+4>>2]=g;c=J[a+8>>2];J[a+ +8>>2]=J[e+24>>2];J[e+12>>2]=b;J[e+24>>2]=c;if((b|0)!=(d|0)){while(1){a=d-12|0;J[e+20>>2]=a;if(H[d-1|0]<0)uc(J[a>>2]);d=a;if((a|0)!=(b|0))continue;break}d=b}if(d)uc(d);fc=e+32|0;return}a=Z()|0;dM(e+12|0);ba(a|0);B()}eh(a);B()}Pd();B()}function _k(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;a=J[a>>2];j=J[a+4>>2];i=J[a+16>>2];a:{b:{if((i|0)>=0){a=P(c,i);break b}k=j-J[a>>2]|0;a=P(c,i);if((k|0)<(0-a|0))break a}h=a+j|0}h=(b<<2)+h|0;c:{if(f)while(1){xM(h,K[e|0],K[e+1|0],K[e+2|0],K[e+3|0],K[f|0]);e=e+4|0; +h=h+4|0;f=f+1|0;d=d-1|0;if(d)continue;break c}if((g|0)==255)while(1){c=K[e+3|0];d:{if(!c)break d;a=K[e+2|0];g=K[e+1|0];j=K[e|0];if((c|0)==255){H[h+1|0]=g;H[h+2|0]=j;H[h+3|0]=255;H[h|0]=a;break d}b=h+3|0;i=K[h|0];k=K[h+1|0];l=K[h+2|0];f=K[h+3|0];e:{if((f|0)==255){H[h|0]=i+(P(c,a-i|0)>>>8|0);a=(P(c,g-k|0)>>>8|0)+k|0;g=(P(c,j-l|0)>>>8|0)+l|0;i=(c-(P(c,255)+255>>>8|0)|0)+255|0;break e}b=c+f-(P(c,f)+255>>>8)|0;H[h+3|0]=b;m=P(a,c);a=P(f,i);b=b&255;i=(m+a-(P(a,c)+255>>>8)>>>0)/(b>>>0)|0;a=P(f,k);a=(a+P(c, +g)-(P(a,c)+255>>>8)>>>0)/(b>>>0)|0;f=P(f,l);g=(f+P(c,j)-(P(c,f)+255>>>8)>>>0)/(b>>>0)|0;b=h}H[h+1|0]=a;H[h+2|0]=g;H[b|0]=i}e=e+4|0;h=h+4|0;d=d-1|0;if(d)continue;break c}xM(h,K[e|0],K[e+1|0],K[e+2|0],K[e+3|0],g);f=d-1|0;if(!f)break c;while(1){h=h+4|0;xM(h,K[e+4|0],K[e+5|0],K[e+6|0],K[e+7|0],g);e=e+4|0;f=f-1|0;if(f)continue;break}}}function Svb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){m=e-2|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0]; +H[g+3|0]=K[f+3|0];g=g+4|0;a:{if(k>>>0>m>>>0)break a;j=k?(k|0)==(m|0)?d:b:c;if(!(!k&(e|0)==1)){if(j>>>0<2)break a;h=1;l=j<<1;while(1){a=K[f|0];i=K[f+4|0];if((a|0)!=(i|0))a=a+(((P(i-a|0,h)<<1)+j|0)/(l|0)|0)|0;H[g|0]=a;a=K[f+1|0];i=K[f+5|0];if((a|0)!=(i|0))a=a+(((P(i-a|0,h)<<1)+j|0)/(l|0)|0)|0;H[g+1|0]=a;a=K[f+2|0];i=K[f+6|0];if((a|0)!=(i|0))a=a+(((P(i-a|0,h)<<1)+j|0)/(l|0)|0)|0;H[g+2|0]=a;a=K[f+3|0];i=K[f+7|0];if((a|0)!=(i|0))a=a+(((P(i-a|0,h)<<1)+j|0)/(l|0)|0)|0;H[g+3|0]=a;g=g+4|0;h=h+1|0;if((h|0)!= +(j|0))continue;break}break a}if(j>>>0<2)break a;a=j-1|0;l=a&1;if((j|0)!=2){a=a&-2;h=0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f+3|0];H[g+4|0]=K[f|0];H[g+5|0]=K[f+1|0];H[g+6|0]=K[f+2|0];H[g+7|0]=K[f+3|0];g=g+8|0;h=h+2|0;if((a|0)!=(h|0))continue;break}}if(!l)break a;H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f+3|0];g=g+4|0}f=f+4|0;k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function wK(a,b){var c=0,d=0,e=0,f=0,g=0;e=fc-48|0;fc=e;a:{if(J[a+292>>2])break a; +c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Rd(a)}d=Z0(a);g=K[J[J[a+36>>2]+16>>2]];b:{c:{if(!d){c=0;if((g|0)!=58)break b;d=hi(a);if(!d)break b;if(!(!J[a+212>>2]|J[a+172>>2]!=-1)){c=d;break c}J[a+84>>2]=202;J[e+4>>2]=0;J[e+8>>2]=0;J[e>>2]=d;Hc(0,0,0,a,0,3,202,2,d,0,0,0,37641,e);J[a+356>>2]=0;c=d;break c}if((g|0)!=58){c=d;break c}Zd(a);c=Z0(a);if(!c){if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=202;J[e+20>>2]=0;J[e+24>>2]=0;J[e+16>>2]=d;Hc(0,0,0,a,0,3,202,2,d,0,0,0,38207,e+16|0);J[a+356>> +2]=0}c=v1(a);d:{if(!c){d=qu(39197,d,0,0);break d}d=qu(c,d,0,0);kc[J[663199]](c)}c=te(J[a+296>>2],d,-1);if(!d)break c;kc[J[663199]](d);break c}e:{if(K[J[J[a+36>>2]+16>>2]]!=58)break e;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=202;J[e+40>>2]=0;J[e+36>>2]=c;J[e+32>>2]=d;Hc(0,0,0,a,0,3,202,2,d,c,0,0,38175,e+32|0);J[a+356>>2]=0}Zd(a);f=hi(a);f:{if(f){f=qu(f,c,0,0);c=te(J[a+296>>2],f,-1);if(f)break f;break e}f=qu(39197,c,0,0);c=te(J[a+296>>2],f,-1);if(!f)break e}kc[J[663199]](f)}f=d}J[b>>2]=f}fc= +e+48|0;return c}function eM(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;e=fc-32|0;fc=e;a:{f=J[a+4>>2];d=J[a>>2];i=(f-d|0)/12|0;c=i+1|0;if(c>>>0<357913942){g=a+8|0;h=J[g>>2];J[e+28>>2]=g;g=0;h=(h-d|0)/12|0;j=h<<1;h=h>>>0>=178956970?357913941:c>>>0>>0?j:c;if(h){if(h>>>0>=357913942)break a;g=vc(P(h,12))}J[e+12>>2]=g;c=P(i,12)+g|0;J[e+20>>2]=c;J[e+24>>2]=P(h,12)+g;J[e+16>>2]=c;b:{c:{if(H[b+11|0]>=0){g=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];b=c;break c}d=J[b+4>>2];b=J[b>> +2];J[699344]=0;ca(15,c|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;d=J[a>>2];f=J[a+4>>2];c=J[e+16>>2];b=J[e+20>>2]}g=b+12|0;if((d|0)==(f|0))b=d;else{while(1){f=f-12|0;b=J[f+4>>2];c=c-12|0;J[c>>2]=J[f>>2];J[c+4>>2]=b;J[c+8>>2]=J[f+8>>2];J[f>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;if((d|0)!=(f|0))continue;break}d=J[a+4>>2];b=J[a>>2]}J[a>>2]=c;J[e+16>>2]=b;J[a+4>>2]=g;c=J[a+8>>2];J[a+8>>2]=J[e+24>>2];J[e+12>>2]=b;J[e+24>>2]=c;if((b|0)!=(d|0)){while(1){a=d-12|0;J[e+20>>2]=a;if(H[d-1|0]<0)uc(J[a>>2]); +d=a;if((a|0)!=(b|0))continue;break}d=b}if(d)uc(d);fc=e+32|0;return}a=Z()|0;dM(e+12|0);ba(a|0);B()}pD(a);B()}Pd();B()}function Wx(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=fc-1312|0;fc=g;f=J[a+4>>2];j=J[f+492>>2];k=J[j+12>>2];h=J[J[f+128>>2]+52>>2];i=J[f+452>>2];e=a+1388|0;J[e>>2]=J[f+448>>2];J[e+4>>2]=i;e=J[f+444>>2];J[a+1380>>2]=J[f+440>>2];J[a+1384>>2]=e;e=J[f+460>>2];J[a+1396>>2]=J[f+456>>2];J[a+1400>>2]=e;a:{b:{if(!h){e=b<<2;J[c>>2]=J[e+J[f+428>>2]>>2];J[c+4>>2]=J[e+J[f+432>>2]>>2];break b}e= +kc[J[J[h>>2]>>2]](J[h+4>>2],b,c)|0;if(e)break a}c:{if(K[a+70|0]){e=kc[J[k+8>>2]](a,J[c>>2],J[c+4>>2])|0;break c}i=g+656|0;e=i;kc[J[j+24>>2]](e,a,1);l=f;m=f+168|0;f=g+4|0;kc[J[j+28>>2]](l,m,f);J[g+1192>>2]=f;e=kc[J[k+12>>2]](e,J[c>>2],J[c+4>>2])|0;if((e&255)!=164)break c;H[J[a+8>>2]+160|0]=0;H[d|0]=1;e=kc[J[k+12>>2]](i,J[c>>2],J[c+4>>2])|0}if(e|!h)break a;if(!J[J[h>>2]+8>>2]){e=0;break a}c=J[a+32>>2];J[g+8>>2]=0;J[g+4>>2]=((c+(c>>31)|0)+32768&-65536)>>16;c=J[a+40>>2];J[g+12>>2]=(((c>>31)+c|0)+32768& +-65536)>>16;c=J[a+44>>2];J[g+16>>2]=(((c>>31)+c|0)+32768&-65536)>>16;e=kc[J[J[h>>2]+8>>2]](J[h+4>>2],b,0,g+4|0)|0;J[a+32>>2]=J[g+4>>2]<<16;J[a+40>>2]=J[g+12>>2]<<16;J[a+44>>2]=J[g+16>>2]<<16}fc=g+1312|0;return e}function tP(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=Dc(120);if(d){c=sP();J[d+112>>2]=c;if(!c){pn(d);return 0}g=xc(Ac(d,0,112),a,104);J[g+108>>2]=0;b=J[c+8>>2];if(b){d=J[c>>2];if((d|0)>0){while(1){b=J[J[c+8>>2]+4>>2];f=J[b>>2];J[b>>2]=f-1;if((f|0)<=1){d=J[J[b+8>>2]>>2];if(d)kc[d|0](b); +uc(b);d=J[c>>2]}d=d-1|0;a:{if((d|0)<=0){J[c>>2]=d;break a}b=J[c+8>>2];cd(b,b+8|0,d<<3);b=J[c>>2];d=b-1|0;J[c>>2]=d;if((b|0)>1)continue}break}b=J[c+8>>2]}uc(b)}uc(c);f=J[a+112>>2];b:{c:{c=sP();if(!c)break c;d=0;if(J[f>>2]<=0)break b;while(1){a=J[f+8>>2]+(d<<3)|0;j=J[a>>2];h=J[a+4>>2];b=J[c>>2];d:{e:{a=d;f:{if((d|0)<0){a=b;if((b|0)>=0)break f;break e}if((a|0)>(b|0))break e}if(J[c+4>>2]<=(b|0)){i=b+32|0;b=i<<3;e=J[c+8>>2];g:{if(e){b=Yh(e,b);break g}b=Dc(b)}e=-1;if(!b)break d;J[c+4>>2]=i;J[c+8>>2]=b; +b=J[c>>2]}J[h>>2]=J[h>>2]+1;e=b-a|0;if((e|0)>0){b=J[c+8>>2]+(a<<3)|0;cd(b+8|0,b,e<<3);b=J[c>>2]}a=J[c+8>>2]+(a<<3)|0;J[a+4>>2]=h;J[a>>2]=j;J[c>>2]=b+1;e=0;break d}fa(205200,199175,765,206793);B()}if(e)break c;d=d+1|0;if((d|0)>2])continue;break}break b}J[g+112>>2]=0;pn(g);return 0}J[g+112>>2]=c}return g}function Uwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];e=J[a+540>>2];if(!e)e=J[J[a+528>>2]+88>>2];a:{b:{c:{if(K[e+56|0]){if((b| +0)>0)break c;b=0;break a}if((b|0)>0)break b;b=1;break a}while(1){b=K[d+2|0]|K[d+3|0]<<8;j=(b<<8|b>>>8)&65535;b=K[d+4|0]|K[d+5|0]<<8;k=(b<<8|b>>>8)&65535;b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;d:{if(!((b|0)!=L[e+838>>1]|(j|0)!=L[e+840>>1])){f=0;h=0;g=0;i=0;if(L[e+842>>1]==(k|0))break d}h=65535;f=k;g=b;i=j}b=i;g=g<<8|g>>>8;H[c|0]=g;H[c+1|0]=g>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;b=f<<8|f>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=h<<8|h>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;c=c+8|0;d=d+6|0;l=l+1|0;if((l|0)>2])continue;break}b=0;break a}while(1){b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;b=K[d+2|0]|K[d+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;b=K[d+4|0]|K[d+5|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;H[c+6|0]=255;H[c+7|0]=255;c=c+8|0;d=d+6|0;b=1;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=b;return 0}function oT(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;A(+a);b=v(1)|0;v(0)|0;f=b>>>20&2047;a:{if(f-969>>> +0>=63){if(f>>>0<969)return a+1;A(+a);b=v(1)|0;e=v(0)|0;b:{if(f>>>0<1033)break b;c=0;if(!e&(b|0)==-1048576)break a;if(f>>>0>=2047)return a+1;if((b|0)>0|(b|0)>=0){b=fc-16|0;O[b+8>>3]=3.105036184601418E231;return O[b+8>>3]*3.105036184601418E231}if(b>>>0<3230714880)break b;b=fc-16|0;O[b+8>>3]=1.2882297539194267E-231;return O[b+8>>3]*1.2882297539194267E-231}b=b<<1|e>>>31;f=!(e<<1)&(b|0)==-2129002496|b>>>0<2165964800?f:0}c=O[308407];g=c+a;a=a-(g-c);c=a*a;h=c*c*(a*O[308412]+O[308411]);c=c*(a*O[308410]+O[308409]); +a=a*O[308408];A(+g);v(1)|0;b=v(0)|0;d=b<<4&2032;a=h+(c+(a+O[d+2467304>>3]));d=d+2467312|0;e=0+J[d>>2]|0;d=J[d+4>>2]+(b<<13)|0;d=e>>>0>>0?d+1|0:d;if(!f){c:{if(!(b&-2147483648)){x(0,e|0);x(1,d+-1048576|0);c=+z();a=c*a+c;a=a+a;break c}x(0,e|0);x(1,d+1071644672|0);c=+z();g=c*a;a=g+c;if(a<1){b=fc-16|0;J[b+8>>2]=0;J[b+12>>2]=1048576;O[b+8>>3]=O[b+8>>3]*2.2250738585072014E-308;h=a+1;a=h+(g+(c-a)+(a+(1-h)))+-1;a=a==0?0:a}a=a*2.2250738585072014E-308}return a}x(0,e|0);x(1,d|0);c=+z();c=c*a+c}return c}function CI(a, +b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=fc-48|0;fc=e;J[e+32>>2]=13;J[e+16>>2]=13;a:{b:{c:{d:{if(J[Ec(b,d,e+32|0,0)>>2]==8){b=J[e+40>>2];if(J[Ec(kc[J[J[b>>2]+76>>2]](b)|0,785256,e+16|0,0)>>2]==7)break d}yc(e+32|0);yc(e+16|0);break c}J[e>>2]=13;b=J[e+40>>2];b=Ke(kc[J[J[b>>2]+76>>2]](b)|0,785256,e);g=J[a>>2];e:{f:{if(J[b>>2]!=9){f=J[g+4>>2];i=J[e+8>>2];break f}i=J[e+8>>2];g:{d=J[g>>2];f=J[g+4>>2];if((d|0)==(f|0))break g;while(1){if(J[d>>2]==(i|0))break g;d=d+4|0;if((f|0)!=(d|0))continue;break}break f}if((d| +0)==(f|0))break f;yc(e+32|0);yc(e+16|0);f=0;a=e;break e}d=J[g+8>>2];h:{if(d>>>0>f>>>0){J[f>>2]=i;J[g+4>>2]=f+4;break h}j=J[g>>2];h=f-j>>2;b=h+1|0;if(b>>>0>=1073741824)break b;k=h<<2;d=d-j|0;h=d>>1;h=d>>>0>=2147483644?1073741823:b>>>0>>0?h:b;if(h){if(h>>>0>=1073741824)break a;b=vc(h<<2)}else b=0;d=k+b|0;J[d>>2]=i;i=d+4|0;if((f|0)!=(j|0))while(1){d=d-4|0;f=f-4|0;J[d>>2]=J[f>>2];if((f|0)!=(j|0))continue;break}J[g+8>>2]=b+(h<<2);J[g+4>>2]=i;J[g>>2]=d;if(!j)break h;uc(j)}yc(e+32|0);yc(e);f=mB(J[e+24>> +2],c,0,J[a>>2]);a=e+16|0}yc(a)}fc=e+48|0;return f}qj(g);B()}Pd();B()}function VYa(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;e=fc-16|0;fc=e;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[e+12|0]=0;J[e+8>>2]=a;a:{b:{c:{d:{e:{f:{if(b){if(b>>>0>=357913942){J[699344]=0;$(2358,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break a}J[699344]=0;b=P(b,12);d=_(4,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[a+4>>2]=d;J[a>>2]=d;g=b+d|0;J[a+8>>2]=g;f=J[c>>2];h=J[c+4>>2];g:{if((f|0)==(h|0)){b= +b-12|0;Ac(d,0,(b-((b>>>0)%12|0)|0)+12|0);break g}i=h-f|0;b=i>>3;if(b>>>0>=536870912)break f;j=b<<3;while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[699344]=0;b=_(4,i|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[d+4>>2]=b;J[d>>2]=b;J[d+8>>2]=b+j;c=f;while(1){k=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=k;b=b+8|0;c=c+8|0;if((h|0)!=(c|0))continue;break}J[d+4>>2]=b;d=d+12|0;if((g|0)!=(d|0))continue;break}}J[a+4>>2]=g}fc=e+16|0;return a|0}J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[699344]=0;$(2267,d|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break a;b=Z()|0;c=J[d>>2];if(!c)break d;J[d+4>>2]=c;uc(c);J[a+4>>2]=d;break b}b=Z()|0}J[a+4>>2]=d;break b}b=Z()|0}cn(e+8|0);ba(b|0);B()}B()}function Qq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((b|c)<0)break a;f=J[a+4>>2];if(!f|J[a+16>>2]<=(b|0)|J[a+20>>2]<=(c|0))break a;h=J[a+44>>2];b:{if(h){i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);c:{if(!(!K[a+481|0]|(i|0)!=J[a+476>>2])){h=K[a+480|0];break c}H[a+481|0]= +1;J[a+476>>2]=i;g=J[a+48>>2];n=g?g:h;d:{if((n|0)<=0){h=0;break d}l=f+40|0;o=i>>>16&255;p=i>>>8&255;i=i&255;m=2E5;h=0;g=0;while(1){f=K[(k|1)+l|0]-p|0;j=P(f,f);f=K[k+l|0]-i|0;j=j+P(f,f)|0;f=K[(k|2)+l|0]-o|0;f=j+P(f,f)|0;if(!f){h=g;break d}j=f;f=(f|0)<(m|0);m=f?j:m;h=f?g:h;k=k+4|0;g=g+1|0;if((n|0)!=(g|0))continue;break}}H[a+480|0]=h}g=L[a+26>>1];if((g|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=h;break b}f=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,g)>>3)|0;e:switch(g-1|0){case 3:g=4-((b|0)%2<<2)&252;H[f| +0]=K[f|0]&(15<>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;H[g|0]=K[d|0];H[g+1|0]=K[d+1|0];H[g+2|0]=K[d+2|0]}if(!e)break a;yh(a,b,c,K[d+3|0])}}function a1(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{if(!a|(b|0)<=0)break c;while(1){g=e;d=g+a|0;e=H[d|0];h=e&255;d:{if((e|0)>=0){if(e>>>0>=32){e=g+1|0;break d}if(!(!(1<>>0>13)){e=g+1|0;break d}break b}if((h&224)==192){e=g+2| +0;if((e|0)>(b|0))break a;d=K[d+1|0];if((d&192)!=128)break b;d=d&63|h<<6&1984;if(d>>>0>31|(1<>>0<=13:0))break d;break b}if((h&240)==224){e=g+3|0;if((e|0)>(b|0))break a;e:{f=K[d+1|0];if((f&192)==128){d=K[d+2|0];if((d&192)==128)break e}break b}d=d&63|(f<<6&4032|h<<12&61440);f:{if(d>>>0<=255){if(d>>>0>31)break d;if(!(1<>>0>13)break f;break d}if(d>>>0<55296|d-57344>>>0<8190)break d}break b}if((h&248)==240){e=g+4|0;if((e|0)>(b|0))break a;i=K[d+1|0];if((i&192)!=128)break b;f=K[d+2|0]; +if((f&192)!=128)break b;d=K[d+3|0];if((d&192)!=128)break b;f=f<<6&4032|d&63;d=i<<12&258048|h<<18&1835008;f=f|d;g:{if(f>>>0<=255){if(f>>>0>31)break d;if(!(1<>>0>13)break g;break d}if(f>>>0<55296|f-57344>>>0<8190|d-65536>>>0<1048576)break d}break b}e=0-g|0;break c}if((b|0)>(e|0))continue;break}}return e}return 0-g|0}return c?0-g|0:g}function yU(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=1;a:{b:switch(b-a>>3){case 2:d=b-8|0;c=J[d>>2];if(!c)break a;f=J[a>>2];if(M[c+616>>2]>=M[f+616>>2]? +f:0)break a;J[a>>2]=c;J[d>>2]=f;c=J[a+4>>2];f=a;a=b-4|0;J[f+4>>2]=J[a>>2];J[a>>2]=c;return 1;case 3:ht(a,a+8|0,b-8|0);return 1;case 4:bH(a,a+8|0,a+16|0,b-8|0);return 1;case 5:aH(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}d=a+16|0;ht(a,a+8|0,d);c=a+24|0;if((c|0)==(b|0))break a;c:{while(1){f=c;h=J[c>>2];d:{if(!h)break d;g=J[d>>2];if(M[h+616>>2]>=M[g+616>>2]?g:0)break d;j=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;e=c;while(1){k=J[d+4>>2];c=d;J[c>>2]=0;J[c+4>>2]=0;J[e>>2]=g;d=J[e+ +4>>2];J[e+4>>2]=k;e:{if(!d)break e;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break e;kc[J[J[d>>2]+8>>2]](d);Gc(d)}f:{if((a|0)==(c|0)){c=a;break f}e=c;d=c-8|0;g=J[d>>2];if(!g|M[h+616>>2]>2])continue}break}J[c>>2]=h;e=J[c+4>>2];J[c+4>>2]=j;g:{if(!e)break g;c=J[e+4>>2];J[e+4>>2]=c-1;if(c)break g;kc[J[J[e>>2]+8>>2]](e);Gc(e)}i=i+1|0;if((i|0)==8)break c}d=f;c=d+8|0;if((c|0)!=(b|0))continue;break}return 1}e=(f+8|0)==(b|0)}return e}function $1a(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;f=fc- +16|0;fc=f;e=J[a+4>>2];h=J[e+20>>2];d=f+8|0;a:{b:{c:{d:{e:{f:{g=J[e+8>>2];switch(H[g+99|0]-99|0){case 8:break d;case 0:break e;case 7:break f;default:break c}}d=f+8|0;if(K[g+58|0]==1){H[g+58|0]=0;H[f+8|0]=15;d=f+9|0}g:switch(K[g+54|0]){default:H[g+54|0]=0;H[d+2|0]=66;H[d|0]=27;H[d+1|0]=40;d=d+3|0;break;case 0:case 3:break g}H[d|0]=K[h|0];d=d+1|0;break c}if(K[g+58|0]){H[g+58|0]=0;H[f+8|0]=15;e=f+9|0}else e=f+8|0;H[e|0]=K[h|0];d=e+1|0;break c}d=K[e+61|0];if(J[g+64>>2])break b;g=K[e+52|0];if((d|0)==1){if(g){J[e+ +52>>2]=0;H[f+8|0]=15;e=f+9|0}else e=f+8|0;H[e|0]=K[h|0];d=e+1|0;break c}d=f+8|0;if(!g){J[e+52>>2]=1;H[f+8|0]=14;d=f+9|0}H[d|0]=K[h|0];H[d+1|0]=K[h+1|0];d=d+2|0}e=a;a=f+8|0;PL(e,a,d-a|0,b,c);break a}b=J[g+40>>2];i=K[b+61|0];H[b+61|0]=d;j=J[b+20>>2];J[b+20>>2]=h;J[a+4>>2]=b;J[b+56>>2]=J[e+56>>2];q3(a,c);d=J[g+40>>2];J[e+56>>2]=J[d+56>>2];J[a+4>>2]=e;H[d+61|0]=i;J[d+20>>2]=j;if(J[c>>2]!=15)break a;b=K[d+63|0];a=b<<24>>24;if((a|0)>0){xc(e+76|0,d+76|0,b);d=J[g+40>>2];a=K[d+63|0]}H[e+63|0]=a;H[d+63|0]= +0}fc=f+16|0}function uyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[J[a+536>>2]+88>>2];d=(J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0)+P(J[d+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];a:{b:switch(K[a+2253|0]-3|0){case 0:if(J[a+588>>2]<=0)break a;while(1){b=K[d|0]|K[d+1|0]<<8;c=(b<<8|b>>>8)&65535;b=K[e|0]|K[e+1|0]<<8;b=c+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8;b=d+2|0;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[e+2|0]|K[e+3|0]<<8;c=g+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]= +c;H[b+1|0]=c>>>8;b=d+4|0;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[e+4|0]|K[e+5|0]<<8;c=g+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;e=e+6|0;d=d+8|0;f=f+1|0;if((f|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){b=K[e|0]|K[e+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8;b=K[e+2|0]|K[e+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d+2|0]=b;H[d+3|0]=b>>>8;b=K[e+4|0]|K[e+5|0]<<8;b=(b<<8|b>>>8)&65535;b=b<< +8|b>>>8;H[d+4|0]=b;H[d+5|0]=b>>>8;e=e+6|0;d=d+8|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function A9a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=0,e=0,f=Q(0),g=Q(0),h=Q(0),i=0;f=Q(b-N[a+248>>2]);g=N[a+4>>2];c=Q(c-N[a+252>>2]);h=N[a+8>>2];b=Q(N[a+264>>2]*Q(Q(f*g)+Q(c*h)));f=Q(Q(Q(g*c)-Q(f*h))*N[a+268>>2]);a:{if(!(((C(b),v(2))&2147483647)>>>0<2139095041&((C(f),v(2))&2147483647)>>>0<=2139095040)){c=Q(b+f);break a}d=(C(f),v(2));if((d|0)==1065353216){c=vT(b);break a}i=d>>>30&2;e=(C(b),v(2));a=i|e>>> +31;b:{e=e&2147483647;c:{if(!e){d:switch(a-2|0){case 0:c=Q(3.1415927410125732);break a;case 1:break d;default:break c}c=Q(-3.1415927410125732);break a}d=d&2147483647;if((d|0)!=2139095040){c=(x(2,(C(b),v(2))&-2147483648|1070141403),D());if(!d|!((e|0)!=2139095040&e>>>0<=d+218103808>>>0))break a;e:{if(i){c=Q(0);if(d>>>0>e+218103808>>>0)break e}c=vT(Q(R(Q(b/f))))}b=c;f:switch(a|0){case 1:c=Q(-b);break a;case 2:c=Q(Q(3.1415927410125732)-Q(b+Q(8.742277657347586E-8)));break a;case 0:break c;default:break f}c= +Q(Q(b+Q(8.742277657347586E-8))+Q(-3.1415927410125732));break a}if((e|0)==2139095040)break b;b=N[(a<<2)+2464192>>2]}c=b;break a}c=N[(a<<2)+2464176>>2]}return Q(Q(+Q(R(c))*.3183098861837907))}function yI(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{if(a){if(!b)break b;J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=J[a+12>>2];c=J[b+24>>2];if(c){d=J[b+16>>2];if(d){c=0;while(1){f=J[(J[b+24>>2]+P(c,52)|0)+44>>2];if(f){uc(f);d=J[b+16>>2]}c=c+1|0;if(d>>>0>c>>>0)continue;break}c=J[b+24>>2]}uc(c); +J[b+24>>2]=0}c=J[a+16>>2];J[b+16>>2]=c;c=ef(P(c,52));J[b+24>>2]=c;if(!c)break a;if(J[b+16>>2]){f=0;while(1){g=P(f,52);c=g+c|0;d=J[a+24>>2]+g|0;e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+48>>2]=J[d+48>>2];e=J[d+44>>2];J[c+40>>2]=J[d+40>>2];J[c+44>>2]=e;e=J[d+36>>2];J[c+32>>2]=J[d+32>>2];J[c+36>>2]=e;e=J[d+28>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=e;e=J[d+20>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=e;e=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=e;c=J[b+24>>2];J[(g+c|0)+44>>2]=0;f=f+1|0;if(f>>>0>2])continue; +break}}J[b+20>>2]=J[a+20>>2];c=J[a+32>>2];J[b+32>>2]=c;if(c){c=ef(c);J[b+28>>2]=c;if(!c){J[b+28>>2]=0;J[b+32>>2]=0;return}xc(c,J[a+28>>2],J[a+32>>2]);return}J[b+28>>2]=0;return}fa(2350020,2350936,171,2355208);B()}fa(2351602,2350936,172,2355208);B()}J[b+16>>2]=0;J[b+24>>2]=0}function xc(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){xb(a|0,b|0,c|0);return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if(!(a&3)){c=a;break b}if(!c){c=a;break b}c=a;while(1){H[c|0]=K[b|0];b=b+1|0;c=c+1|0;if(!(c&3))break b;if(c>>>0>>0)continue; +break}}d=e&-4;c:{if(d>>>0<64)break c;f=d+-64|0;if(f>>>0>>0)break c;while(1){J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=J[b+20>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=J[b+28>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=J[b+36>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=J[b+44>>2];J[c+48>>2]=J[b+48>>2];J[c+52>>2]=J[b+52>>2];J[c+56>>2]=J[b+56>>2];J[c+60>>2]=J[b+60>>2];b=b- -64|0;c=c- -64|0;if(f>>>0>=c>>>0)continue;break}}if(c>>>0>=d>>>0)break a;while(1){J[c>> +2]=J[b>>2];b=b+4|0;c=c+4|0;if(d>>>0>c>>>0)continue;break}break a}if(e>>>0<4){c=a;break a}d=e-4|0;if(d>>>0>>0){c=a;break a}c=a;while(1){H[c|0]=K[b|0];H[c+1|0]=K[b+1|0];H[c+2|0]=K[b+2|0];H[c+3|0]=K[b+3|0];b=b+4|0;c=c+4|0;if(d>>>0>=c>>>0)continue;break}}if(c>>>0>>0)while(1){H[c|0]=K[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}return a}function t5(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;f=J[a+480>>2];b=J[a+88>>2];c=(b|0)==1;J[f+28>>2]=c;l=f,m=kc[J[J[a+4>>2]+8>>2]](a,1,c?766: +256,J[a+120>>2])|0,J[l+24>>2]=m;a:{if(J[a+120>>2]<=0)break a;i=J[f+20>>2];if((b|0)==1)while(1){c=g<<2;b=J[(c+f|0)+32>>2];d=c+J[f+24>>2]|0;J[d>>2]=J[d>>2]+255;h=b+254|0;j=(b<<1)-2|0;e=(h|0)/(j|0)|0;i=(i|0)/(b|0)|0;d=J[c+J[f+24>>2]>>2];b=0;c=0;while(1){if((c|0)>(e|0))while(1){b=b+1|0;e=(h+P(b,510)|0)/(j|0)|0;if((e|0)<(c|0))continue;break}H[c+d|0]=P(b,i);c=c+1|0;if((c|0)!=256)continue;break}h=d+257|0;j=d+256|0;c=d+255|0;e=K[d|0];b=1;while(1){k=d-b|0;H[k|0]=e;H[b+c|0]=K[c|0];H[d+(b^-1)|0]=e;H[b+j|0]= +K[c|0];H[k-2|0]=e;H[b+h|0]=K[c|0];b=b+3|0;if((b|0)!=256)continue;break}g=g+1|0;if((g|0)>2])continue;break a}while(1){c=g<<2;b=J[(c+f|0)+32>>2];d=b+254|0;h=(b<<1)-2|0;e=(d|0)/(h|0)|0;i=(i|0)/(b|0)|0;j=J[c+J[f+24>>2]>>2];b=0;c=0;while(1){if((c|0)>(e|0))while(1){b=b+1|0;e=(d+P(b,510)|0)/(h|0)|0;if((e|0)<(c|0))continue;break}H[c+j|0]=P(b,i);c=c+1|0;if((c|0)!=256)continue;break}g=g+1|0;if((g|0)>2])continue;break}}}function LD(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=fc-16|0;fc=i;d=J[a+ +28>>2];J[i+12>>2]=0;J[c>>2]=0;e=J[a+32>>2];if(e>>>0>2]){J[a+32>>2]=e+1;f=H[e|0]}else f=0;f=f<<24>>24;e=-1;a:{if(!f)break a;h=f&255;if((f|0)<0){e=h<<8&32512;f=J[a+32>>2];if(f>>>0>2]){J[a+32>>2]=f+1;f=H[f|0]}else f=0;h=e|f<<24>>24&255}e=0;if(b>>>0>>0)break a;f=_c(d,2,0,h+1|0,0,i+12|0);e=0;if(J[i+12>>2])break a;J[c>>2]=h;if(h){c=0;d=0;while(1){e=d+1|0;b=(d<<1)+f|0;d=J[a+32>>2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;g=d<<24>>24;j=g&255;b:{if((g|0)<0){c=tf(a)+c|0;I[b>> +1]=c;b=0;d=e;e=j&127;if(!e)break b;while(1){c=tf(a)+c|0;I[(d<<1)+f>>1]=c;d=d+1|0;if(h>>>0<=d>>>0)break b;b=b+1|0;if(e>>>0>b>>>0)continue;break}break b}d=J[a+32>>2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;c=(d<<24>>24&255)+c|0;I[b>>1]=c;b=0;d=e;if(!g)break b;while(1){e=(d<<1)+f|0;g=J[a+32>>2];if(g>>>0>2]){J[a+32>>2]=g+1;g=H[g|0]}else g=0;c=(g<<24>>24&255)+c|0;I[e>>1]=c;d=d+1|0;if(h>>>0<=d>>>0)break b;b=b+1|0;if(j>>>0>b>>>0)continue;break}}if(d>>>0>>0)continue;break}}e=f}fc= +i+16|0;return e}function dva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;J[699344]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2426580;ia(5650,c+12|0,c+16|0,a|0,b|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[c+16>>2]=2426484;b=J[c+28>>2];if(b){H[b|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);b=J[c+12>>2];c:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+16>>2]=0}J[699344]=0;aa(5153,a|0,c+16|0)|0;b=J[699344]; +J[699344]=0;d:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break d;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}break a}a=Z()|0;zc(c+16|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+12>>2];J[c+12>>2]=0;e:{if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)== +1)break a}fc=c+32|0;return a|0}a=Z()|0;rh(c+16|0);ba(a|0);B()}zc(c+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Wm(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=fc-192|0;fc=e;a:{if(!b|!c)break a;b:{if(J[a+256>>2]!=1?a:0)break b;c:{d=H[b|0];if((d|0)<0){if((K[b+1|0]&192)!=128)break c;d=d&255;d:{if((d&224)==224){if((K[b+2|0]&192)!=128)break c;if((d&240)==240){if((d&248)!=240|(K[b+3|0]&192)!=128)break c;d=b+3|0;J[c>>2]=4;b=(K[b+1|0]&63)<<12|(K[b|0]&7)<<18|(K[b+2|0]&63)<<6;break d}d=b+2|0;J[c>>2]=3;b=(K[b+1|0]&63)<< +6|(K[b|0]&15)<<12;break d}d=b+1|0;J[c>>2]=2;b=(K[b|0]&31)<<6}d=b|K[d|0]&63;e:{if(d>>>0<=255){if(d>>>0>31)break a;if(!(1<>>0>13)break e;break a}if(d>>>0<55296|d-57344>>>0<8190|d-65536>>>0<1048576)break a}DC(a,34779,d);break a}break b}f:{g:{if(!a)break g;d=J[a+36>>2];if(!d)break g;f=J[d+20>>2];d=J[d+16>>2];if((f-d|0)>3)break f}d=0;J[c>>2]=0;break a}f=K[d|0];g=K[d+1|0];h=K[d+2|0];J[e+28>>2]=K[d+3|0];J[e+24>>2]=h;J[e+20>>2]=g;J[e+16>>2]=f;d=e+32|0;Wi(d,149,36527,e+16|0);h:{if(J[a+172>>2]== +-1?J[a+212>>2]:0)break h;J[a+84>>2]=9;J[e+4>>2]=0;J[e>>2]=d;Hc(0,0,0,a,0,1,9,3,d,0,0,0,4560,e);J[a+12>>2]=0;if(J[a+288>>2])break h;J[a+212>>2]=1}}J[c>>2]=1;d=K[b|0]}fc=e+192|0;return d}function PPa(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[a+4>>2]=0;J[a>>2]=2319328;a:{b:{if(J[b>>2]==3){e=J[b+8>>2];d=J[e+4>>2];b=zG(d,807172);if(!(K[b+d|0]!=58|(b|0)>=J[e>>2])){d=vc(8);J[699344]=0;b=aa(3350,d|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[a+4>>2]=b;return a|0}g=807608;d=J[e>>2]; +c:{d:{if((d|0)<=0){d=0;i=807608;break d}i=d+807608|0;h=J[e+4>>2];while(1){e:{if((f|0)<4){b=K[g|0];if(b)break e}b=(f|0)!=4;break c}b=K[h|0]-b|0;if(b)break c;g=g+1|0;h=h+1|0;f=f+1|0;if((f|0)!=(d|0))continue;break}}b=0;if((d|0)==4)break c;b=K[i|0]?-1:0}if(!b){d=vc(8);J[699344]=0;c=aa(3349,d|0,808023)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+4>>2]=c;break a}d=vc(8);if(c){J[699344]=0;b=aa(3350,d|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[a+4>>2]=b;if((K[(J[b+4>>2]+J[b>>2]|0)-1|0]& +239)!=47)Kd(b,47);c=J[a+4>>2];b=J[e+4>>2];if(K[b|0]==47){kf(c,b+1|0,J[e>>2]-1|0);return a|0}break a}J[699344]=0;b=aa(3350,d|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[a+4>>2]=b;return a|0}Cc(0,-1,808368,0);return a|0}a=Z()|0;uc(d);ba(a|0);B()}Qh(c,e);return a|0}function Ova(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=fc-16|0;fc=g;J[a>>2]=0;a:{b:{c:{d:{e:{if(!c|!K[c|0])break e;h=-1;if((d|e)<0)h=Yc(c);f:{if((d|0)<0){d=(c+h|0)+d|0;f=c>>>0>d>>>0?c:d;break f}f=c;if(!d)break f; +d=c+d|0;while(1){if(!K[f|0])break f;f=f+1|0;if(d>>>0>f>>>0)continue;break}}g:{if((e|0)<0){c=(c+h|0)+1|0;c=c>>>0>>0?f:c+e|0;break g}if(!e)break e;d=e+f|0;c=f;while(1){if(!K[c|0])break g;c=c+1|0;if(d>>>0>c>>>0)continue;break}}if(c>>>0<=f>>>0)break e;d=J[J[b>>2]+8>>2];J[699344]=0;e=d;d=g+12|0;c=c-f|0;ca(e|0,d|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;b=J[g+12>>2];J[g+12>>2]=0;h:{if(!b)break h;J[699344]=0;d=J[b+ +4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=c+f|0;c=J[J[a>>2]+12>>2];while(1){a=K[f|0];if(a){H[c|0]=a;c=c+1|0;f=f+1|0;if((b|0)!=(f|0))continue}break}H[c|0]=0}fc=g+16|0;return}f=Z()|0;break b}f=Z()|0;zc(g+12|0)}zc(a);ba(f|0);B()}ea(0)|0;Bc();B()}function Cua(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;J[699344]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2426580;ia(5657,c+12|0,c+16| +0,a|0,b|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[c+16>>2]=2426484;b=J[c+28>>2];if(b){H[b|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);b=J[c+12>>2];c:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+16>>2]=0}J[699344]=0;aa(5153,a|0,c+16|0)|0;b=J[699344];J[699344]=0;d:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break d;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break d;J[699344]= +0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}break a}a=Z()|0;zc(c+16|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+12>>2];J[c+12>>2]=0;e:{if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+32|0;return a|0}a=Z()|0;rh(c+16|0);ba(a|0);B()}zc(c+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function R3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];i=P(P(I[c+16>>1],J[b+32>>2]),10033);g=P(I[c>>1],J[b>>2])<<13|1024;h=P(J[b+64>>2],I[c+32>>1]);j=g+P(h,5793)|0;k=(i+j<<2&-8192)+131072|0;l=P(P(I[c+20>>1],J[b+40>>2]),10033);m=P(I[c+4>>1],J[b+8>>2])<<13|1024;n=P(J[b+72>>2],I[c+36>>1]);o=m+P(n,5793)|0;p=l+o>>11;q=k+P(p,5793)|0;r=P(P(I[c+18>>1],J[b+36>>2]),10033);s=P(I[c+2>>1],J[b+4>>2])<<13|1024;c=P(J[b+68>>2],I[c+34>>1]);t=s+P(c,5793)|0;b=P(r+t>>11,10033); +H[f|0]=K[a+(q+b>>>18&1023)|0];H[f+2|0]=K[a+(q-b>>>18&1023)|0];H[f+1|0]=K[a+(P(p,268423870)+k>>>18&1023)|0];b=J[d+4>>2]+e|0;h=(g+P(h,1073730238)<<2&-8192)+131072|0;f=P(n,-11586)+m>>11;g=h+P(f,5793)|0;c=P(P(c,-11586)+s>>11,10033);H[b|0]=K[a+(g+c>>>18&1023)|0];H[b+2|0]=K[a+(g-c>>>18&1023)|0];H[b+1|0]=K[a+(h+P(f,268423870)>>>18&1023)|0];b=J[d+8>>2]+e|0;d=(j-i<<2&-8192)+131072|0;c=o-l>>11;e=d+P(c,5793)|0;f=P(t-r>>11,10033);H[b|0]=K[a+(e+f>>>18&1023)|0];H[b+2|0]=K[a+(e-f>>>18&1023)|0];H[b+1|0]=K[a+(d+P(c, +268423870)>>>18&1023)|0]}function xdb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;a:{if(H[b+11|0]>=0){J[c+40>>2]=J[b+8>>2];d=J[b+4>>2];J[c+32>>2]=J[b>>2];J[c+36>>2]=d;break a}Ve(c+32|0,J[b>>2],J[b+4>>2])}J[c+20>>2]=92;J[c+24>>2]=0;H[c+31|0]=1;J[699344]=0;J[c+8>>2]=47;J[c+12>>2]=0;H[c+19|0]=1;ca(2275,c+32|0,c+20|0,c+8|0);b=J[699344];J[699344]=0;b:{c:{d:{e:{f:{if((b|0)!=1){if(H[c+19|0]<0)uc(J[c+8>>2]);if(H[c+31|0]<0)uc(J[c+20>>2]);J[699344]=0;e=mj(a+8|0,c+32|0);b=J[699344];J[699344]=0;if((b| +0)==1)break c;f=(a+12|0)!=(e|0);if(!f)break d;b=J[e+28>>2];if(b){d=J[J[b>>2]+12>>2];J[699344]=0;_(d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[e+28>>2]=0}d=J[e+4>>2];if(d)break f;d=e;while(1){b=J[d+8>>2];g=J[b>>2]!=(d|0);d=b;if(g)continue;break}break e}b=Z()|0;if(H[c+19|0]<0)uc(J[c+8>>2]);if(H[c+31|0]>=0)break b;uc(J[c+20>>2]);break b}while(1){b=d;d=J[b>>2];if(d)continue;break}}if(J[a+8>>2]==(e|0))J[a+8>>2]=b;J[a+16>>2]=J[a+16>>2]-1;ED(J[a+12>>2],e);if(H[e+27|0]<0)uc(J[e+16>>2]);uc(e)}if(H[c+ +43|0]<0)uc(J[c+32>>2]);fc=c+48|0;return f|0}b=Z()|0}if(H[c+43|0]<0)uc(J[c+32>>2]);ba(b|0);B()}function ncb(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;t=P(e,f);g=+(t>>>0)/65025;if(g>0){r=+(P(d,f)>>>0);k=+(P(c,f)>>>0)/65025;d=K[a+3|0];h=d?+(d>>>0)/255:.00392156862745098;c=K[a|0];n=+K[a+1|0];o=+K[a+2|0]/255;j=+(P(b,f)>>>0)/65025;m=j+j;a:{if(m>>0);s=r/65025;p=n/255;n=1-g;j=k+k;b:{if(j=i){i=p*((j-g)*(1-r)*(3-i/h)+g)+k*m;break b}i=k*m+(p*g+(j-g)*(Y(r)*h-p))}b=t+255|0;r=o*n;k=q/255;n=p*(1-g)+i;j=s+s;c:{if(j>>0<255?b>>>8|0:e;n=n*255+.5;d:{if(n<4294967296&n>=0){b=~~n>>>0;break d}b= +0}H[a+1|0]=b;l=l*255+.5;e:{if(l<4294967296&l>=0){b=~~l>>>0;break e}b=0}H[a+2|0]=b;H[a+3|0]=c+d-(P(c,d)+255>>>8);i=(k*(1-g)+i)*255+.5;f:{if(i<4294967296&i>=0){b=~~i>>>0;break f}b=0}H[a|0]=b}}function LGa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;a:{if(H[b+11|0]>=0){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+8>>2]=J[b+8>>2];break a}Ve(a,J[b>>2],J[b+4>>2])}J[699344]=0;b=_(4,16)|0;d=J[699344];J[699344]=0;b:{c:{d:{e:{if((d|0)!=1){J[c+20>>2]=b;J[c+24>>2]=2;J[c+28>>2]=-2147483644;J[b+8>>2]=0;J[b>>2]= +47;J[b+4>>2]=47;J[699344]=0;J[c+8>>2]=47;J[c+12>>2]=0;H[c+19|0]=1;ca(5130,a|0,c+20|0,c+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;if(H[c+19|0]<0)uc(J[c+8>>2]);if(H[c+31|0]<0)uc(J[c+20>>2]);J[699344]=0;b=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c+20>>2]=b;J[c+24>>2]=2;J[c+28>>2]=-2147483644;J[b+8>>2]=0;J[b>>2]=47;J[b+4>>2]=47;J[699344]=0;J[c+8>>2]=47;J[c+12>>2]=0;H[c+19|0]=1;ca(5130,a|0,c+20|0,c+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;if(H[c+19|0]<0)uc(J[c+8>>2]);if(H[c+ +31|0]<0)uc(J[c+20>>2]);fc=c+32|0;return}b=Z()|0;break b}b=Z()|0;if(H[c+19|0]<0)uc(J[c+8>>2]);if(H[c+31|0]>=0)break b;uc(J[c+20>>2]);break b}b=Z()|0;break b}b=Z()|0;if(H[c+19|0]<0)uc(J[c+8>>2]);if(H[c+31|0]>=0)break b;uc(J[c+20>>2])}if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}function rva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;J[699344]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2425848;ca(5638,c+12|0,c+16|0,b|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[c+16>>2]=2426484;b=J[c+28>> +2];if(b){H[b|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);b=J[c+12>>2];c:{if(b){e=J[J[b>>2]+24>>2];J[699344]=0;ca(e|0,d|0,b|0,2);b=J[699344];J[699344]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+16>>2]=0}J[699344]=0;aa(5153,a|0,c+16|0)|0;b=J[699344];J[699344]=0;d:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break d;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}break a}a=Z()|0;zc(c+16| +0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+12>>2];J[c+12>>2]=0;e:{if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+32|0;return a|0}a=Z()|0;rh(c+16|0);ba(a|0);B()}zc(c+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function AT(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=1;a:{b:switch(b-a>>3){case 2:d=b-8|0;c=J[d>>2];if(!c)break a;f=J[a>>2];if(O[c+32>>3]>3]?0:f)break a;J[a>>2]=c;J[d>>2]=f;c=J[a+4>>2];f=a;a=b-4|0;J[f+4>>2]=J[a>>2];J[a>>2]=c;return 1;case 3:et(a,a+8|0,b-8|0);return 1;case 4:SG(a,a+8|0,a+16|0,b-8|0);return 1;case 5:RG(a,a+8|0,a+16|0,a+24|0,b-8|0);return 1;case 0:case 1:break a;default:break b}d=a+16|0;et(a,a+8|0,d);c=a+24|0;if((c|0)==(b|0))break a;c:{while(1){f=c;h=J[c>>2];d:{if(!h)break d;g=J[d>>2];if(O[h+32>>3]>3]?0:g)break d;j=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;e=c;while(1){k=J[d+4>>2];c=d;J[c>>2]=0;J[c+4>>2]=0;J[e>>2]=g; +d=J[e+4>>2];J[e+4>>2]=k;e:{if(!d)break e;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break e;kc[J[J[d>>2]+8>>2]](d);Gc(d)}f:{if((a|0)==(c|0)){c=a;break f}e=c;d=c-8|0;g=J[d>>2];if(!g|O[h+32>>3]>3])continue}break}J[c>>2]=h;e=J[c+4>>2];J[c+4>>2]=j;g:{if(!e)break g;c=J[e+4>>2];J[e+4>>2]=c-1;if(c)break g;kc[J[J[e>>2]+8>>2]](e);Gc(e)}i=i+1|0;if((i|0)==8)break c}d=f;c=d+8|0;if((c|0)!=(b|0))continue;break}return 1}e=(f+8|0)==(b|0)}return e}function tA(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;J[699344]= +0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2426580;ca(5638,c+12|0,c+16|0,b|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[c+16>>2]=2426484;b=J[c+28>>2];if(b){H[b|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;d=c+16|0;nd(d);b=J[c+12>>2];c:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+16>>2]=0}J[699344]=0;aa(5153,a|0,c+16|0)|0;b=J[699344];J[699344]=0;d:{if((b|0)!=1){b=J[c+16>>2];J[c+16>>2]=0;if(!b)break d;J[699344]=0;d=J[b+4>>2]- +1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}break a}a=Z()|0;zc(c+16|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+12>>2];J[c+12>>2]=0;e:{if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+32|0;return a|0}a=Z()|0;rh(c+16|0);ba(a|0);B()}zc(c+12|0);ba(a|0);B()}ea(0)| +0;Bc();B()}function Xdb(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;var g=0,h=0,i=0,j=0,k=0;g=fc-32|0;fc=g;k=O[J[a+16>>2]+24>>3];O[g+24>>3]=d;O[g+16>>3]=c;O[g+8>>3]=e;O[g>>3]=c;h=kc[J[J[a>>2]+556>>2]](a)|0;ce(h,g+24|0,g+16|0);ce(h,g+8|0,g);c=O[g+24>>3];d=O[g+8>>3];e=k*f/25.4+.5;a:{if(R(e)<2147483648){h=~~e;break a}h=-2147483648}i=h>>>0<=1?1:h;e=+(i|0);O[a+40>>3]=e;if(R(d)<2147483648)h=~~d;else h=-2147483648;if(R(c)<2147483648)j=~~c;else j=-2147483648;c=+(j|0);b:{c:{d:switch(b|0){case 0:d=O[g+16>> +3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;i=J[a+20>>2];e=e*.5;if(R(d)<2147483648)b=~~d;else b=-2147483648;d=e+(+(b|0)+.5)+-.5;Yj(i,c,d);break c;case 1:d=O[g+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;b=i&1;j=J[a+20>>2];e=c;if(R(d)<2147483648)i=~~d;else i=-2147483648;c=+(i|0)+.5;d=b?c:c+-.5;Yj(j,e,d);break c;case 2:break d;default:break b}d=O[g+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;e=e*.5;i=J[a+20>>2];if(R(d)<2147483648)b=~~d;else b=-2147483648; +d=+(b|0)+.5-e+.5;Yj(i,c,d)}_n(J[a+20>>2],+(h+1|0),d);kc[J[J[a>>2]+580>>2]](a)}fc=g+32|0}function Uvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(e){o=e-2|0;q=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];f=a+2|0;g=g+2|0;a:{if(l>>>0>o>>>0)break a;i=l?(l|0)==(o|0)?d:b:c;m=!l&q;if(m){if(i>>>0<2)break a;h=i-1|0;j=h&3;if(i-2>>>0>=3){i=h&-4;h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a| +0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+7|0]=K[a+1|0];g=g+8|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}h=0;if(!j)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];g=g+2|0;h=h+1|0;if((j|0)!=(h|0))continue;break}break a}j=i+1>>>1|0;if(i>>>0>=3){n=j>>>0<=2?2:j;k=1;r=i<<1;while(1){H[g|0]=K[a|0];p=K[a+3|0];h=K[a+1|0];if((p|0)!=(h|0))h=h+((i+(P(p-h|0,k)<<1)|0)/(r|0)|0)|0;H[g+1|0]=h;g=g+2|0;k=k+1|0;if((n|0)!=(k|0))continue;break}}if(i>>>0<=j>>>0)break a;k=m?0:f;m=i<<1;while(1){H[g|0]=K[k|0];h=K[a+1|0];n= +K[k+1|0];if((h|0)!=(n|0))h=h+((i+(P(n-h|0,j)<<1)|0)/(m|0)|0)|0;H[g+1|0]=h;g=g+2|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}l=l+1|0;if((l|0)!=(e|0))continue;break}}return 0}function Naa(a){var b=0,c=0;c=fc-16|0;fc=c;b=QD(3752);a:{if(!b){a=0;break a}J[b+184>>2]=0;J[b+4>>2]=a;J[b>>2]=1381173770;J[b+960>>2]=0;J[b+964>>2]=0;J[b+156>>2]=230;J[b+152>>2]=229;J[b+124>>2]=1E4;J[b+128>>2]=1E4;J[b+116>>2]=8481;J[b+120>>2]=0;J[b+112>>2]=16842753;J[b+104>>2]=-501652180;J[b+108>>2]=1071454040;J[b+96>>2]=-1717986918; +J[b+100>>2]=1073846681;J[b+88>>2]=0;J[b+92>>2]=1072693248;H[b+86|0]=1;a=0;I[b+84>>1]=0;J[b+80>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+160>>2]=0;J[b+164>>2]=0;J[b+168>>2]=0;J[b+172>>2]=0;J[b+176>>2]=0;J[b+180>>2]=0;Ac(b+188|0,0,76);if(Jaa(b,0,1,1,1,0,0,0,0,0,0,0,c+12|0)){kc[J[b+156>>2]](b,3752);break a}a=J[c+12>>2];J[b+372>>2]=0;J[b+376>>2]=0;H[b+370|0]=0;J[b+528>>2]=a;J[b+380>>2]=0;J[b+384>>2]=0;J[b+388>>2]=0;J[b+392>>2]=0;J[b+396>>2]=0;J[b+400>>2]=0;J[b+404>>2]=0;J[b+408>>2]=0;J[b+412>>2]=0;I[b+2420>> +1]=0;J[b+2380>>2]=b;J[b+2376>>2]=1082;J[b+2372>>2]=1083;J[b+2440>>2]=4096;I[b+2436>>1]=0;J[b+2432>>2]=0;J[b+2424>>2]=0;J[b+2428>>2]=100;J[b+2412>>2]=0;J[b+2416>>2]=4096;J[b+2404>>2]=15;J[b+2408>>2]=9;J[b+2396>>2]=9;J[b+2400>>2]=8;SO(b);a=b}fc=c+16|0;return a}function mub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;a:{b:{if(!(K[a+301|0]?K[a+285|0]:0)|(K[a+286|0]|K[a+287|0]))break b;if(K[a+288|0]|K[a+289|0])break b;c:{d:{if(K[a+114|0])e:{f=kc[J[a+152>>2]](36)|0;if(!f)break d;J[f+4>>2]= +1064;J[f>>2]=1065;g=J[a+700>>2];f:{if(g){J[g+8>>2]=f;break f}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=g;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;J[a+2336>>2]=f;J[f+28>>2]=c;if(!c)break e;g=f;f=kc[J[a+152>>2]](c+1|0)|0;J[g+32>>2]=f;if(!f)break d;xc(f,d,c)}f=0;break c}Jc(a,1,0,0);f=1}g:{if(f)break g;h:{if(!J[a+200>>2])break h;g=c+1|0;f=kc[J[a+152>>2]](g)|0;if(!f)break a;if(c)xc(f,d,c);h=kc[J[a+200>>2]](a, +f)|0;kc[J[a+156>>2]](f,g);if(h)break h;Jc(a,904,0,0);return 904}f=Cy(a);if(f)break g;i:{if(!K[a+112|0])break i;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break g;J[J[e>>2]+32>>2]=c;if(!c)break i;b=kc[J[a+152>>2]](c+1|0)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(!b)break a;xc(b,d,c)}f=0}return f|0}Jc(a,1029,0,0);return 1029}Jc(a,1,0,0);return 1}function fT(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;A(+a);e=v(1)|0;c=v(0)|0;h=e>>>16|0;f=e-1072604335|0;if((f|0)==135337|f>>>0<135337){if(!c&(e|0)==1072693248)return 0; +g=O[326135];d=a+-1;A(+d);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);i=+z();j=g*i;b=d*d;k=b*(d*O[326144]+O[326143]);l=j+k;a=b*b;return l+(a*(a*(b*(d*O[326152]+O[326151])+(d*O[326150]+O[326149]))+(b*(d*O[326148]+O[326147])+(d*O[326146]+O[326145])))+((d-i)*g+d*O[326136]+(k+(j-l))))}a:{if(h-32752>>>0<=4294934559){A(+a);f=v(1)|0;if(!(v(0)|f&2147483647)){c=fc-16|0;O[c+8>>3]=-1;return O[c+8>>3]/0}if(!c&(e|0)==2146435072)break a;if(!((h&32752)!=32752&h>>>0<=32767)){a=a-a;return a/a}A(+(a*4503599627370496));e=v(1)|0; +c=v(0)|0;e=e-54525952|0}m=e-1072037888|0;f=(m>>>14&63)<<4;i=O[f+2609232>>3]+ +(m>>20);j=O[326135];a=O[f+2609224>>3];h=0;x(0,c-h|0);x(1,e-((m&-1048576)+(c>>>0>>0)|0)|0);b=a*(+z()-O[f+2610248>>3]-O[f+2610256>>3]);A(+b);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);k=+z();l=j*k;a=i+l;g=b*b;a=a+(g*(g*g*(b*O[326142]+O[326141])+(g*(b*O[326140]+O[326139])+(b*O[326138]+O[326137])))+((b-k)*j+O[326136]*b+(l+(i-a))))}return a}function on(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c| +0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=td(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;f=K[c|0];break d}f=td(a,1);if((f|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;g= +J[a+28>>2];J[a+28>>2]=g-1;e:{if((g|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;g=K[c|0];break e}g=td(a,1);if((g|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break f}a=td(a,1);if((a|0)==-1)break b}c=0;if(!b)break b;J[b>>2]=a<<24|(g<<24|(e<<16&16711680|f<<24)>>>8)>>>8}return c}J[a+8>>2]=d|4;return-1}function _x(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;h=fc-16|0;fc=h;if(e)J[e>>2]=-1;k=(c|0)==-21;l=k?b-21|0:b;m=(c|0)>0?c:0;i=J[a+8>>2];g=J[a>>2];a:{b:{if(g){b=i;while(1){if(!(J[b>>2]!=(l|0)|J[b+4>>2]!=(m|0))){g=f;break b}b=b+12|0;f=f+1|0;if((f|0)!=(g|0))continue;break}}j=g+1|0;b=J[a+4>>2];c:{if(j>>>0>>0)break c;J[h+4>>2]=0;if(b>>>0>=j>>>0)break c;f=b;b=(g&-8)+8|0;i=_c(d,12,f,b,i,h+4|0);J[a+8>>2]=i;f=J[h+4>>2];if(f)break a;J[a+4>>2]=b}J[a>>2]=j;J[(P(j,12)+i|0)-12>>2]=l;b=P(g,12)+i|0;J[b+8>>2]=c>>31&(k?3:1);J[b+ +4>>2]=m}b=J[a+12>>2];d:{e:{if(!b){f:{if(J[a+16>>2]){b=J[a+20>>2];break f}J[h+8>>2]=0;b=_c(d,16,0,8,J[a+20>>2],h+8|0);J[a+20>>2]=b;f=J[h+8>>2];if(f)break a;J[a+16>>2]=8}J[b>>2]=0;J[b+12>>2]=0;J[a+12>>2]=1;break e}b=(J[a+20>>2]+(b<<4)|0)-16|0;if(M[b>>2]>g>>>0)break d}a=J[b+4>>2];J[h+12>>2]=0;c=g+8>>>3|0;a=a+7>>>3|0;if(c>>>0>a>>>0){f=a;a=c+7&1073741816;n=b,o=_c(d,1,f,a,J[b+8>>2],h+12|0),J[n+8>>2]=o;f=J[h+12>>2];if(f)break a;J[b+4>>2]=a<<3}J[b>>2]=g+1}a=J[b+8>>2]+(g>>>3|0)|0;H[a|0]=K[a|0]|128>>>(g&7); +f=0;if(!e)break a;J[e>>2]=g}fc=h+16|0;return f}function Vvb(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(e){o=e-2|0;q=(e|0)==1;while(1){a=f;H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];f=a+2|0;g=g+2|0;a:{if(k>>>0>o>>>0)break a;i=k?(k|0)==(o|0)?d:b:c;h=!k&q;if(h){if(i>>>0<2)break a;h=i-1|0;j=h&3;if(i-2>>>0>=3){i=h&-4;h=0;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];H[g+2|0]=K[a|0];H[g+3|0]=K[a+1|0];H[g+4|0]=K[a|0];H[g+5|0]=K[a+1|0];H[g+6|0]=K[a|0];H[g+ +7|0]=K[a+1|0];g=g+8|0;h=h+4|0;if((i|0)!=(h|0))continue;break}}h=0;if(!j)break a;while(1){H[g|0]=K[a|0];H[g+1|0]=K[a+1|0];g=g+2|0;h=h+1|0;if((j|0)!=(h|0))continue;break}break a}n=h?0:f;j=i+1>>>1|0;if(i>>>0>=3){m=j>>>0<=2?2:j;l=1;r=i<<1;while(1){p=K[n|0];h=K[a|0];if((p|0)!=(h|0))h=h+((i+(P(p-h|0,l)<<1)|0)/(r|0)|0)|0;H[g|0]=h;H[g+1|0]=K[a+1|0];g=g+2|0;l=l+1|0;if((m|0)!=(l|0))continue;break}}if(i>>>0<=j>>>0)break a;l=i<<1;while(1){h=K[a|0];m=K[n|0];if((h|0)!=(m|0))h=h+((i+(P(m-h|0,j)<<1)|0)/(l|0)|0)| +0;H[g|0]=h;H[g+1|0]=K[n+1|0];g=g+2|0;j=j+1|0;if((i|0)!=(j|0))continue;break}}k=k+1|0;if((k|0)!=(e|0))continue;break}}return 0}function jFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;g=vc(352);a:{b:{c:{d:{e:{f:{e=J[b>>2];g:{if(!e){J[d+8>>2]=0;break g}J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break f;b=J[b>>2];J[d+8>>2]=b;if(!b)break g;J[699344]=0;J[b+4>>2]=J[b+4>>2]+1;e=J[699344];J[699344]=0;f=b;if((e|0)==1)break e}J[699344]=0;J[d+12>>2]=f;e=aa(5221, +g|0,d+12|0)|0;b=J[699344];J[699344]=0;h:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break h;J[699344]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break h}break a}f=Z()|0;zc(d+12|0);break d}J[e>>2]=2396224;J[d+8>>2]=0;i:{if(!f)break i;J[699344]=0;b=J[f+4>>2]-1|0;J[f+4>>2]=b;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(b)break i;J[699344]=0;$(5147,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a>> +2]=0;vd(a,e);J[699344]=0;da(5222,e|0,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;zc(a);ba(b|0);B()}f=Z()|0;break c}f=Z()|0}zc(d+8|0)}uc(g);ba(f|0);B()}fc=d+16|0;return}ea(0)|0;Bc();B()}function Zr(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;f=fc-16|0;fc=f;J[f+8>>2]=0;d=vc(P(c,6)+4|0);J[f+12>>2]=d;if((c|0)<=0)b=d;else{while(1){e=J[b>>2];a:{if(e>>>0<=127){H[d|0]=e;d=d+1|0;break a}if(e>>>0<=2047){H[d+1|0]=e&63|128;H[d|0]=e>>>6|192;d=d+2|0;break a}if(e>>>0<=65535){H[d+2|0]=e&63| +128;H[d|0]=e>>>12|224;H[d+1|0]=e>>>6&63|128;d=d+3|0;break a}if(e>>>0<=2097150){H[d+3|0]=e&63|128;H[d|0]=e>>>18|240;H[d+2|0]=e>>>6&63|128;H[d+1|0]=e>>>12&63|128;d=d+4|0;break a}if(e>>>0<=67108862){H[d+4|0]=e&63|128;H[d|0]=e>>>24|248;H[d+3|0]=e>>>6&63|128;H[d+2|0]=e>>>12&63|128;H[d+1|0]=e>>>18&63|128;d=d+5|0;break a}if(e>>>0>2147483646)break a;H[d+5|0]=e&63|128;H[d|0]=e>>>30|252;H[d+4|0]=e>>>6&63|128;H[d+3|0]=e>>>12&63|128;H[d+2|0]=e>>>18&63|128;H[d+1|0]=e>>>24&63|128;d=d+6|0}b=b+4|0;g=g+1|0;if((g| +0)!=(c|0))continue;break}b=J[f+12>>2]}J[f+8>>2]=d-b;H[d|0]=0;c=J[f+8>>2];if(c>>>0<2147483632){d=J[f+12>>2];b:{if(c>>>0<=10){H[a+11|0]=c;break b}e=(c|15)+1|0;b=vc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}h=cd(a,d,c)+c|0,i=0,H[h|0]=i;if(d)uc(d);fc=f+16|0;return}_d(a);B()}function Vdb(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;var g=0,h=0,i=0,j=0,k=0;g=fc-32|0;fc=g;k=O[J[a+16>>2]+24>>3];O[g+24>>3]=c;O[g+16>>3]=d;O[g+8>>3]=c;O[g>>3]=e;h=kc[J[J[a>>2]+556>>2]](a)|0;ce(h,g+24|0,g+16|0);ce(h, +g+8|0,g);c=O[g+16>>3];d=O[g>>3];e=k*f/25.4+.5;a:{if(R(e)<2147483648){h=~~e;break a}h=-2147483648}i=h>>>0<=1?1:h;e=+(i|0);O[a+40>>3]=e;if(R(d)<2147483648)h=~~d;else h=-2147483648;if(R(c)<2147483648)j=~~c;else j=-2147483648;c=+(j|0);b:{c:{d:switch(b|0){case 0:d=O[g+24>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;i=J[a+20>>2];e=e*.5;if(R(d)<2147483648)b=~~d;else b=-2147483648;d=e+(+(b|0)+.5)+-.5;Yj(i,d,c);break c;case 1:d=O[g+24>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]= +0;b=i&1;j=J[a+20>>2];if(R(d)<2147483648)i=~~d;else i=-2147483648;d=+(i|0)+.5;d=b?d:d+-.5;Yj(j,d,c);break c;case 2:break d;default:break b}d=O[g+24>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;e=e*.5;i=J[a+20>>2];if(R(d)<2147483648)b=~~d;else b=-2147483648;d=+(b|0)+.5-e+.5;Yj(i,d,c)}_n(J[a+20>>2],d,+(h+1|0));kc[J[J[a>>2]+580>>2]](a)}fc=g+32|0}function iX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;e=rf(b);c=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];a:{if(c)while(1){if((e| +0)==J[c+12>>2])if(!Qj(c+16|0,b,-1))break a;c=J[c+8>>2];if(c)continue;break}c=vc(40);J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;e=c+16|0;J[e>>2]=0;J[e+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+20>>2]=J[685894];b:{b=J[b>>2];c:{d:{if(b){f=J[J[b>>2]+28>>2];J[699344]=0;ca(f|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;break c}J[d+12>>2]=0}J[699344]=0;aa(5153,e|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break b;J[699344]= +0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b}ea(0)|0;Bc();B()}c=Z()|0;zc(d+12|0)}wc(e);ba(c|0);B()}b=J[c+16>>2];b=J[(b?b+12|0:2743576)>>2];J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=b;J[c+32>>2]=0;J[c+36>>2]=0;b=c+24|0;J[b>>2]=2397928;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;h=c,i=rf(e),J[h+12>>2]=i;Em(a,c)}fc=d+16|0;return c|0}function it(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=J[a>>2];d=K[e+622|0];a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{f= +J[b>>2];g=K[f+622|0];l:{if(g){if(d)break l;d=J[c>>2];if(!K[d+622|0])break d;h=J[f+616>>2];break f}if(d)break k}d=J[c>>2];i=K[d+622|0];h=J[f+616>>2];if(h>>>0>2])break g;if(!i)break j;if(g)break i;break h}d=J[c>>2];if(K[d+622|0])break h;h=J[f+616>>2];break i}e=0;if(g)break a}e=0;if(M[d+616>>2]>=h>>>0)break a}J[b>>2]=d;J[c>>2]=f;e=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=e;d=J[a>>2];c=K[d+622|0];f=J[b>>2];m:{n:{if(K[f+622|0]){if(c)break n;break m}e=1;if(c)break a}e=1;if(M[f+616>>2]>=M[d+616>> +2])break a}c=b+4|0;J[a>>2]=f;J[b>>2]=d;a=a+4|0;break c}if(i){if(g)break f;break e}if(g)break d}if(M[d+616>>2]>=h>>>0)break d}J[a>>2]=d;J[c>>2]=e;c=c+4|0;a=a+4|0;e=1;break b}J[a>>2]=f;J[b>>2]=e;e=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=e;a=J[b>>2];d=K[a+622|0];f=J[c>>2];o:{p:{if(K[f+622|0]){if(d)break p;break o}e=1;if(d)break a}e=1;if(M[f+616>>2]>=M[a+616>>2])break a}J[b>>2]=f;J[c>>2]=a;c=c+4|0;a=b+4|0}e=2}b=J[a>>2];J[a>>2]=J[c>>2];J[c>>2]=b}return e}function gaa(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0; +m=fc-16|0;fc=m;l=ph(a,b);b=ph(a,c);J[m+12>>2]=b;a:{if(!l){c=1045;Jc(a,1045,0,0);break a}if(b){c=1046;Jc(a,1046,0,0);break a}b=e?!f:H[l+31|0];f=(g|0)==1;b:{c:switch(d-1|0){default:c=QO(a,c,0,b<<24>>24,f,h,i,j,k,l,m+12|0);break b;case 0:c=QO(a,c,1,b<<24>>24,f,h,i,j,k,l,m+12|0);break b;case 1:break c}H[l+31|0]=b;d:{if(!h)break d;if(!i){J[l+40>>2]=k;J[l+36>>2]=j;break d}J[l+36>>2]=J[l+36>>2]+j;J[l+40>>2]=J[l+40>>2]+k}e:{if(!c)break e;d=0;e=J[a+692>>2];f:{if(!e){g=1;break f}while(1){b=L[e+28>>1];g=b>>> +0>c>>>0;if(b>>>0<=c>>>0){d=e;break f}e=J[e+12>>2];if(e)continue;break}}e=J[l+12>>2];if((e|0)==(d|0))break e;h=a+692|0;b=J[l+8>>2];g:{if(e){J[e+8>>2]=b;break g}J[a+688>>2]=b}J[(b?b+12|0:h)>>2]=e;h:{if(!g){J[l+12>>2]=d;J[l+8>>2]=J[d+8>>2];J[d+8>>2]=l;e=J[l+8>>2];break h}e=J[a+688>>2];J[l+8>>2]=e;J[a+688>>2]=l}J[(e?e+12|0:h)>>2]=l}I[l+28>>1]=c;if(f)H[J[l+88>>2]+33|0]=0;J[m+12>>2]=l;c=0}if(c)break a;c=0;b=J[m+12>>2];if(!K[b+32|0]|!K[b+31|0])break a;J[a+532>>2]=b;Zh(a,b,0);if(!K[a+497|0])break a;H[a+498| +0]=5}fc=m+16|0;return c}function V6(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;i=J[a+4>>2];if(i){b=J[a+24>>2]+P(b,204)|0;j=J[b+200>>2];l=J[b+204>>2];k=J[a+12>>2];while(1){a=J[k+4>>2];f=(a|0)<=0;a:{if(f)break a;d=J[k>>2];c=d+P(a,40)|0;b=0;a=d;g=0;while(1){e=J[a+16>>2]&32;g=e?g?g:a:g;b=(e>>>5|0)+b|0;a=a+40|0;if(c>>>0>a>>>0)continue;break}a=g;if(b>>>0<=1){if((b|0)==1)l=J[a+36>>2]-Wc(J[a+28>>2],j)|0;if(f)break a;while(1){if((d|0)!=(g|0))n=d,o=Wc(J[d+28>>2],j)+l|0,J[n+36>>2]=o;d=d+40| +0;if(c>>>0>d>>>0)continue;break}break a}while(1){c=a;a=J[a+4>>2];if((g|0)==(a|0))break a;if(K[a+16|0]&32)continue;b=a;while(1){b=J[b+4>>2];if(!(K[b+16|0]&32))continue;break}d=J[c+28>>2];e=J[b+28>>2];b:{if((d|0)<=(e|0)){h=e-d|0;e=c;f=b;break b}h=d-e|0;d=e;e=b;f=c}m=J[f+36>>2];f=J[e+36>>2];c:{if((h|0)<=0){e=65536;break c}e=Cd(m-f|0,h);a=J[c+4>>2]}while(1){c=J[a+28>>2]-d|0;d:{if((c|0)<=0){c=Wc(c,j)+f|0;break d}if((c|0)>=(h|0)){c=Wc(c-h|0,j)+m|0;break d}c=Wc(c,e)+f|0}J[a+36>>2]=c;a=J[a+4>>2];if((b|0)!= +(a|0))continue;break}a=b;if((g|0)!=(a|0))continue;break}}k=k+8|0;i=i-1|0;if(i)continue;break}}}function zI(a,b,c){var d=0,e=0,f=0,g=0;f=J[a+4>>2];g=f+b|0;a:{b:{c:switch(K[a+10|0]-2|0){case 0:d:{e:{f:{f=K[a+9|0];switch(f-8|0){case 8:break e;case 0:break f;default:break a}}e=b+1|0;d=c?b:e;c=c?e:b+2|0;if(g>>>0<=c>>>0)break d;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+2|0;if(g>>>0>c>>>0)continue;break}break d}e=b+2|0;d=c?b:e;c=c?e:b+4|0;if(g>>>0<=c>>>0)break d;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];d=d+2|0; +c=c+4|0;if(g>>>0>c>>>0)continue;break}}H[a+10|0]=1;H[a+11|0]=f;if(K[a+8|0]!=4)break b;H[a+8|0]=0;break b;case 2:break c;default:break a}g:{h:switch(K[a+9|0]-8|0){case 0:d=(c?0:3)+b|0;e=24;c=c?1:4;if((c|0)>=(f|0))break g;c=b+c|0;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];d=d+3|0;c=c+4|0;if(g>>>0>c>>>0)continue;break}break g;case 8:break h;default:break a}d=(c?0:6)+b|0;e=48;c=c?2:8;if((c|0)>=(f|0))break g;c=b+c|0;while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+ +3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];d=d+6|0;c=c+8|0;if(g>>>0>c>>>0)continue;break}}H[a+10|0]=3;H[a+11|0]=e;if(K[a+8|0]!=6)break b;H[a+8|0]=2}J[a+4>>2]=d-b}}function gta(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=fc-3328|0;fc=f;J[a+16>>2]=0;vd(a+20|0,0);FA(a+24|0);e=lV(f);J[e+3320>>2]=0;J[e+3312>>2]=0;J[e+3316>>2]=0;J[e>>2]=2433320;J[699344]=0;da(5680,e|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)==1)break c;J[e+3320>>2]=d;J[e+3316>>2]=c;J[699344]=0;J[f+3324>>2]=0;b=f+3324|0;aa(5145,b| +0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;da(5681,e|0,b|0);a=J[699344];J[699344]=0;d:{if((a|0)!=1){a=J[f+3324>>2];J[f+3324>>2]=0;if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break d}break a}a=Z()|0;zc(f+3324|0);break b}J[e>>2]=2433320;a=J[e+3312>>2];J[e+3312>>2]=0;e:{if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a; +if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}J[e>>2]=2433388;Hd(e+120|0);Hd(e+96|0);Hd(e+72|0);hd(e+40|0);hd(e+28|0);hd(e+16|0);fc=f+3328|0;return}a=Z()|0}yH(e);ba(a|0);B()}ea(0)|0;Bc();B()}function Yqb(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;i=fc-16|0;fc=i;if(!J[692584]){n=2770336,o=EM(),J[n>>2]=o;J[i+12>>2]=b;k=vc(b);f=k;l=i+12|0;if(!(!a|!l)){h=!f;a:{if((b|0)<=0)break a;m=a+b|0;while(1){if(!K[a|0])break a;d=0;b:{c:{if(a>>>0>> +0){g=0;j=0;while(1){b=H[a|0];c=b-65|0;d:{if(c>>>0<26)break d;if(b-97>>>0<=25){c=b-71|0;break d}if(b-48>>>0<=9){c=b+4|0;break d}c=(b|0)==43?62:(b|0)==47?63:-1}b=(c|0)==-1;d=b?d:d+6|0;j=b?j:j<<6|c;g=(g-b|0)+1|0;a=a+1|0;if((g|0)<=3&m>>>0>a>>>0)continue;break}if(!h)break c;h=1;if((d|0)<=7)break b;e=(d>>>3|0)+e|0;break b}if(h){h=1;break b}j=0}g=(d|0)/8|0;b=g+e|0;c=J[l>>2];h=(b|0)>(c|0);if((d|0)<=7)break b;if((b|0)>(c|0)){e=e+g|0;break b}c=j<<24-d;if(g-1>>>0>=3){e=g&-4;d=0;while(1){H[f+3|0]=0;H[f+2|0]= +c;H[f+1|0]=c>>>8;H[f|0]=c>>>16;f=f+4|0;c=0;d=d+4|0;if((e|0)!=(d|0))continue;break}}d=0;e=g&3;if(e)while(1){H[f|0]=c>>>16;c=c<<8;f=f+1|0;d=d+1|0;if((e|0)!=(d|0))continue;break}e=b}if(a>>>0>>0)continue;break}}J[l>>2]=e;c=!h}if(c){a=J[692584];kc[J[J[a>>2]+36>>2]](a,k,J[i+12>>2])}uc(k)}fc=i+16|0}function qDa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a>>2]=2401268;J[a+4>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[699344]=0;b=a+12|0;J[b>>2]=2397928;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;e= +b;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)!=1){J[699344]=0;b=a+28|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2401300;f=b;b=J[699344];J[699344]=0;if((b|0)==1)break h;b=a;J[b+52>>2]=0;J[b+56>>2]=0;J[b+76>>2]=0;J[b+68>>2]=0;J[b+72>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[699344]=0;g=aa(5250,b+52|0,2401320)|0;c=J[699344];J[699344]=0;if((c|0)==1)break g;J[b+80>>2]=0;J[b+84>>2]=0;J[b+104>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[699344]=0;c=aa(5250, +b+80|0,2401320)|0;d=J[699344];J[699344]=0;if((d|0)==1)break f;J[b+108>>2]=0;J[b+112>>2]=0;J[b+132>>2]=0;J[b+124>>2]=0;J[b+128>>2]=0;J[b+116>>2]=0;J[b+120>>2]=0;J[699344]=0;aa(5250,b+108|0,2401320)|0;d=J[699344];J[699344]=0;if((d|0)==1)break e;return b|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;Md(c)}Md(g)}Hd(f)}id(e)}nd(a);ba(b|0);B()}function G_a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{c:{if(!a)break c;d:{d=J[a+52>>2];if(!d|J[d+4>>2]==18)break d;d=J[d+16>> +2];if(!d|J[d+4>>2]!=4)break d;e=J[d+40>>2];if((e|0)==(d+44|0))break b;a=J[d+32>>2];e:{if(!a)break e;f=J[a+80>>2];if(!f)break e;if(!e)break b;while(1){a=J[f+16>>2];if(a)while(1){if(e>>>0<=M[a+4>>2]&e>>>0>=a+20>>>0)break b;a=J[a>>2];if(a)continue;break}f=J[f+20>>2];if(f)continue;break}}a=ZK(e,b,c);break a}f=J[a+8>>2];e=fc-16|0;fc=e;d=kc[J[663195]](60)|0;f:{if(!d){J[e>>2]=22114;Hc(0,0,0,0,0,2,2,3,22114,0,0,0,32879,e);break f}J[d>>2]=0;J[d+4>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+56>>2]=0;J[d+48>>2]=0;J[d+ +52>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=4;J[d+32>>2]=f;if(b){f=0;g:{if((c|0)<0)break g;g=kc[J[663198]](c+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break g}f=xc(g,b,c);H[f+c|0]=0}J[d+40>>2]=f}if(!J[693393])break f;b=J[693390];if(!b)break f;kc[b|0](d)}fc=e+16|0;if(dh(J[a+52>>2],d))break c;Fl(d)}return}a=YK(e,b,c)}J[d+44>>2]=0;J[d+40>>2]=a}function C6a(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;h=fc-16|0;fc=h;k=b+4|0;f=k;d=f;a:{g=J[b+4>>2];b:{c:{if(!g)break c;d=K[c+11|0];f=d<<24>>24>=0;i=f?c:J[c>>2];c=f?d:J[c+4>>2];while(1){d=g;f=K[d+27|0];g=f<<24>>24<0;f=g?J[d+20>>2]:f;l=f>>>0>>0;d:{e:{f:{g:{j=l?f:c;h:{if(j){g=g?J[d+16>>2]:d+16|0;m=dd(i,g,j);if(!m){if(c>>>0>>0)break h;break g}if((m|0)>=0)break g;break h}if(c>>>0>=f>>>0)break f}f=d;g=J[d>>2];if(g)continue;break c}f=dd(g,i,j);if(f)break e}if(l)break d;b=0;break b}if((f|0)<0)break d;b=0;break b}g=J[d+4>>2];if(g)continue; +break}f=d+4|0}c=vc(32);J[h+8>>2]=k;J[h+4>>2]=c;g=c+16|0;H[h+12|0]=0;e=J[e>>2];i:{if(H[e+11|0]>=0){i=J[e+4>>2];J[g>>2]=J[e>>2];J[g+4>>2]=i;J[g+8>>2]=J[e+8>>2];break i}i=J[e+4>>2];e=J[e>>2];J[699344]=0;ca(2838,g|0,e|0,i|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}J[c+8>>2]=d;J[c>>2]=0;J[c+4>>2]=0;J[c+28>>2]=0;J[f>>2]=c;d=J[J[b>>2]>>2];if(d){J[b>>2]=d;c=J[f>>2]}Oc(J[b+4>>2],c);J[b+8>>2]=J[b+8>>2]+1;d=J[h+4>>2];b=1}H[a+4|0]=b;J[a>>2]=d;fc=h+16|0;return}a=Z()|0;j4(h+4|0);ba(a|0);B()}function x5a(a, +b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0;i=O[b>>3];a:{b:{if(i!=O[a+56>>3]|O[a- -64>>3]!=-O[c>>3])break b;if(O[a+72>>3]!=-O[d>>3])break b;k=O[a+80>>3];j=k==e;if(e!=k|O[a+88>>3]!=f)break b;h=0;if(O[a+96>>3]==g)break a}h=J[a+276>>2];if(h){kc[J[J[h>>2]+76>>2]](h,b,c,d,e,f,g)|0;i=O[b>>3]}O[a+56>>3]=i;O[a- -64>>3]=-O[c>>3];i=O[d>>3];O[a+96>>3]=g;O[a+88>>3]=f;O[a+80>>3]=e;O[a+72>>3]=-i;if(!j){d=J[a+304>>2];h=a+308|0;if((d|0)!=(h|0))while(1){J[d+120>>2]=1;c=J[d+4>>2];c:{if(c)while(1){b= +c;c=J[c>>2];if(c)continue;break c}while(1){b=J[d+8>>2];c=J[b>>2]!=(d|0);d=b;if(c)continue;break}}d=b;if((h|0)!=(d|0))continue;break}l=a+316|0;d=J[l>>2];j=a+320|0;if((d|0)!=(j|0))while(1){J[d+120>>2]=1;c=J[d+4>>2];d:{if(c)while(1){b=c;c=J[c>>2];if(c)continue;break d}while(1){b=J[d+8>>2];c=J[b>>2]!=(d|0);d=b;if(c)continue;break}}d=b;if((j|0)!=(d|0))continue;break}ki(a+304|0,J[a+308>>2]);J[a+304>>2]=h;J[a+308>>2]=0;J[a+312>>2]=0;ki(l,J[a+320>>2]);J[a+316>>2]=j;J[a+320>>2]=0;J[a+324>>2]=0}kc[J[J[a>>2]+ +72>>2]](a);h=1}return h|0}function uO(a){var b=0,c=0,d=0,e=0;if(!a)return;Mc(J[a+60>>2]);e=J[a+360>>2];if(e){c=I[a+356>>1];if((c|0)>1]){b=c;while(1){Mc(J[(P(b-c|0,272)+e|0)+268>>2]);c=J[a+360>>2]+P(b-I[a+356>>1]|0,272)|0;J[c+268>>2]=0;Mc(J[c+260>>2]);e=J[a+360>>2];c=I[a+356>>1];J[(e+P(b-c|0,272)|0)+260>>2]=0;b=b+1|0;if((b|0)>1])continue;break}}uc(e);J[a+360>>2]=0}Mc(J[a+372>>2]);Mc(J[a+408>>2]);Mc(J[a+412>>2]);Mc(J[a+432>>2]);Mc(J[a+440>>2]);Mc(J[a+500>>2]);Mc(J[a+504>>2]);Mc(J[a+ +544>>2]);Mc(J[a+516>>2]);if(J[a+552>>2]>0)while(1){Mc(J[(J[a+556>>2]+(d<<4)|0)+12>>2]);d=d+1|0;if((d|0)>2])continue;break}Mc(J[a+556>>2]);Mc(J[a+564>>2]);Mc(J[a+576>>2]);d=0;if(I[a+632>>1]>0)while(1){vs(J[a+636>>2]+P(d,600)|0);d=d+1|0;if((d|0)>1])continue;break}Mc(J[a+636>>2]);Mc(J[a+692>>2]);c=0;b=J[a+656>>2];if(b){if(J[a+652>>2]>0){while(1){Mc(J[b+12>>2]);Mc(J[b+292>>2]);b=b+296|0;c=c+1|0;if((c|0)>2])continue;break}b=J[a+656>>2]}uc(b)}Mc(J[a+672>>2]);Mc(J[a+684>>2]);Mc(J[a+ +680>>2]);Mc(J[a+676>>2]);b=J[a+12>>2];if(b){uc(b);J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}}function E9a(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;e=fc-16|0;fc=e;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[e+12|0]=0;J[e+8>>2]=a;a:{b:{c:{d:{e:{f:{if(b){if(b>>>0>=357913942){J[699344]=0;$(2359,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;break a}J[699344]=0;b=P(b,12);d=_(4,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[a+4>>2]=d;J[a>>2]=d;g=b+d|0;J[a+8>>2]=g;f=J[c>>2];h=J[c+4>>2];g:{if((f| +0)==(h|0)){b=b-12|0;Ac(d,0,(b-((b>>>0)%12|0)|0)+12|0);break g}i=h-f|0;b=i>>2;if(b>>>0>=1073741824)break f;j=b<<2;while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[699344]=0;b=_(4,i|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[d+4>>2]=b;J[d>>2]=b;J[d+8>>2]=b+j;c=f;while(1){N[b>>2]=N[c>>2];b=b+4|0;c=c+4|0;if((h|0)!=(c|0))continue;break}J[d+4>>2]=b;d=d+12|0;if((g|0)!=(d|0))continue;break}}J[a+4>>2]=g}fc=e+16|0;return a|0}J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[699344]=0;$(2269,d|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break a;b=Z()|0;c=J[d>>2];if(!c)break d;J[d+4>>2]=c;uc(c);J[a+4>>2]=d;break b}b=Z()|0}J[a+4>>2]=d;break b}b=Z()|0}cn(e+8|0);ba(b|0);B()}B()}function Vr(a,b){var c=0;a:{if(!a)break a;b:{c:{d:{e:{if((b|0)>=4){f:{g:{h:{i:{j:{k:{l:{c=K[a|0];switch(c-60|0){case 16:break i;case 0:break k;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break e;default:break l}}if(c)break e;b=K[a+1|0];if((b|0)==60)break j;if(b)break b;if(!K[a+2| +0]){c=5;if(K[a+3|0]==60)break a}if(K[a+3|0]|K[a+2|0]!=60)break b;return 7}b=K[a+1|0];if((b|0)==63)break h;if(b)break b;if(K[a+2|0]|K[a+3|0])break g;return 4}if(K[a+2|0]|K[a+3|0])break f;return 8}if(K[a+1|0]!=111|K[a+2|0]!=167)break b;c=6;if(K[a+3|0]!=148)break b;break a}if(K[a+2|0]!=120)break b;c=1;if(K[a+3|0]!=109)break b;break a}if(K[a+3|0]|K[a+2|0]!=63)break b;return 2}if(K[a+2|0])break b;c=3;if(K[a+3|0]!=63)break b;break a}if((b|0)!=3)break d;c=K[a|0]}if((c|0)!=239)break c;if(K[a+1|0]!=187)break b; +c=1;if(K[a+2|0]!=191)break b;break a}if((b|0)<2)break b;c=K[a|0]}m:switch(c-254|0){case 0:if(K[a+1|0]!=255)break b;return 3;case 1:break m;default:break b}c=2;if(K[a+1|0]==254)break a}c=0}return c}function uDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+32>>2]=0;e=a+24|0;J[e>>2]=0;J[e+4>>2]=0;d=-1;a:{c=J[b+8>>2];b:{if(c&7)break b;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2]))break a;d=-1;c=J[b+28>>2];J[b+28>>2]=c-1;c:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break c}c=td(b, +1);if((c|0)==-1)break b}H[a+20|0]=c;c=J[b+8>>2];if(c&7)break b;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2]))break a;d=-1;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break d}c=td(b,1);if((c|0)==-1)break b}H[a+21|0]=c;c=J[b+8>>2];if(c&7)break b;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2]))break a;d=-1;c=J[b+28>>2];J[b+28>>2]=c-1;e:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break e}c=td(b,1);if((c|0)==-1)break b}H[a+ +22|0]=c;f:{g:switch(K[a+20|0]-1|0){case 0:if(!Ti(b,e))break f;break b;case 1:break g;default:break f}c=J[a+16>>2]-3|0;J[a+32>>2]=c;c=Dc(c);J[a+28>>2]=c;if(!c)break b;if((Ai(b,c,J[a+32>>2])|0)!=J[a+32>>2])break b}d=0}return d|0}J[b+8>>2]=c|4;return-1}function VEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(a){c=J[a+200>>2];if(!(c&4))break a;b:{if(!b)break b;if(!(!(J[b+8>>2]&512)|c&512))SW(a,b+60|0);if(J[b+48>>2]>0){e=J[b+56>>2];while(1){g=P(f,28);c=g+e|0;d=J[c>>2];c:{d:{e:{if((d|0)>0){TW(a,d,J[c+ +4>>2],J[c+20>>2],J[c+24>>2],J[c+8>>2]);break e}if((d|0)>=0){UW(a,J[c+4>>2],J[c+8>>2]);c=-2;break d}if((d|0)!=-1)break c;MA(a,J[c+4>>2],J[c+8>>2])}c=-3}e=J[b+56>>2];J[g+e>>2]=c}f=f+1|0;if((f|0)>2])continue;break}}c=J[b+192>>2];if(!c|(c|0)<=0)break b;c=J[b+188>>2];while(1){d=SI(a,c);if(!((d|0)==1|!(K[c+16|0]&8)|!(K[c+3|0]&32|(d|0)==3|H[a+206|0]&1)))XH(a,c,J[c+8>>2],J[c+12>>2]);c=c+20|0;if(c>>>0>2]+P(J[b+192>>2],20)>>>0)continue;break}}J[a+200>>2]=J[a+200>>2]|8;b=fc-16|0;fc=b;if(a){J[a+ +744>>2]=34;J[b+4>>2]=0;J[b+8>>2]=1145980233;hf(a,b+4|0,8);J[a+348>>2]=1229278788;Km(a);Ae(a,b+8|0,4);J[a+744>>2]=130;c=J[a+384>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[b+12|0]=c;H[b+13|0]=c>>>8;H[b+14|0]=c>>>16;H[b+15|0]=c>>>24;hf(a,b+12|0,4)}J[a+200>>2]=J[a+200>>2]|16;fc=b+16|0}return}Ld(a,58571);B()}function ar(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+ +60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=td(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;f=K[c|0];break d}f=td(a,1);if((f|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;g=J[a+28>>2];J[a+28>>2]=g-1;e:{if((g|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;g= +K[c|0];break e}g=td(a,1);if((g|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break f}a=td(a,1);if((a|0)==-1)break b}J[b>>2]=a&255|(g<<8&65280|(f<<16&16711680|e<<24));c=0}return c}J[a+8>>2]=d|4;return-1}function an(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=fc-48|0;fc=c;e=O[b>>3];d=O[a+72>>3]-e;g=d*d;d=O[b+8>>3];h=O[a+80>>3]-d;h=Y(g+ +h*h);e=O[a>>3]-e;g=e*e;e=O[a+8>>3]-d;g=Y(g+e*e);a:{if(!(!(g>1E-12)|!(h>1E-12))){J[c+40>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+28>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c+16>>2]=0;J[c+20>>2]=1072693248;k=1;b:{c:{i=pM(a,c+28|0,b,c+32|0,c,c+16|0);if((i|0)>0)while(1){d=O[J[c+32>>2]+(f<<3)>>3];O[c+16>>3]=d;e=-1;if(d<0|d>1)break c;J[c+44>>2]=0;ah(c,a,c+16|0,c+44|0);e=d;d=O[c>>3]-O[b>>3];j=d*d;d=O[c+8>>3]-O[b+8>>3];if(Y(j+d*d)<=1E-7)break c;f=f+1|0;if((i|0)!=(f|0))continue;break}J[c+28>>2]=1;J[c>>2]=0;J[c+4>>2]=0;J[c+ +16>>2]=0;J[c+20>>2]=1072693248;i=pM(a,c+28|0,b+8|0,c+32|0,c,c+16|0);if((i|0)<=0)break b;f=0;while(1){d=O[J[c+32>>2]+(f<<3)>>3];O[c+16>>3]=d;e=-1;if(d<0|d>1)break c;J[c+44>>2]=0;ah(c,a,c+16|0,c+44|0);e=d;d=O[c>>3]-O[b>>3];j=d*d;d=O[c+8>>3]-O[b+8>>3];if(Y(j+d*d)<=1E-7)break c;f=f+1|0;if((i|0)!=(f|0))continue;break}break b}k=0}a=J[c+32>>2];if(a){J[c+36>>2]=a;uc(a)}if(!k)break a}e=g<=1E-7?0:h<=1E-7?1:-1}fc=c+48|0;return e}function JY(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=fc-784|0;fc=f;a:{d=J[a+200>> +2];if(d&1){b:{if(d&4){fd(a,60480);Vd(a,c);break b}if(d&2)break a;J[a+200>>2]=d|2;d=K[a+401|0];if(!(d&2)){fd(a,60989);Vd(a,c);break b}if(c>>>0>768?1:(c>>>0)%3|0){if((d|0)!=3){fd(a,61067);Vd(a,c);break b}Ld(a,61067);B()}e=256;e=(d|0)==3?1<>>0)/3|0;d=(d|0)>(e|0)?e:d;if((d|0)>0){e=0;g=f+16|0;while(1){h=f+13|0;Dg(a,h,3);Ae(a,h,3);H[g|0]=K[f+13|0];H[g+1|0]=K[f+14|0];H[g+2|0]=K[f+15|0];g=g+3|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}Vd(a,P(d,-3)+c|0);c=f+16|0;c:{if(!a|!b)break c; +d:{e:{if(K[b+25|0]==3){if((d|0)<=1<=0)break e;Ld(a,63352);B()}if(d>>>0>256)break d}Zp(a,b,4096,0);e=zw(a,768);J[a+388>>2]=e;i=b,j=xc(e,c,P(d,3)),J[i+16>>2]=j;I[a+392>>1]=d;I[b+20>>1]=d;J[b+184>>2]=J[b+184>>2]|4096;J[b+8>>2]=J[b+8>>2]|8;break c}fd(a,63352)}if(!(K[b+8|0]&16)|(!b|K[a+401|0]!=3))break b;c=d&65535;if(c>>>0>1]){fd(a,61364);I[a+394>>1]=d}if(c>>>0>=L[b+22>>1])break b;fd(a,61610);I[b+22>>1]=d}fc=f+784|0;return}Ld(a,60297);B()}Ld(a,60625);B()}function Xn(a,b,c){var d= +0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=65535;a:{if((c|0)<=0)break a;j=a+28|0;d=K[a+29|0];g=J[a+44>>2];k=J[a+36>>2];while(1){b:{f=b+h|0;h=h+1|0;f=J[(((d&255)<<10)+k|0)+(K[f|0]<<2)>>2];if((f|0)<0)break b;d=f>>>24|0;i=(f&16777215)+i|0;if((c|0)!=(h|0))continue;break a}break}d=65534;c:{d:switch(f>>>20&15){case 4:e=(f&65535)+i|0;d=L[(e<<1)+g>>1];if((d|0)!=65534)break c;d=g3(j,e);break c;case 0:d=f&65535;break c;case 5:e=(f&65535)+i|0;d=L[(e<<1)+g>>1];if(d>>>0<55296)break c;e=e+1|0;if(d>>>0<=57343){d=(L[(e<<1)+ +g>>1]+(d<<10&1047552)|0)+9216|0;break c}if((d&65534)==57344){d=L[(e<<1)+g>>1];break c}e=65535;f=(d|0)==65535;d=65534;if(!f)break c;break a;case 1:d=(f&1048575)+65536|0;break c;case 2:d=f&65535;break c;case 6:break c;case 3:break d;default:break a}d=(f&1048575)+65536|0}e=65535;if((c|0)!=(h|0))break a;e=d;if((d|0)!=65534)break a;e=65534;a=J[a+224>>2];if(!a)break a;d=fc-16|0;fc=d;J[d+12>>2]=0;if((c|0)<=0)e=65535;else{b=BL(a,-1,b,c,0,0,d+12|0,1);a=J[d+12>>2];e=(b|0)!=(c|0)?65534:a>>>0>=3145728?65534: +a-2031616|0}fc=d+16|0}return e}function Ti(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=td(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;f=K[c|0]; +break d}f=td(a,1);if((f|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;g=J[a+28>>2];J[a+28>>2]=g-1;e:{if((g|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;g=K[c|0];break e}g=td(a,1);if((g|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break f}a=td(a,1);if((a|0)==-1)break b}c= +0;if(!b)break b;J[b>>2]=(f<<8|e<<16|g)<<8|a}return c}J[a+8>>2]=d|4;return-1}function PI(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=O[b+24>>3];f=O[b+40>>3];e=J[c+52>>2];a:{b:{c:switch(J[c>>2]-1|0){case 0:g=J[e+8>>2];if((g|0)<=0)break b;d=(f-d)*.75+d;k=g-1|0;l=J[e>>2];e=0;while(1){i=e<<2;j=J[i+l>>2];if(!(!(d>3])&(e|0)!=(k|0))){PI(a,b,j);a=J[J[J[c+52>>2]>>2]+i>>2];d=O[a+16>>3];if(d>3])O[c+16>>3]=d;d=O[a+24>>3];if(d>3])O[c+24>>3]=d;d=O[a+32>>3];if(d>O[c+32>>3])O[c+32>>3]= +d;d=O[a+40>>3];if(!(d>O[c+40>>3]))break b;O[c+40>>3]=d;return}e=e+1|0;if((g|0)!=(e|0))continue;break}break b;case 1:break a;default:break c}PI(a,b,J[J[e>>2]>>2]);a=J[J[J[c+52>>2]>>2]>>2];d=O[a+16>>3];if(d>3])O[c+16>>3]=d;d=O[a+24>>3];if(d>3])O[c+24>>3]=d;d=O[a+32>>3];if(d>O[c+32>>3])O[c+32>>3]=d;d=O[a+40>>3];if(!(d>O[c+40>>3]))break b;O[c+40>>3]=d}return}h=O[b+16>>3];d:{e:{if(!J[e+8>>2]){O[c+24>>3]=d;O[c+16>>3]=h;O[c+32>>3]=O[b+32>>3];a=c+40|0;break e}if(O[c+16>>3]>h)O[c+16>>3]=h; +if(d>3])O[c+24>>3]=d;d=O[b+32>>3];if(d>O[c+32>>3])O[c+32>>3]=d;if(!(O[c+40>>3]>3]=f}Pn(e,0,b)}function cba(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;l=fc;d=b+1|0;j=l-((d<<1&-4)+15&-16)|0;fc=j;a:{if((b|0)<2)break a;f=(1-c<<2)+a|0;k=d-c>>1;h=c?k:b-k|0;b:{if((h|0)<=0)break b;d=f;e=j;g=h;i=h&7;if(i)while(1){J[e>>2]=J[d>>2];d=d+8|0;e=e+4|0;g=g-1|0;m=m+1|0;if((i|0)!=(m|0))continue;break}if(h>>>0<8)break b;while(1){J[e>>2]=J[d>>2];J[e+4>>2]=J[d+8>>2];J[e+8>>2]=J[d+ +16>>2];J[e+12>>2]=J[d+24>>2];J[e+16>>2]=J[d+32>>2];J[e+20>>2]=J[d+40>>2];J[e+24>>2]=J[d+48>>2];J[e+28>>2]=J[d+56>>2];d=d- -64|0;e=e+32|0;i=g-9|0;g=g-8|0;if(i>>>0<4294967294)continue;break}}e=(b-!c|0)-h|0;c:{if((e|0)<=0)break c;g=0;d=(2-c<<2)+a|0;i=e&7;if(i)while(1){J[f>>2]=J[d>>2];d=d+8|0;f=f+4|0;e=e-1|0;g=g+1|0;if((i|0)!=(g|0))continue;break}if(((c?0:-1)+b|0)+(h^-1)>>>0<7)break c;while(1){J[f>>2]=J[d>>2];J[f+4>>2]=J[d+8>>2];J[f+8>>2]=J[d+16>>2];J[f+12>>2]=J[d+24>>2];J[f+16>>2]=J[d+32>>2];J[f+20>> +2]=J[d+40>>2];J[f+24>>2]=J[d+48>>2];J[f+28>>2]=J[d+56>>2];d=d- -64|0;f=f+32|0;b=e-9|0;e=e-8|0;if(b>>>0<4294967294)continue;break}}if((h|0)<=0)break a;xc((k<<2)+a|0,j,h<<2)}fc=l}function Etb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;e=d+8|0;c=K[b+35|0];a:{if(!(c|K[b+37|0]|(K[b+38|0]|K[b+48|0]))){c=2;break a}H[d+10|0]=c;c=K[b+37|0];if(!(K[b+48|0]|(c|K[b+38|0]))){c=3;break a}H[d+11|0]=c;c=4;if(!(K[b+38|0]|K[b+48|0]))break a;c=J[b+40>>2];c=c<<24| +(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;c=12;if(!K[b+48|0])break a;c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;c=J[b+56>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=J[b+60>>2];c=c<<24|(c&65280)<< +8|(c>>>8&65280|c>>>24);H[d+28|0]=c;H[d+29|0]=c>>>8;H[d+30|0]=c>>>16;H[d+31|0]=c>>>24;c=J[b+64>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+32|0]=c;H[d+33|0]=c>>>8;H[d+34|0]=c>>>16;H[d+35|0]=c>>>24;c=28}return Ce(a,J[b>>2],c,e)|0}function Bdb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+4>>2];b=J[e+68>>2];if(b)while(1){if(!J[b>>2]){f=J[b+8>>2];d=P(f,J[b+4>>2])+d|0;c=P(f,J[b+12>>2])+c|0}b=J[b+44>>2];if(b)continue;break}b=J[e+72>>2];if(b)while(1){if(!J[b>>2]){f=J[b+8>>2];d=(P(f,J[b+4>>2])<<7)+ +d|0;c=(P(f,J[b+12>>2])<<7)+c|0}b=J[b+44>>2];if(b)continue;break}a:{if((c|0)<=0)break a;b=J[e+68>>2];if(b)while(1){if(!J[b>>2]){c=J[b+4>>2];d=J[b+12>>2];b:{if((((c-1>>>0)/(d>>>0)|0)+1|0)<=1E9){J[b+16>>2]=c;break b}J[b+16>>2]=P(d,1E9);c=J[a>>2];J[c+20>>2]=51;kc[J[c>>2]](a);J[b+40>>2]=1;c=J[b+16>>2]}g=b,h=C5(a,1,J[b+8>>2],c),J[g>>2]=h;c=J[e+80>>2];J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+20>>2]=c}b=J[b+44>>2];if(b)continue;break}b=J[e+72>>2];if(!b)break a;while(1){if(!J[b>>2]){c=J[b+4>>2];d=J[b+12>> +2];c:{if((((c-1>>>0)/(d>>>0)|0)+1|0)<=1E9){J[b+16>>2]=c;break c}J[b+16>>2]=P(d,1E9);c=J[a>>2];J[c+20>>2]=51;kc[J[c>>2]](a);J[b+40>>2]=1;c=J[b+16>>2]}g=b,h=H5(a,1,J[b+8>>2],c),J[g>>2]=h;c=J[e+80>>2];J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+20>>2]=c}b=J[b+44>>2];if(b)continue;break}}}function NXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];e=(J[a+4>>2]-c|0)/24|0;d=e+1|0;if(d>>>0<178956971){c=(J[a+8>>2]-c|0)/24|0;f=c<<1;d=c>>>0>=89478485?178956970:d>>>0>>0?f:d;if(d){if(d>>>0>=178956971)break c; +g=vc(P(d,24))}c=P(e,24)+g|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[c+20>>2]=J[b+20>>2];e=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=e;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;d=P(d,24)+g|0;g=c+24|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-24|0;f=J[b+4>>2];c=c-24|0;J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[c+20>>2]=J[b+20>>2];f=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=f;J[b+12>>2]= +0;J[b+16>>2]=0;J[b+20>>2]=0;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=g;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){if(H[b-1|0]<0)uc(J[b-12>>2]);a=b-24|0;if(H[b-13|0]<0)uc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}fu(a);B()}Pd();B()}J[a+8>>2]=d;J[a+4>>2]=g;J[a>>2]=c}if(b)uc(b)}function _aa(a,b,c,d){var e=0,f=0,g=0,h=0;a:{b:{if(!d){if((c|0)<2&(b|0)<=0)break b;c:{if((c|0)<=0)break c;g=a-4|0;f=g+(b<<3)|0;J[a>>2]=J[a>>2]-((J[a+4>>2]+J[((b|0)>0?a+4|0:f)>>2]| +0)+2>>2);if((c|0)==1)break c;d=1;while(1){h=d<<3;e=h+a|0;J[e>>2]=J[e>>2]-((J[((b|0)<(d|0)?f:g+h|0)>>2]+J[((b|0)>(d|0)?e+4|0:f)>>2]|0)+2>>2);d=d+1|0;if((d|0)!=(c|0))continue;break}}if((b|0)<=0)break b;f=((c<<3)+a|0)-8|0;d=0;while(1){g=(c|0)>(d|0);e=(d<<3)+a|0;d=d+1|0;J[e+4>>2]=J[e+4>>2]+(J[((c|0)>(d|0)?(d<<3)+a|0:f)>>2]+J[(g?e:f)>>2]>>1);if((b|0)!=(d|0))continue;break}break b}if(!c&(b|0)==1)break a;if((c|0)>0){f=((b<<3)+a|0)-8|0;d=0;while(1){e=(d<<3)+a|0;g=J[((b|0)>(d|0)?e:f)>>2];d=d+1|0;J[e+4>>2]= +J[e+4>>2]-((J[((b|0)>(d|0)?(d<<3)+a|0:f)>>2]+g|0)+2>>2);if((c|0)!=(d|0))continue;break}}d=1;if((b|0)<=0)break b;g=a-4|0;f=g+(c<<3)|0;J[a>>2]=J[a>>2]+(J[a+4>>2]+J[((c|0)>0?a+4|0:f)>>2]>>1);if((b|0)==1)break b;while(1){h=d<<3;e=h+a|0;J[e>>2]=J[e>>2]+(J[((c|0)<(d|0)?f:g+h|0)>>2]+J[((c|0)>(d|0)?e+4|0:f)>>2]>>1);d=d+1|0;if((d|0)!=(b|0))continue;break}}return}J[a>>2]=J[a>>2]/2}function WVa(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;J[b>>2]=0;a:{if(!J[a+64>>2])break a;e=J[a+20>>2];d=-1;f=J[a+ +24>>2];b:{if((f|0)<=0)break b;while(1){if(J[e+P(c,20)>>2]==1128678944){d=c;break b}c=c+1|0;if((f|0)!=(c|0))continue;break}}c=0;f=P(d,20);e=f+e|0;d=J[e+8>>2];e=J[e+16>>2];if(!((d^2147483647)>=(e|0)&(d|e)>=0&J[a+12>>2]>=(d+e|0)))break a;d=J[a+8>>2];a=f+J[a+20>>2]|0;e=t0(d+J[a+8>>2]|0,J[a+16>>2]);if(!e)break a;d=0;a=0;c:{if(J[e+128>>2]!=3102)break c;d=1;h=J[e+332>>2];if((h|0)>0){f=J[e+344>>2];d=0;if(h>>>0>=4){k=h&-4;while(1){g=d<<1;i=L[g+f>>1];c=(c|0)>(i|0)?c:i;i=L[f+(g|2)>>1];c=(c|0)>(i|0)?c:i;i=L[f+ +(g|4)>>1];c=(c|0)>(i|0)?c:i;g=L[f+(g|6)>>1];c=(c|0)>(g|0)?c:g;d=d+4|0;j=j+4|0;if((k|0)!=(j|0))continue;break}}h=h&3;if(h)while(1){g=L[f+(d<<1)>>1];c=(c|0)>(g|0)?c:g;d=d+1|0;a=a+1|0;if((h|0)!=(a|0))continue;break}d=c+1|0}c=0;a=Gd(d,4);f=Ac(a,0,d<<2);if(J[e+332>>2]<=0)break c;h=J[e+344>>2];while(1){J[f+(L[h+(c<<1)>>1]<<2)>>2]=c;c=c+1|0;if((c|0)>2])continue;break}}J[b>>2]=d;c=a;kc[J[J[e>>2]+4>>2]](e)}return c|0}function UDb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i= +0,j=0,k=0,l=0,m=0;a:{if(!b)break a;i=e-1|0;if(i>>>0>31|!(1<>>0>=24){if((e|0)!=32)break c;gl(a);j=1;if(!d|!c)break a;i=0;l=h?2:0;m=h?0:2;while(1){e=P(f,i)+b|0;k=g?(i^-1)+d|0:i;j=J[a+56>>2]+P(k,J[a+52>>2])|0;h=0;while(1){H[j|0]=K[e+m|0];H[j+1|0]=K[e+1|0];H[j+2|0]=K[e+l|0];yh(a,h,k,K[e+3|0]);e=e+4|0;j=j+3|0;h=h+1|0;if((h|0)!=(c|0))continue;break}j=1;i=i+1|0;if((i|0)!=(d|0))continue;break}break a}Pq(a);if(d)break b;return 1}if(d)break b;return 1}if(g){e= +0;while(1){c=J[a+52>>2];xc(J[a+56>>2]+P(c,(e^-1)+d|0)|0,P(e,f)+b|0,c>>>0>>0?c:f);j=1;e=e+1|0;if((e|0)!=(d|0))continue;break}break a}j=1;e=0;if((d|0)!=1){h=d&-2;c=0;while(1){g=J[a+52>>2];xc(J[a+56>>2]+P(g,e)|0,P(e,f)+b|0,f>>>0>g>>>0?g:f);g=J[a+52>>2];i=e|1;xc(J[a+56>>2]+P(g,i)|0,P(f,i)+b|0,f>>>0>g>>>0?g:f);e=e+2|0;c=c+2|0;if((h|0)!=(c|0))continue;break}}if(!(d&1))break a;c=J[a+56>>2];a=J[a+52>>2];xc(c+P(a,e)|0,P(e,f)+b|0,a>>>0>>0?a:f)}return j|0}function pX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f= +0;f=fc-1024|0;fc=f;c=vc(128);J[699344]=0;d=_(5258,c|0)|0;e=J[699344];J[699344]=0;a:{b:{if((e|0)!=1){J[a>>2]=0;vd(a,d);J[699344]=0;$(5259,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;ma(5260,d|0,0,32,5261,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;while(1){c=J[b>>2];e=J[J[c>>2]+8>>2];J[699344]=0;c=ga(e|0,c|0,f|0,1024)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(!c)break b;e=J[d+76>>2];J[699344]=0;ia(5254,d|0,f|0,e|0,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;J[d+76>> +2]=c+J[d+76>>2];continue}}a=Z()|0;uc(c);ba(a|0);B()}J[699344]=0;b=_(5244,d+20|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(!(J[d+16>>2]!=0|b)){H[d+8|0]=1;if(J[d+84>>2]<0){b=J[d+64>>2];c=J[J[b>>2]+28>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[d+84>>2]=b}b=J[d+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}J[699344]=0;$(5255,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=f+1024|0;return}b=Z()|0;zc(a);ba(b|0);B()} +function zp(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;c=J[a>>2];if(c){uc(c);J[a>>2]=0}a:{b:{c:{d:{c=J[b>>2];switch(c|0){case 1:break c;case 0:break d;default:break b}}J[a+4>>2]=2;b=a;a=Dc(16);J[b>>2]=a;if(!a)return-1;J[a+8>>2]=0;J[a+12>>2]=1072693248;J[a>>2]=0;J[a+4>>2]=0;return 0}J[a+4>>2]=256;c=Dc(2048);J[a>>2]=c;if(!c)return-1;d=J[a+4>>2];if((d|0)<=0)return 0;h=+M[J[b+4>>2]>>2]*.00390625;e=+(d-1|0);a=0;if((d|0)!=1){i=d&-2;b=0;while(1){f=+(a|0)/e;k=c+(a<<3)|0,l=(m=0,n=_e(f,h), +o=f==0,o?m:n),O[k>>3]=l;g=a|1;f=+(g|0)/e;k=c+(g<<3)|0,l=(m=0,n=_e(f,h),o=f==0,o?m:n),O[k>>3]=l;a=a+2|0;b=b+2|0;if((i|0)!=(b|0))continue;break}}if(!(d&1))break a;e=+(a|0)/e;k=c+(a<<3)|0,l=(m=0,n=_e(e,h),o=e==0,o?m:n),O[k>>3]=l;return 0}J[a+4>>2]=c;c=Dc(c<<3);J[a>>2]=c;if(!c)return-1;d=J[a+4>>2];if((d|0)<=0)return 0;b=J[b+4>>2];a=0;if((d|0)!=1){i=d&-2;while(1){O[c+(a<<3)>>3]=+M[b+(a<<2)>>2]/65535;g=a|1;O[c+(g<<3)>>3]=+M[b+(g<<2)>>2]/65535;a=a+2|0;j=j+2|0;if((i|0)!=(j|0))continue;break}}if(!(d&1))break a; +O[c+(a<<3)>>3]=+M[b+(a<<2)>>2]/65535}return 0}function Gub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{b:{c:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break c;if(K[a+289|0])break c;break b}if(K[a+292|0]|(K[a+293|0]|K[a+300|0]))break b;if(K[a+291|0])break b;if(c>>>0>=5)break a;d:{if(K[a+289|0]){f=K[a+336|0];if(!((c|0)==1|(f|0)!=8)|!((c|0)==3|(f|0)!=10))break a;if(!((c|0)==2|(f|0)!=12))break a;if((c|0)==4|(f|0)!=14)break d;break a}if(K[a+286|0]|K[a+287|0]|K[a+288|0]){f=K[a+325|0]; +if(!(f|(c|0)==1))break a;g=(c|0)==3;if(!(g|(f|0)!=2)|!((f|0)!=3|g))break a;if(!((c|0)==2|(f|0)!=4))break a;if((c|0)==4|(f|0)!=6)break d;break a}if(!(c&-5))break d;break a}e:{f:{if(!K[a+112|0])break f;b=kc[J[b+4>>2]](a,b,e)|0;if(b)break e;b=J[e>>2];f=!c;H[b+32|0]=f;if(f)break f;f=K[a+336|0];g:{if(K[a+289|0])break g;f=6;if(!K[a+286|0])break g;f=K[a+325|0]}H[b+33|0]=f;H[b+34|0]=K[d|0];if(c>>>0<2)break f;H[J[e>>2]+35|0]=K[d+1|0];if((c|0)==2)break f;H[J[e>>2]+36|0]=K[d+2|0];if(c>>>0<4)break f;H[J[e>>2]+ +37|0]=K[d+3|0]}b=0}return b|0}Jc(a,1029,0,0);return 1029}Jc(a,1028,0,0);return 1028}function Rtb(a,b){a=a|0;b=b|0;var c=0,d=0;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;d=J[a+428>>2];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18| +0]=c>>>16;H[d+19|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=J[b+56>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+28|0]=c;H[d+29|0]=c>>>8;H[d+30|0]=c>>>16;H[d+31|0]=c>>>24;c=J[b+60>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+32|0]=c;H[d+33|0]=c>>>8;H[d+34|0]=c>>>16;H[d+35|0]=c>>>24;c=J[b+ +64>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+36|0]=c;H[d+37|0]=c>>>8;H[d+38|0]=c>>>16;H[d+39|0]=c>>>24;return Ce(a,J[b>>2],32,d+8|0)|0}function Np(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;A(+a);b=v(1)|0;v(0)|0;a:{b:{b=b>>>20&2047;if(b-969>>>0<63){h=b;break b}if(b>>>0<969)return a+1;if(b>>>0<1033)break b;A(+a);f=v(1)|0;e=0;if(!(v(0)|0)&(f|0)==-1048576)break a;if(b>>>0>=2047)return a+1;if((f|0)<0){b=fc-16|0;O[b+8>>3]=1.2882297539194267E-231;return O[b+8>>3]*1.2882297539194267E-231}b=fc-16| +0;O[b+8>>3]=3.105036184601418E231;return O[b+8>>3]*3.105036184601418E231}c=O[308400];g=O[308399]*a+c;c=g-c;a=c*O[308402]+(c*O[308401]+a);c=a*a;i=c*c*(a*O[308406]+O[308405]);e=c*(a*O[308404]+O[308403]);A(+g);v(1)|0;b=v(0)|0;d=b<<4&2032;a=i+(e+(O[d+2467304>>3]+a));d=d+2467312|0;f=0+J[d>>2]|0;d=J[d+4>>2]+(b<<13)|0;d=f>>>0>>0?d+1|0:d;if(!h){c:{if(!(b&-2147483648)){x(0,f|0);x(1,d-1058013184|0);c=+z();a=(c*a+c)*5.486124068793689E303;break c}x(0,f|0);x(1,d+1071644672|0);c=+z();g=c*a;a=g+c;if(a<1){b=fc- +16|0;J[b+8>>2]=0;J[b+12>>2]=1048576;O[b+8>>3]=O[b+8>>3]*2.2250738585072014E-308;e=a+1;a=e+(g+(c-a)+(a+(1-e)))+-1;a=a==0?0:a}a=a*2.2250738585072014E-308}return a}x(0,f|0);x(1,d|0);c=+z();e=c*a+c}return e}function Vnb(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;i=fc-272|0;fc=i;d=J[b+4>>2];f=J[b>>2];b=J[a>>2];g=J[a+4>>2];J[i+12>>2]=g<<2;J[i+8>>2]=b<<2;e=d<<2;J[i+4>>2]=e;f=f<<2;J[i>>2]=f;k=J[c+208>>2];J[i+16>>2]=k;a=J[c+212>>2];J[i+20>>2]=a;h=g>>6;a:{b:{l=d>>6;j=J[c+176>>2];c:{d:{if((l| +0)<(j|0)){d=a>>8;break d}d=a>>8;if((h|0)<(j|0))break d;if((d|0)>=(j|0))break c}j=J[c+172>>2];if((j|0)<=(l|0)|(h|0)>=(j|0)|(d|0)>=(j|0))break b}J[c+212>>2]=e;J[c+208>>2]=f;break a}d=1;f=(f-(b<<3)|0)+k|0;b=f>>31;g=a+(e-(g<<3)|0)|0;a=g>>31;b=(b^f)-b|0;a=(a^g)-a|0;b=a>>>0>>0?b:a;if(b>>>0>=65)while(1){d=d<<1;a=b>>>0>259;b=b>>>2|0;if(a)continue;break}b=i;while(1){a=J[b>>2];g=0-d&d;if(g>>>0>=2)while(1){e=J[b+16>>2];J[b+32>>2]=e;f=J[b+20>>2];J[b+36>>2]=f;h=a;a=J[b+8>>2];h=h+a|0;J[b+8>>2]=h>>1;a=a+e|0; +J[b+24>>2]=a>>1;a=a+h>>2;J[b+16>>2]=a;e=J[b+12>>2];h=e+J[b+4>>2]|0;J[b+12>>2]=h>>1;e=f+e|0;J[b+28>>2]=e>>1;J[b+20>>2]=e+h>>2;b=b+16|0;g=g>>1;if(g>>>0>1)continue;break}hN(c,a,J[b+4>>2]);b=b-16|0;d=d-1|0;if(d)continue;break}}fc=i+272|0;return 0}function TD(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;i=fc-32|0;fc=i;g=J[b+12>>2];h=J[b+8>>2];k=g-h>>3;j=k&1;if(!(K[e|0]|(K[a+8|0]|!j))){a:{if((g|0)==(h|0)){g=0;l=J[b+4>>2];if(!l|J[l>>2])break a;J[l>>2]=130;break a}g=J[h>>2];b:switch(J[h+4>>2]-1|0){case 1:g=g<< +16;break a;case 0:break b;default:break a}g=((g>>31)+g|0)- -8192>>14}J[d>>2]=(J[J[J[a+176>>2]+536>>2]+544>>2]<<16)+g}if(!K[J[a+176>>2]+548|0]){if(k>>>0>=2){while(1){d=J[b+8>>2];g=J[b+12>>2]-d>>3;c:{if(g>>>0<=j>>>0){a=0;h=J[b+4>>2];if(!h|J[h>>2])break c;J[h>>2]=130;break c}h=d+(j<<3)|0;a=J[h>>2];d:switch(J[h+4>>2]-1|0){case 1:a=a<<16;break c;case 0:break d;default:break c}a=((a>>31)+a|0)- -8192>>14}f=a+f|0;J[i+16>>2]=f;a=j+1|0;e:{if(a>>>0>=g>>>0){a=0;d=J[b+4>>2];if(!d|J[d>>2])break e;J[d>>2]=130;break e}d= +d+(a<<3)|0;a=J[d>>2];f:switch(J[d+4>>2]-1|0){case 1:a=a<<16;break e;case 0:break f;default:break e}a=((a>>31)+a|0)- -8192>>14}J[i+24>>2]=0;J[i+28>>2]=0;H[i+12|0]=0;f=a+f|0;J[i+20>>2]=f;a7(c,i+12|0);j=j+2|0;if(k>>>0>j>>>0)continue;break}h=J[b+8>>2]}J[b+12>>2]=h}H[e|0]=1;fc=i+32|0}function tDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=-1;a:{d=J[b+8>>2];b:{if(d&7)break b;e=K[a+20|0];c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2]))break a;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;c:{if((d|0)>0){J[b+ +60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break c}if((bd(b,e)|0)==-1)break b}c=-1;d=J[b+8>>2];if(d&7)break b;e=K[a+21|0];c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2]))break a;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;d:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break d}if((bd(b,e)|0)==-1)break b}c=-1;d=J[b+8>>2];if(d&7)break b;e=K[a+22|0];c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2]))break a;J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]= +d-1;e:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break e}if((bd(b,e)|0)==-1)break b}c=-1;f:{g:switch(K[a+20|0]-1|0){case 0:if(!zi(b,J[a+24>>2]))break f;break b;case 1:break g;default:break f}if((Ap(b,J[a+28>>2],J[a+32>>2])|0)!=J[a+32>>2])break b}c=0}return c|0}J[b+8>>2]=d|4;return-1}function Tna(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=fc-16|0;fc=e;J[a>>2]=0;J[a+4>>2]=0;J[699344]=0;b=_(4,712)|0;d=J[699344];J[699344]=0;a:{if((d|0)!=1){J[b>>2]= +2441796;J[b+4>>2]=0;J[b+8>>2]=0;J[699344]=0;d=_(6508,b+16|0)|0;f=J[699344];J[699344]=0;if((f|0)==1){c=Z()|0;uc(b);break a}J[a+4>>2]=b;J[a>>2]=d;d=J[c>>2];g=O[d+96>>3];h=O[d+16>>3];i=O[d+24>>3];j=O[d+48>>3];k=O[d+32>>3];l=O[d+8>>3];O[b+56>>3]=O[d+40>>3];O[b+24>>3]=l;O[b+48>>3]=k;O[b- -64>>3]=j;O[b+40>>3]=i;O[b+32>>3]=h;J[d+80>>2]=0;J[d+84>>2]=0;J[d+72>>2]=0;J[d+76>>2]=0;if(g>0){J[d+96>>2]=0;J[d+100>>2]=0}J[d+104>>2]=0;J[d+108>>2]=0;J[e+8>>2]=d;c=J[c+4>>2];J[e+12>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;b:{f= +J[b+696>>2];c:{if(f>>>0>2]){J[f+4>>2]=c;J[f>>2]=d;J[b+696>>2]=f+8;break c}J[699344]=0;da(6560,b+692|0,e+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[e+12>>2];if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;kc[J[J[b>>2]+8>>2]](b);Gc(b)}a=J[a>>2];H[a+622|0]=0;J[a+56>>2]=1;fc=e+16|0;return}c=Z()|0;je(e+8|0);break a}c=Z()|0}je(a);ba(c|0);B()}function GT(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;Tc(b,2456324,-1);Oj(b,J[J[a+624>>2]+4>>2]+6|0);Tc(b,2452276,-1);Tc(b,2456408,-1); +Tc(b,2456476,-1);i=b;if(J[a+92>>2])a=2456516;else{c=R(O[a+608>>3]);if(c>.01)g=O[a+560>>3];else g=O[a+32>>3];a:{if(c>.01){c=R(O[a+608>>3]);e=O[a+576>>3];break a}e=O[a+40>>3]}d=e;b:{if(c>.01){c=R(O[a+608>>3]);h=O[a+568>>3];break b}h=O[a+8>>3]}if(c>.01)e=O[a+584>>3];else e=O[a+16>>3];c=e;j=O[a+640>>3];k=O[a+632>>3];l=O[a+656>>3];f=O[a+648>>3];Tc(b,2456724,-1);Tc(b,2456776,-1);Tc(b,2456824,-1);Tc(b,2456876,-1);e=d-f;f=d-g;d=(e/f+-1)*-100*1E3;c:{if(R(d)<2147483648){a=~~d;break c}a=-2147483648}jh(b,a); +Tc(b,2456892,-1);Tc(b,2456904,-1);d=((l-g)/f+-1)*-100*1E3;d:{if(R(d)<2147483648){a=~~d;break d}a=-2147483648}jh(b,a);Tc(b,2456892,-1);Tc(b,2456920,-1);d=c-h;c=((c-k)/d+-1)*-100*1E3;e:{if(R(c)<2147483648){a=~~c;break e}a=-2147483648}jh(b,a);Tc(b,2456892,-1);Tc(b,2456936,-1);c=((j-h)/d+-1)*-100*1E3;f:{if(R(c)<2147483648){a=~~c;break f}a=-2147483648}jh(b,a);Tc(b,2453360,-1);Tc(b,2456952,-1);a=2456964}Tc(i,a,-1)}function Czb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=J[J[a+544>>2]+88>> +2];e=J[f+1176>>2]+P(J[f+1168>>2],J[a+572>>2])|0;b=J[a+588>>2];d=J[a+644>>2];a:{if(K[f+56|0]){if((b|0)<=0)break a;while(1){c=K[e+2|0]|K[e+3|0]<<8;j=(c<<8|c>>>8)&65535;c=K[e+4|0]|K[e+5|0]<<8;k=(c<<8|c>>>8)&65535;c=K[e|0]|K[e+1|0]<<8;c=(c<<8|c>>>8)&65535;b:{if(!((c|0)!=L[f+838>>1]|(j|0)!=L[f+840>>1])){b=0;h=0;g=0;i=0;if(L[f+842>>1]==(k|0))break b}h=65535;b=j;g=c;i=k}c=i;g=g<<8|g>>>8;H[d|0]=g;H[d+1|0]=g>>>8;b=b<<8|b>>>8;H[d+2|0]=b;H[d+3|0]=b>>>8;c=c<<8|c>>>8;H[d+4|0]=c;H[d+5|0]=c>>>8;c=h<<8|h>>>8;H[d+ +6|0]=c;H[d+7|0]=c>>>8;d=d+8|0;e=e+6|0;l=l+1|0;if((l|0)>2])continue;break}break a}if((b|0)<=0)break a;while(1){b=K[e|0]|K[e+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8;b=K[e+2|0]|K[e+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d+2|0]=b;H[d+3|0]=b>>>8;b=K[e+4|0]|K[e+5|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[d+4|0]=b;H[d+5|0]=b>>>8;H[d+6|0]=255;H[d+7|0]=255;d=d+8|0;e=e+6|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function iB(a,b,c,d,e,f){var g=0,h=Q(0),i= +0,j=Q(0);g=(c<<6)+b|0;a=c?g+-64|0:a;i=d>>>0>>0?d:e;a:{if(i>>>0<=c>>>0){b=a;break a}h=N[a>>2];while(1){b=g;g=b-32|0;j=h;h=N[b>>2];N[g>>2]=Q(Q(j+h)*f)+N[g>>2];g=b-28|0;N[g>>2]=Q(Q(N[a+4>>2]+N[b+4>>2])*f)+N[g>>2];g=b-24|0;N[g>>2]=Q(Q(N[a+8>>2]+N[b+8>>2])*f)+N[g>>2];g=b-20|0;N[g>>2]=Q(Q(N[a+12>>2]+N[b+12>>2])*f)+N[g>>2];g=b-16|0;N[g>>2]=Q(Q(N[a+16>>2]+N[b+16>>2])*f)+N[g>>2];g=b-12|0;N[g>>2]=Q(Q(N[a+20>>2]+N[b+20>>2])*f)+N[g>>2];g=b-8|0;N[g>>2]=Q(Q(N[a+24>>2]+N[b+24>>2])*f)+N[g>>2];g=b-4|0;N[g>>2]= +Q(Q(N[a+28>>2]+N[b+28>>2])*f)+N[g>>2];g=b- -64|0;a=b;c=c+1|0;if((i|0)!=(c|0))continue;break}}b:{if(d>>>0>e>>>0){if((e+1|0)!=(d|0))break b;a=g-32|0;f=Q(f+f);N[a>>2]=Q(N[b>>2]*f)+N[a>>2];a=g-28|0;N[a>>2]=Q(N[b+4>>2]*f)+N[a>>2];a=g-24|0;N[a>>2]=Q(N[b+8>>2]*f)+N[a>>2];a=g-20|0;N[a>>2]=Q(N[b+12>>2]*f)+N[a>>2];a=g-16|0;N[a>>2]=Q(N[b+16>>2]*f)+N[a>>2];a=g-12|0;N[a>>2]=Q(N[b+20>>2]*f)+N[a>>2];a=g-8|0;N[a>>2]=Q(N[b+24>>2]*f)+N[a>>2];a=g-4|0;N[a>>2]=Q(N[b+28>>2]*f)+N[a>>2]}return}fa(2349940,2350512,3112,2354464); +B()}function IP(a){var b=0,c=0,d=0,e=0;b=Dc(68);if(!b)return 0;J[b+52>>2]=0;J[b+56>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+60>>2]=0;J[b+64>>2]=-1;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;d=K[a|0];if(d)while(1){e=a;a:{b:{c:{d:{e:{f:{a=d<<24>>24;switch(a-97|0){case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:case 21:break a;case 0:break b;case 1:break c;case 22:break d;case 17:break e; +default:break f}}if((a|0)!=43)break a;c=c|3;break a}c=c|1;break a}c=c|18;break a}c=c|8;break a}c=c|4}a=e+1|0;d=K[e+1|0];if(d)continue;break}J[b>>2]=c;a=Dc(32);if(!a){g:{if(!(K[b+4|0]&8))break g;a=J[b+12>>2];if(!a)break g;uc(a);J[b+12>>2]=0}uc(b);return 0}H[a+8|0]=0;J[a>>2]=0;J[b+56>>2]=a;J[a+4>>2]=2;if(!J[b+12>>2]){a=Dc(8208);J[b+12>>2]=a;h:{if(a){d=8192;e=J[b+4>>2]|8;break h}a=b+32|0;J[b+12>>2]=a;d=1;e=J[b+4>>2]}J[b+28>>2]=0;J[b+20>>2]=d;J[b+52>>2]=2642248;a=a+16|0;J[b+24>>2]=a;J[b+16>>2]=a;J[b+ +4>>2]=e|2;return b}fa(205938,198694,703,206461);B()}function pT(a){var b=0,c=0,d=0,e=0,f=0;f=fc-16|0;fc=f;a:{b:{c:{d:{e:{d=J[a+584>>2];if(d){if(L[a+90>>1]!=32845)break e;if(L[a+138>>1]!=1){Uc(J[a+628>>2],93808,75217,0);b=0;break a}c=-1;b=J[d>>2];if((b|0)!=-1)break b;b=0;f:{g:{h:{e=L[a+86>>1]|L[a+84>>1]<<3;switch(e-257|0){case 2:break c;case 0:case 1:case 3:break g;default:break h}}b=e-129|0;if(b>>>0<=3)break f;break d}c=2;b=-1;break c}if((b|0)==2)break d;b=1;break c}fa(74429,70372,1275,93808);B()}fa(74766, +70372,1276,93808);B()}i:switch(e-65|0){case 0:case 3:b=3;break c;default:break i}b=-1}j:{k:switch(L[a+98>>1]-1|0){case 2:c=b;break j;case 0:break j;default:break k}c=-1}J[d>>2]=c;b=c}if(b>>>0>=4){Uc(J[a+628>>2],J[a>>2],75354,0);b=0;break a}J[d+8>>2]=J[(b<<2)+94012>>2];l:{if(K[a+13|0]&4){b=J[a+68>>2];e=vEb(J[a+72>>2],0,b,0);c=(jc|0)!=0;break l}b=J[a+56>>2];e=vEb(J[a+100>>2],0,b,0);c=(jc|0)!=0}b=b?c&1?0:e:0;J[d+16>>2]=b;if(!(!(b&1073741823)|b-1073741824>>>0<3221225473)){c=Dc(b<<2);J[d+12>>2]=c;b=1; +if(c)break a}b=J[a+628>>2];J[f>>2]=J[a>>2];Uc(b,93808,75975,f);b=0}fc=f+16|0;return b}function r6(a){var b=0,c=0,d=0,e=0;d=J[J[a>>2]+100>>2];b=J[a+300>>2];if(b){J[b+444>>2]=0;c=J[b+8>>2];e=J[b+24>>2];if(e)kc[J[c+8>>2]](c,e);J[b+20>>2]=0;J[b+24>>2]=0;e=J[b+440>>2];if(e)kc[J[c+8>>2]](c,e);J[b+440>>2]=0;J[b+432>>2]=0;J[b+436>>2]=0;e=J[b+396>>2];if(e)kc[J[c+8>>2]](c,e);J[b+392>>2]=0;J[b+396>>2]=0;J[b>>2]=0;J[b+4>>2]=0;if(b)kc[J[c+8>>2]](c,b);J[a+300>>2]=0}b=J[a+252>>2];if(b)kc[J[d+8>>2]](d,b);J[a+248>> +2]=0;J[a+252>>2]=0;b=J[a+260>>2];if(b)kc[J[d+8>>2]](d,b);I[a+256>>1]=0;J[a+260>>2]=0;b=J[a+264>>2];if(b){c=J[a+292>>2];if(c)kc[J[b+8>>2]](b,c);J[a+292>>2]=0;c=J[a+288>>2];if(c)kc[J[b+8>>2]](b,c);J[a+288>>2]=0;c=J[a+280>>2];if(c)kc[J[b+8>>2]](b,c);J[a+280>>2]=0;c=J[a+276>>2];if(c)kc[J[b+8>>2]](b,c);J[a+276>>2]=0;c=J[a+284>>2];if(c)kc[J[b+8>>2]](b,c);J[a+284>>2]=0;J[a+272>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0}b=J[a+132>>2];if(b)kc[J[d+8>>2]](d,b);J[a+132>>2]=0;b=J[a+144>>2];if(b)kc[J[d+8>>2]](d,b);J[a+ +136>>2]=0;J[a+140>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+304>>2]=-1;J[a+308>>2]=-1}function ag(a){var b=0,c=0,d=0,e=0;c=fc-32|0;fc=c;J[c+16>>2]=0;J[c+12>>2]=6962;b=J[c+16>>2];J[c>>2]=J[c+12>>2];J[c+4>>2]=b;e=J[c+4>>2];b=c+20|0;J[b+4>>2]=J[c>>2];J[b+8>>2]=e;J[b>>2]=a;e=fc-16|0;fc=e;if(J[a>>2]!=-1)a:{d=e+12|0;J[d>>2]=b;b=e+8|0;J[b>>2]=d;while(1){d=J[a>>2];if((d|0)==1)continue;break}b:{c:{if(!d){J[a>>2]=1;J[699344]=0;d=J[699344];J[699344]=0;d:{if((d|0)==1)break d; +J[699344]=0;$(6968,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[a>>2]=-1;J[699344]=0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}oa(ea(0)|0)|0;J[699344]=0;c=J[699344];J[699344]=0;e:{if((c|0)==1)break e;J[a>>2]=0;J[699344]=0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;a=J[699344];J[699344]=0;if((a|0)==1)break e;J[699344]=0;ka(5052);a=J[699344];J[699344]=0;if((a|0)!=1)break b}a= +Z()|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)==1)break c;ba(a|0);B()}break a}ea(0)|0;Bc()}B()}fc=e+16|0;fc=c+32|0;return J[a+4>>2]-1|0}function aXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;Uw(a,b);d=J[a+8>>2];if(d&512){d=K[a+351|0];c=d<<24>>24<0;lf(b,c?J[a+340>>2]:a+340|0,c?J[a+344>>2]:d);d=J[a+8>>2]}a:{if(!(d&1024))break a;zd(b,(J[a+380>>2]-J[a+376>>2]|0)/24|0);c=J[a+376>>2];if((c|0)==J[a+380>>2])break a;d=0;while(1){e=P(d,24);c=e+c|0;g=K[c+11|0];f=g<<24>>24<0;lf(b,f?J[c>>2]:c,f?J[c+ +4>>2]:g);c=e+J[a+376>>2]|0;e=K[c+23|0];f=e<<24>>24<0;lf(b,f?J[c+12>>2]:c+12|0,f?J[c+16>>2]:e);d=d+1|0;c=J[a+376>>2];if(d>>>0<(J[a+380>>2]-c|0)/24>>>0)continue;break}}d=J[a+8>>2];if(d&2048){zd(b,J[a+388>>2]);d=J[a+8>>2]}b:{if(!(d&4096))break b;zd(b,J[a+368>>2]-J[a+364>>2]>>2);d=J[a+364>>2];if((d|0)==J[a+368>>2])break b;c=0;while(1){zd(b,J[(c<<2)+d>>2]);c=c+1|0;d=J[a+364>>2];if(c>>>0>2]-d>>2>>>0)continue;break}}c:{if(!(K[a+9|0]&32))break c;zd(b,(J[a+356>>2]-J[a+352>>2]|0)/12|0);c=J[a+352>> +2];if((c|0)==J[a+356>>2])break c;d=0;while(1){c=P(d,12)+c|0;e=K[c+11|0];f=e<<24>>24<0;lf(b,f?J[c>>2]:c,f?J[c+4>>2]:e);d=d+1|0;c=J[a+352>>2];if(d>>>0<(J[a+356>>2]-c|0)/12>>>0)continue;break}}}function sl(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(!b){b=K[43215]|K[43216]<<8;H[a+88|0]=b;H[a+89|0]=b>>>8;b=K[43211]|K[43212]<<8|(K[43213]<<16|K[43214]<<24);c=K[43207]|K[43208]<<8|(K[43209]<<16|K[43210]<<24);H[a+80|0]=c;H[a+81|0]=c>>>8;H[a+82|0]=c>>>16;H[a+83|0]=c>>>24;H[a+84|0]=b;H[a+85|0]=b>>>8;H[a+86|0]=b>>>16; +H[a+87|0]=b>>>24;b=K[43203]|K[43204]<<8|(K[43205]<<16|K[43206]<<24);c=K[43199]|K[43200]<<8|(K[43201]<<16|K[43202]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24;break b}b=0;if(J[a+4>>2])break a;b=K[43972]|K[43973]<<8|(K[43974]<<16|K[43975]<<24);c=K[43968]|K[43969]<<8|(K[43970]<<16|K[43971]<<24);H[a+78|0]=c;H[a+79|0]=c>>>8;H[a+80|0]=c>>>16;H[a+81|0]=c>>>24;H[a+82|0]=b;H[a+83|0]=b>>>8;H[a+84|0]=b>>>16;H[a+85|0]=b>>>24; +b=K[43966]|K[43967]<<8|(K[43968]<<16|K[43969]<<24);c=K[43962]|K[43963]<<8|(K[43964]<<16|K[43965]<<24);H[a+72|0]=c;H[a+73|0]=c>>>8;H[a+74|0]=c>>>16;H[a+75|0]=c>>>24;H[a+76|0]=b;H[a+77|0]=b>>>8;H[a+78|0]=b>>>16;H[a+79|0]=b>>>24}b=1}return b|0}function Hra(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;J[a>>2]=2436896;J[a+4>>2]=0;a:{e=J[b>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break a;e=J[b>>2]}else e=0;J[a+8>>2]=e;b=J[b>>2];J[a+28>>2]=0;J[a+32>>2]=0;H[a+ +16|0]=c;J[a+12>>2]=b;J[a+36>>2]=0;J[a+40>>2]=0;while(1){e=0;c=(a+f|0)+2604|0;H[c|0]=0;b=f;g=b&128;if(g){while(1){e=e+1|0;h=b&64;b=b<<1;if(h)continue;break}H[c|0]=e}e=0;b=f|1;c=(b+a|0)+2604|0;H[c|0]=0;if(g){while(1){e=e+1|0;g=b&64;b=b<<1;if(g)continue;break}H[c|0]=e}f=f+2|0;if((f|0)!=256)continue;break}b=0;while(1){f=(b<<2)+a|0;c=P(b,6);J[f+1068>>2]=L[c+2436914>>1];J[f+44>>2]=L[c+2436912>>1];f=a+b|0;H[f+2348|0]=K[c+2436917|0];H[f+2092|0]=K[c+2436916|0];b=b+1|0;if((b|0)!=256)continue;break}if(!d){c= +0;while(1){d=(c<<2)+a|0;f=J[d+44>>2];e=0-f|0;while(1){b=e&65535;e=b<<1;if(b>>>0>32767)continue;break}d=J[d+1068>>2];if(!(!d|b+f>>>0<32768|b>>>0>>0))H[(a+c|0)+2348|0]=K[P(K[P(c,6)+2436917|0],6)+2436917|0];c=c+1|0;if((c|0)!=256)continue;break}}return a|0}b=Z()|0;nd(a);ba(b|0);B()}function Bjb(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;f=3;a:{if((d|e)<0)break a;h=J[a+8>>2];i=J[a+12>>2];m=L[i+2>>1];if(M[h+4>>2]>>0)break a;l=L[i>>1];if(M[h>>2]< +l+e>>>0)break a;j=P(m,K[a+18|0]);if((P(l,j)+7>>>3|0)+b>>>0>c>>>0)break a;f=0;if(!j|!l)break a;n=d&7;a=8-n|0;k=a>>>0>j>>>0?j:a;p=(255<>2];h=J[h+12>>2]+P(o,e)+(d>>>3)|0;m=j-k|0;e=0;d=l;while(1){i=d;b:{if(!n){a=b;f=j;d=h;break b}c:{if((i|0)==(l|0)){e=K[b|0];g=n;a=b+1|0;break c}if((g|0)<(k|0)){g=(g-k|0)+8|0;if(b>>>0>=c>>>0)a=b;else{e=K[b|0]|e;a=b+1|0}break c}g=g-k|0;e=(e&65280)>>>8|0;a=b}H[h|0]=K[h|0]|(e&65535)>>>g&p;e=e<<8;f=m;d=h+1|0}if((f|0)>=8)while(1){b=K[a|0]|e;H[d|0]= +K[d|0]|(b&65535)>>>g;d=d+1|0;a=a+1|0;e=b<<8;b=f>>>0>15;f=f-8|0;if(b)continue;break}d:if((f|0)>0){if((f|0)>(g|0)){if(a>>>0>>0){e=K[a|0]|e;a=a+1|0}H[d|0]=K[d|0]|(e&65535)>>>g&65280>>>f;e=e<<8;g=(g-f|0)+8|0;break d}H[d|0]=K[d|0]|65280>>>f&(e&65535)>>>g;g=g-f|0}b=a;h=h+o|0;d=i-1|0;if((i|0)>1)continue;break}f=0}return f|0}function cf(a,b){var c=0,d=0,e=0,f=0,g=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+ +60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=td(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;f=J[a+28>>2];J[a+28>>2]=f-1;d:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;f=K[c|0];break d}f=td(a,1);if((f|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;g=J[a+28>>2];J[a+28>>2]=g-1;e:{if((g|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>> +2]=c+1;g=K[c|0];break e}g=td(a,1);if((g|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;f:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break f}a=td(a,1);if((a|0)==-1)break b}J[b>>2]=(e<<16|f<<8|g)<<8|a;c=0}return c}J[a+8>>2]=d|4;return-1}function LT(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2452172;d=J[a+680>>2];c=J[a+676>>2];if((d|0)!=(c|0))while(1){d=d-8|0;b=J[d+4>>2];a:{if(!b)break a; +e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((c|0)!=(d|0))continue;break}J[a+680>>2]=c;J[699344]=0;e=a+496|0;An(e);b=J[699344];J[699344]=0;if((b|0)!=1)b:{b=J[a+676>>2];if(b){c=b;d=J[a+680>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];c:{if(!c)break c;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break c;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b|0)!=(d|0))continue;break}c=J[a+676>>2]}J[a+680>>2]=b;uc(c)}b=J[a+628>>2];d:{if(!b)break d;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break d;kc[J[J[b>>2]+8>>2]](b); +Gc(b)}if(H[a+603|0]<0)uc(J[a+592>>2]);kk(a+544|0);kk(e);J[a+432>>2]=340456;b=J[a+460>>2];if(b){uc(b);J[a+460>>2]=0}J[a+64>>2]=340504;b=J[a+92>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+92>>2]=0}Se(a+276|0);b=J[a+184>>2];if(b){J[a+188>>2]=b;uc(b)}if(H[a+111|0]<0)uc(J[a+100>>2]);Jd(a+96|0);return a|0}ea(0)|0;Bc();B()}function uB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;J[a+32>>2]=J[a+32>>2]+2;g=tB(a);c=J[a+32>>2];f=J[a+36>>2];a:{if(c>>>0>=f>>>0)break a; +while(1){e=K[c|0]-9|0;if(e>>>0>23|!(1<>2]=c;if((c|0)!=(f|0))continue;break}c=f}d=f-2|0;b:{if(d>>>0>=c>>>0){e=c;while(1){if(!ud(e,787579,2)){d=vc(28);J[699344]=0;f=_(4,8)|0;h=J[699344];J[699344]=0;c:{if((h|0)!=1){J[699344]=0;c=ga(3348,f|0,c|0,e-c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[d+4>>2]=0;J[d+8>>2]=0;J[d+24>>2]=c;J[d+20>>2]=g;J[d>>2]=2348520;J[d+12>>2]=0;J[d+16>>2]=0;kc[J[J[b>>2]+48>>2]](b,d);J[a+32>>2]=J[a+32>>2]+2;return}c=Z()|0;break b}c=Z()| +0;uc(f);break b}e=e+1|0;J[a+32>>2]=e;if(d>>>0>=e>>>0)continue;break}}J[a+32>>2]=f;d=vc(28);J[699344]=0;a=_(4,8)|0;e=J[699344];J[699344]=0;d:{if((e|0)!=1){J[699344]=0;c=ga(3348,a|0,c|0,f-c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break d;J[d+4>>2]=0;J[d+8>>2]=0;J[d+24>>2]=c;J[d+20>>2]=g;J[d>>2]=2348520;J[d+12>>2]=0;J[d+16>>2]=0;kc[J[J[b>>2]+48>>2]](b,d);return}c=Z()|0;break b}c=Z()|0;uc(a)}uc(d);ba(c|0);B()}function mGa(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;g=fc-16|0; +fc=g;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{j=J[b+4>>2];if((j|0)>0)while(1){h=J[b>>2];k=K[b+8|0];b:{if(!k){e=f+1|0;i=(e|0)<(j|0)?j:e;e=f;while(1){if(J[(e<<2)+h>>2]==(c|0))break b;e=e+1|0;if((i|0)!=(e|0))continue;break}e=i;break b}e=f+1|0;i=(e|0)<(j|0)?j:e;l=J[h>>2];e=f;while(1){if(J[(e<<2)+l>>2]==(c|0))break b;e=e+1|0;if((j|0)>(e|0))continue;break}e=i}H[g+8|0]=0;J[g>>2]=0;J[g+4>>2]=0;c:{if(!k)break c;if(!h){h=0;break c}h=J[h>>2]}J[699344]=0;ia(5007,g|0,(f<<2)+h|0,d|0,e-f|0);f=J[699344];J[699344]=0; +if((f|0)==1)break a;f=J[a+4>>2];d:{if((f|0)!=J[a+8>>2]){J[f+4>>2]=J[g+4>>2];h=K[g+8|0];H[f+8|0]=h;i=J[g>>2];J[f>>2]=i;if(!(!h|!i))J[i+4>>2]=J[i+4>>2]+1;J[a+4>>2]=f+12;break d}J[699344]=0;da(5137,a|0,g|0);f=J[699344];J[699344]=0;if((f|0)==1)break a;h=K[g+8|0]}f=e+1|0;e:{if(!(h&255))break e;e=J[g>>2];if(!e)break e;i=J[e+4>>2]-1|0;J[e+4>>2]=i;if(i)break e;uc(e)}if((f|0)<(j|0))continue;break}fc=g+16|0;return}b=Z()|0;Rc(g);_A(a);ba(b|0);B()}function Y0a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0; +d=fc-256|0;fc=d;f=ji(84);J[a+8>>2]=f;a:{if(f){J[d+24>>2]=J[189011];e=J[189010];J[d+16>>2]=J[189009];J[d+20>>2]=e;e=J[189008];J[d+8>>2]=J[189007];J[d+12>>2]=e;e=J[189006];J[d>>2]=J[189005];J[d+4>>2]=e;J[f>>2]=0;e=d+32|0;g=f,h=jg(730761,e,d,c),J[g+4>>2]=h;g=f,h=jg(731392,e,d,c),J[g+8>>2]=h;g=f,h=jg(731842,e,d,c),J[g+12>>2]=h;g=f,h=jg(732356,e,d,c),J[g+16>>2]=h;g=f,h=jg(732713,e,d,c),J[g+20>>2]=h;g=f,h=jg(733080,e,d,c),J[g+24>>2]=h;g=f,h=jg(733329,e,d,c),J[g+28>>2]=h;g=f,h=jg(733576,e,d,c),J[g+32>>2]= +h;g=f,h=jg(733703,e,d,c),J[g+36>>2]=h;g=f,h=jg(733904,e,d,c),J[g+40>>2]=h;g=f,h=jg(734018,e,d,c),J[g+44>>2]=h;g=f,h=jg(734338,e,d,c),J[g+48>>2]=h;g=f,h=jg(734489,e,d,c),J[g+52>>2]=h;g=f,h=jg(734569,e,d,c),J[g+56>>2]=h;g=f,h=jg(734675,e,d,c),J[g+60>>2]=h;g=f,h=jg(734746,e,d,c),J[g+64>>2]=h;g=f,h=jg(734882,e,d,c),J[g+68>>2]=h;g=f,h=jg(734941,e,d,c),J[g+72>>2]=h;g=f,h=jg(735049,e,d,c),J[g+76>>2]=h;if(!(!K[b+8|0]&J[c>>2]<=0)){U2(a);break a}J[f+80>>2]=0;break a}J[c>>2]=7}fc=d+256|0}function eoa(a,b,c){a= +a|0;b=b|0;c=+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;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{while(1){l=O[b+8>>3];i=1-f;k=_e(i,3);m=f*(f*f);n=f*(f*(i*3));p=k*l;l=f*(i*i*3);i=m*O[b+56>>3]+(n*O[b+40>>3]+(p+l*O[b+24>>3]));k=m*O[b+48>>3]+(n*O[b+32>>3]+(k*O[b>>3]+l*O[b+16>>3]));c:{if(e>>>0>>0){O[e+8>>3]=i;O[e>>3]=k;e=e+16|0;J[a+4>>2]=e;break c}o=e-j>>4;d=o+1|0;if(d>>>0>=268435456){J[699344]=0;$(6496,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break a}h=g-j|0;g=h>>3;d=h>>>0>=2147483632? +268435455:d>>>0>>0?g:d;if(d>>>0>=268435456){J[699344]=0;ka(209);b=J[699344];J[699344]=0;if((b|0)!=1)break a;break b}J[699344]=0;g=d<<4;h=_(4,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;d=h+(o<<4)|0;O[d+8>>3]=i;O[d>>3]=k;g=g+h|0;h=d+16|0;if((e|0)!=(j|0))while(1){d=d-16|0;e=e-16|0;O[d>>3]=O[e>>3];O[d+8>>3]=O[e+8>>3];if((e|0)!=(j|0))continue;break}J[a+8>>2]=g;J[a+4>>2]=h;J[a>>2]=d;if(j)uc(j);j=d;e=h}f=f+c;if(f<=1)continue;break}return}e=Z()|0;b=J[a>>2];if(b){J[a+4>>2]=b;uc(b)}ba(e|0);B()}B()} +function PFa(a){a=a|0;var b=0,c=0,d=0,e=0;a=J[a+4>>2];if(!a)return 0;c=fc-32|0;fc=c;a=J[a+12>>2];a:{if(J[a+56>>2]-3>>>0<=1){b=J[a+52>>2];if(!b){b=0;J[c+28>>2]=0;break a}J[b+4>>2]=J[b+4>>2]+1;b=J[a+52>>2];J[c+28>>2]=b;break a}J[c+28>>2]=0;vd(c+28|0,0);b=J[c+28>>2]}a=0;b:{c:{d:{if(!b)break d;J[699344]=0;J[c+24>>2]=0;b=J[b+16>>2];d=J[699344];J[699344]=0;if((d|0)!=1){e:{if((b|0)>0){J[c+12>>2]=1E3;J[c+4>>2]=231660;a=Dc(1E3);J[c+8>>2]=a;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;J[699344]=0;J[c+20>>2]=4; +J[c+16>>2]=a+4;ma(5198,c+28|0,c+24|0,b|0,c+4|0,1);a=J[699344];J[699344]=0;if((a|0)==1)break e;a=J[c+8>>2];b=J[c+20>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;a=J[c+8>>2]}b=J[c+28>>2];J[c+28>>2]=0;if(!b)break d;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}ea(0)|0;Bc();B()}b=Z()|0;J[c+4>>2]=231660;a=J[c+8>>2];if(!a)break c;uc(a);break c}b=Z()|0;break c}fc=c+32|0;break b}zc(c+ +28|0);ba(b|0);B()}return a|0}function e4(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=J[a+276>>2];if(e)e4(e,b,c,d);j=O[a+112>>3];g=b/j;e=g>1.001|g<.999;if(!(!(e|O[a+120>>3]!=c)&O[a+128>>3]==d)){O[a+128>>3]=d;O[a+120>>3]=c;if(e){O[a+112>>3]=b;g4(a);j=O[a+112>>3];g=O[a+120>>3]}else g=c;O[a+192>>3]=g/72*j;b=b*64;a:{if(R(b)<2147483648){e=~~b;break a}e=-2147483648}h=J[a+188>>2];if(d<4294967296&d>=0)f=~~d>>>0;else f=0;if(c<4294967296&c>=0)i=~~c>>>0;else i=0;Z7(h,e,i,f);e=J[a+304>>2]; +h=a+308|0;if((e|0)!=(h|0))while(1){J[e+120>>2]=1;f=J[e+4>>2];b:{if(f)while(1){e=f;f=J[e>>2];if(f)continue;break b}while(1){f=e;e=J[e+8>>2];if((f|0)!=J[e>>2])continue;break}}if((e|0)!=(h|0))continue;break}i=a+316|0;e=J[i>>2];k=a+320|0;if((e|0)!=(k|0))while(1){J[e+120>>2]=1;f=J[e+4>>2];c:{if(f)while(1){e=f;f=J[e>>2];if(f)continue;break c}while(1){f=e;e=J[e+8>>2];if((f|0)!=J[e>>2])continue;break}}if((e|0)!=(k|0))continue;break}ki(a+304|0,J[a+308>>2]);J[a+304>>2]=h;J[a+308>>2]=0;J[a+312>>2]=0;ki(i,J[a+ +320>>2]);J[a+316>>2]=k;J[a+320>>2]=0;J[a+324>>2]=0}}function U_a(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;var h=0,i=0,j=0,k=0,l=0;h=fc-32|0;fc=h;J[h+28>>2]=0;a:{if(!a|!J[a+8>>2])break a;j=15583;b:{if((c|0)!=15583){if(!c)break b;i=c;while(1){k=K[i|0];if((k|0)!=K[j|0])break b;j=j+1|0;i=i+1|0;if(k)continue;break}}if((d|0)==2)break b;k=J[a+100>>2];if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=540;j=J[a>>2];i=0;c:{if(!j)break c;i=0;if(J[j+108>>2]!=-554844497)break c;i=J[j+124>>2]}j=J[a+ +112>>2];l=J[a+108>>2];J[h+16>>2]=0;J[h+20>>2]=0;Hc(i,j,l,a,0,4,540,2,0,0,0,0,37215,h+16|0)}J[a+100>>2]=k}c=CK(a,c,h+28|0);J[a+144>>2]=1;i=a+108|0;d:{e:switch(J[a+216>>2]-1|0){case 1:H1(i,J[J[a+8>>2]+48>>2],b,c,J[h+28>>2],d,e,f,g);break d;default:f:{if(J[a+172>>2]==-1?J[a+212>>2]:0)break f;J[a+84>>2]=1;J[h+4>>2]=0;J[h>>2]=c;Hc(0,0,0,a,0,1,1,3,c,0,0,0,31424,h);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break f;J[a+212>>2]=1}Rk(g);break a;case 0:break e}H1(i,J[J[a+8>>2]+44>>2],b,c,J[h+28>>2],d,e,f,g)}a= +J[h+28>>2];if(a)kc[J[663199]](a);if(!c)break a;kc[J[663199]](c)}fc=h+32|0}function Hda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=fc-16|0;fc=e;d=J[a+584>>2];if(d){a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{if((b|0)<=65536){n:switch(b-34908|0){case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break n}if((b|0)==347)break m;if((b|0)!=530)break b;Vy(a,0,0);if(J[d+932>>2]|!J[d+16>>2]|L[a+90>>1]!=6)break g;J[d+932>>2]=1;if(!(J[a+12>>2]>>>10&1))break i;if(aV(a,0))break h;break g}switch(b-65537| +0){case 2:break j;case 1:break k;case 0:break l;default:break b}}J[J[c>>2]>>2]=J[d+916>>2];J[J[c+4>>2]>>2]=J[d+912>>2];a=1;break a}J[J[c>>2]>>2]=J[d+920>>2];a=1;break a}J[J[c>>2]>>2]=J[d+924>>2];a=1;break a}J[J[c>>2]>>2]=J[d+928>>2];a=1;break a}if(!dV(a,0))break g}b=L[d+834>>1];J[e+4>>2]=L[d+836>>1];J[e>>2]=b;ke(a,530,e);J[a+480>>2]=-1}a=kc[J[d+892>>2]](a,530,c)|0;break a}J[J[c>>2]>>2]=J[d+936>>2];a=1;break a}J[J[c>>2]>>2]=J[d+940>>2];a=1;break a}J[J[c>>2]>>2]=J[d+944>>2];a=1;break a}J[J[c>>2]>>2]= +J[d+948>>2];a=1;break a}a=kc[J[d+892>>2]](a,b,c)|0}fc=e+16|0;return a|0}fa(75270,70506,1775,97648);B()}function HGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;a:{b:{if((tq(a)|0)<=0)break b;if(!vk(a))break b;QC(d+16|0,a);e=K[d+27|0];f=e<<24>>24<0;e=f?J[d+20>>2]:e;c:{if(!e)break c;d:{e:{while(1){if((bf(b)|0)==(e|0)){if((e|0)==-1){J[699344]=0;$(2970,d+16|0);a=J[699344];J[699344]=0;if((a|0)!=1)break e;ea(0)|0;Bc();B()}if(!qd(f?J[d+16>>2]:d+16|0,b,e))break d}J[699344]=0;f=Mi(a);e=J[699344]; +J[699344]=0;if((e|0)!=1){if(!f)break c;J[699344]=0;da(4970,d+4|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break a;if(H[d+27|0]<0)uc(J[d+16>>2]);J[d+24>>2]=J[d+12>>2];f=J[d+8>>2];J[d+16>>2]=J[d+4>>2];J[d+20>>2]=f;e=H[d+27|0];f=(e|0)<0;e=f?J[d+20>>2]:e&255;if(e)continue;break c}break}break a}B()}J[699344]=0;da(4971,d+4|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(H[c+11|0]<0)uc(J[c>>2]);b=J[d+8>>2];J[c>>2]=J[d+4>>2];J[c+4>>2]=b;J[c+8>>2]=J[d+12>>2]}J[699344]=0;gj(a);a=J[699344];J[699344]=0; +if((a|0)==1)break a;if(H[d+27|0]>=0)break b;uc(J[d+16>>2])}fc=d+32|0;return}a=Z()|0;if(H[d+27|0]<0)uc(J[d+16>>2]);ba(a|0);B()}function FO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;f=J[a+44>>2];a:{if(f){h=J[a+4>>2];b:{if(!h){h=0;break b}i=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);if(!(!K[a+481|0]|(i|0)!=J[a+476>>2])){h=K[a+480|0];break b}H[a+481|0]=1;J[a+476>>2]=i;g=J[a+48>>2];n=g?g:f;c:{if((n|0)<=0){h=0;break c}l=h+40|0;o=i>>>16&255;p=i>>> +8&255;i=i&255;m=2E5;h=0;g=0;while(1){f=K[(k|1)+l|0]-p|0;j=P(f,f);f=K[k+l|0]-i|0;j=j+P(f,f)|0;f=K[(k|2)+l|0]-o|0;f=j+P(f,f)|0;if(!f){h=g;break c}j=f;f=(f|0)<(m|0);m=f?j:m;h=f?g:h;k=k+4|0;g=g+1|0;if((n|0)!=(g|0))continue;break}}H[a+480|0]=h}g=L[a+26>>1];if((g|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=h;break a}f=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,g)>>3)|0;d:switch(g-1|0){case 3:g=4-((b|0)%2<<2)&252;H[f|0]=K[f|0]&(15<>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;H[g|0]=K[d|0];H[g+1|0]=K[d+1|0];H[g+2|0]=K[d+2|0]}if(e)yh(a,b,c,K[d+3|0])}function $J(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[b>>2];a:{if((d|0)<=0)break a;j=d&3;e=J[b+4>>2];b:{if(d>>>0<4){d=e;break b}g=d&-4;while(1){f=K[e+3|0]+P(K[e+2|0]+P(K[e+1|0]+P(K[e|0]+P(f,17)|0,17)|0,17)|0,17)|0;d=e+4|0;e=d;h=h+4|0;if((g|0)!=(h|0))continue;break}}if(!j)break a;while(1){f=K[d|0]+P(f,17)|0;d=d+1|0;i=i+1|0;if((j|0)!=(i|0))continue; +break}}c:{d:{e:{f:{d=J[a+4>>2];e=J[J[a+12>>2]+((f>>>0)%(d>>>0)<<2)>>2];if(e){while(1){if(!Eg(J[e>>2],b))break f;e=J[e+8>>2];if(e)continue;break}d=J[a+4>>2]}if((d|0)<=J[a+8>>2])q0(a);g=vc(12);J[g+4>>2]=c;J[g>>2]=b;d=J[b>>2];if((d|0)>0)break e;f=0;break d}J[e+4>>2]=c;if(!J[a>>2])break c;uc(Zc(b));return}c=d&3;e=J[b+4>>2];i=0;g:{if(d>>>0<4){f=0;d=e;break g}b=d&-4;f=0;h=0;while(1){f=K[e+3|0]+P(K[e+2|0]+P(K[e+1|0]+P(K[e|0]+P(f,17)|0,17)|0,17)|0,17)|0;d=e+4|0;e=d;h=h+4|0;if((b|0)!=(h|0))continue;break}}if(!c)break d; +while(1){f=K[d|0]+P(f,17)|0;d=d+1|0;i=i+1|0;if((c|0)!=(i|0))continue;break}}b=J[a+12>>2]+((f>>>0)%M[a+4>>2]<<2)|0;J[g+8>>2]=J[b>>2];J[b>>2]=g;J[a+8>>2]=J[a+8>>2]+1}}function Y5(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;j=J[a+532>>2];if(!j)return 6;l=-1;d=J[j>>2];a:{if(!d)break a;e=J[j+4>>2];b:{if(e){m=b>>>0>e>>>0?e:b;d=e;while(1){h=0;i=65536;f=0;c:{if(!d)break c;while(1){d:{if(h>>>0>=m>>>0){i=i>>1;break d}f=J[(h<<2)+c>>2];f=g>>>h&1?f:65536-f|0;if((f|0)<=0){i=0;f=d;break c}if(f>>> +0>65535)break d;i=Wc(i,f);e=J[j+4>>2]}d=e;f=d;h=h+1|0;if(h>>>0>>0)continue;break}}d=J[j+136>>2]+(g<<2)|0;if(J[d>>2]!=(i|0)){J[d>>2]=i;k=1}d=f;g=g+1|0;if(g>>>0>2])continue;break}break b}i=d&3;c=J[j+136>>2];if(d>>>0>=4){j=d&-4;d=0;while(1){e=h<<2;g=e+c|0;if(J[g>>2]!=65536){J[g>>2]=65536;k=1}g=c+(e|4)|0;if(J[g>>2]!=65536){J[g>>2]=65536;k=1}g=c+(e|8)|0;if(J[g>>2]!=65536){J[g>>2]=65536;k=1}e=c+(e|12)|0;if(J[e>>2]!=65536){J[e>>2]=65536;k=1}h=h+4|0;d=d+4|0;if((j|0)!=(d|0))continue;break}}if(!i)break b; +while(1){d=c+(h<<2)|0;if(J[d>>2]!=65536){J[d>>2]=65536;k=1}h=h+1|0;f=f+1|0;if((i|0)!=(f|0))continue;break}}if(!k)break a;l=0;J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15}return l|0}function SDa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=fc-16|0;fc=g;f=vc(60);J[f+20>>2]=0;J[f>>2]=2398124;J[f+4>>2]=0;J[f+8>>2]=0;J[f+12>>2]=0;H[f+16|0]=0;h=J[685894];J[f+56>>2]=-1;H[f+52|0]=0;J[f+48>>2]=h;J[f+44>>2]=0;J[f+40>>2]=h;J[f+36>>2]=0;J[f+32>>2]=h;J[f+28>>2]=0;J[f+24>>2]=h;J[a>>2]=0;vd(a,f);J[699344]= +0;da(5280,f|0,b|0);b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{if((b|0)==1)break e;J[699344]=0;da(5281,f|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[d>>2];if(!b)break d;c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,g+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c}b=Z()|0;break b}J[g+12>>2]=0}J[699344]=0;aa(5153,f+44|0,g+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){a=J[g+12>>2];J[g+12>>2]=0;if(!a)break a;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break a; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}b=Z()|0;zc(g+12|0)}zc(a);ba(b|0);B()}a=J[f+44>>2];a=J[(a?a+12|0:2743576)>>2];H[f+52|0]=e&63;J[f+48>>2]=a;fc=g+16|0}function FBb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=J[a+44>>2];e=J[a+52>>2];b=kc[J[J[e>>2]+20>>2]](e,2)|0;J[c+72>>2]=1;d=kc[J[J[e>>2]+20>>2]](e,1)|0;a:{b:{c:{if((b|0)<4)break c;f=b-3|0;b=J[c+80>>2];if(!d)while(1){if(!b){f=f-4|0;b=kc[J[J[e>>2]+20>>2]](e,4)|0}g=J[c+76>>2];d=kd(1,b);J[c+64>> +2]=d;if(!d)break b;J[c+84>>2]=b;J[c+68>>2]=d;if((b|0)>0)while(1){d=kc[J[J[e>>2]+20>>2]](e,1)|0;H[J[c+64>>2]+g|0]=d;d=b-1|0;g=g+1|0;f=f-1|0;if(!f)break a;h=(b|0)>1;b=d;if(h)continue;break}J[c+76>>2]=g;b=b-1|0;J[c+80>>2]=b;if((f|0)>0)continue;break c}while(1){if(!b){f=f-4|0;b=kc[J[J[e>>2]+20>>2]](e,4)|0}g=J[c+76>>2];h=g+b|0;d=kd(1,h);if(!d){J[J[a>>2]+20>>2]=1;return}i=J[c+64>>2];j=xc(d,i,b);d=c;if(i){uc(i);h=J[c+76>>2]+b|0}J[d+84>>2]=h;J[c+68>>2]=j;J[c+64>>2]=j;if((b|0)>0)while(1){d=kc[J[J[e>>2]+20>> +2]](e,1)|0;H[J[c+64>>2]+g|0]=d;d=b-1|0;g=g+1|0;f=f-1|0;if(!f)break a;h=(b|0)>1;b=d;if(h)continue;break}J[c+76>>2]=g;b=b-1|0;J[c+80>>2]=b;if((f|0)>0)continue;break}}return}J[J[a>>2]+20>>2]=1;return}J[c+76>>2]=g;J[c+80>>2]=d}function gLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=vc(8);J[699344]=0;d=aa(3349,e|0,779265)|0;f=J[699344];J[699344]=0;if((f|0)!=1)a:{Qh(d,J[a+20>>2]);e=J[a+28>>2];if(e)while(1){od(d,804129);Qh(d,J[e>>2]);od(d,804824);f=0;g=J[e+4>>2];if(J[g>>2]>0)while(1){b:{c:{d:{e:{f:{g:{h= +K[J[g+4>>2]+f|0];switch(h-34|0){case 4:break e;case 28:break f;case 26:break g;case 0:break d;default:break c}}od(d,805433);break b}od(d,805852);break b}od(d,806271);break b}od(d,806729);break b}Kd(d,h<<24>>24)}f=f+1|0;if((f|0)>2])continue;break}od(d,801228);e=J[e+12>>2];if(e)continue;break}e=kc[J[J[a>>2]+40>>2]](a)|0;od(d,e?790277:789312);g=kc[b|0](c,J[d+4>>2],J[d>>2])|0;uc(Zc(d));f=0;h:{if(!g)break h;if(e){while(1){if(!(kc[J[J[e>>2]+52>>2]](e,b,c)|0))break h;e=kc[J[J[e>>2]+44>>2]](e)|0;if(e)continue; +break}e=vc(8);J[699344]=0;d=_(3351,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;od(d,795057);Qh(d,J[a+20>>2]);od(d,790277);a=kc[b|0](c,J[d+4>>2],J[d>>2])|0;uc(Zc(d));if(!a)break h}f=1}return f|0}a=Z()|0;uc(e);ba(a|0);B()}function jk(a,b){var c=0,d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;a:{b:{if(!eg(18836,H[b|0])){J[698583]=28;break b}d=2;if(!eg(b,43))d=K[b|0]!=114;d=eg(b,120)?d|128:d;d=eg(b,101)?d|524288:d;e=d;g=d|64;d=K[b|0];e=(d|0)==114?e:g;e=(d|0)==119?e|512:e;J[f>>2]=438;J[f+4>>2]=0;a=Xa(-100,a|0, +((d|0)==97?e|1024:e)|32768,f|0)|0;if(a>>>0>=4294963201){J[698583]=0-a;a=-1}if((a|0)<0)break a;d=fc-32|0;fc=d;c:{d:{e:{if(!eg(18836,H[b|0])){J[698583]=28;break e}c=Dc(1176);if(c)break d}b=0;break c}Ac(c,0,144);if(!eg(b,43))J[c>>2]=K[b|0]==114?8:4;f:{if(K[b|0]!=97){b=J[c>>2];break f}b=$a(a|0,3,0)|0;if(!(b&1024)){b=b|1024;J[d+16>>2]=b;J[d+20>>2]=b>>31;$a(a|0,4,d+16|0)|0}b=J[c>>2]|128;J[c>>2]=b}J[c+80>>2]=-1;J[c+48>>2]=1024;J[c+60>>2]=a;J[c+44>>2]=c+152;g:{if(b&8)break g;J[d>>2]=d+24;J[d+4>>2]=0;if(yb(a| +0,21523,d|0)|0)break g;J[c+80>>2]=10}J[c+40>>2]=6726;J[c+36>>2]=6727;J[c+32>>2]=6728;J[c+12>>2]=6729;if(!K[2794361])J[c+76>>2]=-1;b=J[698609];J[c+56>>2]=b;if(b)J[b+52>>2]=c;J[698609]=c;b=c}fc=d+32|0;c=b;if(c)break a;Ma(a|0)|0}c=0}fc=f+16|0;return c}function pxa(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;f=fc-32|0;fc=f;a:{if(K[a+88|0]){c=J[a+84>>2];break a}m=a,n=kc[J[J[a>>2]+36>>2]](a)|0,J[m+72>>2]=n;m=a,n=kc[J[J[a>>2]+44>>2]](a)|0,J[m+76>>2]=n;m=a,n=kc[J[J[a>>2]+40>>2]](a)| +0,J[m+80>>2]=n;c=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}b:{c:{if(J[a+92>>2]>0){g=J[a+80>>2];i=c-g|0;h=J[a+72>>2];j=J[a+76>>2]-h|0;k=J[a+128>>2];l=J[a+104>>2];c=0;while(1){if(!(J[a+116>>2]<=(c|0)&J[a+120>>2]>=(c|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}d=(c-J[a+108>>2]<<2)+l|0;e=J[b>>2];J[d>>2]=((P(J[b+8>>2]-e|0,J[d>>2]-h|0)|0)/(j|0)|0)+e;if(!(J[a+140>>2]<=(c|0)&J[a+144>>2]>=(c|0))){a=Qc(f+8|0,2404388,2405416, +619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}d=(c-J[a+132>>2]<<2)+k|0;e=J[b+4>>2];J[d>>2]=((P(J[b+12>>2]-e|0,J[d>>2]-g|0)|0)/(i|0)|0)+e;c=c+1|0;if((c|0)>2])continue;break}}fc=f+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function LJa(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=fc-16|0;fc=g;a:{b:{c:{if(b){if(!a)break c;if(!d)break b;d:{if(c>>>0<=1){Nc(d,1,2368524,0);a=0;break d}if(H[a+176|0]&1){Nc(d,1,2368550,0);a=0;break d}a=J[a+156>> +2]+P(J[a+192>>2],5644)|0;H[a+5640|0]=K[a+5640|0]|2;wd(b,g+12|0,1);h=a+5164|0;e=J[a+5164>>2];e:{if(!e){if(J[a+5160>>2])break a;f=J[g+12>>2]+1|0;e=Ge(f,8);J[h>>2]=e;if(!e){Nc(d,1,2368682,0);a=0;break d}J[a+5160>>2]=f;break e}f=J[g+12>>2];if(f>>>0>2])break e;i=e;e=f+1|0;f=ch(i,e<<3);if(!f){Nc(d,1,2368682,0);a=0;break d}J[h>>2]=f;a=a+5160|0;i=J[a>>2];Ac(f+(i<<3)|0,0,e-i<<3);J[a>>2]=e;e=J[h>>2]}a=J[g+12>>2];if(J[(a<<3)+e>>2]){J[g>>2]=a;Nc(d,1,2368720,g);a=0;break d}a=c-1|0;c=ef(a);e=J[h>>2]; +f=J[g+12>>2];J[e+(f<<3)>>2]=c;if(!c){Nc(d,1,2368682,0);a=0;break d}J[(e+(f<<3)|0)+4>>2]=a;xc(J[e+(J[g+12>>2]<<3)>>2],b+1|0,a);a=1}fc=g+16|0;return a|0}fa(2365733,2358254,4039,2368507);B()}fa(2358373,2358254,4040,2368507);B()}fa(2358486,2358254,4041,2368507);B()}fa(2368651,2358254,4066,2368507);B()}function xGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;f=c+36|0;J[f>>2]=0;J[f+4>>2]=0;H[f+8|0]=0;J[699344]=0;g=$g(a);d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if((d|0)!=1)while(1){J[699344]= +0;e=aa(4975,a|0,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!e)break c;J[699344]=0;e=c+12|0;da(4962,e|0,a|0);d=J[699344];J[699344]=0;if((d|0)==1)break i;J[699344]=0;e=aa(4985,c+24|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break h;J[699344]=0;dg(f,e);d=J[699344];J[699344]=0;if((d|0)==1)break g;Rc(e);if(H[c+23|0]<0)uc(J[c+12>>2]);J[699344]=0;e=Qd(f,2385100);d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!e)continue;J[699344]=0;J[c>>2]=0;J[c+4>>2]=0;H[c+8|0]=0;d=J[699344];J[699344]=0;if((d| +0)==1)break e;J[699344]=0;ia(5054,a|0,b|0,c|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break d;Rc(c);continue}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break f}a=Z()|0;Rc(e)}if(H[c+23|0]>=0)break a;uc(J[c+12>>2]);break a}a=Z()|0;break a}a=Z()|0;Rc(c);break a}Rc(f);fc=c+48|0;return}a=Z()|0}Rc(f);ba(a|0);B()}function mxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[a+2308>>2];a:{if(!e)break a;d=J[a+2312>>2];b=J[a+2316>>2];a=J[a+2300>>2];if(K[a+56|0]){if((e|0)!=1){f=e&-2;while(1){c=L[d>>1];if((c|0)!=L[a+836>> +1])I[b+6>>1]=65535;I[b+4>>1]=c;I[b+2>>1]=c;I[b>>1]=c;c=L[d+2>>1];if((c|0)!=L[a+836>>1])I[b+14>>1]=65535;I[b+12>>1]=c;I[b+10>>1]=c;I[b+8>>1]=c;b=b+16|0;d=d+4|0;g=g+2|0;if((f|0)!=(g|0))continue;break}}if(!(e&1))break a;c=L[a+836>>1];a=L[d>>1];if((c|0)!=(a|0))I[b+6>>1]=65535;I[b+4>>1]=a;I[b+2>>1]=a;I[b>>1]=a;return 0}if(e>>>0>=4){f=e&-4;a=0;while(1){c=L[d>>1];I[b+4>>1]=c;I[b+2>>1]=c;I[b>>1]=c;I[b+6>>1]=65535;c=L[d+2>>1];I[b+12>>1]=c;I[b+10>>1]=c;I[b+8>>1]=c;I[b+14>>1]=65535;c=L[d+4>>1];I[b+20>>1]=c; +I[b+18>>1]=c;I[b+16>>1]=c;I[b+22>>1]=65535;c=L[d+6>>1];I[b+28>>1]=c;I[b+26>>1]=c;I[b+24>>1]=c;I[b+30>>1]=65535;b=b+32|0;d=d+8|0;a=a+4|0;if((f|0)!=(a|0))continue;break}}c=e&3;if(!c)break a;a=0;while(1){e=L[d>>1];I[b+4>>1]=e;I[b+2>>1]=e;I[b>>1]=e;I[b+6>>1]=65535;b=b+8|0;d=d+2|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}return 0}function CDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d:{b=J[b>>2];e:{f:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+8|0,b|0,1); +b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[c+8>>2];if(!b)break f;d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break e;b=Z()|0;break c}J[c+8>>2]=0}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;g:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break g;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break g;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break g}break a}b=Z()|0;zc(c+12| +0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+8>>2];J[c+8>>2]=0;h:{if(!b)break h;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break h;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+16|0;return a|0}b=Z()|0;break b}zc(c+8|0)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function TG(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=fc-16|0;fc=f;a:{b:{h=J[a+56>>2];j=J[a+60>>2];c:{if((h|0)!=(j|0)){while(1){d:{b=J[h>>2]; +if(b){i=b+240|0;c=0;J[f+12>>2]=0;J[f+4>>2]=0;J[f+8>>2]=0;d=0;b=b+256|0;e=J[b+4>>2];g=J[b>>2];e:{if((e|0)==(g|0))break e;d=e-g|0;if((d|0)<0){J[699344]=0;$(2494,f+4|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;B()}d=vc(d);e=d;g=J[b>>2];b=J[b+4>>2];if((g|0)==(b|0))break e;while(1){O[e>>3]=O[g>>3];e=e+8|0;g=g+8|0;if((b|0)!=(g|0))continue;break}}f:{while(1){g:{J[699344]=0;b=J[i+8>>2]-J[i+4>>2]>>2;e=J[699344];J[699344]=0;h:{if((e|0)!=1){if(b>>>0<=c>>>0)break g;J[699344]=0;b=aa(6556,i|0,c|0)|0;e=J[699344]; +J[699344]=0;if((e|0)!=1)break h}c=Z()|0;if(!d)break a;uc(d);ba(c|0);B()}if(J[b>>2]==32){O[a+112>>3]=k;l=1;c=2;break f}else{k=k+O[(c<<3)+d>>3];c=c+1|0;continue}}break}c=l?2:0}if(d)uc(d);if(c)break d}h=h+8|0;if((j|0)!=(h|0))continue}break}if(l)break c}O[a+112>>3]=O[a+48>>3]}fc=f+16|0;return}c=Z()|0;a=J[f+4>>2];if(!a)break a;J[f+8>>2]=a;uc(a)}ba(c|0);B()}function Ur(a){var b=0,c=0,d=0,e=0;if(a){d=J[a+32>>2];if(d)c=J[d+80>>2];a:{if(!J[693393])break a;d=J[693391];if(!d)break a;kc[d|0](a)}b=J[a+12>>2]; +if(b)while(1){d=J[b+24>>2];e=J[b+4>>2];if(!(1<>>0<=17:0)){Wj(b);Fl(b)}b=d;if(b)continue;break}e=J[a+8>>2];b:{if(!e)break b;if(c){d=c;while(1){b=J[d+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break b;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}}kc[J[663199]](e)}e=J[a+56>>2];c:{if(!e)break c;if(c){d=c;while(1){b=J[d+16>>2];if(b)while(1){if(e>>>0<=M[b+4>>2]&e>>>0>=b+20>>>0)break c;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}}kc[J[663199]](e)}d= +J[a+52>>2];d:{if(!d)break d;if(c)while(1){b=J[c+16>>2];if(b)while(1){if(d>>>0<=M[b+4>>2]&d>>>0>=b+20>>>0)break d;b=J[b>>2];if(b)continue;break}c=J[c+20>>2];if(c)continue;break}kc[J[663199]](d)}c=J[a+36>>2];if(c)Xo(c,3340);c=J[a+40>>2];if(c)Xo(c,3336);c=J[a+44>>2];if(c)Xo(c,3338);c=J[a+48>>2];if(c)k2(c);c=J[a+60>>2];if(c)k2(c);kc[J[663199]](a)}}function Oza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;J[a+32>>2]=0;J[a+24>>2]=-1717986918;J[a+28>>2]=1073846681;J[a+16>>2]=26;J[a+20>>2]=300; +J[a+8>>2]=0;J[a+12>>2]=0;a:{b:{b=Up(b,c+38|0,10);if(!b){a=Qc(c+12|0,J[685886],2394924,120,2417252,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if((b|0)<=4){a=Qc(c+12|0,2386532,2394924,122,2417252,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}J[a+8>>2]=K[c+39|0]|K[c+38|0]<<8;J[a+12>>2]=K[c+41|0]|K[c+40|0]<<8;d=K[c+42|0];J[a+16>>2]=d;c:{if((b|0)==5)break c;f=K[c+43|0];if((f|0)==255)break c;J[a+16>>2]=d|f<<8}d:{if(b>>>0<8)break d;d=K[c+ +45|0];if((d|0)==255)break d;J[a+20>>2]=K[c+44|0]|d<<8}e:{if(b>>>0>=9){e=+K[c+46|0]*.1;O[a+24>>3]=e;break e}e=O[a+24>>3]}d=K[c+47|0]&7;g=.3;f:{if(!(e<.3)){g=5;if(!(e>5))break f}O[a+24>>3]=g}if(J[a+20>>2]-6001>>>0<=4294961319)J[a+20>>2]=300;b=b>>>0<=9?-2:d-2|0;if(b>>>0<=4)b=J[(b<<2)+2417312>>2];else b=0;J[a+32>>2]=b;fc=c+48|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function vQ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=fc+-64|0;fc=c;b=J[a+584>>2];if(!K[b+206|0]){a:{b:{c:{if(L[a+98>>1]!=3)break c;switch(L[a+ +90>>1]-6|0){case 0:case 4:break b;default:break c}}if(K[b+207|0])le(J[a+628>>2],96624,76026,0);H[b+210|0]=0;I[b+208>>1]=257;break a}H[b+205|0]=1;H[b+206|0]=1;e=K[b+208|0];h=K[b+209|0];sQ(a);f=K[b+210|0];d:{e:{f:{if(f){H[b+205|0]=0;I[b+208>>1]=257;d=1;g=1;if((e|0)==1)break f;break d}H[b+205|0]=0;d=e;g=K[b+208|0];if((d|0)!=(g|0))break e}if(f){e=d;break d}e=d;if(K[b+209|0]==(h|0))break d}d=K[b+209|0];f=J[a+628>>2];if(!K[b+207|0]){J[c+36>>2]=d;J[c+32>>2]=g;le(f,96624,76271,c+32|0);break d}J[c+60>>2]= +h;J[c+56>>2]=e;J[c+52>>2]=d;J[c+48>>2]=g;le(f,96624,76957,c+48|0)}if(K[b+210|0]){d=J[a+628>>2];g:{if(!K[b+207|0]){le(d,96624,77612,0);break g}J[c+20>>2]=h;J[c+16>>2]=e;le(d,96624,78207,c+16|0)}if(K[b+210|0])break a}e=K[b+208|0];d=K[b+209|0];if(e>>>0>=d>>>0)break a;a=J[a+628>>2];J[c+4>>2]=d;J[c>>2]=e;le(a,96624,78898,c)}H[b+206|0]=1;fc=c- -64|0;return}fa(75548,70472,943,96624);B()}function W9a(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;g=c<<2;e= +J[g+J[b+8>>2]>>2];k=J[g+J[b+4>>2]>>2];b=J[b>>2]+(c<<3)|0;j=J[b>>2];l=J[b+4>>2];b=J[d+4>>2];c=J[d>>2];g=J[a+332>>2];d=J[a+472>>2];o=J[d+28>>2];p=J[d+24>>2];q=J[d+20>>2];r=J[d+16>>2];d=J[a+112>>2];if(d>>>0>=2){n=d>>>1|0;while(1){d=K[k|0]<<2;h=J[d+q>>2];i=K[e|0]<<2;m=J[i+p>>2];s=J[d+o>>2];d=g+J[i+r>>2]|0;f=K[j|0];H[c|0]=K[d+f|0];i=g+(m+s>>16)|0;H[c+1|0]=K[i+f|0];m=f;f=g+h|0;H[c+2|0]=K[m+f|0];h=K[j+1|0];H[c+3|0]=K[h+d|0];H[c+4|0]=K[h+i|0];H[c+5|0]=K[h+f|0];h=K[l|0];H[b|0]=K[h+d|0];H[b+1|0]=K[h+i|0];H[b+ +2|0]=K[h+f|0];m=d;d=K[l+1|0];H[b+3|0]=K[m+d|0];H[b+4|0]=K[d+i|0];H[b+5|0]=K[d+f|0];b=b+6|0;l=l+2|0;c=c+6|0;j=j+2|0;e=e+1|0;k=k+1|0;n=n-1|0;if(n)continue;break}d=J[a+112>>2]}if(d&1){a=K[k|0]<<2;d=J[a+q>>2];e=K[e|0]<<2;k=J[e+p>>2];i=J[a+o>>2];e=g+J[e+r>>2]|0;a=K[j|0];H[c|0]=K[e+a|0];j=g+(i+k>>16)|0;H[c+1|0]=K[j+a|0];f=c;c=d+g|0;H[f+2|0]=K[c+a|0];a=K[l|0];H[b|0]=K[a+e|0];H[b+1|0]=K[a+j|0];H[b+2|0]=K[a+c|0]}}function I_a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!a)break a;i=J[a+8>>2];f= +J[a+52>>2];g=fc-16|0;fc=g;c=kc[J[663195]](60)|0;b:{if(!c){J[g>>2]=2652;Hc(0,0,0,0,0,2,2,3,2652,0,0,0,32879,g);break b}J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+4>>2]=8;J[c+8>>2]=774763;if(b){d=b;while(1){e=d;d=d+1|0;if(K[e|0])continue;break}d=0;h=e-b|0;c:{if((h|0)<0)break c;e=kc[J[663198]](h+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break c}d= +xc(e,b,h);H[h+d|0]=0}J[c+40>>2]=d}if(!J[693393])break b;b=J[693390];if(!b)break b;kc[b|0](c)}fc=g+16|0;if(!c)break a;b=c;J[c+32>>2]=i;d:{if(!J[a+280>>2])break d;d=J[a+36>>2];if(!d)break d;d=J[d+28>>2];I[c+56>>1]=(d|0)>=65535?65535:d}e:switch(J[a+216>>2]-1|0){case 0:dh(J[J[a+8>>2]+44>>2],b);return;case 1:dh(J[J[a+8>>2]+48>>2],b);return;default:break e}if(!f){dh(J[a+8>>2],b);return}if(J[f+4>>2]==1){dh(f,b);return}IC(f,b)}}function C9(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=fc-16|0;fc=b;d=!a; +a:{if(d|(d?0:J[a+36>>2]))break a;Df(a,b+12|0,b+8|0,b+4|0);d=J[b+4>>2];if((d|0)>8)break a;if((d|0)==8){e=Ff(0,a);break a}c=xh(J[b+12>>2],J[b+8>>2],8);if(!c)break a;if(!(!c|!a|(a|0)==(c|0))){J[c+20>>2]=J[a+20>>2];J[c+24>>2]=J[a+24>>2]}i=a?J[a+40>>2]:0;j=a?J[a+12>>2]:-1;k=c?J[c+40>>2]:0;d=c?J[c+12>>2]:-1;if(J[b+8>>2]>0)while(1){f=(P(e,d)<<2)+k|0;g=(P(e,j)<<2)+i|0;b:{c:{d:switch(J[b+4>>2]-1|0){case 3:h=J[b+12>>2];break c;case 1:if(J[b+12>>2]<=0)break b;a=0;while(1){H[a+f^3]=J[(a>>>2&1073741820)+g>>2]>>> +((a^-1)<<1)&3;a=a+1|0;h=J[b+12>>2];if((a|0)<(h|0))continue;break}break c;case 0:break d;default:break b}a=0;if(J[b+12>>2]<=0)break b;while(1){H[a+f^3]=J[(a>>>3&536870908)+g>>2]>>>(a^-1)&1;a=a+1|0;if((a|0)>2])continue;break}break b}a=0;if((h|0)<=0)break b;while(1){H[a+f^3]=J[(a>>>2&1073741820)+g>>2]>>>((a^-1)<<1)&3;a=a+1|0;if((a|0)>2])continue;break}}e=e+1|0;if((e|0)>2])continue;break}e=c}fc=b+16|0;return e}function u7(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=fc-16|0;fc=g;d= +3;h=J[b+188>>2];a:{if(!h)break a;f=b+196|0;i=J[b+192>>2];while(1){j=i+(e<<4)|0;if(J[j>>2]==(c|0)){d=83;c=J[j+12>>2];e=J[a+8>>2];if(c>>>0>>0)break a;if(kg(a,c-e|0))break a;J[g+12>>2]=0;c=oj(a,g+12|0);d=J[g+12>>2];if(d)break a;i=c&-256;if((i|256)==256){e=c&4;b:{if(e){d=Te(a,260416,f);break b}d=Te(a,260480,f)}J[g+12>>2]=d;if(d)break a;d=J[b+204>>2];f=d>>31;if((d^f)-f>>>0>=32768)J[b+204>>2]=(d|0)<0?-32767:32767;d=J[b+208>>2];f=d>>31;if((d^f)-f>>>0>=32768)J[b+208>>2]=(d|0)<0?-32767:32767;f=b+216|0; +d=Te(a,e?260544:260576,f);J[g+12>>2]=d;if(d)break a;h=c&255;e=b+232|0;d=gN(a,h,e);J[g+12>>2]=d;if(d)break a;c=b+248|0;if((i|0)==256){d=gN(a,h,c);J[g+12>>2]=d;if(d)break a;d=gN(a,h,b+264|0);break a}a=J[f+4>>2];J[c>>2]=J[f>>2];J[c+4>>2]=a;a=J[f+12>>2];J[c+8>>2]=J[f+8>>2];J[c+12>>2]=a;a=J[e+12>>2];J[b+272>>2]=J[e+8>>2];J[b+276>>2]=a;a=J[e+4>>2];J[b+264>>2]=J[e>>2];J[b+268>>2]=a}d=0;break a}e=e+1|0;if((h|0)!=(e|0))continue;break}}fc=g+16|0;return d}function sI(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+ +28>>2];g=a+32|0;if((c|0)!=(g|0))while(1){e=J[c+20>>2];if(e){if(H[e+23|0]<0)uc(J[e+12>>2]);b=J[e>>2];if(b){f=b;d=J[e+4>>2];if((b|0)!=(d|0)){while(1){f=d-56|0;if(H[d-45|0]<0)uc(J[f>>2]);d=f;if((b|0)!=(d|0))continue;break}f=J[e>>2]}J[e+4>>2]=b;uc(f)}uc(e)}b=J[c+4>>2];a:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break a}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(g|0))continue;break}Ht(a+28|0,J[a+32>>2]);J[a+28>>2]=g;J[a+32>>2]=0;J[a+36>>2]=0;b=J[a+48>>2];d=J[a+44>>2];if((b| +0)!=(d|0))while(1){c=b-12|0;if(H[b-1|0]<0)uc(J[c>>2]);b=c;if((d|0)!=(b|0))continue;break}J[a+48>>2]=d;c=J[a+60>>2];d=a- -64|0;if((c|0)!=(d|0))while(1){b=J[c+28>>2];if(b)uc(pI(b));b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break b}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}aB(a+60|0,J[a+64>>2]);J[a+60>>2]=d;J[a+64>>2]=0;J[a+68>>2]=0;b=J[a+24>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+24>>2]=0}}function Yo(a){var b=0,c=0,d=0,e=0;b=-2;a:{if(!a|!J[a+ +32>>2])break a;d=J[a+36>>2];if(!d)break a;c=J[a+28>>2];if(!c|J[c>>2]!=(a|0))break a;b:{c:{e=J[c+4>>2];switch(e-57|0){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:break a; +case 0:case 12:case 16:case 34:case 46:case 56:break b;default:break c}}if((e|0)==666)break b;if((e|0)!=42)break a}b=J[c+8>>2];if(b){kc[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+68>>2];if(b){kc[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+64>>2];if(b){kc[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}b=J[c+56>>2];if(b){kc[d|0](J[a+40>>2],b);d=J[a+36>>2];c=J[a+28>>2]}kc[d|0](J[a+40>>2],c);J[a+28>>2]=0;b=(e|0)==113?-3:0}return b}function Fn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-32|0;fc= +d;c=vc(544);J[699344]=0;J[d+4>>2]=0;aa(5145,d+4|0,b|0)|0;b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[c+8>>2]=1;J[c+4>>2]=0;J[c>>2]=2397768;b=J[d+4>>2];J[c+536>>2]=0;J[c+540>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+12>>2]=b;e=c+16|0;c:{d:{if(!b){J[699344]=0;a=ja(5178,d+8|0,2393444,2387711,1712,2398044,0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;B()}b=Z()|0;break d}b=Z()|0;Kc(a);break d}if(!J[b+4>>2])break c;J[699344]=0;aa(5145,e|0,b| +0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0}zc(e);nd(c);zc(d+4|0);break b}J[a>>2]=0;J[699344]=0;aa(5145,a|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[d+4>>2];J[d+4>>2]=0;f:{if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+32|0;return}a=Z()|0;zc(d+4|0);ba(a|0);B()}b=Z()|0}uc(c);ba(b|0);B()}ea(0)|0;Bc();B()}function JZa(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;var h=0,i=0,j=0,k=0;i=fc-32|0;fc=i;h=vc(4);J[699344]=0;k=aa(3363,h|0,a+12|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1){h=vc(44);J[h>>2]=0;J[h+4>>2]=0;J[h+16>>2]=0;J[h+20>>2]=0;J[h+8>>2]=0;J[h+12>>2]=0;a:{if((c|0)==(h|0))break a;if(H[c+11|0]>=0){j=J[c+4>>2];J[h>>2]=J[c>>2];J[h+4>>2]=j;J[h+8>>2]=J[c+8>>2];break a}Gf(h,J[c>>2],J[c+4>>2])}J[h+36>>2]=g;J[h+32>>2]=f;J[h+28>>2]=e;J[h+24>>2]=d;c=J[b+4>>2];b=J[b>>2];J[i+16>>2]=h;J[i+8>>2]=b;J[i+12>>2]=c;e=i+8|0;d=a;c=a+4|0;b=J[a+ +4>>2];b:{c:{if(!b){a=c;break c}while(1){a=b;f=b+16|0;if(fq(e,f)){c=b;b=J[b>>2];if(b)continue;break c}if(fq(f,e)){c=a+4|0;b=J[a+4>>2];if(b)continue;break c}break}b=J[c>>2];f=0;if(b)break b}b=vc(28);f=J[e+4>>2];J[b+16>>2]=J[e>>2];J[b+20>>2]=f;e=J[e+8>>2];J[b+8>>2]=a;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=e;J[c>>2]=b;a=b;e=J[J[d>>2]>>2];if(e){J[d>>2]=e;a=J[c>>2]}Oc(J[d+4>>2],a);J[d+8>>2]=J[d+8>>2]+1;f=1}H[i+28|0]=f;J[i+24>>2]=b;uc(B4(k));fc=i+32|0;return h|0}a=Z()|0;uc(h);ba(a|0);B()}function bvb(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;var h=0,i=0,j=0,k=0,l=0;a:{b:{if(f){if(((c+1|0)/2|0)>(b|0))break b;if(!d)break a;k=c<<1;l=b<<1;b=0;while(1){I[g>>1]=L[f>>1];I[g+2>>1]=L[f+2>>1];I[g+4>>1]=L[f+4>>1];a=g+6|0;h=L[e+6>>1];c:{if((h|0)==L[f+6>>1]){I[a>>1]=h;break c}h=e+6|0;i=K[h+1|0]<<8;j=K[h|0]|i;h=i|K[h|0];i=(h<<8|h>>>8)&65535;h=K[f+6|0]|K[f+7|0]<<8;h=i+((P(l,((h<<8|h>>>8)&65535)-((j<<8|j>>>8)&65535)|0)+c|0)/(k|0)|0)&65535;h=h<<8|h>>>8;H[a|0]=h;H[a+1|0]=h>>>8}f=f+8|0;e=e+8|0;g=g+8|0;b= -b+1|0;if((d|0)!=(b|0))continue;break}break a}tc(g,e,d<<3);break a}if(!d)break a;k=c<<1;l=b<<1;b=0;while(1){I[g>>1]=L[e>>1];I[g+2>>1]=L[e+2>>1];I[g+4>>1]=L[e+4>>1];a=g+6|0;h=L[e+6>>1];d:{if((h|0)==L[f+6>>1]){I[a>>1]=h;break d}h=e+6|0;i=K[h+1|0]<<8;j=K[h|0]|i;h=i|K[h|0];i=(h<<8|h>>>8)&65535;h=K[f+6|0]|K[f+7|0]<<8;h=i+((P(l,((h<<8|h>>>8)&65535)-((j<<8|j>>>8)&65535)|0)+c|0)/(k|0)|0)&65535;h=h<<8|h>>>8;H[a|0]=h;H[a+1|0]=h>>>8}f=f+8|0;e=e+8|0;g=g+8|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}return 0}function eub(a){a= +b+1|0;if((d|0)!=(b|0))continue;break}break a}xc(g,e,d<<3);break a}if(!d)break a;k=c<<1;l=b<<1;b=0;while(1){I[g>>1]=L[e>>1];I[g+2>>1]=L[e+2>>1];I[g+4>>1]=L[e+4>>1];a=g+6|0;h=L[e+6>>1];d:{if((h|0)==L[f+6>>1]){I[a>>1]=h;break d}h=e+6|0;i=K[h+1|0]<<8;j=K[h|0]|i;h=i|K[h|0];i=(h<<8|h>>>8)&65535;h=K[f+6|0]|K[f+7|0]<<8;h=i+((P(l,((h<<8|h>>>8)&65535)-((j<<8|j>>>8)&65535)|0)+c|0)/(k|0)|0)&65535;h=h<<8|h>>>8;H[a|0]=h;H[a+1|0]=h>>>8}f=f+8|0;e=e+8|0;g=g+8|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}return 0}function Yyb(a){a= a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=6;e=e+1|0;b=192}H[c|0]=P((K[c|0]>>>6)+((b&h)>>>d)&3,85);d=d-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;g=g+1|0;f=J[a+588>>2];if((g|0)<(f|0))continue;break}break b}if((b|0)<=0)break a;b=0;while(1){if(!(b& -255)){h=K[e|0];d=6;e=e+1|0;b=192}f=(b&h)>>>d|0;H[c|0]=f>>>0<4?P(f,85):0;d=d-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;g=g+1|0;f=J[a+588>>2];if((g|0)<(f|0))continue;break}}if((f|0)<=0)break a;b=J[a+540>>2];d=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;g=J[a+636>>2]+J[a+616>>2]|0;b=0;c=0;f=0;e=0;while(1){if(!(c&255)){f=K[g|0];c=192;g=g+1|0;b=6}H[d|0]=(c&f&255)>>>b;b=b-2|0;c=(c&252)>>>2|0;d=J[a+584>>2]+d|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function rm(a){var b= -0,c=0,d=0,e=0;te(a,Ac(a)<<1);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!Ac(a)){if((Ac(a)|0)!=1380401731)break k;if((Ac(a)|0)!=3)break j;if(Ac(a))break i;if((Ac(a)|0)!=1382293536)break h;if((Ac(a)|0)!=1685026146)break g;c=be(a);if(Ac(a))break f;if((Ac(a)|0)!=1198681632)break e;if((Ac(a)|0)!=1685026146)break d;d=be(a);if(Ac(a))break c;if((Ac(a)|0)!=1114382368)break b;if((Ac(a)|0)!=1685026146)break a;if(R(d)<2147483648)b=~~d;else b=-2147483648;e=b&255;if(R(c)<2147483648)b=~~c;else b=-2147483648;b=b&255;c= -be(a);l:{if(R(c)<2147483648){a=~~c;break l}a=-2147483648}return a&255|(e<<8|b<<16)|-16777216}fa(221262,219843,414,224858);B()}fa(221879,219843,417,224858);B()}fa(222127,219843,422,224858);B()}fa(221262,219843,426,224858);B()}fa(222810,219843,429,224858);B()}fa(223132,219843,433,224858);B()}fa(221262,219843,439,224858);B()}fa(223387,219843,442,224858);B()}fa(223132,219843,446,224858);B()}fa(221262,219843,452,224858);B()}fa(223564,219843,455,224858);B()}fa(223132,219843,459,224858);B()}function qr(a){var b= -0,c=0,d=0,e=0,f=0,g=0;c=bc-32|0;bc=c;e=a+528|0;f=a+456|0;b=_t(e,f);d=O[a+600>>3];a:{if(b){if(!(d>1))break a;O[c+24>>3]=O[a+512>>3]*O[a+616>>3]/d;a=J[a+12>>2];gc[J[J[a>>2]+32>>2]](a,c+24|0);break a}if(d>1)O[J[a+12>>2]+128>>3]=O[a+512>>3]*O[a+616>>3]/d;b=K[a+471|0];b:{if(!(b<<24>>24<0?J[a+464>>2]:b)){b=J[a+12>>2];g=J[a+496>>2]!=0;J[c+20>>2]=K[a+504|0]<<2|(J[a+500>>2]?g|2:g)|K[a+505|0]<<7;O[c+24>>3]=O[J[a+16>>2]+24>>3];O[c+8>>3]=O[J[a+16>>2]+32>>3];gc[J[J[b>>2]+144>>2]](b,a+472|0,a+488|0,c+20|0,c+24| -0,c+8|0)|0;break b}b=J[a+12>>2];O[c+24>>3]=O[J[a+16>>2]+24>>3];O[c+8>>3]=O[J[a+16>>2]+32>>3];gc[J[J[b>>2]+148>>2]](b,a+460|0,a+520|0,a+488|0,c+24|0,c+8|0)|0}b=J[a+12>>2]+16|0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+72>>2]=0;J[b+76>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]=0;J[b+52>>2]=1072693248;b=b- -64|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+12>>2];gc[J[J[b>>2]+40>>2]](b,a+508|0);a=J[a+12>>2];gc[J[J[a>>2]+32>>2]](a,a+128|0);hn(e,f)}bc=c+32|0}function C4(a, -b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=bc-16|0;bc=j;f=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;d=K[b+3|0];g=f|d;if(g){h=d&3;e=b+7|0;a:{if((d|f)-1>>>0<3){f=0;d=e;break a}l=g-h|0;f=0;while(1){f=(K[e+12|0]+(K[e+8|0]+(K[e+4|0]+(K[e|0]+f|0)|0)|0)|0)+4|0;d=e+16|0;e=d;k=k+4|0;if((l|0)!=(k|0))continue;break}}if(h)while(1){f=(K[d|0]+f|0)+1|0;d=d+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}d=f+1|0}else d=1;e=J[a+28>>2];J[j+12>>2]=0;b:{c:{d:{if(d>>>0<=e>>>0){c=J[a+32>>2];break d}J[a+36>>2]=c;c=Sc(c,4,e,d, -J[a+32>>2],j+12|0);J[a+32>>2]=c;if(J[j+12>>2])break c;J[a+28>>2]=d}d=c;if(g)while(1){e=K[b+6|0]|(K[b+5|0]<<8|K[b+4|0]<<16);i=0;a=K[b+7|0];f=a+1|0;h=f&7;if(h)while(1){J[d>>2]=e;f=f-1|0;d=d+4|0;e=e+1|0;i=i+1|0;if((h|0)!=(i|0))continue;break}if(a>>>0>=7)while(1){J[d>>2]=e;J[d+28>>2]=e+7;J[d+24>>2]=e+6;J[d+20>>2]=e+5;J[d+16>>2]=e+4;J[d+12>>2]=e+3;J[d+8>>2]=e+2;J[d+4>>2]=e+1;d=d+32|0;e=e+8|0;f=f-8|0;if(f)continue;break}b=b+4|0;g=g-1|0;if(g)continue;break}J[d>>2]=0;break b}c=0}bc=j+16|0;return c}function U_a(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;a:{b:{d=J[a+8>>2];h=J[a+12>>2];if((d|0)==(h|0))break b;a=K[b+11|0];e=a<<24>>24;i=(e|0)<0?J[b+4>>2]:a;if((e|0)>=0)while(1){f=K[d+11|0];g=f<<24>>24;e=(g|0)<0;a=J[d+4>>2];c:{if(((e?a:f)|0)!=(i|0))break c;if(!e){a=b;e=d;if(!g)break b;while(1){if(K[e|0]!=K[a|0])break c;a=a+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}break b}if(!a)break b;if(!Wc(J[d>>2],b,a))break b}d=d+20|0;if((h|0)!=(d|0))continue;break a}b=J[b>>2];while(1){f=K[d+11|0];g=f<<24>>24;e=(g|0)< -0;a=J[d+4>>2];d:{if(((e?a:f)|0)!=(i|0))break d;if(!e){a=b;e=d;if(!g)break b;while(1){if(K[e|0]!=K[a|0])break d;a=a+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}break b}if(!a)break b;if(!Wc(J[d>>2],b,a))break b}d=d+20|0;if((h|0)!=(d|0))continue;break}break a}if((d|0)==(h|0)|(c|0)==(d|0))break a;b=K[c+11|0];a=b<<24>>24;if(H[d+11|0]>=0){if((a|0)>=0){a=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=a;J[d+8>>2]=J[c+8>>2];return}FE(d,J[c>>2],J[c+4>>2]);return}a=(a|0)<0;GE(d,a?J[c>>2]:c,a?J[c+4>>2]:b)}}function HWa(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-48|0;bc=d;a:{b:{if(K[a+220|0])break b;c=J[a+196>>2];if(!c){J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;c=rc(16);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[d+40>>2]=c;e=J[a+192>>2];f=J[a+184>>2];c=J[a+180>>2];if((e|0)==(((c|0)!=(f|0)?P(f-c>>2,93)-1|0:0)|0)){J[695492]=0;_(3198,a+176|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;e=J[a+192>>2]+J[a+196>>2]|0;f=J[a+180>>2]}else f=c;c=(e>>>0)/93| -0;f=J[f+(c<<2)>>2];J[695492]=0;aa(3199,f+P(e-P(c,93)|0,44)|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+196>>2]=J[a+196>>2]+1;c=J[d+40>>2];if(c)qc(tt(c));c=J[d+24>>2];if(c)qc(c);c=J[d+12>>2];if(c){J[d+16>>2]=c;qc(c)}c=J[d>>2];if(c){J[d+4>>2]=c;qc(c)}c=J[a+196>>2]}c=(J[a+192>>2]+c|0)-1|0;e=(c>>>0)/93|0;O_(J[J[a+180>>2]+(e<<2)>>2]+P(c-P(e,93)|0,44)|0,J[b+596>>2],b+16|0,1);H[a+200|0]=1;if(K[a+201|0]|(K[a+220|0]|K[a+204|0]))break b;fB(a,b)}bc=d+48|0;return}a=Z()|0;iw(d);ba(a|0);B()}function P_(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-48|0;bc=d;a:{b:{if(K[a+220|0])break b;c=J[a+196>>2];if(!c){J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;c=rc(16);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[d+40>>2]=c;e=J[a+192>>2];f=J[a+184>>2];c=J[a+180>>2];if((e|0)==(((c|0)!=(f|0)?P(f-c>>2,93)-1|0:0)|0)){J[695492]=0;_(3198,a+176|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;e=J[a+192>>2]+J[a+196>>2]|0;f=J[a+180>>2]}else f=c;c=(e>>> -0)/93|0;f=J[f+(c<<2)>>2];J[695492]=0;aa(3199,f+P(e-P(c,93)|0,44)|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+196>>2]=J[a+196>>2]+1;c=J[d+40>>2];if(c)qc(tt(c));c=J[d+24>>2];if(c)qc(c);c=J[d+12>>2];if(c){J[d+16>>2]=c;qc(c)}c=J[d>>2];if(c){J[d+4>>2]=c;qc(c)}c=J[a+196>>2]}c=(J[a+192>>2]+c|0)-1|0;e=(c>>>0)/93|0;O_(J[J[a+180>>2]+(e<<2)>>2]+P(c-P(e,93)|0,44)|0,J[b+596>>2],b+16|0,0);H[a+200|0]=1;if(K[a+201|0]|(K[a+220|0]|K[a+204|0]))break b;fB(a,b)}bc=d+48|0;return}a=Z()|0;iw(d);ba(a|0);B()} -function Cf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;A(+b);c=v(1)|0;a:{c=c&2147483647;if(!(v(0)|0)&(c|0)==2146435072|c>>>0<2146435072){A(+a);c=v(1)|0;c=c&2147483647;if(!(v(0)|0)&(c|0)==2146435072|c>>>0<2146435072)break a}return a+b}A(+b);d=v(1)|0;c=v(0)|0;f=c;if(!(c|d-1072693248))return VR(a);A(+a);c=v(1)|0;h=d>>>30&2;e=h|c>>>31;b:{c=c&2147483647;c:{if(!(v(0)|c)){d:switch(e-2|0){case 0:return 3.141592653589793;case 1:break d;default:break c}return-3.141592653589793}d=d&2147483647;if(!(d|f))break b;e:{if((d| -0)==2146435072){if((c|0)!=2146435072)break e;return O[(e<<3)+2451488>>3]}if(!((c|0)!=2146435072&d+67108864>>>0>=c>>>0))break b;f:{if(h){g=0;if(d>>>0>c+67108864>>>0)break f}g=VR(R(a/b))}a=g;g:switch(e|0){case 1:return-a;case 2:return 3.141592653589793-(a+-1.2246467991473532E-16);case 0:break c;default:break g}return a+-1.2246467991473532E-16+-3.141592653589793}a=O[(e<<3)+2451520>>3]}return a}A(1.5707963267948966);c=v(1)|0;f=v(0)|0;A(+a);d=v(1)|0;v(0)|0;x(0,f|0);x(1,c&2147483647|d&-2147483648);return+z()} -function KKa(a){a=a|0;var b=0,c=0,d=0;b=J[a+4>>2];gc[J[J[b>>2]+20>>2]](b);J[a+48>>2]=0;J[a+40>>2]=0;J[a+56>>2]=0;J[a+44>>2]=J[a+8>>2]>>>31;b=J[a+20>>2];J[J[a+60>>2]>>2]=b;J[a+72>>2]=0;J[a+68>>2]=b;b=J[a+56>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)>=12){c=J[a+52>>2];break h}while(1){b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1){b=J[a+56>>2];if(!b)break f;c=J[a+52>>2]<<12-b;break g}d=J[a+56>>2];b=d+8|0;J[a+56>>2]=b;c=c+(J[a+52>>2]<<8)|0;J[a+52>>2]=c;if((d|0)<4)continue;break}}c=c>>>b-12| -0}c=c&4095;if(!c)break a;if((c|0)==1){J[a+12>>2]=1;b=((b|0)<=12?12:b)-12|0;J[a+56>>2]=b}if(J[a+8>>2]<=0)break b;if((b|0)<=0)break e;c=J[a+52>>2];break d}if(J[a+8>>2]<=0)break b}while(1){b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1){b=J[a+56>>2];if(!b){b=0;c=65535;break c}c=J[a+52>>2]<<1-b&1;break c}d=J[a+56>>2];b=d+8|0;J[a+56>>2]=b;c=c+(J[a+52>>2]<<8)|0;J[a+52>>2]=c;if((d|0)<-7)continue;break}}c=c>>>b-1&1}J[a+44>>2]=!c;J[a+56>>2]=((b|0)<=1?1:b)-1}return}b=((b|0)<=1?1:b)-1|0;J[a+56>>2]=b;continue}} -function $Wa(a){a=a|0;var b=0,c=0;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a:{if(c)break a;if(gc[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=216;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(gc[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}if(J[a+88>>2])gw(a,0);if(J[a+92>>2])gw(a,1);if(J[a+96>>2])gw(a,2);if(J[a+100>>2])gw(a,3);c:{if(J[a+212>>2])break c;if(J[a+120>>2])$m(a,0,0);if(J[a+ -136>>2])$m(a,0,1);if(J[a+124>>2])$m(a,1,0);if(J[a+140>>2])$m(a,1,1);if(J[a+128>>2])$m(a,2,0);if(J[a+144>>2])$m(a,2,1);if(J[a+132>>2])$m(a,3,0);if(!J[a+148>>2])break c;$m(a,3,1)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(gc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=217;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(gc[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}}function rxb(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+52>>2];if(!J[c+20>>2]){a=zc(12);if(!a){J[c+20>>2]=0;return-1}J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[c+20>>2]=a}e=-1;g=zc(12);a:{if(!g)break a;d=K[b+12|0];J[g>>2]=d;J[g+8>>2]=J[b+20>>2];J[b+20>>2]=0;J[g+4>>2]=J[b+16>>2];c=J[c+20>>2];b=J[c>>2];b:{if((b|0)<=0)break b;a=(b|0)>=2147483646?2147483646:b;h=J[c+8>>2];while(1){if(d>>>0>2]>>2])break b;f=f+1|0;if((a|0)!=(f|0))continue;break}f=a}a=J[c+4>>2];if((a|0)<=(b|0)){b=a+128|0;a=b<<2;d=J[c+8>> -2];c:{if(d){a=Kh(d,a);break c}a=zc(a)}if(!a)break a;J[c+4>>2]=b;J[c+8>>2]=a;b=J[c>>2]}a=b;if((f|0)<(a|0)){d=a-f&3;if(d){e=0;while(1){h=J[c+8>>2]+(a<<2)|0;J[h>>2]=J[h-4>>2];a=a-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if((f^-1)+b>>>0>=3)while(1){e=a<<2;d=e+J[c+8>>2]|0;J[d>>2]=J[d-4>>2];d=e+J[c+8>>2]|0;J[d-4>>2]=J[d-8>>2];d=e+J[c+8>>2]|0;J[d-8>>2]=J[d-12>>2];e=e+J[c+8>>2]|0;J[e-12>>2]=J[e-16>>2];a=a-4|0;if((f|0)<(a|0))continue;break}a=f}J[J[c+8>>2]+(a<<2)>>2]=g;J[c>>2]=b+1;e=0}return e|0}function fZ(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a>>2]=2206348;J[a+4>>2]=J[b+4>>2];c=J[b+8>>2];d=a,e=gc[J[J[c>>2]+8>>2]](c)|0,J[d+8>>2]=e;J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=J[b+52>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];J[a- -64>>2]=J[b- -64>>2];J[a+68>>2]=J[b+68>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=J[b+76>>2];J[a+ -80>>2]=J[b+80>>2];J[a+84>>2]=J[b+84>>2];J[a+88>>2]=J[b+88>>2];J[a+92>>2]=J[b+92>>2];J[a+96>>2]=J[b+96>>2];J[a+100>>2]=J[b+100>>2];J[a+104>>2]=J[b+104>>2];J[a+108>>2]=J[b+108>>2];J[a+112>>2]=J[b+112>>2];J[a+116>>2]=J[b+116>>2];J[a+120>>2]=J[b+120>>2];J[a+124>>2]=J[b+124>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=J[b+132>>2];J[a+136>>2]=J[b+136>>2];J[a+140>>2]=J[b+140>>2];O[a+144>>3]=O[b+144>>3];O[a+152>>3]=O[b+152>>3];O[a+160>>3]=O[b+160>>3];O[a+168>>3]=O[b+168>>3];J[a+176>>2]=J[b+176>>2];return a|0} -function lpa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-16|0;bc=e;f=J[b>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;d=J[b>>2]}J[695492]=0;J[e+12>>2]=d;a=ha(5547,a|0,e+12|0,0,c|0)|0;b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[e+12>>2]=0;c:{if(!d)break c;J[695492]=0;b=J[d+4>>2]-1|0;J[d+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break c;J[695492]=0;_(4987,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+20>>2]=0;J[a>>2]=2424976;b=J[a+12>>2];c=J[J[b>>2]+8>>2];J[695492]=0;d=b;b=a+17|0;c=ga(c| -0,d|0,b|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(c)c=K[b|0]<<8;else{H[b|0]=255;c=65280}J[a+24>>2]=c;c=J[a+12>>2];d=J[J[c>>2]+8>>2];J[695492]=0;c=ga(d|0,c|0,b|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(c)b=K[b|0];else{H[b|0]=255;b=255}I[a+18>>1]=6400;J[a+24>>2]=b|J[a+24>>2];J[695492]=0;_(5549,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[a+24>>2];J[a+28>>2]=b>>>0>=32767?32767:b;bc=e+16|0;return a|0}a=Z()|0;vc(e+12|0);ba(a|0);B()}b=Z()|0;eG(a);ba(b|0);B()}ea(0)|0;yc(); -B()}function GJa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=bc-16|0;bc=f;J[a>>2]=2333284;J[a+116>>2]=0;J[a+120>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+176>>2]=1;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;c=tc(a+120|0,c,96);J[a+112>>2]=0;J[a+216>>2]=1;a:{b:{c:{if(b){d:{if(!Ec(b, -775361)){J[a+108>>2]=J[651372];break d}d=d?776071:777222;e:{if(e){d=Zm(b,d);break e}d=Oj(b,d)}J[a+108>>2]=d;if(!d){J[f>>2]=b;xc(4,-1,779E3,f);J[a+216>>2]=0;break b}J[a+112>>2]=1}J[a+104>>2]=3492;break c}J[a+104>>2]=0;J[a+108>>2]=0}d=rc(248);J[695492]=0;c=aa(3493,d|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+116>>2]=c;if(!J[a+180>>2]|!J[a+108>>2])break b;d=QA(J[689612]);if(!d)break b;c=f+8|0;b=Rh(d,65279,c,8);Tn(d);gc[J[a+104>>2]](J[a+108>>2],c,b)}bc=f+16|0;return a|0}a=Z()|0;qc(d);ba(a| -0);B()}function tJa(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;c=bc-16|0;bc=c;a:{b:{if(!J[a+144>>2])break b;n=O[b+16>>3];o=O[b+24>>3];p=O[b>>3];q=O[b+8>>3];g=c+12|0;h=c+8|0;gc[J[J[a>>2]+60>>2]](a,p,q,g,h);d=J[c+12>>2];e=J[c+8>>2];gc[J[J[a>>2]+60>>2]](a,p,o,g,h);i=J[c+12>>2];f=J[c+8>>2];gc[J[J[a>>2]+60>>2]](a,n,q,g,h);l=J[c+12>>2];k=J[c+8>>2];gc[J[J[a>>2]+60>>2]](a,n,o,g,h);j=J[b+32>>2];if(!j)break b;g=J[c+8>>2];h=J[c+12>>2];m=J[a+116>>2];if((gc[J[J[j>>2]+12>> -2]](j)|0)!=3)break b;b=J[J[b+32>>2]+4>>2];a=rc(8);J[695492]=0;b=aa(3183,a|0,b|0)|0;j=J[695492];J[695492]=0;if((j|0)==1)break a;j=J[m+216>>2];a=rc(40);J[a+32>>2]=b;b=(e|0)<(f|0)?f:e;e=(e|0)>(f|0)?f:e;f=(e|0)>(k|0);b=f?b:(b|0)<(k|0)?k:b;e=f?k:e;f=(e|0)>(g|0);O[a+24>>3]=(f?b:(b|0)<(g|0)?g:b)|0;b=(d|0)<(i|0)?i:d;d=(d|0)>(i|0)?i:d;i=(d|0)>(l|0);b=i?b:(b|0)<(l|0)?l:b;k=b;m=(b|0)<(h|0)?h:b;b=i?l:d;d=(b|0)>(h|0);O[a+16>>3]=(d?k:m)|0;O[a+8>>3]=(f?g:e)|0;O[a>>3]=(d?h:b)|0;id(j,a)}bc=c+16|0;return}b=Z()|0;qc(a); -ba(b|0);B()}function fGa(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=bc-16|0;bc=d;a:{if(H[c+11|0]>=0){J[d+8>>2]=J[c+8>>2];f=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=f;break a}Re(d,J[c>>2],J[c+4>>2])}e=K[b+15|0];f=e<<24>>24;g=(f|0)<0;b:{c:{d:{e:{c=J[b+8>>2];h=g?c:e;if(h){f=K[d+11|0];c=f<<24>>24<0;e=c?J[d+4>>2]:f;if((h|0)>(e|0))break e;f=c?J[d>>2]:d;i=f+(e<<2)|0;g=g?J[b+4>>2]:b+4|0;j=J[g>>2];c=f;while(1){e=(e-h|0)+1|0;if(!e)break e;c=og(c,j,e);if(!c)break e;if(gd(c,g,h)){c=c+4|0;e=i-c>>2; -if((h|0)<=(e|0))continue;break e}break}if((c|0)==(i|0)|(c|0)!=(f|0))break e;e=K[b+15|0];f=e;c=J[b+8>>2]}J[695492]=0;ma(2797,a|0,d|0,(f<<24>>24<0?c:e)+1|0,-1,d+14|0)|0;break d}c=K[d+11|0];b=c<<24>>24<0;if(!(b?J[d+4>>2]:c)|J[(b?J[d>>2]:d)>>2]!=47)break c;J[695492]=0;ma(2797,a|0,d|0,1,-1,d+15|0)|0}a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;if(H[d+11|0]<0)qc(J[d>>2]);ba(a|0);B()}b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0}if(H[d+11|0]<0)qc(J[d>> -2]);bc=d+16|0}function TV(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+20>>2];c=J[a+16>>2];if((b|0)!=(c|0))while(1){b=Lc(b-12|0);if((c|0)!=(b|0))continue;break}J[a+20>>2]=c;e=a+4|0;a:{if(!J[a+12>>2])break a;b=J[a+8>>2];c=J[b>>2];d=J[J[a+4>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+12>>2]=0;if((b|0)==(e|0))break a;while(1){c=J[b+4>>2];Ed(b+8|0);qc(b);b=c;if((e|0)!=(b|0))continue;break}}J[a+36>>2]=J[a+32>>2];b=J[a+60>>2];c=J[a+56>>2];b:{if((b|0)==(c|0)){c=b;break b}while(1){if((b|0)==(c|0))break b;d=b-8|0;f=J[d>>2];if(!(!f| -!K[d+4|0])){qc($G(f));c=J[a+56>>2];b=J[a+60>>2]}b=b-8|0;J[a+60>>2]=b;if((b|0)!=(c|0))continue;break}}if(c){J[a+60>>2]=c;qc(c)}b=J[a+32>>2];if(b){J[a+36>>2]=b;qc(b)}c=J[a+16>>2];if(c){d=c;b=J[a+20>>2];if((c|0)!=(b|0)){while(1){b=Lc(b-12|0);if((c|0)!=(b|0))continue;break}d=J[a+16>>2]}J[a+20>>2]=c;qc(d)}c:{if(!J[a+12>>2])break c;b=J[a+8>>2];c=J[b>>2];d=J[J[a+4>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+12>>2]=0;if((b|0)==(e|0))break c;while(1){c=J[b+4>>2];Ed(b+8|0);qc(b);b=c;if((e|0)!=(b|0))continue;break}}Ed(a)} -function nTa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=bc+-64|0;bc=f;J[f+32>>2]=13;J[f+16>>2]=13;J[f>>2]=13;J[e>>2]=0;J[e+4>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[f+48>>2]=13;a:{if(J[Bc(J[a+32>>2],784444,f+48|0,0)>>2]==6){a=J[f+56>>2];if(J[a+12>>2]>0){Mc(a,0,f+32|0,0);break a}J[f+32>>2]=5;break a}Ef(a+24|0,f+32|0)}uc(f+48|0);if(J[f+32>>2]==7){Bc(J[f+40>>2],802602,f+16|0,0);b:{if(J[f+16>>2]!=6)break b;a=J[f+24>>2];if(J[a+12>>2]!=4)break b;Mc(a,0, -f,0);a=J[f>>2];if(a-3>>>0>=4294967294)O[b>>3]=(a|0)==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],1,f,0);a=J[f>>2];if(a-3>>>0>=4294967294)O[c>>3]=(a|0)==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],2,f,0);a=J[f>>2];if(a-3>>>0>=4294967294)O[d>>3]=(a|0)==1?+J[f+8>>2]:O[f+8>>3];uc(f);Mc(J[f+24>>2],3,f,0);a=J[f>>2];if(a-3>>>0>=4294967294)O[e>>3]=(a|0)==1?+J[f+8>>2]:O[f+8>>3];uc(f)}uc(f+16|0)}uc(f+32|0);g=O[b>>3];h=O[d>>3];if(g>h){O[b>>3]=h;O[d>>3]=g}g=O[c>>3];h=O[e>>3];if(g>h){O[c>>3]=h;O[e>>3]=g}bc=f- -64| -0}function hY(a){var b=0,c=0,d=0,e=0;J[695492]=0;_(3478,a|0);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;d=J[a+204>>2];b=J[d+8>>2];if((b|0)>0)while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){qc(e);b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}qc(dd(d));d=J[a+208>>2];b=J[d+8>>2];if((b|0)>0){c=0;while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){b=J[e+8>>2];if(b)qc(Rc(b));qc(e);b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}}qc(dd(d));d=J[a+212>>2];b=J[d+8>>2];if((b|0)>0){c=0;while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){qc(e); -b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}}qc(dd(d));d=J[a+216>>2];b=J[d+8>>2];if((b|0)>0){c=0;while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){b=J[e+32>>2];if(b)qc(Rc(b));qc(e);b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}}qc(dd(d));d=J[a+220>>2];if(d){b=J[d+8>>2];if((b|0)>0){c=0;while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){qc(Lq(e));b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}}qc(dd(d))}c=J[a+100>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;return a}ea(0)|0;yc();B()}function e9(a){var b= -0,c=0,d=0,e=0,f=0;J[a>>2]=0;J[a+32>>2]=0;a:{b:{c:{c=J[a+24>>2];b=J[c+8>>2];d:{if(b&7)break d;d=J[c+64>>2];if(!((d|0)<0|(d|0)>J[c+60>>2])){J[c+8>>2]=b|4;break d}b=J[c+28>>2];J[c+28>>2]=b-1;if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=c;c=J[c+24>>2];J[b+24>>2]=c+1;d=K[c|0];H[a+28|0]=d;J[a>>2]=J[a>>2]+(d<<16);c=a+28|0;break b}d=jd(c,1);if((d|0)!=-1)break c}H[a+28|0]=255;c=1;J[a+32>>2]=1;J[a>>2]=J[a>>2]+16711680;b=65280;break a}H[a+28|0]=d;J[a>>2]=J[a>>2]+(d<<16&16711680);if(J[a+32>>2]){c=1;b=65280;break a}c= -a+28|0}e:{f:{b=J[a+24>>2];e=J[b+8>>2];if(e&7)break f;f=J[b+64>>2];if(!((f|0)<0|J[b+60>>2]<(f|0))){J[b+8>>2]=e|4;break f}e=J[b+28>>2];J[b+28>>2]=e-1;g:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=b;b=J[b+24>>2];J[e+24>>2]=b+1;b=K[b|0];break g}b=jd(b,1);d=K[c|0];if((b|0)==-1)break f}H[c|0]=b;if((d&255)!=255)break e;c=(b|0)>143;b=c?65280:b<<9;break a}b=255;H[a+28|0]=255;c=1;J[a+32>>2]=1;if((d&255)!=255)break e;b=65280;break a}c=1;b=b<<8}J[a+8>>2]=c;J[a+4>>2]=32768;J[a>>2]=b+J[a>>2]<<7}function SX(a,b,c){var d= -0,e=0,f=0,g=0,h=0;d=a>>>24|0;a:{if(!(d-123>>>0>=4294967238&d-91>>>0>5)){H[b+3|0]=93;H[b+2|0]=K[(d&15)+61536|0];H[b+1|0]=K[(a>>>28|0)+61536|0];d=91;e=4;break a}e=1}H[b|0]=d;f=a>>>16|0;d=f&255;b:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=f;e=e+1|0;break b}d=b+e|0;H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(f&15)+61536|0];H[d+1|0]=K[(a>>>20&15)+61536|0];e=e+4|0}f=a>>>8|0;d=f&255;c:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=f;e=e+1|0;break c}d=b+e|0;H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(f&15)+61536|0]; -H[d+1|0]=K[(a>>>12&15)+61536|0];e=e+4|0}d=a&255;d:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=a;e=e+1|0;break d}d=b+e|0;H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(a&15)+61536|0];H[d+1|0]=K[(a>>>4&15)+61536|0];e=e+4|0}a=e+b|0;if(c){H[a|0]=58;H[a+1|0]=32;f=c+2|0;h=c+1|0;a=e+2|0;d=0;while(1){e:{e=K[c+d|0];if(!e)break e;H[a+b|0]=e;e=a+1|0;g=K[d+h|0];if(!g){a=e;break e}H[b+e|0]=g;e=a+2|0;g=K[d+f|0];if(!g){a=e;break e}H[b+e|0]=g;a=a+3|0;d=d+3|0;if((d|0)!=63)continue}break}a=a+b|0}H[a|0]=0}function dub(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=4;e=e+1|0;b=240}H[c|0]=P((K[c|0]>>>4)+((b&h)>>>d)&15,17);d=d-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}break b}if((b|0)<=0)break a;b=0;while(1){if(!(b& -255)){h=K[e|0];d=4;e=e+1|0;b=240}H[c|0]=P((b&h)>>>d|0,17);d=d-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}}if((g|0)<=0)break a;b=J[a+540>>2];d=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;b=0;c=0;g=0;e=0;while(1){if(!(c&255)){g=K[f|0];c=240;f=f+1|0;b=4}H[d|0]=(c&g&255)>>>b;b=b-4|0;c=(c&240)>>>4|0;d=J[a+584>>2]+d|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function T7(a,b){var c=0,d= -0,e=0;c=J[a+204>>2];a:{if(c){c=gc[c|0](a,b)|0;if(c)break a}c=b;while(1){d=c;c=c+1|0;if(K[d|0])continue;break}c=0;b:{c:{d:{e:switch((d-b|0)-4|0){case 0:a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);d=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=21;b=42;a=0;while(1){e=J[(c<<2)+218672>>2];f:{if((d|0)>(e|0)){a=c+1|0;break f}if((d|0)>=(e|0))break b;b=c-1|0}c=a+b>>1;if((a|0)<=(b|0))continue;break}return 0;case 4:d=K[b|0];if((d|0)==67)break c;if((d|0)!=100)break a;if(K[b+1|0]!=114|K[b+2|0]!=97|(K[b+3|0]!= -102|K[b+4|0]!=116))break d;if(K[b+5|0]!=32)break d;c=1;if((K[b+7|0]+P(K[b+6|0],10)|0)-628>>>0<4294967196)break d;break a;case 3:break e;default:break a}if(K[b|0]!=77|K[b+1|0]!=78|(K[b+2|0]!=71|K[b+3|0]!=45))break d;if(K[b+4|0]!=49|K[b+5|0]!=46)break d;c=1;if((K[b+6|0]&254)==48)break a}return 0}if(K[b+1|0]!=65|K[b+2|0]!=67|(K[b+3|0]!=72|K[b+4|0]!=69))break a;if(K[b+5|0]!=79|K[b+6|0]!=70|(J[a+696>>2]|K[b+7|0]!=70))break a;H[a+112|0]=0;H[a+114|0]=0}c=1}return c}function Hd(a){var b=0,c=0,d=0;d=bc-32| -0;bc=d;b=J[a+36>>2];c=J[b+16>>2];a:{b:{if(c-J[b+12>>2]>>>0<15000001&J[b+20>>2]-c>>>0<=15E6)break b;c=J[b>>2];if(K[a+362|0]&8|(!c|J[c+4>>2]==3126))break b;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=1;J[d+20>>2]=5628;J[d+16>>2]=5012;Cc(0,0,0,a,0,1,1,3,5628,0,0,0,32761,d+16|0);J[a+12>>2]=0}J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(!b)break a;c=J[b+40>>2];if(c){gc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39181;J[b+16>>2]=39181;break a}Cd(b);b=J[a+36>>2];c=J[b+16>>2];if(!(c>>>0<=M[b+ -20>>2]&c>>>0>=M[b+12>>2])){J[a+212>>2]=1;J[a+172>>2]=-1;c=J[b+40>>2];c:{d:{if(!c){J[b+12>>2]=39181;J[b+16>>2]=39181;break d}gc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0;c=J[a+212>>2];J[b+12>>2]=39181;J[b+16>>2]=39181;if(!c)break c}if(J[a+172>>2]==-1)break a}J[a+84>>2]=1;J[d+4>>2]=15173;J[d>>2]=5012;Cc(0,0,0,a,0,1,1,3,15173,0,0,0,32761,d);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}if(K[c|0]|!c)break a;if((Cd(b)|0)>0)break a;ze(a)}bc=d+32|0}function F3(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;l=c<<7;f=999999984/(l>>>0)|0;e=J[a+4>>2];if(l>>>0>=999999985){h=J[a>>2];J[h+20>>2]=72;gc[J[h>>2]](a)}f=(d|0)>(f|0)?f:d;J[e+80>>2]=f;j=Xw(a,b,d<<2);if(d){n=j+12|0;o=j+8|0;p=j+4|0;q=b>>>0<2;k=c<<7;h=0;while(1){e=J[a+4>>2];c=d-h|0;f=c>>>0>f>>>0?f:c;g=P(l,f);if(g>>>0>=999999985){c=J[a>>2];J[c+20>>2]=56;J[c+24>>2]=3;gc[J[J[a>>2]>>2]](a)}if(!q){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=15;gc[J[J[a>>2]>>2]](a)}i=g|16;c=zc(i);if(!c){m=J[a>>2];J[m+20>>2]=56; -J[m+24>>2]=4;gc[J[J[a>>2]>>2]](a)}J[e+76>>2]=i+J[e+76>>2];e=e+(b<<2)|0;i=J[e+60>>2];J[c+8>>2]=0;J[c+4>>2]=g;J[c>>2]=i;J[e+60>>2]=c;a:{if(!f)break a;c=c+16|0;g=0;e=f;i=f&3;if(i)while(1){J[(h<<2)+j>>2]=c;e=e-1|0;h=h+1|0;c=c+k|0;g=g+1|0;if((i|0)!=(g|0))continue;break}if(f>>>0<4)break a;while(1){g=h<<2;J[g+j>>2]=c;c=c+k|0;J[g+p>>2]=c;c=c+k|0;J[g+o>>2]=c;c=c+k|0;J[g+n>>2]=c;c=c+k|0;h=h+4|0;e=e-4|0;if(e)continue;break}}if(d>>>0>h>>>0)continue;break}}return j|0}function t_(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;h=J[a+4>>2];b=h<<1|1;J[a+4>>2]=b;k=J[a+12>>2];n=a,o=vd(b,4),J[n+12>>2]=o;f=J[a+4>>2];a:{if((f|0)<=0)break a;b=0;if(f>>>0>=4){g=f&-4;while(1){d=b<<2;J[d+J[a+12>>2]>>2]=0;J[J[a+12>>2]+(d|4)>>2]=0;J[J[a+12>>2]+(d|8)>>2]=0;J[J[a+12>>2]+(d|12)>>2]=0;b=b+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}e=f&3;if(!e)break a;while(1){J[J[a+12>>2]+(b<<2)>>2]=0;b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}if((h|0)>0)while(1){g=(i<<2)+k|0;while(1){d=J[g>>2];if(d){J[g>>2]=J[d+8>> -2];b=J[d>>2];c=J[b>>2];b:{if((c|0)<=0){c=0;break b}l=c&3;b=J[b+4>>2];e=0;c:{if(c>>>0<4){c=0;break c}m=c&-4;c=0;j=0;while(1){c=K[b+3|0]+P(K[b+2|0]+P(K[b+1|0]+P(K[b|0]+P(c,17)|0,17)|0,17)|0,17)|0;b=b+4|0;j=j+4|0;if((m|0)!=(j|0))continue;break}}if(!l)break b;while(1){c=K[b|0]+P(c,17)|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}}b=J[a+12>>2]+((c>>>0)%(f>>>0)<<2)|0;J[d+8>>2]=J[b>>2];J[b>>2]=d;continue}break}i=i+1|0;if((h|0)!=(i|0))continue;break}Gc(k)}function b_(a,b,c){var d=0,e=0,f=0;d=bc-128|0; -bc=d;J[d+112>>2]=13;J[d+96>>2]=13;J[d+80>>2]=13;J[d+64>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;e=J[b+8>>2];a:{if((e|0)<0|(e|0)>J[J[a+4>>2]+16>>2])break a;b:{if(J[b>>2]==9){e=c+e|0;if(K[e|0])break a;H[e|0]=1;Tm(J[a+4>>2],J[b+8>>2],J[b+12>>2],d+112|0,0);break b}Ef(b,d+112|0)}if(J[d+112>>2]==7){b=0;c:{if(J[Bc(J[d+120>>2],796762,d+96|0,0)>>2]==6){e=J[d+104>>2];if(J[e+12>>2]<=0)break c;while(1){f=e;e=d+80|0;b_(a,jg(f,b,e),c);uc(e);b=b+1|0;e=J[d+104>>2];if((b|0)>2])continue; -break}break c}d:{if(J[Bc(J[d+120>>2],806971,d- -64|0,0)>>2]!=6)break d;c=J[d+72>>2];if(J[c+12>>2]<=0)break d;while(1){if(J[Mc(c,b,d+48|0,0)>>2]==7){c=Bc(J[d+56>>2],792281,d+32|0,0);e:{if(J[c>>2]!=4)break e;if(Ec(J[c+8>>2],807317))break e;c=d+16|0;if(Bc(J[d+56>>2],807828,c,0)){XZ(a,c,Bc(J[d+56>>2],807992,d,0));uc(d)}uc(d+16|0)}uc(d+32|0)}uc(d+48|0);b=b+1|0;c=J[d+72>>2];if((b|0)>2])continue;break}}uc(d- -64|0)}uc(d+96|0)}uc(d+112|0)}bc=d+128|0}function zwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e= -0,f=0,g=0;a:{if((c|0)<=0)break a;f=c&3;b:{if(!f){d=c;break b}d=c;while(1){e=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=e;e=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=e;e=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=e;b=b+24|0;a=a+24|0;d=d-1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}if(c>>>0<4)break a;while(1){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;c=J[b+44>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=c;c=J[b+36>>2];J[a+ -32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;f=b- -64|0;e=J[f+4>>2];c=a- -64|0;J[c>>2]=J[f>>2];J[c+4>>2]=e;c=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=c;c=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=c;c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;c=J[b+84>>2];J[a+80>>2]=J[b+80>>2];J[a+84>>2]=c;c=J[b+92>>2];J[a+88>>2]=J[b+88>>2];J[a+92>>2]=c;b=b+96|0;a=a+96|0;c=d-5|0;d=d-4|0;if(c>>>0<4294967294)continue;break}}}function X0a(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,u=0,v=0,w=0,x=0,y=0;if(J[J[b+4>>2]+44>>2]){J[c>>2]=-127;return}i=J[b+12>>2];d=J[b+8>>2];f=i-d|0;e=J[a+16>>2];g=J[a+20>>2]-e|0;f=(f|0)<(g|0)?f:g;if((f|0)>=16){j=f>>>4|0;g=j;a:{while(1){h=K[d|0];H[e|0]=h;k=K[d+1|0];H[e+1|0]=k;l=K[d+2|0];H[e+2|0]=l;m=K[d+3|0];H[e+3|0]=m;n=K[d+4|0];H[e+4|0]=n;o=K[d+5|0];H[e+5|0]=o;p=K[d+6|0];H[e+6|0]=p;q=K[d+7|0];H[e+7|0]=q;r=K[d+8|0];H[e+8|0]=r;s=K[d+9|0];H[e+9|0]=s;t=K[d+10|0];H[e+10|0]=t;u=K[d+11|0];H[e+11| -0]=u;v=K[d+12|0];H[e+12|0]=v;w=K[d+13|0];H[e+13|0]=w;x=K[d+14|0];H[e+14|0]=x;y=K[d+15|0];H[e+15|0]=y;if((h|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y)<<24>>24<0)break a;d=d+16|0;e=e+16|0;h=(g|0)>1;g=g-1|0;if(h)continue;break}g=0}f=(g-j<<4)+f|0}b:{c:{if((f|0)>0)while(1){g=H[d|0];if((g|0)<0){f=-127;break c}H[e|0]=g;e=e+1|0;d=d+1|0;g=(f|0)>1;f=f-1|0;if(g)continue;break}if(d>>>0>=i>>>0)break b;f=15;if(M[a+20>>2]>e>>>0)break b}J[c>>2]=f}J[b+8>>2]=d;J[a+16>>2]=e}function Pka(a,b){a=a|0;b=b|0;var c=0,d=0;if((a|0)!=(b| -0)){NF(a,b);c=J[b+56>>2];d=J[b+60>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+56>>2]=c;c=J[a+60>>2];J[a+60>>2]=d;a:{if(!c)break a;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break a;gc[J[J[c>>2]+8>>2]](c);Vc(c)}H[a+88|0]=K[b+88|0];H[a+89|0]=K[b+89|0];H[a+90|0]=K[b+90|0];J[a+92>>2]=J[b+92>>2];H[a+96|0]=K[b+96|0];J[a+100>>2]=J[b+100>>2];J[a+104>>2]=J[b+104>>2];H[a+108|0]=K[b+108|0];H[a+109|0]=K[b+109|0];H[a+110|0]=K[b+110|0];H[a+111|0]=K[b+111|0];ZR(a+224|0,b+224|0);O[a+192>>3]=O[b+192>>3];O[a+200>>3]=O[b+200>>3];O[a+184>> -3]=O[b+184>>3];J[a+84>>2]=J[b+84>>2];J[a+64>>2]=J[b+64>>2];c=J[b+68>>2];d=J[b+72>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+68>>2]=c;c=J[a+72>>2];J[a+72>>2]=d;b:{if(!c)break b;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break b;gc[J[J[c>>2]+8>>2]](c);Vc(c)}d=J[b+76>>2];c=J[b+80>>2];if(c)J[c+8>>2]=J[c+8>>2]+1;J[a+76>>2]=d;d=J[a+80>>2];J[a+80>>2]=c;if(d)Vc(d);J[a+240>>2]=J[b+240>>2];O[a+208>>3]=O[b+208>>3];O[a+216>>3]=O[b+216>>3];hn(a+112|0,b+112|0)}return a|0}function q7a(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;a:{if((d|0)<=0)break a;g=J[a+112>>2];if(!g)break a;h=J[a+120>>2];if((h|0)<=0){if(d-1>>>0>=3){i=d&-4;b=0;while(1){a=e<<2;wc(J[a+c>>2],0,g);wc(J[(a|4)+c>>2],0,g);wc(J[(a|8)+c>>2],0,g);wc(J[(a|12)+c>>2],0,g);e=e+4|0;b=b+4|0;if((i|0)!=(b|0))continue;break}}b=d&3;if(!b)break a;a=0;while(1){wc(J[(e<<2)+c>>2],0,g);e=e+1|0;a=a+1|0;if((b|0)!=(a|0))continue;break}break a}j=J[J[a+480>>2]+24>>2];q=h&-4;p=h&3;r=h>>>0<4;while(1){a=k<<2;l=J[a+c>>2];i=J[a+b>>2];m= -g;while(1){n=0;f=0;a=0;e=i;o=0;if(!r)while(1){s=f;f=a<<2;f=(((s+K[J[f+j>>2]+K[e|0]|0]|0)+K[J[(f|4)+j>>2]+K[e+1|0]|0]|0)+K[J[(f|8)+j>>2]+K[e+2|0]|0]|0)+K[J[(f|12)+j>>2]+K[e+3|0]|0]|0;a=a+4|0;e=e+4|0;o=o+4|0;if((q|0)!=(o|0))continue;break}if(p)while(1){f=K[J[(a<<2)+j>>2]+K[e|0]|0]+f|0;a=a+1|0;e=e+1|0;n=n+1|0;if((n|0)!=(p|0))continue;break}H[l|0]=f;l=l+1|0;i=i+h|0;m=m-1|0;if(m)continue;break}k=k+1|0;if((k|0)!=(d|0))continue;break}}}function Tpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h= -0,i=0,j=0,k=0,l=0;a:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;Dc(a,1029,0,0);return 1029}b:{if(c>>>0>1){i=d;while(1){f=i;i=f+1|0;if(K[f|0])continue;break}g=f-d|0;if((g|0)>(c|0)){Dc(a,1043,0,0);return 1043}if((d|0)==(f|0)){Dc(a,1044,0,0);return 1044}f=c-g|0;c=f-1|0;c:{if(!J[a+192>>2])break c;k=g+1|0;h=gc[J[a+152>>2]](k)|0;if(!h)break b;h=tc(h,d,g);j=gc[J[a+152>>2]](f)|0;if(!j){gc[J[a+156>>2]](h,k);break b}if(c)tc(j,i,c);l=gc[J[a+192>>2]](a,0,h,j,0,0)|0;gc[J[a+ -156>>2]](j,f);gc[J[a+156>>2]](h,k);if(l)break c;Dc(a,904,0,0);return 904}d:{e:{if(!K[a+112|0])break e;b=gc[J[b+4>>2]](a,b,e)|0;if(b)break d;b=J[e>>2];J[b+40>>2]=c;J[b+32>>2]=g;b=gc[J[a+152>>2]](g+1|0)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(!b)break b;tc(b,d,g);if(!c)break e;b=gc[J[a+152>>2]](f)|0;J[J[e>>2]+44>>2]=b;b=J[J[e>>2]+44>>2];if(!b)break b;tc(b,i,c)}b=0}return b|0}Dc(a,1028,0,0);return 1028}Dc(a,1,0,0);return 1}function xT(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;if(!b){b=J[a+56>>2]-32768>>>0<4294934529;H[a+120|0]=b?1:8;c=J[a+60>>2]-32768>>>0<4294934529;H[a+121|0]=c?1:8;d=J[a- -64>>2]-32768>>>0<4294934529;H[a+122|0]=d?1:8;e=J[a+68>>2]-32768>>>0<4294934529;H[a+123|0]=e?1:8;f=J[a+72>>2]-32768>>>0<4294934529;H[a+124|0]=f?1:8;g=J[a+76>>2]-32768>>>0<4294934529;H[a+125|0]=g?1:8;h=J[a+80>>2]-32768>>>0<4294934529;H[a+126|0]=h?1:8;i=J[a+84>>2]-32768>>>0<4294934529;H[a+127|0]=i?1:8;j=J[a+88>>2]-32768>>>0<4294934529;H[a+128|0]=j?1:8;k=J[a+92>>2]-32768>>>0<4294934529; -H[a+129|0]=k?1:8;l=J[a+96>>2]-32768>>>0<4294934529;H[a+130|0]=l?1:8;m=J[a+100>>2]-32768>>>0<4294934529;H[a+131|0]=m?1:8;n=J[a+104>>2]-32768>>>0<4294934529;H[a+132|0]=n?1:8;o=J[a+108>>2]-32768>>>0<4294934529;H[a+133|0]=o?1:8;p=J[a+112>>2]-32768>>>0<4294934529;H[a+134|0]=p?1:8;q=a;a=J[a+116>>2]-32768>>>0<4294934529;H[q+135|0]=a?1:8;return b&(a&p&o&n&m&l&k&j&i&h&g&f&e&d&c)}return J[((b<<2)+a|0)+16>>2]-32768>>>0<4294934529}function sxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(!J[a+92>>2]){c=zc(12); -if(!c){J[a+92>>2]=0;return-1}J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[a+92>>2]=c}d=-1;g=zc(12);a:{if(!g)break a;h=K[b+12|0];J[g>>2]=h;J[g+8>>2]=J[b+20>>2];J[b+20>>2]=0;J[g+4>>2]=J[b+16>>2];e=J[a+92>>2];c=J[e>>2];b:{if((c|0)<=0)break b;a=(c|0)>=2147483646?2147483646:c;b=J[e+8>>2];while(1){if(h>>>0>2]>>2])break b;f=f+1|0;if((a|0)!=(f|0))continue;break}f=a}a=J[e+4>>2];if((a|0)<=(c|0)){b=a+128|0;a=b<<2;c=J[e+8>>2];c:{if(c){a=Kh(c,a);break c}a=zc(a)}if(!a)break a;J[e+4>>2]=b;J[e+8>>2]=a;c=J[e>> -2]}a=c;if((f|0)<(a|0)){d=a-f&3;if(d){b=0;while(1){h=J[e+8>>2]+(a<<2)|0;J[h>>2]=J[h-4>>2];a=a-1|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}if((f^-1)+c>>>0>=3)while(1){b=a<<2;d=b+J[e+8>>2]|0;J[d>>2]=J[d-4>>2];d=b+J[e+8>>2]|0;J[d-4>>2]=J[d-8>>2];d=b+J[e+8>>2]|0;J[d-8>>2]=J[d-12>>2];b=b+J[e+8>>2]|0;J[b-12>>2]=J[b-16>>2];a=a-4|0;if((f|0)<(a|0))continue;break}a=f}J[J[e+8>>2]+(a<<2)>>2]=g;J[e>>2]=c+1;d=0}return d|0}function fqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-32|0;bc=e;d=J[a+8>>2];while(1){f= -c;c=c+1|0;if(L[(d+P(f,6)|0)+2>>1])continue;break}a:{b:{if(b-17>>>0<=4294967280){b=Kc(e+8|0,2422944,2382976,507,2422965,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}if(f>>>0>=256){b=Kc(e+8|0,2422944,2382976,509,2422965,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}J[a+12>>2]=32-b;c=a+20|0;oe(c,1<>24);if(f)while(1){c=J[a+8>>2]+P(g,6)|0;d=I[c+2>>1];if(!((d|0)>0&(b|0)>=(d|0))){b=Kc(e+8|0,2422944,2382976,521,2422965, -0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}h=L[c>>1];c=h+(1<>2]|0;if(K[d|0]!=(f|0)){b=Kc(e+8|0,2374504,2382976,527,2422965,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}H[d|0]=g;if((c|0)>(h|0))continue;break}g=g+1|0;if((g|0)!=(f|0))continue;break}bc=e+32|0;return}B()}a=Z()|0;Fc(b);ba(a|0);B()}function D3(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;h=999999984/ -(c>>>0)|0;f=J[a+4>>2];if(c>>>0>=999999985){i=J[a>>2];J[i+20>>2]=72;gc[J[i>>2]](a)}h=(d|0)>(h|0)?h:d;J[f+80>>2]=h;k=Xw(a,b,d<<2);if(d){m=k+12|0;n=k+8|0;o=k+4|0;p=b>>>0<2;i=0;while(1){e=J[a+4>>2];f=d-i|0;h=f>>>0>h>>>0?h:f;f=P(h,c);if(f>>>0>=999999985){g=J[a>>2];J[g+20>>2]=56;J[g+24>>2]=3;gc[J[J[a>>2]>>2]](a)}if(!p){g=J[a>>2];J[g+24>>2]=b;J[g+20>>2]=15;gc[J[J[a>>2]>>2]](a)}g=f+7&-8;j=g+16|0;f=zc(j);if(!f){l=J[a>>2];J[l+20>>2]=56;J[l+24>>2]=4;gc[J[J[a>>2]>>2]](a)}J[e+76>>2]=j+J[e+76>>2];e=e+(b<<2)|0; -j=J[e+60>>2];J[f+8>>2]=0;J[f+4>>2]=g;J[f>>2]=j;J[e+60>>2]=f;a:{if(!h)break a;e=f+16|0;g=0;f=h;j=f&3;if(j)while(1){J[(i<<2)+k>>2]=e;f=f-1|0;e=c+e|0;i=i+1|0;g=g+1|0;if((j|0)!=(g|0))continue;break}if(h>>>0<4)break a;while(1){g=i<<2;J[g+k>>2]=e;e=c+e|0;J[g+o>>2]=e;e=c+e|0;J[g+n>>2]=e;e=c+e|0;J[g+m>>2]=e;i=i+4|0;e=c+e|0;f=f-4|0;if(f)continue;break}}if(d>>>0>i>>>0)continue;break}}return k|0}function lZa(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;g=bc-48|0;bc=g;a:{b:{c:{if(!(!b|!K[b|0])){e= -b;while(1){d=d+1|0;f=K[e+1|0];e=e+1|0;if(f)continue;break}if(!a)break a;h=1;if(K[(b+d|0)-1|0]==58)break a;e=J[a+36>>2];h=J[e+4>>2];d:{if(h){d=J[e+28>>2];f=J[689514];a=J[659549];break d}h=1;f=J[a+40>>2];if((f|0)<=1){d=J[e+28>>2];f=J[689514];a=J[659549];break c}e=J[(J[a+48>>2]+(f<<2)|0)-8>>2];if(!e)break a;d=J[e+28>>2];f=J[689514];a=J[659549];h=J[e+4>>2];if(!h)break c}J[g+36>>2]=d;J[g+32>>2]=h;gc[a|0](f,29761,g+32|0);break b}h=(a|0)!=0;break a}J[g+16>>2]=d;gc[a|0](f,29769,g+16|0)}h=1;i=e}gc[J[659549]](J[689514], -29742,0);e=150;f=0;d=gc[J[659447]](150)|0;e:{if(!d)break e;a=-1;while(1){f=d;if((e|0)>63999)break e;J[g+44>>2]=c;d=Il(d,e,b,c);if(!((d|0)<0|(d|0)>=(e|0))){j=(a|0)==(d|0);a=d;if(j)break e}e=((d|0)<0?100:d+1|0)+e|0;d=gc[J[659452]](f,e)|0;if(d)continue;break}}J[g>>2]=f;gc[J[659549]](J[689514],4607,g);if(f)gc[J[659451]](f);if(h)xp(i,J[659549],J[689514]);bc=g+48|0}function IK(a,b,c,d,e,f,g,h,i){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;J[a+36>>2]=0;p=.5/O[a>> -3];O[a+8>>3]=p*p;k=J[a+40>>2];n=J[a+36>>2];l=n>>>6|0;if(k>>>0<=l>>>0){j=J[a+44>>2];a:{if(j>>>0>l>>>0){j=J[a+48>>2];break a}m=j+J[a+52>>2]|0;j=rc(m>>>0>1073741823?-1:m<<2);o=J[a+48>>2];if(o){tc(j,o,k<<2);qc(o);m=J[a+44>>2]+J[a+52>>2]|0;n=J[a+36>>2];k=J[a+40>>2]}J[a+44>>2]=m;J[a+48>>2]=j}q=(l<<2)+j|0,r=rc(1024),J[q>>2]=r;J[a+40>>2]=k+1}j=J[J[a+48>>2]+(l<<2)>>2]+((n&63)<<4)|0;O[j+8>>3]=c;O[j>>3]=b;J[a+36>>2]=J[a+36>>2]+1;G1(a,b,c,d,e,f,g,h,i,0);k=J[a+40>>2];n=J[a+36>>2];l=n>>>6|0;if(k>>>0<=l>>>0){j= -J[a+44>>2];b:{if(j>>>0>l>>>0){j=J[a+48>>2];break b}m=j+J[a+52>>2]|0;j=rc(m>>>0>1073741823?-1:m<<2);o=J[a+48>>2];if(o){tc(j,o,k<<2);qc(o);m=J[a+44>>2]+J[a+52>>2]|0;n=J[a+36>>2];k=J[a+40>>2]}J[a+44>>2]=m;J[a+48>>2]=j}q=(l<<2)+j|0,r=rc(1024),J[q>>2]=r;J[a+40>>2]=k+1}j=J[J[a+48>>2]+(l<<2)>>2]+((n&63)<<4)|0;O[j+8>>3]=i;O[j>>3]=h;J[a+36>>2]=J[a+36>>2]+1;J[a+32>>2]=0}function ifb(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;f=bc-16|0;bc=f;e=gc[J[a+516>>2]](a,1801810542,b,f+12|0)| -0;a:{if(e)break a;e=142;c=J[f+12>>2];if(c>>>0<4)break a;e=yi(b,c,a+808|0);if(e)break a;b=J[f+12>>2];J[a+812>>2]=b;e=0;d=J[a+808>>2];c=K[d+2|0]<<8|K[d+3|0];b:{if(!c)break b;j=b+d|0;k=c>>>0>=32?32:c;h=d+4|0;while(1){b=h;if(b+6>>>0>j>>>0)break b;c=K[b+3|0]|K[b+2|0]<<8;if(c>>>0<15)break b;c=b+c|0;h=c>>>0>j>>>0?j:c;c:{if(K[b+4|0]|(K[b+5|0]&3)!=1)break c;c=b+14|0;if(c>>>0>h>>>0)break c;l=1<>>8&65280|c>>>24);b=b+20|0;while(1){i=i-1|0;if(i){c=d;d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);b=b+6|0;if(c>>>0>>0)continue;break c}break}n=n|l}g=g+1|0;if((k|0)!=(g|0))continue;break}g=k}J[a+824>>2]=n;J[a+820>>2]=m;J[a+816>>2]=g}bc=f+16|0;return e|0}function _fb(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;g=J[b>>2];a:{b:{if(!(!K[a+24|0]|(g|0)!=J[a+28>>2])){D4(a);if(!K[a+24|0])return 0; -d=a+28|0;c=J[a+32>>2];break b}c=J[a+16>>2];d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!h|(g|0)==-1)break a;l=c+16|0;i=g+1|0;c=h;c:{d:{while(1){d=c+j>>>1|0;e=P(d,12)+l|0;f=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);k=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0<=i>>>0){if(g>>>0>>0)break d;j=d+1|0}else c=d;if(c>>>0>j>>>0)continue;break}c=0;break c}c= -e;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}f=J[a>>2];if(g>>>0>=k>>>0){e=0;d=d+1|0;if((h|0)==(d|0))break a}J[a+36>>2]=d;J[a+28>>2]=i;H[a+24|0]=1;d=a+28|0;if(!(c>>>0>2]?c:0)){D4(a);c=0;if(!K[a+24|0])break b;c=J[a+32>>2];break b}J[a+32>>2]=c}e=c;J[b>>2]=J[d>>2]}return e|0}function Kl(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;h=a;e=bc-208|0;bc=e;J[e+8>>2]=1;J[e+12>>2]=0;i=P(b,c);a:{if(!i)break a;J[e+16>>2]=c;J[e+20>>2]=c; -j=0-c|0;a=c;f=a;g=2;while(1){b=a;a=(c+f|0)+a|0;J[(e+16|0)+(g<<2)>>2]=a;g=g+1|0;f=b;if(a>>>0>>0)continue;break}b=(h+i|0)+j|0;b:{if(b>>>0<=h>>>0){a=1;break b}g=1;a=1;while(1){c:{if((g&3)==3){tF(h,c,d,a,e+16|0);Qy(e+8|0,2);a=a+2|0;break c}g=e+16|0;f=a-1|0;d:{if(M[g+(f<<2)>>2]>=b-h>>>0){Py(h,c,d,e+8|0,a,0,g);break d}tF(h,c,d,a,e+16|0)}if((a|0)==1){Oy(e+8|0,1);a=0;break c}Oy(e+8|0,f);a=1}g=J[e+8>>2]|1;J[e+8>>2]=g;h=c+h|0;if(b>>>0>h>>>0)continue;break}}Py(h,c,d,e+8|0,a,0,e+16|0);if(!((a|0)!=1|J[e+8>> -2]!=1|J[e+12>>2]))break a;while(1){e:{if((a|0)<=1){f=e+8|0;b=wR(f);Qy(f,b);a=a+b|0;break e}f=e+8|0;Oy(f,2);J[e+8>>2]=J[e+8>>2]^7;Qy(f,1);i=h+j|0;g=e+16|0;b=a-2|0;Py(i-J[g+(b<<2)>>2]|0,c,d,f,a-1|0,1,g);Oy(f,1);J[e+8>>2]=J[e+8>>2]|1;Py(i,c,d,f,b,1,g);a=b}h=h+j|0;if(J[e+12>>2]|((a|0)!=1|J[e+8>>2]!=1))continue;break}}bc=e+208|0}function Is(a,b,c,d){var e=0;a:{if((a|0)==(c|0)){e=1;if((b|0)==(d|0))break a}e=2;if(((a+1|0)/2|0)==(c|0))if(((b+1|0)/2|0)==(d|0))break a;e=3;if(((a+2|0)/3|0)==(c|0))if(((b+2|0)/ -3|0)==(d|0))break a;e=4;if(((a+3|0)/4|0)==(c|0))if(((b+3|0)/4|0)==(d|0))break a;e=5;if(((a+4|0)/5|0)==(c|0))if(((b+4|0)/5|0)==(d|0))break a;e=6;if(((a+5|0)/6|0)==(c|0))if(((b+5|0)/6|0)==(d|0))break a;e=7;if(((a+6|0)/7|0)==(c|0))if(((b+6|0)/7|0)==(d|0))break a;e=8;if(((a+7|0)/8|0)==(c|0))if(((b+7|0)/8|0)==(d|0))break a;e=9;if(((a+8|0)/9|0)==(c|0))if(((b+8|0)/9|0)==(d|0))break a;e=10;if(((a+9|0)/10|0)==(c|0))if(((b+9|0)/10|0)==(d|0))break a;e=11;if(((a+10|0)/11|0)==(c|0))if(((b+10|0)/11|0)==(d|0))break a; -e=12;if(((a+11|0)/12|0)==(c|0))if(((b+11|0)/12|0)==(d|0))break a;e=13;if(((a+12|0)/13|0)==(c|0))if(((b+12|0)/13|0)==(d|0))break a;e=14;if(((a+13|0)/14|0)==(c|0))if(((b+13|0)/14|0)==(d|0))break a;e=15;if(((a+14|0)/15|0)==(c|0))if(((b+14|0)/15|0)==(d|0))break a;e=16}return e}function EJ(a,b,c){var d=0,e=0,f=0;e=J[a+20>>2];if((e|0)!=100){d=J[a>>2];J[d+24>>2]=e;J[d+20>>2]=21;gc[J[J[a>>2]>>2]](a)}e=J[a+88>>2];if(!e){e=gc[J[J[a+4>>2]>>2]](a,0,132)|0;J[e+128>>2]=0;J[a+88>>2]=e}d=0;a:{if(!c)while(1){f=(P(J[(d<< -2)+56432>>2],b)+50|0)/100|0;f=(f|0)<=1?1:f;I[(d<<1)+e>>1]=f>>>0>=32767?32767:f;d=d+1|0;if((d|0)!=64)continue;break a}while(1){f=(P(J[(d<<2)+56432>>2],b)+50|0)/100|0;f=(f|0)<=1?1:f;I[(d<<1)+e>>1]=f>>>0>255?255:f>>>0>=32767?32767:f;d=d+1|0;if((d|0)!=64)continue;break}}J[e+128>>2]=0;e=J[a+20>>2];if((e|0)!=100){d=J[a>>2];J[d+24>>2]=e;J[d+20>>2]=21;gc[J[J[a>>2]>>2]](a)}e=J[a+92>>2];if(!e){e=gc[J[J[a+4>>2]>>2]](a,0,132)|0;J[e+128>>2]=0;J[a+92>>2]=e}d=0;b:{if(!c)while(1){a=(P(J[(d<<2)+56688>>2],b)+50|0)/ -100|0;a=(a|0)<=1?1:a;I[(d<<1)+e>>1]=a>>>0>=32767?32767:a;d=d+1|0;if((d|0)!=64)continue;break b}while(1){a=(P(J[(d<<2)+56688>>2],b)+50|0)/100|0;a=(a|0)<=1?1:a;I[(d<<1)+e>>1]=a>>>0>255?255:a>>>0>=32767?32767:a;d=d+1|0;if((d|0)!=64)continue;break}}J[e+128>>2]=0}function px(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+4>>2]+96>>2];f=J[b+8>>2];c=J[J[b+12>>2]+68>>2];if(c)gc[c|0](a);c=J[a+156>>2];a:{if(!c){e=a+88|0;break a}e=J[c+4>>2];b:{if(e&1){d=J[a+88>>2];if(d){c=J[J[a+4>>2]+100>>2];gc[J[c+8>>2]](c,d);c=J[a+ -156>>2];e=J[c+4>>2]}J[a+88>>2]=0;J[c+4>>2]=e&-2;break b}J[a+88>>2]=0}e=a+156|0;if(!(K[J[b>>2]+1|0]&2)){b=J[c>>2];if(b){c=J[b>>2];d=J[b+24>>2];if(d)gc[J[c+8>>2]](c,d);J[b+24>>2]=0;d=J[b+28>>2];if(d)gc[J[c+8>>2]](c,d);J[b+28>>2]=0;d=J[b+32>>2];if(d)gc[J[c+8>>2]](c,d);J[b+32>>2]=0;d=J[b+40>>2];if(d)gc[J[c+8>>2]](c,d);J[b+40>>2]=0;d=J[b+52>>2];if(d)gc[J[c+8>>2]](c,d);J[b+20>>2]=0;J[b+36>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+88>>2]=0;d=J[b+24>>2];J[b+56>> -2]=J[b+20>>2];J[b+60>>2]=d;g=J[b+32>>2];d=b- -64|0;J[d>>2]=J[b+28>>2];J[d+4>>2]=g;d=J[b+40>>2];J[b+72>>2]=J[b+36>>2];J[b+76>>2]=d;d=J[b+48>>2];J[b+80>>2]=J[b+44>>2];J[b+84>>2]=d;gc[J[c+8>>2]](c,b);c=J[a+156>>2]}J[c>>2]=0}gc[J[f+8>>2]](f,c)}J[e>>2]=0}function i2(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=350544;a:{b=J[a+168>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+168>>2]=0}b=J[a+304>>2];e=a+308|0;if((b|0)!=(e|0))while(1){J[b+120>>2]=1;c=J[b+ -4>>2];b:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break b}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(e|0))continue;break}f=a+316|0;b=J[f>>2];d=a+320|0;if((b|0)!=(d|0))while(1){J[b+120>>2]=1;c=J[b+4>>2];c:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break c}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}c=a+304|0;Xh(c,J[a+308>>2]);J[a+304>>2]=e;J[a+308>>2]=0;J[a+312>>2]=0;Xh(f,J[a+320>>2]);J[a+316>>2]=d;J[a+320>>2]=0;J[a+324>>2]= -0;b=J[a+188>>2];if(b){J[695492]=0;$(2747,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[d>>2]}else b=0;Xh(f,b);Xh(c,J[a+308>>2]);if(H[a+303|0]<0)qc(J[a+292>>2]);if(H[a+183|0]<0)qc(J[a+172>>2]);return a|0}ea(0)|0;yc();B()}function h0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(J[d>>2]<=0){a:{b:{c:{d:{e=J[a+8>>2];switch(H[e+99|0]-99|0){case 8:break b;case 0:case 23:break c;case 7:break d;default:break a}}gc[J[b+4>>2]](J[b>>2],165);gc[J[b+4>>2]](J[b>>2],8254);gc[J[b+8>>2]](J[b>>2],0,M[e+ -64>>2]<2?127:255);a=J[e+64>>2];if(!((a|0)==3|(c|0)==1)&(a|0)!=4)break a;gc[J[b+8>>2]](J[b>>2],65377,65439);break a}gc[J[b+8>>2]](J[b>>2],0,127);break a}a=J[e+40>>2];gc[J[J[J[a+24>>2]+20>>2]+60>>2]](a,b,c,d)}a=J[e>>2];if(a)Bk(a,b,c,0,d);a=J[e+4>>2];if(a)Bk(a,b,c,0,d);a=J[e+8>>2];if(a)Bk(a,b,c,0,d);a=J[e+12>>2];if(a){f=a;a=K[e+99|0];if(J[e+64>>2]|(a|0)!=122&(a|0)!=99)a=0;else a=2;Bk(f,b,c,a,d)}a=J[e+16>>2];if(a)Bk(a,b,c,K[e+99|0]==106?3:0,d);a=J[e+20>>2];if(a)Bk(a,b,c,0,d);a=J[e+24>>2];if(a)Bk(a,b, -c,0,d);a=J[e+28>>2];if(a)Bk(a,b,c,4,d);a=J[e+32>>2];if(a)Bk(a,b,c,0,d);a=J[e+36>>2];if(a)Bk(a,b,c,0,d);gc[J[b+16>>2]](J[b>>2],14);gc[J[b+16>>2]](J[b>>2],15);gc[J[b+16>>2]](J[b>>2],27);gc[J[b+20>>2]](J[b>>2],128,159)}}function fQa(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;l=+J[b>>2]*1.52587890625E-5;e=+J[b+4>>2]*1.52587890625E-5;g=l*e;h=+J[b+8>>2]*1.52587890625E-5;i=+J[b+12>>2]*1.52587890625E-5;j=1-i;n=g*h*j;f=g;g=1-h;f=f*g;o=f*j;v= -i*f*.0078;f=1-e;k=l*f;p=h*k;q=p*j;k=k*g;r=i*k;k=k*j;m=1-l;e=m*e;s=e*h;l=s*j;t=e*g;u=t*j;f=m*f;e=f*g;g=i*e;e=e*j;m=(n*.2235+(v+(o*.5725+(q*.3137+(r*.1412+(k*.9373+(l*.1412+(u*.549+(g*.1255+e)))))))))*65536;a:{if(R(m)<2147483648){a=~~m;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c+8>>2]=(a|0)>0?a:0;h=h*f;f=i*h;j=h*j;h=(n*.2118+(o*.1804+(s*i*.1333+(l*.9294+(i*t*.1412+(u*.9255+(f*.1098+(j+(g*.1373+e)))))))))*65536;b:{if(R(h)<2147483648){a=~~h;break b}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a| -0)>0?a:0;i=(n*.2119+(o*.1922+(i*p*.0745+(q*.651+(r*.0588+(k*.6784+(l*.1098+(f*.102+(j*.949+(g*.1216+e))))))))))*65536;c:{if(R(i)<2147483648){a=~~i;break c}a=-2147483648}a=(a|0)>=65536?65536:a;J[c+4>>2]=(a|0)>0?a:0}function Q1a(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=-1;f=K[b+11|0];g=f<<24>>24<0;i=g?J[b>>2]:b;h=g?J[b+4>>2]:f;b=h+1|0;b=b>>>0>1073741823?-1:b<<2;f=rc(b);g=rc(b);if(K[c|0]){J[g>>2]=0;e=0}b=J[i>>2];if(!((b|0)!=92&(b|0)!=47)){J[f>>2]=b;e=e+1|0;J[g+(e<<2)>>2]=1; -d=1}c=0;a:{b:{c:{if((h|0)>0){d:while(1){b=c;while(1){e:{j=J[(b<<2)+i>>2];if(!((j|0)!=92&(j|0)!=47)){f:{if((b|0)<=(c|0))break f;g:{if((b-c|0)!=2)break g;c=(c<<2)+i|0;if(J[c>>2]!=46|J[c+4>>2]!=46|(e|0)<=0)break g;e=e-1|0;d=J[g+(e<<2)>>2];break f}J[f+(d<<2)>>2]=47;e=e+1|0;d=d+1|0;J[g+(e<<2)>>2]=d}c=b+1|0;if((h|0)>(c|0))continue d;break e}J[f+(d<<2)>>2]=j;d=d+1|0;b=b+1|0;if((h|0)>(b|0))continue}break}break}J[f+(d<<2)>>2]=0;if(d>>>0>=1073741808)break c;if(d>>>0<=1){H[a+11|0]=d;break a}b=d|3;if(b>>>0>= -1073741823)break b;c=b+1|0;b=rc(c<<2);J[a+8>>2]=c|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b;break a}J[f+(d<<2)>>2]=0;H[a+11|0]=d;break a}Id(a);B()}Sd();B()}b=a;a=d<<2;k=tc(b,f,a)+a|0,l=0,J[k>>2]=l;qc(f);qc(g)}function vza(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;g=bc-16|0;bc=g;J[a+12>>2]=0;J[a+8>>2]=b;J[a>>2]=2402060;J[a+4>>2]=0;J[a+16>>2]=J[682146];h=a+12|0;b=J[c>>2];a:{b:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,g+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b= -Z()|0;break a}J[g+12>>2]=0}J[695492]=0;aa(4993,h|0,g+12|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){b=J[g+12>>2];J[g+12>>2]=0;if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i=J[695492];J[695492]=0;if((i|0)!=1){if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}ea(0)|0;yc();B()}b=Z()|0;vc(g+12|0);break a}b=J[a+12>>2];b=J[(b?b+12|0:2728584)>>2];J[a+20>>2]=d;J[a+16>>2]=b;b=0;J[695492]=0;d=aa(4991,a+24|0,e|0)|0;c=J[695492];J[695492]=0;d:{e:{if((c|0)!=1){c=J[f>>2]; -if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[f>>2]}J[a+64>>2]=0;J[a+60>>2]=b;bc=g+16|0;return a|0}b=Z()|0;break d}b=Z()|0;ud(d)}}sc(h);ed(a);ba(b|0);B()}function Gq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{d=J[a>>2];c:{if(d>>>0>=b>>>0)break c;h=d+1|0;f=K[d|0];c=f<<24>>24;if((c|0)<0){if(b>>>0<=h>>>0)break c;d:{if(!(f&64))break d;c=K[d+1|0];if((c&192)!=128)break d;e=c&63|f<<6;c=d+2|0;if(f&32){if(b>>>0<=c>>>0)break c;c=K[d+2|0];if((c&192)==128){e= -c&63|e<<6;c=d+3|0;g=f&16;if(g){if(b>>>0<=c>>>0)break c;e:{c=K[d+3|0];if((c&192)!=128)break e;e=c&63|e<<6;if(!e)break e;c=d+4|0;g=f&8;if(g){if(b>>>0<=c>>>0)break c;c=K[d+4|0];if((c&192)==128){e=c&63|e<<6;c=d+5|0;g=f&4;if(g){if(b>>>0<=c>>>0)break c;f:{if(f&2)break f;b=K[c|0];if((b&192)!=128)break f;b=b&63|e<<6&2147483584;if(!b)break f;J[a>>2]=d+6;return b|0}break a}if(g)break c;b=e&67108863;if(!b)break c;J[a>>2]=c;return b|0}break a}if(g)break c;b=e&2097151;if(!b)break c;break b}break a}if(g)break c; -b=e&65535;if(!b)break c;break b}break a}b=e&2047;if(!b)break c;break b}break a}if(!c)break c;J[a>>2]=h;i=f}return i|0}J[a>>2]=c;return b|0}J[a>>2]=h;return K[d|0]^-1}function GL(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;i=K[J[a>>2]+236|0];J[g>>2]=0;J[f>>2]=0;if(K[a+11666|0]){h=e-c|0;e=i?0-h|0:h;j=J[a+4>>2];h=P(h>>16,b>>16);b=d-b|0;J[j+16>>2]=J[j+16>>2]+(h-P(b>>16,c>>16)|0);a:{b:{b=i?0-b|0:b;if((b|0)>=0){if((e|0)>=0){if((b|0)>e<<1)break b;c=J[a+11688>>2];if((e|0)>b<<1){J[f>>2]=c;a=J[a+11692>>2];break a}k= -f,l=Pc(45875,c),J[k>>2]=l;a=Pc(19661,J[a+11692>>2]);break a}if((b|0)>(0-(e<<1)|0))break b;c=J[a+11688>>2];if((0-e|0)>b<<1){J[f>>2]=0-c;a=J[a+11692>>2];break a}k=f,l=Pc(-45874,c),J[k>>2]=l;a=Pc(19661,J[a+11692>>2]);break a}c=0-b|0;if((e|0)>=0){if((c|0)>e<<1){J[f>>2]=0;a=J[a+11692>>2]<<1;break a}c=J[a+11688>>2];if((e|0)>(0-(b<<1)|0)){J[f>>2]=c;a=J[a+11692>>2];break a}k=f,l=Pc(45875,c),J[k>>2]=l;a=Pc(111411,J[a+11692>>2]);break a}if((c|0)>(0-(e<<1)|0)){J[f>>2]=0;a=J[a+11692>>2]<<1;break a}c=J[a+11688>> -2];if((0-(b<<1)|0)<(0-e|0)){J[f>>2]=0-c;a=J[a+11692>>2];break a}k=f,l=Pc(-45874,c),J[k>>2]=l;a=Pc(111411,J[a+11692>>2]);break a}J[f>>2]=0;a=0}J[g>>2]=a}}function dRa(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;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,817588,0);return}d=J[c+380>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+380>>2]=0;c=J[a+28>>2];g=rk(4);d=J[c+116>>2];if(d)gc[J[J[d>> -2]+4>>2]](d);J[c+116>>2]=g;c=J[a+8>>2];gc[J[J[c>>2]+108>>2]](c,J[a+28>>2]);e=O[b+24>>3];d=J[b+24>>2];f=O[b+40>>3];g=J[b+40>>2];i=O[b+8>>3];j=J[b+8>>2];k=J[b>>2];l=J[b+16>>2];m=J[b+32>>2];c=J[a+28>>2];h=(J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3])*65536;b:{if(R(h)<2147483648){b=~~h;break b}b=-2147483648}J[c+136>>2]=b;f=((m|0)==1?+(g|0):f)*65536;c:{if(R(f)<2147483648){b=~~f;break c}b=-2147483648}J[c+132>>2]=b;e=((l|0)==1?+(d|0):e)*65536;d:{if(R(e)<2147483648){b=~~e;break d}b=-2147483648}J[c+128>>2]=b;e=((k| -0)==1?+(j|0):i)*65536;e:{if(R(e)<2147483648){b=~~e;break e}b=-2147483648}J[c+124>>2]=b;b=J[a+8>>2];gc[J[J[b>>2]+116>>2]](b,J[a+28>>2])}function Rcb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){c=J[a+100>>2];b=J[a+316>>2];if(b){d=J[a+300>>2];if((d|0)>0){b=0;while(1){e=J[a+316>>2]+(b<<3)|0;f=J[e+4>>2];if(f){d=J[f>>2];if(d)gc[J[c+8>>2]](c,d);J[J[e+4>>2]>>2]=0;d=J[e+4>>2];if(d)gc[J[c+8>>2]](c,d);J[e+4>>2]=0;d=J[a+300>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}b=J[a+316>>2]}if(b)gc[J[c+8>>2]](c,b);J[a+316>>2]= -0}b=J[a+164>>2];if(b)gc[J[c+8>>2]](c,b);J[a+164>>2]=0;b=J[a+168>>2];if(b)gc[J[c+8>>2]](c,b);J[a+168>>2]=0;b=J[a+172>>2];if(b)gc[J[c+8>>2]](c,b);J[a+172>>2]=0;b=J[a+176>>2];if(b)gc[J[c+8>>2]](c,b);J[a+176>>2]=0;b=J[a+180>>2];if(b)gc[J[c+8>>2]](c,b);J[a+180>>2]=0;b=J[a+304>>2];if(b)gc[J[c+8>>2]](c,b);J[a+300>>2]=0;J[a+304>>2]=0;b=J[a+140>>2];if(b)gc[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+152>>2];if(b)gc[J[c+8>>2]](c,b);J[a+152>>2]=0;b=J[a+156>>2];if(b)gc[J[c+8>>2]](c,b);J[a+20>>2]=0;J[a+24>>2]=0;J[a+156>> -2]=0;b=J[a+324>>2];if(b)gc[J[c+8>>2]](c,b);J[a+324>>2]=0;b=J[a+328>>2];if(b)gc[J[c+8>>2]](c,b);J[a+328>>2]=0}}function Peb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=bc-16|0;bc=f;j=J[a+552>>2];a:{b:{g=L[(b?a+296|0:a+216|0)+34>>1];if(!g)break b;h=J[(b?856:852)+a>>2];k=h+J[(b?756:752)+a>>2]|0;i=J[a+104>>2];if(c>>>0>>0){g=h+(c<<2)|0;if(g+4>>>0>k>>>0)break b;g=nd(i,g);J[f+12>>2]=g;if(g)break b;m=e,n=Wd(i,f+12|0),I[m>>1]=n;if(J[f+12>>2])break b;m=d,n=Wd(i,f+12| -0),I[m>>1]=n;if(!J[f+12>>2])break a;break b}h=h+(g<<2)|0;if(h-2>>>0>k>>>0)break b;h=h-4|0;l=nd(i,h);J[f+12>>2]=l;if(l)break b;m=e,n=Wd(i,f+12|0),I[m>>1]=n;if(J[f+12>>2])break b;g=h+(c-g<<1)|0;if(g+6>>>0>k>>>0){I[d>>1]=0;break a}g=nd(i,g+4|0);J[f+12>>2]=g;if(g){I[d>>1]=0;break a}m=d,n=Wd(i,f+12|0),I[m>>1]=n;break a}I[d>>1]=0;I[e>>1]=0}if(j){J[f+8>>2]=L[e>>1];J[f+4>>2]=I[d>>1];c:{d:{if(b){b=J[j+12>>2];if(b)gc[b|0](a,c,f+8|0)|0;b=J[j+16>>2];if(b)break d;break c}b=J[j>>2];if(b)gc[b|0](a,c,f+8|0)|0;b= -J[j+4>>2];if(!b)break c}gc[b|0](a,c,f+4|0)|0}I[e>>1]=J[f+8>>2];I[d>>1]=J[f+4>>2]}bc=f+16|0}function PRa(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;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,817588,0);return}d=J[c+384>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+384>>2]=0;c=J[a+28>>2];g=rk(4);d=J[c+120>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+120>>2]=g;c=J[a+8>>2];gc[J[J[c>>2]+112>> -2]](c,J[a+28>>2]);e=O[b+24>>3];d=J[b+24>>2];f=O[b+40>>3];g=J[b+40>>2];i=O[b+8>>3];j=J[b+8>>2];k=J[b>>2];l=J[b+16>>2];m=J[b+32>>2];c=J[a+28>>2];h=(J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3])*65536;b:{if(R(h)<2147483648){b=~~h;break b}b=-2147483648}J[c+264>>2]=b;f=((m|0)==1?+(g|0):f)*65536;c:{if(R(f)<2147483648){b=~~f;break c}b=-2147483648}J[c+260>>2]=b;e=((l|0)==1?+(d|0):e)*65536;d:{if(R(e)<2147483648){b=~~e;break d}b=-2147483648}J[c+256>>2]=b;e=((k|0)==1?+(j|0):i)*65536;e:{if(R(e)<2147483648){b=~~e;break e}b= --2147483648}J[c+252>>2]=b;b=J[a+8>>2];gc[J[J[b>>2]+120>>2]](b,J[a+28>>2])}function mjb(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;a=J[a+12>>2];g=a+4280|0;a:{b:{c:{e=J[a+4280>>2];if(e>>>0>b>>>0){e=e-b|0;f=J[a+4284>>2];if(e>>>0<=(f-a|0)-184>>>0){J[a+4280>>2]=b;J[a+4284>>2]=f-e;break c}e=0;if(nd(J[a>>2],0))break a;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4288>>2]=g;J[a+4284>>2]=g;J[a+4280>>2]=0;J[a+104>>2]=0;J[a+48>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;H[a+44|0]=0;J[a- -64>>2]=9}if(b>>>0<=e>>>0)break c; -h=J[a+4284>>2];i=J[a+4288>>2]-h|0;f=b-e|0;b=f>>>0>i>>>0?i:f;J[a+4284>>2]=b+h;J[a+4280>>2]=b+e;b=f-b|0;if(b){h=a+12|0;while(1){e=0;f=b>>>0>=4096?4096:b;if(C5(h,0,f)>>>0>>0)break a;J[g>>2]=f+J[g>>2];b=b-f|0;if(b)continue;break}}if(d)break b;return 0}if(d)break b;return 0}f=a+184|0;i=a+12|0;g=J[a+4284>>2];b=J[a+4288>>2];e=0;while(1){b=b-g|0;b=b>>>0>>0?b:d;tc(c+e|0,g,b);J[a+4284>>2]=b+J[a+4284>>2];J[a+4280>>2]=b+J[a+4280>>2];e=b+e|0;d=d-b|0;if(!d)break a;J[a+4284>>2]=f;h=C5(i,f,4096);g=J[a+4284>> -2];b=h+g|0;J[a+4288>>2]=b;if(h)continue;break}}return e|0}function x8a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;J[J[J[b>>2]>>2]+20>>2]=c;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+24>>2]=0;J[b+28>>2]=-1;J[b+208>>2]=0;J[b+212>>2]=-1;J[b+176>>2]=0;J[b+180>>2]=0;J[b+400>>2]=0;J[b+404>>2]=0;if(K[a+96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1172>>2]=0;J[a+88>>2]=-2147483647;J[a+ -92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}c=xC(b,e+8|0,e);if(c){f=a+100|0;while(1){d=O[e>>3];g=O[e+8>>3];a:{if((c|0)==1){aL(a,g,d);break a}if(c>>>0<=14){d=d*256;d=d+(d<0?-.5:.5);b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}d=g*256;d=d+(d<0?-.5:.5);c:{if(R(d)<2147483648){h=~~d;break c}h=-2147483648}Fe(f,a,h,c);J[a+1172>>2]=2;break a}if((c&-49)!=79|J[a+1172>>2]!=2)break a;Fe(f,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}c= -xC(b,e+8|0,e);if(c)continue;break}}bc=e+16|0}function mRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=bc-144|0;bc=c;J[c+128>>2]=13;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,d,817935,0);break a}e=J[d+380>>2];if(e)gc[J[J[e>>2]+4>>2]](e);J[d+380>>2]=0;d=J[a+20>>2];c:{d:{e=J[b+8>>2];e:{if(!Ec(e,785252))break e;if(!Ec(e,786715))break e;if(!Ec(e,787555))break e;while(1){if(J[d+24>>2]==7){f=c+128| -0;if(J[Bc(J[d+32>>2],e,f,0)>>2]!=5)break d;uc(f)}d=J[d+104>>2];if(d)continue;break}}J[c+128>>2]=5;break c}b=J[c+128>>2]==5?b:c+128|0}b=am(b,0);uc(c+128|0);if(b){e=J[a+28>>2];d=J[e+116>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[e+116>>2]=b;d=J[a+8>>2];gc[J[J[d>>2]+108>>2]](d,J[a+28>>2]);gc[J[J[b>>2]+32>>2]](b,c);tc(J[a+28>>2]+124|0,c,128);b=J[a+8>>2];gc[J[J[b>>2]+116>>2]](b,J[a+28>>2]);break a}d=-1;a=J[a+108>>2];f:{if(!a)break f;a=J[a+4>>2];if(J[a+8>>2]==13)break f;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1, -d,818258,0)}bc=c+144|0}function ZRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=bc-144|0;bc=c;J[c+128>>2]=13;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,d,817935,0);break a}e=J[d+384>>2];if(e)gc[J[J[e>>2]+4>>2]](e);J[d+384>>2]=0;d=J[a+20>>2];c:{d:{e=J[b+8>>2];e:{if(!Ec(e,785252))break e;if(!Ec(e,786715))break e;if(!Ec(e,787555))break e;while(1){if(J[d+24>>2]==7){f=c+128|0;if(J[Bc(J[d+32>>2],e, -f,0)>>2]!=5)break d;uc(f)}d=J[d+104>>2];if(d)continue;break}}J[c+128>>2]=5;break c}b=J[c+128>>2]==5?b:c+128|0}b=am(b,0);uc(c+128|0);if(b){e=J[a+28>>2];d=J[e+120>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[e+120>>2]=b;d=J[a+8>>2];gc[J[J[d>>2]+112>>2]](d,J[a+28>>2]);gc[J[J[b>>2]+32>>2]](b,c);tc(J[a+28>>2]+252|0,c,128);b=J[a+8>>2];gc[J[J[b>>2]+120>>2]](b,J[a+28>>2]);break a}d=-1;a=J[a+108>>2];f:{if(!a)break f;a=J[a+4>>2];if(J[a+8>>2]==13)break f;a=J[a+16>>2];d=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,d,818429,0)}bc=c+144| -0}function PF(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;j=QF(a,b,c,d);f=J[e>>2];if(!f)return j;a:{i=J[d>>2];if(!i)break a;g=O[f+16>>3];h=O[i+16>>3];if(R(g-h)<=.01){if(O[f+32>>3]>3])break a;return j}if(g>2]=f;J[e>>2]=i;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=j+1|0;f=J[d>>2];b:{if(!f)break b;i=J[c>>2];c:{if(!i)break c;g=O[f+16>>3];h=O[i+16>>3];if(R(g-h)<=.01){if(O[f+32>>3]>3])break c;break b}if(!(g>2]=f;J[d>>2]=i;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2]; -J[d+4>>2]=e;e=j+2|0;d=J[c>>2];if(!d)break b;f=J[b>>2];d:{if(!f)break d;g=O[d+16>>3];h=O[f+16>>3];if(R(g-h)<=.01){if(O[d+32>>3]>3])break d;break b}if(!(g>2]=d;J[c>>2]=f;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;e=j+3|0;c=J[b>>2];if(!c)break b;d=J[a>>2];e:{if(!d)break e;g=O[c+16>>3];h=O[d+16>>3];if(R(g-h)<=.01){if(O[c+32>>3]>3])break e;break b}if(!(g>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;e=j+4|0}return e}function pua(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=bc-16|0;bc=e;d=J[c+8>>2]-J[c>>2]|0;g=J[c+12>>2]-J[c+4>>2]|0;h=J[a+20>>2];if(h)qc(h);J[a+16>>2]=0;J[a+20>>2]=0;I[a+12>>1]=d;I[a+10>>1]=d;I[a+8>>1]=g;d=P(d&65535,g&65535);if(d){d=rc((l=-1,m=Dzb(d,0,3,0),n=fc,n?l:m));J[a+16>>2]=d;J[a+20>>2]=d}d=L[b+10>>1];J[e+12>>2]=L[b+8>>1];J[e+8>>2]=d;J[e>>2]=0;J[e+4>>2]=0;Ds(e,e,c);Sj(e,0-J[c>>2]|0,0-J[c+4>>2]|0);f=J[e+8>>2];a:{if((f|0)<=J[e>>2])break a;g=J[e+4>>2];i=J[e+12>>2];if((g|0)>=(i|0))break a; -while(1){d=0;b:{if((g|0)<0)break b;d=0;if(L[a+8>>1]<=g>>>0)break b;h=J[a+16>>2];d=0;if(!h)break b;d=h+P(P(L[a+12>>1],g),3)|0}h=J[e>>2];if((h|0)<(f|0)){f=J[c+4>>2]+g|0;k=P(J[c>>2],3)+((f|0)>=0?f>>>0>1]?J[b+16>>2]+P(P(f,L[b+12>>1]),3)|0:0:0)|0;while(1){i=P(h,3);f=i+d|0;i=i+k|0;j=K[i|0]|K[i+1|0]<<8;H[f|0]=j;H[f+1|0]=j>>>8;H[f+2|0]=K[i+2|0];f=J[e+8>>2];h=h+1|0;if((f|0)>(h|0))continue;break}i=J[e+12>>2]}g=g+1|0;if((i|0)>(g|0))continue;break}}bc=e+16|0}function kva(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;f=bc-32|0;bc=f;a:{if(K[a+88|0]){d=J[a+84>>2];break a}m=a,n=gc[J[J[a>>2]+36>>2]](a)|0,J[m+72>>2]=n;m=a,n=gc[J[J[a>>2]+44>>2]](a)|0,J[m+76>>2]=n;m=a,n=gc[J[J[a>>2]+40>>2]](a)|0,J[m+80>>2]=n;d=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}b:{c:{if(J[a+92>>2]>0){g=J[a+80>>2];i=d-g|0;h=J[a+72>>2];j=J[a+76>>2]-h|0;k=J[a+128>>2];l=J[a+104>>2];d=0;while(1){if(!(J[a+116>>2]<=(d|0)&J[a+120>>2]>=(d|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}e=(d-J[a+108>>2]<<2)+l|0;J[e>>2]=((P(J[e>>2]-h|0,b)|0)/(j|0)|0)+h;if(!(J[a+140>>2]<=(d|0)&J[a+144>>2]>=(d|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;break b}e=(d-J[a+132>>2]<<2)+k|0;J[e>>2]=((P(J[e>>2]-g|0,c)|0)/(i|0)|0)+g;d=d+1|0;if((d|0)>2])continue;break}}bc=f+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function cub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=J[J[a+2248>> -2]+88>>2];e=J[b+1168>>2];c=(J[b+1176>>2]+P(e,J[a+572>>2])|0)+P(e,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){c=K[b|0]|K[b+1|0]<<8;f=(c<<8|c>>>8)&65535;c=K[e|0]|K[e+1|0]<<8;c=f+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;e=e+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;c=J[a+588>>2];if((d|0)<(c|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b|0]= -K[e|0];H[b+1|0]=K[e+1|0];e=e+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;c=J[a+588>>2];if((d|0)<(c|0))continue;break}}if((c|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;c=0;while(1){d=K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535;d=d<<8|d>>>8;H[b|0]=d;H[b+1|0]=d>>>8;e=e+2|0;b=(J[a+584>>2]<<1)+b|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Ytb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[J[a+2248>>2]+88>>2]; -c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=4;e=e+1|0;b=240}H[c|0]=K[c|0]+((b&h)>>>d|0)&15;d=d-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}break b}if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=4;e=e+1|0;b=240}H[c|0]=(b&h)>>>d;d=d-4|0; -b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}}if((g|0)<=0)break a;b=J[a+540>>2];d=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;b=0;c=0;g=0;e=0;while(1){if(!(c&255)){g=K[f|0];c=240;f=f+1|0;b=4}H[d|0]=(c&g&255)>>>b;b=b-4|0;c=(c&240)>>>4|0;d=J[a+584>>2]+d|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Ic(a,b){var c=0,d=0,e=0;d=(a|0)==(b|0);H[b+12|0]=d;a:{if(d)break a;while(1){d=J[b+8>> -2];if(K[d+12|0])break a;b:{c=J[d+8>>2];e=J[c>>2];if((e|0)==(d|0)){e=J[c+4>>2];if(!(!e|K[e+12|0]))break b;c:{if(J[d>>2]==(b|0)){b=d;break c}b=J[d+4>>2];e=J[b>>2];J[d+4>>2]=e;a=d;if(e){J[e+8>>2]=d;c=J[d+8>>2];a=J[c>>2]}J[b+8>>2]=c;J[((a|0)==(d|0)?c:c+4|0)>>2]=b;J[b>>2]=d;J[d+8>>2]=b;c=J[b+8>>2];d=J[c>>2]}H[b+12|0]=1;H[c+12|0]=0;a=J[d+4>>2];J[c>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[d+8>>2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d+4>>2]=c;J[c+8>>2]=d;return}if(!(K[e+12|0]|!e))break b;d:{if(J[d>>2]!=(b|0)){b= -d;break d}a=J[b+4>>2];J[d>>2]=a;if(a){J[a+8>>2]=d;c=J[d+8>>2]}J[b+8>>2]=c;J[(J[c>>2]==(d|0)?c:c+4|0)>>2]=b;J[b+4>>2]=d;J[d+8>>2]=b;c=J[b+8>>2]}H[b+12|0]=1;H[c+12|0]=0;a=J[c+4>>2];b=J[a>>2];J[c+4>>2]=b;if(b)J[b+8>>2]=c;b=J[c+8>>2];J[a+8>>2]=b;J[b+((J[b>>2]!=(c|0))<<2)>>2]=a;J[a>>2]=c;J[c+8>>2]=a;break a}H[d+12|0]=1;H[c+12|0]=(a|0)==(c|0);H[e+12|0]=1;b=c;if((a|0)!=(c|0))continue;break}}}function os(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(+a);d=v(1)|0;f=v(0)|0;h=d>>>16|0;e=d-1072562176| -0;if((e|0)==198911|e>>>0<198911){if(!f&(d|0)==1072693248)return 0;b=a+-1;a=b*134217728;k=b+a-a;i=O[324564];j=k*k*i;a=b+j;c=b*b;g=b*c;return a+(g*(g*(g*(g*O[324574]+(c*O[324573]+(b*O[324572]+O[324571])))+(c*O[324570]+(b*O[324569]+O[324568])))+(c*O[324567]+(b*O[324566]+O[324565])))+((b-k)*i*(b+k)+(j+(b-a))))}a:{if(h-32752>>>0<=4294934559){A(+a);e=v(1)|0;if(!(v(0)|e&2147483647)){f=bc-16|0;O[f+8>>3]=-1;return O[f+8>>3]/0}if(!f&(d|0)==2146435072)break a;if(!((h&32752)!=32752&h>>>0<=32767)){a=a-a;return a/ -a}A(+(a*4503599627370496));d=v(1)|0;f=v(0)|0;d=d-54525952|0}l=d-1072037888|0;i=+(l>>20);e=(l>>>13&127)<<4;j=i*O[324557]+O[e+2596608>>3];a=O[e+2596600>>3];h=0;x(0,f-h|0);x(1,d-((l&-1048576)+(f>>>0>>0)|0)|0);c=a*(+z()-O[e+2598648>>3]-O[e+2598656>>3]);a=j+c;g=c*c;a=a+(c*g*(g*(c*O[324563]+O[324562])+(c*O[324561]+O[324560]))+(g*O[324559]+(i*O[324558]+(c+(j-a)))))}return a}function Ztb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+ -P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=6;e=e+1|0;b=192}H[c|0]=K[c|0]+((b&h)>>>d|0)&3;d=d-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}break b}if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=6;e=e+1|0;b=192}H[c|0]=(b&h)>>>d;d=d-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>> -2];if((f|0)<(g|0))continue;break}}if((g|0)<=0)break a;b=J[a+540>>2];d=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;b=0;c=0;g=0;e=0;while(1){if(!(c&255)){g=K[f|0];c=192;f=f+1|0;b=6}H[d|0]=(c&g&255)>>>b;b=b-2|0;c=(c&252)>>>2|0;d=J[a+584>>2]+d|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function FFa(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;e=bc-16|0;bc=e;c=1;a:{if(gc[J[J[a>>2]+32>>2]](a,b)|0)break a;c=0;gc[J[J[a>>2]+ -48>>2]](e+4|0,a,b,0);b:{c:{b=J[e+8>>2];g=J[e+4>>2];j=(b|0)==(g|0);if(!j){f=g;while(1){c=K[f+11|0];h=c<<24>>24<0;k=h?J[f>>2]:f;a=k;i=h?J[f+4>>2]:c;d=a+(i<<2)|0;h=d;c=a;if(i){d:while(1){c=a;while(1){e:{a=c+4|0;if(J[c>>2]==46){if((a|0)==(d|0))break e;if(J[a>>2]!=112)continue d;if((c+8|0)==(d|0))break e;if(J[c+8>>2]!=105)continue d;if((c+12|0)==(d|0))break e;if(J[c+12>>2]!=101)continue d;if((c+16|0)==(d|0))break e;if(J[c+16>>2]!=99)continue d;if((c+20|0)==(d|0))break e;h=J[c+20>>2]==101?c:h;continue d}c= -a;if((d|0)!=(c|0))continue}break}break}c=h}a=(c|0)==(d|0)?-1:c-k>>2;c=(a|0)!=-1&(a+6|0)==(i|0);if(!c){f=f+12|0;if((f|0)!=(b|0))continue}break}if(g)break c;break a}if(g)break b;break a}if(!j){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((a|0)!=(g|0))continue;break}b=J[e+4>>2]}}J[e+8>>2]=g;qc(b)}bc=e+16|0;return c|0}function vJa(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;a:{if(!J[a+144>>2])break a;e=J[b+596>>2];if(J[e+28>>2]!=1)break a; -e=J[J[e+24>>2]>>2];if(J[e+12>>2]!=5)break a;g=J[e+8>>2];if(J[g>>2]|J[g+4>>2]|(J[g+8>>2]|J[g+12>>2]))break a;if(J[g+16>>2])break a;n=O[b+56>>3];o=O[b+24>>3];g=J[e>>2];s=O[g>>3];e=J[e+4>>2];t=O[e>>3];i=O[b+40>>3];k=n+(o*s+t*i);j=O[g+8>>3];l=O[e+8>>3];m=n+(o*j+l*i);c=O[g+16>>3];d=O[e+16>>3];h=n+(o*c+d*i);p=O[b+48>>3];q=O[b+16>>3];r=O[b+32>>3];d=p+(q*c+d*r);f=O[g+24>>3];c=O[e+24>>3];u=n+(o*f+c*i);v=p+(q*f+c*r);f=O[g+32>>3];c=O[e+32>>3];i=n+(o*f+c*i);f=p+(q*f+c*r);b:{c:{c=p+(q*j+l*r);j=p+(q*s+t*r);if(c!= -j|h!=m|(d!=v|i!=u))break c;if(f!=j|i!=k)break c;c=d;h=m;break b}if(k!=m|c!=d|(h!=u|f!=v))break a;if(f!=j|i!=k)break a}b=h>2],c,d,h,d);return}if(!(d<3))break a;d=(c+h)*.5;eY(J[a+116>>2],d,f,d,l)}}function Zpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(c){Dc(a,1028,0,0);return 1028}a:{if(!K[a+286|0]){if(K[a+289|0]|(K[a+287|0]|K[a+288|0]))break a;Dc(a,1029,0,0);return 1029}if(K[a+300|0])break a; -Dc(a,1033,0,0);return 1033}J[a+48>>2]=J[a+48>>2]-1;d=0;f=bc-16|0;bc=f;b:{if(!K[a+114|0])break b;d=J[(K[a+288|0]?528:512)+a>>2];if(!d)d=J[a+528>>2];d=wN(a,0,0,H[d+31|0],0,0,0,0,0,d,f+12|0);if(d)break b;c=J[f+12>>2];J[c+4>>2]=1024;J[c>>2]=1025;g=J[a+700>>2];c:{if(g){J[g+8>>2]=c;break c}J[a+696>>2]=c}d=0;J[c+8>>2]=0;J[c+12>>2]=g;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(J[a+516>>2]|(K[a+496|0]|!K[a+432|0]))break b;J[a+516>>2]=c}bc=f+16|0;c=d;d:{if(c)break d; -c=jN(a);if(c)break d;if(!K[a+497|0]){I[a+286>>1]=0;I[a+288>>1]=0;I[a+290>>1]=0;I[a+292>>1]=0;H[a+293|0]=0;H[a+294|0]=0;H[a+295|0]=0;H[a+296|0]=0;H[a+297|0]=0;H[a+298|0]=0;H[a+299|0]=0;H[a+300|0]=0}if(K[a+112|0]){c=gc[J[b+4>>2]](a,b,e)|0;if(c)break d}c=0}return c|0}function sqb(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;var h=0,i=0,j=0,k=0,l=0;a:{if(f){if(!d)break a;a=c<<1;l=b<<1;b=0;while(1){i=L[e>>1];b:{if((i|0)==L[f>>1]){I[g>>1]=i;break b}i=K[e|0]|K[e+1|0]<<8;k=i>>>8|0;h=K[f|0]|K[f+ -1|0]<<8;i=((i<<8|k)&65535)+((P(((h<<8|h>>>8)&65535)-((k|i<<8)&65535)|0,l)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];c:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break c}h=e+2|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=j+((P(((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0,l)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[e+4>>1];d:{if((h|0)==L[f+4>>1]){I[i>>1]=h;break d}h=e+4|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j= -(h<<8|h>>>8)&65535;h=K[f+4|0]|K[f+5|0]<<8;h=j+((P(((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0,l)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}f=f+6|0;e=e+6|0;g=g+6|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}tc(g,e,P(d,6))}return 0}function MW(a){var b=0,c=0;b=ye(1,92);if(!b)return 0;J[b+72>>2]=1;a:{b:{c:switch(a|0){case 0:J[b+84>>2]=4662;J[b+80>>2]=4663;J[b+76>>2]=4664;J[b+16>>2]=4665;J[b+4>>2]=4666;J[b+24>>2]=4667;J[b+20>>2]=4668;J[b>>2]=4669;J[b+88>>2]=4670;J[b+40>>2]=4671;J[b+ -36>>2]=4672;J[b+32>>2]=4673;J[b+28>>2]=4674;J[b+12>>2]=4675;J[b+8>>2]=4676;a=fX();J[b+44>>2]=a;if(a)break b;break a;case 2:break c;default:break a}J[b+84>>2]=4677;J[b+80>>2]=4678;J[b+76>>2]=4679;J[b+16>>2]=4680;J[b+4>>2]=4681;J[b+88>>2]=4682;J[b+40>>2]=4683;J[b+36>>2]=4684;J[b+32>>2]=4685;J[b+28>>2]=4686;J[b+24>>2]=4687;J[b+20>>2]=4688;J[b+12>>2]=4689;J[b+8>>2]=4690;J[b>>2]=4691;a=ye(1,136);d:{if(a){c=fX();J[a>>2]=c;e:{if(!c)break e;J[a+108>>2]=0;J[a+112>>2]=0;H[a+124|0]=0;J[a+116>>2]=0;J[a+120>> -2]=0;c=mA();J[a+4>>2]=c;if(!c)break e;c=mA();J[a+8>>2]=c;if(!c)break e;break d}RW(a)}a=0}J[b+44>>2]=a;if(!a)break a}J[b+68>>2]=4654;J[b+60>>2]=4654;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+64>>2]=4654;return b}qc(b);return 0}function LS(a){var b=0,c=0,d=0;a:{if(!J[a+8>>2])break a;b=J[a+4>>2];d=J[b>>2];c=J[J[a>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+8>>2]=0;if((a|0)==(b|0))break a;while(1){d=J[b+4>>2];if(H[b+63|0]<0)qc(J[b+52>>2]);c=J[b+36>>2];if(c){J[b+40>>2]=c;qc(c)}if(H[b+19|0]<0)qc(J[b+8>>2]);qc(b); -b=d;if((b|0)!=(a|0))continue;break}}b:{b=J[a+12>>2];if(b){d=J[J[b>>2]+12>>2];J[695492]=0;$(d|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+12>>2]=0}c:{if(!J[a+40>>2])break c;b=J[a+36>>2];d=J[b>>2];c=J[J[a+32>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+40>>2]=0;c=a+32|0;if((c|0)==(b|0))break c;while(1){d=J[b+4>>2];qc(b);b=d;if((c|0)!=(b|0))continue;break}}if(H[a+27|0]<0)qc(J[a+16>>2]);d:{if(!J[a+8>>2])break d;b=J[a+4>>2];d=J[b>>2];c=J[J[a>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+8>>2]=0;if((a|0)==(b| -0))break d;while(1){d=J[b+4>>2];if(H[b+63|0]<0)qc(J[b+52>>2]);c=J[b+36>>2];if(c){J[b+40>>2]=c;qc(c)}if(H[b+19|0]<0)qc(J[b+8>>2]);qc(b);b=d;if((b|0)!=(a|0))continue;break}}return}ea(0)|0;yc();B()}function vI(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,w=0;g=bc-256|0;bc=g;while(1){e=d<<2;c=e+a|0;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[e+g>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=d+1|0;if((d|0)!=16)continue;break}d=16;a=J[g>>2];while(1){f= -a;a=(d<<2)+g|0;c=J[a-8>>2];c=f+(J[a-28>>2]+(Hzb(c,15)^Hzb(c,13)^c>>>10)|0)|0;f=a;a=J[a-60>>2];v=f,w=(Hzb(a,25)^Hzb(a,14)^a>>>3)+c|0,J[v>>2]=w;d=d+1|0;if((d|0)!=64)continue;break}m=J[b>>2];j=m;n=J[b+4>>2];d=n;o=J[b+28>>2];h=o;p=J[b+24>>2];e=p;q=J[b+20>>2];f=q;r=J[b+16>>2];k=r;s=J[b+12>>2];t=s;u=J[b+8>>2];a=u;while(1){i=a;a=d;d=l<<2;c=k;h=(J[d+2202784>>2]+((((Hzb(c,26)^Hzb(c,21)^Hzb(c,7))+(c&f)|0)+h|0)+((c^-1)&e)|0)|0)+J[d+g>>2]|0;d=j;j=h+((Hzb(d,30)^Hzb(d,19)^Hzb(d,10))+((a^i)&d^a&i)|0)|0;k=h+t|0; -h=e;e=f;f=c;t=i;l=l+1|0;if((l|0)!=64)continue;break}J[b+28>>2]=h+o;J[b+24>>2]=e+p;J[b+20>>2]=c+q;J[b+16>>2]=k+r;J[b+12>>2]=i+s;J[b+8>>2]=a+u;J[b+4>>2]=d+n;J[b>>2]=j+m;bc=g+256|0}function uZa(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=-1;a:{if(!(!d|(!a|!b))){if(!c){J[b>>2]=0;J[d>>2]=0;return 0}e=J[b>>2]/2|0;g=a;i=c;j=J[d>>2];b:{if((j|0)<=0)break b;k=i+j|0;l=(e<<1)+g|0;while(1){e=H[i|0];f=e&255;j=(e|0)>=0;h=0;c:{if(j)break c;if(e>>>0<=4294967231){J[b>>2]=g-a>>1;J[d>>2]=i- -c;return-2}if(e>>>0<=4294967263){f=f&31;h=1;break c}if(e>>>0<=4294967279){f=f&15;h=2;break c}if(e>>>0>4294967287)break a;f=f&7;h=3}e=i+1|0;if((h|0)>(k-e|0))break b;d:{e:{if(!(e>>>0>=k>>>0|j)){while(1){f:{j=e+1|0;e=K[e|0];if((e&192)!=128)break f;f=e&63|f<<6;h=h-1|0;if(!h)break f;e=j;if(k>>>0>e>>>0)continue}break}if(f>>>0>65535)break e;e=j}if(g>>>0>=l>>>0)break b;H[g|0]=f>>>8;h=1;i=1;break d}if(f>>>0>1114111|g+2>>>0>=l>>>0)break b;e=f-65536|0;H[g+1|0]=e>>>10;h=3;H[g+2|0]=f>>>8&3|220;H[g|0]=e>>>18|216; -e=j;i=2}H[g+h|0]=f;g=(i<<1)+g|0;i=e;if(k>>>0>e>>>0)continue;break}}J[b>>2]=g-a;J[d>>2]=i-c;e=J[b>>2]}return e|0}J[b>>2]=g-a>>1;J[d>>2]=i-c;return-2}function Gia(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;J[a>>2]=2613288;PE(a+4|0);J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a>>2]=2613608;wc(a+52|0,0,47);c=d+12|0;b=J[a+4>>2];J[c>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[695492]=0;b=aa(6546,c|0,2782252)|0;e=J[695492];J[695492]=0; -if((e|0)==1){ea(0)|0;yc();B()}c=J[c>>2];e=J[c+4>>2]-1|0;J[c+4>>2]=e;if((e|0)==-1)gc[J[J[c>>2]+8>>2]](c);a:{b:{c:{if(b){b=d+8|0;c=J[a+4>>2];J[b>>2]=c;J[c+4>>2]=J[c+4>>2]+1;J[695492]=0;c=$(6545,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[a+68>>2]=c;b=J[b>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)gc[J[J[b>>2]+8>>2]](b);b=J[a+68>>2];f=a,g=gc[J[J[b>>2]+28>>2]](b)|0,H[f+98|0]=g}b=J[J[a>>2]+12>>2];J[695492]=0;ga(b|0,a|0,0,4096)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break b;c=Z()|0;break a}c= -Z()|0;b=J[d+8>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)gc[J[J[b>>2]+8>>2]](b);break a}bc=d+16|0;return a|0}Fy(a);ba(c|0);B()}function bfb(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;h=J[a+816>>2];a:{if(!h)break a;f=J[a+812>>2];if((f|0)<10)break a;d=f;f=J[a+808>>2];j=d+f|0;d=f+4|0;g=f+10|0;k=b<<16|c;n=J[a+820>>2];i=1;while(1){b=(K[d+3|0]|K[d+2|0]<<8)+d|0;f=b>>>0>j>>>0?j:b;b:{if(K[d+4|0]|!(i&n))break b;o=K[d+5|0];b=d+14|0;e=f-b|0;c=K[d+7|0]|K[g|0]<<8;d=(e|0)<(P(c, -6)|0)?(e|0)/6|0:c;c:{if(J[a+824>>2]&i){g=0;if(!d)break b;while(1){l=d+g>>>1|0;c=P(l,6)+b|0;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if((e|0)==(k|0))break c;c=e>>>0>>0;g=c?l+1|0:g;d=c?d:l;if(g>>>0>>0)continue;break}break b}if(!d)break b;while(1){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))==(k|0)){c=b;break c}b=b+6|0;d=d-1|0;if(d)continue;break}break b}b=K[c+4|0]|K[c+5|0]<<8;m=((b<<8|b>>>8)<<16>> -16)+(o&8?0:m)|0}h=h-1|0;if(!h)break a;i=i<<1;d=f;g=d+6|0;if(j>>>0>=g>>>0)continue;break}}return m|0}function Vtb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];H[b+3|0]=K[c+3|0]+K[b+3|0];c= -c+4|0;b=(J[a+584>>2]<<2)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+3|0];c=c+4|0;b=(J[a+584>>2]<<2)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}}if((e|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;e=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+3|0];c=c+4|0; -b=(J[a+584>>2]<<2)+b|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function hVa(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;k=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<=0)break a;f=J[a+28>>2];g=(k<<1)-f|0;if((g|0)<=0)break a;b=0;if(e>>>0>=4){l=e&-4;while(1){h=b<<2;i=f+J[h+c>>2]|0;wc(i,K[i-1|0],g);i=f+J[(h|4)+c>>2]|0;wc(i,K[i-1|0],g);i=f+J[(h|8)+c>>2]|0;wc(i,K[i-1|0],g);h=f+J[(h|12)+c>>2]|0;wc(h,K[h-1|0],g);b=b+4|0;j=j+4|0;if((l|0)!=(j|0))continue;break}}e= -e&3;if(e)while(1){j=f+J[(b<<2)+c>>2]|0;wc(j,K[j-1|0],g);b=b+1|0;m=m+1|0;if((e|0)!=(m|0))continue;break}e=J[a+272>>2]}if(!(!k|(e|0)<=0)){l=k&-2;i=k&1;j=0;h=0;while(1){e=j<<2;b=J[e+c>>2];g=J[(h<<2)+d>>2];f=J[(e|4)+c>>2];e=0;if((k|0)!=1)while(1){H[g|0]=(K[f+1|0]+(K[f|0]+(K[b|0]+K[b+1|0]|0)|0)|0)+1>>>2;H[g+1|0]=(K[f+3|0]+(K[f+2|0]+(K[b+2|0]+K[b+3|0]|0)|0)|0)+2>>>2;f=f+4|0;b=b+4|0;g=g+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}if(i)H[g|0]=(K[f+1|0]+(K[f|0]+(K[b|0]+K[b+1|0]|0)|0)|0)+1>>>2;h=h+1|0;j=j+2| -0;if((j|0)>2])continue;break}}}function ZAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;e=kf(b);c=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];a:{if(c)while(1){if((e|0)==J[c+12>>2])if(!tj(c+16|0,b,-1))break a;c=J[c+8>>2];if(c)continue;break}c=rc(32);J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;e=c+16|0;J[e>>2]=0;J[e+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+20>>2]=J[682146];b:{b=J[b>>2];c:{d:{if(b){f=J[J[b>>2]+28>>2];J[695492]=0;ca(f|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b| -0)!=1)break d;c=Z()|0;break c}J[d+12>>2]=0}J[695492]=0;aa(4993,e|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break b;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)!=1){if(f)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b}ea(0)|0;yc();B()}c=Z()|0;vc(d+12|0)}sc(e);ba(c|0);B()}b=J[c+16>>2];b=J[(b?b+12|0:2728584)>>2];J[c+24>>2]=0;J[c+20>>2]=b;J[c+28>>2]=J[682146];h=c,i=kf(e),J[h+12>>2]=i;Rl(a,c)}bc=d+16|0;return c| -0}function Ox(a){var b=0,c=0;a:{if(K[a+460|0]|!(K[a+496|0]|K[a+476|0]))break a;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{c=J[a+52>>2];if((c|0)<=12287){b=1164;t:switch(c|0){case 2:case 3:case 4:break a;case 5:break i;case 1:break o;case 0:break b;case 8:break c;case 7:break d;case 6:break g;default:break t}switch(c-4096|0){case 1:break m;case 0:break s;case 6:break f;case 5:break h;default:break a}}if((c|0)<=36863){u:switch(c-12288|0){case 1:break k;case 0:break q;default:break u}if((c| -0)==16390)break e;if((c|0)!=20480)break a;b=1165;break b}v:switch(c-36864|0){case 1:break l;case 0:break r;default:break v}switch(c-45056|0){case 1:break j;case 0:break p;default:break n}}b=1166;break b}b=1167;break b}b=1168;break b}b=1169;break b}b=1170;break b}if((c|0)!=65537)break a;b=1171;break b}b=1172;break b}b=1173;break b}b=1174;break b}b=1175;break b}b=1176;break b}b=1177;break b}b=1178;break b}b=1179;break b}b=1180;break b}b=1181;break b}b=1182}J[a+968>>2]=b}}function Lqa(a,b,c){a=a|0;b= -b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=bc-32|0;bc=f;g=J[a+116>>2];d=g+1|0;Fs(a+96|0,d);a:{b:{if(!(J[a+112>>2]<=(d|0)&J[a+116>>2]>(g|0))){a=Kc(f+8|0,2381890,2382316,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}J[J[a+100>>2]+(d-J[a+104>>2]<<2)>>2]=b;e=J[a+88>>2];c:{if((e|0)<=(b|0)){h=J[a+92>>2];if((h|0)>=(b|0))break c}Fs(a+72|0,b);h=J[a+92>>2];e=J[a+88>>2]}if(!((b|0)<=(h|0)&(b|0)>=(e|0))){a=Kc(f+8|0,2381890,2382316,619,2401256,0);J[695492]=0;_(5019,a|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break b;break a}J[J[a+76>>2]+(b-J[a+80>>2]<<2)>>2]=d;b=J[a+136>>2];d:{if((d|0)>=(b|0)){e=J[a+140>>2];if((g|0)<(e|0))break d}Fs(a+120|0,d);e=J[a+140>>2];b=J[a+136>>2]}if(!((b|0)<=(d|0)&(e|0)>(g|0))){a=Kc(f+8|0,2381890,2382316,619,2422816,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}rT(J[a+124>>2]+(d-J[a+128>>2]<<4)|0,J[c+4>>2]);bc=f+32|0;return d|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function eka(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;g=bc-16|0;bc=g;a:{b:{c=K[b+11|0];c:{if(!(c<<24>>24<0?J[b+4>>2]:c)){J[a+8>>2]=J[a+4>>2];break c}J[g+12>>2]=0;i=EK(b,g+12|0);c=J[a+4>>2];J[a+8>>2]=c;k=a+4|0;b=J[g+12>>2];d:{e:{if(b>>>0>J[a+12>>2]-c>>2>>>0){if(b>>>0>=1073741824)break b;f=b<<2;b=rc(f);J[a+8>>2]=b;J[a+4>>2]=b;J[a+12>>2]=b+f;if(!c)break e;qc(c);b=J[g+12>>2]}if(!b)break d}while(1){h=(j<<2)+i|0;b=J[a+8>>2];f:{if((b|0)!=J[a+12>>2]){J[b>>2]=J[h>>2];J[a+8>>2]=b+4;break f}f=J[k>>2];c=b-f|0;d=c>>2;e=d+1|0;if(e>>>0>=1073741824)break b; -l=d<<2;d=c>>1;d=c>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d){if(d>>>0>=1073741824)break a;c=rc(d<<2)}else c=0;e=l+c|0;J[e>>2]=J[h>>2];h=e+4|0;if((b|0)!=(f|0))while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(f|0))continue;break}J[a+12>>2]=c+(d<<2);J[a+8>>2]=h;J[a+4>>2]=e;if(!f)break f;qc(f)}j=j+1|0;if(j>>>0>2])continue;break}}if(!i)break c;qc(i)}bc=g+16|0;return a|0}kj(k);B()}Sd();B()}function WB(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0;i=(J[a+24>>2]+a|0)+(h<<2)|0;l=i+4|0;j=(J[a+20>> -2]+a|0)+(h<<1)|0;m=j+2|0;h=J[i>>2];j=L[j>>1];a:{b:{c:{d:{e:{if(!c){if((h&-1610612736)==-2147483648)break e;if(!j)break a;i=g+1|0;g=(g<<1)+f|0;break b}if(h&536870912)break d}f:{if((h>>>24&31)<(d|0))break f;h=J[b>>2];if(((e>>>0<65536?1:2)|0)==(g|0)){gc[J[b+4>>2]](h,e);break f}gc[J[b+12>>2]](h,f,g)}if(!j)break a;i=g+1|0;g=(g<<1)+f|0;if(!c)break b;break c}if(!j)break a;i=g+1|0;g=(g<<1)+f|0}h=0;while(1){I[g>>1]=L[(h<<1)+m>>1];k=J[(h<<2)+l>>2];g:{if(!k)break g;if(k>>>0<=16777215){WB(a,b,c,d,e,f,i,k);break g}if(k& -536870912|(k>>>24&31)<(d|0))break g;gc[J[b+12>>2]](J[b>>2],f,i)}h=h+1|0;if((j|0)!=(h|0))continue;break}break a}h=0;while(1){I[g>>1]=L[(h<<1)+m>>1];c=J[(h<<2)+l>>2];h:{if(!c)break h;if(c>>>0>=16777216){if((c&-1610612736)!=-2147483648|(c>>>24&31)<(d|0))break h;gc[J[b+12>>2]](J[b>>2],f,i);break h}WB(a,b,0,d,e,f,i,c)}h=h+1|0;if((j|0)!=(h|0))continue;break}}}function Ueb(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;e=bc-16|0;bc=e;h=J[a+100>>2];J[e+8>>2]=0;c=3;a:{if(!J[a+868>>2])break a;c=gc[J[a+ -516>>2]](a,1129270354,b,e+4|0)|0;J[e+12>>2]=c;b:{if(c)break b;c:{c=J[e+4>>2];if(c>>>0<14)break c;c=yi(b,c,e+8|0);J[e+12>>2]=c;if(c)break b;c=J[e+8>>2];f=Zd(h,24,e+12|0);if(J[e+12>>2])break b;d=K[c|0]|K[c+1|0]<<8;d=d<<8|d>>>8;I[f>>1]=d;if(d&65535)break c;d=K[c+2|0]|K[c+3|0]<<8;g=d<<8|d>>>8;I[f+2>>1]=g;d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);i=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=J[e+4>>2];if(i>>>0>=d>>>0|d-i>>>0>>0)break c;g=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11| -0]<<24);c=K[c+12|0]|K[c+13|0]<<8;j=c<<8|c>>>8;I[f+4>>1]=j;c=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(c>>>0>=d>>>0|d-c>>>0<(j&65535)<<2>>>0)break c;b=J[e+8>>2];J[f+20>>2]=d;J[f+16>>2]=b;J[f+12>>2]=b+c;J[f+8>>2]=b+i;J[a+872>>2]=f;c=0;break a}J[e+12>>2]=8}Sf(b,e+8|0);if(f)gc[J[h+8>>2]](h,f);c=J[e+12>>2]}bc=e+16|0;return c|0}function L8a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;f=b+12|0;g=b+8|0;a:{b:{c:{d:{while(1){c=J[b+20>>2];J[b+20>>2]=c+1;J[695492]= -0;e=d+12|0;da(2276,e|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;J[695492]=0;c=ga(2277,e|0,0,334984)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;h=J[c>>2];J[d+24>>2]=J[c+4>>2];e=K[c+7|0]|K[c+8|0]<<8|(K[c+9|0]<<16|K[c+10|0]<<24);H[d+27|0]=e;H[d+28|0]=e>>>8;H[d+29|0]=e>>>16;H[d+30|0]=e>>>24;J[c>>2]=0;J[c+4>>2]=0;e=K[c+11|0];J[c+8>>2]=0;if(H[a+11|0]<0)qc(J[a>>2]);J[a>>2]=h;c=K[d+27|0]|K[d+28|0]<<8|(K[d+29|0]<<16|K[d+30|0]<<24);H[a+7|0]=c;H[a+8|0]=c>>>8;H[a+9|0]=c>>>16;H[a+10|0]=c>>>24;J[a+4>> -2]=J[d+24>>2];H[a+11|0]=e;if(H[d+23|0]<0)qc(J[d+12>>2]);J[695492]=0;c=xi(g,a);e=J[695492];J[695492]=0;if((e|0)==1)break b;if((c|0)!=(f|0))continue;break}bc=d+32|0;return}b=Z()|0;break a}b=Z()|0;if(H[d+23|0]>=0)break a;qc(J[d+12>>2]);break a}b=Z()|0}if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}function kv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;J[c>>2]=b;ca(5476,c+8|0,2376714,c|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){b=J[c+8>>2];d:{if(b){d=J[J[b>> -2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;b=Z()|0;break c}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break e;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}b=Z()|0;vc(c+12|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[c+8>>2];J[c+8>>2]=0;f:{if(!b)break f; -J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}bc=c+16|0;return a|0}b=Z()|0;break b}vc(c+8|0)}sc(a);ba(b|0);B()}ea(0)|0;yc();B()}function Y4(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=J[a>>2];a:{if(!h)break a;d=J[a+8>>2];f=h&3;b:{if(!f){e=h;break b}e=h;while(1){J[d+24>>2]=-1;J[d+16>>2]=J[d+16>>2]&-5;d=d+28|0;e=e-1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}if(h>>>0<4)break a;while(1){J[d+ -24>>2]=-1;J[d+52>>2]=-1;J[d+80>>2]=-1;J[d+108>>2]=-1;J[d+16>>2]=J[d+16>>2]&-5;J[d+44>>2]=J[d+44>>2]&-5;J[d+72>>2]=J[d+72>>2]&-5;J[d+100>>2]=J[d+100>>2]&-5;d=d+112|0;e=e-4|0;if(e)continue;break}}if(!b){J[a+4>>2]=0;return}d=0;g=0;e=0;f=0;while(1){if(!d){g=K[c|0];d=128;c=c+1|0}c:{if(!(d&g))break c;i=J[a+8>>2]+P(e,28)|0;j=J[i+16>>2];if(j&4)break c;J[i+16>>2]=j|4;if(f>>>0>=h>>>0)break c;J[J[a+12>>2]+(f<<2)>>2]=i;f=f+1|0}d=d>>>1|0;e=e+1|0;if((e|0)!=(b|0))continue;break}J[a+4>>2]=f;if((f|0)>=2){c=J[a+12>> -2];a=1;while(1){e=J[c+(a<<2)>>2];h=J[e>>2];d=a;while(1){b=d-1|0;g=c+(b<<2)|0;i=J[g>>2];if((h|0)<=J[i>>2]){J[c+(d<<2)>>2]=i;J[g>>2]=e;g=(d|0)>1;d=b;if(g)continue}break}a=a+1|0;if((f|0)!=(a|0))continue;break}}}function S0(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;e=J[a+12>>2];f=J[a+8>>2];if((e|0)!=(f|0)){c=K[b+11|0];d=c<<24>>24<0;h=d?J[b>>2]:b;j=d?J[b+4>>2]:c;d=f;while(1){g=K[d+11|0];i=g<<24>>24;b=(i|0)<0;a:{c=J[d+4>>2];if(((b?c:g)|0)!=(j|0))break a;b:{if(!b){b=h;c=d;if(!i)break b;while(1){if(K[c| -0]!=K[b|0])break a;b=b+1|0;c=c+1|0;g=g-1|0;if(g)continue;break}break b}if(!c)break b;if(Wc(J[d>>2],h,c))break a}b=J[d+12>>2];if(b){qc(b);J[d+12>>2]=0;f=J[a+8>>2];e=J[a+12>>2]}d=P((d-f|0)/20|0,20)+f|0;b=d+20|0;c:{if((e|0)==(b|0)){c=d;break c}c=d;while(1){if(H[c+11|0]<0)qc(J[c>>2]);f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];H[b+11|0]=0;H[b|0]=0;f=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=f;c=c+20|0;b=b+20|0;if((e|0)!=(b|0))continue;break}e=J[a+12>>2]}c=d+P((c-d|0)/20|0,20)|0;if((c| -0)!=(e|0))while(1){b=e-20|0;if(H[e-9|0]<0)qc(J[b>>2]);e=b;if((b|0)!=(c|0))continue;break}J[a+12>>2]=c;return 1}d=d+20|0;if((e|0)!=(d|0))continue;break}}return 0}function P0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=J[a+4>>2];if(J[g+48>>2]>=8){a:{d=J[a+8>>2];e=J[a+12>>2];if(d>>>0>=e>>>0){J[b>>2]=8;break a}f=d+2|0;if(f>>>0>e>>>0){H[g+37|0]=K[d|0];H[J[a+4>>2]+36|0]=1;J[a+8>>2]=d+1;J[b>>2]=11;break a}c=K[d+1|0];h=K[d|0]|c<<8;if((c&248)!=216){J[a+8>>2]=f;return h|0}b:{c:{d:{if(c&4)break d;c=d+4| -0;if(e>>>0>=c>>>0){e=K[d+3|0];if((e&252)!=220)break d;e=(K[f|0]|e<<8)+(h<<10)|0;if(e>>>0<=56613887)break c;J[a+8>>2]=c;return e-56613888|0}f=e-d|0;H[g+36|0]=f;c=g+37|0;g=e+(d^-1)|0;h=f&7;if(h){f=0;while(1){H[c|0]=K[d|0];c=c+1|0;d=d+1|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}f=11;if(g>>>0<7){c=e;break b}while(1){H[c|0]=K[d|0];H[c+1|0]=K[d+1|0];H[c+2|0]=K[d+2|0];H[c+3|0]=K[d+3|0];H[c+4|0]=K[d+4|0];H[c+5|0]=K[d+5|0];H[c+6|0]=K[d+6|0];H[c+7|0]=K[d+7|0];c=c+8|0;d=d+8|0;if((e|0)!=(d|0))continue;break}c= -e;break b}c=f}H[g+36|0]=2;H[g+37|0]=K[c-2|0];H[g+38|0]=K[c-1|0];f=12}J[b>>2]=f;J[a+8>>2]=c;return 65535}a=65535}else a=-9;return a|0}function fsa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;ia(5489,e+8|0,b|0,c|0,d|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){b=J[e+8>>2];d:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,e+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;d=Z()|0;break c}J[e+12>>2]=0}J[695492]=0;aa(4993,a|0,e+12|0)|0;b=J[695492]; -J[695492]=0;e:{if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}d=Z()|0;vc(e+12|0);break c}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];a=J[e+8>>2];J[e+8>>2]=0;f:{if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a| -0)==1)break a}bc=e+16|0;return}d=Z()|0;break b}vc(e+8|0)}sc(a);ba(d|0);B()}ea(0)|0;yc();B()}function esa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;ia(5495,e+8|0,b|0,c|0,d|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){b=J[e+8>>2];d:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,e+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;d=Z()|0;break c}J[e+12>>2]=0}J[695492]=0;aa(4993,a|0,e+12|0)|0;b=J[695492];J[695492]=0;e:{if((b|0)!=1){b=J[e+ -12>>2];J[e+12>>2]=0;if(!b)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break e}break a}d=Z()|0;vc(e+12|0);break c}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];a=J[e+8>>2];J[e+8>>2]=0;f:{if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=e+16|0;return}d= -Z()|0;break b}vc(e+8|0)}sc(a);ba(d|0);B()}ea(0)|0;yc();B()}function O$(a){var b=0,c=0,d=0;c=bc-96|0;bc=c;a:{if(!a)break a;if(!Ec(a,28663)){b=J[651371];break a}b:{c:{d:{e:{f:{if((a|0)!=28559){d=K[a|0]&223;if((d|0)!=70)break e;if((K[a+1|0]&223)!=73|(K[a+2|0]&223)!=76|((K[a+3|0]&223)!=69|K[a+4|0]!=58))break f;if(K[a+5|0]!=47|K[a+6|0]!=47|((K[a+7|0]&223)!=76|(K[a+8|0]&223)!=79))break f;if((K[a+9|0]&223)!=67|(K[a+10|0]&223)!=65|((K[a+11|0]&223)!=76|(K[a+12|0]&223)!=72))break f;if((K[a+13|0]&223)!=79|(K[a+ -14|0]&223)!=83|((K[a+15|0]&223)!=84|K[a+16|0]!=47))break f}a=a+16|0;break b}if((a|0)==28629)break c;if((d|0)!=70|(K[a+1|0]&223)!=73|((K[a+2|0]&223)!=76|(K[a+3|0]&223)!=69))break d;if(K[a+4|0]!=58|K[a+5|0]!=47|(K[a+6|0]!=47|K[a+7|0]!=47))break d;break c}if((a|0)==28629)break c}if((a|0)!=28607){if((d|0)!=70|(K[a+1|0]&223)!=73|((K[a+2|0]&223)!=76|(K[a+3|0]&223)!=69))break b;if(K[a+4|0]!=58|K[a+5|0]!=47)break b}a=a+5|0;break b}a=a+7|0}if((Rk(a,c)|0)==-1)break a;b=Oj(a,5622);if(b)break a;b=0;AJ(a)}bc= -c+96|0;return b}function bta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;J[a>>2]=0;a:{e=J[c>>2];b:{c:{if(e){f=J[J[e>>2]+20>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;if(e){J[695492]=0;b=ja(5018,d+8|0,2378049,2374069,1189,2414188,0)|0;c=J[695492];J[695492]=0;d:{if((c|0)!=1){J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;B()}c=Z()|0;break b}c=Z()|0;Fc(b);break b}e=J[b+12>>2];c=J[J[c>>2]+12>>2];J[695492]=0;f=d+8|0;ia(5468,f|0,b|0,e|0,c| -0);b=J[695492];J[695492]=0;e:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;a=J[d+8>>2];J[d+8>>2]=0;if(!a)break a;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}c=Z()|0;break b}c=Z()|0;vc(d+8|0);break b}J[695492]=0;aa(4985,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}c=Z()|0}vc(a);ba(c|0);B()}bc=d+32|0}function tta(a,b, -c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;J[a>>2]=0;a:{e=J[c>>2];b:{c:{if(e){f=J[J[e>>2]+16>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;if(e){J[695492]=0;b=ja(5018,d+8|0,2383201,2374069,515,2414032,0)|0;c=J[695492];J[695492]=0;d:{if((c|0)!=1){J[695492]=0;_(5019,b|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;B()}c=Z()|0;break b}c=Z()|0;Fc(b);break b}e=J[b+12>>2];c=J[J[c>>2]+12>>2];J[695492]=0;f=d+8|0;ia(5468,f|0,b|0,e|0,c|0);b=J[695492];J[695492]=0;e:{if((b| -0)!=1){J[695492]=0;aa(4993,a|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;a=J[d+8>>2];J[d+8>>2]=0;if(!a)break a;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}c=Z()|0;break b}c=Z()|0;vc(d+8|0);break b}J[695492]=0;aa(4985,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}c=Z()|0}vc(a);ba(c|0);B()}bc=d+32|0}function Wla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0, -g=0;J[a>>2]=0;J[a+4>>2]=0;J[a+40>>2]=0;H[a+38|0]=1;I[a+30>>1]=0;I[a+32>>1]=0;I[a+34>>1]=0;I[a+36>>1]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;d=a+12|0;a:{b:{c:{if((a|0)==(b|0))break c;if(H[b+11|0]>=0){e=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=e;J[a+8>>2]=J[b+8>>2];break c}e=J[b+4>>2];b=J[b>>2];J[695492]=0;ga(1630,a|0,b|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b}if((c|0)==(d|0))break a;e=K[c+11|0];b=e<<24>>24;d:{if(H[a+23|0]>=0){if((b|0)<0)break d;b=J[c+ -4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+8>>2]=J[c+8>>2];return a|0}f=J[c>>2];g=J[c+4>>2];J[695492]=0;b=(b|0)<0;ga(1629,d|0,(b?f:c)|0,(b?g:e)|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;break a}b=J[c+4>>2];c=J[c>>2];J[695492]=0;ga(1630,d|0,c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}b=Z()|0;if(H[a+35|0]<0)qc(J[a+24>>2]);if(H[a+23|0]<0)qc(J[d>>2]);if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}return a|0}function Gy(a,b,c,d){var e=0,f=0,g=0,h=0;g=bc-32|0;bc=g;e=d&2147483647;h=e;f=e-1006698496| -0;e=e-1140785152|0;a:{if((f|0)==(e|0)&0|e>>>0>f>>>0){e=c<<4|b>>>28;c=d<<4|c>>>28;b=b&268435455;if((b|0)==134217728&(a|0)!=0|b>>>0>134217728){f=c+1073741824|0;e=e+1|0;f=e?f:f+1|0;break a}f=c+1073741824|0;if(a|(b|0)!=134217728)break a;a=e&1;e=a+e|0;f=a>>>0>e>>>0?f+1|0:f;break a}if(!(!c&(h|0)==2147418112?!(a|b):h>>>0<2147418112)){a=d<<4|c>>>28;e=c<<4|b>>>28;f=a&524287|2146959360;break a}e=0;f=2146435072;if(h>>>0>1140785151)break a;f=0;h=h>>>16|0;if(h>>>0<15249)break a;e=d&65535|65536;qi(g+16|0,a,b,c, -e,h-15233|0);rq(g,a,b,c,e,15361-h|0);b=J[g+8>>2];e=b<<4;b=J[g+12>>2]<<4|b>>>28;c=J[g>>2];f=J[g+4>>2];h=f;e=f>>>28|e;f=b;a=h&268435455;b=c|(J[g+16>>2]|J[g+24>>2]|(J[g+20>>2]|J[g+28>>2]))!=0;if((a|0)==134217728&(b|0)!=0|a>>>0>134217728){e=e+1|0;f=e?f:f+1|0;break a}if(b|(a|0)!=134217728)break a;a=e;e=e+(e&1)|0;f=a>>>0>e>>>0?f+1|0:f}bc=g+32|0;x(0,e|0);x(1,d&-2147483648|f);return+z()}function _$a(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;i=bc-16|0;bc=i;a:{b:{c:{if(J[b>>2]>0){H[J[a+4>>2]+ -36|0]=0;break c}k=J[a+8>>2];d:{e:{while(1){f=J[a+12>>2];h=J[a+8>>2];if(f>>>0<=h>>>0)break a;if(M[a+20>>2]>M[a+16>>2]){c=J[a+4>>2];d=K[c+36|0];f:{if(d){e=i+13|0;g=c+37|0;c=d<<24>>24;tc(e,g,c);j=c+e|0;c=3-c|0;g=f-h|0;g=c>>>0>>0?c:g;j=tc(j,h,g);J[a+12>>2]=j+g;J[a+8>>2]=e;c=_0(a,b);J[a+12>>2]=f;J[a+8>>2]=h+(J[a+8>>2]-j|0);f=d+g|0;d=J[a+4>>2];if(J[b>>2]==11){H[d+36|0]=f;tc(d+37|0,e,f<<24>>24);J[a+8>>2]=J[a+12>>2];e=0;break b}H[d+36|0]=0;e=i+13|0;break f}c=_0(a,b);f=J[a+8>>2]-h|0;e=h}if(J[b>>2]>0)break d; -d=c&65535;if(d>>>0>65533)break e;d=J[a+16>>2];J[a+16>>2]=d+2;I[d>>1]=c;c=J[a+24>>2];if(c){J[a+24>>2]=c+4;J[c>>2]=h-k}if(J[b>>2]<=0)continue;break d}break}e=15;if(M[a+20>>2]<=M[a+16>>2])break b;break a}J[b>>2]=(d|0)==65534?10:12}a=J[a+4>>2];H[a+36|0]=f;if(f<<24>>24<=0)break c;tc(a+37|0,e,f&255)}e=0;if(J[b>>2]!=11)break a}J[b>>2]=e}bc=i+16|0}function Sr(a,b,c){var d=0,e=0,f=0,g=0;d=c-b|0;if((d|0)<=0)return 0;a=(b>>3)+a|0;b=b&7;a:{if(b){c=8-b|0;e=K[(K[a|0]<>>0>>0?c:e;f=c>>>0< -d>>>0?c:d;if(b+f>>>0<8)break a;d=d-f|0;a=a+1|0}b:{c:{d:{if((d|0)<64){b=a;a=d;c=f;break d}e:{if(!(a&3)){b=a;c=f;a=d;break e}f:{g:{b=K[a|0];if((b|0)!=255){c=f;break g}e=d-8|0;c=f+8|0;b=a+1|0;if(!(b&3)){a=e;e=d;break f}b=K[b|0];if((b|0)!=255)break g;g=d-16|0;c=f+16|0;b=a+2|0;if(!(b&3)){a=g;break f}b=K[b|0];if((b|0)!=255)break g;e=d-24|0;c=f+24|0;b=a+3|0;if(!(b&3)){a=e;e=g;break f}b=K[b|0];if((b|0)!=255)break g;b=a+4|0;a=d-32|0;c=f+32|0;break f}return K[b+96112|0]+c|0}if((e|0)<40)break d}d=a;while(1){if(J[b>> -2]!=-1){a=d;break c}b=b+4|0;c=c+32|0;e=(d|0)>63;a=d-32|0;d=a;if(e)continue;break}}if((a|0)<8)break b}d=a;while(1){a=K[b|0];if((a|0)!=255)return K[a+96112|0]+c|0;b=b+1|0;c=c+8|0;e=(d|0)>15;a=d-8|0;d=a;if(e)continue;break}}if((a|0)<=0)return c;b=K[K[b|0]+96112|0];f=((a|0)<(b|0)?a:b)+c|0}return f}function Un(a,b,c){var d=0,e=0,f=0,g=0;a:{b:switch(c-1|0){case 1:c=J[b+8>>2];if((c|0)<=0)break a;d=O[a+120>>3];e=O[a+112>>3];g=J[b>>2];b=0;while(1){a=J[g+(b<<2)>>2];f=O[a+32>>3];O[a+32>>3]=e-O[a+16>>3];O[a+ -16>>3]=e-f;f=O[a+40>>3];O[a+40>>3]=d-O[a+24>>3];O[a+24>>3]=d-f;H[a+88|0]=K[a+88|0]+2&3;b=b+1|0;if((c|0)!=(b|0))continue;break}break a;case 0:d=O[a+120>>3];O[a+120>>3]=O[a+112>>3];O[a+112>>3]=d;c=J[b+8>>2];if((c|0)<=0)break a;g=J[b>>2];b=0;while(1){a=J[g+(b<<2)>>2];e=O[a+40>>3];O[a+40>>3]=O[a+32>>3];f=O[a+24>>3];O[a+24>>3]=O[a+16>>3];O[a+32>>3]=d-f;O[a+16>>3]=d-e;H[a+88|0]=K[a+88|0]+1&3;b=b+1|0;if((c|0)!=(b|0))continue;break}break a;case 2:break b;default:break a}e=O[a+120>>3];d=O[a+112>>3];O[a+120>> -3]=d;O[a+112>>3]=e;c=J[b+8>>2];if((c|0)<=0)break a;g=J[b>>2];b=0;while(1){a=J[g+(b<<2)>>2];e=O[a+32>>3];O[a+32>>3]=O[a+40>>3];f=O[a+16>>3];O[a+16>>3]=O[a+24>>3];O[a+40>>3]=d-f;O[a+24>>3]=d-e;H[a+88|0]=K[a+88|0]-1&3;b=b+1|0;if((c|0)!=(b|0))continue;break}}}function qta(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;k=(g|0)/2|0;a:{if(!f)break a;g=f-1|0;j=J[a+64>>2];if(e>>>0>=2){c=e-2|0;m=c&2;n=c>>>0<2;while(1){l=g;a=e;g=b;f=i;if(!m){a=J[(K[f|0]<<2)+ -j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];g=b+8|0;f=f+1|0;a=c}d=c;if(!n){while(1){b=g;d=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[d>>2];J[b+4>>2]=J[d+4>>2];d=f;i=J[(K[f+1|0]<<2)+j>>2];J[b+8>>2]=J[i>>2];J[b+12>>2]=J[i+4>>2];g=b+16|0;f=f+2|0;a=a-4|0;if(a>>>0>1)continue;break}i=d+1|0;d=a;b=b+8|0}b:{if(d){J[g>>2]=J[J[(K[f|0]<<2)+j>>2]>>2];g=3;a=2;break b}g=2;a=1}b=((g<<2)+b|0)+(h<<2)|0;g=l-1|0;i=(a+i|0)+k|0;if(l)continue;break}break a}if(!e)break a;if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+ -b|0)+4|0;f=f-2|0}else f=g;if(!g)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function Fsa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;k=(g|0)/2|0;a:{if(!f)break a;g=f-1|0;j=J[a+60>>2];if(e>>>0>=2){c=e-2|0;m=c&2;n=c>>>0<2;while(1){l=g;a=e;g=b;f=i;if(!m){a=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+ -4>>2];g=b+8|0;f=f+1|0;a=c}d=c;if(!n){while(1){b=g;d=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[d>>2];J[b+4>>2]=J[d+4>>2];d=f;i=J[(K[f+1|0]<<2)+j>>2];J[b+8>>2]=J[i>>2];J[b+12>>2]=J[i+4>>2];g=b+16|0;f=f+2|0;a=a-4|0;if(a>>>0>1)continue;break}i=d+1|0;d=a;b=b+8|0}b:{if(d){J[g>>2]=J[J[(K[f|0]<<2)+j>>2]>>2];g=3;a=2;break b}g=2;a=1}b=((g<<2)+b|0)+(h<<2)|0;g=l-1|0;i=(a+i|0)+k|0;if(l)continue;break}break a}if(!e)break a;if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=g;if(!g)break a; -while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function t2a(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=b+1|0;i=rc(d>>>0>1073741823?-1:d<<2);if((b|0)>0)while(1){f=a+h|0;e=H[f|0];d=e&255;g=1;a:{if((e|0)>=0)break a;b:{c:{if(!(d&32)){e=h+1|0;if((e|0)>=(b|0)){g=2;d=0;break a}g=2;d=d<<6&1984;break c}if(!(d&16)){e=h+2|0;if((e|0)>=(b|0)){g=3;d=0;break a}g=3; -d=d<<12&61440|(K[f+1|0]&63)<<6;break c}if(!(d&15)){e=h+3|0;if((e|0)>=(b|0))break b;g=4;d=d<<18&1835008|(K[f+1|0]&63)<<12|(K[f+2|0]&63)<<6;break c}if(!(d&8)){e=h+3|0;if((e|0)>=(b|0))break b;g=4;d=d<<18&1835008|(K[f+1|0]&63)<<12|(K[f+2|0]&63)<<6;break c}if(!(d&4)){e=h+4|0;if((e|0)>=(b|0)){g=5;d=0;break a}g=5;d=d<<24&50331648|(K[f+1|0]&63)<<18|(K[f+2|0]&63)<<12|(K[f+3|0]&63)<<6;break c}e=h+5|0;if((e|0)>=(b|0)){g=6;d=0;break a}g=6;d=d<<30&1073741824|(K[f+1|0]&63)<<24|(K[f+2|0]&63)<<18|(K[f+3|0]&63)<< -12|(K[f+4|0]&63)<<6}d=d|K[a+e|0]&63;break a}g=4;d=0}J[(j<<2)+i>>2]=d;j=j+1|0;h=g+h|0;if((h|0)<(b|0))continue;break}J[(j<<2)+i>>2]=0;Wr(c,i);qc(i)}function OCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=bc-32|0;bc=f;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d:{e:{f:{g:{if(d)while(1){e=J[J[b>>2]+12>>2];J[695492]=0;e=ga(e|0,b|0,c|0,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break g;if(!e){J[695492]=0;c=ja(5018,f+8|0,2378736,2375204,474,2384672,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]= -0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=ea(2411712)|0;d=cc;Fc(c);break d}c=c+e|0;d=d-e|0;if(d)continue;break}J[b+12>>2]=0;break a}b=ea(2411712)|0;break e}b=ea(2411712)|0}d=cc}if((sa(2411712)|0)!=(d|0))break b;b=na(b|0)|0;J[695492]=0;b=J[b+4>>2];b=b?b:2377794;c=J[695492];J[695492]=0;h:{if((c|0)==1)break h;J[695492]=0;aa(5054,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break h;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;break b}b=Z()|0;J[695492]=0; -ka(4893);c=J[695492];J[695492]=0;if((c|0)!=1)break b;ea(0)|0;yc()}B()}sc(a);ba(b|0);B()}bc=f+32|0}function Jca(a,b,c){a=a|0;b=b|0;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=bc-16|0;bc=i;if(K[b+11|0]>>>7|0)g=J[b+4>>2];else g=K[b+11|0]&127;while(1){a:{if(K[b+11|0]>>>7|0)f=J[b>>2];else f=b;O[i>>3]=c;k=bc-16|0;bc=k;J[k+12>>2]=i;e=bc-416|0;bc=e;d=-1;j=g+1|0;J[e+156>>2]=j-1;J[e+152>>2]=f;wc(e+8|0,0,144);J[e+84>>2]=-1;J[e+56>>2]=256;J[e+44>>2]=7030;J[e+88>>2]=-1;J[e+52>>2]=e+160;J[e+92>>2]=e+ -152;b:{if(!j)break b;if((j|0)<0){J[694731]=61;break b}f=e+8|0;d=bc-208|0;bc=d;J[d+204>>2]=i;h=d+160|0;wc(h,0,40);J[d+200>>2]=J[d+204>>2];c:{if((hP(0,d+200|0,d,h)|0)<0){h=-1;break c}m=J[f+76>>2];iP(f);h=J[f>>2];J[f>>2]=h&-33;n=hP(f,d+200|0,d,d+160|0);l=J[f>>2];J[f>>2]=l|h&32;h=l&32?-1:n;if((m|0)<0)break c}bc=d+208|0;KE(f,0,0);d=h>>>0>=j>>>0?-1:h}bc=e+416|0;bc=k+16|0;d:{if((d|0)>=0){if(d>>>0<=g>>>0)break a;g=d;break d}g=g<<1|1}AE(b,g);continue}break}AE(b,d);g=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=g;J[a+ -8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;bc=i+16|0}function zK(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(J[a>>2]>0)break a;b:{if(J[689408]==2)break b;if(!$B(2757632))break b;Lt(15,2893);d=q1(0,733724,735088,2894,a);c:{if(J[a>>2]>0)break c;c=k1(d);b=J[c>>2];if(b>>>0<=7){J[a>>2]=3;Ih(d);break c}J[689410]=d;e=J[c+4>>2];J[689399]=e;g=J[c+8>>2];J[689400]=g;f=J[c+12>>2];J[689401]=f;h=J[c+16>>2];J[689402]=h;i=J[c+20>>2];J[689403]=i;j=J[c+24>>2];J[689404]=j;d=J[c+28>>2];J[689405]=d;k= -J[c+32>>2];J[689406]=k;if((b|0)!=8)J[689407]=J[c+36>>2];b=(b<<1)+2|0;J[689390]=c+(b<<1);b=b+e|0;J[689391]=c+(b<<1);b=b+g|0;J[689392]=c+(b<<1);b=b+f|0;J[689393]=c+(b<<1);b=b+h|0;J[689394]=c+(b<<1);b=b+i|0;J[689395]=c+(b<<1);b=b+j|0;g=(c+(b<<1)|0)+(d<<1)|0;d:{e:{if(d){e=c+(b<<1)|0;f=L[e>>1];if(f>>>0<2)break e}J[689396]=735098;J[689397]=(c+(b<<1)|0)+(d<<1);b=0;break d}J[689396]=e;J[689397]=e+(d<<1);b=f?k:0}J[689398]=g+(b<<1)}J[689409]=J[a>>2];J[689408]=2;break a}c=J[689409];if((c|0)<=0)break a;J[a>> -2]=c}return J[a>>2]<=0}function sEa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=bc-16|0;bc=b;a:{if(H[a+11|0]>=0){J[b+8>>2]=J[a+8>>2];c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;break a}Re(b,J[a>>2],J[a+4>>2])}c=K[b+11|0];a=c<<24>>24;e=(a|0)<0;b:{d=J[b+4>>2];f=e?d:c;if(f){a=e?J[b>>2]:b;c=a+(f<<2)|0;while(1){d=J[a>>2];J[695492]=0;d=ks(d);e=J[695492];J[695492]=0;if((e|0)==1)break b;J[a>>2]=d;a=a+4|0;if((c|0)!=(a|0))continue;break}d=J[b+4>>2];c=K[b+11|0];a=c}e=a<<24>>24;c:{if((((e|0)<0?d:c)|0)==4){c=gd((e|0)<0?J[b>> -2]:b,2371840,4);a=K[b+11|0];if(!c){e=1;break c}d=J[b+4>>2];c=a}e=1;f=a<<24>>24<0;if(((f?d:c)|0)==1){a=gd(f?J[b>>2]:b,2371860,1);c=K[b+11|0];if(!a){a=c;break c}d=J[b+4>>2];a=c}f=a<<24>>24;if((((f|0)<0?d:c)|0)==1){a=gd((f|0)<0?J[b>>2]:b,2371868,1);c=K[b+11|0];if(!a){a=c;break c}d=J[b+4>>2];a=c}e=0;f=c;c=a<<24>>24;if((((c|0)<0?d:f)|0)!=2)break c;e=!gd((c|0)<0?J[b>>2]:b,2371876,2);a=K[b+11|0]}if(a<<24>>24<0)qc(J[b>>2]);bc=b+16|0;return e|0}a=Z()|0;if(H[b+11|0]<0)qc(J[b>>2]);ba(a|0);B()}function qT(a){a= -a|0;var b=0,c=0,d=0;J[a>>2]=2423016;b=J[a+76>>2];J[a+76>>2]=0;a:{b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+72>>2];J[a+72>>2]=0;c:{if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+68>>2];J[a+68>>2]=0;d:{if(!b)break d;J[695492]= -0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+64>>2];J[a+64>>2]=0;e:{if(!b)break e;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break e;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}_c(a+56|0);_c(a+44|0);_c(a+32|0);return ed(a)|0}ea(0)|0;yc();B()}function oua(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-256| -0;bc=d;a:{if(b<1.001&b>.999)break a;rG(b,d);h=L[a+8>>1];if(!h)break a;e=L[a+10>>1];if(!e)break a;i=J[a+16>>2];if(i){h=e&65534;j=e&1;while(1){c=i+P(P(L[a+12>>1],g),3)|0;f=0;if((e|0)!=1)while(1){H[c+2|0]=K[K[c+2|0]+d|0];H[c+1|0]=K[K[c+1|0]+d|0];H[c|0]=K[K[c|0]+d|0];H[c+5|0]=K[K[c+5|0]+d|0];H[c+4|0]=K[K[c+4|0]+d|0];H[c+3|0]=K[K[c+3|0]+d|0];c=c+6|0;f=f+2|0;if((h|0)!=(f|0))continue;break}if(j){H[c+2|0]=K[K[c+2|0]+d|0];H[c+1|0]=K[K[c+1|0]+d|0];H[c|0]=K[K[c|0]+d|0]}g=g+1|0;if(g>>>0>1])continue;break}break a}a= -e&65534;i=e&1;while(1){c=0;f=0;if((e|0)!=1)while(1){H[c+2|0]=K[K[c+2|0]+d|0];H[c+1|0]=K[K[c+1|0]+d|0];H[c|0]=K[K[c|0]+d|0];H[c+5|0]=K[K[c+5|0]+d|0];H[c+4|0]=K[K[c+4|0]+d|0];H[c+3|0]=K[K[c+3|0]+d|0];c=c+6|0;f=f+2|0;if((a|0)!=(f|0))continue;break}if(i){H[c+2|0]=K[K[c+2|0]+d|0];H[c+1|0]=K[K[c+1|0]+d|0];H[c|0]=K[K[c|0]+d|0]}g=g+1|0;if((h|0)!=(g|0))continue;break}}bc=d+256|0}function Fea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=J[a+584>>2];if(d){b:{c:{d:{e:{f:{g:switch(b-292|0){default:h:switch(b-34908|0){case 3:break c; -case 2:break d;case 1:break e;case 0:break f;default:break h}i:switch(b-65536|0){case 0:J[J[c>>2]>>2]=J[d+4>>2];break a;case 4:break i;default:break b}J[J[c>>2]>>2]=J[d+76>>2];break a;case 0:case 1:J[J[c>>2]>>2]=J[d+28>>2];break a;case 34:J[J[c>>2]>>2]=J[d+24>>2];break a;case 35:I[J[c>>2]>>1]=L[d+16>>1];break a;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:break b; -case 36:break g}J[J[c>>2]>>2]=J[d+20>>2];break a}J[J[c>>2]>>2]=J[d+32>>2];break a}J[J[c>>2]>>2]=J[d+36>>2];break a}J[J[c>>2]>>2]=J[d+40>>2];break a}J[J[c>>2]>>2]=J[d+44>>2];break a}return gc[J[d+48>>2]](a,b,c)|0}fa(79439,70523,1223,95692);B()}return 1}function V0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=-9;h=J[a+4>>2];if(J[h+48>>2]>=8){c=J[a+8>>2];g=J[a+12>>2];if(c>>>0>=g>>>0){J[b>>2]=8;return 65535}e=c+2|0;if(g>>>0>>0){H[h+37|0]=K[c|0];H[J[a+4>>2]+36|0]=1;J[a+8>>2]=c+1;J[b>>2]=11;return 65535}f= -K[c|0];d=K[c+1|0]|f<<8;a:{if((f&248)!=216)break a;b:{c:{d:{e:{if(f&4)break e;f=c+4|0;if(f>>>0>g>>>0)break d;g=K[e|0];if((g&252)!=220)break e;e=(K[c+3|0]|g<<8)+(d<<10)|0;if(e>>>0>56613887)break c;e=f}H[h+36|0]=2;H[h+37|0]=K[e-2|0];H[h+38|0]=K[e-1|0];f=12;break b}e=g-c|0;H[h+36|0]=e;d=h+37|0;h=g+(c^-1)|0;e=e&7;if(e){f=0;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}f=11;if(h>>>0<7){e=g;break b}while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3| -0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];H[d+6|0]=K[c+6|0];H[d+7|0]=K[c+7|0];d=d+8|0;c=c+8|0;if((g|0)!=(c|0))continue;break}e=g;break b}d=e-56613888|0;e=f;break a}J[b>>2]=f;d=65535}J[a+8>>2]=e}return d|0}function KC(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;m=b<<3;f=J[a+36>>2];a:{j=J[a+48>>2];g=J[j+4>>2];b:{if((g|0)<(d|0))break b;k=j+m|0;i=J[k+4>>2];if((i|0)>(e|0))break b;h=g;l=J[a+4>>2];g=0-l|0;h=h&g;n=(h|0)<(e|0);c:{if((d|0)>(i|0)){g=d;break c}d=l-1|0;g=g&d+i;if(d&i&65535){d=g;break c}if(K[a+ -79|0]){H[a+79|0]=0;f=f-4|0}J[f>>2]=J[k>>2];d=g+l|0;f=f+4|0}if(K[a+78|0]){J[J[a+80>>2]+20>>2]=g>>J[a>>2];H[a+78|0]=0}g=n?h:e;if((g|0)<(d|0))break b;if(M[a+32>>2]<=((g-d>>J[a>>2]<<2)+f|0)+4>>>0)break a;i=0-b|0;l=b<<3;e=j;while(1){H[a+79|0]=0;b=J[e+4>>2];d:{if((b|0)>(d|0)){h=b;b=e+l|0;k=J[b+4>>2];h=h-k|0;if((h|0)>=J[a+16>>2]){gc[c|0](e);break d}b=J[b>>2];J[f>>2]=((P(J[e>>2]-b|0,d-k|0)|0)/(h|0)|0)+b;f=f+4|0;d=J[a+4>>2]+d|0;b=(i<<3)+e|0;break d}if((b|0)==(d|0)){H[a+79|0]=1;J[f>>2]=J[e>>2];f=f+4|0;d=J[a+ -4>>2]+d|0}b=(i<<3)+e|0}e=b;if(j>>>0<=e>>>0&(d|0)<=(g|0))continue;break}j=J[a+48>>2]}J[a+36>>2]=f;J[a+48>>2]=j-m;return 0}J[a+40>>2]=98;J[a+36>>2]=f;return 1}function BJ(a){var b=0,c=0,d=0,e=0,f=0,g=0;if(!a)return 0;c=GB(0,J[a+8>>2],J[a+52>>2],J[a+56>>2]);if(c){b=J[a+48>>2];if(b)f=c,g=Cw(b,3154),J[f+48>>2]=g;b=J[a+36>>2];if(b)f=c,g=Cw(b,3174),J[f+36>>2]=g;b=J[a+40>>2];if(b)f=c,g=Cw(b,3170),J[f+40>>2]=g;b=J[a+44>>2];if(b)f=c,g=Cw(b,3172),J[f+44>>2]=g;b=J[a+60>>2];if(b)f=c,g=Cw(b,3154),J[f+60>>2]=g; -a=J[a+12>>2];a:{if(!a)break a;e=c+12|0;while(1){b:{c:{d:{e:switch(J[a+4>>2]-8|0){case 9:f:switch(J[a+48>>2]-1|0){case 0:case 1:case 2:b=J[c+48>>2];if(!b)break c;b=tf(b,J[a+8>>2],0,0);break d;case 3:case 4:break f;default:break c}b=J[c+60>>2];if(!b)break c;b=tf(b,J[a+8>>2],0,0);break d;case 7:b=pB(c,J[a+8>>2],J[a+48>>2]);break d;case 8:b=rp(c,J[a+60>>2],J[a+8>>2],J[a+56>>2]);break d;case 0:break e;default:break c}b=vw(a,0,0,0)}if(b)break b}a=J[a+24>>2];if(a)continue;break a}J[(d?d+24|0:e)>>2]=b;J[b+ -24>>2]=0;J[b+20>>2]=c;J[b+28>>2]=d;J[c+16>>2]=b;d=b;a=J[a+24>>2];if(a)continue;break}}}else c=0;return c}function uD(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-16|0;bc=d;b=J[a+12>>2];a:{if((b|0)>24){b=-1;break a}h=a+16|0;while(1){b:{c:{d:{c=b<<3;f=J[c+231140>>2]+J[a+8>>2]|0;if((f|0)>0){g=J[c+231136>>2]+J[a+4>>2]|0;if((g|0)>0)break d}b=b+1|0;break c}b=J[h>>2];if(!b){c=P(f,g);b=0;e=J[J[a>>2]+80>>2];e:{if(!e)break e;c=J[J[e+8>>2]+((c>>>0)%M[e>>2]<<2)>>2];if(!c)break e;J[c+8>>2]=J[c+8>>2]+1;b=c}J[a+ -16>>2]=b;if(!b){b=J[a+12>>2]+1|0;break c}J[a+20>>2]=0}e=b?J[b+4>>2]:0;b=J[a+20>>2];if((e|0)>(b|0))while(1){c=J[J[a+16>>2]+20>>2];J[a+20>>2]=b+1;j=J[J[a>>2]+72>>2];i=+N[c+(b<<2)>>2]+.5;f:{if(R(i)<2147483648){b=~~i;break f}b=-2147483648}c=cg(j,b);J[d+12>>2]=c;g:{if(((c?J[c>>2]:-1)-12|0)!=(g|0))break g;c=J[d+12>>2];if(c)c=J[c+4>>2];else c=-1;if((c-12|0)!=(f|0))break g;wd(d+12|0);break a}wd(d+12|0);b=J[a+20>>2];if((e|0)>(b|0))continue;break}J[a+12>>2]=J[a+12>>2]+1;Ai(h);b=J[a+12>>2];break b}J[a+12>>2]= -b}if((b|0)<=24)continue;break}b=-1}bc=d+16|0;return b}function S3(a){a=a|0;var b=0,c=0;J[a>>2]=339572;b=J[a+20>>2];if(b){qc(pr(b));J[a+20>>2]=0}b=J[a+16>>2];if(b){qc(dL(b));J[a+16>>2]=0}b=J[a+664>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+664>>2]=0}a:{b=J[a+12>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+12>>2]=0}b=J[a+668>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+668>>2]=0}b=J[a+696>>2]; -if(b){J[a+700>>2]=b;qc(b)}J[a+528>>2]=340520;if(H[a+555|0]<0)qc(J[a+544>>2]);if(H[a+543|0]<0)qc(J[a+532>>2]);J[a+456>>2]=340520;if(H[a+483|0]<0)qc(J[a+472>>2]);if(H[a+471|0]<0)qc(J[a+460>>2]);J[a+88>>2]=340472;b=J[a+116>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+116>>2]=0}Qe(a+300|0);b=J[a+208>>2];if(b){J[a+212>>2]=b;qc(b)}if(H[a+135|0]<0)qc(J[a+124>>2]);Ed(a+120|0);J[a+24>>2]=340424;b=J[a+52>>2];if(b){qc(b);J[a+52>>2]=0}return a|0}ea(0)| -0;yc();B()}function HJa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+56>>2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;a=tc(a,b,96);b=J[J[689612]+40>>2];J[a+104>>2]=16;J[a+96>>2]=b;e=a,f=vd(16,4),J[e+100>>2]=f;wc(a+112|0,0,92);b=rc(16);J[695492]=0;c=$(3185,b|0)|0; -d=J[695492];J[695492]=0;if((d|0)!=1)a:{J[a+204>>2]=c;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+208>>2]=c;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+212>>2]=c;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+220>>2]=0;J[a+224>>2]=0;J[a+216>>2]=c;J[a+228>>2]=0;J[a+232>>2]=0;J[a+236>>2]=0;J[a+240>>2]=0;J[a+244>>2]=0;return a|0}a=Z()|0;qc(b);ba(a|0);B()}function YZ(a,b,c,d){var e=0, -f=0,g=0,h=0;e=bc-112|0;bc=e;J[e+96>>2]=13;J[e+80>>2]=13;J[e+64>>2]=13;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;a:{if(J[Bc(J[b+8>>2],780419,e+96|0,0)>>2]==6){while(1){a=J[e+104>>2];if(J[a+12>>2]>(f|0)){b=0;g=a;a=e+80|0;if(J[Mc(g,f,a,0)>>2]==3){b=rg(c,J[e+88>>2]);if(!b){Mc(J[e+104>>2],f|1,d,0);uc(a);uc(e+96|0);break a}b=b>>>31|0}f=f+2|0;uc(e+80|0);if(!b)continue}break}uc(e+96|0);J[d>>2]=5;break a}uc(e+96|0);b:{if(J[Bc(J[b+8>>2],796762,e- -64|0,0)>>2]!=6)break b;while(1){g=J[e+72>>2];if(J[g+ -12>>2]<=(f|0))break b;b=0;h=g;g=e+48|0;if(J[Mc(h,f,g,0)>>2]==7){if(J[Bc(J[e+56>>2],797510,e+32|0,0)>>2]==6){c:{if(J[Mc(J[e+40>>2],0,e+16|0,0)>>2]!=3)break c;if((rg(c,J[e+24>>2])|0)<0)break c;b=0;d:{if(J[Mc(J[e+40>>2],1,e,0)>>2]!=3)break d;b=0;if((rg(c,J[e+8>>2])|0)>0)break d;YZ(a,g,c,d);b=1}uc(e)}uc(e+16|0)}uc(e+32|0)}f=f+1|0;uc(e+48|0);if(!b)continue;break}uc(e- -64|0);break a}uc(e- -64|0);J[d>>2]=5}bc=e+112|0;return d}function ITa(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; -h=J[a+420>>2];if(J[a+236>>2]){d=J[h+68>>2];if(!d){_v(a,J[h+72>>2]);d=J[a+236>>2];J[h+72>>2]=J[h+72>>2]+1&7}J[h+68>>2]=d-1}if(J[a+316>>2]>0)while(1){e=k<<2;f=J[(e+a|0)+320>>2]<<2;l=J[J[(f+a|0)+292>>2]+20>>2];m=(l<<2)+h|0;f=f+h|0;i=J[m+76>>2]+J[f+52>>2]|0;e=I[J[b+e>>2]>>1]>>J[a+372>>2];c=e-J[f+36>>2]|0;a:{if(!c){Oe(a,i,0);J[f+52>>2]=0;break a}J[f+36>>2]=e;Oe(a,i,1);d=0;b:{if((c|0)>0){g=2;j=0;e=4;break b}c=0-c|0;g=3;j=1;e=8}Oe(a,i+1|0,j);J[f+52>>2]=e;g=g+i|0;e=c-1|0;c:{if(!e)break c;d=1;Oe(a,g,1);g= -J[m+76>>2]+20|0;c=e;if((c|0)==1)break c;while(1){Oe(a,g,1);g=g+1|0;d=d<<1;j=c>>>0>3;c=c>>>1|0;if(j)continue;break}}Oe(a,g,0);c=a+l|0;d:{if(1<>1<=(d|0)){if(1<>1>=(d|0))break d;c=J[f+52>>2]+8|0}else c=0;J[f+52>>2]=c}if(d>>>0<2)break a;f=g+14|0;while(1){d=d>>1;Oe(a,f,(e&d)!=0);if(d>>>0>1)continue;break}}k=k+1|0;if((k|0)>2])continue;break}return 1}function cY(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if((J[b+4>>2]&-2)!=2){f=J[b+52>>2];if(J[f+8>>2]>0)while(1){cY(a, -J[J[f>>2]+(e<<2)>>2],c);e=e+1|0;f=J[b+52>>2];if((e|0)>2])continue;break}return}f=rc(16);J[695492]=0;e=$(3185,f|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1){GH(a,b,e,1);a=rc(32);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=e;J[a+16>>2]=0;J[a+20>>2]=0;f=J[e>>2];h=J[f>>2];O[a+24>>3]=O[h+40>>3];b=J[e+8>>2];a:{if((b|0)<=0)break a;g=O[h+24>>3];O[a+8>>3]=g;i=O[h+32>>3];O[a+16>>3]=i;e=1;if((b|0)==1)break a;h=b-1|0;l=h&1;if((b|0)!=2){m=f+4|0;h=h&-2;b=0;while(1){j=e<<2;k=J[j+f>>2];d=O[k+24>>3];if(d>3]=d; -g=d}d=O[k+32>>3];if(d>i){O[a+16>>3]=d;i=d}j=J[j+m>>2];d=O[j+24>>3];if(d>3]=d;g=d}d=O[j+32>>3];if(d>i){O[a+16>>3]=d;i=d}e=e+2|0;b=b+2|0;if((h|0)!=(b|0))continue;break}}if(!l)break a;d=g;b=J[f+(e<<2)>>2];g=O[b+24>>3];if(d>g)O[a+8>>3]=g;g=O[b+32>>3];if(!(g>i))break a;O[a+16>>3]=g}id(c,a);return}a=Z()|0;qc(f);ba(a|0);B()}function rG(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=bc-32|0;bc=f;a:{b:{c:{if(!(!(a<1.001)|!(a>.999))){if(!(a<.1|a>10)){while(1){H[b+d|0]=d;c=d|1;H[c+b|0]=c;c=d|2;H[c+b|0]=c;c=d| -3;H[c+b|0]=c;c=d|4;H[c+b|0]=c;c=d|5;H[c+b|0]=c;c=d|6;H[c+b|0]=c;c=d|7;H[c+b|0]=c;d=d+8|0;if((d|0)!=256)continue;break}break c}b=Kc(f+8|0,2386462,2373889,657,2413212,0);J[695492]=0;_(5019,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break b;break a}if(!K[2762E3])H[2762E3]=1;if(O[341072]!=a){if(a<.1|a>10){b=Kc(f+8|0,2386462,2373889,657,2413212,0);J[695492]=0;_(5019,b|0);d=J[695492];J[695492]=0;if((d|0)!=1)break b;break a}h=1/a;while(1){g=d+2761744|0;e=V(We(+(d|0)/255,h)*255+.5);d:{if(R(e)<2147483648){c= -~~e;break d}c=-2147483648}H[g|0]=c;c=d|1;g=c+2761744|0;e=V(We(+(c|0)/255,h)*255+.5);e:{if(R(e)<2147483648){c=~~e;break e}c=-2147483648}H[g|0]=c;d=d+2|0;if((d|0)!=256)continue;break}H[2761999]=255;O[341072]=a;H[2761744]=0}tc(b,2761744,256)}bc=f+32|0;return}B()}d=Z()|0;Fc(b);ba(d|0);B()}function byb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+12>>2];a:{b:{c:{if(M[b>>2]<=256){b=-1;e=J[c+8>>2];if(e&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;e=J[c+28>>2];J[c+ -28>>2]=e-1;if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break c}if((Uc(c,d&255)|0)!=-1)break c;break b}b=-1;if(wh(c,d))break b}b=-1;e=J[c+8>>2];if(e&7)break b;d=K[a+16|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;d:{if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break d}if((Uc(c,d)|0)==-1)break b}b=-1;d=J[c+8>>2];if(d&7)break b;a=K[a+17|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>> -2])){J[c+8>>2]=d|4;return-1}J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=a;break e}if((Uc(c,a)|0)==-1)break b}b=0}return b|0}J[c+8>>2]=e|4;return-1}function iTa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-16|0;bc=d;b=J[a+420>>2];c=J[a+24>>2];e=J[c>>2];a:{if(J[a+264>>2]){J[b+112>>2]=e;J[b+116>>2]=J[c+4>>2];Sq(b);EZ(b);a=J[a+24>>2];J[a>>2]=J[b+112>>2];J[a+4>>2]=J[b+116>>2];break a}h=J[b+16>>2];j=J[b+12>>2]; -f=J[c+4>>2];c=J[b+32>>2];J[d+8>>2]=J[b+28>>2];J[d+12>>2]=c;c=J[b+24>>2];J[d>>2]=J[b+20>>2];J[d+4>>2]=c;b:{c:{if((h|0)<=0)break c;c=h+7|0;i=127<<17-h|j;while(1){d:{H[e|0]=i>>>16;e=e+1|0;f=f-1|0;if(!f){g=J[a+24>>2];if(!(gc[J[g+12>>2]](a)|0))break d;f=J[g+4>>2];e=J[g>>2]}g=c;e:{if((i&16711680)!=16711680)break e;H[e|0]=0;e=e+1|0;f=f-1|0;if(f)break e;c=J[a+24>>2];if(!(gc[J[c+12>>2]](a)|0))break d;f=J[c+4>>2];e=J[c>>2]}c=g-8|0;i=i<<8;if((g|0)>15)continue;break c}break}c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a); -f=0;break b}j=0;h=0}a=J[a+24>>2];J[a+4>>2]=f;J[a>>2]=e;J[b+16>>2]=h;J[b+12>>2]=j;a=J[d+12>>2];J[b+28>>2]=J[d+8>>2];J[b+32>>2]=a;a=J[d+4>>2];J[b+20>>2]=J[d>>2];J[b+24>>2]=a}bc=d+16|0}function yV(a,b,c){var d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;a:{b:{c:{d:{e:{d=J[a+708>>2];switch(d|0){case 1:break c;case 0:break d;default:break e}}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break d;Yc(a,67729);Ld(a,c);break b}d=J[a+200>>2];if(!(d&1))break a;if(d&4)J[a+200>>2]=d|8;rd(a,J[a+740>>2]);d=gg(a,c+1|0);J[a+740>>2]=d;if(!d){Yc(a, -67787);break b}qg(a,d,c);pe(a,d,c);e=Ld(a,0);d=J[a+740>>2];if(e){rd(a,d);J[a+740>>2]=0;break b}H[c+d|0]=0;g=J[a+740>>2];e=g;while(1){d=e;e=d+1|0;if(K[d|0])continue;break}if(!(d>>>0<(c+g|0)-2>>>0&c>>>0>=2)){Yc(a,67823);rd(a,J[a+740>>2]);J[a+740>>2]=0;break b}if(K[e|0]){Yc(a,67844);g=J[a+740>>2]}e=(d-g|0)+2|0;aH(a,0,c,e,f+12|0);c=gg(a,28);if(!c){Yc(a,67883);rd(a,J[a+740>>2]);J[a+740>>2]=0;break b}J[c>>2]=0;d=J[a+740>>2];J[c+24>>2]=0;J[c+4>>2]=d;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=d+e;J[c+12>>2]=J[f+ -12>>2];b=CG(a,b,c);rd(a,c);rd(a,J[a+740>>2]);J[a+740>>2]=0;if(!b)break b;Ad(a,67923);B()}Ld(a,c)}bc=f+16|0;return}Ad(a,67762);B()}function iz(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=J[c>>2];j=O[e+32>>3];g=J[b>>2];i=O[g+32>>3];f=J[a>>2];a:{b:{c:{if(!(i>3])){f=0;if(!(j>2]=e;J[c>>2]=g;f=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=f;f=1;e=J[b>>2];g=J[a>>2];if(!(O[e+32>>3]>3]))break a;J[a>>2]=e;J[b>>2]=g;g=a+4|0;e=b+4|0;break c}if(j>2]=e;J[c>>2]=f;e=c+4|0;f=1; -break b}J[a>>2]=g;J[b>>2]=f;f=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=f;f=1;e=J[c>>2];h=J[b>>2];if(!(O[e+32>>3]>3]))break a;g=b+4|0;J[b>>2]=e;J[c>>2]=h;e=c+4|0}f=2}h=J[g>>2];J[g>>2]=J[e>>2];J[e>>2]=h}e=J[d>>2];g=J[c>>2];if(O[e+32>>3]>3]){J[c>>2]=e;J[d>>2]=g;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=J[c>>2];e=J[b>>2];if(!(O[d+32>>3]>3]))return f+1|0;J[b>>2]=d;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[b>>2];d=J[a>>2];if(!(O[c+32>>3]>3]))return f+2| -0;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;f=f+3|0}return f}function Yu(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=J[c>>2];j=O[e+16>>3];g=J[b>>2];i=O[g+16>>3];f=J[a>>2];a:{b:{c:{if(!(i>3])){f=0;if(!(j>2]=e;J[c>>2]=g;f=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=f;f=1;e=J[b>>2];g=J[a>>2];if(!(O[e+16>>3]>3]))break a;J[a>>2]=e;J[b>>2]=g;g=a+4|0;e=b+4|0;break c}if(j>2]=e;J[c>>2]=f;e=c+4|0;f=1;break b}J[a>>2]=g;J[b>>2]=f;f=J[a+4>>2];J[a+4>> -2]=J[b+4>>2];J[b+4>>2]=f;f=1;e=J[c>>2];h=J[b>>2];if(!(O[e+16>>3]>3]))break a;g=b+4|0;J[b>>2]=e;J[c>>2]=h;e=c+4|0}f=2}h=J[g>>2];J[g>>2]=J[e>>2];J[e>>2]=h}e=J[d>>2];g=J[c>>2];if(O[e+16>>3]>3]){J[c>>2]=e;J[d>>2]=g;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=J[c>>2];e=J[b>>2];if(!(O[d+16>>3]>3]))return f+1|0;J[b>>2]=d;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[b>>2];d=J[a>>2];if(!(O[c+16>>3]>3]))return f+2|0;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+ -4>>2];J[b+4>>2]=c;f=f+3|0}return f}function Nx(a){var b=0,c=0,d=0,e=0;a:{b:{if(!J[a+1116>>2])break b;c:{if(K[a+460|0]|!K[a+496|0])break c;c=J[a+564>>2];b=J[a+560>>2];if(c>>>0<=b>>>0)break c;e=J[a+556>>2];d=J[a+552>>2];if(e>>>0<=d>>>0)break c;if(gc[J[a+232>>2]](a,d,b,e-d|0,c-b|0)|0)break c;Dc(a,904,0,0);return 904}J[a+552>>2]=0;J[a+556>>2]=0;d=0;H[a+502|0]=0;J[a+560>>2]=0;J[a+564>>2]=0;d:{if(!K[a+504|0])break d;b=J[a+508>>2]+1|0;J[a+508>>2]=b;if(b>>>0<2)break d;H[a+496|0]=0;J[a+516>>2]=0;return 0}b= -J[a+236>>2];if(b){b=gc[b|0](a)|0;J[a+480>>2]=b-J[a+488>>2];d=b-J[a+484>>2]|0}e=J[a+1116>>2];c=J[a+24>>2];e:{if(!c){c=1E3;b=1;if(J[a+12>>2]!=2)break e}b=J[a+120>>2]-1|0;if(b>>>0<=2)b=J[(b<<2)+218564>>2];else b=1E3;b=(P(b,e)>>>0)/(c>>>0)|0}if(K[a+460|0]|!K[a+496|0])break b;c=b-d|0;if(!(gc[J[a+240>>2]](a,b>>>0<=d>>>0?1:c>>>0<=1?1:c)|0))break a;if(!K[a+496|0])break b;H[a+497|0]=1}if(!K[a+460|0])J[a+444>>2]=J[a+444>>2]+b;J[a+1116>>2]=J[a+1144>>2];return 0}Dc(a,902,0,0);return 902}function qka(a,b){a=a| -0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;a:{b:{c:switch(J[a+60>>2]-2|0){case 0:case 2:Oc(b,2449936,-1);Oc(b,2449968,-1);Oc(b,2450016,-1);Nl(b,J[J[a+628>>2]+4>>2]);Oc(b,2442340,-1);Nl(b,J[J[a+628>>2]+4>>2]);Oc(b,2440060,-1);Oc(b,2450072,-1);Oc(b,2450304,-1);Oc(b,2450344,-1);Oc(b,2450396,-1);Oc(b,2445216,-1);Nl(b,J[J[a+628>>2]+4>>2]+6|0);Oc(b,2439844,-1);Oc(b,2445368,-1);Oc(b,2450448,-1);Oc(b,2450596,-1);Oc(b,2450652,-1);H[c+15|0]=1;Vu(a,b,c+15|0);Oc(b,2446852,-1);Oc(b,2446952,-1);Oc(b,2446996, --1);e=2450728;f=2450688;break b;default:break c}Oc(b,2450764,-1);Oc(b,2450652,-1);H[c+14|0]=1;Vu(a,b,c+14|0);az(a,b);Oc(b,2450688,-1);e=2450972;if(J[a+616>>2]==J[a+620>>2]|J[a+60>>2]!=1)break a;Oc(b,2450792,-1);Oc(b,2450836,-1);eS(b);Oc(b,2450876,-1);f=2450924;d=J[a+616>>2];a=J[a+620>>2];if((d|0)==(a|0))break b;while(1){g=J[d>>2];gc[J[J[g>>2]+16>>2]](g,b);d=d+8|0;if((a|0)!=(d|0))continue;break}}Oc(b,f,-1)}Oc(b,e,-1);bc=c+16|0}function ddb(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;h=6;f=J[a+532>>2];a:{if(!f)break a;if(!(b|c)){e=J[f>>2];if(!e)return 0;a=J[f+136>>2];b=J[f+140>>2];h=0;if(e>>>0>=4){f=e&-4;while(1){c=g<<2;J[c+a>>2]=J[b+c>>2];d=c|4;J[d+a>>2]=J[b+d>>2];d=c|8;J[d+a>>2]=J[b+d>>2];c=c|12;J[c+a>>2]=J[b+c>>2];g=g+4|0;i=i+4|0;if((f|0)!=(i|0))continue;break}}f=e&3;if(!f)break a;c=0;while(1){e=g<<2;J[e+a>>2]=J[b+e>>2];g=g+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}break a}if(!c)break a;k=J[f>>2];h=b>>>0>k>>>0?k:b;b:{if(!h)break b;e=J[f+136>>2];if(h>>>0>=4){l=h& --4;while(1){d=g<<2;J[d+e>>2]=J[c+d>>2];j=d|4;J[j+e>>2]=J[c+j>>2];j=d|8;J[j+e>>2]=J[c+j>>2];d=d|12;J[d+e>>2]=J[c+d>>2];g=g+4|0;m=m+4|0;if((l|0)!=(m|0))continue;break}}d=h&3;if(!d)break b;while(1){l=g<<2;J[l+e>>2]=J[c+l>>2];g=g+1|0;i=i+1|0;if((d|0)!=(i|0))continue;break}}if(b>>>0>>0)wc(J[f+136>>2]+(h<<2)|0,0,k-h<<2);h=0;J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15}return h|0}function _ia(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+4>>2]=b;H[a|0]=0;b=J[J[b>>2]-12>>2]+b|0;if(!J[b+16>>2]){b=J[b+72>>2];if(b)a:{d= -bc-16|0;bc=d;c=J[J[b>>2]-12>>2];J[695492]=0;c=J[(b+c|0)+24>>2];e=J[695492];J[695492]=0;b:{c:{d:{e:{f:{if((e|0)!=1){if(!c)break c;J[695492]=0;aa(6526,d+8|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break e;if(!K[d+8|0])break f;c=J[J[b>>2]-12>>2];J[695492]=0;c=J[(b+c|0)+24>>2];e=J[695492];J[695492]=0;g:{if((e|0)==1)break g;J[695492]=0;c=$(6527,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break g;if((c|0)!=-1)break f;c=J[J[b>>2]-12>>2];J[695492]=0;da(6528,b+c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break f}c= -ea(0)|0;By(d+8|0);break d}c=ea(0)|0;break d}By(d+8|0);break c}c=ea(0)|0}na(c|0)|0;c=J[J[b>>2]-12>>2];J[695492]=0;_(6529,b+c|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;ta()}bc=d+16|0;break a}a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1){ba(a|0);B()}ea(0)|0;yc();B()}H[a|0]=1}return a|0}function LY(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;e=J[a+28>>2];l=J[a+140>>2]>>>e|0;j=-1<>2]>>>e|0;k=J[a+180>>2];n=J[a+188>>2];o= -J[a+200>>2];p=J[a+156>>2];q=J[a+164>>2];r=J[a+192>>2];s=J[a+160>>2];t=J[a+168>>2];d=J[a+236>>2];g=J[a+232>>2];h=J[a+228>>2];f=J[a+220>>2];i=J[a+224>>2];while(1){if(i>>>0>>0){c=((P(((i<>>0)/(s>>>0)|0,r)<<6)+o|0)+(((f<>>0)/(p>>>0)<<6)|0;b=J[c+60>>2]+P(h,88)|0;u=J[(J[b+76>>2]+(P(J[b+68>>2],(i-(J[c+20>>2]+j>>>e|0)>>>0)/M[b+12>>2]|0)<<2)|0)+((f-(J[c+16>>2]+j>>>e|0)>>>0)/M[b+8>>2]<<2)>>2];b=J[b+4>>2];h=h+1|0;J[a+228>>2]=h;c=1;a:{if((h|0)!=(n|0))break a;h=0;J[a+228>>2]=0;f=f+1|0;J[a+220>> -2]=f;c=1;if((f|0)!=(l|0))break a;J[a+220>>2]=k;i=i+1|0;J[a+224>>2]=i;f=k;c=0}d=b+d|0;J[a+236>>2]=d;g=((b|0)==8?255:-1<>2]=g;b:{if(c)break b;b=d&7;if(!b)break b;b=8-b|0;d=b+d|0;J[a+236>>2]=d;g=g<>2]=g}if(d>>>0<8)continue}break}}function KRa(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;g=bc-128|0;bc=g;e=J[J[a+28>>2]+120>>2];a:{if((gc[J[J[e>>2]+28>>2]](e)|0)!=(c|0)){e=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];e=gc[J[J[a>> -2]+52>>2]](a)|0}xc(1,e,819063,0);break a}e=0;h=J[a+28>>2];d=J[h+384>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[h+384>>2]=0;c:{if((c|0)<=0)break c;if((c|0)!=1){h=c&-2;while(1){i=(e<<2)+g|0;d=(e<<4)+b|0;f=(J[d>>2]==1?+J[d+8>>2]:O[d+8>>3])*65536;d:{if(R(f)<2147483648){d=~~f;break d}d=-2147483648}J[i>>2]=d;i=e|1;d=(i<<4)+b|0;f=(J[d>>2]==1?+J[d+8>>2]:O[d+8>>3])*65536;e:{if(R(f)<2147483648){d=~~f;break e}d=-2147483648}J[(i<<2)+g>>2]=d;e=e+2|0;j=j+2|0;if((h|0)!=(j|0))continue;break}}if(!(c&1))break c;c=(e<<2)+g| -0;b=(e<<4)+b|0;f=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*65536;f:{if(R(f)<2147483648){b=~~f;break f}b=-2147483648}J[c>>2]=b}tc(J[a+28>>2]+252|0,g,128);b=J[a+8>>2];gc[J[J[b>>2]+120>>2]](b,J[a+28>>2])}bc=g+128|0}function fSa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=J[a+28>>2];if(!J[c+492>>2]){c=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];c=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,c,823817,0);return}if(J[a+32>>2]){d=J[a+8>>2];gc[J[J[d>>2]+156>>2]](d,c);J[a+32>>2]=0; -c=J[a+28>>2]}O[c+560>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];g=O[b+24>>3];d=J[b+24>>2];h=J[b+16>>2];e=O[c+624>>3]-O[c+576>>3];O[c+624>>3]=e;f=O[c+616>>3];O[c+600>>3]=O[c+536>>3]+(O[c+504>>3]*f+e*O[c+520>>3]);O[c+552>>3]=(h|0)==1?+(d|0):g;O[c+608>>3]=O[c+544>>3]+(f*O[c+512>>3]+e*O[c+528>>3]);d=J[a+8>>2];gc[J[J[d>>2]+176>>2]](d,c);c=J[a+8>>2];gc[J[J[c>>2]+164>>2]](c,J[a+28>>2]);c=J[a+8>>2];gc[J[J[c>>2]+184>>2]](c,J[a+28>>2]);if(J[a+100>>2]){c=J[a+8>>2];gc[J[J[c>>2]+232>>2]](c,J[a+28>>2]);XA(a,J[b+40>>2]); -b=J[a+8>>2];gc[J[J[b>>2]+236>>2]](b,J[a+28>>2]);return}b=J[b+40>>2];c=J[a+8>>2];if(gc[J[J[c>>2]+32>>2]](c)|0){a=J[a+8>>2];gc[J[J[a>>2]+268>>2]](a,J[b>>2])}}function BY(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-16|0;bc=g;J[g>>2]=13;e=rc(16);J[695492]=0;i=$(3185,e|0)|0;h=J[695492];J[695492]=0;if((h|0)!=1)a:{b:{if(J[a>>2]!=9|J[b>>2]!=9)break b;while(1){if(J[hf(a,d,g,0)>>2]!=7){uc(g);break b}e=rc(96);J[695492]=0;h=ma(3464,e|0,a|0,J[g+8>>2],c|0,d|0)|0;f=J[695492];J[695492]=0;c:{d:{e:{f:{if((f| -0)!=1){uc(g);if(c){f=J[a+8>>2];e=c;while(1){if((f|0)==J[e+24>>2]&J[a+12>>2]==J[e+28>>2])break f;e=J[e+92>>2];if(e)continue;break}}f=J[i+8>>2];if((f|0)>0)break e;e=0;break d}break a}xc(1,-1,782768,0);qc(Kv(h));break b}k=J[a+8>>2];l=J[i>>2];e=0;while(1){j=J[(e<<2)+l>>2];if(!(J[j+24>>2]!=(k|0)|J[a+12>>2]!=J[j+28>>2])){xc(1,-1,782768,0);f=J[i+8>>2];break d}e=e+1|0;if((f|0)!=(e|0))continue;break}break c}if((e|0)>=(f|0))break c;qc(Kv(h));break b}id(i,h);f=J[b+8>>2];if((f|0)==J[a+8>>2]&J[a+12>>2]==J[b+12>> -2])break b;a=h- -64|0;if(J[h+64>>2]==9)continue;break}}bc=g+16|0;return i}a=Z()|0;qc(e);ba(a|0);B()}function yka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Oc(b,2439072,-1);Oc(b,2439096,-1);c=J[a+68>>2]-1|0;if(c>>>0<=3)c=J[(c<<2)+2439716>>2];else c=2439196;Oc(b,c,-1);Oc(b,2438124,-1);if(K[a+60|0]){Oc(b,2439204,-1);d=O[a+88>>3]*36E3;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}wg(b,c);Oc(b,2438124,-1)}Oc(b,2439244,-1);Oc(b,2439252,-1);Oc(b,2439296,-1);d=O[a+96>>3]*2.834645669291339*100;b:{if(R(d)<2147483648){c= -~~d;break b}c=-2147483648}wg(b,c);Oc(b,2438016,-1);Oc(b,2439360,-1);Oc(b,2439408,-1);Oc(b,2439296,-1);d=O[a+96>>3]*2.834645669291339*100;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}wg(b,c);Oc(b,2438016,-1);Oc(b,2439452,-1);Oc(b,2439500,-1);Oc(b,2439296,-1);d=O[a+112>>3]*2.834645669291339*100;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}wg(b,c);Oc(b,2438016,-1);Oc(b,2439540,-1);Oc(b,2439584,-1);c=J[a+120>>2];a=J[a+124>>2];if((c|0)!=(a|0))while(1){e=J[c>>2];if(e)aS(e,b);c=c+8|0;if((a|0)!= -(c|0))continue;break}Oc(b,2439620,-1)}function lya(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;d=c+16|0;J[d>>2]=2401320;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[695492]=0;ia(5346,c+12|0,a|0,d|0,0);a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;$c(d);ba(a|0);B()}$c(d);a:{b:{a=J[c+12>>2];if(!a)break b;d=J[J[a>>2]+20>>2];J[695492]=0;ha(d|0,a|0,0,0,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;a=J[J[b>>2]+16>>2];J[695492]=0;a=$(a|0,b|0)|0;d=J[695492]; -J[695492]=0;if((d|0)==1)break a;if(a){a=J[J[b>>2]+12>>2];J[695492]=0;ga(a|0,b|0,2378639,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a}J[695492]=0;ga(5165,b|0,J[c+12>>2],0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;a=J[c+12>>2];J[c+12>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}ea(0)|0;yc();B()}bc=c+32|0;return}a=Z()|0;vc(c+12|0);ba(a|0);B()}function PUa(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;we(b,14);ao(a,b);pd(b,(J[a+212>>2]-J[a+208>>2]|0)/12|0);d=J[a+208>>2];if((d|0)!=J[a+212>>2])while(1){h=P(g,12);d=h+d|0;pd(b,J[d+4>>2]-J[d>>2]>>3);f=0;d=J[a+208>>2];e=h+d|0;c=J[e>>2];if((c|0)!=J[e+4>>2])while(1){i=O[(f<<3)+c>>3]*100;a:{if(R(i)<2147483648){d=~~i;break a}d=-2147483648}e=J[b+4>>2];b:{c:{if(!e){J[b+8>>2]=1E3;c=zc(1E3);J[b+16>>2]=0;J[b+4>>2]=c;break c}c=J[b+8>>2];j=J[b+16>>2]+4|0;if(c>>>0>=j>>>0){c=J[b+12>>2];break b}while(1){c=c<<1;if(j>>> -0>c>>>0)continue;break}J[b+8>>2]=c;c=Vd(e,c);if(c){J[b+4>>2]=c;c=c+J[b+16>>2]|0;break c}c=zc(J[b+8>>2]);e=J[b+4>>2];c=tc(c,e,J[b+16>>2]);qc(e);J[b+4>>2]=c;c=c+J[b+16>>2]|0}J[b+12>>2]=c}H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;J[b+12>>2]=J[b+12>>2]+4;J[b+16>>2]=J[b+16>>2]+4;d=J[a+208>>2];e=h+d|0;c=J[e>>2];f=f+1|0;if(f>>>0>2]-c>>3>>>0)continue;break}g=g+1|0;if(g>>>0<(J[a+212>>2]-d|0)/12>>>0)continue;break}}function zHa(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=bc-16|0;bc=g;a:{b:{if(b){if(!a)break b;if(!d)break a;i=J[J[a+72>>2]+16>>2];h=i>>>0<257?1:2;e=(h<<1)+5|0;f=(c>>>0)/(e>>>0)|0;c:{if(!((P(e,f)|0)==(c|0)&c>>>0>=e>>>0)){Hc(d,1,2355369,0);a=0;break c}c=0;if(J[a+8>>2]==16)e=J[a+156>>2]+P(J[a+192>>2],5644)|0;else e=J[a+12>>2];a=K[e+5640|0];if(a&4)c=J[e+420>>2]+1|0;f=c+f|0;if(f>>>0>=32){J[g>>2]=f;Hc(d,1,2355395,g);a=0;break c}H[e+5640|0]=a|4;if(c>>>0>>0){a=(e+P(c,148)|0)+424|0;while(1){ld(b,a,1);b=b+1|0;ld(b,a+4|0,h);b=b+h|0;ld(b,a+8|0,2);d=J[a+8>> -2];j=J[e+8>>2];J[a+8>>2]=d>>>0>>0?d:j;ld(b+2|0,a+12|0,1);b=b+3|0;ld(b,a+16|0,h);b=b+h|0;ld(b,g+12|0,1);J[a+36>>2]=J[g+12>>2];d=J[a+16>>2];J[a+16>>2]=d>>>0>>0?d:i;a=a+148|0;b=b+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}J[e+420>>2]=f-1;a=1}bc=g+16|0;return a|0}fa(2353829,2346358,3505,2355352);B()}fa(2346477,2346358,3506,2355352);B()}fa(2346590,2346358,3507,2355352);B()}function aD(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!(!a|!b)){c=J[a>>2];e=c>>31;f=J[b>>2];d=f>>31;e=(c^e)-e|0;d= -(d^f)-d|0;a:{if(e+(d>>>8|0)>>>0<=8190){d=P(d,e)+32768>>>16|0;break a}g=e&65535;d=P(g,d>>>16|0)+P(d,e>>>16|0)+(P(g,d&65535)+32768>>>16)|0}g=c>>31|1;k=0-g|0;i=(((f|0)<0?k:g)|0)<0?0-d|0:d;f=J[a+4>>2];d=f>>31;h=J[b+4>>2];c=h>>31;d=(d^f)-d|0;c=(c^h)-c|0;b:{if(d+(c>>>8|0)>>>0<=8190){c=P(c,d)+32768>>>16|0;break b}j=d&65535;c=P(j,c>>>16|0)+P(c,d>>>16|0)+(P(j,c&65535)+32768>>>16)|0}f=f>>31|1;l=0-f|0;j=i+((((h|0)<0?l:f)|0)<0?0-c|0:c)|0;h=J[b+8>>2];c=h>>31;c=(c^h)-c|0;c:{if(e+(c>>>8|0)>>>0<=8190){e=P(c,e)+32768>>> -16|0;break c}i=e&65535;e=P(i,c>>>16|0)+P(c,e>>>16|0)+(P(i,c&65535)+32768>>>16)|0}c=(((h|0)<0?k:g)|0)<0?0-e|0:e;e=J[b+12>>2];b=e>>31;b=(b^e)-b|0;d:{if(d+(b>>>8|0)>>>0<=8190){b=P(b,d)+32768>>>16|0;break d}g=d&65535;b=P(g,b>>>16|0)+P(b,d>>>16|0)+(P(g,b&65535)+32768>>>16)|0}J[a>>2]=j;J[a+4>>2]=c+((((e|0)<0?l:f)|0)<0?0-b|0:b)}}function F4(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+16>>2];f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);i=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);a:{if(!i)break a; -h=J[b>>2];if(c){if((h|0)==-1)break a;h=h+1|0}l=d+16|0;d=i;b:{c:{while(1){f=d+j>>>1|0;e=P(f,12)+l|0;g=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);k=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(g>>>0<=h>>>0){if(h>>>0<=k>>>0)break c;j=f+1|0}else d=f;if(d>>>0>j>>>0)continue;break}d=0;break b}d=e;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);e=h-g|0;d=d>>>0<=(e^ --1)>>>0?d+e|0:0}if(!c)return d;c=J[a>>2];if(h>>>0>k>>>0){e=0;f=f+1|0;if((i|0)==(f|0))break a}J[a+36>>2]=f;J[a+28>>2]=h;H[a+24|0]=1;d:{if(!(d>>>0>2]?d:0)){E4(a);d=0;if(!K[a+24|0])break d;d=J[a+32>>2];break d}J[a+32>>2]=d}e=d;J[b>>2]=J[a+28>>2]}return e}function kZa(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;f=bc-48|0;bc=f;e=1;a:{if(!b|!K[b|0])break a;e=b;while(1){g=d;d=d+1|0;h=K[e+1|0];e=e+1|0;if(h)continue;break}h=0;e=1;if(!g|K[(b+d|0)-2|0]==58)break a;e=0;b:{if(!a)break b; -d=J[a+36>>2];c:{if(J[d+4>>2])break c;g=J[a+40>>2];if((g|0)<2)break c;d=J[(J[a+48>>2]+(g<<2)|0)-8>>2]}d:{if(K[2758120])break d;if(!d)break b;k=J[d+28>>2];i=J[689514];h=J[659549];g=J[d+4>>2];if(g){J[f+36>>2]=k;J[f+32>>2]=g;gc[h|0](i,29761,f+32|0);break d}J[f+16>>2]=k;gc[h|0](i,29769,f+16|0)}h=d}gc[J[659549]](J[689514],29725,0)}H[2758120]=e;e=150;d=gc[J[659447]](150)|0;e:{if(!d)break e;g=-1;while(1){j=d;if((e|0)>63999)break e;J[f+44>>2]=c;d=Il(d,e,b,c);if(!((d|0)<0|(d|0)>=(e|0))){i=(d|0)==(g|0);g=d; -if(i)break e}e=((d|0)<0?100:d+1|0)+e|0;d=gc[J[659452]](j,e)|0;if(d)continue;break}}J[f>>2]=j;gc[J[659549]](J[689514],4607,f);if(j)gc[J[659451]](j);if(!(!a|!h))xp(h,J[659549],J[689514]);bc=f+48|0}function dTa(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;d=bc-48|0;bc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;a:{b:{if(J[c>>2]!=6)break b;i=1;b=J[J[b+28>>2]+132>>2];if(b)i=!J[J[b+32>>2]+8>>2];e=J[c+8>>2];if(J[e+12>>2]<=0)break b;b=0;while(1){f=e;e=d+32|0;c:{if(J[jg(f,b,e)>> -2]==9){f=J[d+44>>2];J[d+8>>2]=J[d+40>>2];J[d+12>>2]=f;uc(e);Mc(J[c+8>>2],b,e,0);break c}J[d+8>>2]=-1;J[d+12>>2]=-1}if(J[d+32>>2]==7){d:{e:{if(i)break e;e=Bc(J[d+40>>2],774992,d+16|0,0);if(J[e>>2]!=4)break e;if(!Ec(J[e+8>>2],823577))break d}f=rc(112);e=J[a>>2];J[695492]=0;e=ja(3354,f|0,e|0,J[d+40>>2],d+8|0,823985,0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(J[e+104>>2]){f=J[a+4>>2];g=J[a+8>>2];if((h|0)<=(g|0)){h=h+16|0;f=Nd(f,h,4);J[a+4>>2]=f;g=J[a+8>>2]}J[a+8>>2]=g+1;J[(g<<2)+f>>2]=e;break d}qc(EI(e))}uc(d+ -16|0)}uc(d+32|0);b=b+1|0;e=J[c+8>>2];if((b|0)>2])continue;break}}bc=d+48|0;return a|0}a=Z()|0;qc(f);ba(a|0);B()}function a1a(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;f=J[a+16>>2];j=J[a+20>>2]-f|0;a:{h=J[b+4>>2];d=J[h+44>>2];e=J[b+8>>2];i=J[b+12>>2];if(!(!d|e>>>0>=i>>>0)){if(!j){J[c>>2]=15;return}if((d&-2)!=194)break a;g=K[e|0]^-128;if((g&255)>>>0>63)break a;H[f|0]=g|d<<6;H[h+36|0]=0;J[h+44>>2]=0;j=j-1|0;f=f+1|0;e=e+1|0}if(e>>>0>>0){d=i-1|0;i=(K[d|0]- -64&255)>>>0<62?d:i}b:{c:{d:{e:{f:{if(e>>> +255)){h=K[e|0];d=6;e=e+1|0;b=192}f=(b&h)>>>d|0;H[c|0]=f>>>0<4?P(f,85):0;d=d-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;g=g+1|0;f=J[a+588>>2];if((g|0)<(f|0))continue;break}}if((f|0)<=0)break a;b=J[a+540>>2];d=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;g=J[a+636>>2]+J[a+616>>2]|0;b=0;c=0;f=0;e=0;while(1){if(!(c&255)){f=K[g|0];c=192;g=g+1|0;b=6}H[d|0]=(c&f&255)>>>b;b=b-2|0;c=(c&252)>>>2|0;d=J[a+584>>2]+d|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function NOa(a, +b,c){a=a|0;b=b|0;c=c|0;J[a+48>>2]=13;J[a+32>>2]=13;J[a+16>>2]=13;J[a>>2]=b;b=J[b+24>>2];J[a+8>>2]=c;J[a+4>>2]=b;b=vc(296);J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+64>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=1078525952;J[b+24>>2]=0;J[b+28>>2]=1078525952;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=1078525952;J[b+56>>2]=0;J[b+60>>2]=1078525952;J[b+80>>2]=0;J[b+84>>2]=0;J[b+88>>2]=0;J[b+92>>2]=1078525952;J[b+96>>2]=0; +J[b+100>>2]=1078525952;J[b+128>>2]=0;J[b+132>>2]=1078525952;J[b+120>>2]=0;J[b+124>>2]=1078525952;J[b+112>>2]=0;J[b+116>>2]=0;J[b+280>>2]=5;J[b+256>>2]=5;J[b+240>>2]=5;J[b+224>>2]=5;J[b+208>>2]=5;J[b+192>>2]=5;J[b+176>>2]=5;J[b+168>>2]=0;c=J[b+28>>2];J[b+160>>2]=J[b+24>>2];J[b+164>>2]=c;c=J[b+20>>2];J[b+152>>2]=J[b+16>>2];J[b+156>>2]=c;c=J[b+12>>2];J[b+144>>2]=J[b+8>>2];J[b+148>>2]=c;c=J[b+4>>2];J[b+136>>2]=J[b>>2];J[b+140>>2]=c;J[a+64>>2]=1;J[a+48>>2]=5;J[a+32>>2]=5;J[a+16>>2]=5;J[a+12>>2]=b;return a| +0}function hn(a){var b=0,c=0,d=0,e=0;Be(a,Fc(a)<<1);a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!Fc(a)){if((Fc(a)|0)!=1380401731)break k;if((Fc(a)|0)!=3)break j;if(Fc(a))break i;if((Fc(a)|0)!=1382293536)break h;if((Fc(a)|0)!=1685026146)break g;c=me(a);if(Fc(a))break f;if((Fc(a)|0)!=1198681632)break e;if((Fc(a)|0)!=1685026146)break d;d=me(a);if(Fc(a))break c;if((Fc(a)|0)!=1114382368)break b;if((Fc(a)|0)!=1685026146)break a;if(R(d)<2147483648)b=~~d;else b=-2147483648;e=b&255;if(R(c)<2147483648)b=~~c;else b= +-2147483648;b=b&255;c=me(a);l:{if(R(c)<2147483648){a=~~c;break l}a=-2147483648}return a&255|(e<<8|b<<16)|-16777216}fa(221278,219859,414,224874);B()}fa(221895,219859,417,224874);B()}fa(222143,219859,422,224874);B()}fa(221278,219859,426,224874);B()}fa(222826,219859,429,224874);B()}fa(223148,219859,433,224874);B()}fa(221278,219859,439,224874);B()}fa(223403,219859,442,224874);B()}fa(223148,219859,446,224874);B()}fa(221278,219859,452,224874);B()}fa(223580,219859,455,224874);B()}fa(223148,219859,459,224874); +B()}function fs(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=fc-32|0;fc=c;e=a+528|0;f=a+456|0;b=Ou(e,f);d=O[a+600>>3];a:{if(b){if(!(d>1))break a;O[c+24>>3]=O[a+512>>3]*O[a+616>>3]/d;a=J[a+12>>2];kc[J[J[a>>2]+32>>2]](a,c+24|0);break a}if(d>1)O[J[a+12>>2]+128>>3]=O[a+512>>3]*O[a+616>>3]/d;b=K[a+471|0];b:{if(!(b<<24>>24<0?J[a+464>>2]:b)){b=J[a+12>>2];g=J[a+496>>2]!=0;J[c+20>>2]=K[a+504|0]<<2|(J[a+500>>2]?g|2:g)|K[a+505|0]<<7;O[c+24>>3]=O[J[a+16>>2]+24>>3];O[c+8>>3]=O[J[a+16>>2]+32>>3];kc[J[J[b>>2]+144>>2]](b,a+ +472|0,a+488|0,c+20|0,c+24|0,c+8|0)|0;break b}b=J[a+12>>2];O[c+24>>3]=O[J[a+16>>2]+24>>3];O[c+8>>3]=O[J[a+16>>2]+32>>3];kc[J[J[b>>2]+148>>2]](b,a+460|0,a+520|0,a+488|0,c+24|0,c+8|0)|0}b=J[a+12>>2]+16|0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+72>>2]=0;J[b+76>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]=0;J[b+52>>2]=1072693248;b=b- -64|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+12>>2];kc[J[J[b>>2]+40>>2]](b,a+508|0);a=J[a+12>>2];kc[J[J[a>>2]+32>>2]](a,a+128| +0);$l(e,f)}fc=c+32|0}function D6(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=fc-16|0;fc=j;f=K[b+1|0]<<16|K[b|0]<<24|K[b+2|0]<<8;d=K[b+3|0];g=f|d;if(g){h=d&3;e=b+7|0;a:{if((d|f)-1>>>0<3){f=0;d=e;break a}l=g-h|0;f=0;while(1){f=(K[e+12|0]+(K[e+8|0]+(K[e+4|0]+(K[e|0]+f|0)|0)|0)|0)+4|0;d=e+16|0;e=d;k=k+4|0;if((l|0)!=(k|0))continue;break}}if(h)while(1){f=(K[d|0]+f|0)+1|0;d=d+4|0;i=i+1|0;if((h|0)!=(i|0))continue;break}d=f+1|0}else d=1;e=J[a+28>>2];J[j+12>>2]=0;b:{c:{d:{if(d>>>0<=e>>>0){c=J[a+32>>2]; +break d}J[a+36>>2]=c;c=_c(c,4,e,d,J[a+32>>2],j+12|0);J[a+32>>2]=c;if(J[j+12>>2])break c;J[a+28>>2]=d}d=c;if(g)while(1){e=K[b+6|0]|(K[b+5|0]<<8|K[b+4|0]<<16);i=0;a=K[b+7|0];f=a+1|0;h=f&7;if(h)while(1){J[d>>2]=e;f=f-1|0;d=d+4|0;e=e+1|0;i=i+1|0;if((h|0)!=(i|0))continue;break}if(a>>>0>=7)while(1){J[d>>2]=e;J[d+28>>2]=e+7;J[d+24>>2]=e+6;J[d+20>>2]=e+5;J[d+16>>2]=e+4;J[d+12>>2]=e+3;J[d+8>>2]=e+2;J[d+4>>2]=e+1;d=d+32|0;e=e+8|0;f=f-8|0;if(f)continue;break}b=b+4|0;g=g-1|0;if(g)continue;break}J[d>>2]=0;break b}c= +0}fc=j+16|0;return c}function J0a(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;a:{b:{d=J[a+8>>2];h=J[a+12>>2];if((d|0)==(h|0))break b;a=K[b+11|0];e=a<<24>>24;i=(e|0)<0?J[b+4>>2]:a;if((e|0)>=0)while(1){f=K[d+11|0];g=f<<24>>24;e=(g|0)<0;a=J[d+4>>2];c:{if(((e?a:f)|0)!=(i|0))break c;if(!e){a=b;e=d;if(!g)break b;while(1){if(K[e|0]!=K[a|0])break c;a=a+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}break b}if(!a)break b;if(!dd(J[d>>2],b,a))break b}d=d+20|0;if((h|0)!=(d|0))continue;break a}b=J[b>>2];while(1){f= +K[d+11|0];g=f<<24>>24;e=(g|0)<0;a=J[d+4>>2];d:{if(((e?a:f)|0)!=(i|0))break d;if(!e){a=b;e=d;if(!g)break b;while(1){if(K[e|0]!=K[a|0])break d;a=a+1|0;e=e+1|0;f=f-1|0;if(f)continue;break}break b}if(!a)break b;if(!dd(J[d>>2],b,a))break b}d=d+20|0;if((h|0)!=(d|0))continue;break}break a}if((d|0)==(h|0)|(c|0)==(d|0))break a;b=K[c+11|0];a=b<<24>>24;if(H[d+11|0]>=0){if((a|0)>=0){a=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=a;J[d+8>>2]=J[c+8>>2];return}KF(d,J[c>>2],J[c+4>>2]);return}a=(a|0)<0;LF(d,a?J[c>>2]:c,a? +J[c+4>>2]:b)}}function qf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;A(+b);c=v(1)|0;a:{c=c&2147483647;if(!(v(0)|0)&(c|0)==2146435072|c>>>0<2146435072){A(+a);c=v(1)|0;c=c&2147483647;if(!(v(0)|0)&(c|0)==2146435072|c>>>0<2146435072)break a}return a+b}A(+b);d=v(1)|0;c=v(0)|0;f=c;if(!(c|d-1072693248))return wT(a);A(+a);c=v(1)|0;h=d>>>30&2;e=h|c>>>31;b:{c=c&2147483647;c:{if(!(v(0)|c)){d:switch(e-2|0){case 0:return 3.141592653589793;case 1:break d;default:break c}return-3.141592653589793}d=d&2147483647;if(!(d|f))break b; +e:{if((d|0)==2146435072){if((c|0)!=2146435072)break e;return O[(e<<3)+2464112>>3]}if(!((c|0)!=2146435072&d+67108864>>>0>=c>>>0))break b;f:{if(h){g=0;if(d>>>0>c+67108864>>>0)break f}g=wT(R(a/b))}a=g;g:switch(e|0){case 1:return-a;case 2:return 3.141592653589793-(a+-1.2246467991473532E-16);case 0:break c;default:break g}return a+-1.2246467991473532E-16+-3.141592653589793}a=O[(e<<3)+2464144>>3]}return a}A(1.5707963267948966);c=v(1)|0;f=v(0)|0;A(+a);d=v(1)|0;v(0)|0;x(0,f|0);x(1,c&2147483647|d&-2147483648); +return+z()}function o_a(a){a=a|0;var b=0,c=0;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a:{if(c)break a;if(kc[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=216;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(kc[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}if(J[a+88>>2])dx(a,0);if(J[a+92>>2])dx(a,1);if(J[a+96>>2])dx(a,2);if(J[a+100>>2])dx(a,3);c:{if(J[a+212>>2])break c;if(J[a+120>>2])Tn(a,0, +0);if(J[a+136>>2])Tn(a,0,1);if(J[a+124>>2])Tn(a,1,0);if(J[a+140>>2])Tn(a,1,1);if(J[a+128>>2])Tn(a,2,0);if(J[a+144>>2])Tn(a,2,1);if(J[a+132>>2])Tn(a,3,0);if(!J[a+148>>2])break c;Tn(a,3,1)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(kc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=217;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e:{if(c)break e;if(kc[J[b+12>>2]](a)|0)break e;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}} +function cNa(a){a=a|0;var b=0,c=0,d=0;b=J[a+4>>2];kc[J[J[b>>2]+20>>2]](b);J[a+48>>2]=0;J[a+40>>2]=0;J[a+56>>2]=0;J[a+44>>2]=J[a+8>>2]>>>31;b=J[a+20>>2];J[J[a+60>>2]>>2]=b;J[a+72>>2]=0;J[a+68>>2]=b;b=J[a+56>>2];while(1){a:{b:{c:{d:{e:{f:{g:{h:{if((b|0)>=12){c=J[a+52>>2];break h}while(1){b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1){b=J[a+56>>2];if(!b)break f;c=J[a+52>>2]<<12-b;break g}d=J[a+56>>2];b=d+8|0;J[a+56>>2]=b;c=c+(J[a+52>>2]<<8)|0;J[a+52>>2]=c;if((d|0)<4)continue;break}}c=c>>>b-12| +0}c=c&4095;if(!c)break a;if((c|0)==1){J[a+12>>2]=1;b=((b|0)<=12?12:b)-12|0;J[a+56>>2]=b}if(J[a+8>>2]<=0)break b;if((b|0)<=0)break e;c=J[a+52>>2];break d}if(J[a+8>>2]<=0)break b}while(1){b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==-1){b=J[a+56>>2];if(!b){b=0;c=65535;break c}c=J[a+52>>2]<<1-b&1;break c}d=J[a+56>>2];b=d+8|0;J[a+56>>2]=b;c=c+(J[a+52>>2]<<8)|0;J[a+52>>2]=c;if((d|0)<-7)continue;break}}c=c>>>b-1&1}J[a+44>>2]=!c;J[a+56>>2]=((b|0)<=1?1:b)-1}return}b=((b|0)<=1?1:b)-1|0;J[a+56>>2]=b;continue}} +function jCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+52>>2];if(!J[c+20>>2]){a=Dc(12);if(!a){J[c+20>>2]=0;return-1}J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[c+20>>2]=a}e=-1;g=Dc(12);a:{if(!g)break a;d=K[b+12|0];J[g>>2]=d;J[g+8>>2]=J[b+20>>2];J[b+20>>2]=0;J[g+4>>2]=J[b+16>>2];c=J[c+20>>2];b=J[c>>2];b:{if((b|0)<=0)break b;a=(b|0)>=2147483646?2147483646:b;h=J[c+8>>2];while(1){if(d>>>0>2]>>2])break b;f=f+1|0;if((a|0)!=(f|0))continue;break}f=a}a=J[c+4>>2];if((a|0)<=(b|0)){b=a+128|0;a= +b<<2;d=J[c+8>>2];c:{if(d){a=Yh(d,a);break c}a=Dc(a)}if(!a)break a;J[c+4>>2]=b;J[c+8>>2]=a;b=J[c>>2]}a=b;if((f|0)<(a|0)){d=a-f&3;if(d){e=0;while(1){h=J[c+8>>2]+(a<<2)|0;J[h>>2]=J[h-4>>2];a=a-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if((f^-1)+b>>>0>=3)while(1){e=a<<2;d=e+J[c+8>>2]|0;J[d>>2]=J[d-4>>2];d=e+J[c+8>>2]|0;J[d-4>>2]=J[d-8>>2];d=e+J[c+8>>2]|0;J[d-8>>2]=J[d-12>>2];e=e+J[c+8>>2]|0;J[e-12>>2]=J[e-16>>2];a=a-4|0;if((f|0)<(a|0))continue;break}a=f}J[J[c+8>>2]+(a<<2)>>2]=g;J[c>>2]=b+1;e=0}return e| +0}function f$(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a>>2]=2218236;J[a+4>>2]=J[b+4>>2];c=J[b+8>>2];d=a,e=kc[J[J[c>>2]+8>>2]](c)|0,J[d+8>>2]=e;J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=J[b+52>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];J[a- -64>>2]=J[b- -64>>2];J[a+68>>2]=J[b+68>>2];J[a+72>>2]=J[b+72>>2];J[a+76>> +2]=J[b+76>>2];J[a+80>>2]=J[b+80>>2];J[a+84>>2]=J[b+84>>2];J[a+88>>2]=J[b+88>>2];J[a+92>>2]=J[b+92>>2];J[a+96>>2]=J[b+96>>2];J[a+100>>2]=J[b+100>>2];J[a+104>>2]=J[b+104>>2];J[a+108>>2]=J[b+108>>2];J[a+112>>2]=J[b+112>>2];J[a+116>>2]=J[b+116>>2];J[a+120>>2]=J[b+120>>2];J[a+124>>2]=J[b+124>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=J[b+132>>2];J[a+136>>2]=J[b+136>>2];J[a+140>>2]=J[b+140>>2];O[a+144>>3]=O[b+144>>3];O[a+152>>3]=O[b+152>>3];O[a+160>>3]=O[b+160>>3];O[a+168>>3]=O[b+168>>3];J[a+176>>2]=J[b+176>> +2];return a|0}function ZLa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=fc-16|0;fc=f;J[a>>2]=2345172;J[a+116>>2]=0;J[a+120>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+180>>2]=0;J[a+184>>2]=0;J[a+176>>2]=1;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;c=xc(a+120|0,c,96);J[a+112>>2]=0;J[a+216>>2]=1;a:{b:{c:{if(b){d:{if(!Ic(b, +777105)){J[a+108>>2]=J[655076];break d}d=d?777815:778966;e:{if(e){d=Qn(b,d);break e}d=jk(b,d)}J[a+108>>2]=d;if(!d){J[f>>2]=b;Cc(4,-1,780744,f);J[a+216>>2]=0;break b}J[a+112>>2]=1}J[a+104>>2]=3667;break c}J[a+104>>2]=0;J[a+108>>2]=0}d=vc(248);J[699344]=0;c=aa(3668,d|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+116>>2]=c;if(!J[a+180>>2]|!J[a+108>>2])break b;d=OB(J[693464]);if(!d)break b;c=f+8|0;b=ei(d,65279,c,8);Mo(d);kc[J[a+104>>2]](J[a+108>>2],c,b)}fc=f+16|0;return a|0}a=Z()|0;uc(d);ba(a| +0);B()}function Dra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;f=J[b>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;d=J[b>>2]}J[699344]=0;J[e+12>>2]=d;a=ha(5718,a|0,e+12|0,0,c|0)|0;b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[e+12>>2]=0;c:{if(!d)break c;J[699344]=0;b=J[d+4>>2]-1|0;J[d+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break c;J[699344]=0;$(5147,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+20>>2]=0;J[a>>2]=2436880;b=J[a+12>>2];c=J[J[b>>2]+8>>2];J[699344]=0;d=b;b=a+17|0; +c=ga(c|0,d|0,b|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(c)c=K[b|0]<<8;else{H[b|0]=255;c=65280}J[a+24>>2]=c;c=J[a+12>>2];d=J[J[c>>2]+8>>2];J[699344]=0;c=ga(d|0,c|0,b|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(c)b=K[b|0];else{H[b|0]=255;b=255}I[a+18>>1]=6400;J[a+24>>2]=b|J[a+24>>2];J[699344]=0;$(5720,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[a+24>>2];J[a+28>>2]=b>>>0>=32767?32767:b;fc=e+16|0;return a|0}a=Z()|0;zc(e+12|0);ba(a|0);B()}b=Z()|0;vH(a);ba(b|0);B()}ea(0)| +0;Bc();B()}function MLa(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;c=fc-16|0;fc=c;a:{b:{if(!J[a+144>>2])break b;n=O[b+16>>3];o=O[b+24>>3];p=O[b>>3];q=O[b+8>>3];g=c+12|0;h=c+8|0;kc[J[J[a>>2]+60>>2]](a,p,q,g,h);d=J[c+12>>2];e=J[c+8>>2];kc[J[J[a>>2]+60>>2]](a,p,o,g,h);i=J[c+12>>2];f=J[c+8>>2];kc[J[J[a>>2]+60>>2]](a,n,q,g,h);l=J[c+12>>2];k=J[c+8>>2];kc[J[J[a>>2]+60>>2]](a,n,o,g,h);j=J[b+32>>2];if(!j)break b;g=J[c+8>>2];h=J[c+12>>2];m=J[a+116>>2];if((kc[J[J[j>>2]+ +12>>2]](j)|0)!=3)break b;b=J[J[b+32>>2]+4>>2];a=vc(8);J[699344]=0;b=aa(3350,a|0,b|0)|0;j=J[699344];J[699344]=0;if((j|0)==1)break a;j=J[m+216>>2];a=vc(40);J[a+32>>2]=b;b=(e|0)<(f|0)?f:e;e=(e|0)>(f|0)?f:e;f=(e|0)>(k|0);b=f?b:(b|0)<(k|0)?k:b;e=f?k:e;f=(e|0)>(g|0);O[a+24>>3]=(f?b:(b|0)<(g|0)?g:b)|0;b=(d|0)<(i|0)?i:d;d=(d|0)>(i|0)?i:d;i=(d|0)>(l|0);b=i?b:(b|0)<(l|0)?l:b;k=b;m=(b|0)<(h|0)?h:b;b=i?l:d;d=(b|0)>(h|0);O[a+16>>3]=(d?k:m)|0;O[a+8>>3]=(f?g:e)|0;O[a>>3]=(d?h:b)|0;sd(j,a)}fc=c+16|0;return}b=Z()| +0;uc(a);ba(b|0);B()}function AIa(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=fc-16|0;fc=d;a:{if(H[c+11|0]>=0){J[d+8>>2]=J[c+8>>2];f=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=f;break a}Ve(d,J[c>>2],J[c+4>>2])}e=K[b+15|0];f=e<<24>>24;g=(f|0)<0;b:{c:{d:{e:{c=J[b+8>>2];h=g?c:e;if(h){f=K[d+11|0];c=f<<24>>24<0;e=c?J[d+4>>2]:f;if((h|0)>(e|0))break e;f=c?J[d>>2]:d;i=f+(e<<2)|0;g=g?J[b+4>>2]:b+4|0;j=J[g>>2];c=f;while(1){e=(e-h|0)+1|0;if(!e)break e;c=og(c,j,e);if(!c)break e;if(qd(c,g,h)){c=c+4|0;e= +i-c>>2;if((h|0)<=(e|0))continue;break e}break}if((c|0)==(i|0)|(c|0)!=(f|0))break e;e=K[b+15|0];f=e;c=J[b+8>>2]}J[699344]=0;na(2963,a|0,d|0,(f<<24>>24<0?c:e)+1|0,-1,d+14|0)|0;break d}c=K[d+11|0];b=c<<24>>24<0;if(!(b?J[d+4>>2]:c)|J[(b?J[d>>2]:d)>>2]!=47)break c;J[699344]=0;na(2963,a|0,d|0,1,-1,d+15|0)|0}a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;if(H[d+11|0]<0)uc(J[d>>2]);ba(a|0);B()}b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+8>>2];J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0}if(H[d+11|0]< +0)uc(J[d>>2]);fc=d+16|0}function gba(a){var b=0,c=0,d=0,e=0,f=0;J[a>>2]=0;J[a+32>>2]=0;a:{b:{c:{c=J[a+24>>2];b=J[c+8>>2];d:{if(b&7)break d;d=J[c+64>>2];if(!((d|0)<0|(d|0)>J[c+60>>2])){J[c+8>>2]=b|4;break d}b=J[c+28>>2];J[c+28>>2]=b-1;if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=c;c=J[c+24>>2];J[b+24>>2]=c+1;d=K[c|0];H[a+28|0]=d;J[a>>2]=J[a>>2]+(d<<16);c=a+28|0;break b}d=td(c,1);if((d|0)!=-1)break c}H[a+28|0]=255;c=1;J[a+32>>2]=1;J[a>>2]=J[a>>2]+16711680;b=65280;break a}H[a+28|0]=d;J[a>>2]=J[a>>2]+(d<<16& +16711680);if(J[a+32>>2]){c=1;b=65280;break a}c=a+28|0}e:{f:{b=J[a+24>>2];e=J[b+8>>2];if(e&7)break f;f=J[b+64>>2];if(!((f|0)<0|J[b+60>>2]<(f|0))){J[b+8>>2]=e|4;break f}e=J[b+28>>2];J[b+28>>2]=e-1;g:{if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=b;b=J[b+24>>2];J[e+24>>2]=b+1;b=K[b|0];break g}b=td(b,1);d=K[c|0];if((b|0)==-1)break f}H[c|0]=b;if((d&255)!=255)break e;c=(b|0)>143;b=c?65280:b<<9;break a}b=255;H[a+28|0]=255;c=1;J[a+32>>2]=1;if((d&255)!=255)break e;b=65280;break a}c=1;b=b<<8}J[a+8>>2]=c;J[a+4>>2]= +32768;J[a>>2]=b+J[a>>2]<<7}function IX(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+20>>2];c=J[a+16>>2];if((b|0)!=(c|0))while(1){b=Rc(b-12|0);if((c|0)!=(b|0))continue;break}J[a+20>>2]=c;e=a+4|0;a:{if(!J[a+12>>2])break a;b=J[a+8>>2];c=J[b>>2];d=J[J[a+4>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+12>>2]=0;if((b|0)==(e|0))break a;while(1){c=J[b+4>>2];Jd(b+8|0);uc(b);b=c;if((e|0)!=(b|0))continue;break}}J[a+36>>2]=J[a+32>>2];b=J[a+60>>2];c=J[a+56>>2];b:{if((b|0)==(c|0)){c=b;break b}while(1){if((b|0)==(c|0))break b;d=b-8| +0;f=J[d>>2];if(!(!f|!K[d+4|0])){uc(pI(f));c=J[a+56>>2];b=J[a+60>>2]}b=b-8|0;J[a+60>>2]=b;if((b|0)!=(c|0))continue;break}}if(c){J[a+60>>2]=c;uc(c)}b=J[a+32>>2];if(b){J[a+36>>2]=b;uc(b)}c=J[a+16>>2];if(c){d=c;b=J[a+20>>2];if((c|0)!=(b|0)){while(1){b=Rc(b-12|0);if((c|0)!=(b|0))continue;break}d=J[a+16>>2]}J[a+20>>2]=c;uc(d)}c:{if(!J[a+12>>2])break c;b=J[a+8>>2];c=J[b>>2];d=J[J[a+4>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+12>>2]=0;if((b|0)==(e|0))break c;while(1){c=J[b+4>>2];Jd(b+8|0);uc(b);b=c;if((e|0)!=(b| +0))continue;break}}Jd(a)}function q_(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=a>>>24|0;a:{if(!(d-123>>>0>=4294967238&d-91>>>0>5)){H[b+3|0]=93;H[b+2|0]=K[(d&15)+61552|0];H[b+1|0]=K[(a>>>28|0)+61552|0];d=91;e=4;break a}e=1}H[b|0]=d;f=a>>>16|0;d=f&255;b:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=f;e=e+1|0;break b}d=b+e|0;H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(f&15)+61552|0];H[d+1|0]=K[(a>>>20&15)+61552|0];e=e+4|0}f=a>>>8|0;d=f&255;c:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=f;e=e+1|0;break c}d=b+e|0; +H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(f&15)+61552|0];H[d+1|0]=K[(a>>>12&15)+61552|0];e=e+4|0}d=a&255;d:{if(!(d-123>>>0<4294967238|d-91>>>0<6)){H[b+e|0]=a;e=e+1|0;break d}d=b+e|0;H[d|0]=91;H[d+3|0]=93;H[d+2|0]=K[(a&15)+61552|0];H[d+1|0]=K[(a>>>4&15)+61552|0];e=e+4|0}a=e+b|0;if(c){H[a|0]=58;H[a+1|0]=32;f=c+2|0;h=c+1|0;a=e+2|0;d=0;while(1){e:{e=K[c+d|0];if(!e)break e;H[a+b|0]=e;e=a+1|0;g=K[d+h|0];if(!g){a=e;break e}H[b+e|0]=g;e=a+2|0;g=K[d+f|0];if(!g){a=e;break e}H[b+e|0]=g;a=a+3|0;d=d+3|0;if((d|0)!=63)continue}break}a= +a+b|0}H[a|0]=0}function f_(a){var b=0,c=0,d=0,e=0;J[699344]=0;$(3653,a|0);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;d=J[a+204>>2];b=J[d+8>>2];if((b|0)>0)while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){uc(e);b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}uc(ld(d));d=J[a+208>>2];b=J[d+8>>2];if((b|0)>0){c=0;while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){b=J[e+8>>2];if(b)uc(Zc(b));uc(e);b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}}uc(ld(d));d=J[a+212>>2];b=J[d+8>>2];if((b|0)>0){c=0;while(1){e=J[J[d>>2]+(c<< +2)>>2];if(e){uc(e);b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}}uc(ld(d));d=J[a+216>>2];b=J[d+8>>2];if((b|0)>0){c=0;while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){b=J[e+32>>2];if(b)uc(Zc(b));uc(e);b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}}uc(ld(d));d=J[a+220>>2];if(d){b=J[d+8>>2];if((b|0)>0){c=0;while(1){e=J[J[d>>2]+(c<<2)>>2];if(e){uc(yr(e));b=J[d+8>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}}uc(ld(d))}c=J[a+100>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;return a}ea(0)| +0;Bc();B()}function BVa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=fc+-64|0;fc=f;J[f+32>>2]=13;J[f+16>>2]=13;J[f>>2]=13;J[e>>2]=0;J[e+4>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[f+48>>2]=13;a:{if(J[Ec(J[a+32>>2],786188,f+48|0,0)>>2]==6){a=J[f+56>>2];if(J[a+12>>2]>0){Sc(a,0,f+32|0,0);break a}J[f+32>>2]=5;break a}Pe(a+24|0,f+32|0)}yc(f+48|0);if(J[f+32>>2]==7){Ec(J[f+40>>2],804334,f+16|0,0);b:{if(J[f+16>>2]!=6)break b;a=J[f+24>>2];if(J[a+12>>2]!=4)break b; +Sc(a,0,f,0);a=J[f>>2];if(a-3>>>0>=4294967294)O[b>>3]=(a|0)==1?+J[f+8>>2]:O[f+8>>3];yc(f);Sc(J[f+24>>2],1,f,0);a=J[f>>2];if(a-3>>>0>=4294967294)O[c>>3]=(a|0)==1?+J[f+8>>2]:O[f+8>>3];yc(f);Sc(J[f+24>>2],2,f,0);a=J[f>>2];if(a-3>>>0>=4294967294)O[d>>3]=(a|0)==1?+J[f+8>>2]:O[f+8>>3];yc(f);Sc(J[f+24>>2],3,f,0);a=J[f>>2];if(a-3>>>0>=4294967294)O[e>>3]=(a|0)==1?+J[f+8>>2]:O[f+8>>3];yc(f)}yc(f+16|0)}yc(f+32|0);g=O[b>>3];h=O[d>>3];if(g>h){O[b>>3]=h;O[d>>3]=g}g=O[c>>3];h=O[e>>3];if(g>h){O[c>>3]=h;O[e>>3]=g}fc= +f- -64|0}function Xyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=4;e=e+1|0;b=240}H[c|0]=P((K[c|0]>>>4)+((b&h)>>>d)&15,17);d=d-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}break b}if((b| +0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=4;e=e+1|0;b=240}H[c|0]=P((b&h)>>>d|0,17);d=d-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}}if((g|0)<=0)break a;b=J[a+540>>2];d=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;b=0;c=0;g=0;e=0;while(1){if(!(c&255)){g=K[f|0];c=240;f=f+1|0;b=4}H[d|0]=(c&g&255)>>>b;b=b-4|0;c=(c&240)>>>4|0;d=J[a+584>>2]+d|0;e=e+1|0;if((e|0)>2])continue;break}}return 0} +function V9(a,b){var c=0,d=0,e=0;c=J[a+204>>2];a:{if(c){c=kc[c|0](a,b)|0;if(c)break a}c=b;while(1){d=c;c=c+1|0;if(K[d|0])continue;break}c=0;b:{c:{d:{e:switch((d-b|0)-4|0){case 0:a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);d=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);c=21;b=42;a=0;while(1){e=J[(c<<2)+218688>>2];f:{if((d|0)>(e|0)){a=c+1|0;break f}if((d|0)>=(e|0))break b;b=c-1|0}c=a+b>>1;if((a|0)<=(b|0))continue;break}return 0;case 4:d=K[b|0];if((d|0)==67)break c;if((d|0)!=100)break a;if(K[b+1|0]!= +114|K[b+2|0]!=97|(K[b+3|0]!=102|K[b+4|0]!=116))break d;if(K[b+5|0]!=32)break d;c=1;if((K[b+7|0]+P(K[b+6|0],10)|0)-628>>>0<4294967196)break d;break a;case 3:break e;default:break a}if(K[b|0]!=77|K[b+1|0]!=78|(K[b+2|0]!=71|K[b+3|0]!=45))break d;if(K[b+4|0]!=49|K[b+5|0]!=46)break d;c=1;if((K[b+6|0]&254)==48)break a}return 0}if(K[b+1|0]!=65|K[b+2|0]!=67|(K[b+3|0]!=72|K[b+4|0]!=69))break a;if(K[b+5|0]!=79|K[b+6|0]!=70|(J[a+696>>2]|K[b+7|0]!=70))break a;H[a+112|0]=0;H[a+114|0]=0}c=1}return c}function Rz(a, +b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=fc-16|0;fc=e;i=fc-48|0;fc=i;k=i+16|0;d=k;g=i+36|0;if(!((c|0)>0|(c|0)>=0|(d|0)==(g|0))){H[d|0]=45;d=d+1|0;f=b;b=0-b|0;c=0-(((f|0)!=0)+c|0)|0}h=g-d|0;a:{if((h|0)<=19){f=S(c);f=P(64-((f|0)==32?S(b|1)+32|0:f)|0,1233)>>12;l=(f<<3)+2640544|0;m=h;h=J[l+4>>2];j=61;if((m|0)<(((c|0)==(h|0)&b>>>0>=M[l>>2]|c>>>0>h>>>0)+f|0))break a}b:{if(!c){g=DF(d,b);break b}if((c|0)==2&b>>>0>=1410065408|c>>>0>2){f=xEb(b,c,1410065408,2);h=vEb(f,jc,1410065408,2);g=b-h|0;c=c- +(jc+(b>>>0>>0)|0)|0;b=g;d=DF(d,f)}c=xEb(b,c,1E8,0);g=jc;g=Zy(Cp(d,c),b-vEb(c,g,1E8,0)|0)}j=0}J[i+12>>2]=j;J[i+8>>2]=g;b=e+4|0;FF(b,k,J[i+8>>2]);fc=i+48|0;c=K[e+15|0];d=c<<24>>24<0;b=d?J[e+4>>2]:b;d=d?J[e+8>>2]:c;if((d|0)==-1)d=bf(b);c=J[J[a>>2]+8>>2];J[699344]=0;da(c|0,a|0,d|0);c=J[699344];J[699344]=0;if((c|0)!=1){c=b;b=d<<2;xc(J[a+12>>2],c,b);J[a+12>>2]=b+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+d;if(H[e+15|0]<0)uc(J[e+4>>2]);fc=e+16|0;return}a=Z()|0;if(H[e+15|0]<0)uc(J[e+4>>2]);ba(a|0);B()}function Rd(a){var b= +0,c=0,d=0;d=fc-32|0;fc=d;b=J[a+36>>2];c=J[b+16>>2];a:{b:{if(c-J[b+12>>2]>>>0<15000001&J[b+20>>2]-c>>>0<=15E6)break b;c=J[b>>2];if(K[a+362|0]&8|(!c|J[c+4>>2]==3293))break b;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=1;J[d+20>>2]=5628;J[d+16>>2]=5012;Hc(0,0,0,a,0,1,1,3,5628,0,0,0,32777,d+16|0);J[a+12>>2]=0}J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(!b)break a;c=J[b+40>>2];if(c){kc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39197;J[b+16>>2]=39197;break a}Nd(b);b=J[a+36>>2];c=J[b+16>> +2];if(!(c>>>0<=M[b+20>>2]&c>>>0>=M[b+12>>2])){J[a+212>>2]=1;J[a+172>>2]=-1;c=J[b+40>>2];c:{d:{if(!c){J[b+12>>2]=39197;J[b+16>>2]=39197;break d}kc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0;c=J[a+212>>2];J[b+12>>2]=39197;J[b+16>>2]=39197;if(!c)break c}if(J[a+172>>2]==-1)break a}J[a+84>>2]=1;J[d+4>>2]=15189;J[d>>2]=5012;Hc(0,0,0,a,0,1,1,3,15189,0,0,0,32777,d);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}if(K[c|0]|!c)break a;if((Nd(b)|0)>0)break a;He(a)}fc=d+32|0}function H5(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;l=c<<7;f=999999984/(l>>>0)|0;e=J[a+4>>2];if(l>>>0>=999999985){h=J[a>>2];J[h+20>>2]=72;kc[J[h>>2]](a)}f=(d|0)>(f|0)?f:d;J[e+80>>2]=f;j=Qx(a,b,d<<2);if(d){n=j+12|0;o=j+8|0;p=j+4|0;q=b>>>0<2;k=c<<7;h=0;while(1){e=J[a+4>>2];c=d-h|0;f=c>>>0>f>>>0?f:c;g=P(l,f);if(g>>>0>=999999985){c=J[a>>2];J[c+20>>2]=56;J[c+24>>2]=3;kc[J[J[a>>2]>>2]](a)}if(!q){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=15;kc[J[J[a>>2]>>2]](a)}i=g|16;c=Dc(i);if(!c){m= +J[a>>2];J[m+20>>2]=56;J[m+24>>2]=4;kc[J[J[a>>2]>>2]](a)}J[e+76>>2]=i+J[e+76>>2];e=e+(b<<2)|0;i=J[e+60>>2];J[c+8>>2]=0;J[c+4>>2]=g;J[c>>2]=i;J[e+60>>2]=c;a:{if(!f)break a;c=c+16|0;g=0;e=f;i=f&3;if(i)while(1){J[(h<<2)+j>>2]=c;e=e-1|0;h=h+1|0;c=c+k|0;g=g+1|0;if((i|0)!=(g|0))continue;break}if(f>>>0<4)break a;while(1){g=h<<2;J[g+j>>2]=c;c=c+k|0;J[g+p>>2]=c;c=c+k|0;J[g+o>>2]=c;c=c+k|0;J[g+n>>2]=c;c=c+k|0;h=h+4|0;e=e-4|0;if(e)continue;break}}if(d>>>0>h>>>0)continue;break}}return j|0}function q0(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;h=J[a+4>>2];b=h<<1|1;J[a+4>>2]=b;k=J[a+12>>2];n=a,o=Gd(b,4),J[n+12>>2]=o;f=J[a+4>>2];a:{if((f|0)<=0)break a;b=0;if(f>>>0>=4){g=f&-4;while(1){d=b<<2;J[d+J[a+12>>2]>>2]=0;J[J[a+12>>2]+(d|4)>>2]=0;J[J[a+12>>2]+(d|8)>>2]=0;J[J[a+12>>2]+(d|12)>>2]=0;b=b+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}e=f&3;if(!e)break a;while(1){J[J[a+12>>2]+(b<<2)>>2]=0;b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}}if((h|0)>0)while(1){g=(i<<2)+k|0;while(1){d=J[g>>2]; +if(d){J[g>>2]=J[d+8>>2];b=J[d>>2];c=J[b>>2];b:{if((c|0)<=0){c=0;break b}l=c&3;b=J[b+4>>2];e=0;c:{if(c>>>0<4){c=0;break c}m=c&-4;c=0;j=0;while(1){c=K[b+3|0]+P(K[b+2|0]+P(K[b+1|0]+P(K[b|0]+P(c,17)|0,17)|0,17)|0,17)|0;b=b+4|0;j=j+4|0;if((m|0)!=(j|0))continue;break}}if(!l)break b;while(1){c=K[b|0]+P(c,17)|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0))continue;break}}b=J[a+12>>2]+((c>>>0)%(f>>>0)<<2)|0;J[d+8>>2]=J[b>>2];J[b>>2]=d;continue}break}i=i+1|0;if((h|0)!=(i|0))continue;break}Mc(k)}function Y$(a,b,c){var d= +0,e=0,f=0;d=fc-128|0;fc=d;J[d+112>>2]=13;J[d+96>>2]=13;J[d+80>>2]=13;J[d+64>>2]=13;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;e=J[b+8>>2];a:{if((e|0)<0|(e|0)>J[J[a+4>>2]+16>>2])break a;b:{if(J[b>>2]==9){e=c+e|0;if(K[e|0])break a;H[e|0]=1;wl(J[a+4>>2],J[b+8>>2],J[b+12>>2],d+112|0,0);break b}Pe(b,d+112|0)}if(J[d+112>>2]==7){b=0;c:{if(J[Ec(J[d+120>>2],798515,d+96|0,0)>>2]==6){e=J[d+104>>2];if(J[e+12>>2]<=0)break c;while(1){f=e;e=d+80|0;Y$(a,tg(f,b,e),c);yc(e);b=b+1|0;e=J[d+104>>2];if((b|0)< +J[e+12>>2])continue;break}break c}d:{if(J[Ec(J[d+120>>2],808703,d- -64|0,0)>>2]!=6)break d;c=J[d+72>>2];if(J[c+12>>2]<=0)break d;while(1){if(J[Sc(c,b,d+48|0,0)>>2]==7){c=Ec(J[d+56>>2],794025,d+32|0,0);e:{if(J[c>>2]!=4)break e;if(Ic(J[c+8>>2],809053))break e;c=d+16|0;if(Ec(J[d+56>>2],809588,c,0)){S$(a,c,Ec(J[d+56>>2],809760,d,0));yc(d)}yc(d+16|0)}yc(d+32|0)}yc(d+48|0);b=b+1|0;c=J[d+72>>2];if((b|0)>2])continue;break}}yc(d- -64|0)}yc(d+96|0)}yc(d+112|0)}fc=d+128|0}function O2a(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,u=0,v=0,w=0,x=0,y=0;if(J[J[b+4>>2]+44>>2]){J[c>>2]=-127;return}i=J[b+12>>2];d=J[b+8>>2];f=i-d|0;e=J[a+16>>2];g=J[a+20>>2]-e|0;f=(f|0)<(g|0)?f:g;if((f|0)>=16){j=f>>>4|0;g=j;a:{while(1){h=K[d|0];H[e|0]=h;k=K[d+1|0];H[e+1|0]=k;l=K[d+2|0];H[e+2|0]=l;m=K[d+3|0];H[e+3|0]=m;n=K[d+4|0];H[e+4|0]=n;o=K[d+5|0];H[e+5|0]=o;p=K[d+6|0];H[e+6|0]=p;q=K[d+7|0];H[e+7|0]=q;r=K[d+8|0];H[e+8|0]=r;s=K[d+9|0];H[e+9|0]=s;t=K[d+10|0];H[e+10| +0]=t;u=K[d+11|0];H[e+11|0]=u;v=K[d+12|0];H[e+12|0]=v;w=K[d+13|0];H[e+13|0]=w;x=K[d+14|0];H[e+14|0]=x;y=K[d+15|0];H[e+15|0]=y;if((h|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y)<<24>>24<0)break a;d=d+16|0;e=e+16|0;h=(g|0)>1;g=g-1|0;if(h)continue;break}g=0}f=(g-j<<4)+f|0}b:{c:{if((f|0)>0)while(1){g=H[d|0];if((g|0)<0){f=-127;break c}H[e|0]=g;e=e+1|0;d=d+1|0;g=(f|0)>1;f=f-1|0;if(g)continue;break}if(d>>>0>=i>>>0)break b;f=15;if(M[a+20>>2]>e>>>0)break b}J[c>>2]=f}J[b+8>>2]=d;J[a+16>>2]=e}function Mya(a,b,c,d){a=a|0;b= +b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if((c|0)<=0)break a;f=c&3;b:{if(!f){d=c;break b}d=c;while(1){e=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=e;e=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=e;e=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=e;b=b+24|0;a=a+24|0;d=d-1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}if(c>>>0<4)break a;while(1){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;c=J[b+44>>2];J[a+40>>2]=J[b+40>>2];J[a+44>> +2]=c;c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;f=b- -64|0;e=J[f+4>>2];c=a- -64|0;J[c>>2]=J[f>>2];J[c+4>>2]=e;c=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=c;c=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=c;c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;c=J[b+84>>2];J[a+80>>2]=J[b+80>>2];J[a+84>>2]=c;c=J[b+92>>2];J[a+88>>2]=J[b+88>>2];J[a+92>>2]=c;b=b+96|0;a=a+96|0;c=d-5|0;d=d-4|0;if(c>>>0<4294967294)continue;break}}}function jcb(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;a:{if((d|0)<=0)break a;g=J[a+112>>2];if(!g)break a;h=J[a+120>>2];if((h|0)<=0){if(d-1>>>0>=3){i=d&-4;b=0;while(1){a=e<<2;Ac(J[a+c>>2],0,g);Ac(J[(a|4)+c>>2],0,g);Ac(J[(a|8)+c>>2],0,g);Ac(J[(a|12)+c>>2],0,g);e=e+4|0;b=b+4|0;if((i|0)!=(b|0))continue;break}}b=d&3;if(!b)break a;a=0;while(1){Ac(J[(e<<2)+c>>2],0,g);e=e+1|0;a=a+1|0;if((b|0)!=(a|0))continue;break}break a}j=J[J[a+480>>2]+24>>2];q=h&-4;p=h&3;r=h>>>0<4;while(1){a= +k<<2;l=J[a+c>>2];i=J[a+b>>2];m=g;while(1){n=0;f=0;a=0;e=i;o=0;if(!r)while(1){s=f;f=a<<2;f=(((s+K[J[f+j>>2]+K[e|0]|0]|0)+K[J[(f|4)+j>>2]+K[e+1|0]|0]|0)+K[J[(f|8)+j>>2]+K[e+2|0]|0]|0)+K[J[(f|12)+j>>2]+K[e+3|0]|0]|0;a=a+4|0;e=e+4|0;o=o+4|0;if((q|0)!=(o|0))continue;break}if(p)while(1){f=K[J[(a<<2)+j>>2]+K[e|0]|0]+f|0;a=a+1|0;e=e+1|0;n=n+1|0;if((n|0)!=(p|0))continue;break}H[l|0]=f;l=l+1|0;i=i+h|0;m=m-1|0;if(m)continue;break}k=k+1|0;if((k|0)!=(d|0))continue;break}}}function RT(a){a=a|0;var b=0,c=0;c=1; +a:{b:{if((a|0)<=9672){c:switch(a-8226|0){case 0:case 1:case 33:case 42:case 43:break a;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:break b;default:break c}if((a|0)!=8729)break b;break a}if((a|0)<=9752){b=a-9673|0;if(b>>>0>29|!(1<>>0<2)break a}c=0}b=1;e:{f:{if((a|0)<=10002){if(a-9670>>>0<3)break e;g:switch(a-167|0){case 0:case 16:break e;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:break f;default:break g}if((a|0)!=8211)break f;break e}if((a|0)==10070|a-10003>>>0<2|(a|0)==61558)break e}b=0}return b|c}function Lub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f= +0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;Jc(a,1029,0,0);return 1029}b:{if(c>>>0>1){i=d;while(1){f=i;i=f+1|0;if(K[f|0])continue;break}g=f-d|0;if((g|0)>(c|0)){Jc(a,1043,0,0);return 1043}if((d|0)==(f|0)){Jc(a,1044,0,0);return 1044}f=c-g|0;c=f-1|0;c:{if(!J[a+192>>2])break c;k=g+1|0;h=kc[J[a+152>>2]](k)|0;if(!h)break b;h=xc(h,d,g);j=kc[J[a+152>>2]](f)|0;if(!j){kc[J[a+156>>2]](h,k);break b}if(c)xc(j,i,c);l=kc[J[a+192>>2]](a,0,h,j,0,0)|0; +kc[J[a+156>>2]](j,f);kc[J[a+156>>2]](h,k);if(l)break c;Jc(a,904,0,0);return 904}d:{e:{if(!K[a+112|0])break e;b=kc[J[b+4>>2]](a,b,e)|0;if(b)break d;b=J[e>>2];J[b+40>>2]=c;J[b+32>>2]=g;b=kc[J[a+152>>2]](g+1|0)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(!b)break b;xc(b,d,g);if(!c)break e;b=kc[J[a+152>>2]](f)|0;J[J[e>>2]+44>>2]=b;b=J[J[e>>2]+44>>2];if(!b)break b;xc(b,i,c)}b=0}return b|0}Jc(a,1028,0,0);return 1028}Jc(a,1,0,0);return 1}function qV(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;if(!b){b=J[a+56>>2]-32768>>>0<4294934529;H[a+120|0]=b?1:8;c=J[a+60>>2]-32768>>>0<4294934529;H[a+121|0]=c?1:8;d=J[a- -64>>2]-32768>>>0<4294934529;H[a+122|0]=d?1:8;e=J[a+68>>2]-32768>>>0<4294934529;H[a+123|0]=e?1:8;f=J[a+72>>2]-32768>>>0<4294934529;H[a+124|0]=f?1:8;g=J[a+76>>2]-32768>>>0<4294934529;H[a+125|0]=g?1:8;h=J[a+80>>2]-32768>>>0<4294934529;H[a+126|0]=h?1:8;i=J[a+84>>2]-32768>>>0<4294934529;H[a+127|0]=i?1:8;j=J[a+88>>2]-32768>>>0<4294934529;H[a+128|0]=j?1:8;k=J[a+92>>2]-32768>>> +0<4294934529;H[a+129|0]=k?1:8;l=J[a+96>>2]-32768>>>0<4294934529;H[a+130|0]=l?1:8;m=J[a+100>>2]-32768>>>0<4294934529;H[a+131|0]=m?1:8;n=J[a+104>>2]-32768>>>0<4294934529;H[a+132|0]=n?1:8;o=J[a+108>>2]-32768>>>0<4294934529;H[a+133|0]=o?1:8;p=J[a+112>>2]-32768>>>0<4294934529;H[a+134|0]=p?1:8;q=a;a=J[a+116>>2]-32768>>>0<4294934529;H[q+135|0]=a?1:8;return b&(a&p&o&n&m&l&k&j&i&h&g&f&e&d&c)}return J[((b<<2)+a|0)+16>>2]-32768>>>0<4294934529}function kCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(!J[a+ +92>>2]){c=Dc(12);if(!c){J[a+92>>2]=0;return-1}J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[a+92>>2]=c}d=-1;g=Dc(12);a:{if(!g)break a;h=K[b+12|0];J[g>>2]=h;J[g+8>>2]=J[b+20>>2];J[b+20>>2]=0;J[g+4>>2]=J[b+16>>2];e=J[a+92>>2];c=J[e>>2];b:{if((c|0)<=0)break b;a=(c|0)>=2147483646?2147483646:c;b=J[e+8>>2];while(1){if(h>>>0>2]>>2])break b;f=f+1|0;if((a|0)!=(f|0))continue;break}f=a}a=J[e+4>>2];if((a|0)<=(c|0)){b=a+128|0;a=b<<2;c=J[e+8>>2];c:{if(c){a=Yh(c,a);break c}a=Dc(a)}if(!a)break a;J[e+4>>2]=b; +J[e+8>>2]=a;c=J[e>>2]}a=c;if((f|0)<(a|0)){d=a-f&3;if(d){b=0;while(1){h=J[e+8>>2]+(a<<2)|0;J[h>>2]=J[h-4>>2];a=a-1|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}if((f^-1)+c>>>0>=3)while(1){b=a<<2;d=b+J[e+8>>2]|0;J[d>>2]=J[d-4>>2];d=b+J[e+8>>2]|0;J[d-4>>2]=J[d-8>>2];d=b+J[e+8>>2]|0;J[d-8>>2]=J[d-12>>2];b=b+J[e+8>>2]|0;J[b-12>>2]=J[b-16>>2];a=a-4|0;if((f|0)<(a|0))continue;break}a=f}J[J[e+8>>2]+(a<<2)>>2]=g;J[e>>2]=c+1;d=0}return d|0}function ssa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-32|0;fc= +e;d=J[a+8>>2];while(1){f=c;c=c+1|0;if(L[(d+P(f,6)|0)+2>>1])continue;break}a:{b:{if(b-17>>>0<=4294967280){b=Qc(e+8|0,2434848,2394880,507,2434869,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}if(f>>>0>=256){b=Qc(e+8|0,2434848,2394880,509,2434869,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}J[a+12>>2]=32-b;c=a+20|0;xe(c,1<>24);if(f)while(1){c=J[a+8>>2]+P(g,6)|0;d=I[c+2>>1];if(!((d|0)>0&(b|0)>=(d|0))){b=Qc(e+8|0,2434848, +2394880,521,2434869,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}h=L[c>>1];c=h+(1<>2]|0;if(K[d|0]!=(f|0)){b=Qc(e+8|0,2386408,2394880,527,2434869,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}H[d|0]=g;if((c|0)>(h|0))continue;break}g=g+1|0;if((g|0)!=(f|0))continue;break}fc=e+32|0;return}B()}a=Z()|0;Kc(b);ba(a|0);B()}function C5(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;h=999999984/(c>>>0)|0;f=J[a+4>>2];if(c>>>0>=999999985){i=J[a>>2];J[i+20>>2]=72;kc[J[i>>2]](a)}h=(d|0)>(h|0)?h:d;J[f+80>>2]=h;k=Qx(a,b,d<<2);if(d){m=k+12|0;n=k+8|0;o=k+4|0;p=b>>>0<2;i=0;while(1){e=J[a+4>>2];f=d-i|0;h=f>>>0>h>>>0?h:f;f=P(h,c);if(f>>>0>=999999985){g=J[a>>2];J[g+20>>2]=56;J[g+24>>2]=3;kc[J[J[a>>2]>>2]](a)}if(!p){g=J[a>>2];J[g+24>>2]=b;J[g+20>>2]=15;kc[J[J[a>>2]>>2]](a)}g=f+7&-8;j=g+16|0;f=Dc(j);if(!f){l=J[a>>2];J[l+20>>2]=56;J[l+24>>2]=4;kc[J[J[a>>2]>>2]](a)}J[e+76>>2]= +j+J[e+76>>2];e=e+(b<<2)|0;j=J[e+60>>2];J[f+8>>2]=0;J[f+4>>2]=g;J[f>>2]=j;J[e+60>>2]=f;a:{if(!h)break a;e=f+16|0;g=0;f=h;j=f&3;if(j)while(1){J[(i<<2)+k>>2]=e;f=f-1|0;e=c+e|0;i=i+1|0;g=g+1|0;if((j|0)!=(g|0))continue;break}if(h>>>0<4)break a;while(1){g=i<<2;J[g+k>>2]=e;e=c+e|0;J[g+o>>2]=e;e=c+e|0;J[g+n>>2]=e;e=c+e|0;J[g+m>>2]=e;i=i+4|0;e=c+e|0;f=f-4|0;if(f)continue;break}}if(d>>>0>i>>>0)continue;break}}return k|0}function e$a(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;g=fc-48|0;fc=g;a:{b:{c:{if(!(!b| +!K[b|0])){e=b;while(1){d=d+1|0;f=K[e+1|0];e=e+1|0;if(f)continue;break}if(!a)break a;h=1;if(K[(b+d|0)-1|0]==58)break a;e=J[a+36>>2];h=J[e+4>>2];d:{if(h){d=J[e+28>>2];f=J[693366];a=J[663297];break d}h=1;f=J[a+40>>2];if((f|0)<=1){d=J[e+28>>2];f=J[693366];a=J[663297];break c}e=J[(J[a+48>>2]+(f<<2)|0)-8>>2];if(!e)break a;d=J[e+28>>2];f=J[693366];a=J[663297];h=J[e+4>>2];if(!h)break c}J[g+36>>2]=d;J[g+32>>2]=h;kc[a|0](f,29777,g+32|0);break b}h=(a|0)!=0;break a}J[g+16>>2]=d;kc[a|0](f,29785,g+16|0)}h=1;i= +e}kc[J[663297]](J[693366],29758,0);e=150;f=0;d=kc[J[663195]](150)|0;e:{if(!d)break e;a=-1;while(1){f=d;if((e|0)>63999)break e;J[g+44>>2]=c;d=tm(d,e,b,c);if(!((d|0)<0|(d|0)>=(e|0))){j=(a|0)==(d|0);a=d;if(j)break e}e=((d|0)<0?100:d+1|0)+e|0;d=kc[J[663200]](f,e)|0;if(d)continue;break}}J[g>>2]=f;kc[J[663297]](J[693366],4607,g);if(f)kc[J[663199]](f);if(h)pq(i,J[663297],J[693366]);fc=g+48|0}function VL(a,b,c,d,e,f,g,h,i){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0, +r=0;J[a+36>>2]=0;p=.5/O[a>>3];O[a+8>>3]=p*p;k=J[a+40>>2];n=J[a+36>>2];l=n>>>6|0;if(k>>>0<=l>>>0){j=J[a+44>>2];a:{if(j>>>0>l>>>0){j=J[a+48>>2];break a}m=j+J[a+52>>2]|0;j=vc(m>>>0>1073741823?-1:m<<2);o=J[a+48>>2];if(o){xc(j,o,k<<2);uc(o);m=J[a+44>>2]+J[a+52>>2]|0;n=J[a+36>>2];k=J[a+40>>2]}J[a+44>>2]=m;J[a+48>>2]=j}q=(l<<2)+j|0,r=vc(1024),J[q>>2]=r;J[a+40>>2]=k+1}j=J[J[a+48>>2]+(l<<2)>>2]+((n&63)<<4)|0;O[j+8>>3]=c;O[j>>3]=b;J[a+36>>2]=J[a+36>>2]+1;E3(a,b,c,d,e,f,g,h,i,0);k=J[a+40>>2];n=J[a+36>>2];l= +n>>>6|0;if(k>>>0<=l>>>0){j=J[a+44>>2];b:{if(j>>>0>l>>>0){j=J[a+48>>2];break b}m=j+J[a+52>>2]|0;j=vc(m>>>0>1073741823?-1:m<<2);o=J[a+48>>2];if(o){xc(j,o,k<<2);uc(o);m=J[a+44>>2]+J[a+52>>2]|0;n=J[a+36>>2];k=J[a+40>>2]}J[a+44>>2]=m;J[a+48>>2]=j}q=(l<<2)+j|0,r=vc(1024),J[q>>2]=r;J[a+40>>2]=k+1}j=J[J[a+48>>2]+(l<<2)>>2]+((n&63)<<4)|0;O[j+8>>3]=i;O[j>>3]=h;J[a+36>>2]=J[a+36>>2]+1;J[a+32>>2]=0}function xt(a,b,c,d){var e=0;a:{if((a|0)==(c|0)){e=1;if((b|0)==(d|0))break a}e=2;if(((a+1|0)/2|0)==(c|0))if(((b+ +1|0)/2|0)==(d|0))break a;e=3;if(((a+2|0)/3|0)==(c|0))if(((b+2|0)/3|0)==(d|0))break a;e=4;if(((a+3|0)/4|0)==(c|0))if(((b+3|0)/4|0)==(d|0))break a;e=5;if(((a+4|0)/5|0)==(c|0))if(((b+4|0)/5|0)==(d|0))break a;e=6;if(((a+5|0)/6|0)==(c|0))if(((b+5|0)/6|0)==(d|0))break a;e=7;if(((a+6|0)/7|0)==(c|0))if(((b+6|0)/7|0)==(d|0))break a;e=8;if(((a+7|0)/8|0)==(c|0))if(((b+7|0)/8|0)==(d|0))break a;e=9;if(((a+8|0)/9|0)==(c|0))if(((b+8|0)/9|0)==(d|0))break a;e=10;if(((a+9|0)/10|0)==(c|0))if(((b+9|0)/10|0)==(d|0))break a; +e=11;if(((a+10|0)/11|0)==(c|0))if(((b+10|0)/11|0)==(d|0))break a;e=12;if(((a+11|0)/12|0)==(c|0))if(((b+11|0)/12|0)==(d|0))break a;e=13;if(((a+12|0)/13|0)==(c|0))if(((b+12|0)/13|0)==(d|0))break a;e=14;if(((a+13|0)/14|0)==(c|0))if(((b+13|0)/14|0)==(d|0))break a;e=15;if(((a+14|0)/15|0)==(c|0))if(((b+14|0)/15|0)==(d|0))break a;e=16}return e}function vm(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;h=a;e=fc-208|0;fc=e;J[e+8>>2]=1;J[e+12>>2]=0;i=P(b,c);a:{if(!i)break a;J[e+16>>2]=c;J[e+20>> +2]=c;j=0-c|0;a=c;f=a;g=2;while(1){b=a;a=(c+f|0)+a|0;J[(e+16|0)+(g<<2)>>2]=a;g=g+1|0;f=b;if(a>>>0>>0)continue;break}b=(h+i|0)+j|0;b:{if(b>>>0<=h>>>0){a=1;break b}g=1;a=1;while(1){c:{if((g&3)==3){CG(h,c,d,a,e+16|0);Iz(e+8|0,2);a=a+2|0;break c}g=e+16|0;f=a-1|0;d:{if(M[g+(f<<2)>>2]>=b-h>>>0){Hz(h,c,d,e+8|0,a,0,g);break d}CG(h,c,d,a,e+16|0)}if((a|0)==1){Gz(e+8|0,1);a=0;break c}Gz(e+8|0,f);a=1}g=J[e+8>>2]|1;J[e+8>>2]=g;h=c+h|0;if(b>>>0>h>>>0)continue;break}}Hz(h,c,d,e+8|0,a,0,e+16|0);if(!((a|0)!=1|J[e+ +8>>2]!=1|J[e+12>>2]))break a;while(1){e:{if((a|0)<=1){f=e+8|0;b=$S(f);Iz(f,b);a=a+b|0;break e}f=e+8|0;Gz(f,2);J[e+8>>2]=J[e+8>>2]^7;Iz(f,1);i=h+j|0;g=e+16|0;b=a-2|0;Hz(i-J[g+(b<<2)>>2]|0,c,d,f,a-1|0,1,g);Gz(f,1);J[e+8>>2]=J[e+8>>2]|1;Hz(i,c,d,f,b,1,g);a=b}h=h+j|0;if(J[e+12>>2]|((a|0)!=1|J[e+8>>2]!=1))continue;break}}fc=e+208|0}function nL(a,b,c){var d=0,e=0,f=0;e=J[a+20>>2];if((e|0)!=100){d=J[a>>2];J[d+24>>2]=e;J[d+20>>2]=21;kc[J[J[a>>2]>>2]](a)}e=J[a+88>>2];if(!e){e=kc[J[J[a+4>>2]>>2]](a,0,132)| +0;J[e+128>>2]=0;J[a+88>>2]=e}d=0;a:{if(!c)while(1){f=(P(J[(d<<2)+56448>>2],b)+50|0)/100|0;f=(f|0)<=1?1:f;I[(d<<1)+e>>1]=f>>>0>=32767?32767:f;d=d+1|0;if((d|0)!=64)continue;break a}while(1){f=(P(J[(d<<2)+56448>>2],b)+50|0)/100|0;f=(f|0)<=1?1:f;I[(d<<1)+e>>1]=f>>>0>255?255:f>>>0>=32767?32767:f;d=d+1|0;if((d|0)!=64)continue;break}}J[e+128>>2]=0;e=J[a+20>>2];if((e|0)!=100){d=J[a>>2];J[d+24>>2]=e;J[d+20>>2]=21;kc[J[J[a>>2]>>2]](a)}e=J[a+92>>2];if(!e){e=kc[J[J[a+4>>2]>>2]](a,0,132)|0;J[e+128>>2]=0;J[a+92>> +2]=e}d=0;b:{if(!c)while(1){a=(P(J[(d<<2)+56704>>2],b)+50|0)/100|0;a=(a|0)<=1?1:a;I[(d<<1)+e>>1]=a>>>0>=32767?32767:a;d=d+1|0;if((d|0)!=64)continue;break b}while(1){a=(P(J[(d<<2)+56704>>2],b)+50|0)/100|0;a=(a|0)<=1?1:a;I[(d<<1)+e>>1]=a>>>0>255?255:a>>>0>=32767?32767:a;d=d+1|0;if((d|0)!=64)continue;break}}J[e+128>>2]=0}function Zjb(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;f=fc-16|0;fc=f;e=kc[J[a+516>>2]](a,1801810542,b,f+12|0)|0;a:{if(e)break a;e=142;c=J[f+12>>2];if(c>>> +0<4)break a;e=Oi(b,c,a+808|0);if(e)break a;b=J[f+12>>2];J[a+812>>2]=b;e=0;d=J[a+808>>2];c=K[d+2|0]<<8|K[d+3|0];b:{if(!c)break b;j=b+d|0;k=c>>>0>=32?32:c;h=d+4|0;while(1){b=h;if(b+6>>>0>j>>>0)break b;c=K[b+3|0]|K[b+2|0]<<8;if(c>>>0<15)break b;c=b+c|0;h=c>>>0>j>>>0?j:c;c:{if(K[b+4|0]|(K[b+5|0]&3)!=1)break c;c=b+14|0;if(c>>>0>h>>>0)break c;l=1<>>8&65280|c>>>24);b=b+20|0;while(1){i=i-1|0;if(i){c=d;d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);b=b+6|0;if(c>>>0>>0)continue;break c}break}n=n|l}g=g+1|0;if((k|0)!=(g|0))continue;break}g=k}J[a+824>>2]=n;J[a+820>>2]=m;J[a+816>>2]=g}fc=f+16|0;return e|0}function Qkb(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;g=J[b>>2];a:{b:{if(!(!K[a+24|0]|(g|0)!=J[a+28>>2])){E6(a);if(!K[a+24|0])return 0;d=a+28|0;c=J[a+32>>2];break b}c=J[a+16>> +2];d=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);h=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!h|(g|0)==-1)break a;l=c+16|0;i=g+1|0;c=h;c:{d:{while(1){d=c+j>>>1|0;e=P(d,12)+l|0;f=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);k=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);if((f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24))>>>0<=i>>>0){if(g>>>0>>0)break d;j=d+1|0}else c=d;if(c>>>0>j>>>0)continue;break}c=0;break c}c=e;c=K[c+8|0]|K[c+9|0]<<8|(K[c+10| +0]<<16|K[c+11|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}f=J[a>>2];if(g>>>0>=k>>>0){e=0;d=d+1|0;if((h|0)==(d|0))break a}J[a+36>>2]=d;J[a+28>>2]=i;H[a+24|0]=1;d=a+28|0;if(!(c>>>0>2]?c:0)){E6(a);c=0;if(!K[a+24|0])break b;c=J[a+32>>2];break b}J[a+32>>2]=c}e=c;J[b>>2]=J[d>>2]}return e|0}function h4(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=352300;a:{b=J[a+168>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+168>>2]=0}b=J[a+304>>2];e=a+ +308|0;if((b|0)!=(e|0))while(1){J[b+120>>2]=1;c=J[b+4>>2];b:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break b}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(e|0))continue;break}f=a+316|0;b=J[f>>2];d=a+320|0;if((b|0)!=(d|0))while(1){J[b+120>>2]=1;c=J[b+4>>2];c:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break c}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}c=a+304|0;ki(c,J[a+308>>2]);J[a+304>>2]=e;J[a+308>>2]=0;J[a+312>>2]=0;ki(f,J[a+ +320>>2]);J[a+316>>2]=d;J[a+320>>2]=0;J[a+324>>2]=0;b=J[a+188>>2];if(b){J[699344]=0;_(2913,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[d>>2]}else b=0;ki(f,b);ki(c,J[a+308>>2]);if(H[a+303|0]<0)uc(J[a+292>>2]);if(H[a+183|0]<0)uc(J[a+172>>2]);return a|0}ea(0)|0;Bc();B()}function fy(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+4>>2]+96>>2];f=J[b+8>>2];c=J[J[b+12>>2]+68>>2];if(c)kc[c|0](a);c=J[a+156>>2];a:{if(!c){e=a+88|0;break a}e=J[c+4>>2];b:{if(e&1){d=J[a+88>>2];if(d){c=J[J[a+4>>2]+100>>2];kc[J[c+ +8>>2]](c,d);c=J[a+156>>2];e=J[c+4>>2]}J[a+88>>2]=0;J[c+4>>2]=e&-2;break b}J[a+88>>2]=0}e=a+156|0;if(!(K[J[b>>2]+1|0]&2)){b=J[c>>2];if(b){c=J[b>>2];d=J[b+24>>2];if(d)kc[J[c+8>>2]](c,d);J[b+24>>2]=0;d=J[b+28>>2];if(d)kc[J[c+8>>2]](c,d);J[b+28>>2]=0;d=J[b+32>>2];if(d)kc[J[c+8>>2]](c,d);J[b+32>>2]=0;d=J[b+40>>2];if(d)kc[J[c+8>>2]](c,d);J[b+40>>2]=0;d=J[b+52>>2];if(d)kc[J[c+8>>2]](c,d);J[b+20>>2]=0;J[b+36>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+88>>2]=0;d= +J[b+24>>2];J[b+56>>2]=J[b+20>>2];J[b+60>>2]=d;g=J[b+32>>2];d=b- -64|0;J[d>>2]=J[b+28>>2];J[d+4>>2]=g;d=J[b+40>>2];J[b+72>>2]=J[b+36>>2];J[b+76>>2]=d;d=J[b+48>>2];J[b+80>>2]=J[b+44>>2];J[b+84>>2]=d;kc[J[c+8>>2]](c,b);c=J[a+156>>2]}J[c>>2]=0}kc[J[f+8>>2]](f,c)}J[e>>2]=0}function Z1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(J[d>>2]<=0){a:{b:{c:{d:{e=J[a+8>>2];switch(H[e+99|0]-99|0){case 8:break b;case 0:case 23:break c;case 7:break d;default:break a}}kc[J[b+4>>2]](J[b>>2],165);kc[J[b+4>>2]](J[b>> +2],8254);kc[J[b+8>>2]](J[b>>2],0,M[e+64>>2]<2?127:255);a=J[e+64>>2];if(!((a|0)==3|(c|0)==1)&(a|0)!=4)break a;kc[J[b+8>>2]](J[b>>2],65377,65439);break a}kc[J[b+8>>2]](J[b>>2],0,127);break a}a=J[e+40>>2];kc[J[J[J[a+24>>2]+20>>2]+60>>2]](a,b,c,d)}a=J[e>>2];if(a)Xk(a,b,c,0,d);a=J[e+4>>2];if(a)Xk(a,b,c,0,d);a=J[e+8>>2];if(a)Xk(a,b,c,0,d);a=J[e+12>>2];if(a){f=a;a=K[e+99|0];if(J[e+64>>2]|(a|0)!=122&(a|0)!=99)a=0;else a=2;Xk(f,b,c,a,d)}a=J[e+16>>2];if(a)Xk(a,b,c,K[e+99|0]==106?3:0,d);a=J[e+20>>2];if(a)Xk(a, +b,c,0,d);a=J[e+24>>2];if(a)Xk(a,b,c,0,d);a=J[e+28>>2];if(a)Xk(a,b,c,4,d);a=J[e+32>>2];if(a)Xk(a,b,c,0,d);a=J[e+36>>2];if(a)Xk(a,b,c,0,d);kc[J[b+16>>2]](J[b>>2],14);kc[J[b+16>>2]](J[b>>2],15);kc[J[b+16>>2]](J[b>>2],27);kc[J[b+20>>2]](J[b>>2],128,159)}}function mSa(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;l=+J[b>>2]*1.52587890625E-5;e=+J[b+4>>2]*1.52587890625E-5;g=l*e;h=+J[b+8>>2]*1.52587890625E-5;i=+J[b+12>>2]*1.52587890625E-5;j=1- +i;n=g*h*j;f=g;g=1-h;f=f*g;o=f*j;v=i*f*.0078;f=1-e;k=l*f;p=h*k;q=p*j;k=k*g;r=i*k;k=k*j;m=1-l;e=m*e;s=e*h;l=s*j;t=e*g;u=t*j;f=m*f;e=f*g;g=i*e;e=e*j;m=(n*.2235+(v+(o*.5725+(q*.3137+(r*.1412+(k*.9373+(l*.1412+(u*.549+(g*.1255+e)))))))))*65536;a:{if(R(m)<2147483648){a=~~m;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c+8>>2]=(a|0)>0?a:0;h=h*f;f=i*h;j=h*j;h=(n*.2118+(o*.1804+(s*i*.1333+(l*.9294+(i*t*.1412+(u*.9255+(f*.1098+(j+(g*.1373+e)))))))))*65536;b:{if(R(h)<2147483648){a=~~h;break b}a=-2147483648}a= +(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0;i=(n*.2119+(o*.1922+(i*p*.0745+(q*.651+(r*.0588+(k*.6784+(l*.1098+(f*.102+(j*.949+(g*.1216+e))))))))))*65536;c:{if(R(i)<2147483648){a=~~i;break c}a=-2147483648}a=(a|0)>=65536?65536:a;J[c+4>>2]=(a|0)>0?a:0}function J3a(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=-1;f=K[b+11|0];g=f<<24>>24<0;i=g?J[b>>2]:b;h=g?J[b+4>>2]:f;b=h+1|0;b=b>>>0>1073741823?-1:b<<2;f=vc(b);g=vc(b);if(K[c|0]){J[g>>2]=0;e=0}b=J[i>>2];if(!((b|0)!=92&(b|0)!=47)){J[f>> +2]=b;e=e+1|0;J[g+(e<<2)>>2]=1;d=1}c=0;a:{b:{c:{if((h|0)>0){d:while(1){b=c;while(1){e:{j=J[(b<<2)+i>>2];if(!((j|0)!=92&(j|0)!=47)){f:{if((b|0)<=(c|0))break f;g:{if((b-c|0)!=2)break g;c=(c<<2)+i|0;if(J[c>>2]!=46|J[c+4>>2]!=46|(e|0)<=0)break g;e=e-1|0;d=J[g+(e<<2)>>2];break f}J[f+(d<<2)>>2]=47;e=e+1|0;d=d+1|0;J[g+(e<<2)>>2]=d}c=b+1|0;if((h|0)>(c|0))continue d;break e}J[f+(d<<2)>>2]=j;d=d+1|0;b=b+1|0;if((h|0)>(b|0))continue}break}break}J[f+(d<<2)>>2]=0;if(d>>>0>=1073741808)break c;if(d>>>0<=1){H[a+11| +0]=d;break a}b=d|3;if(b>>>0>=1073741823)break b;c=b+1|0;b=vc(c<<2);J[a+8>>2]=c|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b;break a}J[f+(d<<2)>>2]=0;H[a+11|0]=d;break a}_d(a);B()}Pd();B()}b=a;a=d<<2;k=xc(b,f,a)+a|0,l=0,J[k>>2]=l;uc(f);uc(g)}function MBa(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;g=fc-16|0;fc=g;J[a+12>>2]=0;J[a+8>>2]=b;J[a>>2]=2413964;J[a+4>>2]=0;J[a+16>>2]=J[685894];h=a+12|0;b=J[c>>2];a:{b:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,g+12|0,b|0,1);b=J[699344];J[699344]= +0;if((b|0)!=1)break b;b=Z()|0;break a}J[g+12>>2]=0}J[699344]=0;aa(5153,h|0,g+12|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){b=J[g+12>>2];J[g+12>>2]=0;if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;i=J[699344];J[699344]=0;if((i|0)!=1){if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}ea(0)|0;Bc();B()}b=Z()|0;zc(g+12|0);break a}b=J[a+12>>2];b=J[(b?b+12|0:2743576)>>2];J[a+20>>2]=d;J[a+16>>2]=b;b=0;J[699344]=0;d=aa(5151,a+24|0,e|0)|0;c=J[699344];J[699344]=0;d:{e:{if((c| +0)!=1){c=J[f>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[f>>2]}J[a+64>>2]=0;J[a+60>>2]=b;fc=g+16|0;return a|0}b=Z()|0;break d}b=Z()|0;Ed(d)}}wc(h);nd(a);ba(b|0);B()}function ur(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{d=J[a>>2];c:{if(d>>>0>=b>>>0)break c;h=d+1|0;f=K[d|0];c=f<<24>>24;if((c|0)<0){if(b>>>0<=h>>>0)break c;d:{if(!(f&64))break d;c=K[d+1|0];if((c&192)!=128)break d;e=c&63|f<<6;c=d+2|0;if(f&32){if(b>>>0<=c>>>0)break c;c=K[d+2|0]; +if((c&192)==128){e=c&63|e<<6;c=d+3|0;g=f&16;if(g){if(b>>>0<=c>>>0)break c;e:{c=K[d+3|0];if((c&192)!=128)break e;e=c&63|e<<6;if(!e)break e;c=d+4|0;g=f&8;if(g){if(b>>>0<=c>>>0)break c;c=K[d+4|0];if((c&192)==128){e=c&63|e<<6;c=d+5|0;g=f&4;if(g){if(b>>>0<=c>>>0)break c;f:{if(f&2)break f;b=K[c|0];if((b&192)!=128)break f;b=b&63|e<<6&2147483584;if(!b)break f;J[a>>2]=d+6;return b|0}break a}if(g)break c;b=e&67108863;if(!b)break c;J[a>>2]=c;return b|0}break a}if(g)break c;b=e&2097151;if(!b)break c;break b}break a}if(g)break c; +b=e&65535;if(!b)break c;break b}break a}b=e&2047;if(!b)break c;break b}break a}if(!c)break c;J[a>>2]=h;i=f}return i|0}J[a>>2]=c;return b|0}J[a>>2]=h;return K[d|0]^-1}function aN(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;i=K[J[a>>2]+236|0];J[g>>2]=0;J[f>>2]=0;if(K[a+11666|0]){h=e-c|0;e=i?0-h|0:h;j=J[a+4>>2];h=P(h>>16,b>>16);b=d-b|0;J[j+16>>2]=J[j+16>>2]+(h-P(b>>16,c>>16)|0);a:{b:{b=i?0-b|0:b;if((b|0)>=0){if((e|0)>=0){if((b|0)>e<<1)break b;c=J[a+11688>>2];if((e|0)>b<<1){J[f>>2]=c;a=J[a+11692>>2];break a}k= +f,l=Wc(45875,c),J[k>>2]=l;a=Wc(19661,J[a+11692>>2]);break a}if((b|0)>(0-(e<<1)|0))break b;c=J[a+11688>>2];if((0-e|0)>b<<1){J[f>>2]=0-c;a=J[a+11692>>2];break a}k=f,l=Wc(-45874,c),J[k>>2]=l;a=Wc(19661,J[a+11692>>2]);break a}c=0-b|0;if((e|0)>=0){if((c|0)>e<<1){J[f>>2]=0;a=J[a+11692>>2]<<1;break a}c=J[a+11688>>2];if((e|0)>(0-(b<<1)|0)){J[f>>2]=c;a=J[a+11692>>2];break a}k=f,l=Wc(45875,c),J[k>>2]=l;a=Wc(111411,J[a+11692>>2]);break a}if((c|0)>(0-(e<<1)|0)){J[f>>2]=0;a=J[a+11692>>2]<<1;break a}c=J[a+11688>> +2];if((0-(b<<1)|0)<(0-e|0)){J[f>>2]=0-c;a=J[a+11692>>2];break a}k=f,l=Wc(-45874,c),J[k>>2]=l;a=Wc(111411,J[a+11692>>2]);break a}J[f>>2]=0;a=0}J[g>>2]=a}}function kTa(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;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,823044,0);return}d=J[c+380>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+380>>2]=0;c=J[a+28>>2];g=Ok(4);d=J[c+116>>2];if(d)kc[J[J[d>> +2]+4>>2]](d);J[c+116>>2]=g;c=J[a+8>>2];kc[J[J[c>>2]+108>>2]](c,J[a+28>>2]);e=O[b+24>>3];d=J[b+24>>2];f=O[b+40>>3];g=J[b+40>>2];i=O[b+8>>3];j=J[b+8>>2];k=J[b>>2];l=J[b+16>>2];m=J[b+32>>2];c=J[a+28>>2];h=(J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3])*65536;b:{if(R(h)<2147483648){b=~~h;break b}b=-2147483648}J[c+136>>2]=b;f=((m|0)==1?+(g|0):f)*65536;c:{if(R(f)<2147483648){b=~~f;break c}b=-2147483648}J[c+132>>2]=b;e=((l|0)==1?+(d|0):e)*65536;d:{if(R(e)<2147483648){b=~~e;break d}b=-2147483648}J[c+128>>2]=b;e=((k| +0)==1?+(j|0):i)*65536;e:{if(R(e)<2147483648){b=~~e;break e}b=-2147483648}J[c+124>>2]=b;b=J[a+8>>2];kc[J[J[b>>2]+116>>2]](b,J[a+28>>2])}function WTa(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;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,823044,0);return}d=J[c+384>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+384>>2]=0;c=J[a+28>>2];g=Ok(4);d=J[c+120>>2];if(d)kc[J[J[d>>2]+4>>2]](d); +J[c+120>>2]=g;c=J[a+8>>2];kc[J[J[c>>2]+112>>2]](c,J[a+28>>2]);e=O[b+24>>3];d=J[b+24>>2];f=O[b+40>>3];g=J[b+40>>2];i=O[b+8>>3];j=J[b+8>>2];k=J[b>>2];l=J[b+16>>2];m=J[b+32>>2];c=J[a+28>>2];h=(J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3])*65536;b:{if(R(h)<2147483648){b=~~h;break b}b=-2147483648}J[c+264>>2]=b;f=((m|0)==1?+(g|0):f)*65536;c:{if(R(f)<2147483648){b=~~f;break c}b=-2147483648}J[c+260>>2]=b;e=((l|0)==1?+(d|0):e)*65536;d:{if(R(e)<2147483648){b=~~e;break d}b=-2147483648}J[c+256>>2]=b;e=((k|0)==1?+(j| +0):i)*65536;e:{if(R(e)<2147483648){b=~~e;break e}b=-2147483648}J[c+252>>2]=b;b=J[a+8>>2];kc[J[J[b>>2]+120>>2]](b,J[a+28>>2])}function Hhb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){c=J[a+100>>2];b=J[a+316>>2];if(b){d=J[a+300>>2];if((d|0)>0){b=0;while(1){e=J[a+316>>2]+(b<<3)|0;f=J[e+4>>2];if(f){d=J[f>>2];if(d)kc[J[c+8>>2]](c,d);J[J[e+4>>2]>>2]=0;d=J[e+4>>2];if(d)kc[J[c+8>>2]](c,d);J[e+4>>2]=0;d=J[a+300>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}b=J[a+316>>2]}if(b)kc[J[c+8>>2]](c,b);J[a+316>>2]=0}b=J[a+ +164>>2];if(b)kc[J[c+8>>2]](c,b);J[a+164>>2]=0;b=J[a+168>>2];if(b)kc[J[c+8>>2]](c,b);J[a+168>>2]=0;b=J[a+172>>2];if(b)kc[J[c+8>>2]](c,b);J[a+172>>2]=0;b=J[a+176>>2];if(b)kc[J[c+8>>2]](c,b);J[a+176>>2]=0;b=J[a+180>>2];if(b)kc[J[c+8>>2]](c,b);J[a+180>>2]=0;b=J[a+304>>2];if(b)kc[J[c+8>>2]](c,b);J[a+300>>2]=0;J[a+304>>2]=0;b=J[a+140>>2];if(b)kc[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+152>>2];if(b)kc[J[c+8>>2]](c,b);J[a+152>>2]=0;b=J[a+156>>2];if(b)kc[J[c+8>>2]](c,b);J[a+20>>2]=0;J[a+24>>2]=0;J[a+156>>2]=0; +b=J[a+324>>2];if(b)kc[J[c+8>>2]](c,b);J[a+324>>2]=0;b=J[a+328>>2];if(b)kc[J[c+8>>2]](c,b);J[a+328>>2]=0}}function Fjb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=fc-16|0;fc=f;j=J[a+552>>2];a:{b:{g=L[(b?a+296|0:a+216|0)+34>>1];if(!g)break b;h=J[(b?856:852)+a>>2];k=h+J[(b?756:752)+a>>2]|0;i=J[a+104>>2];if(c>>>0>>0){g=h+(c<<2)|0;if(g+4>>>0>k>>>0)break b;g=yd(i,g);J[f+12>>2]=g;if(g)break b;m=e,n=ee(i,f+12|0),I[m>>1]=n;if(J[f+12>>2])break b;m=d,n=ee(i,f+12|0), +I[m>>1]=n;if(!J[f+12>>2])break a;break b}h=h+(g<<2)|0;if(h-2>>>0>k>>>0)break b;h=h-4|0;l=yd(i,h);J[f+12>>2]=l;if(l)break b;m=e,n=ee(i,f+12|0),I[m>>1]=n;if(J[f+12>>2])break b;g=h+(c-g<<1)|0;if(g+6>>>0>k>>>0){I[d>>1]=0;break a}g=yd(i,g+4|0);J[f+12>>2]=g;if(g){I[d>>1]=0;break a}m=d,n=ee(i,f+12|0),I[m>>1]=n;break a}I[d>>1]=0;I[e>>1]=0}if(j){J[f+8>>2]=L[e>>1];J[f+4>>2]=I[d>>1];c:{d:{if(b){b=J[j+12>>2];if(b)kc[b|0](a,c,f+8|0)|0;b=J[j+16>>2];if(b)break d;break c}b=J[j>>2];if(b)kc[b|0](a,c,f+8|0)|0;b=J[j+ +4>>2];if(!b)break c}kc[b|0](a,c,f+4|0)|0}I[e>>1]=J[f+8>>2];I[d>>1]=J[f+4>>2]}fc=f+16|0}function cob(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;a=J[a+12>>2];g=a+4280|0;a:{b:{c:{e=J[a+4280>>2];if(e>>>0>b>>>0){e=e-b|0;f=J[a+4284>>2];if(e>>>0<=(f-a|0)-184>>>0){J[a+4280>>2]=b;J[a+4284>>2]=f-e;break c}e=0;if(yd(J[a>>2],0))break a;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4288>>2]=g;J[a+4284>>2]=g;J[a+4280>>2]=0;J[a+104>>2]=0;J[a+48>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;H[a+44|0]=0;J[a- -64>>2]=9}if(b>>>0<= +e>>>0)break c;h=J[a+4284>>2];i=J[a+4288>>2]-h|0;f=b-e|0;b=f>>>0>i>>>0?i:f;J[a+4284>>2]=b+h;J[a+4280>>2]=b+e;b=f-b|0;if(b){h=a+12|0;while(1){e=0;f=b>>>0>=4096?4096:b;if(D7(h,0,f)>>>0>>0)break a;J[g>>2]=f+J[g>>2];b=b-f|0;if(b)continue;break}}if(d)break b;return 0}if(d)break b;return 0}f=a+184|0;i=a+12|0;g=J[a+4284>>2];b=J[a+4288>>2];e=0;while(1){b=b-g|0;b=b>>>0>>0?b:d;xc(c+e|0,g,b);J[a+4284>>2]=b+J[a+4284>>2];J[a+4280>>2]=b+J[a+4280>>2];e=b+e|0;d=d-b|0;if(!d)break a;J[a+4284>>2]=f;h=D7(i,f,4096); +g=J[a+4284>>2];b=h+g|0;J[a+4288>>2]=b;if(h)continue;break}}return e|0}function uTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=fc-144|0;fc=c;J[c+128>>2]=13;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,d,823391,0);break a}e=J[d+380>>2];if(e)kc[J[J[e>>2]+4>>2]](e);J[d+380>>2]=0;d=J[a+20>>2];c:{d:{e=J[b+8>>2];e:{if(!Ic(e,786996))break e;if(!Ic(e,788459))break e;if(!Ic(e,789299))break e;while(1){if(J[d+ +24>>2]==7){f=c+128|0;if(J[Ec(J[d+32>>2],e,f,0)>>2]!=5)break d;yc(f)}d=J[d+104>>2];if(d)continue;break}}J[c+128>>2]=5;break c}b=J[c+128>>2]==5?b:c+128|0}b=Pm(b,0);yc(c+128|0);if(b){e=J[a+28>>2];d=J[e+116>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[e+116>>2]=b;d=J[a+8>>2];kc[J[J[d>>2]+108>>2]](d,J[a+28>>2]);kc[J[J[b>>2]+32>>2]](b,c);xc(J[a+28>>2]+124|0,c,128);b=J[a+8>>2];kc[J[J[b>>2]+116>>2]](b,J[a+28>>2]);break a}d=-1;a=J[a+108>>2];f:{if(!a)break f;a=J[a+4>>2];if(J[a+8>>2]==13)break f;a=J[a+16>>2];d=kc[J[J[a>> +2]+52>>2]](a)|0}Cc(1,d,823807,0)}fc=c+144|0}function fdb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;J[J[J[b>>2]>>2]+20>>2]=c;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+24>>2]=0;J[b+28>>2]=-1;J[b+208>>2]=0;J[b+212>>2]=-1;J[b+176>>2]=0;J[b+180>>2]=0;J[b+400>>2]=0;J[b+404>>2]=0;if(K[a+96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1172>>2]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647; +J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}c=zD(b,e+8|0,e);if(c){f=a+100|0;while(1){d=O[e>>3];g=O[e+8>>3];a:{if((c|0)==1){zM(a,g,d);break a}if(c>>>0<=14){d=d*256;d=d+(d<0?-.5:.5);b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}d=g*256;d=d+(d<0?-.5:.5);c:{if(R(d)<2147483648){h=~~d;break c}h=-2147483648}gd(f,a,h,c);J[a+1172>>2]=2;break a}if((c&-49)!=79|J[a+1172>>2]!=2)break a;gd(f,a,J[a+1164>>2],J[a+1168>>2]);J[a+1172>>2]=3}c=zD(b,e+8|0,e);if(c)continue; +break}}fc=e+16|0}function fUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=fc-144|0;fc=c;J[c+128>>2]=13;d=J[a+28>>2];a:{if(J[d+664>>2]){d=-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,d,823391,0);break a}e=J[d+384>>2];if(e)kc[J[J[e>>2]+4>>2]](e);J[d+384>>2]=0;d=J[a+20>>2];c:{d:{e=J[b+8>>2];e:{if(!Ic(e,786996))break e;if(!Ic(e,788459))break e;if(!Ic(e,789299))break e;while(1){if(J[d+24>>2]==7){f=c+128|0;if(J[Ec(J[d+32>>2],e,f,0)>> +2]!=5)break d;yc(f)}d=J[d+104>>2];if(d)continue;break}}J[c+128>>2]=5;break c}b=J[c+128>>2]==5?b:c+128|0}b=Pm(b,0);yc(c+128|0);if(b){e=J[a+28>>2];d=J[e+120>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[e+120>>2]=b;d=J[a+8>>2];kc[J[J[d>>2]+112>>2]](d,J[a+28>>2]);kc[J[J[b>>2]+32>>2]](b,c);xc(J[a+28>>2]+252|0,c,128);b=J[a+8>>2];kc[J[J[b>>2]+120>>2]](b,J[a+28>>2]);break a}d=-1;a=J[a+108>>2];f:{if(!a)break f;a=J[a+4>>2];if(J[a+8>>2]==13)break f;a=J[a+16>>2];d=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,d,823975,0)}fc=c+144|0}function NG(a, +b){var c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;d=c+32|0;hQ(d,b);f=K[c+43|0];f=f<<24>>24<0?J[c+36>>2]:f;e=Ci(d,46,0);a:{b:{if((e|0)==-1)break b;e=e+5|0;if(e>>>0>=f>>>0)break b;J[699344]=0;d=na(2963,c+20|0,d|0,0,e|0,c+8|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(H[c+43|0]<0)uc(J[c+32>>2]);J[c+40>>2]=J[d+8>>2];e=J[d+4>>2];J[c+32>>2]=J[d>>2];J[c+36>>2]=e}d=c+32|0;e=Ci(d,44,0);c:{if((e|0)==-1)break c;g=f;f=e+5|0;if(g>>>0<=f>>>0)break c;J[699344]=0;d=na(2963,c+8|0,d|0,0,f|0,c+47|0)|0;f=J[699344];J[699344]= +0;if((f|0)==1)break a;if(H[c+43|0]<0)uc(J[c+32>>2]);J[c+40>>2]=J[d+8>>2];f=J[d+4>>2];J[c+32>>2]=J[d>>2];J[c+36>>2]=f}d=K[c+43|0];e=d<<24>>24<0;f=e?J[c+32>>2]:c+32|0;d=e?J[c+36>>2]:d;if((d|0)==-1)d=bf(f);e=J[J[a>>2]+8>>2];J[699344]=0;da(e|0,a|0,d|0);e=J[699344];J[699344]=0;if((e|0)!=1){g=f;f=d<<2;xc(J[a+12>>2],g,f);J[a+12>>2]=f+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+d;if(H[c+43|0]<0)uc(J[c+32>>2]);fc=c+48|0;return}}a=Z()|0;if(H[c+43|0]<0)uc(J[c+32>>2]);ba(a|0);B()}function Eeb(a,b){a=a|0;b=b|0;var c=0,d= +0,e=0,f=0,g=0,h=0;c=J[a+16>>2];f=J[c+1604>>2];a=0;a:{if(!f)break a;e=J[c+1588>>2];g=J[c+1600>>2];d=f-1|0;a=g+d|0;a=J[J[e+(a>>>8&16777212)>>2]+((a&1023)<<2)>>2];J[c+1604>>2]=d;d=J[c+1592>>2];if((((d|0)!=(e|0)?(d-e<<8)-1|0:0)-(f+g|0)|0)+1>>>0>=2048){uc(J[d-4>>2]);J[c+1592>>2]=J[c+1592>>2]-4}if(!J[a+8>>2]){kc[J[J[a>>2]+12>>2]](a)|0;a=0;break a}d=J[a+8>>2];J[a+8>>2]=0;kc[J[J[a>>2]+12>>2]](a)|0;a=J[c+1580>>2];if(a){kc[J[J[a>>2]+12>>2]](a)|0;J[c+1580>>2]=0}e=J[c+1628>>2];f=J[c+1624>>2];g=J[c+1632>>2];a= +vc(12);h=K[c+2912|0];J[699344]=0;b=va(2337,a|0,d|0,f|0,e|0,g>>>31|0,h|0,b|0)|0;d=J[699344];J[699344]=0;b:{if((d|0)!=1){J[c+1580>>2]=b;a=J[c+1604>>2];if(a){a=(a+J[c+1600>>2]|0)-1|0;a=J[J[J[J[c+1588>>2]+(a>>>8&16777212)>>2]+((a&1023)<<2)>>2]+8>>2]}else a=J[c>>2];if(a)break b;a=0;break a}b=Z()|0;uc(a);ba(b|0);B()}J[c+1628>>2]=e;J[c+1624>>2]=f;J[c+1616>>2]=a;J[c+1620>>2]=a;b=J[c+1632>>2];if((b|0)<0)J[c+1620>>2]=a+P(b,1-e|0);a=J[c+1580>>2]}return a|0}function z5(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;a:{j=J[a+8>>2];if(!j)break a;e=J[b>>2];if(!J[e+8>>2]|!J[e+12>>2])break a;l=J[e+12>>2];if(!l)break a;o=J[e+8>>2];if(!o)break a;s=J[e+16>>2];t=K[a+13|0];while(1){m=0;a=J[b>>2];a=J[a+4>>2]+P(J[a+16>>2],(s|0)<0?(k^-1)+l|0:k)|0;while(1){e=P(P(K[j+3|0],t),(P(K[c+1|0],150)+P(K[c+2|0],77)|0)+P(K[c|0],29)>>>8|0);if(e>>>0>=65281){f=e+255>>>16|0;p=K[j|0];q=K[j+1|0];r=K[j+2|0];e=a+3|0;h=K[a|0];i=K[a+1|0];n=K[a+2|0];g=K[a+3|0];b:{if((g|0)!=255){e=f+g-(P(f,g)+255>>>8)|0;H[a+ +3|0]=e;h=P(g,h);e=e&255;h=(h+P(f,p)-(P(f,h)+255>>>8)>>>0)/(e>>>0)|0;i=P(g,i);i=(i+P(f,q)-(P(f,i)+255>>>8)>>>0)/(e>>>0)|0;g=P(g,n);g=(g+P(f,r)-(P(f,g)+255>>>8)>>>0)/(e>>>0)|0;e=a;break b}H[a|0]=h+(P(p-h|0,f)>>>8|0);i=i+(P(q-i|0,f)>>>8|0)|0;g=(P(r-n|0,f)>>>8|0)+n|0;h=(f-(P(f,255)+255>>>8|0)|0)+255|0}H[a+1|0]=i;H[a+2|0]=g;H[e|0]=h}c=c+d|0;a=a+4|0;j=j+4|0;m=m+1|0;if((m|0)!=(o|0))continue;break}k=k+1|0;if((k|0)!=(l|0))continue;break}}}function vwa(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=fc-16|0;fc=e;d=J[c+8>>2]-J[c>>2]|0;g=J[c+12>>2]-J[c+4>>2]|0;h=J[a+20>>2];if(h)uc(h);J[a+16>>2]=0;J[a+20>>2]=0;I[a+12>>1]=d;I[a+10>>1]=d;I[a+8>>1]=g;d=P(d&65535,g&65535);if(d){d=vc((l=-1,m=vEb(d,0,3,0),n=jc,n?l:m));J[a+16>>2]=d;J[a+20>>2]=d}d=L[b+10>>1];J[e+12>>2]=L[b+8>>1];J[e+8>>2]=d;J[e>>2]=0;J[e+4>>2]=0;st(e,e,c);ok(e,0-J[c>>2]|0,0-J[c+4>>2]|0);f=J[e+8>>2];a:{if((f|0)<=J[e>>2])break a;g=J[e+4>>2];i=J[e+12>>2];if((g|0)>=(i|0))break a;while(1){d=0;b:{if((g|0)<0)break b;d=0;if(L[a+ +8>>1]<=g>>>0)break b;h=J[a+16>>2];d=0;if(!h)break b;d=h+P(P(L[a+12>>1],g),3)|0}h=J[e>>2];if((h|0)<(f|0)){f=J[c+4>>2]+g|0;k=P(J[c>>2],3)+((f|0)>=0?f>>>0>1]?J[b+16>>2]+P(P(f,L[b+12>>1]),3)|0:0:0)|0;while(1){i=P(h,3);f=i+d|0;i=i+k|0;j=K[i|0]|K[i+1|0]<<8;H[f|0]=j;H[f+1|0]=j>>>8;H[f+2|0]=K[i+2|0];f=J[e+8>>2];h=h+1|0;if((f|0)>(h|0))continue;break}i=J[e+12>>2]}g=g+1|0;if((i|0)>(g|0))continue;break}}fc=e+16|0}function qxa(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;f=fc- +32|0;fc=f;a:{if(K[a+88|0]){d=J[a+84>>2];break a}m=a,n=kc[J[J[a>>2]+36>>2]](a)|0,J[m+72>>2]=n;m=a,n=kc[J[J[a>>2]+44>>2]](a)|0,J[m+76>>2]=n;m=a,n=kc[J[J[a>>2]+40>>2]](a)|0,J[m+80>>2]=n;d=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}b:{c:{if(J[a+92>>2]>0){g=J[a+80>>2];i=d-g|0;h=J[a+72>>2];j=J[a+76>>2]-h|0;k=J[a+128>>2];l=J[a+104>>2];d=0;while(1){if(!(J[a+116>>2]<=(d|0)&J[a+120>>2]>=(d|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c; +break b}e=(d-J[a+108>>2]<<2)+l|0;J[e>>2]=((P(J[e>>2]-h|0,b)|0)/(j|0)|0)+h;if(!(J[a+140>>2]<=(d|0)&J[a+144>>2]>=(d|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;break b}e=(d-J[a+132>>2]<<2)+k|0;J[e>>2]=((P(J[e>>2]-g|0,c)|0)/(i|0)|0)+g;d=d+1|0;if((d|0)>2])continue;break}}fc=f+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Wyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=J[J[a+2248>>2]+88>>2];e=J[b+1168>>2];c=(J[b+1176>>2]+P(e,J[a+ +572>>2])|0)+P(e,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){c=K[b|0]|K[b+1|0]<<8;f=(c<<8|c>>>8)&65535;c=K[e|0]|K[e+1|0]<<8;c=f+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;e=e+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;c=J[a+588>>2];if((d|0)<(c|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[e|0];H[b+1|0]=K[e+1|0];e=e+2|0;b=(J[a+584>>2]<< +1)+b|0;d=d+1|0;c=J[a+588>>2];if((d|0)<(c|0))continue;break}}if((c|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;c=0;while(1){d=K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535;d=d<<8|d>>>8;H[b|0]=d;H[b+1|0]=d>>>8;e=e+2|0;b=(J[a+584>>2]<<1)+b|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Qyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])| +0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=4;e=e+1|0;b=240}H[c|0]=K[c|0]+((b&h)>>>d|0)&15;d=d-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}break b}if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=4;e=e+1|0;b=240}H[c|0]=(b&h)>>>d;d=d-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+ +588>>2];if((f|0)<(g|0))continue;break}}if((g|0)<=0)break a;b=J[a+540>>2];d=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;b=0;c=0;g=0;e=0;while(1){if(!(c&255)){g=K[f|0];c=240;f=f+1|0;b=4}H[d|0]=(c&g&255)>>>b;b=b-4|0;c=(c&240)>>>4|0;d=J[a+584>>2]+d|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Oc(a,b){var c=0,d=0,e=0;d=(a|0)==(b|0);H[b+12|0]=d;a:{if(d)break a;while(1){d=J[b+8>>2];if(K[d+12|0])break a;b:{c=J[d+8>>2];e=J[c>>2]; +if((e|0)==(d|0)){e=J[c+4>>2];if(!(!e|K[e+12|0]))break b;c:{if(J[d>>2]==(b|0)){b=d;break c}b=J[d+4>>2];e=J[b>>2];J[d+4>>2]=e;a=d;if(e){J[e+8>>2]=d;c=J[d+8>>2];a=J[c>>2]}J[b+8>>2]=c;J[((a|0)==(d|0)?c:c+4|0)>>2]=b;J[b>>2]=d;J[d+8>>2]=b;c=J[b+8>>2];d=J[c>>2]}H[b+12|0]=1;H[c+12|0]=0;a=J[d+4>>2];J[c>>2]=a;if(a)J[a+8>>2]=c;a=J[c+8>>2];J[d+8>>2]=a;J[a+((J[a>>2]!=(c|0))<<2)>>2]=d;J[d+4>>2]=c;J[c+8>>2]=d;return}if(!(K[e+12|0]|!e))break b;d:{if(J[d>>2]!=(b|0)){b=d;break d}a=J[b+4>>2];J[d>>2]=a;if(a){J[a+8>> +2]=d;c=J[d+8>>2]}J[b+8>>2]=c;J[(J[c>>2]==(d|0)?c:c+4|0)>>2]=b;J[b+4>>2]=d;J[d+8>>2]=b;c=J[b+8>>2]}H[b+12|0]=1;H[c+12|0]=0;a=J[c+4>>2];b=J[a>>2];J[c+4>>2]=b;if(b)J[b+8>>2]=c;b=J[c+8>>2];J[a+8>>2]=b;J[b+((J[b>>2]!=(c|0))<<2)>>2]=a;J[a>>2]=c;J[c+8>>2]=a;break a}H[d+12|0]=1;H[c+12|0]=(a|0)==(c|0);H[e+12|0]=1;b=c;if((a|0)!=(c|0))continue;break}}}function ct(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(+a);d=v(1)|0;f=v(0)|0;h=d>>>16|0;e=d-1072562176|0;if((e|0)==198911|e>>>0<198911){if(!f&(d|0)== +1072693248)return 0;b=a+-1;a=b*134217728;k=b+a-a;i=O[326416];j=k*k*i;a=b+j;c=b*b;g=b*c;return a+(g*(g*(g*(g*O[326426]+(c*O[326425]+(b*O[326424]+O[326423])))+(c*O[326422]+(b*O[326421]+O[326420])))+(c*O[326419]+(b*O[326418]+O[326417])))+((b-k)*i*(b+k)+(j+(b-a))))}a:{if(h-32752>>>0<=4294934559){A(+a);e=v(1)|0;if(!(v(0)|e&2147483647)){f=fc-16|0;O[f+8>>3]=-1;return O[f+8>>3]/0}if(!f&(d|0)==2146435072)break a;if(!((h&32752)!=32752&h>>>0<=32767)){a=a-a;return a/a}A(+(a*4503599627370496));d=v(1)|0;f=v(0)| +0;d=d-54525952|0}l=d-1072037888|0;i=+(l>>20);e=(l>>>13&127)<<4;j=i*O[326409]+O[e+2611424>>3];a=O[e+2611416>>3];h=0;x(0,f-h|0);x(1,d-((l&-1048576)+(f>>>0>>0)|0)|0);c=a*(+z()-O[e+2613464>>3]-O[e+2613472>>3]);a=j+c;g=c*c;a=a+(c*g*(g*(c*O[326415]+O[326414])+(c*O[326413]+O[326412]))+(g*O[326411]+(i*O[326410]+(c+(j-a)))))}return a}function _Ha(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;e=fc-16|0;fc=e;c=1;a:{if(kc[J[J[a>>2]+32>>2]](a,b)|0)break a;c=0;kc[J[J[a>>2]+48>>2]](e+4|0,a,b,0);b:{c:{b= +J[e+8>>2];g=J[e+4>>2];j=(b|0)==(g|0);if(!j){f=g;while(1){c=K[f+11|0];h=c<<24>>24<0;k=h?J[f>>2]:f;a=k;i=h?J[f+4>>2]:c;d=a+(i<<2)|0;h=d;c=a;if(i){d:while(1){c=a;while(1){e:{a=c+4|0;if(J[c>>2]==46){if((a|0)==(d|0))break e;if(J[a>>2]!=112)continue d;if((c+8|0)==(d|0))break e;if(J[c+8>>2]!=105)continue d;if((c+12|0)==(d|0))break e;if(J[c+12>>2]!=101)continue d;if((c+16|0)==(d|0))break e;if(J[c+16>>2]!=99)continue d;if((c+20|0)==(d|0))break e;h=J[c+20>>2]==101?c:h;continue d}c=a;if((d|0)!=(c|0))continue}break}break}c= +h}a=(c|0)==(d|0)?-1:c-k>>2;c=(a|0)!=-1&(a+6|0)==(i|0);if(!c){f=f+12|0;if((f|0)!=(b|0))continue}break}if(g)break c;break a}if(g)break b;break a}if(!j){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((a|0)!=(g|0))continue;break}b=J[e+4>>2]}}J[e+8>>2]=g;uc(b)}fc=e+16|0;return c|0}function Ryb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>> +2]+J[a+616>>2]|0;b=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=6;e=e+1|0;b=192}H[c|0]=K[c|0]+((b&h)>>>d|0)&3;d=d-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}break b}if((b|0)<=0)break a;b=0;while(1){if(!(b&255)){h=K[e|0];d=6;e=e+1|0;b=192}H[c|0]=(b&h)>>>d;d=d-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;f=f+1|0;g=J[a+588>>2];if((f|0)<(g|0))continue;break}}if((g|0)<=0)break a;b=J[a+540>>2];d=(J[b+1176>>2]+P(J[a+ +572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;b=0;c=0;g=0;e=0;while(1){if(!(c&255)){g=K[f|0];c=192;f=f+1|0;b=6}H[d|0]=(c&g&255)>>>b;b=b-2|0;c=(c&252)>>>2|0;d=J[a+584>>2]+d|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function OLa(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;a:{if(!J[a+144>>2])break a;e=J[b+596>>2];if(J[e+28>>2]!=1)break a;e=J[J[e+24>>2]>>2];if(J[e+12>>2]!=5)break a;g=J[e+8>>2]; +if(J[g>>2]|J[g+4>>2]|(J[g+8>>2]|J[g+12>>2]))break a;if(J[g+16>>2])break a;n=O[b+56>>3];o=O[b+24>>3];g=J[e>>2];s=O[g>>3];e=J[e+4>>2];t=O[e>>3];i=O[b+40>>3];k=n+(o*s+t*i);j=O[g+8>>3];l=O[e+8>>3];m=n+(o*j+l*i);c=O[g+16>>3];d=O[e+16>>3];h=n+(o*c+d*i);p=O[b+48>>3];q=O[b+16>>3];r=O[b+32>>3];d=p+(q*c+d*r);f=O[g+24>>3];c=O[e+24>>3];u=n+(o*f+c*i);v=p+(q*f+c*r);f=O[g+32>>3];c=O[e+32>>3];i=n+(o*f+c*i);f=p+(q*f+c*r);b:{c:{c=p+(q*j+l*r);j=p+(q*s+t*r);if(c!=j|h!=m|(d!=v|i!=u))break c;if(f!=j|i!=k)break c;c=d;h= +m;break b}if(k!=m|c!=d|(h!=u|f!=v))break a;if(f!=j|i!=k)break a}b=h>2],c,d,h,d);return}if(!(d<3))break a;d=(c+h)*.5;a_(J[a+116>>2],d,f,d,l)}}function Rub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(c){Jc(a,1028,0,0);return 1028}a:{if(!K[a+286|0]){if(K[a+289|0]|(K[a+287|0]|K[a+288|0]))break a;Jc(a,1029,0,0);return 1029}if(K[a+300|0])break a;Jc(a,1033,0,0);return 1033}J[a+48>>2]=J[a+48>> +2]-1;d=0;f=fc-16|0;fc=f;b:{if(!K[a+114|0])break b;d=J[(K[a+288|0]?528:512)+a>>2];if(!d)d=J[a+528>>2];d=QO(a,0,0,H[d+31|0],0,0,0,0,0,d,f+12|0);if(d)break b;c=J[f+12>>2];J[c+4>>2]=1024;J[c>>2]=1025;g=J[a+700>>2];c:{if(g){J[g+8>>2]=c;break c}J[a+696>>2]=c}d=0;J[c+8>>2]=0;J[c+12>>2]=g;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(J[a+516>>2]|(K[a+496|0]|!K[a+432|0]))break b;J[a+516>>2]=c}fc=f+16|0;c=d;d:{if(c)break d;c=DO(a);if(c)break d;if(!K[a+497|0]){I[a+286>> +1]=0;I[a+288>>1]=0;I[a+290>>1]=0;I[a+292>>1]=0;H[a+293|0]=0;H[a+294|0]=0;H[a+295|0]=0;H[a+296|0]=0;H[a+297|0]=0;H[a+298|0]=0;H[a+299|0]=0;H[a+300|0]=0}if(K[a+112|0]){c=kc[J[b+4>>2]](a,b,e)|0;if(c)break d}c=0}return c|0}function rU(a){var b=0,c=0,d=0;a:{if(!J[a+8>>2])break a;b=J[a+4>>2];d=J[b>>2];c=J[J[a>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+8>>2]=0;if((a|0)==(b|0))break a;while(1){d=J[b+4>>2];if(H[b+63|0]<0)uc(J[b+52>>2]);c=J[b+36>>2];if(c){J[b+40>>2]=c;uc(c)}if(H[b+19|0]<0)uc(J[b+8>>2]);uc(b);b=d; +if((b|0)!=(a|0))continue;break}}b:{b=J[a+12>>2];if(b){d=J[J[b>>2]+12>>2];J[699344]=0;_(d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+12>>2]=0}c:{if(!J[a+40>>2])break c;b=J[a+36>>2];d=J[b>>2];c=J[J[a+32>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+40>>2]=0;c=a+32|0;if((c|0)==(b|0))break c;while(1){d=J[b+4>>2];uc(b);b=d;if((c|0)!=(b|0))continue;break}}if(H[a+27|0]<0)uc(J[a+16>>2]);d:{if(!J[a+8>>2])break d;b=J[a+4>>2];d=J[b>>2];c=J[J[a>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+8>>2]=0;if((a|0)==(b|0))break d; +while(1){d=J[b+4>>2];if(H[b+63|0]<0)uc(J[b+52>>2]);c=J[b+36>>2];if(c){J[b+40>>2]=c;uc(c)}if(H[b+19|0]<0)uc(J[b+8>>2]);uc(b);b=d;if((b|0)!=(a|0))continue;break}}return}ea(0)|0;Bc();B()}function kvb(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;var h=0,i=0,j=0,k=0,l=0;a:{if(f){if(!d)break a;a=c<<1;l=b<<1;b=0;while(1){i=L[e>>1];b:{if((i|0)==L[f>>1]){I[g>>1]=i;break b}i=K[e|0]|K[e+1|0]<<8;k=i>>>8|0;h=K[f|0]|K[f+1|0]<<8;i=((i<<8|k)&65535)+((P(((h<<8|h>>>8)&65535)-((k|i<<8)&65535)|0,l)+c|0)/ +(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];c:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break c}h=e+2|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=j+((P(((h<<8|h>>>8)&65535)-((k<<8|k>>>8)&65535)|0,l)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}i=g+4|0;h=L[e+4>>1];d:{if((h|0)==L[f+4>>1]){I[i>>1]=h;break d}h=e+4|0;j=K[h+1|0]<<8;k=K[h|0]|j;h=j|K[h|0];j=(h<<8|h>>>8)&65535;h=K[f+4|0]|K[f+5|0]<<8;h=j+((P(((h<<8|h>>>8)&65535)-((k<<8|k>>> +8)&65535)|0,l)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}f=f+6|0;e=e+6|0;g=g+6|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}xc(g,e,P(d,6))}return 0}function EY(a){var b=0,c=0;b=Ge(1,92);if(!b)return 0;J[b+72>>2]=1;a:{b:{c:switch(a|0){case 0:J[b+84>>2]=4822;J[b+80>>2]=4823;J[b+76>>2]=4824;J[b+16>>2]=4825;J[b+4>>2]=4826;J[b+24>>2]=4827;J[b+20>>2]=4828;J[b>>2]=4829;J[b+88>>2]=4830;J[b+40>>2]=4831;J[b+36>>2]=4832;J[b+32>>2]=4833;J[b+28>>2]=4834;J[b+12>>2]=4835;J[b+8>>2]=4836;a=aZ(); +J[b+44>>2]=a;if(a)break b;break a;case 2:break c;default:break a}J[b+84>>2]=4837;J[b+80>>2]=4838;J[b+76>>2]=4839;J[b+16>>2]=4840;J[b+4>>2]=4841;J[b+88>>2]=4842;J[b+40>>2]=4843;J[b+36>>2]=4844;J[b+32>>2]=4845;J[b+28>>2]=4846;J[b+24>>2]=4847;J[b+20>>2]=4848;J[b+12>>2]=4849;J[b+8>>2]=4850;J[b>>2]=4851;a=Ge(1,136);d:{if(a){c=aZ();J[a>>2]=c;e:{if(!c)break e;J[a+108>>2]=0;J[a+112>>2]=0;H[a+124|0]=0;J[a+116>>2]=0;J[a+120>>2]=0;c=hB();J[a+4>>2]=c;if(!c)break e;c=hB();J[a+8>>2]=c;if(!c)break e;break d}KY(a)}a= +0}J[b+44>>2]=a;if(!a)break a}J[b+68>>2]=4814;J[b+60>>2]=4814;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+64>>2]=4814;return b}uc(b);return 0}function m$a(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=-1;a:{if(!(!d|(!a|!b))){if(!c){J[b>>2]=0;J[d>>2]=0;return 0}e=J[b>>2]/2|0;g=a;i=c;j=J[d>>2];b:{if((j|0)<=0)break b;k=i+j|0;l=(e<<1)+g|0;while(1){e=H[i|0];f=e&255;j=(e|0)>=0;h=0;c:{if(j)break c;if(e>>>0<=4294967231){J[b>>2]=g-a>>1;J[d>>2]=i-c;return-2}if(e>>>0<=4294967263){f=f& +31;h=1;break c}if(e>>>0<=4294967279){f=f&15;h=2;break c}if(e>>>0>4294967287)break a;f=f&7;h=3}e=i+1|0;if((h|0)>(k-e|0))break b;d:{e:{if(!(e>>>0>=k>>>0|j)){while(1){f:{j=e+1|0;e=K[e|0];if((e&192)!=128)break f;f=e&63|f<<6;h=h-1|0;if(!h)break f;e=j;if(k>>>0>e>>>0)continue}break}if(f>>>0>65535)break e;e=j}if(g>>>0>=l>>>0)break b;H[g|0]=f>>>8;h=1;i=1;break d}if(f>>>0>1114111|g+2>>>0>=l>>>0)break b;e=f-65536|0;H[g+1|0]=e>>>10;h=3;H[g+2|0]=f>>>8&3|220;H[g|0]=e>>>18|216;e=j;i=2}H[g+h|0]=f;g=(i<<1)+g|0;i= +e;if(k>>>0>e>>>0)continue;break}}J[b>>2]=g-a;J[d>>2]=i-c;e=J[b>>2]}return e|0}J[b>>2]=g-a>>1;J[d>>2]=i-c;return-2}function lka(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;J[a>>2]=2628104;WF(a+4|0);J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a>>2]=2628424;Ac(a+52|0,0,47);c=d+12|0;b=J[a+4>>2];J[c>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[699344]=0;b=aa(6759,c|0,2797660)|0;e=J[699344];J[699344]=0;if((e|0)==1){ea(0)|0;Bc();B()}c=J[c>> +2];e=J[c+4>>2]-1|0;J[c+4>>2]=e;if((e|0)==-1)kc[J[J[c>>2]+8>>2]](c);a:{b:{c:{if(b){b=d+8|0;c=J[a+4>>2];J[b>>2]=c;J[c+4>>2]=J[c+4>>2]+1;J[699344]=0;c=_(6758,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[a+68>>2]=c;b=J[b>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)kc[J[J[b>>2]+8>>2]](b);b=J[a+68>>2];f=a,g=kc[J[J[b>>2]+28>>2]](b)|0,H[f+98|0]=g}b=J[J[a>>2]+12>>2];J[699344]=0;ga(b|0,a|0,0,4096)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break b;c=Z()|0;break a}c=Z()|0;b=J[d+8>>2];d=J[b+4>>2]-1|0;J[b+ +4>>2]=d;if((d|0)==-1)kc[J[J[b>>2]+8>>2]](b);break a}fc=d+16|0;return a|0}uz(a);ba(c|0);B()}function LJ(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,w=0;g=fc-256|0;fc=g;while(1){e=d<<2;c=e+a|0;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);J[e+g>>2]=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=d+1|0;if((d|0)!=16)continue;break}d=16;a=J[g>>2];while(1){f=a;a=(d<<2)+g|0;c=J[a-8>>2];c=f+(J[a-28>>2]+(zEb(c,15)^zEb(c,13)^c>>>10)|0)|0;f=a;a=J[a-60>>2];v=f,w=(zEb(a, +25)^zEb(a,14)^a>>>3)+c|0,J[v>>2]=w;d=d+1|0;if((d|0)!=64)continue;break}m=J[b>>2];j=m;n=J[b+4>>2];d=n;o=J[b+28>>2];h=o;p=J[b+24>>2];e=p;q=J[b+20>>2];f=q;r=J[b+16>>2];k=r;s=J[b+12>>2];t=s;u=J[b+8>>2];a=u;while(1){i=a;a=d;d=l<<2;c=k;h=(J[d+2214672>>2]+((((zEb(c,26)^zEb(c,21)^zEb(c,7))+(c&f)|0)+h|0)+((c^-1)&e)|0)|0)+J[d+g>>2]|0;d=j;j=h+((zEb(d,30)^zEb(d,19)^zEb(d,10))+((a^i)&d^a&i)|0)|0;k=h+t|0;h=e;e=f;f=c;t=i;l=l+1|0;if((l|0)!=64)continue;break}J[b+28>>2]=h+o;J[b+24>>2]=e+p;J[b+20>>2]=c+q;J[b+16>>2]= +k+r;J[b+12>>2]=i+s;J[b+8>>2]=a+u;J[b+4>>2]=d+n;J[b>>2]=j+m;fc=g+256|0}function Tjb(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;h=J[a+816>>2];a:{if(!h)break a;f=J[a+812>>2];if((f|0)<10)break a;d=f;f=J[a+808>>2];j=d+f|0;d=f+4|0;g=f+10|0;k=b<<16|c;n=J[a+820>>2];i=1;while(1){b=(K[d+3|0]|K[d+2|0]<<8)+d|0;f=b>>>0>j>>>0?j:b;b:{if(K[d+4|0]|!(i&n))break b;o=K[d+5|0];b=d+14|0;e=f-b|0;c=K[d+7|0]|K[g|0]<<8;d=(e|0)<(P(c,6)|0)?(e|0)/6|0:c;c:{if(J[a+824>>2]&i){g=0;if(!d)break b; +while(1){l=d+g>>>1|0;c=P(l,6)+b|0;e=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);if((e|0)==(k|0))break c;c=e>>>0>>0;g=c?l+1|0:g;d=c?d:l;if(g>>>0>>0)continue;break}break b}if(!d)break b;while(1){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))==(k|0)){c=b;break c}b=b+6|0;d=d-1|0;if(d)continue;break}break b}b=K[c+4|0]|K[c+5|0]<<8;m=((b<<8|b>>>8)<<16>>16)+(o&8?0:m)|0}h=h-1|0;if(!h)break a;i=i<<1;d=f;g=d+6| +0;if(j>>>0>=g>>>0)continue;break}}return m|0}function Nyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];H[b+3|0]=K[c+3|0]+K[b+3|0];c=c+4|0;b=(J[a+584>>2]<<2)+b|0;d=d+1|0;e=J[a+588>>2];if((d| +0)<(e|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+3|0];c=c+4|0;b=(J[a+584>>2]<<2)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}}if((e|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;e=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+3|0];c=c+4|0;b=(J[a+584>>2]<<2)+b|0;e=e+1|0;if((e|0)>2])continue; +break}}return 0}function iDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;e=rf(b);c=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];a:{if(c)while(1){if((e|0)==J[c+12>>2])if(!Qj(c+16|0,b,-1))break a;c=J[c+8>>2];if(c)continue;break}c=vc(32);J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;e=c+16|0;J[e>>2]=0;J[e+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+20>>2]=J[685894];b:{b=J[b>>2];c:{d:{if(b){f=J[J[b>>2]+28>>2];J[699344]=0;ca(f|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()| +0;break c}J[d+12>>2]=0}J[699344]=0;aa(5153,e|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break b;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b}ea(0)|0;Bc();B()}c=Z()|0;zc(d+12|0)}wc(e);ba(c|0);B()}b=J[c+16>>2];b=J[(b?b+12|0:2743576)>>2];J[c+24>>2]=0;J[c+20>>2]=b;J[c+28>>2]=J[685894];h=c,i=rf(e),J[h+12>>2]=i;Em(a,c)}fc=d+16|0;return c|0}function Wsa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=fc-32|0;fc=f;g=J[a+116>>2];d=g+1|0;ut(a+96|0,d);a:{b:{if(!(J[a+112>>2]<=(d|0)&J[a+116>>2]>(g|0))){a=Qc(f+8|0,2393794,2394220,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}J[J[a+100>>2]+(d-J[a+104>>2]<<2)>>2]=b;e=J[a+88>>2];c:{if((e|0)<=(b|0)){h=J[a+92>>2];if((h|0)>=(b|0))break c}ut(a+72|0,b);h=J[a+92>>2];e=J[a+88>>2]}if(!((b|0)<=(h|0)&(b|0)>=(e|0))){a=Qc(f+8|0,2393794,2394220,619,2413160,0);J[699344]=0;$(5179, +a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}J[J[a+76>>2]+(b-J[a+80>>2]<<2)>>2]=d;b=J[a+136>>2];d:{if((d|0)>=(b|0)){e=J[a+140>>2];if((g|0)<(e|0))break d}ut(a+120|0,d);e=J[a+140>>2];b=J[a+136>>2]}if(!((b|0)<=(d|0)&(e|0)>(g|0))){a=Qc(f+8|0,2393794,2394220,619,2434720,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}iV(J[a+124>>2]+(d-J[a+128>>2]<<4)|0,J[c+4>>2]);fc=f+32|0;return d|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function RZa(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;k=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<=0)break a;f=J[a+28>>2];g=(k<<1)-f|0;if((g|0)<=0)break a;b=0;if(e>>>0>=4){l=e&-4;while(1){h=b<<2;i=f+J[h+c>>2]|0;Ac(i,K[i-1|0],g);i=f+J[(h|4)+c>>2]|0;Ac(i,K[i-1|0],g);i=f+J[(h|8)+c>>2]|0;Ac(i,K[i-1|0],g);h=f+J[(h|12)+c>>2]|0;Ac(h,K[h-1|0],g);b=b+4|0;j=j+4|0;if((l|0)!=(j|0))continue;break}}e=e&3;if(e)while(1){j=f+J[(b<<2)+c>>2]|0;Ac(j,K[j-1|0],g);b=b+1|0;m=m+1|0;if((e|0)!=(m|0))continue;break}e=J[a+272>>2]}if(!(!k| +(e|0)<=0)){l=k&-2;i=k&1;j=0;h=0;while(1){e=j<<2;b=J[e+c>>2];g=J[(h<<2)+d>>2];f=J[(e|4)+c>>2];e=0;if((k|0)!=1)while(1){H[g|0]=(K[f+1|0]+(K[f|0]+(K[b|0]+K[b+1|0]|0)|0)|0)+1>>>2;H[g+1|0]=(K[f+3|0]+(K[f+2|0]+(K[b+2|0]+K[b+3|0]|0)|0)|0)+2>>>2;f=f+4|0;b=b+4|0;g=g+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}if(i)H[g|0]=(K[f+1|0]+(K[f|0]+(K[b|0]+K[b+1|0]|0)|0)|0)+1>>>2;h=h+1|0;j=j+2|0;if((j|0)>2])continue;break}}}function Fy(a){var b=0,c=0;a:{if(K[a+460|0]|!(K[a+496|0]|K[a+476|0]))break a;b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{c= +J[a+52>>2];if((c|0)<=12287){b=1164;t:switch(c|0){case 2:case 3:case 4:break a;case 5:break i;case 1:break o;case 0:break b;case 8:break c;case 7:break d;case 6:break g;default:break t}switch(c-4096|0){case 1:break m;case 0:break s;case 6:break f;case 5:break h;default:break a}}if((c|0)<=36863){u:switch(c-12288|0){case 1:break k;case 0:break q;default:break u}if((c|0)==16390)break e;if((c|0)!=20480)break a;b=1165;break b}v:switch(c-36864|0){case 1:break l;case 0:break r;default:break v}switch(c-45056| +0){case 1:break j;case 0:break p;default:break n}}b=1166;break b}b=1167;break b}b=1168;break b}b=1169;break b}b=1170;break b}if((c|0)!=65537)break a;b=1171;break b}b=1172;break b}b=1173;break b}b=1174;break b}b=1175;break b}b=1176;break b}b=1177;break b}b=1178;break b}b=1179;break b}b=1180;break b}b=1181;break b}b=1182}J[a+968>>2]=b}}function $la(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;g=fc-16|0;fc=g;a:{b:{c=K[b+11|0];c:{if(!(c<<24>>24<0?J[b+4>>2]:c)){J[a+8>>2]=J[a+4>>2];break c}J[g+ +12>>2]=0;i=SL(b,g+12|0);c=J[a+4>>2];J[a+8>>2]=c;k=a+4|0;b=J[g+12>>2];d:{e:{if(b>>>0>J[a+12>>2]-c>>2>>>0){if(b>>>0>=1073741824)break b;f=b<<2;b=vc(f);J[a+8>>2]=b;J[a+4>>2]=b;J[a+12>>2]=b+f;if(!c)break e;uc(c);b=J[g+12>>2]}if(!b)break d}while(1){h=(j<<2)+i|0;b=J[a+8>>2];f:{if((b|0)!=J[a+12>>2]){J[b>>2]=J[h>>2];J[a+8>>2]=b+4;break f}f=J[k>>2];c=b-f|0;d=c>>2;e=d+1|0;if(e>>>0>=1073741824)break b;l=d<<2;d=c>>1;d=c>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d){if(d>>>0>=1073741824)break a;c=vc(d<<2)}else c= +0;e=l+c|0;J[e>>2]=J[h>>2];h=e+4|0;if((b|0)!=(f|0))while(1){e=e-4|0;b=b-4|0;J[e>>2]=J[b>>2];if((b|0)!=(f|0))continue;break}J[a+12>>2]=c+(d<<2);J[a+8>>2]=h;J[a+4>>2]=e;if(!f)break f;uc(f)}j=j+1|0;if(j>>>0>2])continue;break}}if(!i)break c;uc(i)}fc=g+16|0;return a|0}qj(k);B()}Pd();B()}function WC(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0;i=(J[a+24>>2]+a|0)+(h<<2)|0;l=i+4|0;j=(J[a+20>>2]+a|0)+(h<<1)|0;m=j+2|0;h=J[i>>2];j=L[j>>1];a:{b:{c:{d:{e:{if(!c){if((h&-1610612736)==-2147483648)break e;if(!j)break a; +i=g+1|0;g=(g<<1)+f|0;break b}if(h&536870912)break d}f:{if((h>>>24&31)<(d|0))break f;h=J[b>>2];if(((e>>>0<65536?1:2)|0)==(g|0)){kc[J[b+4>>2]](h,e);break f}kc[J[b+12>>2]](h,f,g)}if(!j)break a;i=g+1|0;g=(g<<1)+f|0;if(!c)break b;break c}if(!j)break a;i=g+1|0;g=(g<<1)+f|0}h=0;while(1){I[g>>1]=L[(h<<1)+m>>1];k=J[(h<<2)+l>>2];g:{if(!k)break g;if(k>>>0<=16777215){WC(a,b,c,d,e,f,i,k);break g}if(k&536870912|(k>>>24&31)<(d|0))break g;kc[J[b+12>>2]](J[b>>2],f,i)}h=h+1|0;if((j|0)!=(h|0))continue;break}break a}h= +0;while(1){I[g>>1]=L[(h<<1)+m>>1];c=J[(h<<2)+l>>2];h:{if(!c)break h;if(c>>>0>=16777216){if((c&-1610612736)!=-2147483648|(c>>>24&31)<(d|0))break h;kc[J[b+12>>2]](J[b>>2],f,i);break h}WC(a,b,0,d,e,f,i,c)}h=h+1|0;if((j|0)!=(h|0))continue;break}}}function T5(a){a=a|0;var b=0,c=0;J[a>>2]=339588;b=J[a+20>>2];if(b){kc[J[J[b>>2]+20>>2]](b);J[a+20>>2]=0}b=J[a+16>>2];if(b){uc(BM(b));J[a+16>>2]=0}b=J[a+664>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+664>>2]=0}a:{b=J[a+12>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c| +0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+12>>2]=0}b=J[a+668>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+668>>2]=0}b=J[a+696>>2];if(b){J[a+700>>2]=b;uc(b)}J[a+528>>2]=340552;if(H[a+555|0]<0)uc(J[a+544>>2]);if(H[a+543|0]<0)uc(J[a+532>>2]);J[a+456>>2]=340552;if(H[a+483|0]<0)uc(J[a+472>>2]);if(H[a+471|0]<0)uc(J[a+460>>2]);J[a+88>>2]=340504;b=J[a+116>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break a;J[a+116>>2]=0}Se(a+300|0);b=J[a+208>>2];if(b){J[a+212>>2]=b;uc(b)}if(H[a+135|0]<0)uc(J[a+124>>2]);Jd(a+120|0);J[a+24>>2]=340456;b=J[a+52>>2];if(b){uc(b);J[a+52>>2]=0}return a|0}ea(0)|0;Bc();B()}function Kjb(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;e=fc-16|0;fc=e;h=J[a+100>>2];J[e+8>>2]=0;c=3;a:{if(!J[a+868>>2])break a;c=kc[J[a+516>>2]](a,1129270354,b,e+4|0)|0;J[e+12>>2]=c;b:{if(c)break b;c:{c=J[e+4>>2];if(c>>>0<14)break c;c=Oi(b,c,e+8|0);J[e+12>>2]=c;if(c)break b;c=J[e+8>> +2];f=he(h,24,e+12|0);if(J[e+12>>2])break b;d=K[c|0]|K[c+1|0]<<8;d=d<<8|d>>>8;I[f>>1]=d;if(d&65535)break c;d=K[c+2|0]|K[c+3|0]<<8;g=d<<8|d>>>8;I[f+2>>1]=g;d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);i=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=J[e+4>>2];if(i>>>0>=d>>>0|d-i>>>0>>0)break c;g=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);c=K[c+12|0]|K[c+13|0]<<8;j=c<<8|c>>>8;I[f+4>>1]=j;c=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(c>>>0>=d>>>0|d-c>>>0<(j&65535)<<2>>>0)break c; +b=J[e+8>>2];J[f+20>>2]=d;J[f+16>>2]=b;J[f+12>>2]=b+c;J[f+8>>2]=b+i;J[a+872>>2]=f;c=0;break a}J[e+12>>2]=8}$f(b,e+8|0);if(f)kc[J[h+8>>2]](h,f);c=J[e+12>>2]}fc=e+16|0;return c|0}function udb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;f=b+12|0;g=b+8|0;a:{b:{c:{d:{while(1){c=J[b+20>>2];J[b+20>>2]=c+1;J[699344]=0;e=d+12|0;da(2279,e|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;J[699344]=0;c=ga(2280,e|0,0,335E3)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break c;h=J[c>>2];J[d+24>>2]=J[c+4>>2];e=K[c+7|0]|K[c+8|0]<<8|(K[c+9|0]<<16|K[c+10|0]<<24);H[d+27|0]=e;H[d+28|0]=e>>>8;H[d+29|0]=e>>>16;H[d+30|0]=e>>>24;J[c>>2]=0;J[c+4>>2]=0;e=K[c+11|0];J[c+8>>2]=0;if(H[a+11|0]<0)uc(J[a>>2]);J[a>>2]=h;c=K[d+27|0]|K[d+28|0]<<8|(K[d+29|0]<<16|K[d+30|0]<<24);H[a+7|0]=c;H[a+8|0]=c>>>8;H[a+9|0]=c>>>16;H[a+10|0]=c>>>24;J[a+4>>2]=J[d+24>>2];H[a+11|0]=e;if(H[d+23|0]<0)uc(J[d+12>>2]);J[699344]=0;c=mj(g,a);e=J[699344];J[699344]=0;if((e|0)==1)break b;if((c|0)!=(f|0))continue; +break}fc=d+32|0;return}b=Z()|0;break a}b=Z()|0;if(H[d+23|0]>=0)break a;uc(J[d+12>>2]);break a}b=Z()|0}if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}function Z6(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=J[a>>2];a:{if(!h)break a;d=J[a+8>>2];f=h&3;b:{if(!f){e=h;break b}e=h;while(1){J[d+24>>2]=-1;J[d+16>>2]=J[d+16>>2]&-5;d=d+28|0;e=e-1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}if(h>>>0<4)break a;while(1){J[d+24>>2]=-1;J[d+52>>2]=-1;J[d+80>>2]=-1;J[d+108>>2]=-1;J[d+16>>2]=J[d+16>>2]&-5;J[d+44>>2]=J[d+44>>2]&-5; +J[d+72>>2]=J[d+72>>2]&-5;J[d+100>>2]=J[d+100>>2]&-5;d=d+112|0;e=e-4|0;if(e)continue;break}}if(!b){J[a+4>>2]=0;return}d=0;g=0;e=0;f=0;while(1){if(!d){g=K[c|0];d=128;c=c+1|0}c:{if(!(d&g))break c;i=J[a+8>>2]+P(e,28)|0;j=J[i+16>>2];if(j&4)break c;J[i+16>>2]=j|4;if(f>>>0>=h>>>0)break c;J[J[a+12>>2]+(f<<2)>>2]=i;f=f+1|0}d=d>>>1|0;e=e+1|0;if((e|0)!=(b|0))continue;break}J[a+4>>2]=f;if((f|0)>=2){c=J[a+12>>2];a=1;while(1){e=J[c+(a<<2)>>2];h=J[e>>2];d=a;while(1){b=d-1|0;g=c+(b<<2)|0;i=J[g>>2];if((h|0)<=J[i>> +2]){J[c+(d<<2)>>2]=i;J[g>>2]=e;g=(d|0)>1;d=b;if(g)continue}break}a=a+1|0;if((f|0)!=(a|0))continue;break}}}function Q2(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;e=J[a+12>>2];f=J[a+8>>2];if((e|0)!=(f|0)){c=K[b+11|0];d=c<<24>>24<0;h=d?J[b>>2]:b;j=d?J[b+4>>2]:c;d=f;while(1){g=K[d+11|0];i=g<<24>>24;b=(i|0)<0;a:{c=J[d+4>>2];if(((b?c:g)|0)!=(j|0))break a;b:{if(!b){b=h;c=d;if(!i)break b;while(1){if(K[c|0]!=K[b|0])break a;b=b+1|0;c=c+1|0;g=g-1|0;if(g)continue;break}break b}if(!c)break b;if(dd(J[d>> +2],h,c))break a}b=J[d+12>>2];if(b){uc(b);J[d+12>>2]=0;f=J[a+8>>2];e=J[a+12>>2]}d=P((d-f|0)/20|0,20)+f|0;b=d+20|0;c:{if((e|0)==(b|0)){c=d;break c}c=d;while(1){if(H[c+11|0]<0)uc(J[c>>2]);f=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=f;J[c+8>>2]=J[b+8>>2];H[b+11|0]=0;H[b|0]=0;f=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=f;c=c+20|0;b=b+20|0;if((e|0)!=(b|0))continue;break}e=J[a+12>>2]}c=d+P((c-d|0)/20|0,20)|0;if((c|0)!=(e|0))while(1){b=e-20|0;if(H[e-9|0]<0)uc(J[b>>2]);e=b;if((b|0)!=(c|0))continue;break}J[a+12>> +2]=c;return 1}d=d+20|0;if((e|0)!=(d|0))continue;break}}return 0}function G2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=J[a+4>>2];if(J[g+48>>2]>=8){a:{d=J[a+8>>2];e=J[a+12>>2];if(d>>>0>=e>>>0){J[b>>2]=8;break a}f=d+2|0;if(f>>>0>e>>>0){H[g+37|0]=K[d|0];H[J[a+4>>2]+36|0]=1;J[a+8>>2]=d+1;J[b>>2]=11;break a}c=K[d+1|0];h=K[d|0]|c<<8;if((c&248)!=216){J[a+8>>2]=f;return h|0}b:{c:{d:{if(c&4)break d;c=d+4|0;if(e>>>0>=c>>>0){e=K[d+3|0];if((e&252)!=220)break d;e=(K[f|0]|e<<8)+(h<<10)|0;if(e>>>0<=56613887)break c; +J[a+8>>2]=c;return e-56613888|0}f=e-d|0;H[g+36|0]=f;c=g+37|0;g=e+(d^-1)|0;h=f&7;if(h){f=0;while(1){H[c|0]=K[d|0];c=c+1|0;d=d+1|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}f=11;if(g>>>0<7){c=e;break b}while(1){H[c|0]=K[d|0];H[c+1|0]=K[d+1|0];H[c+2|0]=K[d+2|0];H[c+3|0]=K[d+3|0];H[c+4|0]=K[d+4|0];H[c+5|0]=K[d+5|0];H[c+6|0]=K[d+6|0];H[c+7|0]=K[d+7|0];c=c+8|0;d=d+8|0;if((e|0)!=(d|0))continue;break}c=e;break b}c=f}H[g+36|0]=2;H[g+37|0]=K[c-2|0];H[g+38|0]=K[c-1|0];f=12}J[b>>2]=f;J[a+8>>2]=c;return 65535}a= +65535}else a=-9;return a|0}function $v(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;J[c>>2]=b;ca(5647,c+8|0,2388618,c|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){b=J[c+8>>2];d:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;b=Z()|0;break c}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break e;J[699344]=0;d=J[b+4>>2]-1|0;J[b+ +4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}b=Z()|0;zc(c+12|0);break c}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[c+8>>2];J[c+8>>2]=0;f:{if(!b)break f;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}fc=c+16|0;return a|0}b=Z()|0;break b}zc(c+8|0)}wc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function lua(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;ia(5660,e+8|0,b|0,c|0,d|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){b=J[e+8>>2];d:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,e+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;d=Z()|0;break c}J[e+12>>2]=0}J[699344]=0;aa(5153,a|0,e+12|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!= +1){if(c)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}d=Z()|0;zc(e+12|0);break c}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];a=J[e+8>>2];J[e+8>>2]=0;f:{if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=e+16|0;return}d=Z()|0;break b}zc(e+8|0)}wc(a);ba(d|0);B()}ea(0)|0;Bc();B()}function kua(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e= +0;e=fc-16|0;fc=e;J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;ia(5666,e+8|0,b|0,c|0,d|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){b=J[e+8>>2];d:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,e+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;d=Z()|0;break c}J[e+12>>2]=0}J[699344]=0;aa(5153,a|0,e+12|0)|0;b=J[699344];J[699344]=0;e:{if((b|0)!=1){b=J[e+12>>2];J[e+12>>2]=0;if(!b)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break e;J[699344]=0;$(5147, +b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break e}break a}d=Z()|0;zc(e+12|0);break c}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];a=J[e+8>>2];J[e+8>>2]=0;f:{if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break f;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=e+16|0;return}d=Z()|0;break b}zc(e+8|0)}wc(a);ba(d|0);B()}ea(0)|0;Bc();B()}function O1(a){var b=0,c=0,d=0;c=fc-96|0;fc=c;a:{if(!a)break a;if(!Ic(a,28679)){b=J[655075]; +break a}b:{c:{d:{e:{f:{if((a|0)!=28575){d=K[a|0]&223;if((d|0)!=70)break e;if((K[a+1|0]&223)!=73|(K[a+2|0]&223)!=76|((K[a+3|0]&223)!=69|K[a+4|0]!=58))break f;if(K[a+5|0]!=47|K[a+6|0]!=47|((K[a+7|0]&223)!=76|(K[a+8|0]&223)!=79))break f;if((K[a+9|0]&223)!=67|(K[a+10|0]&223)!=65|((K[a+11|0]&223)!=76|(K[a+12|0]&223)!=72))break f;if((K[a+13|0]&223)!=79|(K[a+14|0]&223)!=83|((K[a+15|0]&223)!=84|K[a+16|0]!=47))break f}a=a+16|0;break b}if((a|0)==28645)break c;if((d|0)!=70|(K[a+1|0]&223)!=73|((K[a+2|0]&223)!= +76|(K[a+3|0]&223)!=69))break d;if(K[a+4|0]!=58|K[a+5|0]!=47|(K[a+6|0]!=47|K[a+7|0]!=47))break d;break c}if((a|0)==28645)break c}if((a|0)!=28623){if((d|0)!=70|(K[a+1|0]&223)!=73|((K[a+2|0]&223)!=76|(K[a+3|0]&223)!=69))break b;if(K[a+4|0]!=58|K[a+5|0]!=47)break b}a=a+5|0;break b}a=a+7|0}if((ol(a,c)|0)==-1)break a;b=jk(a,5622);if(b)break a;b=0;MK(a)}fc=c+96|0;return b}function gva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;J[a>>2]=0;a:{e=J[c>>2];b:{c:{if(e){f=J[J[e>>2]+20>>2];J[699344]= +0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;if(e){J[699344]=0;b=ja(5178,d+8|0,2389953,2385973,1189,2426092,0)|0;c=J[699344];J[699344]=0;d:{if((c|0)!=1){J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;B()}c=Z()|0;break b}c=Z()|0;Kc(b);break b}e=J[b+12>>2];c=J[J[c>>2]+12>>2];J[699344]=0;f=d+8|0;ia(5639,f|0,b|0,e|0,c|0);b=J[699344];J[699344]=0;e:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;a=J[d+8>>2];J[d+8>>2]=0;if(!a)break a; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break a;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}c=Z()|0;break b}c=Z()|0;zc(d+8|0);break b}J[699344]=0;aa(5145,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}c=Z()|0}zc(a);ba(c|0);B()}fc=d+32|0}function yz(a,b,c,d){var e=0,f=0,g=0,h=0;g=fc-32|0;fc=g;e=d&2147483647;h=e;f=e-1006698496|0;e=e-1140785152|0;a:{if((f|0)==(e|0)&0|e>>>0>f>>>0){e=c<<4|b>>>28;c=d<<4|c>>>28;b= +b&268435455;if((b|0)==134217728&(a|0)!=0|b>>>0>134217728){f=c+1073741824|0;e=e+1|0;f=e?f:f+1|0;break a}f=c+1073741824|0;if(a|(b|0)!=134217728)break a;a=e&1;e=a+e|0;f=a>>>0>e>>>0?f+1|0:f;break a}if(!(!c&(h|0)==2147418112?!(a|b):h>>>0<2147418112)){a=d<<4|c>>>28;e=c<<4|b>>>28;f=a&524287|2146959360;break a}e=0;f=2146435072;if(h>>>0>1140785151)break a;f=0;h=h>>>16|0;if(h>>>0<15249)break a;e=d&65535|65536;Gi(g+16|0,a,b,c,e,h-15233|0);hr(g,a,b,c,e,15361-h|0);b=J[g+8>>2];e=b<<4;b=J[g+12>>2]<<4|b>>>28;c=J[g>> +2];f=J[g+4>>2];h=f;e=f>>>28|e;f=b;a=h&268435455;b=c|(J[g+16>>2]|J[g+24>>2]|(J[g+20>>2]|J[g+28>>2]))!=0;if((a|0)==134217728&(b|0)!=0|a>>>0>134217728){e=e+1|0;f=e?f:f+1|0;break a}if(b|(a|0)!=134217728)break a;a=e;e=e+(e&1)|0;f=a>>>0>e>>>0?f+1|0:f}fc=g+32|0;x(0,e|0);x(1,d&-2147483648|f);return+z()}function yva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;J[a>>2]=0;a:{e=J[c>>2];b:{c:{if(e){f=J[J[e>>2]+16>>2];J[699344]=0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;if(e){J[699344]= +0;b=ja(5178,d+8|0,2395105,2385973,515,2425936,0)|0;c=J[699344];J[699344]=0;d:{if((c|0)!=1){J[699344]=0;$(5179,b|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;B()}c=Z()|0;break b}c=Z()|0;Kc(b);break b}e=J[b+12>>2];c=J[J[c>>2]+12>>2];J[699344]=0;f=d+8|0;ia(5639,f|0,b|0,e|0,c|0);b=J[699344];J[699344]=0;e:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;a=J[d+8>>2];J[d+8>>2]=0;if(!a)break a;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c| +0)!=1){if(b)break a;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}c=Z()|0;break b}c=Z()|0;zc(d+8|0);break b}J[699344]=0;aa(5145,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}c=Z()|0}zc(a);ba(c|0);B()}fc=d+32|0}function _na(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[a>>2]=0;J[a+4>>2]=0;J[a+40>>2]=0;H[a+38|0]=1;I[a+30>>1]=0;I[a+32>>1]=0;I[a+34>>1]=0;I[a+36>>1]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;d=a+12|0; +a:{b:{c:{if((a|0)==(b|0))break c;if(H[b+11|0]>=0){e=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=e;J[a+8>>2]=J[b+8>>2];break c}e=J[b+4>>2];b=J[b>>2];J[699344]=0;ga(1631,a|0,b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b}if((c|0)==(d|0))break a;e=K[c+11|0];b=e<<24>>24;d:{if(H[a+23|0]>=0){if((b|0)<0)break d;b=J[c+4>>2];J[d>>2]=J[c>>2];J[d+4>>2]=b;J[d+8>>2]=J[c+8>>2];return a|0}f=J[c>>2];g=J[c+4>>2];J[699344]=0;b=(b|0)<0;ga(1630,d|0,(b?f:c)|0,(b?g:e)|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;break a}b= +J[c+4>>2];c=J[c>>2];J[699344]=0;ga(1631,d|0,c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}b=Z()|0;if(H[a+35|0]<0)uc(J[a+24>>2]);if(H[a+23|0]<0)uc(J[d>>2]);if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}return a|0}function Q1a(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;i=fc-16|0;fc=i;a:{b:{c:{if(J[b>>2]>0){H[J[a+4>>2]+36|0]=0;break c}k=J[a+8>>2];d:{e:{while(1){f=J[a+12>>2];h=J[a+8>>2];if(f>>>0<=h>>>0)break a;if(M[a+20>>2]>M[a+16>>2]){c=J[a+4>>2];d=K[c+36|0];f:{if(d){e=i+13|0;g=c+37| +0;c=d<<24>>24;xc(e,g,c);j=c+e|0;c=3-c|0;g=f-h|0;g=c>>>0>>0?c:g;j=xc(j,h,g);J[a+12>>2]=j+g;J[a+8>>2]=e;c=Y2(a,b);J[a+12>>2]=f;J[a+8>>2]=h+(J[a+8>>2]-j|0);f=d+g|0;d=J[a+4>>2];if(J[b>>2]==11){H[d+36|0]=f;xc(d+37|0,e,f<<24>>24);J[a+8>>2]=J[a+12>>2];e=0;break b}H[d+36|0]=0;e=i+13|0;break f}c=Y2(a,b);f=J[a+8>>2]-h|0;e=h}if(J[b>>2]>0)break d;d=c&65535;if(d>>>0>65533)break e;d=J[a+16>>2];J[a+16>>2]=d+2;I[d>>1]=c;c=J[a+24>>2];if(c){J[a+24>>2]=c+4;J[c>>2]=h-k}if(J[b>>2]<=0)continue;break d}break}e=15;if(M[a+ +20>>2]<=M[a+16>>2])break b;break a}J[b>>2]=(d|0)==65534?10:12}a=J[a+4>>2];H[a+36|0]=f;if(f<<24>>24<=0)break c;xc(a+37|0,e,f&255)}e=0;if(J[b>>2]!=11)break a}J[b>>2]=e}fc=i+16|0}function Ns(a,b,c){var d=0,e=0,f=0,g=0;d=c-b|0;if((d|0)<=0)return 0;a=(b>>3)+a|0;b=b&7;a:{if(b){c=8-b|0;e=K[(K[a|0]<>>0>>0?c:e;f=c>>>0>>0?c:d;if(b+f>>>0<8)break a;d=d-f|0;a=a+1|0}b:{c:{d:{if((d|0)<64){b=a;a=d;c=f;break d}e:{if(!(a&3)){b=a;c=f;a=d;break e}f:{g:{b=K[a|0];if((b|0)!=255){c=f;break g}e= +d-8|0;c=f+8|0;b=a+1|0;if(!(b&3)){a=e;e=d;break f}b=K[b|0];if((b|0)!=255)break g;g=d-16|0;c=f+16|0;b=a+2|0;if(!(b&3)){a=g;break f}b=K[b|0];if((b|0)!=255)break g;e=d-24|0;c=f+24|0;b=a+3|0;if(!(b&3)){a=e;e=g;break f}b=K[b|0];if((b|0)!=255)break g;b=a+4|0;a=d-32|0;c=f+32|0;break f}return K[b+96128|0]+c|0}if((e|0)<40)break d}d=a;while(1){if(J[b>>2]!=-1){a=d;break c}b=b+4|0;c=c+32|0;e=(d|0)>63;a=d-32|0;d=a;if(e)continue;break}}if((a|0)<8)break b}d=a;while(1){a=K[b|0];if((a|0)!=255)return K[a+96128|0]+c| +0;b=b+1|0;c=c+8|0;e=(d|0)>15;a=d-8|0;d=a;if(e)continue;break}}if((a|0)<=0)return c;b=K[K[b|0]+96128|0];f=((a|0)<(b|0)?a:b)+c|0}return f}function No(a,b,c){var d=0,e=0,f=0,g=0;a:{b:switch(c-1|0){case 1:c=J[b+8>>2];if((c|0)<=0)break a;d=O[a+120>>3];e=O[a+112>>3];g=J[b>>2];b=0;while(1){a=J[g+(b<<2)>>2];f=O[a+32>>3];O[a+32>>3]=e-O[a+16>>3];O[a+16>>3]=e-f;f=O[a+40>>3];O[a+40>>3]=d-O[a+24>>3];O[a+24>>3]=d-f;H[a+88|0]=K[a+88|0]+2&3;b=b+1|0;if((c|0)!=(b|0))continue;break}break a;case 0:d=O[a+120>>3];O[a+ +120>>3]=O[a+112>>3];O[a+112>>3]=d;c=J[b+8>>2];if((c|0)<=0)break a;g=J[b>>2];b=0;while(1){a=J[g+(b<<2)>>2];e=O[a+40>>3];O[a+40>>3]=O[a+32>>3];f=O[a+24>>3];O[a+24>>3]=O[a+16>>3];O[a+32>>3]=d-f;O[a+16>>3]=d-e;H[a+88|0]=K[a+88|0]+1&3;b=b+1|0;if((c|0)!=(b|0))continue;break}break a;case 2:break b;default:break a}e=O[a+120>>3];d=O[a+112>>3];O[a+120>>3]=d;O[a+112>>3]=e;c=J[b+8>>2];if((c|0)<=0)break a;g=J[b>>2];b=0;while(1){a=J[g+(b<<2)>>2];e=O[a+32>>3];O[a+32>>3]=O[a+40>>3];f=O[a+16>>3];O[a+16>>3]=O[a+24>> +3];O[a+40>>3]=d-f;O[a+24>>3]=d-e;H[a+88|0]=K[a+88|0]-1&3;b=b+1|0;if((c|0)!=(b|0))continue;break}}}function xxa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;k=(g|0)/2|0;a:{if(!f)break a;g=f-1|0;j=J[a+60>>2];if(e>>>0>=2){c=e-2|0;m=c&2;n=c>>>0<2;while(1){l=g;a=e;g=b;f=i;if(!m){a=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];g=b+8|0;f=f+1|0;a=c}d=c;if(!n){while(1){b=g;d=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[d>>2];J[b+4>>2]=J[d+4>>2];d=f;i=J[(K[f+1| +0]<<2)+j>>2];J[b+8>>2]=J[i>>2];J[b+12>>2]=J[i+4>>2];g=b+16|0;f=f+2|0;a=a-4|0;if(a>>>0>1)continue;break}i=d+1|0;d=a;b=b+8|0}b:{if(d){J[g>>2]=J[J[(K[f|0]<<2)+j>>2]>>2];g=3;a=2;break b}g=2;a=1}b=((g<<2)+b|0)+(h<<2)|0;g=l-1|0;i=(a+i|0)+k|0;if(l)continue;break}break a}if(!e)break a;if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=g;if(!g)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+ +b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f=f-2|0;if(a)continue;break}}}function eya(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0;k=(g|0)/2|0;a:{if(!f)break a;g=f-1|0;j=J[a+64>>2];if(e>>>0>=2){c=e-2|0;m=c&2;n=c>>>0<2;while(1){l=g;a=e;g=b;f=i;if(!m){a=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[a>>2];J[b+4>>2]=J[a+4>>2];g=b+8|0;f=f+1|0;a=c}d=c;if(!n){while(1){b=g;d=J[(K[f|0]<<2)+j>>2];J[b>>2]=J[d>>2];J[b+4>>2]=J[d+4>>2];d=f;i=J[(K[f+1|0]<<2)+j>>2];J[b+8>>2]=J[i>>2];J[b+ +12>>2]=J[i+4>>2];g=b+16|0;f=f+2|0;a=a-4|0;if(a>>>0>1)continue;break}i=d+1|0;d=a;b=b+8|0}b:{if(d){J[g>>2]=J[J[(K[f|0]<<2)+j>>2]>>2];g=3;a=2;break b}g=2;a=1}b=((g<<2)+b|0)+(h<<2)|0;g=l-1|0;i=(a+i|0)+k|0;if(l)continue;break}break a}if(!e)break a;if(f&1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];i=(i+k|0)+1|0;b=((h<<2)+b|0)+4|0;f=f-2|0}else f=g;if(!g)break a;while(1){J[b>>2]=J[J[(K[i|0]<<2)+j>>2]>>2];a=h<<2;b=(a+b|0)+4|0;c=(i+k|0)+1|0;J[b>>2]=J[J[(K[c|0]<<2)+j>>2]>>2];b=(a+b|0)+4|0;i=(c+k|0)+1|0;a=(f|0)!=1;f= +f-2|0;if(a)continue;break}}}function bFa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=fc-32|0;fc=f;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d:{e:{f:{g:{if(d)while(1){e=J[J[b>>2]+12>>2];J[699344]=0;e=ga(e|0,b|0,c|0,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break g;if(!e){J[699344]=0;c=ja(5178,f+8|0,2390640,2387108,474,2396576,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=ea(2423616)|0;d=gc;Kc(c);break d}c=c+e|0;d=d-e|0;if(d)continue; +break}J[b+12>>2]=0;break a}b=ea(2423616)|0;break e}b=ea(2423616)|0}d=gc}if((sa(2423616)|0)!=(d|0))break b;b=oa(b|0)|0;J[699344]=0;b=J[b+4>>2];b=b?b:2389698;c=J[699344];J[699344]=0;h:{if((c|0)==1)break h;J[699344]=0;aa(5224,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break h;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;break b}b=Z()|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)!=1)break b;ea(0)|0;Bc()}B()}wc(a);ba(b|0);B()}fc=f+32|0}function sea(a,b,c){a=a| +0;b=b|0;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=fc-16|0;fc=i;if(K[b+11|0]>>>7|0)g=J[b+4>>2];else g=K[b+11|0]&127;while(1){a:{if(K[b+11|0]>>>7|0)f=J[b>>2];else f=b;O[i>>3]=c;k=fc-16|0;fc=k;J[k+12>>2]=i;e=fc-416|0;fc=e;d=-1;j=g+1|0;J[e+156>>2]=j-1;J[e+152>>2]=f;Ac(e+8|0,0,144);J[e+84>>2]=-1;J[e+56>>2]=256;J[e+44>>2]=7242;J[e+88>>2]=-1;J[e+52>>2]=e+160;J[e+92>>2]=e+152;b:{if(!j)break b;if((j|0)<0){J[698583]=61;break b}f=e+8|0;d=fc-208|0;fc=d;J[d+204>>2]=i;h=d+160|0;Ac(h,0,40);J[d+200>> +2]=J[d+204>>2];c:{if((zQ(0,d+200|0,d,h)|0)<0){h=-1;break c}m=J[f+76>>2];AQ(f);h=J[f>>2];J[f>>2]=h&-33;n=zQ(f,d+200|0,d,d+160|0);l=J[f>>2];J[f>>2]=l|h&32;h=l&32?-1:n;if((m|0)<0)break c}fc=d+208|0;RF(f,0,0);d=h>>>0>=j>>>0?-1:h}fc=e+416|0;fc=k+16|0;d:{if((d|0)>=0){if(d>>>0<=g>>>0)break a;g=d;break d}g=g<<1|1}EF(b,g);continue}break}EF(b,d);g=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=g;J[a+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;fc=i+16|0}function n4a(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=b+1|0;i=vc(d>>>0>1073741823?-1:d<<2);if((b|0)>0)while(1){f=a+h|0;e=H[f|0];d=e&255;g=1;a:{if((e|0)>=0)break a;b:{c:{if(!(d&32)){e=h+1|0;if((e|0)>=(b|0)){g=2;d=0;break a}g=2;d=d<<6&1984;break c}if(!(d&16)){e=h+2|0;if((e|0)>=(b|0)){g=3;d=0;break a}g=3;d=d<<12&61440|(K[f+1|0]&63)<<6;break c}if(!(d&15)){e=h+3|0;if((e|0)>=(b|0))break b;g=4;d=d<<18&1835008|(K[f+1|0]&63)<<12|(K[f+2|0]&63)<<6;break c}if(!(d&8)){e=h+3|0;if((e|0)>=(b|0))break b;g=4;d=d<<18&1835008|(K[f+1|0]&63)<<12|(K[f+2|0]&63)<< +6;break c}if(!(d&4)){e=h+4|0;if((e|0)>=(b|0)){g=5;d=0;break a}g=5;d=d<<24&50331648|(K[f+1|0]&63)<<18|(K[f+2|0]&63)<<12|(K[f+3|0]&63)<<6;break c}e=h+5|0;if((e|0)>=(b|0)){g=6;d=0;break a}g=6;d=d<<30&1073741824|(K[f+1|0]&63)<<24|(K[f+2|0]&63)<<18|(K[f+3|0]&63)<<12|(K[f+4|0]&63)<<6}d=d|K[a+e|0]&63;break a}g=4;d=0}J[(j<<2)+i>>2]=d;j=j+1|0;h=g+h|0;if((h|0)<(b|0))continue;break}J[(j<<2)+i>>2]=0;HF(c,i);uc(i)}function uwa(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=fc-256|0;fc=d;a:{if(b<1.001&b> +.999)break a;IH(b,d);h=L[a+8>>1];if(!h)break a;e=L[a+10>>1];if(!e)break a;i=J[a+16>>2];if(i){h=e&65534;j=e&1;while(1){c=i+P(P(L[a+12>>1],g),3)|0;f=0;if((e|0)!=1)while(1){H[c+2|0]=K[K[c+2|0]+d|0];H[c+1|0]=K[K[c+1|0]+d|0];H[c|0]=K[K[c|0]+d|0];H[c+5|0]=K[K[c+5|0]+d|0];H[c+4|0]=K[K[c+4|0]+d|0];H[c+3|0]=K[K[c+3|0]+d|0];c=c+6|0;f=f+2|0;if((h|0)!=(f|0))continue;break}if(j){H[c+2|0]=K[K[c+2|0]+d|0];H[c+1|0]=K[K[c+1|0]+d|0];H[c|0]=K[K[c|0]+d|0]}g=g+1|0;if(g>>>0>1])continue;break}break a}a=e&65534;i= +e&1;while(1){c=0;f=0;if((e|0)!=1)while(1){H[c+2|0]=K[K[c+2|0]+d|0];H[c+1|0]=K[K[c+1|0]+d|0];H[c|0]=K[K[c|0]+d|0];H[c+5|0]=K[K[c+5|0]+d|0];H[c+4|0]=K[K[c+4|0]+d|0];H[c+3|0]=K[K[c+3|0]+d|0];c=c+6|0;f=f+2|0;if((a|0)!=(f|0))continue;break}if(i){H[c+2|0]=K[K[c+2|0]+d|0];H[c+1|0]=K[K[c+1|0]+d|0];H[c|0]=K[K[c|0]+d|0]}g=g+1|0;if((h|0)!=(g|0))continue;break}}fc=d+256|0}function gV(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2434920;b=J[a+76>>2];J[a+76>>2]=0;a:{b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c; +d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+72>>2];J[a+72>>2]=0;c:{if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+68>>2];J[a+68>>2]=0;d:{if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a}b=J[a+64>>2];J[a+64>>2]=0;e:{if(!b)break e;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break e;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}hd(a+56|0);hd(a+44|0);hd(a+32|0);return nd(a)|0}ea(0)|0;Bc();B()}function OGa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=fc-16|0;fc=b;a:{if(H[a+11|0]>=0){J[b+8>>2]=J[a+8>>2];c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;break a}Ve(b,J[a>>2],J[a+4>>2])}c=K[b+11|0];a=c<<24>>24; +e=(a|0)<0;b:{d=J[b+4>>2];f=e?d:c;if(f){a=e?J[b>>2]:b;c=a+(f<<2)|0;while(1){d=J[a>>2];J[699344]=0;d=$s(d);e=J[699344];J[699344]=0;if((e|0)==1)break b;J[a>>2]=d;a=a+4|0;if((c|0)!=(a|0))continue;break}d=J[b+4>>2];c=K[b+11|0];a=c}e=a<<24>>24;c:{if((((e|0)<0?d:c)|0)==4){c=qd((e|0)<0?J[b>>2]:b,2383744,4);a=K[b+11|0];if(!c){e=1;break c}d=J[b+4>>2];c=a}e=1;f=a<<24>>24<0;if(((f?d:c)|0)==1){a=qd(f?J[b>>2]:b,2383764,1);c=K[b+11|0];if(!a){a=c;break c}d=J[b+4>>2];a=c}f=a<<24>>24;if((((f|0)<0?d:c)|0)==1){a=qd((f| +0)<0?J[b>>2]:b,2383772,1);c=K[b+11|0];if(!a){a=c;break c}d=J[b+4>>2];a=c}e=0;f=c;c=a<<24>>24;if((((c|0)<0?d:f)|0)!=2)break c;e=!qd((c|0)<0?J[b>>2]:b,2383780,2);a=K[b+11|0]}if(a<<24>>24<0)uc(J[b>>2]);fc=b+16|0;return e|0}a=Z()|0;if(H[b+11|0]<0)uc(J[b>>2]);ba(a|0);B()}function NL(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(J[a>>2]>0)break a;b:{if(J[693260]==2)break b;if(!$C(2773040))break b;yu(15,3060);d=o3(0,735468,736832,3061,a);c:{if(J[a>>2]>0)break c;c=i3(d);b=J[c>>2];if(b>>>0<=7){J[a>> +2]=3;Vh(d);break c}J[693262]=d;e=J[c+4>>2];J[693251]=e;g=J[c+8>>2];J[693252]=g;f=J[c+12>>2];J[693253]=f;h=J[c+16>>2];J[693254]=h;i=J[c+20>>2];J[693255]=i;j=J[c+24>>2];J[693256]=j;d=J[c+28>>2];J[693257]=d;k=J[c+32>>2];J[693258]=k;if((b|0)!=8)J[693259]=J[c+36>>2];b=(b<<1)+2|0;J[693242]=c+(b<<1);b=b+e|0;J[693243]=c+(b<<1);b=b+g|0;J[693244]=c+(b<<1);b=b+f|0;J[693245]=c+(b<<1);b=b+h|0;J[693246]=c+(b<<1);b=b+i|0;J[693247]=c+(b<<1);b=b+j|0;g=(c+(b<<1)|0)+(d<<1)|0;d:{e:{if(d){e=c+(b<<1)|0;f=L[e>>1];if(f>>> +0<2)break e}J[693248]=736842;J[693249]=(c+(b<<1)|0)+(d<<1);b=0;break d}J[693248]=e;J[693249]=e+(d<<1);b=f?k:0}J[693250]=g+(b<<1)}J[693261]=J[a>>2];J[693260]=2;break a}c=J[693261];if((c|0)<=0)break a;J[a>>2]=c}return J[a>>2]<=0}function Kja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=J[a+584>>2];if(d){b:{c:{d:{e:{f:{g:switch(b-292|0){default:h:switch(b-34908|0){case 3:break c;case 2:break d;case 1:break e;case 0:break f;default:break h}i:switch(b-65536|0){case 0:J[J[c>>2]>>2]=J[d+4>>2];break a;case 4:break i; +default:break b}J[J[c>>2]>>2]=J[d+76>>2];break a;case 0:case 1:J[J[c>>2]>>2]=J[d+28>>2];break a;case 34:J[J[c>>2]>>2]=J[d+24>>2];break a;case 35:I[J[c>>2]>>1]=L[d+16>>1];break a;case 2:case 3:case 4:case 5:case 6:case 7: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 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:break b;case 36:break g}J[J[c>>2]>>2]=J[d+20>>2];break a}J[J[c>>2]>>2]=J[d+ +32>>2];break a}J[J[c>>2]>>2]=J[d+36>>2];break a}J[J[c>>2]>>2]=J[d+40>>2];break a}J[J[c>>2]>>2]=J[d+44>>2];break a}return kc[J[d+48>>2]](a,b,c)|0}fa(79455,70539,1223,95708);B()}return 1}function Zk(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;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{c:{if(!d)break c;o=J[J[b+4>>2]>>2];while(1){e=c+k|0;if(e>>>0>o>>>0)break c;e=J[J[J[b+4>>2]+12>>2]+(e>>>6&67108860)>>2]+(e<<4&4080)|0;l=O[e+8>>3];m=O[e>>3];d:{if(f>>>0>>0){O[f+8>>3]=l;O[f>>3]=m;f=f+16|0;J[a+ +4>>2]=f;break d}n=f-i>>4;j=n+1|0;if(j>>>0>=268435456){J[699344]=0;$(2488,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;break a}g=h-i|0;e=g>>3;e=g>>>0>=2147483632?268435455:e>>>0>j>>>0?e:j;if(e>>>0>=268435456){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}J[699344]=0;j=e<<4;h=_(4,j|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;g=h+(n<<4)|0;O[g+8>>3]=l;O[g>>3]=m;h=h+j|0;e=g+16|0;if((f|0)!=(i|0))while(1){g=g-16|0;f=f-16|0;O[g>>3]=O[f>>3];O[g+8>>3]=O[f+8>>3];if((f|0)!= +(i|0))continue;break}J[a+8>>2]=h;J[a+4>>2]=e;J[a>>2]=g;if(i)uc(i);i=g;f=e}k=k+1|0;if((k|0)!=(d|0))continue;break}}return}ea(0)|0;Bc();B()}B()}function L2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=-9;h=J[a+4>>2];if(J[h+48>>2]>=8){c=J[a+8>>2];g=J[a+12>>2];if(c>>>0>=g>>>0){J[b>>2]=8;return 65535}e=c+2|0;if(g>>>0>>0){H[h+37|0]=K[c|0];H[J[a+4>>2]+36|0]=1;J[a+8>>2]=c+1;J[b>>2]=11;return 65535}f=K[c|0];d=K[c+1|0]|f<<8;a:{if((f&248)!=216)break a;b:{c:{d:{e:{if(f&4)break e;f=c+4|0;if(f>>>0>g>>>0)break d; +g=K[e|0];if((g&252)!=220)break e;e=(K[c+3|0]|g<<8)+(d<<10)|0;if(e>>>0>56613887)break c;e=f}H[h+36|0]=2;H[h+37|0]=K[e-2|0];H[h+38|0]=K[e-1|0];f=12;break b}e=g-c|0;H[h+36|0]=e;d=h+37|0;h=g+(c^-1)|0;e=e&7;if(e){f=0;while(1){H[d|0]=K[c|0];d=d+1|0;c=c+1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}f=11;if(h>>>0<7){e=g;break b}while(1){H[d|0]=K[c|0];H[d+1|0]=K[c+1|0];H[d+2|0]=K[c+2|0];H[d+3|0]=K[c+3|0];H[d+4|0]=K[c+4|0];H[d+5|0]=K[c+5|0];H[d+6|0]=K[c+6|0];H[d+7|0]=K[c+7|0];d=d+8|0;c=c+8|0;if((g|0)!=(c|0))continue; +break}e=g;break b}d=e-56613888|0;e=f;break a}J[b>>2]=f;d=65535}J[a+8>>2]=e}return d|0}function PD(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;m=b<<3;f=J[a+36>>2];a:{j=J[a+48>>2];g=J[j+4>>2];b:{if((g|0)<(d|0))break b;k=j+m|0;i=J[k+4>>2];if((i|0)>(e|0))break b;h=g;l=J[a+4>>2];g=0-l|0;h=h&g;n=(h|0)<(e|0);c:{if((d|0)>(i|0)){g=d;break c}d=l-1|0;g=g&d+i;if(d&i&65535){d=g;break c}if(K[a+79|0]){H[a+79|0]=0;f=f-4|0}J[f>>2]=J[k>>2];d=g+l|0;f=f+4|0}if(K[a+78|0]){J[J[a+80>>2]+20>>2]=g>>J[a>>2];H[a+78| +0]=0}g=n?h:e;if((g|0)<(d|0))break b;if(M[a+32>>2]<=((g-d>>J[a>>2]<<2)+f|0)+4>>>0)break a;i=0-b|0;l=b<<3;e=j;while(1){H[a+79|0]=0;b=J[e+4>>2];d:{if((b|0)>(d|0)){h=b;b=e+l|0;k=J[b+4>>2];h=h-k|0;if((h|0)>=J[a+16>>2]){kc[c|0](e);break d}b=J[b>>2];J[f>>2]=((P(J[e>>2]-b|0,d-k|0)|0)/(h|0)|0)+b;f=f+4|0;d=J[a+4>>2]+d|0;b=(i<<3)+e|0;break d}if((b|0)==(d|0)){H[a+79|0]=1;J[f>>2]=J[e>>2];f=f+4|0;d=J[a+4>>2]+d|0}b=(i<<3)+e|0}e=b;if(j>>>0<=e>>>0&(d|0)<=(g|0))continue;break}j=J[a+48>>2]}J[a+36>>2]=f;J[a+48>>2]=j- +m;return 0}J[a+40>>2]=98;J[a+36>>2]=f;return 1}function OK(a){var b=0,c=0,d=0,e=0,f=0,g=0;if(!a)return 0;c=FC(0,J[a+8>>2],J[a+52>>2],J[a+56>>2]);if(c){b=J[a+48>>2];if(b)f=c,g=rx(b,3321),J[f+48>>2]=g;b=J[a+36>>2];if(b)f=c,g=rx(b,3341),J[f+36>>2]=g;b=J[a+40>>2];if(b)f=c,g=rx(b,3337),J[f+40>>2]=g;b=J[a+44>>2];if(b)f=c,g=rx(b,3339),J[f+44>>2]=g;b=J[a+60>>2];if(b)f=c,g=rx(b,3321),J[f+60>>2]=g;a=J[a+12>>2];a:{if(!a)break a;e=c+12|0;while(1){b:{c:{d:{e:switch(J[a+4>>2]-8|0){case 9:f:switch(J[a+48>>2]-1| +0){case 0:case 1:case 2:b=J[c+48>>2];if(!b)break c;b=Bf(b,J[a+8>>2],0,0);break d;case 3:case 4:break f;default:break c}b=J[c+60>>2];if(!b)break c;b=Bf(b,J[a+8>>2],0,0);break d;case 7:b=oC(c,J[a+8>>2],J[a+48>>2]);break d;case 8:b=jq(c,J[a+60>>2],J[a+8>>2],J[a+56>>2]);break d;case 0:break e;default:break c}b=kx(a,0,0,0)}if(b)break b}a=J[a+24>>2];if(a)continue;break a}J[(d?d+24|0:e)>>2]=b;J[b+24>>2]=0;J[b+20>>2]=c;J[b+28>>2]=d;J[c+16>>2]=b;d=b;a=J[a+24>>2];if(a)continue;break}}}else c=0;return c}function yE(a){var b= +0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=fc-16|0;fc=d;b=J[a+12>>2];a:{if((b|0)>24){b=-1;break a}h=a+16|0;while(1){b:{c:{d:{c=b<<3;f=J[c+231156>>2]+J[a+8>>2]|0;if((f|0)>0){g=J[c+231152>>2]+J[a+4>>2]|0;if((g|0)>0)break d}b=b+1|0;break c}b=J[h>>2];if(!b){c=P(f,g);b=0;e=J[J[a>>2]+80>>2];e:{if(!e)break e;c=J[J[e+8>>2]+((c>>>0)%M[e>>2]<<2)>>2];if(!c)break e;J[c+8>>2]=J[c+8>>2]+1;b=c}J[a+16>>2]=b;if(!b){b=J[a+12>>2]+1|0;break c}J[a+20>>2]=0}e=b?J[b+4>>2]:0;b=J[a+20>>2];if((e|0)>(b|0))while(1){c=J[J[a+16>>2]+ +20>>2];J[a+20>>2]=b+1;j=J[J[a>>2]+72>>2];i=+N[c+(b<<2)>>2]+.5;f:{if(R(i)<2147483648){b=~~i;break f}b=-2147483648}c=lg(j,b);J[d+12>>2]=c;g:{if(((c?J[c>>2]:-1)-12|0)!=(g|0))break g;c=J[d+12>>2];if(c)c=J[c+4>>2];else c=-1;if((c-12|0)!=(f|0))break g;Fd(d+12|0);break a}Fd(d+12|0);b=J[a+20>>2];if((e|0)>(b|0))continue;break}J[a+12>>2]=J[a+12>>2]+1;Qi(h);b=J[a+12>>2];break b}J[a+12>>2]=b}if((b|0)<=24)continue;break}b=-1}fc=d+16|0;return b}function _La(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;J[a+8>>2]=0;J[a+ +12>>2]=0;J[a>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+56>>2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;a=xc(a,b,96);b=J[J[693464]+40>>2];J[a+104>>2]=16;J[a+96>>2]=b;e=a,f=Gd(16,4),J[e+100>>2]=f;Ac(a+112|0,0,92);b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)a:{J[a+204>>2]=c;b=vc(16);J[699344]=0;c=_(3352, +b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+208>>2]=c;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+212>>2]=c;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+220>>2]=0;J[a+224>>2]=0;J[a+216>>2]=c;J[a+228>>2]=0;J[a+232>>2]=0;J[a+236>>2]=0;J[a+240>>2]=0;J[a+244>>2]=0;return a|0}a=Z()|0;uc(b);ba(a|0);B()}function xYa(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;h=J[a+420>>2];if(J[a+236>>2]){d=J[h+ +68>>2];if(!d){Vw(a,J[h+72>>2]);d=J[a+236>>2];J[h+72>>2]=J[h+72>>2]+1&7}J[h+68>>2]=d-1}if(J[a+316>>2]>0)while(1){e=k<<2;f=J[(e+a|0)+320>>2]<<2;l=J[J[(f+a|0)+292>>2]+20>>2];m=(l<<2)+h|0;f=f+h|0;i=J[m+76>>2]+J[f+52>>2]|0;e=I[J[b+e>>2]>>1]>>J[a+372>>2];c=e-J[f+36>>2]|0;a:{if(!c){We(a,i,0);J[f+52>>2]=0;break a}J[f+36>>2]=e;We(a,i,1);d=0;b:{if((c|0)>0){g=2;j=0;e=4;break b}c=0-c|0;g=3;j=1;e=8}We(a,i+1|0,j);J[f+52>>2]=e;g=g+i|0;e=c-1|0;c:{if(!e)break c;d=1;We(a,g,1);g=J[m+76>>2]+20|0;c=e;if((c|0)==1)break c; +while(1){We(a,g,1);g=g+1|0;d=d<<1;j=c>>>0>3;c=c>>>1|0;if(j)continue;break}}We(a,g,0);c=a+l|0;d:{if(1<>1<=(d|0)){if(1<>1>=(d|0))break d;c=J[f+52>>2]+8|0}else c=0;J[f+52>>2]=c}if(d>>>0<2)break a;f=g+14|0;while(1){d=d>>1;We(a,f,(e&d)!=0);if(d>>>0>1)continue;break}}k=k+1|0;if((k|0)>2])continue;break}return 1}function T$(a,b,c,d){var e=0,f=0,g=0,h=0;e=fc-112|0;fc=e;J[e+96>>2]=13;J[e+80>>2]=13;J[e+64>>2]=13;J[e+48>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;J[e>>2]=13;a:{if(J[Ec(J[b+ +8>>2],782163,e+96|0,0)>>2]==6){while(1){a=J[e+104>>2];if(J[a+12>>2]>(f|0)){b=0;g=a;a=e+80|0;if(J[Sc(g,f,a,0)>>2]==3){b=Eg(c,J[e+88>>2]);if(!b){Sc(J[e+104>>2],f|1,d,0);yc(a);yc(e+96|0);break a}b=b>>>31|0}f=f+2|0;yc(e+80|0);if(!b)continue}break}yc(e+96|0);J[d>>2]=5;break a}yc(e+96|0);b:{if(J[Ec(J[b+8>>2],798515,e- -64|0,0)>>2]!=6)break b;while(1){g=J[e+72>>2];if(J[g+12>>2]<=(f|0))break b;b=0;h=g;g=e+48|0;if(J[Sc(h,f,g,0)>>2]==7){if(J[Ec(J[e+56>>2],799256,e+32|0,0)>>2]==6){c:{if(J[Sc(J[e+40>>2],0,e+ +16|0,0)>>2]!=3)break c;if((Eg(c,J[e+24>>2])|0)<0)break c;b=0;d:{if(J[Sc(J[e+40>>2],1,e,0)>>2]!=3)break d;b=0;if((Eg(c,J[e+8>>2])|0)>0)break d;T$(a,g,c,d);b=1}yc(e)}yc(e+16|0)}yc(e+32|0)}f=f+1|0;yc(e+48|0);if(!b)continue;break}yc(e- -64|0);break a}yc(e- -64|0);J[d>>2]=5}fc=e+112|0;return d}function IH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=fc-32|0;fc=f;a:{b:{c:{if(!(!(a<1.001)|!(a>.999))){if(!(a<.1|a>10)){while(1){H[b+d|0]=d;c=d|1;H[c+b|0]=c;c=d|2;H[c+b|0]=c;c=d|3;H[c+b|0]=c;c=d|4;H[c+b|0]=c;c=d|5;H[c+ +b|0]=c;c=d|6;H[c+b|0]=c;c=d|7;H[c+b|0]=c;d=d+8|0;if((d|0)!=256)continue;break}break c}b=Qc(f+8|0,2398366,2385793,657,2425116,0);J[699344]=0;$(5179,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break b;break a}if(!K[2777408])H[2777408]=1;if(O[342946]!=a){if(a<.1|a>10){b=Qc(f+8|0,2398366,2385793,657,2425116,0);J[699344]=0;$(5179,b|0);d=J[699344];J[699344]=0;if((d|0)!=1)break b;break a}h=1/a;while(1){g=d+2777152|0;e=V(_e(+(d|0)/255,h)*255+.5);d:{if(R(e)<2147483648){c=~~e;break d}c=-2147483648}H[g|0]=c;c= +d|1;g=c+2777152|0;e=V(_e(+(c|0)/255,h)*255+.5);e:{if(R(e)<2147483648){c=~~e;break e}c=-2147483648}H[g|0]=c;d=d+2|0;if((d|0)!=256)continue;break}H[2777407]=255;O[342946]=a;H[2777152]=0}xc(b,2777152,256)}fc=f+32|0;return}B()}d=Z()|0;Kc(b);ba(d|0);B()}function $Z(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if((J[b+4>>2]&-2)!=2){f=J[b+52>>2];if(J[f+8>>2]>0)while(1){$Z(a,J[J[f>>2]+(e<<2)>>2],c);e=e+1|0;f=J[b+52>>2];if((e|0)>2])continue;break}return}f=vc(16);J[699344]=0;e=_(3352,f|0)|0;h= +J[699344];J[699344]=0;if((h|0)!=1){QI(a,b,e,1);a=vc(32);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=e;J[a+16>>2]=0;J[a+20>>2]=0;f=J[e>>2];h=J[f>>2];O[a+24>>3]=O[h+40>>3];b=J[e+8>>2];a:{if((b|0)<=0)break a;g=O[h+24>>3];O[a+8>>3]=g;i=O[h+32>>3];O[a+16>>3]=i;e=1;if((b|0)==1)break a;h=b-1|0;l=h&1;if((b|0)!=2){m=f+4|0;h=h&-2;b=0;while(1){j=e<<2;k=J[j+f>>2];d=O[k+24>>3];if(d>3]=d;g=d}d=O[k+32>>3];if(d>i){O[a+16>>3]=d;i=d}j=J[j+m>>2];d=O[j+24>>3];if(d>3]=d;g=d}d=O[j+32>>3];if(d>i){O[a+16>>3]=d; +i=d}e=e+2|0;b=b+2|0;if((h|0)!=(b|0))continue;break}}if(!l)break a;d=g;b=J[f+(e<<2)>>2];g=O[b+24>>3];if(d>g)O[a+8>>3]=g;g=O[b+32>>3];if(!(g>i))break a;O[a+16>>3]=g}sd(c,a);return}a=Z()|0;uc(f);ba(a|0);B()}function VCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+12>>2];a:{b:{c:{if(M[b>>2]<=256){b=-1;e=J[c+8>>2];if(e&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b| +0]=d;break c}if((bd(c,d&255)|0)!=-1)break c;break b}b=-1;if(Kh(c,d))break b}b=-1;e=J[c+8>>2];if(e&7)break b;d=K[a+16|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;d:{if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break d}if((bd(c,d)|0)==-1)break b}b=-1;d=J[c+8>>2];if(d&7)break b;a=K[a+17|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;return-1}J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]= +d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=a;break e}if((bd(c,a)|0)==-1)break b}b=0}return b|0}J[c+8>>2]=e|4;return-1}function sXa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=fc-16|0;fc=d;b=J[a+420>>2];c=J[a+24>>2];e=J[c>>2];a:{if(J[a+264>>2]){J[b+112>>2]=e;J[b+116>>2]=J[c+4>>2];Ir(b);r0(b);a=J[a+24>>2];J[a>>2]=J[b+112>>2];J[a+4>>2]=J[b+116>>2];break a}h=J[b+16>>2];j=J[b+12>>2];f=J[c+4>>2];c=J[b+32>>2];J[d+8>>2]=J[b+28>>2];J[d+12>>2]=c;c=J[b+24>>2];J[d>>2]= +J[b+20>>2];J[d+4>>2]=c;b:{c:{if((h|0)<=0)break c;c=h+7|0;i=127<<17-h|j;while(1){d:{H[e|0]=i>>>16;e=e+1|0;f=f-1|0;if(!f){g=J[a+24>>2];if(!(kc[J[g+12>>2]](a)|0))break d;f=J[g+4>>2];e=J[g>>2]}g=c;e:{if((i&16711680)!=16711680)break e;H[e|0]=0;e=e+1|0;f=f-1|0;if(f)break e;c=J[a+24>>2];if(!(kc[J[c+12>>2]](a)|0))break d;f=J[c+4>>2];e=J[c>>2]}c=g-8|0;i=i<<8;if((g|0)>15)continue;break c}break}c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a);f=0;break b}j=0;h=0}a=J[a+24>>2];J[a+4>>2]=f;J[a>>2]=e;J[b+16>>2]=h;J[b+12>> +2]=j;a=J[d+12>>2];J[b+28>>2]=J[d+8>>2];J[b+32>>2]=a;a=J[d+4>>2];J[b+20>>2]=J[d>>2];J[b+24>>2]=a}fc=d+16|0}function RX(a,b,c){var d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;a:{b:{c:{d:{e:{d=J[a+708>>2];switch(d|0){case 1:break c;case 0:break d;default:break e}}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break d;fd(a,67745);Vd(a,c);break b}d=J[a+200>>2];if(!(d&1))break a;if(d&4)J[a+200>>2]=d|8;Bd(a,J[a+740>>2]);d=sg(a,c+1|0);J[a+740>>2]=d;if(!d){fd(a,67803);break b}Dg(a,d,c);Ae(a,d,c);e=Vd(a,0);d=J[a+740>>2];if(e){Bd(a, +d);J[a+740>>2]=0;break b}H[c+d|0]=0;g=J[a+740>>2];e=g;while(1){d=e;e=d+1|0;if(K[d|0])continue;break}if(!(d>>>0<(c+g|0)-2>>>0&c>>>0>=2)){fd(a,67839);Bd(a,J[a+740>>2]);J[a+740>>2]=0;break b}if(K[e|0]){fd(a,67860);g=J[a+740>>2]}e=(d-g|0)+2|0;vI(a,0,c,e,f+12|0);c=sg(a,28);if(!c){fd(a,67899);Bd(a,J[a+740>>2]);J[a+740>>2]=0;break b}J[c>>2]=0;d=J[a+740>>2];J[c+24>>2]=0;J[c+4>>2]=d;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=d+e;J[c+12>>2]=J[f+12>>2];b=eI(a,b,c);Bd(a,c);Bd(a,J[a+740>>2]);J[a+740>>2]=0;if(!b)break b; +Ld(a,67939);B()}Vd(a,c)}fc=f+16|0;return}Ld(a,67778);B()}function Pv(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=J[c>>2];j=O[e+16>>3];g=J[b>>2];i=O[g+16>>3];f=J[a>>2];a:{b:{c:{if(!(i>3])){f=0;if(!(j>2]=e;J[c>>2]=g;f=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=f;f=1;e=J[b>>2];g=J[a>>2];if(!(O[e+16>>3]>3]))break a;J[a>>2]=e;J[b>>2]=g;g=a+4|0;e=b+4|0;break c}if(j>2]=e;J[c>>2]=f;e=c+4|0;f=1;break b}J[a>>2]=g;J[b>>2]=f;f=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=f; +f=1;e=J[c>>2];h=J[b>>2];if(!(O[e+16>>3]>3]))break a;g=b+4|0;J[b>>2]=e;J[c>>2]=h;e=c+4|0}f=2}h=J[g>>2];J[g>>2]=J[e>>2];J[e>>2]=h}e=J[d>>2];g=J[c>>2];if(O[e+16>>3]>3]){J[c>>2]=e;J[d>>2]=g;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=J[c>>2];e=J[b>>2];if(!(O[d+16>>3]>3]))return f+1|0;J[b>>2]=d;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[b>>2];d=J[a>>2];if(!(O[c+16>>3]>3]))return f+2|0;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;f=f+3| +0}return f}function Ey(a){var b=0,c=0,d=0,e=0;a:{b:{if(!J[a+1116>>2])break b;c:{if(K[a+460|0]|!K[a+496|0])break c;c=J[a+564>>2];b=J[a+560>>2];if(c>>>0<=b>>>0)break c;e=J[a+556>>2];d=J[a+552>>2];if(e>>>0<=d>>>0)break c;if(kc[J[a+232>>2]](a,d,b,e-d|0,c-b|0)|0)break c;Jc(a,904,0,0);return 904}J[a+552>>2]=0;J[a+556>>2]=0;d=0;H[a+502|0]=0;J[a+560>>2]=0;J[a+564>>2]=0;d:{if(!K[a+504|0])break d;b=J[a+508>>2]+1|0;J[a+508>>2]=b;if(b>>>0<2)break d;H[a+496|0]=0;J[a+516>>2]=0;return 0}b=J[a+236>>2];if(b){b=kc[b| +0](a)|0;J[a+480>>2]=b-J[a+488>>2];d=b-J[a+484>>2]|0}e=J[a+1116>>2];c=J[a+24>>2];e:{if(!c){c=1E3;b=1;if(J[a+12>>2]!=2)break e}b=J[a+120>>2]-1|0;if(b>>>0<=2)b=J[(b<<2)+218580>>2];else b=1E3;b=(P(b,e)>>>0)/(c>>>0)|0}if(K[a+460|0]|!K[a+496|0])break b;c=b-d|0;if(!(kc[J[a+240>>2]](a,b>>>0<=d>>>0?1:c>>>0<=1?1:c)|0))break a;if(!K[a+496|0])break b;H[a+497|0]=1}if(!K[a+460|0])J[a+444>>2]=J[a+444>>2]+b;J[a+1116>>2]=J[a+1144>>2];return 0}Jc(a,902,0,0);return 902}function $z(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j= +0;e=J[c>>2];j=O[e+32>>3];g=J[b>>2];i=O[g+32>>3];f=J[a>>2];a:{b:{c:{if(!(i>3])){f=0;if(!(j>2]=e;J[c>>2]=g;f=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=f;f=1;e=J[b>>2];g=J[a>>2];if(!(O[e+32>>3]>3]))break a;J[a>>2]=e;J[b>>2]=g;g=a+4|0;e=b+4|0;break c}if(j>2]=e;J[c>>2]=f;e=c+4|0;f=1;break b}J[a>>2]=g;J[b>>2]=f;f=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=f;f=1;e=J[c>>2];h=J[b>>2];if(!(O[e+32>>3]>3]))break a;g=b+4|0;J[b>>2]=e;J[c>>2]=h;e=c+4|0}f=2}h=J[g>> +2];J[g>>2]=J[e>>2];J[e>>2]=h}e=J[d>>2];g=J[c>>2];if(O[e+32>>3]>3]){J[c>>2]=e;J[d>>2]=g;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=J[c>>2];e=J[b>>2];if(!(O[d+32>>3]>3]))return f+1|0;J[b>>2]=d;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[b>>2];d=J[a>>2];if(!(O[c+32>>3]>3]))return f+2|0;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;f=f+3|0}return f}function Vhb(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;h=6;f=J[a+532>> +2];a:{if(!f)break a;if(!(b|c)){e=J[f>>2];if(!e)return 0;a=J[f+136>>2];b=J[f+140>>2];h=0;if(e>>>0>=4){f=e&-4;while(1){c=g<<2;J[c+a>>2]=J[b+c>>2];d=c|4;J[d+a>>2]=J[b+d>>2];d=c|8;J[d+a>>2]=J[b+d>>2];c=c|12;J[c+a>>2]=J[b+c>>2];g=g+4|0;i=i+4|0;if((f|0)!=(i|0))continue;break}}f=e&3;if(!f)break a;c=0;while(1){e=g<<2;J[e+a>>2]=J[b+e>>2];g=g+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}break a}if(!c)break a;k=J[f>>2];h=b>>>0>k>>>0?k:b;b:{if(!h)break b;e=J[f+136>>2];if(h>>>0>=4){l=h&-4;while(1){d=g<<2;J[d+e>> +2]=J[c+d>>2];j=d|4;J[j+e>>2]=J[c+j>>2];j=d|8;J[j+e>>2]=J[c+j>>2];d=d|12;J[d+e>>2]=J[c+d>>2];g=g+4|0;m=m+4|0;if((l|0)!=(m|0))continue;break}}d=h&3;if(!d)break b;while(1){l=g<<2;J[l+e>>2]=J[c+l>>2];g=g+1|0;i=i+1|0;if((d|0)!=(i|0))continue;break}}if(b>>>0>>0)Ac(J[f+136>>2]+(h<<2)|0,0,k-h<<2);h=0;J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15}return h|0}function RTa(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;g=fc-128|0;fc=g;e=J[J[a+28>>2]+120>>2];a:{if((kc[J[J[e>>2]+28>>2]](e)|0)!=(c|0)){e= +-1;a=J[a+108>>2];b:{if(!a)break b;a=J[a+4>>2];if(J[a+8>>2]==13)break b;a=J[a+16>>2];e=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,e,825584,0);break a}e=0;h=J[a+28>>2];d=J[h+384>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[h+384>>2]=0;c:{if((c|0)<=0)break c;if((c|0)!=1){h=c&-2;while(1){i=(e<<2)+g|0;d=(e<<4)+b|0;f=(J[d>>2]==1?+J[d+8>>2]:O[d+8>>3])*65536;d:{if(R(f)<2147483648){d=~~f;break d}d=-2147483648}J[i>>2]=d;i=e|1;d=(i<<4)+b|0;f=(J[d>>2]==1?+J[d+8>>2]:O[d+8>>3])*65536;e:{if(R(f)<2147483648){d=~~f;break e}d=-2147483648}J[(i<< +2)+g>>2]=d;e=e+2|0;j=j+2|0;if((h|0)!=(j|0))continue;break}}if(!(c&1))break c;c=(e<<2)+g|0;b=(e<<4)+b|0;f=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*65536;f:{if(R(f)<2147483648){b=~~f;break f}b=-2147483648}J[c>>2]=b}xc(J[a+28>>2]+252|0,g,128);b=J[a+8>>2];kc[J[J[b>>2]+120>>2]](b,J[a+28>>2])}fc=g+128|0}function M_(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;e=J[a+28>>2];l=J[a+140>>2]>>>e|0;j=-1<>2]>>>e|0;k=J[a+180>>2];n=J[a+188>>2];o=J[a+200>>2];p=J[a+ +156>>2];q=J[a+164>>2];r=J[a+192>>2];s=J[a+160>>2];t=J[a+168>>2];d=J[a+236>>2];g=J[a+232>>2];h=J[a+228>>2];f=J[a+220>>2];i=J[a+224>>2];while(1){if(i>>>0>>0){c=((P(((i<>>0)/(s>>>0)|0,r)<<6)+o|0)+(((f<>>0)/(p>>>0)<<6)|0;b=J[c+60>>2]+P(h,88)|0;u=J[(J[b+76>>2]+(P(J[b+68>>2],(i-(J[c+20>>2]+j>>>e|0)>>>0)/M[b+12>>2]|0)<<2)|0)+((f-(J[c+16>>2]+j>>>e|0)>>>0)/M[b+8>>2]<<2)>>2];b=J[b+4>>2];h=h+1|0;J[a+228>>2]=h;c=1;a:{if((h|0)!=(n|0))break a;h=0;J[a+228>>2]=0;f=f+1|0;J[a+220>>2]=f;c=1;if((f|0)!= +(l|0))break a;J[a+220>>2]=k;i=i+1|0;J[a+224>>2]=i;f=k;c=0}d=b+d|0;J[a+236>>2]=d;g=((b|0)==8?255:-1<>2]=g;b:{if(c)break b;b=d&7;if(!b)break b;b=8-b|0;d=b+d|0;J[a+236>>2]=d;g=g<>2]=g}if(d>>>0<8)continue}break}}function Fka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+4>>2]=b;H[a|0]=0;b=J[J[b>>2]-12>>2]+b|0;if(!J[b+16>>2]){b=J[b+72>>2];if(b)a:{d=fc-16|0;fc=d;c=J[J[b>>2]-12>>2];J[699344]=0;c=J[(b+c|0)+24>>2];e=J[699344];J[699344]=0;b:{c:{d:{e:{f:{if((e|0)!=1){if(!c)break c;J[699344]= +0;aa(6739,d+8|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break e;if(!K[d+8|0])break f;c=J[J[b>>2]-12>>2];J[699344]=0;c=J[(b+c|0)+24>>2];e=J[699344];J[699344]=0;g:{if((e|0)==1)break g;J[699344]=0;c=_(6740,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break g;if((c|0)!=-1)break f;c=J[J[b>>2]-12>>2];J[699344]=0;da(6741,b+c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break f}c=ea(0)|0;qz(d+8|0);break d}c=ea(0)|0;break d}qz(d+8|0);break c}c=ea(0)|0}oa(c|0)|0;c=J[J[b>>2]-12>>2];J[699344]=0;$(6742,b+c|0);b= +J[699344];J[699344]=0;if((b|0)==1)break b;ta()}fc=d+16|0;break a}a=Z()|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1){ba(a|0);B()}ea(0)|0;Bc();B()}H[a|0]=1}return a|0}function pUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=J[a+28>>2];if(!J[c+492>>2]){c=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];c=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,c,834025,0);return}if(J[a+32>>2]){d=J[a+8>>2];kc[J[J[d>>2]+156>>2]](d,c);J[a+32>>2]=0;c=J[a+28>>2]}O[c+560>>3]= +J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];g=O[b+24>>3];d=J[b+24>>2];h=J[b+16>>2];e=O[c+624>>3]-O[c+576>>3];O[c+624>>3]=e;f=O[c+616>>3];O[c+600>>3]=O[c+536>>3]+(O[c+504>>3]*f+e*O[c+520>>3]);O[c+552>>3]=(h|0)==1?+(d|0):g;O[c+608>>3]=O[c+544>>3]+(f*O[c+512>>3]+e*O[c+528>>3]);d=J[a+8>>2];kc[J[J[d>>2]+176>>2]](d,c);c=J[a+8>>2];kc[J[J[c>>2]+164>>2]](c,J[a+28>>2]);c=J[a+8>>2];kc[J[J[c>>2]+184>>2]](c,J[a+28>>2]);if(J[a+100>>2]){c=J[a+8>>2];kc[J[J[c>>2]+232>>2]](c,J[a+28>>2]);UB(a,J[b+40>>2]);b=J[a+8>>2];kc[J[J[b>> +2]+236>>2]](b,J[a+28>>2]);return}b=J[b+40>>2];c=J[a+8>>2];if(kc[J[J[c>>2]+32>>2]](c)|0){a=J[a+8>>2];kc[J[J[a>>2]+268>>2]](a,J[b>>2])}}function B_(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-16|0;fc=g;J[g>>2]=13;e=vc(16);J[699344]=0;i=_(3352,e|0)|0;h=J[699344];J[699344]=0;if((h|0)!=1)a:{b:{if(J[a>>2]!=9|J[b>>2]!=9)break b;while(1){if(J[jf(a,d,g,0)>>2]!=7){yc(g);break b}e=vc(96);J[699344]=0;h=na(3639,e|0,a|0,J[g+8>>2],c|0,d|0)|0;f=J[699344];J[699344]=0;c:{d:{e:{f:{if((f|0)!=1){yc(g);if(c){f=J[a+ +8>>2];e=c;while(1){if((f|0)==J[e+24>>2]&J[a+12>>2]==J[e+28>>2])break f;e=J[e+92>>2];if(e)continue;break}}f=J[i+8>>2];if((f|0)>0)break e;e=0;break d}break a}Cc(1,-1,784512,0);uc(yw(h));break b}k=J[a+8>>2];l=J[i>>2];e=0;while(1){j=J[(e<<2)+l>>2];if(!(J[j+24>>2]!=(k|0)|J[a+12>>2]!=J[j+28>>2])){Cc(1,-1,784512,0);f=J[i+8>>2];break d}e=e+1|0;if((f|0)!=(e|0))continue;break}break c}if((e|0)>=(f|0))break c;uc(yw(h));break b}sd(i,h);f=J[b+8>>2];if((f|0)==J[a+8>>2]&J[a+12>>2]==J[b+12>>2])break b;a=h- -64|0; +if(J[h+64>>2]==9)continue;break}}fc=g+16|0;return i}a=Z()|0;uc(e);ba(a|0);B()}function uma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Tc(b,2451512,-1);Tc(b,2451536,-1);c=J[a+64>>2]-1|0;if(c>>>0<=3)c=J[(c<<2)+2452148>>2];else c=2451636;Tc(b,c,-1);Tc(b,2450564,-1);if(K[a+56|0]){Tc(b,2451644,-1);d=O[a+88>>3]*36E3;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}jh(b,c);Tc(b,2450564,-1)}Tc(b,2451684,-1);Tc(b,2451692,-1);Tc(b,2451736,-1);d=O[a+96>>3]*2.834645669291339*100;b:{if(R(d)<2147483648){c=~~d;break b}c= +-2147483648}jh(b,c);Tc(b,2450456,-1);Tc(b,2451800,-1);Tc(b,2451848,-1);Tc(b,2451736,-1);d=O[a+96>>3]*2.834645669291339*100;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}jh(b,c);Tc(b,2450456,-1);Tc(b,2451892,-1);Tc(b,2451940,-1);Tc(b,2451736,-1);d=O[a+112>>3]*2.834645669291339*100;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}jh(b,c);Tc(b,2450456,-1);Tc(b,2451980,-1);Tc(b,2452024,-1);c=J[a+120>>2];a=J[a+124>>2];if((c|0)!=(a|0))while(1){e=J[c>>2];if(e)BT(e,b);c=c+8|0;if((a|0)!=(c|0))continue; +break}Tc(b,2452060,-1)}function ZWa(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;Fe(b,14);To(a,b);zd(b,(J[a+232>>2]-J[a+228>>2]|0)/12|0);d=J[a+228>>2];if((d|0)!=J[a+232>>2])while(1){h=P(g,12);d=h+d|0;zd(b,J[d+4>>2]-J[d>>2]>>3);f=0;d=J[a+228>>2];e=h+d|0;c=J[e>>2];if((c|0)!=J[e+4>>2])while(1){i=O[(f<<3)+c>>3]*100;a:{if(R(i)<2147483648){d=~~i;break a}d=-2147483648}e=J[b+4>>2];b:{c:{if(!e){J[b+8>>2]=1E3;c=Dc(1E3);J[b+16>>2]=0;J[b+4>>2]=c;break c}c=J[b+8>>2];j=J[b+16>>2]+4|0;if(c>>>0>=j>>>0){c= +J[b+12>>2];break b}while(1){c=c<<1;if(j>>>0>c>>>0)continue;break}J[b+8>>2]=c;c=fe(e,c);if(c){J[b+4>>2]=c;c=c+J[b+16>>2]|0;break c}c=Dc(J[b+8>>2]);e=J[b+4>>2];c=xc(c,e,J[b+16>>2]);uc(e);J[b+4>>2]=c;c=c+J[b+16>>2]|0}J[b+12>>2]=c}H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;J[b+12>>2]=J[b+12>>2]+4;J[b+16>>2]=J[b+16>>2]+4;d=J[a+228>>2];e=h+d|0;c=J[e>>2];f=f+1|0;if(f>>>0>2]-c>>3>>>0)continue;break}g=g+1|0;if(g>>>0<(J[a+232>>2]-d|0)/12>>>0)continue;break}}function DAa(a,b){a=a|0;b=b|0; +var c=0,d=0;c=fc-32|0;fc=c;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;d=c+16|0;J[d>>2]=2413224;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[699344]=0;ia(5516,c+12|0,a|0,d|0,0);a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;id(d);ba(a|0);B()}id(d);a:{b:{a=J[c+12>>2];if(!a)break b;d=J[J[a>>2]+20>>2];J[699344]=0;ha(d|0,a|0,0,0,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[J[b>>2]+16>>2];J[699344]=0;a=_(a|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(a){a=J[J[b>>2]+12>>2];J[699344]= +0;ga(a|0,b|0,2390543,1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a}J[699344]=0;ga(5335,b|0,J[c+12>>2],0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[c+12>>2];J[c+12>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}ea(0)|0;Bc();B()}fc=c+32|0;return}a=Z()|0;zc(c+12|0);ba(a|0);B()}function RJa(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=fc-16|0; +fc=g;a:{b:{if(b){if(!a)break b;if(!d)break a;i=J[J[a+72>>2]+16>>2];h=i>>>0<257?1:2;e=(h<<1)+5|0;f=(c>>>0)/(e>>>0)|0;c:{if(!((P(e,f)|0)==(c|0)&c>>>0>=e>>>0)){Nc(d,1,2367273,0);a=0;break c}c=0;if(J[a+8>>2]==16)e=J[a+156>>2]+P(J[a+192>>2],5644)|0;else e=J[a+12>>2];a=K[e+5640|0];if(a&4)c=J[e+420>>2]+1|0;f=c+f|0;if(f>>>0>=32){J[g>>2]=f;Nc(d,1,2367299,g);a=0;break c}H[e+5640|0]=a|4;if(c>>>0>>0){a=(e+P(c,148)|0)+424|0;while(1){wd(b,a,1);b=b+1|0;wd(b,a+4|0,h);b=b+h|0;wd(b,a+8|0,2);d=J[a+8>>2];j=J[e+8>> +2];J[a+8>>2]=d>>>0>>0?d:j;wd(b+2|0,a+12|0,1);b=b+3|0;wd(b,a+16|0,h);b=b+h|0;wd(b,g+12|0,1);J[a+36>>2]=J[g+12>>2];d=J[a+16>>2];J[a+16>>2]=d>>>0>>0?d:i;a=a+148|0;b=b+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}}J[e+420>>2]=f-1;a=1}fc=g+16|0;return a|0}fa(2365733,2358254,3505,2367256);B()}fa(2358373,2358254,3506,2367256);B()}fa(2358486,2358254,3507,2367256);B()}function fE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!(!a|!b)){c=J[a>>2];e=c>>31;f=J[b>>2];d=f>>31;e=(c^e)-e|0;d=(d^f)-d|0;a:{if(e+ +(d>>>8|0)>>>0<=8190){d=P(d,e)+32768>>>16|0;break a}g=e&65535;d=P(g,d>>>16|0)+P(d,e>>>16|0)+(P(g,d&65535)+32768>>>16)|0}g=c>>31|1;k=0-g|0;i=(((f|0)<0?k:g)|0)<0?0-d|0:d;f=J[a+4>>2];d=f>>31;h=J[b+4>>2];c=h>>31;d=(d^f)-d|0;c=(c^h)-c|0;b:{if(d+(c>>>8|0)>>>0<=8190){c=P(c,d)+32768>>>16|0;break b}j=d&65535;c=P(j,c>>>16|0)+P(c,d>>>16|0)+(P(j,c&65535)+32768>>>16)|0}f=f>>31|1;l=0-f|0;j=i+((((h|0)<0?l:f)|0)<0?0-c|0:c)|0;h=J[b+8>>2];c=h>>31;c=(c^h)-c|0;c:{if(e+(c>>>8|0)>>>0<=8190){e=P(c,e)+32768>>>16|0;break c}i= +e&65535;e=P(i,c>>>16|0)+P(c,e>>>16|0)+(P(i,c&65535)+32768>>>16)|0}c=(((h|0)<0?k:g)|0)<0?0-e|0:e;e=J[b+12>>2];b=e>>31;b=(b^e)-b|0;d:{if(d+(b>>>8|0)>>>0<=8190){b=P(b,d)+32768>>>16|0;break d}g=d&65535;b=P(g,b>>>16|0)+P(b,d>>>16|0)+(P(g,b&65535)+32768>>>16)|0}J[a>>2]=j;J[a+4>>2]=c+((((e|0)<0?l:f)|0)<0?0-b|0:b)}}function G6(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+16>>2];f=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);i=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);a:{if(!i)break a;h=J[b>> +2];if(c){if((h|0)==-1)break a;h=h+1|0}l=d+16|0;d=i;b:{c:{while(1){f=d+j>>>1|0;e=P(f,12)+l|0;g=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);k=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);g=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);if(g>>>0<=h>>>0){if(h>>>0<=k>>>0)break c;j=f+1|0}else d=f;if(d>>>0>j>>>0)continue;break}d=0;break b}d=e;d=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);e=h-g|0;d=d>>>0<=(e^-1)>>> +0?d+e|0:0}if(!c)return d;c=J[a>>2];if(h>>>0>k>>>0){e=0;f=f+1|0;if((i|0)==(f|0))break a}J[a+36>>2]=f;J[a+28>>2]=h;H[a+24|0]=1;d:{if(!(d>>>0>2]?d:0)){F6(a);d=0;if(!K[a+24|0])break d;d=J[a+32>>2];break d}J[a+32>>2]=d}e=d;J[b>>2]=J[a+28>>2]}return e}function sVa(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;d=fc-48|0;fc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;a:{b:{if(J[c>>2]!=6)break b;i=1;b=J[J[b+28>>2]+132>>2];if(b)i=!J[J[b+32>>2]+8>>2];e=J[c+8>>2];if(J[e+12>> +2]<=0)break b;b=0;while(1){f=e;e=d+32|0;c:{if(J[tg(f,b,e)>>2]==9){f=J[d+44>>2];J[d+8>>2]=J[d+40>>2];J[d+12>>2]=f;yc(e);Sc(J[c+8>>2],b,e,0);break c}J[d+8>>2]=-1;J[d+12>>2]=-1}if(J[d+32>>2]==7){d:{e:{if(i)break e;e=Ec(J[d+40>>2],776736,d+16|0,0);if(J[e>>2]!=4)break e;if(!Ic(J[e+8>>2],843544))break d}f=vc(112);e=J[a>>2];J[699344]=0;e=ja(3528,f|0,e|0,J[d+40>>2],d+8|0,843732,0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(J[e+104>>2]){f=J[a+4>>2];g=J[a+8>>2];if((h|0)<=(g|0)){h=h+16|0;f=Wd(f,h,4);J[a+ +4>>2]=f;g=J[a+8>>2]}J[a+8>>2]=g+1;J[(g<<2)+f>>2]=e;break d}uc(UJ(e))}yc(d+16|0)}yc(d+32|0);b=b+1|0;e=J[c+8>>2];if((b|0)>2])continue;break}}fc=d+48|0;return a|0}a=Z()|0;uc(f);ba(a|0);B()}function d$a(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;f=fc-48|0;fc=f;e=1;a:{if(!b|!K[b|0])break a;e=b;while(1){g=d;d=d+1|0;h=K[e+1|0];e=e+1|0;if(h)continue;break}h=0;e=1;if(!g|K[(b+d|0)-2|0]==58)break a;e=0;b:{if(!a)break b;d=J[a+36>>2];c:{if(J[d+4>>2])break c;g=J[a+40>>2];if((g|0)<2)break c; +d=J[(J[a+48>>2]+(g<<2)|0)-8>>2]}d:{if(K[2773532])break d;if(!d)break b;k=J[d+28>>2];i=J[693366];h=J[663297];g=J[d+4>>2];if(g){J[f+36>>2]=k;J[f+32>>2]=g;kc[h|0](i,29777,f+32|0);break d}J[f+16>>2]=k;kc[h|0](i,29785,f+16|0)}h=d}kc[J[663297]](J[693366],29741,0)}H[2773532]=e;e=150;d=kc[J[663195]](150)|0;e:{if(!d)break e;g=-1;while(1){j=d;if((e|0)>63999)break e;J[f+44>>2]=c;d=tm(d,e,b,c);if(!((d|0)<0|(d|0)>=(e|0))){i=(d|0)==(g|0);g=d;if(i)break e}e=((d|0)<0?100:d+1|0)+e|0;d=kc[J[663200]](j,e)|0;if(d)continue; +break}}J[f>>2]=j;kc[J[663297]](J[693366],4607,f);if(j)kc[J[663199]](j);if(!(!a|!h))pq(h,J[663297],J[693366]);fc=f+48|0}function S2a(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;f=J[a+16>>2];j=J[a+20>>2]-f|0;a:{h=J[b+4>>2];d=J[h+44>>2];e=J[b+8>>2];i=J[b+12>>2];if(!(!d|e>>>0>=i>>>0)){if(!j){J[c>>2]=15;return}if((d&-2)!=194)break a;g=K[e|0]^-128;if((g&255)>>>0>63)break a;H[f|0]=g|d<<6;H[h+36|0]=0;J[h+44>>2]=0;j=j-1|0;f=f+1|0;e=e+1|0}if(e>>>0>>0){d=i-1|0;i=(K[d|0]- -64&255)>>>0<62?d:i}b:{c:{d:{e:{f:{if(e>>> 0>>0)while(1){if((j|0)<=0)break e;d=e+1|0;g=H[e|0];if(!((g|0)>=0)){if((g&-2)!=-62)break f;d=K[d|0]^-128;if((d&255)>>>0>63)break f;g=d|g<<6;d=e+2|0}e=d;H[f|0]=g;f=f+1|0;j=j-1|0;if(e>>>0>>0)continue;break}if(M[b+12>>2]<=e>>>0|J[c>>2]>0)break b;c=K[e|0];J[h+44>>2]=c;H[h+37|0]=c;H[h+36|0]=1;if(c>>>0>239)break d;d=(c>>>0>191)+(c>>>0>223)|0;break c}J[b+8>>2]=e;J[a+16>>2]=f;J[c>>2]=-127;return}J[c>>2]=15;break b}d=0;if(c>>>0>253)break c;d=(c>>>0>251)+(c>>>0>247?4:3)|0}e=e+1|0;J[h+48>>2]=d+1}J[b+8>> -2]=e;J[a+16>>2]=f;return}J[c>>2]=-127}function Pq(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;g=J[d>>2];if(!g){if(!e)return 0;return J[e>>2]}h=J[g>>2];j=g+8|0;k=g+12|0;i=J[a+4>>2];a:{if(i){h=gc[i|0](h,c)|0;break a}h=c>>>0>>0?1:c>>>0>h>>>0?-1:0}h=(h|0)>0?j:k&h>>31;b:{if(h){if(b>>>0>=1024){J[a+8>>2]=1;return g}g=Pq(a,b+1|0,c,h,d,e);if((g|0)!=J[d>>2]|J[a+8>>2])break b}if(!e)break b;a=J[e>>2];b=J[a+8>>2];if(!f){a=((b|0)==(g|0)?12:8)+g|0;J[d>>2]=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=g;return g}c:{d:{c=(b|0)!=(g| -0);if(c)break d;d=J[f>>2];if((a|0)!=J[d+8>>2])break d;J[d+8>>2]=J[a+12>>2];J[a+12>>2]=J[f>>2];J[a+8>>2]=J[g+12>>2];J[g+12>>2]=a;break c}e:{if(J[a+12>>2]!=(g|0))break e;d=J[f>>2];if((a|0)!=J[d+12>>2])break e;J[d+12>>2]=b;J[a+8>>2]=J[f>>2];J[a+12>>2]=J[g+8>>2];J[g+8>>2]=a;break c}if(!c){J[a+8>>2]=J[g+12>>2];J[g+12>>2]=J[e>>2];J[J[f>>2]+12>>2]=J[g+8>>2];J[g+8>>2]=J[f>>2];break c}J[a+12>>2]=J[g+8>>2];J[g+8>>2]=J[e>>2];J[J[f>>2]+8>>2]=J[g+12>>2];J[g+12>>2]=J[f>>2]}J[f>>2]=g}return g}function cI(a){var b= -0,c=0;c=J[a+4>>2];if(J[a>>2]==255){if(c>>>0>=144){if(!J[a+36>>2]){J[a+16>>2]=8;return}J[a>>2]=c;b=J[a+40>>2];a:{if((b|0)>=0){J[a+40>>2]=-1;break a}b=J[a+32>>2];J[a+32>>2]=b-1;if((b|0)<=0){b=255;break a}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];b=gc[J[J[b>>2]+28>>2]](b)&255;c=J[a>>2]}J[a+4>>2]=b;J[a+8>>2]=(J[a+8>>2]-(c<<8)|0)+65280;J[a+16>>2]=8;return}J[a>>2]=c;b:{c:{if(!J[a+36>>2])break c;b=J[a+40>>2];if((b|0)>=0){J[a+40>>2]=-1;break b}b=J[a+32>>2];J[a+32>>2]=b-1;if((b|0)>0)break c;b=255;break b}J[a+28>> -2]=J[a+28>>2]+1;b=J[a+24>>2];b=gc[J[J[b>>2]+28>>2]](b)&255;c=J[a>>2]}J[a+4>>2]=b;J[a+8>>2]=(J[a+8>>2]-(c<<9)|0)+65024;J[a+16>>2]=7;return}J[a>>2]=c;d:{e:{if(!J[a+36>>2])break e;b=J[a+40>>2];if((b|0)>=0){J[a+40>>2]=-1;break d}b=J[a+32>>2];J[a+32>>2]=b-1;if((b|0)>0)break e;b=255;break d}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];b=gc[J[J[b>>2]+28>>2]](b)&255;c=J[a>>2]}J[a+4>>2]=b;J[a+8>>2]=(J[a+8>>2]-(c<<8)|0)+65280;J[a+16>>2]=8}function PGa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-32|0;bc=e; -a:{b:{if(b){if(!a)break b;if(!d)break a;c:{if(J[a+72>>2]){Hc(d,2,2349681,0);c=1;break c}if((c|0)!=14){c=0;Hc(d,1,2349886,0);break c}ld(b,a+16|0,4);ld(b+4|0,a+12|0,4);ld(b+8|0,a+20|0,2);f=J[a+12>>2];d:{g=J[a+16>>2];c=J[a+20>>2];e:{if(!g)break e;c=J[a+20>>2];if(!f)break e;if(c)break d;c=0}J[e+8>>2]=c;J[e+4>>2]=g;J[e>>2]=f;Hc(d,1,2350008,e);c=0;break c}if(c-16385>>>0<=4294950911){c=0;Hc(d,1,2350097,0);break c}c=ye(c,12);J[a+72>>2]=c;if(!c){c=0;Hc(d,1,2350146,0);break c}c=1;ld(b+10|0,a+24|0,1);ld(b+11| -0,a+28|0,1);f=J[a+28>>2];if((f|0)!=7){J[e+16>>2]=f;Hc(d,4,2350232,e+16|0)}ld(b+12|0,a+32|0,1);ld(b+13|0,a+36|0,1);b=J[a>>2];H[b+176|0]=K[b+176|0]&251|(J[a+24>>2]==255)<<2;b=J[a>>2];J[b+204>>2]=J[a+12>>2];J[b+208>>2]=J[a+16>>2];H[a+133|0]=1}bc=e+32|0;return c|0}fa(2349567,2342899,567,2359600);B()}fa(2342603,2342899,568,2359600);B()}fa(2343543,2342899,569,2359600);B()}function CP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;a=bc-16|0;bc=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+ -8>>2]=f;b=J[a+12>>2];a:{while(1){if(b>>>0>=d>>>0){c=0;break a}c=2;b=J[b>>2];if(b>>>0>1114111|(b&-2048)==55296)break a;b:{c:{if(b>>>0<=127){c=1;f=J[a+8>>2];if((g-f|0)<=0)break a;J[a+8>>2]=f+1;H[f|0]=b;break c}if(b>>>0<=2047){c=J[a+8>>2];if((g-c|0)<2)break b;J[a+8>>2]=c+1;H[c|0]=b>>>6|192;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break c}c=J[a+8>>2];f=g-c|0;if(b>>>0<=65535){if((f|0)<3)break b;J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c| -0]=b&63|128;break c}if((f|0)<4)break b;J[a+8>>2]=c+1;H[c|0]=b>>>18|240;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>12&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128}b=J[a+12>>2]+4|0;J[a+12>>2]=b;continue}break}c=1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];bc=a+16|0;return c|0}function jAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-1072|0;bc=d;J[d+8>>2]=0;J[d+12>>2]=J[682146];a:{b:{c:{d:{while(1){c=J[J[b>>2]+8>>2];J[695492]=0;e=d+48|0;c=ga(c|0,b|0,e|0,1024)|0;f=J[695492]; -J[695492]=0;if((f|0)==1)break c;if(!c)break b;J[695492]=0;c=ga(5169,d+40|0,e|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[695492]=0;aa(5170,d+8|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;sc(c);continue}break}b=Z()|0;break a}b=Z()|0;sc(c);break a}b=Z()|0;break a}b=J[d+8>>2];b=J[(b?b+12|0:2728584)>>2];J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[695492]=0;c=d+16|0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;e=J[695492];J[695492]=0;e:{if((e|0)!=1){H[c+16|0]=0;J[695492]= -0;da(5201,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;$c(c);break a}sc(d+8|0);J[695492]=0;da(5202,a|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break e;$c(c);bc=d+1072|0;return}b=Z()|0;break a}a=Z()|0;$c(c);ba(a|0);B()}sc(d+8|0);ba(b|0);B()}function Xq(a,b){var c=0;a:{b:{if(!(a&131072)){c:switch(b-47|0){default:if((b|0)==32)break b;break;case 0:case 15:break b;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break c}a=1;if(b-48>>>0<11| -(b&-33)-65>>>0<26|((b|0)==95|b-45>>>0<2))break a;if((b|0)==183|b-65536>>>0<917504|(b-65008>>>0<526|b-63744>>>0<1232))break a;if(b-12289>>>0<43007|b-11264>>>0<1008|(b-8304>>>0<288|b-8255>>>0<2))break a;if((b&-2)==8204|b-895>>>0<7297|(b-248>>>0<646|b-192>>>0<23))break a;if(b-216>>>0>=31)break b;break a}d:{if((b|0)<=255){a=1;if(b-192>>>0<23|(b&-33)-65>>>0<26|(b-48>>>0<10|(b|0)>247))break a;if(b-216>>>0>=31)break d;break a}a=1;if(km(b,769396)|b-12321>>>0<9|((b|0)==12295|b-19968>>>0<20902))break a;if(km(b, -769880))break a}c=b-45|0;if((b|0)==95|(1<>>0<=13:0))break a;if((b|0)>=256){if(km(b,769804))break a;if(km(b,769944))break a;break b}if((b|0)==183)break a}a=0}return a}function QQa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-48|0;bc=e;J[a+88>>2]=13;J[a+72>>2]=13;J[a+56>>2]=13;J[a+40>>2]=13;J[a+24>>2]=13;J[a+8>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;a:{b:{if(c){J[a>>2]=1;J[a+4>>2]=0;Ce(c,774522,e+32|0);c:{d:switch(J[e+32>>2]-7|0){case 2:hf(e+32|0,b,e+16|0,0);if(J[e+16>>2]==7){f=J[e+44>> -2];J[e+8>>2]=J[e+40>>2];J[e+12>>2]=f;f=rc(8);J[695492]=0;b=ha(3309,f|0,b|0,e+8|0,J[e+24>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[a+4>>2]=b}uc(e+16|0);break c;case 0:break d;default:break c}f=rc(8);J[695492]=0;b=ha(3309,f|0,b|0,0,J[e+40>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[a+4>>2]=b}uc(e+32|0);Bc(c,775734,a+8|0,0);Bc(c,777211,a+24|0,0);Bc(c,778120,a+40|0,0);Bc(c,779612,a+56|0,0);Bc(c,780607,a+72|0,0);Bc(c,781410,a+88|0,0);break b}J[a+88>>2]=5;J[a+72>>2]=5;J[a+56>>2]=5;J[a+ -40>>2]=5;J[a+24>>2]=5;J[a+8>>2]=5;J[a>>2]=0;J[a+4>>2]=0}J[a+104>>2]=d;bc=e+48|0;return a|0}a=Z()|0;qc(f);ba(a|0);B()}function pFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;if(K[NQ(f+15|0,a,1)|0]){a:{if(H[b+11|0]<0){J[J[b>>2]>>2]=0;J[b+4>>2]=0;break a}H[b+11|0]=0;J[b>>2]=0}h=a+24|0;b:{c:{d:{while(1){d=J[J[J[a>>2]-12>>2]+h>>2];e=J[d+12>>2];e:{if((e|0)==J[d+16>>2]){e=J[J[d>>2]+40>>2];J[695492]=0;d=$(e|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break e;break d}J[d+12>>2]=e+4;d= -J[e>>2]}if((d|0)==-1)break c;if((c|0)==(d|0)){d=0;break b}J[695492]=0;da(3256,b|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break d;g=g+1|0;if(J[b+4>>2]!=1073741807|H[b+11|0]>=0)continue;break}d=4;break b}na(ea(0)|0)|0;d=1;b=J[a>>2]-12|0;c=J[b>>2]+a|0;J[c+16>>2]=J[c+16>>2]|1;f:{g:{if(H[(J[b>>2]+a|0)+20|0]&1){J[695492]=0;ka(4892);a=J[695492];J[695492]=0;if((a|0)!=1)break f;a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break g;ba(a|0);B()}ta();break b}ea(0)|0;yc()}B()}d=g?2:6}b=J[J[a>> -2]-12>>2]+a|0;zy(b,J[b+16>>2]|d)}bc=f+16|0;return a|0}function fU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[J[b+12>>2]+((c>>>0)%M[b+8>>2]<<2)>>2];a:{if(e)while(1){if(J[e+12>>2]==(c|0)&J[e+16>>2]==(c|0))break a;e=J[e+8>>2];if(e)continue;break}e=rc(24);J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=0;J[e+16>>2]=c;J[e+12>>2]=c;J[e+8>>2]=0;Rl(b,e)}J[e+20>>2]=d;f=a+8|0;e=f;e=J[J[e+12>>2]+((c>>>0)%M[e+8>>2]<<2)>>2];b:{if(!e)break b;while(1){if(!(J[e+12>>2]==(c|0)&J[e+16>>2]==(c|0))){e=J[e+8>>2];if(e)continue; -break b}break}e=J[J[f+12>>2]+((c>>>0)%M[f+8>>2]<<2)>>2];c:{if(e)while(1){if(J[e+12>>2]==(c|0)&J[e+16>>2]==(c|0))break c;e=J[e+8>>2];if(e)continue;break}e=rc(24);J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=0;J[e+16>>2]=c;J[e+12>>2]=c;J[e+8>>2]=0;Rl(f,e)}c=J[J[e+20>>2]+8>>2];if(!c)break b;f=d+1|0;while(1){d=J[c+8>>2];e=J[J[b+12>>2]+((d>>>0)%M[b+8>>2]<<2)>>2];d:{if(e)while(1){if((d|0)==J[e+12>>2]&(d|0)==J[e+16>>2])break d;e=J[e+8>>2];if(e)continue;break}fU(a,b,d,f)}c=J[c>>2];if(c)continue;break}}}function J1(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;J[a+28>>2]=0;n=.5/O[a>>3];O[a+8>>3]=n*n;i=J[a+32>>2];l=J[a+28>>2];j=l>>>6|0;if(i>>>0<=j>>>0){h=J[a+36>>2];a:{if(h>>>0>j>>>0){h=J[a+40>>2];break a}k=h+J[a+44>>2]|0;h=rc(k>>>0>1073741823?-1:k<<2);m=J[a+40>>2];if(m){tc(h,m,i<<2);qc(m);k=J[a+36>>2]+J[a+44>>2]|0;l=J[a+28>>2];i=J[a+32>>2]}J[a+36>>2]=k;J[a+40>>2]=h}o=(j<<2)+h|0,p=rc(1024),J[o>>2]=p;J[a+32>>2]=i+1}h=J[J[a+40>>2]+(j<<2)>>2]+((l&63)<<4)|0;O[h+8>>3]=c;O[h>>3]=b;J[a+28>>2]=J[a+28>>2]+1;I1(a, -b,c,d,e,f,g,0);i=J[a+32>>2];l=J[a+28>>2];j=l>>>6|0;if(i>>>0<=j>>>0){h=J[a+36>>2];b:{if(h>>>0>j>>>0){h=J[a+40>>2];break b}k=h+J[a+44>>2]|0;h=rc(k>>>0>1073741823?-1:k<<2);m=J[a+40>>2];if(m){tc(h,m,i<<2);qc(m);k=J[a+36>>2]+J[a+44>>2]|0;l=J[a+28>>2];i=J[a+32>>2]}J[a+36>>2]=k;J[a+40>>2]=h}o=(j<<2)+h|0,p=rc(1024),J[o>>2]=p;J[a+32>>2]=i+1}h=J[J[a+40>>2]+(j<<2)>>2]+((l&63)<<4)|0;O[h+8>>3]=g;O[h>>3]=f;J[a+28>>2]=J[a+28>>2]+1;J[a+24>>2]=0}function uHa(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;g= -bc-16|0;bc=g;a:{b:{c:{if(b){if(!a)break c;if(!d)break b;d:{if(c>>>0<=1){Hc(d,1,2356525,0);a=0;break d}H[a+176|0]=K[a+176|0]|1;ld(b,g+12|0,1);e=J[a+116>>2];e:{if(!e){if(J[a+112>>2])break a;f=J[g+12>>2]+1|0;e=ye(f,8);J[a+116>>2]=e;if(!e){Hc(d,1,2352615,0);a=0;break d}J[a+112>>2]=f;break e}f=J[g+12>>2];if(f>>>0>2])break e;h=e;e=f+1|0;f=Tg(h,e<<3);if(!f){Hc(d,1,2352615,0);a=0;break d}J[a+116>>2]=f;h=J[a+112>>2];wc(f+(h<<3)|0,0,e-h<<3);J[a+112>>2]=e;e=J[a+116>>2]}h=e;e=J[g+12>>2];if(J[h+(e<<3)>> -2]){J[g>>2]=e;Hc(d,1,2356581,g);a=0;break d}c=c-1|0;e=_e(c);a=J[a+116>>2];f=J[g+12>>2];J[a+(f<<3)>>2]=e;if(!e){Hc(d,1,2352615,0);a=0;break d}J[(a+(f<<3)|0)+4>>2]=c;tc(J[a+(J[g+12>>2]<<3)>>2],b+1|0,c);a=1}bc=g+16|0;return a|0}fa(2353829,2346358,3820,2356508);B()}fa(2346477,2346358,3821,2356508);B()}fa(2346590,2346358,3822,2356508);B()}fa(2356551,2346358,3840,2356508);B()}function Ul(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;e=kf(b);c=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];a:{if(c)while(1){if((e| -0)==J[c+12>>2])if(!tj(c+16|0,b,-1))break a;c=J[c+8>>2];if(c)continue;break}c=rc(28);J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=0;e=c+16|0;J[e>>2]=0;J[e+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+20>>2]=J[682146];b:{b=J[b>>2];c:{d:{if(b){f=J[J[b>>2]+28>>2];J[695492]=0;ca(f|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d;c=Z()|0;break c}J[d+12>>2]=0}J[695492]=0;aa(4993,e|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break b;J[695492]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[695492]; -J[695492]=0;if((g|0)!=1){if(f)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b}ea(0)|0;yc();B()}c=Z()|0;vc(d+12|0)}sc(e);ba(c|0);B()}b=J[c+16>>2];b=J[(b?b+12|0:2728584)>>2];J[c+24>>2]=0;J[c+20>>2]=b;h=c,i=kf(e),J[h+12>>2]=i;Rl(a,c)}bc=d+16|0;return c|0}function Yua(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;J[a+8>>2]=0;J[a>>2]=2411928;J[a+4>>2]=0;J[a+12>>2]=J[682146];J[695492]=0;aa(4989,a+16|0,2411852)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[a+24>>2]=0;c=J[682146]; -H[a+88|0]=0;J[a+68>>2]=1;I[a+64>>1]=0;J[a+60>>2]=0;I[a+56>>1]=0;J[a+48>>2]=-1;J[a+52>>2]=50;J[a+40>>2]=255;J[a+44>>2]=1;H[a+36|0]=0;J[a+32>>2]=0;J[a+28>>2]=c;J[a>>2]=2412496;g=J[b>>2];J[a+124>>2]=g;h=J[b+4>>2];J[a+128>>2]=h;d=J[b+8>>2];J[a+132>>2]=d;e=J[b+12>>2];b=(d-g|0)/2|0;J[a+100>>2]=b;J[a+136>>2]=e;f=(e-h|0)/2|0;J[a+104>>2]=f;c=b+f|0;d=(d+g|0)/2|0;e=(e+h|0)/2|0;a:{if((b|0)>(f|0)){i=Y(+(P(c,b-f|0)|0));b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}g=d-c|0;d=c+d|0;c=f;h=e;break a}i=Y(+(P(c, -f-b|0)|0));c:{if(R(i)<2147483648){j=~~i;break c}j=-2147483648}h=j+e|0;c=b;b=f;g=d;e=e-j|0}J[a+120>>2]=e;J[a+116>>2]=g;J[a+108>>2]=d;J[a+92>>2]=b;J[a+96>>2]=c;J[a+112>>2]=h;return a|0}b=Z()|0;sc(a+8|0);ed(a);ba(b|0);B()}function qzb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;J[a+28>>2]=0;J[a+16>>2]=0;a:{b:{c:{if(Ye(b,a+12|0))break c;d=zc(J[a+12>>2]);J[a+16>>2]=d;if(!d)break b;d=li(b,d,J[a+12>>2]);if((d|0)!=J[a+12>>2])break c;H[(d+J[a+16>>2]|0)-1|0]=0;if(Ye(b,a+20|0))break c;if(Ye(b,a+24|0))break c;d= -zc(J[a+24>>2]<<1);J[a+28>>2]=d;if(!d)break c;if((li(b,d,J[a+24>>2]<<1)|0)!=J[a+24>>2]<<1)break c;if(Fj(b,a+32|0))break c;d=J[b+8>>2];if(d&7)break c;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break c}d=J[b+28>>2];J[b+28>>2]=d-1;d:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;d=K[d|0];break d}d=jd(b,1);if((d|0)==-1)break c}H[a+36|0]=d;if((li(b,a+37|0,67)|0)!=67)break c;e=Qc(J[a+16>>2]);J[a+12>>2]=e+1;d=-1;e=(e+(J[a+24>>2]<<1)|0)+83|0;if((e|0)>(c|0))break a;d=0;if((c| -0)<=(e|0))break a;f=b;b=c-e|0;if((Bu(f,b)|0)==(b|0))break a}b=J[a+16>>2];if(!b)break b;qc(b)}d=-1;a=J[a+28>>2];if(!a)break a;qc(a)}return d|0}function j7a(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;a:{if((d|0)<=0)break a;e=J[a+480>>2];g=J[a+112>>2];j=J[a+120>>2];if((j|0)<=0){a=0;while(1){Le(J[(a<<2)+c>>2],g);J[e+48>>2]=J[e+48>>2]+1&15;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!g){a=0;while(1){Le(J[(a<<2)+c>>2],0);J[e+48>>2]=J[e+48>> -2]+1&15;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}q=g&-2;r=g&1;while(1){a=k<<2;o=a+c|0;Le(J[o>>2],g);s=a+b|0;p=J[e+48>>2];t=p<<6;h=0;while(1){a=h<<2;l=J[(a+e|0)+52>>2]+t|0;f=J[s>>2]+h|0;m=J[a+J[e+24>>2]>>2];a=J[o>>2];i=0;n=0;if((g|0)!=1)while(1){H[a|0]=K[a|0]+K[K[f|0]+(J[(i<<2)+l>>2]+m|0)|0];f=f+j|0;H[a+1|0]=K[a+1|0]+K[K[f|0]+(J[((i+1&15)<<2)+l>>2]+m|0)|0];a=a+2|0;i=i+2&15;f=f+j|0;n=n+2|0;if((q|0)!=(n|0))continue;break}if(r)H[a|0]=K[a|0]+K[K[f|0]+(J[(i<<2)+l>>2]+m|0)|0];h=h+1|0;if((j|0)!=(h| -0))continue;break}J[e+48>>2]=p+1&15;k=k+1|0;if((k|0)!=(d|0))continue;break}}}function Iha(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=Q(0),k=Q(0),l=Q(0),m=0,n=0,o=0;if((c|0)>0){a=J[a+12>>2];while(1){l=Q(0);f=J[a>>2];e=f>>16;m=e&32767;a:{if(!m){k=Q(0);j=Q(0);break a}k=Q(0);d=Vo((+(m|0)+.5)*.0027076061740622863+-44.3614195558365);d=e&32768?-d:d;j=Q(0);if(d<=0)break a;h=(+((f>>>8&255)>>>0)+.5)*.0024390243902439024;i=(+((f&255)>>>0)+.5)*.0024390243902439024;g=1/(h*6+i*-16+12);h=h*9*g;g=i*4* -g;k=Q(d*(h/g));l=Q(d*((1-h-g)/g));j=Q(d)}d=+k;g=+j;n=d*.061+g*-.224;h=+l;o=h*1.163;i=h*-.414+(d*2.69+g*-1.276);if(i<=0)e=0;else{e=i>=1;i=Y(i)*256;b:{if(R(i)<2147483648){f=~~i;break b}f=-2147483648}e=e?-1:f}H[b|0]=e;d=h*.044+(d*-1.022+g*1.978);if(d<=0)e=0;else{e=d>=1;d=Y(d)*256;c:{if(R(d)<2147483648){f=~~d;break c}f=-2147483648}e=e?-1:f}H[b+1|0]=e;a=a+4|0;d=o+n;if(d<=0)e=0;else{e=d>=1;d=Y(d)*256;d:{if(R(d)<2147483648){f=~~d;break d}f=-2147483648}e=e?-1:f}H[b+2|0]=e;b=b+3|0;f=c>>>0>1;c=c-1|0;if(f)continue; -break}}}function pN(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=bc-1744|0;bc=f;e=J[53326];d=f+1736|0;J[d>>2]=J[53325];J[d+4>>2]=e;e=J[53324];d=f+1728|0;J[d>>2]=J[53323];J[d+4>>2]=e;e=J[53322];d=f+1720|0;J[d>>2]=J[53321];J[d+4>>2]=e;d=J[53320];J[f+1712>>2]=J[53319];J[f+1716>>2]=d;tc(f+16|0,213312,1696);if(!(K[a+432|0]|!K[a+344|0]))H[a+497|0]=0;d=Hr(b);J[f+12>>2]=0;i=c-4|0;j=b+4|0;b=11;c=52;a:{while(1){e=(f+16|0)+(b<<5)|0;g=J[e>>2];b:{if((g|0)<(d|0)){h=b+1|0;break b}if((d|0)>=(g|0))break a;c=b-1|0}b=c+ -h>>1;if((c|0)>=(h|0))continue;break}e=0}J[a+268>>2]=d;J[a+272>>2]=J[a+272>>2]+1;e=e?e:f+1712|0;b=J[e+12>>2];c:{if(!b){b=0;break c}b=gc[b|0](a,e,i,j,f+12|0)|0;c=J[f+12>>2];d:{if(!(b|!c)){b=0;if(J[e>>2]!=1077952576)break d;J[c>>2]=d;break d}if(!c)break c}Jx(a,c)}e:{if(K[a+289|0]|(K[a+285|0]|K[a+286|0]))break e;b=0;if(K[a+346|0])break e;H[a+346|0]=1;c=J[a+168>>2];if(!c)break e;if(gc[c|0](a)|0)break e;b=901;Dc(a,901,0,0)}bc=f+1744|0;return b}function HQ(a,b,c){var d=0,e=0;a:{b:{if(J[a+64>>2])break b; -d=1750;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{e=c&-3;switch(e-1|0){case 4:case 20:break i;case 19:break j;case 8:case 24:break k;case 23:break m;case 7:break n;case 0:case 16:break o;case 15:break c;case 1:case 2:case 3:case 5:case 6:case 9:case 10:case 13:case 14:case 17:case 18:case 21:case 22:case 25:case 26:break d;case 12:case 28:break e;case 27:break g;case 11:break h;default:break p}}q:switch(e-48|0){case 4:break j;case 0:break c;case 1:case 2:case 3:break d;default:break q}switch(e-56| -0){case 0:break l;case 4:break f;default:break d}}d=19863;break c}d=5622;break c}d=28715;break c}d=28712;break c}d=28722;break c}d=18061;break c}d=18779;break c}d=18772;break c}d=18786;break c}d=18782;break c}d=18790;break c}d=0}if(!d)break b;b=Oj(b,d);J[a+64>>2]=b;if(!b)break b;J[a+88>>2]=c;if(!(c&2))break a;if(!Xg(b,0,2))break a;fg(J[a+64>>2]);J[a+64>>2]=0}return 0}return a}function zj(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;b:{c:switch(J[a+4>>2]-14|0){case 0:b=J[a+32>>2];if(!b)break b;if(J[b+44>> -2]==(a|0))J[b+44>>2]=0;if(J[b+48>>2]!=(a|0))break b;J[b+48>>2]=0;break b;case 4:break a;case 3:break c;default:break b}d=J[a+32>>2];if(!d)break b;b=J[d+44>>2];d:{if(!b)break d;e=J[b+48>>2];c=J[a+8>>2];if((tf(e,c,0,0)|0)==(a|0)){Ft(e,c,0,0);c=J[a+8>>2];b=J[d+44>>2]}b=J[b+60>>2];if((tf(b,c,0,0)|0)!=(a|0))break d;Ft(b,c,0,0)}b=J[d+48>>2];if(!b)break b;e=J[b+48>>2];c=J[a+8>>2];if((tf(e,c,0,0)|0)==(a|0)){Ft(e,c,0,0);c=J[a+8>>2];b=J[d+48>>2]}b=J[b+60>>2];if((tf(b,c,0,0)|0)!=(a|0))break b;Ft(b,c,0,0)}b= -J[a+20>>2];if(b){e:{f:{if(J[a+4>>2]==2){if(J[b+44>>2]!=(a|0))break e;c=b+44|0;b=a+24|0;break f}if(J[b+12>>2]==(a|0))J[b+12>>2]=J[a+24>>2];if(J[b+16>>2]!=(a|0))break e;c=b+16|0;b=a+28|0}J[c>>2]=J[b>>2]}J[a+20>>2]=0}b=J[a+28>>2];c=J[a+24>>2];if(c)J[c+28>>2]=b;if(b)J[b+24>>2]=c;J[a+24>>2]=0;J[a+28>>2]=0}}function uR(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-48|0;bc=c;a:{if(a>>>0>6)break a;b:{if((a|0)==6){if(!b)break b;a=J[651369];J[c+16>>2]=J[651368];J[c+20>>2]=a;a=J[651367];J[c+8>>2]=J[651366]; -J[c+12>>2]=a;a=J[651365];J[c>>2]=J[651364];J[c+4>>2]=a;a=0;c:{while(1){d=Ly(b,59);e=d-b|0;if((e|0)<=23){tc(c,b,e);H[c+e|0]=0;b=K[d|0]?d+1|0:b}d=My(a,c);if((d|0)==-1)break c;J[(c+24|0)+(a<<2)>>2]=d;a=a+1|0;if((a|0)!=6)continue;break}a=J[c+28>>2];J[694746]=J[c+24>>2];J[694747]=a;a=J[c+44>>2];J[694750]=J[c+40>>2];J[694751]=a;a=J[c+36>>2];J[694748]=J[c+32>>2];J[694749]=a;break b}d=0;break a}d:{if(b){b=My(a,b);if((b|0)==-1)break a;J[(a<<2)+2778984>>2]=b;break d}b=J[(a<<2)+2778984>>2]}d=b?b+8|0:21841;break a}b= -2779184;d=0;a=0;while(1){h=J[694746];e=J[(a<<2)+2778984>>2];g=e?e+8|0:21841;f=Qc(g);tc(b,g,f);f=b+f|0;H[f|0]=59;b=f+1|0;d=((e|0)==(h|0))+d|0;a=a+1|0;if((a|0)!=6)continue;break}H[f|0]=0;d=(d|0)!=6?2779184:g}bc=c+48|0;return d|0}function oqb(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;var h=0,i=0,j=0,k=0,l=0;a:{b:{if(f){if(((c+1|0)/2|0)>(b|0))break b;if(!d)break a;k=c<<1;l=b<<1;b=0;while(1){I[g>>1]=L[f>>1];a=g+2|0;h=L[e+2>>1];c:{if((h|0)==L[f+2>>1]){I[a>>1]=h;break c}h=e+2|0;i=K[h+1|0]<< -8;j=K[h|0]|i;h=i|K[h|0];i=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=i+((P(l,((h<<8|h>>>8)&65535)-((j<<8|j>>>8)&65535)|0)+c|0)/(k|0)|0)&65535;h=h<<8|h>>>8;H[a|0]=h;H[a+1|0]=h>>>8}f=f+4|0;e=e+4|0;g=g+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}tc(g,e,d<<2);break a}if(!d)break a;k=c<<1;l=b<<1;b=0;while(1){I[g>>1]=L[e>>1];a=g+2|0;h=L[e+2>>1];d:{if((h|0)==L[f+2>>1]){I[a>>1]=h;break d}h=e+2|0;i=K[h+1|0]<<8;j=K[h|0]|i;h=i|K[h|0];i=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=i+((P(l,((h<<8|h>>>8)& -65535)-((j<<8|j>>>8)&65535)|0)+c|0)/(k|0)|0)&65535;h=h<<8|h>>>8;H[a|0]=h;H[a+1|0]=h>>>8}f=f+4|0;e=e+4|0;g=g+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}return 0}function RJ(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;g=bc-48|0;bc=g;a:{if(!a)break a;b:switch(J[a+216>>2]-1|0){case 0:c=l0(J[a+8>>2],b,c,d,e,f);if(!c){if(!J[a+268>>2]|(J[a+172>>2]==-1?J[a+212>>2]:0))break a;J[a+84>>2]=107;J[g+16>>2]=b;Cc(0,0,0,a,0,1,107,1,b,0,0,0,31709,g+16|0);break a}if(J[c+64>>2]|!e)break a;b=J[a+ -36>>2];c:{if(b){b=J[b+4>>2];if(b)break c}b=J[a+180>>2]}h=c,i=Gt(e,b),J[h+64>>2]=i;break a;case 1:c=n0(J[a+8>>2],b,c,d,e,f);if(!c){if(!J[a+268>>2])break a;c=J[a>>2];if(!c)break a;c=J[c+84>>2];if(!c)break a;a=J[a+4>>2];J[g+32>>2]=b;gc[c|0](a,31596,g+32|0);break a}if(J[c+64>>2]|!e)break a;b=J[a+36>>2];d:{if(b){b=J[b+4>>2];if(b)break d}b=J[a+180>>2]}h=c,i=Gt(e,b),J[h+64>>2]=i;break a;default:break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=104;J[g+4>>2]=0;J[g>>2]=b;Cc(0,0,0,a,0,1,104,3,b,0, -0,0,31243,g);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}bc=g+48|0}function DZa(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;a:{b:{e=J[b+4>>2];c:{if(!e){f=b+4|0;c=f;break c}f=K[c+11|0];g=f<<24>>24>=0;i=g?c:J[c>>2];g=g?f:J[c+4>>2];while(1){c=e;e=K[e+27|0];f=e<<24>>24<0;e=f?J[c+20>>2]:e;j=e>>>0>>0;d:{e:{f:{g:{h=j?e:g;h:{if(h){f=f?J[c+16>>2]:c+16|0;k=Wc(i,f,h);if(!k){if(e>>>0>g>>>0)break h;break g}if((k|0)>=0)break g;break h}if(e>>>0<=g>>>0)break f}f=c;e=J[c>> -2];if(e)continue;break c}e=Wc(f,i,h);if(e)break e}if(j)break d;break b}if((e|0)>=0)break b}e=J[c+4>>2];if(e)continue;break}f=c+4|0}e=rc(40);J[e+24>>2]=J[d+8>>2];g=J[d+4>>2];J[e+16>>2]=J[d>>2];J[e+20>>2]=g;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[e+36>>2]=J[d+20>>2];g=J[d+16>>2];J[e+28>>2]=J[d+12>>2];J[e+32>>2]=g;J[d+12>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[e+8>>2]=c;J[e>>2]=0;J[e+4>>2]=0;J[f>>2]=e;c=e;d=J[J[b>>2]>>2];if(d){J[b>>2]=d;c=J[f>>2]}Ic(J[b+4>>2],c);J[b+8>>2]=J[b+8>>2]+1;b=1;break a}e=c;b=0}H[a+4| -0]=b;J[a>>2]=e}function zq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=K[b+11|0];e=c<<24>>24<0;d=e?J[b>>2]:b;b=e?J[b+4>>2]:c;a:{if((b|0)==-1)while(1){b=2;b:{c:{d:{e:{f:{g:{h:{i:{j:{c=J[d>>2];switch(c|0){case 0:break a;case 10:break h;case 13:break i;case 9:break j;case 38:break b;case 39:break d;case 60:break e;case 62:break f;case 34:break g;default:break c}}b=9;break b}b=8;break b}b=7;break b}b=6;break b}b=5;break b}b=4;break b}b=3;break b}b=c-32>>>0<55264|c-57344>>>0<8190|c-65536>>>0<1048576}WR(a,c, -b);d=d+4|0;continue}e=(b|0)<=1?1:b;while(1){b=2;k:{l:{m:{n:{o:{p:{q:{r:{s:{c=J[d>>2];switch(c|0){case 0:break a;case 38:break k;case 9:break m;case 13:break n;case 10:break o;case 34:break p;case 62:break q;case 60:break r;case 39:break s;default:break l}}b=3;break k}b=4;break k}b=5;break k}b=6;break k}b=7;break k}b=8;break k}b=9;break k}b=c-32>>>0<55264|c-57344>>>0<8190|c-65536>>>0<1048576}WR(a,c,b);d=d+4|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}}function HU(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0, -h=0,i=0;c=J[a+8>>2]?212:172;b=J[a+12>>2];if(b)c=(gc[J[J[b>>2]+24>>2]](b)|0)+c|0;d=J[a+20>>2];if(d){h=bc-32|0;bc=h;g=J[d+44>>2];f=J[d+40>>2];b=P(g-f|0,12)+84|0;a:{b:{if((f|0)<=(g|0))while(1){if(J[d+40>>2]>(f|0)){b=Kc(h+8|0,2381890,2382316,632,2422732,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;Fc(b);ba(a|0);B()}e=J[(J[d+28>>2]+P(f-J[d+32>>2]|0,12)|0)+4>>2];if(e){g=J[d+44>>2];if(J[e+20>>2])i=(L[e+12>>1]+P(L[e+14>>1],L[e+8>>1])|0)+72|0;else i=72;b=(i+(J[e+36>>2]?J[e+ -60>>2]:0)|0)+b|0}e=(f|0)<(g|0);f=f+1|0;if(e)continue;break}bc=h+32|0;break a}B()}c=(((J[d+100>>2]-J[d+96>>2]<<3)+b|0)+44|0)+c|0}b=J[a+28>>2];if(b)c=(P(P(L[b+8>>1],L[b+10>>1]),3)+c|0)+24|0;b=J[a+32>>2];if(b)c=((J[b+60>>2]-J[b+56>>2]<<2)+c|0)+4|0;b=J[a+36>>2];if(b)c=(gc[J[J[b>>2]+28>>2]](b)|0)+c|0;b=J[a+44>>2];if(b)c=(gc[J[J[b>>2]+28>>2]](b)|0)+c|0;return(J[a+48>>2]?c+1024|0:c)|0}function F1a(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;g=bc-16|0;bc=g;a:{if(J[b>>2]>0)break a;f=a+76|0;while(1){d= -J[a+4>>2];if(!d)break a;b:{c:{if((d|0)==J[a+20>>2]){J[a+4>>2]=J[a>>2];c=Qc(d);break c}c=Yf(d,58);J[a+4>>2]=c;if(!c){c=Qc(d);break c}J[a+4>>2]=c+1;c=c-d|0}if(!c)break b;J[a+128>>2]=0;H[J[a+76>>2]]=0;Kt(f,d,c,b);d=J[a+76>>2];e=ls(d,47);h=(c|0)<4;d:{e:{if(h|K[a+188|0]!=1)break e;if(kd((c+d|0)-4|0,J[a+12>>2],4))break e;e=e?e+1|0:d;i=J[a+16>>2];if(kd(e,J[a+8>>2],i))break e;if((Qc(e)|0)==(i+4|0))break d}e=c+d|0;if(K[e-1|0]!=47){if(!h)if(!kd(e-4|0,729590,4))break b;d=J[a+184>>2];f:{if(!d|(c|0)<=(d|0))break f; -if(Ec(e-d|0,J[a+132>>2]))break f;c=c-d|0;c=(c|0)>0?c:0;if((c|0)>2]){J[f+52>>2]=c;H[c+J[f>>2]|0]=0}}U0(f,47,b)}Kt(f,J[a+132>>2]+1|0,J[a+184>>2]-1|0,b);a=J[a+12>>2];if(!K[a|0])break d;a=Si(g+8|0,a);Kt(f,J[a>>2],J[a+4>>2],b)}j=J[f>>2];break a}if(J[a>>2])continue;break}}bc=g+16|0;return j|0}function wL(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;g=bc-16|0;bc=g;a:{if(H[a+372|0]&1){i=J[a+52>>2];j=J[a+48>>2];l=L[a+46>>1];k=L[a+44>>1];h=J[a+36>>2];m=J[a+40>>2];f=a- -64|0;n=J[f+4>>2]; -J[g+8>>2]=J[f>>2];J[g+12>>2]=n;f=J[a+60>>2];J[g>>2]=J[a+56>>2];J[g+4>>2]=f;f=a+290|0;break a}i=J[a+88>>2];j=J[a+84>>2];l=L[a+82>>1];k=L[a+80>>1];h=J[a+72>>2];m=J[a+76>>2];f=J[a+104>>2];J[g+8>>2]=J[a+100>>2];J[g+12>>2]=f;f=J[a+96>>2];J[g>>2]=J[a+92>>2];J[g+4>>2]=f;f=a+292|0}f=L[f>>1];b:{if(f>>>0>=k>>>0){if(K[a+565|0])J[a+12>>2]=134;I[e>>1]=0;a=1;break b}J[d+16>>2]=i;J[d+12>>2]=j;I[d+10>>1]=l;I[d+8>>1]=k;J[d>>2]=h;J[d+4>>2]=m;h=J[g+4>>2];J[d+20>>2]=J[g>>2];J[d+24>>2]=h;h=J[g+12>>2];J[d+28>>2]=J[g+8>> -2];J[d+32>>2]=h;I[e>>1]=f;e=b;b=f<<3;d=b+i|0;b=b+j|0;b=gc[J[a+576>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0;o=e,p=Dd(b,I[a+302>>1],J[a+568>>2]),J[o>>2]=p;o=c,p=Dd(b,I[a+304>>1],J[a+568>>2]),J[o>>2]=p;a=0}bc=g+16|0;return a}function fub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d| -0)<=0)break a;b=0;while(1){if(!(b&255)){g=K[e|0];e=e+1|0;b=128}if(b&g){H[c|0]=K[c|0]^-1;d=J[a+588>>2]}b=(b&254)>>>1|0;c=J[a+584>>2]+c|0;f=f+1|0;if((f|0)<(d|0))continue;break}break b}if((d|0)<=0)break a;b=0;while(1){if(!(b&255)){g=K[e|0];e=e+1|0;b=128}b=b&255;H[c|0]=b&g?-1:0;b=b>>>1|0;c=J[a+584>>2]+c|0;d=J[a+588>>2];f=f+1|0;if((d|0)>(f|0))continue;break}}if((d|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;c=0;e= -0;d=0;while(1){if(!(c&255)){e=K[f|0];f=f+1|0;c=128}c=c&255;H[b|0]=(c&e)!=0;c=c>>>1|0;b=J[a+584>>2]+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function $Pa(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=(+J[b>>2]*1.52587890625E-5+16)/116;g=e+ +J[b+8>>2]*1.52587890625E-5/-200;h=O[a+32>>3]*(g>=.20689655172413793?g*(g*g):(g+-.13793103448275862)*.12841854934601665);g=e+ +J[b+4>>2]*1.52587890625E-5/500;g=O[a+16>>3]*(g>=.20689655172413793?g*(g*g):(g+-.13793103448275862)*.12841854934601665); +2]=e;J[a+16>>2]=f;return}J[c>>2]=-127}function Lma(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;m=1;j=a+240|0;if(J[ym(j,(J[j+8>>2]-J[j+4>>2]>>2)-1|0)>>2]==32)m=J[ym(b,0)>>2]!=32;a:{b:{d=J[c>>2];f=J[c+4>>2];if((d|0)!=(f|0)){n=a+256|0;while(1){e=J[a+260>>2];c:{if(!((h|0)!=0|m)){e=e-8|0;O[e>>3]=O[e>>3]+O[d>>3];O[a+48>>3]=O[d>>3]+O[a+48>>3];break c}l=(h<<3)+d|0;d:{if(J[a+264>>2]!=(e|0)){O[e>>3]=O[l>>3];J[a+260>>2]=e+8;break d}i=J[n>>2];f=e-i|0;k=f>>3;d=k+1|0;if(d>>>0>=536870912)break b; +g=f>>2;g=f>>>0>=2147483640?536870911:d>>>0>>0?g:d;if(g){if(g>>>0>=536870912)break a;f=vc(g<<3)}else f=0;d=f+(k<<3)|0;O[d>>3]=O[l>>3];k=d+8|0;if((e|0)!=(i|0))while(1){d=d-8|0;e=e-8|0;O[d>>3]=O[e>>3];if((e|0)!=(i|0))continue;break}J[a+264>>2]=f+(g<<3);J[a+260>>2]=k;J[a+256>>2]=d;if(!i)break d;uc(i)}O[a+48>>3]=O[l>>3]+O[a+48>>3];Sz(j,ym(b,h));d=J[c>>2];f=J[c+4>>2]}h=h+1|0;if(h>>>0>3>>>0)continue;break}}O[a+40>>3]=O[a+32>>3]+O[a+48>>3];return}Fg(n);B()}Pd();B()}function Er(a,b,c,d,e,f){var g= +0,h=0,i=0,j=0,k=0;g=J[d>>2];if(!g){if(!e)return 0;return J[e>>2]}h=J[g>>2];j=g+8|0;k=g+12|0;i=J[a+4>>2];a:{if(i){h=kc[i|0](h,c)|0;break a}h=c>>>0>>0?1:c>>>0>h>>>0?-1:0}h=(h|0)>0?j:k&h>>31;b:{if(h){if(b>>>0>=1024){J[a+8>>2]=1;return g}g=Er(a,b+1|0,c,h,d,e);if((g|0)!=J[d>>2]|J[a+8>>2])break b}if(!e)break b;a=J[e>>2];b=J[a+8>>2];if(!f){a=((b|0)==(g|0)?12:8)+g|0;J[d>>2]=J[a>>2];J[a>>2]=J[e>>2];J[e>>2]=g;return g}c:{d:{c=(b|0)!=(g|0);if(c)break d;d=J[f>>2];if((a|0)!=J[d+8>>2])break d;J[d+8>>2]=J[a+ +12>>2];J[a+12>>2]=J[f>>2];J[a+8>>2]=J[g+12>>2];J[g+12>>2]=a;break c}e:{if(J[a+12>>2]!=(g|0))break e;d=J[f>>2];if((a|0)!=J[d+12>>2])break e;J[d+12>>2]=b;J[a+8>>2]=J[f>>2];J[a+12>>2]=J[g+8>>2];J[g+8>>2]=a;break c}if(!c){J[a+8>>2]=J[g+12>>2];J[g+12>>2]=J[e>>2];J[J[f>>2]+12>>2]=J[g+8>>2];J[g+8>>2]=J[f>>2];break c}J[a+12>>2]=J[g+8>>2];J[g+8>>2]=J[e>>2];J[J[f>>2]+8>>2]=J[g+12>>2];J[g+12>>2]=J[f>>2]}J[f>>2]=g}return g}function pJ(a){var b=0,c=0;c=J[a+4>>2];if(J[a>>2]==255){if(c>>>0>=144){if(!J[a+36>>2]){J[a+ +16>>2]=8;return}J[a>>2]=c;b=J[a+40>>2];a:{if((b|0)>=0){J[a+40>>2]=-1;break a}b=J[a+32>>2];J[a+32>>2]=b-1;if((b|0)<=0){b=255;break a}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];b=kc[J[J[b>>2]+28>>2]](b)&255;c=J[a>>2]}J[a+4>>2]=b;J[a+8>>2]=(J[a+8>>2]-(c<<8)|0)+65280;J[a+16>>2]=8;return}J[a>>2]=c;b:{c:{if(!J[a+36>>2])break c;b=J[a+40>>2];if((b|0)>=0){J[a+40>>2]=-1;break b}b=J[a+32>>2];J[a+32>>2]=b-1;if((b|0)>0)break c;b=255;break b}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];b=kc[J[J[b>>2]+28>>2]](b)&255;c=J[a>>2]}J[a+ +4>>2]=b;J[a+8>>2]=(J[a+8>>2]-(c<<9)|0)+65024;J[a+16>>2]=7;return}J[a>>2]=c;d:{e:{if(!J[a+36>>2])break e;b=J[a+40>>2];if((b|0)>=0){J[a+40>>2]=-1;break d}b=J[a+32>>2];J[a+32>>2]=b-1;if((b|0)>0)break e;b=255;break d}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];b=kc[J[J[b>>2]+28>>2]](b)&255;c=J[a>>2]}J[a+4>>2]=b;J[a+8>>2]=(J[a+8>>2]-(c<<8)|0)+65280;J[a+16>>2]=8}function fJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-32|0;fc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;c:{if(J[a+72>>2]){Nc(d,2,2361585, +0);c=1;break c}if((c|0)!=14){c=0;Nc(d,1,2361790,0);break c}wd(b,a+16|0,4);wd(b+4|0,a+12|0,4);wd(b+8|0,a+20|0,2);f=J[a+12>>2];d:{g=J[a+16>>2];c=J[a+20>>2];e:{if(!g)break e;c=J[a+20>>2];if(!f)break e;if(c)break d;c=0}J[e+8>>2]=c;J[e+4>>2]=g;J[e>>2]=f;Nc(d,1,2361912,e);c=0;break c}if(c-16385>>>0<=4294950911){c=0;Nc(d,1,2362001,0);break c}c=Ge(c,12);J[a+72>>2]=c;if(!c){c=0;Nc(d,1,2362050,0);break c}c=1;wd(b+10|0,a+24|0,1);wd(b+11|0,a+28|0,1);f=J[a+28>>2];if((f|0)!=7){J[e+16>>2]=f;Nc(d,4,2362136,e+16| +0)}wd(b+12|0,a+32|0,1);wd(b+13|0,a+36|0,1);b=J[a>>2];H[b+176|0]=K[b+176|0]&251|(J[a+24>>2]==255)<<2;b=J[a>>2];J[b+204>>2]=J[a+12>>2];J[b+208>>2]=J[a+16>>2];H[a+133|0]=1}fc=e+32|0;return c|0}fa(2361471,2354795,567,2371504);B()}fa(2354499,2354795,568,2371504);B()}fa(2355439,2354795,569,2371504);B()}function UQ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;a=fc-16|0;fc=a;J[a+12>>2]=c;J[a+8>>2]=f;J[a+12>>2]=c;J[a+8>>2]=f;b=J[a+12>>2];a:{while(1){if(b>>>0>=d>>>0){c=0;break a}c=2;b=J[b>> +2];if(b>>>0>1114111|(b&-2048)==55296)break a;b:{c:{if(b>>>0<=127){c=1;f=J[a+8>>2];if((g-f|0)<=0)break a;J[a+8>>2]=f+1;H[f|0]=b;break c}if(b>>>0<=2047){c=J[a+8>>2];if((g-c|0)<2)break b;J[a+8>>2]=c+1;H[c|0]=b>>>6|192;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break c}c=J[a+8>>2];f=g-c|0;if(b>>>0<=65535){if((f|0)<3)break b;J[a+8>>2]=c+1;H[c|0]=b>>>12|224;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128;break c}if((f|0)<4)break b;J[a+8>>2]=c+1;H[c|0]=b>>>18|240;c= +J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>12&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b>>>6&63|128;c=J[a+8>>2];J[a+8>>2]=c+1;H[c|0]=b&63|128}b=J[a+12>>2]+4|0;J[a+12>>2]=b;continue}break}c=1}J[e>>2]=J[a+12>>2];J[h>>2]=J[a+8>>2];fc=a+16|0;return c|0}function vCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-1072|0;fc=d;J[d+8>>2]=0;J[d+12>>2]=J[685894];a:{b:{c:{d:{while(1){c=J[J[b>>2]+8>>2];J[699344]=0;e=d+48|0;c=ga(c|0,b|0,e|0,1024)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;if(!c)break b;J[699344]=0;c=ga(5339, +d+40|0,e|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[699344]=0;aa(5340,d+8|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;wc(c);continue}break}b=Z()|0;break a}b=Z()|0;wc(c);break a}b=Z()|0;break a}b=J[d+8>>2];b=J[(b?b+12|0:2743576)>>2];J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[699344]=0;c=d+16|0;J[c>>2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;e=J[699344];J[699344]=0;e:{if((e|0)!=1){H[c+16|0]=0;J[699344]=0;da(5371,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;id(c); +break a}wc(d+8|0);J[699344]=0;da(5372,a|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break e;id(c);fc=d+1072|0;return}b=Z()|0;break a}a=Z()|0;id(c);ba(a|0);B()}wc(d+8|0);ba(b|0);B()}function WSa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-48|0;fc=e;J[a+88>>2]=13;J[a+72>>2]=13;J[a+56>>2]=13;J[a+40>>2]=13;J[a+24>>2]=13;J[a+8>>2]=13;J[e+32>>2]=13;J[e+16>>2]=13;a:{b:{if(c){J[a>>2]=1;J[a+4>>2]=0;Ke(c,776266,e+32|0);c:{d:switch(J[e+32>>2]-7|0){case 2:jf(e+32|0,b,e+16|0,0);if(J[e+16>>2]==7){f=J[e+ +44>>2];J[e+8>>2]=J[e+40>>2];J[e+12>>2]=f;f=vc(8);J[699344]=0;b=ha(3543,f|0,b|0,e+8|0,J[e+24>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[a+4>>2]=b}yc(e+16|0);break c;case 0:break d;default:break c}f=vc(8);J[699344]=0;b=ha(3543,f|0,b|0,0,J[e+40>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[a+4>>2]=b}yc(e+32|0);Ec(c,777478,a+8|0,0);Ec(c,778955,a+24|0,0);Ec(c,779864,a+40|0,0);Ec(c,781356,a+56|0,0);Ec(c,782351,a+72|0,0);Ec(c,783154,a+88|0,0);break b}J[a+88>>2]=5;J[a+72>>2]=5;J[a+56>>2]= +5;J[a+40>>2]=5;J[a+24>>2]=5;J[a+8>>2]=5;J[a>>2]=0;J[a+4>>2]=0}J[a+104>>2]=d;fc=e+48|0;return a|0}a=Z()|0;uc(f);ba(a|0);B()}function Kr(a,b){var c=0;a:{b:{if(!(a&131072)){c:switch(b-47|0){default:if((b|0)==32)break b;break;case 0:case 15:break b;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break c}a=1;if(b-48>>>0<11|(b&-33)-65>>>0<26|((b|0)==95|b-45>>>0<2))break a;if((b|0)==183|b-65536>>>0<917504|(b-65008>>>0<526|b-63744>>>0<1232))break a;if(b- +12289>>>0<43007|b-11264>>>0<1008|(b-8304>>>0<288|b-8255>>>0<2))break a;if((b&-2)==8204|b-895>>>0<7297|(b-248>>>0<646|b-192>>>0<23))break a;if(b-216>>>0>=31)break b;break a}d:{if((b|0)<=255){a=1;if(b-192>>>0<23|(b&-33)-65>>>0<26|(b-48>>>0<10|(b|0)>247))break a;if(b-216>>>0>=31)break d;break a}a=1;if(Zm(b,771140)|b-12321>>>0<9|((b|0)==12295|b-19968>>>0<20902))break a;if(Zm(b,771624))break a}c=b-45|0;if((b|0)==95|(1<>>0<=13:0))break a;if((b|0)>=256){if(Zm(b,771548))break a;if(Zm(b,771688))break a; +break b}if((b|0)==183)break a}a=0}return a}function ZV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[J[b+12>>2]+((c>>>0)%M[b+8>>2]<<2)>>2];a:{if(e)while(1){if(J[e+12>>2]==(c|0)&J[e+16>>2]==(c|0))break a;e=J[e+8>>2];if(e)continue;break}e=vc(24);J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=0;J[e+16>>2]=c;J[e+12>>2]=c;J[e+8>>2]=0;Em(b,e)}J[e+20>>2]=d;f=a+8|0;e=f;e=J[J[e+12>>2]+((c>>>0)%M[e+8>>2]<<2)>>2];b:{if(!e)break b;while(1){if(!(J[e+12>>2]==(c|0)&J[e+16>>2]==(c|0))){e=J[e+8>>2];if(e)continue;break b}break}e= +J[J[f+12>>2]+((c>>>0)%M[f+8>>2]<<2)>>2];c:{if(e)while(1){if(J[e+12>>2]==(c|0)&J[e+16>>2]==(c|0))break c;e=J[e+8>>2];if(e)continue;break}e=vc(24);J[e>>2]=0;J[e+4>>2]=0;J[e+20>>2]=0;J[e+16>>2]=c;J[e+12>>2]=c;J[e+8>>2]=0;Em(f,e)}c=J[J[e+20>>2]+8>>2];if(!c)break b;f=d+1|0;while(1){d=J[c+8>>2];e=J[J[b+12>>2]+((d>>>0)%M[b+8>>2]<<2)>>2];d:{if(e)while(1){if((d|0)==J[e+12>>2]&(d|0)==J[e+16>>2])break d;e=J[e+8>>2];if(e)continue;break}ZV(a,b,d,f)}c=J[c>>2];if(c)continue;break}}}function KHa(a,b,c){a=a|0;b=b| +0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;if(K[dS(f+15|0,a,1)|0]){a:{if(H[b+11|0]<0){J[J[b>>2]>>2]=0;J[b+4>>2]=0;break a}H[b+11|0]=0;J[b>>2]=0}h=a+24|0;b:{c:{d:{while(1){d=J[J[J[a>>2]-12>>2]+h>>2];e=J[d+12>>2];e:{if((e|0)==J[d+16>>2]){e=J[J[d>>2]+40>>2];J[699344]=0;d=_(e|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break e;break d}J[d+12>>2]=e+4;d=J[e>>2]}if((d|0)==-1)break c;if((c|0)==(d|0)){d=0;break b}J[699344]=0;da(3417,b|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break d;g=g+1|0;if(J[b+ +4>>2]!=1073741807|H[b+11|0]>=0)continue;break}d=4;break b}oa(ea(0)|0)|0;d=1;b=J[a>>2]-12|0;c=J[b>>2]+a|0;J[c+16>>2]=J[c+16>>2]|1;f:{g:{if(H[(J[b>>2]+a|0)+20|0]&1){J[699344]=0;ka(5052);a=J[699344];J[699344]=0;if((a|0)!=1)break f;a=Z()|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break g;ba(a|0);B()}ta();break b}ea(0)|0;Bc()}B()}d=g?2:6}b=J[J[a>>2]-12>>2]+a|0;nz(b,J[b+16>>2]|d)}fc=f+16|0;return a|0}function H3(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;J[a+28>>2]=0;n=.5/O[a>> +3];O[a+8>>3]=n*n;i=J[a+32>>2];l=J[a+28>>2];j=l>>>6|0;if(i>>>0<=j>>>0){h=J[a+36>>2];a:{if(h>>>0>j>>>0){h=J[a+40>>2];break a}k=h+J[a+44>>2]|0;h=vc(k>>>0>1073741823?-1:k<<2);m=J[a+40>>2];if(m){xc(h,m,i<<2);uc(m);k=J[a+36>>2]+J[a+44>>2]|0;l=J[a+28>>2];i=J[a+32>>2]}J[a+36>>2]=k;J[a+40>>2]=h}o=(j<<2)+h|0,p=vc(1024),J[o>>2]=p;J[a+32>>2]=i+1}h=J[J[a+40>>2]+(j<<2)>>2]+((l&63)<<4)|0;O[h+8>>3]=c;O[h>>3]=b;J[a+28>>2]=J[a+28>>2]+1;G3(a,b,c,d,e,f,g,0);i=J[a+32>>2];l=J[a+28>>2];j=l>>>6|0;if(i>>>0<=j>>>0){h=J[a+ +36>>2];b:{if(h>>>0>j>>>0){h=J[a+40>>2];break b}k=h+J[a+44>>2]|0;h=vc(k>>>0>1073741823?-1:k<<2);m=J[a+40>>2];if(m){xc(h,m,i<<2);uc(m);k=J[a+36>>2]+J[a+44>>2]|0;l=J[a+28>>2];i=J[a+32>>2]}J[a+36>>2]=k;J[a+40>>2]=h}o=(j<<2)+h|0,p=vc(1024),J[o>>2]=p;J[a+32>>2]=i+1}h=J[J[a+40>>2]+(j<<2)>>2]+((l&63)<<4)|0;O[h+8>>3]=g;O[h>>3]=f;J[a+28>>2]=J[a+28>>2]+1;J[a+24>>2]=0}function MJa(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;g=fc-16|0;fc=g;a:{b:{c:{if(b){if(!a)break c;if(!d)break b;d:{if(c>>>0<=1){Nc(d, +1,2368429,0);a=0;break d}H[a+176|0]=K[a+176|0]|1;wd(b,g+12|0,1);e=J[a+116>>2];e:{if(!e){if(J[a+112>>2])break a;f=J[g+12>>2]+1|0;e=Ge(f,8);J[a+116>>2]=e;if(!e){Nc(d,1,2364519,0);a=0;break d}J[a+112>>2]=f;break e}f=J[g+12>>2];if(f>>>0>2])break e;h=e;e=f+1|0;f=ch(h,e<<3);if(!f){Nc(d,1,2364519,0);a=0;break d}J[a+116>>2]=f;h=J[a+112>>2];Ac(f+(h<<3)|0,0,e-h<<3);J[a+112>>2]=e;e=J[a+116>>2]}h=e;e=J[g+12>>2];if(J[h+(e<<3)>>2]){J[g>>2]=e;Nc(d,1,2368485,g);a=0;break d}c=c-1|0;e=ef(c);a=J[a+116>>2]; +f=J[g+12>>2];J[a+(f<<3)>>2]=e;if(!e){Nc(d,1,2364519,0);a=0;break d}J[(a+(f<<3)|0)+4>>2]=c;xc(J[a+(J[g+12>>2]<<3)>>2],b+1|0,c);a=1}fc=g+16|0;return a|0}fa(2365733,2358254,3820,2368412);B()}fa(2358373,2358254,3821,2368412);B()}fa(2358486,2358254,3822,2368412);B()}fa(2368455,2358254,3840,2368412);B()}function Hm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;e=rf(b);c=J[J[a+12>>2]+((e>>>0)%M[a+8>>2]<<2)>>2];a:{if(c)while(1){if((e|0)==J[c+12>>2])if(!Qj(c+16|0,b,-1))break a;c=J[c+8>>2]; +if(c)continue;break}c=vc(28);J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=0;e=c+16|0;J[e>>2]=0;J[e+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+20>>2]=J[685894];b:{b=J[b>>2];c:{d:{if(b){f=J[J[b>>2]+28>>2];J[699344]=0;ca(f|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d;c=Z()|0;break c}J[d+12>>2]=0}J[699344]=0;aa(5153,e|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break b;J[699344]=0;f=J[b+4>>2]-1|0;J[b+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)!=1){if(f)break b;J[699344]= +0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b}ea(0)|0;Bc();B()}c=Z()|0;zc(d+12|0)}wc(e);ba(c|0);B()}b=J[c+16>>2];b=J[(b?b+12|0:2743576)>>2];J[c+24>>2]=0;J[c+20>>2]=b;h=c,i=rf(e),J[h+12>>2]=i;Em(a,c)}fc=d+16|0;return c|0}function cxa(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;J[a+8>>2]=0;J[a>>2]=2423832;J[a+4>>2]=0;J[a+12>>2]=J[685894];J[699344]=0;aa(5149,a+16|0,2423756)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[a+24>>2]=0;c=J[685894];H[a+88|0]=0;J[a+68>>2]=1;I[a+64>>1]=0;J[a+ +60>>2]=0;I[a+56>>1]=0;J[a+48>>2]=-1;J[a+52>>2]=50;J[a+40>>2]=255;J[a+44>>2]=1;H[a+36|0]=0;J[a+32>>2]=0;J[a+28>>2]=c;J[a>>2]=2424400;g=J[b>>2];J[a+124>>2]=g;h=J[b+4>>2];J[a+128>>2]=h;d=J[b+8>>2];J[a+132>>2]=d;e=J[b+12>>2];b=(d-g|0)/2|0;J[a+100>>2]=b;J[a+136>>2]=e;f=(e-h|0)/2|0;J[a+104>>2]=f;c=b+f|0;d=(d+g|0)/2|0;e=(e+h|0)/2|0;a:{if((b|0)>(f|0)){i=Y(+(P(c,b-f|0)|0));b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}g=d-c|0;d=c+d|0;c=f;h=e;break a}i=Y(+(P(c,f-b|0)|0));c:{if(R(i)<2147483648){j=~~i;break c}j= +-2147483648}h=j+e|0;c=b;b=f;g=d;e=e-j|0}J[a+120>>2]=e;J[a+116>>2]=g;J[a+108>>2]=d;J[a+92>>2]=b;J[a+96>>2]=c;J[a+112>>2]=h;return a|0}b=Z()|0;wc(a+8|0);nd(a);ba(b|0);B()}function y5(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;a:{j=J[a+8>>2];if(!j)break a;e=J[b>>2];if(!J[e+8>>2]|!J[e+12>>2])break a;l=J[e+12>>2];if(!l)break a;o=J[e+8>>2];if(!o)break a;s=J[e+16>>2];t=K[a+13|0];while(1){m=0;a=J[b>>2];a=J[a+4>>2]+P(J[a+16>>2],(s|0)<0?(k^-1)+l|0:k)|0;while(1){e=P(K[c|0], +P(K[j+3|0],t));if(e>>>0>=65281){f=e+255>>>16|0;p=K[j|0];q=K[j+1|0];r=K[j+2|0];e=a+3|0;h=K[a|0];i=K[a+1|0];n=K[a+2|0];g=K[a+3|0];b:{if((g|0)!=255){e=f+g-(P(f,g)+255>>>8)|0;H[a+3|0]=e;h=P(g,h);e=e&255;h=(h+P(f,p)-(P(f,h)+255>>>8)>>>0)/(e>>>0)|0;i=P(g,i);i=(i+P(f,q)-(P(f,i)+255>>>8)>>>0)/(e>>>0)|0;g=P(g,n);g=(g+P(f,r)-(P(f,g)+255>>>8)>>>0)/(e>>>0)|0;e=a;break b}H[a|0]=h+(P(p-h|0,f)>>>8|0);i=i+(P(q-i|0,f)>>>8|0)|0;g=(P(r-n|0,f)>>>8|0)+n|0;h=(f-(P(f,255)+255>>>8|0)|0)+255|0}H[a+1|0]=i;H[a+2|0]=g;H[e|0]= +h}c=c+d|0;a=a+4|0;j=j+4|0;m=m+1|0;if((m|0)!=(o|0))continue;break}k=k+1|0;if((k|0)!=(l|0))continue;break}}}function iEb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;J[a+28>>2]=0;J[a+16>>2]=0;a:{b:{c:{if(cf(b,a+12|0))break c;d=Dc(J[a+12>>2]);J[a+16>>2]=d;if(!d)break b;d=Ai(b,d,J[a+12>>2]);if((d|0)!=J[a+12>>2])break c;H[(d+J[a+16>>2]|0)-1|0]=0;if(cf(b,a+20|0))break c;if(cf(b,a+24|0))break c;d=Dc(J[a+24>>2]<<1);J[a+28>>2]=d;if(!d)break c;if((Ai(b,d,J[a+24>>2]<<1)|0)!=J[a+24>>2]<<1)break c;if(ak(b,a+32|0))break c; +d=J[b+8>>2];if(d&7)break c;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break c}d=J[b+28>>2];J[b+28>>2]=d-1;d:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;d=K[d|0];break d}d=td(b,1);if((d|0)==-1)break c}H[a+36|0]=d;if((Ai(b,a+37|0,67)|0)!=67)break c;e=Yc(J[a+16>>2]);J[a+12>>2]=e+1;d=-1;e=(e+(J[a+24>>2]<<1)|0)+83|0;if((e|0)>(c|0))break a;d=0;if((c|0)<=(e|0))break a;f=b;b=c-e|0;if((qv(f,b)|0)==(b|0))break a}b=J[a+16>>2];if(!b)break b;uc(b)}d=-1;a=J[a+28>>2];if(!a)break a; +uc(a)}return d|0}function ela(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=Q(0),k=Q(0),l=Q(0),m=0,n=0,o=0;if((c|0)>0){a=J[a+12>>2];while(1){l=Q(0);f=J[a>>2];e=f>>16;m=e&32767;a:{if(!m){k=Q(0);j=Q(0);break a}k=Q(0);d=Np((+(m|0)+.5)*.0027076061740622863+-44.3614195558365);d=e&32768?-d:d;j=Q(0);if(d<=0)break a;h=(+((f>>>8&255)>>>0)+.5)*.0024390243902439024;i=(+((f&255)>>>0)+.5)*.0024390243902439024;g=1/(h*6+i*-16+12);h=h*9*g;g=i*4*g;k=Q(d*(h/g));l=Q(d*((1-h-g)/g));j=Q(d)}d=+k;g=+j;n=d*.061+ +g*-.224;h=+l;o=h*1.163;i=h*-.414+(d*2.69+g*-1.276);if(i<=0)e=0;else{e=i>=1;i=Y(i)*256;b:{if(R(i)<2147483648){f=~~i;break b}f=-2147483648}e=e?-1:f}H[b|0]=e;d=h*.044+(d*-1.022+g*1.978);if(d<=0)e=0;else{e=d>=1;d=Y(d)*256;c:{if(R(d)<2147483648){f=~~d;break c}f=-2147483648}e=e?-1:f}H[b+1|0]=e;a=a+4|0;d=o+n;if(d<=0)e=0;else{e=d>=1;d=Y(d)*256;d:{if(R(d)<2147483648){f=~~d;break d}f=-2147483648}e=e?-1:f}H[b+2|0]=e;b=b+3|0;f=c>>>0>1;c=c-1|0;if(f)continue;break}}}function Zbb(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;a:{if((d|0)<=0)break a;e=J[a+480>>2];g=J[a+112>>2];j=J[a+120>>2];if((j|0)<=0){a=0;while(1){Re(J[(a<<2)+c>>2],g);J[e+48>>2]=J[e+48>>2]+1&15;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!g){a=0;while(1){Re(J[(a<<2)+c>>2],0);J[e+48>>2]=J[e+48>>2]+1&15;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}q=g&-2;r=g&1;while(1){a=k<<2;o=a+c|0;Re(J[o>>2],g);s=a+b|0;p=J[e+48>>2];t=p<<6;h=0;while(1){a=h<<2;l=J[(a+e|0)+52>>2]+t|0;f=J[s>>2]+ +h|0;m=J[a+J[e+24>>2]>>2];a=J[o>>2];i=0;n=0;if((g|0)!=1)while(1){H[a|0]=K[a|0]+K[K[f|0]+(J[(i<<2)+l>>2]+m|0)|0];f=f+j|0;H[a+1|0]=K[a+1|0]+K[K[f|0]+(J[((i+1&15)<<2)+l>>2]+m|0)|0];a=a+2|0;i=i+2&15;f=f+j|0;n=n+2|0;if((q|0)!=(n|0))continue;break}if(r)H[a|0]=K[a|0]+K[K[f|0]+(J[(i<<2)+l>>2]+m|0)|0];h=h+1|0;if((j|0)!=(h|0))continue;break}J[e+48>>2]=p+1&15;k=k+1|0;if((k|0)!=(d|0))continue;break}}}function ZR(a,b,c){var d=0,e=0;a:{b:{if(J[a+64>>2])break b;d=1750;c:{d:{e:{f:{g:{h:{i:{j:{k:{l:{m:{n:{o:{p:{e= +c&-3;switch(e-1|0){case 4:case 20:break i;case 19:break j;case 8:case 24:break k;case 23:break m;case 7:break n;case 0:case 16:break o;case 15:break c;case 1:case 2:case 3:case 5:case 6:case 9:case 10:case 13:case 14:case 17:case 18:case 21:case 22:case 25:case 26:break d;case 12:case 28:break e;case 27:break g;case 11:break h;default:break p}}q:switch(e-48|0){case 4:break j;case 0:break c;case 1:case 2:case 3:break d;default:break q}switch(e-56|0){case 0:break l;case 4:break f;default:break d}}d= +19879;break c}d=5622;break c}d=28731;break c}d=28728;break c}d=28738;break c}d=18077;break c}d=18795;break c}d=18788;break c}d=18802;break c}d=18798;break c}d=18806;break c}d=0}if(!d)break b;b=jk(b,d);J[a+64>>2]=b;if(!b)break b;J[a+88>>2]=c;if(!(c&2))break a;if(!hh(b,0,2))break a;pg(J[a+64>>2]);J[a+64>>2]=0}return 0}return a}function JO(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=fc-1744|0;fc=f;e=J[53330];d=f+1736|0;J[d>>2]=J[53329];J[d+4>>2]=e;e=J[53328];d=f+1728|0;J[d>>2]=J[53327];J[d+4>>2]=e;e=J[53326]; +d=f+1720|0;J[d>>2]=J[53325];J[d+4>>2]=e;d=J[53324];J[f+1712>>2]=J[53323];J[f+1716>>2]=d;xc(f+16|0,213328,1696);if(!(K[a+432|0]|!K[a+344|0]))H[a+497|0]=0;d=xs(b);J[f+12>>2]=0;i=c-4|0;j=b+4|0;b=11;c=52;a:{while(1){e=(f+16|0)+(b<<5)|0;g=J[e>>2];b:{if((g|0)<(d|0)){h=b+1|0;break b}if((d|0)>=(g|0))break a;c=b-1|0}b=c+h>>1;if((c|0)>=(h|0))continue;break}e=0}J[a+268>>2]=d;J[a+272>>2]=J[a+272>>2]+1;e=e?e:f+1712|0;b=J[e+12>>2];c:{if(!b){b=0;break c}b=kc[b|0](a,e,i,j,f+12|0)|0;c=J[f+12>>2];d:{if(!(b|!c)){b= +0;if(J[e>>2]!=1077952576)break d;J[c>>2]=d;break d}if(!c)break c}Ay(a,c)}e:{if(K[a+289|0]|(K[a+285|0]|K[a+286|0]))break e;b=0;if(K[a+346|0])break e;H[a+346|0]=1;c=J[a+168>>2];if(!c)break e;if(kc[c|0](a)|0)break e;b=901;Jc(a,901,0,0)}fc=f+1744|0;return b}function w$a(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;a:{b:{e=J[b+4>>2];c:{if(!e){f=b+4|0;c=f;break c}f=K[c+11|0];g=f<<24>>24>=0;i=g?c:J[c>>2];g=g?f:J[c+4>>2];while(1){c=e;e=K[e+27|0];f=e<<24>>24<0;e=f?J[c+20>>2]:e;j=e>>>0< +g>>>0;d:{e:{f:{g:{h=j?e:g;h:{if(h){f=f?J[c+16>>2]:c+16|0;k=dd(i,f,h);if(!k){if(e>>>0>g>>>0)break h;break g}if((k|0)>=0)break g;break h}if(e>>>0<=g>>>0)break f}f=c;e=J[c>>2];if(e)continue;break c}e=dd(f,i,h);if(e)break e}if(j)break d;break b}if((e|0)>=0)break b}e=J[c+4>>2];if(e)continue;break}f=c+4|0}e=vc(40);J[e+24>>2]=J[d+8>>2];g=J[d+4>>2];J[e+16>>2]=J[d>>2];J[e+20>>2]=g;J[d>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[e+36>>2]=J[d+20>>2];g=J[d+16>>2];J[e+28>>2]=J[d+12>>2];J[e+32>>2]=g;J[d+12>>2]=0;J[d+16>>2]= +0;J[d+20>>2]=0;J[e+8>>2]=c;J[e>>2]=0;J[e+4>>2]=0;J[f>>2]=e;c=e;d=J[J[b>>2]>>2];if(d){J[b>>2]=d;c=J[f>>2]}Oc(J[b+4>>2],c);J[b+8>>2]=J[b+8>>2]+1;b=1;break a}e=c;b=0}H[a+4|0]=b;J[a>>2]=e}function gvb(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;var h=0,i=0,j=0,k=0,l=0;a:{b:{if(f){if(((c+1|0)/2|0)>(b|0))break b;if(!d)break a;k=c<<1;l=b<<1;b=0;while(1){I[g>>1]=L[f>>1];a=g+2|0;h=L[e+2>>1];c:{if((h|0)==L[f+2>>1]){I[a>>1]=h;break c}h=e+2|0;i=K[h+1|0]<<8;j=K[h|0]|i;h=i|K[h|0];i=(h<<8|h>>>8)&65535; +h=K[f+2|0]|K[f+3|0]<<8;h=i+((P(l,((h<<8|h>>>8)&65535)-((j<<8|j>>>8)&65535)|0)+c|0)/(k|0)|0)&65535;h=h<<8|h>>>8;H[a|0]=h;H[a+1|0]=h>>>8}f=f+4|0;e=e+4|0;g=g+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}xc(g,e,d<<2);break a}if(!d)break a;k=c<<1;l=b<<1;b=0;while(1){I[g>>1]=L[e>>1];a=g+2|0;h=L[e+2>>1];d:{if((h|0)==L[f+2>>1]){I[a>>1]=h;break d}h=e+2|0;i=K[h+1|0]<<8;j=K[h|0]|i;h=i|K[h|0];i=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=i+((P(l,((h<<8|h>>>8)&65535)-((j<<8|j>>>8)&65535)|0)+c|0)/(k|0)|0)& +65535;h=h<<8|h>>>8;H[a|0]=h;H[a+1|0]=h>>>8}f=f+4|0;e=e+4|0;g=g+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}return 0}function cL(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;g=fc-48|0;fc=g;a:{if(!a)break a;b:switch(J[a+216>>2]-1|0){case 0:c=l2(J[a+8>>2],b,c,d,e,f);if(!c){if(!J[a+268>>2]|(J[a+172>>2]==-1?J[a+212>>2]:0))break a;J[a+84>>2]=107;J[g+16>>2]=b;Hc(0,0,0,a,0,1,107,1,b,0,0,0,31725,g+16|0);break a}if(J[c+64>>2]|!e)break a;b=J[a+36>>2];c:{if(b){b=J[b+4>>2];if(b)break c}b=J[a+ +180>>2]}h=c,i=tu(e,b),J[h+64>>2]=i;break a;case 1:c=n2(J[a+8>>2],b,c,d,e,f);if(!c){if(!J[a+268>>2])break a;c=J[a>>2];if(!c)break a;c=J[c+84>>2];if(!c)break a;a=J[a+4>>2];J[g+32>>2]=b;kc[c|0](a,31612,g+32|0);break a}if(J[c+64>>2]|!e)break a;b=J[a+36>>2];d:{if(b){b=J[b+4>>2];if(b)break d}b=J[a+180>>2]}h=c,i=tu(e,b),J[h+64>>2]=i;break a;default:break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=104;J[g+4>>2]=0;J[g>>2]=b;Hc(0,0,0,a,0,1,104,3,b,0,0,0,31259,g);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+ +288>>2])break a;J[a+212>>2]=1}fc=g+48|0}function ZS(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-48|0;fc=c;a:{if(a>>>0>6)break a;b:{if((a|0)==6){if(!b)break b;a=J[655073];J[c+16>>2]=J[655072];J[c+20>>2]=a;a=J[655071];J[c+8>>2]=J[655070];J[c+12>>2]=a;a=J[655069];J[c>>2]=J[655068];J[c+4>>2]=a;a=0;c:{while(1){d=Dz(b,59);e=d-b|0;if((e|0)<=23){xc(c,b,e);H[c+e|0]=0;b=K[d|0]?d+1|0:b}d=Ez(a,c);if((d|0)==-1)break c;J[(c+24|0)+(a<<2)>>2]=d;a=a+1|0;if((a|0)!=6)continue;break}a=J[c+28>>2];J[698598]=J[c+ +24>>2];J[698599]=a;a=J[c+44>>2];J[698602]=J[c+40>>2];J[698603]=a;a=J[c+36>>2];J[698600]=J[c+32>>2];J[698601]=a;break b}d=0;break a}d:{if(b){b=Ez(a,b);if((b|0)==-1)break a;J[(a<<2)+2794392>>2]=b;break d}b=J[(a<<2)+2794392>>2]}d=b?b+8|0:21857;break a}b=2794592;d=0;a=0;while(1){h=J[698598];e=J[(a<<2)+2794392>>2];g=e?e+8|0:21857;f=Yc(g);xc(b,g,f);f=b+f|0;H[f|0]=59;b=f+1|0;d=((e|0)==(h|0))+d|0;a=a+1|0;if((a|0)!=6)continue;break}H[f|0]=0;d=(d|0)!=6?2794592:g}fc=c+48|0;return d|0}function Wj(a){var b=0, +c=0,d=0,e=0;a:{if(!a)break a;b:{c:switch(J[a+4>>2]-14|0){case 0:b=J[a+32>>2];if(!b)break b;if(J[b+44>>2]==(a|0))J[b+44>>2]=0;if(J[b+48>>2]!=(a|0))break b;J[b+48>>2]=0;break b;case 4:break a;case 3:break c;default:break b}d=J[a+32>>2];if(!d)break b;b=J[d+44>>2];d:{if(!b)break d;e=J[b+48>>2];c=J[a+8>>2];if((Bf(e,c,0,0)|0)==(a|0)){su(e,c,0,0);c=J[a+8>>2];b=J[d+44>>2]}b=J[b+60>>2];if((Bf(b,c,0,0)|0)!=(a|0))break d;su(b,c,0,0)}b=J[d+48>>2];if(!b)break b;e=J[b+48>>2];c=J[a+8>>2];if((Bf(e,c,0,0)|0)==(a| +0)){su(e,c,0,0);c=J[a+8>>2];b=J[d+48>>2]}b=J[b+60>>2];if((Bf(b,c,0,0)|0)!=(a|0))break b;su(b,c,0,0)}b=J[a+20>>2];if(b){e:{f:{if(J[a+4>>2]==2){if(J[b+44>>2]!=(a|0))break e;c=b+44|0;b=a+24|0;break f}if(J[b+12>>2]==(a|0))J[b+12>>2]=J[a+24>>2];if(J[b+16>>2]!=(a|0))break e;c=b+16|0;b=a+28|0}J[c>>2]=J[b>>2]}J[a+20>>2]=0}b=J[a+28>>2];c=J[a+24>>2];if(c)J[c+28>>2]=b;if(b)J[b+24>>2]=c;J[a+24>>2]=0;J[a+28>>2]=0}}function y3a(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;g=fc-16|0;fc=g;a:{if(J[b>>2]>0)break a; +f=a+76|0;while(1){d=J[a+4>>2];if(!d)break a;b:{c:{if((d|0)==J[a+20>>2]){J[a+4>>2]=J[a>>2];c=Yc(d);break c}c=eg(d,58);J[a+4>>2]=c;if(!c){c=Yc(d);break c}J[a+4>>2]=c+1;c=c-d|0}if(!c)break b;J[a+128>>2]=0;H[J[a+76>>2]]=0;xu(f,d,c,b);d=J[a+76>>2];e=at(d,47);h=(c|0)<4;d:{e:{if(h|K[a+188|0]!=1)break e;if(ud((c+d|0)-4|0,J[a+12>>2],4))break e;e=e?e+1|0:d;i=J[a+16>>2];if(ud(e,J[a+8>>2],i))break e;if((Yc(e)|0)==(i+4|0))break d}e=c+d|0;if(K[e-1|0]!=47){if(!h)if(!ud(e-4|0,731334,4))break b;d=J[a+184>>2];f:{if(!d| +(c|0)<=(d|0))break f;if(Ic(e-d|0,J[a+132>>2]))break f;c=c-d|0;c=(c|0)>0?c:0;if((c|0)>2]){J[f+52>>2]=c;H[c+J[f>>2]|0]=0}}S2(f,47,b)}xu(f,J[a+132>>2]+1|0,J[a+184>>2]-1|0,b);a=J[a+12>>2];if(!K[a|0])break d;a=hj(g+8|0,a);xu(f,J[a>>2],J[a+4>>2],b)}j=J[f>>2];break a}if(J[a>>2])continue;break}}fc=g+16|0;return j|0}function xo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=K[b+11|0];e=c<<24>>24<0;d=e?J[b>>2]:b;b=e?J[b+4>>2]:c;a:{if((b|0)==-1)while(1){b=2;b:{c:{d:{e:{f:{g:{h:{i:{j:{c=J[d>>2];switch(c|0){case 0:break a; +case 10:break h;case 13:break i;case 9:break j;case 38:break b;case 39:break d;case 60:break e;case 62:break f;case 34:break g;default:break c}}b=9;break b}b=8;break b}b=7;break b}b=6;break b}b=5;break b}b=4;break b}b=3;break b}b=c-32>>>0<55264|c-57344>>>0<8190|c-65536>>>0<1048576}xT(a,c,b);d=d+4|0;continue}e=(b|0)<=1?1:b;while(1){b=2;k:{l:{m:{n:{o:{p:{q:{r:{s:{c=J[d>>2];switch(c|0){case 0:break a;case 38:break k;case 9:break m;case 13:break n;case 10:break o;case 34:break p;case 62:break q;case 60:break r; +case 39:break s;default:break l}}b=3;break k}b=4;break k}b=5;break k}b=6;break k}b=7;break k}b=8;break k}b=9;break k}b=c-32>>>0<55264|c-57344>>>0<8190|c-65536>>>0<1048576}xT(a,c,b);d=d+4|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}}function BW(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=J[a+8>>2]?212:172;b=J[a+12>>2];if(b)c=(kc[J[J[b>>2]+24>>2]](b)|0)+c|0;d=J[a+20>>2];if(d){h=fc-32|0;fc=h;g=J[d+44>>2];f=J[d+40>>2];b=P(g-f|0,12)+84|0;a:{b:{if((f|0)<=(g|0))while(1){if(J[d+40>>2]>(f|0)){b=Qc(h+8|0, +2393794,2394220,632,2434636,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;Kc(b);ba(a|0);B()}e=J[(J[d+28>>2]+P(f-J[d+32>>2]|0,12)|0)+4>>2];if(e){g=J[d+44>>2];if(J[e+20>>2])i=(L[e+12>>1]+P(L[e+14>>1],L[e+8>>1])|0)+72|0;else i=72;b=(i+(J[e+36>>2]?J[e+60>>2]:0)|0)+b|0}e=(f|0)<(g|0);f=f+1|0;if(e)continue;break}fc=h+32|0;break a}B()}c=(((J[d+100>>2]-J[d+96>>2]<<3)+b|0)+44|0)+c|0}b=J[a+28>>2];if(b)c=(P(P(L[b+8>>1],L[b+10>>1]),3)+c|0)+24|0;b=J[a+32>>2];if(b)c=((J[b+60>>2]- +J[b+56>>2]<<2)+c|0)+4|0;b=J[a+36>>2];if(b)c=(kc[J[J[b>>2]+28>>2]](b)|0)+c|0;b=J[a+44>>2];if(b)c=(kc[J[J[b>>2]+28>>2]](b)|0)+c|0;return(J[a+48>>2]?c+1024|0:c)|0}function gSa(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=(+J[b>>2]*1.52587890625E-5+16)/116;g=e+ +J[b+8>>2]*1.52587890625E-5/-200;h=O[a+32>>3]*(g>=.20689655172413793?g*(g*g):(g+-.13793103448275862)*.12841854934601665);g=e+ +J[b+4>>2]*1.52587890625E-5/500;g=O[a+16>>3]*(g>=.20689655172413793?g*(g*g):(g+-.13793103448275862)*.12841854934601665); e=O[a+24>>3]*(e>=.20689655172413793?e*(e*e):(e+-.13793103448275862)*.12841854934601665);f=O[a+96>>3]*(h*-.498531+(g*3.240449+e*-1.537136));f=f<0?0:f>1?1:f;f=f==-Infinity?Infinity:R(Y(f))*65536;a:{if(R(f)<2147483648){b=~~f;break a}b=-2147483648}J[c>>2]=b;f=O[a+104>>3]*(h*.041556+(g*-.969265+e*1.876011));f=f<0?0:f>1?1:f;f=f==-Infinity?Infinity:R(Y(f))*65536;b:{if(R(f)<2147483648){b=~~f;break b}b=-2147483648}J[c+4>>2]=b;e=O[a+112>>3]*(h*1.057229+(g*.055643+e*-.204026));e=e<0?0:e>1?1:e;e=e==-Infinity? -Infinity:R(Y(e))*65536;if(R(e)<2147483648){J[c+8>>2]=~~e;return}J[c+8>>2]=-2147483648}function lFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-144|0;bc=d;a:{a=K[b+11|0];if(a<<24>>24<0?J[b+4>>2]:a){a=d+4|0;J[a+4>>2]=0;J[a+60>>2]=2369644;J[a>>2]=2369624;J[695492]=0;f=a+60|0;c=a+8|0;da(2853,f|0,c|0);e=J[695492];J[695492]=0;b:{c:{d:{if((e|0)!=1){J[a+132>>2]=0;J[a+136>>2]=-1;J[a+60>>2]=2369588;J[a>>2]=2369568;J[695492]=0;c=$(4890,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;J[c>>2]=2369744;J[a+48>> -2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+56>>2]=8;J[695492]=0;da(4891,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;if(H[a+51|0]<0)qc(J[a+40>>2]);Nh(c);break c}break b}b=Z()|0;break c}b=Z()|0}Uf(f);ba(b|0);B()}J[d>>2]=0;b=a+J[J[a>>2]-12>>2]|0;J[b+4>>2]=J[b+4>>2]&-75|8;J[695492]=0;aa(4897,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;c=J[d>>2];J[a+60>>2]=2369588;J[a>>2]=2369568;J[a+8>>2]=2369744;if(H[a+51|0]<0)qc(J[a+40>>2]);Nh(a+8|0);Uf(a+60|0)}bc=d+144|0;return c|0}b=Z()| -0;hW(a);ba(b|0);B()}function $tb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;b=0;while(1){if(!(b&255)){g=K[e|0];e=e+1|0;b=128}if(b&g){H[c|0]=K[c|0]^1;d=J[a+588>>2]}b=(b&254)>>>1|0;c=J[a+584>>2]+c|0;f=f+1|0;if((f|0)<(d|0))continue;break}break b}if((d|0)<=0)break a;b= -0;while(1){if(!(b&255)){g=K[e|0];e=e+1|0;b=128}b=b&255;H[c|0]=(b&g)!=0;b=b>>>1|0;c=J[a+584>>2]+c|0;d=J[a+588>>2];f=f+1|0;if((d|0)>(f|0))continue;break}}if((d|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;c=0;e=0;d=0;while(1){if(!(c&255)){e=K[f|0];f=f+1|0;c=128}c=c&255;H[b|0]=(c&e)!=0;c=c>>>1|0;b=J[a+584>>2]+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function o0(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=-1;a:{if(!(!d|(!a|!b))){if(!c){J[b>>2]=0;J[d>>2]=0;return 0}e=J[b>>2]/2|0;f=a;j=c;h=J[d>>2];b:{if((h|0)<=0)break b;k=h+j|0;l=(e<<1)+f|0;while(1){e=H[j|0];g=e&255;h=(e|0)>=0;i=0;c:{if(h)break c;if(e>>>0<=4294967231){J[b>>2]=f-a;J[d>>2]=j-c;return-2}if(e>>>0<=4294967263){g=g&31;i=1;break c}if(e>>>0<=4294967279){g=g&15;i=2;break c}if(e>>>0>4294967287)break a;g=g&7;i=3}e=j+1|0;if((i|0)>(k-e|0))break b;d:{e:{if(!(e>>>0>=k>>>0|h)){while(1){f:{h=e+1|0;e=K[e|0];if((e&192)!= -128)break f;g=e&63|g<<6;i=i-1|0;if(!i)break f;e=h;if(k>>>0>e>>>0)continue}break}if(g>>>0>65535)break e;e=h}if(f>>>0>=l>>>0)break b;I[f>>1]=g;h=e;f=f+2|0;break d}if(g>>>0>1114111|f+2>>>0>=l>>>0)break b;I[f+2>>1]=g&1023|56320;I[f>>1]=g+16711680>>>10|55296;f=f+4|0}j=h;if(k>>>0>h>>>0)continue;break}}J[b>>2]=f-a;J[d>>2]=j-c;e=J[b>>2]}return e|0}J[b>>2]=f-a;J[d>>2]=j-c;return-2}function o$(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;b=K[J[J[a+36>>2]+16>>2]];a:{if(((b&223)-65&255)>>>0<=25){d=gc[J[659450]](10)| -0;if(!d){ke(a,0);break a}H[d|0]=b;Qd(a);c=K[J[J[a+36>>2]+16>>2]];g=1;h=10;while(1){b:{c:{d:{if((c-48&255)>>>0<10|((c&-33)-65&255)>>>0<26)break d;b=c&255;if(b-45>>>0<2)break d;if((b|0)!=95)break c}e=g+1|0;if((e|0)<(h|0)){b=d;break b}h=h<<1;b=gc[J[659452]](d,h)|0;if(b)break b;c=0;ke(a,0);gc[J[659451]](d);break a}H[d+g|0]=0;c=d;break a}d=b;H[b+g|0]=c;Qd(a);g=e;b=J[a+36>>2];e=J[b+16>>2];c=K[e|0];if(c)continue;e:{if(J[a+292>>2])break e;if(!((e-J[b+12>>2]|0)<501|(J[b+20>>2]-e|0)>499)){Pg(a);b=J[a+36>>2]; -if(J[a+292>>2])break e}if((J[b+20>>2]-J[b+16>>2]|0)>249)break e;Hd(a);b=J[a+36>>2]}c=K[J[b+16>>2]];continue}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break a;J[a+84>>2]=79;J[f>>2]=14058;Cc(0,0,0,a,0,1,79,3,0,0,0,0,32890,f);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}bc=f+16|0;return c}function i7(a,b,c,d,e,f,g,h){var i=0,j=0,k=0;a:{b:{k=(P(d,f)<<2)+a|0;i=(e|0)/32|0;c:{if(!J[k+(i<<2)>>2])break c;j=i<<5|31;if((j|0)<(e|0)|(b|0)<=(e|0))break c;while(1){if(J[k+(e>>5<<2)>>2]>>>(e^-1)&1)break b;if((e|0)>= -(j|0))break c;e=e+1|0;if((e|0)<(b|0))continue;break}}i=i+1|0;e=i<<5;if((e|0)<(b|0)){i=k+(i<<2)|0;while(1){d:{if(!J[i>>2])break d;j=0;if((b|0)<=(e|0))break d;while(1){if(J[k+(e>>5<<2)>>2]>>>(e^-1)&1)break b;e=e+1|0;if(j>>>0>30)break d;j=j+1|0;if((b|0)>(e|0))continue;break}}i=i+4|0;e=e+32|0;if((e|0)<(b|0))continue;break}}e=0;f=f+1|0;if((b|0)<=0|(f|0)>=(c|0))break a;while(1){k=(P(d,f)<<2)+a|0;i=k;while(1){e:{if(!J[i>>2])break e;j=0;if((b|0)<=(e|0))break e;while(1){if(J[k+(e>>5<<2)>>2]>>>(e^-1)&1)break b; -e=e+1|0;if(j>>>0>30)break e;j=j+1|0;if((b|0)>(e|0))continue;break}}i=i+4|0;e=e+32|0;if((e|0)<(b|0))continue;break}e=0;f=f+1|0;if((f|0)!=(c|0))continue;break}break a}J[g>>2]=e;J[h>>2]=f;e=1}return e}function Ecb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;c=J[b+72>>2];d=J[a+100>>2];J[e+12>>2]=0;b=gc[J[b+36>>2]](b)|0;a:{if((b|0)<0|J[a+304>>2])break a;c=M[c+4>>2]/100|0;c=b>>>0>>0?b:c;d=Sc(d,252,0,c,0,e+12|0);J[a+304>>2]=d;if(J[e+12>>2])break a;J[a+300>>2]=c;if(!c)break a;b=0;if(c>>> -0>=4){h=c&67108860;while(1){a=d+P(b,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|1,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|2,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|3,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;b=b+4|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}c=c&3;if(!c)break a;while(1){a=d+P(b,252)|0;J[a+116>> -2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}bc=e+16|0}function Dtb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[J[a+536>>2]+88>>2];e=(J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0)+P(J[d+1164>>2],J[a+580>>2])|0;d=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){c=K[e|0]|K[e+1|0]<<8;b=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=b+((c<<8|c>>>8)&65535)&65535;c= -c<<8|c>>>8;H[e|0]=c;H[e+1|0]=c>>>8;c=e+2|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[d+2|0]|K[d+3|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;c=e+4|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[d+4|0]|K[d+5|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;c=e+6|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[d+6|0]|K[d+7|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d+8|0;e=e+8|0;g=g+1|0;if((g|0)>2])continue; -break}}return 0}tc(e,d,J[a+588>>2]<<3);return 0}function Bgb(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;if(M[b+160>>2]>>0)ge(b,8);c=K[a+3|0]|K[a+2|0]<<8;j=c+a|0;if(!(c>>>0>=518&M[b+160>>2]>=j>>>0))ge(b,8);c=a+6|0;while(1){f=K[c+1|0];g=f|K[c|0]<<8;if(!(!(f&7)|J[b+164>>2]<2))ge(b,8);c=c+2|0;f=g>>>3|0;h=f>>>0>h>>>0?f:h;d=d+1|0;if((d|0)!=256)continue;break}c=a+518|0;g=(c+(h<<3)|0)+8|0;if(g>>>0>M[b+160>>2])ge(b,8);d=0;while(1){f=d;a=c+8|0;d=K[c+3|0]|K[c+2|0]<<8;a:{if(!d){c= -a;break a}e=K[c+6|0];k=K[c+7|0];l=K[c+4|0];m=K[c+5|0];i=K[c|0];n=K[c+1|0];b:{if(J[b+164>>2]<2)break b;i=n|i<<8;if(i>>>0<=255&256-i>>>0>=d>>>0)break b;ge(b,8)}e=e<<8|k;if(!e){c=a;break a}e=e+(c+6|0)|0;if(!(e>>>0>=g>>>0&e+(d<<1)>>>0<=j>>>0))ge(b,9);if(J[b+164>>2]<=0){c=a;break a}e=l<<8|m;d=((d<<1)+c|0)+8|0;c=a;while(1){a=K[c+1|0]|K[c|0]<<8;if(!(!a|M[b+172>>2]>(a+e&65535)>>>0))ge(b,16);c=c+2|0;if(d>>>0>c>>>0)continue;break}}d=f+1|0;if((f|0)!=(h|0))continue;break}return 0}function Xcb(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;d=bc-336|0;bc=d;i=J[a+100>>2];gc[J[b+60>>2]](b,d+272|0,4,d+268|0);f=J[d+268>>2];a:{if((f|0)<0){c=162;break a}c=3;if(f-5>>>0<4294967292)break a;j=J[b+8>>2];k=J[b>>2];c=EC(a,0,f);J[d+332>>2]=c;if(c)break a;if(J[d+268>>2]>0){f=J[a+532>>2]+88|0;while(1){a=P(g,12);c=a+(d+272|0)|0;J[b>>2]=J[c>>2];J[b+8>>2]=J[c+4>>2];gc[J[b+60>>2]](b,d+16|0,20,d+12|0);c=3;e=J[d+12>>2];if(e-21>>>0<4294967276)break a;a=a+f|0;if(J[a+4>>2])break a;e=Sc(i,4,0,e<<1,0,d+332|0);J[a+4>>2]= -e;c=J[d+332>>2];if(c)break a;c=J[d+12>>2];J[a+8>>2]=e+(c<<2);H[a|0]=c;if((c|0)>0){c=0;while(1){e=(d+16|0)+P(c,12)|0;J[b>>2]=J[e>>2]+1;J[b+8>>2]=J[e+4>>2]-1;e=gc[J[b+36>>2]](b)|0;h=c<<2;J[h+J[a+4>>2]>>2]=e;e=gc[J[b+40>>2]](b,0)|0;J[J[a+8>>2]+h>>2]=e;c=c+1|0;if((c|0)>2])continue;break}}g=g+1|0;if((g|0)>2])continue;break}g=J[d+332>>2]}J[b+8>>2]=j;J[b>>2]=k;c=g}J[b+12>>2]=c;bc=d+336|0}function lga(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,m=0,n=0;k=bc-16|0;bc=k;l=j;a:{if(a){j=k+4|0;a=ZP(b);gc[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;gc[J[J[a>>2]+32>>2]](j,a);pi(i,j);ad(j);gc[J[J[a>>2]+28>>2]](j,a);pi(h,j);ad(j);m=d,n=gc[J[J[a>>2]+12>>2]](a)|0,H[m|0]=n;m=e,n=gc[J[J[a>>2]+16>>2]](a)|0,H[m|0]=n;gc[J[J[a>>2]+20>>2]](j,a);pi(f,j);ad(j);gc[J[J[a>>2]+24>>2]](j,a);pi(g,j);ad(k+4|0);a=gc[J[J[a>>2]+36>>2]](a)|0;break a}j=k+4|0;a=YP(b);gc[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+ -1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;gc[J[J[a>>2]+32>>2]](j,a);pi(i,j);ad(j);gc[J[J[a>>2]+28>>2]](j,a);pi(h,j);ad(j);m=d,n=gc[J[J[a>>2]+12>>2]](a)|0,H[m|0]=n;m=e,n=gc[J[J[a>>2]+16>>2]](a)|0,H[m|0]=n;gc[J[J[a>>2]+20>>2]](j,a);pi(f,j);ad(j);gc[J[J[a>>2]+24>>2]](j,a);pi(g,j);ad(k+4|0);a=gc[J[J[a>>2]+36>>2]](a)|0}J[l>>2]=a;bc=k+16|0}function Z0a(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;l=J[a+328>>2]-1|0;m=J[a+448>>2];a:{while(1){f=J[a+144>>2];c=J[a+152>>2];if((f| -0)>=(c|0)&((c|0)!=(f|0)|M[a+148>>2]>M[a+156>>2]))break a;if(gc[J[J[a+456>>2]>>2]](a)|0)continue;break}return 0}if(J[a+36>>2]>0){d=J[a+216>>2];while(1){b:{if(!J[d+52>>2])break b;e=h<<2;c=J[d+12>>2];n=gc[J[J[a+4>>2]+32>>2]](a,J[(e+m|0)+72>>2],P(c,J[a+156>>2]),c,0)|0;g=!J[d+28>>2];if(M[a+156>>2]>>0)c=J[d+12>>2];else{f=J[d+12>>2];c=M[d+32>>2]%(f>>>0)|0;c=c?c:f}if(g|(c|0)<=0)break b;o=J[(e+J[a+468>>2]|0)+4>>2];i=J[b+e>>2];g=0;e=1;while(1){f=0;if(e){e=J[(g<<2)+n>>2];j=0;k=0;while(1){gc[o|0](a,d,e,i, -j);e=e+128|0;j=J[d+36>>2]+j|0;f=J[d+28>>2];k=k+1|0;if(f>>>0>k>>>0)continue;break}}i=(J[d+40>>2]<<2)+i|0;e=f;g=g+1|0;if((c|0)!=(g|0))continue;break}}d=d+88|0;h=h+1|0;if((h|0)>2])continue;break}}b=J[a+156>>2]+1|0;J[a+156>>2]=b;return(b>>>0>2]?3:4)|0}function MC(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;h=bc-16|0;bc=h;k=J[a+12>>2];if(k)J[(J[a+20>>2]+(k<<4)|0)-4>>2]=e;i=J[a+16>>2];l=k+1|0;a:{b:{if(i>>>0>=l>>>0){g=J[a+20>>2];break b}J[h+4>>2]=0;e=i;i=(k&-8)+8|0;g=Sc(f,16,e,i,J[a+20>>2], -h+4|0);J[a+20>>2]=g;j=J[h+4>>2];if(j)break a;J[a+16>>2]=i}e=((l<<4)+g|0)-16|0;J[e>>2]=0;J[((k<<4)+g|0)+12>>2]=0;J[a+12>>2]=l;if(!l){c:{if(i){e=g;break c}J[h+8>>2]=0;e=Sc(f,16,0,8,g,h+8|0);J[a+20>>2]=e;j=J[h+8>>2];if(j)break a;J[a+16>>2]=8}J[e>>2]=0;J[e+12>>2]=0;J[a+12>>2]=1}a=J[e+4>>2];J[h+12>>2]=0;g=d+7>>>3|0;a=a+7>>>3|0;d:{if(g>>>0<=a>>>0){f=J[e+8>>2];break d}i=a;a=g+7&1073741816;f=Sc(f,1,i,a,J[e+8>>2],h+12|0);J[e+8>>2]=f;j=J[h+12>>2];if(j)break a;J[e+4>>2]=a<<3}J[e>>2]=d;j=0;if(!d)break a;b=(c>>> -3|0)+b|0;e=128>>>(c&7)|0;a=128;while(1){c=K[f|0];H[f|0]=K[b|0]&e?c|a:c&(a^-1);c=a>>>0<2;a=c?128:a>>1;g=e>>>0<2;e=g?128:e>>>1|0;f=c+f|0;b=b+g|0;d=d-1|0;if(d)continue;break}}bc=h+16|0;return j}function HA(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a>>2];if((gc[J[J[d>>2]+40>>2]](d,J[a+24>>2],J[a+20>>2])|0)==J[a+20>>2]){a:{b:{c:{d:{c=J[a+12>>2];switch(c-1|0){case 7:break a;case 0:break c;case 15:break d;default:break b}}if(J[a+16>>2]<=0)break a;while(1){H[J[a+28>>2]+b|0]=K[J[a+24>>2]+(b<<1)|0];b=b+1|0; -if((b|0)>2])continue;break}break a}if(J[a+16>>2]<=0)break a;d=J[a+24>>2];while(1){c=K[d|0];H[J[a+28>>2]+b|0]=c>>>7;H[J[a+28>>2]+(b|1)|0]=c>>>6&1;H[J[a+28>>2]+(b|2)|0]=c>>>5&1;H[J[a+28>>2]+(b|3)|0]=c>>>4&1;H[J[a+28>>2]+(b|4)|0]=c>>>3&1;H[J[a+28>>2]+(b|5)|0]=c>>>2&1;H[J[a+28>>2]+(b|6)|0]=c>>>1&1;H[J[a+28>>2]+(b|7)|0]=c&1;d=d+1|0;b=b+8|0;if((b|0)>2])continue;break}break a}if(J[a+16>>2]<=0)break a;g=-1<>2];d=0;while(1){if((b|0)<(c|0)){f=K[e|0]|f<<8;e=e+1|0;b=b+8|0}H[J[a+ -28>>2]+d|0]=f>>>b-c&g;c=J[a+12>>2];b=b-c|0;d=d+1|0;if((d|0)>2])continue;break}}a=J[a+28>>2]}else a=0;return a|0}function VR(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(+a);f=v(1)|0;i=v(0)|0;g=f&2147483647;d=g;if(d>>>0>=1141899264){A(1.5707963267948966);d=v(1)|0;f=v(0)|0;A(+a);b=v(1)|0;v(0)|0;x(0,f|0);x(1,d&2147483647|b&-2147483648);b=g;return j=a,k=+z(),l=(b|0)==2146435072&(i|0)!=0|b>>>0>2146435072,l?j:k}a:{b:{if(d>>>0<=1071382527){b=-1;if(d>>>0>=1044381696)break b;break a}a=R(a); -if(d>>>0<=1072889855){if(d>>>0<=1072037887){a=(a+a+-1)/(a+2);b=0;break b}a=(a+-1)/(a+1);b=1;break b}if(d>>>0<=1073971199){a=(a+-1.5)/(a*1.5+1);b=2;break b}a=-1/a;b=3}e=a*a;c=e*e;h=c*(c*(c*(c*(c*-.036531572744216916+-.058335701337905735)+-.0769187620504483)+-.11111110405462356)+-.19999999999876483);e=e*(c*(c*(c*(c*(c*.016285820115365782+.049768779946159324)+.06661073137387531)+.09090887133436507)+.14285714272503466)+.3333333333333293);if(d>>>0<=1071382527)return a-a*(h+e);b=b<<3;a=O[b+2451424>>3]- -(a*(h+e)-O[b+2451456>>3]-a);a=(f|0)<0?-a:a}return a}function qEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-160|0;bc=d;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[695492]=0;b=ga(4874,d+16|0,b|0,24)|0;e=J[695492];J[695492]=0;a:{if((e|0)!=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;while(1){J[695492]=0;e=ga(4875,b|0,d|0,c|0)|0;f=J[695492];J[695492]=0;b:{c:{d:{if((f|0)!=1){if(K[(e+J[J[e>>2]-12>>2]|0)+16|0]&5)break c;e=J[a+4>>2];if((e|0)!=J[a+8>>2]){if(H[d+11|0]>=0){f=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=f;J[e+8>> -2]=J[d+8>>2];break b}J[695492]=0;ca(15,e|0,J[d>>2],J[d+4>>2]);f=J[695492];J[695492]=0;if((f|0)!=1)break b;c=Z()|0;J[a+4>>2]=e;break d}J[695492]=0;da(2796,a|0,d|0);e=J[695492];J[695492]=0;if((e|0)!=1)continue}c=Z()|0}if(H[d+11|0]<0)qc(J[d>>2]);bA(b);break a}if(H[d+11|0]<0)qc(J[d>>2]);J[b+64>>2]=2369932;J[b>>2]=2369892;J[b+12>>2]=2369744;J[b+8>>2]=2369912;if(H[b+55|0]<0)qc(J[b+44>>2]);Nh(b+12|0);Uf(b- -64|0);bc=d+160|0;return}J[a+4>>2]=e+12;continue}}c=Z()|0}sg(a);ba(c|0);B()}function pob(a,b){a=a| -0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=K[b+36|0];c=L[b+38>>1];c=c<<8|c>>>8;H[d+13|0]=c;H[d+14|0]=c>>>8;c=L[b+40>>1];c=c<<8|c>>>8;H[d+15|0]=c;H[d+16|0]=c>>>8;c=L[b+42>>1];c=c<<8|c>>>8;H[d+17|0]=c;H[d+18|0]=c>>>8;c=L[b+44>>1];c=c<<8|c>>>8;H[d+19|0]=c;H[d+20|0]=c>>>8;c=L[b+46>>1];c=c<<8|c>>>8;H[d+21|0]=c;H[d+22|0]=c>>>8;c=L[b+48>>1];c=c<<8|c>>>8;H[d+23|0]=c;H[d+24|0]=c>>>8;f= -K[b+50|0];H[d+25|0]=f;d=d+8|0;g=a;h=J[b>>2];e=18;a:{if(K[b+36|0]!=(f|0))break a;c=L[b+48>>1];e=17;if((c|0)!=L[b+40>>1])break a;e=15;if((c|0)!=L[b+46>>1])break a;a=L[b+44>>1];e=13;if((a|0)!=L[b+38>>1])break a;e=11;if((a|0)!=L[b+42>>1])break a;e=9;if((a|0)!=(c|0))break a;e=7;if((c|0)!=1)break a;e=5;if(f)break a;a=L[b+32>>1];b=L[b+34>>1];e=4;if((a|0)!=(b|0))break a;e=((b|0)!=0)<<1}return ue(g,h,e,d)|0}function dga(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,m=0,n=0;k=bc-16|0;bc=k;l=j;a:{if(a){j=k+4|0;a=VP(b);gc[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;gc[J[J[a>>2]+32>>2]](j,a);Em(i,j);Ze(j);gc[J[J[a>>2]+28>>2]](j,a);Em(h,j);Ze(j);m=d,n=gc[J[J[a>>2]+12>>2]](a)|0,J[m>>2]=n;m=e,n=gc[J[J[a>>2]+16>>2]](a)|0,J[m>>2]=n;gc[J[J[a>>2]+20>>2]](j,a);pi(f,j);ad(j);gc[J[J[a>>2]+24>>2]](j,a);Em(g,j);Ze(j);a=gc[J[J[a>>2]+36>>2]](a)|0;break a}j=k+4|0;a=UP(b);gc[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1| -0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;gc[J[J[a>>2]+32>>2]](j,a);Em(i,j);Ze(j);gc[J[J[a>>2]+28>>2]](j,a);Em(h,j);Ze(j);m=d,n=gc[J[J[a>>2]+12>>2]](a)|0,J[m>>2]=n;m=e,n=gc[J[J[a>>2]+16>>2]](a)|0,J[m>>2]=n;gc[J[J[a>>2]+20>>2]](j,a);pi(f,j);ad(j);gc[J[J[a>>2]+24>>2]](j,a);Em(g,j);Ze(j);a=gc[J[J[a>>2]+36>>2]](a)|0}J[l>>2]=a;bc=k+16|0}function rma(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;a=J[a+12>>2];e=O[b>>3];g=bc-16|0;bc=g;f=O[c>>3];O[g>>3]=f;O[g+8>>3]=e;a:{if(J[a+2232>>2]==512){a=a+1984| -0;c=g+8|0;je(J[a+48>>2],c,g);i=a+72|0;b=bc-16|0;bc=b;e=O[g>>3];f=O[c>>3];d=b+4|0;J[b+8>>2]=d;J[695492]=0;J[b>>2]=1;c=$(4,24)|0;h=J[695492];J[695492]=0;b:{if((h|0)!=1){O[c+8>>3]=f;J[c+4>>2]=d;J[c>>2]=d;O[c+16>>3]=e;J[b+8>>2]=c;J[b+4>>2]=c;J[695492]=0;J[b+12>>2]=1;d=$(4,24)|0;h=J[695492];J[695492]=0;if((h|0)!=1){J[d+8>>2]=1;J[d+16>>2]=c;h=d+12|0;J[c>>2]=h;J[d+12>>2]=c;J[c+4>>2]=h;J[d+4>>2]=i;J[d+20>>2]=1;c=J[a+72>>2];J[d>>2]=c;J[c+4>>2]=d;J[a+72>>2]=d;J[a+80>>2]=J[a+80>>2]+1;if(f>3])O[a+88>> -3]=f;if(f>O[a+104>>3])O[a+104>>3]=f;if(e>3])O[a+96>>3]=e;if(e>O[a+112>>3])O[a+112>>3]=e;bc=b+16|0;break b}a=Z()|0;lz(b);ba(a|0);B()}a=Z()|0;J[b+12>>2]=0;J[b+4>>2]=d;Zo(d);ba(a|0);B()}break a}a=a+2312|0;gc[J[J[a>>2]+4>>2]](a,e,f)|0}bc=g+16|0;return 0}function aX(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:{b:{if(!c)break b;c:{f=J[a+160>>2];if(!f)break c;e=J[a+72>>2];if(!e|!J[e+16>>2]|J[J[e+24>>2]+40>>2]!=(f|0))break c;h=J[c+16>>2];if(!h)break c;g=J[c+24>>2];if(J[g+ -40>>2]|J[g+44>>2])break c;e=0;if(h>>>0>=8){k=h&-8;while(1){J[(P(e,52)+g|0)+40>>2]=f;J[(P(e|1,52)+g|0)+40>>2]=f;J[(P(e|2,52)+g|0)+40>>2]=f;J[(P(e|3,52)+g|0)+40>>2]=f;J[(P(e|4,52)+g|0)+40>>2]=f;J[(P(e|5,52)+g|0)+40>>2]=f;J[(P(e|6,52)+g|0)+40>>2]=f;J[(P(e|7,52)+g|0)+40>>2]=f;e=e+8|0;i=i+8|0;if((k|0)!=(i|0))continue;break}}h=h&7;if(h)while(1){J[(P(e,52)+g|0)+40>>2]=f;e=e+1|0;j=j+1|0;if((h|0)!=(j|0))continue;break}if(lH(c,d))break c;return 0}e=J[a+76>>2];if(!e){e=kA();J[a+76>>2]=e;if(!e)break b}nH(c,e); -if(!d)break a;if(!ep(J[a+180>>2],4659,d))break b;if(!jX(a,J[a+180>>2],b,d)){Rm(J[a+72>>2]);J[a+72>>2]=0;return 0}l=$W(a,c)}return l|0}fa(2346590,2346358,11620,2358857);B()}function J3a(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;a:{e=J[a+316>>2];b:{if((e|0)<=0)break b;g=J[d>>2];b=J[a+472>>2]+J[b+4>>2]|0;d=K[b+150|0];j=d;f=d-1|0;h=K[b+140|0];if(h){b=0;if(d>>>0>=2){while(1){k=b+1|0;e=J[a+112>>2];if((e|0)>0){d=J[(b<<2)+g>>2];l=e+d|0;e=J[(i<<2)+c>>2];while(1){m=K[e|0];e=e+ -1|0;d=wc(d,m,h)+h|0;if(l>>>0>d>>>0)continue;break}e=J[a+112>>2]}jn(g,b,g,k,f,e);i=i+1|0;b=b+j|0;if((b|0)>2])continue;break}break b}while(1){f=J[a+112>>2];if((f|0)>0){d=J[(b<<2)+g>>2];f=f+d|0;e=J[(i<<2)+c>>2];while(1){k=K[e|0];e=e+1|0;d=wc(d,k,h)+h|0;if(f>>>0>d>>>0)continue;break}e=J[a+316>>2]}i=i+1|0;b=b+j|0;if((e|0)>(b|0))continue;break}break b}if(d>>>0>=2){b=0;while(1){c=J[a+112>>2];if((c|0)>0)break a;jn(g,b,g,b+1|0,f,c);b=b+j|0;if((b|0)>2])continue;break}break b}b=0;a=J[a+112>> -2]<=0;while(1){if(!a)break a;b=b+j|0;if((e|0)>(b|0))continue;break}}return}while(1)continue}function GK(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=b;b=0;if(!(!a|!d)){i=!c;a:{if((f|0)<=0)break a;k=a+f|0;while(1){if(!K[a|0])break a;g=0;b:{c:{if(a>>>0>>0){h=0;j=0;while(1){f=H[a|0];e=f-65|0;d:{if(e>>>0<26)break d;if(f-97>>>0<=25){e=f-71|0;break d}if(f-48>>>0<=9){e=f+4|0;break d}e=(f|0)==43?62:(f|0)==47?63:-1}f=(e|0)==-1;g=f?g:g+6|0;j=f?j:j<<6|e;h=(h-f|0)+1|0;a=a+1|0;if((h|0)<= -3&k>>>0>a>>>0)continue;break}if(!i)break c;i=1;if((g|0)<=7)break b;b=(g>>>3|0)+b|0;break b}if(i){i=1;break b}j=0}h=(g|0)/8|0;f=h+b|0;e=J[d>>2];i=(f|0)>(e|0);if((g|0)<=7)break b;if((e|0)<(f|0)){b=b+h|0;break b}e=j<<24-g;if(h-1>>>0>=3){b=h&-4;g=0;while(1){H[c+3|0]=0;H[c+2|0]=e;H[c+1|0]=e>>>8;H[c|0]=e>>>16;c=c+4|0;e=0;g=g+4|0;if((b|0)!=(g|0))continue;break}}g=0;b=h&3;if(b)while(1){H[c|0]=e>>>16;e=e<<8;c=c+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}b=f}if(a>>>0>>0)continue;break}}J[d>>2]=b;e=!i}return e| -0}function ZYa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=bc-48|0;bc=f;a:{if(!a)break a;b:switch(J[a+216>>2]-1|0){case 0:c=l0(J[a+8>>2],b,3,c,d,e);if(!c){if(!J[a+268>>2])break a;c=J[a>>2];if(!c)break a;c=J[c+84>>2];if(!c)break a;a=J[a+4>>2];J[f+16>>2]=b;gc[c|0](a,31709,f+16|0);break a}if(J[c+64>>2]|!d)break a;b=J[a+36>>2];c:{if(b){b=J[b+4>>2];if(b)break c}b=J[a+180>>2]}g=c,h=Gt(d,b),J[g+64>>2]=h;break a;case 1:c=n0(J[a+8>>2],b,3,c,d,e);if(!c){if(!J[a+268>>2])break a;c=J[a>>2];if(!c)break a; -c=J[c+84>>2];if(!c)break a;a=J[a+4>>2];J[f+32>>2]=b;gc[c|0](a,31596,f+32|0);break a}if(J[c+64>>2]|!d)break a;b=J[a+36>>2];d:{if(b){b=J[b+4>>2];if(b)break d}b=J[a+180>>2]}g=c,h=Gt(d,b),J[g+64>>2]=h;break a;default:break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=1;J[f+4>>2]=0;J[f>>2]=b;Cc(0,0,0,a,0,1,1,3,b,0,0,0,31181,f);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}bc=f+48|0}function Qe(a){var b=0,c=0,d=0,e=0;c=J[a+144>>2];if(c){b=J[a+148>>2];d=c;if((b|0)!=(c|0)){while(1){d= -b-12|0;e=J[d>>2];if(e){J[b-8>>2]=e;qc(e)}b=d;if((c|0)!=(b|0))continue;break}d=J[a+144>>2]}J[a+148>>2]=c;qc(d)}c=J[a+132>>2];if(c){b=J[a+136>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;e=J[d>>2];if(e){J[b-8>>2]=e;qc(e)}b=d;if((c|0)!=(b|0))continue;break}d=J[a+132>>2]}J[a+136>>2]=c;qc(d)}c=J[a+120>>2];if(c){b=J[a+124>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;e=J[d>>2];if(e){J[b-8>>2]=e;qc(e)}b=d;if((c|0)!=(b|0))continue;break}d=J[a+120>>2]}J[a+124>>2]=c;qc(d)}b=J[a+108>>2];if(b){J[a+112>>2]=b;qc(b)}b= -J[a+96>>2];if(b){J[a+100>>2]=b;qc(b)}b=J[a+84>>2];if(b){J[a+88>>2]=b;qc(b)}b=J[a+52>>2];if(b){J[a+56>>2]=b;qc(b)}b=J[a+40>>2];if(b){J[a+44>>2]=b;qc(b)}c=J[a+12>>2];if(c){b=J[a+16>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;e=J[d>>2];if(e){J[b-8>>2]=e;qc(e)}b=d;if((c|0)!=(b|0))continue;break}d=J[a+12>>2]}J[a+16>>2]=c;qc(d)}}function D0(a){var b=0,c=0,d=0;c=a+148|0;while(1){d=b<<2;I[d+c>>1]=0;I[(d|4)+c>>1]=0;b=b+2|0;if((b|0)!=286)continue;break}I[a+2684>>1]=0;I[a+2440>>1]=0;I[a+2756>>1]=0;I[a+2752>> -1]=0;I[a+2748>>1]=0;I[a+2744>>1]=0;I[a+2740>>1]=0;I[a+2736>>1]=0;I[a+2732>>1]=0;I[a+2728>>1]=0;I[a+2724>>1]=0;I[a+2720>>1]=0;I[a+2716>>1]=0;I[a+2712>>1]=0;I[a+2708>>1]=0;I[a+2704>>1]=0;I[a+2700>>1]=0;I[a+2696>>1]=0;I[a+2692>>1]=0;I[a+2688>>1]=0;I[a+2556>>1]=0;I[a+2552>>1]=0;I[a+2548>>1]=0;I[a+2544>>1]=0;I[a+2540>>1]=0;I[a+2536>>1]=0;I[a+2532>>1]=0;I[a+2528>>1]=0;I[a+2524>>1]=0;I[a+2520>>1]=0;I[a+2516>>1]=0;I[a+2512>>1]=0;I[a+2508>>1]=0;I[a+2504>>1]=0;I[a+2500>>1]=0;I[a+2496>>1]=0;I[a+2492>>1]=0;I[a+ -2488>>1]=0;I[a+2484>>1]=0;I[a+2480>>1]=0;I[a+2476>>1]=0;I[a+2472>>1]=0;I[a+2468>>1]=0;I[a+2464>>1]=0;I[a+2460>>1]=0;I[a+2456>>1]=0;I[a+2452>>1]=0;I[a+2448>>1]=0;I[a+2444>>1]=0;J[a+5804>>2]=0;J[a+5808>>2]=0;I[a+1172>>1]=1;J[a+5800>>2]=0;J[a+5792>>2]=0}function sma(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;a=J[a+12>>2];e=O[b>>3];g=bc-16|0;bc=g;f=O[c>>3];O[g>>3]=f;O[g+8>>3]=e;a:{if(J[a+2232>>2]==512){a=a+1984|0;c=g+8|0;je(J[a+48>>2],c,g);i=a+72|0;b=bc-16|0;bc=b;e=O[g>>3];f=O[c>>3];d=b+4|0; -J[b+8>>2]=d;J[695492]=0;J[b>>2]=0;c=$(4,24)|0;h=J[695492];J[695492]=0;b:{if((h|0)!=1){O[c+8>>3]=f;J[c+4>>2]=d;J[c>>2]=d;O[c+16>>3]=e;J[b+8>>2]=c;J[b+4>>2]=c;J[695492]=0;J[b+12>>2]=1;d=$(4,24)|0;h=J[695492];J[695492]=0;if((h|0)!=1){J[d+8>>2]=0;J[d+16>>2]=c;h=d+12|0;J[c>>2]=h;J[d+12>>2]=c;J[c+4>>2]=h;J[d+4>>2]=i;J[d+20>>2]=1;c=J[a+72>>2];J[d>>2]=c;J[c+4>>2]=d;J[a+72>>2]=d;J[a+80>>2]=J[a+80>>2]+1;if(f>3])O[a+88>>3]=f;if(f>O[a+104>>3])O[a+104>>3]=f;if(e>3])O[a+96>>3]=e;if(e>O[a+112>>3])O[a+ -112>>3]=e;bc=b+16|0;break b}a=Z()|0;lz(b);ba(a|0);B()}a=Z()|0;J[b+12>>2]=0;J[b+4>>2]=d;Zo(d);ba(a|0);B()}break a}a=a+2312|0;gc[J[J[a>>2]>>2]](a,e,f)|0}bc=g+16|0;return 0}function zKa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{c:{if(!(J[a+8>>2]|!J[a+12>>2])){if((c|0)>0)break c;return 0}if((c|0)<=0|J[a+3504>>2]>=J[a+20>>2])break b;d=J[a+3496>>2];while(1){H[b+f|0]=J[(J[((d<<2)+a|0)+3480>>2]+(P(J[a+32>>2],J[a+3504>>2])<<2)|0)+(J[a+3500>>2]<<2)>>2];d=J[a+3496>>2]+1|0;J[a+3496>>2]=d;d:{if(J[a+188>> -2]!=(d|0))break d;d=0;J[a+3496>>2]=0;e=J[a+3500>>2]+1|0;J[a+3500>>2]=e;if((e|0)!=J[a+16>>2])break d;J[a+3500>>2]=0;e=J[a+3504>>2]+1|0;J[a+3504>>2]=e;if((e|0)>2])break d;return f+1|0}f=f+1|0;if((f|0)!=(c|0))continue;break}return c|0}d=J[a+3472>>2];while(1){e=J[a+3476>>2];if((e|0)==(d|0)){d=J[a+28>>2]+J[a+3504>>2]|0;if((d|0)>=J[a+20>>2])break b;J[a+3504>>2]=d;if(!MH(a))break a;e=J[a+3476>>2];d=J[a+3472>>2]}g=d;d=e-d|0;e=c-f|0;e=(d|0)<(e|0)?d:e;tc(b+f|0,g,e);d=e+J[a+3472>>2]|0;J[a+3472>>2]=d; -f=e+f|0;if((f|0)<(c|0))continue;break}}return f|0}J[a+3504>>2]=J[a+20>>2];return f|0}function Ti(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;i=h&10;n=g&10;if(!(i|n)){f=f*256;f=f+(f<0?-.5:.5);a:{if(R(f)<2147483648){h=~~f;break a}h=-2147483648}e=e*256;e=e+(e<0?-.5:.5);b:{if(R(e)<2147483648){g=~~e;break b}g=-2147483648}d=d*256;d=d+(d<0?-.5:.5);c:{if(R(d)<2147483648){a=~~d;break c}a=-2147483648}c=c*256;c=c+(c<0?-.5:.5);if(R(c)<2147483648){oo(b,~~c,a,g,h);return}oo(b,-2147483648,a,g,h);return}if((i|0)!= -(n|0)){l=c;j=d;if(g&8){j=O[a+8>>3];l=(e-c)*(j-d)/(f-d)+c}if(g&2){j=O[a+24>>3];l=(e-c)*(j-d)/(f-d)+c}m=e;k=f;if(h&8){k=O[a+8>>3];m=(e-c)*(k-d)/(f-d)+c}if(h&2){k=O[a+24>>3];m=(e-c)*(k-d)/(f-d)+c}c=k*256;c=c+(c<0?-.5:.5);d:{if(R(c)<2147483648){h=~~c;break d}h=-2147483648}c=m*256;c=c+(c<0?-.5:.5);e:{if(R(c)<2147483648){g=~~c;break e}g=-2147483648}c=j*256;c=c+(c<0?-.5:.5);f:{if(R(c)<2147483648){a=~~c;break f}a=-2147483648}c=l*256;c=c+(c<0?-.5:.5);g:{if(R(c)<2147483648){i=~~c;break g}i=-2147483648}oo(b, -i,a,g,h)}}function D3a(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0;h=J[a+276>>2];if(h)gc[J[J[h>>2]+80>>2]](h,b,c,d,e,f,g);O[a+8>>3]=O[b>>3];O[a+16>>3]=O[c>>3];j=O[d>>3];a:{if(J[a+136>>2]){O[a+24>>3]=O[b>>3]*.3090169943749+j;e=O[c>>3]*.3090169943749+e;break a}O[a+24>>3]=j}O[a+48>>3]=g;O[a+40>>3]=f;O[a+32>>3]=e;d=J[a+304>>2];h=a+308|0;if((d|0)!=(h|0))while(1){J[d+120>>2]=1;b=J[d+4>>2];b:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break b}while(1){c=J[d+8>>2];b=J[c>>2]!= -(d|0);d=c;if(b)continue;break}}d=c;if((h|0)!=(d|0))continue;break}k=a+316|0;d=J[k>>2];i=a+320|0;if((d|0)!=(i|0))while(1){J[d+120>>2]=1;b=J[d+4>>2];c:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break c}while(1){c=J[d+8>>2];b=J[c>>2]!=(d|0);d=c;if(b)continue;break}}d=c;if((i|0)!=(d|0))continue;break}Xh(a+304|0,J[a+308>>2]);J[a+304>>2]=h;J[a+308>>2]=0;J[a+312>>2]=0;Xh(k,J[a+320>>2]);J[a+316>>2]=i;J[a+320>>2]=0;J[a+324>>2]=0}function qK(a,b,c,d,e,f,g,h){var i=0,j=0,k=0;i=J[d>>2];a:{b:{c:{d:{if(!f)break d; -k=J[f>>2];if(!k)break d;if((c|0)<=0){j=c;break b}if(e>>>0>i>>>0)break c;j=c;break b}if((c|0)<=0){j=c;break a}if(e>>>0<=i>>>0){j=c;break a}while(1){I[i>>1]=L[b>>1];j=c-1|0;i=i+2|0;b=b+2|0;if(c>>>0<2)break a;c=j;if(e>>>0>i>>>0)continue;break}break a}while(1){I[i>>1]=L[b>>1];J[k>>2]=g;j=c-1|0;k=k+4|0;i=i+2|0;b=b+2|0;if(c>>>0<2)break b;c=j;if(e>>>0>i>>>0)continue;break}}J[f>>2]=k}J[d>>2]=i;if((j|0)>0){e:{if(!a)break e;H[a+65|0]=j;i=a+116|0;a=j&7;f:{if(!a){c=j;break f}k=0;c=j;while(1){I[i>>1]=L[b>>1]; -c=c-1|0;i=i+2|0;b=b+2|0;k=k+1|0;if((a|0)!=(k|0))continue;break}}if(j>>>0<8)break e;while(1){I[i>>1]=L[b>>1];I[i+2>>1]=L[b+2>>1];I[i+4>>1]=L[b+4>>1];I[i+6>>1]=L[b+6>>1];I[i+8>>1]=L[b+8>>1];I[i+10>>1]=L[b+10>>1];I[i+12>>1]=L[b+12>>1];I[i+14>>1]=L[b+14>>1];i=i+16|0;b=b+16|0;a=c-9|0;c=c-8|0;if(a>>>0<4294967294)continue;break}}J[h>>2]=15}}function Nwa(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;f=bc-32|0;bc=f;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;g=f+16|0;J[g>>2]=2386024; -J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[695492]=0;ia(5426,b|0,c|0,g|0,1);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[a>>2]=0;c:{d:{b=J[g+8>>2];e:{if(!b)break e;while(1){e=J[b+8>>2];h=J[J[e>>2]+16>>2];J[695492]=0;i=h;h=f+12|0;ia(i|0,h|0,e|0,c|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;J[695492]=0;e=aa(4993,a|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break c;h=J[e>>2];e=J[f+12>>2];J[f+12>>2]=0;f:{if(!e)break f;J[695492]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;j=J[695492];J[695492]=0;if((j|0)==1)break a; -if(i)break f;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}if(h)break e;b=J[b>>2];if(b)continue;break}}$c(g);bc=f+32|0;return}b=Z()|0;vc(a);break b}b=Z()|0;vc(f+12|0);vc(a);break b}b=Z()|0}$c(g);ba(b|0);B()}ea(0)|0;yc();B()}function Mwa(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;f=bc-32|0;bc=f;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;g=f+16|0;J[g>>2]=2386024;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[695492]=0;ia(5426,b|0,c|0,g|0,1);b=J[695492];J[695492]= -0;a:{b:{if((b|0)!=1){J[a>>2]=0;c:{d:{b=J[g+8>>2];e:{if(!b)break e;while(1){e=J[b+8>>2];h=J[J[e>>2]+20>>2];J[695492]=0;i=h;h=f+12|0;ia(i|0,h|0,e|0,c|0,d|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;J[695492]=0;e=aa(4993,a|0,h|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break c;h=J[e>>2];e=J[f+12>>2];J[f+12>>2]=0;f:{if(!e)break f;J[695492]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(i)break f;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}if(h)break e; -b=J[b>>2];if(b)continue;break}}$c(g);bc=f+32|0;return}b=Z()|0;vc(a);break b}b=Z()|0;vc(f+12|0);vc(a);break b}b=Z()|0}$c(g);ba(b|0);B()}ea(0)|0;yc();B()}function yqa(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;j=bc-32|0;bc=j;a:{if((d|0)>=0){i=J[a+3312>>2];while(1){l=g;if((c|0)>0){m=e+1|0;n=f+2|0;g=K[g-1|0]|(K[e|0]<<8|K[e-1|0]<<9|K[m|0]<<7|K[f-2|0]<<6|K[f-1|0]<<5|K[f|0]<<4|K[f+1|0]<<3|K[n|0]<<2|K[g-2|0]<<1);e=0;while(1){o=e+l|0;h=(a+g|0)+240|0;k=J[((K[h| -0]<<2)+i|0)+44>>2]+J[i+20>>2]|0;b:{if(k>>>0<=M[i+28>>2]){J[i+20>>2]=k;h=H[h|0]&1;break b}h=ah(i,h,k)}H[o|0]=h;e=e+1|0;g=h|(g<<1&890|K[n+e|0]<<2|K[e+m|0]<<7);if((c|0)!=(e|0))continue;break}}if(!J[b+20>>2])Li(b);g=L[b+14>>1];e=d-1|0;c:{if(!(e>>>0>1]&(d|0)>0)){h=g;g=L[b+12>>1];if(J[682142]<(h+g|0)){a=Kc(j+8|0,2386481,2386813,577,2381799,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}g=g+J[682141]|0;break c}g=L[b+12>>1]+(J[b+20>>2]+P(e,g)|0)|0}h= -(d|0)>0;d=e;e=f;f=l;if(h)continue;break}}Nz(b);bc=j+32|0;return}B()}function j2(a){a=a|0;var b=0,c=0,d=0;J[a+4>>2]=1;J[a>>2]=347764;J[a+172>>2]=0;J[a+176>>2]=0;J[a>>2]=350544;J[a+292>>2]=0;J[a+296>>2]=0;J[a+284>>2]=0;J[a+168>>2]=0;J[a+276>>2]=0;J[a+180>>2]=0;J[a+300>>2]=0;b=a+308|0;J[b>>2]=0;J[b+4>>2]=0;c=a+320|0;J[c>>2]=0;J[c+4>>2]=0;J[a+304>>2]=b;J[a+328>>2]=0;d=a+316|0;J[d>>2]=c;Xh(a+304|0,0);J[a+304>>2]=b;J[a+308>>2]=0;J[a+312>>2]=0;Xh(d,J[a+320>>2]);J[d>>2]=c;J[a+320>>2]=0;J[a+324>>2]=0;wc(a+ -8|0,0,96);J[a+112>>2]=0;J[a+116>>2]=0;I[a+104>>1]=1;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+280>>2]=0;J[a+216>>2]=0;J[a+208>>2]=0;J[a+212>>2]=1072693248;J[a+200>>2]=-1;J[a+204>>2]=-1;J[a+252>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0;J[a+268>>2]=0;J[a+272>>2]=0;J[a+328>>2]=a;J[a+288>>2]=1;return a|0}function Z5(a, -b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=J[b+8>>2];d=g>>31;f=I[a+70>>1];c=f>>31;d=(d^g)-d|0;h=d>>>8|0;c=(c^f)-c|0;a:{if(h+c>>>0<=8190){e=P(c,d)+32768>>>16|0;break a}e=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}c=e;i=0-c|0;c=f>>31|1;J[b+12>>2]=((((g|0)<0?0-c|0:c)|0)<0?i:e)+63&-64;f=I[a+72>>1];c=f>>31;c=(c^f)-c|0;b:{if(c+h>>>0<=8190){e=P(c,d)+32768>>>16|0;break b}e=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}c=e;i=0-c|0;c=f>>31|1;J[b+16>>2]=((((g|0)<0?0-c|0:c)|0)<0?i:e)&-64;f=I[a+74>>1];c=f>>31;c=(c^f)- -c|0;c:{if(c+h>>>0<=8190){c=P(c,d)+32768>>>16|0;break c}c=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}d=c;e=0-d|0;d=f>>31|1;J[b+20>>2]=((((g|0)<0?0-d|0:d)|0)<0?e:c)+32&-64;g=I[a+76>>1];d=g>>31;c=J[b+4>>2];a=c>>31;d=(d^g)-d|0;a=(a^c)-a|0;d:{if(d+(a>>>8|0)>>>0<=8190){e=P(a,d)+32768>>>16|0;break d}e=P(d,a>>>16|0)+(P(d,a&65535)+32768>>>16|0)|0}a=e;d=0-a|0;a=g>>31|1;J[b+24>>2]=((((c|0)<0?0-a|0:a)|0)<0?d:e)+32&-64}function Ur(a,b,c){var d=0,e=0,f=0,g=0;d=c-b|0;if((d|0)<=0)return 0;a=(b>>3)+a|0;b=b&7;a:{if(b){c= -8-b|0;e=K[(K[a|0]<>>0>>0?c:e;f=c>>>0>>0?c:d;if(b+f>>>0<8)break a;d=d-f|0;a=a+1|0}b:{c:{d:{if((d|0)<64){b=a;a=d;c=f;break d}e:{if(!(a&3)){b=a;c=f;a=d;break e}f:{g:{b=K[a|0];if(b){c=f;break g}e=d-8|0;c=f+8|0;b=a+1|0;if(!(b&3)){a=e;e=d;break f}b=K[b|0];if(b)break g;g=d-16|0;c=f+16|0;b=a+2|0;if(!(b&3)){a=g;break f}b=K[b|0];if(b)break g;e=d-24|0;c=f+24|0;b=a+3|0;if(!(b&3)){a=e;e=g;break f}b=K[b|0];if(b)break g;b=a+4|0;a=d-32|0;c=f+32|0;break f}return K[b+95840|0]+c|0}if((e|0)< -40)break d}d=a;while(1){if(J[b>>2]){a=d;break c}b=b+4|0;c=c+32|0;e=(d|0)>63;a=d-32|0;d=a;if(e)continue;break}}if((a|0)<8)break b}d=a;while(1){a=K[b|0];if(a)return K[a+95840|0]+c|0;b=b+1|0;c=c+8|0;e=(d|0)>15;a=d-8|0;d=a;if(e)continue;break}}if((a|0)<=0)return c;b=K[K[b|0]+95840|0];f=((a|0)<(b|0)?a:b)+c|0}return f}function uPa(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=bc-640|0;bc=f;h=J[a+12>>2];a:{if((h|0)<=0)break a;if(h>>>0>=4){m=h&-4;while(1){g=f+384|0;O[g+(e<<3)>> -3]=+J[(e<<2)+b>>2]*1.52587890625E-5;i=e|1;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=e|2;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=g;g=e|3;O[i+(g<<3)>>3]=+J[(g<<2)+b>>2]*1.52587890625E-5;e=e+4|0;j=j+4|0;if((m|0)!=(j|0))continue;break}}h=h&3;if(!h)break a;while(1){O[(f+384|0)+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;e=e+1|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}b=J[a+148>>2];gc[J[J[b>>2]+16>>2]](b,f+384|0,f+128|0);b=J[a+144>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)>0){e=0;while(1){g=(e<< -2)+f|0;l=O[(f+128|0)+(e<<3)>>3]*65536;b:{if(R(l)<2147483648){b=~~l;break b}b=-2147483648}J[g>>2]=b;b=J[a+144>>2];e=e+1|0;if((gc[J[J[b>>2]+28>>2]](b)|0)>(e|0))continue;break}}a=J[a+144>>2];gc[J[J[a>>2]+16>>2]](a,f,c,d);bc=f+640|0}function tPa(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=bc-640|0;bc=f;h=J[a+12>>2];a:{if((h|0)<=0)break a;if(h>>>0>=4){m=h&-4;while(1){g=f+384|0;O[g+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;i=e|1;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5; -i=e|2;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=g;g=e|3;O[i+(g<<3)>>3]=+J[(g<<2)+b>>2]*1.52587890625E-5;e=e+4|0;j=j+4|0;if((m|0)!=(j|0))continue;break}}h=h&3;if(!h)break a;while(1){O[(f+384|0)+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;e=e+1|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}b=J[a+148>>2];gc[J[J[b>>2]+16>>2]](b,f+384|0,f+128|0);b=J[a+144>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)>0){e=0;while(1){g=(e<<2)+f|0;l=O[(f+128|0)+(e<<3)>>3]*65536;b:{if(R(l)<2147483648){b=~~l;break b}b=-2147483648}J[g>> -2]=b;b=J[a+144>>2];e=e+1|0;if((gc[J[J[b>>2]+28>>2]](b)|0)>(e|0))continue;break}}a=J[a+144>>2];gc[J[J[a>>2]+20>>2]](a,f,c,d);bc=f+640|0}function sPa(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=bc-640|0;bc=f;h=J[a+12>>2];a:{if((h|0)<=0)break a;if(h>>>0>=4){m=h&-4;while(1){g=f+384|0;O[g+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;i=e|1;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=e|2;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=g;g=e|3;O[i+(g<<3)>>3]=+J[(g<<2)+ -b>>2]*1.52587890625E-5;e=e+4|0;j=j+4|0;if((m|0)!=(j|0))continue;break}}h=h&3;if(!h)break a;while(1){O[(f+384|0)+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;e=e+1|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}b=J[a+148>>2];gc[J[J[b>>2]+16>>2]](b,f+384|0,f+128|0);b=J[a+144>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)>0){e=0;while(1){g=(e<<2)+f|0;l=O[(f+128|0)+(e<<3)>>3]*65536;b:{if(R(l)<2147483648){b=~~l;break b}b=-2147483648}J[g>>2]=b;b=J[a+144>>2];e=e+1|0;if((gc[J[J[b>>2]+28>>2]](b)|0)>(e|0))continue;break}}a= -J[a+144>>2];gc[J[J[a>>2]+24>>2]](a,f,c,d);bc=f+640|0}function k$(a,b,c){var d=0,e=0;d=HJ();if(!d)return 0;if(c){J[d+360>>2]=J[c+360>>2];J[d+272>>2]=J[c+272>>2]}a:{b:{c:{d:{e:{f:{e=Gt(a,0);if(!e){e=LB(a,b,d);if(!e)break a;c=J[d+40>>2];b=J[d+44>>2];g:{if((c|0)<(b|0)){b=J[d+48>>2];break g}J[d+44>>2]=b<<1;b=gc[J[659452]](J[d+48>>2],b<<3)|0;J[d+48>>2]=b;if(!b)break f;c=J[d+40>>2]}J[(c<<2)+b>>2]=e;J[d+40>>2]=c+1;J[d+36>>2]=e;break c}a=LB(e,b,d);if(!a){gc[J[659451]](e);break a}c=J[d+40>>2];b=J[d+44>>2]; -h:{if((c|0)<(b|0)){b=J[d+48>>2];break h}J[d+44>>2]=b<<1;b=gc[J[659452]](J[d+48>>2],b<<3)|0;J[d+48>>2]=b;if(!b)break e;c=J[d+40>>2]}J[(c<<2)+b>>2]=a;J[d+40>>2]=c+1;J[d+36>>2]=a;break d}ke(d,0);dh(e);J[d+44>>2]=J[d+44>>2]/2;break c}ke(d,0);dh(a);J[d+44>>2]=J[d+44>>2]/2}i:{if(J[d+180>>2])break i;a=AB(e);if(J[d+180>>2]|!a)break i;J[d+180>>2]=a}gc[J[659451]](e);break b}if(J[d+180>>2])break b;a=AB(a);if(J[d+180>>2]|!a)break b;J[d+180>>2]=a;return d}return d}yj(d);return 0}function _wb(a){a=a|0;var b=0, -c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+44>>2];b=J[a+52>>2];gc[J[J[b>>2]+20>>2]](b,2)|0;e=gc[J[J[b>>2]+20>>2]](b,2)|0;f=J[d+60>>2];a:{b:{if(f){g=J[d+56>>2];if((f|0)>0){while(1){c:{h=J[(c<<2)+g>>2];c=c+1|0;if((f|0)<=(c|0))break c;if((e|0)!=(h|0))continue}break}if((e|0)==(h|0))break a}c=(f<<2)+g|0;break b}c=J[d+56>>2]}J[c>>2]=e;J[d+60>>2]=J[d+60>>2]+1}c=gc[J[J[b>>2]+20>>2]](b,4)|0;if(!c)c=(gc[J[J[b>>2]+40>>2]](b)|0)+8|0;gc[J[J[b>>2]+20>>2]](b,1)|0;gc[J[J[b>>2]+20>>2]](b,1)|0;J[a+8>>2]=e;b=gc[J[J[b>>2]+36>>2]](b)| -0;J[a+4>>2]=16;J[a+12>>2]=(b+c|0)-12;b=J[d+88>>2]+P(J[a+8>>2],1876)|0;if(J[b>>2]==1){c=J[b+1872>>2];b=tc(b,J[a+36>>2],1876);J[b+1872>>2]=c;J[b+1452>>2]=0;J[b+1456>>2]=0;c=0;J[b+1460>>2]=0;if(J[J[a+40>>2]+16>>2]>0){b=b+1872|0;while(1){e=P(c,1076);tc(e+J[b>>2]|0,e+J[J[a+36>>2]+1872>>2]|0,1076);c=c+1|0;if((c|0)>2]+16>>2])continue;break}}J[J[d+88>>2]+P(J[a+8>>2],1876)>>2]=0}}function Q9(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{f:{e=J[a+112>>2];d=J[e>>2];if((d|0)>0){f=J[e+8>>2];a=0;while(1){g= -f+(a<<3)|0;if(J[g>>2]==(b|0))break f;a=a+1|0;if((d|0)!=(a|0))continue;break}}if(!c)break b;if((d|0)<0)break a;a=d;if((a|0)>2])break c;f=a+32|0;a=f<<3;g=J[e+8>>2];if(!g)break e;a=Kh(g,a);break d}if(c){J[c>>2]=J[c>>2]+1;e=f+(a<<3)|0;a=J[e+4>>2];d=J[a>>2];J[a>>2]=d-1;if((d|0)<=1){d=J[J[a+8>>2]>>2];if(d)gc[d|0](a);qc(a)}J[g>>2]=b;J[e+4>>2]=c;return 0}b=J[(f+(a<<3)|0)+4>>2];c=J[b>>2];J[b>>2]=c-1;if((c|0)<=1){c=J[J[b+8>>2]>>2];if(c)gc[c|0](b);qc(b);d=J[e>>2]}b=(a^-1)+d|0;if((b|0)>0){a=J[e+8>>2]+ -(a<<3)|0;Zc(a,a+8|0,b<<3);d=J[e>>2]}J[e>>2]=d-1;return 0}a=zc(a)}if(!a)return-1;J[e+4>>2]=f;J[e+8>>2]=a;a=J[e>>2]}J[c>>2]=J[c>>2]+1;f=a-d|0;if((f|0)>0){a=J[e+8>>2]+(d<<3)|0;Zc(a+8|0,a,f<<3);a=J[e>>2]}d=J[e+8>>2]+(d<<3)|0;J[d+4>>2]=c;J[d>>2]=b;J[e>>2]=a+1}return 0}fa(205184,199159,765,206777);B()}function AP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a=c;a:if((d-a|0)<3)break a;while(1){b:{if(e>>>0<=h>>>0|a>>>0>=d>>>0)break b;b=H[a|0];g=b&255;c:{if((b|0)>=0){b=1;break c}if(b>>> -0<4294967234)break b;if(b>>>0<=4294967263){if((K[a+1|0]&192)!=128|(d-a|0)<2)break b;b=2;break c}if(b>>>0<=4294967279){if((d-a|0)<3)break b;f=K[a+2|0];b=K[a+1|0];d:{e:{if((g|0)!=237){if((g|0)!=224)break e;if((b&224)==160)break d;break b}if((b&224)!=128)break b;break d}if((b&192)!=128)break b}if((f&192)!=128)break b;b=3;break c}if((d-a|0)<4|b>>>0>4294967284)break b;i=K[a+3|0];j=K[a+2|0];f=K[a+1|0];f:{g:switch(g-240|0){case 0:if((f+112&255)>>>0>=48)break b;break f;case 4:if((f&240)!=128)break b;break f; -default:break g}if((f&192)!=128)break b}if((j&192)!=128|(i&192)!=128)break b;b=4;if((i&63|(j<<6&4032|(g<<18&1835008|(f&63)<<12)))>>>0>1114111)break b}h=h+1|0;a=a+b|0;continue}break}return a-c|0}function _Ba(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;c=b+12|0;Nm(c,a);J[695492]=0;da(5108,b+8|0,c|0);c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){J[695492]=0;c=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=J[682146];d=ha(5109,c|0,b|0,0,0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;if((d|0)>0){e=J[J[c>>2]+16>>2];J[695492]= -0;c=$(e|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;J[a+84>>2]=(c+d|0)-4}sc(b);a=J[b+8>>2];J[b+8>>2]=0;d:{if(!a)break d;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[b+12>>2];J[b+12>>2]=0;e:{if(!a)break e;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc= -b+16|0;return}a=Z()|0;break b}a=Z()|0;sc(b);vc(b+8|0)}vc(b+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function Xua(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;J[c+20>>2]=0;J[c+24>>2]=J[682146];e=J[b+132>>2];d=J[b+124>>2];f=J[b+136>>2];b=J[b+128>>2];J[c+16>>2]=f-b;J[c>>2]=2411764;J[c+4>>2]=d;J[c+8>>2]=b;J[695492]=0;J[c+12>>2]=e-d;b=ga(5180,c+20|0,2378150,c|0)|0;d=J[695492];J[695492]=0;a:{if((d|0)!=1){J[a>>2]=0;J[a+4>>2]=J[682146];b=J[b>>2];b:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0, -1);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;sc(a);break a}J[c+28>>2]=0}J[695492]=0;aa(4993,a|0,c+28|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}ea(0)|0;yc();B()}b=Z()|0;vc(c+28|0);sc(a);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(c+20|0);bc=c+32|0;return}b=Z()|0}sc(c+20|0);ba(b| -0);B()}function bub(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];c=c+3|0;b=P(J[a+584>>2],3)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b| -0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=P(J[a+584>>2],3)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}}if((e|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;e=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=P(J[a+584>>2],3)+b|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function QC(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!a)break a;c=J[a+100>>2];b=J[a+292>>2]; -if(b)gc[J[c+8>>2]](c,b);J[a+292>>2]=0;b=J[a+308>>2];if(b)gc[J[c+8>>2]](c,b);J[a+308>>2]=0;b=J[a+284>>2];if(b){if(J[a+280>>2]>0){while(1){b=J[a+284>>2];b:{if(!b)break b;b=b+P(e,12)|0;d=J[b>>2];if(d)gc[J[c+8>>2]](c,d);J[b>>2]=0;if(!K[b+4|0])break b;d=J[b+8>>2];if(d)gc[J[c+8>>2]](c,d);J[b+8>>2]=0}e=e+1|0;if((e|0)>2])continue;break}b=J[a+284>>2]}if(b)gc[J[c+8>>2]](c,b);J[a+284>>2]=0}b=J[a+192>>2];if(b)gc[J[c+8>>2]](c,b);J[a+192>>2]=0;b=J[a+20>>2];if(b)gc[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>> -2];if(b)gc[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+32>>2];if(b)gc[J[c+8>>2]](c,b);J[a+32>>2]=0;b=J[a+176>>2];if(b)gc[J[c+8>>2]](c,b);J[a+176>>2]=0;b=J[a+180>>2];if(b)gc[J[c+8>>2]](c,b);J[a+180>>2]=0;c=J[a+104>>2];if((c|0)!=(a+132|0))break a;c:{if(!c)break c;b=J[c+24>>2];if(!b)break c;gc[b|0](c)}J[a+104>>2]=J[a+172>>2]}}function vva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;J[c+20>>2]=0;J[c+24>>2]=J[682146];e=J[b+100>>2];d=J[b+92>>2];f=J[b+104>>2];b=J[b+96>>2];J[c+16>>2]=f-b;J[c>>2]=2411754;J[c+ -4>>2]=d;J[c+8>>2]=b;J[695492]=0;J[c+12>>2]=e-d;b=ga(5180,c+20|0,2378150,c|0)|0;d=J[695492];J[695492]=0;a:{if((d|0)!=1){J[a>>2]=0;J[a+4>>2]=J[682146];b=J[b>>2];b:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;sc(a);break a}J[c+28>>2]=0}J[695492]=0;aa(4993,a|0,c+28|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break c; -J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}ea(0)|0;yc();B()}b=Z()|0;vc(c+28|0);sc(a);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(c+20|0);bc=c+32|0;return}b=Z()|0}sc(c+20|0);ba(b|0);B()}function Gwb(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;e=bc-8224|0;bc=e;wc(e+12|0,0,8212);a:{b:{c:{d:{e:switch(N8(c,d)-1|0){case 0:a=rc(20);J[695492]=0;d=ga(906,a|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=Q8(d,e+12|0);gc[J[J[d>>2]+4>>2]](d);if(c)break c; -break b;case 1:a=rc(20);J[695492]=0;d=ga(906,a|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break d;break a;case 2:break e;default:break b}a=rc(20);J[695492]=0;d=ga(906,a|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=O8(d,e+12|0);gc[J[J[d>>2]+4>>2]](d);if(c)break c;break b}c=P8(d,e+12|0);gc[J[J[d>>2]+4>>2]](d);if(!c)break b}g=M8(c,b,f);f=J[c+24>>2];f:{if(!f)break f;d=0;a=J[c+16>>2];if((a|0)>0){while(1){b=J[c+24>>2]+P(d,48)|0;f=J[b+44>>2];if(f){qc(f);J[b+44>>2]=0;a=J[c+16>>2]}d=d+ -1|0;if((d|0)<(a|0))continue;break}f=J[c+24>>2];if(!f)break f}qc(f)}qc(c)}bc=e+8224|0;return g|0}b=Z()|0;qc(a);ba(b|0);B()}function Rgb(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;e=bc+-64|0;bc=e;J[e+60>>2]=0;h=b+108|0;g=J[a+8>>2];a:{b:{c:{d:{if(J[b+72>>2]!=J[a+16>>2]){J[e+60>>2]=6;break d}i=19;if((c|0)!=2)break a;if(H[J[b+156>>2]+4|0]&1){c=J[b+88>>2];if(c)gc[J[g+8>>2]](g,c);J[b+88>>2]=0;c=J[b+156>>2];J[c+4>>2]=J[c+4>>2]&-2}if(jM(b,2,d)){J[e+60>>2]=98;break d}j=b,k=Sc(g,J[b+84>> -2],0,J[b+76>>2],0,e+60|0),J[j+88>>2]=k;c=0;if(J[e+60>>2])break c;c=J[b+156>>2];J[c+4>>2]=J[c+4>>2]|1;f=J[b+76>>2]-J[b+104>>2]<<6;c=0-(J[b+100>>2]<<6)|0;if(d){f=J[d+4>>2]+f|0;c=J[d>>2]+c|0}if(c|f)Jh(h,c,f);J[e+20>>2]=0;J[e+16>>2]=h;J[e+12>>2]=b+76;a=gc[J[a+56>>2]](J[a+52>>2],e+12|0)|0;J[e+60>>2]=a;if(a)break c;J[b+72>>2]=1651078259;break b}c=0}if(!(H[J[b+156>>2]+4|0]&1))break b;a=J[b+88>>2];if(a)gc[J[g+8>>2]](g,a);J[b+88>>2]=0;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2}if(c|f)Jh(h,0-c|0,0-f|0);i=J[e+60>> -2]}a=i;bc=e- -64|0;return a|0}function uC(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;a:{f=J[a+4>>2];b:{if((f|0)!=J[a>>2]){d=f;break b}g=J[a+8>>2];d=J[a+12>>2];if(g>>>0>>0){e=((d-g>>2)+1|0)/2<<2;c=g-f|0;d=(e+g|0)-c|0;m=a,n=Zc(d,f,c),J[m+4>>2]=n;J[a+8>>2]=e+J[a+8>>2];break b}c=(d|0)==(f|0)?1:d-f>>1;if(c>>>0>=1073741824)break a;d=c<<2;i=rc(d);l=i+d|0;d=(c+3&-4)+i|0;h=d;c:{if((f|0)==(g|0))break c;e=d;c=f;j=g-c|0;k=j-4|0;g=(k>>>2|0)+1&7;if(g){h=0;while(1){J[e>>2]=J[c>>2];c= -c+4|0;e=e+4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}h=d+j|0;if(k>>>0<28)break c;while(1){J[e>>2]=J[c>>2];J[e+4>>2]=J[c+4>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=J[c+12>>2];J[e+16>>2]=J[c+16>>2];J[e+20>>2]=J[c+20>>2];J[e+24>>2]=J[c+24>>2];J[e+28>>2]=J[c+28>>2];c=c+32|0;e=e+32|0;if((h|0)!=(e|0))continue;break}}J[a+12>>2]=l;J[a+8>>2]=h;J[a+4>>2]=d;J[a>>2]=i;if(!f)break b;qc(f);d=J[a+4>>2]}J[d-4>>2]=J[b>>2];J[a+4>>2]=J[a+4>>2]-4;return}Sd();B()}function pk(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m= -0;i=bc-32|0;H[i+23|0]=0;f=d>>31;g=(f^d)-f|0;e=i+23|0;l=c-1|0;m=(c|0)!=5;j=1;c=0;while(1){if(!(!g&(c|0)>=(j|0))){f=0;a:{b:{c:{d:switch(l|0){case 4:f=(g>>>0)%10|0;if(f|k){e=e-1|0;h=K[f+61504|0];H[e|0]=h;k=1}else k=0;f=(g>>>0)/10|0;j=5;default:c=c+1|0;if(!m)break b;break a;case 1:j=2;case 0:e=e-1|0;f=(g>>>0)/10|0;h=K[(g-P(f,10)|0)+61504|0];H[e|0]=h;break c;case 3:j=2;break;case 2:break d}e=e-1|0;h=K[(g&15)+61504|0];H[e|0]=h;f=g>>>4|0}c=c+1|0;break a}if((c|0)!=5|e>>>0<=i>>>0)break a;if(k){h=46;e=e-1| -0;H[e|0]=46;c=5;break a}k=0;c=5;if(f)break a;h=48;e=e-1|0;H[e|0]=48;f=0}g=f;if(e>>>0>i>>>0)continue}break}if(!(e>>>0<=i>>>0|(d|0)>=0)){e=e-1|0;H[e|0]=45;h=45}e:{if(b-1>>>0>7)break e;a=((b<<5)+a|0)-32|0;if(!a)break e;c=0;f:{if(!e|!h)break f;g=0;while(1){H[a+g|0]=h;c=g+1|0;if(g>>>0>29)break f;h=K[e+1|0];e=e+1|0;g=c;if(h)continue;break}}H[a+c|0]=0}}function gf(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=J[a+608>>2];if((c|0)>0){b=J[a+12>>2];if(!(b&(L[a+94>>1]|256))){FF(J[a+596>>2],c);c=J[a+608>>2];b= -J[a+12>>2]}j=J[a+596>>2];e=bc-32|0;bc=e;a:{b:{g=J[(b&1024?504:480)+a>>2];h=J[J[a+184>>2]+(g<<2)>>2];c:{if(!(J[a+484>>2]?h:0)){if(!J[a+180>>2])break b;f=g<<2;i=J[a+628>>2];d=J[a+640>>2];d:{e:{if(!h)break e;b=J[f+J[a+188>>2]>>2];if(b>>>0>>0|!b)break e;b=0;d=gc[d|0](i,h,0)|0;if((d|0)==J[J[a+184>>2]+f>>2])break d;f=J[a+628>>2];J[e+16>>2]=J[a+472>>2];Nc(f,92384,78689,e+16|0);break c}d=gc[d|0](i,0,2)|0;J[f+J[a+184>>2]>>2]=d}J[a+484>>2]=d;J[J[a+188>>2]+(g<<2)>>2]=0}if((gc[J[a+636>>2]](J[a+628>>2],j,c)| -0)!=(c|0)){b=J[a+628>>2];J[e>>2]=J[a+472>>2];Nc(b,92384,79069,e);b=0;break c}J[a+484>>2]=J[a+484>>2]+c;b=J[a+188>>2]+(g<<2)|0;J[b>>2]=J[b>>2]+c;b=1}bc=e+32|0;break a}fa(78566,77299,629,92384);B()}if(!b)return 0;J[a+608>>2]=0;J[a+604>>2]=J[a+596>>2]}return 1}function Vob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;J[e+12>>2]=0;a:{b:{c:{d:{if(!K[b+40|0]){h=b+60|0;c=h;break d}f=e+4|0;c=cN(a,J[b+64>>2],J[b+60>>2],e+12|0,e+8|0,f);if(c)break c;h=b+60|0;c=K[b+40|0]?f:h}d=J[b+32>>2];g=(J[c>> -2]+(J[b+52>>2]+(d+J[b+44>>2]|0)|0)|0)+5|0;e:{if(g>>>0<=M[a+424>>2]){f=J[a+428>>2]+8|0;break e}f=gc[J[a+152>>2]](g)|0;if(!f)break b;d=J[b+32>>2]}c=f;if(d)c=tc(c,J[b+36>>2],d)+J[b+32>>2]|0;H[c|0]=0;H[c+1|0]=K[b+40|0];H[c+2|0]=K[b+41|0];c=c+3|0;d=J[b+44>>2];if(d)c=tc(c,J[b+48>>2],d)+J[b+44>>2]|0;H[c|0]=0;c=c+1|0;d=J[b+52>>2];if(d)c=tc(c,J[b+56>>2],d)+J[b+52>>2]|0;H[c|0]=0;d=c+1|0;f:{if(K[b+40|0]){c=J[e+4>>2];if(!c)break f;tc(d,J[e+12>>2],c);break f}c=J[h>>2];if(!c)break f;tc(d,J[b+64>>2],c)}c=ue(a,J[b>> -2],g,f);if(M[a+424>>2]>=g>>>0)break c;gc[J[a+156>>2]](f,g)}b=J[e+12>>2];if(!b)break a;gc[J[a+156>>2]](b,J[e+8>>2]);break a}c=1;Dc(a,1,0,0)}bc=e+16|0;return c|0}function $Ma(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;d=bc-48|0;bc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;J[a>>2]=0;J[a+4>>2]=0;a:{b:{if(J[b>>2]!=6)break b;e=J[b+8>>2];if(J[e+12>>2]<=0)break b;while(1){if(J[Mc(e,h,d+32|0,0)>>2]==7){Bc(J[d+40>>2],810784,d+16|0,0);Bc(J[d+40>>2],811147,d,0);c:{if(J[d+16>>2]!=4)break c;e=J[d+24>> -2];d:{if(!Ec(e,811462))break d;if(Ec(e,811652))break c;e:switch(J[d>>2]-4|0){case 1:break d;case 0:break e;default:break c}if(Ec(J[d+8>>2],812020))break c}f=rc(40);J[695492]=0;e=ga(3461,f|0,J[d+40>>2],c|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(J[e+36>>2]){f=J[a>>2];g=J[a+4>>2];if((i|0)<=(g|0)){i=i+16|0;f=Nd(f,i,4);J[a>>2]=f;g=J[a+4>>2]}J[a+4>>2]=g+1;J[(g<<2)+f>>2]=e;break c}f=J[e+32>>2];if(f)gc[J[J[f>>2]+4>>2]](f);qc(e)}uc(d);uc(d+16|0)}uc(d+32|0);h=h+1|0;e=J[b+8>>2];if((h|0)>2])continue; -break}}bc=d+48|0;return a|0}a=Z()|0;qc(f);ba(a|0);B()}function vxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a+84>>2]-4|0;if(c)if((c|0)==12)break c;else break a;e=J[a+64>>2];d=J[e+20>>2];if((d|0)<=0)break b;c=J[e+24>>2];while(1){a=J[c>>2];if(!(a&8)){J[c>>2]=a|2;a=J[b+16>>2];if((a|0)>0){g=J[b+20>>2];d=0;while(1){a=d<<2;J[(a+c|0)+16>>2]=J[a+g>>2];a=J[b+16>>2];d=d+1|0;if((a|0)>(d|0))continue;break}d=J[e+20>>2]}J[c+12>>2]=a;H[c+416|0]=K[b+24|0];H[c+9|0]=K[b+12|0]}c=c+488|0;f=f+1|0;if((f|0)< -(d|0))continue;break}break b}d=-1;a=J[a+52>>2];if(!a|J[a+40>>2]>0)break a;e=J[a+32>>2];d=J[e+20>>2];if((d|0)<=0)break b;c=J[e+24>>2];while(1){a=J[c>>2];if(!(a&8)){J[c>>2]=a|2;a=J[b+16>>2];if((a|0)>0){g=J[b+20>>2];d=0;while(1){a=d<<2;J[(a+c|0)+16>>2]=J[a+g>>2];a=J[b+16>>2];d=d+1|0;if((a|0)>(d|0))continue;break}d=J[e+20>>2]}J[c+12>>2]=a;H[c+416|0]=K[b+24|0];H[c+9|0]=K[b+12|0]}c=c+488|0;f=f+1|0;if((f|0)<(d|0))continue;break}}J[e>>2]=J[e>>2]|2;d=0}return d|0}function cyb(a,b,c){a=a|0;b=b|0;c=c|0;var d= -0,e=0;d=a+12|0;a:{b:{c:{if(M[b>>2]<=256){b=-1;e=J[c+8>>2];if(e&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=e|4;return-1}b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;d:{if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;e=K[b|0];break d}e=jd(c,1);if((e|0)==-1)break b}J[d>>2]=e&255;break c}b=-1;if(Lg(c,d))break b}b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>> -2];J[c+24>>2]=b+1;d=K[b|0];break e}d=jd(c,1);if((d|0)==-1)break b}H[a+16|0]=d;b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;f:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;c=K[b|0];break f}c=jd(c,1);if((c|0)==-1)break b}H[a+17|0]=c;b=0}return b|0}J[c+8>>2]=d|4;return-1}function ZJ(a,b){var c=0,d=0,e=0,f=0,g=0;g=bc-16|0;bc=g;a:{if(J[a+32>>2])break a;d=J[a+24>>2];c=J[a+8>>2];if(!((d|0)==(c|0)|c>>>0>2147483646)){J[a+ -24>>2]=c;d=c}f=J[a+20>>2];c=J[a+4>>2];if(!((f|0)==(c|0)|c>>>0>2147483646)){J[a+20>>2]=c;f=c}c=J[a+12>>2];if((c|0)==2)break a;e=b+f|0;if(e>>>0>>0){e=d-f|0;break a}b=b>>>0>>0?d<<1:e+100|0;b:{c:{d:{e:{f:switch(c-3|0){case 2:if(d>>>0<15E6&e>>>0<=14999999)break e;J[g>>2]=33685;e=0;Cc(0,0,0,0,0,29,2,3,33685,0,0,0,32863,g);if(J[a+32>>2])break a;J[a+32>>2]=2;break a;case 0:break f;default:break d}c=J[a+16>>2];if(!c)break d;e=0;d=c;c=J[a>>2]-c|0;f=gc[J[659452]](d,c+b|0)|0;if(f)break c;Ap(a,5424);break a}b= -b>>>0>=15E6?15E6:b}e=0;d=gc[J[659452]](J[a>>2],b)|0;if(d)break b;Ap(a,5424);break a}J[a+16>>2]=f;d=c+f|0}J[a+24>>2]=b;J[a>>2]=d;J[a+8>>2]=b>>>0>=2147483647?2147483647:b;c=a;a=J[a+20>>2];J[c+4>>2]=a>>>0>=2147483647?2147483647:a;e=b-a|0}bc=g+16|0;return e}function iyb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=-1;a:{d=J[c+8>>2];b:{if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break c}d= -jd(c,1);if((d|0)==-1)break b}H[a+12|0]=d;b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;d:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break d}d=jd(c,1);if((d|0)==-1)break b}H[a+13|0]=d;b=-1;if(Lg(c,a+16|0))break b;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0]; -break e}d=jd(c,1);if((d|0)==-1)break b}H[a+20|0]=d;b=-1;if(D9(c,H[a+12|0]&1,a+24|0))break b;b=0-(J[c+8>>2]&1)|0}return b|0}J[c+8>>2]=d|4;return-1}function drb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-2|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];g=g+2|0;a:{if(j>>>0>l>>>0)break a;h=j?(j|0)==(l|0)?d:b:c;if(!(!j&(e|0)==1)){if(h>>>0<2)break a;i=1;m=h<<1;while(1){a=K[f|0];k=K[f+2|0];if((a|0)!=(k|0))a=a+((h+(P(k-a|0,i)<<1)|0)/(m|0)|0)|0;H[g|0]=a;a=K[f+ -1|0];k=K[f+3|0];if((a|0)!=(k|0))a=a+((h+(P(k-a|0,i)<<1)|0)/(m|0)|0)|0;H[g+1|0]=a;g=g+2|0;i=i+1|0;if((h|0)!=(i|0))continue;break}break a}if(h>>>0<2)break a;a=h-1|0;i=a&3;if(h-2>>>0>=3){h=a&-4;a=0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f|0];H[g+3|0]=K[f+1|0];H[g+4|0]=K[f|0];H[g+5|0]=K[f+1|0];H[g+6|0]=K[f|0];H[g+7|0]=K[f+1|0];g=g+8|0;a=a+4|0;if((h|0)!=(a|0))continue;break}}a=0;if(!i)break a;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];g=g+2|0;a=a+1|0;if((i|0)!=(a|0))continue;break}}f=f+2|0; -j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function WC(a){a=a|0;var b=0,c=0;a=qf(a,2);J[a>>2]=47852;J[695492]=0;b=$(27,16384)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;J[a+1028>>2]=b;J[695492]=0;b=$(27,4096)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+1060>>2]=b;J[695492]=0;b=$(27,4096)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+1064>>2]=b;J[695492]=0;b=$(27,8192)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+1068>>2]=b;J[695492]=0;b=$(27,20012)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break a;J[a+1072>>2]=b;J[695492]=0;b=$(27,10006)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+1076>>2]=b;J[695492]=0;b=$(27,257)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+1052>>2]=b;J[695492]=0;b=$(27,256)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+1112>>2]=b;J[695492]=0;b=$(27,256)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+1120>>2]=0;J[a+1116>>2]=b;H[a+492|0]=0;H[b|0]=0;return a|0}b=Z()|0;mj(a);ba(b|0);B()}function xcb(a){a=a|0;var b=0,c=0;if(a){c=J[a+100>> -2];b=J[a+504>>2];if(b)ox(b);b=J[a+132>>2];if(b)gc[J[c+8>>2]](c,b);J[a+132>>2]=0;b=J[a+136>>2];if(b)gc[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+140>>2];if(b)gc[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+144>>2];if(b)gc[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+148>>2];if(b)gc[J[c+8>>2]](c,b);J[a+148>>2]=0;b=J[a+432>>2];if(b)gc[J[c+8>>2]](c,b);J[a+432>>2]=0;b=J[a+428>>2];if(b)gc[J[c+8>>2]](c,b);J[a+428>>2]=0;b=J[a+424>>2];if(b)gc[J[c+8>>2]](c,b);J[a+424>>2]=0;b=J[a+396>>2];if(b)gc[J[c+8>>2]](c,b);J[a+396>>2]=0;b=J[a+ -400>>2];if(b)gc[J[c+8>>2]](c,b);J[a+400>>2]=0;b=J[a+384>>2];if(b)gc[J[c+8>>2]](c,b);J[a+384>>2]=0;b=J[a+388>>2];if(b)gc[J[c+8>>2]](c,b);J[a+388>>2]=0;b=J[a+364>>2];if(b)gc[J[c+8>>2]](c,b);J[a+364>>2]=0;b=J[a+496>>2];if(b)gc[J[c+8>>2]](c,b);J[a+496>>2]=0;b=J[a+560>>2];if(b)gc[J[c+8>>2]](c,b);J[a+556>>2]=0;J[a+560>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}}function QJa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{c=J[b+492>>2];if(c){b=J[c+12>>2];J[a>>2]=J[c+8>>2];J[a+4>>2]=b;g=O[c+128>>3];O[a+24>>3]=g;h=O[c+ -136>>3];O[a+32>>3]=h;if(g>1){J[a+24>>2]=0;J[a+28>>2]=1072168960}if(h<-.5){J[a+32>>2]=0;J[a+36>>2]=-1076887552}b=0;f=J[c+16>>2];if(!f)break a;e=rc(8);J[695492]=0;d=aa(3183,e|0,f|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break a;a=Z()|0;qc(e);ba(a|0);B()}J[a+32>>2]=0;J[a+36>>2]=-1076887552;J[a+24>>2]=0;J[a+28>>2]=1072168960;J[a>>2]=-1;J[a+4>>2]=-1;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;return a|0}J[a+8>>2]=d;d=J[c+24>>2];J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=d;b:{if(!(gc[J[J[c>>2]+8>>2]](c)| -0))while(1){d=J[((b<<2)+c|0)+164>>2];if(!(!d|K[d|0]!=109|K[d+1|0])){d=b;break b}d=b|1;e=J[((d<<2)+c|0)+164>>2];if(!(!e|K[e|0]!=109|K[e+1|0]))break b;b=b+2|0;if((b|0)!=256)continue;break}return a|0}O[a+16>>3]=O[(((d&255)<<3)+c|0)+1464>>3];return a|0}function PHa(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(!(K[a+68|0]&8)){f=J[a+32>>2];J[a+36>>2]=f;a:{b:{c:{e=J[a+48>>2];if(e){while(1){e=gc[J[a+20>>2]](f,e,J[a>>2])|0;if((e|0)==-1)break c;f=e+J[a+36>>2]|0;J[a+36>>2]=f;e=J[a+48>> -2]-e|0;J[a+48>>2]=e;if(e)continue;break}f=J[a+32>>2]}J[a+36>>2]=f;if(!!b&(c|0)>=0|(c|0)>0)break b;f=0;e=0;break a}J[a+68>>2]=J[a+68>>2]|8;Hc(d,4,2340723,0);J[a+48>>2]=0;J[a+68>>2]=J[a+68>>2]|8;fc=-1;return-1}f=0;e=0;while(1){g=gc[J[a+24>>2]](b,c,J[a>>2])|0;h=fc;i=h;if((g&h)==-1){Hc(d,4,2341693,0);J[a+68>>2]=J[a+68>>2]|8;b=e+J[a+60>>2]|0;c=f+J[a+56>>2]|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;a=!(e|f);b=a?-1:f;fc=a?-1:e;return b|0}e=e+i|0;f=f+g|0;e=f>>>0>>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+J[a+60>>2]|0;c=f+J[a+56>>2]|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b}fc=e;return f|0}function ISa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;c=-1;a:{b:switch(J[a+40>>2]){case 0:c=J[a+352>>2];if((c|0)==-1){b=J[a+4>>2];g=gc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1){c=J[a+352>>2];J[a+352>>2]=-1;break a}b=K[a+348|0]+1|0;H[a+348|0]=b;d=b&255;b=a+92|0;d=d+b|0;c=K[d|0];f=c+K[a+349|0]|0;H[a+349|0]=f;h=d;d=b+(f&255)|0;f=K[d|0];H[h| -0]=f;H[d|0]=c;c=K[b+(c+f&255)|0]^g&255}J[a+352>>2]=-1;break a;case 1:b=J[a+316>>2];if((b|0)==16){b=J[a+4>>2];if((gc[J[J[b>>2]+40>>2]](b,e,16)|0)!=16)break a;b=J[a+4>>2];KZ(a+92|0,e,(gc[J[J[b>>2]+32>>2]](b)|0)==-1);b=J[a+316>>2];if((b|0)==16)break a}J[a+316>>2]=b+1;c=K[(a+b|0)+300|0];break a;case 2:break b;default:break a}b=J[a+380>>2];if((b|0)==16){b=J[a+4>>2];if((gc[J[J[b>>2]+40>>2]](b,e,16)|0)!=16)break a;b=J[a+4>>2];nt(a+92|0,e,(gc[J[J[b>>2]+32>>2]](b)|0)==-1);b=J[a+380>>2];if((b|0)==16)break a}J[a+ -380>>2]=b+1;c=K[(a+b|0)+364|0]}bc=e+16|0;return c|0}function Gba(a,b){a=a|0;b=b|0;var c=0;if((b|0)==7){if(!Jm(a,97472,8)){Nc(J[a+628>>2],97456,71024,0);return 0}b=zc(952);J[a+584>>2]=b;if(!b){Nc(J[a+628>>2],97456,71659,0);return 0}Hg(b,0,952);b=J[a+584>>2];J[b+828>>2]=a;J[b+892>>2]=J[a+672>>2];J[a+672>>2]=642;J[b+896>>2]=J[a+668>>2];J[a+668>>2]=643;J[b+900>>2]=J[a+676>>2];J[a+676>>2]=644;J[b+948>>2]=0;J[b+936>>2]=0;J[b+940>>2]=0;J[b+920>>2]=75;J[b+924>>2]=0;J[b+912>>2]=0;J[b+916>>2]=0;J[b+928>>2]= -3;J[b+932>>2]=0;J[a+556>>2]=645;J[a+548>>2]=645;J[a+540>>2]=645;J[a+520>>2]=646;J[a+516>>2]=647;J[a+572>>2]=648;J[a+560>>2]=649;J[a+552>>2]=649;J[a+544>>2]=649;J[a+536>>2]=650;J[a+532>>2]=651;J[a+524>>2]=652;J[b+904>>2]=J[a+576>>2];J[a+576>>2]=653;J[b+908>>2]=J[a+580>>2];J[a+580>>2]=654;J[a+12>>2]=J[a+12>>2]|256;J[b+488>>2]=0;if(!J[a+16>>2]){J[b+916>>2]=2E3;c=b;b=zc(2E3);J[c+912>>2]=b;Hg(b,0,2E3)}J[a+44>>2]=J[a+44>>2]|128;return 1}fa(69655,70490,1951,97456);B()}function U2a(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0,f=0,g=0,h=0;c=bc-32|0;bc=c;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[c+4|0]=0;J[c>>2]=a;e=J[b+4>>2];f=J[b>>2];g=e-f|0;d=(g|0)/12|0;a:{b:{c:{if((e|0)!=(f|0)){if(d>>>0>=357913942){J[695492]=0;_(2803,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}J[695492]=0;e=$(4,g|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[a+4>>2]=e;J[a>>2]=e;J[a+8>>2]=e+P(d,12);f=J[b+4>>2];b=J[b>>2];J[c+28>>2]=e;J[c+24>>2]=e;H[c+20|0]=0;J[c+8>>2]=a+8;J[c+16>>2]=c+28;J[c+12>>2]=c+24;d:{if((b|0)==(f|0)){d=e;break d}d= -e;while(1){e:{if(H[b+11|0]>=0){g=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=g;J[d+8>>2]=J[b+8>>2];break e}g=J[b+4>>2];h=J[b>>2];J[695492]=0;ca(15,d|0,h|0,g|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;d=J[c+28>>2]}d=d+12|0;J[c+28>>2]=d;b=b+12|0;if((f|0)!=(b|0))continue;break}}J[a+4>>2]=d}bc=c+32|0;return a|0}b=Z()|0;break a}b=Z()|0;LK(c+8|0);J[a+4>>2]=e}V1(c);ba(b|0);B()}function LB(a,b,c){var d=0,e=0,f=0;e=bc-112|0;bc=e;a:{b:{if(!a)break b;d=16;c:{d:{e:{if((a|0)==28559)break e;if((K[a|0]&223)==70&(K[a+ -1|0]&223)==73){f=K[a+2|0]&223;if((f|0)==76){f:{if((K[a+3|0]&223)!=69|K[a+4|0]!=58|(K[a+5|0]!=47|K[a+6|0]!=47))break f;if((K[a+7|0]&223)!=76|(K[a+8|0]&223)!=79|((K[a+9|0]&223)!=67|(K[a+10|0]&223)!=65))break f;if((K[a+11|0]&223)!=76|(K[a+12|0]&223)!=72|((K[a+13|0]&223)!=79|(K[a+14|0]&223)!=83))break f;if((K[a+15|0]&223)!=84)break f;if(K[a+16|0]==47)break e}d=7;if((a|0)==28629)break e;if((f|0)!=76|(K[a+3|0]&223)!=69|(K[a+4|0]!=58|K[a+5|0]!=47))break d;if(K[a+6|0]!=47)break d;if(K[a+7|0]==47)break e; -break d}}if((a|0)!=28629)break d;d=7}d=a+d|0;break c}d=a}if((Rk(d,e+16|0)|0)!=-1)break b;d=zw(a);if(!d){J[e>>2]=33660;a=0;Cc(0,0,0,0,0,8,2,3,33660,0,0,0,32863,e);break a}a=gc[J[659584]](d,b,c)|0;gc[J[659451]](d);break a}a=gc[J[659584]](a,b,c)|0}bc=e+112|0;return a}function uc(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:switch(J[a>>2]-3|0){case 0:b=J[a+8>>2];if(!b)break a;qc(Rc(b));break a;case 1:Gc(J[a+8>>2]);break a;case 3:b=J[a+8>>2];c=J[b+16>>2]-1|0;J[b+16>>2]=c;if(c)break a;b=J[a+8>>2];if(!b)break a;qc(f_(b)); -break a;case 4:b=J[a+8>>2];c=J[b+20>>2]-1|0;J[b+20>>2]=c;if(c)break a;b=J[a+8>>2];if(!b)break a;c:{d:{if(J[b+16>>2]>0)while(1){e=d<<5;c=J[e+J[b+4>>2]>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+4>>2];J[695492]=0;_(3205,(c+e|0)+8|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;d=d+1|0;if((d|0)>2])continue;break}c=J[b+4>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[b+8>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break d;break c}ea(0)| -0;yc();B()}qc(b);break a;case 5:b=J[a+8>>2];if(!b)break a;gc[J[J[b>>2]+4>>2]](b);break a;case 7:break b;default:break a}Gc(J[a+8>>2])}J[a>>2]=13}function p4(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a>>2];if(J[a+248>>2]){d=J[a+92>>2]>>6;while(1){f=c<<2;g=Pc(J[f+J[e+704>>2]>>2],d);J[f+J[a+252>>2]>>2]=g;c=c+1|0;if(c>>>0>2])continue;break}}c=J[a+300>>2];d=yL(c,e,a);if(!d){H[c+565|0]=b;H[c+492|0]=0;J[c+16>>2]=0;J[c+432>>2]=0;f=J[e+696>>2];b=J[e+692>>2];J[c+464>>2]=0;J[c+468>>2]=0;J[c+460>>2]=b;J[c+456>> -2]=f;d=0;if(b){J[c+368>>2]=b;J[c+360>>2]=f;J[c+364>>2]=0;J[c+356>>2]=2;d=gc[J[e+708>>2]](c)|0}J[a+308>>2]=d;I[c+304>>1]=0;I[c+296>>1]=0;I[c+298>>1]=16384;I[c+300>>1]=0;I[c+302>>1]=16384;J[c+288>>2]=0;J[c+292>>2]=1073741824;I[c+352>>1]=1;J[c+348>>2]=65537;J[c+308>>2]=1;tc(a+180|0,c+288|0,68);J[a+124>>2]=J[c+400>>2];J[a+136>>2]=J[c+412>>2];J[a+148>>2]=J[c+424>>2];J[a+152>>2]=J[c+428>>2];b=J[c+452>>2];J[a+156>>2]=J[c+448>>2];J[a+160>>2]=b;b=J[c+460>>2];J[a+164>>2]=J[c+456>>2];J[a+168>>2]=b;b=J[c+468>> -2];J[a+172>>2]=J[c+464>>2];J[a+176>>2]=b}return d}function Wua(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;c=bc-16|0;bc=c;if(!K[a+88|0]){l=a,m=gc[J[J[a>>2]+36>>2]](a)|0,J[l+72>>2]=m;l=a,m=gc[J[J[a>>2]+44>>2]](a)|0,J[l+76>>2]=m;l=a,m=gc[J[J[a>>2]+40>>2]](a)|0,J[l+80>>2]=m;d=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}J[c>>2]=J[a+124>>2];J[c+8>>2]=J[a+132>>2];J[c+4>>2]=J[a+128>>2];J[c+12>>2]=J[a+136>>2];Cs(b,c);h=J[c>>2];J[a+124>>2]=h;i=J[c+4>>2];J[a+128>>2]=i;e=J[c+8>>2]; -J[a+132>>2]=e;f=J[c+12>>2];b=(e-h|0)/2|0;J[a+100>>2]=b;H[a+88|0]=0;J[a+136>>2]=f;g=(f-i|0)/2|0;J[a+104>>2]=g;d=b+g|0;e=(e+h|0)/2|0;f=(f+i|0)/2|0;a:{if((b|0)>(g|0)){j=Y(+(P(d,b-g|0)|0));b:{if(R(j)<2147483648){d=~~j;break b}d=-2147483648}h=e-d|0;e=d+e|0;d=g;i=f;break a}j=Y(+(P(d,g-b|0)|0));c:{if(R(j)<2147483648){k=~~j;break c}k=-2147483648}i=k+f|0;d=b;b=g;h=e;f=f-k|0}J[a+120>>2]=f;J[a+116>>2]=h;J[a+108>>2]=e;J[a+92>>2]=b;J[a+96>>2]=d;J[a+112>>2]=i;bc=c+16|0}function Vua(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;c=bc-16|0;bc=c;if(!K[a+88|0]){l=a,m=gc[J[J[a>>2]+36>>2]](a)|0,J[l+72>>2]=m;l=a,m=gc[J[J[a>>2]+44>>2]](a)|0,J[l+76>>2]=m;l=a,m=gc[J[J[a>>2]+40>>2]](a)|0,J[l+80>>2]=m;d=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}J[c>>2]=J[a+124>>2];J[c+8>>2]=J[a+132>>2];J[c+4>>2]=J[a+128>>2];J[c+12>>2]=J[a+136>>2];NT(b,c);h=J[c>>2];J[a+124>>2]=h;i=J[c+4>>2];J[a+128>>2]=i;e=J[c+8>>2];J[a+132>>2]=e;f=J[c+12>>2];b=(e-h|0)/2|0;J[a+100>>2]=b;H[a+88|0]=0;J[a+136>>2]=f;g=(f-i|0)/ -2|0;J[a+104>>2]=g;d=b+g|0;e=(e+h|0)/2|0;f=(f+i|0)/2|0;a:{if((b|0)>(g|0)){j=Y(+(P(d,b-g|0)|0));b:{if(R(j)<2147483648){d=~~j;break b}d=-2147483648}h=e-d|0;e=d+e|0;d=g;i=f;break a}j=Y(+(P(d,g-b|0)|0));c:{if(R(j)<2147483648){k=~~j;break c}k=-2147483648}i=k+f|0;d=b;b=g;h=e;f=f-k|0}J[a+120>>2]=f;J[a+116>>2]=h;J[a+108>>2]=e;J[a+92>>2]=b;J[a+96>>2]=d;J[a+112>>2]=i;bc=c+16|0}function QBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d){while(1){c:{d=J[b+4>>2];J[a>>2]=J[b>> -2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;Qj(a+16|0,b+16|0);J[695492]=0;aa(5031,a+52|0,b+52|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;b=b+68|0;a=a+68|0;d=(c|0)>0;c=c-1|0;if(d)continue;break b}break}break a}while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;Qj(a+16|0,b+16|0);J[695492]=0;d=b+52|0;aa(5031,a+52|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;$c(d);J[b+40>>2]=2381060;J[b+16>>2]=2381028;d=J[b+44>>2];if(d){e=J[d+ -4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[b+44>>2]=0}J[b+32>>2]=2381060;d=J[b+36>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[b+36>>2]=0}sc(b+24|0);b=b+68|0;a=a+68|0;d=(c|0)>0;c=c-1|0;if(d)continue;break}}return}b=Z()|0;lV(a);ba(b|0);B()}function yY(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=J[a+8>>2];gc[J[J[d>>2]+20>>2]](d);d=bc-1056|0;bc=d;J[a+16>>2]=0;J[a+20>>2]=0;f=d+16|0;wc(f,0,1025);g=J[a+8>>2];gc[J[J[g>>2]+40>>2]](g,f,1024)|0;a:{b:{while(1){if(!kd((d+16|0)+e|0,781021, -5))break b;e=e+1|0;if((e|0)!=1019)continue;break}xc(0,-1,782164,0);break a}f=J[a+8>>2];gc[J[J[f>>2]+104>>2]](f,e);f=d+e|0;e=Cg(f+21|0,783201);if(!e){xc(0,-1,782164,0);break a}h=Wf(e);O[a+16>>3]=h;if(!(h>2.0001)&(K[f+21|0]-58&255)>>>0>=246)break a;J[d+4>>2]=784973;J[d>>2]=e;xc(0,-1,784043,d)}bc=d+1056|0;c:{d:{if(!xY(a,b,c,0)){if((J[a+44>>2]&-2)!=2)return 0;xc(0,-1,777559,0);d=0;if(!xY(a,b,c,1))break d}c=rc(4);b=J[a+24>>2];d=J[a+28>>2];J[695492]=0;b=ga(3467,c|0,d+96|0,b|0)|0;d=J[695492];J[695492]=0; -if((d|0)==1)break c;J[a+32>>2]=b;c=rc(12);J[695492]=0;b=aa(3468,c|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;J[a+36>>2]=b;d=1}return d}a=Z()|0;qc(c);ba(a|0);B()}function PKa(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;if((c|0)<=0)return 0;j=a+8|0;d=J[a+136>>2];while(1){a:{g=J[a+140>>2];if(g>>>0<=d>>>0){if(J[a+144>>2])break a;d=J[a+4>>2];e=gc[J[J[d>>2]+28>>2]](d)|0;if(!((e|0)!=128&(e|0)!=-1)){J[a+144>>2]=1;return h|0}b:{if((e|0)<=127){i=e+1|0;if((e|0)<0)break b; -c:{if(!e){d=0;break c}l=i&-2;d=0;g=0;while(1){k=a+8|0;f=J[a+4>>2];m=k+d|0,n=gc[J[J[f>>2]+28>>2]](f)|0,H[m|0]=n;f=J[a+4>>2];m=(d|1)+k|0,n=gc[J[J[f>>2]+28>>2]](f)|0,H[m|0]=n;d=d+2|0;g=g+2|0;if((l|0)!=(g|0))continue;break}}if(e&1)break b;e=a+d|0;d=J[a+4>>2];m=e,n=gc[J[J[d>>2]+28>>2]](d)|0,H[m+8|0]=n;break b}i=257-e|0;d=J[a+4>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if(e>>>0>256)break b;wc(j,d,(i|0)<=1?1:i)}J[a+136>>2]=j;g=i+j|0;J[a+140>>2]=g;d=j}e=d;f=g-d|0;d=c-h|0;f=(d|0)>(f|0)?f:d;tc(b+h|0,e,f);d=f+J[a+136>> -2]|0;J[a+136>>2]=d;h=f+h|0;if((h|0)<(c|0))continue}break}return h|0}function m4(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=bc-16|0;bc=c;d=J[a+104>>2];f=J[d+28>>2];g=J[a+736>>2];H[g+24|0]=1;a:{if(gc[J[a+516>>2]](a,1635148146,d,c+8|0)|0)break a;a=Ue(d,J[c+8>>2]);J[c+12>>2]=a;if(a)break a;a=qh(d);e=qh(d);b:{if((a|0)!=65536|(e|0)!=J[J[g+12>>2]>>2])break b;a=Sc(f,8,0,e,0,c+12|0);J[g+28>>2]=a;if(J[c+12>>2]|(e|0)<=0)break b;while(1){c:{b=mf(d);I[a>>1]=b;if(M[c+8>>2]>>0)break c;k=a,l=Sc(f, -8,0,b,0,c+12|0),J[k+4>>2]=l;if(J[c+12>>2])break c;b=0;if(L[a>>1])while(1){i=mf(d);j=b<<3;J[j+J[a+4>>2]>>2]=i<<16>>16<<2;i=mf(d);J[(J[a+4>>2]+j|0)+4>>2]=i<<16>>16<<2;b=b+1|0;if(b>>>0>1])continue;break}a=a+8|0;h=h+1|0;if((e|0)!=(h|0))continue;break b}break}a=J[g+28>>2];if(h)while(1){e=h-1|0;b=e<<3;a=J[(b+a|0)+4>>2];if(a)gc[J[f+8>>2]](f,a);a=J[g+28>>2];J[(b+a|0)+4>>2]=0;b=(h|0)>1;h=e;if(b)continue;break}if(a)gc[J[f+8>>2]](f,a);J[g+28>>2]=0}ne(d)}bc=c+16|0}function V_a(a,b){a=a|0;b=b|0;var c=0,d= -0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];f=(J[a+4>>2]-c|0)/20|0;d=f+1|0;if(d>>>0<214748365){c=(J[a+8>>2]-c|0)/20|0;e=c<<1;d=c>>>0>=107374182?214748364:d>>>0>>0?e:d;if(d>>>0>=214748365)break c;c=P(f,20);d=P(d,20);f=rc(d);c=c+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;e=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=e;d=d+f|0;f=c+20|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-20|0;g=J[b+4>>2];c=c-20|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>> -2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;g=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=g;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){a=b-20|0;if(H[b-9|0]<0)qc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}ph(a);B()}Sd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)qc(b)}function EE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=bc-16|0;bc=g;J[g+12>>2]=c;a:{b:{if(K[a+11|0]>>>7|0)i=J[a+4>>2]; -else i=K[a+11|0]&127;if(b>>>0<=i>>>0){f=i-b|0;J[g+8>>2]=f;c=bc-16|0;bc=c;bc=c+16|0;c=g+8|0;h=g+12|0;J[g+12>>2]=J[(M[c>>2]>2]?c:h)>>2];h=J[g+12>>2];c=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(h+(c-i|0)>>>0>=e>>>0){if(K[a+11|0]>>>7|0)c=J[a>>2];else c=a;h=c;c=J[g+12>>2];if(!((e|0)==(c|0)|(c|0)==(f|0))){j=f-c|0;f=h+(b<<2)|0;if(c>>>0>e>>>0)break b;c:{if(d>>>0<=f>>>0|h+(i<<2)>>>0<=d>>>0)break c;if(f+(c<<2)>>>0<=d>>>0){d=(e-c<<2)+d|0;break c}Cm(f,d,c);f=J[g+12>>2];c=0;J[g+12>>2]=0;d=(e<<2)+d| -0;e=e-f|0;b=b+f|0}f=h+(b<<2)|0;Cm(f+(e<<2)|0,f+(c<<2)|0,j)}Cm(h+(b<<2)|0,d,e);a=Eu(a,h,(e+i|0)-J[g+12>>2]|0);break a}Yr(a,c,e+i-(c+h)|0,i,b,h,e,d);break a}mr(a);B()}Cm(f,d,e);Cm(f+(e<<2)|0,f+(J[g+12>>2]<<2)|0,j);a=Eu(a,h,(e+i|0)-J[g+12>>2]|0)}bc=g+16|0;return a|0}function $Xa(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{e:{b=J[a+388>>2];switch(J[b+20>>2]){case 2:break c;case 1:break d;case 0:break e;default:break b}}pJ(a);nJ(a);if(!J[a+208>>2]){gc[J[J[a+408>>2]>>2]](a);gc[J[J[a+412>>2]>>2]](a);gc[J[J[a+396>> -2]>>2]](a,0)}gc[J[J[a+416>>2]>>2]](a);gc[J[J[a+420>>2]>>2]](a,J[a+216>>2]);gc[J[J[a+400>>2]>>2]](a,J[b+28>>2]>1?3:0);gc[J[J[a+392>>2]>>2]](a,0);if(J[a+216>>2]){J[b+12>>2]=0;break a}J[b+12>>2]=1;break a}pJ(a);nJ(a);if(J[a+368>>2]?J[a+360>>2]:1){gc[J[J[a+420>>2]>>2]](a,1);gc[J[J[a+400>>2]>>2]](a,2);J[b+12>>2]=0;break a}J[b+20>>2]=2;J[b+24>>2]=J[b+24>>2]+1}if(!J[a+216>>2]){pJ(a);nJ(a)}gc[J[J[a+420>>2]>>2]](a,0);gc[J[J[a+400>>2]>>2]](a,2);if(!J[b+32>>2])gc[J[J[a+404>>2]+4>>2]](a);gc[J[J[a+404>>2]+8>> -2]](a);J[b+12>>2]=0;break a}c=J[a>>2];J[c+20>>2]=49;gc[J[c>>2]](a)}d=b;c=J[b+28>>2];b=J[b+24>>2];J[d+16>>2]=(c-1|0)==(b|0);a=J[a+8>>2];if(a){J[a+16>>2]=c;J[a+12>>2]=b}}function $I(a){var b=0,c=0,d=0,e=0;b=K[a+11|0];e=b<<24>>24;c=(e|0)<0;a:{d=J[a+4>>2];if(((c?d:b)|0)==7){if(!gd(c?J[a>>2]:a,794172,7))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}c=e<<24>>24;if((((c|0)<0?d:b)|0)==12){if(!gd((c|0)<0?J[a>>2]:a,794992,12))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}c=e<<24>>24<0;if(((c?d:b)|0)==19){if(!gd(c?J[a>>2]:a,795780, -19))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}c=e<<24>>24;if((((c|0)<0?d:b)|0)==15){if(!gd((c|0)<0?J[a>>2]:a,796588,15))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}c=e<<24>>24<0;if(((c?d:b)|0)==9){if(!gd(c?J[a>>2]:a,797328,9))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}b:{c=d;d=e<<24>>24;if((((d|0)<0?c:b)|0)!=14)break b;if(gd((d|0)<0?J[a>>2]:a,798104,14))break b;break a}b=1;c:{if(dl(a,798800))break c;if(dl(a,799552))break c;if(dl(a,800372))break c;if(dl(a,801012))break c;if(dl(a,801748))break c;if(dl(a,802492))break c; -if(dl(a,803168))break c;b=dl(a,803800)}return b}return 1}function gIa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=bc-128|0;bc=e;a:{b:{if(b){d=K[b|0];if((d|0)!=49){J[a+204>>2]=J[a+204>>2]|131072;d=K[b|0]}c:{if(!d)break c;c=K[b+1|0];if((c|0)!=46){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+1|0]}d=((c|0)==46)+((d|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+2|0];if((c|0)!=53){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+2|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+3|0];if((c|0)!=46){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+3|0]}d= -d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+4|0];if((c|0)!=50){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+4|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+5|0];if((c|0)!=54){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+5|0]}if(!K[b+6|0]|(!c|d+((c|0)==46)>>>0>1))break c;J[a+204>>2]=J[a+204>>2]|131072}d=1;if(!(K[a+206|0]&2))break a;break b}J[a+204>>2]=J[a+204>>2]|131072}Mq(e,128,Mq(e,128,Mq(e,128,Mq(e,128,0,58637),b),58851),58483);Yc(a,e);d=0}bc=e+128|0;return d|0}function VUa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0; -ew(a,b);if(K[a+5|0]&2){c=K[a+335|0];d=c<<24>>24<0;jf(b,d?J[a+324>>2]:a+324|0,d?J[a+328>>2]:c)}a:{if(K[a+140|0]==27){pd(b,J[a+320>>2]);c=J[a+4>>2];if(c&1024){c=K[a+347|0];d=c<<24>>24<0;jf(b,d?J[a+336>>2]:a+336|0,d?J[a+340>>2]:c);c=J[a+4>>2]}if(c&2048){c=K[a+359|0];d=c<<24>>24<0;jf(b,d?J[a+348>>2]:a+348|0,d?J[a+352>>2]:c);c=J[a+4>>2]}if(c&4096){c=K[a+371|0];d=c<<24>>24<0;jf(b,d?J[a+360>>2]:a+360|0,d?J[a+364>>2]:c);c=J[a+4>>2]}if(c&8192)we(b,K[a+317|0]);c=J[a+320>>2];if(!(c&1))break a;if(c&2){we(b,K[a+ -318|0]);c=J[a+320>>2]}if(c&4){we(b,K[a+319|0]);c=J[a+320>>2]}if(!(c&8))break a;e=O[a+384>>3]*100;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}pd(b,d);e=O[a+392>>3]*100;if(R(e)<2147483648){pd(b,~~e);return}pd(b,-2147483648);return}we(b,K[a+316|0]);if(!(K[a+5|0]&64))break a;d=b;b=K[a+383|0];c=b<<24>>24<0;jf(d,c?J[a+372>>2]:a+372|0,c?J[a+376>>2]:b)}}function PS(a,b){var c=0,d=0,e=0;c=bc+-64|0;bc=c;J[c+56>>2]=0;J[c+60>>2]=0;a:{b:{if(!(J[a+80>>2]==3008&(b|0)>=256)){J[c+8>>2]=0;J[c+12>>2]=0;break b}J[c+ -48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;d=a+652|0;c:{e=J[a+100>>2];if(e){J[695492]=0;ua(6402,c+16|0,d|0,e|0,c+48|0,c+40|0,c+32|0,c+24|0);d=J[695492];J[695492]=0;if((d|0)!=1)break c;break a}J[695492]=0;ua(6403,c+16|0,d|0,a+108|0,c+48|0,c+40|0,c+32|0,c+24|0);d=J[695492];J[695492]=0;if((d|0)!=1)break c;break a}d=J[c+20>>2];J[c+60>>2]=d;e=J[c+16>>2];J[c+56>>2]=e;J[c+12>>2]=d;J[c+8>>2]=e;if(!d)break b;J[d+4>>2]=J[d+4>>2]+1}J[695492]=0;d=J[c+12>> -2];J[c>>2]=J[c+8>>2];J[c+4>>2]=d;ca(6404,a+1984|0,b|0,c|0);a=J[695492];J[695492]=0;if((a|0)!=1){a=J[c+60>>2];d:{if(!a)break d;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break d;gc[J[J[a>>2]+8>>2]](a);Vc(a)}bc=c- -64|0;return 0}}a=Z()|0;Ie(c+56|0);ba(a|0);B()}function JFa(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;d=bc-16|0;bc=d;J[d+12>>2]=0;e=Cp(a);a=J[J[b>>2]+20>>2];J[695492]=0;a=ga(a|0,b|0,c|0,d+12|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){b:{c:{d:{if(!a)break d;a=J[d+12>>2];b=J[a+4>>2];if(b>>> -0>=2147483632){J[695492]=0;_(1623,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}c=J[a>>2];e:{if(b>>>0<=10){H[d+11|0]=b;a=d;break e}J[695492]=0;f=(b|15)+1|0;a=$(4,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[d>>2]=a;J[d+4>>2]=b;J[d+8>>2]=f|-2147483648}h=Zc(a,c,b)+b|0,i=0,H[h|0]=i;J[695492]=0;aa(3314,e|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[d+12>>2];if(a){f:{if(!K[a+8|0])break f;b=J[a>>2];if(!b)break f;qc(b)}qc(a)}if(H[d+11|0]>=0)break d;qc(J[d>>2])}bc=d+16|0;return}b= -Z()|0;break a}b=Z()|0;if(H[d+11|0]>=0)break a;qc(J[d>>2]);break a}b=Z()|0}J[e>>2]=768024;a=J[e+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);ba(b|0);B()}function xL(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a>>2];a:{if(K[b+732|0])break a;H[a+112|0]=0;d=J[a+16>>2];c=J[a+12>>2];J[a+48>>2]=c;J[a+52>>2]=d;d=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>>2]=d;e=J[a+32>>2];d=a- -64|0;J[d>>2]=J[a+28>>2];J[d+4>>2]=e;J[a+72>>2]=J[a+36>>2];e=151;if(!(c&65535)|!L[a+50>>1])break a;if(K[b+176|0]&8){f=a,g=Pc(I[b+70>>1],J[a+56>>2])+32& --64,J[f+60>>2]=g;f=d,g=Pc(I[b+72>>1],J[a+56>>2])+32&-64,J[f>>2]=g;f=a,g=Pc(I[b+74>>1],J[a+56>>2])+32&-64,J[f+68>>2]=g}H[a+112|0]=1;e=0;d=a+48|0;c=L[d>>1];if(K[b+176|0]&8){f=a,g=td(c<<6,L[b+68>>1]),J[f+52>>2]=g;f=a,g=td(L[a+50>>1]<<6,L[b+68>>1]),J[f+56>>2]=g;f=a,g=Pc(I[b+76>>1],J[a+52>>2])+32&-64,J[f+72>>2]=g;c=L[a+48>>1]}b=L[a+50>>1];b:{if(b>>>0<=c>>>0){I[a+84>>1]=c;J[a+76>>2]=65536;J[a+92>>2]=J[a+52>>2];c=td(b,c);break b}I[a+84>>1]=b;J[a+92>>2]=J[a+56>>2];f=a,g=td(c,b),J[f+76>>2]=g;c=65536}J[a+308>> -2]=-1;J[a+44>>2]=d;J[a+80>>2]=c}return e}function bqa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=c;J[a+8>>2]=b;J[a>>2]=2423016;J[a+4>>2]=0;J[695492]=0;c=ha(5043,a+32|0,a+28|0,b+8|0,1)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{if((b|0)!=1){b=J[a+8>>2];J[695492]=0;e=ha(5043,a+44|0,a+40|0,b+4|0,2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;b=J[a+8>>2];J[695492]=0;f=ha(5043,a+56|0,a+52|0,b+4|0,2)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[a+64>> -2]=0;J[a+68>>2]=0;d=a+72|0;J[d>>2]=0;J[d+4>>2]=0;J[695492]=0;ci(c,1,0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;ci(e,2,0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;ci(f,2,0);b=J[695492];J[695492]=0;if((b|0)==1)break d;b=L[a+8>>1];I[J[a+40>>2]>>1]=b;I[J[a+52>>2]>>1]=b;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;vc(a+76|0);vc(d);vc(a+68|0);vc(a- -64|0);_c(f)}_c(e)}_c(c)}ed(a);ba(b|0);B()}function DP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0, -g=0,h=0,i=0;a=c;a:if((d-a|0)<3)break a;while(1){b:{if(e>>>0<=g>>>0|a>>>0>=d>>>0)break b;b=K[a|0];f=a+1|0;c:{if(b<<24>>24>=0)break c;if(b>>>0<194)break b;if(b>>>0<=223){if((K[a+1|0]&192)!=128|(d-a|0)<2)break b;f=a+2|0;break c}if(b>>>0<=239){if((d-a|0)<3)break b;h=K[a+2|0];f=K[a+1|0];d:{e:{if((b|0)!=237){if((b|0)!=224)break e;if((f&224)==160)break d;break b}if((f&224)!=128)break b;break d}if((f&192)!=128)break b}if((h&192)!=128)break b;f=a+3|0;break c}if((d-a|0)<4|b>>>0>244|e-g>>>0<2)break b;h=K[a+ -3|0];i=K[a+2|0];f=K[a+1|0];f:{g:switch(b-240|0){case 0:if((f+112&255)>>>0>=48)break b;break f;case 4:if((f&240)!=128)break b;break f;default:break g}if((f&192)!=128)break b}if((i&192)!=128|(h&192)!=128|(h&63|(i<<6&4032|(b<<18&1835008|(f&63)<<12)))>>>0>1114111)break b;g=g+1|0;f=a+4|0}a=f;g=g+1|0;continue}break}return a-c|0}function Wya(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=bc-16|0;bc=f;g=Hs(172);J[695492]=0;h=$(5301,g|0)|0;i=J[695492];J[695492]=0;a:{b:{c:{d:{if((i|0)!=1){J[a>> -2]=0;md(a,h);g=J[J[h>>2]+56>>2];J[695492]=0;da(g|0,h|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break d;g=J[J[h>>2]+60>>2];d=0;J[695492]=0;da(g|0,h|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[c>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break d;d=J[c>>2]}J[695492]=0;J[f+12>>2]=d;ca(5302,h|0,b|0,f+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;a=J[f+12>>2];J[f+12>>2]=0;e:{if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]= -0;if((c|0)==1)break a;if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=f+16|0;return}a=Z()|0;Tl(g);ba(a|0);B()}b=Z()|0;break b}b=Z()|0;vc(f+12|0)}vc(a);ba(b|0);B()}ea(0)|0;yc();B()}function WYa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;b=J[b+84>>2];f=P(J[b+96>>2],I[c+48>>1]);h=P(J[b+32>>2],I[c+16>>1]);g=P(f+h|0,4433);i=J[d>>2]+e|0;a=J[a+332>>2]+128|0;j=P(J[b+100>>2],I[c+50>>1]);k=P(J[b+36>>2],I[c+18>>1]);l=P(j+ -k|0,4433);k=l+P(k,6270)|0;m=P(J[b+68>>2],L[c+34>>1]);n=P(J[b+4>>2],L[c+2>>1]);o=m+n<<13;p=k+o|0;q=P(J[b+64>>2],L[c+32>>1]);b=P(J[b>>2],L[c>>1]);c=q+b<<13;h=g+P(h,6270)|0;r=(c+h|0)+32768|0;H[i|0]=K[a+(p+r>>>16&1023)|0];H[i+1|0]=K[a+(r-p>>>16&1023)|0];i=J[d+4>>2]+e|0;g=g+P(f,-15137)|0;b=b-q<<13;f=(g+b|0)+32768|0;j=P(j,-15137)+l|0;l=n-m<<13;m=j+l|0;H[i|0]=K[a+(f+m>>>16&1023)|0];H[i+1|0]=K[a+(f-m>>>16&1023)|0];f=J[d+8>>2]+e|0;b=(b-g|0)+32768|0;g=l-j|0;H[f|0]=K[a+(b+g>>>16&1023)|0];H[f+1|0]=K[a+(b-g>>> -16&1023)|0];b=J[d+12>>2]+e|0;c=(c-h|0)+32768|0;d=o-k|0;H[b|0]=K[a+(c+d>>>16&1023)|0];H[b+1|0]=K[a+(c-d>>>16&1023)|0]}function Lp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;fh(a,J[a+8>>2]);c=J[a>>2];J[d+12>>2]=c;f=J[a+8>>2];if(c>>>0>>0){a:{b:{c:{d:{e:{f:{g:{e=K[c|0];if((e|0)!=123){if((e|0)==91)break g;if((e|0)!=40)break f;J[b>>2]=c;J[b+8>>2]=2;if(KL(d+12|0,f))break e;break d}J[b>>2]=c;J[b+8>>2]=3;if(!p5(d+12|0,f))break d;break e}J[b>>2]=c;J[b+8>>2]=3;J[a>> -2]=c+1;fh(a,f);c=J[a>>2];h:{if(f>>>0<=c>>>0)break h;e=1;while(1){if(J[a+12>>2])break h;i:{j:switch(K[c|0]-91|0){case 2:if((e|0)>1){e=e-1|0;break i}c=c+1|0;J[d+12>>2]=c;J[b+4>>2]=c;break a;case 0:break j;default:break i}e=e+1|0}LL(a);fh(a,J[a+8>>2]);c=J[a>>2];if(f>>>0>c>>>0)continue;break}}J[d+12>>2]=c;break e}J[b>>2]=c;J[b+8>>2]=K[c|0]==47?4:1;LL(a);c=J[a>>2];J[d+12>>2]=c;if(!J[a+12>>2])break c}c=J[b+4>>2];break b}c=J[d+12>>2]}J[b+4>>2]=c}if(c)break a;J[b+8>>2]=0;J[b>>2]=0}J[a>>2]=J[d+12>>2]}bc=d+ -16|0}function uM(a){var b=0,c=0,d=0,e=0;b=J[a+528>>2];if(b){J[a+532>>2]=b;qc(b)}b=J[a+484>>2];if(b){J[a+488>>2]=b;qc(b)}d=J[a+472>>2];if(d){b=d;c=J[a+476>>2];if((b|0)!=(c|0)){while(1){if(H[c-5|0]<0)qc(J[c-16>>2]);b=c-32|0;if(H[c-21|0]<0)qc(J[b>>2]);c=b;if((b|0)!=(d|0))continue;break}b=J[a+472>>2]}J[a+476>>2]=d;qc(b)}a:{c=J[a+380>>2];b=J[a+376>>2];if((c|0)!=(b|0)){e=a+376|0;b=c-b>>2;d=b>>>0<=1?1:b;c=0;while(1){b=J[a+376>>2];if(J[a+380>>2]-b>>2>>>0<=c>>>0){J[695492]=0;_(1640,e|0);a=J[695492];J[695492]= -0;if((a|0)==1)break a;B()}b=J[b+(c<<2)>>2];if(b)gc[J[J[b>>2]+4>>2]](b);c=c+1|0;if((d|0)!=(c|0))continue;break}c=J[e>>2]}J[a+380>>2]=c;H[a+388|0]=0;if(c)qc(c);if(H[a+335|0]<0)qc(J[a+324>>2]);if(H[a+323|0]<0)qc(J[a+312>>2]);b=J[a+248>>2];if(b)qc(b);b=J[a+252>>2];if(b)qc(b);if(H[a+187|0]<0)qc(J[a+176>>2]);b=J[a+144>>2];if(b)qc(b);b=J[a+36>>2];if(b){J[a+40>>2]=b;qc(b)}return a}ea(0)|0;yc();B()}function iqb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[a+588>>2]>0){b=J[J[a+536>>2]+88>> -2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];while(1){c=K[e+3|0];a:{if(!c)break a;b:{if((c|0)!=255){d=K[b+3|0];if(d)break b}H[b|0]=K[e|0];H[b+1|0]=K[e+1|0];d=K[e+2|0];H[b+3|0]=c;H[b+2|0]=d;break a}if((d|0)==255){d=c^255;f=(P(c,K[e|0])+P(d,K[b|0])|0)+128|0;H[b|0]=(f>>>8&255)+f>>>8;f=(P(c,K[e+1|0])+P(d,K[b+1|0])|0)+128|0;H[b+1|0]=(f>>>8&255)+f>>>8;c=(P(c,K[e+2|0])+P(d,K[b+2|0])|0)+128|0;H[b+2|0]=(c>>>8&255)+c>>>8;break a}f=K[e|0];k=K[e+1|0];g=K[e+2|0]; -h=c^255;i=P(h,d^255)>>>8^-1;H[b+3|0]=i;l=g;g=i&255;c=(c<<8>>>0)/(g>>>0)|0;d=(P(d,h)>>>0)/(g>>>0)|0;H[b+2|0]=(P(l,c)+P(d,K[b+2|0])|0)+127>>>8;H[b+1|0]=(P(c,k)+P(d,K[b+1|0])|0)+127>>>8;H[b|0]=(P(c,f)+P(d,K[b|0])|0)+127>>>8}e=e+4|0;b=b+4|0;j=j+1|0;if((j|0)>2])continue;break}}return 0}function Npb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{b:{if(!(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0])))break b;if(K[a+300|0])break b;c:{if(!c)break c;f=d;while(1){i=f;f=f+1|0;if(K[i| -0])continue;break}g=i-d|0;if((g|0)>(c|0)){Dc(a,1043,0,0);return 1043}f=K[f|0];if((f-3&255)>>>0<=253){Dc(a,1048,0,0);return 1048}h=(c-g|0)-2|0;j=f&255;if(!((j|0)==1?(h>>>0)%6|0:0))if(!((h>>>0)%10|0)|(j|0)!=2)break c;Dc(a,1028,0,0);return 1028}d:{e:{if(!K[a+112|0])break e;b=gc[J[b+4>>2]](a,b,e)|0;if(b)break d;b=J[e>>2];c=!c;H[b+32|0]=c;if(c)break e;H[b+44|0]=f;J[b+36>>2]=g;J[b+48>>2]=(h>>>0)/(((f&255)==1?6:10)>>>0);if(g){b=gc[J[a+152>>2]](g+1|0)|0;J[J[e>>2]+40>>2]=b;b=J[J[e>>2]+40>>2];if(!b)break a; -tc(b,d,g)}if(!h)break e;b=gc[J[a+152>>2]](h)|0;J[J[e>>2]+52>>2]=b;b=J[J[e>>2]+52>>2];if(!b)break a;tc(b,i+2|0,h)}b=0}return b|0}Dc(a,1029,0,0);return 1029}Dc(a,1,0,0);return 1}function VT(a,b){var c=0,d=0,e=0,f=0;c=bc+-64|0;bc=c;a:{b:{if(K[a+13|0]&8){e=J[b>>2];f=e+2|0;if(f>>>0>M[a+616>>2]){b=J[a+628>>2];J[c+32>>2]=J[a>>2];Nc(b,79760,79823,c+32|0);break a}d=c+62|0;Ne(d,e+J[a+612>>2]|0,2);if(K[a+12|0]&128){e=K[d+1|0];H[d+1|0]=K[d|0];H[d|0]=e}d=P(L[c+62>>1],12)+f|0;if(M[a+616>>2]>>0){b=J[a+628>> -2];J[c+48>>2]=J[a>>2];Nc(b,79760,80081,c+48|0);d=0;break a}Ne(b,d+J[a+612>>2]|0,4);d=1;if(K[a+12|0]&128)break b;break a}c:{if((gc[J[a+640>>2]](J[a+628>>2],J[b>>2],0)|0)==J[b>>2])if((gc[J[a+632>>2]](J[a+628>>2],c+62|0,2)|0)==2)break c;b=J[a+628>>2];J[c+16>>2]=J[a>>2];Nc(b,79760,79823,c+16|0);break a}if(K[a+12|0]&128){e=K[c+63|0];H[c+63|0]=K[c+62|0];H[c+62|0]=e}gc[J[a+640>>2]](J[a+628>>2],P(L[c+62>>1],12),1)|0;if((gc[J[a+632>>2]](J[a+628>>2],b,4)|0)!=4){b=J[a+628>>2];J[c>>2]=J[a>>2];Nc(b,79760,80081, -c);break a}d=1;if(!(K[a+12|0]&128))break a}Yo(b)}bc=c- -64|0;return d}function Pob(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<< -8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+28|0]=c;H[d+29|0]=c>>>8;H[d+30|0]=c>>>16;H[d+31|0]=c>>>24;c=J[b+56>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+32|0]=c;H[d+33|0]=c>>>8;H[d+34|0]=c>>>16;H[d+35|0]=c>>>24;return ue(a,J[b>>2],28,d+8|0)|0}function Nba(a,b,c){a=a|0;b=b|0;c= -c|0;var d=0,e=0;d=bc-112|0;bc=d;e=J[a+584>>2];if(e){c=J[a+48>>2];if(c&4){J[d+96>>2]=J[e+196>>2];cd(b,88869,d+96|0);c=J[a+48>>2]}if(c&8){J[d+80>>2]=J[e+200>>2];cd(b,88988,d+80|0);c=J[a+48>>2]}if(c&16){Td(89078,14,1,b);if(K[e+211|0]){c=0;while(1){J[d+64>>2]=J[((c<<2)+e|0)+216>>2];cd(b,89191,d- -64|0);c=c+1|0;if(c>>>0>2]}if(c&32){Td(89242,15,1,b);if(K[e+212|0]){c=0;while(1){J[d+48>>2]=J[((c<<2)+e|0)+228>>2];cd(b,89191,d+48|0);c=c+1|0;if(c>>>0>2]}if(c&64){Td(89306,15,1,b);if(K[e+213|0]){c=0;while(1){J[d+32>>2]=J[((c<<2)+e|0)+240>>2];cd(b,89191,d+32|0);c=c+1|0;if(c>>>0>2]}if(c&128){J[d+16>>2]=K[e+204|0];cd(b,89349,d+16|0);c=J[a+48>>2]}if(c&256){J[d>>2]=L[e+300>>1];cd(b,89376,d)}bc=d+112|0;return}fa(88763,70456,582,97043);B()}function Ek(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=6;a:{if(!a|!c)break a;g=J[c>>2];if(!g)break a;i=J[g+100>>2];h=J[a>>2];b:{c:{if((h|0)<=0){if(!h)break c; -break b}e=gc[J[i+4>>2]](i,h)|0;if(!e){f=64;e=0;break b}wc(e,0,h)}f=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=f;J[e+8>>2]=J[c+8>>2];J[e+12>>2]=a;d:{a=J[a+4>>2];if(a){f=gc[a|0](e,b)|0;if(f)break d}a=J[g+36>>2];b=a+1|0;if((a|b)<0){f=6;break d}h=J[g+40>>2];e:{f:{g:{if(!b){c=0;if(!h)break g;gc[J[i+8>>2]](i,h);J[g+40>>2]=0;break e}f=10;if((a|0)>536870910)break d;h:{if(!a){c=gc[J[i+4>>2]](i,b<<2)|0;f=!c<<6;break h}b=gc[J[i+12>>2]](i,a<<2,b<<2,h)|0;c=b?b:h;f=!b<<6}if(f|!c)break f;a=(a<<2)+c|0;H[a|0]=0;H[a+1|0]= -0;H[a+2|0]=0;H[a+3|0]=0}J[g+40>>2]=c;break e}J[g+40>>2]=c;if(f)break d}a=J[g+36>>2];J[g+36>>2]=a+1;J[(a<<2)+c>>2]=e;f=0;break b}a=J[J[e>>2]+100>>2];b=J[J[e+12>>2]+8>>2];if(b)gc[b|0](e);gc[J[a+8>>2]](a,e);e=0}if(!d)break a;J[d>>2]=e}return f}function Zhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{d=J[a+28>>2];if(K[d+44|0])break b;c=d5(d,J[b>>2],J[b+4>>2]);if(!c)break b;a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=c;return}c:{c=J[d+12>>2];if((I[c+22>>1]+I[c+58>>1]|0)+3>>>0<=M[c+4>>2])break c;c=sh(c, -3,0);if(!c)break c;a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=c;return}a=J[d+20>>2];d:{e:{f:{if(!K[d+45|0]){I[a+2>>1]=L[a+2>>1]+1;break f}c=J[a+8>>2];e=J[b+8>>2];f=I[a+2>>1];g=J[a+4>>2]+(f<<3)|0;J[g+4>>2]=J[b+12>>2]>>10;J[g>>2]=e>>10;H[c+f|0]=2;e=K[d+45|0];c=J[d+20>>2];I[a+2>>1]=L[a+2>>1]+1;if(e)break e;a=c}I[a+2>>1]=L[a+2>>1]+1;break d}a=J[c+8>>2];e=J[b+16>>2];f=I[c+2>>1];g=J[c+4>>2]+(f<<3)|0;J[g+4>>2]=J[b+20>>2]>>10;J[g>>2]=e>>10;H[a+f|0]=2;e=K[d+45|0];a=J[d+20>>2];I[c+2>>1]=L[c+2>>1]+1;if(!e)break d; -c=J[a+8>>2];d=J[b+24>>2];e=I[a+2>>1];f=J[a+4>>2]+(e<<3)|0;J[f+4>>2]=J[b+28>>2]>>10;J[f>>2]=d>>10;H[c+e|0]=1}I[a+2>>1]=L[a+2>>1]+1}}function YY(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=rc(8);J[695492]=0;f=$(3184,d|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){c=J[a+4>>2];if(!K[c|0])break a;b:while(1){if(!Ec(c,776358))break a;d=c;if(!Ec(c,777234))break a;while(1){c:{e=d;d=d+1|0;a=K[e+1|0];b=a-32|0;if((1<>>0<=13:0)|(a|0)==95)break c;if(a)continue}break}b=d;a=b-c|0;d:{if((a|0)<2)break d;e:{f:{g=e-1| -0;switch(K[g|0]-66|0){case 0:case 11:break f;default:break e}}b=K[e|0]==84?g:d;a=b-c|0;if((a|0)<2)break d}e=b-2|0;if(K[e|0]==80){b=K[b-1|0]==83?e:b;a=b-c|0}if((a|0)<4)break d;a=b-4|0;if(K[a|0]!=87|K[b-3|0]!=71|K[b-2|0]!=76)break d;b=K[b-1|0]==52?a:b}if(c>>>0>>0)while(1){a=K[c|0];zd(f,((a-97&255)>>>0<26?a&223:a)<<24>>24);c=c+1|0;if((b|0)!=(c|0))continue;break}while(1){a=K[d|0];c=a-32|0;if((1<>>0<=13:0)|(a|0)==95){d=d+1|0;continue}else{c=d;if(a)continue b;break a}}}}a=Z()|0;qc(d);ba(a| -0);B()}return f}function Tea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+4>>2];c=e-J[a>>2]>>2;if(c>>>0>>0){h=bc-32|0;bc=h;a:{b:{f=b-c|0;c:{if(f>>>0<=J[a+8>>2]-e>>2>>>0){PP(a,f);break c}g=a+16|0;e=h+12|0;c=bc-16|0;bc=c;d=(J[a+4>>2]-J[a>>2]>>2)+f|0;J[c+12>>2]=d;d:{b=sP();if(d>>>0<=b>>>0){d=J[a+8>>2]-J[a>>2]>>2;if(d>>>0>>1>>>0){J[c+8>>2]=d<<1;b=bc-16|0;bc=b;bc=b+16|0;b=c+12|0;d=c+8|0;b=J[(M[d>>2]>2]?b:d)>>2]}bc=c+16|0;c=b;break d}ph(a);B()}i=J[a+4>>2]-J[a>>2]>>2;b=0;d=bc-16|0;bc= -d;J[d+12>>2]=0;J[e+12>>2]=0;J[e+16>>2]=g;if(c){rP(d+4|0,J[e+16>>2],c);b=J[d+4>>2];c=J[d+8>>2]}else c=0;J[e>>2]=b;g=(i<<2)+b|0;J[e+8>>2]=g;J[e+4>>2]=g;J[e+12>>2]=(c<<2)+b;bc=d+16|0;J[695492]=0;da(6752,e|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;oP(a,e);a=J[695492];J[695492]=0;if((a|0)==1)break b;nP(e)}bc=h+32|0;break a}a=Z()|0;nP(e);ba(a|0);B()}return}if(b>>>0>>0)pP(a,J[a>>2]+(b<<2)|0)}function hH(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=b;b=8-c|0;h=Hv(a,4<>2]= -h;f=-1<<16-c^-1;a:{if(d-95E3>>>0>1E4){k=+(d|0)*1E-5;l=+(f>>>0);d=0;while(1){e=_g(a,512);J[(d<<2)+h>>2]=e;c=0;while(1){g=e+(c<<1)|0;i=V(We(+((c<>>0)/l,k)*65535+.5);b:{if(i<4294967296&i>=0){f=~~i>>>0;break b}f=0}I[g>>1]=f;c=c+1|0;if((c|0)!=256)continue;break}d=d+1|0;if(!(d>>>b|0))continue;break}break a}d=0;if(!c)while(1){f=_g(a,512);J[(d<<2)+h>>2]=f;c=0;while(1){I[f+(c<<1)>>1]=(c<>1]=(e<>1]=(e<>1]=(e<>>b|0))continue;break a}e=1<<15-c;while(1){g=_g(a,512);J[(d<<2)+h>>2]=g;c=0;while(1){I[(c<<1)+g>>1]=(e+P((c<>>0)/(f>>>0);j=c|1;I[(j<<1)+g>>1]=(e+P((j<>>0)/(f>>>0);c=c+2|0;if((c|0)!=256)continue;break}d=d+1|0;if(!(d>>>b|0))continue;break}}}function Fza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;J[c+20>>2]=0;J[695492]=0;J[c+24>>2]=J[682146];d=$(5069,b+8|0)|0;e=J[695492];J[695492]=0;a:{b:{if((e|0)==1)break b;J[c>>2]=b;J[695492]=0;J[c+ -4>>2]=d;b=ga(5180,c+20|0,2388013,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a>>2]=0;J[a+4>>2]=J[682146];b=J[b>>2];c:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;sc(a);break a}J[c+28>>2]=0}J[695492]=0;aa(4993,a|0,c+28|0)|0;b=J[695492];J[695492]=0;d:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break d;J[695492]=0;_(4987,b|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break d}ea(0)|0;yc();B()}b=Z()|0;vc(c+28|0);sc(a);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];sc(c+20|0);bc=c+32|0;return}b=Z()|0}sc(c+20|0);ba(b|0);B()}function R1a(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=-1;f=K[b+11|0];g=f<<24>>24<0;i=g?J[b>>2]:b;h=g?J[b+4>>2]:f;b=h+1|0;f=rc(b);g=rc(b>>>0>1073741823?-1:b<<2);if(K[c|0]){J[g>>2]=0;e=0}b=K[i|0];if(!((b|0)!=92&(b|0)!=47)){H[f|0]=b;e=e+1|0;J[g+(e<<2)>>2]=1;d=1}c=0;a:{b:{if((h|0)>0){c:while(1){b= -c;while(1){d:{j=K[b+i|0];if(!((j|0)!=92&(j|0)!=47)){e:{if((b|0)<=(c|0))break e;f:{if((b-c|0)!=2)break f;c=c+i|0;if(K[c|0]!=46|K[c+1|0]!=46|(e|0)<=0)break f;e=e-1|0;d=J[g+(e<<2)>>2];break e}H[d+f|0]=47;e=e+1|0;d=d+1|0;J[g+(e<<2)>>2]=d}c=b+1|0;if((h|0)>(c|0))continue c;break d}H[d+f|0]=j;d=d+1|0;b=b+1|0;if((h|0)>(b|0))continue}break}break}H[d+f|0]=0;if(d>>>0>=2147483632)break b;if(d>>>0<=10){H[a+11|0]=d;break a}c=(d|15)+1|0;b=rc(c);J[a+8>>2]=c|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b;break a}H[d+f|0]= -0;H[a+11|0]=d;break a}Id(a);B()}k=tc(a,f,d)+d|0,l=0,H[k|0]=l;qc(f);qc(g)}function NXa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+4>>2];a:{if(!d)break a;e=a+4|0;a=e;while(1){f=op(d+16|0,b);a=f?a:d;d=J[(f?d+4|0:d)>>2];if(d)continue;break}if((a|0)==(e|0))break a;if(op(b,a+16|0))break a;a=J[a+24>>2];if(!a)break a;b=J[a+4>>2];J[c>>2]=J[a>>2];J[c+4>>2]=b;b:{if((a|0)==(c|0))break b;d=a+8|0;b=c+8|0;f=K[a+19|0];e=f<<24>>24;c:{if(H[c+19|0]>=0){if((e|0)>=0){e=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=e;J[b+ -8>>2]=J[d+8>>2];break c}yf(b,J[a+8>>2],J[a+12>>2]);break c}g=b;b=(e|0)<0;Df(g,b?J[a+8>>2]:d,b?J[a+12>>2]:f)}d=a+20|0;b=c+20|0;f=K[a+31|0];e=f<<24>>24;if(H[c+31|0]>=0){if((e|0)>=0){e=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=e;J[b+8>>2]=J[d+8>>2];break b}yf(b,J[a+20>>2],J[a+24>>2]);break b}g=b;b=(e|0)<0;Df(g,b?J[a+20>>2]:d,b?J[a+24>>2]:f)}b=J[a+36>>2];J[c+32>>2]=J[a+32>>2];J[c+36>>2]=b;H[c+48|0]=K[a+48|0];b=J[a+44>>2];J[c+40>>2]=J[a+40>>2];J[c+44>>2]=b;g=1}return g|0}function pza(a,b,c,d){a=a|0;b=b|0;c= -c|0;d=d|0;var e=0,f=0;d=bc-48|0;bc=d;a:{b:{c:{d:{if(!(c&2))break d;NU(a,b);e:{f:{g:{if(!J[a+100>>2])break g;J[d+12>>2]=0;e=d+12|0;md(e,b);if(J[a+100>>2]){J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[695492]=0;c=aa(5080,d+16|0,2401340)|0;f=J[695492];J[695492]=0;if((f|0)==1)break f;f=J[a+100>>2];J[695492]=0;ca(5259,e|0,c|0,f|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;Bd(c)}c=J[d+12>>2];J[d+12>>2]=0;if(!c)break g;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>> -2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break b;if(e)break g;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break b}if(K[a+60|0])break d;b=b+148|0;if(!(J[b>>2]&4096))break e;I[a+60>>1]=257;break d}a=Z()|0;break a}if(!(J[b>>2]&2048))break d;H[a+61|0]=1}LU(a);bc=d+48|0;return}a=Z()|0;Bd(c);break a}ea(0)|0;yc();B()}vc(d+12|0);ba(a|0);B()}function eQa(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=wc(a,0,256);d=J[b>>2]+c|0;h=K[d+2|0];e=K[d|0];f=h+e|0;g=K[d+1|0];d=(f+g<<4)- -6144|0;J[a>>2]=d;h=P(e-h|0,10033)+256>>9;J[a+4>>2]=h;J[a+8>>2]=P(f-(g<<1)|0,5793)+256>>9;e=J[b+4>>2]+c|0;f=K[e+2|0];g=K[e|0];i=f+g|0;j=K[e+1|0];e=(i+j<<4)-6144|0;J[a+32>>2]=e;f=P(g-f|0,10033)+256>>9;J[a+36>>2]=f;g=P(i-(j<<1)|0,5793)+256>>9;J[a+40>>2]=g;b=J[b+8>>2]+c|0;c=K[b+2|0];i=K[b|0];j=c+i|0;b=K[b+1|0];k=(j+b<<4)-6144|0;J[a+32>>2]=P(d-k|0,17837)+16384>>15;c=P(i-c|0,10033)+256>>9;J[a+36>>2]=P(h-c|0,17837)+16384>>15;d=d+k|0;J[a+64>>2]=P(d-(e<<1)|0,10298)+16384>>15;J[a>>2]=P(d+e|0,14564)+16384>> -15;c=c+h|0;J[a+68>>2]=P(c-(f<<1)|0,10298)+16384>>15;J[a+4>>2]=P(c+f|0,14564)+16384>>15;c=J[a+8>>2];b=P(j-(b<<1)|0,5793)+256>>9;J[a+40>>2]=P(c-b|0,17837)+16384>>15;b=b+c|0;J[a+72>>2]=P(b-(g<<1)|0,10298)+16384>>15;J[a+8>>2]=P(b+g|0,14564)+16384>>15}function zib(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;g=bc-16|0;bc=g;J[g+12>>2]=0;i=J[c>>2];d=Zd(i,24,g+12|0);e=J[g+12>>2];a:{if(e)break a;b:{e=a+4|0;if(e>>>0>b>>>0)break b;h=K[a|0];H[d+4|0]=h;f=K[a+1|0]|K[a+2|0]<<8;I[d+6>>1]=f<<8| -f>>>8;f=K[a+3|0];H[d+5|0]=f;k=J[c+148>>2];l=J[c+4>>2];j=f&1;f=(f>>>1&1)+(j?5:3)|0;J[d+8>>2]=f;J[d+12>>2]=(e+l|0)-k;if(e+P(f,h)>>>0>b>>>0)break b;if(h){c:{if(j){a=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);J[d+16>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=e+P(f,h-1|0)|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break c}J[d+16>>2]=K[a+5|0]|K[a+4|0]<<16;a=e+P(f,h-1|0)|0;a=K[a|0]<<16|K[a+1|0]}e=0;J[d>>2]=0;J[d+20>>2]=a;J[J[c+140>>2]>>2]=d;J[c+ -140>>2]=d;J[c+132>>2]=J[c+132>>2]+h;break a}if(d)gc[J[i+8>>2]](i,d);e=J[g+12>>2];break a}if(d)gc[J[i+8>>2]](i,d);e=8}bc=g+16|0;return e|0}function y3(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{c=J[a+8>>2];b:{if((c|0)!=J[a+12>>2]){e=c;break b}d=J[a+4>>2];g=J[a>>2];if(d>>>0>g>>>0){f=((d-g>>2)+1|0)/-2<<2;c=c-d|0;e=Zc(f+d|0,d,c)+c|0;J[a+8>>2]=e;J[a+4>>2]=f+J[a+4>>2];break b}f=(c|0)==(g|0)?1:c-g>>1;if(f>>>0>=1073741824)break a;e=f<<2;h=rc(e);l=h+e|0;f=(f&-4)+h|0;e=f;c:{if((c|0)==(d|0))break c; -i=c-d|0;j=i-4|0;k=(j>>>2|0)+1&7;d:{if(!k){c=f;break d}e=0;c=f;while(1){J[c>>2]=J[d>>2];d=d+4|0;c=c+4|0;e=e+1|0;if((k|0)!=(e|0))continue;break}}e=f+i|0;if(j>>>0<28)break c;while(1){J[c>>2]=J[d>>2];J[c+4>>2]=J[d+4>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=J[d+12>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=J[d+20>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=J[d+28>>2];d=d+32|0;c=c+32|0;if((e|0)!=(c|0))continue;break}}J[a+12>>2]=l;J[a+8>>2]=e;J[a+4>>2]=f;J[a>>2]=h;if(!g)break b;qc(g);e=J[a+8>>2]}J[e>>2]=J[b>>2];J[a+8>>2]= -J[a+8>>2]+4;return}Sd();B()}function hEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=bc-48|0;bc=e;g=e+36|0;J[g>>2]=0;J[g+4>>2]=0;H[g+8|0]=0;J[695492]=0;h=Qg(a);d=J[695492];J[695492]=0;a:{if((d|0)!=1){b:{c:{d:{e:{f:{while(1){g:{J[695492]=0;d=aa(4815,a|0,h|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break g;if(!d)break b;J[695492]=0;d=e+12|0;da(4802,d|0,a|0);f=J[695492];J[695492]=0;if((f|0)==1)break f;J[695492]=0;d=aa(4825,e+24|0,d|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break e;J[695492]=0;Xf(g, -d);f=J[695492];J[695492]=0;if((f|0)==1)break d;Lc(d);if(H[e+23|0]<0)qc(J[e+12>>2]);J[695492]=0;d=Fd(g,2371940);f=J[695492];J[695492]=0;if((f|0)==1)break g;if(!d)continue;J[695492]=0;ca(4942,a|0,b|0,c|0);d=J[695492];J[695492]=0;if((d|0)!=1)continue}break}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break c}a=Z()|0;Lc(d)}if(H[e+23|0]>=0)break a;qc(J[e+12>>2]);break a}Lc(g);bc=e+48|0;return}a=Z()|0}Lc(g);ba(a|0);B()}function C5a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc+-64|0;bc=e;d=e+16|0;J[d>>2]= -0;J[d+4>>2]=0;H[d+40|0]=0;J[d+32>>2]=0;J[d+36>>2]=-1074790400;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;H[d+24|0]=0;H[d+25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+28|0]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;f=J[a+12>>2];J[695492]=0;J[e+12>>2]=f;f=e+12|0;J[d+4>>2]=J[f>>2];g=J[695492];J[695492]=0;if((g|0)!=1)a:{g=J[a+16>>2];J[695492]=0;J[e+12>>2]=g;J[d+8>>2]=J[f>>2];g=J[695492];J[695492]=0;if((g|0)==1)break a;g=J[a+20>>2];J[695492]=0;J[e+12>>2]=g;J[d+12>>2]=J[f>>2];f=J[695492];J[695492]=0;if((f|0)== -1)break a;a=J[a+24>>2];J[695492]=0;J[d+16>>2]=a;a=J[695492];J[695492]=0;if((a|0)==1)break a;J[695492]=0;a=ga(2395,d|0,b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;J[d+16>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break a;Ng(d);bc=e- -64|0;return a|0}a=Z()|0;Ng(d);ba(a|0);B()}function wCa(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;d=bc-32|0;bc=d;a:{b:{g=J[a+16>>2];if(g){h=a+8|0;while(1){J[d+20>>2]=h;a=g;J[d+16>>2]=a;g=J[a>>2];e=0;f=J[a+8>>2];if(f){J[f+4>>2]=J[f+4>>2]+ -1;e=J[a+8>>2]}J[d+12>>2]=e;c:{d:{if(J[e+44>>2]!=J[b>>2]){J[d+12>>2]=0;break d}a=J[e+60>>2];e:{if(!a)break e;f=e+52|0;i=J[c>>2];while(1){if(J[a+8>>2]!=(i|0)){a=J[a>>2];if(a)continue;break e}break}J[d+28>>2]=f;J[d+24>>2]=a;J[695492]=0;da(5065,f|0,d+24|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}if(!J[e+56>>2]){J[695492]=0;da(5065,h|0,d+16|0);a=J[695492];J[695492]=0;if((a|0)==1)break b}e=J[d+12>>2];J[d+12>>2]=0;if(!e)break c}J[695492]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;f=J[695492];J[695492]=0;if((f|0)== -1)break a;if(a)break c;J[695492]=0;_(4987,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}if(g)continue;break}}bc=d+32|0;return}a=Z()|0;vc(d+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function hi(a,b,c,d,e,f,g,h){var i=0,j=0,k=0;i=J[d>>2];a:{b:{c:{d:{if(!f)break d;k=J[f>>2];if(!k)break d;if((c|0)<=0){j=c;break b}if(e>>>0>i>>>0)break c;j=c;break b}if((c|0)<=0){j=c;break a}if(e>>>0<=i>>>0){j=c;break a}while(1){H[i|0]=K[b|0];j=c-1|0;i=i+1|0;b=b+1|0;if(c>>>0<2)break a;c=j;if(e>>>0>i>>>0)continue;break}break a}while(1){H[i| -0]=K[b|0];J[k>>2]=g;j=c-1|0;k=k+4|0;i=i+1|0;b=b+1|0;if(c>>>0<2)break b;c=j;if(e>>>0>i>>>0)continue;break}}J[f>>2]=k}J[d>>2]=i;if((j|0)>0){e:{if(!a)break e;H[a+63|0]=j;i=a+76|0;a=j&7;f:{if(!a){c=j;break f}k=0;c=j;while(1){H[i|0]=K[b|0];c=c-1|0;i=i+1|0;b=b+1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}}if(j>>>0<8)break e;while(1){H[i|0]=K[b|0];H[i+1|0]=K[b+1|0];H[i+2|0]=K[b+2|0];H[i+3|0]=K[b+3|0];H[i+4|0]=K[b+4|0];H[i+5|0]=K[b+5|0];H[i+6|0]=K[b+6|0];H[i+7|0]=K[b+7|0];i=i+8|0;b=b+8|0;a=c-9|0;c=c-8|0;if(a>>> -0<4294967294)continue;break}}J[h>>2]=15}}function Qr(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=J[a+16>>2];a:{b:{if((b|0)<0){b=d;if((d|0)>=0)break b;break a}if((b|0)>(d|0))break a}e=J[a+20>>2];c:{if((e|0)>(d|0))break c;f=e+128|0;d=f<<2;g=J[a+24>>2];d:{if(!g){d=zc(d);break d}d=Kh(g,d)}if(!d)return-1;J[a+20>>2]=f;J[a+24>>2]=d;d=J[a+16>>2];if((f|0)<=(d|0))break c;e=e-d|0;g=e+127|0;h=e&3;if(h){e=0;while(1){J[J[a+24>>2]+(d<<2)>>2]=0;d=d+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}if(g>>>0<3)break c;while(1){e=d<< -2;J[e+J[a+24>>2]>>2]=0;J[(e+J[a+24>>2]|0)+4>>2]=0;J[(e+J[a+24>>2]|0)+8>>2]=0;J[(e+J[a+24>>2]|0)+12>>2]=0;d=d+4|0;if((f|0)!=(d|0))continue;break}}c=lO(J[c>>2],J[c+4>>2],J[c+8>>2],J[c+12>>2],J[c+16>>2],J[c+20>>2],J[c+24>>2],J[c+28>>2]!=0,1);if(!c)return-1;d=J[a+16>>2];if((d|0)>(b|0)){f=J[a+24>>2]+(b<<2)|0;Zc(f+4|0,f,d-b<<2);d=J[a+16>>2]}J[J[a+24>>2]+(b<<2)>>2]=c;J[a+16>>2]=d+1;Au(a);return 0}fa(200152,198798,663,206481);B()}function AFa(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;f= -J[b>>2];g=K[a+11|0];k=g<<24>>24;d=(k|0)<0;e=K[b+11|0];j=e<<24>>24;h=(j|0)<0;i=d?J[a+4>>2]:g;e=h?J[b+4>>2]:e;l=i>>>0>>0;a:{g=l?i:e;if(g>>>0<=1){f=(j|0)<0?f:b;break a}f=h?f:b;d=d?J[a>>2]:a;b:{while(1){b=c<<2;if(J[b+d>>2]!=J[b+f>>2])break b;c=c+1|0;if((g|0)!=(c|0))continue;break}c=g}if(!c)break a;h=0;c:{if(c>>>0>=i>>>0){b=c;break c}b=c;while(1){j=J[d+(b<<2)>>2];if(j-58>>>0<4294967286)break c;h=(j+P(h,10)|0)-48|0;b=b+1|0;if((i|0)!=(b|0))continue;break}break a}if((b|0)==(i|0)|J[d+(b<<2)>>2]!=93)break a; -b=0;d:{if(c>>>0>=e>>>0)break d;while(1){d=J[(c<<2)+f>>2];if(d-58>>>0<4294967286)break d;b=(d+P(b,10)|0)-48|0;c=c+1|0;if((e|0)!=(c|0))continue;break}break a}if((c|0)==(e|0)|J[(c<<2)+f>>2]!=93)break a;return(b|0)>(h|0)|0}e:{if(g){c=gd((k|0)<0?J[a>>2]:a,f,g);if(c)break e}c=l?-1:e>>>0>>0}return c>>>31|0}function iF(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{if((b|0)==8){b=zc(c);break b}e=28;if(b&3|b>>>0<4)break a;d=b>>>2|0;if(d&d-1)break a;e=48;if(-64-b>>>0>>0)break a;d=16;b=b>>>0<=16?16:b;e=b>>>0<=16? -16:b;c:{if(!(e-1&e)){b=e;break c}while(1){b=d;d=b<<1;if(b>>>0>>0)continue;break}}d:{if(-64-b>>>0<=c>>>0){J[694731]=48;c=0;break d}e=c>>>0<11?16:c+11&-8;d=zc((e+b|0)+12|0);c=0;if(!d)break d;c=d-8|0;e:{if(!(d&b-1)){b=c;break e}g=d-4|0;h=J[g>>2];f=b;b=((b+d|0)-1&0-b)-8|0;b=(b-c>>>0<=15?f:0)+b|0;d=b-c|0;f=(h&-8)-d|0;if(!(h&3)){c=J[c>>2];J[b+4>>2]=f;J[b>>2]=c+d;break e}J[b+4>>2]=f|J[b+4>>2]&1|2;f=b+f|0;J[f+4>>2]=J[f+4>>2]|1;J[g>>2]=d|J[g>>2]&1|2;f=c+d|0;J[f+4>>2]=J[f+4>>2]|1;Hy(c,d)}c=J[b+4>>2];f:{if(!(c& -3))break f;d=c&-8;if(d>>>0<=e+16>>>0)break f;J[b+4>>2]=e|c&1|2;c=b+e|0;e=d-e|0;J[c+4>>2]=e|3;d=b+d|0;J[d+4>>2]=J[d+4>>2]|1;Hy(c,e)}c=b+8|0}b=c}if(!b)return 48;J[a>>2]=b;e=0}return e}function iwa(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;J[a+20>>2]=0;J[a>>2]=2407140;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;I[a+16>>1]=0;J[695492]=0;g=ha(5043,a+28|0,a+24|0,0,1)|0;e=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((e|0)!=1){J[695492]=0;e=ha(5043,a+40|0,a+36|0,0,1)|0;f=J[695492];J[695492]=0;if((f| -0)==1)break h;J[695492]=0;f=ha(5043,a+52|0,a+48|0,0,4)|0;h=J[695492];J[695492]=0;if((h|0)==1)break e;J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[695492]=0;ia(5435,a|0,b|0,c|0,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;na(ea(0)|0)|0;J[695492]=0;_(5436,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;ka(5087);b=J[695492];J[695492]=0;if((b|0)==1)break g;B()}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)==1)break a;vc(a+68|0);_c(f);break d}return a| -0}b=Z()|0}_c(e)}_c(g)}ed(a);ba(b|0);B()}ea(0)|0;yc();B()}function g8(a){var b=0,c=0,d=0,e=0;d=bc-16|0;bc=d;b=L[a+1016>>1];a:{b:{if(!b){c=J[a+528>>2];if(K[a+1018|0])H[c+31|0]=!K[a+1019|0];if(K[a+1022|0]){J[c+36>>2]=J[a+1024>>2];J[c+40>>2]=J[a+1028>>2]}b=0;e=K[a+1032|0];if(!e)break b;H[c+44|0]=e;J[c+48>>2]=J[a+1036>>2];J[c+52>>2]=J[a+1040>>2];J[c+56>>2]=J[a+1044>>2];J[c+60>>2]=J[a+1048>>2];break b}b=$g(a,b);J[d+12>>2]=b;if(!b){b=H8(a,L[a+1016>>1],K[a+1021|0]==1,!K[a+1019|0],0,J[a+1024>>2],J[a+1028>> -2],H[a+1032|0],J[a+1036>>2],J[a+1040>>2],J[a+1044>>2],J[a+1048>>2],d+12|0);if(b)break a;b=J[d+12>>2];break b}if(K[a+1018|0])H[b+31|0]=!K[a+1019|0];H[b+32|0]=0;if(K[a+1022|0]){J[b+36>>2]=J[a+1024>>2];J[b+40>>2]=J[a+1028>>2]}c=K[a+1032|0];if(c){H[b+44|0]=c;J[b+48>>2]=J[a+1036>>2];J[b+52>>2]=J[a+1040>>2];J[b+56>>2]=J[a+1044>>2];J[b+60>>2]=J[a+1048>>2]}if(!K[a+1020|0])break b;H[J[b+88>>2]+33|0]=K[a+1021|0]==1}J[a+512>>2]=b;b=0}bc=d+16|0;return b}function UV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h= -0,i=0;a:{b:{c:{d=J[a+4>>2];h=J[a>>2];e=(d-h|0)/12|0;c=e+1|0;if(c>>>0<357913942){g=(J[a+8>>2]-h|0)/12|0;f=g<<1;c=g>>>0>=178956970?357913941:c>>>0>>0?f:c;if(c>>>0>=357913942)break c;f=P(e,12);e=P(c,12);g=rc(e);c=f+g|0;J[c+4>>2]=J[b+4>>2];f=K[b+8|0];H[c+8|0]=f;b=J[b>>2];J[c>>2]=b;if(!(!f|!b))J[b+4>>2]=J[b+4>>2]+1;g=e+g|0;f=c+12|0;if((d|0)==(h|0))break b;b=d;while(1){c=c-12|0;b=b-12|0;J[c+4>>2]=J[b+4>>2];i=K[b+8|0];H[c+8|0]=i;e=J[b>>2];J[c>>2]=e;if(!(!i|!e))J[e+4>>2]=J[e+4>>2]+1;if((b|0)!=(h|0))continue; -break}J[a+8>>2]=g;J[a+4>>2]=f;J[a>>2]=c;if((d|0)==(h|0))break a;while(1){d=d-12|0;b=d;d:{if(!K[b+8|0])break d;a=J[b>>2];if(!a)break d;c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(c)break d;qc(a)}J[d>>2]=0;J[d+4>>2]=0;H[b+8|0]=0;if((d|0)!=(h|0))continue;break}d=h;break a}ph(a);B()}Sd();B()}J[a+8>>2]=g;J[a+4>>2]=f;J[a>>2]=c}if(d)qc(d)}function Lq(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{e=J[a>>2];b=J[e+8>>2];if((b|0)>0)while(1){k=J[J[e>>2]+(j<<2)>>2];if(k){f=0;g=J[k>>2];b=J[g+8>>2];if((b|0)>0)while(1){d= -J[J[g>>2]+(f<<2)>>2];if(d){h=0;i=J[d>>2];c=J[i+8>>2];if((c|0)>0)while(1){b=J[J[i>>2]+(h<<2)>>2];if(b){c=J[b+32>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[b+40>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[b+36>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(b);c=J[i+8>>2]}h=h+1|0;if((h|0)<(c|0))continue;break}qc(dd(i));b=J[d+48>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[d+52>>2];J[695492]=0;Gc(b);b= -J[695492];J[695492]=0;if((b|0)==1)break a;qc(d);b=J[g+8>>2]}f=f+1|0;if((f|0)<(b|0))continue;break}qc(dd(g));qc(k);b=J[e+8>>2]}j=j+1|0;if((j|0)<(b|0))continue;break}qc(dd(e));return a}ea(0)|0;yc();B()}function Qi(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!a)break a;b:switch(K[a|0]-97|0){case 11:b=2774;if((a|0)==2774)return 2637816;c=108;while(1){if(c){d=K[b+1|0];c=K[a+1|0];b=b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break a}break}return 2637816;case 6:b=2988;if((a|0)==2988)return 2637892;c=103;while(1){if(c){d= -K[b+1|0];c=K[a+1|0];b=b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break a}break}return 2637892;case 0:b=5817;if((a|0)==5817)return 2637968;c=97;d=a;c:{while(1){if(c){e=K[b+1|0];c=K[d+1|0];b=b+1|0;d=d+1|0;if((c|0)==(e|0))continue;break c}break}return 2637968}b=4040;if((a|0)==4040)return 2638044;while(1){d=K[a|0];if((d|0)!=K[b|0])break a;b=b+1|0;a=a+1|0;if(d)continue;break}return 2638044;case 16:break b;default:break a}b=2292;d:{if((a|0)==2292)break d;c=113;while(1){if(!c)break d;d=K[b+1|0];c=K[a+1|0];b= -b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break}break a}f=2638120}return f}function xc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=bc-48|0;bc=f;a:{b:{c:{if(J[689610])break c;e=J[689612];if(!e)break c;if(J[e+408>>2])break b}J[f+44>>2]=d;e=rc(8);J[e>>2]=0;J[e+4>>2]=0;J[695492]=0;da(3367,e|0,0);g=J[695492];J[695492]=0;d:{if((g|0)!=1){H[J[e+4>>2]]=0;c=HI(e,c,d);break d}a=Z()|0;qc(e);ba(a|0);B()}d=rc(8);J[695492]=0;e=$(3184,d|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(J[c>>2]>0){d=0;while(1){g= -K[J[c+4>>2]+d|0];e:{if((g-32&255)>>>0<=94){zd(e,g<<24>>24);break e}J[f+32>>2]=g;Xc(e,784017,f+32|0)}d=d+1|0;if((d|0)>2])continue;break}}d=J[689610];f:{if(d){gc[d|0](J[689611],a,b,J[e+4>>2]);break f}Ji(J[651372]);d=J[(a<<2)+2693648>>2];a=J[651370];g=J[e+4>>2];g:{if((b|0)>=0){J[f+8>>2]=g;J[f+4>>2]=b;J[f>>2]=d;cd(a,785060,f);break g}J[f+20>>2]=g;J[f+16>>2]=d;cd(a,785862,f+16|0)}Ji(a)}qc(Rc(c));qc(Rc(e))}bc=f+48|0;return}a=Z()|0;qc(d);ba(a|0);B()}function wFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0, -f=0,g=0;e=bc-32|0;bc=e;a=e+20|0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;J[695492]=0;ia(4847,a|0,b|0,1,-1);b=J[695492];J[695492]=0;a:{b:{if((b|0)==1)break b;J[695492]=0;d=J[a+4>>2];b=J[695492];J[695492]=0;if((b|0)==1)break b;c:{d:{e:{f=!d;if(!f){J[695492]=0;d=J[a+4>>2];b=J[695492];J[695492]=0;if((b|0)==1)break b;f:{if(!d)break f;J[695492]=0;J[e+8>>2]=0;d=e+8|0;b=J[a>>2];if(K[a+8|0])b=J[b>>2];g=J[(J[d>>2]<<2)+b>>2];b=J[695492];J[695492]=0;if((b|0)==1)break e;if((g|0)!=123)break f;J[695492]=0;J[d>>2]=0;J[d+ -4>>2]=0;H[d+8|0]=0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;ia(4850,c|0,a|0,a|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;Lc(d)}J[695492]=0;da(4851,c|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}Lc(a);bc=e+32|0;return!f|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;Lc(d);break a}b=Z()|0}Lc(a);ba(b|0);B()}function UL(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=bc-32|0;bc=h;a:{if(!b){b=6;break a}i=J[a>>2];g=gc[J[i+4>>2]](i,40)|0;if(!g){gc[J[i+8>>2]](i,b);b=64;break a}H[g+20|0]=0;H[g+ -21|0]=0;H[g+22|0]=0;H[g+23|0]=0;H[g+24|0]=0;H[g+25|0]=0;H[g+26|0]=0;H[g+27|0]=0;H[g+12|0]=0;H[g+13|0]=0;H[g+14|0]=0;H[g+15|0]=0;H[g+16|0]=0;H[g+17|0]=0;H[g+18|0]=0;H[g+19|0]=0;J[g+8>>2]=0;J[g+4>>2]=c;J[g>>2]=b;H[g+36|0]=0;H[g+37|0]=0;H[g+38|0]=0;H[g+39|0]=0;H[g+28|0]=0;H[g+29|0]=0;H[g+30|0]=0;H[g+31|0]=0;H[g+32|0]=0;H[g+33|0]=0;H[g+34|0]=0;H[g+35|0]=0;J[g+24>>2]=1656;J[h+16>>2]=g;J[h>>2]=2;if(e){J[h>>2]=10;c=J[a+16>>2];b:{if((c|0)<=0){c=0;break b}b=a+20|0;j=b+(c<<2)|0;while(1){c=J[b>>2];if(!Ec(J[J[c>> -2]+8>>2],e))break b;b=b+4|0;if(j>>>0>b>>>0)continue;break}c=0}J[h+20>>2]=c}b=c6(a,h,d,f,0);if(!b){a=J[f>>2];J[a+8>>2]=J[a+8>>2]&-1025;b=0;break a}a=J[g+24>>2];if(a)gc[a|0](g);gc[J[i+8>>2]](i,g)}bc=h+32|0;return b}function OV(a,b,c){var d=0,e=0,f=0;d=bc-16|0;bc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Yc(a,66455);Ld(a,c);break a}f=e&2;e=K[a+401|0];if(!(f|(e|0)!=3)){Yc(a,66479);Ld(a,c);break a}if(!(!b|!(K[b+8|0]&32))){Yc(a,66504);Ld(a,c);break a}if((((e|0)==3?1:e&2?6:2)|0)!=(c|0)){Yc(a,66525);Ld(a,c);break a}e= -d+10|0;qg(a,e,c);pe(a,e,c);if(Ld(a,0))break a;e=K[a+401|0];b:{if((e|0)==3){c=K[d+10|0];H[d|0]=c;c:{d:{if(!b)break d;e=L[b+20>>1];if(!e)break d;if(c>>>0>=e>>>0){Yc(a,66553);break a}c=J[a+388>>2]+P(c,3)|0;I[d+2>>1]=K[c|0];I[d+4>>1]=K[c+1|0];I[d+6>>1]=K[c+2|0];break c}I[d+6>>1]=0;I[d+2>>1]=0;I[d+4>>1]=0}I[d+8>>1]=0;break b}H[d|0]=0;c=K[d+10|0]|K[d+11|0]<<8;c=c<<8|c>>>8;if(!(e&2)){I[d+6>>1]=c;I[d+8>>1]=c;I[d+4>>1]=c;I[d+2>>1]=c;break b}I[d+2>>1]=c;I[d+8>>1]=0;c=K[d+12|0]|K[d+13|0]<<8;I[d+4>>1]=c<<8|c>>> -8;c=K[d+14|0]|K[d+15|0]<<8;I[d+6>>1]=c<<8|c>>>8}HG(a,b,d)}bc=d+16|0;return}Ad(a,66430);B()}function oG(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;i=bc-32|0;bc=i;a:{b:{if(!((J[b>>2]|J[b+4>>2])<0|J[b+8>>2]>J[a+32>>2]))if(J[b+12>>2]<=J[a+36>>2])break b;a=Kc(i+8|0,2375966,2373803,267,2413474,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}if(!J[a+40>>2])LT(a,0,0);e=J[a+52>>2];if(!e){MT(a,0,0);e=J[a+52>>2]}f=J[(J[b>>2]<<2)+e>>2]>>4;J[c>>2]=f;h=J[a+40>>2];g=J[h+ -(J[b+4>>2]<<2)>>2]>>4;J[c+4>>2]=g;e=J[((J[b+8>>2]<<2)+e|0)-4>>2]+15>>4;J[c+8>>2]=e;h=J[(h+(J[b+12>>2]<<2)|0)-4>>2];f=(f|0)>0?f:0;J[c>>2]=f;b=J[a+24>>2];g=(g|0)>0?g:0;J[c+4>>2]=g;e=e+1|0;b=(b|0)>(e|0)?e:b;J[c+8>>2]=b;j=c;c=(h+15>>4)+1|0;e=J[a+28>>2];c=(c|0)<(e|0)?c:e;J[j+12>>2]=c;e=J[a+16>>2];f=f<>2]=(f|0)>0?f:0;b=b<>2];J[d+8>>2]=(b|0)<(e|0)?b:e;b=J[a+20>>2];e=g<>2]=(e|0)>0?e:0;b=c<>2];J[d+12>>2]=(a|0)>(b|0)?b:a;bc=i+32|0;return}B()}function Mqb(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;var h=0,i=0,j=0;a:{if(f){if(((c+1|0)/2|0)<=(b|0)){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+1|0]=b;b=K[e+2|0];h=K[f+2|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+2|0]=b;H[g+3|0]=K[f+3|0];g=g+4|0;f=f+4|0;e=e+4|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){b= -K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+1|0]=b;b=K[e+2|0];h=K[f+2|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+2|0]=b;H[g+3|0]=K[e+3|0];g=g+4|0;e=e+4|0;f=f+4|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}tc(g,e,d<<2)}return 0}function YSa(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;j=J[a+372>>2];d=J[a+420>>2];e=J[a+24>>2];J[d+112>>2]=J[e>>2];J[d+116>>2]=J[e+4>> -2];if(!(J[d+36>>2]|!J[a+236>>2]))YA(d,J[d+40>>2]);if(J[a+316>>2]>0)while(1){e=h<<2;c=J[(e+a|0)+320>>2]<<2;k=J[(c+a|0)+292>>2];g=d+c|0;c=J[g+20>>2];f=I[J[b+e>>2]>>1]>>j;J[g+20>>2]=f;i=f-c|0;g=i>>31;e=0;a:{if((c|0)==(f|0))break a;f=(g^i)-g|0;while(1){c=e;e=c+1|0;l=f>>>0>1;f=f>>>1|0;if(l)continue;break}if(c>>>0<11)break a;c=J[a>>2];J[c+20>>2]=6;gc[J[c>>2]](a)}c=J[k+20>>2];b:{if(J[d+108>>2]){c=J[((c<<2)+d|0)+76>>2]+(e<<2)|0;J[c>>2]=J[c>>2]+1;break b}c=J[((c<<2)+d|0)+44>>2];Qq(d,J[c+(e<<2)>>2],H[(c+e| -0)+1024|0])}if(e)Qq(d,g+i|0,e);h=h+1|0;if((h|0)>2])continue;break}b=J[a+24>>2];J[b>>2]=J[d+112>>2];J[b+4>>2]=J[d+116>>2];a=J[a+236>>2];if(a){b=J[d+36>>2];if(b)a=b;else J[d+40>>2]=J[d+40>>2]+1&7;J[d+36>>2]=a-1}return 1}function Ula(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;d=bc-32|0;bc=d;J[a>>2]=2429916;J[a+4>>2]=0;J[a+8>>2]=0;J[d+24>>2]=J[b>>2];b=J[b+4>>2];J[d+28>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;a:{b:{c:{b=Ve(c);if(b>>>0>=1073741808){J[695492]=0;_(2793,d+12|0);a=J[695492];J[695492]= -0;if((a|0)==1)break c;break a}d:{if(b>>>0<=1){H[d+23|0]=b;e=d+12|0;break d}e=b|3;if(e>>>0>=1073741823){J[695492]=0;ka(209);a=J[695492];J[695492]=0;if((a|0)!=1)break a;break c}J[695492]=0;f=e+1|0;e=$(4,f<<2)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[d+12>>2]=e;J[d+16>>2]=b;J[d+20>>2]=f|-2147483648}b=b<<2;h=tc(e,c,b)+b|0,i=0,J[h>>2]=i;J[695492]=0;b=J[d+28>>2];J[d>>2]=J[d+24>>2];J[d+4>>2]=b;ga(6325,a+16|0,d|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[d+23|0]<0)qc(J[d+12>>2]);bc=d+32| -0;return a|0}b=Z()|0;if(H[d+23|0]>=0)break b;qc(J[d+12>>2]);break b}b=Z()|0;Ie(d+24|0)}ba(b|0);B()}B()}function aga(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;g=bc-16|0;bc=g;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;h=c-b>>2;a:{if(!h)break a;b:{if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(f>>>0<=b>>>0){if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(K[a+11|0]>>>7|0)i=J[a+4>>2];else i=K[a+11|0]&127;f=f+(i<<2)>>>0>=b>>>0}else f=0;if(!f){if(d-e>>> -0>>0)iy(a,d,(e-d|0)+h|0,e,e,0);if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;d=d+(e<<2)|0;while(1){if((b|0)==(c|0))break b;J[d>>2]=J[b>>2];b=b+4|0;d=d+4|0;continue}}e=bc-16|0;bc=e;d=g+4|0;rQ(d,b,c);bc=e+16|0;b=d;c:{if(K[b+11|0]>>>7|0){c=J[b>>2];break c}c=b}if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[695492]=0;ga(2794,a|0,c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){Ze(b);break a}a=Z()|0;Ze(b);ba(a|0);B()}J[g+4>>2]=0;J[d>>2]=J[g+4>>2];Nk(a,e+h|0)}bc=g+16|0;return a|0}function _La(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;var h=0;J[a>>2]=2331660;J[a+4>>2]=b;a:{b:{if((c|0)!=1){b=rc(44);J[b+40>>2]=0;J[b+32>>2]=0;J[b+16>>2]=f;J[b+12>>2]=e;J[b+8>>2]=d;J[b+4>>2]=c;J[b>>2]=a;c=P(d,e);J[b+20>>2]=c;h=P(e,f)+7>>3;J[b+24>>2]=h;h=h+(P(c,f)+7>>3)|0;J[b+28>>2]=h;c:{d:{if((d|0)<=0|(e|0)<=0|(f-17>>>0<4294967280|e>>>0>32))break d;if(2147483647/(e>>>0)>>>0<=d>>>0|(c|0)>=(2147483640/(f>>>0)|0))break d;J[695492]=0;c=$(3441,h|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;J[b+32>>2]=c; -wc(c,0,J[b+28>>2]);J[b+40>>2]=1;J[b+36>>2]=J[b+28>>2];J[a+8>>2]=b;break b}J[a+8>>2]=b;J[695492]=0;Gc(0);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(b);J[a+8>>2]=0;break b}a=Z()|0;qc(b);ba(a|0);B()}J[a+8>>2]=0}J[a+53316>>2]=1;J[a+53308>>2]=0;J[a+53312>>2]=0;J[a+49192>>2]=258;J[a+49196>>2]=9;J[a+24>>2]=0;J[a+16>>2]=0;J[a+12>>2]=g;return a|0}ea(0)|0;yc();B()}function PMa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=bc-16|0;bc=f;J[a+64>>2]=13;J[a+48>>2]=13;J[a+32>>2]=13;J[a+ -16>>2]=13;J[f>>2]=13;J[a+92>>2]=d;J[a+88>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=e;a:{if(J[Bc(c,777161,f,0)>>2]==3){d=rc(12);J[695492]=0;e=aa(3187,d|0,J[f+8>>2])|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[a+4>>2]=e}g=a- -64|0;h=a+48|0;i=a+32|0;j=a+16|0;uc(f);b:{c:{if(J[Bc(c,777968,f,0)>>2]!=5){e=rc(12);J[695492]=0;d=aa(3451,e|0,f|0)|0;k=J[695492];J[695492]=0;d:{if((k|0)!=1){if(!(gc[J[J[d>>2]+8>>2]](d)|0)){gc[J[J[d>>2]+4>>2]](d);d=0}break d}a=Z()|0;qc(e);ba(a|0);B()}break c}uc(f);if(J[Bc(c,780012, -f,0)>>2]==5)break b;d=UH(f,0)}J[a+8>>2]=d}uc(f);Ef(b,j);Ce(c,774505,i);Ce(c,775682,h);Ce(c,780341,g);J[a+80>>2]=0;if(!(J[Bc(c,781404,f,0)>>2]!=1|J[f+8>>2]<=0))J[a+80>>2]=1;uc(f);J[a+84>>2]=-1;bc=f+16|0;return a|0}a=Z()|0;qc(d);ba(a|0);B()}function Lob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=L[b+52>>1];d=K[b+40|0];e=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[e+8|0]=c;H[e+9|0]=c>>>8;H[e+10|0]=c>>>16;H[e+11|0]=c>>>24;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24); -H[e+12|0]=c;H[e+13|0]=c>>>8;H[e+14|0]=c>>>16;H[e+15|0]=c>>>24;H[e+16|0]=K[b+40|0];H[e+17|0]=K[b+41|0];H[e+18|0]=K[b+42|0];H[e+19|0]=K[b+43|0];H[e+20|0]=K[b+44|0];c=d>>>0<9?255:-1;g=e+8|0;a:{b:{d=L[b+46>>1];if(d|L[b+48>>1]|(L[b+50>>1]|(c&65535)!=(f|0)))break b;if(K[b+54|0])break b;d=13;break a}d=d<<8|d>>>8;H[e+21|0]=d;H[e+22|0]=d>>>8;d=L[b+48>>1];d=d<<8|d>>>8;H[e+23|0]=d;H[e+24|0]=d>>>8;d=L[b+50>>1];d=d<<8|d>>>8;H[e+25|0]=d;H[e+26|0]=d>>>8;d=19;if(!(K[b+54|0]|(c&65535)!=(f|0)))break a;c=L[b+52>>1]; -c=c<<8|c>>>8;H[e+27|0]=c;H[e+28|0]=c>>>8;f=K[b+54|0];d=21;if(!f)break a;H[e+29|0]=f;d=22}c=d;return ue(a,J[b>>2],c,g)|0}function KOa(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;g=bc-128|0;bc=g;i=J[a+12>>2];a:{if(i){j=J[a+16>>2];if((j|0)<=0)break a;k=K[b|0];if(j>>>0>=4){m=j&-4;b=a+148|0;while(1){e=f<<2;h=k<<2;J[e+g>>2]=J[h+J[b+e>>2]>>2];l=e|4;J[l+g>>2]=J[h+J[b+l>>2]>>2];l=e|8;J[l+g>>2]=J[h+J[b+l>>2]>>2];e=e|12;J[e+g>>2]=J[h+J[b+e>>2]>>2];f=f+4|0;n=n+4|0;if((m|0)!= -(n|0))continue;break}}b=j&3;if(!b)break a;while(1){e=f<<2;J[e+g>>2]=J[J[(a+e|0)+148>>2]+(k<<2)>>2];f=f+1|0;o=o+1|0;if((b|0)!=(o|0))continue;break}break a}e=J[a+8>>2];b:{if((e|0)<=0)break b;if((e|0)!=1){j=e&-2;i=a+20|0;while(1){h=f<<2;J[h+g>>2]=J[J[h+i>>2]+(K[b+f|0]<<2)>>2];h=f|1;k=h<<2;J[k+g>>2]=J[J[i+k>>2]+(K[b+h|0]<<2)>>2];f=f+2|0;m=m+2|0;if((j|0)!=(m|0))continue;break}}if(!(e&1))break b;e=f<<2;J[e+g>>2]=J[J[(a+e|0)+20>>2]+(K[b+f|0]<<2)>>2]}i=J[a>>2]}gc[J[J[i>>2]+16>>2]](i,g,c,d);bc=g+128|0}function jUa(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;a:{b:{e=J[b+4>>2];c:{if(!e){f=b+4|0;c=f;break c}f=K[c+11|0];g=f<<24>>24>=0;i=g?c:J[c>>2];g=g?f:J[c+4>>2];while(1){c=e;e=K[e+27|0];f=e<<24>>24<0;e=f?J[c+20>>2]:e;j=e>>>0>>0;d:{e:{f:{g:{h=j?e:g;h:{if(h){f=f?J[c+16>>2]:c+16|0;k=Wc(i,f,h);if(!k){if(e>>>0>g>>>0)break h;break g}if((k|0)>=0)break g;break h}if(e>>>0<=g>>>0)break f}f=c;e=J[c>>2];if(e)continue;break c}e=Wc(f,i,h);if(e)break e}if(j)break d;break b}if((e|0)>=0)break b}e=J[c+4>> -2];if(e)continue;break}f=c+4|0}e=rc(36);J[e+24>>2]=J[d+8>>2];g=J[d+4>>2];J[e+16>>2]=J[d>>2];J[e+20>>2]=g;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;g=J[d+12>>2];d=J[d+16>>2];J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=c;J[e+28>>2]=g;J[e+32>>2]=d;J[f>>2]=e;c=e;d=J[J[b>>2]>>2];if(d){J[b>>2]=d;c=J[f>>2]}Ic(J[b+4>>2],c);J[b+8>>2]=J[b+8>>2]+1;b=1;break a}e=c;b=0}H[a+4|0]=b;J[a>>2]=e}function dZ(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;g=bc-128|0;bc=g;i=J[a+12>>2];a:{if(i){j=J[a+16>> -2];if((j|0)<=0)break a;k=K[b|0];if(j>>>0>=4){m=j&-4;b=a+148|0;while(1){e=f<<2;h=k<<2;J[e+g>>2]=J[h+J[b+e>>2]>>2];l=e|4;J[l+g>>2]=J[h+J[b+l>>2]>>2];l=e|8;J[l+g>>2]=J[h+J[b+l>>2]>>2];e=e|12;J[e+g>>2]=J[h+J[b+e>>2]>>2];f=f+4|0;n=n+4|0;if((m|0)!=(n|0))continue;break}}b=j&3;if(!b)break a;while(1){e=f<<2;J[e+g>>2]=J[J[(a+e|0)+148>>2]+(k<<2)>>2];f=f+1|0;o=o+1|0;if((b|0)!=(o|0))continue;break}break a}e=J[a+8>>2];b:{if((e|0)<=0)break b;if((e|0)!=1){j=e&-2;i=a+20|0;while(1){h=f<<2;J[h+g>>2]=J[J[h+i>>2]+(K[b+ -f|0]<<2)>>2];h=f|1;k=h<<2;J[k+g>>2]=J[J[i+k>>2]+(K[b+h|0]<<2)>>2];f=f+2|0;m=m+2|0;if((j|0)!=(m|0))continue;break}}if(!(e&1))break b;e=f<<2;J[e+g>>2]=J[J[(a+e|0)+20>>2]+(K[b+f|0]<<2)>>2]}i=J[a>>2]}gc[J[J[i>>2]+20>>2]](i,g,c,d);bc=g+128|0}function Qya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;a:{b:{c:{if(!K[a+144|0]){a=Kc(c+8|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;Fc(a);ba(b|0);B()}d:{e:{if(b){b=0;a=a+148|0;if(!(J[a>>2]&1))break e; -while(1){b=1;if(J[a>>2]&1)continue;break}break e}b=0;J[c+8>>2]=0;a=J[a+120>>2];if(!a)break e;f:{while(1){d=J[a+8>>2];J[695492]=0;d=J[d+148>>2];e=J[695492];J[695492]=0;if((e|0)==1)break d;if(!(d&1)){a=J[a>>2];if(!a)break f;continue}break}J[695492]=0;aa(4993,c+8|0,a+8|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break f;break a}a=J[c+8>>2];J[c+8>>2]=0;if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(!b){J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0; -if((a|0)==1)break b}b=1}bc=c+32|0;return b|0}break a}B()}ea(0)|0;yc();B()}a=Z()|0;vc(c+8|0);ba(a|0);B()}function NQ(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;H[a|0]=0;a:{d=J[J[b>>2]-12>>2]+b|0;b:{if(!J[d+16>>2]){d=J[d+72>>2];if(d)MQ(d);c:{if(c)break c;c=J[J[b>>2]-12>>2]+b|0;if(!(J[c+4>>2]&4096))break c;d=f+12|0;c=J[c+28>>2];J[d>>2]=c;J[c+4>>2]=J[c+4>>2]+1;J[695492]=0;c=$(6537,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;d=J[d>>2];e=J[d+4>>2]-1|0;J[d+4>>2]=e;if((e|0)==-1)gc[J[J[d>>2]+8>> -2]](d);d=f+8|0;J[d>>2]=J[(J[J[b>>2]-12>>2]+b|0)+24>>2];g=f+4|0;J[g>>2]=0;while(1){d:{if(Lj(d,g))break d;e=J[d>>2];h=J[e+12>>2];e:{if((h|0)==J[e+16>>2]){e=gc[J[J[e>>2]+36>>2]](e)|0;break e}e=J[h>>2]}if(!(gc[J[J[c>>2]+12>>2]](c,1,e)|0))break d;oq(d);continue}break}if(!Lj(d,g))break c;pq(J[J[b>>2]-12>>2]+b|0,6)}H[a|0]=!J[(J[J[b>>2]-12>>2]+b|0)+16>>2];break b}pq(d,4)}bc=f+16|0;return a}c=Z()|0;a=J[f+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Ep(a,b,c,d, -e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[c>>2];if(!f){f=rc(P(b,6)+4|0);J[c>>2]=f}if(e){H[f+2|0]=191;H[f|0]=239;H[f+1|0]=187;f=f+3|0}if((b|0)>0){e=(b<<2)+a|0;while(1){b=J[a>>2];a:{if(b>>>0<=127){H[f|0]=b;f=f+1|0;break a}if(b>>>0<=2047){H[f+1|0]=b&63|128;H[f|0]=b>>>6|192;f=f+2|0;break a}if(b>>>0<=65535){H[f+2|0]=b&63|128;H[f|0]=b>>>12|224;H[f+1|0]=b>>>6&63|128;f=f+3|0;break a}if(b>>>0<=2097150){H[f+3|0]=b&63|128;H[f|0]=b>>>18|240;H[f+2|0]=b>>>6&63|128;H[f+1|0]=b>>>12&63|128;f=f+4|0;break a}if(b>>> -0<=67108862){H[f+4|0]=b&63|128;H[f|0]=b>>>24|248;H[f+3|0]=b>>>6&63|128;H[f+2|0]=b>>>12&63|128;H[f+1|0]=b>>>18&63|128;f=f+5|0;break a}if(b>>>0>2147483646)break a;H[f+5|0]=b&63|128;H[f|0]=b>>>30|252;H[f+4|0]=b>>>6&63|128;H[f+3|0]=b>>>12&63|128;H[f+2|0]=b>>>18&63|128;H[f+1|0]=b>>>24&63|128;f=f+6|0}a=a+4|0;if(e>>>0>a>>>0)continue;break}}J[d>>2]=f-J[c>>2];H[f|0]=0}function t$a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(!K[b+8|0]){d=Wh(48);J[a+8>>2]=d;if(d){I[d>>1]=65534;J[a+44>>2]=65535;H[d+25|0]=0;I[d+2>> -1]=0;e=J[b+12>>2]&15;if(e>>>0<=8){H[d+24|0]=1;a=K[728983]|K[728984]<<8|(K[728985]<<16|K[728986]<<24);b=K[728979]|K[728980]<<8|(K[728981]<<16|K[728982]<<24);H[d+26|0]=b;H[d+27|0]=b>>>8;H[d+28|0]=b>>>16;H[d+29|0]=b>>>24;H[d+30|0]=a;H[d+31|0]=a>>>8;H[d+32|0]=a>>>16;H[d+33|0]=a>>>24;a=K[728990]|K[728991]<<8|(K[728992]<<16|K[728993]<<24);b=K[728986]|K[728987]<<8|(K[728988]<<16|K[728989]<<24);H[d+33|0]=b;H[d+34|0]=b>>>8;H[d+35|0]=b>>>16;H[d+36|0]=b>>>24;H[d+37|0]=a;H[d+38|0]=a>>>8;H[d+39|0]=a>>>16;H[d+ -40|0]=a>>>24;b=P(e,12);a=J[b+752212>>2];J[d+20>>2]=a;J[d+16>>2]=a;J[d+12>>2]=a;a=L[b+752208>>1]<<7;I[d+8>>1]=a;I[d+4>>1]=a;I[d+6>>1]=a;a=d+26|0;a=Qc(a)+a|0;H[a|0]=e|48;H[a+1|0]=0;J[d+44>>2]=0;return}Gf(d);J[a+8>>2]=0;J[c>>2]=1;return}J[c>>2]=7}}function flb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=K[a+20|0];f=J[a+16>>2];g=J[a+12>>2];a:{b:{if(!Ec(b,252164)){b=J[c>>2];if(!b){d=35;break a}d=J[b+116>>2];J[e+8>>2]=d;if(!d){d=iD(b,e+8|0,a);if(d)break a;d=J[e+8>>2];J[b+116>>2]=d;J[b+ -120>>2]=1642}J[c+4>>2]=J[d+8>>2];break b}if(!Ec(b,252068)){J[c>>2]=J[J[(g<<2)+247296>>2]+8>>2];break b}if(!Ec(b,252084)){J[c>>2]=f;break b}if(!Ec(b,252099)){b=J[c>>2];if(!b){d=35;break a}d=J[b+116>>2];J[e+12>>2]=d;if(!d){d=iD(b,e+12|0,a);if(d)break a;d=J[e+12>>2];J[b+116>>2]=d;J[b+120>>2]=1642}J[c+4>>2]=J[d+12>>2];break b}if(!Ec(b,252117)){H[c|0]=d;break b}if(!Ec(b,252125)){J[c>>2]=J[a+24>>2];J[c+4>>2]=J[a+28>>2];J[c+8>>2]=J[a+32>>2];J[c+12>>2]=J[a+36>>2];J[c+16>>2]=J[a+40>>2];J[c+20>>2]=J[a+44>> -2];J[c+24>>2]=J[a+48>>2];J[c+28>>2]=J[a+52>>2];break b}d=12;if(Ec(b,252146))break a;H[c|0]=K[a+21|0]}d=0}bc=e+16|0;return d|0}function fW(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=bc-16|0;bc=e;a:{b:{c:{f=J[a+200>>2];if(!(f&1)){if((c|0)!=13)break c;J[a+200>>2]=f|1;c=e+3|0;qg(a,c,13);pe(a,c,13);Ld(a,0);c=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((c|0)<0)break b;f=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);g=f<<24|(f&65280)<<8|(f>>>8& -65280|f>>>24);if((g|0)<0)break a;i=K[e+15|0];f=K[e+12|0];j=K[e+14|0];k=K[e+13|0];h=K[e+11|0];H[a+402|0]=h;J[a+324>>2]=g;J[a+320>>2]=c;H[a+696|0]=k;H[a+664|0]=j;H[a+401|0]=f;H[a+398|0]=i;l=f<<3;d=l&31;if((l&63)>>>0>=32)d=262402>>>d|0;else d=((1<>>d;d=f>>>0>=7?1:d;H[a+405|0]=d;d=P(d,h);H[a+404|0]=d;d=d&255;d:{if(d>>>0>=8){d=P(c,d>>>3|0);break d}d=P(c,d)+7>>>3|0}J[a+336>>2]=d;ZU(a,b,c,g,h,f,i,k,j);bc=e+16|0;return}Ad(a,59892);B()}Ad(a,59991);B()}Ad(a,57835);B()}Ad(a,57835); -B()}function $K(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(!K[e+3|0])break a;g=J[a>>2];a=J[g+4>>2];i=J[g+16>>2];b:{if((i|0)>=0){c=P(c,i);break b}c=P(c,i);if((a-J[g>>2]|0)<(0-c|0))break a}if(!a)break a;a=(a+c|0)+(b<<2)|0;while(1){i=K[e|0];b=P(K[e+3|0],K[f|0]+1|0);c=b>>>8|0;c:{if((c|0)==255){H[a+2|0]=i;H[a+1|0]=K[e+1|0];b=K[e+2|0];H[a+3|0]=255;H[a|0]=b;break c}if(b>>>0<256)break c;j=K[e+2|0];m=K[e+1|0];b=a+3|0;h=K[a|0];k=K[a+1|0];l=K[a+2|0];g=K[a+3|0];d:{if((g|0)==255){H[a|0]=h+(P(c,j-h|0)>>> -8|0);h=(P(c,m-k|0)>>>8|0)+k|0;g=(P(c,i-l|0)>>>8|0)+l|0;j=(c-(P(c,255)+255>>>8|0)|0)+255|0;break d}b=c+g-(P(c,g)+255>>>8)|0;H[a+3|0]=b;h=P(g,h);b=b&255;j=(h+P(c,j)-(P(c,h)+255>>>8)>>>0)/(b>>>0)|0;h=P(g,k);h=(h+P(c,m)-(P(c,h)+255>>>8)>>>0)/(b>>>0)|0;g=P(g,l);g=(g+P(c,i)-(P(c,g)+255>>>8)>>>0)/(b>>>0)|0;b=a}H[a+1|0]=h;H[a+2|0]=g;H[b|0]=j}f=f+1|0;a=a+4|0;d=d-1|0;if(d)continue;break}}}function Tsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;J[d+8>>2]=c;FT(d+4|0,b,d+8|0);a:{b:{b=J[d+4>>2];c:{if(b){c= -J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[d+12>>2]=0}J[695492]=0;aa(4993,a|0,d+12|0)|0;b=J[695492];J[695492]=0;d:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}break a}a=Z()|0;vc(d+12|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];b=J[d+4>>2];J[d+4>>2]=0;e:{f:{if(!b)break f; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break e;if(c)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break e}bc=d+16|0;return a|0}break a}vc(d+4|0);ba(a|0);B()}ea(0)|0;yc();B()}function K6a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=Q(0),e=Q(0),f=Q(0),g=Q(0),h=Q(0),i=Q(0);i=Q(NaN);d=N[a+12>>2];f=Q(N[a+16>>2]-d);e=N[a+24>>2];g=Q(N[a+32>>2]-e);e=Q(c-e);c=b;b=N[a+20>>2];h=Q(c-b);b=Q(N[a+28>>2]-b);c=Q(Q(Q(g+g)*e)+Q(Q(Q(d+d)*f)+Q(h*Q(b+b))));e=Q(Q(Q(d*d)-Q(h* -h))-Q(e*e));d=Q(Q(Q(f*f)-Q(b*b))-Q(g*g));b=Q(Q(c*c)+Q(e*Q(d*Q(-4))));a:{if(b=Q(0))|!(b<=Q(1)))){c=N[a+140>>2];return Q(Q(Q(Q(N[a+144>>2]-c)*b)+c))}c=Q(Q(Q(f-c)*Q(.5))/d);if(!(!(c>=Q(0))|!(c<=Q(1)))){b=N[a+140>>2];return Q(Q(Q(Q(N[a+144>>2]-b)*c)+b))}b:{if(N[a+108>>2]==Q(0))break b;d=Q(-N[a+276>>2]);if(!(b<=Q(0)&b>=d)&(!(c<=Q(0))|!(c>=d)))break b;return Q(N[a+140>>2])}if(N[a+112>>2]==Q(0))break a; -d=Q(N[a+272>>2]+Q(1));if(!(b<=d&b>=Q(1))&(!(c>=Q(1))|!(c<=d)))break a;i=N[a+144>>2]}return Q(i)}function wZa(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=J[b>>2];e=J[d>>2];if((e&-2147483647)==1){e=e-1|0;J[d>>2]=e}g=(e|0)/2|0;h=a;i=c;a:{if((e|0)<=1)break a;k=f+h|0;l=(g<<1)+i|0;b:{while(1){g=i;f=h;h=f-a|0;if(J[b>>2]<=(h+5|0))break b;i=g+2|0;c:{e=L[g>>1];if((e&64512)==55296){if(i>>>0>=l>>>0)break b;i=L[i>>1];if((i&64512)!=56320)break c;e=(e<<10&1047552|i&1023)+65536|0;i=g+4| -0}if(f>>>0>=k>>>0)break b;d:{if(e>>>0<=127){H[f|0]=e;h=f+1|0;break d}g=e>>>0<65536;j=e>>>0>2047;H[f|0]=(j?g?-32:-16:-64)|e>>>(j?g?12:18:6);h=f+1|0;if(k>>>0<=h>>>0)break d;g=j?g?6:12:0;H[f+1|0]=e>>>g&63|128;h=f+2|0;if(e>>>0<2048|k>>>0<=h>>>0)break d;j=g-6|0;H[f+2|0]=e>>>j&63|128;h=f+3|0;if(j>>>0<6|k>>>0<=h>>>0)break d;H[f+3|0]=e>>>g-12&63|128;h=f+4|0}if(i>>>0>=l>>>0)break a;continue}break}J[b>>2]=h;J[d>>2]=g-c;return-2}h=f;i=g}J[b>>2]=h-a;J[d>>2]=i-c;return J[b>>2]}function gwa(a,b,c){a=a|0;b=b|0; -c=c|0;var d=0,e=0,f=0,g=0;J[a+20>>2]=0;J[a>>2]=2407140;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;I[a+16>>1]=0;J[695492]=0;f=ha(5043,a+28|0,a+24|0,0,1)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((d|0)!=1){J[695492]=0;d=ha(5043,a+40|0,a+36|0,0,1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break h;J[695492]=0;e=ha(5043,a+52|0,a+48|0,0,4)|0;g=J[695492];J[695492]=0;if((g|0)==1)break e;J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[695492]=0;ca(5442,a|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)!=1)break f;na(ea(0)| -0)|0;J[695492]=0;_(5436,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;ka(5087);b=J[695492];J[695492]=0;if((b|0)==1)break g;B()}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)==1)break a;vc(a+68|0);_c(e);break d}return a|0}b=Z()|0}_c(d)}_c(f)}ed(a);ba(b|0);B()}ea(0)|0;yc();B()}function pga(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;var h=0,i=0;h=bc-416|0;bc=h;d=h+416|0;J[h+12>>2]=d;c=bc-144|0;bc=c;J[c+28>>2]=c+132;i=c+32|0; -dQ(a+8|0,i,c+28|0,e,f,g);J[c+16>>2]=0;J[c+20>>2]=0;J[c+12>>2]=i;e=h+16|0;i=J[h+12>>2]-e>>2;f=bc-16|0;bc=f;J[f+12>>2]=J[a+8>>2];g=Gl(f+8|0,f+12|0);J[695492]=0;a=ZE(e,c+12|0,i,c+16|0);i=J[695492];J[695492]=0;a:{if((i|0)!=1){Mh(g);bc=f+16|0;break a}a=Z()|0;Mh(g);ba(a|0);B()}if((a|0)==-1){cQ(15682);B()}J[h+12>>2]=e+(a<<2);bc=c+144|0;g=bc-16|0;bc=g;a=bc-32|0;bc=a;cF(a+24|0,e,J[h+12>>2]);h=J[a+28>>2];c=bc-16|0;bc=c;f=J[a+24>>2];J[c+8>>2]=f;J[c+12>>2]=b;while(1){if((f|0)!=(h|0)){JQ(c+12|0,J[f>>2]);f=f+4| -0;J[c+8>>2]=f;continue}break}J[a+16>>2]=J[c+8>>2];J[a+20>>2]=J[c+12>>2];bc=c+16|0;J[a+12>>2]=e+(J[a+16>>2]-e|0);J[a+8>>2]=J[a+20>>2];J[g+8>>2]=J[a+12>>2];J[g+12>>2]=J[a+8>>2];bc=a+32|0;bc=g+16|0;bc=d;return J[g+12>>2]}function Xta(a){a=a|0;var b=0,c=0,d=0,e=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2413388;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[695492]=0;b=ha(5043,a+44|0,a+40|0,0,4)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[695492]=0;ha(5043,a+56|0, -a+52|0,0,4)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;_c(b);ed(a);ba(c|0);B()}b=Z()|0;ed(a);ba(b|0);B()}J[a>>2]=2413548;J[695492]=0;c=ha(5043,a+68|0,a- -64|0,0,1)|0;b=J[695492];J[695492]=0;b:{c:{d:{e:{f:{g:{if((b|0)!=1){J[695492]=0;d=ha(5043,a+80|0,a+76|0,0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break g;J[695492]=0;e=ha(5043,a+92|0,a+88|0,0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break f;J[695492]=0;ha(5043,a+104|0,a+100|0,0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;return a| -0}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;_c(e)}_c(d)}_c(c)}Dz(a);ba(b|0);B()}function vZa(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;i=J[b>>2];f=J[d>>2];if((f&-2147483647)==1){f=f-1|0;J[d>>2]=f}g=(f|0)/2|0;h=c;e=a;a:{b:{if((f|0)<=1)break b;k=e+i|0;l=(g<<1)+h|0;while(1){g=e;e=h;h=e+2|0;i=K[e|0];f=K[e+1|0]|i<<8;if((i&252)==216){if(h>>>0>=l>>>0){J[b>>2]=g-a;J[d>>2]=e-c;return-2}h=K[h|0];if((h&252)!=220)break a;f=(f<<10&1047552|(K[e+3|0]|h<<8&768))+65536|0;h= -e+4|0}if(g>>>0>=k>>>0){h=e;e=g;break b}c:{if(f>>>0<=127){H[g|0]=f;e=g+1|0;break c}j=f>>>0<65536;i=f>>>0>2047;H[g|0]=(i?j?-32:-16:-64)|f>>>(i?j?12:18:6);e=g+1|0;if(k>>>0<=e>>>0)break c;j=i?j?6:12:0;H[g+1|0]=f>>>j&63|128;e=g+2|0;if(f>>>0<2048|k>>>0<=e>>>0)break c;i=j-6|0;H[g+2|0]=f>>>i&63|128;e=g+3|0;if(i>>>0<6|k>>>0<=e>>>0)break c;H[g+3|0]=f>>>j-12&63|128;e=g+4|0}if(h>>>0>>0)continue;break}}J[b>>2]=e-a;J[d>>2]=h-c;return J[b>>2]}J[b>>2]=g-a;J[d>>2]=e-c;return-2}function _U(a,b){var c=0,d=0,e=0, -f=0,g=0;d=bc-16|0;bc=d;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;J[a+16>>2]=0;J[a+20>>2]=J[682146];f=a+16|0;c=J[b+16>>2];a:{b:{c:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break c;break b}J[d+12>>2]=0}J[695492]=0;aa(4993,f|0,d+12|0)|0;c=J[695492];J[695492]=0;d:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break d;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break d; -J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break d}ea(0)|0;yc();B()}a=Z()|0;vc(d+12|0);break a}c=J[a+16>>2];J[a+20>>2]=J[(c?c+12|0:2728584)>>2];e:{c=J[b+24>>2];if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break e;b=J[b+24>>2]}else b=0;J[a+24>>2]=b;bc=d+16|0;return a}}a=Z()|0}sc(f);ba(a|0);B()}function f9a(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=bc-32|0;bc=f;J[f+28>>2]=d;J[f+24>>2]=d;H[f+20|0]=0;J[f+8>>2]=a;J[f+16>>2]=f+28;J[f+12>>2]=f+ -24;a:{b:{c:{if((b|0)!=(c|0))while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;a=J[b+4>>2];e=J[b>>2];if((a|0)!=(e|0)){a=a-e|0;e=a>>2;if(e>>>0>=1073741824){J[695492]=0;_(2265,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}J[695492]=0;a=$(4,a|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break b;J[d+4>>2]=a;J[d>>2]=a;J[d+8>>2]=(e<<2)+a;e=J[b>>2];h=J[b+4>>2];if((e|0)!=(h|0))while(1){g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[a|0]=g;H[a+1|0]=g>>>8;H[a+2|0]=g>>>16;H[a+3|0]=g>>>24;a=a+4|0;e=e+4|0;if((h| -0)!=(e|0))continue;break}J[d+4>>2]=a}d=d+12|0;J[f+28>>2]=d;b=b+12|0;if((c|0)!=(b|0))continue;break}bc=f+32|0;return d|0}a=Z()|0;b=J[d>>2];if(!b)break a;J[d+4>>2]=b;qc(b);break a}a=Z()|0}iL(f+8|0);ba(a|0);B()}function Olb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(J[a+20>>2])a=0;else{d=J[J[J[a>>2]+16>>2]+40>>2];if(d)a:{a=bc-32|0;bc=a;b:{e=J[d>>2];c:{if(!e)break c;f=J[e+28>>2];if(!f)break c;J[a+20>>2]=1E3;J[a+12>>2]=231644;c=zc(1E3);J[a+16>>2]=c;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[a+28>>2]= -4;J[a+24>>2]=c+4;d:{if((b|0)>=0){f=J[d+20>>2];c=J[d+16>>2];J[695492]=0;oa(3571,e|0,c|0,f|0,a+12|0,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;break b}b=J[f+20>>2];if((b|0)<=0)break d;c=0;while(1){e=J[d+20>>2];f=J[d+16>>2];g=J[d>>2];J[695492]=0;oa(3571,g|0,f|0,e|0,a+12|0,d|0,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break b;c=c+1|0;if((b|0)!=(c|0))continue;break}}b=J[a+16>>2];c=J[a+28>>2];H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=J[a+16>>2]}bc=a+32|0;a=c;break a}b=Z()|0;J[a+ -12>>2]=231644;a=J[a+16>>2];if(a)qc(a);ba(b|0);B()}else a=0}return a|0}function SSa(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;a:{g=J[a+4>>2];if(!g)break a;b:{c:{d:{e:{if((d|0)!=1){e=J[a+16>>2];if((e|0)>0)break e;break d}J[(b<<2)+g>>2]=J[c>>2];return}h=J[a+12>>2];while(1){if(J[P(f,40)+h>>2]==(b|0))break d;f=f+1|0;if((e|0)!=(f|0))continue;break}f=e;break c}if((e|0)!=(f|0))break b}if((e|0)==J[a+20>>2]){e=e+8|0;J[a+20>>2]=e;i=a,j=Nd(J[a+12>>2],e,40),J[i+12>>2]=j;g=J[a+4>>2];e=J[a+16>> -2]}J[a+16>>2]=e+1}J[(b<<2)+g>>2]=0;e=J[a+12>>2];f=P(f,40);a=e+f|0;J[a+36>>2]=d;J[a>>2]=b;if((d|0)<=0)break a;J[a+4>>2]=J[c>>2];a=d-1|0;if(!a)break a;b=e+f|0;J[b+8>>2]=J[c+4>>2];if((a|0)==1)break a;J[b+12>>2]=J[c+8>>2];if((a|0)==2)break a;J[b+16>>2]=J[c+12>>2];if((a|0)==3)break a;J[b+20>>2]=J[c+16>>2];if((a|0)==4)break a;J[b+24>>2]=J[c+20>>2];if((a|0)==5)break a;J[b+28>>2]=J[c+24>>2];if((a|0)==6)break a;J[b+32>>2]=J[c+28>>2]}}function HSa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;c=-1; -a:{b:switch(J[a+40>>2]){case 0:c=J[a+352>>2];if((c|0)!=-1)break a;c=J[a+4>>2];g=gc[J[J[c>>2]+28>>2]](c)|0;if((g|0)==-1){c=J[a+352>>2];break a}c=K[a+348|0]+1|0;H[a+348|0]=c;d=c&255;c=a+92|0;d=d+c|0;b=K[d|0];f=b+K[a+349|0]|0;H[a+349|0]=f;h=d;d=c+(f&255)|0;f=K[d|0];H[h|0]=f;H[d|0]=b;c=K[c+(b+f&255)|0]^g&255;J[a+352>>2]=c;break a;case 1:b=J[a+316>>2];if((b|0)==16){b=J[a+4>>2];if((gc[J[J[b>>2]+40>>2]](b,e,16)|0)!=16)break a;b=J[a+4>>2];KZ(a+92|0,e,(gc[J[J[b>>2]+32>>2]](b)|0)==-1);b=J[a+316>>2];if((b|0)== -16)break a}c=K[(a+b|0)+300|0];break a;case 2:break b;default:break a}b=J[a+380>>2];if((b|0)==16){b=J[a+4>>2];if((gc[J[J[b>>2]+40>>2]](b,e,16)|0)!=16)break a;b=J[a+4>>2];nt(a+92|0,e,(gc[J[J[b>>2]+32>>2]](b)|0)==-1);b=J[a+380>>2];if((b|0)==16)break a}c=K[(a+b|0)+364|0]}bc=e+16|0;return c|0}function G3a(a){a=a|0;var b=0,c=0,d=0;J[a+280>>2]=1;if(!(O[a+56>>3]!=1|O[a- -64>>3]!=0|(O[a+72>>3]!=0|O[a+80>>3]!=1))){J[a+280>>2]=0;b=J[a+276>>2];if(b){c=O[b+8>>3]*65536;a:{if(R(c)<2147483648){d=~~c;break a}d=-2147483648}J[b+ -220>>2]=d;c=O[b+16>>3]*65536;b:{if(R(c)<2147483648){d=~~c;break b}d=-2147483648}J[b+228>>2]=d;c=O[b+24>>3]*65536;c:{if(R(c)<2147483648){d=~~c;break c}d=-2147483648}J[b+224>>2]=d;c=O[b+32>>3]*65536;d:{if(R(c)<2147483648){d=~~c;break d}d=-2147483648}J[b+232>>2]=d;iu(J[b+188>>2],b+220|0,0)}c=O[a+8>>3]*65536;e:{if(R(c)<2147483648){b=~~c;break e}b=-2147483648}J[a+220>>2]=b;c=O[a+16>>3]*65536;f:{if(R(c)<2147483648){b=~~c;break f}b=-2147483648}J[a+228>>2]=b;c=O[a+24>>3]*65536;g:{if(R(c)<2147483648){b=~~c; -break g}b=-2147483648}J[a+224>>2]=b;c=O[a+32>>3]*65536;h:{if(R(c)<2147483648){b=~~c;break h}b=-2147483648}J[a+232>>2]=b;iu(J[a+188>>2],a+220|0,0)}}function pqb(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;var h=0,i=0,j=0,k=0;a:{b:{if(f){if(((c+1|0)/2|0)>(b|0))break b;if(!d)break a;j=c<<1;k=b<<1;b=0;while(1){a=L[e>>1];c:{if((a|0)==L[f>>1]){I[g>>1]=a;break c}a=K[e|0]|K[e+1|0]<<8;h=a>>>8|0;i=K[f|0]|K[f+1|0]<<8;a=((a<<8|h)&65535)+((P(k,((i<<8|i>>>8)&65535)-((h|a<<8)&65535)|0)+c|0)/(j|0)|0)& -65535;a=a<<8|a>>>8;H[g|0]=a;H[g+1|0]=a>>>8}I[g+2>>1]=L[f+2>>1];g=g+4|0;f=f+4|0;e=e+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}tc(g,e,d<<2);break a}if(!d)break a;j=c<<1;k=b<<1;b=0;while(1){a=L[e>>1];d:{if((a|0)==L[f>>1]){I[g>>1]=a;break d}a=K[e|0]|K[e+1|0]<<8;h=a>>>8|0;i=K[f|0]|K[f+1|0]<<8;a=((a<<8|h)&65535)+((P(k,((i<<8|i>>>8)&65535)-((h|a<<8)&65535)|0)+c|0)/(j|0)|0)&65535;a=a<<8|a>>>8;H[g|0]=a;H[g+1|0]=a>>>8}I[g+2>>1]=L[e+2>>1];g=g+4|0;e=e+4|0;f=f+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}return 0} -function Mpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if(!(K[a+288|0]|(K[a+286|0]|K[a+287|0]))){f=1029;break a}f=1029;if(K[a+300|0]|!K[a+293|0])break a;f=1028;if(c&1)break a;h=c>>>1|0;if((h|0)!=J[a+332>>2])break a;b:{if(!K[a+112|0])break b;i=gc[J[b+4>>2]](a,b,e)|0;if(i)break b;j=J[e>>2];J[j+32>>2]=h;i=0;if(c>>>0<2)break b;a=h>>>0<=1?1:h;h=a&3;c:{if(c>>>0<8){a=0;break c}f=a&2147483644;a=0;c=j+36|0;b=0;while(1){e=a<<1;g=K[d|0]|K[d+1|0]<<8;I[e+c>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+ -3|0]<<8;I[c+(e|2)>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;I[c+(e|4)>>1]=g<<8|g>>>8;g=c+(e|6)|0;e=K[d+6|0]|K[d+7|0]<<8;I[g>>1]=e<<8|e>>>8;a=a+4|0;d=d+8|0;b=b+4|0;if((f|0)!=(b|0))continue;break}}if(!h)break b;f=0;while(1){b=K[d|0]|K[d+1|0]<<8;I[((a<<1)+j|0)+36>>1]=b<<8|b>>>8;a=a+1|0;d=d+2|0;f=f+1|0;if((h|0)!=(f|0))continue;break}}return i|0}Dc(a,f,0,0);return f|0}function F1(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;a:{b:{c:{if(d){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[695492]=0;ca(2852, -b|0,c|0,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}d=c+1|0;e=rc(d>>>0>1073741823?-1:d<<2);d:{if((c|0)<=0)break d;d=0;if(c>>>0>=4){g=c&-4;while(1){J[(d<<2)+e>>2]=K[b+d|0];f=d|1;J[(f<<2)+e>>2]=K[b+f|0];f=d|2;J[(f<<2)+e>>2]=K[b+f|0];f=d|3;J[(f<<2)+e>>2]=K[b+f|0];d=d+4|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=c&3;if(!g)break d;while(1){J[(d<<2)+e>>2]=K[b+d|0];d=d+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}J[(c<<2)+e>>2]=0;if(c>>>0>=1073741808)break b; -e:{if(c>>>0<=1){H[a+11|0]=c;break e}b=c|3;if(b>>>0>=1073741823)break a;d=b+1|0;b=rc(d<<2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;j=tc(b,e,a)+a|0,k=0,J[j>>2]=k;qc(e)}return}Id(a);B()}Sd();B()}function nQ(a){var b=0,c=0,d=0,e=0,f=0;f=bc-16|0;bc=f;a:{b:{c:{d:{d=J[a+584>>2];if(d){if(L[a+90>>1]!=32844)break d;b=J[d>>2];if((b|0)!=-1)break a;c=L[a+86>>1]|(L[a+98>>1]<<3|L[a+84>>1]<<6);b=c-1033|0;if(b>>>0>3|(b|0)==2)break c;b=1;break b}fa(74413,70356,1182,93840);B()}fa(78843,70356,1183, -93840);B()}e:switch(c-521|0){case 0:case 3:b=3;break b;default:b=0;if((c|0)==2059)break b;break;case 1:case 2:break e}b=-1}J[d>>2]=b}e=4;f:{g:{h:switch(b|0){case 3:e=1;break g;default:Nc(J[a+628>>2],J[a>>2],79300,0);c=0;break f;case 0:break g;case 1:break h}e=2}J[d+8>>2]=e;i:{if(K[a+13|0]&4){b=J[a+68>>2];c=Dzb(J[a+72>>2],0,b,0);e=(fc|0)!=0;break i}b=J[a+56>>2];c=Dzb(J[a+100>>2],0,b,0);e=(fc|0)!=0}c=b?e&1?0:c:0;J[d+16>>2]=c;if(!(!(c&2147483647)|(c|0)<=0)){b=zc(c<<1);J[d+12>>2]=b;c=1;if(b)break f}c= -J[a+628>>2];J[f>>2]=J[a>>2];Nc(c,93840,75959,f);c=0}bc=f+16|0;return c}function dx(a,b){a=a|0;b=b|0;var c=0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];if((a|0)==(b|0)){c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;c=J[b+68>>2];J[a+64>>2]=J[b+64>>2];J[a+68>>2]=c;c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;J[a+80>>2]=J[b+80>>2];return a|0}lL(a+12|0,J[b+12>>2],J[b+16>>2]);c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+28>> -2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;$w(a+40|0,J[b+40>>2],J[b+44>>2]);$w(a+52|0,J[b+52>>2],J[b+56>>2]);J[a+80>>2]=J[b+80>>2];c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;c=J[b+68>>2];J[a+64>>2]=J[b+64>>2];J[a+68>>2]=c;CC(a+84|0,J[b+84>>2],J[b+88>>2]);kL(a+96|0,J[b+96>>2],J[b+100>>2]);$w(a+108|0,J[b+108>>2],J[b+112>>2]);N3(a+120|0,J[b+120>>2],J[b+124>>2]);lL(a+132|0,J[b+132>>2],J[b+136>>2]);M3(a+144|0,J[b+144>>2],J[b+148>>2]);return a|0}function xxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+12>> -2];if((e|0)>J[a+56>>2]){hd(208608,0);return-1}f=b+12|0;a:{b:{c:{d=J[a+84>>2]-4|0;if(d)if((d|0)==12)break c;else break a;c=J[J[a+64>>2]+24>>2]+P(e,488)|0;H[c+5|0]=K[b+17|0]+1;H[c+6|0]=K[b+18|0]+2;H[c+7|0]=K[b+19|0]+2;H[c+8|0]=K[b+21|0];H[c+418|0]=K[b+20|0];H[c+4|0]=H[b+16|0]&1;if(J[b+24>>2]>0){a=0;while(1){e=a+c|0;d=(a<<1)+f|0;H[e+419|0]=K[d+16|0];H[e+452|0]=K[d+17|0];a=a+1|0;if((a|0)>2])continue;break}}break b}c=-1;d=J[a+52>>2];if(!d)break a;a=0;if(J[d+40>>2]>0)break a;c=J[J[d+32>>2]+24>> -2]+P(e,488)|0;H[c+5|0]=K[b+17|0]+1;H[c+6|0]=K[b+18|0]+2;H[c+7|0]=K[b+19|0]+2;H[c+8|0]=K[b+21|0];H[c+418|0]=K[b+20|0];H[c+4|0]=H[b+16|0]&1;if(J[b+24>>2]>0)while(1){e=a+c|0;d=(a<<1)+f|0;H[e+419|0]=K[d+16|0];H[e+452|0]=K[d+17|0];a=a+1|0;if((a|0)>2])continue;break}}J[c>>2]=J[c>>2]|5;c=0}return c|0}function $Q(a,b,c,d){var e=0,f=0,g=0,h=0;g=bc-32|0;bc=g;f=d&2147483647;e=f-1065418752|0;h=f-1082064896|0;a:{if((e|0)==(h|0)&0|e>>>0>>0){f=(d&33554431)<<7|c>>>25;e=0;h=e;c=c&33554431;if(!(!e&(c|0)== -16777216?!(a|b):!e&c>>>0<16777216)){e=f+1073741825|0;break a}e=f+1073741824|0;if(c^16777216|a|(b|h))break a;e=(f&1)+e|0;break a}if(!(!c&(f|0)==2147418112?!(a|b):f>>>0<2147418112)){e=((d&33554431)<<7|c>>>25)&4194303|2143289344;break a}e=2139095040;if(f>>>0>1082064895)break a;e=0;f=f>>>16|0;if(f>>>0<16145)break a;e=d&65535|65536;qi(g+16|0,a,b,c,e,f-16129|0);rq(g,a,b,c,e,16257-f|0);a=J[g+8>>2];e=(J[g+12>>2]&33554431)<<7|a>>>25;c=J[g>>2]|(J[g+16>>2]|J[g+24>>2]|(J[g+20>>2]|J[g+28>>2]))!=0;f=J[g+4>>2]; -b=0;a=a&33554431;if(!(!b&(a|0)==16777216?!(c|f):!b&a>>>0<16777216)){e=e+1|0;break a}if(a^16777216|c|(b|f))break a;e=(e&1)+e|0}bc=g+32|0;return x(2,d&-2147483648|e),D()}function Mwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=J[a+8>>2];i=J[J[a+44>>2]+88>>2];e=J[a+52>>2];c=gc[J[J[e>>2]+20>>2]](e,2)|0;b=gc[J[J[e>>2]+20>>2]](e,1)|0;j=P(h,1876)+i|0;J[j+1460>>2]=1;f=c-3|0;a:{if(!b){b=bd(1,f);J[j+1452>>2]=b;if(!b){J[J[a>>2]+20>>2]=1;return}a=P(h,1876)+i|0;J[a+1464>>2]=0;J[a+1456>>2]=b;b=f;break a}d= -J[j+1464>>2];b=f+d|0;g=bd(1,b);if(!g){J[J[a>>2]+20>>2]=1;return}k=g;a=P(h,1876)+i|0;g=J[a+1452>>2];k=tc(k,g,f);if(g){qc(g);d=J[j+1464>>2];b=f+d|0}J[a+1452>>2]=k;J[a+1456>>2]=k}a=P(h,1876)+i|0;J[a+1468>>2]=b;b=a+1464|0;b:{if((c|0)<4)break b;f=a+1452|0;a=c-3|0;if(a&1){a=gc[J[J[e>>2]+20>>2]](e,1)|0;H[J[f>>2]+d|0]=a;d=d+1|0;a=c-4|0}if((c|0)==4)break b;while(1){c=gc[J[J[e>>2]+20>>2]](e,1)|0;H[J[f>>2]+d|0]=c;c=gc[J[J[e>>2]+20>>2]](e,1)|0;H[(J[f>>2]+d|0)+1|0]=c;d=d+2|0;c=a-3|0;a=a-2|0;if(c>>>0<4294967294)continue; -break}}J[b>>2]=d}function mL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+20>>2]=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+24>>2]=J[b+24>>2];c=J[b+28>>2];J[a+28>>2]=c;if(c)gc[J[J[c>>2]+8>>2]](c)|0;Bj(a+32|0,b+32|0);f=(a|0)==(b|0);a:{if(f)break a;c=a+36|0;d=b+36|0;g=K[b+47|0];e=g<<24>>24;if(H[a+47|0]>=0){if((e|0)>=0){e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+8>>2];break a}yf(c,J[b+36>>2],J[b+40>>2]);break a}h=c;c=(e|0)<0;Df(h,c?J[b+36>>2]:d,c?J[b+ -40>>2]:g)}J[a+48>>2]=J[b+48>>2];J[a+52>>2]=J[b+52>>2];J[a+56>>2]=J[b+56>>2];c=J[b+64>>2];J[a+60>>2]=J[b+60>>2];J[a+64>>2]=c;c=J[b+72>>2];J[a+68>>2]=J[b+68>>2];J[a+72>>2]=c;O[a+80>>3]=O[b+80>>3];O[a+88>>3]=O[b+88>>3];O[a+96>>3]=O[b+96>>3];O[a+104>>3]=O[b+104>>3];O[a+112>>3]=O[b+112>>3];if(!f)CC(a+120|0,J[b+120>>2],J[b+124>>2]);tc(a+132|0,b+132|0,80);dx(a+212|0,b+212|0);return a|0}function g9a(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=bc-32|0;bc=e;J[e+28>>2]=d;J[e+24>>2]=d;H[e+20|0]=0; -J[e+8>>2]=a;J[e+16>>2]=e+28;J[e+12>>2]=e+24;a:{b:{c:{d:{if((b|0)==(c|0)){f=d;break d}f=J[e+28>>2];while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;a=J[b+4>>2];g=J[b>>2];if((a|0)!=(g|0)){a=a-g|0;g=a>>3;if(g>>>0>=536870912){J[695492]=0;J[e+28>>2]=f;_(2264,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}J[695492]=0;a=$(4,a|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break b;J[d+4>>2]=a;J[d>>2]=a;J[d+8>>2]=(g<<3)+a;f=J[b>>2];g=J[b+4>>2];if((f|0)!=(g|0))while(1){h=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=h;a=a+ -8|0;f=f+8|0;if((g|0)!=(f|0))continue;break}J[d+4>>2]=a}f=d+12|0;d=f;b=b+12|0;if((c|0)!=(b|0))continue;break}J[e+28>>2]=d}bc=e+32|0;return f|0}a=Z()|0;b=J[d>>2];if(!b)break a;J[d+4>>2]=b;qc(b);break a}a=Z()|0;J[e+28>>2]=f}iL(e+8|0);ba(a|0);B()}function NR(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=bc-96|0;bc=e;d=J[b+4>>2];f=L[a+98>>1];a:{b:{if(d>>>0>=f>>>0){if(d>>>0>f>>>0){d=J[a>>2];g=J[a+628>>2];h=J[Lf(a,L[b>>1])+16>>2];i=J[b+4>>2];J[e+40>>2]=f;J[e+36>>2]=i;J[e+32>>2]=h;ae(g,d,82923,e+32|0);d=J[b+ -4>>2]}g=e+48|0;if(d>>>0>=11){g=Sg(a,d,4,88439);if(!g)break b;d=J[b+4>>2]}c:{d:{if((d|0)==1){h=J[b+8>>2];J[g>>2]=h;break d}d=0;if(!Oh(a,b,g))break c;h=J[g>>2]}e:{d=J[b+4>>2];i=(d|0)<(f|0)?d:f;if((i|0)<2)break e;d=1;f=1;while(1){if(J[(d<<2)+g>>2]==(h|0)){f=f+1|0;d=f&65535;if(d>>>0<(i&65535)>>>0)continue;break e}break}c=J[a>>2];d=J[a+628>>2];j=e,k=J[Lf(a,L[b>>1])+16>>2],J[j+16>>2]=k;Nc(d,c,88529,e+16|0);d=0;break c}J[c>>2]=h;d=1}if((e+48|0)==(g|0))break a;qc(g);break a}c=J[a>>2];d=J[a+628>>2];a=J[Lf(a, -L[b>>1])+16>>2];b=J[b+4>>2];J[e+8>>2]=f;J[e+4>>2]=b;J[e>>2]=a;ae(d,c,82715,e)}d=0}bc=e+96|0;return d}function _1a(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;f=bc-32|0;bc=f;j=J[a+420>>2];d=J[a+464>>2];a:{b:{if(J[d+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[d+12>>2]/8|0);J[d+12>>2]=0;g=0;if(!(gc[J[c+8>>2]](a)|0))break a;if(J[a+336>>2]>0)while(1){J[((e<<2)+d|0)+20>>2]=0;e=e+1|0;if((e|0)>2])continue;break}J[d+16>>2]=0;J[d+40>>2]=J[a+280>>2];if(J[a+436>>2])break b; -J[d+36>>2]=0}J[f+28>>2]=a;c=J[a+24>>2];g=J[c>>2];J[f+12>>2]=g;h=J[c+4>>2];J[f+16>>2]=h;e=J[d+12>>2];i=J[d+8>>2];if(J[a+364>>2]>0){j=1<>2];if((e|0)<=0){g=0;if(!Fg(f+12|0,i,e,1))break a;i=J[f+20>>2];e=J[f+24>>2]}e=e-1|0;if(i>>>e&1)I[h>>1]=j|L[h>>1];c=c+1|0;if((c|0)>2])continue;break}h=J[f+16>>2];g=J[f+12>>2];c=J[a+24>>2]}J[c+4>>2]=h;J[c>>2]=g;J[d+12>>2]=e;J[d+8>>2]=i;J[d+40>>2]=J[d+40>>2]-1;g=1}bc=f+32|0;return g|0}function kpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d| -0;e=e|0;var f=0,g=0,h=0;if(!(K[a+288|0]?K[a+285|0]:0)){Dc(a,1029,0,0);return 1029}if((c|0)!=3){Dc(a,1028,0,0);return 1028}g=K[d|0];if(!(1<>>0<=6:0)){Dc(a,1037,0,0);return 1037}h=K[d+1|0];if(!(1<>>0<=16:0)){Dc(a,1048,0,0);return 1048}c=K[d+2|0];if(c>>>0>=2){Dc(a,1057,0,0);return 1057}a:{if(K[a+114|0]){f=gc[J[a+152>>2]](32)|0;if(!f){Dc(a,1,0,0);d=1;break a}J[f+4>>2]=1068;J[f>>2]=1069;d=J[a+700>>2];b:{if(d){J[d+8>>2]=f;break b}J[a+696>>2]=f}J[f+8>>2]=0;J[f+12>>2]=d;J[a+700>>2]=f;J[f+ -16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+30|0]=c;H[f+29|0]=g;H[f+28|0]=h}d=Y7(a,h,g,c)}c:{if(d)break c;d=0;if(!K[a+112|0])break c;d=gc[J[b+4>>2]](a,b,e)|0;if(d)break c;a=J[e>>2];H[a+34|0]=c;H[a+33|0]=h;H[a+32|0]=g;d=0}return d|0}function j0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;a:{if(!J[c>>2]){J[c>>2]=632;a=0;break a}c=J[a+8>>2];a=tc(b+528|0,c,104);H[b+34|0]=1;J[b+8>>2]=a;a=J[c+40>>2];if(a){J[e+ -12>>2]=268;f=b,g=z1(a,b+260|0,e+12|0,d),J[f+568>>2]=g;a=0;if(J[d>>2]>0)break a}a=J[c>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+4>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+8>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+12>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+16>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+20>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+24>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+28>>2];if(!a|!K[a+17|0]?0:a)J[a+ -4>>2]=J[a+4>>2]+1;a=J[c+32>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+36>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=b}bc=e+16|0;return a|0}function Zya(a){a=a|0;var b=0,c=0;a=Pz(a);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2402196;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;b=J[682146];J[a+68>>2]=0;J[a- -64>>2]=b;J[a+60>>2]=0;J[a+56>>2]=b;J[695492]=0;c=$(5082,a+72|0)|0;b=J[695492];J[695492]=0;a:{b:{if((b| -0)!=1){J[a+108>>2]=0;J[a+112>>2]=0;J[a+124>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[695492]=0;b=a+112|0;J[b>>2]=2386024;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+148>>2]=0;H[a+144|0]=0;J[a+140>>2]=-1;H[a+136|0]=0;J[a+132>>2]=0;J[a+164>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;return a|0}b=Z()|0;break a}b=Z()|0;vc(a+108|0);ud(c)}sc(a+60|0);sc(a+52|0);vc(a+48|0);vc(a+44|0);vc(a+40|0);vc(a+36|0);vc(a+32|0);vc(a+28|0);vc(a+24|0);vc(a+20|0);vc(a+16|0);vc(a+12|0);vc(a+8|0); -Hq(a);ba(b|0);B()}function V5(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=bc-16|0;bc=h;a:{if(!a){e=33;break a}e=6;if(!d)break a;f=J[a>>2];if(!f)break a;J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;if((c|0)<0|b>>>0>>0)break a;e=10;if(b>>>0>32767)break a;b:{c:{d:{e:{if(!b){g=d+4|0;e=0;break e}e=b<<3;g=gc[J[f+4>>2]](f,e)|0;if(!g){e=d+4|0;g=e;break c}i=d,j=wc(g,0,e),J[i+4>>2]=j;g=d+4|0;e=gc[J[f+4>>2]](f,b)|0;if(!e)break d;wc(e,0,b)}J[h+12>>2]=0;J[d+8>>2]=e;i=d,j=Sc(f,2,0,c,0,h+12|0),J[i+ -12>>2]=j;e=J[h+12>>2];if(e)break b;I[d>>1]=c;I[d+2>>1]=b;J[d+16>>2]=J[d+16>>2]|1;e=0;break a}e=d+8|0}J[e>>2]=0;e=64}J[d+16>>2]=J[d+16>>2]|1;a=J[a>>2];if(!a)break a;b=J[g>>2];if(b)gc[J[a+8>>2]](a,b);J[d+4>>2]=0;b=J[d+8>>2];if(b)gc[J[a+8>>2]](a,b);J[d+8>>2]=0;b=J[d+12>>2];if(b)gc[J[a+8>>2]](a,b);J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0}bc=h+16|0;return e}function qx(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(a){d=I[a+56>>1];I[a+20>>1]=d+L[a+20>>1];b=L[a+22>>1];I[a+22>>1]=b+ -L[a+58>>1];h=J[a+48>>2]+J[a+84>>2]|0;J[a+48>>2]=h;a:{if((d|0)<=0)break a;f=J[a+68>>2];if(d>>>0>=4){k=d&-4;while(1){c=g<<1;e=c+f|0;I[e>>1]=b+L[e>>1];e=f+(c|2)|0;I[e>>1]=b+L[e>>1];e=f+(c|4)|0;I[e>>1]=b+L[e>>1];c=f+(c|6)|0;I[c>>1]=b+L[c>>1];g=g+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}d=d&3;if(!d)break a;while(1){c=f+(g<<1)|0;I[c>>1]=b+L[c>>1];g=g+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}}J[a+84>>2]=0;J[a+56>>2]=0;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;c=a- -64|0;b=J[a+28>> -2];if(b)b=b+I[a+22>>1]|0;else b=0;J[c>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;if(K[a+16|0]){b=I[a+22>>1]<<3;J[a+76>>2]=b+J[a+40>>2];J[a+80>>2]=b+J[a+44>>2]}b=a;a=J[a+52>>2];J[b+88>>2]=a?a+(h<<5)|0:0}}function eib(a,b,c,d,e,f,g,h,i){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;var j=0;a=wc(a,0,1516);j=Dk(J[b+96>>2],254428,1);if(!j)return 7;H[a+68|0]=1;J[a+64>>2]=0;J[a+1348>>2]=j;J[a+8>>2]=d;J[a+4>>2]=b;J[a>>2]=J[b+100>>2];a:{if(!d)break a;j=J[J[d+156>>2]>>2];J[a+ -12>>2]=j;J[a+20>>2]=j+56;J[a+16>>2]=j+20;to(j);c=J[J[c+40>>2]>>2];J[a+72>>2]=0;J[a+76>>2]=c;if(!g)break a;J[a+72>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;c=J[65283];J[a+80>>2]=J[65282];J[a+84>>2]=c;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;c=J[65285];J[a+88>>2]=J[65284];J[a+92>>2]=c;c=J[65287];J[a+96>>2]=J[65286];J[a+100>>2]=c;c=J[65289];J[a+104>>2]=J[65288];J[a+108>>2]=c;J[a+1352>>2]=J[b+16>>2];J[a+1472>>2]=h;J[a+1356>>2]=e;J[a+1476>>2]=i;J[a+1468>>2]=f;b=J[65291];J[a+1480>>2]= -J[65290];J[a+1484>>2]=b;b=J[65293];a=a+1488|0;J[a>>2]=J[65292];J[a+4>>2]=b;return 0}function KFa(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;d=bc-16|0;bc=d;J[d+12>>2]=0;J[a>>2]=0;e=a;a=J[J[b>>2]+20>>2];J[695492]=0;a=ga(a|0,b|0,c|0,d+12|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){b:{c:{d:{if(!a)break d;a=J[d+12>>2];b=J[a+4>>2];if(b>>>0>=2147483632){J[695492]=0;_(1623,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}c=J[a>>2];e:{if(b>>>0<=10){H[d+11|0]=b;a=d;break e}J[695492]=0;f=(b|15)+ -1|0;a=$(4,f|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[d>>2]=a;J[d+4>>2]=b;J[d+8>>2]=f|-2147483648}h=Zc(a,c,b)+b|0,i=0,H[h|0]=i;J[695492]=0;aa(3091,e|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[d+12>>2];if(a){f:{if(!K[a+8|0])break f;b=J[a>>2];if(!b)break f;qc(b)}qc(a)}if(H[d+11|0]>=0)break d;qc(J[d>>2])}bc=d+16|0;return}b=Z()|0;break a}b=Z()|0;if(H[d+11|0]>=0)break a;qc(J[d>>2]);break a}b=Z()|0}mh(e);ba(b|0);B()}function F$(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;a:{if(!(d| -e)|(!b|!c))break a;b:{f=J[b+36>>2];if(f)break b;f=J[b+32>>2];if(f)f=J[f+80>>2];else f=0;f=up(0,f);J[b+36>>2]=f;if(f)break b;b=0;e=0;c=0;c:{if(!a)break c;b=J[a>>2];e=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break c;c=(b^-1)+a>>>0<249?b:0}J[g>>2]=38416;Cc(0,e,b,c,0,23,2,3,38416,0,0,0,32863,g);break a}b=gc[J[659447]](12)|0;if(!b){d:{if(!a){b=0;c=0;break d}b=J[a>>2];c=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break d;h=(b^-1)+a>>>0<249?b:0}J[g+16>>2]=17038;Cc(0,c,b,h,0,23,2,3,17038,0,0,0,32863,g+ -16|0);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;i=b,j=$e(c),J[i>>2]=j;if(e)i=b,j=$e(e),J[i+8>>2]=j;if(d)i=b,j=$e(d),J[i+4>>2]=j;if(!LJ(f,c,b))break a;a=J[b>>2];if(a)gc[J[659451]](a);a=J[b+4>>2];if(a)gc[J[659451]](a);a=J[b+8>>2];if(a)gc[J[659451]](a);gc[J[659451]](b)}bc=g+32|0}function xU(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;g=bc-48|0;bc=g;e=a+72|0;f=Tk(e);a:{b:{c:{d=J[J[b+12>>2]+((f>>>0)%M[b+8>>2]<<2)>>2];d:{if(d)while(1){if((f|0)==J[d+12>>2])if(Pl(d+16|0,e))break d;d=J[d+8>>2];if(d)continue; -break}h=qv(b,e),i=0,J[h+52>>2]=i;d=g+4|0;aG(d,e);J[695492]=0;d=ga(5173,g+12|0,d|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[695492]=0;aa(5083,e|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[d+24>>2]=2381060;J[d>>2]=2381028;e=J[d+28>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)gc[J[J[e>>2]+4>>2]](e);J[d+28>>2]=0}J[d+16>>2]=2381060;e=J[d+20>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)gc[J[J[e>>2]+4>>2]](e);J[d+20>>2]=0}sc(d+8|0);sc(g+4|0);d=J[a+120>>2];if(!d)break d;while(1){xU(J[d+ -8>>2],b,c);d=J[d>>2];if(d)continue;break}}bc=g+48|0;return}b=Z()|0;break a}b=Z()|0;ud(d)}sc(g+4|0);ba(b|0);B()}function sBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;a:{b=J[b>>2];b:{if(b){d=c+8|0;GT(d,b,5464,5465);J[695492]=0;aa(5144,a|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[c+8>>2];J[c+8>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}a=Z()|0;vc(c+ -8|0);ba(a|0);B()}J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;J[c+12>>2]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}break a}b=Z()|0;vc(c+12|0);sc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2]}bc=c+16|0;return}ea(0)|0;yc();B()}function nU(a,b,c,d,e,f){var g=0,h=0,i=0, -j=0,k=0;g=bc-32|0;bc=g;J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;i=Qc(c);if(d)j=Qc(d);if(e)k=Qc(e);a:{if(!f){f=Rz(a,0,0,b-2|0,g);break a}f=Rz(a,f,Qc(f),b-2|0,g)}b:{if(a){J[a+744>>2]=34;H[g+28|0]=105;H[g+29|0]=84;H[g+30|0]=88;H[g+31|0]=116;h=(f+((j+i|0)+k|0)|0)+5|0;H[g+27|0]=h;H[g+26|0]=h>>>8;H[g+25|0]=h>>>16;H[g+24|0]=h>>>24;bf(a,g+24|0,8);J[a+348>>2]=1767135348;Xl(a);pe(a,g+28|0,4);J[a+744>>2]=66;c:{if(!c)break c;h=i+1|0;if(!h)break c;bf(a,c,h);pe(a,c,h)}H[g+23|0]=0;H[g+22|0]=(b+1&-3)!=0;b= -g+22|0;bf(a,b,2);pe(a,b,2);H[g+22|0]=0;c=j+1|0;if(c){b=d?d:b;bf(a,b,c);pe(a,b,c)}b=k+1|0;if(b){c=e?e:g+22|0;bf(a,c,b);pe(a,c,b)}pv(a,g,f);J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[g+24|0]=b;H[g+25|0]=b>>>8;H[g+26|0]=b>>>16;H[g+27|0]=b>>>24;bf(a,g+24|0,4);break b}pv(0,g,f)}bc=g+32|0}function eoa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;d=J[a+12>>2];if(J[d+932>>2]!=8){g=K[b+11|0];g=g<<24>>24<0?J[b+4>>2]:g;if((g| -0)>J[d+1268>>2]){h=J[d+1264>>2];if(h){qc(h);J[d+1264>>2]=0}J[d+1268>>2]=g;o=d,p=rc(g>>>0>1073741823?-1:g<<2),J[o+1264>>2]=p}J[d+1272>>2]=0;a:{if((g|0)<=0)break a;h=H[b+11|0]<0?J[b>>2]:b;i=J[d+1264>>2];b=0;if((g|0)!=1){j=g&-2;while(1){k=b<<2;l=J[k+h>>2];m=J[d+1272>>2];J[d+1272>>2]=m+1;J[i+(m<<2)>>2]=l;k=J[h+(k|4)>>2];l=J[d+1272>>2];J[d+1272>>2]=l+1;J[i+(l<<2)>>2]=k;b=b+2|0;n=n+2|0;if((j|0)!=(n|0))continue;break}}if(!(g&1))break a;b=J[h+(b<<2)>>2];g=d;d=J[d+1272>>2];J[g+1272>>2]=d+1;J[i+(d<<2)>>2]= -b}b=J[a+12>>2];d=b+1272|0;g=J[b+1264>>2];h=b+832|0;i=b+752|0;j=_t(h,i);if(!j){hn(h,i);O[b+912>>3]=O[b+864>>3]}oz(b+944|0,g,c,d,e,f,!j,b);H[J[a+12>>2]+928|0]=0}return 0}function NX(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=1;c=J[a>>2];b=0;a:{if((c|0)<=0)break a;e=K[J[a+4>>2]];b=1;if((e|0)==43)break a;g=(e|0)!=45;b=(e|0)==45}b:{if((b|0)>=(c|0))break b;e=J[a+4>>2];c:{while(1){f=K[b+e|0];if((f-48&255)>>>0<=9){d=d*10+ +(f<<24>>24)+-48;b=b+1|0;if((c|0)!=(b|0))continue;break c}break}if((f|0)!=46)break b;b=b+ -1|0;if((c|0)<=(b|0))break b;h=.1;while(1){f=K[b+e|0]-48|0;if((f&255)>>>0>9)break b;d=h*+(f|0)+d;h=h*.1;b=b+1|0;if((c|0)>(b|0))continue;break}}b=c}d=g?d:-d;d:{g=c;c=b+1|0;e:{if((g|0)>(c|0)){f:{g:{h:{i:{a=J[a+4>>2];switch(K[a+b|0]-99|0){case 10:break f;case 0:break g;case 13:break h;case 6:break i;default:break d}}if(K[a+c|0]!=110)break d;return d*72}if(K[a+c|0]==116)break e;break d}if(K[a+c|0]!=109)break d;return d*28.346456692913385}if(K[a+c|0]!=109)break d;return d*2.834645669291339}d=d*72}return d}return d* -72}function Hkb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=bc-208|0;bc=e;J[e+204>>2]=0;c=J[a>>2];b=J[J[c+712>>2]+3080>>2];c=gh(J[J[c+96>>2]+4>>2],241698);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;h=gc[b|0](c)|0;if(!h)break a;b=J[a>>2];f=J[b+712>>2];c=J[b+100>>2];b=Zd(c,1028,e+204|0);b:{c:{if(J[e+204>>2])break c;d=e+8|0;v6(f+1372|0,d);d=gc[J[h>>2]](J[J[a>>2]+100>>2],d,b)|0;J[e+204>>2]=d;if(d)break c;d=J[f+2024>>2];while(1){if(!d)break b;d=d-1|0;g=d<<2;i=e+8|0;v6(J[(g+f|0)+2028>>2],i);g=gc[J[h>> -2]](J[J[a>>2]+100>>2],i,(b+g|0)+4|0)|0;J[e+204>>2]=g;if(!g)continue;break}}if(b){a=J[f+2024>>2];if(a)while(1){a=a-1|0;f=b+(a<<2)|0;d=J[f+4>>2];if(d)gc[J[c+8>>2]](c,d);J[f+4>>2]=0;if(a)continue;break}a=J[b>>2];if(a)gc[J[c+8>>2]](c,a);J[b>>2]=0}if(b)gc[J[c+8>>2]](c,b);j=J[e+204>>2];break a}J[J[a+40>>2]>>2]=b;J[a+44>>2]=-1}bc=e+208|0;return j|0}function _Y(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;d=J[a+596>>2];m=J[d+28>>2];a:{if((m|0)<=0){i=O[a+32>>3]; -f=O[a+16>>3];break a}q=O[a+56>>3];r=O[a+40>>3];s=O[a+24>>3];g=O[a+48>>3];i=O[a+32>>3];f=O[a+16>>3];t=J[d+24>>2];while(1){d=J[(h<<2)+t>>2];n=J[d+12>>2];if((n|0)>0){u=J[d+4>>2];v=J[d>>2];d=0;while(1){o=d<<3;c=O[o+v>>3];p=O[u+o>>3];b=q+(s*c+p*r);c=g+(f*c+p*i);b:{if(!(d|h)){e=b;j=b;k=c;l=c;break b}c:{if(ck))break c;k=c}if(bj))break b;j=b}d=d+1|0;if((n|0)!=(d|0))continue;break}}h=h+1|0;if((m|0)!=(h|0))continue;break}}g=e;e=O[a+440>>3]*.5;b=R(f);c=R(O[a+40>> -3]);f=e*(b>c?b:c);c=g-f;g=e;e=R(i);b=g*(b>e?b:e);e=l-b;if(e>O[a+632>>3])O[a+632>>3]=e;if(c>O[a+640>>3])O[a+640>>3]=c;b=b+k;if(b>3])O[a+648>>3]=b;b=f+j;if(b>3])O[a+656>>3]=b}function qZa(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=-1;a:{b:{if(!(!d|(!a|!b))){if(!c){J[b>>2]=0;J[d>>2]=0;return 0}f=c;i=a;g=J[d>>2];c:{if((g|0)<=0)break c;l=J[b>>2]+i|0;k=f+g|0;g=f;while(1){e=H[g|0];h=e&255;f=(e|0)>=0;j=0;d:{if(f)break d;if(e>>>0<=4294967231)break a;if(e>>>0<= -4294967263){h=h&31;j=1;break d}if(e>>>0<=4294967279){h=h&15;j=2;break d}if(e>>>0>4294967287)break b;h=h&7;j=3}e=g+1|0;if((j|0)>(k-e|0)){f=g;break c}e:{if(f){f=e;break e}f=e;if(k>>>0<=e>>>0)break e;while(1){f=e+1|0;e=K[e|0];if((e&192)!=128)break e;h=e&63|h<<6;j=j-1|0;if(!j)break e;e=f;if(k>>>0>e>>>0)continue;break}}f:{if(h>>>0<=127){if(i>>>0>>0)break f;f=g;break c}break a}H[i|0]=h;i=i+1|0;g=f;if(k>>>0>g>>>0)continue;break}}J[b>>2]=i-a;J[d>>2]=f-c;f=J[b>>2]}return f|0}J[b>>2]=i-a;J[d>>2]=g-c;return-2}J[b>> -2]=i-a;J[d>>2]=g-c;return-2}function Xtb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];c=c+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b| -0]=K[c|0];H[b+1|0]=K[c+1|0];c=c+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}}if((e|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;e=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];c=c+2|0;b=(J[a+584>>2]<<1)+b|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function O6(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=J[a+2744>>2];l=i&4;f=64;a:{if(l)break a;f=(e|0)==1?55:49; -if(!(!(H[b+12|0]&1)|!(H[c+12|0]&1)))break a;f=(e|0)==1?61:59}m=J[c+4>>2];n=J[b+4>>2];j=kD(i,J[a+2748>>2],e,m-n|0);b:{c:{d:{e:{i=(((m+n|0)/2|0)+d|0)+((j|0)/-2|0)|0;a=i&63;f:{if(!a)break f;g=j+i&63;if(!g)break f;d=64-a|0;if((f|0)>=(j|0)){if((g|0)>=(j|0))break f;if(d>>>0<=g>>>0)break c;h=0-g|0;break f}if(!l)if(a>>>0>=f>>>0|d>>>0>=f>>>0|(f>>>0<=g>>>0|f>>>0<=64-g>>>0))break f;k=j&63;if(k>>>0>31)break e;if(d>>>0<=k>>>0)break f;if(g>>>0>k>>>0)break d}a=(h|0)<=-14?-14:h;break b}k=64-f|0}e=d-k|0;a=f-d|0;h= -(a|0)>(e|0)?e:0-a|0;e=h>>31;d=f-g|0;a=g-k|0;d=(a|0)>(d|0)?d:0-a|0;a=d>>31;d=(e^h)-e>>>0>(a^d)-a>>>0?d:h}h=d;a=(d|0)<=-14?-14:d;a=(a|0)>=14?14:a}d=l?h:a;f=d+i|0;e=f+j|0;a=(m|0)>(n|0);J[b+8>>2]=a?f:e;J[c+8>>2]=a?e:f;return d}function Yz(a,b,c,d){var e=0,f=0,g=0;a:{b:{c:{d:{e:{f:switch(b-1|0){case 0:if(J[d>>2])break d;b=0;break c;case 1:if(J[d>>2])break e;b=0;break c;case 7:case 15:case 31:break a;case 3:break f;default:break b}b=0;if(!J[d>>2])break c;b=c;while(1){H[b|0]=K[a|0]>>>4;H[b+1|0]=K[a|0]&15; -a=a+1|0;b=b+2|0;e=e+1|0;f=e?f:f+1|0;g=J[d>>2];if(!f&g>>>0>e>>>0)continue;break}b=g<<1;break c}b=c;while(1){H[b|0]=K[a|0]>>>6;H[b+1|0]=K[a|0]>>>4&3;H[b+2|0]=K[a|0]>>>2&3;H[b+3|0]=K[a|0]&3;a=a+1|0;b=b+4|0;e=e+1|0;f=e?f:f+1|0;g=J[d>>2];if(!f&g>>>0>e>>>0)continue;break}b=g<<2;break c}b=c;while(1){H[b|0]=K[a|0]>>>7;H[b+1|0]=K[a|0]>>>6&1;H[b+2|0]=K[a|0]>>>5&1;H[b+3|0]=K[a|0]>>>4&1;H[b+4|0]=K[a|0]>>>3&1;H[b+5|0]=K[a|0]>>>2&1;H[b+6|0]=K[a|0]>>>1&1;H[b+7|0]=H[a|0]&1;a=a+1|0;b=b+8|0;e=e+1|0;f=e?f:f+1|0;g=J[d>> -2];if(!f&g>>>0>e>>>0)continue;break}b=g<<3}J[d>>2]=b}a=c}return a}function vPa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=rc(176);d=J[a+12>>2];f=J[a+144>>2];c=J[J[f>>2]+8>>2];J[695492]=0;f=$(c|0,f|0)|0;c=J[695492];J[695492]=0;a:{b:{if((c|0)==1)break b;c=J[a+148>>2];e=J[J[c>>2]+8>>2];J[695492]=0;c=$(e|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;e=J[a+4>>2];g=J[a+168>>2];J[b+152>>2]=13;J[b>>2]=2206204;J[b+4>>2]=15;J[b+8>>2]=0;J[b+148>>2]=c;J[b+144>>2]=f;J[b+12>>2]=d;d=0;J[695492]=0;aa(3282,a+152| -0,b+152|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[b+4>>2]=e;J[b+168>>2]=g;c:{if(J[b+12>>2]>0){f=a+16|0;while(1){c=d<<2;e=J[c+f>>2];J[695492]=0;a=$(4,8)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[695492]=0;e=aa(3183,a|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)==1){d=Z()|0;qc(a);break a}J[(b+c|0)+16>>2]=e;d=d+1|0;if((d|0)>2])continue;break}}return b|0}d=Z()|0;break a}d=Z()|0}qc(b);ba(d|0);B()}function kib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[a>>2]=0;J[a+4>>2]=0;J[a+56>> -2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=J[b>>2];a:{if(c){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=b+69|0;e=b+68|0;b=b+70|0;break a}J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>> -2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=b+66|0;e=b+65|0;f=K[b+64|0];b=b+67|0}e=K[e|0];d=K[d|0];b=K[b|0];g=J[65281];J[a+52>>2]=J[65280];J[a+56>>2]=g;H[a+48|0]=c;H[a+47|0]=b;H[a+46|0]=d;H[a+45|0]=e;H[a+44|0]=f}function _L(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=ro(g,c,242195);if(!f)return 64;a:{b=J[a>>2];a=gc[J[b+4>>2]](b,40)|0;if(!a){c=64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29|0]= -0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]=0;H[a+35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]=0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=nx(a,f);J[a+16>>2]=f;if(c){gc[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=vr(a,333319,e);b=J[a+ -28>>2];e=J[a+24>>2];if(e)gc[e|0](a);gc[J[b+8>>2]](b,a);if(c)break a;J[d>>2]=f;return 0}gc[J[g+8>>2]](g,f);return c|0}function ZL(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=ro(g,c,242712);if(!f)return 64;a:{b=J[a>>2];a=gc[J[b+4>>2]](b,40)|0;if(!a){c=64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29|0]=0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]=0;H[a+ -35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]=0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=nx(a,f);J[a+16>>2]=f;if(c){gc[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=vr(a,333319,e);b=J[a+28>>2];e=J[a+24>>2];if(e)gc[e|0](a);gc[J[b+8>>2]](b,a);if(c)break a;J[d>>2]=f;return 0}gc[J[g+8>>2]](g,f);return c|0}function YL(a,b,c,d,e){a=a|0;b=b| -0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=ro(g,c,242784);if(!f)return 64;a:{b=J[a>>2];a=gc[J[b+4>>2]](b,40)|0;if(!a){c=64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29|0]=0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]=0;H[a+35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]=0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23| -0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=nx(a,f);J[a+16>>2]=f;if(c){gc[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=vr(a,333319,e);b=J[a+28>>2];e=J[a+24>>2];if(e)gc[e|0](a);gc[J[b+8>>2]](b,a);if(c)break a;J[d>>2]=f;return 0}gc[J[g+8>>2]](g,f);return c|0}function xVa(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;k=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<=0)break a;g=J[a+28>>2];h=(k<<1)-g|0;if((h| -0)<=0)break a;b=0;if(e>>>0>=4){m=e&-4;while(1){f=b<<2;i=g+J[f+c>>2]|0;wc(i,K[i-1|0],h);i=g+J[(f|4)+c>>2]|0;wc(i,K[i-1|0],h);i=g+J[(f|8)+c>>2]|0;wc(i,K[i-1|0],h);f=g+J[(f|12)+c>>2]|0;wc(f,K[f-1|0],h);b=b+4|0;l=l+4|0;if((m|0)!=(l|0))continue;break}}e=e&3;if(e)while(1){f=g+J[(b<<2)+c>>2]|0;wc(f,K[f-1|0],h);b=b+1|0;j=j+1|0;if((e|0)!=(j|0))continue;break}e=J[a+272>>2]}if(!(!k|(e|0)<=0)){h=k&-2;f=k&1;j=0;while(1){e=j<<2;b=J[e+c>>2];e=J[d+e>>2];g=0;if((k|0)!=1)while(1){H[e|0]=K[b|0]+K[b+1|0]>>>1;H[e+1|0]= -(K[b+2|0]+K[b+3|0]|0)+1>>>1;b=b+4|0;e=e+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}if(f)H[e|0]=K[b|0]+K[b+1|0]>>>1;j=j+1|0;if((j|0)>2])continue;break}}}function Qhb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=J[b+712>>2];a=wc(a,0,780);J[a+8>>2]=d;J[a+4>>2]=b;H[a+65|0]=1;J[a>>2]=J[b+100>>2];a:{if(!d)break a;b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;to(b);J[a+68>>2]=0;J[a+72>>2]=0;if(!c|!e)break a;b=J[J[c+40>>2]>>2];if(!b)break a;J[a+ -72>>2]=J[b>>2];J[a+68>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+108>>2]=i;b=J[65342];J[a+76>>2]=J[65341];J[a+80>>2]=b;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;b=J[65344];J[a+84>>2]=J[65343];J[a+88>>2]=b;b=J[65346];J[a+92>>2]=J[65345];J[a+96>>2]=b;b=J[65348];J[a+100>>2]=J[65347];J[a+104>>2]=b;b=J[i+120>>2];J[a+732>>2]=b;J[a+748>>2]=J[i+1352>>2];b:{if(J[i+1416>>2]==1)break b;j=107;if(b>>>0<1240)break b;j=b>>>0<33900?1131:32768}J[a+776>>2]=h;J[a+772>>2]=g;J[a+760>>2]=f;J[a+740>> -2]=j}function Pgb(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;a:{h=J[a+4>>2];k=0-h|0;g=k&(c+h|0)-1;i=d&k;b:{if((g|0)<=(i|0)){c=J[a>>2];b=g;break b}if((h+i|0)!=(g|0))break a;j=i;c:{d:{e:{l=L[e+12>>1];m=l&7;switch(m|0){case 0:break c;case 1:case 5:break d;case 4:break e;default:break a}}j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k;break c}if(!(J[e+28>>2]!=(f|0)|J[e+16>>2]>0)&(!(l&16)|J[a+8>>2]>(d-c|0))|!(J[f+28>>2]!=(e|0)|J[e+20>>2]!=(b|0))&(!(l&32)|J[a+8>>2]>(d-c|0)))break a; -if((m|0)==1)break c;j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k}c=J[a>>2];b=g;b=(j|0)>=0?L[a+52>>1]>j>>>c>>>0?j:i:b;d=((g|0)==(b|0)?i:g)>>c;if((d|0)<0|d>>>0>=L[a+52>>1])break b;if(K[(J[a+56>>2]+J[a+140>>2]|0)+(d<<13>>16)|0]<<(d&7)&128)break a}b=b>>c;if((b|0)<0|b>>>0>=L[a+52>>1])break a;a=(J[a+56>>2]+J[a+140>>2]|0)+(b>>>3&65535)|0;H[a|0]=K[a|0]|128>>>(b&7)}}function u1(a,b,c,d){var e=0,f=0,g=0,h=0;f=1;a:{if(J[d>>2]>0){if(!b|!K[b+17|0])break a;c=J[b+4>>2];b:{if(c){c=c-1|0;J[b+4>>2]=c;if(c)break b}if(K[b+16|0])break b; -c=J[J[b+20>>2]+8>>2];if(c)gc[c|0](b);c=J[b+8>>2];if(c)Ih(c);Gf(b)}return a}c:{if(a)break c;f=0;a=Wh(260);if(a)break c;J[d>>2]=7;a=0;if(!b|!K[b+17|0])break a;a=J[b+4>>2];d:{if(a){a=a-1|0;J[b+4>>2]=a;if(a)break d}if(K[b+16|0])break d;a=J[J[b+20>>2]+8>>2];if(a)gc[a|0](b);a=J[b+8>>2];if(a)Ih(a);Gf(b)}return 0}e=wc(a,0,260);J[e+24>>2]=b;H[e+33|0]=f;J[e+28>>2]=J[c+12>>2];if(!K[c+8|0]){J[e+4>>2]=2870;J[e+180>>2]=-1;J[e>>2]=2871;J[e+44>>2]=J[b+24>>2];f=J[b+12>>2];H[e+60|0]=K[f+71|0];H[e+66|0]=K[f+80|0];g= -H[f+76|0];h=e+108|0;J[e+20>>2]=h;H[e+61|0]=g;tc(h,f+72|0,g);J[e+256>>2]=1}b=J[J[b+20>>2]+12>>2];if(!b)break a;gc[b|0](e,c,d);if(K[c+8|0]|J[d>>2]<=0)break a;ir(e);a=0}return a}function Mgb(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;a:{h=J[a+4>>2];k=0-h|0;g=k&(c+h|0)-1;i=d&k;b:{if((g|0)<=(i|0)){c=J[a>>2];d=g;break b}if((h+i|0)!=(g|0))break a;j=i;c:{d:{e:{l=L[e+12>>1];m=l&7;switch(m|0){case 0:break c;case 1:case 5:break d;case 4:break e;default:break a}}j=(c+d|0)+ -((P(h,63)|0)/64|0)>>1&k;break c}if(!(J[e+28>>2]!=(f|0)|J[e+16>>2]>0)&(!(l&16)|J[a+8>>2]>(d-c|0))|!(J[f+28>>2]!=(e|0)|J[e+20>>2]!=(b|0))&(!(l&32)|J[a+8>>2]>(d-c|0)))break a;if((m|0)==1)break c;j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k}c=J[a>>2];d=g;d=(j|0)>=0?M[a+96>>2]>j>>>c>>>0?j:i:d;e=((g|0)==(d|0)?i:g)>>c;if((e|0)<0|e>>>0>=M[a+96>>2])break b;if(K[(J[a+56>>2]+(b>>3)|0)-P(e,J[a+104>>2])|0]&128>>>(b&7))break a}c=d>>c;if((c|0)<0|c>>>0>=M[a+96>>2])break a;a=(J[a+56>>2]+(b>>3)|0)-P(c,J[a+104>>2])|0;H[a|0]=K[a| -0]|128>>>(b&7)}}function zgb(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;d=J[b>>2]+1|0;a:{if(d>>>0>65535)break a;a=J[a+16>>2];i=a+518|0;j=a+6|0;while(1){b:{e=d>>>0>255;c:{d:{e:{if(!e){c=(d<<1&510)+j|0;a=i;if(!(K[c|0]<<8|K[c+1|0]))break e;break d}a=(d>>>7&33554430)+j|0;a=K[a|0]<<8|K[a+1|0]&248;if(!a)break d;a=a+i|0}c=a;a=K[c+1|0]|K[c|0]<<8;g=K[c+3|0]|K[c+2|0]<<8;f=d&255;h=K[c+6|0];k=K[c+7|0];l=K[c+4|0];m=K[c+5|0];if(!e){e=256;if(f>>>0>=a+g>>>0)break c}h=h<<8|k;if(!h){if((d|0)!= -256)break d;break b}e=(d&-256)+(a>>>0>>0?f:a)|0;a=f-a|0;a=a>>>0<=f>>>0?a:0;if(g>>>0>a>>>0){f=l<<8|m;d=((c+6|0)+h|0)+(a<<1)|0;while(1){c=K[d+1|0]|K[d|0]<<8;if(c){c=c+f&65535;if(c)break a}d=d+2|0;e=e+1|0;a=a+1|0;if(g>>>0>a>>>0)continue;break}}d=e-((g|0)!=0)|0}e=d>>>0<256?d+1|0:(d&-256)+256|0}d=e;if(d>>>0<65536)continue}break}e=0;c=0}J[b>>2]=e;return c|0}function d4(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,p=0;a:{if((a|0)>(b|0))break a;g=J[(c<<3)+e>>2]>J[(d<<3)+e>>2];k=g?c:d;h=k<<3;i= -J[h+f>>2];l=g?d:c;c=l<<3;j=J[c+f>>2];h=J[e+h>>2];g=J[c+e>>2];if(!((h|0)==(g|0)&(i|0)!=(j|0))){if((g|0)!=(h|0))m=td(i-j|0,h-g|0);o=i-h|0;p=j-g|0;c=a;while(1){d=c;n=c<<3;c=J[n+e>>2];b:{if((c|0)<=(g|0)){i=c+p|0;break b}i=c+o|0;if((c|0)>=(h|0))break b;i=Pc(c-g|0,m)+j|0}J[f+n>>2]=i;c=d+1|0;if((b|0)!=(d|0))continue;break}}h=f+4|0;e=e+4|0;d=J[e+(l<<3)>>2]>J[e+(k<<3)>>2];g=(d?l:k)<<3;c=J[h+g>>2];d=(d?k:l)<<3;f=J[d+h>>2];g=J[e+g>>2];d=J[d+e>>2];if((g|0)==(d|0)&(c|0)!=(f|0))break a;k=0;if((d|0)!=(g|0))k=td(c- -f|0,g-d|0);i=c-g|0;l=f-d|0;while(1){c=a;m=c<<3;a=J[m+e>>2];c:{if((a|0)<=(d|0)){j=a+l|0;break c}j=a+i|0;if((a|0)>=(g|0))break c;j=Pc(a-d|0,k)+f|0}J[h+m>>2]=j;a=c+1|0;if((b|0)!=(c|0))continue;break}}}function ZQa(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;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,817588,0);return}d=J[c+380>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+380>>2]=0;c=J[a+28>> -2];f=rk(2);d=J[c+116>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+116>>2]=f;c=J[a+8>>2];gc[J[J[c>>2]+108>>2]](c,J[a+28>>2]);e=O[b+24>>3];d=J[b+24>>2];h=O[b+8>>3];f=J[b+8>>2];i=J[b>>2];j=J[b+16>>2];c=J[a+28>>2];g=(J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3])*65536;b:{if(R(g)<2147483648){b=~~g;break b}b=-2147483648}J[c+132>>2]=b;e=((j|0)==1?+(d|0):e)*65536;c:{if(R(e)<2147483648){b=~~e;break c}b=-2147483648}J[c+128>>2]=b;e=((i|0)==1?+(f|0):h)*65536;d:{if(R(e)<2147483648){b=~~e;break d}b=-2147483648}J[c+124>>2]=b;b= -J[a+8>>2];gc[J[J[b>>2]+116>>2]](b,J[a+28>>2])}function MRa(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;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,817588,0);return}d=J[c+384>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+384>>2]=0;c=J[a+28>>2];f=rk(2);d=J[c+120>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+120>>2]=f;c=J[a+8>>2];gc[J[J[c>>2]+112>>2]](c,J[a+28>>2]);e=O[b+24>>3];d=J[b+24>>2];h=O[b+8>>3]; -f=J[b+8>>2];i=J[b>>2];j=J[b+16>>2];c=J[a+28>>2];g=(J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3])*65536;b:{if(R(g)<2147483648){b=~~g;break b}b=-2147483648}J[c+260>>2]=b;e=((j|0)==1?+(d|0):e)*65536;c:{if(R(e)<2147483648){b=~~e;break c}b=-2147483648}J[c+256>>2]=b;e=((i|0)==1?+(f|0):h)*65536;d:{if(R(e)<2147483648){b=~~e;break d}b=-2147483648}J[c+252>>2]=b;b=J[a+8>>2];gc[J[J[b>>2]+120>>2]](b,J[a+28>>2])}function gga(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;d=bc-16|0;bc=d;if(K[a+11|0]>>>7|0)g=J[a+4>> -2];else g=K[a+11|0]&127;e=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;h=c-b|0;a:{if(!h)break a;b:{if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(f>>>0<=b>>>0){if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(K[a+11|0]>>>7|0)i=J[a+4>>2];else i=K[a+11|0]&127;f=f+i>>>0>=b>>>0}else f=0;if(!f){if(e-g>>>0>>0)ly(a,e,(g-e|0)+h|0,g,g,0);if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;e=f+g|0;while(1){if((b|0)==(c|0))break b;H[e|0]=K[b|0];b=b+1|0;e=e+1|0;continue}}e=bc-16|0;bc=e;IQ(d,b,c);bc=e+16|0;b=d;if(K[d+11|0]>>>7|0)b=J[d>> -2];if(K[d+11|0]>>>7|0)c=J[d+4>>2];else c=K[d+11|0]&127;J[695492]=0;ga(2669,a|0,b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){ad(d);break a}a=Z()|0;ad(d);ba(a|0);B()}H[d+15|0]=0;H[e|0]=K[d+15|0];Nk(a,g+h|0)}bc=d+16|0;return a|0}function Jf(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=2147483632;J[b>>2]=2147483632;f=J[b+8>>2];J[b+16>>2]=f;e=J[b+20>>2];J[b+28>>2]=e;I[e+2>>1]=0;i=J[a+20>>2];k=J[a+28>>2]-i>>3;while(1){d=I[i+10>>1];h=d>>15;j=(d^h)-h|0;l=j&65535;h=I[i+8>>1];a:{b:{if((d|0)<0){d=K[J[i+ -12>>2]];c:{if((h|0)!=(g+1|0))break c;g=I[e+2>>1];if((d|0)!=K[J[e+4>>2]]|(g|0)>=0)break c;I[e+2>>1]=g-j;break b}H[f|0]=d;d=J[b+28>>2];e=d+8|0;J[b+28>>2]=e;g=J[b+16>>2];f=g+1|0;J[b+16>>2]=f;I[d+10>>1]=0-j;I[d+8>>1]=h;J[d+12>>2]=g;break b}if(!d)break a;tc(f,J[i+12>>2],l);d=J[b+28>>2];d:{e:{if((h|0)!=(J[b>>2]+1|0))break e;e=I[d+2>>1];if((e|0)<=0)break e;I[d+2>>1]=e+j;f=J[b+16>>2];e=d;break d}e=d+8|0;J[b+28>>2]=e;f=J[b+16>>2];I[d+10>>1]=j;I[d+8>>1]=h;J[d+12>>2]=f}f=f+l|0;J[b+16>>2]=f}g=(h+l|0)-1|0;J[b>> -2]=g}i=i+8|0;k=k-1|0;if(k)continue;break}J[b+4>>2]=J[a+4>>2];Cj(c,b)}function wf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=bc-16|0;bc=e;a:{if(!b)break a;if((a|0)==(b|0)){c=b;break a}f=J[b+12>>2];d=J[b+4>>2];g=P(f,d);h=g<<2;if(!a){a=x7(b);if(!a)break a;wc(J[a+40>>2],0,P(J[a+12>>2],J[a+4>>2])<<2);tc(J[a+40>>2],J[b+40>>2],h);c=a;break a}c=J[b>>2];if(!(!((c|0)!=J[a>>2]|(d|0)!=J[a+4>>2])&J[b+8>>2]==J[a+8>>2])){i=J[b+8>>2];J[a+4>>2]=(d|0)>0?d:0;J[a>>2]=(c|0)>0?c:0;if((i|0)>0)J[a+8>>2]=i;J[a+12>> -2]=f;c=J[a+40>>2];if(c){gc[J[659406]](c);J[a+40>>2]=0}c=0;d=gc[J[659405]](g<<2)|0;if(!d)break a;J[a+40>>2]=d}c=J[a+36>>2];J[e+8>>2]=c;if(c){xo(e+8|0);J[a+36>>2]=0}c=J[b+36>>2];b:{if(!c)break b;c=HM(c);if(!c)break b;d=J[a+36>>2];J[e+12>>2]=d;if(d)xo(e+12|0);J[a+36>>2]=c}J[a+20>>2]=J[b+20>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=J[b+28>>2];n7(a+32|0,J[b+32>>2]);tc(J[a+40>>2],J[b+40>>2],h);c=a}bc=e+16|0;return c|0}function Apa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;a:{b=J[b>>2];b:{if(b){d=c+8|0; -HT(d,b);J[695492]=0;aa(5144,a|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[c+8>>2];J[c+8>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}a=Z()|0;vc(c+8|0);ba(a|0);B()}J[a>>2]=0;J[a+4>>2]=J[682146];J[695492]=0;J[c+12>>2]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>> -2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}break a}b=Z()|0;vc(c+12|0);sc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2]}bc=c+16|0;return}ea(0)|0;yc();B()}function yAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;J[e+12>>2]=b;a:{if(!b)break a;d=K[b|0];if(K[a+16|0]|!d)break a;while(1){b:{f=b;c:{if((c|0)!=92){if((c|0)!=34){if(c)break c;c=(d|0)==34?34:0;break c}if((d|0)==34){c=0;break c}if((d|0)==92){c= -92;break c}if(d>>>0<32)break b;c=34;if((d|0)!=127)break c;break b}c=34;if(!pg(2388494,d<<24>>24,18))break b}b=f+1|0;d=K[f+1|0];if(d)continue;break a}break}H[a+16|0]=1}J[695492]=0;ia(5182,a|0,2390008,a|0,e+12|0);a=J[695492];J[695492]=0;d:{e:{if((a|0)==1){c=ea(2411712)|0;f:{if((cc|0)==(sa(2411712)|0)){a=na(c|0)|0;J[695492]=0;a=Mm(a,J[682138]);b=J[695492];J[695492]=0;if((b|0)!=1){if(!a)break f;J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)!=1)break d}c=Z()|0;J[695492]=0;ka(4893);a=J[695492];J[695492]= -0;if((a|0)==1)break e}ba(c|0);B()}ta()}bc=e+16|0;return}ea(0)|0;yc()}B()}function I3a(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;e=bc-112|0;bc=e;k=J[J[a+24>>2]+216>>2];j=k?a:a+12|0;g=j+4|0;a:{b:{c:{h=J[j+4>>2];d:{e:{if(!h){f=J[b>>2];J[e+4>>2]=f;i=e+8|0;tc(i,b,104);c=g;break e}f=J[b>>2];d=g;c=h;while(1){i=J[c+16>>2]<(f|0);d=i?d:c;c=J[(i?c+4|0:c)>>2];if(c)continue;break}if((d|0)!=(g|0)&J[d+16>>2]<=(f|0))break b;J[e+4>>2]=f;i=e+8|0;tc(i,b,104);while(1){c=h;b=J[c+16>>2];if((b|0)>(f|0)){h= -J[c>>2];if(h)continue;g=c;break e}if((b|0)>=(f|0))break d;h=J[c+4>>2];if(h)continue;break}g=c+4|0}J[695492]=0;d=$(4,124)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[d+16>>2]=f;tc(d+20|0,i,104);J[d+8>>2]=c;J[d>>2]=0;J[d+4>>2]=0;J[g>>2]=d;a=(k?0:12)+a|0;b=J[J[a>>2]>>2];if(b){J[a>>2]=b;d=J[g>>2]}Ic(J[j+4>>2],d);J[j+8>>2]=J[j+8>>2]+1}fj(e+84|0);break a}a=Z()|0;fj(e+84|0);ba(a|0);B()}tc(d+20|0,b,104)}bc=e+112|0}function hoa(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;e=J[a+12>>2];if(J[e+932>>2]!=8){f=K[b+11|0];f=f<<24>>24<0?J[b+4>>2]:f;if((f|0)>J[e+1268>>2]){g=J[e+1264>>2];if(g){qc(g);J[e+1264>>2]=0}J[e+1268>>2]=f;n=e,o=rc(f>>>0>1073741823?-1:f<<2),J[n+1264>>2]=o}J[e+1272>>2]=0;a:{if((f|0)<=0)break a;g=H[b+11|0]<0?J[b>>2]:b;h=J[e+1264>>2];b=0;if((f|0)!=1){i=f&-2;while(1){j=b<<2;k=J[j+g>>2];l=J[e+1272>>2];J[e+1272>>2]=l+1;J[h+(l<<2)>>2]=k;j=J[g+(j|4)>>2];k=J[e+1272>>2];J[e+1272>>2]=k+1;J[h+(k<<2)>>2]=j;b=b+2|0;m=m+2|0;if((i|0)!=(m|0))continue;break}}if(!(f& -1))break a;b=J[g+(b<<2)>>2];f=e;e=J[e+1272>>2];J[f+1272>>2]=e+1;J[h+(e<<2)>>2]=b}b=J[a+12>>2];e=b+1272|0;f=J[b+1264>>2];g=b+832|0;h=b+752|0;i=_t(g,h);if(!i){hn(g,h);O[b+912>>3]=O[b+864>>3]}oz(b+944|0,f,0,e,c,d,!i,b);H[J[a+12>>2]+928|0]=0}return 0}function eo(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=bc-16|0;bc=f;a:{if(!a)break a;if((b|0)<=0){b=Qc(a);if((b|0)<0)break a}g=gc[J[659450]](b+1|0)|0;if(!g){J[f>>2]=33958;Cc(0,0,0,0,0,30,2,3,33958,0,0,0,32863,f);break a}e=g;if(b)while(1){b:{c:{h=K[a|0];if((h| -0)!=37|b>>>0<3)break c;c=K[a+1|0];d=c-48|0;i=(d&255)>>>0<10;if(!i)if(((c&-33)-71&255)>>>0<250)break c;j=K[a+2|0];if((j-58&255)>>>0<=245)if(((j&-33)-71&255)>>>0<250)break c;d:{e:{if(i)break e;if((c-97&255)>>>0<=5){d=c-87|0;break e}if((c-65&255)>>>0>5)break d;d=c-55|0}H[e|0]=d}c=K[a+2|0];d=c-48|0;f:{g:{if((d&255)>>>0<=9){d=d+(K[e|0]<<4)|0;break g}d=(c+(K[e|0]<<4)|0)-87|0;if((c-97&255)>>>0<=5)break g;if((c-65&255)>>>0>5)break f;d=(c+(K[e|0]<<4)|0)-55|0}H[e|0]=d}c=-3;a=a+3|0;break b}H[e|0]=h;c=-1;a=a+ -1|0}e=e+1|0;b=b+c|0;if(b)continue;break}H[e|0]=0;e=g}bc=f+16|0;return e}function e9a(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=bc-32|0;bc=e;J[e+28>>2]=d;J[e+24>>2]=d;H[e+20|0]=0;J[e+8>>2]=a;J[e+16>>2]=e+28;J[e+12>>2]=e+24;a:{b:{c:{d:{if((b|0)==(c|0)){f=d;break d}f=J[e+28>>2];while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;a=J[b+4>>2];g=J[b>>2];if((a|0)!=(g|0)){a=a-g|0;g=a>>2;if(g>>>0>=1073741824){J[695492]=0;J[e+28>>2]=f;_(2266,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}J[695492]= -0;a=$(4,a|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break b;J[d+4>>2]=a;J[d>>2]=a;J[d+8>>2]=(g<<2)+a;f=J[b>>2];g=J[b+4>>2];if((f|0)!=(g|0))while(1){N[a>>2]=N[f>>2];a=a+4|0;f=f+4|0;if((g|0)!=(f|0))continue;break}J[d+4>>2]=a}f=d+12|0;d=f;b=b+12|0;if((c|0)!=(b|0))continue;break}J[e+28>>2]=d}bc=e+32|0;return f|0}a=Z()|0;b=J[d>>2];if(!b)break a;J[d+4>>2]=b;qc(b);break a}a=Z()|0;J[e+28>>2]=f}iL(e+8|0);ba(a|0);B()}function CLa(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;a:{if(!a)break a; -d=J[a>>2];if(!d)break a;j=J[d+668>>2];k=J[d+676>>2];f=b?J[b>>2]:f;g=c?J[c>>2]:g;i=bc-160|0;bc=i;if(f)wX(d,f);if(g)wX(d,g);QW(d);rd(d,J[d+268>>2]);rd(d,J[d+680>>2]);rd(d,J[d+748>>2]);rd(d,J[d+740>>2]);rd(d,J[d+588>>2]);rd(d,J[d+592>>2]);e=J[d+632>>2];if(e&4096){EX(d,J[d+388>>2]);e=J[d+632>>2]}h=e&-4097;J[d+632>>2]=h;if(e&8192){rd(d,J[d+504>>2]);h=J[d+632>>2]}e=h&-8193;J[d+632>>2]=e;if(h&8){rd(d,J[d+596>>2]);e=J[d+632>>2]}J[d+632>>2]=e&-9;kl(d+212|0);rd(d,J[d+544>>2]);l=tc(i,d,156);m=J[d+164>>2];h= -J[d+160>>2];i=J[d+168>>2];e=J[d+676>>2];wc(d+156|0,0,612);J[d+676>>2]=e;J[d+168>>2]=i;J[d+160>>2]=h;J[d+164>>2]=m;tc(d,l,156);bc=l+160|0;if(f){fp(d,f,16384,-1);ft(f,k,j);J[b>>2]=0}if(g){fp(d,g,16384,-1);ft(g,k,j);J[c>>2]=0}ft(d,k,j);J[a>>2]=0}}function oP(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;J[e+8>>2]=J[a+4>>2];J[e+4>>2]=J[a>>2];J[e>>2]=J[b+4>>2];f=J[e+4>>2];h=J[e>>2];g=bc-16|0;bc=g;d=bc-32|0;bc=d;c=bc-16|0;bc=c;J[c+12>>2]=J[e+8>>2];J[c+8>>2]=f;J[d+24>>2]=J[c+12>>2];J[d+28>> -2]=J[c+8>>2];bc=c+16|0;f=J[d+24>>2];c=bc-16|0;bc=c;J[c+8>>2]=J[d+28>>2];J[c+12>>2]=f;J[c+4>>2]=h;while(1){f=J[c+12>>2];if((f|0)!=J[c+8>>2]){J[J[c+4>>2]-4>>2]=J[f-4>>2];J[c+12>>2]=J[c+12>>2]-4;J[c+4>>2]=J[c+4>>2]-4;continue}break}J[d+16>>2]=J[c+12>>2];J[d+20>>2]=J[c+4>>2];bc=c+16|0;J[d+12>>2]=J[d+16>>2];J[d+8>>2]=J[d+20>>2];J[g+8>>2]=J[d+12>>2];J[g+12>>2]=J[d+8>>2];bc=d+32|0;bc=g+16|0;J[e+12>>2]=J[g+12>>2];J[b+4>>2]=J[e+12>>2];d=J[a>>2];J[a>>2]=J[b+4>>2];J[b+4>>2]=d;d=J[a+4>>2];J[a+4>>2]=J[b+8>>2]; -J[b+8>>2]=d;d=J[a+8>>2];J[a+8>>2]=J[b+12>>2];J[b+12>>2]=d;J[b>>2]=J[b+4>>2];bc=e+16|0}function CZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;b=J[b+84>>2];f=P(J[b+44>>2],I[c+22>>1]);g=J[d>>2]+e|0;a=J[a+332>>2]+128|0;h=P(J[b+32>>2],L[c+16>>1]);j=P(J[b>>2],L[c>>1]);i=(h+j|0)+4|0;k=P(J[b+40>>2],L[c+20>>1]);l=P(J[b+8>>2],L[c+4>>1]);m=k+l|0;n=i+m<<13;o=P(J[b+12>>2],I[c+6>>1]);p=o+f|0;q=P(J[b+36>>2],I[c+18>>1]);b=P(J[b+4>>2],I[c+2>>1]);c=q+b|0;r=P(p+ -c|0,4433);c=r+P(c,6270)|0;H[g|0]=K[a+(n+c>>>16&1023)|0];H[g+3|0]=K[a+(n-c>>>16&1023)|0];c=P(p,-15137)+r|0;i=i-m<<13;H[g+1|0]=K[a+(c+i>>>16&1023)|0];H[g+2|0]=K[a+(i-c>>>16&1023)|0];g=o-f|0;f=b-q|0;c=P(g+f|0,4433);b=J[d+4>>2]+e|0;d=c+P(f,6270)|0;e=(j-h|0)+4|0;f=l-k|0;h=e+f<<13;H[b|0]=K[a+(d+h>>>16&1023)|0];H[b+3|0]=K[a+(h-d>>>16&1023)|0];c=c+P(g,-15137)|0;d=e-f<<13;H[b+1|0]=K[a+(c+d>>>16&1023)|0];H[b+2|0]=K[a+(d-c>>>16&1023)|0]}function I1a(){var a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-16|0;bc= -d;a=J[689474];if(a){J[689474]=0;ir(a)}if(J[689351]){f=1;while(1){a:{J[d+12>>2]=-1;e=0;a=m1(J[689351],d+12|0);if(!a)break a;while(1){b=J[a+4>>2];b:{if(!J[b+4>>2]){c=J[689351];if(J[a>>2]>=0){J[c+24>>2]=J[c+24>>2]-1;g=J[a+4>>2];h=J[c+16>>2];c:{if(!h)break c;i=J[a+8>>2];if(!i)break c;gc[h|0](i)}c=J[c+20>>2];if(g?c:0)gc[c|0](g);J[a+8>>2]=0;J[a>>2]=-2147483648;J[a+4>>2]=0}H[b+16|0]=0;j=j+1|0;if(J[b+4>>2])break b;a=J[J[b+20>>2]+8>>2];if(a)gc[a|0](b);a=J[b+8>>2];if(a)Ih(a);Gf(b);break b}e=e+1|0}a=m1(J[689351], -d+12|0);if(a)continue;break}a=(e|0)>0&f;f=0;if(a)continue}break}}bc=d+16|0;a=J[689351];if(!(!a|J[a+24>>2])){n1(a);J[689351]=0}I[1378706]=0;a=J[689354];if(a){Gf(a);J[689354]=0}J[689355]=0;J[689372]=0;H[2757424]=0;H[2757400]=0;J[689349]=0;return!J[689351]|0}function aFa(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;if((b|0)==-1)return 0;h=J[a+8>>2];i=J[a+12>>2];a:{d=J[a+28>>2];e=J[a+24>>2];b:{if((d|0)!=(e|0))c=J[a+44>>2];else{c=-1;if(!(K[a+48|0]&16))break b;j=J[a+44>>2];f=J[a+20>>2];J[695492]= -0;c=a+32|0;da(3256,c|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break a;d=J[a+40>>2];g=H[a+43|0];J[695492]=0;ca(3525,c|0,((g|0)>=0?1:(d&2147483647)-1|0)|0,0);d=J[695492];J[695492]=0;if((d|0)==1)break a;d=K[a+43|0];g=d<<24>>24<0;c=g?J[a+32>>2]:c;J[a+20>>2]=c;e=c+(e-f&-4)|0;J[a+24>>2]=e;d=c+((g?J[a+36>>2]:d)<<2)|0;J[a+28>>2]=d;c=c+(j-f&-4)|0}f=e+4|0;c=c>>>0>f>>>0?c:f;J[a+44>>2]=c;if(K[a+48|0]&8){J[a+16>>2]=c;c=H[a+43|0]<0?J[a+32>>2]:a+32|0;J[a+8>>2]=c;J[a+12>>2]=c+(i-h&-4)}if((d|0)==(e|0))return gc[J[J[a>> -2]+52>>2]](a,b)|0;J[a+24>>2]=f;J[e>>2]=b;c=b}return c|0}na(ea(0)|0)|0;ta();return-1}function fS(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;Oc(b,2443304,-1);Oc(b,2443656,-1);Oc(b,2443696,-1);Oc(b,2443756,-1);H[f+15|0]=0;Vu(a,b,f+15|0);az(a,b);Oc(b,2443800,-1);e=bc-16|0;bc=e;c=2449880;a:{b:{if(!(J[a+616>>2]==J[a+620>>2]|J[a+60>>2]!=1)){Oc(b,2449552,-1);Oc(b,2449596,-1);c=J[a+616>>2];if((c|0)!=J[a+620>>2])while(1){c=(g<<3)+c|0;d=J[c>>2];J[e+8>>2]=d;c=J[c+4>>2];J[e+12>>2]=c;if(c)J[c+4>>2]=J[c+4>> -2]+1;h=J[J[d>>2]+12>>2];J[695492]=0;da(h|0,d|0,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break b;c:{if(!c)break c;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break c;gc[J[J[c>>2]+8>>2]](c);Vc(c)}g=g+1|0;c=J[a+616>>2];if(g>>>0>2]-c>>3>>>0)continue;break}Oc(b,2449660,-1);Oc(b,2449728,-1);Oc(b,2449776,-1);eS(b);c=2449824}Oc(b,c,-1);bc=e+16|0;break a}a=Z()|0;Ie(e+8|0);ba(a|0);B()}Oc(b,2443848,-1);Oc(b,2443892,-1);bc=f+16|0}function CVa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;J[a+8>>2]= -0;J[a>>2]=0;J[a+4>>2]=0;H[d+4|0]=0;J[d>>2]=a;a:{b:{c:{c=J[b+4>>2];if(c){if(c>>>0>=357913942){J[695492]=0;_(3313,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;B()}J[695492]=0;c=P(c,12);e=$(4,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break c;J[a+4>>2]=e;J[a>>2]=e;J[a+8>>2]=c+e;b=J[b>>2];J[d+28>>2]=e;J[d+24>>2]=e;H[d+20|0]=0;J[d+8>>2]=a+8;f=b+c|0;J[d+16>>2]=d+28;J[d+12>>2]=d+24;c=e;while(1){d:{if(H[b+11|0]>=0){g=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];break d}g=J[b+4>>2];h=J[b>> -2];J[695492]=0;ca(2672,c|0,h|0,g|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;c=J[d+28>>2]}c=c+12|0;J[d+28>>2]=c;b=b+12|0;if((f|0)!=(b|0))continue;break}J[a+4>>2]=c}bc=d+32|0;return a|0}b=Z()|0;break a}b=Z()|0;LK(d+8|0);J[a+4>>2]=e}V1(d);ba(b|0);B()}function s9(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[J[a+4>>2]>>2]>0)while(1){d=0;c=0;a:{g=J[a+4>>2];h=J[g>>2];if((h|0)>0){k=J[J[g+8>>2]>>2];e=1;b:{if((h|0)<=1)break b;f=h-1&3;if(f)while(1){i=J[g+8>>2];l=i+(d<<2)|0;d=e;J[l>>2]=J[(d<<2)+ -i>>2];e=d+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}if(h-2>>>0<3)break b;while(1){c=d<<2;d=J[g+8>>2];f=c+d|0;c=d;d=e<<2;J[f>>2]=J[c+d>>2];c=J[g+8>>2];i=c+d|0;f=c;c=d+4|0;J[i>>2]=J[f+c>>2];f=c;c=J[g+8>>2];d=d+8|0;J[f+c>>2]=J[d+c>>2];c=J[g+8>>2];f=c+d|0;d=e+3|0;J[f>>2]=J[c+(d<<2)>>2];e=e+4|0;if((h|0)!=(e|0))continue;break}}J[g>>2]=h-1;break a}fa(197852,198881,594,212186);B()}qc(k);if(J[J[a+4>>2]>>2]>0)continue;break}if(J[b>>2]<=0)return 0;c:{while(1){e=IN(J[b+4>>2]+(j<<4)|0);if(!e)return-1;if(i9(J[a+ -4>>2],e))break c;j=j+1|0;if((j|0)>2])continue;break}return 0}return-1}function vha(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;i=bc-32|0;bc=i;a:{b:{c:{if((b|0)!=(c|0)){k=J[694731];J[694731]=0;g=bc-16|0;bc=g;Wg();f=bc-16|0;bc=f;e=bc-16|0;bc=e;nF(e,b,i+28|0,2);h=J[e>>2];j=J[e+4>>2];b=f;f=J[e+12>>2];J[b+8>>2]=J[e+8>>2];J[b+12>>2]=f;J[b>>2]=h;J[b+4>>2]=j;bc=e+16|0;f=J[b>>2];h=J[b+4>>2];e=g;g=J[b+12>>2];J[e+8>>2]=J[b+8>>2];J[e+12>>2]=g;J[e>>2]=f;J[e+4>>2]=h;bc= -b+16|0;g=J[e>>2];f=J[e+4>>2];h=J[e+12>>2];b=i;J[b+16>>2]=J[e+8>>2];J[b+20>>2]=h;J[b+8>>2]=g;J[b+12>>2]=f;bc=e+16|0;e=J[b+16>>2];f=J[b+20>>2];g=J[b+8>>2];h=J[b+12>>2];j=J[694731];if(!j)break c;if(J[b+28>>2]!=(c|0))break b;l=g;m=h;n=e;o=f;if((j|0)!=68)break a;break b}J[d>>2]=4;break a}J[694731]=k;if(J[i+28>>2]==(c|0))break a}J[d>>2]=4;g=l;h=m;e=n;f=o}J[a>>2]=g;J[a+4>>2]=h;J[a+8>>2]=e;J[a+12>>2]=f;bc=i+32|0}function pL(a,b,c){a:switch(c-1|0){case 0:J[b>>2]=J[a+4>>2];return;case 1:J[b>>2]=J[a+4>>2]+J[a+ -12>>2];J[b+4>>2]=J[a+8>>2]+J[a+12>>2];return;case 2:J[b>>2]=J[a+4>>2]+(J[a+12>>2]+(J[a+20>>2]+J[a+28>>2]|0)|0);J[b+4>>2]=J[a+8>>2]+(J[a+12>>2]+(J[a+24>>2]+J[a+28>>2]|0)|0);J[b+8>>2]=J[a+16>>2]+(J[a+20>>2]+(J[a+24>>2]+J[a+28>>2]|0)|0);return;default:break a}J[b>>2]=J[a+4>>2]+(J[a+12>>2]+(J[a+20>>2]+(J[a+28>>2]+(J[a+36>>2]+(J[a+44>>2]+(J[a+52>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+4>>2]=J[a+8>>2]+(J[a+12>>2]+(J[a+24>>2]+(J[a+28>>2]+(J[a+40>>2]+(J[a+44>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+ -8>>2]=J[a+16>>2]+(J[a+20>>2]+(J[a+24>>2]+(J[a+28>>2]+(J[a+48>>2]+(J[a+52>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+12>>2]=J[a+32>>2]+(J[a+36>>2]+(J[a+40>>2]+(J[a+44>>2]+(J[a+48>>2]+(J[a+52>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0)}function Oob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+428>>2];H[d+8|0]=K[b+32|0];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+9|0]=c;H[d+10|0]=c>>>8;H[d+11|0]=c>>>16;H[d+12|0]=c>>>24;h=d+8|0;c=K[b+40|0];a:{if(!c){f=5;break a}H[d+13|0]=c; -c=J[b+44>>2];if(!(J[b+52>>2]|(c|0)!=1)){f=6;c=1;if(J[b+48>>2]==2147483647)break a}c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+14|0]=c;H[d+15|0]=c>>>8;H[d+16|0]=c>>>16;H[d+17|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+18|0]=c;H[d+19|0]=c>>>8;H[d+20|0]=c>>>16;H[d+21|0]=c>>>24;f=J[b+52>>2];if(!f){f=14;break a}c=d+22|0;f=(f<<2)+14|0;d=J[b+56>>2];while(1){e=J[d>>2];e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[c|0]=e;H[c+1|0]=e>>>8;H[c+2|0]=e>>>16;H[c+3|0]=e>>>24;d=d+4|0;c=c+ -4|0;g=g+1|0;if(g>>>0>2])continue;break}}return ue(a,J[b>>2],f,h)|0}function H6(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;a:{if((c|0)<=0)break a;i=d-8|0;j=d+7|0;f=c-1|0;c=0;if((d|0)<=15){k=16-d|0;while(1){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);h=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);g=c+d|0;h=h>>>32-g<>>8)&65535)>>>k<<2)+e|0;H[a|0]=K[h|0];H[a+1|0]=K[h+1|0];H[a+2|0]=K[h+2|0];b:{if((g|0)<8){c=g;break b}g=(c+j|0)-((g|0)>=15?15:g)|0;c=(c+i|0)-(g&-8)|0;b=b+1+(g>>> -3)|0}a=a+3|0;g=(f|0)>0;f=f-1|0;if(g)continue;break}break a}while(1){g=f;f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24);f=c+d|0;h=h>>>32-f|0;h=(((h<<8|(h&65280)>>>8)&65535)<<2)+e|0;H[a|0]=K[h|0];H[a+1|0]=K[h+1|0];H[a+2|0]=K[h+2|0];c:{if((f|0)>=8){f=(c+j|0)-((f|0)>=15?15:f)|0;c=(c+i|0)-(f&-8)|0;b=b+1+(f>>>3)|0;break c}c=f}a=a+3|0;f=g-1|0;if((g|0)>0)continue;break}}}function HFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;e=a+ -16|0;d=e;J[d>>2]=0;J[d+4>>2]=0;g=a+32|0;d=g;J[d>>2]=0;J[d+4>>2]=0;J[a+12>>2]=e;J[a+28>>2]=d;J[695492]=0;d=$(3193,a+40|0)|0;c=J[695492];J[695492]=0;e=a+28|0;a:{if((c|0)!=1){J[a+52>>2]=0;c=a+44|0;J[c>>2]=0;J[c+4>>2]=0;J[695492]=0;f=bc-16|0;bc=f;bc=f+16|0;f=J[695492];J[695492]=0;if((f|0)==1){b=Z()|0;sg(c);c=J[d>>2];if(c){gc[J[J[c>>2]+4>>2]](c);J[d>>2]=0}break a}J[a+56>>2]=b;b=a- -64|0;J[a+60>>2]=b;J[b>>2]=0;J[b+4>>2]=0;Ss(e,J[a+32>>2]);J[a+28>>2]=g;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;return a|0}b= -Z()|0}Ss(e,J[a+32>>2]);Rt(a+12|0,J[a+16>>2]);d=J[a>>2];if(d){e=d;c=J[a+4>>2];if((d|0)!=(c|0)){while(1){if(H[c-1|0]<0)qc(J[c-12>>2]);if(H[c-13|0]<0)qc(J[c-24>>2]);c=c-40|0;if((d|0)!=(c|0))continue;break}e=J[a>>2]}J[a+4>>2]=d;qc(e)}ba(b|0);B()}function IS(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;d=bc-16|0;bc=d;c=a+8|0;a:{if(HS(c,b))break a;hn(c,b);b=J[a>>2];J[d+12>>2]=J[a+72>>2];O[d>>3]=Q(O[a+40>>3]);gc[J[J[b>>2]+148>>2]](b,a+12|0,d+12|0,d,2431312,2431320)|0;b=J[a>>2];gc[J[J[b>>2]+76>>2]](b); -b=J[a>>2];i=a,j=+(gc[J[J[b>>2]+48>>2]](b)|0),O[i+80>>3]=j;b=J[a>>2];i=a,j=+(gc[J[J[b>>2]+52>>2]](b)|0),O[i+88>>3]=j;b=J[a>>2];i=a,j=+(gc[J[J[b>>2]+56>>2]](b)|0),O[i+96>>3]=j;b=J[a>>2];f=+(gc[J[J[b>>2]+44>>2]](b)|0);O[a+104>>3]=f;O[a+112>>3]=O[a+88>>3]*.35277777777777775*O[a+40>>3]/f;GS(a);b=K[a+131|0];e=b<<24>>24<0;if(e?J[a+124>>2]:b)break a;b=a+120|0;c=a+24|0;g=K[a+35|0];h=g<<24>>24;if(!e){if((h|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}yf(b,J[a+24>>2],J[a+28>>2]); -break a}e=b;b=(h|0)<0;Df(e,b?J[a+24>>2]:c,b?J[a+28>>2]:g)}bc=d+16|0}function m3a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=bc-16|0;bc=b;a:{b:{if(!a){d=3;break b}c:{if(!a)break c;a=J[a+96>>2];c=J[J[a>>2]+32>>2];if(!c)break c;d=gc[c|0](a,239453)|0}c=Qc(d);if(c>>>0>=2147483632)break a;a=d;d:{if(c>>>0<=10){H[b+15|0]=c;e=b+4|0;break d}d=(c|15)+1|0;e=rc(d);J[b+12>>2]=d|-2147483648;J[b+4>>2]=e;J[b+8>>2]=c}d=0;f=Zc(e,a,c)+c|0,g=0,H[f|0]=g;e=K[b+15|0];c=e<<24>>24;a=(c|0)<0;e:{f:{g:switch((a?J[b+8>>2]:e)-3|0){case 5:a= -(c|0)<0?J[b+4>>2]:b+4|0;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1702195796|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=1701869908)break f;d=1;break e;case 0:if(Wc((c|0)<0?J[b+4>>2]:b+4|0,21295,3))break f;d=2;break e;case 8:break g;default:break f}if(!Wc(a?J[b+4>>2]:b+4|0,20453,11))break e}d=3}if((c|0)>=0)break b;qc(J[b+4>>2])}bc=b+16|0;return d|0}Id(b+4|0);B()}function Jg(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=J[a+12>>2];c=J[e>>2];f=J[c+4>>2];d=J[a+4>>2];b=J[c>>2];J[a+4>>2]=b;g=e;e= -b>>>0<=d>>>0;J[g>>2]=J[c+(e?12:8)>>2];d=J[a+8>>2];while(1){a:{if(d){b=J[a>>2];break a}b:{c:{d:{e:{if(!J[a+32>>2]){c=J[a+24>>2];d=J[c+8>>2];if(d&7)break e;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;break e}b=J[c+28>>2];J[c+28>>2]=b-1;f:{if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;b=K[b|0];break f}b=jd(c,1);if((b|0)==-1)break e}d=K[a+28|0];H[a+28|0]=b;c=J[a>>2];if((d|0)!=255)break d;if((b|0)>=144)break c;b=(b<<9)+c|0;d=7;break a}b=J[a>>2]+65280|0;break b}J[a+32>> -2]=1;d=K[a+28|0];b=255;H[a+28|0]=255;c=J[a>>2];if((d|0)==255)break c}d=8;b=(b<<8)+c|0;break a}b=c+65280|0}d=8}d=d-1|0;J[a+8>>2]=d;J[a>>2]=b<<1;b=J[a+4>>2];J[a+4>>2]=b<<1;if(!(b&16384))continue;break}return e^f}function pXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-32|0;bc=c;a:{if(!J[a+168>>2])break a;d=J[b+492>>2];if(!d)break a;e=J[a+104>>2];O[c+16>>3]=O[b+496>>3];b=c+16|0;gc[J[J[e>>2]+252>>2]](e,b)|0;J[c+16>>2]=0;H[c+27|0]=0;J[c+4>>2]=0;H[c+15|0]=0;e=J[a+168>>2];f=J[a+160>>2];g=J[a+164>> -2];J[695492]=0;h=e;e=c+4|0;oa(3227,g|0,f|0,h|0,d|0,b|0,e|0);d=J[695492];J[695492]=0;b:{c:{if((d|0)==1)break c;d=K[c+27|0];if(!(d<<24>>24<0?J[c+20>>2]:d))break b;d=J[a+104>>2];f=J[J[d>>2]+244>>2];J[695492]=0;aa(f|0,d|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;a=J[a+104>>2];b=J[J[a>>2]+236>>2];J[695492]=0;aa(b|0,a|0,e|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);if(H[c+27|0]<0)qc(J[c+16>>2]);ba(a|0);B()}if(H[c+15|0]<0)qc(J[c+4>>2]);if(H[c+27|0]>=0)break a; -qc(J[c+16>>2])}bc=c+32|0}function _rb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{if(K[d+56|0]){if((b|0)>0)while(1){if(!e){h=K[g|0];f=6;e=192;g=g+1|0}i=(e&h)>>>f|0;if(i>>>0>=M[d+64>>2])break b;b=P(i,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];H[c+2|0]=K[b+70|0];H[c+3|0]=i>>>0>=M[d+844>>2]?255:K[(d+i|0)+848|0];f=f-2|0;c=c+4|0;e=(e&252)>>>2|0;j=j+1|0;if((j|0)>2])continue;break}H[a+649| -0]=0;return 0}if((b|0)>0)while(1){if(!e){j=K[g|0];f=6;e=192;g=g+1|0}b=(e&j)>>>f|0;if(b>>>0>=M[d+64>>2])break a;b=P(b,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];b=K[b+70|0];H[c+3|0]=255;H[c+2|0]=b;f=f-2|0;c=c+4|0;e=(e&252)>>>2|0;h=h+1|0;if((h|0)>2])continue;break}H[a+649|0]=1;return 0}Dc(a,1042,0,0);return 1042}Dc(a,1042,0,0);return 1042}function Zrb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+ -88>>2];a:{b:{if(K[d+56|0]){if((b|0)>0)while(1){if(!e){h=K[g|0];f=4;e=240;g=g+1|0}i=(e&h)>>>f|0;if(i>>>0>=M[d+64>>2])break b;b=P(i,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];H[c+2|0]=K[b+70|0];H[c+3|0]=i>>>0>=M[d+844>>2]?255:K[(d+i|0)+848|0];f=f-4|0;c=c+4|0;e=(e&240)>>>4|0;j=j+1|0;if((j|0)>2])continue;break}H[a+649|0]=0;return 0}if((b|0)>0)while(1){if(!e){j=K[g|0];f=4;e=240;g=g+1|0}b=(e&j)>>>f|0;if(b>>>0>=M[d+64>>2])break a;b=P(b,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];b=K[b+70|0];H[c+ -3|0]=255;H[c+2|0]=b;f=f-4|0;c=c+4|0;e=(e&240)>>>4|0;h=h+1|0;if((h|0)>2])continue;break}H[a+649|0]=1;return 0}Dc(a,1042,0,0);return 1042}Dc(a,1042,0,0);return 1042}function Rga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=bc-32|0;bc=f;J[f+28>>2]=b;a:{if(!(J[c+4>>2]&1)){c=gc[J[J[a>>2]+24>>2]](a,b,c,d,e)|0;break a}b=f+16|0;a=J[c+28>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;a=$(6641,b|0)|0;c=J[695492];J[695492]=0;b:{if((c|0)!=1){c=J[b>>2];d=J[c+4>>2]-1|0;J[c+4>>2]=d;if((d| -0)==-1)gc[J[J[c>>2]+8>>2]](c);c:{if(e){gc[J[J[a>>2]+24>>2]](b,a);break c}gc[J[J[a>>2]+28>>2]](f+16|0,a)}g=f,h=oi(f+16|0),J[g+12>>2]=h;while(1){a=f+16|0;g=f,h=Oo(a),J[g+8>>2]=h;if(J[f+12>>2]==J[f+8>>2]){c=J[f+28>>2];Ze(a);break a}a=J[J[f+12>>2]>>2];J[695492]=0;aa(6666,f+28|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[f+12>>2]=J[f+12>>2]+4;continue}break}c=Z()|0;Ze(f+16|0);break b}c=Z()|0;a=J[f+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a)}ba(c|0);B()}bc=f+32|0;return c| -0}function Nca(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;f=bc-16|0;bc=f;J[f+12>>2]=0;if(K[b+11|0]>>>7|0)b=J[b>>2];J[f+8>>2]=J[694731];J[694731]=0;e=bc-16|0;bc=e;j=f+12|0;d=bc-224|0;bc=d;wc(d+16|0,0,144);h=d+160|4;J[d+24>>2]=h;J[d+60>>2]=h;J[d+92>>2]=-1;J[d+64>>2]=60;J[d+20>>2]=h;J[d+48>>2]=7032;i=b;while(1){g=b;b=b+4|0;if(uQ(J[g>>2]))continue;break}J[d+100>>2]=g;b=d+16|0;lk(b,0,0);oF(d,b,1,1);h=J[d+8>>2];k=J[d+12>>2];b=J[d>>2];l=J[d+4>>2];if(j){m=g;g=J[d+136>>2]+(J[d+ -20>>2]-J[d+60>>2]|0)|0;J[j>>2]=g?m+(g<<2)|0:i}J[e+8>>2]=h;J[e+12>>2]=k;J[e>>2]=b;J[e+4>>2]=l;bc=d+224|0;n=Gy(J[e>>2],J[e+4>>2],J[e+8>>2],J[e+12>>2]);bc=e+16|0;b=J[694731];J[694731]=J[f+8>>2];J[f+8>>2]=b;a:{b:{if(J[f+8>>2]!=68){b=J[f+12>>2];if((b|0)==(i|0))break b;if(c)J[c>>2]=b-i>>2;bc=f+16|0;break a}Vr(a);B()}gy(a);B()}return+n}function $rb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{if(K[d+ -56|0]){if((b|0)>0)while(1){if(!e){h=K[g|0];f=7;e=128;g=g+1|0}i=(e&h)>>>f|0;if(i>>>0>=M[d+64>>2])break b;b=P(i,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];H[c+2|0]=K[b+70|0];H[c+3|0]=i>>>0>=M[d+844>>2]?255:K[(d+i|0)+848|0];f=f-1|0;c=c+4|0;e=(e&254)>>>1|0;j=j+1|0;if((j|0)>2])continue;break}H[a+649|0]=0;return 0}if((b|0)>0)while(1){if(!e){j=K[g|0];f=7;e=128;g=g+1|0}b=(e&j)>>>f|0;if(b>>>0>=M[d+64>>2])break a;b=P(b,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];b=K[b+70|0];H[c+3|0]=255;H[c+2|0]=b; -f=f-1|0;c=c+4|0;e=(e&254)>>>1|0;h=h+1|0;if((h|0)>2])continue;break}H[a+649|0]=1;return 0}Dc(a,1042,0,0);return 1042}Dc(a,1042,0,0);return 1042}function Y3a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a=J[a+8>>2];if(!a)return 0;g=J[a+188>>2];if(g){a=0;c=K[b+11|0];h=c<<24>>24<0;d=h?J[b+4>>2]:c;c=rc(d+1|0);H[c+d|0]=0;a:{if((d|0)<=0)break a;b=h?J[b>>2]:b;if(d>>>0>=4){h=d&-4;while(1){H[a+c|0]=J[(a<<2)+b>>2];f=a|1;H[f+c|0]=J[(f<<2)+b>>2];f=a|2;H[f+c|0]=J[(f<<2)+b>>2];f=a|3;H[f+c|0]=J[(f<<2)+b>> -2];a=a+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}d=d&3;if(!d)break a;e=0;while(1){H[a+c|0]=J[(a<<2)+b>>2];a=a+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}e=0;b:{if(!(J[g+8>>2]&512)|(!g|!c))break b;c:{d:{a=J[g+128>>2];b=J[a+40>>2];switch(b+2|0){case 0:break b;case 2:break d;default:break c}}b=J[g+96>>2];d=J[J[b>>2]+32>>2];e:{if(!d){b=0;break e}b=gc[d|0](b,239993)|0;a=J[g+128>>2]}J[a+40>>2]=b?b:-2}if(!b)break b;a=J[b+4>>2];if(!a)break b;e=gc[a|0](g,c)|0}qc(c)}return e|0}function X6(a){var b=0,c=0, -d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=bc-16|0;bc=g;J[g+12>>2]=0;d=251984;b=48;a:{while(1){d=d+1|0;if((b&255)==32)while(1){b=K[d|0];d=d+1|0;if((b|0)==32)continue;break}f=b&255;if(b<<24>>24<0){c=f>>>0<240;b=f>>>0<224;e=b?1:c?2:3;f=(b?31:c?15:7)&f;c=0;b=d;while(1){f=K[b|0]&63|f<<6;b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}d=d+e|0}h=J[J[a+36>>2]>>2];c=0;while(1){b=K[d|0];if((b|32)!=32){d=d+1|0;c=b;if(b<<24>>24>=0)continue;e=b>>>0<240;b=b>>>0<224;i=b?1:e?2:3;c=(b?31:e?15:7)&c;e=0;b=d;while(1){c=K[b|0]& -63|c<<6;b=b+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}d=d+i|0;continue}break}b:{if(c){bD(h,0,g+12|0);break b}b=rh(h,f);bD(J[J[a+36>>2]>>2],b,g+12|0);if(!b)break b;b=j;j=1;c=J[g+12>>2];if(!b){k=c;break b}if((c|0)==(k|0))break b;b=0;break a}b=K[d|0];if(b)continue;break}b=1}H[a+32|0]=b;bc=g+16|0}function H2a(a,b){a=a|0;b=b|0;var c=0,d=0;d=bc-16|0;bc=d;a:{b:{c:{d:{if(b){b=d+4|0;HK(b);J[695492]=0;b=aa(2827,a+72|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;if(H[d+15|0]<0)qc(J[d+4>>2]);if(b)break d}b= -rc(80);J[d+4>>2]=b;J[d+8>>2]=16;J[d+12>>2]=-2147483628;c=J[87809];J[b+56>>2]=J[87808];J[b+60>>2]=c;c=J[87807];J[b+48>>2]=J[87806];J[b+52>>2]=c;c=J[87805];J[b+40>>2]=J[87804];J[b+44>>2]=c;c=J[87803];J[b+32>>2]=J[87802];J[b+36>>2]=c;c=J[87801];J[b+24>>2]=J[87800];J[b+28>>2]=c;c=J[87799];J[b+16>>2]=J[87798];J[b+20>>2]=c;c=J[87797];J[b+8>>2]=J[87796];J[b+12>>2]=c;c=J[87795];J[b>>2]=J[87794];J[b+4>>2]=c;J[b+64>>2]=0;J[695492]=0;da(2828,a+72|0,d+4|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;qc(b);J[a+ -48>>2]=a+8}bc=d+16|0;return}a=Z()|0;if(H[d+15|0]>=0)break a;qc(J[d+4>>2]);ba(a|0);B()}a=Z()|0;qc(b)}ba(a|0);B()}function rpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;if(!c){Dc(a,1028,0,0);return 1028}i=c+1|0;f=gc[J[a+152>>2]](i)|0;if(!f)break a;h=tc(f,d,c);f=h;while(1){g=f;f=g+1|0;if(K[g|0])continue;break}j=h;c:{d:{e:{f:{k=c+h|0;if(k>>>0>g>>>0){f=h;while(1){l=T7(a,f);j=g+1|0;f=j;while(1){g= -f;f=g+1|0;if(K[g|0])continue;break}if(l){f=j;if(g>>>0>>0)continue}break}if(!l)break f}f=T7(a,j);gc[J[a+156>>2]](h,i);if(!f)break e;g=0;if(!K[a+112|0])break c;g=gc[J[b+4>>2]](a,b,e)|0;if(g)break c;J[J[e>>2]+32>>2]=c;b=gc[J[a+152>>2]](i)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(b)break d;break a}gc[J[a+156>>2]](h,i)}Dc(a,1062,0,0);return 1062}tc(b,d,c);g=0}return g|0}Dc(a,1029,0,0);return 1029}Dc(a,1,0,0);return 1}function cha(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=bc-32|0; -bc=f;J[f+28>>2]=b;a:{if(!(J[c+4>>2]&1)){c=gc[J[J[a>>2]+24>>2]](a,b,c,d,e)|0;break a}b=f+16|0;a=J[c+28>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;a=$(6614,b|0)|0;c=J[695492];J[695492]=0;b:{if((c|0)!=1){c=J[b>>2];d=J[c+4>>2]-1|0;J[c+4>>2]=d;if((d|0)==-1)gc[J[J[c>>2]+8>>2]](c);c:{if(e){gc[J[J[a>>2]+24>>2]](b,a);break c}gc[J[J[a>>2]+28>>2]](f+16|0,a)}g=f,h=oi(f+16|0),J[g+12>>2]=h;while(1){a=f+16|0;g=f,h=Qo(a),J[g+8>>2]=h;if(J[f+12>>2]==J[f+8>>2]){c=J[f+28>>2];ad(a);break a}a=H[J[f+12>>2]];J[695492]= -0;aa(6533,f+28|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[f+12>>2]=J[f+12>>2]+1;continue}break}c=Z()|0;ad(f+16|0);break b}c=Z()|0;a=J[f+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a)}ba(c|0);B()}bc=f+32|0;return c|0}function TM(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=J[J[e>>2]+12>>2];i=J[c>>2];k=J[J[f+(i<<2)>>2]+4>>2];e=J[b>>2];j=J[J[(e<<2)+f>>2]+4>>2];g=J[a>>2];l=J[(g<<2)+f>>2];a:{if(j>>>0>=M[l+4>>2]){if(k>>>0>=j>>>0){e=i;break a}J[b>>2]=i;J[c>>2]=e;h=1;g=J[b>>2]; -i=J[a>>2];if(M[J[(g<<2)+f>>2]+4>>2]>=M[J[(i<<2)+f>>2]+4>>2])break a;J[a>>2]=g;J[b>>2]=i;e=J[c>>2];h=2;break a}b:{if(k>>>0>>0){J[a>>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=e;J[b>>2]=g;h=2;e=J[c>>2];if(M[J[(e<<2)+f>>2]+4>>2]>=M[l+4>>2]){h=1;break a}J[b>>2]=e;J[c>>2]=g}e=g}g=J[d>>2];if(M[J[(g<<2)+f>>2]+4>>2]>2]+4>>2]){J[c>>2]=g;J[d>>2]=e;d=J[c>>2];e=J[b>>2];if(M[J[(d<<2)+f>>2]+4>>2]>=M[J[(e<<2)+f>>2]+4>>2])return h+1|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(M[J[(c<<2)+f>>2]+4>>2]>=M[J[(d<< -2)+f>>2]+4>>2])return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function JXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-48|0;bc=d;J[d+32>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;c=rc(16);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[d+40>>2]=c;a:{c=J[a+196>>2]+J[a+192>>2]|0;f=J[a+184>>2];e=J[a+180>>2];if((c|0)==(((e|0)!=(f|0)?P(f-e>>2,93)-1|0:0)|0)){J[695492]=0;_(3198,a+176|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;e=J[a+180>> -2];c=J[a+192>>2]+J[a+196>>2]|0}f=e;e=(c>>>0)/93|0;f=J[f+(e<<2)>>2];J[695492]=0;aa(3199,f+P(c-P(e,93)|0,44)|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+196>>2]=J[a+196>>2]+1;c=J[d+40>>2];if(c)qc(tt(c));c=J[d+24>>2];if(c)qc(c);c=J[d+12>>2];if(c){J[d+16>>2]=c;qc(c)}c=J[d>>2];if(c){J[d+4>>2]=c;qc(c)}H[a+200|0]=1;gc[J[J[a>>2]+72>>2]](a,b);bc=d+48|0;return}a=Z()|0;iw(d);ba(a|0);B()}function E0(a,b){var c=0,d=0,e=0,f=0,g=0;e=-2;a:{if(!a|!J[a+32>>2])break a;d=J[a+36>>2];if(!d)break a;c=J[a+28>> -2];if(!c|J[c>>2]!=(a|0)|J[c+4>>2]-16180>>>0>31)break a;if((b|0)<0)b=0-b|0;else{f=(b>>>4|0)+5|0;b=b>>>0<48?b&15:b}if(b?b-8>>>0>=8:0)break a;g=J[c+56>>2];b:{if(!(J[c+40>>2]!=(b|0)?g:0)){J[c+40>>2]=b;J[c+12>>2]=f;break b}gc[d|0](J[a+40>>2],g);J[c+56>>2]=0;d=J[a+32>>2];J[c+40>>2]=b;J[c+12>>2]=f;if(!d)break a}if(!J[a+36>>2])break a;b=J[a+28>>2];if(!b|J[b>>2]!=(a|0)|J[b+4>>2]-16180>>>0>31)break a;e=0;J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+32>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;c=J[b+12>>2]; -if(c)J[a+48>>2]=c&1;J[b+60>>2]=0;J[b+64>>2]=0;J[b+36>>2]=0;J[b+24>>2]=32768;J[b+16>>2]=0;J[b+4>>2]=16180;J[b+8>>2]=0;J[b+7108>>2]=1;J[b+7112>>2]=-1;a=b+1332|0;J[b+112>>2]=a;J[b+84>>2]=a;J[b+80>>2]=a}return e}function So(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,m=0;k=bc-16|0;bc=k;H[k+15|0]=a;a:{b:{c:{if(J[d>>2]!=(c|0))break c;l=43;m=a&255;if((m|0)!=K[j+24|0]){l=45;if(K[j+25|0]!=(m|0))break c}J[d>>2]=c+1;H[c|0]=l;break b}if(K[g+11|0]>>>7|0)g=J[g+4>> -2];else g=K[g+11|0]&127;if(!(!g|(a|0)!=(f|0))){a=0;b=J[i>>2];if((b-h|0)>159)break a;a=J[e>>2];J[i>>2]=b+4;J[b>>2]=a;break b}a=-1;f=VE(j,j+26|0,k+15|0)-j|0;if((f|0)>23)break a;d:{e:switch(b-8|0){case 0:case 2:if((b|0)>(f|0))break d;break a;case 1:break d;default:break e}if((b|0)!=16|(f|0)<22)break d;b=J[d>>2];if((b|0)==(c|0)|(b-c|0)>2|K[b-1|0]!=48)break a;a=0;J[e>>2]=0;J[d>>2]=b+1;H[b|0]=K[f+2617936|0];break a}a=J[d>>2];J[d>>2]=a+1;H[a|0]=K[f+2617936|0];J[e>>2]=J[e>>2]+1;a=0;break a}a=0;J[e>>2]=0}bc= -k+16|0;return a|0}function mBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;Iz(a+8|0);Lz(a+36|0);a:{f=nk(b);if((f|0)>0)while(1){J[d+8>>2]=0;J[d+12>>2]=J[682146];b:{while(1){c:{c=J[J[b>>2]+8>>2];J[695492]=0;c=ga(c|0,b|0,d+7|0,1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break c;if(!c)break b;c=K[d+7|0];if(!c)break b;J[695492]=0;aa(5145,d+8|0,c<<24>>24)|0;c=J[695492];J[695492]=0;if((c|0)!=1)continue}break}break a}J[695492]=0;c=$(5126,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[695492]= -0;e=$(5123,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;J[695492]=0;h=$(5123,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[695492]=0;g=d+8|0;la(5146,a|0,g|0,(c|0)!=0|0,e|0,h|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=(f|0)>1;sc(g);f=f-1|0;if(c)continue;break}bc=d+16|0;return}a=Z()|0;sc(d+8|0);ba(a|0);B()}function l4(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;l=J[a+12>>2];e=J[l>>2];h=b>>>0>e>>>0?e:b;if(h){b=J[l+12>>2];while(1){j=J[b+12>>2];e=j;k=i<<2;f=J[k+c>>2];if((e| -0)>=(f|0)){e=J[b+4>>2];e=(e|0)<(f|0)?f:e}f=J[b+8>>2];a:{if((f|0)>(e|0)){g=0-td(e-f|0,J[b+4>>2]-f|0)|0;break a}g=0;if((e|0)<=(f|0))break a;g=td(e-f|0,j-f|0)}J[d+k>>2]=g;b=b+24|0;i=i+1|0;if((h|0)!=(i|0))continue;break}e=J[l>>2]}if(e>>>0>h>>>0)wc((h<<2)+d|0,0,e-h<<2);a=J[a+28>>2];if(!(!a|!e)){c=0;while(1){g=L[a>>1];b:{if(g>>>0<2)break b;i=(c<<2)+d|0;f=J[i>>2];h=J[a+4>>2];b=1;while(1){j=b<<3;k=j+h|0;m=J[k>>2];if((f|0)<(m|0)){g=f;b=j-8|0;e=b+h|0;f=J[e>>2];n=i,o=Dd(g-f|0,J[k+4>>2]-J[e+4>>2]|0,m-f|0)+J[(b+ -J[a+4>>2]|0)+4>>2]|0,J[n>>2]=o;e=J[l>>2];break b}b=b+1|0;if((g|0)!=(b|0))continue;break}}a=a+8|0;c=c+1|0;if(e>>>0>c>>>0)continue;break}}}function iLa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=bc-32|0;bc=f;b=J[a+8>>2];if((b|0)==-1){a:{if(J[a+12>>2]){b=-1;break a}while(1){b=J[a+4>>2];d=gc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==32|d-9>>>0<5)continue;break}if((d|0)==62){J[a+12>>2]=1;b=-1;break a}while(1){b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==32|c-9>>>0<5)continue;break}if((c|0)==62){J[a+12>>2]=1;c=48}e= -d<<4;b=e-768|0;b:{if(d-48>>>0<=9)break b;b=e-880|0;if(d-65>>>0<=5)break b;b=e-1392|0;if(d-97>>>0<=5)break b;c:{if((d|0)==-1){J[a+12>>2]=1;break c}b=gc[J[J[a>>2]+52>>2]](a)|0;J[f+16>>2]=d;xc(1,b,807396,f+16|0)}b=0}e=c-48|0;if(e>>>0<=9){b=b+e|0;break a}if(c-65>>>0<=5){b=(b+c|0)-55|0;break a}if(c-97>>>0<=5){b=(b+c|0)-87|0;break a}if((c|0)==-1){J[a+12>>2]=1;b=0;break a}e=gc[J[J[a>>2]+52>>2]](a)|0;J[f>>2]=c;xc(1,e,807396,f)}J[a+8>>2]=b}bc=f+32|0;return b|0}function eV(a,b){var c=0,d=0,e=0,f=0,g=0;d=bc- -16|0;bc=d;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;J[a+16>>2]=0;J[a+20>>2]=J[682146];f=a+16|0;a:{b:{c=J[b+16>>2];c:{if(c){e=J[J[c>>2]+28>>2];J[695492]=0;ca(e|0,d+12|0,c|0,1);c=J[695492];J[695492]=0;if((c|0)!=1)break c;break b}J[d+12>>2]=0}J[695492]=0;aa(4993,f|0,d+12|0)|0;c=J[695492];J[695492]=0;d:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break d;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[695492];J[695492]=0;if((g|0)!=1){if(e)break d;J[695492]=0;_(4987, -c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break d}ea(0)|0;yc();B()}a=Z()|0;vc(d+12|0);break a}c=J[a+16>>2];J[a+20>>2]=J[(c?c+12|0:2728584)>>2];J[695492]=0;aa(5031,a+24|0,b+24|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;bc=d+16|0;return a}a=Z()|0}sc(f);ba(a|0);B()}function kFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=a+32|0;a:{if((d|0)==(b|0))break a;e=K[b+11|0];c=e<<24>>24;if(H[a+43|0]>=0){if((c|0)>=0){c=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=c;J[d+8>>2]=J[b+8>>2];break a}yf(d,J[b>>2],J[b+4>>2]);break a}c= -(c|0)<0;Df(d,c?J[b>>2]:b,c?J[b+4>>2]:e)}J[a+44>>2]=0;c=J[a+48>>2];if(c&8){e=K[a+43|0];f=e<<24>>24<0;b=f?J[a+32>>2]:d;J[a+12>>2]=b;J[a+8>>2]=b;b=b+((f?J[a+36>>2]:e)<<2)|0;J[a+44>>2]=b;J[a+16>>2]=b}b:{if(!(c&16))break b;c=K[a+43|0];b=c<<24>>24<0;c=b?J[a+36>>2]:c;J[a+44>>2]=(b?J[a+32>>2]:d)+(c<<2);CE(d,b?(J[a+40>>2]&2147483647)-1|0:1,0);b=d;d=K[a+43|0];e=d<<24>>24<0;b=e?J[a+32>>2]:b;J[a+24>>2]=b;J[a+20>>2]=b;J[a+28>>2]=((e?J[a+36>>2]:d)<<2)+b;if(!(K[a+48|0]&3))break b;c:{if((c|0)<0){d=c-2147483647|0; -c=(d|0)<0;b=c?b-8|0:b-4|0;c=c?1:d;break c}if(!c)break b}J[a+24>>2]=(c<<2)+b}}function yD(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=bc-16|0;bc=c;e=!a;a:{if(e|((e?-1:J[a+8>>2])|0)!=8)break a;if(a?J[a+36>>2]:0){b=Hk(a,2);break a}f=bd(256,4);if(!f)break a;while(1){J[(b<<2)+f>>2]=b<<24|b<<16|b<<8;e=b|1;J[(e<<2)+f>>2]=e<<24|e<<16|e<<8;b=b+2|0;if((b|0)!=256)continue;break}b=0;xf(a,c+12|0,c+8|0,0);i=a?J[a+40>>2]:0;j=a?J[a+12>>2]:-1;d=uh(J[c+12>>2],J[c+8>>2],32);if(!d)break a;if(!(!d|!a|(a|0)== -(d|0))){J[d+20>>2]=J[a+20>>2];J[d+24>>2]=J[a+24>>2]}e=d?J[d+40>>2]:0;a=d?J[d+12>>2]:-1;b=J[c+8>>2];b:{if((b|0)<=0)break b;g=J[c+12>>2];if((g|0)<=0)break b;while(1){if((g|0)>0){k=(P(a,h)<<2)+e|0;l=(P(h,j)<<2)+i|0;b=0;while(1){J[(b<<2)+k>>2]=J[(K[b+l^3]<<2)+f>>2];b=b+1|0;g=J[c+12>>2];if((b|0)<(g|0))continue;break}b=J[c+8>>2]}h=h+1|0;if((h|0)<(b|0))continue;break}}qc(f);b=d}bc=c+16|0;return b}function S8(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(J[a+4>>2]==16)e=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else e= -J[a+36>>2];i=J[e+1872>>2];f=i+P(b,1076)|0;g=J[a+52>>2];a=gc[J[J[g>>2]+20>>2]](g,1)|0;J[f+804>>2]=a>>5;d=a&31;J[f+24>>2]=d;e=d;a:{b:{c:{d:switch(d|0){case 0:e=c-1|0;break c;case 1:break b;default:break d}e=(c-1|0)/2|0}if((e|0)<=0)break a}a=0;while(1){c=J[J[g>>2]+20>>2];e:{if(!J[f+24>>2]){d=gc[c|0](g,1)>>>3|0;c=0;break e}d=gc[c|0](g,2)|0;c=d&2047;d=d>>11}h=(a<<3)+f|0;J[h+32>>2]=c;J[h+28>>2]=d;a=a+1|0;if((e|0)!=(a|0))continue;break}d=J[f+24>>2]}a=1;if((d|0)==1){c=P(b,1076)+i|0;e=J[c+28>>2];d=J[c+32>> -2];while(1){b=c+(a<<3)|0;J[b+32>>2]=d;J[b+40>>2]=d;f=e+((a<<24>>24)/-3<<24>>24)|0;J[b+36>>2]=(f|0)>0?f:0;h=b;b=e+((a-1<<24>>24)/-3<<24>>24)|0;J[h+28>>2]=(b|0)>0?b:0;a=a+2|0;if((a|0)!=97)continue;break}}}function wAa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-32|0;bc=e;J[a+12>>2]=0;J[a+8>>2]=b;J[a>>2]=2389692;J[a+4>>2]=0;b=J[682146];J[a+40>>2]=0;J[a+44>>2]=0;J[a+36>>2]=b;J[a+32>>2]=0;J[a+28>>2]=b;J[a+24>>2]=0;J[a+16>>2]=b;J[a+48>>2]=0;J[a+52>>2]=0;J[695492]=0;d=a+40|0;J[d>>2]=2386024;J[d+4>> -2]=0;J[d+8>>2]=0;J[d+12>>2]=0;b=J[695492];J[695492]=0;f=a+32|0;g=a+24|0;a:{b:{c:{d:{e:{if((b|0)!=1){b=J[a+8>>2];if((b&-2)==2)break d;J[695492]=0;c=ja(5018,e+8|0,2377207,2377733,204,2389700,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break e;B()}b=Z()|0;break a}b=Z()|0;Fc(c);break b}J[695492]=0;aa(5054,((b|0)==2?g:f)|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;break b}bc=e+32|0;return a|0}b=Z()|0}$c(d)}sc(f);sc(g);sc(a+12|0); -ed(a);ba(b|0);B()}function kgb(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;d=J[b>>2];if((d|0)==-1)return 0;e=J[a+16>>2];c=K[e+8204|0]|K[e+8205|0]<<8|(K[e+8206|0]<<16|K[e+8207|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{b:{if(!f)break b;k=J[a>>2];a=d+1|0;d=e+8208|0;while(1){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);a=a>>>0>h>>>0?a:h;c=K[d+7|0];g=K[d+5|0]<<16|K[d+4|0]<<24|K[d+6|0]<<8;i=c|g;c:{if(a>>>0>i>>>0)break c;e=K[d+8|0]|K[d+ -9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);j=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=(g|1)+c|0;d:{while(1){c=a-h|0;if((c^-1)>>>0>>0)break c;c=c+j|0;if(c)break d;c=a+1|0;if(!c)break b;g=a>>>0>>0;a=c;if(g)continue;break}a=e;break c}if(M[k+16>>2]>c>>>0)break a}d=d+12|0;f=f-1|0;if(f)continue;break}}c=0;a=0}J[b>>2]=a;return c|0}function epb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{b:{c:{f=1029;d:{if(!K[a+285|0]|!K[a+288|0])break d;g=(c>>>0)/5|0;f=1028;if(c-P(g,5)|c>>>0<5)break d;if(!K[a+ -112|0])break b;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break a;J[J[e>>2]+32>>2]=g;f=gc[J[a+152>>2]](c)|0;if(f)break c;f=1}Dc(a,f,0,0);return f|0}J[J[e>>2]+36>>2]=f;if(c-5>>>0>=5){b=g&1073741822;c=0;while(1){a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[f+4|0]=K[d+4|0];a=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);J[f+8>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[f+12|0]=K[d+9|0];f=f+16|0;d=d+10|0;c=c+2|0;if((b|0)!=(c|0))continue;break}}if(!(g&1))break b; -a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[f+4|0]=K[d+4|0]}f=0}return f|0}function ZF(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!J[a+8>>2])break a;d=J[a+4>>2];c=J[d>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b=d;d=J[b+4>>2];b:{if(!J[b+20>>2])break b;c=J[b+16>>2];f=J[c>>2];e=J[J[b+12>>2]+4>>2];J[f+4>>2]=e;J[e>>2]=f;J[b+20>>2]=0;e=b+12|0;if((e|0)==(c|0))break b;while(1){f=J[c+4>>2];qc(c);c=f;if((e|0)!=(c|0))continue; -break}}qc(b);if((a|0)!=(d|0))continue;break}if(!J[a+8>>2])break a;d=J[a+4>>2];c=J[d>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b=d;d=J[b+4>>2];c:{if(!J[b+20>>2])break c;c=J[b+16>>2];f=J[c>>2];e=J[J[b+12>>2]+4>>2];J[f+4>>2]=e;J[e>>2]=f;J[b+20>>2]=0;e=b+12|0;if((e|0)==(c|0))break c;while(1){f=J[c+4>>2];qc(c);c=f;if((e|0)!=(c|0))continue;break}}qc(b);if((a|0)!=(d|0))continue;break}}}function Ro(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=bc-16|0;bc=k;J[k+12>>2]=a;a:{b:{c:{if(J[d>>2]!=(c|0))break c;l=43;if(J[j+96>>2]!=(a|0)){l=45;if(J[j+100>>2]!=(a|0))break c}J[d>>2]=c+1;H[c|0]=l;break b}if(K[g+11|0]>>>7|0)g=J[g+4>>2];else g=K[g+11|0]&127;if(!(!g|(a|0)!=(f|0))){a=0;b=J[i>>2];if((b-h|0)>159)break a;a=J[e>>2];J[i>>2]=b+4;J[b>>2]=a;break b}a=-1;f=SE(j,j+104|0,k+12|0)-j>>2;if((f|0)>23)break a;d:{e:switch(b-8|0){case 0:case 2:if((b|0)>(f|0))break d;break a;case 1:break d;default:break e}if((b|0)!=16|(f| -0)<22)break d;b=J[d>>2];if((b|0)==(c|0)|(b-c|0)>2|K[b-1|0]!=48)break a;a=0;J[e>>2]=0;J[d>>2]=b+1;H[b|0]=K[f+2617936|0];break a}a=J[d>>2];J[d>>2]=a+1;H[a|0]=K[f+2617936|0];J[e>>2]=J[e>>2]+1;a=0;break a}a=0;J[e>>2]=0}bc=k+16|0;return a|0}function G5(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=bc-16|0;bc=g;a:{if(!a){d=37;break a}d=6;if(!b)break a;f=J[a>>2];if(!f)break a;b:{h=J[f>>2];c=J[a+72>>2];e=259912;c:{if((c|0)==1651078259)break c;e=259944;if((c|0)==1869968492)break c;d:{e:{if(!f)break e;d=J[f+ -148>>2];if(!d)break e;while(1){e=J[d+8>>2];if((c|0)==J[e+16>>2])break d;d=J[d+4>>2];if(d)continue;break}}e=0}if(!e)break b;e=e+20|0}c=Zd(h,J[e>>2],g+12|0);d=J[g+12>>2];if(d)break a;J[c+4>>2]=e;J[c>>2]=f;J[c+8>>2]=J[e+4>>2];d=6;f:{f=J[a+64>>2];g:{if(f-2097152>>>0<4290772993)break g;h=J[a+68>>2];if(h-2097152>>>0<4290772993)break g;J[c+16>>2]=h<<10;J[c+12>>2]=f<<10;d=gc[J[e+8>>2]](c,a)|0;if(!d)break f;e=J[c+4>>2]}a=J[J[c>>2]>>2];b=J[e+12>>2];if(b)gc[b|0](c);if(c)gc[J[a+8>>2]](a,c);break a}J[b>>2]=c; -d=0;break a}d=18}bc=g+16|0;return d|0}function Zwb(a){a=a|0;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;j=J[a+8>>2];b=J[a+12>>2];d=J[a+52>>2];e=gc[J[J[d>>2]+36>>2]](d)|0;c=gc[J[J[d>>2]+40>>2]](d)|0;m=gc[J[J[d>>2]+40>>2]](d)|0;c=c+1|0;b=b-e|0;h=(b|0)>(c|0)?c:b;b=j<<2;c=J[b+J[a+32>>2]>>2];e=bd(1,h+c|0);if(e){a:{if((c|0)<=0)break a;f=J[b+J[a+28>>2]>>2];b=0;if(c>>>0>=4){i=c&-4;while(1){H[b+e|0]=K[b+f|0];g=b|1;H[g+e|0]=K[f+g|0];g=b|2;H[g+e|0]=K[f+g|0];g=b|3;H[g+e|0]=K[f+g|0];b=b+4|0;k=k+4|0;if((i| -0)!=(k|0))continue;break}}i=c&3;if(!i)break a;while(1){H[b+e|0]=K[b+f|0];b=b+1|0;l=l+1|0;if((i|0)!=(l|0))continue;break}}gc[J[J[d>>2]+16>>2]](d,c+e|0,h);d=j<<2;b=d+J[a+32>>2]|0;J[b>>2]=J[b>>2]+h;b=J[a+28>>2];c=b+d|0;f=J[c>>2];if(f){qc(f);J[c>>2]=0;b=J[a+28>>2]}J[b+d>>2]=e;if((m+1|0)!=(h|0)){J[a+4>>2]=8;return}J[a+4>>2]=64;return}J[J[a>>2]+20>>2]=1}function Yoa(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;i=bc-16|0;bc=i;a:{if(!a|!d|((b|0)>(c|0)|(e|0)>(f|0)))break a;while(1){h= -(b<<3)+a|0;J[h>>2]=0;J[h+4>>2]=J[682146];b:{g=J[(e<<3)+d>>2];c:{d:{if(g){j=J[J[g>>2]+28>>2];J[695492]=0;ca(j|0,i+12|0,g|0,1);g=J[695492];J[695492]=0;if((g|0)!=1)break d;b=Z()|0;break c}J[i+12>>2]=0}J[695492]=0;aa(4993,h|0,i+12|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){g=J[i+12>>2];J[i+12>>2]=0;if(!g)break b;J[695492]=0;j=J[g+4>>2]-1|0;J[g+4>>2]=j;k=J[695492];J[695492]=0;if((k|0)!=1){if(j)break b;J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)!=1)break b}ea(0)|0;yc();B()}b=Z()|0;vc(i+12|0)}sc(h); -ba(b|0);B()}g=h;h=J[h>>2];J[g+4>>2]=J[(h?h+12|0:2728584)>>2];if((b|0)>=(c|0))break a;b=b+1|0;h=(e|0)<(f|0);e=e+1|0;if(h)continue;break}}bc=i+16|0}function Reb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=J[a+872>>2];if(!i)return 0;f=J[e+8>>2];a:{b:{if(f){g=J[e>>2];b=J[e+4>>2];break b}f=0;J[e+4>>2]=0;g=L[i+2>>1];if(!g)break a;l=J[i+8>>2];g=g-1|0;c:{while(1){j=((g-f|0)/2|0)+f|0;h=P(j,6)+l|0;k=K[h|0]<<8|K[h+1|0];d:{if(k>>>0>>0){f=j+1|0;break d}if(b>>>0>=k>>>0)break c; -g=j-1|0}if((f|0)<=(g|0))continue;break}return 0}f=0;b=K[h+4|0]|K[h+5|0]<<8;g=(b<<8|b>>>8)&65535;if(!g)break a;b=K[h+3|0];h=K[h+2|0];J[e>>2]=g;b=b|h<<8;if(M[i+20>>2]>>0)break a;f=J[i+12>>2]+(b<<2)|0;J[e+8>>2]=f;b=0}if(b>>>0>=g>>>0)return 0;J[e+8>>2]=f+2;J[c>>2]=K[f+1|0]|K[f|0]<<8;J[e+8>>2]=f+4;b=K[f+3|0]|K[f+2|0]<<8;J[d>>2]=b;if(M[c>>2]>=M[a+16>>2])return 0;if((b|0)!=65535){f=0;if(b>>>0>=L[a+660>>1])break a}f=1;J[e+4>>2]=J[e+4>>2]+1}return f|0}function FXa(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;d=bc-16|0;bc=d;k=O[b+456>>3];c=J[b+448>>2];a:{b:{g=J[b+452>>2];c:{d:{if((g|0)==1){b=rc(16);h=O[c>>3];O[b+8>>3]=h;O[b>>3]=h;e=2;c=b;break d}if(!g)break b;e=g;if((e|0)<=0)break c}b=0;if((e|0)!=1){l=e&2147483646;while(1){f=b<<3;i=f+c|0;O[i>>3]=O[i>>3]/72*25.4;f=(f|8)+c|0;O[f>>3]=O[f>>3]/72*25.4;b=b+2|0;j=j+2|0;if((j|0)!=(l|0))continue;break}}if(!(e&1))break c;b=(b<<3)+c|0;O[b>>3]=O[b>>3]/72*25.4}b=J[a+104>>2];gc[J[J[b>>2]+128>>2]](b,c,e)|0;b=J[a+104>>2];H[d+8|0]=5;e=d+8|0; -gc[J[J[b>>2]+76>>2]](b,e)|0;a=J[a+104>>2];O[d+8>>3]=k/72*25.4;gc[J[J[a>>2]+108>>2]](a,e)|0;if(!c|(g|0)!=1)break a;qc(c);break a}b=J[a+104>>2];H[d+8|0]=0;c=d+8|0;gc[J[J[b>>2]+76>>2]](b,c)|0;a=J[a+104>>2];J[d+8>>2]=0;J[d+12>>2]=0;gc[J[J[a>>2]+108>>2]](a,c)|0}bc=d+16|0}function nN(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=bc-16|0;bc=g;e=J[a+408>>2];J[d>>2]=0;if(e)while(1){f=J[e+20>>2]+f|0;e=J[e>>2];if(e)continue;break}a:{b:{if(c>>>0<=f>>>0){if(!c){e=0;break a}while(1){e=J[a+408>>2];f=J[e+16>>2];h=J[e+20>>2]; -if(h>>>0>c>>>0)break b;f=tc(b,f,h);h=J[e+20>>2];J[d>>2]=h+J[d>>2];e=J[e+20>>2];b=J[a+408>>2];i=J[b>>2];J[a+408>>2]=i;if(!i)J[a+412>>2]=0;c=c-e|0;c:{d:{if(!K[b+12|0])break d;e=J[a+160>>2];if(!e)break d;gc[e|0](a,J[b+4>>2],J[b+8>>2]);break c}e=J[b+4>>2];if(!e)break c;gc[J[a+156>>2]](e,J[b+8>>2])}gc[J[a+156>>2]](b,24);b=f+h|0;if(c)continue;break}e=0;break a}e=0;J[g+12>>2]=0;if(!(gc[J[a+172>>2]](a,b,c,g+12|0)|0)){e=901;Dc(a,901,0,0);break a}J[d>>2]=J[d>>2]+J[g+12>>2];break a}tc(b,f,c);J[e+20>>2]=J[e+ -20>>2]-c;J[e+16>>2]=J[e+16>>2]+c;J[d>>2]=J[d>>2]+c;e=0}bc=g+16|0;return e}function gqb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[a+588>>2]>0){b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];while(1){d=K[e+3|0];a:{if(!d)break a;c=K[b+3|0];if((c|0)==255)break a;b:{if((d|0)==255){g=255;d=c^255;f=(P(c,K[b|0])+P(d,K[e|0])|0)+128|0;H[b|0]=(f>>>8&255)+f>>>8;f=(P(c,K[b+1|0])+P(d,K[e+1|0])|0)+128|0;H[b+1|0]=(f>>>8&255)+f>>>8; -c=(P(c,K[b+2|0])+P(d,K[e+2|0])|0)+128|0;H[b+2|0]=(c>>>8&255)+c>>>8;break b}f=K[e|0];k=K[e+1|0];h=c^255;g=P(h,d^255)>>>8^-1;i=g&255;c=(c<<8>>>0)/(i>>>0)|0;d=(P(d,h)>>>0)/(i>>>0)|0;H[b+2|0]=(P(c,K[b+2|0])+P(d,K[e+2|0])|0)+127>>>8;H[b+1|0]=(P(c,K[b+1|0])+P(d,k)|0)+127>>>8;H[b|0]=(P(c,K[b|0])+P(d,f)|0)+127>>>8}H[b+3|0]=g}e=e+4|0;b=b+4|0;j=j+1|0;if((j|0)>2])continue;break}}return 0}function fO(a,b,c){var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;g=-1;e=Pr(a,1800688195);a:{if(!e|J[e+4>>2]!=1668641398)break a; -a=zc(152);if(!a)break a;J[a+4>>2]=2627272;J[a+8>>2]=0;J[a+12>>2]=0;wc(a+16|0,0,136);J[a>>2]=1;f=Yi();if(!f)break a;if(zm(f,-1,a))break a;J[a+16>>2]=1;J[a+8>>2]=1;J[a+12>>2]=3;J[a+24>>2]=1;J[a+28>>2]=1;b:{if(!b){J[a+120>>2]=-1353773692;J[a+124>>2]=1072326036;J[a+88>>2]=0;J[a+92>>2]=1072693248;J[a+56>>2]=-178670640;J[a+60>>2]=1072618169;J[a+20>>2]=0;if(!Jo(a+32|0,e+12|0))break b;break a}J[a+120>>2]=1252199824;J[a+124>>2]=1072915827;J[a+88>>2]=0;J[a+92>>2]=1072693248;J[a+56>>2]=-791998740;J[a+60>>2]= -1072732180;J[a+20>>2]=1;J[d+8>>2]=0;J[d+12>>2]=0;b=d+8|0;if(Jo(b,e+12|0))break a;if(_x(a+32|0,b,J[d+12>>2]))break a;b=J[d+8>>2];if(!b)break b;qc(b)}Xi(e);cO(a);J[c>>2]=f;g=0}bc=d+16|0;return g}function LKa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=rc(84);c=J[a+4>>2];d=J[J[c>>2]+8>>2];J[695492]=0;f=$(d|0,c|0)|0;c=J[695492];J[695492]=0;d=1;a:{if((c|0)==1)break a;e=J[a+32>>2];g=J[a+28>>2];h=J[a+24>>2];i=J[a+16>>2];j=J[a+12>>2];c=J[a+20>>2];a=J[a+8>>2];J[b>>2]=2331860;J[b+8>>2]=a;J[b+20>>2]= -c;J[b+12>>2]=j;J[b+16>>2]=i;J[b+4>>2]=f;b:{if((c|0)>0){d=2147483644;if(c>>>0<2147483645)break b}J[b+20>>2]=d;c=d}J[b+32>>2]=e;J[b+28>>2]=g;J[b+24>>2]=h;J[b+36>>2]=e?255:0;J[695492]=0;d=aa(3376,c+1|0,4)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b+60>>2]=d;J[695492]=0;e=aa(3376,c+3|0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[b+48>>2]=0;J[b+40>>2]=0;J[b+64>>2]=e;J[b+56>>2]=0;J[b+44>>2]=a>>>31;J[d>>2]=c;J[b+80>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+68>>2]=c;return b|0}a=Z()|0;qc(b);ba(a|0); -B()}function KVa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];e=(J[a+4>>2]-c|0)/12|0;d=e+1|0;if(d>>>0<357913942){c=(J[a+8>>2]-c|0)/12|0;g=c<<1;d=c>>>0>=178956970?357913941:d>>>0>>0?g:d;if(d){if(d>>>0>=357913942)break c;f=rc(P(d,12))}c=P(e,12)+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;d=P(d,12)+f|0;f=c+12|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-12|0;g=J[b+4>>2];c=c-12|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>> -2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}ph(a);B()}Sd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)qc(b)}function $4a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];e=(J[a+4>>2]-c|0)/12|0;d=e+1|0;if(d>>>0<357913942){c=(J[a+8>>2]-c|0)/12|0;g=c<<1;d=c>>>0>=178956970?357913941:d>>>0< -g>>>0?g:d;if(d){if(d>>>0>=357913942)break c;f=rc(P(d,12))}c=P(e,12)+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;d=P(d,12)+f|0;f=c+12|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-12|0;g=J[b+4>>2];c=c-12|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>> -2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}Gp(a);B()}Sd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)qc(b)}function vY(a,b,c){var d=0,e=0,f=0;d=bc+-64|0;bc=d;J[d+48>>2]=13;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;e=d+48|0;Bc(J[b+8>>2],775789,e,c);if(J[d+48>>2]==5){uc(e);Bc(J[b+8>>2],777519,e,c)}e=d+16|0;Bc(J[b+8>>2],778065,e,c);if(J[d+16>>2]==5){uc(e);Bc(J[b+8>>2],779973,e,c)}e=a;a:{b:switch(J[d+48>>2]-4|0){case 2:f=J[d+56>>2];if(J[f+12>>2]<=0)break a;b=0;while(1){Mc(f,b,d+32|0,c);c:{if(J[d+ -16>>2]==6){Mc(J[d+24>>2],b,d,c);break c}J[d>>2]=5}d:{if(J[d+32>>2]==4){e=uY(a,J[d+40>>2],e,d,c);break d}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,780681,0);f=rc(8);J[f>>2]=2332684;J[f+4>>2]=e;e=f}uc(d+32|0);uc(d);b=b+1|0;f=J[d+56>>2];if((b|0)>2])continue;break}break a;default:xc(1,gc[J[J[e>>2]+52>>2]](e)|0,781493,0);break a;case 1:break a;case 0:break b}e=uY(e,J[d+56>>2],e,d+16|0,c)}uc(d+48|0);uc(d+16|0);bc=d- -64|0;return e}function AM(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=bc-32|0;bc=c;d=!a;a:{if(d| -((d?-1:J[a+8>>2])|0)!=1)break a;b:switch(b-4|0){case 0:case 4:break b;default:break a}yx(a,c+16|0);if(J[c+16>>2]){e=Tp(1);break a}d=wf(0,a);J[c+4>>2]=d;if(!d)break a;f=qD(a?J[a+4>>2]:-1);J[c>>2]=f;if(!f)break a;a=qD(0);if(!a)break a;J[f+12>>2]=a;a=Tp(0);if(!a)break a;xf(d,c+28|0,c+24|0,c+20|0);c:{if(J[c+20>>2]!=1)break c;i=b-4|0;b=0;while(1){e=d?J[d+12>>2]:-1;if(!i7(d?J[d+40>>2]:0,J[c+28>>2],J[c+24>>2],e,b,h,c+12|0,c+8|0))break c;h=J[c+8>>2];b=J[c+12>>2];e=0;if(((d?J[d+8>>2]:-1)|0)!=1)break a;d:{e:switch(i| -0){case 0:g=h7(d,f,b,h);if(g)break d;break a;case 4:break e;default:break a}g=g7(d,f,b,h);if(!g)break a}tD(a,g);xf(d,c+28|0,c+24|0,c+20|0);if(J[c+20>>2]==1)continue;break}}wM(c,1);wd(c+4|0);e=a}bc=c+32|0;return e}function hga(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>0){f=J[a+12>>2];while(1){g=c;d=+N[b>>2];e=32767;a:{if(d>=1.8371976E19)break a;e=65535;if(d<=-1.8371976E19)break a;c=J[a+4>>2];if(d>5.4136769E-20){d=os(d)*1.4426950408889634+64;if(c){e=Dzb(J[694792],J[694793],1284865837,1481765933); -c=fc;e=e+1|0;c=e?c:c+1|0;J[694792]=e;J[694793]=c;d=d*256+ +(c>>>1|0)*4.656612875245797E-10+-.5}else d=d*256;if(R(d)<2147483648){e=~~d;break a}e=-2147483648;break a}e=0;if(!(d<-5.4136769E-20))break a;d=os(-d)*1.4426950408889634+64;if(c){e=Dzb(J[694792],J[694793],1284865837,1481765933);c=fc;e=e+1|0;c=e?c:c+1|0;J[694792]=e;J[694793]=c;d=d*256+ +(c>>>1|0)*4.656612875245797E-10+-.5}else d=d*256;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}e=c|-32768}b=b+4|0;c=g-1|0;I[f>>1]=e;f=f+2|0;if(g>>>0>1)continue; -break}}}function Rra(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;f=bc-32|0;bc=f;a:{b:{c:{if(J[a+56>>2]){a=Kc(f+8|0,2378086,2374323,1653,2415672,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;Fc(a);break c}jG(b,2378555,1);d:{e:{if((c|0)<=0)break e;while(1){jG(b,2379152,0);J[f+4>>2]=0;e=f+4|0;md(e,b);g=J[J[a>>2]+32>>2];J[695492]=0;g=ga(g|0,a|0,e|0,P(h,12)+d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[f+4>>2];J[f+4>>2]=0;f:{if(!e)break f;J[695492]= -0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;j=J[695492];J[695492]=0;if((j|0)==1)break a;if(i)break f;J[695492]=0;_(4987,e|0);e=J[695492];J[695492]=0;if((e|0)==1)break a}wz(b);if(!g)break e;h=h+1|0;if((h|0)<(c|0))continue;break}}wz(b);gc[J[J[a>>2]+48>>2]](a);bc=f+32|0;return}b=Z()|0;vc(f+4|0)}ba(b|0)}B()}ea(0)|0;yc();B()}function Urb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=bc-976|0;bc=f;a:{if(!b|!J[a+964>>2])break a;c=rO(f,J[a+16>>2],J[a+20>>2],8,0);J[695492]=0;h=J[c+4>>2]!=0;d=J[695492];J[695492]=0; -b:{c:{if((d|0)==1)break c;if(!h){J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break c;ff(a+72|0,c+72|0);break b}if(J[a+20>>2]>0){e=J[c+56>>2];g=J[a+16>>2];d=J[a+964>>2];while(1){e=tc(e,d,g);g=J[a+16>>2];d=g+d|0;e=J[c+52>>2]+e|0;i=i+1|0;if((i|0)>2])continue;break}}J[695492]=0;Yp(c);a=J[695492];J[695492]=0;if((a|0)!=1){J[695492]=0;ga(108,b|0,c|0,1)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}}a=Z()|0;mj(c);ba(a|0);B()}J[c>>2]=1032;J[695492]=0;$(13,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!= -1){J[695492]=0;$(14,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}bc=f+976|0;return h|0}function U$(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=(a|0)!=(b|0);a:{if(!a|(a|0)==(b|0))break a;b:{if(c)while(1){f=-1;c:{d:switch(J[a+4>>2]-1|0){case 4:case 5:case 16:break b;case 0:break d;default:break c}e=J[a+48>>2];if(!e)break c;while(1){e:{d=J[e+12>>2];if(!d)break e;f=0;g=c;if((c|0)==(d|0))break b;while(1){h=K[d|0];if((h|0)!=K[g|0])break e;g=g+1|0;d=d+1|0;if(h)continue;break}break b}e=J[e>>2]; -if(e)continue;break}}a=J[a+20>>2];d=(b|0)!=(a|0);if(!a)break a;if((a|0)!=(b|0))continue;break a}while(1){f=-1;f:{g:switch(J[a+4>>2]-1|0){case 0:break g;case 4:case 5:case 16:break b;default:break f}d=J[a+48>>2];if(!d)break f;while(1){if(J[d+12>>2]){d=J[d>>2];if(d)continue;break f}break}f=0;break b}a=J[a+20>>2];d=(b|0)!=(a|0);if(!a)break a;if((a|0)!=(b|0))continue;break}break a}return f}return d?-1:1}function PY(a){a=a|0;var b=0;J[a>>2]=2305656;J[695492]=0;_(3444,a|0);b=J[695492];J[695492]=0;a:{if((b| -0)==1)break a;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+76>>2];if(b)qc(TY(b));b=J[a+80>>2];if(b)qc(dd(b));b=J[a+84>>2];if(b)qc(dd(b));b=J[a+88>>2];if(b)qc(dd(b));b=J[a+92>>2];if(b)qc(dd(b));b=J[a+96>>2];if(b)qc(dd(b));b=J[a+100>>2];if(b)qc(dd(b));b=J[a+104>>2];if(b)qc(dd(b));b=J[a+108>>2];if(b)qc(dd(b));b=J[a+112>>2];if(b)qc(dd(b));b=J[a+116>>2];if(b)qc(dd(b));b=J[a+120>>2];if(b)qc(dd(b));b=J[a+124>>2];if(b)qc(dd(b));b=J[a+128>>2];if(b)qc(dd(b));b=J[a+132>>2];if(b)qc(dd(b)); -b=J[a+136>>2];if(b)qc(dd(b));b=J[a+140>>2];if(b)qc(dd(b));b=J[a+144>>2];if(b)qc(b);b=J[a+148>>2];if(b)qc(b);b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;yc();B()}function yJ(a,b){var c=0,d=0,e=0,f=0;c=J[a+20>>2];if(c)e=J[c+296>>2];a:{if(!J[689540])break a;c=J[689538];if(!c)break a;gc[c|0](b)}d=J[b+20>>2];b:{if(!d)break b;c=J[d+32>>2];if(!c|!(J[c+44>>2]|J[c+48>>2]))break b;if(!qB(c,d,b))break b;c=J[J[b+20>>2]+32>>2];if(!c)break b;f=J[c+64>>2];if(!f)break b;d=xw(c,J[b+12>>2]);if(!d)break b; -c=tf(f,d,0,0);gc[J[659451]](d);if(!c|J[c+8>>2]!=(b|0))break b;d=J[b+8>>2];J[c+8>>2]=0;J[c+12>>2]=d}c=J[b+12>>2];if(c)rB(a,c);d=J[b+8>>2];c:{if(!d)break c;if(e)while(1){c=J[e+16>>2];if(c)while(1){if(d>>>0<=M[c+4>>2]&d>>>0>=c+20>>>0)break c;c=J[c>>2];if(c)continue;break}e=J[e+20>>2];if(e)continue;break}gc[J[659451]](d)}d:{a=J[a+20>>2];if(!a)break d;e=J[a+376>>2];if((e|0)>99)break d;J[b+24>>2]=J[a+380>>2];J[a+376>>2]=e+1;J[a+380>>2]=b;return}gc[J[659451]](b)}function u7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=255-e|0;h=K[a+3|0];o=P(h,c);l=K[a|0];m=K[a+1|0];n=P(m,e);i=h^255;g=P(e,h);j=K[a+2|0];k=P(j,e);a:{if((g|0)<=(k+P(b,h)|0)){b=((P(b,i)+g|0)+P(f,j)|0)+255>>>8|0;break a}b=((k>>>0)/(255-((b<<8>>>0)/(e>>>0)|0)>>>0)|0)+((P(f,j)+P(b,i)|0)+255>>>8|0)|0}k=P(d,h);j=P(e,l);H[a+2|0]=b;if((n+o|0)>=(g|0))b=((P(c,i)+g|0)+P(f,m)|0)+255>>>8|0;else b=((n>>>0)/ -(255-((c<<8>>>0)/(e>>>0)|0)>>>0)|0)+((P(c,i)+P(f,m)|0)+255>>>8|0)|0;H[a+1|0]=b;b:{if((j+k|0)>=(g|0)){c=g+255|0;b=(c+P(d,i)|0)+P(f,l)>>>8|0;break b}c=g+255|0;b=((j>>>0)/(255-((d<<8>>>0)/(e>>>0)|0)>>>0)|0)+((P(d,i)+P(f,l)|0)+255>>>8|0)|0}H[a|0]=b;H[a+3|0]=e+h-(c>>>8)}}function Wu(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=bc-32|0;bc=c;if(!J[a+2308>>2]){b=J[a+4>>2];b=gc[J[J[b>>2]+52>>2]](b)|0;J[a+2308>>2]=b;J[c+24>>2]=8;gc[J[J[b>>2]+72>>2]](b,c+24|0)}O[c+24>>3]=O[a+496>>3]*O[a+2256>>3]/25.4;e=a+576|0;f=a+440| -0;a:{if(_t(e,f)){if(!(O[a+2240>>3]>1))break a;a=J[a+2308>>2];gc[J[J[a>>2]+32>>2]](a,c+24|0);break a}b=J[a+2308>>2];gc[J[J[b>>2]+40>>2]](b,a+492|0);if(O[a+2240>>3]>1){b=J[a+2308>>2];gc[J[J[b>>2]+32>>2]](b,c+24|0)}b=a+2256|0;d=K[a+455|0];b:{if(!(d<<24>>24<0?J[a+448>>2]:d)){d=J[a+2308>>2];O[c+16>>3]=Q(O[a+472>>3]);g=J[a+480>>2]!=0;J[c+12>>2]=K[a+488|0]<<2|(J[a+484>>2]?g|2:g)|K[a+489|0]<<7;gc[J[J[d>>2]+144>>2]](d,a+456|0,c+16|0,c+12|0,b,a+2264|0)|0;break b}d=J[a+2308>>2];O[c+16>>3]=Q(O[a+472>>3]);gc[J[J[d>> -2]+148>>2]](d,a+444|0,a+504|0,c+16|0,b,a+2264|0)|0}hn(e,f)}bc=c+32|0}function L4(a,b,c,d,e,f,g){var h=0,i=0,j=0;j=e-c|0;a:{if((e|0)<(f|0)|(j|0)<=0|(c|0)>(g|0))break a;h=d-b|0;b:{if((c|0)<(f|0)){b=Dd(h,f-c|0,j)+b|0;i=J[a>>2];f=f>>i;c=0;break b}i=J[a>>2];f=c>>i;c=J[a+4>>2]-1&c}d=1;if((e|0)<=(g|0)){g=e;d=!(J[a+4>>2]-1&e)}e=g>>i;c:{if((c|0)>0){if((e|0)==(f|0))break a;f=f+1|0;b=Dd(h,J[a+4>>2]-c|0,j)+b|0;break c}if(!K[a+79|0])break c;J[a+36>>2]=J[a+36>>2]-4}H[a+79|0]=d;if(K[a+78|0]){J[J[a+80>>2]+20>>2]= -f;H[a+78|0]=0}g=e-f|0;c=g+1|0;if(M[a+32>>2]<=J[a+36>>2]+(c<<2)>>>0){J[a+40>>2]=98;return 1}d=1;e=J[a+4>>2];d:{if((h|0)>0){f=hM(e,h,j);break d}d=-1;h=0-h|0;f=0-hM(e,h,j)|0}h=(P(J[a+4>>2],h)|0)%(j|0)|0;e=J[a+36>>2];if((g|0)>=0){g=0-j|0;while(1){J[e>>2]=b;g=g+h|0;i=(g|0)>=0;g=g-(i?j:0)|0;b=(b+f|0)+(i?d:0)|0;e=e+4|0;i=c>>>0>1;c=c-1|0;if(i)continue;break}}J[a+36>>2]=e}return 0}function $Na(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)a:{J[a+ -48>>2]=c;b=rc(16);J[695492]=0;c=$(3185,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+52>>2]=c;if(J[a+8>>2]==8){b=J[a+16>>2];J[a+56>>2]=b;gc[J[J[b>>2]+20>>2]](b);b=J[a+56>>2];c=J[a+76>>2];J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=b;J[J[a+144>>2]>>2]=b;J[J[a+148>>2]>>2]=b;OY(a);b=J[a+56>>2];gc[J[J[b>>2]+24>>2]](b);e=a,f=Izb(J[a+48>>2],J[a+52>>2],32),J[e+48>>2]=f;J[a+52>>2]=fc}b=J[a+4>>2];J[a+56>>2]=b;gc[J[J[b>>2]+20>>2]](b);b=J[a+56>>2];c=J[a+76>>2];J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=b;J[J[a+ -144>>2]>>2]=b;J[J[a+148>>2]>>2]=b;OY(a);b=J[a+40>>2];b:{if(!b){c=0;b=0;break b}c=J[b+20>>2];b=c+P(J[b+16>>2],J[b+12>>2])|0}J[a+60>>2]=c;J[a+64>>2]=b;return}a=Z()|0;qc(b);ba(a|0);B()}function fVa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;J[c>>2]=13;a:{if(J[Bc(J[b+8>>2],840057,c,0)>>2]!=6)break a;b=J[c+8>>2];if(J[b+12>>2]!=4)break a;J[c+16>>2]=13;if(J[Mc(b,0,c+16|0,0)>>2]-3>>>0>=4294967294)d=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];b=c+16|0;uc(b);O[a+8>>3]=d;J[c+16>>2]=13;if(J[Mc(J[c+8>>2],1, -b,0)>>2]-3>>>0>=4294967294)e=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];b=c+16|0;uc(b);O[a+16>>3]=e;J[c+16>>2]=13;e=0;d=0;if(J[Mc(J[c+8>>2],2,b,0)>>2]-3>>>0>=4294967294)d=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];b=c+16|0;uc(b);O[a+24>>3]=d;J[c+16>>2]=13;if(J[Mc(J[c+8>>2],3,b,0)>>2]-3>>>0>=4294967294)e=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];uc(c+16|0);O[a+32>>3]=e;d=O[a+24>>3];f=O[a+8>>3];if(d>3]=f;O[a+8>>3]=d}d=O[a+16>>3];if(!(d>e))break a;O[a+32>>3]=d;O[a+16>>3]=e}uc(c);bc=c+32|0}function YLa(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;J[a>>2]=2332584;J[a+4>>2]=b;a:{b:{if((c|0)!=1){b=rc(44);J[b+40>>2]=0;J[b+32>>2]=0;J[b+16>>2]=f;J[b+12>>2]=e;J[b+8>>2]=d;J[b+4>>2]=c;J[b>>2]=a;c=P(d,e);J[b+20>>2]=c;g=P(e,f)+7>>3;J[b+24>>2]=g;g=g+(P(c,f)+7>>3)|0;J[b+28>>2]=g;c:{d:{if((d|0)<=0|(e|0)<=0|(f-17>>>0<4294967280|e>>>0>32))break d;if(2147483647/(e>>>0)>>>0<=d>>>0|(c|0)>=(2147483640/(f>>>0)|0))break d;J[695492]=0;c=$(3441,g|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;J[b+32>>2]=c;wc(c, -0,J[b+28>>2]);J[b+40>>2]=1;J[b+36>>2]=J[b+28>>2];J[a+8>>2]=b;break b}J[a+8>>2]=b;J[695492]=0;Gc(0);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(b);J[a+8>>2]=0;break b}a=Z()|0;qc(b);ba(a|0);B()}J[a+8>>2]=0}J[a+34076>>2]=0;J[a+34068>>2]=0;wc(a+12|0,0,32768);return a|0}ea(0)|0;yc();B()}function Qab(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;j=a+208|0;J[a+212>>2]=J[j>>2];a:{b:{if((d|0)>0)while(1){e=J[a+212>>2];h=(e|0)==J[a+216>>2];l=J[(k<<2)+b>>2];n=O[(k<<3)+c>> -3]*65536;c:{if(R(n)<2147483648){i=~~n;break c}i=-2147483648}d:{if(!h){J[e>>2]=l;J[e+4>>2]=i;J[a+212>>2]=e+8;break d}m=J[j>>2];h=e-m|0;g=h>>3;f=g+1|0;if(f>>>0>=536870912)break b;o=g<<3;g=h>>2;g=h>>>0>=2147483640?536870911:f>>>0>>0?g:f;if(g){if(g>>>0>=536870912)break a;h=rc(g<<3)}else h=0;f=o+h|0;J[f>>2]=l;J[f+4>>2]=i;i=f+8|0;if((e|0)!=(m|0)){while(1){e=e-8|0;l=J[e+4>>2];f=f-8|0;J[f>>2]=J[e>>2];J[f+4>>2]=l;if((e|0)!=(m|0))continue;break}e=J[j>>2]}J[a+216>>2]=h+(g<<3);J[a+212>>2]=i;J[a+208>>2]=f; -if(!e)break d;qc(e)}k=k+1|0;if((k|0)!=(d|0))continue;break}return 0}_j(j);B()}Sd();B()}function Bsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a+2308>>2];a:{if(!d)break a;c=J[a+2312>>2];b=J[a+2316>>2];a=J[a+2300>>2];if(K[a+56|0]){if((d|0)!=1){f=d&-2;while(1){e=L[c>>1];if((e|0)!=L[a+836>>1])I[b+2>>1]=65535;I[b>>1]=e;e=L[c+2>>1];if((e|0)!=L[a+836>>1])I[b+6>>1]=65535;I[b+4>>1]=e;b=b+8|0;c=c+4|0;g=g+2|0;if((f|0)!=(g|0))continue;break}}if(!(d&1))break a;d=L[a+836>>1];a=L[c>>1];if((d|0)!=(a|0))I[b+2>>1]= -65535;I[b>>1]=a;return 0}if(d>>>0>=4){f=d&-4;a=0;while(1){I[b>>1]=L[c>>1];I[b+2>>1]=65535;I[b+4>>1]=L[c+2>>1];I[b+6>>1]=65535;I[b+8>>1]=L[c+4>>1];I[b+10>>1]=65535;I[b+12>>1]=L[c+6>>1];I[b+14>>1]=65535;b=b+16|0;c=c+8|0;a=a+4|0;if((f|0)!=(a|0))continue;break}}d=d&3;if(!d)break a;a=0;while(1){I[b>>1]=L[c>>1];I[b+2>>1]=65535;b=b+4|0;c=c+2|0;a=a+1|0;if((d|0)!=(a|0))continue;break}}return 0}function p5(a,b){var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;c=J[a>>2];J[e+12>>2]=c;d=0;a:{if(b>>>0<=c>>>0)break a;while(1){d= -0;b:{c:{d:{e:{f:{g:{g=K[c|0];switch(g-37|0){case 1:case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:break b;case 0:break d;case 23:break e;case 3:break f;default:break g}}h:switch(g-123|0){case 0:f=f+1|0;break c;case 2:break h;default:break b}f=f-1|0;if(f)break b;c=c+1|0;d=0;break a}d=KL(e+12|0,b);break b}d=o5(e+12|0,b);break b}d=37;i:{while(1){j:switch((d&255)-10|0){case 0:case 3:break i;default:break j}c= -c+1|0;if((c|0)!=(b|0)){d=K[c|0];continue}break}c=b}J[e+12>>2]=c}d=0}c=J[e+12>>2]+1|0;J[e+12>>2]=c;if(!d&b>>>0>c>>>0)continue;break}d=f?3:d}J[a>>2]=c;bc=e+16|0;return d}function Zaa(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;h=bc-48|0;bc=h;k=1;f=J[a+608>>2];d=J[a+604>>2];a:{if((c|0)>0)while(1){g=f;b:{c:{d:{e:{while(1){i=d;l=g;if((g|0)<=0)break d;g=g-1|0;d=d+1|0;e=K[i|0];j=e<<24>>24;if((j|0)>=0)break e;if((j|0)==-128)continue;break}e=1-j|0;if((e|0)<=(c|0)){f=l-2|0;g=i+2|0; -break c}g=J[a>>2];f=J[a+628>>2];J[h>>2]=e-c;ae(f,g,69253,h);f=l-2|0;g=i+2|0;e=c;if((e|0)>0)break c;break b}if((c|0)<=(e|0)){f=J[a>>2];i=J[a+628>>2];J[h+16>>2]=(e-c|0)+1;ae(i,f,69253,h+16|0);e=c-1|0}e=e+1|0;Ne(b,d,e);f=g-e|0;b=b+e|0;g=d+e|0;break b}J[a+604>>2]=i;J[a+608>>2]=f>>31&f;b=J[a+628>>2];c=J[a>>2];J[h+32>>2]=J[a+472>>2];Nc(b,c,70243,h+32|0);k=0;break a}b=wc(b,K[d|0],e)+e|0}d=g;c=c-e|0;if((c|0)>0)continue;break}J[a+608>>2]=f;J[a+604>>2]=d}bc=h+48|0;return k|0}function vwa(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0,f=0,g=0;d=bc-48|0;bc=d;c=J[b>>2];e=a+8|0;lv(e);f=e;e=Ms(c);f=Bs(f,e);g=gc[J[J[c>>2]+8>>2]](c,f,e)|0;H[g+f|0]=0;a:{if((e|0)>(g|0)){a=Kc(d+24|0,2375900,2373412,364,2406934,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}if((gc[J[J[c>>2]+8>>2]](c,d+23|0,1)|0)==1){c=K[d+23|0];if((c|0)!=1){b=kv(d+4|0,c);J[695492]=0;ca(5048,d+12|0,2376895,b|0);a=J[695492];J[695492]=0;b:{c:{d:{if((a|0)!=1){a=J[d+12>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;c=ja(5018, -d+24|0,a|0,2373412,370,2406934,0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break d;J[695492]=0;_(5019,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0;Fc(c);break c}a=Z()|0;break b}a=Z()|0}sc(d+12|0)}sc(b);ba(a|0);B()}cU(a+16|0,b,e,0,0)}bc=d+48|0;return}B()}function Jza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;qV(e+12|0,b);b=0;a:{b:{c:{d:{f=J[c>>2];if(f){J[695492]=0;J[f+4>>2]=J[f+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break d;b=J[c>>2]}J[695492]=0;J[e+8>>2]=b;ia(5215, -a|0,e+12|0,e+8|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;J[e+8>>2]=0;e:{if(!b)break e;J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(a)break e;J[695492]=0;_(4987,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[e+12>>2];J[e+12>>2]=0;f:{if(!a)break f;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break f;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=e+16|0;return}b=Z()|0;break b}b= -Z()|0;vc(e+8|0)}vc(e+12|0);ba(b|0);B()}ea(0)|0;yc();B()}function dva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-32|0;bc=d;if(!K[a+88|0]){e=a,f=gc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=gc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=gc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}a:{b:{if(J[a+92>>2]>0){c=0;while(1){if(!(J[a+116>>2]<=(c|0)&J[a+120>>2]>=(c|0))){a=Kc(d+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b| -0)!=1)break b;break a}if(!(J[a+140>>2]<=(c|0)&J[a+144>>2]>=(c|0))){a=Kc(d+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}qG(b,J[a+104>>2]+(c-J[a+108>>2]<<2)|0,J[a+128>>2]+(c-J[a+132>>2]<<2)|0);c=c+1|0;if((c|0)>2])continue;break}}H[a+88|0]=0;bc=d+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function bva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-32|0;bc=d;if(!K[a+88|0]){e=a,f=gc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=gc[J[J[a>> -2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=gc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}a:{b:{if(J[a+92>>2]>0){c=0;while(1){if(!(J[a+116>>2]<=(c|0)&J[a+120>>2]>=(c|0))){a=Kc(d+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if(!(J[a+140>>2]<=(c|0)&J[a+144>>2]>=(c|0))){a=Kc(d+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}pG(b,J[a+104>> -2]+(c-J[a+108>>2]<<2)|0,J[a+128>>2]+(c-J[a+132>>2]<<2)|0);c=c+1|0;if((c|0)>2])continue;break}}H[a+88|0]=0;bc=d+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Ow(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a>>2];a:{if(d>>>0<2)break a;e=J[a+12>>2];c=d-2|0;f=J[e+(c>>>4&268435452)>>2]+P(c&63,24)|0;c=d-1|0;e=J[e+(c>>>4&268435452)>>2]+P(c&63,24)|0;g=O[e>>3]-O[f>>3];j=g*g;g=O[e+8>>3]-O[f+8>>3];g=Y(j+g*g);e=g>1E-14;O[f+16>>3]=e?g:1E14;if(e)break a;J[a>>2]=c;d=c}h=J[a+4>>2];f=d>>>6|0; -if(h>>>0<=f>>>0){c=J[a+8>>2];b:{if(c>>>0>f>>>0){i=J[a+12>>2];break b}e=c+J[a+16>>2]|0;i=rc(e>>>0>1073741823?-1:e<<2);c=J[a+12>>2];if(c){tc(i,c,h<<2);qc(c);e=J[a+8>>2]+J[a+16>>2]|0;h=J[a+4>>2];d=J[a>>2]}J[a+8>>2]=e;J[a+12>>2]=i}k=(f<<2)+i|0,l=rc(1536),J[k>>2]=l;J[a+4>>2]=h+1}c=J[b+4>>2];d=J[J[a+12>>2]+(f<<2)>>2]+P(d&63,24)|0;J[d>>2]=J[b>>2];J[d+4>>2]=c;c=J[b+20>>2];J[d+16>>2]=J[b+16>>2];J[d+20>>2]=c;c=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=c;J[a>>2]=J[a>>2]+1}function AY(a){var b=0,c=0;a:{b=J[a+ -12>>2];if(b){J[695492]=0;_(3205,b+176|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;_(3205,b+192|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;_(3205,b+208|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;_(3205,b+224|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;_(3205,b+240|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;_(3205,b+256|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;_(3205,b+280|0);c=J[695492];J[695492]=0;if((c| -0)==1)break a;qc(b)}J[695492]=0;_(3205,a+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+48|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a}ea(0)|0;yc();B()}function Xqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;e=J[b>>2]}J[695492]=0;J[c+8>>2]=e;b=c+12|0;ia(5044,b|0,c+8|0,0,1);d=J[695492];J[695492]=0;a:{b:{c:{if((d|0)!=1){J[695492]=0;aa(4993,a+3312|0,b| -0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+12>>2];J[c+12>>2]=0;d:{if(!a)break d;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[c+8>>2];J[c+8>>2]=0;e:{if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=c+16|0;return}b=Z()|0;break b}b=Z()| -0;vc(c+12|0)}vc(c+8|0);ba(b|0);B()}ea(0)|0;yc();B()}function RM(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=J[J[e>>2]+12>>2];i=J[c>>2];k=J[J[f+(i<<2)>>2]>>2];e=J[b>>2];j=J[J[(e<<2)+f>>2]>>2];g=J[a>>2];l=J[(g<<2)+f>>2];a:{if(j>>>0>=M[l>>2]){if(k>>>0>=j>>>0){e=i;break a}J[b>>2]=i;J[c>>2]=e;h=1;g=J[b>>2];i=J[a>>2];if(M[J[(g<<2)+f>>2]>>2]>=M[J[(i<<2)+f>>2]>>2])break a;J[a>>2]=g;J[b>>2]=i;e=J[c>>2];h=2;break a}b:{if(k>>>0>>0){J[a>>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=e;J[b>>2]=g;h=2;e=J[c>>2];if(M[J[(e<< -2)+f>>2]>>2]>=M[l>>2]){h=1;break a}J[b>>2]=e;J[c>>2]=g}e=g}g=J[d>>2];if(M[J[(g<<2)+f>>2]>>2]>2]>>2]){J[c>>2]=g;J[d>>2]=e;d=J[c>>2];e=J[b>>2];if(M[J[(d<<2)+f>>2]>>2]>=M[J[(e<<2)+f>>2]>>2])return h+1|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(M[J[(c<<2)+f>>2]>>2]>=M[J[(d<<2)+f>>2]>>2])return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function RB(a,b,c,d){var e=0,f=0;e=J[a+5820>>2];a:{if((e|0)>=14){e=L[a+5816>>1]|d<>1]=e;f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=e;e=J[a+ -20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=K[a+5817|0];e=d&65535;d=J[a+5820>>2];f=e>>>16-d|0;I[a+5816>>1]=f;d=d-13|0;break a}f=L[a+5816>>1]|d<>1]=f;d=e+3|0}b:{if((d|0)>=9){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=f;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[a+5817|0];break b}if((d|0)<=0)break b;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=f}J[a+5820>>2]=0;I[a+5816>>1]=0;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=c;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=c>>>8;d=J[a+20>>2];J[a+ -20>>2]=d+1;e=d+J[a+8>>2]|0;d=c^-1;H[e|0]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d>>>8;tc(J[a+8>>2]+J[a+20>>2]|0,b,c);J[a+20>>2]=J[a+20>>2]+c}function JZa(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;a:{d=J[a>>2];e=J[a+4>>2]-d>>2;c=e+1|0;if(c>>>0<1073741824){d=J[a+8>>2]-d|0;f=d>>1;c=d>>>0>=2147483644?1073741823:c>>>0>>0?f:c;if(c){if(c>>>0>=1073741824)break a;g=rc(c<<2)}J[695492]=0;d=(e<<2)+g|0;aa(3094,d|0,b|0)|0;b=J[695492];J[695492]=0;b:{if((b|0)!=1){f=(c<<2)+g|0;h=d+4|0;i=J[a>> -2];e=J[a+4>>2];b=d;c:{while(1){c=b;if((e|0)==(i|0))break c;J[695492]=0;b=c-4|0;e=e-4|0;aa(3094,b|0,e|0)|0;j=J[695492];J[695492]=0;if((j|0)!=1)continue;break}e=Z()|0;if((c|0)!=(d|0))while(1){mh(c);c=c+4|0;if((d|0)!=(c|0))continue;break}mh(d);break b}J[a+8>>2]=f;b=J[a>>2];J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=h;if((b|0)!=(c|0))while(1){c=c-4|0;mh(c);if((b|0)!=(c|0))continue;break}if(b)qc(b);return}e=Z()|0}if(g)qc(g);ba(e|0);B()}ph(a);B()}Sd();B()}function zZa(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=-1;a:{b:{if(!(!d|(!a|!b))){if(!c){J[b>>2]=0;J[d>>2]=0;return 0}e=c;h=a;f=J[d>>2];c:{if((f|0)<=0)break c;l=J[b>>2]+h|0;k=e+f|0;f=e;while(1){e=H[f|0];g=e&255;j=(e|0)>=0;i=0;d:{if(j)break d;if(e>>>0<=4294967231)break a;if(e>>>0<=4294967263){g=g&31;i=1;break d}if(e>>>0<=4294967279){g=g&15;i=2;break d}if(e>>>0>4294967287)break b;g=g&7;i=3}e=f+1|0;if((i|0)>(k-e|0)){e=f;break c}if(!(e>>>0>=k>>>0|j)){while(1){j=K[e|0];if((j&192)!=128)break a;g=j&63|g<<6;i=i-1|0;e=e+1|0;if(k>>>0> -e>>>0?i:0)continue;break}if(g>>>0>255)break a}if(h>>>0>=l>>>0){e=f;break c}H[h|0]=g;h=h+1|0;f=e;if(e>>>0>>0)continue;break}}J[b>>2]=h-a;J[d>>2]=e-c;e=J[b>>2]}return e|0}J[b>>2]=h-a;J[d>>2]=f-c;return-2}J[b>>2]=h-a;J[d>>2]=f-c;return-2}function zF(a,b,c){var d=0,e=0;a:{b:{d=J[b+4>>2];c:{if(d>>>0<=4){e=L[b+2>>1];if(L[a+456>>1]==19789){if((e|0)==6){a=1;d:switch(d-1|0){case 3:H[c+3|0]=J[b+8>>2];case 2:H[c+2|0]=J[b+8>>2]>>>8;case 1:H[c+1|0]=L[b+10>>1];break;case 0:break d;default:break c}break b}a= -1;e:switch(d-1|0){case 3:H[c+3|0]=J[b+8>>2];case 2:H[c+2|0]=J[b+8>>2]>>>8;case 1:H[c+1|0]=L[b+10>>1];break;case 0:break e;default:break c}break b}if((e|0)==6){a=1;f:switch(d-1|0){case 3:H[c+3|0]=K[b+11|0];case 2:H[c+2|0]=L[b+10>>1];case 1:H[c+1|0]=J[b+8>>2]>>>8;break;case 0:break f;default:break c}break a}a=1;g:switch(d-1|0){case 3:H[c+3|0]=K[b+11|0];case 2:H[c+2|0]=L[b+10>>1];case 1:H[c+1|0]=J[b+8>>2]>>>8;break;case 0:break g;default:break c}break a}a=(Oh(a,b,c)|0)!=0}return a}H[c|0]=K[b+11|0];return 1}H[c| -0]=J[b+8>>2];return 1}function ula(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+24>>2]=0;J[a+4>>2]=a;J[a>>2]=a;J[695492]=0;e=$(6412,a+32|0)|0;c=J[695492];J[695492]=0;a:{b:{if((c|0)!=1){c=J[J[b>>2]+52>>2];J[695492]=0;b=$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;J[a+12>>2]=b;J[d+12>>2]=8;c=J[J[b>>2]+72>>2];J[695492]=0;da(c|0,b|0,d+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;bc=d+16|0;return a|0}b=Z()|0;break a}b=Z()|0;Zo(e)}if(H[a+27| -0]<0)qc(J[a+16>>2]);c:{if(!J[a+8>>2])break c;d=a;a=J[a+4>>2];e=J[a>>2];c=J[J[d>>2]+4>>2];J[e+4>>2]=c;J[c>>2]=e;J[d+8>>2]=0;if((a|0)==(d|0))break c;while(1){e=J[a+4>>2];if(H[a+63|0]<0)qc(J[a+52>>2]);c=J[a+36>>2];if(c){J[a+40>>2]=c;qc(c)}if(H[a+19|0]<0)qc(J[a+8>>2]);qc(a);a=e;if((d|0)!=(a|0))continue;break}}ba(b|0);B()}function tL(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-16|0;bc=g;i=J[a+28>>2];J[g+12>>2]=0;d=0;a:{if(b>>>0>>0)break a;f=Sc(i,4,0,c,0,g+12|0);d=0;if(J[g+12>>2])break a;while(1){d= -f;if(c>>>0<=e>>>0)break a;b=J[a+32>>2];if(b>>>0>2]){J[a+32>>2]=b+1;b=H[b|0]}else b=0;d=b<<24>>24;h=d&63;b:{if((d|0)<0){b=(e^-1)+c|0;b=b>>>0>>0?b:h;wc((e<<2)+f|0,0,(b<<2)+4|0);d=b+1|0;e=d+e|0;break b}b=0;if(d&64)while(1){k=(e<<2)+f|0,l=mf(a)<<16,J[k>>2]=l;d=b+1|0;e=e+1|0;if(b>>>0>=h>>>0)break b;b=d;if(c>>>0>e>>>0)continue;break b}while(1){j=(e<<2)+f|0;d=J[a+32>>2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;J[j>>2]=d<<24>>24<<16;d=b+1|0;e=e+1|0;if(b>>>0>=h>>>0)break b;b=d;if(c>>> -0>e>>>0)continue;break}}if(d>>>0>h>>>0)continue;break}if(f)gc[J[i+8>>2]](i,f);d=0}bc=g+16|0;return d}function kz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{e=J[a+4>>2];d=J[a>>2];f=e-d>>3;c=f+1|0;if(c>>>0<536870912){g=J[a+8>>2]-d|0;h=g>>2;c=g>>>0>=2147483640?536870911:c>>>0>>0?h:c;if(c>>>0>=536870912)break c;h=f<<3;f=c<<3;g=rc(f);c=h+g|0;J[c>>2]=J[b>>2];b=J[b+4>>2];J[c+4>>2]=b;if(b){J[b+4>>2]=J[b+4>>2]+1;e=J[a+4>>2];d=J[a>>2]}b=f+g|0;f=c+8|0;if((d|0)==(e|0))break b;while(1){c=c-8|0;e= -e-8|0;J[c>>2]=J[e>>2];J[c+4>>2]=J[e+4>>2];J[e>>2]=0;J[e+4>>2]=0;if((d|0)!=(e|0))continue;break}J[a+8>>2]=b;d=J[a+4>>2];J[a+4>>2]=f;b=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){d=d-8|0;a=J[d+4>>2];d:{if(!a)break d;e=J[a+4>>2];J[a+4>>2]=e-1;if(e)break d;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if((b|0)!=(d|0))continue;break}d=b;break a}ph(a);B()}Sd();B()}J[a+8>>2]=b;J[a+4>>2]=f;J[a>>2]=c}if(d)qc(d)}function k9a(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;var g=0,h=0,i=0,j=0;g=bc-32|0;bc=g;j=O[J[a+16>> -2]+24>>3];O[g+24>>3]=d;O[g+16>>3]=c;O[g+8>>3]=e;O[g>>3]=c;h=gc[J[J[a>>2]+540>>2]](a)|0;je(h,g+24|0,g+16|0);je(h,g+8|0,g);if(!b){e=O[g+8>>3];i=O[g+24>>3];d=O[g+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;c=j*f/25.4+.5;a:{if(R(c)<2147483648){b=~~c;break a}b=-2147483648}c=+((b>>>0<=1?1:b)|0);f=c*.5;if(R(d)<2147483648)b=~~d;else b=-2147483648;d=f+(+(b|0)+.5)+-.5-c;h=J[a+20>>2];if(R(i)<2147483648)b=~~i;else b=-2147483648;f=+(b|0);Zj(h,f,d);h=J[a+20>>2];if(R(e)<2147483648)b=~~e;else b= --2147483648;e=+(b+1|0);gn(h,e,d);gc[J[J[a>>2]+564>>2]](a);b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;c=c+c+d;Zj(J[a+20>>2],f,c);gn(J[a+20>>2],e,c);gc[J[J[a>>2]+564>>2]](a)}bc=g+32|0}function rya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-80|0;bc=c;d=c+8|0;e=a+72|0;pz(d,e);J[695492]=0;a=ga(5173,c+44|0,b|0,d|0)|0;b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[695492]=0;aa(5083,e|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+24>>2]=2381060;J[a>>2]=2381028;b=J[a+28>>2];if(b){d=J[b+4>> -2]-1|0;J[b+4>>2]=d;if(!d)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2381060;b=J[a+20>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)gc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}sc(a+8|0);J[c+32>>2]=2381060;J[c+8>>2]=2381028;a=J[c+36>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[c+36>>2]=0}J[c+24>>2]=2381060;a=J[c+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[c+28>>2]=0}sc(c+16|0);bc=c+80|0;return}b=Z()|0;break a}b=Z()|0;ud(a)}ud(c+8|0);ba(b|0);B()}function lyb(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=bc-16|0;bc=f;b=-1;a:{if(Lg(c,a+12|0))break a;if(Di(c,a+16|0))break a;if(Di(c,a+20|0))break a;if(Di(c,a+24|0))break a;if(Di(c,a+28|0))break a;if(Di(c,a+32|0))break a;if(Di(c,a+36|0))break a;if(Di(c,a+40|0))break a;if(Di(c,a+44|0))break a;if(Lg(c,a+48|0)|!J[a+16>>2]|(!J[a+20>>2]|!J[a+32>>2]))break a;if(!J[a+36>>2])break a;d=J[a+48>>2];if(!d)break a;d=zc(d<<2);J[a+52>>2]=d;if(!d)break a;b:{if(J[a+48>>2]){b=0;while(1){c:{d:{if(Nr(c,f+15|0))break d;e=b<<2;if(Nr(c, -(e+J[a+52>>2]|0)+2|0))break d;if(!Nr(c,(e+J[a+52>>2]|0)+3|0))break c}qc(J[a+52>>2]);break b}d=J[a+52>>2];e=e+d|0;H[e+1|0]=K[f+15|0]>>>7;H[e|0]=(K[f+15|0]&127)+1;b=b+1|0;if(b>>>0>2])continue;break}}b=0;if(!(H[c+8|0]&1))break a;qc(d)}b=-1}bc=f+16|0;return b|0}function aM(a,b,c,d){var e=0,f=0,g=0,h=0;if(!a)return;if(!d)return;e=J[a+96>>2];J[d>>2]=0;J[d+4>>2]=0;e=J[J[e+12>>2]+76>>2];if(!e)return;if(!(gc[e|0](a,b,c,d)|0)){e=J[d>>2];b=e>>31;c=J[a+88>>2];g=J[c+16>>2];a=g>>31;b=(b^e)-b|0;a=(a^g)- -a|0;a:{if(b+(a>>>8|0)>>>0<=8190){b=P(a,b)+32768>>>16|0;break a}f=b&65535;b=P(f,a>>>16|0)+P(a,b>>>16|0)+(P(f,a&65535)+32768>>>16)|0}a=b;f=0-a|0;a=e>>31|1;b=(((g|0)<0?0-a|0:a)|0)<0?f:b;J[d>>2]=b;g=J[d+4>>2];e=g>>31;f=J[c+20>>2];a=f>>31;e=(e^g)-e|0;a=(a^f)-a|0;b:{if(e+(a>>>8|0)>>>0<=8190){e=P(a,e)+32768>>>16|0;break b}h=e&65535;e=P(h,a>>>16|0)+P(a,e>>>16|0)+(P(a&65535,h)+32768>>>16)|0}a=e;h=0-a|0;a=g>>31|1;a=(((f|0)<0?0-a|0:a)|0)<0?h:e;J[d+4>>2]=a;e=L[c+12>>1];if(e>>>0<=24)b=Dd(b,e,25);c=L[c+14>>1]; -if(c>>>0<=24)a=Dd(a,c,25);J[d+4>>2]=a+32&-64;J[d>>2]=b+32&-64}}function XTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>2147482623)break a;e=J[a+1040>>2];if((e|0)>(b|0))break a;b:{if((e+1020|0)>=(b|0)){d=e;break b}f=J[a+1044>>2];d=f+e|0;if((d|0)>(b|0)){d=f+(e-b|0)|0;J[a+1044>>2]=d;f=a+16|0;Zc(f,f+(b-e|0)|0,d);J[a+1040>>2]=b;d=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=d;if((b|0)<=(d|0))break b;while(1){d=0;if((gc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;d=J[a+1040>>2]+1|0;J[a+1040>>2]=d;if((b|0)>(d| -0))continue;break}}e=b+4|0;if((e|0)>(J[a+1044>>2]+d|0))while(1){d=0;f=gc[J[a+4>>2]](J[a+8>>2])|0;if((f|0)<0)break a;d=J[a+1044>>2];J[a+1044>>2]=d+1;H[(a+d|0)+16|0]=f;d=J[a+1040>>2];if((e|0)>(d+J[a+1044>>2]|0))continue;break}a=(b-d|0)+a|0;a=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);J[c>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);d=1}return d|0}function iE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=qE(a);a:{if(!f)break a;d=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=d;d=J[b+48>>2];J[a+44>> -2]=J[b+44>>2];J[a+48>>2]=d;d=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=d;d=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=d;d=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=d;tc(a+52|0,b+52|0,908);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+960>>2]=J[b+960>>2];J[a+964>>2]=J[b+964>>2];J[a+968>>2]=J[b+968>>2];wc(b+4|0,0,968);if(!c)break a;b:{if(J[a+60>>2])break b;d=J[a+972>>2];if(!d)break b;c=0;e=J[a+356>>2];c:{if((e|0)>0){while(1){d=J[J[a+972>>2]+(c<<2)>>2];if(d){gc[J[J[d>>2]+4>>2]](d);e=J[a+356>>2]}c= -c+1|0;if((e|0)>(c|0))continue;break}d=J[a+972>>2];if(!d)break c}qc(d)}J[a+356>>2]=0;J[a+972>>2]=0}J[a+972>>2]=J[b+972>>2];J[b+972>>2]=0}return f|0}function dDa(a){a=a|0;var b=0,c=0,d=0;c=bc-16|0;bc=c;b=J[a+32>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;d=J[a+32>>2]}J[695492]=0;J[c+8>>2]=d;b=c+12|0;ia(5044,b|0,c+8|0,0,1);d=J[695492];J[695492]=0;a:{b:{c:{if((d|0)!=1){J[695492]=0;aa(4993,a+48|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+12>>2];J[c+12>>2]=0;d:{if(!a)break d;J[695492]=0;b=J[a+4>>2]- -1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break d;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[c+8>>2];J[c+8>>2]=0;e:{if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=c+16|0;return}a=Z()|0;break b}a=Z()|0;vc(c+12|0)}vc(c+8|0);ba(a|0);B()}ea(0)|0;yc();B()}function Hqb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-1|0;while(1){I[g>>1]=L[f>>1];I[g+2>>1]=L[f+2>>1];I[g+4>>1]=L[f+4>>1];h=g+6|0;a=j?(j|0)==(l|0)?d:b:c;a:{if(a>>>0<2){g=h;break a}i=a-1|0;k=i&3;b:{if(a-2>>>0<3){a=g;break b}m=i&-4;i=0;a=g;while(1){I[h>>1]=L[f>>1];I[a+8>>1]=L[f+2>>1];I[a+10>>1]=L[f+4>>1];I[h+6>>1]=L[f>>1];I[h+8>>1]=L[f+2>>1];I[h+10>>1]=L[f+4>>1];I[h+12>>1]=L[f>>1];I[h+14>>1]=L[f+2>>1];I[h+16>>1]=L[f+4>>1];I[h+18>>1]=L[f>>1];I[h+20>>1]=L[f+2>>1];I[h+22>>1]=L[f+4>>1];a=h+18|0;h=h+24|0;i=i+4|0; -if((m|0)!=(i|0))continue;break}}i=0;g=h;if(!k)break a;while(1){h=g;I[h>>1]=L[f>>1];I[a+8>>1]=L[f+2>>1];I[a+10>>1]=L[f+4>>1];g=h+6|0;a=h;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=f+6|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function Wia(a){a=a|0;var b=0,c=0,d=0;d=bc-32|0;bc=d;b=J[a+584>>2];a:{b:{c:{d:{e:{c=L[a+90>>1];switch(c-32844|0){case 0:break d;case 1:break e;default:break c}}c=1;if(!FQ(a))break a;if(L[a+88>>1]==34677){J[a+544>>2]=594;f:switch(J[b>>2]){case 0:J[b+20>>2]=595;break a; -case 2:break a;case 1:break f;default:break b}J[b+20>>2]=596;break a}J[a+544>>2]=597;g:switch(J[b>>2]){case 0:J[b+20>>2]=598;break a;case 2:break a;case 1:break g;default:break b}J[b+20>>2]=599;break a}c=1;if(!nQ(a))break a;J[a+544>>2]=600;h:{c=J[b>>2];switch(c|0){case 1:break a;case 0:break h;default:break b}}J[b+20>>2]=601;c=1;break a}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=73862;J[d>>2]=c;Nc(a,b,73035,d);c=1;break a}b=J[a>>2];c=J[a+628>>2];J[d+16>>2]=L[a+90>>1]==32844?80687:80802;Nc(c,b,80285,d+16|0); -c=0}bc=d+32|0;return c|0}function Ntb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[J[a+536>>2]+88>>2];d=(J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0)+P(J[d+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){c=K[d|0]|K[d+1|0]<<8;b=(c<<8|c>>>8)&65535;c=K[e|0]|K[e+1|0]<<8;c=b+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;c=d+2|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[e+2|0]|K[e+ -3|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;c=d+4|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[e+4|0]|K[e+5|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;e=e+6|0;d=d+6|0;g=g+1|0;if((g|0)>2])continue;break}}return 0}tc(d,e,P(J[a+588>>2],6));return 0}function vSa(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;a:{g=J[a+8>>2];if((g|0)<=0)break a;e=O[a+16>>3];d=O[a+24>>3];h=O[b>>3];h=e>h?e:d>2]){b=0;while(1){f=b<<3;i=f+a|0;e=O[i+1304>>3];f=c+f|0;d=O[i+1048>>3];e=d+We(h,O[a+1560>>3])*(e-d);O[f>>3]=e;i=(b<<4)+a|0;d=O[i+528>>3];b:{if(!(e>3];if(!(e>d))break b}O[f>>3]=d}b=b+1|0;if((g|0)!=(b|0))continue;break}break a}b=0;if((g|0)!=1){l=g&-2;i=a+1048|0;j=a+1304|0;while(1){f=b<<3;e=O[f+j>>3];d=O[f+i>>3];m=c+f|0,n=d+We(h,O[a+1560>>3])*(e-d),O[m>>3]=n;f=f|8;e=O[f+j>>3];d=O[f+i>>3];m=c+f|0,n=d+We(h,O[a+1560>>3])*(e-d),O[m>>3]=n;b=b+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(!(g& -1))break a;b=b<<3;g=b+a|0;e=O[g+1304>>3];d=O[g+1048>>3];m=b+c|0,n=d+We(h,O[a+1560>>3])*(e-d),O[m>>3]=n}}function ll(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;f=bc-256|0;bc=f;e=Wh(84);J[a+8>>2]=e;a:{if(e){J[f+24>>2]=J[187448];g=J[187447];J[f+16>>2]=J[187446];J[f+20>>2]=g;g=J[187445];J[f+8>>2]=J[187444];J[f+12>>2]=g;g=J[187443];J[f>>2]=J[187442];J[f+4>>2]=g;g=wc(e,0,84);H[f+8|0]=K[b+8|0];e=0;b:{c:{while(1){if(J[c>>2]>0)break c;if(!(63104>>>e&1)){h=e<<2;i=h+g|0,j=ag(J[h+749808>>2],f+32|0,f,c),J[i>>2]=j}e= -e+1|0;if((e|0)!=20)continue;break}if(J[c>>2]>0)break c;if(!K[b+8|0])break b}$0(a);break a}H[g+80|0]=d;e=0;a=J[b+24>>2];d:{if(!a)break d;b=H[a|0];if(!b)break d;c=749888;e=732795;d=b&255;while(1){e:{h=K[e|0];f:{if((h|0)==(d|0)){if(kd(e,a,Qc(e)))break f;H[g+81|0]=K[c+4|0];break a}if((b|0)>24)break e}e=J[c+8>>2];c=c+8|0;if(e)continue}break}e=1}H[g+81|0]=e;break a}J[c>>2]=7}bc=f+256|0}function he(a,b,c){var d=0,e=0,f=0,g=0;g=J[c>>2]+b|0;d=K[g|0];e=d>>>1|0;c=J[(e<<2)+2716656>>2];b=J[a+12>>2]-c|0; -J[a+12>>2]=b;d=d&1;f=J[a+8>>2];a:{if(f>>>0>>0){if((b|0)<0)break a;b:{if(b>>>0>>0){b=d^1;f=e<<2;e=J[f+2717040>>2]<<1;c=b|e;if(J[f+2717232>>2])break b;c=d|e;break b}b=d;c=b|J[(e<<2)+2716848>>2]<<1}H[g|0]=c;c=J[a+16>>2];while(1){if(!c){cI(a);c=J[a+16>>2]}c=c-1|0;J[a+16>>2]=c;d=J[a+12>>2]<<1;J[a+12>>2]=d;J[a+8>>2]=J[a+8>>2]<<1;if((d|0)>=0)continue;break}return b}J[a+8>>2]=f-b;c:{if(b>>>0>>0){b=J[(e<<2)+2716848>>2]<<1|d;break c}f=d^1;e=e<<2;b=J[e+2717040>>2]<<1;b=J[e+2717232>>2]?b|f:b|d;d=f}H[g| -0]=b;J[a+12>>2]=c;b=J[a+16>>2];while(1){if(!b){cI(a);c=J[a+12>>2];b=J[a+16>>2]}c=c<<1;J[a+12>>2]=c;b=b-1|0;J[a+16>>2]=b;J[a+8>>2]=J[a+8>>2]<<1;if((c|0)>=0)continue;break}}return d}function OQa(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;a:{f=J[a+392>>2];if(M[f+8>>2]>=M[a+284>>2])break a;h=f+24|0;i=f+12|0;e=J[a+280>>2];g=J[f+12>>2];if(e>>>0>g>>>0){gc[J[J[a+396>>2]+4>>2]](a,b,c,d,h,i,e);g=J[i>>2];e=J[a+280>>2]}if((e|0)!=(g|0))break a;g=gc[J[J[a+400>>2]+4>>2]](a,h)|0;e=J[f+16>>2];b:{if(!g)break b; -if(e){J[c>>2]=J[c>>2]+1;J[f+16>>2]=0}J[f+12>>2]=0;e=J[f+8>>2]+1|0;J[f+8>>2]=e;if(e>>>0>=M[a+284>>2])break a;while(1){e=J[a+280>>2];if(e){gc[J[J[a+396>>2]+4>>2]](a,b,c,d,h,i,e);e=J[a+280>>2];g=J[i>>2]}else g=0;if((e|0)!=(g|0))break a;g=gc[J[J[a+400>>2]+4>>2]](a,h)|0;e=J[f+16>>2];if(!g)break b;if(e){J[c>>2]=J[c>>2]+1;J[f+16>>2]=0}J[f+12>>2]=0;e=J[f+8>>2]+1|0;J[f+8>>2]=e;if(e>>>0>2])continue;break}break a}if(e)break a;J[c>>2]=J[c>>2]-1;J[f+16>>2]=1}}function Kg(a){var b=0,c=0,d=0,e=0,f=0;b= -J[a+12>>2];c=J[b>>2];f=J[c+4>>2];e=M[a+4>>2]>2];J[b>>2]=J[c+(e?12:8)>>2];c=J[a+8>>2];while(1){a:{if(c){b=J[a>>2];break a}b:{c:{d:{e:{if(!J[a+32>>2]){d=J[a+24>>2];c=J[d+8>>2];if(c&7)break e;b=J[d+64>>2];if(!((b|0)<0|(b|0)>J[d+60>>2])){J[d+8>>2]=c|4;break e}b=J[d+28>>2];J[d+28>>2]=b-1;f:{if((b|0)>0){J[d+60>>2]=J[d+60>>2]+1;b=J[d+24>>2];J[d+24>>2]=b+1;b=K[b|0];break f}b=jd(d,1);if((b|0)==-1)break e}c=K[a+28|0];H[a+28|0]=b;d=J[a>>2];if((c|0)!=255)break d;if((b|0)>=144)break c;b=(b<<9)+d|0;c=7;break a}b= -J[a>>2]+65280|0;break b}J[a+32>>2]=1;c=K[a+28|0];b=255;H[a+28|0]=255;d=J[a>>2];if((c|0)==255)break c}c=8;b=(b<<8)+d|0;break a}b=d+65280|0}c=8}c=c-1|0;J[a+8>>2]=c;J[a>>2]=b<<1;b=J[a+4>>2];J[a+4>>2]=b<<1;if(!(b&16384))continue;break}return f^e}function Go(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{e=J[a+12>>2];d=K[e|0];b:{if(!d){b=e;break b}while(1){b=d<<24>>24;if(!((b|0)==32|b-9>>>0<5))break a;d=K[e+1|0];b=e+1|0;e=b;if(d)continue;break}}J[a+12>>2]=b;return 1}f=-1;c=(b|32)-97>>>0<26;c:{d:{e:{if((d&255)==95){c= -e;break e}if(c){c=e;break e}c=e;if(b-48>>>0>9)break d}f:{while(1){b=d<<24>>24;if(!((d&255)==95|(b|32)-97>>>0<26)&b-48>>>0>9)break f;d=K[c+1|0];c=c+1|0;if(d)continue;break}J[a+12>>2]=c;break c}if((d&255)!=61){if(!((b|0)==32|b-9>>>0<5))break d;H[c|0]=0;J[a+12>>2]=c+1;break c}f=0;H[c|0]=0;g=c+1|0;d=g;b=K[c+1|0];g:{if(!b)break g;c=d;while(1){h:{d=c+1|0;b=b<<24>>24;if((b|0)==32|b-9>>>0<5)break h;c=d;b=K[c|0];if(b)continue;break g}break}H[c|0]=0}J[a+8>>2]=g;J[a+4>>2]=e;J[a+12>>2]=d}return f}J[a+8>>2]=198531; -J[a+4>>2]=e;return 0}function jS(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+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;a:{b:{f=J[b+4>>2];if((f|0)!=(b|0)){j=a;while(1){J[695492]=0;c=$(4,24)|0;g=J[695492];J[695492]=0;if((g|0)==1){b=Z()|0;break a}k=0;J[c>>2]=0;g=J[f+8>>2];J[c+20>>2]=0;h=c+12|0;J[c+16>>2]=h;J[c+8>>2]=g;J[h>>2]=h;g=h;e=J[f+16>>2];l=f+12|0;if((e|0)!=(l|0))while(1){J[695492]=0;d=$(4,24)|0;i=J[695492];J[695492]=0;if((i|0)==1)break b;i=J[e+12>>2];J[d+8>>2]=J[e+8>>2];J[d+12>>2]=i;i=J[e+20>> -2];J[d+16>>2]=J[e+16>>2];J[d+20>>2]=i;J[d+4>>2]=h;J[d>>2]=g;J[g+4>>2]=d;k=k+1|0;J[c+20>>2]=k;J[c+12>>2]=d;g=d;e=J[e+4>>2];if((l|0)!=(e|0))continue;break}J[c>>2]=j;J[c+4>>2]=a;J[j+4>>2]=c;m=m+1|0;J[a+8>>2]=m;J[a>>2]=c;j=c;f=J[f+4>>2];if((f|0)!=(b|0))continue;break}}return a}b=Z()|0;Zo(h);qc(c)}iS(a);ba(b|0);B()}function aVa(a,b){a=a|0;b=b|0;var c=0,d=0;we(b,1);pd(b,J[a+20>>2]);we(b,K[a+64|0]);c=K[a+64|0];a:{if(c>>>0>7)break a;b:{c:{d:{if(!(1<>3]*100;if(!(R(d)< -2147483648))break d;c=~~d;break c}we(b,K[a+24|0]);c=J[a+24>>2];if(c&1){d=O[a+32>>3]*100;e:{if(R(d)<2147483648){c=~~d;break e}c=-2147483648}pd(b,c);c=J[a+24>>2]}if(c&2){d=O[a+40>>3]*100;f:{if(R(d)<2147483648){c=~~d;break f}c=-2147483648}pd(b,c);c=J[a+24>>2]}if(c&4)break b;break a}c=-2147483648}pd(b,c);d=O[a+40>>3]*100;g:{if(R(d)<2147483648){c=~~d;break g}c=-2147483648}pd(b,c);d=O[a+48>>3]*100;h:{if(R(d)<2147483648){c=~~d;break h}c=-2147483648}pd(b,c)}d=O[a+56>>3]*100;i:{if(R(d)<2147483648){c=~~d;break i}c= --2147483648}pd(b,c)}if(J[a+16>>2]){we(b,1);a=J[a+16>>2];gc[J[J[a>>2]+8>>2]](a,b);return}we(b,0)}function RNa(a){a=a|0;var b=0,c=0,d=0;b=rc(240);c=J[a+4>>2];a=J[J[c>>2]+8>>2];J[695492]=0;c=$(a|0,c|0)|0;a=J[695492];J[695492]=0;a:{b:{c:{if((a|0)==1)break c;J[695492]=0;J[b+4>>2]=c;J[b>>2]=2331012;a=J[695492];J[695492]=0;if((a|0)==1)break c;J[b>>2]=2305984;J[695492]=0;d=$(4,16)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[b+4>>2];J[695492]=0;c=ga(3448,d|0,a|0,3)|0;a=J[695492];J[695492]=0;if((a|0)== -1){a=Z()|0;qc(d);break a}J[b+96>>2]=0;J[b+76>>2]=0;J[b+8>>2]=c;J[b+12>>2]=0;J[b+16>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+124>>2]=0;J[b+128>>2]=0;J[b+132>>2]=0;J[b+136>>2]=0;J[b+200>>2]=0;J[b+204>>2]=0;J[b+208>>2]=0;J[b+212>>2]=0;J[b+216>>2]=0;return b|0}a=Z()|0;break a}a=Z()|0}qc(b);ba(a|0);B()}function Cpa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;e=J[b>>2]}J[695492]= -0;J[c+8>>2]=e;da(5539,c+12|0,c+8|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){b=J[c+8>>2];J[c+8>>2]=0;d:{if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[695492]=0;da(5540,a|0,J[c+12>>2]);a=J[695492];J[695492]=0;if((a|0)==1)break c;a=J[c+12>>2];J[c+12>>2]=0;e:{if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break e; -J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=c+16|0;return}b=Z()|0;a=c+8|0;break b}b=Z()|0;a=c+12|0}vc(a);ba(b|0);B()}ea(0)|0;yc();B()}function wba(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=J[a+584>>2];a:{if(J[b+884>>2]>0){e=J[b+76>>2];if((e|0)>0){c=J[b+84>>2];while(1){f=J[c+12>>2];d=P(f,J[b+884>>2]);f=f<<3;if((d|0)<(f|0)){e=J[c+28>>2]<<3;i=(g<<2)+b|0;while(1){h=J[i+844>>2]+(d<<2)|0;Ne(J[h>>2],J[h-4>>2],e);d=d+1|0;if((f|0)!=(d|0))continue;break}e=J[b+76>>2]}c=c+88|0; -g=g+1|0;if((g|0)<(e|0))continue;break}}d=0;i=b;h=b+844|0;b=J[b+272>>2]<<3;if((yO(i,h,b)|0)!=(b|0))break a;b=J[a+584>>2]}c=0;a=zc(40);J[a>>2]=0;a=zf(b+624|0,1,a,4);f=cc;b:{c:{while(1){if(c)break b;J[695492]=0;_(103,b|0);c=J[695492];J[695492]=0;if((c|0)==1){d=Z()|0;qc(a);ba(d|0);B()}e=-1;d:{e:{if(!c)break e;g=J[695493];if(!g)break e;e=Jc(J[c>>2],a,f);if(!e)break d;cc=g}c=cc;if((e|0)!=1)break c;continue}break}qc(a);ef(c,g);B()}d=1}qc(a)}return d|0}function bT(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=bc- -48|0;bc=f;b=J[a+72>>2];d=J[a+68>>2];if((d|0)==-1)d=J[a+56>>2];g=J[a+76>>2];b=(b|0)==-1?J[a+60>>2]:b;g=(g|0)==-1?J[a- -64>>2]:g;a:{if(!g|(!d|!b))break a;h=J[a+56>>2];if(h>>>0<0-d>>>0)c=((d+h|0)-1>>>0)/(d>>>0)|0;d=J[a+60>>2];b:{if(d>>>0>=0-b>>>0)break b;d=(b+d|0)-1|0;e=Dzb((d>>>0)/(b>>>0)|0,0,c,0);c=fc;if(!c|b>>>0>d>>>0)break b;c=J[a>>2];e=J[a+628>>2];J[f+32>>2]=72047;Nc(e,c,74119,f+32|0);e=0}c=0;b=J[a- -64>>2];if(b>>>0>=0-g>>>0)break a;b=(b+g|0)-1|0;c=Dzb((b>>>0)/(g>>>0)|0,0,e,0);e=fc;if(!e|b>>>0< -g>>>0)break a;c=J[a>>2];e=J[a+628>>2];J[f+16>>2]=72047;Nc(e,c,74119,f+16|0);c=0}c:{if(L[a+138>>1]!=2)break c;e=L[a+98>>1];c=Dzb(e,0,c,0);b=fc;if(!e|!b)break c;c=J[a>>2];a=J[a+628>>2];J[f>>2]=72047;Nc(a,c,74119,f);c=0}bc=f+48|0;return c}function ota(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=bc-32|0;bc=c;e=ch(c+4|0,c+12|0,P(J[b+8>>2],6)|1,1);H[J[c+12>>2]]=0;a:{b:{d=J[b+12>>2];if(!d)break b;b=J[b+8>>2];if(!b)break b;f=J[c+12>>2];J[c+16>>2]=0;c:{d:{while(1){J[695492]=0;g=Uo(c+16|0,d,b);h=J[695492]; -J[695492]=0;if((h|0)==1)break c;if((g|0)<0)break d;d=d+g|0;f=Rj(J[c+16>>2],f);b=b-g|0;if(b)continue;break}H[f|0]=0;break b}J[695492]=0;ca(5443,e|0,0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;break a}b=Z()|0;break a}J[695492]=0;b=J[c+12>>2];J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2414676;ca(5467,a|0,c+16|0,b|0);a=J[695492];J[695492]=0;if((a|0)!=1){J[c+16>>2]=2414580;a=J[c+28>>2];if(a){H[a|0]=0;qc(J[c+28>>2])}J[c+28>>2]=0;ed(c+16|0);_c(e);bc=c+32|0;return}b=Z()|0;bh(c+16|0)}_c(e); -ba(b|0);B()}function Ycb(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;d=bc-272|0;bc=d;gc[J[b+60>>2]](b,d+80|0,16,d+76|0);f=J[d+76>>2];a:{if((f|0)<0){c=162;break a}c=3;if(f-17>>>0<4294967280)break a;i=J[a+532>>2];j=J[b+8>>2];k=J[b>>2];f=0;while(1){c=(d+80|0)+P(g,12)|0;J[b>>2]=J[c>>2];J[b+8>>2]=J[c+4>>2];gc[J[b+60>>2]](b,d+16|0,4,d+12|0);e=J[d+12>>2];b:{c:{if(!g){if(e-5>>>0<4294967292)break c;c=EC(a,J[d+76>>2],e);if(c)break a;i=J[a+532>>2];c=J[d+12>>2];f=e;break b}c=f;if((e|0)==(c|0))break b}c= -3;break a}if((c|0)>0){e=(g<<2)+i|0;c=0;while(1){h=(d+16|0)+P(c,12)|0;J[b>>2]=J[h>>2];J[b+8>>2]=J[h+4>>2];h=gc[J[b+40>>2]](b,0)|0;J[J[e+24>>2]+(c<<2)>>2]=h;c=c+1|0;if((c|0)>2])continue;break}}g=g+1|0;if((g|0)>2])continue;break}J[b+8>>2]=j;J[b>>2]=k;c=0}J[b+12>>2]=c;bc=d+272|0}function iDa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=rc(52);b=J[a+4>>2];J[c+20>>2]=0;J[c+24>>2]=-1;J[c+12>>2]=0;J[c+16>>2]=-1;J[c>>2]=2382568;J[c+4>>2]=0;J[c+8>>2]=0;J[c+28>>2]=J[b+28>>2];J[c+32>> -2]=J[b+32>>2];J[c+36>>2]=J[b+36>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=J[b+44>>2];J[c+48>>2]=J[b+48>>2];d=J[b+24>>2];e=J[b+20>>2];J[695492]=0;ca(5042,c|0,e|0,d|0);d=J[695492];J[695492]=0;a:{if((d|0)==1)break a;e=J[b+8>>2];f=J[c+8>>2];g=J[b+44>>2];h=J[c+20>>2];i=J[c+24>>2];d=J[c+12>>2];j=J[b+20>>2];k=J[b+24>>2];b=J[b+12>>2];J[695492]=0;oa(g|0,f|0,h-d|0,i-d|0,e|0,j-b|0,k-b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[c+4>>2]=J[c+4>>2]+1;b=J[a+4>>2];b:{if(!b)break b;d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(d)break b; -gc[J[J[b>>2]+4>>2]](b)}J[a+4>>2]=c;return}a=Z()|0;qc(c);ba(a|0);B()}function iA(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;b=J[a+5164>>2];if(b){c=J[a+5160>>2];if(c){b=0;while(1){d=J[J[a+5164>>2]+(b<<3)>>2];if(d){qc(d);c=J[a+5160>>2]}b=b+1|0;if(c>>>0>b>>>0)continue;break}b=J[a+5164>>2]}J[a+5160>>2]=0;qc(b);J[a+5164>>2]=0}b=J[a+5172>>2];if(b){qc(b);J[a+5172>>2]=0}b=J[a+5584>>2];if(b){qc(b);J[a+5584>>2]=0}b=J[a+5612>>2];if(b){qc(b);J[a+5612>>2]=0}b=J[a+5608>>2];if(b){qc(b);J[a+5608>>2]=0}b=J[a+5628>>2]; -if(b){qc(b);J[a+5636>>2]=0;J[a+5628>>2]=0;J[a+5632>>2]=0}b=J[a+5616>>2];if(b){e=J[a+5620>>2];if(e){c=0;while(1){d=J[b+12>>2];if(d){qc(d);J[b+12>>2]=0;e=J[a+5620>>2]}b=b+20|0;c=c+1|0;if(e>>>0>c>>>0)continue;break}b=J[a+5616>>2]}qc(b);J[a+5616>>2]=0}b=J[a+5604>>2];if(b){qc(b);J[a+5604>>2]=0}b=J[a+5596>>2];if(!b)break a;qc(b);J[a+5596>>2]=0;J[a+5600>>2]=0}}function Dd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=2147483647;a:{if(!c)break a;b:{e=b>>31;f=(e^b)-e|0;e=a>>31;g=(e^a)-e|0;e=c>>31;e=(e^c)-e|0;if(f+ -g>>>0<=129894-(e>>>17|0)>>>0){f=P(f,g)+(e>>>1|0)|0;break b}h=f>>>16|0;d=g>>>16|0;j=P(h,g&65535)+P(d,f&65535)|0;d=(j>>>16|0)+P(d,h)|0;h=e>>>1|0;g=P(f,g);f=h+g|0;d=(d+(f>>>0>>0)|0)+(g>>>0>>0)|0;if(!d)break b;if(e>>>0<=d>>>0)break a;g=S(d);h=32-g|0;d=f>>>h|d<>>0)/(e>>>0)|0;d=d-P(e,i)|0;f=f<>>31;h=d>>>0>=e>>>0;d=d-(h?e:0)|0;i=h|i<<1;h=g^31;f=f<<1}if((g|0)==31)break a;while(1){d=d<<1|f>>>31;g=d>>>0>=e>>>0;d=f>>>30&1|d-(g?e:0)<<1;j=d>>>0>=e>>>0;d=d-(j?e:0)|0;i=j|(i<< -2|g<<1);f=f<<2;h=h-2|0;if(h)continue;break}break a}i=(f>>>0)/(e>>>0)|0}a=a>>31|1;a=(b|0)<0?0-a|0:a;return(((c|0)<0?0-a|0:a)|0)<0?0-i|0:i}function v3(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;f=J[a+20>>2];i=J[a+28>>2]-f>>3;h=J[a+4>>2];while(1){a=I[f+8>>1];d=I[f+10>>1];a:{if((d|0)>0){x3(b,a,h,d,c,J[f+12>>2]);break a}if(J[b+16>>2]<(h|0)|J[b+8>>2]>(h|0))break a;d=a+(d^-1)|0;e=(a|0)<(d|0)?a:d;g=J[b+12>>2];if((e|0)>(g|0))break a;a=(a|0)>(d|0)?a:d;d=J[b+4>>2];if((a|0)<(d|0))break a;j=J[f+12>> -2];k=(d|0)<(e|0)?e:d;m=((a|0)<(g|0)?a:g)-k|0;l=J[b>>2];a=J[l>>2];d=J[a+4>>2];e=J[a+16>>2];b:{c:{if((e|0)>=0){a=P(e,h);break c}n=d-J[a>>2]|0;a=P(e,h);g=0;if((n|0)<(0-a|0))break b}g=a+d|0}j=K[j|0];e=m+1|0;a=g+(k<<2)|0;while(1){d=K[c+3|0];gc[J[(J[l+4>>2]<<2)+2637648>>2]](a,P(d,K[c|0])+255>>>8|0,P(d,K[c+1|0])+255>>>8|0,P(d,K[c+2|0])+255>>>8|0,d,j);a=a+4|0;e=e-1|0;if(e)continue;break}}f=f+8|0;i=i-1|0;if(i)continue;break}}function _B(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=b+c|0;H[g|0]=0;i=(c<<10)+a|0;c=0; -while(1){d=J[(c<<2)+i>>2];e=d>>>24&127;f=e+b|0;if(K[f|0]==255)_B(a,b,e);a:{b:{if((d|0)>=0){if(H[f|0]<0)break b;break a}if((d&14680064)>>>0<6291456)break a}if((c|0)==255){H[g|0]=192;return}c=c+1|0;continue}break}d=K[g|0]|c>>>2&1073741816;H[g|0]=d;e=255;if(c>>>0<=254){while(1){d=J[(e<<2)+i>>2];f=d>>>24&127;h=f+b|0;if(K[h|0]==255)_B(a,b,f);c:{d:{if((d|0)>=0){if(H[h|0]<0)break d;break c}if((d&14680064)>>>0<6291456)break c}e=e-1|0;if(e>>>0>c>>>0)continue}break}d=K[g|0]}H[g|0]=d|e>>>5;if((c|0)<=(e|0))while(1){d= -c;c=J[(c<<2)+i>>2];h=c>>>24&127;f=h+b|0;if(K[f|0]==255)_B(a,b,h);e:{if((c|0)>=0)break e;H[f|0]=K[f|0]|64;if(c&12582912)break e;H[g|0]=K[g|0]|64}c=d+1|0;if((d|0)!=(e|0))continue;break}}function DCa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;J[695492]=0;J[c+28>>2]=0;aa(4985,c+28|0,0)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){d=J[c+28>>2];if(!d)break a;J[d+8>>2]=2;J[c+24>>2]=b;J[695492]=0;b=aa(4989,c+8|0,a|0)|0;a=J[695492];J[695492]=0;c:{d:{e:{if((a|0)!=1){J[695492]=0;d=ga(5057,c+16|0,b|0,c+24|0)| -0;a=J[695492];J[695492]=0;if((a|0)==1)break e;sc(b);J[695492]=0;aa(5058,J[c+28>>2],d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break c;a=ea(0)|0;sc(d);break d}a=ea(0)|0;break d}a=ea(0)|0;sc(b)}vc(c+28|0);break b}sc(d);a=J[c+28>>2];J[c+28>>2]=0;if(!a)break a;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)!=1){if(b)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}a=ea(0)|0}na(a|0)|0;ta()}bc=c+32|0}function Nw(a,b){var c=0,d=0,e=0,f= -0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-32|0;bc=g;c=J[a>>2];a:{if(c>>>0<2)break a;while(1){d=J[a+12>>2];j=c-2|0;h=J[d+(j>>>4&268435452)>>2]+P(j&63,24)|0;i=c-1|0;d=J[d+(i>>>4&268435452)>>2]+P(i&63,24)|0;e=O[d>>3]-O[h>>3];f=e*e;e=O[d+8>>3]-O[h+8>>3];e=Y(f+e*e);i=e>1E-14;O[h+16>>3]=i?e:1E14;if(i)break a;c=J[d+20>>2];J[g+24>>2]=J[d+16>>2];J[g+28>>2]=c;c=J[d+12>>2];J[g+16>>2]=J[d+8>>2];J[g+20>>2]=c;c=J[d+4>>2];J[g+8>>2]=J[d>>2];J[g+12>>2]=c;J[a>>2]=j;Ow(a,g+8|0);c=J[a>>2];if(c>>>0>1)continue;break}}b:{if(!b|c>>> -0<2)break b;h=J[a+12>>2];b=J[h>>2];e=O[b+8>>3];k=O[b>>3];while(1){c=c-1|0;b=J[h+(c>>>4&268435452)>>2]+P(c&63,24)|0;f=k-O[b>>3];l=f*f;f=e-O[b+8>>3];f=Y(l+f*f);d=f>1E-14;O[b+16>>3]=d?f:1E14;if(d)break b;J[a>>2]=c;if(c>>>0>1)continue;break}}bc=g+32|0}function Kt(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=bc+-64|0;bc=f;a:{b:{if(J[d>>2]>0)break b;if(!(!c|b?(c|0)>=-1:0)){J[d>>2]=1;break b}if((c|0)<0)c=Qc(b);if((c|0)<=0)break b;g=J[a>>2];e=J[a+52>>2];h=g+e|0;if((h|0)==(b|0)){if((J[a+4>>2]-e| -0)<=(c|0)){J[d>>2]=5;break b}b=c+e|0;J[a+52>>2]=b;H[b+g|0]=0;break b}if(!(b>>>0>>0|b>>>0>=h>>>0|(J[a+4>>2]-e|0)>(c|0))){e=f+8|0;H[e+8|0]=0;J[e+4>>2]=40;J[e>>2]=e+9;J[e+52>>2]=0;H[J[e>>2]]=0;J[695492]=0;ha(2882,e|0,b|0,c|0,d|0)|0;c=J[695492];J[695492]=0;b=e;if((c|0)==1)break a;J[695492]=0;a=ga(2896,a|0,b|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){oh(b);break b}break a}if(!V0(a,(c+e|0)+1|0,d))break b;tc(J[a>>2]+J[a+52>>2]|0,b,c);b=J[a+52>>2]+c|0;J[a+52>>2]=b;H[b+J[a>>2]|0]=0}bc=f- -64|0;return a| -0}a=Z()|0;oh(b);ba(a|0);B()}function rV(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;h=bc-32|0;bc=h;a:{if((c|0)<0){a=Kc(h+8|0,2376530,2375807,610,2385318,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}f=J[a+12>>2];b:{if(!f)break b;g=b+c|0;if((g|0)<=0)break b;e=J[f+8>>2];a=e>>31;a=(a^e)-a|0;d=0;c:{if((e|0)<=0)break c;e=a>>>0>>0;d=e?a:g;if((b|0)<=0)break c;d=a>>>0>=g>>>0?c:0;if(!(e&a>>>0>=b>>>0))break c;d=a-b|0}e=J[f>>2];if(!e)break b; -while(1){if((a|0)>=(g|0))break b;i=J[e+8>>2];f=i>>31;j=(f^i)-f|0;f=a;a=j+a|0;d:{if((i|0)<=0)break d;if((b|0)>(f|0)){if(!((a|0)<(b|0)|(a|0)>=(g|0))){d=(d-b|0)+a|0;break d}d=((a|0)>=(g|0)?c:0)+d|0;break d}if((a|0)<=(g|0)){d=d+j|0;break d}d=(d+g|0)-f|0}e=J[e>>2];if(e)continue;break}}bc=h+32|0;return d|0}B()}function csb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{if(K[d+56|0]){if((b|0)<=0)break a;while(1){b= -K[e|0]|K[e+1|0]<<8;b=(b<<8|b>>>8)&65535;g=(b|0)!=L[d+836>>1];b=g?b:0;h=b<<8|b>>>8;H[c|0]=h;H[c+1|0]=h>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=g?65535:0;b=b<<8|b>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;e=e+2|0;c=c+8|0;f=f+1|0;if((f|0)>2])continue;break}break a}if((b|0)<=0){i=1;break a}while(1){d=K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535;b=d<<8|d>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d<<8|d>>>8;H[c+2|0]=d;H[c+3|0]=d>>>8;H[c+4|0]=d;H[c+5|0]=d>>>8;H[c+6|0]=255;H[c+7|0]=255;e=e+2|0; -c=c+8|0;i=1;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=i;return 0}function QVa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=bc-32|0;bc=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[f+16>>2]=13;c=J[c+8>>2];J[695492]=0;c=ha(3203,c|0,d|0,f+16|0,0)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)==1)break b;c:{d:{if(J[c>>2]==3){J[b+4>>2]=J[b+4>>2]|1<>2])|0;d=J[695492];J[695492]=0;if((d|0)==1)break d; -c=J[b+4>>2];d=J[b>>2];J[695492]=0;ca(3281,f+4|0,d|0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[f+8>>2];J[a>>2]=J[f+4>>2];J[a+4>>2]=c;J[a+8>>2]=J[f+12>>2];qc(dd(b))}J[695492]=0;_(3205,f+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;bc=f+32|0;return}a=Z()|0;qc(c);ba(a|0);B()}break a}b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}ba(Z()|0);B()}function Mz(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;J[c+12>>2]=166;g=J[c+12>>2];b=J[a+656>>2];if(b){d=J[a+660>>2];if(d){b=0;while(1){e=J[J[a+ -656>>2]+(b<<2)>>2];a:{if(L[e+12>>1]!=65)break a;f=J[e+16>>2];if(kd(69907,f,4))break a;qc(f);qc(e);d=J[a+660>>2]}b=b+1|0;if(d>>>0>b>>>0)continue;break}b=J[a+656>>2]}qc(b);J[a+660>>2]=0}if(!Jm(a,83504,g))Nc(J[a+628>>2],70176,71108,0);Hg(a+40|0,0,208);J[a+100>>2]=-1;J[a+92>>2]=65537;J[a+96>>2]=65537;J[a+192>>2]=1;J[a+72>>2]=0;J[a+76>>2]=1;I[a+136>>1]=2;J[a+84>>2]=65537;J[a+676>>2]=0;J[a+672>>2]=513;J[a+668>>2]=514;J[a+664>>2]=0;J[a+652>>2]=515;I[a+208>>1]=1;J[a+204>>2]=131074;b=a- -64|0;J[b>>2]=1;J[b+ -4>>2]=0;b=J[682308];if(b)gc[b|0](a);J[c>>2]=1;$d(a,259,c);J[a+588>>2]=-1;J[a+508>>2]=-1;J[a+12>>2]=J[a+12>>2]&-1033;bc=c+16|0;return 1}function a_(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-80|0;bc=c;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;a:{if(J[b>>2]==7){b:{if(J[Bc(J[b+8>>2],826796,c- -64|0,0)>>2]!=6)break b;d=J[c+72>>2];if(J[d+12>>2]<2)break b;while(1){if(J[Mc(d,e,c+48|0,0)>>2]==1){if(J[Mc(J[c+72>>2],e|1,c+32|0,0)>>2]==7){f=J[a+156>>2];d=rc(20);J[695492]=0;g=ga(3371,d|0, -J[c+56>>2],J[c+40>>2])|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;id(f,g)}uc(c+32|0)}uc(c+48|0);e=e+2|0;d=J[c+72>>2];if((e|0)<(J[d+12>>2]-1|0))continue;break}}uc(c- -64|0);c:{if(J[Bc(J[b+8>>2],796762,c+16|0,0)>>2]!=6)break c;d=J[c+24>>2];if(J[d+12>>2]<=0)break c;e=0;while(1){Mc(d,e,c,0);a_(a,c);uc(c);e=e+1|0;d=J[c+24>>2];if((e|0)>2])continue;break}}uc(c+16|0)}bc=c+80|0;return}a=Z()|0;qc(d);ba(a|0);B()}function okb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=bc-16|0;bc=g;f=J[a+712>>2];J[g+ -12>>2]=0;a:{if(!f)break a;e=J[f+3132>>2];if(!e){e=Zd(J[a+100>>2],2,g+12|0);c=J[g+12>>2];if(c)break a;I[e>>1]=0;a=J[f+1500>>2];b:{if((a|0)==65535)break b;c:{if(a>>>0>=391){a=a-391|0;if(a>>>0>=M[f+1356>>2])break b;a=J[J[f+1360>>2]+(a<<2)>>2];break c}c=J[f+3084>>2];if(!c)break b;a=gc[J[c+20>>2]](a)|0}if(!a)break b;a=Be(a,241409);if(!a)break b;c=a+7|0;a=Be(c,241514);if(!a|(a|0)==(c|0))break b;while(1){d:{d=K[c|0];e:{if((d-48&255)>>>0<=9){d=L[e>>1];if(d>>>0>6551)break d;d=P(d,10);I[e>>1]=d;I[e>>1]=(d+ -H[c|0]|0)-48;break e}d=d-10|0;if(d>>>0>22|!(1<>1]=0}J[f+3132>>2]=e;c=J[g+12>>2]}I[b>>1]=L[e>>1]}bc=g+16|0;return c|0}function ZFa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-32|0;bc=e;g=e+20|0;gc[J[J[b>>2]+12>>2]](g,b,c);f=K[e+31|0];b=f<<24>>24;c=(b|0)<0;a:{b:{c:{f=c?J[e+24>>2]:f;d:{if(!f)break d;f=f-1|0;if(J[(f<<2)+(c?J[e+20>>2]:g)>>2]!=47)break d;J[695492]=0;ca(2805,g|0,f|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break c; -b=K[e+31|0]}e:{if(b<<24>>24>=0){J[e+16>>2]=J[e+28>>2];b=J[e+24>>2];J[e+8>>2]=J[e+20>>2];J[e+12>>2]=b;break e}J[695492]=0;ca(15,e+8|0,J[e+20>>2],J[e+24>>2]);b=J[695492];J[695492]=0;if((b|0)==1)break c}J[695492]=0;ca(2819,a|0,e+8|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;if(H[e+19|0]<0)qc(J[e+8>>2]);if(H[e+31|0]<0)qc(J[e+20>>2]);bc=e+32|0;return}b=Z()|0;break a}b=Z()|0;if(H[e+19|0]>=0)break a;qc(J[e+8>>2])}if(H[e+31|0]<0)qc(J[e+20>>2]);ba(b|0);B()}function Uda(a){a=a|0;var b=0,c=0,d=0,e=0, -f=0,g=0,h=0,i=0;e=bc-32|0;bc=e;a:{if(L[a+84>>1]!=1){Nc(J[a+628>>2],J[a>>2],87700,0);break a}b=J[a+584>>2];b:{if(K[a+13|0]&4){h=Km(a);c=a+68|0;break b}h=_i(a);c=a+56|0}g=J[c>>2];J[b+12>>2]=g;J[b+8>>2]=h;f=1;f=H[b+28|0]&1?f:L[a+88>>1]==4;J[b+80>>2]=0;c:{c=g>>>0<4294967264?g+31&-32:0;c=f?(c|0)>=0?c<<1:0:c;if(!(!c|(c|0)<0)){i=c<<1;if(i)break c}b=J[a>>2];a=J[a+628>>2];J[e>>2]=g;Nc(a,b,87894,e);break a}d=Sg(a,i,4,87937);J[b+80>>2]=d;if(!d){d=0;break a}J[b+88>>2]=d;J[b+84>>2]=f?d+(c<<2)|0:0;if(!(!(H[b+28| -0]&1)|L[a+88>>1]!=3)){J[a+556>>2]=617;J[a+548>>2]=617;J[a+540>>2]=617}b=J[a+584>>2];if(f){d=b;b=zc(h);J[d+96>>2]=b;d=1;if(b)break a;b=J[a+628>>2];J[e+16>>2]=J[a>>2];Nc(b,88067,88217,e+16|0);d=0;break a}J[b+96>>2]=0;d=1}bc=e+32|0;return d|0}function LCa(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;if((c|0)<=0)return 0;e=J[a+12>>2];d=e+c|0;a:{b:{if((d|0)<=(J[a+16>>2]+4095&-4096))break b;e=J[a+20>>2];c:{if((d|0)<=e<<12)break c;d=d+65535>>12&-16;J[a+20>>2]=d;oe(a+28|0,d,4);f=J[a+20>>2]; -if((f|0)<=(e|0))break c;d=J[a+24>>2];g=e<<2;h=d+g|0;e=h+4|0;i=d^-1;d=d+(f<<2)|0;wc(h,0,((i+(d>>>0>>0?e:d)|0)-g&-4)+4|0)}e=J[a+12>>2];f=e+c|0;if((f|0)<=(e&-4096))break b;d=e>>12;while(1){g=J[a+24>>2]+(d<<2)|0;if(!J[g>>2])j=g,k=rc(4096),J[j>>2]=k;d=d+1|0;if((f|0)>d<<12)continue;break}if((c|0)<=0)break a}d=c;while(1){g=e&4095;f=4096-g|0;f=(d|0)<(f|0)?d:f;tc(g+J[J[a+24>>2]+(e>>12<<2)>>2]|0,b,f);e=f+J[a+12>>2]|0;J[a+12>>2]=e;b=b+f|0;d=d-f|0;if((d|0)>0)continue;break}}if(J[a+16>>2]<(e|0))J[a+16>>2]= -e;return c|0}function Gja(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;f=bc-32|0;bc=f;d=J[a+28>>2];J[f+16>>2]=d;g=J[a+20>>2];J[f+28>>2]=c;J[f+24>>2]=b;b=g-d|0;J[f+20>>2]=b;g=b+c|0;i=2;a:{b:{b=f+16|0;d=Na(J[a+60>>2],b|0,2,f+12|0)|0;if(d){J[694731]=d;d=-1}else d=0;c:{d:{if(d){d=b;break d}while(1){e=J[f+12>>2];if((e|0)==(g|0))break c;if((e|0)<0){d=b;break b}h=J[b+4>>2];j=h>>>0>>0;d=(j<<3)+b|0;h=e-(j?h:0)|0;J[d>>2]=h+J[d>>2];b=(j?12:4)+b|0;J[b>>2]=J[b>>2]-h;g=g-e|0;b=d;i=i-j|0;e=Na(J[a+ -60>>2],b|0,i|0,f+12|0)|0;if(e){J[694731]=e;e=-1}else e=0;if(!e)continue;break}}if((g|0)!=-1)break b}b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;J[a+16>>2]=b+J[a+48>>2];a=c;break a}J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=J[a>>2]|32;a=0;if((i|0)==2)break a;a=c-J[d+4>>2]|0}bc=f+32|0;return a|0}function Hw(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(J[a+32>>2]|!a)break a;e=J[a+24>>2];d=J[a+8>>2];if(!((e|0)==(d|0)|d>>>0>2147483646)){J[a+24>>2]=d;e=d}d=J[a+20>>2];f=J[a+4>>2];if(!((d|0)==(f|0)|f>>>0>2147483646)){J[a+ -20>>2]=f;d=f}if(b-1>>>0>=d>>>0)break a;d=d-b|0;J[a+20>>2]=d;b:{c:{d:switch(J[a+12>>2]-2|0){case 0:c=e-b|0;J[a+24>>2]=c;J[a>>2]=J[a>>2]+b;break b;case 1:if(J[a+16>>2])break c;break;default:break d}c=J[a>>2];Zc(c,b+c|0,d);H[J[a>>2]+J[a+20>>2]|0]=0;c=J[a+24>>2];break b}c=e-b|0;J[a+24>>2]=c;e=J[a>>2]+b|0;J[a>>2]=e;f=J[a+16>>2];if(!f)break b;g=e-f|0;if(g>>>0>>0)break b;Zc(f,e,d);c=J[a+16>>2];J[a>>2]=c;H[c+J[a+20>>2]|0]=0;c=J[a+24>>2]+g|0;J[a+24>>2]=c}J[a+8>>2]=c>>>0>=2147483647?2147483647:c;d=a;a=J[a+ -20>>2];J[d+4>>2]=a>>>0>=2147483647?2147483647:a;c=b}return c}function eDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;f=J[b>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;c=J[b>>2]}J[d+12>>2]=c;J[a+8>>2]=1;J[a+4>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a>>2]=2383696;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=c;a:{b:{c:{if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;b=J[695492];J[695492]=0;if((b|0)==1)break c;e=J[d+12>>2]}J[a+32>>2]=e;J[695492]=0;ha(5043,a+40|0,a+36|0,0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1){c=Z()|0;vc(a+ -32|0);break a}wc(a+48|0,0,304);J[d+12>>2]=0;d:{if(!e)break d;J[695492]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break d;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}H[a+352|0]=0;J[a>>2]=2383740;bc=d+16|0;return a|0}c=Z()|0;break a}ea(0)|0;yc();B()}ed(a);vc(d+12|0);ba(c|0);B()}function E4(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+28>>2];a:{if((d|0)==-1)break a;e=J[a+36>>2];h=J[a+40>>2];if(e>>>0>=h>>>0)break a;k=J[a>>2];d=d+ -1|0;l=J[a+16>>2]+16|0;while(1){b:{b=P(e,12)+l|0;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=d>>>0>g>>>0?d:g;c=K[b+7|0];f=K[b+5|0]<<16|K[b+4|0]<<24|K[b+6|0]<<8;i=c|f;if(d>>>0>i>>>0)break b;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);j=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=(f|1)+c|0;c:{while(1){c=d-g|0;if((c^-1)>>>0>>0)break b;c=c+j|0;if(c)break c;c=d+1|0;if(!c)break a;f=d>>>0>>0;d=c;if(f)continue;break}d=b;break b}if(c>>>0>=M[k+16>> -2])break b;J[a+36>>2]=e;J[a+32>>2]=c;J[a+28>>2]=d;return}e=e+1|0;if((h|0)!=(e|0))continue;break}}H[a+24|0]=0}function Aib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;J[f+12>>2]=0;a:{if(J[c+76>>2])break a;e=8;d=a+1|0;if(d>>>0>b>>>0)break a;a=K[a|0];g=a&15;a=g+(a>>>4|0)|0;if((a<<1)+d>>>0>b>>>0)break a;b=Sc(J[c>>2],4,0,a,0,f+12|0);e=J[f+12>>2];if(e)break a;J[c+76>>2]=b;J[c- -64>>2]=(g<<2)+b;e=0;if(!a)break a;c=a-1|0;g=a&3;if(g)while(1){h=K[d|0]|K[d+1|0]<<8;J[b>>2]=(h<<8|h>>>8)<<16>> -16;b=b+4|0;a=a-1|0;d=d+2|0;e=e+1|0;if((g|0)!=(e|0))continue;break}if(c>>>0>=3)while(1){c=K[d|0]|K[d+1|0]<<8;J[b>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+2|0]|K[d+3|0]<<8;J[b+4>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+4|0]|K[d+5|0]<<8;J[b+8>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+6|0]|K[d+7|0]<<8;J[b+12>>2]=(c<<8|c>>>8)<<16>>16;b=b+16|0;d=d+8|0;a=a-4|0;if(a)continue;break}e=J[f+12>>2]}bc=f+16|0;return e|0}function nf(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+112>>2];d=J[a+116>>2];i=(b|d)!=0;h=b;e=J[a+4>>2];f=J[a+44>>2]; -b=e-f|0;g=b;c=b+J[a+120>>2]|0;b=J[a+124>>2]+(b>>31)|0;a:{b=c>>>0>>0?b+1|0:b;if(!(((b|0)>=(d|0)&c>>>0>=h>>>0|(b|0)>(d|0))&i)){i=Vy(a);if((i|0)>=0)break a;e=J[a+4>>2];f=J[a+44>>2]}J[a+112>>2]=-1;J[a+116>>2]=-1;J[a+104>>2]=e;g=c;c=f-e|0;d=g+c|0;b=(c>>31)+b|0;J[a+120>>2]=d;J[a+124>>2]=c>>>0>d>>>0?b+1|0:b;return-1}d=c+1|0;b=d?b:b+1|0;h=J[a+4>>2];f=J[a+8>>2];c=J[a+116>>2];g=c;e=J[a+112>>2];b:{if(!(c|e))break b;c=e-d|0;e=g-(b+(d>>>0>e>>>0)|0)|0;j=f-h|0;g=j>>31;if((e|0)>=(g|0)&c>>>0>=j>>>0|(e|0)>(g|0))break b; -f=c+h|0}J[a+104>>2]=f;c=J[a+44>>2];f=c-h|0;d=f+d|0;b=(f>>31)+b|0;J[a+120>>2]=d;J[a+124>>2]=d>>>0>>0?b+1|0:b;if(c>>>0>=h>>>0)H[h-1|0]=i;return i}function Op(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{if(J[a+188>>2])break a;g=J[a+180>>2];if(!(g|J[a+184>>2]))break a;h=J[a+156>>2];b:{i=J[a+192>>2]+(J[a+160>>2]-J[a+172>>2]<<2)|0;e=J[i>>2];c:{if(!e){e=0;break c}f=J[e>>2];if((h|0)<(f|0))break c;d:{while(1){d=e;if((f|0)==(h|0))break b;e=J[d+12>>2];if(e){f=J[e>>2];if((h|0)<(f|0))break d;continue}break}e=0}i= -d+12|0}d=J[a+204>>2];if((d|0)>=J[a+200>>2]){vM(a,1);g=J[a+180>>2];e=J[i>>2];d=J[a+204>>2]}J[a+204>>2]=d+1;f=J[a+196>>2]+(d<<4)|0;J[f+8>>2]=g;J[f>>2]=h;d=J[a+184>>2];J[f+12>>2]=e;J[f+4>>2]=d;J[i>>2]=f;break a}J[d+8>>2]=J[d+8>>2]+g;J[d+4>>2]=J[d+4>>2]+J[a+184>>2]}J[a+180>>2]=0;J[a+184>>2]=0;J[a+160>>2]=c;d=J[a+164>>2];J[a+156>>2]=(b|0)<(d|0)?d-1|0:b;e=1;J[a+188>>2]=J[a+176>>2]<=(c|0)|J[a+172>>2]>(c|0)?e:J[a+168>>2]<=(b|0)}function o4(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;h=gc[J[a+596>>2]](a)|0;f=J[b>>2]; -a:{if(!f)break a;g=a+36|0;e=1;while(1){b=J[a+28>>2];if((b|0)<=1){if(K[a+565|0])J[a+12>>2]=129;J[a+28>>2]=0;break a}d=b-2|0;J[a+28>>2]=d;c=b<<2;b=J[a+24>>2];c=L[(c+b|0)-4>>1];b:{if(c>>>0>1]){d=J[b+(d<<2)>>2];b=d>>>4&15;c:{d:switch(K[a+372|0]-113|0){case 0:b=b|16;break c;case 1:break d;default:break c}b=b|32}if((L[a+336>>1]+b|0)!=(h|0))break b;b=d&15;b=(b>>>0>7?-7:-8)+b<<6-L[a+338>>1];if(!(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)){if(!((L[a+304>>1]?K[a+564|0]:0)|K[c+J[a+60>>2]|0]&16)|(K[a+ -617|0]?K[a+616|0]:0))break b;gc[J[a+588>>2]](a,g,c,b);break b}gc[J[a+588>>2]](a,g,c,b);break b}if(!K[a+565|0])break b;J[a+12>>2]=134}e=e+1|0;if(f>>>0>=e>>>0)continue;break}}J[a+32>>2]=J[a+28>>2]}function nR(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;A(+a);h=v(1)|0;v(0)|0;g=h&2147483640;g=(g|0)==1072010279|g>>>0<1072010279;if(!g){i=(h|0)>0|(h|0)>=0;a=.7853981633974483-(i?a:-a)+(3.061616997868383E-17-(i?b:-b));b=0}e=a*a;d=a*e;j=d*.3333333333333341;f=d;d=e*e;e=j+(e*(f*(d*(d*(d*(d*(d*-1.8558637485527546E-5+ -7.817944429395571E-5)+5.880412408202641E-4)+.0035920791075913124)+.021869488294859542)+.13333333333320124+e*(d*(d*(d*(d*(d*2.590730518636337E-5+7.140724913826082E-5)+2.464631348184699E-4)+.0014562094543252903)+.0088632398235993)+.05396825397622605))+b)+b);b=a+e;if(!g){f=b*b;d=b;b=+(1-(c<<1)|0);a=a+(e-f/(d+b));a=b-(a+a);return i?a:-a}if(c){f=-1/b;A(+f);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);d=+z();A(+b);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);b=+z();b=f*(d*(e-(b-a))+(d*b+1))+d}return b}function Xca(a,b,c){a=a|0; -b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=J[a+4>>2];if(!e)return 0;a:{b:{c:{if(J[e+76>>2]>=0){if((c|0)<2)break c;break b}if((c|0)>1)break b}a=J[e+72>>2];J[e+72>>2]=a-1|a;a=0;if((c|0)<=0)break a;H[b|0]=0;a=b;break a}c=c-1|0;a=b;d:{while(1){e:{f:{g:{d=J[e+4>>2];f=J[e+8>>2];if((d|0)==(f|0))break g;g=pg(d,10,f-d|0);h:{if(g){d=J[e+4>>2];f=(g-d|0)+1|0;break h}d=J[e+4>>2];f=J[e+8>>2]-d|0}h=d;d=c>>>0>f>>>0?f:c;tc(a,h,d);f=d+J[e+4>>2]|0;J[e+4>>2]=f;a=a+d|0;if(g)break e;c=c-d|0;if(!c)break e;if((f|0)==J[e+8>>2])break g; -J[e+4>>2]=f+1;d=K[f|0];break f}d=Vy(e);if((d|0)>=0)break f;c=0;if((a|0)==(b|0))break d;if(K[e|0]&16)break e;break d}H[a|0]=d;a=a+1|0;if((d&255)==10)break e;c=c-1|0;if(c)continue}break}if(!b){c=0;break d}H[a|0]=0;c=b}a=c}return a|0}function Epa(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a>>2]=2424840;J[a+4>>2]=0;b=J[682146];J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=b;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[695492]=0;d=aa(5080,a+16|0,2389436)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{if((b| -0)!=1){J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[695492]=0;b=a+44|0;J[b>>2]=2424912;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break d;J[a+60>>2]=0;c=J[682146];J[a+68>>2]=0;J[a+72>>2]=0;J[a- -64>>2]=c;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[695492]=0;aa(5080,a+68|0,2424932)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[a+96>>2]=0;return a|0}c=Z()|0;break a}c=Z()|0;break b}c=Z()|0;sc(a+60|0);$c(b)}Bd(d)}sc(a+8|0);ed(a);ba(c|0); -B()}function UR(a){var b=0,c=0,d=Q(0),e=0,f=Q(0),g=Q(0);e=(C(a),v(2));c=e&2147483647;if(c>>>0>=1283457024)return(e&2147483647)>>>0>2139095040?a:(x(2,(C(a),v(2))&-2147483648|1070141402),D());a:{b:{if(c>>>0<=1054867455){b=-1;if(c>>>0>=964689920)break b;break a}a=Q(R(a));if(c>>>0<=1066926079){if(c>>>0<=1060110335){a=Q(Q(Q(a+a)+Q(-1))/Q(a+Q(2)));b=0;break b}a=Q(Q(a+Q(-1))/Q(a+Q(1)));b=1;break b}if(c>>>0<=1075576831){a=Q(Q(a+Q(-1.5))/Q(Q(a*Q(1.5))+Q(1)));b=2;break b}a=Q(Q(-1)/a);b=3}f=Q(a*a);d=Q(f*f); -g=Q(d*Q(Q(d*Q(-.106480173766613))+Q(-.19999158382415771)));d=Q(f*Q(Q(d*Q(Q(d*Q(.06168760731816292))+Q(.14253635704517365)))+Q(.333333283662796)));if(c>>>0<=1054867455)return Q(a-Q(a*Q(g+d)));b=b<<2;a=Q(N[b+2451584>>2]-Q(Q(Q(a*Q(g+d))-N[b+2451600>>2])-a));a=(e|0)<0?Q(-a):a}return a}function x8(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;c=J[a+636>>2]+J[a+616>> -2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=J[a+584>>2]+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0];c=c+1|0;b=J[a+584>>2]+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}}if((e|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;e=0;while(1){H[b|0]=K[c|0];c=c+1|0;b=J[a+584>>2]+b|0; -e=e+1|0;if((e|0)>2])continue;break}}return 0}function kH(a,b,c,d){var e=0,f=0,g=0,h=0;e=J[c>>2];h=J[d>>2];a:{if(h>>>0>=b>>>0)break a;while(1){f=4;b:{c:switch(H[a+h|0]-43|0){case 2:f=132;break b;case 3:f=16;break b;case 5:f=8;break b;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:f=264;break b;case 0:break b;case 26:case 58:break c;default:break a}f=32}d:{e:switch((f&60|e&3)-4|0){case 0:if(e&60)break a;g=e|f;break d;case 12:if(e&16)break a;g=e|f;if(e&8)break d;g=e&448| -f|1;break d;case 4:g=(e&16?e&384|17:e)|f|64;break d;case 28:if(!(e&8))break a;g=e&448|2;break d;case 5:g=e|f|64;break d;case 29:if(!(e&8))break a;g=e&448|2;break d;case 2:if(e&60)break a;g=e|4;break d;case 6:break e;default:break a}g=e|72}e=g;h=h+1|0;if((h|0)!=(b|0))continue;break}h=b}J[c>>2]=e;J[d>>2]=h;return e>>>3&1}function Jib(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){e=J[J[a+96>>2]+8>>2];J[a+20>>2]=0;J[a+24>>2]=0;c=J[a+100>>2];b=c;d=J[a+368>>2];if(d)gc[J[b+8>>2]](b,d);J[a+368>>2]=0;b=J[a+372>>2];if(b)gc[J[c+ -8>>2]](c,b);J[a+372>>2]=0;b=J[a+376>>2];if(b)gc[J[c+8>>2]](c,b);J[a+376>>2]=0;b=J[a+364>>2];if(b)gc[J[c+8>>2]](c,b);J[a+360>>2]=0;J[a+364>>2]=0;J[a+348>>2]=0;J[a+352>>2]=0;b=J[a+388>>2];if(b)gc[J[c+8>>2]](c,b);J[a+380>>2]=0;J[a+384>>2]=0;J[a+388>>2]=0;b=J[a+416>>2];if(b)gc[J[c+8>>2]](c,b);J[a+408>>2]=0;J[a+412>>2]=0;J[a+416>>2]=0;b=J[a+396>>2];if(b)gc[J[c+8>>2]](c,b);J[a+392>>2]=0;J[a+396>>2]=0;b=J[a+424>>2];if(b)while(1){d=J[b>>2];if(b)gc[J[c+8>>2]](c,b);b=d;if(b)continue;break}J[a+428>>2]=0;J[a+ -420>>2]=0;J[a+424>>2]=0;b=J[a+32>>2];if(b)gc[J[e+8>>2]](e,b);J[a+32>>2]=0}}function Az(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;J[a>>2]=0;a:{b:{c:{d:{e:{if(!c)break e;f=Qc(c);if((f|0)<=0)break e;d=J[J[b>>2]+8>>2];J[695492]=0;g=d;d=e+12|0;ca(g|0,d|0,b|0,f|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;aa(4993,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;b=J[e+12>>2];J[e+12>>2]=0;f:{if(!b)break f;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[695492];J[695492]= -0;if((g|0)==1)break a;if(d)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}a=J[J[a>>2]+12>>2];b=K[c|0];g:{if(!b)break g;f=c+f|0;while(1){H[a|0]=b;a=a+1|0;b=K[c+1|0];if(!b)break g;c=c+1|0;if((f|0)!=(c|0))continue;break}}H[a|0]=0}bc=e+16|0;return}c=Z()|0;break b}c=Z()|0;vc(e+12|0)}vc(a);ba(c|0);B()}ea(0)|0;yc();B()}function AZ(a,b,c){var d=0,e=0,f=0,g=0,h=0;if(!(J[a+108>>2]|!c))while(1){if(!J[a+108>>2]){d=J[a+16>>2];g=J[a+12>>2]|(H[b|0]&1)<<23-d;e=d+1|0;if((d|0)>=7)while(1){d= -J[a+112>>2];J[a+112>>2]=d+1;H[d|0]=g>>>16;d=J[a+116>>2]-1|0;J[a+116>>2]=d;if(!d){f=J[a+120>>2];d=J[f+24>>2];if(!(gc[J[d+12>>2]](f)|0)){f=J[a+120>>2];h=J[f>>2];J[h+20>>2]=25;gc[J[h>>2]](f)}J[a+112>>2]=J[d>>2];J[a+116>>2]=J[d+4>>2]}d=e;a:{if((g&16711680)!=16711680)break a;e=J[a+112>>2];J[a+112>>2]=e+1;H[e|0]=0;e=J[a+116>>2]-1|0;J[a+116>>2]=e;if(e)break a;f=J[a+120>>2];e=J[f+24>>2];if(!(gc[J[e+12>>2]](f)|0)){f=J[a+120>>2];h=J[f>>2];J[h+20>>2]=25;gc[J[h>>2]](f)}J[a+112>>2]=J[e>>2];J[a+116>>2]=J[e+4>> -2]}e=d-8|0;g=g<<8;if((d|0)>15)continue;break}J[a+16>>2]=e;J[a+12>>2]=g}b=b+1|0;c=c-1|0;if(c)continue;break}}function vD(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=bc-32|0;bc=c;a:{if(!a)break a;e=!b;if(e)break a;xf(a,c+28|0,c+24|0,c+20|0);f=J[c+28>>2];g=J[c+24>>2];b:{if(e)break b;e=J[b>>2];if((e|0)>=(f|0))break b;h=J[b+4>>2];if((e+J[b+8>>2]|0)<=0|(h|0)>=(g|0)|(J[b+12>>2]+h|0)<=0)break b;d=j7(b);b=J[d>>2];if((b|0)<0){J[d>>2]=0;J[d+8>>2]=b+J[d+8>>2];b=0}e=b;b=J[d+4>>2];if((b|0)<0){J[d+4>>2]=0;J[d+12>>2]= -b+J[d+12>>2];b=0}if((e+J[d+8>>2]|0)>(f|0))J[d+8>>2]=f-e;if((b+J[d+12>>2]|0)<=(g|0))break b;J[d+12>>2]=g-b}J[c>>2]=d;if(!d)break a;Cr(d,c+16|0,c+12|0,c+8|0,c+4|0);b=uh(J[c+8>>2],J[c+4>>2],J[c+20>>2]);if(!b)break a;if(!(!b|!a|(a|0)==(b|0))){J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2]}xD(b,a);uf(b,0,0,J[c+8>>2],J[c+4>>2],24,a,J[c+16>>2],J[c+12>>2]);CM(c);i=b}bc=c+32|0;return i}function gO(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=O[b+40>>3];e=O[b+80>>3];d=O[b+72>>3];f=O[b+48>>3];g=c*e-d*f;h=O[b+32>>3]; -i=h*d;d=O[b+64>>3];c=O[b+16>>3]*(i-d*c)+(O[b>>3]*g-(h*e-d*f)*O[b+8>>3]);if((c>=0?c:-c)<1E-6)a=-1;else{O[a>>3]=g/c;O[a+32>>3]=-(O[b+32>>3]*O[b+80>>3]-O[b+64>>3]*O[b+48>>3])/c;O[a+64>>3]=(O[b+32>>3]*O[b+72>>3]-O[b+64>>3]*O[b+40>>3])/c;O[a+8>>3]=-(O[b+8>>3]*O[b+80>>3]-O[b+72>>3]*O[b+16>>3])/c;O[a+40>>3]=(O[b>>3]*O[b+80>>3]-O[b+64>>3]*O[b+16>>3])/c;O[a+72>>3]=-(O[b>>3]*O[b+72>>3]-O[b+64>>3]*O[b+8>>3])/c;O[a+16>>3]=(O[b+8>>3]*O[b+48>>3]-O[b+40>>3]*O[b+16>>3])/c;O[a+48>>3]=-(O[b>>3]*O[b+48>>3]-O[b+16>> -3]*O[b+32>>3])/c;O[a+80>>3]=(O[b>>3]*O[b+40>>3]-O[b+32>>3]*O[b+8>>3])/c;O[a+24>>3]=-O[b+24>>3];O[a+56>>3]=-O[b+56>>3];O[a+88>>3]=-O[b+88>>3];a=0}return a}function vib(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;j=bc-16|0;bc=j;e=6;a:{if((b|0)<0|J[a+16>>2]<=(b|0))break a;g=J[a>>2];e=J[a+8>>2];f=J[a+4>>2];h=f+d|0;if(e>>>0>>0){k=c-g|0;m=(k|0)>=0&e>>>0>k>>>0;while(1){e=((e>>>2|0)+e|0)+1024&-1024;if(h>>>0>e>>>0)continue;break}l=J[a+32>>2];f=Zd(l,e,j+12|0);J[a>>2]= -f;h=J[j+12>>2];if(h){J[a>>2]=g;e=h;break a}if(g){tc(f,g,J[a+8>>2]);f=J[a+16>>2];if((f|0)>0){n=J[a>>2]-g|0;i=J[a+24>>2];o=i+(f<<2)|0;while(1){f=J[i>>2];if(f)J[i>>2]=f+n;i=i+4|0;if(o>>>0>i>>>0)continue;break}}if(g)gc[J[l+8>>2]](l,g)}J[a+8>>2]=e;c=m?J[a>>2]+k|0:c;e=0;if(h)break a;g=J[a>>2];f=J[a+4>>2]}b=b<<2;J[b+J[a+24>>2]>>2]=g?g+f|0:0;J[b+J[a+28>>2]>>2]=d;tc(J[a>>2]+f|0,c,d);J[a+4>>2]=J[a+4>>2]+d;e=0}bc=j+16|0;return e|0}function TE(a,b,c,d,e){var f=0,g=0,h=0;f=bc-16|0;bc=f;g=f+12|0;b=J[b+28>>2];J[g>> -2]=b;J[b+4>>2]=J[b+4>>2]+1;J[695492]=0;b=$(6537,g|0)|0;h=J[695492];J[695492]=0;a:{if((h|0)==1)break a;J[695492]=0;ha(6653,b|0,2617936,2617968,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;b=$(6641,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;c=$(6654,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;J[d>>2]=c;J[695492]=0;c=$(6650,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[e>>2]=c;J[695492]=0;da(6651,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a; -a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);bc=f+16|0;return}c=Z()|0;a=J[f+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function J6(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;i=td(65536E3,b<<16);if((i|0)>=655){n=J[a+52>>2];h=J[a+48>>2];j=J[a+44>>2];f=J[a+40>>2];k=J[a+36>>2];g=J[a+32>>2];l=J[a+28>>2];m=J[a+24>>2];a=c<<16;e=(a|0)<=262144?262144:a;b=S(e)^31;c=m<<16;if((d|0)<=0)a=4915200;else a=Pc(d<<16,i);if((b-S(a)|0)>=15)b= -h<<16;else b=Pc(a,e);a:{if((c|0)>(b|0)){a=td(l<<16,e);break a}b:{c:{d:{d=g<<16;e:{if((b|0)<(d|0)){b=td(c,e);if((g|0)==(m|0))break e;a=Dd(a-b|0,k-l|0,g-m|0)+td(l<<16,e)|0;break a}c=f<<16;if((b|0)>=(c|0))break d}b=td(d,e);if((f|0)==(g|0)){c=f<<16;break c}a=Dd(a-b|0,j-k|0,f-g|0)+td(k<<16,e)|0;break a}if((b|0)>=h<<16)break b}b=td(c,e);if((f|0)==(h|0))break b;a=Dd(a-b|0,n-j|0,h-f|0)+td(j<<16,e)|0;break a}a=td(n<<16,e)}a=td(a,i)+32768>>16}else a=0;return a}function Acb(a){a=a|0;var b=0,c=0,d=0;b=J[a+440>> -2];a:{b:{if(J[b+8>>2]){J[b+8>>2]=0;gc[J[J[a+480>>2]>>2]](a,0);gc[J[J[a+452>>2]>>2]](a,2);c=2;break b}c:{if(J[a+136>>2]|!J[a+84>>2])break c;if(!(!J[a+92>>2]|!J[a+108>>2])){J[a+480>>2]=J[b+24>>2];J[b+8>>2]=1;break c}if(J[a+100>>2]){J[a+480>>2]=J[b+20>>2];break c}c=J[a>>2];J[c+20>>2]=47;gc[J[c>>2]](a)}gc[J[J[a+468>>2]>>2]](a);gc[J[J[a+448>>2]+8>>2]](a);if(J[a+68>>2])break a;if(!J[b+16>>2])gc[J[J[a+476>>2]>>2]](a);gc[J[J[a+472>>2]>>2]](a);if(J[a+84>>2])gc[J[J[a+480>>2]>>2]](a,J[b+8>>2]);gc[J[J[a+452>> -2]>>2]](a,J[b+8>>2]?3:0);c=0}gc[J[J[a+444>>2]>>2]](a,c)}c=J[a+8>>2];d:{if(!c)break d;d=J[b+12>>2];J[c+12>>2]=d;b=(J[b+8>>2]?2:1)+d|0;J[c+16>>2]=b;if(J[J[a+456>>2]+20>>2]|!J[a+64>>2])break d;J[c+16>>2]=b+(J[a+108>>2]?2:1)}}function w0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=-9;h=b;a:{b:{c:{d:{e:{e=J[a+4>>2];switch(J[e+48>>2]-8|0){case 1:break d;case 0:break e;default:break a}}b=J[a+8>>2];d=J[a+12>>2];c=8;if(b>>>0>=d>>>0)break b;c=d-b|0;if((c|0)<=3){tc(e+37|0,b,c);H[J[a+4>>2]+36|0]=c;J[a+8>> -2]=b+c;c=11;break b}d=K[b+2|0];f=K[b+1|0];g=K[b|0];c=K[b+3|0];break c}b=J[a+8>>2];d=J[a+12>>2];c=8;if(b>>>0>=d>>>0)break b;c=d-b|0;if((c|0)<=3){tc(e+37|0,b,c);H[J[a+4>>2]+36|0]=c;J[a+8>>2]=b+c;c=11;break b}d=K[b+1|0];f=K[b+2|0];g=K[b+3|0];c=K[b|0]}J[a+8>>2]=b+4;d=f<<16|g<<24|d<<8;c=d|c;if(c>>>0<=1114111&(d&-2048)!=55296)break a;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[e+37|0]=b;H[e+38|0]=b>>>8;H[e+39|0]=b>>>16;H[e+40|0]=b>>>24;H[J[a+4>>2]+36|0]=4;c=12}J[h>>2]=c;c=65535}return c|0}function bJ(a){var b= -0,c=0,d=0,e=0,f=0,g=0,h=0;b=bc-16|0;bc=b;a:{c=Ve(a);if(c>>>0<1073741808){b:{if(c>>>0<=1){H[b+15|0]=c;e=b+4|0;break b}d=c|3;if(d>>>0>=1073741823)break a;d=d+1|0;e=rc(d<<2);J[b+12>>2]=d|-2147483648;J[b+4>>2]=e;J[b+8>>2]=c}d=0;f=a;a=c<<2;g=tc(e,f,a)+a|0,h=0,J[g>>2]=h;J[695492]=0;c=K[b+15|0];a=c<<24>>24;c=(a|0)<0?J[b+8>>2]:c;e=c+1|0;e=$(27,(e>>>0>1073741823?-1:e<<2)|0)|0;f=J[695492];J[695492]=0;c:{if((f|0)!=1){J[e+(c<<2)>>2]=0;d:{if((c|0)>0){while(1){J[695492]=0;a=aa(3274,b+4|0,d|0)|0;f=J[695492];J[695492]= -0;if((f|0)==1)break d;J[e+(d<<2)>>2]=J[a>>2];d=d+1|0;if((c|0)!=(d|0))continue;break}a=H[b+15|0]}if(a<<24>>24<0)qc(J[b+4>>2]);bc=b+16|0;return e}d=Z()|0;a=H[b+15|0];break c}d=Z()|0}if(a<<24>>24<0)qc(J[b+4>>2]);ba(d|0);B()}Id(b+4|0);B()}Sd();B()}function Y7(a,b,c,d){var e=0,f=0;f=J[a+2248>>2];if(!f){Dc(a,1063,0,0);return 1063}e=J[f+88>>2];if(K[e+44|0]>b>>>0){Dc(a,1036,0,0);return 1036}a:{b:{c:{d:{e:{f:{e=K[e+45|0];switch(e|0){case 2:break d;case 4:break e;case 0:break f;default:break c}}if(!(1<>>0>6)break b;break a}switch(c-4|0){case 0:case 2:break a;default:break b}}switch(c-2|0){case 0:case 4:break a;default:break b}}if((e|0)==6&(c|0)!=6)break b;g:switch(e-8|0){case 0:if(c>>>0>14)break b;if(1<>>0>6)break b;if(1<>2];if(!(b&7)){if(b>>>0>=8){e=J[a+36>>2];i=P(e,7);j=P(e,6);k=P(e,5);l=e<<2;m=P(e,3);n=e<<1;c=J[a+40>>2];o=e<<5;g=8;while(1){pH(a,c,J[a+36>>2],8);Sn(a);f=J[a+32>>2];a:{if(!f)break a;h=J[a>>2];b=0;while(1){d=h+(b<<5)|0;N[(b<<2)+c>>2]=N[d>>2];N[(b+e<<2)+c>>2]=N[d+4>>2];N[(b+n<<2)+c>>2]=N[d+8>>2];N[(b+m<<2)+c>>2]=N[d+12>>2];b=b+1|0;if((f|0)!=(b|0))continue;break}if(!f)break a;h=J[a>>2];b=0;while(1){d=h+(b<< -5)|0;N[(b+l<<2)+c>>2]=N[d+16>>2];N[(b+k<<2)+c>>2]=N[d+20>>2];N[(b+j<<2)+c>>2]=N[d+24>>2];N[(b+i<<2)+c>>2]=N[d+28>>2];b=b+1|0;if((f|0)!=(b|0))continue;break}}c=c+o|0;g=g+8|0;if(g>>>0<=M[a+44>>2])continue;break}}qc(J[a>>2]);qc(a);return}fa(2342613,2338616,3218,2342801);B()}function WE(a,b,c,d,e){var f=0,g=0,h=0;f=bc-16|0;bc=f;g=f+12|0;b=J[b+28>>2];J[g>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[695492]=0;b=$(6613,g|0)|0;h=J[695492];J[695492]=0;a:{if((h|0)==1)break a;J[695492]=0;ha(6634,b|0,2617936,2617968,c|0)|0; -b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;b=$(6614,g|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;c=$(6635,b|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;H[d|0]=c;J[695492]=0;c=$(6625,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;H[e|0]=c;J[695492]=0;da(6626,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);bc=f+16|0;return}c=Z()|0;a=J[f+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)== --1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function PVa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=bc-32|0;bc=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[695492]=0;J[f+16>>2]=13;c=ga(3291,c|0,d|0,f+16|0)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)==1)break b;c:{d:{if(J[c>>2]==3){J[b+4>>2]=J[b+4>>2]|1<>2])|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;c=J[b+4>>2];d=J[b>>2];J[695492]=0;ca(3281,f+4|0,d| -0,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break c;c=J[f+8>>2];J[a>>2]=J[f+4>>2];J[a+4>>2]=c;J[a+8>>2]=J[f+12>>2];qc(dd(b))}J[695492]=0;_(3205,f+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;bc=f+32|0;return}a=Z()|0;qc(c);ba(a|0);B()}break a}b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}ba(Z()|0);B()}function Jr(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;J[a+572>>2]=J[a+572>>2]+J[a+576>>2];b=H[a+568|0];a:{if((b|0)<0|b>>>0>6)break a;while(1){f=J[a+320>>2];if(J[a+580>>2]>2]&(f|0)>J[a+572>>2])break a; -d=b+1|0;H[a+568|0]=d;if(b<<24>>24>5)break a;b=d<<24>>24<<2;J[a+584>>2]=J[b+213184>>2];e=J[b+213152>>2];J[a+580>>2]=e;J[a+576>>2]=J[b+213120>>2];g=J[b+213088>>2];J[a+572>>2]=g;h=J[a+316>>2];c=J[b+213216>>2]+(h-e|0)>>>J[b+213248>>2]|0;J[a+588>>2]=c;b=J[a+592>>2];b:{if((b|0)>=2){c=P(b,c);break b}b=J[a+600>>2];if((b|0)<=0)break b;c=J[a+596>>2]+c>>b}J[a+604>>2]=c;c:{if((f|0)<=(g|0)|(e|0)>=(h|0))break c;if((c|0)<=0)break c;b=J[a+640>>2];c=0;while(1){H[b|0]=0;b=b+1|0;c=c+1|0;if((c|0)>2])continue; -break}d=K[a+568|0]}b=d;if(b<<24>>24<7)continue;break}}return 0}function Yq(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=bc-48|0;bc=d;e=a?J[a+80>>2]:0;a:{b:{c:{d:switch(c-1|0){case 1:if(b)break b;a=39009;break c;default:J[d>>2]=34237;a=0;Cc(0,0,0,0,0,23,1,2,0,0,0,0,4607,d);break a;case 0:case 2:case 3:break d}a=39048;if(!b)break b}J[d+32>>2]=a;Cc(0,0,0,0,0,23,1,2,0,0,0,0,4607,d+32|0)}a=gc[J[659447]](28)|0;if(!a){J[d+16>>2]=17038;Cc(0,0,0,0,0,23,2,3,17038,0,0,0,32863,d+16|0);a=0;break a}J[a+8>>2]=0;J[a+12>>2]= -0;J[a+4>>2]=1;J[a>>2]=c;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;if(!b)break a;c=CJ(b,d+44|0);if(!c){if(!e){g=a,h=$e(b),J[g+8>>2]=h;break a}g=a,h=le(e,b,-1),J[g+8>>2]=h;break a}f=J[d+44>>2];if(!e){g=a,h=il(b,f),J[g+24>>2]=h;g=a,h=$e(c),J[g+8>>2]=h;break a}g=a,h=le(e,b,f),J[g+24>>2]=h;g=a,h=le(e,c,-1),J[g+8>>2]=h}bc=d+48|0;return a}function Oh(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=bc-16|0;bc=f;a:{b:{e=J[b+4>>2];g=!e;d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+91532>>2];else d=0;if(g|!d)break b;d=Dzb(d,0, -e,0);if(fc)break b;c:{if(!(K[a+13|0]&8)){if((gc[J[a+640>>2]](J[a+628>>2],J[b+8>>2],0)|0)!=J[b+8>>2])break b;if((gc[J[a+632>>2]](J[a+628>>2],c,d)|0)==(d|0))break c;break b}e=J[b+8>>2];g=d+e|0;if(M[a+616>>2]>>0|e>>>0>g>>>0)break b;Ne(c,J[a+612>>2]+e|0,d)}d:{if(!(K[a+12|0]&128))break d;h=d;e:switch(L[b+2>>1]-3|0){case 0:case 5:qs(c,J[b+4>>2]);break d;case 1:case 6:case 8:Xo(c,J[b+4>>2]);break d;case 2:case 7:Xo(c,J[b+4>>2]<<1);break d;case 9:break e;default:break a}GF(c,J[b+4>>2])}h=d;break a}c=J[a>> -2];d=J[a+628>>2];i=f,j=J[Lf(a,L[b>>1])+16>>2],J[i>>2]=j;Nc(d,c,88002,f)}bc=f+16|0;return h}function E7(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;c=bc-16|0;bc=c;f=!a;a:{if(f|((f?-1:J[a+8>>2])|0)!=16)break a;xf(a,c+12|0,c+8|0,0);b=uh(J[c+12>>2],J[c+8>>2],8);if(!b)break a;if(!(!b|!a|(a|0)==(b|0))){J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2]}d=a?J[a+12>>2]:-1;n=a?J[a+40>>2]:0;f=b?J[b+12>>2]:-1;i=b?J[b+40>>2]:0;m=J[c+8>>2];if(!((m|0)<=0|(d|0)<=0)){o=d&-2;p=d&1;while(1){j=(P(f, -g)<<2)+i|0;k=(P(d,g)<<2)+n|0;a=0;l=0;if((d|0)!=1)while(1){e=J[(a<<2)+k>>2];I[((a<<1)+j^2)>>1]=e>>>16&65280|e>>>8&255;e=a|1;h=J[(e<<2)+k>>2];I[((e<<1)+j^2)>>1]=h>>>16&65280|h>>>8&255;a=a+2|0;l=l+2|0;if((o|0)!=(l|0))continue;break}if(p){h=(a<<1)+j^2;a=J[(a<<2)+k>>2];I[h>>1]=a>>>16&65280|a>>>8&255}g=g+1|0;if((m|0)!=(g|0))continue;break}}i=b}bc=c+16|0;return i}function vaa(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];a:{if(!(gc[J[b+56>>2]](a)|0))break a;if(!sO(a))break a;d=1;b:{c:switch(J[b>>2]-2|0){case 0:c= -706;d:{e:{f:switch(L[a+84>>1]-8|0){case 8:c=707;break e;case 0:break e;case 24:break f;default:break d}c=708}J[b+40>>2]=c}c=J[a+540>>2];if((c|0)!=709){J[b+28>>2]=c;J[a+540>>2]=709;J[b+32>>2]=J[a+548>>2];J[a+548>>2]=710;J[b+36>>2]=J[a+556>>2];J[a+556>>2]=710}if(!(K[a+12|0]&128))break a;c=J[b+40>>2];if((c|0)==707){J[b+40>>2]=711;break b}if((c|0)!=708)break a;J[b+40>>2]=712;break b;case 1:break c;default:break a}J[b+40>>2]=713;c=J[a+540>>2];if((c|0)!=709){J[b+28>>2]=c;J[a+540>>2]=709;J[b+32>>2]=J[a+ -548>>2];J[a+548>>2]=710;J[b+36>>2]=J[a+556>>2];J[a+556>>2]=710}if(!(K[a+12|0]&128))break a}J[a+652>>2]=515}return d|0}function tm(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=J[b+44>>2];a:{if(j){g=L[b+26>>1];b:{if((g|0)==8){f=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+c|0];break b}h=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+(P(c,g)>>3)|0];c:switch(g-1|0){case 3:f=4-((c|0)%2<<2)&252;f=(h&15<>>f|0;break b;case 0:break c;default:break b}f=7-((c|0)%8|0)|0;f=(h&1<>>f|0}h=J[b+4>>2];d:{if(!h){g= -0;i=0;break d}g=0;f=f&255;i=0;if(f>>>0>=j>>>0)break d;f=h+(f<<2)|0;g=K[f+41|0]<<8;k=K[f+43|0]<<24;l=K[f+40|0];i=K[f+42|0]<<16}h=i;f=h|k|g|l;H[a|0]=f;H[a+1|0]=f>>>8;H[a+2|0]=f>>>16;H[a+3|0]=f>>>24;break a}f=(J[b+56>>2]+P(J[b+52>>2],d)|0)+P(c,3)|0;H[a|0]=K[f|0];H[a+1|0]=K[f+1|0];f=K[f+2|0];H[a+3|0]=0;H[a+2|0]=f}f=J[b+964>>2];if(!(!f|!e))H[a+3|0]=K[(f+P(J[b+16>>2],d)|0)+c|0]}function JEa(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;f=bc-16|0;bc=f;i=b+4|0;h=i;g=h;e=J[b+4>>2];a:{b:{if(!e)break b; -while(1){g=e;j=e+16|0;if(Qm(c,j)){h=e;e=J[e>>2];if(e)continue;break b}if(Qm(j,c)){h=g+4|0;e=J[g+4>>2];if(e)continue;break b}break}c=J[h>>2];e=0;if(c)break a}e=rc(40);H[f+12|0]=0;J[f+8>>2]=i;J[f+4>>2]=e;J[695492]=0;c=Vl(e+16|0,d);i=J[695492];J[695492]=0;c:{d:{if((i|0)!=1){J[695492]=0;Vl(e+28|0,d+12|0);d=J[695492];J[695492]=0;if((d|0)!=1)break c;g=Z()|0;Lc(c);break d}g=Z()|0}a=J[f+4>>2];J[f+4>>2]=0;if(a){if(K[f+12|0]){Lc(a+28|0);Lc(a+16|0)}qc(a)}ba(g|0);B()}J[e+8>>2]=g;J[e>>2]=0;J[e+4>>2]=0;J[h>>2]= -e;c=J[J[b>>2]>>2];if(c){J[b>>2]=c;e=J[h>>2]}Ic(J[b+4>>2],e);J[b+8>>2]=J[b+8>>2]+1;c=J[f+4>>2];e=1}H[a+4|0]=e;J[a>>2]=c;bc=f+16|0}function pia(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;if((c|0)>0){a=J[a+12>>2];while(1){f=b;a:{b:{b=J[a>>2];e=b>>>14&1023;if(e){h=Vo((+(e|0)+.5)*.010830424696249145+-8.317766166719343);if(!(h<=0))break b}J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;break a}j=b&16383;c:{if(j>>>0>16288){d=.210526316;g=.473684211;break c}k=163;e=0;d:{e:{while(1){b=e+k>>1;l=j-I[(b<< -3)+92422>>1]|0;f:{if((l|0)>0){e=b;break f}if((l|0)>=0)break e;k=b}if((k-e|0)>1)continue;break}b=e;g=+(j-I[(b<<3)+92422>>1]|0)+.5;break d}g=.5}d=g*.0035000001080334187+ +N[(b<<3)+92416>>2];g=(+(b|0)+.5)*.0035000001080334187+.016939999535679817}N[f+4>>2]=h;i=d*9;d=1/(d*6+g*-16+12);i=i*d;d=g*4*d;N[f>>2]=h*(i/d);N[f+8>>2]=h*((1-i-d)/d)}a=a+4|0;b=f+12|0;e=c>>>0>1;c=c-1|0;if(e)continue;break}}}function KU(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2402060;b=J[a+64>>2];J[a+64>>2]=0;a:{b:{if(!b)break b;J[695492]=0; -c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+60>>2];J[a+60>>2]=0;c:{if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+24>>2]=2381028;J[a+48>>2]=2381060;b=J[a+52>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0}J[a+40>>2]=2381060; -b=J[a+44>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+44>>2]=0}sc(a+32|0);sc(a+12|0);return ed(a)|0}ea(0)|0;yc();B()}function zxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{c=J[a+84>>2]-4|0;if(c)if((c|0)==12)break c;else break a;a=a- -64|0;break b}d=-1;a=J[a+52>>2];if(!a|J[a+40>>2])break a;a=a+32|0}a=J[a>>2];d=J[a>>2]|1;J[a>>2]=d;c=b+12|0;H[a+8|0]=K[c+1|0];H[a+16|0]=K[c+8|0]?K[c+17|0]?2:1:0;J[a+12>>2]=J[c+4>>2];H[a+17|0]=K[c|0]&6;e=J[a+20>>2];if((e|0)>0){b=J[a+ -24>>2];while(1){f=J[b>>2];if(!(f&4)){H[b+5|0]=K[c+13|0]+1;H[b+6|0]=K[c+14|0]+2;H[b+7|0]=K[c+15|0]+2;H[b+8|0]=K[c+17|0];H[b+418|0]=K[c+16|0];H[b+4|0]=H[c+12|0]&1;d=0;if(J[c+20>>2]>0){while(1){e=b+d|0;g=c+(d<<1)|0;H[e+419|0]=K[g+24|0];H[e+452|0]=K[g+25|0];d=d+1|0;if((d|0)>2])continue;break}e=J[a+20>>2]}J[b>>2]=f|1}b=b+488|0;h=h+1|0;if((h|0)<(e|0))continue;break}d=J[a>>2]|1}J[a>>2]=d;d=0}return d|0}function By(a){var b=0,c=0;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[695492]=0;b=J[(b+c|0)+24>>2];c=J[695492]; -J[695492]=0;a:{if((c|0)==1)break a;b:{if(!b)break b;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[695492]=0;b=J[(b+c|0)+16>>2];c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b;b=J[a+4>>2];if(!(J[(J[J[b>>2]-12>>2]+b|0)+4>>2]&8192))break b;if(_Q())break b;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[695492]=0;b=J[(b+c|0)+24>>2];c=J[695492];J[695492]=0;c:{if((c|0)==1)break c;J[695492]=0;b=$(6527,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;if((b|0)!=-1)break b;a=J[a+4>>2];b=J[J[a>>2]-12>>2];J[695492]=0;da(6528, -a+b|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break b}na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function k0(a){var b=0,c=0,d=0,e=0,f=0;if(a){b=J[a>>2];if(b){d=J[a+4>>2];a:{if((d|0)<=0)break a;e=J[a+8>>2];if((e|0)<=0)break a;while(1){b=J[a>>2];b:{if(!b)break b;c=b+P(f,24)|0;if(!J[c+20>>2])break b;d=J[c>>2];b=J[c+16>>2];if(b)VJ(b);c:{if(J[a+12>>2])break c;b=J[c+4>>2];if(b)gc[J[659451]](b);b=J[c+8>>2];if(b)gc[J[659451]](b);b=J[c+12>>2];if(!b)break c; -gc[J[659451]](b)}J[c+16>>2]=0;while(1){e=e-1|0;if(d){b=d;d=J[b>>2];c=J[b+16>>2];if(c)VJ(c);d:{if(J[a+12>>2])break d;c=J[b+4>>2];if(c)gc[J[659451]](c);c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+12>>2];if(!c)break d;gc[J[659451]](c)}J[b+16>>2]=0;gc[J[659451]](b);continue}break}d=J[a+4>>2]}f=f+1|0;if((f|0)<(d|0)&(e|0)>0)continue;break}b=J[a>>2]}gc[J[659451]](b)}b=J[a+12>>2];if(b)dn(b);gc[J[659451]](a)}}function cmb(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=bc-32|0;bc=d;a:{b:{c:{d:{g=J[689330]; -e:{if(!g)break e;e=Qc(a);if(e>>>0>=2147483632)break a;f:{if(e>>>0<=10){H[d+31|0]=e;f=d+20|0;break f}h=(e|15)+1|0;f=rc(h);J[d+28>>2]=h|-2147483648;J[d+20>>2]=f;J[d+24>>2]=e}i=tc(f,a,e)+e|0,j=0,H[i|0]=j;J[695492]=0;a=d+8|0;e=H[d+31|0];f=(e|0)<0;ca(1618,a|0,(f?J[d+20>>2]:d+20|0)|0,(f?J[d+24>>2]:e&255)|0);e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[J[g>>2]+16>>2];J[695492]=0;ma(e|0,g|0,a|0,b|0,c|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;if(H[d+19|0]<0)qc(J[d+8>>2]);if(H[d+31|0]>=0)break e; -qc(J[d+20>>2])}bc=d+32|0;return}a=Z()|0;break b}a=Z()|0;if(H[d+19|0]>=0)break b;qc(J[d+8>>2])}if(H[d+31|0]<0)qc(J[d+20>>2]);ba(a|0);B()}Id(d+20|0);B()}function ZZ(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;J[c+16>>2]=13;J[c>>2]=13;a:{b:{c:{if(J[a+24>>2]==7){if(J[Bc(J[a+32>>2],J[b+4>>2],c+16|0,0)>>2]!=5){a=J[c+16>>2];break c}uc(c+16|0)}if(J[a+40>>2]!=7)break b;b=YZ(a,a+40|0,b,c+16|0);a=J[b>>2];if((a|0)!=5)break c;uc(b);break b}d:{e:{f:{g:{h:switch(a-6|0){case 0:a=rc(72);J[695492]=0;d=aa(3375,a|0, -J[c+24>>2])|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;uc(c+16|0);break e;case 1:if(J[Bc(J[c+24>>2],795669,c,0)>>2]!=6)break g;a=rc(72);J[695492]=0;d=aa(3375,a|0,J[c+8>>2])|0;b=J[695492];J[695492]=0;if((b|0)!=1)break f;break a;default:break h}xc(0,-1,796031,0);uc(c+16|0);break b}xc(0,-1,796031,0)}uc(c);uc(c+16|0);if(!d)break d}if(J[d+68>>2])break b;qc(d)}d=0}bc=c+32|0;return d|0}b=Z()|0;qc(a);ba(b|0);B()}function Ww(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;k=e>>8;if((d|0)==(f|0)){Ip(a, -k,b);return}n=e&255;g=c&255;l=c>>8;if((l|0)==(k|0)){b=f-d|0;J[a+56>>2]=b+J[a+56>>2];J[a+60>>2]=J[a+60>>2]+P(b,g+n|0);return}h=f-d|0;m=-1;i=e-c|0;a:{if((i|0)>=0){o=256;m=1;c=256-g|0;break a}i=0-i|0;c=g}e=P(c,h);c=(e|0)/(i|0)|0;j=e-P(c,i)|0;h=c+(j>>31)|0;J[a+56>>2]=h+J[a+56>>2];J[a+60>>2]=J[a+60>>2]+P(h,g|o);e=l+m|0;Ip(a,e,b);c=d+h|0;if((e|0)!=(k|0)){g=(f+h|0)-c<<8;d=(g|0)/(i|0)|0;g=g-P(d,i)|0;h=g>>31;l=(h&i)+g|0;h=d+h|0;d=j-((j|0)>=0?i:0)|0;while(1){d=d+l|0;j=(d|0)>=0;g=j+h|0;J[a+56>>2]=g+J[a+56>> -2];J[a+60>>2]=J[a+60>>2]+(g<<8);e=e+m|0;Ip(a,e,b);d=d-(j?i:0)|0;c=c+g|0;if((e|0)!=(k|0))continue;break}}b=f-c|0;J[a+56>>2]=b+J[a+56>>2];J[a+60>>2]=J[a+60>>2]+P(b,(n|256)-o|0)}function Qq(a,b,c){var d=0,e=0,f=0;e=J[a+16>>2];if(!c){d=J[a+120>>2];f=J[d>>2];J[f+20>>2]=41;gc[J[f>>2]](d)}if(!J[a+108>>2]){d=(-1<>2]|d<<24-b;if((b|0)>=8)while(1){e=J[a+112>>2];J[a+112>>2]=e+1;H[e|0]=c>>>16;e=J[a+116>>2]-1|0;J[a+116>>2]=e;if(!e){d=J[a+120>>2];e=J[d+24>>2];if(!(gc[J[e+12>>2]](d)|0)){d= -J[a+120>>2];f=J[d>>2];J[f+20>>2]=25;gc[J[f>>2]](d)}J[a+112>>2]=J[e>>2];J[a+116>>2]=J[e+4>>2]}e=b;a:{if((c&16711680)!=16711680)break a;b=J[a+112>>2];J[a+112>>2]=b+1;H[b|0]=0;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(b)break a;d=J[a+120>>2];b=J[d+24>>2];if(!(gc[J[b+12>>2]](d)|0)){d=J[a+120>>2];f=J[d>>2];J[f+20>>2]=25;gc[J[f>>2]](d)}J[a+112>>2]=J[b>>2];J[a+116>>2]=J[b+4>>2]}b=e-8|0;c=c<<8;if((e|0)>15)continue;break}J[a+16>>2]=b;J[a+12>>2]=c}}function KGa(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=bc-16|0;bc=e;a:{b:{if(a){if(!b)break b;if(!d)break a;c:{if(J[a+116>>2])break c;if(c>>>0<=1){Hc(d,1,2351556,0);break c}ld(b,e+12|0,2);f=J[e+12>>2];h=f&65535;if(!h){Hc(d,1,2351620,0);break c}if(P(h,6)+2>>>0>c>>>0){Hc(d,1,2351556,0);break c}c=_e(P(f,6));if(!c)break c;d=_e(8);J[a+116>>2]=d;if(!d){qc(c);break c}J[d>>2]=c;f=d;d=L[e+12>>1];I[f+4>>1]=d;if(!d){g=1;break c}d=0;while(1){g=e+12|0;ld(b+2|0,g,2);f=c+P(d,6)|0;I[f>>1]=J[e+12>>2];ld(b+4|0,g,2);I[f+2>>1]=J[e+12>>2];b=b+6|0;ld(b,g,2);I[f+4>>1]=J[e+ -12>>2];g=1;d=d+1|0;if(d>>>0>2]+4>>1])continue;break}}bc=e+16|0;return g|0}fa(2342603,2342899,1403,2359690);B()}fa(2351531,2342899,1404,2359690);B()}fa(2343543,2342899,1405,2359690);B()}function tQ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=bc-1040|0;bc=g;h=J[b>>2];J[g+12>>2]=h;j=a?a:g+16|0;d=a?d:256;a:{b:{c:{if(!(!h|!d)){while(1){f=c>>>2|0;if(!(c>>>0>131|f>>>0>=d>>>0)){f=h;break b}k=ZE(j,g+12|0,d>>>0>f>>>0?f:d,e);f=J[g+12>>2];if((k|0)==-1){d=0;i=-1;break c}l= -(g+16|0)!=(j|0)?k:0;d=d-l|0;j=(l<<2)+j|0;c=f?(c+h|0)-f|0:0;i=i+k|0;if(!f)break c;h=f;if(d)continue;break}break c}f=h}if(!f)break a}if(!d|!c)break a;h=i;while(1){d:{i=ns(j,f,c,e);e:{if(i+2>>>0<=2){f:switch(i+1|0){case 1:J[g+12>>2]=0;break e;case 0:break a;default:break f}J[e>>2]=0;break e}f=J[g+12>>2]+i|0;J[g+12>>2]=f;h=h+1|0;d=d-1|0;if(d)break d}i=h;break a}j=j+4|0;c=c-i|0;i=h;if(c)continue;break}}if(a)J[b>>2]=J[g+12>>2];bc=g+1040|0;return i|0}function I5a(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e; -f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=bc+-64|0;bc=h;O[h+40>>3]=c;O[h+48>>3]=b;O[h+32>>3]=d;O[h+24>>3]=e;O[h+16>>3]=f;O[h+8>>3]=g;i=J[a+8>>2];if(!K[i+1|0]){gc[J[J[a>>2]>>2]](a,b,c)|0;i=J[a+8>>2]}J[h+60>>2]=0;j=i+4|0;k=h+60|0;m=Ke(j,k),n=4,H[m|0]=n;l=J[h+60>>2];O[l+8>>3]=c;O[l>>3]=b;J[i+4>>2]=J[i+4>>2]+1;J[h+60>>2]=0;m=Ke(j,k),n=4,H[m|0]=n;l=J[h+60>>2];O[l+8>>3]=e;O[l>>3]=d;J[i+4>>2]=J[i+4>>2]+1;J[h+60>>2]=0;m=Ke(j,k),n=4,H[m|0]=n;j=J[h+60>>2];O[j+8>>3]=g;O[j>>3]=f;J[i+4>>2]=J[i+4>>2]+1;i=J[a+ -4>>2];if(i){J[h+60>>2]=512;gc[J[J[i>>2]+308>>2]](i,k)|0;i=J[a+4>>2];gc[J[J[i>>2]+328>>2]](i,h+48|0,h+40|0,h+32|0,h+24|0,h+16|0,h+8|0)|0;a=J[a+4>>2];J[h+60>>2]=512;gc[J[J[a>>2]+312>>2]](a,k)|0}bc=h- -64|0;return 1}function BL(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];c=J[b+4>>2];e=J[b>>2];while(1){if(!c){if(!(gc[J[b+12>>2]](a)|0))return 0;e=J[b>>2];c=J[b+4>>2]}d=e+1|0;c=c-1|0;if(K[e|0]!=255)while(1){e=J[a+460>>2];J[e+24>>2]=J[e+24>>2]+1;J[b+4>>2]=c;J[b>>2]=d;if(!c){if(!(gc[J[b+12>>2]](a)|0))return 0; -d=J[b>>2];c=J[b+4>>2]}c=c-1|0;e=K[d|0];d=d+1|0;if((e|0)!=255)continue;break}while(1){if(!c){if(!(gc[J[b+12>>2]](a)|0))return 0;d=J[b>>2];c=J[b+4>>2]}c=c-1|0;f=K[d|0];e=d+1|0;d=e;if((f|0)==255)continue;break}if(!f){d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+2;J[b+4>>2]=c;J[b>>2]=e;continue}break}d=J[J[a+460>>2]+24>>2];if(d){g=J[a>>2];J[g+24>>2]=d;J[g+20>>2]=119;J[J[a>>2]+28>>2]=f;gc[J[J[a>>2]+4>>2]](a,-1);J[J[a+460>>2]+24>>2]=0}J[a+436>>2]=f;J[b+4>>2]=c;J[b>>2]=e;return 1}function hJ(a,b,c){var d=0,e=0,f= -0;if(!(c?b:0)){gc[J[659549]](J[689514],31760,0);return}a:{if(!J[a+292>>2]|J[a+40>>2]!=1)break a;d=J[a+36>>2];f=J[d+12>>2];e=J[d+20>>2];while(1){d=e;e=d-1|0;if(f>>>0>e>>>0)break a;if(K[e|0]!=60)continue;break}J[b>>2]=e;b:{f=J[a+36>>2];a=J[f+20>>2];if(a>>>0>d>>>0)while(1){c:{d:switch(K[d|0]-34|0){case 5:while(1){b=d;d=d+1|0;if(a>>>0>d>>>0&K[d|0]!=39)continue;break}d=a>>>0>d>>>0?b+2|0:d;break c;case 0:while(1){b=d;d=d+1|0;if(a>>>0>d>>>0&K[d|0]!=34)continue;break}d=a>>>0>d>>>0?b+2|0:d;break c;case 28:break b; -default:break d}d=d+1|0}if(a>>>0>d>>>0)continue;break}a=J[f+12>>2];e:{while(1){e=e-1|0;if(a>>>0>e>>>0)break e;if(K[e|0]!=62)continue;break}J[c>>2]=e;return}J[c>>2]=0;return}J[c>>2]=d;return}J[b>>2]=0;J[c>>2]=0}function Nv(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;g=O[a+16>>3];s=O[a+40>>3];t=O[a+32>>3];f=O[a+24>>3];m=1/(g*s-t*f);n=O[a+48>>3];o=O[a+56>>3];q=(f*n-o*g)*m;l=O[a+632>>3];p=m*-f;h=l*p;g=g*m;f=O[a+656>>3];u=g*f;j=q+(h+u);i=O[a+640>>3];v=i*g;k=q+(h+ -v);r=m*(t*o-n*s);g=l;l=s*m;h=g*l;g=m*-t;n=g*f;f=r+(h+n);o=i*g;h=r+(h+o);a:{if(fh)){g=h;break a}g=f}b:{if(jk)){f=k;j=f;break b}f=k}i=O[a+648>>3];p=i*p;k=q+(p+v);l=i*l;i=r+(l+o);c:{if(ik){f=k;break e}if(jj){f=j;break h}if(j>k)break g}j=k}O[b>>3]=h;O[c>>3]=f;O[d>>3]=g;O[e>>3]=j}function Oua(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0,f=0;f=rc(148);J[695492]=0;c=aa(5457,f|0,b|0)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){J[c>>2]=2412012;d=K[b+93|0]|K[b+94|0]<<8|(K[b+95|0]<<16|K[b+96|0]<<24);e=K[b+89|0]|K[b+90|0]<<8|(K[b+91|0]<<16|K[b+92|0]<<24);H[c+89|0]=e;H[c+90|0]=e>>>8;H[c+91|0]=e>>>16;H[c+92|0]=e>>>24;H[c+93|0]=d;H[c+94|0]=d>>>8;H[c+95|0]=d>>>16;H[c+96|0]=d>>>24;d=K[b+96|0]|K[b+97|0]<<8|(K[b+98|0]<<16|K[b+99|0]<<24);H[c+96|0]=d;H[c+97|0]=d>>>8;H[c+98|0]=d>>>16;H[c+99|0]=d>>>24;J[695492]=0;d=aa(5458,c+100|0,b+100| -0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;aa(5458,c+124|0,b+124|0)|0;b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;xd(d);Hz(c);break a}J[a>>2]=0;md(a,c);return}b=Z()|0;break a}b=Z()|0;Hz(c)}qc(f);ba(b|0);B()}function N6a(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;f=c-b|0;g=f>>3;d=J[a+8>>2];e=J[a>>2];if(g>>>0<=d-e>>3>>>0){d=J[a+4>>2];h=d-e|0;f=h+b|0;h=h>>3;i=h>>>0>>0?f:c;if((i|0)!=(b|0))while(1){J[e>>2]=J[b>>2];J[e+4>>2]=J[b+4>>2];e=e+8|0;b=b+8|0;if((i|0)!=(b|0))continue; -break}if(g>>>0>h>>>0){if((c|0)!=(f|0))while(1){b=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=b;d=d+8|0;f=f+8|0;if((f|0)!=(c|0))continue;break}J[a+4>>2]=d;return}J[a+4>>2]=e;return}if(e){J[a+4>>2]=e;qc(e);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}a:{if(g>>>0>=536870912)break a;e=d>>2;d=d>>>0>=2147483640?536870911:e>>>0>g>>>0?e:g;if(d>>>0>=536870912)break a;e=d<<3;d=rc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(f-8&-8)+8|0;d=tc(d,c,b)+b|0}J[a+4>>2]=d;return}W2(a);B()}function HS(a,b){var c= -0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!b)break a;d=K[a+15|0];c=d<<24>>24;e=K[b+15|0];f=e<<24>>24;i=(f|0)<0;h=i?J[b+8>>2]:e;e=J[a+8>>2];j=(c|0)<0;f=j?e:d;g=0;b:{if((h|0)!=(f|0))break b;if(f){d=a+4|0;c=b+4|0;g=0;if(gd(j?J[d>>2]:d,i?J[c>>2]:c,f))break b;e=J[a+8>>2];d=K[a+15|0];c=d}c:{if(c<<24>>24<0?e:d)break c;f=K[a+27|0];c=f<<24>>24;e=K[b+27|0];d=e<<24>>24;c=(c|0)<0;f=c?J[a+20>>2]:f;d=(d|0)<0;g=0;if((f|0)!=((d?J[b+20>>2]:e)|0))break b;if(!f)break c;e=a+16|0;h=c?J[e>>2]:e;c=b+16|0;g=0;if(gd(h,d?J[c>>2]: -c,f))break b}if(J[a+64>>2]!=J[b+64>>2]|J[a+52>>2]!=J[b+52>>2]|(J[a+40>>2]!=J[b+40>>2]|O[a+32>>3]!=O[b+32>>3]))break a;if(J[a+44>>2]!=J[b+44>>2])break a;g=0;if(K[a+48|0]!=K[b+48|0])break b;g=K[a+49|0]==K[b+49|0]}return g}return 0}function kXa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(c>>>0>=65534){d=J[a>>2];J[d+20>>2]=12;gc[J[d>>2]](a)}d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=255;e=J[d+4>>2]-1|0;J[d+4>>2]=e;a:{if(e)break a;if(gc[J[d+12>>2]](a)|0)break a;d=J[a>>2];J[d+20>>2]=25;gc[J[d>>2]](a)}d=J[a+ -24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=b;b=J[d+4>>2]-1|0;J[d+4>>2]=b;b:{if(b)break b;if(gc[J[d+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;e=d;d=c+2|0;H[e|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(gc[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d;if(gc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}}function Swb(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=J[J[a+40>>2]+16>>2];b=J[a+52>>2];if(J[a+4>>2]==16)d=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else d=J[a+36>>2];if(J[d+424>>2])a=J[d+420>>2]+1|0;else a=0;j=J[d+1872>>2];J[d+424>>2]=1;h=(g|0)<257?1:2;c=((gc[J[J[b>>2]+20>>2]](b,2)|0)-2|0)/((h<<1)+5|0)|0;i=c+a|0;if((c|0)>0)while(1){e=(a<<5)+d|0;k=e,l=gc[J[J[b>>2]+20>>2]](b,1)|0,J[k+428>>2]=l;k=e,l=gc[J[J[b>>2]+20>>2]](b,h)|0,J[k+432>>2]=l;f=gc[J[J[b>>2]+20>>2]](b,2)|0;c=J[d+12>>2];J[e+436>>2]=c>>>0< -f>>>0?c:f;f=gc[J[J[b>>2]+20>>2]](b,1)|0;c=J[j+4>>2];J[e+440>>2]=c>>>0>>0?c:f;c=gc[J[J[b>>2]+20>>2]](b,h)|0;J[e+444>>2]=c>>>0>g>>>0?g:c;k=e,l=gc[J[J[b>>2]+20>>2]](b,1)|0,J[k+448>>2]=l;a=a+1|0;if((i|0)>(a|0))continue;break}J[d+420>>2]=i-1}function y5a(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;c=c<<2;f=J[c+J[b+8>>2]>>2];g=J[c+J[b+4>>2]>>2];c=J[c+J[b>>2]>>2];b=J[d>>2];h=J[a+332>>2];d=J[a+472>>2];j=J[d+28>>2];m=J[d+24>>2];n=J[d+20>>2];o=J[d+16>>2];d=J[a+112>> -2];if(d>>>0>=2){d=d>>>1|0;while(1){e=K[g|0]<<2;k=J[e+n>>2];i=K[f|0]<<2;l=J[i+m>>2];p=J[e+j>>2];i=h+J[i+o>>2]|0;e=K[c|0];H[b|0]=K[i+e|0];l=h+(l+p>>16)|0;H[b+1|0]=K[l+e|0];k=h+k|0;H[b+2|0]=K[k+e|0];e=K[c+1|0];H[b+3|0]=K[e+i|0];H[b+4|0]=K[e+l|0];H[b+5|0]=K[e+k|0];b=b+6|0;c=c+2|0;f=f+1|0;g=g+1|0;d=d-1|0;if(d)continue;break}d=J[a+112>>2]}if(d&1){a=K[g|0]<<2;d=J[a+n>>2];f=K[f|0]<<2;g=J[f+m>>2];j=J[a+j>>2];a=K[c|0];H[b|0]=K[a+(h+J[f+o>>2]|0)|0];H[b+1|0]=K[a+(h+(g+j>>16)|0)|0];H[b+2|0]=K[a+(d+h|0)|0]}}function e_(a){var b= -0,c=0,d=0,e=0;c=J[a+20>>2];if(c){J[695492]=0;_(3205,c+176|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)==1)break b;J[695492]=0;_(3205,c+192|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,c+208|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,c+224|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,c+240|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,c+256|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(3205,c+280|0);b= -J[695492];J[695492]=0;if((b|0)==1)break b;break a}ea(0)|0;yc();B()}qc(c)}d=J[a+16>>2];if(d){b=J[d+8>>2];if((b|0)>0)while(1){c=J[J[d>>2]+(e<<2)>>2];if(c){qc(e_(c));b=J[d+8>>2]}e=e+1|0;if((e|0)<(b|0))continue;break}qc(dd(d))}return a}function TBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=K[a+11|0];e=d+7>>>3|0;g=J[a+4>>2];a:{if(!d)break a;a=e>>>0<=1?1:e;f=a&3;if(d>>>0>=25){d=a&60;a=0;while(1){H[b|0]=K[b|0]+(K[c|0]>>>1|0);H[b+1|0]=K[b+1|0]+(K[c+1|0]>>>1|0);H[b+2|0]=K[b+2|0]+(K[c+2|0]>>>1|0); -H[b+3|0]=K[b+3|0]+(K[c+3|0]>>>1|0);b=b+4|0;c=c+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}if(!f)break a;a=0;while(1){H[b|0]=K[b|0]+(K[c|0]>>>1|0);b=b+1|0;c=c+1|0;a=a+1|0;if((f|0)!=(a|0))continue;break}}b:{if((e|0)==(g|0))break b;f=g-e|0;h=f&1;d=0;a=0-e|0;if((e+1|0)!=(g|0)){e=f&-2;while(1){H[b|0]=K[b|0]+(K[a+b|0]+K[c|0]>>>1|0);H[b+1|0]=K[b+1|0]+(K[a+(b+1|0)|0]+K[c+1|0]>>>1|0);b=b+2|0;c=c+2|0;d=d+2|0;if((e|0)!=(d|0))continue;break}}if(!h)break b;H[b|0]=K[b|0]+(K[a+b|0]+K[c|0]>>>1|0)}}function ZG(a, -b,c){var d=0,e=0,f=0,g=0;e=bc-144|0;bc=e;a:{d=J[b>>2];b:{if((d|0)>=J[c>>2])break b;while(1){g=J[(d<<2)+a>>2]-32|0;if(!g|(g|0)==12){d=d+1|0;J[b>>2]=d;if(J[c>>2]>(d|0))continue;break b}break}wc(e+16|0,0,128);while(1){g=J[(d<<2)+a>>2];if((g|0)!=32){J[(e+16|0)+(f<<2)>>2]=g;d=d+1|0;J[b>>2]=d;f=f+1|0;if(J[c>>2]>(d|0))continue}break}a=Ps(e+4|0,e+16|0,0,f);J[695492]=0;b=Fd(a,2371840);c=J[695492];J[695492]=0;f=1;if((c|0)==1)break a;c:{if(b)break c;J[695492]=0;b=Fd(a,2371860);c=J[695492];J[695492]=0;if((c| -0)==1)break a;if(b)break c;J[695492]=0;b=Fd(a,2371868);c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break c;J[695492]=0;f=Fd(a,2371876);b=J[695492];J[695492]=0;if((b|0)==1)break a}Lc(a)}bc=e+144|0;return f}b=Z()|0;Lc(a);ba(b|0);B()}function Xw(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;g=J[a+4>>2];if(c>>>0>=999999985){d=J[a>>2];J[d+20>>2]=56;J[d+24>>2]=1;gc[J[J[a>>2]>>2]](a)}if(b>>>0>=2){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=15;gc[J[J[a>>2]>>2]](a)}e=c+7&-8;a:{b:{h=(b<<2)+g|0;c=J[h+52>> -2];if(!c){d=0;break b}while(1){d=c;if(M[c+8>>2]>>0){c=J[c>>2];if(c)continue;break b}break}b=d;break a}b=J[(b<<2)+(d?54568:54560)>>2];c=999999984-e|0;c=b>>>0>>0?b:c;i=e+16|0;f=c+i|0;b=zc(f);if(!b)while(1){if(c>>>0<=99){b=J[a>>2];J[b+20>>2]=56;J[b+24>>2]=2;gc[J[J[a>>2]>>2]](a)}c=c>>>1|0;f=i+c|0;b=zc(f);if(!b)continue;break}J[g+76>>2]=J[g+76>>2]+f;J[b+8>>2]=c+e;J[b>>2]=0;J[b+4>>2]=0;if(!d){J[h+52>>2]=b;break a}J[d>>2]=b}a=J[b+4>>2];J[b+4>>2]=a+e;J[b+8>>2]=J[b+8>>2]-e;return(a+b|0)+16|0}function QF(a, -b,c,d){var e=0,f=0,g=0,h=0,i=0;i=vs(a,b,c);e=J[d>>2];if(!e)return i;a:{f=J[c>>2];if(!f)break a;g=O[e+16>>3];h=O[f+16>>3];if(R(g-h)<=.01){if(O[e+32>>3]>3])break a;return i}if(g>2]=e;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=i+1|0;e=J[c>>2];b:{if(!e)break b;f=J[b>>2];c:{if(!f)break c;g=O[e+16>>3];h=O[f+16>>3];if(R(g-h)<=.01){if(O[e+32>>3]>3])break c;break b}if(!(g>2]=e;J[c>>2]=f;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;d=i+2|0; -c=J[b>>2];if(!c)break b;e=J[a>>2];d:{if(!e)break d;g=O[c+16>>3];h=O[e+16>>3];if(R(g-h)<=.01){if(O[c+32>>3]>3])break d;break b}if(!(g>2]=c;J[b>>2]=e;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;d=i+3|0}return d}function Jm(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=bc-32|0;bc=e;J[a+664>>2]=0;d=J[a+660>>2];a:{if(d){d=ST(a,J[a+656>>2],c+d|0,4,86864);break a}d=Sg(a,c,4,86864)}J[a+656>>2]=d;b:{if(!d){c=0;Nc(J[a+628>>2],86832,72336,0);break b}g=J[a+660>>2];if((c|0)>0){g=d+(g<<2)|0; -d=0;while(1){i=P(d,20)+b|0;f=J[i+8>>2];j=J[i>>2];J[e+24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=e+8;h=J[a+664>>2];c:{if(!(!h|J[h>>2]!=(j|0))&(!f|(f|0)==J[h+8>>2]))break c;h=J[a+656>>2];d:{if(!h)break d;J[e+16>>2]=f;J[e+8>>2]=j;f=EF(e+4|0,h,J[a+660>>2]);if(!f){J[a+664>>2]=0;break d}f=J[f>>2];J[a+664>>2]=f;if(f)break c}J[g>>2]=i;J[a+660>>2]=J[a+660>>2]+1;g=g+4|0}d=d+1|0;if((d|0)!=(c|0))continue;break}g=J[a+660>>2];d=J[a+656>>2]}Kl(d,g,4,558)}bc=e+32|0;return c}function E3(a, -b,c,d,e,f){var g=0,h=0,i=0;i=bc-96|0;bc=i;a:{b:{c:{d:{if(!(J[b+8>>2]|!b|(e==0|f==0))){h=R2(i+88|0);J[695492]=0;La(2328,h|0,+c,+d)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[695492]=0;e=c+e;La(2329,h|0,+e,+d)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[695492]=0;d=d+f;La(2329,h|0,+e,+d)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[695492]=0;La(2329,h|0,+c,+d)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[695492]=0;$(2330,h|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break d;J[695492]=0; -b=ga(2223,i+8|0,b|0,4)|0;g=J[695492];J[695492]=0;if((g|0)==1)break c;J[695492]=0;ga(2331,a|0,b|0,h|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;ZK(b);pr(h)}bc=i+96|0;return}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;ZK(b)}pr(h);ba(a|0);B()}function dpa(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-32|0;bc=c;b=c+12|0;sj(b,a,0);J[695492]=0;da(6067,c+20|0,b|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){b=J[c+20>>2];c:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+28|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c; -a=Z()|0;break b}J[c+28>>2]=0}J[695492]=0;aa(4993,a+8|0,c+28|0)|0;b=J[695492];J[695492]=0;d:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d}ea(0)|0;yc();B()}a=Z()|0;vc(c+28|0);break b}b=a;a=J[a+8>>2];J[b+12>>2]=J[(a?a+12|0:2728584)>>2];sc(c+20|0);sc(c+12|0);bc=c+32|0;return}a=Z()|0;break a}sc(c+20|0)}sc(c+12|0);ba(a|0);B()}function WTa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>2147482623)break a;e=J[a+1040>>2];if((e|0)>(b|0))break a;b:{if((e+1020|0)>=(b|0)){d=e;break b}f=J[a+1044>>2];d=f+e|0;if((d|0)>(b|0)){d=f+(e-b|0)|0;J[a+1044>>2]=d;f=a+16|0;Zc(f,f+(b-e|0)|0,d);J[a+1040>>2]=b;d=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=d;if((b|0)<=(d|0))break b;while(1){d=0;if((gc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;d=J[a+1040>>2]+1|0;J[a+1040>>2]=d;if((b|0)>(d|0))continue;break}}e=b+4|0;if((e|0)>(J[a+1044>>2]+d|0))while(1){d=0;f=gc[J[a+ -4>>2]](J[a+8>>2])|0;if((f|0)<0)break a;d=J[a+1044>>2];J[a+1044>>2]=d+1;H[(a+d|0)+16|0]=f;d=J[a+1040>>2];if((e|0)>(d+J[a+1044>>2]|0))continue;break}a=(b-d|0)+a|0;J[c>>2]=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);d=1}return d|0}function W4a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-32|0;bc=e;d=e+16|0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=413844;J[695492]=0;b=ga(3,d|0,b|0,0)|0;g=J[695492];J[695492]=0;a:{b:{if((g|0)==1)break b;if(!b)break a;J[695492]=0;b=J[d+12>>2];f=J[695492]; -J[695492]=0;if((f|0)==1)break b;J[a+12>>2]=b;c:{if(!c){J[695492]=0;c=$(27,b|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break c;break b}H[a+16|0]=1}J[a+8>>2]=c;J[695492]=0;J[e+12>>2]=0;ha(28,d|0,c|0,b|0,e+12|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){if((b|0)!=J[e+12>>2]){d:{if(K[a+16|0])break d;b=J[a+8>>2];if(!b)break d;qc(b);J[a+8>>2]=0}f=0;J[a+12>>2]=0;break a}J[695492]=0;_(21,d|0);a=J[695492];J[695492]=0;f=1;if((a|0)!=1)break a}}a=Z()|0;ve(d);ba(a|0);B()}ve(d);bc=e+32|0;return f|0}function Tta(a){a= -a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2413388;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[695492]=0;b=ha(5043,a+44|0,a+40|0,0,4)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[695492]=0;ha(5043,a+56|0,a+52|0,0,4)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;_c(b);ed(a);ba(c|0);B()}b=Z()|0;ed(a);ba(b|0);B()}J[a>>2]=2413648;J[695492]=0;c=ha(5043,a+68|0,a- -64|0,0,3)|0;b=J[695492];J[695492]=0;b:{c:{d:{e:{if((b|0)!=1){J[695492]=0;d= -ha(5043,a+80|0,a+76|0,0,3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;J[695492]=0;ha(5043,a+92|0,a+88|0,0,3)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;return a|0}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;_c(d)}_c(c)}Dz(a);ba(b|0);B()}function Ska(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(H[c+11|0]>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}Re(b,J[c>>2],J[c+4>>2])}a=b+12|0;b:{c:{d:{e:{f:{g:{if(H[c+23|0]>=0){d=c+12|0;e=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=e;J[a+ -8>>2]=J[c+20>>2];break g}d=J[c+16>>2];e=J[c+12>>2];J[695492]=0;ca(15,a|0,e|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break f}d=b+24|0;if(H[c+35|0]<0)break e;a=c+24|0;e=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=e;J[d+8>>2]=J[c+32>>2];break d}c=Z()|0;break b}e=J[c+28>>2];f=J[c+24>>2];J[695492]=0;ca(15,d|0,f|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break c}a=J[c+40>>2];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=a;return}c=Z()|0;if(H[b+23|0]>=0)break b;qc(J[a>>2])}if(H[b+11|0]<0)qc(J[b>>2]);ba(c|0);B()}function Mub(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=J[J[a+544>>2]+88>>2];e=J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0;b=J[a+588>>2];c=J[a+644>>2];a:{if(K[d+56|0]){if((b|0)<=0)break a;while(1){b=K[e|0]|K[e+1|0]<<8;b=(b<<8|b>>>8)&65535;g=(b|0)!=L[d+836>>1];b=g?b:0;h=b<<8|b>>>8;H[c|0]=h;H[c+1|0]=h>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=g?65535:0;b=b<<8|b>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;c=c+8|0;e=e+2|0;f=f+1|0;if((f|0)>2])continue;break}break a}if((b|0)<=0)break a;while(1){d= -K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535;b=d<<8|d>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d<<8|d>>>8;H[c+2|0]=d;H[c+3|0]=d>>>8;H[c+4|0]=d;H[c+5|0]=d>>>8;H[c+6|0]=255;H[c+7|0]=255;c=c+8|0;e=e+2|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function FD(a,b){var c=0,d=0,e=0,f=0,g=0;te(b,Ac(b)<<1);a:{b:{c:{d:{e:{if(!Ac(b)){if((Ac(b)|0)!=1349808750)break e;e=Ac(b);f:{if(!e)break f;while(1){if(Ac(b))break d;c=Ac(b);d=Ac(b);g:{if((c|0)!=1231318644){if((c|0)!=1315774496)break a;if((d|0)!=1413830740)break c; -c=Ac(b);J[a>>2]=c;c=zc(c<<1);J[a+4>>2]=c;if(!c)break f;wc(c,0,J[a>>2]<<1);af(b,J[a+4>>2],J[a>>2]<<1);break g}if((d|0)!=1413830740)break b;c=0;d=Ac(b);if((d|0)<=0)break g;while(1){f=a+c|0,g=Tc(b),H[f+8|0]=g;c=c+1|0;if((d|0)!=(c|0))continue;break}}e=e-1|0;if(e)continue;break}}return}fa(221262,219843,1196,225542);B()}fa(225577,219843,1199,225542);B()}fa(221262,219843,1207,225542);B()}fa(224416,219843,1223,225542);B()}fa(224416,219843,1236,225542);B()}fa(219530,219843,1244,225542);B()}function C$a(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;if(!K[b+8|0]){b=J[b+24>>2];d=Wh(84);J[a+8>>2]=d;a:{if(d){b:{if(!(!b|K[b|0]!=106|K[b+1|0]!=97)){e=17039875;f=100992768;b=K[b+2|0];c=1;if(!b|(b|0)==95)break b}e=33751047;f=17171716;c=0}H[d+74|0]=c;H[d+65|0]=0;H[d+66|0]=0;H[d+67|0]=0;H[d+68|0]=0;H[d+64|0]=1;g=J[187929];b=J[187928];J[d>>2]=b;J[d+4>>2]=g;h=J[187931];c=J[187930];J[d+8>>2]=c;J[d+12>>2]=h;i=J[187933];j=J[187932];J[d+16>>2]=j;J[d+20>>2]=i;k=J[187935];l=J[187934];J[d+24>>2]=l;J[d+ -28>>2]=k;H[a+36|0]=0;I[d+72>>1]=1;J[d+76>>2]=e;J[d+80>>2]=f;H[d+75|0]=0;J[d+56>>2]=l;J[d+60>>2]=k;J[d+48>>2]=j;J[d+52>>2]=i;J[d+40>>2]=c;J[d+44>>2]=h;J[d+32>>2]=b;J[d+36>>2]=g;J[a+56>>2]=0;break a}J[c>>2]=7}H[a+61|0]=255;I[a+108>>1]=65533}}function j_(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-128|0;bc=c;J[c+112>>2]=13;a:{if(J[b>>2]!=6)break a;f=J[b+8>>2];d=J[f+12>>2];b:{if((d|0)<=0)break b;while(1){d=(c+80|0)+(e<<3)|0;if(J[Mc(f,e,c+112|0,0)>>2]-3>>>0>=4294967294)g=J[c+112>>2]==1?+J[c+120>>2]:O[c+120>> -3];else g=0;O[d>>3]=g;uc(c+112|0);f=J[b+8>>2];d=J[f+12>>2];if(e>>>0>2)break b;e=e+1|0;if((d|0)>(e|0))continue;break}}c:{d:switch(d-1|0){case 0:a=J[a+40>>2];O[c>>3]=O[c+80>>3];Xc(a,814362,c);break c;case 2:a=J[a+40>>2];O[c+32>>3]=O[c+96>>3];O[c+16>>3]=O[c+80>>3];O[c+24>>3]=O[c+88>>3];Xc(a,814674,c+16|0);break c;case 3:break d;default:break a}a=J[a+40>>2];O[c- -64>>3]=O[c+96>>3];O[c+72>>3]=O[c+104>>3];O[c+48>>3]=O[c+80>>3];O[c+56>>3]=O[c+88>>3];Xc(a,814979,c+48|0)}h=1}bc=c+128|0;return h}function eFa(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;h=J[b+44>>2];i=J[b+24>>2];if(h>>>0>>0){J[b+44>>2]=i;h=i}m=-1;n=-1;o=f&24;a:{if(!o|(e|0)==1&(o|0)==24)break a;if(h){j=h-(H[b+43|0]<0?J[b+32>>2]:b+32|0)>>2;k=j>>31}b:{c:switch(e|0){case 1:if(f&8){g=J[b+12>>2]-J[b+8>>2]>>2;l=g>>31;break b}g=i-J[b+20>>2]>>2;l=g>>31;break b;case 0:break b;case 2:break c;default:break a}g=j;l=k}d=d+l|0;c=c+g|0;d=g>>>0>c>>>0?d+1|0:d;if((d|0)<0|(c>>>0>j>>>0&(d|0)>=(k|0)|(d|0)>(k|0)))break a; -e=f&8;d:{if(!(c|d))break d;if(J[b+12>>2]?0:e)break a;if(!(f&16))break d;if(!i)break a}if(e){J[b+16>>2]=h;J[b+12>>2]=J[b+8>>2]+(c<<2)}if(f&16)J[b+24>>2]=J[b+20>>2]+(c<<2);m=c;n=d}J[a+8>>2]=m;J[a+12>>2]=n;J[a>>2]=0;J[a+4>>2]=0}function msb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+2308>>2];a:{if(!e)break a;c=J[a+2312>>2];b=J[a+2316>>2];a=J[a+2300>>2];if(K[a+56|0]){while(1){d=L[c+4>>1];g=L[c>>1];f=L[c+2>>1];if(!(!((g|0)!=L[a+838>>1]|(f|0)!=L[a+840>>1])&(d|0)==L[a+842>>1]))I[b+6>>1]=65535;I[b+4>> -1]=d;I[b+2>>1]=f;I[b>>1]=g;b=b+8|0;c=c+6|0;h=h+1|0;if((h|0)!=(e|0))continue;break}break a}if((e|0)!=1){f=e&-2;a=0;while(1){d=L[c>>1]|L[c+2>>1]<<16;I[b+4>>1]=L[c+4>>1];I[b>>1]=d;I[b+2>>1]=d>>>16;I[b+6>>1]=65535;d=L[c+6>>1]|L[c+8>>1]<<16;I[b+12>>1]=L[c+10>>1];I[b+8>>1]=d;I[b+10>>1]=d>>>16;I[b+14>>1]=65535;b=b+16|0;c=c+12|0;a=a+2|0;if((f|0)!=(a|0))continue;break}}if(!(e&1))break a;a=L[c>>1]|L[c+2>>1]<<16;I[b+4>>1]=L[c+4>>1];I[b>>1]=a;I[b+2>>1]=a>>>16;I[b+6>>1]=65535}return 0}function lja(a){a=a|0;var b= -0,c=0,d=0;c=bc-16|0;bc=c;J[a+652>>2]=515;b=J[a+584>>2];a:{b:{c:{d:{e:{d=L[a+90>>1];switch(d-32844|0){case 0:break d;case 1:break e;default:break c}}if(!FQ(a))break b;if(L[a+88>>1]==34677){J[a+540>>2]=583;a=1;f:switch(J[b>>2]){case 0:J[b+20>>2]=584;break a;case 1:J[b+20>>2]=585;break a;case 3:break f;default:break a}J[b+20>>2]=586;break a}J[a+540>>2]=587;a=1;g:switch(J[b>>2]){case 0:J[b+20>>2]=588;break a;case 1:J[b+20>>2]=589;break a;case 3:break g;default:break a}J[b+20>>2]=590;break a}if(!nQ(a))break b; -J[a+540>>2]=591;a=1;h:switch(J[b>>2]){case 0:J[b+20>>2]=592;break a;case 3:break h;default:break a}J[b+20>>2]=593;break a}b=J[a>>2];a=J[a+628>>2];J[c+4>>2]=73862;J[c>>2]=d;Nc(a,b,73035,c)}a=0}bc=c+16|0;return a|0}function hrb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-1|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];h=g+3|0;a=j?(j|0)==(l|0)?d:b:c;a:{if(a>>>0<2){g=h;break a}i=a-1|0;k=i&3;b:{if(a-2>>>0<3){a=g;break b}m=i&-4;i=0;a=g;while(1){H[h| -0]=K[f|0];H[a+4|0]=K[f+1|0];H[a+5|0]=K[f+2|0];H[h+3|0]=K[f|0];H[h+4|0]=K[f+1|0];H[h+5|0]=K[f+2|0];H[h+6|0]=K[f|0];H[h+7|0]=K[f+1|0];H[h+8|0]=K[f+2|0];H[h+9|0]=K[f|0];H[h+10|0]=K[f+1|0];H[h+11|0]=K[f+2|0];a=h+9|0;h=h+12|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;g=h;if(!k)break a;while(1){h=g;H[h|0]=K[f|0];H[a+4|0]=K[f+1|0];H[a+5|0]=K[f+2|0];g=h+3|0;a=h;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=f+3|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function eyb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0, -e=0;a:{if(K[a+17|0]<33){e=J[a+12>>2];b:{c:{if(M[b>>2]<=256){b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break c}if((Uc(c,e&255)|0)!=-1)break c;break b}b=-1;if(wh(c,e))break b}b=-1;d=J[c+8>>2];if(d&7)break b;a=a+16|0;e=K[a|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1; -d:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break d}if((Uc(c,e)|0)==-1)break b}b=C9(c,H[a|0]&1,a)?-1:0}return b|0}fa(209346,207960,689,209382);B()}J[c+8>>2]=d|4;return-1}function Z2a(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;f=K[b+11|0];d=f<<24>>24<0;f=d?J[b+4>>2]:f;j=d?J[b>>2]:b;e=K[a+11|0];d=e<<24>>24<0;e=d?J[a+4>>2]:e;i=d?J[a>>2]:a;d=0;while(1){a:{if(f){g=(e<<2)+i|0;e=(d<<2)+i|0;d=g-e>>2;if((f|0)>(d|0))break a;h=J[j>>2];while(1){d=(d-f|0)+1|0;if(!d)break a; -d=og(e,h,d);if(!d)break a;if(gd(d,j,f)){e=d+4|0;d=g-e>>2;if((f|0)<=(d|0))continue;break a}break}if((d|0)==(g|0))break a;d=d-i>>2}if((d|0)==-1)break a;f=K[b+11|0];h=f<<24>>24<0?J[b+4>>2]:f;f=K[c+11|0];e=f<<24>>24<0;EE(a,d,h,e?J[c>>2]:c,e?J[c+4>>2]:f);f=K[b+11|0];e=f<<24>>24<0;f=e?J[b+4>>2]:f;j=e?J[b>>2]:b;e=K[a+11|0];g=e<<24>>24<0;i=g?J[a>>2]:a;h=d;d=K[c+11|0];d=h+(d<<24>>24<0?J[c+4>>2]:d)|0;e=g?J[a+4>>2]:e;if(d>>>0<=e>>>0)continue}break}}function n4(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;a:{if(b>>>0>c>>>0)break a;f=J[a+12>>2];if(f>>>0<=d>>>0|e>>>0>=f>>>0)break a;g=J[a+8>>2];f=J[g+(d<<3)>>2];g=J[g+(e<<3)>>2];b:{if((f|0)<=(g|0)){i=g;g=f;f=e;e=d;break b}i=f;f=d}d=J[a+4>>2];f=f<<3;h=J[d+f>>2];k=f;f=J[a>>2];l=J[k+f>>2];n=h-l|0;e=e<<3;j=J[e+d>>2];m=J[e+f>>2];o=j-m|0;if(!((g|0)==(i|0)|(h|0)==(j|0))){k=i-g|0;e=h-j|0;i=0;while(1){h=b<<3;f=J[h+J[a>>2]>>2];c:{if((f|0)<=(m|0)){f=f+o|0;break c}if((f|0)>=(l|0)){f=f+n|0;break c}if(!(i&255))p=td(e,k);f=Pc(J[h+J[a+8>>2]>>2]-g|0,p)+j|0; -d=J[a+4>>2];i=1}J[d+h>>2]=f;b=b+1|0;if(c>>>0>=b>>>0)continue;break}break a}while(1){a=b<<3;e=J[a+f>>2];J[a+d>>2]=(e|0)>(m|0)?(e|0)<(l|0)?j:e+n|0:e+o|0;b=b+1|0;if(c>>>0>=b>>>0)continue;break}}}function zV(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d=J[a+708>>2];switch(d|0){case 0:break a;case 1:break c;default:break b}}Ld(a,c);return}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break a;Yc(a,67557);Ld(a,c);return}d=J[a+200>>2];if(d&1){if(d&4)J[a+200>>2]=d|8;rd(a,J[a+740>>2]);d=gg(a,c+1|0);J[a+740>>2]=d;if(!d){Yc(a, -67615);return}qg(a,d,c);pe(a,d,c);e=Ld(a,0);d=J[a+740>>2];if(e){rd(a,d);J[a+740>>2]=0;return}f=c+d|0;H[f|0]=0;c=d;while(1){e=c;c=c+1|0;if(K[e|0])continue;break}c=gg(a,28);if(!c){Yc(a,67647);rd(a,J[a+740>>2]);J[a+740>>2]=0;return}J[c+24>>2]=0;J[c+4>>2]=d;J[c>>2]=-1;J[c+16>>2]=0;J[c+20>>2]=0;d=((e|0)!=(f|0))+e|0;J[c+8>>2]=d;g=c,h=Qc(d),J[g+12>>2]=h;b=CG(a,b,c);rd(a,J[a+740>>2]);J[a+740>>2]=0;rd(a,c);if(b)Yc(a,67687);return}Ad(a,67590);B()}function vu(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{if(b>>> -0<32){if(c>>>b|0)break b;c:{if(b){f=b-1|0;while(1){if(!(K[a+16|0]&2))break a;g=b;b=J[a+8>>2];d=b-1|0;J[a+8>>2]=d;d:{if((b|0)<=0){h=J[a+4>>2];e=h<<8&65280;b=(e|0)==65280?6:7;J[a+8>>2]=b;J[a+4>>2]=(c>>>f&1)<>2];i=J[b+8>>2];if(i&7)break c;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=i|4;return-1}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=h;break d}d=-1;if((Uc(b,e>>>8|0)|0)!=-1)break d;break c}J[a+ -4>>2]=J[a+4>>2]|(c>>>f&1)<>>0>1)continue;break}}d=0}return d}fa(204019,202110,218,212119);B()}fa(204349,202110,220,212119);B()}fa(203247,202110,225,212119);B()}function ru(a,b,c,d){var e=0,f=0;a:{if(!c){c=0;break a}c=J[a+512>>2];if(c)break a;c=J[a+528>>2]}b:{c:{d:{e:{c=d?J[a+544>>2]:c;if(!c)break e;c=J[c+88>>2];if(!c)break e;if(K[c+49|0])break b;e=.45455;if(K[c+59|0])break c;if(!K[c+57|0])break e;e=+M[c+1104>>2]/1E5;break d}f:{if(!b)break f;e=.45455;if(K[a+310|0])break c;if(!K[a+ -308|0])break f;e=+M[a+2192>>2]/1E5;break d}e=O[a+104>>3]}if(!(e>0))break b}e=O[a+88>>3]/(e*O[a+96>>3]);if(e!=O[a+960>>3]){H[a+704|0]=0;c=1;while(1){b=a+c|0;f=We(+(c|0)/255,e)*255+.5;g:{if(f<4294967296&f>=0){d=~~f>>>0;break g}d=0}H[b+704|0]=d;b=c+1|0;if((b|0)!=256){d=a+b|0;f=We(+(b|0)/255,e)*255+.5;h:{if(f<4294967296&f>=0){b=~~f>>>0;break h}b=0}H[d+704|0]=b;c=c+2|0;continue}break}O[a+960>>3]=e}J[a+976>>2]=1270}return 0}function Wp(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=(+(b|0)+16)/116;f=h+ +(d|0)/ --200;e=We(f,3);i=(e>.008856?e:f/7.787)*108.883/100;j=i*1.057;f=+(c|0)/500+h;e=We(f,3);g=(e>.008856?e:f/7.787)*95.047/100;e=We(h,3);f=(e>.008856?e:h/7.787)*100/100;e=g*.0557+f*-.204;h=i*.0415+(g*-.9689+f*1.8758);f=i*-.4986+(g*3.2406+f*-1.5372);a:{if(f>.0031308){g=We(f,.4166666666666667)*1.055+-.055;break a}g=f*12.92}e=j+e;b:{if(h>.0031308){f=We(h,.4166666666666667)*1.055+-.055;break b}f=h*12.92}c:{if(e>.0031308){e=We(e,.4166666666666667)*1.055+-.055;break c}e=e*12.92}b=a<<24;g=g*256;d:{if(R(g)<2147483648){a= -~~g;break d}a=-2147483648}b=b|a<<16;f=f*256;e:{if(R(f)<2147483648){a=~~f;break e}a=-2147483648}a=b|a<<8;e=e*256;if(R(e)<2147483648)return a|~~e;return a|-2147483648}function SF(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;e=bc-16|0;bc=e;a:{if(!b|J[a+8>>2]!=J[b+8>>2]|J[a+28>>2]!=J[b+28>>2])break a;J[e+8>>2]=-755914244;J[e+12>>2]=1062232653;if(!J2(a+32|0,b+32|0,e+8|0,0)|J[a+12>>2]!=J[b+12>>2]|(J[a+16>>2]!=J[b+16>>2]|J[a+20>>2]!=J[b+20>>2]))break a;if(J[a+24>>2]!=J[b+24>>2]|O[a+112>>3]!=O[b+ -112>>3])break a;f=a+36|0;d=K[f+11|0];g=d<<24>>24;h=b+36|0;c=K[h+11|0];g=(g|0)<0;d=g?J[f+4>>2]:d;i=c;c=c<<24>>24<0;if((d|0)==((c?J[h+4>>2]:i)|0))if(d)c=gd(g?J[f>>2]:f,c?J[h>>2]:h,d);else c=0;else c=1;if(c|J[a+48>>2]!=J[b+48>>2]|(J[a+52>>2]!=J[b+52>>2]|J[a+56>>2]!=J[b+56>>2]))break a;if(N[a+60>>2]!=N[b+60>>2]|N[a- -64>>2]!=N[b- -64>>2]|N[a+68>>2]!=N[b+68>>2])break a;j=N[a+72>>2]==N[b+72>>2]}bc=e+16|0;return j|0}function Rx(a){var b=0,c=0,d=0,e=0,f=0,g=0;if(a){b=J[a+32>>2];if(b){qc(b);J[a+32>>2]=0}b= -J[a+28>>2];if(b){qc(b);J[a+28>>2]=0}b=J[a+36>>2];a:{if(!b)break a;c=J[b+1456>>2];if(c){qc(c);J[b+1456>>2]=0;b=J[a+36>>2]}c=J[b+1872>>2];if(c){qc(c);J[b+1872>>2]=0;b=J[a+36>>2];if(!b)break a}qc(b);J[a+36>>2]=0}c=J[a+44>>2];if(c){b=J[c+88>>2];b:{if(!b)break b;if((P(J[c+52>>2],J[c+48>>2])|0)>0){while(1){b=J[c+88>>2];d=P(e,1876);f=b+d|0;g=J[f+1456>>2];if(g){qc(g);J[f+1456>>2]=0;b=J[c+88>>2]}b=b+d|0;d=J[b+1872>>2];if(d){qc(d);J[b+1872>>2]=0}e=e+1|0;if((e|0)<(P(J[c+52>>2],J[c+48>>2])|0))continue;break}b= -J[c+88>>2];if(!b)break b}qc(b);J[c+88>>2]=0}b=J[c+68>>2];if(b){qc(b);J[c+68>>2]=0}b=J[c+56>>2];if(b){qc(b);J[c+56>>2]=0}b=J[c+44>>2];if(b)qc(b);qc(c)}qc(a)}}function zRa(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;d=O[b+24>>3];c=J[b+24>>2];e=O[b+40>>3];j=J[b+40>>2];f=O[b+56>>3];k=J[b+56>>2];g=O[b+72>>3];l=J[b+72>>2];h=O[b+88>>3];m=J[b+88>>2];n=J[b+16>>2];o=J[b+32>>2];p=J[b+48>>2];q=J[b+64>>2];r=J[b+80>>2];i=O[b+8>>3];s=J[b+8>>2];t=J[b>>2];b=J[a+ -28>>2];J[b+616>>2]=0;J[b+620>>2]=0;J[b+624>>2]=0;J[b+628>>2]=0;i=(t|0)==1?+(s|0):i;O[b+504>>3]=i;h=(r|0)==1?+(m|0):h;O[b+544>>3]=h;g=(q|0)==1?+(l|0):g;O[b+536>>3]=g;f=(p|0)==1?+(k|0):f;O[b+528>>3]=f;e=(o|0)==1?+(j|0):e;O[b+520>>3]=e;d=(n|0)==1?+(c|0):d;O[b+512>>3]=d;O[b+608>>3]=d*0+f*0+h;O[b+600>>3]=i*0+e*0+g;c=J[a+8>>2];gc[J[J[c>>2]+160>>2]](c,b);b=J[a+8>>2];gc[J[J[b>>2]+184>>2]](b,J[a+28>>2]);J[a+32>>2]=1}function wGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=bc-16|0;bc=f;J[a>>2]=2364020;e=rc(16); -J[e>>2]=b;J[e+12>>2]=0;d=J[J[b>>2]+52>>2];J[695492]=0;d=$(d|0,b|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;J[e+4>>2]=d;J[695492]=0;d=pa(1619)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[J[b>>2]+24>>2];J[695492]=0;b=$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[J[d>>2]+24>>2];J[695492]=0;da(c|0,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[e+4>>2];c=J[J[b>>2]+68>>2];J[695492]=0;da(c|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[f+12>>2]=16;b=J[J[d>> -2]+20>>2];J[695492]=0;da(b|0,d|0,f+12|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[e+8>>2]=0;J[a+4>>2]=e;bc=f+16|0;return a|0}a=Z()|0;qc(e);ba(a|0);B()}function kL(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;g=c-b|0;e=g>>2;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>2>>>0){f=J[a+4>>2]-d|0;h=f>>2;if(e>>>0>h>>>0){Zc(d,b,f);d=J[a+4>>2];b=(h<<2)+b|0;if((c|0)!=(b|0))while(1){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=e>>>16;H[d+3|0]=e>>>24;d=d+4|0;b=b+4| -0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=Zc(d,b,g)+(e<<2)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;qc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=1073741824)break a;d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d>>>0>=1073741824)break a;e=d<<2;d=rc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-4&-4)+4|0;d=tc(d,c,b)+b|0}J[a+4>>2]=d;return}_j(a);B()}function bmb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=bc-32|0;bc=b;a:{b:{c:{d:{e=J[689330];e:{if(e){c= -Qc(a);if(c>>>0>=2147483632)break a;f:{if(c>>>0<=10){H[b+31|0]=c;d=b+20|0;break f}f=(c|15)+1|0;d=rc(f);J[b+28>>2]=f|-2147483648;J[b+20>>2]=d;J[b+24>>2]=c}g=tc(d,a,c)+c|0,h=0,H[g|0]=h;J[695492]=0;a=b+8|0;c=H[b+31|0];d=(c|0)<0;ca(1618,a|0,(d?J[b+20>>2]:b+20|0)|0,(d?J[b+24>>2]:c&255)|0);c=J[695492];J[695492]=0;if((c|0)==1)break d;c=J[J[e>>2]+24>>2];J[695492]=0;c=aa(c|0,e|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break c;if(H[b+19|0]<0)qc(J[b+8>>2]);if(H[b+31|0]<0)qc(J[b+20>>2]);a=1;if(c)break e}a= -0}bc=b+32|0;return a|0}a=Z()|0;break b}a=Z()|0;if(H[b+19|0]>=0)break b;qc(J[b+8>>2])}if(H[b+31|0]<0)qc(J[b+20>>2]);ba(a|0);B()}Id(b+20|0);B()}function PR(a){var b=Q(0),c=0,d=0,e=0,f=0;f=bc-16|0;bc=f;e=(C(a),v(2));c=e&2147483647;a:{if(c>>>0<=1061752794){b=Q(1);if(c>>>0<964689920)break a;b=Ml(+a);break a}if(c>>>0<=1081824209){if(c>>>0>=1075235812){b=Q(-Ml(((e|0)<0?3.141592653589793:-3.141592653589793)+ +a));break a}d=+a;if((e|0)<0){b=Ll(d+1.5707963267948966);break a}b=Ll(1.5707963267948966-d);break a}if(c>>> -0<=1088565717){if(c>>>0>=1085271520){b=Ml(((e|0)<0?6.283185307179586:-6.283185307179586)+ +a);break a}if((e|0)<0){b=Ll(-4.71238898038469-+a);break a}b=Ll(+a+-4.71238898038469);break a}b=Q(a-a);if(c>>>0>=2139095040)break a;c=QR(a,f+8|0);d=O[f+8>>3];b:switch(c&3){case 0:b=Ml(d);break a;case 1:b=Ll(-d);break a;case 2:b=Q(-Ml(d));break a;default:break b}b=Ll(d)}a=b;bc=f+16|0;return a}function Hpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a; -if(K[a+289|0])break a;if((c|0)!=1){Dc(a,1028,0,0);return 1028}if(K[a+305|0]){g=K[d|0];b:{if(K[a+114|0]){c=gc[J[a+152>>2]](36)|0;if(!c){Dc(a,1,0,0);c=1;break b}J[c+4>>2]=1042;J[c>>2]=1043;f=J[a+700>>2];c:{if(f){J[f+8>>2]=c;break c}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;H[c+28|0]=g;c=E8(a,c);if(c)break b}c=0}d:{if(c)break d;c=0;if(!K[a+112|0])break d;c=gc[J[b+4>> -2]](a,b,e)|0;if(c)break d;H[J[e>>2]+32|0]=K[d|0];c=0}return c|0}Dc(a,1069,0,0);return 1069}Dc(a,1029,0,0);return 1029}function AK(a,b){var c=0,d=0,e=0,f=0,g=0;g=a;c=K[b|0];a:{if(!c)break a;while(1){e=f;b=b+1|0;b:{c:{d:{e:{f:{g:{if(c<<24>>24<0)break g;f=1;h:{d=K[(c&255)+734960|0];switch(d|0){case 2:break b;case 0:break g;case 1:break h;default:break e}}if(e&255)break b;f=0;e=K[b|0];d=e<<24>>24;if((d|0)<0)break b;if((K[e+734960|0]-1&255)>>>0<=1)break f;break b}d=K[b|0]}if(!(d&255))break a;while(1){b= -b+1|0;i:{j:{if(d<<24>>24<0)break j;f=0;k:{c=K[(d&255)+734960|0];switch(c|0){case 0:break j;case 1:break k;case 2:break d;default:break b}}e=K[b|0];c=e<<24>>24;if((c|0)<0)break c;if((K[e+734960|0]-1&255)>>>0<=1)break i;break c}c=K[b|0]}d=c;if(c&255)continue;break}break a}f=0;c=d;break b}f=1}c=d}H[g|0]=c;g=g+1|0;c=K[b|0];if(c)continue;break}}H[g|0]=0;return a}function P4(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a|a>>>0>=b>>>0)break a;g=a+1|0;d=H[a|0];a=0;e=52;b:{while(1){f=a+e|0;c=f&-2;c=(K[c+268162| -0]<<8|K[c+268163|0])+268160|0;h=K[c|0]&127;if((h|0)==(d|0))break b;c=f>>1;f=(d|0)>(h|0);a=f?c+1|0:a;e=f?e:c;if((a|0)<(e|0))continue;break}return 0}c:{if(b>>>0<=g>>>0){d=K[c|0];break c}d=K[c|0];while(1){a=K[c+1|0];e=a&127;h=d<<24>>24;f=K[g|0];d=a<<24>>24;d:{e:{if((h|0)<0){if((e|0)!=(f|0))break e;c=c+1|0;break d}if(!e)break a;a=(((d|0)>=0?1:3)+c|0)+1|0;while(1){c=(K[a+1|0]|K[a|0]<<8)+268160|0;d=K[c|0];if((f|0)==(d&127))break d;a=a+2|0;c=(e|0)>1;e=e-1|0;if(c)continue;break}break a}return 0}g=g+1|0;if((g| -0)!=(b|0))continue;break}}if(d<<24>>24<0|H[c+1|0]>=0)break a;return K[c+3|0]|K[c+2|0]<<8}return 0}function Zx(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[b+8>>2];d=d-i|0;g=J[b+4>>2];c=c-g|0;h=J[a+36>>2];if(h){if(!(H[a|0]&1))qc(h);J[a+36>>2]=0;J[a+40>>2]=0}h=J[a+28>>2];if(h){qc(h);J[a+28>>2]=0}f=(((i^-1)+f|0)-d|0)+1|0;J[a+32>>2]=f;J[a+24>>2]=(((g^-1)+e|0)-c|0)+1;J[a+20>>2]=f;J[a>>2]=J[a>>2]|1;l=a,m=zc(f<<2),J[l+28>>2]=m;e=J[a+20>>2];a:{if((e|0)<=0)break a;f=0;if((e|0)!=1){h=e&-2;i=0;while(1){g= -f<<2;j=c<<2;k=d<<2;J[g+J[a+28>>2]>>2]=j+J[k+(g+J[b+28>>2]|0)>>2];g=g|4;J[g+J[a+28>>2]>>2]=J[(g+J[b+28>>2]|0)+k>>2]+j;f=f+2|0;i=i+2|0;if((h|0)!=(i|0))continue;break}}if(!(e&1))break a;f=f<<2;J[f+J[a+28>>2]>>2]=J[(f+J[b+28>>2]|0)+(d<<2)>>2]+(c<<2)}c=c+J[b+4>>2]|0;J[a+4>>2]=c;b=J[b+8>>2];J[a+12>>2]=c+J[a+24>>2];b=b+d|0;J[a+8>>2]=b;J[a+16>>2]=b+e}function J0(a){var b=0,c=0,d=0;b=bc-65808|0;bc=b;J[b+44>>2]=0;J[b+48>>2]=0;a:{if(!a){O0(b+8|0);break a}J[b+48>>2]=J[a+40>>2];c=J[a+36>>2];J[b+40>>2]=J[a+32>> -2];J[b+44>>2]=c;c=J[a+28>>2];J[b+32>>2]=J[a+24>>2];J[b+36>>2]=c;c=J[a+20>>2];J[b+24>>2]=J[a+16>>2];J[b+28>>2]=c;c=J[a+12>>2];J[b+16>>2]=J[a+8>>2];J[b+20>>2]=c;c=J[a+4>>2];J[b+8>>2]=J[a>>2];J[b+12>>2]=c}c=J[b+36>>2];a=J[b+8>>2];if(!a)a=J[b+40>>2];c=gc[a|0](c,0,11)|0;J[b+52>>2]=c;b:{if(!c){a=0;break b}a=0;c=Dp(b+8|0,c);J[b+128>>2]=0;J[b+64>>2]=0;J[b+65776>>2]=c;J[b+65780>>2]=fc;J[b+56>>2]=0;J[b+60>>2]=0;d=zc(65800);c=b+65792|0;J[c>>2]=0;J[c+4>>2]=0;J[b+65784>>2]=0;J[b+65788>>2]=0;if(!d){gc[J[b+28>> -2]](J[b+36>>2],J[b+52>>2])|0;break b}J[b+65800>>2]=0;a=tc(d,b+8|0,65800)}bc=b+65808|0;return a}function Fjb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;b=Qc(c);f=b+18|0;a:{b:{if((b|0)<=-18){a=6;if(f)break a;a=0;break b}a=J[a>>2];a=gc[J[a+4>>2]](a,f)|0;if(!a)return 64;wc(a,0,f)}f=tc(a,c,b);b=f+b|0;a=K[242286]|K[242287]<<8;H[b+16|0]=a;H[b+17|0]=a>>>8;a=K[242282]|K[242283]<<8|(K[242284]<<16|K[242285]<<24);c=K[242278]|K[242279]<<8|(K[242280]<<16|K[242281]<<24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]= -c>>>16;H[b+11|0]=c>>>24;H[b+12|0]=a;H[b+13|0]=a>>>8;H[b+14|0]=a>>>16;H[b+15|0]=a>>>24;a=K[242274]|K[242275]<<8|(K[242276]<<16|K[242277]<<24);c=K[242270]|K[242271]<<8|(K[242272]<<16|K[242273]<<24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=a;H[b+5|0]=a>>>8;H[b+6|0]=a>>>16;H[b+7|0]=a>>>24;J[d>>2]=f;J[e>>2]=0;a=0}return a|0}function MV(a,b,c){var d=0,e=0,f=0;d=bc-528|0;bc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Yc(a,66611);Ld(a,c);break a}if(!(e&2)){Yc(a,66635);Ld(a,c);break a}if(!(!b| -!(K[b+8|0]&64))){Yc(a,66660);Ld(a,c);break a}if(!(L[a+392>>1]<<1==(c|0)&c>>>0<=512)){Yc(a,66681);Ld(a,c);break a}if(c>>>0>=2){c=c>>>1|0;e=c>>>0<=1?1:c;c=0;while(1){f=d+14|0;qg(a,f,2);pe(a,f,2);f=K[d+14|0]|K[d+15|0]<<8;I[(d+16|0)+(c<<1)>>1]=f<<8|f>>>8;c=c+1|0;if((e|0)!=(c|0))continue;break}}if(Ld(a,0))break a;e=d+16|0;b:{if(!a|!b)break b;if((L[b+20>>1]-257&65535)>>>0<=65279){Yc(a,60927);break b}fp(a,b,8,0);c=gg(a,512);J[a+596>>2]=c;if(c){a=L[b+20>>1];if(a)tc(c,e,a<<1);J[b+124>>2]=c;J[b+8>>2]=J[b+8>> -2]|64;J[b+184>>2]=J[b+184>>2]|8;break b}Yc(a,61144)}}bc=d+528|0;return}Ad(a,66586);B()}function iV(a,b){var c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;J[a+16>>2]=0;J[a+20>>2]=J[682146];c=a+16|0;a:{d=J[b+16>>2];b:{c:{if(d){f=J[J[d>>2]+28>>2];J[695492]=0;ca(f|0,e+12|0,d|0,1);d=J[695492];J[695492]=0;if((d|0)!=1)break c;a=Z()|0;break b}J[e+12>>2]=0}J[695492]=0;aa(4993,c|0,e+12|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){c=J[e+12>> -2];J[e+12>>2]=0;if(!c)break a;J[695492]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[695492];J[695492]=0;if((f|0)!=1){if(d)break a;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a}ea(0)|0;yc();B()}a=Z()|0;vc(e+12|0)}sc(c);ba(a|0);B()}c=J[a+16>>2];J[a+20>>2]=J[(c?c+12|0:2728584)>>2];J[a+24>>2]=J[b+24>>2];bc=e+16|0;return a}function ah(a,b,c){var d=0,e=0,f=0,g=0;e=K[b|0];g=e&1;f=J[a+20>>2];d=(f+c>>>2|0)+24576|0;d=c>>>0>d>>>0?d:c;c=J[a+24>>2];if(d>>>0>c>>>0){e=c;c=65536-d|0;J[a+24>>2]=e+c;J[a+ -20>>2]=c+f;H[b|0]=K[(K[b|0]+a|0)+2348|0];c=J[a+20>>2];a:{if(c>>>0>=65280){b=H[((c&255)+a|0)+2604|0]+8|0;break a}b=H[((c>>>8|0)+a|0)+2604|0]}J[a+20>>2]=c<>2]>>>d|J[a+24>>2]<>2]=c;if(d>>>0<=15){gv(a);c=J[a+24>>2]}J[a+28>>2]=c>>>0>=32767?32767:c;return!g}if(M[((e<<2)+a|0)+1068>>2]<=f>>>0){H[b|0]=K[(a+e|0)+2092|0];c=J[a+24>>2]}J[a+20>>2]=d<<1&65534;b=K[a+18|0]-1|0;H[a+18|0]=b;b=b&255;c=J[a+36>>2]>>>b&1|c<<1&65534;J[a+24>> -2]=c;if(b>>>0<=15){gv(a);c=J[a+24>>2]}J[a+28>>2]=c>>>0>=32767?32767:c;return g}function Wg(){var a=0,b=0,c=0,d=0,e=0,f=0;if(K[2782204])return J[695550];c=bc-32|0;bc=c;a:{b:{while(1){b=c+8|0;d=My(a,1<>2]=d;if((d|0)==-1)break b;a=a+1|0;if((a|0)!=6)continue;break}a=2454520;if(!Wc(b,2454520,24))break a;a=2454544;if(!Wc(b,2454544,24))break a;a=0;if(!K[2782032]){while(1){e=(a<<2)+2781984|0,f=My(a,39181),J[e>>2]=f;a=a+1|0;if((a|0)!=6)continue;break}H[2782032]=1;J[695502]= -J[695496]}a=2781984;b=c+8|0;if(!Wc(b,2781984,24))break a;a=2782008;if(!Wc(b,2782008,24))break a;a=zc(24);if(!a)break b;b=J[c+12>>2];J[a>>2]=J[c+8>>2];J[a+4>>2]=b;b=J[c+28>>2];J[a+16>>2]=J[c+24>>2];J[a+20>>2]=b;b=J[c+20>>2];J[a+8>>2]=J[c+16>>2];J[a+12>>2]=b;break a}a=0}bc=c+32|0;H[2782204]=1;J[695550]=a;return a|0}function Vra(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=bc-16|0;bc=f;g=rc(68);J[695492]=0;h=uT(g);i=J[695492];J[695492]=0;a:{b:{c:{d:{if((i|0)!=1){J[h+64>>2]=0;J[h+56>>2]= -0;J[h+60>>2]=0;J[h>>2]=2415608;J[a>>2]=0;md(a,h);g=J[c>>2];if(g){J[695492]=0;J[g+4>>2]=J[g+4>>2]+1;e=J[695492];J[695492]=0;if((e|0)==1)break d;e=J[c>>2]}J[695492]=0;J[f+12>>2]=e;ia(5500,h|0,b|0,f+12|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[f+12>>2]=0;e:{if(!e)break e;J[695492]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(a)break e;J[695492]=0;_(4987,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=f+16|0;return}a=Z()|0;qc(g);ba(a|0);B()}b=Z()|0;break b}b= -Z()|0;vc(f+12|0)}vc(a);ba(b|0);B()}ea(0)|0;yc();B()}function SH(a,b,c){var d=0,e=0,f=0;a:{d=J[a>>2];if(!d)break a;e=J[a+12>>2];b:{c:{if(!e)break c;f=J[a+4>>2];d:{if(f){e=gc[f|0](J[d>>2],b)|0;break d}if(b>>>0>>0)break c;e=b>>>0>e>>>0?-1:0}if(!e)break b}Pq(a,0,b,a,0,0);if(J[a+8>>2]){dI(a);Pq(a,0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}e=0;d=J[a>>2];if(!d)break a;d=J[d>>2];e=J[a+4>>2];e:{if(e){e=gc[e|0](d,b)|0;break e}e=1;if(b>>>0>>0)break a;e=b>>>0>d>>>0?-1:0}if(e)break a;a=J[a>>2];J[a+4>> -2]=c;J[a>>2]=b;return 1}d=zc(16);if(d){J[d+4>>2]=c;J[d>>2]=b;b=J[a>>2];f:{if(!b){J[d+8>>2]=0;b=d+12|0;break f}if((e|0)<0){J[d+8>>2]=b;J[d+12>>2]=J[b+12>>2];b=b+12|0;break f}J[d+12>>2]=b;J[d+8>>2]=J[b+8>>2];b=b+8|0}J[b>>2]=0;J[a+12>>2]=0;J[a>>2]=d;J[a+20>>2]=J[a+20>>2]+1;a=1}else a=0;return a}function Cd(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=-1;a:{if(!a)break a;e=J[a>>2];if(!e)break a;g=J[a+12>>2];if(!g)break a;h=J[a+16>>2];if(!h)break a;c=J[e+16>>2];if(!c)break a;if(!J[c+32>>2]){b=J[c+8>>2];if(!((b| -0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;f=0;b=J[c+20>>2];d=J[c+4>>2];if(!((b|0)==(d|0)|d>>>0>2147483646)){J[c+20>>2]=d;b=d}if(b>>>0>(h-g|0)+250>>>0)break a}if(!J[e+4>>2])return 0;f=DB(e,250);b=0;c=J[J[a>>2]+16>>2];if(!(!c|J[c+32>>2]))b=J[c>>2];d=J[a+12>>2];if((d|0)!=(b|0)){J[a+12>>2]=b;J[a+16>>2]=(J[a+16>>2]-d|0)+b}b=0;if(!(J[c+32>>2]|!c)){b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;d=J[c+20>>2];b=J[c+4>>2];if((d|0)==(b|0)|b>>>0>2147483646)b=d;else J[c+20>>2]=b;b=b+J[c>> -2]|0}J[a+20>>2]=b}return f}function vyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+16>>2]>>>2|0;J[a+20>>2]=c;c=zc(c<<3);J[a+24>>2]=c;a:{if(!c)break a;if(!J[a+20>>2])return 0;b:{while(1){f=J[a+24>>2]+(e<<3)|0;if(Lg(b,f))break a;c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;c=J[b+28>>2];J[b+28>>2]=c-1;c:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break c}c=jd(b,1);if((c|0)==-1)break a}H[f+4|0]=c;c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d| -0)>=0&(d|0)<=J[b+60>>2])break b;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break d}c=jd(b,1);if((c|0)==-1)break a}H[f+5|0]=c;e=e+1|0;if(e>>>0>2])continue;break}return 0}J[b+8>>2]=c|4}return-1}function SC(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+52>>2];c=K[a+32|0];a:{b:{c:{if(c)break c;d=J[a+24>>2];if(d>>>0>=M[a+28>>2])break c;if(M[a+56>>2]>2])break b}if(M[a+56>>2]>=M[a+60>>2]){b=b+1|0;J[a+52>>2]=b;e=-1;if(b>>>0>16)break a;J[a+ -60>>2]=M[a+40>>2]>b>>>0?(1<>2]+1|0}if(c){J[a+60>>2]=256;J[a+52>>2]=9;H[a+32|0]=0;b=9}e=-1;if(J[a+4>>2])break a;d=0;c=XL(J[a+164>>2],a+8|0,b);J[a+24>>2]=0;f=c<<3;J[a+28>>2]=f;J[a+36>>2]=c+J[a+36>>2];g=J[a+52>>2];J[a+4>>2]=g>>>0>c>>>0;if(f>>>0<=g>>>0)break a;J[a+28>>2]=(f|1)-g;if(!c)break a}J[a+24>>2]=b+d;g=(d>>>3|0)+a|0;c=g+8|0;f=d&7;e=K[c|0]>>>f|0;d=8-f|0;a=b-d|0;if(a>>>0<8)b=g+9|0;else{a=a-8|0;e=K[c+1|0]<>2];k=J[a+16>>2];l=K[a+40|0];m=J[a+12>>2];f=J[a+4>>2];J[695492]=0;f=za(18,e|0,k|0,f|0,h|0,32,f<<2,(m^-1)>>>31|0,!l|0)|0;h=J[695492];J[695492]=0;a:{b:{if((h|0)==1)break b;if(f){c:{if((d|0)!=3)break c;i=O[a+32>>3];if(i==-1)break c;J[695492]=0;j=Q(i);N[e+344>>2]=j>Q(0)?j:Q(0);a=J[695492];J[695492]=0;if((a|0)==1)break b}J[695492]=0;n=ha(23,e|0,b|0,c|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)== -1)break b}J[e>>2]=1032;J[695492]=0;$(13,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;J[695492]=0;$(14,e|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;bc=g+976|0;return n|0}a=Z()|0;mj(e);ba(a|0);B()}ea(0)|0;yc();B()}function qhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=bc-16|0;bc=e;a:{if(J[a+4>>2])break a;d=6;b:{if(J[a+12>>2]!=1)break b;g=J[a>>2];c=J[a+28>>2];if(c)J[(J[a+36>>2]+(c<<4)|0)-4>>2]=b;h=c+1|0;d=J[a+32>>2];c:{if(h>>>0<=d>>>0){f=J[a+36>>2];break c}J[e+8>>2]=0;i=(c&-8)+8| -0;f=Sc(g,16,d,i,J[a+36>>2],e+8|0);J[a+36>>2]=f;d=J[e+8>>2];if(d)break b;J[a+32>>2]=i}J[((h<<4)+f|0)-16>>2]=0;J[((c<<4)+f|0)+12>>2]=0;J[a+28>>2]=h;c=J[a- -64>>2];if(c)J[(J[a+72>>2]+(c<<4)|0)-4>>2]=b;f=c+1|0;b=J[a+68>>2];d:{if(f>>>0<=b>>>0){b=J[a+72>>2];break d}J[e+12>>2]=0;d=g;g=(c&-8)+8|0;b=Sc(d,16,b,g,J[a+72>>2],e+12|0);J[a+72>>2]=b;d=J[e+12>>2];if(d)break b;J[a+68>>2]=g}J[((f<<4)+b|0)-16>>2]=0;J[((c<<4)+b|0)+12>>2]=0;J[a+64>>2]=f;break a}J[a+4>>2]=d}bc=e+16|0}function lT(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0;c=bc-16|0;bc=c;a=Ql(a);J[a>>2]=2426772;J[695492]=0;da(6071,c+4|0,b|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){b=J[c+4>>2];c:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[c+12>>2]=0}J[695492]=0;aa(4993,a+8|0,c+12|0)|0;b=J[695492];J[695492]=0;d:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break d;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break d;J[695492]=0;_(4987,b|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break d}ea(0)|0;yc();B()}b=Z()|0;vc(c+12|0);break b}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2728584)>>2];sc(c+4|0);bc=c+16|0;return a|0}b=Z()|0;break a}sc(c+4|0)}ud(a);ba(b|0);B()}function gpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{b:{c:{f=1029;d:{if(!K[a+285|0]|!K[a+288|0])break d;f=1028;if(c&3|c>>>0<4)break d;if(!K[a+112|0])break b;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break a;b=c>>>2|0;J[J[e>>2]+32>>2]=b;f=gc[J[a+152>>2]](c)|0;if(f)break c;f=1}Dc(a,f,0,0);return f| -0}J[J[e>>2]+36>>2]=f;if((b|0)!=1){e=b&1073741822;b=0;while(1){a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[f+4>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);f=f+8|0;d=d+8|0;b=b+2|0;if((e|0)!=(b|0))continue;break}}if(!(c&4))break b;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}f=0}return f|0}function cN(a,b,c,d,e,f){var g=0,h=0,i=0;a:{b:{if(c){g= -P(c,5)>>>2|0;J[e>>2]=g;g=gc[J[a+152>>2]](g)|0;J[d>>2]=g;if(!g)break a;i=c>>>1|0;while(1){g=Kw(a+2340|0,J[a+2396>>2],J[a+2400>>2],J[a+2404>>2],J[a+2408>>2],J[a+2412>>2],212824);c:{if(g){Dc(a,5,g,0);break c}H[a+2421|0]=1}J[a+2352>>2]=J[d>>2];J[a+2356>>2]=J[e>>2];J[a+2340>>2]=b;J[a+2344>>2]=c;h=Ak(a+2340|0,4);g=10;d:{if((h|0)==-5|J[a+2344>>2])break d;g=0;if(h>>>0<2)break d;Dc(a,5,h,0);g=5}J[f>>2]=J[a+2360>>2];h=go(a+2340|0);e:{if(h){Dc(a,5,h,0);break e}H[a+2421|0]=0}if((g|0)!=10)break b;g=J[d>>2];if(g)gc[J[a+ -156>>2]](g,J[e>>2]);g=J[e>>2]+i|0;J[e>>2]=g;g=gc[J[a+152>>2]](g)|0;J[d>>2]=g;if(g)continue;break}Dc(a,1,0,0);return 1}J[d>>2]=0;J[e>>2]=0;J[f>>2]=0}return g}Dc(a,1,0,0);return 1}function kBa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=bc-16|0;bc=f;J[a+8>>2]=0;J[a>>2]=2388868;J[a+4>>2]=0;J[a+12>>2]=J[682146];g=a+8|0;a:{b=J[b>>2];b:{c:{if(b){h=J[J[b>>2]+28>>2];J[695492]=0;ca(h|0,f+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[f+12>>2]=0}J[695492]=0;aa(4993, -g|0,f+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[f+12>>2];J[f+12>>2]=0;if(!b)break a;J[695492]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;h=J[695492];J[695492]=0;if((h|0)!=1){if(g)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}b=Z()|0;vc(f+12|0)}sc(g);ed(a);ba(b|0);B()}b=J[a+8>>2];b=J[(b?b+12|0:2728584)>>2];J[a+24>>2]=e;J[a+20>>2]=d;H[a+16|0]=c;J[a+12>>2]=b;bc=f+16|0;return a|0}function X_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=bc-32|0;bc=f; -a:{if(H[b+11|0]>=0){J[f+24>>2]=J[b+8>>2];g=J[b+4>>2];J[f+16>>2]=J[b>>2];J[f+20>>2]=g;break a}Re(f+16|0,J[b>>2],J[b+4>>2])}b:{c:{d:{e:{if(H[c+11|0]>=0){J[f+8>>2]=J[c+8>>2];b=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=b;break e}b=J[c+4>>2];c=J[c>>2];J[695492]=0;ca(15,f|0,c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break d}a=J[a>>2];J[695492]=0;a=ja(3030,(H[f+27|0]<0?J[f+16>>2]:f+16|0)|0,(H[f+11|0]<0?J[f>>2]:f)|0,a|0,d|0,(e|0)>0|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;if(H[f+11|0]<0)qc(J[f>>2]); -if(H[f+27|0]<0)qc(J[f+16>>2]);bc=f+32|0;return(a|0)!=0|0}b=Z()|0;break b}b=Z()|0;if(H[f+11|0]>=0)break b;qc(J[f>>2])}if(H[f+27|0]<0)qc(J[f+16>>2]);ba(b|0);B()}function Ih(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){a:{if(!a)break a;b=J[a+20>>2];if(!b)break a;c=J[a+16>>2];e=bc-16|0;bc=e;J[e+12>>2]=0;f=b-c|0;b=J[694755];b:{if(b){d=e+12|0;while(1){if((c|0)==J[b>>2])break b;if(d)J[d>>2]=b;b=J[b+36>>2];if(b)continue;break}}b=0}c:{if(!(b?f:0)){c=-28;break c}if(J[b+4>>2]!=(f|0)){c=-28;break c}d=J[e+12>>2];J[(d? -d+36|0:2779020)>>2]=J[b+36>>2];d=J[b+16>>2];if(!(d&32)){c=Wb(c|0,f|0,J[b+32>>2],d|0,J[b+12>>2],J[b+24>>2],J[b+28>>2])|0;if(c)break c}if(J[b+8>>2])qc(J[b>>2]);c=0;if(K[b+16|0]&32)break c;qc(b)}bc=e+16|0;b=c;if(b>>>0>=4294963201)J[694731]=0-b;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0}if(K[a+12|0]){Gf(a);return}J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=-1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}}function tR(a){var b=0,c=0,d=0,e=0;e=bc-16|0;bc=e;d=(C(a),v(2));c=d&2147483647;a:{if(c>>>0<=1061752794){if(c>>> -0<964689920)break a;a=Ll(+a);break a}if(c>>>0<=1081824209){b=+a;if(c>>>0<=1075235811){if((d|0)<0){a=Q(-Ml(b+1.5707963267948966));break a}a=Ml(b+-1.5707963267948966);break a}a=Ll(-(((d|0)>=0?-3.141592653589793:3.141592653589793)+b));break a}if(c>>>0<=1088565717){if(c>>>0<=1085271519){b=+a;if((d|0)<0){a=Ml(b+4.71238898038469);break a}a=Q(-Ml(b+-4.71238898038469));break a}a=Ll(((d|0)<0?6.283185307179586:-6.283185307179586)+ +a);break a}if(c>>>0>=2139095040){a=Q(a-a);break a}c=QR(a,e+8|0);b=O[e+8>>3]; -b:switch(c&3){case 0:a=Ll(b);break a;case 1:a=Ml(b);break a;case 2:a=Ll(-b);break a;default:break b}a=Q(-Ml(b))}bc=e+16|0;return a}function tG(a){var b=0,c=0,d=0;Hg(a+40|0,0,4);b=J[a+152>>2];if(b){qc(b);J[a+152>>2]=0}b=J[a+156>>2];if(b){qc(b);J[a+156>>2]=0}b=J[a+160>>2];if(b){qc(b);J[a+160>>2]=0}b=J[a+172>>2];if(b){qc(b);J[a+172>>2]=0}b=J[a+200>>2];if(b){qc(b);J[a+200>>2]=0}b=J[a+232>>2];if(b){qc(b);J[a+232>>2]=0}b=J[a+212>>2];if(b){qc(b);J[a+212>>2]=0}b=J[a+216>>2];if(b){qc(b);J[a+216>>2]=0}b=J[a+ -220>>2];if(b){qc(b);J[a+220>>2]=0}b=J[a+224>>2];if(b){qc(b);J[a+224>>2]=0}b=J[a+184>>2];if(b){qc(b);J[a+184>>2]=0}b=J[a+188>>2];if(b){qc(b);J[a+188>>2]=0}J[a+44>>2]=J[a+44>>2]&-385;c=J[a+236>>2];if((c|0)>0){b=0;while(1){d=J[(J[a+240>>2]+P(b,12)|0)+8>>2];if(d){qc(d);c=J[a+236>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}J[a+236>>2]=0;b=J[a+240>>2];if(b){qc(b);J[a+240>>2]=0}}function sGa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;c=bc-32|0;bc=c;gc[J[J[a>>2]+16>>2]](a);e=c+28|0;J[e>>2]=0;d=J[J[a+ -4>>2]+8>>2];J[c+4>>2]=0;H[c+15|0]=0;f=J[J[d>>2]+12>>2];J[695492]=0;g=f;f=c+16|0;ca(g|0,f|0,d|0,c+4|0);d=J[695492];J[695492]=0;a:{b:{c:{d:{if((d|0)!=1){J[695492]=0;b=ma(4738,e|0,b|0,f|0,0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;if(H[c+27|0]<0)qc(J[c+16>>2]);if(H[c+15|0]<0)qc(J[c+4>>2]);if(!b){d=rc(72);e=J[J[a+4>>2]+4>>2];J[695492]=0;e=aa(4739,d|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;a=J[a+4>>2];J[a+12>>2]=e;lW(e,J[a+8>>2])}bc=c+32|0;return!b|0}a=Z()|0;break c}a=Z()|0;if(H[c+ -27|0]>=0)break c;qc(J[c+16>>2])}if(H[c+15|0]>=0)break a;qc(J[c+4>>2]);ba(a|0);B()}a=Z()|0;qc(d)}ba(a|0);B()}function nn(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(c-37>>>0<4294967261)break a;d=J[a>>2];if(d>>>0>=b>>>0)break a;b:{c:{g=K[d|0];switch(g-43|0){case 0:case 2:break c;default:break b}}d=d+1|0;if((d|0)==(b|0))break a;k=(g|0)==45;switch(K[d|0]-43|0){case 0:case 2:break a;default:break b}}h=2147483647/(c>>>0)|0;if(b>>>0>d>>>0){l=P(c,h)^2147483647;d:{while(1){g=e;e:{e=K[d|0];switch(e| -0){case 0:case 9:case 10:case 12:case 13:case 32:break d;default:break e}}if(e<<24>>24<0)break d;i=H[e+261792|0];if((i|0)<0|(c|0)<=(i|0))break d;e=1;j=f;f:{if((f|0)>(h|0))break f;if((f|0)==(h|0)){j=h;if((i|0)>(l|0))break f}e=g;j=i+P(c,f)|0}f=j;d=d+1|0;if((d|0)!=(b|0))continue;break}g=e;d=b}e=g&255?2147483647:f}J[a>>2]=d;f=k?0-e|0:e}return f}function TOa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fZ(a,b);J[c>>2]=2206428;a=J[b+184>>2];J[c+184>>2]=a;J[695492]=0;a=aa(3376,a|0,272)|0;d=J[695492];J[695492]= -0;a:{if((d|0)==1)break a;J[c+180>>2]=a;tc(a,J[b+180>>2],P(J[c+184>>2],272));a=J[b+192>>2];J[c+192>>2]=a;J[695492]=0;a=aa(3376,P(a,3)|0,4)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[c+188>>2]=a;tc(a,J[b+188>>2],P(J[c+192>>2],12));J[c+324>>2]=J[b+324>>2];a=J[b+328>>2];J[c+328>>2]=a;b:{if((a|0)>0){a=0;while(1){d=a<<2;e=J[(d+b|0)+196>>2];f=J[J[e>>2]+8>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[(c+d|0)+196>>2]=e;a=a+1|0;if((a|0)>2])continue;break}}return c| -0}}b=Z()|0;J[c>>2]=2206348;a=J[c+8>>2];if(a)gc[J[J[a>>2]+4>>2]](a);ba(b|0);B()}function GF(a,b){var c=0,d=0,e=0,f=0,g=0;e=b<<1;if(e){c=a;while(1){d=K[c+3|0];H[c+3|0]=K[c|0];H[c|0]=d;d=K[c+2|0];H[c+2|0]=K[c+1|0];H[c+1|0]=d;d=K[c+7|0];H[c+7|0]=K[c+4|0];H[c+4|0]=d;d=K[c+6|0];H[c+6|0]=K[c+5|0];H[c+5|0]=d;c=c+8|0;e=e-2|0;if(e)continue;break}}a:{if(!b)break a;d=b&3;b:{if(!d){c=b;break b}e=0;c=b;while(1){f=a,g=Izb(J[a>>2],J[a+4>>2],32),J[f>>2]=g;J[a+4>>2]=fc;a=a+8|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue; -break}}if(b>>>0<4)break a;while(1){f=a,g=Izb(J[a>>2],J[a+4>>2],32),J[f>>2]=g;J[a+4>>2]=fc;f=a,g=Izb(J[a+8>>2],J[a+12>>2],32),J[f+8>>2]=g;J[a+12>>2]=fc;f=a,g=Izb(J[a+16>>2],J[a+20>>2],32),J[f+16>>2]=g;J[a+20>>2]=fc;f=a,g=Izb(J[a+24>>2],J[a+28>>2],32),J[f+24>>2]=g;J[a+28>>2]=fc;a=a+32|0;c=c-4|0;if(c)continue;break}}}function gsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a+636>>2]+J[a+616>>2]|0;e=J[a+644>>2];b=J[a+540>>2];if(!b)b=J[J[a+528>>2]+88>>2];a:{b:{if(!K[b+56|0]){b=0;if(J[a+588>>2]>0)break b; -g=1;break a}c=J[a+588>>2];c:{d:{if(L[b+836>>1]){b=0;if((c|0)>0)break d;break a}b=0;if((c|0)>0)break c;break a}c=0;while(1){if(!(b&255)){c=K[d|0];d=d+1|0;b=128}b=b&255;Gr(e,b&c?0:255);e=e+4|0;b=b>>>1|0;f=f+1|0;if((f|0)>2])continue;break}break a}c=0;while(1){if(!(b&255)){c=K[d|0];d=d+1|0;b=128}b=b&255;Gr(e,b&c?-1:0);e=e+4|0;b=b>>>1|0;f=f+1|0;if((f|0)>2])continue;break}break a}while(1){if(!(b&255)){c=K[d|0];d=d+1|0;b=128}b=b&255;Gr(e,b&c?-1:255);e=e+4|0;g=1;b=b>>>1|0;f=f+1|0;if((f| -0)>2])continue;break}}H[a+649|0]=g;return 0}function zz(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a>>2]=0;d=J[682146];J[a+8>>2]=b;J[a+4>>2]=d;a:{b:{if(!c)break b;J[695492]=0;b=aa(5471,b|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;d=aa(5054,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[d>>2];c:{if(!b|!J[b+8>>2])break c;b=J[b+12>>2];d:{if(!(!b|!K[b|0])){if(!K[c|0])break d;if(Ec(b,c))break d;break c}if(!K[c|0])break c}b=J[a+8>>2];J[695492]=0;b=aa(5471,b|0,c|0)|0;c=J[695492]; -J[695492]=0;if((c|0)==1)break a;c=J[d>>2];if(c){c=J[c+12>>2];if(!(!c|!K[c|0])){if(!b|!K[b|0])break b;if(!Ec(c,b))break c;break b}}if(!b)break c;if(K[b|0]?-1:0)break b}J[695492]=0;_(5409,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}return a|0}b=Z()|0;sc(a);ba(b|0);B()}function O_a(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;g=bc-16|0;bc=g;J[695492]=0;J[g+8>>2]=0;J[g+12>>2]=0;da(3033,g+8|0,a|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1)b:{J[695492]=0;h=J[g+8>>2];a=ja(3034,h|0,b|0, -c|0,d|0,e|0,f|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){if(a)break c;if(!h){a=0;break a}J[695492]=0;a=$(3032,h|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}break b}if(!h)break a;J[695492]=0;$(3032,h|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a;ea(0)|0;yc();B()}a=Z()|0;d:{e:{b=J[g+8>>2];if(b){J[695492]=0;$(3032,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e}J[g+8>>2]=0;b=J[g+12>>2];if(b){qc(b);J[g+12>>2]=0}break d}ea(0)|0;yc();B()}ba(a|0);B()}b=J[g+12>>2];if(b)qc(b);bc=g+16|0;return a| -0}function Kza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc+-64|0;bc=d;J[d+56>>2]=0;J[d+60>>2]=J[682146];c=J[c>>2];J[d+4>>2]=J[(c?c+12|0:2728584)>>2];J[d>>2]=b;J[695492]=0;b=d+56|0;ga(5180,b|0,2391315,d|0)|0;c=J[695492];J[695492]=0;a:{b:{c:{if((c|0)!=1){J[695492]=0;c=aa(5114,d+20|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;aa(4991,a|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;J[c+24>>2]=2381060;J[c>>2]=2381028;a=J[c+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+ -4>>2]](a);J[c+28>>2]=0}J[c+16>>2]=2381060;a=J[c+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);J[c+20>>2]=0}sc(c+8|0);sc(d+56|0);bc=d- -64|0;return}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;ud(c)}sc(d+56|0);ba(b|0);B()}function g5(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;J[d>>2]=0;if(!(!(e|f)|(a|0)<655)){o=d;p=(e|0)/2|0;if(f){m=J[g+28>>2];j=J[g+24>>2];k=J[g+20>>2];h=J[g+16>>2];l=J[g+12>>2];i=J[g+8>>2];f=J[g+4>>2];g=J[g>>2];q=d;e=Pc(c+e|0,a);if(S(e)+S(b)>>>0<= -16)c=j<<16;else c=Pc(e,b);d=g<<16;a:{if((c|0)<(d|0)){b=td(f<<16,b);break a}b:{c:{d:{n=i<<16;e:{if((n|0)>(c|0)){c=td(d,b);if((g|0)==(i|0))break e;b=Dd(e-c|0,l-f|0,i-g|0)+td(f<<16,b)|0;break a}f=h<<16;if((c|0)>=(f|0))break d}c=td(n,b);if((h|0)==(i|0)){f=h<<16;break c}b=Dd(e-c|0,k-l|0,h-i|0)+td(l<<16,b)|0;break a}if((c|0)>=j<<16)break b}c=td(f,b);if((h|0)==(j|0))break b;b=Dd(e-c|0,m-k|0,j-h|0)+td(k<<16,b)|0;break a}b=td(m<<16,b)}J[q>>2]=b;a=td(b,a<<1)}else a=0;J[o>>2]=p+a}}function _Qa(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;g=O[b+56>>3];h=J[b+56>>2];e=O[b+40>>3];i=J[b+40>>2];d=O[b+24>>3];j=J[b+24>>2];k=J[b+48>>2];l=J[b+32>>2];m=J[b+16>>2];c=J[a+28>>2];f=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];O[c+600>>3]=f;d=(m|0)==1?+(j|0):d;O[c+608>>3]=d;b=J[c+596>>2];O[b+16>>3]=d;O[b+8>>3]=f;J[b>>2]=1;b=J[a+28>>2];O[b+608>>3]=d;e=f+((l|0)==1?+(i|0):e);O[b+600>>3]=e;ie(J[b+596>>2],e,d);b=J[a+28>>2];d=d+((k|0)==1?+(h|0):g);O[b+608>>3]=d;O[b+600>>3]=e;ie(J[b+596>>2],e,d);b=J[a+28>>2];O[b+ -608>>3]=d;O[b+600>>3]=f;ie(J[b+596>>2],f,d);a=J[a+28>>2];_f(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];c=J[b+12>>2]<<3;O[a+600>>3]=O[(c+J[b>>2]|0)-8>>3];O[a+608>>3]=O[(c+J[b+4>>2]|0)-8>>3]}function NJ(a,b,c){var d=0,e=0,f=0;a:{b:{c:{d:{if((c|0)<0){if(!b|!K[b|0])break d;c=0;d=b;while(1){c=c+1|0;e=K[d+1|0];d=d+1|0;if(e)continue;break}}if(!b)break d;if(c)break c}if(!a)return 0;d=a;while(1){b=d;d=b+1|0;if(K[b|0])continue;break}d=0;b=b-a|0;if((b|0)<0)break b;c=gc[J[659450]](b+ -1|0)|0;if(!c)break a;a=tc(c,a,b);H[a+b|0]=0;return a}if(!a){a=gc[J[659450]](c+1|0)|0;if(!a)break a;a=tc(a,b,c);H[a+c|0]=0;return a}e=0;if(K[a|0]){d=a;while(1){e=e+1|0;f=K[d+1|0];d=d+1|0;if(f)continue;break}}f=c+e|0;d=gc[J[659447]](f+1|0)|0;if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);b=gc[J[659450]](e+1|0)|0;if(!b)break a;a=tc(b,a,e);H[a+e|0]=0;return a}a=tc(d,a,e);tc(a+e|0,b,c);H[a+f|0]=0}return d}Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);return 0}function E$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f= -0,g=0;f=bc-16|0;bc=f;a:{if(J[d>>2]>0)break a;if(!J[c>>2]){J[c>>2]=544;break a}e=J[a+8>>2];c=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[b+528|0]=g;H[b+529|0]=g>>>8;H[b+530|0]=g>>>16;H[b+531|0]=g>>>24;H[b+532|0]=c;H[b+533|0]=c>>>8;H[b+534|0]=c>>>16;H[b+535|0]=c>>>24;c=K[e+12|0]|K[e+13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);H[b+536|0]=e;H[b+537|0]=e>>>8;H[b+538|0]=e>>>16;H[b+539|0]=e>>>24;H[b+540| -0]=c;H[b+541|0]=c>>>8;H[b+542|0]=c>>>16;H[b+543|0]=c>>>24;H[b+34|0]=1;J[b+8>>2]=b+528;J[f+12>>2]=268;a=z1(J[J[a+8>>2]>>2],b+260|0,f+12|0,d);J[J[b+8>>2]>>2]=a;e=b}bc=f+16|0;return e|0}function sp(a,b){var c=0,d=0,e=0,f=0,g=0;e=bc-32|0;bc=e;a:{if(!b)break a;J[b>>2]=0;if(!a)break a;c=K[a|0];if((c|0)==58)break a;while(1){if(!c){d=0;break a}if((c|0)!=58){d=d+1|0;c=K[d+a|0];continue}break}c=gc[J[659450]](d+1|0)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);J[b>>2]=0;J[e>>2]=2777;Cc(0,0,0,0,0,2,2,3,2777, -0,0,0,32863,e);d=0;break a}c=tc(c,a,d);H[c+d|0]=0;J[b>>2]=c;b:{a=(a+d|0)+1|0;c:{if(!a)break c;d=a;while(1){c=d;d=c+1|0;if(K[c|0])continue;break}c=c-a|0;if((c|0)<0)break c;d=gc[J[659450]](c+1|0)|0;if(d)break b;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[e+16>>2]=2777;d=0;Cc(0,0,0,0,0,2,2,3,2777,0,0,0,32863,e+16|0);a=J[b>>2];if(!a)break a;gc[J[659451]](a);J[b>>2]=0;break a}f=tc(d,a,c)+c|0,g=0,H[f|0]=g}bc=e+32|0;return d}function Ubb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b:{c=J[a+20>>2];switch(c-204|0){case 0:case 3:break a; -default:break b}}d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;gc[J[J[a>>2]>>2]](a)}b=(b|0)<=1?1:b;if(J[J[a+456>>2]+20>>2]){c=J[a+144>>2];b=(b|0)<(c|0)?b:c}J[a+152>>2]=b;if(J[a+20>>2]!=204){gc[J[J[a+440>>2]>>2]](a);J[a+20>>2]=204;J[a+140>>2]=0}c:{if(J[J[a+440>>2]+8>>2]){e=a+140|0;b=J[a+140>>2];while(1){d=J[a+116>>2];if(d>>>0>b>>>0){c=J[a+8>>2];if(c){J[c+8>>2]=d;J[c+4>>2]=b;gc[J[c>>2]](a);b=J[a+140>>2]}d=0;gc[J[J[a+444>>2]+4>>2]](a,0,e,0);c=b;b=J[a+140>>2];if((c|0)!=(b|0))continue;break c}gc[J[J[a+440>>2]+ -4>>2]](a);gc[J[J[a+440>>2]>>2]](a);b=0;J[a+140>>2]=0;if(J[J[a+440>>2]+8>>2])continue;break}}J[a+20>>2]=J[a+68>>2]?206:205;d=1}return d|0}function UOa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=rc(392);J[695492]=0;b=aa(3426,g|0,a|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[b>>2]=2206408;O[b+184>>3]=O[a+184>>3];O[b+192>>3]=O[a+192>>3];O[b+200>>3]=O[a+200>>3];O[b+208>>3]=O[a+208>>3];O[b+216>>3]=O[a+216>>3];O[b+224>>3]=O[a+224>>3];O[b+232>>3]=O[a+232>>3];O[b+240>>3]=O[a+240>>3];c=J[a+376>>2];J[b+376>> -2]=c;b:{if((c|0)>0)while(1){c=d<<2;e=J[(c+a|0)+248>>2];f=J[J[e>>2]+8>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[(b+c|0)+248>>2]=e;d=d+1|0;if((d|0)>2])continue;break}J[b+380>>2]=J[a+380>>2];J[b+384>>2]=J[a+384>>2];return b|0}d=Z()|0;J[b>>2]=2206348;a=J[b+8>>2];if(!a)break a;gc[J[J[a>>2]+4>>2]](a);break a}d=Z()|0}qc(g);ba(d|0);B()}function Amb(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;if(!J[a+72216>>2]){d=1<>2]=e;wc(e, -0,d)}if((b|0)>0){j=-1<>2]+(h&j)|0;e=K[f|0];g=e<<2;d=L[g+2637248>>1];k=f;f=c>>>31|0;a:{b:{if((f|0)==(e>>>0>46|0)){e=L[a+4>>1]-d|0;I[a+4>>1]=e;if(e<<16>>16>=0){if(d>>>0>(e&65535)>>>0){e=d;d=g+2637250|0;break b}J[a>>2]=d+J[a>>2];d=g+2637250|0;break b}J[a>>2]=d+J[a>>2];break a}e=L[a+4>>1]-d|0;c:{if(d>>>0<=(e&65535)>>>0){e=d;break c}J[a>>2]=d+J[a>>2]}d=g+2637251|0}H[k|0]=K[d|0];while(1){e=e<<1;I[a+4>>1]=e;J[a>>2]=J[a>>2]<<1;d=K[a+6|0]-1|0;H[a+6|0]=d;if(!(d&255)){Al(a); -e=L[a+4>>1]}if(e<<16>>16>=0)continue;break}}c=c<<1;h=f|h<<1;i=i+1|0;if((i|0)!=(b|0))continue;break}}}function $Oa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=rc(400);J[695492]=0;b=aa(3426,g|0,a|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[b>>2]=2206368;O[b+184>>3]=O[a+184>>3];O[b+192>>3]=O[a+192>>3];O[b+200>>3]=O[a+200>>3];O[b+208>>3]=O[a+208>>3];O[b+216>>3]=O[a+216>>3];O[b+224>>3]=O[a+224>>3];O[b+232>>3]=O[a+232>>3];O[b+240>>3]=O[a+240>>3];O[b+248>>3]=O[a+248>>3];O[b+256>>3]=O[a+256>>3];c=J[a+392>> -2];J[b+392>>2]=c;b:{if((c|0)>0)while(1){c=d<<2;e=J[(c+a|0)+264>>2];f=J[J[e>>2]+8>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[(b+c|0)+264>>2]=e;d=d+1|0;if((d|0)>2])continue;break}return b|0}d=Z()|0;J[b>>2]=2206348;a=J[b+8>>2];if(!a)break a;gc[J[J[a>>2]+4>>2]](a);break a}d=Z()|0}qc(g);ba(d|0);B()}function gK(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+124>>2];a:{if(!J[a+65708>>2])break a;if(!b){b=0;break a}c=a+65752|0;while(1){b=J[a+65756>>2];e=J[a+65744>>2];f=a+d| -0;e=J[b+(((e^K[f+164|0])&255)<<2)>>2]^e>>>8;J[a+65744>>2]=e;e=P(J[a+65748>>2]+(e&255)|0,134775813)+1|0;J[a+65748>>2]=e;g=b;b=J[c>>2];J[c>>2]=J[g+((b&255^e>>>24)<<2)>>2]^b>>>8;H[f+164|0]=K[f+164|0]^P(b|2,b&65533^3)>>>8;b=J[a+124>>2];d=d+1|0;if(b>>>0>d>>>0)continue;break}}e=gc[J[a+8>>2]](J[a+28>>2],J[a+44>>2],a+164|0,b)|0;f=J[a+72>>2];J[a+72>>2]=0;b=J[a+124>>2];J[a+124>>2]=0;c=a+65736|0;d=c;g=J[c>>2];f=g+f|0;c=J[c+4>>2];J[d>>2]=f;J[d+4>>2]=f>>>0>>0?c+1|0:c;a=a+65728|0;c=a;d=J[a>>2];a=J[a+4>>2];d= -b+d|0;a=d>>>0>>0?a+1|0:a;J[c>>2]=d;J[c+4>>2]=a;return(b|0)!=(e|0)?-1:0}function aL(a,b,c){var d=0,e=0;if(K[a+96|0]){H[a+96|0]=0;J[a+64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1172>>2]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}if(!(!K[a+1160|0]|J[a+1172>>2]!=2))Fe(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);c=c*256;c=c+(c<0?-.5:.5); -a:{if(R(c)<2147483648){d=~~c;break a}d=-2147483648}J[a+1168>>2]=d;b=b*256;b=b+(b<0?-.5:.5);b:{if(R(b)<2147483648){e=~~b;break b}e=-2147483648}J[a+1164>>2]=e;J[a+120>>2]=d;J[a+116>>2]=e;if(K[a+128|0])J[a+124>>2]=(J[a+112>>2]<(d|0))<<1|J[a+108>>2]<(e|0)|(J[a+100>>2]>(e|0))<<2|(J[a+104>>2]>(d|0))<<3;J[a+1172>>2]=1}function Sx(a,b){var c=0,d=0,e=0;a:{b:{c:{if(K[a+16|0]&2){if(b>>>0>=64)break c;c=J[a+8>>2];d:{e:{f:{if(!c){c=7;if(K[a+4|0]==255)break f;break e}if(c>>>0>7)break d;b=b>>>7-c|0}if(vu(a,c,b))break d; -b=J[a+8>>2];if((b|0)>7)break d;if((b|0)<0)break b}c=K[a+4|0];if((c|0)==255)break a;b=J[a+12>>2];d=J[b+8>>2];if(d&7)break d;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;return}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)<=0){if((Uc(b,c)|0)!=-1)break g;break d}J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c}J[a+8>>2]=8;J[a+4>>2]=J[a+4>>2]<<8&65280}return}fa(205478,202110,396,212163);B()}fa(205757,202110,402,212163);B()}fa(205988,202110,428,212163);B()}fa(206135, -202110,429,212163);B()}function zt(a,b){var c=0,d=0,e=0;e=bc-32|0;bc=e;c=-1;a:{if(!b)break a;b:{c:{if(J[689531]){d=J[a+36>>2];d:{if(!d)break d;c=J[d+4>>2];if(!c)break d;d=J[d+28>>2];J[e+16>>2]=c;J[e+20>>2]=d;gc[J[659549]](J[689514],29787,e+16|0)}d=J[a+40>>2];J[e+4>>2]=J[b+16>>2];J[e>>2]=d+1;gc[J[659549]](J[689514],32180,e);break c}if(a)break c;d=-1;break b}e:{d=J[a+40>>2];c=J[a+44>>2];f:{if((d|0)<(c|0)){c=J[a+48>>2];break f}J[a+44>>2]=c<<1;c=gc[J[659452]](J[a+48>>2],c<<3)|0;J[a+48>>2]=c;if(!c)break e; -d=J[a+40>>2]}J[(d<<2)+c>>2]=b;J[a+40>>2]=d+1;J[a+36>>2]=b;break b}ke(a,0);dh(b);J[a+44>>2]=J[a+44>>2]/2;d=-1}c=-1;if(J[a+172>>2]==-1)break a;g:{if(J[a+292>>2])break g;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break g;Hd(a)}c=d}bc=e+32|0;return c}function k7a(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;a:{if((d|0)<=0)break a;f=J[a+480>>2];e=J[f+48>>2];l=J[a+112>>2];if(l){a=J[f+24>>2];m=J[a+8>>2];n=J[a+4>>2];o=J[a>>2];while(1){a=e<<6;p=a+J[f+60>> -2]|0;q=a+J[f+56>>2]|0;r=a+J[f+52>>2]|0;a=g<<2;h=J[a+c>>2];a=J[a+b>>2];i=0;j=l;while(1){k=i<<2;H[h|0]=(K[K[a+1|0]+(J[q+k>>2]+n|0)|0]+K[K[a|0]+(J[k+r>>2]+o|0)|0]|0)+K[K[a+2|0]+(J[k+p>>2]+m|0)|0];h=h+1|0;a=a+3|0;i=i+1&15;j=j-1|0;if(j)continue;break}e=e+1&15;J[f+48>>2]=e;g=g+1|0;if((g|0)!=(d|0))continue;break}break a}if(d>>>0>=8){b=d&-8;a=0;while(1){e=e+8&15;a=a+8|0;if((b|0)!=(a|0))continue;break}}b=d&7;if(b){a=0;while(1){e=e+1&15;a=a+1|0;if((b|0)!=(a|0))continue;break}}J[f+48>>2]=e}}function fsb(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];g=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{c:{if(K[d+56|0]){if((b|0)>0)break c;break a}if((b|0)>0)break b;j=1;break a}b=0;while(1){if(!b){i=K[f|0];e=6;f=f+1|0;b=192}c=(b&i)>>>e|0;h=0;d:{if((c|0)==L[d+836>>1])break d;c=c-1|0;h=255;if((c&255)>>>0>2)break d;h=P(c&255,1431655680)+1431655935|0}Gr(g,h);e=e-2|0;g=g+4|0;b=(b&252)>>>2|0;k=k+1|0;if((k|0)>2])continue;break}break a}b=0;d=0;while(1){if(!b){d= -K[f|0];e=6;f=f+1|0;b=192}c=((b&d)>>>e|0)-1&255;Gr(g,c>>>0>=3?255:P(c,1431655680)+1431655935|0);e=e-2|0;g=g+4|0;b=(b&252)>>>2|0;j=1;i=i+1|0;if((i|0)>2])continue;break}}H[a+649|0]=j;return 0}function Zc(a,b,c){var d=0,e=0;a:{if((a|0)==(b|0))break a;e=a+c|0;if(b-e>>>0<=0-(c<<1)>>>0)return tc(a,b,c);d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c)break a;H[d|0]=K[b|0];b=b+1|0;c=c-1|0;d=d+1|0;if(d&3)continue;break}break c}d:{if(d)break d;if(e&3)while(1){if(!c)break a; -c=c-1|0;d=c+a|0;H[d|0]=K[b+c|0];if(d&3)continue;break}if(c>>>0<=3)break d;while(1){c=c-4|0;J[c+a>>2]=J[b+c>>2];if(c>>>0>3)continue;break}}if(!c)break a;while(1){c=c-1|0;H[c+a|0]=K[b+c|0];if(c)continue;break}break a}if(c>>>0<=3)break b;while(1){J[d>>2]=J[b>>2];b=b+4|0;d=d+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a;while(1){H[d|0]=K[b|0];d=d+1|0;b=b+1|0;c=c-1|0;if(c)continue;break}}return a}function UZ(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[J[a>>2]>>2];if(!c)break c;c=J[c>>2];if(!c)break c; -if(rg(c,b))break c;f=J[J[a>>2]>>2];break b}d=J[a+4>>2];if((d|0)<2)break a;c=1;while(1){d:{e=J[J[a>>2]+(c<<2)>>2];e:{if(!e)break e;e=J[e>>2];if(!e)break e;if(!rg(e,b))break d;d=J[a+4>>2]}g=g+1|0;c=c+1|0;if((d|0)>(c|0))continue;break a}break}f=J[J[a>>2]+(c<<2)>>2];d=c&3;if(d){b=0;while(1){e=J[a>>2]+(c<<2)|0;J[e>>2]=J[e-4>>2];c=c-1|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}if(g>>>0>=3)while(1){b=c<<2;d=b+J[a>>2]|0;J[d>>2]=J[d-4>>2];d=b+J[a>>2]|0;J[d-4>>2]=J[d-8>>2];d=b+J[a>>2]|0;J[d-8>>2]=J[d-12>>2]; -b=b+J[a>>2]|0;J[b-12>>2]=J[b-16>>2];b=(c|0)>4;c=c-4|0;if(b)continue;break}J[J[a>>2]>>2]=f}J[f+24>>2]=J[f+24>>2]+1}return f}function Fi(a,b){var c=0,d=0,e=0,f=0;c=zc(68);if(!c)return 0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+60>>2]=0;J[c+64>>2]=-1;J[c>>2]=11;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;d=zc(8208);J[c+12>>2]=d;a:{if(d){f=J[c+4>>2]|8;e=8192;break a}d=c+32|0;J[c+12>>2]=d;f=J[c+4>>2];e=1}J[c+28>>2]=0;J[c+20>>2]=e;J[c+52>>2]=2627240;d=d+16|0;J[c+24>>2]= -d;J[c+16>>2]=d;J[c+4>>2]=f|2;d=zc(24);if(!d){b:{if(!(K[c+4|0]&8))break b;a=J[c+12>>2];if(!a)break b;qc(a);J[c+12>>2]=0}qc(c);return 0}J[c+56>>2]=d;e=(b|0)<=0;J[d+16>>2]=e;J[d>>2]=0;J[d+20>>2]=0;e=e?1024:b;J[d+4>>2]=e;c:{d:{if(!a){a=zc(e);J[d+20>>2]=1;J[d>>2]=a;if(a)break d;If(c);return 0}J[d>>2]=a;if((b|0)>0)break c}b=0}J[d+12>>2]=0;J[d+8>>2]=b;return c}function Bta(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=bc-16|0;bc=e;if(c)g=Qc(c);if(d)i=Qc(d);J[a>>2]=0;a:{h=g+i|0;b:{if((h| -0)<=0)break b;f=J[J[b>>2]+8>>2];J[695492]=0;j=f;f=e+12|0;ca(j|0,f|0,b|0,h|0);b=J[695492];J[695492]=0;c:{d:{e:{if((b|0)!=1){J[695492]=0;aa(4993,a|0,f|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break e;b=J[e+12>>2];J[e+12>>2]=0;f:{if(!b)break f;J[695492]=0;h=J[b+4>>2]-1|0;J[b+4>>2]=h;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(h)break f;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a>>2];a=J[b+12>>2];if(!g)break c;ff(a,c);if(!i)break b;qF(J[b+12>>2],d);break b}g=Z()|0;break d}g= -Z()|0;vc(e+12|0)}vc(a);ba(g|0);B()}ff(a,d)}bc=e+16|0;return}ea(0)|0;yc();B()}function iX(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=Q(0),l=0;a:{b:{if(b){j=J[b+40>>2];if(!j)break b;h=P(a,40)+j|0;g=J[h+20>>2];i=g+1|0;l=J[h+28>>2];c:{if(i>>>0<=l>>>0){h=J[h+24>>2];break c}k=Q(Q(l>>>0)+Q(100));d:{if(k=Q(0)){g=~~k>>>0;break d}g=0}J[h+28>>2]=g;i=P(a,40);h=Tg(J[(i+j|0)+24>>2],P(g,24));j=J[b+40>>2];g=i+j|0;if(!h)break a;J[g+24>>2]=h;g=J[g+20>>2];i=g+1|0}b=P(g,24)+h|0;J[b+16>>2]=f;J[b+8>>2]=d;J[b+ -12>>2]=d>>31;I[b>>1]=c;a=P(a,40)+j|0;J[a+20>>2]=i;e:{if((c|0)!=65424)break e;b=J[a+16>>2];if(!b)break e;a=b+P(J[a+12>>2],24)|0;J[a>>2]=d;J[a+4>>2]=e}return 1}fa(2352469,2346358,8195,2357616);B()}fa(2357637,2346358,8196,2357616);B()}qc(J[g+24>>2]);a=i+J[b+40>>2]|0;J[a+28>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;return 0}function eSa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=J[a+28>>2];if(!J[c+492>>2]){c=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];c=gc[J[J[a>>2]+52>> -2]](a)|0}xc(1,c,823542,0);return}if(J[a+32>>2]){d=J[a+8>>2];gc[J[J[d>>2]+156>>2]](d,c);J[a+32>>2]=0;c=J[a+28>>2]}e=O[c+624>>3]-O[c+576>>3];O[c+624>>3]=e;f=O[c+616>>3];O[c+600>>3]=O[c+536>>3]+(O[c+504>>3]*f+e*O[c+520>>3]);O[c+608>>3]=O[c+544>>3]+(f*O[c+512>>3]+e*O[c+528>>3]);d=J[a+8>>2];gc[J[J[d>>2]+184>>2]](d,c);if(J[a+100>>2]){c=J[a+8>>2];gc[J[J[c>>2]+232>>2]](c,J[a+28>>2]);XA(a,J[b+8>>2]);b=J[a+8>>2];gc[J[J[b>>2]+236>>2]](b,J[a+28>>2]);return}b=J[b+8>>2];c=J[a+8>>2];if(gc[J[J[c>>2]+32>>2]](c)|0){a= -J[a+8>>2];gc[J[J[a>>2]+268>>2]](a,J[b>>2])}}function Y1a(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-1136|0;bc=b;J[b+1040>>2]=0;J[b+4>>2]=0;c=K[a+11|0];d=c<<24>>24<0;kr(d?J[a>>2]:a,d?J[a+4>>2]:c,b+1040|0,b+4|0,0);c=Rk(J[b+1040>>2],b+16|0);d=J[b+20>>2];e=J[b+1040>>2];if(e)qc(e);a:{if(!c){c=1;if((d&61440)==16384)break a}c=b+4|0;d=K[a+11|0];e=d<<24>>24<0;lm(c,e?J[a>>2]:a,e?J[a+4>>2]:d,0);J[b>>2]=H[b+15|0]<0?J[b+4>>2]:c;a=b+16|0;Gi(a,1024,4607,b);d=Qc(a)+b|0;c=K[d+15|0];H[d+15|0]=(c|0)!=47?c:0;b:{while(1){c=a+ -1|0;d=K[a+1|0];if((d|0)!=47){a=c;if(d)continue;c=!vF(b+16|0,448);break b}H[c|0]=0;if(!(Rk(b+16|0,b+1040|0)|(J[b+1044>>2]&61440)!=16384)){H[c|0]=47;a=c;continue}d=vF(b+16|0,509);H[c|0]=47;a=c;if(!d)continue;break}c=0}if(H[b+15|0]>=0)break a;qc(J[b+4>>2])}bc=b+1136|0;return c|0}function hra(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;c=bc-16|0;bc=c;if(f>>>0>=2){o=(g|0)/2<<2;g=((e<<2)+b|0)+(h<<2)|0;d=(h<<1)+e<<2;while(1){h=e;while(1){j=K[i+2|0]; -k=K[i+3|0];l=c+12|0;m=c+8|0;n=c+4|0;_d(J[a+68>>2],K[i|0],j,k,l,m,n);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;_d(J[a+68>>2],K[i+1|0],j,k,l,m,n);J[g>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i=i+4|0;g=g+4|0;b=b+4|0;h=h-1|0;if(h)continue;break}i=i+o|0;g=d+g|0;b=b+d|0;f=f-2|0;if(f>>>0>1)continue;break}}if(f)while(1){_d(J[a+68>>2],K[i|0],K[i+2|0],K[i+3|0],c+12|0,c+8|0,c+4|0);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i=i+4|0;b=b+4|0;e=e-1|0;if(e)continue;break}bc= -c+16|0}function Wi(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if((a|0)<=0|(b|0)<=0)break a;f=bd(1,24);if(!f)break a;J[f+4>>2]=b;J[f>>2]=a;h=bd(a,4);if(!h)break a;b:{while(1){c:{g=bd(b,4);J[(e<<2)+h>>2]=g;if(!g)break c;e=e+1|0;if((e|0)!=(a|0))continue;break b}break}return 0}J[f+12>>2]=d;J[f+8>>2]=c;J[f+16>>2]=h;if(!((a|0)<=0|(b|0)<=0)){j=b&-8;i=b&7;g=0;k=b>>>0<8;while(1){c=J[(g<<2)+h>>2];b=0;d=0;if(!k)while(1){e=b<<2;J[e+c>>2]=1;J[c+(e|4)>>2]=1;J[c+(e|8)>>2]=1;J[c+(e|12)>>2]=1;J[c+(e|16)>>2]=1;J[c+ -(e|20)>>2]=1;J[c+(e|24)>>2]=1;J[c+(e|28)>>2]=1;b=b+8|0;d=d+8|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){J[c+(b<<2)>>2]=1;b=b+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}g=g+1|0;if((g|0)!=(a|0))continue;break}}e=f}return e}function gW(a,b,c,d,e){var f=0,g=0,h=0,i=0;if(K[a+206|0]&32){Jw(a+212|0);J[a+204>>2]=J[a+204>>2]&-2097153}J[a+212>>2]=b;J[a+216>>2]=0;h=a+212|0;a:{if(!d)while(1){if(!(J[a+216>>2]|!c)){J[a+216>>2]=c;c=0}b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;b=zk(h,0);d=J[a+272>> -2]-J[a+228>>2]|0;f=(b>>>0<2?(d|0)>0?d:0:0)+f|0;if(!b)continue;break a}while(1){if(!(J[a+216>>2]|!c)){J[a+216>>2]=c;c=0}b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;b=zk(h,0);b:{if(b>>>0>1)break b;g=J[a+272>>2]-J[a+228>>2]|0;if((g|0)<=0)break b;if(e>>>0>f>>>0){i=e-f|0;tc(d+f|0,J[a+268>>2],g>>>0>>0?g:i)}f=f+g|0}if(!b)continue;break}}J[a+216>>2]=0;Jw(h);if((b|0)!=1){c=a;a=J[a+236>>2];AH(c,a?a:(b|0)==-5?68876:(b|0)==-3?68914:68950);f=0}return f}function hR(a,b,c,d){a:switch(b-9|0){case 0:b= -J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];return;case 6:b=J[c>>2];J[c>>2]=b+4;b=I[b>>1];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 7:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=L[b>>1];J[a+4>>2]=0;return;case 8:b=J[c>>2];J[c>>2]=b+4;b=H[b|0];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 9:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=K[b|0];J[a+4>>2]=0;return;case 16:b=J[c>>2]+7&-8;J[c>>2]=b+8;O[a>>3]=O[b>>3];return;case 17:gc[d|0](a,c);default:return;case 1:case 4:case 14:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 2:case 5:case 11:case 15:b= -J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;return;case 3:case 10:case 12:case 13:break a}b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c}function EL(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<44|(K[b|0]!=83|K[b+1|0]!=70))break a;if(K[b+2|0]!=87|K[b+3|0]!=57|(K[b+4|0]!=52|K[b+5|0]!=65))break a;if(K[b+7|0]|K[b+6|0]!=4|(K[b+9|0]|K[b+8|0]!=16))break a;if(K[b+11|0]|K[b+10|0]!=1|(K[b+13|0]|K[b+12|0]!=100))break a;if(K[b+14|0]|K[b+15|0]|(K[b+17|0]|K[b+16|0]!=204))break a;if(K[b+18|0]|K[b+ -19|0]|(K[b+21|0]|K[b+20|0]!=59))break a;if(K[b+22|0]|K[b+23|0]|(K[b+24|0]!=218|K[b+25|0]!=7))break a;if(K[b+26|0]|K[b+27|0]|(K[b+28|0]!=7|K[b+29|0]!=1))break a;if(K[b+30|0]|K[b+31|0]|(K[b+33|0]|K[b+32|0]!=68))break a;if(K[b+34|0]|K[b+35|0]|(K[b+36|0]!=208|K[b+37|0]!=7))break a;if(K[b+38|0]|K[b+39|0]|(K[b+40|0]!=75|K[b+41|0]!=1))break a;if(K[b+42|0]|K[b+43|0])break a;d=1}return d}function jla(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=Q(0),m=Q(0),n=Q(0), -o=Q(0);k=bc-32|0;bc=k;J[k+28>>2]=c;J[f>>2]=0;J[f+4>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[i>>2]=0;J[i+4>>2]=0;c=J[a>>2];if(c){N[k+8>>2]=d;N[k+24>>2]=e;gc[J[J[c>>2]+92>>2]](c,b,k+28|0,k+8|0,k+24|0)|0;a:{b:{c:switch(j|0){case 0:a=J[a>>2];gc[J[J[a>>2]+116>>2]](k+8|0,a);break b;case 1:break c;default:break a}a=J[a>>2];gc[J[J[a>>2]+120>>2]](k+8|0,a)}n=N[k+20>>2];l=N[k+16>>2];o=N[k+12>>2];m=N[k+8>>2]}O[f>>3]=m;O[g>>3]=l;O[h>>3]=Q(o-m);O[i>>3]=Q(n-l);O[f>>3]=O[f>>3]*.35277777777777775;O[g>> -3]=O[g>>3]*.35277777777777775;O[h>>3]=O[h>>3]*.35277777777777775;O[i>>3]=O[i>>3]*.35277777777777775}bc=k+32|0}function _3a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{c=J[a+8>>2];if(!c)break a;d=c;b=J[d+304>>2];e=d+308|0;if((b|0)!=(e|0))while(1){J[b+120>>2]=1;c=J[b+4>>2];b:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break b}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(e|0))continue;break}g=d+316|0;b=J[g>>2];f=d+320|0;if((b|0)!=(f|0))while(1){J[b+120>>2]=1;c=J[b+4>>2];c:{if(c)while(1){b= -c;c=J[b>>2];if(c)continue;break c}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(f|0))continue;break}Xh(d+304|0,J[d+308>>2]);J[d+304>>2]=e;J[d+308>>2]=0;J[d+312>>2]=0;Xh(g,J[d+320>>2]);J[d+316>>2]=f;J[d+320>>2]=0;J[d+324>>2]=0;c=J[a+8>>2];if(!c)break a;gc[J[J[c>>2]+12>>2]](c)|0;J[a+8>>2]=0}}function YTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>2147482623)break a;e=J[a+1040>>2];if((e|0)>(b|0))break a;b:{if((e+1022|0)>=(b|0)){d=e;break b}f=J[a+1044>>2];d=f+e|0;if((d| -0)>(b|0)){d=f+(e-b|0)|0;J[a+1044>>2]=d;f=a+16|0;Zc(f,f+(b-e|0)|0,d);J[a+1040>>2]=b;d=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=d;if((b|0)<=(d|0))break b;while(1){d=0;if((gc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;d=J[a+1040>>2]+1|0;J[a+1040>>2]=d;if((b|0)>(d|0))continue;break}}e=b+2|0;if((e|0)>(J[a+1044>>2]+d|0))while(1){d=0;f=gc[J[a+4>>2]](J[a+8>>2])|0;if((f|0)<0)break a;d=J[a+1044>>2];J[a+1044>>2]=d+1;H[(a+d|0)+16|0]=f;d=J[a+1040>>2];if((e|0)>(d+J[a+1044>>2]|0))continue;break}a=(b-d|0)+a|0;J[c>>2]=K[a+16| -0]<<8|K[a+17|0];d=1}return d|0}function t$(a,b){a:{b:{if(!(a&131072)){c:switch(b-47|0){default:if((b|0)==32)break b;break;case 0:case 15:break b;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break c}a=1;if((b|0)==58|(b&-33)-65>>>0<26|((b|0)==95|b-65536>>>0<917504))break a;if(b-65008>>>0<526|b-63744>>>0<1232|(b-12289>>>0<43007|b-11264>>>0<1008))break a;if((b&-2)==8204|b-8304>>>0<288|(b-895>>>0<7297|b-880>>>0<14))break a;if(b-248>>>0<520|b-192>>> -0<23)break a;if(b-216>>>0>=31)break b;break a}if((b|0)<=255){a=1;if(b-192>>>0<23|(b&-33)-65>>>0<26|(b-216>>>0<31|(b|0)>247))break a;return(b|0)==95|(b|0)==58}a=1;if(km(b,769396)|b-12321>>>0<9|((b|0)==12295|b-19968>>>0<20902))break a}a=0}return a}function sua(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[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=2412864;J[a+4>>2]=0;I[a+12>>1]=c;I[a+10>>1]=c;I[a+8>>1]=b;a:{c=P(c&65535,b&65535);b:{if(!c)break b;J[695492]=0;b=$(27,(g=-1,h=Dzb(c,0,3,0),i=fc,i?g:h)| -0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+16>>2]=b;J[a+20>>2]=b;if(!d)break b;while(1){b=c-1|0;e=J[a+20>>2]+P(b,3)|0;f=K[d|0]|K[d+1|0]<<8;H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=K[d+2|0];e=(c|0)>1;c=b;if(e)continue;break}}return a|0}na(ea(0)|0)|0;b=J[a+20>>2];if(b)qc(b);J[a+16>>2]=0;J[a+20>>2]=0;J[695492]=0;ka(5087);b=J[695492];J[695492]=0;c:{if((b|0)==1){b=Z()|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)!=1)break c;ea(0)|0;yc()}B()}ed(a);ba(b|0);B()}function Fg(a,b,c,d){var e=0,f= -0,g=0,h=0,i=0,j=0;h=J[a+4>>2];g=J[a>>2];f=J[a+16>>2];a:{b:{if(J[f+436>>2]){e=g;break b}if((c|0)>24){i=c;e=g;break a}while(1){if(!h){if(!(gc[J[J[f+24>>2]+12>>2]](f)|0))return 0;e=J[f+24>>2];h=J[e+4>>2];g=J[e>>2]}e=g+1|0;h=h-1|0;c:{i=K[g|0];if((i|0)==255){while(1){if(!h){if(!(gc[J[J[f+24>>2]+12>>2]](f)|0))return 0;e=J[f+24>>2];h=J[e+4>>2];e=J[e>>2]}h=h-1|0;g=K[e|0];i=255;e=e+1|0;if((g|0)==255)continue;break}if(g)break c}b=b<<8|i;j=(c|0)<17;g=e;i=c+8|0;c=i;if(j)continue;break a}break}J[f+436>>2]=g}if((c| -0)>=(d|0)){i=c;break a}if(!J[J[f+464>>2]+36>>2]){d=J[f>>2];J[d+20>>2]=120;gc[J[d+4>>2]](f,-1);J[J[f+464>>2]+36>>2]=1}i=25;b=b<<25-c}J[a+12>>2]=i;J[a+8>>2]=b;J[a+4>>2]=h;J[a>>2]=e;return 1}function zx(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=Q(0),k=Q(0),l=Q(0);f=J[J[e>>2]+12>>2];i=J[c>>2];k=N[f+(i<<2)>>2];e=J[b>>2];j=N[(e<<2)+f>>2];g=J[a>>2];l=N[(g<<2)+f>>2];a:{if(!(j>2]=i;J[c>>2]=e;h=1;g=J[b>>2];i=J[a>>2];if(!(N[(g<<2)+f>>2]>2]))break a;J[a>>2]=g;J[b>>2]=i;e=J[c>> -2];h=2;break a}b:{if(k>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=e;J[b>>2]=g;h=2;e=J[c>>2];if(!(N[(e<<2)+f>>2]>2]=e;J[c>>2]=g}e=g}g=J[d>>2];if(N[(g<<2)+f>>2]>2]){J[c>>2]=g;J[d>>2]=e;d=J[c>>2];e=J[b>>2];if(!(N[(d<<2)+f>>2]>2]))return h+1|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(!(N[(c<<2)+f>>2]>2]))return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function wc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(!c)break a;H[a|0]=b;d=a+c|0; -H[d-1|0]=b;if(c>>>0<3)break a;H[a+2|0]=b;H[a+1|0]=b;H[d-3|0]=b;H[d-2|0]=b;if(c>>>0<7)break a;H[a+3|0]=b;H[d-4|0]=b;if(c>>>0<9)break a;d=0-a&3;e=d+a|0;b=P(b&255,16843009);J[e>>2]=b;d=c-d&-4;c=d+e|0;J[c-4>>2]=b;if(d>>>0<9)break a;J[e+8>>2]=b;J[e+4>>2]=b;J[c-8>>2]=b;J[c-12>>2]=b;if(d>>>0<25)break a;J[e+24>>2]=b;J[e+20>>2]=b;J[e+16>>2]=b;J[e+12>>2]=b;J[c-16>>2]=b;J[c-20>>2]=b;J[c-24>>2]=b;J[c-28>>2]=b;g=e&4|24;c=d-g|0;if(c>>>0<32)break a;d=Dzb(b,0,1,1);f=fc;b=e+g|0;while(1){J[b+24>>2]=d;J[b+28>>2]=f; -J[b+16>>2]=d;J[b+20>>2]=f;J[b+8>>2]=d;J[b+12>>2]=f;J[b>>2]=d;J[b+4>>2]=f;b=b+32|0;c=c-32|0;if(c>>>0>31)continue;break}}return a|0}function rRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if((d|0)<=0)break a;_f(c);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];if(!J[a+100>>2])break a;b=J[J[a+28>>2]+116>>2];b:{if((gc[J[J[b>>2]+12>>2]](b)|0)==10){Rq(a, -0);break b}b=J[a+8>>2];gc[J[J[b>>2]+204>>2]](b,J[a+28>>2])}b=J[J[a+28>>2]+120>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==10){mt(a);break a}b=J[a+8>>2];gc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}}function qRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if((d|0)<=0)break a;_f(c);c=J[b+ -596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];if(!J[a+100>>2])break a;b=J[J[a+28>>2]+116>>2];b:{if((gc[J[J[b>>2]+12>>2]](b)|0)==10){Rq(a,1);break b}b=J[a+8>>2];gc[J[J[b>>2]+208>>2]](b,J[a+28>>2])}b=J[J[a+28>>2]+120>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==10){mt(a);break a}b=J[a+8>>2];gc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>> -2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}}function oTa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=bc-32|0;bc=b;J[b+16>>2]=13;J[b>>2]=13;a:{if(J[Bc(J[a+32>>2],784444,b+16|0,0)>>2]==6){d=J[b+24>>2];if(J[d+12>>2]<=0)break a;jg(d,0,b);b:{if(J[b>>2]!=9)break b;a=J[J[a>>2]+28>>2];d=J[a+8>>2];if((d|0)<=0)break b;e=J[b+12>>2];f=J[b+8>>2];g=J[a>>2];a=0;while(1){c=J[g+(a<<2)>>2];if(!((f|0)!=J[c>>2]|(e|0)!=J[c+4>>2])){c=J[c+8>>2];uc(b);break a}a=a+1|0;if((d|0)!=(a|0))continue; -break}c=0}uc(b);break a}if(J[a+8>>2]!=9)break a;d=J[J[a>>2]+28>>2];e=J[d+8>>2];if((e|0)<=0)break a;f=J[a+16>>2];g=J[a+20>>2];d=J[d>>2];a=0;while(1){c=J[d+(a<<2)>>2];if(!((f|0)!=J[c>>2]|(g|0)!=J[c+4>>2])){c=J[c+8>>2];break a}a=a+1|0;if((e|0)!=(a|0))continue;break}c=0}uc(b+16|0);bc=b+32|0;return c|0}function eL(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;f=K[b+11|0];g=f<<24>>24<0;i=g?J[b>>2]:b;e=K[a+11|0];d=e<<24>>24<0;e=d?J[a+4>>2]:e;h=d?J[a>>2]:a;d=K[c+11|0];k=d<<24>>24<0?J[c+ -4>>2]:d;j=g?J[b+4>>2]:f;f=j;d=0;while(1){a:{if(f){g=(e<<2)+h|0;e=(d<<2)+h|0;d=g-e>>2;if((f|0)>(d|0))break a;l=J[i>>2];while(1){d=(d-f|0)+1|0;if(!d)break a;d=og(e,l,d);if(!d)break a;if(gd(d,i,f)){e=d+4|0;d=g-e>>2;if((f|0)<=(d|0))continue;break a}break}if((d|0)==(g|0))break a;d=d-h>>2}if((d|0)==-1)break a;f=K[c+11|0];e=f<<24>>24<0;EE(a,d,j,e?J[c>>2]:c,e?J[c+4>>2]:f);f=K[b+11|0];e=f<<24>>24<0;f=e?J[b+4>>2]:f;i=e?J[b>>2]:b;e=K[a+11|0];g=e<<24>>24<0;h=g?J[a>>2]:a;d=d+k|0;e=g?J[a+4>>2]:e;if(d>>>0<=e>>> -0)continue}break}}function Ax(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=Q(0),k=Q(0),l=Q(0);f=J[J[e>>2]+16>>2];i=J[c>>2];k=N[f+(i<<2)>>2];e=J[b>>2];j=N[(e<<2)+f>>2];g=J[a>>2];l=N[(g<<2)+f>>2];a:{if(!(j>2]=i;J[c>>2]=e;h=1;g=J[b>>2];i=J[a>>2];if(!(N[(g<<2)+f>>2]>2]))break a;J[a>>2]=g;J[b>>2]=i;e=J[c>>2];h=2;break a}b:{if(k>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=e;J[b>>2]=g;h=2;e=J[c>>2];if(!(N[(e<<2)+f>>2]>2]=e;J[c>>2]=g}e=g}g=J[d>>2];if(N[(g<< -2)+f>>2]>2]){J[c>>2]=g;J[d>>2]=e;d=J[c>>2];e=J[b>>2];if(!(N[(d<<2)+f>>2]>2]))return h+1|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(!(N[(c<<2)+f>>2]>2]))return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function py(a){var b=0,c=0,d=0;c=bc-32|0;bc=c;a:{if(!Jm(a,95472,11)){Nc(J[a+628>>2],73324,73715,0);a=0;break a}b=zc(112);J[a+584>>2]=b;if(!b){b=J[a+628>>2];J[c>>2]=J[a>>2];Nc(b,71242,74185,c);a=0;break a}d=J[a+8>>2];J[b>>2]=d;J[b+48>>2]=J[a+672>>2];J[a+672>>2]= -605;J[b+52>>2]=J[a+668>>2];J[a+668>>2]=606;J[b+56>>2]=J[a+676>>2];J[a+676>>2]=607;J[b+44>>2]=0;J[b+36>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;if(!d)J[a+12>>2]=J[a+12>>2]|256;J[b+80>>2]=0;J[c+16>>2]=608;$d(a,65540,c+16|0);J[J[a+584>>2]+96>>2]=0;J[a+556>>2]=609;J[a+548>>2]=609;J[a+540>>2]=609;J[a+520>>2]=610;J[a+516>>2]=611;J[a+572>>2]=612;J[a+564>>2]=613;J[a+560>>2]=614;J[a+552>>2]=614;J[a+544>>2]=614;J[a+536>>2]=615;J[a+532>>2]=616;J[a+524>>2]=611;a=1}bc=c+32|0;return a}function hM(a,b,c){var d=0,e=0,f=0, -g=0,h=0,i=0,j=0;i=2147483647;a:{if(!c)break a;d=c>>31;h=(d^c)-d|0;b:{d=b>>31;d=(d^b)-d|0;f=a>>31;f=(f^a)-f|0;if(d+f>>>0<=131071){d=P(d,f);break b}g=d>>>16|0;e=f>>>16|0;j=P(g,f&65535)+P(e,d&65535)|0;d=P(d,f);e=((j>>>16|0)+P(e,g)|0)+(d>>>0>>0)|0;if(!e)break b;if(e>>>0>=h>>>0)break a;f=S(e);g=32-f|0;e=d>>>g|e<>>0)/(h>>>0)|0;e=e-P(h,i)|0;d=d<>>31;g=e>>>0>=h>>>0;e=e-(g?h:0)|0;i=g|i<<1;g=f^31;d=d<<1}if((f|0)==31)break a;while(1){e=e<<1|d>>>31;f=e>>>0>=h>>>0;e=d>>>30&1| -e-(f?h:0)<<1;j=e>>>0>=h>>>0;e=e-(j?h:0)|0;i=j|(i<<2|f<<1);d=d<<2;g=g-2|0;if(g)continue;break}break a}i=(d>>>0)/(h>>>0)|0}a=a>>31|1;a=(b|0)<0?0-a|0:a;return(((c|0)<0?0-a|0:a)|0)<0?0-i|0:i}function fJ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+4>>2];f=J[a+8>>2];a:{if((b|0)==(f|0)){g=a+20|0;break a}g=a+20|0;d=J[a+16>>2];c=(d>>>0)/93|0;e=(c<<2)+b|0;c=J[e>>2]+P(d-P(c,93)|0,44)|0;d=d+J[a+20>>2]|0;h=(d>>>0)/93|0;d=J[(h<<2)+b>>2]+P(d-P(h,93)|0,44)|0;if((c|0)==(d|0))break a;while(1){b=J[c+40>>2];if(b)qc(tt(b)); -b=J[c+24>>2];if(b)qc(b);b=J[c+12>>2];if(b){J[c+16>>2]=b;qc(b)}b=J[c>>2];if(b){J[c+4>>2]=b;qc(b)}c=c+44|0;if((c-J[e>>2]|0)==4092){c=J[e+4>>2];e=e+4|0}if((c|0)!=(d|0))continue;break}b=J[a+4>>2];f=J[a+8>>2]}J[g>>2]=0;c=f-b>>2;if(c>>>0>2)while(1){qc(J[b>>2]);b=J[a+4>>2]+4|0;J[a+4>>2]=b;c=J[a+8>>2]-b>>2;if(c>>>0>2)continue;break}b=46;b:switch(c-1|0){case 1:b=93;case 0:J[a+16>>2]=b;break;default:break b}}function vob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]= -c;H[d+9|0]=c>>>8;H[d+10|0]=K[b+34|0];c=K[b+35|0];H[d+11|0]=c;f=d+8|0;e=4;a:{if((c|0)==7)break a;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;e=12;if(!K[b+35|0])break a;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<< -8|(c>>>8&65280|c>>>24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;e=20}c=e;return ue(a,J[b>>2],c,f)|0}function kh(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;if((b|0)<0)Th(779461);g=(b|0)>=1048576?1048576:b;c=8;a:{b:{if(!J[a+4>>2]){while(1){d=c;c=c<<1;if((d|0)<(g|0))continue;break}if((d^2147483647)<(b|0))Th(781027);c=rc(b+d&0-d);break b}while(1){d=c;c=c<<1;if((d|0)<(g|0))continue;break}if((d^2147483647)<(b|0))Th(781027);f=J[a>>2];h=(f|0)>=1048576?1048576:f;e=8;while(1){c= -e;e=c<<1;if((c|0)<(h|0))continue;break}if((c^2147483647)<(f|0))Th(781027);if((c+f&0-c)==(b+d&0-d))break a;d=8;while(1){c=d;d=c<<1;if((c|0)<(g|0))continue;break}if((c^2147483647)<(b|0))Th(781027);c=rc(b+c&0-c);d=J[a+4>>2];e=J[a>>2];c:{if((e|0)>(b|0)){i=tc(c,d,b)+b|0,j=0,H[i|0]=j;break c}tc(c,d,e+1|0)}if(!d)break b;qc(d)}J[a+4>>2]=c}}function W7(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0,n=0;a:{b:{if(b>>>0>c>>>0){I[a+2324>>1]=c;I[a+2320>>1]=b;break b}n=b;while(1){l=n&65535;c:{d:{if(!l){l=J[a+528>>2];break d}l= -$g(a,l);if(!l|K[l+30|0])break c;if(!(K[l+64|0]|K[l+65|0]))break d;m=tu(a,l);if(m)break a}I[l+76>>1]=j;I[l+74>>1]=i;I[l+72>>1]=h;I[l+70>>1]=g;I[l+68>>1]=f;I[l+66>>1]=e;H[l+65|0]=k;H[l+64|0]=d}n=n+1|0;if((n&65535)>>>0<=c>>>0)continue;break}I[a+2324>>1]=c;I[a+2320>>1]=b;if(b>>>0>c>>>0)break b;while(1){if(K[a+497|0])break b;I[a+2322>>1]=b;d=b&65535;e:{if(!d)break e;d=$g(a,d);if(!d|K[d+30|0]|(!K[d+31|0]|!K[d+32|0]))break e;m=Lh(a,d,0);if(m)break a}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}}m=0;if(!K[a+ -497|0])break a;H[a+498|0]=9}return m}function H9a(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=g|0;var h=0,i=0,j=0;h=bc+-64|0;bc=h;i=Hp(h+60|0,1,0,0,1,0,0);a:{b:{c:{g=e<=1?0:f<=1?0:g;if(!g&b==0)break c;J[695492]=0;c=e*.5+c;d=f*.5+d;Vt(i,-c,-d,1);j=J[695492];J[695492]=0;d:{if((j|0)==1)break d;J[695492]=0;qC(i,b,1);j=J[695492];J[695492]=0;if((j|0)==1)break d;J[695492]=0;Uw(i,g&1?-1:1,g&2?-1:1,1);g=J[695492];J[695492]=0;if((g|0)==1)break d;J[695492]=0;Vt(i,c,d,1);g=J[695492];J[695492]=0;if((g|0)!= -1)break c}break b}J[695492]=0;or(i,h);g=J[695492];J[695492]=0;if((g|0)!=1){g=J[J[a>>2]+396>>2];J[695492]=0;va(g|0,a|0,h|0,h|8,h+16|0,h+24|0,h+32|0,h+40|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break a}}a=Z()|0;Ed(i);ba(a|0);B()}Ed(i);bc=h- -64|0;return 0}function $Sa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=bc-32|0;bc=b;g=J[a+420>>2];if(J[a+264>>2])Sq(g);J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;if(J[a+288>>2]>0)while(1){d=J[((h<<2)+a| -0)+292>>2];a:{if(J[a+360>>2]|J[a+368>>2])break a;e=J[d+20>>2]<<2;f=e+(b+16|0)|0;if(J[f>>2])break a;i=a+e|0;c=J[i+120>>2];if(!c){c=gc[J[J[a+4>>2]>>2]](a,0,280)|0;J[c+276>>2]=0;J[i+120>>2]=c}FZ(a,c,J[(e+g|0)+76>>2]);J[f>>2]=1}b:{if(!J[a+364>>2])break b;d=J[d+24>>2]<<2;e=d+b|0;if(J[e>>2])break b;f=a+d|0;c=J[f+136>>2];if(!c){c=gc[J[J[a+4>>2]>>2]](a,0,280)|0;J[c+276>>2]=0;J[f+136>>2]=c}FZ(a,c,J[(d+g|0)+92>>2]);J[e>>2]=1}h=h+1|0;if((h|0)>2])continue;break}bc=b+32|0}function pCa(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;f=bc-32|0;bc=f;a:{b:{if((b|0)<0){b=Kc(f+8|0,2374889,2375807,649,2385369,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}if((c|0)<=0){b=Kc(f+8|0,2376530,2375807,651,2385369,0);J[695492]=0;_(5019,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b;break a}a=J[a+12>>2];c:{if(!a)break c;g=b+c|0;e=J[a+8>>2];d=e>>31;d:{d=(d^e)-d|0;if(d>>>0>b>>>0)break d;a=J[a>>2];if(!a)break c;while(1){if((d|0)>=(g|0))break c;e=J[a+8>>2];h=e>>31;j=(b| -0)>=(d|0);d=((e^h)-h|0)+d|0;if(j&(d|0)>(b|0))break d;a=J[a>>2];if(a)continue;break}break c}if((e|0)<0){i=-1;break c}i=(d|0)>(g|0)?c:d-b|0}bc=f+32|0;return i|0}B()}a=Z()|0;Fc(b);ba(a|0);B()}function JU(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2402120;b=J[a+24>>2];J[a+24>>2]=0;a:{b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+16>>2];J[a+16>>2]=0;c:{if(!b)break c;J[695492]= -0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+12>>2];J[a+12>>2]=0;d:{if(!b)break d;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break d;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}return ed(a)|0}ea(0)|0;yc();B()}function qqb(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;var h=0,i=0,j=0,k=0,l=0;a:{if(f){if(!d)break a; -a=c<<1;l=b<<1;b=0;while(1){i=L[e>>1];b:{if((i|0)==L[f>>1]){I[g>>1]=i;break b}i=K[e|0]|K[e+1|0]<<8;j=i>>>8|0;h=K[f|0]|K[f+1|0]<<8;i=((i<<8|j)&65535)+((P(((h<<8|h>>>8)&65535)-((j|i<<8)&65535)|0,l)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];c:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break c}h=e+2|0;k=K[h+1|0]<<8;j=K[h|0]|k;h=k|K[h|0];k=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=k+((P(((h<<8|h>>>8)&65535)-((j<<8|j>>>8)&65535)|0,l)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+ -1|0]=h>>>8}f=f+4|0;e=e+4|0;g=g+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}tc(g,e,d<<2)}return 0}function ir(a){a=a|0;var b=0,c=0,d=0;b=bc-32|0;bc=b;J[b+28>>2]=0;a:{if(!a)break a;c=J[a+4>>2];if((c|0)!=2870){J[b+24>>2]=J[183131];d=J[183130];J[b+16>>2]=J[183129];J[b+20>>2]=d;d=J[183128];J[b+8>>2]=J[183127];J[b+12>>2]=d;d=J[183126];J[b>>2]=J[183125];J[b+4>>2]=d;J[b+28>>2]=0;J[b+4>>2]=a;gc[c|0](J[a+16>>2],b,0,0,4,b+28|0)}c=J[a>>2];if((c|0)!=2871){J[b+24>>2]=J[183138];d=J[183137];J[b+16>>2]=J[183136]; -J[b+20>>2]=d;d=J[183135];J[b+8>>2]=J[183134];J[b+12>>2]=d;d=J[183133];J[b>>2]=J[183132];J[b+4>>2]=d;J[b+28>>2]=0;J[b+4>>2]=a;gc[c|0](J[a+12>>2],b,0,0,0,4,b+28|0)}c=J[J[J[a+24>>2]+20>>2]+16>>2];if(c)gc[c|0](a);c=J[a+20>>2];if((c|0)!=(a+108|0))Gf(c);c=J[a+24>>2];if(K[c+17|0])Je(c);if(K[a+33|0])break a;Gf(a)}bc=b+32|0}function eaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{d=J[a+4>>2];e=J[a+12>>2];f=e+c|0;if(!(!J[a+16>>2]|(d|0)>=(f|0))){c:{while(1){if((d|0)>=(f|0))break c;d=d<<1;if((d|0)>=0)continue; -break}fa(205352,198678,1018,206424);B()}e=J[a>>2];if(!e)break b;e=Kh(e,d);if(!e)return-1;J[a+4>>2]=d;J[a>>2]=e;e=J[a+12>>2]}f=J[a+8>>2];d:{if((f|0)<(e|0)){d=((e|0)<(d|0)?e:d)-f|0;if((d|0)>0){wc(J[a>>2]+f|0,0,d);f=d+J[a+8>>2]|0;J[a+8>>2]=f;e=J[a+12>>2]}d=0;if((e|0)!=(f|0))break d;d=J[a+4>>2];e=f}g=d-e|0;d=(c|0)>(g|0)?g:c;if((d|0)>0){tc(J[a>>2]+e|0,b,d);e=J[a+12>>2]+d|0;J[a+12>>2]=e;f=J[a+8>>2]}if((e|0)>(f|0))J[a+8>>2]=e;if((c|0)>(g|0))break a}return d|0}fa(205693,198678,996,206434);B()}fa(205440,198678, -1046,206424);B()}function RO(a,b,c,d){var e=0,f=0,g=0;e=c-b|0;a:{if((e|0)<=9){g=e;e=P(32-S(d|1)|0,1233)>>12;f=61;if((g|0)<(e+(M[(e<<2)+2625472>>2]<=d>>>0)|0))break a}b:{if(d>>>0<=999999){if(d>>>0<=9999){if(d>>>0<=99){if(d>>>0<=9){H[b|0]=d+48;c=b+1|0;break b}c=mq(b,d);break b}if(d>>>0<=999){c=(d>>>0)/100|0;H[b|0]=c+48;c=mq(b+1|0,d-P(c,100)|0);break b}c=zE(b,d);break b}if(d>>>0<=99999){c=(d>>>0)/1E4|0;H[b|0]=c+48;c=zE(b+1|0,d-P(c,1E4)|0);break b}c=yE(b,d);break b}if(d>>>0<=99999999){if(d>>>0<=9999999){c= -(d>>>0)/1E6|0;H[b|0]=c+48;c=yE(b+1|0,d-P(c,1E6)|0);break b}c=xE(b,d);break b}if(d>>>0<=999999999){c=(d>>>0)/1E8|0;H[b|0]=c+48;c=xE(b+1|0,d-P(c,1E8)|0);break b}c=b;b=(d>>>0)/1E8|0;c=xE(mq(c,b),d-P(b,1E8)|0)}f=0}J[a+4>>2]=f;J[a>>2]=c}function yx(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!b)break a;J[b>>2]=1;d=!a;if(d|(d?0:J[a+36>>2]))break a;c=P(a?J[a>>2]:-1,a?J[a+8>>2]:-1);h=(c|0)/32|0;d=a?J[a+4>>2]:-1;f=a?J[a+12>>2]:-1;g=a?J[a+40>>2]:0;if((d|0)<=0)return;a=c&31;i=-1<<32-a;b:{if((c|0)>=32){if(!a)while(1){a= -(P(e,f)<<2)+g|0;c=0;while(1){if(J[a>>2])break b;a=a+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}e=e+1|0;if((d|0)!=(e|0))continue;break a}while(1){a=(P(e,f)<<2)+g|0;c=0;while(1){if(J[a>>2])break b;a=a+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}if(J[a>>2]&i)break b;e=e+1|0;if((d|0)!=(e|0))continue;break}break a}if(!a)break a;a=0;while(1){if(J[(P(a,f)<<2)+g>>2]&i)break b;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}J[b>>2]=0}}function uxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[b+12>>2];if((d|0)>J[a+56>> -2]){hd(208896,0);return-1}a:{b:{e=J[a+84>>2]-4|0;if(e)if((e|0)==12)break b;else break a;d=J[J[a+64>>2]+24>>2]+P(d,488)|0;J[d>>2]=J[d>>2]|10;c=J[b+20>>2];if((c|0)>0){e=J[b+24>>2];a=0;while(1){c=a<<2;J[(c+d|0)+16>>2]=J[c+e>>2];a=a+1|0;c=J[b+20>>2];if((a|0)<(c|0))continue;break}}J[d+12>>2]=c;H[d+416|0]=K[b+28|0];H[d+9|0]=K[b+16|0];return 0}c=-1;a=J[a+52>>2];if(!a|J[a+40>>2]>0)break a;d=J[J[a+32>>2]+24>>2]+P(d,488)|0;J[d>>2]=J[d>>2]|10;c=J[b+20>>2];if((c|0)>0){e=J[b+24>>2];a=0;while(1){c=a<<2;J[(c+d| -0)+16>>2]=J[c+e>>2];a=a+1|0;c=J[b+20>>2];if((a|0)<(c|0))continue;break}}J[d+12>>2]=c;H[d+416|0]=K[b+28|0];H[d+9|0]=K[b+16|0];c=0}return c|0}function rs(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{e=J[b>>2];if(e){d=J[a>>2];if(!d)break e;g=O[e+32>>3];if(g>3])break e;d=0;f=J[c>>2];if(!f|!(O[f+32>>3]>2];if(f)break d;return 0}f=J[c>>2];if(!(!f|!(O[f+32>>3]>3]))){J[a>>2]=f;J[c>>2]=d;c=c+4|0;a=a+4|0;d=1;break b}J[a>>2]=e;J[b>>2]=d;d=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+ -4>>2]=d;d=1;a=J[c>>2];if(!a)break a;e=J[b>>2];if(O[a+32>>3]>3]?0:e)break a;J[b>>2]=a;J[c>>2]=e;c=c+4|0;a=b+4|0;break c}J[b>>2]=f;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;d=1;e=J[b>>2];if(!e)break a;f=J[a>>2];if(O[e+32>>3]>3]?0:f)break a;c=b+4|0;J[a>>2]=e;J[b>>2]=f;a=a+4|0}d=2}b=J[a>>2];J[a>>2]=J[c>>2];J[c>>2]=b}return d}function aI(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=rc(24);J[g+12>>2]=e;J[g+8>>2]=d;J[g>>2]=2305576;J[g+4>>2]=0;j=d+7>>3;J[g+16>>2]=j;a:{if(!((d| -0)<=0|(e|0)<=0|(j|0)<=0)){f=e;if(2147483646/(j>>>0)>>>0>f>>>0)break a}J[g+12>>2]=-1;J[g+16>>2]=2;j=2;f=-1}J[695492]=0;h=P(f,j);f=$(3441,h+1|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1){J[g+20>>2]=f;H[f+h|0]=0;l=wc(f,0,h);if(!(!e|!d)){h=0;while(1){k=c+h|0;if((k|0)>=0){m=P(h,j)+l|0;f=0;while(1){i=b+f|0;if(!((i|0)<0|(i|0)>=J[a+8>>2]|(!(K[J[a+20>>2]+P(J[a+16>>2],k)+(i>>>3)|0]>>>((i^-1)&7)&1)|J[a+12>>2]<=(k|0)))){i=(f>>3)+m|0;H[i|0]=K[i|0]|1<<((f^-1)&7)}f=f+1|0;if((f|0)!=(d|0))continue;break}}h=h+1|0;if((h| -0)!=(e|0))continue;break}}return g}a=Z()|0;qc(g);ba(a|0);B()}function UU(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;Qj(a+16|0,b+16|0);J[a+52>>2]=J[b+52>>2];d=c;c=d-1|0;b=b+56|0;a=a+56|0;if(d)continue;break a}while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;Qj(a+16|0,b+16|0);J[a+52>>2]=J[b+52>>2];J[b+40>>2]=2381060;J[b+16>>2]= -2381028;d=J[b+44>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[b+44>>2]=0}J[b+32>>2]=2381060;d=J[b+36>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[b+36>>2]=0}sc(b+24|0);b=b+56|0;a=a+56|0;d=(c|0)>0;c=c-1|0;if(d)continue;break}}}function Jl(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;j=L[((a>>>0<=153?a:0)<<1)+2607408>>1]+2605492|0;a=J[J[694782]+20>>2];if(a){e=J[a+4>>2];b=J[a>>2];d=J[b>>2]+1794895138|0;f=tq(J[b+8>>2],d);g=tq(J[b+12>>2],d);c=tq(J[b+ -16>>2],d);a:{if(e>>>2>>>0<=f>>>0)break a;a=e-(f<<2)|0;if((c|g)&3|(a>>>0<=g>>>0|a>>>0<=c>>>0))break a;m=c>>>2|0;c=b+(g&-4)|0;while(1){h=f>>>1|0;i=h+k|0;a=(i<<3)+c|0;g=tq(J[a>>2],d);a=tq(J[a+4>>2],d);if(a>>>0>=e>>>0|g>>>0>=e-a>>>0)break a;a=a+b|0;if(K[a+g|0])break a;a=Ec(j,a);if(!a){a=(b+(m<<2)|0)+(i<<3)|0;c=tq(J[a>>2],d);a=tq(J[a+4>>2],d);if(a>>>0>=e>>>0|c>>>0>=e-a>>>0)break a;a=a+b|0;l=K[a+c|0]?0:a;break a}if((f|0)==1)break a;a=(a|0)<0;f=a?h:f-h|0;k=a?k:i;continue}}}return l?l:j}function At(a){a= -a|0;var b=0,c=0,d=0;a:{b:{if(!a)break b;b=J[a+64>>2];if(!b)break b;c:{d:{e:{f:{g:{h:{i:{c=J[a+68>>2];b=c?c:b;switch(J[b+4>>2]-1|0){case 4:case 5:case 6:case 9:case 11:case 13:break a;case 17:break c;case 10:break d;case 8:case 12:break e;case 7:break f;case 3:break g;case 2:break h;case 0:case 1:break i;default:break b}}j:{c=J[b+36>>2];if(c){c=J[c+12>>2];if(c)break j}return J[b+8>>2]}return NB(J[a+88>>2],c,J[b+8>>2])|0}return le(J[a+88>>2],1826,-1)|0}return le(J[a+88>>2],6685,-1)|0}return le(J[a+ -88>>2],2643,-1)|0}return le(J[a+88>>2],2508,-1)|0}return le(J[a+88>>2],2704,-1)|0}a=J[a+88>>2];b=J[b+12>>2];if(!b)return le(a,4071,-1)|0;d=NB(a,4071,b)}return d|0}return le(J[a+88>>2],J[b+8>>2],-1)|0}function xpa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;e=Uk(d,c);J[695492]=0;f=kf(e);c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;J[695492]=0;c=J[J[b+80>>2]+((f>>>0)%M[b+76>>2]<<2)>>2];b=J[695492];J[695492]=0;if((b|0)==1)break a;b=0;b:{if(!c)break b;while(1){c:{if(J[c+12>>2]!=(f|0))break c; -J[695492]=0;b=ga(5117,c+16|0,e|0,-1)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(b)break c;b=c;break b}c=J[c+8>>2];if(c)continue;break}b=0}sc(e);J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2386024;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[695492]=0;aa(5031,a|0,(b?b+24|0:d)|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){$c(d);bc=d+16|0;return}a=Z()|0;$c(d);ba(a|0);B()}a=Z()|0;sc(e);ba(a|0);B()}function qR(a,b,c,d,e,f){var g=0;g=bc-80|0;bc=g;a:{if((f|0)>=16384){Qf(g+32|0,b,c,d,e,0,0,0,2147352576); -d=J[g+40>>2];e=J[g+44>>2];b=J[g+32>>2];c=J[g+36>>2];if(f>>>0<32767){f=f-16383|0;break a}Qf(g+16|0,b,c,d,e,0,0,0,2147352576);f=((f|0)>=49149?49149:f)-32766|0;d=J[g+24>>2];e=J[g+28>>2];b=J[g+16>>2];c=J[g+20>>2];break a}if((f|0)>-16383)break a;Qf(g- -64|0,b,c,d,e,0,0,0,7471104);d=J[g+72>>2];e=J[g+76>>2];b=J[g+64>>2];c=J[g+68>>2];if(f>>>0>4294934644){f=f+16269|0;break a}Qf(g+48|0,b,c,d,e,0,0,0,7471104);f=((f|0)<=-48920?-48920:f)+32538|0;d=J[g+56>>2];e=J[g+60>>2];b=J[g+48>>2];c=J[g+52>>2]}Qf(g,b,c,d,e, -0,0,0,f+16383<<16);b=J[g+12>>2];J[a+8>>2]=J[g+8>>2];J[a+12>>2]=b;b=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=b;bc=g+80|0}function kyb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!J[a+16>>2]|!J[a+20>>2]|(!J[a+32>>2]|!J[a+36>>2]))break a;if(!J[a+48>>2])break a;b:{if(wh(c,J[a+12>>2]))break b;if(ki(c,J[a+16>>2]))break b;if(ki(c,J[a+20>>2]))break b;if(ki(c,J[a+24>>2]))break b;if(ki(c,J[a+28>>2]))break b;if(ki(c,J[a+32>>2]))break b;if(ki(c,J[a+36>>2]))break b;if(ki(c,J[a+40>>2]))break b;if(ki(c,J[a+44>>2]))break b; -if(wh(c,J[a+48>>2]))break b;if(!J[a+48>>2])return 0;b=0;while(1){d=b<<2;e=d+J[a+52>>2]|0;if(Mr(c,(K[e|0]-1&127|K[e+1|0]<<7)&255))break b;if(Mr(c,K[(J[a+52>>2]+d|0)+2|0]))break b;if(Mr(c,K[(J[a+52>>2]+d|0)+3|0]))break b;b=b+1|0;if(b>>>0>2])continue;break}return 0}return-1}fa(207610,207960,534,208841);B()}function wj(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;d=J[a+596>>2];j=J[d+28>>2];if((j|0)>0){n=O[a+56>>3];o=O[a+40>>3];p=O[a+24>>3];q=O[a+48>> -3];r=O[a+32>>3];s=O[a+16>>3];t=J[d+24>>2];d=0;while(1){b=J[(d<<2)+t>>2];k=J[b+12>>2];if((k|0)>0){u=J[b+4>>2];v=J[b>>2];b=0;while(1){l=b<<3;c=O[l+v>>3];m=O[u+l>>3];e=n+(p*c+m*o);c=q+(s*c+m*r);a:{if(!(b|d)){f=e;g=e;h=c;i=c;break a}b:{if(ch))break b;h=c}if(eg))break a;g=e}b=b+1|0;if((k|0)!=(b|0))continue;break}}d=d+1|0;if((j|0)!=(d|0))continue;break}}if(O[a+632>>3]>3]=i;if(O[a+640>>3]>3]=f;if(O[a+648>>3]>h)O[a+648>>3]=h;if(O[a+656>> -3]>g)O[a+656>>3]=g}function yia(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=bc-16|0;bc=h;a:{b:{if(!d){e=J[a+584>>2];if(!e)break b;f=(c|0)/J[e+8>>2]|0;j=b;if(J[e>>2]!=2){if(J[e+16>>2]<(f|0))break a;j=J[e+12>>2]}g=J[a+608>>2];d=J[a+604>>2];c=0;c:{if((f|0)<=0){i=g;break c}if((g|0)<=0){i=g;break c}while(1){J[(c<<2)+j>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);i=g-3|0;d=d+3|0;c=c+1|0;if((f|0)<=(c|0))break c;k=g>>>0>3;g=i;if(k)continue;break}}J[a+608>>2]=i;J[a+604>>2]=d;d:{if((c|0)!=(f| -0)){b=J[a>>2];d=J[a+628>>2];a=J[a+472>>2];J[h+4>>2]=f-c;J[h>>2]=a;Nc(d,b,78053,h);a=0;break d}gc[J[e+20>>2]](e,b,f);a=1}bc=h+16|0;return a|0}fa(76906,70356,248,93808);B()}fa(74413,70356,249,93808);B()}fa(77124,70356,256,93808);B()}function vDa(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=bc-16|0;bc=f;e=Hs(180);J[695492]=0;g=$(4995,e|0)|0;h=J[695492];J[695492]=0;a:{b:{c:{d:{if((h|0)!=1){J[a>>2]=0;md(a,g);e=J[c>>2];if(e){J[695492]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[695492];J[695492]=0;if((e| -0)==1)break d;i=J[c>>2]}J[695492]=0;J[f+12>>2]=i;ia(4997,g|0,b|0,f+12|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;a=J[f+12>>2];J[f+12>>2]=0;e:{if(!a)break e;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break e;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=f+16|0;return}a=Z()|0;Tl(e);ba(a|0);B()}b=Z()|0;break b}b=Z()|0;vc(f+12|0)}vc(a);ba(b|0);B()}ea(0)|0;yc();B()}function pp(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{h=J[a+36>> -2];b:{if(!h)break b;g=J[h+12>>2];f=J[h+16>>2]-g|0;if((f|0)<0)break b;e=J[a+204>>2];e=(e|0)>(f|0)?e:f;i=J[h>>2];if(i){f=0;g=J[i+16>>2];if(!(!g|J[g+32>>2]))f=J[g>>2];g=f;f=ui(J[J[h>>2]+16>>2])}else f=J[h+24>>2];i=f+(d?-2:c?-1:0)|0;if((e|0)<(i|0)){c:{if(d)while(1){f=e;j=g+e|0;e=e+1|0;if(!(K[j|0]!=(b|0)|K[g+e|0]!=(c|0))&K[j+2|0]==(d|0))break a;if((e|0)!=(i|0))continue;break c}if(c){f=e;while(1){d=f+1|0;if(K[f+g|0]==(b|0)&K[d+g|0]==(c|0))break a;f=d;if((i|0)!=(f|0))continue;break}break c}while(1){if(K[e+ -g|0]==(b|0)){f=e;break a}e=e+1|0;if((i|0)!=(e|0))continue;break}}e=i}J[a+204>>2]=e}return-1}J[a+204>>2]=0;return J[h+12>>2]+(f-J[h+16>>2]|0)|0}function $X(a,b,c){var d=0,e=0,f=0,g=0;a:{if(J[c>>2]==2){a=J[b+8>>2];if((a|0)<=0)break a;while(1){f=a-1|0;e=J[J[b>>2]+(f<<2)>>2];d=O[e+16>>3];g=J[c+52>>2];b:{c:{if(!J[g+8>>2]){O[c+16>>3]=d;O[c+24>>3]=O[e+24>>3];O[c+32>>3]=O[e+32>>3];d=O[e+40>>3];break c}if(d>3])O[c+16>>3]=d;d=O[e+24>>3];if(d>3])O[c+24>>3]=d;d=O[e+32>>3];if(d>O[c+32>>3])O[c+ -32>>3]=d;d=O[e+40>>3];if(!(d>O[c+40>>3]))break b}O[c+40>>3]=d}Ym(g,0,e);e=a>>>0>1;a=f;if(e)continue;break}break a}$X(a,b,J[J[J[c+52>>2]>>2]>>2]);a=J[J[J[c+52>>2]>>2]>>2];d=O[a+16>>3];if(d>3])O[c+16>>3]=d;d=O[a+24>>3];if(d>3])O[c+24>>3]=d;d=O[a+32>>3];if(d>O[c+32>>3])O[c+32>>3]=d;d=O[a+40>>3];if(!(d>O[c+40>>3]))break a;O[c+40>>3]=d}}function af(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{if(!b)break b;if((c|0)<0)break a;f=J[a+12>>2];if(!f){f=zc(4096);J[a+12>>2]=f;if(!f)break b}g=J[a+16>>2];e= -J[a+20>>2];d=g-e|0;c:{if((d|0)<=0){d=0;break c}if((c|0)<(d|0)){d=0;break c}b=tc(b,e+f|0,d);g=J[a+16>>2];J[a+20>>2]=g;c=c-d|0;b=b+d|0;e=g}d:{if((c|0)>=4097){b=gc[J[J[a+8>>2]+8>>2]](J[a+4>>2],b,1,c)|0;J[a+20>>2]=J[a+16>>2];d=b+d|0;break d}if((e|0)==(g|0)){if((c|0)<=0)break d;e=gc[J[J[a+8>>2]+8>>2]](J[a+4>>2],J[a+12>>2],1,4096)|0;J[a+16>>2]=e;f=b;b=(c|0)<(e|0)?c:e;tc(f,J[a+12>>2],b);J[a+20>>2]=b;d=b+d|0;break d}f=b;b=g-e|0;b=(b|0)>(c|0)?c:b;tc(f,J[a+12>>2]+e|0,b);J[a+20>>2]=b+J[a+20>>2];d=b+d|0}J[a+ -28>>2]=J[a+28>>2]+d}return d}fa(219508,220026,64,223611);B()}function _D(a,b){var c=0,d=0,e=0,f=0;if(!(J[b>>2]!=J[a>>2]|J[b+4>>2]!=J[a+4>>2])){c=J[b+8>>2];a:{if((c|0)<=0)break a;b=J[b+12>>2];a=J[a+12>>2];e=c&3;b:{if(!e){d=c;break b}d=c;while(1){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];b=b+16|0;a=a+16|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(c>>>0<4)break a;while(1){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=J[b+24>> -2];J[a+28>>2]=J[b+28>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=J[b+44>>2];J[a+52>>2]=J[b+52>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];b=b- -64|0;a=a- -64|0;c=d-5|0;d=d-4|0;if(c>>>0<4294967294)continue;break}}return}fa(200063,198839,206,212448);B()}function Yrb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];b=J[a+644>>2];e=J[a+540>>2];if(!e)e=J[J[a+528>>2]+88>>2];a:{b:{if(K[e+56|0]){if((d|0)>0)while(1){g=K[f|0];if(g>>>0>=M[e+64>>2])break b;d=P(g, -3)+e|0;H[b|0]=K[d+68|0];H[b+1|0]=K[d+69|0];H[b+2|0]=K[d+70|0];H[b+3|0]=g>>>0>=M[e+844>>2]?255:K[(e+g|0)+848|0];f=f+1|0;b=b+4|0;c=c+1|0;if((c|0)>2])continue;break}H[a+649|0]=0;return 0}if((d|0)>0){d=0;while(1){c=K[f|0];if(c>>>0>=M[e+64>>2])break a;c=P(c,3)+e|0;H[b|0]=K[c+68|0];H[b+1|0]=K[c+69|0];c=K[c+70|0];H[b+3|0]=255;H[b+2|0]=c;f=f+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}H[a+649|0]=1;return 0}Dc(a,1042,0,0);return 1042}Dc(a,1042,0,0);return 1042}function YA(a,b){var c= -0,d=0,e=0;Sq(a);a:{if(J[a+108>>2])break a;EZ(a);c=J[a+112>>2];J[a+112>>2]=c+1;H[c|0]=255;c=J[a+116>>2]-1|0;J[a+116>>2]=c;b:{if(c){c=J[a+112>>2];break b}c=J[a+120>>2];d=J[c+24>>2];if(!(gc[J[d+12>>2]](c)|0)){c=J[a+120>>2];e=J[c>>2];J[e+20>>2]=25;gc[J[e>>2]](c)}c=J[d>>2];J[a+116>>2]=J[d+4>>2]}J[a+112>>2]=c+1;H[c|0]=b-48;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(b)break a;c=J[a+120>>2];b=J[c+24>>2];if(!(gc[J[b+12>>2]](c)|0)){c=J[a+120>>2];d=J[c>>2];J[d+20>>2]=25;gc[J[d>>2]](c)}J[a+112>>2]=J[b>>2];J[a+116>>2]= -J[b+4>>2]}c=J[a+120>>2];c:{if(!J[c+360>>2]){if(J[c+288>>2]<=0)break c;b=0;while(1){J[((b<<2)+a|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}break c}J[a+128>>2]=0;J[a+132>>2]=0}}function JTa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=bc-16|0;bc=c;J[c+12>>2]=1;if(!((Mf(a,0,c+12|0)|0)!=128|!J[c+12>>2])){f=sk(J[a+12>>2]);a:{if((Mf(a,0,c+12|0)|0)!=128|!J[c+12>>2])break a;while(1){g=c+12|0;if(Mf(a,d+1|0,g)-1>>>0>1|!J[c+12>>2])break a;b:{c:{b=d+2|0;if(b>>>0<=2147483644){e=b+3|0;if((e|0)>2])break c}J[g>>2]=0;b=0;break b}i=J[a+8>>2];b=b+i|0;b=(K[b+2|0]<<8|K[e+i|0]<<16|K[b+1|0])<<8|K[b|0]}if(!J[c+12>>2])break a;d=d+6|0;e=b+d|0;if(!((b|0)<=(d^2147483647)&(b|d)>=0&(e|0)<=J[a+12>>2]))break a;tc(f+h|0,d+J[a+8>>2]|0,b);h=b+h|0;d=e;if((Mf(a,d,g)|0)!=128)break a;if(J[c+12>>2])continue;break}}if(J[a+16>>2])Gc(J[a+4>>2]);J[a+16>>2]=1;J[a+8>>2]=f;J[a+4>>2]=f;J[a+12>>2]=h}bc=c+16|0}function EZ(a){var b=0,c=0,d=0,e=0,f=0;a:{if(J[a+108>>2])break a;b=J[a+16>>2];if((b|0)<=0)break a;c=b+7|0;f= -J[a+12>>2]|127<<17-b;while(1){b=J[a+112>>2];J[a+112>>2]=b+1;H[b|0]=f>>>16;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(!b){d=J[a+120>>2];b=J[d+24>>2];if(!(gc[J[b+12>>2]](d)|0)){d=J[a+120>>2];e=J[d>>2];J[e+20>>2]=25;gc[J[e>>2]](d)}J[a+112>>2]=J[b>>2];J[a+116>>2]=J[b+4>>2]}b=c;b:{if((f&16711680)!=16711680)break b;c=J[a+112>>2];J[a+112>>2]=c+1;H[c|0]=0;c=J[a+116>>2]-1|0;J[a+116>>2]=c;if(c)break b;d=J[a+120>>2];c=J[d+24>>2];if(!(gc[J[c+12>>2]](d)|0)){d=J[a+120>>2];e=J[d>>2];J[e+20>>2]=25;gc[J[e>>2]](d)}J[a+112>> -2]=J[c>>2];J[a+116>>2]=J[c+4>>2]}c=b-8|0;f=f<<8;if((b|0)>15)continue;break}}J[a+12>>2]=0;J[a+16>>2]=0}function Vqa(a){a=a|0;var b=0,c=0;J[a+8>>2]=0;J[a>>2]=2421084;J[a+4>>2]=0;b=J[682146];J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=b;J[695492]=0;b=a+24|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2422620;c=J[695492];J[695492]=0;a:{b:{if((c|0)!=1){J[695492]=0;c=a+48|0;J[c+20>>2]=-1;J[c+12>>2]=-1;J[c+16>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2422640;c=J[695492];J[695492]=0;if((c| -0)!=1)break a;c=Z()|0;xd(b);break b}c=Z()|0}vc(a+20|0);sc(a+8|0);ed(a);ba(c|0);B()}J[a+72>>2]=0;J[a+76>>2]=0;J[a>>2]=2421288;J[695492]=0;b=a+80|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2406244;b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;sT(a);ba(b|0);B()}H[a+104|0]=0;return a|0}function Jv(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=bc-32|0;bc=d;J[d+16>>2]=13;J[d>>2]=13;Bc(a,b,d+16|0,0);a:{if(J[d+16>>2]!=6)break a;a=J[d+24>>2];if(J[a+12>>2]!=4)break a;Mc(a,0,d,0);b= -J[d>>2];a=b-3>>>0<4294967294;if(!a)e=(b|0)==1?+J[d+8>>2]:O[d+8>>3];uc(d);b=1;Mc(J[d+24>>2],1,d,0);f=1;g=J[d>>2];if(g-3>>>0>=4294967294){h=(g|0)==1?+J[d+8>>2]:O[d+8>>3];f=a}uc(d);Mc(J[d+24>>2],2,d,0);a=J[d>>2];if(a-3>>>0>=4294967294){i=(a|0)==1?+J[d+8>>2]:O[d+8>>3];b=f}uc(d);Mc(J[d+24>>2],3,d,0);a=J[d>>2];if(a-3>>>0>=4294967294){j=O[d+8>>3];g=J[d+8>>2];uc(d);f=0;if(b)break a;b=e>i;O[c+16>>3]=b?e:i;O[c>>3]=b?i:e;f=1;e=(a|0)==1?+(g|0):j;a=e>3]=a?h:e;O[c+8>>3]=a?e:h;break a}uc(d);f=0}uc(d+16| -0);bc=d+32|0;return f}function wzb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-96|0;bc=c;J[c+80>>2]=J[a+12>>2];cd(b,205808,c+80|0);d=J[a+12>>2];a:{if((d|0)!=1){if((d|0)<=0)break a;d=J[J[a+16>>2]>>2];J[c+64>>2]=0;O[c+72>>3]=+(d>>>0)/65535;Ii(b,206198,c- -64|0);if(J[a+12>>2]<2)break a;d=J[J[a+16>>2]+4>>2];J[c+48>>2]=1;O[c+56>>3]=+(d>>>0)/65535;Ii(b,206198,c+48|0);d=3;if(J[a+12>>2]<3)break a;e=J[J[a+16>>2]+8>>2];J[c+32>>2]=2;O[c+40>>3]=+(e>>>0)/65535;Ii(b,206198,c+32|0);e=J[a+12>>2];if((e|0)<=3)break a;while(1){if((e- -3|0)<=(d|0)){e=J[J[a+16>>2]+(d<<2)>>2];J[c+16>>2]=d;O[c+24>>3]=+(e>>>0)/65535;Ii(b,206198,c+16|0);e=J[a+12>>2]}d=d+1|0;if((e|0)>(d|0))continue;break}break a}O[c>>3]=+M[J[a+16>>2]>>2]*.00390625;Ii(b,206067,c)}bc=c+96|0}function kla(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=+c;d=+d;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=Q(0),m=Q(0),n=Q(0),o=Q(0);j=bc-32|0;bc=j;J[e>>2]=0;J[e+4>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[h>>2]=0;J[h+4>>2]=0;k=J[a>>2];if(k){N[j+12>>2]=c;N[j+28>>2]=d;gc[J[J[k>>2]+84>> -2]](k,b,j+12|0,j+28|0)|0;a:{b:{c:switch(i|0){case 0:a=J[a>>2];gc[J[J[a>>2]+116>>2]](j+12|0,a);break b;case 1:break c;default:break a}a=J[a>>2];gc[J[J[a>>2]+120>>2]](j+12|0,a)}n=N[j+24>>2];l=N[j+20>>2];o=N[j+16>>2];m=N[j+12>>2]}O[e>>3]=m;O[f>>3]=l;O[g>>3]=Q(o-m);O[h>>3]=Q(n-l);O[e>>3]=O[e>>3]*.35277777777777775;O[f>>3]=O[f>>3]*.35277777777777775;O[g>>3]=O[g>>3]*.35277777777777775;O[h>>3]=O[h>>3]*.35277777777777775}bc=j+32|0}function My(a,b){var c=0,d=0,e=0;a:{if(K[b|0])break a;b=Hi(21160);if(K[b|0]? -b:0)break a;b=Hi(P(a,12)+2605376|0);if(K[b|0]?b:0)break a;b=Hi(21286);if(K[b|0]?b:0)break a;b=22353}b:{while(1){d=K[b+c|0];if(!(!d|(d|0)==47)){d=23;c=c+1|0;if((c|0)!=23)continue;break b}break}d=c}e=22353;c:{d:{c=K[b|0];e:{f:{if(!(K[b+d|0]|(c|0)==46)){e=b;if((c|0)!=67)break f}if(!K[e+1|0])break e}if(!Ec(e,22353))break e;if(Ec(e,19973))break d}if(!a){c=2454484;if(K[e+1|0]==46)break c}return 0}c=J[694795];if(c)while(1){if(!Ec(e,c+8|0))break c;c=J[c+32>>2];if(c)continue;break}c=zc(36);if(c){b=J[613622]; -J[c>>2]=J[613621];J[c+4>>2]=b;b=c+8|0;tc(b,e,d);H[b+d|0]=0;J[c+32>>2]=J[694795];J[694795]=c}c=a|c?c:2454484}return c}function mV(a){a=a|0;var b=0,c=0,d=0;a:{b=J[689874];if(!b){c=rc(32);J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[695492]=0;b=aa(5080,c|0,2385952)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[689874]=b}c=bc-16|0;bc=c;Uz(b);b:{c:{d:{if(!Pj(a))break d;d=Tk(a);b=J[J[b+12>>2]+((d>>>0)%M[b+8>>2]<<2)>>2];if(!b)break d;while(1){e:{if((d| -0)==J[b+12>>2])if(Pl(b+16|0,a))break e;b=J[b+8>>2];if(b)continue;break d}break}a=Ln(c,b+52|0);b=J[a+8>>2];if(b)while(1){d=J[b+8>>2];J[695492]=0;_(5076,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;b=J[b>>2];if(b)continue;break}$c(a)}bc=c+16|0;break b}b=Z()|0;$c(a);ba(b|0);B()}return}a=Z()|0;qc(c);ba(a|0);B()}function ik(a,b,c){var d=0,e=0,f=0;d=bc+-64|0;bc=d;f=J[a>>2];e=J[f-4>>2];f=J[f-8>>2];J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;H[d+55|0]=0;H[d+56|0]=0;H[d+ -57|0]=0;H[d+58|0]=0;H[d+59|0]=0;H[d+60|0]=0;H[d+61|0]=0;H[d+62|0]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=b;J[d+12>>2]=a;J[d+8>>2]=c;a=a+f|0;b=0;a:{if(pj(e,c,0)){J[d+56>>2]=1;gc[J[J[e>>2]+20>>2]](e,d+8|0,a,a,1,0);b=J[d+32>>2]==1?a:0;break a}gc[J[J[e>>2]+24>>2]](e,d+8|0,a,1,0);b:switch(J[d+44>>2]){case 0:b=J[d+48>>2]==1?J[d+36>>2]==1?J[d+40>>2]==1?J[d+28>>2]:0:0:0;break a;case 1:break b;default:break a}if(J[d+32>>2]!=1)if(J[d+48>>2]|J[d+36>>2]!=1|J[d+40>>2]!=1)break a;b=J[d+24>>2]}bc=d- --64|0;return b}function Bm(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=bc-16|0;bc=e;J[e+12>>2]=d;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if(d>>>0>>0){mr(a);B()}if(K[b+11|0]>>>7|0)b=J[b>>2];J[e+4>>2]=d-c;g=(c<<2)+b|0;b=bc-16|0;bc=b;bc=b+16|0;d=bc-16|0;bc=d;a:{b=e+4|0;c=e+12|0;c=J[(M[b>>2]>2]?b:c)>>2];if(c>>>0<=1073741807){b:{if(c>>>0<2){H[a+11|0]=c|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;b=a;break b}h=d+8|0;if(c>>>0>=2){f=c+4&-4;b=f-1|0;b=(b|0)==2?f:b}else b=1;Cn(h, -a,b+1|0);b=J[d+8>>2];J[a>>2]=b;J[a+8>>2]=J[a+8>>2]&-2147483648|J[d+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}kk(b,g,c);J[d+4>>2]=0;J[(c<<2)+b>>2]=J[d+4>>2];bc=d+16|0;break a}Id(a);B()}bc=e+16|0;return a|0}function nCa(a){a=a|0;var b=0,c=0,d=0;J[a+16>>2]=0;H[a+10|0]=0;I[a+8>>1]=0;J[a>>2]=2385428;J[a+4>>2]=0;J[695492]=0;d=$(5082,a+20|0)|0;c=J[695492];J[695492]=0;a:{b:{c:{d:{if((c|0)!=1){J[a+88>>2]=0;J[a+92>>2]=0;J[a+84>>2]=-1;J[a+76>>2]=0;J[a+80>>2]=0;J[a+64>>2]=0;J[a+56>>2]=0;J[a+ -96>>2]=0;J[a+100>>2]=0;J[695492]=0;c=a+88|0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[695492]=0;b=a+108|0;J[b>>2]=2386024;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break c;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;$c(c)}vc(a- -64|0);vc(a+56|0);ud(d)}vc(a+16|0);ed(a);ba(b|0);B()}function ku(a,b,c){var d=0,e=0,f=0;d=K[b|0];if((d|0)==30)return dD(a, -b,c,0);f=b+1|0;a:{b:switch(d-28|0){case 0:e=0;if(M[a+8>>2]<=b+2>>>0)break a;e=(K[b+2|0]|K[f|0]<<8)<<16>>16;break a;case 1:e=0;if(M[a+8>>2]<=b+4>>>0)break a;a=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);e=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break a;default:break b}e=d-139|0;if(d>>>0<=246)break a;a=J[a+8>>2];if(d>>>0<=250){e=0;if(a>>>0<=f>>>0)break a;e=(K[f|0]|d<<8)-63124|0;break a}e=0;if(a>>>0<=f>>>0)break a;e=64148-(K[f|0]|d<<8)|0}d=e;if(c){a=c<<2;b=d>>31;if(J[a+258272>>2]<((b^d)-b|0))return(d| -0)>0?2147483647:-2147483647;d=P(J[a+258224>>2],d)}if((d|0)<=32767)a=(d|0)<-32767?-2147483647:d<<16;else a=2147483647;return a}function hn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if((a|0)==(b|0))break a;c=a+16|0;d=b+16|0;f=K[b+27|0];e=f<<24>>24;b:{if(H[a+27|0]>=0){if((e|0)>=0){e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+8>>2];break b}yf(c,J[b+16>>2],J[b+20>>2]);break b}g=c;c=(e|0)<0;Df(g,c?J[b+16>>2]:d,c?J[b+20>>2]:f)}c=a+4|0;d=b+4|0;f=K[b+15|0];e=f<<24>>24;if(H[a+15|0]>=0){if((e|0)>= -0){e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+8>>2];break a}yf(c,J[b+4>>2],J[b+8>>2]);break a}g=c;c=(e|0)<0;Df(g,c?J[b+4>>2]:d,c?J[b+8>>2]:f)}O[a+32>>3]=O[b+32>>3];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=J[b+44>>2];H[a+48|0]=K[b+48|0];H[a+49|0]=K[b+49|0];J[a+52>>2]=J[b+52>>2];O[a+56>>3]=O[b+56>>3];J[a+64>>2]=J[b+64>>2];return a|0}function VJa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+136>>2];a:{if(b>>>0>=M[a+140>>2]){b=-1;if(J[a+144>>2])break a;b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)| -0;if(!((c|0)!=128&(c|0)!=-1)){J[a+144>>2]=1;return-1}b:{if((c|0)<=127){d=c+1|0;b=0;if((c|0)<0)break b;if(c){h=d&-2;f=a+8|0;while(1){e=J[a+4>>2];i=b+f|0,j=gc[J[J[e>>2]+28>>2]](e)|0,H[i|0]=j;e=J[a+4>>2];i=(b|1)+f|0,j=gc[J[J[e>>2]+28>>2]](e)|0,H[i|0]=j;b=b+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}}if(c&1)break b;c=a+b|0;b=J[a+4>>2];i=c,j=gc[J[J[b>>2]+28>>2]](b)|0,H[i+8|0]=j;break b}d=257-c|0;b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if(c>>>0>256)break b;wc(a+8|0,b,(d|0)<=1?1:d)}b=a+8|0;J[a+140>>2]=d+ -b}J[a+136>>2]=b+1;b=K[b|0]}return b|0}function L9(a){var b=0,c=0,d=0,e=0,f=0;a:{b=zc(16);b:{if(b){J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((a|0)<0)break a;c=zc(a<<2);if(c){J[b+12>>2]=c;J[b+8>>2]=a;c=J[b+4>>2];if((c|0)>=(a|0))break b;d=(c^-1)+a|0;e=a-c&3;if(e)while(1){J[J[b+12>>2]+(c<<2)>>2]=0;c=c+1|0;f=f+1|0;if((f|0)!=(e|0))continue;break}if(d>>>0<3)break b;while(1){d=c<<2;J[d+J[b+12>>2]>>2]=0;J[(d+J[b+12>>2]|0)+4>>2]=0;J[(d+J[b+12>>2]|0)+8>>2]=0;J[(d+J[b+12>>2]|0)+12>>2]=0;c=c+4|0;if((c|0)!=(a|0))continue; -break}break b}a=J[b+12>>2];if(a){if(J[b+4>>2]>0){c=0;while(1){a=J[J[b+12>>2]+(c<<2)>>2];d=J[a+32>>2];if(d)qc(d);qc(a);c=c+1|0;if((c|0)>2])continue;break}a=J[b+12>>2]}qc(a)}qc(b)}b=0}return b}fa(206105,206262,441,207766);B()}function fG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;e=J[b>>2]}J[a+4>>2]=0;J[a>>2]=e;J[a+8>>2]=J[682146];c=a+4|0;a:{b=J[b+4>>2];b:{c:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!= -1)break c;b=Z()|0;break b}J[d+12>>2]=0}J[695492]=0;aa(4993,c|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}b=Z()|0;vc(d+12|0)}sc(c);vc(a);ba(b|0);B()}b=J[a+4>>2];J[a+8>>2]=J[(b?b+12|0:2728584)>>2];bc=d+16|0;return a|0}function QR(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=bc-16|0;bc=e;g= -(C(a),v(2));c=g&2147483647;a:{if(c>>>0<=1305022426){h=+a;f=h*.6366197723675814+6755399441055744+-6755399441055744;d=h+f*-1.5707963109016418+f*-1.5893254773528196E-8;O[b>>3]=d;g=d<-.7853981852531433;if(R(f)<2147483648)c=~~f;else c=-2147483648;if(g){d=f+-1;O[b>>3]=h+d*-1.5707963109016418+d*-1.5893254773528196E-8;c=c-1|0;break a}if(!(d>.7853981852531433))break a;d=f+1;O[b>>3]=h+d*-1.5707963109016418+d*-1.5893254773528196E-8;c=c+1|0;break a}if(c>>>0>=2139095040){O[b>>3]=Q(a-a);c=0;break a}i=c;c=(c>>> -23|0)-150|0;O[e+8>>3]=(x(2,i-(c<<23)|0),D());c=RR(e+8|0,e,c,1,0);d=O[e>>3];if((g|0)<0){O[b>>3]=-d;c=0-c|0;break a}O[b>>3]=d}bc=e+16|0;return c}function pdb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=bc-1536|0;bc=f;a:{b:{if(d&16){if(!c)break b;d=0;wc(e,0,c<<2);break a}d=gc[J[J[J[a+492>>2]+12>>2]>>2]](f+8|0,a,0,0,J[a+424>>2],J[a+532>>2],0,0,1750)|0;if(d)break a;H[f+76|0]=0;H[f+78|0]=1;J[f+1372>>2]=J[a+404>>2];J[f+1376>>2]=J[a+408>>2];J[f+1380>>2]=J[a+412>>2];J[f+1384>>2]=J[a+416>>2]; -J[f+1504>>2]=J[a+548>>2];J[f+1508>>2]=J[a+544>>2];d=0;if(!c)break a;a=0;while(1){h=(a<<2)+e|0;g=f+1528|0;c:{if(!ex(f+8|0,a+b|0,g,f+1527|0)){d=J[J[J[f+12>>2]+128>>2]+52>>2];if(d)gc[J[J[d>>2]+4>>2]](J[d+4>>2],g);d=J[f+48>>2];d=(((d>>31)+d|0)+32768&-65536)>>16;break c}d=0}J[h>>2]=d;a=a+1|0;if((c|0)!=(a|0))continue;break}}d=0}bc=f+1536|0;return d|0}function oU(a,b,c){var d=0,e=0,f=0;d=bc-32|0;bc=d;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;f=Qc(b);a:{if(!c){Qz(a,b,0);break a}if(!K[c| -0]){Qz(a,b,c);break a}c=Rz(a,c,Qc(c),0,d);if(a){J[a+744>>2]=34;H[d+28|0]=122;H[d+29|0]=84;H[d+30|0]=88;H[d+31|0]=116;e=(c+f|0)+2|0;H[d+27|0]=e;H[d+26|0]=e>>>8;H[d+25|0]=e>>>16;H[d+24|0]=e>>>24;bf(a,d+24|0,8);J[a+348>>2]=2052348020;Xl(a);pe(a,d+28|0,4);J[a+744>>2]=66;b:{if(!b)break b;e=f+1|0;if(!e)break b;bf(a,b,e);pe(a,b,e)}H[d+23|0]=0;b=d+23|0;bf(a,b,1);pe(a,b,1);pv(a,d,c);J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+24|0]=b;H[d+25|0]=b>>>8;H[d+26|0]=b>>>16;H[d+27| -0]=b>>>24;bf(a,d+24|0,4);break a}pv(0,d,c)}bc=d+32|0}function iC(a,b,c,d,e,f,g,h,i){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;O[a+40>>3]=i;O[a+32>>3]=h;O[a+24>>3]=c;O[a+16>>3]=b;O[a+112>>3]=b;O[a+48>>3]=b;O[a+120>>3]=c;O[a+56>>3]=c;n=d-b;o=e-c;j=f-d;k=j*j;j=g-e;k=Y(n*n+o*o)+Y(k+j*j);j=h-f;m=j*j;j=i-g;j=(k+Y(m+j*j))*.25*O[a+8>>3]+.5;a:{if(j<4294967296&j>=0){l=~~j>>>0;break a}l=0}l=(l|0)<=4?4:l;J[a>>2]=l;j=1/+(l|0);m=j*j;p=(e-g)*3-c+i;i=j*m;k=i*6;q=p*k;O[a+ -104>>3]=q;h=(d-f)*3-b+h;k=h*k;O[a+96>>3]=k;r=h*i;h=j*3;b=b-(d+d)+f;d=m*3;f=r+(n*h+b*d);O[a+128>>3]=f;O[a+64>>3]=f;c=c-(e+e)+g;d=p*i+(o*h+c*d);O[a+136>>3]=d;O[a+72>>3]=d;d=b;b=m*6;d=d*b+k;O[a+144>>3]=d;O[a+80>>3]=d;b=c*b+q;O[a+152>>3]=b;O[a+88>>3]=b;J[a+4>>2]=l}function UJa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+136>>2];a:{if(b>>>0>=M[a+140>>2]){b=-1;if(J[a+144>>2])break a;b=J[a+4>>2];c=gc[J[J[b>>2]+28>>2]](b)|0;if(!((c|0)!=128&(c|0)!=-1)){J[a+144>>2]=1;return-1}b:{if((c|0)<=127){d= -c+1|0;b=0;if((c|0)<0)break b;if(c){h=d&-2;f=a+8|0;while(1){e=J[a+4>>2];i=b+f|0,j=gc[J[J[e>>2]+28>>2]](e)|0,H[i|0]=j;e=J[a+4>>2];i=(b|1)+f|0,j=gc[J[J[e>>2]+28>>2]](e)|0,H[i|0]=j;b=b+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}}if(c&1)break b;c=a+b|0;b=J[a+4>>2];i=c,j=gc[J[J[b>>2]+28>>2]](b)|0,H[i+8|0]=j;break b}d=257-c|0;b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;if(c>>>0>256)break b;wc(a+8|0,b,(d|0)<=1?1:d)}b=a+8|0;J[a+136>>2]=b;J[a+140>>2]=b+d}b=K[b|0]}return b|0}function t7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=255-e|0;h=K[a+3|0];n=P(h,c);l=K[a|0];m=K[a+1|0];o=P(m,e);i=h^255;g=P(e,h);j=K[a+2|0];k=P(j,e)+P(b,h)|0;a:{if((g|0)>=(k|0)){b=P(b,i)+P(f,j)|0;break a}b=((P(b,i)+P(f,j)|0)+((P(k-g|0,e)>>>0)/(b>>>0)|0)|0)+255|0}j=P(d,h);k=P(e,l);H[a+2|0]=b>>>8;b=n+o|0;if((b|0)<=(g|0))b=P(f,m)+P(c,i)|0;else b=((P(c,i)+P(f,m)|0)+((P(b-g|0,e)>>>0)/(c>>>0)|0)| -0)+255|0;H[a+1|0]=b>>>8;b=j+k|0;if((b|0)<=(g|0))b=P(f,l)+P(d,i)|0;else b=((P(d,i)+P(f,l)|0)+((P(b-g|0,e)>>>0)/(d>>>0)|0)|0)+255|0;H[a|0]=b>>>8;H[a+3|0]=e+h-(g+255>>>8)}}function r1a(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(J[a>>2]>0)break a;b:{c:{if(J[689438]==2)break c;if(!$B(2757752))break c;d=bc-16|0;bc=d;Lt(17,2895);J[695492]=0;b=$(2897,56)|0;c=J[695492];J[695492]=0;if((c|0)==1){ea(0)|0;yc();B()}d:{e:{if(b){J[695492]=0;H[b+8|0]=0;J[b+4>>2]=40;J[b>>2]=b+9;c=J[695492];J[695492]=0;if((c|0)==1)break e; -J[b+52>>2]=0;H[J[b>>2]]=0;J[689443]=b;c=Hi(735249);if(J[a>>2]>0)break d;J[b+52>>2]=0;H[J[b>>2]]=0;e=b;b=Si(d+8|0,c?c:730936);Kt(e,J[b>>2],J[b+4>>2],a);break d}J[689443]=0;J[a>>2]=7;break d}a=Z()|0;lK(b);ba(a|0);B()}bc=d+16|0;J[689439]=J[a>>2];J[689438]=2;break b}b=J[689439];if((b|0)<=0)break b;J[a>>2]=b;break a}if(J[a>>2]>0)break a;return J[J[689443]>>2]}return 730936}function fyb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=a+12|0;a:{b:{if(M[b>>2]<=256){b=-1;e=J[c+8>>2];if(e&7)break a;b=J[c+64>>2];if(!((b| -0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=e|4;return-1}b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;c:{if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;e=K[b|0];break c}e=jd(c,1);if((e|0)==-1)break a}J[d>>2]=e&255;break b}b=-1;if(Lg(c,d))break a}b=-1;d=J[c+8>>2];if(d&7)break a;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;return-1}b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;d:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break d}d=jd(c,1);if((d|0)==-1)break a}a=a+16|0;H[a| -0]=d;b=-1;if(D9(c,d&1,a))break a;b=0-(J[c+8>>2]&1)|0}return b|0}function _T(a,b,c){var d=0,e=0,f=0;f=bc-16|0;bc=f;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b:{c:{d=J[b>>2];if((d|0)<(c|0))while(1){J[695492]=0;e=f+8|0;da(5431,e|0,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;J[695492]=0;aa(5170,a|0,e|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;sc(e);d=J[b>>2]+1|0;J[b>>2]=d;if((c|0)>(d|0))continue;break}d:{e:{if((c|0)<(d|0))while(1){e=d-1|0;J[b>>2]=e;J[695492]=0;d=f+8|0;da(5429,d|0,e|0);e=J[695492];J[695492]= -0;if((e|0)==1)break e;J[695492]=0;aa(5170,a|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break d;sc(d);d=J[b>>2];if((d|0)>(c|0))continue;break}bc=f+16|0;return}d=Z()|0;break a}d=Z()|0;sc(f+8|0);break a}d=Z()|0;break a}d=Z()|0;sc(f+8|0)}sc(a);ba(d|0);B()}function XGa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(!c)break a;Hc(d,2,2344629,0);if(!_W(J[a>>2],b,c,d,e)){Hc(d,1,2338321,0);return 0}f=1;if(J[J[a>>2]+60>>2])break a;f=0;e=a+108|0;if(!UW(c,e,d))break a;b=1;b:{c:switch(J[a+48>>2]-12| -0){case 5:b=2;break b;case 6:b=3;break b;case 12:b=4;break b;case 0:b=5;break b;case 4:break b;default:break c}b=-1}J[c+20>>2]=b;b=J[a+120>>2];d:{if(!b)break d;if(!J[b+12>>2]){qc(J[b+4>>2]);qc(J[J[a+120>>2]+8>>2]);qc(J[J[a+120>>2]>>2]);b=J[a+120>>2];f=J[b+12>>2];if(f){qc(f);b=J[a+120>>2]}qc(b);J[a+120>>2]=0;break d}if(!TW(c,e,d))break a}if(J[a+116>>2])SW(c,e,d);f=1;b=J[e>>2];if(!b)break a;J[c+28>>2]=b;J[c+32>>2]=J[a+112>>2];J[a+108>>2]=0}return f|0}function JVa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e= -0;d=bc-48|0;bc=d;a=cB(a,b,c);J[a>>2]=827412;J[d+32>>2]=13;J[d+16>>2]=13;J[695492]=0;J[d>>2]=13;e=c;c=d+16|0;aa(3289,e|0,c|0)|0;e=J[695492];J[695492]=0;a:{if((e|0)==1)break a;b=J[b+24>>2];J[695492]=0;ha(3207,c|0,b|0,d|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;b=ha(3203,J[d+8>>2],804102,d+32|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(J[b>>2]==7)J[a+4>>2]=J[a+4>>2]|512;J[695492]=0;_(3205,d+32|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;bc=d+48|0;return a|0}b=Z()|0;em(a);ba(b|0);B()}function GM(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!b)break a;b:{c:{d:{if(a){d=K[a|0];if(d)break d;break b}a=J[b>>2];if(!a)break a;break c}while(1){if(!Yf(226024,d<<24>>24))break c;c=c+1|0;d=K[c+a|0];if(d)continue;break}c=0;break b}d=c;g=a+c|0;f=K[g|0];e:{if(!f)break e;while(1){if(Yf(226024,f<<24>>24))break e;d=d+1|0;f=K[d+a|0];if(f)continue;break}}e=d- -c|0;f=bd(e+1|0,1);f:{if(!f|(e|0)<=0)break f;c=0;while(1){h=K[c+g|0];if(h){H[c+f|0]=h;c=c+1|0;if((e|0)!=(c|0))continue;break f}break}if((c|0)>=(e|0))break f;wc(c+f|0,0,e-c|0)}c=0;e=a+d|0;g=H[e|0];if(!g)break b;if(!Yf(226024,g)){c=e;break b}while(1){d=d+1|0;e=d+a|0;g=H[e|0];if(!g)break b;if(Yf(226024,g))continue;break}c=e}J[b>>2]=c}return f}function $pa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=bc-16|0;bc=g;h=rc(80);J[695492]=0;c=ga(5528,h|0,c|0,d|0)|0;d=J[695492];J[695492]=0;a:{b:{c:{d:{if((d| -0)!=1){J[a>>2]=0;md(a,c);d=J[b>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break d;f=J[b>>2]}J[695492]=0;J[g+12>>2]=f;ca(5529,c|0,g+12|0,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;J[g+12>>2]=0;e:{if(!f)break e;J[695492]=0;a=J[f+4>>2]-1|0;J[f+4>>2]=a;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(a)break e;J[695492]=0;_(4987,f|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=g+16|0;return}a=Z()|0;qc(h);ba(a|0);B()}f=Z()|0;break b}f=Z()|0;vc(g+12|0)}vc(a); -ba(f|0);B()}ea(0)|0;yc();B()}function eva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=bc-32|0;bc=e;a:{b:{if(J[a+92>>2]>0)while(1){if(!(J[a+116>>2]<=(d|0)&J[a+120>>2]>=(d|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=J[a+104>>2];g=J[a+108>>2];c=rc(12);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=J[f+(d-g<<2)>>2];of(b,c);if(!(J[a+140>>2]<=(d|0)&J[a+144>>2]>=(d|0))){a=Kc(e+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break b;break a}f=J[a+128>>2];g=J[a+132>>2];c=rc(12);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=J[f+(d-g<<2)>>2];of(b,c);d=d+1|0;if((d|0)>2])continue;break}bc=e+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Yr(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;j=bc-16|0;bc=j;if((b^-1)+1073741807>>>0>=c>>>0){if(K[a+11|0]>>>7|0)i=J[a>>2];else i=a;k=i;i=j+4|0;l=i;if(b>>>0<536870887){J[j+12>>2]=b<<1;J[j+4>>2]=b+c;c=bc-16|0;bc=c;bc=c+16|0;c=j+12|0;c=J[(M[i>>2]>2]?c:i)>>2];if(c>>>0>=2){i= -c+4&-4;c=i-1|0;c=(c|0)==2?i:c}else c=1;c=c+1|0}else c=1073741807;Cn(l,a,c);c=J[j+4>>2];if(e)kk(c,k,e);if(g)kk(c+(e<<2)|0,h,g);i=e+f|0;h=d-i|0;if((d|0)!=(i|0)){d=e<<2;kk((d+c|0)+(g<<2)|0,(d+k|0)+(f<<2)|0,h)}b=b+1|0;if((b|0)!=2)Fu(k,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[j+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;b=a;a=h+(e+g|0)|0;J[b+4>>2]=a;J[j+12>>2]=0;J[c+(a<<2)>>2]=J[j+12>>2];bc=j+16|0;return}Id(a);B()}function UPa(a){a=a|0;var b=0,c=0,d=0,e=0;b=rc(96);c=J[a+12>>2];d=J[a+16>>2]; -e=J[J[d>>2]+8>>2];J[695492]=0;d=$(e|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[b+16>>2]=d;J[b+12>>2]=c;J[b>>2]=2206048;J[b+4>>2]=15;J[b+8>>2]=0;c=J[a+92>>2];J[b+88>>2]=J[a+88>>2];J[b+92>>2]=c;c=J[a+28>>2];J[b+24>>2]=J[a+24>>2];J[b+28>>2]=c;c=J[a+36>>2];J[b+32>>2]=J[a+32>>2];J[b+36>>2]=c;c=J[a+44>>2];J[b+40>>2]=J[a+40>>2];J[b+44>>2]=c;c=J[a+52>>2];J[b+48>>2]=J[a+48>>2];J[b+52>>2]=c;c=J[a+60>>2];J[b+56>>2]=J[a+56>>2];J[b+60>>2]=c;d=a- -64|0;e=J[d+4>>2];c=b- -64|0;J[c>>2]=J[d>>2];J[c+4>>2]=e;c= -J[a+76>>2];J[b+72>>2]=J[a+72>>2];J[b+76>>2]=c;c=J[a+84>>2];J[b+80>>2]=J[a+80>>2];J[b+84>>2]=c;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function p0(a,b,c,d,e){var f=0;e=b?P(K[a|0],30)+e|0:e+1740|0;if((d|0)>=11){f=d-11|0;d=(d-b|0)-2|0;e=K[((d|0)<0?f:d)+c|0]+e|0;d=10;b=(b|0)>=10?10:b}a:switch(b-1|0){case 9:e=K[a+9|0]+e|0;case 8:e=K[a+8|0]+e|0;case 7:e=K[a+7|0]+e|0;case 6:e=K[a+6|0]+e|0;case 5:e=K[a+5|0]+e|0;case 4:e=K[a+4|0]+e|0;case 3:e=K[a+3|0]+e|0;case 2:e=K[a+2|0]+e|0;case 1:e=K[a+1|0]+e|0;case 0:e= -K[a|0]+e|0;break;default:break a}a=d-b|0;b=(a|0)>0;e=b?e+58|0:e;b:switch(a+(b^-1)|0){case 9:e=K[c+9|0]+e|0;case 8:e=K[c+8|0]+e|0;case 7:e=K[c+7|0]+e|0;case 6:e=K[c+6|0]+e|0;case 5:e=K[c+5|0]+e|0;case 4:e=K[c+4|0]+e|0;case 3:e=K[c+3|0]+e|0;case 2:e=K[c+2|0]+e|0;case 1:e=K[c+1|0]+e|0;case 0:e=K[c|0]+e|0;break;default:break b}return e}function o1(a,b){var c=0,d=Q(0),e=0,f=0,g=Q(0);a:{if(J[b>>2]<=0){c=Wh(52);if(!c){J[b>>2]=7;return 0}b:{if(J[b>>2]<=0){H[c+49|0]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+12>>2]= -0;J[c+8>>2]=2874;J[c+4>>2]=2873;H[c+48|0]=a;J[c+40>>2]=1056964608;J[c+44>>2]=0;f=J[(a<<2)+735104>>2];J[c+28>>2]=f;e=P(f,12);a=Wh(e);J[c>>2]=a;if(a)break b;J[b>>2]=7}H[c+49|0]=1;break a}e=a+e|0;while(1){J[a+8>>2]=0;J[a>>2]=-2147483647;J[a+4>>2]=0;a=a+12|0;if(e>>>0>a>>>0)continue;break}J[c+24>>2]=0;d=Q(f|0);g=Q(d*Q(0));c:{if(Q(R(g))>2]=a;d=Q(d*Q(.5));d:{if(Q(R(d))>2]=a;a=J[b>>2];H[c+49|0]=1;if((a|0)> -0)break a}return c}Gf(c);return 0}function nwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;d=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=d;d=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=d;J[a+32>>2]=J[b+32>>2];Ln(a+36|0,b+36|0);J[a+52>>2]=J[b+52>>2];d=c;c=d-1|0;b=b+56|0;a=a+56|0;if(d)continue;break a}while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>> -2];J[a+12>>2]=d;d=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=d;d=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=d;J[a+32>>2]=J[b+32>>2];d=b+36|0;Ln(a+36|0,d);J[a+52>>2]=J[b+52>>2];$c(d);d=c;c=d-1|0;b=b+56|0;a=a+56|0;if(d)continue;break}}}function jL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+4>>2];a:{if(b>>>0>=2){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=15;gc[J[J[a>>2]>>2]](a);break a}if((b|0)!=1)break a;c=J[d+68>>2];if(c)while(1){if(J[c+40>>2]){J[c+40>>2]=0;gc[J[c+56>>2]](a,c+48|0)}c=J[c+44>>2];if(c)continue; -break}J[d+68>>2]=0;c=J[d+72>>2];if(c)while(1){if(J[c+40>>2]){J[c+40>>2]=0;gc[J[c+56>>2]](a,c+48|0)}c=J[c+44>>2];if(c)continue;break}J[d+72>>2]=0}b=(b<<2)+d|0;c=J[b+60>>2];J[b+60>>2]=0;if(c)while(1){a=J[c>>2];e=J[c+4>>2]+J[c+8>>2]|0;qc(c);J[d+76>>2]=J[d+76>>2]-(e+16|0);c=a;if(c)continue;break}c=J[b+52>>2];J[b+52>>2]=0;if(c)while(1){a=J[c>>2];b=(J[c+4>>2]+J[c+8>>2]|0)+16|0;qc(c);J[d+76>>2]=J[d+76>>2]-b;c=a;if(c)continue;break}}function $u(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{d=J[a+4>>2]; -h=J[a>>2];f=d-h>>3;c=f+1|0;if(c>>>0<536870912){g=J[a+8>>2]-h|0;e=g>>2;c=g>>>0>=2147483640?536870911:c>>>0>>0?e:c;if(c>>>0>=536870912)break a;e=f<<3;f=c<<3;g=rc(f);c=e+g|0;J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;e=c+8|0;if((d|0)!=(h|0))while(1){c=c-8|0;d=d-8|0;J[c>>2]=J[d>>2];J[c+4>>2]=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;if((d|0)!=(h|0))continue;break}J[a+8>>2]=f+g;b=J[a>>2];J[a>>2]=c;d=J[a+4>>2];J[a+4>>2]=e;if((b|0)!=(d|0))while(1){d=d-8|0;a=J[d+4>>2];b:{if(!a)break b;c=J[a+4>>2]; -J[a+4>>2]=c-1;if(c)break b;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if((b|0)!=(d|0))continue;break}if(b)qc(b);return}ph(a);B()}Sd();B()}function Vv(a){var b=0,c=0,d=0,e=0;a:{b:{if(!J[a+12>>2]){c=J[a+8>>2];b=J[J[c>>2]+48>>2];J[695492]=0;_(b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}while(1){b=J[a+28>>2];if(!J[b+668>>2])break a;J[695492]=0;d=$(3393,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+28>>2]=d;c=J[a+8>>2];b=J[J[c>>2]+68>>2];J[695492]=0;da(b|0,c|0,d|0);b=J[695492];J[695492]=0;if((b|0)!= -1)continue;break}}ea(0)|0;yc();B()}qc(Nq(b));c=J[a+20>>2];if(c)while(1){b=J[c+104>>2];qc(sI(c));J[a+20>>2]=b;c=b;if(b)continue;break}e=J[a+104>>2];c=J[e+8>>2];if((c|0)>0){d=0;while(1){b=J[J[e>>2]+(d<<2)>>2];if(b){qc(b);c=J[e+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}}qc(dd(e));b=J[a+112>>2];if(b)qc(dd(b));return a}function Uba(a){a=a|0;var b=0,c=0,d=0,e=0;a:{c=J[a+584>>2];if(c){J[a+672>>2]=J[c+160>>2];J[a+668>>2]=J[c+164>>2];b=J[c+252>>2];if(b)qc(b);b=J[c+256>>2];if(b)qc(b);b=J[c+260>>2];if(b)qc(b); -b=J[c+264>>2];if(b)qc(b);b=J[c+268>>2];if(b)qc(b);b=J[c+272>>2];if(b)qc(b);b=J[c+276>>2];if(b)qc(b);b=J[c+280>>2];if(b)qc(b);b=J[c+284>>2];if(b)qc(b);b=J[c+288>>2];if(b)qc(b);b=J[c+292>>2];if(b)qc(b);b=J[c+296>>2];if(b)qc(b);if(K[c+400|0]){d=J[a+584>>2];if(!K[d+400|0])break a;b=d+536|0;e=J[b+4>>2];if(e)gc[J[e+40>>2]](b);J[b+20>>2]=0;J[b+4>>2]=0;H[d+400|0]=0}b=J[c+1084>>2];if(b)qc(b);b=J[c+1104>>2];if(b)qc(b);b=J[c+5256>>2];if(b)qc(b);qc(c);J[a+584>>2]=0;Bq(a)}return}fa(89852,70456,1196,97146);B()} -function Tw(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=350128;J[695492]=0;c=J[689330];b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;if(c){J[695492]=0;c=J[689330];b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[J[c>>2]+32>>2];J[695492]=0;_(b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}c=J[a+8>>2];d=a+12|0;if((c|0)!=(d|0))while(1){e=J[c+28>>2];if(e){b=J[J[e>>2]+12>>2];J[695492]=0;$(b|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break b}while(1){b= -c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}b=a+8|0;Sw(b,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0;Sw(b,0);return a|0}ea(0)|0;yc();B()}function RC(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,p=0;k=e>>8;if((d|0)==(f|0)){Op(a,k,b);return}p=e&255;g=c&255;l=c>>8;if((l|0)!=(k|0)){h=f-d|0;m=1;c=e-c|0;a:{if((c|0)>0){n=256;e=256-g|0;break a}c=0-c|0;m=-1;e=g}i=P(e,h);e=(i|0)/(c|0)|0;j=i-P(c,e)|0;o=j>>31;i=e+o|0;J[a+184>>2]=i+J[a+184>>2];J[a+180>>2]=J[a+180>> -2]+P(i,g|n);e=l+m|0;Op(a,e,b);d=d+i|0;if((e|0)!=(k|0)){h=h<<8;g=(h|0)/(c|0)|0;h=h-P(c,g)|0;i=h>>31;l=(i&c)+h|0;i=g+i|0;g=j+(c&o)|0;while(1){g=g+l|0;j=(g|0)>=(c|0);h=j+i|0;J[a+184>>2]=h+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+(h<<8);e=e+m|0;Op(a,e,b);g=g-(j?c:0)|0;d=d+h|0;if((e|0)!=(k|0))continue;break}}g=256-n|0}b=f-d|0;J[a+184>>2]=b+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+P(b,g+p|0)}function Jq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;b=bc-32|0;bc=b;e=b+16|0;d=K[c+11|0];f=d<<24>>24<0;lm(e,f?J[c>>2]:c,f? -J[c+4>>2]:d,0);d=K[b+27|0];c=d<<24>>24<0;a:{b:{if(!(!(c?J[b+20>>2]:d)|K[(c?J[b+16>>2]:e)|0]!=47)){J[695492]=0;c=e;e=b+31|0;c=ma(3066,b+4|0,c|0,1,-1,e|0)|0;d=J[695492];J[695492]=0;c:{if((d|0)!=1){J[695492]=0;H[b+31|0]=1;ca(4747,a|0,c|0,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;if(H[c+11|0]>=0)break a;qc(J[c>>2]);break a}a=Z()|0;break b}a=Z()|0;if(H[c+11|0]>=0)break b;qc(J[c>>2]);break b}J[695492]=0;H[b+4|0]=1;ca(4747,a|0,b+16|0,b+4|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a;a=Z()|0}if(H[b+ -27|0]<0)qc(J[b+16>>2]);ba(a|0);B()}if(H[b+27|0]<0)qc(J[b+16>>2]);bc=b+32|0}function Dcb(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;c=bc-32|0;bc=c;f=J[b+96>>2];a:{if((f|0)<0|J[a+300>>2]<=(f|0))break a;g=J[a+304>>2];if((gc[J[b+52>>2]](b,6,c,3)|0)<6)break a;e=J[c+12>>2];if(!e)break a;h=P(f,252)+g|0;i=h+216|0;d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){j=a,k=td(1E3,d),I[j+68>>1]=k;j=c,k=td(J[c>>2],d),J[j>>2]=k;j=c,k=td(J[c+4>>2],d),J[j+4>>2]=k;j=c,k=td(J[c+8>>2],d),J[j+8>>2]=k;j=c,k=td(J[c+16>> -2],d),J[j+16>>2]=k;j=c,k=td(J[c+20>>2],d),J[j+20>>2]=k;e=J[c+12>>2]<0?-65536:65536;J[c+12>>2]=e}J[i>>2]=J[c>>2];a=P(f,252)+g|0;J[a+224>>2]=J[c+4>>2];d=J[c+8>>2];J[a+228>>2]=e;J[a+220>>2]=d;if(!$C(i)){J[b+12>>2]=3;break a}J[h+232>>2]=I[c+18>>1];J[a+236>>2]=I[c+22>>1]}bc=c+32|0}function Ckb(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;f=bc-16|0;bc=f;c=J[a>>2];a:{if(K[c+8|0]&2){if(!(gc[J[J[c+540>>2]+104>>2]](c,b,f+12|0)|0)){s6(a,J[f+12>>2]);break a}J[a+44>>2]=-1;c=J[a>>2]}xr(c,b);c=J[a>>2];b= -J[J[c+712>>2]+3080>>2];c=gh(J[J[c+96>>2]+4>>2],241698);if(!c|!b)break a;b=J[b>>2];if(!b)break a;g=gc[b|0](c)|0;if(!g)break a;h=J[J[a>>2]+712>>2];c=J[h+1440>>2];i=J[J[a+40>>2]>>2];gc[J[g+4>>2]](J[i>>2],J[a+16>>2],J[a+20>>2],0,0);e=J[h+2024>>2];if(!e)break a;while(1){b=J[a+16>>2];e=e-1|0;j=e<<2;d=J[J[(j+h|0)+2028>>2]+68>>2];b:{if((d|0)!=(c|0)){b=Dd(b,c,d);d=Dd(J[a+20>>2],c,d);break b}d=J[a+20>>2]}gc[J[g+4>>2]](J[(i+j|0)+4>>2],b,d,0,0);if(e)continue;break}}bc=f+16|0;return 0}function qla(a,b){a=a|0; -b=b|0;var c=0,d=0,e=0,f=0,g=0;c=rc(68);J[c+16>>2]=0;J[c+20>>2]=0;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+44>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;I[c+22>>1]=65535;H[c+31|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;J[695492]=0;e=c+8|0;aa(6411,e|0,b|0)|0;d=J[695492];J[695492]=0;a:{if((d|0)!=1){I[c+48>>1]=L[b+40>>1];d=c+52|0;if(H[b+55|0]>=0){e=J[b+48>>2];J[d>>2]=J[b+44>>2];J[d+4>>2]=e;J[d+8>>2]=J[b+52>>2];break a}f=J[b+48>>2];g=J[b+44>>2];J[695492]=0;ca(15,d|0,g|0,f|0);d= -J[695492];J[695492]=0;if((d|0)!=1)break a}a=Z()|0;av(e);qc(c);ba(a|0);B()}b=L[b+56>>1];J[c+4>>2]=a;I[c- -64>>1]=b;b=J[a>>2];J[c>>2]=b;J[b+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1}function dS(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2451100;d=J[a+60>>2];c=J[a+56>>2];if((d|0)!=(c|0))while(1){d=d-8|0;b=J[d+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((c|0)!=(d|0))continue;break}J[a+60>>2]=c;b=J[a+88>>2];b:{if(!b)break b;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break b; -gc[J[J[b>>2]+8>>2]](b);Vc(b)}b=J[a+80>>2];c:{if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;gc[J[J[b>>2]+8>>2]](b);Vc(b)}b=J[a+56>>2];if(b){c=b;d=J[a+60>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];d:{if(!c)break d;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break d;gc[J[J[c>>2]+8>>2]](c);Vc(c)}if((b|0)!=(d|0))continue;break}c=J[a+56>>2]}J[a+60>>2]=b;qc(c)}return a|0}function Xoa(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;h=bc-16|0;bc=h;a:{if(!a|!d|((b|0)>(c|0)|(e|0)>(f| -0)))break a;while(1){i=(b<<3)+a|0;g=J[(e<<3)+d>>2];b:{if(g){gc[J[J[g>>2]+28>>2]](h+12|0,g,1);break b}J[h+12>>2]=0}J[695492]=0;aa(4993,i|0,h+12|0)|0;g=J[695492];J[695492]=0;c:{if((g|0)!=1){g=J[h+12>>2];J[h+12>>2]=0;if(!g)break c;J[695492]=0;j=J[g+4>>2]-1|0;J[g+4>>2]=j;k=J[695492];J[695492]=0;if((k|0)!=1){if(j)break c;J[695492]=0;_(4987,g|0);g=J[695492];J[695492]=0;if((g|0)!=1)break c}ea(0)|0;yc();B()}a=Z()|0;vc(h+12|0);ba(a|0);B()}g=J[i>>2];J[i+4>>2]=J[(g?g+12|0:2728584)>>2];if((b|0)>=(c|0))break a; -b=b+1|0;g=(e|0)<(f|0);e=e+1|0;if(g)continue;break}}bc=h+16|0}function cP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=bc-16|0;bc=e;J[e+12>>2]=d;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if(d>>>0>>0){ax(a);B()}if(K[b+11|0]>>>7|0)b=J[b>>2];J[e+4>>2]=d-c;g=b+c|0;b=bc-16|0;bc=b;bc=b+16|0;d=bc-16|0;bc=d;a:{b=e+4|0;c=e+12|0;c=J[(M[b>>2]>2]?b:c)>>2];if(c>>>0<=2147483631){b:{if(c>>>0<11){H[a+11|0]=c|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;b=a;break b}h=d+8|0;if(c>>>0>=11){f= -c+16&-16;b=f-1|0;b=(b|0)==11?f:b}else b=10;es(h,b+1|0);b=J[d+8>>2];J[a>>2]=b;J[a+8>>2]=J[a+8>>2]&-2147483648|J[d+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}Mj(b,g,c);H[d+7|0]=0;H[b+c|0]=K[d+7|0];bc=d+16|0;break a}Id(a);B()}bc=e+16|0;return a|0}function M8a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-48|0;bc=c;a:{if(H[b+11|0]>=0){J[c+40>>2]=J[b+8>>2];d=J[b+4>>2];J[c+32>>2]=J[b>>2];J[c+36>>2]=d;break a}Re(c+32|0,J[b>>2],J[b+4>>2])}J[c+20>>2]=92;J[c+24>>2]=0;H[c+31|0]=1;J[695492]=0;J[c+ -8>>2]=47;J[c+12>>2]=0;H[c+19|0]=1;ca(2272,c+32|0,c+20|0,c+8|0);b=J[695492];J[695492]=0;b:{c:{if((b|0)!=1){if(H[c+19|0]<0)qc(J[c+8>>2]);if(H[c+31|0]<0)qc(J[c+20>>2]);b=0;J[695492]=0;d=xi(a+8|0,c+32|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;b=(a+12|0)!=(d|0)?J[d+28>>2]:b;if(H[c+43|0]<0)qc(J[c+32>>2]);bc=c+48|0;return b|0}b=Z()|0;if(H[c+19|0]<0)qc(J[c+8>>2]);if(H[c+31|0]>=0)break b;qc(J[c+20>>2]);break b}b=Z()|0}if(H[c+43|0]<0)qc(J[c+32>>2]);ba(b|0);B()}function pwb(a,b,c){a=a|0;b=b|0;c=c|0;var d= -0,e=0;J[a>>2]=212608;d=a+4|0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=413844;e=J[J[a>>2]+12>>2];J[695492]=0;_(e|0,a|0);e=J[695492];J[695492]=0;a:{if((e|0)==1)break a;b:{c:{if((c|0)>0){J[695492]=0;b=ga(3,d|0,b|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(!b)break c;break b}J[695492]=0;b=aa(17,d|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b}J[695492]=0;_(21,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}J[695492]=0;b=J[d+4>>2];c=J[695492];J[695492]=0;if((c| -0)==1)break a;J[a+20>>2]=b;J[695492]=0;b=J[d+12>>2];c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+32>>2]=b;return a|0}a=Z()|0;ve(d);ba(a|0);B()}function di(){var a=0,b=0,c=0,d=0;a:{b:{a=J[689895];if(!a){a=rc(92);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2406456;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[695492]=0;c=aa(5080,a+8|0,2406656)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){J[a+36>>2]=0;J[a+40>>2]=0;J[a+60>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[695492]=0; -d=aa(5080,a+36|0,2406656)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+64>>2]=0;J[a+68>>2]=0;J[a+88>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[695492]=0;aa(5080,a- -64|0,2406676)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;Bd(d);Bd(c);break a}b=Z()|0;break a}J[689895]=a}return a|0}b=Z()|0;Bd(c)}qc(a);ba(b|0);B()}function q1a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=J[a+448>>2];if(J[b+16>>2]){k=b;a:{b:{if(!J[a+160>>2]|(!J[a+80>>2]|!J[a+224>>2]))break b; -c=J[b+112>>2];if(!c){c=gc[J[J[a+4>>2]>>2]](a,1,P(J[a+36>>2],24))|0;J[b+112>>2]=c}if(J[a+36>>2]<=0)break b;d=J[a+216>>2];while(1){b=J[d+80>>2];if(!b|!L[b>>1]|(!L[b+2>>1]|!L[b+16>>1]))break b;if(!L[b+4>>1]|(!L[b+32>>1]|!L[b+18>>1]))break b;b=J[a+160>>2]+(e<<8)|0;if(J[b>>2]<0)break b;f=J[b+4>>2];J[c+4>>2]=f;g=J[b+8>>2];J[c+8>>2]=g;h=J[b+12>>2];J[c+12>>2]=h;i=J[b+16>>2];J[c+16>>2]=i;b=J[b+20>>2];J[c+20>>2]=b;j=b|i|(f|g|h)?1:j;d=d+88|0;c=c+24|0;e=e+1|0;if((e|0)>2])continue;break}b=402;if(j)break a}b= -398}J[k+12>>2]=b}J[a+156>>2]=0}function VVa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=bc-48|0;bc=b;a:{if(!a|J[a>>2]!=7)break a;J[b+32>>2]=13;d=b+32|0;if(J[Bc(J[a+8>>2],775062,d,0)>>2]==3){c=rc(12);J[695492]=0;e=aa(3187,c|0,J[b+40>>2])|0;f=J[695492];J[695492]=0;if((f|0)!=1){uc(d);J[b+16>>2]=13;J[b>>2]=13;Bc(J[a+8>>2],775727,b+16|0,0);b:{if(J[b+16>>2]!=7)break b;a=0;while(1){if(J[Bc(J[b+24>>2],775062,b+32|0,0)>>2]==3){if(J[e+4>>2])VX(e);DH(e,J[b+40>>2])}uc(b+32|0);Bc(J[b+24>>2],775727,b,0);uc(b+16|0);c=J[b+ -12>>2];J[b+24>>2]=J[b+8>>2];J[b+28>>2]=c;d=J[b+4>>2];c=J[b>>2];J[b+16>>2]=c;J[b+20>>2]=d;if((c|0)!=7)break b;c=a>>>0<49;a=a+1|0;if(c)continue;break}}uc(b+16|0);break a}a=Z()|0;qc(c);ba(a|0);B()}uc(b+32|0)}bc=b+48|0;return e|0}function QW(a){var b=0,c=0;rd(a,J[a+468>>2]);J[a+468>>2]=0;b=J[a+472>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){rd(a,J[J[a+472>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue;break}b=J[a+472>>2]}rd(a,b);J[a+472>>2]=0}rd(a,J[a+476>>2]);J[a+476>> -2]=0;rd(a,J[a+480>>2]);J[a+480>>2]=0;b=J[a+484>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){rd(a,J[J[a+484>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue;break}b=J[a+484>>2]}rd(a,b);J[a+484>>2]=0}b=J[a+488>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){rd(a,J[J[a+488>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue;break}b=J[a+488>>2]}rd(a,b);J[a+488>>2]=0}}function pO(){var a=0,b=0;a=bc-16|0;bc=a;J[a+12>>2]=734;J[a+8>>2]=735;J[a+4>>2]= -736;b=a+4|0;Am(0,197904,197904,199261,b);J[a+12>>2]=737;J[a+8>>2]=738;J[a+4>>2]=739;Am(1,199983,199983,200982,b);Am(1,199983,201305,200982,b);Am(1,199983,202090,200982,b);J[a+12>>2]=740;J[a+8>>2]=741;J[a+4>>2]=742;Am(2,202570,202570,203476,b);J[a+12>>2]=743;J[a+8>>2]=744;J[a+4>>2]=745;Am(3,203785,203785,204328,b);J[a+12>>2]=746;J[a+8>>2]=747;J[a+4>>2]=748;Am(4,204708,204708,205027,b);J[a+12>>2]=749;J[a+8>>2]=750;J[a+4>>2]=751;Am(5,205231,205231,205527,b);J[a+12>>2]=752;J[a+8>>2]=753;J[a+4>>2]=754; -Am(6,205681,205681,206032,b);J[a+12>>2]=755;J[a+8>>2]=756;J[a+4>>2]=757;Am(7,206101,206101,206329,b);bc=a+16|0;return 0}function UCa(a){a=a|0;var b=0,c=0;c=bc-32|0;bc=c;a:{b=J[a+16>>2];if((b|0)>0){if((b|0)>=J[a+20>>2]){a=Kc(c+8|0,2379059,2373971,963,2384399,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}b=b+J[a+36>>2]|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27| -0]=0;H[b+28|0]=0;H[b+29|0]=0;H[b+30|0]=0;H[b+31|0]=0;H[b+16|0]=0;H[b+17|0]=0;H[b+18|0]=0;H[b+19|0]=0;H[b+20|0]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0;H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;J[a+24>>2]=J[a+16>>2]+1;HV(a)}J[a+24>>2]=0;J[a+16>>2]=0;bc=c+32|0;return}B()}function MEa(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;f=bc-16|0;bc=f;i=b+4|0;g=i;h=g;a:{e=J[b+4>>2];b:{c:{if(!e)break c;while(1){h=e;j=e+16|0;if(Qm(c,j)){g=e;e=J[e>> -2];if(e)continue;break c}if(Qm(j,c)){g=h+4|0;e=J[h+4>>2];if(e)continue;break c}break}c=J[g>>2];e=0;if(c)break b}e=rc(32);H[f+12|0]=0;J[f+8>>2]=i;J[f+4>>2]=e;J[695492]=0;Vl(e+16|0,d);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[d+12>>2];J[e+8>>2]=h;J[e>>2]=0;J[e+4>>2]=0;J[e+28>>2]=c;J[g>>2]=e;c=J[J[b>>2]>>2];if(c){J[b>>2]=c;e=J[g>>2]}Ic(J[b+4>>2],e);J[b+8>>2]=J[b+8>>2]+1;c=J[f+4>>2];e=1}H[a+4|0]=e;J[a>>2]=c;bc=f+16|0;return}b=Z()|0;a=J[f+4>>2];J[f+4>>2]=0;if(a){if(K[f+12|0])Lc(a+16|0);qc(a)}ba(b| -0);B()}function Ifb(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;d=bc-48|0;bc=d;c=J[a>>2];e=J[c+20>>2];a:{b:{c:{if(!((e|0)<=0|(e|0)>J[c+116>>2])){a=J[c+112>>2]+(e<<2)|0;break c}f=J[c+120>>2];if(!f)break b;a=J[c+124>>2];if((a|0)>(e|0)|(e|0)>J[c+128>>2])break b;a=f+(e-a<<2)|0}f=J[a>>2];if(f)break a}J[c+24>>2]=e;f=J[J[c+112>>2]>>2]}a=f;d:{e:{while(1){e=K[a|0];if(!e)break e;a=a+1|0;if((e|0)!=37)continue;break}if(K[a|0]!=115)break e;J[d+32>>2]=c+24;Vf(b,f,d+32|0);break d}g=J[c+32>>2];h=J[c+ -36>>2];i=J[c+40>>2];j=J[c+44>>2];k=J[c+24>>2];e=J[c+28>>2];a=J[c+52>>2];J[d+24>>2]=J[c+48>>2];J[d+28>>2]=a;J[d+16>>2]=i;J[d+20>>2]=j;J[d+8>>2]=g;J[d+12>>2]=h;J[d>>2]=k;J[d+4>>2]=e;Vf(b,f,d)}bc=d+48|0}function jh(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;while(1){e=(p<<2)+a|0;c=J[e>>2];g=c>>>24|0;h=g<<1;h=(c|0)<0?h^27:h;f=h<<1;i=h<<24>>24<0?f^27:f;j=c>>>8|0;f=j<<1;f=j<<24>>24<0?f^27:f;b=f<<1;l=f<<24>>24<0?b^27:b;q=i^l;k=c>>>16|0;b=k<<1;b=k<<24>>24<0?b^27:b;m=b<< -1;m=b<<24>>24<0?m^27:m;n=m<<1;n=m<<24>>24<0?n^27:n;k=n^k;d=i<<1;d=i<<24>>24<0?d^27:d;i=g^d;r=e;o=l<<1;l=l<<24>>24<0?o^27:o;j=j^l;s=h^(b^q)^d;e=c<<1;e=c<<24>>24<0?e^27:e;g=e<<1;g=e<<24>>24<0?g^27:g;d=g<<1;d=g<<24>>24<0?d^27:d;c=c^d;o=b;b=g^m;J[r>>2]=(k^(j^(s^c)))<<24|((i^(j^(c^(o^(b^f))^n)))&255)<<16|((k^(i^(c^(f^(e^q))^l)))&255)<<8|(j^(i^(k^(h^(b^e)^d))))&255;p=p+1|0;if((p|0)!=4)continue;break}}function YV(a,b,c){var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;J[d+12>>2]=0;e=J[a+200>>2];if(e&1){a:{if(e&4){Yc(a, -63217);Ld(a,c);break a}if(e&2)Yc(a,63274);if(!(!b|!(K[b+8|0]&2))){Yc(a,63454);Ld(a,c);break a}if(!(((K[a+401|0]==3?3:K[a+405|0])|0)==(c|0)&c>>>0<=4)){Yc(a,63539);Ld(a,c);break a}f=d+12|0;qg(a,f,c);pe(a,f,c);if(Ld(a,0))break a;e=K[d+12|0];b:{if(K[a+401|0]&2){c=K[d+13|0];g=K[d+14|0];f=f|3;break b}H[a+495|0]=e;c=e;g=c;f=d+12|1}H[a+496|0]=K[f|0];H[a+494|0]=g;H[a+493|0]=c;H[a+492|0]=e;if(!(!a|!b)){c=K[a+492|0]|K[a+493|0]<<8|(K[a+494|0]<<16|K[a+495|0]<<24);H[b+68|0]=c;H[b+69|0]=c>>>8;H[b+70|0]=c>>>16;H[b+ -71|0]=c>>>24;H[b+72|0]=K[a+496|0];J[b+8>>2]=J[b+8>>2]|2}}bc=d+16|0;return}Ad(a,63041);B()}function sIa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[J[a+16>>2]+40>>2];if(!e)return 0;b=bc-32|0;bc=b;a=J[e>>2];a:{if(!a)break a;a=J[a+32>>2];if(!a)break a;f=J[a>>2];if(!f)break a;J[b+20>>2]=1E3;J[b+12>>2]=231644;a=zc(1E3);J[b+16>>2]=a;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;c=4;J[b+28>>2]=4;J[b+24>>2]=a+4;g=J[f+8>>2];if((g|0)>0){while(1){b:{a=J[J[f>>2]+(d<<2)>>2];if(!a)break b;c=J[e>>2];J[695492]=0;ia(3532, -c|0,a|0,b+12|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;J[b+12>>2]=231644;c=J[b+16>>2];if(c)qc(c);ba(a|0);B()}d=d+1|0;if((g|0)!=(d|0))continue;break}c=J[b+28>>2];a=J[b+16>>2]}H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24;d=J[b+16>>2]}bc=b+32|0;return d|0}function o7(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!b)break a;J[b>>2]=0;if(!a)break a;d=J[a+12>>2];f=bd(d,4);if(!f)break a;g=bd(d,4);if(!g)break a;h=bd(d,4);if(!h)break a;b:{if((d|0)<=0)break b;i=J[a>>2];a=0;if((d| -0)!=1){k=d&-2;while(1){c=a<<2;e=c+i|0;J[c+f>>2]=K[e+2|0];J[c+g>>2]=K[e+1|0];J[c+h>>2]=K[e|0];c=c|4;e=c+i|0;J[c+f>>2]=K[e+2|0];J[c+g>>2]=K[e+1|0];J[c+h>>2]=K[e|0];a=a+2|0;j=j+2|0;if((j|0)!=(k|0))continue;break}}if(d&1){a=a<<2;c=a+i|0;J[a+f>>2]=K[c+2|0];J[a+g>>2]=K[c+1|0];J[a+h>>2]=K[c|0]}a=0;if((d|0)<=0)break b;while(1){c:{c=a<<2;i=J[c+f>>2];if((i|0)!=J[c+g>>2]|(i|0)!=J[c+h>>2])break c;a=a+1|0;if((d|0)!=(a|0))continue;break b}break}J[b>>2]=1}qc(f);qc(g);qc(h)}}function eHa(a,b,c,d){a=a|0;b=b|0;c=c| -0;d=d|0;var e=0,f=0;if(!c)return 0;if(!aX(J[a>>2],b,c,d)){Hc(d,1,2338321,0);return 0}b=1;a:{if(J[J[a>>2]+60>>2]|J[a+128>>2])break a;e=a+108|0;if(!UW(c,e,d))return 0;b:{c:switch(J[a+48>>2]-12|0){case 5:b=2;break b;case 6:b=3;break b;case 12:b=4;break b;case 0:b=5;break b;case 4:break b;default:break c}b=-1}J[c+20>>2]=b;b=J[a+120>>2];d:{if(!b)break d;if(!J[b+12>>2]){qc(J[J[e+12>>2]+4>>2]);qc(J[J[e+12>>2]+8>>2]);qc(J[J[e+12>>2]>>2]);b=J[e+12>>2];f=J[b+12>>2];if(f){qc(f);b=J[e+12>>2]}qc(b);J[e+12>>2]= -0;break d}b=0;if(!TW(c,e,d))break a}if(J[a+116>>2])SW(c,e,d);b=1;d=J[e>>2];if(!d)break a;J[c+28>>2]=d;J[c+32>>2]=J[a+112>>2];J[a+108>>2]=0}return b|0}function QJ(a,b){var c=0,d=0;d=bc-16|0;bc=d;a:{if(!b)break a;c=gc[J[659447]](60)|0;if(c){J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+4>>2]=1;J[c+36>>2]=0;J[c+8>>2]=b;b:{if(!J[689540])break b;b=J[689537]; -if(!b)break b;gc[b|0](c)}J[c+32>>2]=a;break a}J[d>>2]=14563;Cc(0,0,0,0,0,2,2,3,14563,0,0,0,32863,d);if(!a){c=0;break a}a=J[a+80>>2];while(1){if(!a){c=0;break a}c=J[a+16>>2];if(c)while(1){if(!(M[c+4>>2]>>0|c+20>>>0>b>>>0)){c=0;break a}c=J[c>>2];if(c)continue;break}a=J[a+20>>2];if(a)continue;break}c=0;gc[J[659451]](b)}bc=d+16|0;return c}function qKa(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;a:{b:{d=J[a+8>>2];if(!d){if((c|0)>0)break b;return 0}if((c|0)<=0)return 0;a=J[d+36>>2];while(1){e= -J[d+28>>2];if((e|0)<=(a|0)){if(!gt(d))break a;e=J[d+28>>2];a=J[d+36>>2]}g=J[d+32>>2]+a|0;a=e-a|0;e=c-f|0;e=(a|0)<(e|0)?a:e;tc(b+f|0,g,e);a=e+J[d+36>>2]|0;J[d+36>>2]=a;f=e+f|0;if((f|0)<(c|0))continue;break}break a}i=a+12|0;d=J[a+32784>>2];while(1){if(!d){if(J[a+34096>>2]?J[a+34092>>2]:0)break a;FA(a);d=J[a+32784>>2]}g=J[a+32780>>2];e=32768-g|0;h=c-f|0;d=(d|0)>(h|0)?h:d;e=(d|0)>(e|0)?e:d;tc(b+f|0,i+g|0,e);d=J[a+32784>>2]-e|0;J[a+32784>>2]=d;J[a+32780>>2]=e+J[a+32780>>2]&32767;f=e+f|0;if((f|0)<(c|0))continue; -break}}return f|0}function rGa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;gc[J[J[a>>2]+16>>2]](a);e=rc(8);J[e>>2]=2364292;J[695492]=0;d=$(4,20)|0;f=J[695492];J[695492]=0;a:{b:{if((f|0)!=1){J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[695492]=0;ca(4740,d|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1){a=Z()|0;b=J[d+8>>2];if(b){f=b;c=J[d+12>>2];if((b|0)!=(c|0)){while(1){f=c-20|0;if(H[c-9|0]<0)qc(J[f>>2]);c=f;if((b|0)!=(c|0))continue;break}f=J[d+8>>2]}J[d+12>>2]=b;qc(f)}qc(d);break a}J[e+4>>2]=d;b= -J[a+4>>2];J[b+8>>2]=e;e=rc(72);b=J[b+4>>2];J[695492]=0;b=aa(4739,e|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;a=J[a+4>>2];J[a+12>>2]=b;lW(b,J[a+8>>2]);return 1}a=Z()|0;break a}a=Z()|0}qc(e);ba(a|0);B()}function ZV(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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,u=0;l=O[a>>3];j=O[b>>3];q=O[d>>3];i=q*q;r=O[c>>3];p=r*r;k=-l/j*i/p;l=i*(j*j/i+l*l/p)/(j+j);s=(k+k)*l;n=s/i;t=k*k;j=1/p+t/i;u=l*l;m=n*n+j*-4*(u/i+-1);a:{b:{if(!(m< -0))break b;i=u+s*s/((t+i/p)*-4);o=0;if(i<0)break a;i=Y(i)/q;if(!(i>1))break b;O[c>>3]=r*i;k=i*O[d>>3];O[d>>3]=k;i=k*k;l=O[a>>3];j=O[b>>3];k=O[c>>3];m=k*k;k=i*(-l/j)/m;l=i*(j*j/i+l*l/m)/(j+j);n=(k+k)*l/i;j=1/m+k*k/i;m=n*n+j*-4*(l*l/i+-1)}o=0;if(m<-.001)break a;c:{if(m<0){i=-n/(j+j);j=i;break c}i=Y(m);m=j+j;j=(-n-i)/m;i=(i-n)/m}O[e>>3]=i;O[g>>3]=j;O[f>>3]=k*O[e>>3]+l;O[h>>3]=k*O[g>>3]+l;o=1}return o|0}function mia(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;if((c|0)>0){g=J[a+12>>2];while(1){d= -J[g>>2];I[b>>1]=(d>>>12&4093)+13314;h=163;a=0;i=d&16383;a:{if(i>>>0>16288){e=.210526316;f=.473684211;break a}b:{c:{while(1){d=a+h>>1;j=i-I[(d<<3)+92422>>1]|0;d:{if((j|0)>0){a=d;break d}if((j|0)>=0)break c;h=d}if((h-a|0)>1)continue;break}d=a;e=+(i-I[(d<<3)+92422>>1]|0)+.5;break b}e=.5}e=e*.0035000001080334187+ +N[(d<<3)+92416>>2];f=(+(d|0)+.5)*.0035000001080334187+.016939999535679817}f=f*32768;e:{if(R(f)<2147483648){a=~~f;break e}a=-2147483648}I[b+4>>1]=a;e=e*32768;f:{if(R(e)<2147483648){a=~~e;break f}a= --2147483648}I[b+2>>1]=a;g=g+4|0;b=b+6|0;a=(c|0)>1;c=c-1|0;if(a)continue;break}}}function P5a(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0;h=bc+-64|0;bc=h;O[h+40>>3]=c;O[h+48>>3]=b;O[h+32>>3]=d;O[h+24>>3]=e;O[h+16>>3]=f;O[h+8>>3]=g;i=J[a+4>>2];j=J[i+28>>2];if(j){je(j,h+48|0,h+40|0);je(J[J[a+4>>2]+28>>2],h+32|0,h+24|0);je(J[J[a+4>>2]+28>>2],h+16|0,h+8|0);i=J[a+4>>2];g=O[h+8>>3];f=O[h+16>>3];e=O[h+24>>3];d=O[h+32>>3];c=O[h+40>>3];b=O[h+48>>3]}J[h+60>>2]=0;k=Ke(i,h+60|0), -l=4,H[k|0]=l;a=J[h+60>>2];O[a+8>>3]=c;O[a>>3]=b;J[i>>2]=J[i>>2]+1;J[h+60>>2]=0;k=Ke(i,h+60|0),l=4,H[k|0]=l;a=J[h+60>>2];O[a+8>>3]=e;O[a>>3]=d;J[i>>2]=J[i>>2]+1;J[h+60>>2]=0;k=Ke(i,h+60|0),l=4,H[k|0]=l;a=J[h+60>>2];O[a+8>>3]=g;O[a>>3]=f;J[i>>2]=J[i>>2]+1;bc=h- -64|0;return 1}function LBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+8>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;d=J[b+8>>2]}else d=0;J[a+8>>2]=d;b=b+12| -0;a=a+12|0;d=(c|0)>0;c=c-1|0;if(d)continue;break b}while(1){d=c;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+8>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;c=J[b+8>>2]}else c=0;J[a+8>>2]=c;c=J[b+8>>2];J[b+8>>2]=0;c:{if(!c)break c;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break c;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=d-1|0;b=b+12|0;a=a+12|0;if((d|0)>0)continue;break}}return}ea(0)|0;yc();B()}function Kob(a,b){a=a|0;b=b|0;var c=0,d=0, -e=0,f=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;f=d+8|0;c=K[b+36|0];a:{if(!(c|K[b+37|0]|(K[b+38|0]|K[b+39|0]))){e=4;break a}H[d+12|0]=c;c=K[b+37|0];if(!(K[b+39|0]|(c|K[b+38|0]))){e=5;break a}H[d+13|0]=c;c=K[b+38|0];e=6;if(!(c|K[b+39|0]))break a;H[d+14|0]=c;e=7;if(!K[b+39|0])break a;H[d+15|0]=K[b+40|0];c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;c= -J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;e=16}c=e;return ue(a,J[b>>2],c,f)|0}function BB(a,b,c){var d=0,e=0,f=0;a:{if((b|0)<0)break a;e=-1;if(J[a+28>>2]|!a)break a;if(J[a+12>>2]){d=J[a+20>>2];if(!d){d=_J();J[a+20>>2]=d}if(Aj(d,c,b))break a;b=0;d=J[a+20>>2];b:{if(!d|J[d+32>>2])break b;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break b;J[d+20>>2]= -c;b=c}f=MB(a,1);if((f|0)<0){TJ(1544,4972,0);J[a+28>>2]=1544;return-1}d=0;e=J[a+20>>2];c:{if(!e|J[e+32>>2])break c;c=J[e+8>>2];if(!((c|0)==J[e+24>>2]|c>>>0>2147483646))J[e+24>>2]=c;d=J[e+20>>2];c=J[e+4>>2];if((d|0)==(c|0)|c>>>0>2147483646)break c;J[e+20>>2]=c;d=c}J[a+32>>2]=J[a+32>>2]+(b-d|0);return f}e=Aj(J[a+16>>2],c,b)?-1:b}return e}function xn(a,b,c){var d=0,e=0,f=0,g=0;if(!c)return 0;d=c;while(1){a:{f=d;b:{d=J[b+8>>2];c:{if(d&7)break c;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d| -4;break c}d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;d=K[d|0];break b}d=jd(b,1);if((d|0)!=-1)break b}e=-1;if((c|0)>=0)break a;return J[b+8>>2]<<30>>31}e=-1;g=J[a+8>>2];if(g&7)break a;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2])){J[a+8>>2]=g|4;return-1}J[a+4>>2]=J[a+4>>2]|32;e=J[a+28>>2];J[a+28>>2]=e-1;d:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;e=J[a+24>>2];J[a+24>>2]=e+1;H[e|0]=d;break d}e=-1;if((Uc(a,d)|0)==-1)break a}d=f-1|0;e=0;if((c|0)<0|(f|0)>1)continue}break}return e} -function oM(a){var b=0,c=0;a:{if(!a)break a;c=J[a>>2];if(!c)break a;J[a+44>>2]=0;J[a+48>>2]=0;b=J[a+52>>2];if((b|0)!=(a+72|0)){if(b)gc[J[c+8>>2]](c,b);J[a+52>>2]=0}J[a+56>>2]=0;J[a+60>>2]=0;b=J[a- -64>>2];if((b|0)!=(a+864|0)){if(b)gc[J[c+8>>2]](c,b);J[a+64>>2]=0}b=a+1392|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+1400>>2];if((b|0)!=(a+1420|0)){if(b)gc[J[c+8>>2]](c,b);J[a+1400>>2]=0}b=a+1404|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+1412>>2];if((b|0)!=(a+2212|0)){if(b)gc[J[c+8>>2]](c,b);J[a+1412>>2]=0}b=J[a+40>>2];if((b|0)!= -(a+2760|0)){if(b)gc[J[c+8>>2]](c,b);J[a+40>>2]=0}J[a+32>>2]=0;J[a+36>>2]=0;b=J[a+28>>2];if((b|0)!=(a+2792|0)){if(b)gc[J[c+8>>2]](c,b);J[a+28>>2]=0}J[a>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}}function esb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{c:{if(K[d+56|0]){if((b|0)>0)break c;break a}if((b|0)>0)break b;g=1;break a}b=0;while(1){if(!b){k=K[f|0];e=4;f=f+1|0;b=240}h=(b&k)>>>e|0;j=(h|0)!=L[d+ -836>>1];H[c+3|0]=j?-1:0;h=j?P(h,17):0;H[c+2|0]=h;H[c+1|0]=h;H[c|0]=h;e=e-4|0;c=c+4|0;b=(b&240)>>>4|0;i=i+1|0;if((i|0)>2])continue;break}break a}b=0;d=0;while(1){if(!b){d=K[f|0];e=4;f=f+1|0;b=240}H[c+3|0]=255;g=P((b&d)>>>e|0,17);H[c+2|0]=g;H[c+1|0]=g;H[c|0]=g;e=e-4|0;c=c+4|0;b=(b&240)>>>4|0;g=1;i=i+1|0;if((i|0)>2])continue;break}}H[a+649|0]=g;return 0}function em(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=827432;b=J[a+204>>2];c=J[a+208>>2];if((b|0)!=(c|0))while(1){f=d<<2;e=J[f+b>>2]; -if(e){gc[J[J[e>>2]+4>>2]](e);J[J[a+204>>2]+f>>2]=0;c=J[a+208>>2];b=J[a+204>>2]}d=d+1|0;if(d>>>0>2>>>0)continue;break}if(H[a+315|0]<0)qc(J[a+304>>2]);if(H[a+303|0]<0)qc(J[a+292>>2]);if(H[a+291|0]<0)qc(J[a+280>>2]);if(H[a+279|0]<0)qc(J[a+268>>2]);if(H[a+267|0]<0)qc(J[a+256>>2]);if(H[a+255|0]<0)qc(J[a+244>>2]);if(H[a+243|0]<0)qc(J[a+232>>2]);if(H[a+231|0]<0)qc(J[a+220>>2]);b=J[a+204>>2];if(b){J[a+208>>2]=b;qc(b)}b=J[a+192>>2];if(b){J[a+196>>2]=b;qc(b)}b=J[a+180>>2];if(b){J[a+184>>2]=b;qc(b)}b=J[a+ -168>>2];if(b){J[a+172>>2]=b;qc(b)}return pt(a)|0}function RMa(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;a=wc(a,0,256);d=J[b>>2]+c|0;g=K[d|0];e=K[d+1|0];d=g-e<<3;J[a+4>>2]=d;g=(e+g<<3)-2048|0;J[a>>2]=g;e=J[b+4>>2]+c|0;h=K[e|0];f=K[e+1|0];e=h-f<<3;J[a+36>>2]=e;h=(f+h<<3)-2048|0;J[a+32>>2]=h;f=J[b+8>>2]+c|0;i=K[f|0];j=K[f+1|0];f=i-j<<3;J[a+68>>2]=f;i=(i+j<<3)-2048|0;J[a+64>>2]=i;b=J[b+12>>2]+c|0;c=K[b|0];b=K[b+1|0];j=c-b<<3;k=j+d|0;l=e+f|0;J[a+68>>2]=k-l;J[a+4>>2]=k+l;c=(b+c<< -3)-2048|0;b=c+g|0;k=h+i|0;J[a+64>>2]=b-k;J[a>>2]=b+k;e=e-f|0;d=d-j|0;b=P(e+d|0,4433)+4096|0;J[a+100>>2]=b+P(e,-15137)>>13;J[a+36>>2]=b+P(d,6270)>>13;d=h-i|0;c=g-c|0;b=P(d+c|0,4433)+4096|0;J[a+96>>2]=b+P(d,-15137)>>13;J[a+32>>2]=b+P(c,6270)>>13}function Jub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[J[a+544>>2]+88>>2];f=J[e+1176>>2]+P(J[e+1168>>2],J[a+572>>2])|0;d=J[a+588>>2];b=J[a+644>>2];a:{b:{c:{if(K[e+56|0]){if((d|0)>0)break c;return 0}if((d|0)>0)break b;return 0}while(1){g=K[f|0];if(g>>>0>=M[e+ -64>>2])break a;d=P(g,3)+e|0;H[b|0]=K[d+68|0];H[b+1|0]=K[d+69|0];H[b+2|0]=K[d+70|0];H[b+3|0]=g>>>0>=M[e+844>>2]?255:K[(e+g|0)+848|0];b=b+4|0;f=f+1|0;c=c+1|0;if((c|0)>2])continue;break}return 0}d=0;while(1){c=K[f|0];if(c>>>0>=M[e+64>>2])break a;c=P(c,3)+e|0;H[b|0]=K[c+68|0];H[b+1|0]=K[c+69|0];c=K[c+70|0];H[b+3|0]=255;H[b+2|0]=c;b=b+4|0;f=f+1|0;d=d+1|0;if((d|0)>2])continue;break}return 0}Dc(a,1042,0,0);return 1042}function CYa(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{b=J[a+20>>2];switch(b- -101|0){case 2:break a;case 0:case 1:break d;default:break c}}if(M[a+260>>2]>2]){b=J[a>>2];J[b+20>>2]=69;gc[J[b>>2]](a)}b=J[a+388>>2]+8|0;break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;b=J[a>>2]}gc[J[b>>2]](a)}b=J[a+388>>2];if(!J[b+16>>2])while(1){gc[J[b>>2]](a);b=0;d=J[a+284>>2];if(d)while(1){c=J[a+8>>2];if(c){J[c+8>>2]=d;J[c+4>>2]=b;gc[J[c>>2]](a)}if(!(gc[J[J[a+400>>2]+4>>2]](a,0)|0)){c=J[a>>2];J[c+20>>2]=25;gc[J[c>>2]](a)}b=b+1|0;d=J[a+284>>2];if(b>>>0>>0)continue;break}gc[J[J[a+388>>2]+ -8>>2]](a);b=J[a+388>>2];if(!J[b+16>>2])continue;break}gc[J[J[a+404>>2]+12>>2]](a);gc[J[J[a+24>>2]+16>>2]](a);cx(a)}function ywb(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;e=J[a+4>>2];if(!e)return 0;d=J[a+12>>2];if(d){J[e+20>>2]=d+J[e+20>>2];J[a+12>>2]=0;J[a+8>>2]=d+J[a+8>>2]}a:{if((b|0)<=0)break a;j=b&1;c=J[e+20>>2];h=J[e+16>>2];b:{if((b|0)==1){g=b;break b}k=b&-2;g=b;while(1){c:{if(!(M[e+12>>2]>c>>>0|c>>>0>=h>>>0)){d=c+1|0;J[e+20>>2]=d;c=K[c|0];break c}d=c;c=0}l=(c<<(g<<3)-8)+f| -0;f=0;d:{if(d>>>0>=h>>>0){c=d;break d}if(M[e+12>>2]>d>>>0){c=d;break d}c=d+1|0;J[e+20>>2]=c;f=K[d|0]}g=g-2|0;f=((f&255)<<(g<<3))+l|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!j)break a;d=0;if(!(M[e+12>>2]>c>>>0|c>>>0>=h>>>0)){J[e+20>>2]=c+1;d=K[c|0]}f=(d<<(g<<3)-8)+f|0}J[a+8>>2]=J[a+8>>2]+b;return f|0}function XOa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=rc(376);J[695492]=0;b=aa(3426,g|0,a|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[b>>2]=2206388;O[b+184>>3]=O[a+184>>3];O[b+192>>3]=O[a+192>>3]; -O[b+200>>3]=O[a+200>>3];O[b+208>>3]=O[a+208>>3];O[b+216>>3]=O[a+216>>3];O[b+224>>3]=O[a+224>>3];c=J[a+360>>2];J[b+360>>2]=c;b:{if((c|0)>0)while(1){c=d<<2;e=J[(c+a|0)+232>>2];f=J[J[e>>2]+8>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[(b+c|0)+232>>2]=e;d=d+1|0;if((d|0)>2])continue;break}J[b+364>>2]=J[a+364>>2];J[b+368>>2]=J[a+368>>2];return b|0}d=Z()|0;J[b>>2]=2206348;a=J[b+8>>2];if(!a)break a;gc[J[J[a>>2]+4>>2]](a);break a}d=Z()|0}qc(g);ba(d|0);B()}function Tob(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;c=J[a+428>>2];e=c+8|0;a:{b:switch(K[b+33|0]){case 0:H[e|0]=K[b+34|0];d=1;break a;case 2:H[c+8|0]=K[b+34|0];H[c+9|0]=K[b+35|0];H[c+10|0]=K[b+36|0];d=3;break a;case 3:H[e|0]=K[b+34|0];H[e|0]=K[b+35|0];H[e|0]=K[b+36|0];d=3;break a;case 4:H[c+8|0]=K[b+34|0];H[c+9|0]=K[b+35|0];d=2;break a;case 10:H[e|0]=K[b+34|0];d=1;break a;case 12:H[c+8|0]=K[b+34|0];H[c+9|0]=K[b+35|0];H[c+10|0]=K[b+36|0];d=3;break a;case 14:H[c+8|0]=K[b+34|0];H[c+ -9|0]=K[b+35|0];d=2;break a;case 6:case 16:break b;default:break a}H[c+8|0]=K[b+34|0];H[c+9|0]=K[b+35|0];H[c+10|0]=K[b+36|0];H[c+11|0]=K[b+37|0];d=4}return ue(a,J[b>>2],d,e)|0}function JV(a,b,c){var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Yc(a,66832);Ld(a,c);break a}if(!(!b|!(H[b+9|0]&1))){Yc(a,66856);Ld(a,c);break a}if((c|0)!=9){Yc(a,66877);Ld(a,c);break a}c=d+7|0;qg(a,c,9);pe(a,c,9);if(Ld(a,0))break a;f=H[d+7|0];c=f&255;g=H[d+11|0];e=g&255;if((f|0)<0)c=0-(P(K[d+8|0],2147418112)- -(K[d+10|0]|(K[d+9|0]<<8|c<<24))&2147483647)|0;else c=K[d+10|0]|(K[d+8|0]<<16|c<<24|K[d+9|0]<<8);if((g|0)<0)e=0-(P(K[d+12|0],2147418112)-(K[d+14|0]|(K[d+13|0]<<8|e<<24))&2147483647)|0;else e=K[d+14|0]|(K[d+12|0]<<16|e<<24|K[d+13|0]<<8);f=K[d+15|0];if(!(!a|!b)){H[b+108|0]=f;J[b+104>>2]=e;J[b+100>>2]=c;J[b+8>>2]=J[b+8>>2]|256}}bc=d+16|0;return}Ad(a,66807);B()}function A_(a,b,c){var d=0,e=0,f=0;a:{if((b|0)>2147482623|(c|0)>1024|(b|c)<0)break a;e=J[a+1040>>2];if((e|0)>(b|0))break a;f=b+c|0;b:{if((f|0)<= -(e+1024|0)){c=e;break b}d=J[a+1044>>2];c=d+e|0;if((c|0)>(b|0)){c=d+(e-b|0)|0;J[a+1044>>2]=c;d=a+16|0;Zc(d,d+(b-e|0)|0,c);J[a+1040>>2]=b;c=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=c;if((b|0)<=(c|0))break b;while(1){d=0;if((gc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;c=J[a+1040>>2]+1|0;J[a+1040>>2]=c;if((b|0)>(c|0))continue;break}}d=1;if((J[a+1044>>2]+c|0)>=(f|0))break a;while(1){d=0;b=gc[J[a+4>>2]](J[a+8>>2])|0;if((b|0)<0)break a;d=1;c=J[a+1044>>2];J[a+1044>>2]=c+1;H[(a+c|0)+16|0]=b;if((J[a+1044>>2]+J[a+1040>> -2]|0)<(f|0))continue;break}}return d}function x3a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a+140>>2];if((d|0)!=J[b>>2]){c=J[a+304>>2];e=a+308|0;if((c|0)!=(e|0))while(1){J[c+120>>2]=1;d=J[c+4>>2];a:{if(d)while(1){c=d;d=J[c>>2];if(d)continue;break a}while(1){d=c;c=J[c+8>>2];if((d|0)!=J[c>>2])continue;break}}if((c|0)!=(e|0))continue;break}g=a+316|0;c=J[g>>2];f=a+320|0;if((c|0)!=(f|0))while(1){J[c+120>>2]=1;d=J[c+4>>2];b:{if(d)while(1){c=d;d=J[c>>2];if(d)continue;break b}while(1){d=c;c=J[c+8>>2]; -if((d|0)!=J[c>>2])continue;break}}if((c|0)!=(f|0))continue;break}Xh(a+304|0,J[a+308>>2]);J[a+304>>2]=e;J[a+308>>2]=0;J[a+312>>2]=0;Xh(g,J[a+320>>2]);J[a+316>>2]=f;J[a+320>>2]=0;J[a+324>>2]=0;d=J[b>>2]}J[a+140>>2]=d}function oSa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=rc(1048);d=J[a+4>>2];J[e+8>>2]=d;J[e>>2]=2204924;J[e+4>>2]=d;a:{if((d|0)<=0)break a;a=0;if(d>>>0>=4){i=d&-4;while(1){c=a<<4;f=e+16|0;b=c+f|0;J[b+8>>2]=0;J[b+12>>2]=1072693248;J[b>>2]=0;J[b+4>>2]=0;b=f+(c|16)|0;J[b+8>>2]=0;J[b+ -12>>2]=1072693248;J[b>>2]=0;J[b+4>>2]=0;b=f+(c|32)|0;J[b+8>>2]=0;J[b+12>>2]=1072693248;J[b>>2]=0;J[b+4>>2]=0;c=f+(c|48)|0;J[c+8>>2]=0;J[c+12>>2]=1072693248;J[c>>2]=0;J[c+4>>2]=0;a=a+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=d&3;if(!c)break a;while(1){d=(a<<4)+e|0;J[d+24>>2]=0;J[d+28>>2]=1072693248;J[d+16>>2]=0;J[d+20>>2]=0;a=a+1|0;h=h+1|0;if((c|0)!=(h|0))continue;break}}J[e+1040>>2]=0;return e|0}function ZTa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=-1;a:{if(b>>>0>2147482623)break a;d=J[a+1040>> -2];if((d|0)>(b|0))break a;b:{if((d+1024|0)>(b|0)){c=d;break b}e=J[a+1044>>2];c=e+d|0;if((c|0)>(b|0)){c=e+(d-b|0)|0;J[a+1044>>2]=c;e=a+16|0;Zc(e,e+(b-d|0)|0,c);J[a+1040>>2]=b;c=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=c;if((b|0)<=(c|0))break b;while(1){if((gc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;c=J[a+1040>>2]+1|0;J[a+1040>>2]=c;if((b|0)>(c|0))continue;break}}if((J[a+1044>>2]+c|0)<=(b|0))while(1){c=gc[J[a+4>>2]](J[a+8>>2])|0;if((c|0)<0)break a;d=J[a+1044>>2];J[a+1044>>2]=d+1;H[(a+d|0)+16|0]=c;c=J[a+1040>> -2];if((c+J[a+1044>>2]|0)<=(b|0))continue;break}f=K[((b-c|0)+a|0)+16|0]}return f|0}function Ip(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(!(J[a+48>>2]==(b|0)&J[a+52>>2]==(c|0))){a:{if(!(J[a+56>>2]|J[a+60>>2]))break a;if(L[a+12>>1]&4095)d=a+20|0;else{d=J[a>>2];if(d>>>0>1023)break a;g=J[a+8>>2];if(g>>>0>=d>>>0){h=J[a+4>>2];b:{if(h>>>0>d>>>0){e=J[a+16>>2];break b}f=h+256|0;e=rc(f>>>0>1073741823?-1:f<<2);i=J[a+16>>2];if(i){tc(e,i,h<<2);qc(i);f=J[a+4>>2]+256|0;g=J[a+8>>2];d=J[a>>2]}J[a+4>>2]=f;J[a+16>>2]=e}f= -rc(65536);J[a>>2]=d+1;J[(d<<2)+e>>2]=f}J[a+8>>2]=g+1;d=J[a+16>>2]+(g<<2)|0}d=J[d>>2];J[a+20>>2]=d+16;e=J[a+60>>2];J[d+8>>2]=J[a+56>>2];J[d+12>>2]=e;e=J[a+52>>2];J[d>>2]=J[a+48>>2];J[d+4>>2]=e;J[a+12>>2]=J[a+12>>2]+1}J[a+56>>2]=0;J[a+60>>2]=0;J[a+52>>2]=c;J[a+48>>2]=b}}function Bnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1767135348){Dc(a,2050,0,0);return 2050}e=J[c+32>>2];J[b+32>>2]=e;H[b+40|0]=K[c+40|0];H[b+41|0]=K[c+41|0];J[b+44>>2]=J[c+44>>2];J[b+52>>2]=J[c+52>>2];d=J[c+60>>2];J[b+60>> -2]=d;a:{if(e){d=gc[J[a+152>>2]](e)|0;J[b+36>>2]=d;if(!d)break a;tc(d,J[c+36>>2],J[b+32>>2]);d=J[b+60>>2]}b:{if(!d)break b;d=gc[J[a+152>>2]](J[b+44>>2])|0;J[b+48>>2]=d;if(!d)break a;tc(d,J[c+48>>2],J[b+44>>2]);if(!J[b+60>>2])break b;d=gc[J[a+152>>2]](J[b+52>>2])|0;J[b+56>>2]=d;if(!d)break a;tc(d,J[c+56>>2],J[b+52>>2]);d=J[b+60>>2];if(!d)break b;d=gc[J[a+152>>2]](d)|0;J[b+64>>2]=d;if(!d)break a;tc(d,J[c+64>>2],J[b+60>>2])}return 0}Dc(a,1,0,0);return 1}function ww(a,b){var c=0,d=0,e=0,f=0,g=0;f=bc-16| -0;bc=f;a:{if(!b)break a;c=gc[J[659447]](48)|0;if(!c){J[f>>2]=13570;Cc(0,0,0,0,0,2,2,3,13570,0,0,0,32863,f);break a}J[c>>2]=0;J[c+4>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=2;e=b;b:{c:{if(!a)break c;d=J[a+80>>2];if(!d)break c;e=le(d,b,-1);break b}while(1){d=e;e=d+1|0;if(K[d|0])continue;break}e=0;d=d-b|0;if((d|0)<0)break b;g=gc[J[659450]](d+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}e= -tc(g,b,d);H[d+e|0]=0}J[c+32>>2]=a;J[c+8>>2]=e;d:{if(!J[689540])break d;a=J[689537];if(!a)break d;gc[a|0](c)}e=c}bc=f+16|0;return e}function blb(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;d=J[b>>2];if(M[d+16>>2]>c>>>0){b=J[d+140>>2];f=L[b+96>>1];e=J[b+56>>2];if(c)b=c-1|0;else b=J[d+148>>2];b=e+P(b,36)|0;c=I[b+20>>1];e=I[b+16>>1];g=L[b+10>>1];h=J[b+24>>2];i=L[b+14>>1];j=L[b+12>>1];J[a+84>>2]=J[b+28>>2];J[a+80>>2]=j;J[a+76>>2]=i;gM(a,h);a:{b:switch(f-1|0){case 0:H[a+94|0]=1;break a; -case 1:H[a+94|0]=3;break a;case 3:H[a+94|0]=4;break a;case 7:break b;default:break a}I[a+92>>1]=256;H[a+94|0]=2}J[a+104>>2]=c;J[a+100>>2]=e;J[a+72>>2]=1651078259;J[a+40>>2]=g<<6;J[a+36>>2]=c<<6;J[a+32>>2]=e<<6;J[a+24>>2]=J[a+80>>2]<<6;J[a+28>>2]=J[a+76>>2]<<6;gu(a+24|0,L[J[d+140>>2]+6>>1]<<6);a=0}else a=6;return a|0}function zia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=bc-16|0;bc=e;J[e+12>>2]=c;J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0;J[a+28>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;a:{if(!K[a+96|0])break a;d=J[a+ -32>>2];if(!d)break a;qc(d)}b:{if(!K[a+97|0])break b;d=J[a+56>>2];if(!d)break b;qc(d)}J[a+52>>2]=c;c:{d:{e:{if(c>>>0>=9){d=K[a+98|0];if(!(!b|!d)){H[a+96|0]=0;J[a+32>>2]=b;break d}c=rc(c);H[a+96|0]=1;J[a+32>>2]=c;break e}H[a+96|0]=0;J[a+52>>2]=8;J[a+32>>2]=a+44;d=K[a+98|0]}if(d)break d;J[e+8>>2]=8;c=bc-16|0;bc=c;bc=c+16|0;c=e+8|0;d=e+12|0;d=J[(J[d>>2]>2]?c:d)>>2];J[a+60>>2]=d;if(b){c=0;if(d>>>0>7)break c}b=rc(d);c=1;break c}b=0;J[a+60>>2]=0;c=0}H[a+97|0]=c;J[a+56>>2]=b;bc=e+16|0;return a|0}function mv(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=bc-16|0;bc=e;g=a+28|0;oe(g,0,1);J[a+20>>2]=0;oe(a+40|0,0,1);oe(a+52|0,0,4);I[a+16>>1]=2;J[a+60>>2]=0;f=c+d|0;I[a+14>>1]=f;I[a+12>>1]=d;I[a+10>>1]=c;I[a+8>>1]=b;c=e+12|0;f=f&65535;d=d&65535;vG(c,f+d|0);J[695492]=0;aa(4993,a+68|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[e+12>>2];J[e+12>>2]=0;a:{b:{if(!c)break b;J[695492]=0;h=J[c+4>>2]-1|0;J[c+4>>2]=h;i=J[695492];J[695492]=0;if((i|0)==1)break a;if(h)break b;J[695492]=0;_(4987,c|0);c=J[695492]; -J[695492]=0;if((c|0)==1)break a}b=d+P(f,b&65535)|0;if(b){oe(g,b,1);ci(g,1,0);J[a+20>>2]=J[a+24>>2]}bc=e+16|0;return}ea(0)|0;yc();B()}a=Z()|0;vc(e+12|0);ba(a|0);B()}function oyb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=-1;a:{if(wh(c,J[a+12>>2]))break a;if(ki(c,J[a+16>>2]))break a;e=J[c+8>>2];if(e&7)break a;d=K[a+20|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=e|4;return-1}J[c+4>>2]=J[c+4>>2]|32;b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;b:{if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>> -2]=b+1;H[b|0]=d;break b}if((Uc(c,d)|0)==-1)break a}b=-1;d=J[c+8>>2];if(d&7)break a;a=K[a+21|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;return-1}J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=a;break c}if((Uc(c,a)|0)==-1)break a}b=0}return b|0}function Vt(a,b,c,d){a=a|0;b=+b;c=+c;d=d|0;var e=0,f=0;e=bc-48|0;bc=e;a=J[a>>2];a:{if(!d){J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;O[e+40>>3]=c;O[e+ -32>>3]=b;J[e+24>>2]=0;J[e+28>>2]=1072693248;J[e>>2]=0;J[e+4>>2]=1072693248;d=ej(e,a);f=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=f;f=J[d+44>>2];J[a+40>>2]=J[d+40>>2];J[a+44>>2]=f;f=J[d+36>>2];J[a+32>>2]=J[d+32>>2];J[a+36>>2]=f;f=J[d+28>>2];J[a+24>>2]=J[d+24>>2];J[a+28>>2]=f;f=J[d+20>>2];J[a+16>>2]=J[d+16>>2];J[a+20>>2]=f;f=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=f;break a}J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=1072693248;O[e+40>>3]=c;O[e+32>>3]=b;J[e+24>>2]=0;J[e+28>>2]= -1072693248;ej(a,e)}bc=e+48|0}function DYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+4>>2]=0;if((b|0)!=80){d=J[a>>2];J[d+20>>2]=13;J[d+24>>2]=80;J[J[a>>2]+28>>2]=b;gc[J[J[a>>2]>>2]](a)}if((c|0)!=432){b=J[a>>2];J[b+20>>2]=22;J[b+24>>2]=432;J[J[a>>2]+28>>2]=c;gc[J[J[a>>2]>>2]](a)}b=J[a>>2];c=J[a+12>>2];wc(a+4|0,0,428);J[a+12>>2]=c;J[a>>2]=b;O3(a);J[a+84>>2]=0;J[a+88>>2]=0;J[a+8>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=100;J[a+116>>2]=100;J[a+104>>2]=100;J[a+108>> -2]=100;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+424>>2]=0;J[a+384>>2]=63;J[a+380>>2]=53264;J[a+376>>2]=8;J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+20>>2]=100;J[a+24>>2]=0}function $8(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=bc;e=b+1|0;d=h-((e<<1&-4)+15&-16)|0;bc=d;f=e-c>>1;if((f|0)>0)tc(d,a,f<<2);b=b-f|0;if((b|0)>0){e=(f<<2)+a|0;g=(1-c<<2)+a|0;while(1){J[g>>2]=J[e>>2];e=e+4|0;g=g+8|0;i=b>>>0>1;b=b-1|0;if(i)continue;break}}a:{if((f|0)<=0)break a;b=(c<<2)+a|0; -a=f&7;b:{if(!a){e=f;break b}g=0;e=f;while(1){J[b>>2]=J[d>>2];d=d+4|0;b=b+8|0;e=e-1|0;g=g+1|0;if((a|0)!=(g|0))continue;break}}if(f>>>0<8)break a;while(1){J[b>>2]=J[d>>2];J[b+8>>2]=J[d+4>>2];J[b+16>>2]=J[d+8>>2];J[b+24>>2]=J[d+12>>2];J[b+32>>2]=J[d+16>>2];J[b+40>>2]=J[d+20>>2];J[b+48>>2]=J[d+24>>2];J[b+56>>2]=J[d+28>>2];d=d+32|0;b=b- -64|0;a=e-9|0;e=e-8|0;if(a>>>0<4294967294)continue;break}}bc=h}function iqa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){J[a>> -2]=J[b>>2];d=J[b+4>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;d=J[b+4>>2]}else d=0;J[a+4>>2]=d;J[a+8>>2]=J[b+8>>2];b=b+12|0;a=a+12|0;d=(c|0)>0;c=c-1|0;if(d)continue;break b}while(1){d=c;J[a>>2]=J[b>>2];c=J[b+4>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;c=J[b+4>>2]}else c=0;J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[b+4>>2]=0;c:{if(!c)break c;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break c;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=d-1|0;b=b+ -12|0;a=a+12|0;if((d|0)>0)continue;break}}return}ea(0)|0;yc();B()}function hwa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=bc-32|0;bc=f;a:{b:{if((a|0)!=(b|0)){mv(a,L[b+8>>1],L[b+10>>1],c);I[a+16>>1]=L[b+16>>1];if(!L[a+8>>1])break b;g=J[a+24>>2]+L[a+12>>1]|0;c=0;while(1){c:{if(J[b+20>>2])break c;d=J[b+36>>2];if(!d)break c;Mn(b,d)}d=L[b+14>>1];d:{if(L[b+8>>1]<=c>>>0){e=d;d=L[b+12>>1];if(J[682142]<(e+d|0)){a=Kc(f+8|0,2387307,2387639,592,2411548,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b| -0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}e=d+J[682141]|0;break d}e=L[b+12>>1]+(J[b+20>>2]+P(c,d)|0)|0}g=tc(g,e,L[a+10>>1])+L[a+14>>1]|0;c=c+1|0;if(c>>>0>1])continue;break}break b}if(L[a+12>>1]>=(c|0))break b;uG(a,c)}bc=f+32|0;return}B()}function Ld(a,b){var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;c=J[a+272>>2];if(c>>>0>>0)while(1){e=J[a+268>>2];f=J[a+272>>2];qg(a,e,f);pe(a,e,f);b=b-c|0;if(c>>>0>>0)continue;break}if(b){c=J[a+268>>2];qg(a,c,b);pe(a,c,b)}J[a+744>>2]=129;b=J[a+204>>2];c=J[a+348>>2]; -qg(a,d+12|0,4);a:{b:{c:{if(c&536870912){if((b&768)==768)break c;break b}if(!(b&2048))break b}b=0;break a}b=0;c=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);if(J[a+384>>2]==(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)))break a;c=J[a+204>>2];d:{e:{if(K[a+351|0]&32){if(!(c&512))break e;break d}if(!(c&1024))break d}AH(a,58545);b=1;break a}f:{if(K[a+206|0]&128){AH(a,58545);break f}Ev(a,58545);B()}}bc=d+16|0;return b}function y3a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(J[a+136>>2]!=J[b>>2]){c=J[a+ -304>>2];e=a+308|0;if((c|0)!=(e|0))while(1){J[c+120>>2]=1;d=J[c+4>>2];a:{if(d)while(1){c=d;d=J[c>>2];if(d)continue;break a}while(1){d=c;c=J[c+8>>2];if((d|0)!=J[c>>2])continue;break}}if((c|0)!=(e|0))continue;break}g=a+316|0;c=J[g>>2];f=a+320|0;if((c|0)!=(f|0))while(1){J[c+120>>2]=1;d=J[c+4>>2];b:{if(d)while(1){c=d;d=J[c>>2];if(d)continue;break b}while(1){d=c;c=J[c+8>>2];if((d|0)!=J[c>>2])continue;break}}if((c|0)!=(f|0))continue;break}Xh(a+304|0,J[a+308>>2]);J[a+304>>2]=e;J[a+308>>2]=0;J[a+312>>2]=0; -Xh(g,J[a+320>>2]);J[a+316>>2]=f;J[a+320>>2]=0;J[a+324>>2]=0;J[a+136>>2]=J[b>>2];QK(a)}}function rL(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;j=J[b+4>>2]+(c<<4)|0;c=J[j+4>>2];if(!c)return 0;n=J[j+12>>2]+(P(c,d)<<1)|0;while(1){a:{if(!L[b+8>>1]){d=65536;break a}c=J[J[b+16>>2]+(J[J[j+8>>2]+(k<<2)>>2]<<2)>>2];l=0;d=65536;while(1){g=d;e=J[c+4>>2];h=J[c>>2];b:{if((e|0)<(h|0))break b;i=J[c+8>>2];if(!e|(i|0)<(e|0))break b;if((h|0)<0&(i|0)>0)break b;f=J[J[J[a+736>>2]+8>>2]+(l<<2)>>2];if((f|0)==(e| -0))break b;d=0;if((f|0)<=(h|0)|(f|0)>=(i|0))break a;if((e|0)>(f|0)){g=Dd(g,f-h|0,e-h|0);break b}g=Dd(g,i-f|0,i-e|0)}d=g;c=c+12|0;l=l+1|0;if(l>>>0>1])continue;break}}m=Pc(d,L[(k<<1)+n>>1]<<16)+m|0;k=k+1|0;if(k>>>0>2])continue;break}return m+32768>>16}function qra(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=bc-16|0;bc=j;n=e&1;d=e>>>1|0;o=g<<1;p=h<<2;while(1){h=d;while(1){c=i;g=K[c+2|0];i=K[c+3|0];k=j+12|0;l=j+8|0;m=j+4|0;_d(J[a+ -68>>2],K[c|0],g,i,k,l,m);e=b;J[e>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;_d(J[a+68>>2],K[c+1|0],g,i,k,l,m);J[e+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=c+4|0;b=e+8|0;h=h-1|0;if(h)continue;break}a:{if(!n){i=4;b=2;break a}_d(J[a+68>>2],K[c+4|0],K[c+6|0],K[c+7|0],j+12|0,j+8|0,j+4|0);i=8;J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;b=3}b=((b<<2)+e|0)+p|0;i=o+(c+i|0)|0;f=f-1|0;if(f)continue;break}bc=j+16|0}function f6a(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;g=c-b|0;e=g>>3;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>3>>>0){f=J[a+4>>2]-d|0;h=f>>3;if(e>>>0>h>>>0){Zc(d,b,f);d=J[a+4>>2];b=(h<<3)+b|0;if((c|0)!=(b|0))while(1){e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;d=d+8|0;b=b+8|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=Zc(d,b,g)+(e<<3)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;qc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=536870912)break a;d=f>>2;d=f>>>0>=2147483640?536870911:d>>>0>e>>>0?d:e;if(d>>>0>=536870912)break a;e=d<<3; -d=rc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-8&-8)+8|0;d=tc(d,c,b)+b|0}J[a+4>>2]=d;return}S2();B()}function LD(a,b,c,d){var e=0,f=0,g=0,h=0;if(!K[a+3748|0]){while(1){e=g>>>1|0;e=g&1?e^-306674912:e;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;J[((g<<2)+a|0)+2724>>2]=e&1?f^-306674912:f;g=g+1|0;if((g|0)!=256)continue;break}H[a+ -3748|0]=1}a:{if((d|0)<=0)break a;f=d&1;b:{if((d|0)==1){g=0;break b}h=d&-2;g=0;d=a+2724|0;e=0;while(1){b=J[d+(((K[c+g|0]^b)&255)<<2)>>2]^b>>>8;b=J[d+(((b^K[(g|1)+c|0])&255)<<2)>>2]^b>>>8;g=g+2|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!f)break a;b=J[((((K[c+g|0]^b)&255)<<2)+a|0)+2724>>2]^b>>>8}return b}function KV(a,b){var c=0,d=0;J[a>>2]=2383592;J[a+4>>2]=0;J[695492]=0;c=$(4,52)|0;d=J[695492];J[695492]=0;a:{if((d|0)!=1){J[c+48>>2]=5038;J[c+44>>2]=5039;J[c+40>>2]=5039;J[c+36>>2]=5040;J[c+32>>2]= -5041;J[c+28>>2]=1;J[c+20>>2]=0;J[c+24>>2]=-1;J[c+12>>2]=0;J[c+16>>2]=-1;J[c>>2]=2382568;J[c+4>>2]=0;J[c+8>>2]=0;J[695492]=0;ca(5042,c|0,0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[c+4>>2]=J[c+4>>2]+1;b=J[a+4>>2];b:{if(!b)break b;d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(d)break b;gc[J[J[b>>2]+4>>2]](b)}J[a+4>>2]=c;return a}b=Z()|0;J[a>>2]=2381060;ba(b|0);B()}d=Z()|0;qc(c);J[a>>2]=2381060;b=J[a+4>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}ba(d|0);B()}function E8(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0;e=K[a+432|0];if(!(K[a+344|0]|(K[a+496|0]|K[a+476|0]?e:0)))return 0;a:{c=J[b+32>>2];b:{if(!c){c=J[b+12>>2];if(!c)break a;while(1){if(J[c>>2]==1041&K[c+28|0]==K[b+28|0])break b;c=J[c+12>>2];if(c)continue;break}break a}if(K[c+28|0]!=K[b+28|0])break a}J[b+32>>2]=c;b=J[c+56>>2];d=b-1|0;if(d>>>0<=2147483645){J[c+56>>2]=d;b=d}c:{if(!(!K[a+344|0]|e|b>>>0<2147483647)){J[a+456>>2]=2147483647;J[a+448>>2]=2147483647;J[a+452>>2]=2147483647;break c}if(!b){if(J[a+696>>2]!=(c|0))break c; -H[a+305|0]=0;break c}if(J[a+516>>2]){J[a+516>>2]=c;break c}J[a+516>>2]=J[c+8>>2]}if(!(J[c+32>>2]|!K[a+460|0]))H[a+460|0]=0;return 0}Dc(a,1069,0,0);return 1069}function CC(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;g=c-b|0;e=g>>3;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>3>>>0){f=J[a+4>>2]-d|0;h=f>>3;if(e>>>0>h>>>0){Zc(d,b,f);d=J[a+4>>2];b=(h<<3)+b|0;if((c|0)!=(b|0))while(1){e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;d=d+8|0;b=b+8|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=Zc(d, -b,g)+(e<<3)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;qc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=536870912)break a;d=f>>2;d=f>>>0>=2147483640?536870911:d>>>0>e>>>0?d:e;if(d>>>0>=536870912)break a;e=d<<3;d=rc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-8&-8)+8|0;d=tc(d,c,b)+b|0}J[a+4>>2]=d;return}_j(a);B()}function fdb(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;g=bc-16|0;bc=g;h=J[a+532>>2];d=6;a:{if(!h)break a;i=J[h+4>>2];pL(J[h+136>> -2],g,i);j=b>>>0>i>>>0?i:b;if(j)while(1){n=k<<2;l=J[n+g>>2];d=P(k,12)+h|0;e=J[d+96>>2];b:{if((l|0)>J[e>>2]){a=1;f=K[d+88|0];if(f>>>0>1)while(1){m=a<<2;o=J[m+e>>2];if((l|0)<=(o|0)){d=J[d+92>>2];f=m-4|0;a=J[d+f>>2];d=J[d+m>>2];e=J[e+f>>2];a=P(td(l-e|0,o-e|0),d-a|0)+(a<<16)|0;break b}a=a+1|0;if((f|0)!=(a|0))continue;break}a=J[(J[d+92>>2]+(f<<2)|0)-4>>2]<<16;break b}a=J[J[d+92>>2]>>2]<<16}J[c+n>>2]=a;k=k+1|0;if((j|0)!=(k|0))continue;break}d=0;if(b>>>0<=i>>>0)break a;wc((j<<2)+c|0,0,b-j<<2);d=0}bc=g+16| -0;return d|0}function cHa(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;a:{b:{c:{if(a){if(!b)break c;if(!c)break b;if(ep(J[a+8>>2],4661,c))d:{e=J[a+8>>2];if(!e)break a;g=J[e+8>>2];e:{f:{g:{h:{d=J[e>>2];if(d){h=1;j=d&1;if((d|0)!=1)break h;d=0;break g}J[e>>2]=0;break f}d=d&-2;while(1){f=0;i:{if(!h)break i;f=0;if(!(gc[J[g>>2]](a,b,c)|0))break i;f=(gc[J[g+4>>2]](a,b,c)|0)!=0}h=f;g=g+8|0;i=i+2|0;if((d|0)!=(i|0))continue;break}d=!f}if(j){if(d)break e;h=(gc[J[g>>2]](a,b,c)|0)!=0}J[e>>2]=0;if(!h)break d}return 1}J[e>> -2]=0}return 0}fa(2342603,2342899,2113,2359347);B()}fa(2343367,2342899,2114,2359347);B()}fa(2343543,2342899,2115,2359347);B()}fa(2351702,2342899,2439,2359708);B()}function u_(a){a=a|0;var b=0,c=0;J[a>>2]=2182468;b=J[a+20>>2];if(b)qc(Rc(b));a:{b=J[a+24>>2];if(!((b|0)==2639376|!b|(b|0)==2638352)){b=0;while(1){c=J[J[a+24>>2]+(b<<2)>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;b=b+1|0;if((b|0)!=256)continue;break}b=J[a+24>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b= -J[a+328>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+340>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+344>>2];if(!((b|0)==2642768|(b|0)==2642432|(!b|(b|0)==2641968))){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}return lp(a)|0}ea(0)|0;yc();B()}function N_(a,b){var c=0,d=0,e=0;c=bc-32|0;bc=c;a:{b:{c:{if(J[a+8>>2]<<5>>>0>=b>>>0)break c;if((b|0)<0)break a;J[c+28>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[695492]=0;b=(b-1>>>5|0)+ -1|0;d=$(4,b<<2)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[c+28>>2]=b;J[c+24>>2]=0;J[c+20>>2]=d;b=J[a>>2];J[c+16>>2]=0;J[c+12>>2]=b;d=J[a+4>>2];J[695492]=0;J[c+8>>2]=d&31;J[c+4>>2]=b+(d>>>3&536870908);ca(3254,c+20|0,c+12|0,c+4|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[a>>2];J[a>>2]=J[c+20>>2];J[c+20>>2]=b;d=J[a+4>>2];J[a+4>>2]=J[c+24>>2];J[c+24>>2]=d;d=J[a+8>>2];J[a+8>>2]=J[c+28>>2];J[c+28>>2]=d;if(!b)break c;qc(b)}bc=c+32|0;return}a=Z()|0;b=J[c+20>>2];if(b)qc(b);ba(a|0);B()}st(a);B()} -function Kia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-80|0;bc=d;e=J[a+584>>2];a:{b:switch(b-65560|0){case 0:b=e;e=J[c>>2];J[b>>2]=e;b=3;c=32;c:{d:switch(e|0){case 2:b=1;J[d+48>>2]=1;$d(a,277,d+48|0);break c;case 3:b=1;c=8;break c;default:b=J[a>>2];a=J[a+628>>2];J[d>>2]=e;Nc(a,b,81484,d);b=0;break a;case 0:break c;case 1:break d}b=2;c=16}J[d+32>>2]=c;$d(a,258,d+32|0);J[d+16>>2]=b;$d(a,339,d+16|0);if(K[a+13|0]&4)b=Ol(a);else b=-1;J[a+508>>2]=b;f=a,g=_i(a),J[f+588>>2]=g;b=1;break a;case 1:c= -J[c>>2];J[e+4>>2]=c;b=1;if(c>>>0<2)break a;b=J[a>>2];a=J[a+628>>2];J[d+64>>2]=c;Nc(a,b,81666,d- -64|0);b=0;break a;default:break b}b=gc[J[e+28>>2]](a,b,c)|0}bc=d+80|0;return b|0}function Ck(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-48|0;bc=d;b=J[b>>2];e=J[a>>2];a:{if(!c){a=J[b+44>>2];J[d+40>>2]=J[b+40>>2];J[d+44>>2]=a;a=J[b+36>>2];J[d+32>>2]=J[b+32>>2];J[d+36>>2]=a;a=J[b+28>>2];J[d+24>>2]=J[b+24>>2];J[d+28>>2]=a;a=J[b+20>>2];J[d+16>>2]=J[b+16>>2];J[d+20>>2]=a;a=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+ -12>>2]=a;a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;b=ej(d,e);a=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=a;a=J[b+44>>2];J[e+40>>2]=J[b+40>>2];J[e+44>>2]=a;a=J[b+36>>2];J[e+32>>2]=J[b+32>>2];J[e+36>>2]=a;a=J[b+28>>2];J[e+24>>2]=J[b+24>>2];J[e+28>>2]=a;a=J[b+20>>2];J[e+16>>2]=J[b+16>>2];J[e+20>>2]=a;a=J[b+12>>2];J[e+8>>2]=J[b+8>>2];J[e+12>>2]=a;break a}ej(e,b)}bc=d+48|0}function A9(a,b){var c=0,d=0,e=0,f=0;d=J[b+8>>2];a:{if(d&7)break a;c=K[a+12|0];e=K[a|0];f=J[b+64>>2];if(!((f|0)<0|(f|0)>J[b+60>>2])){J[b+8>> -2]=d|4;break a}d=e|c<<5;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=d;break a}Uc(b,d&255)}if(J[a+4>>2]>0){d=0;while(1){c=J[J[a+8>>2]+(d<<2)>>2];b:{if(!K[a|0]){e=J[b+8>>2];if(e&7)break b;f=J[b+64>>2];if(!((f|0)<0|(f|0)>J[b+60>>2])){J[b+8>>2]=e|4;break b}c=c>>>8&248;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=c;break b}Uc(b,c);break b}wh(b,c)}d= -d+1|0;if((d|0)>2])continue;break}}}function tY(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+4>>2];d=zc(28);J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;J[d>>2]=0;J[d+24>>2]=-1414746709;J[d+16>>2]=0;J[d+20>>2]=0;e=J[a>>2];a:{if(!e)break a;b=e;while(1){c=b;b=J[b+8>>2];if(b)continue;break}b=J[c>>2];if(!b)break a;while(1){b:{if(!e)break b;c=J[a+12>>2];c:{if(!c)break c;f=J[a+4>>2];d:{if(f){c=gc[f|0](J[e>>2],b)|0;break d}if(b>>>0>>0)break c;c=b>>>0>c>>>0?-1:0}if(!c)break b}Pq(a,0,b,a,0,0);if(J[a+8>>2]){dI(a);Pq(a, -0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}SH(d,m2(J[J[a>>2]>>2]),s1(J[J[a>>2]+4>>2]));e=J[a>>2];b=J[e+12>>2];if(!b)break a;while(1){c=b;b=J[b+8>>2];if(b)continue;break}b=J[c>>2];if(b)continue;break}}return d}function qY(a){a=a|0;var b=0,c=0;J[a>>2]=2331960;b=J[a+3480>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;J[a+3480>>2]=0;b=J[a+3484>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+3484>>2]=0;b=J[a+3488>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]= -0;if((b|0)==1)break a;J[a+3488>>2]=0;b=J[a+3492>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+3492>>2]=0;b=J[a+3468>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+3468>>2]=0;b=J[a+4>>2];c=J[J[b>>2]+24>>2];J[695492]=0;_(c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;yc();B()}function RL(a,b,c,d){var e=0,f=0;e=J[a+8264>>2];a:{if(e>>>0>b>>>0){e=0;if(nd(J[a>>2],J[a+68>>2]))break a;Jw(a+12|0); -J[a+28>>2]=0;J[a+12>>2]=a+72;J[a+16>>2]=0;e=a+8264|0;J[a+8272>>2]=e;J[a+24>>2]=a+4168;J[a+8268>>2]=e;J[a+8264>>2]=0;e=0}b:{if(b>>>0>e>>>0){b=b-e|0;c:{while(1){f=J[a+8268>>2];e=J[a+8272>>2]-f|0;e=b>>>0>e>>>0?e:b;J[a+8268>>2]=e+f;J[a+8264>>2]=e+J[a+8264>>2];b=b-e|0;if(!b)break c;if(!D5(a))continue;break}return 0}if(d)break b;return 0}if(d)break b;return 0}e=0;while(1){f=J[a+8268>>2];b=J[a+8272>>2]-f|0;b=b>>>0>>0?b:d;c=tc(c,f,b);J[a+8268>>2]=b+J[a+8268>>2];J[a+8264>>2]=b+J[a+8264>>2];e=b+e|0;d=d- -b|0;if(!d)break a;c=b+c|0;if(!D5(a))continue;break}}return e}function xia(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;f=bc-16|0;bc=f;g=J[b+68>>2];if(g){g=gc[J[J[g>>2]+24>>2]](g)|0;a:{b:{if(!(!J[b+64>>2]|(c|d)!=0&(g|0)<=0))if(!(gc[J[J[b>>2]+24>>2]](b)|0))break b;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}if(e>>>0>=3){J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}h=J[b+64>>2];d=Dzb(g,0,c,d);c=(g|0)>0;if(Qu(h,c?d:0,c?fc:0,e)){J[a+8>>2]=-1;J[a+12>>2]= --1;J[a>>2]=0;J[a+4>>2]=0;break a}i=a,j=AF(J[b+64>>2]),J[i+8>>2]=j;J[a+12>>2]=fc;J[a>>2]=0;J[a+4>>2]=0;c=J[b+72>>2];b=J[b+76>>2];J[f>>2]=c;J[f+4>>2]=b;J[f+8>>2]=c;J[f+12>>2]=b;b=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=b}bc=f+16|0;return}Ju();B()}function Zr(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;j=bc-16|0;bc=j;if((b^-1)+2147483631>>>0>=c>>>0){if(K[a+11|0]>>>7|0)i=J[a>>2];else i=a;k=i;i=j+4|0;l=i;if(b>>>0<1073741799){J[j+12>>2]=b<<1;J[j+4>>2]=b+c;c=bc-16|0;bc=c;bc=c+16|0;c=j+12|0;c=J[(M[i>>2]>2]?c:i)>> -2];if(c>>>0>=11){i=c+16&-16;c=i-1|0;c=(c|0)==11?i:c}else c=10;c=c+1|0}else c=2147483631;es(l,c);c=J[j+4>>2];if(e)Mj(c,k,e);if(g)Mj(c+e|0,h,g);i=e+f|0;h=d-i|0;if((d|0)!=(i|0))Mj((c+e|0)+g|0,(e+k|0)+f|0,h);b=b+1|0;if((b|0)!=11)Ay(k,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[j+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;b=a;a=h+(e+g|0)|0;J[b+4>>2]=a;H[j+12|0]=0;H[a+c|0]=K[j+12|0];bc=j+16|0;return}Id(a);B()}function Q6(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,r=0;j= -P(c,1348)+a|0;f=J[j- -64>>2];g=J[j+56>>2];i=P(c,7676)+b|0;k=J[i+44>>2];b=Pc(M[b+40>>2]/40|0,k);c=1;a:{if((g|0)<=0)break a;a=J[i+260>>2];if(!a)break a;p=(b|0)>=32?32:b;q=P(g,44)+f|0;r=i+264|0;while(1){if(c){c=0;b=p;g=0;while(1){h=P(c,28)+r|0;d=J[h+24>>2];if(!(!(d&1)|(d&2)>>>1^J[j+68>>2]!=H[f+13|0])){a=I[f>>1];l=J[h>>2];m=a-l|0;d=m>>31;n=J[h+12>>2];o=a-n|0;e=o>>31;d=(d^m)-d>>>0>(e^o)-e>>>0;e=a-(d?n:l)|0;a=e>>31;e=Pc((a^e)-a|0,k);a=(e|0)<(b|0);b=a?e:b;g=a?d?h+12|0:h:g;a=J[i+260>>2]}c=c+1|0;if(c>>>0< -a>>>0)continue;break}if(g)J[f+20>>2]=g;c=a}else c=0;f=f+44|0;if(q>>>0>f>>>0)continue;break}}}function qAa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-48|0;bc=d;a:{if(J[b+8>>2]==4){if(J[b+44>>2]<=(c|0)){kG(d+16|0,2386673,b+12|0);a=J[d+16>>2];a=J[(a?a+12|0:2728584)>>2];J[695492]=0;a=ja(5018,d+24|0,a|0,2377733,384,2389813,0)|0;b=J[695492];J[695492]=0;b:{c:{if((b|0)!=1){J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;B()}e=Z()|0;break b}e=Z()|0;Fc(a)}sc(d+16|0);ba(e|0);B()}f=b+40| -0;b=J[b+48>>2];d:{if(!b|(c|0)<=0)break d;while(1){b=J[b>>2];e=e+1|0;if((e|0)>=(c|0))break d;if(b)continue;break}}J[d+12>>2]=f;J[d+8>>2]=b;if(!b)break a;c=J[b+8>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;b=J[b+8>>2]}else b=0;J[a>>2]=b;bc=d+48|0;return}sv(b,4);B()}aj(d+8|0,f);B()}function bsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+636>>2]+J[a+616>>2]|0;e=J[a+588>>2];b=J[a+644>>2];c=J[a+540>>2];if(!c)c=J[J[a+528>>2]+88>>2];a:{b:{c:{if(K[c+56|0]){if((e|0)>0)break c;c=0;break a}if((e|0)>0)break b;c=1;break a}e= -0;while(1){f=K[d+2|0];g=K[d|0];h=K[d+1|0];d:{if(!((g|0)!=L[c+838>>1]|(h|0)!=L[c+840>>1]|(f|0)!=L[c+842>>1])){H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;break d}H[b+3|0]=255;H[b+2|0]=f;H[b+1|0]=h;H[b|0]=g}b=b+4|0;d=d+3|0;e=e+1|0;if((e|0)>2])continue;break}c=0;break a}while(1){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];c=K[d+2|0];H[b+3|0]=255;H[b+2|0]=c;b=b+4|0;d=d+3|0;c=1;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=c;return 0}function b0(a,b,c){var d=0,e=0,f=0;if(!(J[b+4>>2]!=2|J[c+4>>2]!= -2|(J[a+4>>2]!=2?a:0))){e=J[b+20>>2];f=J[c+8>>2];d=J[c+36>>2];if(d)d=J[d+8>>2];else d=0;d=GJ(e,f,d);e=J[b+32>>2];if((e|0)!=J[c+32>>2])im(c,e);e=J[b+20>>2];J[c+28>>2]=a;J[c+20>>2]=e;a:{b:{if(a){J[c+24>>2]=J[a+24>>2];J[a+24>>2]=c;b=J[c+24>>2];if(b)break b;break a}J[c+24>>2]=b}J[b+28>>2]=c}if(!(J[c+28>>2]|!e))J[e+44>>2]=c;c:{if(!d|J[d+4>>2]==16)break c;b=J[d+20>>2];if(!b)break c;a=J[b+44>>2];d:{e:{if((d|0)==(a|0)){a=J[d+24>>2];J[b+44>>2]=a;b=0;if(a)break e;break d}while(1){b=a;if(!a)break c;a=J[a+24>> -2];if((d|0)!=(a|0))continue;break}a=J[d+24>>2];J[b+24>>2]=a;if(!a)break d}J[a+28>>2]=b}yw(d)}d=c}return d}function _t(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(!b)break a;e=K[a+27|0];c=e<<24>>24;d=K[b+27|0];g=d<<24>>24;c=(c|0)<0;e=c?J[a+20>>2]:e;g=(g|0)<0;f=0;b:{if((e|0)!=((g?J[b+20>>2]:d)|0))break b;if(e){d=a+16|0;d=c?J[d>>2]:d;c=b+16|0;f=0;if(gd(d,g?J[c>>2]:c,e))break b}d=K[a+15|0];c=d<<24>>24;e=K[b+15|0];g=e<<24>>24;g=(g|0)<0;f=g?J[b+8>>2]:e;c=(c|0)<0;e=c?J[a+8>>2]:d;if((f|0)!=(e|0))break a;if(e){d=a+ -4|0;d=c?J[d>>2]:d;c=b+4|0;f=0;if(gd(d,g?J[c>>2]:c,e))break b}if(J[a+64>>2]!=J[b+64>>2]|J[a+52>>2]!=J[b+52>>2]|(J[a+40>>2]!=J[b+40>>2]|O[a+32>>3]!=O[b+32>>3]))break a;if(J[a+44>>2]!=J[b+44>>2])break a;f=0;if(K[a+48|0]!=K[b+48|0])break b;f=K[a+49|0]==K[b+49|0]}return f}return 0}function MQ(a){var b=0,c=0,d=0;c=bc-16|0;bc=c;a:{b:{if(!J[(J[J[a>>2]-12>>2]+a|0)+24>>2])break b;J[695492]=0;aa(6538,c+8|0,a|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){d:{if(!K[c+8|0])break d;b=J[(J[J[a>>2]-12>>2]+a|0)+24>> -2];J[695492]=0;b=$(6539,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){if((b|0)!=-1)break d;b=J[J[a>>2]-12>>2];J[695492]=0;da(6540,a+b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break d}b=ea(0)|0;KQ(c+8|0);break c}KQ(c+8|0);break b}b=ea(0)|0}na(b|0)|0;b=J[J[a>>2]-12>>2];J[695492]=0;_(6529,a+b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;ta()}bc=c+16|0;return}a=Z()|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)!=1){ba(a|0);B()}ea(0)|0;yc();B()}function MOa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g= -0;g=rc(328);J[695492]=0;c=aa(3426,g|0,a|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[c>>2]=2206448;b=J[a+184>>2];J[c+184>>2]=b;J[695492]=0;b=aa(3376,b|0,1280)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[c+180>>2]=b;tc(b,J[a+180>>2],P(J[c+184>>2],1280));J[c+316>>2]=J[a+316>>2];b=J[a+320>>2];J[c+320>>2]=b;b:{if((b|0)>0){b=0;while(1){d=b<<2;e=J[(d+a|0)+188>>2];f=J[J[e>>2]+8>>2];J[695492]=0;e=$(f|0,e|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break b;J[(c+d|0)+188>>2]=e;b=b+1|0;if((b|0)>2])continue; -break}}return c|0}}b=Z()|0;J[c>>2]=2206348;a=J[c+8>>2];if(!a)break a;gc[J[J[a>>2]+4>>2]](a);break a}b=Z()|0}qc(g);ba(b|0);B()}function FT(a,b,c){var d=0;d=bc-32|0;bc=d;J[695492]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2414676;ca(5467,d+12|0,d+16|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1){J[d+16>>2]=2414580;b=J[d+28>>2];if(b){H[b|0]=0;qc(J[d+28>>2])}J[d+28>>2]=0;ed(d+16|0);a:{b=J[d+12>>2];b:{if(b){c=J[c>>2];J[695492]=0;ca(5469,a|0,b|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;a= -J[d+12>>2];J[d+12>>2]=0;if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}ea(0)|0;yc();B()}J[a>>2]=0}bc=d+32|0;return}a=Z()|0;vc(d+12|0);ba(a|0);B()}a=Z()|0;bh(d+16|0);ba(a|0);B()}function kI(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;i=O[a+24>>3];j=O[a+40>>3];k=d*i+j*e;O[a+40>>3]=k;h=d;d=O[a+16>>3];l=O[a+32>>3];e=h*d+l*e;O[a+32>>3]=e;h=b*i+j*c;O[a+24>>3]=h;b=b*d+l*c;O[a+16>>3]=b; -d=f*d+l*g+O[a+48>>3];O[a+48>>3]=d;g=f*i+j*g+O[a+56>>3];O[a+56>>3]=g;f=1E10;a:{if(!(b>1E10)){f=-1E10;if(!(b<-1E10))break a}O[a+16>>3]=f}c=1E10;b:{if(!(h>1E10)){c=-1E10;if(!(h<-1E10))break b}O[a+24>>3]=c}c=1E10;c:{if(!(e>1E10)){c=-1E10;if(!(e<-1E10))break c}O[a+32>>3]=c}e=1E10;d:{if(!(k>1E10)){e=-1E10;if(!(k<-1E10))break d}O[a+40>>3]=e}e=1E10;e:{if(!(d>1E10)){e=-1E10;if(!(d<-1E10))break e}O[a+48>>3]=e}e=1E10;f:{if(!(g>1E10)){e=-1E10;if(!(g<-1E10))break f}O[a+56>>3]=e}}function kC(a){a=a|0;var b=0,c= -0,d=0,e=0;J[a>>2]=351592;b=J[a+8>>2];d=J[a+12>>2];if((b|0)!=(d|0)){while(1){c=J[b>>2];if(c){qc(MK(c));d=J[a+12>>2]}b=b+4|0;if((d|0)!=(b|0))continue;break}b=J[a+8>>2]}J[a+12>>2]=b;c=J[a+32>>2];if(c){e=c-4|0;b=J[e>>2];if(b){d=P(b,20)+c|0;while(1){b=d-20|0;if(H[d-9|0]<0)qc(J[b>>2]);d=b;if((b|0)!=(c|0))continue;break}}qc(e);J[a+32>>2]=0}a:{if(!J[a+48>>2])break a;b=J[a+44>>2];d=J[b>>2];c=J[J[a+40>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+48>>2]=0;c=a+40|0;if((c|0)==(b|0))break a;while(1){d=J[b+4>>2];if(H[b+ -19|0]<0)qc(J[b+8>>2]);qc(b);b=d;if((c|0)!=(b|0))continue;break}}if(H[a+31|0]<0)qc(J[a+20>>2]);b=J[a+8>>2];if(b){J[a+12>>2]=b;qc(b)}return a|0}function bDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;f=rc(356);a:{b:{c:{d:{e:{d=J[b>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break e;c=J[b>>2]}J[695492]=0;J[e+12>>2]=c;b=aa(5045,f|0,e+12|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;J[e+12>>2]=0;f:{if(!c)break f;J[695492]=0;f=J[c+4>>2]-1|0;J[c+4>>2]=f;d= -J[695492];J[695492]=0;if((d|0)==1)break b;if(f)break f;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break b}J[a>>2]=0;md(a,b);J[695492]=0;_(5046,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;vc(a);ba(b|0);B()}c=Z()|0;break c}c=Z()|0;vc(e+12|0)}qc(f);ba(c|0);B()}ea(0)|0;yc();B()}bc=e+16|0}function Pl(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;sj(c+8|0,a,0);J[695492]=0;ca(5231,c|0,b|0,0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[c>>2];e=J[(a?a+12|0:2728584)>> -2];a=J[c+8>>2];f=J[(a?a+12|0:2728584)>>2];while(1){g=d+f|0;a=K[g|0];if(!(!(!a|(a|0)==63)&(a|0)!=35)){a=0;while(1){h=a+e|0;b=K[h|0];if(!b|(b|0)==35|(b|0)==63)break a;a=a+1|0;continue}}d=d+1|0;continue}}a=Z()|0;sc(c+8|0);ba(a|0);B()}b:{if((a|0)==(d|0)){b=0;if(Ec(g,h))break b;b=!kd(f,e,d);break b}if(!((a+1|0)!=(d|0)|K[a+f|0]!=47)){b=0;if(Ec(g,h))break b;b=!kd(f,e,a);break b}b=0;if((d+1|0)!=(a|0)|K[d+e|0]!=47)break b;if(Ec(g,h))break b;b=!kd(f,e,d)}sc(c);sc(c+8|0);bc=c+16|0;return b|0}function NWa(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;d=bc-16|0;bc=d;e=K[b+11|0];h=e<<24>>24;a:{i=(h|0)<0?J[b+4>>2]:e;f=i+1|0;if(f>>>0<1073741808){b:{if(f>>>0<=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+11|0]=f;e=d;g=d+4|0;break b}e=f|3;if(e>>>0>=1073741823)break a;g=e+1|0;e=rc(g<<2);J[d+4>>2]=f;J[d>>2]=e;J[d+8>>2]=g|-2147483648;g=e+4|0}J[e>>2]=60;e=(h|0)<0?J[b>>2]:b;b=i<<2;j=Zc(g,e,b)+b|0,k=0,J[j>>2]=k;J[695492]=0;e=K[d+11|0];b=e<<24>>24<0;ga(2794,a|0,(b?J[d>>2]:d)|0,(b?J[d+4>>2]:e)|0)|0;b=J[695492]; -J[695492]=0;if((b|0)!=1){if(H[d+11|0]<0)qc(J[d>>2]);if(!c)Wr(a,816484);bc=d+16|0;return}a=Z()|0;if(H[d+11|0]<0)qc(J[d>>2]);ba(a|0);B()}Id(d);B()}Sd();B()}function MUa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;we(b,K[a+208|0]);ao(a,b);c=J[a+4>>2];if(c&32768){d=O[a+216>>3]*100;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}pd(b,c);d=O[a+224>>3]*100;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}pd(b,c);d=O[a+232>>3]*100;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}pd(b,c);d=O[a+240>>3]*100;d:{if(R(d)< -2147483648){c=~~d;break d}c=-2147483648}pd(b,c);c=J[a+4>>2]}e:{if(!(c&65536))break e;pd(b,J[a+252>>2]-J[a+248>>2]>>3);e=J[a+248>>2];if((e|0)==J[a+252>>2])break e;c=0;while(1){d=O[(c<<3)+e>>3]*1E4;f:{if(R(d)<2147483648){e=~~d;break f}e=-2147483648}pd(b,e);c=c+1|0;e=J[a+248>>2];if(c>>>0>2]-e>>3>>>0)continue;break}}}function Eob(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=K[b+36| -0];c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+13|0]=c;H[d+14|0]=c>>>8;H[d+15|0]=c>>>16;H[d+16|0]=c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+17|0]=c;H[d+18|0]=c>>>8;H[d+19|0]=c>>>16;H[d+20|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+21|0]=c;H[d+22|0]=c>>>8;H[d+23|0]=c>>>16;H[d+24|0]=c>>>24;c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+25|0]=c;H[d+26|0]=c>>>8;H[d+27|0]=c>>>16;H[d+28|0]=c>>>24;return ue(a,J[b>>2],21,d+8|0)| -0}function AV(a,b,c){var d=0,e=0;d=bc-16|0;bc=d;e=J[a+200>>2];if(e&1){a:{if(!(!b|!(K[b+9|0]&2))){Yc(a,67508);Ld(a,c);break a}if(e&4)J[a+200>>2]=e|8;if((c|0)!=7){Yc(a,67529);Ld(a,c);break a}c=d+9|0;qg(a,c,7);pe(a,c,7);if(Ld(a,0))break a;H[d+6|0]=K[d+15|0];c=K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14|0]<<24);I[d+2>>1]=c;I[d+4>>1]=c>>>16;c=K[d+9|0]|K[d+10|0]<<8;I[d>>1]=c<<8|c>>>8;b:{if(K[a+201|0]&2|(!a|!b))break b;c:{if(!((K[d+2|0]-13&255)>>>0<244|(K[d+3|0]-32&255)>>>0<225|(K[d+4|0]>23|K[d+5|0]>59)))if(K[d+ -6|0]<61)break c;Yc(a,64881);break b}a=L[d+4>>1]|L[d+6>>1]<<16;J[b+60>>2]=L[d>>1]|L[d+2>>1]<<16;J[b+64>>2]=a;J[b+8>>2]=J[b+8>>2]|512}}bc=d+16|0;return}Ad(a,67484);B()}function Z_a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=bc-96|0;bc=d;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=-1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a:{if(Rk(b,d))break a;e=J[d+24>>2];c=J[d+28>>2];if(!e&(c|0)<=0|(c|0)<0)break a;f=Ou(b,0,0);if((f|0)==-1)break a;b:{if(e>>>0>=2147483647){J[694731]=48;b=-1;break b}c:{d:{c=zc(40);b= -Vb(e|0,1,1,f|0,0,0,c+8|0,c|0)|0;if((b|0)>=0){J[c+12>>2]=f;break d}qc(c);break c}J[c+32>>2]=1;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=1;J[c+4>>2]=e;J[c+36>>2]=J[694755];J[694755]=c;b=J[c>>2]}b=(b|0)==-63?-63:b;if(b>>>0>=4294963201){J[694731]=0-b;b=-1}}Yy(f);if((b|0)==-1)break a;J[a+16>>2]=b;J[a+4>>2]=b;J[a+20>>2]=b+e;g=1}bc=d+96|0;return g|0}function Xe(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;h=a+4|0;d=J[a+4>>2];if(!d){J[b>>2]=h;return h|0}while(1){a:{a=d;d=a+16|0;e=K[a+27|0];g=e<<24>> -24<0;f=K[c+11|0];i=f<<24>>24<0;b:{c:{d:{e=g?J[a+20>>2]:e;f=i?J[c+4>>2]:f;j=e>>>0>>0?e:f;if(j){g=gd(i?J[c>>2]:c,g?J[a+16>>2]:d,j);if(g)break d}if(e>>>0>f>>>0)break c;break b}if((g|0)>=0)break b}h=a;d=J[a>>2];if(d)continue;break a}e=K[c+11|0];g=e<<24>>24<0;f=K[a+27|0];i=f<<24>>24<0;e:{f:{e=g?J[c+4>>2]:e;f=i?J[a+20>>2]:f;j=e>>>0>>0?e:f;if(j){d=gd(i?J[d>>2]:d,g?J[c>>2]:c,j);if(d)break f}if(e>>>0>f>>>0)break e;break a}if((d|0)>=0)break a}h=a+4|0;d=J[a+4>>2];if(d)continue}break}J[b>>2]=a;return h| -0}function SU(a,b){var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[b+4>>2];e=J[b>>2];J[a+8>>2]=0;J[a>>2]=e;J[a+4>>2]=d;J[a+12>>2]=J[682146];d=a+8|0;a:{b=J[b+8>>2];b:{c:{if(b){e=J[J[b>>2]+28>>2];J[695492]=0;ca(e|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+12>>2]=0}J[695492]=0;aa(4993,d|0,c+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break a;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break a;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}a=Z()|0;vc(c+12|0)}sc(d);ba(a|0);B()}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2728584)>>2];bc=c+16|0;return a}function DT(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;e=bc-16|0;bc=e;J[a>>2]=0;if((c|0)<0)c=Qc(J[b+12>>2]);a:{b:{c:{d:{if((c|0)>0){d=J[J[b>>2]+8>>2];J[695492]=0;g=d;d=e+12|0;ca(g|0,d|0,b|0,c|0);f=J[695492];J[695492]=0;if((f|0)==1)break d;J[695492]=0;aa(4993,a|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break c;d=J[e+12>> -2];J[e+12>>2]=0;e:{if(!d)break e;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(f)break e;J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}h=qd(J[J[a>>2]+12>>2],J[b+12>>2],c)+c|0,i=0,H[h|0]=i}bc=e+16|0;return}c=Z()|0;break b}c=Z()|0;vc(e+12|0)}vc(a);ba(c|0);B()}ea(0)|0;yc();B()}function aab(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;var h=0,i=0;a:{b:{g=J[a+668>>2];c:{d:{if(!g){g=rc(40);J[695492]=0;J[g+4>>2]=1;J[g>>2]=347640; -h=J[695492];J[695492]=0;if((h|0)!=1){J[g>>2]=340592;J[695492]=0;h=g+8|0;J[h+12>>2]=0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=349684;J[h+20>>2]=0;J[h+24>>2]=0;H[h+28|0]=0;i=J[695492];J[695492]=0;if((i|0)==1)break b;J[695492]=0;da(2247,h|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break d;a=Z()|0;ji(h);break a}a=Z()|0;break a}g=gc[J[J[g>>2]+20>>2]](g,b)|0;if(!g)break c}b=gc[J[J[g>>2]+16>>2]](g)|0;E3(J[a+16>>2],b,O[c>>3],O[d>>3],O[e>>3],O[f>>3]);gc[J[J[g>>2]+12>>2]](g)|0}return 0}a=Z()|0}qc(g);ba(a| -0);B()}function u3(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[a+20>>2];i=J[a+28>>2]-f>>3;h=J[a+8>>2];while(1){a=I[f+8>>1];e=I[f+10>>1];a:{if((e|0)>0){if(J[b+16>>2]<(h|0)|J[b+8>>2]>(h|0))break a;g=J[f+12>>2];d=J[b+4>>2];b:{if((a|0)>=(d|0)){d=a;break b}e=(a-d|0)+e|0;if((e|0)<=0)break a;g=(d-a|0)+g|0}j=J[b>>2];a=J[b+12>>2];if((a|0)<(d+e|0)){a=a-d|0;if((a|0)<0)break a;e=a+1|0}$K(j,d,h,e,c,g);break a}if(J[b+16>>2]<(h|0)|J[b+8>>2]>(h|0))break a;d=a+(e^-1)|0;e=(a|0)<(d|0)?a:d;g=J[b+12>>2];if((e|0)>(g|0))break a; -a=(a|0)>(d|0)?a:d;d=J[b+4>>2];if((a|0)<(d|0))break a;d=(d|0)<(e|0)?e:d;t3(J[b>>2],d,h,(((a|0)<(g|0)?a:g)-d|0)+1|0,c,K[J[f+12>>2]])}f=f+8|0;i=i-1|0;if(i)continue;break}}function tC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[a+20>>2];i=J[a+28>>2]-f>>3;h=J[a+4>>2];while(1){a=I[f+8>>1];e=I[f+10>>1];a:{if((e|0)>0){if(J[b+16>>2]<(h|0)|J[b+8>>2]>(h|0))break a;g=J[f+12>>2];d=J[b+4>>2];b:{if((a|0)>=(d|0)){d=a;break b}e=(a-d|0)+e|0;if((e|0)<=0)break a;g=(d-a|0)+g|0}j=J[b>>2];a=J[b+12>>2];if((a|0)<(d+e|0)){a= -a-d|0;if((a|0)<0)break a;e=a+1|0}$K(j,d,h,e,c,g);break a}if(J[b+16>>2]<(h|0)|J[b+8>>2]>(h|0))break a;d=a+(e^-1)|0;e=(a|0)<(d|0)?a:d;g=J[b+12>>2];if((e|0)>(g|0))break a;a=(a|0)>(d|0)?a:d;d=J[b+4>>2];if((a|0)<(d|0))break a;d=(d|0)<(e|0)?e:d;t3(J[b>>2],d,h,(((a|0)<(g|0)?a:g)-d|0)+1|0,c,K[J[f+12>>2]])}f=f+8|0;i=i-1|0;if(i)continue;break}}function _ba(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;if((b|0)==6){a:{if(!Jm(a,96464,7)){Nc(J[a+628>>2],96447,71064,0);a=0;break a}b=zc(5264);if(!b){Nc(J[a+628>>2],96447, -71628,0);a=0;break a}Hg(b,0,5264);I[b+208>>1]=514;H[b+204|0]=1;J[b>>2]=a;J[c>>2]=2;J[c+4>>2]=2;$d(a,530,c);J[a+652>>2]=622;J[a+520>>2]=623;J[a+516>>2]=624;J[a+556>>2]=625;J[a+548>>2]=625;J[a+540>>2]=625;J[a+584>>2]=b;J[a+572>>2]=626;J[a+560>>2]=627;J[a+552>>2]=627;J[a+544>>2]=627;J[a+536>>2]=628;J[a+532>>2]=629;J[a+524>>2]=630;J[b+160>>2]=J[a+672>>2];J[a+672>>2]=631;J[b+164>>2]=J[a+668>>2];J[a+676>>2]=632;J[a+668>>2]=633;J[a+12>>2]=J[a+12>>2]|131072;a=1}bc=c+16|0;return a|0}fa(69682,70456,397,96447); -B()}function MZa(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=bc-16|0;bc=e;f=J[b>>2];a:{if(!f){if(H[d+11|0]>=0){b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+8>>2];break a}Re(a,J[d>>2],J[d+4>>2]);break a}g=e+4|0;h=K[c+11|0];i=h<<24>>24<0;lm(g,i?J[c>>2]:c,i?J[c+4>>2]:h,0);J[695492]=0;c=Tt(f+12|0,g);f=J[695492];J[695492]=0;b:{if((f|0)!=1){if(H[e+15|0]<0)qc(J[e+4>>2]);if((c|0)!=(J[b>>2]+16|0))break b;if(H[d+11|0]>=0){b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+8>>2];break a}Re(a, -J[d>>2],J[d+4>>2]);break a}a=Z()|0;if(H[e+15|0]<0)qc(J[e+4>>2]);ba(a|0);B()}d=a;a=c+28|0;g=J[a>>2];f=a;a=K[c+39|0];b=a<<24>>24<0;mm(d,b?g:f,b?J[c+32>>2]:a)}bc=e+16|0}function B$(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;a:{if(!c)break a;if(!a){a=J[c+32>>2];if(!a)break a}d=J[a+44>>2];if(!(d|J[a+48>>2])|!b|J[a+4>>2]==13)break a;e=J[c+8>>2];h=J[b+8>>2];J[f+8>>2]=0;b:{c:{if(!d)break c;d=J[d+44>>2];if(!d)break c;g=sp(e,f+8|0);d:{if(g){e=tf(d,g,J[f+8>>2],h);d=J[f+8>>2];if(d)gc[J[659451]](d);gc[J[659451]](g); -break d}e=tf(d,e,0,h)}if(e)break b}d=J[a+48>>2];if(!d){e=0;break a}a=J[c+8>>2];b=J[b+8>>2];e=0;J[f+12>>2]=0;c=J[d+44>>2];if(!c)break a;d=sp(a,f+12|0);e:{if(d){e=tf(c,d,J[f+12>>2],b);a=J[f+12>>2];if(a)gc[J[659451]](a);gc[J[659451]](d);break e}e=tf(c,a,0,b)}if(e)break b;e=0;break a}e=J[e+40>>2]-3>>>0<2}bc=f+16|0;return e}function x7(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;a:{if(!a)break a;c=J[a+8>>2];b=c-1|0;if(b>>>0>31|!(1<>2];if((f|0)<=0)break a;g=J[a+4>>2];if((g| -0)<=0)break a;b=bd(1,44);if(!b)break a;J[b+16>>2]=1;J[b+8>>2]=c;J[b+4>>2]=g;J[b>>2]=f;c=(P(c,f)+31|0)/32|0;J[b+12>>2]=c;c=gc[J[659405]](P(c,g)<<2)|0;if(!c)break a;J[b+40>>2]=c;Ao(b,0);if((a|0)==(b|0)){d=a;break a}J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2];d=J[b+36>>2];J[e+8>>2]=d;if(d){xo(e+8|0);J[b+36>>2]=0}d=J[a+36>>2];b:{if(!d)break b;d=HM(d);if(!d)break b;c=J[b+36>>2];J[e+12>>2]=c;if(c)xo(e+12|0);J[b+36>>2]=d}n7(b+32|0,J[a+32>>2]);J[b+28>>2]=J[a+28>>2];d=b}bc=e+16|0;return d}function Eqb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-1|0;while(1){I[g>>1]=L[f>>1];I[g+2>>1]=L[f+2>>1];h=g+4|0;a=j?(j|0)==(l|0)?d:b:c;a:{if(a>>>0<2){g=h;break a}i=a-1|0;k=i&3;b:{if(a-2>>>0<3){a=g;break b}m=i&-4;i=0;a=g;while(1){I[h>>1]=L[f>>1];I[a+6>>1]=L[f+2>>1];I[h+4>>1]=L[f>>1];I[h+6>>1]=L[f+2>>1];I[h+8>>1]=L[f>>1];I[h+10>>1]=L[f+2>>1];I[h+12>>1]=L[f>>1];I[h+14>>1]=L[f+2>>1];a=h+12|0;h=h+16|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;g=h;if(!k)break a;while(1){h= -g;I[h>>1]=L[f>>1];I[a+6>>1]=L[f+2>>1];g=h+4|0;a=h;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=f+4|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function Al(a){var b=0,c=0,d=0,e=0;a:{b:{b=K[a+7|0];if((b|0)!=255){c=J[a>>2];if(c>>>0<134217728)break b;b=b+1|0;H[a+7|0]=b;if((b&255)!=255)break b;J[a>>2]=c&134217727}d=a;b=J[a+8>>2];if((b|0)>=0){b=J[a+20>>2];c:{if((b|0)!=20480){c=J[a+16>>2];e=255;break c}Bx(J[a+12>>2],a+16|0);c=rc(20480);J[a+16>>2]=c;b=0;e=K[a+7|0]}J[a+20>>2]=b+1;H[b+c|0]=e;b=J[a+8>>2]}J[d+ -8>>2]=b+1;b=J[a>>2];H[a+7|0]=b>>>20;d=7;b=b&1048575;break a}d=J[a+8>>2];if((d|0)>=0){c=J[a+20>>2];d:{if((c|0)!=20480){d=J[a+16>>2];break d}Bx(J[a+12>>2],a+16|0);d=rc(20480);J[a+16>>2]=d;b=K[a+7|0];c=0}J[a+20>>2]=c+1;H[c+d|0]=b;c=J[a>>2];d=J[a+8>>2]}J[a+8>>2]=d+1;H[a+7|0]=c>>>19;d=8;b=c&524287}H[a+6|0]=d;J[a>>2]=b}function zqb(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;var h=0,i=0,j=0,k=0,l=0;if(e){k=e-1|0;while(1){I[g>>1]=L[f>>1];I[g+2>>1]=L[f+2>>1];I[g+4>>1]=L[f+4>>1];I[g+6>>1]=L[f+ -6>>1];a=g+8|0;h=i?(i|0)==(k|0)?d:b:c;a:{if(h>>>0<2)break a;j=h-1|0;l=j&1;if((h|0)!=2){j=j&-2;h=0;while(1){I[a>>1]=L[f>>1];I[g+10>>1]=L[f+2>>1];I[g+12>>1]=L[f+4>>1];I[g+14>>1]=L[f+6>>1];I[a+8>>1]=L[f>>1];I[a+10>>1]=L[f+2>>1];I[a+12>>1]=L[f+4>>1];I[a+14>>1]=L[f+6>>1];g=a+8|0;a=a+16|0;h=h+2|0;if((j|0)!=(h|0))continue;break}}if(!l)break a;I[a>>1]=L[f>>1];I[g+10>>1]=L[f+2>>1];I[g+12>>1]=L[f+4>>1];I[g+14>>1]=L[f+6>>1];a=a+8|0}g=a;f=f+8|0;i=i+1|0;if((i|0)!=(e|0))continue;break}}return 0}function tob(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;c=J[a+428>>2];H[c+8|0]=K[b+32|0];k=c+8|0;a:{if(!J[b+36>>2]){d=1;break a}c=c+9|0;d=1;while(1){b:{c:{f=P(g,5)+b|0;i=K[f+44|0];if(i){if(!h){H[c+1|0]=0;H[c|0]=g;d=d+2|0;j=c+1|0;c=c+2|0}h=1;e=K[b+32|0];if(e>>>0>5)break b;e=1<>2];if(g>>>0>>0)continue;break}if(!i)break a;H[j|0]=e-1}return ue(a,J[b>>2],d,k)|0}function FN(a,b,c,d){var e=0,f=0,g=0,h=0;g=bc-128|0;bc=g;a:{if((c|0)>=0){f=g;a=J[b>>2];if(!a){e=b;break a}while(1){J[f>>2]=b;f=f+4|0;e=a;b=a;a=J[a>>2];if(a)continue;break}break a}fa(202167,198839,339,212505);B()}a=0;b:{while(1){b=J[e+8>>2];if((b|0)<(a|0)){J[e+8>>2]=a;b=a}c:{if((b|0)>=(c|0))break c;while(1){if(J[e+4>>2]<=(b|0))break c;d:{if(H[d+16|0]&1){h= -J[d+8>>2];a=h-1|0;J[d+8>>2]=a;if((h|0)>0){a=J[d+4>>2]>>>a&1;break d}a=Bg(d);if((a|0)>=0)break d;a=-1;break b}fa(203292,198839,357,212505);B()}e:{if(a){J[e+4>>2]=b;break e}b=b+1|0}if((b|0)<(c|0))continue;break}}J[e+8>>2]=b;if((f|0)!=(g|0)){f=f-4|0;e=J[f>>2];a=b;continue}break}a=J[e+4>>2]<(c|0)}bc=g+128|0;return a}function Vu(a,b,c){var d=0,e=0;Oc(b,2448E3,-1);if(R(O[a+592>>3])>.01){Oc(b,2448032,-1);d=O[a+592>>3]*6E4;a:{if(R(d)<2147483648){e=~~d;break a}e=-2147483648}wg(b,e);Oc(b,2440928,-1)}Oc(b,2441228, --1);e=b;if(K[c|0]){Oc(b,2448144,-1);d=O[a+32>>3]*36E3;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}wg(b,c);Oc(b,2440036,-1);d=O[a+8>>3]*36E3;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}wg(b,c);c=2440060}else c=2448060;Oc(e,c,-1);Oc(b,2448188,-1);Oc(b,2441924,-1);d=O[a+48>>3]*36E3;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}wg(b,c);Oc(b,2441948,-1);d=O[a+24>>3]*36E3;e:{if(R(d)<2147483648){a=~~d;break e}a=-2147483648}wg(b,a);Oc(b,2440060,-1);Oc(b,2448216,-1)}function Vga(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;if((c|0)>0){g=J[a+12>>2];while(1){i=c;j=J[a+4>>2];f=+N[b+4>>2];c=1023;a:{if(f>=15.742)break a;c=0;if(f<=2.4283E-4)break a;d=os(f)*1.4426950408889634+12;if(j){e=Dzb(J[694792],J[694793],1284865837,1481765933);c=fc;e=e+1|0;c=e?c:c+1|0;J[694792]=e;J[694793]=c;f=+N[b+4>>2];d=d*64+ +(c>>>1|0)*4.656612875245797E-10+-.5}else d=d*64;if(R(d)<2147483648){c=~~d;break a}c=-2147483648}e=c;d=.473684211;k=.210526316;b:{if(!c)break b;l=+N[b>>2];h=+N[b+8>> -2]*3+(f*15+l);if(h<=0)break b;d=f*9/h;k=l*4/h}c=i-1|0;m=e<<14;e=kR(k,d,j);J[g>>2]=m|((e|0)<0?12266:e);b=b+12|0;g=g+4|0;if(i>>>0>1)continue;break}}}function IXa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if((e|0)<=0)break a;k=J[a+28>>2];if(!k)break a;j=J[J[a+408>>2]+8>>2];while(1){l=e-1|0;a=d<<2;m=J[a+J[c+12>>2]>>2];n=J[a+J[c+8>>2]>>2];o=J[a+J[c+4>>2]>>2];p=J[a+J[c>>2]>>2];a=J[b>>2];f=0;while(1){g=K[a+2|0];h=K[a+1|0];i=K[a|0];H[f+m|0]=K[a+3|0];g=((g^ -255)<<2)+j|0;h=((h^255)<<2)+j|0;i=((i^255)<<2)+j|0;H[f+p|0]=J[g+2048>>2]+(J[h+1024>>2]+J[i>>2]|0)>>>16;H[f+o|0]=J[g+5120>>2]+(J[h+4096>>2]+J[i+3072>>2]|0)>>>16;H[f+n|0]=J[g+7168>>2]+(J[h+6144>>2]+J[i+5120>>2]|0)>>>16;a=a+4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=l;if(a)continue;break}}}function AZa(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;e=-1;if(!(!d|!b|(!a|!c))){g=J[d>>2];h=(g|0)>0;i=J[b>>2]+a|0;a:{if((g|0)<=0){e=c;f=a;break a}e=c;f=a;k=i-1|0; -if(f>>>0>=k>>>0)break a;j=e+g|0;g=j;while(1){h=H[e|0];if((h|0)<0){H[f|0]=(h&192)>>>6|192;H[f+1|0]=K[e|0]&63|128;f=f+2|0;e=e+1|0}h=i-f|0;g=(h|0)<(g-e|0)?h+e|0:g;b:{if(g>>>0<=e>>>0)break b;while(1){h=H[e|0];if((h|0)<0)break b;H[f|0]=h;f=f+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}e=g}h=e>>>0>>0;if(e>>>0>=j>>>0)break a;if(f>>>0>>0)continue;break}}c:{if(!h|f>>>0>=i>>>0)break c;g=H[e|0];if((g|0)<0)break c;H[f|0]=g;f=f+1|0;e=e+1|0}J[b>>2]=f-a;J[d>>2]=e-c;e=J[b>>2]}return e|0}function _za(a){a=a| -0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;c=rc(16);J[c>>2]=0;J[c+4>>2]=0;d=c+8|0;J[d>>2]=0;J[c+12>>2]=J[682146];a:{a=J[a>>2];b:{c:{if(a){e=J[J[a>>2]+28>>2];J[695492]=0;ca(e|0,b+12|0,a|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break c;a=Z()|0;break b}J[b+12>>2]=0}J[695492]=0;aa(4993,d|0,b+12|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[b+12>>2];J[b+12>>2]=0;if(!a)break a;J[695492]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]= -0;if((a|0)!=1)break a}ea(0)|0;yc();B()}a=Z()|0;vc(b+12|0)}sc(d);ba(a|0);B()}a=J[c+8>>2];J[c+12>>2]=J[(a?a+12|0:2728584)>>2];bc=b+16|0;return c|0}function BNa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-4096|0;bc=d;J[a>>2]=2307512;a:{b:{c:switch(J[b>>2]-3|0){case 0:b=J[b+8>>2];c=rc(8);J[695492]=0;b=aa(3183,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+4>>2]=b;break b;case 5:c=rc(8);J[695492]=0;e=$(3184,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[a+4>>2]=e;c=J[b+8>>2];gc[J[J[c>> -2]+20>>2]](c);c=J[b+8>>2];c=gc[J[J[c>>2]+40>>2]](c,d,4096)|0;if((c|0)>0)while(1){cf(J[a+4>>2],d,c);c=J[b+8>>2];c=gc[J[J[c>>2]+40>>2]](c,d,4096)|0;if((c|0)>0)continue;break}b=J[b+8>>2];gc[J[J[b>>2]+24>>2]](b);break b;default:break c}xc(1,-1,807456,0);J[a+4>>2]=0}bc=d+4096|0;return a|0}a=Z()|0;qc(c);ba(a|0);B()}function Gza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=1;e=0;a:{if(!a)break a;d=J[a>>2];e=0;if(!d)break a;g=J[d+676>>2];f=0;c=d;e=J[c+668>>2]}b:{if(!b)break b;d=J[b>>2];if(!d)break b; -c:{if(f)break c;fp(c,d,32767,-1);if(!J[c+644>>2])break c;rd(c,J[c+648>>2]);J[c+644>>2]=0}ft(d,g,e);J[b>>2]=0}if(!f){b=bc-160|0;bc=b;if(J[c+276>>2])go(c+212|0);rd(c,J[c+268>>2]);rd(c,J[c+356>>2]);rd(c,J[c+352>>2]);rd(c,J[c+360>>2]);rd(c,J[c+364>>2]);rd(c,J[c+368>>2]);rd(c,J[c+372>>2]);b=tc(b,c,156);d=J[c+164>>2];f=J[c+160>>2];h=J[c+168>>2];i=J[c+676>>2];wc(c+156|0,0,612);J[c+676>>2]=i;J[c+168>>2]=h;J[c+160>>2]=f;J[c+164>>2]=d;tc(c,b,156);bc=b+160|0;ft(c,g,e);J[a>>2]=0}}function Pf(a,b,c){var d=0,e= -0,f=0,g=0,h=0,i=0,j=0;e=bc-16|0;bc=e;a:{if(!(K[a+12|0]&128))break a;b:switch(L[b+2>>1]-3|0){case 0:case 5:qs(c,J[b+4>>2]);break a;case 1:case 6:case 8:Xo(c,J[b+4>>2]);break a;case 2:case 7:Xo(c,J[b+4>>2]<<1);break a;case 9:break b;default:break a}GF(c,J[b+4>>2])}J[b+8>>2]=J[a+488>>2];f=J[b+4>>2];d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+91532>>2];else d=0;c:{d:{if((gc[J[a+640>>2]](J[a+628>>2],J[b+8>>2],0)|0)!=J[b+8>>2])break d;g=c;c=P(d,f);if((gc[J[a+636>>2]](J[a+628>>2],g,c)|0)!=(c|0))break d;h=1;J[a+ -488>>2]=J[a+488>>2]+(c+1&-2);break c}c=J[a>>2];d=J[a+628>>2];i=e,j=J[Lf(a,L[b>>1])+16>>2],J[i>>2]=j;Nc(d,c,75764,e)}bc=e+16|0;return h}function DHa(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=bc-16|0;bc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;if(J[a+8>>2]==16)g=J[a+156>>2]+P(J[a+192>>2],5644)|0;else g=J[a+12>>2];h=J[a+72>>2];f=M[h+16>>2]<257?1:2;c:{if(f>>>0>=c>>>0){c=0;Hc(d,1,2354698,0);break c}J[e+12>>2]=(f^-1)+c;ld(b,e+8|0,f);i=J[e+8>>2];if(i>>>0>=M[h+16>>2]){c=0;Hc(d,1,2354724, -0);break c}c=1;b=b+f|0;ld(b,J[g+5584>>2]+P(i,1080)|0,1);if(!YW(a,J[e+8>>2],b+1|0,e+12|0,d)){c=0;Hc(d,1,2354698,0);break c}if(!J[e+12>>2])break c;c=0;Hc(d,1,2354698,0)}bc=e+16|0;return c|0}fa(2353829,2346358,2918,2354681);B()}fa(2346477,2346358,2919,2354681);B()}fa(2346590,2346358,2920,2354681);B()}function M2a(a){a=a|0;var b=0,c=0,d=0;J[a+4>>2]=1;J[a>>2]=348156;J[a>>2]=351116;J[695492]=0;c=a+8|0;J[c+4>>2]=1;J[c>>2]=347728;J[c>>2]=350128;b=c+12|0;J[b>>2]=0;J[b+4>>2]=0;J[c+8>>2]=b;b=J[695492];J[695492]= -0;a:{b:{c:{d:{if((b|0)!=1){J[695492]=0;d=$(2270,a+28|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;J[(a+72|0)+4>>2]=1;J[a+72>>2]=348116;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[a+72>>2]=351592;J[a+96>>2]=0;J[a+100>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+120>>2]=0;b=a+112|0;J[a+116>>2]=b;J[a+104>>2]=0;J[a+108>>2]=0;J[a+48>>2]=c;J[a+112>>2]=b;return a|0}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;Qw(d)}Tw(c)}ba(a|0);B()}function LUa(a,b){a=a|0;b=b|0;var c=0,d=0, -e=0;we(b,K[a+209|0]);ao(a,b);pd(b,J[a+228>>2]-J[a+224>>2]>>3);c=J[a+224>>2];if((c|0)!=J[a+228>>2])while(1){e=O[(d<<3)+c>>3]*100;a:{if(R(e)<2147483648){c=~~e;break a}c=-2147483648}pd(b,c);d=d+1|0;c=J[a+224>>2];if(d>>>0>2]-c>>3>>>0)continue;break}d=J[a+4>>2];if(d&32768){we(b,K[a+210|0]);we(b,K[a+211|0]);d=J[a+4>>2]}b:{if(!(d&65536))break b;pd(b,J[a+216>>2]-J[a+212>>2]>>3);c=J[a+212>>2];if((c|0)==J[a+216>>2])break b;d=0;while(1){e=O[(d<<3)+c>>3]*1E4;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}pd(b, -c);d=d+1|0;c=J[a+212>>2];if(d>>>0>2]-c>>3>>>0)continue;break}}if(K[a+6|0]&16)we(b,K[a+208|0])}function x$(a){var b=0,c=0;a:{c=J[a+36>>2];b=J[c+16>>2];b:{if(K[b|0]!=118|K[b+1|0]!=101|(K[b+2|0]!=114|K[b+3|0]!=115))break b;if(K[b+4|0]!=105|K[b+5|0]!=111|K[b+6|0]!=110)break b;J[a+200>>2]=J[a+200>>2]+7;J[c+16>>2]=b+7;J[c+32>>2]=J[c+32>>2]+7;b=K[b+7|0];if((b|0)==37){Od(a);c=J[a+36>>2];b=K[J[c+16>>2]]}c:{if(b)break c;if((Cd(c)|0)>0)break c;ze(a)}Ud(a);if(K[J[J[a+36>>2]+16>>2]]!=61){Pe(a,75,0);return 0}Qd(a); -Ud(a);d:switch(K[J[J[a+36>>2]+16>>2]]-34|0){case 0:Qd(a);b=p$(a);if(K[J[J[a+36>>2]+16>>2]]!=34)break a;Qd(a);return b;case 5:Qd(a);b=p$(a);if(K[J[J[a+36>>2]+16>>2]]!=39)break a;Qd(a);return b;default:break d}Pe(a,33,0)}return 0}Pe(a,34,0);return b}function wsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-32|0;bc=d;J[695492]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2414676;ia(5479,d+12|0,d+16|0,b|0,c|0);b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[d+16>>2]=2414580;b=J[d+28>>2];if(b){H[b|0]=0;qc(J[d+ -28>>2])}J[d+28>>2]=0;ed(d+16|0);J[695492]=0;aa(5144,a|0,d+12|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+32|0;return}a=Z()|0;vc(d+12|0);ba(a|0);B()}a=Z()|0;bh(d+16|0);ba(a|0);B()}ea(0)|0;yc();B()}function cab(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;a:{if(c){J[a+ -508>>2]=1;b=1;if(!J[a+16>>2]|!J[a+20>>2])break a;qr(a);g=J[a+20>>2];b=J[a+12>>2];i=O[e>>3];j=O[f>>3];a=bc+-64|0;bc=a;J[a+60>>2]=d;if(b){J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;d=a+48|0;e=a+40|0;gc[J[J[b>>2]+124>>2]](b,d,e,a+32|0,a+24|0,a+16|0,a+8|0)|0;N[a+48>>2]=i;N[a+40>>2]=j;gc[J[J[b>>2]+92>>2]](b,c,a+60|0,d,e)|0;gc[J[J[b>>2]+132>>2]](b,g)|0}bc=a- -64|0;return 0}J[a+ -508>>2]=0;b=gc[J[J[a>>2]+364>>2]](a,b,e,f,g,h)|0}return b|0}function sAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;if(J[b+8>>2]==2){J[a>>2]=0;J[a+4>>2]=J[682146];a:{b=J[b+24>>2];b:{c:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break a;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e| -0)!=1){if(d)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}b=Z()|0;vc(c+12|0)}sc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];bc=c+16|0;return}sv(b,2);B()}function rAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;if(J[b+8>>2]==3){J[a>>2]=0;J[a+4>>2]=J[682146];a:{b=J[b+32>>2];b:{c:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[c+12>>2]=0}J[695492]=0;aa(4993, -a|0,c+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break a;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}b=Z()|0;vc(c+12|0)}sc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];bc=c+16|0;return}sv(b,3);B()}function kG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-32|0;bc=d;J[695492]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]= -2414676;ia(5485,d+12|0,d+16|0,b|0,c|0);b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[d+16>>2]=2414580;b=J[d+28>>2];if(b){H[b|0]=0;qc(J[d+28>>2])}J[d+28>>2]=0;ed(d+16|0);J[695492]=0;aa(5144,a|0,d+12|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+32|0;return}a=Z()|0;vc(d+12|0);ba(a|0);B()}a=Z()|0;bh(d+ -16|0);ba(a|0);B()}ea(0)|0;yc();B()}function XBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-32|0;bc=e;f=-1;a:{b:{c:{d:{e:switch(c|0){case 0:c=J[a+20>>2];break d;case 2:break c;case 1:break e;default:break a}c=J[a+20>>2];b=c+b|0}if((b|0)<(c|0)){d=J[a+540>>2];f:{if((d+b|0)>=(c|0)){J[a+540>>2]=d+(b-c|0);break f}J[a+536>>2]=0}J[a+20>>2]=b;f=0;break a}f=0;if((b|0)<=(c|0))break a;J[a+20>>2]=b-1;J[a+540>>2]=J[a+540>>2]+((c^-1)+b|0);if(gc[J[J[a>>2]+8>>2]](a,e+31|0,1)|0)break a;a=Kc(e+4|0,J[682138], -2375807,1782,2385740,0);break b}if(d)break a;a=Kc(e+4|0,2381262,2375807,1789,2385740,0)}J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0)}B()}bc=e+32|0;return f|0}function AT(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-32|0;bc=d;J[695492]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2414676;ia(5486,d+12|0,d+16|0,b|0,c|0);b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[d+16>>2]=2414580;b=J[d+28>>2];if(b){H[b|0]=0;qc(J[d+28>>2])}J[d+28>>2]=0;ed(d+16|0);J[695492]=0;aa(5144, -a|0,d+12|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+32|0;return}a=Z()|0;vc(d+12|0);ba(a|0);B()}a=Z()|0;bh(d+16|0);ba(a|0);B()}ea(0)|0;yc();B()}function XU(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;if(J[b+8>>2]==4){J[a>>2]=0;J[a+4>>2]=J[682146];a:{b=J[b+12>>2];b:{c:{if(b){d=J[J[b>>2]+ -28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break a;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}b=Z()|0;vc(c+12|0)}sc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];bc=c+16|0;return}sv(b, -4);B()}function Htb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=J[J[a+536>>2]+88>>2];e=(J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0)+P(J[c+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-2|0){case 0:if(J[a+588>>2]<=0)break a;while(1){b=e+2|0;d=K[b|0]|K[b+1|0]<<8;g=(d<<8|d>>>8)&65535;d=K[c|0]|K[c+1|0]<<8;d=g+((d<<8|d>>>8)&65535)&65535;d=d<<8|d>>>8;H[b|0]=d;H[b+1|0]=d>>>8;c=c+2|0;e=e+4|0;f=f+1|0;if((f|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a; -while(1){b=K[c|0]|K[c+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[e+2|0]=b;H[e+3|0]=b>>>8;c=c+2|0;e=e+4|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function Btb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=J[J[a+536>>2]+88>>2];e=(J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0)+P(J[c+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-2|0){case 0:if(J[a+588>>2]<=0)break a;while(1){b=e+6|0;d=K[b|0]|K[b+1|0]<<8;g=(d<<8|d>>>8)&65535;d=K[c|0]|K[c+1|0]<<8;d=g+((d<<8|d>>>8)&65535)&65535;d=d<< -8|d>>>8;H[b|0]=d;H[b+1|0]=d>>>8;c=c+2|0;e=e+8|0;f=f+1|0;if((f|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){b=K[c|0]|K[c+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[e+6|0]=b;H[e+7|0]=b>>>8;c=c+2|0;e=e+8|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function s7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f= -255-e|0;i=K[a+3|0];k=P(i,e);j=i^255;h=K[a+2|0];g=b<<1;a:{if(g>>>0>>0){g=P(h,f+g|0)+P(b,j)|0;break a}g=(((P(b,j)+k|0)+P(f,h)|0)+(P(b-e|0,i-h|0)<<1)|0)+255|0}b=K[a|0];h=K[a+1|0];H[a+2|0]=g>>>8;g=c<<1;b:{if(g>>>0>>0){c=P(h,f+g|0)+P(c,j)|0;break b}c=(((P(c,j)+k|0)+P(f,h)|0)+(P(c-e|0,i-h|0)<<1)|0)+255|0}H[a+1|0]=c>>>8;c=d<<1;c:{if(c>>>0>>0){d=P(b,c+f|0)+P(d,j)|0;c=k+255|0;break c}c=k+255|0;d=((c+P(d,j)|0)+P(b,f)|0)+(P(d-e|0,i-b|0)<<1)|0}H[a|0]=d>>>8;H[a+3|0]=e+i-(c>>>8)}}function Vh(a,b){var c= -0,d=0,e=0,f=0;f=bc-16|0;bc=f;a:{b:{c:{if(a){if(!b)break a;c=J[a+80>>2];if(!c)break c;while(1){if(J[b>>2]-1>>>0>=4)break b;d=b;b=J[b+16>>2];e=J[d+12>>2];if(e)Vh(a,e);e=J[d+8>>2];d:{if(!e)break d;if(wk(c,e))break d;gc[J[659451]](J[d+8>>2])}e=J[d+24>>2];e:{if(!e)break e;if(wk(c,e))break e;gc[J[659451]](J[d+24>>2])}gc[J[659451]](d);if(b)continue;break}break a}if(!b)break a}while(1){if(J[b>>2]-1>>>0>3)break b;d=J[b+16>>2];c=J[b+12>>2];if(c)Vh(a,c);c=J[b+8>>2];if(c)gc[J[659451]](c);c=J[b+24>>2];if(c)gc[J[659451]](c); -gc[J[659451]](b);b=d;if(b)continue;break}break a}J[f>>2]=34237;Cc(0,0,0,0,0,23,1,2,0,0,0,0,4607,f)}bc=f+16|0}function Ex(a,b,c){var d=0,e=0,f=0,g=0;te(c,Ac(c)<<1);a:{b:{if(!Ac(c)){if((Ac(c)|0)!=1349415968)break b;f=Ac(c);if(f)while(1){if(Ac(c))break a;d=Ac(c);e=Ac(c);c:{d:{if((d|0)!=1450341475){if((d|0)!=1215461998)break d;d=a;if((e|0)!=1433302086)break c;if((Ac(c)|0)==592474723)break c;fa(225528,219843,1287,225591);B()}d=b;if((e|0)!=1433302086)break c;if((Ac(c)|0)==592474723)break c;fa(225528,219843, -1300,225591);B()}fa(219530,219843,1308,225591);B()}g=be(c);e:{if(R(g)<2147483648){e=~~g;break e}e=-2147483648}J[d>>2]=e;f=f-1|0;if(f)continue;break}return}fa(221262,219843,1263,225591);B()}fa(225619,219843,1266,225591);B()}fa(221262,219843,1274,225591);B()}function $V(a,b,c){var d=0,e=0;d=bc-272|0;bc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Yc(a,62227);Ld(a,c);break a}if(e&2)Yc(a,62329);if(!(!b|(J[b+8>>2]&2049)!=1)){Yc(a,62464);Ld(a,c);break a}if((c|0)!=4){Yc(a,62578);Ld(a,c);break a}c=d+268|0;qg(a,c,4); -pe(a,c,4);if(Ld(a,0))break a;c=K[d+268|0]|K[d+269|0]<<8|(K[d+270|0]<<16|K[d+271|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((c|0)<=0){Yc(a,62769);break a}c=(c|0)<0?-1:c;if(!(!b|!(K[b+9|0]&8)|c-46001>>>0>4294966294)){pk(d,1,5,c);Kq(a,d,62839);break a}J[a+460>>2]=c;b:{if(!a|!b)break b;if(c-625000001>>>0<=3669967310){Yc(a,60431);break b}J[b+40>>2]=c;J[b+8>>2]=J[b+8>>2]|1}}bc=d+272|0;return}Ad(a,62133);B()}function wz(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-32|0;bc=c;a:{b:{b=J[a+24>>2];if(!b){a=Kc(c+ -8|0,2387327,2378846,398,2415149,0);J[695492]=0;_(5019,a|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b;c=Z()|0;Fc(a);ba(c|0);B()}if(J[a+36>>2]>0){d=J[a+28>>2];J[b+8>>2]=d;e=d;d=J[b+4>>2];b=e-d|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c+8|0]=b;H[c+9|0]=b>>>8;H[c+10|0]=b>>>16;H[c+11|0]=b>>>24;b=J[a+16>>2];gc[J[J[b>>2]+20>>2]](b,d-4|0,0,0)|0;Os(J[a+16>>2],c+8|0,4);b=J[a+16>>2];gc[J[J[b>>2]+20>>2]](b,J[a+28>>2],0,0)|0;b=J[a+24>>2]}J[a+32>>2]=J[b+8>>2];d=a;a=J[b>>2];J[d+24>>2]=a;if(K[a+20|0]?0:a)break a; -qc(b);bc=c+32|0;return}B()}fa(2387678,2378846,418,2415183);B()}function bTa(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;J[a+4>>2]=c;j=a,k=vd(c,4),J[j>>2]=k;h=J[a+4>>2];a:{if((h|0)<=0)break a;if(h>>>0>=4){i=h&-4;while(1){f=d<<2;J[f+J[a>>2]>>2]=0;J[J[a>>2]+(f|4)>>2]=0;J[J[a>>2]+(f|8)>>2]=0;J[J[a>>2]+(f|12)>>2]=0;d=d+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}e=h&3;if(!e)break a;while(1){J[J[a>>2]+(d<<2)>>2]=0;d=d+1|0;g=g+1|0;if((e|0)!=(g|0))continue;break}}e=0;if((c|0)>0)while(1){g= -0;i=P(e,12)+b|0;d=J[i>>2];f=K[d|0];if(f)while(1){g=P(g,17)+f|0;f=K[d+1|0];d=d+1|0;if(f)continue;break}d=J[a>>2]+((g>>>0)%(h>>>0)<<2)|0;J[i+8>>2]=J[d>>2];J[d>>2]=i;e=e+1|0;if((e|0)!=(c|0))continue;break}return a|0}function LZ(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;while(1){g=a+n|0;h=H[g+8|0];i=h<<1;i=(h|0)<0?i^27:i;c=i<<1;k=i<<24>>24<0?c^27:c;c=k<<1;q=k<<24>>24<0?c^27:c;h=q^h;j=H[g|0];c=j<<1;c=(j|0)<0?c^27:c;b=c<<1;o=c<<24>>24<0?b^27:b;b=o<<1;r=o<<24>>24<0?b^ -27:b;j=r^j;p=H[g+12|0];b=p<<1;b=(p|0)<0?b^27:b;d=b<<1;l=b<<24>>24<0?d^27:d;e=H[g+4|0];d=e<<1;d=(e|0)<0?d^27:d;f=d<<1;f=d<<24>>24<0?f^27:f;s=l^f;m=e;e=f<<1;f=f<<24>>24<0?e^27:e;e=m^f;m=l<<1;l=l<<24>>24<0?m^27:m;H[g+12|0]=j^(c^s^b)^e^l^h;k=k^o;m=e^(j^(k^i^b)^q);b=l^p;H[g+8|0]=m^b;H[g+4|0]=b^(j^(f^(i^(d^s)))^h);H[g|0]=b^(e^(d^(c^k)^r)^h);n=n+1|0;if((n|0)!=4)continue;break}}function Hs(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(!J[689896])f=2759584,g=rc(1),J[f>>2]=g;a:{b:{c:{while(1){c=rc(a);J[(d<<2)+2759600>> -2]=c;b=J[689897];if(!b)break c;e=d+1|0;while(1){if(J[b>>2]!=(c|0)){b=J[b+4>>2];if(b)continue;break c}break}d=e;if((d|0)!=128)continue;break}d=128;c=rc(a);break b}if(!d)break a}while(1){a=d-1|0;qc(J[(a<<2)+2759600>>2]);e=(d|0)>1;d=a;if(e)continue;break}}a=di()+36|0;b=J[J[a+12>>2]+((c>>>0)%M[a+8>>2]<<2)>>2];d:{if(b)while(1){if(J[b+12>>2]==(c|0)&J[b+16>>2]==(c|0))break d;b=J[b+8>>2];if(b)continue;break}b=rc(24);J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+16>>2]=c;J[b+12>>2]=c;J[b+8>>2]=0;Rl(a,b)}J[b+20>> -2]=0;return c|0}function x7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){h=255-e|0;f=K[a+3|0];j=P(f,e);i=f^255;k=K[a+1|0];g=K[a+2|0];a:{if(f>>>0>g<<1>>>0){g=P(g,(b<<1)+h|0)+P(b,i)|0;break a}g=(((P(b,i)+j|0)+P(h,g)|0)+(P(b-e|0,f-g|0)<<1)|0)+255|0}b=K[a|0];H[a+2|0]=g>>>8;if(f>>>0>k<<1>>>0)c=P((c<<1)+h|0,k)+P(c,i)|0;else c=(((P(c,i)+j|0)+P(h,k)|0)+(P(c-e|0,f-k|0)<<1)|0)+255|0; -H[a+1|0]=c>>>8;b:{if(f>>>0>b<<1>>>0){c=j+255|0;b=P(b,(d<<1)+h|0)+P(d,i)|0;break b}c=j+255|0;b=((c+P(d,i)|0)+P(b,h)|0)+(P(d-e|0,f-b|0)<<1)|0}H[a|0]=b>>>8;H[a+3|0]=e+f-(c>>>8)}}function nq(a,b,c){var d=0,e=Q(0),f=0,g=0,h=0,i=0,j=0,k=0;h=bc-16|0;bc=h;i=zc(J[b+4>>2]<<3);a:{if(i){if(J[b+4>>2])while(1){g=1;e=N[(j<<2)+c>>2];b:{if(e>1]==5){d=J[a>>2];f=J[a+628>>2];k=J[Lf(a,L[b>>1])+16>>2];O[h+8>>3]=e;J[h>>2]=k;ae(f,d,76798,h);e=Q(0);d=1;break b}g=-1;e=Q(-e)}d=1;if(!(e>Q(0))|!(e>>0<33554432;d=f;if(k)continue}break}d=f}f=(j<<3)+i|0;J[f+4>>2]=d;g=g*(+e+.5);d:{if(g<4294967296&g>=0){d=~~g>>>0;break d}d=0}J[f>>2]=d;j=j+1|0;if(j>>>0>2])continue;break}d=Pf(a,b,i);qc(i);break a}Nc(J[a+628>>2],J[a>>2],75809,0)}bc=h+16|0;return d}function Zeb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a>>2];c=J[a+436>>2];J[d+24>>2]=c;J[d+20>>2]=124;J[J[a>>2]+28>>2]=b;gc[J[J[a>>2]+4>>2]](a,-1);d=b+6&7|208;f=b-1&7|208;g=b+2&7| -208;b=b+1&7|208;while(1){a:{b:{if((c|0)<192)break b;if((b|0)==(c|0)|c-216>>>0<4294967288|(c|0)==(g|0))break a;if((c|0)==(f|0)|(c|0)==(d|0))break b;b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=99;J[J[a>>2]+28>>2]=1;gc[J[J[a>>2]+4>>2]](a,4);J[a+436>>2]=0;return 1}e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=99;J[J[a>>2]+28>>2]=2;gc[J[J[a>>2]+4>>2]](a,4);if(BL(a)){c=J[a+436>>2];continue}else return 0}break}b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=99;J[J[a>>2]+28>>2]=3;gc[J[J[a>>2]+4>>2]](a,4);return 1}function uKa(a){a=a|0;var b= -0,c=0;J[a+32780>>2]=0;J[a+32784>>2]=0;J[a+34084>>2]=0;J[a+34092>>2]=1;J[a+34096>>2]=1;b=a+32788|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+4>>2];gc[J[J[b>>2]+20>>2]](b);b=J[a+8>>2];if(b){wc(J[b+32>>2],0,J[b+28>>2]);J[b+36>>2]=J[b+28>>2]}J[a+34092>>2]=1;J[a+34096>>2]=1;b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+34112>>2]=0;J[a+34116>>2]=0;J[a+34104>>2]=2;J[a+34108>>2]=0;if(!((b|0)==-1|(c|0)==-1)){if((b&15)!=8){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,821662,0);return}if((c+(b<<8)| -0)%31|0){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,821975,0);return}if(c&32){xc(1,gc[J[J[a>>2]+52>>2]](a)|0,822300,0);return}J[a+34096>>2]=0}}function Qsa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;c=J[a>>2];b=0;a:{if(!c)break a;gc[J[J[c>>2]+44>>2]](c,0,d+8|0,10)|0;c=J[d+8>>2];b=1;if((c|0)<0)break a;f=J[a>>2];b=J[f+8>>2];b:{if((c|0)>=(b|0)){c=b;break b}e=b;b=J[f+12>>2];h=e+b|0;b=b+c|0;c:{while(1){d:{c=b;if(!K[b|0])break d;J[d+12>>2]=b;g=gc[J[J[f>>2]+60>>2]](f,d+12|0)|0;b=J[d+12>>2];if((c|0)==(b| -0))break d;e:{if(g>>>0>255)break e;e=g<<24>>24;e=(e|0)<-1?g:e;if((e|0)==32|e-9>>>0<5)break e;switch(g-10|0){case 0:case 3:break e;default:break d}}if(b>>>0>>0)continue;break c}break}b=c}b=b-J[f+12>>2]|0;a=J[a>>2];c=0;if(!a)break b;c=J[a+8>>2]}b=(b|0)==(c|0)}bc=d+16|0;return b|0}function sr(a){var b=0,c=0,d=0,e=0;c=J[a+420>>2];a:{if(!c)break a;b=J[a+412>>2];if((b|0)<=0)break a;b=P(b,24)+c|0;d=K[a+372|0];while(1){if(!(!K[c+16|0]|(d|0)!=K[c+12|0])){b=J[a+432>>2];if((b|0)>=J[a+436>>2]){J[a+12>>2]= -130;return}J[a+432>>2]=b+1;b=J[a+440>>2]+(b<<4)|0;J[b>>2]=J[a+356>>2];d=J[a+364>>2];J[b+12>>2]=c;J[b+8>>2]=1;J[b+4>>2]=d+1;b=J[c>>2];b:{if(b-4>>>0<=4294967292){J[a+12>>2]=132;break b}d=(b-1<<3)+a|0;e=J[d+448>>2];if(!e){J[a+12>>2]=138;break b}d=J[d+452>>2];c=J[c+4>>2];if((d|0)<(c|0)){J[a+12>>2]=131;break b}J[a+368>>2]=d;J[a+360>>2]=e;J[a+364>>2]=c;J[a+356>>2]=b}H[a+380|0]=0;return}c=c+24|0;if(b>>>0>c>>>0)continue;break}}J[a+12>>2]=128}function pRa(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;c=J[a+28>>2];e=J[c+596>>2];if(!(J[e+28>>2]>0|J[e>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,b,820462,0);return}g=O[b+24>>3];a=J[b+24>>2];h=O[b+40>>3];i=J[b+40>>2];j=O[b+56>>3];k=J[b+56>>2];d=O[b+72>>3];l=J[b+72>>2];m=O[b+8>>3];n=J[b+8>>2];o=J[b>>2];p=J[b+16>>2];q=J[b+32>>2];r=J[b+48>>2];s=J[b+64>>2];f=J[b+80>>2]==1?+J[b+88>>2]:O[b+88>>3];O[c+608>>3]=f;d=(s|0)==1?+(l|0):d;O[c+ -600>>3]=d;_l(e,(o|0)==1?+(n|0):m,(p|0)==1?+(a|0):g,(q|0)==1?+(i|0):h,(r|0)==1?+(k|0):j,d,f)}function nW(a){var b=0,c=0,d=0,e=0;J[695492]=0;_(4737,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)a:{eA(a+60|0,J[a- -64>>2]);J[695492]=0;b=J[695492];J[695492]=0;if((b|0)==1)break a;e=J[a+44>>2];if(e){b=J[a+48>>2];c=e;if((b|0)!=(c|0)){while(1){d=b-12|0;if(H[b-1|0]<0)qc(J[d>>2]);b=d;if((e|0)!=(b|0))continue;break}c=J[a+44>>2]}J[a+48>>2]=e;qc(c)}b=J[a+40>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+40>>2]=0}Ss(a+28|0,J[a+ -32>>2]);Rt(a+12|0,J[a+16>>2]);d=J[a>>2];if(d){b=d;c=J[a+4>>2];if((b|0)!=(c|0)){while(1){if(H[c-1|0]<0)qc(J[c-12>>2]);if(H[c-13|0]<0)qc(J[c-24>>2]);c=c-40|0;if((d|0)!=(c|0))continue;break}b=J[a>>2]}J[a+4>>2]=d;qc(b)}return a}ea(0)|0;yc();B()}function b2(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;h=J[a+16>>2];if((h|0)!=J[a+24>>2]){h=(h+J[a+12>>2]|0)-1|0;H[h|0]=K[h|0]&253;h=J[a+20>>2];i=J[a+16>>2];j=i+3|0;a:{if((h|0)>=(j|0)){h=J[a+12>>2];break a}if(!h){J[a+20>>2]=32;h=32}if((h|0)<(j|0)){while(1){h=h<<1; -if((j|0)>(h|0))continue;break}J[a+20>>2]=h}k=a,l=Vd(J[a+8>>2],h<<4),J[k+8>>2]=l;h=Vd(J[a+12>>2],J[a+20>>2]);J[a+12>>2]=h;i=J[a+16>>2]}j=J[a+8>>2]+(i<<4)|0;O[j+8>>3]=c;O[j>>3]=b;H[h+i|0]=8;h=J[a+16>>2]+1|0;J[a+16>>2]=h;i=J[a+8>>2]+(h<<4)|0;O[i+8>>3]=e;O[i>>3]=d;H[h+J[a+12>>2]|0]=8;h=J[a+16>>2]+1|0;J[a+16>>2]=h;i=J[a+8>>2]+(h<<4)|0;O[i+8>>3]=g;O[i>>3]=f;H[h+J[a+12>>2]|0]=2;J[a+16>>2]=J[a+16>>2]+1}}function NN(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+56>>2];if(e){if(J[a+52>>2]){while(1){c=J[e>>2]; -if(c){f=0;h=J[e+32>>2];if(J[h+32>>2]){while(1){b=J[c+28>>2];if(b){g=0;if(J[c+24>>2]){while(1){d=J[b+4>>2];if(d)qc(d);d=J[b+20>>2];if(d)If(d);d=J[b+24>>2];if(d)YD(d);d=J[b+28>>2];if(d)dg(d);d=J[b+32>>2];if(d)dg(d);b=b+60|0;g=g+1|0;if(g>>>0>2])continue;break}b=J[c+28>>2]}qc(b)}b=J[c+32>>2];if(b)wn(b);b=J[c+36>>2];if(b)wn(b);b=J[c+44>>2];if(b)wn(b);b=J[c+48>>2];if(b)wn(b);c=c+52|0;f=f+1|0;if(f>>>0>2])continue;break}c=J[e>>2]}qc(c)}c=J[e+4>>2];if(c)dg(c);e=e+36|0;i=i+1|0;if(i>>>0>2])continue;break}e=J[a+56>>2]}qc(e)}}function LGa(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=bc-16|0;bc=f;a:{b:{if(a){if(!b)break b;if(!d)break a;e=J[a+120>>2];c:{if(!e){Hc(d,1,2351325,0);c=0;break c}if(J[e+12>>2]){Hc(d,1,2351452,0);c=0;break c}e=K[e+18|0];g=e<<2;if(g>>>0>c>>>0){Hc(d,1,2351491,0);c=0;break c}g=_e(g);c=0;if(!g)break c;if(e){d=0;while(1){c=f+12|0;ld(b,c,2);h=g+(d<<2)|0;I[h>>1]=J[f+12>>2];ld(b+2|0,c,1);H[h+2|0]=J[f+12>>2];ld(b+3|0,c,1);H[h+3|0]=J[f+12>>2];b=b+4|0;d= -d+1|0;if((e|0)!=(d|0))continue;break}}J[J[a+120>>2]+12>>2]=g;c=1}bc=f+16|0;return c|0}fa(2342603,2342899,1277,2359672);B()}fa(2351239,2342899,1278,2359672);B()}fa(2343543,2342899,1279,2359672);B()}function EKa(a){a=a|0;var b=0,c=0,d=0;b=rc(3528);c=J[a+4>>2];d=J[J[c>>2]+8>>2];J[695492]=0;c=$(d|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[b+192>>2]=J[a+192>>2];J[b>>2]=2331960;J[b+4>>2]=c;J[b+3468>>2]=0;J[b+188>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;wc(b+ -724|0,0,2736);J[b+3504>>2]=0;a=b+3496|0;J[a>>2]=0;J[a+4>>2]=0;a=b+3488|0;J[a>>2]=0;J[a+4>>2]=0;J[b+3480>>2]=0;J[b+3484>>2]=0;if(!K[2758452]){a=0;wc(2758464,0,384);while(1){H[a+2758848|0]=a;H[a+2758849|0]=a|1;H[a+2758850|0]=a|2;H[a+2758851|0]=a|3;a=a+4|0;if((a|0)!=256)continue;break}wc(2759104,255,383);H[2758452]=1}return b|0}a=Z()|0;qc(b);ba(a|0);B()}function knb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1179795789){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];e=J[c+36>> -2];J[b+36>>2]=e;H[b+44|0]=K[c+44|0];H[b+45|0]=K[c+45|0];H[b+46|0]=K[c+46|0];H[b+47|0]=K[c+47|0];J[b+48>>2]=J[c+48>>2];J[b+52>>2]=J[c+52>>2];H[b+56|0]=K[c+56|0];J[b+60>>2]=J[c+60>>2];J[b+64>>2]=J[c+64>>2];J[b+68>>2]=J[c+68>>2];J[b+72>>2]=J[c+72>>2];d=J[c+76>>2];J[b+76>>2]=d;if(e){d=gc[J[a+152>>2]](e)|0;J[b+40>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+40>>2],J[b+36>>2]);d=J[b+76>>2]}if(d){e=b;d=d<<2;b=gc[J[a+152>>2]](d)|0;J[e+80>>2]=b;if(b){tc(b,J[c+80>>2],d);return 0}Dc(a,1,0,0);a=1}else a=0;return a| -0}function f9(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=2755168;c=J[a+16>>2];e=J[a+12>>2];d=(e|0)>=19?19:e;a:{if((d|0)<=0)break a;f=d&3;b:{if(!f){a=d;break b}a=d;while(1){J[c>>2]=(J[b>>2]+(J[b+4>>2]<<1)<<4)+2632944;b=b+8|0;c=c+4|0;a=a-1|0;g=g+1|0;if((g|0)!=(f|0))continue;break}}if(d>>>0<4)break a;while(1){J[c>>2]=(J[b>>2]+(J[b+4>>2]<<1)<<4)+2632944;J[c+4>>2]=(J[b+8>>2]+(J[b+12>>2]<<1)<<4)+2632944;J[c+8>>2]=(J[b+16>>2]+(J[b+20>>2]<<1)<<4)+2632944;J[c+12>>2]=(J[b+24>>2]+(J[b+28>>2]<<1)<<4)+2632944;b=b+32|0; -c=c+16|0;d=a-5|0;a=a-4|0;if(d>>>0<4294967294)continue;break}}b=e-19|0;if((b|0)>0)while(1){J[c>>2]=2632944;c=c+4|0;a=b>>>0>1;b=b-1|0;if(a)continue;break}}function dGa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-32|0;bc=e;f=e+20|0;gc[J[J[a>>2]+12>>2]](f,a,b);J[695492]=0;$(44,f|0)|0;a=J[695492];J[695492]=0;a:{b:{c:{if((a|0)!=1){J[695492]=0;a=e+4|0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=413844;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[695492]=0;aa(17,a|0,f|0)|0;b=J[695492];J[695492]=0; -if((b|0)==1)break b;J[695492]=0;ga(42,a|0,c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[695492]=0;_(21,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break b;ve(a);if(H[e+31|0]<0)qc(J[e+20>>2]);bc=e+32|0;return}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;ve(a)}if(H[e+31|0]<0)qc(J[e+20>>2]);ba(b|0);B()}function d9(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=2755168;c=J[a+16>>2];e=J[a+20>>2];d=(e|0)>=19?19:e;a:{if((d|0)<=0)break a;f=d&3;b:{if(!f){a=d;break b}a=d;while(1){J[c>>2]=(J[b>>2]+(J[b+4>>2]<<1)<<4)+2632944; -b=b+8|0;c=c+4|0;a=a-1|0;g=g+1|0;if((g|0)!=(f|0))continue;break}}if(d>>>0<4)break a;while(1){J[c>>2]=(J[b>>2]+(J[b+4>>2]<<1)<<4)+2632944;J[c+4>>2]=(J[b+8>>2]+(J[b+12>>2]<<1)<<4)+2632944;J[c+8>>2]=(J[b+16>>2]+(J[b+20>>2]<<1)<<4)+2632944;J[c+12>>2]=(J[b+24>>2]+(J[b+28>>2]<<1)<<4)+2632944;b=b+32|0;c=c+16|0;d=a-5|0;a=a-4|0;if(d>>>0<4294967294)continue;break}}b=e-19|0;if((b|0)>0)while(1){J[c>>2]=2632944;c=c+4|0;a=b>>>0>1;b=b-1|0;if(a)continue;break}}function V6(a,b,c){var d=0,e=0,f=0,g=0;g=J[(c?16:12)+ -b>>2];b=J[(c?8:4)+b>>2];e=P(c,7676)+a|0;f=e+7712|0;a=e+7716|0;a:{if((b|0)==J[f>>2]&J[a>>2]==(g|0))break a;J[f>>2]=b;J[a>>2]=g;J[e+44>>2]=b;J[e+48>>2]=g;if(!J[e+260>>2])break a;f=0;while(1){a=P(f,28)+e|0;c=Pc(J[a+264>>2],b)+g|0;J[a+272>>2]=c;J[a+268>>2]=c;c=Pc(J[a+276>>2],b)+g|0;J[a+284>>2]=c;J[a+280>>2]=c;J[a+288>>2]=J[a+288>>2]&-2;if(Pc(J[a+264>>2]-J[a+276>>2]|0,b)+48>>>0<=96){c=J[a+268>>2]+32&-64;J[a+272>>2]=c;c=td(c,b)-J[a+276>>2]|0;d=c>>31;d=Pc((c^d)-d|0,b);d=(d|0)>=32?d+32&-64:0;J[a+284>>2]= -((c|0)<0?d:0-d|0)+J[a+272>>2];J[a+288>>2]=J[a+288>>2]|1}f=f+1|0;if(f>>>0>2])continue;break}}}function Jtb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[J[a+536>>2]+88>>2];d=(J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0)+P(J[d+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){b=K[d|0]|K[d+1|0]<<8;c=(b<<8|b>>>8)&65535;b=K[e|0]|K[e+1|0]<<8;b=c+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[d|0]=b;H[d+ -1|0]=b>>>8;b=d+2|0;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[e+2|0]|K[e+3|0]<<8;c=g+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;e=e+4|0;d=d+4|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}tc(d,e,J[a+588>>2]<<2);return 0}function Dta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[a>>2]=0;a:{b:{c:{d:{if(c){f=J[b+12>>2];J[695492]=0;e=d+12|0;ia(5468,e|0,b|0,f|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;aa(4993,a|0,e|0)|0;b=J[695492];J[695492]= -0;if((b|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;if(!a)break a;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break b;if(b)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;break a}c=Z()|0;vc(d+12|0);break c}J[695492]=0;aa(4985,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a;c=Z()|0;break c}c=Z()|0}vc(a);ba(c|0);B()}ea(0)|0;yc();B()}bc=d+16|0}function sj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;if(!K[b+32|0])_o(b,c);J[a>>2]=0;J[a+4>> -2]=J[682146];a:{b=J[b+8>>2];b:{c:{if(b){c=J[J[b>>2]+28>>2];J[695492]=0;ca(c|0,d+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[d+12>>2]=0}J[695492]=0;aa(4993,a|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}b=Z()|0;vc(d+12|0)}sc(a);ba(b|0);B()}b=a;a=J[a>>2]; -J[b+4>>2]=J[(a?a+12|0:2728584)>>2];bc=d+16|0}function pHa(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=bc-16|0;bc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;g=J[J[a+72>>2]+16>>2];c:{if((g+2|0)!=(c|0)){Hc(d,1,2357100,0);break c}ld(b,e+12|0,2);if(J[e+12>>2]!=(g|0)){Hc(d,1,2357100,0);break c}if(!g){f=1;break c}b=b+2|0;a=J[J[a+72>>2]+24>>2];c=0;while(1){ld(b,e+8|0,1);f=J[e+8>>2];h=f&127;i=h+1|0;J[a+24>>2]=i;J[a+32>>2]=f>>>7&1;if(h>>>0>=31){J[e+4>>2]=i;J[e>>2]=c;Hc(d,1,2356163,e);f=0;break c}a= -a+52|0;f=1;b=b+1|0;c=c+1|0;if((g|0)!=(c|0))continue;break}}bc=e+16|0;return f|0}fa(2353829,2346358,6527,2357083);B()}fa(2346477,2346358,6528,2357083);B()}fa(2346590,2346358,6529,2357083);B()}function p5a(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;e=bc-16|0;bc=e;d=J[a+112>>2];J[e+12>>2]=d;f=J[a+108>>2];J[e+8>>2]=f;g=P(d,f)<<2;a:{if((g|0)<=0)break a;J[b+8>>2]=J[e+8>>2];J[b+4>>2]=J[e+12>>2];J[e+4>>2]=J[e+12>>2]<<2;J[b+12>>2]=J[e+4>>2];d=rc(g);J[b+16>>2]=d;b=J[a+108>>2];if(!b)break a;f= -J[a+112>>2];if(!f)break a;i=c?0:2;j=c?2:0;while(1){b:{if(!f){f=0;break b}b=J[a+144>>2]+P(P(J[a+288>>2],h),f)|0;c=0;while(1){H[d+j|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+i|0]=K[b+2|0];H[d+3|0]=K[b+3|0];d=d+4|0;b=b+4|0;c=c+1|0;f=J[a+112>>2];if(c>>>0>>0)continue;break}b=J[a+108>>2]}h=h+1|0;if(h>>>0>>0)continue;break}}bc=e+16|0;return(g|0)>0|0}function Uw(a,b,c,d){a=a|0;b=+b;c=+c;d=d|0;var e=0,f=0;e=bc-48|0;bc=e;a=J[a>>2];a:{if(!d){J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+8>>2]=0;J[e+12>> -2]=0;J[e+32>>2]=0;J[e+36>>2]=0;O[e+24>>3]=c;O[e>>3]=b;d=ej(e,a);f=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=f;f=J[d+44>>2];J[a+40>>2]=J[d+40>>2];J[a+44>>2]=f;f=J[d+36>>2];J[a+32>>2]=J[d+32>>2];J[a+36>>2]=f;f=J[d+28>>2];J[a+24>>2]=J[d+24>>2];J[a+28>>2]=f;f=J[d+20>>2];J[a+16>>2]=J[d+16>>2];J[a+20>>2]=f;f=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=f;break a}J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;O[e>>3]=b;J[e+32>>2]=0;J[e+36>>2]=0;O[e+24>>3]=c;ej(a,e)}bc=e+48|0}function U4a(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((e|0)<=0)break a;i=J[a+112>>2];if(!i)break a;g=J[a+332>>2];a=J[a+476>>2];k=J[a+20>>2];l=J[a+16>>2];m=J[a+12>>2];n=J[a+8>>2];while(1){o=c+1|0;p=e-1|0;a=c<<2;q=J[a+J[b+12>>2]>>2];r=J[a+J[b+8>>2]>>2];s=J[a+J[b+4>>2]>>2];t=J[a+J[b>>2]>>2];c=J[d>>2];a=0;while(1){f=K[a+s|0];h=K[a+t|0]^255;j=K[a+r|0]<<2;H[c|0]=K[(h-J[j+n>>2]|0)+g|0];f=f<<2;H[c+1|0]=K[(h-(J[l+j>>2]+J[f+k>>2]>>16)|0)+g|0];H[c+2|0]= -K[(h-J[f+m>>2]|0)+g|0];H[c+3|0]=K[a+q|0];c=c+4|0;a=a+1|0;if((i|0)!=(a|0))continue;break}d=d+4|0;a=(e|0)>1;e=p;c=o;if(a)continue;break}}}function J7(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;g=c-b|0;e=g>>2;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>2>>>0){f=J[a+4>>2]-d|0;h=f>>2;if(e>>>0>h>>>0){Zc(d,b,f);d=J[a+4>>2];b=(h<<2)+b|0;if((c|0)!=(b|0))while(1){J[d>>2]=J[b>>2];d=d+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=Zc(d,b,g)+(e<<2)|0,J[i+4>>2]=j;return}if(d){J[a+4>> -2]=d;qc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=1073741824)break a;d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d>>>0>=1073741824)break a;e=d<<2;d=rc(e);J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-4&-4)+4|0;d=tc(d,c,b)+b|0}J[a+4>>2]=d;return}kj(a);B()}function BR(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=bc-16|0;bc=d;if(!K[2778944]){j=2778945,k=vb()|0,H[j|0]=k;H[2778944]=1}g=+Ya();c=g/1E3;a:{if(R(c)<0x7fffffffffffffff){e=~~c>>>0;if(R(c)>=1)b=~~(c>0?T(V(c*2.3283064365386963E-10), -4294967295):W((c-+(~~c>>>0>>>0))*2.3283064365386963E-10))>>>0;else b=0;break a}b=-2147483648}J[d>>2]=e;J[d+4>>2]=b;c=(g-(+(Dzb(e,b,1E3,0)>>>0)+ +(fc|0)*4294967296))*1E3*1E3;b:{if(R(c)<2147483648){b=~~c;break b}b=-2147483648}J[d+8>>2]=b;h=J[d+8>>2];i=J[d>>2];e=J[694764];b=J[694753];J[694753]=b+1;b=b+((h+i|0)+P(e,65537)|0)|0;while(1){H[a+f|0]=(b&15|b<<1&32)+65;b=b>>>5|0;f=f+1|0;if((f|0)!=6)continue;break}bc=d+16|0}function a5a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0, -m=0;a:{if((e|0)<=0)break a;a=J[a+112>>2];if(!a)break a;l=a&-4;k=a&3;m=a-1>>>0<3;while(1){i=J[J[b>>2]+(c<<2)>>2];a=J[d>>2];j=0;g=0;h=0;if(!m)while(1){f=K[g+i|0];H[a+1|0]=f;H[a+2|0]=f;H[a|0]=f;f=K[(g|1)+i|0];H[a+4|0]=f;H[a+5|0]=f;H[a+3|0]=f;f=K[(g|2)+i|0];H[a+7|0]=f;H[a+8|0]=f;H[a+6|0]=f;f=K[(g|3)+i|0];H[a+10|0]=f;H[a+11|0]=f;H[a+9|0]=f;g=g+4|0;a=a+12|0;h=h+4|0;if((l|0)!=(h|0))continue;break}if(k)while(1){h=K[g+i|0];H[a+1|0]=h;H[a+2|0]=h;H[a|0]=h;g=g+1|0;a=a+3|0;j=j+1|0;if((j|0)!=(k|0))continue;break}d= -d+4|0;c=c+1|0;a=(e|0)>1;e=e-1|0;if(a)continue;break}}}function $w(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;g=c-b|0;e=g>>2;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>2>>>0){f=J[a+4>>2]-d|0;h=f>>2;if(e>>>0>h>>>0){Zc(d,b,f);d=J[a+4>>2];b=(h<<2)+b|0;if((c|0)!=(b|0))while(1){N[d>>2]=N[b>>2];d=d+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=Zc(d,b,g)+(e<<2)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;qc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=1073741824)break a; -d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d>>>0>=1073741824)break a;e=d<<2;d=rc(e);J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-4&-4)+4|0;d=tc(d,c,b)+b|0}J[a+4>>2]=d;return}_j(a);B()}function wD(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(!a)return;c=a?J[a+40>>2]:0;b=a?J[a+12>>2]:-1;d=a?J[a+4>>2]:-1;if(!((d|0)<=0|(b|0)<=0)){g=b&-4;e=b&3;h=b>>>0<4;while(1){a=0;if(!h)while(1){b=J[c>>2];J[c>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[c+4>>2];J[c+4>>2]=b<<24|(b&65280)<<8|(b>>>8&65280| -b>>>24);b=J[c+8>>2];J[c+8>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[c+12>>2];J[c+12>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);c=c+16|0;a=a+4|0;if((g|0)!=(a|0))continue;break}a=0;if(e)while(1){b=J[c>>2];J[c>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);c=c+4|0;a=a+1|0;if((e|0)!=(a|0))continue;break}f=f+1|0;if((f|0)!=(d|0))continue;break}}}function uIa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=bc-16|0;bc=f;if(J[J[a+16>>2]+40>>2]){J[f+12>>2]=1;gc[J[J[b>>2]+416>>2]](b,826972,f+12|0)|0; -g=bc-224|0;bc=g;a:{b:{a=J[J[a+16>>2]+40>>2];if(!(!b|!J[a>>2])){b=U_(g,b,J[a+16>>2],J[a+20>>2]);e=J[J[a>>2]+24>>2];J[695492]=0;J[b+164>>2]=e;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[b+172>>2]=d;d=J[J[a>>2]+28>>2];J[695492]=0;c=c+1|0;d=aa(3280,d|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;a=J[a>>2];d=J[J[d+12>>2]+168>>2];J[695492]=0;cb(3519,a|0,b|0,c|0,72,72,0-d|0,0,1,0,0,0);a=J[695492];J[695492]=0;if((a|0)==1)break b;eJ(b)}bc=g+224|0;break a}a=Z()|0;eJ(b);ba(a|0);B()}}bc=f+16|0}function jYa(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;b=gc[J[659447]](64)|0;a:{if(!b){J[d>>2]=17038;Cc(0,0,0,0,0,23,2,3,17038,0,0,0,32863,d);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=16;J[b+40>>2]=J[a+40>>2];J[b+44>>2]=J[a+44>>2];e=b,f=I$(J[a+52>>2]),J[e+52>>2]=f;c=J[a+60>>2];if(c)e=b,f=$e(c),J[e+60>>2]=f;c=J[a+8>>2];if(c)e=b,f=$e(c), -J[e+8>>2]=f;c=J[a+56>>2];if(c)e=b,f=$e(c),J[e+56>>2]=f;a=J[a+48>>2];if(!a)break a;e=b,f=$e(a),J[e+48>>2]=f}bc=d+16|0;return b|0}function f3(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}g3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b; -j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function p3(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j= -g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}q3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function n3(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]- -i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}o3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+ -1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function l3(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}m3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h= -f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function jC(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{if(!(b>0))break b;e=J[a>>2];if(e>>>0<2)break b;h=e-2|0;if(!h){e=2;break a}f=J[a+12>>2];d=e;while(1){g=O[(J[f+(h>>>4&268435452)>>2]+P(h&63,24)|0)+16>>3];if(!(g>b)){if(d){e=d-1|0;J[a>>2]=e;d=e}else d=0;b=b-g;h=h-1|0;if(h)continue}break}if(e>>>0> -1)break a;J[a>>2]=0}return}d=J[a+12>>2];f=e-2|0;f=J[d+(f>>>4&268435452)>>2]+P(f&63,24)|0;j=O[f>>3];e=e-1|0;d=J[d+(e>>>4&268435452)>>2]+P(e&63,24)|0;i=O[f+8>>3];g=O[f+16>>3];b=(g-b)/g;g=(O[d+8>>3]-i)*b+i;O[d+8>>3]=g;b=j+(O[d>>3]-j)*b;O[d>>3]=b;b=b-O[f>>3];i=b*b;b=g-O[f+8>>3];b=Y(i+b*b);d=b>1E-14;O[f+16>>3]=d?b:1E14;if(!d)J[a>>2]=e;Nw(a,(c|0)!=0)}function j3(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>> -31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}k3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function h3(a, -b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}i3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j= -J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function d3(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}e3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b; -j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function b3(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j= -g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}c3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function Z2(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]- -i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}_2(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+ -1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function U2(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e=rc(g<<2);J[c>>2]=e}V2(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h= -f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function $2(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[a+20>>2];l=J[a+28>>2]-i>>3;k=J[a+4>>2];while(1){h=J[i+12>>2];f=I[i+8>>1];e=I[i+10>>1];a=e>>31;a=(a^e)-a|0;g=J[c+4>>2];a:{if(a>>>0<=g>>>0){e=J[c>>2];break a}e=J[c>>2];j=g;g=a+255&130816;if((j|0)==(g|0))break a;if(e)qc(e);J[c+4>>2]=g;e= -rc(g<<2);J[c>>2]=e}a3(d,e,f,k,a);b:{if(J[b+16>>2]<(k|0)|J[b+8>>2]>(k|0))break b;j=I[i+10>>1]<0;g=j?0:h;m=K[h|0];h=J[b+4>>2];c:{if((f|0)>=(h|0)){h=f;break c}f=h-f|0;a=a-f|0;if((a|0)<=0)break b;g=j?0:f+g|0;e=(f<<2)+e|0}j=J[b>>2];f=J[b+12>>2];if((f|0)<(a+h|0)){a=f-h|0;if((a|0)<0)break b;a=a+1|0}Rg(j,h,k,a,e,g,m)}i=i+8|0;l=l-1|0;if(l)continue;break}}function qC(a,b,c){a=a|0;b=+b;c=c|0;var d=0,e=0,f=0,g=0;d=bc-48|0;bc=d;b=b*3.141592653589793/180;f=xe(b);g=-f;a=J[a>>2];b=He(b);a:{if(!c){J[d+40>>2]=0;J[d+ -44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;O[d+24>>3]=b;O[d+16>>3]=g;O[d+8>>3]=f;O[d>>3]=b;c=ej(d,a);e=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=e;e=J[c+44>>2];J[a+40>>2]=J[c+40>>2];J[a+44>>2]=e;e=J[c+36>>2];J[a+32>>2]=J[c+32>>2];J[a+36>>2]=e;e=J[c+28>>2];J[a+24>>2]=J[c+24>>2];J[a+28>>2]=e;e=J[c+20>>2];J[a+16>>2]=J[c+16>>2];J[a+20>>2]=e;e=J[c+12>>2];J[a+8>>2]=J[c+8>>2];J[a+12>>2]=e;break a}J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;O[d+24>>3]=b;O[d+16>>3]=g;O[d+8>>3]=f;O[d>>3]=b;ej(a,d)}bc=d+48|0}function pyb(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0;b=-1;a:{b:{if(Lg(c,a+12|0))break b;if(Di(c,a+16|0))break b;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break c}d=jd(c,1);if((d|0)==-1)break b}H[a+20|0]=d;b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;d:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+ -24>>2]=b+1;d=K[b|0];break d}d=jd(c,1);if((d|0)==-1)break b}H[a+21|0]=d;b=0-(J[c+8>>2]&1)|0}return b|0}J[c+8>>2]=d|4;return-1}function aZa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-32|0;bc=e;a:{if(!a)break a;f=J[a+8>>2];if(!f)break a;if(!(c|d)){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=105;J[e+4>>2]=0;J[e>>2]=b;Cc(0,0,0,a,0,1,105,3,b,0,0,0,33740,e);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}b:switch(J[a+216>>2]-1|0){case 0:F$(a+108|0,J[f+44>>2],b,c,d); -break a;case 1:F$(a+108|0,J[f+48>>2],b,c,d);break a;default:break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=105;J[e+20>>2]=0;J[e+16>>2]=b;Cc(0,0,0,a,0,1,105,3,b,0,0,0,31352,e+16|0);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}bc=e+32|0}function WNa(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;a=wc(a,0,256);d=J[b>>2]+c|0;e=K[d+3|0];f=K[d|0];g=e+f|0;h=K[d+2|0];i=K[d+1|0];j=h+i|0;d=g-j<<5;J[a+8>>2]=d;g=g+j<<5;J[a>>2]=g-16384;h=i-h|0;f=f-e|0;e=P(h+f| -0,4433)+128|0;h=e+P(h,-15137)>>8;J[a+12>>2]=h;e=e+P(f,6270)>>8;J[a+4>>2]=e;b=J[b+4>>2]+c|0;c=K[b+3|0];f=K[b|0];i=c+f|0;j=K[b+2|0];b=K[b+1|0];k=j+b|0;l=i-k<<5;J[a+40>>2]=d-l>>2;J[a+8>>2]=d+l>>2;d=g-16382|0;g=(i+k<<5)-16384|0;J[a+32>>2]=d-g>>2;J[a>>2]=d+g>>2;d=b-j|0;c=f-c|0;b=P(d+c|0,4433)+128|0;e=e+2|0;c=b+P(c,6270)>>8;J[a+36>>2]=e-c>>2;J[a+4>>2]=c+e>>2;c=h+2|0;b=b+P(d,-15137)>>8;J[a+44>>2]=c-b>>2;J[a+12>>2]=b+c>>2}function Itb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=J[J[a+536>>2]+88>>2];c=(J[c+1176>>2]+ -P(J[c+1168>>2],J[a+572>>2])|0)+P(J[c+1164>>2],J[a+580>>2])|0;d=J[a+644>>2];a:{b:switch(K[a+2253|0]-3|0){case 0:if(J[a+588>>2]<=0)break a;while(1){b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[d|0]|K[d+1|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d+2|0;c=c+4|0;e=e+1|0;if((e|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d+2|0;c=c+ -4|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function rt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=rc(16);J[695492]=0;e=$(3185,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)a:{b=J[a>>2];if((b|0)>0){c=0;while(1){b:{if((c|0)>=(b|0))break b;while(1){b=J[a>>2];d=H[J[a+4>>2]+c|0];if(d>>>0<=255)d=K[d+2306848|0]==1;else d=0;if(!d)break b;c=c+1|0;if((b|0)>(c|0))continue;break}}d=c;if((c|0)<(b|0)){while(1){d=d+1|0;if((d|0)>2]){b=H[J[a+4>>2]+d|0];if(b>>>0<=255)b=K[b+2306848|0]==1;else b=0;if(!b)continue}break}b= -rc(8);J[695492]=0;c=ha(3288,b|0,a|0,c|0,d-c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;id(e,c);b=J[a>>2];c=d}if((c|0)<(b|0))continue;break}}return e|0}a=Z()|0;qc(b);ba(a|0);B()}function hna(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=J[a+12>>2];a:{if(!b)break a;if(!c){J[a+40>>2]=0;b=J[a+36>>2];if(!b)break a;qc(b);J[a+36>>2]=0;break a}if(J[a+40>>2]!=(c|0)){J[a+40>>2]=c;e=J[a+36>>2];if(e){qc(e);J[a+36>>2]=0;c=J[a+40>>2]}j=a,k=rc(c>>>0>536870911?-1:c<<3),J[j+36>>2]=k}if((c|0)<= -0)break a;e=J[a+36>>2];a=0;if(c>>>0>=4){i=c&-4;while(1){d=a<<3;O[d+e>>3]=O[b+d>>3];f=d|8;O[f+e>>3]=O[b+f>>3];f=d|16;O[f+e>>3]=O[b+f>>3];d=d|24;O[d+e>>3]=O[b+d>>3];a=a+4|0;g=g+4|0;if((g|0)!=(i|0))continue;break}}c=c&3;if(!c)break a;while(1){d=a<<3;O[d+e>>3]=O[b+d>>3];a=a+1|0;h=h+1|0;if((c|0)!=(h|0))continue;break}}return 0}function hPa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=rc(144);d=O[a+48>>3];e=O[a+56>>3];c=J[a+12>>2];f=J[a+8>>2];J[b+4>>2]=1;J[b+128>>2]=13;J[b+64>>2]=13;J[b>>2]=2206308;J[b+8>>2]=f;J[b+ -12>>2]=c;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+56>>3]=e;O[b+48>>3]=d;J[695492]=0;aa(3282,a- -64|0,b- -64|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;O[b+80>>3]=O[a+80>>3];O[b+88>>3]=O[a+88>>3];O[b+96>>3]=O[a+96>>3];O[b+104>>3]=O[a+104>>3];O[b+112>>3]=O[a+112>>3];O[b+120>>3]=O[a+120>>3];J[695492]=0;aa(3282,a+128|0,b+128|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function UXa(a,b,c,d,e){a=a|0;b= -b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if((e|0)<=0)break a;h=J[a+76>>2];if((h|0)<=0)break a;a=J[a+28>>2];if(!a)break a;l=a&-4;k=a&3;m=a-1>>>0<3;while(1){n=e-1|0;g=0;while(1){j=J[J[(g<<2)+c>>2]+(d<<2)>>2];f=J[b>>2];a=0;i=0;if(!m)while(1){H[a+j|0]=K[f+g|0];f=f+h|0;H[(a|1)+j|0]=K[f+g|0];f=f+h|0;H[(a|2)+j|0]=K[f+g|0];f=f+h|0;H[(a|3)+j|0]=K[f+g|0];a=a+4|0;f=f+h|0;i=i+4|0;if((l|0)!=(i|0))continue;break}i=0;if(k)while(1){H[a+j|0]=K[f+g|0];a=a+1|0;f=f+h|0;i=i+1|0;if((k|0)!=(i|0))continue; -break}g=g+1|0;if((h|0)!=(g|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=n;if(a)continue;break}}}function wT(a){var b=0,c=0;b=(J[a+8>>2]<<2)+a|0;J[b+16>>2]=J[b+16>>2]>>1;b=J[a+8>>2];if(!b){J[a+56>>2]=J[a+56>>2]>>1;J[a+60>>2]=J[a+60>>2]>>1;c=a- -64|0;J[c>>2]=J[c>>2]>>1;J[a+68>>2]=J[a+68>>2]>>1;J[a+72>>2]=J[a+72>>2]>>1;J[a+76>>2]=J[a+76>>2]>>1;J[a+80>>2]=J[a+80>>2]>>1;J[a+84>>2]=J[a+84>>2]>>1;J[a+88>>2]=J[a+88>>2]>>1;J[a+92>>2]=J[a+92>>2]>>1;J[a+96>>2]=J[a+96>>2]>>1;J[a+100>>2]=J[a+100>>2]>>1;J[a+104>> -2]=J[a+104>>2]>>1;J[a+108>>2]=J[a+108>>2]>>1;J[a+112>>2]=J[a+112>>2]>>1;J[a+116>>2]=J[a+116>>2]>>1;J[a+8>>2]=b+1;return 1}J[a+8>>2]=b+1;if((b|0)>=9){J[a+8>>2]=0;b=a;c=J[a+12>>2]+1|0;a=J[a+52>>2];J[b+12>>2]=a?c:-1;a=(a|0)!=0}else a=1;return a}function ikb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+712>>2];a:{b:{if(!e)break b;f=J[e+1504>>2];a=6;if((f|0)==65535)break a;if(b){a=J[e+3096>>2];if(!a){c:{if(f>>>0>=391){f=f-391|0;g=0;if(f>>>0>=M[e+1356>>2])break c;g=J[J[e+1360>>2]+(f<<2)>>2];break c}a= -J[e+3084>>2];g=0;if(!a)break c;g=gc[J[a+20>>2]](f)|0}a=g;J[e+3096>>2]=a}J[b>>2]=a}if(c){a=J[e+3100>>2];if(!a){a=0;b=J[e+1508>>2];d:{if((b|0)==65535)break d;if(b>>>0>=391){b=b-391|0;if(b>>>0>=M[e+1356>>2])break d;a=J[J[e+1360>>2]+(b<<2)>>2];break d}f=J[e+3084>>2];if(!f)break d;a=gc[J[f+20>>2]](b)|0}J[e+3100>>2]=a}J[c>>2]=a}if(!d)break b;J[d>>2]=J[e+1512>>2]}a=0}return a|0}function Ov(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=bc-256|0;bc=g;a:{if(J[a+320>>2]>0){while(1){e=J[((d<<2)+a|0)+188>> -2];gc[J[J[e>>2]+16>>2]](e,b,(d<<3)+g|0);d=d+1|0;if((d|0)>2])continue;break}d=0;b=J[a+8>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)<=0)break a;while(1){e=(d<<2)+c|0;f=O[(d<<3)+g>>3]*65536;b:{if(R(f)<2147483648){b=~~f;break b}b=-2147483648}J[e>>2]=b;b=J[a+8>>2];d=d+1|0;if((gc[J[J[b>>2]+28>>2]](b)|0)>(d|0))continue;break}break a}if(J[a+316>>2]<=0)break a;while(1){h=(d<<2)+c|0;f=O[(d<<3)+b>>3]*65536;c:{if(R(f)<2147483648){e=~~f;break c}e=-2147483648}J[h>>2]=e;d=d+1|0;if((d|0)>2])continue;break}}bc= -g+256|0}function Odb(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;f=J[a+736>>2];a:{if(!f){d=$t(a,0);if(d)break a;f=J[a+736>>2]}if(!J[f+4>>2]){d=HC(a,0,0,1);if(d)break a}e=J[f>>2];e=b>>>0>e>>>0?e:b;b:{if(K[a+733|0]){if(!e){e=0;break b}f=J[f+8>>2];a=0;if(e>>>0>=4){h=e&-4;while(1){d=a<<2;J[d+c>>2]=J[d+f>>2];g=d|4;J[g+c>>2]=J[f+g>>2];g=d|8;J[g+c>>2]=J[f+g>>2];d=d|12;J[d+c>>2]=J[d+f>>2];a=a+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}d=e&3;if(!d)break b;while(1){h=a<<2;J[h+c>>2]=J[f+h>>2]; -a=a+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}break b}if(!e){e=0;break b}wc(c,0,e<<2)}d=0;if(b>>>0<=e>>>0)break a;wc((e<<2)+c|0,0,b-e<<2)}return d|0}function Mdb(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;f=J[a+736>>2];a:{if(!f){d=$t(a,0);if(d)break a;f=J[a+736>>2]}if(!J[f+4>>2]){d=HC(a,0,0,1);if(d)break a}e=J[f>>2];e=b>>>0>e>>>0?e:b;b:{if(K[a+733|0]){if(!e){e=0;break b}f=J[f+4>>2];a=0;if(e>>>0>=4){h=e&-4;while(1){d=a<<2;J[d+c>>2]=J[d+f>>2];g=d|4;J[g+c>>2]=J[f+g>>2];g=d|8;J[g+c>>2]= -J[f+g>>2];d=d|12;J[d+c>>2]=J[d+f>>2];a=a+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}d=e&3;if(!d)break b;while(1){h=a<<2;J[h+c>>2]=J[f+h>>2];a=a+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}break b}if(!e){e=0;break b}wc(c,0,e<<2)}d=0;if(b>>>0<=e>>>0)break a;wc((e<<2)+c|0,0,b-e<<2)}return d|0}function AHa(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=bc-16|0;bc=e;a:{b:{c:{d:{if(b){if(!a)break d;if(!d)break c;h=e+8|0;e:{if(M[J[a+72>>2]+16>>2]<=256){if(c){f=-1;g=1;break e}Hc(d,1,2355257,0);a= -0;break a}if(c>>>0<=1)break b;f=-2;g=2}ld(b,h,g);J[e+12>>2]=c+f;c=J[e+8>>2];f=J[J[a+72>>2]+16>>2];if(c>>>0>=f>>>0){J[e+4>>2]=f;J[e>>2]=c;Hc(d,1,2355283,e);a=0;break a}if(!XW(a,c,b+g|0,e+12|0,d)){Hc(d,1,2355257,0);a=0;break a}a=1;if(!J[e+12>>2])break a;Hc(d,1,2355257,0);a=0;break a}fa(2353829,2346358,3183,2355240);B()}fa(2346477,2346358,3184,2355240);B()}fa(2346590,2346358,3185,2355240);B()}Hc(d,1,2355257,0);a=0}bc=e+16|0;return a|0}function rz(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a+12>>2]=1;J[a+ -4>>2]=b;J[a>>2]=2420136;J[a+16>>2]=0;b=J[605041];J[a+56>>2]=J[605040];J[a+60>>2]=b;c=J[605043];b=a- -64|0;J[b>>2]=J[605042];J[b+4>>2]=c;J[a+112>>2]=131072;J[a+116>>2]=131072;J[a+104>>2]=131072;J[a+108>>2]=131072;J[a+96>>2]=65536;J[a+100>>2]=65536;J[a+88>>2]=65536;J[a+92>>2]=65536;J[a+80>>2]=65536;J[a+84>>2]=65536;J[a+72>>2]=65536;J[a+76>>2]=65536;J[a+52>>2]=J[605055];b=J[605054];J[a+44>>2]=J[605053];J[a+48>>2]=b;b=J[605052];J[a+36>>2]=J[605051];J[a+40>>2]=b;b=J[605050];J[a+28>>2]=J[605049];J[a+32>> -2]=b;b=J[605048];J[a+20>>2]=J[605047];J[a+24>>2]=b;wc(a+392|0,0,114);return a|0}function IF(a,b,c,d,e){var f=0,g=0,h=0;h=JF(a,b,c,d);f=J[e>>2];if(!f)return h;g=J[d>>2];if(!(!g|O[f+32>>3]>3]))return h;J[d>>2]=f;J[e>>2]=g;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=h+1|0;f=J[d>>2];a:{if(!f)break a;g=J[c>>2];if(O[f+32>>3]>3]?0:g)break a;J[c>>2]=f;J[d>>2]=g;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;e=h+2|0;d=J[c>>2];if(!d)break a;f=J[b>>2];if(O[d+32>>3]>3]?0:f)break a;J[b>> -2]=d;J[c>>2]=f;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;e=h+3|0;c=J[b>>2];if(!c)break a;d=J[a>>2];if(O[c+32>>3]>3]?0:d)break a;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;e=h+4|0}return e}function D4(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+28>>2];a:{if((b|0)==-1)break a;d=J[a+36>>2];f=J[a+40>>2];if(d>>>0>=f>>>0)break a;g=J[a>>2];e=b+1|0;h=J[a+16>>2]+16|0;while(1){b:{b=P(d,12)+h|0;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>> -24);e=c>>>0>>0?e:c;c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(e>>>0>(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0)break b;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b|b>>>0>=M[g+16>>2])break b;J[a+36>>2]=d;J[a+32>>2]=b;J[a+28>>2]=e;return}d=d+1|0;if((f|0)!=(d|0))continue;break}}H[a+24|0]=0}function $$(a){var b=0,c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;b=gc[J[659447]](60)|0;a:{if(!b){J[e>>2]=1832;Cc(0,0,0,0,0,2,2,3,1832,0,0,0,32863,e);break a}J[b>> -2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=3;J[b+8>>2]=773004;if(a){d=a;while(1){c=d;d=c+1|0;if(K[c|0])continue;break}d=0;c=c-a|0;b:{if((c|0)<0)break b;f=gc[J[659450]](c+1|0)|0;if(!f){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}d=tc(f,a,c);H[c+d|0]=0}J[b+40>>2]=d}if(!J[689540])break a;a=J[689537];if(!a)break a;gc[a|0](b)}bc=e+16|0;return b}function erb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-1|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];h=g+2|0;a=j?(j|0)==(l|0)?d:b:c;a:{if(a>>>0<2){g=h;break a}i=a-1|0;k=i&3;b:{if(a-2>>>0<3){a=g;break b}m=i&-4;i=0;a=g;while(1){H[h|0]=K[f|0];H[a+3|0]=K[f+1|0];H[h+2|0]=K[f|0];H[h+3|0]=K[f+1|0];H[h+4|0]=K[f|0];H[h+5|0]=K[f+1|0];H[h+6|0]=K[f|0];H[h+7|0]=K[f+1|0];a=h+6|0;h=h+8|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;g=h;if(!k)break a;while(1){h=g;H[h|0]=K[f|0]; -H[a+3|0]=K[f+1|0];g=h+2|0;a=h;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=f+2|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function HNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2307392;e=a,f=TH(b),J[e+4>>2]=f;a:{b:{c:switch(J[c>>2]-3|0){case 1:b=rc(8);c=J[c+8>>2];J[695492]=0;c=aa(3182,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+12>>2]=c;return a|0;case 0:c=J[c+8>>2];b=rc(8);J[695492]=0;c=aa(3183,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a; -J[a+12>>2]=c;return a|0;case 3:b=rc(72);c=J[c+8>>2];J[695492]=0;c=aa(3375,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+8>>2]=c;if(J[c+68>>2])break b;qc(c);J[a+8>>2]=0;return a|0}break a;default:break c}xc(0,-1,803942,0)}return a|0}a=Z()|0;qc(b);ba(a|0);B()}function wp(a){var b=0,c=0,d=0,e=0,f=0;d=bc-32|0;bc=d;b=gc[J[659447]](96)|0;a:{if(!b){J[d>>2]=17766;Cc(0,0,0,0,0,2,2,3,17766,0,0,0,32863,d);break a}b=wc(b,0,96);J[b+4>>2]=9;e=a?a:28555;c=e;while(1){a=c;c=a+1|0;if(K[a|0])continue;break}c= -0;b:{a=a-e|0;if((a|0)>=0){f=gc[J[659450]](a+1|0)|0;if(f)break b;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0)}J[b+56>>2]=0;J[d+16>>2]=17766;Cc(0,0,0,0,0,2,2,3,17766,0,0,0,32863,d+16|0);gc[J[659451]](b);break a}c=a;a=tc(f,e,a);H[c+a|0]=0;J[b+56>>2]=a;J[b+36>>2]=-1;J[b+40>>2]=-1;J[b+88>>2]=0;J[b+92>>2]=32;J[b+76>>2]=1;J[b+32>>2]=b;c:{if(!J[689540])break c;a=J[689537];if(!a)break c;gc[a|0](b)}c=b}bc=d+32|0;return c}function Wcb(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;d=bc+-64|0;bc=d;gc[J[b+ -60>>2]](b,d+16|0,4,d+12|0);c=J[d+12>>2];a:{if((c|0)<0){c=162;break a}if(c-5>>>0<4294967292){c=3;break a}c=EC(a,0,c);J[d+8>>2]=c;if(c)break a;if(J[d+12>>2]<=0){c=0;break a}i=J[a+100>>2];j=J[a+532>>2];while(1){a=(d+16|0)+P(g,12)|0;c=J[a>>2];if(K[c|0]==47){c=c+1|0;J[a>>2]=c}e=J[a+4>>2];if((e|0)==(c|0)){c=3;break a}f=(g<<2)+j|0;h=J[f+8>>2];if(h)gc[J[i+8>>2]](i,h);h=f;e=e-c|0;f=Zd(i,e+1|0,d+8|0);J[h+8>>2]=f;c=J[d+8>>2];if(c)break a;k=tc(f,J[a>>2],e)+e|0,l=0,H[k|0]=l;g=g+1|0;if((g|0)>2])continue; -break}c=J[d+8>>2]}J[b+12>>2]=c;bc=d- -64|0}function QEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=bc-16|0;bc=e;J[a+4>>2]=0;J[a+8>>2]=0;c=a+16|0;J[c>>2]=0;J[c+4>>2]=0;J[a>>2]=a+4;d=a+28|0;J[d>>2]=0;J[d+4>>2]=0;J[a+12>>2]=c;J[a+24>>2]=d;J[695492]=0;c=$(4936,e+8|0)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){J[695492]=0;b=aa(3314,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(b){J[695492]=0;da(4937,a|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}J[c>>2]=768024;b=J[c+4>>2];if(b)gc[J[J[b>>2]+ -4>>2]](b);bc=e+16|0;return a|0}b=Z()|0;break a}b=Z()|0;J[c>>2]=768024;c=J[c+4>>2];if(c)gc[J[J[c>>2]+4>>2]](c)}cp(a+24|0,J[a+28>>2]);yv(a+12|0,J[a+16>>2]);cp(a,J[a+4>>2]);ba(b|0);B()}function _qa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=bc-32|0;bc=f;a:{b:{c=J[a+44>>2];e=J[a+40>>2];if(J[b>>2]>=(((c+J[a+16>>2]|0)-e|0)+1|0)){a=Kc(f+8|0,2376631,2374240,228,2421238,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}d=(c-e|0)+1|0;if(!((e|0)<=(d|0)&(c|0)>=(d|0))){Fs(a+24|0,d);e= -J[a+40>>2];c=J[a+44>>2]}if(!((d|0)>=(e|0)&(c|0)>=(d|0))){a=Kc(f+8|0,2381890,2382316,619,2422660,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}c=J[a+28>>2]+P(d-J[a+32>>2]|0,12)|0;J[c>>2]=J[b>>2];uj(c+4|0,b+4|0);J[c+8>>2]=J[b+8>>2];bc=f+32|0;return J[a+16>>2]+d|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function qsa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a>>2]=0;a:{b:{c:{d:{if(b){J[695492]=0;c=$(4,36)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;J[695492]=0;J[c+8>>2]=0;J[c+12>>2]= -0;J[c+4>>2]=0;J[c>>2]=2414676;d=J[695492];J[695492]=0;if((d|0)==1)break c;J[c+16>>2]=0;J[c+20>>2]=8;J[c>>2]=2414864;J[695492]=0;ha(5043,c+28|0,c+24|0,0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1){b=Z()|0;vc(c+16|0);bh(c);break b}J[695492]=0;aa(4985,a|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;J[695492]=0;e=$(4,b+1|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break d;J[c+8>>2]=b;J[c+12>>2]=e;H[b+e|0]=0}return}b=Z()|0;break a}b=Z()|0}qc(c)}vc(a);ba(b|0);B()}function ns(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;g=d?d:2779008;d=J[g>>2];a:{b:{c:{if(!b){if(d)break c;return 0}e=-2;if(!c)break b;d:{if(d){e=c;break d}d=K[b|0];f=d<<24>>24;if((f|0)>=0){if(a)J[a>>2]=d;return(f|0)!=0|0}if(!J[J[694782]>>2]){e=1;if(!a)break b;J[a>>2]=f&57343;return 1}d=d-194|0;if(d>>>0>50)break c;d=J[(d<<2)+2600992>>2];e=c-1|0;if(!e)break a;b=b+1|0}f=K[b|0];h=f>>>3|0;if((h-16|(d>>26)+h)>>>0>7)break c;while(1){e=e-1|0;d=f-128|d<<6;if((d|0)>=0){J[g>>2]=0;if(a)J[a>>2]=d;return c-e|0}if(!e)break a;b=b+1|0;f= -K[b|0];if((f&192)==128)continue;break}}J[g>>2]=0;J[694731]=25;e=-1}return e|0}J[g>>2]=d;return-2}function j4(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;f=J[a>>2];if(!f)return 65536;g=65536;a:{if(!(b&16384))while(1){b=g;e=i<<2;d=J[e+c>>2];b:{if(!d)break b;e=J[e+J[a+8>>2]>>2];if(!e)return 0;if((d|0)==(e|0))break b;g=0;if((e|0)<(d&d>>31)|(e|0)>(((d|0)>0?d:0)|0))break a;g=Dd(b,e,d);f=J[a>>2]}i=i+1|0;if(i>>>0>>0)continue;break a}while(1){b=g;h=i<<2;j=J[h+c>>2];c:{if(!j)break c;g=0;f=J[h+J[a+8>>2]>>2];if(!f)break a; -if((f|0)==(j|0)){g=b;break c}k=J[d+h>>2];if((f|0)<=(k|0))break a;h=J[e+h>>2];if((h|0)<=(f|0))break a;if((f|0)<(j|0)){g=Dd(b,f-k|0,j-k|0);break c}g=Dd(b,h-f|0,h-j|0)}i=i+1|0;if(i>>>0>2])continue;break}}return g}function fUa(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;var h=0,i=0,j=Q(0),k=0,l=0,m=0,n=0;i=bc-256|0;bc=i;if(g){m=(e<<2)+c|0;a=J[a+416>>2];c=J[(a+(J[b+16>>2]<<2)|0)+140>>2];n=J[(a+(J[b+4>>2]<<2)|0)+100>>2];a=0;while(1){gc[n|0](i,m,f);l=(a<<7)+d|0;e=0;while(1){k=(e<<1)+l| -0;h=e<<2;j=Q(Q(N[h+i>>2]*N[c+h>>2])+Q(16384.5));a:{if(Q(R(j))>1]=h-16384;k=e|1;h=k<<2;j=Q(Q(N[h+i>>2]*N[c+h>>2])+Q(16384.5));b:{if(Q(R(j))>1]=h-16384;e=e+2|0;if((e|0)!=64)continue;break}f=J[b+36>>2]+f|0;a=a+1|0;if((g|0)!=(a|0))continue;break}}bc=i+256|0}function dn(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!a)break a;if(!K[2758024]){b=zc(4);J[689507]=b;if(!b)break a;H[2758024]=1}b=J[a>>2];J[a>>2]=b-1;if((b| -0)>1)break a;b=J[a+20>>2];if(b)dn(b);b=J[a+4>>2];if(b){c=J[a+8>>2];b:{if(!c)break b;d=J[a+12>>2];while(1){b=J[a+4>>2];if(!d)break b;f=P(e,20)+b|0;c:{if(!J[f+12>>2]|!b)break c;b=J[f>>2];d=d-1|0;J[a+12>>2]=d;if(!b)break c;while(1){c=J[b>>2];gc[J[659451]](b);d=J[a+12>>2]-1|0;J[a+12>>2]=d;b=c;if(b)continue;break}c=J[a+8>>2]}e=e+1|0;if(e>>>0>>0)continue;break}b=J[a+4>>2]}gc[J[659451]](b)}b=J[a+16>>2];if(b)while(1){c=J[b>>2];gc[J[659451]](b);b=c;if(b)continue;break}gc[J[659451]](a)}}function Ui(a,b, -c,d,e,f,g,h){var i=0,j=0,k=0,l=0;j=h&10;k=g&10;if(!(j|k)){oo(b,c,d,e,f);return}if((j|0)!=(k|0)){j=c;k=d;if(g&8){k=J[a+4>>2];i=+(e-c|0)*+(k-d|0)/+(f-d|0);i=i+(i<0?-.5:.5);a:{if(R(i)<2147483648){j=~~i;break a}j=-2147483648}j=j+c|0}if(g&2){k=J[a+12>>2];i=+(e-c|0)*+(k-d|0)/+(f-d|0);i=i+(i<0?-.5:.5);b:{if(R(i)<2147483648){g=~~i;break b}g=-2147483648}j=g+c|0}g=e;l=f;if(h&8){l=J[a+4>>2];i=+(e-c|0)*+(l-d|0)/+(f-d|0);i=i+(i<0?-.5:.5);c:{if(R(i)<2147483648){g=~~i;break c}g=-2147483648}g=g+c|0}if(h&2){l=J[a+ -12>>2];i=+(e-c|0)*+(l-d|0)/+(f-d|0);i=i+(i<0?-.5:.5);d:{if(R(i)<2147483648){a=~~i;break d}a=-2147483648}g=a+c|0}oo(b,j,k,g,l)}}function Bg(a){var b=0,c=0,d=0,e=0,f=0;a:{if(H[a+16|0]&1){if(J[a+8>>2]>0)break a;c=J[a>>2];if(c&4){J[a+8>>2]=0;return-1}if(c&2){J[a+4>>2]=127;J[a+8>>2]=7;return 1}e=J[a+4>>2]<<8&65280;J[a+4>>2]=e;b:{c:{b=J[a+12>>2];d=J[b+8>>2];d:{if(d&7)break d;f=J[b+64>>2];if(!((f|0)<0|J[b+60>>2]<(f|0))){J[b+8>>2]=d|4;break d}c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+ -1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;b=K[b|0];break b}b=jd(b,1);if((b|0)!=-1)break c;c=J[a>>2]}J[a>>2]=c|2;return 1}e=J[a+4>>2]}c=(e|0)==65280?6:7;J[a+8>>2]=c;d=a;a=(2<>2]=a;return a>>>c&1}fa(204628,202110,242,212141);B()}fa(205006,202110,243,212141);B()}function nj(a){var b=0,c=0;b=-1;c=J[a+8>>2];a:{if(c&7)break a;while(1){b:{c:{b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break c;b=J[a+28>>2];J[a+28>>2]=b-1;d:{if((b|0)<=0){b=jd(a,1);break d}J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>> -2]=b+1;b=K[b|0]}if((b|0)!=35)break a;while(1){b=-1;c=J[a+8>>2];if(c&7)break a;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break c;b=J[a+28>>2];J[a+28>>2]=b-1;e:{if((b|0)<=0){b=jd(a,1);break e}J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0]}switch(b+1|0){case 0:break a;case 11:case 14:break b;default:continue}}}J[a+8>>2]=c|4;b=-1;break a}b=-1;c=J[a+8>>2];if(!(c&7))continue;break}}return b}function Rj(a,b){a=a|0;b=b|0;if(a>>>0<=127){H[b|0]=a;return b+1|0}if(a>>>0<=2047){H[b+1|0]=a&63|128; -H[b|0]=a>>>6|192;return b+2|0}if(a>>>0<=65535){H[b+2|0]=a&63|128;H[b|0]=a>>>12|224;H[b+1|0]=a>>>6&63|128;return b+3|0}if(a>>>0<=2097151){H[b+3|0]=a&63|128;H[b|0]=a>>>18|240;H[b+2|0]=a>>>6&63|128;H[b+1|0]=a>>>12&63|128;return b+4|0}if(a>>>0<=67108863){H[b+4|0]=a&63|128;H[b|0]=a>>>24|248;H[b+3|0]=a>>>6&63|128;H[b+2|0]=a>>>12&63|128;H[b+1|0]=a>>>18&63|128;return b+5|0}if((a|0)>=0){H[b+5|0]=a&63|128;H[b|0]=a>>>30|252;H[b+4|0]=a>>>6&63|128;H[b+3|0]=a>>>12&63|128;H[b+2|0]=a>>>18&63|128;H[b+1|0]=a>>>24& -63|128;return b+6|0}H[b|0]=63;return b+1|0}function B$a(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+8>>2];a:{if(b>>>0<=1){H[c+65|0]=0;H[c+66|0]=0;H[c+67|0]=0;H[c+68|0]=0;H[c+64|0]=1;d=J[187935];J[c+24>>2]=J[187934];J[c+28>>2]=d;d=J[187933];J[c+16>>2]=J[187932];J[c+20>>2]=d;d=J[187931];J[c+8>>2]=J[187930];J[c+12>>2]=d;d=J[187929];J[c>>2]=J[187928];J[c+4>>2]=d;H[a+36|0]=0;if((b|0)==1)break a}H[c+75|0]=0;I[c+72>>1]=1;b=J[187935];J[c+56>>2]=J[187934];J[c+60>>2]=b;b=J[187933];J[c+48>>2]=J[187932];J[c+52>>2]=b; -b=J[187931];J[c+40>>2]=J[187930];J[c+44>>2]=b;b=J[187929];J[c+32>>2]=J[187928];J[c+36>>2]=b;b=K[c+74|0]==1;J[c+76>>2]=b?17039875:33751047;J[c+80>>2]=b?100992768:17171716;J[a+56>>2]=0}}function qsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=J[a+2308>>2];a:{if(!d)break a;c=J[a+2312>>2];a=J[a+2316>>2];if(d>>>0>=4){f=d&-4;while(1){b=L[c>>1];I[a+6>>1]=L[c+2>>1];I[a+4>>1]=b;I[a+2>>1]=b;I[a>>1]=b;b=L[c+4>>1];I[a+14>>1]=L[c+6>>1];I[a+12>>1]=b;I[a+10>>1]=b;I[a+8>>1]=b;b=L[c+8>>1];I[a+22>>1]=L[c+10>>1];I[a+20>>1]= -b;I[a+18>>1]=b;I[a+16>>1]=b;b=L[c+12>>1];I[a+30>>1]=L[c+14>>1];I[a+28>>1]=b;I[a+26>>1]=b;I[a+24>>1]=b;a=a+32|0;c=c+16|0;e=e+4|0;if((f|0)!=(e|0))continue;break}}b=d&3;if(!b)break a;e=0;while(1){d=L[c>>1];I[a+6>>1]=L[c+2>>1];I[a+4>>1]=d;I[a+2>>1]=d;I[a>>1]=d;a=a+8|0;c=c+4|0;e=e+1|0;if((b|0)!=(e|0))continue;break}}return 0}function lva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=bc-32|0;bc=f;a:{b:{if(J[a+92>>2]>0){g=J[a+128>>2];h=J[a+104>>2];while(1){if(!(J[a+116>>2]<=(d|0)&J[a+120>>2]>=(d|0))){a= -Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}e=(d-J[a+108>>2]<<2)+h|0;J[e>>2]=J[e>>2]+b;if(!(J[a+140>>2]<=(d|0)&J[a+144>>2]>=(d|0))){a=Kc(f+8|0,2392484,2393512,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}e=(d-J[a+132>>2]<<2)+g|0;J[e>>2]=J[e>>2]+c;d=d+1|0;if((d|0)>2])continue;break}}bc=f+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function _Ka(a){a=a|0;var b=0,c=0,d=0,e=0,f=0, -g=0;e=J[a+8>>2];b=rc(53336);d=J[a+4>>2];c=J[J[d>>2]+8>>2];a:{b:{if(e){J[695492]=0;d=$(c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=J[a+12>>2];a=J[a+8>>2];e=J[a+16>>2];f=J[a+12>>2];g=J[a+8>>2];a=J[a+4>>2];J[695492]=0;va(3473,b|0,d|0,a|0,g|0,f|0,e|0,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}J[695492]=0;d=$(c|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;a=J[a+12>>2];J[b+53316>>2]=1;J[b+53308>>2]=0;J[b+53312>>2]=0;J[b+49192>>2]=258;J[b+49196>>2]=9;J[b+24>>2]=0;J[b+16>>2]= -0;J[b+12>>2]=a;J[b+8>>2]=0;J[b>>2]=2331660;J[b+4>>2]=d}return b|0}a=Z()|0;qc(b);ba(a|0);B()}function CBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;J[a>>2]=0;J[a+4>>2]=J[682146];a:{b=J[b>>2];b:{if(b){d=J[J[b>>2]+28>>2];J[695492]=0;ca(d|0,c+12|0,b|0,1);b=J[695492];J[695492]=0;if((b|0)!=1)break b;b=Z()|0;break a}J[c+12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;c:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]= -0;if((e|0)!=1){if(d)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break c}ea(0)|0;yc();B()}b=Z()|0;vc(c+12|0);break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];bc=c+16|0;return a|0}sc(a);ba(b|0);B()}function Tqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=bc-32|0;bc=e;a:{b:{if(M[b+4>>2]>=((J[a+16>>2]+J[a+44>>2]|0)-J[a+40>>2]|0)+1>>>0){a=Kc(e+8|0,2377226,2374240,285,2421296,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=J[a+100>>2];d=J[a+96>>2]; -c=(f-d|0)+1|0;if(!((c|0)>=(d|0)&(c|0)<=(f|0))){Fs(a+80|0,c);f=J[a+100>>2];d=J[a+96>>2]}if(!((c|0)<=(f|0)&(c|0)>=(d|0))){a=Kc(e+8|0,2381890,2382316,619,2404824,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}d=J[b+4>>2];a=J[a+84>>2]+(c-J[a+88>>2]<<3)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;bc=e+32|0;return c|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Ppb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{b:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b; -break a}if(K[a+291|0]|(K[a+300|0]|K[a+292|0]))break a;c:switch(c|0){default:Dc(a,1028,0,0);return 1028;case 0:case 9:break c}d:{e:{if(!K[a+112|0])break e;a=gc[J[b+4>>2]](a,b,e)|0;if(a)break d;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break e;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+44|0]=K[d+8|0]}a=0}return a|0}Dc(a,1029,0,0);return 1029}function Cg(a, -b){var c=0,d=0,e=0,f=0;a:{if(!a){a=J[695354];if(!a)break a}d=bc-32|0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;c=b;e=K[c|0];f=0;b:{if(!e)break b;if(!K[c+1|0]){c=a;while(1){d=c;c=c+1|0;if(K[d|0]==(e|0))continue;break}f=d-a|0;break b}while(1){f=d+(e>>>3&28)|0;J[f>>2]=J[f>>2]|1<>>3&28)>>2]>>>e&1))break c;e=K[c+1|0];c=c+1|0;if(e)continue;break}}f=c-a|0}c= -f+a|0;if(!K[c|0]){J[695354]=0;return 0}a=pF(c,b)+c|0;if(K[a|0]){J[695354]=a+1;H[a|0]=0;return c}J[695354]=0}return c}function zba(a){a=a|0;var b=0,c=0;b=J[a+584>>2];cy(a,0,1);a:{if(b){if(!J[b+16>>2])break a;b:{if(!(K[a+48|0]&4))break b;J[b+800>>2]=0;J[b+804>>2]=0;J[b+824>>2]=656;J[b+820>>2]=63;J[b+816>>2]=657;J[b+812>>2]=658;J[b+24>>2]=b+800;J[b+808>>2]=659;if((EO(b,0)|0)==2)break b;Nc(J[a+628>>2],97673,79563,0);return 0}c=L[a+90>>1];I[b+832>>1]=c;c:{if((c|0)==6){I[b+834>>1]=L[a+204>>1];c=L[a+206>> -1];break c}I[b+834>>1]=1;c=1}I[b+836>>1]=c;J[b+800>>2]=0;J[b+804>>2]=0;J[b+824>>2]=656;J[b+820>>2]=63;J[b+816>>2]=657;J[b+812>>2]=658;J[b+808>>2]=660;J[b+24>>2]=b+800;J[a+652>>2]=515;return 1}fa(75254,70490,646,97673);B()}fa(79097,70490,647,97673);B()}function su(a,b,c,d,e,f){var g=0,h=0,i=0;a:{b:{if(c){g=P(c,3);J[e>>2]=g;g=gc[J[a+152>>2]](g)|0;J[d>>2]=g;if(!g)break a;i=P(c,200);while(1){D8(a);J[a+2352>>2]=J[d>>2];J[a+2356>>2]=J[e>>2]-1;J[a+2340>>2]=b;J[a+2344>>2]=c;g=zk(a+2340|0,4);h=10;c:{if((g| -0)==-5|J[a+2344>>2])break c;h=0;if(g>>>0<2)break c;Dc(a,5,g,0);h=5}g=h;J[f>>2]=J[a+2360>>2];sN(a);if((g|0)!=10){if(g)break b;H[J[d>>2]+J[f>>2]|0]=0;return 0}g=J[d>>2];if(g)gc[J[a+156>>2]](g,J[e>>2]);g=J[e>>2]<<1;J[e>>2]=g;g=gc[J[a+152>>2]](g)|0;J[d>>2]=g;if(!g){Dc(a,1,0,0);return 1}if(M[e>>2]>>0)continue;break}return 10}J[d>>2]=0;J[e>>2]=0;J[f>>2]=0}return g}Dc(a,1,0,0);return 1}function sZ(a){a=a|0;var b=0,c=0;J[a>>2]=2205536;a:{while(1){b:{if(!K[(a+b|0)+1188|0])break b;c=J[((b<<2)+a|0)+164>> -2];if(!c)break b;J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a}b=b+1|0;if((b|0)!=256)continue;break}b=J[a+1444>>2];J[695492]=0;_(3225,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;if(J[a+3512>>2]==7){J[695492]=0;_(3205,a+3512|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(J[a+3528>>2]==7){J[695492]=0;_(3205,a+3528|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a>>2]=2205444;b=J[a+4>>2];if(b)qc(Rc(b));b=J[a+16>>2];if(b)qc(Rc(b));b=J[a+28>>2];if(b)qc(Rc(b));return a|0}ea(0)| -0;yc();B()}function rcb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=J[a>>2];d=J[a+44>>2];if(d){c=J[d>>2];if(!(!c|!J[c+96>>2]))J[c+88>>2]=d}e=bc-16|0;bc=e;c=J[f+504>>2];a:{if(!c){d=35;break a}d=6;if(!b|J[b+4>>2]<0|(J[b+8>>2]<0|M[b>>2]>4))break a;d=J[c+88>>2];J[J[d+40>>2]+12>>2]=0;g=J[J[J[c+96>>2]+12>>2]+88>>2];if(g){d=gc[g|0](d,b)|0;break a}if((J[c+8>>2]&3)==2){d=cM(c,b,e+12|0);if(d)break a;d=bM(c,J[e+12>>2]);break a}xr(c,b);d=0}bc=e+16|0;if(!d){b=J[J[f+504>>2]+88>>2];c=J[b+16>>2];J[a+12>>2]=J[b+12>> -2];J[a+16>>2]=c;J[a+36>>2]=J[b+36>>2];c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c}return d|0}function dI(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=J[a+20>>2];if(i>>>0<=2){J[a+8>>2]=0;return}c=i<<2;j=zc(c);if(j){d=J[a>>2];a:{if(!d)break a;g=zc(c);e=zc(i);if(!g|!e)break a;J[g>>2]=d;H[e|0]=0;k=j;b:while(1){l=b+e|0;while(1){c:{d:{e:{f:switch(f|0){case 0:f=2;c=J[d+8>>2];if(!c)continue;break e;case 3:break c;case 1:break f;default:break d}f= -3;c=J[d+12>>2];if(!c)continue}H[l|0]=f;b=b+1|0;h=b?h:h+1|0;J[(b<<2)+g>>2]=c;f=0;H[b+e|0]=0;d=c;continue b}J[k>>2]=d;k=k+4|0;f=1;continue}break}H[l|0]=3;if(b|h){h=h-!b|0;b=b-1|0;f=K[b+e|0];d=J[(b<<2)+g>>2];continue}break}qc(g);qc(e)}b=lI(j,0,i-1|0);J[a+8>>2]=0;J[a>>2]=b;qc(j)}}function aha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if(!d){d=J[a+584>>2];if(!d)break b;e=(c|0)/J[d+8>>2]|0;c:{if(J[d>>2]==2){c=b;break c}if(J[d+16>>2]<(e|0))break a;c=J[d+12>>2];gc[J[d+20>>2]](d,b,e)}f=J[a+600>>2]; -b=f-J[a+608>>2]|0;d=J[a+604>>2];if(e){while(1){if((b|0)<=2){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-b;if(!gf(a))return-1;d=J[a+604>>2];b=J[a+600>>2]-J[a+608>>2]|0}H[d|0]=L[c+2>>1];H[d+1|0]=J[c>>2]>>>8;H[d+2|0]=J[c>>2];b=b-3|0;d=d+3|0;c=c+4|0;e=e-1|0;if(e)continue;break}f=J[a+600>>2]}J[a+604>>2]=d;J[a+608>>2]=f-b;return 1}fa(76906,70356,468,93904);B()}fa(74413,70356,469,93904);B()}fa(77124,70356,476,93904);B()}function T8(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=J[a+44>>2];if(J[a+4>>2]==16)g=J[c+88>>2]+ -P(J[a+8>>2],1876)|0;else g=J[a+36>>2];d=J[g+1872>>2];e=P(b,1076);b=d+e|0;a=J[a+52>>2];f=gc[J[J[a>>2]+20>>2]](a,1)|0;J[b+4>>2]=f+1;g=c;c=J[c+12>>2];J[g+12>>2]=(c|0)<(f|0)?c:f;h=b,i=(gc[J[J[a>>2]+20>>2]](a,1)|0)+2|0,J[h+8>>2]=i;h=b,i=(gc[J[J[a>>2]+20>>2]](a,1)|0)+2|0,J[h+12>>2]=i;h=b,i=gc[J[J[a>>2]+20>>2]](a,1)|0,J[h+16>>2]=i;h=b,i=gc[J[J[a>>2]+20>>2]](a,1)|0,J[h+20>>2]=i;if(!(!(H[b|0]&1)|J[b+4>>2]<=0)){c=0;f=d+e|0;while(1){d=f+(c<<2)|0;e=gc[J[J[a>>2]+20>>2]](a,1)|0;J[d+944>>2]=e>>4;J[d+812>>2]=e&15; -c=c+1|0;if((c|0)>2])continue;break}}}function JL(a,b,c,d,e,f,g){var h=0;h=bc-16|0;bc=h;a:{b:switch(K[c+16|0]-8|0){case 24:if((e|0)<=0)break a;c=0;while(1){gc[J[J[d>>2]+12>>2]](d,h+10|0,4,1,0,0)|0;H[b|0]=K[h+10|0];H[b+1|0]=K[h+11|0];H[b+2|0]=K[h+12|0];hh(a,c+g|0,f,K[h+13|0]);b=b+3|0;c=c+1|0;if((e|0)!=(c|0))continue;break}break a;case 0:gc[J[J[d>>2]+12>>2]](d,b,e,1,0,0)|0;break a;case 7:case 8:g=0;if((e|0)<=0)break a;while(1){gc[J[J[d>>2]+12>>2]](d,h+14|0,2,1,0,0)|0;a=L[h+14>>1];H[b|0]=a<<3; -H[b+2|0]=a>>>7&248;H[b+1|0]=a>>>2&248;b=b+3|0;g=g+1|0;if((g|0)!=(e|0))continue;break}break a;case 16:break b;default:break a}gc[J[J[d>>2]+12>>2]](d,b,P(e,3),1,0,0)|0}bc=h+16|0}function FF(a,b){var c=0,d=0,e=0;a:{b:{if(b>>>0>8)while(1){H[a|0]=K[K[a|0]+91648|0];H[a+1|0]=K[K[a+1|0]+91648|0];H[a+2|0]=K[K[a+2|0]+91648|0];H[a+3|0]=K[K[a+3|0]+91648|0];H[a+4|0]=K[K[a+4|0]+91648|0];H[a+5|0]=K[K[a+5|0]+91648|0];H[a+6|0]=K[K[a+6|0]+91648|0];H[a+7|0]=K[K[a+7|0]+91648|0];a=a+8|0;b=b-8|0;if(b>>>0>8)continue;break b}if(!b)break a}e= -b-1|0;c=b&3;if(c)while(1){H[a|0]=K[K[a|0]+91648|0];a=a+1|0;b=b-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}if(e>>>0<3)break a;while(1){H[a|0]=K[K[a|0]+91648|0];H[a+1|0]=K[K[a+1|0]+91648|0];H[a+2|0]=K[K[a+2|0]+91648|0];H[a+3|0]=K[K[a+3|0]+91648|0];a=a+4|0;b=b-4|0;if(b)continue;break}}}function n2a(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;f=bc-112|0;bc=f;J[f+108>>2]=0;d=K[b+11|0];g=d<<24>>24<0;h=g?J[b>>2]:b;a:{if(!h)break a;d=g?J[b+4>>2]:d;if(!d)break a;Ep(h,d,f+108|0,f+104|0,0);e=J[f+ -108>>2]}b:{if(!Rk(e,f+8|0)){d=0;if((J[f+12>>2]&61440)==16384)break b}c=Oj(e,c?28718:18772);J[a+4>>2]=c;if(e){qc(e);c=J[a+4>>2]}if(c){Xg(c,0,2);i=a,j=wq(J[a+4>>2]),J[i+12>>2]=j;Xg(J[a+4>>2],0,0);J[a+8>>2]=0;e=K[b+11|0];c=e<<24>>24<0;e=c?J[b+4>>2]:e;c:{if(!(!e|J[((e<<2)+(c?J[b>>2]:b)|0)-4>>2]!=47)){J[a+12>>2]=2147483647;break c}d=1;if(J[a+12>>2]!=2147483647)break b}gc[J[J[a>>2]+8>>2]](a)}d=0}bc=f+112|0;return d|0}function WKa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=J[a+8>>2];a:{if(e){if((c| -0)<=0)return 0;a=J[e+36>>2];while(1){d=J[e+28>>2];if((d|0)<=(a|0)){if(!gt(e))break a;d=J[e+28>>2];a=J[e+36>>2]}g=J[e+32>>2]+a|0;a=d-a|0;d=c-f|0;d=(a|0)<(d|0)?a:d;tc(b+f|0,g,d);a=d+J[e+36>>2]|0;J[e+36>>2]=a;f=d+f|0;if((f|0)<(c|0))continue;break}break a}if(J[a+16>>2]|(c|0)<=0)break a;g=a+49208|0;e=J[a+53312>>2];while(1){d=J[a+53308>>2];if((d|0)<=(e|0)){if(!GA(a))break a;d=J[a+53308>>2];e=J[a+53312>>2]}h=e+g|0;e=d-e|0;d=c-f|0;d=(e|0)<(d|0)?e:d;tc(b+f|0,h,d);e=d+J[a+53312>>2]|0;J[a+53312>>2]=e;f=d+f| -0;if((f|0)<(c|0))continue;break}}return f|0}function Uo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(!b)return 0;a:{b:{if(!c)break b;d=K[b|0];e=d<<24>>24;if((e|0)>=0){if(a)J[a>>2]=d;return(e|0)!=0|0}if(!J[J[694782]>>2]){b=1;if(!a)break a;J[a>>2]=e&57343;return 1}d=d-194|0;if(d>>>0>50)break b;d=J[(d<<2)+2600992>>2];if(c>>>0<=3)if(d<>>3|0;if((e-16|e+(d>>26))>>>0>7)break b;c=c-128|d<<6;if((c|0)>=0){b=2;if(!a)break a;J[a>>2]=c;return 2}d=K[b+2|0]-128|0;if(d>>>0>63)break b; -c=d|c<<6;if((c|0)>=0){b=3;if(!a)break a;J[a>>2]=c;return 3}d=K[b+3|0]-128|0;if(d>>>0>63)break b;b=4;if(!a)break a;J[a>>2]=d|c<<6;return 4}J[694731]=25;b=-1}return b|0}function lS(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(!K[a+61|0])break a;f=J[a+120>>2];b=J[a+124>>2];if((f|0)==(b|0))break a;b=b-f>>3;j=b>>>0<=1?1:b;while(1){c=J[(g<<3)+f>>2];b:{if(!(c|J[21]))break b;b=J[c+56>>2];c=J[c+60>>2];if((b|0)==(c|0))break b;e=c-b>>3;d=e>>>0<=1?1:e;k=d&1;h=J[a+64>>2];c=0;if(e>>>0>=2){l=d& --2;e=0;while(1){i=c<<3;d=J[i+b>>2];if(!(!d|(h|0)!=J[d+92>>2]))H[d+90|0]=0;d=J[(i|8)+b>>2];if(!(!d|(h|0)!=J[d+92>>2]))H[d+90|0]=0;c=c+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}}if(!k)break b;b=J[(c<<3)+b>>2];if(!b|(h|0)!=J[b+92>>2])break b;H[b+90|0]=0}g=g+1|0;if((j|0)!=(g|0))continue;break}}}function jZ(a){a=a|0;J[a+32>>2]=0;J[a+36>>2]=1072693248;J[a>>2]=2205892;J[a+4>>2]=15;J[a+8>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+40>>2]=0;J[a+44>>2]=0;J[a+16>>2]=0;J[a+20>>2]=1072693248;J[a+80>>2]=0;J[a+ -84>>2]=1072693248;J[a+72>>2]=0;J[a+76>>2]=1072693248;J[a+88>>2]=0;J[a+92>>2]=1072693248;J[a+64>>2]=0;J[a+68>>2]=1072693248;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+124>>2]=1072693248;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+156>>2]=1072693248;return a|0}function Z1(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;a:{if(H[b+11|0]>=0){J[c+ -16>>2]=J[b+8>>2];d=J[b+4>>2];J[c+8>>2]=J[b>>2];J[c+12>>2]=d;break a}Re(c+8|0,J[b>>2],J[b+4>>2])}J[695492]=0;ca(2819,c+20|0,c+8|0,1);b=J[695492];J[695492]=0;b:{c:{if((b|0)!=1){if(H[c+19|0]<0)qc(J[c+8>>2]);J[695492]=0;ca(2820,a|0,c+20|0,0);a=J[695492];J[695492]=0;if((a|0)==1)break c;d=J[c+20>>2];if(d){a=J[c+24>>2];b=d;if((a|0)!=(b|0)){while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>>2]);a=b;if((b|0)!=(d|0))continue;break}b=J[c+20>>2]}J[c+24>>2]=d;qc(b)}bc=c+32|0;return}b=Z()|0;if(H[c+19|0]>=0)break b;qc(J[c+ -8>>2]);ba(b|0);B()}b=Z()|0;sg(c+20|0)}ba(b|0);B()}function Pz(a){a=a|0;var b=0,c=0,d=0;c=bc-32|0;bc=c;J[a>>2]=2406368;J[a+4>>2]=0;J[695492]=0;b=pa(5213)|0;d=J[695492];J[695492]=0;a:{if((d|0)!=1){J[695492]=0;b=J[J[b+48>>2]+((a>>>0)%M[b+44>>2]<<2)>>2];d=J[695492];J[695492]=0;b:{c:{d:{if((d|0)!=1){if(b)while(1){if(J[b+12>>2]==(a|0)&J[b+16>>2]==(a|0))break b;b=J[b+8>>2];if(b)continue;break}J[695492]=0;c=ja(5018,c+8|0,2383352,2373454,214,2406424,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]= -0;_(5019,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;B()}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;Fc(c);break a}J[b+20>>2]=a;bc=c+32|0;return a|0}b=Z()|0}ed(a);ba(b|0);B()}function Lqb(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;var h=0,i=0,j=0;a:{if(f){if(((c+1|0)/2|0)<=(b|0)){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];b=K[e+3|0];h=K[f+3|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+3|0]=b;f=f+4|0;e=e+4|0;g=g+4|0;a=a+1|0; -if((d|0)!=(a|0))continue;break}break a}if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){H[g|0]=K[e|0];H[g+1|0]=K[e+1|0];H[g+2|0]=K[e+2|0];b=K[e+3|0];h=K[f+3|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+3|0]=b;f=f+4|0;e=e+4|0;g=g+4|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}tc(g,e,d<<2)}return 0}function lw(a,b,c){var d=0,e=0,f=0;a:{if(!(K[a+361|0]&32))break a;d=J[a+328>>2];while(1){e=d;if((d|0)<2)break a;f=J[a+336>>2];d=d-2|0;if(J[f+(d<<2)>>2]!=(b|0))continue;break}if(J[(f+(e<<2)|0)-4>>2]!= -(c|0))break a;return-2}b:{c:{d:{e=J[a+332>>2];if(e){d=J[a+336>>2];if(d)break d}J[a+328>>2]=0;J[a+332>>2]=10;d=gc[J[659447]](40)|0;J[a+336>>2]=d;if(d)break c;ke(a,0);J[a+332>>2]=0;return-1}if((e|0)>J[a+328>>2])break c;J[a+332>>2]=e<<1;d=gc[J[659452]](d,e<<3)|0;if(!d)break b;J[a+336>>2]=d}f=d;d=J[a+328>>2];e=d<<2;J[f+e>>2]=b;b=d+2|0;J[a+328>>2]=b;J[(e+J[a+336>>2]|0)+4>>2]=c;return b}ke(a,0);J[a+332>>2]=J[a+332>>2]/2;return-1}function Dmb(a){a=a|0;var b=0,c=0,d=0;c=J[a>>2];b=c|65535;J[a>>2]=(b>>>0>1]>>>0?b:b-32768|0)<>2]=J[a>>2]<>2];a:{if((b|0)!=20480){c=J[a+16>>2];break a}Bx(J[a+12>>2],a+16|0);c=rc(20480);J[a+16>>2]=c;b=0}J[a+20>>2]=b+1;d=b+c|0;b=K[a+7|0];H[d|0]=b;if((b|0)!=255){H[a+7|0]=255;b=J[a+20>>2];b:{if((b|0)!=20480){c=J[a+16>>2];d=255;break b}Bx(J[a+12>>2],a+16|0);c=rc(20480);J[a+16>>2]=c;b=0;d=K[a+7|0]}J[a+20>>2]=b+1;H[b+c|0]=d}c=172;H[a+7|0]=172;b=J[a+20>>2];c:{if((b|0)!=20480){d=J[a+16>>2];break c}Bx(J[a+12>>2],a+16|0);d=rc(20480); -J[a+16>>2]=d;c=K[a+7|0];b=0}J[a+20>>2]=b+1;H[b+d|0]=c}function Au(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=1;j=J[a+16>>2];a:{if((j|0)>0){k=J[a+24>>2];b=J[k>>2];e=J[b>>2];J[a>>2]=e;f=J[b+4>>2];J[a+4>>2]=f;g=(P(J[b+8>>2],J[b+16>>2]-1|0)+e|0)+1|0;J[a+8>>2]=g;h=(P(J[b+12>>2],J[b+20>>2]-1|0)+f|0)+1|0;J[a+12>>2]=h;if((j|0)==1)break a;while(1){c=J[(d<<2)+k>>2];b=J[c>>2];if((b|0)<(e|0)){J[a>>2]=b;e=b}i=J[c+4>>2];if((i|0)<(f|0)){J[a+4>>2]=i;f=i}b=b+P(J[c+8>>2],J[c+16>>2]-1|0)|0;if((b|0)>=(g|0)){g= -b+1|0;J[a+8>>2]=g}b=P(J[c+12>>2],J[c+20>>2]-1|0)+i|0;if((b|0)>=(h|0)){h=b+1|0;J[a+12>>2]=h}d=d+1|0;if((j|0)!=(d|0))continue;break}break a}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}}function Lub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=J[J[a+544>>2]+88>>2];d=J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0;e=J[a+588>>2];b=J[a+644>>2];a:{if(K[c+56|0]){if((e|0)<=0)break a;e=0;while(1){f=K[d+2|0];g=K[d|0];h=K[d+1|0];b:{if(!((g|0)!=L[c+838>>1]|(h|0)!=L[c+840>>1]|L[c+842>>1]!=(f|0))){H[b|0]=0;H[b+1|0]= -0;H[b+2|0]=0;H[b+3|0]=0;break b}H[b+3|0]=255;H[b+2|0]=f;H[b+1|0]=h;H[b|0]=g}b=b+4|0;d=d+3|0;e=e+1|0;if((e|0)>2])continue;break}break a}c=0;if((e|0)<=0)break a;while(1){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];e=K[d+2|0];H[b+3|0]=255;H[b+2|0]=e;b=b+4|0;d=d+3|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function $qb(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;var h=0,i=0,j=0,k=0,l=0;if(e){k=e-1|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f+3|0];a= -g+4|0;h=i?(i|0)==(k|0)?d:b:c;a:{if(h>>>0<2)break a;j=h-1|0;l=j&1;if((h|0)!=2){j=j&-2;h=0;while(1){H[a|0]=K[f|0];H[g+5|0]=K[f+1|0];H[g+6|0]=K[f+2|0];H[g+7|0]=K[f+3|0];H[a+4|0]=K[f|0];H[a+5|0]=K[f+1|0];H[a+6|0]=K[f+2|0];H[a+7|0]=K[f+3|0];g=a+4|0;a=a+8|0;h=h+2|0;if((j|0)!=(h|0))continue;break}}if(!l)break a;H[a|0]=K[f|0];H[g+5|0]=K[f+1|0];H[g+6|0]=K[f+2|0];H[g+7|0]=K[f+3|0];a=a+4|0}g=a;f=f+4|0;i=i+1|0;if((i|0)!=(e|0))continue;break}}return 0}function p_(a){var b=0,c=0,d=0,e=0;J[695492]=0;_(3205,a+8| -0);b=J[695492];J[695492]=0;if((b|0)!=1)a:{d=J[a+28>>2];b=J[d+8>>2];if((b|0)>0)while(1){c=J[J[d>>2]+(e<<2)>>2];if(c){qc(c);b=J[d+8>>2]}e=e+1|0;if((e|0)<(b|0))continue;break}qc(dd(d));e=J[a+32>>2];c=J[e+8>>2];if((c|0)>0){b=0;while(1){d=J[J[e>>2]+(b<<2)>>2];if(d){J[695492]=0;_(3205,d+8|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;J[695492]=0;_(3205,d+24|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[d+44>>2];if(c)qc(dd(c));qc(d);c=J[e+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}qc(dd(e));b=J[a+ -36>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a}ea(0)|0;yc();B()}function kt(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=bc-256|0;bc=g;a:{if(J[a+328>>2]>0){while(1){e=J[((d<<2)+a|0)+196>>2];gc[J[J[e>>2]+16>>2]](e,b,(d<<3)+g|0);d=d+1|0;if((d|0)>2])continue;break}d=0;b=J[a+8>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)<=0)break a;while(1){e=(d<<2)+c|0;f=O[(d<<3)+g>>3]*65536;b:{if(R(f)<2147483648){b=~~f;break b}b=-2147483648}J[e>>2]=b;b=J[a+8>>2];d=d+1|0;if((gc[J[J[b>>2]+28>>2]](b)|0)>(d|0))continue;break}break a}if(J[a+ -324>>2]<=0)break a;while(1){h=(d<<2)+c|0;f=O[(d<<3)+b>>3]*65536;c:{if(R(f)<2147483648){e=~~f;break c}e=-2147483648}J[h>>2]=e;d=d+1|0;if((d|0)>2])continue;break}}bc=g+256|0}function idb(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=bc-16|0;bc=f;a=J[a+532>>2];a:{if(!a){e=6;break a}d=J[a+136>>2];a=J[a+4>>2];pL(d,f,a);d=a>>>0>>0?a:b;if(d)tc(c,f,d<<2);if(a>>>0>=b>>>0)break a;g=(d^-1)+b|0;e=b-d&7;if(e){a=0;while(1){J[(d<<2)+c>>2]=32768;d=d+1|0;a=a+1|0;if((e|0)!=(a|0))continue; -break}}e=0;if(g>>>0<7)break a;g=c+28|0;h=c+24|0;i=c+20|0;j=c+16|0;k=c+12|0;l=c+8|0;m=c+4|0;while(1){a=d<<2;J[a+c>>2]=32768;J[a+m>>2]=32768;J[a+l>>2]=32768;J[a+k>>2]=32768;J[a+j>>2]=32768;J[a+i>>2]=32768;J[a+h>>2]=32768;J[a+g>>2]=32768;d=d+8|0;if((d|0)!=(b|0))continue;break}}bc=f+16|0;return e|0}function Gkb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[J[a+40>>2]>>2];if(e){a=J[a>>2];f=J[a+100>>2];c=J[a+712>>2];b=J[c+3080>>2];a=gh(J[J[a+96>>2]+4>>2],241698);a:{if(!a|!b)break a;b=J[b>>2];if(!b)break a;d= -gc[b|0](a)|0;if(!d)break a;gc[J[d+8>>2]](J[e>>2]);b=J[c+2024>>2];if(!b)break a;g=b&3;b:{if(!g){a=b;break b}c=0;a=b;while(1){a=a-1|0;gc[J[d+8>>2]](J[((a<<2)+e|0)+4>>2]);c=c+1|0;if((g|0)!=(c|0))continue;break}}if(b>>>0<4)break a;b=e+4|0;while(1){c=b+(a<<2)|0;gc[J[d+8>>2]](J[c-4>>2]);gc[J[d+8>>2]](J[c-8>>2]);gc[J[d+8>>2]](J[c-12>>2]);a=a-4|0;gc[J[d+8>>2]](J[b+(a<<2)>>2]);if(a)continue;break}}if(e)gc[J[f+8>>2]](f,e)}}function uia(a,b){a=a|0;b=b|0;var c=0;gc[J[J[a>>2]+24>>2]](a)|0;b=GQ(b);J[a+68>>2]=b; -c=K[a+98|0];b=gc[J[J[b>>2]+28>>2]](b)|0;H[a+98|0]=b;if((b|0)!=(c|0)){J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0;J[a+28>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;b=K[a+96|0];if(K[a+98|0]){a:{if(!b)break a;b=J[a+32>>2];if(!b)break a;qc(b)}H[a+96|0]=K[a+97|0];J[a+52>>2]=J[a+60>>2];b=J[a+56>>2];J[a+56>>2]=0;J[a+60>>2]=0;J[a+32>>2]=b;H[a+97|0]=0;return}b:{if(b)break b;b=J[a+32>>2];if((b|0)==(a+44|0))break b;H[a+97|0]=0;J[a+56>>2]=b;b=J[a+52>>2];J[a+60>>2]=b;b=rc(b);H[a+96|0]=1;J[a+32>>2]=b;return}b=J[a+52>>2];J[a+60>> -2]=b;b=rc(b);H[a+97|0]=1;J[a+56>>2]=b}}function uZ(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;J[c>>2]=13;a:{if(J[b>>2]!=9)break a;f=J[a+112>>2];if(J[f+8>>2]<=0)break a;while(1){b:{c:{d:{e=J[J[f>>2]+(h<<2)>>2];switch(J[e>>2]-6|0){case 0:break c;case 3:break d;default:break b}}if(J[b+8>>2]!=J[e+8>>2]|J[b+12>>2]!=J[e+12>>2])break b;d=1;xc(1,-1,792168,0);break a}d=0;g=J[e+8>>2];if(J[g+12>>2]<=0)break b;while(1){jg(g,d,c);if(!(J[c>>2]!=9|J[b+8>>2]!=J[c+8>>2]|J[b+12>>2]!=J[c+12>>2])){d=1;xc(1,-1,792168, -0);uc(c);break a}uc(c);d=d+1|0;g=J[e+8>>2];if((d|0)>2])continue;break}f=J[a+112>>2]}h=h+1|0;if((h|0)>2])continue;break}d=0}bc=c+16|0;return d}function FC(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=J[a+760>>2];a:{if(h>>>0>b>>>0){f=J[a+764>>2];b:{if(L[a+210>>1]){e=f+(b<<2)|0;d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);g=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=g;if(e+8>>>0>f+(h<<2)>>>0)break b;d=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);d=d<<24|(d&65280)<<8|(d>>> -8&65280|d>>>24);break b}e=f+(b<<1)|0;d=K[e|0]<<8|K[e+1|0];g=d<<1;if(e+4>>>0<=f+(h<<1)>>>0)d=K[e+3|0]|K[e+2|0]<<8;d=d<<1}f=0;a=J[a+724>>2];if(a>>>0>>0){J[c>>2]=0;return 0}if(a>>>0>>0){d=a;e=0;if((h-2|0)!=(b|0))break a}a=d>>>0>>0?a:d}else a=0;f=a-g|0;e=g}J[c>>2]=f;return e|0}function uza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=bc-32|0;bc=f;a:{b:{c:{if(!K[b+89|0]){a=Kc(f+8|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;c=Z()|0; -Fc(a);break c}d:{e=J[c+8>>2];e:{if(!e|!J[e+8>>2])break e;e=f+8|0;sj(e,c,0);g=J[f+8>>2];if(!g){sc(e);break e}e=J[g+8>>2];sc(f+8|0);if(e)break d}J[a>>2]=0;md(a,0);break a}gc[J[J[b>>2]+84>>2]](a,b,c,d);if(!J[a>>2])break a;J[695492]=0;c=pa(5213)|0;d=J[695492];J[695492]=0;if((d|0)!=1){d=J[a>>2];J[695492]=0;ca(5245,c|0,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}c=Z()|0;vc(a)}ba(c|0)}B()}bc=f+32|0}function Uz(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;b=J[689873];J[689873]=b+1;if(!b){b=J[a+24>> -2];J[c+12>>2]=a;J[c+8>>2]=b;b=J[c+8>>2];a:{if(!b)break a;while(1){b:{c:{d:{if(J[c+12>>2]==(a|0))while(1){if(!J[b+56>>2])break d;d=J[b+60>>2];e=b+52|0;J[c+4>>2]=e;e:{if(!d)break e;if(J[J[d+8>>2]+4>>2]<2)break c;while(1){d=J[d>>2];if(!d)break e;if(J[J[d+8>>2]+4>>2]>=2)continue;break}break c}b=J[b>>2];if(b)continue;break a}J[c+8>>2]=b;aj(c+8|0,a);B()}J[c+8>>2]=b;$o(a,c+8|0);break b}J[c>>2]=d;J[c+8>>2]=b;Kn(e,c)}b=J[a+24>>2];J[c+12>>2]=a;J[c+8>>2]=b;b=J[c+8>>2];if(b)continue;break}}b=J[689873]-1|0}J[689873]= -b;bc=c+16|0}function BH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{if(!c)break b;e=Yf(b,91);if(!e)break b;while(1){c:{g=e+1|0;j=Zf(g);h=Yf(g,46);g=h+1|0;d:{e:{d=gc[J[J[c>>2]+40>>2]](c)|0;if(d){e=e-b|0;f=0;while(1){f:{if(!(gc[J[J[d>>2]+28>>2]](d)|0))break f;i=J[d+20>>2];if((e|0)!=J[i>>2])break f;if(kd(J[i+4>>2],b,e))break f;if((f|0)==(j|0))break e;f=f+1|0}d=gc[J[J[d>>2]+44>>2]](d)|0;if(d)continue;break}}if(h)break d;break a}if(!h)break c;f=BH(a,g,d);if(f)break b}b=g;e=Yf(g,91);if(e)continue;break a}break}f= -0;a=gc[J[J[d>>2]+40>>2]](d)|0;if(!a)break b;if(!(gc[J[J[a>>2]+36>>2]](a)|0))break b;f=J[a+20>>2]}return f}return 0}function $qa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-32|0;bc=d;a:{b:{if(((J[a+44>>2]-J[a+40>>2]|0)+1|0)>0){a=Kc(d+8|0,2374986,2374240,193,2421184,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if(J[a+20>>2]){a=Kc(d+8|0,2375983,2374240,195,2421184,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}uj(a+20|0,b);c=J[b>>2];c=((J[c+ -16>>2]+J[c+44>>2]|0)-J[c+40>>2]|0)+1|0;J[a+16>>2]=c;if((c|0)>0)while(1){c=J[qz(J[b>>2],e)+4>>2];if(J[c+64>>2]?0:c)J[c+64>>2]=((c^c>>>5)&7)+2760112;e=e+1|0;if((e|0)>2])continue;break}bc=d+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function xi(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;h=a+4|0;a=J[a+4>>2];a:{b:{if(!a)break b;d=h;while(1){e=K[b+11|0];i=e<<24>>24<0;c=K[a+27|0];j=c<<24>>24<0;f=i?J[b+4>>2]:e;g=j?J[a+20>>2]:c;e=f>>>0>>0;c=e?f:g;c:{if(c){c=gd(j?J[a+16>>2]:a+16|0,i?J[b>> -2]:b,c);if(c)break c}c=f>>>0>g>>>0?-1:e}c=(c|0)<0;d=c?d:a;a=J[(c?a+4|0:a)>>2];if(a)continue;break}if((d|0)==(h|0))break b;c=K[d+27|0];f=c<<24>>24<0;a=K[b+11|0];g=a<<24>>24<0;d:{e=f?J[d+20>>2]:c;c=g?J[b+4>>2]:a;a=c>>>0>e>>>0?e:c;if(a){a=gd(g?J[b>>2]:b,f?J[d+16>>2]:d+16|0,a);if(a)break d}if(c>>>0>>0)break b;break a}if((a|0)>=0)break a}d=h}return d|0}function td(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=2147483647;a:{if(!b)break a;c=a>>31;c=(c^a)-c|0;d=b>>31;d=(d^b)-d|0;if(c>>>0<=(d>>>17^65535)>>>0){g= -((c<<16)+(d>>>1|0)>>>0)/(d>>>0)|0;break a}f=d>>>1|0;i=f+(c<<16)|0;c=(c>>>16|0)+(f>>>0>i>>>0)|0;if(c>>>0>=d>>>0)break a;f=S(c);h=32-f|0;c=i>>>h|c<>>0)/(d>>>0)|0;e=c-P(d,g)|0;c=i<>>31;h=e>>>0>=d>>>0;e=e-(h?d:0)|0;g=h|g<<1;h=31-f|0;c=c<<1}if((f|0)==31)break a;while(1){e=e<<1|c>>>31;f=e>>>0>=d>>>0;e=c>>>30&1|e-(f?d:0)<<1;i=e>>>0>=d>>>0;e=e-(i?d:0)|0;g=g<<2|f<<1|i;c=c<<2;h=h-2|0;if(h)continue;break}}a=a>>31|1;return(((b|0)<0?0-a|0:a)|0)<0?0-g|0:g}function mVa(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;f=bc-16|0;bc=f;a:{h=Xe(b,f+12|0,c);c=J[h>>2];if(c)b=0;else{c=rc(40);J[f+4>>2]=b+4;J[f>>2]=c;g=c+16|0;H[f+8|0]=0;d=J[e>>2];b:{if(H[d+11|0]>=0){e=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=e;J[g+8>>2]=J[d+8>>2];break b}e=J[d+4>>2];d=J[d>>2];J[695492]=0;ca(15,g|0,d|0,e|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}J[c+36>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+8>>2]=J[f+12>>2];J[c>>2]=0;J[c+4>>2]=0;J[h>>2]=c;d=c;e=J[J[b>>2]>>2];if(e){J[b>>2]=e;d=J[h>>2]}Ic(J[b+4>> -2],d);J[b+8>>2]=J[b+8>>2]+1;b=1}H[a+4|0]=b;J[a>>2]=c;bc=f+16|0;return}a=Z()|0;C_(f);ba(a|0);B()}function J4a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a+4>>2]=1;J[a>>2]=347876;b=a;J[a>>2]=350164;J[a+36>>2]=-1;J[a+40>>2]=0;J[a+20>>2]=0;a=a+12|0;J[a>>2]=0;J[a+4>>2]=0;J[b+32>>2]=0;c=b+24|0;J[b+28>>2]=c;J[b+24>>2]=c;J[b+8>>2]=a;J[695492]=0;$(2675,b+40|0)|0;a=J[695492];J[695492]=0;a:{if((a|0)==1)break a;J[695492]=0;a=J[695492];J[695492]=0;if((a|0)==1)break a;return b|0}f=Z()|0;b:{if(!J[c+8>>2])break b;a=J[c+ -4>>2];d=J[a>>2];e=J[J[c>>2]+4>>2];J[d+4>>2]=e;J[e>>2]=d;J[c+8>>2]=0;if((a|0)==(c|0))break b;while(1){d=J[a+4>>2];if(H[a+19|0]<0)qc(J[a+8>>2]);qc(a);a=d;if((c|0)!=(a|0))continue;break}}Rw(b+8|0,J[b+12>>2]);ba(f|0);B()}function Oga(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;g=bc-256|0;bc=g;J[g+248>>2]=37;J[g+252>>2]=0;h=g+248|0;Po(h|1,9813,1,J[c+4>>2]);i=Wg();J[g>>2]=e;J[g+4>>2]=f;a=g+224|0;e=ni(a,24,i,h,g)+a|0;i=Kj(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1; -J[695492]=0;h=g+32|0;ua(6667,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=$r(b,h,J[g+28>>2],J[g+24>>2],c,d);bc=g+256|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function Lga(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;g=bc-256|0;bc=g;J[g+248>>2]=37;J[g+252>>2]=0;h=g+248|0;Po(h|1,9813,0,J[c+4>>2]);i= -Wg();J[g>>2]=e;J[g+4>>2]=f;a=g+224|0;e=ni(a,24,i,h,g)+a|0;i=Kj(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[695492]=0;h=g+32|0;ua(6667,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=$r(b,h,J[g+28>>2],J[g+24>>2],c,d);bc=g+256|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function rZ(a){a=a|0;var b=0;J[a>>2]= -2205568;b=J[a+160>>2];if(b)qc(Rc(b));a:{b=J[a+164>>2];if(b){J[695492]=0;_(3423,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+168>>2];if(b){J[695492]=0;_(3225,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+200>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+208>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+216>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a>>2]=2205444;b=J[a+4>>2];if(b)qc(Rc(b));b=J[a+16>> -2];if(b)qc(Rc(b));b=J[a+28>>2];if(b)qc(Rc(b));return a|0}ea(0)|0;yc();B()}function dya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];e=J[J[d>>2]+16>>2];J[695492]=0;d=$(e|0,d|0)|0;e=J[695492];J[695492]=0;a:{b:{c:{if((e|0)==1)break c;e=J[a+20>>2];if(!(!e|(J[a+24>>2]/256|0)==((d|0)/256|0))){f=J[a+16>>2];J[695492]=0;da(e|0,d|0,f|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;J[a+24>>2]=d}a=J[a+12>>2];d=J[J[a>>2]+8>>2];J[695492]=0;a=ga(d|0,a|0,b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break b}na(ea(0)| -0)|0;J[695492]=0;ka(5087);a=J[695492];J[695492]=0;if((a|0)==1)break a;B()}return a|0}a=Z()|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)!=1){ba(a|0);B()}ea(0)|0;yc();B()}function _ga(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;g=bc-112|0;bc=g;J[g+104>>2]=37;J[g+108>>2]=0;h=g+104|0;Po(h|1,9813,1,J[c+4>>2]);i=Wg();J[g>>2]=e;J[g+4>>2]=f;a=g+80|0;e=ni(a,24,i,h,g)+a|0;i=Kj(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[695492]=0;h=g+32|0;ua(6655,a|0,i|0,e| -0,h|0,g+28|0,g+24|0,f|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=as(b,h,J[g+28>>2],J[g+24>>2],c,d);bc=g+112|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function Yga(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;g=bc-112|0;bc=g;J[g+104>>2]=37;J[g+108>>2]=0;h=g+104|0;Po(h|1,9813,0,J[c+4>>2]);i=Wg();J[g>>2]=e;J[g+4>>2]=f;a=g+80|0;e=ni(a, -24,i,h,g)+a|0;i=Kj(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[695492]=0;h=g+32|0;ua(6655,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=as(b,h,J[g+28>>2],J[g+24>>2],c,d);bc=g+112|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function Tk(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;sj(b+8|0,a,0);a:{b:{c:{d:{e:{a= -J[b+8>>2];f:{g:{if(!a)break g;d=J[a+8>>2];if(!d)break g;e=J[a+12>>2];h:{a=d-1|0;if(!a)break h;c=a;if((d|0)>0)break h;J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)==1)break f;B()}if(K[c+e|0]==47)break e}J[695492]=0;a=kf(b+8|0);c=J[695492];J[695492]=0;if((c|0)!=1)break d}a=Z()|0;break a}J[695492]=0;ia(5143,b|0,b+8|0,0,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break c;J[695492]=0;a=kf(b);c=J[695492];J[695492]=0;if((c|0)==1)break b;sc(b)}sc(b+8|0);bc=b+16|0;return a|0}a=Z()|0;break a}a=Z()|0;sc(b)}sc(b+ -8|0);ba(a|0);B()}function NZ(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(!c)break a;d=J[a+68>>2];h=d;f=J[a+64>>2];g=c<<3;e=f+g|0;d=(c>>>29|0)+d|0;d=e>>>0>>0?d+1|0:d;if((h|0)==(d|0)&e>>>0>>0|d>>>0>>0){g=J[a+76>>2];f=J[a+72>>2]+1|0;g=f?g:g+1|0;J[a+72>>2]=f;J[a+76>>2]=g}f=a+80|0;J[a+64>>2]=e;J[a+68>>2]=d;e=J[a+208>>2];b:{if(e){d=e+f|0;e=128-e|0;if(e>>>0>c>>>0){tc(d,b,c);c=J[a+208>>2]+c|0;break b}tc(d,b,e);J[a+208>>2]=0;Zv(a,f,1);c=c-e|0;b=b+e|0}c:{if(c>>>0<128)break c;if(b&7)while(1){Zv(a,tc(f,b,128), -1);b=b+128|0;c=c-128|0;if(c>>>0>127)continue;break c}Zv(a,b,c>>>7|0);b=b+c|0;c=c&127;b=b-c|0}if(!c)break a;tc(f,b,c)}J[a+208>>2]=c}}function swa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;On(d+12|0);J[695492]=0;e=b;b=J[d+12>>2];ca(5432,e|0,b|0,c|0);c=J[695492];J[695492]=0;a:{b:{if((c|0)==1)break b;c=J[J[b>>2]+20>>2];J[695492]=0;ha(c|0,b|0,0,0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;da(5433,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[d+12>>2];J[d+12>>2]=0; -c:{if(!a)break c;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+16|0;return}a=Z()|0;vc(d+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function ju(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+4>>2];b=f>>31;c=(b^f)-b|0;h=J[a>>2];if(!h){if(!f)return;J[a+4>>2]=(f|0)<0?-65536:65536;return}b=h>>31;d=(b^h)-b|0;if(!f){J[a>>2]=(h|0)<0?-65536:65536;return}e=c>>>0>>0?d+(c>>>1|0)|0:c+(d>>>1|0)| -0;b=S(e);b=(-1431655766>>>b>>>0>e>>>0?-15:-16)+b|0;a:{if((b|0)>0){d=d<>>0>>0?d+(c>>>1|0)|0:(d>>>1|0)+c|0;break a}g=e;e=0-b|0;b=g>>>e|0;c=c>>>e|0;d=d>>>e|0}b=65536-b|0;while(1){e=(P(b,d)>>16)+d|0;g=(P(b,c)>>16)+c|0;i=P((P(e,e)+P(g,g)|0)/-512|0,b+65536>>8);b=(i>>>16|0)+b|0;if((i|0)>65535)continue;break}J[a+4>>2]=(f|0)<0?0-g|0:g;J[a>>2]=(h|0)<0?0-e|0:e}function R$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;c=1;e=J[b>>2];a:{if(K[e|0]!=47)break a;J[d+12>>2]=e+1;b:{if(ar(d+12| -0,0,0))break b;while(1){f=J[d+12>>2];if(K[f|0]!=47)break b;J[d+12>>2]=f+1;if(!ar(d+12|0,0,1))continue;break}break a}c:{if(!a){c=J[d+12>>2];break c}c=J[a+24>>2];if(c){gc[J[659451]](c);e=J[b>>2]}c=J[d+12>>2];if((e|0)!=(c|0)){f=c-e|0;if(K[a+36|0]&2){if(!(!e|(f|0)<0)){g=gc[J[659450]](f+1|0)|0;if(!g){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);J[a+24>>2]=0;break c}h=tc(g,e,f)+f|0,i=0,H[h|0]=i}J[a+24>>2]=g;break c}h=a,i=eo(e,f),J[h+24>>2]=i;break c}J[a+24>>2]=0;c=e}J[b>>2]=c;c=0}bc=d+16|0;return c}function Vcb(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-208|0;bc=d;f=J[a+532>>2];gc[J[b+60>>2]](b,d+16|0,16,d+12|0);e=J[d+12>>2];a:{if((e|0)<0){c=162;break a}c=3;if(e-17>>>0<4294967280)break a;b:{c:{d:{if(f){g=J[f>>2];if(g)break d}c=EC(a,e,0);if(c)break a;e=J[b+8>>2];g=J[b>>2];if(J[d+12>>2]<=0)break b;f=J[a+532>>2];break c}if((e|0)!=(g|0))break a;e=J[b+8>>2];g=J[b>>2]}c=0;while(1){a=(d+16|0)+P(c,12)|0;J[b>>2]=J[a>>2];J[b+8>>2]=J[a+4>>2];a=gc[J[b+40>>2]](b,0)|0;h=c<<2;J[h+J[f+136>>2]>>2]=a;J[J[f+140>>2]+h>> -2]=a;c=c+1|0;if((c|0)>2])continue;break}}J[b+8>>2]=e;J[b>>2]=g;c=0}J[b+12>>2]=c;bc=d+208|0}function OG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if((c|0)<=0)break a;e=c&3;b:{if(!e){d=c;break b}d=c;while(1){g=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=g;J[a+8>>2]=J[b+8>>2];b=b+12|0;a=a+12|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(c>>>0<4)break a;while(1){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];J[a+20>>2]=J[b+20>>2];c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>> -2]=c;J[a+32>>2]=J[b+32>>2];c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;c=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=c;J[a+44>>2]=J[b+44>>2];b=b+48|0;a=a+48|0;c=d-5|0;d=d-4|0;if(c>>>0<4294967294)continue;break}}}function xw(a,b){var c=0,d=0,e=0,f=0;f=bc-16|0;bc=f;if(b){d=J[b+20>>2];if(d)a:if(J[d+4>>2]==2)break a;d=0;while(1){b:{c:switch(J[b+4>>2]-3|0){case 0:case 1:d=vp(d,J[b+40>>2]);break b;case 2:break c;default:break b}e=J[b+8>>2];d:{e:{f:{if(!a)break f;c=J[a+44>>2];g:{if(!c)break g;c=J[c+ -48>>2];if(!c)break g;c=tf(c,e,0,0);if(c)break e}if(J[a+40>>2]==1)break f;c=J[a+48>>2];if(!c)break f;c=J[c+48>>2];if(!c)break f;c=tf(c,e,0,0);if(c)break e}c=Qi(e);if(!c)break d}e=xw(a,J[c+12>>2]);if(!e)break b;d=vp(d,e);gc[J[659451]](e);break b}d=vp(d,J[b+40>>2])}b=J[b+24>>2];if(b)continue;break}}bc=f+16|0;return d}function eh(a,b,c){var d=0,e=0,f=0;f=bc-16|0;bc=f;a:{b:{if((gc[J[a+4>>2]](J[a+28>>2],b,f+12|0,1)|0)==1){e=K[f+12|0];break b}d=-1;if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break a}c:{d:{e:{if((gc[J[a+ -4>>2]](J[a+28>>2],b,f+13|0,1)|0)==1){d=e;e=K[f+13|0];d=d|e<<8;break e}if(gc[J[a+24>>2]](J[a+28>>2],b)|0)break d;d=P(e,257)}if((gc[J[a+4>>2]](J[a+28>>2],b,f+14|0,1)|0)==1){e=K[f+14|0];break c}if(!(gc[J[a+24>>2]](J[a+28>>2],b)|0))break c}e=0;d=-1;break a}d=d|e<<16;if((gc[J[a+4>>2]](J[a+28>>2],b,f+15|0,1)|0)==1){e=d|K[f+15|0]<<24;d=0;break a}a=gc[J[a+24>>2]](J[a+28>>2],b)|0;e=a?0:d|e<<24;d=a?-1:0}J[c>>2]=e;bc=f+16|0;return d}function bdb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-32|0;bc=c;a:{if((gc[J[b+ -52>>2]](b,6,c,3)|0)<=5){J[b+12>>2]=3;break a}e=J[c+12>>2];if(!e){J[b+12>>2]=3;break a}d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){f=a,g=td(1E3,d),I[f+68>>1]=g;f=c,g=td(J[c>>2],d),J[f>>2]=g;f=c,g=td(J[c+4>>2],d),J[f+4>>2]=g;f=c,g=td(J[c+8>>2],d),J[f+8>>2]=g;f=c,g=td(J[c+16>>2],d),J[f+16>>2]=g;f=c,g=td(J[c+20>>2],d),J[f+20>>2]=g;e=J[c+12>>2]<0?-65536:65536;J[c+12>>2]=e}J[a+440>>2]=J[c>>2];J[a+448>>2]=J[c+4>>2];d=J[c+8>>2];J[a+452>>2]=e;J[a+444>>2]=d;if(!$C(a+440|0)){J[b+12>>2]=3;break a}J[a+456>>2]=I[c+18>> -1];J[a+460>>2]=I[c+22>>1]}bc=c+32|0}function aH(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=bc-256|0;bc=g;a:{b:{if(c>>>0>>0){Yc(a,58787);d=0;break b}if(!b){c:{h=c-d|0;c=gW(a,J[a+740>>2]+d|0,h,0,0);if(!(d>>>0>4294967293|c>>>0>=-2-d>>>0)){b=J[a+712>>2];if(!b|c+d>>>0>>0)break c}Yc(a,58977);break b}if(!c)break b;d:{b=c+d|0;f=gg(a,b+1|0);if(f){i=J[a+740>>2];f=tc(f,i,d);h=gW(a,d+i|0,h,d+f|0,c);H[b+f|0]=0;if((c|0)==(h|0))break d;Yc(a,59122);rd(a,f);break b}Yc(a,59311);break b}rd(a,J[a+740>>2]);J[a+740>>2]= -f;d=b;break a}pk(g,1,1,b);Kq(a,g,59560)}b=gg(a,d+1|0);if(!b)break a;c=J[a+740>>2];if(d)tc(b,c,d);rd(a,c);J[a+740>>2]=b;H[b+d|0]=0}J[e>>2]=d;bc=g+256|0}function RGa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{b:{c:{d:{if(b){if(!a)break d;if(!d)break c;if(J[a+100>>2]!=1){Hc(d,1,2348335,0);return 0}if(c>>>0<=7)break a;ld(b,a+56|0,4);ld(b+4|0,a+60|0,4);if(c&3)break a;e=c-8|0;c=e>>>2|0;J[a+64>>2]=c;if(e>>>0>=4){c=ye(c,4);J[a+68>>2]=c;if(!c)break b;c=J[a+64>>2]}if(c){d=b+8|0;b=0;while(1){ld(d,J[a+68>>2]+ -(b<<2)|0,4);d=d+4|0;b=b+1|0;if(b>>>0>2])continue;break}}J[a+100>>2]=J[a+100>>2]|2;return 1}fa(2347980,2342899,2594,2359512);B()}fa(2342603,2342899,2595,2359512);B()}fa(2343543,2342899,2596,2359512);B()}Hc(d,1,2348502,0);return 0}Hc(d,1,2348385,0);return 0}function wV(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2385264;J[695492]=0;_(5063,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)a:{$c(a+52|0);b=J[a+44>>2];J[a+44>>2]=0;b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d| -0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+8>>2]=2381028;J[a+32>>2]=2381060;b=J[a+36>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+36>>2]=0}J[a+24>>2]=2381060;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}sc(a+16|0);return ed(a)|0}ea(0)|0;yc();B()}function Yob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;J[c+12>>2]=0;a:{if(K[b+32|0]){d=ue(a,J[b>>2],0,0);break a}b:{d= -cN(a,J[b+52>>2],J[b+48>>2],c+12|0,c+8|0,c+4|0);c:{if(d)break c;e=J[b+36>>2];f=(e+J[c+4>>2]|0)+2|0;d:{if(f>>>0<=M[a+424>>2]){g=J[a+428>>2]+8|0;break d}g=gc[J[a+152>>2]](f)|0;if(!g)break b;e=J[b+36>>2]}d=g;if(e)d=tc(d,J[b+40>>2],e)+J[b+36>>2]|0;H[d|0]=0;H[d+1|0]=K[b+44|0];e=J[c+4>>2];if(e)tc(d+2|0,J[c+12>>2],e);d=ue(a,J[b>>2],f,g);if(M[a+424>>2]>=f>>>0)break c;gc[J[a+156>>2]](g,f)}b=J[c+12>>2];if(!b)break a;gc[J[a+156>>2]](b,J[c+8>>2]);break a}d=1;Dc(a,1,0,0)}bc=c+16|0;return d|0}function JC(a,b,c){a= -a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if(!a)return 35;e=16;a:{if(L[a+264>>1]<=b>>>0)break a;d=J[a+544>>2];if(!d)return 7;e=0;g=c,h=gc[J[d+16>>2]](0)|0,J[g>>2]=h;f=c;c=J[a+476>>2];b:{if((c|0)!=151552){if((c|0)!=131072){if((c|0)!=65536|b>>>0>257)break a;a=gc[J[d+16>>2]](b)|0;break b}if(!K[a+632|0])if(B4(a))break a;if(L[a+636>>1]<=b>>>0)break a;b=L[J[a+640>>2]+(b<<1)>>1];if(b>>>0<=257){a=gc[J[d+16>>2]](b)|0;break b}a=J[(J[a+644>>2]+(b<<2)|0)-1032>>2];break b}if(!K[a+632|0])if(B4(a))break a;if(L[a+ -636>>1]<=b>>>0)break a;a=gc[J[d+16>>2]](H[J[a+640>>2]+b|0]+b|0)|0}J[f>>2]=a}return e|0}function Fm(a,b,c,d,e){var f=0,g=0,h=0,i=0;h=bc-16|0;bc=h;J[h+12>>2]=b;b=0;f=6;a:{b:{if(Lj(a,h+12|0))break b;f=4;g=J[a>>2];i=J[g+12>>2];c:{if((i|0)==J[g+16>>2]){g=gc[J[J[g>>2]+36>>2]](g)|0;break c}g=J[i>>2]}if(!(gc[J[J[d>>2]+12>>2]](d,64,g)|0))break b;b=gc[J[J[d>>2]+52>>2]](d,g,0)|0;while(1){d:{oq(a);b=b-48|0;if(Lj(a,h+12|0)|(e|0)<2)break d;f=J[a>>2];g=J[f+12>>2];e:{if((g|0)==J[f+16>>2]){f=gc[J[J[f>>2]+36>>2]](f)| -0;break e}f=J[g>>2]}if(!(gc[J[J[d>>2]+12>>2]](d,64,f)|0))break a;e=e-1|0;b=(gc[J[J[d>>2]+52>>2]](d,f,0)|0)+P(b,10)|0;continue}break}f=2;if(!Lj(a,h+12|0))break a}J[c>>2]=J[c>>2]|f}bc=h+16|0;return b}function nh(a,b,c,d){var e=0,f=0,g=0;a:{b:{if(!(H[a+201|0]&1)&(b|0)>=65536)break b;e=J[a+52>>2];f=-1;c:switch(K[a+200|0]){case 0:e=L[(J[a+188>>2]+((b&15)<<1)|0)+(L[(e+(b>>>3&126)|0)+(L[e+(b>>10<<1)>>1]<<1)>>1]<<1)>>1];d:{if(d){if(e>>>0>2047)break d;break b}if(e>>>0<3072)break b}J[c>>2]=e&255;return 1;case 1:break c; -default:break a}g=b&15;f=J[(e+(b>>>2&252)|0)+(L[e+(b>>10<<1)>>1]<<2)>>2];e=L[J[a+188>>2]+((g|f<<4&1048560)<<1)>>1];if(!(f>>>(g|16)&1))if(!e|!(b-57344>>>0<6400|d)&b-983040>>>0>131071)break b;J[c>>2]=e;return e>>>0<256?1:2}a=J[a+224>>2];if(!a)return 0;b=Jt(a,b,c,d);a=b>>31;f=(a^b)-a|0}return f}function fib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=3;a:{if(J[a+64>>2]!=3){J[a+64>>2]=3;e=J[a+20>>2];if(!e)break a;b:{if(K[a+68|0]){d=J[a+12>>2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=sh(d,0,1);if(d)break a}f= -L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=sh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+68|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[f+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1}d=0}return d|0}function aA(a,b,c,d,e,f,g,h,i,j){var k=0,l=0,m=0,n=0,o=0,p=0;k=bc-96|0;bc=k;m=h-g;n=Lu(m*.5);l=xe(m);m=He(h); -o=xe(h);h=f*o+d;l=l*(Y(n*(n*3)+4)+-1)/3;n=l*f;p=He(g);l=l*e;g=xe(g);O[k+88>>3]=e*p+c-l*g;O[k+80>>3]=n*p+(f*g+d);c=e*m+c;O[k+72>>3]=l*o+c;O[k+64>>3]=h-m*n;O[k+56>>3]=c;O[k+48>>3]=h;je(b,k+88|0,k+80|0);je(b,k+72|0,k- -64|0);je(b,k+56|0,k+48|0);O[k+40>>3]=O[k+88>>3]*25.4/96;O[k+32>>3]=O[k+80>>3]*25.4/96;O[k+24>>3]=O[k+72>>3]*25.4/96;O[k+16>>3]=O[k+64>>3]*25.4/96;O[k+8>>3]=O[k+56>>3]*25.4/96;O[k>>3]=O[k+48>>3]*25.4/96;gc[J[J[a>>2]+328>>2]](a,k+40|0,k+32|0,k+24|0,k+16|0,k+8|0,k)|0;O[i>>3]=c;O[j>>3]=h; -bc=k+96|0}function Wub(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{c:{d:{e:{b=J[J[a+512>>2]+88>>2];switch(K[b+45|0]){case 2:case 6:break c;case 3:break d;case 0:case 4:break e;default:break a}}c=K[b+44|0];if(c>>>0>=9){c=K[b+1155|0];break b}c=P(K[c+213064|0],K[b+1154|0]);break b}b=b+P(K[b+1152|0],3)|0;c=K[b+70|0];d=K[b+69|0];e=K[b+68|0];break a}e=L[b+1156>>1];if(K[b+44|0]>=9){e=(e&65280)>>>8|0;c=K[b+1161|0];d=K[b+1159|0];break a}c=K[b+1160|0];d=K[b+1158|0];break a}d=c;e=c}b=J[a+660>>2]-J[a+656>>2]|0;if((b| -0)>0){a=J[a+644>>2];c=e&255|((d&255)<<8|(c&255)<<16);while(1){J[a>>2]=c;a=a+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function OL(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;gc[J[J[b>>2]+16>>2]](b,45431,1,6)|0;c=J[a+16>>2];gc[J[J[b>>2]+44>>2]](b,c&255)|0;gc[J[J[b>>2]+44>>2]](b,c>>>8&255)|0;c=J[a+20>>2];gc[J[J[b>>2]+44>>2]](b,c&255)|0;gc[J[J[b>>2]+44>>2]](b,c>>>8&255)|0;if(J[a+44>>2]){c=L[a+26>>1]-1|0;c=c<<5|c|-128}else c=17;gc[J[J[b>>2]+44>>2]](b,c&255)|0;c=0;gc[J[J[b>>2]+44>>2]](b,0)|0;gc[J[J[b>> -2]+44>>2]](b,0)|0;e=J[a+44>>2];d=!e;if(!(d|d)){d=J[a+4>>2];d=d?e?d+40|0:0:0;while(1){e=d+(c<<2)|0;gc[J[J[b>>2]+44>>2]](b,K[e+2|0])|0;gc[J[J[b>>2]+44>>2]](b,K[e+1|0])|0;gc[J[J[b>>2]+44>>2]](b,K[e|0])|0;c=c+1|0;if(c>>>0>2])continue;break}}}function LH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+3524>>2];a:{while(1){b:{if(c){d=J[a+3520>>2];c=c-1|0;break b}c:{c=J[a+4>>2];d=gc[J[J[c>>2]+28>>2]](c)|0;if((d|0)!=255){if((d|0)==-1)break a;break c}while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;if((c|0)== -255)continue;break}if(!c)break c;xc(1,gc[J[J[a>>2]+52>>2]](a)|0,816157,0);return 9999}J[a+3520>>2]=d;c=7}J[a+3524>>2]=c;e=e+1|0;f=(e<<1)+b|0;g=L[f+18>>1];h=d>>>c&1|h<<1&131070;d=h&65535;if(g>>>0<=d>>>0){d=d-g|0;if((d|0)>1])return K[((K[b+e|0]+(d&65535)|0)+b|0)+86|0];if((e|0)!=16)continue}break}xc(1,gc[J[J[a>>2]+52>>2]](a)|0,815934,0)}return 9999}function sq(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;j=1;i=d&2147483647;k=i;l=(i|0)==2147418112;a:{if(l&!c?a|b:l&(c|0)!=0|i>>>0>2147418112)break a;i= -h&2147483647;if(!g&(i|0)==2147418112?e|f:(i|0)==2147418112&(g|0)!=0|i>>>0>2147418112)break a;if(!(a|e|(c|g)|(b|f|(i|k))))return 0;j=d&h;if((j|0)>0)k=1;else k=(j|0)>=0;if(k){j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>>0|b>>>0>>0:c>>>0>>0&(d|0)<=(h|0)|(d|0)<(h|0))break a;return(a^e|c^g|(b^f|d^h))!=0}j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>e>>>0|b>>>0>f>>>0:c>>>0>g>>>0&(d|0)>=(h|0)|(d|0)>(h|0))break a;j=(a^e|c^g|(b^f|d^h))!=0}return j}function qFa(a,b,c){a=a|0;b=b|0;c= -c|0;var d=0,e=0,f=0;J[a+4>>2]=0;J[a+64>>2]=2370152;J[a>>2]=2370132;J[a+8>>2]=2369912;J[695492]=0;f=a- -64|0;d=a+12|0;da(2853,f|0,d|0);e=J[695492];J[695492]=0;a:{b:{if((e|0)!=1){J[a+136>>2]=0;J[a+140>>2]=-1;J[a+64>>2]=2369932;J[a>>2]=2369892;J[a+8>>2]=2369912;J[695492]=0;d=$(4890,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[d>>2]=2369744;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+60>>2]=c;J[695492]=0;da(4891,d|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;if(H[a+55|0]<0)qc(J[a+ -44>>2]);Nh(d);break a}return a|0}b=Z()|0;break a}b=Z()|0}Uf(f);ba(b|0);B()}function jyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-80|0;bc=c;J[c+64>>2]=J[a+12>>2];cd(b,208108,c- -64|0);d=J[a+16>>2];f=J[a+20>>2];g=J[a+28>>2];J[c+56>>2]=J[a+24>>2];J[c+60>>2]=g;J[c+48>>2]=d;J[c+52>>2]=f;cd(b,208157,c+48|0);d=J[a+32>>2];f=J[a+36>>2];g=J[a+44>>2];J[c+40>>2]=J[a+40>>2];J[c+44>>2]=g;J[c+32>>2]=d;J[c+36>>2]=f;cd(b,208264,c+32|0);if(J[a+48>>2])while(1){d=J[a+52>>2]+(e<<2)|0;f=K[d|0];g=K[d+1|0];h=K[d+ -2|0];J[c+28>>2]=K[d+3|0];J[c+24>>2]=e;J[c+20>>2]=h;J[c+16>>2]=e;J[c+12>>2]=g;J[c+8>>2]=e;J[c+4>>2]=f;J[c>>2]=e;cd(b,208387,c);e=e+1|0;if(e>>>0>2])continue;break}bc=c+80|0;return 0}function dA(a){var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;J[a+744>>2]=33;qg(a,c+8|0,8);a:{b=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if((e|0)>=0){b=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);J[a+348>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);Xl(a);pe(a,c+12| -0,4);b=J[a+348>>2];d=b&255;if(d-123>>>0<4294967238|d-91>>>0<=5)break a;d=b>>>8&255;if(d-123>>>0<4294967238|d-91>>>0<6)break a;d=b>>>16&255;if(d-123>>>0<4294967238|d-91>>>0<6)break a;b=b>>>24|0;if(b-123>>>0<4294967238|b-91>>>0<6)break a;J[a+744>>2]=65;bc=c+16|0;return e}Ad(a,57835);B()}Ev(a,68320);B()}function xs(a,b,c,d){var e=0,f=0,g=0,h=0;g=bc-16|0;bc=g;a:{if(J[a+8>>2]==1){Nc(J[a+628>>2],J[a>>2],81760,0);e=-1;break a}if(K[a+13|0]&4){Nc(J[a+628>>2],J[a>>2],82125,0);e=-1;break a}e=J[a+180>>2];if(e>>> -0<=b>>>0){c=J[a>>2];a=J[a+628>>2];J[g+4>>2]=e;J[g>>2]=b;Nc(a,c,69386,g);e=-1;break a}e=1;h=J[a+60>>2];f=J[a+100>>2];if(h>>>0>f>>>0)e=((f+h|0)-1>>>0)/(f>>>0)|0;b:{if((e-1|0)==((b>>>0)%(e>>>0)|0)){e=(h>>>0)%(f>>>0)|0;if(e)break b}e=f}f=jT(a,e);e=-1;if(!_S(a,b))break a;d=(d|0)==-1?f:(d|0)>(f|0)?f:d;if((gc[J[a+548>>2]](a,c,d,(b>>>0)/M[a+176>>2]&65535)|0)<=0)break a;gc[J[a+652>>2]](a,c,d);e=d}bc=g+16|0;return e}function Rfb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;g=J[a+16>>2];c=J[a+ -28>>2];e=J[a+24>>2];J[f+12>>2]=0;a:{b:{d=e+1|0;c:{if(d>>>0<=c>>>0){b=J[a+32>>2];break c}J[a+36>>2]=b;b=Sc(b,4,c,d,J[a+32>>2],f+12|0);J[a+32>>2]=b;if(J[f+12>>2])break b;J[a+28>>2]=d}d:{if(!e)break d;a=g+10|0;c=0;if((e|0)!=1){g=e&-2;d=0;while(1){h=c<<2;J[h+b>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);J[(h|4)+b>>2]=K[a+13|0]|(K[a+12|0]<<8|K[a+11|0]<<16);c=c+2|0;a=a+22|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(e&1))break d;J[(c<<2)+b>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16)}J[(e<<2)+b>>2]=0;break a}b=0}bc= -f+16|0;return b|0}function lgb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+16>>2];c=K[a+8204|0]|K[a+8205|0]<<8|(K[a+8206|0]<<16|K[a+8207|0]<<24);d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!d)break a;a=a+8208|0;while(1){c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(e>>>0>b>>>0)break a;c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0>>0){a=a+12|0;d=d-1|0;if(!d)break a;continue}break}a=K[a+8|0]| -K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);b=b-e|0;f=a>>>0<=(b^-1)>>>0?a+b|0:0}return f|0}function W$(a,b,c){var d=0,e=0,f=0;if(!a)return 0;a:{if(!b){b:while(1){b=f;while(1){if(J[a+4>>2]!=14){f=0;d=vw(a,0,c,1);if(!d)break a;c:{d:{if(!b){e=0;b=d;break d}if((d|0)==(e|0))break c;J[e+24>>2]=d}J[d+28>>2]=e;e=d}f=b;a=J[a+24>>2];if(a)continue b;break a}a=J[a+24>>2];if(a)continue;break}break}return b}while(1){e:{f:{g:{if(J[a+4>>2]==14){d=J[b+44>>2];if(d)break f;d= -BJ(a);if(d)break g;return 0}d=vw(a,b,c,1);if(d)break e;return 0}J[d+20>>2]=c;J[d+32>>2]=b;J[b+44>>2]=d}Ug(c,d)}h:{i:{if(!f){e=0;f=d;break i}if((d|0)==(e|0))break h;J[e+24>>2]=d}J[d+28>>2]=e;e=d}a=J[a+24>>2];if(a)continue;break}}return f}function Ef(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;c=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=c;a:{b:{c:switch(J[a>>2]-3|0){case 0:c=J[a+8>>2];a=rc(8);J[695492]=0;c=aa(3183,a|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b; -J[b+8>>2]=c;break a;case 1:e=b,f=Md(J[a+8>>2]),J[e+8>>2]=f;break a;case 3:a=J[a+8>>2];J[a+16>>2]=J[a+16>>2]+1;break a;case 4:a=J[a+8>>2];J[a+20>>2]=J[a+20>>2]+1;break a;case 5:a=J[a+8>>2];e=b,f=gc[J[J[a>>2]+8>>2]](a)|0,J[e+8>>2]=f;break a;case 7:break c;default:break a}e=b,f=Md(J[a+8>>2]),J[e+8>>2]=f;break a}b=Z()|0;qc(a);ba(b|0);B()}return b|0}function j5(a,b,c){var d=0;d=0;a:{if(J[a>>2])break a;b:{if(K[b|0]|c>>>0<32|(K[b+1|0]|K[b+2|0]))break b;if(K[b+3|0]!=12|K[b+4|0]!=106|(K[b+5|0]!=80|K[b+6|0]!= -32))break b;if(K[b+7|0]!=32|K[b+8|0]!=13|(K[b+9|0]!=10|K[b+10|0]!=135))break b;if(K[b+12|0]|K[b+11|0]!=10|(K[b+13|0]|K[b+14|0]))break b;if(K[b+15|0]!=24|K[b+16|0]!=102|(K[b+17|0]!=116|K[b+18|0]!=121))break b;if(K[b+19|0]!=112|K[b+20|0]!=109|(K[b+21|0]!=106|K[b+22|0]!=112))break b;if(K[b+24|0]|K[b+23|0]!=50|(K[b+25|0]|K[b+26|0]))break b;if(K[b+27|0]|K[b+28|0]!=109|(K[b+29|0]!=106|K[b+30|0]!=112))break b;d=1;if(K[b+31|0]==50)break a}d=0}return d}function gaa(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;h=bc-16|0;bc=h;a:{b:{c:{d:{e=J[a+584>>2];if(e){if(!J[e+24>>2])break d;if(!J[e+20>>2])break c;f=zc(c);e:{if(!f){a=J[a+628>>2];J[h>>2]=c;Nc(a,197632,80696,h);b=0;break e}f=tc(f,b,c);g=J[e+8>>2];if((g|0)<=0)break b;if((c|0)%(g|0)|0)break a;if((c|0)>0){b=f;i=c;while(1){gc[J[e+24>>2]](a,b,g);b=b+g|0;i=i-g|0;if((i|0)>0)continue;break}}b=gc[J[e+20>>2]](a,f,c,d)|0;qc(f)}bc=h+16|0;return b|0}fa(72282,70388,574,197632);B()}fa(79601,70388,575,197632);B()}fa(80339,70388,576,197632);B()}fa(79427, -70388,594,197632);B()}fa(81010,70388,595,197632);B()}function Z4a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if((e|0)<=0)break a;g=J[a+36>>2];if((g|0)<=0)break a;j=J[a+112>>2];if(!j)break a;l=j&3;m=j-1>>>0<3;while(1){n=e-1|0;h=0;while(1){a=J[J[(h<<2)+b>>2]+(c<<2)>>2];f=J[d>>2]+h|0;i=j;k=0;if(l)while(1){H[f|0]=K[a|0];i=i-1|0;f=f+g|0;a=a+1|0;k=k+1|0;if((k|0)!=(l|0))continue;break}if(!m)while(1){H[f|0]=K[a|0];f=f+g|0;H[f|0]=K[a+1|0];f=f+g|0;H[f|0]=K[a+2|0];f= -f+g|0;H[f|0]=K[a+3|0];a=a+4|0;f=f+g|0;i=i-4|0;if(i)continue;break}h=h+1|0;if((h|0)!=(g|0))continue;break}d=d+4|0;c=c+1|0;a=(e|0)>1;e=n;if(a)continue;break}}}function KL(a,b){var c=0,d=0,e=0,f=0;d=J[a>>2];if(d>>>0>>0)while(1){c=d+1|0;a:{b:{c:{d:{e:{f=K[d|0];switch(f-40|0){case 1:break c;case 0:break d;default:break e}}if((f|0)!=92)break a;if((b|0)==(c|0)){J[a>>2]=b;return 3}f:switch(K[c|0]-40|0){case 0:case 1:case 52:case 58:case 62:case 70:case 74:case 76:break b;default:break f}if((K[c|0]&248)!= -48|b>>>0<=c>>>0)break a;c=d+2|0;if(c>>>0>=b>>>0|(K[c|0]&248)!=48)break a;c=d+3|0;if(c>>>0>=b>>>0)break a;c=(K[d+3|0]&248)==48?d+4|0:c;break a}e=e+1|0;break a}e=e-1|0;if(e)break a;J[a>>2]=c;return 0}c=d+2|0}d=c;if(c>>>0>>0)continue;break}J[a>>2]=d;return 3}function vMa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=bc-32|0;bc=f;J[a+12>>2]=e;J[a+40>>2]=0;J[a+44>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;e=rc(8);J[695492]=0;b=aa(3182,e|0,b|0)| -0;g=J[695492];J[695492]=0;a:{b:{c:{if((g|0)!=1){J[a>>2]=b;b=Oj(J[b+4>>2],775057);J[a+4>>2]=b;if(b)break c;J[f>>2]=J[a>>2];xc(4,-1,776420,f);J[a+44>>2]=1;break b}break a}J[f+16>>2]=5;e=rc(312);J[695492]=0;b=ja(3471,e|0,b|0,0,0,0,f+16|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[a+8>>2]=b;h=a,i=yY(a,c,d),J[h+40>>2]=i}bc=f+32|0;return a|0}a=Z()|0;qc(e);ba(a|0);B()}function YO(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=bc-16|0;bc=g;J[g+12>>2]=0;if(K[b+11|0]>>>7|0)b=J[b>>2];J[g+8>>2]=J[694731];J[694731]= -0;i=g+12|0;f=bc-208|0;bc=f;e=wc(f,0,144);f=e+144|4;J[e+8>>2]=f;J[e+44>>2]=f;J[e+76>>2]=-1;J[e+48>>2]=60;J[e+4>>2]=f;J[e+32>>2]=7031;f=b;while(1){h=b;b=b+4|0;if(uQ(J[h>>2]))continue;break}J[e+84>>2]=h;lk(e,0,0);b=gR(e,d,1,-2147483648,0);if(i){d=J[e+120>>2]+(J[e+4>>2]-J[e+44>>2]|0)|0;J[i>>2]=d?(d<<2)+h|0:f}bc=e+208|0;d=J[694731];J[694731]=J[g+8>>2];J[g+8>>2]=d;a:{if(J[g+8>>2]!=68){d=J[g+12>>2];if((d|0)==(f|0))break a;if(c)J[c>>2]=d-f>>2;bc=g+16|0;return b}Vr(a);B()}gy(a);B()}function O3(a){var b=0, -c=0,d=0;c=bc-16|0;bc=c;J[a+4>>2]=0;J[c+12>>2]=0;b=zc(84);if(!b){d=J[a>>2];J[d+20>>2]=56;J[d+24>>2]=0;gc[J[J[a>>2]>>2]](a)}J[b+48>>2]=1E9;J[b+40>>2]=303;J[b+36>>2]=304;J[b+32>>2]=305;J[b+28>>2]=306;J[b+24>>2]=307;J[b+20>>2]=308;J[b+16>>2]=309;J[b+12>>2]=310;J[b+8>>2]=311;J[b+4>>2]=312;J[b>>2]=313;J[b+52>>2]=0;J[b+56>>2]=0;J[b+44>>2]=0;J[b+76>>2]=84;J[b+60>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+72>>2]=0;J[a+4>>2]=b;a=Hi(48034);a:{if(!a)break a;H[c+11|0]=120;J[c>>2]=c+12;J[c+4>>2]=c+11;if((Og(a,48074,c)| -0)<=0)break a;a=J[c+12>>2];J[b+44>>2]=P((K[c+11|0]&223)==77?P(a,1E3):a,1E3)}bc=c+16|0}function BHa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;J[e+12>>2]=c;a:{b:{if(b){if(!a)break b;if(!d)break a;c:{if(!(!XW(a,0,b,e+12|0,d)|J[e+12>>2])){if(J[a+8>>2]==16)b=J[a+156>>2]+P(J[a+192>>2],5644)|0;else b=J[a+12>>2];f=1;if(M[J[a+72>>2]+16>>2]<2)break c;b=J[b+5584>>2];g=b+28|0;c=1;d=b;while(1){J[d+1104>>2]=J[b+24>>2];J[d+1884>>2]=J[b+804>>2];tc(d+1108|0,g,776);d=d+1080|0;c=c+1|0;if(c>>>0< -M[J[a+72>>2]+16>>2])continue;break}break c}Hc(d,1,2354894,0)}bc=e+16|0;return f|0}fa(2353829,2346358,3039,2354877);B()}fa(2346477,2346358,3040,2354877);B()}fa(2346590,2346358,3041,2354877);B()}function jf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=c+4|0;a:{b:{f=J[a+4>>2];c:{if(!f){d=e>>>0<=1E3?1E3:e;J[a+8>>2]=d;d=zc(d);J[a+16>>2]=0;J[a+4>>2]=d;break c}d=J[a+8>>2];e=e+J[a+16>>2]|0;if(d>>>0>=e>>>0)break b;while(1){d=d<<1;if(e>>>0>d>>>0)continue;break}J[a+8>>2]=d;d=Vd(f,d);if(d){J[a+4>>2]=d;d=d+J[a+ -16>>2]|0;break c}d=zc(J[a+8>>2]);e=J[a+4>>2];d=tc(d,e,J[a+16>>2]);qc(e);J[a+4>>2]=d;d=d+J[a+16>>2]|0}J[a+12>>2]=d;break a}d=J[a+12>>2]}H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;d=J[a+12>>2]+4|0;J[a+12>>2]=d;J[a+16>>2]=J[a+16>>2]+4;tc(d,b,c);J[a+12>>2]=J[a+12>>2]+c;J[a+16>>2]=J[a+16>>2]+c}function M4a(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;var h=0,i=0,j=0,k=0,l=0;d=J[a+472>>2];i=J[d+92>>2];h=J[a+316>>2];if((i|0)>=(h|0)){if(J[a+36>>2]>0){l=d+12|0;h=J[a+216>>2];i=0;while(1){j= -i<<2;k=j+d|0;gc[J[k+52>>2]](a,h,J[b+j>>2]+(P(J[k+100>>2],J[c>>2])<<2)|0,j+l|0);h=h+88|0;i=i+1|0;if((i|0)>2])continue;break}h=J[a+316>>2]}J[d+92>>2]=0;i=0}b=h-i|0;h=J[d+96>>2];b=b>>>0>>0?b:h;h=g;g=J[f>>2];h=h-g|0;b=b>>>0>>0?b:h;gc[J[J[a+476>>2]+4>>2]](a,d+12|0,i,(g<<2)+e|0,b);J[f>>2]=b+J[f>>2];J[d+96>>2]=J[d+96>>2]-b;b=b+J[d+92>>2]|0;J[d+92>>2]=b;if((b|0)>=J[a+316>>2])J[c>>2]=J[c>>2]+1}function Keb(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;h= -3;g=b+2|0;a:{if(g>>>0>c>>>0)break a;i=c;c=K[b+1|0]|K[b|0]<<8;if(i>>>0<(c<<2)+g>>>0)break a;b=J[a+12>>2];i=K[b+14|0];j=L[b+12>>1];k=L[b+10>>1];l=K[b+8|0];m=L[b+6>>1];n=L[b+4>>1];b:{if(!c){h=0;break b}f=f+1|0;b=0;while(1){h=x4(a,K[g+1|0]|K[g|0]<<8,H[g+2|0]+d|0,H[g+3|0]+e|0,f,0);if(!h){g=g+4|0;b=b+1|0;if((c|0)!=(b|0))continue}break}b=J[a+12>>2]}I[b+14>>1]=i;I[b+8>>1]=l;I[b+12>>1]=j<<24>>24;I[b+10>>1]=k<<24>>24;I[b+6>>1]=m<<24>>24;I[b+4>>1]=n<<24>>24;a=J[a+8>>2];I[b+2>>1]=K[a+4|0];I[b>>1]=K[a|0]}return h| -0}function C1a(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;a:{if(!a)break a;if(!J[689389]){J[c+4>>2]=0;J[c+8>>2]=0;J[c+28>>2]=-1;J[c+20>>2]=0;J[c+24>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[689389]=1}b:{c:{if(J[b>>2]>0)break c;d:{if(J[689387]==2)break d;if(!$B(2757548))break d;d=o1(3,b);J[689386]=d;a=J[b>>2];if((a|0)<=0){J[d+20>>2]=2883;Lt(16,2884);a=J[b>>2]}J[689388]=a;J[689387]=2;a=J[689386];break b}a=J[689388];if((a|0)<=0)break c;J[b>>2]=a}a=J[689386]}if(J[b>>2]>0)break a;a=yK(a,731299);if(!a|!J[a+4>> -2]|J[b>>2]>0)break a;J[695492]=0;a=J[695492];J[695492]=0;if((a|0)!=1)break a;ea(0)|0;yc();B()}bc=c+32|0}function Bw(a,b){var c=0,d=0,e=0;c=-1;a:{if(!a|(b|0)>4)break a;while(1){e=J[a+4>>2];if(!(e>>>0>8|!(1<>1];if((d|0)!=65535)return d;b:{c:{d:switch(e-1|0){case 0:c=J[a+12>>2];if(!c)break c;c=Bw(c,b+1|0);break b;case 2:break d;default:break c}c=J[a+52>>2];if(c)break b}c=J[a+24>>2];if(c){c=Bw(c,b+1|0);break b}a=J[a+28>>2];if(!a)return d;c=Bw(a,b+1|0)}if((c|0)==65535)return d;if((c| -0)!=-1)break a;return d}d=J[a+28>>2];e:{f:{if(!d)break f;e=J[d+4>>2];if(e>>>0>8)break f;if(1<>2];if(!d|J[d+4>>2]!=1)break a}a=d;b=b+1|0;if((b|0)!=5)continue;break}}return c}function ow(a,b){var c=0,d=0,e=0;e=bc-16|0;bc=e;a:{if(!a)break a;b:{c=J[a+56>>2];d=J[a+60>>2];if((c|0)>=(d|0)){c=gc[J[659452]](J[a+64>>2],d<<3)|0;if(!c)break b;J[a+64>>2]=c;J[a+60>>2]=J[a+60>>2]<<1;c=J[a+56>>2]}d=J[659585];if(!(K[a+362|0]&8|d>>>0>=c>>>0)){if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]= -1;J[e>>2]=d;Cc(0,0,0,a,0,1,1,3,0,0,0,d,33151,e);J[a+12>>2]=0}J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(!b)break a;c=J[b+40>>2];if(c){gc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39181;J[b+16>>2]=39181;break a}J[J[a+64>>2]+(c<<2)>>2]=b;J[a+56>>2]=c+1;J[a+52>>2]=b;break a}ke(a,0)}bc=e+16|0}function l6(a,b,c,d){var e=0,f=0,g=0,h=0;a:{e=d>>31;f=(e^d)-e|0;e=a>>31;if((f+((e^a)-e|0)|0)>131071)break a;e=c>>31;f=(e^c)-e|0;e=b>>31;if((f+((e^b)-e|0)|0)>131071)break a;a=P(a,d);b=P(b,c);return(a| -0)>(b|0)?1:(a|0)<(b|0)?-1:0}f=d>>>16|0;g=P(f,a&65535);h=a>>>16|0;e=g+P(h,d&65535)|0;a=P(a,d);e=(((e>>>16|0)+P(h,f)|0)+((e>>>0>>0)<<16)|0)+(a>>>0>>0)|0;f=c>>>16|0;g=P(f,b&65535);h=b>>>16|0;d=g+P(h,c&65535)|0;b=P(b,c);c=(((d>>>16|0)+P(h,f)|0)+((d>>>0>>0)<<16)|0)+(b>>>0>>0)|0;d=1;b:{if(e>>>0>c>>>0)break b;d=-1;if(c>>>0>e>>>0)break b;d=1;if(a>>>0>b>>>0)break b;d=a>>>0>>0?-1:0}return d}function a8(a,b,c,d,e,f,g,h){a:{if(b>>>0>c>>>0)break a;b:switch(d|0){case 0:while(1){d=b&65535; -c:{if(d){d=$g(a,d);break c}d=J[a+528>>2]}if(d){J[d+60>>2]=h;J[d+56>>2]=g;J[d+52>>2]=f;J[d+48>>2]=e;H[d+44|0]=1}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}break a;case 1:while(1){d=b&65535;d:{if(d){d=$g(a,d);break d}d=J[a+528>>2]}if(d){H[d+44|0]=1;J[d+48>>2]=J[d+48>>2]+e;J[d+52>>2]=J[d+52>>2]+f;J[d+56>>2]=J[d+56>>2]+g;J[d+60>>2]=J[d+60>>2]+h}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}break a;default:break b}while(1){d=b&65535;if(d)$g(a,d);b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}}return 0} -function vU(a,b){var c=0,d=0,e=0;d=bc+-64|0;bc=d;c=J[a+276>>2];if(!(c&4)){a:{if((b|0)==(c|0))break a;b:{c:{if(!c)break c;c=go(a+212|0);J[a+276>>2]=0;if(!c)break c;e=63879;break b}d:{e:switch(b-1|0){case 0:e=64909;c=Kw(a+212|0,J[a+280>>2],J[a+284>>2],J[a+288>>2],J[a+292>>2],J[a+296>>2],63971);break d;default:Ad(a,65035);B();case 1:break e}e=63978;c=Kw(a+212|0,J[a+300>>2],J[a+304>>2],J[a+308>>2],J[a+312>>2],J[a+316>>2],63971)}if(!c)break a}e=Mq(d,64,Mq(d,64,0,65146),e);b=c+6|0;if(b>>>0<=4)b=J[(b<<2)+ -69012>>2];else b=65406;Mq(d,64,e,b);Ad(a,d);B()}J[a+276>>2]=b|4;bc=d- -64|0;return}Ad(a,65512);B()}function c_(a,b){var c=0,d=0,e=0,f=0;c=bc-80|0;bc=c;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;a:{if(J[Bc(J[b+8>>2],796762,c- -64|0,0)>>2]==6){b=J[c+72>>2];if(J[b+12>>2]<=0)break a;while(1){e=b;b=c+48|0;if(J[Mc(e,d,b,0)>>2]==7)c_(a,b);uc(c+48|0);d=d+1|0;b=J[c+72>>2];if((d|0)>2])continue;break}break a}b:{if(J[Bc(J[b+8>>2],780419,c+32|0,0)>>2]!=6)break b;d=J[c+40>>2];if(J[d+ -12>>2]<2)break b;b=0;e=1;while(1){f=b;b=c+16|0;Mc(d,f,b,0);Mc(J[c+40>>2],e,c,0);XZ(a,c,b);uc(b);uc(c);b=e;e=b+1|0;d=J[c+40>>2];if((e|0)>2])continue;break}}uc(c+32|0)}uc(c- -64|0);bc=c+80|0}function GO(a){var b=0;b=J[a+268>>2];if(b)qc(b);b=J[a+280>>2];if(b)qc(b);b=J[a+292>>2];if(b)qc(b);b=J[a+304>>2];if(b)qc(b);b=J[a+316>>2];if(b)qc(b);b=J[a+328>>2];if(b)qc(b);b=J[a+340>>2];if(b)qc(b);b=J[a+352>>2];if(b)qc(b);b=J[a+364>>2];if(b)qc(b);b=J[a+376>>2];if(b)qc(b);b=J[a+388>>2];if(b)qc(b);b=J[a+ -400>>2];if(b)qc(b);b=J[a+412>>2];if(b)qc(b);b=J[a+424>>2];if(b)qc(b);b=J[a+436>>2];if(b)qc(b);b=J[a+448>>2];if(b)qc(b);b=J[a+460>>2];if(b)qc(b);b=J[a+472>>2];if(b)qc(b);b=J[a+484>>2];if(b)qc(b);b=J[a+496>>2];if(b)qc(b);a:{if(!K[a+512|0])break a;b=J[a>>2];if(!b)break a;qc(b)}return a}function DS(a){var b=0,c=0,d=0,e=0;a:{if(!J[a+8>>2])break a;d=J[a+4>>2];c=J[d>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){c=d;d=J[c+4>>2];b=J[c+12>>2];b:{if(!b)break b;e=J[b+ -4>>2];J[b+4>>2]=e-1;if(e)break b;gc[J[J[b>>2]+8>>2]](b);Vc(b)}qc(c);if((a|0)!=(d|0))continue;break}if(!J[a+8>>2])break a;d=J[a+4>>2];c=J[d>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){c=d;d=J[c+4>>2];b=J[c+12>>2];c:{if(!b)break c;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break c;gc[J[J[b>>2]+8>>2]](b);Vc(b)}qc(c);if((a|0)!=(d|0))continue;break}}}function j5a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((e| -0)<=0)break a;i=J[a+112>>2];if(!i)break a;g=J[a+332>>2];a=J[a+476>>2];k=J[a+20>>2];l=J[a+16>>2];m=J[a+12>>2];n=J[a+8>>2];while(1){o=c+1|0;p=e-1|0;a=c<<2;q=J[a+J[b+8>>2]>>2];r=J[a+J[b+4>>2]>>2];s=J[a+J[b>>2]>>2];c=J[d>>2];a=0;while(1){f=K[a+r|0];h=K[a+s|0];j=K[a+q|0]<<2;H[c|0]=K[h+(J[j+n>>2]+g|0)|0];f=f<<2;H[c+1|0]=K[((J[l+j>>2]+J[f+k>>2]>>16)+g|0)+h|0];H[c+2|0]=K[(J[f+m>>2]+g|0)+h|0];c=c+3|0;a=a+1|0;if((i|0)!=(a|0))continue;break}d=d+4|0;a=(e|0)>1;e=p;c=o;if(a)continue;break}}}function VNa(a,b){a= -a|0;b=b|0;var c=0,d=0;J[a+4>>2]=b;J[a>>2]=2331012;J[a>>2]=2305984;J[695492]=0;b=$(4,16)|0;c=J[695492];J[695492]=0;a:{b:{if((c|0)!=1){c=J[a+4>>2];J[695492]=0;c=ga(3448,b|0,c|0,3)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a+96>>2]=0;J[a+76>>2]=0;J[a+8>>2]=c;J[a+12>>2]=0;J[a+16>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>> -2]=0;J[a+212>>2]=0;J[a+216>>2]=0;return a|0}a=Z()|0;break a}a=Z()|0;qc(b)}ba(a|0);B()}function Pda(a){a=a|0;if(K[2782344])return J[695585];if(!K[2783440])H[2783440]=1;rf(2783152,2624200);rf(2783164,2624232);rf(2783176,2624268);rf(2783188,2624292);rf(2783200,2624316);rf(2783212,2624332);rf(2783224,2624352);rf(2783236,2624372);rf(2783248,2624400);rf(2783260,2624440);rf(2783272,2624472);rf(2783284,2624508);rf(2783296,2624544);rf(2783308,2624560);rf(2783320,2624576);rf(2783332,2624592);rf(2783344,2624316); -rf(2783356,2624608);rf(2783368,2624624);rf(2783380,2624640);rf(2783392,2624656);rf(2783404,2624672);rf(2783416,2624688);rf(2783428,2624704);H[2782344]=1;J[695585]=2783152;return 2783152}function Mka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=O[a+208>>3];f=O[b+208>>3];h=e>f;a:{if(h){c=1;if(O[a+216>>3]>3])break a}b:{if(!(e>3];g=O[b+216>>3];c=2;if(d>g)break a;if(!(d=f)break a}c:{if(!h)break c;d=O[b+216>>3];if(!(d>3]))break c; -c=4;if(R(e-d)<.01|d>=e)break a}if(!(e!=f|O[a+216>>3]!=O[b+216>>3]|O[a+32>>3]!=O[b+32>>3])){c=5;if(O[a+40>>3]==O[b+40>>3])break a}g=O[a+216>>3];i=O[b+216>>3];d=R(g-i);if(R(e-f)<.01){c=6;if(d<.01)break a;return 7}c=8;if(d<.01)break a;c=9;if(f>g)break a;c=e>i?10:0}return c|0}function INa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=2307368;a:{b:{c:switch(J[b>>2]-3|0){case 1:c=rc(8);b=J[b+8>>2];J[695492]=0;b=aa(3182,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+8>>2]=b;return a| -0;case 0:b=J[b+8>>2];c=rc(8);J[695492]=0;b=aa(3183,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+8>>2]=b;return a|0;case 3:c=rc(72);b=J[b+8>>2];J[695492]=0;b=aa(3375,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+4>>2]=b;if(J[b+68>>2])break b;qc(b);J[a+4>>2]=0;return a|0}break a;default:break c}xc(0,-1,803942,0)}return a|0}a=Z()|0;qc(c);ba(a|0);B()}function Qga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=bc-144|0;bc=f;J[f+136>>2]=37;J[f+140>>2]=0;h=f+136|0;Po(h| -1,10125,1,J[c+4>>2]);g=Wg();J[f>>2]=e;a=f+123|0;e=ni(a,13,g,h,f)+a|0;i=Kj(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[695492]=0;g=f+16|0;ua(6667,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=$r(b,g,J[f+12>>2],J[f+8>>2],c,d);bc=f+144|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function Mga(a,b,c,d,e){a=a|0; -b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=bc-144|0;bc=f;J[f+136>>2]=37;J[f+140>>2]=0;h=f+136|0;Po(h|1,10125,0,J[c+4>>2]);g=Wg();J[f>>2]=e;a=f+123|0;e=ni(a,13,g,h,f)+a|0;i=Kj(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[695492]=0;g=f+16|0;ua(6667,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=$r(b,g,J[f+12>>2],J[f+8>>2],c,d);bc=f+144|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]- -1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function rza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{e=J[b+156>>2];b:{if(e)while(1){d=0;f=J[e+8>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;d=J[e+8>>2]}J[a>>2]=d;if(J[d+8>>2]==J[J[c>>2]+8>>2])break b;J[a>>2]=0;J[695492]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[695492];J[695492]=0;if((g|0)==1)break a;if(!f){J[695492]=0;_(4987,d|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}e=J[e>>2];if(e)continue;break}d=rc(12);J[d>>2]=0;J[d+4>>2]=0; -e=J[c>>2];if(e){J[e+4>>2]=J[e+4>>2]+1;g=J[c>>2]}else g=0;J[d+8>>2]=g;of(b+148|0,d);b=J[c>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;b=J[c>>2]}else b=0;J[a>>2]=b}return}ea(0)|0;yc();B()}function ika(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=O[a+96>>3];f=O[b+96>>3];h=e>f;a:{if(h){c=1;if(O[a+104>>3]>3])break a}b:{if(!(e>3];g=O[b+104>>3];c=2;if(d>g)break a;if(!(d=f)break a}c:{if(!h)break c;d=O[b+104>>3];if(!(d>3]))break c;c=4;if(R(e- -d)<.01|d>=e)break a}if(!(e!=f|O[a+104>>3]!=O[b+104>>3]|O[a+32>>3]!=O[b+32>>3])){c=5;if(O[a+40>>3]==O[b+40>>3])break a}g=O[a+104>>3];i=O[b+104>>3];d=R(g-i);if(R(e-f)<.01){c=6;if(d<.01)break a;return 7}c=8;if(d<.01)break a;c=9;if(f>g)break a;c=e>i?10:0}return c|0}function Vq(a,b){var c=0,d=0,e=0;c=bc-16|0;bc=c;H[c+8|0]=0;a:{if(a){d=Yd(c+8|0,1,2,a);e=K[c+8|0]|K[c+9|0]<<8;I[b>>1]=(d|0)!=2?-1:e<<8|e>>>8;H[c+10|0]=0;d=Yd(c+10|0,1,2,a);e=K[c+10|0]|K[c+11|0]<<8;I[b+2>>1]=(d|0)!=2?-1:e<<8|e>>>8;H[c+12|0]= -0;d=Yd(c+12|0,1,2,a);e=K[c+12|0]|K[c+13|0]<<8;I[b+4>>1]=(d|0)!=2?-1:e<<8|e>>>8;H[c+14|0]=0;d=65535;if((Yd(c+14|0,1,2,a)|0)!=2)break a;d=K[c+14|0]|K[c+15|0]<<8;d=d<<8|d>>>8;break a}I[b+4>>1]=65535;I[b>>1]=65535;I[b+2>>1]=65535;d=65535}I[b+6>>1]=d;d=0;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];if(!(a>>>4&1|I[b+4>>1]>1]))d=I[b+6>>1]>=I[b+2>>1];bc=c+16|0;return d}function P4a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+8>>2];f=a+12|0;if((c|0)!=(f|0)){g=b+4|0;while(1){d=J[c+28>>2];a:{if((xi(b,c+ -16|0)|0)!=(g|0)){if(d)gc[J[J[d>>2]+12>>2]](d)|0;d=c;e=J[c+4>>2];b:{if(e)while(1){d=e;e=J[d>>2];if(e)continue;break b}while(1){e=d;d=J[d+8>>2];if((e|0)!=J[d>>2])continue;break}}if(J[a+8>>2]==(c|0))J[a+8>>2]=d;J[a+16>>2]=J[a+16>>2]-1;BC(J[a+12>>2],c);if(H[c+27|0]<0)qc(J[c+16>>2]);qc(c);c=d;break a}e=c;d=J[c+4>>2];if(d)while(1){c=d;d=J[c>>2];if(d)continue;break a}while(1){c=J[e+8>>2];d=J[c>>2]!=(e|0);e=c;if(d)continue;break}}if((c|0)!=(f|0))continue;break}}}function ODa(a){a=a|0;var b=0,c=0,d=0,e=0, -f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;h=a,i=Lc(J[a+20>>2]-12|0),J[h+20>>2]=i;a:{b:{b=J[a+28>>2];c:{if(!b)break c;J[d+4>>2]=64;c=d+4|0;gc[J[J[b>>2]+308>>2]](b,c)|0;b=J[a+28>>2];J[d+4>>2]=64;gc[J[J[b>>2]+312>>2]](b,c)|0;b=J[a+20>>2]-J[a+16>>2]|0;if((b|0)<=0)break c;e=a+16|0;b=(b>>>0)/12|0;f=b>>>0<=1?1:b;b=0;while(1){c=J[a+16>>2];if((J[a+20>>2]-c|0)/12>>>0<=b>>>0)break b;c=Vl(d+4|0,c+P(b,12)|0);J[695492]=0;da(4979,a|0,c|0);g=J[695492];J[695492]=0;if((g|0)==1)break a;Lc(c);b=b+1|0;if((f|0)!=(b|0))continue;break}}bc= -d+16|0;return}nD(e);B()}a=Z()|0;Lc(c);ba(a|0);B()}function $ob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;if(K[b+33|0])return ue(a,J[b>>2],J[b+304>>2],b+308|0)|0;d=J[a+428>>2];f=d+8|0;a:{b:{c:switch(K[b+34|0]){case 2:c=L[b+298>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+300>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;c=b+302|0;g=13;e=6;h=d+12|0;break b;case 3:d=J[b+36>>2];if(!d)break a;c=f;while(1){H[c|0]=K[(b+e|0)+40|0];c=c+1|0;e=e+1|0;if(e>>>0>2])continue;break}e=d;break a;case 0:break c;default:break a}c=b+296|0;g=9;e=2;h=f}c=L[c>>1];H[h|0]=c>>>8;H[d+g|0]=c}return ue(a,J[b>>2],e,f)|0}function $0(a){a=a|0;var b=0,c=0;a:{c=J[a+8>>2];if(!c)break a;b=J[c>>2];if(b)Je(b);b=J[c+4>>2];if(b)Je(b);b=J[c+8>>2];if(b)Je(b);b=J[c+12>>2];if(b)Je(b);b=J[c+16>>2];if(b)Je(b);b=J[c+20>>2];if(b)Je(b);b=J[c+24>>2];if(b)Je(b);b=J[c+28>>2];if(b)Je(b);b=J[c+32>>2];if(b)Je(b);b=J[c+36>>2];if(b)Je(b);b=J[c+40>>2];if(b)Je(b);b=J[c+44>>2];if(b)Je(b);b=J[c+48>> -2];if(b)Je(b);b=J[c+52>>2];if(b)Je(b);b=J[c+56>>2];if(b)Je(b);b=J[c+60>>2];if(b)Je(b);b=J[c+64>>2];if(b)Je(b);b=J[c+68>>2];if(b)Je(b);b=J[c+72>>2];if(b)Je(b);c=J[c+76>>2];if(c)Je(c);if(K[a+34|0])break a;Gf(J[a+8>>2]);J[a+8>>2]=0}}function $Ta(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;a:{if(c-5>>>0<4294967292|(b|0)>2147482623|(b|c)<0)break a;e=J[a+1032>>2];if(!((e|0)<=(b|0)&(b+c|0)<=(e+J[a+1036>>2]|0))){if(Xg(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;e=Yd(a+8|0,1,1024,J[a+4>>2]);J[a+ -1036>>2]=e;if((c|0)>(e|0))break a}J[d>>2]=0;h=1;i=c&1;e=0;if((c|0)!=1){j=c&-2;c=0;while(1){g=a+8|0;c=K[g+((b+e|0)-J[a+1032>>2]|0)|0]|c<<8;J[d>>2]=c;c=K[(((e|1)+b|0)-J[a+1032>>2]|0)+g|0]|c<<8;J[d>>2]=c;e=e+2|0;f=f+2|0;if((j|0)!=(f|0))continue;break}f=c<<8}if(!i)break a;J[d>>2]=K[(((b+e|0)-J[a+1032>>2]|0)+a|0)+8|0]|f}return h|0}function bha(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=bc+-64|0;bc=f;J[f+56>>2]=37;J[f+60>>2]=0;h=f+56|0;Po(h|1,10125,1,J[c+4>>2]);g=Wg();J[f>>2]=e;a=f+ -43|0;e=ni(a,13,g,h,f)+a|0;i=Kj(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[695492]=0;g=f+16|0;ua(6655,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=as(b,g,J[f+12>>2],J[f+8>>2],c,d);bc=f- -64|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function Zga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i= -0;f=bc+-64|0;bc=f;J[f+56>>2]=37;J[f+60>>2]=0;h=f+56|0;Po(h|1,10125,0,J[c+4>>2]);g=Wg();J[f>>2]=e;a=f+43|0;e=ni(a,13,g,h,f)+a|0;i=Kj(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[695492]=0;g=f+16|0;ua(6655,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)gc[J[J[a>>2]+8>>2]](a);a=as(b,g,J[f+12>>2],J[f+8>>2],c,d);bc=f- -64|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>> -2]](a);ba(c|0);B()}return a|0}function OX(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;J[a>>2]=2335752;f=J[a+4>>2];J[695492]=0;da(3439,f|0,e+12|0);c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(f,e+12|0,e+8|0,e+4|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;if(c){c=J[e+4>>2];if(!c)continue;b=J[c>>2];if(b)qc(Rc(b));b=J[c+4>>2];if(b)qc(Rc(b));b=J[c+8>>2];if(b)qc(Rc(b));b=J[c+12>>2];if(b)qc(b);b=J[c+16>>2];if(b){d=J[b+4>>2];if(d)qc(Rc(d));qc(b)}b=J[c+20>>2];if(b){d=J[b>> -2];if(d)qc(Rc(d));d=J[b+40>>2];if(d)qc(Rc(d));qc(b)}qc(c);continue}break}qc(Fh(f));bc=e+16|0;return a|0}ea(0)|0;yc();B()}function BKa(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{if(J[a+12>>2]?J[a+8>>2]:1){b=-1;d=J[a+3504>>2];if((d|0)>=J[a+20>>2])break b;c=J[a+3496>>2];e=J[a+3500>>2];b=J[(J[((c<<2)+a|0)+3480>>2]+(P(d,J[a+32>>2])<<2)|0)+(e<<2)>>2];c=c+1|0;J[a+3496>>2]=c;if((c|0)!=J[a+188>>2])break b;J[a+3496>>2]=0;c=e+1|0;J[a+3500>>2]=c;if((c|0)!=J[a+16>>2])break b;J[a+3500>>2]=0;J[a+3504>>2]=d+1;return b|0}b= -J[a+3472>>2];if((b|0)==J[a+3476>>2]){b=-1;d=J[a+28>>2]+J[a+3504>>2]|0;if((d|0)>=J[a+20>>2])break b;J[a+3504>>2]=d;if(!MH(a))break a;b=J[a+3472>>2]}J[a+3472>>2]=b+1;b=K[b|0]}return b|0}J[a+3504>>2]=J[a+20>>2];return-1}function s4(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(H[a+741|0]&1){g=J[a+736>>2];d=J[g+56>>2];b=L[d>>1];if(b){c=J[d+24>>2];h=c+P(b,12)|0;while(1){b=h4(a,J[c>>2]);d=rL(a,J[g+56>>2]+4|0,L[c+4>>1],L[c+6>>1]);a:{if(!b)break a;I[b>>1]=d+L[c+8>>1];b=J[c>>2];if((b|0)==1751216995){e=d; -break a}if((b|0)!=1751934832){if((b|0)!=1751413603)break a;f=d;break a}i=d}c=c+12|0;if(h>>>0>c>>>0)continue;break}}d=L[a+72>>1];f=d+f|0;I[a+72>>1]=f;b=e;e=L[a+70>>1];c=b+e|0;I[a+70>>1]=c;b=I[a+486>>1];I[a+82>>1]=b;I[a+80>>1]=L[a+484>>1]+((b|0)/-2|0);I[a+74>>1]=(c+(d+((L[a+74>>1]+i|0)-e|0)|0)|0)-f;L5(a+108|0,1721)}}function rCa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;Uz(a);a:{if(!Pj(b))break a;f=Tk(b);e=J[J[a+12>>2]+((f>>>0)%M[a+8>>2]<<2)>>2];if(!e)break a;while(1){b:{if((f|0)== -J[e+12>>2])if(Pl(e+16|0,b))break b;e=J[e+8>>2];if(e)continue;break a}break}J[d+12>>2]=a;J[d+8>>2]=e;J[d>>2]=0;J[d+4>>2]=0;f=e+52|0;b=0;while(1){c:{d:{e:{if(b){if((f|0)==J[d+4>>2])break e;aj(d,f);B()}b=J[e+60>>2];if(!b)break d}g=J[c>>2];while(1){if(J[b+8>>2]==(g|0))break c;b=J[b>>2];if(b)continue;break}}if(J[e+56>>2])break a;$o(a,d+8|0);break a}J[d+4>>2]=f;J[d>>2]=b;Kn(f,d);b=J[d>>2];continue}}bc=d+16|0}function c$(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b=J[a+352>>2];if(!b)break a;e=a;b:{if(!b| -!J[b>>2])break b;c=J[b+4>>2];if((c|0)<=0)break b;while(1){h=P(g,24);d=J[b>>2];a=h+d|0;if(!(!J[a+20>>2]|!d)){d=J[b+8>>2];while(1){f=d;c=J[a>>2];i=J[a+16>>2];if(i){b$(i,e,J[a+4>>2],J[a+8>>2],J[a+12>>2]);d=J[b+8>>2]}c:{d:{if((d|0)==(f|0)){a=c;break d}f=J[b>>2]+h|0;if((f|0)!=(a|0)){a=c;break d}if((c|0)!=J[a>>2])break d;if(!J[f+20>>2])break c}if(a)continue}break}c=J[b+4>>2]}g=g+1|0;if((g|0)<(c|0))continue;break}}a=J[e+352>>2];if(a)a=J[a+8>>2];else a=-1;if(a)break a;fo(J[e+352>>2],0);J[e+352>>2]=0}}function YQa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if((d|0)<=0)break a;_f(c);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];if(!J[a+100>>2])break a;b=J[J[a+28>>2]+120>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==10){mt(a);break a}b=J[a+8>>2];gc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>> -2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}}function Dc(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;if(!a)return 1;J[a+144>>2]=d;J[a+140>>2]=c;J[a+132>>2]=b;g=44;e=88;a:{b:{while(1){h=J[(g<<3)+215008>>2];c:{if((h|0)<(b|0)){f=g+1|0;break c}if((b|0)>=(h|0))break b;e=g-1|0}g=e+f>>1;if((e|0)>=(f|0))continue;break}g=212788;break a}g=J[(g<<3)+215012>>2]}J[a+148>>2]=g;f=0;d:{if(!b)break d;e:{e=b&15360;if((e|0)!=8192){if((e|0)!=4096){if((e|0)!=2048)break e;f=5; -break d}f=2;break d}f=1;break d}f=9}H[a+136|0]=f;e=1;f:{if(J[a>>2]!=1381173770)break f;h=J[a+180>>2];if(!h)break f;e=gc[h|0](a,b,f,J[a+268>>2],J[a+272>>2],c,d,g)|0}return e|0}function sl(a,b){var c=0,d=0,e=0;a:{d=K[b|0];if((d|0)!=255){if((d|0)!=30)break a;return dD(a,b,0,0)>>16}return((K[b+3|0]|(K[b+2|0]<<8|K[b+1|0]<<16))<<8)+32768>>16}e=b+1|0;b:{c:switch(d-28|0){case 0:c=0;if(M[a+8>>2]<=b+2>>>0)break b;return(K[b+2|0]|K[e|0]<<8)<<16>>16;case 1:c=0;if(M[a+8>>2]<=b+4>>>0)break b;a=K[b+1|0]|K[b+2|0]<< -8|(K[b+3|0]<<16|K[b+4|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);default:break c}if(d>>>0<=246)return d-139|0;a=J[a+8>>2];if(d>>>0<=250){c=0;if(a>>>0<=e>>>0)break b;return(K[e|0]|d<<8)-63124|0}c=0;if(a>>>0<=e>>>0)break b;c=64148-(K[e|0]|d<<8)|0}return c}function mF(a,b,c,d,e){var f=0,g=0,h=0,i=0;f=bc-208|0;bc=f;J[f+204>>2]=c;c=f+160|0;wc(c,0,40);J[f+200>>2]=J[f+204>>2];a:{if((jR(0,b,f+200|0,f+80|0,c,d,e)|0)<0){e=-1;break a}i=J[a+76>>2]<0;g=J[a>>2];J[a>>2]=g&-33;b:{c:{d:{if(!J[a+48>>2]){J[a+ -48>>2]=80;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;h=J[a+44>>2];J[a+44>>2]=f;break d}if(J[a+16>>2])break c}c=-1;if(CF(a))break b}c=jR(a,b,f+200|0,f+80|0,f+160|0,d,e)}if(h){gc[J[a+36>>2]](a,0,0)|0;J[a+48>>2]=0;J[a+44>>2]=h;J[a+28>>2]=0;b=J[a+20>>2];J[a+16>>2]=0;J[a+20>>2]=0;c=b?c:-1}b=a;a=J[a>>2];J[b>>2]=a|g&32;e=a&32?-1:c;if(i)break a}bc=f+208|0;return e}function XNa(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;if((c|0)<=0)return 0;d=J[a+64>>2]-J[a+60>>2]|0;f=(c|0)>(d|0)?d:c;a:{if((d|0)<=0)break a; -d=(f|0)<=1?1:f;g=d&3;c=0;if(d>>>0>=4){i=d&2147483644;d=0;while(1){e=J[a+60>>2];J[a+60>>2]=e+1;H[b+c|0]=K[e|0]^-1;e=J[a+60>>2];J[a+60>>2]=e+1;H[(c|1)+b|0]=K[e|0]^-1;e=J[a+60>>2];J[a+60>>2]=e+1;H[(c|2)+b|0]=K[e|0]^-1;e=J[a+60>>2];J[a+60>>2]=e+1;H[(c|3)+b|0]=K[e|0]^-1;c=c+4|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}if(!g)break a;while(1){d=J[a+60>>2];J[a+60>>2]=d+1;H[b+c|0]=K[d|0]^-1;c=c+1|0;h=h+1|0;if((h|0)!=(g|0))continue;break}}return f|0}function OXa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f= -0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{if((e|0)<=0)break a;k=J[a+28>>2];if(!k)break a;g=J[J[a+408>>2]+8>>2];while(1){l=e-1|0;a=d<<2;m=J[a+J[c+8>>2]>>2];n=J[a+J[c+4>>2]>>2];o=J[a+J[c>>2]>>2];a=J[b>>2];f=0;while(1){h=(K[a+2|0]<<2)+g|0;i=(K[a+1|0]<<2)+g|0;j=(K[a|0]<<2)+g|0;H[f+o|0]=J[h+2048>>2]+(J[i+1024>>2]+J[j>>2]|0)>>>16;H[f+n|0]=J[h+5120>>2]+(J[i+4096>>2]+J[j+3072>>2]|0)>>>16;H[f+m|0]=J[h+7168>>2]+(J[i+6144>>2]+J[j+5120>>2]|0)>>>16;a=a+3|0;f=f+1|0;if((k|0)!=(f|0))continue;break}d=d+1|0;b=b+4|0; -a=(e|0)>1;e=l;if(a)continue;break}}}function $fb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=J[a+16>>2];a=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(a){g=c+16|0;while(1){e=a+f>>>1|0;c=P(e,12)+g|0;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b:{if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>b>>>0){a=e;break b}d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>=b>>>0)break a;f=e+1|0}if(a>>> -0>f>>>0)continue;break}}return 0}a=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}function wh(a,b){var c=0,d=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;c:{if((d|0)<=0){if((Uc(a,b>>>8&255)|0)!=-1)break c;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b>>>8}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>> -2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)<=0){if((Uc(a,b&255)|0)!=-1)break d;break b}J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b}c=0}return c}J[a+8>>2]=d|4;return-1}function ova(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;a:{b:{c:{if(J[a+116>>2]<=0){e=J[a+120>>2];if((e|0)>=0)break c}a=Kc(d+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=J[a+104>>2];g=J[a+108>>2]; -b=J[f-(g<<2)>>2];c=1;a=J[a+92>>2];if((a|0)>1)while(1){if((c|0)>(e|0)){a=Kc(d+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}h=J[(c-g<<2)+f>>2];b=(b|0)>(h|0)?b:h;c=c+1|0;if((a|0)!=(c|0))continue;break}bc=d+32|0;return b+1|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function mva(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;a:{b:{c:{if(J[a+140>>2]<=0){e=J[a+144>>2];if((e|0)>=0)break c}a=Kc(d+8|0,2392484,2393512,632,2412752,0);J[695492]=0; -_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=J[a+128>>2];g=J[a+132>>2];b=J[f-(g<<2)>>2];c=1;a=J[a+92>>2];if((a|0)>1)while(1){if((c|0)>(e|0)){a=Kc(d+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}h=J[(c-g<<2)+f>>2];b=(b|0)>(h|0)?b:h;c=c+1|0;if((a|0)!=(c|0))continue;break}bc=d+32|0;return b+1|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function VN(a,b){var c=0,d=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0| -(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;c:{if((d|0)<=0){if((Uc(a,b&255)|0)!=-1)break c;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)<=0){if((Uc(a,b>>>8&255)|0)!=-1)break d;break b}J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b>>>8}c=0}return c}J[a+8>>2]=d|4;return-1} -function HKa(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;if((c|0)<=0)return 0;a:{while(1){i=J[a+68>>2];if((i|0)>=J[a+20>>2]){if(J[a+40>>2])break a;if(!QH(a))break a;i=J[a+68>>2]}e=J[a+72>>2];j=e&1?0:255;l=J[a+60>>2];d=J[l+(e<<2)>>2]-i|0;b:{if((d|0)>8){f=j;break b}m=J[a+20>>2];f=0;g=8;while(1){k=(d|0)<(g|0)?d:g;f=f<>>8-k;g=g-k|0;d=d-k|0;if(!d){d=(e<<2)+l|0;if(J[d>>2]>=(m|0)){f=f<>2]=e;d=J[(e<<2)+l>>2]-J[d>>2]|0;j=j^255}if((g|0)>0)continue;break}}J[a+ -68>>2]=i+8;H[b+h|0]=J[a+36>>2]^f;h=h+1|0;if((h|0)!=(c|0))continue;break}h=c}return h|0}function GZ(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2205020;b=J[a+1048>>2];c=0;a:{if(!b)break a;d=J[a+1044>>2];c=b;if((d|0)<=0)break a;while(1){b=J[J[a+1048>>2]+(e<<2)>>2];if(b){gc[J[J[b>>2]+4>>2]](b);d=J[a+1044>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}c=J[a+1048>>2]}b=c;J[695492]=0;Gc(b);b=J[695492];J[695492]=0;b:{if((b|0)==1)break b;b=J[a+1052>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break b;b= -J[a+1056>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break b;b=J[a+1060>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break b;return a|0}ea(0)|0;yc();B()}function yH(a){var b=0,c=0,d=0,e=0;a:{b:{c:{b=J[a+32>>2];c=J[a+36>>2];if(b>>>0>=c>>>0)break c;d:switch(K[b|0]-34|0){case 0:case 5:break d;default:break c}d=b+1|0;J[a+32>>2]=d;e=K[b|0];b=d;e:{if(c>>>0<=b>>>0)break e;while(1){if(K[b|0]==(e|0))break e;b=b+1|0;J[a+32>>2]=b;if((b|0)!=(c|0))continue;break}b=c}c=rc(8);J[695492]= -0;b=ga(3181,c|0,d|0,b-d|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;c=J[a+32>>2];if(c>>>0>=M[a+36>>2]|K[c|0]!=(e|0))break a;J[a+32>>2]=c+1;break a}c=rc(8);J[695492]=0;b=$(3184,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break a}a=Z()|0;qc(c);ba(a|0);B()}return b}function yF(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=2456736;h=K[a|0]?a:2456736;while(1){d=b;f=0;a=h;c=K[a|0];a:{b:{if(!c)break b;while(1){g=K[d|0];if(!g){f=c;break b}c:{d:{while(1){if((c|32)-124>>>0>4294967268|c-59>>>0>4294967284)break d; -c=K[a+1|0];e=a+1|0;a=e;if(c)continue;break}c=0;break c}e=a}a=1;if((c|32)!=(g|0))break a;d=d+1|0;a=e+1|0;c=K[e+1|0];if(c)continue;break}}a=K[d|0]!=(f&255)}if(!a){while(1){b=(Qc(b)+b|0)+1|0;if(K[b|0])continue;break}return b-2456735|0}b=(Qc(b)+b|0)+1|0;a=K[b|0];if(!a){a=K[b+1|0];b=((a>>>0<=128?P(64-a|0,5):0)+b|0)+2|0;a=K[b|0]}if(a&255)continue;break}return-1}function I4a(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];d=a+12|0;if((b|0)!=(d|0))while(1){c=J[b+28>>2];if(c)gc[J[J[c>>2]+12>>2]](c)|0;c=J[b+4>>2];a:{if(c)while(1){b= -c;c=J[b>>2];if(c)continue;break a}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}Rw(a+8|0,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0;b:{if(!J[a+32>>2]|J[a+36>>2]==-1)break b;b=J[a+28>>2];c=J[b>>2];d=J[J[a+24>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+32>>2]=0;c=a+24|0;if((c|0)==(b|0))break b;while(1){a=J[b+4>>2];if(H[b+19|0]<0)qc(J[b+8>>2]);qc(b);b=a;if((c|0)!=(b|0))continue;break}}}function pva(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;a:{b:{c:{if(J[a+ -116>>2]<=0){e=J[a+120>>2];if((e|0)>=0)break c}a=Kc(d+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=J[a+104>>2];g=J[a+108>>2];b=J[f-(g<<2)>>2];c=1;a=J[a+92>>2];if((a|0)>1)while(1){if((c|0)>(e|0)){a=Kc(d+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}h=J[(c-g<<2)+f>>2];b=(b|0)<(h|0)?b:h;c=c+1|0;if((a|0)!=(c|0))continue;break}bc=d+32|0;return b|0}B()}b=Z()|0;Fc(a);ba(b|0); -B()}function nva(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;a:{b:{c:{if(J[a+140>>2]<=0){e=J[a+144>>2];if((e|0)>=0)break c}a=Kc(d+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=J[a+128>>2];g=J[a+132>>2];b=J[f-(g<<2)>>2];c=1;a=J[a+92>>2];if((a|0)>1)while(1){if((c|0)>(e|0)){a=Kc(d+8|0,2392484,2393512,632,2412752,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}h=J[(c-g<<2)+f>>2];b=(b|0)<(h|0)? -b:h;c=c+1|0;if((a|0)!=(c|0))continue;break}bc=d+32|0;return b|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function ht(a){var b=0,c=0,d=0,e=0,f=0;c=J[a+36>>2];if(c){d=J[c+4>>2];b=J[d+8>>2];if((b|0)>0)while(1){f=J[J[d>>2]+(e<<2)>>2];if(f){b=J[f+8>>2];if(b)qc(dd(b));qc(f);b=J[d+8>>2]}e=e+1|0;if((b|0)>(e|0))continue;break}qc(dd(d));b=J[c+8>>2];if(b)qc(RH(b));qc(c)}e=J[a+32>>2];if(e){d=0;c=J[e>>2];if(c){b=J[c+8>>2];if((b|0)>0)while(1){f=J[J[c>>2]+(d<<2)>>2];if(f){qc(Kv(f));b=J[c+8>>2]}d=d+1|0;if((b|0)>(d|0))continue; -break}qc(dd(c))}qc(e)}b=J[a+28>>2];if(b)qc($Z(b));b=J[a+24>>2];if(b)qc(yA(b));b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+4>>2];if(b)fg(b);b=J[a>>2];if(b)qc(Rc(b));return a}function hZa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=bc-16|0;bc=g;a:{if(!a)break a;f=J[a+8>>2];if(!f)break a;e=J[f+12>>2];b:{c:{if(e)while(1){if(J[e+4>>2]==14)break c;e=J[e+24>>2];if(e)continue;break}e=J[f+44>>2];if(!e)break b}if(J[a+32>>2])break a;zj(e);fr(e);f=J[a+8>>2];J[f+44>>2]=0}b=h0(f,b,c,d);J[J[a+8>>2]+44>> -2]=b;if(b)break a;J[a+84>>2]=2;c=J[a>>2];b=0;d:{if(!c)break d;b=0;if(J[c+108>>2]!=-554844497)break d;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[g+4>>2]=0;J[g>>2]=30575;Cc(b,c,d,a,0,1,2,2,30575,0,0,0,3278,g);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2}bc=g+16|0}function RF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+4>>2];e=d+b|0;J[a+4>>2]=e;f=e-1|0;if(!((f^d-1)>>>0<32?d:0))J[J[a>>2]+((e>>>0>=33?f>>>5|0:0)<<2)>>2]=0;a:{if(!b)break a;e=d&31;a=J[a>>2]+(d>>>3&536870908)|0;if(c){if(e){c=32-e|0;d=b>>> -0>c>>>0?c:b;J[a>>2]=J[a>>2]|-1<>>c-d;b=b-d|0;a=a+4|0}c=b>>>5|0;if(b>>>0>=32)wc(a,255,c<<2);b=b&31;if(!b)break a;a=(c<<2)+a|0;J[a>>2]=J[a>>2]|-1>>>32-b;return}if(e){c=32-e|0;d=b>>>0>c>>>0?c:b;J[a>>2]=J[a>>2]&(-1<>>c-d^-1);b=b-d|0;a=a+4|0}c=b>>>5|0;if(b>>>0>=32)wc(a,0,c<<2);b=b&31;if(!b)break a;a=(c<<2)+a|0;J[a>>2]=J[a>>2]&(-1>>>32-b^-1)}}function Fl(a,b,c){var d=0,e=0,f=0,g=0;f=J[a+584>>2];g=J[f+64>>2];e=J[f+68>>2];a:{if(e>>>0>=c>>>0)break a;c=c-e|0;d=b>>>c|g;if(J[a+608>>2]>=J[a+600>>2])gf(a); -e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=d;d=J[a+608>>2]+1|0;J[a+608>>2]=d;g=0;e=8;if(c>>>0<9)break a;while(1){c=c-8|0;e=b>>>c|0;if(J[a+600>>2]<=(d|0))gf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=e;d=J[a+608>>2]+1|0;J[a+608>>2]=d;e=8;if(c>>>0>8)continue;break}}d=J[(c<<2)+95792>>2]&b;b=e-c|0;d=d<>2]>=J[a+600>>2])gf(a);b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=d;J[a+608>>2]=J[a+608>>2]+1;d=0;b=8}J[f+68>>2]=b;J[f+64>>2]=d}function yK(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=bc-32|0; -bc=c;J[c+20>>2]=b;d=J[a+4>>2];J[c+16>>2]=b;b=gc[d|0](c+16|0)|0;J[c+24>>2]=J[c+20>>2];g=b&2147483647;f=J[a+28>>2];h=(g^67108864)%(f|0)|0;b=h;e=-1;j=J[a>>2];a:{while(1){d=P(b,12)+j|0;i=J[d>>2];b:{if((i|0)==(g|0)){f=J[a+8>>2];J[c+12>>2]=J[c+24>>2];J[c+8>>2]=J[d+8>>2];d=b;if(gc[f|0](c+12|0,c+8|0)|0)break a;f=J[a+28>>2];break b}if((i|0)>=0)break b;e=(e|0)<0?b:e;d=e;if((i|0)==-2147483647)break a}if(!k)k=((g|0)%(f-1|0)|0)+1|0;b=(b+k|0)%(f|0)|0;if((h|0)!=(b|0))continue;break}d=(e|0)<0?h:e}bc=c+32|0;return J[(P(d, -12)+j|0)+4>>2]}function web(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{c:{a=J[J[a+156>>2]>>2];b=J[a+4>>2];if(!(!b|J[a+40>>2])){d=b<<1;if((d|0)<0){c=6;break b}if(d){c=10;if(d>>>0>268435455)break b;c=J[a>>2];b=b<<4;c=gc[J[c+4>>2]](c,b)|0;if(!c)break c;wc(c,0,b)}H[a+16|0]=1;J[a+40>>2]=c;d=(J[a+4>>2]<<3)+c|0;J[a+44>>2]=d;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;e=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[e>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;b= -I[a+22>>1]<<3;J[a+80>>2]=b+d;J[a+76>>2]=b+c}c=0;break a}J[a+40>>2]=c;c=64;break a}J[a+40>>2]=0}return c|0}function my(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(!c)break a;while(1){if(K[a|0]&32)break a;e=J[b>>2];f=bc-16|0;bc=f;h=J[694782];if(J[a+72>>2]<=0)iP(a);J[694782]=J[a+136>>2];b:{c:{d:{if(e>>>0<=127){e:{if(J[a+80>>2]==(e|0))break e;d=J[a+20>>2];if((d|0)==J[a+16>>2])break e;J[a+20>>2]=d+1;H[d|0]=e;break b}e=ps(a,e);break d}d=J[a+20>>2];if(M[a+16>>2]>d+4>>>0){d=Im(d,e);if((d|0)<0)break c;J[a+20>>2]= -d+J[a+20>>2];break d}g=f+12|0;d=Im(g,e);if((d|0)<0)break c;if(Ty(g,d,a)>>>0>>0)break c}if((e|0)!=-1)break b}J[a>>2]=J[a>>2]|32}J[694782]=h;bc=f+16|0;b=b+4|0;c=c-1|0;if(c)continue;break}}}function Vm(a){var b=0,c=0;a:{b:{c:{d:{if(!J[a+36>>2])break d;b=J[a+40>>2];if((b|0)>=0){J[a+40>>2]=-1;J[a>>2]=b;break c}b=J[a+32>>2];J[a+32>>2]=b-1;if((b|0)>0)break d;b=255;J[a>>2]=255;break c}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];b=gc[J[J[b>>2]+28>>2]](b)&255;J[a>>2]=b;if(!J[a+36>>2])break b}c=J[a+40>>2];if((c| -0)>=0){J[a+40>>2]=-1;break a}c=J[a+32>>2];J[a+32>>2]=c-1;if((c|0)>0)break b;c=255;break a}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];c=gc[J[J[b>>2]+28>>2]](b)&255;b=J[a>>2]}J[a+4>>2]=c;J[a+8>>2]=b<<16^16711680;cI(a);J[a+12>>2]=-2147483648;J[a+8>>2]=J[a+8>>2]<<7;J[a+16>>2]=J[a+16>>2]-7}function Sva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((a|0)==(b|0))break a;c=J[a+24>>2];if(c)while(1){d=J[c>>2];gc[J[J[a>>2]+16>>2]](c,1);qc(c);c=d;if(c)continue;break}J[a+4>>2]=0;J[a+24>>2]=0;ci(a+16|0,4,0);sG(a,J[b+8>>2]); -b=J[b+24>>2];if(!b)break a;while(1){c=rc(J[J[a>>2]>>2]);gc[J[J[a>>2]+12>>2]](c,b,1,0);e=J[a+12>>2]+(M[c+12>>2]%M[a+8>>2]<<2)|0;d=J[e>>2];J[c+8>>2]=d;J[c+4>>2]=d;b:{c:{if(d){J[c>>2]=J[d>>2];J[d>>2]=c;d=J[c>>2];if(d)break c;break b}d=J[a+24>>2];J[c>>2]=d;J[a+24>>2]=c;if(!d)break b}J[d+4>>2]=c}J[e>>2]=c;J[a+4>>2]=J[a+4>>2]+1;b=J[b>>2];if(b)continue;break}}return a|0}function SO(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=bc-16|0;bc=i;if(K[b+11|0]>>>7|0)f=J[b+4>>2];else f=K[b+11|0]&127;h=Qc(c);e=f+h|0;j= -bc-16|0;bc=j;a:{if(e>>>0<=2147483631){b:{if(e>>>0<11){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;H[a+11|0]=K[a+11|0]&128|e;H[a+11|0]=K[a+11|0]&127;break b}if(e>>>0>=11){g=e+16&-16;d=g-1|0;d=(d|0)==11?g:d}else d=10;d=d+1|0;g=AQ(d);J[a+8>>2]=J[a+8>>2]&-2147483648|d&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a>>2]=g;J[a+4>>2]=e}bc=j+16|0;break a}Id(a);B()}if(K[a+11|0]>>>7|0)a=J[a>>2];if(K[b+11|0]>>>7|0)b=J[b>>2];Mj(a,b,f);a=a+f|0;Mj(a,c,h);JE(a+h|0,1,0);bc=i+16|0}function QZa(a,b){a=a|0;b=b|0;var c=0,d=0,e= -0,f=0,g=0,h=0;c=rc(44);J[695492]=0;J[c+4>>2]=1;J[c>>2]=768E3;d=J[695492];J[695492]=0;if((d|0)!=1){J[c+8>>2]=768272;J[c>>2]=768248;J[c+12>>2]=0;J[c+16>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+40>>2]=0;d=c+32|0;J[c+36>>2]=d;J[c+32>>2]=d;sw(0);J[c+12>>2]=0;d=J[c+16>>2];if(d)qc(d);J[c+16>>2]=0;d=K[b+11|0];e=d<<24>>24<0;d=e?J[b+4>>2]:d;J[c+20>>2]=d;f=rc(d);J[c+16>>2]=f;g=c,h=vJ(tc(f,e?J[b>>2]:b,d),d,0,0,0),J[g+12>>2]=h;u0(c);b=J[c+24>>2];a:{if(!b){gc[J[J[c>>2]+4>>2]](c);break a}J[a>>2]=b;gc[J[J[c>>2]+12>>2]](c)| -0}return(b|0)!=0|0}a=Z()|0;qc(c);ba(a|0);B()}function PAa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;d=J[b>>2]}else d=0;J[a>>2]=d;b=b+4|0;a=a+4|0;d=(c|0)>0;c=c-1|0;if(d)continue;break b}while(1){d=c;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;c=J[b>>2]}else c=0;J[a>>2]=c;c=J[b>>2];J[b>>2]=0;c:{if(!c)break c;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break c;J[695492]=0; -_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=d-1|0;b=b+4|0;a=a+4|0;if((d|0)>0)continue;break}}return}ea(0)|0;yc();B()}function te(a,b){var c=0,d=0,e=0,f=0;if((b|0)>=0){a:{if(!b)break a;e=J[a+12>>2];if(!e){e=zc(4096);J[a+12>>2]=e;if(!e)break a}c=J[a+16>>2];f=J[a+20>>2];d=c-f|0;b:{if((d|0)<=0){d=0;break b}if((b|0)<(d|0)){d=0;break b}J[a+20>>2]=c;b=b-d|0;f=c}c:{if((b|0)>=4097){gc[J[J[a+8>>2]+4>>2]](J[a+4>>2],b,1)|0;J[a+20>>2]=J[a+16>>2];d=b+d|0;break c}if((c|0)==(f|0)){if((b|0)<=0)break c; -c=gc[J[J[a+8>>2]+8>>2]](J[a+4>>2],e,1,4096)|0;J[a+16>>2]=c;b=(b|0)<(c|0)?b:c;J[a+20>>2]=b;d=b+d|0;break c}c=c-f|0;b=(b|0)<(c|0)?b:c;J[a+20>>2]=b+f;d=b+d|0}J[a+28>>2]=J[a+28>>2]+d}return}fa(219508,220026,122,223626);B()}function AS(a,b,c){var d=0,e=0,f=0,g=0,h=0;if(!K[a+1028|0]){f=J[a>>2];while(1){d=f&0-(e&1)^e>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;J[((e<<2)+a|0)+8>>2]=f&0-(d&1)^d>>>1;e=e+1|0;if((e|0)!=256)continue;break}H[a+ -1028|0]=1}e=J[a+4>>2];a:{if(!c)break a;d=c&1;b:{if((c|0)==1){c=0;break b}h=c&-2;c=0;f=0;while(1){g=a+8|0;e=J[g+(((K[b+c|0]^e)&255)<<2)>>2]^e>>>8;e=J[(((e^K[(c|1)+b|0])&255)<<2)+g>>2]^e>>>8;c=c+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!d)break a;e=J[((((K[b+c|0]^e)&255)<<2)+a|0)+8>>2]^e>>>8}return e^-1}function x3(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;a:{if(J[a+16>>2]<(c|0)|J[a+8>>2]>(c|0))break a;g=J[a+4>>2];b:{if((g|0)<=(b|0)){g=b;break b}d=(b-g|0)+d|0;if((d|0)<=0)break a;f=(g-b|0)+f|0}b=J[a+ -12>>2];if((b|0)<(d+g|0)){b=b-g|0;if((b|0)<0)break a;d=b+1|0}b=0;i=J[a>>2];a=J[i>>2];j=J[a+4>>2];h=J[a+16>>2];c:{d:{if((h|0)>=0){a=P(c,h);break d}k=j-J[a>>2]|0;a=P(c,h);if((k|0)<(0-a|0))break c}b=a+j|0}c=(g<<2)+b|0;while(1){a=K[e+3|0];gc[J[(J[i+4>>2]<<2)+2637648>>2]](c,P(a,K[e|0])+255>>>8|0,P(a,K[e+1|0])+255>>>8|0,P(a,K[e+2|0])+255>>>8|0,a,K[f|0]);c=c+4|0;f=f+1|0;d=d-1|0;if(d)continue;break}}}function lca(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;if(pj(a,J[b+ -8>>2],f)){vE(b,c,d,e);return}g=K[b+53|0];j=J[a+12>>2];H[b+53|0]=0;h=K[b+52|0];H[b+52|0]=0;m=a+16|0;uE(m,b,c,d,e,f);k=K[b+52|0];h=(h|k)!=0;l=K[b+53|0];g=(g|l)!=0;i=a+24|0;j=(j<<3)+m|0;a:{if(i>>>0>=j>>>0)break a;while(1){if(K[b+54|0])break a;b:{if(k){if(J[b+24>>2]==1)break a;if(K[a+8|0]&2)break b;break a}if(!l)break b;if(!(H[a+8|0]&1))break a}I[b+52>>1]=0;uE(i,b,c,d,e,f);l=K[b+53|0];g=(l|g)!=0;k=K[b+52|0];h=(k|h)!=0;i=i+8|0;if(j>>>0>i>>>0)continue;break}}H[b+53|0]=g;H[b+52|0]=h}function Qka(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=O[a+32>>3];f=O[b+32>>3];h=e>f;a:{if(h){c=1;if(O[a+40>>3]>3])break a}b:{if(!(e>3];g=O[b+40>>3];c=2;if(d>g)break a;if(!(d=f)break a}c:{if(!h)break c;d=O[b+40>>3];if(!(d>3]))break c;c=4;if(R(e-d)<.01|d>=e)break a}if(!(e!=f|O[a+40>>3]!=O[b+40>>3]|O[a+8>>3]!=O[b+8>>3])){c=5;if(O[a+16>>3]==O[b+16>>3])break a}g=O[a+40>>3];i=O[b+40>>3];d=R(g-i);if(R(e-f)<.01){c=6;if(d<.01)break a;return 7}c=8; -if(d<.01)break a;c=9;if(f>g)break a;c=e>i?10:0}return c|0}function PI(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;if((b|0)<0){H[c|0]=0;return c}if(b>>>0<=390){ff(c,J[(b<<2)+2640400>>2]);return c}a:{b:{e=b-391|0;if((e|0)>=J[a+72>>2])break b;g=J[a+80>>2];f=e;e=J[a+76>>2];e=_m(a,(J[a+68>>2]+P(f,e)|0)+3|0,e,d);h=J[a+80>>2];f=b-390|0;b=J[a+76>>2];i=_m(a,(J[a+68>>2]+P(f,b)|0)+3|0,b,d);b=e+g|0;e=J[a+80>>2];if((b|0)<(e|0))break b;g=J[a+84>>2];if((g|0)<(b|0))break b;f=e;e=h+i|0;if((f|0)>=(e|0)|(e|0)>(g|0)|(b| -0)>(e|0))break b;if(!J[d>>2])break a;d=b+J[a+8>>2]|0;a=e-b|0;a=(a|0)>=255?255:a;j=qd(c,d,a)+a|0,k=0,H[j|0]=k;return c}J[d>>2]=0}H[c|0]=0;return c}function vS(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=O[a+8>>3];f=O[b+8>>3];h=e>f;a:{if(h){c=1;if(O[a+16>>3]>3])break a}b:{if(!(e>3];g=O[b+16>>3];c=2;if(d>g)break a;if(!(d=f)break a}c:{if(!h)break c;d=O[b+16>>3];if(!(d>3]))break c;c=4;if(R(e-d)<.01|d>=e)break a}if(!(e!=f|O[a+16>> -3]!=O[b+16>>3]|O[a+32>>3]!=O[b+32>>3])){c=5;if(O[a+40>>3]==O[b+40>>3])break a}g=O[a+16>>3];i=O[b+16>>3];d=R(g-i);if(R(e-f)<.01){c=6;if(d<.01)break a;return 7}c=8;if(d<.01)break a;c=9;if(f>g)break a;c=e>i?10:0}return c|0}function Ir(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;a:{if(J[a+44>>2]|!b)break a;d=J[a+52>>2];c=(c|0)>(d|0)?d:c;a=P(J[a+16>>2],3);c=(a|0)>(c|0)?c:a;if((c|0)<=0)break a;d=((c-1>>>0)/3|0)+1|0;e=d&3;a=0;if(c>>>0>=10){h=d&2147483644;while(1){c=a+b|0;d=K[c+2|0];H[c+2|0]=K[c| -0];H[c|0]=d;d=(a|3)+b|0;i=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=i;d=K[c+8|0];H[c+8|0]=K[c+6|0];H[c+6|0]=d;d=K[c+9|0];H[c+9|0]=K[c+11|0];H[c+11|0]=d;a=a+12|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}if(!e)break a;while(1){c=a+b|0;d=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=d;a=a+3|0;g=g+1|0;if((e|0)!=(g|0))continue;break}}}function EPa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=rc(28);f=J[a+12>>2];J[695492]=0;d=$(4,8)|0;b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)==1)break c;J[695492]=0;f=aa(3183,d|0,f|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1){a=Z()|0;qc(d);break b}d=J[a+16>>2];b=J[J[d>>2]+8>>2];J[695492]=0;d=$(b|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;b=J[a+20>>2];e=J[J[b>>2]+8>>2];J[695492]=0;b=$(e|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break a}a=Z()|0}qc(c);ba(a|0);B()}e=J[a+4>>2];J[c+24>>2]=J[a+24>>2];J[c+20>>2]=b;J[c+16>>2]=d;J[c+12>>2]=f;J[c>>2]=2206152;J[c+8>>2]=0;J[c+4>>2]=e;return c|0}function rpa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;f=J[b>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;e=J[b>> -2]}J[695492]=0;J[d+12>>2]=e;a=ha(5547,a|0,d+12|0,1,c|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[d+12>>2]=0;b:{if(!e)break b;J[695492]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b;J[695492]=0;_(4987,e|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+20>>2]=0;J[a>>2]=2424960;J[a+40>>2]=0;J[a+32>>2]=0;J[a+36>>2]=16777215;H[a+19|0]=25;H[a+17|0]=0;H[a+18|0]=0;bc=d+16|0;return a|0}a=Z()|0;vc(d+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function ncb(a,b){a=a|0;b=b| -0;var c=0,d=0,e=0,f=0,g=0;c=bc-32|0;bc=c;a:{if((gc[J[b+52>>2]](b,6,c,0)|0)<=5){J[b+12>>2]=3;break a}e=J[c+12>>2];if(!e){J[b+12>>2]=3;break a}d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){f=c,g=td(J[c>>2],d),J[f>>2]=g;f=c,g=td(J[c+4>>2],d),J[f+4>>2]=g;f=c,g=td(J[c+8>>2],d),J[f+8>>2]=g;f=c,g=td(J[c+16>>2],d),J[f+16>>2]=g;f=c,g=td(J[c+20>>2],d),J[f+20>>2]=g;e=J[c+12>>2]<0?-65536:65536;J[c+12>>2]=e}J[a+440>>2]=J[c>>2];J[a+448>>2]=J[c+4>>2];d=J[c+8>>2];J[a+452>>2]=e;J[a+444>>2]=d;if(!$C(a+440|0)){J[b+12>>2]=3; -break a}J[a+456>>2]=I[c+18>>1];J[a+460>>2]=I[c+22>>1]}bc=c+32|0}function j1a(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;f=bc-16|0;bc=f;e=J[a+4>>2];h=J[e+24>>2];g=!K[e+66|0];if(J[h+224>>2])d=H[e+67|0];else d=L[e+112>>1]<256;a:{if(!(g|!d)){g=e+66|0;d=1;break a}g=J[e+20>>2];d=H[e+61|0]}H[e+67|0]=0;i=a;b:{c:{if(K[h+200|0]==12){d:{e:switch(d-1|0){case 0:d=f+12|0;if(J[e+52>>2]==2){J[e+52>>2]=1;H[f+12|0]=15;d=f+13|0}H[d|0]=K[g|0];d=d+1|0;break d;case 1:break e;default:break c}d=f+12|0;if(M[e+52>> -2]<=1){J[e+52>>2]=2;H[f+12|0]=14;d=f+13|0}H[d|0]=K[g|0];H[d+1|0]=K[g+1|0];d=d+2|0}a=f+12|0;d=d-a|0}else a=g;BK(i,a,d,b,c);break b}J[c>>2]=1}bc=f+16|0}function Hga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a=bc-208|0;bc=a;h=Wg();J[a>>2]=e;e=a+176|0;j=ni(e,20,h,5886,a);h=j+e|0;k=Kj(e,h,c);f=a+12|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[695492]=0;g=$(6537,f|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1){f=J[f>>2];i=J[f+4>>2]-1|0;J[f+4>>2]=i;if((i|0)==-1)gc[J[J[f>>2]+8>> -2]](f);f=e;e=a+16|0;gc[J[J[g>>2]+48>>2]](g,f,h,e)|0;f=b;b=e+(j<<2)|0;b=$r(f,e,(h|0)==(k|0)?b:(a+(k-a<<2)|0)-688|0,b,c,d);bc=a+208|0;return b|0}c=Z()|0;a=J[a+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function gS(a,b){var c=0;c=bc-16|0;bc=c;Oc(b,2443960,-1);Oc(b,2444276,-1);Oc(b,2444592,-1);Oc(b,2444648,-1);Nl(b,J[J[a+628>>2]+4>>2]);Oc(b,2442340,-1);Nl(b,J[J[a+628>>2]+4>>2]);Oc(b,2440928,-1);Oc(b,2444712,-1);Oc(b,2444724,-1);Oc(b,2444884,-1);Oc(b,2445032,-1); -Oc(b,2445096,-1);Oc(b,2445156,-1);Oc(b,2445216,-1);Nl(b,J[J[a+628>>2]+4>>2]+6|0);Oc(b,2439844,-1);Oc(b,2445300,-1);Oc(b,2445368,-1);Oc(b,2445408,-1);Oc(b,2445460,-1);Oc(b,2445508,-1);Oc(b,2445564,-1);Oc(b,2445616,-1);Oc(b,2445680,-1);H[c+15|0]=0;Vu(a,b,c+15|0);az(a,b);Oc(b,2445780,-1);Oc(b,2445828,-1);Oc(b,2443892,-1);bc=c+16|0}function c$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+8>>2];ii(J[a+4>>2],b,c,d);ii(J[a+8>>2],b,c,d);ii(J[a+12>>2],b,c,d);ii(J[a+16>>2],b,c,d);ii(J[a+20>>2],b,c,d);ii(J[a+24>> -2],b,c,d);ii(J[a+28>>2],b,c,d);ii(J[a+32>>2],b,c,d);ii(J[a+36>>2],b,c,d);ii(J[a+40>>2],b,c,d);ii(J[a+44>>2],b,c,d);ii(J[a+48>>2],b,c,d);ii(J[a+52>>2],b,c,d);ii(J[a+56>>2],b,c,d);ii(J[a+60>>2],b,c,d);ii(J[a+64>>2],b,c,d);ii(J[a+68>>2],b,c,d);ii(J[a+72>>2],b,c,d);ii(J[a+76>>2],b,c,d);gc[J[b+4>>2]](J[b>>2],0);gc[J[b+4>>2]](J[b>>2],9);gc[J[b+4>>2]](J[b>>2],10);gc[J[b+8>>2]](J[b>>2],32,127);gc[J[b+8>>2]](J[b>>2],160,255)}function KZa(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=J[a>>2];a:{if(!d)break a; -g=J[d+28>>2]-J[d+24>>2]>>2;if((g|0)<=0)break a;while(1){f=K[b+11|0];h=f<<24>>24<0;d=J[J[J[a>>2]+24>>2]+(e<<2)>>2];i=K[d+59|0];j=i<<24>>24<0;b:{f=h?J[b+4>>2]:f;if((f|0)!=((j?J[d+52>>2]:i)|0))break b;c:{d:{if(!f){b=J[c>>2];J[c>>2]=d;break d}d=d+48|0;if(gd(h?J[b>>2]:b,j?J[d>>2]:d,f))break b;b=J[c>>2];d=J[J[J[a>>2]+24>>2]+(e<<2)>>2];J[c>>2]=d;if(!d)break c}gc[J[J[d>>2]+8>>2]](d)|0}e=1;if(!b)break a;gc[J[J[b>>2]+12>>2]](b)|0;return 1}e=e+1|0;if((g|0)!=(e|0))continue;break}e=0}return e|0}function H_(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-48|0;bc=d;a:{if((b|0)>5)break a;J[d+32>>2]=13;a=J[a+8>>2];f=gc[J[J[a>>2]+76>>2]](a)|0;a=d+32|0;if(J[Bc(f,818965,a,0)>>2]!=7){uc(a);break a}if(J[Bc(J[d+40>>2],819251,c,0)>>2]==7){uc(d+32|0);e=1;break a}J[d+16>>2]=13;b:{c:{if(J[Bc(J[d+40>>2],838563,d+16|0,0)>>2]!=7)break c;a=J[J[d+24>>2]+16>>2];if((a|0)<=0)break c;b=b+1|0;while(1){J[d>>2]=13;d:{if(J[ip(J[d+24>>2],e,d)>>2]!=8){uc(d);break d}if(H_(d,b,c))break b}e=e+1|0;if((a|0)!=(e|0))continue;break}}uc(d+ -16|0);e=0;break a}uc(d);uc(d+16|0);uc(d+32|0);e=1}bc=d+48|0;return e|0}function sO(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=bc-48|0;bc=c;a:{b:{c:{d:{e:{d=J[a+584>>2];b=J[d>>2];switch(b-1|0){case 0:break a;case 2:break d;case 1:break e;default:break c}}b=L[a+84>>1];e=b-8|0;if(1<>>0<=24:0)break b;a=J[a+628>>2];J[c+16>>2]=b;Nc(a,197551,75855,c+16|0);b=0;break a}b=L[a+86>>1];if((b|0)==3)break b;a=J[a+628>>2];J[c+32>>2]=b;Nc(a,197551,76410,c+32|0);b=0;break a}a=J[a+628>>2];J[c>>2]=b;Nc(a,197551, -77225,c);b=0;break a}b=1;J[d+4>>2]=L[a+138>>1]!=1?1:L[a+98>>1];f:{if(K[a+13|0]&4){f=d,g=Km(a),J[f+8>>2]=g;break f}f=d,g=_i(a),J[f+8>>2]=g}}bc=c+48|0;return b}function fab(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;e=1;if(!(!J[a+16>>2]|!J[a+20>>2])){qr(a);f=J[a+20>>2];g=O[c>>3];h=O[d>>3];c=bc+-64|0;bc=c;a=J[a+12>>2];if(a){J[c+60>>2]=J[b>>2];J[c+48>>2]=0;J[c+52>>2]=1072693248;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>> -2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=c+48|0;d=c+40|0;e=c+32|0;gc[J[J[a>>2]+124>>2]](a,b,d,e,c+24|0,c+16|0,c+8|0)|0;J[c+48>>2]=1;N[c+40>>2]=g;N[c+32>>2]=h;gc[J[J[a>>2]+92>>2]](a,c+60|0,b,d,e)|0;gc[J[J[a>>2]+132>>2]](a,f)|0}bc=c- -64|0;e=0}return e|0}function LPa(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;f=bc-640|0;bc=f;h=J[a+12>>2];i=gc[J[J[h>>2]+28>>2]](h)|0;e=J[a+12>>2];gc[J[J[e>>2]+36>>2]](e,f+384|0,f+128|0,J[a+16>>2]);g=+J[b>>2]*1.52587890625E-5+.5;a:{if(R(g)<2147483648){e=~~g;break a}e= --2147483648}if((i|0)>0){b=0;j=J[a+20>>2];a=J[a+16>>2];e=j+P((e|0)>=0?(a|0)<(e|0)?a:e:0,i)|0;while(1){j=(b<<2)+f|0;a=b<<3;g=(+K[b+e|0]/255*O[a+(f+128|0)>>3]+O[a+(f+384|0)>>3])*65536;b:{if(R(g)<2147483648){a=~~g;break b}a=-2147483648}J[j>>2]=a;b=b+1|0;if((i|0)!=(b|0))continue;break}}gc[J[J[h>>2]+16>>2]](h,f,c,d);bc=f+640|0}function Kv(a){var b=0,c=0,d=0,e=0;b=J[a+88>>2];if(b){c=J[b+8>>2];if((c|0)>0)while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){qc(Kv(e));c=J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}qc(dd(b)); -J[a+88>>2]=0}b=J[a+4>>2];if(b)qc(dd(b));b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[695492]=0;_(3205,a+16|0);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;J[695492]=0;_(3205,a+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+48|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a- -64|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a}ea(0)|0;yc();B()}function JPa(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;f=bc-640|0;bc=f;h=J[a+12>>2];i=gc[J[J[h>> -2]+28>>2]](h)|0;e=J[a+12>>2];gc[J[J[e>>2]+36>>2]](e,f+384|0,f+128|0,J[a+16>>2]);g=+J[b>>2]*1.52587890625E-5+.5;a:{if(R(g)<2147483648){e=~~g;break a}e=-2147483648}if((i|0)>0){b=0;j=J[a+20>>2];a=J[a+16>>2];e=j+P((e|0)>=0?(a|0)<(e|0)?a:e:0,i)|0;while(1){j=(b<<2)+f|0;a=b<<3;g=(+K[b+e|0]/255*O[a+(f+128|0)>>3]+O[a+(f+384|0)>>3])*65536;b:{if(R(g)<2147483648){a=~~g;break b}a=-2147483648}J[j>>2]=a;b=b+1|0;if((i|0)!=(b|0))continue;break}}gc[J[J[h>>2]+20>>2]](h,f,c,d);bc=f+640|0}function IPa(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;f=bc-640|0;bc=f;h=J[a+12>>2];i=gc[J[J[h>>2]+28>>2]](h)|0;e=J[a+12>>2];gc[J[J[e>>2]+36>>2]](e,f+384|0,f+128|0,J[a+16>>2]);g=+J[b>>2]*1.52587890625E-5+.5;a:{if(R(g)<2147483648){e=~~g;break a}e=-2147483648}if((i|0)>0){b=0;j=J[a+20>>2];a=J[a+16>>2];e=j+P((e|0)>=0?(a|0)<(e|0)?a:e:0,i)|0;while(1){j=(b<<2)+f|0;a=b<<3;g=(+K[b+e|0]/255*O[a+(f+128|0)>>3]+O[a+(f+384|0)>>3])*65536;b:{if(R(g)<2147483648){a=~~g;break b}a=-2147483648}J[j>>2]=a;b=b+1|0;if((i|0)!=(b|0))continue; -break}}gc[J[J[h>>2]+24>>2]](h,f,c,d);bc=f+640|0}function $hb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+28>>2];a=J[f+20>>2];a:{if(!a)break a;b:{c:{b=L[a>>1];d=b<<16>>16;if((d|0)>=2){e=I[(J[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break c}if(d)break c;b=L[a+2>>1];break b}b=I[a+2>>1];if((e|0)!=(b|0))break b;I[a>>1]=d-1;break a}d:{if(b<<16>>16<2)break d;c=J[a+4>>2];g=c+(e<<3)|0;h=b&65535;c=c+(h<<3)|0;if(J[g>>2]!=J[c-8>>2]|J[g+4>>2]!=J[c-4>>2]|K[(J[a+8>>2]+h|0)-1|0]!=1)break d;b=b-1|0;I[a+2>>1]=b}if((d|0)<= -0)break a;c=e;e=(b<<16>>16)-1|0;if((c|0)==(e|0)){I[a+2>>1]=b-1;I[a>>1]=d-1;break a}I[(J[a+12>>2]+(d<<1)|0)-2>>1]=e}H[f+44|0]=0}function tpa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;fG(a+8|0,b+8|0);d=c;c=c-1|0;b=b+20|0;a=a+20|0;if(d)continue;break b}while(1){d=c;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;fG(a+8|0,b+8|0);sc(b+12|0);c=J[b+8>>2];J[b+8>>2]=0;c:{if(!c)break c;J[695492]=0;e=J[c+4>>2]-1|0;J[c+4>>2]= -e;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break c;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a}c=d-1|0;b=b+20|0;a=a+20|0;if((d|0)>0)continue;break}}return}ea(0)|0;yc();B()}function mib(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=bc-32|0;bc=e;J[d>>2]=-1;Lp(a,e+20|0);if(J[e+28>>2]==3){i=J[a>>2];g=J[e+20>>2]+1|0;J[a>>2]=g;j=J[a+8>>2];h=J[e+24>>2]-1|0;J[a+8>>2]=h;f=b;a:{if(g>>>0>=h>>>0)break a;if(!f){f=0;while(1){Lp(a,e+8|0);if(!J[e+16>>2])break a;f= -f+12|0;if(M[a>>2]>2])continue;break}break a}c=P(c,12)+b|0;while(1){Lp(a,e+8|0);if(!J[e+16>>2])break a;if(c>>>0>f>>>0){g=J[e+12>>2];J[f>>2]=J[e+8>>2];J[f+4>>2]=g;J[f+8>>2]=J[e+16>>2]}f=f+12|0;if(M[a>>2]>2])continue;break}}J[d>>2]=(f-b|0)/12;J[a+8>>2]=j;J[a>>2]=i}bc=e+32|0}function kE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{c=J[a+20>>2];b:{if((c|0)>=2){d=J[a+28>>2];e=J[d+4>>2]-J[d>>2]>>2;break b}if((c|0)!=1)break a}if(J[a+24>>2]<=0)break a;f=J[J[a+28>>2]>>2];j=e<<2;while(1){h=c;d= -J[a+24>>2];c:{if((d|0)<=0)break c;g=0;c=f;e=d;i=d&3;if(i)while(1){J[c>>2]=J[c>>2]<>>0<4)break c;while(1){J[c>>2]=J[c>>2]<>2]=J[c+4>>2]<>2]=J[c+8>>2]<>2]=J[c+12>>2]<>>0<4294967294)continue;break}}c=h-1|0;f=f+j|0;if((h|0)>1)continue;break}}}function hX(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=bc-32|0;bc=g;f=J[a+72>>2];a:{if(!f){Hc(d,1,2348150,0);e=0;break a}f= -ye(4,J[f+16>>2]);e=0;if(!f)break a;if(b){j=J[a+72>>2];while(1){b:{e=J[(h<<2)+c>>2];c:{if(e>>>0>=M[j+16>>2]){J[g+16>>2]=e;Hc(d,1,2348223,g+16|0);break c}i=f+(e<<2)|0;if(!J[i>>2])break b;J[g>>2]=e;Hc(d,1,2348296,g)}qc(f);e=0;break a}J[i>>2]=1;h=h+1|0;if((h|0)!=(b|0))continue;break}}qc(f);qc(J[a- -64>>2]);d:{if(b){e=b<<2;d=_e(e);J[a+64>>2]=d;if(!d){J[a+60>>2]=0;e=0;break a}tc(d,c,e);break d}J[a+64>>2]=0}J[a+60>>2]=b;e=1}bc=g+32|0;return e|0}function G$(a){a=a|0;var b=0,c=0;if(a){b=J[a+32>>2];if(b)b= -J[b+80>>2];else b=0;zj(a);c=J[a+52>>2];if(c)vk(c);c=J[a+60>>2];a:{if(b){b:{if(!c)break b;if(wk(b,c))break b;gc[J[659451]](J[a+60>>2])}c=J[a+8>>2];c:{if(!c)break c;if(wk(b,c))break c;gc[J[659451]](J[a+8>>2])}c=J[a+56>>2];d:{if(!c)break d;if(wk(b,c))break d;gc[J[659451]](J[a+56>>2])}c=J[a+48>>2];if(!c)break a;if(wk(b,c))break a;gc[J[659451]](J[a+48>>2]);break a}if(c)gc[J[659451]](c);b=J[a+8>>2];if(b)gc[J[659451]](b);b=J[a+48>>2];if(b)gc[J[659451]](b);b=J[a+56>>2];if(!b)break a;gc[J[659451]](b)}gc[J[659451]](a)}} -function sS(a){var b=0,c=0,d=0,e=0,f=0;c=bc-48|0;bc=c;d=J[a+56>>2];b=K[d+395|0];a:{b:{if(!(b<<24>>24<0?J[d+388>>2]:b))break b;e=a+224|0;b=e;if(J[b+4>>2]==J[b+8>>2])break b;b=a+112|0;d=J[a+64>>2];f=K[a+127|0];c:{if(!(f<<24>>24<0?J[a+120>>2]:f)){FS(d,b);break c}IS(d,b)}b=J[a+64>>2];J[c+4>>2]=0;d=b;b=c+4|0;ES(d,b);d=J[a+64>>2];_y(b,e);J[695492]=0;yb(6443,d|0,b|0,0,0,c+40|0,c+32|0,c+24|0,c+16|0,1);b=J[695492];J[695492]=0;if((b|0)==1)break a;if(H[c+15|0]<0)qc(J[c+4>>2]);O[a+192>>3]=O[c+24>>3];O[a+200>> -3]=O[c+16>>3]}bc=c+48|0;return}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function jpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(K[a+288|0]?K[a+285|0]:0)){Dc(a,1029,0,0);return 1029}if(c){Dc(a,1028,0,0);return 1028}c=0;a:{if(!K[a+114|0])break a;c=gc[J[a+152>>2]](28)|0;if(!c){Dc(a,1,0,0);c=1;break a}J[c+4>>2]=1070;J[c>>2]=1071;d=J[a+700>>2];b:{if(d){J[d+8>>2]=c;break b}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=d;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2]; -if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;c=0}c:{if(c)break c;H[a+2252|0]=1;if(K[a+112|0]){c=gc[J[b+4>>2]](a,b,e)|0;if(c)break c}c=0}return c|0}function hpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(K[a+288|0]?K[a+285|0]:0)){Dc(a,1029,0,0);return 1029}if(c){Dc(a,1028,0,0);return 1028}c=0;a:{if(!K[a+114|0])break a;c=gc[J[a+152>>2]](28)|0;if(!c){Dc(a,1,0,0);c=1;break a}J[c+4>>2]=1072;J[c>>2]=1073;d=J[a+700>>2];b:{if(d){J[d+8>>2]=c;break b}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=d;J[a+ -700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;c=0}c:{if(c)break c;H[a+2252|0]=2;if(K[a+112|0]){c=gc[J[b+4>>2]](a,b,e)|0;if(c)break c}c=0}return c|0}function Vhb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[a+8>>2]=d;J[a+4>>2]=b;I[a+64>>1]=256;J[a>>2]=J[b+100>>2];a:{if(!d)break a;b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;to(b);J[a+68>>2]=0;J[a+72>>2]=0;if(!c|!e)break a;b=J[J[c+40>>2]>>2]; -if(!b)break a;J[a+72>>2]=J[b>>2];J[a+68>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;b=J[65342];J[a+76>>2]=J[65341];J[a+80>>2]=b;b=J[65344];J[a+84>>2]=J[65343];J[a+88>>2]=b;b=J[65346];J[a+92>>2]=J[65345];J[a+96>>2]=b;b=J[65348];J[a+100>>2]=J[65347];J[a+104>>2]=b}function Kaa(a,b){a=a|0;b=b|0;if(!((b|0)!=8&(b|0)!=32946)){if(!Jm(a,97968,1)){Nc(J[a+628>>2],97946,70981,0);return 0}b=zc(136);J[a+584>>2]=b;if(b){J[b+104>>2]=0;J[b+108>>2]=0;J[b+96>> -2]=0;J[b+100>>2]=0;J[b+128>>2]=J[a+672>>2];J[a+672>>2]=691;J[b+132>>2]=J[a+668>>2];J[a+668>>2]=692;J[b+120>>2]=-1;J[b+124>>2]=0;J[a+556>>2]=693;J[a+548>>2]=693;J[a+540>>2]=693;J[a+520>>2]=694;J[a+516>>2]=695;J[a+572>>2]=696;J[a+560>>2]=697;J[a+552>>2]=697;J[a+544>>2]=697;J[a+536>>2]=698;J[a+532>>2]=699;J[a+524>>2]=700;pE(a);return 1}Nc(J[a+628>>2],97946,71599,0);return 0}fa(69834,70424,349,97946);B()}function i9(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=J[a>>2];f=g;c=J[a+4>>2];if((c|0)<=(g|0)){c=c+128|0; -f=Kh(J[a+8>>2],c<<2);if(!f)return-1;J[a+8>>2]=f;J[a+4>>2]=c;f=J[a>>2]}a:{if((f|0)<=(g|0))break a;c=f;e=c-g&3;if(e)while(1){d=J[a+8>>2]+(c<<2)|0;J[d>>2]=J[d-4>>2];c=c-1|0;h=h+1|0;if((e|0)!=(h|0))continue;break}if((g^-1)+f>>>0<3)break a;while(1){e=c<<2;d=e+J[a+8>>2]|0;J[d>>2]=J[d-4>>2];d=e+J[a+8>>2]|0;J[d-4>>2]=J[d-8>>2];d=e+J[a+8>>2]|0;J[d-8>>2]=J[d-12>>2];e=e+J[a+8>>2]|0;J[e-12>>2]=J[e-16>>2];c=c-4|0;if((g|0)<(c|0))continue;break}}J[J[a+8>>2]+(g<<2)>>2]=b;J[a>>2]=f+1;return 0}function qpb(a,b,c,d, -e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;b:switch(c|0){default:Dc(a,1028,0,0);return 1028;case 0:case 9:break b}c:{d:{if(!K[a+112|0])break d;a=gc[J[b+4>>2]](a,b,e)|0;if(a)break c;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break d;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+44| -0]=K[d+8|0]}a=0}return a|0}Dc(a,1029,0,0);return 1029}function oH(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0;a:{if(!a)break a;j=1;b:{if((c|0)>0)if((b|d|e|f|g|h|i)>=0)break b;Yc(a,60010);j=0}if((1E5-c|0)<(b|0)){Yc(a,60149);j=0}if((1E5-e|0)<(d|0)){Yc(a,60330);j=0}if((1E5-g|0)<(f|0)){Yc(a,60537);j=0}if((1E5-i|0)<(h|0)){Yc(a,60778);j=0}c=f-d|0;b=c>>>16|0;f=i-e|0;i=f&65535;k=c&65535;c=P(i,k);g=g-e|0;e=g>>>16|0;h=h-d|0;l=h&65535;g=g&65535;d=P(l,g);f=f>>>16|0;i=P(b,i)+P(k,f)+(c>>>16)|0;k=(i>>>16|0)+P(b,f)|0;b=h>>> -16|0;f=P(e,l)+P(g,b)+(d>>>16)|0;if((k|0)!=((f>>>16|0)+P(b,e)|0)|(c&65535|i<<16)!=(d&65535|f<<16))break a;Yc(a,61184);j=0}return j}function kO(a,b){var c=0,d=0,e=0;a:{if((b|0)<0){b=J[682417];if((b|0)<=0)break a;c=2729680;b:{while(1){e=J[c+24>>2];if(e){if(!(gc[e|0](a)|0))break b;b=J[682417]}c=c+28|0;d=d+1|0;if((d|0)<(b|0))continue;break}return 0}b=J[c>>2];if((b|0)<0)break a}d=0;e=J[682417];if((e|0)<=0)break a;c=2729680;c:{while(1){if(J[c>>2]==(b|0))break c;c=c+28|0;d=d+1|0;if((e|0)!=(d|0))continue; -break}return 0}b=J[c+16>>2];if(!b)break a;a=gc[b|0](a,0)|0;if(!a)break a;b=J[a+28>>2];if(b&16384)return a;if(!(b&255))return a;if(J[a+32>>2])return a;b=hO(b);J[a+32>>2]=b;if(b)return a;yh(a)}return 0}function cpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;Dc(a,1029,0,0);return 1029}f=J[a+268>>2];if(!(f&536870912)){Dc(a,1061,0,0);return 1061}b:{g=J[a+212>>2];if(!g)break b;if(gc[g|0](a,f,c,d)|0)break b;Dc(a, -904,0,0);return 904}f=0;c:{if(!K[a+112|0])break c;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break c;f=J[a+268>>2];b=J[e>>2];J[b+32>>2]=c;J[b>>2]=f;if(!c){J[b+36>>2]=0;return 0}b=gc[J[a+152>>2]](c)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(!b){Dc(a,1,0,0);return 1}tc(b,d,c);f=0}return f|0}function Sga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a=bc-96|0;bc=a;h=Wg();J[a>>2]=e;e=a- -64|0;j=ni(e,20,h,5886,a);h=j+e|0;k=Kj(e,h,c);f=a+12|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[695492]= -0;g=$(6613,f|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1){f=J[f>>2];i=J[f+4>>2]-1|0;J[f+4>>2]=i;if((i|0)==-1)gc[J[J[f>>2]+8>>2]](f);f=e;e=a+16|0;gc[J[J[g>>2]+32>>2]](g,f,h,e)|0;f=b;b=e+j|0;b=as(f,e,(h|0)==(k|0)?b:(a+(k-a|0)|0)-48|0,b,c,d);bc=a+96|0;return b|0}c=Z()|0;a=J[a+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Ogb(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;b=J[a+4>>2];g=b+c|0;b=0-b|0;f=g-1&b;b=b&d;if((L[e+12>>1]&7)!=2)b=J[a+ -20>>2]<(d-g|0)?b:(c|0)==(f|0)?b:(b|0)==(d|0)?b:f;c=J[a>>2];b=b>>c;a:{if((b|0)<0)break a;c=f>>c;d=L[a+52>>1];if((c|0)>=(d|0))break a;d=b>>>0>>0?b:d-1|0;b=-128>>(d&7);g=J[a+140>>2];h=J[a+56>>2];i=g+h|0;e=(c|0)>0?c:0;c=e<<13>>16;a=i+c|0;e=255>>>(e&7)|0;f=d<<13>>16;d=f-c|0;b:{if((d|0)>0){H[a|0]=e|K[a|0];if((d|0)!=1){a=(d|0)>=2?2:d;wc((c+i|0)+1|0,255,(f-(a+c|0)|0)+1|0);a=(h+((f+g|0)-a|0)|0)+1|0}a=a+1|0;break b}b=b&e}H[a|0]=K[a|0]|b}}function F5(a){var b=0,c=0,d=0;b=bc-16|0;bc=b;d=nd(a,0);a:{if(d)break a; -d=mg(a,b+8|0,4);if(d)break a;d=3;if(K[b+8|0]!=31|K[b+9|0]!=139|(K[b+10|0]!=8|K[b+11|0]>31))break a;d=bg(a,6);J[b+12>>2]=d;c=K[b+11|0];if(c&4){c=O5(a,b+12|0);d=J[b+12>>2];if(d)break a;d=bg(a,c);J[b+12>>2]=d;if(d)break a;d=0;c=K[b+11|0]}if(c&8){while(1){c=Gg(a,b+12|0)?0:3;d=J[b+12>>2];c=d?2:c;if(!c)continue;break}if((c|0)!=3)break a;c=K[b+11|0]}if(c&16){while(1){c=Gg(a,b+12|0)?0:5;d=J[b+12>>2];c=d?2:c;if(!c)continue;break}if((c|0)!=5)break a;c=K[b+11|0]}if(!(c&2))break a;d=bg(a,2)}bc=b+16|0;return d} -function T4(a,b){var c=0,d=0,e=0;c=J[a+32>>2];d=J[a+28>>2];if(d){while(1){e=J[c+8>>2];if(e)gc[J[b+8>>2]](b,e);J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;c=c+16|0;d=d-1|0;if(d)continue;break}c=J[a+32>>2]}if(c)gc[J[b+8>>2]](b,c);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;c=J[a+20>>2];d=J[a+16>>2];if(d){while(1){e=J[c+8>>2];if(e)gc[J[b+8>>2]](b,e);J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;c=c+16|0;d=d-1|0;if(d)continue;break}c=J[a+20>>2]}if(c)gc[J[b+8>>2]](b,c);J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>> -2]=0;c=J[a+8>>2];if(c)gc[J[b+8>>2]](b,c);J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}function PCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c+4|0]=b;H[c+5|0]=b>>>8;H[c+6|0]=b>>>16;H[c+7|0]=b>>>24;b=0;d=4;f=c+4|0;a:{b:{while(1){e=gc[J[J[a>>2]+12>>2]](a,f,d)|0;if(!e){a=Kc(c+8|0,2378736,2375204,474,2384672,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=f+e|0;b=b+e|0;d=d-e|0;if(d)continue;break}if((b|0)!=4){a=Kc(c+8|0,Jl(J[694731]), -2375204,547,2384837,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=c+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function iy(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=bc-16|0;bc=h;if(1073741807-b>>>0>=c>>>0){if(K[a+11|0]>>>7|0)g=J[a>>2];else g=a;i=g;g=h+4|0;j=g;if(b>>>0<536870887){J[h+12>>2]=b<<1;J[h+4>>2]=b+c;c=bc-16|0;bc=c;bc=c+16|0;c=h+12|0;c=J[(M[g>>2]>2]?c:g)>>2];if(c>>>0>=2){g=c+4&-4;c=g-1|0;c=(c|0)==2?g:c}else c=1;c=c+1|0}else c=1073741807;Cn(j,a,c);c=J[h+4>> -2];if(e)kk(c,i,e);if((d|0)!=(e|0)){g=e<<2;kk((g+c|0)+(f<<2)|0,g+i|0,d-e|0)}b=b+1|0;if((b|0)!=2)Fu(i,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[h+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;bc=h+16|0;return}Id(a);B()}function Tza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;Qj(a+8|0,b+8|0);d=c;c=d-1|0;b=b+44|0;a=a+44|0;if(d)continue;break a}while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;Qj(a+8|0,b+8|0);J[b+ -32>>2]=2381060;J[b+8>>2]=2381028;d=J[b+36>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[b+36>>2]=0}J[b+24>>2]=2381060;d=J[b+28>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)gc[J[J[d>>2]+4>>2]](d);J[b+28>>2]=0}sc(b+16|0);b=b+44|0;a=a+44|0;d=(c|0)>0;c=c-1|0;if(d)continue;break}}}function Nya(a){a=a|0;var b=0,c=0,d=0;b=bc-16|0;bc=b;J[b+12>>2]=0;md(b+12|0,a);J[695492]=0;aa(4985,a+160|0,0)|0;c=J[695492];J[695492]=0;a:{b:{if((c|0)==1)break b;J[695492]=0;_(5307,a|0);a=J[695492];J[695492]= -0;if((a|0)==1){na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break b}a=J[b+12>>2];J[b+12>>2]=0;c:{if(!a)break c;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=b+16|0;return}a=Z()|0;vc(b+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function ghb(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=bc-128|0;bc=f;if((c|0)>0){k=(P((b|0)!=0,36)+a|0)+16|0; -while(1){h=(c|0)>=16?16:c;g=h<<1;b=0;while(1){e=b<<2;i=J[e+d>>2]+i|0;J[e+f>>2]=((i+(i>>31)|0)+32768&-65536)>>16;b=b+1|0;if((g|0)!=(b|0))continue;break}b=0;while(1){e=b<<2;j=(e|4)+f|0;J[j>>2]=J[j>>2]-J[e+f>>2];b=b+2|0;if(g>>>0>b>>>0)continue;break}a:{if(J[a+4>>2])break a;b=f;g=h;while(1){e=ix(k,J[b>>2],J[b+4>>2],J[a>>2],0);if(e){J[a+4>>2]=e;break a}b=b+8|0;e=(g|0)>1;g=g-1|0;if(e)continue;break}}c=c-h|0;if((c|0)>0)continue;break}}bc=f+128|0}function dVa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(J[a+ -104>>2]==J[a+108>>2])break a;pd(b,J[a>>2]);pd(b,J[a+88>>2]);pd(b,J[a+92>>2]);pd(b,J[a+96>>2]);pd(b,J[a+100>>2]);pd(b,J[a+108>>2]-J[a+104>>2]>>2);c=J[a+104>>2];if((c|0)==J[a+108>>2])break a;while(1){e=c;c=g<<2;d=J[e+c>>2];f=K[d+15|0];e=f<<24>>24<0;jf(b,e?J[d+4>>2]:d+4|0,e?J[d+8>>2]:f);d=J[J[a+104>>2]+c>>2];f=K[d+27|0];e=f<<24>>24<0;jf(b,e?J[d+16>>2]:d+16|0,e?J[d+20>>2]:f);pd(b,J[J[J[a+104>>2]+c>>2]+28>>2]);pd(b,0);we(b,K[J[J[a+104>>2]+c>>2]]);g=g+1|0;c=J[a+104>>2];if(g>>>0>2]-c>>2>>>0)continue; -break}}}function beb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=I[a+302>>1];if(f){a:{b:{c:switch(J[J[J[a>>2]+96>>2]+64>>2]-35|0){case 5:if(K[a+615|0])break a;g=b+16|0;e=J[b+16>>2]+(c<<3)|0;break b;case 0:break c;default:break a}g=b+16|0;e=J[b+16>>2]+(c<<3)|0}e=J[e>>2];f=Dd(d,f,J[a+568>>2]);J[J[g>>2]+(c<<3)>>2]=f+e}e=J[b+24>>2]+c|0;H[e|0]=K[e|0]|8}e=I[a+304>>1];if(e){d:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break d;g=c<<3;f=J[(g+J[b+16>>2]|0)+4>>2];a=Dd(d, -e,J[a+568>>2]);J[(g+J[b+16>>2]|0)+4>>2]=a+f}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|16}}function Py(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;i=bc-240|0;bc=i;h=J[d>>2];J[i+232>>2]=h;d=J[d+4>>2];J[i>>2]=a;J[i+236>>2]=d;m=0-b|0;l=!f;a:{b:{c:{d:{if((h|0)!=1){h=a;f=1;break d}h=a;f=1;if(d)break d;break c}while(1){j=(e<<2)+g|0;d=h-J[j>>2]|0;if((uq(d,a,c)|0)<=0)break c;k=l^-1;l=1;e:{if(!((k|(e|0)<2)&1)){j=J[j-8>>2];k=h+m|0;if((uq(k,d,c)|0)>=0)break e;if((uq(k-j|0,d,c)|0)>=0)break e}J[(f<<2)+i>>2]=d;j=i+232|0;h= -wR(j);Qy(j,h);f=f+1|0;e=e+h|0;h=d;if(J[i+236>>2]|J[i+232>>2]!=1)continue;break b}break}d=h;break b}d=h;if(!l)break a}vR(b,i,f);tF(d,b,c,e,g)}bc=i+240|0}function OO(a,b,c){var d=0,e=0,f=0;d=J[a+584>>2];while(1){a:{f=Ur(b,e,c);Tr(a,f,94064);e=e+f|0;if(e>>>0>=c>>>0)break a;f=Sr(b,e,c);Tr(a,f,94720);e=e+f|0;if(e>>>0>>0)continue}break}b=J[d+4>>2];b:{if(!(b&12))break b;if(J[d+68>>2]!=8){if(J[a+608>>2]>=J[a+600>>2])gf(a);b=J[d+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=b;J[a+608>>2]=J[a+608>>2]+1;J[d+ -64>>2]=0;J[d+68>>2]=8;b=J[d+4>>2]}if(!(b&8))break b;c=J[a+604>>2];if(!(c&1))break b;if(J[a+608>>2]>=J[a+600>>2]){gf(a);c=J[a+604>>2]}b=J[d+64>>2];J[a+604>>2]=c+1;H[c|0]=b;J[a+608>>2]=J[a+608>>2]+1;J[d+64>>2]=0;J[d+68>>2]=8}}function GNa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-32|0;bc=c;J[a>>2]=2307416;J[c+16>>2]=13;J[c>>2]=13;J[a+4>>2]=0;J[a+8>>2]=0;a:{if(J[b>>2]==7){d=c+16|0;b:{if(J[Bc(J[b+8>>2],781006,d,0)>>2]!=5){f=a,g=TH(d),J[f+4>>2]=g;break b}d=c+16|0;uc(d);if(J[Bc(J[b+8>>2],793456,d,0)>> -2]==7){Bc(J[c+24>>2],781006,c,0);f=a,g=TH(c),J[f+4>>2]=g;uc(c);if(J[Bc(J[c+24>>2],804501,c,0)>>2]==3){d=J[c+8>>2];b=rc(8);J[695492]=0;d=aa(3183,b|0,d|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+8>>2]=d}uc(c);break b}xc(0,-1,804801,0)}uc(c+16|0)}bc=c+32|0;return a|0}a=Z()|0;qc(b);ba(a|0);B()}function ala(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-48|0;bc=d;J[695492]=0;e=aa(2388,d+16|0,b|0)|0;b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[695492]=0;b=J[e+24>>2];f=J[695492];J[695492]=0;if((f| -0)!=1){if(!b){b=J[c+4>>2];break a}J[d+8>>2]=J[c>>2];b=J[c+4>>2];J[d+12>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[695492]=0;f=J[d+12>>2];J[d>>2]=J[d+8>>2];J[d+4>>2]=f;ca(6423,a|0,e|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}a=Z()|0;ji(e);break b}a=Z()|0}Ie(c);ba(a|0);B()}ji(e);c:{if(!b)break c;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break c;gc[J[J[b>>2]+8>>2]](b);Vc(b)}bc=d+48|0}function CHa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;g=J[J[a+72>> -2]+16>>2];f=g>>>0<257?1:2;c:{if((f+2|0)!=(c|0)){a=0;Hc(d,1,2354794,0);break c}if(J[a+8>>2]==16)c=J[a+156>>2]+P(J[a+192>>2],5644)|0;else c=J[a+12>>2];ld(b,e+12|0,f);a=1;b=b+f|0;ld(b,e+8|0,1);f=J[e+12>>2];if(f>>>0>=g>>>0){J[e+4>>2]=g;J[e>>2]=f;Hc(d,1,2354820,e);a=0;break c}ld(b+1|0,(J[c+5584>>2]+P(f,1080)|0)+808|0,1)}bc=e+16|0;return a|0}fa(2353829,2346358,5126,2354777);B()}fa(2346477,2346358,5127,2354777);B()}fa(2346590,2346358,5128,2354777);B()}function uA(a,b){a:{b:{if(b>>>0<=127)break b;if(b>>> -0<=2047){zd(a,(b>>>6|0)+-64<<24>>24);b=b&63|-128;break b}if(b>>>0<=65535){zd(a,(b>>>12|0)-32<<24>>24);zd(a,b>>>6&63|-128);b=b&63|-128;break b}if(b>>>0<=2097151){zd(a,(b>>>18|0)-16<<24>>24);zd(a,b>>>12&63|-128);zd(a,b>>>6&63|-128);b=b&63|-128;break b}if(b>>>0<=67108863){zd(a,(b>>>24|0)-8<<24>>24);zd(a,b>>>18&63|-128);zd(a,b>>>12&63|-128);zd(a,b>>>6&63|-128);b=b&63|-128;break b}if((b|0)<0)break a;zd(a,b>>>30|-4);zd(a,b>>>24&63|-128);zd(a,b>>>18&63|-128);zd(a,b>>>12&63|-128);zd(a,b>>>6&63|-128);b=b& -63|-128}zd(a,b<<24>>24)}}function gfb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;e=J[b+28>>2];c=gc[J[a+516>>2]](a,1734439792,b,0)|0;a:{if(c)break a;c=Ue(b,4);J[d+12>>2]=c;if(c)break a;g=a,h=mf(b),I[g+560>>1]=h;g=a,h=mf(b),I[g+562>>1]=h;ne(b);if(L[a+560>>1]>=2){I[a+562>>1]=0;c=8;break a}c=e;e=L[a+562>>1];g=a,h=Sc(c,4,0,e,0,d+12|0),J[g+564>>2]=h;c=J[d+12>>2];if(c)break a;c=Ue(b,e<<2);J[d+12>>2]=c;if(c)break a;if(e){c=J[a+564>>2];a=0;while(1){f=c+(a<<2)|0;g=f,h=mf(b),I[g>>1]=h;g=f,h= -mf(b),I[g+2>>1]=h;a=a+1|0;if((e|0)!=(a|0))continue;break}}ne(b);c=J[d+12>>2]}bc=d+16|0;return c|0}function Vx(a,b){var c=0,d=0,e=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=jd(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)>0){J[a+ -60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break d}a=jd(a,1);if((a|0)==-1)break b}c=0;if(!b)break b;J[b>>2]=a<<8|e}return c}J[a+8>>2]=d|4;return-1}function RW(a){a=a|0;var b=0,c=0;if(a){mH(J[a>>2]);J[a>>2]=0;b=J[a+72>>2];if(b){qc(b);J[a+72>>2]=0}b=J[a+68>>2];if(b){qc(b);J[a+68>>2]=0}b=J[a+108>>2];if(b){qc(b);J[a+108>>2]=0}b=J[a+116>>2];if(b){c=J[b>>2];if(c){qc(c);b=J[a+116>>2];J[b>>2]=0}qc(b);J[a+116>>2]=0}b=J[a+120>>2];if(b){c=J[b+12>>2];if(c){qc(c);b=J[a+120>>2];J[b+12>>2]=0}c= -J[b+4>>2];if(c){qc(c);b=J[a+120>>2];J[b+4>>2]=0}c=J[b+8>>2];if(c){qc(c);b=J[a+120>>2];J[b+8>>2]=0}c=J[b>>2];if(c){qc(c);b=J[a+120>>2];J[b>>2]=0}qc(b);J[a+120>>2]=0}b=J[a+4>>2];if(b){lA(b);J[a+4>>2]=0}b=J[a+8>>2];if(b){lA(b);J[a+8>>2]=0}qc(a)}}function Lg(a,b){var c=0,d=0,e=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=jd(a,1);if((e|0)== --1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break d}a=jd(a,1);if((a|0)==-1)break b}c=0;if(!b)break b;J[b>>2]=e<<8|a}return c}J[a+8>>2]=d|4;return-1}function SDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;e=Hp(d+12|0,O[b>>3],O[b+8>>3],O[b+16>>3],O[b+24>>3],O[b+32>>3],O[b+40>>3]);J[695492]=0;Ck(a,e,0);b=J[695492];J[695492]=0;a:{b:{c:{if((b| -0)==1)break c;J[695492]=0;b=$(4,12)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;J[b>>2]=0;J[695492]=0;aa(2281,b+8|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;qc(b);break b}J[b+4>>2]=a+4;c=J[a+4>>2];J[b>>2]=c;J[c+4>>2]=b;J[a+4>>2]=b;J[a+12>>2]=J[a+12>>2]+1;J[695492]=0;_(4978,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}a=Z()|0}Ed(e);ba(a|0);B()}Ed(e);bc=d+16|0}function RG(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=bc-32|0;bc=b;d=4;e=b+4|0;a:{b:{while(1){c=gc[J[J[a>>2]+8>>2]](a,e,d)|0;if((c| -0)<0){a=Kc(b+8|0,Jl(J[694731]),2375204,413,2384629,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if(c){e=c+e|0;f=c+f|0;d=d-c|0;if(d)continue}break}if((f|0)!=4){a=Kc(b+8|0,J[682138],2375204,582,2384977,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=b+32|0;a=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Pba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+ -584>>2];a:{b:switch(b-512|0){case 1:J[J[c>>2]>>2]=J[d+196>>2];break a;case 2:J[J[c>>2]>>2]=J[d+200>>2];break a;case 18:if(!K[d+206|0])JO(a);I[J[c>>2]>>1]=K[d+208|0];I[J[c+4>>2]>>1]=K[d+209|0];break a;case 7:J[J[c>>2]>>2]=K[d+211|0];J[J[c+4>>2]>>2]=d+216;break a;case 8:J[J[c>>2]>>2]=K[d+212|0];J[J[c+4>>2]>>2]=d+228;break a;case 9:J[J[c>>2]>>2]=K[d+213|0];J[J[c+4>>2]>>2]=d+240;break a;case 0:I[J[c>>2]>>1]=K[d+204|0];break a;case 3:I[J[c>>2]>>1]=L[d+300>>1];break a;default:break b}return gc[J[d+160>> -2]](a,b,c)|0}return 1}function XYa(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!a)break a;c=J[a+24>>2];b:{if(!c)break b;b=J[a+8>>2];if(!b|J[b+60>>2])break b;J[b+60>>2]=c;J[a+24>>2]=0}b=J[a+48>>2];c:{if(!b|J[a+40>>2]<=0)break c;b=J[b>>2];if(!b)break c;c=J[b+44>>2];if(!c)break c;b=J[a+8>>2];if(!b|J[b+60>>2])break c;b=c;while(1){d=b;b=b+1|0;if(K[d|0])continue;break}b=0;d=d-c|0;d:{if((d|0)<0)break d;e=gc[J[659450]](d+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break d}b=tc(e,c,d);H[d+b|0]=0}J[J[a+8>>2]+ -60>>2]=b}b=J[a+256>>2];if(!b)break a;a=J[a+8>>2];if(!a|J[a+76>>2])break a;J[a+76>>2]=b}}function TB(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=bc-16|0;bc=h;a:{if((e|0)<=0)break a;i=e&3;if(e>>>0>=4){m=e&-4;while(1){f=h+8|0;H[f+g|0]=c;H[(g|1)+f|0]=(d&255)<<24|c>>>8;H[(g|2)+f|0]=(d&65535)<<16|c>>>16;j=d>>>24|0;n=(g|3)+f|0;f=(d&16777215)<<8|c>>>24;H[n|0]=f;g=g+4|0;c=d;d=0;k=k+4|0;if((m|0)!=(k|0))continue;break}}if(i)while(1){f=c;j=d;H[(h+8|0)+g|0]=c;g=g+1|0;c=(d&255)<<24|c>>>8;d=d>>>8|0;l=l+ -1|0;if((l|0)!=(i|0))continue;break}if(!j&f>>>0<256|(e|0)<=0)break a;wc(h+8|0,255,e)}a=gc[J[a+8>>2]](J[a+28>>2],b,h+8|0,e)|0;bc=h+16|0;return(a|0)!=(e|0)?-1:0}function NDa(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=J[a+60>>2];e=J[a- -64>>2];if(d>>>0>>0){H[d+4|0]=c;J[d>>2]=b;J[a+60>>2]=d+8;return}a:{i=a+56|0;h=J[i>>2];f=d-h>>3;g=f+1|0;if(g>>>0<536870912){j=f<<3;e=e-h|0;f=e>>2;f=e>>>0>=2147483640?536870911:f>>>0>g>>>0?f:g;if(f){if(f>>>0>=536870912)break a;g=rc(f<<3)}else g=0;e=j+g| -0;H[e+4|0]=c;J[e>>2]=b;b=e+8|0;if((d|0)!=(h|0)){while(1){e=e-8|0;d=d-8|0;J[e>>2]=J[d>>2];H[e+4|0]=K[d+4|0];if((d|0)!=(h|0))continue;break}d=J[i>>2]}J[a+64>>2]=g+(f<<3);J[a+60>>2]=b;J[a+56>>2]=e;if(d)qc(d);return}ph(i);B()}Sd();B()}function mka(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+8>>2]>>2];e=O[J[J[a>>2]>>2]+40>>3];O[b+32>>3]=e;f=O[J[J[a+4>>2]>>2]+32>>3];O[b+40>>3]=f;O[b+48>>3]=f-e;_R(b+224|0,2451140);c=J[J[a+8>>2]>>2];b=J[J[a>>2]>>2];g=J[b+56>>2];d=J[b+60>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[c+ -56>>2]=g;b=J[c+60>>2];J[c+60>>2]=d;a:{if(!b)break a;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break a;gc[J[J[b>>2]+8>>2]](b);Vc(b)}c=J[J[a+8>>2]>>2];J[c+68>>2]=0;b=J[c+72>>2];J[c+72>>2]=0;b:{if(!b)break b;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break b;gc[J[J[b>>2]+8>>2]](b);Vc(b)}a=J[J[a+8>>2]>>2];J[a+240>>2]=0;sS(a)}function _Sa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-48|0;bc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;J[a+4>>2]=-1;J[a>>2]=b+1;e=J[Bc(c,775064,d+32|0,0)>>2];b=rc(12);a:{if((e|0)==3){J[695492]=0;aa(3187, -b|0,J[d+40>>2])|0;break a}J[695492]=0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0}e=J[695492];J[695492]=0;if((e|0)==1){a=Z()|0;qc(b);ba(a|0);B()}J[a+8>>2]=b;uc(d+32|0);H[a+16|0]=0;b:{if(J[Bc(c,776094,d+16|0,0)>>2]!=4)break b;b=J[d+24>>2];if((Qc(b)|0)!=1)break b;H[a+16|0]=K[b|0]}uc(d+16|0);J[a+12>>2]=1;if(J[Bc(c,776759,d,0)>>2]==1)J[a+12>>2]=J[d+8>>2];uc(d);bc=d+48|0;return a|0}function Tt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=a+4|0;a=J[a+4>>2];a:{b:{if(!a)break b;d=K[b+11|0];f=d<<24>>24<0;d=f? -J[b+4>>2]:d;f=f?J[b>>2]:b;b=g;while(1){e=K[a+27|0];c=e<<24>>24<0;e=c?J[a+20>>2]:e;h=e>>>0>d>>>0;i=h?d:e;c:{if(i){c=Wc(c?J[a+16>>2]:a+16|0,f,i);if(c)break c}c=d>>>0>e>>>0?-1:h}c=(c|0)<0;b=c?b:a;a=J[(c?a+4|0:a)>>2];if(a)continue;break}if((b|0)==(g|0))break b;c=K[b+27|0];a=c<<24>>24<0;d:{c=a?J[b+20>>2]:c;e=c>>>0>>0?c:d;if(e){a=Wc(f,a?J[b+16>>2]:b+16|0,e);if(a)break d}if(c>>>0>d>>>0)break b;break a}if((a|0)>=0)break a}b=g}return b|0}function Nga(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; -if((c|0)>0){g=J[a+12>>2];while(1){i=c;c=c-1|0;f=I[b>>1];d=0;a:{if((f|0)<=0)break a;d=1023;if(f>>>0>7409)break a;d=f-3314>>2;if(!J[a+4>>2])break a;d=Dzb(J[694792],J[694793],1284865837,1481765933);e=fc;d=d+1|0;e=d?e:e+1|0;J[694792]=d;J[694793]=e;h=(+(f|0)+-3314)*.25+ +(e>>>1|0)*4.656612875245797E-10+-.5;if(R(h)<2147483648){d=~~h;break a}d=-2147483648}e=kR((+I[b+2>>1]+.5)*3.0517578125E-5,(+I[b+4>>1]+.5)*3.0517578125E-5,J[a+4>>2]);J[g>>2]=d<<14|((e|0)<0?12266:e);b=b+6|0;g=g+4|0;if(i>>>0>1)continue;break}}} -function ly(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=bc-16|0;bc=h;if(2147483631-b>>>0>=c>>>0){if(K[a+11|0]>>>7|0)g=J[a>>2];else g=a;i=g;g=h+4|0;j=g;if(b>>>0<1073741799){J[h+12>>2]=b<<1;J[h+4>>2]=b+c;c=bc-16|0;bc=c;bc=c+16|0;c=h+12|0;c=J[(M[g>>2]>2]?c:g)>>2];if(c>>>0>=11){g=c+16&-16;c=g-1|0;c=(c|0)==11?g:c}else c=10;c=c+1|0}else c=2147483631;es(j,c);c=J[h+4>>2];if(e)Mj(c,i,e);if((d|0)!=(e|0))Mj((c+e|0)+f|0,e+i|0,d-e|0);b=b+1|0;if((b|0)!=11)Ay(i,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[h+8>>2]& -2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;bc=h+16|0;return}Id(a);B()}function wC(a){var b=0,c=0,d=0;c=J[a+20>>2]-1|0;if((c|0)>=0)while(1){b=J[(J[J[a+32>>2]+(c>>>4&268435452)>>2]+((c&63)<<3)|0)+4>>2];if(b)qc(b);b=(c|0)>0;c=c-1|0;if(b)continue;break}J[a>>2]=0;J[a+20>>2]=0;b=J[a+24>>2];if(b){c=b-1|0;J[a+24>>2]=c;d=J[a+32>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){qc(b);c=J[a+24>>2]}b=c;c=b-1|0;J[a+24>>2]=c;if(b)continue;break}}c=J[a+32>>2];if(c)qc(c);b=J[a+4>>2];if(b){c=b-1|0;J[a+4>>2]=c;d=J[a+12>> -2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){qc(b);c=J[a+4>>2]}b=c;c=b-1|0;J[a+4>>2]=c;if(b)continue;break}}a=J[a+12>>2];if(a)qc(a)}function s6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+44>>2]=b;rn(J[a>>2],b);c=J[a>>2];b=J[J[c+712>>2]+3080>>2];c=gh(J[J[c+96>>2]+4>>2],241698);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;e=gc[b|0](c)|0;if(!e)break a;f=J[J[a>>2]+712>>2];c=J[f+1440>>2];h=J[J[a+40>>2]>>2];gc[J[e+4>>2]](J[h>>2],J[a+16>>2],J[a+20>>2],0,0);b=J[f+2024>>2];if(!b)break a;while(1){g= -J[a+16>>2];b=b-1|0;i=b<<2;d=J[J[(i+f|0)+2028>>2]+68>>2];b:{if((d|0)!=(c|0)){g=Dd(g,c,d);d=Dd(J[a+20>>2],c,d);break b}d=J[a+20>>2]}gc[J[e+4>>2]](J[(h+i|0)+4>>2],g,d,0,0);if(b)continue;break}}return 0}function HQa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-32|0;bc=d;J[d>>2]=13;e=J[a+36>>2];J[d+24>>2]=J[a+32>>2];J[d+28>>2]=e;J[d+16>>2]=9;e=d+16|0;hf(e,b,d,0);a:{if(J[d>>2]!=8){xc(1,-1,804425,0);uc(d);uc(e);J[a+32>>2]=-1;break a}e=J[d+8>>2];f=sk(4096);J[c>>2]=0;gc[J[J[e>>2]+20>>2]](e);a=J[c>>2]; -b=4096;while(1){b:{if((b-4096|0)<(a|0)){if((b|0)>=1073741824){xc(1,-1,804880,0);break b}b=b<<1;f=JI(f,b);a=J[c>>2]}g=gc[J[J[e>>2]+40>>2]](e,a+f|0,4096)|0;a=g+J[c>>2]|0;J[c>>2]=a;if((g|0)==4096)continue}break}gc[J[J[e>>2]+24>>2]](e);uc(d);uc(d+16|0)}bc=d+32|0;return f|0}function Fq(a,b){var c=0,d=0;d=bc-32|0;bc=d;a:{b:{c=K[a+19|0];c:{if(c){if((c|0)==255)break c;H[a+19|0]=c-1;break c}c=K[a+18|0]+1|0;H[a+18|0]=c;H[a+17|0]=K[a+17|0]<<1|b;if((c&255)!=8)break c;if(!K[a+16|0]){a=Kc(d+8|0,2374571,2383062, -1004,2426568,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}b=J[a+12>>2];if((gc[J[J[b>>2]+12>>2]](b,a+17|0,1)|0)!=1){a=Kc(d+8|0,2375115,2383062,1006,2426568,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}H[a+17|0]=0;H[a+18|0]=0}bc=d+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function yta(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;if(!(!f|!e)){c=L[a+26>>1];a=J[a+64>>2];d=e&3;k=e-1>>>0<3;l=h<< -2;while(1){j=0;h=e;if(d)while(1){J[b>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;b=b+4|0;h=h-1|0;j=j+1|0;if((j|0)!=(d|0))continue;break}if(!k)while(1){J[b>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+4>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+8>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+12>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];b=b+16|0;i=c+i|0;h=h-4|0;if(h)continue;break}i=g+i|0;b=b+l|0;f=f-1|0;if(f)continue;break}}}function m$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=0;gc[J[b+8>>2]](J[b>>2],0,160);while(1){d= -(a<<7)+2304|0;e=J[P(a,12)+752212>>2];c=0;a:{if((a|0)!=6)while(1){if(K[c+752944|0]&e)gc[J[b+4>>2]](J[b>>2],c+d|0);f=c|1;if(K[f+752944|0]&e)gc[J[b+4>>2]](J[b>>2],d+f|0);c=c+2|0;if((c|0)!=128)continue;break a}while(1){if(!(!(K[c+752944|0]&e)&(c|0)!=49))gc[J[b+4>>2]](J[b>>2],c+d|0);c=c+1|0;if((c|0)!=128)continue;break}}a=a+1|0;if((a|0)!=9)continue;break}gc[J[b+4>>2]](J[b>>2],2404);gc[J[b+4>>2]](J[b>>2],2405);gc[J[b+4>>2]](J[b>>2],8204);gc[J[b+4>>2]](J[b>>2],8205)}function iRa(a,b,c){a=a|0;b=b|0;c=c|0; -var d=0,e=0,f=0;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,817588,0);return}d=J[c+380>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+380>>2]=0;c=J[a+28>>2];f=rk(0);d=J[c+116>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+116>>2]=f;c=J[a+8>>2];gc[J[J[c>>2]+108>>2]](c,J[a+28>>2]);c=J[a+28>>2];e=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*65536;b:{if(R(e)<2147483648){b=~~e;break b}b=-2147483648}J[c+124>>2]=b;b=J[a+8>>2];gc[J[J[b>> -2]+116>>2]](b,J[a+28>>2])}function SRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,817588,0);return}d=J[c+384>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+384>>2]=0;c=J[a+28>>2];f=rk(0);d=J[c+120>>2];if(d)gc[J[J[d>>2]+4>>2]](d);J[c+120>>2]=f;c=J[a+8>>2];gc[J[J[c>>2]+112>>2]](c,J[a+28>>2]);c=J[a+28>>2];e=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*65536;b:{if(R(e)<2147483648){b= -~~e;break b}b=-2147483648}J[c+252>>2]=b;b=J[a+8>>2];gc[J[J[b>>2]+120>>2]](b,J[a+28>>2])}function Nsa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;if(!(!f|!e)){c=J[a+60>>2];a=L[a+26>>1];d=e&3;k=e-1>>>0<3;l=h<<2;while(1){j=0;h=e;if(d)while(1){J[b>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;b=b+4|0;h=h-1|0;j=j+1|0;if((j|0)!=(d|0))continue;break}if(!k)while(1){J[b>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;J[b+4>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;J[b+8>>2]=J[J[(K[i| -0]<<2)+c>>2]>>2];i=a+i|0;J[b+12>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];b=b+16|0;i=a+i|0;h=h-4|0;if(h)continue;break}i=g+i|0;b=b+l|0;f=f-1|0;if(f)continue;break}}}function yi(a,b,c){var d=0,e=0,f=0,g=0;d=J[a+4>>2];g=J[a+20>>2];a:{b:{c:{if(g){e=85;if(b>>>0>d>>>0)break a;f=J[a+28>>2];d:{if((b|0)>0){e=gc[J[f+4>>2]](f,b)|0;d=64;if(!e)break b;g=J[a+20>>2];break d}d=6;if(b)break b;e=0}J[a>>2]=e;g=gc[g|0](a,J[a+8>>2],e,b)|0;d=J[a>>2];if(b>>>0<=g>>>0)e=0;else{if(d)gc[J[f+8>>2]](f,d);d=0;J[a>>2]=0;e=85}J[a+32>>2]=d; -J[a+36>>2]=d?b+d|0:0;J[a+8>>2]=g+J[a+8>>2];if(b>>>0<=g>>>0)break c;break a}e=85;f=J[a+8>>2];if(f>>>0>=d>>>0|d-f>>>0>>0)break a;J[a+8>>2]=b+f;d=f+J[a>>2]|0}J[c>>2]=d;J[a+32>>2]=0;a=a+36|0;d=0}e=d;J[a>>2]=0}return e}function vXa(a,b){a=a|0;b=b|0;gc[J[J[a>>2]+76>>2]](a,b,O[b+16>>3],O[b+24>>3],O[b+32>>3],O[b+40>>3],O[b+48>>3],O[b+56>>3]);gc[J[J[a>>2]+80>>2]](a,b);gc[J[J[a>>2]+84>>2]](a,b);gc[J[J[a>>2]+88>>2]](a,b);gc[J[J[a>>2]+92>>2]](a,b);gc[J[J[a>>2]+96>>2]](a,b);gc[J[J[a>>2]+100>>2]](a,b);gc[J[J[a>> -2]+104>>2]](a,b);gc[J[J[a>>2]+108>>2]](a,b);gc[J[J[a>>2]+116>>2]](a,b);gc[J[J[a>>2]+112>>2]](a,b);gc[J[J[a>>2]+120>>2]](a,b);gc[J[J[a>>2]+124>>2]](a,b);gc[J[J[a>>2]+128>>2]](a,b);gc[J[J[a>>2]+132>>2]](a,b);gc[J[J[a>>2]+156>>2]](a,b);if(!(K[a+201|0]|(K[a+220|0]|K[a+204|0])))fB(a,b)}function Taa(a,b){a=a|0;b=b|0;var c=0;b=J[a+584>>2];if(b){if(!J[b+116>>2])gc[J[a+516>>2]](a)|0;c=J[a+596>>2];a:{if(!(K[c|0]|!(H[c+1|0]&1))){if(!J[b+96>>2]){ae(J[a+628>>2],J[a>>2],73143,0);J[a+556>>2]=690;J[a+548>>2]=690; -J[a+540>>2]=690;gc[J[a+516>>2]](a)|0;J[b+96>>2]=690}I[b+66>>1]=511;break a}J[b+96>>2]=682;I[b+66>>1]=510}I[b+64>>1]=9;J[b+72>>2]=0;J[b+76>>2]=0;J[b+84>>2]=511;J[b+88>>2]=0;a=J[a+608>>2];c=J[b+116>>2]+2064|0;J[b+108>>2]=c;J[b+92>>2]=a<<3;Hg(c,0,38888);a=J[b+116>>2]-8|0;J[b+104>>2]=a;J[b+112>>2]=a+(J[b+84>>2]<<3);return 1}fa(72282,70324,259,71704);B()}function E7a(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;i=K[a+3|0];h=i^255;a:{if(f>>>0<=254){g=P(b,h);b=K[a+2|0];j=P((g+P(b, -e)|0)+255>>>8|0,f)+255>>>8|0;g=b;b=255-f|0;H[a+2|0]=j+(P(g,b)+255>>>8|0);g=P(c,h);c=K[a+1|0];H[a+1|0]=(P((g+P(c,e)|0)+255>>>8|0,f)+255>>>8)+(P(b,c)+255>>>8);c=(P(b,i)+255>>>8)+(P(e,f)+255>>>8)|0;g=P(d,h);d=K[a|0];b=(P((g+P(d,e)|0)+255>>>8|0,f)+255>>>8)+(P(b,d)+255>>>8)|0;break a}H[a+2|0]=(P(b,h)+P(K[a+2|0],e)|0)+255>>>8;H[a+1|0]=(P(c,h)+P(K[a+1|0],e)|0)+255>>>8;c=e;b=(P(d,h)+P(K[a|0],e)|0)+255>>>8|0}H[a+3|0]=c;H[a|0]=b}function AH(a,b){var c=0,d=0;c=bc-96|0;bc=c;a:{if(!a)break a;SX(J[a+348>>2],c, -b);b=0;b:{if(K[c|0]!=35)break b;b=1;if(K[c+1|0]==32)break b;b=2;if(K[c+2|0]==32)break b;b=3;if(K[c+3|0]==32)break b;b=4;if(K[c+4|0]==32)break b;b=5;if(K[c+5|0]==32)break b;b=6;if(K[c+6|0]==32)break b;b=7;if(K[c+7|0]==32)break b;b=8;if(K[c+8|0]==32)break b;b=9;if(K[c+9|0]==32)break b;b=10;if(K[c+10|0]==32)break b;b=11;if(K[c+11|0]==32)break b;b=12;if(K[c+12|0]==32)break b;b=13;if(K[c+13|0]==32)break b;b=K[c+14|0]==32?14:15}d=J[a+164>>2];if(!d)break a;gc[d|0](a,b|c)}bc=c+96|0}function w7(a,b,c,d){var e= -0,f=0;e=bc-16|0;bc=e;a:{if(!d)break a;J[d>>2]=0;f=!a;if(f)break a;xf(a,e+12|0,e+8|0,e+4|0);if((b|0)<0|J[e+12>>2]<=(b|0)|((c|0)<0|J[e+8>>2]<=(c|0)))break a;f=f?-1:J[a+12>>2];a=(P(c,f)<<2)+(a?J[a+40>>2]:0)|0;b:{c:switch(J[e+4>>2]-1|0){case 0:a=J[a+(b>>>3&536870908)>>2]>>>(b^-1)&1;break b;case 1:a=J[a+(b>>>2&1073741820)>>2]>>>((b^-1)<<1)&3;break b;case 3:a=J[a+(b>>>1&2147483644)>>2]>>>((b^-1)<<2)&15;break b;case 7:a=K[a+b^3];break b;case 15:a=L[(a+(b<<1)^2)>>1];break b;case 31:break c;default:break a}a= -J[a+(b<<2)>>2]}J[d>>2]=a}bc=e+16|0}function vV(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=bc-16|0;bc=e;a:{b:{d=J[a+60>>2];if(d)while(1){b=J[d+8>>2];c:{if(!b)break c;c=J[b+56>>2];if(!c)break c;J[c+4>>2]=J[c+4>>2]+1;c=b+56|0;b=J[c>>2];J[e+12>>2]=b;if(!b)break c;J[695492]=0;aa(4985,c|0,0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}d=J[d>>2];if(d)continue; -break}Es(a+52|0);bc=e+16|0;return}a=Z()|0;vc(e+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function W1a(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;c=bc-16|0;bc=c;f=J[b+4>>2];e=f;while(1){d=e;e=d+1|0;if(K[d|0])continue;break}d=d-f|0;if(d>>>0<2147483632){a:{if(d>>>0<=10){H[c+15|0]=d;g=c+4|0;break a}h=(d|15)+1|0;g=rc(h);J[c+12>>2]=h|-2147483648;J[c+4>>2]=g;J[c+8>>2]=d}i=Zc(g,f,d)+d|0,j=0,H[i|0]=j;J[b+4>>2]=e;J[695492]=0;e=a;a=K[c+15|0];b=a<<24>>24<0;ca(1618,e|0,(b?J[c+4>>2]:c+4|0)|0,(b?J[c+8>>2]:a)| -0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}Id(c+4|0);B()}function tQa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+152>>2]=13;J[a>>2]=2206204;J[a+4>>2]=15;J[a+8>>2]=0;J[a+148>>2]=e;J[a+144>>2]=d;J[a+12>>2]=b;Ef(f,a+152|0);d=0;J[a+4>>2]=0;J[a+168>>2]=1;if(J[a+12>>2]>0)while(1){b=d<<2;e=b+a|0;b=J[b+c>>2];J[e+16>>2]=b;if(sd(b,807135))J[a+168>>2]=0;a:{if(!sd(J[e+16>>2],807391)){b=J[a+4>>2]|1;break a}if(!sd(J[e+ -16>>2],807820)){b=J[a+4>>2]|2;break a}if(!sd(J[e+16>>2],807940)){b=J[a+4>>2]|4;break a}b=15;if(sd(J[e+16>>2],808444))break a;b=J[a+4>>2]|8}J[a+4>>2]=b;d=d+1|0;if((d|0)>2])continue;break}return a|0}function Wob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;J[c+12>>2]=0;a:{b:{d=cN(a,J[b+48>>2],J[b+44>>2],c+12|0,c+8|0,c+4|0);c:{if(d)break c;e=J[b+32>>2];f=(e+J[c+4>>2]|0)+2|0;d:{if(f>>>0<=M[a+424>>2]){g=J[a+428>>2]+8|0;break d}g=gc[J[a+152>>2]](f)|0;if(!g)break b;e=J[b+32>>2]}d=g;if(e)d= -tc(d,J[b+36>>2],e)+J[b+32>>2]|0;H[d|0]=0;H[d+1|0]=0;e=J[c+4>>2];if(e)tc(d+2|0,J[c+12>>2],e);d=ue(a,J[b>>2],f,g);if(M[a+424>>2]>=f>>>0)break c;gc[J[a+156>>2]](g,f)}b=J[c+12>>2];if(!b)break a;gc[J[a+156>>2]](b,J[c+8>>2]);break a}d=1;Dc(a,1,0,0)}bc=c+16|0;return d|0}function Nub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=J[J[a+544>>2]+88>>2];g=J[f+1176>>2]+P(J[f+1168>>2],J[a+572>>2])|0;c=J[a+588>>2];b=J[a+644>>2];a:{if(K[f+56|0]){if((c|0)<=0)break a;while(1){e=0;c=K[g|0];if((c|0)!=L[f+836>>1]){e=P(K[K[f+ -44|0]+213064|0],c);c=255}else c=0;H[b+3|0]=c;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;b=b+4|0;g=g+1|0;d=d+1|0;if((d|0)>2])continue;break}break a}if((c|0)<=0)break a;while(1){c=K[g|0];d=K[f+44|0];H[b+3|0]=255;d=P(c,K[d+213064|0]);H[b+2|0]=d;H[b+1|0]=d;H[b|0]=d;b=b+4|0;g=g+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function A4(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=bc-16|0;bc=g;J[g+12>>2]=0;h=Zd(a,(L[c+8>>1]>>>1|0)+1|0,g+12|0);e=0;a:{if(J[g+12>>2])break a;e=nd(b,J[c+12>>2]);J[g+12>>2]=e;b:{if(e)break b; -e=Ue(b,L[c+8>>1]);J[g+12>>2]=e;if(e)break b;e=h;c:{f=L[c+8>>1];if(f>>>0>=2){i=f>>>1|0;f=J[b+32>>2];while(1){if(K[f|0])break c;if(!(gc[d|0](H[f+1|0])|0))break c;H[e|0]=K[f+1|0];f=f+2|0;e=e+1|0;i=i-1|0;if(i)continue;break}}H[e|0]=0;ne(b);e=h;break a}ne(b)}if(h)gc[J[a+8>>2]](a,h);J[c+12>>2]=0;I[c+8>>1]=0;b=J[c+16>>2];if(b)gc[J[a+8>>2]](a,b);J[c+16>>2]=0;e=0}bc=g+16|0;return e}function kUa(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=bc-256|0;bc=i;if(g){k= -(e<<2)+c|0;a=J[a+416>>2];l=J[(a+(J[b+16>>2]<<2)|0)+84>>2];m=J[(a+(J[b+4>>2]<<2)|0)+44>>2];while(1){gc[m|0](i,k,f);n=(j<<7)+d|0;e=0;while(1){c=e<<2;a=J[c+l>>2];h=a>>1;o=(e<<1)+n|0;c=J[c+i>>2];a:{if((c|0)<0){c=h-c|0;if((c|0)>=(a|0))a=(c|0)/(a|0)|0;else a=0;c=0-a|0;break a}h=c+h|0;c=0;if((h|0)<(a|0))break a;c=(h|0)/(a|0)|0}I[o>>1]=c;e=e+1|0;if((e|0)!=64)continue;break}f=J[b+36>>2]+f|0;j=j+1|0;if((j|0)!=(g|0))continue;break}}bc=i+256|0}function jX(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{c:{if(b){if(!a)break c; -if(!c)break b;if(!d)break a;g=J[b+8>>2];e=J[b>>2];if(!e){J[b>>2]=0;return 1}f=1;i=e&1;if((e|0)==1)e=0;else{e=e&-2;while(1){h=0;d:{if(!f)break d;h=0;if(!(gc[J[g>>2]](a,c,d)|0))break d;h=(gc[J[g+4>>2]](a,c,d)|0)!=0}f=h;g=g+8|0;j=j+2|0;if((e|0)!=(j|0))continue;break}e=f^1}f=i?0:f;if(!(e|!i))f=(gc[J[g>>2]](a,c,d)|0)!=0;J[b>>2]=0;return f}fa(2352721,2346358,8861,2352744);B()}fa(2346477,2346358,8862,2352744);B()}fa(2346550,2346358,8863,2352744);B()}fa(2346590,2346358,8864,2352744);B()}function isb(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+2308>>2];if(b){d=J[a+2300>>2];f=J[a+2312>>2];c=J[a+2316>>2];while(1){e=K[f|0];if(e>>>0>2]){b=P(e,3)+d|0;g=gc[J[a+2296>>2]](K[b+68|0])|0;h=gc[J[a+2296>>2]](K[b+69|0])|0;i=gc[J[a+2296>>2]](K[b+70|0])|0;b=65535;if(!(!K[d+56|0]|M[d+844>>2]<=e>>>0))b=gc[J[a+2296>>2]](K[(d+e|0)+848|0])|0;H[c+7|0]=(b|0)!=0;H[c+6|0]=b>>>8;H[c+5|0]=(i|0)!=0;H[c+4|0]=i>>>8;H[c+3|0]=(h|0)!=0;H[c+2|0]=h>>>8;H[c+1|0]=(g|0)!=0;H[c|0]=g>>>8;b=J[a+2308>>2]}c=c+8|0;f=f+1|0; -j=j+1|0;if(j>>>0>>0)continue;break}}return 0}function KIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=rc(8);J[695492]=0;d=$(3184,f|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){a:{if(K[a+24|0]){e=J[a+20>>2];if(J[e>>2]<=0)break a;f=0;while(1){b:{c:{d:{e:{f:{e=K[J[e+4>>2]+f|0];switch(e-38|0){case 0:break d;case 24:break e;case 22:break f;default:break c}}od(d,803710);break b}od(d,804109);break b}od(d,804522);break b}zd(d,e<<24>>24)}f=f+1|0;e=J[a+20>>2];if((f|0)>2])continue;break}break a}od(d,794527); -Dh(d,J[a+20>>2]);od(d,796487)}a=gc[b|0](c,J[d+4>>2],J[d>>2])|0;qc(Rc(d));return a|0}a=Z()|0;qc(f);ba(a|0);B()}function FS(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;d=a+8|0;if(!HS(d,b)){hn(d,b);b=J[a>>2];O[c+8>>3]=Q(O[a+40>>3]);d=J[a+48>>2]!=0;J[c+4>>2]=J[a+52>>2]?d|2:d;gc[J[J[b>>2]+144>>2]](b,a+24|0,c+8|0,c+4|0,2431312,2431320)|0;b=J[a>>2];gc[J[J[b>>2]+76>>2]](b);b=J[a>>2];f=a,g=+(gc[J[J[b>>2]+48>>2]](b)|0),O[f+80>>3]=g;b=J[a>>2];f=a,g=+(gc[J[J[b>>2]+52>>2]](b)|0),O[f+88>>3]=g;b=J[a>> -2];f=a,g=+(gc[J[J[b>>2]+56>>2]](b)|0),O[f+96>>3]=g;b=J[a>>2];e=+(gc[J[J[b>>2]+44>>2]](b)|0);O[a+104>>3]=e;O[a+112>>3]=O[a+88>>3]*.35277777777777775*O[a+40>>3]/e;GS(a)}bc=c+16|0}function B7a(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;a:{if((d|0)<=0)break a;f=J[a+112>>2];if(!f)break a;a=J[J[a+480>>2]+24>>2];h=J[a+8>>2];i=J[a+4>>2];j=J[a>>2];l=f-1|0;m=f&1;while(1){a=k<<2;e=J[a+c>>2];a=J[a+b>>2];if(m){H[e|0]=K[K[a+2|0]+h|0]+(K[K[a+1|0]+i|0]+K[K[a|0]+j|0]|0);e=e+1|0;a=a+3| -0;g=l}else g=f;if((f|0)!=1)while(1){H[e|0]=K[K[a+2|0]+h|0]+(K[K[a+1|0]+i|0]+K[K[a|0]+j|0]|0);H[e+1|0]=K[K[a+5|0]+h|0]+(K[K[a+4|0]+i|0]+K[K[a+3|0]+j|0]|0);e=e+2|0;a=a+6|0;g=g-2|0;if(g)continue;break}k=k+1|0;if((k|0)!=(d|0))continue;break}}}function $ua(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;g=J[b>>2];J[a+124>>2]=g;h=J[b+4>>2];J[a+128>>2]=h;d=J[b+8>>2];J[a+132>>2]=d;e=J[b+12>>2];b=(d-g|0)/2|0;J[a+100>>2]=b;J[a+136>>2]=e;f=(e-h|0)/2|0;J[a+104>>2]=f;c=b+f|0;d=(d+g|0)/2|0;e=(e+h|0)/2|0;a:{if((b| -0)>(f|0)){i=Y(+(P(c,b-f|0)|0));b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}g=d-c|0;d=d+c|0;c=f;h=e;break a}i=Y(+(P(c,f-b|0)|0));c:{if(R(i)<2147483648){c=~~i;break c}c=-2147483648}j=c;h=j+e|0;c=b;b=f;g=d;e=e-j|0}J[a+120>>2]=e;J[a+116>>2]=g;J[a+108>>2]=d;J[a+92>>2]=b;J[a+96>>2]=c;J[a+112>>2]=h}function q2(a,b,c,d){var e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;a:{g=Xe(b,e+12|0,c);c=J[g>>2];if(c)b=0;else{c=rc(32);J[e+4>>2]=b+4;J[e>>2]=c;f=c+16|0;H[e+8|0]=0;d=J[d>>2];b:{if(H[d+11|0]>=0){h=J[d+4>>2];J[f>>2]= -J[d>>2];J[f+4>>2]=h;J[f+8>>2]=J[d+8>>2];break b}h=J[d+4>>2];d=J[d>>2];J[695492]=0;ca(15,f|0,d|0,h|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}J[c+28>>2]=0;J[c+8>>2]=J[e+12>>2];J[c>>2]=0;J[c+4>>2]=0;J[g>>2]=c;d=c;f=J[J[b>>2]>>2];if(f){J[b>>2]=f;d=J[g>>2]}Ic(J[b+4>>2],d);J[b+8>>2]=J[b+8>>2]+1;b=1}H[a+4|0]=b;J[a>>2]=c;bc=e+16|0;return}a=Z()|0;k2(e);ba(a|0);B()}function e7(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0);f=bc-16|0;bc=f;g=!a;a:{if(g)break a;g=g?0:J[a>>2];j=sn(g);if((g|0)<=0)break a;while(1){d= -f+8|0;h=f+12|0;if(h)J[h>>2]=0;if(d)J[d>>2]=0;b:{if(!a|(i|0)<0|J[a>>2]<=(i|0))break b;e=J[J[a+12>>2]+(i<<2)>>2];if(!e)break b;J[e+16>>2]=J[e+16>>2]+1;if(h)J[h>>2]=0;if(d)J[d>>2]=0;if(h)J[h>>2]=J[e+8>>2];if(d)J[d>>2]=J[e+12>>2];d=J[e+16>>2]-1|0;J[e+16>>2]=d;if((d|0)>0)break b;qc(e)}k=Q(0);c:{if(J[f+12>>2]>(b|0)|J[f+8>>2]>(c|0))break c;k=Q(1)}_h(j,k);i=i+1|0;if((g|0)!=(i|0))continue;break}}bc=f+16|0;return j}function MPa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=rc(24);c=J[a+12>>2];d=J[J[c>>2]+8>>2];J[695492]= -0;c=$(d|0,c|0)|0;d=J[695492];J[695492]=0;a:{if((d|0)==1)break a;d=J[a+16>>2];J[b+16>>2]=d;J[b+12>>2]=c;J[b>>2]=2206100;J[b+4>>2]=15;J[b+8>>2]=0;e=J[J[c>>2]+28>>2];J[695492]=0;e=$(e|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[695492]=0;d=aa(3376,P(d+1|0,e)|0,1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b+20>>2]=d;J[b+4>>2]=J[c+4>>2];c=J[a+16>>2];e=J[a+20>>2];a=J[a+12>>2];tc(d,e,P(gc[J[J[a>>2]+28>>2]](a)|0,c+1|0));return b|0}a=Z()|0;qc(b);ba(a|0);B()}function MJ(a){var b=0,c=0,d=0; -d=bc-16|0;bc=d;b=gc[J[659447]](36)|0;a:{if(!b){J[d>>2]=5402;Cc(0,0,0,0,0,8,2,3,5402,0,0,0,32863,d);b=0;break a}J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;c=b+16|0;J[c>>2]=0;J[c+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;c=hr(J[659448]<<1);J[b+16>>2]=c;if(!c){gc[J[659451]](b);b=0;break a}b:{if(J[c+32>>2]|(J[c+12>>2]&-2)==2)break b;J[c+12>>2]=0;c=J[c+28>>2];if(!c)break b;J[c+12>>2]=0}c=WJ(a);J[b+12>>2]=c;a=0;if(c)a=hr(J[659448]<<1);J[b+8>>2]=0;J[b+20>>2]=a;J[b+32>>2]=0;J[b+24>>2]=-1;J[b>>2]= -0;J[b+4>>2]=0}bc=d+16|0;return b}function pv(a,b,c){var d=0,e=0,f=0;a:{b:{c:{d=J[b>>2];if(!d){if(J[b+8>>2]<=0)break b;c=0;if(a)break c;while(1){rd(0,J[J[b+16>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}break b}if(!a|!c)break a;bf(a,d,c);pe(a,d,c);return}while(1){f=c<<2;d=J[f+J[b+16>>2]>>2];d:{if(!d)break d;e=J[a+272>>2];if(!e)break d;bf(a,d,e);pe(a,d,e);d=J[J[b+16>>2]+f>>2]}rd(a,d);c=c+1|0;if((c|0)>2])continue;break}}if(J[b+12>>2])rd(a,J[b+16>>2]);c=J[a+272>>2];d=J[a+228>>2]; -e:{if(c>>>0<=d>>>0)break e;b=J[a+268>>2];if(!b)break e;c=c-d|0;bf(a,b,c);pe(a,b,c)}sU(a)}}function GVa(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;jn(c,0,d,0,J[a+272>>2],J[a+28>>2]);g=J[a+272>>2];a:{if((g|0)<=0)break a;c=P(J[b+36>>2],J[b+28>>2]);b=J[a+28>>2];c=c-b|0;if((c|0)<=0)break a;a=0;if(g>>>0>=4){j=g&-4;while(1){e=a<<2;f=b+J[e+d>>2]|0;wc(f,K[f-1|0],c);f=b+J[(e|4)+d>>2]|0;wc(f,K[f-1|0],c);f=b+J[(e|8)+d>>2]|0;wc(f,K[f-1|0],c);e=b+J[(e|12)+d>>2]|0;wc(e,K[e-1|0],c);a=a+4|0;h=h+ -4|0;if((j|0)!=(h|0))continue;break}}g=g&3;if(!g)break a;while(1){e=b+J[(a<<2)+d>>2]|0;wc(e,K[e-1|0],c);a=a+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}}function $ra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=bc-32|0;bc=g;a:{e=J[a+24>>2];b:{if(!(J[a+36>>2]<0?e:0)){a=Kc(g+8|0,2390063,2378846,480,2415195,0);break b}d=J[a+28>>2];f=J[a+32>>2];if((d|0)<(f|0)){d=J[a+16>>2];gc[J[J[d>>2]+20>>2]](d,f,0,0)|0;d=J[a+32>>2];J[a+28>>2]=d;e=J[a+24>>2]}e=J[e+8>>2];if((e|0)>=(d|0))break a;a=Kc(g+8|0,2390175,2378846, -488,2415195,0)}J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0)}B()}f=J[a+16>>2];b=gc[J[J[f>>2]+8>>2]](f,b,(e|0)<(c+d|0)?e-d|0:c)|0;J[a+28>>2]=b+J[a+28>>2];bc=g+32|0;return b|0}function $oa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=bc-32|0;bc=f;a:{b:{c=J[a+4>>2];if(J[c+4>>2]>=2){d=rc(52);J[695492]=0;c=aa(5267,d|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[c+4>>2]=J[c+4>>2]+1;d=J[a+4>>2];c:{if(!d)break c;e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(e)break c;gc[J[J[d>>2]+ -4>>2]](d)}J[a+4>>2]=c}if(!(J[c+20>>2]<=(b|0)&J[c+24>>2]>=(b|0))){a=Kc(f+8|0,18069,12634,545,19867,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}bc=f+32|0;return J[c+8>>2]+(b-J[c+12>>2]<<3)|0}a=Z()|0;qc(d);ba(a|0);B()}B()}function gJ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=J[a+4>>2];if(!c)break a;e=a+4|0;d=e;while(1){f=op(c+16|0,b);d=f?d:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(e|0))break a;if(op(b,d+16|0))break a;b=J[d+24>>2];if(b){c= -J[b+32>>2];if(c)qc(c);c=J[b+36>>2];if(c)qc(c);if(H[b+31|0]<0)qc(J[b+20>>2]);if(H[b+19|0]<0)qc(J[b+8>>2]);qc(b)}b=J[d+4>>2];b:{if(!b){b=d;while(1){c=J[b+8>>2];e=J[c>>2]!=(b|0);b=c;if(e)continue;break}break b}while(1){c=b;b=J[b>>2];if(b)continue;break}}if(J[a>>2]==(d|0))J[a>>2]=c;J[a+8>>2]=J[a+8>>2]-1;BC(J[a+4>>2],d);qc(d)}}function z9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+20>>2]=0;a:{d=J[a+4>>2];b:{c:{if(!d)break c;b=J[c+8>>2];d:{if(b&7)break d;e=J[c+64>>2];if(!((e|0)<0|J[c+60>>2]<(e|0))){J[c+8>> -2]=b|4;break d}b=J[c+28>>2];J[c+28>>2]=b-1;e:{if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;b=K[b|0];break e}b=jd(c,1);if((b|0)==-1)break d;d=J[a+4>>2]}H[a+12|0]=b;b=-1;d=d-1|0;J[a+16>>2]=d;if(!d)break a;d=zc(d);J[a+20>>2]=d;if(!d)break b;b=0;if((li(c,d,J[a+16>>2])|0)==J[a+16>>2])break b}a=J[a+20>>2];if(!a)break c;qc(a)}b=-1}return b|0}J[a+20>>2]=0;return 0}function m0a(a,b){a=a|0;b=b|0;var c=0;c=J[a+8>>2];a:{b:{if((b|0)<=1){J[c+48>>2]=0;H[c+68|0]=0;J[c+60>>2]=0;I[c+52>>1]=0;if((b| -0)!=1){I[c+54>>1]=0;I[c+56>>1]=0;I[c+58>>1]=0;if(K[c+99|0]!=107)break a;if(J[c+64>>2]!=1)break b;b=J[c+40>>2];H[b+36|0]=0;J[b+44>>2]=0;J[b+48>>2]=0;break b}if(K[c+99|0]!=107|J[c+64>>2]!=1)break a;a=J[c+40>>2];H[a+36|0]=0;J[a+44>>2]=0;J[a+48>>2]=0;return}I[c+54>>1]=0;I[c+56>>1]=0;I[c+58>>1]=0;if(K[c+99|0]!=107)break a}if(!K[a+63|0]){J[a+76>>2]=1126769691;H[a+63|0]=4}if(J[c+64>>2]!=1)break a;a=J[c+40>>2];J[a+52>>2]=1;J[a+56>>2]=0}}function Voa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;b=J[b>> -2];e=J[(b?b+12|0:2728584)>>2];f=ch(d+4|0,d+12|0,P(Qc(e),3)+1|0,1);b=J[d+12>>2];while(1){a:{b:{c=K[e|0];if((c|0)!=47){if(c){c:{if(!((c-48&255)>>>0<10|((c&223)-65&255)>>>0<26))if(!pg(22223,c,15))break c;H[b|0]=c;break a}H[b|0]=37;H[b+2|0]=K[(c&15)+2426720|0];H[b+1|0]=K[(c>>>4|0)+2426720|0];b=b+2|0;break a}H[b|0]=0;J[695492]=0;aa(6080,a|0,J[d+12>>2])|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b;a=Z()|0;_c(f);ba(a|0);B()}H[b|0]=47;break a}_c(f);bc=d+16|0;return}b=b+1|0;e=e+1|0;continue}}function V0(a, -b,c){var d=0,e=0,f=0;d=0;a:{if(J[c>>2]>0)break a;e=J[a+4>>2];d=1;if((e|0)>=(b|0))break a;b:{d=b+e|0;if((d|0)<=(b|0)|(d|0)<=0)break b;e=J[a+52>>2];f=Wh(d);if(!f)break b;if((e|0)>=0){b=J[a+4>>2];c=e+1|0;b=(b|0)<(c|0)?b:c;tc(f,J[a>>2],(b|0)<(d|0)?b:d)}if(K[a+8|0])Gf(J[a>>2]);H[a+8|0]=1;J[a+4>>2]=d;J[a>>2]=f;return 1}c:{if((b|0)<=0)break c;d=J[a+52>>2];e=Wh(b);if(!e)break c;if((d|0)>=0){c=J[a+4>>2];d=d+1|0;c=(c|0)<(d|0)?c:d;tc(e,J[a>>2],(b|0)>(c|0)?c:b)}if(K[a+8|0])Gf(J[a>>2]);H[a+8|0]=1;J[a+4>>2]=b; -J[a>>2]=e;return 1}J[c>>2]=7;d=0}return d}function r3a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[c>>2]=-1;d=J[a+188>>2];if(!d)return 0;if(J[a+216>>2])return b|0;e=J[d+36>>2];if(!e)return b|0;if((e|0)>0){e=0;while(1){g=d;d=J[J[d+40>>2]+(e<<2)>>2];a:{if(wr(g,d))break a;b:{d=J[d+4>>2];if((d|0)<=1937337697){if(!d)break b;if((d|0)!=1634889070)break a;break b}if((d|0)==1937337698)break b;if((d|0)!=1970170211)break a;f=0;d=rh(J[a+188>>2],b);if(!d)break a;J[c>>2]=e;return d|0}f=rh(J[a+188>>2],b);if(!f){f= -0;break a}J[c>>2]=e}e=e+1|0;d=J[a+188>>2];if((e|0)>2])continue;break}}return f|0}function m4a(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=Q(0),l=Q(0),m=Q(0),n=0;g=bc-16|0;bc=g;a:{b:{i=a+16|0;if(J[i+84>>2]>0){h=J[a+8>>2];if(h)break b}J[b>>2]=0;J[c>>2]=0;J[d>>2]=0;J[e>>2]=0;J[f>>2]=0;a=0;break a}N[g+12>>2]=N[a+24>>2];m=N[a+28>>2];N[g+4>>2]=N[a+32>>2];j=J[h+188>>2];n=I[j+82>>1];k=Q(O[h+112>>3]/1E3*O[h+128>>3]/72);l=Q(Q(I[j+80>>1])*k);N[g>>2]=N[a+36>>2]-l;N[g+8>>2]= -m-l;r2(i,g+12|0,g+8|0);r2(i,g+4|0,g);N[b>>2]=N[g+12>>2];N[c>>2]=N[g+8>>2];N[d>>2]=N[g+4>>2];N[e>>2]=N[g>>2];N[f>>2]=Q(n|0)*k;a=1}bc=g+16|0;return a|0}function fX(){var a=0,b=0,c=0;a:{b=ye(1,216);if(b){J[b>>2]=1;H[b+176|0]=K[b+176|0]|6;a=ye(1,5644);J[b+12>>2]=a;if(!a)break a;a=ye(1,1E3);J[b+16>>2]=a;if(!a)break a;J[b+48>>2]=0;J[b+52>>2]=0;J[b+44>>2]=-1;J[b+20>>2]=1E3;b:{c=ye(1,48);if(c){J[c+24>>2]=0;J[c+32>>2]=100;a=ye(100,24);J[c+28>>2]=a;if(a)break b;qc(c)}J[b+188>>2]=0;break a}J[c+40>>2]=0;J[b+ -188>>2]=c;a=mA();J[b+184>>2]=a;if(!a)break a;a=mA();J[b+180>>2]=a;if(!a)break a;c:if(!Hi(2351790))break c;a=uW();J[b+200>>2]=a;if(!a){a=uW();J[b+200>>2]=a;if(!a)break a}}else b=0;return b}mH(b);return 0}function Oqb(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;var h=0,i=0,j=0;a:{if(f){if(((c+1|0)/2|0)<=(b|0)){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){H[g|0]=K[f|0];b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+1|0]=b;f=f+2|0;e=e+2|0;g=g+2|0;a=a+1|0;if((d|0)!= -(a|0))continue;break}break a}if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){H[g|0]=K[e|0];b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+1|0]=b;f=f+2|0;e=e+2|0;g=g+2|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}tc(g,e,d<<1)}return 0}function HLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if((c|0)<=0)return 0;f=a+40|0;e=J[a+296>>2];while(1){a:{d=J[a+300>>2];if(e>>>0>=d>>>0){J[a+300>>2]=f;J[a+296>>2]=f;e=J[a+304>>2]+(d-f|0)|0;J[a+304>>2]=e;if(J[a+32>>2]){d=J[a+36>>2]+ -J[a+28>>2]|0;if((d|0)<=(e|0))break a;d=(d|0)>=(e+256|0)?256:d-e|0}else d=256;h=J[a+24>>2];bB(J[h>>2],e,0);d=Yd(f,1,d,J[h>>2])+f|0;J[a+300>>2]=d;e=J[a+296>>2];if(e>>>0>=d>>>0)break a}h=e;e=d-e|0;d=c-g|0;d=(d|0)>(e|0)?e:d;tc(b+g|0,h,d);e=d+J[a+296>>2]|0;J[a+296>>2]=e;g=d+g|0;if((g|0)<(c|0))continue}break}return g|0}function wJa(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;a:{if(!J[a+144>>2])break a;c=J[b+596>>2];if(J[c+28>>2]!=1)break a;c=J[J[c+24>>2]>>2];if(J[c+12>>2]!=2)break a; -f=O[b+56>>3];d=O[b+24>>3];k=J[c>>2];g=O[k+8>>3];e=O[b+40>>3];c=J[c+4>>2];l=O[c+8>>3];h=f+(d*g+e*l);j=d;d=O[k>>3];i=O[c>>3];f=f+(j*d+i*e);e=O[b+48>>3];m=O[b+16>>3];j=i;i=O[b+32>>3];d=e+(m*d+j*i);g=e+(m*g+i*l);if(d!=g&f!=h)break a;b=J[J[a+116>>2]+212>>2];a=rc(40);c=f>h;e=c?h:f;h=c?f:h;J[a+32>>2]=e==h;O[a+24>>3]=h;c=d>g;O[a+16>>3]=c?d:g;O[a+8>>3]=e;O[a>>3]=c?g:d;id(b,a)}}function TS(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=(c|0)){c=(c-b|0)+b|0;f=J[a+4>>2];a:{if((c|0)==(f|0)){e=b;break a}e= -b;while(1){g=J[c>>2];h=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;d=J[e+4>>2];J[e>>2]=g;J[e+4>>2]=h;b:{if(!d)break b;g=J[d+4>>2];J[d+4>>2]=g-1;if(g)break b;gc[J[J[d>>2]+8>>2]](d);Vc(d)}e=e+8|0;c=c+8|0;if((f|0)!=(c|0))continue;break}c=J[a+4>>2]}if((c|0)!=(e|0))while(1){c=c-8|0;d=J[c+4>>2];c:{if(!d)break c;f=J[d+4>>2];J[d+4>>2]=f-1;if(f)break c;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if((c|0)!=(e|0))continue;break}J[a+4>>2]=e}return b|0}function LXa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=bc-16|0;bc=c;a:{if((b|0)<0)break a; -b=J[a+104>>2];J[c+12>>2]=1;gc[J[J[b>>2]+308>>2]](b,c+12|0)|0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=1072693248;J[a+128>>2]=0;J[a+132>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=1072693248;J[a+152>>2]=0;J[a+156>>2]=0;I[a+202>>1]=0;I[a+204>>1]=0;b:{c:{b=J[a+108>>2]-6|0;if(b){if((b|0)==12)break c;break b}b=J[a+104>>2];J[c+8>>2]=0;d=a,e=!(gc[J[J[b>>2]+416>>2]](b,826368,c+8|0)|0),H[d+220|0]=e;break a}H[a+220|0]=1;break a}H[a+220|0]=0}bc=c+16|0}function Fj(a,b){var c=0,d= -0,e=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=jd(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break d}a=jd(a,1);if((a|0)==-1)break b}J[b>>2]=e<<8|a;c=0}return c}J[a+ -8>>2]=d|4;return-1}function jTa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-48|0;bc=c;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;d=J[a>>2];a:{if(J[d+24>>2]){cm(a,J[a+32>>2],804958,b);break a}gp(b,J[J[d>>2]+24>>2]);b:{if(J[Bc(J[a+32>>2],784444,c+32|0,0)>>2]==6){d=J[c+40>>2];if(J[d+12>>2]<=0)break b;a=0;while(1){Mc(d,a,c+16|0,0);c:{if(J[c+16>>2]!=7)break c;d=n_(J[c+24>>2],c);if(J[d>>2]==7){Dg(J[b+8>>2],d);break c}uc(d)}uc(c+16|0);a=a+1|0;d=J[c+40>>2];if((a|0)>2])continue;break}break b}a=n_(J[a+32>>2],c); -if(J[a>>2]==7){Dg(J[b+8>>2],a);break b}uc(a)}uc(c+32|0)}bc=c+48|0;return b|0}function dSa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+116>>2];b:{if((gc[J[J[b>>2]+12>>2]](b)|0)==10){Rq(a,0);break b}b=J[a+8>>2];gc[J[J[b>>2]+204>>2]](b,J[a+28>>2])}b=J[J[a+28>>2]+120>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==10){mt(a);break a}b=J[a+8>>2];gc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>> -2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}}function cSa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+116>>2];b:{if((gc[J[J[b>>2]+12>>2]](b)|0)==10){Rq(a,1);break b}b=J[a+8>>2];gc[J[J[b>>2]+208>>2]](b,J[a+28>>2])}b=J[J[a+28>>2]+120>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==10){mt(a);break a}b=J[a+8>>2];gc[J[J[b>>2]+200>> -2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}}function Tu(a){var b=0,c=0,d=0,e=0,f=0,g=0;A(+a);e=v(1)|0;g=v(0)|0;c=e&2147483647;if(c>>>0>=1072693248){if(!(c-1072693248|g))return a*1.5707963267948966+7.52316384526264E-37;return 0/(a-a)}a:{if(c>>>0<=1071644671){if(c+-1048576>>>0<1044381696)break a;return a*Uu(a*a)+a}b=(1-R(a))*.5;a=Y(b);f=Uu(b);b:{if(c>>> -0>=1072640819){a=a*f+a;a=1.5707963267948966-(a+a+-6.123233995736766E-17);break b}A(+a);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);d=b;b=+z();d=(d-b*b)/(a+b);a=.7853981633974483-(b+b)-((a+a)*f-(6.123233995736766E-17-(d+d)))+.7853981633974483}a=(e|0)<0?-a:a}return a}function TQa(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;c=J[a+28>>2];e=J[c+596>>2];if(!(J[e+28>>2]>0|J[e>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>> -2]](a)|0}xc(1,b,820757,0);return}g=O[b+24>>3];a=J[b+24>>2];d=O[b+40>>3];h=J[b+40>>2];i=O[c+608>>3];j=O[b+8>>3];k=J[b+8>>2];l=J[b>>2];m=J[b+16>>2];n=J[b+32>>2];f=J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3];O[c+608>>3]=f;o=O[c+600>>3];d=(n|0)==1?+(h|0):d;O[c+600>>3]=d;_l(e,o,i,(l|0)==1?+(k|0):j,(m|0)==1?+(a|0):g,d,f)}function F6(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!a)break a;b:{c:{b=J[a+8>>2];switch(b|0){case 0:break a;case 1:break b;default:break c}}g=b-1|0;h=g&3;d=1;if(b-2>>>0>=3){k=g&-4; -while(1){c=J[a>>2];b=e<<2;f=d<<2;J[c+b>>2]=J[c+f>>2];c=J[a>>2];J[c+(b|4)>>2]=J[(c+f|0)+4>>2];c=J[a>>2];J[c+(b|8)>>2]=J[(c+f|0)+8>>2];c=b|12;b=J[a>>2];J[c+b>>2]=J[(b+f|0)+12>>2];d=d+4|0;e=e+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}if(!h)break b;while(1){b=J[a>>2];J[b+(e<<2)>>2]=J[b+(d<<2)>>2];d=d+1|0;e=e+1|0;j=j+1|0;if((j|0)!=(h|0))continue;break}}J[a+8>>2]=g}}function jib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[a+68|0]=1;J[a+64>>2]=0;J[a+8>>2]=d;J[a+4>>2]=b;J[a>>2]=J[b+100>>2];a:{if(!d)break a; -b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;to(b);b=J[J[c+40>>2]>>2];J[a+72>>2]=0;J[a+76>>2]=b;if(!e)break a;J[a+72>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;b=J[65283];J[a+80>>2]=J[65282];J[a+84>>2]=b;b=J[65285];J[a+88>>2]=J[65284];J[a+92>>2]=b;b=J[65287];J[a+96>>2]=J[65286];J[a+100>>2]=b;b=J[65289];J[a+104>>2]=J[65288];J[a+108>>2]=b}function W0(a){a=a|0;var b=0,c=0;c=J[a+8>>2];if(c){b=J[c>>2];if(b)Je(b);b=J[c+4>>2]; -if(b)Je(b);b=J[c+8>>2];if(b)Je(b);b=J[c+12>>2];if(b)Je(b);b=J[c+16>>2];if(b)Je(b);b=J[c+20>>2];if(b)Je(b);b=J[c+24>>2];if(b)Je(b);b=J[c+28>>2];if(b)Je(b);b=J[c+32>>2];if(b)Je(b);b=J[c+36>>2];if(b)Je(b);b=J[c+40>>2];if(b)Je(b);b=J[c+44>>2];if(b)Je(b);b=J[c+48>>2];if(b)Je(b);b=J[c+52>>2];if(b)Je(b);b=J[c+56>>2];if(b)Je(b);b=J[c+60>>2];if(b)Je(b);b=J[c+64>>2];if(b)Je(b);b=J[c+68>>2];if(b)Je(b);b=J[c+72>>2];if(b)Je(b);c=J[c+76>>2];if(c)Je(c);Gf(J[a+8>>2])}}function ei(a,b,c){a=a|0;b=b|0;c=c|0;var d=0, -e=0,f=0;e=bc-16|0;bc=e;f=J[c>>2];d=J[f+8>>2];a:{if(d){if(J[b+12>>2]<0)J[b+12>>2]=J[d+32>>2];J[d+4>>2]=J[d+4>>2]+1;J[a>>2]=J[f+8>>2];break a}Iq(e,f,1);b:{d=J[e+8>>2];c:{if(d)while(1){J[695492]=0;ca(5350,a|0,b|0,d+8|0);f=J[695492];J[695492]=0;if((f|0)==1)break c;if(J[a>>2]){if(J[b+12>>2]>=0)break b;J[b+12>>2]=J[J[J[c>>2]+8>>2]+32>>2];break b}J[a>>2]=0;d=J[d>>2];if(d)continue;break}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;$c(e);ba(a|0);B()}$c(e)}bc=e+ -16|0}function Pqb(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;var h=0,i=0,j=0;a:{if(f){if(((c+1|0)/2|0)<=(b|0)){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g|0]=b;H[g+1|0]=K[f+1|0];g=g+2|0;f=f+2|0;e=e+2|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g|0]=b;H[g+1|0]=K[e+1|0];g=g+2|0;e=e+2|0;f=f+2|0;a=a+1|0;if((d| -0)!=(a|0))continue;break}break a}tc(g,e,d<<1)}return 0}function BQa(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{c=J[a+16>>2];if(c){b=rc(8);J[695492]=0;c=aa(3183,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;r_(c);b=J[c+4>>2];if(Be(b,810909))break d;if(Be(b,811467))break d;b=Be(b,811754);qc(Rc(c));if(b)break c}if(J[a+32>>2]>=0){e:switch(J[a+20>>2]-1|0){case 0:case 1:case 2:if(J[a+152>>2])break c;if(!J[a+1448>>2])return 1;return J[a+1460>>2]!=0|0;case 3:case 4:case 5:break a;default:break e}return!J[a+ -152>>2]|0}break a}qc(Rc(c))}return 0}a=Z()|0;qc(b);ba(a|0);B()}return!(J[a+152>>2]|J[a+1448>>2])|0}function gyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-80|0;bc=c;J[c+64>>2]=K[a+24|0];cd(b,208972,c- -64|0);d=K[a+25|0];e=K[a+29|0];J[c+56>>2]=K[a+20|0];J[c+52>>2]=e;J[c+48>>2]=d;cd(b,209055,c+48|0);d=K[a+13|0];J[c+36>>2]=J[a+16>>2];J[c+32>>2]=d;cd(b,209112,c+32|0);d=K[a+26|0];e=K[a+27|0];J[c+24>>2]=K[a+28|0];J[c+20>>2]=e;J[c+16>>2]=d;cd(b,209175,c+16|0);if(!(!(H[a+12|0]&1)|J[a+32>>2]<=0)){b=0;while(1){d= -(b<<1)+a|0;e=K[d+36|0];J[c+12>>2]=K[d+37|0];J[c+8>>2]=b;J[c+4>>2]=e;J[c>>2]=b;hd(209307,c);b=b+1|0;if((b|0)>2])continue;break}}bc=c+80|0;return 0}function cdb(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;e=J[a+532>>2];if(!e)return 6;f=J[e>>2];i=J[b>>2];a=6;a:{if(f>>>0>i>>>0)break a;b:{if(!f)break b;e=J[e+136>>2];a=0;if(f>>>0>=4){h=f&-4;while(1){d=a<<2;J[d+c>>2]=J[e+d>>2];g=d|4;J[g+c>>2]=J[e+g>>2];g=d|8;J[g+c>>2]=J[e+g>>2];d=d|12;J[d+c>>2]=J[e+d>>2];a=a+4|0;j=j+4|0;if((h|0)!= -(j|0))continue;break}}d=f&3;if(!d)break b;while(1){h=a<<2;J[h+c>>2]=J[e+h>>2];a=a+1|0;k=k+1|0;if((d|0)!=(k|0))continue;break}}a=0;if(f>>>0>=i>>>0)break a;wc((f<<2)+c|0,0,i-f<<2);a=0}J[b>>2]=f;return a|0}function Kk(a){var b=0,c=0,d=0,e=0;c=J[a+2564>>2];d=J[a+2552>>2];a:{if(c>>>0>=d>>>0)break a;e=J[a+2556>>2];if(e>>>0<=c>>>0)break a;d=d>>>0>>0?d:e;e=J[a+572>>2];while(1){J[a+572>>2]=c;b=gc[J[a+980>>2]](a)|0;if(b)break a;b=J[a+976>>2];if(b){b=gc[b|0](a)|0;if(b)break a}b=gc[J[a+968>>2]](a)|0;if(b)break a; -b:{if(!K[a+115|0]|J[a+12>>2]==2&M[a+320>>2]<301)break b;b=J[a+680>>2];if(J[a+516>>2]|(J[a+684>>2]-b|0)<51|((b+J[a+572>>2]|0)-J[a+664>>2]|0)%20)break b;H[a+502|0]=1}c=c+1|0;if(d>>>0>c>>>0)continue;break}J[a+572>>2]=e;J[a+2564>>2]=d;b=0}return b}function Ftb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-3|0){case 0:if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+ -1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];c=c+3|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function vp(a,b){var c=0,d=0,e=0,f=0;if(!b)return a;a:{if(!a){c=b;while(1){a=c;c=a+1|0;if(K[a|0])continue;break}a=a-b|0;if((a|0)<0)break a;c=gc[J[659450]](a+1|0)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0); -return 0}d=a;a=tc(c,b,a);H[d+a|0]=0;return a}d=b;while(1){c=d;d=c+1|0;if(K[c|0])continue;break}if((b|0)==(c|0))return a;f=c-b|0;if((f|0)<0)break a;d=0;if(K[a|0]){c=a;while(1){d=d+1|0;e=K[c+1|0];c=c+1|0;if(e)continue;break}}c=d+f|0;e=gc[J[659452]](a,c+1|0)|0;if(!e){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);return a}tc(d+e|0,b,f);H[c+e|0]=0}return e}function _5(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a)break a;b=J[a>>2];if(!b)return;f=J[b+96>>2];if(!f)return;c=J[b+108>>2];if(!c)break a;e=b+108|0;d=J[f+ -8>>2];while(1){if(J[c+8>>2]!=(a|0)){c=J[c+4>>2];if(c)continue;break a}break}g=J[c>>2];h=g?g+4|0:e;e=J[c+4>>2];J[h>>2]=e;J[(e?e:b+112|0)>>2]=g;gc[J[d+8>>2]](d,c);b:{if(J[b+88>>2]!=(a|0))break b;J[b+88>>2]=0;c=J[b+108>>2];if(!c)break b;J[b+88>>2]=J[c+8>>2]}b=J[a+8>>2];if(b)gc[b|0](a);b=J[J[f+12>>2]+60>>2];if(b)gc[b|0](a);b=J[a+40>>2];if(b)gc[J[d+8>>2]](d,b);J[a+40>>2]=0;gc[J[d+8>>2]](d,a)}}function Zu(a,b,c,d,e){var f=0,g=0,h=0;g=iz(a,b,c,d);f=J[e>>2];h=J[d>>2];if(O[f+32>>3]>3]){J[d>>2]=f;J[e>> -2]=h;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=J[d>>2];f=J[c>>2];if(!(O[e+32>>3]>3]))return g+1|0;J[c>>2]=e;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=J[c>>2];e=J[b>>2];if(!(O[d+32>>3]>3]))return g+2|0;J[b>>2]=d;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[b>>2];d=J[a>>2];if(!(O[c+32>>3]>3]))return g+3|0;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;g=g+4|0}return g}function Eq(a,b,c,d,e){var f=0,g=0,h=0;g=Yu(a,b,c,d);f=J[e>> -2];h=J[d>>2];if(O[f+16>>3]>3]){J[d>>2]=f;J[e>>2]=h;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=J[d>>2];f=J[c>>2];if(!(O[e+16>>3]>3]))return g+1|0;J[c>>2]=e;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=J[c>>2];e=J[b>>2];if(!(O[d+16>>3]>3]))return g+2|0;J[b>>2]=d;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[b>>2];d=J[a>>2];if(!(O[c+16>>3]>3]))return g+3|0;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;g=g+4|0}return g}function $r(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;i=bc-16|0;bc=i;a:{b:{if(!a)break b;g=J[e+12>>2];h=c-b>>2;if((h|0)>0)if((gc[J[J[a>>2]+48>>2]](a,b,h)|0)!=(h|0))break b;b=d-b>>2;g=(b|0)<(g|0)?g-b|0:0;if((g|0)>0){b=RE(i+4|0,g,f);c:{if(K[b+11|0]>>>7|0){f=J[b>>2];break c}f=b}J[695492]=0;f=ga(6670,a|0,f|0,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;Ze(b);if((f|0)!=(g|0))break b}b=d-c>>2;if((b|0)>0)if((gc[J[J[a>>2]+48>>2]](a,c,b)|0)!=(b|0))break b;J[e+12>>2]=0;j=a}bc=i+16|0;return j| -0}a=Z()|0;Ze(b);ba(a|0);B()}function pab(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;i=O[b>>3];j=O[c>>3];k=O[d>>3];l=O[e>>3];m=O[f>>3];n=O[g>>3];c=bc-16|0;bc=c;b=J[a+4>>2];J[c+4>>2]=0;o=Ke(b,c+4|0),p=4,H[o|0]=p;a=J[c+4>>2];O[a+8>>3]=j;O[a>>3]=i;J[b>>2]=J[b>>2]+1;J[c+8>>2]=0;o=Ke(b,c+8|0),p=4,H[o|0]=p;a=J[c+8>>2];O[a+8>>3]=l;O[a>>3]=k;J[b>>2]=J[b>>2]+1;J[c+12>>2]=0;o=Ke(b,c+12|0),p=4,H[o|0]= -p;a=J[c+12>>2];O[a+8>>3]=n;O[a>>3]=m;J[b>>2]=J[b>>2]+1;bc=c+16|0;h=0}return h|0}function qma(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=J[a+12>>2]+2312|0;c=J[c>>2];a:{if(!b)break a;if((c|0)==2){gc[J[J[a>>2]+4>>2]](a,O[b>>3],O[b+8>>3])|0;break a}if((c|0)<4)break a;if(!K[J[a+8>>2]+1|0])gc[J[J[a>>2]>>2]](a,O[b>>3],O[b+8>>3])|0;e=1;d=c>>>1|0;f=d-1|0;g=f&1;c=2;if((d|0)!=2){f=f&-2;c=0;while(1){d=(e<<4)+b|0;gc[J[J[a>>2]+4>>2]](a,O[d>>3],O[d+8>>3])|0;gc[J[J[a>>2]+4>>2]](a,O[d+16>>3],O[d+24>>3])|0;e=e+ -2|0;c=c+2|0;if((f|0)!=(c|0))continue;break}c=e<<1}if(!g)break a;b=(c<<3)+b|0;gc[J[J[a>>2]+4>>2]](a,O[b>>3],O[b+8>>3])|0}return 0}function p$(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{b:{c=gc[J[659450]](10)|0;if(!c)break b;b=K[J[J[a+36>>2]+16>>2]];if((b-48&255)>>>0>=10)break a;H[c|0]=b;Qd(a);if(K[J[J[a+36>>2]+16>>2]]!=46)break a;H[c+1|0]=46;Qd(a);g=2;d=K[J[J[a+36>>2]+16>>2]];c:{if((d-48&255)>>>0>9){b=c;e=2;break c}f=10;while(1){d:{e=g+1|0;if((f|0)>(e|0)){b=c;break d}f=f<<1;b=gc[J[659452]](c,f)|0;if(b)break d; -gc[J[659451]](c);break b}H[b+g|0]=d;Qd(a);g=e;c=b;d=K[J[J[a+36>>2]+16>>2]];if((d-48&255)>>>0<10)continue;break}}H[b+e|0]=0;return b}ke(a,0);return 0}gc[J[659451]](c);return 0}function eGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;J[c>>2]=0;e=d+20|0;gc[J[J[a>>2]+12>>2]](e,a,b);J[695492]=0;a=$(43,e|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)a:{if(a){J[d+16>>2]=0;J[695492]=0;J[d+12>>2]=0;a=ga(4741,e|0,d+16|0,d+12|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;if(a){J[695492]=0;a=$(4,12)| -0;b=J[695492];J[695492]=0;f=1;if((b|0)==1)break a;b=J[d+16>>2];e=J[d+12>>2];H[a+8|0]=1;J[a+4>>2]=e;J[a>>2]=b;J[c>>2]=a}}if(H[d+31|0]<0)qc(J[d+20>>2]);bc=d+32|0;return f|0}a=Z()|0;if(H[d+31|0]<0)qc(J[d+20>>2]);ba(a|0);B()}function as(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;i=bc-16|0;bc=i;a:{b:{if(!a)break b;g=J[e+12>>2];h=c-b|0;if((h|0)>0)if((gc[J[J[a>>2]+48>>2]](a,b,h)|0)!=(h|0))break b;b=d-b|0;g=(b|0)<(g|0)?g-b|0:0;if((g|0)>0){b=kQ(i+4|0,g,f);c:{if(K[b+11|0]>>>7|0){f= -J[b>>2];break c}f=b}J[695492]=0;f=ga(6658,a|0,f|0,g|0)|0;h=J[695492];J[695492]=0;if((h|0)==1)break a;ad(b);if((f|0)!=(g|0))break b}b=d-c|0;if((b|0)>0)if((gc[J[J[a>>2]+48>>2]](a,c,b)|0)!=(b|0))break b;J[e+12>>2]=0;j=a}bc=i+16|0;return j|0}a=Z()|0;ad(b);ba(a|0);B()}function Tq(a){var b=0;b=J[a+80>>2];J[a+80>>2]=b+1;H[(a+b|0)+16|0]=128;b=J[a+80>>2];if((b|0)>=57){if(b>>>0<=63)while(1){J[a+80>>2]=b+1;H[(a+b|0)+16|0]=0;b=J[a+80>>2];if((b|0)<64)continue;break}jp(a);b=J[a+80>>2]}if((b|0)<=55)while(1){J[a+ -80>>2]=b+1;H[(a+b|0)+16|0]=0;b=J[a+80>>2];if((b|0)<56)continue;break}J[a+80>>2]=64;H[a+79|0]=0;H[a+77|0]=0;H[a+78|0]=0;b=J[a+84>>2];H[a+76|0]=b>>29;H[a+75|0]=b>>>21;H[a+74|0]=b>>>13;H[a+73|0]=b>>>5;H[a+72|0]=b<<3;jp(a);b=J[a+4>>2];J[a+88>>2]=J[a>>2];J[a+92>>2]=b;b=J[a+12>>2];J[a+96>>2]=J[a+8>>2];J[a+100>>2]=b}function TD(a){var b=0,c=0;b=J[a+2552>>2];J[a+2552>>2]=b+1;a:{b:{if(!J[a+968>>2])break b;c:switch(K[a+336|0]-12|0){default:J[a+572>>2]=b;b=gc[J[a+980>>2]](a)|0;if(b)break a;b=J[a+976>>2];if(b){b= -gc[b|0](a)|0;if(b)break a}b=gc[J[a+968>>2]](a)|0;if(b)break a;if(!K[a+115|0]|J[a+12>>2]==2&M[a+320>>2]<301)break b;b=J[a+680>>2];if(J[a+516>>2]|(J[a+684>>2]-b|0)<51|((b+J[a+572>>2]|0)-J[a+664>>2]|0)%20)break b;H[a+502|0]=1;break b;case 0:case 2:break c}b=Kk(a);if(b)break a}b=0;c=J[a+2552>>2];if(c>>>0<=M[a+2560>>2])break a;J[a+2560>>2]=c}return b}function JB(a,b){var c=0;a:{if(!a|!b)break a;c=J[a+4>>2];if((c|0)==18|(a|0)==(b|0)|J[b+4>>2]==18)break a;b:{c:{if((c|0)==2)break c;c=J[a+20>>2];if(!c|!J[c+ -12>>2])break c;c=J[c+16>>2];if(!c)break c;if(!J[c+24>>2])break b}while(1){c=a;a=J[c+24>>2];if(a)continue;break}}zj(b);d:{a=J[b+4>>2];if(!(J[c+4>>2]!=3|(a|0)!=3)){if(J[c+8>>2]!=J[b+8>>2])break d;xB(c,J[b+40>>2]);gl(b);return}if((a|0)!=2)break d;b0(c,c,b);return}a=J[c+32>>2];if((a|0)!=J[b+32>>2])im(b,a);a=J[c+20>>2];J[b+24>>2]=0;J[b+28>>2]=c;J[b+20>>2]=a;J[c+24>>2]=b;if(a)J[a+16>>2]=b}}function Cw(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(!a|!b)break a;d=J[a+4>>2];e=gc[J[659447]](16)|0;if(!e)break a;J[e+8>> -2]=0;J[e+12>>2]=0;c=(d|0)<=0?256:d;J[e+4>>2]=c;d=P(c,24);c=gc[J[659447]](d)|0;J[e>>2]=c;if(!c){gc[J[659451]](e);return 0}wc(c,0,d);b:{if(!J[a>>2])break b;d=J[a+4>>2];if((d|0)<=0)break b;while(1){f=J[a>>2];c=f+P(g,24)|0;if(!(!J[c+20>>2]|!f)){while(1){d=J[c>>2];f=J[c+4>>2];Dw(e,f,J[c+8>>2],J[c+12>>2],gc[b|0](J[c+16>>2],f)|0);c=d;if(c)continue;break}d=J[a+4>>2]}g=g+1|0;if((g|0)<(d|0))continue;break}}J[e+8>>2]=J[a+8>>2];c=e}return c}function nca(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(pj(a,J[b+8>> -2],e)){if(!(J[b+28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{if(pj(a,J[b>>2],e)){if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!=1)break a;J[b+32>>2]=1;return}J[b+32>>2]=d;b:{if(J[b+44>>2]==4)break b;I[b+52>>1]=0;a=J[a+8>>2];gc[J[J[a>>2]+20>>2]](a,b,c,c,1,e);if(K[b+53|0]){J[b+44>>2]=3;if(!K[b+52|0])break b;break a}J[b+44>>2]=4}J[b+20>>2]=c;J[b+40>>2]=J[b+40>>2]+1;if(J[b+36>>2]!=1|J[b+24>>2]!=2)break a;H[b+54|0]=1;return}a=J[a+8>>2];gc[J[J[a>>2]+24>>2]](a,b,c,d,e)}}function a2a(a,b,c){a= -a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=K[b+11|0];e=f<<24>>24<0;a:{b:{c:{g=J[b+4>>2];d:{if(!(e?g:f))break d;e:{if(!e){J[d+8>>2]=J[b+8>>2];e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;break e}b=J[b>>2];J[695492]=0;ca(15,d|0,b|0,g|0);b=J[695492];J[695492]=0;if((b|0)==1)break b}J[695492]=0;ca(2829,d|0,a|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break c;if(H[d+11|0]>=0)break d;qc(J[d>>2])}bc=d+16|0;return}b=Z()|0;if(H[d+11|0]>=0)break a;qc(J[d>>2]);break a}b= -Z()|0}sg(a);ba(b|0);B()}function qab(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;d=1;a:{if(!J[a+16>>2])break a;f=J[a+20>>2];if(!f)break a;a=bc-16|0;bc=a;d=J[c>>2];if((d|0)>=4){c=J[f+4>>2];if(!K[c+25|0]){g=O[b>>3];h=O[b+8>>3];H[c+25|0]=1;J[a+8>>2]=0;j=Ke(c,a+8|0),k=1,H[j|0]=k;e=J[a+8>>2];O[e+8>>3]=h;O[e>>3]=g;J[c>>2]=J[c>>2]+1}e=d>>>1|0;d=1;while(1){c=(d<<4)+b|0;g=O[c>>3];h=O[c+8>>3];c=J[f+4>>2];J[a+12>>2]=0;j=Ke(c,a+12|0),k=2,H[j|0]=k;i=J[a+12>>2];O[i+8>>3]=h;O[i>>3]=g;J[c>>2]=J[c>> -2]+1;d=d+1|0;if((e|0)!=(d|0))continue;break}}bc=a+16|0;d=0}return d|0}function h5(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{a=J[a+20>>2];b:{if(!a)break b;c:{d:{b=L[a>>1];e=b<<16>>16;if((e|0)>=2){d=I[(J[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break d}if(e)break d;b=L[a+2>>1];break c}b=I[a+2>>1];if((d|0)!=(b|0))break c;break a}e:{if(b<<16>>16<2)break e;c=J[a+4>>2];f=c+(d<<3)|0;g=b&65535;c=c+(g<<3)|0;if(J[f>>2]!=J[c-8>>2]|J[f+4>>2]!=J[c-4>>2]|K[(J[a+8>>2]+g|0)-1|0]!=1)break e;b=b-1|0;I[a+2>>1]=b}if((e|0)<=0)break b; -c=d;d=(b<<16>>16)-1|0;if((c|0)==(d|0)){I[a+2>>1]=b-1;break a}I[(J[a+12>>2]+(e<<1)|0)-2>>1]=d}return}I[a>>1]=e-1}function g0(a,b){var c=0,d=0,e=0;a:{b:{c:{d:{if(!a|!b|J[a+4>>2]==18)break d;c=J[b+4>>2];if((c|0)==18)break d;if(!J[a+12>>2]){J[a+12>>2]=b;c=b;break a}if((c|0)!=3)break c;c=J[a+16>>2];if(J[c+4>>2]!=3|J[b+8>>2]!=J[c+8>>2])break c;xB(c,J[b+40>>2]);c=J[b+24>>2];gl(b);if(c)break b}return}c=b}b=J[a+16>>2];J[b+24>>2]=c;J[c+28>>2]=b}b=J[c+24>>2];if(b){d=c+24|0;while(1){J[c+20>>2]=a;e=J[a+32>>2]; -if((e|0)!=J[c+32>>2]){im(c,e);b=J[d>>2]}c=b;d=c+24|0;b=J[c+24>>2];if(b)continue;break}}J[c+20>>2]=a;b=J[a+32>>2];if((b|0)!=J[c+32>>2])im(c,b);J[a+16>>2]=c}function Nqb(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;var h=0,i=0,j=0;a:{if(f){if(!d)break a;a=c<<1;i=b<<1;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+1|0]=b;b=K[e+2|0];h=K[f+2|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c| -0)/(a|0)|0)|0;H[g+2|0]=b;b=K[e+3|0];h=K[f+3|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+3|0]=b;f=f+4|0;e=e+4|0;g=g+4|0;j=j+1|0;if((j|0)!=(d|0))continue;break}break a}tc(g,e,d<<2)}return 0}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;e=J[a>>2];f=e>>>8|0;g=J[a+4>>2];if(f>>>0>=g>>>0){c=J[a+8>>2];a:{if(f>>>0>>0){d=J[a+12>>2];break a}d=(c<<1)+512|0;d=rc(d>>>0>1073741823?-1:d<<2);h=c<<2;j=(d+h|0)+1024|0;i=J[a+12>>2];if(i){tc(d,i,h);tc(j,J[a+16>>2],h);qc(i);e=J[a>> -2];g=J[a+4>>2];c=J[a+8>>2]}J[a+16>>2]=j;J[a+12>>2]=d;J[a+8>>2]=c+256}c=f<<2;k=c+d|0,l=rc(4352),J[k>>2]=l;J[c+J[a+16>>2]>>2]=J[c+J[a+12>>2]>>2]+4096;J[a+4>>2]=g+1}c=b;b=f<<2;J[c>>2]=J[b+J[a+12>>2]>>2]+(e<<4&4080);return J[b+J[a+16>>2]>>2]+(e&255)|0}function xA(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a+32>>2]+4|0;J[a+32>>2]=e;f=J[a+36>>2];g=f-3|0;if(g>>>0>=e>>>0){c=e;while(1){if(!kd(c,797238,3)){d=rc(24);J[695492]=0;f=$(4,8)|0;g=J[695492];J[695492]=0;a:{b:{if((g|0)!=1){J[695492]=0;c=ga(3181,f|0,e|0,c-e|0)| -0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[d+4>>2]=0;J[d+8>>2]=0;J[d+20>>2]=c;J[d>>2]=2336568;J[d+12>>2]=0;J[d+16>>2]=0;gc[J[J[b>>2]+48>>2]](b,d);J[a+32>>2]=J[a+32>>2]+3;return}c=Z()|0;break a}c=Z()|0;qc(f)}qc(d);ba(c|0);B()}c=c+1|0;J[a+32>>2]=c;if(c>>>0<=g>>>0)continue;break}}J[a+32>>2]=f}function rja(a,b){a=a|0;b=b|0;var c=0,d=0;d=bc-16|0;bc=d;if((b&-2)==34676){a:{if(!Jm(a,93744,2)){Nc(J[a+628>>2],93720,70939,0);a=0;break a}c=zc(32);J[a+584>>2]=c;if(c){Hg(c,0,32);J[c+20>>2]=572;J[c+4>>2]=(b| -0)==34677;J[c>>2]=-1;J[a+556>>2]=573;J[a+548>>2]=574;J[a+516>>2]=575;J[a+572>>2]=576;J[a+564>>2]=577;J[a+560>>2]=578;J[a+552>>2]=579;J[a+524>>2]=580;J[c+24>>2]=J[a+672>>2];J[a+672>>2]=581;J[c+28>>2]=J[a+668>>2];J[a+668>>2]=582;a=1;break a}b=J[a+628>>2];J[d>>2]=J[a>>2];Nc(b,93720,71563,d);a=0}bc=d+16|0;return a|0}fa(69592,70356,1567,93720);B()}function ZXa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if((e|0)<=0)break a;f=J[a+28>>2];if(!f)break a;g=J[a+36>>2];l=f& --4;k=f&3;m=f-1>>>0<3;while(1){h=J[J[c>>2]+(d<<2)>>2];f=J[b>>2];i=0;a=0;j=0;if(!m)while(1){H[a+h|0]=K[f|0];f=f+g|0;H[(a|1)+h|0]=K[f|0];f=f+g|0;H[(a|2)+h|0]=K[f|0];f=f+g|0;H[(a|3)+h|0]=K[f|0];a=a+4|0;f=f+g|0;j=j+4|0;if((l|0)!=(j|0))continue;break}if(k)while(1){H[a+h|0]=K[f|0];a=a+1|0;f=f+g|0;i=i+1|0;if((i|0)!=(k|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=e-1|0;if(a)continue;break}}}function W1(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=bc-16|0;bc=e;g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<< -16|K[c+3|0]<<24);f=c+4|0;J[e+12>>2]=f;h=d;if((g|0)>0){f=0;a:{while(1){b:{if(H[b+11|0]>=0){J[e+8>>2]=J[b+8>>2];d=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=d;break b}Re(e,J[b>>2],J[b+4>>2])}J[695492]=0;d=aa(2824,e+12|0,e|0)|0;i=J[695492];J[695492]=0;if((i|0)!=1){if(H[e+11|0]<0)qc(J[e>>2]);$1(a,d);f=f+1|0;if((g|0)==(f|0))break a;continue}break}a=Z()|0;if(H[e+11|0]<0)qc(J[e>>2]);ba(a|0);B()}f=J[e+12>>2]}if(h>>>0>f-c>>>0)Y1(a,f);bc=e+16|0}function vG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(!K[2760124]){J[690030]= -0;H[2760124]=1}a:{b:{c=J[682142];if((c|0)<(b|0)){while(1){d=c;c=c<<1;if((b|0)>(d|0))continue;break}c=rc(20);J[c>>2]=2407348;J[c+4>>2]=0;J[695492]=0;b=d+4095&-4096;d=ha(5043,c+12|0,c+8|0,b|0,1)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;ci(d,1,0);e=J[695492];J[695492]=0;if((e|0)==1){b=Z()|0;_c(d);break a}d=J[c+8>>2];J[682142]=b;J[682141]=d;md(2760120,c)}b=J[690030];if(b){J[b+4>>2]=J[b+4>>2]+1;b=J[690030]}else b=0;J[a>>2]=b;return}b=Z()|0}qc(ed(c));ba(b|0);B()}function Ue(a,b){var c= -0,d=0,e=0;c=J[a+4>>2];a:{e=J[a+20>>2];b:{if(e){d=85;if(b>>>0>c>>>0)break b;d=J[a+28>>2];c:{d:{if((b|0)>0){c=gc[J[d+4>>2]](d,b)|0;if(c)break d;c=64;break a}c=6;if(b)break a;c=0;break c}e=J[a+20>>2]}J[a>>2]=c;e=gc[e|0](a,J[a+8>>2],c,b)|0;c=J[a>>2];if(b>>>0<=e>>>0)d=0;else{if(c)gc[J[d+8>>2]](d,c);c=0;J[a>>2]=0;d=85}J[a+32>>2]=c;J[a+36>>2]=c?b+c|0:0;J[a+8>>2]=e+J[a+8>>2];return d}e=J[a+8>>2];d=85;if(e>>>0>=c>>>0|c-e>>>0>>0)break b;J[a+8>>2]=b+e;c=e+J[a>>2]|0;J[a+32>>2]=c;J[a+36>>2]=b+c;d=0}return d}J[a>> -2]=0;return c}function D5(a){var b=0,c=0,d=0,e=0,f=0,g=0;J[a+28>>2]=4096;b=a+4168|0;J[a+24>>2]=b;J[a+8268>>2]=b;d=a+72|0;f=a+12|0;a:{while(1){if(!J[a+16>>2]){b=J[a>>2];c=J[b+20>>2];b:{if(c){c=gc[c|0](b,J[b+8>>2],d,4096)|0;if(c)break b;break a}e=J[b+4>>2];c=J[b+8>>2];if((e|0)==(c|0))break a;g=c+J[b>>2]|0;c=e-c|0;c=c>>>0>=4096?4096:c;tc(d,g,c)}J[b+8>>2]=J[b+8>>2]+c;J[a+16>>2]=c;J[a+12>>2]=d}b=zk(f,0);if(b){if((b|0)==1){b=J[a+24>>2];J[a+8272>>2]=b;return(b|0)==J[a+8268>>2]?85:0}break a}if(J[a+28>>2])continue; -break}return 0}J[a+8272>>2]=J[a+8268>>2];return 85}function c5(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=J[a+4>>2];a:{if(!J[J[d+128>>2]+52>>2]){d=18;if(b>>>0>255)break a;f=J[a+532>>2];if(!J[f+1188>>2])break a;h=gc[J[J[f+3088>>2]>>2]](b)|0;g=J[f+20>>2];if(!g)break a;f=J[f+1188>>2];b=0;while(1){if(L[f+(b<<1)>>1]!=(h|0)){b=b+1|0;if((g|0)!=(b|0))continue;break a}break}if((b|0)<0)break a;d=J[a+4>>2]}d=gc[J[a+596>>2]](d,b,e+12|0,e+8|0)|0;if(d)break a; -a=J[e+12>>2];J[c+4>>2]=a;b=J[e+8>>2];J[c+12>>2]=a;d=0;J[c+8>>2]=a?a+b|0:0}bc=e+16|0;return d}function Rhb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(K[a+64|0])break a;H[a+64|0]=1;e=J[a+20>>2];b:{if(K[a+65|0]){d=J[a+12>>2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=sh(d,0,1);if(d)break a}f=L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=sh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+ -65|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function fAa(a){a=a|0;var b=0,c=0,d=0;b=rc(72);J[b+28>>2]=0;J[b+32>>2]=0;J[b>>2]=2390152;J[b+4>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[695492]=0;c=b+28|0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;d=J[695492];J[695492]=0;a:{if((d|0)!=1){J[b+44>>2]=0;J[b+48>>2]=0;J[b+68>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[695492]=0;aa(5080,b+44|0,2389436)|0;d= -J[695492];J[695492]=0;if((d|0)==1){a=Z()|0;$c(c);break a}J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=-1;J[b+20>>2]=0;J[b+24>>2]=0;J[a>>2]=0;md(a,b);return}a=Z()|0}qc(ed(b));ba(a|0);B()}function cm(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=bc-32|0;bc=e;J[e+16>>2]=13;J[e>>2]=13;a:{if(h=J[Bc(b,c,d,0)>>2]!=5,i=0,j=J[J[d+8>>2]+16>>2]|J[d>>2]!=7,j?h:i)break a;uc(d);Bc(b,785271,e+16|0,0);b:{if(J[e+16>>2]!=7)break b;b=0;while(1){if(J[Bc(J[e+24>>2],c,d,0)>>2]!=5){uc(e+16|0);break a}uc(d);Bc(J[e+24>>2],785271,e,0);uc(e+ -16|0);f=J[e+12>>2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=f;g=J[e+4>>2];f=J[e>>2];J[e+16>>2]=f;J[e+20>>2]=g;if((f|0)!=7)break b;f=b>>>0<49;b=b+1|0;if(f)continue;break}}uc(e+16|0);Bc(J[J[a>>2]+16>>2],c,d,0)}bc=e+32|0;return d}function LDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;a:{if(M[b+4>>2]>=17){g=a+56|0;c=f+4|0;d=J[b>>2];b:{if(K[b+8|0]){e=0;if(!d)break b;d=J[d>>2]}e=d}d=Ps(c,e- -64|0,0,J[b+4>>2]-17|0);b=J[a+60>>2]-J[a+56>>2]>>3;while(1){c:{if((b|0)<=0){c=0;break c}b=b-1|0;c=J[a+56>>2]; -if(b>>>0>=J[a+60>>2]-c>>3>>>0){J[695492]=0;_(4980,g|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B()}c=J[c+(b<<3)>>2];J[695492]=0;c=dW(c,d);e=J[695492];J[695492]=0;if((e|0)==1)break a;if(!c)continue}break}Lc(d)}bc=f+16|0;return c|0}a=Z()|0;Lc(d);ba(a|0);B()}function n2(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;var h=0,i=Q(0),j=0,k=0,l=Q(0),m=Q(0),n=Q(0),o=0;k=J[a+8>>2];if(!k)return 0;gc[J[J[k>>2]+76>>2]](k,b,c,d,O[e>>3],0,0)|0;i=Q(O[b>>3]);l=Q(O[c>>3]);m=Q(O[d>>3]);n=Q(O[e>>3]);a= -a+16|0;O[a- -64>>3]=0;O[a+56>>3]=0;O[a+48>>3]=n;O[a+40>>3]=m;O[a+32>>3]=l;O[a+24>>3]=i;i=Q(Q(i*n)-Q(l*m));j=+i;h=1/j;h=i-.001?-1E3:h:h;O[a+72>>3]=i>=Q(0)?j<.001?1E3:h:h;j=O[a+72>>3];h=+Q(O[f>>3]);o=+Q(O[g>>3]);N[a>>2]=j*(h*O[a+48>>3]-o*O[a+40>>3]);N[a+4>>2]=j*(o*O[a+24>>3]-h*O[a+32>>3]);return 1}function k3a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=+J[a>>2]*.015625;g=+J[a+4>>2]*.015625;a=J[b>>2];c=J[a+16>>2];if((c|0)!=J[a+24>>2]){c=(c+J[a+12>>2]|0)-1|0;H[c|0]=K[c|0]&253;c=J[a+20>> -2];d=J[a+16>>2];a:{if((c|0)>(d|0)){c=J[a+12>>2];break a}if(!c){J[a+20>>2]=32;c=32}if((c|0)<=(d|0)){while(1){c=c<<1;if((d|0)>=(c|0))continue;break}J[a+20>>2]=c}h=a,i=Vd(J[a+8>>2],c<<4),J[h+8>>2]=i;c=Vd(J[a+12>>2],J[a+20>>2]);J[a+12>>2]=c;d=J[a+16>>2]}e=J[a+8>>2]+(d<<4)|0;O[e+8>>3]=g;O[e>>3]=f;H[c+d|0]=2;J[a+16>>2]=J[a+16>>2]+1}J[b+4>>2]=1;return 0}function ND(a){var b=0;a:{if(!K[a+498|0]){b:{c:switch(K[a+1112|0]-2|0){case 0:case 2:break c;default:break b}if(!J[a+436>>2]){J[a+1116>>2]=J[a+1144>>2]; -break b}b=Nx(a);if(b)break a}H[a+1112|0]=K[a+1080|0];J[a+1144>>2]=J[a+1084>>2];J[a+1120>>2]=J[a+1088>>2];H[a+1124|0]=K[a+1092|0];b=J[a+1100>>2];J[a+1128>>2]=J[a+1096>>2];J[a+1132>>2]=b;b=J[a+1108>>2];J[a+1136>>2]=J[a+1104>>2];J[a+1140>>2]=b}b=0;if(K[a+497|0])break a;if(!(J[a+440>>2]?K[a+1112|0]!=4:0)){b=Eo(a);if(b)break a}H[a+433|0]=1;J[a+436>>2]=J[a+436>>2]+1;b=0}H[a+498|0]=0;return b}function Lw(a,b,c,d){var e=0;e=bc-96|0;bc=e;a=jK(a,e+8|0,0,c,d);if(!(a|!b)){J[b>>2]=J[e+8>>2];J[b+4>>2]=J[e+12>> -2];J[b+8>>2]=J[e+16>>2];J[b+12>>2]=J[e+20>>2];J[b+16>>2]=J[e+24>>2];J[b+20>>2]=J[e+28>>2];J[b+32>>2]=J[e+48>>2];J[b+36>>2]=J[e+52>>2];J[b+40>>2]=J[e+56>>2];J[b+44>>2]=J[e+60>>2];J[b+48>>2]=J[e+64>>2];J[b+52>>2]=J[e+68>>2];c=J[e+76>>2];J[b+56>>2]=J[e+72>>2];J[b+60>>2]=c;d=J[e+84>>2];c=b- -64|0;J[c>>2]=J[e+80>>2];J[c+4>>2]=d;c=J[e+92>>2];J[b+72>>2]=J[e+88>>2];J[b+76>>2]=c;J[b+24>>2]=J[e+32>>2];J[b+28>>2]=J[e+40>>2]}bc=e+96|0;return a}function oRa(a,b,c){a=a|0;b=b|0;c=c|0;kI(J[a+28>>2],J[b>>2]==1?+J[b+ -8>>2]:O[b+8>>3],J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3],J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3],J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3],J[b+64>>2]==1?+J[b+72>>2]:O[b+72>>3],J[b+80>>2]==1?+J[b+88>>2]:O[b+88>>3]);c=J[a+8>>2];gc[J[J[c>>2]+76>>2]](c,J[a+28>>2],J[b>>2]==1?+J[b+8>>2]:O[b+8>>3],J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3],J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3],J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3],J[b+64>>2]==1?+J[b+72>>2]:O[b+72>>3],J[b+80>>2]==1?+J[b+88>>2]:O[b+88>>3]);J[a+32>>2]=1}function ks(a){var b=0, -c=0,d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>131071)break a;e=a&255;c=(e>>>0)/3|0;b=a>>>8|0;b=J[(((P(J[((a-P(c,3)&255)<<2)+2607828>>2],K[(c+P(K[b+2609200|0],86)|0)+2609200|0])>>>11>>>0)%6|0)+K[b+2611872|0]<<2)+2607840>>2];c=b>>8;b=b&255;if(b>>>0<=1)return(c&0-b)+a|0;b=c&255;if(!b)break a;c=c>>>8|0;while(1){f=b>>>1|0;d=f+c|0;g=K[(d<<1)+2608800|0];if((g|0)==(e|0)){c=J[(K[(d<<1)+2608801|0]<<2)+2607840>>2];b=c&255;if(b>>>0<=1)return(0-b&c>>8)+a|0;return a+1|0}h=d;d=e>>>0>>0;c=d?c:h;b=d?f:b-f|0;if(b)continue; -break}}return a}function Xwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+52>>2];if(J[a+4>>2]==16)c=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else c=J[a+36>>2];e=J[a+40>>2];gc[J[J[b>>2]+20>>2]](b,2)|0;g=c,h=gc[J[J[b>>2]+20>>2]](b,1)|0,J[g+4>>2]=h;g=c,h=gc[J[J[b>>2]+20>>2]](b,1)|0,J[g+8>>2]=h;g=c,h=gc[J[J[b>>2]+20>>2]](b,2)|0,J[g+12>>2]=h;g=c,h=gc[J[J[b>>2]+20>>2]](b,1)|0,J[g+16>>2]=h;f=gc[J[J[b>>2]+36>>2]](b)|0;if(J[e+16>>2]>0)while(1){J[J[c+1872>>2]+P(d,1076)>>2]=J[c+4>>2]&1;gc[J[J[b>>2]+28>>2]](b, -f);T8(a,d);d=d+1|0;if((d|0)>2])continue;break}}function WDa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=bc-16|0;bc=b;a:{c=J[a>>2];d=c;b:{if(!K[a+8|0])break b;d=0;if(!c)break b;d=J[c>>2]}a=Ve(d);if(a>>>0<1073741808){c:{if(a>>>0<=1){H[b+15|0]=a;c=b+4|0;break c}c=a|3;if(c>>>0>=1073741823)break a;e=c+1|0;c=rc(e<<2);J[b+12>>2]=e|-2147483648;J[b+4>>2]=c;J[b+8>>2]=a}a=a<<2;f=Zc(c,d,a)+a|0,g=0,J[f>>2]=g;J[695492]=0;a=ga(4968,b+4|0,0,10)|0;d=J[695492];J[695492]=0;if((d|0)!=1){if(H[b+15|0]<0)qc(J[b+4>>2]); -bc=b+16|0;return a|0}a=Z()|0;if(H[b+15|0]<0)qc(J[b+4>>2]);ba(a|0);B()}Id(b+4|0);B()}Sd();B()}function GX(a){a=a|0;var b=0,c=0,d=0,e=0;d=bc-16|0;bc=d;J[a>>2]=2336696;b=J[a+20>>2];if(b)qc(Rc(b));b=J[a+24>>2];J[695492]=0;da(3439,b|0,d+12|0);c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;while(1){J[695492]=0;c=Oi(b,d+12|0,d+8|0,d+4|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c){c=J[d+4>>2];if(!c)continue;e=J[c>>2];if(e)qc(Rc(e));e=J[c+4>>2];if(e)qc(Rc(e));qc(c);continue}break}qc(Fh(b));J[a>>2]= -2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}bc=d+16|0;return a|0}ea(0)|0;yc();B()}function xl(a,b,c){var d=0,e=0,f=0,g=0;d=bc-32|0;bc=d;e=b7(a,b,c,d+4|0);if(e){a=0;xf(b,d+28|0,d+24|0,0);Cr(c,d+16|0,d+20|0,d+8|0,d+12|0);if(e)uf(e,0,0,e?J[e>>2]:-1,e?J[e+4>>2]:-1,0,0,0,0);g=J[d+16>>2];a:{if((g|0)<=0)break a;f=J[d+20>>2];if((f|0)<=0)break a;while(1){b=0;if((f|0)>0){while(1){if(J[J[J[c+16>>2]+(a<<2)>>2]+(b<<2)>>2]==1){uf(e,b-J[d+12>>2]|0,a-J[d+8>>2]|0, -J[d+28>>2],J[d+24>>2],28,J[d+4>>2],0,0);f=J[d+20>>2]}b=b+1|0;if((f|0)>(b|0))continue;break}g=J[d+16>>2]}a=a+1|0;if((g|0)>(a|0))continue;break}}wd(d+4|0)}bc=d+32|0;return e}function vEa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=bc-16|0;bc=b;c=J[a>>2];a:if(K[a+8|0]){d=0;if(!c)break a;d=J[c>>2]}else d=c;b:{a=J[a+4>>2];if(a>>>0<1073741808){c:{if(a>>>0<=1){H[b+15|0]=a;c=b+4|0;break c}c=a|3;if(c>>>0>=1073741823)break b;e=c+1|0;c=rc(e<<2);J[b+12>>2]=e|-2147483648;J[b+4>>2]=c;J[b+8>>2]=a}a=a<<2;g=Zc(c,d, -a)+a|0,h=0,J[g>>2]=h;J[695492]=0;f=+Ja(4967,b+4|0,0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[b+15|0]<0)qc(J[b+4>>2]);bc=b+16|0;return+f}a=Z()|0;if(H[b+15|0]<0)qc(J[b+4>>2]);ba(a|0);B()}Id(b+4|0);B()}Sd();B()}function qd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a;a:{b:{c:{d:{if((e^b)&3)break d;d=(c|0)!=0;e:{if(!(b&3)|!c)break e;while(1){d=K[b|0];H[e|0]=d;if(!d)break a;e=e+1|0;c=c-1|0;d=(c|0)!=0;b=b+1|0;if(!(b&3))break e;if(c)continue;break}}if(!d)break b;if(!K[b|0])break a;if(c>>>0<4)break d;while(1){d= -J[b>>2];if((d^-1)&d-16843009&-2139062144)break c;J[e>>2]=d;e=e+4|0;b=b+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break b}while(1){d=K[b|0];H[e|0]=d;if(!d)break a;e=e+1|0;b=b+1|0;c=c-1|0;if(c)continue;break}}c=0}wc(e,0,c);return a|0}function nS(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2437856;c=J[a+124>>2];b=J[a+120>>2];if((c|0)!=(b|0))while(1){c=c-8|0;d=J[c+4>>2];a:{if(!d)break a;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break a;gc[J[J[d>>2]+8>>2]](d);Vc(d)}if((b|0)!=(c|0))continue;break}J[a+124>>2]=b;if(H[a+ -143|0]<0)qc(J[a+132>>2]);d=J[a+120>>2];if(d){b=d;c=J[a+124>>2];if((b|0)!=(c|0)){while(1){c=c-8|0;b=J[c+4>>2];b:{if(!b)break b;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break b;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((d|0)!=(c|0))continue;break}b=J[a+120>>2]}J[a+124>>2]=d;qc(b)}return a|0}function i6(a,b){var c=0,d=0,e=0,f=0,g=0;b=J[a+84>>2]+(J[a+48>>2]+b|0)|0;d=J[a+12>>2];a:{if(b>>>0<=d>>>0)break a;b=b+1|0;if((b|d)<0)return 6;f=J[a>>2];g=J[a+52>>2];b:{c:{e=b&-2;d:{if(!e){b=0;if(!g)break d;gc[J[f+8>>2]](f,g);J[a+52>> -2]=0;break b}c=10;if((e|0)>67108863)break a;e:{if(!d){b=gc[J[f+4>>2]](f,e<<5)|0;c=!b<<6;break e}c=gc[J[f+12>>2]](f,d<<5,e<<5,g)|0;b=c?c:g;c=!c<<6}if(c|(d|0)>=(e|0)|!b)break c;wc((d<<5)+b|0,0,e-d<<5)}J[a+52>>2]=b;break b}J[a+52>>2]=b;if(c)break a}J[a+12>>2]=e;c=0;J[a+88>>2]=b?(J[a+48>>2]<<5)+b|0:0}return c}function zI(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;while(1){f=h<<3;d=f+b|0;e=J[d>>2];i=c+f|0;a:{if(J[i>>2]){if(!e){J[d>>2]=1;j=d,k=vd(256,8),J[j+4>>2]=k;f=0;while(1){e=f<<3;J[e+J[d+4>>2]>>2]= -0;J[(e+J[d+4>>2]|0)+4>>2]=0;g=e|8;J[g+J[d+4>>2]>>2]=0;J[(g+J[d+4>>2]|0)+4>>2]=0;g=e|16;J[g+J[d+4>>2]>>2]=0;J[(g+J[d+4>>2]|0)+4>>2]=0;e=e|24;J[e+J[d+4>>2]>>2]=0;J[(e+J[d+4>>2]|0)+4>>2]=0;f=f+4|0;if((f|0)!=256)continue;break}}zI(a,J[d+4>>2],J[i+4>>2]);break a}if(e){xc(1,-1,791302,0);break a}J[d+4>>2]=J[i+4>>2]}h=h+1|0;if((h|0)!=256)continue;break}}function z4(a,b){var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;J[d+12>>2]=0;e=Gg(a,d+12|0);c=J[d+12>>2];a:{if(c)break a;if((e|0)==-128){c=8;break a}f=b;b=e&127;b:{if((e| -0)>=0)break b;e=Gg(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127|b<<7;if((e|0)>=0)break b;e=Gg(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127|b<<7;if((e|0)>=0)break b;e=Gg(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127|b<<7;if((e|0)>=0)break b;a=Gg(a,d+12|0);c=J[d+12>>2];if(c)break a;if(b>>>0>33554431){c=8;break a}c=8;if((a|0)<0)break a;b=a&127|b<<7}J[f>>2]=b;c=0}bc=d+16|0;return c}function d5(a,b,c){var d=0,e=0,f=0;a:{if(K[a+44|0])break a;H[a+44|0]=1;e=J[a+20>>2];if(!e)return 3;b:{if(K[a+45|0]){d=J[a+12>> -2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=sh(d,0,1);if(d)break a}f=L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=sh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+45|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d}function E1a(){var a=0;a=J[689386];if(a){n1(a);J[689386]=0}J[689387]=0;a=J[689376];a:{if(!a)break a; -Ih(a);J[689376]=0;a=J[689377];if(!a)break a;Ih(a);J[689377]=0;a=J[689378];if(!a)break a;Ih(a);J[689378]=0;a=J[689379];if(!a)break a;Ih(a);J[689379]=0;a=J[689380];if(!a)break a;Ih(a);J[689380]=0;a=J[689381];if(!a)break a;Ih(a);J[689381]=0;a=J[689382];if(!a)break a;Ih(a);J[689382]=0;a=J[689383];if(!a)break a;Ih(a);J[689383]=0;a=J[689384];if(!a)break a;Ih(a);J[689384]=0;a=J[689385];if(!a)break a;Ih(a);J[689385]=0}J[689389]=0;return 1}function BRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;c=bc-32| -0;bc=c;f=J[b+8>>2];e=J[a+20>>2];a:{while(1){d=J[e+4>>2];if(d){d=mI(d,f);if(d)break a}e=J[e+104>>2];if(e)continue;break}J[c+16>>2]=f;xc(1,-1,783138,c+16|0);d=0}b:{if(!d){a=J[a+28>>2];J[a+496>>2]=0;J[a+500>>2]=0;J[a+492>>2]=0;break b}g=J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3];if(J[a+16>>2]){e=J[J[d+4>>2]+4>>2];b=J[d+16>>2];if(b)b=J[b+4>>2];else b=823260;O[c+8>>3]=g;J[c+4>>2]=b;J[c>>2]=e;Sy(822994,c);Ji(J[651372])}b=J[a+28>>2];O[b+496>>3]=g;J[b+492>>2]=d;J[a+32>>2]=1}bc=c+32|0}function jfb(a){a=a|0;var b= -0,c=0,d=0,e=0;d=J[J[a+96>>2]+8>>2];b=J[a+356>>2];if(b){c=J[a+348>>2];if((c|0)>0){c=P(c,20)+b|0;while(1){e=J[b+16>>2];if(e)gc[J[d+8>>2]](d,e);J[b+16>>2]=0;b=b+20|0;if(c>>>0>b>>>0)continue;break}b=J[a+356>>2]}if(b)gc[J[d+8>>2]](d,b);J[a+356>>2]=0}b=J[a+364>>2];if(b){c=J[a+360>>2];if((c|0)>0){c=P(c,12)+b|0;while(1){e=J[b+8>>2];if(e)gc[J[d+8>>2]](d,e);J[b+8>>2]=0;b=b+12|0;if(c>>>0>b>>>0)continue;break}b=J[a+364>>2]}if(b)gc[J[d+8>>2]](d,b);J[a+364>>2]=0}I[a+344>>1]=0;J[a+360>>2]=0;J[a+348>>2]=0;J[a+352>> -2]=0}function cC(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(J[b>>2]>0)break a;f=q1(J[a+16>>2],733720,J[a+20>>2],2872,b);if(J[b>>2]>0)break a;e=k1(f);b:{if(J[b>>2]>0)break b;d=13;c:{c=H[e+69|0];d:{if((c&65534)>>>0>33|((c&63)>>>0<32?515>>>c|0:0)&1)break d;c=J[(c<<2)+733584>>2];if(!K[c+17|0]|J[c+4>>2]!=1|J[e>>2]!=100)break d;d=Wh(228);if(d)break c;d=7}J[b>>2]=d;break b}c=tc(d,c,228);H[c+16|0]=0;J[c+12>>2]=e;J[c+8>>2]=f;g=J[J[c+20>>2]+4>>2];if(g){gc[g|0](c,a,J[e>>2]+e|0,b);if(J[b>>2]<=0)break a;Gf(c);d=0}if(J[b>> -2]<=0)break a}Ih(f);d=0}return d}function Yc(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(!a)break a;c=0;b:{if(K[b|0]!=35)break b;c=1;if(K[b+1|0]==32)break b;c=2;if(K[b+2|0]==32)break b;c=3;if(K[b+3|0]==32)break b;c=4;if(K[b+4|0]==32)break b;c=5;if(K[b+5|0]==32)break b;c=6;if(K[b+6|0]==32)break b;c=7;if(K[b+7|0]==32)break b;c=8;if(K[b+8|0]==32)break b;c=9;if(K[b+9|0]==32)break b;c=10;if(K[b+10|0]==32)break b;c=11;if(K[b+11|0]==32)break b;c=12;if(K[b+12|0]==32)break b;c=13;if(K[b+13|0]==32)break b;c=K[b+14| -0]==32?14:15}d=J[a+164>>2];if(!d)break a;gc[d|0](a,b+c|0)}}function VO(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=bc-16|0;bc=g;e=bc-16|0;bc=e;a:{f=c-b|0;if(f>>>0<=1073741807){b:{if(f>>>0<2){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d=a;break b}i=e+8|0;if(f>>>0>=2){h=f+4&-4;d=h-1|0;d=(d|0)==2?h:d}else d=1;Cn(i,a,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){J[e+8>>2]=H[b|0];b=b+1|0;J[d>>2]= -J[e+8>>2];d=d+4|0;continue}break}J[e+8>>2]=0;J[d>>2]=J[e+8>>2];bc=e+16|0;break a}Id(a);B()}bc=g+16|0}function S1a(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=K[a+11|0];g=d<<24>>24<0?J[a+4>>2]:d;a:{if(!g)break a;J[b>>2]=0;d=g<<2|2;i=rc(g&1073741824?-1:d);f=wc(i,0,d);d=f;while(1){e=J[zh(a,h)>>2];if(e>>>0<=65535)j=1;else{I[d+2>>1]=e&1023|56320;e=e+16711680>>>10|-10240;j=2}I[d>>1]=e;d=(j<<1)+d|0;h=h+1|0;if((h|0)!=(g|0))continue;break}a=d-f|0;J[b>>2]=a>>1;if((d|0)==(f|0)){qc(f);return 0}if(K[c| -0])break a;d=0;while(1){b=d+f|0;c=K[b|0];e=b;b=(d|1)+f|0;H[e|0]=K[b|0];H[b|0]=c;d=d+2|0;if(a>>>0>d>>>0)continue;break}}return i|0}function MDa(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=bc-16|0;bc=f;a:{if(M[b+4>>2]>=17){h=a+56|0;g=f+4|0;d=J[b>>2];b:{if(K[b+8|0]){e=0;if(!d)break b;d=J[d>>2]}e=d}d=Ps(g,e- -64|0,0,J[b+4>>2]-17|0);b=J[a+60>>2]-J[a+56>>2]>>3;while(1){if((b|0)>0){b=b-1|0;e=J[a+56>>2];if(b>>>0>=J[a+60>>2]-e>>3>>>0){J[695492]=0;_(4980,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break a; -B()}e=J[(b<<3)+e>>2];J[695492]=0;e=eW(e,d,c);g=J[695492];J[695492]=0;if((g|0)==1)break a;if(!e)continue}break}Lc(d)}bc=f+16|0;return}a=Z()|0;Lc(d);ba(a|0);B()}function KTa(a,b){a=a|0;b=b|0;var c=0;c=rc(88);J[695492]=0;J[c+8>>2]=a;J[c>>2]=2169420;J[c+16>>2]=0;J[c+12>>2]=b;J[c+4>>2]=a;a=c;b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[c+32>>2]=-755914244;J[c+36>>2]=1062232653;J[c+20>>2]=0;J[c+24>>2]=0;J[c>>2]=2182428;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;b=c- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[c+ -56>>2]=-755914244;J[c+60>>2]=1062232653;J[c+72>>2]=0;J[c+76>>2]=0;J[c+80>>2]=0;J[695492]=0;_(3366,c|0);b=J[695492];J[695492]=0;if((b|0)==1){a=Z()|0;lp(c);break a}return a|0}a=Z()|0}qc(c);ba(a|0);B()}function dua(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;a:{if(!(J[b>>2]>2]&J[b+4>>2]>2])){a=Kc(c+8|0,2383433,2373542,334,2413265,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2]; -J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;if(K[a+32|0]&4){e=a,f=Izb(J[a>>2],J[a+4>>2],32),J[e>>2]=f;J[a+4>>2]=fc;e=a,f=Izb(J[a+8>>2],J[a+12>>2],32),J[e+8>>2]=f;J[a+12>>2]=fc}J[a+36>>2]=0;J[a+40>>2]=1;J[a+44>>2]=0;J[a+48>>2]=1;bc=c+32|0;return}B()}function _R(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;a:{if(!b){J[a+8>>2]=J[a+4>>2];break a}b:{d=Ve(b);if(d>>>0<1073741808){c:{if(d>>>0<=1){H[c+15|0]=d;e=c+4|0;break c}e=d|3;if(e>>>0>=1073741823)break b;f=e+1|0;e=rc(f<<2);J[c+12>>2]=f|-2147483648; -J[c+4>>2]=e;J[c+8>>2]=d}f=b;b=d<<2;g=tc(e,f,b)+b|0,h=0,J[g>>2]=h;J[695492]=0;aa(6496,a|0,c+4|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[c+15|0]>=0)break a;qc(J[c+4>>2]);break a}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}Id(c+4|0);B()}Sd();B()}bc=c+16|0;return a|0}function Yca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;J[d+8>>2]=c;J[d+12>>2]=b;g=d,h=oi(a),J[g+4>>2]=h;e=J[d+12>>2]-J[d+4>>2]>>2;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a:{if((c|0)==((K[a+11|0]>>> -7|0?(J[a+8>>2]&2147483647)-1|0:1)|0)){iy(a,c,1,c,e,1);b=J[a>>2];break a}if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if((c|0)==(e|0))break a;f=(e<<2)+b|0;Cm(f+4|0,f,c-e|0)}J[(e<<2)+b>>2]=J[d+8>>2];J[d+4>>2]=0;f=b;b=c+1|0;c=d+4|0;J[f+(b<<2)>>2]=J[c>>2];Nk(a,b);g=d,h=oi(a),J[g+4>>2]=h;a=qy(c,e);bc=d+16|0;return a|0}function Rda(a){a=a|0;if(K[2782336])return J[695583];if(!K[2783136])H[2783136]=1;sf(2782848,1289);sf(2782860,1280);sf(2782872,11236);sf(2782884,9816);sf(2782896,1584);sf(2782908,13825);sf(2782920, -1318);sf(2782932,2077);sf(2782944,5536);sf(2782956,5519);sf(2782968,5527);sf(2782980,5546);sf(2782992,7351);sf(2783004,18775);sf(2783016,5620);sf(2783028,4734);sf(2783040,1584);sf(2783052,6359);sf(2783064,9608);sf(2783076,12697);sf(2783088,5833);sf(2783100,3727);sf(2783112,1752);sf(2783124,18022);H[2782336]=1;J[695583]=2782848;return 2782848}function MAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;c=J[682146];e=b&3;b:{if(!e){d=b;break b}d=b;while(1){J[a+24>>2]=0;J[a+16>>2]=0;J[a+28>> -2]=c;J[a+20>>2]=c;a=a+32|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<4)break a;while(1){J[a+24>>2]=0;J[a+16>>2]=0;J[a+124>>2]=c;J[a+120>>2]=0;J[a+116>>2]=c;J[a+112>>2]=0;J[a+92>>2]=c;J[a+88>>2]=0;J[a+84>>2]=c;J[a+80>>2]=0;J[a+60>>2]=c;J[a+56>>2]=0;J[a+52>>2]=c;J[a+48>>2]=0;J[a+28>>2]=c;J[a+20>>2]=c;a=a+128|0;b=d-5|0;d=d-4|0;if(b>>>0<4294967294)continue;break}}}function $4(a,b){var c=0,d=0,e=0,f=0;f=bc-16|0;bc=f;a:{b:{d=J[a+20>>2];if((d|0)!=J[a+12>>2]){e=J[a+28>>2];break b}c=J[a+16>> -2];J[f+12>>2]=0;c:{c=c+d|0;e=J[a+8>>2];if(c>>>0>2147483647/(e>>>0)>>>0)break c;d=P(c,e);e=Sc(J[a>>2],1,J[a+24>>2],d,J[a+28>>2],f+12|0);J[a+28>>2]=e;if(J[f+12>>2])break c;J[a+24>>2]=d;J[a+12>>2]=c;d=J[a+20>>2];if(c>>>0>=d>>>0)break b;b=J[a+4>>2];if(!(!b|J[b>>2]))J[b>>2]=130;J[a+20>>2]=c;break a}a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=64;break a}c=J[a+8>>2];tc(P(c,d)+e|0,b,c);J[a+20>>2]=J[a+20>>2]+1}bc=f+16|0}function uSa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;J[a>>2]=2205020;c=tc(a,b,1072);f=c, -g=vd(J[c+1044>>2],4),J[f+1048>>2]=g;d=J[c+1044>>2];if((d|0)>0){a=0;while(1){d=a<<2;e=J[d+J[b+1048>>2]>>2];e=gc[J[J[e>>2]+8>>2]](e)|0;J[d+J[c+1048>>2]>>2]=e;a=a+1|0;d=J[c+1044>>2];if((a|0)<(d|0))continue;break}}a=vd(d+1|0,8);J[c+1052>>2]=a;tc(a,J[b+1052>>2],(J[c+1044>>2]<<3)+8|0);a=vd(J[c+1044>>2]<<1,8);J[c+1056>>2]=a;tc(a,J[b+1056>>2],J[c+1044>>2]<<4);a=vd(J[c+1044>>2],8);J[c+1060>>2]=a;tc(a,J[b+1060>>2],J[c+1044>>2]<<3);J[c+1064>>2]=1;return c|0}function _ca(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;f=Ve(c);h=bc-16|0;bc=h;a:{if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(b>>>0<=d>>>0){e=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;b:{if(e-d>>>0>=f>>>0){if(!f)break b;if(K[a+11|0]>>>7|0)e=J[a>>2];else e=a;g=b<<2;i=e+g|0;if((b|0)!=(d|0)){g=e+g|0;Cm(g+(f<<2)|0,g,d-b|0);c=((c>>>0>=g>>>0?e+(d<<2)>>>0>c>>>0?f:0:0)<<2)+c|0}Cm(i,c,f);b=f+d|0;Nk(a,b);J[h+12>>2]=0;J[e+(b<<2)>>2]=J[h+12>>2];break b}Yr(a,e,(f+d|0)-e|0,d,b,0,f,c)}bc=h+16|0;break a}mr(a);B()}return a|0}function ZLa(a, -b,c,d,e,f,g,h,i){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;var j=0,k=0;J[a+20>>2]=f;J[a+16>>2]=e;J[a+12>>2]=d;J[a+8>>2]=c;J[a>>2]=2331860;J[a+4>>2]=b;e=1;a:{if((f|0)>0){e=2147483644;if(f>>>0<2147483645)break a}J[a+20>>2]=e;f=e}J[a+32>>2]=i;J[a+28>>2]=h;J[a+24>>2]=g;J[a+36>>2]=i?255:0;j=a,k=vd(f+1|0,4),J[j+60>>2]=k;b=vd(J[a+20>>2]+3|0,4);J[a+48>>2]=0;J[a+40>>2]=0;J[a+64>>2]=b;J[a+56>>2]=0;J[a+44>>2]=J[a+8>>2]>>>31;b=J[a+20>>2];J[J[a+60>>2]>>2]=b;J[a+80>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+ -68>>2]=b;return a|0}function EH(a,b){var c=0,d=0;if(K[a+206|0]&128){c=0;a:{if(K[b|0]!=35)break a;c=1;if(K[b+1|0]==32)break a;c=2;if(K[b+2|0]==32)break a;c=3;if(K[b+3|0]==32)break a;c=4;if(K[b+4|0]==32)break a;c=5;if(K[b+5|0]==32)break a;c=6;if(K[b+6|0]==32)break a;c=7;if(K[b+7|0]==32)break a;c=8;if(K[b+8|0]==32)break a;c=9;if(K[b+9|0]==32)break a;c=10;if(K[b+10|0]==32)break a;c=11;if(K[b+11|0]==32)break a;c=12;if(K[b+12|0]==32)break a;c=13;if(K[b+13|0]==32)break a;c=K[b+14|0]==32?14:15}d=J[a+164>> -2];if(d)gc[d|0](a,b+c|0);return}Ad(a,b);B()}function CB(a){var b=0,c=0,d=0;c=bc-16|0;bc=c;b=gc[J[659447]](60)|0;a:{if(!b){if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2}J[c>>2]=33592;Cc(0,0,0,a,0,1,2,3,33592,0,0,0,32863,c);break a}J[b+48>>2]=0;J[b+52>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+56>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+52>>2]=-1;J[b+32>>2]=1;J[b+28>>2]= -1;if(!a)break a;d=a;a=J[a+464>>2];J[d+464>>2]=a+1;J[b+56>>2]=a}bc=c+16|0;return b}function fv(a,b){var c=0,d=0;c=J[a+24>>2];if(c>>>0>>0){b=65536-b|0;d=b+c|0;c=b+J[a+20>>2]|0;a:{if(c>>>0>=65280){b=H[((c&255)+a|0)+2604|0]+8|0;break a}b=H[((c>>>8|0)+a|0)+2604|0]}J[a+20>>2]=c<>2]>>>c|d<>2]=b;if(c>>>0<=15){gv(a);b=J[a+24>>2]}J[a+28>>2]=b>>>0>=32767?32767:b;return 1}J[a+20>>2]=b<<1&65534;b=K[a+18|0]-1|0;H[a+18|0]=b;d=b& -255;b=J[a+36>>2]>>>d&1|c<<1&65534;J[a+24>>2]=b;if(d>>>0<=15){gv(a);b=J[a+24>>2]}J[a+28>>2]=b>>>0>=32767?32767:b;return 0}function enb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if(J[c>>2]!=1396790853){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];d=J[c+36>>2];J[b+36>>2]=d;a:{b:{if(!d)break b;d=P(d,36);e=gc[J[a+152>>2]](d)|0;J[b+40>>2]=e;if(!e)break a;tc(e,J[c+40>>2],d);d=J[b+36>>2];if(!d)break b;c=J[b+40>>2];while(1){e=J[c+28>>2];c:{if(e){d=J[c+32>>2];e=gc[J[a+152>>2]](e)|0;J[c+ -32>>2]=e;if(!e)break a;tc(e,d,J[c+28>>2]);d=J[b+36>>2];break c}J[c+32>>2]=0}c=c+36|0;f=f+1|0;if(f>>>0>>0)continue;break}}return 0}Dc(a,1,0,0);return 1}function YB(a,b){var c=0;if(a-192>>>0<=127){J[b>>2]=192;return 249}if(a-592>>>0<128){J[b>>2]=592;return 250}if(a-880>>>0<128){J[b>>2]=880;return 251}if(a-1328>>>0<128){J[b>>2]=1328;return 252}if(a-12352>>>0<128){J[b>>2]=12352;return 253}if(a-12448>>>0<128){J[b>>2]=12448;return 254}if(a-65376>>>0<128){J[b>>2]=65376;return 255}c=-1;a:{if(a>>>0<128)break a; -if(!(!(a-118784>>>0<12288|a>>>0<13312)&(a&-16384)!=65536)){J[b>>2]=a&2147483520;return a>>>7|0}if((a|0)==65279|a-57344>>>0>8175)break a;J[b>>2]=a&2147483520;c=a-44032>>>7|0}return c}function qga(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;var h=0;c=bc-128|0;bc=c;J[c+12>>2]=c+116;d=c+16|0;dQ(a+8|0,d,c+12|0,e,f,g);g=bc-16|0;bc=g;a=bc-32|0;bc=a;cF(a+24|0,d,J[c+12>>2]);h=J[a+28>>2];e=bc-16|0;bc=e;f=J[a+24>>2];J[e+8>>2]=f;J[e+12>>2]=b;while(1){if((f|0)!=(h|0)){PQ(e+12|0,H[f|0]);f=f+1|0;J[e+ -8>>2]=f;continue}break}J[a+16>>2]=J[e+8>>2];J[a+20>>2]=J[e+12>>2];bc=e+16|0;J[a+12>>2]=(J[a+16>>2]-d|0)+d;J[a+8>>2]=J[a+20>>2];J[g+8>>2]=J[a+12>>2];J[g+12>>2]=J[a+8>>2];bc=a+32|0;bc=g+16|0;bc=c+128|0;return J[g+12>>2]}function gBa(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;b=rc(136);J[695492]=0;d=$(5149,b|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){a=Z()|0;qc(b);ba(a|0);B()}J[c+12>>2]=0;b=c+12|0;md(b,d);J[695492]=0;aa(4993,a+8|0,b|0)|0;a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[c+12>>2];J[c+12>>2]= -0;b:{if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=c+16|0;return}a=Z()|0;vc(c+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function ava(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;f=(c|0)/2|0;J[a+104>>2]=f;e=(b|0)/2|0;J[a+100>>2]=e;g=J[a+124>>2];d=g+b|0;J[a+132>>2]=d;b=c;c=J[a+128>>2];b=b+c|0;J[a+136>>2]=b;h=e+f|0;c=(b+c|0)/2|0;b=(d+g|0)/2|0;a:{if((e|0)>(f|0)){i= -Y(+(P(h,e-f|0)|0));b:{if(R(i)<2147483648){d=~~i;break b}d=-2147483648}h=b-d|0;b=b+d|0;d=f;g=c;break a}i=Y(+(P(h,f-e|0)|0));c:{if(R(i)<2147483648){j=~~i;break c}j=-2147483648}g=j+c|0;d=e;e=f;h=b;c=c-j|0}J[a+120>>2]=c;J[a+116>>2]=h;J[a+108>>2]=b;J[a+92>>2]=e;J[a+96>>2]=d;J[a+112>>2]=g}function KDa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=bc-16|0;bc=g;a:{if(M[b+4>>2]>=17){h=a+56|0;d=g+4|0;e=J[b>>2];b:{if(K[b+8|0]){f=0;if(!e)break b;e=J[e>>2]}f=e}e=Ps(d,f- -64|0,0,J[b+4>>2]-17|0);b=J[a+60>> -2]-J[a+56>>2]>>3;while(1){if((b|0)>0){b=b-1|0;d=J[a+56>>2];if(b>>>0>=J[a+60>>2]-d>>3>>>0){J[695492]=0;_(4980,h|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B()}d=J[(b<<3)+d>>2];J[695492]=0;d=cW(d,e,c);f=J[695492];J[695492]=0;if((f|0)==1)break a;if(!d)continue}break}Lc(e)}bc=g+16|0;return}a=Z()|0;Lc(e);ba(a|0);B()}function fN(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;a:{if(!b)break a;e=J[a+4>>2];if(!e)break a;d=J[a+44>>2];if(!d)break a;b:{if(!c)break b;e=e+40|0;d=c>>>0>d>>>0?d:c;h=d&1; -c=0;if((d|0)!=1){i=d&-2;d=0;while(1){g=e+(c<<2)|0;f=P(c,3)+b|0;H[g+2|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g|0]=K[f+2|0];f=c|1;g=e+(f<<2)|0;f=P(f,3)+b|0;H[g+2|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g|0]=K[f+2|0];c=c+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!h)break b;e=e+(c<<2)|0;b=P(c,3)+b|0;H[e+2|0]=K[b|0];H[e+1|0]=K[b+1|0];H[e|0]=K[b+2|0]}H[a+481|0]=0}}function TDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=O[b>>3]*O[a+48>>3];O[a+48>>3]=h;b=J[a+36>>2];if((b|0)!=J[a+40>>2]){O[b>>3]=h;J[a+36>>2]=b+8;return}a:{c= -a+32|0;f=J[c>>2];e=b-f|0;g=e>>3;d=g+1|0;if(d>>>0<536870912){c=e>>2;c=e>>>0>=2147483640?536870911:c>>>0>d>>>0?c:d;if(c){if(c>>>0>=536870912)break a;e=rc(c<<3)}else e=0;d=e+(g<<3)|0;O[d>>3]=h;g=d+8|0;if((b|0)!=(f|0))while(1){d=d-8|0;b=b-8|0;O[d>>3]=O[b>>3];if((b|0)!=(f|0))continue;break}J[a+40>>2]=e+(c<<3);J[a+36>>2]=g;J[a+32>>2]=d;if(f)qc(f);return}Gp(c);B()}Sd();B()}function HMa(a,b){a=a|0;b=b|0;gc[J[J[a>>2]+80>>2]](a,b);gc[J[J[a>>2]+84>>2]](a,b);gc[J[J[a>>2]+88>>2]](a,b);gc[J[J[a>>2]+92>>2]](a,b); -gc[J[J[a>>2]+96>>2]](a,b);gc[J[J[a>>2]+100>>2]](a,b);gc[J[J[a>>2]+104>>2]](a,b);gc[J[J[a>>2]+108>>2]](a,b);gc[J[J[a>>2]+116>>2]](a,b);gc[J[J[a>>2]+112>>2]](a,b);gc[J[J[a>>2]+120>>2]](a,b);gc[J[J[a>>2]+124>>2]](a,b);gc[J[J[a>>2]+128>>2]](a,b);gc[J[J[a>>2]+132>>2]](a,b);gc[J[J[a>>2]+136>>2]](a,b);gc[J[J[a>>2]+140>>2]](a,b);gc[J[J[a>>2]+144>>2]](a,b);gc[J[J[a>>2]+152>>2]](a,b);gc[J[J[a>>2]+156>>2]](a,b)}function reb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;c=J[a>>2];a:{b:{if(K[c+8|0]& -2){d=gc[J[J[c+540>>2]+104>>2]](c,b,e+12|0)|0;if(!d){c=J[e+12>>2];J[a+116>>2]=c;b=J[a>>2];if(H[b+8|0]&1){rn(b,c);d=0;xL(a);break a}d=gc[J[J[b+540>>2]+108>>2]](b,c,a+12|0)|0;if(!d)break b;J[a+116>>2]=-1;break a}J[a+116>>2]=-1;c=J[a>>2]}xr(c,b);if(!(H[J[a>>2]+8|0]&1))break a;d=xL(a);if(d)break a;c=a;d=L[a+84>>1];a=J[a+44>>2];a=J[(L[a>>1]>L[a+2>>1]?12:16)+b>>2];f=c,g=Dd(d,4608,J[b>>2]==4?72:a?a:72),J[f+120>>2]=g}d=0}bc=e+16|0;return d|0}function Qz(a,b,c){var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;e=Qc(b);if(!(!c| -!K[c|0]))f=Qc(c);if(a){J[a+744>>2]=34;H[d+8|0]=116;H[d+9|0]=69;H[d+10|0]=88;H[d+11|0]=116;e=e+1|0;g=e+f|0;H[d+7|0]=g;H[d+6|0]=g>>>8;H[d+5|0]=g>>>16;H[d+4|0]=g>>>24;bf(a,d+4|0,8);J[a+348>>2]=1950701684;Xl(a);pe(a,d+8|0,4);J[a+744>>2]=66;if(!(!b|!e)){bf(a,b,e);pe(a,b,e)}if(!(!f|(!a|!c))){bf(a,c,f);pe(a,c,f)}J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+12|0]=b;H[d+13|0]=b>>>8;H[d+14|0]=b>>>16;H[d+15|0]=b>>>24;bf(a,d+12|0,4)}bc=d+16|0}function IRa(a,b){a=a|0;b=b|0;var c= -0,d=0;c=J[a+400>>2];J[c+8>>2]=0;a:{if(J[a+288>>2]>=2){J[c+20>>2]=1;break a}d=J[a+292>>2];if(J[a+284>>2]!=1){J[c+20>>2]=J[d+12>>2];break a}J[c+20>>2]=J[d+76>>2]}J[c+12>>2]=0;J[c+16>>2]=0;b:switch(b|0){case 0:if(J[c+64>>2]){b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}J[c+4>>2]=485;return;case 3:if(!J[c+64>>2]){b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}J[c+4>>2]=486;return;case 2:if(!J[c+64>>2]){b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}J[c+4>>2]=487;return;default:break b}b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}function iu(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!a)break a;a=J[a+128>>2];J[a+24>>2]=0;b:{c:{d:{if(!b){J[a+8>>2]=0;J[a+12>>2]=65536;J[a>>2]=65536;J[a+4>>2]=0;b=a;break d}d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=b+8|0;e=J[d+4>>2];J[a+8>>2]=J[d>>2];J[a+12>>2]=e;if(J[b+8>>2]|J[b+4>>2])break c}if(J[b>>2]!=65536)break c;d=2;if(J[b+12>>2]==65536)break b}J[a+24>>2]=1;d=3}b=a+16|0;e:{if(!c){J[a+16>>2]=0;J[a+20>>2]=0;c=0;break e}b=J[c+4>>2];J[a+16>>2]=J[c>>2];J[a+20>>2]=b;b=c;c=J[b>>2]}if(!(c|J[b+4>>2]))break a; -J[a+24>>2]=d}}function KE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=J[a+84>>2];a:{d=J[a+28>>2];b:{if((d|0)!=(b|0)){e=-1;if((KE(a,d,J[a+20>>2]-d|0)|0)==-1)break b}d=J[f>>2];c:{if(!J[f+4>>2]|!c)break c;e=c;while(1){g=Uo(d,b,e);if((g|0)<0)break a;h=J[f+4>>2]-1|0;J[f+4>>2]=h;d=J[f>>2]+4|0;J[f>>2]=d;if(!h)break c;g=g>>>0<=1?1:g;b=g+b|0;e=e-g|0;if(e)continue;break}}J[d>>2]=0;b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;J[a+16>>2]=b+J[a+48>>2];e=c}return e|0}J[J[f>>2]>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0; -J[a+20>>2]=0;J[a>>2]=J[a>>2]|32;return g|0}function ysb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=J[a+2308>>2];a:{if(!d)break a;c=J[a+2312>>2];a=J[a+2316>>2];if(d>>>0>=4){f=d&-4;while(1){b=L[c>>1];I[a+4>>1]=b;I[a+2>>1]=b;I[a>>1]=b;b=L[c+2>>1];I[a+10>>1]=b;I[a+8>>1]=b;I[a+6>>1]=b;b=L[c+4>>1];I[a+16>>1]=b;I[a+14>>1]=b;I[a+12>>1]=b;b=L[c+6>>1];I[a+22>>1]=b;I[a+20>>1]=b;I[a+18>>1]=b;a=a+24|0;c=c+8|0;e=e+4|0;if((f|0)!=(e|0))continue;break}}b=d&3;if(!b)break a;e=0;while(1){d=L[c>>1];I[a+4>>1]=d;I[a+2>>1]=d;I[a>> -1]=d;a=a+6|0;c=c+2|0;e=e+1|0;if((b|0)!=(e|0))continue;break}}return 0}function y0(a,b){a=a|0;b=b|0;var c=0,d=0;a:{d=bc-16|0;bc=d;b=J[J[b+4>>2]+4>>2];b:{if(!b){J[a>>2]=0;H[a+11|0]=0;break b}b=At(b);if(!b){J[a>>2]=0;H[a+11|0]=0;break b}mm(a,b,Qc(b))}c:{b=qj(a,58,0);d:{if((b|0)==-1)break d;b=b+1|0;c=K[a+11|0];if(b>>>0>=(c<<24>>24<0?J[a+4>>2]:c)>>>0)break d;J[695492]=0;b=ma(2797,d|0,a|0,b|0,-1,d+15|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break c;if(H[a+11|0]<0)qc(J[a>>2]);c=J[b+4>>2];J[a>>2]=J[b>>2]; -J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2]}bc=d+16|0;break a}b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}}function Phb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[J[a+4>>2]+712>>2];a:{b:{if(!J[d+2024>>2]){d=d+1372|0;break b}e=gc[J[J[d+3088>>2]+8>>2]](d+3052|0,c)|0;c=3;if(e>>>0>=M[d+2024>>2])break a;c=e<<2;d=J[(c+d|0)+2028>>2];if(!b|!J[a+68>>2])break b;J[a+72>>2]=J[(c+J[J[b+40>>2]>>2]|0)+4>>2]}e=J[d+620>>2];J[a+728>>2]=e;J[a+744>>2]=J[d+644>>2];c=0;b=0;c:{if(J[J[a+108>>2]+1416>>2]==1)break c;b=107;if(e>>>0<1240)break c; -b=e>>>0<33900?1131:32768}J[a+736>>2]=b;J[a+584>>2]=J[d+540>>2];b=J[d+544>>2];J[a+768>>2]=d;J[a+588>>2]=b}return c|0}function Naa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;b=J[a+584>>2];if(b){c=J[b+144>>2];if(!c){gc[J[a+524>>2]](a)|0;c=J[b+144>>2]}I[b+68>>1]=258;J[b+64>>2]=33488905;J[b+132>>2]=0;J[b+136>>2]=0;J[b+124>>2]=1E4;J[b+128>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+140>>2]=(J[a+596>>2]+J[a+600>>2]|0)-5;a=c+72E3|0;d=8993;while(1){J[a>>2]=-1;J[a-8>>2]=-1;J[a-16>>2]=-1;J[a-24>>2]=-1;J[a-32>>2]=-1;J[a-40>>2]= --1;J[a-48>>2]=-1;J[a-56>>2]=-1;a=a+-64|0;e=d>>>0>7;d=d-8|0;if(e)continue;break}J[c>>2]=-1;J[b+120>>2]=65535;return 1}fa(72282,70324,765,97912);B()}function eab(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;e=1;if(!(!J[a+16>>2]|!J[a+20>>2])){qr(a);f=J[a+20>>2];g=O[c>>3];h=O[d>>3];c=bc-48|0;bc=c;a=J[a+12>>2];if(a){J[c+40>>2]=0;J[c+44>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=1072693248;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=c+ -40|0;e=c+32|0;gc[J[J[a>>2]+124>>2]](a,d,e,c+24|0,c+16|0,c+8|0,c)|0;N[c+40>>2]=g;N[c+32>>2]=h;gc[J[J[a>>2]+84>>2]](a,b,d,e)|0;gc[J[J[a>>2]+132>>2]](a,f)|0}bc=c+48|0;e=0}return e|0}function gN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!c)break a;g=J[a+4>>2];if(!g)break a;f=J[a+44>>2];if(!f)break a;b:{if(!b)break b;g=g+40|0;d=d?d:c;e=e?e:d;f=b>>>0>f>>>0?f:b;j=f&1;b=0;if((f|0)!=1){k=f&-2;while(1){f=g+(b<<2)|0;H[f+2|0]=K[b+c|0];H[f+1|0]=K[b+d|0];H[f|0]=K[b+e|0];f=b|1;h= -g+(f<<2)|0;H[h+2|0]=K[c+f|0];H[h+1|0]=K[d+f|0];H[h|0]=K[e+f|0];b=b+2|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!j)break b;g=g+(b<<2)|0;H[g+2|0]=K[b+c|0];H[g+1|0]=K[b+d|0];H[g|0]=K[b+e|0]}H[a+481|0]=0}}function PT(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;f=J[c>>2];a:{d=J[b+8>>2];e=J[b>>2];if((d|0)>(e|0)){g=J[b+4>>2];b=J[b+12>>2];if((g|0)<(b|0))break a}J[a>>2]=f;b=J[c+8>>2];J[a+8>>2]=b;d=J[c+4>>2];J[a+4>>2]=d;e=a;a=J[c+12>>2];J[e+12>>2]=a;return(b|0)>(f|0)&(a|0)>(d|0)}b:{h=J[c+8>>2]; -if((h|0)>(f|0)){i=J[c+4>>2];c=J[c+12>>2];if((i|0)<(c|0))break b}J[a+8>>2]=d;J[a>>2]=e;J[a+12>>2]=b;J[a+4>>2]=g;return 1}J[a+8>>2]=(d|0)>(h|0)?d:h;J[a>>2]=(f|0)>(e|0)?e:f;J[a+12>>2]=(b|0)>(c|0)?b:c;J[a+4>>2]=(g|0)<(i|0)?g:i;return 1}function w0(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=768176;a:{b=J[a+8>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}b=0;d=J[a+28>>2]-J[a+24>>2]>>2;if((d|0)>0)while(1){c=J[J[a+24>>2]+(b<<2)>>2];if(c){e=J[J[c>>2]+12>>2];J[695492]= -0;$(e|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a}b=b+1|0;if((d|0)!=(b|0))continue;break}if(H[a+59|0]<0)qc(J[a+48>>2]);if(H[a+47|0]<0)qc(J[a+36>>2]);b=J[a+24>>2];if(b){J[a+28>>2]=b;qc(b)}aK(a+12|0,J[a+16>>2]);return a|0}ea(0)|0;yc();B()}function XI(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+116>>2];if(b){qc(Vv(b));J[a+116>>2]=0}b=J[a+120>>2];if(b){qc(Ng(b));J[a+120>>2]=0}b=J[a+124>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+124>>2]=0}b=J[a+128>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+128>>2]=0}b=J[a+108>>2]; -c=J[a+104>>2];a:{if((b|0)==(c|0)){c=b;break a}while(1){f=e<<2;d=J[f+c>>2];if(d){if(H[d+27|0]<0)qc(J[d+16>>2]);if(H[d+15|0]<0)qc(J[d+4>>2]);qc(d);J[J[a+104>>2]+f>>2]=0;c=J[a+104>>2];b=J[a+108>>2]}e=e+1|0;if(e>>>0>2>>>0)continue;break}}if(c){J[a+108>>2]=c;qc(c)}return a}function Kqb(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;var h=0,i=0,j=0,k=0,l=0;if(e){l=e-1|0;while(1){a=L[f>>1];I[g>>1]=a;g=g+2|0;h=i?(i|0)==(l|0)?d:b:c;a:{if(h>>>0<2)break a;j=h-1|0;k=j&7;if(h-2>>>0>=7){j=j&-8;h= -0;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!k)break a;while(1){I[g>>1]=a;g=g+2|0;h=h+1|0;if((k|0)!=(h|0))continue;break}}f=f+2|0;i=i+1|0;if((i|0)!=(e|0))continue;break}}return 0}function bs(a,b,c){var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;e=d+12|0;b=J[b+28>>2];J[e>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[695492]=0;b=$(6641,e|0)|0;f=J[695492];J[695492]=0;a:{if((f|0)==1)break a;J[695492]=0;f=$(6650, -b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[c>>2]=f;J[695492]=0;da(6651,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;a=J[e>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);bc=d+16|0;return}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Twa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a>>2]=0;J[695492]=0;b=J[J[b+48>>2]+((c>>>0)%M[b+44>>2]<<2)>>2];d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){if(!b)break b;while(1){if(!(J[b+ -12>>2]==(c|0)&J[b+16>>2]==(c|0))){b=J[b+8>>2];if(b)continue;break b}break}if(!J[b+20>>2]|J[c+4>>2]<=0)break b;J[695492]=0;aa(4985,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}break a}b=J[a>>2];if(!(!b|J[b+4>>2]>0)){J[695492]=0;aa(4985,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}return}b=Z()|0;vc(a);ba(b|0);B()}function P2(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a=J[a+4>>2];m=J[a>>2];if(m){o=J[a+16>>2];p=J[a+12>>2];f=1E100; -l=-1E100;a=0;i=-1E100;g=1E100;while(1){n=a&255;h=a>>>6&67108860;a:{if(K[n+J[h+o>>2]|0]-1>>>0>13)break a;h=J[h+p>>2]+(n<<4)|0;j=O[h+8>>3];g=g>j?j:g;k=O[h>>3];i=ik?k:f;if(!(l>3]=f;O[c>>3]=g;O[d>>3]=i-f;O[e>>3]=l-g;return}J[b>>2]=0;J[b+4>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[d>>2]=0;J[d+4>>2]=0;O[e>>3]=0}function vv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;b=b<<8|(b&65280)>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;b=0;d=2;f=c+6|0;a:{b:{while(1){e= -gc[J[J[a>>2]+12>>2]](a,f,d)|0;if(!e){a=Kc(c+8|0,2378736,2375204,474,2384672,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=f+e|0;b=b+e|0;d=d-e|0;if(d)continue;break}if((b|0)!=2){a=Kc(c+8|0,Jl(J[694731]),2375204,524,2384759,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=c+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function u4(a,b){var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;c=J[b+28>>2];d=gc[J[a+516>>2]](a,1668707360,b,e+8|0)|0;J[e+12>> -2]=d;a:{if(d){J[a+700>>2]=0;J[a+704>>2]=0;c=0;break a}d=J[e+8>>2]>>>1|0;J[a+700>>2]=d;f=a,g=Sc(c,4,0,d,0,e+12|0),J[f+704>>2]=g;c=J[e+12>>2];if(c)break a;c=Ue(b,J[a+700>>2]<<1);J[e+12>>2]=c;if(c)break a;d=J[a+700>>2];if((d|0)>0){c=J[a+704>>2];d=c+(d<<2)|0;while(1){f=c,g=mf(b)<<16>>16<<6,J[f>>2]=g;c=c+4|0;if(d>>>0>c>>>0)continue;break}}ne(b);if(!K[a+733|0]){c=J[e+12>>2];break a}c=k4(a,b)}bc=e+16|0;return c}function dsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+636>>2]+J[a+616>>2]|0;c=J[a+588>> -2];b=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{if(K[d+56|0]){if((c|0)<=0)break a;while(1){c=K[e|0];g=(c|0)!=L[d+836>>1];H[b+3|0]=g?-1:0;c=g?c:0;H[b+2|0]=c;H[b+1|0]=c;H[b|0]=c;e=e+1|0;b=b+4|0;f=f+1|0;if((f|0)>2])continue;break}break a}if((c|0)<=0){h=1;break a}while(1){d=K[e|0];H[b+3|0]=255;H[b+2|0]=d;H[b+1|0]=d;H[b|0]=d;h=1;e=e+1|0;b=b+4|0;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=h;return 0}function ds(a,b,c){var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;e=d+12|0;b=J[b+ -28>>2];J[e>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[695492]=0;b=$(6614,e|0)|0;f=J[695492];J[695492]=0;a:{if((f|0)==1)break a;J[695492]=0;f=$(6625,b|0)|0;g=J[695492];J[695492]=0;if((g|0)==1)break a;H[c|0]=f;J[695492]=0;da(6626,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;a=J[e>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);bc=d+16|0;return}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Xxb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0, -e=0,f=0,g=0;e=a+16|0;f=J[a+4>>2];d=a+12|0;g=d;a:{b:{c:{if(M[b>>2]<=256){d=J[c+8>>2];b=0;if(d&7)break b;b=J[c+64>>2];d:{if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;break d}b=J[c+28>>2];J[c+28>>2]=b-1;if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;b=K[b|0];break c}b=jd(c,1);if((b|0)!=-1)break c}b=0;break b}Lg(c,d);b=-2;break a}b=b&255}J[g>>2]=b;b=-1}e:{f:{if(B9(e,c,f+b|0))break f;b=0;if(!(H[c+8|0]&1))break e;a=J[a+24>>2];if(!a)break f;qc(a)}b=-1}return b|0}function IC(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;b=J[a+260>>2];if(!b){n=a;d=I[a+300>>1];b=J[a+248>>2];a:{if(!d)break a;c=I[a+298>>1];b=J[a+252>>2];if(!c)break a;e=J[a+248>>2];b=e>>31;f=(b^e)-b|0;b=c>>31;g=(b^c)-b|0;h=P(f>>>16|0,g);i=h<<16|8192;a=J[a+252>>2];b=a>>31;j=(a^b)-b|0;b=d>>31;k=(b^d)-b|0;l=P(j>>>16|0,k);m=l<<16|8192;b=i+P(g,f&65535)|0;b=(h>>>16|0)+(b>>>0>>0)<<18|b>>>14;c=(c^e)<0?0-b|0:b;b=m+P(k,j&65535)|0;b=(l>>>16|0)+(b>>>0>>0)<<18|b>>>14;b=iM(c,(a^d)<0?0-b|0:b)}J[n+260>>2]=b}return b} -function g2(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=O[a+8>>3];g=O[a+56>>3];e=O[a+16>>3];h=O[a+72>>3];d=(b*g+e*h)*65536;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}J[a+220>>2]=c;d=b;b=O[a- -64>>3];f=e;e=O[a+80>>3];d=(d*b+f*e)*65536;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}J[a+228>>2]=c;d=O[a+24>>3];f=d*b;b=O[a+32>>3];e=(f+e*b)*65536;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}J[a+232>>2]=c;b=(d*g+h*b)*65536;d:{if(R(b)<2147483648){c=~~b;break d}c=-2147483648}J[a+224>>2]=c; -iu(J[a+188>>2],a+220|0,0)}function Zy(a){var b=0,c=0,d=0,e=0,f=0,g=0;A(+a);b=v(1)|0;f=v(0)|0;e=b&2147483647;if(e>>>0>=1072693248){if(!(e-1072693248|f))return(b|0)>0|(b|0)>=0?0:3.141592653589793;return 0/(a-a)}a:{if(e>>>0<=1071644671){d=1.5707963267948966;if(e>>>0<1012924417)break a;return 6.123233995736766E-17-a*Uu(a*a)-a+1.5707963267948966}if((b|0)<0){a=(a+1)*.5;c=Y(a);a=1.5707963267948966-(c+(c*Uu(a)+-6.123233995736766E-17));return a+a}a=(1-a)*.5;c=Y(a);g=c*Uu(a);A(+c);b=v(1)|0;v(0)|0;x(0,0);x(1, -b|0);d=a;a=+z();a=g+(d-a*a)/(c+a)+a;d=a+a}return d}function Vw(a,b){a=a|0;b=b|0;var c=0,d=0;c=rc(48);J[c>>2]=0;J[c+4>>2]=1072693248;J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+40>>2]=0;J[c+44>>2]=0;J[a>>2]=c;b=J[b>>2];d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d;d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;d=J[b+20>>2];J[c+16>>2]=J[b+ -16>>2];J[c+20>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;return a|0}function OLa(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;J[a+8>>2]=13;J[a>>2]=2330896;g=J[f+4>>2];J[a+8>>2]=J[f>>2];J[a+12>>2]=g;g=J[f+12>>2];J[a+16>>2]=J[f+8>>2];J[a+20>>2]=g;J[a>>2]=2331112;J[695492]=0;f=$(4,8)|0;g=J[695492];J[695492]=0;a:{if((g|0)==1){b=Z()|0;J[a>>2]=2330896;J[695492]=0;_(3205,a+8|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;ba(b|0);B()}J[f+4>>2]=1;J[f>>2]=b;b=a+40|0;J[a+300>>2]=b;J[a+36>> -2]=e;J[a+32>>2]=d;J[a+28>>2]=c;J[a+24>>2]=f;J[a+304>>2]=c;J[a+296>>2]=b;return a|0}ea(0)|0;yc();B()}function f$(a,b){var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;a:{if(!J[a+336>>2])break a;c=J[a+328>>2];if((c|0)<(b|0)){J[e>>2]=b;gc[J[659549]](J[689514],36633,e);c=J[a+328>>2];b=c}if((c|0)<=0|(b|0)<=0)break a;if(b>>>0>=4){g=b&-4;while(1){d=c<<2;J[(d+J[a+336>>2]|0)-4>>2]=0;J[(J[a+336>>2]+d|0)-8>>2]=0;J[(J[a+336>>2]+d|0)-12>>2]=0;c=c-4|0;J[J[a+336>>2]+(c<<2)>>2]=0;f=f+4|0;if((g|0)!=(f|0))continue;break}}d= -b&3;if(d){b=0;while(1){c=c-1|0;J[J[a+336>>2]+(c<<2)>>2]=0;b=b+1|0;if((d|0)!=(b|0))continue;break}}J[a+328>>2]=c}bc=e+16|0}function bda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;H[d+27|0]=c;J[d+28>>2]=b;g=d,h=oi(a),J[g+20>>2]=h;e=J[d+28>>2]-J[d+20>>2]|0;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a:{if((c|0)==((K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10)|0)){ly(a,c,1,c,e,1);b=J[a>>2];break a}if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if((c|0)==(e|0))break a;f=b+e|0;Dm(f+ -1|0,f,c-e|0)}H[b+e|0]=K[d+27|0];H[d+19|0]=0;f=b;b=c+1|0;H[f+b|0]=K[d+19|0];Nk(a,b);g=d,h=oi(a),J[g+12>>2]=h;a=ry(d+12|0,e);bc=d+32|0;return a|0}function vKa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=J[a+8>>2];b=rc(34120);c=J[a+4>>2];d=J[J[c>>2]+8>>2];a:{b:{if(e){J[695492]=0;c=$(d|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){a=J[a+8>>2];d=J[a+16>>2];e=J[a+12>>2];f=J[a+8>>2];a=J[a+4>>2];J[695492]=0;ja(3475,b|0,c|0,a|0,f|0,e|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}break a}J[695492]=0;a=$(d|0, -c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[b+34076>>2]=0;J[b+34068>>2]=0;J[b>>2]=2332584;J[b+4>>2]=a;wc(b+8|0,0,32772)}return b|0}a=Z()|0;qc(b);ba(a|0);B()}function kYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=J[a+20>>2];if((d|0)!=101){f=J[a>>2];J[f+24>>2]=d;J[f+20>>2]=21;gc[J[J[a>>2]>>2]](a)}if(M[a+260>>2]>=M[a+32>>2]){d=J[a>>2];J[d+20>>2]=126;gc[J[d+4>>2]](a,-1)}d=J[a+8>>2];if(d){J[d+4>>2]=J[a+260>>2];J[d+8>>2]=J[a+32>>2];gc[J[d>>2]](a)}d=J[a+388>>2];if(J[d+12>>2])gc[J[d+ -4>>2]](a);d=J[a+260>>2];f=J[a+32>>2];J[e+12>>2]=0;g=b;b=f-d|0;gc[J[J[a+392>>2]+4>>2]](a,g,e+12|0,b>>>0>>0?b:c);b=a;c=J[a+260>>2];a=J[e+12>>2];J[b+260>>2]=c+a;bc=e+16|0;return a|0}function jma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=J[a+12>>2];if(J[b+2232>>2]!=512){a=bc-16|0;bc=a;d=b+2312|0;b=J[d+8>>2];c=J[b+4>>2];a:{if(!c)break a;c=c-1|0;if(!K[J[J[b+20>>2]+(c>>>6&67108860)>>2]+(c&255)|0])break a;J[a+12>>2]=0;e=Ke(b+4|0,a+12|0),f=0,H[e|0]=f;c=J[a+12>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0; -J[b+4>>2]=J[b+4>>2]+1}b=J[d+4>>2];if(b){J[a+8>>2]=512;gc[J[J[b>>2]+308>>2]](b,a+8|0)|0;b=J[d+4>>2];gc[J[J[b>>2]+352>>2]](b)|0;b=J[d+4>>2];J[a+4>>2]=512;gc[J[J[b>>2]+312>>2]](b,a+4|0)|0}bc=a+16|0}return 0}function cv(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{if(!J[a+8>>2])break a;d=J[a+4>>2];b=J[d>>2];c=J[J[a>>2]+4>>2];J[b+4>>2]=c;J[c>>2]=b;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b=d;d=J[b+4>>2];b:{if(!J[b+20>>2])break b;c=J[b+16>>2];f=J[c>>2];e=J[J[b+12>>2]+4>>2];J[f+4>>2]=e;J[e>>2]=f;J[b+20>>2]=0; -e=b+12|0;if((e|0)==(c|0))break b;while(1){f=J[c+4>>2];qc(c);c=f;if((e|0)!=(c|0))continue;break}}qc(b);if((a|0)!=(d|0))continue;break}}O[a+16>>3]=O[a+48>>3];O[a+24>>3]=O[a+56>>3];O[a+32>>3]=O[a+64>>3];O[a+40>>3]=O[a+72>>3]}function cOa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+40>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+40>>2]=0}c=J[a+48>>2];if(c){d=J[c+8>>2];if((d|0)>0){b=0;while(1){e=J[J[c>>2]+(b<<2)>>2];if(e){gc[J[J[e>>2]+4>>2]](e);d=J[c+8>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}}qc(dd(c));J[a+48>>2]=0}c= -J[a+52>>2];if(c){d=J[c+8>>2];if((d|0)>0){b=0;while(1){e=J[J[c>>2]+(b<<2)>>2];if(e){gc[J[J[e>>2]+4>>2]](e);d=J[c+8>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}}qc(dd(c));J[a+52>>2]=0}J[a+60>>2]=0;J[a+64>>2]=0;a=J[a+4>>2];gc[J[J[a>>2]+24>>2]](a)}function TAa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2389016;Bd(a+16|0);b=J[a+12>>2];J[a+12>>2]=0;a:{b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b| -0)==1)break a}b=J[a+8>>2];J[a+8>>2]=0;c:{if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}qc(ed(a));return}ea(0)|0;yc();B()}function RQa(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;c=J[a+28>>2];e=J[c+596>>2];if(!(J[e+28>>2]>0|J[e>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)| -0}xc(1,b,820972,0);return}g=O[b+24>>3];a=J[b+24>>2];d=O[b+40>>3];h=J[b+40>>2];i=O[b+8>>3];j=J[b+8>>2];k=J[b>>2];l=J[b+16>>2];m=J[b+32>>2];f=J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3];O[c+608>>3]=f;d=(m|0)==1?+(h|0):d;O[c+600>>3]=d;_l(e,(k|0)==1?+(j|0):i,(l|0)==1?+(a|0):g,d,f,d,f)}function TVa(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;g=bc-80|0;bc=g;i=J[a+24>>2];J[g+64>>2]=13;J[g+48>>2]=13;h=g- -64|0;m_(c,h);a=0;hf(h,i,g+48|0,0);J[g+32>>2]=13;J[g+16>>2]=13;J[g>>2]=13;a:{if(J[Bc(J[g+ -56>>2],783522,g+32|0,0)>>2]==6){h=J[g+40>>2];if(J[h+12>>2]<=0)break a;while(1){j=h;h=g+16|0;jg(j,a,h);hf(h,i,g,0);$A(c,b,d,0,h,g,e,f,0);uc(g);uc(h);a=a+1|0;h=J[g+40>>2];if((a|0)>2])continue;break}break a}$A(c,b,d,0,g- -64|0,g+48|0,e,f,0)}uc(g+32|0);uc(g- -64|0);uc(g+48|0);bc=g+80|0}function TG(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2383696;b=J[a+48>>2];J[a+48>>2]=0;a:{b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}_c(a+40|0);b=J[a+32>>2];J[a+32>>2]=0;c:{if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}return ed(a)|0}ea(0)|0;yc();B()}function BV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;H[c+7|0]=b;H[c+6|0]=b>>>8;H[c+5|0]=b>>>16;b=0;d=3;f=c+5|0;a:{b:{while(1){e=gc[J[J[a>>2]+12>>2]](a,f,d)|0;if(!e){a=Kc(c+8|0,2378736,2375204, -474,2384672,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}f=f+e|0;b=b+e|0;d=d-e|0;if(d)continue;break}if((b|0)!=3){a=Kc(c+8|0,Jl(J[694731]),2375204,535,2384798,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=c+32|0;return}B()}b=Z()|0;Fc(a);ba(b|0);B()}function UAa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2389016;Bd(a+16|0);b=J[a+12>>2];J[a+12>>2]=0;a:{b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)== -1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+8>>2];J[a+8>>2]=0;c:{if(!b)break c;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break c;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}return ed(a)|0}ea(0)|0;yc();B()}function Ms(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=bc-32|0;bc=b;d=3;e=b+5|0;a:{b:{while(1){c=gc[J[J[a>>2]+8>>2]](a,e,d)|0;if((c|0)<0){a=Kc(b+8|0,Jl(J[694731]),2375204,413,2384629, -0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if(c){e=c+e|0;f=c+f|0;d=d-c|0;if(d)continue}break}if((f|0)!=3){a=Kc(b+8|0,J[682138],2375204,573,2384943,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=b+32|0;return K[b+7|0]|(K[b+6|0]<<8|K[b+5|0]<<16)}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Inb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1951551059){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];H[b+34|0]=K[c+34|0]; -d=J[c+36>>2];J[b+36>>2]=d;I[b+296>>1]=L[c+296>>1];I[b+298>>1]=L[c+298>>1];I[b+300>>1]=L[c+300>>1];I[b+302>>1]=L[c+302>>1];a=J[c+304>>2];J[b+304>>2]=a;if(d){a=0;while(1){H[(a+b|0)+40|0]=K[(a+c|0)+40|0];a=a+1|0;if(a>>>0>2])continue;break}a=J[b+304>>2]}if(a){a=0;while(1){H[(a+b|0)+308|0]=K[(a+c|0)+308|0];a=a+1|0;if(a>>>0>2])continue;break}}return 0}function Hl(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=bc-16|0;bc=e;A(+b);g=v(1)|0;c=v(0)|0;d=g&2147483647;f=d+-1048576|0;a:{if((f|0)==2145386495| -f>>>0<2145386495){h=c<<28;c=(d&15)<<28|c>>>4;d=(d>>>4|0)+1006632960|0;break a}if((d|0)==2146435072|d>>>0>2146435072){h=c<<28;c=(g&15)<<28|c>>>4;d=g>>>4|2147418112;break a}if(!(c|d)){c=0;d=0;break a}f=c;c=d?S(d):S(c)+32|0;qi(e,f,d,0,0,c+49|0);i=J[e>>2];h=J[e+4>>2];f=15372-c<<16;c=J[e+8>>2];d=f|J[e+12>>2]^65536}J[a>>2]=i;J[a+4>>2]=h;J[a+8>>2]=c;J[a+12>>2]=g&-2147483648|d;bc=e+16|0}function Bza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;b=J[b>>2];a:{if(b){gc[J[J[b>>2]+28>>2]](c+12|0,b,1);break a}J[c+ -12>>2]=0}J[695492]=0;aa(4993,a|0,c+12|0)|0;b=J[695492];J[695492]=0;b:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break b;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b}ea(0)|0;yc();B()}a=Z()|0;vc(c+12|0);ba(a|0);B()}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2728584)>>2];bc=c+16|0;return a|0}function nGa(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;g=bc-16| -0;bc=g;J[g+12>>2]=0;J[g+8>>2]=0;a=J[J[a+4>>2]+12>>2];if(a){l=g+12|0;m=g+8|0;i=a+32|0;h=J[i>>2];a:{if(!h)break a;a=i;while(1){j=J[h+16>>2]<(b|0);a=j?a:h;h=J[(j?h+4|0:h)>>2];if(h)continue;break}if((a|0)==(i|0)|J[a+16>>2]>(b|0))break a;iW(J[a+20>>2],l,m)}n=+J[g+12>>2]*25.4;k=+J[g+8>>2]*25.4}else k=0;O[c>>3]=n/96;O[d>>3]=k/96;J[e>>2]=1717986918;J[e+4>>2]=1077503590;J[f>>2]=1717986918;J[f+4>>2]=1077503590;bc=g+16|0}function xba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;f=J[a+584>> -2];if(f){g=c;c=J[f+840>>2];d=(g|0)/(c|0)|0;if((g|0)!=(P(d,c)|0))ae(J[a+628>>2],J[a>>2],87754,0);if(!(K[a+13|0]&4)){c=J[a+60>>2];g=J[a+472>>2];d=c>>>0>>0?c-g|0:d}c=1;a:{if((d|0)<=0)break a;J[e+12>>2]=b;c=0;if((xO(f,e+12|0)|0)!=1)break a;while(1){if(d>>>0<2){c=1;break a}J[a+472>>2]=J[a+472>>2]+1;b=J[f+840>>2]+b|0;J[e+12>>2]=b;d=d-1|0;if((xO(f,e+12|0)|0)==1)continue;break}}bc=e+16|0;return c|0}fa(75254,70490,1426,97742);B()}function lYa(a){a=a|0;var b=0,c=0,d=0;d=bc-16|0;bc=d;b=gc[J[659447]](56)| -0;a:{if(!b){J[d>>2]=17038;Cc(0,0,0,0,0,23,2,3,17038,0,0,0,32863,d);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=15;J[b+36>>2]=J[a+36>>2];c=J[a+8>>2];if(c)c=$e(c);else c=0;J[b+8>>2]=c;c=J[a+48>>2];if(c)c=$e(c);else c=0;J[b+48>>2]=c;a=qw(0,J[a+40>>2]);J[b+44>>2]=0;J[b+40>>2]=a}bc=d+16|0;return b|0}function aka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0, -h=0;e=J[a+8>>2];if((e|0)!=J[a+12>>2]){J[e>>2]=J[b>>2];J[a+8>>2]=e+4;return a|0}a:{c=a+4|0;g=J[c>>2];f=e-g|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){c=f>>1;c=f>>>0>=2147483644?1073741823:c>>>0>d>>>0?c:d;if(c){if(c>>>0>=1073741824)break a;f=rc(c<<2)}else f=0;d=f+(h<<2)|0;J[d>>2]=J[b>>2];b=d+4|0;if((e|0)!=(g|0))while(1){d=d-4|0;e=e-4|0;J[d>>2]=J[e>>2];if((e|0)!=(g|0))continue;break}J[a+12>>2]=f+(c<<2);J[a+8>>2]=b;J[a+4>>2]=d;if(g)qc(g);return a|0}kj(c);B()}Sd();B()}function Saa(a){a=a|0;var b=0,c=0,d=0; -a:{b:{b=J[a+584>>2];if(!b){b=zc(148);J[a+584>>2]=b;if(!b){Nc(J[a+628>>2],71704,70758,0);return 0}J[b+96>>2]=0;J[b+116>>2]=0;pE(a);b=J[a+584>>2];if(!b)break b}if(!J[b+116>>2]){d=b;b=zc(40952);J[d+116>>2]=b;if(!b)break a;a=255;while(1){c=b+(a<<3)|0;H[c+7|0]=a;H[c+6|0]=a;I[c+4>>1]=1;J[c>>2]=0;c=a-1|0;d=b+(c<<3)|0;H[d+7|0]=c;H[d+6|0]=c;I[d+4>>1]=1;J[d>>2]=0;a=a-2|0;if(c)continue;break}Hg(b+2048|0,0,16)}return 1}fa(72282,70324,222,97856);B()}Nc(J[a+628>>2],97840,72595,0);return 0}function uca(a){a=a|0; -var b=0,c=0,d=0,e=0;b=a>>>0<=1?1:a;a=lP(16,b);if(!a)a:{d=(b+3>>>2|0)+1|0;a=J[696023];if(!a){J[696023]=2784108;I[1392055]=125;I[1392054]=128;a=J[696023]}while(1){b=0;b:{if(!a|(a|0)==2784608)a=b;else{b=L[a+2>>1];e=d+(b>>>0>d>>>0?b-d&3:0)|0;if(e>>>0>>0){c=b-e|0;I[a+2>>1]=c;a=((c&65535)<<2)+a|0;I[a+2>>1]=e;I[a>>1]=0;a=a+4|0;break a}if(b>>>0>>0)break b;b=L[a>>1];c:{if(!c){J[696023]=(b<<2)+2784096;break c}I[c>>1]=b}I[a>>1]=0;a=a+4|0}break a}c=a;a=(L[a>>1]<<2)+2784096|0;continue}}return a|0}function KG(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;c=J[682146];e=b&7;b:{if(!e){d=b;break b}d=b;while(1){J[a+16>>2]=0;J[a+20>>2]=c;a=a+28|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<8)break a;while(1){J[a+16>>2]=0;J[a+216>>2]=c;J[a+212>>2]=0;J[a+188>>2]=c;J[a+184>>2]=0;J[a+160>>2]=c;J[a+156>>2]=0;J[a+132>>2]=c;J[a+128>>2]=0;J[a+104>>2]=c;J[a+100>>2]=0;J[a+76>>2]=c;J[a+72>>2]=0;J[a+48>>2]=c;J[a+44>>2]=0;J[a+20>>2]=c;a=a+224|0;b=d-9|0;d=d-8|0;if(b>>>0<4294967294)continue;break}}} -function Ao(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;a:{if(!a){g=1;break a}xf(a,c+12|0,c+8|0,c+4|0);if(J[c+4>>2]==32)break a;e=a?J[a+40>>2]:0;f=a?J[a+12>>2]:-1;a=P(J[c+4>>2],J[c+12>>2]);d=(a|0)/32|0;a=a-(d<<5)|0;if(!a|J[c+8>>2]<=0)break a;e=(d<<2)+e|0;d=J[(0-a<<2)+230832>>2];a=0;b:{if(!b){d=d^-1;while(1){b=e+(P(a,f)<<2)|0;J[b>>2]=d&J[b>>2];a=a+1|0;if((a|0)>2])continue;break}break b}while(1){b=e+(P(a,f)<<2)|0;J[b>>2]=d|J[b>>2];a=a+1|0;if((a|0)>2])continue;break}}}bc=c+ -16|0;return g|0}function AB(a){var b=0,c=0,d=0,e=0;d=bc-1024|0;bc=d;if(!K[2758164]){c=J[689542];if((c|0)<=14){b=c<<4;J[b+2758188>>2]=3121;J[b+2758184>>2]=3122;J[b+2758180>>2]=3123;J[b+2758176>>2]=3124;J[689542]=c+1}H[2758164]=1}a:{if(!a)break a;b=qd(d,a,1023);H[b+1023|0]=0;c=Qc(b);a=c+b|0;b:{c:{d:{e:{if((c|0)>0)while(1){if(K[a|0]==47)break e;a=a-1|0;if(b>>>0>>0)continue;break}if(K[a|0]!=47)break d}a=(a|0)==(b|0)?b+1|0:a;break c}if(!HR(b,1024))break b;a=b+1023|0}H[a|0]=0;e=gc[J[659453]](b)|0;break a}}bc= -d+1024|0;return e}function uaa(a){a=a|0;var b=0,c=0,d=0;c=J[a+584>>2];a:{if(!(gc[J[c+60>>2]](a)|0))break a;if(!sO(a))break a;d=1;b:{c:switch(J[c>>2]-2|0){case 0:b=714;d:{e:{f:switch(L[a+84>>1]-8|0){case 8:b=715;break e;case 0:break e;case 24:break f;default:break d}b=716}J[c+24>>2]=b}b=J[a+544>>2];if((b|0)!=717)break b;break a;case 1:break c;default:break a}J[c+24>>2]=718;b=J[a+544>>2];if((b|0)==717)break a}J[c+12>>2]=b;J[a+544>>2]=717;J[c+16>>2]=J[a+552>>2];J[a+552>>2]=719;J[c+20>>2]=J[a+560>>2]; -J[a+560>>2]=719}return d|0}function k2a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;J[b>>2]=0;J[c>>2]=0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=413844;J[695492]=0;a=ga(3,d|0,a|0,0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)a:{b:{if(!a)break b;J[695492]=0;e=J[d+12>>2];a=$(27,e|0)|0;g=J[695492];J[695492]=0;c:{if((g|0)!=1){f=J[d+4>>2];if(!f)break c;g=1;e=Yd(a,1,e,f);J[d+8>>2]=0;J[d+12>>2]=0;f=J[d+4>>2];if(f){fg(f);J[d+4>>2]=0}J[b>>2]=a;J[c>>2]=e;break b}break a}qc(a);g=0}ve(d);bc=d+ -16|0;return g|0}a=Z()|0;ve(d);ba(a|0);B()}function z0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=b;c=J[a+8>>2];d=J[a+12>>2];b=8;a:{b:{if(c>>>0>=d>>>0)break b;b=d-c|0;if((b|0)<=3){tc(J[a+4>>2]+37|0,c,b);H[J[a+4>>2]+36|0]=b;J[a+8>>2]=b+c;b=11;break b}b=K[c+1|0];d=K[c|0];f=K[c+2|0];g=K[c+3|0];J[a+8>>2]=c+4;h=d;d=f<<16|g<<24|b<<8;b=h|d;if(b>>>0<=1114111&(d&-2048)!=55296)break a;b=J[a+4>>2];c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[b+37|0]=c;H[b+38|0]=c>>>8;H[b+39|0]=c>>>16;H[b+40|0]=c>>> -24;H[J[a+4>>2]+36|0]=4;b=12}J[e>>2]=b;b=65535}return b|0}function uO(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+508>>2];if((d|0)>0){while(1){c=P(b,12)+a|0;g=J[c+272>>2];a:{if(!(e|(g|0)!=225)){i=J[c+276>>2];j=J[c+268>>2];e=225;break a}h=J[c+268>>2];if(!(f|(g|0)!=254)){k=J[c+276>>2];f=254;l=h;break a}qc(h);J[c+268>>2]=0;d=J[a+508>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}b=0;J[a+508>>2]=0;if(e){J[a+268>>2]=j;J[a+508>>2]=1;J[a+276>>2]=i;J[a+272>>2]=e;b=1}if(f){J[a+508>>2]=b+1;a=P(b, -12)+a|0;J[a+276>>2]=k;J[a+272>>2]=f;J[a+268>>2]=l}return}J[a+508>>2]=0}function rla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=bc-32|0;bc=d;f=L[a+88>>1];b=2729248;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[656756];if(!e)break c;b=2627024;if(L[1313514]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=69319;J[d>>2]=f;Nc(a,b,74603,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2]; -a=J[a+628>>2];J[d+20>>2]=69319;J[d+16>>2]=e;Nc(a,b,74266,d+16|0)}bc=d+32|0;return-1}function lla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=bc-32|0;bc=d;f=L[a+88>>1];b=2729248;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[656756];if(!e)break c;b=2627024;if(L[1313514]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=70170;J[d>>2]=f;Nc(a,b,74603,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>> -2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=70170;J[d+16>>2]=e;Nc(a,b,74266,d+16|0)}bc=d+32|0;return-1}function ggb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];if((c|0)==-1)return 0;d=c+1|0;a=J[a+16>>2];c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=d>>>0>e>>>0?d:e;e=c-e|0;d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a:{if(e>>>0>=d>>>0)break a;a=(a+(e<<1)|0)+20|0;while(1){f=K[a+1|0]|K[a|0]<<8;if(f)break a; -if((c|0)==-1)return 0;a=a+2|0;c=c+1|0;e=e+1|0;if(d>>>0>e>>>0)continue;break}f=0}J[b>>2]=c;return f|0}function cla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=bc-32|0;bc=d;f=L[a+88>>1];b=2729248;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[656756];if(!e)break c;b=2627024;if(L[1313514]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=70844;J[d>>2]=f;Nc(a,b,74603,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue; -break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=70844;J[d+16>>2]=e;Nc(a,b,74266,d+16|0)}bc=d+32|0;return-1}function Yka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=bc-32|0;bc=d;f=L[a+88>>1];b=2729248;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[656756];if(!e)break c;b=2627024;if(L[1313514]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=69319;J[d>>2]=f;Nc(a,b,75421,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f| -0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=69319;J[d+16>>2]=e;Nc(a,b,75067,d+16|0)}bc=d+32|0;return-1}function TH(a){var b=0,c=0,d=0;b=bc-16|0;bc=b;J[b>>2]=13;a:{b:{c:switch(J[a>>2]-3|0){case 0:a=J[a+8>>2];c=rc(8);J[695492]=0;a=aa(3183,c|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break b;break a;case 4:if(J[Bc(J[a+8>>2],793456,b,0)>>2]!=3){uc(b);Bc(J[a+8>>2],781006,b,0)}d:{if(J[b>>2]==3){a=J[b+8>>2];c=rc(8);J[695492]=0;a=aa(3183,c|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1)break d; -break a}a=0;xc(0,-1,794455,0)}uc(b);break b;default:break c}a=0;xc(0,-1,794455,0)}bc=b+16|0;return a}a=Z()|0;qc(c);ba(a|0);B()}function Rka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=bc-32|0;bc=d;f=L[a+88>>1];b=2729248;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[656756];if(!e)break c;b=2627024;if(L[1313514]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=70170;J[d>>2]=f;Nc(a,b,75421,d);break a}c=J[b+4>>2]; -if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=70170;J[d+16>>2]=e;Nc(a,b,75067,d+16|0)}bc=d+32|0;return-1}function Lka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=bc-32|0;bc=d;f=L[a+88>>1];b=2729248;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[656756];if(!e)break c;b=2627024;if(L[1313514]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=70844;J[d>>2]=f;Nc(a,b,75421,d);break a}c= -J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=70844;J[d+16>>2]=e;Nc(a,b,75067,d+16|0)}bc=d+32|0;return-1}function Hdb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+8>>2];b=J[c>>2];a:{if(K[b+732|0])break a;H[c+112|0]=0;d=J[c+16>>2];a=J[c+12>>2];J[c+48>>2]=a;J[c+52>>2]=d;d=J[c+24>>2];J[c+56>>2]=J[c+20>>2];J[c+60>>2]=d;e=J[c+32>>2];d=c- -64|0;J[d>>2]=J[c+28>>2];J[d+4>>2]=e;J[c+72>>2]=J[c+36>>2];if(!(a&65535)|!L[c+50>>1])break a;if(K[b+176|0]&8){f=c,g=Pc(I[b+ -70>>1],J[c+56>>2])+32&-64,J[f+60>>2]=g;f=d,g=Pc(I[b+72>>1],J[c+56>>2])+32&-64,J[f>>2]=g;f=c,g=Pc(I[b+74>>1],J[c+56>>2])+32&-64,J[f+68>>2]=g}H[c+112|0]=1}return 0}function FEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=bc-16|0;bc=c;if(!(!J[a+12>>2]|(!J[a+4>>2]|!J[a+8>>2]))){J[c+12>>2]=0;gc[J[J[b>>2]+16>>2]](b,c+12|0)|0;a:{if(J[c+12>>2]==1){b=b-4|0;gc[J[J[b>>2]+264>>2]](b,J[a+4>>2],J[a+8>>2],J[a+12>>2])|0;break a}d=O[a+32>>3]-O[a+16>>3];e=d;f=d*d;d=O[a+40>>3]-O[a+24>>3];h=c,i=Zy(e/Y(f+d*d))* -180/3.141592653589793,O[h>>3]=i;gc[J[J[b>>2]+136>>2]](b,2370872)|0;gc[J[J[b>>2]+228>>2]](b,J[a+4>>2],J[a+8>>2],J[a+12>>2])|0;gc[J[J[b>>2]+216>>2]](b,c)|0}g=1}bc=c+16|0;return g|0}function D0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=b;c=J[a+8>>2];d=J[a+12>>2];b=8;a:{b:{if(c>>>0>=d>>>0)break b;b=d-c|0;if((b|0)<=3){tc(J[a+4>>2]+37|0,c,b);H[J[a+4>>2]+36|0]=b;J[a+8>>2]=b+c;b=11;break b}b=K[c+2|0];d=K[c+3|0];f=K[c+1|0];g=K[c|0];J[a+8>>2]=c+4;h=d;d=f<<16|g<<24|b<<8;b=h|d;if(b>>>0<=1114111&(d&-2048)!= -55296)break a;b=J[a+4>>2];c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[b+37|0]=c;H[b+38|0]=c>>>8;H[b+39|0]=c>>>16;H[b+40|0]=c>>>24;H[J[a+4>>2]+36|0]=4;b=12}J[e>>2]=b;b=65535}return b|0}function pd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b:{d=J[a+4>>2];c:{if(!d){J[a+8>>2]=1E3;c=zc(1E3);J[a+16>>2]=0;J[a+4>>2]=c;break c}c=J[a+8>>2];e=J[a+16>>2]+4|0;if(c>>>0>=e>>>0)break b;while(1){c=c<<1;if(e>>>0>c>>>0)continue;break}J[a+8>>2]=c;c=Vd(d,c);if(c){J[a+4>>2]=c;c=c+J[a+16>>2]|0;break c}c=zc(J[a+8>>2]); -d=J[a+4>>2];c=tc(c,d,J[a+16>>2]);qc(d);J[a+4>>2]=c;c=c+J[a+16>>2]|0}J[a+12>>2]=c;break a}c=J[a+12>>2]}H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;J[a+12>>2]=J[a+12>>2]+4;J[a+16>>2]=J[a+16>>2]+4}function cM(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=35;a:{if(!(K[a+8|0]&2))break a;d=7;if(J[b>>2])break a;e=J[b+4>>2];f=e;d=J[b+12>>2];if(d)f=(P(d,e)+36|0)/72|0;g=J[b+8>>2];h=g;d=23;b=J[b+16>>2];if(b)h=(P(b,g)+36|0)/72|0;b=g?h:f;f=(e?f:b)+32&-64;if(!f)break a;e=(e?b:h)+32&-64;if(!e)break a;h=J[a+28>>2]; -if((h|0)<=0)break a;a=J[a+32>>2];b=0;while(1){g=a+(b<<4)|0;if(!((e|0)==(J[g+12>>2]+32&-64)&(f|0)==(J[g+8>>2]+32&-64))){b=b+1|0;if((h|0)!=(b|0))continue;break a}break}d=0;if(!c)break a;J[c>>2]=b;return 0}return d}function KK(a){a=a|0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+64>>2]=1;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+40>>2]=-1030792151;J[a+44>>2]=1072703733;J[a+32>>2]=0;J[a+36>>2]=1074790400;J[a+24>>2]=1;J[a+16>>2]=0;J[a+20>>2]=1061158912;J[a+8>>2]=0;J[a+12>>2]=1071644672;J[a>>2]= -0;J[a+4>>2]=1071644672;J[a+92>>2]=0;J[a+96>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=64;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=64;J[a+120>>2]=0;J[a+124>>2]=0;return a|0}function ARa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=J[a+28>>2];if(!J[c+492>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,b,823278,0);return}if(J[a+32>>2]){d=J[a+8>>2];gc[J[J[d>>2]+156>>2]](d,c);J[a+32>> -2]=0}if(J[a+100>>2]){c=J[a+8>>2];gc[J[J[c>>2]+232>>2]](c,J[a+28>>2]);XA(a,J[b+8>>2]);b=J[a+8>>2];gc[J[J[b>>2]+236>>2]](b,J[a+28>>2]);return}b=J[b+8>>2];c=J[a+8>>2];if(gc[J[J[c>>2]+32>>2]](c)|0){a=J[a+8>>2];gc[J[J[a>>2]+268>>2]](a,J[b>>2])}}function sqa(a){a=a|0;var b=0,c=0,d=0;b=rc(72);J[b+8>>2]=0;J[b>>2]=2421084;J[b+4>>2]=0;d=J[682146];J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=d;J[695492]=0;d=b+24|0;J[d+20>>2]=-1;J[d+12>>2]=-1;J[d+16>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2422620;c=J[695492];J[695492]= -0;a:{if((c|0)!=1){J[695492]=0;c=b+48|0;J[c+20>>2]=-1;J[c+12>>2]=-1;J[c+16>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2422640;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;xd(d);break a}J[a>>2]=0;md(a,b);return}a=Z()|0}vc(b+20|0);sc(b+8|0);qc(ed(b));ba(a|0);B()}function ppa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){c=e&-2;d=e&1;l=h<<2;a=g<<1;while(1){h=0;if((e|0)!=1)while(1){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|-16777216;J[b+4>>2]= -K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|-16777216;b=b+8|0;k=k+4|0;j=j+4|0;i=i+4|0;h=h+2|0;if((h|0)!=(c|0))continue;break}if(d){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|-16777216;k=k+2|0;j=j+2|0;i=i+2|0;b=b+4|0}b=b+l|0;k=a+k|0;j=a+j|0;i=a+i|0;f=f-1|0;if(f)continue;break}}}function krb(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;var h=0,i=0,j=0,k=0,l=0;if(e){l=e-1|0;while(1){a=K[f|0];H[g|0]=a;g=g+1|0;h=i?(i|0)==(l|0)?d:b:c;a:{if(h>>>0<2)break a;j=h-1|0;k=j&7;if(h-2>>>0>=7){j=j&-8;h=0;while(1){H[g+ -7|0]=a;H[g+6|0]=a;H[g+5|0]=a;H[g+4|0]=a;H[g+3|0]=a;H[g+2|0]=a;H[g+1|0]=a;H[g|0]=a;g=g+8|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!k)break a;while(1){H[g|0]=a;g=g+1|0;h=h+1|0;if((k|0)!=(h|0))continue;break}}f=f+1|0;i=i+1|0;if((i|0)!=(e|0))continue;break}}return 0}function ara(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;a:{b:{c:{d:{d=J[a+16>>2];if((d|0)<=(b|0)){b=b-d|0;if((b|0)>=J[a+40>>2]&(b|0)<=J[a+44>>2])break d;a=Kc(c+8|0,2381890,2382316,632,2422732,0);J[695492]=0;_(5019,a|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break b;break a}a=J[a+20>>2];if(a){a=qz(a,b);break c}a=Kc(c+8|0,2382912,2374240,183,2421132,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}a=J[a+28>>2]+P(b-J[a+32>>2]|0,12)|0}bc=c+32|0;return a|0}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Via(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;while(1){a:{if((c|0)<=(g|0))break a;d=J[a+12>>2];e=J[a+16>>2];b:{if(d>>>0>>0){J[f+12>>2]=2147483647;J[f+8>>2]=e-d>>2;J[f+4>>2]=c-g;d=bc-16|0;bc= -d;bc=d+16|0;d=bc-16|0;bc=d;bc=d+16|0;d=f+4|0;e=f+8|0;d=J[d>>2]>2]?d:e;e=f+12|0;d=J[(J[d>>2]>2]?d:e)>>2];kk(b,J[a+12>>2],d);e=d<<2;J[a+12>>2]=e+J[a+12>>2];b=b+e|0;break b}d=gc[J[J[a>>2]+40>>2]](a)|0;if((d|0)==-1)break a;J[b>>2]=d;d=1;b=b+4|0}g=d+g|0;continue}break}bc=f+16|0;return g|0}function T5a(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;d=bc-32|0;bc=d;a:{if(!J[b+216>>2]){H1(b);break a}J[b+192>>2]=0}while(1){b:{c:{if(J[b+216>>2]){c=J[b+192>>2];if(c>>>0>=M[b+196>>2])break b;J[b+ -192>>2]=c+1;g=J[J[b+208>>2]+(c>>>4&268435452)>>2]+((c&63)<<4)|0;e=O[g>>3];O[d+16>>3]=e;f=O[g+8>>3];O[d+8>>3]=f;c=c?2:1;break c}c=jo(b,d+16|0,d+8|0);if(!c)break b;f=O[d+8>>3];e=O[d+16>>3]}J[d+28>>2]=0;h=Ke(a,d+28|0),i=c,H[h|0]=i;c=J[d+28>>2];O[c+8>>3]=f;O[c>>3]=e;J[a>>2]=J[a>>2]+1;continue}break}bc=d+32|0}function xd(a){var b=0,c=0,d=0,e=0,f=0;a:{b=J[a+16>>2];if((b|0)<=J[a+20>>2]){d=J[a+4>>2];c=J[a>>2];e=J[c+16>>2];c=J[c+4>>2];f=J[a+8>>2];J[695492]=0;b=aa(c|0,d|0,b-f|0)|0;d=J[695492];J[695492]=0;if((d| -0)==1)break a;d=J[a+16>>2];c=J[a+20>>2];J[695492]=0;da(e|0,b|0,(c-d|0)+1|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+4>>2];if(b)qc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0;return}na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)!=1)return;ea(0)|0;yc();B()}function nsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+2308>>2]){g=J[a+2300>>2];c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=K[c+2|0];e=K[c+1|0];f=K[c|0];a:{if(!(!K[g+56|0]|(f|0)!=L[g+838>> -1]|(e|0)!=L[g+840>>1]))if((d|0)==L[g+842>>1])break a;H[b+6|0]=255;H[b+7|0]=255}f=gc[J[a+2296>>2]](f)|0;e=gc[J[a+2296>>2]](e)|0;d=gc[J[a+2296>>2]](d)|0;H[b+3|0]=(e|0)!=0;H[b+2|0]=e>>>8;H[b+1|0]=(f|0)!=0;H[b|0]=f>>>8;H[b+5|0]=(d|0)!=0;H[b+4|0]=d>>>8;b=b+8|0;c=c+3|0;h=h+1|0;if(h>>>0>2])continue;break}}return 0}function cfb(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!K[a+632|0])break a;c=J[a+100>>2];b=J[a+476>>2];if((b|0)!=151552){if((b|0)!=131072)break a;b=J[a+640>>2];if(b)gc[J[c+8>>2]](c,b);I[a+636>> -1]=0;J[a+640>>2]=0;if(L[a+638>>1]){b=0;while(1){d=b<<2;e=J[d+J[a+644>>2]>>2];if(e)gc[J[c+8>>2]](c,e);J[J[a+644>>2]+d>>2]=0;b=b+1|0;if(b>>>0>1])continue;break}}b=J[a+644>>2];if(b)gc[J[c+8>>2]](c,b);I[a+638>>1]=0;J[a+644>>2]=0;break a}b=J[a+640>>2];if(b)gc[J[c+8>>2]](c,b);I[a+636>>1]=0;J[a+640>>2]=0}H[a+632|0]=0}function Sha(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;if((c|0)>0){a=J[a+12>>2];while(1){a:{b:{f=J[a>>2];h=f>>16;i=h&32767;if(i){d=Vo((+(i|0)+.5)*.0027076061740622863+ --44.3614195558365);d=h&32768?-d:d;if(!(d<=0))break b}J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;break a}N[b+4>>2]=d;g=(+((f>>>8&255)>>>0)+.5)*.0024390243902439024;j=(+((f&255)>>>0)+.5)*.0024390243902439024;e=1/(g*6+j*-16+12);g=g*9*e;e=j*4*e;N[b>>2]=d*(g/e);N[b+8>>2]=d*((1-g-e)/e)}a=a+4|0;b=b+12|0;f=c>>>0>1;c=c-1|0;if(f)continue;break}}}function Rza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;c=J[682146];e=b&7;b:{if(!e){d=b;break b}d=b;while(1){J[a+8>>2]=0;J[a+12>>2]=c;a=a+16|0;d=d-1|0;f=f+ -1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<8)break a;while(1){J[a+8>>2]=0;J[a+124>>2]=c;J[a+120>>2]=0;J[a+108>>2]=c;J[a+104>>2]=0;J[a+92>>2]=c;J[a+88>>2]=0;J[a+76>>2]=c;J[a+72>>2]=0;J[a+60>>2]=c;J[a+56>>2]=0;J[a+44>>2]=c;J[a+40>>2]=0;J[a+28>>2]=c;J[a+24>>2]=0;J[a+12>>2]=c;a=a+128|0;b=d-9|0;d=d-8|0;if(b>>>0<4294967294)continue;break}}}function Oya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=bc-32|0;bc=d;a:{if(!K[a+144|0]){a=Kc(d+8|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492]; -J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}b:{if(!(c&32)|(a|0)==(b|0))break b;c=a+148|0;if(!(J[c>>2]&64))break b;b=J[c>>2];e=!(b&16);if(e|!(b&64)|e)break b;b=J[a+120>>2];if(b)while(1){if(!(J[J[b+8>>2]+148>>2]&32))break b;b=J[b>>2];if(b)continue;break}Zg(c,0,0,32,0);b=di();gc[J[J[b>>2]+40>>2]](b,a,32,0)}bc=d+32|0;return}B()}function km(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(!b)break a;b:{if(a>>>0<=65535){c=J[b>>2];if(!c|(c|0)<=0)break a;f=J[b+8>>2];b=c-1|0;c=0;e=a&65535;while(1){d=(b+c| -0)/2|0;g=f+(d<<2)|0;c:{if(L[g>>1]>a>>>0){b=d-1|0;break c}if(e>>>0<=L[g+2>>1])return 1;c=d+1|0}if((b|0)>=(c|0))continue;break}break b}c=J[b+4>>2];if(!c|(c|0)<=0)break a;f=J[b+12>>2];b=c-1|0;c=0;while(1){d=(b+c|0)/2|0;e=f+(d<<3)|0;d:{if(M[e>>2]>a>>>0){b=d-1|0;break d}if(M[e+4>>2]>=a>>>0)return 1;c=d+1|0}if((b|0)>=(c|0))continue;break}}}return 0}function Ptb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;d=J[a+644>> -2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){c=K[b|0]|K[b+1|0]<<8;f=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=f+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;d=d+2|0;b=b+2|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}tc(b,d,J[a+588>>2]<<1);return 0}function Gyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=-1;a:{if(ki(b,J[a+24>>2]))break a;if(ki(b,J[a+20>>2]))break a;if(wh(b,J[a+28>>2]))break a;d=J[b+8>>2]; -if(d&7)break a;e=K[a+32|0];c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2])){J[b+8>>2]=d|4;return-1}J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;b:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break b}if((Uc(b,e)|0)==-1)break a}c=-1;if(Mr(b,K[a+33|0]))break a;if(Mr(b,K[a+34|0]))break a;c=Mr(b,K[a+35|0])?-1:0}return c|0}function GXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+196>>2];if(c){c=(c+J[a+192>>2]|0)-1|0;e=(c>>>0)/93|0;d=J[J[a+180>>2]+(e<<2)>>2];e=c-P(e,93)| -0;c=d+P(e,44)|0;f=J[c+40>>2];if(f)qc(tt(f));f=J[c+24>>2];if(f)qc(f);e=d+P(e,44)|0;d=J[e+12>>2];if(d){J[e+16>>2]=d;qc(d)}d=J[c>>2];if(d){J[c+4>>2]=d;qc(d)}d=J[a+196>>2];J[a+196>>2]=d-1;c=J[a+184>>2];e=J[a+180>>2];if((((c|0)!=(e|0)?P(c-e>>2,93)-1|0:0)-(d+J[a+192>>2]|0)|0)+1>>>0>=186){qc(J[c-4>>2]);J[a+184>>2]=J[a+184>>2]-4}}H[a+200|0]=1;gc[J[J[a>>2]+72>>2]](a,b)}function $D(a){var b=0,c=0,d=0,e=0;a:{b=J[a+8>>2];if((b|0)<=0)break a;a=J[a+12>>2];d=b&3;b:{if(!d){c=b;break b}c=b;while(1){J[a+12>>2]=0;J[a+ -4>>2]=2147483647;J[a+8>>2]=0;a=a+16|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){J[a+12>>2]=0;J[a+4>>2]=2147483647;J[a+8>>2]=0;J[a+60>>2]=0;J[a+52>>2]=2147483647;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=2147483647;J[a+40>>2]=0;J[a+28>>2]=0;J[a+20>>2]=2147483647;J[a+24>>2]=0;a=a- -64|0;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}}function iia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;e=J[c+4>>2];c=J[c>>2];J[d>>2]=c;J[d+4>>2]=e;J[d+8>>2]=c;J[d+12>> -2]=e;f=bc-32|0;bc=f;e=Dj(f+8|0,b);J[695492]=0;c=f+20|0;ca(7049,c|0,d|0,e|0);b=J[695492];J[695492]=0;a:{b:{c:{if((b|0)!=1){J[695492]=0;a=aa(7050,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;ad(c);ad(e);J[a>>2]=2625728;b=J[d+4>>2];J[a+8>>2]=J[d>>2];J[a+12>>2]=b;bc=f+32|0;break a}a=Z()|0;break b}a=Z()|0;ad(f+20|0)}ad(e);ba(a|0);B()}J[a>>2]=2614600;bc=d+16|0;return a|0}function ANa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;J[a+8>>2]=13;J[a>>2]=2307536;a:{if(J[b>>2]==3){b=J[b+8>>2];e=rc(8); -J[695492]=0;b=aa(3183,e|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1)break a;a=Z()|0;qc(e);ba(a|0);B()}b=0;xc(1,-1,807761,0)}e=a+8|0;J[a+4>>2]=b;b:{c:switch(J[c>>2]-5|0){case 1:Ef(c,e);break b;default:xc(1,-1,808075,0);break;case 0:break c}J[e>>2]=5}d:switch(J[d>>2]-1|0){case 0:J[a+24>>2]=J[d+8>>2];return a|0;default:xc(1,-1,808466,0);break;case 4:break d}J[a+24>>2]=0;return a|0}function xv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(!K[a+8|0])break a;e=J[a>>2];if(!e)break a;f=J[e+4>>2]- -1|0;J[e+4>>2]=f;if(f)break a;qc(e)}J[a>>2]=0;J[a+4>>2]=0;e=0;H[a+8|0]=0;if((d|0)==-1){d=Ve(b);d=(d|0)<0?-2147483648:d}J[a+4>>2]=d;b:{c:{d:{if(!c){c=b;break d}if(!d)break c;c=rc(8);J[695492]=0;f=d<<2;d=$(27,(d>>>0>1073741822?-1:f+4|0)|0)|0;g=J[695492];J[695492]=0;e=1;if((g|0)==1)break b;J[c>>2]=d;J[d+f>>2]=0;tc(d,b,f);J[c+4>>2]=1}H[a+8|0]=e;J[a>>2]=c}return}a=Z()|0;qc(c);ba(a|0);B()}function sI(a){var b=0;b=J[a+4>>2];if(b)qc(VA(b));J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a; -J[695492]=0;_(3205,a+24|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+40|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+56|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+72|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(3205,a+88|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a}ea(0)|0;yc();B()}function qk(a){var b=0,c=0,d=0;J[695492]=0;_(3205,a+16|0);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;J[695492]=0;_(3205, -a+32|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+4>>2];if(b){b:{c:{if(J[b+8>>2]!=13){d=J[b+16>>2];c=J[J[d>>2]+24>>2];J[695492]=0;_(c|0,d|0);c=J[695492];J[695492]=0;if((c|0)==1)break c;J[695492]=0;_(3205,b+8|0);c=J[695492];J[695492]=0;if((c|0)==1)break c}d:{if(!J[b+24>>2])break d;c=J[b>>2];if(!c)break d;qc(f_(c))}break b}ea(0)|0;yc();B()}qc(b)}return a}ea(0)|0;yc();B()}function ema(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;g=bc-16|0;bc=g;a=J[a+12>>2];Wu(a);J[g+12>>2]= -d;h=a+2312|0;d=J[a+2308>>2];a=bc-16|0;bc=a;a:{if(!c){J[a+12>>2]=0;c=a+12|0;gc[J[J[d>>2]+40>>2]](d,c);N[a+12>>2]=O[e>>3];N[a+8>>2]=O[f>>3];gc[J[J[d>>2]+84>>2]](d,b,c,a+8|0)|0;break a}J[a+12>>2]=1;b=a+12|0;gc[J[J[d>>2]+40>>2]](d,b);J[a+12>>2]=J[g+12>>2];N[a+8>>2]=O[e>>3];N[a+4>>2]=O[f>>3];gc[J[J[d>>2]+92>>2]](d,c,b,a+8|0,a+4|0)|0}gc[J[J[d>>2]+132>>2]](d,h)|0;bc=a+16|0;bc=g+16|0;return 0}function Mg(a,b,c){var d=0,e=0,f=0;a:{d=J[a+4>>2];if((d&48)!=48){f=J[a+8>>2];J[a+8>>2]=f&-2;b:{c:{if(d&16){if((c| -0)!=1)break c;b=b-J[a+28>>2]|0;break c}if(!(d&32))break c;e=-1;if(!(K[a|0]&6)|f&6)break b;f=J[a+16>>2];e=J[a+24>>2]-f|0;if((e|0)>0){if((gc[J[J[a+52>>2]+4>>2]](J[a+56>>2],f,e)|0)!=(e|0))break a;d=J[a+4>>2]}d=d|32}J[a+28>>2]=0;J[a+24>>2]=J[a+16>>2];J[a+4>>2]=d&-49;a=gc[J[J[a+52>>2]+8>>2]](J[a+56>>2],b,c)|0;e=(a|0)<0?-1:a}return e}fa(201515,198678,648,206369);B()}J[a+8>>2]=J[a+8>>2]|2;return-1}function GI(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a>>2];e=Qc(b);if((c|0)>(e^2147483647)){Th(778829);c=J[a>>2]}kh(a, -c+e|0);d=J[a>>2];a:{if((d|0)<0)break a;c=d;g=c+1&3;if(g)while(1){h=J[a+4>>2]+d|0;H[h+e|0]=K[h|0];d=d-1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}if(c>>>0<3)break a;while(1){c=J[a+4>>2]+d|0;H[c+e|0]=K[c|0];c=(J[a+4>>2]+d|0)-1|0;H[c+e|0]=K[c|0];c=(J[a+4>>2]+d|0)-2|0;H[c+e|0]=K[c|0];f=d-3|0;c=f+J[a+4>>2]|0;H[c+e|0]=K[c|0];d=d-4|0;if((f|0)>0)continue;break}}tc(J[a+4>>2],b,e);J[a>>2]=J[a>>2]+e}function $5a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+16>>2]=c;J[a>>2]=349292;J[a+4>>2]=2;e=nl(a+20|0);J[a+40>> -2]=0;J[a+44>>2]=0;J[a+24>>2]=-16777216;J[a+28>>2]=-16777216;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[695492]=0;c=$(4,32)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){J[695492]=0;b=aa(2388,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;H[a+72|0]=255;J[a+12>>2]=1;J[a+8>>2]=b;H[a+32|0]=0;return a|0}a=Z()|0;break a}a=Z()|0;qc(c)}Ed(e);ba(a|0);B()}function xh(a,b,c,d){var e=0,f=0,g=0,h=0;a:{if((b|0)>0)while(1){e=J[a+8>>2];if(e&7)return-1;f=J[a+64>> -2];if(!((f|0)<0|J[a+60>>2]<(f|0))){J[a+8>>2]=e|4;return-1}e=(b<<3)-8|0;f=c;h=e&-8;e=h&31;if((h&63)>>>0>=32)e=d>>>e|0;else e=((1<>>e;J[a+4>>2]=J[a+4>>2]|32;f=J[a+28>>2];J[a+28>>2]=f-1;b:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+24>>2]=f+1;H[f|0]=e;break b}f=-1;if((Uc(a,e&255)|0)==-1)break a}f=b>>>0>1&(g|0)>=0|(g|0)>0;e=b;b=e-1|0;g=g-!e|0;if(f)continue;break}f=0}return f}function Uc(a,b){var c=0,d=0,e=0;c=-1;a:{b:{c:{if(!(!(K[a|0]&6)|K[a+8|0]&7)){e=J[a+4>>2];if(e&16)break c; -c=J[a+16>>2];d=J[a+24>>2]-c|0;if((d|0)>0){if((gc[J[J[a+52>>2]+4>>2]](J[a+56>>2],c,d)|0)!=(d|0))break b;e=J[a+4>>2];c=J[a+16>>2]}J[a+24>>2]=c;d=J[a+20>>2];J[a+28>>2]=d;J[a+4>>2]=e|32;if((b|0)==-1)return 0;if((d|0)<=0)break a;J[a+28>>2]=d-1;J[a+24>>2]=c+1;J[a+60>>2]=J[a+60>>2]+1;H[c|0]=b;c=b&255}return c}fa(203499,198678,814,206404);B()}J[a+8>>2]=J[a+8>>2]|2;return-1}fa(202908,198678,834,206404);B()}function TZ(a,b){var c=0,d=0,e=0;a:{e=J[a+4>>2];d=J[(J[a>>2]+(e<<2)|0)-4>>2];b:{if(!d)break b;c=J[d+ -24>>2]-1|0;J[d+24>>2]=c;if(c)break b;c=J[d>>2];if(c)qc(Rc(c));c=J[d+4>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[d+12>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(d);e=J[a+4>>2]}if((e|0)>=2)while(1){d=J[a>>2];c=e-1|0;J[d+(c<<2)>>2]=J[(d+(e<<2)|0)-8>>2];d=e>>>0>2;e=c;if(d)continue;break}J[J[a>>2]>>2]=b;J[b+24>>2]=J[b+24>>2]+1;return}ea(0)|0;yc();B()}function OT(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=bc-32|0;bc=e;a:{b:{f=J[a+24>>2];g=J[a+16>> -2];c:{if((f|0)<=(g|0))break c;c=J[a+28>>2];d=J[a+20>>2];if((c|0)<=(d|0))break c;h=J[a+8>>2];i=J[a>>2];if((h|0)<=(i|0))break c;b=J[a+12>>2];j=J[a+4>>2];if((b|0)>(j|0))break b}a=Kc(e+8|0,2376112,2373542,395,2413352,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}d=c-d|0;c=0;J[a+44>>2]=d|c;J[a+48>>2]=b-j;J[a+36>>2]=c|f-g;J[a+40>>2]=h-i;bc=e+32|0;return}B()}function $z(a){a=a|0;var b=0,c=0,d=0;c=K[a+11|0];d=c<<24>>24;b=(d|0)<0;a:{b:switch((b?J[a+4>>2]: -c)-4|0){case 1:if(Wc(b?J[a>>2]:a,15196,5))break a;return 2;case 2:if(Wc(b?J[a>>2]:a,13737,6))break a;return 1;case 4:a=b?J[a>>2]:a;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1634300500|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=1701603182)break a;return 3;case 0:break b;default:break a}a=(d|0)<0?J[a>>2]:a;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))==1952541766)break a}return 0}function nk(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=bc-32|0;bc=b;d=2;e=b+6|0;a:{b:{while(1){c=gc[J[J[a>> -2]+8>>2]](a,e,d)|0;if((c|0)<0){a=Kc(b+8|0,Jl(J[694731]),2375204,413,2384629,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if(c){e=c+e|0;f=c+f|0;d=d-c|0;if(d)continue}break}if((f|0)!=2){a=Kc(b+8|0,J[682138],2375204,564,2384909,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=b+32|0;return K[b+7|0]|K[b+6|0]<<8}B()}b=Z()|0;Fc(a);ba(b|0);B()}function b8(a,b,c,d,e,f){a:{if(b>>>0>c>>>0)break a;b:switch(d|0){case 0:while(1){d=b&65535;c:{if(d){d= -$g(a,d);break c}d=J[a+528>>2]}if(d){J[d+40>>2]=f;J[d+36>>2]=e}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}break a;case 1:while(1){d=b&65535;d:{if(d){d=$g(a,d);break d}d=J[a+528>>2]}if(d){J[d+36>>2]=J[d+36>>2]+e;J[d+40>>2]=J[d+40>>2]+f}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}break a;default:break b}while(1){d=b&65535;if(d)$g(a,d);b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}}return 0}function Psa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;e=J[a+8>>2];if((e|0)>(b|0)){d= -J[a+12>>2]+b|0;b=(c|0)<0?e-b|0:c;a:{if((b|0)<=0)break a;e=b+d|0;while(1){b:{b=d;if(!K[b|0])break b;J[f+12>>2]=b;c=gc[J[J[a>>2]+60>>2]](a,f+12|0)|0;d=J[f+12>>2];if((b|0)==(d|0))break b;c:{if(c>>>0>255)break c;g=c<<24>>24;g=(g|0)<-1?c:g;if((g|0)==32|g-9>>>0<5)break c;switch(c-10|0){case 0:case 3:break c;default:break b}}if(e>>>0>d>>>0)continue;break a}break}d=b}e=d-J[a+12>>2]|0}bc=f+16|0;return e|0}function P1a(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;e=bc+-64|0;bc=e;d=0;a:{if(!c)break a; -d=0;if(J[c>>2]>0)break a;b:{if(!b){H[e+4|0]=K[732392];J[e>>2]=K[732388]|K[732389]<<8|(K[732390]<<16|K[732391]<<24);b=4;break b}H[e|0]=0;b=0}i=b|e;f=bc-32|0;bc=f;if((a|0)>=0)b=0;else{H[i|0]=45;a=0-a|0;b=1}H[f+29|0]=0;h=29;while(1){h=h-1|0;j=h+f|0;d=(a>>>0)/10|0;g=a-P(d,10)|0;H[j|0]=g+((g&254)>>>0<10?48:55);g=a>>>0>=10;a=d;if(g)continue;break}ff(b+i|0,j);bc=f+32|0;d=v1(e,c)}bc=e- -64|0;return d|0}function Gm(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=bc-16|0;bc=g;J[g+12>>2]=b;b=0;f=6;a:{b:{if(Qk(a,g+12|0))break b; -f=4;h=qq(a);if((h|0)>=0)i=(J[J[d+8>>2]+((h&255)<<2)>>2]&64)!=0;else i=0;if(!i)break b;b=gc[J[J[d>>2]+36>>2]](d,h,0)|0;while(1){c:{gs(a);b=b-48|0;if(Qk(a,g+12|0)|(e|0)<2)break c;f=qq(a);if((f|0)>=0)h=(J[J[d+8>>2]+((f&255)<<2)>>2]&64)!=0;else h=0;if(!h)break a;e=e-1|0;b=(gc[J[J[d>>2]+36>>2]](d,f,0)|0)+P(b,10)|0;continue}break}f=2;if(!Qk(a,g+12|0))break a}J[c>>2]=J[c>>2]|f}bc=g+16|0;return b}function tS(a){a=a|0;var b=0,c=0;J[a>>2]=2432012;b=J[a+60>>2];J[a+56>>2]=0;J[a+60>>2]=0;a:{if(!b)break a;c=J[b+ -4>>2];J[b+4>>2]=c-1;if(c)break a;gc[J[J[b>>2]+8>>2]](b);Vc(b)}mk(a+224|0);J[a+112>>2]=340520;if(H[a+139|0]<0)qc(J[a+128>>2]);if(H[a+127|0]<0)qc(J[a+116>>2]);b=J[a+80>>2];if(b)Vc(b);b=J[a+72>>2];b:{if(!b)break b;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break b;gc[J[J[b>>2]+8>>2]](b);Vc(b)}b=J[a+60>>2];c:{if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;gc[J[J[b>>2]+8>>2]](b);Vc(b)}return a|0}function e6(a,b,c){var d=0;d=0;a:{if(J[a>>2])break a;b:{if(c>>>0<8)break b;a=K[b|0];c:{if((a|0)!=87|K[b+1|0]!=87| -(K[b+2|0]!=66|K[b+3|0]!=66))break c;if(K[b+4|0]!=49|K[b+5|0]!=49|K[b+6|0]!=49)break c;d=1;if(K[b+7|0]==49)break a}if(a|c>>>0<16|(K[b+1|0]|K[b+2|0]!=2))break b;if(K[b+3|0]|K[b+4|0]!=2|(K[b+5|0]!=16|K[b+6|0]!=201))break b;if(K[b+7|0]|K[b+8|0]!=2|(K[b+9|0]|K[b+10|0]!=200))break b;if(K[b+11|0]!=6|K[b+12|0]!=76|(K[b+13|0]|K[b+14|0]!=2))break b;if(K[b+15|0])break b;return 1}d=0}return d}function xg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(J[a+8>>2]>=J[a+4>>2])t_(a);d=rc(12);J[d+4>>2]=c;J[d>>2]=b;c=J[b>>2]; -a:{if((c|0)<=0)break a;f=c&3;b=J[b+4>>2];b:{if(c>>>0<4){c=b;break b}i=c&-4;while(1){e=K[b+3|0]+P(K[b+2|0]+P(K[b+1|0]+P(K[b|0]+P(e,17)|0,17)|0,17)|0,17)|0;c=b+4|0;b=c;g=g+4|0;if((i|0)!=(g|0))continue;break}}if(!f)break a;while(1){e=K[c|0]+P(e,17)|0;c=c+1|0;h=h+1|0;if((h|0)!=(f|0))continue;break}}b=J[a+12>>2]+((e>>>0)%M[a+4>>2]<<2)|0;J[d+8>>2]=J[b>>2];J[b>>2]=d;J[a+8>>2]=J[a+8>>2]+1}function KQ(a){var b=0,c=0;a:{b=J[a+4>>2];c=!J[(J[J[b>>2]-12>>2]+b|0)+24>>2];b=b+J[J[b>>2]-12>>2]|0;b:{if(c|J[b+16>>2]| -!(J[b+4>>2]&8192))break b;if(_Q())break b;b=J[a+4>>2];b=J[(J[J[b>>2]-12>>2]+b|0)+24>>2];J[695492]=0;b=$(6539,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){if((b|0)!=-1)break b;a=J[a+4>>2];b=J[J[a>>2]-12>>2];J[695492]=0;da(6540,a+b|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break b}na(ea(0)|0)|0;J[695492]=0;ka(4893);a=J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function fpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(!(K[a+288|0]?K[a+285|0]:0)){Dc(a,1029,0,0);return 1029}if(c>>> -0<=5){Dc(a,1028,0,0);return 1028}a:{if(!K[a+112|0])break a;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break a;f=J[e>>2];b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f+32>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0];g=c-5|0;J[f+40>>2]=g;H[f+36|0]=b;b=gc[J[a+152>>2]](c-4|0)|0;J[J[e>>2]+44>>2]=b;b=J[J[e>>2]+44>>2];if(!b){Dc(a,1,0,0);return 1}tc(b,d+5|0,g);f=0}return f|0}function VW(a,b){var c=0,d=0,e=0,f=0,g=0;f=bc-32|0;bc=f;c=J[a+60>>2];a:{b:{if(c){g=1;while(1){e=J[J[a+64>>2]+(d<<2)>>2];if(!J[(J[J[a+ -76>>2]+24>>2]+P(e,52)|0)+44>>2]){J[f+16>>2]=e;Hc(b,2,2359060,f+16|0);g=0;c=J[a+60>>2]}d=d+1|0;if(c>>>0>d>>>0)continue;break}break b}g=1;c=J[a+76>>2];e=1;if(!J[c+16>>2])break a;while(1){if(!J[(J[c+24>>2]+P(d,52)|0)+44>>2]){J[f>>2]=d;Hc(b,2,2359060,f);g=0;c=J[a+76>>2]}d=d+1|0;if(d>>>0>2])continue;break}}e=1;if(g)break a;Hc(b,1,2359091,0);e=0}bc=f+32|0;return e}function LZa(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=bc-16|0;bc=e;a:{f=Ve(c);if(f>>>0<1073741808){b:{if(f>>>0<= -1){H[e+15|0]=f;g=e+4|0;break b}g=f|3;if(g>>>0>=1073741823)break a;h=g+1|0;g=rc(h<<2);J[e+12>>2]=h|-2147483648;J[e+4>>2]=g;J[e+8>>2]=f}h=c;c=f<<2;i=tc(g,h,c)+c|0,j=0,J[i>>2]=j;J[695492]=0;ia(3093,a|0,b|0,e+4|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[e+15|0]<0)qc(J[e+4>>2]);bc=e+16|0;return}a=Z()|0;if(H[e+15|0]<0)qc(J[e+4>>2]);ba(a|0);B()}Id(e+4|0);B()}Sd();B()}function qz(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;a:{b:{while(1){d=J[a+16>>2];if((d|0)<=(b|0)){b=b-d|0;if(!((b|0)>=J[a+40>>2]& -(b|0)<=J[a+44>>2])){a=Kc(c+8|0,2381890,2382316,619,2422660,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=c+32|0;return J[a+28>>2]+P(b-J[a+32>>2]|0,12)|0}a=J[a+20>>2];if(a)continue;break}a=Kc(c+8|0,2382912,2374240,165,2421092,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Uua(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a>>2]=2411928;J[a+4>>2]=0;J[a+12>>2]=J[682146];J[695492]=0;aa(4989,a+16|0,2411852)| -0;c=J[695492];J[695492]=0;if((c|0)==1){b=Z()|0;sc(a+8|0);ed(a);ba(b|0);B()}J[a+24>>2]=0;c=J[682146];H[a+88|0]=0;J[a+68>>2]=1;I[a+64>>1]=0;J[a+60>>2]=0;I[a+56>>1]=0;J[a+48>>2]=-1;J[a+52>>2]=50;J[a+40>>2]=255;J[a+44>>2]=1;H[a+36|0]=0;J[a+32>>2]=0;J[a+28>>2]=c;J[a>>2]=2412580;J[a+92>>2]=J[b>>2];J[a+96>>2]=J[b+4>>2];J[a+100>>2]=J[b+8>>2];J[a+104>>2]=J[b+12>>2];return a|0}function Bx(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+4>>2];if((c|0)!=J[a+8>>2]){J[c>>2]=J[b>>2];J[a+4>>2]=c+4;return}a:{g=J[a>>2];f=c- -g|0;d=f>>2;e=d+1|0;if(e>>>0<1073741824){h=d<<2;d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d){if(d>>>0>=1073741824)break a;f=rc(d<<2)}else f=0;e=h+f|0;J[e>>2]=J[b>>2];b=e+4|0;if((c|0)!=(g|0)){while(1){e=e-4|0;c=c-4|0;J[e>>2]=J[c>>2];if((c|0)!=(g|0))continue;break}c=J[a>>2]}J[a+8>>2]=f+(d<<2);J[a+4>>2]=b;J[a>>2]=e;if(c)qc(c);return}pl(225964);B()}Sd();B()}function tBa(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;d=K[a+11|0];e=d+7>>>3|0;a:{if(!d){d=b;break a}f= -b+e|0;d=b;while(1){H[d|0]=K[c|0]+K[d|0];c=c+1|0;d=d+1|0;if(f>>>0>d>>>0)continue;break}}b=J[a+4>>2]+b|0;if(b>>>0>d>>>0){a=0-e|0;m=(b-d|0)+d|0;while(1){h=K[a+d|0];b=K[a+c|0];e=h-b|0;f=e>>31;i=K[c|0];g=i-b|0;j=g>>31;k=e+g|0;l=k>>31;n=b;b=(e^f)-f|0;e=(g^j)-j|0;f=b>>>0>>0;H[d|0]=K[d|0]+((l^k)-l>>>0<(f?b:e)>>>0?n:f?i:h);c=c+1|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}}function qG(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[c>>2];h=J[b>>2];if(!(J[a+44>>2]?J[a+36>>2]:0))OT(a);g=J[a+32>>2];e=g&4;f=e? -h:d;j=g&2?J[a+12>>2]+(J[a+4>>2]-f|0)|0:f;f=J[a+40>>2];i=(f|0)/2|0;k=b;b=J[a>>2];e=e?d:h;d=P(J[a+36>>2],(g&1?(b+J[a+8>>2]|0)-e|0:e)-b|0);a:{if((d|0)>=0){b=(d+i|0)/(f|0)|0;break a}b=0-((i-d|0)/(f|0)|0)|0}J[k>>2]=b+J[a+16>>2];b=J[a+48>>2];e=(b|0)/2|0;d=J[a+20>>2];a=P(J[a+44>>2],j-J[a+4>>2]|0);b:{if((a|0)>=0){a=(a+e|0)/(b|0)|0;break b}a=0-((e-a|0)/(b|0)|0)|0}J[c>>2]=a+d}function ko(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[a+4>>2];g=J[a>>2];e=g>>>6|0;if(d>>>0<=e>>>0){c=J[a+8>>2];a:{if(c>>>0>e>>>0){c= -J[a+12>>2];break a}f=c+J[a+16>>2]|0;c=rc(f>>>0>1073741823?-1:f<<2);h=J[a+12>>2];if(h){tc(c,h,d<<2);qc(h);f=J[a+8>>2]+J[a+16>>2]|0;g=J[a>>2];d=J[a+4>>2]}J[a+8>>2]=f;J[a+12>>2]=c}i=(e<<2)+c|0,j=rc(1024),J[i>>2]=j;J[a+4>>2]=d+1}d=J[b+4>>2];c=J[J[a+12>>2]+(e<<2)>>2]+((g&63)<<4)|0;J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;J[a>>2]=J[a>>2]+1}function dvb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if((b|0)>0){c=J[a+24>>2];e=c?c-20|0:0;f=J[e+24>>2];if((f|0)<(b|0))while(1){c=J[a+24>> -2];c=c?c-20|0:0;d=J[c+48>>2];d=gc[J[J[d>>2]+12>>2]](d,J[c+52>>2],1,4096,0,0)|0;if(!d){if(K[c+56|0]){d=J[a>>2];J[d+20>>2]=43;gc[J[d>>2]](a)}d=J[a>>2];J[d+20>>2]=123;gc[J[d+4>>2]](a,-1);H[J[c+52>>2]]=255;H[J[c+52>>2]+1|0]=217;d=2}H[c+56|0]=0;J[c+24>>2]=d;J[c+20>>2]=J[c+52>>2];b=b-f|0;f=J[e+24>>2];if((b|0)>(f|0))continue;break}J[e+24>>2]=f-b;J[e+20>>2]=J[e+20>>2]+b}}function E5(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<32|(K[b|0]|K[b+1|0]))break a;if(K[b+2|0]|K[b+3|0]!=12|(K[b+4|0]!=106|K[b+5|0]!=80))break a; -if(K[b+6|0]!=32|K[b+7|0]!=32|(K[b+8|0]!=13|K[b+9|0]!=10))break a;if(K[b+10|0]!=135|K[b+11|0]!=10|(K[b+12|0]|K[b+13|0]))break a;if(K[b+14|0]|K[b+16|0]!=102|(K[b+17|0]!=116|K[b+18|0]!=121))break a;if(K[b+19|0]!=112|K[b+20|0]!=106|(K[b+21|0]!=112|K[b+22|0]!=50))break a;if(K[b+24|0]|K[b+23|0]!=32|(K[b+25|0]|K[b+26|0]))break a;if(K[b+27|0])break a;d=1}return d}function tEa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=bc-16|0;bc=b;a:{d=H[a+11|0]<0?J[a>>2]:a;a=Ve(d);if(a>>>0<1073741808){b:{if(a>>>0<=1){H[b+15| -0]=a;c=b+4|0;break b}c=a|3;if(c>>>0>=1073741823)break a;e=c+1|0;c=rc(e<<2);J[b+12>>2]=e|-2147483648;J[b+4>>2]=c;J[b+8>>2]=a}a=a<<2;f=Zc(c,d,a)+a|0,g=0,J[f>>2]=g;J[695492]=0;a=ga(4968,b+4|0,0,10)|0;c=J[695492];J[695492]=0;if((c|0)!=1){if(H[b+15|0]<0)qc(J[b+4>>2]);bc=b+16|0;return a|0}a=Z()|0;if(H[b+15|0]<0)qc(J[b+4>>2]);ba(a|0);B()}Id(b+4|0);B()}Sd();B()}function jwa(a){a=a|0;var b=0,c=0,d=0;J[a+20>>2]=0;J[a>>2]=2407140;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;I[a+16>>1]=0;J[695492]=0;c=ha(5043,a+28|0, -a+24|0,0,1)|0;b=J[695492];J[695492]=0;a:{b:{c:{d:{if((b|0)!=1){J[695492]=0;d=ha(5043,a+40|0,a+36|0,0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break d;J[695492]=0;ha(5043,a+52|0,a+48|0,0,4)|0;b=J[695492];J[695492]=0;if((b|0)==1)break c;J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;_c(d)}_c(c)}ed(a);ba(b|0);B()}function J_(a){var b=0,c=0,d=0;if(H[a+83|0]<0)qc(J[a+72>>2]);if(H[a+71|0]<0)qc(J[a+60>>2]);if(H[a+59|0]<0)qc(J[a+48>>2]);c=J[a+36>>2];if(c){b=J[a+ -40>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;if(H[b-1|0]<0)qc(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a+36>>2]}J[a+40>>2]=c;qc(d)}c=J[a+24>>2];if(c){b=J[a+28>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;if(H[b-1|0]<0)qc(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a+24>>2]}J[a+28>>2]=c;qc(d)}b=J[a+12>>2];if(b){J[a+16>>2]=b;qc(b)}return a}function rq(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;a:{if(f&64){c=f+-64|0;b=c&31;if((c&63)>>>0>=32){c=0;b=e>>>b|0}else{c=e>>>b|0;b=((1<>>b}d= -0;e=0;break a}if(!f)break a;i=d;h=64-f|0;g=h&31;if((h&63)>>>0>=32){h=d<>>32-g|e<>>0>=32){g=0;b=c>>>b|0}else{g=c>>>b|0;b=((1<>>b}b=j|b;c=g|h;g=d;d=f&31;if((f&63)>>>0>=32){h=0;d=e>>>d|0}else{h=e>>>d|0;d=((1<>>d}e=h}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e}function qMa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{c=Ni(J[a+28>>2],c);a=bc-16|0;bc=a;J[a>>2]=13;d=rc(8);e=J[c+4>>2];J[695492]=0;e=ha(3207,c+16|0, -e|0,a|0,0)|0;f=J[695492];J[695492]=0;b:{if((f|0)==1)break b;c=J[J[J[c>>2]+28>>2]+56>>2];J[695492]=0;c=ga(3465,d|0,e|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;uc(a);if(J[c+4>>2]>0){d=0;while(1){gc[J[J[b>>2]+348>>2]](b,J[J[c>>2]+(d<<2)>>2]);d=d+1|0;if((d|0)>2])continue;break}}qc(GY(c));bc=a+16|0;break a}a=Z()|0;qc(d);ba(a|0);B()}}function n_(a,b){var c=0;c=bc+-64|0;bc=c;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;if(J[Bc(a,808992,c+48|0,0)>>2]==7){Bc(J[c+56>>2],807518,c,0); -a:{if(J[c>>2]==7){b:{if(J[Bc(a,826531,c+32|0,0)>>2]==4){Bc(J[c+8>>2],J[c+40>>2],c+16|0,0);break b}a=J[c+8>>2];if(J[a+16>>2]==1){ip(a,0,c+16|0);break b}Bc(a,826801,c+16|0,0)}uc(c+32|0);break a}Ef(c,c+16|0)}uc(c)}uc(c+48|0);c:{if(J[c+16>>2]==8){a=J[c+24>>2];Bc(gc[J[J[a>>2]+76>>2]](a)|0,823842,b,0);break c}J[b>>2]=5}uc(c+16|0);bc=c- -64|0;return b}function w7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0; -b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);h=K[a+2|0];g=P(h,e);i=f^255;j=255-e|0;h=P(i,b)+P(h,j)|0;b=P(b,f);H[a+2|0]=(h+(b>>>0>>0?b:g)|0)+255>>>8;g=K[a+1|0];b=P(g,e);g=P(c,i)+P(g,j)|0;c=P(c,f);H[a+1|0]=(g+(b>>>0>c>>>0?c:b)|0)+255>>>8;c=K[a|0];b=P(c,e);e=a;a=P(d,f);H[e|0]=((P(d,i)+P(c,j)|0)+(a>>>0>>0?a:b)|0)+255>>>8}}function v7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0; -b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);h=K[a+2|0];g=P(h,e);i=f^255;j=255-e|0;h=P(i,b)+P(h,j)|0;b=P(b,f);H[a+2|0]=(h+(b>>>0>g>>>0?b:g)|0)+255>>>8;g=K[a+1|0];b=P(g,e);g=P(c,i)+P(g,j)|0;c=P(c,f);H[a+1|0]=(g+(b>>>0>>0?c:b)|0)+255>>>8;c=K[a|0];b=P(c,e);e=a;a=P(d,f);H[e|0]=((P(d,i)+P(c,j)|0)+(a>>>0>b>>>0?a:b)|0)+255>>>8}}function uEa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=bc-16|0;bc=b;a:{d=H[a+11|0]<0?J[a>>2]:a;a=Ve(d);if(a>>>0<1073741808){b:{if(a>>>0<=1){H[b+15|0]=a;c= -b+4|0;break b}c=a|3;if(c>>>0>=1073741823)break a;e=c+1|0;c=rc(e<<2);J[b+12>>2]=e|-2147483648;J[b+4>>2]=c;J[b+8>>2]=a}a=a<<2;g=Zc(c,d,a)+a|0,h=0,J[g>>2]=h;J[695492]=0;f=+Ja(4967,b+4|0,0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[b+15|0]<0)qc(J[b+4>>2]);bc=b+16|0;return+f}a=Z()|0;if(H[b+15|0]<0)qc(J[b+4>>2]);ba(a|0);B()}Id(b+4|0);B()}Sd();B()}function fYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+20>>2];if((d|0)!=102){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=21;gc[J[J[a>>2]>>2]](a)}e=J[a+32>>2];f=J[a+ -260>>2];if(e>>>0<=f>>>0){b=J[a>>2];J[b+20>>2]=126;gc[J[b+4>>2]](a,-1);return 0}d=J[a+8>>2];if(d){J[d+8>>2]=e;J[d+4>>2]=f;gc[J[d>>2]](a)}d=J[a+388>>2];if(J[d+12>>2])gc[J[d+4>>2]](a);d=c;c=J[a+272>>2]<<3;if(d>>>0>>0){d=J[a>>2];J[d+20>>2]=24;gc[J[d>>2]](a)}if(!(gc[J[J[a+400>>2]+4>>2]](a,b)|0))return 0;J[a+260>>2]=c+J[a+260>>2];return c|0}function Vla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=(c|0)/3|0;if((P(a,3)|0)!=(c|0)){fa(78039,76141,723,83399);B()}c=b;a:{if(!a)break a;d=a&3;b:{if(!d){b=a;break b}b= -a;while(1){f=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=f;c=c+3|0;b=b-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(a>>>0<4)break a;while(1){a=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=a;a=K[c+5|0];H[c+5|0]=K[c+3|0];H[c+3|0]=a;a=K[c+8|0];H[c+8|0]=K[c+6|0];H[c+6|0]=a;a=K[c+11|0];H[c+11|0]=K[c+9|0];H[c+9|0]=a;c=c+12|0;b=b-4|0;if(b)continue;break}}}function Mua(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=rc(140);J[695492]=0;d=aa(5457,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[d>>2]=2412496;c=J[b+96>>2];J[d+92>>2]=J[b+92>> -2];J[d+96>>2]=c;c=J[b+104>>2];J[d+100>>2]=J[b+100>>2];J[d+104>>2]=c;c=J[b+112>>2];J[d+108>>2]=J[b+108>>2];J[d+112>>2]=c;c=J[b+120>>2];J[d+116>>2]=J[b+116>>2];J[d+120>>2]=c;c=J[b+128>>2];J[d+124>>2]=J[b+124>>2];J[d+128>>2]=c;c=J[b+136>>2];J[d+132>>2]=J[b+132>>2];J[d+136>>2]=c;J[a>>2]=0;md(a,d);return}a=Z()|0;qc(c);ba(a|0);B()}function eda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=Qc(c);g=bc-16|0;bc=g;a:{if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(b>>>0<=d>>>0){f=K[a+11|0]>>>7|0? -(J[a+8>>2]&2147483647)-1|0:10;b:{if(f-d>>>0>=e>>>0){if(!e)break b;if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;h=f+b|0;if((b|0)!=(d|0)){Dm(e+h|0,h,d-b|0);c=(c>>>0>=h>>>0?d+f>>>0>c>>>0?e:0:0)+c|0}Dm(h,c,e);b=e+d|0;Nk(a,b);H[g+15|0]=0;H[b+f|0]=K[g+15|0];break b}Zr(a,f,(e+d|0)-f|0,d,b,0,e,c)}bc=g+16|0;break a}ax(a);B()}return a|0}function aZ(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=rc(24);c=J[a+16>>2];J[b+16>>2]=c;g=J[a+12>>2];J[b+12>>2]=g;J[695492]=0;d=aa(3376,c|0,8)|0;f=J[695492];J[695492]=0;a:{if((f|0)==1)break a; -J[b>>2]=d;J[695492]=0;f=aa(3376,c|0,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b+4>>2]=f;J[695492]=0;c=aa(3376,c|0,4)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b+8>>2]=c;e=d;d=g<<3;tc(e,J[a>>2],d);tc(f,J[a+4>>2],d);tc(c,J[a+8>>2],g<<2);J[b+20>>2]=J[a+20>>2];return b|0}a=Z()|0;qc(b);ba(a|0);B()}function JF(a,b,c,d){var e=0,f=0,g=0;g=rs(a,b,c);e=J[d>>2];if(!e)return g;f=J[c>>2];if(!(!f|O[e+32>>3]>3]))return g;J[c>>2]=e;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=g+ -1|0;e=J[c>>2];a:{if(!e)break a;f=J[b>>2];if(O[e+32>>3]>3]?0:f)break a;J[b>>2]=e;J[c>>2]=f;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;d=g+2|0;c=J[b>>2];if(!c)break a;e=J[a>>2];if(O[c+32>>3]>3]?0:e)break a;J[a>>2]=c;J[b>>2]=e;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;d=g+3|0}return d}function H5a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;b=J[a+8>>2];H[b+2|0]=1;c=J[b+4>>2];a:{if(!c)break a;c=c-1|0;if(K[J[J[b+20>>2]+(c>>>6&67108860)>>2]+(c&255)|0]-1>>>0>13)break a;J[d+12>>2]= -0;e=Ke(b+4|0,d+12|0),f=79,H[e|0]=f;c=J[d+12>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[b+4>>2]=J[b+4>>2]+1}b=J[a+4>>2];if(b){J[d+8>>2]=512;gc[J[J[b>>2]+308>>2]](b,d+8|0)|0;b=J[a+4>>2];gc[J[J[b>>2]+340>>2]](b)|0;a=J[a+4>>2];J[d+4>>2]=512;gc[J[J[a>>2]+312>>2]](a,d+4|0)|0}bc=d+16|0;return 1}function Fqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=bc-32|0;bc=d;c=a+160|0;f=a,g=$i(a,0,262142,c),J[f+216>>2]=g;c=$i(a,0,262142,c);J[a+220>>2]=c;a:{b:{if(c){e=J[a+216>>2];if(e)break b}a=Kc(d+8|0,2380266, -2374240,691,2421749,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}J[b+76>>2]=c;J[b+72>>2]=e;J[a+212>>2]=0;J[a+200>>2]=e+1;J[a+208>>2]=c;J[a+232>>2]=c;J[a+204>>2]=0;J[a+228>>2]=c;J[a+236>>2]=0;J[a+224>>2]=c;H[a+49|0]=1;bc=d+32|0;return}B()}function F3a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+452>>2];a:{b:switch(b|0){case 0:if(J[a+84>>2]){J[c+4>>2]=348;if(J[c+12>>2])break a;d=c,e=gc[J[J[a+4>>2]+28>>2]](a,J[c+8>>2],0,J[c+16>>2],1)|0,J[d+12>>2]=e;break a}J[c+ -4>>2]=J[J[a+472>>2]+4>>2];break a;case 3:if(!J[c+8>>2]){b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}J[c+4>>2]=349;break a;case 2:if(!J[c+8>>2]){b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}J[c+4>>2]=350;break a;default:break b}b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}J[c+20>>2]=0;J[c+24>>2]=0}function $h(a,b,c){var d=0,e=0,f=0;a:{if(!a|!b)break a;b:{c:{d:switch(c|0){case 1:b=wf(0,b);break c;case 0:break b;case 2:break d;default:break a}if(b)J[b+16>>2]=J[b+16>>2]+1}if(!b)break a}f=J[a>>2];c=J[a+4>>2];e:{if((f|0)< -(c|0))break e;d=c<<1;if((d|0)>(c|0)){c=yl(a+12|0,c<<2,c<<3);J[a+12>>2]=c;if(!c)break e;J[a+4>>2]=d}c=J[a+16>>2];f:{if(!c)break f;e=J[c+4>>2];if((e|0)<(d|0)){e=yl(c+12|0,e<<2,d<<2);J[c+12>>2]=e;if(!e)break f;J[c+4>>2]=d}}}J[J[a+12>>2]+(f<<2)>>2]=b;J[a>>2]=J[a>>2]+1}}function kMa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=rc(8);a:{b:{c:{if(!b)break c;J[695492]=0;d=$(4,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;J[695492]=0;e=aa(3183,d|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break c;c=Z()| -0;qc(d);break a}d:{if(!c)break d;J[695492]=0;b=$(4,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[695492]=0;f=aa(3183,b|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)break d;c=Z()|0;qc(b);break a}J[a+4>>2]=f;J[a>>2]=e;return a|0}c=Z()|0}qc(a);ba(c|0);B()}function YG(a,b,c){var d=0,e=0,f=0,g=0;d=J[b>>2];a:{if((d|0)>=J[c>>2])break a;g=1;b:{while(1){c:{f=J[(d<<2)+a>>2];d=d+1|0;J[b>>2]=d;if((f|0)!=32)switch(f-45|0){case 0:break b;case 1:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 24:case 56:break c; -default:break a}if(J[c>>2]>(d|0))continue;break a}break}e=f-48|0;g=0}c=J[(d<<2)+a>>2]-48|0;if(c>>>0<=9){while(1){e=P(e,10)+c|0;d=d+1|0;c=J[(d<<2)+a>>2]-48|0;if(c>>>0<10)continue;break}J[b>>2]=d}e=g?0-e|0:e}return e}function VG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=bc-16|0;bc=e;a:{if(!J[b+4>>2])break a;c=J[a+28>>2];if(!c)break a;gc[J[J[c>>2]+352>>2]](c)|0;d=J[a+28>>2];J[e+12>>2]=32;c=e+12|0;gc[J[J[d>>2]+308>>2]](d,c)|0;d=J[a+28>>2];J[e+12>>2]=4;gc[J[J[d>>2]+308>>2]](d,c)|0;b=_V(b,J[a+28>>2]);d=J[a+28>> -2];gc[J[J[d>>2]+412>>2]](d,b?2373248:2373252)|0;b=J[a+28>>2];J[e+12>>2]=4;gc[J[J[b>>2]+312>>2]](b,c)|0;b=J[a+28>>2];J[e+12>>2]=32;gc[J[J[b>>2]+312>>2]](b,c)|0;a=J[a+28>>2];gc[J[J[a>>2]+344>>2]](a)|0}bc=e+16|0}function DFa(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;d=K[c+11|0];f=d<<24>>24;e=K[b+11|0];g=e<<24>>24;a:{h=(f|0)<0?J[c+4>>2]:d;i=(g|0)<0?J[b+4>>2]:e;e=h+i|0;if(e>>>0<1073741808){b:{if(e>>>0<=1){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[a+11|0]=e;break b}d=e|3;if(d>>>0>=1073741823)break a; -j=d+1|0;d=rc(j<<2);J[a+4>>2]=e;J[a>>2]=d;J[a+8>>2]=j|-2147483648;a=d}d=a;a=i<<2;b=Zc(d,(g|0)<0?J[b>>2]:b,a)+a|0;a=h<<2;k=Zc(b,(f|0)<0?J[c>>2]:c,a)+a|0,l=0,J[k>>2]=l;return}Id(a);B()}Sd();B()}function uL(a,b){var c=0,d=0,e=0;c=J[b+4>>2];if(c){if(J[b>>2])while(1){e=d<<4;c=J[(e+c|0)+8>>2];if(c)gc[J[a+8>>2]](a,c);c=e+J[b+4>>2]|0;J[c+8>>2]=0;c=J[c+12>>2];if(c)gc[J[a+8>>2]](a,c);c=J[b+4>>2];J[(e+c|0)+12>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}if(c)gc[J[a+8>>2]](a,c);J[b+4>>2]=0}c=J[b+16>>2];if(c){if(J[b+ -12>>2]){d=0;while(1){e=d<<2;c=J[e+c>>2];if(c)gc[J[a+8>>2]](a,c);c=J[b+16>>2];J[e+c>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}}if(c)gc[J[a+8>>2]](a,c);J[b+16>>2]=0}}function pm(a,b){var c=0,d=0,e=0;c=J[a+20>>2];if(!(K[a+13|0]?c:0))return Pc(b,J[a+16>>2]);d=J[a+24>>2];c=c-1|0;e=c>>>0>>0?d:c;while(1){a:{c=d;if((e|0)==(c|0)){c=e;break a}d=c+1|0;if(J[(P(d,20)+a|0)+36>>2]<=(b|0))continue}break}b:{c:{if(c)while(1){d=J[(P(c,20)+a|0)+36>>2];if((d|0)<=(b|0))break c;c=c-1|0;if(c)continue;break}c=0; -J[a+24>>2]=0;d=J[a+36>>2];if((d|0)<=(b|0))break b;return Pc(b-d|0,J[a+16>>2])+J[a+40>>2]|0}J[a+24>>2]=c}a=P(c,20)+a|0;return Pc(b-d|0,J[a+44>>2])+J[a+40>>2]|0}function hja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;while(1){a:{if((c|0)<=(g|0))break a;d=J[a+12>>2];f=J[a+16>>2];b:{if(d>>>0>>0){J[e+12>>2]=2147483647;J[e+8>>2]=f-d;J[e+4>>2]=c-g;d=bc-16|0;bc=d;bc=d+16|0;d=bc-16|0;bc=d;bc=d+16|0;d=e+4|0;f=e+8|0;d=J[d>>2]>2]?d:f;f=e+12|0;d=J[(J[d>>2]>2]?d:f)>>2];Mj(b,J[a+12>> -2],d);J[a+12>>2]=J[a+12>>2]+d;break b}d=gc[J[J[a>>2]+40>>2]](a)|0;if((d|0)==-1)break a;H[b|0]=d;d=1}b=b+d|0;g=d+g|0;continue}break}bc=e+16|0;return g|0}function d3a(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;var h=0,i=0;b=J[a+452>>2];c=J[b+24>>2];a:{if(c){d=J[b+12>>2];break a}d=gc[J[J[a+4>>2]+28>>2]](a,J[b+8>>2],J[b+20>>2],J[b+16>>2],0)|0;J[b+12>>2]=d;c=J[b+24>>2]}h=J[b+16>>2]-c|0;i=J[f>>2];g=g-i|0;g=g>>>0>h>>>0?h:g;h=J[a+116>>2]-J[b+20>>2]|0;g=g>>>0>>0?g:h;gc[J[J[a+480>>2]+4>>2]](a, -(c<<2)+d|0,(i<<2)+e|0,g);J[f>>2]=g+J[f>>2];a=g+J[b+24>>2]|0;J[b+24>>2]=a;c=a;a=J[b+16>>2];if(c>>>0>=a>>>0){J[b+24>>2]=0;J[b+20>>2]=a+J[b+20>>2]}}function Qw(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=350164;J[695492]=0;_(2677,a|0);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;b=J[a+40>>2];if(b){J[695492]=0;$(2678,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}b:{if(!J[a+32>>2])break b;c=J[a+28>>2];d=J[c>>2];b=J[J[a+24>>2]+4>>2];J[d+4>>2]=b;J[b>>2]=d;J[a+32>>2]=0;d=a+24|0;if((d|0)==(c|0))break b;while(1){b= -J[c+4>>2];if(H[c+19|0]<0)qc(J[c+8>>2]);qc(c);c=b;if((d|0)!=(b|0))continue;break}}Rw(a+8|0,J[a+12>>2]);return a|0}ea(0)|0;yc();B()}function cS(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[b>>2];J[a+72>>2]=e;c=J[a+60>>2];b=J[a+56>>2];a:{if((c|0)==(b|0))break a;c=c-b>>3;f=c>>>0<=1?1:c;g=f&3;a=0;if(c>>>0>=4){i=f&-4;f=0;while(1){c=a<<3;d=J[c+b>>2];if(d)J[d+84>>2]=e;d=J[b+(c|8)>>2];if(d)J[d+84>>2]=e;d=J[b+(c|16)>>2];if(d)J[d+84>>2]=e;c=J[b+(c|24)>>2];if(c)J[c+84>>2]=e;a=a+4|0;f=f+4|0;if((i|0)!=(f|0))continue; -break}}if(!g)break a;while(1){c=J[b+(a<<3)>>2];if(c)J[c+84>>2]=e;a=a+1|0;h=h+1|0;if((h|0)!=(g|0))continue;break}}}function Ns(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=bc-32|0;bc=b;d=1;e=b+7|0;a:{b:{while(1){c=gc[J[J[a>>2]+8>>2]](a,e,d)|0;if((c|0)<0){a=Kc(b+8|0,Jl(J[694731]),2375204,413,2384629,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b;break a}if(c){e=c+e|0;f=c+f|0;d=d-c|0;if(d)continue}break}if((f|0)!=1){a=Kc(b+8|0,J[682138],2375204,555,2384876,0);J[695492]=0;_(5019,a|0);b= -J[695492];J[695492]=0;if((b|0)!=1)break b;break a}bc=b+32|0;return K[b+7|0]}B()}b=Z()|0;Fc(a);ba(b|0);B()}function Bha(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=bc-16|0;bc=e;a:{b:{c:{if((a|0)!=(b|0))d:{e:{f=K[a|0];if((f|0)!=45)break e;a=a+1|0;if((b|0)!=(a|0))break e;break d}h=J[694731];J[694731]=0;a=ME(a,e+12|0,d,Wg());d=fc;g=J[694731];f:{if(g){if(J[e+12>>2]!=(b|0))break f;if((g|0)==68)break c;break b}J[694731]=h;if(J[e+12>>2]==(b|0))break b}}J[c>>2]=4;a=0;b=0;break a}J[c>>2]=4;a=-1; -b=-1;break a}b=a;c=(f|0)==45;a=c?0-b|0:b;b=c?0-(d+((b|0)!=0)|0)|0:d}bc=e+16|0;fc=b;return a|0}function al(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;a:{e=J[a+4>>2];if(!e){e=b;break a}b:{if(M[a+8>>2]<=b>>>0)break b;e=J[e+(b<<2)>>2];if(e)break a;g=J[a+16>>2];if((g|0)<=0)break b;h=J[a+12>>2];a=0;while(1){e=h+P(a,40)|0;if(J[e>>2]==(b|0)){if((d|0)<=0)break b;a=e;if(J[a+36>>2]<=0)break b;while(1){b=f<<2;J[b+c>>2]=J[(a+b|0)+4>>2];f=f+1|0;if((f|0)>=(d|0))break b;if(J[a+36>>2]>(f|0))continue;break}break b}a= -a+1|0;if((g|0)!=(a|0))continue;break}}return f|0}J[c>>2]=e;return 1}function LV(a,b,c){var d=0,e=0;d=bc-16|0;bc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){Yc(a,66734);Ld(a,c);break a}if(!(!b|!(K[b+8|0]&128))){Yc(a,66758);Ld(a,c);break a}if((c|0)!=9){Yc(a,66779);Ld(a,c);break a}c=d+7|0;qg(a,c,9);pe(a,c,9);if(Ld(a,0))break a;c=a;a=K[d+7|0]|K[d+8|0]<<8|(K[d+9|0]<<16|K[d+10|0]<<24);e=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14|0]<<24);DG(c,b,e,a<<24|(a&65280)<<8|(a>>> -8&65280|a>>>24),K[d+15|0])}bc=d+16|0;return}Ad(a,66709);B()}function JKa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+68>>2];a:{if((f|0)>=J[a+20>>2]){c=-1;if(J[a+40>>2])break a;if(!QH(a))break a;f=J[a+68>>2]}h=J[a+60>>2];d=J[a+72>>2];b=J[h+(d<<2)>>2]-f|0;b:{if((b|0)<=8){i=J[a+20>>2];c=8;while(1){g=(c|0)>(b|0)?b:c;e=(d&1?0:255>>>8-g|0)|e<>2]>=(i|0)){e=e<>2]=d;b=J[(d<<2)+h>>2]-J[b>>2]|0}if((c|0)>0)continue;break}break b}e= -d&1?0:255}J[a+68>>2]=f+8;c=J[a+36>>2]^e}return c|0}function D_(a){a=a|0;var b=0,c=0,d=0;c=J[a+352>>2];if(c){d=c;b=J[a+356>>2];if((c|0)!=(b|0)){while(1){if(H[b-1|0]<0)qc(J[b-12>>2]);d=b-24|0;if(H[b-13|0]<0)qc(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a+352>>2]}J[a+356>>2]=c;qc(d)}b=J[a+340>>2];if(b){J[a+344>>2]=b;qc(b)}c=J[a+328>>2];if(c){b=c;d=J[a+332>>2];if((b|0)!=(d|0)){while(1){b=d-12|0;if(H[d-1|0]<0)qc(J[b>>2]);d=b;if((b|0)!=(c|0))continue;break}b=J[a+328>>2]}J[a+332>>2]=c;qc(b)}if(H[a+ -327|0]<0)qc(J[a+316>>2]);return em(a)|0}function UM(a,b,c,d,e,f){var g=0,h=0,i=0;g=TM(a,b,c,d,f);f=J[J[f>>2]+12>>2];h=J[e>>2];i=J[d>>2];if(M[J[f+(h<<2)>>2]+4>>2]>2]+4>>2]){J[d>>2]=h;J[e>>2]=i;e=J[d>>2];h=J[c>>2];if(M[J[f+(e<<2)>>2]+4>>2]>=M[J[f+(h<<2)>>2]+4>>2])return g+1|0;J[c>>2]=e;J[d>>2]=h;d=J[c>>2];e=J[b>>2];if(M[J[f+(d<<2)>>2]+4>>2]>=M[J[f+(e<<2)>>2]+4>>2])return g+2|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(M[J[f+(c<<2)>>2]+4>>2]>=M[J[f+(d<<2)>>2]+4>>2])return g+3|0;J[a>>2]= -c;J[b>>2]=d;g=g+4|0}return g}function Lwa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2386024;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[695492]=0;ia(5426,a|0,b|0,d|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)a:{a=J[d+8>>2];b:{if(!a)break b;while(1){e=J[a+8>>2];f=J[J[e>>2]+24>>2];J[695492]=0;e=ga(f|0,e|0,b|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break b;a=J[a>>2];if(a)continue;break}}$c(d);bc=d+16|0;return e|0}a=Z()|0;$c(d); -ba(a|0);B()}function Kwa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2386024;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[695492]=0;ia(5426,a|0,b|0,d|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)a:{a=J[d+8>>2];b:{if(!a)break b;while(1){e=J[a+8>>2];f=J[J[e>>2]+28>>2];J[695492]=0;e=ga(f|0,e|0,b|0,c|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(e)break b;a=J[a>>2];if(a)continue;break}}$c(d);bc=d+16|0;return e|0}a=Z()|0;$c(d);ba(a|0);B()} -function ze(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;a:{if(!a)break a;while(1){b=J[a+40>>2];if((b|0)<2)break a;b:{c:{d:{if(!J[689531]){c=b-1|0;J[a+40>>2]=c;d=J[a+48>>2];break d}J[e>>2]=b;d=0;gc[J[659549]](J[689514],36109,e);b=J[a+40>>2];if((b|0)<=0)break b;c=b-1|0;J[a+40>>2]=c;d=J[a+48>>2];g=0;f=0;if((b|0)==1)break c}g=J[((b<<2)+d|0)-8>>2];f=c}b=f;J[a+36>>2]=g;c=(b<<2)+d|0;d=J[c>>2];J[c>>2]=0}dh(d);c=J[a+36>>2];if(K[J[c+16>>2]])break a;if((Cd(c)|0)<=0)continue;break}}bc=e+16|0}function vz(a){var b= -0,c=0,d=0;if((K[a|0]-127&255)>>>0<161)return-1;if((K[a+1|0]-127&255)>>>0<161)return-1;if((K[a+2|0]-127&255)>>>0<161)return-1;c=K[a+3|0];if((c-127&255)>>>0<161)return-1;d=1;b=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a:{if((b|0)==1297239878|(b|0)==1414744396|((b|0)==1347375696|(b|0)==542392643))break a;b=c-49|0;if(!(Wc(a,2376739,3)|(b&255)>>>0>=9))return-1;if(!Wc(a,2377359,3)){d=-1;if((b&255)>>>0<9)break a}d=0-(!Wc(a,2378030,3)&(c-49&255)>>>0<9)|0}return d}function S$(a,b){var c=0,d=0,e=0,f=0, -g=0,h=0,i=0;e=bc-16|0;bc=e;d=J[b>>2];J[e+12>>2]=d;a:{while(1){f=J[e+12>>2];if(K[f|0]==47){c=1;J[e+12>>2]=f+1;if(!ar(e+12|0,0,1))continue;break a}break}if(a){c=J[a+24>>2];if(c){gc[J[659451]](c);d=J[b>>2]}c=0;b:{if((d|0)==(f|0))break b;g=f-d|0;if(K[a+36|0]&2){if(!d|(g|0)<0)break b;c=gc[J[659450]](g+1|0)|0;if(!c){c=0;Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);break b}h=tc(c,d,g)+g|0,i=0,H[h|0]=i;break b}c=eo(d,g)}J[a+24>>2]=c}J[b>>2]=f;c=0}bc=e+16|0;return c}function Oaa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g= -0;c=J[a+584>>2];e=L[c+64>>1];d=J[c+72>>2];f=J[c+76>>2];b=J[a+604>>2];if(b>>>0>M[c+140>>2]){J[a+608>>2]=b-J[a+596>>2];gf(a);b=J[a+596>>2]}g=J[c+120>>2];if((g|0)!=65535){d=g|d<>f;if((g|0)<16)b=b+1|0;else{f=g-16|0;H[b+1|0]=d>>f;b=b+2|0}J[c+120>>2]=65535}d=d<>c;if((e|0)<16)b=b+1|0;else{c=e-16|0;H[b+1|0]=d>>c;b=b+2|0}if((c|0)>0){H[b|0]=d<<8-c;b=b+1|0}J[a+608>>2]=b-J[a+596>>2];return 1}function FG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c| -0)<=0)break b;c=c-1|0;if(!d)while(1){d=c;c=c-1|0;a=_U(a,b)+28|0;b=b+28|0;if(d)continue;break b}while(1){d=c;e=_U(a,b);a=J[b+24>>2];J[b+24>>2]=0;c:{if(!a)break c;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[695492];J[695492]=0;if((f|0)==1)break a;if(c)break c;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}sc(b+16|0);c=d-1|0;b=b+28|0;a=e+28|0;if((d|0)>0)continue;break}}return}ea(0)|0;yc();B()}function CR(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=bc-16|0;bc=h;e=J[b+4>>2];d=L[b+2>>1];if(d>>> -0<=13)d=J[(d<<2)+91532>>2];else d=0;d=Sg(a,e,d,88148);if(d){a:{if(!Oh(a,b,d))break a;i=J[b+4>>2];if(!i)break a;while(1){e=d+(f<<3)|0;g=J[e>>2];e=J[e+4>>2];if(!e){c=J[a>>2];f=J[a+628>>2];a=J[Lf(a,L[b>>1])+16>>2];J[h+4>>2]=g;J[h>>2]=a;Nc(f,c,88345,h);g=0;break a}N[(f<<2)+c>>2]=L[b+2>>1]==5?Q(Q(g>>>0)/Q(e>>>0)):Q(Q(g|0)/Q(e|0));g=1;f=f+1|0;if((i|0)!=(f|0))continue;break}}qc(d)}bc=h+16|0;return g}function yub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>> -2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;b=J[a+636>>2]+J[a+616>>2]|0;while(1){d=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[c|0]=e;H[c+1|0]=e>>>8;H[c+2|0]=e>>>16;H[c+3|0]=e>>>24;H[c+4|0]=d;H[c+5|0]=d>>>8;H[c+6|0]=d>>>16;H[c+7|0]=d>>>24;b=b+8|0;c=(J[a+584>>2]<<3)+c|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function wnb(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;if(J[c>>2]!=1749635924){Dc(a,2050,0,0);return 2050}e= -J[c+32>>2];J[b+32>>2]=e;if(!e)return 0;a=0;if(e>>>0>=4){j=e&-4;while(1){f=b+36|0;d=a<<1;h=c+36|0;I[f+d>>1]=L[d+h>>1];g=d|2;I[g+f>>1]=L[h+g>>1];g=d|4;I[g+f>>1]=L[h+g>>1];d=d|6;I[d+f>>1]=L[d+h>>1];a=a+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}d=e&3;if(d){e=0;while(1){f=a<<1;I[(f+b|0)+36>>1]=L[(c+f|0)+36>>1];a=a+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}return 0}function w6(a,b){var c=0,d=0,e=0,f=0;f=J[a+16>>2];a:{if(!f)break a;if(!J[a+12>>2]){c=f;break a}c=f;while(1){f=e<<2;c=J[f+c>>2];if(c)gc[J[b+ -8>>2]](b,c);c=J[a+16>>2];J[f+c>>2]=0;e=e+1|0;if(e>>>0>2])continue;break}}if(c)gc[J[b+8>>2]](b,c);J[a+16>>2]=0;c=J[a+4>>2];b:{if(!c)break b;if(!J[a>>2]){d=c;break b}e=0;d=c;while(1){c=e<<3;d=J[(c+d|0)+4>>2];if(d)gc[J[b+8>>2]](b,d);d=J[a+4>>2];J[(c+d|0)+4>>2]=0;e=e+1|0;if(e>>>0>2])continue;break}}if(d)gc[J[b+8>>2]](b,d);J[a+4>>2]=0}function rQ(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;f=c-b>>2;if(f>>>0<=1073741807){a:{if(f>>>0<2){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d= -a;break a}h=e+8|0;if(f>>>0>=2){g=f+4&-4;d=g-1|0;d=(d|0)==2?g:d}else d=1;Cn(h,a,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){J[d>>2]=J[b>>2];d=d+4|0;b=b+4|0;continue}break}J[e+4>>2]=0;J[d>>2]=J[e+4>>2];bc=e+16|0;return}Id(a);B()}function gU(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;J[a>>2]=2406456;J[695492]=0;d=a+8|0;b=d;e=J[b+24>>2];J[c+12>>2]=b;J[c+8>>2]=e;b=J[695492];J[695492]=0;a:{if((b| -0)==1)break a;b=J[c+8>>2];b:{if(!b)break b;while(1){if(J[c+12>>2]!=(d|0)){J[695492]=0;da(5073,c+8|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B()}e=J[b+20>>2];if(e){qc($c(e));b=J[c+8>>2];if(!b)break b}b=J[b>>2];J[c+8>>2]=b;if(b)continue;break}}Bd(a- -64|0);Bd(a+36|0);Bd(d);bc=c+16|0;return a|0}ea(0)|0;yc();B()}function Pib(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;a:{d=J[b>>2];e=J[a+16>>2];g=L[e+2>>1];h=g+(L[e+6>>1]<<8)|0;if(d>>>0>=h>>>0)break a;a=L[e>>1];k=(g-a|0)+1|0;i=L[e+ -4>>1];j=a+(i<<8)|0;e=J[e+12>>2];while(1){c=d+1|0;c=c>>>0>j>>>0?c:j;d=c>>>8|0;c=c&255;b:{if(c>>>0>>0){c=a;break b}f=c>>>0>g>>>0;c=f?a:c;d=d+f|0}f=d&65535;d=(f<<8)+c|0;c=L[(e+(c-a<<1)|0)+(P(f-i|0,k)<<1)>>1];if((c|0)!=65535)break a;if(d>>>0>>0)continue;break}J[b>>2]=d;return 65535}J[b>>2]=d;return c|0}function Nq(a){var b=0;b=J[a+116>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+120>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+380>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+384>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+ -424>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+428>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+432>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+436>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+448>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+596>>2];if(b)qc(bZ(b));return a}ea(0)|0;yc();B()}function pK(a,b,c,d,e,f,g){var h=0,i=0,j=0;h=J[c>>2];a:{if(h>>>0>=d>>>0)break a;b:{c:{if((b|0)<=65535){I[h>>1]=b;i=1;j=0;break c}I[h>>1]=(b>>>10|0)-10304;b=b&1023|-9216;i=2;if(h+2>>>0>=d>>>0){i=1;b=b&57343;break b}I[h+ -2>>1]=b;j=1}b=-1}h=(i<<1)+h|0;if(!e)break a;d=J[e>>2];if(!d)break a;J[d>>2]=f;if(j){J[d+4>>2]=f;d=d+8|0}else d=d+4|0;J[e>>2]=d}J[c>>2]=h;if((b|0)>=0){if(a){if(b>>>0<=65535)c=1;else{I[a+118>>1]=b&1023|56320;b=(b>>>10|0)-10304|0;c=2}H[a+65|0]=c;I[a+116>>1]=b}J[g>>2]=15}}function kkb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+96>>2];c=J[a+712>>2];a:{if(K[c+24|0]==2){c=Dk(gh(J[d+4>>2],239693),240684,0);if(!c)break a;c=J[c+4>>2];if(!c)break a;return gc[c|0](a,b)|0}d=Dk(d,241589,1);if(!d|!J[c+20>>2])break a; -while(1){a=L[J[c+1188>>2]+(e<<1)>>1];b:{c:{if(a>>>0>=391){a=a-391|0;if(a>>>0>=M[c+1356>>2])break b;a=J[J[c+1360>>2]+(a<<2)>>2];break c}a=gc[J[d+20>>2]](a)|0}if(!a)break b;if(!Ec(b,a))break a}e=e+1|0;if(e>>>0>2])continue;break}e=0}return e|0}function kOa(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[a+8>>2]=c;J[a>>2]=2305596;J[a+4>>2]=b;h=a,i=vd(c,4),J[h+12>>2]=i;b=J[a+8>>2];a:{if(!b)break a;c=0;if(b>>>0>=4){g=b&-4;while(1){d=c<<2;J[d+J[a+12>>2]>>2]=0;J[J[a+12>>2]+(d|4)>>2]=0;J[J[a+ -12>>2]+(d|8)>>2]=0;J[J[a+12>>2]+(d|12)>>2]=0;c=c+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}b=b&3;if(!b)break a;while(1){J[J[a+12>>2]+(c<<2)>>2]=0;c=c+1|0;f=f+1|0;if((b|0)!=(f|0))continue;break}}J[a+16>>2]=0;J[a+20>>2]=0;return a|0}function vHa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;c:{if(!c){Hc(d,1,2356482,0);a=0;break c}ld(b,e+12|0,1);f=c-1|0;a=1;if(!f)break c;a=0;c=0;while(1){b=b+1|0;ld(b,e+8|0,1);g=J[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 c;Hc(d,1,2356482,0);a=0}bc=e+16|0;return a|0}fa(2353829,2346358,3765,2356465);B()}fa(2346477,2346358,3766,2356465);B()}fa(2346590,2346358,3767,2356465);B()}function tk(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=J[b>>2];a:{if((d|0)<=0)break a;f=d&3;c=J[b+4>>2];if(d>>>0>=4){d=d&-4;while(1){e=K[c+3|0]+P(K[c+2|0]+P(K[c+1|0]+P(K[c|0]+P(e,17)|0,17)|0,17)|0,17)|0;c=c+4|0;g=g+4|0;if((d|0)!=(g|0))continue;break}}if(!f)break a;while(1){e=K[c|0]+P(e,17)| -0;c=c+1|0;h=h+1|0;if((h|0)!=(f|0))continue;break}}c=J[J[a+12>>2]+((e>>>0)%M[a+4>>2]<<2)>>2];b:{if(!c)break b;while(1){if(rg(J[c>>2],b)){c=J[c+8>>2];if(c)continue;break b}break}i=J[c+4>>2]}return i}function jd(a,b){var c=0,d=0,e=0;c=-1;a:{b:{if(!(!(H[a|0]&1)|K[a+8|0]&7)){d=J[a+4>>2];if(d&32)break b;e=J[a+20>>2];c=J[a+16>>2];if((e|0)<(J[a+24>>2]-c|0))break a;J[a+24>>2]=c;J[a+4>>2]=d|16;c=gc[J[J[a+52>>2]>>2]](J[a+56>>2],c,e)|0;J[a+28>>2]=c;if((c|0)<=0){J[a+28>>2]=0;J[a+8>>2]=J[a+8>>2]|(c?2:1);return-1}c:{if(b){J[a+ -28>>2]=c-1;J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;break c}c=J[a+24>>2]}c=K[c|0]}return c}fa(202182,198678,771,206385);B()}fa(200194,198678,773,206385);B()}function VZ(a){var b=0,c=0,d=0,e=0;a:{b=J[a+4>>2];if((b|0)>0)while(1){c=J[J[a>>2]+(d<<2)>>2];b:{if(!c)break b;e=J[c+24>>2]-1|0;J[c+24>>2]=e;if(e)break b;b=J[c>>2];if(b)qc(Rc(b));b=J[c+4>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[c+12>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;qc(c); -b=J[a+4>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}c=J[a>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;return a}ea(0)|0;yc();B()}function IQ(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;f=c-b|0;if(f>>>0<=2147483631){a:{if(f>>>0<11){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d=a;break a}h=e+8|0;if(f>>>0>=11){g=f+16&-16;d=g-1|0;d=(d|0)==11?g:d}else d=10;es(h,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648; -J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){H[d|0]=K[b|0];d=d+1|0;b=b+1|0;continue}break}H[e+7|0]=0;H[d|0]=K[e+7|0];bc=e+16|0;return}Id(a);B()}function vQa(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{c=J[a+16>>2];if(c){b=rc(8);J[695492]=0;c=aa(3183,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;r_(c);b=J[c+4>>2];if(Be(b,810909))break d;if(Be(b,811467))break d;b=Be(b,811754);qc(Rc(c));if(b)break c}if(J[a+32>>2]>=0){e:switch(J[a+20>>2]-7|0){case 0:case 1:case 2:case 3:case 4:break a;default:break e}return!J[a+ -152>>2]|0}return!J[a+152>>2]|0}qc(Rc(c))}return 0}a=Z()|0;qc(b);ba(a|0);B()}return!(J[a+152>>2]|J[a+224>>2])|0}function aE(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+12>>2];if(b){d=J[a+8>>2];if((d|0)>0){while(1){c=J[b+4>>2];if(c){d=0;e=J[b>>2];if((e|0)>0){while(1){f=J[c+4>>2];if(f){qc(f);e=J[b>>2]}c=c+20|0;d=d+1|0;if((e|0)>(d|0))continue;break}c=J[b+4>>2]}qc(c);d=J[a+8>>2]}b=b+16|0;g=g+1|0;if((g|0)<(d|0))continue;break}b=J[a+12>>2]}qc(b)}b=J[a+76>>2];if(b){c=J[b+8>>2];if(c){if(J[b>>2]>0){c=0;while(1){qc(J[J[b+ -8>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}c=J[b+8>>2]}qc(c)}qc(b)}qc(a)}function Sq(a){var b=0,c=0,d=0;a:{b:{c:{c=J[a+128>>2];switch(c|0){case 0:break a;case 1:break b;default:break c}}while(1){b=d;d=b+1|0;c=c>>1;if(c>>>0>1)continue;break}if(b>>>0<14)break b;c=J[a+120>>2];b=J[c>>2];J[b+20>>2]=41;gc[J[b>>2]](c)}c=d<<4;b=J[a+124>>2];d:{if(J[a+108>>2]){b=J[((b<<2)+a|0)+92>>2]+(c<<2)|0;J[b>>2]=J[b>>2]+1;break d}b=J[((b<<2)+a|0)+60>>2];Qq(a,J[b+(c<<2)>>2],H[(b+c|0)+1024|0])}if(d)Qq(a,J[a+ -128>>2],d);J[a+128>>2]=0;AZ(a,J[a+136>>2],J[a+132>>2]);J[a+132>>2]=0}}function NGa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;f=J[a+24>>2];if((f|0)!=255){J[e>>2]=f;Hc(d,2,2350862,e)}c:{d:{if(J[a+20>>2]==(c|0)){if(c)break d;c=1;break c}c=0;Hc(d,1,2351005,0);break c}d=0;while(1){c=1;ld(b,(J[a+72>>2]+P(d,12)|0)+8|0,1);b=b+1|0;d=d+1|0;if(d>>>0>2])continue;break}}bc=e+16|0;return c|0}fa(2350796,2342899,736,2359636);B()}fa(2342603,2342899, -737,2359636);B()}fa(2343543,2342899,738,2359636);B()}function NFa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;gc[J[J[a>>2]+48>>2]](c+4|0,a,b,1);b=J[c+4>>2];a:{if((b|0)==J[c+8>>2]){d=b;break a}b:{while(1){c:{d=J[J[a>>2]+36>>2];J[695492]=0;da(d|0,a|0,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break c;b=b+12|0;if((b|0)!=J[c+8>>2])continue;break b}break}a=Z()|0;sg(c+4|0);ba(a|0);B()}d=J[c+4>>2]}if(d){a=d;if((b|0)!=(a|0)){while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}a=J[c+ -4>>2]}J[c+8>>2]=d;qc(a)}bc=c+16|0}function Cra(a,b){a=a|0;b=b|0;a:{b:switch(b|0){case 1:b=rc(56);J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=1065353216;J[b+4>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+36>>2]=10;J[b>>2]=2420700;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;break a;case 0:b=rc(40);J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=1065353216;J[b+4>>2]=0;J[b+36>>2]=0;J[b>>2]=2420464;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;break a;default:break b}J[a>>2]=0;md(a,0);return}J[a>> -2]=0;md(a,b)}function yFa(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;J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a:{g=a+12|0;if((g|0)==(b|0))break a;if(H[b+11|0]>=0){h=J[b+4>>2];J[g>>2]=J[b>>2];J[g+4>>2]=h;J[g+8>>2]=J[b+8>>2];break a}h=J[b+4>>2];b=J[b>>2];J[695492]=0;ga(1630,g|0,b|0,h|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;if(H[a+23|0]<0)qc(J[g>>2]);uX(a);ba(b|0);B()}J[a+36>>2]=f;J[a+32>>2]=e;J[a+28>>2]=d;J[a+24>>2]=c;return a|0}function uta(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;gc[J[J[a>>2]+28>>2]](d+12|0,a,0);a=J[d+12>>2];e=J[J[a>>2]+84>>2];J[695492]=0;b=ga(e|0,a|0,b|0,c|0)|0;a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+16|0;return b|0}a=Z()|0;vc(d+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function nka(a,b){a=a|0;b=b|0;var c= -0,d=0;c=J[b>>2];d=J[J[a>>2]+32>>2];J[695492]=0;da(d|0,a|0,c|0);c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;c=J[a+60>>2];b:{if((c|0)!=J[a- -64>>2]){J[c>>2]=J[b>>2];d=J[b+4>>2];J[c+4>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+60>>2]=c+8;break b}J[695492]=0;da(6345,a+56|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}a=J[b+4>>2];c:{if(!a)break c;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break c;gc[J[J[a>>2]+8>>2]](a);Vc(a)}return}a=Z()|0;Ie(b);ba(a|0);B()}function lh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=834024; -b=J[a+196>>2];d=J[a+200>>2];a:{if((b|0)==(d|0)){b=d;break a}while(1){f=e<<2;c=J[f+b>>2];if(c){if(H[c+83|0]<0)qc(J[c+72>>2]);if(H[c+71|0]<0)qc(J[c+60>>2]);if(H[c+59|0]<0)qc(J[c+48>>2]);qc(c);J[J[a+196>>2]+f>>2]=0;b=J[a+196>>2];d=J[a+200>>2]}e=e+1|0;if(e>>>0>2>>>0)continue;break}}if(b){J[a+200>>2]=b;qc(b)}if(H[a+195|0]<0)qc(J[a+184>>2]);if(H[a+183|0]<0)qc(J[a+172>>2]);if(H[a+171|0]<0)qc(J[a+160>>2]);return pt(a)|0}function R8a(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=348616;a:{c=J[a+8>>2];d=a+12|0; -if((c|0)!=(d|0))while(1){e=J[c+28>>2];if(e){b=J[J[e>>2]+12>>2];J[695492]=0;$(b|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[c+28>>2]=0}b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[c>>2];if(b)continue;break b}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}b=a+8|0;Zt(b,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0;Zt(b,0);return a|0}ea(0)|0;yc();B()}function Qwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a=J[a+52>>2];c=gc[J[J[a>>2]+20>>2]](a,2)|0;gc[J[J[a>>2]+ -20>>2]](a,1)|0;b=gc[J[J[a>>2]+20>>2]](a,1)|0;d=b>>>4&3;b=b>>>6&1;c=(c-4|0)/((d+(b<<1)|0)+2|0)|0;a:{if((c|0)<=0)break a;b=b?4:2;if((c|0)!=1){f=c&-2;while(1){gc[J[J[a>>2]+20>>2]](a,d)|0;gc[J[J[a>>2]+20>>2]](a,b)|0;gc[J[J[a>>2]+20>>2]](a,d)|0;gc[J[J[a>>2]+20>>2]](a,b)|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}if(!(c&1))break a;gc[J[J[a>>2]+20>>2]](a,d)|0;gc[J[J[a>>2]+20>>2]](a,b)|0}}function Pi(a,b){var c=0,d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;c=0;a:{if(!a)break a;b:{if((b|0)>=128){g=b>>>0<2048;c:{if(g){c= -192;d=6;e=0;break c}if(b>>>0<65536){c=224;d=12;e=6;break c}if(b>>>0>=1114112)break b;c=240;d=18;e=12}H[a|0]=b>>>d|c;H[a+1|0]=b>>>e&63|128;c=(a+2|0)-a|0;if(g)break a;d=e-6|0;H[a+2|0]=b>>>d&63|128;c=(a+3|0)-a|0;if(d>>>0<6)break a;H[a+3|0]=b>>>e-12&63|128;c=(a+4|0)-a|0;break a}H[a|0]=b;c=1;break a}J[f>>2]=b;Cc(0,0,0,0,0,1,9,3,0,0,0,b,35041,f);c=0}bc=f+16|0;return c}function yKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if((b|0)<2)break a;f=J[a+4>>2];b=gc[J[J[f>>2]+60>>2]](f,b,c,d)|0;if(!b)break a; -b:{if(!d)break b;d=J[a+4>>2];gc[J[J[d>>2]+20>>2]](d);J[a+3460>>2]=0;J[a+3464>>2]=0;J[a+720>>2]=0;J[a+188>>2]=0;J[a+204>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;d=NH(a,1);e=J[a+4>>2];gc[J[J[e>>2]+24>>2]](e);if(!(J[a+12>>2]?J[a+8>>2]|!d:1))break b;qc(Rc(b));return 0}od(od(b,c),821560);e=b}return e|0}function t4(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=J[a+736>>2];a:{if(!d){c=$t(a,0);if(c)break a;d=J[a+736>>2]}c=6;if(L[a+14>>1]>>0)break a; -b:{if(b){f=J[a+100>>2];g=J[d+12>>2];d=J[g+16>>2]+P(b,12)|0;c=gc[J[J[a+540>>2]+144>>2]](a,L[d-8>>1],e+12|0)|0;if(c)break a;c=J[a+24>>2];if(c)gc[J[f+8>>2]](f,c);J[a+24>>2]=J[e+12>>2];c=vL(a,J[g>>2],J[d-12>>2]);if(c){c=(c|0)!=-1?c:0;break a}c=0;break b}c=vL(a,0,0)}I[a+6>>1]=b;J[a+8>>2]=J[a+8>>2]&-32769}bc=e+16|0;return c|0}function Oja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{d=J[a+4>>2];b:{if(!d){b=(b|0)<=1E3?1E3:b;J[a+8>>2]=b;c=zc(b<<2);J[a+16>>2]=0;J[a+4>>2]=c;break b}c=J[a+8>>2];e=J[a+16>>2]+b|0;if(c>>> -0>=e>>>0)break a;b=P(b,10);b=(b|0)<=1048576?1048576:b;while(1){c=c>>>0>10485760?b+c|0:c<<1;if(e>>>0>c>>>0)continue;break}J[a+8>>2]=c;b=Vd(d,c<<2);if(b){J[a+4>>2]=b;c=b+(J[a+16>>2]<<2)|0;break b}b=zc(J[a+8>>2]<<2);c=J[a+4>>2];b=tc(b,c,J[a+16>>2]<<2);qc(c);J[a+4>>2]=b;c=b+(J[a+16>>2]<<2)|0}J[a+12>>2]=c}}function Fha(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=bc-16|0;bc=e;a:{b:{c:{d:{if((a|0)!=(b|0))e:{f:{f=K[a|0];if((f|0)!=45)break f;a=a+1|0;if((b|0)!=(a|0))break f;break e}h=J[694731];J[694731]= -0;a=ME(a,e+12|0,d,Wg());d=fc;g=J[694731];g:{if(g){if(J[e+12>>2]!=(b|0))break g;if((g|0)==68)break c;break d}J[694731]=h;if(J[e+12>>2]==(b|0))break d}}J[c>>2]=4;a=0;break a}if(!d&a>>>0<=65535)break b}J[c>>2]=4;a=65535;break a}a=(f|0)==45?0-a|0:a}bc=e+16|0;return a&65535}function Cfb(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;J[c>>2]=-1;J[d>>2]=-1;f=L[a+340>>1];if(f){h=J[a+356>>2];a=0;while(1){e=P(a,20)+h|0;a:{if(L[e+6>>1]!=(b|0)|!L[e+8>>1])break a;b:{c:switch(L[e>>1]-1|0){case 2:if(L[e+2>> -1]>1)break a;g=c;if(L[e+4>>1]==1033|J[c>>2]==-1)break b;break a;case 0:break c;default:break a}if(L[e+2>>1])break a;g=d;if(!L[e+4>>1])break b;if(J[d>>2]!=-1)break a}J[g>>2]=a}a=a+1|0;if((f|0)!=(a|0))continue;break}}return(J[d>>2]&J[c>>2])>=0|0}function B5a(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;var h=0,i=0,j=0;h=bc-16|0;bc=h;d=J[a+472>>2];a:{if(J[d+36>>2]){jn(d+32|0,0,(J[f>>2]<<2)+e|0,0,1,J[d+40>>2]);J[d+36>>2]=0;a=1;break a}i=J[d+44>>2];j=e;e=J[f>>2];j=j+(e<<2)|0;J[h+8>>2]=J[j>> -2];e=g-e|0;g=e>>>0>i>>>0?i:e;i=g>>>0<2;if(i){J[d+36>>2]=1;e=J[d+32>>2]}else e=J[j+4>>2];J[h+12>>2]=e;gc[J[d+12>>2]](a,b,J[c>>2],h+8|0);a=i?g:2}J[f>>2]=a+J[f>>2];J[d+44>>2]=J[d+44>>2]-a;if(!J[d+36>>2])J[c>>2]=J[c>>2]+1;bc=h+16|0}function wr(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;a:{if(!a){f=35;break a}f=38;if(!b)break a;d=J[a+40>>2];if(!d)break a;f=6;g=J[a+36>>2];if((g|0)<=0)break a;g=(g<<2)+d|0;while(1){b:{if(J[d>>2]!=(b|0))break b;c=J[b>>2];c:{if(!c)break c;c=J[c+96>>2];h=J[J[c>>2]+32>> -2];if(!h)break c;c=gc[h|0](c,240400)|0;if(!c)break c;if(gc[J[c>>2]](b,e+8|0)|0)break c;if(J[e+12>>2]==14)break b}J[a+92>>2]=J[d>>2];f=0;break a}d=d+4|0;if(g>>>0>d>>>0)continue;break}}bc=e+16|0;return f}function qi(a,b,c,d,e,f){var g=0,h=0,i=0;a:{if(f&64){e=f+-64|0;f=b;d=e&31;if((e&63)>>>0>=32){e=f<>>32-d|c<>>0>=32){i=d<>>32-g|e<>>0>=32){e=0;d=c>>>d| -0}else{e=c>>>d|0;d=((1<>>d}d=h|d;e=e|i;h=b;g=f&31;if((f&63)>>>0>=32){i=b<>>32-g|c<>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e}function j3a(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;g=bc-16|0;bc=g;d=J[c>>2];h=J[d+16>>2];if((h|0)!=J[d+24>>2]){d=(J[d+8>>2]+(h<<4)|0)-16|0;O[g+8>>3]=O[d>>3];O[g>>3]=O[d+8>>3];d=1}else d=0;if(d){e=+J[a>>2]*.015625;e=e+e;i=(e+O[g+8>>3])*.3333333333333333;f=+J[a+4>>2]*.015625;f=f+f;j=(f+O[g>> -3])*.3333333333333333;k=e;e=+J[b>>2]*.015625;l=f;f=+J[b+4>>2]*.015625;b2(J[c>>2],i,j,(k+e)*.3333333333333333,(l+f)*.3333333333333333,e,f);J[c+4>>2]=1}bc=g+16|0;return 0}function bD(a,b,c){var d=0,e=0;if(!a)return;if(!c)return;a:{if(M[a+16>>2]<=b>>>0)break a;d=J[J[J[a+96>>2]+12>>2]+84>>2];if(d){d=gc[d|0](a,b,1,2051,c)|0;if(!d|(d&255)!=7)break a}b:{if(!a|!c)break b;d=J[a+16>>2];e=b+1|0;c:{if(d>>>0>>0|!e|b>>>0>=d>>>0)break c;d=J[J[J[a+96>>2]+12>>2]+84>>2];if(d){d=gc[d|0](a,b,1,2051,c)|0;if(!d)break b; -if((d&255)!=7)break c}d=0;while(1){if(vo(a,b+d|0,2307))break c;J[(d<<2)+c>>2]=J[J[a+84>>2]+64>>2];d=d+1|0;if((d|0)!=1)continue;break}}}}}function Lpa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;e=J[b>>2]}J[695492]=0;J[c+12>>2]=e;a=ga(5535,a|0,c+12|0,10)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[c+12>>2]=0;b:{if(!e)break b;J[695492]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break b;J[695492]=0;_(4987,e|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break a}J[a>>2]=2424732;bc=c+16|0;return a|0}a=Z()|0;vc(c+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function Kha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;a:{b:{c:{if((a|0)!=(b|0)){g=J[694731];J[694731]=0;d=mP(a,e+12|0,d,Wg());a=fc;f=J[694731];d:{if(f){if(J[e+12>>2]!=(b|0))break d;if((f|0)==68)break b;break c}J[694731]=g;if(J[e+12>>2]==(b|0))break c}}J[c>>2]=4;b=0;break a}if((a|0)<0&d>>>0<2147483648|(a|0)<-1|(d>>>0>2147483647&(a|0)>=0|(a|0)>0))break b;b=d;break a}J[c>> -2]=4;b=2147483647;if(!!d&(a|0)>=0|(a|0)>0)break a;b=-2147483648}bc=e+16|0;return b|0}function Ji(a){var b=0,c=0,d=0;if(!a){a=J[682258];if(a)b=Ji(a);a=J[682184];if(a)b=Ji(a)|b;a=J[694757];if(a)while(1){if(J[a+20>>2]!=J[a+28>>2])b=Ji(a)|b;a=J[a+56>>2];if(a)continue;break}return b}d=J[a+76>>2]<0;a:{b:{if(J[a+20>>2]==J[a+28>>2])break b;gc[J[a+36>>2]](a,0,0)|0;if(J[a+20>>2])break b;b=-1;break a}b=J[a+8>>2];c=J[a+4>>2];if((b|0)!=(c|0)){b=c-b|0;gc[J[a+40>>2]](a,b,b>>31,1)|0}b=0;J[a+28>>2]=0;J[a+16>>2]=0; -J[a+20>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(d)break a}return b}function hv(a,b){b=(J[a+36>>2]<<1)+b|0;J[a+36>>2]=b&16777215;a:{b:{c:{d:{b=b>>>24|0;switch(b|0){case 0:break b;case 1:break d;default:break c}}Fq(a,1);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)while(1){Fq(a,0);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)continue;break}J[a+40>>2]=0;return}if((b|0)==255)break a;fa(2376174,2383062,1047,2426594);B()}J[a+40>>2]=J[a+40>>2]+1;return}Fq(a,0);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)while(1){Fq(a,1);b=J[a+40>>2];J[a+40>>2]=b- -1;if(b)continue;break}J[a+40>>2]=0}function bZ(a){var b=0,c=0,d=0;a:{b=J[a+28>>2];if((b|0)>0)while(1){c=J[J[a+24>>2]+(d<<2)>>2];if(c){b=J[c>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[c+4>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[c+8>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;qc(c);b=J[a+28>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}c=J[a+24>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;return a}ea(0)| -0;yc();B()}function tpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if(c>>>0<=2){Dc(a,1028,0,0);return 1028}b:{if(!K[a+112|0])break b;f=gc[J[b+4>>2]](a,b,e)|0;if(f)break b;b=K[d|0]|K[d+1|0]<<8;f=J[e>>2];J[f+36>>2]=c-2;I[f+32>>1]=b<<8|b>>>8;b=gc[J[a+152>>2]](c-1|0)|0;J[J[e>>2]+40>>2]=b;b=J[e>>2];c=J[b+40>>2];if(!c){Dc(a,1,0,0);return 1}tc(c,d+2|0,J[b+36>>2]);f=0}return f|0}Dc(a,1029,0,0);return 1029}function S_(a, -b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[695492]=0;c=$(4,16)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){b=J[b+40>>2];J[695492]=0;b=aa(3201,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;J[a+40>>2]=b;return a|0}b=Z()|0;break a}b=Z()|0;qc(c);c=J[a+24>>2];if(!c)break a;qc(c)}c=J[a+12>>2];if(c){J[a+16>>2]=c;qc(c)}c=J[a>>2];if(c){J[a+4>>2]=c;qc(c)}ba(b|0);B()}function Jh(a,b,c){var d=0,e=0,f=0; -a:{if(!a)break a;d=I[a+2>>1];if((d|0)<=0)break a;a=J[a+4>>2];if(d>>>0>=4){f=d&-4;while(1){J[a>>2]=J[a>>2]+b;J[a+4>>2]=J[a+4>>2]+c;J[a+8>>2]=J[a+8>>2]+b;J[a+16>>2]=J[a+16>>2]+b;J[a+24>>2]=J[a+24>>2]+b;J[a+12>>2]=J[a+12>>2]+c;J[a+20>>2]=J[a+20>>2]+c;J[a+28>>2]=J[a+28>>2]+c;a=a+32|0;e=e+4|0;if((f|0)!=(e|0))continue;break}}d=d&3;if(!d)break a;e=0;while(1){J[a>>2]=J[a>>2]+b;J[a+4>>2]=J[a+4>>2]+c;a=a+8|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}}function Ija(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0; -e=bc-32|0;bc=e;J[e+16>>2]=b;d=J[a+48>>2];J[e+20>>2]=c-((d|0)!=0);g=J[a+44>>2];J[e+28>>2]=d;J[e+24>>2]=g;a:{b:{d=Za(J[a+60>>2],e+16|0,2,e+12|0)|0;if(d){J[694731]=d;d=-1}else d=0;if(d)b=32;else{d=J[e+12>>2];if((d|0)>0)break b;b=d?32:16}J[a>>2]=b|J[a>>2];break a}f=d;g=J[e+20>>2];if(g>>>0>=d>>>0)break a;f=J[a+44>>2];J[a+4>>2]=f;J[a+8>>2]=f+(d-g|0);if(J[a+48>>2]){J[a+4>>2]=f+1;H[(b+c|0)-1|0]=K[f|0]}f=c}bc=e+32|0;return f|0}function B3a(a,b){a=a|0;b=b|0;var c=0,d=0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3| -0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;H[b+8|0]=0;H[b+9|0]=0;a=J[a+188>>2];a:{if(!a)break a;c=qn(a,2);if(!c)break a;a=K[c+36|0]|K[c+37|0]<<8|(K[c+38|0]<<16|K[c+39|0]<<24);d=K[c+32|0]|K[c+33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24);H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;H[b+4|0]=a;H[b+5|0]=a>>>8;H[b+6|0]=a>>>16;H[b+7|0]=a>>>24;a=K[c+40|0]|K[c+41|0]<<8;H[b+8|0]=a;H[b+9|0]=a>>>8}}function nfb(a,b){a=a|0;b=b|0;var c=0,d=0;c=gc[J[a+516>>2]](a,1835104368,b,0)|0;a:{if(c)break a;d=a+ -260|0;c=Me(b,326048,d);if(c)break a;I[a+290>>1]=0;I[a+282>>1]=0;I[a+284>>1]=0;I[a+286>>1]=0;I[a+288>>1]=0;I[a+274>>1]=0;I[a+276>>1]=0;I[a+278>>1]=0;I[a+280>>1]=0;I[a+266>>1]=0;I[a+268>>1]=0;I[a+270>>1]=0;I[a+272>>1]=0;b:{if(J[a+260>>2]<65536)break b;c=Me(b,326064,d);if(c)break a;if(L[a+280>>1]<=63)I[a+280>>1]=64;if(L[a+276>>1]<65532)break b;I[a+276>>1]=65531}c=0}return c|0}function jDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=gc[J[J[b>>2]+28>>2]](b)|0;if((c|0)>0){d=KV(a,c-1|0);a=J[d+4>>2];b:{if(J[a+ -4>>2]>=2){J[695492]=0;_(5037,d|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[d+4>>2]}e=J[J[b>>2]+32>>2];f=J[a+12>>2];a=J[a+8>>2];J[695492]=0;ha(e|0,b|0,a-f|0,c|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break a}b=Z()|0;J[d>>2]=2381060;a=J[d+4>>2];if(a){c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(!c)gc[J[J[a>>2]+4>>2]](a);J[d+4>>2]=0}ba(b|0);B()}KV(a,-1)}}function _hb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{c=J[a+28>>2];if(K[c+44|0])break b;d=d5(c,J[b>>2],J[b+4>>2]);if(!d)break b;a=J[a+24>>2];if(J[a>>2])break a; -J[a>>2]=d;return}d=J[b+12>>2];f=J[b+8>>2];c:{b=J[c+12>>2];if((I[b+22>>1]+I[b+58>>1]|0)+1>>>0>M[b+4>>2]){b=sh(b,1,0);if(b)break c}a=J[c+20>>2];if(K[c+45|0]){b=J[a+8>>2];c=I[a+2>>1];e=J[a+4>>2]+(c<<3)|0;J[e+4>>2]=d>>10;J[e>>2]=f>>10;H[b+c|0]=1}I[a+2>>1]=L[a+2>>1]+1;return}a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=b}}function yib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[a+32>>2]=c;e=a,f=Sc(c,4,0,b,0,d+12|0),J[e+24>>2]=f;a:{b:{if(J[d+12>>2])break b;e=a,f=Sc(c,4,0,b,0,d+12|0),J[e+28>>2]= -f;if(J[d+12>>2])break b;J[a+20>>2]=0;J[a+16>>2]=b;J[a+8>>2]=0;J[a+12>>2]=-559038737;J[a>>2]=0;J[a+4>>2]=0;b=J[65263];J[a+36>>2]=J[65262];J[a+40>>2]=b;b=J[65265];J[a+44>>2]=J[65264];J[a+48>>2]=b;a=0;break a}b=J[a+24>>2];if(b)gc[J[c+8>>2]](c,b);J[a+24>>2]=0;a=J[d+12>>2]}bc=d+16|0;return a|0}function wK(a,b){var c=0,d=0,e=0,f=0;d=1;e=(b<<10)+a|0;b=J[e+644>>2];a:{if((b|0)<0&(b&15728640)!=7340032)break a;b=0;c=J[e+260>>2];if((c|0)<0&(c&15728640)!=7340032)break a;while(1){c=b<<2;f=J[c+e>>2];if((f|0)<0& -(f&15728640)!=7340032)break a;c=J[(c|4)+e>>2];if((c|0)<0&(c&15728640)!=7340032)break a;b=b+2|0;if((b|0)!=256)continue;break}b=0;while(1){b:{d=J[(b<<2)+e>>2];if((d|0)<0)break b;if(!wK(a,d>>>24|0))break b;return 1}b=b+1|0;if((b|0)!=256)continue;break}d=0}return d}function q_(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=bc-32|0;bc=c;J[c+16>>2]=13;J[c>>2]=13;if(J[b+20>>2]>0){d=1;while(1){f=d;d=Ni(b,d);a:{if(J[hf(d+16|0,J[d+4>>2],c+16|0,0)>>2]!=6)break a;d=0;e=J[c+24>>2];if(J[e+12>>2]<=0)break a;while(1){if(J[jg(e, -d,c)>>2]==9){g=J[a+28>>2];e=rc(12);h=J[c+12>>2];i=J[c+8>>2];J[e+8>>2]=f;J[e>>2]=i;J[e+4>>2]=h;id(g,e)}uc(c);d=d+1|0;e=J[c+24>>2];if((d|0)>2])continue;break}}d=f+1|0;uc(c+16|0);if(J[b+20>>2]>(f|0))continue;break}}bc=c+32|0}function hr(a){var b=0,c=0,d=0;c=bc-32|0;bc=c;b=gc[J[659447]](36)|0;a:{if(!b){J[c>>2]=5439;Cc(0,0,0,0,0,29,2,3,5439,0,0,0,32863,c);break a}J[b+20>>2]=0;J[b+4>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;d=J[659449];a=a?a+2|0:0;J[b+24>>2]=a;J[b+12>>2]=d;J[b+8>>2]=a;b:{if(a){a=gc[J[659450]](a)| -0;J[b>>2]=a;if(!a){J[c+16>>2]=5439;Cc(0,0,0,0,0,29,2,3,5439,0,0,0,32863,c+16|0);if(!J[b+32>>2])J[b+32>>2]=2;d=0;gc[J[659451]](b);break a}H[a|0]=0;break b}J[b>>2]=0}J[b+16>>2]=0;d=b}bc=c+32|0;return d}function Fyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+16>>2];J[a+20>>2]=d;d=zc(d);J[a+24>>2]=d;if(!d)return-1;a:{if(J[a+20>>2]){d=0;while(1){c=J[b+8>>2];if(c&7)return-1;f=J[a+24>>2];e=J[b+64>>2];if(!((e|0)<0|J[b+60>>2]<(e|0))){J[b+8>>2]=c|4;return-1}c=J[b+28>>2];J[b+28>>2]=c-1;b:{if((c|0)>0){J[b+60>> -2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break b}c=jd(b,1);e=-1;if((c|0)==-1)break a}if(f)H[d+f|0]=c;d=d+1|0;if(d>>>0>2])continue;break}}e=0}return e|0}function x6(a,b){var c=0,d=0,e=0;if(b){c=J[b+608>>2];if(c){d=J[c+28>>2];e=b+640|0;if(J[e>>2])Sf(c,e);c=J[b+636>>2];if(c)gc[J[d+8>>2]](d,c);J[b+640>>2]=0;J[b+632>>2]=0;J[b+636>>2]=0;J[b+624>>2]=0;J[b+628>>2]=0;J[b+616>>2]=0;J[b+620>>2]=0;J[b+608>>2]=0;J[b+612>>2]=0}c=J[b+644>>2];if(c)gc[J[a+8>>2]](a,c);J[b+644>>2]=0;c=J[b+572>>2]; -if(c)gc[J[a+8>>2]](a,c);J[b+572>>2]=0;c=J[b+580>>2];if(c)gc[J[a+8>>2]](a,c);J[b+580>>2]=0;c=J[b+592>>2];if(c)gc[J[a+8>>2]](a,c);J[b+592>>2]=0}}function wob(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;H[d+16|0]=K[b+40|0];H[d+17|0]=K[b+41|0];H[d+18|0]=K[b+42|0];H[d+19|0]= -K[b+43|0];H[d+20|0]=K[b+44|0];H[d+21|0]=K[b+45|0];H[d+22|0]=K[b+46|0];H[d+23|0]=K[b+47|0];return ue(a,J[b>>2],16,d+8|0)|0}function lv(a){a=a|0;var b=0,c=0,d=0;c=bc-16|0;bc=c;J[c+12>>2]=0;b=c+12|0;md(b,0);J[695492]=0;aa(4993,a|0,b|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2728584)>>2];a=J[c+12>>2];J[c+12>>2]=0;b:{if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]= -0;if((a|0)==1)break a}bc=c+16|0;return}a=Z()|0;vc(c+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function VC(a){var b=0,c=0,d=0,e=0,f=0;if(!a)return 35;f=38;c=J[a+40>>2];a:{if(!c)break a;d=(J[a+36>>2]<<2)+c|0;e=d-4|0;b:{if(e>>>0>=c>>>0)while(1){b=J[e>>2];c:{if(J[b+4>>2]!=1970170211)break c;d:switch(L[b+8>>1]){case 3:if(L[b+10>>1]!=10)break c;break b;case 0:break d;default:break c}if(L[b+10>>1]==4)break b}e=e-4|0;if(e>>>0>=c>>>0)continue;break}while(1){d=d-4|0;if(d>>>0>>0)break a;b=J[d>>2];if(J[b+4>>2]!= -1970170211)continue;break}}J[a+92>>2]=b;f=0}return f}function H7a(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;i=K[a+3|0];g=i^255;a:{if(f>>>0<=254){h=255-f|0;H[a+2|0]=(P(h,K[a+2|0])+255>>>8)+(P(P(b,g)+255>>>8|0,f)+255>>>8);H[a+1|0]=(P(K[a+1|0],h)+255>>>8)+(P(P(c,g)+255>>>8|0,f)+255>>>8);e=(P(P(e,g)+255>>>8|0,f)+255>>>8)+(P(h,i)+255>>>8)|0;b=(P(K[a|0],h)+255>>>8)+(P(P(d,g)+255>>>8|0,f)+255>>>8)|0;break a}H[a+1|0]=P(c,g)+255>>>8;H[a+2|0]=P(b,g)+255>>>8;e=P(e,g)+255>>>8|0;b=P(d,g)+ -255>>>8|0}H[a+3|0]=e;H[a|0]=b}function im(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a+4>>2];if((c|0)==18|J[a+32>>2]==(b|0))break a;b:{if((c|0)!=1)break b;d=J[a+44>>2];if(!d)break b;while(1){if(J[d+40>>2]==2)E$(J[a+32>>2],d);J[d+32>>2]=b;c=J[d+12>>2];if(!(!c|J[c+4>>2]==18))while(1){if(J[c+32>>2]!=(b|0))im(c,b);c=J[c+24>>2];if(c)continue;break}d=J[d+24>>2];if(d)continue;break}}c=J[a+12>>2];if(!(!c|J[c+4>>2]==18))while(1){if(J[c+32>>2]!=(b|0))im(c,b);c=J[c+24>>2];if(c)continue;break}J[a+32>>2]=b}}function i4a(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=Q(0),g=0,h=0;e=J[a+104>>2];if(!((e|0)<0|J[a+100>>2]<=(e|0))){J[a+104>>2]=e+1;g=J[a+96>>2]+P(e,96)|0;h=1}J[b>>2]=g;if(!h)return 0;a:{b:{c:{d:{b=J[b>>2];switch(J[b+60>>2]){case 0:break c;case 1:break d;default:break b}}if(!J[J[a+8>>2]+276>>2])break b}N[c>>2]=Q(N[a+24>>2]+N[b+4>>2])+Q(J[b+68>>2]);f=Q(Q(N[a+28>>2]+N[b+8>>2])-Q(J[b+72>>2]));break a}N[c>>2]=N[a+24>>2]+N[b+4>>2];f=Q(N[a+28>>2]+N[b+8>>2])}N[d>>2]=f;return 1}function f7(a,b){var c=0,d=0,e=0,f=0,g=0, -h=0,i=0,j=0,k=0,l=0;f=bc-16|0;bc=f;c=!a;a:{if(c|!b)break a;i=c?0:J[a>>2];h=Fk(i);if(!h)break a;if((i|0)>0)while(1){k=f,l=cg(a,d),J[k+12>>2]=l;j=s7(a,d,1);e=vD(b,j);g=J[f+12>>2];b:{if((e|0)==(g|0))break b;c=!e;if(c|!g|((c?-1:J[e+8>>2])|0)!=((g?J[g+8>>2]:-1)|0))break b;c=wf(e,e);if(!c)break b;uf(c,0,0,c?J[c>>2]:-1,c?J[c+4>>2]:-1,16,g,0,0)}$h(h,e,0);Vp(h,j);wd(f+12|0);d=d+1|0;if((i|0)!=(d|0))continue;break}d=h}bc=f+16|0;return d}function Usa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0;if(!(!f|!e)){d=J[a+60>>2];a=L[a+26>>1];j=a<<1;c=e-1|0;k=e&1;l=P(a,e)<<1;m=h<<2;while(1){a:{if(!k){h=e;a=i;break a}J[b>>2]=J[J[(K[i+1|0]<<2)+d>>2]>>2];b=b+4|0;h=c;a=i+j|0}if((e|0)!=1)while(1){J[b>>2]=J[J[(K[a+1|0]<<2)+d>>2]>>2];a=a+j|0;J[b+4>>2]=J[J[(K[a+1|0]<<2)+d>>2]>>2];b=b+8|0;a=a+j|0;h=h-2|0;if(h)continue;break}i=(i+l|0)+g|0;b=b+m|0;f=f-1|0;if(f)continue;break}}}function SM(a,b,c,d,e,f){var g=0,h=0,i=0;g=RM(a,b,c,d,f);f=J[J[f>>2]+12>>2];h=J[e>>2];i=J[d>>2];if(M[J[f+ -(h<<2)>>2]>>2]>2]>>2]){J[d>>2]=h;J[e>>2]=i;e=J[d>>2];h=J[c>>2];if(M[J[f+(e<<2)>>2]>>2]>=M[J[f+(h<<2)>>2]>>2])return g+1|0;J[c>>2]=e;J[d>>2]=h;d=J[c>>2];e=J[b>>2];if(M[J[f+(d<<2)>>2]>>2]>=M[J[f+(e<<2)>>2]>>2])return g+2|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(M[J[f+(c<<2)>>2]>>2]>=M[J[f+(d<<2)>>2]>>2])return g+3|0;J[a>>2]=c;J[b>>2]=d;g=g+4|0}return g}function zm(a,b,c){var d=0,e=0,f=0;d=J[a>>2];a:{b:{if((b|0)<0){b=d;if((d|0)>=0)break b;break a}b=0;if((d|0)<0)break a}e=J[a+4>>2]; -if((e|0)<=(d|0)){e=d+16|0;d=e<<2;f=J[a+8>>2];c:{if(!f){d=zc(d);break c}d=Kh(f,d)}if(!d)return-1;J[a+4>>2]=e;J[a+8>>2]=d;d=J[a>>2]}if((d|0)<(e|0)){J[c>>2]=J[c>>2]+1;e=d-b|0;if((e|0)>0){d=J[a+8>>2]+(b<<2)|0;Zc(d+4|0,d,e<<2);d=J[a>>2]}J[J[a+8>>2]+(b<<2)>>2]=c;J[a>>2]=d+1;return 0}fa(203175,198640,664,206627);B()}fa(202533,198640,658,206627);B()}function igb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=a+20|0;if(e>>>0>M[b+160>>2])ge(b,8);c=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);c=c<<24|(c&65280)<< -8|(c>>>8&65280|c>>>24);d=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!(!(d>>>0<20|d>>>0>J[b+160>>2]-a>>>0)&d-20>>>1>>>0>=c>>>0))ge(b,8);if(!(!c|J[b+164>>2]<=0))while(1){if(M[b+172>>2]<=(K[e+1|0]|K[e|0]<<8)>>>0)ge(b,16);e=e+2|0;c=c-1|0;if(c)continue;break}return 0}function e2(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=bc-16|0;bc=d;a:{b:{g=b+304|0;e=J[J[b+328>>2]+216>>2]?g:b+316|0;f=J[e+4>>2];if(!f)break b;h=e+4|0;e=h;while(1){i=J[f+16>>2]<(c|0);e=i?e:f;f= -J[(i?f+4|0:f)>>2];if(f)continue;break}if((e|0)==(h|0)|J[e+16>>2]>(c|0))break b;tc(a,e+20|0,104);break a}J[d+12>>2]=c;H[d+11|0]=0;H[d+10|0]=0;St(a,b,d+12|0,d+11|0,0,d+10|0);J[695492]=0;da(2758,g|0,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;fj(a+76|0);ba(b|0);B()}bc=d+16|0}function Q8a(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=348616;a:{b=J[a+8>>2];d=a+12|0;if((b|0)!=(d|0))while(1){e=J[b+28>>2];if(e){c=J[J[e>>2]+12>>2];J[695492]=0;$(c|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[b+ -28>>2]=0}c=J[b+4>>2];b:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break b}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}Zt(a+8|0,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0;qc(a);return}ea(0)|0;yc();B()}function TTa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=rc(84);J[695492]=0;J[e+8>>2]=a;J[e>>2]=2169420;J[e+16>>2]=0;J[e+12>>2]=b;J[e+4>>2]=a;b=e;a=J[695492];J[695492]=0;a:{if((a|0)!=1){J[b+60>>2]=0;J[b>>2]=2181352;J[b+20>>2]=0;J[b+24>>2]=0;J[b+80>> -2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[695492]=0;ca(3364,b|0,c|0,d|0);a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;lp(b);break a}if(!J[b+80>>2]){gc[J[J[b>>2]+4>>2]](b);b=0}return b|0}a=Z()|0}qc(e);ba(a|0);B()}function Qm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=J[a>>2];d=e;a:{if(!K[a+8|0])break a;d=0;if(!e)break a;d=J[e>>2]}e=d;c=J[b>>2];d=c;b:{if(!K[b+8|0])break b;d=0;if(!c)break b;d=J[c>>2]}c=J[b+4>>2];a=J[a+4>>2];b=c>>>0>>0;g=b?c:a;if(g){h=1;a=1;f=J[d>>2];c=J[e>>2];c:{if((f|0)> -(c|0))break c;a=0;d:{while(1){if((c|0)>(f|0))break d;a=a+1|0;h=g>>>0>a>>>0;if((a|0)==(g|0))break c;f=a<<2;c=J[f+e>>2];f=J[f+d>>2];if((c|0)>=(f|0))continue;break}a=1;break c}a=0}b=h?a:b}return b&1}function vW(a,b,c,d){var e=0,f=0,g=0;g=bc-128|0;bc=g;f=g;c=J[b+12>>2]+(c<<4)|0;e=J[c>>2];a:{if(!e){b=c;break a}while(1){J[f>>2]=c;f=f+4|0;b=e;c=b;e=J[c>>2];if(e)continue;break}}e=0;while(1){c=J[b+8>>2];if((e|0)>(c|0)){J[b+8>>2]=e;c=e}b:{if((c|0)>=(d|0))break b;while(1){if(J[b+4>>2]<=(c|0))break b;c:{if(Sm(a, -1)){J[b+4>>2]=c;break c}c=c+1|0}if((c|0)<(d|0))continue;break}}J[b+8>>2]=c;if((f|0)!=(g|0)){f=f-4|0;b=J[f>>2];e=c;continue}break}bc=g+128|0;return J[b+4>>2]<(d|0)}function o5(a,b){var c=0,d=0,e=0;d=bc-16|0;bc=d;c=J[a>>2]+1|0;J[d+12>>2]=c;a:{if(b>>>0<=c>>>0)break a;while(1){fh(d+12|0,b);c=J[d+12>>2];if(c>>>0>=b>>>0)break a;b:{e=K[c|0];if((e-48&255)>>>0<=9)break b;switch(e-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break b;default:break a}}c=c+1| -0;J[d+12>>2]=c;if(b>>>0>c>>>0)continue;break}}c:{if(b>>>0>c>>>0){b=3;if(K[c|0]!=62)break c}c=c+1|0;b=0}J[a>>2]=c;bc=d+16|0;return b}function mua(a,b,c){a=+a;b=b|0;c=c|0;var d=0,e=0;d=bc-256|0;bc=d;a:{if(a<1.001&a>.999)break a;rG(a,d);if((c|0)<=0)break a;if(c&1){H[b+2|0]=K[K[b+2|0]+d|0];H[b+1|0]=K[K[b+1|0]+d|0];H[b|0]=K[K[b|0]+d|0];b=b+3|0;e=c-1|0}else e=c;if((c|0)==1)break a;while(1){H[b+2|0]=K[K[b+2|0]+d|0];H[b+1|0]=K[K[b+1|0]+d|0];H[b|0]=K[K[b|0]+d|0];H[b+5|0]=K[K[b+5|0]+d|0];H[b+4|0]=K[K[b+4|0]+ -d|0];H[b+3|0]=K[K[b+3|0]+d|0];b=b+6|0;c=e-3|0;e=e-2|0;if(c>>>0<4294967294)continue;break}}bc=d+256|0}function SFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-32|0;bc=d;J[c>>2]=0;e=d+20|0;Jq(e,a,b);J[d+16>>2]=0;J[d+12>>2]=0;a=J[a+4>>2];J[695492]=0;ia(4746,a|0,e|0,d+16|0,d+12|0);a=J[695492];J[695492]=0;a:{if((a|0)==1)break a;b=J[d+12>>2];if(b){J[695492]=0;a=$(4,12)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;e=J[d+16>>2];H[a+8|0]=0;J[a+4>>2]=b;J[a>>2]=e;J[c>>2]=a}if(H[d+31|0]<0)qc(J[d+20>>2]);bc=d+ -32|0;return(b|0)!=0|0}a=Z()|0;if(H[d+31|0]<0)qc(J[d+20>>2]);ba(a|0);B()}function N5(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;g=K[c|0]|K[c+1|0]<<8;e=J[a+16>>2];h=K[c+4|0]|K[c+5|0]<<8;k=J[b+336>>2];f=J[a+20>>2];d=K[c+2|0]|K[c+3|0]<<8;c=f-(d+(K[c+6|0]|K[c+7|0]<<8)|0)|0;i=(c|0)>0?c:0;j=f-d|0;a:{if((i|0)>=(j|0))break a;c=g+h|0;e=c>>>0>>0?c:e;if(g>>>0>=e>>>0)break a;d=i;while(1){h=d-i|0;c=g;while(1){f=lj(b,c-g|0,h);if((f|0)!=(k|0))sm(a,c,d,f);c=c+1|0;if((e|0)!=(c|0))continue;break}d= -d+1|0;if((j|0)>(d|0))continue;break}}}function Ktb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-2|0){case 0:if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}return 0} -function GG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;d=J[682146];e=b&3;b:{if(!e){c=b;break b}c=b;while(1){J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=d;a=a+28|0;c=c-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<4)break a;while(1){J[a+24>>2]=0;J[a+16>>2]=0;J[a+108>>2]=0;J[a+104>>2]=d;J[a+100>>2]=0;J[a+80>>2]=0;J[a+76>>2]=d;J[a+72>>2]=0;J[a+52>>2]=0;J[a+48>>2]=d;J[a+44>>2]=0;J[a+20>>2]=d;a=a+112|0;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}}function Etb(a){a=a|0;var b=0, -c=0,d=0;b=J[J[a+536>>2]+88>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-2|0){case 0:if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0];c=c+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function wia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=bc-16|0; -bc=d;a:{b:{if(J[b+64>>2])if(!(gc[J[J[b>>2]+24>>2]](b)|0))break b;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}if(Qu(J[b+64>>2],J[c+8>>2],J[c+12>>2],0)){J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}e=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=e;e=J[d+12>>2];J[b+72>>2]=J[d+8>>2];J[b+76>>2]=e;b=J[c+12>>2];J[a+8>>2]=J[c+8>>2];J[a+12>>2]=b;b=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=b}bc=d+16|0}function pG(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;if(!(J[a+44>>2]?J[a+36>>2]:0))OT(a);e=J[a+36>> -2];d=(e|0)/2|0;g=J[a>>2];f=P(J[a+40>>2],J[b>>2]-J[a+16>>2]|0);a:{if((f|0)>=0){e=(d+f|0)/(e|0)|0;break a}e=0-((d-f|0)/(e|0)|0)|0}d=J[a+44>>2];f=(d|0)/2|0;h=J[a+4>>2];i=b;j=J[a+12>>2];b=P(J[a+48>>2],J[c>>2]-J[a+20>>2]|0);b:{if((b|0)>=0){d=(b+f|0)/(d|0)|0;break b}d=0-((f-b|0)/(d|0)|0)|0}b=J[a+32>>2];d=b&2?j-d|0:d+h|0;a=b&1?J[a+8>>2]-e|0:e+g|0;b=b&4;J[i>>2]=b?d:a;J[c>>2]=b?a:d}function Pw(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b=xi(2757336,b);b:{if((b|0)==2757340)break b;b=J[b+28>>2];c=J[689337];if(b>>> -0>=(J[689338]-c|0)/12>>>0)break a;c=c+P(b,12)|0;b=J[c>>2];f=J[c+4>>2];if((b|0)==(f|0))break b;while(1){d=K[a+11|0];g=d<<24>>24<0;e=K[b+11|0];h=e<<24>>24<0;d=g?J[a+4>>2]:d;if((d|0)==((h?J[b+4>>2]:e)|0)){e=1;if(!d)break b;if(!gd(g?J[a>>2]:a,h?J[b>>2]:b,d))break b;f=J[c+4>>2]}b=b+12|0;if((f|0)!=(b|0))continue;break}e=0}return e}nD(2757348);B()}function Daa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;a:{d=J[a+584>>2];if(d){if(J[d+124>>2]!=2)break a;J[d+64>>2]=b;J[d+68>>2]=c;b=d- -64|0;b:{while(1){if(Ak(b, -0)){b=J[a+628>>2];a=J[a>>2];J[e+4>>2]=J[d+88>>2];J[e>>2]=a;Nc(b,98081,76549,e);a=0;break b}if(!J[d+80>>2]){J[a+608>>2]=J[a+600>>2];gf(a);J[d+76>>2]=J[a+596>>2];J[d+80>>2]=J[a+600>>2]}if(J[d+68>>2])continue;break}a=1}bc=e+16|0;return a|0}fa(73278,70424,216,98081);B()}fa(76223,70424,217,98081);B()}function $ib(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;if(b){i=J[d>>2]-P(J[d+4>>2],a)|0;while(1){f=L[c+2>>1];a:{if(!f)break a;d=P(I[c>>1],3)+i|0;e=K[c+4|0];g=0;a=f;h=a&7;if(h)while(1){H[d|0]= -e;d=d+3|0;a=a-1|0;g=g+1|0;if((g&65535)!=(h|0))continue;break}if(f>>>0<8)break a;while(1){H[d+21|0]=e;H[d+18|0]=e;H[d+15|0]=e;H[d+12|0]=e;H[d+9|0]=e;H[d+6|0]=e;H[d+3|0]=e;H[d|0]=e;d=d+24|0;a=a-8|0;if(a&65535)continue;break}}c=c+6|0;b=b-1|0;if(b)continue;break}}}function o3a(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;var h=0,i=0;e=J[a+452>>2];i=e+24|0;g=J[e+24>>2];a:{if(g){h=J[e+12>>2];break a}h=gc[J[J[a+4>>2]+28>>2]](a,J[e+8>>2],J[e+20>>2],J[e+16>>2],1)|0;J[e+12>>2]=h;g=J[e+24>>2]}gc[J[J[a+ -472>>2]+4>>2]](a,b,c,d,h,i,J[e+16>>2]);b=J[e+24>>2];if(b>>>0>g>>>0){b=b-g|0;gc[J[J[a+480>>2]+4>>2]](a,J[e+12>>2]+(g<<2)|0,0,b);J[f>>2]=b+J[f>>2];b=J[e+24>>2]}a=J[e+16>>2];if(a>>>0<=b>>>0){J[e+24>>2]=0;J[e+20>>2]=a+J[e+20>>2]}}function i6a(a){a=a|0;var b=0,c=0,d=0,e=0;b=rc(64);J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=349252;J[b+4>>2]=1;J[b+32>>2]=0;J[b+36>>2]=0;J[b+20>>2]=-16777216;J[b+24>>2]=-16777216;J[b+16>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;a:{if((a|0)== -(b|0))break a;c=b+8|0;if(H[a+19|0]>=0){d=a+8|0;e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+8>>2];break a}yf(c,J[a+8>>2],J[a+12>>2])}J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2];return b|0}function cs(a,b){var c=0,d=0,e=0;d=bc-16|0;bc=d;c=d+12|0;a=J[a+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[695492]=0;a=$(6537,c|0)|0;e=J[695492];J[695492]=0;a:{b:{if((e|0)==1)break b;J[695492]=0;ha(6653,a|0,2617936,2617962,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;a=J[c>>2];c=J[a+4>>2]-1|0;J[a+4>> -2]=c;if((c|0)==-1)gc[J[J[a>>2]+8>>2]](a);bc=d+16|0;break a}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return b}function Gwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e>>2]=2386024;J[e+4>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[695492]=0;ia(5426,a|0,b|0,e|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)a:{a=J[e+8>>2];if(a)while(1){g=J[a+8>>2];f=J[J[g>>2]+44>>2];J[695492]=0;ia(f|0,g|0,b|0,c| -0,d|0);f=J[695492];J[695492]=0;if((f|0)==1)break a;a=J[a>>2];if(a)continue;break}$c(e);bc=e+16|0;return}a=Z()|0;$c(e);ba(a|0);B()}function Fwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e>>2]=2386024;J[e+4>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[695492]=0;ia(5426,a|0,b|0,e|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)a:{a=J[e+8>>2];if(a)while(1){g=J[a+8>>2];f=J[J[g>>2]+48>>2];J[695492]=0;ia(f|0,g|0,b|0,c|0,d|0);f=J[695492];J[695492]=0;if((f| -0)==1)break a;a=J[a>>2];if(a)continue;break}$c(e);bc=e+16|0;return}a=Z()|0;$c(e);ba(a|0);B()}function CE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(d>>>0>>0){f=bc-16|0;bc=f;e=b-d|0;if(e){b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(b-d>>>0>>0)iy(a,b,d+(e-b|0)|0,d,d,0);if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;$O(b+(d<<2)|0,e,c);c=a;a=d+e|0;Nk(c,a);J[f+12>>2]=0;J[b+(a<<2)>>2]=J[f+12>>2]}bc= -f+16|0;return}c=a;if(K[a+11|0]>>>7|0)a=J[a>>2];Eu(c,a,b)}function uva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;if(!K[a+88|0]){e=a,f=gc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=gc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=gc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;d=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}J[c>>2]=J[a+92>>2];J[c+8>>2]=J[a+100>>2];J[c+4>>2]=J[a+96>>2];J[c+12>>2]=J[a+104>>2];Cs(b,c);J[a+92>>2]=J[c>>2];J[a+96>>2]=J[c+4>>2];J[a+100>>2]=J[c+8>>2];b=J[c+12>>2];H[a+88|0]= -0;J[a+104>>2]=b;bc=c+16|0}function tva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;if(!K[a+88|0]){e=a,f=gc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=gc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=gc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;d=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}J[c>>2]=J[a+92>>2];J[c+8>>2]=J[a+100>>2];J[c+4>>2]=J[a+96>>2];J[c+12>>2]=J[a+104>>2];NT(b,c);J[a+92>>2]=J[c>>2];J[a+96>>2]=J[c+4>>2];J[a+100>>2]=J[c+8>>2];b=J[c+12>>2];H[a+88|0]=0;J[a+104>>2]=b;bc=c+16|0}function jdb(a){a= -a|0;var b=0,c=0;b=J[a+20>>2];a:{if(!(J[a+64>>2]|b-205>>>0>1)){if(M[a+140>>2]>2]){b=J[a>>2];J[b+20>>2]=69;gc[J[b>>2]](a)}gc[J[J[a+440>>2]+4>>2]](a);J[a+20>>2]=210;break a}b:switch(b-207|0){case 0:J[a+20>>2]=210;break a;case 3:break a;default:break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}c:{while(1){b=J[a+456>>2];if(J[b+20>>2])break c;if(gc[J[b>>2]](a)|0)continue;break}return 0}gc[J[J[a+24>>2]+24>>2]](a);cx(a);return 1}function h$(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(J[a+ -292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Hd(a)}if(J[a+172>>2]==-1)return 0;f=J[a+36>>2];e=J[f+16>>2];d=K[e|0];b:{c:{if(!d){c=b;break c}c=b;while(1){g=K[c|0];if((g|0)!=(d|0))break b;J[f+32>>2]=J[f+32>>2]+1;c=c+1|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}}g=K[c|0];d=0}d:{if(!g){c=d-9|0;if((d|0)==62|(1<>>0<=23:0))break d}a=Uh(a);return(a|0)==(b|0)?1:a}J[f+16>>2]=e;return 1}function cGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;e=d+20|0;gc[J[J[a>> -2]+12>>2]](e,a,b);b=J[J[a>>2]+12>>2];J[695492]=0;f=b;b=d+8|0;ca(f|0,b|0,a|0,c|0);a=J[695492];J[695492]=0;a:{b:{if((a|0)!=1){J[695492]=0;aa(4742,e|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break b;if(H[d+19|0]<0)qc(J[d+8>>2]);if(H[d+31|0]<0)qc(J[d+20>>2]);bc=d+32|0;return}a=Z()|0;break a}a=Z()|0;if(H[d+19|0]>=0)break a;qc(J[d+8>>2])}if(H[d+31|0]<0)qc(J[d+20>>2]);ba(a|0);B()}function Z1a(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-112|0;bc=b;J[b+12>>2]=0;J[b+8>>2]=0;c=K[a+11|0];d=c<<24>>24<0;kr(d?J[a>>2]: -a,d?J[a+4>>2]:c,b+12|0,b+8|0,0);c=Rk(J[b+12>>2],b+16|0);d=J[b+20>>2];e=J[b+12>>2];if(e)qc(e);a:{if(!c){c=1;if((d&61440)==16384)break a}J[b+12>>2]=0;J[b+8>>2]=0;c=K[a+11|0];d=c<<24>>24<0;kr(d?J[a>>2]:a,d?J[a+4>>2]:c,b+12|0,b+8|0,0);c=1;if((Rk(J[b+12>>2],b+16|0)|0)==-1)c=!vF(J[b+12>>2],509);a=J[b+12>>2];if(!a)break a;qc(a)}bc=b+112|0;return c|0}function Sqb(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;var h=0,i=0,j=0;a:{if(f){if(!d)break a;a=c<<1;i=b<<1;while(1){b=K[e|0];h=K[f|0];if((b| -0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+1|0]=b;b=K[e+2|0];h=K[f+2|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+2|0]=b;f=f+3|0;e=e+3|0;g=g+3|0;j=j+1|0;if((j|0)!=(d|0))continue;break}break a}tc(g,e,P(d,3))}return 0}function K1(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;O[a+40>>3]=g;O[a+32>>3]=f;O[a+24>>3]=c;O[a+16>>3]=b;O[a+96>>3]=b;O[a+48>>3]=b;O[a+104>>3]=c;O[a+56>>3]=c;i=d-b;k=e-c;h=f-d;l=h*h;h=g-e;h=(Y(i* -i+k*k)+Y(l+h*h))*.25*O[a+8>>3]+.5;a:{if(h<4294967296&h>=0){j=~~h>>>0;break a}j=0}j=(j|0)<=4?4:j;J[a>>2]=j;J[a+4>>2]=j;l=i;i=1/+(j|0);h=i+i;b=b-(d+d)+f;d=i*i;b=b*d;f=l*h+b;O[a+112>>3]=f;O[a+64>>3]=f;c=(c-(e+e)+g)*d;d=k*h+c;O[a+120>>3]=d;O[a+72>>3]=d;O[a+88>>3]=c+c;O[a+80>>3]=b+b}function Z9a(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;var h=0,i=0,j=0;h=bc+-64|0;bc=h;i=1;a:{if(!(!J[a+16>>2]|!J[a+20>>2])){i=nl(h+12|0);a=J[a+16>>2];J[695492]=0;j=J[695492];J[695492]=0;if((j|0)==1)break a; -J[695492]=0;or(a+52|0,h+16|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;O[b>>3]=O[h+16>>3];O[c>>3]=O[h+24>>3];O[d>>3]=O[h+32>>3];O[e>>3]=O[h+40>>3];O[f>>3]=O[h+48>>3];O[g>>3]=O[h+56>>3];Ed(i);i=0}bc=h- -64|0;return i|0}a=Z()|0;Ed(i);ba(a|0);B()}function xEa(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=i|0;if(g<0)while(1){g=g+360;if(g<0)continue;break}if(g>360)while(1){g=g+-360;if(g>360)continue;break}if(h<0)while(1){h=h+360;if(h<0)continue;break}if(h>=360)while(1){h=h+-360;if(h>= -360)continue;break}if(!i){if(g<=h){Rs(a,b,c,d,e,f,g,h,0);return}Rs(a,b,c,d,e,f,g,360,0);Rs(a,b,c,d,e,f,0,h,0);return}if(g>=h){Rs(a,b,c,d,e,f,g,h,1);return}Rs(a,b,c,d,e,f,g,0,1);Rs(a,b,c,d,e,f,360,h,1)}function upa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;d=J[682146];e=b&3;b:{if(!e){c=b;break b}c=b;while(1){J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=d;a=a+20|0;c=c-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<4)break a;while(1){J[a+8>>2]=0;J[a+12>>2]=0;J[a+76>>2]=d;J[a+68>>2]=0; -J[a+72>>2]=0;J[a+56>>2]=d;J[a+48>>2]=0;J[a+52>>2]=0;J[a+36>>2]=d;J[a+28>>2]=0;J[a+32>>2]=0;J[a+16>>2]=d;a=a+80|0;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}}function Agb(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(b>>>0>65535)break a;c=J[a+16>>2];a=c+518|0;c=c+6|0;b:{if(b>>>0<=255){c=c+(b<<1&510)|0;if(!(K[c|0]<<8|K[c+1|0]))break b;break a}c=c+(b>>>7&33554430)|0;c=K[c|0]<<8|K[c+1|0]&248;if(!c)break a;a=a+c|0}b=(b&255)-(K[a+1|0]|K[a|0]<<8)|0;if(b>>>0>=(K[a+3|0]|K[a+2|0]<<8)>>>0)break a;c=K[a+7|0]|K[a+ -6|0]<<8;if(!c)break a;b=(c+(a+6|0)|0)+(b<<1)|0;b=K[b|0]<<8|K[b+1|0];if(!b)break a;d=b+(K[a+5|0]|K[a+4|0]<<8)&65535}return d|0}function npa(a){a=a|0;var b=0,c=0;b=65536;a:{b:{c:{c=J[a+32>>2];if(c>>>0<=32768){b=32768;if(!c)break c}J[a+32>>2]=b;break b}b=0;if(J[a+36>>2]==16777215)break a}while(1){hv(a,1-(b>>>15|0)|0);b=J[a+32>>2]<<1&65534;J[a+32>>2]=b;if(b|J[a+36>>2]!=16777215)continue;break}}Fq(a,1);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)while(1){Fq(a,0);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)continue;break}J[a+ -40>>2]=0;if(K[a+18|0])while(1){Fq(a,1);if(K[a+18|0])continue;break}H[a+19|0]=255}function aw(a,b){var c=0,d=0,e=0;a:{while(1){c=d;if((c|0)==255){d=255;break a}e=Yg(b);if((e|0)==-1)break a;H[a+c|0]=e;d=c+1|0;b:switch(e-10|0){case 0:break a;case 3:break b;default:continue}break}e=Yg(b);if(!((e|0)!=10|(d|0)>=255)){H[a+d|0]=10;d=c+2|0;break a}c=(e|0)==-1;if(c)break a;c:{if(c)break c;c=J[b+4>>2];if(!c){Wy(b);c=J[b+4>>2];if(!c)break c}if(c>>>0<=J[b+44>>2]-8>>>0)break c;c=c-1|0;J[b+4>>2]=c;H[c|0]=e;J[b>> -2]=J[b>>2]&-17}}H[a+d|0]=0;return d?a:0}function Zbb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+20>>2];if((d|0)!=206){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=21;gc[J[J[a>>2]>>2]](a)}e=J[a+116>>2];f=J[a+140>>2];if(e>>>0<=f>>>0){b=J[a>>2];J[b+20>>2]=126;gc[J[b+4>>2]](a,-1);return 0}d=J[a+8>>2];if(d){J[d+8>>2]=e;J[d+4>>2]=f;gc[J[d>>2]](a)}d=c;c=P(J[a+324>>2],J[a+316>>2]);if(d>>>0>>0){d=J[a>>2];J[d+20>>2]=24;gc[J[d>>2]](a)}if(!(gc[J[J[a+448>>2]+12>>2]](a,b)|0))return 0;J[a+140>>2]=c+J[a+140>>2];return c| -0}function W4(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a>>2];if(e){f=J[(J[a+24>>2]+P(b,204)|0)+200>>2];a=J[a+8>>2];while(1){b=J[a+24>>2];if(b){d=J[a+16>>2];c=J[b+8>>2];a:{if(d&512)break a;c=J[b+12>>2]+J[b+8>>2]|0;if(d&1024)break a;d=J[a+28>>2]-J[b>>2]|0;if((d|0)<=0){c=J[b+8>>2]+Pc(d,f)|0;break a}c=J[b+12>>2];g=J[b+8>>2];b=J[b+4>>2];if((b|0)<=(d|0)){c=Pc(d-b|0,f)+(c+g|0)|0;break a}c=Dd(d,c,b)+g|0}J[a+36>>2]=c;J[a+16>>2]=J[a+16>>2]|32}a=a+40|0;e=e-1|0;if(e)continue;break}}}function RHa(a,b,c,d){a=a|0;b=b|0; -c=c|0;d=d|0;var e=0,f=0;f=J[a+32>>2];J[a+36>>2]=f;a:{e=J[a+48>>2];if(e){while(1){e=gc[J[a+20>>2]](f,e,J[a>>2])|0;if((e|0)==-1)break a;f=e+J[a+36>>2]|0;J[a+36>>2]=f;e=J[a+48>>2]-e|0;J[a+48>>2]=e;if(e)continue;break}f=J[a+32>>2]}J[a+48>>2]=0;J[a+36>>2]=f;if(!(gc[J[a+28>>2]](b,c,J[a>>2])|0)){J[a+68>>2]=J[a+68>>2]|8;return 0}J[a+56>>2]=b;J[a+60>>2]=c;return 1}J[a+68>>2]=J[a+68>>2]|8;Hc(d,4,2340723,0);J[a+68>>2]=J[a+68>>2]|8;return 0}function Ltb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+ -1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-3|0){case 0:if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function Hyb(a,b){a=a|0;b=b|0;var c=0,d=0;c=-1;a:{if(Di(b,a+24|0))break a;if(Di(b,a+20|0))break a;if(Lg(b,a+ -28|0))break a;d=J[b+8>>2];if(d&7)break a;c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2])){J[b+8>>2]=d|4;return-1}c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;b:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;d=K[c|0];break b}d=jd(b,1);if((d|0)==-1)break a}H[a+32|0]=d;c=-1;if(Nr(b,a+33|0))break a;if(Nr(b,a+34|0))break a;c=Nr(b,a+35|0)?-1:0}return c|0}function xnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1934642260){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];e=J[c+36>>2];J[b+36>>2]=e;H[b+ -44|0]=K[c+44|0];d=J[c+48>>2];J[b+48>>2]=d;J[b+52>>2]=J[c+52>>2];if(e){d=gc[J[a+152>>2]](e)|0;J[b+40>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+40>>2],J[b+36>>2]);d=J[b+48>>2]}if(d){e=b;d=P(P(K[b+44|0],3)+2|0,d);b=gc[J[a+152>>2]](d)|0;J[e+52>>2]=b;if(b){tc(b,J[c+52>>2],d);return 0}Dc(a,1,0,0);a=1}else a=0;return a|0}function wi(a,b,c,d,e){var f=0,g=0;if((c|0)<(e|0)){if(!Fg(a,b,c,e))return-1;c=J[a+12>>2];b=J[a+8>>2]}g=e<<2;c=c-e|0;f=J[g+55904>>2]&b>>c;if((f|0)>J[d+g>>2])while(1){if((c|0)<=0){if(!Fg(a, -b,c,1))return-1;c=J[a+12>>2];b=J[a+8>>2]}c=c-1|0;f=b>>>c&1|f<<1;e=e+1|0;if((f|0)>J[(e<<2)+d>>2])continue;break}J[a+12>>2]=c;J[a+8>>2]=b;if((e|0)>=17){a=J[a+16>>2];b=J[a>>2];J[b+20>>2]=121;gc[J[b+4>>2]](a,-1);return 0}return K[(J[d+140>>2]+(J[((e<<2)+d|0)+72>>2]+f|0)|0)+17|0]}function J7a(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;g=K[a+3|0];a:{if(f>>>0<=254){h=255-f|0;H[a+2|0]=(P(h,K[a+2|0])+255>>>8)+(P(P(b,g)+255>>>8|0,f)+255>>>8);H[a+1|0]=(P(K[a+1|0],h)+255>>>8)+(P(P(c,g)+255>>> -8|0,f)+255>>>8);e=(P(P(e,g)+255>>>8|0,f)+255>>>8)+(P(g,h)+255>>>8)|0;b=(P(K[a|0],h)+255>>>8)+(P(P(d,g)+255>>>8|0,f)+255>>>8)|0;break a}H[a+1|0]=P(c,g)+255>>>8;H[a+2|0]=P(b,g)+255>>>8;e=P(e,g)+255>>>8|0;b=P(d,g)+255>>>8|0}H[a+3|0]=e;H[a|0]=b}function GKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-48|0;bc=e;a:{if((b|0)<2)break a;f=J[a+4>>2];b=gc[J[J[f>>2]+60>>2]](f,b,c,d)|0;if(!b)break a;od(od(b,c),826593);c=J[a+8>>2];if(c){J[e+32>>2]=c;Xc(b,812382,e+32|0)}if(J[a+12>>2])od(b,812664);if(J[a+ -16>>2])od(b,813076);J[e+16>>2]=J[a+20>>2];Xc(b,813389,e+16|0);c=J[a+24>>2];if(c){J[e>>2]=c;Xc(b,813603,e)}if(!J[a+28>>2])od(b,813913);if(J[a+32>>2])od(b,814090);od(b,814335);g=b}bc=e+48|0;return g|0}function m5(a,b,c,d){var e=0,f=0,g=0,h=0;h=J[a>>2];if(h>>>0>>0){f=1;d=d<<1;b=b-h|0;d=b>>>0>d>>>0?d:b;a:{if(!d){b=0;break a}b=0;b:{while(1){c:{d:{e=K[b+h|0];switch(e|0){case 0:case 9:case 10:case 12:case 13:case 32:break c;default:break d}}if(e<<24>>24<0)break b;e=K[e+261792|0];if(e>>>0>15)break b;e= -e|f<<4;if(!(f&16)){f=e;break c}H[c+g|0]=e;f=1;g=g+1|0}b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}if((f|0)==1)break a;H[c+g|0]=f<<4;g=g+1|0}J[a>>2]=b+h}return g}function Hob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;c=L[b+36>>1];c=c<<8|c>>>8;H[d+12|0]=c;H[d+13|0]=c>>>8;f=d+8|0;c=K[b+38|0];a:{if(!(K[b+42|0]|(c|L[b+40>>1]))){e=6;break a}H[d+14|0]=c;c=L[b+40>>1];e=7;if(!(c|K[b+42|0]))break a; -c=c<<8|c>>>8;H[d+15|0]=c;H[d+16|0]=c>>>8;c=K[b+42|0];e=9;if(!c)break a;H[d+17|0]=c;e=10}c=e;return ue(a,J[b>>2],c,f)|0}function DPa(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=bc-400|0;bc=e;O[e+392>>3]=+J[b>>2]*1.52587890625E-5;b=J[a+20>>2];gc[J[J[b>>2]+16>>2]](b,e+392|0,e+128|0);b=J[a+16>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)>0){b=0;while(1){h=(b<<2)+e|0;g=O[(e+128|0)+(b<<3)>>3]*65536;a:{if(R(g)<2147483648){f=~~g;break a}f=-2147483648}J[h>>2]=f;f=J[a+16>>2];b=b+1|0;if((gc[J[J[f>>2]+28>>2]](f)| -0)>(b|0))continue;break}}a=J[a+16>>2];gc[J[J[a>>2]+16>>2]](a,e,c,d);bc=e+400|0}function CPa(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=bc-400|0;bc=e;O[e+392>>3]=+J[b>>2]*1.52587890625E-5;b=J[a+20>>2];gc[J[J[b>>2]+16>>2]](b,e+392|0,e+128|0);b=J[a+16>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)>0){b=0;while(1){h=(b<<2)+e|0;g=O[(e+128|0)+(b<<3)>>3]*65536;a:{if(R(g)<2147483648){f=~~g;break a}f=-2147483648}J[h>>2]=f;f=J[a+16>>2];b=b+1|0;if((gc[J[J[f>>2]+28>>2]](f)|0)>(b|0))continue;break}}a=J[a+16>> -2];gc[J[J[a>>2]+20>>2]](a,e,c,d);bc=e+400|0}function BPa(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=bc-400|0;bc=e;O[e+392>>3]=+J[b>>2]*1.52587890625E-5;b=J[a+20>>2];gc[J[J[b>>2]+16>>2]](b,e+392|0,e+128|0);b=J[a+16>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)>0){b=0;while(1){h=(b<<2)+e|0;g=O[(e+128|0)+(b<<3)>>3]*65536;a:{if(R(g)<2147483648){f=~~g;break a}f=-2147483648}J[h>>2]=f;f=J[a+16>>2];b=b+1|0;if((gc[J[J[f>>2]+28>>2]](f)|0)>(b|0))continue;break}}a=J[a+16>>2];gc[J[J[a>>2]+24>>2]](a,e,c,d);bc= -e+400|0}function pg(a,b,c){var d=0,e=0;d=(c|0)!=0;a:{b:{c:{if(!(a&3)|!c)break c;e=b&255;while(1){if((e|0)==K[a|0])break b;c=c-1|0;d=(c|0)!=0;a=a+1|0;if(!(a&3))break c;if(c)continue;break}}if(!d)break a;d=b&255;if(!((d|0)==K[a|0]|c>>>0<4)){d=P(d,16843009);while(1){e=d^J[a>>2];if((e^-1)&e-16843009&-2139062144)break b;a=a+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a}b=b&255;while(1){if((b|0)==K[a|0])return a;a=a+1|0;c=c-1|0;if(c)continue;break}}return 0}function oQ(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=bc-16|0;bc=e;a:{b:{c:{d:{if((a|0)!=(b|0))e:{f:{f=K[a|0];if((f|0)!=45)break f;a=a+1|0;if((b|0)!=(a|0))break f;break e}h=J[694731];J[694731]=0;a=ME(a,e+12|0,d,Wg());d=fc;g=J[694731];g:{if(g){if(J[e+12>>2]!=(b|0))break g;if((g|0)==68)break c;break d}J[694731]=h;if(J[e+12>>2]==(b|0))break d}}J[c>>2]=4;a=0;break a}if(!d)break b}J[c>>2]=4;a=-1;break a}a=(f|0)==45?0-a|0:a}bc=e+16|0;return a|0}function GH(a,b,c,d){var e=0,f=0;a:{e=J[b+4>>2];if(!((e|0)==3|!d&(e|0)==2)){e=0;f=J[b+ -52>>2];if(J[f+8>>2]<=0)break a;while(1){GH(a,J[J[f>>2]+(e<<2)>>2],c,d);e=e+1|0;f=J[b+52>>2];if((e|0)>2])continue;break}break a}e=rc(16);J[695492]=0;d=$(3185,e|0)|0;f=J[695492];J[695492]=0;b:{if((f|0)!=1){YX(a,b,d);a=XX(a,d,J[b+8>>2],O[b+16>>3],O[b+24>>3],O[b+32>>3],O[b+40>>3]);qc(dd(d));break b}a=Z()|0;qc(e);ba(a|0);B()}if(J[b+8>>2]-1>>>0<=1){Ym(c,0,a);return}id(c,a)}}function vB(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a|!b)break a;d=K[b|0];if(!d)return a;c=b;while(1){f=f+1|0;e=K[c+1|0];c= -c+1|0;if(e)continue;break}c=K[a|0];if(!c)break a;h=K[d+773280|0];while(1){b:{if(K[(c&255)+773280|0]!=(h|0))break b;c=a;d=b;e=f;if((a|0)==(b|0))return b;while(1){g=K[d|0];if(K[K[c|0]+773280|0]!=K[g+773280|0])break b;e=e-1|0;if(!e)return a;d=d+1|0;c=c+1|0;if(g)continue;break}return a}c=K[a+1|0];a=a+1|0;if(c)continue;break}}return 0}function Xgb(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;j=J[a+16>>2];a:{if(j){c=J[b>>2]+1|0;k=J[a+20>>2];h=j;while(1){i=(h-d>>>1|0)+d|0;e=(i<<3)+k|0;f=J[e>> -2];if((f|0)==(c|0)){a=J[((i<<3)+k|0)+4>>2];J[b>>2]=c;return a|0}f=f&2147483647;g=(f|0)==(c|0)?J[e+4>>2]:g;e=c>>>0>f>>>0;d=e?i+1|0:d;h=e?h:i;if(d>>>0>>0)continue;break}if(g)break a}c=0;g=0;if(d>>>0>=j>>>0)break a;a=J[a+20>>2]+(d<<3)|0;c=J[a>>2]&2147483647;g=J[a+4>>2]}J[b>>2]=c;return g|0}function RE(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;e=bc-16|0;bc=e;a:{if(b>>>0<=1073741807){b:{if(b>>>0<2){H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127;d=a;break b}h=e+8|0;if(b>>>0>=2){g=b+4&-4;d=g-1| -0;d=(d|0)==2?g:d}else d=1;Cn(h,a,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=b}$O(d,b,c);J[e+4>>2]=0;J[(b<<2)+d>>2]=J[e+4>>2];bc=e+16|0;break a}Id(a);B()}bc=f+16|0;return a}function Iy(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(a){if(b>>>0<=127)break a;b:{if(!J[J[694782]>>2]){if((b&-128)==57216)break a;break b}if(b>>>0<=2047){H[a+1|0]=b&63|128;H[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344&b>>>0>=55296)){H[a+2|0]=b&63|128;H[a|0]= -b>>>12|224;H[a+1|0]=b>>>6&63|128;return 3}if(b-65536>>>0<=1048575){H[a+3|0]=b&63|128;H[a|0]=b>>>18|240;H[a+2|0]=b>>>6&63|128;H[a+1|0]=b>>>12&63|128;return 4}}J[694731]=25;a=-1}else a=1;return a|0}H[a|0]=b;return 1}function J5a(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0;e=bc-32|0;bc=e;O[e+8>>3]=c;O[e+16>>3]=b;d=J[a+8>>2];if(!K[d+1|0]){gc[J[J[a>>2]>>2]](a,b,c)|0;d=J[a+8>>2]}J[e+28>>2]=0;f=e+28|0;h=Ke(d+4|0,f),i=2,H[h|0]=i;g=J[e+28>>2];O[g+8>>3]=c;O[g>>3]=b;J[d+4>>2]=J[d+4>>2]+1;d=J[a+4>>2]; -if(d){J[e+28>>2]=512;gc[J[J[d>>2]+308>>2]](d,f)|0;d=J[a+4>>2];gc[J[J[d>>2]+320>>2]](d,e+16|0,e+8|0)|0;a=J[a+4>>2];J[e+28>>2]=512;gc[J[J[a>>2]+312>>2]](a,f)|0}bc=e+32|0;return 1}function DEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=bc-16|0;bc=g;a:{if(!Gh(a)){d=g+4|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;J[695492]=0;h=Qg(a);e=J[695492];J[695492]=0;if((e|0)==1)break a;while(1){J[695492]=0;f=aa(4815,a|0,h|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;b:{if(!f){f=0;break b}J[695492]=0;f=ga(4939, -a|0,b|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(!f)continue}break}Lc(d)}bc=g+16|0;return f|0}a=Z()|0;Lc(d);ba(a|0);B()}function BZ(a,b,c){a=a|0;b=b|0;c=c|0;a:{b=J[a+104>>2];c=J[b+8>>2];if((c|0)>0){b=cj(b,c-1|0);c=J[b>>2];qc(b);b:switch(c|0){case 0:b=J[a+104>>2];c=J[b+8>>2];if((c|0)>0){J[a+100>>2]=J[J[(J[b>>2]+(c<<2)|0)-4>>2]+4>>2];return}J[a+100>>2]=1;return;case 1:break b;default:break a}b=J[a+8>>2];gc[J[J[b>>2]+276>>2]](b,J[a+28>>2]);return}b=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+ -4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,833823,0)}}function nSa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=tc(rc(2992),a,2992);c=J[b+4>>2];J[695492]=0;f=1<>2]=d;tc(d,J[a+2456>>2],4<>2];J[695492]=0;d=aa(3376,c|0,8)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b+2460>>2]=d;tc(d,J[a+2460>>2],c<<3);J[695492]=0;a=aa(3376,f|0,8)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[b+ -2468>>2]=a;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function ZS(a,b){var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[a+12>>2];if(!(d&131072)){e=J[a+596>>2];if(e){if(d&512)qc(e);J[a+596>>2]=0}b=b>>>0<4294966272?b+1023&-1024:0;J[a+600>>2]=b;a:{b:{if((b|0)<=0){J[a+12>>2]=J[a+12>>2]|512;break b}b=zc(b);J[a+596>>2]=b;J[a+12>>2]=J[a+12>>2]|512;if(!b)break b;b=1;if(J[a+600>>2])break a}b=J[a+628>>2];d=J[a>>2];J[c+4>>2]=J[a+472>>2];J[c>>2]=d;Nc(b,83360,76635,c);J[a+600>>2]=0;b=0}bc=c+16|0;return b}fa(75563,76141,597,83360); -B()}function Uob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;d=J[a+428>>2];e=d+8|0;a:{b:switch(K[b+33|0]){case 0:c=L[b+36>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=2;break a;case 2:c=L[b+38>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+40>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;c=L[b+42>>1];c=c<<8|c>>>8;H[d+12|0]=c;H[d+13|0]=c>>>8;c=6;break a;case 3:break b;default:break a}H[e|0]=K[b+34|0];c=1}return ue(a,J[b>>2],c,e)|0}function Jia(a,b){a=a|0;b=b|0;var c=0, -d=0,e=0,f=0;a:{if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(c>>>0>>0){e=bc-16|0;bc=e;c=b-c|0;if(c){d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;if(d-b>>>0>>0)ly(a,d,b+(c-d|0)|0,b,b,0);if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;JE(d+b|0,c,0);f=a;a=b+c|0;Nk(f,a);H[e+15|0]=0;H[a+d|0]=K[e+15|0]}bc=e+16|0;break a}c=a;if(K[a+11|0]>>>7|0)a=J[a>>2];Gu(c,a,b)}}function Ewa(a,b,c){a=a|0;b=b|0;c=Q(c);var d=0,e=0,f=0;d=bc-16|0;bc=d;J[d+8>>2]=0; -J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2386024;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[695492]=0;ia(5426,a|0,b|0,d|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)a:{a=J[d+8>>2];if(a)while(1){f=J[a+8>>2];e=J[J[f>>2]+52>>2];J[695492]=0;Bb(e|0,f|0,b|0,Q(c));e=J[695492];J[695492]=0;if((e|0)==1)break a;a=J[a>>2];if(a)continue;break}$c(d);bc=d+16|0;return}a=Z()|0;$c(d);ba(a|0);B()}function Av(a,b,c){var d=0;if(!J[a+12>>2]){gc[b|0](c,J[a+36>>2]);return}a:{d=_e(8);b:{if(!d)break b;J[d+4>>2]=c;J[d>>2]=b;b=_e(8); -if(!b){qc(d);return}J[b>>2]=d;c=P(J[a+4>>2],100);J[a+40>>2]=c;while(1){if((c|0)>2])continue;break}J[b+4>>2]=J[a+20>>2];J[a+20>>2]=b;J[a+24>>2]=J[a+24>>2]+1;b=J[a+28>>2];if(!b)break b;c=J[b>>2];if(!J[c+8>>2])break a;J[c+8>>2]=0;J[a+28>>2]=J[b+4>>2];J[a+32>>2]=J[a+32>>2]-1;qc(b)}return}fa(2337992,2339108,873,2363982);B()}function Jw(a){var b=0,c=0,d=0;c=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a;b=J[a+28>>2];if(!b|J[b>>2]!=(a|0)|J[b+4>>2]-16180>>>0>31)break a;c=0;J[b+52>>2]=0;J[b+44>>2]= -0;J[b+48>>2]=0;J[b+32>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;d=J[b+12>>2];if(d)J[a+48>>2]=d&1;J[b+60>>2]=0;J[b+64>>2]=0;J[b+36>>2]=0;J[b+24>>2]=32768;J[b+16>>2]=0;J[b+4>>2]=16180;J[b+8>>2]=0;J[b+7108>>2]=1;J[b+7112>>2]=-1;a=b+1332|0;J[b+112>>2]=a;J[b+84>>2]=a;J[b+80>>2]=a}return c}function BFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=J[c>>2];d=J[b+4>>2];a:{b:{if(!d){e=b+4|0;f=e;break b}while(1){f=d;e=J[d+16>>2];if((e|0)>(g|0)){e=d;d=J[d>>2];if(d)continue;break b}if((e|0)>=(g|0)){b=0;break a}d= -J[f+4>>2];if(d)continue;break}e=f+4|0}d=rc(24);J[d+16>>2]=g;c=J[c+4>>2];J[d+8>>2]=f;J[d>>2]=0;J[d+4>>2]=0;J[d+20>>2]=c;J[e>>2]=d;f=d;c=J[J[b>>2]>>2];if(c){J[b>>2]=c;f=J[e>>2]}Ic(J[b+4>>2],f);J[b+8>>2]=J[b+8>>2]+1;b=1}H[a+4|0]=b;J[a>>2]=d}function tw(a){var b=0;if(a){b=J[a>>2];if(b)gc[J[659451]](b);J[a>>2]=0;b=J[a+12>>2];if(b)gc[J[659451]](b);J[a+12>>2]=0;b=J[a+16>>2];if(b)gc[J[659451]](b);J[a+16>>2]=0;b=J[a+24>>2];if(b)gc[J[659451]](b);J[a+24>>2]=0;b=J[a+32>>2];if(b)gc[J[659451]](b);J[a+32>>2]=0; -b=J[a+4>>2];if(b)gc[J[659451]](b);J[a+4>>2]=0;b=J[a+8>>2];if(b)gc[J[659451]](b);J[a+8>>2]=0;b=J[a+28>>2];if(b)gc[J[659451]](b);J[a+28>>2]=0;b=J[a+40>>2];if(b)gc[J[659451]](b);J[a+40>>2]=0}}function so(a){a=a|0;var b=0;J[a>>2]=47852;b=J[a+1028>>2];if(b)qc(b);b=J[a+1060>>2];if(b)qc(b);b=J[a+1064>>2];if(b)qc(b);b=J[a+1068>>2];if(b)qc(b);b=J[a+1072>>2];if(b)qc(b);b=J[a+1076>>2];if(b)qc(b);b=J[a+1052>>2];if(b)qc(b);b=J[a+1112>>2];if(b)qc(b);b=J[a+1116>>2];if(b)qc(b);J[a>>2]=1032;J[695492]=0;$(13,a|0)| -0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[695492]=0;$(14,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return a|0}function sW(a){a=a|0;var b=0,c=0;J[a>>2]=2364020;a:{b=J[a+4>>2];c=J[b+12>>2];b:{c:{if(c){J[695492]=0;_(4737,c|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+4>>2];c=J[b+12>>2];if(c){qc(nW(c));b=J[a+4>>2]}J[b+12>>2]=0;break c}c=J[b+8>>2];if(!c)break b;gc[J[J[c>>2]+4>>2]](c);b=J[a+4>>2]}J[b+8>>2]=0}b=J[b+4>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)| -0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[J[a+4>>2]+4>>2]=0}return a|0}ea(0)|0;yc();B()}function kQ(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=bc-16|0;bc=f;e=bc-16|0;bc=e;a:{if(b>>>0<=2147483631){b:{if(b>>>0<11){H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127;d=a;break b}h=e+8|0;if(b>>>0>=11){g=b+16&-16;d=g-1|0;d=(d|0)==11?g:d}else d=10;es(h,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=b}JE(d,b,c);H[e+7|0]=0;H[b+d|0]=K[e+ -7|0];bc=e+16|0;break a}Id(a);B()}bc=f+16|0;return a}function Hwa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2386024;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[695492]=0;ia(5426,a|0,b|0,d|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)a:{a=J[d+8>>2];if(a)while(1){f=J[a+8>>2];e=J[J[f>>2]+40>>2];J[695492]=0;ca(e|0,f|0,b|0,c|0);e=J[695492];J[695492]=0;if((e|0)==1)break a;a=J[a>>2];if(a)continue;break}$c(d);bc=d+16|0;return}a=Z()|0;$c(d);ba(a|0); -B()}function ATa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+4>>2]=7;J[a>>2]=b;h=a,i=vd(7,4),J[h+12>>2]=i;c=J[a+4>>2];a:{if((c|0)<=0)break a;b=0;if(c>>>0>=4){g=c&-4;while(1){d=b<<2;J[d+J[a+12>>2]>>2]=0;J[J[a+12>>2]+(d|4)>>2]=0;J[J[a+12>>2]+(d|8)>>2]=0;J[J[a+12>>2]+(d|12)>>2]=0;b=b+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}c=c&3;if(!c)break a;while(1){J[J[a+12>>2]+(b<<2)>>2]=0;b=b+1|0;f=f+1|0;if((c|0)!=(f|0))continue;break}}J[a+8>>2]=0;return a|0}function uqb(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;var h=0,i=0,j=0,k=0;a:{if(f){if(!d)break a;a=c<<1;k=b<<1;b=0;while(1){h=L[e>>1];b:{if((h|0)==L[f>>1]){I[g>>1]=h;break b}h=K[e|0]|K[e+1|0]<<8;i=h>>>8|0;j=K[f|0]|K[f+1|0]<<8;h=((h<<8|i)&65535)+((P(((j<<8|j>>>8)&65535)-((i|h<<8)&65535)|0,k)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[g|0]=h;H[g+1|0]=h>>>8}f=f+2|0;e=e+2|0;g=g+2|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}tc(g,e,d<<1)}return 0}function lj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!J[a+4>>2]|!J[a+44>>2])break a; -if(!(!((b|c)<0|J[a+16>>2]<=(b|0))&J[a+20>>2]>(c|0))){d=J[a+336>>2];if((d|0)>=0)break a;d=K[J[a+56>>2]];break a}e=L[a+26>>1];if((e|0)==8){d=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0];break a}a=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0];b:switch(e-1|0){case 3:b=(b^-1)<<2&4;d=(a&15<>>b|0;break a;case 0:break b;default:break a}b=(b^-1)&7;d=(a&1<>>b|0}return d&255}function epa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{f=a?J[a+8>>2]:0;c=b+1|0;b:{if((f|0)<=(c|0))break b;c:{if(c){e=!a;d=c;d:{if(!a)break d; -d=c;if((b|0)>-2)break d;d=c+J[a+8>>2]|0}if(e|(d|0)<0|J[a+8>>2]<(d|0))break a;e=J[a+12>>2];break c}if(!a)break b;e=J[a+12>>2]}if(K[d+e|0]==47){d=b+2|0;e:{if(!d){c=0;break e}c=d;c=!a|(b|0)>-3?c:J[a+8>>2]+c|0;if(!a|(c|0)<0|J[a+8>>2]<(c|0))break a}c=K[c+e|0]==47?b+3|0:d}a=In(a,47,c);f=(a|0)>0?a:f}return f|0}lG();B()}function ZPa(a,b){a=a|0;b=b|0;var c=0,d=0;J[b>>2]=0;a:{b:{c=O[a+64>>3];if(c>0){c=c*65536;if(!(R(c)<2147483648))break b;d=~~c;break a}c=O[a+72>>3];if(!(c<0))break a;c=c*65536;if(!(R(c)<2147483648))break b; -d=~~c;break a}d=-2147483648}J[b+4>>2]=d;c:{d:{c=O[a+80>>3];if(c>0){c=c*65536;if(!(R(c)<2147483648))break d;J[b+8>>2]=~~c;return}c=O[a+88>>3];a=0;if(!(c<0))break c;c=c*65536;if(!(R(c)<2147483648))break d;J[b+8>>2]=~~c;return}a=-2147483648}J[b+8>>2]=a}function IKa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+68>>2];a:{if((b|0)>=J[a+20>>2]){b=-1;if(J[a+40>>2])break a;if(!QH(a))break a;b=J[a+68>>2]}g=J[a+60>>2];d=J[a+72>>2];c=J[g+(d<<2)>>2]-b|0;b:{if((c|0)<=7){h=J[a+20>>2];b=8;while(1){f=(b|0)>(c|0)? -c:b;e=(d&1?0:255>>>8-f|0)|e<>2];if((c|0)>=(h|0)){e=e<>2]-c|0}if((b|0)>0)continue;break}break b}e=d&1?0:255}b=J[a+36>>2]^e}return b|0}function k_(a,b,c){var d=0,e=0,f=0,g=0;d=bc-80|0;bc=d;a:{b:switch(c|0){case 0:od(J[a+40>>2],813452);break a;case 1:a=J[a+40>>2];O[d>>3]=O[b>>3];Xc(a,813676,d);break a;case 3:a=J[a+40>>2];e=O[b>>3];f=O[b+8>>3];O[d+32>>3]=O[b+16>>3];O[d+24>>3]=f;O[d+16>>3]=e;Xc(a,813945,d+16|0);break a;case 4:break b; -default:break a}a=J[a+40>>2];e=O[b>>3];f=O[b+8>>3];g=O[b+16>>3];O[d+72>>3]=O[b+24>>3];O[d- -64>>3]=g;O[d+56>>3]=f;O[d+48>>3]=e;Xc(a,814134,d+48|0)}bc=d+80|0}function jo(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=J[a+4>>2];if((d|0)>=0){a:{if(J[a>>2]==(d|0)){O[b>>3]=O[a+16>>3];O[c>>3]=O[a+24>>3];f=1;b=d-1|0;break a}if(!d){O[b>>3]=O[a+32>>3];O[c>>3]=O[a+40>>3];f=2;b=-1;break a}g=O[a+64>>3];h=g+O[a+48>>3];O[a+48>>3]=h;e=O[a+72>>3];i=O[a+88>>3];O[a+72>>3]=e+i;O[a+56>>3]=e+O[a+56>>3];e=O[a+80>>3];O[a+80>>3]= -e+O[a+96>>3];O[a+64>>3]=g+e;O[a+88>>3]=i+O[a+104>>3];O[b>>3]=h;O[c>>3]=O[a+56>>3];f=2;b=d-1|0}J[a+4>>2]=b}return f}function iK(a){var b=0,c=0,d=0,e=0,f=0;if(!a)return-102;f=-100;a:{if(!(J[a+96>>2]|J[a+100>>2]))break a;c=J[a+56>>2];b=J[a+60>>2];d=J[a+84>>2];e=J[a+80>>2]+1|0;d=e?d:d+1|0;if((c|0)==(e|0)&(b|0)==(d|0)&((c|0)!=65535|(b|0)!=0))break a;J[a+80>>2]=e;J[a+84>>2]=d;c=J[a+92>>2];b=(J[a+176>>2]+(J[a+168>>2]+J[a+172>>2]|0)|0)+46|0;e=b;b=b+J[a+88>>2]|0;c=e>>>0>b>>>0?c+1|0:c;J[a+88>>2]=b;J[a+92>> -2]=c;f=jK(a,a+128|0,a+216|0,0,0);J[a+96>>2]=!f;J[a+100>>2]=0}return f}function Sxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc+-64|0;bc=c;if(J[a+12>>2]>0){d=J[a+16>>2];while(1){J[c+52>>2]=K[d|0];J[c+48>>2]=e;cd(b,209977,c+48|0);f=J[d+4>>2];J[c+44>>2]=J[d+8>>2];J[c+40>>2]=e;J[c+36>>2]=f;J[c+32>>2]=e;cd(b,210017,c+32|0);f=K[d+1|0];J[c+28>>2]=K[d+2|0];J[c+24>>2]=e;J[c+20>>2]=f;J[c+16>>2]=e;cd(b,210069,c+16|0);J[c+4>>2]=J[d+12>>2];J[c>>2]=e;cd(b,210150,c);d=d+16|0;e=e+1|0;if((e|0)>2])continue;break}}bc= -c- -64|0;return 0}function Pj(a){a=a|0;var b=0,c=0,d=0;b=bc-16|0;bc=b;if(!K[a+32|0])_o(a,0);c=b+8|0;sj(c,a,0);J[695492]=0;da(6061,b|0,c|0);d=J[695492];J[695492]=0;if((d|0)==1){a=Z()|0;sc(c);ba(a|0);B()}sc(b+8|0);J[695492]=0;d=fd(b,14194,-1);c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;c=0;if(!d){a=J[a+8>>2];if(J[a+8>>2]<=4){J[695492]=0;ka(5119);a=J[695492];J[695492]=0;if((a|0)==1)break a;B()}c=K[J[a+12>>2]+5|0]==47}sc(b);bc=b+16|0;return c|0}a=Z()|0;sc(b);ba(a|0);B()}function Hj(a,b){a=a|0;b=b| -0;var c=0;if(b){c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;c=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=c;c=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=c;c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c;tc(a+52|0,b+52|0,908);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+960>>2]=J[b+960>>2];J[a+964>>2]=J[b+964>>2];J[a+968>>2]=J[b+968>>2];c=J[b+972>>2];J[a+60>>2]=b;J[a+972>>2]=c}}function Dza(a){a=a|0;var b=0,c=0,d=0;b=rc(60);J[b+8>>2]=0;J[b+12>>2]= -0;J[b>>2]=2402E3;J[b+4>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[695492]=0;d=aa(5080,b+8|0,2402032)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[695492]=0;c=b+36|0;J[c+20>>2]=-1;J[c+12>>2]=-1;J[c+16>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2389396;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;Bd(d);break a}J[a>>2]=0;md(a,b);return}a=Z()|0}qc(ed(b));ba(a|0);B()}function sm(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(!J[a+4>>2]|(b|c)<0|(!J[a+44>>2]|J[a+16>>2]<=(b| -0)))break a;if(J[a+20>>2]<=(c|0))break a;e=L[a+26>>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=d;return}a=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0;b:switch(e-1|0){case 3:c=a;e=K[a|0];a=(b^-1)<<2&4;H[c|0]=e&(15<>2]=2420232;c=J[a+12>>2];if(c){b=J[c+24>>2];if(b)while(1){d=J[b>>2];qc(b);J[c+24>>2]=d;b=d;if(b)continue;break}b=J[c>>2]; -if(b)qc(b);qc(c)}c=J[a+16>>2];if(c){b=J[c+24>>2];if(b)while(1){d=J[b>>2];qc(b);J[c+24>>2]=d;b=d;if(b)continue;break}b=J[c>>2];if(b)qc(b);qc(c)}c=J[a+20>>2];if(c){b=J[c+24>>2];if(b)while(1){d=J[b>>2];qc(b);J[c+24>>2]=d;b=d;if(b)continue;break}b=J[c>>2];if(b)qc(b);qc(c)}return ed(a)|0}function cn(a){var b=0,c=0;if(a){c=J[a+20>>2];if(c){b=J[c+12>>2];a:{b:{c:{if((b|0)==3){b=J[c+16>>2];if(!b)break c;break b}if((b|0)==2)break a}b=J[c>>2];if(!b)break a}gc[J[659451]](b)}gc[J[659451]](c);J[a+20>>2]=0}b=J[a+ -8>>2];if(b)gc[b|0](J[a>>2])|0;c=J[a+16>>2];if(c){b=J[c+12>>2];d:{e:{f:{if((b|0)==3){b=J[c+16>>2];if(!b)break f;break e}if((b|0)==2)break d}b=J[c>>2];if(!b)break d}gc[J[659451]](b)}gc[J[659451]](c);J[a+16>>2]=0}gc[J[659451]](a)}}function Wxa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;c=J[c>>2];e=J[c+12>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+12>>2];break a}Iq(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[695492]=0;ca(5351,a|0,b|0,c+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;if(J[a>> -2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;$c(d);ba(a|0);B()}$c(d)}bc=d+16|0}function Vxa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;c=J[c>>2];e=J[c+16>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+16>>2];break a}Iq(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[695492]=0;ca(5352,a|0,b|0,c+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>> -2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;$c(d);ba(a|0);B()}$c(d)}bc=d+16|0}function VMa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;J[a+4>>2]=31;J[a+8>>2]=0;c=vd(31,8);J[a>>2]=c;e=J[a+4>>2];a:{if((e|0)<=0)break a;if(e>>>0>=8){h=e&-8;while(1){b=d<<3;J[b+c>>2]=0;J[(b|8)+c>>2]=0;J[(b|16)+c>>2]=0;J[(b|24)+c>>2]=0;J[(b|32)+c>>2]=0;J[(b|40)+c>>2]=0;J[(b|48)+c>>2]=0;J[(b|56)+c>>2]=0;d=d+8|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}b=e&7;if(!b)break a;while(1){J[(d<< -3)+c>>2]=0;d=d+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}return a|0}function Uxa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;c=J[c>>2];e=J[c+28>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+28>>2];break a}Iq(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[695492]=0;ca(5354,a|0,b|0,c+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;$c(d);ba(a|0); -B()}$c(d)}bc=d+16|0}function Txa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;c=J[c>>2];e=J[c+32>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+32>>2];break a}Iq(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[695492]=0;ca(5355,a|0,b|0,c+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;$c(d);ba(a|0);B()}$c(d)}bc=d+16|0}function Ah(a,b,c,d){a=a|0;b=b| -0;c=c|0;d=d|0;var e=0,f=0;a:{if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;if(!e|(c-b|0)<5)break a;Iu(b,c);f=c-4|0;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;if(K[a+11|0]>>>7|0)a=J[a>>2];c=a;a=e+a|0;b:{while(1){c:{e=H[c|0];if(b>>>0>=f>>>0)break c;if(!((e|0)<=0|(e|0)>=127)&(e|0)!=J[b>>2])break b;b=b+4|0;c=((a-c|0)>1)+c|0;continue}break}if((e|0)<=0|(e|0)>=127|H[c|0]>>>0>J[f>>2]-1>>>0)break a}J[d>>2]=4}}function zya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;J[d+12>>2]=0;md(d+ -12|0,a);J[695492]=0;b=ga(5165,J[d+12>>2],b|0,c|0)|0;a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(c)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+16|0;return b|0}a=Z()|0;vc(d+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function uU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;c=J[c>>2];e=J[c+20>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+20>> -2];break a}Iq(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[695492]=0;ca(5353,a|0,b|0,c+8|0);e=J[695492];J[695492]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[695492]=0;aa(4985,a|0,0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break b}a=Z()|0;$c(d);ba(a|0);B()}$c(d)}bc=d+16|0}function tra(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a=J[a+12>>2];if(a){c=J[a+20>>2];if((c|0)<=0)b=0;else{g=J[a>>2];while(1){h=(d<<4)+g|0;a=0;while(1){e=b;f=(a>>>2&1073741820)+h|0; -b=J[f>>2];if(b)b=J[((a&14)<<2)+b>>2];else b=i;e=e+((b|0)!=0)|0;b=J[f>>2];if(b)b=J[(b+((a&14)<<2)|0)+4>>2];else b=0;b=e+((b|0)!=0)|0;a=a+2|0;if((a|0)!=64)continue;break}d=d+1|0;if((c|0)!=(d|0))continue;break}b=P(b,100)}a=c<<6}else a=0;return(b|0)/((a>>>0<=1?1:a)|0)|0}function qv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=Tk(b);c=J[J[a+12>>2]+((d>>>0)%M[a+8>>2]<<2)>>2];a:{if(c)while(1){if((d|0)==J[c+12>>2])if(Pl(c+16|0,b))break a;c=J[c+8>>2];if(c)continue;break}c=rc(56);J[c>>2]=0;J[c+4>>2]=0;J[c+48>>2]= -0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;d=c+16|0;J[d>>2]=0;J[d+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=Qj(d,b);J[c+52>>2]=0;e=c,f=Tk(b),J[e+12>>2]=f;Rl(a,c)}return c|0}function qW(a,b){var c=0,d=0,e=0;a:{if(K[a+9|0]!=16)break a;c=P(J[a>>2],K[a+10|0]);if(!c)break a;if(c>>>0>=4){e=c&-4;a=0;while(1){d=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=d;d=K[b+2|0];H[b+2|0]=K[b+3|0];H[b+3|0]=d;d=K[b+4|0];H[b+4|0]=K[b+5|0];H[b+5|0]=d;d=K[b+6|0];H[b+6|0]=K[b+7|0];H[b+7|0]=d; -b=b+8|0;a=a+4|0;if((e|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){e=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=e;b=b+2|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}}function _va(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[b>>2];J[a+4>>2]=0;J[a>>2]=c;d=J[b+8>>2];J[a+8>>2]=d;f=J[b+12>>2];J[a+12>>2]=f;e=J[b+16>>2];J[a+16>>2]=e;g=J[b+20>>2];J[a+20>>2]=g;if((d|0)<=(f|0)){h=rc(P(J[c>>2],(f-d|0)+1|0));J[a+4>>2]=h;g=J[a+20>>2];e=J[a+16>>2]}if((e|0)<=(g|0)){c=J[a>>2];d=J[c+12>>2];gc[d|0](gc[J[c+4>>2]](h, -e-J[a+8>>2]|0)|0,gc[J[J[a>>2]+4>>2]](J[b+4>>2],J[a+16>>2]-J[a+8>>2]|0)|0,(J[a+20>>2]-J[a+16>>2]|0)+1|0,0)}return a|0}function Bjb(a,b){a=a|0;b=b|0;var c=0;if(J[b+72>>2]==1651078259){c=J[a>>2];J[a+20>>2]=J[b+100>>2];J[a+24>>2]=J[b+104>>2];a=a+28|0;if(H[J[b+156>>2]+4|0]&1){c=J[b+80>>2];J[a>>2]=J[b+76>>2];J[a+4>>2]=c;c=J[b+96>>2];J[a+16>>2]=J[b+92>>2];J[a+20>>2]=c;c=J[b+88>>2];J[a+8>>2]=J[b+84>>2];J[a+12>>2]=c;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2;return 0}if(a){J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+ -20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}a=J5(c,b+76|0,a)}else a=18;return a|0}function xW(a){var b=0,c=0,d=0;a:{if(!a)break a;b=J[a+8>>2];if(!b)break a;a=J[a+12>>2];if(b>>>0>=4){d=b&-4;while(1){J[a+12>>2]=0;J[a+4>>2]=999;J[a+8>>2]=0;J[a+60>>2]=0;J[a+52>>2]=999;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=999;J[a+40>>2]=0;J[a+28>>2]=0;J[a+20>>2]=999;J[a+24>>2]=0;a=a- -64|0;c=c+4|0;if((d|0)!=(c|0))continue;break}}b=b&3;if(!b)break a;c=0;while(1){J[a+12>>2]=0;J[a+4>>2]=999;J[a+8>>2]=0;a=a+16|0;c=c+1|0;if((b|0)!=(c| -0))continue;break}}}function t1(a,b){var c=0,d=0;c=bc-512|0;bc=c;J[c+24>>2]=J[183725];d=J[183724];J[c+16>>2]=J[183723];J[c+20>>2]=d;d=J[183722];J[c+8>>2]=J[183721];J[c+12>>2]=d;d=J[183720];J[c>>2]=J[183719];J[c+4>>2]=d;a:{if(J[b>>2]>0)break a;H[c+8|0]=1;a=ag(a,c+28|0,c,b);u1(c+252|0,a,c,b);if(!a|!K[a+17|0])break a;b=J[a+4>>2];b:{if(b){b=b-1|0;J[a+4>>2]=b;if(b)break b}if(K[a+16|0])break b;b=J[J[a+20>>2]+8>>2];if(b)gc[b|0](a);b=J[a+8>>2];if(b)Ih(b);Gf(a)}}bc=c+512|0}function PB(a){a=a|0;var b=0,c=0, -d=0;J[a+8>>2]=768272;J[a>>2]=768248;a:{if(!J[a+40>>2])break a;c=J[a+36>>2];d=J[c>>2];b=J[J[a+32>>2]+4>>2];J[d+4>>2]=b;J[b>>2]=d;J[a+40>>2]=0;d=a+32|0;if((d|0)==(c|0))break a;while(1){b=J[c+4>>2];qc(c);c=b;if((d|0)!=(b|0))continue;break}}J[a+8>>2]=768116;b=J[a+12>>2];J[695492]=0;_(3076,b|0);b=J[695492];J[695492]=0;if((b|0)!=1){J[a+12>>2]=0;b=J[a+16>>2];if(b)qc(b);J[a+16>>2]=0;J[a+20>>2]=0;return a|0}ea(0)|0;yc();B()}function mma(a){a=a|0;var b=0,c=0,d=0;a=J[a+12>>2];a:{if(J[a+2232>>2]==512){d=a+2056| -0;b=bc-16|0;bc=b;J[b+12>>2]=0;a=b+4|0;J[b+8>>2]=a;J[b>>2]=3;J[695492]=0;J[b+4>>2]=a;a=$(4,24)|0;c=J[695492];J[695492]=0;b:{if((c|0)!=1){J[a+8>>2]=3;J[a+4>>2]=d;J[a+20>>2]=0;c=a+12|0;J[a+16>>2]=c;J[a+12>>2]=c;c=J[d>>2];J[a>>2]=c;J[c+4>>2]=a;J[d>>2]=a;J[d+8>>2]=J[d+8>>2]+1;bc=b+16|0;break b}a=Z()|0;lz(b);ba(a|0);B()}break a}a=a+2312|0;gc[J[J[a>>2]+12>>2]](a)|0}return 0}function gv(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-32|0;bc=b;if(K[a+18|0]<=24){e=a+17|0;while(1){a:{c=J[a+12>>2];if(gc[J[J[c>>2]+8>>2]](c, -e,1)|0){c=K[e|0];break a}c=255;H[a+17|0]=255;d=K[a+19|0]-1|0;H[a+19|0]=d;if(d&255)break a;a=Kc(b+8|0,J[682138],2383062,768,2426544,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0)}B()}d=K[a+18|0]+8|0;H[a+18|0]=d;J[a+36>>2]=J[a+36>>2]<<8|c;if((d&255)>>>0<25)continue;break}}bc=b+32|0}function sG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;J[a+4>>2]=0;d=J[a+24>>2];J[a+24>>2]=0;c=a+16|0;oe(c,0,4);J[a+8>>2]=b;oe(c,b,4);ci(c,4,0);if(d){g=J[a+8>>2];e=J[a+4>>2];while(1){b= -d;f=J[a+12>>2]+(M[b+12>>2]%(g>>>0)<<2)|0;c=J[f>>2];J[b+8>>2]=c;J[b+4>>2]=c;d=J[b>>2];a:{b:{if(c){J[b>>2]=J[c>>2];J[c>>2]=b;c=J[b>>2];if(c)break b;break a}c=J[a+24>>2];J[b>>2]=c;J[a+24>>2]=b;if(!c)break a}J[c+4>>2]=b}J[f>>2]=b;e=e+1|0;if(d)continue;break}J[a+4>>2]=e}}function p7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);h=K[a+2|0];g=P(h,e);h= -b+h|0;b=P(b,f);H[a+2|0]=h-(((b>>>0>>0?b:g)<<1)+255>>>8|0);g=K[a+1|0];b=P(g,e);g=c+g|0;c=P(c,f);H[a+1|0]=g-(((b>>>0>c>>>0?c:b)<<1)+255>>>8|0);c=K[a|0];b=P(c,e);e=a;a=P(d,f);H[e|0]=c+d-(((a>>>0>>0?a:b)<<1)+255>>>8)}}function Zlb(a){a=a|0;var b=0,c=0;a:{if(a){b=J[a>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a>>2]=0}b=J[a+12>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+12>>2]=0}b=J[a+8>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}b=J[a+4>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]= -0;if((b|0)==1)break a;J[a+4>>2]=0}b=J[a+16>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}a=J[689330];if(!(!a|!a))gc[J[J[a>>2]+12>>2]](a)|0;J[689330]=0;return}ea(0)|0;yc();B()}function Zca(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;J[d+12>>2]=b;a:{b:{c=K[a+11|0];e=c>>>7|0;c:{if(!e){c=c&127;b=1;break c}c=J[a+4>>2];b=(J[a+8>>2]&2147483647)-1|0}if((b|0)==(c|0)){iy(a,b,1,b,b,0);d:if(K[a+11|0]>>>7|0)break d;break b}e:if(K[a+11|0]>>>7|0)break e;if(e)break b;b=a;H[a+11|0]=c+1|K[a+11|0]&128;H[a+11|0]=K[a+11| -0]&127;break a}b=J[a>>2];J[a+4>>2]=c+1}a=(c<<2)+b|0;J[a>>2]=J[d+12>>2];J[d+8>>2]=0;J[a+4>>2]=J[d+8>>2];bc=d+16|0}function Gub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){c=J[J[a+544>>2]+88>>2];d=J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0;c=J[a+644>>2];while(1){b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;e=b<<8|b>>>8;H[c|0]=e;H[c+1|0]=e>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=K[d+2|0]|K[d+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;c=c+8| -0;d=d+4|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function pub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){h=K[d|0];e=6;d=d+1|0;b=192}f=(b&h)>>>e|0;H[c|0]=f>>>0<4?P(f,85):0;e=e-2|0;c=c+2|0;b=(b&252)>>>2|0;g=g+1|0;if((g|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b| -0}function kub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){h=K[d|0];e=6;d=d+1|0;b=192}f=(b&h)>>>e|0;H[c|0]=f>>>0<4?P(f,85):0;e=e-2|0;c=c+4|0;b=(b&252)>>>2|0;g=g+1|0;if((g|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function bR(a,b,c,d,e){var f=0,g=0,h=0;h=-1;g=d&2147483647; -f=(g|0)==2147418112;a:{if(f&!c?a|b:f&(c|0)!=0|g>>>0>2147418112)break a;f=e&2147483647;if(((f|0)==2147418112&0|f>>>0>2147418112)&(f|0)!=2147418112)break a;if(!(a|c|(f|g|b)))return 0;f=d&e;if((f|0)>0)f=1;else f=(f|0)>=0;if(f){if(((c|0)!=0|(d|0)!=(e|0))&(d|0)<(e|0))break a;return(a|c|(d^e|b))!=0}if(!c&(d|0)==(e|0)?a|b:(c|0)!=0&(d|0)>=(e|0)|(d|0)>(e|0))break a;h=(a|c|(d^e|b))!=0}return h}function Sxa(a,b){a=a|0;b=b|0;var c=0;On(a);c=J[a>>2];a:{b=J[b+8>>2];if(b){J[695492]=0;da(5356,b|0,c|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break a}b=J[J[c>>2]+20>>2];J[695492]=0;ha(b|0,c|0,0,0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[J[c>>2]+28>>2];J[695492]=0;b=$(b|0,c|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(!b){J[695492]=0;aa(4985,a|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}return}b=Z()|0;vc(a);ba(b|0);B()}function axa(a){a=a|0;var b=0,c=0;J[a>>2]=2406148;J[a+4>>2]=0;J[695492]=0;c=a+8|0;J[c+20>>2]=-1;J[c+12>>2]=-1;J[c+16>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2406224;b=J[695492]; -J[695492]=0;a:{b:{if((b|0)!=1){J[a+32>>2]=0;J[a+36>>2]=0;J[695492]=0;b=a+40|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2401048;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+64>>2]=0;return a|0}b=Z()|0;break a}b=Z()|0;xd(c)}ed(a);ba(b|0);B()}function Zoa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(!a|(b|0)>(c|0))break a;d=c-b|0;e=d+1&3;if(e)while(1){f=(b<<3)+a|0;J[f>>2]=0;J[f+4>>2]=J[682146];b=b+1|0;g=g+1|0;if((e|0)!=(g|0))continue;break}if(d>>>0<3)break a; -while(1){d=(b<<3)+a|0;J[d>>2]=0;e=J[682146];J[d+8>>2]=0;J[d+4>>2]=e;e=J[682146];J[d+16>>2]=0;J[d+12>>2]=e;J[d+20>>2]=J[682146];d=b+3|0;e=(d<<3)+a|0;J[e>>2]=0;J[e+4>>2]=J[682146];b=b+4|0;if((c|0)!=(d|0))continue;break}}}function $Ba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{c=K[a+11|0]+7>>>3|0;e=J[a+4>>2];if(c>>>0>=e>>>0)break a;d=0-c|0;a=b+c|0;b=(c^-1)+e|0;f=e-c&3;if(f)while(1){H[a|0]=K[a+d|0]+K[a|0];c=c+1|0;a=a+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}if(b>>>0<3)break a;while(1){H[a|0]=K[a+ -d|0]+K[a|0];H[a+1|0]=K[(a+1|0)+d|0]+K[a+1|0];H[a+2|0]=K[(a+2|0)+d|0]+K[a+2|0];H[a+3|0]=K[(a+3|0)+d|0]+K[a+3|0];a=a+4|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}}function wg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;gc[J[J[a>>2]+8>>2]](a,10);a:{if(!b){b=J[a+12>>2];J[a+12>>2]=b+4;J[b>>2]=48;d=1;break a}if((b|0)<0){c=J[a+12>>2];J[a+12>>2]=c+4;J[c>>2]=45;J[a+16>>2]=J[a+16>>2]+1;b=0-b|0}c=b;while(1){d=d+1|0;e=c>>>0<10;c=(c>>>0)/10|0;if(!e)continue;break}f=J[a+12>>2];c=1;while(1){e=(b>>>0)/10|0;J[(d-c<<2)+ -f>>2]=b-P(e,10)|48;c=c+1|0;g=b>>>0>9;b=e;if(g)continue;break}J[a+12>>2]=(d<<2)+f}J[a+16>>2]=J[a+16>>2]+d}function oza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=bc-16|0;bc=c;MU(c+12|0,b,d,0);b=J[c+12>>2];J[a>>2]=0;J[695492]=0;aa(4985,a|0,b|0)|0;a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[c+12>>2];J[c+12>>2]=0;b:{if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=c+16|0;return}a= -Z()|0;vc(c+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function oN(a,b,c){var d=0,e=0,f=0;a:{d=J[a+116>>2];b:{if(d&15){c=c-4|0;e=K[b|0]&32;f=!e;c:{if(!(f?d&61440:0)&(f|!(d&3840)))break c;if((LD(a,-1,b,c)^-1)==(Hr(b+c|0)|0))break c;d=J[a+116>>2];d:{if(!e){d=d&61440;if((d|0)==8192)break d;if((d|0)!=12288)break c;break a}d=d&3840;if((d|0)==256)return 0;if((d|0)==768)break a;if((d|0)!=512)break c}d=1027;if(!Dc(a,1027,0,0))break b}return pN(a,b,c)}d=pN(a,b,c)}return d}Dc(a,1027,0,0);return 1027}function xBa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;a:{e=J[b+48>>2];f=J[b+44>>2];b:{if(((e-f|0)+1|0)>(c|0)){if(!((c|0)<=(e|0)&(c|0)>=(f|0))){a=Kc(d+8|0,2388219,2388431,632,2388653,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}c=J[b+32>>2]+(c-J[b+36>>2]<<2)|0;b=J[c>>2];if(!b){J[a>>2]=0;break b}J[b+4>>2]=J[b+4>>2]+1;J[a>>2]=J[c>>2];break b}J[a>>2]=0;md(a,0)}bc=d+32|0;return}B()}function eg(a,b,c){var d=0,e=0,f=0;e=bc-16|0;bc=e;J[b+4>>2]=J[b+4>>2]+ -1;d=bc-16|0;bc=d;J[d+12>>2]=b;b=e+12|0;J[b>>2]=J[d+12>>2];bc=d+16|0;a:{a=a+8|0;if(J[a+4>>2]-J[a>>2]>>2>>>0<=c>>>0){J[695492]=0;da(6750,a|0,c+1|0);d=J[695492];J[695492]=0;if((d|0)==1)break a}d=J[J[a>>2]+(c<<2)>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if((f|0)==-1)gc[J[J[d>>2]+8>>2]](d)}d=J[b>>2];J[b>>2]=0;J[J[a>>2]+(c<<2)>>2]=d;MP(b);bc=e+16|0;return}a=Z()|0;MP(b);ba(a|0);B()}function _J(){var a=0,b=0,c=0;c=bc-32|0;bc=c;a=gc[J[659447]](36)|0;a:{if(!a){J[c>>2]=5439;Cc(0,0,0,0,0,29,2,3,5439,0,0,0,32863, -c);break a}J[a+20>>2]=0;J[a+4>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;b=J[659448];J[a+8>>2]=b;J[a+24>>2]=b;J[a+12>>2]=J[659449];b=gc[J[659450]](b)|0;J[a>>2]=b;if(!b){J[c+16>>2]=5439;b=0;Cc(0,0,0,0,0,29,2,3,5439,0,0,0,32863,c+16|0);if(!J[a+32>>2])J[a+32>>2]=2;gc[J[659451]](a);break a}H[b|0]=0;J[a+16>>2]=0;b=a}bc=c+32|0;return b}function XD(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=J[b+88>>2];if(L[b+28>>1]){c=J[b+8>>2];d=J[b+12>>2];a:{if(d){J[d+8>>2]=c;break a}J[a+688>>2]=c}J[(c?c+12|0:a+692|0)>>2]=d}c=J[e+28>>2]; -b:{if(c){c=c-1|0;J[e+28>>2]=c;if(c)break b}c=J[e+1144>>2];c:{if(!c)break c;d=J[e+1148>>2];if(!d)break c;gc[J[a+156>>2]](d,c)}c=J[e+1172>>2];d:{if(!c)break d;d=J[e+1176>>2];if(!d)break d;gc[J[a+156>>2]](d,c)}gc[J[a+156>>2]](e,1180)}gc[J[a+156>>2]](b,92);return 0}function PO(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a>>>0<2784608&a>>>0>=2784096){c=a;b=a-4|0;e=J[696023];d=e;a:{while(1){a=d;if(!(!a|(a|0)==2784608)){d=L[a+2>>1];if((a+(d<<2)|0)==(b|0)){I[a+2>>1]=d+L[c-2>>1];break a}if((a|0)==((L[b+2>>1]<<2)+ -b|0)){c=c-2|0;I[c>>1]=L[a+2>>1]+L[c>>1];if(!f){J[696023]=b;I[b>>1]=L[a>>1];break a}I[f>>1]=b-2784096>>>2;break a}else{d=(L[a>>1]<<2)+2784096|0;f=a;continue}}break}I[b>>1]=e-2784096>>>2;J[696023]=b}return}qc(a)}function Jwa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[695492]=0;ia(5426,a|0,b|0,c|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)a:{a=J[c+8>>2];if(a)while(1){e=J[a+8>>2];d=J[J[e>>2]+32>>2]; -J[695492]=0;da(d|0,e|0,b|0);d=J[695492];J[695492]=0;if((d|0)==1)break a;a=J[a>>2];if(a)continue;break}$c(c);bc=c+16|0;return}a=Z()|0;$c(c);ba(a|0);B()}function Iwa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[695492]=0;ia(5426,a|0,b|0,c|0,0);a=J[695492];J[695492]=0;if((a|0)!=1)a:{a=J[c+8>>2];if(a)while(1){e=J[a+8>>2];d=J[J[e>>2]+36>>2];J[695492]=0;da(d|0,e|0,b|0);d=J[695492];J[695492]=0;if((d| -0)==1)break a;a=J[a>>2];if(a)continue;break}$c(c);bc=c+16|0;return}a=Z()|0;$c(c);ba(a|0);B()}function $Ra(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+28>>2];J[b+504>>2]=0;J[b+508>>2]=1072693248;J[b+600>>2]=0;J[b+604>>2]=0;J[b+512>>2]=0;J[b+516>>2]=0;J[b+520>>2]=0;J[b+524>>2]=0;J[b+536>>2]=0;J[b+540>>2]=0;J[b+528>>2]=0;J[b+532>>2]=1072693248;J[b+544>>2]=0;J[b+548>>2]=0;J[b+608>>2]=0;J[b+612>>2]=0;J[b+616>>2]=0;J[b+620>>2]=0;J[b+624>>2]=0;J[b+628>>2]=0;c=J[a+8>>2];gc[J[J[c>>2]+160>>2]](c,b);b=J[a+8>>2];gc[J[J[b>> -2]+184>>2]](b,J[a+28>>2]);J[a+32>>2]=1}function we(a,b){var c=0,d=0,e=0;d=J[a+4>>2];a:{b:{if(!d){J[a+8>>2]=1E3;c=zc(1E3);J[a+16>>2]=0;J[a+4>>2]=c;break b}c=J[a+8>>2];e=J[a+16>>2]+1|0;if(c>>>0>=e>>>0){c=J[a+12>>2];break a}while(1){c=c<<1;if(e>>>0>c>>>0)continue;break}J[a+8>>2]=c;c=Vd(d,c);if(c){J[a+4>>2]=c;c=c+J[a+16>>2]|0;break b}c=zc(J[a+8>>2]);d=J[a+4>>2];c=tc(c,d,J[a+16>>2]);qc(d);J[a+4>>2]=c;c=c+J[a+16>>2]|0}J[a+12>>2]=c}H[c|0]=b;J[a+12>>2]=J[a+12>>2]+1;J[a+16>>2]=J[a+16>>2]+1}function jBa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;a:{e=J[b+56>>2];f=J[b+52>>2];b:{if(((e-f|0)+1|0)>(c|0)){if(!((c|0)<=(e|0)&(c|0)>=(f|0))){a=Kc(d+8|0,2374909,2375924,619,2388908,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}c=J[b+40>>2]+(c-J[b+44>>2]<<2)|0;b=J[c>>2];if(!b){J[a>>2]=0;break b}J[b+4>>2]=J[b+4>>2]+1;J[a>>2]=J[c>>2];break b}J[a>>2]=0;md(a,0)}bc=d+32|0;return}B()}function _N(){var a=0,b=0,c=0,d=0;a=zc(12);if(a){J[a+8>>2]=0;J[a>>2]= -0;J[a+4>>2]=0;b=zc(256);if(b){J[a+4>>2]=32;J[a+8>>2]=b;return a}c=J[a+8>>2];if(c){b=J[a>>2];if((b|0)>0){while(1){c=J[J[a+8>>2]+4>>2];d=J[c>>2];J[c>>2]=d-1;if((d|0)<=1){b=J[J[c+8>>2]>>2];if(b)gc[b|0](c);qc(c);b=J[a>>2]}b=b-1|0;a:{if((b|0)<=0){J[a>>2]=b;break a}c=J[a+8>>2];Zc(c,c+8|0,b<<3);c=J[a>>2];b=c-1|0;J[a>>2]=b;if((c|0)>1)continue}break}c=J[a+8>>2]}qc(c)}qc(a)}return 0}function V3(a){var b=0,c=0,d=0;a:{if(J[a+76>>2]|J[a+304>>2]|(J[a+40>>2]!=3|J[a+36>>2]!=3))break a;if(J[a+44>>2]!=2|J[a+120>>2]!= -3)break a;b=J[a+216>>2];if(J[b+8>>2]!=2|J[b+96>>2]!=1|(J[b+184>>2]!=1|J[b+12>>2]>2))break a;if(J[b+100>>2]!=1|J[b+188>>2]!=1)break a;c=J[b+36>>2];if((c|0)!=J[a+320>>2]|(c|0)!=J[b+124>>2]|(c|0)!=J[b+212>>2])break a;c=J[a+324>>2];a=J[b+40>>2];if((c|0)!=(a|0)|(a|0)!=J[b+128>>2])break a;d=(a|0)==J[b+216>>2]}return d}function Fob(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=K[b+36|0];c=J[b+ -40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+13|0]=c;H[d+14|0]=c>>>8;H[d+15|0]=c>>>16;H[d+16|0]=c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+17|0]=c;H[d+18|0]=c>>>8;H[d+19|0]=c>>>16;H[d+20|0]=c>>>24;return ue(a,J[b>>2],13,d+8|0)|0}function s_(a,b){var c=0,d=0,e=0;c=K[b|0];if(c){d=b;while(1){e=P(e,17)+(c&255)|0;c=K[d+1|0];d=d+1|0;if(c)continue;break}}d=(e>>>0)%M[a+4>>2]|0;c=J[J[a+12>>2]+(d<<2)>>2];a:{if(!c)break a;while(1){if(sd(J[c>>2],b)){c=J[c+8>>2];if(c)continue;break a}break}d= -J[a+12>>2]+(d<<2)|0;while(1){b=d;e=J[b>>2];d=e+8|0;if((c|0)!=(e|0))continue;break}J[b>>2]=J[c+8>>2];b:{if(!J[a>>2])break b;b=J[c>>2];if(!b)break b;qc(Rc(b))}qc(c);J[a+8>>2]=J[a+8>>2]-1}}function lkb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+712>>2];a:{if(K[e+24|0]==2){f=11;e=Dk(gh(J[J[a+96>>2]+4>>2],239693),240684,0);if(!e)break a;e=J[e>>2];if(!e)break a;return gc[e|0](a,b,c,d)|0}a=J[e+3084>>2];if(!a)return 11;b=L[J[e+1188>>2]+(b<<1)>>1];if((b|0)==65535)break a;b:{if(b>>>0>=391){a=b-391| -0;if(a>>>0>=M[e+1356>>2])break a;a=J[J[e+1360>>2]+(a<<2)>>2];break b}a=gc[J[a+20>>2]](b)|0}if(!a)break a;VL(c,a,d)}return f|0}function vga(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;g=bc-16|0;bc=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[695492]=0;h=$(6537,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)gc[J[J[b>>2]+8>>2]](b);gQ(a,f+24|0,g+12|0,c,e,h);bc=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>> -2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function uga(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;g=bc-16|0;bc=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[695492]=0;h=$(6537,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)gc[J[J[b>>2]+8>>2]](b);fQ(a,f+16|0,g+12|0,c,e,h);bc=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c| -0);B()}function gB(a){var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;c=b+4|0;d=K[a+11|0];e=d<<24>>24<0;lm(c,e?J[a>>2]:a,e?J[a+4>>2]:d,0);J[695492]=0;a=$(4,8)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){J[695492]=0;e=c;c=K[b+15|0];d=c<<24>>24<0;c=ga(3181,a|0,(d?J[b+4>>2]:e)|0,(d?J[b+8>>2]:c)|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;if(H[b+15|0]<0)qc(J[b+4>>2]);bc=b+16|0;return c}c=Z()|0;break a}c=Z()|0;qc(a)}if(H[b+15|0]<0)qc(J[b+4>>2]);ba(c|0);B()}function fDa(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=1;J[a+ -4>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a>>2]=2383696;J[a+20>>2]=0;J[a+24>>2]=0;c=J[b>>2];J[a+28>>2]=c;a:{b:{c:{if(c){J[695492]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[695492];J[695492]=0;if((c|0)==1)break c;b=J[b>>2]}else b=0;J[a+32>>2]=b;J[695492]=0;ha(5043,a+40|0,a+36|0,0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;wc(a+48|0,0,304);return a|0}b=Z()|0;break a}b=Z()|0;vc(a+32|0)}ed(a);ba(b|0);B()}function cda(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;H[d+15|0]=b;a:{b:{c=K[a+11|0];e=c>>>7|0;c:{if(!e){c= -c&127;b=10;break c}c=J[a+4>>2];b=(J[a+8>>2]&2147483647)-1|0}if((b|0)==(c|0)){ly(a,b,1,b,b,0);d:if(K[a+11|0]>>>7|0)break d;break b}e:if(K[a+11|0]>>>7|0)break e;if(e)break b;b=a;H[a+11|0]=c+1|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;break a}b=J[a>>2];J[a+4>>2]=c+1}a=b+c|0;H[a|0]=K[d+15|0];H[d+14|0]=0;H[a+1|0]=K[d+14|0];bc=d+16|0}function QFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;f=J[a+4>>2];e=d+20|0;Jq(e,a,b);J[695492]=0;b=d+8|0;ca(4749,b|0,a|0,c|0);a=J[695492];J[695492]=0;a:{b:{if((a| -0)!=1){J[695492]=0;ca(4750,f|0,e|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;if(H[d+19|0]<0)qc(J[d+8>>2]);if(H[d+31|0]<0)qc(J[d+20>>2]);bc=d+32|0;return}a=Z()|0;break a}a=Z()|0;if(H[d+19|0]>=0)break a;qc(J[d+8>>2])}if(H[d+31|0]<0)qc(J[d+20>>2]);ba(a|0);B()}function EVa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=bc+-64|0;bc=f;J[f+48>>2]=13;J[f+32>>2]=13;J[f+16>>2]=13;i=c;c=f+48|0;g=f+32|0;h=f+16|0;a:{if(!_I(b,i,c,g,h,a+268|0)){uc(c);uc(g);uc(h);break a}H[f+15|0]=0;H[f+14| -0]=0;c=b;b=a+304|0;ZI(f,c,d,e,f+32|0,f+16|0,3,b,b,f+15|0,f+14|0);if(H[f+11|0]<0)qc(J[f>>2]);b=K[a+315|0];if(b<<24>>24<0?J[a+308>>2]:b)J[a+4>>2]=J[a+4>>2]|524288;uc(f+48|0);uc(f+32|0);uc(f+16|0)}bc=f- -64|0}function Cga(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;g=bc-16|0;bc=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[695492]=0;h=$(6613,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)gc[J[J[b>>2]+8>>2]](b);jQ(a, -f+24|0,g+12|0,c,e,h);bc=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Bga(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;g=bc-16|0;bc=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[695492]=0;h=$(6613,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)gc[J[J[b>>2]+8>>2]](b);iQ(a,f+16|0,g+12|0,c,e,h);bc=g+16|0;return J[g+12>>2]}c=Z()|0; -a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Am(a,b,c,d,e){var f=0,g=0;if(!(!b|(a|0)<0|(!c|!e))){g=J[682417];a:{if((g|0)>31)break a;f=P(g,28);J[f+2729680>>2]=a;a=f+2729684|0;b=kq(b);J[a>>2]=b;if(!b)break a;f=f+2729688|0;b=kq(c);J[f>>2]=b;if(!b){qc(J[a>>2]);return}b=P(g,28);c=kq(d);J[b+2729692>>2]=c;if(!c){qc(J[a>>2]);qc(J[f>>2]);return}J[b+2729704>>2]=J[e+8>>2];a=b+2729696|0;b=J[e+4>>2];J[a>>2]=J[e>>2];J[a+4>>2]=b;J[682417]=J[682417]+1}return}fa(197677, -198798,540,206464);B()}function zH(a,b){var c=0,d=0,e=0,f=0;d=J[a>>2];a:{if(!d)break a;c=J[a+12>>2];b:{c:{if(!c)break c;e=J[a+4>>2];d:{if(e){c=gc[e|0](J[d>>2],b)|0;break d}if(b>>>0>>0)break c;c=b>>>0>c>>>0?-1:0}if(!c)break b}Pq(a,0,b,a,0,0);if(J[a+8>>2]){dI(a);Pq(a,0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}c=J[J[a>>2]>>2];d=J[a+4>>2];e:{if(d){b=gc[d|0](c,b)|0;break e}if(b>>>0>>0)return 0;b=b>>>0>c>>>0?-1:0}if(b)break a;f=J[J[a>>2]+4>>2]}return f}function ksb(a){a=a|0;var b=0,c=0,d=0,e=0, -f=0,g=0,h=0;b=J[a+2308>>2];if(b){f=J[a+2300>>2];e=J[a+2312>>2];c=J[a+2316>>2];while(1){d=K[e|0];if(d>>>0>2]){b=P(d,3)+f|0;d=gc[J[a+2296>>2]](K[b+68|0])|0;g=gc[J[a+2296>>2]](K[b+69|0])|0;b=gc[J[a+2296>>2]](K[b+70|0])|0;H[c+3|0]=(g|0)!=0;H[c+2|0]=g>>>8;H[c+1|0]=(d|0)!=0;H[c|0]=d>>>8;H[c+5|0]=(b|0)!=0;H[c+4|0]=b>>>8;b=J[a+2308>>2]}c=c+6|0;e=e+1|0;h=h+1|0;if(h>>>0>>0)continue;break}}return 0}function ROa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206428;b=J[a+180>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]= -0;a:{if((b|0)==1)break a;b=J[a+188>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;c=J[a+328>>2];if((c|0)>0){b=0;while(1){d=J[((b<<2)+a|0)+196>>2];if(d){gc[J[J[d>>2]+4>>2]](d);c=J[a+328>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a);return}ea(0)|0;yc();B()}function NM(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=bc-16|0;bc=g;j=!a;a:{if(j|(b|c|d|e)<0)break a;xf(a,g+12|0,g+8|0,g+4|0);k=J[g+12>>2]+b|0;h=k+c|0;l=J[g+8>>2]+ -d|0;i=l+e|0;f=QM(h,i,J[g+4>>2]);if(!f)break a;if(!(j|!f|(a|0)==(f|0))){J[f+20>>2]=J[a+20>>2];J[f+24>>2]=J[a+24>>2]}xD(f,a);uf(f,0,0,b,i,0,0,0,0);uf(f,k,0,c,i,0,0,0,0);uf(f,0,0,h,d,0,0,0,0);uf(f,0,l,h,e,0,0,0,0);uf(f,b,d,J[g+12>>2],J[g+8>>2],24,a,0,0);m=f}bc=g+16|0;return m}function G6a(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;a:{if((d|0)<=0)break a;j=J[a+112>>2];if(!j)break a;o=J[J[a+480>>2]+24>>2];while(1){e=g<<2;h=J[e+c>>2];f=J[b+e>>2];e=j;while(1){k=K[f| -0]>>>3|0;l=K[f+1|0]>>>2|0;m=K[f+2|0]>>>3|0;n=(J[(k<<2)+o>>2]+(l<<6)|0)+(m<<1)|0;i=L[n>>1];if(!i){Q2(a,k,l,m);i=K[n|0]}f=f+3|0;H[h|0]=i-1;h=h+1|0;e=e-1|0;if(e)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}}function Dba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=bc-80|0;bc=c;e=J[a+584>>2];if(e){d=J[a+48>>2];if(d&4){J[c+64>>2]=J[e+916>>2];cd(b,76913,c- -64|0);d=J[a+48>>2]}if(d&8){J[c+48>>2]=J[e+936>>2];cd(b,77446,c+48|0);d=J[a+48>>2]}if(d&16){J[c+32>>2]=J[e+940>>2];cd(b,78113,c+32|0);d=J[a+48>> -2]}if(d&32){J[c+16>>2]=J[e+944>>2];cd(b,78659,c+16|0);d=J[a+48>>2]}if(d&64){J[c>>2]=J[e+948>>2];cd(b,79023,c)}bc=c+80|0;return}fa(75254,70490,1817,97660);B()}function JNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=bc-16|0;bc=e;J[a+8>>2]=13;J[e>>2]=13;a:{if(J[c>>2]==8){d=rc(20);J[695492]=0;J[d>>2]=b;J[d+12>>2]=0;J[d+16>>2]=1;J[d+4>>2]=0;J[d+8>>2]=0;b=J[695492];J[695492]=0;if((b|0)!=1){J[a+24>>2]=1;J[a>>2]=d;Dg(d,Ef(c,e));c=J[a>>2];break a}a=Z()|0;qc(d);ba(a|0);B()}c=J[c+8>>2];J[a+24>>2]=0;J[a>>2]=c}J[a+ -4>>2]=0;if(J[c+12>>2]>0){Mc(c,0,a+8|0,0);b=J[a+16>>2];gc[J[J[b>>2]+20>>2]](b)}bc=e+16|0;return a|0}function mX(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{if(!d)break b;while(1){g=c+f|0;h=g+1|0;e=J[a+16>>2];i=f<<2;if(!Wk(b,e,g,J[a+20>>2],h,i+((J[a>>2]+(J[a+12>>2]<<5)|0)+(e<<6)|0)|0,16,0))break a;e=J[a+8>>2];j=J[a+24>>2];if(Wk(b,e+j|0,g,J[a+28>>2]+e|0,h,(((J[a>>2]-(J[a+12>>2]<<5)|0)+(j<<6)|0)+i|0)+32|0,16,0)){f=f+1|0;if((f|0)==(d|0))break b;continue}break}fa(2342140,2338616,2959,2343217);B()}return}fa(2342140, -2338616,2952,2343217);B()}function be(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;if((af(a,d+8|0,8)|0)==8){if(!K[2755320])H[2755320]=1;a=d;b=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=b&16711680;e=c>>>8|0;f=c<<24;c=b&-16777216;a=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);x(0,f|c<<8|(((a&255)<<24|b>>>8)&-16777216|((a&16777215)<<8|b>>>24)&16711680|(a>>>8&65280|a>>>24)));a=e|c>>>24|(b<<24|(b&65280)<<8);e=0;x(1,a|(e|e));g=+z()}bc=d+16|0;return g}function SOa(a){a=a|0;var b=0,c=0, -d=0;J[a>>2]=2206428;b=J[a+180>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;b=J[a+188>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;c=J[a+328>>2];if((c|0)>0){b=0;while(1){d=J[((b<<2)+a|0)+196>>2];if(d){gc[J[J[d>>2]+4>>2]](d);c=J[a+328>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;yc();B()}function IJ(a,b){a=a|0;b=b|0;var c=0;c=J[a+88>>2];if(c)J[c+128>>2]=b;c=J[a+92>>2];if(c)J[c+128>> -2]=b;c=J[a+96>>2];if(c)J[c+128>>2]=b;c=J[a+100>>2];if(c)J[c+128>>2]=b;c=J[a+120>>2];if(c)J[c+276>>2]=b;c=J[a+136>>2];if(c)J[c+276>>2]=b;c=J[a+124>>2];if(c)J[c+276>>2]=b;c=J[a+140>>2];if(c)J[c+276>>2]=b;c=J[a+128>>2];if(c)J[c+276>>2]=b;c=J[a+144>>2];if(c)J[c+276>>2]=b;c=J[a+132>>2];if(c)J[c+276>>2]=b;a=J[a+148>>2];if(a)J[a+276>>2]=b}function ekb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+8>>2];a:{if(!c)break a;b:switch(K[a|0]){case 0:e=K[b+c|0];break a;case 3:break b;default:break a}if(M[a+20>> -2]>b-J[a+16>>2]>>>0){e=K[a+24|0];break a}d=c+2|0;g=c+J[a+12>>2]|0;c=K[c+1|0]|K[c|0]<<8;while(1){if(b>>>0>>0)break a;f=K[d+2|0]|K[d+1|0]<<8;if(f>>>0>b>>>0){e=K[d|0];H[a+24|0]=e;J[a+20>>2]=f-c;J[a+16>>2]=c;break a}c=f;d=d+3|0;if(g>>>0>d>>>0)continue;break}}return e|0}function SLa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a+12>>2]=e;J[a+8>>2]=d;J[a+4>>2]=c;J[a>>2]=b;f=P(c,d);J[a+16>>2]=f;b=P(e,f)+7>>3;J[a+20>>2]=b;a:{if((2147483647/(d|0)|0)>=(c|0))if((2147483640/(e|0)|0)>=(f|0))break a;b= --1;J[a+20>>2]=-1}d=vd(b,1);J[a+24>>2]=d;b:{c:{d:switch(J[a+12>>2]-1|0){case 0:b=J[a+16>>2]+7&-8;break c;case 7:break b;default:break d}b=J[a+16>>2]}d=vd(b,1)}J[a+28>>2]=d;J[a+32>>2]=J[a+16>>2];return a|0}function mDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+20>>2]=0;J[a+24>>2]=-1;J[a+12>>2]=0;J[a+16>>2]=-1;J[a>>2]=2382568;J[a+4>>2]=0;J[a+8>>2]=0;J[a+28>>2]=J[b+28>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=J[b+48>>2];Zz(a,J[b+20>>2],J[b+24>>2]); -c=J[a+12>>2];d=J[a+20>>2]-c|0;e=J[a+24>>2]-c|0;c=J[b+12>>2];gc[J[b+44>>2]](J[a+8>>2],d,e,J[b+8>>2],J[b+20>>2]-c|0,J[b+24>>2]-c|0);return a|0}function bw(a,b,c,d){var e=0,f=0,g=0,h=0;J[c>>2]=b;e=vf(a,b,d);J[c+4>>2]=e;if(!e){J[c+8>>2]=0;a=b+2|0;J[c+16>>2]=a;J[c+12>>2]=a;return}e=Mf(a,b+2|0,d);J[c+8>>2]=e;if(e-5>>>0<=4294967291){J[d>>2]=0;e=J[c+8>>2]}h=b+3|0;b=J[c+4>>2];f=h+P(b+1|0,e)|0;g=f-1|0;J[c+12>>2]=g;if(!((f|0)>0&J[a+12>>2]>=(f|0))){J[d>>2]=0;e=J[c+8>>2];g=J[c+12>>2];b=J[c+4>>2]}b=_m(a,P(b,e)+ -h|0,e,d)+g|0;J[c+16>>2]=b;if(!((b|0)<=J[a+12>>2]&(b|0)>=J[c+12>>2]))J[d>>2]=0}function Ly(a,b){var c=0,d=0;a:{d=b&255;if(d){if(a&3)while(1){c=K[a|0];if(!c|(c|0)==(b&255))break a;a=a+1|0;if(a&3)continue;break}c=J[a>>2];b:{if((c^-1)&c-16843009&-2139062144)break b;d=P(d,16843009);while(1){c=c^d;if((c^-1)&c-16843009&-2139062144)break b;c=J[a+4>>2];a=a+4|0;if(!(c-16843009&(c^-1)&-2139062144))continue;break}}while(1){c=a;d=K[a|0];if(d){a=a+1|0;if((d|0)!=(b&255))continue}break}return c}return Qc(a)+a|0}return a} -function EFa(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;d=K[b+11|0];f=d<<24>>24;a:{g=(f|0)<0?J[b+4>>2]:d;h=Ve(c);e=g+h|0;if(e>>>0<1073741808){b:{if(e>>>0<=1){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[a+11|0]=e;break b}d=e|3;if(d>>>0>=1073741823)break a;i=d+1|0;d=rc(i<<2);J[a+4>>2]=e;J[a>>2]=d;J[a+8>>2]=i|-2147483648;a=d}d=a;a=g<<2;b=Zc(d,(f|0)<0?J[b>>2]:b,a)+a|0;a=h<<2;j=Zc(b,c,a)+a|0,k=0,J[j>>2]=k;return}Id(a);B()}Sd();B()}function tga(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;a=bc-16|0;bc=a;J[a+12>>2]=b;b=a+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[695492]=0;g=$(6537,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)gc[J[J[b>>2]+8>>2]](b);eQ(f+20|0,a+12|0,c,e,g);bc=a+16|0;return J[a+12>>2]}c=Z()|0;a=J[a+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Owb(a){a=a|0;var b=0,c=0,d=0,e=0;a=J[a+52>>2];c=gc[J[J[a>>2]+20>>2]](a,2)|0;gc[J[J[a>>2]+20>>2]](a,1)|0;a:{if((c|0)< -4)break a;b=c-3|0;d=b&3;if(d)while(1){gc[J[J[a>>2]+20>>2]](a,1)|0;b=b-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}if(c-4>>>0<=2)break a;while(1){gc[J[J[a>>2]+20>>2]](a,1)|0;gc[J[J[a>>2]+20>>2]](a,1)|0;gc[J[J[a>>2]+20>>2]](a,1)|0;gc[J[J[a>>2]+20>>2]](a,1)|0;c=b-5|0;b=b-4|0;if(c>>>0<4294967294)continue;break}}}function C1(a){a=a|0;var b=0,c=0,d=0;a:{c=K[2757371];b=c<<24>>24<0;b:{d=J[689341];if(b?d:c){if(b)break b;J[a+8>>2]=J[689342];b=J[689341];J[a>>2]=J[689340];J[a+4>>2]=b;return}b=Hi(20904);c:{if(b)break c; -b=Hi(20900);if(b)break c;b=Hi(20833)}b=b?b:5802;c=Qc(b);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[695492]=0;ca(2852,b|0,c|0,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}Re(a,J[689340],d)}}function Aga(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;a=bc-16|0;bc=a;J[a+12>>2]=b;b=a+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[695492]=0;g=$(6613,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)gc[J[J[b>> -2]+8>>2]](b);hQ(f+20|0,a+12|0,c,e,g);bc=a+16|0;return J[a+12>>2]}c=Z()|0;a=J[a+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)gc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function zpa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){d=h<<2;a=g<<1;while(1){f=f-1|0;g=e;while(1){c=K[l+1|0];J[b>>2]=c<<24|((P(K[i+1|0],c)+127&65535)>>>0)/255|((P(K[j+1|0],c)+127&65535)>>>0)/255<<8|((P(K[k+1|0],c)+127&65535)>>>0)/255<<16;b=b+4|0;k=k+2|0;j=j+2|0;i=i+2|0;l= -l+2|0;g=g-1|0;if(g)continue;break}b=b+d|0;l=a+l|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f)continue;break}}}function tMa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;J[a+12>>2]=e;J[a+40>>2]=0;J[a+44>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;a:{if(!(gc[J[J[b>>2]+96>>2]](b)|0)){e=0;break a}e=gc[J[J[b>>2]+96>>2]](b)|0;f=rc(8);J[695492]=0;e=aa(3183,f|0,e|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1)break a;a=Z()|0;qc(f);ba(a|0);B()}J[a+8>>2]=b;J[a>>2]=e;h=a,i=yY(a, -c,d),J[h+40>>2]=i;return a|0}function n7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}f=e>>>1|0;g=(b-f<<1)+255|0;b=K[a+3|0];e=b>>>1|0;g=(P(g,K[a+2|0]-e|0)>>8)+e|0;g=(g|0)>0?g:0;H[a+2|0]=b>>>0>g>>>0?g:b;c=e+(P((c-f<<1)+255|0,K[a+1|0]-e|0)>>8)|0;c=(c|0)>0?c:0;H[a+1|0]=b>>>0>c>>>0?c:b;c=a;a=e+(P((d-f<<1)+255|0,K[a|0]-e|0)>>8)|0;a=(a|0)>0?a:0;H[c|0]=a>>>0>>0?a:b}function qE(a){a=a|0;var b=0,c=0, -d=0,e=0;e=J[a+60>>2];a:{if(e)break a;b=J[a+968>>2];if(b){c=J[a+484>>2];b:{if((c|0)>0){while(1){b=J[J[a+968>>2]+(d<<2)>>2];if(b){gc[J[J[b>>2]+4>>2]](b);c=J[a+484>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}b=J[a+968>>2];if(!b)break b}qc(b)}J[a+484>>2]=0;J[a+968>>2]=0}b=J[a+960>>2];if(b){qc(b);J[a+960>>2]=0}b=J[a+964>>2];if(b){qc(b);J[a+964>>2]=0}b=J[a+4>>2];if(!b)break a;qc(b);J[a+4>>2]=0}return!e|0}function jRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>> -2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+116>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==10){Rq(a,1);break a}b=J[a+8>>2];gc[J[J[b>>2]+208>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}}function _Ya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;a:{if(!a)break a;f=J[a+8>>2];if(!f)break a;b:switch(J[a+216>>2]-1|0){case 0:J$(a+108|0,J[f+44>>2], -b,c,d);break a;case 1:J$(a+108|0,J[f+48>>2],b,c,d);break a;default:break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=1;J[e+4>>2]=0;J[e>>2]=b;Cc(0,0,0,a,0,1,1,3,b,0,0,0,31297,e);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}bc=e+16|0}function TRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+116>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==10){Rq(a,0);break a}b=J[a+8>>2];gc[J[J[b>>2]+204>> -2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}}function Qh(a,b,c,d){var e=0;e=bc-16|0;bc=e;if(a){J[a+744>>2]=34;H[e+11|0]=b;H[e+10|0]=b>>>8;H[e+9|0]=b>>>16;H[e+8|0]=b>>>24;H[e+7|0]=d;H[e+6|0]=d>>>8;H[e+5|0]=d>>>16;H[e+4|0]=d>>>24;bf(a,e+4|0,8);J[a+348>>2]=b;Xl(a);pe(a,e+8|0,4);J[a+744>>2]=66;if(!(!c|!d)){bf(a,c,d);pe(a,c,d)}J[a+744>>2]=130;b=J[a+384>>2]; -b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[e+12|0]=b;H[e+13|0]=b>>>8;H[e+14|0]=b>>>16;H[e+15|0]=b>>>24;bf(a,e+12|0,4)}bc=e+16|0}function Lpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;Dc(a,1029,0,0);return 1029}if((c|0)!=7){Dc(a,1028,0,0);return 1028}c=0;b:{if(!K[a+112|0])break b;c=gc[J[b+4>>2]](a,b,e)|0;if(c)break b;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;H[a+34|0]=K[d+2|0];H[a+35|0]=K[d+3|0];H[a+36|0]= -K[d+4|0];H[a+37|0]=K[d+5|0];H[a+38|0]=K[d+6|0];c=0}return c|0}function XFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;a=Cp(a);e=J[J[b>>2]+12>>2];J[695492]=0;f=e;e=d+4|0;ca(f|0,e|0,b|0,c|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[695492]=0;aa(4744,a|0,e|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;if(H[d+15|0]<0)qc(J[d+4>>2]);bc=d+16|0;return}b=Z()|0;break a}b=Z()|0;if(H[d+15|0]>=0)break a;qc(J[d+4>>2])}J[a>>2]=768024;a=J[a+4>>2];if(a)gc[J[J[a>>2]+4>>2]](a);ba(b|0);B()}function Rq(a, -b){var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;c=J[a+8>>2];a:{if(!(gc[J[J[c>>2]+28>>2]](c)|0))break a;c=J[J[a+28>>2]+380>>2];if(!c)break a;f=-1;b:{c:{d:{e=J[c+4>>2];switch(e-1|0){case 1:break c;case 0:break d;default:break b}}rI(a,c,0,b,0);break a}qI(a,c,0,b,0);break a}a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];f=gc[J[J[a>>2]+52>>2]](a)|0;e=J[c+4>>2]}J[d>>2]=e;xc(1,f,821501,d)}bc=d+16|0}function RZa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=rc(44);J[695492]=0;J[c+4>>2]=1;J[c>> -2]=768E3;d=J[695492];J[695492]=0;a:{b:{if((d|0)!=1){J[c+8>>2]=768272;J[c>>2]=768248;J[c+12>>2]=0;J[c+16>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+40>>2]=0;d=c+32|0;J[c+36>>2]=d;J[c+32>>2]=d;if(A0(c+8|0,b))break b;break a}a=Z()|0;qc(c);ba(a|0);B()}u0(c);b=J[c+24>>2];if(!b)break a;J[a>>2]=b;gc[J[J[c>>2]+12>>2]](c)|0;return 1}gc[J[J[c>>2]+4>>2]](c);return 0}function iea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;while(1){a:{if((c|0)==(d|0)|e>>>0<=h>>>0)break a;g=1;f=bc-16|0;bc= -f;J[f+12>>2]=J[a+8>>2];i=Gl(f+8|0,f+12|0);J[695492]=0;j=sQ(c,d-c|0,b);l=J[695492];J[695492]=0;b:{if((l|0)!=1){Mh(i);bc=f+16|0;break b}a=Z()|0;Mh(i);ba(a|0);B()}c:switch(j+2|0){default:g=j;break;case 0:case 1:break a;case 2:break c}h=h+1|0;k=g+k|0;c=c+g|0;continue}break}return k|0}function ZN(a,b){var c=0,d=0,e=0,f=0;while(1){d=nj(a);if((d|0)==-1)return-1;if((d|0)==32|d-9>>>0<5)continue;break}a:{b:{if((d|0)==45){e=-1;c=nj(a);if((c|0)!=-1)break b;break a}c=d;if((d|0)!=43)break b;e=-1;c=nj(a);if((c| -0)==-1)break a}c:{while(1){e=c-48|0;if(e>>>0>9)break c;f=e+P(f,10)|0;c=nj(a);if((c|0)>=0)continue;break}return-1}e=-1;if(!((c|0)==32|c-9>>>0<5))break a;if(!b)return 0;e=0;J[b>>2]=(d|0)==45?0-f|0:f}return e}function SGa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;c:{if(J[a+100>>2]){Hc(d,1,2348062,0);a=0;break c}if((c|0)!=4){Hc(d,1,2348116,0);a=0;break c}ld(b,e+12|0,4);if(J[e+12>>2]!=218793738){Hc(d,1,2348252,0);a=0;break c}J[a+100>>2]=J[a+100>>2]| -1;a=1}bc=e+16|0;return a|0}fa(2347980,2342899,2546,2359496);B()}fa(2342603,2342899,2547,2359496);B()}fa(2343543,2342899,2548,2359496);B()}function Lv(a,b){var c=0,d=0,e=0;c=J[a+8>>2];if(c>>>0>=b>>>0){d=c-b|0;J[a+8>>2]=d;return J[a+4>>2]>>>d&((b|0)==32?-1:-1<>2]=0;d=J[a+4>>2]&(-1<>>0>=8)while(1){c=J[a>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+12>>2]=J[a+12>>2]+1;d=c&255|d<<8;b=b-8|0;if(b>>>0>7)continue;break}if(b){c=J[a>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[a+4>>2]=c;e=8-b|0; -J[a+8>>2]=e;J[a+12>>2]=J[a+12>>2]+1;d=(-1<>>e|d<>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+120>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==10){mt(a);break a}b=J[a+8>>2];gc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}} -function FCa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=gc[J[J[a>>2]+28>>2]](a)|0;a:{if((d|0)>0){e=d+1|0;oe(c,e,1);d=0;while(1){c=gc[J[J[a>>2]+8>>2]](a,J[b>>2]+d|0,e)|0;if((c|0)<=0)break a;d=c+d|0;e=e-c|0;if(e)continue;break}break a}oe(c,32768,1);d=0;e=gc[J[J[a>>2]+8>>2]](a,J[b>>2],32768)|0;if((e|0)<=0)break a;while(1){d=d+e|0;oe(c,d+32768|0,1);e=gc[J[J[a>>2]+8>>2]](a,J[b>>2]+d|0,32768)|0;if((e|0)>0)continue;break}}H[J[b>>2]+d|0]=0}function CS(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; -var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(O[g>>3]<0){a:{if(!c)break a;f=J[c+24>>2];h=J[c+20>>2];d=h>>31;d=(d^h)-d|0;if((d|0)!=J[c+12>>2]<<2)break a;h=J[c+16>>2];i=rc(d);if((h|0)>=2){l=(h|0)/2|0;m=0-d|0;h=P(d,h-1|0)+f|0;while(1){n=tc(i,f,d);f=tc(f,h,d);h=tc(h,n,d)+m|0;f=d+f|0;j=j+1|0;if((j|0)!=(l|0))continue;break}}qc(i)}k=O[g>>3];O[g>>3]=-k;O[e>>3]=k+O[e>>3]}BS(a,b,c)}function nM(a){a=a|0;var b=0,c=0;if(a){c=J[a+100>>2];I6(J[a+140>>2]);b=J[a+144>>2];if(b)gc[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+132>>2];if(b)gc[J[c+ -8>>2]](c,b);J[a+132>>2]=0;b=J[a+136>>2];if(b)gc[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+20>>2];if(b)gc[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>>2];if(b)gc[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+32>>2];if(b)gc[J[c+8>>2]](c,b);J[a+32>>2]=0;b=J[a+140>>2];if(b)gc[J[c+8>>2]](c,b);J[a+140>>2]=0}}function mt(a){var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;b=J[a+8>>2];a:{if(!(gc[J[J[b>>2]+28>>2]](b)|0))break a;b=J[J[a+28>>2]+384>>2];if(!b)break a;e=-1;b:{c:{d:{d=J[b+4>>2];switch(d-1|0){case 1:break c;case 0:break d;default:break b}}rI(a, -b,1,0,0);break a}qI(a,b,1,0,0);break a}a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];e=gc[J[J[a>>2]+52>>2]](a)|0;d=J[b+4>>2]}J[c>>2]=d;xc(1,e,821723,c)}bc=c+16|0}function Aeb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){b=J[a+540>>2];d=J[a+104>>2];e=J[a+100>>2];c=J[a+716>>2];if(c)gc[c|0](J[a+712>>2]);if(b)gc[J[b+12>>2]](a);Sf(J[a+104>>2],a+764|0);J[a+760>>2]=0;c=J[a+104>>2];b=J[c+28>>2];f=J[a+784>>2];if(f)gc[J[b+8>>2]](b,f);J[a+784>>2]=0;Sf(c,a+768|0);b=J[a+704>>2];if(b)gc[J[e+ -8>>2]](e,b);J[a+700>>2]=0;J[a+704>>2]=0;Sf(d,a+688|0);Sf(d,a+696|0);J[a+692>>2]=0;J[a+684>>2]=0;r4(a);J[a+736>>2]=0}}function sya(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;a:{if(!K[a+144|0]){a=Kc(c,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=Jn(c,2401340);J[695492]=0;ca(5342,a|0,d|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1){a=Z()| -0;Bd(d);ba(a|0);B()}Bd(d);bc=c+32|0;return}B()}function oub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){g=K[d|0];e=4;d=d+1|0;b=240}H[c|0]=P((b&g)>>>e|0,17);e=e-4|0;c=c+2|0;b=(b&240)>>>4|0;f=f+1|0;if((f|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function jub(a){a=a|0;var b= -0,c=0,d=0,e=0,f=0,g=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){g=K[d|0];e=4;d=d+1|0;b=240}H[c|0]=P((b&g)>>>e|0,17);e=e-4|0;c=c+4|0;b=(b&240)>>>4|0;f=f+1|0;if((f|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function hsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>> -2];while(1){d=gc[J[a+2296>>2]](K[c|0])|0;e=gc[J[a+2296>>2]](K[c+1|0])|0;f=gc[J[a+2296>>2]](K[c+2|0])|0;g=gc[J[a+2296>>2]](K[c+3|0])|0;H[b+5|0]=(f|0)!=0;H[b+4|0]=f>>>8;H[b+3|0]=(e|0)!=0;H[b+2|0]=e>>>8;H[b+1|0]=(d|0)!=0;H[b|0]=d>>>8;H[b+7|0]=(g|0)!=0;H[b+6|0]=g>>>8;b=b+8|0;c=c+4|0;h=h+1|0;if(h>>>0>2])continue;break}}return 0}function ai(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0;i=Dzb(b,c,h,i);h=fc;e=Dzb(d,e,f,g);i=e+i|0;d=fc+h|0;h=e>>>0>i>>>0?d+1|0:d;j=g;e=0;k=c;d=0;c=Dzb(g,e,c,d);g=c+i|0;i= -fc+h|0;l=g;c=c>>>0>g>>>0?i+1|0:i;g=Dzb(f,0,b,0);h=fc;i=0;d=Dzb(f,i,k,d);h=h+d|0;f=fc+i|0;f=d>>>0>h>>>0?f+1|0:f;i=f+l|0;d=c;f=f>>>0>i>>>0?d+1|0:d;b=Dzb(b,m,j,e)+h|0;e=fc;e=b>>>0>>0?e+1|0:e;h=e+i|0;i=f;J[a+8>>2]=h;J[a+12>>2]=e>>>0>h>>>0?i+1|0:i;J[a>>2]=g;J[a+4>>2]=b}function Y5a(a){a=a|0;var b=0,c=0,d=0,e=0;b=rc(80);c=J[a+8>>2];J[b+16>>2]=J[a+16>>2];J[b>>2]=349292;J[b+4>>2]=2;J[695492]=0;d=$(2278,b+20|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[b+40>>2]=0;J[b+44>>2]=0;J[b+24>>2]=-16777216;J[b+28>> -2]=-16777216;H[b+72|0]=255;J[b+12>>2]=0;J[b+8>>2]=c;H[b+32|0]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;c=b- -64|0;J[c>>2]=0;J[c+4>>2]=0;Bj(d,a+20|0);return b|0}a=Z()|0;qc(b);ba(a|0);B()}function O2(a){var b=0,c=0,d=0,e=0;J[a>>2]=349524;a:{b=J[a+4>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[a+4>>2]=0}c=J[a+8>>2];if(c){d=J[c+8>>2];b:{if(!d)break b;b=d-1|0;J[c+8>>2]=b;e=J[c+16>>2]+(d<<2)|0;while(1){e=e-4|0;d=J[e>>2];if(d){qc(d);b=J[c+ -8>>2]}d=b;b=d-1|0;J[c+8>>2]=b;if(d)continue;break}b=J[c+16>>2];if(!b)break b;qc(b)}qc(c);J[a+8>>2]=0}return}ea(0)|0;yc();B()}function MM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(!a)return 0;if(!b){if(a)J[a+16>>2]=J[a+16>>2]+1;return a|0}d=bc-16|0;bc=d;g=!a;a:{if(g|(b|0)<0)break a;xf(a,d+12|0,d+8|0,d+4|0);c=b+b|0;e=J[d+12>>2]-c|0;if((e|0)<=0)break a;f=J[d+8>>2]-c|0;if((f|0)<=0)break a;c=QM(e,f,J[d+4>>2]);if(!c)break a;if(!(g|!c|(a|0)==(c|0))){J[c+20>>2]=J[a+20>>2];J[c+24>>2]=J[a+24>>2]}xD(c, -a);uf(c,0,0,e,f,24,a,b,b);h=c}bc=d+16|0;return h|0}function iS(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!J[a+8>>2])break a;d=J[a+4>>2];b=J[d>>2];c=J[J[a>>2]+4>>2];J[b+4>>2]=c;J[c>>2]=b;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b=d;d=J[b+4>>2];b:{if(!J[b+20>>2])break b;c=J[b+16>>2];f=J[c>>2];e=J[J[b+12>>2]+4>>2];J[f+4>>2]=e;J[e>>2]=f;J[b+20>>2]=0;e=b+12|0;if((e|0)==(c|0))break b;while(1){f=J[c+4>>2];qc(c);c=f;if((e|0)!=(c|0))continue;break}}qc(b);if((a|0)!=(d|0))continue;break}}}function JUa(a,b){a=a|0; -b=b|0;var c=0,d=0;we(b,13);ao(a,b);c=J[a+4>>2];if(c&32768){d=O[a+216>>3]*100;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}pd(b,c);d=O[a+224>>3]*100;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}pd(b,c);d=O[a+232>>3]*100;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}pd(b,c);d=O[a+240>>3]*100;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}pd(b,c);c=J[a+4>>2]}if(c&65536)we(b,K[a+208|0])}function El(a,b,c){var d=0,e=0,f=0;e=bc-4112|0;bc=e;J[e+4108>>2]=c;dR(e,b,c);c=K[e|0];a:{if(!c)break a; -b=e;while(1){d=J[a+8>>2];if(d&7)break a;f=J[a+64>>2];if(!((f|0)<0|J[a+60>>2]<(f|0))){J[a+8>>2]=d|4;break a}J[a+4>>2]=J[a+4>>2]|32;d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=c;break b}if((Uc(a,c&255)|0)==-1)break a}c=K[b+1|0];b=b+1|0;if(c)continue;break}}bc=e+4112|0}function txb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=b+12|0;a:{b:{c:{c=J[a+84>>2]-4|0;if(c)if((c|0)==12)break c;else break b;c=-1;if(!s9(J[a+64>>2],e))break b;break a}c=-1;d=J[a+52>> -2];if(!d)break a;if(!J[d+40>>2]){if(!s9(J[d+32>>2],e))break b;break a}a=0;if(J[b+12>>2]<=0)break b;c=J[d+52>>2];while(1){d=IN(J[b+16>>2]+(a<<4)|0);if(!d)break b;if(i9(J[c+76>>2],d))break b;a=a+1|0;if((a|0)>2])continue;break}}c=0}return c|0}function sWa(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;H[a+202|0]=1;H[a+204|0]=(g|0)!=0;H[a+203|0]=(e|0)!=0;a:{e=J[a+212>>2];c=J[a+216>>2];if((e|0)==c<<5){b=a+208|0;if((e+1|0)<0)break a;if(e>>>0<=1073741822){c=c<<6;d=(e&-32)+32|0;c=c>>>0>d>>> -0?c:d}else c=2147483647;N_(b,c);e=J[a+212>>2]}J[a+212>>2]=e+1;b=1<>2]+(e>>>3&536870908)|0;if(g){J[a>>2]=b|J[a>>2];return}J[a>>2]=J[a>>2]&(b^-1);return}st(b);B()}function ldb(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=J[a+496>>2];if(!f)return 6;g=J[f+32>>2];if(g){a=0;while(1){e=J[f+28>>2]+P(a,20)|0;a:{if(J[e>>2]!=(c|0))break a;h=J[e+4>>2];if((h|0)>(b|0)){J[d>>2]=J[e+8>>2];break a}i=J[e+12>>2];if((i|0)<(b|0)){J[d>>2]=J[e+16>>2];break a}j=d,k=Dd(b-h|0,J[e+16>>2]- -J[e+8>>2]|0,i-h|0)+J[e+8>>2]|0,J[j>>2]=k;g=J[f+32>>2]}a=a+1|0;if(g>>>0>a>>>0)continue;break}}return 0}function jza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;yG(d+12|0,a);J[695492]=0;ca(5152,J[d+12>>2],b|0,c|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(b)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=d+16|0;return}a=Z()|0;vc(d+12|0);ba(a| -0);B()}ea(0)|0;yc();B()}function jw(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a>>2];e=a+4|0;if((c|0)!=(e|0))while(1){d=J[c+24>>2];if(d){b=J[d+32>>2];if(b)qc(b);b=J[d+36>>2];if(b)qc(b);if(H[d+31|0]<0)qc(J[d+20>>2]);if(H[d+19|0]<0)qc(J[d+8>>2]);qc(d)}b=J[c+4>>2];a:{if(b)while(1){c=b;b=J[c>>2];if(b)continue;break a}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(e|0))continue;break}ut(a,J[a+4>>2]);J[a>>2]=e;J[a+4>>2]=0;J[a+8>>2]=0}function ff(a,b){a=a|0;b=b|0;var c=0,d=0;d=a;a:{b:{if((d^ -b)&3){c=K[b|0];break b}if(b&3)while(1){c=K[b|0];H[d|0]=c;if(!c)break a;d=d+1|0;b=b+1|0;if(b&3)continue;break}c=J[b>>2];if((c^-1)&c-16843009&-2139062144)break b;while(1){J[d>>2]=c;c=J[b+4>>2];d=d+4|0;b=b+4|0;if(!(c-16843009&(c^-1)&-2139062144))continue;break}}H[d|0]=c;if(!(c&255))break a;while(1){c=K[b+1|0];H[d+1|0]=c;d=d+1|0;b=b+1|0;if(c)continue;break}}return a|0}function fcb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=J[a+20>>2];if((d|0)!=205){f=J[a>>2];J[f+24>>2]=d;J[f+20>>2]= -21;gc[J[J[a>>2]>>2]](a)}f=J[a+116>>2];g=J[a+140>>2];a:{if(f>>>0<=g>>>0){b=J[a>>2];J[b+20>>2]=126;gc[J[b+4>>2]](a,-1);c=0;break a}d=J[a+8>>2];if(d){J[d+8>>2]=f;J[d+4>>2]=g;gc[J[d>>2]](a)}J[e+12>>2]=0;gc[J[J[a+444>>2]+4>>2]](a,b,e+12|0,c);c=J[e+12>>2];J[a+140>>2]=c+J[a+140>>2]}bc=e+16|0;return c|0}function Sia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;while(1){a:{if((c|0)<=(g|0))break a;d=J[a+24>>2];e=J[a+28>>2];if(d>>>0>=e>>>0){if((gc[J[J[a>>2]+52>>2]](a,J[b>>2])|0)==-1)break a;g= -g+1|0;b=b+4|0}else{J[f+12>>2]=e-d>>2;J[f+8>>2]=c-g;d=bc-16|0;bc=d;bc=d+16|0;d=f+8|0;e=f+12|0;d=J[(J[d>>2]>2]?d:e)>>2];kk(J[a+24>>2],b,d);e=d<<2;J[a+24>>2]=e+J[a+24>>2];g=d+g|0;b=b+e|0}continue}break}bc=f+16|0;return g|0}function Aca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-16|0;bc=e;a:{if(J[b>>2]){if(K[c+11|0]>>>7|0)d=J[c+4>>2];else d=K[c+11|0]&127;if(d)aP(c,29813);d=e+4|0;f=J[b+4>>2];gc[J[J[f>>2]+24>>2]](d,f,J[b>>2]);J[695492]=0;aa(7048,c|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a; -ad(d)}b=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=b;J[a+8>>2]=J[c+8>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;bc=e+16|0;return}a=Z()|0;ad(e+4|0);ba(a|0);B()}function Tl(a){var b=0,c=0,d=0;a:{b:{if(!J[689896])break b;c=J[689898];c:{if(c){J[695492]=0;b=$(4,8)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b>>2]=a;J[c+4>>2]=b;break c}J[695492]=0;b=$(4,8)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[b>>2]=a;J[689897]=b}J[689898]=b;J[b+4>>2]=0;b=J[689899];J[689899]=b+1;if((b|0)<127)break b;b=J[689897];J[689897]= -J[b+4>>2];qc(b);J[689899]=J[689899]-1}qc(a);return}ea(0)|0;yc();B()}function zY(a,b,c,d,e,f){a=J[a+12>>2];if(c){b=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=b;b=J[a+28>>2];J[e+24>>2]=J[a+24>>2];J[e+28>>2]=b;b=J[a+20>>2];J[e+16>>2]=J[a+16>>2];J[e+20>>2]=b;b=J[a+12>>2];J[e+8>>2]=J[a+8>>2];J[e+12>>2]=b;return}b=J[a+36>>2];J[e>>2]=J[a+32>>2];J[e+4>>2]=b;b=J[a+60>>2];J[e+24>>2]=J[a+56>>2];J[e+28>>2]=b;b=J[a+52>>2];J[e+16>>2]=J[a+48>>2];J[e+20>>2]=b;b=J[a+44>>2];J[e+8>>2]=J[a+40>>2];J[e+12>>2]=b;J[f>>2]=0}function mob(a){a= -a|0;var b=0,c=0,d=0;c=J[a+588>>2];b=J[a+644>>2];a:{if(K[a+648|0]){if((c|0)<=0)break a;c=a+704|0;while(1){H[b|0]=K[c+K[b|0]|0];H[b+2|0]=K[c+K[b+2|0]|0];H[b+4|0]=K[c+K[b+4|0]|0];b=b+8|0;d=d+1|0;if((d|0)>2])continue;break}break a}if((c|0)<=0)break a;c=a+704|0;while(1){H[b|0]=K[c+K[b|0]|0];H[b+1|0]=K[c+K[b+1|0]|0];H[b+2|0]=K[c+K[b+2|0]|0];b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function _9a(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;var h=0,i=0;h=bc-16|0;bc= -h;i=1;a:{if(!(!J[a+16>>2]|!J[a+20>>2])){b=Hp(h+12|0,O[b>>3],O[c>>3],O[d>>3],O[e>>3],O[f>>3],O[g>>3]);c=J[a+16>>2];if(!(!c|!J[a+20>>2])){J[695492]=0;cL(c,b);c=J[695492];J[695492]=0;if((c|0)==1)break a;a=J[a+16>>2];J[695492]=0;Yw(a);a=J[695492];J[695492]=0;if((a|0)==1)break a}Ed(b);i=0}bc=h+16|0;return i|0}a=Z()|0;Ed(b);ba(a|0);B()}function zU(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-32|0;bc=d;c=a+148|0;a:{if(J[c>>2]&1)break a;e=J[c>>2];if(e&2|e&4)break a;DU(a);f=1}b:{if(!b)break b;if(K[a+144|0])while(1){if(!(J[c>> -2]&1))break b;while(1){if(J[c>>2]&1)continue;break}if(K[a+144|0])continue;break}a=Kc(d+8|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0);B()}B()}bc=d+32|0;return f|0}function sSa(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;f=bc-16|0;bc=f;g=O[a+16>>3];h=O[a+24>>3];d=O[b>>3];d=dh?h:d;b=J[a+1044>>2];e=((b|0)<=1?1:b)-1|0;i=J[a+1052>>2];while(1){a:{b=j;if((e|0)==(b|0)){b=e;break a}j=b+1|0;if(!(d>3]))continue}break}e= -b<<3;O[f+8>>3]=(d-O[e+i>>3])*O[e+J[a+1060>>2]>>3]+O[J[a+1056>>2]+(b<<4)>>3];a=J[J[a+1048>>2]+(b<<2)>>2];gc[J[J[a>>2]+16>>2]](a,f+8|0,c);bc=f+16|0}function rua(a,b){a=a|0;b=b|0;var c=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a>>2]=2412864;J[a+4>>2]=0;J[695492]=0;ca(5460,a|0,b|0,0);b=J[695492];J[695492]=0;a:{b:{if((b|0)==1){na(ea(0)|0)|0;b=J[a+20>>2];if(b)qc(b);J[a+16>>2]=0;J[a+20>>2]=0;J[695492]=0;ka(5087);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;J[695492]=0;ka(4893);c=J[695492];J[695492]= -0;if((c|0)==1)break b;ed(a);ba(b|0);B()}return a|0}ea(0)|0;yc()}B()}function Wva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((a|0)==(b|0))break a;c=J[a+8>>2];if(c)while(1){d=J[c>>2];gc[J[J[a>>2]+16>>2]](c,1);qc(c);c=d;if(c)continue;break}J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;c=J[b+8>>2];if(!c)break a;b=a+8|0;while(1){e=rc(J[J[a>>2]>>2]);gc[J[J[a>>2]+12>>2]](e,c,1,0);J[e>>2]=0;d=J[a+12>>2];J[e+4>>2]=d;J[a+12>>2]=e;J[(d?d:b)>>2]=e;J[a+4>>2]=J[a+4>>2]+1;c=J[c>>2];if(c)continue;break}}return a|0}function Mib(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+16>>2];if(!e){J[b>>2]=0;return 0}i=J[a+20>>2];f=J[b>>2];a:while(1){f=f+1|0;c=0;d=e;while(1){g=(d-c>>>1|0)+c|0;h=J[(g<<4)+i>>2];if((h|0)==(f|0)){if(!g)continue a;J[b>>2]=f;return g+1|0}h=f>>>0>h>>>0;c=h?g+1|0:c;d=h?d:g;if(c>>>0>>0)continue;break}break}d=0;if(c>>>0>=e>>>0){J[b>>2]=0;return 0}e=0;if(c){e=J[J[a+20>>2]+(c<<4)>>2];d=c+1|0}J[b>>2]=e;return d|0}function CN(a,b,c){var d=0,e=0,f=0,g=0,h=0;if(a){f=J[b+88>>2]+P(c,1876)|0;if(J[f+420>>2]>= -0){c=0;while(1){g=c;e=P(c,112)+a|0;d=J[e+76>>2];a:{if(!d)break a;c=0;b=J[a+72>>2];if((b|0)>0){while(1){d=J[e+76>>2]+(c<<4)|0;h=J[d+12>>2];if(h){qc(h);J[d+12>>2]=0;b=J[a+72>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}d=J[e+76>>2];if(!d)break a}qc(d);J[e+76>>2]=0}c=g+1|0;if(J[f+420>>2]>(g|0))continue;break}}b=J[a>>2];if(b)qc(b);qc(a)}}function mla(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-32|0;bc=b;c=J[a>>2];J[b+8>>2]=32;J[b+12>>2]=0;H[b+19|0]=1;J[b+28>>2]=0;J[b+24>>2]=0;e=J[J[c>>2]+88>>2];J[695492]=0;ha(e|0, -c|0,b+8|0,b+28|0,b+24|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){if(H[b+19|0]<0)qc(J[b+8>>2]);a=J[a>>2];gc[J[J[a>>2]+120>>2]](b+8|0,a);bc=b+32|0;d=+Q(N[b+12>>2]-N[b+8>>2])*.35277777777777775;return+(d<=0?1:d)}a=Z()|0;if(H[b+19|0]<0)qc(J[b+8>>2]);ba(a|0);B()}function lCa(a){a=a|0;var b=0,c=0,d=0;b=bc-16|0;bc=b;J[b+12>>2]=0;md(b+12|0,a);J[695492]=0;_(5093,J[b+12>>2]);a=J[695492];J[695492]=0;a:{if((a|0)!=1){a=J[b+12>>2];J[b+12>>2]=0;b:{if(!a)break b;J[695492]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[695492]; -J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}bc=b+16|0;return}a=Z()|0;vc(b+12|0);ba(a|0);B()}ea(0)|0;yc();B()}function Sob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{e=J[b+36>>2];g=P(J[b+48>>2],K[b+44|0]>>>1&124|2);d=(e+g|0)+2|0;b:{if(d>>>0<=M[a+424>>2]){c=J[a+428>>2]+8|0;break b}c=gc[J[a+152>>2]](d)|0;if(!c)break a;e=J[b+36>>2]}f=c;if(e)f=tc(c,J[b+40>>2],e)+J[b+36>>2]|0;H[f|0]=0;H[f+1|0]=K[b+44|0];if(J[b+48>>2])tc(f+2|0,J[b+52>> -2],g);b=ue(a,J[b>>2],d,c);if(M[a+424>>2]>>0)gc[J[a+156>>2]](c,d);return b|0}Dc(a,1,0,0);return 1}function Heb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];c=J[b+4>>2];if(!c){if(!(gc[J[b+12>>2]](a)|0))return 0;c=J[b+4>>2]}d=J[b>>2];e=K[d|0];f=c-1|0;if(f)c=d+1|0;else{if(!(gc[J[b+12>>2]](a)|0))return 0;f=J[b+4>>2];c=J[b>>2]}d=K[c|0];g=J[a>>2];J[g+20>>2]=93;J[g+24>>2]=J[a+436>>2];d=d|e<<8;e=d-2|0;J[J[a>>2]+28>>2]=e;gc[J[J[a>>2]+4>>2]](a,1);J[b+4>>2]=f-1;J[b>>2]=c+1;if(d>>>0>=3)gc[J[J[a+24>>2]+ -16>>2]](a,e);return 1}function Dub(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;b=J[a+636>>2]+J[a+616>>2]|0;while(1){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;d=K[b+4|0]|K[b+5|0]<<8;H[c+4|0]=d;H[c+5|0]=d>>>8;b=b+6|0;c=P(J[a+584>>2],6)+c|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function vja(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=bc+-64| -0;bc=c;e=L[a+88>>1];b=2729248;a:{while(1){b:{b=J[b>>2];if(!b){d=0;if(!J[656756])break b;b=2627024;while(1){if((e|0)==L[b+4>>1])break a;f=J[b+12>>2];b=b+12|0;if(f)continue;break}break b}d=J[b+4>>2];if((e|0)!=L[d+4>>1])continue}break}b=d}J[c+16>>2]=L[a+88>>1];d=c+32|0;Vf(d,78793,c+16|0);e=J[a>>2];f=J[a+628>>2];J[c>>2]=b?J[b>>2]:d;Nc(f,e,79166,c);bc=c- -64|0;return 0}function paa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{c:{e=J[a+584>>2];if(e){f=J[e+36>>2];if(!f)break c;if(!(gc[f|0](a,b,c,d)| -0))return 0;d=J[e+8>>2];if((d|0)<=0)break b;if(!J[e+40>>2])break a;if((c|0)>0)while(1){gc[J[e+40>>2]](a,b,d);b=b+d|0;c=c-d|0;if((c|0)>0)continue;break}return 1}fa(72282,70388,416,197585);B()}fa(78796,70388,417,197585);B()}fa(79427,70388,421,197585);B()}fa(78533,70388,422,197585);B()}function TX(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(a>>>0<=127){if((c|0)<=0)return 0;H[b|0]=a;return 1}a:{if(a>>>0<=2047){if((c|0)<2)break a;H[b+1|0]=a&63|128;H[b|0]=(a>>>6|0)+-64;return 2}if(a>>>0<=65535){if((c|0)<3)break a; -H[b+2|0]=a&63|128;H[b|0]=(a>>>12|0)-32;H[b+1|0]=a>>>6&63|128;return 3}if((c|0)<4|a>>>0>1114111)break a;H[b+3|0]=a&63|128;H[b|0]=(a>>>18|0)-16;H[b+2|0]=a>>>6&63|128;H[b+1|0]=a>>>12&63|128;d=4}return d|0}function NY(a,b){var c=0,d=0;ti(J[a+88>>2]);ti(J[a+92>>2]);ti(J[a+96>>2]);ti(J[a+100>>2]);ti(J[a+104>>2]);ti(J[a+108>>2]);ti(J[a+112>>2]);ti(J[a+116>>2]);ti(J[a+120>>2]);ti(J[a+124>>2]);ti(J[a+128>>2]);ti(J[a+132>>2]);ti(J[a+136>>2]);d=1<>2];if((d|0)==J[c+4>>2]){ti(c);return}qc(dd(c)); -b=rc(8);J[695492]=0;c=aa(3443,b|0,d|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+140>>2]=c;return}a=Z()|0;qc(b);ba(a|0);B()}function $2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(!b)return 0;if(J[a+16>>2]>0)while(1){c=J[a+8>>2]+(d<<4)|0;e=O[c+8>>3];f=O[c>>3];g=K[J[a+12>>2]+d|0];a:{b:{if(g&1){gc[J[J[b>>2]>>2]](b,f,e)|0;break b}if(g&8){gc[J[J[b>>2]+8>>2]](b,f,e,O[c+16>>3],O[c+24>>3],O[c+32>>3],O[c+40>>3])|0;c=3;break a}gc[J[J[b>>2]+4>>2]](b,f,e)|0}c=1}d=c+d|0;if((g&6)==6)gc[J[J[b>>2]+12>>2]](b)| -0;if(J[a+16>>2]>(d|0))continue;break}return 1}function xS(a){var b=0,c=0,d=0;a:{if(!J[a+8>>2])break a;b=J[a+4>>2];c=J[b>>2];d=J[J[a>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+8>>2]=0;if((a|0)==(b|0))break a;while(1){c=J[b+4>>2];Fn(b+8|0);qc(b);b=c;if((b|0)!=(a|0))continue;break}if(!J[a+8>>2])break a;b=J[a+4>>2];c=J[b>>2];d=J[J[a>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+8>>2]=0;if((a|0)==(b|0))break a;while(1){c=J[b+4>>2];Fn(b+8|0);qc(b);b=c;if((b|0)!=(a|0))continue;break}}}function Wrb(a){a=a|0;var b=0,c=0,d= -0,e=0,f=0;if(J[a+588>>2]>0){d=J[a+636>>2]+J[a+616>>2]|0;c=J[a+644>>2];while(1){b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;e=b<<8|b>>>8;H[c|0]=e;H[c+1|0]=e>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=K[d+2|0]|K[d+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;c=c+8|0;d=d+4|0;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=0;return 0}function GTa(a){a=a|0;var b=0,c=0;J[a>>2]=2182428;a:{b=J[a+20>>2];b:{if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]= -0;if((b|0)==1)break b}b=J[a+24>>2];if(!b|(b|0)==2638352)break a;b=0;while(1){c=J[J[a+24>>2]+(b<<2)>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break b;b=b+1|0;if((b|0)!=256)continue;break}b=J[a+24>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(lp(a))}function n1(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;b=J[a>>2];if(b){b:{if(!(J[a+16>>2]|J[a+20>>2]))break b;d=-1;while(1){b=J[a>>2];e=J[a+28>>2];while(1){d=d+1|0;if((e|0)<=(d|0))break b;c=P(d,12)+b| -0;if(J[c>>2]<0)continue;break}b=J[a+16>>2];c:{if(!b)break c;e=J[c+8>>2];if(!e)break c;gc[b|0](e)}b=J[a+20>>2];if(!b)continue;c=J[c+4>>2];if(!c)continue;gc[b|0](c);continue}}Gf(b);J[a>>2]=0}if(!K[a+49|0])break a;Gf(a)}}function jfa(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;a:{if((c|0)>0)while(1){g=J[a+600>>2];e=J[a+608>>2];f=(c+e|0)>(g|0)?g-e|0:c;if((f|0)<=0)break a;d=b;h=J[a+604>>2];if((h|0)!=(b|0)){Ne(h,b,f);g=J[a+600>>2];e=J[a+608>>2];d=J[a+604>>2]}e=e+f|0;J[a+608>>2]=e;J[a+604>>2]=d+ -f;b:{if((e|0)<(g|0))break b;if(gf(a))break b;return-1}b=b+f|0;c=c-f|0;if((c|0)>0)continue;break}return 1}fa(70560,71137,48,94034);B()}function eKa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+296>>2];c=J[a+300>>2];a:{if(b>>>0>=c>>>0){b=a+40|0;J[a+300>>2]=b;J[a+296>>2]=b;c=J[a+304>>2]+(c-b|0)|0;J[a+304>>2]=c;if(J[a+32>>2]){e=J[a+36>>2]+J[a+28>>2]|0;d=-1;if((e|0)<=(c|0))break a;d=(e|0)>=(c+256|0)?256:e-c|0}else d=256;e=J[a+24>>2];bB(J[e>>2],c,0);c=Yd(b,1,d,J[e>>2])+b|0;J[a+300>>2]=c;b=J[a+296>>2];d=-1;if(c>>> -0<=b>>>0)break a}J[a+296>>2]=b+1;d=K[b|0]}return d|0}function cqa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){d=h<<2;while(1){f=f-1|0;a=e;while(1){c=K[l|0];J[b>>2]=c<<24|((P(K[i|0],c)+127&65535)>>>0)/255|((P(K[j|0],c)+127&65535)>>>0)/255<<8|((P(K[k|0],c)+127&65535)>>>0)/255<<16;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;l=l+1|0;a=a-1|0;if(a)continue;break}l=g+l|0;k=g+k|0;j=g+j|0;i=g+i|0;b=b+d|0;if(f)continue;break}}}function zG(a){a=a|0;var b= -0,c=0,d=0;c=bc-32|0;bc=c;a:{if(!K[a+89|0]){a=Kc(c+8|0,2378317,2373496,286,2401551,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}b=1;d=a+92|0;b:{if(!(J[d>>2]&1))break b;if(J[a+56>>2]-3>>>0<=1){a=J[a+48>>2];b=(J[a+48>>2]-J[a+44>>2]|0)+1|0;break b}if(!(J[d>>2]&4))break b;a=J[a+112>>2];b=(J[a+68>>2]-J[a- -64>>2]|0)+1|0}bc=c+32|0;return b|0}B()}function yw(a){var b=0,c=0,d=0;if(a){b=J[a+32>>2];if(b)d=J[b+80>>2];a:{if(!J[689540])break a;c=J[689538];if(!c)break a; -gc[c|0](a);b=J[a+32>>2]}if(!(!b|J[a+40>>2]!=2))E$(b,a);b=J[a+12>>2];if(b)jm(b);c=J[a+8>>2];b:{if(!c)break b;if(d)while(1){b=J[d+16>>2];if(b)while(1){if(c>>>0<=M[b+4>>2]&c>>>0>=b+20>>>0)break b;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}gc[J[659451]](c)}gc[J[659451]](a)}}function vCa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=bc-16|0;bc=b;a:{if(J[a+12>>2]>=16){d=a+8|0;while(1){f=0;c=J[a+16>>2];J[b+12>>2]=d;J[b+8>>2]=c;e=c;if(!c){J[b+4>>2]=d;J[b>>2]=0;break a}while(1){g=J[J[e+8>>2]+ -72>>2];if(g>>>0>>0){J[b+12>>2]=d;J[b+8>>2]=e;f=g;c=e}e=J[e>>2];if(e)continue;break}J[b+4>>2]=d;J[b>>2]=c;if(!c)break a;vV(J[c+8>>2]);Kn(d,b+8|0);if(J[a+12>>2]>15)continue;break}}bc=b+16|0;return}aj(b,d);B()}function nY(a){a=a|0;var b=0,c=0;J[a>>2]=2332584;a:{b=J[a+34068>>2];if((b|0)!=J[682100]){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+34076>>2];if((b|0)!=J[682136]){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+8>>2];if(b){c=J[b+32>>2];J[695492]= -0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(b)}b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;yc();B()}function HTa(a){a=a|0;var b=0,c=0;J[a>>2]=2182428;a:{b=J[a+20>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+24>>2];if(!(!b|(b|0)==2638352)){b=0;while(1){c=J[J[a+24>>2]+(b<<2)>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;b=b+1|0;if((b|0)!=256)continue;break}b=J[a+24>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)== -1)break a}return lp(a)|0}ea(0)|0;yc();B()}function Eyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(J[a+20>>2])while(1){c=J[b+8>>2];if(c&7)return-1;e=K[J[a+24>>2]+d|0];f=J[b+64>>2];if(!((f|0)<0|J[b+60>>2]<(f|0))){J[b+8>>2]=c|4;return-1}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;b:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break b}c=-1;if((Uc(b,e)|0)==-1)break a}d=d+1|0;if(d>>>0>2])continue;break}c=0}return c|0}function n8a(a,b,c){a=a|0;b=b|0;c=c|0;var d= -0,e=0,f=0,g=0;e=J[a+4>>2];if(c>>>0>=999999985){d=J[a>>2];J[d+20>>2]=56;J[d+24>>2]=3;gc[J[J[a>>2]>>2]](a)}if(b>>>0>=2){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=15;gc[J[J[a>>2]>>2]](a)}d=c+7&-8;f=d+16|0;c=zc(f);if(!c){g=J[a>>2];J[g+20>>2]=56;J[g+24>>2]=4;gc[J[J[a>>2]>>2]](a)}J[e+76>>2]=J[e+76>>2]+f;a=(b<<2)+e|0;b=J[a+60>>2];J[c+8>>2]=0;J[c+4>>2]=d;J[c>>2]=b;J[a+60>>2]=c;return c+16|0}function hDa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a=a+c|0;Zc(a+e|0,a,b-c|0);a:{if((e|0)<=0)break a;f=e&7;b= -K[d|0];d=0;c=0;if(e>>>0>=8){g=e&-8;e=0;while(1){H[a+c|0]=b;H[a+(c|1)|0]=b;H[a+(c|2)|0]=b;H[a+(c|3)|0]=b;H[a+(c|4)|0]=b;H[a+(c|5)|0]=b;H[a+(c|6)|0]=b;H[a+(c|7)|0]=b;c=c+8|0;e=e+8|0;if((g|0)!=(e|0))continue;break}}if(!f)break a;while(1){H[a+c|0]=b;c=c+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}}}function alb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[b+8>>2];f=J[a>>2];d=J[f+140>>2];g=J[f+32>>2];e=J[b+16>>2];if(e)c=(P(c,e)+36|0)/72|0;e=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((e|0)==J[g+ -12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23;if((e|0)!=(J[d+44>>2]+J[d+40>>2]|0))break a}c=0;rn(f,0);J[a+24>>2]=J[d+40>>2]<<6;J[a+28>>2]=0-(J[d+44>>2]<<6);J[a+36>>2]=L[d+4>>1]<<6}return c|0}function Uva(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{e=J[d>>2];if(!(!e|J[d+4>>2]!=(c|0))){if(J[b+4>>2]!=(a|0)?J[b>>2]:0)break a;f=d;d=J[e>>2];J[f>>2]=d;b=J[b>>2];if((b|0)!=(e|0)){g=c+8|0;f=J[e+4>>2];J[(d?d:g)+4>>2]=f;J[(f?f:g)>>2]=d;J[c+4>>2]=J[c+4>>2]-1;d=a+12|0;c=J[(b?b+4|0:d)>> -2];J[e>>2]=b;J[e+4>>2]=c;J[(c?c:a+8|0)>>2]=e;b=J[e>>2];J[(b?b+4|0:d)>>2]=e;J[a+4>>2]=J[a+4>>2]+1}return}aj(d,c);B()}aj(b,a);B()}function K5a(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0;d=bc-32|0;bc=d;O[d+8>>3]=c;O[d+16>>3]=b;e=J[a+8>>2];H[e+1|0]=1;J[d+28>>2]=0;f=d+28|0;h=Ke(e+4|0,f),i=1,H[h|0]=i;g=J[d+28>>2];O[g+8>>3]=c;O[g>>3]=b;J[e+4>>2]=J[e+4>>2]+1;e=J[a+4>>2];if(e){J[d+28>>2]=512;gc[J[J[e>>2]+308>>2]](e,f)|0;e=J[a+4>>2];gc[J[J[e>>2]+316>>2]](e,d+16|0,d+8|0)|0;a=J[a+4>>2];J[d+28>>2]=512; -gc[J[J[a>>2]+312>>2]](a,f)|0}bc=d+32|0;return 1}function IM(a,b,c){var d=0,e=0;if(!a)return;e=J[a+8>>2]+((b>>>0)%M[a>>2]<<2)|0;b=J[e>>2];a:{b:{if(b){a=J[b>>2];break b}a=J[a+4>>2];b=bd(1,24);if(!b)break a;a=(a|0)<=0?50:a;d=bd(a,4);J[b+20>>2]=d;if(!d)break a;J[b+16>>2]=1065353216;J[b+8>>2]=1;J[b>>2]=a;J[e>>2]=b}d=b+20|0;e=J[b+4>>2];c:{if((e|0)<(a|0)){a=J[d>>2];d=e;break c}a=yl(d,a<<2,a<<3);J[b+20>>2]=a;J[b>>2]=J[b>>2]<<1;d=J[b+4>>2]}N[(e<<2)+a>>2]=c;J[b+4>>2]=d+1}}function IE(a,b,c){a=a|0;b=b|0;c=c| -0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;a:{b:{if(c>>>0<11){d=a;H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;break b}if(c>>>0>2147483631)break a;g=e+8|0;if(c>>>0>=11){f=c+16&-16;d=f-1|0;d=(d|0)==11?f:d}else d=10;es(g,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}Mj(d,b,c+1|0);bc=e+16|0;return}Id(a);B()}function rjb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!c)break a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(!a)break a; -d=J[a+4>>2];if(!d)break a;d=J[d+24>>2];if(!d)break a;gc[d|0](a,c);if((b&-3)==1){J[c>>2]=J[c>>2]&-64;J[c+4>>2]=J[c+4>>2]&-64;J[c+8>>2]=J[c+8>>2]+63&-64;J[c+12>>2]=J[c+12>>2]+63&-64}if((b&-2)!=2)break a;J[c>>2]=J[c>>2]>>6;J[c+4>>2]=J[c+4>>2]>>6;J[c+8>>2]=J[c+8>>2]>>6;J[c+12>>2]=J[c+12>>2]>>6}}function hSa(a){a=a|0;var b=0,c=0,d=0,e=0;c=tc(rc(1584),a,1584);b=J[a+1044>>2];J[695492]=0;d=$(4,8)|0;e=J[695492];J[695492]=0;a:{b:{if((e|0)!=1){J[695492]=0;b=aa(3183,d|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)== -1){a=Z()|0;qc(d);break b}J[c+1044>>2]=b;d=J[c+1056>>2];J[695492]=0;b=aa(3376,d|0,16)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break a}a=Z()|0}qc(c);ba(a|0);B()}J[c+1048>>2]=b;tc(b,J[a+1048>>2],d<<4);return c|0}function eja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;while(1){a:{if((c|0)<=(f|0))break a;d=J[a+24>>2];g=J[a+28>>2];if(d>>>0>=g>>>0){if((gc[J[J[a>>2]+52>>2]](a,K[b|0])|0)==-1)break a;f=f+1|0;b=b+1|0}else{J[e+12>>2]=g-d;J[e+8>>2]=c-f;d=bc-16|0;bc=d;bc=d+16|0;d=e+8|0;g=e+12|0; -d=J[(J[d>>2]>2]?d:g)>>2];Mj(J[a+24>>2],b,d);J[a+24>>2]=d+J[a+24>>2];f=d+f|0;b=b+d|0}continue}break}bc=e+16|0;return f|0}function Sc(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;if((b|c|d)<0){J[f>>2]=6;return e|0}a:{if(!(d?b:0)){if(!e)break a;gc[J[a+8>>2]](a,e);break a}g=10;b:{if((2147483647/(b>>>0)|0)<(d|0))break b;c:{if(!c){e=gc[J[a+4>>2]](a,P(b,d))|0;g=!e<<6;break c}a=gc[J[a+12>>2]](a,P(b,c),P(b,d),e)|0;e=a?a:e;g=!a<<6}if(g|(c|0)>=(d|0)|!e)break b;g=0;wc(P(b,c)+e|0,0,P(d-c|0,b))}J[f>> -2]=g;return e|0}J[f>>2]=0;return 0}function RSa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+4>>2]=b;h=a,i=vd(b,4),J[h>>2]=i;c=J[a+4>>2];a:{if((c|0)<=0)break a;b=0;if(c>>>0>=4){g=c&-4;while(1){d=b<<2;J[d+J[a>>2]>>2]=0;J[J[a>>2]+(d|4)>>2]=0;J[J[a>>2]+(d|8)>>2]=0;J[J[a>>2]+(d|12)>>2]=0;b=b+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}c=c&3;if(!c)break a;while(1){J[J[a>>2]+(b<<2)>>2]=0;b=b+1|0;f=f+1|0;if((c|0)!=(f|0))continue;break}}return a|0}function Ph(a,b){var c=0,d=0,e=0;c=J[b+76>>2];a:{if(!((c| -0)>=0&(!c|J[694764]!=(c&-1073741825)))){b:{c=a&255;if((c|0)==J[b+80>>2])break b;d=J[b+20>>2];if((d|0)==J[b+16>>2])break b;J[b+20>>2]=d+1;H[d|0]=a;break a}c=ps(b,c);break a}d=b+76|0;c=J[d>>2];J[d>>2]=c?c:1073741823;c:{d:{c=a&255;if((c|0)==J[b+80>>2])break d;e=J[b+20>>2];if((e|0)==J[b+16>>2])break d;J[b+20>>2]=e+1;H[e|0]=a;break c}c=ps(b,c)}J[d>>2]=0}return c}function s6a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=0,e=0,f=0,g=Q(0),h=Q(0),i=0;h=b;b=N[a+264>>2];f=J[a+280>>2]-1|0;g=Q(f|0);b=Q(Q(Q(h-b)*g)/Q(N[a+ -268>>2]-b));a:{if(Q(R(b))>>0>f>>>0;b=N[a+272>>2];b=Q(Q(Q(c-b)*g)/Q(N[a+276>>2]-b));b:{if(Q(R(b))>>0>f>>>0|i|(e|d)<0))b=N[J[J[a+248>>2]+P(d,12)>>2]+(e<<2)>>2];return Q(b)}function bpb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24); -H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;H[d+16|0]=K[b+40|0];H[d+17|0]=K[b+41|0];H[d+18|0]=K[b+42|0];H[d+19|0]=K[b+43|0];H[d+20|0]=K[b+44|0];return ue(a,J[b>>2],13,d+8|0)|0}function If(a){var b=0,c=0,d=0;c=J[a+4>>2];a:{if(!(K[a|0]&6)|(c&16|K[a+8|0]&7))break a;b:{b=J[a+16>>2];d=J[a+24>>2]-b|0;if((d|0)>0){if((gc[J[J[a+52>>2]+4>>2]](J[a+56>>2],b,d)|0)!=(d|0))break b;c=J[a+4>>2];b=J[a+16>>2]}J[a+24>>2]=b;J[a+28>>2]=J[a+20>>2];J[a+4>>2]=c|32;break a}J[a+8>>2]=J[a+8>>2]|2}gc[J[J[a+ -52>>2]+12>>2]](J[a+56>>2])|0;c:{if(!(K[a+4|0]&8))break c;b=J[a+12>>2];if(!b)break c;qc(b);J[a+12>>2]=0}qc(a)}function xHa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;a=1;c:{if(c>>>0<=1){a=0;Hc(d,1,2356396,0);break c}ld(b,e+12|0,1);ld(b+1|0,e+8|0,1);b=J[e+8>>2];if(!((c-2>>>0)%(((b>>>5&2)+(b>>>4&3)|0)+2>>>0)|0))break c;a=0;Hc(d,1,2356396,0)}bc=e+16|0;return a|0}fa(2353829,2346358,3631,2356379);B()}fa(2346477,2346358,3632,2356379);B()}fa(2346590,2346358, -3633,2356379);B()}function tZ(a,b,c,d){var e=0;e=1;a:{b:{c:{d:switch(cw(J[a+4>>2])|0){case 2:e=2;break c;case 3:e=8;break c;case 4:case 5:e=d?10:5;break c;case 6:e=3;break c;case 7:e=9;break c;case 0:case 1:break c;case 8:break d;default:break b}e=d?10:5}if(d){if(e>>>0<7)break b;break a}if(e>>>0<7)break a}qc(Rc(a));return 0}d=rc(48);J[d+40>>2]=-1;J[d+32>>2]=0;O[d+24>>3]=c;J[d+20>>2]=b;J[d+16>>2]=a;J[d+4>>2]=e;J[d>>2]=1;return d}function pib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0, -i=0,j=0,k=0;f=bc-16|0;bc=f;fh(a,J[a+8>>2]);g=J[a>>2];J[f+12>>2]=g;h=J[a+8>>2];a:{if(h>>>0<=g>>>0)break a;b:{if(e){i=3;if(K[g|0]!=60)break a;J[f+12>>2]=g+1;j=d,k=m5(f+12|0,h,b,c),J[j>>2]=k;b=J[f+12>>2];J[a>>2]=b;if(K[b|0]!=62&b>>>0>2])break a;b=b+1|0;break b}j=d,k=m5(f+12|0,h,b,c),J[j>>2]=k;b=J[f+12>>2]}J[a>>2]=b;i=0}bc=f+16|0;return i|0}function oj(a,b){var c=0,d=0,e=0;a:{c=J[b>>2];d=c+J[a>>2]|0;if((d|0)>J[a+4>>2]){if((c|0)<0)break a;c=d<<2;e=J[a+8>>2];b:{if(!e){c=zc(c);break b}c=Kh(e,c)}if(!c)return-1; -J[a+4>>2]=d;J[a+8>>2]=c;c=J[b>>2]}if((c|0)<=0)return 0;c=J[a>>2];d=0;while(1){e=J[J[b+8>>2]+(d<<2)>>2];J[e>>2]=J[e>>2]+1;J[J[a+8>>2]+(c<<2)>>2]=e;c=c+1|0;J[a>>2]=c;d=d+1|0;if((d|0)>2])continue;break}return 0}fa(203758,198640,706,206656);B()}function zO(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=zc(40);J[e>>2]=0;e=zf(a+624|0,1,e,4);i=cc;a:{b:{while(1){if(d){h=0;break a}d=J[J[a+4>>2]+8>>2];J[695492]=0;h=ha(d|0,a|0,1,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;f=-1;c:{d:{if(!d)break d;g=J[695493]; -if(!g)break d;f=Jc(J[d>>2],e,i);if(!f)break c;cc=g}d=cc;if((f|0)==1)continue;break a}break}qc(e);ef(d,g);B()}a=Z()|0;qc(e);ba(a|0);B()}qc(e);return h}function jn(a,b,c,d,e,f){var g=0;a:{if((e|0)<=0)break a;b=(b<<2)+a|0;d=(d<<2)+c|0;g=e&3;b:{if(!g){c=e;break b}a=0;c=e;while(1){tc(J[d>>2],J[b>>2],f);c=c-1|0;d=d+4|0;b=b+4|0;a=a+1|0;if((g|0)!=(a|0))continue;break}}if(e>>>0<4)break a;while(1){tc(J[d>>2],J[b>>2],f);tc(J[d+4>>2],J[b+4>>2],f);tc(J[d+8>>2],J[b+8>>2],f);tc(J[d+12>>2],J[b+12>>2],f);d=d+16|0; -b=b+16|0;a=c-5|0;c=c-4|0;if(a>>>0<4294967294)continue;break}}}function d_a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+4>>2];a=J[d+4>>2];a:{b:{if(!a)break b;if((_q(a)|0)!=1)break b;e=b+1|0;while(1){a=Bt(J[d+4>>2]);c=gm(J[d+4>>2]);if((a|0)==-1|(c|0)==-1|(b|0)>(c|0))break b;f=1;if((a|0)==1&(c|0)==(e|0))break a;c:{if(a>>>0>15)break c;if(!(1<>2])|0)==1)continue;break}}f=0}return f|0}function Re(a,b,c){a=a|0;b=b|0; -c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;a:{b:{if(c>>>0<2){d=a;H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;break b}if(c>>>0>1073741807)break a;g=e+8|0;if(c>>>0>=2){f=c+4&-4;d=f-1|0;d=(d|0)==2?f:d}else d=1;Cn(g,a,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}kk(d,b,c+1|0);bc=e+16|0;return}Id(a);B()}function Jgb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];J[a+48>>2]=b;d=J[a+28>>2];J[a+52>>2]=d;e=J[a+8>>2];f= -e+J[a>>2]|0;J[a+8>>2]=f>>1;c=b;b=J[a+16>>2];c=c+b|0;J[a+40>>2]=c>>1;b=b+e|0;e=b+f|0;J[a+16>>2]=e>>2;b=b+c|0;J[a+32>>2]=b>>2;c=d;d=J[a+20>>2];f=c+d|0;J[a+44>>2]=f>>1;c=J[a+12>>2];g=c+J[a+4>>2]|0;J[a+12>>2]=g>>1;J[a+24>>2]=b+e>>3;b=d+c|0;d=b+f|0;J[a+36>>2]=d>>2;b=b+g|0;J[a+20>>2]=b>>2;J[a+28>>2]=b+d>>3}function Gta(a,b,c,d,e,f,g,h,i){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;var j=0;if(!(!f|!e)){d=L[a+26>>1];g=P(g,d);a=J[a+56>>2];j=h<<2;while(1){f=f-1|0;h=e;while(1){c=K[i+3|0]^255;J[b>> -2]=K[a+((P(c,K[i+1|0]^255)>>>0)/255|0)|0]<<8|K[a+((P(K[i|0]^255,c)>>>0)/255|0)|0]|K[a+((P(K[i+2|0]^255,c)>>>0)/255|0)|0]<<16|-16777216;i=d+i|0;b=b+4|0;h=h-1|0;if(h)continue;break}i=g+i|0;b=b+j|0;if(f)continue;break}}}function kwb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;c=J[a+20>>2];a:{if(!c){c=0;break a}e=J[a+28>>2];if(e){Xg(c,e,1);c=J[a+28>>2];J[a+28>>2]=0;J[a+24>>2]=c+J[a+24>>2];c=J[a+20>>2]}J[d+12>>2]=0;Yd(d+12|0,1,(b|0)>=4?4:b,c);c=J[d+12>>2];b:{c:switch(b-2|0){case 0:c=(c<<8|c>>>8)&65535; -break b;case 2:break c;default:break b}c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}J[a+24>>2]=J[a+24>>2]+b}bc=d+16|0;return c|0}function jia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)!=1){f=bc-1040|0;bc=f;g=J[694731];e=f+16|0;b=Jl(c);d=Qc(b);a:{if(d>>>0>=1024){tc(e,b,1023);H[e+1023|0]=0;d=68;break a}tc(e,b,d+1|0);d=0}b=e;b:{c:switch(d+1|0){case 0:d=J[694731];break;case 1:break b;default:break c}b=39181;if((d|0)==28)break b;ra();B()}if(!K[b|0]){J[f>>2]=c;Gi(e,1024,17415,f);b=e}J[694731]=g; -Dj(a,b);bc=f+1040|0;return}Dj(a,4800)}function SA(a,b,c){var d=0,e=0;J[b>>2]=0;J[c>>2]=0;d=J[a>>2];a:{if((d|0)<4)break a;while(1){e=J[a+4>>2]+d|0;b:{if(!Ec(e-4|0,778749)){d=d-4|0;dm(a,d,4);J[b>>2]=1;break b}c:{if(d>>>0>=6){if(!Ec(e-6|0,779994)){d=d-6|0;dm(a,d,6);J[c>>2]=1;break b}if(d>>>0<7)break c;if(Ec(e-7|0,780985))break c;d=d-7|0;dm(a,d,7);break b}if((d|0)!=5)break a}if(Ec(e-5|0,782025))break a;d=d-5|0;dm(a,d,5)}if((d|0)>3)continue;break}}}function $M(a,b,c,d){var e=0;e=bc+-64|0;bc=e;J[e+24>> -2]=0;J[e+28>>2]=0;J[e+56>>2]=0;J[e+60>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=d;J[e+16>>2]=0;J[e+20>>2]=0;J[e+12>>2]=b;J[e+8>>2]=a;J[e+20>>2]=c;a=-101;a:{if(Iw(e+8|0,219244,56))break a;while(1){b=zk(e+8|0,1);a=0;if((b|0)==1)break a;if(!(J[e+24>>2]?b:1))continue;break}a=b>>>0>1?-101:0}bc=e- -64|0;return a}function z$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;if(J[689531]){J[e>>2]=J[b+8>>2];gc[J[659549]](J[689514],32699,e)}c=CB(a);a:{if(!c)break a; -f=xk(J[b+8>>2]);g=f+5|0;d=gc[J[659450]](g)|0;if(!d){ke(a,0);gc[J[659451]](c);break a}H[d|0]=32;H[d+1|0]=37;a=d+f|0;H[a+4|0]=0;H[a+2|0]=59;H[a+3|0]=32;tc(d+2|0,J[b+8>>2],f);J[c+24>>2]=g;J[c+16>>2]=d;J[c+12>>2]=d;J[c+40>>2]=3179;J[c+20>>2]=d+g;h=c}bc=e+16|0;return h}function yC(a){var b=0,c=0,d=0;b=J[a+408>>2];if(b){c=b-1|0;J[a+408>>2]=c;d=J[a+416>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){qc(b);c=J[a+408>>2]}b=c;c=b-1|0;J[a+408>>2]=c;if(b)continue;break}}c=J[a+416>>2];if(c)qc(c);b=J[a+184>>2];if(b){c= -b-1|0;J[a+184>>2]=c;d=J[a+192>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){qc(b);c=J[a+184>>2]}b=c;c=b-1|0;J[a+184>>2]=c;if(b)continue;break}}a=J[a+192>>2];if(a)qc(a)}function lm(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=bc-16|0;bc=e;a:{b:{if(!(c?b:0)){H[a|0]=0;H[a+11|0]=0;break b}J[e+12>>2]=0;J[e+8>>2]=0;Ep(b,c,e+12|0,e+8|0,d);c=J[e+8>>2];if(c>>>0>=2147483632)break a;d=J[e+12>>2];c:{if(c>>>0<=10){H[a+11|0]=c;break c}f=(c|15)+1|0;b=rc(f);J[a+8>>2]=f|-2147483648;J[a>>2]=b;J[a+4>>2]=c; -a=b}g=Zc(a,d,c)+c|0,h=0,H[g|0]=h;if(!d)break b;qc(d)}bc=e+16|0;return}Id(a);B()}function aTa(){var a=0;a=J[660742];if(a)qc(dd(a));a=J[660749];if(a)qc(dd(a));a=J[660756];if(a)qc(dd(a));a=J[660763];if(a)qc(dd(a));a=J[660770];if(a)qc(dd(a));a=J[660777];if(a)qc(dd(a));a=J[660784];if(a)qc(dd(a));a=J[660791];if(a)qc(dd(a));a=J[660798];if(a)qc(dd(a));a=J[660805];if(a)qc(dd(a));a=J[660812];if(a)qc(dd(a));a=J[660819];if(a)qc(dd(a));a=J[660826];if(a)qc(dd(a));a=J[660833];if(a)qc(dd(a))}function YXa(a,b,c,d, -e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if((e|0)<=0)break a;h=J[a+28>>2];if(!h)break a;g=J[J[a+408>>2]+8>>2];while(1){i=e-1|0;j=J[J[c>>2]+(d<<2)>>2];a=J[b>>2];f=0;while(1){H[f+j|0]=J[((K[a+2|0]<<2)+g|0)+2048>>2]+(J[((K[a+1|0]<<2)+g|0)+1024>>2]+J[(K[a|0]<<2)+g>>2]|0)>>>16;a=a+3|0;f=f+1|0;if((h|0)!=(f|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=i;if(a)continue;break}}}function Jdb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{if(!K[a+733|0])break a;d=J[a+736>>2];if(!d)break a; -if(!K[d+32|0]){e=g4(a,0);d=J[a+736>>2];J[d+36>>2]=e}if(!K[d+33|0])return J[d+36>>2];d=J[d+40>>2];e=J[d+28>>2];b:{if(e){f=e;e=J[d+20>>2];e=(b>>>0>>0?b:e-1|0)<<2;b=J[f+e>>2];f=J[e+J[d+24>>2]>>2];break b}e=6;if(M[J[d+4>>2]>>2]<=b>>>0)break a}g=c,h=rL(a,d,f,b)+J[c>>2]|0,J[g>>2]=h;e=0}return e|0}function Idb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{if(!K[a+733|0])break a;d=J[a+736>>2];if(!d)break a;if(!K[d+44|0]){e=g4(a,1);d=J[a+736>>2];J[d+48>>2]=e}if(!K[d+45|0])return J[d+48>>2];d=J[d+ -52>>2];e=J[d+28>>2];b:{if(e){f=e;e=J[d+20>>2];e=(b>>>0>>0?b:e-1|0)<<2;b=J[f+e>>2];f=J[e+J[d+24>>2]>>2];break b}e=6;if(M[J[d+4>>2]>>2]<=b>>>0)break a}g=c,h=rL(a,d,f,b)+J[c>>2]|0,J[g>>2]=h;e=0}return e|0}function Fia(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;a:{b=J[a+64>>2];if(b){J[c+4>>2]=6547;b=ng(c+8|0,b,c+4|0);e=J[J[a>>2]+24>>2];J[695492]=0;e=$(e|0,a|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;d=J[b>>2];J[b>>2]=0;d=fg(d);J[a+64>>2]=0;f=J[J[a>>2]+12>>2];J[695492]=0;ga(f|0,a|0,0,0)| -0;f=J[695492];J[695492]=0;if((f|0)==1)break a;EQ(b);a=d|e?0:a}else a=0;bc=c+16|0;return a|0}a=Z()|0;EQ(b);ba(a|0);B()}function l7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);g=b;b=K[a+2|0];h=P(g,f-b|0)+255>>>8|0;g=b;b=255-e|0;H[a+2|0]=h+(P(g,b)+255>>>8|0);e=c;c=K[a+1|0];H[a+1|0]=(P(e,f-c|0)+255>>>8)+(P(b,c)+255>>>8);c=a;a=K[a|0];H[c|0]=(P(f-a| -0,d)+255>>>8)+(P(a,b)+255>>>8)}}function Lf(a,b){var c=0,d=0;c=bc-32|0;bc=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=c+8;a:{d=J[a+664>>2];if(J[d>>2]==(b|0)?d:0)break a;d=J[a+656>>2];b:{if(!d)break b;J[c+16>>2]=0;J[c+8>>2]=b;d=EF(c+4|0,d,J[a+660>>2]);if(!d){J[a+664>>2]=0;break b}d=J[d>>2];J[a+664>>2]=d;if(d)break a}a=J[a+628>>2];J[c>>2]=b;Nc(a,75002,75305,c);fa(76187,76762,811,75002);B()}bc=c+32|0;return d}function zha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=Q(0),g= -0,h=Q(0);e=bc-16|0;bc=e;a:{b:{c:{if((a|0)!=(b|0)){g=J[694731];J[694731]=0;Wg();d=bc-16|0;bc=d;nF(d,a,e+12|0,0);f=$Q(J[d>>2],J[d+4>>2],J[d+8>>2],J[d+12>>2]);bc=d+16|0;a=J[694731];if(!a)break c;if(J[e+12>>2]!=(b|0))break b;h=f;if((a|0)!=68)break a;break b}J[c>>2]=4;break a}J[694731]=g;if(J[e+12>>2]==(b|0))break a}J[c>>2]=4;f=h}bc=e+16|0;return Q(f)}function s5(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=bc-16|0;bc=f;J[f+12>>2]=0;g=J[d>>2];if(g){if(g)gc[J[c+8>>2]](c,g);J[d>>2]=0}a:{if(!b){c=0;break a}b=b-!K[(a+ -b|0)-1|0]|0;if(!b){c=0;break a}b:{while(1){if(H[a+e|0]<32)break b;e=e+1|0;if((b|0)!=(e|0))continue;break}if(!b)break b;c=Zd(c,b+1|0,f+12|0);e=J[f+12>>2];if(e)break a;h=tc(c,a,b)+b|0,i=0,H[h|0]=i;e=J[f+12>>2];break a}e=0;c=0}J[d>>2]=c;bc=f+16|0;return e}function qs(a,b){var c=0,d=0,e=0,f=0;a:{if(!b)break a;d=b&3;b:{if(!d){c=b;break b}c=b;while(1){f=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=f;a=a+2|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){b=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]= -b;b=K[a+3|0];H[a+3|0]=K[a+2|0];H[a+2|0]=b;b=K[a+5|0];H[a+5|0]=K[a+4|0];H[a+4|0]=b;b=K[a+7|0];H[a+7|0]=K[a+6|0];H[a+6|0]=b;a=a+8|0;c=c-4|0;if(c)continue;break}}}function dxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b&3;b:{if(!d){c=b;break b}c=b;while(1){J[a>>2]=0;J[a+4>>2]=J[682146];a=a+8|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){J[a>>2]=0;b=J[682146];J[a+16>>2]=0;J[a+12>>2]=b;J[a+8>>2]=0;J[a+4>>2]=b;b=J[682146];J[a+28>>2]=b;J[a+24>>2]=0;J[a+20>> -2]=b;a=a+32|0;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}}function Vsa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc+-64|0;bc=c;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;d=Jn(c+32|0,2389436);J[695492]=0;e=aa(5481,c+4|0,d|0)|0;f=J[695492];J[695492]=0;a:{b:{if((f|0)!=1){J[695492]=0;ca(5482,a|0,b|0,e|0);a=J[695492];J[695492]=0;if((a|0)==1)break b;Bd(e);Bd(d);bc=c- -64|0;return}a=Z()|0;break a}a=Z()|0;Bd(e)}Bd(d);ba(a|0);B()}function $x(a){var b=0, -c=0,d=0,e=0,f=0,g=0,h=0,i=0;while(1){g=(e<<2)+a|0;b=J[g+20>>2];if(b){c=J[b>>2];if((c|0)>0)while(1){f=J[b+8>>2];c=c-1|0;h=c<<2;d=J[f+h>>2];i=J[d>>2];J[d>>2]=i-1;if((i|0)<=1){gc[J[J[d+4>>2]>>2]](d);qc(d);f=J[b+8>>2];c=J[b>>2]-1|0}J[f+h>>2]=0;J[b>>2]=c;if((c|0)>0)continue;break}c=J[b+8>>2];if(c)qc(c);qc(b);J[g+20>>2]=0}e=e+1|0;if((e|0)!=13)continue;break}b=J[a+16>>2];if(b)ym(b);qc(a)}function au(a,b){var c=0,d=0,e=0;c=bc-16|0;bc=c;J[c+12>>2]=0;e=Gg(a,c+12|0);d=J[c+12>>2];a:{if(d)break a;b:{c:{d:{e:{e= -e&255;switch(e-253|0){case 1:break c;case 2:break d;case 0:break e;default:break b}}e=Wd(a,c+12|0);d=J[c+12>>2];if(!d)break b;break a}a=Gg(a,c+12|0);d=J[c+12>>2];if(d)break a;e=(a&255)+253|0;break b}a=Gg(a,c+12|0);d=J[c+12>>2];if(d)break a;e=(a&255)+506|0}I[b>>1]=e;d=0}bc=c+16|0;return d}function Vaa(a,b){a=a|0;b=b|0;if((b|0)==5){b=zc(148);J[a+584>>2]=b;if(b){J[b+144>>2]=0;J[b+96>>2]=0;J[b+116>>2]=0;J[b+80>>2]=J[a+8>>2];J[a+556>>2]=682;J[a+548>>2]=682;J[a+540>>2]=682;J[a+520>>2]=683;J[a+516>>2]=684; -J[a+572>>2]=685;J[a+560>>2]=686;J[a+552>>2]=686;J[a+544>>2]=686;J[a+536>>2]=687;J[a+532>>2]=688;J[a+524>>2]=689;pE(a);return 1}Nc(J[a+628>>2],97824,70758,0);return 0}fa(69566,70324,1062,97824);B()}function Bd(a){var b=0,c=0,d=0;a:{b=J[a+24>>2];b:{if(b)while(1){c=J[b>>2];d=J[J[a>>2]+16>>2];J[695492]=0;da(d|0,b|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break b;qc(b);b=c;if(b)continue;break}J[a+4>>2]=0;J[a+24>>2]=0;J[695492]=0;ci(a+16|0,4,0);c=J[695492];J[695492]=0;if((c|0)!=1)break a}na(ea(0)|0)|0;J[695492]= -0;ka(4893);c=J[695492];J[695492]=0;if((c|0)!=1)break a;ea(0)|0;yc();B()}_c(a+16|0);return a}function tt(a){var b=0,c=0,d=0,e=0;if(J[a+8>>2]>0)while(1){b=J[a>>2];e=d<<6;c=b+e|0;c=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);if(c){qc(c);b=J[a>>2]}c=b+e|0;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(c){qc(c);b=J[a>>2]}b=b+e|0;b=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(b)qc(b);d=d+1|0;if((d|0)>2])continue;break}b=J[a>>2];if(b)qc(b);b=J[a+4>>2];if(b)qc(b);return a}function tdb(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;J[d>>2]=0;J[d+4>>2]=0;e=J[a+496>>2];if(e){a=J[e+36>>2];e=(a+(J[e+40>>2]<<4)|0)-16|0;a:{if(a>>>0>e>>>0)break a;c=b<<16|c;while(1){f=(e-a>>4)/2|0;b=(f<<4)+a|0;g=J[b>>2]<<16|J[b+4>>2];if((c|0)==(g|0)){a=(f<<4)+a|0;J[d>>2]=J[a+8>>2];h=J[a+12>>2];break a}f=c>>>0>g>>>0;a=f?b+16|0:a;e=f?e:b-16|0;if(a>>>0<=e>>>0)continue;break}}J[d+4>>2]=h}return 0}function qub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>> -2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){f=K[d|0];d=d+1|0;b=128}b=b&255;H[c|0]=b&f?-1:0;c=c+2|0;b=b>>>1|0;e=e+1|0;if((e|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function lub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b& -255)){f=K[d|0];d=d+1|0;b=128}b=b&255;H[c|0]=b&f?-1:0;c=c+4|0;b=b>>>1|0;e=e+1|0;if((e|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function ecb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[b+8>>2];f=J[a>>2];g=J[f+32>>2];e=J[f+132>>2];d=J[b+16>>2];if(d)c=(P(c,d)+36|0)/72|0;d=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((d|0)==J[g+12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23;if((d|0)!=L[e+96>>1])break a}c= -0;rn(f,0);b=L[e+80>>1];J[a+24>>2]=b<<6;J[a+28>>2]=b-L[e+96>>1]<<6;J[a+36>>2]=L[e+102>>1]<<6}return c|0}function Lk(a,b,c){var d=0,e=0;e=-1;a:{b:{if(wh(a,J[c>>2]))break b;if(J[J[c+104>>2]+8>>2]){d=Fi(0,0);if(!d)break b;if(gc[J[J[c+104>>2]+8>>2]](c,b,d)|0)break a;e=Zi(d);if((e|0)<0)break a;J[c+4>>2]=e;if((Mg(d,0,0)|0)<0)break a;if(wh(a,J[c+4>>2]+2|0))break a;if((xn(a,d,J[c+4>>2])|0)<0)break a;If(d)}if(J[c>>2]==65361)J[b>>2]=J[c+48>>2];e=0;if(J[682644]<=0)break b;gE(c,J[651370])}return e}If(d);return-1} -function KEa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+4>>2]=0;J[a+8>>2]=0;d=a+16|0;c=d;J[c>>2]=0;J[c+4>>2]=0;J[a>>2]=a+4;c=a+28|0;J[c>>2]=0;J[c+4>>2]=0;J[a+12>>2]=d;J[a+24>>2]=c;J[695492]=0;c=Gh(b);d=J[695492];J[695492]=0;a:{if((d|0)==1)break a;if(!c){J[695492]=0;da(4937,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}return a|0}b=Z()|0;cp(a+24|0,J[a+28>>2]);yv(a+12|0,J[a+16>>2]);cp(a,J[a+4>>2]);ba(b|0);B()}function h9(a){var b=0,c=0,d=0,e=0,f=0,g=0;J[a+104>>2]=-1;I[a+100>>1]=0;J[a+96>>2]=-1;J[a+72>> -2]=0;b=J[a+8>>2];if((b|0)>0){d=J[a+12>>2];while(1){c=J[d>>2];if((c|0)>0){e=J[d+4>>2];f=0;while(1){if(J[e>>2]>0){c=J[e+4>>2];b=0;while(1){J[c>>2]=0;c=c+4|0;b=b+1|0;if((b|0)>2])continue;break}c=J[d>>2]}e=e+20|0;f=f+1|0;if((f|0)<(c|0))continue;break}b=J[a+8>>2]}d=d+16|0;g=g+1|0;if((g|0)<(b|0))continue;break}}}function Xib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b+8>>2];d=J[a>>2];f=J[d+32>>2];e=J[b+16>>2];if(e)c=(P(c,e)+36|0)/72|0;e=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((e|0)==J[f+ -12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23;if((e|0)!=(J[d+208>>2]+J[d+204>>2]|0))break a}c=0;rn(d,0);J[a+24>>2]=J[d+204>>2]<<6;J[a+28>>2]=0-(J[d+208>>2]<<6);J[a+36>>2]=I[d+236>>1]<<6}return c|0}function Tkb(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;i=J[a+20>>2];h=J[a+16>>2];a:{b:{if(h){e=J[b>>2]+1|0;a=h>>>1|0;g=h;while(1){d=c+g>>>1|0;d=a>>>0>=g>>>0?d:a>>>0>>0?d:a;f=J[(d<<3)+i>>2];if((f|0)==(e|0)){c=d;break b}a=(e+d|0)-f|0;f=e>>>0>>0;c=f?c:d+1|0;g=f?d:g;if(c>>> -0>>0)continue;break}}e=0;if(c>>>0>=h>>>0)break a;e=J[(c<<3)+i>>2]}j=L[((c<<3)+i|0)+4>>1]+1&65535}J[b>>2]=e;return j|0}function H3(a){var b=0,c=0,d=0;b=J[a+104>>2];if(b){c=b-1|0;J[a+104>>2]=c;d=J[a+112>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){qc(b);c=J[a+104>>2]}b=c;c=b-1|0;J[a+104>>2]=c;if(b)continue;break}}c=J[a+112>>2];if(c)qc(c);b=J[a+84>>2];if(b){c=b-1|0;J[a+84>>2]=c;d=J[a+92>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){qc(b);c=J[a+84>>2]}b=c;c=b-1|0;J[a+84>>2]=c;if(b)continue;break}}a= -J[a+92>>2];if(a)qc(a)}function Dv(a,b){var c=0,d=0;c=bc-16|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c+11|0]=b;H[c+12|0]=b>>>8;H[c+13|0]=b>>>16;H[c+14|0]=b>>>24;a:{if(!a)break a;b=J[a+644>>2];if((b|0)<=0)break a;d=J[a+648>>2];a=d+P(b,5)|0;while(1){b=a-5|0;if((K[c+11|0]|K[c+12|0]<<8|(K[c+13|0]<<16|K[c+14|0]<<24))==(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24)))return K[a-1|0];a=b;if(b>>>0>d>>>0)continue;break}}return 0}function Tda(a){a=a|0;if(K[2782328])return J[695581];if(!K[2782840])H[2782840]= -1;rf(2782672,2623860);rf(2782684,2623888);rf(2782696,2623916);rf(2782708,2623948);rf(2782720,2623988);rf(2782732,2624024);rf(2782744,2624052);rf(2782756,2624088);rf(2782768,2624104);rf(2782780,2624120);rf(2782792,2624136);rf(2782804,2624152);rf(2782816,2624168);rf(2782828,2624184);H[2782328]=1;J[695581]=2782672;return 2782672}function Hf(a){a=a|0;var b=0,c=0;b=J[a+536>>2];if(b){c=J[b+88>>2];J[a+540>>2]=c;H[b+32|0]=1;H[c+34|0]=1}a:{b:{b=J[a+608>>2];if(!b)break b;b=gc[J[a+152>>2]](b)|0;J[a+636>>2]= -b;if(!b)break a;b=gc[J[a+152>>2]](J[a+608>>2])|0;J[a+640>>2]=b;if(b)break b;break a}b=gc[J[a+152>>2]](J[a+316>>2]<<3)|0;J[a+644>>2]=b;if(!b)break a;c:{if(J[a+968>>2]){a=ru(a,1,1,0);if(a)break c}a=0}return a|0}Dc(a,1,0,0);return 1}function Enb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1766015824){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];e=J[c+36>>2];J[b+36>>2]=e;H[b+44|0]=K[c+44|0];d=J[c+48>>2];J[b+48>>2]=d;a:{if(e){d=gc[J[a+152>>2]](e)|0;J[b+40>>2]=d;if(!d)break a;tc(d,J[c+40>>2],J[b+ -36>>2]);d=J[b+48>>2]}if(d){d=gc[J[a+152>>2]](d)|0;J[b+52>>2]=d;if(!d)break a;tc(d,J[c+52>>2],J[b+48>>2])}return 0}Dc(a,1,0,0);return 1}function Ejb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=6;b=Qc(c);f=b+6|0;a:{b:{if((b|0)<=-6){if(f)break a;a=0;break b}a=J[a>>2];a=gc[J[a+4>>2]](a,f)|0;if(!a)return 64;wc(a,0,f)}g=0;c=tc(a,c,b);a=c+b|0;b=K[242416]|K[242417]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[242412]|K[242413]<<8|(K[242414]<<16|K[242415]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3| -0]=b>>>24;J[d>>2]=c;J[e>>2]=0}return g|0}function wyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=bc-32|0;bc=d;c=J[a+20>>2];J[d+20>>2]=K[a+24|0];J[d+16>>2]=c;cd(b,208656,d+16|0);g=J[a+20>>2];if(g){c=K[a+24|0];while(1){e=c&255;c=0;if(e){while(1){J[d+8>>2]=J[(J[a+28>>2]+(P(e,f)<<2)|0)+(c<<2)>>2];J[d+4>>2]=c;J[d>>2]=f;cd(b,208760,d);c=c+1|0;e=K[a+24|0];if(c>>>0>>0)continue;break}g=J[a+20>>2];c=e}f=f+1|0;if(g>>>0>f>>>0)continue;break}}bc=d+32|0}function wta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a>> -2]=0;a:{if(c){J[695492]=0;b=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=0;J[b>>2]=2413944;J[695492]=0;aa(4985,a|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;d=$(4,c+1|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b+8>>2]=c;J[b+12>>2]=d;H[c+d|0]=0}return}b=Z()|0;vc(a);ba(b|0);B()}function gE(a,b){var c=0,d=0,e=0,f=0,g=0;d=bc-32|0;bc=d;e=J[a>>2];c=2631872;while(1){g=c;f=J[c>>2];if((f|0)!=(e|0)){c=c+24|0;if((f|0)>=0)continue}break}J[d+ -20>>2]=J[g+4>>2];J[d+16>>2]=e;cd(b,199203,d+16|0);c=J[a>>2];a:{if(!(c-65426>>>0<2|(c|0)==65359|((c|0)==65497|(c&-16)==65328))){J[d>>2]=J[a+4>>2]+2;cd(b,200274,d);c=J[J[a+104>>2]+12>>2];if(c){gc[c|0](a,b)|0;break a}Ph(10,b);break a}Ph(10,b)}bc=d+32|0}function dKa(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+296>>2];b=J[a+300>>2];a:{if(c>>>0>=b>>>0){c=a+40|0;J[a+300>>2]=c;J[a+296>>2]=c;b=J[a+304>>2]+(b-c|0)|0;J[a+304>>2]=b;if(J[a+32>>2]){e=J[a+36>>2]+J[a+28>>2]|0;d=-1;if((e|0)<=(b|0))break a;d=(e|0)>=(b+256| -0)?256:e-b|0}else d=256;e=J[a+24>>2];bB(J[e>>2],b,0);b=Yd(c,1,d,J[e>>2])+c|0;J[a+300>>2]=b;c=J[a+296>>2];d=-1;if(b>>>0<=c>>>0)break a}d=K[c|0]}return d|0}function _ra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-32|0;bc=d;a:{b:{if(!(J[a+36>>2]>0?J[a+24>>2]:0)){a=Kc(d+8|0,2390436,2378846,505,2415246,0);break b}if(J[a+32>>2]<=J[a+28>>2])break a;a=Kc(d+8|0,2390622,2378846,507,2415246,0)}J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0)}B()}e=J[a+16>>2];b=gc[J[J[e>>2]+12>> -2]](e,b,c)|0;J[a+28>>2]=b+J[a+28>>2];bc=d+32|0;return b|0}function Ata(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a>>2]=0;a:{if(c){J[695492]=0;b=$(4,16)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=0;J[b>>2]=2414676;J[695492]=0;aa(4985,a|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[695492]=0;d=$(4,c+1|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;J[b+8>>2]=c;J[b+12>>2]=d;H[c+d|0]=0}return}b=Z()|0;vc(a);ba(b|0);B()}function lmb(a){a=a|0;var b=0,c=0,d=0, -e=0,f=0,g=0,h=0,i=0;b=bc-16|0;bc=b;a:{if(!a){g=1;break a}h=J[a+72>>2];i=J[a+96>>2];c=J[a+104>>2];zo(a+108|0);d=c?J[c>>2]:0;f=Dr(d);J[a+108>>2]=f;if((d|0)<=0)break a;a=0;while(1){q7(c,a,b+8|0,b+4|0);jj(i,a,b+12|0);e=cg(h,J[b+12>>2]);J[b>>2]=e;zl(f,Q(J[b+8>>2]),Q((J[b+4>>2]+(e?J[e+4>>2]:-1)|0)-13|0));wd(b);a=a+1|0;if((d|0)!=(a|0))continue;break}}bc=b+16|0;return g|0}function cua(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;a:{if(!(J[b>>2]>2]&J[b+4>>2]>2])){a=Kc(c+8|0,2375471,2373542,348, -2413308,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}d=J[b+4>>2];J[a+16>>2]=J[b>>2];J[a+20>>2]=d;d=J[b+12>>2];J[a+24>>2]=J[b+8>>2];J[a+28>>2]=d;J[a+44>>2]=0;J[a+48>>2]=1;J[a+36>>2]=0;J[a+40>>2]=1;bc=c+32|0;return}B()}function bUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(b>>>0>2147482623)break a;e=b;d=J[a+1032>>2];if(!((d|0)<=(b|0)&(b+4|0)<=(J[a+1036>>2]+d|0))){d=0;if(Xg(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;b=Yd(a+8|0,1,1024,J[a+4>>2]);J[a+1036>> -2]=b;if((b|0)<4)break a;d=J[a+1032>>2]}a=(e-d|0)+a|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[c>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);d=1}return d|0}function Hha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=bc-16|0;bc=e;a:{b:{if((a|0)!=(b|0)){g=J[694731];J[694731]=0;a=mP(a,e+12|0,d,Wg());d=fc;f=J[694731];c:{if(f){if(J[e+12>>2]!=(b|0))break c;if((f|0)==68)break b;break a}J[694731]=g;if(J[e+12>>2]==(b|0))break a}}J[c>>2]=4;a=0;d=0;break a}J[c>>2]=4;if(!!a&(d|0)>=0|(d|0)>0){a= --1;d=2147483647;break a}a=0;d=-2147483648}bc=e+16|0;fc=d;return a|0}function zM(a,b,c,d,e){var f=0,g=0,h=0;h=bc-16|0;bc=h;g=!a;a:{if(g|(((g?-1:J[a+8>>2])|0)!=1|(b|0)>4))break a;if((c|0)>4|(d|0)>4|(e|0)>4)break a;if((b|0)<=0){f=wf(0,a);break a}g=$6();if(!g)break a;f=sD(a,b,g);J[h+12>>2]=f;b:{if((c|0)<=0)break b;f=sD(f,c,g);J[h+8>>2]=f;wd(h+12|0);if((d|0)<=0)break b;f=sD(f,d,g);J[h+4>>2]=f;wd(h+8|0);if((e|0)<=0)break b;f=sD(f,e,g);wd(h+4|0)}qc(g)}bc=h+16|0;return f}function yT(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0,f=0;c=J[b>>2];e=gc[J[J[c>>2]+16>>2]](c)|0;c=rc(40);J[c+8>>2]=1;J[c+4>>2]=0;J[c>>2]=2385120;a:{d=J[b>>2];if(d){J[695492]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[695492];J[695492]=0;if((d|0)==1)break a;f=J[b>>2]}J[c+16>>2]=f;J[c+12>>2]=f;J[c+36>>2]=0;J[c+24>>2]=0;J[c>>2]=2414996;J[c+32>>2]=e;J[c+28>>2]=e;I[c+20>>1]=0;J[a>>2]=0;md(a,c);return}a=Z()|0;qc(ed(c));ba(a|0);B()}function ira(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+12>>2];if(b){c=b+24|0;b=(J[b+20>>2]<<4)+32|0;while(1){d=b;b=b+8164|0;c=J[c>>2];if(c)continue; -break}d=d+24|0}else d=24;b=J[a+16>>2];if(b){c=b+24|0;b=(J[b+20>>2]<<4)+32|0;while(1){e=b;b=b+8164|0;c=J[c>>2];if(c)continue;break}d=d+e|0}a=J[a+20>>2];if(a){c=a+24|0;b=(J[a+20>>2]<<4)+32|0;while(1){a=b;b=b+8164|0;c=J[c>>2];if(c)continue;break}d=a+d|0}return d|0}function eS(a){Oc(a,2448256,-1);Oc(a,2448292,-1);Oc(a,2448380,-1);Oc(a,2448480,-1);Oc(a,2448580,-1);Oc(a,2448632,-1);Oc(a,2448692,-1);Oc(a,2448732,-1);Oc(a,2448772,-1);Oc(a,2448812,-1);Oc(a,2448852,-1);Oc(a,2448900,-1);Oc(a,2448948,-1);Oc(a, -2448996,-1);Oc(a,2449064,-1);Oc(a,2449112,-1);Oc(a,2449172,-1);Oc(a,2449224,-1);Oc(a,2441228,-1);Oc(a,2449292,-1);Oc(a,2446952,-1);Oc(a,2449428,-1);Oc(a,2449492,-1)}function Otb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)<(P(J[a+588>>2], -3)|0))continue;break}}return 0}tc(b,c,P(J[a+588>>2],3));return 0}function Msa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-16|0;bc=e;d=-1;a:{if(!b|!c)break a;J[b>>2]=0;a=J[a+12>>2];d=0;if(!K[a|0])break a;d=Qc(a);J[e+12>>2]=a;b:{if((c|0)<=0)break b;c=(c<<2)+b|0;a=a+d|0;d=b;while(1){f=J[e+12>>2];if(!(f>>>0>=a>>>0|!K[f|0])){f=Gq(e+12|0,a);if(c>>>0>d>>>0){J[d>>2]=f;d=d+4|0}if(c>>>0>d>>>0)continue;break b}break}J[d>>2]=0;d=d-b>>>2|0;break a}d=-1}bc=e+16|0;return d|0}function HAa(a,b){a=a|0;b=b|0;var c= -0,d=0;d=bc-32|0;bc=d;a:{c=J[a+8>>2];if((c|0)>=65536){a=Kc(d+8|0,2383254,2373371,158,2389472,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}b=J[b>>2];Pm(b,c&255);Pm(b,K[a+9|0]);c=J[a+12>>2];if(c)c=J[c+8>>2];else c=0;vv(b,c);SG(b,a+12|0);c=J[a+20>>2];if(c)c=J[c+8>>2];else c=0;BV(b,c);SG(b,a+20|0);bc=d+32|0;return}B()}function wo(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b=J[c+8>>2]-1|0;J[c+8>>2]=b;if(!b){b:{d=J[c>>2];if((d| -0)<=0)break b;b=J[c+12>>2];if(!b)break b;while(1){c:{if(!b)break c;f=(e<<2)+b|0;b=J[f>>2];if(!b)break c;g=J[b+16>>2]-1|0;J[b+16>>2]=g;if((g|0)<=0){qc(b);d=J[c>>2]}J[f>>2]=0}e=e+1|0;if((e|0)>=(d|0))break b;b=J[c+12>>2];continue}}qc(J[c+12>>2]);qc(c)}J[a>>2]=0}}function _m(a,b,c,d){var e=0,f=0,g=0;if(!((b|0)<0|(c^2147483647)>>>0>>0|J[a+12>>2]<(b+c|0))){if((c|0)<=0)return 0;e=J[a+8>>2]+b|0;a=0;b=0;d=0;if(c>>>0>=4){g=c&-4;while(1){f=b;b=b+4|0;d=d+4|0;if((g|0)!=(d|0))continue;break}d=K[(f|3)+e|0]|(K[(f| -2)+e|0]|(K[e+f|0]<<16|K[(f|1)+e|0]<<8))<<8}c=c&3;if(c)while(1){d=K[b+e|0]|d<<8;b=b+1|0;a=a+1|0;if((c|0)!=(a|0))continue;break}return d}J[d>>2]=0;return 0}function KR(a,b,c,d){var e=0,f=0;a:{if(d>>>0>=3){J[694731]=28;break a}b:{if((d|0)!=1)break b;e=J[a+8>>2];if(!e)break b;f=b;e=e-J[a+4>>2]|0;b=b-e|0;c=c-((e>>31)+(e>>>0>f>>>0)|0)|0}if(J[a+20>>2]!=J[a+28>>2]){gc[J[a+36>>2]](a,0,0)|0;if(!J[a+20>>2])break a}J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;gc[J[a+40>>2]](a,b,c,d)|0;if((fc|0)<0)break a;J[a+4>>2]= -0;J[a+8>>2]=0;J[a>>2]=J[a>>2]&-17;return 0}return-1}function ICa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;d=bc-32|0;bc=d;a:{b:{c:{d:switch(c|0){case 2:c=J[a+16>>2];break c;default:a=Kc(d+8|0,2379594,2375204,924,2385056,0);break b;case 0:break c;case 1:break d}c=J[a+12>>2]}b=b+c|0;if((b|0)>=0)break a;a=Kc(d+8|0,2380025,2375204,928,2385056,0)}J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0)}B()}J[a+12>>2]=b;bc=d+32|0;return 0}function Hmb(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;H[a+24|0]=0;a:{if(!b)break a;e=J[a+4>>2];if(!e)break a;c=P(c,d);if(!c)break a;f=J[a+16>>2];g=c+f|0;h=J[a+20>>2];if(!((g|0)<=(h|0)|g>>>0<=h>>>0)){f=(g&-65536)+65536|0;e=Vd(e,f);J[a+20>>2]=f;H[a+12|0]=1;J[a+4>>2]=e;if(!e)break a;f=J[a+16>>2]}tc(e+f|0,b,c);b=c+J[a+16>>2]|0;J[a+16>>2]=b;if((b|0)>J[a+8>>2])J[a+8>>2]=b;i=d}return i|0}function HCa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-16|0;bc=e;d=rc(36);J[d+8>>2]=1;J[d+4>>2]=0;J[d+20>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[d>>2]=2385020; -J[695492]=0;ha(5043,d+28|0,d+24|0,0,4)|0;f=J[695492];J[695492]=0;if((f|0)==1){a=Z()|0;qc(ed(d));ba(a|0);B()}J[a>>2]=0;md(a,d);J[695492]=0;ia(5055,e+8|0,d|0,b|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;vc(a);ba(b|0);B()}sc(e+8|0);bc=e+16|0}function $nb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}c=J[b+44>>2];b:{if(!c)break b;d=J[b+48>>2];if(!d)break b;gc[J[a+156>>2]](d,c+1|0)}c=J[b+52>>2];c:{if(!c)break c;d=J[b+56>>2];if(!d)break c; -gc[J[a+156>>2]](d,c+1|0)}c=J[b+60>>2];d:{if(!c)break d;d=J[b+64>>2];if(!d)break d;gc[J[a+156>>2]](d,c)}gc[J[a+156>>2]](b,68);return 0}function jpa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;c=bc-16|0;bc=c;if(f){d=h<<2;while(1){h=e;while(1){_d(J[a+68>>2],K[i|0],K[j|0],K[k|0],c+12|0,c+8|0,c+4|0);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;h=h-1|0;if(h)continue;break}k=g+k|0;j=g+j|0;i=g+i|0;b=b+d|0;f=f- -1|0;if(f)continue;break}}bc=c+16|0}function Rxa(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;a:{if(J[a+8>>2]){ei(b+12|0,a,a+8|0);break a}J[b+12>>2]=0;md(b+12|0,0)}b:{c=J[b+12>>2];if(!c){a=0;break b}a=J[(J[a+12>>2]&1?12:8)+c>>2];J[695492]=0;J[b+12>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break b;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b}ea(0)|0;yc();B()}bc=b+16|0;return a|0}function Qxa(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;a:{if(J[a+ -8>>2]){ei(b+12|0,a,a+8|0);break a}J[b+12>>2]=0;md(b+12|0,0)}b:{c=J[b+12>>2];if(!c){a=0;break b}a=J[(J[a+12>>2]&1?8:12)+c>>2];J[695492]=0;J[b+12>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)!=1){if(d)break b;J[695492]=0;_(4987,c|0);c=J[695492];J[695492]=0;if((c|0)!=1)break b}ea(0)|0;yc();B()}bc=b+16|0;return a|0}function Ko(a,b,c){var d=0,e=0,f=0;if((c|0)<=0)return 0;a:{while(1){d=J[a+8>>2];if(d&7)break a;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2])){J[a+8>>2]=d|4;return f}J[a+ -4>>2]=J[a+4>>2]|32;d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=K[b|0];e=J[a+24>>2];J[a+24>>2]=e+1;H[e|0]=d;break b}if((Uc(a,K[b|0])|0)==-1)break a}b=b+1|0;f=f+1|0;if((f|0)!=(c|0))continue;break}f=c}return f}function Rrb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1099;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1100;if(K[a+2272|0])break a}b=1101}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=2;J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>> -2]=1;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b+3>>>2|0);J[a+604>>2]=c+3>>>2;return Hf(a)|0}function Prb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1102;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1103;if(K[a+2272|0])break a}b=1104}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b+1>>>1|0);J[a+604>> -2]=c+1>>>1;return Hf(a)|0}function Lgb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;f=J[a+4>>2];e=0-f|0;a:{if((e&(c+f|0)-1)!=(c|0))break a;c=c>>J[a>>2];if((c|0)<0|c>>>0>=M[a+96>>2])break a;c=(J[a+56>>2]+(b>>3)|0)-P(c,J[a+104>>2])|0;H[c|0]=K[c|0]|128>>>(b&7);e=0-J[a+4>>2]|0}b:{if((d&e)!=(d|0))break b;c=d>>J[a>>2];if((c|0)<0|c>>>0>=M[a+96>>2])break b;a=(J[a+56>>2]+(b>>3)|0)-P(c,J[a+104>>2])|0;H[a|0]=K[a|0]|128>>>(b&7)}}function Jfb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(b){h= -142;g=L[a+152>>1];if(!g)break b;f=J[a+156>>2];i=f+(g<<4)|0;while(1){d:{if(J[f>>2]==(b|0)){g=J[f+12>>2];if(g)break d}f=f+16|0;if(i>>>0>f>>>0)continue;break b}break}c=J[f+8>>2]+c|0;break c}g=J[J[a+104>>2]+4>>2]}if(!e){f=g;break a}f=J[e>>2];if(f)break a;J[e>>2]=g;h=0}return h|0}return TC(J[a+104>>2],c,d,f)|0}function Drb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1120;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1121;if(K[a+2272|0])break a}b=1122}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+ -576>>2]=8;H[a+568|0]=0;J[a+600>>2]=2;J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b+3>>>2|0);J[a+604>>2]=c+3>>>2;return Hf(a)|0}function Brb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1123;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1124;if(K[a+2272|0])break a}b=1125}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>> -2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b+1>>>1|0);J[a+604>>2]=c+1>>>1;return Hf(a)|0}function dla(a){a=a|0;var b=0,c=0;a:{a=a+16|0;if(H[a+423|0]<0)qc(J[a+412>>2]);if(H[a+395|0]<0)qc(J[a+384>>2]);J[a+16>>2]=340472;b:{b=J[a+44>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;J[a+44>>2]=0}Qe(a+228|0);b=J[a+136>>2];if(b){J[a+140>>2]=b;qc(b)}if(H[a+63|0]<0)qc(J[a+52>>2]);Ed(a+48|0);if(H[a+11|0]<0)qc(J[a>>2]);break a}ea(0)|0;yc();B()}}function cMa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if((gc[J[J[a>>2]+32>>2]](a)|0)==-1|(c|0)<0)b=d;else{a:{if(c>>>0<2)break a;c=c-1|0;while(1){b:{c:{e=gc[J[J[a>>2]+28>>2]](a)|0;switch(e+1|0){case 0:case 11:break a;case 14:break c;default:break b}}if((gc[J[J[a>>2]+32>>2]](a)|0)!=10)break a;gc[J[J[a>>2]+28>>2]](a)|0;break a}H[b+d|0]=e;d=d+1|0;if((c|0)!=(d|0))continue;break}d=c}H[b+d|0]=0}return b|0}function Nl(a,b){var c=0,d=0,e=0;c=bc-16|0;bc=c;d=c+4|0;UO(d,b);b=K[c+15|0];e=b<<24>>24<0;d=e?J[c+4>>2]:d;b=e?J[c+8>>2]: -b;if((b|0)==-1)b=Ve(d);e=J[J[a>>2]+8>>2];J[695492]=0;da(e|0,a|0,b|0);e=J[695492];J[695492]=0;if((e|0)!=1){e=d;d=b<<2;tc(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b;if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function KLa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;J[c>>2]=13;Ef(a+8|0,c);b=rc(312);e=J[a+28>>2];f=J[a+32>>2];g=J[a+36>>2];a=J[a+24>>2];d=J[c+4>>2];J[b+8>>2]=J[c>>2];J[b+12>>2]=d;d=J[c+12>>2];J[b+16>>2]=J[c+8>> -2];J[b+20>>2]=d;J[b>>2]=2331112;J[a+4>>2]=J[a+4>>2]+1;d=b+40|0;J[b+300>>2]=d;J[b+32>>2]=f;J[b+36>>2]=g;J[b+28>>2]=e;J[b+24>>2]=a;J[b+304>>2]=e;J[b+296>>2]=d;bc=c+16|0;return b|0}function bx(a,b,c){var d=0,e=0,f=0,g=0;f=J[a>>2];g=Ve(b);d=K[a+11|0];e=d<<24>>24<0;d=e?J[a+4>>2]:d;if(d>>>0>=c>>>0){if(!g)return c;f=e?f:a;e=f+(d<<2)|0;c=f+(c<<2)|0;a=e-c>>2;a:{b:{if((g|0)>(a|0))break b;d=J[b>>2];while(1){a=(a-g|0)+1|0;if(!a)break b;a=og(c,d,a);if(!a)break b;if(!gd(a,b,g))break a;c=a+4|0;a=e-c>>2;if((g|0)<= -(a|0))continue;break}}a=e}a=(a|0)==(e|0)?-1:a-f>>2}else a=-1;return a}function Mtb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<<1<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2]<<1)continue;break}}return 0}tc(b,c,J[a+588>>2]<<1);return 0}function Gtb(a){a=a|0;var b=0,c=0, -d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<<2<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2]<<2)continue;break}}return 0}tc(b,c,J[a+588>>2]<<2);return 0}function Qfa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;J[a>>2]=0;J[a+4>>2]=0;J[c+4>>2]=0;d=a+8|0;J[d>>2]=0;H[d+128|0]=0;J[c>>2]=a;d=J[c>> -2];H[c+8|0]=0;J[c+4>>2]=d;a:{if(!b)break a;J[695492]=0;da(6745,a|0,b|0);d=J[695492];J[695492]=0;if((d|0)!=1){J[695492]=0;da(6746,a|0,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}a=Z()|0;OP(c+4|0);ba(a|0);B()}b=c+4|0;H[b+4|0]=1;OP(b);bc=c+16|0;return a|0}function Kf(a,b){var c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+3>>>0)break d;e=J[a+20>>2];e:{if(e){f=d+12|0;if((gc[e|0](a,c,f,4)|0)!=4)break d;c=J[a+8>>2];b=f;break e}b=J[a>>2];if(!b)break c;b=b+c|0}b= -K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+4}bc=d+16|0;return g}function sCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=Tk(b);d=J[J[a+12>>2]+((c>>>0)%M[a+8>>2]<<2)>>2];a:{if(d)while(1){if((c|0)==J[d+12>>2])if(Pl(d+16|0,b))break a;d=J[d+8>>2];if(d)continue;break}d=rc(68);c=wc(d,0,68);e=Qj(c+16|0,b);J[c+60>>2]=0;J[c+64>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;b=c+52|0;J[b>>2]=2386024;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0; -f=c,g=Tk(e),J[f+12>>2]=g;Rl(a,c)}return d|0}function TCa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if(!c)return 0;h=a+40|0;while(1){d=J[a+20>>2];e=J[a+36>>2];if(!e){J[a+16>>2]=0;oe(h,d+32|0,1);e=J[a+36>>2];d=J[a+20>>2]}f=J[a+16>>2];d=d+(f^-1)|0;d=(c|0)>(d|0)?d:c;tc(e+f|0,b,d);e=d+J[a+16>>2]|0;J[a+16>>2]=e;J[a+12>>2]=d+J[a+12>>2];c=c-d|0;if(J[a+20>>2]<=(e+1|0))gc[J[J[a>>2]+24>>2]](a);g=d+g|0;b=b+d|0;if(c)continue;break}return g|0}function QXa(a){a=a|0;var b=0,c=0,d=0;J[a+4>>2]=0;J[a+8>>2]=0; -c=a+4|0;J[a>>2]=c;J[695492]=0;d=$(3193,a+12|0)|0;b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[695492]=0;b=bc-16|0;bc=b;bc=b+16|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;ut(a,J[a+4>>2]);J[a>>2]=c;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}c=Z()|0;break a}c=Z()|0;b=J[d>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[d>>2]=0}}ut(a,J[a+4>>2]);ba(c|0);B()}function EI(a){var b=0,c=0;b=J[a+16>>2];if(b)qc(Rc(b));b=J[a+20>>2];if(b)qc(Rc(b));J[695492]=0;_(3205,a+24|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){b=J[a+40>>2]; -if(b)qc(Rc(b));b=J[a+84>>2];if(b){c=J[b+16>>2];if(c){J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a}qc(b)}J[695492]=0;_(3205,a+88|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b}break a}return a}ea(0)|0;yc();B()}function Ahb(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;a:{d=a?a+b|0:0;if(d>>>0<=a>>>0)break a;d=d-a|0;d=b>>>0>d>>>0?d:b;if(!d)break a;b=0;if((d|0)!=1){i=d&-2;while(1){e=a+b|0;f=K[e|0];H[e|0]=f^c>>>8;g=(b|1)+a|0;e=K[g|0];c=P(c+f|0,52845)+22719|0;H[g|0]=e^c>>>8;c=P(c+ -e|0,52845)+22719&65535;b=b+2|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(d&1))break a;a=a+b|0;H[a|0]=K[a|0]^c>>>8}}function ALa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;i=J[a+32>>2];g=J[a+28>>2];f=rc(48);h=J[a+24>>2];a=J[e+12>>2];J[f+16>>2]=J[e+8>>2];J[f+20>>2]=a;a=J[e+4>>2];J[f+8>>2]=J[e>>2];J[f+12>>2]=a;J[f+44>>2]=0;J[f+24>>2]=h;J[f>>2]=2331228;a=g+i|0;b=b>>>0>>0?g:a>>>0>>0?a:b;J[f+28>>2]=b;e=b+h|0;J[f+40>>2]=e;g=a-b|0;a=c?a>>>0>>0?g:d:g;J[f+32>>2]=a;J[f+36>>2]= -a+e;return f|0}function zSa(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;a:{e=J[a+4>>2];if((e|0)<=0)break a;a=0;if(e>>>0>=4){i=e&-4;while(1){d=a<<3;O[d+c>>3]=O[b+d>>3];f=d|8;O[f+c>>3]=O[b+f>>3];f=d|16;O[f+c>>3]=O[b+f>>3];d=d|24;O[d+c>>3]=O[b+d>>3];a=a+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}d=e&3;if(!d)break a;while(1){e=a<<3;O[e+c>>3]=O[b+e>>3];a=a+1|0;h=h+1|0;if((d|0)!=(h|0))continue;break}}}function Ty(a,b,c){var d=0,e=0,f=0;d=J[c+16>>2];a:{if(!d){if(CF(c))break a;d=J[c+16>>2]}e=J[c+ -20>>2];if(d-e>>>0>>0)return gc[J[c+36>>2]](c,a,b)|0;b:{c:{if(!b|J[c+80>>2]<0)break c;d=b;while(1){f=a+d|0;if(K[f-1|0]!=10){d=d-1|0;if(d)continue;break c}break}e=gc[J[c+36>>2]](c,a,d)|0;if(e>>>0>>0)break a;b=b-d|0;e=J[c+20>>2];break b}f=a;d=0}tc(e,f,b);J[c+20>>2]=J[c+20>>2]+b;e=b+d|0}return e}function Sla(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];O[a+16>>3]=O[b+16>>3];H[a+24|0]=K[b+24|0];H[a+25|0]=K[b+25|0];H[a+26|0]=K[b+26|0];H[a+27|0]=K[b+27|0];c=J[a+28>>2];if(c){qc(c); -J[a+28>>2]=0}c=J[b+32>>2];J[a+32>>2]=c;if(c){d=c<<3;c=rc(c>>>0>536870911?-1:d);J[a+28>>2]=c;tc(c,J[b+28>>2],d)}O[a+40>>3]=O[b+40>>3];J[a+48>>2]=J[b+48>>2];O[a+56>>3]=O[b+56>>3];return a|0}function Nt(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=J[a+4>>2];if((d|0)>=0){a:{if(J[a>>2]==(d|0)){O[b>>3]=O[a+16>>3];O[c>>3]=O[a+24>>3];e=1;b=d-1|0;break a}if(!d){O[b>>3]=O[a+32>>3];O[c>>3]=O[a+40>>3];e=2;b=-1;break a}f=O[a+64>>3];g=f+O[a+48>>3];O[a+48>>3]=g;h=O[a+72>>3];O[a+72>>3]=h+O[a+88>>3];O[a+56>>3]=h+O[a+56>>3];O[a+ -64>>3]=f+O[a+80>>3];O[b>>3]=g;O[c>>3]=O[a+56>>3];e=2;b=d-1|0}J[a+4>>2]=b}return e}function Nha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((c|0)>0){a=J[a+12>>2];while(1){d=J[a>>2];I[b>>1]=d>>>16;e=(+((d&255)>>>0)+.5)*.0024390243902439024*32768;a:{if(R(e)<2147483648){f=~~e;break a}f=-2147483648}I[b+4>>1]=f;e=(+((d>>>8&255)>>>0)+.5)*.0024390243902439024*32768;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}I[b+2>>1]=d;a=a+4|0;b=b+6|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}}}function yO(a,b,c){var d= -0,e=0,f=0,g=0,h=0,i=0;d=zc(40);J[d>>2]=0;d=zf(a+624|0,1,d,4);i=cc;a:{b:{while(1){if(e){h=-1;break a}J[695492]=0;h=ga(671,a|0,b|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;c:{d:{if(!e)break d;g=J[695493];if(!g)break d;f=Jc(J[e>>2],d,i);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;break a}break}qc(d);ef(e,g);B()}a=Z()|0;qc(d);ba(a|0);B()}qc(d);return h}function vO(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=zc(40);J[d>>2]=0;d=zf(a+624|0,1,d,4);i=cc;a:{b:{while(1){if(e){h=-1;break a}J[695492]= -0;h=ga(641,a|0,b|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break b;f=-1;c:{d:{if(!e)break d;g=J[695493];if(!g)break d;f=Jc(J[e>>2],d,i);if(!f)break c;cc=g}e=cc;if((f|0)==1)continue;break a}break}qc(d);ef(e,g);B()}a=Z()|0;qc(d);ba(a|0);B()}qc(d);return h}function vA(a){var b=0,c=0,d=0;b=rc(8);J[695492]=0;c=$(3184,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){b=J[a+32>>2];a:{if(b>>>0>=M[a+36>>2]|!K[K[b|0]+2335920|0])break a;J[a+32>>2]=b+1;zd(c,H[b|0]);b=J[a+32>>2];if(b>>>0>=M[a+36>>2])break a;while(1){if(!K[K[b| -0]+2336176|0])break a;J[a+32>>2]=b+1;zd(c,H[b|0]);b=J[a+32>>2];if(b>>>0>2])continue;break}}return c}a=Z()|0;qc(b);ba(a|0);B()}function twa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;a:{b:{if(!(!J[a+8>>2]|J[a+20>>2]>=J[a+28>>2]|J[a+24>>2]>=J[a+32>>2])){bU(b,a+8|0,1,a+44|0,c);break b}a=d+8|0;aU(a,1);J[695492]=0;aa(5058,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;sc(a);$T(a,1);J[695492]=0;aa(5058,b|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;sc(a)}bc=d+16|0;return}a= -Z()|0;sc(d+8|0);ba(a|0);B()}function g$a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];g=P(J[b+36>>2],L[c+18>>1]);h=P(J[b+4>>2],L[c+2>>1]);i=g+h|0;j=P(J[b+32>>2],L[c+16>>1]);b=P(J[b>>2],L[c>>1])+4|0;c=j+b|0;H[f|0]=K[a+(i+c>>>3&1023)|0];H[f+1|0]=K[a+(c-i>>>3&1023)|0];c=J[d+4>>2]+e|0;d=h-g|0;b=b-j|0;H[c|0]=K[a+(d+b>>>3&1023)|0];H[c+1|0]=K[a+(b-d>>>3&1023)|0]}function ay(a,b){var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b;while(1){b:{c=J[a+ -8>>2];c:{if(c&7)break c;e=J[a+64>>2];if(!((e|0)<0|J[a+60>>2]<(e|0))){J[a+8>>2]=c|4;break c}J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=0;break b}if((Uc(a,0)|0)!=-1)break b}b=b-d|0;break a}c=(d|0)>1;d=d-1|0;if(c)continue;break}}return b}function Y5(a,b,c,d){var e=0,f=0;e=bc-32|0;bc=e;J[e+8>>2]=0;f=c?c:d;J[e+20>>2]=f?f:72;J[e+24>>2]=f?c?d?d:c:d:72;b=(b|0)<=64?64:b;J[e+12>>2]=b;J[e+16>>2]=b;a:{if(!a){d=35;break a}b=J[a+88>> -2];J[J[b+40>>2]+12>>2]=0;c=J[J[J[a+96>>2]+12>>2]+88>>2];if(c){d=gc[c|0](b,e+8|0)|0;break a}if((J[a+8>>2]&3)==2){d=cM(a,e+8|0,e+28|0);if(d)break a;d=bM(a,J[e+28>>2]);break a}xr(a,e+8|0);d=0}bc=e+32|0;return d}function VK(a,b,c,d,e,f,g){var h=0;h=bc-16|0;bc=h;a:{if(!c){J[h+12>>2]=0;c=h+12|0;gc[J[J[e>>2]+40>>2]](e,c);J[h+12>>2]=J[d>>2];N[h+8>>2]=O[f>>3];N[h+4>>2]=O[g>>3];gc[J[J[e>>2]+92>>2]](e,b,c,h+8|0,h+4|0)|0;break a}J[h+12>>2]=1;b=h+12|0;gc[J[J[e>>2]+40>>2]](e,b);J[h+12>>2]=J[d>>2];N[h+8>>2]=O[f>> -3];N[h+4>>2]=O[g>>3];gc[J[J[e>>2]+92>>2]](e,c,b,h+8|0,h+4|0)|0}gc[J[J[e>>2]+132>>2]](e,a)|0;bc=h+16|0}function Ry(a){var b=0,c=0;b=J[682241];if(!((b|0)>=0&(!b|J[694764]!=(b&-1073741825)))){a:{c=a&255;if((c|0)==J[682242])break a;b=J[682227];if((b|0)==J[682226])break a;J[682227]=b+1;H[b|0]=a;return}ps(2728888,c);return}b=J[682241];J[682241]=b?b:1073741823;b:{c:{c=a&255;if((c|0)==J[682242])break c;b=J[682227];if((b|0)==J[682226])break c;J[682227]=b+1;H[b|0]=a;break b}ps(2728888,c)}J[682241]=0}function Pxb(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=-1;d=J[c+8>>2];a:{if(d&7)break a;e=K[a+12|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;return-1}J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;b:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break b}if((Uc(c,e)|0)==-1)break a}b=(Ko(c,J[a+20>>2],J[a+16>>2])|0)!=J[a+16>>2]?-1:0}return b|0}function Jrb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1111;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1112;if(K[a+2272|0])break a}b= -1113}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=3;J[a+596>>2]=0;J[a+652>>2]=3;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+P(b,3);J[a+604>>2]=P(c,3);return Hf(a)|0}function Hrb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1114;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1115;if(K[a+2272|0])break a}b=1116}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>> -2]=6;J[a+596>>2]=0;J[a+652>>2]=6;H[a+648|0]=1;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+P(b,6);J[a+604>>2]=P(c,6);return Hf(a)|0}function G9a(a){a=a|0;var b=0,c=0;b=J[a+12>>2];if(b)gc[J[J[b>>2]+156>>2]](b);b=a+544|0;Xr(b,340560,5);a:{if(H[a+543|0]<0){J[a+536>>2]=0;c=J[a+532>>2];break a}H[a+543|0]=0;c=a+532|0}J[c>>2]=0;I[a+576>>1]=0;J[a+568>>2]=0;J[a+572>>2]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+580>>2]=0;J[a+584>>2]=0;J[a+588>>2]=0;J[a+592>>2]=0;b:{if(H[a+555|0]<0){J[a+548>>2]=0; -b=J[a+544>>2];break b}H[a+555|0]=0}J[b>>2]=0}function Fh(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+12>>2];e=J[a+4>>2];if((e|0)>0)while(1){g=f<<2;d=g+c|0;b=J[d>>2];if(b){while(1){J[d>>2]=J[b+8>>2];a:{if(!J[a>>2])break a;c=J[b>>2];if(!c)break a;qc(Rc(c))}qc(b);c=J[a+12>>2];d=g+c|0;b=J[d>>2];if(b)continue;break}e=J[a+4>>2]}f=f+1|0;if((f|0)<(e|0))continue;break}J[695492]=0;Gc(c);b=J[695492];J[695492]=0;if((b|0)!=1)return a;ea(0)|0;yc();B()}function E4a(a){a=a|0;var b=0;J[a+4>>2]=1;J[a>>2]=347916;J[a>>2]=350204; -J[695492]=0;v2(a+16|0);b=J[695492];J[695492]=0;if((b|0)!=1){J[a+112>>2]=0;J[a+116>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+8>>2]=0;J[a+156>>2]=40968;J[a+160>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;H[a+164|0]=1;J[a+120>>2]=0;J[a+124>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;return a|0}ba(Z()|0);B()}function xrb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1129;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1130;if(K[a+2272|0])break a}b=1131}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]= -8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b<<1);J[a+604>>2]=c<<1;return Hf(a)|0}function vrb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1132;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1133;if(K[a+2272|0])break a}b=1134}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=4;J[a+596>>2]=0;J[a+652>>2]=4;H[a+648|0]= -1;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b<<2);J[a+604>>2]=c<<2;return Hf(a)|0}function trb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1135;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1136;if(K[a+2272|0])break a}b=1021}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=4;J[a+596>>2]=0;J[a+652>>2]=4;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b<<2);J[a+604>>2]=c<<2;return Hf(a)|0}function rrb(a){a= -a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1137;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1138;if(K[a+2272|0])break a}b=1020}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=8;J[a+596>>2]=0;J[a+652>>2]=8;H[a+648|0]=1;b=J[a+316>>2];c=b+7|0;J[a+604>>2]=c&-8;J[a+588>>2]=c>>>3;J[a+608>>2]=J[a+616>>2]+(b<<3);return Hf(a)|0}function dY(a,b,c){var d=0,e=0,f=0,g=0;g=bc-32|0;H[g+23|0]=0;d=g+23|0;while(1){if(!(!c&(f|0)>0)){d=d-1|0;e=c;c=(c>>>0)/10|0;e=K[(e- -P(c,10)|0)+61504|0];H[d|0]=e;f=f+1|0;if(d>>>0>g>>>0)continue}break}a:{if(b-1>>>0>7)break a;a=((b<<5)+a|0)-32|0;if(!a)break a;f=0;b:{if(!d|!e)break b;c=0;while(1){H[a+c|0]=e;f=c+1|0;if(c>>>0>29)break b;e=K[d+1|0];d=d+1|0;c=f;if(e)continue;break}}H[a+f|0]=0}}function Rtb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>> -2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0]&15;c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}tc(b,c,J[a+588>>2]);return 0}function Lrb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1108;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1109;if(K[a+2272|0])break a}b=1110}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;H[a+648|0]=1;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b<< -1);J[a+604>>2]=c<<1;return Hf(a)|0}function VTa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if(c-5>>>0<4294967292)break a;if(!A_(a,b,c))break a;J[d>>2]=0;e=K[((b-J[a+1040>>2]|0)+a|0)+16|0];J[d>>2]=e;f=1;if((c|0)==1)break a;e=K[((b-J[a+1040>>2]|0)+a|0)+17|0]|e<<8;J[d>>2]=e;if((c|0)==2)break a;e=K[((b-J[a+1040>>2]|0)+a|0)+18|0]|e<<8;J[d>>2]=e;if((c|0)==3)break a;J[d>>2]=K[((b-J[a+1040>>2]|0)+a|0)+19|0]|e<<8}return f|0}function Ttb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+ -P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0]&1;c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}tc(b,c,J[a+588>>2]);return 0}function Stb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a; -case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0]&3;c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}tc(b,c,J[a+588>>2]);return 0}function ym(a){var b=0,c=0,d=0,e=0;d=J[a+112>>2];if(d){b=J[d+8>>2];if(b){c=J[d>>2];if((c|0)>0){while(1){b=J[J[d+8>>2]+4>>2];e=J[b>>2];J[b>>2]=e-1;if((e|0)<=1){c=J[J[b+8>>2]>>2];if(c)gc[c|0](b);qc(b);c=J[d>>2]}c=c-1|0;a:{if((c|0)<=0){J[d>>2]=c;break a}b=J[d+8>>2];Zc(b,b+8|0,c<<3);b=J[d>>2];c=b-1|0;J[d>>2]=c;if((b| -0)>1)continue}break}b=J[d+8>>2]}qc(b)}qc(d)}c=J[a+108>>2];if(c)qc(c);qc(a)}function xO(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=zc(40);J[c>>2]=0;c=zf(a+624|0,1,c,4);h=cc;a:{b:{while(1){if(d){g=-1;break a}J[695492]=0;g=ga(102,a|0,b|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;e=-1;c:{d:{if(!d)break d;f=J[695493];if(!f)break d;e=Jc(J[d>>2],c,h);if(!e)break c;cc=f}d=cc;if((e|0)==1)continue;break a}break}qc(c);ef(d,f);B()}a=Z()|0;qc(c);ba(a|0);B()}qc(c);return g}function w4(a,b){a=a|0;b=b|0;var c=0,d= -0,e=0;e=6;d=J[a+868>>2];a:{if(!d|L[a+648>>1]<=b>>>0)break a;e=8;b=J[d+8>>2]+(b<<1)|0;b=K[b|0]<<8|K[b+1|0];c=L[a+660>>1];if(L[d+2>>1]>>0)break a;e=0;if(!c)break a;a=J[a+672>>2];c=a+(c<<2)|0;b=J[d+4>>2]+(b<<2)|0;while(1){H[a|0]=K[b|0];H[a+1|0]=K[b+1|0];H[a+2|0]=K[b+2|0];H[a+3|0]=K[b+3|0];b=b+4|0;a=a+4|0;if(c>>>0>a>>>0)continue;break}}return e|0}function d_(a,b){var c=0,d=0,e=0;c=bc-32|0;bc=c;J[c+16>>2]=13;J[c>>2]=13;if(J[b>>2]==7){d=1;a:{if(J[Bc(J[b+8>>2],796762,c+16|0,0)>>2]!=6)break a;b=J[c+ -24>>2];if(J[b+12>>2]<=0){d=0;break a}d=0;while(1){Mc(b,e,c,0);b=d_(a,c);b:{if((b|0)<(d^2147483647)){d=b+d|0;break b}xc(1,-1,801911,0);d=2147483647}uc(c);e=e+1|0;b=J[c+24>>2];if((e|0)>2])continue;break}}uc(c+16|0)}bc=c+32|0;return d}function ZX(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{c:{if(J[c>>2]!=2){c=J[c+52>>2];e=J[c+8>>2];if((e|0)<=0)break a;g=J[c>>2];break c}if(J[c+8>>2])break a;f=(O[b+24>>3]+O[b+40>>3])*.5;if(!(f>O[c+24>>3])|!(O[c+40>>3]>f))break a;if(O[b+16>>3]<=O[b+56>>3]*.5+O[c+32>>3])break b; -break a}while(1){c=ZX(a,b,J[(d<<2)+g>>2]);if(c)break b;d=d+1|0;if((e|0)!=(d|0))continue;break}break a}return c}return 0}function Yp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b=J[a+4>>2];if(!b)break a;a=J[a+44>>2];if(!a)break a;g=a&-2;h=a&1;b=b+40|0;e=255/(a-1>>>0)|0;a=0;while(1){d=b+(a<<2)|0;c=P(a,e);H[d+1|0]=c;H[d+2|0]=c;H[d|0]=c;c=a|1;d=b+(c<<2)|0;c=P(c,e);H[d+1|0]=c;H[d+2|0]=c;H[d|0]=c;a=a+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}if(!h)break a;b=b+(a<<2)|0;a=P(a,e);H[b+1|0]=a;H[b+2|0]=a;H[b| -0]=a}}function Izb(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<>>0>=32){d=f<>>32-e|d<>>0>=32){d=-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}a=a|g;fc=c|f;return a}function Gw(a,b){var c=0,d=0,e=0;d=bc-16|0;bc=d;c=-1;a:{if(J[a+32>>2]|(!a|!b))break a;e=J[a+24>>2];c=J[a+ -8>>2];if(!((e|0)==(c|0)|c>>>0>2147483646)){J[a+24>>2]=c;e=c}c=J[a+4>>2];if(!((c|0)==J[a+20>>2]|c>>>0>2147483646))J[a+20>>2]=c;c=J[b+12>>2]-J[a>>2]|0;if(e>>>0>=c>>>0)break a;J[d>>2]=5455;c=0;Cc(0,0,0,0,0,29,7E3,2,5455,0,0,0,0,d);if(J[a+32>>2])break a;J[a+32>>2]=7E3}bc=d+16|0;return c}function fzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+72>>2];g=J[a+60>>2];h=K[a+13|0];d=K[a+12|0];a:{if(!d){b=1;break a}a=K[a+52|0];e=d&7;b:{if(d>>>0<8){b=1;break b}i=d&248;b=1;while(1){b=P(a,P(a,P(a,P(a,P(a, -P(a,P(a,P(a,b))))))));c=c+8|0;if((i|0)!=(c|0))continue;break}}if(!e)break a;c=0;while(1){b=P(a,b);c=c+1|0;if((e|0)!=(c|0))continue;break}}return(P(d,g)+P(b+f|0,h)|0)+44|0}function bua(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;h=h<<2;while(1){f=f-1|0;g=e;while(1){a=K[i+7|0];J[b>>2]=a<<24|((P(a,K[i+1|0])+127&65535)>>>0)/255|((P(a,K[i+3|0])+127&65535)>>>0)/255<<8|((P(a,K[i+5|0])+127&65535)>>>0)/255<<16;b=b+4|0;i=c+i|0;g=g-1| -0;if(g)continue;break}i=d+i|0;b=b+h|0;if(f)continue;break}}}function Qtb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}tc(b,c,J[a+588>>2]);return 0}function Oi(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0, -f=0,g=0;e=J[b>>2];if(!e)return 0;g=J[e+4>>2];a:{if(g){J[e+4>>2]=J[g+8>>2];e=J[b>>2];f=J[e+4>>2];if(f)break a}g=J[a+12>>2];a=J[a+4>>2];while(1){f=J[e>>2]+1|0;J[e>>2]=f;if((a|0)==(f|0)){qc(e);J[b>>2]=0;return 0}J[e+4>>2]=J[g+(f<<2)>>2];e=J[b>>2];f=J[e+4>>2];if(!f)continue;break}}J[c>>2]=J[f>>2];J[d>>2]=J[J[J[b>>2]+4>>2]+4>>2];return 1}function O4a(a){a=a|0;var b=0,c=0,d=0;b=J[689330];if(b)gc[J[J[b>>2]+32>>2]](b);c=J[a+8>>2];d=a+12|0;if((c|0)!=(d|0))while(1){b=J[c+28>>2];if(b)gc[J[J[b>>2]+12>>2]](b)| -0;b=J[c+4>>2];a:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break a}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}Sw(a+8|0,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0}function Iw(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-6;a:{if(!b|(c|0)!=56|K[b|0]!=49)break a;if(!a)return-2;J[a+24>>2]=0;b=J[a+32>>2];if(!b){J[a+40>>2]=0;J[a+32>>2]=3061;b=3061}if(!J[a+36>>2])J[a+36>>2]=3062;c=gc[b|0](J[a+40>>2],1,7120)|0;if(!c)return-4;J[a+28>>2]=c;d=0;J[c+56>>2]=0;J[c>>2]= -a;J[c+4>>2]=16180;b=E0(a,15);if(!b)break a;gc[J[a+36>>2]](J[a+40>>2],c);J[a+28>>2]=0;d=b}return d|0}function DO(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=zc(40);J[c>>2]=0;c=zf(a+624|0,1,c,4);h=cc;a:{b:{while(1){if(d){g=-1;break a}J[695492]=0;g=ga(86,a|0,b|0,1)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;e=-1;c:{d:{if(!d)break d;f=J[695493];if(!f)break d;e=Jc(J[d>>2],c,h);if(!e)break c;cc=f}d=cc;if((e|0)==1)continue;break a}break}qc(c);ef(d,f);B()}a=Z()|0;qc(c);ba(a|0);B()}qc(c);return g}function DI(a, -b){var c=0,d=0,e=0,f=0,g=0;c=bc-32|0;bc=c;d=O[J[a+84>>2]+8>>3];d=d<=0?.1:d;O[b>>3]=d;b=J[a+40>>2];O[c+16>>3]=d;Xc(b,811808,c+16|0);b=J[a+84>>2];if(J[b>>2]==1){f=J[b+16>>2];e=J[b+20>>2];od(J[a+40>>2],812120);if((e|0)>0){b=0;while(1){g=J[a+40>>2];O[c>>3]=O[(b<<3)+f>>3];Xc(g,812224,c);b=b+1|0;if((e|0)!=(b|0))continue;break}}od(J[a+40>>2],812732)}od(J[a+40>>2],813141);bc=c+32|0}function yZ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;J[c>>2]=13;g=J[b+8>>2];d=J[g+12>>2];a:{if(!d)break a; -h=vd(d,8);if((d|0)<=0)break a;while(1){f=Mc(g,e,c,0);O[(e<<3)+h>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];uc(c);e=e+1|0;if((e|0)!=(d|0))continue;break}}iI(J[a+28>>2],h,d,J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3]);b=J[a+8>>2];gc[J[J[b>>2]+80>>2]](b,J[a+28>>2]);bc=c+16|0}function xXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;f=J[a+104>>2];e=O[b+392>>3]*255;a:{if(R(e)<2147483648){c=~~e;break a}c=-2147483648}c=(c|0)>0?c:0;J[d+12>>2]=(c|0)>=255?255:c;gc[J[J[f>>2]+152>>2]](f,d+12|0)|0;c=J[a+104>>2];e=O[b+ -392>>3]*255;b:{if(R(e)<2147483648){a=~~e;break b}a=-2147483648}a=(a|0)>0?a:0;J[d+8>>2]=(a|0)>=255?255:a;gc[J[J[c>>2]+168>>2]](c,d+8|0)|0;bc=d+16|0}function prb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a;b=1139;b:switch(K[a+336|0]-12|0){case 2:b=1140;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b+7>>3;J[a+604>>2]=b;J[a+608>> -2]=b+J[a+616>>2];return Hf(a)|0}function orb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a;b=1141;b:switch(K[a+336|0]-12|0){case 2:b=1142;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=2;J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>>2]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b+3>>2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function nrb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a;b=1143;b:switch(K[a+ -336|0]-12|0){case 2:b=1144;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b+1>>1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function mfb(a,b){a=a|0;b=b|0;var c=0,d=0;c=gc[J[a+516>>2]](a,1330851634,b,0)|0;a:{if(c)break a;d=a+372|0;c=Me(b,326128,d);if(c)break a;J[a+468>>2]=0;J[a+460>>2]=0;J[a+464>>2]=0;J[a+452>>2]=0;J[a+456>>2]= -0;I[a+472>>1]=65535;if(!L[a+372>>1])return 0;c=Me(b,326304,d);if(c)break a;if(L[d>>1]<2)return 0;c=Me(b,326320,d);if(c)break a;c=0;if(L[d>>1]<5)break a;c=Me(b,326352,d)}return c|0}function YFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[a>>2]=0;e=J[J[b>>2]+12>>2];J[695492]=0;f=e;e=d+4|0;ca(f|0,e|0,b|0,c|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[695492]=0;ga(4743,a|0,e|0,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break b;if(H[d+15|0]<0)qc(J[d+4>>2]);bc=d+16|0;return}b=Z()|0;break a}b= -Z()|0;if(H[d+15|0]>=0)break a;qc(J[d+4>>2])}mh(a);ba(b|0);B()}function AKa(a){a=a|0;var b=0,c=0;a:{b:{if(J[a+12>>2]?J[a+8>>2]:1){b=J[a+3504>>2];c=-1;if((b|0)>=J[a+20>>2])break b;return J[(J[((J[a+3496>>2]<<2)+a|0)+3480>>2]+(P(b,J[a+32>>2])<<2)|0)+(J[a+3500>>2]<<2)>>2]}b=J[a+3472>>2];if((b|0)==J[a+3476>>2]){c=-1;if(J[a+20>>2]<=(J[a+28>>2]+J[a+3504>>2]|0))break b;if(!MH(a))break a;b=J[a+3472>>2]}c=K[b|0]}return c|0}J[a+3504>>2]=J[a+20>>2];return-1}function tib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+8>> -2]=c;J[a+4>>2]=b;J[a+12>>2]=0;J[a+16>>2]=d;J[a>>2]=b;b=J[65267];J[a+20>>2]=J[65266];J[a+24>>2]=b;b=J[65269];J[a+28>>2]=J[65268];J[a+32>>2]=b;b=J[65271];J[a+36>>2]=J[65270];J[a+40>>2]=b;b=J[65273];J[a+44>>2]=J[65272];J[a+48>>2]=b;b=J[65275];J[a+52>>2]=J[65274];J[a+56>>2]=b;b=J[65277];J[a+60>>2]=J[65276];J[a+64>>2]=b;J[a+68>>2]=J[65278]}function ox(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(!a)return 35;c=J[a+96>>2];if(!c)return 35;d=J[a+128>>2];b=J[d+64>>2];J[d+64>>2]=b-1;if((b|0)<=1){b=J[c+16>>2];if(!b)return 35; -e=c+16|0;d=J[c+8>>2];a:{while(1){if(J[b+8>>2]==(a|0))break a;b=J[b+4>>2];if(b)continue;break}return 35}f=J[b>>2];g=f?f+4|0:e;e=J[b+4>>2];J[g>>2]=e;J[(e?e:c+20|0)>>2]=f;gc[J[d+8>>2]](d,b);hu(d,a,c)}return 0}function XJ(){var a=0,b=0,c=0,d=0;a=bc-16|0;bc=a;a:{if(J[689510])break a;b=gc[J[659447]](200)|0;J[689510]=b;if(!b){J[a>>2]=38574;Cc(0,0,0,0,0,27,2,3,38574,0,0,0,32863,a);break a}yp(22390,3110,3110);c=2758044,d=yp(21436,3111,3112),J[c>>2]=d;c=2758048,d=yp(21445,3113,3114),J[c>>2]=d;yp(22625,3111, -3115);yp(28313,3116,3117);yp(21276,3118,3119);yp(21273,3118,3119);yp(21044,0,3120)}bc=a+16|0}function V9a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=bc-16|0;bc=e;a:{b:{c:{d:{d=J[b>>2];switch(d-8|0){case 8:break c;case 0:break d;default:break b}}a=J[a+16>>2];if(!a)break a;H[a+2905|0]=J[c>>2]==1;break a}d=J[a+12>>2];if(!d)break a;H[e+15|0]=J[c>>2]==1;gc[J[J[d>>2]+188>>2]](d,e+15|0);d=J[b>>2]}if((d|0)!=32)break a;a=J[a+16>>2];if(!a)break a;H[a+2940|0]=J[c>>2]==1}bc=e+16|0;return 0}function Pxa(a,b,c){a= -a|0;b=b|0;c=c|0;a:{if(K[a+16|0])break a;b:{if(!fd(c,2376100,4))break b;if(!fd(c,2376344,2))break b;if(fd(c,2376972,2))break a}b=di();gc[J[J[b>>2]+32>>2]](b,a);H[a+16|0]=1;return}c:{d:{if(!fd(c,2377600,1))break d;if(!fd(c,2378257,2))break d;if(!fd(c,2378690,2))break d;if(!fd(c,2376972,2))break d;if(fd(c,2376344,2))break c}b=di();gc[J[J[b>>2]+28>>2]](b,a)}}function OJ(a,b,c){var d=0,e=0,f=0;if(!b)return a;if(!c)return a;if((c|0)>=0){if(!a){a=gc[J[659450]](c+1|0)|0;if(!a){Cc(0,0,0,0,0,1,2,3,0,0,0,0, -36013,0);return 0}a=tc(a,b,c);H[a+c|0]=0;return a}if(K[a|0]){d=a;while(1){f=f+1|0;e=K[d+1|0];d=d+1|0;if(e)continue;break}}e=c+f|0;d=gc[J[659452]](a,e+1|0)|0;if(!d){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);return a}tc(d+f|0,b,c);H[d+e|0]=0}return d}function EO(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=zc(40);J[c>>2]=0;c=zf(a+624|0,1,c,4);h=cc;a:{b:{while(1){if(d){g=-1;break a}J[695492]=0;g=aa(72,a|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break b;e=-1;c:{d:{if(!d)break d;f=J[695493];if(!f)break d;e=Jc(J[d>> -2],c,h);if(!e)break c;cc=f}d=cc;if((e|0)==1)continue;break a}break}qc(c);ef(d,f);B()}a=Z()|0;qc(c);ba(a|0);B()}qc(c);return g}function Caa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;c=J[a+584>>2];J[c+68>>2]=0;g=c- -64|0;a:{while(1){e=Ak(g,4);if(e>>>0<=1){b=J[c+80>>2];f=J[a+600>>2];if((b|0)!=(f|0)){J[a+608>>2]=f-b;gf(a);J[c+76>>2]=J[a+596>>2];J[c+80>>2]=J[a+600>>2]}b=1;if((e|0)!=1)continue;break a}break}b=J[a+628>>2];a=J[a>>2];J[d+4>>2]=J[c+88>>2];J[d>>2]=a;Nc(b,98067,72472,d);b=0}bc=d+16| -0;return b|0}function C9a(a,b){a=a|0;b=b|0;var c=0,d=0;J[b+4>>2]=J[a+28>>2];J[b+8>>2]=J[a+32>>2];O[b+16>>3]=O[a+40>>3];H[b+24|0]=K[a+48|0];H[b+25|0]=K[a+49|0];H[b+26|0]=K[a+50|0];H[b+27|0]=K[a+51|0];c=J[b+28>>2];if(c){qc(c);J[b+28>>2]=0}c=J[a+56>>2];J[b+32>>2]=c;if(c){d=c<<3;c=rc(c>>>0>536870911?-1:d);J[b+28>>2]=c;tc(c,J[a+52>>2],d)}O[b+40>>3]=O[a- -64>>3];J[b+48>>2]=J[a+72>>2];O[b+56>>3]=O[a+80>>3]}function B9a(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+28>>2]=J[b+4>>2];J[a+32>>2]=J[b+8>>2];O[a+40>>3]=O[b+ -16>>3];H[a+48|0]=K[b+24|0];H[a+49|0]=K[b+25|0];H[a+50|0]=K[b+26|0];H[a+51|0]=K[b+27|0];c=J[a+52>>2];if(c){qc(c);J[a+52>>2]=0}c=J[b+32>>2];J[a+56>>2]=c;if(c){d=c<<3;c=rc(c>>>0>536870911?-1:d);J[a+52>>2]=c;tc(c,J[b+28>>2],d)}O[a- -64>>3]=O[b+40>>3];J[a+72>>2]=J[b+48>>2];O[a+80>>3]=O[b+56>>3]}function lrb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a;b=1147;b:switch(K[a+336|0]-12|0){case 2:b=1148;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0; -J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;b=J[a+316>>2];J[a+588>>2]=b;b=b<<1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function Yi(){var a=0,b=0,c=0,d=0,e=0,f=0;a=zc(12);if(a){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;b=zc(64);if(b){J[a+4>>2]=16;J[a+8>>2]=b;return a}b=J[a>>2];if((b|0)>0)while(1){d=J[a+8>>2];b=b-1|0;e=b<<2;c=J[d+e>>2];f=J[c>>2];J[c>>2]=f-1;if((f|0)<=1){gc[J[J[c+4>>2]>>2]](c);qc(c);d=J[a+8>>2];b=J[a>>2]-1|0}J[d+e>>2]=0;J[a>>2]=b;if((b| -0)>0)continue;break}b=J[a+8>>2];if(b)qc(b);qc(a)}return 0}function Pp(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!(!a|!b)){d=I[a+2>>1];a:{if(!d){d=0;a=0;break a}c=J[a+4>>2];e=J[c+4>>2];f=J[c>>2];if((d|0)<2){d=e;a=f;break a}i=(d<<3)+c|0;h=c+8|0;a=f;d=e;while(1){g=J[c+12>>2];d=(d|0)<(g|0)?g:d;e=(e|0)>(g|0)?g:e;c=J[c+8>>2];a=(a|0)<(c|0)?c:a;f=(c|0)<(f|0)?c:f;c=h;h=c+8|0;if(i>>>0>h>>>0)continue;break}}J[b+8>>2]=a;J[b>>2]=f;J[b+12>>2]=d;J[b+4>>2]=e}}function Cob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+428>> -2];e=K[b+32|0];H[d+8|0]=e;c=1;if((e|0)==3){H[d+9|0]=K[b+33|0];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=c>>>16;H[d+13|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+14|0]=c;H[d+15|0]=c>>>8;H[d+16|0]=c>>>16;H[d+17|0]=c>>>24;c=10}return ue(a,J[b>>2],c,d+8|0)|0}function Cnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=2052348020){Dc(a,2050,0,0);return 2050}e=J[c+32>>2];J[b+32>>2]=e;H[b+40|0]=K[c+40|0];d=J[c+44>>2];J[b+44>>2]= -d;a:{if(e){d=gc[J[a+152>>2]](e)|0;J[b+36>>2]=d;if(!d)break a;tc(d,J[c+36>>2],J[b+32>>2]);d=J[b+44>>2]}if(d){d=gc[J[a+152>>2]](d)|0;J[b+48>>2]=d;if(!d)break a;tc(d,J[c+48>>2],J[b+44>>2])}return 0}Dc(a,1,0,0);return 1}function s9a(a,b,c,d,e){a=a|0;b=+b;c=+c;d=+d;e=+e;var f=0,g=0,h=0,i=0;f=bc-32|0;bc=f;O[f+16>>3]=c;O[f+24>>3]=b;h=f+24|0;i=f+16|0;gc[J[J[a>>2]+316>>2]](a,h,i)|0;O[f+8>>3]=O[f+24>>3]+d;g=f+8|0;gc[J[J[a>>2]+320>>2]](a,g,i)|0;O[f+8>>3]=O[f+24>>3]+d;O[f>>3]=O[f+16>>3]+e;gc[J[J[a>>2]+320>>2]](a, -g,f)|0;O[f+8>>3]=O[f+16>>3]+e;gc[J[J[a>>2]+320>>2]](a,h,g)|0;gc[J[J[a>>2]+340>>2]](a)|0;bc=f+32|0}function du(a,b,c){if(K[a+11664|0]){H[a+11665|0]=1;tr(a,J[a+11736>>2],J[a+11740>>2]);if(K[a+11744|0])lx(a,a+8|0,a+11704|0,J[a+11712>>2],J[a+11716>>2],1);H[a+11744|0]=0;I[a+11664>>1]=0}J[a+11720>>2]=b;J[a+11736>>2]=b;H[a+11667|0]=1;J[a+11740>>2]=c;J[a+11724>>2]=c;b=a+8|0;c=J[a+11676>>2];if(!(K[c+5|0]?0:K[a+20|0]))kx(b,J[a+11668>>2],J[a+11672>>2],c,J[a+11680>>2],0);tc(a+3876|0,b,3868)}function ogb(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[b>>2]+1|0;if(c>>>0<=65535){h=b;d=J[a+16>>2];a=K[d+6|0]<<8|K[d+7|0];c=a>>>0>>0?c:a;b=c-a|0;g=K[d+9|0]|K[d+8|0]<<8;e=0;a:{if(b>>>0>=g>>>0)break a;a=(d+(b<<1)|0)+10|0;while(1){f=K[a+1|0]|K[a|0]<<8;e=c;if(f)break a;if(c>>>0>65534)return 0;a=a+2|0;c=c+1|0;b=b+1|0;if(g>>>0>b>>>0)continue;break}f=0;e=0}J[h>>2]=e}return f|0}function mpa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2424960;J[695492]=0;_(5548,a|0);b=J[695492];J[695492]=0;a:{b:{if((b|0)!=1){J[a>>2]=2424992;b= -J[a+8>>2];J[a+8>>2]=0;if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break b}break a}break a}qc(ed(a));return}ea(0)|0;yc();B()}function Qqb(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;var h=0,i=0,j=0;a:{if(f){if(!d)break a;a=c<<1;i=b<<1;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(h-b| -0,i)+c|0)/(a|0)|0)|0;H[g+1|0]=b;f=f+2|0;e=e+2|0;g=g+2|0;j=j+1|0;if((j|0)!=(d|0))continue;break}break a}tc(g,e,d<<1)}return 0}function KI(a,b){var c=0,d=0,e=0,f=0;d=J[a+4>>2];c=J[a+8>>2];e=J[b+8>>2];if((d|0)<(c+e|0)){f=J[a>>2];while(1){c=J[a+12>>2];c=((c|0)>0?c:d)+d|0;J[a+4>>2]=c;f=Nd(f,c,4);J[a>>2]=f;d=J[a+4>>2];c=J[a+8>>2];e=J[b+8>>2];if((d|0)<(c+e|0))continue;break}}d=0;if((e|0)>0)while(1){f=J[J[b>>2]+(d<<2)>>2];e=c+1|0;J[a+8>>2]=e;J[J[a>>2]+(c<<2)>>2]=f;c=e;d=d+1|0;if((d|0)>2])continue; -break}}function Ez(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+32>>2];d=c;a:{b:{c:switch((b&3)-1|0){case 0:d=(c&4?2:1)^c^4;break b;case 1:d=c^3;break b;case 2:break c;default:break a}d=(c&4?1:2)^c^4}J[a+32>>2]=d}if((c^d)&4){J[a+44>>2]=0;J[a+48>>2]=1;J[a+36>>2]=0;J[a+40>>2]=1;e=a,f=Izb(J[a>>2],J[a+4>>2],32),J[e>>2]=f;J[a+4>>2]=fc;e=a,f=Izb(J[a+8>>2],J[a+12>>2],32),J[e+8>>2]=f;J[a+12>>2]=fc}}function sE(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=zc(40);J[e>>2]=0;e=zf(a+4|0,1,e,4);h=cc;a=0;a:{b:{while(1){if(a)break a; -J[695492]=0;ga(641,b|0,c|0,d|0)|0;a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;qc(e);ba(a|0);B()}f=-1;c:{d:{if(!a)break d;g=J[695493];if(!g)break d;f=Jc(J[a>>2],e,h);if(!f)break c;cc=g}a=cc;if((f|0)!=1)break b;continue}break}qc(e);ef(a,g);B()}i=1}qc(e);return i}function mO(a,b){var c=0,d=0;a:{if(K[b|0])while(1){c=J[a+8>>2];if(c&7)return-1;d=J[a+64>>2];if(!((d|0)<0|(d|0)>J[a+60>>2])){J[a+8>>2]=c|4;return-1}J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;b:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c= -K[b|0];d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=c;break b}c=-1;if((Uc(a,K[b|0])|0)==-1)break a}c=K[b+1|0];b=b+1|0;if(c)continue;break}c=0}return c}function Sm(a,b){var c=0,d=0,e=0,f=0;a:{if(b){if((b|0)>0)break a;return 0}fa(2339739,2338909,180,2340243);B()}c=J[a+12>>2];d=J[a+16>>2];while(1){e=b;b:{if(d)break b;c=c<<8&65280;J[a+12>>2]=c;d=(c|0)==65280?7:8;J[a+16>>2]=d;b=J[a+8>>2];if(b>>>0>=M[a+4>>2])break b;J[a+8>>2]=b+1;c=K[b|0]|c;J[a+12>>2]=c}d=d-1|0;J[a+16>>2]=d;b=e-1|0;f=(c>>>d&1)<>>0>1)continue; -break}return f}function Hqa(a,b){a=a|0;b=b|0;var c=0;b=bc-32|0;bc=b;a:{c=a+160|0;if($i(a,0,262142,c)|$i(a,0,262142,c)){a=Kc(b+8|0,2379980,2374240,670,2421682,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}J[a+200>>2]=1;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+224>>2]=0;J[a+228>>2]=0;H[a+49|0]=1;J[a+232>>2]=0;J[a+236>>2]=0;bc=b+32|0;return}B()}function Deb(a){a=a|0;var b=0,c=0,d=0;b=J[a+196>>2];d=b+10|0;if(d>>>0<=M[a+200>>2]){c=K[b|0]|K[b+1|0]<< -8;I[a+32>>1]=c<<8|c>>>8;c=K[b+2|0]|K[b+3|0]<<8;J[a+36>>2]=(c<<8|c>>>8)<<16>>16;c=K[b+4|0]|K[b+5|0]<<8;J[a+40>>2]=(c<<8|c>>>8)<<16>>16;c=K[b+6|0]|K[b+7|0]<<8;J[a+44>>2]=(c<<8|c>>>8)<<16>>16;b=K[b+8|0]|K[b+9|0]<<8;J[a+196>>2]=d;J[a+48>>2]=(b<<8|b>>>8)<<16>>16;a=0}else a=20;return a|0}function z7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);g=K[a+ -2|0];e=255-e|0;h=b;b=f^255;H[a+2|0]=(P(g,e)+P(h,b+g|0)|0)+255>>>8;f=K[a+1|0];H[a+1|0]=(P(f,e)+P(b+f|0,c)|0)+255>>>8;c=a;a=K[a|0];H[c|0]=(P(a,e)+P(a+b|0,d)|0)+255>>>8}}function ktb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(!Do(b))break a;e=J[a+16>>2];if((e|0)!=J[b+16>>2])break a;d=J[a+20>>2];if((d|0)!=J[b+20>>2])break a;c=J[a+964>>2];if(!c){c=zc(P(d,e));J[a+964>>2]=c}f=J[b+56>>2];if(!f|!c)break a;g=1;if((d|0)<=0)break a;d=0;while(1){c=tc(c,f,e);f=J[b+52>>2]+f|0;e=J[a+16>>2];c=c+e|0;d=d+1|0;if((d| -0)>2])continue;break}}return g|0}function fm(a,b,c,d,e){var f=0,g=0,h=0,i=0;f=bc-32|0;bc=f;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;g=J[a>>2];h=0;b:{if(!g)break b;h=0;if(J[g+108>>2]!=-554844497)break b;h=J[g+124>>2]}g=J[a+112>>2];i=J[a+108>>2];J[f+20>>2]=e;J[f+16>>2]=d;Cc(h,g,i,a,0,4,b,2,d,e,0,0,c,f+16|0);J[a+100>>2]=0;break a}J[f+4>>2]=e;J[f>>2]=d;Cc(0,0,0,0,0,4,b,2,d,e,0,0,c,f)}bc=f+32|0}function b6a(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;a:{if((d| -0)<=0)break a;g=J[a+112>>2];if(!g)break a;j=J[J[a+480>>2]+24>>2];while(1){a=J[(e<<2)+b>>2];c=g;while(1){h=(J[(K[a|0]>>>1&124)+j>>2]+(K[a+1|0]<<4&4032)|0)+(K[a+2|0]>>>2&62)|0;i=L[h>>1];f=i+1|0;I[h>>1]=(f|0)!=(f&65535)?i:f;a=a+3|0;c=c-1|0;if(c)continue;break}e=e+1|0;if((e|0)!=(d|0))continue;break}}}function VV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b>>2];a:{b:{c:{d:{e:{if(K[b+8|0]){if(!c)break e;c=J[c>>2]}if(c)break d}H[a+11|0]=0;break c}d=Ve(c);if(d>>>0>=1073741808)break b;f:{if(d>>>0<=1){H[a+11|0]= -d;break f}b=d|3;if(b>>>0>=1073741823)break a;e=b+1|0;b=rc(e<<2);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b}b=a;a=d<<2;a=Zc(b,c,a)+a|0}J[a>>2]=0;return}Id(a);B()}Sd();B()}function Trb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1096;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1097;if(K[a+2272|0])break a}b=1098}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2]+7>>>3|0;J[a+588>>2]=b;J[a+ -608>>2]=J[a+616>>2]+b;J[a+604>>2]=b+7>>>3;return Hf(a)|0}function KBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+4>>2];if(!d)break a;if(d>>>0>=4){e=d&-4;a=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];H[b+3|0]=K[c+3|0]+K[b+3|0];b=b+4|0;c=c+4|0;a=a+4|0;if((e|0)!=(a|0))continue;break}}d=d&3;if(!d)break a;a=0;while(1){H[b|0]=K[c|0]+K[b|0];b=b+1|0;c=c+1|0;a=a+1|0;if((d|0)!=(a|0))continue;break}}}function Frb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1117;if(J[a+ -536>>2]){a:{if(K[a+288|0]){b=1118;if(K[a+2272|0])break a}b=1119}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2]+7>>>3|0;J[a+588>>2]=b;J[a+608>>2]=J[a+616>>2]+b;J[a+604>>2]=b+7>>>3;return Hf(a)|0}function wib(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;c=J[a>>2];a:{if(!c)break a;f=J[a+32>>2];b=Zd(f,J[a+4>>2],d+12|0);J[a>>2]=b;if(J[d+12>>2])break a;tc(b,c,J[a+4>>2]);e=J[a+ -16>>2];if((e|0)>0){h=J[a>>2]-c|0;b=J[a+24>>2];e=b+(e<<2)|0;while(1){g=J[b>>2];if(g)J[b>>2]=h+g;b=b+4|0;if(e>>>0>b>>>0)continue;break}}J[a+8>>2]=J[a+4>>2];if(c)gc[J[f+8>>2]](f,c)}bc=d+16|0}function d5a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=bc-16|0;bc=f;a:{if(b){e=rc(32);J[695492]=0;J[e+12>>2]=0;J[e+16>>2]=0;J[e+4>>2]=1;J[e+8>>2]=8;J[e>>2]=349684;J[e+20>>2]=0;J[e+24>>2]=0;H[e+28|0]=0;g=J[695492];J[695492]=0;if((g|0)==1)break a;J[a+20>>2]=e;J[f+12>>2]=c;J[f+8>>2]=d;J[f+4>>2]=0-(c<<2);nm(e, -b,f+12|0,f+8|0,f+4|0,0)}bc=f+16|0;return}a=Z()|0;qc(e);ba(a|0);B()}function cRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;c=J[a+28>>2];e=J[c+596>>2];if(!(J[e+28>>2]>0|J[e>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,b,820238,0);return}d=O[b+24>>3];a=J[b+24>>2];g=J[b+16>>2];f=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];O[c+600>>3]=f;d=(g|0)==1?+(a|0):d;O[c+608>>3]=d;ie(e,f,d)}function Zha(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e| -0;var f=0,g=0,h=0;g=bc-16|0;bc=g;e=J[b>>2];a:{if(!e|!c)break a;d=a?d:0;while(1){f=Iy(d>>>0<4?g+12|0:a,J[e>>2],0);if((f|0)==-1){h=-1;break a}if(a){if(d>>>0<=3){if(d>>>0>>0)break a;tc(a,g+12|0,f)}d=d-f|0;a=a+f|0}else a=0;if(!J[e>>2]){e=0;break a}h=f+h|0;e=e+4|0;c=c-1|0;if(c)continue;break}}if(a)J[b>>2]=e;bc=g+16|0;return h|0}function GRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=O[b+24>>3];f=J[b+24>>2];g=J[b+16>>2];c=J[a+28>>2];e=O[c+616>>3]+(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3]);O[c+616>>3]=e;d= -(g|0)==1?+(f|0):d;O[c+576>>3]=-d;d=d+O[c+624>>3];O[c+624>>3]=d;O[c+600>>3]=O[c+536>>3]+(O[c+504>>3]*e+d*O[c+520>>3]);O[c+608>>3]=O[c+544>>3]+(O[c+512>>3]*e+d*O[c+528>>3]);a=J[a+8>>2];gc[J[J[a>>2]+184>>2]](a,c)}function zrb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1126;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1127;if(K[a+2272|0])break a}b=1128}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+ -316>>2];J[a+608>>2]=b+J[a+616>>2];b=b+7>>>3|0;J[a+604>>2]=b;J[a+588>>2]=b;return Hf(a)|0}function nlb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+4>>2];J[a+2748>>2]=b;c=J[b+28>>2];J[a+4>>2]=J[b+44>>2];J[a+8>>2]=J[b+48>>2];J[a+12>>2]=J[b+9848>>2];J[a+16>>2]=J[b+9852>>2];d=J[b+24>>2];f=d&-3;c=!(H[e+12|0]&1)&(f|0)!=1?c:c|1;J[a+2740>>2]=K[J[J[b+36>>2]+388>>2]+20|0]?c:c|8;c=a;a=(d&-2)==2;b=a|2;e=(d|0)==4?b:a;a=(d|0)==2;b=a?b:e;b=(f|0)==1?b:b|4;J[c+2744>>2]=a?b|8:b;return 0}function n0(a,b,c,d,e,f){var g= -0,h=0;h=bc-32|0;bc=h;a:{if(!a){a=0;J[h>>2]=0;Cc(0,0,0,0,0,2,521,2,0,0,0,0,21049,h);break a}g=J[a+48>>2];if(!g){a=0;J[h+16>>2]=0;Cc(0,0,0,0,0,2,522,2,0,0,0,0,2991,h+16|0);break a}a=m0(g,b,c,d,e,f);if(!a){a=0;break a}J[a+20>>2]=g;J[a+32>>2]=J[g+32>>2];b=J[g+16>>2];b:{if(!b){J[g+12>>2]=a;break b}J[b+24>>2]=a;J[a+28>>2]=b}J[g+16>>2]=a}bc=h+32|0;return a}function l0(a,b,c,d,e,f){var g=0,h=0;h=bc-32|0;bc=h;a:{if(!a){a=0;J[h>>2]=0;Cc(0,0,0,0,0,2,521,2,0,0,0,0,21083,h);break a}g=J[a+44>>2];if(!g){a=0;J[h+ -16>>2]=0;Cc(0,0,0,0,0,2,522,2,0,0,0,0,3078,h+16|0);break a}a=m0(g,b,c,d,e,f);if(!a){a=0;break a}J[a+20>>2]=g;J[a+32>>2]=J[g+32>>2];b=J[g+16>>2];b:{if(!b){J[g+12>>2]=a;break b}J[b+24>>2]=a;J[a+28>>2]=b}J[g+16>>2]=a}bc=h+32|0;return a}function _n(a,b){var c=0,d=0,e=0;if(Ec(b,777619)){c=J[a>>2];if(!Ec(b,778787)){a:{b:{if((c|0)<=1){d=J[a+4>>2];break b}b=c-2|0;d=J[a+4>>2];while(1){if(K[b+d|0]!=47){e=(b|0)>0;b=b-1|0;if(e)continue;break b}break}if(b)break a}if(K[d|0]==47){dm(a,1,c-1|0);return a}Eh(a);od(a, -778787);return a}dm(a,b,c-b|0);return a}if(!(K[(J[a+4>>2]+c|0)-1|0]==47|(c|0)<=0))zd(a,47);od(a,b)}return a}function Nrb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1105;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1106;if(K[a+2272|0])break a}b=1107}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+608>>2]=b+J[a+616>>2];b=b+7>>>3|0;J[a+604>>2]=b;J[a+588>>2]=b;return Hf(a)|0}function Lwb(a){a= -a|0;var b=0,c=0,d=0;b=J[J[a+40>>2]+16>>2];a=J[a+52>>2];gc[J[J[a>>2]+20>>2]](a,2)|0;a:{if((b|0)<=0)break a;if((b|0)!=1){d=b&-2;while(1){gc[J[J[a>>2]+20>>2]](a,2)|0;gc[J[J[a>>2]+20>>2]](a,2)|0;gc[J[J[a>>2]+20>>2]](a,2)|0;gc[J[J[a>>2]+20>>2]](a,2)|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(!(b&1))break a;gc[J[J[a>>2]+20>>2]](a,2)|0;gc[J[J[a>>2]+20>>2]](a,2)|0}}function GWa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=bc-16|0;bc=f;if(!(K[a+220|0]|K[a+204|0])){g=J[a+104>>2];J[f+12>>2]= -32;h=f+12|0;gc[J[J[g>>2]+308>>2]](g,h)|0;g=J[a+104>>2];J[f+12>>2]=e;gc[J[J[g>>2]+412>>2]](g,h)|0;uk(a,c,O[b+104>>3],d,0);b=J[a+104>>2];J[f+12>>2]=4;gc[J[J[b>>2]+312>>2]](b,h)|0;a=J[a+104>>2];J[f+12>>2]=32;gc[J[J[a>>2]+312>>2]](a,h)|0}bc=f+16|0}function CO(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=zc(40);J[b>>2]=0;b=zf(a+624|0,1,b,4);g=cc;a:{b:{while(1){if(c){f=-1;break a}J[695492]=0;f=$(87,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;d=-1;c:{d:{if(!c)break d;e=J[695493];if(!e)break d;d=Jc(J[c>>2],b, -g);if(!d)break c;cc=e}c=cc;if((d|0)==1)continue;break a}break}qc(b);ef(c,e);B()}a=Z()|0;qc(b);ba(a|0);B()}qc(b);return f}function o7a(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);e=f+(f^255)|0;H[a|0]=(P(e,d)+P(K[a|0],255-(d<<1)|0)|0)+255>>>8;d=K[a+2|0];H[a+2|0]=(P(d,255)+P(e-(d<<1)|0,b)|0)+255>>>8;b=a;a=K[a+1|0];H[b+1|0]=(P(a,255)+P(e-(a<<1)|0,c)|0)+255>>>8}} -function mrb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a;b=1145;b:switch(K[a+336|0]-12|0){case 2:b=1146;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;b=J[a+316>>2];J[a+604>>2]=b;J[a+588>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function j7(a){var b=0,c=0,d=0,e=0,f=0;if(!a)return 0;b=J[a+12>>2];c=J[a+8>>2];a:{if((b|c)<0)break a;d=J[a+4>>2];b:{e=J[a>> -2];if((e|0)>=0)break b;c=c+e|0;e=0;if((c|0)>0)break b;return 0}c:{if((d|0)>=0)break c;b=b+d|0;d=0;if((b|0)>0)break c;return 0}a=bd(1,20);if(!a)break a;J[a+4>>2]=d;J[a>>2]=e;if((c|0)!=-1)J[a+8>>2]=c;if((b|0)!=-1)J[a+12>>2]=b;J[a+16>>2]=1;f=a}return f}function fha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>0){a=J[a+12>>2];while(1){g=c;c=L[a>>1];e=c&32767;f=0;a:{if(!e)break a;d=Vo((+(e>>>0)+.5)*.0027076061740622863+-44.3614195558365);d=c<<16>>16<0?-d:d;f=0;if(d<=0)break a;e=d>=1;d=Y(d)*256; -b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}f=e?255:c}e=f;a=a+2|0;c=g-1|0;H[b|0]=e;b=b+1|0;if(g>>>0>1)continue;break}}}function bQa(a){a=a|0;var b=0;b=rc(120);J[b>>2]=2205996;J[b+4>>2]=15;J[b+8>>2]=0;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+48>>3]=O[a+48>>3];O[b+56>>3]=O[a+56>>3];O[b+64>>3]=O[a+64>>3];O[b+72>>3]=O[a+72>>3];O[b+80>>3]=O[a+80>>3];O[b+88>>3]=O[a+88>>3];O[b+96>>3]=O[a+96>>3];O[b+104>>3]=O[a+104>>3];O[b+112>>3]=O[a+112>>3];return b| -0}function _sb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){d=J[a+644>>2];c=d;while(1){b=K[c|0]|K[c+1|0]<<8;H[d|0]=((b<<8|b>>>8)&65535)>>>8;b=K[c+2|0]|K[c+3|0]<<8;H[d+1|0]=((b<<8|b>>>8)&65535)>>>8;b=K[c+4|0]|K[c+5|0]<<8;H[d+2|0]=((b<<8|b>>>8)&65535)>>>8;b=K[c+6|0]|K[c+7|0]<<8;H[d+3|0]=((b<<8|b>>>8)&65535)>>>8;c=c+8|0;d=d+4|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Xob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=J[b+32>>2];e=(c+J[b+40>>2]|0)+1|0;b:{if(e>>>0<=M[a+424>>2]){d=J[a+ -428>>2]+8|0;break b}d=gc[J[a+152>>2]](e)|0;if(!d)break a;c=J[b+32>>2]}f=d;if(c)f=tc(d,J[b+36>>2],c)+J[b+32>>2]|0;H[f|0]=0;c=J[b+40>>2];if(c)tc(f+1|0,J[b+44>>2],c);b=ue(a,J[b>>2],e,d);if(M[a+424>>2]>>0)gc[J[a+156>>2]](d,e);return b|0}Dc(a,1,0,0);return 1}function Vrb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1096;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1097;if(K[a+2272|0])break a}b=1098}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=3;J[a+592>>2]= -1;J[a+596>>2]=7;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+7>>3;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function Srb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1099;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1100;if(K[a+2272|0])break a}b=1101}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=2;J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+3>>2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)| -0}function Smb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1347439700){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];a=J[c+36>>2];J[b+36>>2]=a;if(a){a=0;while(1){d=P(a,5);e=d+b|0;d=c+d|0;H[e+44|0]=K[d+44|0];d=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[e+40|0]=d;H[e+41|0]=d>>>8;H[e+42|0]=d>>>16;H[e+43|0]=d>>>24;a=a+1|0;if(a>>>0>2])continue;break}}return 0}function Qrb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1102;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1103;if(K[a+2272|0])break a}b= -1104}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+1>>1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function OF(a){a=a|0;var b=0,c=0,d=0;gz(a);b=J[a+2324>>2];d=a+2328|0;if((b|0)!=(d|0))while(1){c=J[b+20>>2];if(c)gc[J[J[c>>2]+4>>2]](c);c=J[b+4>>2];a:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break a}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue; -break}}if((b|0)!=(d|0))continue;break}Dq(a+2324|0,J[a+2328>>2]);J[a+2324>>2]=d;J[a+2328>>2]=0;J[a+2332>>2]=0;ez(a+1936|0)}function Krb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1111;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1112;if(K[a+2272|0])break a}b=1113}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=3;J[a+596>>2]=0;J[a+652>>2]=3;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=P(b,3);J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0} -function Irb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1114;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1115;if(K[a+2272|0])break a}b=1116}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=6;J[a+596>>2]=0;J[a+652>>2]=6;H[a+648|0]=1;b=J[a+316>>2];J[a+588>>2]=b;b=P(b,6);J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function Grb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1117;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1118;if(K[a+2272|0])break a}b= -1119}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+7>>3;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function Erb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1120;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1121;if(K[a+2272|0])break a}b=1122}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=2;J[a+592>>2]=1;J[a+ -596>>2]=3;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+3>>2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function Du(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;J[e+12>>2]=c;if(c){if(K[a+11|0]>>>7|0)g=J[a+4>>2];else g=K[a+11|0]&127;if(K[a+11|0]>>>7|0)c=J[a>>2];else c=a;f=g-b|0;J[e+8>>2]=f;d=bc-16|0;bc=d;bc=d+16|0;d=e+8|0;h=e+12|0;d=J[(M[d>>2]>2]?d:h)>>2];J[e+12>>2]=d;if((d|0)!=(f|0)){b=(b<<2)+c|0;Cm(b,b+(d<<2)|0,f-d|0);f=J[e+12>>2]}Eu(a,c,g-f|0)}bc= -e+16|0}function Crb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1123;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1124;if(K[a+2272|0])break a}b=1125}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+1>>1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function lU(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=bc-16|0;bc=c;a:{b:{d=K[b+2|0];c:{if((d-13&255)>>>0<244)break c;e=K[b+ -3|0];if((e-32&255)>>>0<225)break c;f=K[b+4|0];if(f>>>0>23)break c;g=K[b+6|0];if(g>>>0<61)break b}Yc(a,63298);break a}h=L[b>>1];H[c+13|0]=f;H[c+12|0]=e;H[c+11|0]=d;H[c+10|0]=h;H[c+9|0]=h>>>8;b=K[b+5|0];H[c+15|0]=g;H[c+14|0]=b;Qh(a,1950960965,c+9|0,7)}bc=c+16|0}function FO(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=zc(40);J[d>>2]=0;d=zf(a+4|0,1,d,4);g=cc;a=0;a:{b:{while(1){if(a)break a;J[695492]=0;ga(86,b|0,c|0,1)|0;a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;qc(d);ba(a|0);B()}e=-1;c:{d:{if(!a)break d;f=J[695493]; -if(!f)break d;e=Jc(J[a>>2],d,g);if(!e)break c;cc=f}a=cc;if((e|0)!=1)break b;continue}break}qc(d);ef(a,f);B()}h=1}qc(d);return h}function EEa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;if(!(!J[a+12>>2]|(!J[a+4>>2]|!J[a+8>>2]))){J[c+12>>2]=0;gc[J[J[b>>2]+16>>2]](b,c+12|0)|0;a:{if(J[c+12>>2]==1){b=b-4|0;gc[J[J[b>>2]+264>>2]](b,J[a+4>>2],J[a+8>>2],J[a+12>>2])|0;J[c>>2]=0;J[c+4>>2]=0;break a}gc[J[J[b>>2]+136>>2]](b,2370876)|0;gc[J[J[b>>2]+228>>2]](b,J[a+4>>2],J[a+8>>2],J[a+12>>2])|0}d=1}bc=c+16|0;return d| -0}function yrb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1129;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1130;if(K[a+2272|0])break a}b=1131}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b<<1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function xua(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){c=L[a+26>>1];d=P(g,c);h= -h<<2;while(1){f=f-1|0;g=e;while(1){a=K[i+3|0];J[b>>2]=a<<24|((P(a,K[i|0])+127&65535)>>>0)/255|((P(a,K[i+1|0])+127&65535)>>>0)/255<<8|((P(a,K[i+2|0])+127&65535)>>>0)/255<<16;i=c+i|0;b=b+4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+h|0;if(f)continue;break}}}function wrb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1132;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1133;if(K[a+2272|0])break a}b=1134}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=4; -J[a+596>>2]=0;J[a+652>>2]=4;H[a+648|0]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b<<2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function urb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1135;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1136;if(K[a+2272|0])break a}b=1021}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=4;J[a+596>>2]=0;J[a+652>>2]=4;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b<<2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)| -0}function srb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1137;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1138;if(K[a+2272|0])break a}b=1020}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=8;J[a+596>>2]=0;J[a+652>>2]=8;H[a+648|0]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b<<3;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function mT(a,b){a=a|0;b=b|0;var c=0,d=0;b=J[b>>2];d=J[(b?b+12|0:2728584)>>2];b=K[d|0];a:{if(!b)break a;c=d;while(1){b:{b= -b&255;if(b-48>>>0<10|(b|32)-97>>>0<26)break b;c:switch(b-43|0){case 0:case 2:case 3:break b;case 15:break c;default:break a}if(K[c+1|0]!=47|K[c+2|0]!=47)break a;mG(a,d,c-d|0);return}b=K[c+1|0];c=c+1|0;if(b)continue;break}}J[a>>2]=0;J[a+4>>2]=J[682146]}function li(a,b,c){var d=0,e=0,f=0;if((c|0)<=0)return 0;a:{while(1){d=J[a+8>>2];if(d&7)break a;f=J[a+64>>2];if(!((f|0)<0|J[a+60>>2]<(f|0))){J[a+8>>2]=d|4;return e}d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>> -2]=d+1;d=K[d|0];break b}d=jd(a,1);if((d|0)==-1)break a}H[b|0]=d;b=b+1|0;e=e+1|0;if((e|0)!=(c|0))continue;break}e=c}return e}function gRa(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+28>>2];c=J[b+596>>2];if(!(J[c+28>>2]>0|J[c>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,b,821258,0);return}_f(c);a=J[b+596>>2];a=J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2];c=J[a+12>>2]<<3;O[b+600>>3]=O[(c+J[a>>2]|0)-8>>3];O[b+608>>3]=O[(c+J[a+4>>2]|0)-8>>3]} -function Mrb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1108;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1109;if(K[a+2272|0])break a}b=1110}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;H[a+648|0]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b<<1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Hf(a)|0}function Jbb(a){a=a|0;var b=0,c=0;b=J[a+20>>2];a:{b:{if(b-205>>>0<=1){if(!J[a+64>>2])break b;gc[J[J[a+440>>2]+4>>2]](a);J[a+ -20>>2]=208;break a}if((b|0)==208)break a}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}c:{while(1){if(J[a+144>>2]>J[a+152>>2])break c;b=J[a+456>>2];if(J[b+20>>2])break c;if(gc[J[b>>2]](a)|0)continue;break}return 0}J[a+20>>2]=207;return 1}function Ds(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=J[b>>2];d=J[c>>2];f=(d|0)<(f|0)?f:d;J[a>>2]=f;d=J[b+8>>2];e=J[c+8>>2];d=(d|0)<(e|0)?d:e;J[a+8>>2]=d;e=J[b+4>>2];g=J[c+4>>2];e=(e|0)>(g|0)?e:g;J[a+4>>2]=e;b=J[b+12>>2];c=J[c+12>>2];c=(b|0)<(c|0)? -b:c;J[a+12>>2]=c;a:{if((d|0)>(f|0)){b=1;if((c|0)>(e|0))break a}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;b=0}return b|0}function n8(a){var b=0,c=0,d=0,e=0;a:{b:{if(K[a+460|0]|!K[a+496|0])break b;b=J[a+560>>2];d=J[a+564>>2];if(b>>>0>=d>>>0)break b;c=J[a+552>>2];e=J[a+556>>2];if(c>>>0>=e>>>0)break b;if(!(gc[J[a+232>>2]](a,c,b,e-c|0,d-b|0)|0)){Dc(a,904,0,0);return 904}H[a+502|0]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+552>>2]=0;J[a+556>>2]=0;if(K[a+500|0])break b;a=OD(a);if(a)break a}a=0}return a}function S7(a, -b){a=a|0;b=b|0;var c=0,d=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;d=J[a+428>>2];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;H[d+16|0]=K[b+44|0];return ue(a,J[b>>2],9,d+8|0)|0}function Qoa(a,b,c,d,e,f,g,h,i){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;a=hT(a,b,c,d,e,1,f,g,h,i);if(!a)return 0;b=J[a+16>> -2];J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;qc(Ng(a));return b|0}function Pe(a,b,c){var d=0,e=0,f=0;d=bc-32|0;bc=d;a:{if(!(!a|!J[a+212>>2])&J[a+172>>2]==-1)break a;e=14415;f=b-1|0;if(f>>>0<=109)e=J[(f<<2)+774036>>2];if(a)J[a+84>>2]=b;b:{if(!c){J[d>>2]=e;Cc(0,0,0,a,0,1,b,3,0,0,0,0,32890,d);break b}J[d+20>>2]=c;J[d+16>>2]=e;Cc(0, -0,0,a,0,1,b,3,c,0,0,0,32761,d+16|0)}if(!a)break a;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}bc=d+32|0}function NW(a){J[a+28>>2]=2359728;J[a+100>>2]=2359728;J[a+96>>2]=2359728;J[a+92>>2]=2359728;J[a+88>>2]=2359728;J[a+84>>2]=2359728;J[a+80>>2]=2359728;J[a+76>>2]=2359728;J[a+72>>2]=2359728;J[a+68>>2]=2359728;J[a- -64>>2]=2359728;J[a+60>>2]=2359728;J[a+56>>2]=2359728;J[a+52>>2]=2359728;J[a+48>>2]=2359728;J[a+44>>2]=2359728;J[a+40>>2]=2359728;J[a+36>>2]=2359728;J[a+32>>2]=2359728}function BO(a, -b){var c=0,d=0,e=0,f=0,g=0,h=0;c=zc(40);J[c>>2]=0;c=zf(a+624|0,1,c,4);g=cc;a:{b:{while(1){if(d)break a;J[695492]=0;ca(98,a|0,b|0,0);d=J[695492];J[695492]=0;if((d|0)==1){a=Z()|0;qc(c);ba(a|0);B()}e=-1;c:{d:{if(!d)break d;f=J[695493];if(!f)break d;e=Jc(J[d>>2],c,g);if(!e)break c;cc=f}d=cc;if((e|0)!=1)break b;continue}break}qc(c);ef(d,f);B()}h=1}qc(c);return h}function Aub(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>> -2])|0;b=J[a+636>>2]+J[a+616>>2]|0;while(1){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;b=b+4|0;c=(J[a+584>>2]<<2)+c|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function ABa(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;e=J[a+4>>2];a=K[c|0];d=a+K[b|0]|0;H[b|0]=d;if((e|0)>=2){l=b+e|0;b=b+1|0;while(1){h=d&255;d=h-a|0;f=d>>31;e=K[c+1|0];g=e-a|0;i=g>>31;j=d+g|0;k=j>>31;m=a;a=(d^f)-f|0;d=(g^i)-i|0;f=a>>>0>> -0;d=K[b|0]+((k^j)-k>>>0<(f?a:d)>>>0?m:f?e:h)|0;H[b|0]=d;c=c+1|0;a=e;b=b+1|0;if(l>>>0>b>>>0)continue;break}}}function opa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2424960;J[695492]=0;_(5548,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)a:{J[a>>2]=2424992;b=J[a+8>>2];J[a+8>>2]=0;b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}return ed(a)|0}ea(0)|0;yc();B()}function jqa(a,b){a=a| -0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b&7;b:{if(!d){c=b;break b}c=b;while(1){J[a+4>>2]=0;a=a+12|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<8)break a;while(1){J[a+4>>2]=0;J[a+88>>2]=0;J[a+76>>2]=0;J[a- -64>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;a=a+96|0;b=c-9|0;c=c-8|0;if(b>>>0<4294967294)continue;break}}}function eob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+960>>2];a:{if(!e)break a;c=J[a+16>>2];if((c|0)!=J[b+16>>2])break a;d=J[a+20>>2];if((d|0)!=J[b+ -20>>2])break a;d=P(c,d);c=J[a+960>>2];if(!c){c=zc(d);J[a+960>>2]=c;if(!c)break a;e=J[b+960>>2]}tc(c,e,d);c=J[b+384>>2];J[a+380>>2]=J[b+380>>2];J[a+384>>2]=c;c=J[b+376>>2];J[a+372>>2]=J[b+372>>2];J[a+376>>2]=c;f=1}return f|0}function _Pa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;gc[J[J[a>>2]+20>>2]](a,b,e+4|0,d);a=65536-J[e+12>>2]|0;a=(a|0)>=65536?65536:a;b=(a|0)>0?a:0;a=65536-J[e+8>>2]|0;a=(a|0)>=65536?65536:a;d=(a|0)>0?a:0;a=65536-J[e+4>>2]|0;a=(a|0)>=65536?65536:a;f=(a|0)>0?a: -0;a=d>>>0>>0?d:f;a=a>>>0>b>>>0?b:a;J[c+12>>2]=a;J[c+8>>2]=b-a;J[c+4>>2]=d-a;J[c>>2]=f-a;bc=e+16|0}function _C(a,b){var c=0,d=0,e=0,f=0,g=0;if(a){d=J[a+4>>2];a:{if(!d)break a;c=J[a+20>>2];if((d|0)!=1){g=d&-2;while(1){e=J[c>>2];if(e)gc[J[b+8>>2]](b,e);J[c>>2]=0;e=J[c+4>>2];if(e)gc[J[b+8>>2]](b,e);J[c+4>>2]=0;c=c+8|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(d&1))break a;d=J[c>>2];if(d)gc[J[b+8>>2]](b,d);J[c>>2]=0}c=J[a+20>>2];if(c)gc[J[b+8>>2]](b,c);J[a+20>>2]=0}}function E6(a,b){var c=0,d=0, -e=0,f=0,g=0,h=0;J[b>>2]=0;a:{if(!a)break a;d=J[a+8>>2];if(!d)break a;e=J[J[a>>2]>>2];while(1){g=J[J[a>>2]+(f<<2)>>2];h=K[g|0];if(h){while(1){H[c+e|0]=h;c=c+1|0;h=K[g+1|0];g=g+1|0;if(h)continue;break}d=J[a+8>>2]}f=f+1|0;if(f>>>0>>0){H[c+e|0]=32;d=J[a+8>>2];c=c+1|0}if(d>>>0>f>>>0)continue;break}if((e|0)!=254769)H[c+e|0]=0;J[b>>2]=c}return e}function BDa(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;g=J[a+4>>2];if(g){a=bc-16|0;bc=a;g=J[g+12>>2];if(!g){J[c>>2]=0;J[c+4>>2]=0;J[d>>2]= -0;J[d+4>>2]=0;J[e>>2]=0;J[e+4>>2]=1079508992;J[f>>2]=0;J[f+4>>2]=1079508992}J[a+12>>2]=0;J[a+8>>2]=0;J[a+4>>2]=0;xG(g,b,a+12|0,a+8|0,a+4|0);O[c>>3]=J[a+12>>2];O[d>>3]=J[a+8>>2];h=+J[a+4>>2];O[e>>3]=h;O[f>>3]=h;bc=a+16|0}}function x6a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=Q(0),e=0,f=Q(0),g=Q(0),h=Q(0),i=Q(0),j=Q(0);e=J[a+176>>2];f=N[e+20>>2];d=b;b=N[e+16>>2];g=Q(d-b);d=Q(N[e+12>>2]-f);h=Q(N[e>>2]-b);i=Q(b-N[e+8>>2]);j=N[e+4>>2];b=Q(Q(d*h)+Q(i*Q(j-f)));c=Q(c-f);d=Q(Q(Q(d*g)+Q(c*i))/b);b=Q(Q(Q(Q(f-j)*g)+ -Q(c*h))/b);a=J[a+200>>2];return Q(Q(Q(Q(Q(Q(1)-d)-b)*N[a+8>>2])+Q(Q(d*N[a>>2])+Q(N[a+4>>2]*b))))}function rE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=zc(40);J[c>>2]=0;c=zf(a+624|0,1,c,4);g=cc;a:{b:{while(1){if(d)break a;J[695492]=0;da(97,a|0,b|0);d=J[695492];J[695492]=0;if((d|0)==1){a=Z()|0;qc(c);ba(a|0);B()}e=-1;c:{d:{if(!d)break d;f=J[695493];if(!f)break d;e=Jc(J[d>>2],c,g);if(!e)break c;cc=f}d=cc;if((e|0)!=1)break b;continue}break}qc(c);ef(d,f);B()}h=1}qc(c);return h}function omb(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0,f=0,g=0;H[a+24|0]=0;d=J[a+4>>2];a:{if(!d)break a;c=J[a+16>>2];e=J[a+20>>2];b:{if((c|0)<(e|0))break b;f=e;e=c+1|0;if(f>>>0>=e>>>0)break b;c=(e&-65536)+65536|0;d=Vd(d,c);J[a+20>>2]=c;H[a+12|0]=1;J[a+4>>2]=d;if(!d)break a;c=J[a+16>>2]}g=1;J[a+16>>2]=c+1;H[c+d|0]=b;b=J[a+16>>2];if((b|0)<=J[a+8>>2])break a;J[a+8>>2]=b}return g|0}function hy(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=bc-16|0;bc=f;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127; -a:{if(d-e>>>0>=c>>>0){if(!c)break a;if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;kk(d+(e<<2)|0,b,c);b=c+e|0;Nk(a,b);J[f+12>>2]=0;J[d+(b<<2)>>2]=J[f+12>>2];break a}Yr(a,d,(c-d|0)+e|0,e,e,0,c,b)}bc=f+16|0;return a|0}function ZW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[a+160>>2]=b;d=J[a+72>>2];a:{if(!d)break a;f=J[d+24>>2];if(!f)break a;e=J[a+12>>2];if(!e|!J[e+5584>>2])break a;e=J[d+16>>2];if(!e)return 1;d=0;while(1){if(M[(J[J[a+12>>2]+5584>>2]+P(d,1080)|0)+4>>2]<=b>>>0){Hc(c,1,2351371,0);return 0}J[(P(d, -52)+f|0)+40>>2]=b;g=1;d=d+1|0;if((e|0)!=(d|0))continue;break}}return g|0}function Xo(a,b){var c=0;a:{if(!b)break a;if(b&1){c=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=c;c=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=c;a=a+4|0;c=b-1|0}else c=b;if((b|0)==1)break a;while(1){b=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=b;b=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=b;b=K[a+7|0];H[a+7|0]=K[a+4|0];H[a+4|0]=b;b=K[a+6|0];H[a+6|0]=K[a+5|0];H[a+5|0]=b;a=a+8|0;c=c-2|0;if(c)continue;break}}}function Km(a){var b=0,c=0,d=0;d=bc-32|0;bc=d;a:{if(!J[a+ -72>>2])break a;c=J[a+68>>2];if(!c)break a;b=Dzb(L[a+84>>1],0,c,0);if(fc){b=J[a>>2];c=J[a+628>>2];J[d+16>>2]=72519;Nc(c,b,74119,d+16|0);b=0}b:{if(L[a+138>>1]!=1)break b;c=L[a+98>>1];b=Dzb(c,0,b,0);if(!c|!fc)break b;b=J[a>>2];a=J[a+628>>2];J[d>>2]=72519;Nc(a,b,74119,d);b=0}b=(b>>>3|0)+((b&7)!=0)|0}bc=d+32|0;return b}function BT(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=bc-32|0;bc=e;d=-1;a:{b:{if((c|0)>=0)break b;c=J[a+8>>2]+c|0;if((c|0)>=0)break b;a=Kc(e+8|0,2381920,2374069,1748,2414405,0);J[695492]=0; -_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}if(!(!b|!K[b|0]|J[a+8>>2]<=(c|0))){d=J[a+12>>2]+c|0;a=sR(d,b);d=a?a+(c-d|0)|0:-1}bc=e+32|0;return d|0}B()}function Aqa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=bc-32|0;bc=f;g=$i(a,-262143,262142,a+188|0);a=$i(a,-262143,262142,a+192|0);a:{b:{c=c+g|0;if(c>>>0<=65535){a=a+d|0;if(a>>>0<65536)break b}a=Kc(f+8|0,2382912,2374240,802,2422049,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a; -b=Z()|0;Fc(a);ba(b|0);B()}mv(b,a,c,e);bc=f+32|0;return}B()}function zzb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+12>>2]=0;J[a+16>>2]=0;a:{b:{if(Ye(b,a+12|0))break b;d=zc(J[a+12>>2]<<2);J[a+16>>2]=d;if(!d)return-1;if(J[a+12>>2]){d=0;while(1){if(Fj(b,J[a+16>>2]+(d<<2)|0))break b;d=d+1|0;e=J[a+12>>2];if(d>>>0>>0)continue;break}b=(e<<1)+4|0}else b=4;d=0;if((b|0)==(c|0))break a}d=-1;a=J[a+16>>2];if(!a)break a;qc(a)}return d|0}function vd(a,b){a=a|0;b=b|0;var c=0;c=bc-48|0;bc=c;a:{b:{c:{d:{if(!a){a= -0;break d}if((a|0)<0|(b|0)<=0|2147483647/(b>>>0)>>>0<=a>>>0)break c;a=P(a,b);if((a|0)<0)break b;a=zc(a);if(!a)break a}bc=c+48|0;return a|0}J[c>>2]=777085;cd(J[651370],779053,c);ya(1);B()}J[c+16>>2]=774961;cd(J[651370],779053,c+16|0);ya(1);B()}J[c+32>>2]=775649;cd(J[651370],779053,c+32|0);ya(1);B()}function uhb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=!a|J[a>>2]!=1381173770?d:J[a+4>>2];I[d+32>>1]=24;J[d+24>>2]=c;J[d+20>>2]=b;e=P(b,24)+31>>>3&536870908;J[d+28>>2]=e;if(K[a+86|0]){J[d+40>>2]=0; -H[d+46|0]=K[a+81|0];H[d+45|0]=K[a+83|0];H[d+44|0]=K[a+85|0]}f=d,g=zc(P(c,e)),J[f+4>>2]=g;if(!(!a|J[a>>2]!=1381173770))J[a+52>>2]=20480;f=d,g=zc(P(b,c)),J[f+8>>2]=g;return 1}function WUa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;we(b,12);pd(b,J[a+20>>2]);pd(b,(J[a+28>>2]-J[a+24>>2]|0)/12|0);c=J[a+24>>2];if((c|0)!=J[a+28>>2])while(1){c=P(d,12)+c|0;e=K[c+11|0];f=e<<24>>24<0;jf(b,f?J[c>>2]:c,f?J[c+4>>2]:e);d=d+1|0;c=J[a+24>>2];if(d>>>0<(J[a+28>>2]-c|0)/12>>>0)continue;break}if(J[a+16>>2]){we(b,1);a=J[a+16>> -2];gc[J[J[a>>2]+8>>2]](a,b);return}we(b,0)}function MBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b&7;b:{if(!d){c=b;break b}c=b;while(1){J[a+8>>2]=0;a=a+12|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<8)break a;while(1){J[a+8>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+68>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+20>>2]=0;a=a+96|0;b=c-9|0;c=c-8|0;if(b>>>0<4294967294)continue;break}}}function vsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){e=J[a+2300>>2];d=J[a+ -2312>>2];b=J[a+2316>>2];while(1){c=K[d|0];if(!((c|0)==L[e+836>>1]?K[e+56|0]:0)){H[b+6|0]=255;H[b+7|0]=255}f=gc[J[a+2296>>2]](c)|0;c=f>>>8|0;H[b+4|0]=c;H[b+2|0]=c;H[b|0]=c;c=(f|0)!=0;H[b+5|0]=c;H[b+3|0]=c;H[b+1|0]=c;b=b+8|0;d=d+1|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function rMa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=Ni(J[a+28>>2],b);b=bc-16|0;bc=b;J[b>>2]=13;d=rc(8);c=J[a+4>>2];J[695492]=0;c=ha(3207,a+16|0,c|0,b|0,0)|0;e=J[695492];J[695492]=0;a:{b:{if((e|0)==1)break b;a=J[J[J[a>>2]+ -28>>2]+56>>2];J[695492]=0;a=ga(3465,d|0,c|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break b;uc(b);bc=b+16|0;break a}a=Z()|0;qc(d);ba(a|0);B()}return a|0}function czb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+72>>2];g=J[a+60>>2];h=K[a+13|0];c=1;d=K[a+12|0];a:{if(!d)break a;a=K[a+52|0];e=d&7;if(d>>>0>=8){i=d&248;while(1){c=P(a,P(a,P(a,P(a,P(a,P(a,P(a,P(a,c))))))));b=b+8|0;if((i|0)!=(b|0))continue;break}}if(!e)break a;b=0;while(1){c=P(a,c);b=b+1|0;if((e|0)!=(b|0))continue;break}}return(P(c+ -f|0,h)+P(d,g)<<1)+44|0}function Vxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;d=K[a+16|0];e=K[a+28|0];f=J[a+12>>2];J[c+28>>2]=J[a+20>>2];J[c+24>>2]=e;J[c+20>>2]=d;J[c+16>>2]=f;cd(b,209917,c+16|0);if(J[a+20>>2]>0){d=0;while(1){e=J[J[a+24>>2]+(d<<2)>>2];J[c+8>>2]=d;J[c>>2]=d;J[c+12>>2]=e&2047;J[c+4>>2]=e>>>11;cd(b,209846,c);d=d+1|0;if((d|0)>2])continue;break}}bc=c+32|0;return 0}function ON(a){var b=0,c=0,d=0,e=0;b=J[a+48>>2];if(b){if(J[a+44>>2]){while(1){c=J[b+4>>2];if(c){d=0;if(J[b>> -2]){while(1){NN(c);c=c- -64|0;d=d+1|0;if(d>>>0>2])continue;break}c=J[b+4>>2]}qc(c)}c=J[b+8>>2];if(c)dg(c);c=J[b+20>>2];if(c)qc(c);b=b+716|0;e=e+1|0;if(e>>>0>2])continue;break}b=J[a+48>>2]}qc(b)}b=J[a+40>>2];if(b)qc(b);b=J[a+32>>2];if(b)aE(b);qc(a)}function zn(a,b){var c=0,d=0,e=0;a:{c=L[a+1148>>1];if(!c){if(!Jj(a))return 0;c=L[a+1148>>1];if(!c)break a}d=J[a+1152>>2];e=K[d|0];I[a+1148>>1]=c-1;c=d+1|0;J[a+1152>>2]=c;I[b>>1]=e<<8;d=L[a+1148>>1];if(!d){if(!Jj(a))return 0;d=L[a+1148>>1];if(!d)break a; -c=J[a+1152>>2]}e=K[c|0];I[a+1148>>1]=d-1;J[a+1152>>2]=c+1;I[b>>1]=e|L[b>>1];return 1}fa(80381,70456,1949,96701);B()}function rU(a){var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;a:{if(J[a+8>>2]){ei(b+12|0,a,a+8|0);break a}J[b+12>>2]=0;md(b+12|0,0)}b:{a=J[b+12>>2];if(!a)break b;d=J[a+12>>2];J[695492]=0;J[b+12>>2]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}ea(0)|0;yc();B()}bc=b+16|0;return d}function XUa(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;we(b,9);we(b,K[a+20|0]);pd(b,(J[a+28>>2]-J[a+24>>2]|0)/12|0);c=J[a+24>>2];if((c|0)!=J[a+28>>2])while(1){c=P(d,12)+c|0;e=K[c+11|0];f=e<<24>>24<0;jf(b,f?J[c>>2]:c,f?J[c+4>>2]:e);d=d+1|0;c=J[a+24>>2];if(d>>>0<(J[a+28>>2]-c|0)/12>>>0)continue;break}if(J[a+16>>2]){we(b,1);a=J[a+16>>2];gc[J[J[a>>2]+8>>2]](a,b);return}we(b,0)}function QD(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=L[a+26>>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=d;return}a=(J[a+56>> -2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0;a:switch(e-1|0){case 3:c=a;e=K[a|0];a=4-((b|0)%2<<2)&252;H[c|0]=e&(15<>1]=(c|0)==2?H[b+12|0]:0;c=af(a,d,2);I[b+6>>1]=(c|0)==2?H[b+12|0]:0;c=af(a,b+12|0,2);I[b+8>>1]=(c|0)==2?H[b+12|0]:0;a=af(a,b+12|0,2);I[b+10>>1]=(a| -0)==2?H[b+12|0]:0;a=GD(d,(g|0)==2?(f<<8|f>>>8)<<16>>16:0,e);bc=b+16|0;return a?16777215:J[b+12>>2]}function AO(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=zc(40);J[b>>2]=0;b=zf(a+624|0,1,b,4);f=cc;a:{b:{while(1){if(c)break a;J[695492]=0;da(101,a|0,0);c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;qc(b);ba(a|0);B()}d=-1;c:{d:{if(!c)break d;e=J[695493];if(!e)break d;d=Jc(J[c>>2],b,f);if(!d)break c;cc=e}c=cc;if((d|0)!=1)break b;continue}break}qc(b);ef(c,e);B()}g=1}qc(b);return g}function tU(a){var b=0,c=0,d=0,e= -0;b=bc-16|0;bc=b;a:{if(J[a+8>>2]){ei(b+12|0,a,a+8|0);break a}J[b+12>>2]=0;md(b+12|0,0)}b:{a=J[b+12>>2];if(!a)break b;d=J[a+8>>2];J[695492]=0;J[b+12>>2]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[695492];J[695492]=0;if((e|0)!=1){if(c)break b;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break b}ea(0)|0;yc();B()}bc=b+16|0;return d}function hG(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2421416;b=J[a+3312>>2];J[a+3312>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d| -0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}J[a>>2]=2421484;xd(a+120|0);xd(a+96|0);xd(a+72|0);_c(a+40|0);_c(a+28|0);_c(a+16|0);return a|0}function ej(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;d=O[b+32>>3];e=O[b>>3];f=O[b+16>>3];h=O[a>>3];i=O[a+8>>3];c=O[b+24>>3];O[a+8>>3]=h*O[b+8>>3]+i*c;j=O[a+16>>3];k=O[b+8>>3];g=c;c=O[a+24>>3];O[a+24>>3]=j*k+g*c;m=O[b+40>>3];n=O[b+24>>3];g=d;d=O[a+32>>3];l=O[a+40>>3];O[a+32>>3]=g+(e*d+f* -l);O[a+16>>3]=j*e+f*c;O[a>>3]=h*e+i*f;O[a+40>>3]=m+(d*k+l*n);return a}function eeb(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;d=I[a+298>>1];e=P(d,b>>16);b=P(d,b&65535);d=e<<16;f=b+d|0;a=I[a+300>>1];g=P(a,c&65535);c=P(a,c>>16);h=c<<16;a=g+h|0;i=f+a|0;c=((((((e>>16)+(b>>31)|0)+(g>>31)|0)+(c>>16)|0)+(d>>>0>f>>>0)|0)+(a>>>0>>0)|0)+(a>>>0>i>>>0)|0;b=c>>31;a=i+b|0;return((b+c|0)+(a>>>0>>0)|0)+(a>>>0>4294959103)<<18|a- -8192>>>14}function deb(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;d=I[a+294>>1];e=P(d,b>>16);b=P(d,b&65535);d=e<<16;f=b+d|0;a=I[a+296>>1];g=P(a,c&65535);c=P(a,c>>16);h=c<<16;a=g+h|0;i=f+a|0;c=((((((e>>16)+(b>>31)|0)+(g>>31)|0)+(c>>16)|0)+(d>>>0>f>>>0)|0)+(a>>>0>>0)|0)+(a>>>0>i>>>0)|0;b=c>>31;a=i+b|0;return((b+c|0)+(a>>>0>>0)|0)+(a>>>0>4294959103)<<18|a- -8192>>>14}function Orb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1105;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1106;if(K[a+2272|0])break a}b=1107}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]= -0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+604>>2]=b;J[a+588>>2]=b;J[a+608>>2]=J[a+616>>2]+b;return Hf(a)|0}function Arb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1126;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1127;if(K[a+2272|0])break a}b=1128}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+604>>2]=b;J[a+ -588>>2]=b;J[a+608>>2]=J[a+616>>2]+b;return Hf(a)|0}function zy(a,b){a=a|0;b=b|0;var c=0,d=0;b=!J[a+24>>2]|b;J[a+16>>2]=b;if(b&J[a+20>>2]){c=bc-16|0;bc=c;b=jk(16);a=bc-16|0;bc=a;if(!K[2781980])H[2781980]=1;J[a+12>>2]=2729040;J[a+8>>2]=1;d=J[a+12>>2];c=c+8|0;J[c>>2]=J[a+8>>2];J[c+4>>2]=d;bc=a+16|0;J[695492]=0;ga(6600,b|0,5597,c|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){xa(b|0,2614684,6601);B()}a=Z()|0;Lo(b);ba(a|0);B()}}function rhb(a){a=a|0;var b=0;b=J[a+8>>2];wc(a+16|0,0,84);J[a+136>>2]=1680;J[a+ -132>>2]=1681;J[a+128>>2]=1682;J[a+124>>2]=1683;J[a+120>>2]=1684;J[a+116>>2]=1685;J[a+108>>2]=1686;J[a+104>>2]=1687;J[a+100>>2]=1688;J[a+12>>2]=b;J[a+164>>2]=1680;J[a+160>>2]=1689;J[a+156>>2]=1690;J[a+152>>2]=1691;J[a+148>>2]=1684;J[a+144>>2]=1692;b=a+12|0;J[a+112>>2]=b;J[a+140>>2]=b;return 0}function rK(a){a=a|0;var b=0,c=0;a:{c=J[a+8>>2];if(!c)break a;b=J[c>>2];if(b)Je(b);b=J[c+4>>2];if(b)Je(b);b=J[c+8>>2];if(b)Je(b);b=J[c+12>>2];if(b)Je(b);b=J[c+16>>2];if(b)Je(b);b=J[c+20>>2];if(b)Je(b);b=J[c+24>> -2];if(b)Je(b);b=J[c+28>>2];if(b)Je(b);b=J[c+32>>2];if(b)Je(b);b=J[c+36>>2];if(b)Je(b);ir(J[c+40>>2]);if(K[a+34|0])break a;Gf(J[a+8>>2]);J[a+8>>2]=0}}function qnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1145390665){Dc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];H[b+34|0]=K[c+34|0];H[b+35|0]=K[c+35|0];H[b+36|0]=K[c+36|0];H[b+37|0]=K[c+37|0];H[b+38|0]=K[c+38|0];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];H[b+48|0]=K[c+48|0];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=J[c+56>>2];J[b+60>>2]=J[c+60>>2];J[b+64>>2]= -J[c+64>>2];return 0}function k6(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=a+c|0;g=f>>31;h=b+d|0;i=h>>31;e=c;c=c>>31;c=(e^c)-c|0;e=d;d=d>>31;d=(e^d)-d|0;e=a;a=a>>31;a=(e^a)-a|0;e=b;b=b>>31;b=(e^b)-b|0;c=(P(c>>>0>>0?c:d,3)>>>3|0)+(c>>>0>d>>>0?c:d)+((P(a>>>0>>0?a:b,3)>>>3|0)+(a>>>0>b>>>0?a:b))|0;a=(g^f)-g|0;b=(i^h)-i|0;a=(P(a>>>0>>0?a:b,3)>>>3|0)+(a>>>0>b>>>0?a:b)|0;return(c-a|0)<(a>>>4|0)}function bP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;J[e+12>>2]=c;if(c){if(K[a+11|0]>>> -7|0)g=J[a+4>>2];else g=K[a+11|0]&127;if(K[a+11|0]>>>7|0)c=J[a>>2];else c=a;f=g-b|0;J[e+8>>2]=f;d=bc-16|0;bc=d;bc=d+16|0;d=e+8|0;h=e+12|0;d=J[(M[d>>2]>2]?d:h)>>2];J[e+12>>2]=d;if((d|0)!=(f|0)){b=b+c|0;Dm(b,b+d|0,f-d|0);f=J[e+12>>2]}Gu(a,c,g-f|0)}bc=e+16|0}function Wz(a,b,c,d){var e=0,f=0;a:{if((d-c|0)>=257){f=Wz(a,b,c,(P(c,6)+(d<<1)|0)/8|0);e=Wz(a,b,(P(d,3)+P(c,5)|0)/8|0,(P(d,5)+P(c,3)|0)/8|0);a=Wz(a,b,(P(d,6)+(c<<1)|0)/8|0,d);break a}e=J[a+8>>2];a=K[J[e+(d<<2)>>2]+b|0];f=K[J[e+(c<<2)>>2]+b|0]; -e=K[J[e+((c+d|0)/2<<2)>>2]+b|0]}c=e&255;b=f&255;a=a&255;d=a>>>0>>0?b:a;a=a>>>0>b>>>0?b:a;return a>>>0>>0?c>>>0>>0?c:d:a}function PBa(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0)while(1){$c(a+52|0);J[a+40>>2]=2381060;J[a+16>>2]=2381028;c=J[a+44>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+44>>2]=0}J[a+32>>2]=2381060;c=J[a+36>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+36>>2]=0}sc(a+24|0);a=a+68|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function v9(a){var b= -0,c=0,d=0;b=J[a+28>>2];if(b){if(J[a+24>>2]){while(1){c=J[b+4>>2];if(c)qc(c);c=J[b+20>>2];if(c)If(c);c=J[b+24>>2];if(c)YD(c);c=J[b+28>>2];if(c)dg(c);c=J[b+32>>2];if(c)dg(c);b=b+60|0;d=d+1|0;if(d>>>0>2])continue;break}b=J[a+28>>2]}qc(b)}b=J[a+32>>2];if(b)wn(b);b=J[a+36>>2];if(b)wn(b);b=J[a+44>>2];if(b)wn(b);a=J[a+48>>2];if(a)wn(a)}function jga(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;e=bc-16|0;bc=e;f=J[a+4>>2];d=J[c>>2]-J[a>>2]|0;a:{if(d>>>0<2147483647){d=d<<1;break a}d=-1}d=d>>> -0<=1?1:d;h=J[b>>2];i=J[a>>2];g=Vd((f|0)!=6678?J[a>>2]:0,d);if(g){if((f|0)!=6678)J[a>>2]=0;J[e+4>>2]=1617;f=ng(e+8|0,g,e+4|0);XP(a,f);Ae(f);J[b>>2]=J[a>>2]+(h-i|0);J[c>>2]=d+J[a>>2];bc=e+16|0;return}LE();B()}function L$(a){var b=0,c=0,d=0,e=0,f=0;e=1;b=J[a>>2];d=K[b|0];a:{if((d-48&255)>>>0>9)break a;f=a;a=K[b+1|0];c=b+1|0;b:{if((a-48&255)>>>0>9)break b;if((d|0)==48)break a;c=b+2|0;if((K[b+2|0]-48&255)>>>0>9)break b;c:switch(d-49|0){case 0:c=b+3|0;break b;case 1:break c;default:break a}b=b+3|0;c=b; -if(a>>>0<=52)break b;if((a|0)!=53)break a;c=b}J[f>>2]=c;e=0}return e}function $d(a,b,c){var d=0,e=0,f=0;d=bc-32|0;bc=d;J[d+28>>2]=c;e=ts(a,b);a:{if(!e){c=J[a+628>>2];J[d>>2]=J[a>>2];J[d+8>>2]=b;J[d+4>>2]=b>>>0>65535?72794:73422;Nc(c,71717,71990,d);break a}if(!(K[e+14|0]|(!(K[a+12|0]&64)|(b|0)==257))){b=J[a+628>>2];a=J[a>>2];J[d+20>>2]=J[e+16>>2];J[d+16>>2]=a;Nc(b,71717,73515,d+16|0);break a}f=gc[J[a+668>>2]](a,b,c)|0}bc=d+32|0;return f}function pE(a){var b=0;b=J[a+584>>2];if(b){if(!Jm(a,197472,1)){Nc(J[a+ -628>>2],197440,70894,0);return}J[b+44>>2]=J[a+672>>2];J[a+672>>2]=701;J[b+48>>2]=J[a+668>>2];J[a+668>>2]=702;J[b+52>>2]=J[a+676>>2];J[a+676>>2]=703;J[b+56>>2]=J[a+516>>2];J[a+516>>2]=704;J[b+60>>2]=J[a+524>>2];J[a+524>>2]=705;J[b+40>>2]=0;J[b+24>>2]=0;J[b>>2]=1;return}fa(69708,70388,677,197440);B()}function bp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-32|0;bc=e;a:{b:{if(!c)break b;while(1){d=gc[J[J[a>>2]+8>>2]](a,b,c)|0;if((d|0)<0){a=Kc(e+8|0,Jl(J[694731]),2375204,413,2384629,0);J[695492]=0;_(5019, -a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}if(!d)break b;b=b+d|0;f=d+f|0;c=c-d|0;if(c)continue;break}}bc=e+32|0;return f|0}B()}function Wda(a){a=a|0;if(K[2782320])return J[695579];if(!K[2782664])H[2782664]=1;sf(2782496,1563);sf(2782508,1570);sf(2782520,1536);sf(2782532,1544);sf(2782544,1527);sf(2782556,1577);sf(2782568,1554);sf(2782580,6355);sf(2782592,6996);sf(2782604,13460);sf(2782616,17360);sf(2782628,1791);sf(2782640,10606);sf(2782652,3757);H[2782320]=1;J[695579]= -2782496;return 2782496}function LNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;J[a+8>>2]=13;J[d>>2]=13;e=a+8|0;J[e+8>>2]=c;J[e>>2]=8;c=rc(20);J[695492]=0;J[c>>2]=b;J[c+12>>2]=0;J[c+16>>2]=1;J[c+4>>2]=0;J[c+8>>2]=0;b=J[695492];J[695492]=0;if((b|0)!=1){J[a>>2]=c;Dg(c,Ef(e,d));J[a+24>>2]=1;J[a+4>>2]=0;b=J[a+16>>2];gc[J[J[b>>2]+20>>2]](b);bc=d+16|0;return a|0}a=Z()|0;qc(c);ba(a|0);B()}function v2(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+88>>2]=-1;J[a+80>>2]=0;J[a+84>>2]=0;J[a+24>>2]=0;J[a+ -28>>2]=1072693248;J[a>>2]=0;J[a+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+56>>2]=0;J[a+60>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;return a|0}function rqa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2421416;b=J[a+3312>>2];J[a+3312>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b| -0)!=1)break a}ea(0)|0;yc();B()}J[a>>2]=2421484;xd(a+120|0);xd(a+96|0);xd(a+72|0);_c(a+40|0);_c(a+28|0);_c(a+16|0);qc(a)}function SP(a,b,c){var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=bc-32|0;bc=d;uP(d+24|0,a,b);bF(d+16|0,J[d+24>>2],J[d+28>>2],c);g=J[d+16>>2];b=bc-16|0;bc=b;J[b+12>>2]=a;a=bc-16|0;bc=a;f=b+12|0;J[a+12>>2]=J[f>>2];bc=a+16|0;a=qy(f,g-J[a+12>>2]>>2);bc=b+16|0;J[d+12>>2]=a;J[d+8>>2]=(J[d+20>>2]-c|0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];bc=d+32|0;bc=e+16|0;return J[e+12>>2]}function He(a){var b= -0,c=0,d=0;d=bc-16|0;bc=d;A(+a);c=v(1)|0;v(0)|0;c=c&2147483647;a:{if(c>>>0<=1072243195){b=1;if(c>>>0<1044816030)break a;b=Su(a,0);break a}b=a-a;if(c>>>0>=2146435072)break a;c=DF(a,d);a=O[d+8>>3];b=O[d>>3];b:switch(c&3){case 0:b=Su(b,a);break a;case 1:b=-Ru(b,a,1);break a;case 2:b=-Su(b,a);break a;default:break b}b=Ru(b,a,1)}bc=d+16|0;return b}function Dnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1950701684){Dc(a,2050,0,0);return 2050}e=J[c+32>>2];J[b+32>>2]=e;d=J[c+40>>2];J[b+40>>2]=d;a:{if(e){d= -gc[J[a+152>>2]](e)|0;J[b+36>>2]=d;if(!d)break a;tc(d,J[c+36>>2],J[b+32>>2]);d=J[b+40>>2]}if(d){d=gc[J[a+152>>2]](d)|0;J[b+44>>2]=d;if(!d)break a;tc(d,J[c+44>>2],J[b+40>>2])}return 0}Dc(a,1,0,0);return 1}function hab(a){a=a|0;var b=0,c=0,d=0,e=0;c=1;a:{if(!J[a+16>>2])break a;b=J[a+20>>2];if(!b)break a;a=bc-16|0;bc=a;c=J[b+4>>2];b=J[c>>2];b:{if(!b)break b;b=b-1|0;if(!K[J[J[c+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0])break b;J[a+12>>2]=0;d=Ke(c,a+12|0),e=0,H[d|0]=e;b=J[a+12>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+ -8>>2]=0;J[b+12>>2]=0;J[c>>2]=J[c>>2]+1}bc=a+16|0;c=0}return c|0}function e5(a){a=a|0;var b=0;J[a>>2]=47976;b=J[a+984>>2];if(b)qc(b);b=J[a+988>>2];if(b)qc(b);a:{if(J[a+976>>2]){J[695492]=0;$(218,a+976|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a>>2]=1032;J[695492]=0;$(13,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;$(14,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}ea(0)|0;yc();B()}function _P(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;e=bc-16|0; -bc=e;f=J[a+4>>2];d=J[c>>2]-J[a>>2]|0;a:{if(d>>>0<2147483647){d=d<<1;break a}d=-1}d=d?d:4;h=J[b>>2];i=J[a>>2];g=Vd((f|0)!=6678?J[a>>2]:0,d);if(g){if((f|0)!=6678)J[a>>2]=0;J[e+4>>2]=1617;f=ng(e+8|0,g,e+4|0);XP(a,f);Ae(f);J[b>>2]=J[a>>2]+(h-i|0);J[c>>2]=J[a>>2]+(d&-4);bc=e+16|0;return}LE();B()}function TP(a,b,c){var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=bc-32|0;bc=d;uP(d+24|0,a,b);bF(d+16|0,J[d+24>>2],J[d+28>>2],c);g=J[d+16>>2];b=bc-16|0;bc=b;J[b+12>>2]=a;a=bc-16|0;bc=a;f=b+12|0;J[a+12>>2]=J[f>>2];bc=a+16| -0;a=ry(f,g-J[a+12>>2]|0);bc=b+16|0;J[d+12>>2]=a;J[d+8>>2]=(J[d+20>>2]-c|0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];bc=d+32|0;bc=e+16|0;return J[e+12>>2]}function xe(a){var b=0,c=0,d=0;c=bc-16|0;bc=c;A(+a);b=v(1)|0;v(0)|0;b=b&2147483647;a:{if(b>>>0<=1072243195){if(b>>>0<1045430272)break a;a=Ru(a,0,0);break a}if(b>>>0>=2146435072){a=a-a;break a}b=DF(a,c);a=O[c+8>>3];d=O[c>>3];b:switch(b&3){case 0:a=Ru(d,a,1);break a;case 1:a=Su(d,a);break a;case 2:a=-Ru(d,a,1);break a;default:break b}a=-Su(d,a)}bc= -c+16|0;return a}function PM(a,b){var c=0,d=0,e=0;a:{if(!a|!b|(a|0)==(b|0))break a;d=J[b>>2];c=J[b+4>>2];if(!((d|0)!=J[a>>2]|(c|0)!=J[a+4>>2])&J[b+8>>2]==J[a+8>>2])break a;e=J[b+12>>2];b=J[b+8>>2];J[a+4>>2]=(c|0)>0?c:0;J[a>>2]=(d|0)>0?d:0;if((b|0)>0)J[a+8>>2]=b;J[a+12>>2]=e;b=J[a+40>>2];if(b){gc[J[659406]](b);J[a+40>>2]=0}b=gc[J[659405]](P(c,e)<<2)|0;if(!b)return;J[a+40>>2]=b}}function CRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=O[b+24>>3];f=J[b+24>>2];g=J[b+16>>2];c=J[a+28>>2];e=O[c+616>>3]+ -(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3]);O[c+616>>3]=e;d=O[c+624>>3]+((g|0)==1?+(f|0):d);O[c+624>>3]=d;O[c+600>>3]=O[c+536>>3]+(O[c+504>>3]*e+d*O[c+520>>3]);O[c+608>>3]=O[c+544>>3]+(O[c+512>>3]*e+d*O[c+528>>3]);a=J[a+8>>2];gc[J[J[a>>2]+184>>2]](a,c)}function BLa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=bc-16|0;bc=c;J[c>>2]=13;Ef(a+8|0,c);b=rc(48);f=J[c+8>>2];g=J[c+12>>2];d=J[a+32>>2];e=J[a+28>>2];a=J[a+24>>2];h=J[c>>2];i=J[c+4>>2];J[b>>2]=2331228;J[b+24>>2]=a;J[b+28>>2]=e;J[b+32>>2]=d;J[b+44>>2]=0; -J[b+16>>2]=f;J[b+20>>2]=g;J[b+8>>2]=h;J[b+12>>2]=i;a=a+e|0;J[b+40>>2]=a;J[b+36>>2]=a+d;bc=c+16|0;return b|0}function uy(a,b,c){var d=0,e=0;if(c&2048){H[a|0]=43;a=a+1|0}if(c&1024){H[a|0]=35;a=a+1|0}d=c&260;if((d|0)!=260){H[a|0]=46;H[a+1|0]=42;a=a+2|0}c=c&16384;while(1){e=K[b|0];if(e){H[a|0]=e;a=a+1|0;b=b+1|0;continue}break}a:{b:{if((d|0)!=256){if((d|0)!=4)break b;b=c?70:102;break a}b=c?69:101;break a}b=c?65:97;if((d|0)==260)break a;b=c?71:103}H[a|0]=b;return(d|0)!=260}function r2a(a,b,c){a=a|0;b=b| -0;c=c|0;var d=0,e=0,f=0;d=J[c>>2];if(!d){d=rc((b<<2)+5|0);J[c>>2]=d}if((b|0)<=0)a=d;else{f=(b<<2)+a|0;while(1){b=J[a>>2];if(b>>>0<=65535)e=2;else{e=b&1023|56320;H[d+2|0]=e;H[d+3|0]=e>>>8;b=b+983040>>>10&1023|-10240;e=4}H[d|0]=b;H[d+1|0]=b>>>8;d=d+e|0;a=a+4|0;if(f>>>0>a>>>0)continue;break}a=J[c>>2]}J[c+4>>2]=d-a;H[d|0]=0;H[d+1|0]=0}function psb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=gc[J[a+2296>>2]](K[c|0])|0;e=gc[J[a+2296>>2]](K[c+1|0])|0;f= -gc[J[a+2296>>2]](K[c+2|0])|0;H[b+3|0]=(e|0)!=0;H[b+2|0]=e>>>8;H[b+1|0]=(d|0)!=0;H[b|0]=d>>>8;H[b+5|0]=(f|0)!=0;H[b+4|0]=f>>>8;b=b+6|0;c=c+3|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function oda(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;d=J[a+8>>2];J[c+12>>2]=a+8;J[c+4>>2]=d;J[c+8>>2]=(b<<2)+d;b=J[c+4>>2];a:{while(1){if(J[c+8>>2]==(b|0))break a;a=J[c+4>>2];J[695492]=0;J[a>>2]=0;a=J[695492];J[695492]=0;if((a|0)!=1){b=J[c+4>>2]+4|0;J[c+4>>2]=b;continue}break}a=Z()|0;J[J[c+12>>2]>>2]= -J[c+4>>2];ba(a|0);B()}J[J[c+12>>2]>>2]=J[c+4>>2];bc=c+16|0}function Zkb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=6;a=J[a+140>>2];a:{if(!a|!b|(!J[a+72>>2]|!K[b|0]))break a;b=zi(b,J[a+92>>2]);if(!b)break a;a=J[a+80>>2];if(!a)break a;b:{c:{d:{e:{a=a+(J[b>>2]<<4)|0;switch(J[a+4>>2]-1|0){case 2:break c;case 1:break d;case 0:break e;default:break a}}J[c>>2]=1;break b}J[c>>2]=2;break b}J[c>>2]=3}J[c+4>>2]=J[a+12>>2];d=0}return d|0}function Xj(a){var b=0;if(a){b=J[a>>2];if(b)gc[J[659451]](b);b=J[a+12>>2];if(b)gc[J[659451]](b); -b=J[a+16>>2];if(b)gc[J[659451]](b);b=J[a+24>>2];if(b)gc[J[659451]](b);b=J[a+32>>2];if(b)gc[J[659451]](b);b=J[a+4>>2];if(b)gc[J[659451]](b);b=J[a+8>>2];if(b)gc[J[659451]](b);b=J[a+28>>2];if(b)gc[J[659451]](b);b=J[a+40>>2];if(b)gc[J[659451]](b);gc[J[659451]](a)}}function EG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)>0)while(1){c=b;b=J[a+24>>2];J[a+24>>2]=0;b:{if(!b)break b;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break b;J[695492]=0;_(4987,b|0);b=J[695492]; -J[695492]=0;if((b|0)==1)break a}b=c-1|0;sc(a+16|0);a=a+28|0;if(c>>>0>1)continue;break}return}ea(0)|0;yc();B()}function spa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)>0)while(1){c=b;sc(a+12|0);b=J[a+8>>2];J[a+8>>2]=0;b:{if(!b)break b;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=c-1|0;a=a+20|0;if(c>>>0>1)continue;break}return}ea(0)|0;yc();B()}function aUa(a,b,c){a=a|0;b=b|0;c= -c|0;var d=0,e=0;a:{if(b>>>0>2147482623)break a;e=b;d=J[a+1032>>2];if(!((d|0)<=(b|0)&(b+4|0)<=(J[a+1036>>2]+d|0))){d=0;if(Xg(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;b=Yd(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=b;if((b|0)<4)break a;d=J[a+1032>>2]}a=(e-d|0)+a|0;J[c>>2]=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);d=1}return d|0}function Xz(a,b,c,d){var e=0,f=0;a:{if((d-c|0)>=257){f=Xz(a,b,c,(P(c,6)+(d<<1)|0)/8|0);e=Xz(a,b,(P(d,3)+P(c,5)|0)/8|0,(P(d,5)+P(c,3)|0)/8|0);a=Xz(a,b,(P(d,6)+(c<<1)|0)/8|0,d); -break a}e=J[a+8>>2];a=J[(J[e+(d<<2)>>2]<<2)+b>>2];f=J[(J[e+(c<<2)>>2]<<2)+b>>2];e=J[(J[e+((c+d|0)/2<<2)>>2]<<2)+b>>2]}b=(a|0)<(f|0)?f:a;a=(a|0)>(f|0)?f:a;return(a|0)<(e|0)?(b|0)>(e|0)?e:b:a}function S2a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=J[689337];if(e){a=e;b=J[689338];if((a|0)!=(b|0)){while(1){f=b-12|0;c=J[f>>2];if(c){b=b-8|0;a=J[b>>2];d=c;if((a|0)!=(c|0)){while(1){d=a-12|0;if(H[a-1|0]<0)qc(J[d>>2]);a=d;if((c|0)!=(a|0))continue;break}d=J[f>>2]}J[b>>2]=c;qc(d)}b=f;if((e|0)!=(b|0))continue;break}a= -J[689337]}J[689338]=e;qc(a)}Rt(2757336,J[689335])}function Neb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;f=J[a+16>>2];d=L[a+8>>1];c=d>>>1|0;b=Sc(b,1,0,c+1|0,0,e+12|0);bc=e+16|0;if(J[e+12>>2])b=g;else{a=0;a:{if(d>>>0<2)break a;g=c>>>0<=1?1:c;while(1){c=K[f+1|0];d=c|K[f|0]<<8;if(!d)break a;H[a+b|0]=d-128>>>0<4294967200?63:c;f=f+2|0;a=a+1|0;if((g|0)!=(a|0))continue;break}a=g}H[a+b|0]=0}return b|0}function Ln(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b>>2];J[a+12>>2]=0;J[a>>2]=c;J[a+4>>2]=0; -J[a+8>>2]=0;a:{if((a|0)==(b|0))break a;J[a+4>>2]=0;c=J[b+8>>2];if(!c)break a;e=a+8|0;while(1){b=rc(J[J[a>>2]>>2]);gc[J[J[a>>2]+12>>2]](b,c,1,0);J[b>>2]=0;d=J[a+12>>2];J[b+4>>2]=d;J[a+12>>2]=b;J[(d?d:e)>>2]=b;J[a+4>>2]=J[a+4>>2]+1;c=J[c>>2];if(c)continue;break}}return a|0}function Kpa(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){c=h<<2;a=g<<1;while(1){f=f-1|0;h=0;while(1){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|K[l+1|0]<<24;b=b+4|0; -l=l+2|0;k=k+2|0;j=j+2|0;i=i+2|0;h=h+1|0;if((h|0)!=(e|0))continue;break}b=b+c|0;l=a+l|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f)continue;break}}}function HE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=bc-16|0;bc=f;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;a:{if(d-e>>>0>=c>>>0){if(!c)break a;if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;Mj(d+e|0,b,c);b=c+e|0;Nk(a,b);H[f+15|0]=0;H[b+d|0]=K[f+15|0];break a}Zr(a,d,(c-d|0)+e|0,e,e,0,c,b)}bc=f+16|0;return a|0}function HY(a, -b){a=a|0;b=b|0;var c=0;J[a>>2]=J[b>>2];c=J[b+4>>2];J[a+4>>2]=c;a:{if(c){c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;break a}J[a+8>>2]=J[b+8>>2]}O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3];O[a+48>>3]=O[b+48>>3];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];b=J[b+64>>2];J[a+68>>2]=1;J[a+64>>2]=b;return a|0}function osb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+2308>>2]){d=J[a+2300>>2];c=J[a+2312>>2];b=J[a+2316>>2];while(1){e=K[c+2|0];f=K[c+1|0];g=K[c| -0];a:{if(!(!K[d+56|0]|(g|0)!=L[d+838>>1]|L[d+840>>1]!=(f|0)))if(L[d+842>>1]==(e|0))break a;H[b+3|0]=255}H[b+2|0]=e;H[b+1|0]=f;H[b|0]=g;b=b+4|0;c=c+3|0;h=h+1|0;if(h>>>0>2])continue;break}}return 0}function Rl(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+8>>2];d=c<<1;if((d|0)<(P(J[a+4>>2],3)|0)){sG(a,d-1|0);c=J[a+8>>2]}d=J[a+12>>2]+(M[b+12>>2]%(c>>>0)<<2)|0;c=J[d>>2];J[b+8>>2]=c;J[b+4>>2]=c;a:{b:{if(c){J[b>>2]=J[c>>2];J[c>>2]=b;c=J[b>>2];if(c)break b;break a}c=J[a+24>>2];J[b>>2]=c;J[a+24>>2]=b;if(!c)break a}J[c+ -4>>2]=b}J[d>>2]=b;J[a+4>>2]=J[a+4>>2]+1;return b|0}function K8a(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];d=a+12|0;if((b|0)!=(d|0))while(1){c=J[b+28>>2];if(c){gc[J[J[c>>2]+12>>2]](c)|0;J[b+28>>2]=0}c=J[b+4>>2];a:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break a}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}Zt(a+8|0,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0}function HR(a,b){var c=0,d=0,e=0,f=0;c=bc;f=c;e=4096;d=c-(a?16:4096)|0;bc=d;c=d;a:{b:{if(!a)break b; -c=a;e=b;if(b)break b;J[694731]=28;a=0;break a}a=0;b=qb(c|0,e|0)|0;if(b>>>0>=4294963201){J[694731]=0-b;b=-1}if((b|0)<0)break a;if(!(K[c|0]==47?b:0)){J[694731]=44;break a}a=c;if((d|0)!=(a|0))break a;a=Qc(d)+1|0;b=zc(a);if(b)a=tc(b,d,a);else a=0}bc=f;return a}function jt(a,b){var c=0,d=0,e=0,f=0,g=0;c=J[a+56>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;a:{if((c|0)==-1)break a;d=J[a+56>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break a;e=J[a+56>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break a;f=J[a+56>>2];f= -gc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break a;J[a+68>>2]=J[a+68>>2]+4;J[b>>2]=f|(d<<16|c<<24|e<<8);g=1}return g}function XH(a,b,c){var d=0,e=0,f=0;a:{b=J[(b<<2)+2305760>>2];if(!(!c|(b|0)!=J[c+4>>2])){d=J[a+80>>2];if((b|0)!=J[d+4>>2])break a;UY(d,c);return}c=J[a+80>>2];if((b|0)==J[c+4>>2]){ti(c);return}qc(dd(c));c=rc(8);J[695492]=0;b=aa(3443,c|0,1<>2]=b;return}a=Z()|0;qc(c);ba(a|0);B()}qc(dd(d));e=a,f=PA(c),J[e+80>>2]=f}function V3a(a,b,c,d){a=a|0; -b=b|0;c=c|0;d=d|0;var e=0;J[b>>2]=0;J[b+4>>2]=1084227584;J[c>>2]=0;J[c+4>>2]=0;J[d>>2]=0;J[d+4>>2]=0;e=J[a+8>>2];a:{if(!e)break a;e=J[e+188>>2];if(!e)break a;e=qn(e,0);if(e){O[c>>3]=I[e+42>>1];O[d>>3]=I[e+38>>1];O[b>>3]=L[e+18>>1]}a=qn(J[J[a+8>>2]+188>>2],2);if(!a|L[a>>1]==65535)break a;O[c>>3]=L[a+76>>1];O[d>>3]=0-L[a+78>>1]|0}}function MA(a,b,c){var d=0,e=0,f=0;a:{b=J[(b<<2)+2305776>>2];if(!(!c|(b|0)!=J[c+4>>2])){d=J[a+84>>2];if((b|0)!=J[d+4>>2])break a;UY(d,c);return}c=J[a+84>>2];if((b|0)==J[c+ -4>>2]){ti(c);return}qc(dd(c));c=rc(8);J[695492]=0;b=aa(3443,c|0,1<>2]=b;return}a=Z()|0;qc(c);ba(a|0);B()}qc(dd(d));e=a,f=PA(c),J[e+84>>2]=f}function Lhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[b>>2];while(1){d=d+1|0;if(d>>>0>255){J[b>>2]=0;return 0}f=gc[J[a+20>>2]](L[J[a+16>>2]+(d<<1)>>1])|0;g=J[a+24>>2];a:{if(g){h=J[a+28>>2];c=0;while(1){e=J[(c<<2)+h>>2];if(!(!e|K[e|0]!=K[f|0]))if(!Ec(e,f))break a;c=c+1|0;if((g|0)!=(c|0))continue;break}}c= -0}if(!c)continue;break}J[b>>2]=d;return c|0}function JR(a,b,c,d){var e=0;a:{b:{c:{if(!((d|0)!=4096|(a|0)<0)){if(K[b|0])break c;a=ub(a|0,c|0)|0;break a}d:{if((a|0)!=-100){e=K[b|0];if(!d&(e|0)==47)break d;if((d|0)!=256|(e|0)!=47)break c;break b}if((d|0)==256)break b;if(d)break c}a=tb(b|0,c|0)|0;break a}a=sb(a|0,b|0,c|0,d|0)|0;break a}a=rb(b|0,c|0)|0}if(a>>>0>=4294963201){J[694731]=0-a;a=-1}return a}function tI(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a; -a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(0,b,816578,0);return}b=J[b+8>>2];d=0;b:{if(!Ec(b,816856))break b;d=2;if(!Ec(b,817141))break b;d=Ec(b,817398)?1:3}J[c+420>>2]=d;a=J[a+8>>2];gc[J[J[a>>2]+148>>2]](a,c)}function mca(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(pj(a,J[b+8>>2],e)){if(!(J[b+28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{if(!pj(a,J[b>>2],e))break a;if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!=1)break a;J[b+32>>2]=1;return}J[b+20>> -2]=c;J[b+32>>2]=d;J[b+40>>2]=J[b+40>>2]+1;if(!(J[b+36>>2]!=1|J[b+24>>2]!=2))H[b+54|0]=1;J[b+44>>2]=4}}function j1(a,b){var c=0,d=0,e=0;a:{b:{c:{if(a){if(!b)return 0;if(!K[a|0]){a=0;d=1;break c}if(Ec(b,735334))break c;if(!Ec(a,735338)){c=735345;break b}c=Ec(a,735352)?b:735361;break b}d=1;a=0;if(!b)break a}e=Ec(b,735368);c=e?b:735361;if(!e|d)break b;if(!Ec(a,735313)){c=b;break b}if(Ec(b,735374)){c=b;if(Ec(b,735325))break b}c=735389}a=K[c|0]?c:0}return a}function dK(a,b,c){var d=0;d=-6;a:{if(!c|K[c| -0]!=49)break a;if(!a)return-2;J[a+24>>2]=0;c=J[a+32>>2];if(!c){J[a+40>>2]=0;J[a+32>>2]=3061;c=3061}if(!J[a+36>>2])J[a+36>>2]=3062;c=gc[c|0](J[a+40>>2],1,7120)|0;if(!c)return-4;J[a+28>>2]=c;J[c+56>>2]=0;J[c>>2]=a;J[c+4>>2]=16180;b=E0(a,b);d=0;if(!b)break a;gc[J[a+36>>2]](J[a+40>>2],c);J[a+28>>2]=0;d=b}return d}function bGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=c+4|0;gc[J[J[a>>2]+12>>2]](d,a,b);a=0;J[695492]=0;b=$(43,d|0)|0;e=J[695492];J[695492]=0;a:{if((e|0)==1)break a;if(b){J[695492]= -0;a=$(3035,d|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;a=a^1}if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return a|0}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function Ssa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;e=-1;f=J[a+8>>2];a:{b:{if((c|0)>=0)break b;c=c+f|0;if((c|0)>=0)break b;a=Kc(d+8|0,2381920,2374069,1695,2414316,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}if((c|0)<(f|0)){a=J[a+12>>2];b=Be(a+c|0,b);e=b?b-a|0:-1}bc= -d+32|0;return e|0}B()}function Rsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;e=-1;f=J[a+8>>2];a:{b:{if((c|0)>=0)break b;c=c+f|0;if((c|0)>=0)break b;a=Kc(d+8|0,2381920,2374069,1714,2414364,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}if((c|0)<(f|0)){a=J[a+12>>2];b=ls(a+c|0,b);e=b?b-a|0:-1}bc=d+32|0;return e|0}B()}function LA(a,b){var c=0,d=0,e=0,f=0;a:{c=J[a+52>>2];d=J[c+8>>2];if((d|0)>0){f=J[c>>2];c=0;while(1){e=J[(c<<2)+f>>2];if(J[e+ -4>>2]==(b|0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}}a=J[a+48>>2];d=J[a+8>>2];if((d|0)<=0)return 0;a=J[a>>2];c=0;while(1){e=J[a+(c<<2)>>2];if(J[e+4>>2]==(b|0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}return 0}return e}function Jpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!K[a+285|0]){Dc(a,1029,0,0);return 1029}if(c){Dc(a,1028,0,0);return 1028}c=MD(a);a:{if(c)break a;if(!J[a+448>>2])J[a+448>>2]=J[a+436>>2];if(!J[a+452>>2])J[a+452>>2]=J[a+440>>2];if(!J[a+456>>2])J[a+456>>2]=J[a+444>> -2];H[a+285|0]=0;if(K[a+112|0]){c=gc[J[b+4>>2]](a,b,e)|0;if(c)break a}c=0}return c|0}function Bu(a,b){var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b;while(1){b:{c=J[a+8>>2];c:{if(c&7)break c;e=J[a+64>>2];if(!((e|0)<0|J[a+60>>2]<(e|0))){J[a+8>>2]=c|4;break c}c=J[a+28>>2];J[a+28>>2]=c-1;if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;J[a+24>>2]=J[a+24>>2]+1;break b}if((jd(a,1)|0)!=-1)break b}b=b-d|0;break a}c=(d|0)>1;d=d-1|0;if(c)continue;break}}return b}function xPa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206204;b=J[a+12>> -2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+16>>2];if(d){qc(Rc(d));b=J[a+12>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}b=J[a+144>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+148>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[695492]=0;_(3205,a+152|0);b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function pV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=rc(128);J[695492]=0;f=$(5088,e|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){J[a>>2]=0;md(a,f);J[695492]=0;_(5089,f|0);e=J[695492];J[695492]=0;a:{if((e| -0)!=1){J[695492]=0;ia(5095,f|0,b|0,c|0,d|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}b=Z()|0;vc(a);ba(b|0);B()}return}a=Z()|0;qc(e);ba(a|0);B()}function hAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;c=J[b+8>>2];if(c)while(1){a:{b:{e=J[c+8>>2];if(J[e+8>>2]!=4)break b;f=d+8|0;XU(f,e);J[695492]=0;e=fd(f,a,-1);g=J[695492];J[695492]=0;if((g|0)!=1){sc(f);if(e)break b;J[d+12>>2]=b;J[d+8>>2]=c;c=J[c>>2];Kn(b,f);break a}a=Z()|0;sc(d+8|0);ba(a|0);B()}c=J[c>>2]}if(c)continue;break}bc=d+16|0} -function gYa(a){a=a|0;var b=0,c=0;if(a){a:{b:{c:{d:{b=J[a+20>>2];if(b){c=J[b+80>>2];b=J[a+4>>2];if(!b)break c;if(!c){c=0;break d}if(wk(c,b))break c;b=J[a+4>>2];break d}b=J[a+4>>2];if(b)break d;b=J[a+12>>2];if(!b)break a;break b}gc[J[659451]](b)}b=J[a+12>>2];if(!b)break a;if(!c)break b;if(wk(c,b))break a;b=J[a+12>>2]}gc[J[659451]](b)}gc[J[659451]](a)}}function Wxb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+12>>2];a:{if(M[b>>2]<=256){b=J[c+8>>2];if(b&7)break a;e=J[c+64>>2];if(!((e|0)<0|J[c+60>>2]<(e| -0))){J[c+8>>2]=b|4;break a}J[c+4>>2]=J[c+4>>2]|32;b=J[c+28>>2];J[c+28>>2]=b-1;if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break a}Uc(c,d&255);break a}wh(c,d)}A9(a+16|0,c);return 0}function TU(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0)while(1){J[a+16>>2]=2381028;J[a+40>>2]=2381060;c=J[a+44>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+44>>2]=0}J[a+32>>2]=2381060;c=J[a+36>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+36>>2]= -0}sc(a+24|0);a=a+56|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Sza(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0)while(1){J[a+8>>2]=2381028;J[a+32>>2]=2381060;c=J[a+36>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+36>>2]=0}J[a+24>>2]=2381060;c=J[a+28>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)gc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0}sc(a+16|0);a=a+44|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Pub(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>>2];a:{if(!b)break a;c=J[a+644>>2];d= -gc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a+1|0]&248;H[c+1|0]=K[a|0]>>>3&28|K[a+1|0]<<5;d=K[a|0];H[c+3|0]=0;H[c+2|0]=d<<3;a=a+2|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function Oub(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>>2];a:{if(!b)break a;c=J[a+644>>2];d=gc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a|0]&248;H[c+1|0]= -K[a|0]>>>3&28|K[a+1|0]<<5;d=K[a+1|0];H[c+3|0]=0;H[c+2|0]=d<<3;a=a+2|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function njb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+12>>2];if(b){e=J[a+28>>2];J[b+104>>2]=0;J[b+48>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;H[b+44|0]=0;J[b- -64>>2]=9;J[b+12>>2]=0;J[b+16>>2]=0;d=J[b+180>>2];c=J[b+100>>2];if((c|0)!=(b+112|0)){if(c)gc[J[d+8>>2]](d,c);J[b+100>>2]=0}c=J[b+88>>2];if(c)gc[J[d+8>>2]](d,c);b=wc(b,0,184);if(b)gc[J[e+8>>2]](e,b);J[a+12>>2]=0}}function hgb(a,b){a= -a|0;b=b|0;var c=0,d=0;a=J[a+16>>2];c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(c>>>0>b>>>0)break a;b=b-c|0;c=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);if(b>>>0>=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0)break a;a=(a+20|0)+(b<<1)|0;d=K[a|0]<<8|K[a+1|0]}return d|0}function XXa(a){a=a|0;var b=0,c=0;b=J[a+408>>2];c=gc[J[J[a+4>>2]>>2]](a,1,8192)|0;J[b+8>>2]=c;a=0;while(1){b=(a<<2)+c|0;J[b>>2]=P(a,19595);J[b+7168>>2]=P(a,-5329);J[b+ -6144>>2]=P(a,-27439);J[b+5120>>2]=(a<<15)+8421375;J[b+4096>>2]=P(a,-21709);J[b+3072>>2]=P(a,-11059);J[b+2048>>2]=P(a,7471)+32768;J[b+1024>>2]=P(a,38470);a=a+1|0;if((a|0)!=256)continue;break}}function QWa(a){a=a|0;var b=0,c=0;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a:{if(c)break a;if(gc[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=217;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(gc[J[b+12>>2]](a)|0)break b; -b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}}function jMa(a){a=a|0;var b=0,c=0,d=0,e=0;a=J[J[a+4>>2]+12>>2];a:{if(!a)break a;a=gc[J[J[a>>2]+168>>2]](a)|0;if(!a)break a;b=rc(8);J[695492]=0;d=$(4,8)|0;c=J[695492];J[695492]=0;b:{c:{if((c|0)!=1){J[695492]=0;c=aa(3183,d|0,a|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1)break b;a=Z()|0;qc(d);break c}a=Z()|0}qc(b);ba(a|0);B()}J[b+4>>2]=c;J[b>>2]=a}return b|0}function fh(a,b){var c=0,d=0;c=J[a>>2];a:{if(c>>>0>=b>>>0)break a;while(1){b:{c:switch(K[c|0]){case 0:case 9:case 10:case 12:case 13:case 32:break b; -case 37:break c;default:break a}d=37;while(1){d:switch(d-10|0){case 0:case 3:break b;default:break d}c=c+1|0;if((c|0)!=(b|0)){d=K[c|0];continue}break}c=b}c=c+1|0;if(c>>>0>>0)continue;break}}J[a>>2]=c}function amb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{if((b|0)<6)break b;e=((b|0)>=1024?1024:b)-6|0;while(1){if(!kd(a+c|0,28659,5))break a;f=(c|0)==(e|0);c=c+1|0;if(!f)continue;break}if(K[a|0]!=65|(b|0)<8|(K[a+1|0]!=84|K[a+2|0]!=38))break b;if(K[a+3|0]!=84|K[a+4|0]!=70|(K[a+5|0]!=79|K[a+6|0]!=82))break b; -d=1;if(K[a+7|0]==77)break a}d=2}return d|0}function Vi(a,b){var c=0,d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+3>>>0)break d;e=J[a+20>>2];e:{if(e){f=d+12|0;if((gc[e|0](a,c,f,4)|0)!=4)break d;c=J[a+8>>2];b=f;break e}b=J[a>>2];if(!b)break c;b=b+c|0}g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+4}bc=d+16|0;return g}function P8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bd(1,24);if(!d)return 0;H[d|0]=1;a:{e=bd(1,56);if(e){J[e>> -2]=d;c=bd(1,1876);J[e+36>>2]=c;if(!c){qc(e);qc(d);return 0}J[d+8>>2]=e;if(b){c=bd(1,96);if(!c)break a;J[c+12>>2]=J[b>>2];J[c+16>>2]=J[b+4>>2];J[c+20>>2]=J[b+8>>2];J[e+44>>2]=c}c=AN(e,a);Rx(J[d+8>>2])}qc(d);return c|0}J[d+20>>2]=1;Rx(e);qc(d);return 0}function Ljb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{b:{if(!Ec(b,240954)){J[c>>2]=J[a+36>>2];J[c+4>>2]=J[a+40>>2];J[c+8>>2]=J[a+44>>2];J[c+12>>2]=J[a+48>>2];J[c+16>>2]=J[a+52>>2];J[c+20>>2]=J[a+56>>2];J[c+24>>2]=J[a+60>>2];J[c+28>>2]=J[a- -64>>2];break b}if(!Ec(b, -241126)){J[c>>2]=J[a+28>>2];break b}d=12;if(Ec(b,241391))break a;H[c|0]=K[a+32|0]}d=0}return d|0}function Dk(a,b,c){var d=0,e=0,f=0;a:{b:{if(!a)break b;d=J[J[a>>2]+32>>2];if(d)d=gc[d|0](a,b)|0;else d=0;if(d|!c)break a;c=J[a+4>>2];d=J[c+16>>2];if((d|0)<=0)break b;c=c+20|0;f=c+(d<<2)|0;while(1){e=J[c>>2];c:{if((e|0)==(a|0))break c;d=J[J[e>>2]+32>>2];if(!d)break c;d=gc[d|0](e,b)|0;if(d)break a}c=c+4|0;if(f>>>0>c>>>0)continue;break}}d=0}return d}function x_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f= -0,g=0;if(!b)return 0;e=J[b+4>>2];a=J[b+12>>2];a:{if(e>>>0>=a+d>>>0)break a;if(J[b+20>>2]){a=e+(d>>>0<=65535?65535:d)|0;g=zc(a);f=J[b>>2];e=tc(g,f,e);qc(f);J[b+4>>2]=a;J[b>>2]=e;a=J[b+12>>2];break a}d=e-a|0}tc(J[b>>2]+a|0,c,d);a=J[b+12>>2]+d|0;J[b+12>>2]=a;if(a>>>0>M[b+8>>2])J[b+8>>2]=a;return d|0}function hda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+84>>2];f=J[d>>2]?d:2625440;d=0;a:{if(!J[a+48>>2])break a;while(1){e=J[(d<<2)+f>>2];if(!e)break a;H[J[a+44>>2]+d|0]=(e|0)>=128?64:e;d=d+1|0; -if(d>>>0>2])continue;break}}e=J[a+44>>2];J[a+4>>2]=e;J[a+84>>2]=(d<<2)+f;J[a+8>>2]=d+e;if(!(!c|!d)){J[a+4>>2]=e+1;H[b|0]=K[e|0];g=1}return g|0}function gda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+84>>2];f=J[d>>2]?d:2625448;d=0;a:{if(!J[a+48>>2])break a;while(1){e=J[(d<<2)+f>>2];if(!e)break a;H[J[a+44>>2]+d|0]=(e|0)>=128?64:e;d=d+1|0;if(d>>>0>2])continue;break}}e=J[a+44>>2];J[a+4>>2]=e;J[a+84>>2]=(d<<2)+f;J[a+8>>2]=d+e;if(!(!c|!d)){J[a+4>>2]=e+1;H[b|0]=K[e|0];g=1}return g| -0}function gV(a,b){a=a|0;b=b|0;var c=0;a:{if((b|0)>0)while(1){J[a+16>>2]=0;c=J[682146];J[a+24>>2]=0;J[a+28>>2]=0;J[a+20>>2]=c;J[a+32>>2]=0;J[a+36>>2]=0;J[695492]=0;c=a+24|0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break a;a=a+40|0;c=(b|0)>1;b=b-1|0;if(c)continue;break}return}b=Z()|0;sc(a+16|0);ba(b|0);B()}function snb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1280266064){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];H[b+ -40|0]=K[c+40|0];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];d=J[c+52>>2];J[b+52>>2]=d;if(d){e=b;d=d<<2;b=gc[J[a+152>>2]](d)|0;J[e+56>>2]=b;if(b){tc(b,J[c+56>>2],d);return 0}Dc(a,1,0,0);a=1}else a=0;return a|0}function sZa(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=a;f=c;a:{g=J[d>>2];b:{if((g|0)<=0)break b;g=f+g|0;j=J[b>>2]+e|0;while(1){h=e-a|0;if(J[b>>2]<=(h+5|0)|e>>>0>=j>>>0)break b;i=H[f|0];if((i|0)<0)break a;H[e|0]=i;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue;break}}J[b>>2]=e- -a;J[d>>2]=f-c;return J[b>>2]}J[b>>2]=h;J[d>>2]=f-c;return-1}function rsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=gc[J[a+2296>>2]](K[d|0])|0;f=gc[J[a+2296>>2]](K[d+1|0])|0;e=c>>>8|0;H[b+4|0]=e;H[b+2|0]=e;H[b|0]=e;c=(c|0)!=0;H[b+5|0]=c;H[b+3|0]=c;H[b+1|0]=c;H[b+7|0]=(f|0)!=0;H[b+6|0]=f>>>8;b=b+8|0;d=d+2|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function Uib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=6;f=J[a+280>>2];a:{if((f| -0)<=0)break a;d=J[a+284>>2];a=0;while(1){b:{h=a;g=Ec(J[P(a,12)+d>>2],b);a=a+1|0;if((f|0)<=(a|0))break b;if(g)continue}break}if(g)break a;b=P(h,12)+d|0;c:{if(K[b+4|0]){J[c>>2]=1;J[c+4>>2]=J[b+8>>2];break c}J[c>>2]=2;J[c+4>>2]=J[(P(a,12)+d|0)-4>>2]}e=0}return e|0}function TY(a){var b=0,c=0;a:{b:{if(!J[a+36>>2])break b;b=J[a+32>>2];if((b|0)<=0)break b;while(1){J[a+40>>2]=-1;if(J[a+36>>2])J[a+32>>2]=b-1;J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];c=J[J[b>>2]+28>>2];J[695492]=0;b=$(c|0,b|0)|0;c=J[695492];J[695492]= -0;if((c|0)==1)break a;J[a+40>>2]=b&255;b=J[a+32>>2];if((b|0)>0)continue;break}}return a}ea(0)|0;yc();B()}function TO(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;f=c+4|0;d=RE(f,20,0);if(K[d+11|0]>>>7|0)e=(J[d+8>>2]&2147483647)-1|0;else e=1;J[695492]=0;da(7042,d|0,e|0);e=J[695492];J[695492]=0;if((e|0)==1){a=Z()|0;Ze(d);ba(a|0);B()}J[695492]=0;wa(7043,a|0,f|0,+b);a=J[695492];J[695492]=0;if((a|0)!=1){Ze(f);bc=c+16|0;return}a=Z()|0;Ze(c+4|0);ba(a|0);B()}function wPa(a){a=a|0;var b=0,c=0,d=0;J[a>> -2]=2206204;b=J[a+12>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+16>>2];if(d){qc(Rc(d));b=J[a+12>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}b=J[a+144>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+148>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[695492]=0;_(3205,a+152|0);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(a)}function kzb(a,b){a=a|0;b=b|0;var c=0;c=-1;a:{if(mO(b,J[a+12>>2]))break a;a=J[b+8>>2];if(a&7)break a;c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2])){J[b+8>>2]=a|4;return-1}J[b+4>>2]=J[b+4>>2]|32;c= --1;a=J[b+28>>2];J[b+28>>2]=a-1;b:{if((a|0)<=0){if((Uc(b,0)|0)!=-1)break b;break a}J[b+60>>2]=J[b+60>>2]+1;a=J[b+24>>2];J[b+24>>2]=a+1;H[a|0]=0}c=0}return c|0}function kw(a,b,c){var d=0,e=0,f=0;d=rc(16);J[695492]=0;f=$(3185,d|0)|0;e=J[695492];J[695492]=0;a:{if((e|0)==1)break a;if(c){d=rc(8);J[695492]=0;c=aa(3183,d|0,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;id(f,c)}a=J[a+32>>2];d=rc(8);J[695492]=0;b=aa(3182,d|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){xg(a,b,f);return}}a=Z()|0;qc(d);ba(a| -0);B()}function jsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){c=J[a+2300>>2];f=J[a+2312>>2];b=J[a+2316>>2];while(1){e=K[f|0];if(e>>>0>2]){d=P(e,3)+c|0;H[b|0]=K[d+68|0];H[b+1|0]=K[d+69|0];H[b+2|0]=K[d+70|0];d=255;H[b+3|0]=!K[c+56|0]|M[c+844>>2]<=e>>>0?d:K[(c+e|0)+848|0]}b=b+4|0;f=f+1|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function cma(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;var h=0,i=0,j=0;g=J[a+12>>2];h=O[c>>3];i=O[e>>3];j=O[f>>3];a=bc-48|0;bc= -a;O[a+32>>3]=O[d>>3];O[a+40>>3]=h;O[a+24>>3]=i;O[a+16>>3]=j;f=b;b=a+40|0;c=a+32|0;d=a+24|0;e=a+16|0;yS(a+8|0,g+652|0,f,b,c,d,e);f=J[a+12>>2];J[a>>2]=J[a+8>>2];J[a+4>>2]=f;US(g+1984|0,a,b,c,d,e);bc=a+48|0;return 0}function bqb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=J[J[J[a+544>>2]+88>>2]+36>>2];f=J[a+644>>2];c=J[a+636>>2];J[a+644>>2]=c;J[a+636>>2]=f;d=J[a+672>>2];if((d|0)>2]){b=J[a+656>>2];e=(b<<3)+f|0;while(1){J[c>>2]=J[e>>2];J[c+4>>2]=J[e+4>>2];b=b+1|0;g=b>>>0>>0;e=g?e+8|0:f;b=g? -b:0;c=c+8|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function Yd(a,b,c,d){var e=0,f=0,g=0,h=0;g=P(b,c);e=J[d+72>>2];J[d+72>>2]=e-1|e;e=J[d+4>>2];f=J[d+8>>2];if((e|0)==(f|0))e=g;else{h=e;e=f-e|0;e=e>>>0>>0?e:g;tc(a,h,e);J[d+4>>2]=e+J[d+4>>2];a=a+e|0;e=g-e|0}if(e)while(1){a:{if(!Wy(d)){f=gc[J[d+32>>2]](d,a,e)|0;if(f)break a}return(g-e>>>0)/(b>>>0)|0}a=a+f|0;e=e-f|0;if(e)continue;break}return b?c:0}function S3a(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;if(J[a+316>> -2]>0){f=J[d>>2];while(1){i=e|1;b=J[a+112>>2];if((b|0)>0){d=J[(e<<2)+f>>2];j=b+d|0;b=J[(g<<2)+c>>2];while(1){h=K[b|0];H[d+1|0]=h;H[d|0]=h;b=b+1|0;d=d+2|0;if(j>>>0>d>>>0)continue;break}b=J[a+112>>2]}jn(f,e,f,i,1,b);g=g+1|0;e=e+2|0;if((e|0)>2])continue;break}}}function uJ(){var a=0,b=0,c=0,d=0;a=28555;while(1){b=a;a=b+1|0;if(K[b|0])continue;break}c=b-28555|0;a:{if((c|0)<0)break a;a=0;b:{c:{d=gc[J[659450]](c+1|0)|0;if(d){if((b|0)==28555)break b;break c}Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);return 0}while(1){b= -K[a+28555|0];H[a+d|0]=b;if(!b)break a;a=a+1|0;if((c|0)!=(a|0))continue;break}}H[c+d|0]=0}return d}function pZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;J[a+20>>2]=d;J[a+16>>2]=c;J[a+12>>2]=b;J[a>>2]=2206152;J[a+4>>2]=15;J[a+8>>2]=0;e=a,f=!sd(b,807135),J[e+24>>2]=f;b=1;a:{b:{if(!sd(J[a+12>>2],807391))break b;b=2;if(!sd(J[a+12>>2],807820))break b;b=4;if(!sd(J[a+12>>2],807940))break b;if(sd(J[a+12>>2],808444))break a;b=8}J[a+4>>2]=b}return a|0}function hqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b| -0)>0)while(1){c=b;b=J[a+4>>2];J[a+4>>2]=0;b:{if(!b)break b;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=c-1|0;a=a+12|0;if(c>>>0>1)continue;break}return}ea(0)|0;yc();B()}function Zqa(a,b,c,d,e,f,g,h,i){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;c=bc-16|0;bc=c;d=P(g,3);h=h<<2;while(1){g=e;while(1){_d(J[a+68>>2],K[i|0],K[i+1|0],K[i+2|0],c+12|0,c+8|0,c+4|0);J[b>>2]=J[c+ -12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i=i+3|0;b=b+4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+h|0;f=f-1|0;if(f)continue;break}bc=c+16|0}function PP(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;J[c+4>>2]=a;a=J[a+4>>2];J[c+8>>2]=a;J[c+12>>2]=a+(b<<2);b=J[c+8>>2];a=J[c+12>>2];a:{while(1){if((a|0)==(b|0))break a;J[695492]=0;J[b>>2]=0;d=J[695492];J[695492]=0;if((d|0)!=1){b=b+4|0;J[c+8>>2]=b;continue}break}a=Z()|0;J[J[c+4>>2]+4>>2]=J[c+8>>2];ba(a|0);B()}J[J[c+4>>2]+4>>2]=J[c+8>>2];bc=c+16|0}function KSa(a){a= -a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=rc(384);b=J[a+4>>2];c=J[J[b>>2]+8>>2];J[695492]=0;b=$(c|0,b|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;c=J[a+52>>2];e=J[a+48>>2];f=J[a+44>>2];g=J[a+40>>2];J[695492]=0;a=va(3383,d|0,b|0,a+8|0,g|0,f|0,e|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}a=Z()|0;qc(d);ba(a|0);B()}function JBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)>0)while(1){c=b;b=J[a+8>>2];J[a+8>>2]=0;b:{if(!b)break b;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]= -0;if((e|0)==1)break a;if(d)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=c-1|0;a=a+12|0;if(c>>>0>1)continue;break}return}ea(0)|0;yc();B()}function CNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+12>>2]=0;J[a+4>>2]=-1;J[a>>2]=2307488;if(J[b>>2]==9){c=J[b+12>>2];J[a+4>>2]=J[b+8>>2];J[a+8>>2]=c;return a|0}a:{if(J[c>>2]==3){c=J[c+8>>2];b=rc(8);J[695492]=0;c=aa(3183,b|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+12>>2]=c;return a|0}xc(1,-1,806921,0);return a|0}a=Z()| -0;qc(b);ba(a|0);B()}function NOa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206448;b=J[a+180>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+320>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+188>>2];if(d){gc[J[J[d>>2]+4>>2]](d);b=J[a+320>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a);return}ea(0)|0;yc();B()}function Fub(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>> -2],J[a+580>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;while(1){c=K[d|0]|K[d+1|0]<<8;c=(c<<8|c>>>8)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;d=d+2|0;b=(J[a+584>>2]<<1)+b|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function D7a(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+127>>>7);g=b;b=f^255;e=255-e|0;H[a+2|0]=(P(g,b)+P(e,K[a+2|0])|0)+255>>>8;H[a+1|0]=(P(b, -c)+P(e,K[a+1|0])|0)+255>>>8;H[a|0]=(P(b,d)+P(e,K[a|0])|0)+255>>>8}}function xJ(a){a=a|0;var b=0,c=0,d=0,e=0;d=-1;a:{if(!a)break a;c=J[a+64>>2];if(!c)break a;d=0;if(J[c+4>>2]!=1)break a;b:{c:{b=J[a+68>>2];if(!b){b=J[c+48>>2];if(b)break b;break c}e=J[b+4>>2]-2|0;if(e){if((e|0)!=16)break a;b=J[b>>2];if(!b)break c;break b}b=J[b+24>>2];if(!b)break a;break b}b=J[c+44>>2];if(!b)break a}J[a+68>>2]=b;d=1}return d|0}function wO(a){var b=0,c=0,d=0,e=0,f=0;b=zc(40);J[b>>2]=0;b=zf(a+624|0,1,b,4);f=cc;a:{b:{while(1){if(!c){J[695492]= -0;_(672,a|0);c=J[695492];J[695492]=0;if((c|0)==1)break b;d=-1;c:{if(!c)break c;e=J[695493];if(!e)break c;d=Jc(J[c>>2],b,f);if(!d)break a;cc=e}c=cc;if((d|0)==1)continue}break}qc(b);return}a=Z()|0;qc(b);ba(a|0);B()}qc(b);ef(c,e);B()}function qja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=J[a+84>>2];f=J[e>>2];d=J[e+4>>2];h=J[a+28>>2];g=J[a+20>>2]-h|0;g=d>>>0>>0?d:g;if(g){tc(f,h,g);f=g+J[e>>2]|0;J[e>>2]=f;d=J[e+4>>2]-g|0;J[e+4>>2]=d}d=c>>>0>d>>>0?d:c;if(d){tc(f,b,d);f=d+J[e>>2]|0;J[e>>2]=f; -J[e+4>>2]=J[e+4>>2]-d}H[f|0]=0;b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;return c|0}function _Ta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=Qc(c);a:{if((b|0)>2147482623|(e|0)>1024|(b|e)<0)break a;f=b;d=J[a+1032>>2];if(!((d|0)<=(b|0)&(b+e|0)<=(J[a+1036>>2]+d|0))){d=0;if(Xg(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;b=Yd(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=b;if((b|0)<(e|0))break a;d=J[a+1032>>2]}d=!Wc((f+(a-d|0)|0)+8|0,c,e)}return d|0}function $o(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];if(!(!c|J[b+ -4>>2]!=(a|0))){f=M[c+12>>2]%M[a+8>>2]|0;d=J[c+4>>2];e=J[c>>2];if(e)J[e+4>>2]=d;J[(d?d:a+24|0)>>2]=e;d=J[a+12>>2]+(f<<2)|0;a:{if(J[d>>2]==(c|0)){J[d>>2]=J[c+8>>2];break a}d=J[c>>2];if(!d)break a;J[d+8>>2]=J[c+8>>2]}gc[J[J[a>>2]+16>>2]](c,1);qc(c);J[a+4>>2]=J[a+4>>2]-1;J[b>>2]=0}}function tKa(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];if(!b){while(1){b=J[a+32784>>2];if(!b){if(!(!J[a+34092>>2]|!J[a+34096>>2]))return-1;FA(a);continue}break}c=J[a+32780>>2];d=K[(c+a|0)+12|0];J[a+32784>>2]=b-1;J[a+32780>>2]=c+ -1&32767;return d|0}a=J[b+36>>2];if((a|0)>=J[b+28>>2]){if(!gt(b))return-1;a=J[b+36>>2]}J[b+36>>2]=a+1;return K[J[b+32>>2]+a|0]}function nub(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function mub(a){a=a|0;var b= -0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+2|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function hub(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;c=J[a+636>>2]+J[a+616>>2]|0; -while(1){H[b|0]=K[c|0];c=c+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function gub(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+2|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b= -0}return b|0}function gH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(a){c=J[a+4>>2];if(c){qc(c);J[a+4>>2]=0}if(b){c=a;while(1){d=J[c+200>>2];if(d){e=0;f=J[c+196>>2];if(f){while(1){g=J[d+12>>2];if(g){qc(g);J[d+12>>2]=0;f=J[c+196>>2]}d=d+16|0;e=e+1|0;if(e>>>0>>0)continue;break}d=J[c+200>>2]}qc(d);J[c+200>>2]=0}c=c+240|0;h=h+1|0;if((h|0)!=(b|0))continue;break}}qc(a)}}function dma(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;g=J[a+12>>2];h=O[c>>3];i=O[e>>3];j=O[f>>3];a=bc-48|0;bc=a; -O[a+32>>3]=O[d>>3];O[a+40>>3]=h;O[a+24>>3]=i;O[a+16>>3]=j;f=b;b=a+40|0;c=a+32|0;d=a+24|0;e=a+16|0;CS(a+8|0,g+652|0,f,b,c,d,e);f=J[a+12>>2];J[a>>2]=J[a+8>>2];J[a+4>>2]=f;US(g+1984|0,a,b,c,d,e);bc=a+48|0;return 0}function Y9a(a){a=a|0;var b=0,c=0,d=0;c=bc-16|0;bc=c;a:{b:{if(!(!J[a+16>>2]|!J[a+20>>2])){d=Hp(c+12|0,1,0,0,1,0,0);b=J[a+16>>2];if(!(!b|!J[a+20>>2])){J[695492]=0;cL(b,d);b=J[695492];J[695492]=0;if((b|0)==1)break b;a=J[a+16>>2];J[695492]=0;Yw(a);a=J[695492];J[695492]=0;if((a|0)==1)break b}Ed(d)}bc= -c+16|0;break a}a=Z()|0;Ed(d);ba(a|0);B()}return 0}function Tnb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[b+36>>2];a:{if(!d)break a;c=J[b+40>>2];while(1){e=J[c+28>>2];b:{if(!e)break b;f=J[c+32>>2];if(!f)break b;gc[J[a+156>>2]](f,e);d=J[b+36>>2]}c=c+1296|0;g=g+1|0;if(g>>>0>>0)continue;break}if(!d)break a;c=J[b+40>>2];if(!c)break a;gc[J[a+156>>2]](c,P(d,36))}gc[J[a+156>>2]](b,44);return 0}function OOa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206448;b=J[a+180>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]= -0;if((b|0)!=1){b=J[a+320>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+188>>2];if(d){gc[J[J[d>>2]+4>>2]](d);b=J[a+320>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;yc();B()}function pnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1111577417){Dc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];J[b+36>>2]=J[c+36>>2];H[b+40|0]=K[c+40|0];H[b+41|0]=K[c+41|0];H[b+42|0]=K[c+42|0];H[b+43|0]=K[c+43|0];H[b+44|0]=K[c+44|0];I[b+46>>1]=L[c+46>>1];I[b+48>> -1]=L[c+48>>1];I[b+50>>1]=L[c+50>>1];I[b+52>>1]=L[c+52>>1];H[b+54|0]=K[c+54|0];return 0}function pF(a,b){var c=0,d=0,e=0;d=bc-32|0;bc=d;c=H[b|0];a:{if(!(K[b+1|0]?c:0)){b=Ly(a,c);break a}wc(d,0,32);c=K[b|0];if(c)while(1){e=(c>>>3&28)+d|0;J[e>>2]=J[e>>2]|1<>>3&28)+d>>2]>>>c&1)break a;c=K[b+1|0];b=b+1|0;if(c)continue;break}}bc=d+32|0;return b-a|0}function lqa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2421288;xd(a+80|0);J[a>> -2]=2421084;xd(a+48|0);xd(a+24|0);b=J[a+20>>2];J[a+20>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}sc(a+8|0);return ed(a)|0}function dPa(a){a=a|0;var b=0,c=0,d=0;b=rc(64);c=J[a+8>>2];d=J[J[c>>2]+8>>2];J[695492]=0;c=$(d|0,c|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[b+8>>2]=c;J[b>>2]=2206328;J[b+4>>2]=2;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3]; -O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+48>>3]=O[a+48>>3];O[b+56>>3]=O[a+56>>3];return b|0}a=Z()|0;qc(b);ba(a|0);B()}function Bj(a,b){a=a|0;b=b|0;var c=0,d=0;b=J[b>>2];d=J[b+4>>2];c=J[a>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d;d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;d=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;return a|0}function wwb(a,b,c){a=a|0; -b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=J[a+4>>2];d=J[a+12>>2];if(d){J[f+20>>2]=d+J[f+20>>2];J[a+12>>2]=0;J[a+8>>2]=d+J[a+8>>2]}d=c;e=d;a:{if((d|0)<=0)break a;while(1){e=0;g=J[f+20>>2];if(g>>>0>=M[f+16>>2])break a;J[f+20>>2]=g+1;e=d-1|0;H[g|0]=b>>>(e<<3);g=(d|0)>1;d=e;if(g)continue;break}e=c}J[a+8>>2]=J[a+8>>2]+c;return e|0}function oma(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a=J[a+12>>2]+2312|0;c=J[c>>2];if((b|0)!=0&(c|0)>7){gc[J[J[a>>2]+(K[J[a+8>>2]+1|0]<<2)>>2]](a,O[b>>3],O[b+8>>3])|0;e=b+16|0;c=(c-2>>> -0)/6|0;while(1){b=P(d,48)+e|0;gc[J[J[a>>2]+8>>2]](a,O[b>>3],O[b+8>>3],O[b+16>>3],O[b+24>>3],O[b+32>>3],O[b+40>>3])|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}return 0}function dT(a){var b=0,c=0,d=0,e=0;c=bc-32|0;bc=c;e=J[a+56>>2];b=Dzb(e,0,L[a+84>>1],0);d=fc;if(!(!e|!d)){d=J[a>>2];b=J[a+628>>2];J[c+16>>2]=72535;Nc(b,d,73480,c+16|0);b=0}a:{if(L[a+138>>1]!=1)break a;d=L[a+98>>1];b=Dzb(d,0,b,0);e=fc;if(!d|!e)break a;b=J[a>>2];a=J[a+628>>2];J[c>>2]=72535;Nc(a,b,73480,c);b=0}bc=c+32|0;return(b>>>3|0)+((b& -7)!=0)|0}function Zyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;e=-1;d=li(a,b+12|0,4);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((Ij(a,K[c+(b+12|0)|0])|0)!=-1)continue;break a}break}if((d|0)<4)break a;a=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);e=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))!=1296647690?-1:0}bc=b+16|0;return e|0}function ZBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+540>>2];e=J[a+536>>2];a:{if(d>>>0>=e>>>0){d=J[a+12>>2];if(c>>>0>=512){d=Sz(d,b,J[a+20>> -2],c,0);a=a+20|0;break a}e=Sz(d,a+24|0,J[a+20>>2],512,0);J[a+540>>2]=0;J[a+536>>2]=e;d=0}f=(a+d|0)+24|0;d=c+d>>>0>>0?c:e-d|0;tc(b,f,d);J[a+540>>2]=J[a+540>>2]+d;a=a+20|0}J[a>>2]=J[a>>2]+d;return d|0}function Ryb(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;e=-1;d=li(a,b+12|0,4);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((Ij(a,K[c+(b+12|0)|0])|0)!=-1)continue;break a}break}if((d|0)<4)break a;a=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);e=(a<<24|(a&65280)<<8|(a>>>8&65280| -a>>>24))!=1504078485?-1:0}bc=b+16|0;return e|0}function OAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)>0)while(1){c=b;b=J[a>>2];J[a>>2]=0;b:{if(!b)break b;J[695492]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(d)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=c-1|0;a=a+4|0;if(c>>>0>1)continue;break}return}ea(0)|0;yc();B()}function Lma(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;a=J[a+12>>2];a:{if(H[b+11|0]>=0){J[c+8>>2]=J[b+8>>2];d=J[b+ -4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;break a}Re(c,J[b>>2],J[b+4>>2])}J[695492]=0;a=aa(6215,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[c+11|0]<0)qc(J[c>>2]);bc=c+16|0;return a|0}a=Z()|0;if(H[c+11|0]<0)qc(J[c>>2]);ba(a|0);B()}function Jma(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;a=J[a+12>>2];a:{if(H[b+11|0]>=0){J[c+8>>2]=J[b+8>>2];d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;break a}Re(c,J[b>>2],J[b+4>>2])}J[695492]=0;a=aa(6216,a|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[c+11|0]<0)qc(J[c>> -2]);bc=c+16|0;return a|0}a=Z()|0;if(H[c+11|0]<0)qc(J[c>>2]);ba(a|0);B()}function sca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc+-64|0;bc=d;e=1;a:{if(pj(a,b,0))break a;e=0;if(!b)break a;b=ik(b,2625884,2625932);e=0;if(!b)break a;wc(d+12|0,0,52);J[d+56>>2]=1;J[d+20>>2]=-1;J[d+16>>2]=a;J[d+8>>2]=b;gc[J[J[b>>2]+28>>2]](b,d+8|0,J[c>>2],1);a=J[d+32>>2];if((a|0)==1)J[c>>2]=J[d+24>>2];e=(a|0)==1}a=e;bc=d- -64|0;return a|0}function qcb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a>>2];d=J[a+44>>2];if(d){e=J[d>>2]; -if(!(!e|!J[e+96>>2]))J[e+88>>2]=d}d=bM(J[c+504>>2],b);if(!d){b=J[J[c+504>>2]+88>>2];c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;J[a+36>>2]=J[b+36>>2];c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c}return d|0}function Wo(a,b){a=a|0;b=b|0;var c=0,d=0;gc[J[J[a>>2]+8>>2]](a,6);c=J[a+12>>2];b=J[b>>2];J[c>>2]=J[(b>>>18&60)+2451312>>2];d=J[a+16>>2];J[c+16>>2]=J[(b>>>2&60)+2451312>>2];J[c+12>>2]=J[(b>>>6&60)+2451312>>2];J[c+8>>2]=J[(b>>>10&60)+2451312>> -2];J[c+4>>2]=J[(b>>>14&60)+2451312>>2];J[a+12>>2]=c+24;J[c+20>>2]=J[((b&15)<<2)+2451312>>2];J[a+16>>2]=d+6}function CEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;a=XG(c+12|0,a);J[695492]=0;ca(4946,a|0,c+28|0,c+24|0);e=J[695492];J[695492]=0;if((e|0)!=1){Lc(a);a=rc(12);d=O[b>>3];b=J[c+24>>2];J[a+4>>2]=J[c+28>>2];J[a>>2]=2371520;d=d*+(b|0);a:{if(R(d)<2147483648){b=~~d;break a}b=-2147483648}J[a+8>>2]=b;bc=c+32|0;return a|0}b=Z()|0;Lc(a);ba(b|0);B()}function A6a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d= -Q(0),e=Q(0),f=Q(0),g=Q(0);f=N[a+12>>2];d=Q(N[a+20>>2]-f);g=N[a+16>>2];e=Q(N[a+24>>2]-g);b=Q(Q(Q(Q(b-f)*d)+Q(Q(c-g)*e))/Q(Q(d*d)+Q(e*e)));if(!(!(b>2]==Q(0)))return Q(N[a+152>>2]);if(!(!(b>Q(1))|N[a+124>>2]==Q(0)))return Q(N[a+156>>2]);c=N[a+152>>2];return Q(Q(Q(Q(N[a+156>>2]-c)*b)+c))}function z8(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!b){g= -K[d|0];e=4;d=d+1|0;b=240}H[c|0]=(b&g)>>>e;e=e-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function wjb(a){a=a|0;var b=0,c=0;a:{b=J[a>>2];if(!b)break a;a=a+20|0;if(!a)break a;b=J[b>>2];if(!b)break a;b:{if(!(H[a+16|0]&1))break b;c=J[a+4>>2];if(c)gc[J[b+8>>2]](b,c);J[a+4>>2]=0;c=J[a+8>>2];if(c)gc[J[b+8>>2]](b,c);J[a+8>>2]=0;c=J[a+12>>2];if(!c)break b;gc[J[b+8>>2]](b,c)}J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}}function hib(a,b,c){a=a| -0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];a:{if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=sh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+68|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[f+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function Pwb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+52>>2];a=gc[J[J[b>>2]+20>>2]](b,2)|0;gc[J[J[b>>2]+20>>2]](b,1)|0;if((a|0)>=4){c=a-3|0;while(1){a=c-4|0;c=a;d=gc[J[J[b>>2]+20>>2]](b, -4)|0;a:{if((d|0)<=0)break a;while(1){gc[J[J[b>>2]+20>>2]](b,1)|0;c=a-1|0;if((a|0)<2)break a;e=d>>>0>1;d=d-1|0;a=c;if(e)continue;break}}if((c|0)>0)continue;break}}}function Kqa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-32|0;bc=d;a:{c=$i(a,0,J[a+116>>2],a- -64|0);if(!((c|0)>=J[a+112>>2]&J[a+116>>2]>=(c|0))){a=Kc(d+8|0,2381890,2382316,619,2401256,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}J[b>>2]=J[J[a+100>>2]+(c-J[a+104>>2]<<2)>>2];bc=d+32|0;return c| -0}B()}function Dob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;d=J[a+428>>2];c=L[b+34>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;f=d+8|0;c=L[b+36>>1];e=2;a:{if(!(K[b+38|0]|(c|0)!=L[b+34>>1]))break a;c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;c=K[b+38|0];e=4;if(!c)break a;H[d+12|0]=c;e=5}c=e;return ue(a,J[b>>2],c,f)|0}function A8(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>> -2])|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!b){g=K[d|0];e=6;d=d+1|0;b=192}H[c|0]=(b&g)>>>e;e=e-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function vE(a,b,c,d){H[a+53|0]=1;a:{if(J[a+4>>2]!=(c|0))break a;H[a+52|0]=1;c=J[a+16>>2];b:{if(!c){J[a+36>>2]=1;J[a+24>>2]=d;J[a+16>>2]=b;if((d|0)!=1)break a;if(J[a+48>>2]==1)break b;break a}if((b|0)==(c|0)){c=J[a+24>>2];if((c|0)==2){J[a+24>>2]=d;c=d}if(J[a+48>>2]!=1)break a;if((c|0)==1)break b;break a}J[a+ -36>>2]=J[a+36>>2]+1}H[a+54|0]=1}}function kU(a){a=a|0;var b=0,c=0;J[a>>2]=2405704;Bd(a+100|0);Bd(a+72|0);xd(a+48|0);J[a+36>>2]=2381060;J[a+12>>2]=2381028;b=J[a+40>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+40>>2]=0}J[a+28>>2]=2381060;b=J[a+32>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+32>>2]=0}sc(a+20|0);return ed(a)|0}function bkb(a){a=a|0;var b=0,c=0,d=0;c=J[a+16>>2];if(M[a+20>>2]>=c+16>>>0){d=J[a+32>>2];b=ku(a,J[c>>2],0);J[d+84>>2]=((b>>31)+ -b|0)+32768&-65536;b=ku(a,J[c+4>>2],0);J[d+88>>2]=((b>>31)+b|0)+32768&-65536;b=ku(a,J[c+8>>2],0);J[d+92>>2]=((b>>31)+b|0)+32768&-65536;a=ku(a,J[c+12>>2],0);J[d+96>>2]=((a>>31)+a|0)+32768&-65536;a=0}else a=161;return a|0}function Dt(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=bc-16|0;bc=e;a:{if(!a){c=0;break a}if(!b){c=a;break a}b:{g=Qc(a);f=Qc(b);h=g+f|0;i=h+2|0;if((d|0)>=(i|0)?c:0)break b;c=gc[J[659450]](i)|0;if(c)break b;J[e>>2]=14100;Cc(0,0,0,0,0,2,2,3,14100,0,0,0,32863,e);c=0;break a}b=tc(c,b,f);d=b+f| -0;H[d|0]=58;tc(d+1|0,a,g);H[(b+h|0)+1|0]=0}bc=e+16|0;return c}function kqa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2421288;xd(a+80|0);J[a>>2]=2421084;xd(a+48|0);xd(a+24|0);b=J[a+20>>2];J[a+20>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}sc(a+8|0);qc(ed(a))}function Yxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;d=K[a+24|0];e=K[a+12|0];J[c+24>>2]=J[a+ -16>>2];J[c+20>>2]=d;J[c+16>>2]=e;cd(b,209759,c+16|0);if(J[a+16>>2]>0){d=0;while(1){e=J[J[a+20>>2]+(d<<2)>>2];J[c+8>>2]=d;J[c>>2]=d;J[c+12>>2]=e&2047;J[c+4>>2]=e>>>11;cd(b,209846,c);d=d+1|0;if((d|0)>2])continue;break}}bc=c+32|0;return 0}function Wd(a,b){var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+1>>>0)break d;f=J[a+20>>2];e:{if(f){d=e+14|0;if((gc[f|0](a,c,d,2)|0)!=2)break d;c=J[a+8>>2];break e}b=J[a>>2];if(!b)break c;d=b+c|0}b=K[d|0]|K[d+1|0]<< -8;g=b<<8|b>>>8;break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+2}bc=e+16|0;return g&65535}function Tvb(a,b){a=a|0;b=b|0;I[a+1016>>1]=L[b+28>>1];H[a+1018|0]=K[b+30|0];H[a+1019|0]=K[b+31|0];H[a+1020|0]=K[b+32|0];H[a+1021|0]=K[b+33|0];H[a+1022|0]=K[b+34|0];J[a+1024>>2]=J[b+36>>2];J[a+1028>>2]=J[b+40>>2];H[a+1032|0]=K[b+44|0];J[a+1036>>2]=J[b+48>>2];J[a+1040>>2]=J[b+52>>2];J[a+1044>>2]=J[b+56>>2];J[a+1048>>2]=J[b+60>>2];return g8(a)|0}function QPa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(J[a+12>>2]>0)while(1){f= -(e<<2)+b|0;a:{b:{d=(e<<3)+a|0;c=O[d+24>>3];if(c>0){c=c*65536;if(!(R(c)<2147483648))break b;d=~~c;break a}c=O[d+56>>3];d=0;if(!(c<0))break a;c=c*65536;if(!(R(c)<2147483648))break b;d=~~c;break a}d=-2147483648}J[f>>2]=d;e=e+1|0;if((e|0)>2])continue;break}}function Fd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a>>2];d=c;a:{if(!K[a+8|0])break a;d=0;if(!c)break a;d=J[c>>2]}a=J[a+4>>2];c=Ve(b);f=(c|0)<0?-2147483648:c;b:{if((a|0)!=(f|0))break b;if(!c)return 1;a=0;while(1){e=a<<2;g=J[e+d>>2];c= -J[b+e>>2];e=(g|0)==(c|0);if((c|0)!=(g|0))break b;a=a+1|0;if((f|0)!=(a|0))continue;break}}return e|0}function xaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-16|0;bc=e;d=J[a+584>>2];if(K[a+48|0]&4){Td(73955,13,1,b);a:{b:switch(J[d>>2]-1|0){case 0:Td(74429,5,1,b);break a;case 1:Td(74843,24,1,b);break a;case 2:break b;default:break a}Td(75279,25,1,b)}f=J[d>>2];J[e+4>>2]=f;J[e>>2]=f;cd(b,75798,e)}d=J[d+52>>2];if(d)gc[d|0](a,b,c);bc=e+16|0}function kdb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a= -J[a+532>>2];if(!a)return 6;d=J[a+4>>2];J[b>>2]=d;J[b+4>>2]=J[a>>2];if(!d)return 0;g=a+88|0;h=b+8|0;b=0;while(1){c=P(b,12);e=c+h|0;J[e>>2]=J[(a+(b<<2)|0)+8>>2];c=c+g|0;f=J[c+4>>2];J[e+4>>2]=J[f>>2];J[e+8>>2]=J[((K[c|0]<<2)+f|0)-4>>2];b=b+1|0;if((d|0)!=(b|0))continue;break}return 0}function fs(a){a=a|0;var b=0;J[a>>2]=2613608;J[695492]=0;$(2858,a|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)==1){na(ea(0)|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;if((b|0)==1)break a}b:{if(!K[a+96|0])break b;b=J[a+ -32>>2];if(!b)break b;qc(b)}c:{if(!K[a+97|0])break c;b=J[a+56>>2];if(!b)break c;qc(b)}return Fy(a)|0}ea(0)|0;yc();B()}function x1(a,b){var c=0,d=0,e=0;d=bc-32|0;bc=d;a:{if(!a)break a;c=J[a+24>>2];b:{if(b>>>0<=1){e=J[c+24>>2];J[a+48>>2]=0;J[a+44>>2]=e;H[a+65|0]=0;H[a+36|0]=0;H[a+254|0]=0;H[a+62|0]=0;if((b|0)==1)break b}H[a+253|0]=0;J[a+180>>2]=-1;H[a+63|0]=0;H[a+64|0]=0;J[a+52>>2]=0;J[a+56>>2]=0}c=J[J[c+20>>2]+20>>2];if(!c)break a;gc[c|0](a,b)}bc=d+32|0}function ZIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0, -e=0,f=0;e=rc(8);J[695492]=0;d=aa(3182,e|0,798712)|0;f=J[695492];J[695492]=0;if((f|0)!=1){Dh(d,J[a+20>>2]);od(d,799492);if(J[a+24>>2]){od(d,800317);Dh(d,J[a+24>>2]);od(d,799492)}if(K[a+28|0])od(d,800970);od(d,785835);a=gc[b|0](c,J[d+4>>2],J[d>>2])|0;qc(Rc(d));return a|0}a=Z()|0;qc(e);ba(a|0);B()}function IY(a){var b=0,c=0,d=0;a:{if(J[a+8>>2]==13)break a;c=a+8|0;while(1){b=J[a+16>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)!=-1){if(J[c>>2]==13)break a;continue}b=J[a+16>>2];gc[J[J[b>>2]+24>>2]](b);uc(c);b=J[a+ -4>>2]+1|0;J[a+4>>2]=b;d=J[a>>2];if((b|0)>2]){Mc(d,b,c,0);b=J[a+16>>2];gc[J[J[b>>2]+20>>2]](b)}if(J[c>>2]!=13)continue;break}}}function b7(a,b,c,d){var e=0,f=0;e=bc-16|0;bc=e;a:{if(!d)break a;J[d>>2]=0;f=!b;if(f|!c|((f?-1:J[b+8>>2])|0)!=1)break a;Cr(c,e+12|0,e+8|0,0,0);if(!J[e+12>>2]|!J[e+8>>2])break a;b:{c:{if(!a){a=nu(b);if(a)break c;a=0;break a}PM(a,b);if((a|0)!=(b|0))break c;a=b;b=wf(0,b);break b}if(b)J[b+16>>2]=J[b+16>>2]+1}J[d>>2]=b}bc=e+16|0;return a}function Vca(a,b,c,d){a=a|0;b=b| -0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;J[e+12>>2]=0;if(K[b+11|0]>>>7|0)b=J[b>>2];J[e+8>>2]=J[694731];J[694731]=0;d=vg(b,e+12|0,d);f=J[694731];J[694731]=J[e+8>>2];J[e+8>>2]=f;a:{b:{if(J[e+8>>2]!=68){f=J[e+12>>2];if((f|0)==(b|0))break b;if(c)J[c>>2]=f-b;bc=e+16|0;a=d;break a}Vr(a);B()}gy(a);B()}return a|0}function VFa(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2364292;a:{b=J[a+4>>2];if(b){J[695492]=0;VB(b);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[b+8>>2];if(c){d=c;e=J[b+12>>2];if((e|0)!=(c|0)){while(1){d= -e-20|0;if(H[e-9|0]<0)qc(J[d>>2]);e=d;if((e|0)!=(c|0))continue;break}d=J[b+8>>2]}J[b+12>>2]=c;qc(d)}qc(b)}qc(a);return}ea(0)|0;yc();B()}function wxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b+12>>2];if((c|0)>J[a+56>>2]){hd(208712,0);return-1}a:{b:{d=J[a+84>>2]-4|0;if(d)if((d|0)==12)break b;else break a;H[(J[J[a+64>>2]+24>>2]+P(c,488)|0)+417|0]=K[b+17|0];return 0}e=-1;a=J[a+52>>2];if(!a|J[a+40>>2]>0)break a;H[(J[J[a+32>>2]+24>>2]+P(c,488)|0)+417|0]=K[b+17|0];e=0}return e|0}function u3a(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;var h=0,i=0,j=0,k=0,l=0;h=bc-16|0;bc=h;i=J[a+452>>2];j=J[i+16>>2];k=J[f>>2];J[h+12>>2]=0;l=b;b=g-k|0;gc[J[J[a+472>>2]+4>>2]](a,l,c,d,J[i+12>>2],h+12|0,b>>>0>>0?b:j);gc[J[J[a+480>>2]+4>>2]](a,J[i+12>>2],(J[f>>2]<<2)+e|0,J[h+12>>2]);J[f>>2]=J[f>>2]+J[h+12>>2];bc=h+16|0}function YJa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(!a)return(b?-1:0)|0;if(!b)return 1;c=K[a|0];a:{if(!c)break a;while(1){d=K[b|0];if(!d){e=c;break a}if(!((c|0)==(d|0)|((c-65>>>0<26?c|32:c)|0)== -((d-65>>>0<26?d|32:d)|0))){e=c;break a}b=b+1|0;c=K[a+1|0];a=a+1|0;if(c)continue;break}}a=K[b|0];return(e-65>>>0<26?e|32:e)-(a-65>>>0<26?a|32:a)|0}function QY(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2305596;b=J[a+8>>2];if(b)while(1){d=J[J[a+12>>2]+(c<<2)>>2];if(d){gc[J[J[d>>2]+4>>2]](d);b=J[a+8>>2]}c=c+1|0;if(c>>>0>>0)continue;break}b=J[a+12>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+16>>2];if(b)qc(dd(b));b=J[a+20>>2];if(b)qc(dd(b));return a|0}ea(0)|0;yc();B()}function qob(a,b){a= -a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+428>>2]+8|0;g=J[b+32>>2];if(g){e=J[b+36>>2];d=f;while(1){c=J[e>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;H[d+4|0]=K[e+4|0];e=e+8|0;d=d+5|0;h=h+1|0;if(h>>>0>2])continue;break}}return ue(a,J[b>>2],P(g,5),f)|0}function dwb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[b+88>>2];c=J[d+28>>2];a:{if(c){c=c-1|0;J[d+28>>2]=c;if(c)break a}c=J[d+1144>>2];b:{if(!c)break b;e=J[d+1148>>2];if(!e)break b;gc[J[a+ -156>>2]](e,c)}c=J[d+1172>>2];c:{if(!c)break c;e=J[d+1176>>2];if(!e)break c;gc[J[a+156>>2]](e,c)}gc[J[a+156>>2]](d,1180)}gc[J[a+156>>2]](b,92);return 0}function bE(a,b){var c=0,d=0,e=0;a:{if(b>>>0<=31){if(b)break a;return 0}fa(204019,202110,198,212097);B()}while(1){b:{c:{if(H[a+16|0]&1){c=J[a+8>>2];e=c-1|0;J[a+8>>2]=e;if((c|0)>0){c=J[a+4>>2]>>>e&1;break c}c=Bg(a);if((c|0)>=0)break c;d=-1;break b}fa(202772,202110,203,212097);B()}d=d<<1|c;c=b>>>0>1;b=b-1|0;if(c)continue}break}return d}function Ygb(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=J[a+20>>2];a=(c+(J[a+16>>2]<<3)|0)-8|0;if(a>>>0>=c>>>0){while(1){e=(a-c>>4<<3)+c|0;d=J[e>>2];if((d|0)==(b|0)){f=e;break a}d=d&2147483647;f=(d|0)==(b|0)?e:f;if((a|0)!=(c|0)){d=b>>>0>d>>>0;c=d?e+8|0:c;a=d?a:e-8|0;if(c>>>0<=a>>>0)continue}break}if(f)break a}return 0}return J[f+4>>2]}function WFa(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2364292;a:{b=J[a+4>>2];if(b){J[695492]=0;VB(b);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=J[b+8>>2];if(c){d=c;e=J[b+12>>2];if((e| -0)!=(c|0)){while(1){d=e-20|0;if(H[e-9|0]<0)qc(J[d>>2]);e=d;if((e|0)!=(c|0))continue;break}d=J[b+8>>2]}J[b+12>>2]=c;qc(d)}qc(b)}return a|0}ea(0)|0;yc();B()}function To(a,b){a:{if((b|0)>=1024){a=a*8.98846567431158E307;if(b>>>0<2047){b=b-1023|0;break a}a=a*8.98846567431158E307;b=((b|0)>=3069?3069:b)-2046|0;break a}if((b|0)>-1023)break a;a=a*2.0041683600089728E-292;if(b>>>0>4294965304){b=b+969|0;break a}a=a*2.0041683600089728E-292;b=((b|0)<=-2960?-2960:b)+1938|0}x(0,0);x(1,b+1023<<20);return a*+z()}function M7a(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;if(f>>>0<=254){g=255-f|0;H[a+2|0]=(P(g,K[a+2|0])+255>>>8)+(P(b,f)+255>>>8);H[a+1|0]=(P(K[a+1|0],g)+255>>>8)+(P(c,f)+255>>>8);H[a|0]=(P(K[a|0],g)+255>>>8)+(P(d,f)+255>>>8);H[a+3|0]=(P(K[a+3|0],g)+255>>>8)+(P(e,f)+255>>>8);return}H[a+1|0]=c;H[a+2|0]=b;H[a+3|0]=e;H[a|0]=d}function xSa(a){a=a|0;var b=0;J[a>>2]=2204956;a:{b=J[a+2456>>2];b:{if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break b}b=J[a+2460>>2];if(b){J[695492]=0;Gc(b);b= -J[695492];J[695492]=0;if((b|0)==1)break b}b=J[a+2468>>2];if(!b)break a;J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(a)}function nnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1346458452){Dc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];H[b+34|0]=K[c+34|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];d=J[c+44>>2];J[b+44>>2]=d;if(d){e=b;d=P(d,36);b=gc[J[a+152>>2]](d)|0;J[e+48>>2]=b;if(b){tc(b,J[c+48>>2],d);return 0}Dc(a,1,0,0);a=1}else a=0;return a|0}function mCa(a){a= -a|0;var b=0,c=0,d=0;c=rc(128);J[695492]=0;b=$(5088,c|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a>>2]=0;md(a,b);J[695492]=0;_(5089,b|0);c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[695492]=0;la(5090,b|0,0,32,5091,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}b=Z()|0;vc(a);ba(b|0);B()}return}a=Z()|0;qc(c);ba(a|0);B()}function _Fa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;d=c+4|0;gc[J[J[a>>2]+12>>2]](d,a,b);J[695492]=0;a=$(3035,d|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){if(!a)break a;J[695492]= -0;da(2869,d|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break a}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0}function Zvb(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;if(K[b+28|0])b=c;else{c=J[b+56>>2];d=J[b+52>>2];e=J[b+48>>2];f=J[b+44>>2];g=J[b+40>>2];h=J[b+36>>2];i=J[b+32>>2];j=1;b=J[b+60>>2]}J[a+2224>>2]=b;J[a+2220>>2]=c;J[a+2216>>2]=d;J[a+2212>>2]=e;J[a+2208>>2]=f;J[a+2204>>2]=g;J[a+2200>>2]=h;J[a+2196>>2]=i;H[a+309|0]=j;return 0}function zub(a){a= -a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+3|0];c=c+4|0;b=(J[a+584>>2]<<2)+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function mz(a){a=a|0;J[a+72>>2]=0;J[a+76>>2]=1048576;J[a+64>>2]=0;J[a+68>>2]=1048576;J[a+56>>2]=-1;J[a+60>>2]=2146435071;J[a+48>>2]=-1;J[a+52>>2]=2146435071;J[a+8>>2]=0;J[a+40>>2]=0; -J[a+44>>2]=1048576;J[a+32>>2]=0;J[a+36>>2]=1048576;J[a+24>>2]=-1;J[a+28>>2]=2146435071;J[a+16>>2]=-1;J[a+20>>2]=2146435071;J[a+4>>2]=a;J[a>>2]=a;return a|0}function m7a(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=P(e,f)+255|0;if(b>>>0>=256){c=K[a+3|0];b=b>>>8|0;H[a+3|0]=c+b-(P(b,c)+255>>>8);d=K[a+2|0];f=P(b,c-d|0)+255>>>8|0;e=d;d=255-b|0;H[a+2|0]=f+(P(e,d)+255>>>8|0);e=K[a+1|0];H[a+1|0]=(P(b,c-e|0)+255>>>8)+(P(d,e)+255>>>8);e=a;a=K[a|0];H[e|0]=(P(b,c-a|0)+255>>>8)+(P(a,d)+255>>>8)}}function i_(a){a:{if(J[a>> -2]!=4)break a;a=J[a+8>>2];if(!Ec(a,815133))break a;if(!Ec(a,815356))return 1;if(!Ec(a,815730))return 2;if(!Ec(a,815983))return 3;if(!Ec(a,816067))return 4;if(!Ec(a,816272))return 5;if(!Ec(a,816492))return 6;if(!Ec(a,816820))return 7;if(!Ec(a,817084))return 8;if(Ec(a,817412))break a;return 9}return 0}function Xvb(a,b){a=a|0;b=b|0;var c=0;if(K[b+28|0]){H[a+311|0]=0;b=J[a+2232>>2];a:{if(!b)break a;c=J[a+2236>>2];if(!c)break a;gc[J[a+156>>2]](c,b)}J[a+2232>>2]=0;J[a+2236>>2]=0;return 0}H[a+311|0]=1;c= -J[b+32>>2];J[a+2232>>2]=c;if(c){c=gc[J[a+152>>2]](c)|0;J[a+2236>>2]=c;if(!c){Dc(a,1,0,0);return 1}tc(c,J[b+36>>2],J[b+32>>2])}return 0}function I2a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;a:{b:{if(c){c=a+72|0;if(X1(c,b))break b;e=d+4|0;HK(e);J[695492]=0;c=aa(2827,c|0,e|0)|0;e=J[695492];J[695492]=0;if((e|0)==1)break a;if(H[d+15|0]<0)qc(J[d+4>>2]);if(c)break b}Z1(a+72|0,b);J[a+48>>2]=a+8}bc=d+16|0;return}a=Z()|0;if(H[d+15|0]<0)qc(J[d+4>>2]);ba(a|0);B()}function B8(a){a=a|0;var b=0,c=0,d= -0,e=0,f=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){f=K[d|0];d=d+1|0;b=128}b=b&255;H[c|0]=(b&f)!=0;b=b>>>1|0;c=J[a+584>>2]+c|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function zIa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+16>>2];c=d+24|0;a:{if((c|0)==(b|0))break a;f=K[b+11|0];e=f<<24>>24;if(H[d+35|0]>=0){if((e|0)>=0){e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>> -2]=J[b+8>>2];break a}yf(c,J[b>>2],J[b+4>>2]);break a}d=c;c=(e|0)<0;Df(d,c?J[b>>2]:b,c?J[b+4>>2]:f)}a=J[J[a+16>>2]+40>>2];if(a)rH(a,b)}function spb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if((c|0)!=2){Dc(a,1028,0,0);return 1028}c=0;b:{if(!K[a+112|0])break b;c=gc[J[b+4>>2]](a,b,e)|0;if(c)break b;a=J[e>>2];H[a+32|0]=K[d|0];H[a+33|0]=K[d+1|0];c=0}return c|0}Dc(a,1029,0,0);return 1029}function MMa(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0,f=0,g=0,h=0,i=0;d=O[b>>3];O[a+8>>3]=d;e=O[b+8>>3];O[a+16>>3]=e;f=O[b+16>>3];O[a+24>>3]=f;g=O[b+24>>3];O[a+32>>3]=g;h=O[b+32>>3];O[a+40>>3]=h;i=O[b+40>>3];c=1/(d*g-f*e);O[a+80>>3]=d*c;O[a+72>>3]=c*-f;O[a- -64>>3]=c*-e;O[a+56>>3]=g*c;O[a+48>>3]=i;O[a+96>>3]=c*(e*h-i*d);O[a+88>>3]=c*(f*i-h*g)}function Bc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=K[b|0];if(e){f=b;while(1){g=P(g,17)+(e&255)|0;e=K[f+1|0];f=f+1|0;if(e)continue;break}}a:{e=J[J[a+8>>2]+((g>>>0)%((J[a+12>>2]<<1)-1>>>0)<< -2)>>2];if(e)while(1){if(!Ec(b,J[e>>2]))break a;e=J[e+24>>2];if(e)continue;break}J[c>>2]=5;return c|0}return hf(e+8|0,J[a>>2],c,d)|0}function $c(a){var b=0,c=0,d=0;a:{b=J[a+8>>2];if(b)while(1){c=J[b>>2];d=J[J[a>>2]+16>>2];J[695492]=0;da(d|0,b|0,1);d=J[695492];J[695492]=0;if((d|0)==1)break a;qc(b);b=c;if(b)continue;break}J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a}na(ea(0)|0)|0;J[695492]=0;ka(4893);c=J[695492];J[695492]=0;if((c|0)!=1)return a;ea(0)|0;yc();B()}function $Fa(a,b){a=a|0;b=b|0;var c=0, -d=0;c=bc-16|0;bc=c;d=c+4|0;gc[J[J[a>>2]+12>>2]](d,a,b);J[695492]=0;a=$(3035,d|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){if(a)break a;J[695492]=0;$(3039,d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)break a}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0}function eJ(a){a=a|0;var b=0,c=0;J[a+104>>2]=0;J[a>>2]=825908;b=J[a+208>>2];if(b)qc(b);fJ(a+176|0);b=J[a+180>>2];c=J[a+184>>2];a:{if((b|0)==(c|0))break a;while(1){qc(J[b>>2]);b=b+4|0;if((c|0)!=(b|0))continue; -break}b=J[a+184>>2];c=J[a+180>>2];if((b|0)==(c|0))break a;J[a+184>>2]=b+((c-b|0)+3&-4)}b=J[a+176>>2];if(b)qc(b);return a|0}function Sub(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>>2];a:{if(!b)break a;c=J[a+644>>2];d=gc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a|0];H[c+1|0]=K[a+1|0];d=K[a+2|0];H[c+3|0]=0;H[c+2|0]=d;a=a+3|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function Rub(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>> -2];a:{if(!b)break a;c=J[a+644>>2];d=gc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a+2|0];H[c+1|0]=K[a+1|0];d=K[a|0];H[c+3|0]=0;H[c+2|0]=d;a=a+3|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function Qub(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>>2];a:{if(!b)break a;c=J[a+644>>2];d=gc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a+2| -0];H[c+1|0]=K[a+1|0];d=K[a|0];H[c+3|0]=0;H[c+2|0]=d;a=a+4|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function Hh(a){var b=0;a:{b=J[a+5820>>2];b:{if((b|0)==16){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];I[a+5816>>1]=0;b=0;break b}if((b|0)<8)break a;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];I[a+5816>>1]=K[a+5817|0];b=J[a+5820>>2]-8|0}J[a+5820>>2]=b}}function Et(a){var b=0,c=0,d=0;c=bc-16|0;bc=c;if(a)a:{b= -gc[J[659447]](44)|0;if(!b){J[c>>2]=34134;Cc(0,0,0,0,0,30,2,3,34134,0,0,0,32863,c);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+40>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;if(!Ht(b,a)){d=b;break a}Xj(b)}bc=c+16|0;return d}function xIa(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;g=J[a+16>>2];a=J[g+40>>2];if(!(!a|J[g+48>>2])){g=J[a>>2];if(g){h=c;b=b+1|0;c=J[Ni(J[g+28>>2],b)+12>>2];O[h>>3]=O[c+48>>3]-O[c+32>>3];a=J[Ni(J[J[a>>2]+ -28>>2],b)+12>>2];O[d>>3]=O[a+56>>3]-O[a+40>>3];J[e>>2]=0;J[e+4>>2]=1079115776;J[f>>2]=0;J[f+4>>2]=1079115776}}}function wla(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;I[a+14>>1]=65535;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;J[695492]=0;b=aa(6411,a|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)return b|0;b=Z()|0;av(a);ba(b|0);B()}function uS(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=O[b+ -16>>3];c=O[a+16>>3];d=c>3]=d;e=O[a+32>>3];c=O[b+32>>3];if(!(!(e>c)&(!(c>0)|e!=0))){O[a+32>>3]=c;e=c}f=O[a+40>>3];c=O[b+40>>3];if(!(!(f0)|f!=0))){O[a+40>>3]=c;f=c}g=O[a+8>>3];c=O[b+8>>3];if(g!=0&!(c>3]=c;O[a+24>>3]=d-c;O[a+48>>3]=f-e}function j8(a){var b=0,c=0;c=L[a+2322>>1];a:{b:{if(c>>>0>L[a+2324>>1])break b;while(1){if(K[a+497|0])break b;I[a+2322>>1]=c;b=c&65535;c:{if(!b)break c;b=$g(a,b);if(!b|K[b+30|0]|(!K[b+31|0]|!K[b+32|0]))break c;b=Lh(a,b,0);if(b)break a}c= -c+1|0;if(L[a+2324>>1]>=(c&65535)>>>0)continue;break}}b=0;H[a+498|0]=K[a+497|0]?9:0}return b}function g_(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;d=J[a+80>>2];a:{if(d&2|(d&4?0:c)|!(d&32?c:1))break a;if(f=0,g=JA(J[J[a>>2]+36>>2],a+88|0,e+12|0),h=J[e+12>>2],h?f:g)break a;d=a+24|0;c=J[a+16>>2];if(c){c=sd(c,823353);c=c?0:J[a+84>>2]}else c=0;pI(b,d,c,O[a+48>>3],O[a+56>>3],O[a+64>>3],O[a+72>>3])}bc=e+16|0}function cqb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=J[J[J[a+544>>2]+88>> -2]+36>>2];e=J[a+644>>2];c=J[a+636>>2];J[a+644>>2]=c;J[a+636>>2]=e;d=J[a+672>>2];if((d|0)>2]){b=J[a+656>>2];f=(b<<2)+e|0;while(1){J[c>>2]=J[f>>2];b=b+1|0;g=b>>>0>>0;f=g?f+4|0:e;b=g?b:0;c=c+4|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function cUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(b>>>0>2147482623)break a;e=b;d=J[a+1032>>2];if(!((d|0)<=(b|0)&(b+2|0)<=(J[a+1036>>2]+d|0))){d=0;if(Xg(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;b=Yd(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=b;if((b| -0)<2)break a;d=J[a+1032>>2]}a=(e-d|0)+a|0;J[c>>2]=K[a+8|0]<<8|K[a+9|0];d=1}return d|0}function M$(a){var b=0,c=0,d=0;if(!a)return-1;b=J[a+64>>2];a:{if(!b)break a;c=J[a+68>>2];c=c?c:b;if(J[c+4>>2]!=1)break a;b:switch(J[a+16>>2]-2|0){case 0:case 2:break a;default:break b}a=0;b=J[c+44>>2];if(b)while(1){a=a+1|0;b=J[b+24>>2];if(b)continue;break}b=c+48|0;while(1){d=a;a=a+1|0;b=J[b>>2];if(b)continue;break}}return d}function tF(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=bc-240|0;bc=h;J[h>>2]=a;i=1;a:{if((d| -0)<2)break a;k=0-b|0;f=a;while(1){f=f+k|0;j=d-2|0;g=f-J[(j<<2)+e>>2]|0;if((uq(a,g,c)|0)>=0)if((uq(a,f,c)|0)>=0)break a;l=g;g=(uq(g,f,c)|0)>=0;f=g?l:f;J[(i<<2)+h>>2]=f;i=i+1|0;d=g?d-1|0:j;if((d|0)>1)continue;break}}vR(b,h,i);bc=h+240|0}function sx(a){var b=0,c=0,d=0;a:{if(!a)break a;b=K[a|0];if(!b)break a;d=(b|0)==45;b=d+a|0;a=H[b|0];b:{if(!(K[((a&248)>>>3|0)+254784|0]>>>(a&7)&1))break b;while(1){if(c<<16>>16>3274){c=32767;break b}c=K[a+254816|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+254784| -0]>>>(a&7)&1)continue;break}}c=d?0-c|0:c}return c<<16>>16}function gq(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{e=J[J[a+4>>2]+8>>2]&3;if(!e){c=Fi(0,0);d=J[J[a>>2]+12>>2];if(d)if(gc[d|0](a,c)|0)break b;f=a,g=Zi(c)+8|0,J[f+12>>2]=g;yn(c)}if(ki(b,J[a+12>>2]))break b;if(ki(b,J[a+8>>2]))break b;d=0;if(e)break a;if(xn(b,c,J[a+12>>2]-8|0))break b;If(c);return 0}d=-1;if(!c)break a;If(c)}return d}function V2a(a,b){a=a|0;b=b|0;var c=0,d=0;a:{c=J[a+4>>2];if((c|0)!=J[a+8>>2]){b:{if(H[b+11|0]>=0){d=J[b+4>>2];J[c>>2]= -J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break b}d=J[b+4>>2];b=J[b>>2];J[695492]=0;ca(15,c|0,b|0,d|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a+4>>2]=c+12;return}TK(a,b);return}b=Z()|0;J[a+4>>2]=c;ba(b|0);B()}function MJa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;b=rc(8);J[695492]=0;e=$(3184,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){c=QA(J[689612]);if(c){if(J[a+44>>2]>0){b=0;while(1){f=d+8|0;cf(e,f,Rh(c,J[J[a+32>>2]+(b<<2)>>2],f,8));b=b+1|0;if((b|0)>2])continue;break}}Tn(c)}bc= -d+16|0;return e|0}a=Z()|0;qc(b);ba(a|0);B()}function D1(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;J[c+12>>2]=0;a:{b:{d=K[b+11|0];e=d<<24>>24<0;f=e?J[b>>2]:b;if(f){b=e?J[b+4>>2]:d;if(b)break b}b=Oj(0,18061);J[a+4>>2]=b;break a}Ep(f,b,c+12|0,c+8|0,0);d=J[c+12>>2];b=Oj(d,18061);J[a+4>>2]=b;if(!d)break a;qc(d);b=J[a+4>>2]}if(b)J[a+8>>2]=0;bc=c+16|0;return(b|0)!=0|0}function voa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+12>>2];c=d+768|0;a:{if((c|0)==(b|0))break a;f=K[b+11|0];e=f<<24>>24;if(H[d+ -779|0]>=0){if((e|0)>=0){e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];break a}yf(c,J[b>>2],J[b+4>>2]);break a}d=c;c=(e|0)<0;Df(d,c?J[b>>2]:b,c?J[b+4>>2]:f)}H[J[a+12>>2]+928|0]=1;return 0}function toa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+12>>2];c=d+756|0;a:{if((c|0)==(b|0))break a;f=K[b+11|0];e=f<<24>>24;if(H[d+767|0]>=0){if((e|0)>=0){e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];break a}yf(c,J[b>>2],J[b+4>>2]);break a}d=c;c=(e|0)<0;Df(d,c?J[b>>2]:b,c?J[b+4>>2]:f)}H[J[a+ -12>>2]+928|0]=1;return 0}function qo(a){var b=0,c=0,d=0,e=0;a:{if(J[a+12>>2]>0)break a;b:{c:{b=J[a>>2];d=J[a+8>>2];d:{if(b>>>0>=d>>>0)break d;while(1){c=1;e=b+1|0;J[a>>2]=e;e:switch(K[b|0]-9|0){case 50:break b;case 1:case 4:break c;case 17:break d;case 0:case 23:break e;default:break a}b=e;if((d|0)!=(b|0))continue;break}}c=3;break b}c=2}J[a+12>>2]=c}}function Os(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=bc-32|0;bc=e;a:{if(c)while(1){d=gc[J[J[a>>2]+12>>2]](a,b,c)|0;if(!d){a=Kc(e+8|0,2378736,2375204, -474,2384672,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}b=b+d|0;f=d+f|0;c=c-d|0;if(c)continue;break}bc=e+32|0;return f|0}B()}function ySa(a){a=a|0;var b=0;J[a>>2]=2204956;a:{b=J[a+2456>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+2460>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+2468>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}return a|0}ea(0)|0;yc();B()} -function uh(a,b,c){var d=0,e=0;d=c-1|0;a:{if(d>>>0>31|!(1<>2]=1;J[d+8>>2]=c;J[d+4>>2]=b;J[d>>2]=a;a=(P(a,c)+31|0)/32|0;J[d+12>>2]=a;a=gc[J[659405]](P(a,b)<<2)|0;if(!a)break a;J[d+40>>2]=a;Ao(d,0);wc(J[d+40>>2],0,P(J[d+12>>2],J[d+4>>2])<<2);e=d}return e}function MXa(a){a=a|0;var b=0,c=0;J[a+104>>2]=0;J[a>>2]=825908;b=J[a+208>>2];if(b)qc(b);fJ(a+176|0);b=J[a+180>>2];c=J[a+184>>2];a:{if((b|0)==(c|0))break a;while(1){qc(J[b>> -2]);b=b+4|0;if((c|0)!=(b|0))continue;break}b=J[a+184>>2];c=J[a+180>>2];if((b|0)==(c|0))break a;J[a+184>>2]=b+((c-b|0)+3&-4)}b=J[a+176>>2];if(b)qc(b);qc(a)}function D6(a){var b=0,c=0,d=0;a:{if(!a)break a;b=K[a|0];if(!b)break a;d=(b|0)==45;b=d+a|0;a=H[b|0];b:{if(!(K[((a&248)>>>3|0)+254784|0]>>>(a&7)&1))break b;while(1){if((c|0)>214748362){c=2147483647;break b}c=K[a+254816|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+254784|0]>>>(a&7)&1)continue;break}}c=d?0-c|0:c}return c}function oYa(a){a= -a|0;var b=0,c=0,d=0;if(a){c=J[a+4>>2];b=J[a+20>>2];a:{b:{if(b){if(!c)break a;d=J[b+80>>2];if(!d)break b;while(1){b=J[d+16>>2];if(b)while(1){if(b+20>>>0<=c>>>0&M[b+4>>2]>=c>>>0)break a;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}break b}if(!c)break a}gc[J[659451]](c)}gc[J[659451]](a)}}function iKa(a){a=a|0;var b=0,c=0,d=0;b=rc(16);c=J[a+4>>2];d=J[J[c>>2]+8>>2];J[695492]=0;c=$(d|0,c|0)|0;d=J[695492];J[695492]=0;a:{if((d|0)==1)break a;a=J[a+12>>2];J[b+12>>2]=a;J[b>>2]=2332784;J[b+ -4>>2]=c;J[695492]=0;a=aa(3376,a|0,4)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a;J[b+8>>2]=a;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function T6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+2748>>2]=b;d=J[b+28>>2];J[a+4>>2]=J[b+44>>2];J[a+8>>2]=J[b+48>>2];J[a+12>>2]=J[b+7720>>2];J[a+16>>2]=J[b+7724>>2];c=J[b+24>>2];J[a+2740>>2]=(K[J[J[b+36>>2]+388>>2]+20|0]?4:12)|d;d=a;a=(c&-2)==2;b=a|2;e=(c|0)==4?b:a;a=(c|0)==2;b=a?b:e;b=(c&-3)==1?b:b|4;J[d+2744>>2]=a?b|8:b;return 0}function JLa(a,b,c,d,e){a=a|0;b=b|0;c= -c|0;d=d|0;e=e|0;var f=0,g=0;f=rc(312);a=J[a+24>>2];g=J[e+12>>2];J[f+16>>2]=J[e+8>>2];J[f+20>>2]=g;g=J[e+4>>2];J[f+8>>2]=J[e>>2];J[f+12>>2]=g;J[f>>2]=2331112;J[a+4>>2]=J[a+4>>2]+1;e=f+40|0;J[f+300>>2]=e;J[f+36>>2]=d;J[f+32>>2]=c;J[f+28>>2]=b;J[f+24>>2]=a;J[f+304>>2]=b;J[f+296>>2]=e;return f|0}function Cqa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=bc-32|0;bc=d;a:{if(!K[a+49|0]){a=Kc(d+8|0,2380554,2374240,777,2421885,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a); -ba(b|0);B()}e=$i(a,1,J[a+216>>2],a+144|0);a=$i(a,1,J[a+220>>2],a+148|0);I[b>>1]=e-1;I[b+2>>1]=a-c;bc=d+32|0;return}B()}function mx(a){var b=0,c=0,d=0,e=0,f=0;qo(a);a:{if(J[a+12>>2]>0)break a;b=J[a>>2];d=b-1|0;e=J[a+8>>2];b:{c:{while(1){c=3;if(b>>>0>=e>>>0)break b;f=b;b=b+1|0;J[a>>2]=b;d:switch(K[f|0]-9|0){case 0:case 23:break a;case 17:break b;case 50:break c;case 1:case 4:break d;default:continue}break}c=2;break b}c=1}J[a+12>>2]=c}return d}function Xn(a,b){var c=0,d=0,e=0,f=0;c=J[a+8>>2];c=gc[J[J[c>> -2]+28>>2]](c)|0;a:{if((c|0)==-1)break a;d=J[a+8>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break a;e=J[a+8>>2];e=gc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break a;a=J[a+8>>2];a=gc[J[J[a>>2]+28>>2]](a)|0;if((a|0)==-1)break a;J[b>>2]=a|(d<<16|c<<24|e<<8);f=1}return f}function Tca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[d+12>>2]=0;if(K[b+11|0]>>>7|0)b=J[b>>2];J[d+8>>2]=J[694731];J[694731]=0;f=Mu(b,d+12|0);e=J[694731];J[694731]=J[d+8>>2];J[d+8>>2]=e;a:{b:{if(J[d+8>>2]!=68){e=J[d+12>> -2];if((e|0)==(b|0))break b;if(c)J[c>>2]=e-b;bc=d+16|0;break a}Vr(a);B()}gy(a);B()}return+f}function Bh(a,b,c){var d=0;d=J[a+20>>2];H[b|0]=K[(K[b|0]+a|0)+2348|0];b=(c+d>>>2|0)+24576|0;b=65536-(b>>>0>>0?b:c)|0;c=b+J[a+32>>2]|0;J[a+32>>2]=c;b=b+J[a+20>>2]|0;J[a+20>>2]=b;if(b>>>0>=32768)while(1){hv(a,1-(c>>>15|0)|0);c=J[a+32>>2]<<1&65534;J[a+32>>2]=c;b=J[a+20>>2]<<1&65534;J[a+20>>2]=b;if(b>>>0>32767)continue;break}}function zWa(a,b){a=a|0;b=b|0;var c=0,d=0;b=bc-16|0;bc=b;J[b+12>>2]=8;a:{c=J[a+104>> -2];if(!(gc[J[J[c>>2]+444>>2]](c,b+12|0)|0)){c=rc(8);J[695492]=0;J[c+4>>2]=8;J[c>>2]=349992;d=J[695492];J[695492]=0;if((d|0)==1)break a;a=J[a+104>>2];gc[J[J[a>>2]+448>>2]](a,c)|0;gc[J[J[c>>2]+4>>2]](c)}bc=b+16|0;return}a=Z()|0;qc(c);ba(a|0);B()}function z6(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<34|(K[b|0]!=66|K[b+1|0]!=77))break a;if(K[b+6|0]|K[b+7|0]|(K[b+27|0]|K[b+26|0]!=1))break a;b:switch(K[b+28|0]){case 0:case 1:case 4:case 8:case 16:case 24:case 32:break b;default:break a}if(K[b+29|0]|K[b+30|0]> -5|(K[b+31|0]|K[b+32|0]))break a;if(K[b+33|0])break a;d=1}return d}function jka(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=J[a+56>>2];c=J[a+60>>2];if((b|0)!=(c|0))while(1){d=J[b>>2];if(d)gc[J[J[a>>2]+32>>2]](a,d);b=b+8|0;if((c|0)!=(b|0))continue;break}}function hYa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;c=gc[J[659447]](12)|0;a:{if(!c){J[d>>2]=17038;Cc(0, -0,0,0,0,23,2,3,17038,0,0,0,32863,d);break a}b=J[a>>2];if(b)b=$e(b);else b=0;J[c>>2]=b;b=J[a+4>>2];if(b)b=$e(b);else b=0;J[c+4>>2]=b;a=J[a+8>>2];if(a){e=c,f=$e(a),J[e+8>>2]=f;break a}J[c+8>>2]=0}bc=d+16|0;return c|0}function VX(a){var b=0,c=0,d=0,e=0;c=J[a+4>>2];if((c|0)>=0){b=-1;a:{if((c|0)!=2147483647){d=J[a+8>>2];if((d|0)>(c|0)){b=J[a>>2];break a}b=c+1|0;e=b;b=d<<1;b=d-1073741824>>>0<3221225473?e:(b|0)<=(c|0)?e:b}J[a+8>>2]=b;b=Nd(J[a>>2],b,4);J[a>>2]=b;c=J[a+4>>2]}if((c|0)>0){Zc(b+4|0,b,c<<2);b= -J[a>>2]}J[b>>2]=46;J[a+4>>2]=J[a+4>>2]+1}}function Qcb(a){a=a|0;var b=0,c=0,d=0,e=0;d=bc-16|0;bc=d;c=J[a>>2];b=J[c+320>>2];c=gh(J[J[c+96>>2]+4>>2],240758);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;c=gc[b|0](c)|0;if(!c)break a;b=J[a>>2];e=gc[J[c>>2]](J[b+100>>2],J[b+304>>2]+P(J[b+4>>2],252)|0,d+12|0)|0;if(e)break a;J[J[a+40>>2]>>2]=J[d+12>>2]}bc=d+16|0;return e|0}function K8(a){a=a|0;var b=0,c=0;c=2;b=J[a>>2];if(!(!b|J[b>>2]!=1381173770)){yN(b);XD(b,J[b+528>>2]);a:{if(!K[b+2420|0])break a;H[b+2420| -0]=0;c=kl(b+2340|0);if(!c)break a;Dc(b,5,c,0)}if(K[b+2421|0])b:{c=go(b+2340|0);if(c){Dc(b,5,c,0);break b}H[b+2421|0]=0}J[b>>2]=0;b=J[a>>2];gc[J[b+156>>2]](b,3752);J[a>>2]=0;c=0}return c|0}function Jda(a){a=a|0;var b=0,c=0;b=J[a+584>>2];if(b){J[a+672>>2]=J[b+48>>2];J[a+668>>2]=J[b+52>>2];J[a+676>>2]=J[b+56>>2];c=J[b+80>>2];if(c)qc(c);b=J[b+96>>2];if(b)qc(b);b=J[a+584>>2];c=J[b+36>>2];if(c){qc(c);b=J[a+584>>2]}c=J[b+44>>2];if(c){qc(c);b=J[a+584>>2]}qc(b);J[a+584>>2]=0;Bq(a);return}fa(79439,70523,1092, -96410);B()}function Bq(a){J[a+556>>2]=559;J[a+548>>2]=560;J[a+540>>2]=561;J[a+520>>2]=562;J[a+516>>2]=563;J[a+512>>2]=1;J[a+528>>2]=1;J[a+580>>2]=564;J[a+576>>2]=565;J[a+572>>2]=566;J[a+568>>2]=567;J[a+564>>2]=566;J[a+560>>2]=568;J[a+552>>2]=569;J[a+544>>2]=570;J[a+536>>2]=563;J[a+532>>2]=562;J[a+524>>2]=563;J[a+12>>2]=J[a+12>>2]&-131329}function AXa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;d=J[b+116>>2];gc[J[J[d>>2]+20>>2]](d,b+124|0,c+4|0,0);b=J[a+104>>2];d=P(J[c+12>>2],255)+32768&16711680|(P(J[c+ -8>>2],255)+32768>>>8&65280|P(J[c+4>>2],255)+32768>>>16&255);J[c>>2]=d;gc[J[J[b>>2]+144>>2]](b,c)|0;a=J[a+104>>2];J[c>>2]=d;gc[J[J[a>>2]+160>>2]](a,c)|0;bc=c+16|0}function xha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;a:{b:{c:{if((a|0)!=(b|0)){f=J[694731];J[694731]=0;Wg();e=Mu(a,d+12|0);a=J[694731];if(!a)break c;if(J[d+12>>2]!=(b|0))break b;g=e;if((a|0)!=68)break a;break b}J[c>>2]=4;break a}J[694731]=f;if(J[d+12>>2]==(b|0))break a}J[c>>2]=4;e=g}bc=d+16|0;return+e}function c4(a,b, -c){var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=nd(a,0);a:{if(d)break a;f=e+12|0;g=Wd(a,f);d=J[e+12>>2];if(d)break a;b:{if((g+32767&65535)>>>0<2){Vi(a,f);d=J[e+12>>2];if(d)break a;if((g|0)==32769)break b}d=nd(a,0);if(d)break a}d=Ue(a,c);if(d)break a;b=Wc(J[a+32>>2],b,c);ne(a);d=((b|0)!=0)<<1}bc=e+16|0;return d}function bV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=kf(c);a:{e=b+8|0;b=e;b=J[J[b+12>>2]+((d>>>0)%M[b+8>>2]<<2)>>2];if(b)while(1){if(J[b+12>>2]==(d|0))if(!tj(b+16|0,c,-1))break a;b=J[b+8>>2];if(b)continue; -break}J[a>>2]=0;md(a,0);return}c=Ul(e,c);b=J[c+24>>2];if(!b){J[a>>2]=0;return}J[b+4>>2]=J[b+4>>2]+1;J[a>>2]=J[c+24>>2]}function Tub(a){a=a|0;var b=0,c=0;b=J[a+24>>2];b=b?b-20|0:0;c=J[b+48>>2];c=gc[J[J[c>>2]+12>>2]](c,J[b+52>>2],1,4096,0,0)|0;if(!c){if(K[b+56|0]){c=J[a>>2];J[c+20>>2]=43;gc[J[c>>2]](a)}c=J[a>>2];J[c+20>>2]=123;gc[J[c+4>>2]](a,-1);H[J[b+52>>2]]=255;H[J[b+52>>2]+1|0]=217;c=2}H[b+56|0]=0;J[b+24>>2]=c;J[b+20>>2]=J[b+52>>2];return 1}function up(a,b){var c=0,d=0;c=gc[J[659447]](16)|0;if(c){J[c+ -8>>2]=0;J[c+12>>2]=0;a=(a|0)<=0?256:a;J[c+4>>2]=a;d=P(a,24);a=gc[J[659447]](d)|0;J[c>>2]=a;if(!a){gc[J[659451]](c);return 0}wc(a,0,d);J[c+12>>2]=b;a:{if(!K[2758024]){a=zc(4);J[689507]=a;if(!a)break a;H[2758024]=1}if(!b)break a;J[b>>2]=J[b>>2]+1}}else c=0;return c}function rta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;J[d+4>>2]=45680;J[695492]=0;J[d+8>>2]=b;H[d+12|0]=!b;a=ga(55,a|0,d+4|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[d+4>>2]=45680;b=J[d+8>>2];if(!(!b|!K[d+12|0]))fg(b);bc=d+16| -0;return a|0}a=Z()|0;J[d+4>>2]=45680;b=J[d+8>>2];if(!(!b|!K[d+12|0]))fg(b);ba(a|0);B()}function mda(a,b){a=a|0;b=b|0;var c=0,d=Q(0),e=0;b=J[a+584>>2];if(b){J[b+92>>2]=0;J[b+64>>2]=0;J[b+68>>2]=8;c=J[b+96>>2];if(c)Hg(c,0,J[b+8>>2]);c=0;if(H[b+28|0]&1){d=N[a+132>>2];e=(L[a+136>>1]==3?Q(d*Q(2.5399999618530273)):d)>Q(150)?4:2;c=e-1|0}J[b+108>>2]=0;J[b+100>>2]=c;J[b+104>>2]=e;return 1}fa(89213,70523,710,95773);B()}function lY(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+56>> -2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;return a|0}function aza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;J[d+4>>2]=45680;J[695492]=0;J[d+8>>2]=b;H[d+12|0]=!b;a=ga(51,a|0,d+4|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[d+4>>2]=45680;b=J[d+8>>2];if(!(!b|!K[d+12|0]))fg(b);bc=d+16|0;return a|0}a=Z()|0;J[d+4>> -2]=45680;b=J[d+8>>2];if(!(!b|!K[d+12|0]))fg(b);ba(a|0);B()}function XS(a,b){a=a|0;b=b|0;J[a>>2]=0;J[a+4>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;I[a+24>>1]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=4;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+68>>2]=0;mz(a+72|0);wc(a+152|0,0,88);J[a+244>>2]=0;I[a+240>>1]=257;return a|0}function X5(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!a)break a;b:{c:{c=J[a+128>>2];b=J[c+28>>2];switch(b+2|0){case 0:break a; -case 2:break c;default:break b}}b=J[a+96>>2];d=J[J[b>>2]+32>>2];d:{if(!d){b=0;break d}b=gc[d|0](b,240194)|0;c=J[a+128>>2]}J[c+28>>2]=b?b:-2}if(!b)break a;b=J[b>>2];if(!b)break a;e=gc[b|0](a)|0}return e|0}function WBa(){var a=0,b=0;a:{a=J[689872];if(!a){a=rc(28);J[a+4>>2]=0;J[a+24>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2385980;J[a+16>>2]=0;J[a+20>>2]=0;J[695492]=0;b=a+8|0;J[b>>2]=2386024;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[689872]=a}Es(a+8|0);return}b= -Z()|0;qc(ed(a));ba(b|0);B()}function O2a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=bc-16|0;bc=f;a:{if(!c)break a;J[f+12>>2]=0;if(QL(f+12|0))break a;e=zc(32);J[e+24>>2]=1768386675;J[e+28>>2]=0;J[e+16>>2]=1768386662;J[e+20>>2]=0;J[e+8>>2]=1768386675;J[e+12>>2]=0;J[e>>2]=1768386662;J[e+4>>2]=0;a2(a,J[f+12>>2],e,b,c,d);qc(e);PL(J[f+12>>2])}bc=f+16|0}function Fo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=L[a+26>>1];a:{if((d|0)==8){a=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0];break a}c=K[(J[a+56>>2]+P(J[a+52>> -2],c)|0)+(P(b,d)>>3)|0];a=0;b:switch(d-1|0){case 3:a=4-((b|0)%2<<2)&252;a=(c&15<>>a|0;break a;case 0:break b;default:break a}a=7-((b|0)%8|0)|0;a=(c&1<>>a|0}return a&255}function oE(a){var b=0,c=0,d=0;a:{c=J[a+4>>2];if(!(c&16)){if(K[a+8|0]&7)return-1;if(!(K[a|0]&6))return-1;b=J[a+16>>2];d=J[a+24>>2]-b|0;if((d|0)>0){if((gc[J[J[a+52>>2]+4>>2]](J[a+56>>2],b,d)|0)!=(d|0))break a;c=J[a+4>>2];b=J[a+16>>2]}J[a+24>>2]=b;J[a+28>>2]=J[a+20>>2];J[a+4>>2]=c|32}return 0}J[a+8>>2]=J[a+8>>2]|2;return-1}function ez(a){a= -a|0;var b=0,c=0,d=0;a:{if(!J[a+8>>2])break a;b=J[a+4>>2];c=J[b>>2];d=J[J[a>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+8>>2]=0;if((a|0)==(b|0))break a;while(1){d=J[b+4>>2];if(H[b+63|0]<0)qc(J[b+52>>2]);c=J[b+36>>2];if(c){J[b+40>>2]=c;qc(c)}if(H[b+19|0]<0)qc(J[b+8>>2]);qc(b);b=d;if((b|0)!=(a|0))continue;break}}}function ZKa(a){a=a|0;var b=0,c=0;b=J[a+8>>2];a:{b:{if(b){a=J[b+36>>2];if((a|0)>=J[b+28>>2]){if(!gt(b))return-1;a=J[b+36>>2]}J[b+36>>2]=a+1;a=J[b+32>>2]+a|0;break b}c=-1;if(J[a+16>>2])break a;b=J[a+ -53312>>2];if((b|0)>=J[a+53308>>2]){if(!GA(a))break a;b=J[a+53312>>2]}J[a+53312>>2]=b+1;a=(a+b|0)+49208|0}c=K[a|0]}return c|0}function RBa(a,b){a=a|0;b=b|0;var c=0;a:{if((b|0)>0)while(1){Ql(a+16|0);J[a+60>>2]=0;J[a+64>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[695492]=0;c=a+52|0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1)break a;a=a+68|0;c=(b|0)>1;b=b-1|0;if(c)continue;break}return}b=Z()|0;lV(a);ba(b|0);B()}function O5(a,b){var c=0,d=0,e=0,f=0,g=0;e=bc-16|0;bc= -e;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+1>>>0)break d;f=J[a+20>>2];e:{if(f){d=e+14|0;if((gc[f|0](a,c,d,2)|0)!=2)break d;c=J[a+8>>2];break e}b=J[a>>2];if(!b)break c;d=b+c|0}g=K[d|0]|K[d+1|0]<<8;break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+2}bc=e+16|0;return g}function Hvb(a){a=a|0;var b=0;J[a>>2]=47612;b=J[a+976>>2];if(b)qc(GO(b));J[a>>2]=1032;J[695492]=0;$(13,a|0)|0;b=J[695492];J[695492]=0;a:{b:{if(!((b|0)!=1?b:0)){if((b|0)==1)break a;J[695492]=0;$(14,a|0)|0;b=J[695492];J[695492]=0;if(!b| -(b|0)==1)break b}ef(b,J[695493]);B()}if((b|0)==1)break a;qc(a);return}ea(0)|0;yc();B()}function zeb(a){a=a|0;var b=0,c=0;a:{b=J[a+436>>2];b:{if(!b){if(!BL(a))break b;b=J[a+436>>2]}c=J[J[a+460>>2]+20>>2];if((c+208|0)==(b|0)){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=100;gc[J[J[a>>2]+4>>2]](a,3);J[a+436>>2]=0;break a}if(gc[J[J[a+24>>2]+20>>2]](a,c)|0)break a}return 0}a=J[a+460>>2];J[a+20>>2]=J[a+20>>2]+1&7;return 1}function atb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){d=J[a+644>>2];b=d;while(1){c=K[b| -0]|K[b+1|0]<<8;H[d|0]=((c<<8|c>>>8)&65535)>>>8;c=K[b+2|0]|K[b+3|0]<<8;H[d+1|0]=((c<<8|c>>>8)&65535)>>>8;c=K[b+4|0]|K[b+5|0]<<8;H[d+2|0]=((c<<8|c>>>8)&65535)>>>8;b=b+6|0;d=d+3|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function _d(a,b,c,d,e,f,g){var h=0;h=e;d=(d|0)>=255?255:d;e=((d|0)>0?d:0)<<2;d=J[a>>2];b=J[a+20>>2]+((b>>>0>=255?255:b)<<2)|0;J[h>>2]=K[J[e+J[a+4>>2]>>2]+(d+J[b>>2]|0)|0];c=(c|0)>=255?255:c;c=((c|0)>0?c:0)<<2;J[f>>2]=K[(d+J[b>>2]|0)+(J[e+J[a+12>>2]>>2]+J[c+J[a+16>>2]>>2]>> -16)|0];J[g>>2]=K[J[c+J[a+8>>2]>>2]+(d+J[b>>2]|0)|0]}function y7a(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+2|0];H[a+2|0]=f+b-(P(b,f)+255>>>8);b=K[a+1|0];H[a+1|0]=b+c-(P(b,c)+255>>>8);b=K[a+3|0];H[a+3|0]=b+e-(P(b,e)+255>>>8);b=a;a=K[a|0];H[b|0]=a+d-(P(a,d)+255>>>8)}}function xsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){e=J[a+2300>>2];d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=K[d| -0];if(!((c|0)==L[e+836>>1]?K[e+56|0]:0))H[b+3|0]=255;f=J[a+2296>>2];if(f)c=gc[f|0](c&255)|0;H[b+2|0]=c;H[b+1|0]=c;H[b|0]=c;b=b+4|0;d=d+1|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function vR(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=bc-256|0;bc=f;a:{if((c|0)<2)break a;h=(c<<2)+b|0;J[h>>2]=f;if(!a)break a;while(1){e=a>>>0>=256?256:a;tc(J[h>>2],J[b>>2],e);d=0;while(1){g=(d<<2)+b|0;d=d+1|0;tc(J[g>>2],J[(d<<2)+b>>2],e);J[g>>2]=J[g>>2]+e;if((c|0)!=(d|0))continue;break}a=a-e|0;if(a)continue;break}}bc= -f+256|0}function rgb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+10|0;if(c>>>0>M[b+160>>2])ge(b,8);d=K[a+9|0]|K[a+8|0]<<8;e=a;a=K[a+3|0]|K[a+2|0]<<8;if(!(M[b+160>>2]>=e+a>>>0&(d<<1)+10>>>0<=a>>>0))ge(b,8);if(!(!d|J[b+164>>2]<=0))while(1){if(M[b+172>>2]<=(K[c+1|0]|K[c|0]<<8)>>>0)ge(b,16);c=c+2|0;d=d-1|0;if(d)continue;break}return 0}function ntb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+(b<<2)|0;b=c+(b<<3)|0;c=0;while(1){H[b+7|0]=0;e=K[d+3|0];H[b+5|0]=0;H[b+6|0]=e;e= -K[d+2|0];H[b+3|0]=0;H[b+4|0]=e;e=K[d+1|0];H[b+1|0]=0;H[b+2|0]=e;H[b|0]=K[d|0];b=b-8|0;d=d-4|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function foa(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;var h=0;f=bc-16|0;bc=f;g=J[a+12>>2];if(J[g+932>>2]!=8){J[f+12>>2]=J[b>>2];J[f+8>>2]=J[c>>2];J[f+4>>2]=1;b=g+832|0;c=g+752|0;h=_t(b,c);if(!h){hn(b,c);O[g+912>>3]=O[g+864>>3]}oz(g+944|0,f+12|0,f+8|0,f+4|0,d,e,!h,g);H[J[a+12>>2]+928|0]=0}bc=f+16|0;return 0}function bFa(a,b){a=a|0;b=b|0; -var c=0,d=0,e=0;d=J[a+44>>2];c=J[a+24>>2];if(d>>>0>>0){J[a+44>>2]=c;d=c}c=J[a+12>>2];e=-1;a:{if(c>>>0<=M[a+8>>2])break a;if((b|0)==-1){J[a+16>>2]=d;J[a+12>>2]=c-4;return 0}if(!(K[a+48|0]&16)){e=-1;if(J[c-4>>2]!=(b|0))break a}J[a+16>>2]=d;d=a;a=c-4|0;J[d+12>>2]=a;J[a>>2]=b;e=b}return e|0}function Pvb(a){a=a|0;var b=0;J[a>>2]=47612;b=J[a+976>>2];if(b)qc(GO(b));J[a>>2]=1032;J[695492]=0;$(13,a|0)|0;b=J[695492];J[695492]=0;a:{b:{if(!((b|0)!=1?b:0)){if((b|0)==1)break a;J[695492]=0;$(14,a|0)|0;b=J[695492]; -J[695492]=0;if(!b|(b|0)==1)break b}ef(b,J[695493]);B()}if((b|0)==1)break a;return a|0}ea(0)|0;yc();B()}function Nr(a,b){var c=0,d=0;c=-1;d=J[a+8>>2];a:{if(d&7)break a;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2])){J[a+8>>2]=d|4;return-1}c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break b}a=jd(a,1);if((a|0)==-1)break a}c=0;if(!b)break a;H[b|0]=a}return c}function Cub(a){a=a|0;var b=0,c=0,d=0;b=J[a+24>>2];c=J[b+4>>2];a:{if((c|0)==4096)break a; -d=J[b+48>>2];if(gc[J[J[d>>2]+16>>2]](d,J[b+52>>2],1,4096-c|0)|0)break a;c=J[a>>2];J[c+20>>2]=38;gc[J[c>>2]](a)}c=J[b+48>>2];gc[J[J[c>>2]+32>>2]](c)|0;b=J[b+48>>2];if(gc[J[J[b>>2]+40>>2]](b)|0){b=J[a>>2];J[b+20>>2]=38;gc[J[b>>2]](a)}}function C7a(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){b=K[a+2|0]+b|0;H[a+2|0]=b>>>0>=255?255:b;b=K[a+1|0]+c|0;H[a+1|0]=b>>>0>=255?255:b;b=K[a+3|0]+e|0;H[a+3|0]=b>>> -0>=255?255:b;b=a;a=K[a|0]+d|0;H[b|0]=a>>>0>=255?255:a}}function zi(a,b){var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;J[c+8>>2]=a;e=J[b+20>>2];a=e+((gc[J[b+12>>2]](c+8|0)>>>0)%M[b+4>>2]<<2)|0;d=J[a>>2];a:{if(!d)break a;f=e-4|0;while(1){if(gc[J[b+16>>2]](d,c+8|0)|0)break a;a=a-4|0;if(e>>>0>a>>>0)a=(J[b+4>>2]<<2)+f|0;d=J[a>>2];if(d)continue;break}}bc=c+16|0;a=J[a>>2];return a?a+4|0:0}function xj(a,b){var c=0,d=0,e=0,f=0;a:{d=Ve(a);e=K[b+11|0];f=e<<24>>24;c=0;b:{if((((f|0)<0?J[b+4>>2]:e)|0)!=(d|0))break b;c:switch(d+ -1|0){case 0:J[695492]=0;_(2804,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B();default:c=0;if(gd((f|0)<0?J[b>>2]:b,a,d))break b;break;case 1:break c}c=1}return c}ea(0)|0;yc();B()}function waa(a){a=a|0;var b=0,c=0,d=0,e=0;e=J[a+60>>2];a:{if(e)break a;b=J[a+972>>2];if(!b)break a;c=J[a+356>>2];b:{if((c|0)>0){while(1){b=J[J[a+972>>2]+(d<<2)>>2];if(b){gc[J[J[b>>2]+4>>2]](b);c=J[a+356>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}b=J[a+972>>2];if(!b)break b}qc(b)}J[a+356>>2]=0;J[a+972>>2]=0}return!e|0} -function kT(a){var b=0,c=0,d=0,e=0;d=bc-16|0;bc=d;c=J[a+100>>2];b=1;a:{if((c|0)==-1)break a;e=J[a+60>>2];b=0;if(e>>>0>=0-c>>>0)break a;b=((c+e|0)-1>>>0)/(c>>>0)|0}b:{if(L[a+138>>1]!=2)break b;c=L[a+98>>1];b=Dzb(c,0,b,0);e=fc;if(!c|!e)break b;b=J[a>>2];a=J[a+628>>2];J[d>>2]=70035;Nc(a,b,73480,d);b=0}bc=d+16|0;return b}function iB(a,b,c,d,e,f){var g=0;g=bc-32|0;bc=g;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[g+24>>2]=f;J[g+20>>2]=e;J[g+16>>2]=d;Cc(0,0,0,a,0,1,b,3,d,f,0,e,c,g+16| -0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[g+8>>2]=f;J[g+4>>2]=e;J[g>>2]=d;Cc(0,0,0,0,0,1,b,3,d,f,0,e,c,g)}bc=g+32|0}function el(a,b){var c=0,d=0,e=0,f=0;a:{d=Qc(b);e=K[a+11|0];f=e<<24>>24;c=0;b:{if((((f|0)<0?J[a+4>>2]:e)|0)!=(d|0))break b;c:switch(d+1|0){case 0:J[695492]=0;_(3287,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B();default:c=0;if(Wc((f|0)<0?J[a>>2]:a,b,d))break b;break;case 1:break c}c=1}return c}ea(0)|0;yc();B()}function dl(a,b){var c=0,d=0,e=0,f=0;a:{d=Ve(b); -e=K[a+11|0];f=e<<24>>24;c=0;b:{if((((f|0)<0?J[a+4>>2]:e)|0)!=(d|0))break b;c:switch(d+1|0){case 0:J[695492]=0;_(2804,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B();default:c=0;if(gd((f|0)<0?J[a>>2]:a,b,d))break b;break;case 1:break c}c=1}return c}ea(0)|0;yc();B()}function co(a,b,c,d){var e=0,f=0,g=0,h=0;e=bc-32|0;bc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;f=J[a>>2];if(f){g=J[f+84>>2];h=J[f+108>>2]==-554844497?J[f+124>>2]:0}f=J[a+4>>2];J[e+20>>2]=0;J[e+16>>2]=d;Cc(h,g,f,a,0,1,b,1, -d,0,0,0,c,e+16|0);break a}J[e+4>>2]=0;J[e>>2]=d;Cc(0,0,0,0,0,1,b,1,d,0,0,0,c,e)}bc=e+32|0}function cWa(a){a=a|0;var b=0,c=0;b=rc(20);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[695492]=0;a=$(c|0,a|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;J[695492]=0;J[b+4>>2]=a;J[b>>2]=2331012;a=J[695492];J[695492]=0;if((a|0)==1)break a;J[b>>2]=827224;J[b+16>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function ZT(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2407140;b=J[a+68>>2];J[a+68>>2]=0;a:{if(!b)break a; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}_c(a+52|0);_c(a+40|0);_c(a+28|0);return ed(a)|0}function VB(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];c=J[a+12>>2];a:{if((b|0)==(c|0))break a;while(1){d=J[b+12>>2];if(d){qc(d);J[b+12>>2]=0}b=b+20|0;if((c|0)!=(b|0))continue;break}b=J[a+8>>2];c=J[a+12>>2];if((b|0)==(c|0))break a;while(1){d=c-20|0;if(H[c-9|0]<0)qc(J[d>>2]);c=d;if((c| -0)!=(b|0))continue;break}}J[a+12>>2]=b}function Aaa(a){a=a|0;var b=0,c=0,d=0;c=bc-16|0;bc=c;b=J[a+584>>2];if(b){if(H[b+124|0]&1){kl(b- -64|0);J[b+124>>2]=0}a:{if(H0(b- -64|0,J[b+120>>2],73902)){d=J[a+628>>2];a=J[a>>2];J[c+4>>2]=J[b+88>>2];J[c>>2]=a;Nc(d,98039,74178,c);a=0;break a}J[b+124>>2]=J[b+124>>2]|2;a=1}bc=c+16|0;return a|0}fa(73278,70424,174,98039);B()}function $Y(a,b,c,d,e){O[b>>3]=O[a+568>>3]*(O[a+496>>3]*(O[a+504>>3]*O[a+16>>3]+O[a+512>>3]*O[a+32>>3]));O[c>>3]=O[a+568>>3]*(O[a+496>>3]*(O[a+ -504>>3]*O[a+24>>3]+O[a+512>>3]*O[a+40>>3]));O[d>>3]=O[a+496>>3]*(O[a+520>>3]*O[a+16>>3]+O[a+528>>3]*O[a+32>>3]);O[e>>3]=O[a+496>>3]*(O[a+520>>3]*O[a+24>>3]+O[a+528>>3]*O[a+40>>3])}function tcb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=J[a+160>>2];if(!b)break a;c=J[b+4>>2];a=J[c+84>>2];if(!a)break a;d=J[J[c+96>>2]+8>>2];if((a|0)!=(b|0))while(1){e=J[a+8>>2];if(!e)break a;f=a;a=e;if((b|0)!=(a|0))continue;break}J[(f?f+8|0:c+84|0)>>2]=J[b+8>>2];a=J[b+20>>2];if(a)gc[a|0](b);px(b);gc[J[d+8>>2]](d,b)}}function sT(a){a= -a|0;var b=0,c=0,d=0;J[a>>2]=2421084;xd(a+48|0);xd(a+24|0);b=J[a+20>>2];J[a+20>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}sc(a+8|0);return ed(a)|0}function owa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){J[a+8>>2]=1;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;c=a+36|0;J[c>>2]=0;J[c+4>>2]=0;J[a+44>>2]=0;J[a+48>> -2]=0;J[c>>2]=2407112;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[a+52>>2]=0;a=a+56|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function YT(a,b){a=a|0;b=b|0;var c=0;c=bc-32|0;bc=c;a:{if(b-257>>>0<=4294967040){a=Kc(c+8|0,2376465,2373930,482,2407173,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}I[a+16>>1]=b;b:{if(J[a+20>>2]|b>>>0<3)break b;b=J[a+36>>2];if(!b)break b;Mn(a,b)}bc=c+32|0;return}B()}function z0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b=J[J[b+4>>2]+4>> -2];b:{if(!b){H[a+11|0]=0;break b}d=At(b);if(!d){H[a+11|0]=0;break b}c=Qc(d);if(c>>>0>=2147483632)break a;c:{if(c>>>0<=10){H[a+11|0]=c;break c}e=(c|15)+1|0;b=rc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}a=Zc(a,d,c)+c|0}H[a|0]=0;return}Id(a);B()}function rib(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=bc-16|0;bc=b;fh(a,J[a+8>>2]);e=J[a+8>>2];d=J[a>>2];J[b+12>>2]=d;g=b+12|0;f=nn(g,e,10);c=J[b+12>>2];a:{if((d|0)==(c|0))break a;if(!(K[c|0]!=35|c>>>0>=e>>>0)){d=c+1|0;J[b+12>>2]=d;f=nn(g,e,f); -c=J[b+12>>2];if((d|0)==(c|0))break a}J[a>>2]=c;h=f}bc=b+16|0;return h|0}function kRa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];J[c+664>>2]=1;a=J[a+8>>2];gc[J[J[a>>2]+316>>2]](a,c,J[b>>2]==1?+J[b+8>>2]:O[b+8>>3],J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3],J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3],J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3],J[b+64>>2]==1?+J[b+72>>2]:O[b+72>>3],J[b+80>>2]==1?+J[b+88>>2]:O[b+88>>3])}function ilb(a){a=a|0;var b=0;J[a>>2]=47780;a:{b=J[a+976>>2];if(b){J[695492]=0;_(177,b|0);b=J[695492];J[695492]= -0;if((b|0)==1)break a}J[a>>2]=1032;J[695492]=0;$(13,a|0)|0;b=J[695492];J[695492]=0;b:{if((b|0)!=1){J[695492]=0;$(14,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break b}break a}qc(a);return}ea(0)|0;yc();B()}function Vf(a,b,c){var d=0,e=0,f=0,g=0;f=bc-16|0;bc=f;J[f+12>>2]=c;d=bc-160|0;bc=d;g=d+8|0;tc(g,2613136,144);J[d+52>>2]=a;J[d+28>>2]=a;e=-2-a|0;e=e>>>0>2147483647?2147483647:e;J[d+56>>2]=e;e=a+e|0;J[d+36>>2]=e;J[d+24>>2]=e;b=kF(g,b,c);if((a|0)!=-2){a=J[d+28>>2];H[a-((a|0)==J[d+24>>2])|0]=0}bc=d+ -160|0;bc=f+16|0;return b}function JS(a){var b=0,c=0;a:{b=J[a>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a>>2]=0}b=J[a+148>>2];if(b){J[a+152>>2]=b;qc(b)}if(H[a+131|0]<0)qc(J[a+120>>2]);J[a+8>>2]=340520;if(H[a+35|0]<0)qc(J[a+24>>2]);if(H[a+23|0]<0)qc(J[a+12>>2]);return}ea(0)|0;yc();B()}function sob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+428>>2]+8|0;g=J[b+32>>2];if(g){e=J[b+36>>2];d=f;while(1){c=J[e>>2];c=c<<24|(c&65280)<<8|(c>>>8& -65280|c>>>24);H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;d=d+4|0;e=e+4|0;h=h+1|0;if(h>>>0>2])continue;break}}return ue(a,J[b>>2],g<<2,f)|0}function OW(a,b,c,d){var e=0,f=0,g=Q(0),h=0,i=Q(0),j=0,k=Q(0);if(d)while(1){e=f<<2;h=e+b|0;i=N[h>>2];j=a+e|0;g=N[j>>2];e=c+e|0;k=N[e>>2];N[j>>2]=Q(k*Q(1.4019999504089355))+g;N[h>>2]=Q(g+Q(i*Q(-.3441300094127655)))+Q(k*Q(-.714139997959137));N[e>>2]=g+Q(i*Q(1.7719999551773071));f=f+1|0;if((f|0)!=(d|0))continue;break}}function Eub(a){a=a|0;var b= -0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=P(J[a+584>>2],3)+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function xga(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;g=bc-32|0;bc=g;h=J[654543];J[g+24>>2]=J[654542];J[g+28>>2]=h;h=J[654541];J[g+16>>2]=J[654540];J[g+20>>2]=h;h=J[654539];J[g+8>>2]=J[654538]; -J[g+12>>2]=h;h=J[654537];J[g>>2]=J[654536];J[g+4>>2]=h;h=a;a=g+32|0;b=Dn(h,b,c,d,e,f,g,a);bc=a;return b|0}function oL(a,b){var c=0,d=0;c=nd(b,J[a>>2]);a:{if(c)break a;c=Me(b,334336,a+4|0);if(c)break a;c=2;d=L[a+4>>1];if((d|256)!=768|M[a+8>>2]<((d|0)==768?148:118)>>>0)break a;if((d|0)==512){J[a+140>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0}if(H[a+72|0]&1)break a;c=nd(b,J[a>>2]);if(c)break a;c=yi(b,J[a+8>>2],a+160|0)}return c}function lwa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2407140;b=J[a+68>>2];J[a+68>>2]=0;a:{if(!b)break a; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}_c(a+52|0);_c(a+40|0);_c(a+28|0);qc(ed(a))}function eB(a,b){var c=0,d=0,e=0,f=0;d=1;c=Ve(a);e=K[b+11|0];f=e<<24>>24;a:{b:{if((((f|0)<0?J[b+4>>2]:e)|0)!=(c|0))break b;c:switch(c+1|0){case 0:J[695492]=0;_(2804,b|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B();default:if(gd((f|0)<0?J[b>>2]:b,a,c))break b;break;case 1:break c}d= -0}return d}ea(0)|0;yc();B()}function bma(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;var h=0,i=0,j=0,k=0,l=0;a=J[a+12>>2];h=O[c>>3];i=O[d>>3];j=O[e>>3];k=O[f>>3];l=O[g>>3];c=bc-48|0;bc=c;O[c+40>>3]=O[b>>3];O[c+32>>3]=h;O[c+24>>3]=i;O[c+16>>3]=j;O[c+8>>3]=k;O[c>>3]=l;mo(a+648|0,c+40|0,c+32|0,c+24|0,c+16|0,c+8|0,c);bc=c+48|0;return 0}function Tn(a){var b=0;b=J[a+28>>2]-1|0;J[a+28>>2]=b;a:{if(!b){b=J[a>>2];if(b)qc(Rc(b));b:{if(J[a+4>>2])break b;b=J[a+12>>2];if(!b)break b;J[695492]=0;Gc(b); -b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+20>>2];if(b){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}qc(a)}return}ea(0)|0;yc();B()}function L7a(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}f=b;b=255-e|0;H[a+2|0]=f+(P(b,K[a+2|0])+255>>>8|0);H[a+1|0]=(P(b,K[a+1|0])+255>>>8|0)+c;H[a|0]=(P(b,K[a|0])+255>>>8|0)+d;b=a;a=K[a+3|0];H[b+3|0]=a+e-(P(a,e)+255>>>8)}function FK(a,b,c){a=a|0;b= -b|0;c=c|0;var d=0,e=0;a:{b:{c:{if(!c){H[a+11|0]=0;break c}if(c>>>0>=1073741808)break b;d:{if(c>>>0<=1){H[a+11|0]=c;break d}d=c|3;if(d>>>0>=1073741823)break a;e=d+1|0;d=rc(e<<2);J[a+8>>2]=e|-2147483648;J[a>>2]=d;J[a+4>>2]=c;a=d}d=a;a=c<<2;a=tc(d,b,a)+a|0}J[a>>2]=0;return}Id(a);B()}Sd();B()}function Ce(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[b|0];if(d){e=b;while(1){f=P(f,17)+(d&255)|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}}a:{d=J[J[a+8>>2]+((f>>>0)%((J[a+12>>2]<<1)-1>>>0)<<2)>>2];if(d)while(1){if(!Ec(b, -J[d>>2]))break a;d=J[d+24>>2];if(d)continue;break}J[c>>2]=5;return c|0}return Ef(d+8|0,c)|0}function v4(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;h=bc-16|0;bc=h;J[h+12>>2]=0;g=10;j=J[c>>2];k=j+e|0;a:{if(k>>>0>31457280)break a;i=J[a>>2];g=J[b>>2];if(g>>>0>>0){i=Sc(f,1,g,k,i,h+12|0);g=J[h+12>>2];if(g)break a;J[b>>2]=J[c>>2]+e;j=J[c>>2]}tc(i+j|0,d,e);J[c>>2]=J[c>>2]+e;J[a>>2]=i;g=J[h+12>>2]}bc=h+16|0;return g}function ulb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=vx(b,c);a:{if(d)break a;a=J[b+24>> -2];if((a|0)<=0)break a;b=J[b+28>>2];f=b+P(a,40)|0;a=J[c+4>>2];c=J[c+8>>2];while(1){J[a>>2]=J[b+16>>2];J[a+4>>2]=J[b+20>>2];e=L[b>>1];H[c|0]=e&1?0:e&2?2:1;c=c+1|0;a=a+8|0;b=b+40|0;if(f>>>0>b>>>0)continue;break}}return d|0}function ts(a,b){var c=0,d=0,e=0;c=bc-32|0;bc=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=c+8;d=J[a+664>>2];a:{if(!(!d|J[d>>2]!=(b|0)))break a;d=0;e=J[a+656>>2];if(!e)break a;J[c+16>>2]=0;J[c+8>>2]=b;b=EF(c+4|0,e,J[a+660>>2]);if(b)d=J[b>>2];else d= -0;J[a+664>>2]=d}bc=c+32|0;return d}function nqa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2421084;xd(a+48|0);xd(a+24|0);b=J[a+20>>2];J[a+20>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}sc(a+8|0);qc(ed(a))}function cJa(a,b){a=a|0;b=b|0;var c=0;c=a+20|0;a:{b:{if(!(!(gc[J[J[b>>2]+12>>2]](b)|0)|J[a+20>>2]))break b;c=a+24|0;if(!(!(gc[J[J[b>>2]+16>>2]](b)|0)|J[a+ -24>>2]))break b;if(!(gc[J[J[b>>2]+28>>2]](b)|0)|J[a+28>>2])break a;c=a+28|0}J[c>>2]=b}c=J[a+16>>2];J[(c?c+4|0:a+12|0)>>2]=b;J[a+16>>2]=b;J[b+4>>2]=0;J[b+8>>2]=a}function aj(a,b){a=a|0;b=b|0;var c=0;c=bc-32|0;bc=c;a:{if(J[a+4>>2]!=(b|0)){a=Kc(c+8|0,2376401,2373759,380,2411634,0);break a}if(!J[a>>2]){a=Kc(c+8|0,2377050,2373759,382,2411634,0);break a}a=Kc(c+8|0,2377672,2373759,384,2411634,0)}J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;Fc(a);ba(b|0)}B()}function Mi(a){var b=0, -c=0,d=0;a:{if(J[a+8>>2]==13)break a;c=a+8|0;while(1){b=J[a+16>>2];if((gc[J[J[b>>2]+28>>2]](b)|0)!=-1)break a;b=J[a+16>>2];gc[J[J[b>>2]+24>>2]](b);uc(c);b=J[a+4>>2]+1|0;J[a+4>>2]=b;d=J[a>>2];if((b|0)>2]){Mc(d,b,c,0);b=J[a+16>>2];gc[J[J[b>>2]+20>>2]](b)}if(J[c>>2]!=13)continue;break}}}function Lnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1347179589){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];a=J[c+36>>2];J[b+36>>2]=a;if(a){a=0;while(1){d=P(a,3);e=d+b|0;d=c+d|0;H[e+42|0]=K[d+42|0]; -d=K[d+40|0]|K[d+41|0]<<8;H[e+40|0]=d;H[e+41|0]=d>>>8;a=a+1|0;if(a>>>0>2])continue;break}}return 0}function A7a(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){b=K[a+2|0]-b|0;H[a+2|0]=b>>>0<=255?b:0;b=K[a+1|0]-c|0;H[a+1|0]=b>>>0<=255?b:0;b=K[a|0]-d|0;H[a|0]=b>>>0<=255?b:0;b=a;a=K[a+3|0];H[b+3|0]=a+e-(P(a,e)+255>>>8)}}function wDa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+ -12>>2]=0;J[695492]=0;c=a+12|0;aa(4985,c|0,0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){a:{if(H[a+11|0]<0){J[a+4>>2]=0;c=J[a>>2];break a}H[a+11|0]=0;c=a}J[c>>2]=0;J[a+16>>2]=b;return a|0}b=Z()|0;vc(c);if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}function ep(a,b,c){var d=0,e=0;a:{if(c){d=J[a>>2];e=J[a+4>>2];b:{if((d|0)!=(e|0)){e=J[a+8>>2];break b}d=e+10|0;J[a+4>>2]=d;e=Tg(J[a+8>>2],d<<2);if(!e)break a;J[a+8>>2]=e;d=J[a>>2]}J[(d<<2)+e>>2]=b;J[a>>2]=d+1;return 1}fa(2338057,2338682,74,2343279);B()}qc(J[a+8>>2]); -J[a>>2]=0;J[a+4>>2]=0;Hc(c,1,2339850,0);return 0}function O1(a,b){a=a|0;b=+b;var c=0,d=0,e=0;J[a+296>>2]=0;O[a+272>>3]=b;J[a+288>>2]=0;J[a+292>>2]=0;a:{if(b<0|b>0){e=J[a+264>>2];b=R(b);while(1){d=O[(c<<3)+a>>3];if(!(d>2]=0;J[a+292>>2]=0;c=c+1|0;J[a+296>>2]=c;b=b-d;if(c>>>0>=e>>>0){J[a+296>>2]=0;c=0}if(b>0)continue;break}}return}O[a+288>>3]=b}function Imb(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;f=0;a:{if(!b)break a;h=J[a+4>>2];if(!h)break a;e=J[a+16>>2];g=J[a+ -8>>2];if((e|0)>=(g|0)){H[a+24|0]=1;return 0}d=P(c,d);if(!d)break a;if((d+e|0)>(g|0)){H[a+24|0]=1;d=g-e|0}tc(b,e+h|0,d);J[a+16>>2]=J[a+16>>2]+d;f=(d>>>0)/(c>>>0)|0}return f|0}function Csb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){e=J[a+2300>>2];d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=K[d|0];if(!((c|0)==L[e+836>>1]?K[e+56|0]:0)){H[b+2|0]=255;H[b+3|0]=255}c=gc[J[a+2296>>2]](c)|0;H[b+1|0]=(c|0)!=0;H[b|0]=c>>>8;b=b+4|0;d=d+1|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function AL(a, -b,c){var d=0,e=0,f=0,g=0;f=6;d=J[b>>2];a:{if(d+5>>>0>c>>>0)break a;e=J[a+12>>2];I[e>>1]=K[d|0];I[e+2>>1]=K[d+1|0];I[e+4>>1]=H[d+2|0];I[e+6>>1]=H[d+3|0];I[e+8>>1]=K[d+4|0];g=c;c=d+8|0;if(g>>>0>>0)break a;I[e+10>>1]=H[d+5|0];I[e+12>>1]=H[d+6|0];I[e+14>>1]=K[d+7|0];H[a+16|0]=1;J[b>>2]=c;f=0}return f}function yda(a){a=a|0;var b=0,c=0,d=0;c=1;d=J[a+584>>2];if(!(H[d+4|0]&1)){b=12;if(H[d+28|0]&1){b=13;c=!J[d+92>>2]|2}Fl(a,c,b);Fl(a,c,b);Fl(a,c,b);Fl(a,c,b);Fl(a,c,b);Fl(a,c,b);if(J[a+608>>2]>=J[a+600>> -2])gf(a);c=J[d+64>>2];b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=c;J[a+608>>2]=J[a+608>>2]+1;J[d+64>>2]=0;J[d+68>>2]=8}}function jJ(a,b,c){var d=0;d=bc-32|0;bc=d;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=42}b:{if(!b){J[d>>2]=c;Cc(0,0,0,a,0,1,42,3,c,0,0,0,35711,d);break b}J[d+20>>2]=c;J[d+16>>2]=b;Cc(0,0,0,a,0,1,42,3,b,c,0,0,35654,d+16|0)}if(!a)break a;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}bc=d+32|0}function b4a(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;b=J[a+316>> -2];if((b|0)>0){g=J[d>>2];while(1){d=J[a+112>>2];if((d|0)>0){e=f<<2;b=J[e+g>>2];h=d+b|0;d=J[c+e>>2];while(1){e=K[d|0];H[b+1|0]=e;H[b|0]=e;d=d+1|0;b=b+2|0;if(h>>>0>b>>>0)continue;break}b=J[a+316>>2]}f=f+1|0;if((f|0)<(b|0))continue;break}}}function ZHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-32|0;bc=d;J[d+16>>2]=13;f=J[a+8>>2];a=d+16|0;a:{if(J[Bc(f,784702,a,0)>>2]!=7){uc(a);break a}J[d+12>>2]=c;e=1;a=d+12|0;b:{if(sH(a,J[d+24>>2],b,785563))break b;if(sH(a,J[d+24>>2],b,786713))break b;e=sH(a,J[d+ -24>>2],b,787294)}uc(d+16|0)}bc=d+32|0;return e|0}function Yma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+108|0;if((c|0)!=(b|0))a:{d=K[a+119|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}yf(b,J[a+108>>2],J[a+112>>2]);break a}f=b;b=(e|0)<0;Df(f,b?J[a+108>>2]:c,b?J[a+112>>2]:d)}return 0}function WG(a){a=a|0;var b=0,c=0;b=bc-48|0;bc=b;c=J[a+28>>2];if(c){O[b+40>>3]=O[J[a>>2]>>3];O[b+32>>3]=O[J[a>>2]+8>>3];O[b+24>>3]=O[J[a>>2]+ -16>>3];O[b+16>>3]=O[J[a>>2]+24>>3];O[b+8>>3]=O[J[a>>2]+32>>3]*25.4/96;O[b>>3]=O[J[a>>2]+40>>3]*25.4/96;gc[J[J[c>>2]+396>>2]](c,b+40|0,b+32|0,b+24|0,b+16|0,b+8|0,b)|0}bc=b+48|0}function Mma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+456|0;if((c|0)!=(b|0))a:{d=K[a+467|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}yf(b,J[a+456>>2],J[a+460>>2]);break a}f=b;b=(e|0)<0;Df(f,b?J[a+456>>2]:c,b?J[a+460>>2]:d)}return 0}function Kma(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+444|0;if((c|0)!=(b|0))a:{d=K[a+455|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}yf(b,J[a+444>>2],J[a+448>>2]);break a}f=b;b=(e|0)<0;Df(f,b?J[a+444>>2]:c,b?J[a+448>>2]:d)}return 0}function DY(a,b){var c=0,d=0,e=0,f=0;d=K[b|0];if(d){c=b;while(1){f=P(f,17)+(d&255)|0;d=K[c+1|0];c=c+1|0;if(d)continue;break}}e=J[a>>2];a=J[a+4>>2];d=(f>>>0)%(a>>>0)|0;c=J[e+(d<<3)>>2];if(c)while(1){if(!Ec(c, -b))return J[((d<<3)+e|0)+4>>2];c=d+1|0;d=(a|0)!=(c|0)?c:0;c=J[(d<<3)+e>>2];if(c)continue;break}return 0}function uj(a,b){a=a|0;b=b|0;var c=0,d=0;c=(b&252)+2778416|0;dG(c);d=J[b>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[c>>2]=0;c=(a&252)+2778416|0;dG(c);b=J[a>>2];J[a>>2]=d;J[c>>2]=0;a:{if(!b)break a;d=b+4|0;c=J[d>>2]-1|0;J[d>>2]=c;if(c)break a;c=J[d>>2];if(!c)J[d>>2]=-32767;if(c)break a;gc[J[J[b>>2]+4>>2]](b)}return a|0}function plb(a){a=a|0;var b=0;J[a>>2]=47780;a:{b=J[a+976>>2];if(b){J[695492]=0;_(177,b| -0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a>>2]=1032;J[695492]=0;$(13,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;$(14,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}ea(0)|0;yc();B()}function mw(a){var b=0,c=0,d=0;a:{if(!a)break a;b=J[a>>2];if(!(!b|J[b+108>>2]!=-554844497|!(J[b+116>>2]|J[b+120>>2])))J[a+324>>2]=1;c=a,d=le(J[a+296>>2],9668,3),J[c+312>>2]=d;c=a,d=le(J[a+296>>2],4071,5),J[c+316>>2]=d;b=le(J[a+296>>2],14838,36);J[a+320>>2]=b;if(!(b?!J[a+312>>2]| -!J[a+316>>2]:1))break a;ke(a,0)}}function Gjb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=bc-16|0;bc=a;gc[J[J[b>>2]+20>>2]](b,c,0)|0;H[a+15|0]=0;c=0;a:{while(1){d=-1;if(!(gc[J[J[b>>2]+12>>2]](b,a+15|0,1,1,0,0)|0))break a;d=c&255;c=K[a+15|0];if(d|(c|0)!=44)continue;break}gc[J[J[b>>2]+20>>2]](b,-1,1)|0;d=gc[J[J[b>>2]+24>>2]](b)|0}b=d;bc=a+16|0;return b|0}function woa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+768|0;if((c|0)!=(b|0)){d=K[a+779|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2]; -J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}yf(b,J[a+768>>2],J[a+772>>2]);return 0}f=b;b=(e|0)<0;Df(f,b?J[a+768>>2]:c,b?J[a+772>>2]:d)}return 0}function uoa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+756|0;if((c|0)!=(b|0)){d=K[a+767|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}yf(b,J[a+756>>2],J[a+760>>2]);return 0}f=b;b=(e|0)<0;Df(f,b?J[a+756>>2]:c,b?J[a+760>>2]:d)}return 0}function sub(a){a=a|0;var b=0, -c=0,d=0;b=J[a+2556>>2];if(J[a+588>>2]>0){c=J[a+540>>2];b=(J[c+1176>>2]+P(b,J[c+1168>>2])|0)+1|0;c=J[a+2524>>2];while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}b=J[a+2556>>2]}J[a+2556>>2]=b+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function rub(a){a=a|0;var b=0,c=0,d=0;b=J[a+2556>>2];if(J[a+588>>2]>0){c=J[a+540>>2];b=(J[c+1176>>2]+P(b,J[c+1168>>2])|0)+3|0;c=J[a+2524>>2];while(1){H[b|0]=K[c|0];c=c+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}b= -J[a+2556>>2]}J[a+2556>>2]=b+1;a:{if(J[a+968>>2]){b=Kk(a);if(b)break a}b=0}return b|0}function lM(a){a=a|0;var b=0;J[a+36>>2]=500;J[a+40>>2]=400;H[a+32|0]=1;J[a+28>>2]=1;J[a+60>>2]=2333;J[a+64>>2]=0;J[a+52>>2]=1667;J[a+56>>2]=275;J[a+44>>2]=1E3;J[a+48>>2]=275;b=bc-16|0;b=J[a+8>>2]^(b+8^b+12);b=b>>>20^b>>>10^b;J[a+68>>2]=b;a:{if((b|0)<0)b=0-b|0;else{if(b)break a;b=123456789}J[a+68>>2]=b}return 0}function dp(a,b,c){var d=0,e=0;e=b-1|0;a:{if(K[a+402|0]==8){b:{if(e>>>0>253)break b;d=V(We(+(b>>>0)/255, -+(c|0)*1E-5)*255+.5);if(d<4294967296&d>=0){b=~~d>>>0;break b}b=0}b=b&255;break a}if(e>>>0>65533)break a;d=V(We(+(b>>>0)/65535,+(c|0)*1E-5)*65535+.5);if(d<4294967296&d>=0){b=~~d>>>0;break a}b=0}return b&65535}function Y0(a){var b=0;b=0;a:{if(a-J[187936]>>>0<128)break a;b=1;if(a-J[187937]>>>0<128)break a;b=2;if(a-J[187938]>>>0<128)break a;b=3;if(a-J[187939]>>>0<128)break a;b=4;if(a-J[187940]>>>0<128)break a;b=5;if(a-J[187941]>>>0<128)break a;b=6;if(a-J[187942]>>>0<128)break a;b=a-J[187943]>>>0<128? -7:-1}return b}function Vwb(a){a=a|0;var b=0,c=0;if(J[a+4>>2]==16)c=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else c=J[a+36>>2];b=J[J[a+40>>2]+16>>2];a=J[a+52>>2];gc[J[J[a>>2]+20>>2]](a,2)|0;b=gc[J[J[a>>2]+20>>2]](a,(b|0)<257?1:2)|0;gc[J[J[a>>2]+20>>2]](a,1)|0;a=gc[J[J[a>>2]+20>>2]](a,1)|0;J[(J[c+1872>>2]+P(b,1076)|0)+808>>2]=a}function UX(a){a=a|0;var b=0,c=0;while(1){J[(c<<2)+a>>2]=c;b=c|1;J[(b<<2)+a>>2]=b;b=c|2;J[(b<<2)+a>>2]=b;b=c|3;J[(b<<2)+a>>2]=b;b=c|4;J[(b<<2)+a>>2]=b;b=c|5;J[(b<<2)+a>>2]=b; -b=c|6;J[(b<<2)+a>>2]=b;b=c|7;J[(b<<2)+a>>2]=b;c=c+8|0;if((c|0)!=256)continue;break}J[a+1032>>2]=0;J[a+1024>>2]=0;J[a+1028>>2]=0;return a|0}function Mr(a,b){var c=0,d=0;c=J[a+8>>2];a:{b:{if(c&7)break b;d=J[a+64>>2];if(!((d|0)<0|J[a+60>>2]<(d|0))){J[a+8>>2]=c|4;break b}J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b;return 0}c=0;if((Uc(a,b)|0)!=-1)break a}c=-1}return c}function Lmb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1296123726){Dc(a, -2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];H[b+36|0]=K[c+36|0];I[b+38>>1]=L[c+38>>1];I[b+40>>1]=L[c+40>>1];I[b+42>>1]=L[c+42>>1];I[b+44>>1]=L[c+44>>1];I[b+46>>1]=L[c+46>>1];I[b+48>>1]=L[c+48>>1];H[b+50|0]=K[c+50|0];return 0}function F_(a){a=a|0;var b=0,c=0,d=0;c=J[a+24>>2];if(c){b=c;d=J[a+28>>2];if((b|0)!=(d|0)){while(1){b=d-12|0;if(H[d-1|0]<0)qc(J[b>>2]);d=b;if((b|0)!=(c|0))continue;break}b=J[a+24>>2]}J[a+28>>2]=c;qc(b)}J[a>>2]=840356;b=J[a+16>>2];if(b){gc[J[J[b>>2]+4>>2]](b); -J[a+16>>2]=0}if(H[a+15|0]<0)qc(J[a+4>>2]);return a|0}function zTa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+420>>2];if(J[a+236>>2]){d=J[c+68>>2];if(!d){_v(a,J[c+72>>2]);d=J[a+236>>2];J[c+72>>2]=J[c+72>>2]+1&7}J[c+68>>2]=d-1}if(J[a+316>>2]>0){d=c+204|0;e=J[a+372>>2];c=0;while(1){Oe(a,d,I[J[(c<<2)+b>>2]>>1]>>>e&1);c=c+1|0;if((c|0)>2])continue;break}}return 1}function iya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;a=Uk(d+8|0,2403809);J[695492]=0;e=ga(5117,a|0,b|0,-1)|0;f=J[695492];J[695492]= -0;c=1;a:{if((f|0)==1)break a;if(e){J[695492]=0;b=fd(b,2404518,-1);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=!b}sc(a);bc=d+16|0;return c|0}b=Z()|0;sc(a);ba(b|0);B()}function fza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;a=Uk(d+8|0,2399159);J[695492]=0;e=ga(5117,a|0,b|0,-1)|0;f=J[695492];J[695492]=0;c=1;a:{if((f|0)==1)break a;if(e){J[695492]=0;b=fd(b,2399219,-1);c=J[695492];J[695492]=0;if((c|0)==1)break a;c=!b}sc(a);bc=d+16|0;return c|0}b=Z()|0;sc(a);ba(b|0);B()}function f_a(a,b){a=a| -0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+4>>2];a:{b:{if(!J[c+4>>2])break b;f=b+1|0;while(1){if((_q(J[c+4>>2])|0)!=1)break b;d=Bt(J[c+4>>2]);a=gm(J[c+4>>2]);if((d|0)==-1|(a|0)==-1|(a|0)<(b|0))break b;e=1;if((d|0)==1&(a|0)==(f|0))break a;if((d|0)!=15|(a|0)!=(b|0))continue;break}}e=0}return e|0}function K7a(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);e=b;b=f^255;H[a+2|0]= -K[a+2|0]+(P(e,b)+255>>>8|0);H[a+1|0]=K[a+1|0]+(P(b,c)+255>>>8|0);H[a|0]=K[a|0]+(P(b,d)+255>>>8|0)}function Faa(a){a=a|0;var b=0,c=0,d=0;c=bc-16|0;bc=c;b=J[a+584>>2];if(b){if(K[b+124|0]&2){go(b- -64|0);J[b+124>>2]=0}a:{if(Iw(b- -64|0,73902,56)){d=J[a+628>>2];a=J[a>>2];J[c+4>>2]=J[b+88>>2];J[c>>2]=a;Nc(d,98001,74178,c);a=0;break a}J[b+124>>2]=J[b+124>>2]|1;a=1}bc=c+16|0;return a|0}fa(73278,70424,93,98001);B()}function DM(a,b,c,d){var e=0,f=0;a:{if((c|d)<0)break a;b:{if((a|0)>=0)break b;c=a+c|0;a=0; -if((c|0)>0)break b;return 0}c:{if((b|0)>=0)break c;d=b+d|0;b=0;if((d|0)>0)break c;return 0}e=bd(1,20);if(!e)break a;J[e+4>>2]=b;J[e>>2]=a;if((c|0)!=-1)J[e+8>>2]=c;if((d|0)!=-1)J[e+12>>2]=d;J[e+16>>2]=1;f=e}return f}function tyb(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(Lg(b,a+20|0))break a;c=zc(P(J[a+20>>2],12));J[a+24>>2]=c;if(!c)break a;if(!J[a+20>>2])return 0;c=0;while(1){d=J[a+24>>2]+P(c,12)|0;if(Lg(b,d))break a;if(Lg(b,d+4|0))break a;if(Lg(b,d+8|0))break a;c=c+1|0;if(c>>>0>2])continue;break}return 0}return-1} -function ps(a,b){var c=0,d=0,e=0;d=bc-16|0;bc=d;H[d+15|0]=b;c=J[a+16>>2];a:{if(!c){c=-1;if(CF(a))break a;c=J[a+16>>2]}b:{e=J[a+20>>2];if((c|0)==(e|0))break b;c=b&255;if((c|0)==J[a+80>>2])break b;J[a+20>>2]=e+1;H[e|0]=b;break a}c=-1;if((gc[J[a+36>>2]](a,d+15|0,1)|0)!=1)break a;c=K[d+15|0]}bc=d+16|0;return c}function pD(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!J[a+4>>2])break a;e=zc(J[a+52>>2]);if(!e)break a;b=df(a,J[a+20>>2]-1|0);c=df(a,0);if(J[a+20>>2]>=2){d=J[a+52>>2];while(1){g=tc(e,b,d);b=tc(b,c, -d);c=tc(c,g,J[a+52>>2]);d=J[a+52>>2];c=c+d|0;b=b-d|0;f=f+1|0;if((f|0)<(J[a+20>>2]/2|0))continue;break}}qc(e);w8(a)}}function gHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=Q(0),f=0,g=0;d=bc-16|0;bc=d;if(c)while(1){H[d+15|0]=K[a|0];H[d+14|0]=K[a+1|0];H[d+13|0]=K[a+2|0];H[d+12|0]=K[a+3|0];e=N[d+12>>2];a:{if(Q(R(e))>2]=f;b=b+4|0;a=a+4|0;g=g+1|0;if((g|0)!=(c|0))continue;break}bc=d+16|0}function fw(a){a:{if(J[a>>2]!=4)break a;a=J[a+8>>2];if(!Ec(a,784642))return 0; -if(!Ec(a,785442))return 1;if(!Ec(a,786414))return 2;if(!Ec(a,787068))return 3;if(!Ec(a,787887))return 4;if(!Ec(a,788882))return 6;if(!Ec(a,789640))return 7;if(!Ec(a,790442))return 8;if(Ec(a,791533))break a;return 9}return 5}function U5(a,b){var c=0,d=0;a:{if(!a|!b)break a;d=L[a+2>>1];if((d|0)!=L[b+2>>1])break a;c=L[a>>1];if((a|0)==(b|0)|(c|0)!=L[b>>1])break a;if(d){tc(J[b+4>>2],J[a+4>>2],d<<16>>16<<3);tc(J[b+8>>2],J[a+8>>2],I[a+2>>1]);c=L[a>>1]}if(c)tc(J[b+12>>2],J[a+12>>2],c<<16>>16<<1);J[b+16>> -2]=J[a+16>>2]&-2|J[b+16>>2]&1}}function R5a(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;O[d+8>>3]=c;O[d+16>>3]=b;e=J[a+4>>2];f=J[e+28>>2];if(f){je(f,d+16|0,d+8|0);e=J[a+4>>2];c=O[d+8>>3];b=O[d+16>>3]}H[e+25|0]=1;J[d+28>>2]=0;g=Ke(e,d+28|0),h=1,H[g|0]=h;a=J[d+28>>2];O[a+8>>3]=c;O[a>>3]=b;J[e>>2]=J[e>>2]+1;bc=d+32|0;return 1}function OA(a,b,c){var d=0,e=0,f=0;a:{if(J[a+12>>2]>=(b|0))break a;d=J[a+16>>2];if((d|0)<=0|(2147483646/(d>>>0)|0)<=(b|0))break a;d=JI(J[a+20>>2],P(b,d)+1|0); -J[a+20>>2]=d;e=J[a+12>>2];f=J[a+16>>2];d=d+P(e,f)|0;e=P(f,b-e|0);b:{if(c){wc(d,255,e);break b}wc(d,0,e)}J[a+12>>2]=b;H[J[a+20>>2]+P(J[a+16>>2],b)|0]=0}}function O5a(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;a=J[a+4>>2];b=J[a>>2];a:{if(!b)break a;b=b-1|0;if(K[J[J[a+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]-1>>>0>13)break a;J[c+12>>2]=0;d=Ke(a,c+12|0),e=79,H[d|0]=e;b=J[c+12>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a>>2]=J[a>>2]+1}bc=c+16|0;return 1}function sYa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0;j=J[a+272>>2];if(j){k=J[j+40>>2];a:{if(!k)break a;gc[k|0](a,b,c,d,e,f,g,h,i);b=J[a+52>>2];if(!b)break a;a=J[a+36>>2];if(!a)break a;a=J[a+16>>2];if(!a|K[a|0]!=47|K[a+1|0]!=62)break a;I[b+58>>1]=1}J[j+16>>2]=1}}function oOa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+12>>2]=d;J[a+8>>2]=c;J[a>>2]=2305576;J[a+4>>2]=b;b=c+7>>3;J[a+16>>2]=b;a:{if(!((c|0)<=0|(d|0)<=0|(b|0)<=0))if(2147483646/(b>>>0)>>>0>d>>>0)break a;J[a+12>>2]=-1;J[a+16>>2]=2;d=-1;b=2}b= -sk(P(b,d)+1|0);J[a+20>>2]=b;H[b+P(J[a+16>>2],J[a+12>>2])|0]=0;return a|0}function lZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a=65536-J[b+8>>2]|0;a=(a|0)>=65536?65536:a;d=(a|0)>0?a:0;a=65536-J[b+4>>2]|0;a=(a|0)>=65536?65536:a;e=(a|0)>0?a:0;a=65536-J[b>>2]|0;a=(a|0)>=65536?65536:a;b=(a|0)>0?a:0;a=b>>>0>e>>>0?e:b;a=a>>>0>d>>>0?d:a;J[c+12>>2]=a;J[c+8>>2]=d-a;J[c+4>>2]=e-a;J[c>>2]=b-a}function jQa(a){a=a|0;var b=0;b=rc(160);J[b>>2]=2205892;J[b+4>>2]=15;J[b+8>>2]=0;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+ -24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+48>>3]=O[a+48>>3];O[b+56>>3]=O[a+56>>3];O[b+64>>3]=O[a+64>>3];O[b+72>>3]=O[a+72>>3];O[b+80>>3]=O[a+80>>3];tc(b+88|0,a+88|0,72);return b|0}function XK(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;a=J[a+4>>2];b=J[a>>2];a:{if(!b)break a;b=b-1|0;if(K[J[J[a+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]-1>>>0>13)break a;J[c+12>>2]=0;d=Ke(a,c+12|0),e=79,H[d|0]=e;b=J[c+12>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a>>2]=J[a>>2]+1}bc=c+16|0;return 0} -function Q4a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;J[c+4>>2]=b;e=a+8|0;q2(c+8|0,e,b,c+4|0);a=J[J[c+8>>2]+28>>2];if(!a){a=0;d=J[689330];a:{if(!d)break a;d=gc[J[J[d>>2]+24>>2]](d,b)|0;if(!d)break a;gc[J[J[d>>2]+8>>2]](d)|0;a=d}J[c+4>>2]=b;q2(c+8|0,e,b,c+4|0);J[J[c+8>>2]+28>>2]=a}bc=c+16|0;return a|0}function Oeb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;f=J[a+16>>2];c=b;b=L[a+8>>1];c=Sc(c,1,0,b+1|0,0,d+12|0);bc=d+16|0;if(J[d+12>>2])a=e;else{a=0;a:{if(!b)break a;while(1){e=H[f|0]; -if(!e)break a;H[a+c|0]=(e|0)<32?63:e;f=f+1|0;a=a+1|0;if((b|0)!=(a|0))continue;break}a=b}H[a+c|0]=0;a=c}return a|0}function Mja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=J[b+16>>2];if(c>>>0<1073741808){e=J[b+4>>2];b:{if(c>>>0<=1){H[a+11|0]=c;break b}b=c|3;if(b>>>0>=1073741823)break a;d=b+1|0;b=rc(d<<2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;f=Zc(b,e,a)+a|0,g=0,J[f>>2]=g;return}Id(a);B()}Sd();B()}function It(a){var b=0,c=0,d=0;c=J[a+28>>2];Hh(c);b=J[c+20>>2];d=J[a+16>>2];b= -b>>>0>>0?b:d;a:{if(!b)break a;tc(J[a+12>>2],J[c+16>>2],b);J[a+12>>2]=b+J[a+12>>2];J[c+16>>2]=b+J[c+16>>2];J[a+20>>2]=b+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-b;a=J[c+20>>2];J[c+20>>2]=a-b;if((a|0)!=(b|0))break a;J[c+16>>2]=J[c+8>>2]}}function mea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=bc-16|0;bc=g;J[e>>2]=c;f=g+12|0;a=OE(f,0,b,J[a+8>>2]);b=2;a:{if(a+1>>>0<2)break a;c=a-1|0;b=1;if(c>>>0>d-J[e>>2]>>>0)break a;while(1){if(c){a=K[f|0];b=J[e>>2];J[e>>2]=b+1;H[b|0]=a;c=c-1|0;f=f+1|0;continue}break}b= -0}a=b;bc=g+16|0;return a|0}function FY(a){var b=0,c=0,d=0;a:{b=J[a+4>>2];if((b|0)>0)while(1){d=J[J[a>>2]+(c<<3)>>2];if(d){J[695492]=0;Gc(d);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+4>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}b=J[a>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a}ea(0)|0;yc();B()}function cYa(a){a=a|0;var b=0;b=J[a+388>>2];gc[J[J[a+420>>2]+8>>2]](a);a:{b:switch(J[b+20>>2]){case 0:J[b+20>>2]=2;if(J[a+216>>2])break a;J[b+32>>2]=J[b+32>>2]+1;break a; -case 1:J[b+20>>2]=2;break a;case 2:break b;default:break a}if(J[a+216>>2])J[b+20>>2]=1;J[b+32>>2]=J[b+32>>2]+1}J[b+24>>2]=J[b+24>>2]+1}function aO(a,b){var c=0,d=0;c=-1;d=J[a+8>>2];a:{if(d&7)break a;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2])){J[a+8>>2]=d|4;return-1}c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break b}a=jd(a,1);if((a|0)==-1)break a}H[b|0]=a;c=0}return c}function Ukb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a+ -16>>2];if(d){g=J[a+20>>2];a=d>>>1|0;while(1){c=d+f>>>1|0;c=a>>>0>=d>>>0?c:a>>>0>>0?c:a;e=J[(c<<3)+g>>2];if((e|0)==(b|0))return L[((c<<3)+g|0)+4>>1]+1&65535;a=(b+c|0)-e|0;e=b>>>0>>0;f=e?f:c+1|0;d=e?c:d;if(f>>>0>>0)continue;break}}return 0}function L$a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(K[b+8|0]){t1(728975,c);return}b=dC(728975,c);if(J[c>>2]<=0){J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;d=a;a=J[689411];a:{if(a){a=gc[a|0](J[689412],16)|0;break a}a=zc(16)}if(a)a=wc(a,0,16);else a= -0;J[d+8>>2]=a;if(a){J[a>>2]=b;return}ir(b);J[c>>2]=7}}function Hc(a,b,c,d){var e=0,f=0;e=bc-528|0;bc=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=J[b>>2];if(!b|!c)break a;f=J[a>>2];a=wc(e,0,512);J[a+524>>2]=d;Il(a,512,c,d);H[a+511|0]=0;gc[b|0](a,f)}bc=e+528|0}function E_(a){a=a|0;var b=0,c=0,d=0;c=J[a+24>>2];if(c){b=c;d=J[a+28>>2];if((b|0)!=(d|0)){while(1){b=d-12|0;if(H[d-1|0]<0)qc(J[b>>2]);d=b;if((b| -0)!=(c|0))continue;break}b=J[a+24>>2]}J[a+28>>2]=c;qc(b)}J[a>>2]=840356;b=J[a+16>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)qc(J[a+4>>2]);qc(a)}function Bqa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-32|0;bc=d;a:{e=$i(a,0,262142,a+152|0);a=$i(a,0,262142,a+156|0);if((e|a)>>>0>=65536){a=Kc(d+8|0,2382912,2374240,790,2421969,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}mv(b,a,e,c);bc=d+32|0;return}B()}function wF(a){var b=0,c=0,d=0, -e=0,f=0,g=0;b=28711;if((a|0)!=28711){c=6879;e=3439;d=3439;while(1){if((c|0)==1)return 0;b=a>>>0>>0;g=b?g:e;c=b?d:c-d|0;d=c>>>1|0;e=g+d|0;f=L[(e<<1)+2582336>>1];b=L[(P(f>>>8|0,188)+((f&255)<<1)|0)+2519872>>1];if((b|0)!=(a|0))continue;break}a=f+8481|0}else a=17005;return a}function gG(a,b,c){var d=0;d=rc(28);J[d+12>>2]=0;J[d+8>>2]=b;J[d>>2]=2422928;J[d+4>>2]=0;J[695492]=0;ha(5043,d+20|0,d+16|0,0,1)|0;b=J[695492];J[695492]=0;if((b|0)==1){a=Z()|0;qc(ed(d));ba(a|0);B()}J[a>>2]=0;md(a,d);J[695492]=0; -da(5527,d|0,c|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;vc(a);ba(b|0);B()}}function VKa(a){a=a|0;var b=0;b=J[a+4>>2];gc[J[J[b>>2]+20>>2]](b);b=J[a+8>>2];if(b){wc(J[b+32>>2],0,J[b+28>>2]);J[b+36>>2]=J[b+28>>2]}J[a+53320>>2]=0;J[a+53324>>2]=0;J[a+53316>>2]=1;J[a+53308>>2]=0;J[a+53312>>2]=0;J[a+49192>>2]=258;J[a+49196>>2]=9;J[a+24>>2]=0;J[a+16>>2]=0;a=a+53328|0;J[a>>2]=0;J[a+4>>2]=0}function Pva(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b){e=M[b+12>>2]%M[a+8>>2]|0;c=J[b+4>>2];d=J[b>>2];if(d)J[d+4>>2]= -c;J[(c?c:a+24|0)>>2]=d;c=J[a+12>>2]+(e<<2)|0;a:{if(J[c>>2]==(b|0)){J[c>>2]=J[b+8>>2];break a}c=J[b>>2];if(!c)break a;J[c+8>>2]=J[b+8>>2]}gc[J[J[a>>2]+16>>2]](b,1);qc(b);J[a+4>>2]=J[a+4>>2]-1}}function fua(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;g=h<<2;while(1){f=f-1|0;a=e;while(1){J[b>>2]=K[i+1|0]|K[i+3|0]<<8|K[i+5|0]<<16|K[i+7|0]<<24;b=b+4|0;i=c+i|0;a=a-1|0;if(a)continue;break}i=d+i|0;b=b+g|0;if(f)continue;break}}}function YM(a){if(!Ac(a)){a:{b:{a= -Ac(a);if((a|0)<=1282306591){if((a|0)==1097754476)break a;if((a|0)!=1148022372)break b;return 4}if((a|0)==1282306592)return 0;if((a|0)!=1382444131){if((a|0)!=1382312992)break b;return 1}return 3}fa(219530,219843,865,225235);B()}return 2}fa(221262,219843,845,225235);B()}function Ot(a,b,c,d){var e=0;e=bc-32|0;bc=e;J[a+344>>2]=0;a:{if((d|0)==1){J[e+24>>2]=0;J[e+28>>2]=0;O[e+16>>3]=c;O[e+8>>3]=b;d=a+320|0;a=J[a+320>>2];if(a)J[d>>2]=a-1;Ow(d,e+8|0);break a}if(d-1>>>0<=13){J[e+24>>2]=0;J[e+28>>2]=0;O[e+ -16>>3]=c;O[e+8>>3]=b;Ow(a+320|0,e+8|0);break a}J[a+340>>2]=d&64}bc=e+32|0}function LEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-32|0;bc=d;b=Vl(d,b);J[695492]=0;c=Vl(b+12|0,c);e=J[695492];J[695492]=0;a:{if((e|0)==1){a=Z()|0;break a}J[695492]=0;ia(4944,d+24|0,a+24|0,b|0,b|0);a=J[695492];J[695492]=0;if((a|0)==1){a=Z()|0;Lc(c);break a}Lc(c);Lc(b);bc=d+32|0;return}Lc(b);ba(a|0);B()}function ydb(a){a=a|0;var b=0,c=0,d=0,e=0;d=bc-16|0;bc=d;b=J[a>>2];c=J[b+552>>2];b=gh(J[J[b+96>>2]+4>>2],241268);a:{if(!b| -!c)break a;c=J[c>>2];if(!c)break a;c=gc[c|0](b)|0;if(!c)break a;b=J[a>>2];e=gc[J[c>>2]](J[b+100>>2],b+168|0,d+12|0)|0;if(e)break a;J[J[a+40>>2]>>2]=J[d+12>>2]}bc=d+16|0;return e|0}function vBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=kf(c);a:{b=J[J[b+120>>2]+((d>>>0)%M[b+116>>2]<<2)>>2];if(b)while(1){if(J[b+12>>2]==(d|0))if(!tj(b+16|0,c,-1))break a;b=J[b+8>>2];if(b)continue;break}J[a>>2]=0;md(a,0);return}c=J[b+24>>2];if(!c){J[a>>2]=0;return}J[c+4>>2]=J[c+4>>2]+1;J[a>>2]=J[b+24>>2]}function dE(a,b){var c= -0;a:{b:{if(!Ec(b,197880))break b;if(!Ec(b,198549))break b;if(!Ec(b,200318))break b;if(Ec(b,200979))break a}c=zc(20);if(c){J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=a;J[c>>2]=1;a=K[b|0];J[c+4>>2]=0;a=(a|0)==119;J[c+8>>2]=a<<3;J[c+16>>2]=a?2:1}return c}fa(201628,202110,103,212077);B()}function N9a(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0;d=J[a+16>>2];a=2;f=b<0;a:{if(!(f|b>1)){a=J[d+1600>>2];c=8;if(!a)break a;a=(a+J[d+1596>>2]|0)-1|0;c=J[J[J[d+1584>>2]+(a>>>8&16777212)>>2]+((a&1023)<<2)>>2];e=W(b*255);b:{if(e< -4294967296&e>=0){a=~~e>>>0;break b}a=0}H[c+13|0]=b>1?-1:f?-1:a;a=0}c=a}return c|0}function gob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](1320)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function Vqb(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;var h=0,i=0,j=0;a:{if(f){if(!d)break a;i=c<< -1;j=b<<1;a=0;while(1){h=K[f|0];b=K[e|0];if((h|0)!=(b|0))b=b+((P(h-b|0,j)+c|0)/(i|0)|0)|0;H[g|0]=b;f=f+1|0;e=e+1|0;g=g+1|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}tc(g,e,d)}return 0}function F7a(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;f=P(b,f)+255>>>8|0}else f=b;b=K[a+3|0];e=255-e|0;H[a+2|0]=(P(f,b)+P(e,K[a+2|0])|0)+255>>>8;H[a+1|0]=(P(b,c)+P(e,K[a+1|0])|0)+255>>>8;H[a|0]=(P(b,d)+P(e,K[a|0])|0)+255>>>8}function wBa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0;d=kf(c);a:{b=J[J[b+64>>2]+((d>>>0)%M[b+60>>2]<<2)>>2];if(b)while(1){if(J[b+12>>2]==(d|0))if(!tj(b+16|0,c,-1))break a;b=J[b+8>>2];if(b)continue;break}J[a>>2]=0;md(a,0);return}c=J[b+24>>2];if(!c){J[a>>2]=0;return}J[c+4>>2]=J[c+4>>2]+1;J[a>>2]=J[b+24>>2]}function lob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](808)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+ -16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function kob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](564)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function iob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](548)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a= -J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function _5a(a,b,c){a=a|0;b=b|0;c=c|0;J[a+16>>2]=c;J[a>>2]=349292;J[a+4>>2]=2;nl(a+20|0);J[a+40>>2]=0;J[a+44>>2]=0;J[a+24>>2]=-16777216;J[a+28>>2]=-16777216;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=0;H[a+72|0]=255;J[a+12>>2]=0;J[a+8>>2]=b;H[a+32|0]=0;return a|0}function Yta(a, -b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;g=h<<2;while(1){f=f-1|0;a=e;while(1){J[b>>2]=K[i+1|0]|K[i+3|0]<<8|K[i+5|0]<<16|-16777216;b=b+4|0;i=c+i|0;a=a-1|0;if(a)continue;break}i=d+i|0;b=b+g|0;if(f)continue;break}}}function Tra(a){a=a|0;var b=0;J[a>>2]=2415608;b=J[a+56>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+60>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[a+64>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[695492]= -0;_(5504,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)return iG(a)|0;ea(0)|0;yc();B()}function T8a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=rc(44);J[695492]=0;d=$(2270,c|0)|0;e=J[695492];J[695492]=0;if((e|0)==1){a=Z()|0;qc(c);ba(a|0);B()}c=gc[J[J[a>>2]+20>>2]](a)|0;g=d,h=gc[J[J[c>>2]+24>>2]](c)|0,f=J[J[d>>2]+24>>2],gc[f](g|0,h|0);gc[J[J[d>>2]+20>>2]](d,b);gc[J[J[a>>2]+68>>2]](a,d)}function Qt(a,b,c,d){var e=0;e=bc-32|0;bc=e;J[a+124>>2]=0;a:{if((d|0)==1){J[e+24>>2]=0;J[e+28>>2]=0;O[e+16>>3]=c;O[e+ -8>>3]=b;d=a+72|0;a=J[a+72>>2];if(a)J[d>>2]=a-1;Ow(d,e+8|0);break a}if(d-1>>>0<=13){J[e+24>>2]=0;J[e+28>>2]=0;O[e+16>>3]=c;O[e+8>>3]=b;Ow(a+72|0,e+8|0);break a}J[a+120>>2]=d&64}bc=e+32|0}function Po(a,b,c,d){var e=0;a:{if(!(d&2048))break a;e=d&74;if(!c|((e|0)==8|(e|0)==64))break a;H[a|0]=43;a=a+1|0}if(d&512){H[a|0]=35;a=a+1|0}while(1){e=K[b|0];if(e){H[a|0]=e;a=a+1|0;b=b+1|0;continue}break}e=d&74;b=111;b:{if((e|0)==64)break b;b=d&16384?88:120;if((e|0)==8)break b;b=c?100:117}H[a|0]=b}function PZa(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;d=c+4|0;e=K[b+11|0];f=e<<24>>24<0;lm(d,f?J[b>>2]:b,f?J[b+4>>2]:e,0);J[695492]=0;a=aa(3091,a|0,d|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return a|0}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function OEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-32|0;bc=d;b=Vl(d,b);J[695492]=0;c=Vl(b+12|0,c);e=J[695492];J[695492]=0;a:{if((e|0)==1){a=Z()|0;break a}J[695492]=0;ia(4944,d+24|0,a|0,b|0,b|0);a=J[695492];J[695492]= -0;if((a|0)==1){a=Z()|0;Lc(c);break a}Lc(c);Lc(b);bc=d+32|0;return}Lc(b);ba(a|0);B()}function IAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;b=J[b>>2];e=a,f=Ns(b),J[e+8>>2]=f;d=a+12|0;lv(d);e=a,f=(Ns(b)<<8)+J[a+8>>2]|0,J[e+8>>2]=f;c=nk(b);if(c){d=Bs(d,c);e=(gc[J[J[b>>2]+8>>2]](b,d,c)|0)+d|0,f=0,H[e|0]=f}c=a+20|0;lv(c);a=Ms(b);if(a){c=Bs(c,a);e=(gc[J[J[b>>2]+8>>2]](b,c,a)|0)+c|0,f=0,H[e|0]=f}}function Gfa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=bc-16|0;bc=d;e=J[a+608>>2];a:{if((e|0)<(c|0)){b=J[a>> -2];c=J[a+628>>2];J[d>>2]=J[a+472>>2];Nc(c,b,69518,d);a=0;break a}f=J[a+604>>2];if((f|0)!=(b|0)){Ne(b,f,c);e=J[a+608>>2];b=J[a+604>>2]}J[a+608>>2]=e-c;J[a+604>>2]=b+c;a=1}bc=d+16|0;return a|0}function EK(a,b){var c=0,d=0,e=0,f=0,g=0;d=K[a+11|0];c=d<<24>>24<0?J[a+4>>2]:d;a:{if(!c)break a;d=0;e=rc(c>>>0>1073741823?-1:c<<2);J[b>>2]=0;c=K[a+11|0];c=c<<24>>24<0?J[a+4>>2]:c;J[b>>2]=c;if(!c)break a;while(1){f=(d<<2)+e|0,g=J[zh(a,d)>>2],J[f>>2]=g;d=d+1|0;if(d>>>0>2])continue;break}}return e}function zC(a, -b,c){a=a|0;b=+b;c=c|0;a:{b:switch(c-3|0){case 0:b=O[a+16>>3]/(b/72);if(b==O[a+32>>3])break a;O[a+32>>3]=b;return 0;case 3:b=O[a+16>>3]/(b/25.4);if(b==O[a+32>>3])break a;O[a+32>>3]=b;return 0;case 1:break b;default:break a}b=O[a+16>>3]/b;if(b==O[a+32>>3])break a;O[a+32>>3]=b}return 0}function s$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+8>>2];a:{b:{if(b>>>0>=2){d=L[c+4>>1];e=J[c+20>>2];break b}J[a+44>>2]=65535;J[a+48>>2]=0;J[c+44>>2]=0;I[c>>1]=65534;d=L[c+4>>1];I[c+8>>1]=d;e=J[c+20>>2];J[c+16>>2]=e; -if((b|0)==1)break a}J[a+56>>2]=0;J[c+12>>2]=e;I[c+2>>1]=0;I[c+24>>1]=1;I[c+6>>1]=d}}function lsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+2308>>2];if(b){e=J[a+2300>>2];d=J[a+2312>>2];c=J[a+2316>>2];while(1){f=K[d|0];if(f>>>0>2]){b=P(f,3)+e|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];H[c+2|0]=K[b+70|0];b=J[a+2308>>2]}c=c+3|0;d=d+1|0;g=g+1|0;if(g>>>0>>0)continue;break}}return 0}function kW(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(!(K[b+8|0]&16)|(!a|!b))break a;b:{if(K[b+25|0]== -3){if(c){J[c>>2]=J[b+76>>2];f=16}else f=0;if(!e)break b;J[e>>2]=b+80;break b}if(e){J[e>>2]=b+80;f=16}else f=0;if(!c)break b;J[c>>2]=0}if(!d)break a;J[d>>2]=L[b+22>>1];f=16}return f|0}function ida(a,b){a=a|0;b=b|0;var c=0;b=bc-16|0;bc=b;c=0;a:{if(!py(a))break a;if(!Jm(a,95440,1)){Nc(J[a+628>>2],72311,72676,0);c=0;break a}J[a+556>>2]=618;J[a+548>>2]=618;J[a+540>>2]=618;J[a+560>>2]=619;J[a+552>>2]=619;J[a+544>>2]=619;J[a+536>>2]=620;J[b>>2]=1;c=$d(a,65536,b)}a=c;bc=b+16|0;return a|0}function hob(a,b, -c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](84)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function aoa(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;O[b>>3]=O[J[J[a+12>>2]+920>>2]>>3];O[c>>3]=O[J[J[a+12>>2]+920>>2]+8>>3];O[d>>3]=O[J[J[a+12>>2]+920>>2]+16>>3];O[e>>3]=O[J[J[a+12>>2]+920>>2]+24>> -3];O[f>>3]=O[J[J[a+12>>2]+920>>2]+32>>3];O[g>>3]=O[J[J[a+12>>2]+920>>2]+40>>3];return 0}function MG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=kf(c);a:{b=J[J[b+92>>2]+((d>>>0)%M[b+88>>2]<<2)>>2];if(b)while(1){if(J[b+12>>2]==(d|0))if(!tj(b+16|0,c,-1))break a;b=J[b+8>>2];if(b)continue;break}J[a>>2]=0;md(a,0);return}c=J[b+24>>2];if(!c){J[a>>2]=0;return}J[c+4>>2]=J[c+4>>2]+1;J[a>>2]=J[b+24>>2]}function Aja(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;a:{b:{c:{b=Qc(a);if(b>>>0>=6){b=(a+b|0)-6|0;if(!Wc(b,19966, -6))break c}J[694731]=28;break b}d=100;while(1){BR(b);J[c>>2]=384;e=Ou(a,194,c);if((e|0)>=0)break a;d=d-1|0;if(J[694731]==20?d:0)continue;break}tc(b,19966,6)}e=-1}bc=c+16|0;return e|0}function vn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](40)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function qu(a,b, -c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](32)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function psa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2414864;_c(a+28|0);b=J[a+16>>2];J[a+16>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987, -b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return bh(a)|0}function pjb(a){a=a|0;var b=0,c=0;c=J[a+28>>2];b=J[a+12>>2];if(b){kl(b+12|0);J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;if(b)gc[J[c+8>>2]](c,b);J[a+12>>2]=0}if(!J[a+20>>2]){b=J[a>>2];if(b)gc[J[c+8>>2]](c,b);J[a>>2]=0}}function p2(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b+4>>2];a:{if(!c){c=b;while(1){d=J[c+8>>2];e=J[d>>2]!=(c|0);c=d;if(e)continue; -break}break a}while(1){d=c;c=J[c>>2];if(c)continue;break}}if(J[a>>2]==(b|0))J[a>>2]=d;J[a+8>>2]=J[a+8>>2]-1;BC(J[a+4>>2],b);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b);return d|0}function apb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;c=J[b+36>>2];g=P(c,3);f=J[a+428>>2]+8|0;if(c){c=f;while(1){e=P(d,3)+b|0;H[c|0]=K[e+40|0];H[c+1|0]=K[e+41|0];H[c+2|0]=K[e+42|0];c=c+3|0;d=d+1|0;if(d>>>0>2])continue;break}}return ue(a,J[b>>2],g,f)|0}function Zmb(a,b,c){a=a|0;b=b| -0;c=c|0;if(J[c>>2]!=1246250066){Dc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];J[b+36>>2]=J[c+36>>2];H[b+40|0]=K[c+40|0];H[b+41|0]=K[c+41|0];H[b+42|0]=K[c+42|0];H[b+43|0]=K[c+43|0];H[b+44|0]=K[c+44|0];H[b+45|0]=K[c+45|0];H[b+46|0]=K[c+46|0];H[b+47|0]=K[c+47|0];return 0}function Xp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](48)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>> -2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function Spa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2424684;sc(a+16|0);b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)|0}function O7(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](60)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>> -2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function K3(a){var b=0,c=0,d=0,e=0;d=a+44|0;Ut(d);b=1;c=1;a:{b:switch(J[a+40>>2]-3|0){case 0:c=O[a+32>>3]/72;b=O[a+24>>3]/72;break a;case 3:c=O[a+32>>3]/25.4;b=O[a+24>>3]/25.4;break a;case 1:break b;default:break a}c=O[a+32>>3];b=O[a+24>>3]}Uw(d,b,c,1);e=a+56|0;Bj(e,d);Ck(e,a+48|0,1);Ck(e,a+52|0,0)}function JD(a,b,c){a=a|0;b=b|0;c=c| -0;var d=0;d=c;c=gc[J[a+152>>2]](68)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function Ix(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](52)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2]; -J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function ID(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](36)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function HD(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](56)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]= -J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function EGa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+24>>2];if(b){c=J[a+28>>2];if(c>>>0>=52){e=(c>>>0)/52|0;while(1){c=J[b>>2];if(c){qc(c-1|0);J[b>>2]=0}c=J[b+4>>2];if(c){qc(c);J[b+4>>2]=0}c=J[b+8>>2];if(c){qc(c);J[b+8>>2]=0}b=b+52|0;d=d+1|0;if((e|0)!=(d|0))continue;break}b=J[a+24>>2]}qc(b);J[a+24>>2]=0}}function Co(a,b,c){a=a|0;b=b| -0;c=c|0;var d=0;d=c;c=gc[J[a+152>>2]](44)|0;J[d>>2]=c;if(!c){Dc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function C4a(a){a=a|0;var b=0,c=0;J[a>>2]=350204;a:{b=J[a+8>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+8>>2]=0}b=J[a+172>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+172>>2]=0}if(H[a+ -123|0]<0)qc(J[a+112>>2]);u2(a+16|0);qc(a);return}ea(0)|0;yc();B()}function Bub(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];c=c+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function dbb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a+124|0;if((c|0)!=(b|0)){d=K[a+135|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a= -J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}yf(b,J[a+124>>2],J[a+128>>2]);return 0}f=b;b=(e|0)<0;Df(f,b?J[a+124>>2]:c,b?J[a+128>>2]:d)}return 0}function b5(a,b){var c=0,d=0,e=0;a:{if(b>>>0>255)break a;c=J[a+604>>2];c=gc[J[c+20>>2]](L[J[c+24>>2]+(b<<1)>>1])|0;d=J[a+584>>2];if(!d)break a;e=J[a+580>>2];b=0;while(1){b:{a=J[(b<<2)+e>>2];if(!a|K[a|0]!=K[c|0])break b;if(Ec(a,c))break b;return b}b=b+1|0;if((d|0)!=(b|0))continue;break}}return-1}function Pab(a,b){a=a|0;b=b|0;var c=0, -d=0,e=0,f=0;c=a+472|0;if((c|0)!=(b|0)){d=K[a+483|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}yf(b,J[a+472>>2],J[a+476>>2]);return 0}f=b;b=(e|0)<0;Df(f,b?J[a+472>>2]:c,b?J[a+476>>2]:d)}return 0}function Nab(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a+460|0;if((c|0)!=(b|0)){d=K[a+471|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}yf(b,J[a+460>>2],J[a+464>>2]);return 0}f= -b;b=(e|0)<0;Df(f,b?J[a+460>>2]:c,b?J[a+464>>2]:d)}return 0}function NV(a){var b=0,c=0,d=0;b=J[a+12>>2];J[a+12>>2]=0;a:{b:{if(!b)break b;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)==1)break a;if(c)break b;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}if(H[a+11|0]<0)qc(J[a>>2]);return a}ea(0)|0;yc();B()}function ECa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;e=c+12|0;d=ch(c+4|0,e,0,1);J[695492]=0;ca(5056,b|0,e|0,d|0);b=J[695492];J[695492]=0;a:{if((b| -0)==1)break a;J[695492]=0;aa(4989,a|0,J[c+12>>2])|0;a=J[695492];J[695492]=0;if((a|0)==1)break a;_c(d);bc=c+16|0;return}a=Z()|0;_c(d);ba(a|0);B()}function dib(a){a=a|0;var b=0,c=0,d=0,e=0;e=J[a>>2];b=J[a+8>>2];if(b){c=J[a+16>>2];d=J[c+4>>2];J[b+108>>2]=J[c>>2];J[b+112>>2]=d;J[b+124>>2]=J[c+16>>2];d=J[c+12>>2];J[b+116>>2]=J[c+8>>2];J[b+120>>2]=d}b=J[a+1512>>2];if(b){gc[b|0](J[a+1508>>2]);b=J[a+1508>>2];if(b)gc[J[e+8>>2]](e,b);J[a+1508>>2]=0}}function ajb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0, -g=0;if(b){f=J[d>>2]+P(J[d+4>>2],(a|0)/-4|0)|0;while(1){if(L[c+2>>1]){g=K[c+4|0]+8>>>4|0;d=0;while(1){e=f+((I[c>>1]+d|0)/4|0)|0;a=K[e|0]+g|0;H[e|0]=a-(a>>>8|0);d=d+1|0;if(d>>>0>1])continue;break}}c=c+6|0;b=b-1|0;if(b)continue;break}}}function Xma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+12>>2];a=c+108|0;if((a|0)!=(b|0))a:{e=K[b+11|0];d=e<<24>>24;if(H[c+119|0]>=0){if((d|0)>=0){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+8>>2]=J[b+8>>2];break a}yf(a,J[b>>2],J[b+4>>2]);break a}c=a;a=(d|0)<0;Df(c, -a?J[b>>2]:b,a?J[b+4>>2]:e)}return 0}function Q5a(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0;d=bc-32|0;bc=d;O[d+8>>3]=c;O[d+16>>3]=b;e=J[a+4>>2];f=J[e+28>>2];if(f){je(f,d+16|0,d+8|0);e=J[a+4>>2];c=O[d+8>>3];b=O[d+16>>3]}J[d+28>>2]=0;g=Ke(e,d+28|0),h=2,H[g|0]=h;a=J[d+28>>2];O[a+8>>3]=c;O[a>>3]=b;J[e>>2]=J[e>>2]+1;bc=d+32|0;return 1}function NUa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;we(b,K[a+208|0]);ao(a,b);pd(b,J[a+216>>2]-J[a+212>>2]>>3);c=J[a+212>>2];if((c|0)!=J[a+216>>2])while(1){e=O[(d<<3)+c>>3]* -100;a:{if(R(e)<2147483648){c=~~e;break a}c=-2147483648}pd(b,c);d=d+1|0;c=J[a+212>>2];if(d>>>0>2]-c>>3>>>0)continue;break}}function MK(a){var b=0,c=0,d=0;b=J[a+116>>2];if(b){c=b;d=J[a+120>>2];if((b|0)!=(d|0)){while(1){c=d-12|0;if(H[d-1|0]<0)qc(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[a+116>>2]}J[a+120>>2]=b;qc(c)}if(H[a+39|0]<0)qc(J[a+28>>2]);if(H[a+23|0]<0)qc(J[a+12>>2]);if(H[a+11|0]<0)qc(J[a>>2]);return a}function Jvb(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+2336>>2]=b;a:{if(!J[a+200>>2])break a; -c=gc[J[a+152>>2]](J[b+28>>2]+1|0)|0;if(!c){Dc(a,1,0,0);return 1}d=J[b+28>>2];if(d)tc(c,J[b+32>>2],d);d=gc[J[a+200>>2]](a,c)|0;gc[J[a+156>>2]](c,J[b+28>>2]+1|0);if(d)break a;Dc(a,904,0,0);return 904}return Lx(a)|0}function I8(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+28>>2];a:{if(c){c=c-1|0;J[b+28>>2]=c;if(c)break a}c=J[b+1144>>2];b:{if(!c)break b;d=J[b+1148>>2];if(!d)break b;gc[J[a+156>>2]](d,c)}c=J[b+1172>>2];c:{if(!c)break c;d=J[b+1176>>2];if(!d)break c;gc[J[a+156>>2]](d,c)}gc[J[a+156>>2]](b,1180)}return 0} -function D4a(a){a=a|0;var b=0,c=0;J[a>>2]=350204;a:{b=J[a+8>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+8>>2]=0}b=J[a+172>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+172>>2]=0}if(H[a+123|0]<0)qc(J[a+112>>2]);u2(a+16|0);return a|0}ea(0)|0;yc();B()}function AC(a,b,c){a=a|0;b=+b;c=c|0;a:{b:switch(c-3|0){case 0:b=O[a+8>>3]/(b/72);if(b==O[a+24>>3])break a;O[a+24>>3]=b;return 0;case 3:b=O[a+8>>3]/(b/25.4);if(b==O[a+24>>3])break a;O[a+24>>3]=b;return 0; -case 1:break b;default:break a}b=O[a+8>>3]/b;if(b==O[a+24>>3])break a;O[a+24>>3]=b}return 0}function wga(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;g=a;h=b;a=gc[J[J[a+8>>2]+20>>2]](a+8|0)|0;a:{if(K[a+11|0]>>>7|0){b=J[a>>2];break a}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;return Dn(g,h,c,d,e,f,i,b+(a<<2)|0)|0}function klb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){d=J[J[a>>2]+100>>2];while(1){b=e<<2;f=b+a|0;c=J[f+16>>2];if(c){b= -J[J[(J[J[b+247296>>2]+4>>2]<<2)+247008>>2]+16>>2];if(b){gc[b|0](c);c=J[f+16>>2]}if(c)gc[J[d+8>>2]](d,c);J[f+16>>2]=0}e=e+1|0;if((e|0)!=87)continue;break}if(a)gc[J[d+8>>2]](d,a)}}function Zf(a){var b=0,c=0,d=0;while(1){c=a;a=a+1|0;b=H[c|0];if((b|0)==32|b-9>>>0<5)continue;break}d=1;a:switch(b-43|0){case 2:d=0;case 0:b=H[a|0];c=a;break;default:break a}a=0;if(b-48>>>0<10)while(1){a=(P(a,10)-H[c|0]|0)+48|0;b=H[c+1|0];c=c+1|0;if(b-48>>>0<10)continue;break}return d?0-a|0:a}function Sra(a){a=a|0;var b=0; -J[a>>2]=2415608;b=J[a+56>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+60>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[a+64>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[695492]=0;_(5504,a|0);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(iG(a))}function Qib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a=J[a+16>>2];d=L[a+2>>1];a:{if(d+(L[a+6>>1]<<8)>>>0>>0)break a;c=L[a>>1];f=L[a+4>>1];if(c+(f<<8)>>>0>b>>>0)break a;e=b&255;if(e>>>0>d>>>0|c>>>0>e>>>0)break a;g=L[(J[a+12>>2]+(e-c<< -1)|0)+(P((d-c|0)+1|0,(b>>>8&65535)-f|0)<<1)>>1]}return g|0}function Ng(a){var b=0;b=J[a+16>>2];if(b)qc(b);b=J[a+20>>2];if(b)qc(b);J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a}function IOa(a,b,c,d,e,f,g){a=a|0;b=b|0;c=+c;d=+d;e=e|0;f=f|0;g=g|0;var h=0,i=0;J[a+32>>2]=g;O[a+16>>3]=d;O[a+8>>3]=c;J[a>>2]=b;J[a+28>>2]=f;h=a, -i=vd(g,4),J[h+24>>2]=i;if(J[a+28>>2]>0){g=0;while(1){b=g<<2;f=aZ(J[b+e>>2]);J[b+J[a+24>>2]>>2]=f;g=g+1|0;if((g|0)>2])continue;break}}return a|0}function H8a(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;g=J[a+4>>2];if((b|0)!=1){h=J[a>>2];J[h+24>>2]=b;J[h+20>>2]=15;gc[J[J[a>>2]>>2]](a)}else b=1;a=Xw(a,b,128);J[a+40>>2]=0;J[a+32>>2]=c;J[a+12>>2]=f;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=0;J[a+44>>2]=J[g+72>>2];J[g+72>>2]=a;return a|0}function E8a(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;g=J[a+4>>2];if((b|0)!=1){h=J[a>>2];J[h+24>>2]=b;J[h+20>>2]=15;gc[J[J[a>>2]>>2]](a)}else b=1;a=Xw(a,b,128);J[a+40>>2]=0;J[a+32>>2]=c;J[a+12>>2]=f;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=0;J[a+44>>2]=J[g+68>>2];J[g+68>>2]=a;return a|0}function Ayb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;d=K[a+20|0];e=K[a+21|0];J[c+24>>2]=K[a+22|0];J[c+20>>2]=e;J[c+16>>2]=d;cd(b,208078,c+16|0);a:{b:switch(K[a+20|0]-1|0){case 0:J[c>>2]=J[a+24>>2];cd(b,208148,c);break a;case 1:break b;default:break a}M9(b, -J[a+28>>2],J[a+32>>2])}bc=c+32|0}function zl(a,b,c){var d=0,e=0;if(!a)return;e=J[a>>2];d=J[a+4>>2];a:{if((e|0)<(d|0))break a;d=yl(a+12|0,d<<2,d<<3);J[a+12>>2]=d;if(!d)break a;d=J[a+4>>2];d=yl(a+16|0,d<<2,d<<3);J[a+16>>2]=d;if(!d)break a;J[a+4>>2]=J[a+4>>2]<<1}d=e<<2;N[d+J[a+12>>2]>>2]=b;N[d+J[a+16>>2]>>2]=c;J[a>>2]=J[a>>2]+1}function uLa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;J[c>>2]=13;Ef(a+8|0,c);b=rc(40);d=J[a+24>>2];e=J[a+28>>2];f=J[a+32>>2];a=J[c+4>>2];J[b+8>>2]=J[c>>2];J[b+12>>2]=a; -a=J[c+12>>2];J[b+16>>2]=J[c+8>>2];J[b+20>>2]=a;J[b+32>>2]=f;J[b+24>>2]=d;J[b+28>>2]=e;J[b>>2]=2331344;bc=c+16|0;return b|0}function tsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=gc[J[a+2296>>2]](K[c|0])|0;e=gc[J[a+2296>>2]](K[c+1|0])|0;H[b+1|0]=(d|0)!=0;H[b|0]=d>>>8;H[b+3|0]=(e|0)!=0;H[b+2|0]=e>>>8;b=b+4|0;c=c+2|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function s1a(){var a=0,b=0;a:{if(J[689441]==2)break a;if(!$B(2757764))break a;b:{if(J[689440])break b; -b=730936;a=Hi(735240);a=a?a:730936;c:{if(!K[a|0])break c;b=Wh(Qc(a)+2|0);if(!b)break b;b=ff(b,a);a=J[689440];if(!a|!K[a|0])break c;Gf(a)}J[689440]=b;Lt(17,2895)}J[689441]=2}return J[689440]}function ioa(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;f=bc-16|0;bc=f;e=J[a+12>>2];if(J[e+932>>2]!=8){J[f+12>>2]=J[b>>2];J[f+8>>2]=1;b=e+832|0;g=e+752|0;h=_t(b,g);if(!h){hn(b,g);O[e+912>>3]=O[e+864>>3]}oz(e+944|0,f+12|0,0,f+8|0,c,d,!h,e);H[J[a+12>>2]+928|0]=0}bc=f+16|0;return 0}function dUa(a, -b){a=a|0;b=b|0;var c=0,d=0;d=-1;a:{if(b>>>0>2147482623)break a;c=J[a+1032>>2];if(!((c|0)<=(b|0)&(J[a+1036>>2]+c|0)>(b|0))){if(Xg(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;c=Yd(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=c;if((c|0)<=0)break a;c=J[a+1032>>2]}d=K[((b-c|0)+a|0)+8|0]}return d|0}function Yg(a){var b=0,c=0;b=J[a+76>>2];if(!((b|0)>=0&(!b|J[694764]!=(b&-1073741825)))){b=J[a+4>>2];if((b|0)!=J[a+8>>2]){J[a+4>>2]=b+1;return K[b|0]}return Vy(a)}b=a+76|0;c=J[b>>2];J[b>>2]=c?c:1073741823;c=J[a+4>>2];a:{if((c| -0)!=J[a+8>>2]){J[a+4>>2]=c+1;a=K[c|0];break a}a=Vy(a)}J[b>>2]=0;return a}function RX(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[b>>2];if((f|0)<(J[a>>2]-1|0)){j=1;i=J[a+4>>2];d=i+f|0;e=K[d+1|0];g=K[d|0];h=f+2|0;J[b>>2]=h;g=g<<8;e=e|g;if(!(g-57344>>>0<4294965248|(J[a>>2]-1|0)<=(h|0))){a=K[d+3|0];d=K[h+i|0];J[b>>2]=f+4;e=((d<<8|a)+(e<<10)|0)-56613888|0}J[c>>2]=e}return j}function QX(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[b>>2];if((f|0)<(J[a>>2]-1|0)){j=1;i=J[a+4>>2];d=i+f|0;e=K[d|0];g=K[d+1|0];h= -f+2|0;J[b>>2]=h;g=g<<8;e=e|g;if(!(g-57344>>>0<4294965248|(J[a>>2]-1|0)<=(h|0))){a=K[h+i|0];d=K[d+3|0];J[b>>2]=f+4;e=((d<<8|a)+(e<<10)|0)-56613888|0}J[c>>2]=e}return j}function Dsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){e=J[a+2300>>2];d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=K[d|0];if(!((c|0)==L[e+836>>1]?K[e+56|0]:0))H[b+1|0]=255;f=J[a+2296>>2];if(f)c=gc[f|0](c)|0;H[b|0]=c;b=b+2|0;d=d+1|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function rr(a,b){a=a|0;b=b|0;var c=0,d= -0,e=0,f=0,g=0;a:{c=Ve(b);if(c>>>0<1073741808){b:{if(c>>>0<=1){H[a+11|0]=c;d=a;break b}d=c|3;if(d>>>0>=1073741823)break a;e=d+1|0;d=rc(e<<2);J[a+8>>2]=e|-2147483648;J[a>>2]=d;J[a+4>>2]=c}e=b;b=c<<2;f=Zc(d,e,b)+b|0,g=0,J[f>>2]=g;return a|0}Id(a);B()}Sd();B()}function rdb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>65535)break a;e=J[c+288>>2];if((e|0)<=0)break a;f=J[c+292>>2];while(1){c=J[(d<<2)+f>>2];b:{if(!c|K[c|0]!=K[a|0])break b;if((Qc(c)|0)!=(b|0))break b;if(!kd(c,a,b))break a}d=d+1|0; -if((e|0)!=(d|0))continue;break}d=0}return d|0}function qIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[J[b+16>>2]+40>>2];if(!b){J[a>>2]=0;H[a+11|0]=0;return}d=b+36|0;b=xi(b+32|0,c);a:{if((d|0)!=(b|0)){if(H[b+39|0]>=0){c=J[b+32>>2];J[a>>2]=J[b+28>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+36>>2];break a}Re(a,J[b+28>>2],J[b+32>>2]);break a}J[a>>2]=0;H[a+11|0]=0}}function pr(a){var b=0,c=0,d=0,e=0;J[a>>2]=349500;c=J[a+4>>2];if(c){b=J[c+4>>2];a:{if(!b)break a;d=b-1|0;J[c+4>>2]=d;e=J[c+12>>2]+(b<<2)|0;while(1){e=e-4|0;b= -J[e>>2];if(b){qc(b);d=J[c+4>>2]}b=d;d=b-1|0;J[c+4>>2]=d;if(b)continue;break}d=J[c+12>>2];if(!d)break a;qc(d)}qc(c);J[a+4>>2]=0}return a}function nsa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2414864;_c(a+28|0);b=J[a+16>>2];J[a+16>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(bh(a))}function hD(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;b=H[a|0];e=b&255;if(!e| -!(K[(e>>>3|0)+254784|0]>>>(b&7)&1))break a;while(1){c=65535;if((d&65535)>>>0>6551)break a;c=b+254816|0;b=H[a+1|0];a=a+1|0;d=K[c|0]+P(d,10)|0;c=d;if(K[((b&248)>>>3|0)+254784|0]>>>(b&7)&1)continue;break}}return c&65535}function c9a(a){a=a|0;var b=0,c=0;J[a>>2]=340472;a:{b=J[a+28>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+28>>2]=0}Qe(a+212|0);b=J[a+120>>2];if(b){J[a+124>>2]=b;qc(b)}if(H[a+47|0]<0)qc(J[a+36>>2]);Ed(a+32|0);qc(a);return}ea(0)| -0;yc();B()}function a5(a,b,c){var d=0,e=0,f=0;e=bc-16|0;bc=e;f=J[J[a+128>>2]+52>>2];a:{b:{if(!f){d=b<<2;b=d+J[a+432>>2]|0;d=d+J[a+428>>2]|0;break b}d=e+8|0;a=gc[J[J[f>>2]>>2]](J[f+4>>2],b,d)|0;if(a)break a;b=e+12|0}b=J[b>>2];d=J[d>>2];J[c+12>>2]=d;a=0;J[c>>2]=0;J[c+4>>2]=d;J[c+8>>2]=b+d}bc=e+16|0;return a}function vtb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+964>>2];a:{if(!e)break a;c=J[a+16>>2];if((c|0)!=J[b+16>>2])break a;d=J[a+20>>2];if((d|0)!=J[b+20>>2])break a;d=P(c,d);c=J[a+964>>2];if(!c){c= -zc(d);J[a+964>>2]=c;if(!c)break a;e=J[b+964>>2]}tc(c,e,d);H[a+388|0]=K[b+388|0];f=1}return f|0}function oT(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2424684;sc(a+16|0);b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function bu(a){a=Q(a);var b=Q(0),c=Q(0),d=Q(0);if(a>Q(2))a=Q(0);else{b=Q(a+Q(-1));c=Q((b<=Q(0)?Q(0):Q(b*Q(b*b)))*Q(-4)); -d=Q((a<=Q(0)?Q(0):Q(Q(a*a)*a))*Q(6));b=Q(a+Q(1));a=Q(a+Q(2));a=Q(Q(c+Q(d+Q(Q((b<=Q(0)?Q(0):Q(b*Q(b*b)))*Q(-4))+(a<=Q(0)?Q(0):Q(a*Q(a*a))))))*Q(.1666666716337204))}return Q(a)}function a7(a,b,c){var d=0,e=0;d=bc-16|0;bc=d;a:{b:{c:{e=!b;d:{if(e|!c|((e?-1:J[b+8>>2])|0)!=1)break d;Cr(c,d+12|0,d+8|0,0,0);if(!J[d+12>>2]|!J[d+8>>2])break d;if(a)break c;a=nu(b)}if(a)break b;a=0;break a}PM(a,b)}b=xl(0,b,c);J[d+4>>2]=b;if(!b)break a;wl(a,b,c);wd(d+4|0)}bc=d+16|0;return a}function w8(a){var b=0,c=0,d=0,e=0, -f=0,g=0;a:{c=J[a+964>>2];if(!c)break a;d=J[a+16>>2];e=zc(d);if(!e)break a;b=J[a+20>>2];if((b|0)>=2){b=P(b-1|0,d)+c|0;while(1){g=tc(e,b,d);b=tc(b,c,d);c=tc(c,g,J[a+16>>2]);d=J[a+16>>2];c=c+d|0;b=b-d|0;f=f+1|0;if((f|0)<(J[a+20>>2]/2|0))continue;break}}qc(e)}}function sxa(a,b){a=a|0;b=b|0;var c=0,d=0;vv(b,J[a+8>>2]);vv(b,J[a+12>>2]);Pm(b,K[a+16|0]);Pm(b,J[a+16>>2]>>8);Pm(b,K[a+20|0]);Pm(b,J[a+20>>2]>>8);c=O[a+24>>3]*10+.5;a:{if(R(c)<2147483648){d=~~c;break a}d=-2147483648}Pm(b,d);a=J[a+32>>2]-1|0;if(a>>> -0<=2)a=J[(a<<2)+2405428>>2];else a=0;Pm(b,a)}function qaa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{e=J[a+584>>2];if(e){f=J[e+28>>2];if(!f)break b;if(!J[e+40>>2])break a;if(!(gc[f|0](a,b,c,d)|0))return 0;gc[J[e+40>>2]](a,b,c);return 1}fa(72282,70388,393,197566);B()}fa(77938,70388,394,197566);B()}fa(78533,70388,395,197566);B()}function ot(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[b|0];if(d){e=b;while(1){f=P(f,17)+(d&255)|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}}d=J[J[a>>2]+((f>>>0)%M[a+ -4>>2]<<2)>>2];if(d)while(1){if(!Ec(J[d>>2],b)){I[c>>1]=L[d+4>>1];return 1}d=J[d+8>>2];if(d)continue;break}I[c>>1]=0;return 0}function n7(a,b){var c=0,d=0,e=0,f=0;if(!a)return;c=J[a>>2];if(c)qc(c);a:{b:{if(!b)break b;d=Qc(b);e=bd(d+1|0,1);if(!e)break a;if((d|0)<=0)break b;c=0;while(1){f=K[b+c|0];if(f){H[c+e|0]=f;c=c+1|0;if((d|0)!=(c|0))continue;break b}break}if((c|0)>=(d|0))break b;wc(c+e|0,0,d-c|0)}J[a>>2]=e}}function ed(a){a=a|0;var b=0;b=bc-32|0;bc=b;J[a>>2]=2413876;a:{if(J[a+4>>2]>0){J[695492]= -0;a=ja(5018,b+8|0,2382790,2373712,95,2413884,0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[695492]=0;_(5019,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a;B()}bc=b+32|0;return a|0}ea(0)|0;yc();B()}function XB(a,b){var c=0,d=0,e=0,f=0;c=b&255;e=H[a+75|0];d=e;while(1){d=(d|0)<=0?7:d-1|0;if((c|0)!=K[(d+a|0)+76|0])continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((e|0)!=(c|0)){e=a+76|0;while(1){f=d+e|0;d=c;H[f|0]=K[e+c|0];c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[a+75|0])continue;break}}H[(a+d|0)+76|0]=b}function Wn(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a+8>>2]=13;J[a>>2]=2330896;f=J[e+4>>2];J[a+8>>2]=J[e>>2];J[a+12>>2]=f;f=J[e+12>>2];J[a+16>>2]=J[e+8>>2];J[a+20>>2]=f;J[a+44>>2]=0;e=b+c|0;J[a+40>>2]=e;J[a+36>>2]=d+e;J[a+32>>2]=d;J[a+28>>2]=c;J[a+24>>2]=b;J[a>>2]=2331228;return a|0}function Wc(a,b,c){var d=0,e=0;a:{b:{if(c>>>0>=4){if((a|b)&3)break b;while(1){if(J[a>>2]!=J[b>>2])break b;b=b+4|0;a=a+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a}while(1){d=K[a|0];e=K[b|0];if((d|0)==(e|0)){b=b+1| -0;a=a+1|0;c=c-1|0;if(c)continue;break a}break}return d-e|0}return 0}function Qc(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3))break b;if(!K[b|0])return 0;while(1){b=b+1|0;if(!(b&3))break b;if(K[b|0])continue;break}break a}while(1){c=b;b=b+4|0;d=J[c>>2];if(!((d^-1)&d-16843009&-2139062144))continue;break}while(1){b=c;c=b+1|0;if(K[b|0])continue;break}}return b-a|0}function Lxb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[b>>2];J[a+12>>2]=d;d=zc(d<<2);J[a+16>>2]=d;e=-1;a:{if(!d)break a;if(J[b>>2])while(1){b:{if(!Lg(c, -d))if(!Lg(c,d+4|0))break b;a=J[a+16>>2];if(!a)break a;qc(a);return-1}d=d+8|0;f=f+1|0;if(f>>>0>2])continue;break}e=0}return e|0}function I9(a){var b=0,c=0,d=0;c=3;a:{b=J[a+20>>2]-8|0;b:{if(b){if((b|0)==16)break b;break a}c=1;b=J[a+40>>2];if((b|0)<=0)break b;a=J[a+48>>2];while(1){c=J[a>>2];if((c|0)!=J[a+4>>2])return 3;if((c|0)!=J[a+8>>2])return 3;a=a+16|0;c=1;d=(b|0)>1;b=b-1|0;if(d)continue;break}}return c}ra();B()}function Gg(a,b){var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;H[d+15|0]=0;J[b>>2]=0;c=J[a+ -8>>2];a:{b:{f=J[a+20>>2];c:{if(f){e=d+15|0;if((gc[f|0](a,c,e,1)|0)!=1)break b;c=J[a+8>>2];break c}if(M[a+4>>2]<=c>>>0)break b;e=J[a>>2]+c|0}b=K[e|0];J[a+8>>2]=c+1;break a}J[b>>2]=85;b=0}bc=d+16|0;return b<<24>>24}function v1(a,b){var c=0,d=0;c=bc-256|0;bc=c;J[c+24>>2]=J[183725];d=J[183724];J[c+16>>2]=J[183723];J[c+20>>2]=d;d=J[183722];J[c+8>>2]=J[183721];J[c+12>>2]=d;d=J[183720];J[c>>2]=J[183719];J[c+4>>2]=d;a:{if(J[b>>2]<=0){a=u1(0,ag(a,c+32|0,c,b),c,b);if(J[b>>2]<=0)break a}a=0}bc=c+256|0;return a} -function ln(a){a=a|0;var b=0,c=0;J[a>>2]=340472;a:{b=J[a+28>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+28>>2]=0}Qe(a+212|0);b=J[a+120>>2];if(b){J[a+124>>2]=b;qc(b)}if(H[a+47|0]<0)qc(J[a+36>>2]);Ed(a+32|0);return a|0}ea(0)|0;yc();B()}function fd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{b:{c:{d:{d=J[a>>2];if(d){a=0;if(!c)break a;d=J[d+12>>2];if(!d|!K[d|0])break c;a=1;if(!b|!K[b|0])break a;if((c|0)<=0)break d;return kd(d,b,c)|0}a=0;if(!b)break a; -if(c)break b;break a}return Ec(d,b)|0}if(!b)break a}a=K[b|0]?-1:0}return a|0}function Wj(a,b,c,d){var e=0;e=bc-32|0;bc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[e+20>>2]=0;J[e+16>>2]=d;Cc(0,0,0,a,0,1,b,3,d,0,0,0,c,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[e+4>>2]=0;J[e>>2]=d;Cc(0,0,0,0,0,1,b,3,d,0,0,0,c,e)}bc=e+32|0}function Nj(a,b){var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;a:{if(!b){b=0;break a}c=b>>31;e=(c^b)-c|0;c=S(e);qi(d,e,0,0,0,c+81|0);e=0+J[d+8>> -2]|0;c=(J[d+12>>2]^65536)+(16414-c<<16)|0;c=e>>>0>>0?c+1|0:c;f=b&-2147483648|c;c=J[d+4>>2];b=J[d>>2]}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=e;J[a+12>>2]=f;bc=d+16|0}function Gnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1665684045){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=J[c+56>>2];J[b+60>>2]=J[c+60>>2];J[b+64>>2]=J[c+64>>2];return 0}function Dga(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;g=a;h=b;a=gc[J[J[a+8>>2]+20>>2]](a+8|0)|0;a:{if(K[a+11|0]>>>7|0){b=J[a>>2];break a}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;return En(g,h,c,d,e,f,i,b+a|0)|0}function y6(a,b){var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[a+36>>2];a:{if(!d)break a;d=J[d+28>>2];b=cD(a+36|0,b,c+12|0,c+8|0);J[c+4>>2]=b;if(b)break a;b=J[c+8>>2];e=Zd(d,b+1|0,c+4|0);if(!J[c+4>>2]){if(b)tc(e,J[c+12>>2],b);H[b+e|0]=0}if(J[a+68>>2])break a;Sf(J[a+ -36>>2],c+12|0)}bc=c+16|0;return e}function qH(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+644>>2];if((c|0)<=0)break a;d=J[a+648>>2];a=d+P(c,5)|0;while(1){c=a-5|0;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))==(K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24)))return K[a-1|0];a=c;if(c>>>0>d>>>0)continue;break}}return 0}function q3a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[a+188>>2];a:{if(!d)break a;if(vo(d,b,40970))break a;J[c+12>>2]=0;if(G5(J[J[a+188>>2]+84>>2],c+12|0))break a;b=J[a+ -188>>2];d=L[b+68>>1];e=O[a+192>>3];a=J[J[b+84>>2]+56>>2];H5(J[c+12>>2]);e=e*+(a|0)/+(d>>>0)}bc=c+16|0;return+e}function er(a,b){var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;J[a+84>>2]=2;d=J[a>>2];e=0;a:{if(!d)break a;e=0;if(J[d+108>>2]!=-554844497)break a;e=J[d+124>>2]}d=J[a+112>>2];f=J[a+108>>2];J[c+4>>2]=0;J[c>>2]=30575;Cc(e,d,f,a,0,1,2,2,30575,0,0,0,b,c);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;bc=c+16|0}function YKa(a){a=a|0;var b=0,c=0;b=J[a+8>>2];a:{b:{if(b){a=J[b+36>>2];if((a|0)>=J[b+28>>2]){if(!gt(b))return-1; -a=J[b+36>>2]}a=J[b+32>>2]+a|0;break b}c=-1;if(J[a+16>>2])break a;b=J[a+53312>>2];if((b|0)>=J[a+53308>>2]){if(!GA(a))break a;b=J[a+53312>>2]}a=(a+b|0)+49208|0}c=K[a|0]}return c|0}function Thb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];a:{if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=sh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+65|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function Qua(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0;c=rc(108);J[695492]=0;d=aa(5457,c|0,b|0)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[d>>2]=2412580;c=J[b+96>>2];J[d+92>>2]=J[b+92>>2];J[d+96>>2]=c;c=J[b+104>>2];J[d+100>>2]=J[b+100>>2];J[d+104>>2]=c;J[a>>2]=0;md(a,d);return}a=Z()|0;qc(c);ba(a|0);B()}function JIa(a,b){a=a|0;b=b|0;var c=0;H[a+12|0]=0;J[a+8>>2]=1;J[a+4>>2]=2337492;J[a>>2]=2337008;c=rc(52);J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[a+16>>2]=c;J[c+36>>2]=b;J[c+ -48>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;return a|0}function sKa(a){a=a|0;var b=0;b=J[a+8>>2];if(!b){if(!J[a+32784>>2])while(1){if(!(!J[a+34092>>2]|!J[a+34096>>2]))return-1;FA(a);if(!J[a+32784>>2])continue;break}return K[(J[a+32780>>2]+a|0)+12|0]}a=J[b+36>>2];if((a|0)>=J[b+28>>2]){if(!gt(b))return-1;a=J[b+36>>2]}return K[J[b+32>>2]+a|0]}function Xyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;d=li(a,b+14|0,2);a:{b:{if((d|0)<0)break b;c=d;while(1){if((c|0)>0){e=-1;c=c-1|0;if((Ij(a,K[c+(b+14|0)|0])|0)!=-1)continue; -break a}break}if(K[b+14|0]!=80|(d|0)<2)break b;e=0;if(K[b+15|0]-48>>>0<10)break a}e=-1}bc=b+16|0;return e|0}function Oyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;e=-1;d=li(a,b,16);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((Ij(a,H[c+b|0])|0)!=-1)continue;break a}break}if((d|0)<16)break a;e=(H[b+7|0]|(H[b+5|0]<<16|K[b+4|0]<<24|H[b+6|0]<<8))!=1783636E3?-1:0}bc=b+16|0;return e|0}function Il(a,b,c,d){var e=0,f=0,g=0;e=bc-160|0;bc=e;f=b?a:e+158|0;J[e+148>>2]=f;a=-1;g=b-1|0;J[e+152>>2]= -b>>>0>=g>>>0?g:0;e=wc(e,0,144);J[e+76>>2]=-1;J[e+36>>2]=6522;J[e+80>>2]=-1;J[e+44>>2]=e+159;J[e+84>>2]=e+148;a:{if((b|0)<0){J[694731]=61;break a}H[f|0]=0;a=lF(e,c,d)}bc=e+160|0;return a}function I$(a){var b=0,c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;a:{if(!a)break a;d=J[a+4>>2];b=gc[J[659447]](8)|0;if(b){J[b>>2]=0;J[b+4>>2]=0;if(d)e=b,f=$e(d),J[e+4>>2]=f;a=J[a>>2];if(a)a=I$(a);else a=0;J[b>>2]=a;break a}J[c>>2]=17038;Cc(0,0,0,0,0,23,2,3,17038,0,0,0,32863,c);b=0}bc=c+16|0;return b}function otb(a){a=a|0;var b= -0,c=0,d=0,e=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+P(b,3)|0;b=c+P(b,6)|0;c=0;while(1){H[b+5|0]=0;e=K[d+2|0];H[b+3|0]=0;H[b+4|0]=e;e=K[d+1|0];H[b+1|0]=0;H[b+2|0]=e;H[b|0]=K[d|0];b=b-6|0;d=d-3|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function nF(a,b,c,d){var e=0,f=0,g=0,h=0;e=bc-160|0;bc=e;J[e+60>>2]=b;J[e+20>>2]=b;J[e+24>>2]=-1;f=e+16|0;lk(f,0,0);oF(e,f,d,1);d=J[e+8>>2];g=J[e+12>>2];f=J[e>>2];h=J[e+4>>2];if(c)J[c>>2]=J[e+136>>2]+((J[e+20>>2]-J[e+60>>2]|0)+b|0);J[a+8>> -2]=d;J[a+12>>2]=g;J[a>>2]=f;J[a+4>>2]=h;bc=e+160|0}function gib(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if(!b)return 3;a:{b:{if(K[a+68|0]){a=J[a+12>>2];if((I[a+20>>1]+I[a+56>>1]|0)+1>>>0>M[a+8>>2]){a=sh(a,0,1);if(a)break a}c=L[b>>1];a=c<<16>>16;if((a|0)<=0)break b;I[(J[b+12>>2]+(c<<1)|0)-2>>1]=L[b+2>>1]-1}a=L[b>>1]}I[b>>1]=a+1;a=0}return a|0}function fya(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2404304;b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d| -0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)|0}function b_a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{d=rw(J[J[b+4>>2]+4>>2]);b:{if(!d){H[a+11|0]=0;break b}c=Qc(d);if(c>>>0>=2147483632)break a;c:{if(c>>>0<=10){H[a+11|0]=c;break c}e=(c|15)+1|0;b=rc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}a=Zc(a,d,c)+c|0}H[a|0]=0;return}Id(a);B()}function VBa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2385864;b=J[a+16>>2];J[a+16>>2]=0;a:{if(!b)break a; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)|0}function Rf(a){a=a|0;var b=0,c=0,d=0;b=J[a+596>>2];if(b)qc(bZ(b));b=rc(40);J[b>>2]=0;J[b+28>>2]=0;J[b+32>>2]=16;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[695492]=0;c=aa(3376,16,4)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[b+24>>2]=c;J[a+596>>2]=b;return}a=Z()|0;qc(b);ba(a|0);B()}function Ota(a){a=a|0; -var b=0;b=bc-32|0;bc=b;J[a>>2]=2413876;a:{if(J[a+4>>2]>0){J[695492]=0;a=ja(5018,b+8|0,2382790,2373712,95,2413884,0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[695492]=0;_(5019,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}qc(a);bc=b+32|0;return}B()}function Gxb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;J[c>>2]=J[a+12>>2];cd(b,210353,c);e=J[a+16>>2];a:{if(e){f=J[a+20>>2];while(1){if(K[d+f|0]-32>>>0>=95)break a;d=d+1|0;if((e|0)!=(d|0))continue;break}}Td(210366,7,1,b);Td(J[a+ -20>>2],1,J[a+16>>2],b);Ph(10,b)}bc=c+16|0;return 0}function Eja(a,b){a=a|0;b=b|0;var c=0;a:{a=yF(a);b:{if((a|0)==-1)break b;b=yF(b);if((b|0)==-1)break b;if(K[a+2456736|0]<216)break a}J[694731]=28;return-1}c=a<<1|b<<16|1;a=K[b+2456736|0]-202|0;if(!(a>>>0>8|!(1<>2]=0;J[a>>2]=c;return a|0}return c|0}function f_(a){var b=0,c=0;a:{if(J[a+12>>2]>0)while(1){c=J[a+4>>2];J[695492]=0;_(3205,(b<<4)+c|0);c=J[695492];J[695492]=0;if((c|0)==1)break a;b=b+1|0;if((b|0)> -2])continue;break}b=J[a+4>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a}ea(0)|0;yc();B()}function Tbb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+12>>2];if(c){gc[J[J[c>>2]+12>>2]](c)|0;J[a+12>>2]=0}if(!b){c=rc(176);J[695492]=0;b=$(2228,c|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+12>>2]=b;gc[J[J[b>>2]+64>>2]](b);return}a=Z()|0;qc(c);ba(a|0);B()}J[a+12>>2]=b;gc[J[J[b>>2]+8>>2]](b)|0}function QG(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2385120;b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)|0}function J2(a,b,c,d){var e=0,f=0;e=O[c>>3];a=J[a>>2];b=J[b>>2];a:{if(!(e>R(O[a>>3]-O[b>>3]))|!(R(O[a+24>>3]-O[b+24>>3])>3]-O[b+16>>3])>3]-O[b+8>>3])>3]-O[b+32>>3])>3]-O[b+40>>3])>1]!=65535?a+372|0:0)|0;case 5:return a+476|0;case 1:return a+260|0;case 6:c=J[a+568>>2]?a+568|0:0;break;default:break a}return c|0}function FGa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+24>>2];if(b){c=J[a+28>>2];if(c>>>0>=60){e=(c>>>0)/60|0;while(1){c=J[b>>2];if(c){qc(c);J[b>>2]=0}c=J[b+4>>2];if(c){qc(c);J[b+4>>2]=0}qc(J[b+56>>2]);J[b+56>>2]=0;b=b+60|0;d=d+1|0;if((e|0)!=(d| -0))continue;break}b=J[a+24>>2]}qc(b);J[a+24>>2]=0}}function uyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-32|0;bc=c;J[c+16>>2]=J[a+20>>2];cd(b,208372,c+16|0);if(J[a+20>>2])while(1){e=J[a+24>>2]+(d<<3)|0;f=J[e>>2];g=K[e+4|0];J[c+8>>2]=K[e+5|0];J[c+4>>2]=g;J[c>>2]=f;cd(b,208521,c);d=d+1|0;if(d>>>0>2])continue;break}bc=c+32|0}function oDa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2381848;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d| -0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)|0}function cj(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a>>2]+(b<<2)|0;f=J[c>>2];e=J[a+8>>2];d=e-1|0;if((d|0)>(b|0)){Zc(c,c+4|0,(b^-1)+e<<2);d=J[a+8>>2]-1|0}J[a+8>>2]=d;c=J[a+12>>2];b=J[a+4>>2];c=(c|0)>0?c:(b|0)/2|0;if((c|0)<=(b-d|0)){b=b-c|0;J[a+4>>2]=b;g=a,h=Nd(J[a>>2],b,4),J[g>>2]=h}return f}function bAa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2401016;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a; -J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)|0}function _xa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2404556;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)|0}function Ypa(a){a=a|0;var b= -0,c=0,d=0;J[a>>2]=2422912;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)|0}function UC(a,b,c){var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=0;a:{if(!a)break a;f=J[a+92>>2];d=0;if(!f)break a;d=0;if(!J[a+16>>2])break a;J[e+12>>2]=b;while(1){g=gc[J[J[f+12>>2]+16>>2]](f,e+12|0)|0;if(g>>>0>=M[a+16>>2])continue;break}d=g?J[e+12>>2]: -0}a=d;if(c)J[c>>2]=g;bc=e+16|0;return a}function Q_a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[a>>2];if(d)UB(d);J[a>>2]=0;d=J[a+4>>2];if(d){qc(d);J[a+4>>2]=0}if(b){d=J[689498];J[689498]=d|1;J[c+12>>2]=0;J[c+8>>2]=0;kr(b,Ve(b),c+12|0,c+8|0,0);b=kK(J[c+12>>2],0);e=J[c+12>>2];if(e)qc(e);J[a>>2]=b;J[689498]=d}bc=c+16|0}function Axa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2404676;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a; -J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return Hq(a)|0}function zsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){d=J[a+2312>>2];b=J[a+2316>>2];while(1){e=gc[J[a+2296>>2]](K[d|0])|0;c=e>>>8|0;H[b+4|0]=c;H[b+2|0]=c;H[b|0]=c;c=(e|0)!=0;H[b+5|0]=c;H[b+3|0]=c;H[b+1|0]=c;b=b+6|0;d=d+1|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function wM(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b:{if(!b)break b;d=J[c+4>>2];if((d|0)<=0)break b; -while(1){d=d-1|0;J[c+4>>2]=d;qc(J[J[c+8>>2]+(d<<2)>>2]);d=J[c+4>>2];if((d|0)>0)continue;break}}if(J[c+12>>2])wM(c+12|0,b);b=J[c+8>>2];if(b)qc(b);qc(c);J[a>>2]=0}}function ud(a){a=a|0;var b=0,c=0;J[a+24>>2]=2381060;J[a>>2]=2381028;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2381060;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}sc(a+8|0);return a|0}function uGa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc= -c;b=J[J[b+4>>2]+8>>2];J[c+4>>2]=0;H[c+15|0]=0;d=J[J[b>>2]+12>>2];J[695492]=0;ca(d|0,a|0,b|0,c+4|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function eG(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2424992;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return ed(a)| -0}function Yk(a){var b=0,c=0,d=0,e=0;d=J[a+56>>2];a:{b=J[a+60>>2];if((b|0)>=0|(b|0)>0){c=J[a+12>>2];a=J[a+8>>2];if((b|0)==(c|0)&d>>>0>a>>>0|b>>>0>c>>>0)break a;e=!(a|c);fc=e?0:c-(b+(a>>>0>>0)|0)|0;return e?0:a-d|0}fa(2341753,2338843,586,2342040);B()}fa(2342072,2338843,587,2342040);B()}function QM(a,b,c){var d=0,e=0;d=c-1|0;a:{if(d>>>0>31|!(1<>2]=1;J[d+8>>2]=c;J[d+4>>2]=b;J[d>>2]=a;a=(P(a,c)+31|0)/32|0;J[d+12>>2]=a;a=gc[J[659405]](P(a, -b)<<2)|0;if(!a)break a;J[d+40>>2]=a;Ao(d,0);e=d}return e}function to(a){var b=0,c=0;J[a+20>>2]=0;J[a+36>>2]=0;J[a+48>>2]=0;b=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>>2]=b;c=J[a+32>>2];b=a- -64|0;J[b>>2]=J[a+28>>2];J[b+4>>2]=c;J[a+88>>2]=J[a+52>>2];b=J[a+40>>2];J[a+72>>2]=J[a+36>>2];J[a+76>>2]=b;b=J[a+48>>2];J[a+80>>2]=J[a+44>>2];J[a+84>>2]=b}function Hi(a){var b=0,c=0,d=0,e=0;b=Ly(a,61);if((b|0)==(a|0))return 0;d=b-a|0;a:{if(K[d+a|0])break a;b=J[694737];if(!b)break a;c=J[b>>2];if(!c)break a;while(1){b:{if(!kd(a, -c,d)){c=J[b>>2]+d|0;if(K[c|0]==61)break b}c=J[b+4>>2];b=b+4|0;if(c)continue;break a}break}e=c+1|0}return e}function Fwb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=212552;J[a+12>>2]=0;J[a+16>>2]=0;a:{d=LC(24);if(d){if(c?b:0)break a;qc(d)}J[a+4>>2]=0;return a|0}J[d+20>>2]=b;J[d+12>>2]=b;J[d+8>>2]=c;J[d+4>>2]=b;J[d>>2]=1;J[d+16>>2]=b+c;J[a+16>>2]=c;J[a+4>>2]=d;return a|0}function rob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=J[b+40>>2];d=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c&65280)<<8|(c>>> -8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;H[d+12|0]=K[b+36|0];c=J[b+40>>2];if(c)tc(d+13|0,J[b+44>>2],c);return ue(a,J[b>>2],e+5|0,d+8|0)|0}function onb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1129074510){Dc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];H[b+36|0]=K[c+36|0];H[b+37|0]=K[c+37|0];H[b+38|0]=K[c+38|0];H[b+39|0]=K[c+39|0];H[b+40|0]=K[c+40|0];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];return 0}function eya(a){a=a|0;var b=0,c=0,d=0;J[a>> -2]=2404304;b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function Wwb(a){a=a|0;var b=0,c=0,d=0;if(J[a+4>>2]==16)d=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else d=J[a+36>>2];c=J[a+40>>2];b=J[a+52>>2];gc[J[J[b>>2]+20>>2]](b,2)|0;c=gc[J[J[b>>2]+20>>2]](b,J[c+16>>2]<257?1:2)|0;b=gc[J[J[b>>2]+20>>2]](b,1)|0;J[J[d+1872>>2]+P(c, -1076)>>2]=b;T8(a,c)}function UBa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2385864;b=J[a+16>>2];J[a+16>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function ML(a,b,c){var d=0;d=bc-16|0;bc=d;a:{if(b>>>0<=255){b=Me(a,b&4?260528:260560,c);break a}b=Me(a,260592,d+11|0);if(b)break a;I[c>>1]=K[d+11|0]-128;I[c+2>>1]=K[d+12|0]-128;I[c+4>>1]=K[d+13|0]-128; -I[c+6>>1]=K[d+14|0]-128;a=K[d+15|0];I[c+10>>1]=0;I[c+8>>1]=a-128}bc=d+16|0;return b}function H9(a,b,c){var d=0;a:{if((b|0)==1){d=32768;if(!c)break a}b:{if(c-1>>>0>65533|b)break b;c:switch(a-3|0){case 2:d=c-1|0;if(d>>>0>=3)break b;break a;case 0:d=0;if((c|0)!=1)break b;break a;default:return c-1&32767;case 1:break c}d=c-1|0;if(d>>>0<3)break a}d=65536}return d}function GCa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2385120;b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492]; -J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function $q(a,b){var c=0,d=0,e=0;c=bc-32|0;bc=c;d=J[b>>2];a:{if((d|0)>=1048577){J[c>>2]=31140;Cc(0,0,0,0,0,30,2,3,31140,0,0,0,32863,c);break a}d=d<<1;a=gc[J[659452]](a,d|1)|0;if(!a){J[c+16>>2]=36865;Cc(0,0,0,0,0,30,2,3,36865,0,0,0,32863,c+16|0);break a}J[b>>2]=d;e=a}bc=c+32|0;return e}function lea(a){a=a|0;var b=0,c=0;b=J[a+8>>2];J[695492]=0;b=ha(6762,0,0,4,b|0)|0;c= -J[695492];J[695492]=0;a:{if((c|0)==1)break a;if(b)a=-1;else{a=J[a+8>>2];if(!a)return 1;J[695492]=0;a=$(6763,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;a=(a|0)==1}return a|0}ea(0)|0;yc();B()}function j2a(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;J[b+12>>2]=0;a:{b:{c=K[a+11|0];d=c<<24>>24<0;e=d?J[a>>2]:a;if(e){a=d?J[a+4>>2]:c;if(a)break b}a=Oj(0,18772);break a}Ep(e,a,b+12|0,b+8|0,0);c=J[b+12>>2];a=Oj(c,18772);if(!c)break a;qc(c)}if(a)fg(a);bc=b+16|0;return(a|0)!=0|0}function dm(a,b,c){a=a| -0;b=b|0;c=c|0;var d=0,e=0;if(!((b|0)<0|(c|0)<=0|(c^2147483647)>>>0>>0)){d=J[a>>2];e=(d|0)<(b+c|0)?d-b|0:c;c=d-e|0;if((c|0)>=(b|0))while(1){c=J[a+4>>2]+b|0;H[c|0]=K[c+e|0];c=J[a>>2]-e|0;d=(c|0)>(b|0);b=b+1|0;if(d)continue;break}J[a>>2]=c;kh(a,c)}return a|0}function dh(a){var b=0,c=0;if(a){b=J[a+4>>2];if(b)gc[J[659451]](b);b=J[a+8>>2];if(b)gc[J[659451]](b);b=J[a+44>>2];if(b)gc[J[659451]](b);b=J[a+48>>2];if(b)gc[J[659451]](b);b=J[a+40>>2];a:{if(!b)break a;c=J[a+12>>2];if(!c)break a;gc[b|0](c)}b=J[a>> -2];if(b)cn(b);gc[J[659451]](a)}}function P1(a){a=a|0;J[a+272>>2]=0;J[a+276>>2]=0;J[a+264>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+320>>2]=0;J[a+324>>2]=0;J[a+344>>2]=0;J[a+348>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+288>>2]=0;J[a+292>>2]=0;J[a+296>>2]=0;J[a+328>>2]=0;J[a+332>>2]=0;J[a+336>>2]=64;J[a+340>>2]=0;return a|0}function Ldb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+736>>2];a:{b:{if(f){if(b)J[b>>2]=J[f>>2];if(c)J[c>>2]=J[f+4>>2];if(d)J[d>>2]=J[J[a+736>>2]+8>>2];if(!e)break a;a=J[J[a+ -736>>2]+12>>2];break b}if(b)J[b>>2]=0;if(c)J[c>>2]=0;a=0;if(!e)break a}J[e>>2]=a}return 0}function yxa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2404676;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}Tl(Hq(a))}function ro(a,b,c){var d=0,e=0,f=0,g=0;e=Qc(b)+Qc(c)|0;d=e+1|0;a:{b:{if(e>>>0>=2147483647){a=0;if(!d)break b;break a}a=gc[J[a+4>>2]](a, -d)|0;if(!a)return 0;wc(a,0,d)}d=ls(b,47);c:{if(d){e=b;b=(d-b|0)+1|0;f=qd(a,e,b)+b|0,g=0,H[f|0]=g;b=d+1|0;break c}H[a|0]=0}a=qF(qF(a,c),b)}return a}function nDa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2381848;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function jI(a,b){var c=0;c=J[a+424>>2];if(c)gc[J[J[c>>2]+4>>2]](c);J[a+424>> -2]=J[b>>2];c=J[a+428>>2];if(c)gc[J[J[c>>2]+4>>2]](c);J[a+428>>2]=J[b+4>>2];c=J[a+432>>2];if(c)gc[J[J[c>>2]+4>>2]](c);J[a+432>>2]=J[b+8>>2];c=J[a+436>>2];if(c)gc[J[J[c>>2]+4>>2]](c);J[a+436>>2]=J[b+12>>2]}function iOa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2305616;b=J[a+8>>2];if(b)while(1){d=J[J[a+12>>2]+(c<<2)>>2];if(d){gc[J[J[d>>2]+4>>2]](d);b=J[a+8>>2]}c=c+1|0;if(c>>>0>>0)continue;break}b=J[a+12>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function d8(a,b,c){var d= -0,e=0;a:{b:{if(b){while(1){d=$g(a,L[c>>1]);if(d){d=XD(a,d);if(d)break a}c=c+2|0;e=e+1|0;if((e|0)!=(b|0))continue;break}break b}c=J[a+688>>2];if(!c)break b;while(1){b=J[c+8>>2];if(!K[c+30|0]){d=XD(a,c);if(d)break a}c=b;if(c)continue;break}}d=0}return d}function an(a,b,c,d,e){var f=0;f=bc-32|0;bc=f;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[f+24>>2]=0;J[f+20>>2]=e;J[f+16>>2]=d;Cc(0,0,0,a,0,3,b,2,d,e,0,0,c,f+16|0);J[a+356>>2]=0;break a}J[f+8>>2]=0;J[f+4>>2]=e;J[f>>2]=d;Cc(0,0,0, -0,0,3,b,2,d,e,0,0,c,f)}bc=f+32|0}function aAa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2401016;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function Zxa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2404556;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]= -0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function Xpa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2422912;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function Pt(a,b){var c=0,d=0,e=0,f=0;c=J[a>>2];a:{if(!b){if(!c)break a;qc(c);return}d=Qc(b);if(!c){c=a;a=zc(d+4096|0);J[c>>2]=a;c=a;a=Qc(b); -e=tc(c,b,a)+a|0,f=0,H[e|0]=f;return}if(d>>>0>4294963199)break a;qc(c);c=a;a=zc(d+4096|0);J[c>>2]=a;if(!a)break a;if(d)tc(a,b,d);H[a+d|0]=0}}function Mhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(b>>>0>255)break a;b=gc[J[a+20>>2]](L[J[a+16>>2]+(b<<1)>>1])|0;d=J[a+24>>2];if(!d)break a;e=J[a+28>>2];while(1){a=J[(c<<2)+e>>2];if(!(!a|K[a|0]!=K[b|0]))if(!Ec(a,b))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}c=0}return c|0}function HF(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+8>>2];a=J[a+4>>2];c=J[b+8>>2]; -b=J[b+4>>2];a:{if((d-a|0)!=(c-b|0))break a;if((a|0)==(d|0))return 1;while(1){c=J[a>>2];e=J[b>>2];f=(c|0)==(e|0);if((c|0)!=(e|0))break a;b=b+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}return f|0}function GY(a){var b=0,c=0,d=0;b=J[a+4>>2];if((b|0)>0)while(1){d=J[J[a>>2]+(c<<2)>>2];if(d){b=J[d+32>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(d);b=J[a+4>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}b=J[a>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)return a;ea(0)|0;yc();B()}function nT(a){a=a|0;var b= -0,c=0,d=0;J[a>>2]=2424992;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(ed(a))}function d7(a,b){var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;a:{if(!a)break a;c=!b;if(c)break a;c=c?0:J[b>>2];if((c|0)<=0)break a;e=c-1|0;if((c|0)<=(e|0)|(e|0)<0)break a;while(1){q7(b,f,d+12|0,d+8|0);zl(a,Q(J[d+12>>2]),Q(J[d+8>>2]));c=(f|0)!=(e|0);f=f+1|0;if(c)continue; -break}}bc=d+16|0}function _z(a){a=a|0;var b=0,c=0;J[a+24>>2]=2381060;J[a>>2]=2381028;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2381060;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}sc(a+8|0);qc(a)}function NCa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2385020;b=J[a+20>>2];if((b|0)>0)while(1){c=J[a+24>>2];e=d<<2;f=J[c+e>>2];if(f){qc(f);c=J[a+24>>2];b=J[a+20>>2]}J[c+e>>2]=0;d=d+1|0;if((d|0)<(b|0))continue; -break}J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;_c(a+28|0);return ed(a)|0}function dyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-32|0;bc=c;d=K[a+16|0];e=J[a+12>>2];J[c+24>>2]=K[a+17|0];J[c+20>>2]=d;J[c+16>>2]=e;cd(b,209413,c+16|0);d=K[a+20|0];e=K[a+18|0];f=K[a+19|0];J[c+12>>2]=K[a+21|0];J[c+8>>2]=d;J[c+4>>2]=f;J[c>>2]=e;cd(b,209540,c);bc=c+32|0;return 0}function dP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(d>>>0>=c>>>0){if(K[a+11|0]>>>7|0)d=J[a>>2];else d= -a;Dm(d,b,c);return Gu(a,d,c)|0}e=d;f=c-d|0;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;Zr(a,e,f,d,0,d,c,b);return a|0}function YC(a,b){var c=0,d=0,e=0;d=J[J[a+4>>2]+100>>2];c=J[a+156>>2];e=J[c+4>>2];a:{if(e&1){c=J[a+88>>2];if(c)gc[J[d+8>>2]](d,c);J[a+88>>2]=0;break a}J[c+4>>2]=e|1}e=0;c=b?6:0;b:{if((b|0)<=0)break b;d=gc[J[d+4>>2]](d,b)|0;c=64;if(!d)break b;e=wc(d,0,b);c=0}J[a+88>>2]=e;return c}function RK(a,b,c,d){var e=0;J[a+84>>2]=1;J[a+88>>2]=0;N[a+8>>2]=N[a>>2]+c;N[a+12>>2]=N[a+4>>2]+ -d;e=J[a+80>>2];if(!e){e=rc(100);J[e+72>>2]=0;J[e+76>>2]=0;J[e>>2]=1;J[e+96>>2]=1;J[e+80>>2]=0;J[e+84>>2]=0;J[e+88>>2]=0;J[e+92>>2]=0;e=e+4|0;J[a+80>>2]=e}a=J[b>>2];H[e+64|0]=0;J[e>>2]=a}function JAa(a){a=a|0;var b=0,c=0;b=rc(28);J[b+12>>2]=0;J[b+16>>2]=0;J[b>>2]=2389624;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[695492]=0;c=b+12|0;J[c>>2]=2386024;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;qc(ed(b));ba(a|0);B()}J[a>>2]=0;md(a,b)}function zla(a,b){a=a|0;b=b|0;var c= -0,d=0,e=0;c=a+456|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+467|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}yf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Df(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function yla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+444|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+455|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}yf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Df(c,a?J[b>>2]:b, -a?J[b+4>>2]:d)}return 0}function sba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;gc[J[J[a+584>>2]+908>>2]](a,b,c);e=b;d=J[b>>2];b=L[a+204>>1]<<3;if(d>>>0<0-b>>>0)d=((b+d|0)-1>>>0)/(b>>>0)|0;else d=0;J[e>>2]=P(d,b);b=J[c>>2];a=L[a+206>>1]<<3;if(b>>>0<0-a>>>0)b=((a+b|0)-1>>>0)/(a>>>0)|0;else b=0;J[c>>2]=P(b,a)}function oW(a,b){var c=0,d=0;a:{d=K[a+9|0];if(d>>>0>7)break a;c=J[a+4>>2];a=64064;b:{c:switch(d-1|0){case 1:a=64320;break b;case 0:break b;case 3:break c;default:break a}a=64576}if((c|0)<=0)break a; -c=b+c|0;while(1){H[b|0]=K[K[b|0]+a|0];b=b+1|0;if(c>>>0>b>>>0)continue;break}}}function cbb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+124|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+135|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}yf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Df(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function Xr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(d>>>0>=c>>>0){if(K[a+11|0]>>>7|0)d=J[a>> -2];else d=a;Cm(d,b,c);return Eu(a,d,c)|0}e=d;f=c-d|0;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;Yr(a,e,f,d,0,d,c,b);return a|0}function Oab(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+472|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+483|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}yf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Df(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function Mab(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+460|0;if((c|0)!=(b|0)){d=K[b+11|0]; -e=d<<24>>24;if(H[a+471|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}yf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Df(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function Iq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-32|0;bc=d;a:{if(!K[b+144|0]){a=Kc(d+8|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}if(!(J[b+148>>2]&64|c))GU(b);Ln(a,b+112|0);bc=d+32|0;return}B()}function rF(a){a=a|0;var b= -0,c=0;b=J[a+12>>2];a:{if((b|0)>=J[a+16>>2]){b=0;c=mb(J[a+8>>2],a+24|0,2048)|0;if((c|0)<=0){if(!c|(c|0)==-44)break a;J[694731]=0-c;return 0}J[a+16>>2]=c}c=b;b=a+b|0;J[a+12>>2]=c+L[b+40>>1];c=J[b+36>>2];J[a>>2]=J[b+32>>2];J[a+4>>2]=c;b=b+24|0}return b|0}function nJa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=rc(8);J[695492]=0;b=aa(3182,f|0,b|0)|0;g=J[695492];J[695492]=0;if((g|0)!=1){J[a+8>>2]=c;J[a>>2]=b;J[a+28>>2]=1;J[a+20>>2]=0;J[a+24>>2]=0;J[a+16>>2]=e;J[a+12>>2]=d;J[a+4>>2]=1;return a| -0}a=Z()|0;qc(f);ba(a|0);B()}function lXa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;if(!(K[a+220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))){uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];J[c+12>>2]=257;gc[J[J[b>>2]+348>>2]](b,c+12|0)|0;a=J[a+104>>2];J[c+8>>2]=4;gc[J[J[a>>2]+312>>2]](a,c+8|0)|0}bc=c+16|0}function jXa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;if(!(K[a+220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))){uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];J[c+12>>2]=513;gc[J[J[b>>2]+348>> -2]](b,c+12|0)|0;a=J[a+104>>2];J[c+8>>2]=4;gc[J[J[a>>2]+312>>2]](a,c+8|0)|0}bc=c+16|0}function Ym(a,b,c){var d=0,e=0,f=0;e=J[a>>2];d=J[a+8>>2];f=J[a+4>>2];if((d|0)>=(f|0)){d=J[a+12>>2];d=((d|0)>0?d:f)+f|0;J[a+4>>2]=d;e=Nd(e,d,4);J[a>>2]=e;d=J[a+8>>2]}b=(b|0)>0?b:0;if((b|0)<(d|0)){e=(b<<2)+e|0;Zc(e+4|0,e,d-b<<2);d=J[a+8>>2];e=J[a>>2]}J[e+(b<<2)>>2]=c;J[a+8>>2]=d+1}function L9a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(!J[a+16>>2])break a;f=J[a+20>>2];if(!f)break a;Zj(f,O[b>>3],O[c>>3]); -gn(J[a+20>>2],O[b>>3]+O[d>>3],O[c>>3]);gn(J[a+20>>2],O[b>>3]+O[d>>3],O[c>>3]+O[e>>3]);gn(J[a+20>>2],O[b>>3],O[c>>3]+O[e>>3]);XK(J[a+20>>2])}}function Hub(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[J[a+544>>2]+88>>2];c=J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0;b=J[a+644>>2];while(1){d=K[c|0];H[b+2|0]=d;H[b+1|0]=d;H[b|0]=d;H[b+3|0]=K[c+1|0];b=b+4|0;c=c+2|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Ch(a,b,c){var d=0,e=0;d=J[a+20>>2];e=(d+c>>>2|0)+24576|0;c=c>>>0>e>>>0?e: -c;e=d;d=K[b|0];if(e>>>0>=M[((d<<2)+a|0)+1068>>2])H[b|0]=K[(a+d|0)+2092|0];J[a+20>>2]=c;if(c>>>0>=32768){hv(a,1-(J[a+32>>2]>>>15|0)|0);J[a+32>>2]=J[a+32>>2]<<1&65534;J[a+20>>2]=J[a+20>>2]<<1&65534}}function xfb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=142;e=L[a+152>>1];a:{if(!e)break a;a=J[a+156>>2];e=a+(e<<4)|0;while(1){b:{if(J[a>>2]==(b|0)){g=J[a+12>>2];if(g)break b}a=a+16|0;if(e>>>0>a>>>0)continue;break a}break}if(d)J[d>>2]=g;f=nd(c,J[a+8>>2])}return f|0}function hOa(a){a=a|0;var b=0, -c=0,d=0;J[a>>2]=2305616;b=J[a+8>>2];if(b)while(1){d=J[J[a+12>>2]+(c<<2)>>2];if(d){gc[J[J[d>>2]+4>>2]](d);b=J[a+8>>2]}c=c+1|0;if(c>>>0>>0)continue;break}b=J[a+12>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(a)}function TFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;b=bc-16|0;bc=b;e=K[c+11|0];d=e<<24>>24<0;f=J[c+4>>2];a:{if(!(!(d?f:e)|J[(d?J[c>>2]:c)>>2]!=47)){Bm(a,c,1,-1,b+15|0);break a}if(!d){d=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=d;J[a+8>>2]=J[c+8>>2];break a}Re(a, -J[c>>2],f)}bc=b+16|0}function T3(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if((a|0)!=(b|0)){d=K[b+11|0];c=d<<24>>24;if(H[a+11|0]>=0){if((c|0)>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return a|0}return yf(a,J[b>>2],J[b+4>>2])|0}e=a;a=(c|0)<0;a=Df(e,a?J[b>>2]:b,a?J[b+4>>2]:d)}return a|0}function Jyb(a,b){a=a|0;b=b|0;var c=0;a:{if(Di(b,a+20|0))break a;if(Di(b,a+24|0))break a;c=J[a+16>>2]-8|0;J[a+28>>2]=c>>>2;if(c>>>0>131)break a;if(c>>>0<4)return 0;c=0;while(1){if(Di(b,((c<<2)+a|0)+32| -0))break a;c=c+1|0;if(c>>>0>2])continue;break}return 0}return-1}function EQa(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;b=K[b|0];J[d>>2]=b;l=g,m=al(J[a+1444>>2],b,e,f),J[l>>2]=m;O[h>>3]=O[((b<<3)+a|0)+1464>>3];J[k>>2]=0;J[k+4>>2]=0;J[j>>2]=0;J[j+4>>2]=0;J[i>>2]=0;J[i+4>>2]=0;return 1}function $E(a){a=a|0;var b=0,c=0;J[a>>2]=2614620;J[695492]=0;da(6599,a|0,0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+28>>2];c=J[b+4>>2]-1|0;J[b+4>>2]= -c;if((c|0)==-1)gc[J[J[b>>2]+8>>2]](b);qc(J[a+32>>2]);qc(J[a+36>>2]);qc(J[a+48>>2]);qc(J[a+60>>2]);return a|0}ea(0)|0;yc();B()}function y8(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+1|0;b=J[a+584>>2]+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function wya(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+ -8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=Jn(c,2401340);J[695492]=0;ca(5339,a|0,b|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1){Bd(d);bc=c+32|0;return}a=Z()|0;Bd(d);ba(a|0);B()}function bBa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-32|0;bc=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=Jn(c,2388756);J[695492]=0;ca(5152,a|0,b|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1){Bd(d);bc=c+32|0;return}a=Z()|0;Bd(d);ba(a|0);B()}function OR(a){a=a|0;var b=0,c=0,d=0;b=+Ya()/ -1E3;a:{if(R(b)<0x7fffffffffffffff){d=~~b>>>0;if(R(b)>=1)c=~~(b>0?T(V(b*2.3283064365386963E-10),4294967295):W((b-+(~~b>>>0>>>0))*2.3283064365386963E-10))>>>0;else c=0;break a}c=-2147483648}if(a){J[a>>2]=d;J[a+4>>2]=c}fc=c;return d|0}function MCa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2385020;b=J[a+20>>2];if((b|0)>0)while(1){c=J[a+24>>2];e=d<<2;f=J[c+e>>2];if(f){qc(f);c=J[a+24>>2];b=J[a+20>>2]}J[c+e>>2]=0;d=d+1|0;if((d|0)<(b|0))continue;break}J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;_c(a+28|0);qc(ed(a))} -function KCa(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=J[a+16>>2]-d|0;f=(c|0)>(f|0)?f:c;if((f|0)<=0)return 0;c=f;while(1){h=d>>12;g=d&4095;e=4096-g|0;e=(c|0)<(e|0)?c:e;d=d+e|0;b=tc(b,J[J[a+24>>2]+(h<<2)>>2]+g|0,e)+e|0;c=c-e|0;if((c|0)>0)continue;break}return f|0}function Iu(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;J[c+12>>2]=a;a:{if((a|0)==(b|0))break a;while(1){b=b-4|0;J[c+8>>2]=b;if(a>>>0>=b>>>0)break a;a=J[c+12>>2];b=J[a>>2];d=a;a=J[c+8>>2];J[d>>2]=J[a>>2];J[a>>2]=b;a=J[c+12>>2]+ -4|0;J[c+12>>2]=a;b=J[c+8>>2];continue}}bc=c+16|0}function G3(a){var b=0,c=0,d=0;b=J[a+4>>2];if(b){c=b-1|0;J[a+4>>2]=c;d=J[a+12>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){qc(b);b=J[a+4>>2]}else b=c;c=b-1|0;J[a+4>>2]=c;if(b)continue;break}c=J[a+12>>2];if(c)qc(c);J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}}function Dg(a,b){var c=0,d=0;c=J[a+12>>2];a:{if((c|0)!=J[a+8>>2]){d=J[a+4>>2];break a}c=c?c<<1:8;J[a+8>>2]=c;d=Nd(J[a+4>>2],c,16);J[a+4>>2]=d;c=J[a+12>>2]}c=(c<<4)+d|0;d=J[b+4>> -2];J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;J[a+12>>2]=J[a+12>>2]+1}function iaa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{e=J[a+584>>2];if(e){f=J[e+24>>2];if(!f)break b;if(!J[e+12>>2])break a;gc[f|0](a,b,c);return gc[J[e+12>>2]](a,b,c,d)|0}fa(72282,70388,555,197605);B()}fa(79601,70388,556,197605);B()}fa(79982,70388,557,197605);B()}function h_a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+4>>2];sw(J[a+4>>2]);J[a+4>>2]=0;c=J[a+8>>2];if(c)qc(c);J[a+8>>2]=0;J[a+ -12>>2]=0;c=K[b+11|0];c=c<<24>>24<0?J[b+4>>2]:c;J[a+12>>2]=c;d=rc(c);J[a+8>>2]=d;e=a,f=vJ(tc(d,H[b+11|0]<0?J[b>>2]:b,c),c,0,0,0),J[e+4>>2]=f;return 1}function UUa(a,b){a=a|0;b=b|0;var c=0,d=0;ew(a,b);c=J[a+4>>2];if(c&512){d=K[a+327|0];c=d<<24>>24<0;jf(b,c?J[a+316>>2]:a+316|0,c?J[a+320>>2]:d);c=J[a+4>>2]}if(c&1024)pd(b,J[a+328>>2]);if(K[a+147|0]&2){d=b;c=K[a+343|0];b=c<<24>>24<0;jf(d,b?J[a+332>>2]:a+332|0,b?J[a+336>>2]:c)}}function TSa(a){a=a|0;var b=0;b=J[a+24>>2]-1|0;J[a+24>>2]=b;a:{if(!b){b=J[a>> -2];if(b)qc(Rc(b));b=J[a+4>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+12>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;qc(a)}return}ea(0)|0;yc();B()}function sU(a){var b=0,c=0,d=0,e=0;b=bc-256|0;bc=b;a:{if(K[a+276|0]&4){c=eK(a+212|0);J[a+276>>2]=J[a+276>>2]&-5;if(!c)break a;d=65678;e=c+6|0;if(e>>>0<=4)d=J[(e<<2)+69032>>2];pk(b,1,1,c);jY(b,2,d);c=J[a+236>>2];jY(b,3,c?c:65711);Kq(a,b,65777);break a}Yc(a,65842)}bc=b+256|0}function fma(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;e=J[a+12>>2];Wu(e);f=e+2312|0;g=O[c>>3];h=O[d>>3];a=bc-16|0;bc=a;c=J[e+2308>>2];if(c){N[a+12>>2]=g;N[a+8>>2]=h+0;gc[J[J[c>>2]+84>>2]](c,b,a+12|0,a+8|0)|0;gc[J[J[c>>2]+132>>2]](c,f)|0}bc=a+16|0;return 0}function QMa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-32|0;bc=d;J[d+16>>2]=13;J[d>>2]=13;J[a>>2]=0;if(J[b>>2]==7){e=d+16|0;Ce(J[b+8>>2],774505,e);Ce(J[b+8>>2],775682,d);if(!(J[d+16>>2]!=9|J[d>>2]!=9))f=a,g=BY(e,d,0,c),J[f>>2]=g;uc(d+16|0);uc(d)}bc= -d+32|0;return a|0}function NS(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=bc-16|0;bc=i;J[i+12>>2]=0;b=EK(b,i+12|0);j=J[i+12>>2];a:{if(!j)break a;b:{if(!(!d|(d|0)==(j|0))){if(b)break b;break a}fz(a,b,d?c:0,j,e,f,g,h);if(!b)break a}qc(b)}bc=i+16|0;return 0}function NHa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+32>>2];b=J[a+28>>2];d=b+8|0;if(c>>>0>=d>>>0)while(1){oA(a,J[a+24>>2]+(b<<2)|0,J[a+20>>2],8);c=J[a+32>>2];b=d;d=b+8|0;if(c>>>0>=d>>>0)continue;break}if(b>>>0>>0)oA(a, -J[a+24>>2]+(b<<2)|0,J[a+20>>2],c-b|0);qc(J[a>>2]);qc(a)}function CL(a,b){var c=0,d=0,e=0,f=0;c=b&-4;if(c)while(1){e=(K[(d|3)+a|0]|(K[(d|1)+a|0]<<16|K[a+d|0]<<24|K[(d|2)+a|0]<<8))+e|0;d=d+4|0;if(d>>>0>>0)continue;break}if((b|0)!=(c|0)){while(1){f=K[a+c|0]<<((c^-1)<<3)|f;c=c+1|0;if(c>>>0>>0)continue;break}e=e+f|0}return e}function yaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+584>>2];if(d){e=J[d+48>>2];if(!e)break a;if((b|0)==317){J[d>>2]=L[c>>1];J[a+48>>2]=J[a+48>>2]|4;J[a+12>>2]=J[a+12>> -2]|8;return 1}return gc[e|0](a,b,c)|0}fa(72282,70388,620,197532);B()}fa(73255,70388,621,197532);B()}function syb(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(wh(b,J[a+20>>2]))break a;if(!J[a+20>>2])return 0;while(1){d=J[a+24>>2]+P(c,12)|0;if(wh(b,J[d>>2]))break a;if(wh(b,J[d+4>>2]))break a;if(wh(b,J[d+8>>2]))break a;c=c+1|0;if(c>>>0>2])continue;break}return 0}return-1}function sHa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:{if(b){if(!a)break b;if(!d)break a;if(J[J[a+72>>2]+16>>2]<<2!=(c|0)){Hc(d,1,2356855, -0);a=0}else a=1;return a|0}fa(2353829,2346358,3588,2356838);B()}fa(2346477,2346358,3589,2356838);B()}fa(2346590,2346358,3590,2356838);B()}function lV(a){var b=0,c=0;J[a+16>>2]=2381028;J[a+40>>2]=2381060;b=J[a+44>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+44>>2]=0}J[a+32>>2]=2381060;b=J[a+36>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+36>>2]=0}sc(a+24|0)}function kl(a){var b=0,c=0,d=0;c=-2;a:{if(!a|!J[a+32>>2])break a;d=J[a+36>>2];if(!d)break a; -b=J[a+28>>2];if(!b|J[b>>2]!=(a|0)|J[b+4>>2]-16180>>>0>31)break a;c=J[b+56>>2];if(c){gc[d|0](J[a+40>>2],c);d=J[a+36>>2];b=J[a+28>>2]}gc[d|0](J[a+40>>2],b);c=0;J[a+28>>2]=0}return c}function hcb(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+132>>2];if(b){if(J[b+160>>2])Sf(J[a+104>>2],b+160|0);d=J[b+168>>2];if(d)gc[J[c+8>>2]](c,d);J[b+168>>2]=0;if(b)gc[J[c+8>>2]](c,b);J[a+132>>2]=0}b=J[a+32>>2];if(b)gc[J[c+8>>2]](c,b);J[a+28>>2]=0;J[a+32>>2]=0}}function WY(a,b,c,d){var e=0,f=0;a:{e=tk(J[a+56>>2], -b);if(e){b=J[e>>2];a=rc(8);J[695492]=0;b=aa(3183,a|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)==1)break a;J[c>>2]=J[e+4>>2];O[d>>3]=O[e+8>>3];return b}J[c>>2]=0;J[d>>2]=0;J[d+4>>2]=0;return XY(a,b)}b=Z()|0;qc(a);ba(b|0);B()}function WK(a){var b=0,c=0;c=bc-16|0;bc=c;b=J[a+8>>2];J[b+4>>2]=0;H[b+2|0]=0;I[b>>1]=0;J[b+24>>2]=0;b=J[a+4>>2];if(b){J[c+12>>2]=512;gc[J[J[b>>2]+308>>2]](b,c+12|0)|0;b=J[a+4>>2];gc[J[J[b>>2]+344>>2]](b)|0;a=J[a+4>>2];J[c+8>>2]=512;gc[J[J[a>>2]+312>>2]](a,c+8|0)|0}bc=c+16|0}function Shb(a){a= -a|0;var b=0,c=0;b=J[a+20>>2];a:{b:{if(K[a+65|0]){a=J[a+12>>2];if((I[a+20>>1]+I[a+56>>1]|0)+1>>>0>M[a+8>>2]){a=sh(a,0,1);if(a)break a}c=L[b>>1];a=c<<16>>16;if((a|0)<=0)break b;I[(J[b+12>>2]+(c<<1)|0)-2>>1]=L[b+2>>1]-1}a=L[b>>1]}I[b>>1]=a+1;a=0}return a|0}function SVa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if(J[a+76>>2]>0){i=J[a+412>>2];f=J[a+84>>2];j=c<<2;while(1){c=g<<2;h=c+i|0;gc[J[h+12>>2]](a,f,J[b+c>>2]+j|0,J[c+d>>2]+(P(J[h+52>>2],e)<<2)|0);f=f+88|0;g=g+1|0;if((g|0)>2])continue;break}}}function QIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=rc(8);J[695492]=0;d=aa(3182,e|0,793947)|0;f=J[695492];J[695492]=0;if((f|0)!=1){Dh(d,J[a+20>>2]);od(d,802431);Dh(d,J[a+24>>2]);od(d,785835);a=gc[b|0](c,J[d+4>>2],J[d>>2])|0;qc(Rc(d));return a|0}a=Z()|0;qc(e);ba(a|0);B()}function Pm(a,b){a=a|0;b=b|0;var c=0;c=bc-32|0;bc=c;H[c+31|0]=b;a:{if((gc[J[J[a>>2]+12>>2]](a,c+31|0,1)|0)!=1){a=Kc(c+4|0,Jl(J[694731]),2375204,514,2384721,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]= -0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}bc=c+32|0;return}B()}function $v(a,b){var c=0,d=0,e=0,f=0;c=K[b|0];if(c){d=b;while(1){e=P(e,17)+(c&255)|0;c=K[d+1|0];d=d+1|0;if(c)continue;break}}c=J[J[a+12>>2]+((e>>>0)%M[a+4>>2]<<2)>>2];a:{if(!c)break a;while(1){if(sd(J[c>>2],b)){c=J[c+8>>2];if(c)continue;break a}break}f=J[c+4>>2]}return f}function s4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;if(J[a+8>>2]){J[e+12>>2]=1;gc[J[J[a>>2]+40>>2]](a,e+12|0);J[e+8>>2]=J[b>>2];b=a+16|0;RK(b,e+ -8|0,N[c>>2],N[d>>2]);PK(J[a+8>>2],b);J[e+4>>2]=0;gc[J[J[a>>2]+40>>2]](a,e+4|0);a=1}else a=0;bc=e+16|0;return a|0}function r4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;if(J[a+8>>2]){J[e+12>>2]=1;gc[J[J[a>>2]+40>>2]](a,e+12|0);J[e+8>>2]=J[b>>2];b=a+16|0;RK(b,e+8|0,N[c>>2],N[d>>2]);c2(J[a+8>>2],b);J[e+4>>2]=0;gc[J[J[a>>2]+40>>2]](a,e+4|0);a=1}else a=0;bc=e+16|0;return a|0}function q7(a,b,c,d){var e=0,f=0;if(c)J[c>>2]=0;if(d)J[d>>2]=0;if(!a)return;if(c){e=+N[J[a+12>>2]+(b<<2)>>2]+.5;a:{if(R(e)< -2147483648){f=~~e;break a}f=-2147483648}J[c>>2]=f}if(d){e=+N[J[a+16>>2]+(b<<2)>>2]+.5;b:{if(R(e)<2147483648){a=~~e;break b}a=-2147483648}J[d>>2]=a}}function pt(a){a=a|0;var b=0,c=0;J[a>>2]=839596;b=J[a+136>>2];if(b){c=J[b+16>>2];if(c){J[b+20>>2]=c;qc(c)}qc(b);J[a+136>>2]=0}b=J[a+124>>2];if(b){J[a+128>>2]=b;qc(b)}if(H[a+123|0]<0)qc(J[a+112>>2]);if(H[a+111|0]<0)qc(J[a+100>>2]);if(H[a+99|0]<0)qc(J[a+88>>2]);return a|0}function aOa(a){a=a|0;var b=0,c=0,d=0;d=rc(152);b=J[a+4>>2];c=J[J[b>>2]+8>>2];J[695492]= -0;b=$(c|0,b|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;J[695492]=0;a=ga(3445,d|0,b|0,a+8|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}a=Z()|0;qc(d);ba(a|0);B()}function Yba(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+584>>2];c=J[b+396>>2]+1|0;J[b+396>>2]=c;a:{if(!((c>>>0)%M[a+176>>2]|0)){if(!K[b+400|0])break a;a=b+536|0;c=J[a+4>>2];if(c)gc[J[c+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0;H[b+393|0]=0;H[b+400|0]=0}return}fa(89852,70456,848,97365);B()}function Xf(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(!K[a+ -8|0])break a;c=J[a>>2];if(!c)break a;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(d)break a;qc(c)}J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;J[a+4>>2]=J[b+4>>2];c=K[b+8|0];H[a+8|0]=c;d=a;a=J[b>>2];J[d>>2]=a;if(!(!c|!a))J[a+4>>2]=J[a+4>>2]+1}function RFa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;f=e+4|0;Jq(f,a,b);a=J[a+4>>2];J[695492]=0;ia(4748,a|0,f|0,c|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[e+15|0]<0)qc(J[e+4>>2]);bc=e+16|0;return}a=Z()|0;if(H[e+15|0]<0)qc(J[e+4>>2]);ba(a|0);B()}function No(a, -b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;J[c+12>>2]=a;a:{if((a|0)==(b|0))break a;while(1){b=b-1|0;J[c+8>>2]=b;if(a>>>0>=b>>>0)break a;a=J[c+12>>2];b=K[a|0];d=a;a=J[c+8>>2];H[d|0]=K[a|0];H[a|0]=b;a=J[c+12>>2]+1|0;J[c+12>>2]=a;b=J[c+8>>2];continue}}bc=c+16|0}function yc(){var a=0;a=J[682261];J[695492]=0;ka(a|0);a=J[695492];J[695492]=0;a:{if((a|0)!=1){J[695492]=0;da(7055,16865,0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}na(ea(0)|0)|0;J[695492]=0;da(7055,6611,0);a=J[695492];J[695492]=0;if((a|0)!= -1)break a;ea(0)|0;yc()}B()}function ocb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+420>>2];if((d|0)>0){g=J[a+424>>2];h=K[b|0];while(1){a:{e=c<<2;f=J[e+g>>2];if(K[f|0]!=(h|0))break a;if(Ec(b,f))break a;return vg(J[J[a+428>>2]+e>>2],0,10)|0}c=c+1|0;if((d|0)!=(c|0))continue;break}}return 0}function fe(a,b,c){var d=0;d=bc-32|0;bc=d;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[d+16>>2]=c;Cc(0,0,0,a,0,1,b,3,0,0,0,0,4607,d+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]= -1;break a}J[d>>2]=c;Cc(0,0,0,0,0,1,b,3,0,0,0,0,4607,d)}bc=d+32|0}function Wha(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=(e-d|0)+b|0;a:{while(1){if((d|0)!=(e|0)){a=-1;if((b|0)==(c|0))break a;f=H[b|0];g=H[d|0];if((f|0)<(g|0))break a;if((f|0)>(g|0))return 1;else{d=d+1|0;b=b+1|0;continue}}break}a=(c|0)!=(h|0)}return a|0}function Sj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=J[a>>2];J[a>>2]=e+b;d=b;b=J[a+8>>2];J[a+8>>2]=d+b;f=J[a+4>>2];J[a+4>>2]=f+c;d=c;c=J[a+12>>2];J[a+12>>2]=d+c;a:{if((b| -0)>(e|0)){b=1;if((c|0)>(f|0))break a}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;b=0}return b|0}function Q9a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=J[a+444>>2];if(!J[e+48>>2]){if(!(gc[J[J[a+448>>2]+12>>2]](a,e+8|0)|0))break a;J[e+48>>2]=1}f=J[a+324>>2];gc[J[J[a+452>>2]+4>>2]](a,e+8|0,e+52|0,f,b,c,d);if(M[e+52>>2]>>0)break a;J[e+48>>2]=0;J[e+52>>2]=0}}function JI(a,b){var c=0;c=bc-32|0;bc=c;a:{if((b|0)>=0){b:{if(!b){b=0;if(!a)break b;qc(a);break b}c:{if(a){b=Vd(a,b);break c}b=zc(b)}if(!b)break a}bc= -c+32|0;return b}J[c>>2]=774961;cd(J[651370],779053,c);ya(1);B()}J[c+16>>2]=775649;cd(J[651370],779053,c+16|0);ya(1);B()}function HXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+20>>2]+J[a+16>>2]|0;e=J[a+8>>2];c=J[a+4>>2];if((d|0)==(((c|0)!=(e|0)?P(e-c>>2,93)-1|0:0)|0)){T_(a);c=J[a+4>>2];d=J[a+16>>2]+J[a+20>>2]|0}e=c;c=(d>>>0)/93|0;S_(J[e+(c<<2)>>2]+P(d-P(c,93)|0,44)|0,b);J[a+20>>2]=J[a+20>>2]+1}function dQa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b>>2];a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0;a=J[b+4>> -2];a=(a|0)>=65536?65536:a;J[c+4>>2]=(a|0)>0?a:0;a=J[b+8>>2];a=(a|0)>=65536?65536:a;J[c+8>>2]=(a|0)>0?a:0;a=J[b+12>>2];a=(a|0)>=65536?65536:a;J[c+12>>2]=(a|0)>0?a:0}function cxb(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;e=-1;d=li(a,b+14|0,2);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((Ij(a,K[c+(b+14|0)|0])|0)!=-1)continue;break a}break}if((d|0)<2)break a;e=(K[b+15|0]|K[b+14|0]<<8)!=20551?-1:0}bc=b+16|0;return e|0}function Nmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1145198923){Dc(a, -2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];H[b+36|0]=K[c+36|0];d=J[c+40>>2];J[b+40>>2]=d;if(d){d=gc[J[a+152>>2]](d)|0;J[b+44>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+44>>2],J[b+40>>2])}return 0}function Ge(a){var b=0,c=0;b=J[a+12>>2];a:{if((b|0)==J[a+8>>2]){b=0;a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=161;return 0}c=a;a=b-8|0;J[c+12>>2]=a;b=J[a>>2];b:switch(J[a+4>>2]-1|0){case 1:return b<<16;case 0:break b;default:break a}b=((b>>31)+b|0)- -8192>>14}return b}function zXa(a,b){a=a|0;b=b|0;var c= -0,d=0;c=bc-16|0;bc=c;d=J[b+120>>2];gc[J[J[d>>2]+20>>2]](d,b+252|0,c+4|0,0);a=J[a+104>>2];J[c>>2]=P(J[c+12>>2],255)+32768&16711680|(P(J[c+8>>2],255)+32768>>>8&65280|P(J[c+4>>2],255)+32768>>>16&255);gc[J[J[a>>2]+52>>2]](a,c)|0;bc=c+16|0}function ms(a){var b=0,c=0,d=0;A(+a);b=v(1)|0;v(0)|0;d=b>>>20&2047;if(d>>>0<=1074){if(d>>>0<=1021)return a*0;a=(b|0)>0|(b|0)>=0?a:-a;c=a+4503599627370496+-4503599627370496-a;a:{if(c>.5){a=a+c+-1;break a}a=a+c;if(!(c<=-.5))break a;a=a+1}a=(b|0)>0|(b|0)>=0?a:-a}return a} -function gxb(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;e=-1;d=li(a,b+14|0,2);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((Ij(a,K[c+(b+14|0)|0])|0)!=-1)continue;break a}break}if((d|0)<2)break a;e=0-(K[b+14|0]!=255|K[b+15|0]!=216)|0}bc=b+16|0;return e|0}function dU(a,b,c){a=a|0;b=b|0;c=c|0;a=bc-16|0;bc=a;b=a+8|0;mU(b,gc[J[682140]]()|0,c);c=J[a+8>>2];c=J[(c?c+12|0:2728584)>>2];J[695492]=0;J[a>>2]=c;da(5408,2383504,a|0);c=J[695492];J[695492]=0;a:{if((c|0)!=1){sc(b);bc=a+16|0;break a}b= -Z()|0;sc(a+8|0);ba(b|0);B()}return 1}function SY(a){var b=0,c=0,d=0;a:{if(!J[a+36>>2])break a;b=J[a+32>>2];if((b|0)<=0)break a;while(1){J[a+40>>2]=-1;if(J[a+36>>2])J[a+32>>2]=b-1;J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];c=a,d=gc[J[J[b>>2]+28>>2]](b)&255,J[c+40>>2]=d;b=J[a+32>>2];if((b|0)>0)continue;break}}}function IR(a){var b=0,c=0,d=0;b=J[a+40>>2];c=gc[b|0](a,0,0,K[a|0]&128?J[a+20>>2]==J[a+28>>2]?1:2:1)|0;b=fc;a:{if((b|0)<0)break a;d=J[a+8>>2];if(d)a=a+4|0;else{d=J[a+28>>2];if(!d)break a;a=a+20|0}a= -J[a>>2]-d|0;c=a+c|0;b=(a>>31)+b|0;b=a>>>0>c>>>0?b+1|0:b}fc=b;return c}function IMa(a,b,c,d,e){a=a|0;b=+b;c=+c;d=d|0;e=e|0;var f=0,g=0;f=O[a+40>>3]+(O[a+8>>3]*b+O[a+24>>3]*c)+.5;a:{if(R(f)<2147483648){g=~~f;break a}g=-2147483648}J[d>>2]=g;b=O[a+48>>3]+(O[a+16>>3]*b+O[a+32>>3]*c)+.5;if(R(b)<2147483648){J[e>>2]=~~b;return}J[e>>2]=-2147483648}function qyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;e=-1;d=li(a,b+14|0,2);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((Ij(a,K[c+(b+14|0)|0])| -0)!=-1)continue;break a}break}if((d|0)<2)break a;e=0-(K[b+14|0]!=255|K[b+15|0]!=79)|0}bc=b+16|0;return e|0}function l8(a){var b=0;b=a;a=J[a+528>>2];if(!dk(b,a,0,0,0,0,0,0,0,1)){J[a+36>>2]=0;J[a+40>>2]=0;H[a+31|0]=1;H[a+32|0]=1;J[a+48>>2]=0;J[a+52>>2]=0;H[a+44|0]=0;J[a+56>>2]=0;J[a+60>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;I[a+70>>1]=0;I[a+72>>1]=0;I[a+74>>1]=0;I[a+76>>1]=0}}function NKa(a){a=a|0;var b=0;J[a>>2]=2331860;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];J[695492]=0;Gc(b);b=J[695492]; -J[695492]=0;a:{if((b|0)==1)break a;b=J[a+60>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}ea(0)|0;yc();B()}function DN(a,b){var c=0,d=0,e=0,f=0;a:{while(1){d=-1;c=nj(a);if((c|0)==-1)break a;if((c|0)==32|c-9>>>0<5)continue;break}while(1){e=c-48|0;if(e>>>0<=9){f=P(f,10)+e|0;c=nj(a);if((c|0)>=0)continue;break a}break}if(!((c|0)==32|c-9>>>0<5))break a;J[b>>2]=f;d=0}return d}function Bia(a,b){a=a|0;b=b|0;var c=0;a:{if(!J[a+64>>2])break a;c=J[a+12>>2];if(c>>>0<=M[a+8>>2])break a; -if((b|0)==-1){J[a+12>>2]=c-1;return((b|0)!=-1?b:0)|0}c=J[a+12>>2]-1|0;if(!(K[a+88|0]&16)&K[c|0]!=(b&255))break a;J[a+12>>2]=c;H[J[a+12>>2]]=b;return b|0}return-1}function o9(a,b,c,d,e,f,g,h){var i=0,j=0,k=0;a:{b:{if((e|0)<=0|(f|0)<=0)break b;i=-1;if(gc[J[J[a+4>>2]>>2]](b,c,d,e,f,g)|0)break a;if((h|0)<=0)break b;j=a;k=b;a=c+1|0;b=a>>1;c=d+1|0;d=c>>1;i=-1;if(o9(j,k,b,d,(a+e>>1)-b|0,(c+f>>1)-d|0,g,h-1|0))break a}i=0}return i}function mu(a,b,c){var d=0,e=0,f=0;if(!a)return;e=J[a+20>>2];a:{if(!e)break a; -f=J[a+24>>2];if(!f)break a;d=+Q(Q(f>>>0)*c)+.5;b:{if(d<4294967296&d>=0){f=~~d>>>0;break b}f=0}J[a+24>>2]=f;d=+Q(Q(e>>>0)*b)+.5;c:{if(d<4294967296&d>=0){e=~~d>>>0;break c}e=0}J[a+20>>2]=e}}function md(a,b){a=a|0;b=b|0;var c=0,d=0;if(b)J[b+4>>2]=J[b+4>>2]+1;c=(a&252)+2778416|0;dG(c);d=J[a>>2];J[a>>2]=b;J[c>>2]=0;a:{if(!d)break a;b=d+4|0;c=J[b>>2]-1|0;J[b>>2]=c;if(c)break a;c=J[b>>2];if(!c)J[b>>2]=-32767;if(c)break a;gc[J[J[d>>2]+4>>2]](d)}return a|0}function fl(a,b,c,d){var e=0;e=bc-32|0;bc=e;a:{if(a){if(J[a+ -172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[e+16>>2]=d;Cc(0,0,0,a,0,1,b,3,0,0,0,d,c,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[e>>2]=d;Cc(0,0,0,0,0,1,b,3,0,0,0,d,c,e)}bc=e+32|0}function Uyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;e=-1;d=li(a,b+14|0,2);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((Ij(a,K[c+(b+14|0)|0])|0)!=-1)continue;break a}break}if((d|0)<2)break a;e=0-(K[b+14|0]!=66|K[b+15|0]!=77)|0}bc=b+16|0;return e|0}function Nf(a,b,c,d){var e=0; -e=bc-32|0;bc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[e+16>>2]=d;Cc(0,0,0,a,0,1,b,3,d,0,0,0,c,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[e>>2]=d;Cc(0,0,0,0,0,1,b,3,d,0,0,0,c,e)}bc=e+32|0}function Jsa(a){a=a|0;var b=0,c=0,d=0,e=0;c=bc-16|0;bc=c;d=1;b=J[a+12>>2];a:{if(!b)break a;a=J[a+8>>2];if(!a)break a;J[c+12>>2]=b;a=a+b|0;while(1){if(!K[b|0]|a>>>0<=b>>>0)break a;Gq(c+12|0,a);e=b;b=J[c+12>>2];if((e|0)!=(b|0))continue;break}d=0}bc=c+16|0;return d| -0}function Eva(a){a=a|0;var b=0,c=0,d=0;if(K[a+88|0])return J[a+84>>2];c=a,d=gc[J[J[a>>2]+36>>2]](a)|0,J[c+72>>2]=d;c=a,d=gc[J[J[a>>2]+44>>2]](a)|0,J[c+76>>2]=d;c=a,d=gc[J[J[a>>2]+40>>2]](a)|0,J[c+80>>2]=d;b=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=b;return b|0}function wd(a){a=a|0;var b=0,c=0,d=0;d=bc-16|0;bc=d;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b=J[c+16>>2]-1|0;J[c+16>>2]=b;if((b|0)<=0){b=J[c+40>>2];if(b)gc[J[659406]](b);b=J[c+32>>2];if(b)qc(b);b=J[c+36>>2];J[d+12>>2]=b;if(b)xo(d+ -12|0);qc(c)}J[a>>2]=0}bc=d+16|0}function oha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((c|0)>0){a=J[a+12>>2];while(1){e=L[a>>1];f=e&32767;if(f){d=Vo((+(f>>>0)+.5)*.0027076061740622863+-44.3614195558365);d=e<<16>>16<0?-d:d}else d=0;a=a+2|0;N[b>>2]=d;b=b+4|0;e=c>>>0>1;c=c-1|0;if(e)continue;break}}}function l1a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[a+24>>2];c=J[a+36>>2]+(K[a+29|0]<<10)|0;a=0;while(1){H[a+b|0]=J[(a<<2)+c>>2]>=0;d=a|1;H[d+b|0]=J[(d<<2)+c>>2]>=0;d=a|2;H[d+b|0]=J[(d<<2)+c>>2]>=0;d=a|3; -H[d+b|0]=J[(d<<2)+c>>2]>=0;a=a+4|0;if((a|0)!=256)continue;break}}function fC(a,b){a=a|0;b=b|0;var c=0,d=0;if((a|0)<=536870911){c=Ezb(a<<2,a>>31<<2|a>>>30,3,0);c=b&1?c:c+((a|0)%3|0)|0;d=(c|0)/76|0;a=c-P(d,76)|0;a:{if(!a)break a;a=(a<<24>>24)%4|0;if(!a)break a;c=((0-a<<24>>24)+c|0)+4|0}a=(b&2?0:(d<<1)+2|0)+c|0}else a=-1;return a|0}function btb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){c=J[a+644>>2];b=c;while(1){d=K[b|0]|K[b+1|0]<<8;H[c|0]=((d<<8|d>>>8)&65535)>>>8;d=K[b+2|0]|K[b+3|0]<<8;H[c+1|0]= -((d<<8|d>>>8)&65535)>>>8;b=b+4|0;c=c+2|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function aQa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;gc[J[J[a>>2]+20>>2]](a,b,e+4|0,d);f=+J[e+12>>2]*.114+(+J[e+4>>2]*.299+ +J[e+8>>2]*.587)+.5;a:{if(R(f)<2147483648){a=~~f;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0;bc=e+16|0}function Fgb(a,b){a=a|0;b=b|0;var c=0;if(M[b+160>>2]>>0)ge(b,8);c=K[a+3|0]|K[a+2|0]<<8;if(!(c>>>0>=262&M[b+160>>2]>=a+c>>>0))ge(b,8); -if(J[b+164>>2]>0){a=a+6|0;c=0;while(1){if(M[b+172>>2]<=K[a|0])ge(b,16);a=a+1|0;c=c+1|0;if((c|0)!=256)continue;break}}return 0}function Df(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=J[a+8>>2]&2147483647;a:{if(d>>>0>c>>>0){d=J[a>>2];J[a+4>>2]=c;kk(d,b,c);J[e+12>>2]=0;J[d+(c<<2)>>2]=J[e+12>>2];break a}f=d-1|0;g=(c-d|0)+1|0;d=J[a+4>>2];Yr(a,f,g,d,0,d,c,b)}bc=e+16|0;return a|0}function v2a(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0,g=0;O[a>>3]=b;b=W(b);a:{if(b<4294967296&b>=0){c=~~b>>>0;break a}c= -0}J[a+8>>2]=c<<1;J[a+12>>2]=1-(c&2147483647);d=c<<9;if(d>>>0>M[a+20>>2]){e=J[a+16>>2];if(e)qc(e);J[a+20>>2]=d;f=a,g=rc((d|0)<0?-1:c<<10),J[f+16>>2]=g}}function uub(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=J[b+1176>>2]+P(J[b+1168>>2],J[a+2552>>2])|0;c=J[a+2516>>2];while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}return TD(a)|0}function po(a,b){var c=0;c=J[a+8>>2];a:{if(J[a+12>>2]-c>>3>>>0<=b>>>0){b=0;a=J[a+4>> -2];if(!a|J[a>>2])break a;J[a>>2]=130;return 0}a=(b<<3)+c|0;b=J[a>>2];b:switch(J[a+4>>2]-1|0){case 1:return b<<16;case 0:break b;default:break a}b=((b>>31)+b|0)- -8192>>14}return b}function oe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=J[a>>2];e=J[d>>2];a:{if(!b){if(e)break a;J[a+4>>2]=0;return}f=J[a+4>>2];g=rc(P(b,c));d=J[a>>2];h=J[d>>2];b:{if(!e)break b;c=P(b>>>0>f>>>0?f:b,c);if(!c)break b;tc(g,h,c)}e=h}J[d>>2]=g;J[a+4>>2]=b;qc(e)}function nXa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;if(!(K[a+ -220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))){uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];gc[J[J[b>>2]+348>>2]](b,826956)|0;a=J[a+104>>2];J[c+12>>2]=4;gc[J[J[a>>2]+312>>2]](a,c+12|0)|0}bc=c+16|0}function mXa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;if(!(K[a+220|0]|K[a+204|0]|(K[a+205|0]?J[a+212>>2]:0))){uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];gc[J[J[b>>2]+348>>2]](b,826960)|0;a=J[a+104>>2];J[c+12>>2]=4;gc[J[J[a>>2]+312>>2]](a,c+12|0)|0}bc=c+16|0}function br(a,b,c){var d=0;d= -bc-32|0;bc=d;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=1;J[d+16>>2]=c;Cc(0,0,0,a,0,1,1,3,c,0,0,0,b,d+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[d>>2]=c;Cc(0,0,0,0,0,1,1,3,c,0,0,0,b,d)}bc=d+32|0}function Ru(a,b,c){var d=0,e=0,f=0;d=a*a;f=d*(d*d)*(d*1.58969099521155E-10+-2.5050760253406863E-8)+(d*(d*2.7557313707070068E-6+-1.984126982985795E-4)+.00833333333332249);e=d*a;if(!c)return e*(d*f+-.16666666666666632)+a;return a-(d*(b*.5-f*e)-b+e*.16666666666666632)} -function K1a(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(!(e>>>0>2|(K[a|0]!=105|e?a:0))){J[f>>2]=0;a=J[b+4>>2];a:{b:{if(!(K[a+62|0]!=1|!K[a+66|0])){if(J[f>>2]>0)break a;c=734948;break b}if(J[f>>2]>0)break a;c=734950}qK(a,c,1,b+16|0,J[b+20>>2],b+24|0,0,f)}}}function Fw(a,b,c,d){var e=0,f=0;if(!(J[a+32>>2]|(!a|!b))){e=J[a+8>>2];if(!((e|0)==J[a+24>>2]|e>>>0>2147483646))J[a+24>>2]=e;e=J[a+20>>2];f=J[a+4>>2];if(!((e|0)==(f|0)|f>>>0>2147483646)){J[a+20>>2]=f;e=f}a=J[a>>2];J[b+20>>2]=e+a;a=a+c|0; -J[b+12>>2]=a;J[b+16>>2]=a+d}}function EB(a,b,c){var d=0;d=bc-32|0;bc=d;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=9;J[d+16>>2]=c;Cc(0,0,0,a,0,1,9,3,0,0,0,c,b,d+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[d>>2]=c;Cc(0,0,0,0,0,1,9,3,0,0,0,c,b,d)}bc=d+32|0}function rx(a){var b=0,c=0,d=0;a:{if(!a)break a;b=H[a|0];d=b&255;if(!d|!(K[(d>>>3|0)+254784|0]>>>(b&7)&1))break a;while(1){if(c>>>0>429496727)return-1;c=K[b+254816|0]+P(c,10)|0;b=H[a+1|0];a=a+1|0;if(K[((b&248)>>> -3|0)+254784|0]>>>(b&7)&1)continue;break}}return c}function e5a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+8|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+19|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return}FE(c,J[b>>2],J[b+4>>2]);return}a=(e|0)<0;GE(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}}function Eib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+88>>2];if(b)J[b>>2]=J[a+300>>2];if(c)J[c>>2]=J[a+304>>2];a:{if(!f){c=65536;a=65536;break a}c=td(L[f+12>>1]<<6,J[a+304>> -2]);a=td(L[f+14>>1]<<6,J[a+304>>2])}if(d)J[d>>2]=c;if(e)J[e>>2]=a;return 0}function Eaa(a){a=a|0;var b=0,c=0;b=J[a+584>>2];if(b){qO(a);J[a+672>>2]=J[b+128>>2];J[a+668>>2]=J[b+132>>2];c=J[b+124>>2];a:{b:{if(c&2){go(b- -64|0);break b}if(!(c&1))break a;kl(b- -64|0)}J[b+124>>2]=0}qc(b);J[a+584>>2]=0;Bq(a);return}fa(77347,70424,278,98091);B()}function $jb(a){a=a|0;var b=0,c=0,d=0;c=J[a+16>>2];b=161;a:{if(M[a+20>>2]>>0)break a;d=J[a+32>>2];c=sl(a,J[c>>2]);b=3;if(c-17>>>0<4294967281)break a;I[d+176>> -1]=c;b=d;d=(J[a+20>>2]-J[a+16>>2]>>>2|0)-4|0;I[b+178>>1]=d;I[a+38>>1]=d;I[a+36>>1]=c;b=0}return b|0}function xD(a,b){var c=0,d=0;c=bc-16|0;bc=c;a:{if(!a|!b)break a;b:{if((a|0)==(b|0))break b;d=J[a+36>>2];J[c+8>>2]=d;if(d){xo(c+8|0);J[a+36>>2]=0}b=J[b+36>>2];if(!b)break b;b=HM(b);if(!b)break a;d=J[a+36>>2];J[c+12>>2]=d;if(d)xo(c+12|0);J[a+36>>2]=b}}bc=c+16|0}function pca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(pj(a,J[b+8>>2],0)){wE(b,c,d);return}e=J[a+12>>2];f=a+16|0;NO(f,b,c,d);a=a+24|0;e= -(e<<3)+f|0;a:{if(a>>>0>=e>>>0)break a;while(1){NO(a,b,c,d);if(K[b+54|0])break a;a=a+8|0;if(e>>>0>a>>>0)continue;break}}}function bPa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206368;b=J[a+392>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+264>>2];if(d){gc[J[J[d>>2]+4>>2]](d);b=J[a+392>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function _Oa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206388;b=J[a+360>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+232>>2];if(d){gc[J[J[d>> -2]+4>>2]](d);b=J[a+360>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function WOa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206408;b=J[a+376>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+248>>2];if(d){gc[J[J[d>>2]+4>>2]](d);b=J[a+376>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function yM(a){var b=0,c=0;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b=J[c+8>>2];J[c+8>>2]=b-1;if((b|0)<=1){b= -J[c+12>>2];if(b){if(J[c+4>>2]>0){b=0;while(1){qc(J[J[c+12>>2]+(b<<2)>>2]);b=b+1|0;if((b|0)>2])continue;break}b=J[c+12>>2]}qc(b)}qc(c)}J[a>>2]=0}}function odb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a>>2];c=J[d+552>>2];a:{d=gh(J[J[d+96>>2]+4>>2],241268);if(!(!d|!c)){c=J[c>>2];if(c)break a}xr(J[a>>2],b);return 0}c=gc[c|0](d)|0;xr(J[a>>2],b);if(c)gc[J[c+4>>2]](J[J[a+40>>2]>>2],J[a+16>>2],J[a+20>>2],0,0);return 0}function nx(a,b){var c=0;if(!a)return 40;J[a+16>>2]=b;J[a+8>>2]=0;J[a+12>>2]=0;J[a+20>>2]= -0;J[a+24>>2]=0;J[a>>2]=0;b=Oj(b,239609);if(!b)return 1;Xg(b,0,2);c=wq(b);J[a+4>>2]=c;if(!c){fg(b);return 81}Xg(b,0,0);J[a+24>>2]=1663;J[a+20>>2]=1664;J[a+12>>2]=b;return 0}function iG(a){a=a|0;var b=0;J[a>>2]=2420700;b=J[a+44>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+48>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+52>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;return iv(a)|0}function i1(a,b){var c=0,d=0,e=0,f=0,g=0;e=65534;c=J[a+4>>2];a:{if(!c)break a; -f=J[a+20>>2];a=0;if((c|0)!=1)while(1){d=a+c>>>1|0;g=M[(d<<3)+f>>2]>b>>>0;a=g?a:d;c=g?d:c;if(a>>>0>>0)continue;break}a=(a<<3)+f|0;if(J[a>>2]!=(b|0))break a;e=J[a+4>>2]}return e}function cZ(a){a=a|0;var b=0,c=0;a:{if(J[a+12>>2])break a;b=J[a>>2];if((gc[J[J[b>>2]+12>>2]](b)|0)==6)b=J[J[a>>2]+16>>2];b:switch(gc[J[J[b>>2]+12>>2]](b)|0){case 0:case 1:return J[a+8>>2]>0|0;case 2:case 3:break b;default:break a}c=(J[a+8>>2]>2)<<1}return c|0}function PTa(a){a=a|0;var b=0;J[a>>2]=2181352;b=J[a+20>>2];J[695492]= -0;Gc(b);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;b=J[a+28>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+60>>2];if(b)qc(Fh(b));qc(lp(a));return}ea(0)|0;yc();B()}function Kgb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+16>>2];J[a+32>>2]=b;d=J[a+20>>2];J[a+36>>2]=d;c=J[a+8>>2];e=c+J[a>>2]|0;J[a+8>>2]=e>>1;b=b+c|0;J[a+24>>2]=b>>1;J[a+16>>2]=b+e>>2;b=J[a+12>>2];c=b+J[a+4>>2]|0;J[a+12>>2]=c>>1;b=b+d|0;J[a+28>>2]=b>>1;J[a+20>>2]=b+c>>2}function HRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0, -e=0;b=J[a+28>>2];d=O[b+624>>3]-O[b+576>>3];O[b+624>>3]=d;e=O[b+616>>3];O[b+600>>3]=O[b+536>>3]+(O[b+504>>3]*e+d*O[b+520>>3]);O[b+608>>3]=O[b+544>>3]+(e*O[b+512>>3]+d*O[b+528>>3]);a=J[a+8>>2];gc[J[J[a>>2]+184>>2]](a,b)}function oPa(a){a=a|0;var b=0,c=0;b=rc(16);a:{a=J[a+12>>2];b:{if(!a){a=0;break b}c=J[J[a>>2]+8>>2];J[695492]=0;a=$(c|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)==1)break a}J[b+12>>2]=a;J[b>>2]=2206256;J[b+4>>2]=15;J[b+8>>2]=0;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function iCa(a){a=a|0; -var b=0,c=0,d=0,e=0;if(!(Pj(a+20|0)|J[a+16>>2])){H[a+8|0]=1;if(J[a+84>>2]<0){b=J[a+64>>2];d=a,e=gc[J[J[b>>2]+28>>2]](b)|0,J[d+84>>2]=e}b=J[a+96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}Tz(a)}}function aCa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=J[c>>2];if(d){if(J[c+4>>2]==(a|0))break a;aj(c,a);B()}d=J[a+8>>2];if(d)break a;return 0}b=J[b>>2];b:{while(1){if((b|0)==J[d+8>>2])break b;d=J[d>>2];if(d)continue;break}return 0}J[c+4>>2]=a;J[c>>2]=d;return 1}function Mm(a, -b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a:{if(!(K[b|0]?b:0)){a=-1;if(!c)break a;a=K[c|0]?1:-1;break a}a=-1;if(!(!c|!K[c|0])){a=sR(c,2378590);b:{if(a){d=a-b|0;a=a-c|0;break b}a=Qc(c);d=Qc(b)}if((a|0)==(d|0)){a=kd(c,b,a);break a}a=Ec(c,b)}}return a|0}function LN(a,b,c,d,e,f){var g=0,h=0;g=bc-16|0;bc=g;J[g+12>>2]=f;h=J[a>>2];a:{if((h|0)>0){l9(a,b,c,b,c,d,e,g+12|0,h);break a}J[f+32>>2]=e;J[f+28>>2]=d;J[f+24>>2]=c;J[f+20>>2]=b;J[f+12>>2]=e;J[f+8>>2]=d;J[f+4>>2]=c;J[f>>2]=b;J[f+36>>2]=8192;J[f+16>>2]=0}bc= -g+16|0}function Cx(a){a=a|0;var b=0,c=0,d=0;c=J[a+12>>2];b=J[c>>2];if((b|0)!=J[c+4>>2]){while(1){d=J[b>>2];if(d){qc(d);c=J[a+12>>2]}b=b+4|0;if((b|0)!=J[c+4>>2])continue;break}b=J[c>>2]}if(b){J[c+4>>2]=b;qc(b)}qc(c);b=J[a+16>>2];if(b)qc(b);a=J[a+72216>>2];if(a)qc(a)}function Cu(){var a=0,b=0,c=0,d=0;if(J[682417]>0)while(1){b=P(d,28);a=b+2729684|0;c=J[a>>2];if(c){qc(c);J[a>>2]=0}a=b+2729688|0;c=J[a>>2];if(c){qc(c);J[a>>2]=0}b=b+2729692|0;a=J[b>>2];if(a){qc(a);J[b>>2]=0}d=d+1|0;if((d|0)>2];d=J[a+616>>2];if((c|0)!=(d|0))while(1){c=c-8|0;b=J[c+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((c|0)!=(d|0))continue;break}J[a+620>>2]=d;cv(a+496|0)}function gdb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=bc-16|0;bc=d;e=b>>>0>=4?4:b;if(b){h=e>>>0<=1?1:e;b=0;while(1){f=b<<2;g=J[f+c>>2];J[d+f>>2]=((g+(g>>31)|0)+32768&-65536)>>16;b=b+1|0;if((h|0)!=(b|0))continue;break}}a= -Y3(a,e,d);bc=d+16|0;return a|0}function gKa(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+8>>2];e=J[c>>2];if(J[a+12>>2]>=2){b=1;while(1){d=(b<<2)+c|0;J[d-4>>2]=J[d>>2];b=b+1|0;if((b|0)>2])continue;break}}b=J[a+4>>2];b=gc[J[J[b>>2]+28>>2]](b)|0;J[(J[a+8>>2]+(J[a+12>>2]<<2)|0)-4>>2]=b;return e|0}function Sdb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[((c<<2)+a|0)+268>>2];e=J[a+480>>2];c=J[a+484>>2];a=J[a+488>>2];if((b|0)>=0){a=((a+d|0)-c|0)+b|0;a=c+(a-((a|0)%(e|0)|0)|0)|0;return((a|0)<0?c:a)|0}a=a+d-(b+ -c)|0;a=(a|0)%(e|0)-(a+c)|0;return((a|0)>0?0-c|0:a)|0}function QTa(a){a=a|0;var b=0;J[a>>2]=2181352;b=J[a+20>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;b=J[a+28>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+60>>2];if(b)qc(Fh(b));return lp(a)|0}ea(0)|0;yc();B()}function vc(a){var b=0,c=0;b=J[a>>2];J[a>>2]=0;a:{b:{if(!b)break b;J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[695492];J[695492]=0;if((c|0)==1)break a;if(a)break b;J[695492]=0;_(4987,b|0);a= -J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function p8(a){var b=0,c=0;c=J[a+408>>2];b=J[c>>2];J[a+408>>2]=b;if(!b)J[a+412>>2]=0;a:{b:{if(!K[c+12|0])break b;b=J[a+160>>2];if(!b)break b;gc[b|0](a,J[c+4>>2],J[c+8>>2]);break a}b=J[c+4>>2];if(!b)break a;gc[J[a+156>>2]](b,J[c+8>>2])}gc[J[a+156>>2]](c,24)}function ceb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=I[a+302>>1];if(e){f=c<<3;g=J[f+J[b+12>>2]>>2];e=Dd(d,e,J[a+568>>2]);J[f+J[b+12>>2]>>2]=e+g}e=I[a+304>>1];if(e){c=c<< -3;f=J[(c+J[b+12>>2]|0)+4>>2];a=Dd(d,e,J[a+568>>2]);J[(c+J[b+12>>2]|0)+4>>2]=a+f}}function UF(a){var b=0,c=0,d=0,e=0;d=J[a>>2];if(d){b=d;c=J[a+4>>2];if((b|0)!=(c|0)){while(1){c=c-8|0;b=J[c+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((d|0)!=(c|0))continue;break}b=J[a>>2]}J[a+4>>2]=d;qc(b)}}function Okb(a,b){a=a|0;b=b|0;var c=0;a=J[a+712>>2];b=L[J[a+1188>>2]+(b<<1)>>1];a:{if((b|0)==65535)break a;if(b>>>0>=391){b=b-391|0;if(b>>>0>=M[a+1356>>2])break a; -return J[J[a+1360>>2]+(b<<2)>>2]}a=J[a+3084>>2];if(!a)break a;c=gc[J[a+20>>2]](b)|0}return c|0}function Md(a){a=a|0;var b=0,c=0;c=bc-32|0;bc=c;a:{b=Qc(a);if((b|0)>-2){b=b+1|0;b:{if(!b){b=0;break b}b=zc(b);if(!b)break a}a=ff(b,a);bc=c+32|0;return a|0}J[c>>2]=774961;cd(J[651370],779053,c);ya(1);B()}J[c+16>>2]=775649;cd(J[651370],779053,c+16|0);ya(1);B()}function Eka(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c+4>>2]=119;J[c+8>>2]=0;J[695492]=0;H[c+15|0]=1;ca(6460,a|0,b|0,c+4|0);a=J[695492];J[695492]= -0;if((a|0)!=1){if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function kra(a){a=a|0;var b=0;J[a>>2]=2420700;b=J[a+44>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+48>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+52>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;qc(iv(a))}function js(a,b,c){var d=0,e=0,f=0,g=0;if(b)while(1){c=c-1|0;e=a;a=Fzb(a,b,10,0);d=fc;f=c,g=e-Dzb(a,d,10,0)|48,H[f|0]=g;e=b>>>0>9;b=d; -if(e)continue;break}if(a)while(1){c=c-1|0;b=(a>>>0)/10|0;H[c|0]=a-P(b,10)|48;d=a>>>0>9;a=b;if(d)continue;break}return c}function hs(a,b){var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;a:{if(!b){b=0;break a}d=b;b=S(b);qi(c,d,0,0,0,b+81|0);d=0+J[c+8>>2]|0;b=(J[c+12>>2]^65536)+(16414-b<<16)|0;f=e>>>0>d>>>0?b+1|0:b;e=J[c+4>>2];b=J[c>>2]}J[a>>2]=b;J[a+4>>2]=e;J[a+8>>2]=d;J[a+12>>2]=f;bc=c+16|0}function aPa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206368;b=J[a+392>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+264>>2];if(d){gc[J[J[d>> -2]+4>>2]](d);b=J[a+392>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function YOa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206388;b=J[a+360>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+232>>2];if(d){gc[J[J[d>>2]+4>>2]](d);b=J[a+360>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function VOa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2206408;b=J[a+376>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+248>>2];if(d){gc[J[J[d>> -2]+4>>2]](d);b=J[a+376>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function GE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=bc-16|0;bc=e;d=J[a+8>>2]&2147483647;a:{if(d>>>0>c>>>0){d=J[a>>2];J[a+4>>2]=c;Mj(d,b,c);H[e+15|0]=0;H[c+d|0]=K[e+15|0];break a}f=d-1|0;g=(c-d|0)+1|0;d=J[a+4>>2];Zr(a,f,g,d,0,d,c,b)}bc=e+16|0;return a|0}function C3a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[J[b+188>>2]+24>>2];c=Qc(d);if(c>>>0<2147483632){a:{if(c>>> -0<=10){H[a+11|0]=c;break a}e=(c|15)+1|0;b=rc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}f=Zc(a,d,c)+c|0,g=0,H[f|0]=g;return}Id(a);B()}function mJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=rc(8);J[695492]=0;b=aa(3182,e|0,b|0)|0;f=J[695492];J[695492]=0;if((f|0)!=1){J[a+8>>2]=c;J[a>>2]=b;J[a+28>>2]=1;J[a+20>>2]=0;J[a+24>>2]=0;J[a+12>>2]=d;J[a+4>>2]=2;return a|0}a=Z()|0;qc(e);ba(a|0);B()}function gg(a,b){a=a|0;b=b|0;var c=0,d=0;if(!a)return 0;d=J[a+204>>2];J[a+204>>2]=d|1048576;a:{b:{if(!b)break b; -c=J[a+672>>2];c:{if(c){c=gc[c|0](a,b)|0;break c}c=zc(b)}if(c)break b;c=0;if(!(K[a+206|0]&16))break a}J[a+204>>2]=d;return c|0}Ad(a,57632);B()}function _nb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}c=J[b+48>>2];b:{if(!c)break b;d=J[b+52>>2];if(!d)break b;gc[J[a+156>>2]](d,P(c,P(K[b+44|0],3)+2|0))}gc[J[a+156>>2]](b,56);return 0}function RP(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2619288;b=J[a+8>>2];J[695492]=0;c=pa(6638)|0;d=J[695492];J[695492]= -0;a:{if((d|0)==1)break a;if((b|0)!=(c|0)){b=J[a+8>>2];J[695492]=0;_E(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}return a|0}ea(0)|0;yc();B()}function OYa(a,b){a=a|0;b=b|0;var c=0;if(!a)return 0;c=J[a+8>>2];if(!c)return 0;a=J[c+44>>2];a:{b:{if(!a)break b;a=J[a+60>>2];if(!a)break b;a=tf(a,b,0,0);if(a)break a}c=J[c+48>>2];if(!c)return 0;a=0;c=J[c+60>>2];if(!c)break a;a=tf(c,b,0,0)}return a|0}function Jpa(a,b){a=a|0;b=b|0;var c=0,d=0;c=rc(36);J[695492]=0;b=aa(5536,c|0,b|0)|0;d=J[695492];J[695492]= -0;if((d|0)!=1){J[a>>2]=0;md(a,b);J[695492]=0;_(5537,b|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;vc(a);ba(b|0);B()}return}a=Z()|0;qc(c);ba(a|0);B()}function Iob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+428>>2]+8|0;g=J[b+32>>2];if(g){e=J[b+36>>2];d=f;while(1){c=L[e>>1];c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;d=d+2|0;e=e+2|0;h=h+1|0;if(h>>>0>2])continue;break}}return ue(a,J[b>>2],g<<1,f)|0}function Hva(a){a=a|0;var b=0,c=0,d=0;if(!K[a+88|0]){c=a,d=gc[J[J[a>>2]+36>>2]](a)|0,J[c+72>> -2]=d;c=a,d=gc[J[J[a>>2]+44>>2]](a)|0,J[c+76>>2]=d;c=a,d=gc[J[J[a>>2]+40>>2]](a)|0,J[c+80>>2]=d;b=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=b}return J[a+72>>2]}function Gva(a){a=a|0;var b=0,c=0,d=0;if(!K[a+88|0]){c=a,d=gc[J[J[a>>2]+36>>2]](a)|0,J[c+72>>2]=d;c=a,d=gc[J[J[a>>2]+44>>2]](a)|0,J[c+76>>2]=d;c=a,d=gc[J[J[a>>2]+40>>2]](a)|0,J[c+80>>2]=d;b=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=b}return J[a+80>>2]}function GIa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2337492;d=a-4|0;J[d>>2]=2337008; -b=J[a+12>>2];c=J[b+44>>2];if(c){qc(uM(c));b=J[a+12>>2];J[b+44>>2]=0}c=J[b+40>>2];if(c){qc(tH(c));b=J[a+12>>2];J[b+40>>2]=0}b=J[b+48>>2];if(b){qc(b);J[J[a+12>>2]+48>>2]=0}return d|0}function Fva(a){a=a|0;var b=0,c=0,d=0;if(!K[a+88|0]){c=a,d=gc[J[J[a>>2]+36>>2]](a)|0,J[c+72>>2]=d;c=a,d=gc[J[J[a>>2]+44>>2]](a)|0,J[c+76>>2]=d;c=a,d=gc[J[J[a>>2]+40>>2]](a)|0,J[c+80>>2]=d;b=gc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=b}return J[a+76>>2]}function Dka(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c+4>>2]= -97;J[c+8>>2]=0;J[695492]=0;H[c+15|0]=1;ca(6460,a|0,b|0,c+4|0);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function A3(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=348744;b=J[a+2916>>2];if(b){c=b;d=J[a+2920>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;qc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+2916>>2]}J[a+2920>>2]=b;qc(c)}Qe(a+88|0);return a|0}function zNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0; -J[a+8>>2]=13;J[a>>2]=2307560;d=a+8|0;e=J[b>>2];a:{if(!(e>>>0>9|!(1<>2]=5}if(!J[c>>2]){J[a+24>>2]=J[c+8>>2];return a|0}xc(1,-1,809203,0);J[a+24>>2]=1;return a|0}function yh(a){var b=0,c=0,d=0,e=0;b=J[a+24>>2];if(b){if(J[a+16>>2]>0){b=0;while(1){c=b<<2;d=J[c+J[a+24>>2]>>2];e=J[d+32>>2];if(e)If(e);qc(d);J[J[a+24>>2]+c>>2]=0;b=b+1|0;if((b|0)>2])continue;break}b=J[a+24>>2]}qc(b)}b=J[a+32>>2];if(b)$x(b);qc(a)}function qj(a,b,c){var d=0,e=0;if(K[a+ -11|0]>>>7|0)e=J[a>>2];else e=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;d=bc-16|0;bc=d;J[d+12>>2]=b;b=-1;if(a>>>0>c>>>0){a=a-c|0;if(a)a=og((c<<2)+e|0,J[d+12>>2],a);else a=0;b=a?a-e>>2:-1}bc=d+16|0;return b}function ptb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+(b<<1)|0;b=c+(b<<2)|0;c=0;while(1){H[b+3|0]=0;e=K[d+1|0];H[b+1|0]=0;H[b+2|0]=e;H[b|0]=K[d|0];b=b-4|0;d=d-2|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function p3a(a,b){a=a|0;b=b| -0;var c=0,d=0;c=bc-16|0;bc=c;J[c+12>>2]=0;a:{if(J[a+216>>2]){d=b;break a}d=gc[J[J[a>>2]+84>>2]](a,b,c+12|0)|0;if((d|0)>0|J[a+216>>2]|(J[a+204>>2]==-1|(b|0)>61439))break a;d=gc[J[J[a>>2]+84>>2]](a,b,c+12|0)|0}bc=c+16|0;return d|0}function Xrb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){c=J[a+636>>2]+J[a+616>>2]|0;b=J[a+644>>2];while(1){d=K[c|0];H[b+1|0]=d;H[b|0]=d;H[b+2|0]=K[c|0];H[b+3|0]=K[c+1|0];b=b+4|0;c=c+2|0;e=e+1|0;if((e|0)>2])continue;break}}H[a+649|0]=0;return 0}function MKa(a){a= -a|0;var b=0;J[a>>2]=2331860;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;a:{if((b|0)!=1){b=J[a+60>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(a)}function Lz(a){var b=0,c=0,d=0;b=J[a+16>>2];if((b|0)<=J[a+20>>2]){c=J[a>>2];d=J[c+16>>2];gc[d|0](gc[J[c+4>>2]](J[a+4>>2],b-J[a+8>>2]|0)|0,(J[a+20>>2]-J[a+16>>2]|0)+1|0)}b=J[a+4>>2];if(b)qc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0}function Hra(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+24>>2]=0;J[a+8>>2]=c;J[a+4>>2]=b;J[a>>2]=0;c=c+31&-32;J[a+16>>2]=c;b=b+31&-32;J[a+12>>2]=b;b=P(b,c);c=b>>10;J[a+20>>2]=c;d=b>>6;c=rc(c>>>0>268435455?-1:d);if(b)wc(c,0,d);J[a+28>>2]=4080;J[a>>2]=c;return a|0}function DLa(a){a=a|0;var b=0;J[a>>2]=2331228;a:{if(J[a+44>>2]){b=J[a+24>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a>>2]=2330896;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;qc(a);return}ea(0)|0;yc();B()}function qwb(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=J[a+4>>2];if(e){d=J[a+12>>2];a:{if(!d){d=J[a+8>>2];break a}J[e+20>>2]=d+J[e+20>>2];J[a+12>>2]=0;d=d+J[a+8>>2]|0;J[a+8>>2]=d}tc(b,J[e+4>>2]+d|0,c);b=J[a+4>>2];J[b+20>>2]=J[b+20>>2]+c;J[a+8>>2]=J[a+8>>2]+c}}function o4a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-112|0;bc=d;b=J[b+8>>2];if(b){e2(d+8|0,b,J[c>>2]);b=J[d+44>>2];J[a+8>>2]=J[d+40>>2];J[a+12>>2]=b;b=J[d+36>>2];J[a>>2]=J[d+32>>2];J[a+4>>2]=b;N[a+16>>2]=N[d+24>>2];N[a+20>>2]=N[d+28>>2];fj(d+84|0)}bc=d+112|0}function dqb(a){a= -a|0;var b=0,c=0,d=0,e=0;b=J[a+644>>2];c=J[a+636>>2];J[a+644>>2]=c;J[a+636>>2]=b;d=J[a+588>>2];if((d|0)>0){b=b+(d<<3)|0;while(1){d=b-8|0;J[c>>2]=J[d>>2];J[c+4>>2]=J[b-4>>2];c=c+8|0;b=d;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Wq(a,b){var c=0,d=0;c=J[a+24>>2];if((c|0)>0){b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);d=J[a+20>>2];a=0;while(1){if((b|0)==J[P(a,20)+d>>2])return a;a=a+1|0;if((c|0)!=(a|0))continue;break}}return-1}function Rha(a, -b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{while(1){if((d|0)!=(e|0)){a=-1;if((b|0)==(c|0))break a;f=J[b>>2];g=J[d>>2];if((f|0)<(g|0))break a;if((f|0)>(g|0))return 1;else{d=d+4|0;b=b+4|0;continue}}break}a=(b|0)!=(c|0)}return a|0}function J$a(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(b>>>0>=2){c=J[a+8>>2];break b}J[a+44>>2]=0;J[a+48>>2]=0;c=J[a+8>>2];if(c){H[c+15|0]=0;H[c+13|0]=0}if((b|0)==1)break a}J[a+52>>2]=0;J[a+56>>2]=0;if(!c)break a;J[c+4>>2]=0;J[c+8>>2]=0;H[c+14|0]=0;H[c+12|0]=0}}function Fp(a){var b= -0,c=0,d=0,e=0,f=0,g=0;c=O[a>>3];d=O[a+24>>3];e=O[a+16>>3];f=O[a+8>>3];b=1/(c*d-e*f);c=c*b;O[a+24>>3]=c;e=b*-e;O[a+16>>3]=e;f=b*-f;O[a+8>>3]=f;b=d*b;O[a>>3]=b;d=-O[a+32>>3];g=d*b;b=O[a+40>>3];O[a+32>>3]=g-e*b;O[a+40>>3]=d*f-c*b;return a}function sc(a){var b=0,c=0,d=0;b=J[a>>2];J[a>>2]=0;a:{if(!b)break a;J[695492]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[695492];J[695492]=0;if((d|0)!=1){if(c)break a;J[695492]=0;_(4987,b|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}return a}function r6a(a){a= -a|0;var b=0,c=0,d=0,e=0;J[a>>2]=349096;b=J[a+248>>2];if(b){c=b;d=J[a+252>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;qc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+248>>2]}J[a+252>>2]=b;qc(c)}Qe(a+92|0);return a|0}function _Z(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[a+20>>2]>0)while(1){if(!J[J[a+12>>2]+(d<<2)>>2])CI(a,d+1|0,d,J[a+8>>2]);e=J[a+16>>2]+(d<<3)|0;if(!(J[e>>2]!=(b|0)|J[e+4>>2]!=(c|0)))return d+1|0;d=d+1|0;if((d|0)>2])continue;break}return 0}function Uu(a){return(a* -(a*(a*(a*(a*3.479331075960212E-5+7.915349942898145E-4)+-.04005553450067941)+.20121253213486293)+-.3255658186224009)+.16666666666666666)*a/(a*(a*(a*(a*.07703815055590194+-.6882839716054533)+2.0209457602335057)+-2.403394911734414)+1)}function N7a(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(f>>>0<=254){b=255-f|0;H[a+2|0]=P(b,K[a+2|0])+255>>>8;H[a+1|0]=P(K[a+1|0],b)+255>>>8;H[a|0]=P(K[a|0],b)+255>>>8;H[a+3|0]=P(K[a+3|0],b)+255>>>8;return}H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0}function Jxb(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;if(J[a+12>>2]>0){d=J[a+16>>2];while(1){f=J[d>>2];J[c+12>>2]=J[d+4>>2];J[c+8>>2]=e;J[c+4>>2]=f;J[c>>2]=e;cd(b,210297,c);d=d+8|0;e=e+1|0;if((e|0)>2])continue;break}}bc=c+16|0;return 0}function Fib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;q5(a,b,c,d);b=J[a+300>>2];c=J[a+304>>2];a:{if((b|0)==(c|0))break a;e=J[d>>2];if(e)f=d,g=Dd(e,b,c),J[f>>2]=g;b=J[d+4>>2];if(!b)break a;f=d,g=Dd(b,J[a+300>>2],J[a+304>>2]),J[f+4>>2]=g}return 0}function ELa(a){a= -a|0;var b=0;J[a>>2]=2331228;a:{if(J[a+44>>2]){b=J[a+24>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a>>2]=2330896;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}ea(0)|0;yc();B()}function D6a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=Q(0),e=Q(0),f=Q(0),g=Q(0);d=N[a+4>>2];c=Q(c-N[a+252>>2]);b=Q(b-N[a+248>>2]);e=N[a+8>>2];f=N[a+256>>2];g=Q(R(Q(Q(Q(Q(d*c)-Q(b*e))*N[a+268>>2])*f)));b=Q(R(Q(Q(N[a+264>>2]*Q(Q(b*d)+Q(c*e)))*f)));return Q(b>2]=f;if(d)while(1){e=(g<<3)+c|0;if(!J[e>>2]){J[e>>2]=f;J[e+4>>2]=b;J[e+8>>2]=0;cc=d;return c}g=g+1|0;if((g|0)!=(d|0))continue;break}e=a;a=d<<1;b=zf(e,b,Vd(c,d<<4|8),a);cc=a;return b}function qxa(a){a=a|0;var b=0,c=0;a=J[689893];J[689893]=0;a:{if(!a)break a;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}}function nzb(a, -b){a=a|0;b=b|0;var c=0,d=0;c=bc+-64|0;bc=c;J[c+48>>2]=J[a+16>>2];cd(b,206355,c+48|0);d=J[a+24>>2];J[c+32>>2]=J[a+20>>2];J[c+36>>2]=d;cd(b,206961,c+32|0);J[c+16>>2]=J[a+32>>2];cd(b,207074,c+16|0);J[c>>2]=K[a+36|0];cd(b,207299,c);bc=c- -64|0}function n9(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0;a:{if((h|0)>0){j=c+1|0;k=j>>1;l=d+1|0;m=l>>1;i=-1;if(n9(a,b,k,m,(e+j>>1)-k|0,(f+l>>1)-m|0,g,h-1|0))break a}if(!((e|0)<=0|(f|0)<=0)){i=-1;if(gc[J[J[a+4>>2]+4>>2]](b,c,d,e,f,g)|0)break a}i=0}return i}function jGa(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[J[a+4>>2]+12>>2]+32|0;c=J[d>>2];a:{if(!c)break a;a=d;while(1){e=J[c+16>>2]<(b|0);a=e?a:c;c=J[(e?c+4|0:c)>>2];if(c)continue;break}if((a|0)==(d|0)|J[a+16>>2]>(b|0))break a;f=vX(J[a+20>>2])}return f|0}function iib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+20>>2];if(K[a+68|0]){a=J[e+8>>2];f=I[e+2>>1];g=J[e+4>>2]+(f<<3)|0;J[g>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[g+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+f|0]=d?1:2}I[e+2>>1]=L[e+2>>1]+1}function i2a(a){a= -a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;J[b+12>>2]=0;a:{b:{c=K[a+11|0];d=c<<24>>24<0;e=d?J[a>>2]:a;if(e){a=d?J[a+4>>2]:c;if(a)break b}a=Ny(0);break a}Ep(e,a,b+12|0,b+8|0,0);c=J[b+12>>2];a=Ny(c);if(!c)break a;qc(c)}bc=b+16|0;return!a|0}function fwa(a){a=a|0;var b=0,c=0;a=J[690030];J[690030]=0;a:{if(!a)break a;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}}function P6a(a){a= -a|0;var b=0,c=0,d=0,e=0;J[a>>2]=348744;b=J[a+2916>>2];if(b){c=b;d=J[a+2920>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;qc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+2916>>2]}J[a+2920>>2]=b;qc(c)}Qe(a+88|0);qc(a)}function HL(a){a=a|0;a=qf(a,17);J[a+976>>2]=0;J[a+980>>2]=0;J[a>>2]=47976;J[a+984>>2]=0;J[a+988>>2]=0;J[a+992>>2]=0;J[a+996>>2]=0;J[a+1E3>>2]=0;J[a+1004>>2]=0;J[a+1008>>2]=0;J[a+1012>>2]=0;J[a+1016>>2]=1065353216;J[a+1020>>2]=-1;J[a+1024>>2]=0;return a|0}function Gxa(a){a= -a|0;var b=0,c=0;a=J[689886];J[689886]=0;a:{if(!a)break a;J[695492]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[695492];J[695492]=0;if((c|0)!=1){if(b)break a;J[695492]=0;_(4987,a|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}}function rk(a){a=a|0;var b=0;a:{b:switch(a|0){case 0:a=rc(12);J[a>>2]=2205736;break a;case 2:a=rc(12);J[a>>2]=2205840;break a;case 4:b=rc(12);J[b>>2]=2205944;J[b+4>>2]=15;J[b+8>>2]=0;break;default:break b}return b|0}J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function pfb(a,b, -c){a=a|0;b=b|0;c=c|0;a:{b:{if(c){c=gc[J[a+516>>2]](a,1986553185,b,0)|0;if(c)break a;a=a+296|0;break b}c=gc[J[a+516>>2]](a,1751672161,b,0)|0;if(c)break a;a=a+216|0}c=Me(b,325968,a);if(c)break a;J[a+36>>2]=0;J[a+40>>2]=0;c=0}return c|0}function no(a){var b=0,c=0,d=0,e=0,f=0;a:{if(K[a+4|0])break a;e=J[a>>2];b=J[e>>2];if(!b)break a;c=b;d=J[e+4>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;f=J[c>>2];if(f){J[d-8>>2]=f;qc(f)}d=c;if((d|0)!=(b|0))continue;break}c=J[J[a>>2]>>2]}J[e+4>>2]=b;qc(c)}}function Wy(a){var b= -0,c=0;b=J[a+72>>2];J[a+72>>2]=b-1|b;if(J[a+20>>2]!=J[a+28>>2])gc[J[a+36>>2]](a,0,0)|0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=J[a>>2];if(b&4){J[a>>2]=b|32;return-1}c=J[a+44>>2]+J[a+48>>2]|0;J[a+8>>2]=c;J[a+4>>2]=c;return b<<27>>31}function NE(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];J[695492]=0;c=pa(6638)|0;d=J[695492];J[695492]=0;a:{b:{if((d|0)==1)break b;if((b|0)!=(c|0)){b=J[a+8>>2];J[695492]=0;_E(b);b=J[695492];J[695492]=0;if((b|0)==1)break b}break a}ea(0)|0;yc();B()}return a|0}function LP(a){a=a| -0;var b=0,c=0,d=0,e=0;J[a>>2]=2618184;c=a+8|0;while(1){b=J[c>>2];if(J[c+4>>2]-b>>2>>>0>d>>>0){b=J[b+(d<<2)>>2];if(b){e=J[b+4>>2]-1|0;J[b+4>>2]=e;if((e|0)==-1)gc[J[J[b>>2]+8>>2]](b)}d=d+1|0;continue}break}ad(a+152|0);QP(c);return a|0}function Asb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=K[d|0];e=J[a+2296>>2];if(e)c=gc[e|0](c&255)|0;H[b+2|0]=c;H[b+1|0]=c;H[b|0]=c;b=b+3|0;d=d+1|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function r0(a,b){var c= -0,d=0;if(!(J[a+32>>2]|(!a|!b))){c=J[a+8>>2];if(!((c|0)==J[a+24>>2]|c>>>0>2147483646))J[a+24>>2]=c;c=J[a+20>>2];d=J[a+4>>2];if(!((c|0)==(d|0)|d>>>0>2147483646)){J[a+20>>2]=d;c=d}a=J[a>>2];J[b+12>>2]=a;J[b+16>>2]=a;J[b+20>>2]=a+c}}function lDa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2382568;c=J[a+32>>2];d=J[a+8>>2];e=J[a+20>>2];b=J[a+12>>2];f=J[a+24>>2];J[695492]=0;ca(c|0,d|0,e-b|0,f-b|0);b=J[695492];J[695492]=0;if((b|0)!=1){qc(J[a+8>>2]);J[a+8>>2]=0;return a|0}ea(0)|0;yc();B()}function cw(a){var b= -0,c=0;c=Oj(a,775057);if(!c)return 10;b=rc(1040);J[b+1032>>2]=0;J[b+1036>>2]=0;J[b+4>>2]=c;J[b>>2]=2181200;c=y_(b);gc[J[J[b>>2]+4>>2]](b);a:{if((c|0)!=9)break a;c=9;b=Qc(a);if((b|0)<6)break a;c=Ec((a+b|0)-6|0,775687)?9:8}return c}function Yla(a,b,c){a=a|0;b=b|0;c=c|0;c=0;a:{if(J[b>>2]!=64)break a;c=1;a=J[a+12>>2];if(J[a+80>>2]!=1E3|J[a+84>>2]!=J[a+12>>2]|J[a+92>>2]!=J[a+16>>2])break a;a=a+648|0;if(R(pC(a))>1)break a;a=J[a>>2];if(O[a>>3]<0|O[a+24>>3]<0)break a;c=0}return c|0}function WSa(a){a=a|0;var b= -0,c=0,d=0;b=rc(28);J[b+8>>2]=256;J[b>>2]=0;J[695492]=0;c=aa(3376,256,4)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[b+4>>2]=c;tc(c,a,1024);J[b+20>>2]=0;J[b+24>>2]=1;J[b+12>>2]=0;J[b+16>>2]=0;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function RKa(a){a=a|0;var b=0,c=0;b=rc(148);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[695492]=0;a=$(c|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[b>>2]=2331760;J[b+4>>2]=a;J[b+144>>2]=0;a=b+8|0;J[b+140>>2]=a;J[b+136>>2]=a;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function unb(a,b,c){a=a| -0;b=b|0;c=c|0;if(J[c>>2]!=1296581714){Dc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=J[c+56>>2];return 0}function jj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=Q(0),f=0;d=1;a:{if(!c)break a;J[c>>2]=0;if(!a|(b|0)<0|J[a+4>>2]<=(b|0))break a;e=N[J[a+20>>2]+(b<<2)>>2];f=(e>2]=a;d=0}return d|0}function cnb(a,b,c){a=a| -0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1700286537){Dc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];d=J[c+36>>2];J[b+36>>2]=d;if(d){d=gc[J[a+152>>2]](d)|0;J[b+40>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+40>>2],J[b+36>>2])}return 0}function Qn(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;J[a+48>>2]=g;J[a+44>>2]=f;J[a+40>>2]=e;J[a+36>>2]=d;J[a+32>>2]=c;J[a+28>>2]=b;J[a+20>>2]=0;J[a+24>>2]=-1;J[a+12>>2]=0;J[a+16>>2]=-1;J[a>>2]=2382568;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}function zYa(a,b,c,d){a= -a|0;b=b|0;c=c|0;d=d|0;b=bc-32|0;bc=b;if(a){a:{if(!J[a+68>>2])break a;d=J[a+52>>2];if(!d)break a;c=J[a+36>>2];J[b+24>>2]=J[c+16>>2]-J[c+12>>2];c=J[c+28>>2];J[b+12>>2]=d;J[b+28>>2]=c;Aw(a,b+12|0)}J[a+264>>2]=-1;nB(a)}bc=b+32|0}function uYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+272>>2];if(d){e=J[d+32>>2];a:{if(!e)break a;gc[e|0](a,b,c);b=J[a+52>>2];if(!b)break a;a=J[a+36>>2];if(!a)break a;a=J[a+16>>2];if(!a|K[a|0]!=47|K[a+1|0]!=62)break a;I[b+58>>1]=1}J[d+16>>2]=1}}function q6a(a){a=a|0;var b=0, -c=0,d=0,e=0;J[a>>2]=349096;b=J[a+248>>2];if(b){c=b;d=J[a+252>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;qc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+248>>2]}J[a+252>>2]=b;qc(c)}Qe(a+92|0);qc(a)}function nO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a>>2]=1032;f=J[b+68>>2];wc(a+4|0,0,972);H[a+388|0]=255;J[a+344>>2]=1119092736;J[a+68>>2]=f;H[a+390|0]=1;J[a+336>>2]=-1;H[a+348|0]=1;wm(a,96);fq(a,96);H[a+494|0]=1;nE(a,b,c,d,e);return a|0}function aGa(a,b){a=a|0;b=b|0; -var c=0,d=0;c=bc-16|0;bc=c;d=c+4|0;gc[J[J[a>>2]+12>>2]](d,a,b);J[695492]=0;$(44,d|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function a0(a){var b=0,c=0,d=0,e=0;if(a){b=J[a>>2];c=J[b>>2];if((c|0)!=(b|0))while(1){d=J[a+4>>2];e=J[c+4>>2];b=J[c>>2];J[e>>2]=b;J[b+4>>2]=e;if(d)gc[d|0](c);gc[J[659451]](c);c=b;if((b|0)!=J[a>>2])continue;break}gc[J[659451]](b);gc[J[659451]](a)}}function Mcb(a,b){a=a|0;b=b|0;var c= -0;xr(J[a>>2],b);c=J[a>>2];b=J[c+320>>2];c=gh(J[J[c+96>>2]+4>>2],240758);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;b=gc[b|0](c)|0;if(!b)break a;gc[J[b+4>>2]](J[J[a+40>>2]>>2],J[a+16>>2],J[a+20>>2],0,0)}return 0}function Jx(a,b){var c=0;a:{if(!J[a+276>>2]){J[a+276>>2]=b;if(J[a+420>>2])break a;c=J[b>>2];J[a+420>>2]=c;c=(c|0)==1229472850?1:(c|0)==1246250066?3:2;J[a+12>>2]=c;J[a+8>>2]=c;J[a+280>>2]=b;return}c=J[a+280>>2];J[b+28>>2]=c;J[c+24>>2]=b}J[a+280>>2]=b}function An(a,b){var c=0,d=0;if(K[a+11| -0]>>>7|0)c=J[a>>2];else c=a;d=-1;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;a:{if(!a)break a;a=(a<<2)+c|0;while(1){if((a|0)==(c|0))break a;a=a-4|0;if(J[a>>2]!=(b|0))continue;break}d=a-c>>2}return d}function ryb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;if(J[a+20>>2])while(1){e=J[a+24>>2]+P(d,12)|0;f=J[e>>2];g=J[e+4>>2];J[c+8>>2]=J[e+8>>2];J[c>>2]=f;J[c+4>>2]=g;cd(b,208234,c);d=d+1|0;if(d>>>0>2])continue;break}bc=c+16|0}function nra(a,b){a=a|0;b=Q(b);var c=0;c=bc-32| -0;bc=c;a:{if(!(b<=Q(1)&b>Q(0))){a=Kc(c+8|0,2381239,2374197,1555,2420592,0);J[695492]=0;_(5019,a|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(a);ba(c|0);B()}N[a+8>>2]=b;bc=c+32|0;return}B()}function mnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1145656131){Dc(a,2050,0,0);return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){e=b;d=d<<1;b=gc[J[a+152>>2]](d)|0;J[e+36>>2]=b;if(b){tc(b,J[c+36>>2],d);return 0}Dc(a,1,0,0);a=1}else a=0;return a|0}function lk(a,b,c){var d=0,e=0,f=0,g=0;J[a+112>>2]= -b;J[a+116>>2]=c;e=J[a+4>>2];d=J[a+44>>2]-e|0;J[a+120>>2]=d;J[a+124>>2]=d>>31;d=J[a+8>>2];a:{if(!(b|c))break a;f=d-e|0;g=f>>31;if((c|0)>=(g|0)&b>>>0>=f>>>0|(c|0)>(g|0))break a;d=b+e|0}J[a+104>>2]=d}function jy(a,b,c){var d=0,e=0;if(K[a+11|0]>>>7|0)e=J[a>>2];else e=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;d=bc-16|0;bc=d;H[d+15|0]=b;b=-1;if(a>>>0>c>>>0){a=a-c|0;if(a)a=pg(c+e|0,H[d+15|0],a);else a=0;b=a?a-e|0:-1}bc=d+16|0;return b}function hnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1129072976){Dc(a, -2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];H[b+36|0]=K[c+36|0];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];J[b+52>>2]=J[c+52>>2];return 0}function eW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+4>>2];a:{if(!d)break a;e=a+4|0;a=e;while(1){f=Qm(d+16|0,b);a=f?a:d;d=J[(f?d+4|0:d)>>2];if(d)continue;break}if((a|0)==(e|0))break a;if(Qm(b,a+16|0))break a;Xf(c,a+28|0);g=1}return g|0}function cra(a,b){a=a|0;b=Q(b);var c=0;c=bc-32|0;bc=c;a:{if(!(b<=Q(1)&b> -Q(0))){a=Kc(c+8|0,2387734,2374197,1822,2420815,0);J[695492]=0;_(5019,a|0);c=J[695492];J[695492]=0;if((c|0)!=1)break a;c=Z()|0;Fc(a);ba(c|0);B()}N[a+8>>2]=b;bc=c+32|0;return}B()}function Ymb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1245987137){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];d=J[c+36>>2];J[b+36>>2]=d;if(d){d=gc[J[a+152>>2]](d)|0;J[b+40>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+40>>2],J[b+36>>2])}return 0}function Xmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1245987156){Dc(a, -2050,0,0);return 2050}H[b+32|0]=K[c+32|0];d=J[c+36>>2];J[b+36>>2]=d;if(d){d=gc[J[a+152>>2]](d)|0;J[b+40>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+40>>2],J[b+36>>2])}return 0}function VPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=wc(a,0,256);d=J[b>>2]+c|0;e=K[d+1|0];d=K[d|0];f=e+d|0;b=J[b+4>>2]+c|0;c=K[b+1|0];b=K[b|0];g=c+b|0;J[a+32>>2]=f-g<<4;d=d-e|0;b=b-c|0;J[a+36>>2]=d-b<<4;J[a+4>>2]=b+d<<4;J[a>>2]=(f+g<<4)+-8192}function Uwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=J[a+40>>2];b=J[a+52>>2];c=gc[J[J[b>> -2]+20>>2]](b,2)|0;e=gc[J[J[b>>2]+36>>2]](b)|0;if(J[d+16>>2]>0){f=c-2|0;c=0;while(1){gc[J[J[b>>2]+28>>2]](b,e);S8(a,c,f);c=c+1|0;if((c|0)>2])continue;break}}}function Tya(a){a=a|0;var b=0;md(a+8|0,0);md(a+36|0,0);md(a+40|0,0);md(a+44|0,0);md(a+12|0,0);md(a+32|0,0);md(a+20|0,0);md(a+24|0,0);md(a+28|0,0);md(a+48|0,0);yz(a+52|0,2378639);yz(a+60|0,2378639);a=a+148|0;b=J[a>>2]&44;if((b|0)!=J[a>>2])J[a>>2]=b}function Qmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1146244944){Dc(a,2050,0,0); -return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){e=b;d=d<<2;b=gc[J[a+152>>2]](d)|0;J[e+36>>2]=b;if(b){tc(b,J[c+36>>2],d);return 0}Dc(a,1,0,0);a=1}else a=0;return a|0}function Oib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a>>2];b=J[c+408>>2];J[a+16>>2]=b;d=J[c+416>>2];J[a+20>>2]=d;a=1;c=0;a:{if(b>>>0<=1)break a;while(1){e=(a<<4)+d|0;if(M[e-16>>2]>2]){a=a+1|0;if((b|0)!=(a|0))continue;break a}break}c=8}return c|0}function Mmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1330791506){Dc(a,2050,0,0);return 2050}d= -J[c+32>>2];J[b+32>>2]=d;if(d){e=b;d=d<<3;b=gc[J[a+152>>2]](d)|0;J[e+36>>2]=b;if(b){tc(b,J[c+36>>2],d);return 0}Dc(a,1,0,0);a=1}else a=0;return a|0}function Koa(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function Knb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1229209940){Dc(a,2050,0,0);return 2050}H[b+32| -0]=K[c+32|0];d=J[c+36>>2];J[b+36>>2]=d;if(d){d=gc[J[a+152>>2]](d)|0;J[b+40>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+40>>2],J[b+36>>2])}return 0}function Fhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b>>2]+1|0;d=J[a+16>>2];c=c>>>0>d>>>0?c:d;d=d+J[a+20>>2]|0;a:{if(c>>>0>>0){e=J[a+24>>2];while(1){a=L[(c<<1)+e>>1];if(a)break a;c=c+1|0;if((d|0)!=(c|0))continue;break}}a=0;c=0}J[b>>2]=c;return a|0}function Bwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[695492]=0;b=$(5074,d|0)|0;c=J[695492];J[695492]=0;a:{b:{if((c| -0)!=1){if(!b)break b;J[695492]=0;ia(5277,a|0,d|0,0,-1);b=J[695492];J[695492]=0;if((b|0)!=1)break a}na(ea(0)|0)|0;ta()}J[a>>2]=0;md(a,0)}}function BQ(a,b,c){var d=0,e=0;e=bc-16|0;bc=e;d=bc-32|0;bc=d;cF(d+24|0,a,b);bF(d+16|0,J[d+24>>2],J[d+28>>2],c);J[d+12>>2]=(J[d+16>>2]-a|0)+a;J[d+8>>2]=(J[d+20>>2]-c|0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];bc=d+32|0;bc=e+16|0;return J[e+12>>2]}function Aka(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+124>>2];d=J[a+120>>2];if((c|0)!=(d|0))while(1){c=c-8|0;b=J[c+4>>2]; -a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((c|0)!=(d|0))continue;break}J[a+124>>2]=d}function s1(a){a=a|0;var b=0,c=0,d=0;c=J[a+8>>2];d=bd(1,20);J[d+8>>2]=c;J[d+12>>2]=-1414746709;if(c>>>0<=4294963200){b=bd(1,c+4096|0);J[d+4>>2]=b;b=b?d:0}Pt(b,J[a>>2]);Pt(b+16|0,J[a+16>>2]);c=J[a+8>>2];if(c)tc(J[b+4>>2],J[a+4>>2],c+1|0);return b|0}function cja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=Km(a);if(!((c|0)%(e|0)|0)){if(c)break a;return 1}fa(80004,70356, -615,93965);B()}while(1){f=gc[J[a+544>>2]](a,b,e,d)|0;if((f|0)==1){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)==1|0}function cW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=a+28|0;a=J[e>>2];a:{if(!a)break a;d=e;while(1){f=Qm(a+16|0,b);d=f?d:a;a=J[(f?a+4|0:a)>>2];if(a)continue;break}if((d|0)==(e|0))break a;if(Qm(b,d+16|0))break a;Xf(c,d+28|0);g=1}return g|0}function Rlb(a,b){a=a|0;b=b|0;var c=0;a:{if(J[a+20>>2])break a;b:switch(b-1|0){case 0:a=J[J[J[a>>2]+16>>2]+40>>2];if(a)a=tX(a,1);else a=0; -return a|0;case 1:break b;default:break a}a=J[J[J[a>>2]+16>>2]+40>>2];if(a)c=tX(a,2);else c=0}return c|0}function Nd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;a:{b:{if(!b){b=0;if(!a)break b;qc(a);break b}if((b|0)<0|(c|0)<=0|2147483647/(c>>>0)>>>0<=b>>>0)break a;b=JI(a,P(b,c))}bc=d+16|0;return b|0}J[d>>2]=777085;cd(J[651370],779053,d);ya(1);B()}function HIa(a){a=a|0;var b=0,c=0;J[a+4>>2]=2337492;J[a>>2]=2337008;b=J[a+16>>2];c=J[b+44>>2];if(c){qc(uM(c));b=J[a+16>>2];J[b+44>>2]=0}c=J[b+40>>2]; -if(c){qc(tH(c));b=J[a+16>>2];J[b+40>>2]=0}b=J[b+48>>2];if(b){qc(b);J[J[a+16>>2]+48>>2]=0}return a|0}function $ia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=_i(a);if(!((c|0)%(e|0)|0)){if(c)break a;return 1}fa(80004,70356,600,93947);B()}while(1){f=gc[J[a+544>>2]](a,b,e,d)|0;if((f|0)==1){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)==1|0}function yf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;a:{if(c>>>0<=1){H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;kk(a,b,c);J[d+12>>2]=0;J[(c<< -2)+a>>2]=J[d+12>>2];break a}e=K[a+11|0]&127;Yr(a,1,c-1|0,e,0,e,c,b)}bc=d+16|0;return a|0}function sY(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-768|0;bc=d;e=236;a:{b:switch(a-1|0){case 0:e=768;break;case 1:break b;default:break a}if(b){J[d+668>>2]=c;f=gc[b|0](d,e)|0;if(!f)break a;wc(f,0,e);break a}f=bd(1,e)}bc=d+768|0;return f|0}function rv(a){var b=0,c=0;b=J[a+4>>2];J[a+4>>2]=0;a:{if(!b)break a;J[695492]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[695492];J[695492]=0;if((c|0)!=1){if(a)break a;J[695492]= -0;_(4987,b|0);a=J[695492];J[695492]=0;if((a|0)!=1)break a}ea(0)|0;yc();B()}}function mg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+8>>2];f=J[a+4>>2];if(d>>>0>>0){e=J[a+20>>2];a:{if(e){b=gc[e|0](a,d,b,c)|0;break a}e=b;b=f-d|0;b=b>>>0>>0?b:c;tc(e,J[a>>2]+d|0,b)}J[a+8>>2]=b+d;a=b>>>0>>0?85:0}else a=85;return a|0}function gma(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;f=bc-16|0;bc=f;a=J[a+12>>2];J[f+12>>2]=J[b>>2];J[f+8>>2]=J[c>>2];b=bc-16|0;bc=b;Wu(a);J[b+12>>2]=1;VK(a+2312| -0,f+12|0,f+8|0,b+12|0,J[a+2308>>2],d,e);bc=b+16|0;bc=f+16|0;return 0}function gab(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;a=J[a+4>>2];d=J[a>>2];if(d){e=J[a+12>>2];a=d-1|0;a=J[e+(a>>>6&67108860)>>2]+(a<<4&4080)|0;O[b>>3]=O[a>>3];O[c>>3]=O[a+8>>3]}d=0}return d|0}function Vmb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1145586770){Dc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];H[b+34|0]=K[c+34|0];H[b+35|0]=K[c+35|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+ -40>>2];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];return 0}function Rob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=J[a+428>>2]+8|0;g=J[b+32>>2];if(g){d=f;while(1){c=L[((e<<1)+b|0)+36>>1];c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;d=d+2|0;e=e+1|0;if(e>>>0>2])continue;break}}return ue(a,J[b>>2],g<<1,f)|0}function Pc(a,b){var c=0,d=0,e=0;c=a>>31;d=(c^a)-c|0;c=b>>31;c=(c^b)-c|0;a:{if(d+(c>>>8|0)>>>0<=8190){c=P(c,d)+32768>>>16|0;break a}e=d&65535;c=P(e,c>>>16|0)+P(c,d>>>16|0)+(P(c&65535,e)+32768>>> -16)|0}a=a>>31|1;return(((b|0)<0?0-a|0:a)|0)<0?0-c|0:c}function LAa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=YU(a,b)+32|0;b=b+32|0;if(d)continue;break a}while(1){a=YU(a,b);sc(b+24|0);sc(b+16|0);d=c;c=d-1|0;b=b+32|0;a=a+32|0;if(d)continue;break}}}function Ksa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-32|0;bc=d;a:{if(!c){a=Kc(d+8|0,2382381,2374069,1912,2414506,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0); -B()}J[a>>2]=0;md(a,b);bc=d+32|0;return}B()}function Do(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+4>>2];c=J[a+44>>2];a=!b|!c;a:{if(a)break a;e=a?0:b+40|0;a=0;while(1){d=0;b=(a<<2)+e|0;if(K[b|0]!=(a|0)|K[b+1|0]!=(a|0)|K[b+2|0]!=(a|0))break a;d=1;a=a+1|0;if((c|0)!=(a|0))continue;break}}return d|0}function B1(a){a=a|0;var b=0,c=0,d=0;b=bc-112|0;bc=b;J[b+12>>2]=0;J[b+8>>2]=0;d=K[a+11|0];c=d<<24>>24<0;kr(c?J[a>>2]:a,c?J[a+4>>2]:d,b+12|0,b+8|0,0);a=Rk(J[b+12>>2],b+16|0);d=J[b+20>>2];c=J[b+12>>2];if(c)qc(c);bc= -b+112|0;return!a&(d&61440)==16384}function wHa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:{if(b){if(!a)break b;if(!d)break a;if(c)a=1;else{Hc(d,1,2356439,0);a=0}return a|0}fa(2353829,2346358,3690,2356422);B()}fa(2346477,2346358,3691,2356422);B()}fa(2346590,2346358,3692,2356422);B()}function pta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-32|0;bc=d;a:{if(!c){a=Kc(d+8|0,2375291,2374069,572,2414112,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}J[a>>2]=0;md(a,b); -bc=d+32|0;return}B()}function pka(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+60>>2];d=J[a+56>>2];if((c|0)!=(d|0))while(1){c=c-8|0;b=J[c+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;gc[J[J[b>>2]+8>>2]](b);Vc(b)}if((c|0)!=(d|0))continue;break}J[a+60>>2]=d}function jY(a,b,c){var d=0,e=0;a:{if(b-1>>>0>7)break a;d=((b<<5)+a|0)-32|0;if(!d)break a;b:{if(!c)break b;b=0;a=K[c|0];if(!a)break b;while(1){H[b+d|0]=a;e=b+1|0;if(b>>>0>29)break b;a=K[c+1|0];c=c+1|0;b=e;if(a&255)continue;break}}H[d+e|0]= -0}}function fV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=eV(a,b)+40|0;b=b+40|0;if(d)continue;break a}while(1){a=eV(a,b);$c(b+24|0);sc(b+16|0);d=c;c=d-1|0;b=b+40|0;a=a+40|0;if(d)continue;break}}}function ev(a,b){var c=0;c=65536-b|0;b=c+J[a+32>>2]|0;J[a+32>>2]=b;c=c+J[a+20>>2]|0;J[a+20>>2]=c;if(c>>>0>=32768)while(1){hv(a,1-(b>>>15|0)|0);b=J[a+32>>2]<<1&65534;J[a+32>>2]=b;c=J[a+20>>2]<<1&65534;J[a+20>>2]=c;if(c>>>0>32767)continue;break}}function Xka(a, -b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a+20|0;a=J[c>>2];a:{if(!a)break a;d=J[b>>2]-6|0;b=c;while(1){e=J[a+16>>2]<(d|0);b=e?b:a;a=J[(e?a+4|0:a)>>2];if(a)continue;break}if((b|0)==(c|0))break a;f=J[b+16>>2]<=(d|0)?b+20|0:0}return f|0}function P0(a,b){var c=0,d=0;J[a>>2]=0;J[a+32>>2]=J[b>>2];d=J[b+24>>2];J[a+4>>2]=J[b+4>>2];c=J[b+8>>2];J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=c;c=J[b+20>>2];J[a+24>>2]=d;J[a+20>>2]=c;J[a+28>>2]=J[b+28>>2];J[a+40>>2]=J[b+16>>2];J[a+36>>2]=J[b+12>>2]}function On(a){a=a|0;var b= -0,c=0;b=rc(36);J[b+8>>2]=1;J[b+4>>2]=0;J[b+20>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b>>2]=2385020;J[695492]=0;ha(5043,b+28|0,b+24|0,0,4)|0;c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;qc(ed(b));ba(a|0);B()}J[a>>2]=0;md(a,b)}function LR(a,b){var c=0,d=0,e=0;A(+a);d=v(1)|0;e=v(0)|0;c=d>>>20&2047;if((c|0)!=2047){if(!c){if(a==0)c=0;else{a=LR(a*1.8446744073709552E19,b);c=J[b>>2]+-64|0}J[b>>2]=c;return a}J[b>>2]=c-1022;x(0,e|0);x(1,d&-2146435073|1071644672);a=+z()}return a}function Em(a,b){var c=0,d=0;c=bc- -16|0;bc=c;if(K[a+11|0]>>>7|0)Fu(J[a>>2],J[a+8>>2]&2147483647);J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;H[b+11|0]=K[b+11|0]&128;H[b+11|0]=K[b+11|0]&127;J[c+12>>2]=0;J[b>>2]=J[c+12>>2];bc=c+16|0}function Bib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[d+12>>2]=0;a:{if(J[c+80>>2])break a;b=b-a|0;f=Zd(J[c>>2],b+1|0,d+12|0);J[c+80>>2]=f;e=J[d+12>>2];if(e)break a;tc(f,a,b);H[b+J[c+80>>2]|0]=0;e=J[d+12>>2]}bc=d+16|0;return e|0}function zs(a,b,c){var d=0,e=0;d=bc-16|0;bc= -d;b=(b>>>0)/M[a+100>>2]|0;a:{if(L[a+138>>1]!=2)break a;e=L[a+98>>1];if(e>>>0<=c>>>0){b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=e;J[d>>2]=c;Nc(a,b,69094,d);b=0;break a}b=b+P(J[a+176>>2],c)|0}bc=d+16|0;return b}function xJa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+116>>2];c=J[a+160>>2];J[a+160>>2]=0;d=J[a+200>>2];if(d){e=O[a+168>>3];f=O[a+176>>3];fY(a,b,e,f,O[a+184>>3]-e,O[a+192>>3]-f,0,d,c,J[a+164>>2])}Gc(c);J[a+200>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0}function ug(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;H[a|0]=0; -H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;d=J[b+4>>2];a:{if(!d)break a;b=J[b+44>>2];if(!b|b>>>0<=c>>>0)break a;b=(c<<2)+d|0;H[a|0]=K[b+40|0];H[a+1|0]=K[b+41|0];H[a+2|0]=K[b+42|0];H[a+3|0]=K[b+43|0]}}function lzb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+12>>2]=0;d=zc(c);J[a+12>>2]=d;a:{b:{if(!d)break b;d=li(b,d,c);b=J[a+12>>2];if((c|0)==(d|0)){H[(b+c|0)-1|0]=0;b=J[a+12>>2];a=0;if((Qc(b)+1|0)==(c|0))break a}if(!b)break b;qc(b)}a=-1}return a|0}function fP(a){var b=0,c=0,d=0,e=0;d=J[a>>2];b=J[d>>2]-48|0;if(b>>>0> -9)return 0;while(1){e=-1;if(c>>>0<=214748364){c=P(c,10);e=(c^2147483647)>>>0>>0?-1:c+b|0}b=J[d+4>>2];c=e;e=d+4|0;d=e;b=b-48|0;if(b>>>0<10)continue;break}J[a>>2]=d;return c}function XT(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=J[b>>2];b:{if(d){if(J[b+4>>2]!=(a|0))break a;b=d+4|0;break b}b=a+12|0}b=J[b>>2];J[c>>2]=d;J[c+4>>2]=b;d=a+8|0;J[(b?b:d)>>2]=c;b=J[c>>2];J[(b?b:d)+4>>2]=c;J[a+4>>2]=J[a+4>>2]+1;return}aj(b,a);B()}function Wga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;J[e+12>>2]=b; -J[e+8>>2]=d;b=Gl(e+4|0,e+12|0);J[695492]=0;a=ga(6663,a|0,c|0,J[e+8>>2])|0;c=J[695492];J[695492]=0;if((c|0)!=1){Mh(b);bc=e+16|0;return a|0}a=Z()|0;Mh(b);ba(a|0);B()}function WP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;J[d+8>>2]=b;J[d+12>>2]=a;J[d+4>>2]=c;while(1){a=J[d+12>>2];b=(a|0)!=J[d+8>>2];if(!(!b|J[a>>2]!=J[J[d+4>>2]>>2])){J[d+12>>2]=a+4;J[d+4>>2]=J[d+4>>2]+4;continue}break}bc=d+16|0;return!b|0}function Nua(a,b,c){a=a|0;b=b|0;c=c|0;J[a+124>>2]=J[a+124>>2]+b;J[a+132>>2]=J[a+132>>2]+b;J[a+ -128>>2]=J[a+128>>2]+c;J[a+136>>2]=J[a+136>>2]+c;J[a+108>>2]=J[a+108>>2]+b;J[a+112>>2]=J[a+112>>2]+c;J[a+116>>2]=J[a+116>>2]+b;J[a+120>>2]=J[a+120>>2]+c}function Lu(a){var b=0,c=0;c=bc-16|0;bc=c;A(+a);b=v(1)|0;v(0)|0;b=b&2147483647;a:{if(b>>>0<=1072243195){if(b>>>0<1044381696)break a;a=nR(a,0,0);break a}if(b>>>0>=2146435072){a=a-a;break a}b=DF(a,c);a=nR(O[c>>3],O[c+8>>3],b&1)}bc=c+16|0;return a}function Iv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a+8>>2]=13;J[a>>2]=2330896;f=J[c+4>>2];J[a+ -8>>2]=J[c>>2];J[a+12>>2]=f;f=J[c+12>>2];J[a+16>>2]=J[c+8>>2];J[a+20>>2]=f;J[a+32>>2]=e;J[a+28>>2]=d;J[a+24>>2]=b;J[a>>2]=2331344;return a|0}function Anb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1649100612){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];H[b+34|0]=K[c+34|0];I[b+36>>1]=L[c+36>>1];I[b+38>>1]=L[c+38>>1];I[b+40>>1]=L[c+40>>1];I[b+42>>1]=L[c+42>>1];return 0}function yR(a,b){var c=0,d=0,e=0,f=0;c=b>>>20&2047;e=0;a:{if(c>>>0<1023)break a;e=2;if(c>>>0>1075)break a;c=1075-c| -0;d=c&31;if((c&63)>>>0>=32){c=1<>>32-d;d=f}f=d-1|0;e=0;if(a&f|b&c-!d)break a;e=a&d|b&c?1:2}return e}function w1a(a,b){a=a|0;b=b|0;var c=0,d=0;a=J[a>>2];b=J[b>>2];if((a|0)==(b|0))return 1;if(!(!a|!b)){c=K[a|0];a:{if(!c)break a;while(1){if(K[b|0]!=(c|0)){d=c;break a}b=b+1|0;c=K[a+1|0];a=a+1|0;if(c)continue;break}}c=K[b|0]==(d&255)}return c|0}function oQa(a){a=a|0;var b=0;b=rc(72);J[b>>2]=2205788;J[b+4>>2]=15;J[b+8>>2]=0;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>> -3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+48>>3]=O[a+48>>3];O[b+56>>3]=O[a+56>>3];O[b+64>>3]=O[a+64>>3];return b|0}function hq(a){var b=0,c=0,d=0,e=0,f=0;c=zc(160);if(c){d=wc(c,0,160);J[d+8>>2]=a;e=2631840;a:{if(!J[657801])break a;b=2631200;while(1){if(J[b>>2]==(a|0)){e=b;break a}f=b;b=b+32|0;if(J[f+36>>2])continue;break}}J[d+4>>2]=e;J[d>>2]=e+12}return c}function gj(a){var b=0,c=0;c=J[a+12>>2];a:{if((c|0)==J[a+8>>2]){a=J[a+4>>2];b=0;if(!a|J[a>>2])break a;J[a>>2]=161;return 0}if(J[c-4>>2]!=2){a=J[a+ -4>>2];b=0;if(!a|J[a>>2])break a;J[a>>2]=160;return 0}b=a;a=c-8|0;J[b+12>>2]=a;b=J[a>>2]}return b}function WIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=rc(8);J[695492]=0;d=aa(3182,e|0,801639)|0;f=J[695492];J[695492]=0;if((f|0)!=1){Dh(d,J[a+20>>2]);od(d,788533);a=gc[b|0](c,J[d+4>>2],J[d>>2])|0;qc(Rc(d));return a|0}a=Z()|0;qc(e);ba(a|0);B()}function Vjb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;e=J[J[a+128>>2]+52>>2];a:{if(e){a=J[b>>2];J[d+12>>2]=c;J[d+8>>2]=a;gc[J[J[e>>2]+4>>2]](J[e+4>> -2],d+8|0);break a}a=J[a+712>>2];if(J[a+1236>>2])break a;Sf(J[a+1204>>2],b)}bc=d+16|0}function TIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=rc(8);J[695492]=0;d=aa(3182,e|0,795677)|0;f=J[695492];J[695492]=0;if((f|0)!=1){Dh(d,J[a+20>>2]);od(d,797238);a=gc[b|0](c,J[d+4>>2],J[d>>2])|0;qc(Rc(d));return a|0}a=Z()|0;qc(e);ba(a|0);B()}function yba(a){a=a|0;var b=0;b=J[a+584>>2];if(b){J[a+672>>2]=J[b+892>>2];J[a+668>>2]=J[b+896>>2];J[a+676>>2]=J[b+900>>2];if(J[b+488>>2])wO(b);b=J[b+912>>2];if(b)qc(b);qc(J[a+ -584>>2]);J[a+584>>2]=0;Bq(a);return}fa(87886,70490,1575,97753);B()}function rQa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if((gc[J[J[a>>2]+28>>2]](a)|0)>0){d=0;while(1){e=d<<3;f=e+b|0;J[f>>2]=0;J[f+4>>2]=0;e=c+e|0;J[e>>2]=0;J[e+4>>2]=1072693248;d=d+1|0;if((gc[J[J[a>>2]+28>>2]](a)|0)>(d|0))continue;break}}}function pi(a,b){var c=0,d=0;c=bc-16|0;bc=c;if(K[a+11|0]>>>7|0)Ay(J[a>>2],J[a+8>>2]&2147483647);J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;H[b+11|0]=K[b+11|0]&128;H[b+11|0]=K[b+ -11|0]&127;H[c+15|0]=0;H[b|0]=K[c+15|0];bc=c+16|0}function DE(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c+12>>2]=b;a:{if(K[a+11|0]>>>7|0){b=J[a>>2];J[a+4>>2]=1;break a}b=a;H[a+11|0]=K[a+11|0]&128|1;H[a+11|0]=K[a+11|0]&127}J[b>>2]=J[c+12>>2];J[c+8>>2]=0;J[b+4>>2]=J[c+8>>2];bc=c+16|0;return a|0}function sP(){var a=0,b=0,c=0;b=bc-16|0;bc=b;J[b+12>>2]=1073741823;J[695492]=0;J[b+8>>2]=2147483647;a=bc-16|0;bc=a;bc=a+16|0;a=b+8|0;c=b+12|0;a=M[a>>2]>2]?a:c;c=J[695492];J[695492]=0;if((c|0)!=1){bc=b+16| -0;return J[a>>2]}ea(0)|0;yc();B()}function _ob(a,b){a=a|0;b=b|0;var c=0,d=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;d=J[a+428>>2];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;return ue(a,J[b>>2],4,d+8|0)|0}function Wjb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=bc-16|0;bc=e;f=J[J[a+128>>2]+52>>2];a:{if(f){a=gc[J[J[f>>2]>>2]](J[f+4>>2],b,e+8|0)|0;J[c>>2]=J[e+8>>2];J[d>>2]=J[e+12>>2];break a}a=cD(J[a+712>>2]+1204|0,b,c,d)}bc= -e+16|0;return a|0}function Vn(a){var b=0,c=0,d=0,e=0;b=J[a+52>>2];a:{b:{if(J[a>>2]==2){if(b)break b;break a}c=J[b+8>>2];if((c|0)<=0)break b;while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){qc(Vn(e));c=J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}}qc(dd(b))}return a}function V1(a){var b=0,c=0,d=0,e=0;a:{if(K[a+4|0])break a;e=J[a>>2];b=J[e>>2];if(!b)break a;c=b;d=J[e+4>>2];if((b|0)!=(d|0)){while(1){c=d-12|0;if(H[d-1|0]<0)qc(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[J[a>>2]>>2]}J[e+4>>2]=b;qc(c)}}function T2(a){a= -a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=349252;J[a+4>>2]=1;J[a+32>>2]=0;J[a+36>>2]=0;J[a+20>>2]=-16777216;J[a+24>>2]=-16777216;J[a+16>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;return a|0}function PDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=J[a+20>>2];if((c|0)!=J[a+24>>2]){J[695492]=0;d=Vl(c,b);e=J[695492];J[695492]=0;if((e|0)==1)break a;J[a+20>>2]=d+12;VG(a,b);return}UV(a+16|0,b);VG(a,b);return}b=Z()|0;J[a+20>>2]=c;ba(b|0);B()}function Hib(a){a=a|0;var b=0,c=0; -c=J[J[a+188>>2]>>2];b=J[a+168>>2];if(b)gc[J[c+8>>2]](c,b);J[a+172>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;b=J[a+184>>2];if(b)gc[J[c+8>>2]](c,b);H[a+192|0]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0}function FX(a){a=a|0;var b=0,c=0;J[a+4>>2]=2337492;J[a>>2]=2337008;b=J[a+16>>2];c=J[b+44>>2];if(c){qc(uM(c));b=J[a+16>>2];J[b+44>>2]=0}c=J[b+40>>2];if(c){qc(tH(c));b=J[a+16>>2];J[b+40>>2]=0}b=J[b+48>>2];if(b){qc(b);J[J[a+16>>2]+48>>2]=0}qc(a)}function FE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d= -bc-16|0;bc=d;a:{if(c>>>0<=10){H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;Mj(a,b,c);H[d+15|0]=0;H[a+c|0]=K[d+15|0];break a}e=K[a+11|0]&127;Zr(a,10,c-10|0,e,0,e,c,b)}bc=d+16|0;return a|0}function DAa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;a=a+12|0;Jz(d+8|0,a,c);a:{c=J[d+8>>2];b:{if(c){J[d>>2]=c;e=J[d+12>>2];J[d+4>>2]=e;if((a|0)!=(e|0))break a;uj(b,c+8|0);break b}md(b,0)}bc=d+16|0;return J[b>>2]!=0|0}aj(d,a);B()}function z_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=-1;a:{b:{c:{d:switch(d| -0){case 1:a=b+12|0;break c;case 0:break b;case 2:break d;default:break a}a=b+8|0}d=J[a>>2]}a=c+d|0;if(a>>>0>M[b+4>>2]){J[b+16>>2]=1;return-1}J[b+12>>2]=a;a=0}return a|0}function qS(){var a=0;J[694687]=0;J[694688]=0;J[694690]=0;J[694691]=0;J[694686]=2778748;J[694689]=2778760;J[695492]=0;_(6448,2778744);a=J[695492];J[695492]=0;if((a|0)!=1)return;a=Z()|0;ss(2778756,J[694690]);ss(2778744,J[694687]);ba(a|0);B()}function oja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=Km(a);if(!((c|0)%(e|0)|0)){if(c)break a; -return 1}fa(80004,70356,363,93887);B()}while(1){f=gc[J[a+540>>2]](a,b,e,d)|0;if(f){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)!=0|0}function nja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=_i(a);if(!((c|0)%(e|0)|0)){if(c)break a;return 1}fa(80004,70356,347,93869);B()}while(1){f=gc[J[a+540>>2]](a,b,e,d)|0;if(f){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)!=0|0}function cFa(a){a=a|0;var b=0,c=0,d=0;b=J[a+44>>2];c=J[a+24>>2];if(b>>>0>>0){J[a+44>>2]=c;b=c}d=-1;a:{if(!(K[a+48|0]&8))break a; -c=J[a+16>>2];if(c>>>0>>0)J[a+16>>2]=b;else b=c;a=J[a+12>>2];if(a>>>0>=b>>>0)break a;d=J[a>>2]}return d|0}function Su(a,b){var c=0,d=0,e=0,f=0;c=a*a;d=c*.5;e=1-d;f=1-e-d;d=c*c;return e+(f+(c*(c*(c*(c*2.480158728947673E-5+-.001388888888887411)+.0416666666666666)+d*d*(c*(c*-1.1359647557788195E-11+2.087572321298175E-9)+-2.7557314351390663E-7))-a*b))}function QK(a){var b=0;b=J[a+276>>2];if(b)QK(b);J[a+8>>2]=0;J[a+12>>2]=1072693248;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=1072693248;J[a+16>> -2]=0;J[a+20>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;O[a+24>>3]=J[a+136>>2]?.3090169943749:0;h2(a)}function Mnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1229472850){Dc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];J[b+36>>2]=J[c+36>>2];H[b+40|0]=K[c+40|0];H[b+41|0]=K[c+41|0];H[b+42|0]=K[c+42|0];H[b+43|0]=K[c+43|0];H[b+44|0]=K[c+44|0];return 0}function Jcb(a,b){a=a|0;b=b|0;var c=0;c=J[a+192>>2];J[b+24>>2]=J[a+188>>2];J[b+28>>2]=c;c=J[a+184>>2];J[b+16>>2]=J[a+180>>2];J[b+20>>2]=c;c=J[a+176>>2];J[b+8>>2]=J[a+172>> -2];J[b+12>>2]=c;c=J[a+168>>2];J[b>>2]=J[a+164>>2];J[b+4>>2]=c;return 0}function IV(a,b,c){var d=0,e=0,f=0;d=1;e=1<>2]+J[a+20>>2]|0;a:{if(c>>>0<=M[a+28>>2]){J[a+20>>2]=c;b=H[b|0]&1;break a}b=ah(a,b,c)}d=b|d<<1;if((e|0)>(d|0))continue;break}}return d-e|0}function Bwb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;gc[J[J[a>>2]+12>>2]](a);a:{d=LC(24);if(d){if(c?b:0)break a;qc(d)}J[a+4>>2]=0;return 0}J[d+20>>2]=b;J[d+12>>2]=b;J[d+8>>2]=c;J[d+4>>2]=b;J[d>>2]= -1;J[d+16>>2]=b+c;J[a+16>>2]=c;J[a+4>>2]=d;return 1}function $P(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;J[d+8>>2]=b;J[d+12>>2]=a;J[d+4>>2]=c;while(1){a=J[d+12>>2];b=(a|0)!=J[d+8>>2];if(!(!b|K[a|0]!=K[J[d+4>>2]])){J[d+12>>2]=a+1;J[d+4>>2]=J[d+4>>2]+1;continue}break}bc=d+16|0;return!b|0}function eLa(a){a=a|0;var b=0,c=0;b=rc(56);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[695492]=0;a=$(c|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[b>>2]=2331560;J[b+4>>2]=a;J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;return b| -0}a=Z()|0;qc(b);ba(a|0);B()}function cea(a,b){a=a|0;b=b|0;var c=0;b=J[a+584>>2];if(b){J[b+72>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+60>>2]=L[a+94>>1]!=2?91648:91904;a=J[b+84>>2];if(a){c=J[b+12>>2];J[a+4>>2]=0;J[a>>2]=c}J[b+108>>2]=0;return 1}fa(89213,70523,156,95746);B()}function bob(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}c=J[b+40>>2];b:{if(!c)break b;d=J[b+44>>2];if(!d)break b;gc[J[a+156>>2]](d,c+1|0)}gc[J[a+156>>2]](b,48);return 0} -function bk(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;c=J[b+8>>2]-1|0;J[b+8>>2]=c;if(!c){if(J[b>>2]>0){c=0;while(1){wd(J[b+12>>2]+(c<<2)|0);c=c+1|0;if((c|0)>2])continue;break}}qc(J[b+12>>2]);wo(b+16|0);qc(b)}J[a>>2]=0}}function _lb(a){a=a|0;var b=0,c=0;b=-1;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b=0;if(J[a+20>>2])break a;a=J[J[c+16>>2]+40>>2];if(a){b=J[a>>2];b:{if(b){a=0;if(J[b+40>>2])break b;a=b+44|0}else a=a+28|0;a=J[a>>2]}}else a=1;b=a}return b|0}function OFa(a,b){a=a|0;b= -b|0;var c=0,d=0;c=bc-16|0;bc=c;d=c+4|0;Jq(d,a,b);a=J[a+4>>2];J[695492]=0;S0(a,d);a=J[695492];J[695492]=0;if((a|0)!=1){if(H[c+15|0]<0)qc(J[c+4>>2]);bc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)qc(J[c+4>>2]);ba(a|0);B()}function NI(){var a=0,b=0,c=0;a=Hi(775323);a:{if(a){b=rc(8);J[695492]=0;a=aa(3182,b|0,a|0)|0;break a}Hi(776096);J[694731]=44;b=rc(8);J[695492]=0;a=aa(3182,b|0,777619)|0}c=J[695492];J[695492]=0;if((c|0)==1){a=Z()|0;qc(b);ba(a|0);B()}return a}function Mq(a,b,c,d){var e=0;if(!(!a|b>>>0<=c>>> -0)){a:{if(!d)break a;e=K[d|0];if(!e)break a;b=b-1|0;if(b>>>0<=c>>>0)break a;while(1){H[a+c|0]=e;c=c+1|0;e=K[d+1|0];if(!e)break a;d=d+1|0;if(b>>>0>c>>>0)continue;break}}H[a+c|0]=0}return c}function $3(a,b){a=a|0;b=b|0;var c=0;c=J[a+136>>2];J[b>>2]=J[a+132>>2];J[b+4>>2]=c;c=J[a+160>>2];J[b+24>>2]=J[a+156>>2];J[b+28>>2]=c;c=J[a+152>>2];J[b+16>>2]=J[a+148>>2];J[b+20>>2]=c;c=J[a+144>>2];J[b+8>>2]=J[a+140>>2];J[b+12>>2]=c;return 0}function tgb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b>>2];a:{if(c>>>0>65534)break a; -if(H[a+20|0]&1)return J4(J[a>>2],J[a+16>>2],b,1)|0;if((c|0)==J[a+24>>2]){H4(a);c=J[a+28>>2];if(!c)break a;J[b>>2]=J[a+24>>2];return c|0}d=I4(a,b,1)}return d|0}function sd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a>>2];a:{if((d|0)>0){f=b+d|0;a=J[a+4>>2];while(1){c=K[b|0];if(!c)return 1;c=K[a|0]-c|0;if(c)break a;b=b+1|0;a=a+1|0;e=e+1|0;if((e|0)!=(d|0))continue;break}b=f}c=K[b|0]?-1:0}return c|0}function poa(a,b){a=a|0;b=b|0;var c=0;b=J[b>>2];a=J[a+12>>2];c=J[a+792>>2]!=0;if((b|0)!=((J[a+796>>2]?c|2: -c)|K[a+800|0]<<2|K[a+801|0]<<7)){H[a+928|0]=1;J[a+792>>2]=b&1;H[a+801|0]=(b&128)>>>7;H[a+800|0]=b>>>2&31;J[a+796>>2]=b>>>1&1}return 0}function oXa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;if(!(K[a+220|0]|K[a+204|0])){uk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];gc[J[J[b>>2]+348>>2]](b,826952)|0;a=J[a+104>>2];J[c+12>>2]=4;gc[J[J[a>>2]+312>>2]](a,c+12|0)|0}bc=c+16|0}function kHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;if(c)while(1){H[d+15|0]=K[a|0];H[d+14|0]=K[a+1|0];H[d+13|0]=K[a+ -2|0];H[d+12|0]=K[a+3|0];N[b>>2]=N[d+12>>2];b=b+4|0;a=a+4|0;e=e+1|0;if((e|0)!=(c|0))continue;break}bc=d+16|0}function fHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;if(c)while(1){qX(a,d+8|0);e=O[d+8>>3];a:{if(R(e)<2147483648){f=~~e;break a}f=-2147483648}J[b>>2]=f;b=b+4|0;a=a+8|0;g=g+1|0;if((g|0)!=(c|0))continue;break}bc=d+16|0}function eE(a,b,c){a:{b:{c:switch(a|0){default:fa(200247,198921,144,211819);B();case 0:break b;case 1:break c}if(!b){a=0;if(!c)break b;fa(200888,198921,146, -211819);B()}a=c-1|0;if(a>>>0>=3)break a;a=J[(a<<2)+211836>>2]}return a}ra();B()}function ada(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];Fl(a,1,12);Fl(a,1,12);if(J[b+68>>2]!=8){if(J[a+608>>2]>=J[a+600>>2])gf(a);d=J[b+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=d;J[a+608>>2]=J[a+608>>2]+1;J[b+64>>2]=0;J[b+68>>2]=8}return 1}function Unb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}c=J[b+76>>2];b:{if(!c)break b;d=J[b+80>>2];if(!d)break b;gc[J[a+ -156>>2]](d,c<<2)}gc[J[a+156>>2]](b,84);return 0}function Rdb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[((c<<2)+a|0)+268>>2];c=J[a+484>>2];e=J[a+488>>2];if((b|0)>=0){a=c+(((b+d|0)+e|0)-c&0-J[a+480>>2])|0;return((a|0)<0?c:a)|0}a=0-(c+(d+e-(b+c)&0-J[a+480>>2])|0)|0;return((a|0)>0?0-c|0:a)|0}function KHa(a,b,c){a=a|0;b=b|0;c=c|0;a:{b:{if(a){if(!b)break b;if(!c)break a;return!J[a+8>>2]&(J[a+180>>2]!=0&J[a+184>>2]!=0)}fa(2346477,2346358,8640,2352693);B()}fa(2346550,2346358,8641,2352693);B()}fa(2346590,2346358, -8642,2352693);B()}function Dj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=Qc(b);if(c>>>0<2147483632){a:{if(c>>>0<=10){H[a+11|0]=c;d=a;break a}e=(c|15)+1|0;d=rc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=d;J[a+4>>2]=c}f=Zc(d,b,c)+c|0,g=0,H[f|0]=g;return a|0}Id(a);B()}function xdb(a){a=a|0;var b=0,c=0;if(J[J[a+40>>2]>>2]){c=J[a>>2];b=J[c+552>>2];c=gh(J[J[c+96>>2]+4>>2],241268);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;b=gc[b|0](c)|0;if(!b)break a;gc[J[b+8>>2]](J[J[a+40>>2]>>2])}J[J[a+40>>2]>>2]=0}}function qZ(a, -b){var c=0,d=0,e=0,f=0;a=J[a+4>>2];c=J[a+8>>2];a:{if((c|0)>0){d=J[b+4>>2];e=J[b>>2];f=J[a>>2];b=0;while(1){a=J[(b<<2)+f>>2];if(J[a+8>>2]==(e|0)&J[a+12>>2]==(d|0))break a;b=b+1|0;if((c|0)!=(b|0))continue;break}}a=0}return a}function pna(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[b>>2];if((a|0)<=0){J[b>>2]=256;a=256}d=J[c>>2];if((d|0)<=0){d=256;J[c>>2]=256;a=J[b>>2]}if(a&15){J[b>>2]=a>>>0<4294967280?a+15&-16:0;d=J[c>>2]}if(d&15)J[c>>2]=d>>>0<4294967280?d+15&-16:0}function ke(a,b){var c=0;c=bc-16|0;bc=c;a:{if(a){if(J[a+ -172>>2]==-1?J[a+212>>2]:0)break a;J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2}if(b){J[c>>2]=b;Cc(0,0,0,a,0,1,2,3,b,0,0,0,32863,c);break a}Cc(0,0,0,a,0,1,2,3,0,0,0,0,36013,0)}bc=c+16|0}function bJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=gc[J[J[a>>2]+40>>2]](a)|0;a:{if(a)while(1){if(!(gc[J[J[a>>2]+52>>2]](a,b,c)|0))break a;if(!(gc[b|0](c,798100,1)|0))break a;a=gc[J[J[a>>2]+44>>2]](a)|0;if(a)continue;break}d=1}return d|0}function Qob(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+428>>2];d=L[b+32>>1];d=d<<8|d>>>8;H[c+ -8|0]=d;H[c+9|0]=d>>>8;H[c+10|0]=K[b+34|0];H[c+11|0]=K[b+35|0];H[c+12|0]=K[b+36|0];H[c+13|0]=K[b+37|0];H[c+14|0]=K[b+38|0];return ue(a,J[b>>2],7,c+8|0)|0}function Qaa(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}function Pcb(a){a=a|0;var b=0,c=0;if(J[J[a+40>>2]>>2]){c=J[a>>2];b=J[c+320>>2];c=gh(J[J[c+96>>2]+4>>2],240758); -a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;b=gc[b|0](c)|0;if(!b)break a;gc[J[b+8>>2]](J[J[a+40>>2]>>2])}J[J[a+40>>2]>>2]=0}}function HVa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=K[a+11|0];e=d;d=d<<24>>24<0;if((d?J[a+4>>2]:e)>>>0>=b>>>0){if((c|0)==-1){a:{if(d){J[a+4>>2]=b;c=J[a>>2];break a}H[a+11|0]=b;c=a}J[c+(b<<2)>>2]=0;return a|0}Du(a,b,c);return a|0}mr(a);B()}function s7(a,b,c){var d=0;if(!a)return 0;a:{if((b|0)<0)break a;a=J[a+16>>2];if(!a|c-3>>>0<4294967294|J[a>>2]<=(b|0))break a;a=J[J[a+12>> -2]+(b<<2)>>2];if(!a)break a;if((c|0)==1)return j7(a);if(a)J[a+16>>2]=J[a+16>>2]+1;d=a}return d}function kp(a){a=a|0;var b=0;b=J[a+20>>2]-1|0;J[a+20>>2]=b;a:{if(!b){b=J[a>>2];if(b)qc(Rc(b));b=J[a+4>>2];if(b)qc(Rc(b));b=J[a+16>>2];if(b){J[695492]=0;xI(a,b);b=J[695492];J[695492]=0;if((b|0)==1)break a}qc(a)}return}ea(0)|0;yc();B()}function kmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=((c|0)<=1?1:c)-1|0;c=0;while(1){a:{if((c|0)==(e|0)){c=e;break a}d=gc[J[J[a>>2]+48>>2]](a)|0;if((d|0)==-1)return 0;H[b+c| -0]=d;c=c+1|0;if((d|0)!=10)continue}break}H[b+c|0]=0;return b|0}function Rxb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+4>>2];a:{b:{if(b){b=zc(b);J[a+12>>2]=b;d=-1;if(!b)break a;b=li(c,b,J[a+4>>2]);if((b|0)!=J[a+4>>2]){qc(J[a+12>>2]);return-1}J[a+16>>2]=b;break b}J[a+12>>2]=0;J[a+16>>2]=0}d=0}return d|0}function hhb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(J[a+4>>2])break a;e=c;g=a+52|0;f=J[g>>2];c=J[a+16>>2];if((e|0)!=(f+c|0))break a;e=J[a>>2];c=MC(a+16|0,d,f,c,b,e);if(!c){c=MC(g,d,0,f, -b,e);if(!c)break a}J[a+4>>2]=c}}function dW(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=a+16|0;a=J[d>>2];a:{if(!a)break a;c=d;while(1){e=Qm(a+16|0,b);c=e?c:a;a=J[(e?a+4|0:a)>>2];if(a)continue;break}if((c|0)==(d|0))break a;if(Qm(b,c+16|0))break a;f=J[c+28>>2]}return f|0}function cob(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}c=J[b+48>>2];b:{if(!c)break b;d=J[b+52>>2];if(!d)break b;gc[J[a+156>>2]](d,c)}gc[J[a+156>>2]](b,56);return 0}function bRa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=O[b+24>>3];c=J[b+24>>2];f=J[b+16>>2];a=J[a+28>>2];e=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];O[a+600>>3]=e;d=(f|0)==1?+(c|0):d;O[a+608>>3]=d;a=J[a+596>>2];O[a+16>>3]=d;O[a+8>>3]=e;J[a>>2]=1}function aob(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}c=J[b+44>>2];b:{if(!c)break b;d=J[b+48>>2];if(!d)break b;gc[J[a+156>>2]](d,c)}gc[J[a+156>>2]](b,52);return 0}function Rm(a){var b=0,c=0,d=0;if(a){b=J[a+24>> -2];if(b){c=J[a+16>>2];if(c){b=0;while(1){d=J[(J[a+24>>2]+P(b,52)|0)+44>>2];if(d){qc(d);c=J[a+16>>2]}b=b+1|0;if(c>>>0>b>>>0)continue;break}b=J[a+24>>2]}qc(b)}b=J[a+28>>2];if(b)qc(b);qc(a)}}function Px(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;H[e+15|0]=0;H[e+12|0]=d>>>16;d=d<<8|(d&65280)>>>8;H[e+13|0]=d;H[e+14|0]=d>>>8;J[e+8>>2]=K[e+12|0]|K[e+13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);Zp(a,b,c,e+8|0,0);bc=e+16|0}function Gfb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=6;a:{if(!d| -!e)break a;g=L[a+152>>1];if(c){f=142;if(b>>>0>=g>>>0)break a;a=J[a+156>>2]+(b<<4)|0;J[c>>2]=J[a>>2];J[d>>2]=J[a+8>>2];g=J[a+12>>2]}J[e>>2]=g;f=0}return f|0}function zfb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;e=DL(a,240491,d);a:{if(e)break a;e=DL(a,240617,d+8|0);if(e)break a;e=6;if(J[d>>2]!=1|J[d+8>>2]!=1)break a;J[b>>2]=J[d+12>>2];J[c>>2]=J[d+4>>2];e=0}bc=d+16|0;return e|0}function kDa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2382568;c=J[a+32>>2];d=J[a+8>>2];e=J[a+20>>2];b=J[a+12>>2]; -f=J[a+24>>2];J[695492]=0;ca(c|0,d|0,e-b|0,f-b|0);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(J[a+8>>2]);qc(a)}function c2a(a,b){a=a|0;b=b|0;var c=0,d=0;d=bc-16|0;bc=d;c=An(b,47);a:{if((c|0)==-1){if(H[b+11|0]>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];break a}Re(a,J[b>>2],J[b+4>>2]);break a}Bm(a,b,c+1|0,-1,d+15|0)}bc=d+16|0}function Qza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=SU(a,b)+16|0;b=b+16|0;if(d)continue; -break a}while(1){a=SU(a,b);sc(b+8|0);d=c;c=d-1|0;b=b+16|0;a=a+16|0;if(d)continue;break}}}function Pr(a,b){var c=0,d=0;a=J[a+112>>2];c=J[a>>2];if((c|0)<=0)return 0;d=J[a+8>>2];a=0;a:{while(1){if(J[(a<<3)+d>>2]==(b|0))break a;a=a+1|0;if((c|0)!=(a|0))continue;break}return 0}a=J[((a<<3)+d|0)+4>>2];J[a>>2]=J[a>>2]+1;return a}function JG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=iV(a,b)+28|0;b=b+28|0;if(d)continue;break a}while(1){a=iV(a,b);sc(b+16|0); -d=c;c=d-1|0;b=b+28|0;a=a+28|0;if(d)continue;break}}}function Ixb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=-1;a:{if(Lg(c,a+12|0))break a;d=J[a+4>>2]-2|0;J[a+16>>2]=d;b:{if(d){d=zc(d);J[a+20>>2]=d;if(!d)break a;if((li(c,d,J[a+16>>2])|0)==J[a+16>>2])break b;break a}J[a+20>>2]=0}b=0}return b|0}function $e(a){a=a|0;var b=0,c=0;if(!a)return 0;b=a;while(1){c=b;b=c+1|0;if(K[c|0])continue;break}b=0;c=c-a|0;if((c|0)>=0){b=gc[J[659450]](c+1|0)|0;if(!b){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);return 0}b=tc(b,a,c);H[c+ -b|0]=0}return b|0}function wm(a,b){a=a|0;b=b|0;var c=0;b=(b|0)<=0?96:b;J[a+364>>2]=b;c=V(+(b|0)*1E4/254+.5);a:{if(R(c)<2147483648){b=~~c;break a}b=-2147483648}J[a+36>>2]=b;a=J[a+4>>2];if(a){H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24}}function uib(a){a=a|0;var b=0,c=0;if(J[a+12>>2]==-559038737){c=J[a+32>>2];b=J[a>>2];if(b)gc[J[c+8>>2]](c,b);J[a>>2]=0;b=J[a+24>>2];if(b)gc[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+28>>2];if(b)gc[J[c+8>>2]](c,b);J[a+12>>2]=0;J[a+28>>2]=0}}function tD(a,b){var c= -0,d=0,e=0;if(!(!a|!b)){d=J[a>>2];c=J[a+4>>2];a:{if((d|0)<(c|0))break a;e=c<<1;if((c|0)>=(e|0))break a;c=yl(a+12|0,c<<2,c<<3);J[a+12>>2]=c;if(!c)break a;J[a+4>>2]=e}J[J[a+12>>2]+(d<<2)>>2]=b;J[a>>2]=J[a>>2]+1}}function fq(a,b){a=a|0;b=b|0;var c=0;b=(b|0)<=0?96:b;J[a+368>>2]=b;c=V(+(b|0)*1E4/254+.5);a:{if(R(c)<2147483648){b=~~c;break a}b=-2147483648}J[a+40>>2]=b;a=J[a+4>>2];if(a){H[a+28|0]=b;H[a+29|0]=b>>>8;H[a+30|0]=b>>>16;H[a+31|0]=b>>>24}}function PLa(a,b){a=a|0;b=b|0;var c=0,d=0;if(J[a+32>>2]>= -J[a+16>>2]){if(!HA(a))return 0;J[a+32>>2]=0}if(J[a+8>>2]>0)while(1){d=J[a+32>>2];J[a+32>>2]=d+1;H[b+c|0]=K[J[a+28>>2]+d|0];c=c+1|0;if((c|0)>2])continue;break}return 1}function Ou(a,b,c){var d=0,e=0;d=bc-16|0;bc=d;a:{if(!(b&64)){e=0;if((b&4259840)!=4259840)break a}J[d+12>>2]=c+4;e=J[c>>2]}J[d>>2]=e;J[d+4>>2]=0;a=Wa(-100,a|0,b|32768,d|0)|0;if(a>>>0>=4294963201){J[694731]=0-a;a=-1}bc=d+16|0;return a}function Nib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+16>>2];if(c){f=J[a+20>>2];a=0;while(1){e= -(c-a>>>1|0)+a|0;d=J[(e<<4)+f>>2];if((d|0)==(b|0))return e+1|0;d=b>>>0>d>>>0;a=d?e+1|0:a;c=d?c:e;if(a>>>0>>0)continue;break}}return 0}function M5(a,b,c,d,e){if((b|1|c)<0){J[e>>2]=6;return d}a:{if(!c){if(!d)break a;gc[J[a+8>>2]](a,d);break a}if(!b){a=gc[J[a+4>>2]](a,c)|0;J[e>>2]=!a<<6;return a}a=gc[J[a+12>>2]](a,b,c,d)|0;J[e>>2]=!a<<6;return a?a:d}J[e>>2]=0;return 0}function Kz(a,b,c){var d=0;a:{d=J[b>>2];b:{if(d){if(J[b+4>>2]!=(a|0))break a;J[c+4>>2]=d;J[c>>2]=J[d>>2];break b}J[c+4>>2]=0;J[c>>2]= -J[a+8>>2];d=a+8|0}J[d>>2]=c;b=J[c>>2];J[(b?b:a+8|0)+4>>2]=c;J[a+4>>2]=J[a+4>>2]+1;return}aj(b,a);B()}function Iyb(a,b){a=a|0;b=b|0;var c=0;a:{if(ki(b,J[a+20>>2]))break a;if(ki(b,J[a+24>>2]))break a;if(!J[a+28>>2])return 0;while(1){if(ki(b,J[((c<<2)+a|0)+32>>2]))break a;c=c+1|0;if(c>>>0>2])continue;break}return 0}return-1}function Emb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;H[a+24|0]=0;a:{if(!J[a+4>>2])break a;b:{c:switch(c|0){case 1:b=J[a+16>>2]+b|0;break b;case 0:break b;case 2:break c;default:break a}b= -J[a+8>>2]+b|0}J[a+16>>2]=(b|0)>0?b:0;d=1}return d|0}function ENa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+4>>2]=0;J[a>>2]=2307464;a:{if(J[b>>2]==4){c=rc(8);b=J[b+8>>2];J[695492]=0;b=aa(3182,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)==1)break a;J[a+4>>2]=b}return a|0}a=Z()|0;qc(c);ba(a|0);B()}function AUa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+208>>2];if(b){c=b;d=J[a+212>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;qc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+208>>2]}J[a+212>>2]=b;qc(c)}return lh(a)| -0}function zaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+584>>2];if(d){e=J[d+44>>2];if(!e)break a;if((b|0)==317){I[J[c>>2]>>1]=J[d>>2];return 1}return gc[e|0](a,b,c)|0}fa(72282,70388,640,197513);B()}fa(72766,70388,641,197513);B()}function vT(a){a=a|0;var b=0;b=J[a+44>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+48>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+52>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0}function rg(a,b){var c=0,d=0,e=0,f=0, -g=0;c=J[a>>2];d=J[b>>2];f=(c|0)<(d|0)?c:d;a:{if((f|0)>0){a=J[a+4>>2];b=J[b+4>>2];while(1){e=K[a|0]-K[b|0]|0;if(e)break a;b=b+1|0;a=a+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}e=c-d|0}return e}function ohb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[c>>2];d=((d>>31)+d|0)+32768&-65536;c=J[c+4>>2];c=((c>>31)+c|0)+32768&-65536;a:{if(J[a+4>>2])break a;b=ix((P((b|0)!=0,36)+a|0)+16|0,d>>16,c>>16,J[a>>2],0);if(!b)break a;J[a+4>>2]=b}}function nP(a){var b=0,c=0;b=J[a+4>>2];a:{while(1){c=J[a+8>>2];if((b|0)==(c| -0))break a;J[a+8>>2]=c-4;J[695492]=0;c=J[695492];J[695492]=0;if((c|0)!=1)continue;break}ea(0)|0;yc();B()}b=J[a>>2];if(b)qP(J[a+16>>2],b,J[a+12>>2]-b>>2)}function lz(a){var b=0,c=0,d=0;a:{if(!J[a+12>>2])break a;b=J[a+8>>2];c=J[b>>2];d=J[J[a+4>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+12>>2]=0;c=a+4|0;if((c|0)==(b|0))break a;while(1){a=J[b+4>>2];qc(b);b=a;if((c|0)!=(a|0))continue;break}}}function jO(a,b,c,d){var e=0,f=0,g=0,h=0;f=-1;g=J[682417];a:{if((g|0)<=0)break a;e=2729680;while(1){if(J[e>>2]!=(c|0)){e= -e+28|0;h=h+1|0;if((g|0)!=(h|0))continue;break a}break}c=J[e+20>>2];if(!c)break a;f=gc[c|0](a,b,d)|0}return f}function iab(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=K[a+11|0];e=d;d=d<<24>>24<0;if((d?J[a+4>>2]:e)>>>0>=b>>>0){if((c|0)==-1){a:{if(d){J[a+4>>2]=b;c=J[a>>2];break a}H[a+11|0]=b;c=a}H[c+b|0]=0;return a|0}bP(a,b,c);return a|0}ax(a);B()}function eqb(a){a=a|0;var b=0,c=0,d=0;b=J[a+644>>2];d=J[a+636>>2];J[a+644>>2]=d;J[a+636>>2]=b;c=J[a+588>>2];if((c|0)>0){b=b+(c<<2)|0;c=0;while(1){b=b-4|0;J[d>> -2]=J[b>>2];d=d+4|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Kj(a,b,c){c=J[c+4>>2]&176;if((c|0)==32)return b;a:{if((c|0)!=16)break a;b:{c:{c=K[a|0];switch(c-43|0){case 0:case 2:break c;default:break b}}return a+1|0}if((c|0)!=48|(b-a|0)<2|(K[a+1|0]|32)!=120)break a;a=a+2|0}return a}function KS(a,b){var c=0;if(H[b+27|0]>=0){c=J[b+20>>2];J[a>>2]=J[b+16>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+24>>2];return}c=J[b+20>>2];b=J[b+16>>2];J[695492]=0;ca(15,a|0,b|0,c|0);a=J[695492];J[695492]=0;if((a| -0)!=1)return;ea(0)|0;yc();B()}function $db(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:switch(J[J[J[a>>2]+96>>2]+64>>2]-35|0){case 5:if(K[a+615|0])break a;break;case 0:break b;default:break a}a=J[b+16>>2]+(c<<3)|0;J[a>>2]=J[a>>2]+d}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|8}function zQ(a,b){var c=0;if(b>>>0>8){b=b>>>0<=4?4:b;a=a>>>0<=1?1:a;a:{while(1){c=lP(b,a);if(c)break a;c=J[696022];if(c){gc[c|0]();continue}break}a=jk(4);J[a>>2]=2626404;J[a>>2]=2626364;xa(a|0,2626480,32);B()}return c}return rc(a)}function wca(a){a= -a|0;var b=0,c=0;a:{b:{if(!a)break b;b=a-24|0;c=J[b>>2]-1|0;J[b>>2]=c;if(K[b+13|0]|c)break b;b=J[b+8>>2];if(b){J[695492]=0;$(b|0,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}Lo(a)}return}ea(0)|0;yc();B()}function vub(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=J[b+1176>>2]+P(J[b+1168>>2],J[a+2552>>2])|0;c=J[a+2516>>2];while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}return TD(a)|0}function sk(a){a=a|0;var b=0;b=bc-32|0;bc=b;a:{if((a|0)>=0){b:{if(!a){a= -0;break b}a=zc(a);if(!a)break a}bc=b+32|0;return a|0}J[b>>2]=774961;cd(J[651370],779053,b);ya(1);B()}J[b+16>>2]=775649;cd(J[651370],779053,b+16|0);ya(1);B()}function d2a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(!a)return 0;g=1;if((b|0)<=0)return 0;f=fC(b,e);J[d>>2]=f;f=rc(f);J[c>>2]=f;a:{if(eC(a,b,f,d,e))break a;g=0;a=J[c>>2];if(!a)break a;qc(a);J[c>>2]=0}return g|0}function X1a(a,b){a=a|0;b=b|0;var c=0,d=0;d=bc-16|0;bc=d;c=An(b,47);a:{if((c|0)==-1){if(H[b+11|0]>=0){c=J[b+4>>2];J[a>> -2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];break a}Re(a,J[b>>2],J[b+4>>2]);break a}Bm(a,b,0,c,d+15|0)}bc=d+16|0}function S9a(a,b){a=a|0;b=b|0;var c=0;c=bc-32|0;bc=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;O[c+16>>3]=J[b+4>>2];O[c+24>>3]=J[b+8>>2];gc[J[J[a>>2]+(J[b+12>>2]>0?536:532)>>2]](a,J[b+16>>2],c,J[b+4>>2],J[b+8>>2],0);bc=c+32|0}function F$a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;f=J[a+4>>2];e=J[f+8>>2];if(K[e+14|0]){H[d+12|0]=126;H[d+13|0]=125;H[e+14|0]=0;e=d+14|0}else e= -d+12|0;H[e|0]=K[J[f+20>>2]];BK(a,d+12|0,(e-d|0)-11|0,b,c);bc=d+16|0}function AYa(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}gc[J[J[a>>2]+16>>2]](a);gc[J[J[a+24>>2]+8>>2]](a);R_(a);gc[J[J[a+404>>2]+16>>2]](a);gc[J[J[a+24>>2]+16>>2]](a)}function wk(a,b){var c=0,d=0;d=-1;a:{if(!b)break a;while(1){if(!a)break a;c=J[a+16>>2];if(c)while(1){if(!(M[c+4>>2]>>0|c+20>>>0>b>>>0))return 1;c=J[c>>2];if(c)continue;break}a=J[a+20>>2];if(a)continue; -break}d=0}return d}function w2(a){a=a|0;var b=0,c=0;J[a>>2]=349976;a:{b=J[a+20>>2];if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;J[a+20>>2]=0}if(H[a+19|0]<0)qc(J[a+8>>2]);return a|0}ea(0)|0;yc();B()}function u2(a){var b=0,c=0,d=0,e=0;b=J[a+80>>2];if(b){d=b-4|0;a=J[d>>2];if(a){a=P(a,96)+b|0;while(1){c=a;a=a-96|0;a:{if(!J[a+92>>2])break a;c=c-8|0;e=J[c>>2];if(!e)break a;qc(e);J[c>>2]=0}if((a|0)!=(b|0))continue;break}}qc(d)}}function rO(a,b,c,d,e){a=a| -0;b=b|0;c=c|0;d=d|0;e=e|0;J[a>>2]=1032;wc(a+4|0,0,972);H[a+388|0]=255;J[a+344>>2]=1119092736;J[a+68>>2]=e;H[a+390|0]=1;J[a+336>>2]=-1;H[a+348|0]=1;wm(a,96);fq(a,96);H[a+494|0]=1;mi(a,b,c,d,e);return a|0}function iR(a){var b=0,c=0,d=0;if(H[J[a>>2]]-48>>>0>=10)return 0;while(1){d=J[a>>2];c=-1;if(b>>>0<=214748364){c=H[d|0]-48|0;b=P(b,10);c=(c|0)>(b^2147483647)?-1:c+b|0}J[a>>2]=d+1;b=c;if(H[d+1|0]-48>>>0<10)continue;break}return b}function dnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1397048651){Dc(a, -2050,0,0);return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){d=gc[J[a+152>>2]](d)|0;J[b+36>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+36>>2],J[b+32>>2])}return 0}function anb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1850033476){Dc(a,2050,0,0);return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){d=gc[J[a+152>>2]](d)|0;J[b+36>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+36>>2],J[b+32>>2])}return 0}function Zl(a){a=a|0;var b=0;b=J[a+668>>2];if(!b)return a|0;J[b+596>>2]=J[a+596>>2];O[b+600>>3]=O[a+600>>3];O[b+608>> -3]=O[a+608>>3];O[b+616>>3]=O[a+616>>3];O[b+624>>3]=O[a+624>>3];J[a+668>>2]=0;J[a+596>>2]=0;qc(Nq(a));return b|0}function Yhb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=bc-16|0;bc=f;e=Zd(b,16,f+12|0);g=J[f+12>>2];if(!g){J[e+12>>2]=2;J[e+8>>2]=d;J[e>>2]=c;J[e+4>>2]=c;J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=e;J[a>>2]=b}bc=f+16|0;return g|0}function RD(a){var b=0;b=J[a+644>>2];if(b)gc[J[a+156>>2]](b,J[a+316>>2]<<3);b=J[a+640>>2];if(b)gc[J[a+156>>2]](b,J[a+608>>2]);b=J[a+636>>2];if(b)gc[J[a+156>>2]](b, -J[a+608>>2]);J[a+644>>2]=0;J[a+636>>2]=0;J[a+640>>2]=0;return 0}function Pya(a,b,c){a=a|0;b=b|0;c=c|0;b=bc-32|0;bc=b;a:{if(!K[a+144|0]){a=Kc(b+8|0,2382727,2374155,164,2402264,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a;b=Z()|0;Fc(a);ba(b|0);B()}bc=b+32|0;return}B()}function II(a){var b=0,c=0,d=0;c=bc-16|0;bc=c;b=rc(8);J[b>>2]=0;J[b+4>>2]=0;J[695492]=0;da(3367,b|0,0);d=J[695492];J[695492]=0;if((d|0)!=1){H[J[b+4>>2]]=0;J[c+12>>2]=a;a=HI(b,786048,a);bc=c+16|0;return a}a=Z()| -0;qc(b);ba(a|0);B()}function I7a(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(f>>>0<=254)e=255-(P(255-e|0,f)+255>>>8|0)|0;H[a+2|0]=P(K[a+2|0],e)+255>>>8;H[a+1|0]=P(K[a+1|0],e)+255>>>8;H[a|0]=P(K[a|0],e)+255>>>8;H[a+3|0]=P(K[a+3|0],e)+255>>>8}function Esb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=gc[J[a+2296>>2]](K[c|0])|0;H[b+1|0]=(d|0)!=0;H[b|0]=d>>>8;b=b+2|0;c=c+1|0;e=e+1|0;if(e>>>0>2])continue;break}}return 0}function CKa(a){a=a|0;var b= -0;Gc(J[a+3480>>2]);J[a+3480>>2]=0;b=a+3484|0;Gc(J[b>>2]);J[b>>2]=0;b=a+3488|0;Gc(J[b>>2]);J[b>>2]=0;b=a+3492|0;Gc(J[b>>2]);J[b>>2]=0;Gc(J[a+3468>>2]);J[a+3468>>2]=0;a=J[a+4>>2];gc[J[J[a>>2]+24>>2]](a)}function zUa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+208>>2];if(b){c=b;d=J[a+212>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;qc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+208>>2]}J[a+212>>2]=b;qc(c)}qc(lh(a))}function wXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=J[a+104>> -2];e=O[b+400>>3]*255;a:{if(R(e)<2147483648){a=~~e;break a}a=-2147483648}a=(a|0)>0?a:0;J[c+12>>2]=(a|0)>=255?255:a;gc[J[J[d>>2]+60>>2]](d,c+12|0)|0;bc=c+16|0}function ld(a,b,c){if(c-1>>>0<4){J[b>>2]=0;b=b+c|0;H[b-1|0]=K[a|0];a:{if((c|0)==1)break a;H[b-2|0]=K[a+1|0];if((c|0)==2)break a;H[b-3|0]=K[a+2|0];if((c|0)==3)break a;H[b-4|0]=K[a+3|0]}return}fa(2338204,2338843,88,2340256);B()}function ihb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(J[a+4>>2])break a;d=J[a+16>>2];e=a+52|0;f=J[e>>2];if((d+ -f|0)!=(b|0))break a;g=J[a>>2];b=MC(a+16|0,c,0,d,0,g);if(!b){b=MC(e,c,d,f,0,g);if(!b)break a}J[a+4>>2]=b}}function akb(a){a=a|0;var b=0,c=0,d=0,e=0;b=161;c=J[a+16>>2];a:{if(M[a+20>>2]>>0)break a;d=J[a+32>>2];b=3;e=sl(a,J[c>>2]);if((e|0)<0)break a;J[d+120>>2]=e;a=sl(a,J[c+4>>2]);if((a|0)<0)break a;J[d+116>>2]=a;b=0}return b|0}function Zgb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=J[a>>2];d=a&2147483647;b=J[b>>2];e=b&2147483647;a:{if((d|0)==(e|0)){c=1;if(a>>>0>b>>>0)break a;return(a>>>0>>0?-1:0)|0}c= -1;if(d>>>0>e>>>0)break a;c=d>>>0>>0?-1:0}return c|0}function VA(a){var b=0,c=0,d=0,e=0;b=J[a+4>>2];c=J[b+8>>2];if((c|0)>0)while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){gc[J[J[e>>2]+4>>2]](e);c=J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}qc(dd(b));b=J[a>>2];if(b)qc(Fh(b));return a}function ONa(a){a=a|0;var b=0,c=0;b=J[a+236>>2];if(b>>>0<=7){LY(a);b=J[a+236>>2]}a:{if((b|0)==8){b=K[a+232|0];break a}if(b>>>0>=9){c=b-8|0;b=J[a+232>>2]>>>c|0;break a}if(!b)return-1;b=J[a+232>>2]<<8-b}J[a+236>>2]=c;return b& -255}function $y(a){a=a|0;var b=0,c=0,d=0;c=J[a+56>>2];b=J[a+60>>2];if((c|0)==(b|0))return 1;a=0;if(J[c>>2])a=0;else{b=b-c>>3;d=b>>>0<=1?1:b;while(1){a=a+1|0;if((d|0)!=(a|0)&!J[(a<<3)+c>>2])continue;break}a=a>>>0>=b>>>0}return a|0}function ssb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=K[c|0];H[b+3|0]=K[c+1|0];H[b+2|0]=d;H[b+1|0]=d;H[b|0]=d;b=b+4|0;c=c+2|0;e=e+1|0;if(e>>>0>2])continue;break}}return 0}function nl(a){a=a|0;var b=0;b=rc(48);J[b+8>> -2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[a>>2]=b;return a|0}function nEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=bc-16|0;bc=d;c=An(b,46);e=An(b,47);f=K[b+11|0];c=(c|0)==-1?f<<24>>24<0?J[b+4>>2]:f:c;a:{if((e|0)>(c|0)){J[a>>2]=0;H[a+11|0]=0;break a}Bm(a,b,e+1|0,c+(e^-1)|0,d+15|0)}bc=d+16|0}function kLa(a){a=a|0;var b=0,c=0;b=rc(16);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[695492]=0;a=$(c| -0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[b+8>>2]=-1;J[b+12>>2]=0;J[b>>2]=2331460;J[b+4>>2]=a;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function fka(a,b){a=a|0;b=b|0;var c=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2451200;J[695492]=0;b=aa(6495,a|0,b|0)|0;c=J[695492];J[695492]=0;if((c|0)==1){c=Z()|0;b=J[a+4>>2];if(b){J[a+8>>2]=b;qc(b)}ba(c|0);B()}return b|0}function dQ(a,b,c,d,e,f){var g=0,h=0,i=0;g=bc-16|0;bc=g;H[g+15|0]=0;H[g+14|0]=f;H[g+13|0]=e;H[g+12|0]=37;if(f){e=K[g+13|0];H[g+13|0]=K[g+ -14|0];H[g+14|0]=e}h=c,i=(_b(b|0,J[c>>2]-b|0,g+12|0,d|0,J[a>>2])|0)+b|0,J[h>>2]=i;bc=g+16|0}function UKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if(J[a+8>>2]|(b|0)<2)break a;e=J[a+4>>2];b=gc[J[J[e>>2]+60>>2]](e,b,c,d)|0;if(!b)break a;od(od(b,c),826593);if(!J[a+12>>2])od(b,826886);od(b,809791);f=b}return f|0}function Np(a,b){var c=0,d=0,e=0;a:{c=J[a+280>>2];if((c|0)<=0)break a;d=J[a+284>>2];a=0;while(1){b:{e=Ec(J[P(a,12)+d>>2],b);a=a+1|0;if((c|0)<=(a|0))break b;if(e)continue}break}if(e)break a; -return(P(a,12)+d|0)-12|0}return 0}function Hq(a){a=a|0;var b=0,c=0;J[a>>2]=2406368;J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;a:{if((c|0)==1)break a;J[695492]=0;da(5238,b|0,a|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;return ed(a)|0}ea(0)|0;yc();B()}function Fsb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){b=J[a+2312>>2];c=J[a+2316>>2];while(1){d=K[b|0];e=J[a+2296>>2];if(e)d=gc[e|0](d)|0;H[c|0]=d;c=c+1|0;b=b+1|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function jkb(a, -b){a=a|0;b=b|0;var c=0,d=0;d=150;c=J[a+12>>2];a:{if((c|0)==255116|(c|0)==255156)break a;d=0;c=Dk(gh(J[J[J[a>>2]+96>>2]+4>>2],239693),240845,0);if(!c)break a;c=J[c>>2];if(!c)break a;d=gc[c|0](a,b)|0}return d|0}function xwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=Ln(a,b)+16|0;b=b+16|0;if(d)continue;break a}while(1){d=c;c=d-1|0;a=Ln(a,b)+16|0;b=$c(b)+16|0;if(d)continue;break}}}function lnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1111573323){Dc(a,2050, -0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];I[b+36>>1]=L[c+36>>1];H[b+38|0]=K[c+38|0];I[b+40>>1]=L[c+40>>1];H[b+42|0]=K[c+42|0];return 0}function Yl(a){var b=0;a:{b=J[a+28>>2];if((b|0)!=J[a+24>>2]){J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;b=J[a+24>>2]}J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a}ea(0)|0;yc();B()}function XR(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=K[b+11|0];d=e<<24>>24<0;c=d?J[b>>2]:b;b=d?J[b+4>>2]:e;if((b|0)==-1)b=Ve(c);gc[J[J[a>> -2]+8>>2]](a,b);d=c;c=b<<2;tc(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b}function Tva(a,b){a=a|0;b=b|0;var c=0;c=J[b>>2];J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=c;c=ch(a+16|0,a+12|0,0,4);J[a+24>>2]=0;J[695492]=0;a=aa(5192,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;a=Z()|0;_c(c);ba(a|0);B()}function ST(a,b,c,d,e){var f=0,g=0;f=bc-16|0;bc=f;a:{b:{if(!c|!d)break b;g=Dzb(d,0,c,0);if(fc)break b;b=Kh(b,g);if(b)break a}b=J[a>>2];a=J[a+628>>2];J[f+8>>2]=d;J[f+4>>2]=c;J[f>>2]=e; -Nc(a,b,69768,f);b=0}bc=f+16|0;return b}function Ezb(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>>0)+e|0)|0;a=d>>31;b=c^a;f=f>>31;a=Fzb(h,e,b-a|0,(a^d)-((a>>>0>b>>>0)+a|0)|0)^f;b=a-f|0;fc=(g^fc)-((a>>>0>>0)+g|0)|0;return b}function AIa(a,b){a=a|0;b=b|0;var c=0;b=J[J[b+16>>2]+40>>2];if(!b){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return}a:{if(H[b+15|0]>=0){c=J[b+8>>2];J[a>>2]=J[b+4>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+12>>2];break a}Re(a,J[b+4>>2],J[b+8>>2])}}function vZ(a, -b,c){a:{b:{if(!Ec(b,785252))break b;if(!Ec(b,786715))break b;if(!Ec(b,787555))break b;while(1){if(J[a+24>>2]==7){if(J[Bc(J[a+32>>2],b,c,0)>>2]!=5)break a;uc(c)}a=J[a+104>>2];if(a)continue;break}}J[c>>2]=5}}function uT(a){a=a|0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=1065353216;J[a+4>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+36>>2]=10;J[a>>2]=2420700;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;return a|0}function gQa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=+J[b+8>>2]*-.11+ -(+J[b+4>>2]*-.59+(+J[b>>2]*-.3+ +(65536-J[b+12>>2]|0)))+.5;a:{if(R(e)<2147483648){a=~~e;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0}function eta(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;c=J[b>>2];a:{if(!c)break a;a=(J[a+8>>2]+J[a+12>>2]|0)-c|0;if((a|0)<=0)break a;a=Uo(d+12|0,c,a);c=J[d+12>>2];J[b>>2]=J[b>>2]+1;e=(a|0)>=0?c:0}bc=d+16|0;return e|0}function _jb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+16>>2];if(M[a+20>>2]>=b+12>>>0){c=J[a+32>>2];d=c,e=sl(a,J[b>>2]),J[d+132>>2]= -e;d=c,e=sl(a,J[b+4>>2]),J[d+136>>2]=e;d=c,e=sl(a,J[b+8>>2]),J[d+140>>2]=e;a=0}else a=161;return a|0}function Xub(a){a=a|0;var b=0,c=0,d=0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)>0){c=K[a+1053|0]|(K[a+1057|0]<<16|K[a+1055|0]<<8)|-16777216;a=J[a+644>>2];while(1){J[a>>2]=c;a=a+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function RN(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a;c=c-1|0;a:{b:{if(!(c>>>0>=20|!(753151>>>c&1))){a=(c<<2)+47444|0;break b}a=J[a+68>>2]-1|0;c=0;if(a>>>0>=20)break a;a=(a<<2)+47524| -0}c=J[a>>2]}J[(d+(c<<2)|0)+400>>2]=b;return 1}function DXa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;d=J[a+104>>2];b=J[b+476>>2];b=(b|0)==1?2:(b|0)==2?1:b;H[c+15|0]=b;gc[J[J[d>>2]+84>>2]](d,c+15|0)|0;a=J[a+104>>2];H[c+14|0]=b;gc[J[J[a>>2]+92>>2]](a,c+14|0)|0;bc=c+16|0}function u1a(){var a=0;a=J[689440];if(!(!a|!K[a|0]))Gf(a);J[689441]=0;J[689440]=0;a=J[689443];if(a){oh(a);lK(a)}J[689438]=0;J[689443]=0;a=J[689446];if(a){oh(a);lK(a)}J[689446]=0;a=J[689444];if(a){Gf(a);J[689444]=0}return 1}function rKa(a){a= -a|0;var b=0,c=0,d=0;while(1){b=J[a+32784>>2];if(!b){if(!(!J[a+34092>>2]|!J[a+34096>>2]))return-1;FA(a);continue}break}c=J[a+32780>>2];d=K[(c+a|0)+12|0];J[a+32784>>2]=b-1;J[a+32780>>2]=c+1&32767;return d|0}function pn(a,b){var c=0,d=0,e=0;a:{if(!a|!b)break a;c=J[a+16>>2];if((c|0)<=0)break a;a=a+20|0;c=a+(c<<2)|0;while(1){d=J[J[a>>2]>>2];if(Ec(J[d+8>>2],b)){a=a+4|0;if(c>>>0>a>>>0)continue;break a}break}e=J[d+20>>2]}return e}function lba(a){a=a|0;var b=0,c=0;c=Kh(J[a+912>>2],J[a+916>>2]+1E3|0);if(!c){b= -J[a>>2];J[b+20>>2]=56;J[b+24>>2]=100;gc[J[J[a>>2]>>2]](a)}J[a+912>>2]=c;J[a+784>>2]=1E3;b=J[a+916>>2];J[a+916>>2]=b+1E3;J[a+780>>2]=b+c;return 1}function lR(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=bc-16|0;bc=d;J[d+12>>2]=c;J[d+8>>2]=c;e=-1;c=Il(0,0,b,c);a:{if((c|0)<0)break a;f=a;c=c+1|0;a=zc(c);J[f>>2]=a;if(!a)break a;e=Il(a,c,b,J[d+12>>2])}bc=d+16|0;return e|0}function jPa(a){a=a|0;var b=0;J[a>>2]=2206308;J[695492]=0;_(3205,a- -64|0);b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;J[695492]=0; -_(3205,a+128|0);b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}ea(0)|0;yc();B()}function Sg(a,b,c,d){var e=0,f=0;f=bc-16|0;bc=f;a:{b:{if(!b|!c)break b;e=Dzb(c,0,b,0);if(fc)break b;e=Kh(0,e);if(e)break a}e=J[a>>2];a=J[a+628>>2];J[f+8>>2]=c;J[f+4>>2]=b;J[f>>2]=d;Nc(a,e,69768,f);e=0}bc=f+16|0;return e}function PQ(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];a:{if(!c)break a;d=J[c+24>>2];b:{if((d|0)==J[c+28>>2]){b=gc[J[J[c>>2]+52>>2]](c,b&255)|0;break b}J[c+24>>2]=d+1;H[d|0]=b;b=b&255}if((b|0)!=-1)break a; -J[a>>2]=0}return a|0}function IZ(a,b){var c=0;a=J[J[a+8>>2]+(449666%((J[a+12>>2]<<1)-1>>>0)<<2)>>2];a:{if(!a)break a;while(1){if(Ec(775E3,J[a>>2])){a=J[a+24>>2];if(a)continue;break a}break}if(J[a+8>>2]!=4)break a;c=!Ec(J[a+16>>2],b)}return c}function HM(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!a)break a;b=bd(1,16);if(!b)break a;e=J[a+8>>2];f=e<<2;c=bd(1,f);J[b>>2]=c;if(!c)break a;tc(c,J[a>>2],f);d=J[a+12>>2];J[b+8>>2]=e;J[b+12>>2]=d;J[b+4>>2]=J[a+4>>2];d=b}return d}function $Ka(a){a=a|0;var b=0,c=0;J[a>> -2]=2331660;a:{b=J[a+8>>2];if(b){c=J[b+32>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(b)}b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a);return}ea(0)|0;yc();B()}function rX(a){var b=0,c=0,d=0;b=J[a+12>>2];a:{if((b&255)==255){b=b<<8&65280;J[a+12>>2]=b;J[a+16>>2]=(b|0)==65280?7:8;c=J[a+8>>2];d=0;if(c>>>0>=M[a+4>>2])break a;J[a+8>>2]=c+1;J[a+12>>2]=b|K[c|0]}J[a+16>>2]=0;d=1}return d}function W_(a,b){a=a|0;b=b|0;var c=0,d=0;if(!b){J[a>>2]=0;H[a+11|0]=0;return}c=rc(12);J[695492]= -0;b=aa(3187,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){FK(a,J[b>>2],J[b+4>>2]);qc(dd(b));return}a=Z()|0;qc(c);ba(a|0);B()}function SYa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a=J[a+332>>2]+128|0;b=J[b+84>>2];f=P(J[b+32>>2],L[c+16>>1]);b=P(J[b>>2],L[c>>1])+4|0;H[J[d>>2]+e|0]=K[a+(f+b>>>3&1023)|0];H[J[d+4>>2]+e|0]=K[a+(b-f>>>3&1023)|0]}function RH(a){var b=0,c=0,d=0,e=0;b=J[a>>2];if(b)qc(dd(b));b=J[a+12>>2];if(b){c=J[b+8>>2];if((c|0)>0)while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){qc(RH(e));c= -J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}qc(dd(b))}return a}function DZ(a,b){var c=0;hg(J[a+108>>2],b,0,0,0,0,0,0,0);if(J[b>>2]==9){c=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];c=gc[J[J[a>>2]+52>>2]](a)|0}xc(1,c,798337,0);uc(b);J[b>>2]=11}}function qN(a){a=a|0;var b=0,c=0,d=0,e=0;b=bc-16|0;bc=b;a:{if(!J[a+44>>2])break a;while(1){ug(b+12|0,a,c&255);d=K[b+15|0];e=(d|0)!=0;if(d)break a;c=c+1|0;if(M[a+44>>2]>(c&65535)>>>0)continue;break}}bc=b+16|0;return e| -0}function aLa(a){a=a|0;var b=0,c=0;J[a>>2]=2331660;a:{b=J[a+8>>2];if(b){c=J[b+32>>2];J[695492]=0;Gc(c);c=J[695492];J[695492]=0;if((c|0)==1)break a;qc(b)}b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;yc();B()}function Wma(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=J[a+4>>2];if(!a)return 0;a:{if(!e|!f)break a;if(b>>>0>f>>>0)return Yd(f,0,d,a)|0;e=b>>>0>>0?e:b;if(e+c>>>0<=f>>>0)break a;c=f-e|0}return Yd(b,c,d,a)|0}function TJ(a,b,c){var d=0;d=bc-32|0;bc=d;a:{if((a|0)==2){if(c){J[d>> -2]=c;Cc(0,0,0,0,0,8,2,3,c,0,0,0,32863,d);break a}Cc(0,0,0,0,0,8,2,3,0,0,0,0,36013,0);break a}J[d+16>>2]=c;Cc(0,0,0,0,0,8,a,2,c,0,0,0,b,d+16|0)}bc=d+32|0}function _0a(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+8>>2];a:{b:{if(c>>>0>2]){d=K[c|0];J[a+8>>2]=c+1;c=d<<24>>24;if((c|0)>=0)break a;a=J[a+4>>2];H[a+36|0]=1;H[a+37|0]=c;J[b>>2]=12;break b}J[b>>2]=8}d=65535}return d|0}function Zo(a){var b=0,c=0,d=0;a:{if(!J[a+8>>2])break a;b=J[a+4>>2];d=J[b>>2];c=J[J[a>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+8>>2]= -0;if((a|0)==(b|0))break a;while(1){c=J[b+4>>2];qc(b);b=c;if((b|0)!=(a|0))continue;break}}}function Qx(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+4>>2];if(!d)break a;e=J[a+44>>2];if(!e|b>>>0>=e>>>0)break a;b=(b<<2)+d|0;H[b+40|0]=K[c|0];H[b+41|0]=K[c+1|0];H[b+42|0]=K[c+2|0];H[b+43|0]=K[c+3|0];H[a+481|0]=0}}function vnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1950960965){Dc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];H[b+34|0]=K[c+34|0];H[b+35|0]=K[c+35|0];H[b+36|0]=K[c+36|0];H[b+37|0]=K[c+37|0];H[b+ -38|0]=K[c+38|0];return 0}function ij(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;if(J[b>>2]>0)while(1){qc(J[J[b+16>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}qc(J[b+16>>2]);c=J[b+20>>2];if(c)qc(c);qc(b);J[a>>2]=0}}function E$(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+64>>2];if(!c)break a;a=xw(a,J[b+12>>2]);if(!a)break a;d=e0(c,a);if(!(J[d+8>>2]==(b|0)?d:0)){gc[J[659451]](a);return}Ft(c,a,0,3175);gc[J[659451]](a);J[b+40>>2]=0}}function xtb(a){a=a|0;var b=0,c=0,d=0;b=J[a+588>> -2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+b|0;b=c+(b<<1)|0;c=0;while(1){H[b+1|0]=0;H[b|0]=K[d|0]<<7;b=b-2|0;d=d-1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function x1a(a){a=a|0;var b=0,c=0,d=0;a=J[a>>2];if(!a)return 0;b=Qc(a);c=0;a:{if(!a)break a;if((b|0)>0){c=a+b|0;b=((b-32|0)/32|0)+1|0;while(1){d=K[a|0]+P(d,37)|0;a=a+b|0;if(c>>>0>a>>>0)continue;break}}c=d}return c|0}function ttb(a){a=a|0;var b=0,c=0,d=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+b|0;b=c+(b<<1)|0;c=0;while(1){H[b+ -1|0]=0;H[b|0]=K[d|0]<<6;b=b-2|0;d=d-1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function rtb(a){a=a|0;var b=0,c=0,d=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+b|0;b=c+(b<<1)|0;c=0;while(1){H[b+1|0]=0;H[b|0]=K[d|0]<<4;b=b-2|0;d=d-1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function _p(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;a:{g=J[a+4>>2];if(!g)break a;h=J[a+44>>2];if(!h|b>>>0>=h>>>0)break a;b=(b<<2)+g|0;H[b+41|0]=d;H[b+40|0]=e;H[b+42|0]= -c;H[b+43|0]=f;H[a+481|0]=0}}function Pma(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;b=J[b>>2]!=0;g=O[c>>3];h=O[d>>3];i=O[e>>3];a=J[a+12>>2];N[a+144>>2]=O[f>>3];N[a+140>>2]=i;N[a+136>>2]=h;N[a+132>>2]=g;J[a+128>>2]=b;return 0}function Kxb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(J[a+12>>2]>0){b=J[a+16>>2];while(1){d=-1;if(wh(c,J[b>>2]))break a;if(wh(c,J[b+4>>2]))break a;b=b+8|0;e=e+1|0;if((e|0)>2])continue;break}}d=0}return d|0}function K$(a){var b=0,c=0,d=0,e=0;b=bc- -16|0;bc=b;a:{if(!a)break a;c=J[a>>2];d=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break a;e=(c^-1)+a>>>0<249?c:0}J[b>>2]=17038;Cc(0,d,c,e,0,23,2,3,17038,0,0,0,32863,b);bc=b+16|0}function Jp(a){a=a|0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+16>>2]=283;J[a+12>>2]=284;J[a+8>>2]=285;J[a+4>>2]=286;J[a>>2]=287;J[a+124>>2]=0;J[a+128>>2]=0;J[a+116>>2]=126;J[a+120>>2]=0;J[a+112>>2]=52720;J[a+20>>2]=0;return a|0}function Ieb(a,b){a=a|0;b=b|0;var c=0,d=0;d=rl(327360,b);a:{if(d)break a;d=0;if(!a)break a;c=J[a+4>>2];if(!c)break a; -c=gh(c,239693);if(!c)break a;c=J[J[c>>2]+20>>2];if(!c)break a;d=gc[J[c+16>>2]](a,b)|0}return d|0}function HYa(a){a=a|0;var b=0;if(!a)return-1;a:{b:{if(!(J[651372]!=(a|0)&J[651370]!=(a|0))){if((Ji(a)|0)>=0)break a;a=29207;break b}if(J[651371]==(a|0))break a;if((fg(a)|0)!=-1)break a;b=-1;a=29216}AJ(a)}return b|0}function ynb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1933723988){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];H[b+34|0]=K[c+34|0];H[b+35|0]=K[c+35|0];H[b+36|0]=K[c+36|0]; -H[b+37|0]=K[c+37|0];return 0}function szb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;d=J[a+16>>2];e=J[a+12>>2];O[c+16>>3]=+J[a+20>>2]*1.52587890625E-5;O[c>>3]=+(e|0)*1.52587890625E-5;O[c+8>>3]=+(d|0)*1.52587890625E-5;Ii(b,205655,c);bc=c+32|0}function pda(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];if(J[b+68>>2]!=8){if(J[a+608>>2]>=J[a+600>>2])gf(a);d=J[b+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=d;J[a+608>>2]=J[a+608>>2]+1;J[b+64>>2]=0;J[b+68>>2]=8}return 1}function hma(a,b,c,d,e,f){a=a|0;b=b|0; -c=c|0;d=d|0;e=e|0;f=f|0;e=bc-16|0;bc=e;a=J[a+12>>2];J[e+12>>2]=J[b>>2];b=bc-16|0;bc=b;Wu(a);J[b+12>>2]=1;VK(a+2312|0,e+12|0,0,b+12|0,J[a+2308>>2],c,d);bc=b+16|0;bc=e+16|0;return 0}function gh(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+16>>2];if((c|0)<=0)return 0;a=a+20|0;c=a+(c<<2)|0;while(1){d=J[a>>2];if(!Ec(J[J[d>>2]+8>>2],b))break a;a=a+4|0;if(c>>>0>a>>>0)continue;break}return 0}return d}function emb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0;bc=c;if(!J[688836]){e=2755344,f=fL(),J[e>>2]=f; -J[c+12>>2]=b;d=a;a=rc(b);if(GK(d,b,a,c+12|0)){b=J[688836];gc[J[J[b>>2]+36>>2]](b,a,J[c+12>>2])}qc(a)}bc=c+16|0}function asa(a){a=a|0;var b=0,c=0;wz(a);a:{if(J[a+36>>2]>0)break a;b=J[a+24>>2];if(K[b+20|0]?0:b)break a;b=J[a+32>>2];if((b|0)<=J[a+28>>2])break a;c=J[a+16>>2];gc[J[J[c>>2]+20>>2]](c,b,0,0)|0;J[a+28>>2]=J[a+32>>2]}}function aJa(a){a=a|0;var b=0;J[a>>2]=2336440;b=J[a+20>>2];if(b)qc(Rc(b));b=J[a+24>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>> -2]+4>>2]](b);continue}break}return a|0}function SIa(a){a=a|0;var b=0;J[a>>2]=2336632;b=J[a+20>>2];if(b)qc(Rc(b));b=J[a+24>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function Rn(a){var b=0,c=0,d=0,e=0;if(a){b=J[a+20>>2];c=J[a+16>>2];if(P(b,c))while(1){e=J[J[a+24>>2]+(d<<2)>>2];if(e){qc(e);c=J[a+16>>2];b=J[a+20>>2]}d=d+1|0;if(d>>>0>>0)continue;break}qc(J[a+24>>2]);qc(a)}}function EMa(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;if(i){gc[J[J[d>>2]+20>>2]](d);gc[J[J[d>>2]+48>>2]](d,P((P(J[g+4>>2],P(J[g+8>>2],e))+7|0)/8|0,f))|0;gc[J[J[d>>2]+24>>2]](d)}}function Bxb(a,b){a=a|0;b=b|0;var c=0;if(J[a+44>>2]>0){b=J[a+48>>2];while(1){a:{if(J[b>>2]!=1)break a;if(!u9(a,b))break a;return-1}t9(a,b);b=b+56|0;c=c+1|0;if((c|0)>2])continue;break}}J[a+84>>2]=32;return 1}function sjb(a,b){a=a|0;b=b|0;var c=0,d=0;J[b+72>>2]=1869968492;d=J[a+36>>2];J[b+124>>2]=d;c=J[a+24>> -2];J[b+108>>2]=J[a+20>>2];J[b+112>>2]=c;c=J[a+32>>2];J[b+116>>2]=J[a+28>>2];J[b+120>>2]=c;J[b+124>>2]=d&-2;return 0}function ce(a,b,c){var d=0,e=0,f=0;e=bc-16|0;bc=e;J[e+12>>2]=c;d=ts(a,b);a:{if(!d)break a;if(b>>>0<=65535){d=L[d+12>>1];if(!(J[((d>>>3&8188)+a|0)+40>>2]>>>d&1))break a}f=gc[J[a+672>>2]](a,b,c)|0}bc=e+16|0;return f}function aMa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=bc-4096|0;bc=e;while(1){if(b>>>0>d>>>0){c=b-d|0;c=c>>>0>=4096?4096:c;f=gc[J[J[a>>2]+40>>2]](a,e,c)|0;d=d+f|0;if((c|0)== -(f|0))continue}break}bc=e+4096|0;return d|0}function FM(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!a)break a;c=Qc(a);d=bd(c+1|0,1);if(!d)break a;if((c|0)>0)while(1){e=H[a+b|0];if(!Yf(226849,e)){H[f+d|0]=e;f=f+1|0}b=b+1|0;if((c|0)!=(b|0))continue;break}b=d}return b}function Dzb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=c>>>16|0;f=a>>>16|0;j=P(e,f);g=c&65535;h=a&65535;i=P(g,h);f=(i>>>16|0)+P(f,g)|0;e=(f&65535)+P(e,h)|0;fc=(P(b,c)+j|0)+P(a,d)+(f>>>16)+(e>>>16)|0;return i&65535|e<<16}function ymb(a,b){a=a|0;b=b| -0;var c=0,d=0,e=0;c=J[a+12>>2];d=J[c>>2];c=J[c+4>>2];if((d|0)!=(c|0))while(1){tc(b+e|0,J[d>>2],20480);e=e+20480|0;d=d+4|0;if((c|0)!=(d|0))continue;break}tc(b+e|0,J[a+16>>2],J[a+20>>2])}function ui(a){var b=0,c=0;a:{if(J[a+32>>2]|!a)break a;b=J[a+8>>2];if(!((b|0)==J[a+24>>2]|b>>>0>2147483646))J[a+24>>2]=b;b=J[a+20>>2];c=J[a+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break a;J[a+20>>2]=c;b=c}return b}function qtb(a){a=a|0;var b=0,c=0,d=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+b|0;b=c+(b<<1)| -0;c=0;while(1){H[b+1|0]=0;H[b|0]=K[d|0];b=b-2|0;d=d-1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function mpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!K[a+289|0]){Dc(a,1029,0,0);return 1029}if(c){Dc(a,1028,0,0);return 1028}H[a+290|0]=1;a:{if(K[a+112|0]){a=gc[J[b+4>>2]](a,b,e)|0;if(a)break a}a=0}return a|0}function lu(){var a=0,b=0;b=bd(256,4);if(b)while(1){J[(a<<2)+b>>2]=(((((((a&1)+(a>>>7|0)|0)+(a>>>1&1)|0)+(a>>>2&1)|0)+(a>>>3&1)|0)+(a>>>4&1)|0)+(a>>>5&1)|0)+(a>>>6&1);a=a+1|0;if((a| -0)!=256)continue;break}return b}function i1a(a){a=a|0;var b=0,c=0;J[a+148>>2]=0;b=J[a+448>>2];a:{if(J[a+336>>2]>=2){J[b+28>>2]=1;break a}c=J[a+340>>2];if(J[a+328>>2]!=1){J[b+28>>2]=J[c+12>>2];break a}J[b+28>>2]=J[c+76>>2]}J[b+20>>2]=0;J[b+24>>2]=0}function hU(a){a=a|0;var b=0,c=0;J[a>>2]=2406368;J[695492]=0;b=pa(5213)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){J[695492]=0;da(5238,b|0,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}Tl(ed(a))}function fg(a){a=a|0;var b=0,c=0,d=0,e= -0;d=Ji(a);e=gc[J[a+12>>2]](a)|0;if(!(H[a|0]&1)){b=J[a+56>>2];c=J[a+52>>2];if(c)J[c+56>>2]=b;if(b)J[b+52>>2]=c;if(J[694757]==(a|0))J[694757]=b;qc(J[a+96>>2]);qc(a)}return d|e}function W6(a,b){a=a|0;b=b|0;var c=0;c=J[b+4>>2];J[a+4>>2]=J[b>>2];J[a+8>>2]=c;J[a+28>>2]=J[b+24>>2];c=J[b+20>>2];J[a+20>>2]=J[b+16>>2];J[a+24>>2]=c;c=J[b+12>>2];J[a+12>>2]=J[b+8>>2];J[a+16>>2]=c;V6(a,b,0);V6(a,b,1)}function PW(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=J[h>>2];j=b+e|0;k=J[j>> -2];e=J[g>>2]-(i+k>>2)|0;J[g>>2]=e+i;J[j>>2]=e;J[h>>2]=e+k;f=f+1|0;if((f|0)!=(d|0))continue;break}}function Gdb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=12;a:{if(Ec(b,241361))break a;e=7;b:{c:{if(d){b=vg(c,0,10);break c}b=J[c>>2]}switch(b-35|0){case 0:case 5:break b;default:break a}}J[a+64>>2]=b;e=0}return e|0}function qA(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;J[a+48>>2]=0;J[a+36>>2]=J[a+32>>2];e=gc[J[a+28>>2]](b,c,J[a>>2])|0;d=J[a+68>>2];if(!e){J[a+68>>2]=d|4;return 0}J[a+56>>2]=b;J[a+60>>2]= -c;J[a+68>>2]=d&-5;return 1}function mkb(a){a=a|0;var b=0,c=0;c=J[a+712>>2];a:{if(!(K[a+8|0]&8)|!J[a+540>>2])break a;b=Dk(gh(J[J[a+96>>2]+4>>2],239693),240596,0);if(!b)break a;b=J[b>>2];if(!b)break a;return gc[b|0](a)|0}return J[c+1348>>2]}function kea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;J[e+12>>2]=d;d=Gl(e+8|0,e+12|0);J[695492]=0;a=Uo(a,b,c);b=J[695492];J[695492]=0;if((b|0)!=1){Mh(d);bc=e+16|0;return a|0}a=Z()|0;Mh(d);ba(a|0);B()}function Uoa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc- -16|0;bc=c;if(!K[b+32|0])_o(b,0);d=c+8|0;aG(d,b);J[695492]=0;da(6068,a|0,d|0);a=J[695492];J[695492]=0;if((a|0)!=1){sc(d);bc=c+16|0;return}a=Z()|0;sc(c+8|0);ba(a|0);B()}function QDa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=bc-48|0;bc=b;or(a,b);d=O[b+24>>3];e=O[b>>3];f=O[b+16>>3];g=O[b+8>>3];c=Y(d*e-f*g);O[b+24>>3]=d/c;O[b+16>>3]=f/c;O[b+8>>3]=g/c;O[b>>3]=e/c;WG(a);bc=b+48|0;return+c}function Kn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];if(!(!c|J[b+4>>2]!=(a|0))){d=J[c>>2];f=a+8|0;e=J[c+4>>2];J[(d? -d:f)+4>>2]=e;J[(e?e:f)>>2]=d;J[a+4>>2]=J[a+4>>2]-1;gc[J[J[a>>2]+16>>2]](c,1);qc(c);J[b>>2]=0}}function K2(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a=J[a>>2];c=O[a>>3];d=O[a+8>>3];e=O[a+16>>3];f=O[a+24>>3];g=O[a+32>>3];N[b+20>>2]=O[a+40>>3];N[b+16>>2]=g;N[b+12>>2]=f;N[b+8>>2]=e;N[b+4>>2]=d;N[b>>2]=c;return 0}function IEa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;gc[J[J[b>>2]+136>>2]](b,2370836)|0;J[c+12>>2]=J[a+4>>2];gc[J[J[b>>2]+144>>2]](b,c+12|0)|0;J[c+8>>2]=J[a+8>>2];gc[J[J[b>>2]+152>>2]](b,c+8|0)| -0;bc=c+16|0;return 1}function HG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!(!a|!b)){a=L[c+4>>1]|L[c+6>>1]<<16;d=L[c>>1]|L[c+2>>1]<<16;I[b+90>>1]=d;I[b+92>>1]=d>>>16;I[b+94>>1]=a;I[b+96>>1]=a>>>16;I[b+98>>1]=L[c+8>>1];J[b+8>>2]=J[b+8>>2]|32}}function Afb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=bc-16|0;bc=d;e=J[a+16>>2];a:{if((e|0)>0)while(1){if(!JC(a,c,d+12|0))if(!Ec(b,J[d+12>>2]))break a;c=c+1|0;if((e|0)!=(c|0))continue;break}c=0}bc=d+16|0;return c|0}function kd(a,b,c){var d=0,e=0;if(!c)return 0;d=K[a|0];if(d)a:{while(1){e= -K[b|0];if((e|0)!=(d|0)|!e)break a;c=c-1|0;if(!c)break a;b=b+1|0;d=K[a+1|0];a=a+1|0;if(d)continue;break}d=0}else d=0;return d-K[b|0]|0}function Ydb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break a;a=J[b+16>>2]+(c<<3)|0;J[a+4>>2]=J[a+4>>2]+d}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|16}function Wca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;e=Dj(d+4|0,10613);J[695492]=0;a=ha(7036,e|0,a|0,b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!= -1){ad(e);bc=d+16|0;return a|0}a=Z()|0;ad(e);ba(a|0);B()}function TC(a,b,c,d){var e=0,f=0;f=J[a+4>>2];if(f>>>0>b>>>0){e=J[a+20>>2];a:{if(e){c=gc[e|0](a,b,c,d)|0;break a}e=c;c=f-b|0;c=c>>>0>>0?c:d;tc(e,J[a>>2]+b|0,c)}J[a+8>>2]=b+c;a=c>>>0>>0?85:0}else a=85;return a}function Sca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;e=Dj(d+4|0,10613);J[695492]=0;a=ha(7039,e|0,a|0,b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){ad(e);bc=d+16|0;return a|0}a=Z()|0;ad(e);ba(a|0);B()}function Q7(a,b){a= -a|0;b=b|0;var c=0;a:{b:{if(b-257>>>0<4294967040)break b;c=b;c:switch(L[a+26>>1]-1|0){case 0:c=c>>>0>=2?2:c;break b;case 7:break b;case 3:break c;default:break a}c=c>>>0>=16?16:c}J[a+48>>2]=c}}function NA(a,b){var c=0,d=0,e=0;c=J[a+56>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;a:{if((c|0)==-1)break a;d=J[a+56>>2];d=gc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break a;J[a+68>>2]=J[a+68>>2]+2;J[b>>2]=d|c<<8;e=1}return e}function eq(a,b){a=a|0;b=b|0;var c=0;c=a;b=b-1|0;a:{b:{if(!(b>>>0>=20|!(753151>>>b&1))){a=(b<<2)+ -47444|0;break b}a=J[a+68>>2]-1|0;b=0;if(a>>>0>=20)break a;a=(a<<2)+47524|0}b=J[a>>2]}return J[(c+(b<<2)|0)+400>>2]}function aRa(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){wj(b);b=J[a+8>>2];gc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;Rf(b)}function _Ia(a){a=a|0;var b=0;J[a>>2]=2336440;b=J[a+20>>2];if(b)qc(Rc(b));b=J[a+24>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>> -2]+4>>2]](b);continue}break}qc(a)}function WT(a,b){a=a|0;b=b|0;J[a>>2]=2411688;J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=J[b+20>>2];b=J[b+4>>2];if(!(!b|(b|0)==2382582))b=ff(rc(Qc(b)+1|0),b);J[a+4>>2]=b;return a|0}function Rca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;e=Dj(d+4|0,9618);J[695492]=0;a=ha(7040,e|0,a|0,b|0,c|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1){ad(e);bc=d+16|0;return a|0}a=Z()|0;ad(e);ba(a|0);B()}function RIa(a){a=a|0;var b=0;J[a>>2]=2336632; -b=J[a+20>>2];if(b)qc(Rc(b));b=J[a+24>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}qc(a)}function JQ(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];a:{if(!c)break a;d=J[c+24>>2];b:{if((d|0)==J[c+28>>2]){b=gc[J[J[c>>2]+52>>2]](c,b)|0;break b}J[c+24>>2]=d+4;J[d>>2]=b}if((b|0)!=-1)break a;J[a>>2]=0}return a|0}function G7a(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=255-(f>>>0<255?P(e,f)+255>>>8|0:e)|0;H[a+2|0]=P(b,K[a+2|0])+8>>> -8;H[a+1|0]=P(K[a+1|0],b)+8>>>8;H[a|0]=P(K[a|0],b)+8>>>8;H[a+3|0]=P(K[a+3|0],b)+8>>>8}function itb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+644>>2];c=b;while(1){d=K[c|0]|K[c+1|0]<<8;H[b|0]=((d<<8|d>>>8)&65535)>>>15;c=c+2|0;b=b+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function iPa(a){a=a|0;var b=0;J[a>>2]=2206308;J[695492]=0;_(3205,a- -64|0);b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[695492]=0;_(3205,a+128|0);b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(a)} -function ftb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+644>>2];c=b;while(1){d=K[c|0]|K[c+1|0]<<8;H[b|0]=((d<<8|d>>>8)&65535)>>>14;c=c+2|0;b=b+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function dtb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+644>>2];c=b;while(1){d=K[c|0]|K[c+1|0]<<8;H[b|0]=((d<<8|d>>>8)&65535)>>>12;c=c+2|0;b=b+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Yaa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;d=J[J[a+584>>2]>> -2];while(1){a:{f=1;if((c|0)<=0)break a;e=(c|0)<(d|0)?c:d;c=c-e|0;f=-1;g=tO(a,b,e,0);b=b+e|0;if((g|0)>=0)continue}break}return f|0}function PA(a){var b=0,c=0,d=0,e=0;b=rc(8);c=J[a+4>>2];J[b+4>>2]=c;J[695492]=0;d=aa(3376,c|0,1)|0;e=J[695492];J[695492]=0;if((e|0)!=1){J[b>>2]=d;tc(wc(d,0,c),J[a>>2],J[a+4>>2]);return b}a=Z()|0;qc(b);ba(a|0);B()}function Oq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b>>2];a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0;a=J[b+4>>2];a=(a|0)>=65536?65536:a;J[c+4>>2]=(a|0)>0?a:0;a=J[b+ -8>>2];a=(a|0)>=65536?65536:a;J[c+8>>2]=(a|0)>0?a:0}function mj(a){a=a|0;var b=0;J[a>>2]=1032;J[695492]=0;$(13,a|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)==1)break a;J[695492]=0;$(14,a|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a;return a|0}ea(0)|0;yc();B()}function hKa(a){a=a|0;var b=0,c=0;b=J[a+4>>2];gc[J[J[b>>2]+20>>2]](b);if(J[a+12>>2]>0){b=0;while(1){c=J[a+4>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;J[J[a+8>>2]+(b<<2)>>2]=c;b=b+1|0;if((b|0)>2])continue;break}}}function dda(a,b,c,d){a=a|0;b=b| -0;c=c|0;d=d|0;var e=0;if((c|0)>0){d=J[a+584>>2];while(1){ZO(a,b,J[d+96>>2],J[d+12>>2]);Ne(J[d+96>>2],b,J[d+8>>2]);e=J[d+8>>2];b=e+b|0;c=c-e|0;if((c|0)>0)continue;break}}return 1}function ctb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+644>>2];c=b;while(1){d=K[c|0]|K[c+1|0]<<8;H[b|0]=((d<<8|d>>>8)&65535)>>>8;c=c+2|0;b=b+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function XL(a,b,c){var d=0,e=0,f=0,g=0;e=J[a+8>>2];f=J[a+4>>2];if(e>>>0>>0){d=J[a+20>>2];a:{if(d){d=gc[d|0](a, -e,b,c)|0;break a}g=b;b=f-e|0;d=b>>>0>>0?b:c;tc(g,J[a>>2]+e|0,d)}J[a+8>>2]=J[a+8>>2]+d}return d}function Nqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=$i(a,0,262142,a+56|0);lv(b);e=Bs(b,c);if((c|0)>0){f=a+52|0;while(1){g=d+e|0,h=$i(a,0,255,f),H[g|0]=h;d=d+1|0;if((d|0)!=(c|0))continue;break}}Bs(b,-1)}function NLa(a){a=a|0;var b=0,c=0;J[a>>2]=2331112;b=J[a+24>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)qc(b);J[a>>2]=2330896;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc(); -B()}return a|0}function BZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;d=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];e=P(J[b+4>>2],L[c+2>>1]);b=P(J[b>>2],L[c>>1])+4|0;H[d|0]=K[a+(e+b>>>3&1023)|0];H[d+1|0]=K[a+(b-e>>>3&1023)|0]}function rXa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;d=J[689330];b=gc[J[J[d>>2]+24>>2]](d,b)|0;if(b){J[c+12>>2]=0;gc[J[J[b>>2]+24>>2]](b,a,c+12|0);b=J[c+12>>2];H[a+12|0]=1;J[a+8>>2]=0;J[a+4>>2]=b}bc=c+16|0}function gM(a,b){var c=0,d=0,e=0;c=J[a+156>>2];a:{if(!c)break a;d= -J[c+4>>2];if(!(d&1))break a;e=J[a+88>>2];if(e){c=J[J[a+4>>2]+100>>2];gc[J[c+8>>2]](c,e);c=J[a+156>>2];d=J[c+4>>2]}J[c+4>>2]=d&-2}J[a+88>>2]=b}function df(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a:{if(!c)break a;if(b){if(M[a+20>>2]<=b>>>0)break a;return((J[c>>2]+c|0)+(J[a+44>>2]<<2)|0)+P(J[a+52>>2],b)|0}d=(J[c>>2]+c|0)+(J[a+44>>2]<<2)|0}return d|0}function VM(a){a=a|0;var b=0,c=0,d=0;wc(a+24|0,0,72192);J[a+8>>2]=-1;J[a+20>>2]=0;J[a>>2]=0;J[a+4>>2]=819200;c=a,d=rc(20480),J[c+16>>2]=d;b=rc(12);J[b+ -8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[a+72216>>2]=0;J[a+12>>2]=b}function Pra(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-32|0;bc=e;b=Gx(e+4|0,b,c);J[695492]=0;a=ga(55,a|0,b|0,d|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){un(b);bc=e+32|0;return a|0}a=Z()|0;un(b);ba(a|0);B()}function Jn(a,b){a=a|0;b=b|0;var c=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;b=ch(a+16|0,a+12|0,0,4);J[a+24>>2]=0;J[695492]=0;da(5446,a|0,17);c=J[695492];J[695492]=0;if((c|0)!=1)return a|0;a=Z()|0;_c(b);ba(a|0);B()}function H1(a){var b=0; -b=J[a>>2];if(!b){J[a+4>>2]=-1;return}O[a+48>>3]=O[a+112>>3];O[a+56>>3]=O[a+120>>3];O[a+64>>3]=O[a+128>>3];O[a+72>>3]=O[a+136>>3];O[a+80>>3]=O[a+144>>3];O[a+88>>3]=O[a+152>>3];J[a+4>>2]=b}function $eb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;e=gc[J[a+516>>2]](a,c?1986884728:1752003704,b,d+12|0)|0;if(!e){J[(c?756:752)+a>>2]=J[d+12>>2];J[(c?856:852)+a>>2]=J[b+8>>2]}bc=d+16|0;return e|0}function ywa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0; -J[a>>2]=2406736;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a=a+16|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function wE(a,b,c){var d=0;d=J[a+16>>2];if(!d){J[a+36>>2]=1;J[a+24>>2]=c;J[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(J[a+24>>2]!=2)break a;J[a+24>>2]=c;return}H[a+54|0]=1;J[a+24>>2]=2;J[a+36>>2]=J[a+36>>2]+1}}function jea(a){a=a|0;var b=0,c=0,d=0;b=bc-16|0;bc=b;J[b+12>>2]=a;a=Gl(b+8|0,b+12|0);J[695492]=0;c=J[J[694782]>>2]?4:1;d=J[695492];J[695492]=0;if((d|0)!=1){Mh(a);bc=b+16|0;return c|0}b=Z()|0;Mh(a); -ba(b|0);B()}function Vub(a){a=a|0;var b=0,c=0,d=0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)>0){c=K[a+81|0]|(K[a+85|0]<<16|K[a+83|0]<<8);a=J[a+644>>2];while(1){J[a>>2]=c;a=a+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function UYa(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){d=J[a+52>>2];if(!(!d|!J[a+68>>2])){b=J[a+448>>2];c=J[a+36>>2];J[b+12>>2]=J[c+16>>2]-J[c+12>>2];c=J[c+28>>2];J[b>>2]=d;J[b+16>>2]=c;Aw(a,b)}J[a+264>>2]=-1;nB(a)}}function S0a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+28>>2]&15;if(d>>>0<= -2){if(!(K[b+8|0]|(d|0)!=2)){J[a+24>>2]=738128;b=J[a+20>>2];H[b|0]=255;H[b+1|0]=253;H[b+2|0]=0;H[b+3|0]=0}J[a+48>>2]=0;c=a+52|0}J[c>>2]=1}function Qs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=bc-16|0;bc=c;J[c+12>>2]=0;d=J[a>>2];a:{if(K[a+8|0]){e=0;if(!d)break a;d=J[d>>2]}e=d}d=e;J[c+8>>2]=J[a+4>>2];f=b,g=Te(d,c+12|0,c+8|0),O[f>>3]=g;bc=c+16|0}function OMa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+88>>2];if(b){c=J[b+8>>2];if((c|0)>0)while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){qc(Kv(e));c=J[b+8>>2]}d=d+1|0;if((d| -0)<(c|0))continue;break}qc(dd(b));J[a+88>>2]=0}}function Lxa(a){a=a|0;var b=0,c=0;b=rc(24);J[695492]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b>>2]=2412864;J[b+4>>2]=0;c=J[695492];J[695492]=0;if((c|0)!=1){J[a>>2]=0;md(a,b);return}a=Z()|0;qc(b);ba(a|0);B()}function Hn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!c)break a;a=J[a+12>>2];if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break a;if((c|0)>0)return kd(a,b,c)|0;return Ec(a,b)|0}if(!b)break a;d=K[b|0]?-1:0}return d|0}function rHa(a,b,c,d){a=a|0;b=b|0;c=c|0; -d=d|0;a:{b:{if(a){if(!d)break b;if(!b)break a;return 1}fa(2346477,2346358,2533,2356881);B()}fa(2346590,2346358,2534,2356881);B()}fa(2353829,2346358,2535,2356881);B()}function pC(a){a=a|0;var b=0,c=0,d=0,e=0;a=J[a>>2];b=O[a+40>>3];c=O[a+8>>3];d=O[a+24>>3]*0;e=b+(c+d)-(b+(c*0+d));b=O[a+32>>3];c=O[a>>3];d=O[a+16>>3]*0;return+(Cf(e,b+(c+d)-(b+(c*0+d)))*180/3.141592653589793)}function Rbb(a){a=a|0;var b=0;a:{if(H[a+555|0]<0){J[a+548>>2]=0;b=J[a+544>>2];break a}H[a+555|0]=0;b=a+544|0}J[b>>2]=0;b:{if(H[a+ -543|0]<0){J[a+536>>2]=0;a=J[a+532>>2];break b}H[a+543|0]=0;a=a+532|0}J[a>>2]=0}function Ovb(a,b){a=a|0;b=b|0;if(K[a+498|0]){b=ND(a);H[a+498|0]=0;return b|0}return c8(a,K[b+28|0],K[b+29|0],J[b+32>>2],K[b+36|0],J[b+40>>2],K[b+44|0],K[b+45|0],J[b+48>>2],J[b+52>>2],J[b+56>>2],J[b+60>>2])|0}function rba(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0){c=J[a+804>>2];a:{if((c|0)<(b|0)){b=J[a>>2];J[b+20>>2]=123;gc[J[b+4>>2]](a,-1);J[a+800>>2]=97689;b=2;break a}J[a+800>>2]=J[a+800>>2]+b;b=c-b|0}J[a+804>>2]=b}}function iL(a){var b= -0,c=0,d=0;a:{if(K[a+12|0])break a;b=J[J[a+8>>2]>>2];d=J[J[a+4>>2]>>2];if((b|0)==(d|0))break a;while(1){a=b-12|0;c=J[a>>2];if(c){J[b-8>>2]=c;qc(c)}b=a;if((a|0)!=(d|0))continue;break}}}function dta(a){a=a|0;var b=0,c=0,d=0;b=1;c=J[a+12>>2];a:{if(!c)break a;d=J[a+8>>2];if(!d)break a;while(1){a=d;b=Uo(0,c,a);if(b-1>>>0>>0){c=b+c|0;d=a-b|0;if(d)continue}break}b=a>>>0>=b>>>0}return b|0}function Zj(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;a=J[a+4>>2];H[a+25|0]=1;J[d+12>>2]=0;f=Ke(a,d+ -12|0),g=1,H[f|0]=g;e=J[d+12>>2];O[e+8>>3]=c;O[e>>3]=b;J[a>>2]=J[a>>2]+1;bc=d+16|0;return 0}function ZZa(a){a=a|0;var b=0;J[a>>2]=768116;b=J[a+4>>2];J[695492]=0;_(3076,b|0);b=J[695492];J[695492]=0;if((b|0)!=1){J[a+4>>2]=0;b=J[a+8>>2];if(b)qc(b);J[a+8>>2]=0;J[a+12>>2]=0;return a|0}ea(0)|0;yc();B()}function OS(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;g=bc-16|0;bc=g;J[g+12>>2]=0;b=EK(b,g+12|0);h=J[g+12>>2];a:{if(!h)break a;fz(a,b,0,h,c,d,e,f);if(!b)break a;qc(b)}bc=g+16|0;return 0} -function C2(a){var b=0,c=0;a:{b=J[a>>2];b:{if(!b)break b;b=J[b>>2];if(!b)break b;c=J[J[b>>2]+12>>2];J[695492]=0;_(c|0,b|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}J[a>>2]=0;return a}ea(0)|0;yc();B()}function inb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1297045061){Dc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];H[b+36|0]=K[c+36|0];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];return 0}function id(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a>>2];c=J[a+8>>2];e=J[a+4>>2];if((c|0)>=(e| -0)){c=J[a+12>>2];c=((c|0)>0?c:e)+e|0;J[a+4>>2]=c;d=Nd(d,c,4);J[a>>2]=d;c=J[a+8>>2]}J[a+8>>2]=c+1;J[(c<<2)+d>>2]=b}function ak(a,b,c){var d=0,e=0,f=0;if(!b){J[c>>2]=0;return 0}e=c;c=Qc(b);d=c+1|0;f=!d;a:{if(c>>>0<=2147483646){c=gc[J[a+4>>2]](a,d)|0;a=!c<<6;break a}c=0;a=d?6:0}if(!(f|a)){tc(c,b,d);a=0}J[e>>2]=a;return c}function UB(a){a=a|0;var b=0,c=0;if(!a)return-102;b=J[a+224>>2];if(b){c=J[b>>2];if(c)qc(c);J[b>>2]=0;if(J[b+72>>2]==8)kl(b+4|0);qc(b);J[a+224>>2]=0}gc[J[a+20>>2]](J[a+28>>2],J[a+48>> -2])|0;qc(a);return 0}function LLa(a){a=a|0;var b=0,c=0;J[a>>2]=2331112;b=J[a+24>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)qc(b);J[a>>2]=2330896;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(a)}function I9a(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;c=bc-16|0;bc=c;J[c+12>>2]=b?J[b>>2]:32;J[c+8>>2]=J[d>>2];a=gc[J[J[a>>2]+296>>2]](a,c+12|0,c+8|0,e,f,g,h)|0;bc=c+16|0;return a|0}function xZa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=-1;a:{if(!d| -!b|(!a|!c))break a;e=J[b>>2];g=J[d>>2];e=(e|0)<(g|0)?e:g;if((e|0)<0)break a;tc(a,c,e);J[b>>2]=e;J[d>>2]=e;f=J[b>>2]}return f|0}function _ua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=+(J[a+92>>2]<<1);d=c-J[a+112>>2]|0;f=P(d,d);d=b-J[a+108>>2]|0;c=c-J[a+120>>2]|0;a=b-J[a+116>>2]|0;return e>=Y(+(f+P(d,d)|0))+Y(+(P(c,c)+P(a,a)|0))|0}function YPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;J[b>>2]=0;J[b+4>>2]=0;J[c>>2]=0;J[c+4>>2]=1079574528;e=O[a+64>>3];O[b+8>>3]=e;O[c+8>>3]=O[a+72>>3]-e;e=O[a+80>>3];O[b+ -16>>3]=e;O[c+16>>3]=O[a+88>>3]-e}function Sfa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=bc-16|0;bc=b;a:{if(!(K[f+11|0]>>>7|0)){J[a+8>>2]=J[f+8>>2];c=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=c;break a}Re(a,J[f>>2],J[f+4>>2])}bc=b+16|0}function Kxa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=rc(108);J[695492]=0;b=ma(5370,f|0,b|0,c|0,d|0,e|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[a>>2]=0;md(a,b);return}a=Z()|0;qc(f);ba(a|0);B()}function J1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=0;a:{if(K[d+ -4|0]|L[d>>1]<20|(K[d+5|0]|K[d+6|0]!=2))break a;if(K[d+8|0]!=99|K[d+9|0]!=110|(K[d+10|0]!=118|K[d+11|0]!=116))break a;a=K[d+12|0]==6}return a|0}function Iib(a){a=a|0;var b=0;b=J[J[a+156>>2]>>2];J[a+184>>2]=0;J[a+188>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+192>>2]=0;J[a+188>>2]=b;to(b);return 0}function $j(a){var b=0,c=0,d=0,e=0;b=J[a+4>>2];if(b){c=b;d=J[a+8>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;qc(e)}d=c;if((d|0)!=(b| -0))continue;break}c=J[a+4>>2]}J[a+8>>2]=b;qc(c)}}function sXa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a:{if(b)break a;if(gc[J[c+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;gc[J[b>>2]](a)}}function ri(a,b,c,d,e){var f=0;f=bc-256|0;bc=f;if(!(e&73728|(c|0)<=(d|0))){d=c-d|0;c=d>>>0<256;wc(f,b&255,c?d:256);if(!c)while(1){bi(a,f,256);d=d-256|0;if(d>>>0>255)continue;break}bi(a,f,d)}bc=f+256|0}function lq(a,b){a:{if(!L[a+1148>>1]){if(!Jj(a))return 0; -if(!L[a+1148>>1])break a}H[b|0]=K[J[a+1152>>2]];J[a+1152>>2]=J[a+1152>>2]+1;I[a+1148>>1]=L[a+1148>>1]-1;return 1}fa(80381,70456,1949,96701);B()}function hsa(a,b){a=a|0;b=b|0;var c=0;c=J[b>>2];if(c){c=J[J[c+28>>2]>>2]?J[c+32>>2]:0;oe(a+28|0,c,1);if(c)tc(J[a+24>>2],J[J[b>>2]+24>>2],c);J[a+20>>2]=J[J[b>>2]+20>>2];return}oe(a+28|0,0,1);J[a+20>>2]=8}function hS(a){a=a|0;var b=0;a:{a=J[a>>2];if(!a|J[a+612>>2])break a;b:{c:switch(J[a+608>>2]-5|0){case 0:b=O[a+24>>3]>.3?3:1;break b;case 2:break c;default:break a}b= -O[a+448>>3]>.3?15:14}J[a+612>>2]=b}}function gd(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;while(1){d=J[a>>2];e=J[b>>2];if((d|0)==(e|0)){b=b+4|0;a=a+4|0;c=c-1|0;if(c)continue;break a}break}f=-1;if((d|0)<(e|0))break a;f=(d|0)>(e|0)}return f}function gD(a,b){var c=0;a:{if((b|0)==65535)break a;if(b>>>0>=391){b=b-391|0;if(b>>>0>=M[a+1356>>2])break a;return J[J[a+1360>>2]+(b<<2)>>2]}a=J[a+3084>>2];if(!a)break a;c=gc[J[a+20>>2]](b)|0}return c}function _h(a,b){var c=0,d=0,e=0;if(!a)return;c=a+20|0;d=J[a>>2]; -e=J[a+4>>2];a:{if((d|0)>(e|0)){c=J[c>>2];break a}c=yl(c,d<<2,d<<3);J[a+20>>2]=c;J[a>>2]=J[a>>2]<<1}N[(e<<2)+c>>2]=b;J[a+4>>2]=J[a+4>>2]+1}function Raa(a){a=a|0;var b=0,c=0;qO(a);b=J[a+584>>2];if(b){c=J[b+116>>2];if(c){qc(c);b=J[a+584>>2]}c=J[b+144>>2];if(c){qc(c);b=J[a+584>>2]}qc(b);J[a+584>>2]=0;Bq(a);return}fa(79672,70324,1045,97935);B()}function Bdb(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;d=b;b=c+8|0;d=ex(a,d,b,c+7|0);a:{if(d)break a;a=J[J[J[a+4>>2]+128>>2]+52>>2];if(!a)break a;gc[J[J[a>>2]+ -4>>2]](J[a+4>>2],b)}bc=c+16|0;return d|0}function yob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=J[b+36>>2];d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=J[b+36>>2];if(c)tc(d+10|0,J[b+40>>2],c);return ue(a,J[b>>2],e+2|0,d+8|0)|0}function n3a(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+188>>2];if(!c){J[a>>2]=0;H[a+11|0]=0;return}b=a;a=0;a:{if(!c)break a;c=J[c+96>>2];d=J[J[c>>2]+32>>2];if(!d)break a;a=gc[d|0](c,239453)|0}F1(b,a,Qc(a),0)}function ima(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a=J[(J[a+ -12>>2]+2312|0)+8>>2];d=J[a+4>>2];if(d){e=J[a+16>>2];a=d-1|0;a=J[e+(a>>>6&67108860)>>2]+(a<<4&4080)|0;O[b>>3]=O[a>>3];O[c>>3]=O[a+8>>3]}return 0}function eWa(a){a=a|0;var b=0;J[a>>2]=827224;a:{if(J[a+16>>2]){J[695492]=0;fA(a+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a);return}ea(0)|0;yc();B()}function Zq(a){a=a|0;var b=0,c=0;b=-1;a:{if(!a)break a;c=J[a+64>>2];if(!c)break a;b=0;if(J[a+68>>2]|J[c+4>>2]!=1|(J[c+12>>2]|J[a+16>>2]==2))break a;b=1;if(J[a+ -4>>2])break a;b=I[c+58>>1]&1}return b|0}function Uca(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=Dj(c+4|0,15033);J[695492]=0;e=+Aa(7038,d|0,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)!=1){ad(d);bc=c+16|0;return+e}a=Z()|0;ad(d);ba(a|0);B()}function Ooa(a){a=a|0;var b=0,c=0,d=0;H[a+8|0]=0;J[a+4>>2]=1;J[a>>2]=2427048;b=rc(1280);J[695492]=0;c=$(6087,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+12>>2]=c;return a|0}a=Z()|0;qc(b);ba(a|0);B()}function Oca(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0; -bc=c;d=Dj(c+4|0,15033);J[695492]=0;e=+Aa(7041,d|0,a|0,b|0);a=J[695492];J[695492]=0;if((a|0)!=1){ad(d);bc=c+16|0;return+e}a=Z()|0;ad(d);ba(a|0);B()}function qp(a){var b=0,c=0;a:{if(!a)break a;J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(!b)break a;c=J[b+40>>2];if(c){gc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39181;J[b+16>>2]=39181}}function owb(a){a=a|0;var b=0,c=0;J[a>>2]=212608;J[695492]=0;b=a+4|0;_(21,b|0);c=J[695492];J[695492]=0;if((c|0)!=1){J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0; -J[a+32>>2]=0;ve(b);return a|0}ea(0)|0;yc();B()}function oB(a){var b=0,c=0,d=0;a:{if(!a)break a;b=J[a+40>>2];if((b|0)<=0)break a;d=b-1|0;J[a+40>>2]=d;c=J[a+48>>2];J[a+36>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;a=c+(d<<2)|0;c=J[a>>2];J[a>>2]=0}return c}function iQa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=+J[b+8>>2]*.114+(+J[b>>2]*.299+ +J[b+4>>2]*.587)+.5;a:{if(R(e)<2147483648){a=~~e;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0}function Mk(a){var b=0,c=0,d=0,e=0;b=zc(108);if(b){J[b+ -4>>2]=0;J[b>>2]=a;d=2631872;while(1){c=d;e=J[c>>2];if((e|0)!=(a|0)){d=c+24|0;if((e|0)>=0)continue}break}J[b+104>>2]=c+8;wc(b+12|0,0,92)}return b}function KM(a,b){var c=0,d=0,e=0;if(!(!a|!b)){c=a+8|0;d=J[a+4>>2];e=J[a>>2];a:{if((d|0)>(e|0)){c=J[c>>2];break a}c=yl(c,d<<2,d<<3);J[a+8>>2]=c;J[a+4>>2]=J[a+4>>2]<<1}J[(e<<2)+c>>2]=b;J[a>>2]=J[a>>2]+1}}function GUa(a){a=a|0;if(H[a+383|0]<0)qc(J[a+372>>2]);if(H[a+371|0]<0)qc(J[a+360>>2]);if(H[a+359|0]<0)qc(J[a+348>>2]);if(H[a+347|0]<0)qc(J[a+336>>2]);if(H[a+ -335|0]<0)qc(J[a+324>>2]);return em(a)|0}function wY(a){a=a|0;var b=0;J[a>>2]=2330768;b=J[a+84>>2];if(b)qc(Rc(b));b=J[a+68>>2];if(b)qc(Rc(b));b=J[a+72>>2];if(b)qc(Rc(b));b=J[a+76>>2];if(b)qc(Rc(b));b=J[a+80>>2];if(b)qc(Rc(b));return a|0}function ugb(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;J[c+12>>2]=b;d=0;a:{if(b>>>0>65535)break a;if(H[a+20|0]&1){d=J4(J[a>>2],J[a+16>>2],c+12|0,0);break a}d=I4(a,c+12|0,0)}a=d;bc=c+16|0;return a|0}function ol(a){var b=0,c=0,d=0,e=0;b=J[a>>2];if(b){c=b;d=J[a+4>>2]; -if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;qc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a>>2]}J[a+4>>2]=b;qc(c)}}function mKa(a){a=a|0;var b=0,c=0;b=rc(8);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[695492]=0;a=$(c|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){J[b>>2]=2332684;J[b+4>>2]=a;return b|0}a=Z()|0;qc(b);ba(a|0);B()}function fWa(a){a=a|0;var b=0;J[a>>2]=827224;a:{if(J[a+16>>2]){J[695492]=0;fA(a+16|0);b=J[695492];J[695492]=0;if((b|0)==1)break a}b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b); -return a|0}ea(0)|0;yc();B()}function f4(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=bc-16|0;bc=e;g=J[b>>2];a:{if(g>>>0>=d>>>0)break a;h=c,i=Sc(a,1,g,d,J[c>>2],e+12|0),J[h>>2]=i;f=J[e+12>>2];if(f)break a;J[b>>2]=d;f=0}bc=e+16|0;return f}function aya(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];a=J[c+16>>2];d=J[b>>2];b=J[d+16>>2];c=J[c+20>>2];d=J[d+20>>2];return(a>>>0>>0&(c|0)<=(d|0)|(c|0)<(d|0)?-1:a>>>0>b>>>0&(c|0)>=(d|0)|(c|0)>(d|0))|0}function Uhb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+20>>2]; -if(K[a+65|0]){a=J[e+8>>2];f=I[e+2>>1];g=J[e+4>>2]+(f<<3)|0;J[g+4>>2]=c>>10;J[g>>2]=b>>10;H[a+f|0]=d?1:2}I[e+2>>1]=L[e+2>>1]+1}function SK(a){var b=0,c=0,d=0;b=J[a+8>>2];d=J[a+4>>2];if((b|0)!=(d|0))while(1){c=b-12|0;J[a+8>>2]=c;if(H[b-1|0]<0){qc(J[c>>2]);c=J[a+8>>2]}b=c;if((d|0)!=(b|0))continue;break}a=J[a>>2];if(a)qc(a)}function Qra(a){a=a|0;var b=0;b=J[a+56>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+60>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[a+64>>2]=0;J[a+56>>2]=0; -J[a+60>>2]=0;vT(a)}function PN(a){var b=0,c=0,d=0;b=J[a+12>>2];if(b)ON(b);c=J[a+8>>2];if(c){b=J[c+52>>2];if(b){d=J[c- -64>>2];if(d){qc(d);b=J[c+52>>2]}qc(b)}qc(c)}b=J[a+16>>2];if(b)qc(b);b=J[a+32>>2];if(b)If(b);qc(a)}function FB(a,b){var c=0,d=0;a:{if((a|0)!=(b|0)){if(!a)return-1;if(!b)return 1;while(1){d=K[b|0];c=K[K[a|0]+773280|0]-K[d+773280|0]|0;if(c)break a;b=b+1|0;a=a+1|0;if(d)continue;break}}c=0}return c}function EIa(a){a=a|0;var b=0;a:{a=J[a+16>>2];if(J[a+48>>2])break a;a=J[a+40>>2];if(!a)break a; -b=J[a>>2];if(b){qc(ht(b));J[a>>2]=0}b=a+36|0;cl(a+32|0,J[b>>2]);J[a+32>>2]=b;J[a+36>>2]=0;J[a+40>>2]=0}}function sz(a){var b=0,c=0;c=J[a+28>>2];a:{if((c+34|0)<=4080){b=J[a+24>>2];break a}b=rc(8164);J[b>>2]=J[a+24>>2];c=0;wc(b+4|0,0,8160);J[a+24>>2]=b}J[a+28>>2]=c+34;a=c<<1;return(((b-a&2)+a|0)+b|0)+4|0}function svb(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0){d=J[a+12>>2];a=J[J[d+2452>>2]+24>>2];c=J[a+4>>2];a:{if(c>>>0>>0){J[d+2492>>2]=b-c;c=0;b=0;break a}c=c-b|0;b=J[a>>2]+b|0}J[a>>2]=b;J[a+4>>2]= -c}}function rvb(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0){d=J[a+12>>2];a=J[J[d+2464>>2]+24>>2];c=J[a+4>>2];a:{if(c>>>0>>0){J[d+2512>>2]=b-c;c=0;b=0;break a}c=c-b|0;b=J[a>>2]+b|0}J[a>>2]=b;J[a+4>>2]=c}}function p4a(a,b,c){a=a|0;b=b|0;c=c|0;b=J[b+8>>2];if(!b){b=a+76|0;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=1;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a+16>>2]=0;H[a+72|0]=0;return}e2(a,b,J[c>>2])}function N9(a){var b=0,c=0;a:{b:{if((a|0)!=769){if((a|0)!=1025)break a;a=Fi(2627504,J[657662]);if(a)break b; -break a}a=Fi(2630656,J[657763]);if(!a)break a}b=R9(a);if(!b)break a;If(a);c=b}return c}function Bn(a){var b=0;J[695492]=0;a=$(27,a|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)==1){na(ea(0)|0)|0;J[695492]=0;ka(4893);b=J[695492];J[695492]=0;a=0;if((b|0)==1)break a}return a}ea(0)|0;yc();B()}function xLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=J[a+28>>2];d=e+J[a+32>>2]|0;f=(c|0)<0;c=f?d-b|0:b;g=a;h=J[a+24>>2];a=c>>>0>>0?e:c>>>0>>0?c:d;J[g+40>>2]=h+(f?b>>>0<=d>>>0?a:0:a)}function tn(a){a= -a|0;var b=0;J[a>>2]=1032;J[695492]=0;$(13,a|0)|0;b=J[695492];J[695492]=0;a:{if((b|0)!=1){J[695492]=0;$(14,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)break a}ea(0)|0;yc();B()}qc(a)}function jA(a,b,c){var d=0,e=0;a:{b:{if(!b|!c)break b;d=V(+(b|0)*+(c|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break a;if(R(d)<2147483648){e=~~d;break b}e=-2147483648}J[a>>2]=e;e=1}return e}function gkb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[a+712>>2];a:{b:{if(!a)break b;d=6;if(J[a+1504>>2]==65535|M[a+20>>2]<=b>>>0)break a; -if(!c)break b;J[c>>2]=L[J[a+1188>>2]+(b<<1)>>1]}d=0}return d|0}function dMa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if((c|0)<=0)break a;while(1){e=gc[J[J[a>>2]+28>>2]](a)|0;if((e|0)==-1)break a;H[b+d|0]=e;d=d+1|0;if((d|0)!=(c|0))continue;break}d=c}return d|0}function Xu(a,b){var c=0;if(b){Xu(a,J[b>>2]);Xu(a,J[b+4>>2]);a=J[b+32>>2];a:{if(!a)break a;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break a;gc[J[J[a>>2]+8>>2]](a);Vc(a)}if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function xF(a,b){var c=0,d=0;c=K[a-1|0]<<2;a:{if(c>>> -0>b>>>0)break a;d=a;a=b-c|0;b=d+(P(a,5)>>>2|0)|0;a=a<<1&6;b=K[b+1|0]<<8-a&1020|K[b|0]>>>a;if(b>>>0<256)break a;b=L[(b<<1)+2580592>>1]}return b}function ul(a,b){var c=0,d=0;if(!(!a|!b)){c=a+8|0;d=J[a>>2];a:{if((d|0)>J[a+4>>2]){c=J[c>>2];break a}c=yl(c,d<<2,d<<3);J[a+8>>2]=c;J[a>>2]=J[a>>2]<<1}d=c;c=J[a+4>>2];J[d+(c<<2)>>2]=b;J[a+4>>2]=c+1}}function tub(a){a=a|0;var b=0,c=0;b=J[a+24>>2];c=J[b+48>>2];if((gc[J[J[c>>2]+16>>2]](c,J[b+52>>2],1,4096)|0)!=4096){c=J[a>>2];J[c+20>>2]=38;gc[J[c>>2]](a)}J[b+4>> -2]=4096;J[b>>2]=J[b+52>>2];return 1}function kQa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=+J[b+8>>2]*.11+(+J[b>>2]*.3+ +J[b+4>>2]*.59)+.5;a:{if(R(e)<2147483648){a=~~e;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0}function gp(a,b){var c=0;J[a>>2]=6;c=rc(20);J[695492]=0;J[c>>2]=b;J[c+12>>2]=0;J[c+16>>2]=1;J[c+4>>2]=0;J[c+8>>2]=0;b=J[695492];J[695492]=0;if((b|0)!=1){J[a+8>>2]=c;return}a=Z()|0;qc(c);ba(a|0);B()}function fwb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+20>>2];if(d){e= -J[a+28>>2];if(e){Xg(d,e,1);d=J[a+28>>2];J[a+28>>2]=0;J[a+24>>2]=d+J[a+24>>2];d=J[a+20>>2]}Yd(b,1,c,d);J[a+24>>2]=J[a+24>>2]+c}}function fRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=J[a+28>>2];d=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a:{if(R(d)<2147483648){b=~~d;break a}b=-2147483648}O[c+464>>3]=b|0;a=J[a+8>>2];gc[J[J[a>>2]+84>>2]](a,c)}function Kc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+20>>2]=f;J[a+16>>2]=d;J[a+12>>2]=e;J[a+8>>2]=c;J[a>>2]=2411688;if(!(!b|(b|0)==2382582))b=ff(rc(Qc(b)+1|0),b);J[a+ -4>>2]=b;return a|0}function Dwb(a){a=a|0;var b=0,c=0;J[a>>2]=212552;b=J[a+4>>2];if(b){a:{if(J[b>>2]!=2)break a;c=J[b+4>>2];if(!c)break a;qc(c)}qc(b)}b=a+4|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;return a|0}function uxa(a){a=a|0;var b=0;b=rc(40);J[b+32>>2]=0;J[b+24>>2]=-1717986918;J[b+28>>2]=1073846681;J[b+16>>2]=24;J[b+20>>2]=300;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2405340;J[b+4>>2]=0;J[a>>2]=0;md(a,b)}function nwb(a){a=a|0;var b=0,c=0;J[a>>2]=212608;J[695492]=0;b=a+4|0;_(21,b|0);c=J[695492]; -J[695492]=0;if((c|0)==1){ea(0)|0;yc();B()}J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;ve(b);qc(a)}function daa(a,b,c){a=a|0;b=b|0;c=c|0;a:{b:switch(c|0){case 1:b=J[a+12>>2]+b|0;break a;default:ra();B();case 0:break a;case 2:break b}b=J[a+8>>2]-b|0}if((b|0)<0)return-1;J[a+12>>2]=b;return b|0}function Yjb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=3;c=J[a+32>>2];a:{if(!c)break a;d=J[c+364>>2];if(!d)break a;b=160;if(K[d+557|0])break a;e=c,f=sl(a,J[J[a+16>>2]>>2]),J[e+360>>2]=f;b=0}return b|0}function Jt(a, -b,c,d){var e=0,f=0;e=bc-16|0;bc=e;a:{if((mK(a,b,0,0,0,0,e+12|0,d,1)|0)<2)break a;a=J[e+12>>2];b=a>>>24&31;if(b>>>0>3)break a;J[c>>2]=a&16777215;f=(a|0)<0?b:0-b|0}bc=e+16|0;return f}function FUa(a){a=a|0;if(H[a+383|0]<0)qc(J[a+372>>2]);if(H[a+371|0]<0)qc(J[a+360>>2]);if(H[a+359|0]<0)qc(J[a+348>>2]);if(H[a+347|0]<0)qc(J[a+336>>2]);if(H[a+335|0]<0)qc(J[a+324>>2]);qc(em(a))}function FSa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+12>>2]=8;J[a+16>>2]=0;J[a>>2]=b;c=a,d=vd(8,32),J[c+4>>2]=d;b=vd((J[a+12>>2]<<1)-1| -0,4);J[a+8>>2]=b;wc(b,0,(J[a+12>>2]<<3)-4|0);J[a+20>>2]=1;return a|0}function DDa(a,b){a=a|0;b=b|0;var c=0;b=J[b+4>>2];if(b){a:{if(H[b+11|0]>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];break a}Re(a,J[b>>2],J[b+4>>2])}return}J[a>>2]=0;H[a+11|0]=0}function Cr(a,b,c,d,e){if(b)J[b>>2]=0;if(c)J[c>>2]=0;if(d)J[d>>2]=0;if(e)J[e>>2]=0;if(!a)return;if(b)J[b>>2]=J[a>>2];if(c)J[c>>2]=J[a+4>>2];if(d)J[d>>2]=J[a+8>>2];if(e)J[e>>2]=J[a+12>>2]}function xz(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!c)break a; -if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break a;if((c|0)>0)return kd(a,b,c)|0;return Ec(a,b)|0}if(!b)break a;d=K[b|0]?-1:0}return d|0}function uQ(a){var b=0,c=0,d=0;if(!a)return 0;d=2617840;a:{if(a){while(1){b=d;c=J[b>>2];if(c){d=b+4|0;if((a|0)!=(c|0))continue}break}a=c?b:0;break a}a=(Ve(2617840)<<2)+2617840|0}return(a|0)!=0}function job(a){a=a|0;var b=0,c=0,d=0;b=J[a+960>>2];if(b)qc(b);J[a+376>>2]=0;J[a+380>>2]=0;b=J[a+16>>2];J[a+372>>2]=b;c=J[a+20>>2];J[a+384>>2]=c;d=a;a=bd(P(b,c),1);J[d+960>>2]=a; -return(a|0)!=0|0}function gla(a,b){a=a|0;b=b|0;var c=0;c=rc(16);J[c+8>>2]=J[b>>2];b=J[b+4>>2];J[c+12>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[c>>2]=a;b=J[a+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+4>>2]=c;J[a+8>>2]=J[a+8>>2]+1}function g_a(a){a=a|0;var b=0,c=0;a=J[a+4>>2];a:{if(!J[a+4>>2])break a;while(1){c=(b|0)==1;if(c)break a;if((_q(J[a+4>>2])|0)!=1)break a;b=Bt(J[a+4>>2]);if((b|0)!=-1)continue;break}}return c|0}function __(a){var b=0,c=0;if(a){J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(b){c=J[b+40>>2];if(c){gc[c| -0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39181;J[b+16>>2]=39181}J[a+84>>2]=111}}function LK(a){var b=0,c=0;a:{if(K[a+12|0])break a;b=J[J[a+8>>2]>>2];c=J[J[a+4>>2]>>2];if((b|0)==(c|0))break a;while(1){a=b-12|0;if(H[b-1|0]<0)qc(J[a>>2]);b=a;if((a|0)!=(c|0))continue;break}}}function Jz(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(J[b+4>>2]<=(c|0))break a;d=J[b+8>>2];if(!d)break a;while(1){if(c){c=c-1|0;d=J[d>>2];if(d)continue;break a}break}e=d}J[a+4>>2]=b;J[a>>2]=e}function Fz(a){a=a|0;J[a+ -32>>2]=0;J[a+36>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=0;J[a+4>>2]=0;J[a+48>>2]=1;J[a+40>>2]=1;J[a+44>>2]=0;J[a+24>>2]=1;J[a+28>>2]=1;return a|0}function zra(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=bc-32|0;bc=a;a=Kc(a+8|0,2376765,2374197,1377,2420372,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)B();b=Z()|0;Fc(a);ba(b|0);B()}function rc(a){a=a|0;var b=0;a=a>>>0<=1?1:a;a:{while(1){b=zc(a);if(b)break a;b=J[696022];if(b){gc[b|0]();continue}break}a=jk(4);J[a>>2]= -2626404;J[a>>2]=2626364;xa(a|0,2626480,32);B()}return b|0}function rWa(a,b){a=a|0;b=b|0;var c=0;if(K[a+204|0])H[a+205|0]=1;H[a+202|0]=0;b=J[a+212>>2];c=b-1|0;J[a+212>>2]=c;if(c){b=b-2|0;b=J[J[a+208>>2]+(b>>>3&536870908)>>2]>>>b&1}else b=0;H[a+204|0]=b}function qn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!a|!(K[a+8|0]&8))break a;c=J[a+96>>2];d=J[J[c>>2]+32>>2];if(!d)break a;c=gc[d|0](c,240320)|0;if(!c)break a;e=gc[J[c+4>>2]](a,b)|0}return e|0}function p6a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=0;d=Dzb(J[694792], -J[694793],1284865837,1481765933);a=fc;d=d+1|0;a=d?a:a+1|0;J[694792]=d;J[694793]=a;return Q(Q(Q(a>>>1|0)*Q(4.6566128730773926E-10)))}function gn(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0;d=bc-16|0;bc=d;a=J[a+4>>2];J[d+12>>2]=0;f=Ke(a,d+12|0),g=2,H[f|0]=g;e=J[d+12>>2];O[e+8>>3]=c;O[e>>3]=b;J[a>>2]=J[a>>2]+1;bc=d+16|0;return 0}function Sk(a,b){var c=0,d=0;c=J[b>>2];d=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;b=J[a+4>>2];J[a>>2]=c;J[a+4>>2]=d;a:{if(!b)break a;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break a;gc[J[J[b>>2]+ -8>>2]](b);Vc(b)}}function Qkb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b>>2];J[b>>2]=0;if(c>>>0>254)return 0;while(1){if((c|0)==255)return 0;c=c+1|0;d=L[J[a+16>>2]+(c<<1)>>1];if(!d)continue;break}J[b>>2]=c;return d|0}function y9(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;d=K[a+12|0];J[c+4>>2]=J[a+16>>2];J[c>>2]=d;cd(b,210163,c);if(J[a+16>>2]){Td(210252,7,1,b);M9(b,J[a+20>>2],J[a+16>>2])}bc=c+16|0;return 0}function sfb(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];if((b|0)<0){b=J[c+108>>2];if(!(J[c+104>>2]<3?b:0)){gc[J[c+ -8>>2]](a);b=J[c+108>>2]}J[c+108>>2]=b+1;return}if(J[c+104>>2]>=(b|0))gc[J[c+8>>2]](a)}function jlb(a){a=a|0;J[a+24>>2]=500;J[a+28>>2]=400;I[a+20>>1]=256;J[a+12>>2]=86;J[a+16>>2]=30;J[a+48>>2]=2333;J[a+52>>2]=0;J[a+40>>2]=1667;J[a+44>>2]=275;J[a+32>>2]=1E3;J[a+36>>2]=275;return 0}function jH(a,b){var c=0,d=0,e=0;c=bc-16|0;bc=c;J[c+12>>2]=0;J[c+8>>2]=0;a:{if(!kH(a,b,c+12|0,c+8|0))break a;d=b;b=J[c+8>>2];if(K[a+b|0]?(d|0)!=(b|0):0)break a;e=J[c+12>>2]}bc=c+16|0;return e}function Zg(a,b,c,d,e){a=a|0; -b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=b;b=J[a>>2];a:{if((f|0)!=(f&b)|((b^-1)&c)!=(c|0))break a;g=1;c=b;b=(b|d)&(e^-1);if((c|0)==(b|0))break a;J[a>>2]=b}return g|0}function ZUa(a,b){a=a|0;b=b|0;var c=0,d=0;we(b,10);c=K[a+31|0];d=c<<24>>24<0;jf(b,d?J[a+20>>2]:a+20|0,d?J[a+24>>2]:c);if(J[a+16>>2]){we(b,1);a=J[a+16>>2];gc[J[J[a>>2]+8>>2]](a,b);return}we(b,0)}function YUa(a,b){a=a|0;b=b|0;var c=0,d=0;we(b,14);c=K[a+31|0];d=c<<24>>24<0;jf(b,d?J[a+20>>2]:a+20|0,d?J[a+24>>2]:c);if(J[a+16>>2]){we(b,1);a=J[a+ -16>>2];gc[J[J[a>>2]+8>>2]](a,b);return}we(b,0)}function Ut(a){a=J[a>>2];J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=1072693248;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+32>>2]=0;J[a+36>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0}function NNa(a){a=a|0;var b=0;b=J[a+236>>2];if(b>>>0<=7){LY(a);b=J[a+236>>2]}if((b|0)==8)return K[a+232|0];if(b>>>0>=9)return J[a+232>>2]>>>b-8&255;if(!b)return-1;return J[a+232>>2]<<8-b&255}function vab(a,b){a=a|0;b=b|0;b=J[b>>2];J[a+632>>2]=b;a:{if((b|0)!=20480){if((b| -0)!=12288){if((b|0)!=1)break a;return gc[J[J[a>>2]+20>>2]](a)|0}vC(J[a+16>>2]);return 0}vC(J[a+16>>2])}return 0}function oEa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;b=Bm(c,b,0,An(b,47)+1|0,c+15|0);J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;bc=c+16|0}function iH(a,b){var c=0;a:{b:{if(!a|!b)break b;c=V(1E15/+(a|0)/+(b|0)+.5);b=c<=2147483647;if(R(c)<2147483648)a=~~c;else a=-2147483648;if(!b)break b;if(c>=-2147483648)break a}a=0}return a}function h6(a, -b){var c=0,d=0;J[a+16>>2]=1651;J[a+12>>2]=1652;J[a+8>>2]=0;J[a>>2]=80;J[a+4>>2]=241;b=gc[J[b+4>>2]](b,964)|0;if(!b){J[a+20>>2]=b;return 64}c=a,d=wc(b,0,964),J[c+20>>2]=d;return 0}function bM(a,b){var c=0;c=35;a:{if(!a|!(K[a+8|0]&2))break a;c=6;if((b|0)<0|J[a+28>>2]<=(b|0))break a;c=J[J[J[a+96>>2]+12>>2]+92>>2];if(c)return gc[c|0](J[a+88>>2],b)|0;rn(a,b);c=0}return c}function _Ua(a,b){a=a|0;b=b|0;var c=0,d=0;we(b,6);c=K[a+31|0];d=c<<24>>24<0;jf(b,d?J[a+20>>2]:a+20|0,d?J[a+24>>2]:c);if(J[a+16>>2]){we(b, -1);a=J[a+16>>2];gc[J[J[a>>2]+8>>2]](a,b);return}we(b,0)}function Jfa(){var a=0,b=0;a:{J[695893]=0;J[695892]=2624824;J[695892]=2619664;J[695892]=2619288;J[695492]=0;a=pa(6638)|0;b=J[695492];J[695492]=0;if((b|0)!=1){J[695894]=a;break a}ba(Z()|0);B()}}function qf(a,b){a=a|0;b=b|0;J[a>>2]=1032;wc(a+4|0,0,972);H[a+388|0]=255;J[a+344>>2]=1119092736;J[a+68>>2]=b;H[a+390|0]=1;J[a+336>>2]=-1;H[a+348|0]=1;wm(a,96);fq(a,96);H[a+494|0]=1;return a|0}function nyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=bc-16|0; -bc=c;d=K[a+20|0];e=J[a+16>>2];f=J[a+12>>2];J[c+12>>2]=K[a+21|0];J[c+8>>2]=d;J[c>>2]=f;J[c+4>>2]=e;cd(b,208790,c);bc=c+16|0;return 0}function cf(a,b,c){var d=0;a:{if((c|0)>=0){d=J[a>>2];if((d|0)<=(c^2147483647))break a}Th(776382);d=J[a>>2]}kh(a,c+d|0);tc(J[a+4>>2]+J[a>>2]|0,b,c);b=J[a>>2]+c|0;J[a>>2]=b;H[b+J[a+4>>2]|0]=0}function Zi(a){var b=0,c=0;c=J[a+4>>2];b=0-J[a+28>>2]|0;a:{if(c&16)break a;b=0;if(!(c&32))break a;b=J[a+24>>2]-J[a+16>>2]|0}a=gc[J[J[a+52>>2]+8>>2]](J[a+56>>2],0,1)|0;return(a|0)< -0?-1:b+a|0}function Nma(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+12>>2];d=J[c+100>>2];if(d){gc[J[J[d>>2]+12>>2]](d)|0;c=J[a+12>>2];J[c+100>>2]=0}if(!b)return 1;J[c+100>>2]=b;gc[J[J[b>>2]+8>>2]](b)|0;return 0}function Je(a){var b=0;if(!(!a|!K[a+17|0]))a:{b=J[a+4>>2];if(b){b=b-1|0;J[a+4>>2]=b;if(b)break a}if(K[a+16|0])break a;b=J[J[a+20>>2]+8>>2];if(b)gc[b|0](a);b=J[a+8>>2];if(b)Ih(b);Gf(a)}}function Ixa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=rc(72);J[695492]=0;b=ha(5381,e|0,b|0,c|0,d|0)|0;c=J[695492]; -J[695492]=0;if((c|0)!=1){J[a>>2]=0;md(a,b);return}a=Z()|0;qc(e);ba(a|0);B()}function GP(a,b,c,d,e){var f=0;f=bc-16|0;bc=f;J[f+12>>2]=e;e=Gl(f+8|0,f+12|0);J[695492]=0;a=ns(a,b,c,d);b=J[695492];J[695492]=0;if((b|0)!=1){Mh(e);bc=f+16|0;return a}a=Z()|0;Mh(e);ba(a|0);B()}function xma(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;var h=0;h=bc-16|0;bc=h;a=J[a+12>>2];J[h+12>>2]=J[b>>2];J[h+8>>2]=J[c>>2];fz(a,h+12|0,h+8|0,1,d,e,f,g);bc=h+16|0;return 0}function uX(a){var b=0,c=0,d=0;b=J[a>>2];if(b){c= -b;d=J[a+4>>2];if((b|0)!=(d|0)){while(1){c=d-56|0;if(H[d-45|0]<0)qc(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[a>>2]}J[a+4>>2]=b;qc(c)}}function np(a){var b=0,c=0;b=bc-16|0;bc=b;H[b+14|0]=0;c=65535;a:{if(!a)break a;c=65535;if((Yd(b+14|0,1,2,a)|0)!=2)break a;a=K[b+14|0]|K[b+15|0]<<8;c=a<<8|a>>>8}a=c;bc=b+16|0;return a&65535}function iO(a){var b=0,c=0,d=0,e=0;c=-1;d=J[682417];a:{if((d|0)<=0)break a;b=2729680;while(1){if(Ec(J[b+4>>2],a)){b=b+28|0;e=e+1|0;if((d|0)!=(e|0))continue;break a}break}c= -J[b>>2]}return c}function bg(a,b){var c=0,d=0;c=85;a:{if((b|0)<0)break a;b=J[a+8>>2]+b|0;d=J[a+20>>2];b:{if(d){if(!(gc[d|0](a,b,0,0)|0))break b;break a}if(b>>>0>M[a+4>>2])break a}J[a+8>>2]=b;c=0}return c}function XKa(a){a=a|0;var b=0,c=0;c=-1;a:{if(J[a+16>>2])break a;b=J[a+53312>>2];if((b|0)>=J[a+53308>>2]){if(!GA(a))break a;b=J[a+53312>>2]}J[a+53312>>2]=b+1;c=K[(a+b|0)+49208|0]}return c|0}function Vea(a,b){a=a|0;b=b|0;var c=0;b=bc-16|0;bc=b;c=1;a:{if(!py(a))break a;if(!Jm(a,95408,1)){Nc(J[a+628>> -2],71242,71779,0);c=0;break a}J[b>>2]=1;c=$d(a,65536,b)}a=c;bc=b+16|0;return a|0}function UN(a,b){a=a|0;b=b|0;var c=0;a:{if(L[b+26>>1]>23)break a;c=J[b+336>>2];if((c|0)<0)break a;ug(a,b,c&255);return}b=J[b+340>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24}function U1(a){var b=0;a:{if(J[a+124>>2])break a;b=a+72|0;Nw(b,J[a+120>>2]!=0);jC(b,O[a+112>>3],J[a+120>>2]);if(M[a+72>>2]>2)break a;J[a+120>>2]=0}J[a+132>>2]=0;J[a+136>>2]=0;J[a+124>>2]=1}function y1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d= -d|0;a=0;a:{if(K[d+4|0]|L[d>>1]<20|(K[d+5|0]|K[d+8|0]!=67))break a;if(K[d+9|0]!=118|K[d+10|0]!=65|K[d+11|0]!=108)break a;a=K[d+12|0]==3}return a|0}function v1a(a){a=a|0;var b=0;if(J[a>>2]<=0){b=Wh(28);if(!b){J[a>>2]=7;return 0}J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=-1;J[b+16>>2]=0;J[b+20>>2]=0;H[b+12|0]=1}return b|0}function sg(a){var b=0,c=0,d=0;b=J[a>>2];if(b){c=b;d=J[a+4>>2];if((b|0)!=(d|0)){while(1){c=d-12|0;if(H[d-1|0]<0)qc(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[a>> -2]}J[a+4>>2]=b;qc(c)}}function qO(a){var b=0;b=J[a+584>>2];if(!b){fa(69708,70388,718,197492);B()}J[a+672>>2]=J[b+44>>2];J[a+668>>2]=J[b+48>>2];J[a+676>>2]=J[b+52>>2];J[a+516>>2]=J[b+56>>2];J[a+524>>2]=J[b+60>>2]}function q4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;if(J[a+8>>2]){J[e+12>>2]=J[b>>2];b=a+16|0;RK(b,e+12|0,N[c>>2],N[d>>2]);c2(J[a+8>>2],b);a=1}else a=0;bc=e+16|0;return a|0}function mm(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[695492]=0;ca(2852,b|0,c|0, -a|0);b=J[695492];J[695492]=0;if((b|0)==1){b=Z()|0;if(H[a+11|0]<0)qc(J[a>>2]);ba(b|0);B()}}function lI(a,b,c){var d=0,e=0;d=(c-b>>>1|0)+b|0;e=J[(d<<2)+a>>2];if(b+1>>>0<=d>>>0)b=lI(a,b,d-1|0);else b=0;J[e+8>>2]=b;b=d+1|0;if(b>>>0<=c>>>0)a=lI(a,b,c);else a=0;J[e+12>>2]=a;return e}function dsa(a){a=a|0;var b=0;J[a>>2]=2414996;a:{while(1){if(!J[a+24>>2])break a;J[695492]=0;_(5162,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}ea(0)|0;yc();B()}return QG(a)|0}function mo(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;a=J[a>>2];O[a>>3]=O[b>>3];O[a+8>>3]=O[c>>3];O[a+16>>3]=O[d>>3];O[a+24>>3]=O[e>>3];O[a+32>>3]=O[f>>3];O[a+40>>3]=O[g>>3]}function jja(a){a=a|0;var b=0,c=0;b=J[a+584>>2];if(b){J[a+672>>2]=J[b+24>>2];J[a+668>>2]=J[b+28>>2];c=J[b+12>>2];if(c)qc(c);qc(b);J[a+584>>2]=0;Bq(a);return}fa(81206,70356,1469,93982);B()}function eR(a,b,c,d){a:{if(!a)break a;b:switch(b+2|0){case 0:H[a|0]=c;return;case 1:I[a>>1]=c;return;case 2:case 3:J[a>>2]=c;return;case 5:break b;default:break a}J[a>> -2]=c;J[a+4>>2]=d}}function baa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a>>2];a=bc-16|0;bc=a;J[a+12>>2]=c;J[a+8>>2]=b;b=Za(d|0,a+8|0,1,a+4|0)|0;if(b){J[694731]=b;b=-1}else b=0;bc=a+16|0;return(b?-1:J[a+4>>2])|0}function aaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a>>2];a=bc-16|0;bc=a;J[a+12>>2]=c;J[a+8>>2]=b;b=Na(d|0,a+8|0,1,a+4|0)|0;if(b){J[694731]=b;b=-1}else b=0;bc=a+16|0;return(b?-1:J[a+4>>2])|0}function YIa(a){a=a|0;var b=0;J[a>>2]=2336504;b=J[a+20>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+ -12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function VIa(a){a=a|0;var b=0;J[a>>2]=2336568;b=J[a+20>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function Up(a,b,c,d,e){a:{if(!e|(!c|!d))break a;J[e>>2]=0;J[d>>2]=0;J[c>>2]=0;if(!a|(b|0)<0|J[a+12>>2]<=(b|0))break a;a=J[a>>2]+(b<<2)|0;J[c>>2]=K[a+2|0];J[d>>2]=K[a+1|0];J[e>>2]=K[a|0]}}function MIa(a){a=a|0;var b=0;J[a>>2]=2336760; -b=J[a+20>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function Ij(a,b){var c=0,d=0;c=-1;d=J[a+24>>2];if(!(!d|J[a+12>>2]==(d|0))){c=d-1|0;J[a+24>>2]=c;J[a+8>>2]=J[a+8>>2]&-2;J[a+60>>2]=J[a+60>>2]-1;J[a+28>>2]=J[a+28>>2]+1;H[c|0]=b;c=0}return c}function Gaa(a,b){a=a|0;b=b|0;b=J[a+584>>2];if(b){if(!(H[b+124|0]&1))gc[J[a+516>>2]](a)|0;J[b+64>>2]=J[a+596>>2];J[b+68>>2]=J[a+608>>2];return!Jw(b- -64|0)|0}fa(73278,70424, -119,98016);B()}function Fkb(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[J[b+712>>2]+3080>>2];a:{if(!c)break a;b=gh(J[J[b+96>>2]+4>>2],241698);if(!b)break a;b=gc[J[c+8>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function CF(a){var b=0;b=J[a+72>>2];J[a+72>>2]=b-1|b;b=J[a>>2];if(b&8){J[a>>2]=b|32;return-1}J[a+4>>2]=0;J[a+8>>2]=0;b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;J[a+16>>2]=b+J[a+48>>2];return 0}function yl(a,b,c){var d=0,e=0;if(!a)return 0;d=J[a>>2];a:{b:{if((c|0)<=0){if(d)break b;break a}e=bd(1,c);if(!d)break a; -if(!e)return 0;tc(e,d,(b|0)<(c|0)?b:c)}qc(d);J[a>>2]=0}return e}function wu(a){var b=0;a:{b=J[a+16>>2];b:{if(b&1){cE(a,0,0);break b}if(!(b&2))break a;Sx(a,0)}c:{if(H[a|0]&1)break c;b=J[a+12>>2];if(!b)break c;If(b);J[a+12>>2]=0}qc(a);return}ra();B()}function ndb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+420>>2];a:{if((c|0)>0){d=J[a+424>>2];a=0;while(1){if(!Ec(b,J[(a<<2)+d>>2]))break a;a=a+1|0;if((c|0)!=(a|0))continue;break}}a=0}return a|0}function hF(a,b,c,d,e,f,g,h,i){var j=0;j=bc-16|0;bc=j;rj(j,b,c,d,e, -f,g,h,i^-2147483648);d=J[j>>2];c=J[j+4>>2];b=J[j+12>>2];J[a+8>>2]=J[j+8>>2];J[a+12>>2]=b;J[a>>2]=d;J[a+4>>2]=c;bc=j+16|0}function gm(a){a=a|0;var b=0;if(!a)return-1;if(!J[a+64>>2])return 0;b=J[a+68>>2];if(b){b=J[b+4>>2]-2|0;if(!((b|0)!=16?b:0))return J[a+72>>2]+1|0;return J[a+72>>2]+2|0}return J[a+72>>2]}function OE(a,b,c,d){var e=0;e=bc-16|0;bc=e;J[e+12>>2]=d;d=Gl(e+8|0,e+12|0);J[695492]=0;a=Iy(a,b,c);b=J[695492];J[695492]=0;if((b|0)!=1){Mh(d);bc=e+16|0;return a}a=Z()|0;Mh(d);ba(a|0);B()}function Dh(a, -b){a=a|0;b=b|0;var c=0,d=0;d=J[a>>2];c=J[b>>2];if((d|0)>(c^2147483647)){Th(776382);d=J[a>>2]}kh(a,c+d|0);tc(J[a+4>>2]+J[a>>2]|0,J[b+4>>2],c+1|0);J[a>>2]=J[a>>2]+c;return a|0}function Baa(a,b){a=a|0;b=b|0;b=J[a+584>>2];if(b){if(J[b+124>>2]!=2)gc[J[a+524>>2]](a)|0;J[b+76>>2]=J[a+596>>2];J[b+80>>2]=J[a+600>>2];return!eK(b- -64|0)|0}fa(73278,70424,198,98054);B()}function yg(a,b){var c=0;a:{c=J[a+12>>2];if((c|0)==(J[a+8>>2]+(J[a+16>>2]<<3)|0)){a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=130;return}J[c>> -2]=b;b=J[a+12>>2];J[b+4>>2]=0;J[a+12>>2]=b+8}}function wcb(a){a=a|0;var b=0,c=0,d=0;c=bc-16|0;bc=c;d=$5(J[J[a>>2]+504>>2],c+12|0);b=a;a=J[c+12>>2];J[b+44>>2]=a;if(a){b=J[a>>2];if(!(!b|!J[b+96>>2]))J[b+88>>2]=a}bc=c+16|0;return d|0}function pja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=J[a+84>>2];d=c+256|0;f=pg(e,0,d);d=f?f-e|0:d;c=c>>>0>d>>>0?d:c;tc(b,e,c);b=e+d|0;J[a+84>>2]=b;J[a+8>>2]=b;J[a+4>>2]=c+e;return c|0}function kda(a,b){a=a|0;b=b|0;J[a>>2]=2626404;J[a>>2]=2626532;if(K[b+11|0]>>>7|0)b= -J[b>>2];J[695492]=0;aa(7029,a+4|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ba(Z()|0);B()}function i3a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b2(J[d>>2],+J[a>>2]*.015625,+J[a+4>>2]*.015625,+J[b>>2]*.015625,+J[b+4>>2]*.015625,+J[c>>2]*.015625,+J[c+4>>2]*.015625);J[d+4>>2]=1;return 0}function cu(a,b){var c=0;a:{c=J[a+12>>2];if((c|0)==(J[a+8>>2]+(J[a+16>>2]<<3)|0)){a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=130;return}J[c>>2]=b;b=J[a+12>>2];J[b+4>>2]=2;J[a+12>>2]=b+8}}function YBa(a,b,c){a=a|0; -b=b|0;c=c|0;a=bc-32|0;bc=a;a=Kc(a+8|0,2380789,2375807,1745,2385681,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)B();b=Z()|0;Fc(a);ba(b|0);B()}function WQa(a,b){a=a|0;b=b|0;var c=0;if(!J[a+208>>2]){c=J[a+392>>2];J[c+20>>2]=b;J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(!b){J[c+4>>2]=489;return}b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}}function NT(a,b){var c=0;pG(a,b,b+4|0);pG(a,b+8|0,b+12|0);a=J[b>>2];c=J[b+8>>2];if((a|0)>=(c|0)){J[b+8>>2]=a;J[b>>2]=c}a=J[b+4>>2];c=J[b+12>>2];if((a|0)>= -(c|0)){J[b+4>>2]=c;J[b+12>>2]=a}}function NF(a,b){a=a|0;b=b|0;if((a|0)!=(b|0)){O[a+32>>3]=O[b+32>>3];O[a+8>>3]=O[b+8>>3];O[a+48>>3]=O[b+48>>3];O[a+24>>3]=O[b+24>>3];O[a+16>>3]=O[b+16>>3];O[a+40>>3]=O[b+40>>3]}return a|0}function Kkb(a,b){a=a|0;b=b|0;var c=0;c=rl(255296,b);a:{if(c)break a;c=0;if(!a)break a;a=J[a+4>>2];if(!a)break a;a=gh(a,239693);if(!a)break a;c=gc[J[J[a>>2]+32>>2]](a,b)|0}return c|0}function KD(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(!b)break a;d=J[a+4>>2];if(!d)break a;e= -J[a+44>>2];if(!e)break a;f=b;b=e<<2;c=c<<2;tc(d+40|0,f,b>>>0>>0?b:c);H[a+481|0]=0}}function Cs(a,b){var c=0;qG(a,b,b+4|0);qG(a,b+8|0,b+12|0);a=J[b>>2];c=J[b+8>>2];if((a|0)>=(c|0)){J[b+8>>2]=a;J[b>>2]=c}a=J[b+4>>2];c=J[b+12>>2];if((a|0)>=(c|0)){J[b+4>>2]=c;J[b+12>>2]=a}}function CJ(a,b){var c=0,d=0;a:{if(!a|!b)break a;d=K[a|0];if((d|0)==58)break a;while(1){if(!d)return 0;if((d|0)!=58){c=c+1|0;d=K[c+a|0];continue}break}J[b>>2]=c;c=(a+c|0)+1|0}return c}function Bra(a,b,c){a=a|0;b=b|0;c=c|0;a=bc-32| -0;bc=a;a=Kc(a+8|0,2376765,2374197,1370,2420296,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)B();b=Z()|0;Fc(a);ba(b|0);B()}function tz(a){var b=0,c=0;c=J[a+28>>2];a:{if((c+16|0)<=4080){b=J[a+24>>2];break a}b=rc(8164);J[b>>2]=J[a+24>>2];c=0;wc(b+4|0,0,8160);J[a+24>>2]=b}J[a+28>>2]=c+16;return((c<<1)+b|0)+4|0}function hjb(a){a=a|0;var b=0;b=J[a+4>>2];J[b+180>>2]=-21;J[b+184>>2]=0;J[b+196>>2]=21;J[b+200>>2]=0;J[b+188>>2]=0;J[b+192>>2]=0;gc[J[J[J[a+12>>2]+56>>2]+8>>2]](J[a+52>>2],0,0); -return 0}function SCa(a,b,c){a=a|0;b=b|0;c=c|0;a=bc-32|0;bc=a;a=Kc(a+8|0,2376067,2375204,333,2384480,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)B();b=Z()|0;Fc(a);ba(b|0);B()}function R_(a){var b=0;b=a;a=gc[J[J[a+4>>2]>>2]](a,1,32)|0;J[b+404>>2]=a;J[a+28>>2]=0;J[a+24>>2]=413;J[a+20>>2]=414;J[a+16>>2]=415;J[a+12>>2]=416;J[a+8>>2]=417;J[a+4>>2]=418;J[a>>2]=419}function RCa(a,b,c){a=a|0;b=b|0;c=c|0;a=bc-32|0;bc=a;a=Kc(a+8|0,2376608,2375204,340,2384528,0);J[695492]=0;_(5019,a|0);b= -J[695492];J[695492]=0;if((b|0)!=1)B();b=Z()|0;Fc(a);ba(b|0);B()}function Pkb(a,b){a=a|0;b=b|0;var c=0,d=0;b=J[a>>2];c=J[b+712>>2];if(!J[c+1188>>2])return 163;d=J[J[c+3084>>2]+4>>2];if(!d)return 7;return gc[d|0](J[b+100>>2],a,J[c+20>>2],1648,0,b)|0}function N5a(a){a=a|0;var b=0;J[a+4>>2]=0;J[a>>2]=349524;b=rc(28);J[b+4>>2]=0;J[b+8>>2]=0;H[b+2|0]=0;I[b>>1]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[a+8>>2]=b;return a|0}function N$(a){var b=0,c=0,d=0;d=-1;a:{if(!a)break a;b=J[a+64>>2];if(!b)break a; -d=0;if(J[b+4>>2]!=1)break a;c=J[b+48>>2];if(!c){c=J[b+44>>2];if(!c)break a}J[a+68>>2]=c;d=1}return d}function JDa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=2373264;c=rc(20);J[695492]=0;b=aa(4984,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+4>>2]=b;return a|0}a=Z()|0;qc(c);ba(a|0);B()}function Fxb(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;if(J[a+16>>2])while(1){J[c>>2]=K[J[a+12>>2]+d|0];cd(b,210413,c);d=d+1|0;if(d>>>0>2])continue;break}bc=c+16|0;return 0}function Ega(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;g=bc-16|0;bc=g;J[g+8>>2]=624576549;J[g+12>>2]=1394948685;h=a;a=g+16|0;b=En(h,b,c,d,e,f,g+8|0,a);bc=a;return b|0}function Ec(a,b){var c=0,d=0;c=K[a|0];d=K[b|0];a:{if(!c|(c|0)!=(d|0))break a;while(1){d=K[b+1|0];c=K[a+1|0];if(!c)break a;b=b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break}}return c-d|0}function EWa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;if(!K[a+204|0]){if(J[b+592>>2]>=4)gc[J[J[a>>2]+156>>2]](a,b);a=J[a+104>>2];J[c+12>>2]=2;gc[J[J[a>>2]+312>>2]](a, -c+12|0)|0}bc=c+16|0}function Bv(a){var b=0,c=0;a:{b:{if(!a)break b;b=V(1E10/+(a|0)+.5);c=b<=2147483647;if(R(b)<2147483648)a=~~b;else a=-2147483648;if(!c)break b;if(b>=-2147483648)break a}a=0}return a}function BGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=-1;e=J[c+8>>2];f=J[c+4>>2];if(e>>>0>>0){g=a;a=f-e|0;d=a>>>0>>0?a:b;tc(g,J[c>>2]+e|0,d);J[c+8>>2]=J[c+8>>2]+d}return d|0}function AGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=-1;e=J[c+8>>2];f=J[c+4>>2];if(e>>>0>>0){g=a;a=f-e|0; -d=a>>>0>>0?a:b;tc(J[c>>2]+e|0,g,d);J[c+8>>2]=J[c+8>>2]+d}return d|0}function yNa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=2307584;c=rc(8);J[695492]=0;b=aa(3182,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+4>>2]=b;return a|0}a=Z()|0;qc(c);ba(a|0);B()}function gu(a,b){var c=0,d=0;d=J[a+4>>2];c=J[a+12>>2];c=(c|0)<0?(c|0)<(d|0)?d:c:d-c|0;if(!b)b=(P(c,12)|0)/10|0;J[a+28>>2]=b;J[a+24>>2]=(b-c|0)/2;J[a+20>>2]=J[a+8>>2]+(J[a+16>>2]/-2|0)}function csa(a){a=a|0;var b=0;J[a>>2]=2414996;a:{while(1){if(!J[a+ -24>>2])break a;J[695492]=0;_(5162,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)continue;break}ea(0)|0;yc();B()}qc(QG(a))}function aC(a){var b=0;a:{if(!a)break a;b=J[a+4>>2];if(b){b=b-1|0;J[a+4>>2]=b;if(b)break a}if(K[a+16|0])break a;b=J[J[a+20>>2]+8>>2];if(b)gc[b|0](a);b=J[a+8>>2];if(b)Ih(b);Gf(a)}}function YX(a,b,c){var d=0,e=0;d=J[b+52>>2];if(J[b>>2]!=2){if(J[d+8>>2]>0)while(1){YX(a,J[J[d>>2]+(e<<2)>>2],c);e=e+1|0;d=J[b+52>>2];if((e|0)>2])continue;break}return}KI(c,d)}function Uj(a,b,c){var d= -0;a:{if(b>>>0<=2147483644){d=b+3|0;if((d|0)>2])break a}J[c>>2]=0;return 0}c=b;b=J[a+8>>2];a=c+b|0;return(K[a+1|0]<<8|K[a|0]<<16|K[a+2|0])<<8|K[b+d|0]}function Ap(a,b){var c=0;c=bc-16|0;bc=c;a:{if(b){J[c>>2]=b;Cc(0,0,0,0,0,29,2,3,b,0,0,0,32863,c);break a}Cc(0,0,0,0,0,29,2,3,0,0,0,0,36013,0)}if(!(J[a+32>>2]|!a))J[a+32>>2]=2;bc=c+16|0}function r_(a){var b=0,c=0,d=0,e=0;c=J[a>>2];if((c|0)>0)while(1){e=J[a+4>>2]+d|0;b=K[e|0];if(b-65>>>0<26){H[e|0]=b-65>>>0<26?b|32:b;c=J[a>>2]}d=d+1|0;if((d|0)< -(c|0))continue;break}}function qh(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b=b+4|0}J[a+32>>2]=b;return c}function qeb(a,b){a=a|0;b=b|0;var c=0;J[a+116>>2]=b;c=J[a>>2];if(H[c+8|0]&1){rn(c,b);xL(a);return 0}b=gc[J[J[c+540>>2]+108>>2]](c,b,a+12|0)|0;if(!b)return 0;J[a+116>>2]=-1;return b|0}function jKa(a){a=a|0;var b=0;J[a>>2]=2332784;b=J[a+8>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1){b= -J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a);return}ea(0)|0;yc();B()}function YZa(a){a=a|0;var b=0;J[a>>2]=768116;b=J[a+4>>2];J[695492]=0;_(3076,b|0);b=J[695492];J[695492]=0;if((b|0)!=1){J[a+4>>2]=0;b=J[a+8>>2];if(b)qc(b);qc(a);return}ea(0)|0;yc();B()}function XIa(a){a=a|0;var b=0;J[a>>2]=2336504;b=J[a+20>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}qc(a)}function UIa(a){a=a|0;var b=0;J[a>>2]=2336568;b=J[a+20>>2];if(b)qc(Rc(b)); -J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}qc(a)}function OPa(a){a=a|0;var b=0;J[a>>2]=2206100;b=J[a+12>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function LIa(a){a=a|0;var b=0;J[a>>2]=2336760;b=J[a+20>>2];if(b)qc(Rc(b));J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}qc(a)}function KY(a,b){var c=0,d= -0;c=J[a+8>>2];c=gc[J[J[c>>2]+28>>2]](c)|0;a:{if((c|0)==-1)break a;a=J[a+8>>2];a=gc[J[J[a>>2]+28>>2]](a)|0;if((a|0)==-1)break a;J[b>>2]=a|c<<8;d=1}return d}function Jc(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;while(1){e=(d<<3)+b|0;f=J[e>>2];if(!f)break a;if((a|0)==(f|0))return J[e+4>>2];d=d+1|0;if((d|0)!=(c|0))continue;break}}return 0}function GMa(a,b,c,d,e,f,g,h,i){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;if(h){gc[J[J[d>>2]+20>>2]](d);gc[J[J[d>>2]+48>>2]](d,P((e+7|0)/8|0,f))|0;gc[J[J[d>> -2]+24>>2]](d)}}function EF(a,b,c){var d=0,e=0,f=0;a:{if(c)while(1){e=c>>>1|0;d=(e<<2)+b|0;f=RS(a,d);b:{if((f|0)<0){c=e;break b}if(!f)break a;b=d+4|0;c=(e^-1)+c|0}if(c)continue;break}d=0}return d}function Ac(a){var b=0,c=0;b=bc-16|0;bc=b;if((af(a,b+12|0,4)|0)==4){a=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);c=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}bc=b+16|0;return c}function ucb(a){a=a|0;var b=0,c=0,d=0;d=bc-16|0;bc=d;b=J[a+4>>2];c=J[b+504>>2];a:{if(!J[b+84>>2]){c=c+84|0;b=0;break a}b=c; -c=d+12|0;b=fM(b,c)}J[a+160>>2]=J[c>>2];bc=d+16|0;return b|0}function rea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=bc-16|0;bc=a;J[a+12>>2]=e;J[a+8>>2]=d-c;b=bc-16|0;bc=b;bc=b+16|0;bc=a+16|0;b=a+8|0;a=a+12|0;return J[(M[b>>2]>2]?b:a)>>2]}function SEa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+64>>2]=2369932;J[a>>2]=2369892;J[a+12>>2]=2369744;J[a+8>>2]=2369912;if(H[a+55|0]<0)qc(J[a+44>>2]);Nh(a+12|0);Uf(a- -64|0);return a|0}function OB(a){var b=0;if(a){b=J[a+12>>2];a:{b:{c:{if((b|0)==3){b=J[a+16>>2]; -if(!b)break c;break b}if((b|0)==2)break a}b=J[a>>2];if(!b)break a}gc[J[659451]](b)}gc[J[659451]](a)}}function IL(a){a=a|0;var b=0,c=0;b=J[a+8>>2];if(b){a=J[a+16>>2];c=J[a+4>>2];J[b+108>>2]=J[a>>2];J[b+112>>2]=c;J[b+124>>2]=J[a+16>>2];c=J[a+12>>2];J[b+116>>2]=J[a+8>>2];J[b+120>>2]=c}}function znb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1883789683){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];H[b+44|0]=K[c+44|0];return 0}function pKa(a,b,c,d){a=a|0;b=b|0;c= -c|0;d=d|0;var e=0;a:{if(J[a+8>>2]|(b|0)<3)break a;a=J[a+4>>2];a=gc[J[J[a>>2]+60>>2]](a,b,c,d)|0;if(!a)break a;od(od(a,c),822719);e=a}return e|0}function kKa(a){a=a|0;var b=0;J[a>>2]=2332784;b=J[a+8>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;yc();B()}function gnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1397247831){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];I[b+34>>1]=L[c+34>>1];I[b+36>>1]=L[c+36>>1];H[b+38|0]=K[c+38|0];return 0} -function fnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1413829197){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];return 0}function cfa(){var a=0;a:{J[695951]=0;J[695950]=2624824;J[695950]=2619664;J[695492]=0;$(6751,2783808)|0;a=J[695492];J[695492]=0;if((a|0)!=1){J[695950]=2622224;break a}ba(Z()|0);B()}}function afa(){var a=0;a:{J[695955]=0;J[695954]=2624824;J[695954]=2619664;J[695492]=0;$(6751,2783824)|0;a=J[695492];J[695492]=0;if((a|0)!= -1){J[695954]=2622380;break a}ba(Z()|0);B()}}function Y9(a){a=a|0;var b=0;b=J[a+32>>2];if(b){qc(b);J[a+32>>2]=0}J[a+36>>2]=0;b=J[a+40>>2];if(b){qc(b);J[a+40>>2]=0}J[a+44>>2]=0;b=J[a+48>>2];if(b){qc(b);J[a+48>>2]=0}J[a+52>>2]=0}function Oo(a){var b=0,c=0;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a=bc-16|0;bc=a;J[a+12>>2]=(c<<2)+b;bc=a+16|0;return J[a+12>>2]}function M0(a){a=a|0;var b=0,c=0;c=-102;a:{if(!a)break a;b=J[a+224>>2];if(!b)break a;c=J[b>>2]; -if(c)qc(c);c=0;J[b>>2]=0;if(J[b+72>>2]==8)kl(b+4|0);qc(b);J[a+224>>2]=0}return c|0}function $mb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1883521383){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];H[b+44|0]=K[c+44|0];return 0}function qqa(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+3312>>2];b=J[(a+(K[c|0]<<2)|0)+44>>2]+J[a+20>>2]|0;a:{if(b>>>0<=M[a+28>>2]){J[a+20>>2]=b;a=H[c|0]&1;break a}a=ah(a,c,b)}return(a|0)!=0|0}function mHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc- -16|0;bc=d;if(c)while(1){ld(a,d+12|0,2);N[b>>2]=M[d+12>>2];b=b+4|0;a=a+2|0;e=e+1|0;if((e|0)!=(c|0))continue;break}bc=d+16|0}function lHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;if(c)while(1){ld(a,d+12|0,4);N[b>>2]=M[d+12>>2];b=b+4|0;a=a+4|0;e=e+1|0;if((e|0)!=(c|0))continue;break}bc=d+16|0}function iHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;if(c)while(1){ld(a,d+12|0,2);J[b>>2]=J[d+12>>2];b=b+4|0;a=a+2|0;e=e+1|0;if((e|0)!=(c|0))continue;break}bc=d+16|0}function hHa(a,b,c){a= -a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;if(c)while(1){ld(a,d+12|0,4);J[b>>2]=J[d+12>>2];b=b+4|0;a=a+4|0;e=e+1|0;if((e|0)!=(c|0))continue;break}bc=d+16|0}function cZa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!a)return 0;d=J[a+36>>2];a:{if(d){d=J[d+4>>2];if(d)break a}d=J[a+180>>2]}c=Gt(c,d);a=LB(c,b,a);if(c)gc[J[659451]](c);return a|0}function _Ca(a){a=a|0;var b=0,c=0;b=gc[J[J[a>>2]+16>>2]](a)|0;if(!(gc[J[J[a>>2]+20>>2]](a,0,2,1)|0))return-1;c=gc[J[J[a>>2]+16>>2]](a)|0;gc[J[J[a>>2]+20>>2]](a,b,0,0)|0; -return c|0}function ZM(a){var b=0;a:{if(Ac(a))break a;a=Ac(a);if((a|0)!=1399614836){if((a|0)==1399210572)break a;if((a|0)==1349665356)return 1;fa(219530,219843,828,225203);B()}b=2}return b}function Lea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[(a<<2)+2618256>>2];else a=0;J[d>>2]=a;d=d+4|0;b=b+4|0;continue}break}return c|0}function u_a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(a){a:{if(c&8){c=0;if(!J[a+20>>2])break a;J[a+4>>2]=65535;d=a,e=zc(65535),J[d>>2]= -e;break a}c=J[a+4>>2]}J[a+8>>2]=c}return a|0}function is(a){var b=0,c=0;b=J[682259];c=a+7&-8;a=b+c|0;a:{if(a>>>0<=b>>>0?c:0)break a;if(a>>>0>hc()<<16>>>0)if(!(jb(a|0)|0))break a;J[682259]=a;return b}J[694731]=48;return-1}function h1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(K[a+29|0]&128){gc[J[b+8>>2]](J[b>>2],0,55295);gc[J[b+8>>2]](J[b>>2],57344,1114111);return}a=J[a+24>>2];Bk(a,b,c,K[a+200|0]==219,d)}function Xfb(a,b){a=a|0;b=b|0;J[a+16>>2]=b;b=K[b+6|0]|K[b+7|0]<<8|(K[b+8|0]<<16|K[b+9|0]<<24);J[a+28>> -2]=0;J[a+32>>2]=0;J[a+24>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);return 0}function R0(a){var b=0,c=0;if(a>>>0<=4294963199){b=bd(1,20);J[b+8>>2]=a;J[b+12>>2]=-1414746709;c=zc(a+4096|0);J[b+4>>2]=c;if(!c){qc(b);return 0}wc(c,0,a);wc(a+c|0,0,4096)}return b}function QUa(a,b){a=a|0;b=b|0;var c=0;we(b,0);ao(a,b);c=J[a+4>>2];if(c&65536){we(b,K[a+208|0]);c=J[a+4>>2]}if(c&131072){we(b,K[a+210|0]);c=J[a+4>>2]}if(c&262144)we(b,K[a+209|0])}function Eqa(a,b){a=a|0;b=b|0;J[a+212>>2]=0;J[a+204>>2]=0;J[a+236>> -2]=0;H[a+49|0]=1;b=J[a+220>>2];J[a+208>>2]=b;J[a+232>>2]=b;J[a+228>>2]=b;J[a+224>>2]=b;J[a+200>>2]=J[a+216>>2]+1}function zd(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];if((c|0)==2147483647){Th(776382);c=J[a>>2]}kh(a,c+1|0);c=J[a>>2];J[a>>2]=c+1;H[c+J[a+4>>2]|0]=b;H[J[a+4>>2]+J[a>>2]|0]=0;return a|0}function yXa(a,b){a=a|0;b=b|0;a:{a=J[a+104>>2];if(!a)break a;a=ik(a,340356,340368);if(K[J[689612]+464|0]|!a)break a;b=J[b+388>>2];gc[J[J[a>>2]+600>>2]](a,b-1>>>0>=11?3:b+13|0)}}function y4a(a,b,c,d){a=a|0;b=b| -0;c=c|0;d=d|0;var e=0,f=0,g=0;e=O[b>>3];g=O[d>>3];a=g!=0;f=O[c>>3];if(!(!a&f==0)){if(!a)return+(f*e/72);if(f==0)return+(e*72/g);e=f*e/g}return+e}function pP(a,b){var c=0,d=0;c=J[a+4>>2];a:{while(1){if((b|0)==(c|0))break a;J[695492]=0;c=c-4|0;d=J[695492];J[695492]=0;if((d|0)!=1)continue;break}ea(0)|0;yc();B()}J[a+4>>2]=b}function hN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+4>>2];a=(f|0)!=0&J[a+44>>2]!=0;if(a){b=(b<<2)+f|0;H[c|0]=K[b+42|0];H[d|0]=K[b+41|0];H[e|0]=K[b+40|0]}return a|0} -function dw(a,b,c){var d=0;a:{if(b>>>0<=2147483646){d=b+1|0;if((d|0)>2])break a}J[c>>2]=0;return 0}a=J[a+8>>2];b=H[a+b|0];a=(b&255)<<8|K[a+d|0];return(b|0)<0?a|-65536:a}function bCa(a,b){a=a|0;b=b|0;a=bc-32|0;bc=a;a=Kc(a+8|0,2380211,2375807,1290,2385632,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)B();b=Z()|0;Fc(a);ba(b|0);B()}function Vna(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;b=bc-16|0;bc=b;h=J[c>>2];f=K[c+11|0];g=f<<24>>24<0;J[b+12>>2]=g?J[c+4>>2]:f; -aT(a,g?h:c,b+12|0,d,e);bc=b+16|0}function Qvb(a,b){a=a|0;b=b|0;I[a+1052>>1]=L[b+28>>1];I[a+1054>>1]=L[b+30>>1];I[a+1056>>1]=L[b+32>>1];H[a+1058|0]=K[b+34|0];I[a+1060>>1]=L[b+36>>1];H[a+1062|0]=K[b+38|0];return 0}function NPa(a){a=a|0;var b=0;J[a>>2]=2206100;b=J[a+12>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(a)}function Mkb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-1;a:{if((b|0)==-1)break a;if(!(gc[J[J[a>>2]+20>>2]](a,b,c)|0))break a; -d=b;if(!c)break a;d=gc[J[J[a>>2]+24>>2]](a)|0}return d|0}function Kmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[c+32>>2];J[b+32>>2]=d;if(d){d=gc[J[a+152>>2]](d)|0;J[b+36>>2]=d;if(!d){Dc(a,1,0,0);return 1}tc(d,J[c+36>>2],J[b+32>>2])}return 0}function wdb(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[b+552>>2];a:{if(!c)break a;b=gh(J[J[b+96>>2]+4>>2],241268);if(!b)break a;b=gc[J[c+4>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function tj(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a>>2];if(a)return gc[J[J[a>>2]+36>>2]](a,b,c)|0; -a=0;b=J[b>>2];a:{if(!b|!c)break a;b=J[b+12>>2];if(!b)break a;a=K[b|0]?-1:0}return a|0}function tba(a,b){a=a|0;b=b|0;b=gc[J[J[a+584>>2]+904>>2]](a,b)|0;if(b>>>0>2]){a=L[a+206>>1]<<3;if(b>>>0<0-a>>>0)b=((a+b|0)-1>>>0)/(a>>>0)|0;else b=0;b=P(b,a)}return b|0}function nB(a){var b=0,c=0,d=0;a:{if(!a)break a;b=J[a+56>>2];if((b|0)<=0)break a;c=b-1|0;J[a+56>>2]=c;d=J[a+64>>2];J[a+52>>2]=(b|0)!=1?J[((b<<2)+d|0)-8>>2]:0;J[(c<<2)+d>>2]=0}}function hta(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16| -0;bc=e;J[e+12>>2]=0;b=vg(J[a+12>>2]+b|0,e+12|0,d);d=c;c=J[e+12>>2];J[d>>2]=c?c-J[a+12>>2]|0:-1;bc=e+16|0;return b|0}function gta(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;J[e+12>>2]=0;b=Jy(J[a+12>>2]+b|0,e+12|0,d);d=c;c=J[e+12>>2];J[d>>2]=c?c-J[a+12>>2]|0:-1;bc=e+16|0;return b|0}function SNa(a){a=a|0;var b=0;J[a>>2]=2305984;J[695492]=0;_(3449,a|0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a);return}ea(0)|0;yc();B()}function REa(a){a=a|0;a=J[J[a>> -2]-12>>2]+a|0;J[a+64>>2]=2369932;J[a>>2]=2369892;J[a+12>>2]=2369744;J[a+8>>2]=2369912;if(H[a+55|0]<0)qc(J[a+44>>2]);Nh(a+12|0);Uf(a- -64|0);qc(a)}function Ocb(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[b+320>>2];a:{if(!c)break a;b=gh(J[J[b+96>>2]+4>>2],240758);if(!b)break a;b=gc[J[c+4>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function Dr(a){var b=0,c=0,d=0;b=bd(1,20);a:{if(!b)break a;J[b+8>>2]=1;a=(a|0)<=0?20:a;J[b+4>>2]=a;c=bd(a,4);J[b+12>>2]=c;if(!c)break a;a=bd(a,4);J[b+16>>2]=a;d=a?b:0}return d}function xjb(a, -b){a=a|0;b=b|0;var c=0;c=18;a:{if(J[b+72>>2]!=1869968492)break a;c=J[a>>2];a=a+20|0;c=V5(c,I[b+110>>1],I[b+108>>1],a);if(c)break a;U5(b+108|0,a);c=0}return c|0}function uo(a,b){var c=0;a:{if(!a|!b)break a;c=J[a+4>>2];if(!c)break a;a=I[a+2>>1];if((a|0)<=0)break a;a=(a<<3)+c|0;while(1){aD(c,b);c=c+8|0;if(a>>>0>c>>>0)continue;break}}}function qSa(a){a=a|0;var b=0;J[a>>2]=2205052;b=J[a+1048>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+1044>>2];if(b)qc(Rc(b));qc(a);return}ea(0)|0;yc(); -B()}function qLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((c|0)<=0)return 0;d=J[a+32>>2];c=J[a+28>>2]?c>>>0>d>>>0?d:c:c;J[a+32>>2]=d-c;a=J[a+24>>2];return gc[J[J[a>>2]+40>>2]](a,b,c)|0}function ng(a,b,c){var d=0;d=bc-16|0;bc=d;J[695492]=0;J[d+12>>2]=b;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[c>>2];b=J[695492];J[695492]=0;if((b|0)!=1){bc=d+16|0;return a}ea(0)|0;yc();B()}function jHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;if(c)while(1){qX(a,d+8|0);N[b>>2]=O[d+8>>3];b=b+4|0;a=a+8|0;e=e+1|0;if((e|0)!=(c| -0))continue;break}bc=d+16|0}function Qo(a){var b=0,c=0;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a=bc-16|0;bc=a;J[a+12>>2]=b+c;bc=a+16|0;return J[a+12>>2]}function OK(a){a=a|0;J[a+4>>2]=1;J[a>>2]=347664;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=350760;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;return a|0}function Lba(a){a=a|0;var b=0,c=0,d=0;b=bc-224|0;bc=b;c=b+16|0;gc[J[J[a>>2]+12>>2]](a,c);d=J[J[a+12>>2]+628>>2];J[b>>2]=c; -Nc(d,90031,90052,b);ef(J[J[a+12>>2]+584>>2]+4|0,1);B()}function x5(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=6;a:{if(J[b+72>>2]!=J[a+16>>2])break a;if(c)uo(b+108|0,c);e=0;if(!d)break a;Jh(b+108|0,J[d>>2],J[d+4>>2])}return e|0}function vhb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=d;d=0;a=J[(!a|J[a>>2]!=1381173770?d:J[a+4>>2])>>2];f=e,g=gc[J[J[a>>2]+12>>2]](a,b,1,c,0,0)|0,J[f>>2]=g;return 1}function m2(a){a=a|0;var b=0,c=0,d=0;a:{b:{if(a){b=Qc(a);if((b|0)==-1)break a;c=zc(b+1|0);if(!c)break a; -a=tc(c,a,b);break b}a=zc(1);if(!a)break a}d=a;H[a+b|0]=0}return d|0}function g3a(a){a=a|0;var b=0,c=0;b=J[a+188>>2];if(!b)return 0;b=qn(b,2);a:{if(!(!b|L[b>>1]==65535)){c=1;if(L[b+4>>1]>799)break a}c=(K[J[a+188>>2]+12|0]&2)>>>1|0}return c|0}function UNa(a){a=a|0;var b=0;J[a>>2]=2305984;J[695492]=0;_(3449,a|0);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;yc();B()}function OHa(a,b){a=a|0;b=b|0;b=J[a+28>>2];if(b>>>0>2])while(1){oX(a,J[a+24>> -2]+(P(J[a+20>>2],b)<<2)|0);b=b+1|0;if(b>>>0>2])continue;break}qc(J[a>>2]);qc(a)}function Hv(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+672>>2];b:{if(c){c=gc[c|0](a,b)|0;break b}c=zc(b)}if(!c){if(K[a+206|0]&16)break a;Ad(a,57632);B()}d=wc(c,0,b)}return d}function Fk(a){var b=0,c=0,d=0;b=bd(1,20);a:{if(!b)break a;J[b+8>>2]=1;a=(a|0)<=0?20:a;J[b+4>>2]=a;c=bd(a,4);J[b+12>>2]=c;if(!c)break a;a=Tp(a);J[b+16>>2]=a;d=a?b:0}return d}function wQ(a){var b=0,c=0;b=J[a>>2];if(b){c=J[b+12>>2];a:{if((c| -0)==J[b+16>>2]){b=gc[J[J[b>>2]+36>>2]](b)|0;break a}b=J[c>>2]}if((b|0)!=-1)return!J[a>>2];J[a>>2]=0}return 1}function rSa(a){a=a|0;var b=0;J[a>>2]=2205052;b=J[a+1048>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1){b=J[a+1044>>2];if(b)qc(Rc(b));return a|0}ea(0)|0;yc();B()}function lG(){var a=0,b=0;a=bc-32|0;bc=a;a=Kc(a+8|0,2381920,2374069,1819,2414455,0);J[695492]=0;_(5019,a|0);b=J[695492];J[695492]=0;if((b|0)!=1)B();b=Z()|0;Fc(a);ba(b|0);B()}function e1(a,b){a=a|0;b=b|0;var c=0;c=J[a+28>> -2]&15;a:{b:{if(b>>>0<=1){J[a+48>>2]=!c<<3;if((b|0)==1)break a;if((c|0)==1)break b;break a}if((c|0)!=1)break a}J[a+52>>2]=1}}function bab(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;g=1;a:{if(!b)break a;a=J[a+16>>2];if(!a)break a;E3(a,b,O[c>>3],O[d>>3],O[e>>3],O[f>>3]);g=0}return g|0}function Twb(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[J[a+40>>2]+16>>2];b=J[a+52>>2];d=gc[J[J[b>>2]+20>>2]](b,2)|0;e=a;a=(c|0)<257;S8(e,gc[J[J[b>>2]+20>>2]](b,a?1:2)|0,(a?-3:-4)+d|0)}function R2(a){a=a|0;var b=0; -J[a>>2]=349500;b=rc(32);J[b>>2]=0;J[b+4>>2]=0;J[b+28>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;I[b+24>>1]=0;J[a+4>>2]=b;return a|0}function JM(a,b){var c=0;a:{if(!a|(b|0)<0)break a;if(J[a>>2]<=(b|0))return 0;a=J[J[a+8>>2]+(b<<2)>>2];if(!a)break a;b:{if(a){J[a+8>>2]=J[a+8>>2]+1;break b}a=0}c=a}return c}function Io(a,b,c,d){var e=0;if(!((a|0)>(c|0)|(b|0)>(d|0))){e=ek(d-b|0,c-a|0);if(e){J[e+16>>2]=d;J[e+12>>2]=c;J[e+8>>2]=b;J[e+4>>2]=a}return e}fa(197908,198601,89,206724);B()}function Hp(a, -b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0;h=rc(48);J[a>>2]=h;O[h+40>>3]=g;O[h+32>>3]=f;O[h+24>>3]=e;O[h+16>>3]=d;O[h+8>>3]=c;O[h>>3]=b;return a|0}function yQ(a){var b=0,c=0;b=J[a>>2];if(b){c=J[b+12>>2];a:{if((c|0)==J[b+16>>2]){b=gc[J[J[b>>2]+36>>2]](b)|0;break a}b=K[c|0]}if((b|0)!=-1)return!J[a>>2];J[a>>2]=0}return 1}function x_(a,b){a=a|0;b=b|0;var c=0;c=rc(1048);J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+12>>2]=0;J[c+8>>2]=b;J[c+4>>2]=a;J[c>>2]=2181240;a=y_(c);gc[J[J[c>>2]+4>>2]](c);return a| -0}function w_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!b)return 0;a=J[b+4>>2];e=J[b+12>>2];a=a>>>0>>0?a-e|0:d;tc(c,e+J[b>>2]|0,a);J[b+12>>2]=a+J[b+12>>2];return a|0}function wIa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+16>>2];a=J[c+40>>2];if(!a|J[c+48>>2])a=d;else{a=J[a>>2];if(a)a=J[J[Ni(J[a+28>>2],b+1|0)+12>>2]+168>>2];else a=0}return a|0}function nd(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+20>>2];a:{b:{if(d){c=85;if(!(gc[d|0](a,b,0,0)|0))break b;break a}c=85;if(M[a+4>>2]>>0)break a}J[a+8>>2]=b; -c=0}return c|0}function mE(){var a=0;a=zc(40);if(a){J[a>>2]=0;J[a+4>>2]=0;H[a+36|0]=1;J[a+24>>2]=0;J[a+28>>2]=16384;J[a+16>>2]=0;J[a+20>>2]=0;J[a+32>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}return a}function fk(a,b){var c=0,d=0;c=J[a+16>>2];if((c|0)>0){d=J[a+24>>2];a=0;while(1){if(J[J[(a<<2)+d>>2]+40>>2]==(b|0))return a;a=a+1|0;if((c|0)!=(a|0))continue;break}}return-1}function V4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(d){d=rc(c);J[a+8>>2]=d;tc(d,b,c);H[a+16|0]=0;J[a+12>>2]=c;return 1}H[a+16|0]=1;J[a+8>>2]=b; -J[a+12>>2]=b?c:0;return(b|0)!=0|0}function SUa(a,b){a=a|0;b=b|0;var c=0;c=J[a+396>>2];if(b){b=J[a>>2];J[b+20>>2]=3;gc[J[b>>2]](a)}b=J[a+32>>2];J[c+52>>2]=0;J[c+56>>2]=0;J[c+48>>2]=b;J[c+60>>2]=J[a+272>>2]<<1}function Maa(a){a=a|0;var b=0,c=0;b=J[a+584>>2];if(b){c=b;b=zc(72008);J[c+144>>2]=b;if(b)a=1;else{Nc(J[a+628>>2],97897,78498,0);a=0}return a|0}fa(72282,70324,747,97897);B()}function Jea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{while(1){if((c|0)==(d|0))break a;a=J[c>>2];if(!(a>>>0>127|!(J[(a<<2)+2618256>> -2]&b))){c=c+4|0;continue}break}d=c}return d|0}function I5(a,b){var c=0;if(!a)return;if(!b)return;a=J[a>>2];c=J[b+12>>2];if(c)gc[J[a+8>>2]](a,c);J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}function Eg(a,b){var c=0;if((a|0)==(b|0))return 1;if(!a)return 0;if(!b)return 0;while(1){c=K[a|0];if((c|0)!=K[b|0])return 0;b=b+1|0;a=a+1|0;if(c)continue;break}return 1}function Dib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[c>>2]=0;d=6;a:{if(!b|!a)break a;b=b-1|0;if(b>>>0>=M[a+408>>2])break a; -J[c>>2]=J[(J[a+416>>2]+(b<<4)|0)+4>>2];d=0}return d|0}function $6(){var a=0,b=0;b=bd(256,1);if(b)while(1){H[a+b|0]=a<<1&64|(a<<2&32|(a<<3&16|(a>>>3&8|(a>>>2&4|(a&129|a>>>1&2)))));a=a+1|0;if((a|0)!=256)continue;break}return b}function Wea(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;if(sP()>>>0>>0){ph(a);B()}rP(c+8|0,a+16|0,b);b=J[c+8>>2];J[a+4>>2]=b;J[a>>2]=b;J[a+8>>2]=b+(J[c+12>>2]<<2);bc=c+16|0}function IIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(a){Dzb(c,0,b,0);if(fc){Yc(a,58211);return 0}d=J[a+ -204>>2];J[a+204>>2]=d|1048576;e=_g(a,P(b,c));J[a+204>>2]=d}return e|0}function Dgb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+16>>2]+6|0;a=J[b>>2];while(1){a=a+1|0;if(a>>>0>255){J[b>>2]=0;return 0}c=K[a+d|0];if(!c)continue;break}J[b>>2]=a;return c|0}function Aya(a,b){a=a|0;b=b|0;var c=0,d=0;c=rc(128);J[695492]=0;b=aa(5224,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a>>2]=0;md(a,b);return}a=Z()|0;qc(c);ba(a|0);B()}function xgb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=d;d=0;a=J[(!a|J[a>>2]!= -1381173770?d:J[a+4>>2])>>2];f=e,g=gc[J[J[a>>2]+16>>2]](a,b,1,c)|0,J[f>>2]=g;return 1}function or(a,b){a=a|0;b=b|0;a=J[a>>2];O[b>>3]=O[a>>3];O[b+8>>3]=O[a+8>>3];O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];return 0}function mh(a){var b=0,c=0;b=J[a>>2];J[a>>2]=0;a:{if(b){c=J[J[b>>2]+12>>2];J[695492]=0;$(c|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)==1)break a}return a}ea(0)|0;yc();B()}function kP(a,b){J[a>>2]=2626404;J[a>>2]=2626512;if(K[b+11|0]>>>7|0)b=J[b>> -2];J[695492]=0;aa(7029,a+4|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)return a;ba(Z()|0);B()}function hLa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((b|0)<2)break a;a=J[a+4>>2];a=gc[J[J[a>>2]+60>>2]](a,b,c,d)|0;if(!a)break a;od(od(a,c),807849);e=a}return e|0}function f3a(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+188>>2];a:{if(!d)break a;c=J[a+204>>2]!=-1;if(c|!b)break a;c=0;a=qn(d,2);if(!a)break a;c=M[a+80>>2]<268435456}return c|0}function dt(a){a=a|0;var b=0,c=0;b=88;a:{if(a>>>0>65535)break a;c=a>>> -8<<3;b=K[c+2333700|0];if((b|0)!=88)break a;b=K[J[c+2333696>>2]+(a&255)|0]}return(b|0)==35|(b|0)==46}function dkb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=1;a:{if(!K[a|0]|J[a+8>>2]!=(b|0)|J[a+12>>2]!=(c|0))break a;if(c)if(Wc(d,J[a+16>>2],c<<2))break a;e=0}return e|0}function bLa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((b|0)<2)break a;a=J[a+4>>2];a=gc[J[J[a>>2]+60>>2]](a,b,c,d)|0;if(!a)break a;od(od(a,c),808178);e=a}return e|0}function ZD(a,b,c){if((c|0)>=0){a:{if(!b)break a;while(1){if(J[b+ -4>>2]<=(c|0))break a;J[b+4>>2]=c;b=J[b>>2];if(b)continue;break}}return}fa(200968,198839,249,212465);B()}function QE(a,b){var c=0,d=0;c=bc-16|0;bc=c;a:{if(!(K[b+11|0]>>>7|0)){J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;break a}IE(a,J[b>>2],J[b+4>>2])}bc=c+16|0}function OKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((b|0)<2)break a;a=J[a+4>>2];a=gc[J[J[a>>2]+60>>2]](a,b,c,d)|0;if(!a)break a;od(od(a,c),810174);e=a}return e|0}function Kea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){a:{if((c| -0)!=(d|0)){a=J[c>>2];if(a>>>0>127|!(J[(a<<2)+2618256>>2]&b))break a}else c=d;return c|0}c=c+4|0;continue}}function FU(a,b){a=a|0;b=b|0;var c=0;Zg(a+148|0,0,0,b?1024:512,0);c=J[a+108>>2];if(c)nV(c,b);a=J[a+120>>2];if(a)while(1){FU(J[a+8>>2],b);a=J[a>>2];if(a)continue;break}}function Awb(a){a=a|0;var b=0,c=0;b=J[a+4>>2];if(b){a:{if(J[b>>2]!=2)break a;c=J[b+4>>2];if(!c)break a;qc(c)}qc(b)}a=a+4|0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}function tZa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!c){if(J[b>> -2]>=2){H[a|0]=255;H[a+1|0]=254;J[b>>2]=2;J[d>>2]=0;return 2}J[b>>2]=0;J[d>>2]=0;return 0}return o0(a,b,c,d)|0}function sn(a){var b=0,c=0,d=0;b=bd(1,24);a:{if(!b)break a;c=(a|0)<=0?50:a;a=bd(c,4);J[b+20>>2]=a;if(!a)break a;J[b+16>>2]=1065353216;J[b+8>>2]=1;J[b>>2]=c;d=b}return d}function rqb(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;if(f){a=P(d,6);if(((c+1|0)/2|0)>(b|0)){tc(g,e,a);return 0}tc(g,f,a);return 0}tc(g,e,P(d,6));return 0}function hUa(a){a=a|0;var b=0;J[a>>2]=2169420;a:{if(!J[a+ -16>>2])break a;b=J[a+4>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)break a;ea(0)|0;yc();B()}qc(a)}function _g(a,b){var c=0;a:{if(!a|!b)break a;c=J[a+672>>2];b:{if(c){c=gc[c|0](a,b)|0;break b}c=zc(b)}if(c)break a;c=0;if(K[a+206|0]&16)break a;Ad(a,57632);B()}return c}function WRa(a,b,c){a=a|0;b=b|0;c=c|0;b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(7,b,833001,0)}function VI(a){a=a|0;var b=0;if(H[a+31|0]<0)qc(J[a+20>> -2]);J[a>>2]=840356;b=J[a+16>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)qc(J[a+4>>2]);return a|0}function TJa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=J[a>>2];d=O[a+16>>3];b=J[b>>2];e=O[b+16>>3];c=-1;a:{if(de)break a;c=J[a+4>>2]-J[b+4>>2]|0}return c|0}function Sab(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+144>>2]=J[b>>2];N[a+148>>2]=O[c>>3];N[a+152>>2]=O[d>>3];N[a+156>>2]=O[e>>3];N[a+160>>2]=O[f>>3];return 0}function SJa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a= -J[a>>2];d=O[a+24>>3];b=J[b>>2];e=O[b+24>>3];c=-1;a:{if(de)break a;c=J[a+4>>2]-J[b+4>>2]|0}return c|0}function Rqb(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;if(f){a=P(d,3);if(((c+1|0)/2|0)>(b|0)){tc(g,e,a);return 0}tc(g,f,a);return 0}tc(g,e,P(d,3));return 0}function RRa(a,b,c){a=a|0;b=b|0;c=c|0;b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=gc[J[J[a>>2]+52>>2]](a)|0}xc(7,b,832923,0)}function Ceb(a,b,c,d){a=a|0;b=b|0;c=c|0; -d=d|0;b=J[a+24>>2];c=nd(b,c);a:{if(c)break a;c=Ue(b,d);if(c)break a;J[a+196>>2]=J[b+32>>2];J[a+200>>2]=J[b+36>>2];c=0}return c|0}function ji(a){a=a|0;var b=0;J[a>>2]=349684;b=J[a+24>>2];if(!(K[a+28|0]|!b))qc(b);J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=8;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;return a|0}function Zba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;a=J[a+4>>2];if(a){J[d>>2]=c;c=bc-16|0;bc=c;J[c+12>>2]=d;a=fR(a,b,d);bc=c+16|0}else a=-1;bc=d+16|0;return a|0}function UEa(a){a=a|0;var b=0;J[a+ -56>>2]=2369932;b=a-8|0;J[b>>2]=2369892;J[a+4>>2]=2369744;J[a>>2]=2369912;if(H[a+47|0]<0)qc(J[a+36>>2]);Nh(a+4|0);Uf(a+56|0);return b|0}function Sya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!a)break a;J[a+180>>2]=b;J[a+444>>2]=d?d:511;J[a+172>>2]=c?c:512;if(!J[a+176>>2])break a;J[a+176>>2]=0;Yc(a,58346)}}function Oc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((c|0)==-1)c=Ve(b);gc[J[J[a>>2]+8>>2]](a,c);d=b;b=c<<2;tc(J[a+12>>2],d,b);J[a+12>>2]=b+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+c}function GPa(a){a=a|0;var b=0; -J[a>>2]=2206152;b=J[a+12>>2];if(b)qc(Rc(b));b=J[a+16>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function dg(a){var b=0;a:{b=J[a+36>>2];if(b){if(H[a|0]&1)break a;qc(b);J[a+36>>2]=0}b=J[a+28>>2];if(b){qc(b);J[a+28>>2]=0}qc(a);return}fa(200321,198601,151,206741);B()}function ZCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=gc[J[J[a>>2]+16>>2]](a)|0;gc[J[J[a>>2]+20>>2]](a,d,0,1)|0;b=bp(a,b,c);gc[J[J[a>>2]+20>>2]](a,e,0,1)|0;return b|0}function Lda(a){a=a|0;if(K[2782360])return J[695589]; -if(!K[2783512])H[2783512]=1;rf(2783488,2624720);rf(2783500,2624732);H[2782360]=1;J[695589]=2783488;return 2783488}function G4(a,b){a=a|0;b=b|0;J[a+16>>2]=b;b=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);H[a+24|0]=0;J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);return 0}function CMa(a,b,c,d,e,f,g,h,i,j,k,l,m,n){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;l=l|0;m=m|0;n=n|0;gc[J[J[a>>2]+300>>2]](a,b,c,d,e,f,g,0,0,n)}function uF(a){a:{if((BF(a,2728888)|0)<0)break a; -b:{if(J[682242]==10)break b;a=J[682227];if((a|0)==J[682226])break b;J[682227]=a+1;H[a|0]=10;break a}ps(2728888,10)}}function k1(a){var b=0;a:{if(!a)break a;a=J[a+4>>2];if(!a)break a;b=0;b:{if(!a)break b;b=L[a>>1];if(!K[a+8|0])break b;b=b<<8|(b&65280)>>>8}b=(b&65535)+a|0}return b}function cgb(a,b){a=a|0;b=b|0;var c=0;if(!(!K[a+24|0]|J[a+28>>2]!=J[b>>2])){E4(a);if(!K[a+24|0])return 0;c=J[a+32>>2];J[b>>2]=J[a+28>>2];return c|0}return F4(a,b,1)|0}function YRa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16| -0;bc=d;if(J[a+16>>2]){J[d>>2]=J[b+8>>2];vq(833949,d);a=J[651372];if((c|0)==2)Um(b+16|0,a);Ry(10);Ji(a)}bc=d+16|0}function Cq(a,b){var c=0;if(b){Cq(a,J[b>>2]);Cq(a,J[b+4>>2]);a=J[b+24>>2];a:{if(!a)break a;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break a;gc[J[J[a>>2]+8>>2]](a);Vc(a)}qc(b)}}function qgb(a,b){a=a|0;b=b|0;a=J[a+16>>2];b=b-(K[a+6|0]<<8|K[a+7|0])|0;if(b>>>0<(K[a+9|0]|K[a+8|0]<<8)>>>0){a=a+(b<<1)|0;a=K[a+10|0]<<8|K[a+11|0]}else a=0;return a|0}function obb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+ -52>>2];if(d){qc(d);J[a+52>>2]=0}d=c<<3;e=rc(c>>>0>536870911?-1:d);J[a+52>>2]=e;tc(e,b,d);J[a+56>>2]=c;return 0}function m1(a,b){var c=0,d=0,e=0;e=J[a+28>>2];c=J[b>>2];while(1){c=c+1|0;if((e|0)<=(c|0))return 0;d=J[a>>2]+P(c,12)|0;if(J[d>>2]<0)continue;break}J[b>>2]=c;return d}function lqb(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;if(f){a=d<<3;if(((c+1|0)/2|0)>(b|0)){tc(g,e,a);return 0}tc(g,f,a);return 0}tc(g,e,d<<3);return 0}function lp(a){a=a|0;var b=0;J[a>>2]=2169420;a:{if(J[a+16>> -2]){b=J[a+4>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1)break a}return a|0}ea(0)|0;yc();B()}function k9(){var a=0,b=0;a=zc(108);if(a){J[a+96>>2]=0;J[a+12>>2]=0;b=zc(12);if(b){J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[a+76>>2]=b;return a}J[a+76>>2]=0;qc(a)}return 0}function je(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[a>>2];d=O[b>>3];O[b>>3]=O[a+32>>3]+(d*O[a>>3]+O[c>>3]*O[a+16>>3]);O[c>>3]=O[a+40>>3]+(d*O[a+8>>3]+O[c>>3]*O[a+24>>3])}function eba(a){a=a|0;var b=0,c=0,d=0;b=bc-224|0;bc=b;c=b+16| -0;gc[J[J[a>>2]+12>>2]](a,c);d=J[J[a+828>>2]+628>>2];J[b>>2]=c;Nc(d,75515,75925,b);cx(a);ef(a+624|0,1);B()}function _aa(a,b){a=a|0;b=b|0;J[a+556>>2]=677;J[a+548>>2]=677;J[a+540>>2]=677;J[a+560>>2]=678;J[a+552>>2]=678;J[a+544>>2]=679;J[a+536>>2]=680;J[a+532>>2]=681;return 1}function Lc(a){var b=0,c=0;a:{if(!K[a+8|0])break a;b=J[a>>2];if(!b)break a;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break a;qc(b)}J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;return a}function GLa(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<0){c=J[a+24>>2];bB(J[c>> -2],0,2);c=wq(J[c>>2]);b=(b|0)<=(c|0)?c-b|0:0}J[a+304>>2]=b;b=a+40|0;J[a+300>>2]=b;J[a+296>>2]=b}function Ekb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!a)return 37;d=b?d:d|3;if(!(d&1?0:b))return fD(a,0,c,d)|0;if(J[b>>2]==J[a+4>>2])a=fD(a,b,c,d);else a=35;return a|0}function wMa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+32>>2]=13;J[a+16>>2]=13;J[a+48>>2]=0;J[a+4>>2]=c;J[a>>2]=b;J[a+8>>2]=d;vj(c,a+16|0);vj(J[a+4>>2],a+32|0);return a|0}function u$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(J[d>>2]<=0){if(!J[c>>2]){J[c>> -2]=344;return 0}a=tc(b+260|0,J[a+8>>2],84);H[b+34|0]=1;J[b+8>>2]=a}else b=0;return b|0}function t8(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;if(f){a=d<<1;if(((c+1|0)/2|0)>(b|0)){tc(g,e,a);return 0}tc(g,f,a);return 0}tc(g,e,d<<1);return 0}function r8(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;if(f){a=d<<2;if(((c+1|0)/2|0)>(b|0)){tc(g,e,a);return 0}tc(g,f,a);return 0}tc(g,e,d<<2);return 0}function kjb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if(!d){e=1;if(M[a+4>>2]>> -0)break a}e=J[a+12>>2];if(J[a+8>>2]!=(b|0))Xg(e,b,0);e=Yd(c,1,d,e)}return e|0}function il(a,b){var c=0,d=0,e=0;if(!(!a|(b|0)<0)){c=gc[J[659450]](b+1|0)|0;if(!c){Cc(0,0,0,0,0,1,2,3,0,0,0,0,36013,0);return 0}d=tc(c,a,b)+b|0,e=0,H[d|0]=e}return c}function fta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;J[d+12>>2]=0;e=Mu(J[a+12>>2]+b|0,d+12|0);b=J[d+12>>2];J[c>>2]=b?b-J[a+12>>2]|0:-1;bc=d+16|0;return+e}function fgb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=10;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<< -16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function bgb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=12;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function Zfb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=13;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function UI(a){a=a|0;var b=0;if(H[a+31|0]<0)qc(J[a+20>>2]);J[a>>2]=840356;b=J[a+16>>2];if(b){gc[J[J[b>> -2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)qc(J[a+4>>2]);qc(a)}function E_a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a=18772;a:{if((c&3)==1)break a;a=18786;if(c&4)break a;d=c>>>3&1;a=d?18061:0}c=0;if(!(!b|!d))c=Oj(b,a);return c|0}function yLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if((c|0)<=0)return 0;d=J[a+40>>2];e=J[a+36>>2]-d|0;c=(c|0)>(e|0)?e:c;tc(b,d,c);J[a+40>>2]=c+J[a+40>>2];return c|0}function sra(a){a=a|0;var b=0,c=0;b=J[a+12>>2];if(!b)return 72;a=b+24|0;c=(J[b+20>>2]<<4)+32|0;while(1){b=c;c=b+8164| -0;a=J[a>>2];if(a)continue;break}return b+72|0}function jgb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=8;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function gNa(a){a=a|0;var b=0;J[a>>2]=2307536;b=J[a+4>>2];if(b)qc(Rc(b));J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function TEa(a){a=a|0;var b=0;J[a+56>>2]=2369932;b=a-8|0;J[b>>2]=2369892;J[a+4>>2]=2369744;J[a>>2]=2369912;if(H[a+47|0]<0)qc(J[a+ -36>>2]);Nh(a+4|0);Uf(a+56|0);qc(b)}function Nda(a){a=a|0;if(K[2782352])return J[695587];if(!K[2783480])H[2783480]=1;sf(2783456,21016);sf(2783468,21008);H[2782352]=1;J[695587]=2783456;return 2783456}function FPa(a){a=a|0;var b=0;J[a>>2]=2206152;b=J[a+12>>2];if(b)qc(Rc(b));b=J[a+16>>2];if(b)gc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function Es(a){a=a|0;var b=0,c=0;b=J[a+8>>2];if(b)while(1){c=J[b>>2];gc[J[J[a>>2]+16>>2]](b,1);qc(b);b=c;if(b)continue;break}J[a+4>>2]=0;J[a+ -8>>2]=0;J[a+12>>2]=0}function $bb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=1;e=b;c=J[b>>2]+1|0;b=J[a+16>>2];if(c>>>0>b>>>0){b=c-b|0;a=b>>>0>2];d=a?b+1|0:0;b=a?c:0}J[e>>2]=b;return d|0}function zh(a,b){a=a|0;b=b|0;var c=0;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(c>>>0<=b>>>0){mr(a);B()}if(K[a+11|0]>>>7|0)a=J[a>>2];return(b<<2)+a|0}function ok(a){a=a|0;var b=0,c=0;b=88;a:{if(a>>>0>65535)break a;c=a>>>8<<3;b=K[c+2333700|0];if((b|0)!=88)break a;b=K[J[c+2333696>>2]+(a&255)|0]}return(b| -0)==82|0}function od(a,b){var c=0,d=0;d=J[a>>2];c=Qc(b);if((d|0)>(c^2147483647)){Th(776382);d=J[a>>2]}kh(a,c+d|0);tc(J[a+4>>2]+J[a>>2]|0,b,c+1|0);J[a>>2]=J[a>>2]+c;return a}function iwb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;J[d+12>>2]=b;b=J[a+20>>2];if(b){Td(d+12|0,1,(c|0)>=4?4:c,b);J[a+24>>2]=J[a+24>>2]+c}bc=d+16|0;return 0}function d$(a,b,c,d){var e=0;e=bc-16|0;bc=e;if(!(!(!a|!J[a+212>>2])&J[a+172>>2]==-1)){J[e+8>>2]=0;J[e+4>>2]=d;J[e>>2]=c;Cc(0,0,0,a,0,3,100,1,c,d,0,0,b,e)}bc=e+16|0} -function Zk(a){a=a|0;var b=0,c=0;b=88;a:{if(a>>>0>65535)break a;c=a>>>8<<3;b=K[c+2333700|0];if((b|0)!=88)break a;b=K[J[c+2333696>>2]+(a&255)|0]}return(b|0)==76|0}function D2a(a){a=a|0;var b=0,c=0,d=0;b=rc(176);J[695492]=0;c=$(2228,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[c+168>>2]=a;return c|0}a=Z()|0;qc(b);ba(a|0);B()}function AA(a,b,c){var d=0;if(!J[b+4>>2]){d=J[b+52>>2];if(J[d+8>>2])while(1){AA(a,cj(d,0),c);d=J[b+52>>2];if(J[d+8>>2])continue;break}qc(Vn(b));return}_X(a,b,c)}function $J(a){var b= -0,c=0,d=0;b=J[a>>2];if(b){d=b;c=J[a+4>>2];if((c|0)!=(b|0)){while(1){c=c-4|0;mh(c);if((b|0)!=(c|0))continue;break}d=J[a>>2]}J[a+4>>2]=b;qc(d)}}function vlb(a,b){a=a|0;b=b|0;J[a+2748>>2]=b;J[a+2740>>2]=J[b+28>>2];J[a+4>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+8>>2]=J[b+16>>2];J[a+16>>2]=J[b+20>>2];return 0}function rD(a,b){var c=0,d=0;if(!((b|0)<0|J[J[a+20>>2]+20>>2]<(b|0))){J[a+4>>2]=b;c=a,d=df(J[a+20>>2],0)+P(J[J[a+20>>2]+52>>2],b)|0,J[c+16>>2]=d}return J[a+16>>2]}function ig(a,b){var c=0,d=0;J[a>> -2]=7;c=rc(24);J[695492]=0;b=aa(3462,c|0,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a+8>>2]=b;return}a=Z()|0;qc(c);ba(a|0);B()}function ica(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;J[d+12>>2]=J[c>>2];a=gc[J[J[a>>2]+16>>2]](a,b,d+12|0)|0;if(a)J[c>>2]=J[d+12>>2];bc=d+16|0;return a|0}function cA(a){var b=0,c=0,d=0;b=J[a>>2];if(b){d=b;c=J[a+4>>2];if((c|0)!=(b|0)){while(1){c=Lc(c-12|0);if((c|0)!=(b|0))continue;break}d=J[a>>2]}J[a+4>>2]=b;qc(d)}}function UT(a){a=a|0;var b=0,c=0;b=jk(24);J[695492]= -0;a=aa(5333,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){xa(a|0,2411712,5447);B()}a=Z()|0;Lo(b);ba(a|0);B()}function K3a(a,b){a=a|0;b=b|0;var c=0;if(H[b+123|0]>=0){b=b+112|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Re(a,J[b+112>>2],J[b+116>>2])}function Iz(a){var b=0,c=0;b=J[a+24>>2];if(b)while(1){c=J[b>>2];gc[J[J[a>>2]+16>>2]](b,1);qc(b);b=c;if(b)continue;break}J[a+4>>2]=0;J[a+24>>2]=0;ci(a+16|0,4,0)}function Ccb(a,b){a=a|0;b=b|0;var c=0;c=J[b+96>>2];if(!((c|0)<0|J[a+ -300>>2]<=(c|0))){a=J[a+304>>2]+P(c,252)|0;b=gc[J[b+40>>2]](b,0)|0;J[a+180>>2]=b;J[a+208>>2]=b}}function Bya(a){a=a|0;var b=0,c=0,d=0;b=rc(68);J[695492]=0;c=$(5338,b|0)|0;d=J[695492];J[695492]=0;if((d|0)!=1){J[a>>2]=0;md(a,c);return}a=Z()|0;qc(b);ba(a|0);B()}function zo(a){a=a|0;var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;c=J[b+8>>2];J[b+8>>2]=c-1;if((c|0)<=1){qc(J[b+12>>2]);qc(J[b+16>>2]);qc(b)}J[a>>2]=0}}function oC(a,b,c,d,e,f){var g=0;g=J[a+84>>2];if((g|0)>0){a=J[a+80>>2]+P((b|0)<(g|0)? -(b|0)>0?b:0:g-1|0,96)|0;N[a+24>>2]=f;N[a+20>>2]=e;N[a+16>>2]=d;N[a+12>>2]=c}}function cQ(a){a=a|0;var b=0,c=0;b=jk(8);J[695492]=0;a=aa(6675,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){xa(a|0,2626752,6676);B()}a=Z()|0;Lo(b);ba(a|0);B()}function bF(a,b,c,d){var e=0,f=0,g=0,h=0;e=bc-16|0;bc=e;J[e+12>>2]=c;f=b;b=c-b|0;g=e,h=Zc(d,f,b)+b|0,J[g+8>>2]=h;J[a>>2]=J[e+12>>2];J[a+4>>2]=J[e+8>>2];bc=e+16|0}function ayb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;d=K[a+16|0];e=J[a+12>>2];J[c+8>>2]=K[a+ -17|0];J[c+4>>2]=d;J[c>>2]=e;cd(b,209646,c);bc=c+16|0;return 0}function Mv(a){var b=0,c=0,d=0;b=rc(672);J[695492]=0;c=ga(3389,b|0,a|0,0)|0;d=J[695492];J[695492]=0;if((d|0)==1){a=Z()|0;qc(b);ba(a|0);B()}J[c+668>>2]=a;return c}function Bl(a,b,c,d){var e=0;e=P(d+16776961|0,b);b=d<<8;return(e-b|0)+65535&16776960|(P(d-255|0,c)-b|0)+65535>>>8|16776960-(b+P(255-d|0,a)<<8)&16711680|-16777216}function yma(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;g=bc-16|0;bc=g;a=J[a+12>>2];J[g+12>>2]=J[b>>2]; -fz(a,g+12|0,0,1,c,d,e,f);bc=g+16|0;return 0}function t5a(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;gc[J[J[a+472>>2]+12>>2]](a,b,J[c>>2],(J[f>>2]<<2)+e|0);J[f>>2]=J[f>>2]+1;J[c>>2]=J[c>>2]+1}function s5a(a){a=a|0;var b=0;b=rc(28);J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=349740;J[a>>2]=b;return a|0}function rl(a,b){var c=0;a:{if(!a|!b)break a;c=J[a>>2];if(!c)break a;while(1){if(!Ec(c,b))return J[a+4>>2];c=J[a+8>>2];a=a+8|0;if(c)continue; -break}}return 0}function iFa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+60>>2]=2369588;J[a>>2]=2369568;J[a+8>>2]=2369744;if(H[a+51|0]<0)qc(J[a+40>>2]);Nh(a+8|0);Uf(a+60|0);return a|0}function dcb(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];b=J[c+132>>2];rn(c,0);c=L[b+80>>1];J[a+24>>2]=c<<6;J[a+28>>2]=c-L[b+96>>1]<<6;J[a+36>>2]=L[b+102>>1]<<6;return 0}function Ys(a,b){var c=0,d=0,e=0;if(!b){fa(2351841,2351843,162,2351917);B()}d=b>>31;c=d+(a>>31)|0;e=a;a=a+b|0;c=e>>>0>a>>>0?c+1|0:c;return Ezb(a-1|0,c-!a|0,b,d)}function Se(a){var b= -0,c=0;b=bc-16|0;bc=b;J[695492]=0;c=J[695492];J[695492]=0;if((c|0)!=1){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;bc=b+16|0;return a}ea(0)|0;yc();B()}function RY(a,b,c){var d=0,e=0;d=1;J[a+20>>2]=1;if(b)while(1){d=he(a,d,c)|J[a+20>>2]<<1;J[a+20>>2]=d;e=e+1|0;if((e|0)!=(b|0))continue;break}return(-1<>2];c=J[b+488>>2];J[a+24>>2]=J[b+420>>2];J[a+28>>2]=J[b+424>>2];J[a+20>>2]=J[c+20>>2];J[a+16>>2]=J[c+24>>2];return 0}function NO(a,b,c,d){var e=0,f=0;e=J[a+4>> -2];f=J[a>>2];a=0;a:{if(!c)break a;a=e>>8;if(!(e&1))break a;a=J[a+J[c>>2]>>2]}gc[J[J[f>>2]+28>>2]](f,b,a+c|0,e&2?d:2)}function Jhb(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[b+488>>2];J[a+24>>2]=J[b+420>>2];J[a+28>>2]=J[b+424>>2];J[a+20>>2]=J[c+20>>2];J[a+16>>2]=J[c+28>>2];return 0}function In(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=-1;e=J[a+8>>2];c=(e&c>>31)+c|0;if(!((c|0)<0|(c|0)>=(e|0))){a=J[a+12>>2];b=Yf(a+c|0,b);d=b?b-a|0:-1}return d|0}function Ica(a){a=a|0;var b=0,c=0;b=jk(8);J[695492]=0;a=aa(7045, -b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){xa(a|0,2626720,34);B()}a=Z()|0;Lo(b);ba(a|0);B()}function Hca(a){a=a|0;var b=0,c=0;b=jk(8);J[695492]=0;a=aa(7046,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){xa(a|0,2626616,34);B()}a=Z()|0;Lo(b);ba(a|0);B()}function DMa(a,b,c,d,e,f,g,h,i,j,k,l,m){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;l=l|0;m=m|0;gc[J[J[a>>2]+300>>2]](a,b,c,d,e,f,g,0,0,m)}function $kb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a>>2];c=J[d+140>>2];rn(d,b);J[a+24>> -2]=J[c+40>>2]<<6;J[a+28>>2]=0-(J[c+44>>2]<<6);J[a+36>>2]=L[c+4>>1]<<6;return 0}function xt(a,b,c,d){var e=0;e=bc-16|0;bc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b}J[e>>2]=d;Cc(0,0,0,a,0,1,b,2,d,0,0,0,c,e)}bc=e+16|0}function uB(a,b,c,d,e){var f=0;f=bc-16|0;bc=f;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=b;J[f+4>>2]=e;J[f>>2]=d;Cc(0,0,0,a,0,3,b,1,d,e,0,0,c,f)}bc=f+16|0}function sha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc-16|0;bc=e;J[e+12>>2]=b;J[e+8>>2]=d;b=Gl(e+4| -0,e+12|0);a=cR(a,c,J[e+8>>2]);Mh(b);bc=e+16|0;return a|0}function pe(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;d=J[a+204>>2];if(!(K[a+351|0]&32?(d&768)!=768:!(d&2048)))break a;e=a,f=$f(J[a+384>>2],b,c),J[e+384>>2]=f}}function gDa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a:{if(!a|!d)break a;c=c-b|0;f=f-e|0;c=(c|0)<(f|0)?c:f;if((c|0)<0)break a;Zc(a+b|0,d+e|0,c+1|0)}}function fNa(a){a=a|0;var b=0;J[a>>2]=2307536;b=J[a+4>>2];if(b)qc(Rc(b));J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b| -0)==1){ea(0)|0;yc();B()}qc(a)}function RS(a,b){a=a|0;b=b|0;var c=0,d=0;a=J[a>>2];c=J[a>>2];b=J[b>>2];d=J[b>>2];if((c|0)!=(d|0))return c-d|0;a=J[a+8>>2];if(!a)return 0;return J[b+8>>2]-a|0}function RDa(a){a=a|0;var b=0,c=0,d=0;b=J[a+4>>2];c=J[b>>2];d=J[b+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+12>>2]=J[a+12>>2]-1;Ed(b+8|0);qc(b);Bj(a,J[a+4>>2]+8|0);WG(a)}function JN(a){var b=0;b=J[a+8>>2];if(b){if(J[a>>2]>0){b=0;while(1){qc(J[J[a+8>>2]+(b<<2)>>2]);b=b+1|0;if((b|0)>2])continue;break}b=J[a+8>>2]}qc(b)}qc(a)} -function Eca(a,b){a=a|0;b=b|0;b=bc-16|0;bc=b;if(py(a)){J[a+556>>2]=621;J[a+548>>2]=621;J[a+540>>2]=621;J[b>>2]=11;a=$d(a,65536,b)}else a=0;bc=b+16|0;return a|0}function yvb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+40>>2];a:{if(!c)break a;d=J[b+44>>2];if(!d)break a;gc[J[a+156>>2]](d,P(c,36))}gc[J[a+156>>2]](b,48);return 0}function th(a,b,c,d){var e=0,f=0;a:{if(!a)break a;e=J[a+12>>2];if((e|0)>=J[a+8>>2])break a;f=J[a>>2]+(e<<2)|0;H[f+1|0]=c;H[f+2|0]=b;H[f|0]=d;J[a+12>>2]=e+1}}function qdb(a){a=a|0;var b= -0,c=0;b=J[a+20>>2];if(b-211>>>0<=4294967286){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}return J[J[a+456>>2]+16>>2]}function oJa(a,b){a=a|0;b=b|0;var c=0;c=J[b+4>>2];J[a+4>>2]=c;J[a+8>>2]=c;if(c){c=vd(c,4);J[a>>2]=c;tc(c,J[b>>2],J[a+4>>2]<<2);return a|0}J[a>>2]=0;return a|0}function nm(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+24>>2]=b;J[a+12>>2]=J[c>>2];J[a+16>>2]=J[d>>2];b=J[e>>2];H[a+28|0]=f;J[a+20>>2]=b;J[a+8>>2]=0}function jk(a){var b=0,c=0;J[695492]=0;b=a+27&-4;a=$(7053, -b|0)|0;c=J[695492];J[695492]=0;a:{if((c|0)!=1){if(!a)break a;return wc(a,0,b)+24|0}ea(0)|0}yc();B()}function ih(a,b){var c=0;c=J[a>>2];J[a>>2]=b;a:{if(c){a=J[a+4>>2];J[695492]=0;_(a|0,c|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function i5a(a,b){a=a|0;b=b|0;var c=0;if(H[b+43|0]>=0){b=b+32|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Re(a,J[b+32>>2],J[b+36>>2])}function h5a(a,b){a=a|0;b=b|0;var c=0;if(H[b+55|0]>=0){b=b+44|0;c=J[b+4>>2];J[a>>2]=J[b>> -2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Re(a,J[b+44>>2],J[b+48>>2])}function bS(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+56>>2];a=J[a+60>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];if(d)rS(d,b);c=c+8|0;if((a|0)!=(c|0))continue;break}}function bA(a){a=a|0;J[a+64>>2]=2369932;J[a>>2]=2369892;J[a+12>>2]=2369744;J[a+8>>2]=2369912;if(H[a+55|0]<0)qc(J[a+44>>2]);Nh(a+12|0);Uf(a- -64|0);return a|0}function aS(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+56>>2];a=J[a+60>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];if(d)pS(d,b);c=c+ -8|0;if((a|0)!=(c|0))continue;break}}function Wnb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+44>>2];a:{if(!c)break a;d=J[b+48>>2];if(!d)break a;gc[J[a+156>>2]](d,P(c,36))}gc[J[a+156>>2]](b,52);return 0}function Vr(a){var b=0,c=0;b=bc-16|0;bc=b;c=b+4|0;SO(c,a,14400);J[695492]=0;_(7037,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)B();a=Z()|0;ad(b+4|0);ba(a|0);B()}function Rab(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;O[a+168>>3]=O[b>>3];O[a+176>>3]=O[c>>3];O[a+184>>3]=O[b>>3]+O[d>>3];O[a+192>>3]=O[c>>3]+O[e>>3]; -return 0}function Pha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=0;while(1){if((b|0)!=(c|0)){a=J[b>>2]+(a<<4)|0;d=a&-268435456;a=(d|d>>>24)^a;b=b+4|0;continue}break}return a|0}function Pca(a,b){a=a|0;b=b|0;b=bc-16|0;bc=b;if(py(a)){J[a+556>>2]=621;J[a+548>>2]=621;J[a+540>>2]=621;J[b>>2]=7;a=$d(a,65536,b)}else a=0;bc=b+16|0;return a|0}function PE(a){var b=0,c=0;J[695492]=0;c=pa(6754)|0;b=J[695492];J[695492]=0;if((b|0)!=1){b=a;a=J[c>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;return}ea(0)|0;yc();B()}function P5(a){var b= -0,c=0;b=J[a+32>>2];if(M[a+36>>2]<=b+3>>>0){J[a+32>>2]=b;return 0}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[a+32>>2]=b+4;return c}function Hea(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[oy()+(J[b>>2]<<2)>>2];J[b>>2]=a;b=b+4|0;continue}break}return c|0}function Eea(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[ny()+(J[b>>2]<<2)>>2];J[b>>2]=a;b=b+4|0;continue}break}return c|0}function EXa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0; -bc=c;a=J[a+104>>2];b=J[b+472>>2];H[c+15|0]=(b|0)==1?2:(b|0)==2?1:b;gc[J[J[a>>2]+100>>2]](a,c+15|0)|0;bc=c+16|0}function EQ(a){var b=0;b=J[a>>2];J[a>>2]=0;a:{if(b){a=J[a+4>>2];J[695492]=0;$(a|0,b|0)|0;a=J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function DR(a,b,c,d){var e=0;e=bc-16|0;bc=e;a=Yb(a|0,b|0,c|0,d&255,e+8|0)|0;if(a){J[694731]=a;a=-1}else a=0;bc=e+16|0;fc=a?-1:J[e+12>>2];return a?-1:J[e+8>>2]}function Adb(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if(b-211>>>0<=4294967284){c= -J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;gc[J[J[a>>2]>>2]](a)}return J[J[a+456>>2]+20>>2]}function x2(a,b){a=a|0;b=b|0;var c=0;if(H[b+31|0]>=0){b=b+20|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Re(a,J[b+20>>2],J[b+24>>2])}function pUa(a){a=a|0;var b=0;b=J[a+276>>2];if(b){J[a+280>>2]=b;qc(b)}b=J[a+264>>2];if(b){J[a+268>>2]=b;qc(b)}if(H[a+227|0]<0)qc(J[a+216>>2]);return lh(a)|0}function ofb(a,b){a=a|0;b=b|0;var c=0;c=gc[J[a+516>>2]](a,1668112752,b,a+512|0)|0;if(!c){c=yi(b,J[a+512>> -2],a+508|0);if(!c)return 0;J[a+512>>2]=0}return c|0}function lP(a,b){var c=0,d=0;c=(a+b|0)-1&0-a;c=b>>>0>>0?c:b;b=bc-16|0;bc=b;if(!((c>>>0)%(a>>>0)|a&3)){a=iF(b+12|0,a,c);d=a?0:J[b+12>>2]}bc=b+16|0;return d}function gy(a){var b=0,c=0;b=bc-16|0;bc=b;c=b+4|0;SO(c,a,6904);J[695492]=0;_(7044,c|0);a=J[695492];J[695492]=0;if((a|0)!=1)B();a=Z()|0;ad(b+4|0);ba(a|0);B()}function Umb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1347571533){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];H[b+34| -0]=K[c+34|0];return 0}function Uha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=0;while(1){if((b|0)!=(c|0)){a=H[b|0]+(a<<4)|0;d=a&-268435456;a=(d|d>>>24)^a;b=b+1|0;continue}break}return a|0}function OZa(a,b){a=a|0;b=b|0;var c=0,d=0;b=J[b>>2];if(b){d=a;a=K[b+47|0];c=a<<24>>24<0;mm(d,c?J[b+36>>2]:b+36|0,c?J[b+40>>2]:a);return}J[a>>2]=0;H[a+11|0]=0}function Bab(a){a=a|0;var b=0;b=J[a+456>>2];J[b+24>>2]=1;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=298;gc[J[J[a>>2]+16>>2]](a);gc[J[J[a+460>>2]>>2]](a);J[a+160>>2]=0}function qX(a, -b){H[b+7|0]=K[a|0];H[b+6|0]=K[a+1|0];H[b+5|0]=K[a+2|0];H[b+4|0]=K[a+3|0];H[b+3|0]=K[a+4|0];H[b+2|0]=K[a+5|0];H[b+1|0]=K[a+6|0];H[b|0]=K[a+7|0]}function lhb(a){a=a|0;var b=0;if(a){J[a+412>>2]=0;J[a+4>>2]=0;J[a+1960>>2]=0;J[a+1444>>2]=0;J[a+928>>2]=0;J[a+208>>2]=0;b=J[a>>2];if(a)gc[J[b+8>>2]](b,a)}}function kf(a){a=a|0;var b=0,c=0;a=J[a>>2];a=J[(a?a+12|0:2728584)>>2];b=K[a|0];if(b)while(1){c=c<<6^b^c;b=K[a+1|0];a=a+1|0;if(b)continue;break}return c|0}function jda(a,b){a=a|0;b=b|0;J[a>>2]=2626404;J[a>> -2]=2626532;J[695492]=0;aa(7029,a+4|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ba(Z()|0);B()}function iYa(a){a=a|0;var b=0;if(a){b=J[a>>2];if(b)gc[J[659451]](b);b=J[a+4>>2];if(b)gc[J[659451]](b);b=J[a+8>>2];if(b)gc[J[659451]](b);gc[J[659451]](a)}}function aib(a){a=a|0;var b=0,c=0;if(a){c=J[a>>2];b=J[a+108>>2];if(b)gc[J[c+8>>2]](c,b);J[a+108>>2]=0;b=J[a+116>>2];if(b)gc[J[c+8>>2]](c,b);J[a+116>>2]=0}}function Uqb(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;if(f){if(((c+1|0)/ -2|0)>(b|0)){tc(g,e,d);return 0}tc(g,f,d);return 0}tc(g,e,d);return 0}function T9(a){a=a|0;var b=0;b=J[a+56>>2];if(b)qc(b);b=J[a- -64>>2];if(b)qc(b);b=J[a+68>>2];if(b)qc(b);b=J[a+76>>2];if(b)qc(b);a=J[a+80>>2];if(a)qc(a)}function Sp(a,b){var c=0;a:{if(!a|(b|0)<0)break a;if(J[a>>2]<=(b|0))return 0;a=J[J[a+12>>2]+(b<<2)>>2];if(!a)break a;J[a+16>>2]=J[a+16>>2]+1;c=a}return c}function Snb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}gc[J[a+ -156>>2]](b,44);return 0}function Oka(a){a=a|0;var b=0;b=J[a+60>>2];J[a+56>>2]=0;J[a+60>>2]=0;a:{if(!b)break a;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break a;gc[J[J[b>>2]+8>>2]](b);Vc(b)}}function Ivb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+28>>2];a:{if(!c)break a;d=J[b+32>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}gc[J[a+156>>2]](b,36);return 0}function vvb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+28>>2];a:{if(!c)break a;d=J[b+32>>2];if(!d)break a;gc[J[a+156>>2]](d,c<<1)}gc[J[a+156>>2]](b,36);return 0}function tJ(a){a= -a|0;var b=0;if(a){zj(a);Vh(J[a+32>>2],J[a+40>>2]);b=J[a+8>>2];if(b)gc[J[659451]](b);b=J[a+48>>2];if(b)gc[J[659451]](b);gc[J[659451]](a)}}function mtb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>1;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function ltb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>3;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function jtb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b= -J[a+644>>2];while(1){H[b|0]=K[b|0]>>>7;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function htb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>2;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function hFa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+60>>2]=2369588;J[a>>2]=2369568;J[a+8>>2]=2369744;if(H[a+51|0]<0)qc(J[a+40>>2]);Nh(a+8|0);Uf(a+60|0);qc(a)}function gtb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>> -6;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function gXa(a,b){a=a|0;b=b|0;var c=0;b=bc-16|0;bc=b;if(!K[a+220|0]){c=J[a+104>>2];J[b+12>>2]=2048;gc[J[J[c>>2]+308>>2]](c,b+12|0)|0;H[a+201|0]=1}bc=b+16|0}function etb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>4;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function YJ(a){var b=0;a:{b:{if(!K[2758024]){b=zc(4);J[689507]=b;if(!b)break b;H[2758024]=1;if(!a)break b;break a}if(a)break a}return}J[a>> -2]=J[a>>2]+1}function Xnb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+52>>2];a:{if(!c)break a;d=J[b+56>>2];if(!d)break a;gc[J[a+156>>2]](d,c<<2)}gc[J[a+156>>2]](b,60);return 0}function Vnb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;gc[J[a+156>>2]](d,c<<1)}gc[J[a+156>>2]](b,40);return 0}function Uvb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+48>>2];a:{if(!c)break a;d=J[b+52>>2];if(!d)break a;gc[J[a+156>>2]](d,c<<1)}gc[J[a+156>>2]](b,60);return 0}function Qnb(a,b){a=a|0;b= -b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;gc[J[a+156>>2]](d,c<<2)}gc[J[a+156>>2]](b,40);return 0}function QP(a){var b=0,c=0;b=bc-16|0;bc=b;c=b+12|0;J[c>>2]=a;J[695492]=0;_(6747,c|0);a=J[695492];J[695492]=0;if((a|0)!=1){bc=b+16|0;return}ea(0)|0;yc();B()}function Nnb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;gc[J[a+156>>2]](d,c<<3)}gc[J[a+156>>2]](b,40);return 0}function L7(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a; -d=J[b+36>>2];if(!d)break a;gc[J[a+156>>2]](d,c+1|0)}gc[J[a+156>>2]](b,40);return 0}function Cca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=bc-16|0;bc=d;e=d+8|0;gc[J[J[a>>2]+12>>2]](e,a,b);bc=d+16|0;return J[e>>2]==J[c>>2]&J[e+4>>2]==J[c+4>>2]}function $La(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=rc(8);J[695492]=0;b=$(3184,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)return b|0;b=Z()|0;qc(a);ba(b|0);B()}function ztb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<3;b=b+1|0;c=c+1|0; -if((c|0)>2])continue;break}}return 0}function ytb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<7;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function wtb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<2;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function vra(a){a=a|0;var b=0;J[a>>2]=2420464;b=J[a+36>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;return iv(a)| -0}function utb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<6;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function stb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<4;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function lr(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=J[a+264>>2];if(d>>>0<=31){O[a+256>>3]=b+c+O[a+256>>3];e=(d<<3)+a|0;O[e>>3]=b;J[a+264>>2]=d+2;O[e+8>>3]=c}}function lRa(a,b,c){a=a|0;b=b|0;c=c| -0;c=J[a+8>>2];gc[J[J[c>>2]+312>>2]](c,J[a+28>>2],J[b>>2]==1?+J[b+8>>2]:O[b+8>>3],J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3])}function bd(a,b){var c=0,d=0;a:{if(!a)break a;c=Dzb(a,0,b,0);d=fc;if((a|b)>>>0<65536)break a;c=d?-1:c}a=zc(c);if(!(!a|!(K[a-4|0]&3)))wc(a,0,c);return a}function ZK(a){a=a|0;var b=0;J[a>>2]=349292;a:{if(!J[a+12>>2])break a;b=J[a+8>>2];if(!b)break a;gc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}Ed(a+20|0);return a|0}function VEa(a){a=a|0;J[a+64>>2]=2369932;J[a>>2]=2369892;J[a+12>>2]=2369744;J[a+ -8>>2]=2369912;if(H[a+55|0]<0)qc(J[a+44>>2]);Nh(a+12|0);Uf(a- -64|0);qc(a)}function Poa(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;a=hT(a,b,e,f,g,0,h,i,j,k);if(a){_7(a,c,d);qc(Ng(a))}}function Ll(a){var b=0,c=0;b=a*a;c=b*a;return Q(c*(b*b)*(b*2.718311493989822E-6+-1.9839334836096632E-4)+(c*(b*.008333329385889463+-.16666666641626524)+a))}function Kva(){var a=0;a=bc-32|0;bc=a;J[a+24>>2]=268;J[a+28>>2]=0;J[a+20>>2]=2411720;J[a+16>>2]=2378802;J[a+8>>2]=2411688; -J[a+12>>2]=2382582;UT(a+8|0);B()}function Atb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<1;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function yea(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=H[b|0];if((a|0)>=0)a=J[oy()+(H[b|0]<<2)>>2];H[b|0]=a;b=b+1|0;continue}break}return c|0}function vea(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=H[b|0];if((a|0)>=0)a=J[ny()+(H[b|0]<<2)>>2];H[b|0]=a;b=b+1|0;continue}break}return c|0}function uma(a, -b){a=a|0;b=b|0;b=J[b>>2];a=J[a+12>>2];if(!(K[a+2304|0]?(b|0)==1:0)){J[a+2232>>2]=b;a=a+1984|0;J[a+244>>2]=J[a+16>>2];J[a+16>>2]=b}return 0}function q9(a,b,c){var d=0;d=1;a:{if(!c)break a;c=(a|0)%3|0;if(c-1>>>0>=2){if(!c)break a;fa(198111,198921,130,211806);B()}d=(b+10|0)>(a|0)?1:2}return d}function lD(a){var b=0,c=0;b=jk(8);J[695492]=0;a=aa(1641,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){xa(a|0,2626720,34);B()}a=Z()|0;Lo(b);ba(a|0);B()}function kTa(a){a=a|0;var b=0,c=0,d=0;b=bc-16|0;bc=b;J[b>> -2]=13;a=cm(a,J[a+32>>2],807032,b);c=J[a+8>>2];d=J[a>>2];uc(a);bc=b+16|0;return((d|0)!=1?-1:c)|0}function U3a(a,b,c){a=a|0;b=b|0;c=c|0;a=J[J[a+8>>2]+188>>2];O[b>>3]=I[a+72>>1];O[c>>3]=I[a+70>>1];if(K[a+8|0]&8){O[b>>3]=I[a+198>>1];O[c>>3]=I[a+202>>1]}}function Gqa(a,b){a=a|0;b=b|0;J[a+200>>2]=1;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+224>>2]=0;J[a+228>>2]=0;H[a+49|0]=1;J[a+232>>2]=0;J[a+236>>2]=0}function Dp(a,b){var c=0;c=J[a+28>>2];if(J[a+16>>2]){a=gc[J[a+12>>2]](c,b)|0;return a}a=gc[J[a+36>> -2]](c,b)|0;b=a;a=(a|0)==-1;b=a?-1:b;fc=a?-1:0;return b}function zca(a,b){a=a|0;b=b|0;var c=0;c=a;if(K[b+11|0]>>>7|0)a=J[b>>2];else a=b;if(K[b+11|0]>>>7|0)b=J[b+4>>2];else b=K[b+11|0]&127;return HE(c,a,b)|0}function xab(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;var h=0;h=J[c>>2]>=0;J[a+508>>2]=h;return gc[J[J[a>>2]+288>>2]](a,h?c:b,d,e,f,g)|0}function wJ(a){a=a|0;var b=0,c=0;b=-1;a:{if(!a)break a;c=J[a+64>>2];if(!c)break a;b=0;if(!J[a+68>>2]|J[c+4>>2]!=1)break a;J[a+68>>2]=0;b=1}return b| -0}function uRa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+568>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.01;b=J[a+8>>2];gc[J[J[b>>2]+180>>2]](b,c);J[a+32>>2]=1}function sLa(a){a=a|0;var b=0,c=0;c=J[a+32>>2];a:{if(J[a+28>>2]){b=-1;if(!c)break a}J[a+32>>2]=c-1;a=J[a+24>>2];b=gc[J[J[a>>2]+28>>2]](a)|0}return b|0}function oUa(a){a=a|0;var b=0;b=J[a+276>>2];if(b){J[a+280>>2]=b;qc(b)}b=J[a+264>>2];if(b){J[a+268>>2]=b;qc(b)}if(H[a+227|0]<0)qc(J[a+216>>2]);qc(lh(a))}function dab(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;var h=0;h=J[c>>2]>=0;J[a+508>>2]=h;return gc[J[J[a>>2]+360>>2]](a,h?c:b,d,e,f,g)|0}function ae(a,b,c,d){var e=0;e=bc-16|0;bc=e;J[e+12>>2]=d;d=J[656713];if(d)gc[d|0](b,c,J[e+12>>2]);d=J[682313];if(d)gc[d|0](a,b,c,J[e+12>>2]);bc=e+16|0}function Xdb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+32&-64;return((a|0)>0?a:0)|0}a=0-((a-b|0)+32&-64)|0;return a>>31&a}function VL(a,b,c){var d=0;a:{if(c>>>0<2)break a;while(1){d=K[b|0];if(!d)break a;H[a|0]= -d;a=a+1|0;b=b+1|0;c=c-1|0;if(c>>>0>1)continue;break}}H[a|0]=0}function Udb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+63&-64;return((a|0)>0?a:0)|0}a=0-((a-b|0)+63&-64)|0;return a>>31&a}function Qdb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+16&-32;return((a|0)>0?a:0)|0}a=0-((a-b|0)+16&-32)|0;return a>>31&a}function Pnb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+40>>2];a:{if(!c)break a;d=J[b+44>>2];if(!d)break a;gc[J[a+156>>2]](d,c)}gc[J[a+156>>2]](b, -48);return 0}function Nc(a,b,c,d){var e=0;e=bc-16|0;bc=e;J[e+12>>2]=d;d=J[656714];if(d)gc[d|0](b,c,J[e+12>>2]);d=J[682311];if(d)gc[d|0](a,b,c,J[e+12>>2]);bc=e+16|0}function HX(a,b,c){var d=0;d=8;a:{if(c>>>0>8)break a;d=c;if(d)break a;return-1}if(b>>>0<=7)a=Wc(a+b|0,b+61552|0,b+d>>>0>8?8-b|0:d);else a=-1;return a}function Bea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];H[e|0]=a>>>0<128?a:d;e=e+1|0;b=b+4|0;continue}break}return c|0}function Avb(a,b){a=a|0;b=b|0;return W7(a, -L[b+28>>1],L[b+30>>1],K[b+32|0],L[b+34>>1],L[b+36>>1],L[b+38>>1],L[b+40>>1],L[b+42>>1],L[b+44>>1],K[b+46|0])|0}function $O(a,b,c){var d=0;d=bc-16|0;bc=d;J[695492]=0;J[d+12>>2]=c;_O(a,b,d+12|0);a=J[695492];J[695492]=0;if((a|0)!=1){bc=d+16|0;return}ea(0)|0;yc();B()}function zp(a,b){var c=0;a:{if(!a)break a;c=K[a|0];if(!c)break a;while(1){if((b|0)==(c|0))return a;c=K[a+1|0];a=a+1|0;if(c)continue;break}}return 0}function xYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=(b|0)<=1?1:b;d=b>>>0>=100?100:b;if(b>>>0<= -49){EJ(a,5E3/((d&65535)>>>0)|0,c);return}EJ(a,200-(d<<1)|0,c)}function vm(a){var b=0,c=0;if((a|0)>=0){b=-1;if(a)while(1){b=b+1|0;c=a>>>0>1;a=a>>>1|0;if(c)continue;break}return b}fa(200296,198759,113,211874);B()}function t6(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+540>>2];J[d>>2]=0;J[d+4>>2]=0;if(e)f=d,g=gc[J[e+84>>2]](a,b,c)|0,J[f>>2]=g;return 0}function pl(a){var b=0,c=0;b=jk(8);J[695492]=0;a=aa(33,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1){xa(a|0,2626668,34);B()}a=Z()|0;Lo(b); -ba(a|0);B()}function jSa(a){a=a|0;var b=0,c=0;b=rc(1072);J[695492]=0;a=aa(3388,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)return a|0;a=Z()|0;qc(b);ba(a|0);B()}function faa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+12>>2];e=J[a+8>>2]-d|0;c=(c|0)>(e|0)?e:c;tc(b,d+J[a>>2]|0,c);J[a+12>>2]=c+J[a+12>>2];return c|0}function fXa(a){a=a|0;var b=0,c=0;b=bc-16|0;bc=b;if(!K[a+220|0]){c=J[a+104>>2];J[b+12>>2]=2048;gc[J[J[c>>2]+312>>2]](c,b+12|0)|0;H[a+201|0]=0}bc=b+16|0}function dq(a){var b=0,c=0;if((a|0)> -0){if((a|0)!=1)while(1){b=b+1|0;c=a>>>0>3;a=a>>>1|0;if(c)continue;break}return b}fa(198044,198759,94,211860);B()}function bN(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;gc[J[a+156>>2]](d,c)}gc[J[a+156>>2]](b,44);return 0}function abb(a,b){a=a|0;b=b|0;var c=0;c=J[a+116>>2];if(c){gc[J[J[c>>2]+12>>2]](c)|0;J[a+116>>2]=0}if(b){J[a+116>>2]=b;gc[J[J[b>>2]+8>>2]](b)|0}return 0}function Wdb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b&-64; -return((a|0)<0?32:a|32)|0}a=a-b&-64;return((a|0)<-32?-32:a^-32)|0}function Mh(a){a:{a=J[a>>2];if(a){J[695492]=0;if(a)J[694782]=(a|0)==-1?2778984:a;a=J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function JE(a,b,c){var d=0;d=bc-16|0;bc=d;J[695492]=0;H[d+15|0]=c;eP(a,b,d+15|0);a=J[695492];J[695492]=0;if((a|0)!=1){bc=d+16|0;return}ea(0)|0;yc();B()}function F8(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;gc[J[a+156>>2]](d,c)}gc[J[a+156>>2]](b, -40);return 0}function C_(a){var b=0;b=J[a>>2];J[a>>2]=0;if(b){a:{if(!K[a+8|0])break a;if(H[b+39|0]<0)qc(J[b+28>>2]);if(H[b+27|0]>=0)break a;qc(J[b+16>>2])}qc(b)}}function As(a,b){a=a|0;b=b|0;J[a+20>>2]=b;if(b>>>0>=32768){hv(a,1-(J[a+32>>2]>>>15|0)|0);J[a+32>>2]=J[a+32>>2]<<1&65534;J[a+20>>2]=J[a+20>>2]<<1&65534}}function yJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+116>>2];b=J[a+160>>2];if(b)Gc(b);b=vd(d,4);J[a+160>>2]=b;tc(b,c,d<<2);J[a+200>>2]=0;J[a+164>>2]=d}function lda(a,b){a=a|0;b=b|0;var c=0, -d=0,e=0,f=0;c=Qc(b);d=rc(c+13|0);J[d+8>>2]=0;J[d+4>>2]=c;J[d>>2]=c;e=a,f=tc(d+12|0,b,c+1|0),J[e>>2]=f;return a|0}function lab(a){a=a|0;var b=0;b=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;a=J[a+4>>2];H[a+25|0]=0;J[a+20>>2]=0;J[a>>2]=0;b=0}return b|0}function hka(a,b){a=a|0;b=b|0;var c=0,d=0;uS(a,b);c=O[b+208>>3];d=O[a+96>>3];O[a+96>>3]=d==0?c:c>3];d=O[a+104>>3];O[a+104>>3]=c>d?c:d}function hea(a){a=a|0;var b=0;a=J[a+8>>2];if(!a)return 1;J[695492]=0;a=$(6763,a|0)|0;b=J[695492]; -J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function e6a(a){a=a|0;var b=0,c=0;b=rc(336);J[695492]=0;a=aa(2387,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)return a|0;a=Z()|0;qc(b);ba(a|0);B()}function Z5a(a){a=a|0;var b=0;J[a>>2]=349292;a:{if(!J[a+12>>2])break a;b=J[a+8>>2];if(!b)break a;gc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}Ed(a+20|0);qc(a)}function XN(a,b){a=a|0;b=b|0;return((P(K[a+1|0],601)+P(K[a|0],117)|0)+P(K[a+2|0],306)>>>10)-((P(K[b+1|0],601)+P(K[b|0],117)|0)+P(K[b+2|0],306)>>>10)|0} -function Rfa(a,b){a=a|0;b=b|0;J[a+556>>2]=602;J[a+548>>2]=602;J[a+540>>2]=602;J[a+568>>2]=603;J[a+560>>2]=604;J[a+552>>2]=604;J[a+544>>2]=604;return 1}function POa(a){a=a|0;var b=0,c=0;b=rc(336);J[695492]=0;a=aa(3427,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)return a|0;a=Z()|0;qc(b);ba(a|0);B()}function Asa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c+12>>2]=J[a+12>>2]+b;gc[J[J[a>>2]+60>>2]](a,c+12|0)|0;bc=c+16|0;return J[c+12>>2]-J[a+12>>2]|0}function Ai(a){var b=0,c=0;a:{if(!a)break a;b=J[a>> -2];if(!b)break a;c=J[b+8>>2];J[b+8>>2]=c-1;if((c|0)<=1){c=J[b+20>>2];if(c)qc(c);qc(b)}J[a>>2]=0}}function vzb(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)==12){c=-1;a:{if(Ye(b,a+12|0))break a;if(Ye(b,a+16|0))break a;c=Ye(b,a+20|0)?-1:0}return c|0}ra();B()}function ura(a){a=a|0;var b=0;J[a>>2]=2420464;b=J[a+36>>2];if(b)gc[J[J[b>>2]+4>>2]](b);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;qc(iv(a))}function sea(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;while(1){if((b|0)!=(c|0)){a=H[b|0];H[e|0]=(a|0)<0?d:a; -e=e+1|0;b=b+1|0;continue}break}return c|0}function pu(a,b,c,d,e){var f=0,g=0;f=e-255|0;g=P(f,c);c=e<<8;return(g-c|0)+65535&-256|a<<24|(P(d,f)-c|0)+65535>>8|16776960-(c+P(255-e|0,b)<<8)&-65536}function iw(a){var b=0;b=J[a+40>>2];if(b)qc(tt(b));b=J[a+24>>2];if(b)qc(b);b=J[a+12>>2];if(b){J[a+16>>2]=b;qc(b)}b=J[a>>2];if(b){J[a+4>>2]=b;qc(b)}}function dba(a){a=a|0;var b=0,c=0;b=bc-224|0;bc=b;c=b+16|0;gc[J[J[a>>2]+12>>2]](a,c);a=J[J[a+828>>2]+628>>2];J[b>>2]=c;ae(a,75515,75925,b);bc=b+224|0}function cCa(a, -b){a=a|0;b=b|0;var c=0,d=0;c=rc(12);J[c>>2]=0;J[c+4>>2]=0;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;b=J[b>>2]}else b=0;J[c+8>>2]=b;of(a,c)}function Ws(a,b){var c=0;a:{if(a-1>>>0>253)break a;c=V(We(+(a>>>0)/255,+(b|0)*1E-5)*255+.5);if(c<4294967296&c>=0){a=~~c>>>0;break a}a=0}return a&255}function UG(a){a=a|0;var b=0,c=0;J[a>>2]=2381060;b=J[a+4>>2];a:{if(!b)break a;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break a;gc[J[J[b>>2]+4>>2]](b)}qc(a)}function O9a(a,b){a=a|0;b=b|0;var c=0;a=J[a+16>>2];c=J[a+1576>>2];if(c)gc[J[J[c>> -2]+12>>2]](c)|0;J[a+1576>>2]=b;if(b)gc[J[J[b>>2]+8>>2]](b)|0;vC(a)}function Ls(a){a=a|0;var b=0,c=0;b=J[a+84>>2];a:{if((b|0)>=0)break a;b=-1;c=J[a+16>>2];if(!c)break a;b=Ls(c);b=(b|0)<0?-1:b-J[a+80>>2]|0}return b|0}function Gzb(a){var b=Q(0),c=Q(0);b=Q(V(a));c=Q(a-b);if(!(cQ(.5))return a;c=a;a=Q(b*Q(.5));b=Q(a-Q(V(a)))==Q(0)?b:c}return b}function Glb(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c+12>>2]=b;a=J[a+16>>2];if(a)a=gc[J[J[a>>2]+12>>2]](a,c+12|0)|0;else a=0;bc=c+16|0; -return a|0}function vf(a,b,c){var d=0;a:{if(b>>>0<=2147483646){d=b+1|0;if((d|0)>2])break a}J[c>>2]=0;return 0}a=J[a+8>>2];return K[a+b|0]<<8|K[a+d|0]}function r2(a,b,c){var d=0,e=0;d=+N[b>>2];e=+N[c>>2];N[b>>2]=O[a+56>>3]+(d*O[a+24>>3]+O[a+40>>3]*e);N[c>>2]=O[a- -64>>3]+(d*O[a+32>>3]+O[a+48>>3]*e)}function q8(a){var b=0,c=0;a:{if(K[a+346|0])break a;H[a+346|0]=1;b=J[a+168>>2];if(!b)break a;if(gc[b|0](a)|0)break a;c=901;Dc(a,901,0,0)}return c}function pDa(a){a=a|0;var b=0,c=0;J[a>>2]=2381060; -b=J[a+4>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)gc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}return a|0}function mmb(a){a=a|0;var b=0,c=0;a:{c=J[a+4>>2];if(c){b=J[a+16>>2];if((b|0)>2])break a}H[a+24|0]=1;return-1}J[a+16>>2]=b+1;return K[b+c|0]}function mEa(a,b){a=a|0;b=b|0;var c=0,d=0;c=bc-16|0;bc=c;d=An(b,46);a:{if((d|0)==-1){J[a>>2]=0;H[a+11|0]=0;break a}Bm(a,b,d+1|0,-1,c+15|0)}bc=c+16|0}function kca(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(pj(a,J[b+8>>2],f)){vE(b,c,d,e);return}a=J[a+ -8>>2];gc[J[J[a>>2]+20>>2]](a,b,c,d,e,f)}function dj(a,b,c,d,e){var f=0;f=J[a+16>>2];if(f)return gc[f|0](J[a+28>>2],b,c,d,e)|0;if(d)a=-1;else a=gc[J[a+40>>2]](J[a+28>>2],b,c,e)|0;return a}function Rvb(a,b){a=a|0;b=b|0;return e8(a,L[b+30>>1],L[b+28>>1],K[b+32|0],H[b+33|0],K[b+34|0],K[b+35|0],H[b+36|0],K[b+37|0],J[b+40>>2],J[b+44>>2])|0}function RV(a){a=a|0;var b=0,c=0,d=0;b=J[a+60>>2];if((b|0)!=J[a+56>>2]){c=b-8|0;d=J[c>>2];if(!(!d|!K[c+4|0])){qc($G(d));b=J[a+60>>2]}J[a+60>>2]=b-8}}function Kba(a){a= -a|0;var b=0,c=0;b=bc-224|0;bc=b;c=b+16|0;gc[J[J[a>>2]+12>>2]](a,c);a=J[J[a+12>>2]+628>>2];J[b>>2]=c;ae(a,90031,90052,b);bc=b+224|0}function uP(a,b,c){var d=0,e=0,f=0;d=bc-16|0;bc=d;e=d,f=tP(b),J[e+12>>2]=f;e=d,f=tP(c),J[e+8>>2]=f;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+8>>2];bc=d+16|0}function sTa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a>>2]=d;J[a+4>>2]=0;kh(a,d);tc(J[a+4>>2],J[b+4>>2]+c|0,J[a>>2]);H[J[a+4>>2]+J[a>>2]|0]=0;return a|0}function jmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=a?J[a+180>>2]:0;if(d)if((gc[J[J[d>> -2]+12>>2]](d,b,1,c,0,0)|0)==(c|0))break a;Ad(a,45165);B()}}function hia(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+40>>2];while(1){if(c){c=c-1|0;d=c<<2;gc[J[J[a+32>>2]+d>>2]](b,a,J[d+J[a+36>>2]>>2]);continue}break}}function LMa(a,b,c,d,e){a=a|0;b=+b;c=+c;d=d|0;e=e|0;O[d>>3]=O[a+88>>3]+(O[a+56>>3]*b+O[a+72>>3]*c);O[e>>3]=O[a+96>>3]+(O[a- -64>>3]*b+O[a+80>>3]*c)}function Cl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!J[a+964>>2])break a;if(!Yx(a,b,c))break a;d=K[(J[a+964>>2]+P(J[a+16>>2],c)|0)+b|0]}return d|0} -function A5(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-16|0;bc=c;J[b>>2]=0;d=Zd(a,4,c+12|0);e=J[c+12>>2];if(!e){J[d>>2]=a;J[b>>2]=d}bc=c+16|0;return e|0}function dz(a,b){var c=0;c=J[J[a>>2]+20>>2];J[695492]=0;a=aa(c|0,a|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)return a-9>>>0<2;ea(0)|0;yc();B()}function Wib(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];rn(c,b);J[a+24>>2]=J[c+204>>2]<<6;J[a+28>>2]=0-(J[c+208>>2]<<6);J[a+36>>2]=I[c+236>>1]<<6;return 0}function K5(a,b){var c=0,d=0;if(!(!a|!b)){c=J[a>>2];if(c)while(1){d= -J[c+4>>2];gc[J[b+8>>2]](b,c);c=d;if(c)continue;break}J[a>>2]=0;J[a+4>>2]=0}}function Ew(a){var b=0;b=bc-16|0;bc=b;a:{if(a){J[b>>2]=a;Cc(0,0,0,0,0,2,2,3,a,0,0,0,32863,b);break a}Cc(0,0,0,0,0,2,2,3,0,0,0,0,36013,0)}bc=b+16|0}function zhb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;b=bc-16|0;bc=b;J[b+12>>2]=a;a=K8(b+12|0);bc=b+16|0;return a<<24>>24}function u4a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(!J[a+8>>2])return 0;f=a+16|0;t2(f,b,c,N[d>>2],N[e>>2]);d2(J[a+8>>2], -f);return 1}function t4a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(!J[a+8>>2])return 0;f=a+16|0;t2(f,b,c,N[d>>2],N[e>>2]);PK(J[a+8>>2],f);return 1}function qGa(a){a=a|0;var b=0,c=0;b=J[J[a+4>>2]+12>>2];if(b){dH(b);b=J[a+4>>2];c=J[b+12>>2];if(c){qc(nW(c));b=J[a+4>>2]}J[b+8>>2]=0;J[b+12>>2]=0}}function k5(a,b){a=a|0;b=b|0;var c=0;a:{if(!b)break a;a=J[a+12>>2];if((I[a+22>>1]+b|0)+I[a+58>>1]>>>0<=M[a+4>>2])break a;c=sh(a,b,0)}return c|0}function UFa(a,b,c){a=a|0;b=b|0;c=c|0;if(H[c+11|0]>=0){b= -J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=b;J[a+8>>2]=J[c+8>>2];return}Re(a,J[c>>2],J[c+4>>2])}function U0(a,b,c){a=a|0;b=b|0;c=c|0;if(V0(a,J[a+52>>2]+2|0,c)){c=J[a+52>>2];J[a+52>>2]=c+1;H[c+J[a>>2]|0]=b;H[J[a>>2]+J[a+52>>2]|0]=0}return a|0}function $Va(a){a=a|0;var b=0,c=0,d=0;c=-1;b=J[a+8>>2];a:{if(!b)break a;d=b;b=J[a+12>>2];if(d>>>0<=b>>>0)break a;c=K[b+J[a+16>>2]|0]}return c|0}function $Da(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;c=K[b+11|0];d=c<<24>>24<0;xv(a,d?J[b>>2]:b,1,d? -J[b+4>>2]:c);return a|0}function yjb(a,b){a=a|0;b=b|0;var c=0;c=J[a+20>>2];J[b>>2]=c<<6;J[b+8>>2]=c+J[a+32>>2]<<6;c=J[a+24>>2];J[b+12>>2]=c<<6;J[b+4>>2]=c-J[a+28>>2]<<6}function n4a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+8>>2];if(!d)return 0;a=bc-16|0;bc=a;aM(J[d+188>>2],b,c,a+8|0);bc=a+16|0;return J[a+8>>2]>>6}function ch(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;J[a+4>>2]=c;J[a>>2]=b;if(!c){J[b>>2]=0;return a|0}e=b,f=rc(P(c,d)),J[e>>2]=f;return a|0}function cR(a,b,c){var d=0;d=bc-144|0;bc=d; -d=wc(d,0,144);J[d+76>>2]=-1;J[d+44>>2]=a;J[d+32>>2]=6523;J[d+84>>2]=a;a=fR(d,b,c);bc=d+144|0;return a}function Yfb(a){a=a|0;var b=0,c=0;J[a+28>>2]=0;b=J[a+36>>2];a:{if(!b)break a;c=J[a+32>>2];if(!c)break a;if(c)gc[J[b+8>>2]](b,c);J[a+32>>2]=0}}function Xx(a,b){a=a|0;b=b|0;var c=0,d=0;if(J[a+4>>2]){d=b?-1:0;c=b;b=L[a+26>>1];c=(b|0)==1?d:c;wc(J[a+56>>2],(b|0)==4?P(c&15,17):c,J[a+32>>2])}}function Wlb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a>>2];return gc[J[J[f>>2]+48>>2]](f,b,c,d,1,J[a+ -8>>2],e,(e|0)!=16777215,255)|0}function Vy(a){var b=0,c=0;b=bc-16|0;bc=b;c=-1;a:{if(Wy(a))break a;if((gc[J[a+32>>2]](a,b+15|0,1)|0)!=1)break a;c=K[b+15|0]}bc=b+16|0;return c}function Vl(a,b){a=a|0;b=b|0;var c=0;J[a+4>>2]=J[b+4>>2];c=K[b+8|0];H[a+8|0]=c;b=J[b>>2];J[a>>2]=b;if(!(!c|!b))J[b+4>>2]=J[b+4>>2]+1;return a|0}function Omb(a){a=a|0;var b=0;if(J[a+4>>2])a=0;else{J[a+8>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=zc(1);H[a+12|0]=1;J[a+4>>2]=b;a=(b|0)!=0}return a|0}function KMa(a,b,c,d,e){a=a|0;b=+b;c=+c; -d=d|0;e=e|0;O[d>>3]=O[a+40>>3]+(O[a+8>>3]*b+O[a+24>>3]*c);O[e>>3]=O[a+48>>3]+(O[a+16>>3]*b+O[a+32>>3]*c)}function yo(a,b,c,d){if(c)J[c>>2]=0;if(d)J[d>>2]=0;if(!a)return;if(c)N[c>>2]=N[J[a+12>>2]+(b<<2)>>2];if(d)N[d>>2]=N[J[a+16>>2]+(b<<2)>>2]}function y2(a,b){var c=0;if(H[b+19|0]>=0){b=b+8|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Re(a,J[b+8>>2],J[b+12>>2])}function wR(a){var b=0,c=0,d=0,e=0;b=J[a>>2]-1|0;b=(c=Czb(b),d=0,e=b,e?c:d);if(!b){a=J[a+4>>2];a=(c=Czb(a),d=0,e=a, -e?c:d);b=a?a+32|0:0}return b}function op(a,b){var c=0,d=0,e=0;d=J[a>>2];e=J[b>>2];c=1;a:{if((d|0)<(e|0))break a;c=0;if((d|0)!=(e|0))break a;c=J[a+4>>2]>2]}return c}function oS(a){var b=0;b=J[a+56>>2];return(K[a+96|0]+(K[a+90|0]+(K[a+89|0]+(K[a+88|0]+(K[b+408|0]+K[b+409|0]|0)|0)|0)|0)&255)+(J[a+84>>2]!=0)|0}function hmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=a?J[a+180>>2]:0;if(d)if((gc[J[J[d>>2]+16>>2]](d,b,1,c)|0)==(c|0))break a;Ad(a,45358);B()}}function gJa(a){a=a|0;var b=0;J[a>>2]=2335792; -while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function Tjb(a){a=a|0;var b=0,c=0;a=J[a>>2];b=K[a|0];if(b)while(1){c=(b<<24>>24)+P(c,31)|0;b=K[a+1|0];a=a+1|0;if(b)continue;break}return c|0}function Td(a,b,c,d){var e=0;e=P(b,c);a:{if(J[d+76>>2]<0){a=Ty(a,e,d);break a}a=Ty(a,e,d)}if((e|0)==(a|0))return b?c:0;return(a>>>0)/(b>>>0)|0}function MN(a,b){var c=0;c=zc(8);if(c){a:{if((b|0)>0){if(!a){J[c+4>>2]=2635488;break a}J[c+4>>2]=2635472;break a}J[c+4>> -2]=0}J[c>>2]=b}return c}function Jaa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];if((b|0)==65557){J[J[c>>2]>>2]=J[d+120>>2];return 1}return gc[J[d+128>>2]](a,b,c)|0}function u0a(a,b){a=a|0;b=b|0;a:{if(b>>>0<=1){H[a+36|0]=0;J[a+44>>2]=16777216;if((b|0)==1)break a}J[a+52>>2]=J[a+52>>2]&-268435456|16777216}}function nv(a,b){var c=0,d=0;c=Qc(b);d=J[a>>2];if(d){qc(d);J[a>>2]=0}a:{if(!b)break a;d=a;c=c+1|0;a=zc(c);J[d>>2]=a;if(!a)break a;Ne(a,b,c)}}function mZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[c+8>> -2]=0;J[c>>2]=0;J[c+4>>2]=0;a=65536-J[b>>2]|0;a=(a|0)>=65536?65536:a;J[c+12>>2]=(a|0)>0?a:0}function Upb(a,b){a=a|0;b=b|0;var c=0;if(K[b+32|0])return ue(a,J[b>>2],0,0)|0;c=J[a+428>>2];H[c+8|0]=K[b+33|0];return ue(a,J[b>>2],1,c+8|0)|0}function OD(a){a:{if(!K[a+496|0])break a;if(!(gc[J[a+240>>2]](a,1)|0)){Dc(a,902,0,0);return 902}if(!K[a+496|0])break a;H[a+497|0]=1}return 0}function Mc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!(J[a+12>>2]>(b|0)&(b|0)>=0)){J[c>>2]=5;return c|0}return hf(J[a+4>>2]+(b<<4)|0, -J[a>>2],c,d)|0}function Bz(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];d=J[c>>2];J[c>>2]=J[J[b>>2]>>2];J[J[b>>2]>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c}function $Ga(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;return Xs(J[a>>2],b,c,d,e,f,g,h,i,j,k)|0}function v0a(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+28>>2]&15;if(b>>>0<=1){H[a+36|0]=0;J[a+44>>2]=16777216;J[a+52>>2]=b<<28|16777216;return}J[c>>2]=1}function sab(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a:{if(!J[a+ -16>>2])break a;a=J[a+20>>2];if(!a)break a;Zj(a,O[b>>3],O[c>>3]);d=0}return d|0}function rab(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;gn(a,O[b>>3],O[c>>3]);d=0}return d|0}function oI(a){a=a|0;var b=0;J[a>>2]=2205444;b=J[a+4>>2];if(b)qc(Rc(b));b=J[a+16>>2];if(b)qc(Rc(b));b=J[a+28>>2];if(b)qc(Rc(b));return a|0}function nOa(a){a=a|0;var b=0;J[a>>2]=2305576;b=J[a+20>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function jP(a, -b){J[a>>2]=2626404;J[a>>2]=2626512;J[695492]=0;aa(7029,a+4|0,b|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)return a;ba(Z()|0);B()}function dM(a,b){a:{if(!a)break a;a=J[a>>2];if(!a)break a;while(1){if(J[a+8>>2]==(b|0))return a;a=J[a+4>>2];if(a)continue;break}}return 0}function Yva(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;Sl(a,c,d);return a|0}function Oba(a,b){a=a|0;b=b|0;var c=0;if(b)c=0;else{b=rc(464);wc(b,0,464);c=1}H[a+512|0]=c;J[a>> -2]=b;H[a+4|0]=0;wc(a+260|0,0,252);return a|0}function Ml(a){var b=0;a=a*a;b=a*a;return Q(a*b*(a*2.439044879627741E-5+-.001388676377460993)+(b*.04166662332373906+(a*-.499999997251031+1)))}function uob(a,b){a=a|0;b=b|0;var c=0;c=J[a+428>>2];H[c+8|0]=K[b+32|0];H[c+9|0]=K[b+33|0];H[c+10|0]=K[b+34|0];return ue(a,J[b>>2],3,c+8|0)|0}function jv(a){var b=0,c=0;c=J[a+24>>2];if(c)while(1){b=J[c>>2];qc(c);J[a+24>>2]=b;c=b;if(b)continue;break}b=J[a>>2];if(b)qc(b);return a}function gOa(a){a=a|0;var b=0;J[a>>2]= -2305636;b=J[a+8>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function eYa(a){a=a|0;var b=0;a=a?J[a+8>>2]:0;if(a){b=J[a+4>>2];if(b)gc[J[659451]](b);b=J[a+12>>2];if(b)gc[J[659451]](b);gc[J[659451]](a)}}function _w(){var a=0,b=0,c=0;b=rc(44);J[695492]=0;a=$(2270,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)return a|0;a=Z()|0;qc(b);ba(a|0);B()}function HUa(a){a=a|0;var b=0;J[a>>2]=840356;b=J[a+16>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)qc(J[a+ -4>>2]);return a|0}function Fma(a,b){a=a|0;b=b|0;a=J[a+12>>2];b=J[b>>2];J[a+480>>2]=b&1;H[a+489|0]=(b&128)>>>7;H[a+488|0]=b>>>2&31;J[a+484>>2]=b>>>1&1;return 0}function rh(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a+92>>2];if(!c)break a;b=gc[J[J[c+12>>2]+12>>2]](c,b)|0;d=b>>>0>2]?b:0}return d}function nhb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a:{if(c)break a;d=J[a>>2];c=R4(a+16|0,b,d);if(c)break a;c=R4(a+52|0,b,d)}return c|0}function gL(){var a=0,b=0,c=0;b=rc(712);J[695492]=0;a=$(2268,b|0)| -0;c=J[695492];J[695492]=0;if((c|0)!=1)return a;a=Z()|0;qc(b);ba(a|0);B()}function fL(){var a=0,b=0,c=0;b=rc(124);J[695492]=0;a=$(2271,b|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)return a;a=Z()|0;qc(b);ba(a|0);B()}function Waa(a,b){a=a|0;b=b|0;b=zc(4);J[a+584>>2]=b;if(!b)return 0;a:{if(K[a+13|0]&4){b=Km(a);break a}b=_i(a)}J[J[a+584>>2]>>2]=b;return 1}function Qv(a){var b=0,c=0;b=rc(8);J[695492]=0;a=aa(3183,b|0,a|0)|0;c=J[695492];J[695492]=0;if((c|0)!=1)return a;a=Z()|0;qc(b);ba(a|0);B()}function P7(a, -b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2]+8|0;c=J[b+32>>2];a:{if(!c){c=0;break a}tc(d,J[b+36>>2],c)}return ue(a,J[b>>2],c,d)|0}function Ni(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=b-1|0;e=d<<2;c=J[e+J[a+12>>2]>>2];if(!c){CI(a,b,d,J[a+8>>2]);c=J[J[a+12>>2]+e>>2]}return c|0}function Jk(a){a=a|0;var b=0,c=0;if(!J[a+964>>2]){c=a;b=P(J[a+20>>2],J[a+16>>2]);a=zc(b);J[c+964>>2]=a;if(!a)return 0;wc(a,255,b)}return 1}function Hnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1732332865){Dc(a,2050,0,0);return 2050}H[b+32| -0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];return 0}function HGa(a){a=a|0;var b=0;if(a){b=J[a+116>>2];if(b){qc(b);J[a+116>>2]=0}b=J[a+120>>2];if(b){qc(b);J[a+120>>2]=0}qc(J[a+148>>2]);qc(a)}}function F5a(a,b){a=a|0;b=b|0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]=1;J[a>>2]=349684;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;M2(a,b);return a|0}function CXa(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;a=J[a+104>>2];O[c+8>>3]=O[b+480>>3]/72*25.4;gc[J[J[a>>2]+124>>2]](a,c+8|0)|0;bc=c+16|0}function CJa(a,b,c){a=a|0;b=b|0;c=c|0; -var d=0,e=0;a=J[a+116>>2];gY(a);if(c){e=O[c+96>>3];d=O[c+104>>3]}else d=0;O[a+112>>3]=e;O[a+120>>3]=d}function $wa(a){a=a|0;var b=0;J[a>>2]=2406148;b=J[a+36>>2];if(b)qc(Bd(b));b=J[a+64>>2];if(b)qc(Bd(b));xd(a+40|0);xd(a+8|0);return ed(a)|0}function zr(a,b){var c=0;a:{if(!a|!b|(!J[a+72>>2]|!K[b|0]))break a;b=zi(b,J[a+92>>2]);if(!b)break a;c=J[a+80>>2]+(J[b>>2]<<4)|0}return c}function qq(a){a=a|0;var b=0;a=J[a>>2];b=J[a+12>>2];a:{if((b|0)==J[a+16>>2]){a=gc[J[J[a>>2]+36>>2]](a)|0;break a}a=K[b|0]}return a<< -24>>24}function oVa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=bc-16|0;bc=f;g=f+4|0;I_(g,b,c,d,e,a+196|0,3);cl(g,J[f+8>>2]);bc=f+16|0}function ls(a,b){var c=0,d=0;c=Qc(a)+1|0;d=b&255;while(1){a:{b=0;if(!c)break a;c=c-1|0;b=c+a|0;if((d|0)!=K[b|0])continue}break}return b}function dJa(a){a=a|0;var b=0;J[a>>2]=2335792;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];gc[J[J[b>>2]+4>>2]](b);continue}break}qc(a)}function Vdb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+ -b&-64;return((a|0)>0?a:0)|0}a=0-(a-b&-64)|0;return a>>31&a}function Qia(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];if((b|0)==65560){J[J[c>>2]>>2]=J[d>>2];return 1}return gc[J[d+24>>2]](a,b,c)|0}function Lt(a,b){a:{if(a>>>0>21)break a;J[(a<<2)+2757904>>2]=b;J[695492]=0;a=J[695492];J[695492]=0;if((a|0)!=1)break a;ea(0)|0;yc();B()}}function Ehb(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[J[b+488>>2]+4>>2];if(!c)return 7;return gc[c|0](J[b+100>>2],a,J[b+420>>2],1679,0,b)|0}function BXa(a,b){a=a|0;b=b| -0;var c=0;c=bc-16|0;bc=c;a=J[a+104>>2];O[c+8>>3]=O[b+440>>3]/72*25.4;gc[J[J[a>>2]+68>>2]](a,c+8|0)|0;bc=c+16|0}function tlb(a,b){a=a|0;b=b|0;var c=0;c=J[b+92>>2];J[a+40>>2]=L[b+68>>1];a:{if(VC(b)){J[b+92>>2]=0;break a}Y6(a,b);X6(a)}wr(b,c);return 0}function tNa(a){a=a|0;var b=0;J[a>>2]=2307392;b=J[a+4>>2];if(b)qc(Rc(b));b=J[a+8>>2];if(b)qc(b);b=J[a+12>>2];if(b)qc(Rc(b));return a|0}function hh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!J[a+964>>2])break a;if(!Yx(a,b,c))break a;H[(J[a+964>>2]+P(J[a+16>> -2],c)|0)+b|0]=d}}function bnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1716539977){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];return 0}function _oa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!(!a|(b|0)>(c|0)))while(1){sc((b<<3)+a|0);d=(b|0)!=(c|0);b=b+1|0;if(d)continue;break}}function Sua(a,b,c){a=a|0;b=b|0;c=c|0;J[a+92>>2]=J[a+92>>2]+b;J[a+100>>2]=J[a+100>>2]+b;J[a+96>>2]=J[a+96>>2]+c;J[a+104>>2]=J[a+104>>2]+c}function Mfb(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[J[b+544>>2]+4>>2];if(!c)return 7; -return gc[c|0](J[b+100>>2],a,J[b+16>>2],1704,0,b)|0}function Hx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!J[a+960>>2])break a;if(!Yx(a,b,c))break a;H[(J[a+960>>2]+P(J[a+16>>2],c)|0)+b|0]=d}}function Cwb(a){a=a|0;var b=0,c=0;J[a>>2]=212552;b=J[a+4>>2];if(b){a:{if(J[b>>2]!=2)break a;c=J[b+4>>2];if(!c)break a;qc(c)}qc(b)}qc(a)}function AJa(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=i|0;j=j|0;k=k|0;l=l|0;fY(J[a+116>>2],b,c,d,e,f,i,j,k,l)}function wub(a){a=a|0;var b=0;b=J[a+540>> -2];tc(J[b+1176>>2]+P(J[b+1168>>2],J[a+2552>>2])|0,J[a+2516>>2],P(J[a+588>>2],3));return TD(a)|0}function sja(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b;b=J[b>>2]+7&-8;J[c>>2]=b+16;d=a,e=Gy(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2]),O[d>>3]=e}function qoa(a,b){a=a|0;b=b|0;var c=0;c=b;a=J[a+12>>2];b=J[a+792>>2]!=0;J[c>>2]=(J[a+796>>2]?b|2:b)|K[a+800|0]<<2|K[a+801|0]<<7;return 0}function o1a(a){a=a|0;var b=0;b=J[a+40>>2];if(b)Gf(b);if(K[a+30|0])Gf(J[a+36>>2]);b=J[a+220>>2];if(b)aC(b);a=J[a+212>>2];if(a)Gf(a)} -function ni(a,b,c,d,e){var f=0;f=bc-16|0;bc=f;J[f+12>>2]=c;J[f+8>>2]=e;c=Gl(f+4|0,f+12|0);a=Il(a,b,d,J[f+8>>2]);Mh(c);bc=f+16|0;return a}function lOa(a){a=a|0;var b=0;J[a>>2]=2305576;b=J[a+20>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(a)}function hW(a){a=a|0;J[a+60>>2]=2369588;J[a>>2]=2369568;J[a+8>>2]=2369744;if(H[a+51|0]<0)qc(J[a+40>>2]);Nh(a+8|0);Uf(a+60|0);return a|0}function ft(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-768|0;bc=d;a:{if(!a)break a;if(b){J[d+668>> -2]=c;gc[b|0](d,a);break a}qc(a)}bc=d+768|0}function fK(a,b){J[a+28>>2]=b;J[a+24>>2]=3054;J[a+20>>2]=3055;J[a+16>>2]=3056;J[a+12>>2]=3057;J[a+8>>2]=3058;J[a+4>>2]=3059;J[a>>2]=3060}function eNa(a){a=a|0;var b=0;J[a>>2]=2307560;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function dia(a,b){a=a|0;b=b|0;J[a+20>>2]=0;J[a+24>>2]=b;J[a+12>>2]=0;J[a+4>>2]=4098;J[a+8>>2]=6;J[a+16>>2]=!b;wc(a+32|0,0,40);PE(a+28|0)}function cg(a,b){var c=0;if(!(!a|(b|0)<0)){if(J[a>> -2]<=(b|0))return 0;c=J[J[a+12>>2]+(b<<2)>>2];if(c)J[c+16>>2]=J[c+16>>2]+1}return c}function XLa(a){a=a|0;var b=0;J[a>>2]=2330896;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)!=1)return a|0;ea(0)|0;yc();B()}function Rua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!(J[a+100>>2]<=(b|0)|J[a+92>>2]>(b|0)|J[a+96>>2]>(c|0)))d=J[a+104>>2]>(c|0);return d|0}function Or(a,b){var c=0;if(J[a>>2]>=0)while(1){if(!Ec(J[a+4>>2],b))return a;c=J[a+8>>2];a=a+8|0;if((c|0)>=0)continue;break}return 0}function Nh(a){a= -a|0;var b=0,c=0;J[a>>2]=2613448;b=J[a+4>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)gc[J[J[b>>2]+8>>2]](b);return a|0}function JMa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=wc(a,0,256);d=K[J[b>>2]+c|0];b=K[J[b+4>>2]+c|0];J[a+32>>2]=d-b<<5;J[a>>2]=(b+d<<5)+-8192}function IN(a){var b=0,c=0;b=zc(16);if(b){c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;c=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=c}return b}function Gx(a,b,c){a=a|0;b=b|0;c=c|0;J[a+20>>2]=c;J[a+16>>2]=0;J[a+4>>2]=b;J[a>>2]=47656;H[a+24|0]=0;J[a+8>> -2]=c;H[a+12|0]=!b;return a|0}function Fy(a){a=a|0;var b=0,c=0;J[a>>2]=2613288;b=J[a+4>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)gc[J[J[b>>2]+8>>2]](b);return a|0}function $B(a){var b=0,c=0;b=J[a>>2];a:{if(b){if((b|0)!=1)break a;while(1){if(J[a>>2]==1)continue;break}break a}c=1;J[a>>2]=1}return c}function x4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!J[a+8>>2])return 0;e=a+16|0;s2(e,b,N[c>>2],N[d>>2]);d2(J[a+8>>2],e);return 1}function w4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!J[a+8>>2])return 0; -e=a+16|0;s2(e,b,N[c>>2],N[d>>2]);PK(J[a+8>>2],e);return 1}function uE(a,b,c,d,e,f){var g=0,h=0;g=J[a+4>>2];h=g>>8;a=J[a>>2];if(g&1)h=J[J[d>>2]+h>>2];gc[J[J[a>>2]+20>>2]](a,b,c,d+h|0,g&2?e:2,f)}function qD(a){var b=0,c=0,d=0;b=bd(1,16);a:{if(!b)break a;c=(a|0)<=0?20:a;a=bd(c,4);J[b+8>>2]=a;if(!a)break a;J[b>>2]=c;d=b}return d}function eOa(a){a=a|0;var b=0;J[a>>2]=2305636;b=J[a+8>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(a)}function Zd(a,b,c){if((b|0)<=0){J[c>>2]= -b?6:0;return 0}a=gc[J[a+4>>2]](a,b)|0;if(!a){J[c>>2]=64;return 0}a=wc(a,0,b);J[c>>2]=0;return a}function Xia(a){a=a|0;J[a>>2]=2613448;PE(a+4|0);J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function Wta(a){a=a|0;J[a>>2]=2413548;_c(a+104|0);_c(a+92|0);_c(a+80|0);_c(a+68|0);J[a>>2]=2413388;_c(a+56|0);_c(a+44|0);return ed(a)|0}function KW(a,b,c){var d=0;if(!(!a|!b)){if(!J[b+72>>2]){Hc(b+48|0,1,2340138,0);return 0}d=gc[J[b>>2]](a,J[b+44>>2],c,b+48|0)|0}return d} -function G5a(a){a=a|0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]=1;J[a+8>>2]=8;J[a>>2]=349684;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;return a|0}function Fc(a){a=a|0;var b=0;J[a>>2]=2411688;b=J[a+4>>2];if(!(!b|(b|0)==2382582))qc(b);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}function xI(a,b){a=a|0;b=b|0;var c=0,d=0;while(1){d=(c<<3)+b|0;if(J[d>>2])xI(a,J[d+4>>2]);c=c+1|0;if((c|0)!=256)continue;break}Gc(b)}function p7(){var a=0,b=0,c=0;a=bd(1,16);a:{if(!a)break a;J[a+4>>2]=8;J[a+8>>2]=256;b=bd(256,4);if(!b)break a; -J[a>>2]=b;c=a}return c}function oia(a,b,c){a=a|0;b=b|0;c=c|0;if(c>>>0>8){J[695492]=0;qc(a);a=J[695492];J[695492]=0;if((a|0)==1){ea(0)|0;yc();B()}return}qc(a)}function oh(a){a:{if(K[a+8|0]){a=J[a>>2];J[695492]=0;_(2877,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function of(a,b){a=a|0;b=b|0;var c=0;J[b>>2]=0;J[b+4>>2]=J[a+12>>2];J[a+12>>2]=b;c=J[b+4>>2];J[(c?c:a+8|0)>>2]=b;J[a+4>>2]=J[a+4>>2]+1}function _wa(a){a=a|0;var b=0;J[a>>2]=2406148;b=J[a+36>>2];if(b)qc(Bd(b));b= -J[a+64>>2];if(b)qc(Bd(b));xd(a+40|0);xd(a+8|0);qc(ed(a))}function Xlb(a){a=a|0;var b=0;J[a>>2]=231644;b=J[a+4>>2];if(b)qc(b);b=a+4|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;return a|0}function TWa(a,b){a=a|0;b=b|0;b=bc-16|0;bc=b;if(!K[a+220|0]){a=J[a+104>>2];J[b+12>>2]=2048;gc[J[J[a>>2]+308>>2]](a,b+12|0)|0}bc=b+16|0}function SWa(a){a=a|0;var b=0;b=bc-16|0;bc=b;if(!K[a+220|0]){a=J[a+104>>2];J[b+12>>2]=2048;gc[J[J[a>>2]+312>>2]](a,b+12|0)|0}bc=b+16|0}function Ria(a){a=a|0;var b=0;a=J[a>>2]; -b=J[a+12>>2];a:{if((b|0)==J[a+16>>2]){a=gc[J[J[a>>2]+36>>2]](a)|0;break a}a=J[b>>2]}return a|0}function RWa(a){a=a|0;var b=0;b=bc-16|0;bc=b;if(!K[a+220|0]){a=J[a+104>>2];J[b+12>>2]=8194;gc[J[J[a>>2]+308>>2]](a,b+12|0)|0}bc=b+16|0}function PWa(a){a=a|0;var b=0;b=bc-16|0;bc=b;if(!K[a+220|0]){a=J[a+104>>2];J[b+12>>2]=8194;gc[J[J[a>>2]+312>>2]](a,b+12|0)|0}bc=b+16|0}function O0(a){J[a+28>>2]=0;J[a+24>>2]=3047;J[a+20>>2]=3048;J[a+16>>2]=3049;J[a+12>>2]=3050;J[a+8>>2]=3051;J[a+4>>2]=3052;J[a>>2]=3053}function Lia(a, -b){a=a|0;b=b|0;J[a+4>>2]=b;H[a|0]=0;b=J[J[b>>2]-12>>2]+b|0;if(!J[b+16>>2]){b=J[b+72>>2];if(b)MQ(b);H[a|0]=1}return a|0}function JWa(a){a=a|0;var b=0;b=bc-16|0;bc=b;if(!K[a+220|0]){a=J[a+104>>2];J[b+12>>2]=8193;gc[J[J[a>>2]+312>>2]](a,b+12|0)|0}bc=b+16|0}function G_(a){a=a|0;var b=0;J[a>>2]=840356;b=J[a+16>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)qc(J[a+4>>2]);qc(a)}function GGa(a,b,c){a=a|0;b=b|0;c=c|0;if(a){J[a+180>>2]=b;J[a+176>>2]=c?c:505;if(J[a+172>>2]){J[a+172>>2]=0;Yc(a, -58346)}J[a+444>>2]=0}}function $_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[J[d>>2]+e|0]=K[(J[a+332>>2]+(P(J[J[b+84>>2]>>2],L[c>>1])+4>>>3&1023)|0)+128|0]}function wRa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+584>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];gc[J[J[a>>2]+172>>2]](a,c)}function vRa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+560>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];gc[J[J[a>>2]+176>>2]](a,c)}function eua(a){a=a|0;J[a+32>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+ -12>>2]=1;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=1;J[a+28>>2]=1}function cx(a){a=a|0;var b=0;b=J[a+4>>2];if(b){gc[J[b+36>>2]](a,1);if(J[a+16>>2]){J[a+308>>2]=0;J[a+20>>2]=200;return}J[a+20>>2]=100}}function aW(a,b){var c=0;c=J[a+200>>2];if((c&5)==5){J[a+200>>2]=c|24;if(!b){Ld(a,0);return}Yc(a,61855);Ld(a,b);return}Ad(a,61810);B()}function SQa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+440>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];gc[J[J[a>>2]+100>>2]](a,c)}function DRa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+ -28>>2];O[c+552>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];gc[J[J[a>>2]+164>>2]](a,c)}function xja(a){a=a|0;var b=0,c=0;b=J[a+4>>2];if(!b)return-1;b=wq(b);Xg(J[a+4>>2],0,2);c=wq(J[a+4>>2]);Xg(J[a+4>>2],b,0);return c|0}function wgb(a,b){a=a|0;b=b|0;var c=0;J[a+16>>2]=b;c=K[b+7|0];b=K[b+6|0];J[a+24>>2]=-1;J[a+28>>2]=0;J[a+32>>2]=(b<<8|c)>>>1;return 0}function wG(a,b,c,d){var e=0;e=a;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);Qh(e,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24),c,d)}function sNa(a){a= -a|0;var b=0;J[a>>2]=2307392;b=J[a+4>>2];if(b)qc(Rc(b));b=J[a+8>>2];if(b)qc(b);b=J[a+12>>2];if(b)qc(Rc(b));qc(a)}function rP(a,b,c){var d=0;d=bc-16|0;bc=d;a:{if(!(K[b+120|0]|c>>>0>30)){H[b+120|0]=1;break a}b=wP(c)}bc=d+16|0;J[a+4>>2]=c;J[a>>2]=b}function oWa(a,b,c,d,e,f,g,h,i,j,k,l,m,n){a=a|0;b=b|0;c=+c;d=+d;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;return 1}function mf(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;c=c<<8|c>>>8;b=b+2|0}J[a+32>>2]=b;return c& -65535}function lJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!((c|0)<2|a>>>0>65535)){a=a<<8|(a&65280)>>>8;H[b|0]=a;H[b+1|0]=a>>>8;d=2}return d|0}function jFa(a){a=a|0;J[a+60>>2]=2369588;J[a>>2]=2369568;J[a+8>>2]=2369744;if(H[a+51|0]<0)qc(J[a+40>>2]);Nh(a+8|0);Uf(a+60|0);qc(a)}function iY(a,b){a=a|0;b=b|0;var c=0;a:{if((b|0)<0)break a;a=J[a>>2];if(J[a+8>>2]<=(b|0))break a;c=J[J[a>>2]+(b<<2)>>2]}return c|0}function e4a(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+168>>2];if(!a)return 0;a=gc[J[J[a>>2]+20>>2]](a)|0;return gc[J[J[a>> -2]+20>>2]](a,b,c)|0}function _F(a){a=a|0;var b=0;J[a>>2]=2427724;b=J[a+12>>2];if(b){if(H[b+2347|0]<0)qc(J[b+2336>>2]);qc(QS(b));J[a+12>>2]=0}return a|0}function Wx(a){var b=0;b=zc(16);if(b){a=kq(a);J[b>>2]=a;if(!a){qc(b);return 0}J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=a}else b=0;return b}function QB(a,b){a=a|0;b=b|0;a:{b=J[J[b+4>>2]+4>>2];if(!b)break a;b=At(b);if(!b)break a;mm(a,b,Qc(b));return}J[a>>2]=0;H[a+11|0]=0}function ORa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+480>>3]=J[b>>2]==1?+J[b+8>>2]: -O[b+8>>3];a=J[a+8>>2];gc[J[J[a>>2]+96>>2]](a,c)}function Hcb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(b)J[b>>2]=J[a+152>>2];if(c)J[c>>2]=J[a+156>>2];if(d)J[d>>2]=J[a+160>>2];return 0}function Gvb(a,b){a=a|0;b=b|0;H[a+288|0]=1;return Z7(a,L[b+28>>1],K[b+30|0],K[b+31|0],J[b+32>>2],J[b+36>>2],J[b+40>>2],J[b+44>>2])|0}function Gma(a,b){a=a|0;b=b|0;var c=0;a=J[a+12>>2];c=J[a+480>>2]!=0;J[b>>2]=K[a+488|0]<<2|(J[a+484>>2]?c|2:c)|K[a+489|0]<<7;return 0}function Bfb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=bc- -16|0;bc=e;a=JC(a,b,e+12|0);if(!a)VL(c,J[e+12>>2],d);bc=e+16|0;return a|0}function xub(a){a=a|0;var b=0;b=J[a+540>>2];tc(J[b+1176>>2]+P(J[b+1168>>2],J[a+2552>>2])|0,J[a+2516>>2],J[a+588>>2]);return TD(a)|0}function vLa(a){a=a|0;var b=0;J[a>>2]=2330896;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(a)}function tYa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{e=J[a+272>>2];if(!e)break a;e=J[e+44>>2];if(!e)break a;gc[e|0](a,b,c,d)}}function fy(a,b,c,d,e){var f=0,g=0; -f=J[a+4>>2];g=f>>8;a=J[a>>2];if(f&1)g=J[J[c>>2]+g>>2];gc[J[J[a>>2]+24>>2]](a,b,c+g|0,f&2?d:2,e)}function dNa(a){a=a|0;var b=0;J[a>>2]=2307560;J[695492]=0;_(3205,a+8|0);b=J[695492];J[695492]=0;if((b|0)==1){ea(0)|0;yc();B()}qc(a)}function Oy(a,b){var c=0,d=0;a:{if(b>>>0<=31){d=J[a>>2];c=a+4|0;break a}b=b-32|0;c=a}c=J[c>>2];J[a>>2]=d<>2]=c<>>32-b}function Lvb(a,b){a=a|0;b=b|0;if(!K[a+498|0]){H[a+1148|0]=K[b+32|0];I[a+1150>>1]=L[b+28>>1];I[a+1152>>1]=L[b+30>>1]}return Mx(a)|0}function L5(a, -b){var c=0,d=0;if(!(!a|!b)){a=J[a>>2];while(1){if(!a)return;c=J[a+4>>2];d=gc[b|0](a,0)|0;a=c;if(!d)continue;break}}}function Ihb(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[b+376>>2];J[a+16>>2]=c;J[a+20>>2]=J[b+380>>2]-c;J[a+24>>2]=J[b+384>>2];return 0}function FWa(a,b){a=a|0;b=b|0;b=bc-16|0;bc=b;if(!K[a+204|0]){a=J[a+104>>2];J[b+12>>2]=2;gc[J[J[a>>2]+308>>2]](a,b+12|0)|0}bc=b+16|0}function DG(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(!a|!b)){H[b+120|0]=e;J[b+116>>2]=d;J[b+112>>2]=c;J[b+8>>2]=J[b+ -8>>2]|128}}function BMa(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=+n;o=+o}function rPa(a,b){a=a|0;b=b|0;var c=0;if(J[a+12>>2]>0)while(1){J[(c<<2)+b>>2]=65536;c=c+1|0;if((c|0)>2])continue;break}}function jeb(a){a=a|0;J[a+216>>2]=0;J[a+436>>2]=0;J[a+144>>2]=0;a=J[a+460>>2];J[a+164>>2]=0;J[a+24>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}function iba(a){a=a|0;var b=0;b=J[a+828>>2];J[b+608>>2]=J[b+600>>2];gf(b);J[a+780>>2]=J[b+596>>2];J[a+ -784>>2]=J[b+600>>2];return 1}function gT(a){a=a|0;var b=0;J[a>>2]=2427564;b=J[a+4>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}dv(a+20|0,J[a+24>>2]);return a|0}function Vta(a){a=a|0;J[a>>2]=2413548;_c(a+104|0);_c(a+92|0);_c(a+80|0);_c(a+68|0);J[a>>2]=2413388;_c(a+56|0);_c(a+44|0);qc(ed(a))}function Vs(a,b){var c=0,d=0;if(!b){fa(2342591,2342825,172,2343334);B()}d=a;a=a+b|0;c=d>>>0>a>>>0?1:c;return Fzb(a-1|0,c-!a|0,b,0)}function Qy(a,b){var c=0,d=0;c=J[a+4>>2];a:{if(b>>>0<=31){d=J[a>>2];break a}b=b- -32|0;d=c;c=0}J[a+4>>2]=c>>>b;J[a>>2]=c<<32-b|d>>>b}function Pjb(a,b){a=a|0;b=b|0;var c=0,d=0;c=6;a:{if(!a)break a;d=J[a+4>>2];if(!d)break a;c=m6(J[J[d+96>>2]+4>>2],a,b)}return c|0}function KAa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){sc(a+24|0);sc(a+16|0);a=a+32|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Hxb(a,b,c){a=a|0;b=b|0;c=c|0;if(wh(c,J[a+12>>2]))a=-1;else a=(Ko(c,J[a+20>>2],J[a+16>>2])|0)!=J[a+16>>2]?-1:0;return a|0}function Fs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+16>>2];d=J[a+ -20>>2];e=(c|0)>(d|0);Sl(a,e?b:(b|0)>(c|0)?c:b,e?b:(b|0)<(d|0)?d:b)}function $Qa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=J[a+8>>2];gc[J[J[b>>2]+64>>2]](b,J[a+28>>2]);d=a,e=Mv(J[a+28>>2]),J[d+28>>2]=e}function xB(a,b){var c=0,d=0,e=0;if(!(!a|!b)){if(K[b|0]){c=b;while(1){d=d+1|0;e=K[c+1|0];c=c+1|0;if(e)continue;break}}wB(a,b,d)}}function rLa(a){a=a|0;var b=0;a:{if(J[a+28>>2]){b=-1;if(!J[a+32>>2])break a}a=J[a+24>>2];b=gc[J[J[a>>2]+32>>2]](a)|0}return b|0}function nC(a,b,c,d){var e=0;e=J[a+84>>2];if((e| -0)>0){a=J[a+80>>2]+P((b|0)<(e|0)?(b|0)>0?b:0:e-1|0,96)|0;N[a+8>>2]=d;N[a+4>>2]=c}}function f1(a,b,c){a=a|0;b=b|0;c=c|0;a:{b=J[a+28>>2];if(!(b&14)){b=b&15;J[a+48>>2]=!b<<3;if((b|0)!=1)break a;c=a+52|0}J[c>>2]=1}}function dV(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){$c(a+24|0);sc(a+16|0);a=a+40|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Vbb(a,b){a=a|0;b=b|0;var c=0;c=J[a+668>>2];if(c)gc[J[J[c>>2]+12>>2]](c)|0;J[a+668>>2]=b;if(b)gc[J[J[b>>2]+8>>2]](b)|0}function OJa(a,b){a=a|0;b=b|0;var c= -0;a=J[a>>2];b=J[b>>2];c=O[a+16>>3]-O[b+16>>3];if(c==0)c=O[a>>3]-O[b>>3];return(c<0?-1:c>0)|0}function Nea(a){a=a|0;var b=0,c=0;b=J[J[a>>2]>>2];c=J[b+8>>2];a=J[b+4>>2];b=J[b>>2]+(c>>1)|0;if(c&1)a=J[a+J[b>>2]>>2];gc[a|0](b)}function CM(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;c=J[b+16>>2]-1|0;J[b+16>>2]=c;if((c|0)<=0)qc(b);J[a>>2]=0}}function C8(a){a=a|0;var b=0,c=0;b=J[J[a+544>>2]+88>>2];c=J[b+1168>>2];tc(J[a+644>>2],J[b+1176>>2]+P(c,J[a+572>>2])|0,c);return 0}function zEa(a){a=a|0; -var b=0;J[a>>2]=2371824;b=J[a+4>>2];if(b){qc(b);J[a+4>>2]=0}b=J[a+8>>2];if(b){qc(b);J[a+8>>2]=0}return a|0}function xN(a){var b=0,c=0;b=J[a+688>>2];if(b)while(1){c=J[b+8>>2];if(!K[b+33|0])gc[J[b>>2]](a,b)|0;b=c;if(b)continue;break}}function si(a,b){a=J[a+12>>2];if(a)while(1){if(gc[J[J[a>>2]+32>>2]](a,b)|0)return a;a=J[a+4>>2];if(a)continue;break}return 0}function XSa(){var a=0;a=rc(28);J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function Tdb(a, -b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b|0;return((a|0)>0?a:0)|0}a=b-a|0;return a>>31&a}function N1(a){var b=0;if(!J[a+344>>2]){b=a+320|0;Nw(b,J[a+340>>2]!=0);jC(b,O[a+280>>3],J[a+340>>2])}J[a+344>>2]=1;J[a+348>>2]=0}function Dea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){J[d>>2]=H[b|0];d=d+4|0;b=b+1|0;continue}break}return c|0}function yfb(a){a=a|0;var b=0,c=0;b=bc-224|0;bc=b;c=b+16|0;gc[J[J[a>>2]+12>>2]](a,c);J[b>>2]=c;cd(J[651370],53232,b);bc=b+224|0}function yIa(a){a= -a|0;var b=0;a=J[J[a+16>>2]+40>>2];a:{if(!a)break a;a=J[a>>2];if(!a)break a;b=J[J[a+28>>2]+20>>2]}return b|0}function uea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){H[d|0]=K[b|0];d=d+1|0;b=b+1|0;continue}break}return c|0}function tTa(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=c;J[a+4>>2]=0;kh(a,c);tc(J[a+4>>2],b,J[a>>2]);H[J[a+4>>2]+J[a>>2]|0]=0;return a|0}function shb(a,b){a=a|0;b=b|0;var c=0;c=!a|J[a>>2]!=1381173770?c:J[a+4>>2];return J[c+4>>2]+P(J[c+28>>2],J[c+24>>2]+(b^-1)|0)|0}function mq(a, -b){J[695492]=0;a=ga(7047,(b<<1)+2625520|0,2,a|0)|0;b=J[695492];J[695492]=0;if((b|0)!=1)return a;ea(0)|0;yc();B()}function lKa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+12>>2]=c;J[a>>2]=2332784;J[a+4>>2]=b;d=a,e=vd(c,4),J[d+8>>2]=e;return a|0}function iQ(a,b,c,d,e,f){a=gc[J[J[a+8>>2]+4>>2]](a+8|0)|0;a=yy(c,d,a,a+288|0,f,e,0)-a|0;if((a|0)<=287)J[b>>2]=((a|0)/12|0)%12}function fQ(a,b,c,d,e,f){a=gc[J[J[a+8>>2]+4>>2]](a+8|0)|0;a=wy(c,d,a,a+288|0,f,e,0)-a|0;if((a|0)<=287)J[b>>2]=((a|0)/12|0)%12}function XG(a, -b){var c=0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;c=Ve(b);H[a+8|0]=0;J[a>>2]=b;J[a+4>>2]=(c|0)<0?-2147483648:c;return a}function Wgb(a,b){a=a|0;b=b|0;var c=0;c=!a|J[a>>2]!=1381173770?c:J[a+4>>2];return J[c+8>>2]+P(J[c+20>>2],J[c+24>>2]+(b^-1)|0)|0}function VSa(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[a>>2];if((b|0)>2]){J[a+4>>2]=b+1;a=K[J[c+4>>2]+b|0]}else a=-1;return a|0}function Tc(a){var b=0;b=bc-16|0;bc=b;a=af(a,b+12|0,2);bc=b+16|0;b=K[b+12|0]|K[b+13|0]<<8;return((a|0)==2?b<<8|b>>>8:0)<<16>>16}function LW(a, -b){var c=0;if(!(!a|!b)){if(!J[a+72>>2]){Hc(a+48|0,1,2339554,0);return 0}gc[J[a+24>>2]](J[a+44>>2],b);c=1}return c}function Iab(a,b){a=a|0;b=b|0;b=J[b>>2];J[a+496>>2]=b&1;H[a+505|0]=(b&128)>>>7;H[a+504|0]=b>>>2&31;J[a+500>>2]=b>>>1&1;return 0}function GYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-1;a:{if(!a|!b)break a;d=Yd(b,1,c,a);if((d|0)>=0)break a;AJ(29225)}return d|0}function ES(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;a=J[a>>2];if(a){J[c+12>>2]=J[b>>2];gc[J[J[a>>2]+40>>2]](a,c+12|0)}bc=c+16|0}function qca(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(pj(a,J[b+8>>2],0)){wE(b,c,d);return}a=J[a+8>>2];gc[J[J[a>>2]+28>>2]](a,b,c,d)}function mhb(a){a=a|0;J[a+12>>2]=1;J[a+16>>2]=0;J[a+4>>2]=0;J[a+76>>2]=0;J[a- -64>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0}function fhb(a){a=a|0;J[a+12>>2]=2;J[a+16>>2]=0;J[a+4>>2]=0;J[a+76>>2]=0;J[a- -64>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0}function _na(a){a=a|0;var b=0;J[a>>2]=2427564;b=J[a+4>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}dv(a+20|0,J[a+24>>2]);qc(a)}function Ghb(a, -b){a=a|0;b=b|0;var c=0,d=0;c=J[a+16>>2];return(c>>>0>b>>>0|J[a+20>>2]+c>>>0<=b>>>0?d:L[J[a+24>>2]+(b<<1)>>1])|0}function FMa(a,b,c,d,e,f,g,h,i){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;gc[J[J[a>>2]+292>>2]](a,b,c,d,e,f,g,h,i)}function CU(a){a=a|0;var b=0;b=1;a:{if(!fd(a,2404396,-1))break a;if(!fd(a,2403764,-1))break a;b=!fd(a,2400208,-1)}return b|0}function w5(a,b,c){a=a|0;b=b|0;c=c|0;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(J[b+72>>2]==J[a+16>>2])Pp(b+108|0,c)}function vl(a){var b= -0,c=0;a:{if(!a)break a;b=J[a+4>>2];if(!b)break a;b=b-1|0;J[a+4>>2]=b;c=J[J[a+8>>2]+(b<<2)>>2]}return c}function tP(a){var b=0;b=bc-16|0;bc=b;J[b+12>>2]=a;a=bc-16|0;bc=a;J[a+12>>2]=J[b+12>>2];bc=a+16|0;bc=b+16|0;return J[a+12>>2]}function ne(a){var b=0,c=0;if(J[a+20>>2]){b=J[a>>2];if(b){c=J[a+28>>2];gc[J[c+8>>2]](c,b)}J[a>>2]=0}J[a+32>>2]=0;J[a+36>>2]=0}function nZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b>>2];a=(a|0)>=65536?65536:a;a=(a|0)>0?a:0;J[c+4>>2]=a;J[c+8>>2]=a;J[c>>2]=a}function exb(a,b,c){a= -a|0;b=b|0;c=c|0;a=bc-16|0;bc=a;hd(201836,0);hd(202452,0);J[a>>2]=201097;hd(199980,a);bc=a+16|0;return-1}function eY(a,b,c,d,e){var f=0;f=J[a+212>>2];a=rc(40);J[a+32>>2]=c==e;O[a+24>>3]=e;O[a+16>>3]=d;O[a+8>>3]=c;O[a>>3]=b;id(f,a)}function eRa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];b=J[b+8>>2];J[c+472>>2]=b>>>0<=2?b:0;a=J[a+8>>2];gc[J[J[a>>2]+88>>2]](a,c)}function Vc(a){var b=0,c=0;a:{b=a+8|0;if(J[b>>2]){c=b;b=J[b>>2]-1|0;J[c>>2]=b;if((b|0)!=-1)break a}gc[J[J[a>>2]+16>>2]](a)}}function Tp(a){var b= -0;b=bd(1,16);if(!b)return 0;J[b+8>>2]=1;a=(a|0)<=0?20:a;J[b+4>>2]=a;a=bd(a,4);J[b+12>>2]=a;return a?b:0}function S4a(a){a=a|0;var b=0;J[a+4>>2]=1;J[a>>2]=347728;J[a>>2]=350128;b=a+12|0;J[b>>2]=0;J[b+4>>2]=0;J[a+8>>2]=b;return a|0}function QRa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];b=J[b+8>>2];J[c+476>>2]=b>>>0<=2?b:0;a=J[a+8>>2];gc[J[J[a>>2]+92>>2]](a,c)}function PNa(a,b,c){a=a|0;b=b|0;c=c|0;a=wc(a,0,256);b=J[b>>2]+c|0;c=K[b|0];b=K[b+1|0];J[a+4>>2]=c-b<<5;J[a>>2]=(b+c<<5)+-8192}function OP(a){a:{if(!K[a+ -4|0]){J[695492]=0;_(6747,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function M5a(a,b){a=a|0;b=b|0;var c=0;c=J[a+4>>2];if(c)gc[J[J[c>>2]+12>>2]](c)|0;J[a+4>>2]=b;if(b)gc[J[J[b>>2]+8>>2]](b)|0}function z2(a){a=a|0;var b=0;J[a>>2]=349912;a:{if(K[a+12|0])break a;b=J[a+8>>2];if(!b)break a;qc(b)}J[a+8>>2]=0;return a|0}function rUa(a){a=a|0;var b=0;b=J[a+224>>2];if(b){J[a+228>>2]=b;qc(b)}b=J[a+212>>2];if(b){J[a+216>>2]=b;qc(b)}return lh(a)|0}function rTa(a,b){a=a|0;b=b|0;var c= -0;J[a+4>>2]=0;c=J[b>>2];J[a>>2]=c;kh(a,c);tc(J[a+4>>2],J[b+4>>2],J[a>>2]+1|0);return a|0}function lC(a){a=a|0;var b=0;J[a>>2]=350092;a:{if(K[a+16|0])break a;b=J[a+8>>2];if(!b)break a;qc(b);J[a+8>>2]=0}return a|0}function jg(a,b,c){a=a|0;b=b|0;c=c|0;if(!(J[a+12>>2]>(b|0)&(b|0)>=0)){J[c>>2]=5;return c|0}return Ef(J[a+4>>2]+(b<<4)|0,c)|0}function jQ(a,b,c,d,e,f){a=gc[J[J[a+8>>2]>>2]](a+8|0)|0;a=yy(c,d,a,a+168|0,f,e,0)-a|0;if((a|0)<=167)J[b>>2]=((a|0)/12|0)%7}function gQ(a,b,c,d,e,f){a=gc[J[J[a+8>>2]>> -2]](a+8|0)|0;a=wy(c,d,a,a+168|0,f,e,0)-a|0;if((a|0)<=167)J[b>>2]=((a|0)/12|0)%7}function ehb(a){a=a|0;var b=0;J[a+140>>2]=0;J[a+112>>2]=0;b=J[a+12>>2];T4(a+28|0,b);T4(a- -64|0,b);J[a+12>>2]=0;J[a+16>>2]=0}function eU(a,b,c){var d=0;d=J[a>>2];if(d){qc(d);J[a>>2]=0}a:{if(!b)break a;d=a;a=zc(c);J[d>>2]=a;if(!a)break a;Ne(a,b,c)}}function _ta(a,b,c){a=a|0;b=b|0;c=c|0;J[a+36>>2]=c;J[a+32>>2]=b;if(J[a+40>>2])oe(a+44|0,0,4);if(J[a+52>>2])oe(a+56|0,0,4)}function UTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=Qc(c); -if(!A_(a,b,d))return 0;return!Wc(((a-J[a+1040>>2]|0)+b|0)+16|0,c,d)|0}function Kwb(a){a=a|0;var b=0,c=0,d=0;a=J[a+52>>2];c=a,d=(gc[J[J[a>>2]+20>>2]](a,2)|0)-2|0,b=J[J[a>>2]+24>>2],gc[b](c|0,d|0)}function Jva(a){a=a|0;J[a>>2]=2412012;xd(a+124|0);xd(a+100|0);J[a>>2]=2411928;sc(a+24|0);sc(a+16|0);sc(a+8|0);return ed(a)|0}function B2(a){a=a|0;var b=0;J[a>>2]=349852;a:{if(K[a+16|0])break a;b=J[a+8>>2];if(!b)break a;qc(b);J[a+8>>2]=0}return a|0}function yra(a){a=a|0;var b=0;b=J[a+36>>2];if(b)gc[J[J[b>> -2]+4>>2]](b);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0}function hfb(a){a=a|0;var b=0;gc[J[J[a>>2]+8>>2]](a);b=J[a+4>>2];if(b)gc[J[b+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0;ya(1);B()}function f6(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a+28>>2];d=J[a+24>>2];if(d)gc[d|0](a);if(b)break a;gc[J[c+8>>2]](c,a)}}function _bb(a){a=a|0;var b=0;a=2756008;while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>>2]);a=b;if((a|0)!=2755360)continue;break}}function Z8a(a){a=a|0;var b=0;a=2756664;while(1){b=a-12|0;if(H[a-1|0]< -0)qc(J[b>>2]);a=b;if((a|0)!=2756016)continue;break}}function Wvb(a,b){a=a|0;b=b|0;H[a+312|0]=1;I[a+2240>>1]=L[b+28>>1];I[a+2242>>1]=L[b+30>>1];I[a+2244>>1]=L[b+32>>1];return 0}function Rta(a){a=a|0;J[a>>2]=2413648;_c(a+92|0);_c(a+80|0);_c(a+68|0);J[a>>2]=2413388;_c(a+56|0);_c(a+44|0);return ed(a)|0}function Jab(a,b){a=a|0;b=b|0;var c=0;c=b;b=J[a+496>>2]!=0;J[c>>2]=K[a+504|0]<<2|(J[a+500>>2]?b|2:b)|K[a+505|0]<<7;return 0}function J8a(a){a=a|0;var b=0;a=2757320;while(1){b=a-12|0;if(H[a-1|0]<0)qc(J[b>> -2]);a=b;if((a|0)!=2756672)continue;break}}function $ta(a,b,c){a=a|0;b=b|0;c=c|0;J[a+12>>2]=c;J[a+8>>2]=b;if(J[a+40>>2])oe(a+44|0,0,4);if(J[a+52>>2])oe(a+56|0,0,4)}function zS(a){var b=0;a:{a=J[a+8>>2];if(!a)break a;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break a;gc[J[J[a>>2]+8>>2]](a);Vc(a)}}function rR(a,b,c,d,e,f,g,h,i){J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e&65535|(i>>>16&32768|(e&2147418112)>>>16)<<16}function iUa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+8>>2]=b;J[a>>2]=2169420;J[a+16>>2]=d;J[a+12>> -2]=c;J[a+4>>2]=b;return a|0}function hf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!(!b|J[a>>2]!=9))return Tm(b,J[a+8>>2],J[a+12>>2],c,d)|0;return Ef(a,c)|0}function bcb(a,b){a=a|0;b=b|0;var c=0;b=J[J[a>>2]+132>>2];c=K[b+104|0];J[a+16>>2]=c;J[a+20>>2]=(K[b+105|0]-c|0)+1;return 0}function aK(a,b){if(b){aK(a,J[b>>2]);aK(a,J[b+4>>2]);if(H[b+39|0]<0)qc(J[b+28>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function ZY(a,b,c){O[a+600>>3]=O[a+504>>3]*b+O[a+520>>3]*c+O[a+600>>3];O[a+608>>3]=O[a+512>>3]*b+O[a+528>>3]* -c+O[a+608>>3]}function Lya(a,b){a=a|0;b=b|0;var c=0,d=0;c=Ls(J[b+156>>2]);if((c|0)>0){d=di();gc[J[J[d>>2]+48>>2]](d,b,Q(Q(a|0)/Q(c|0)))}}function JP(){J[695885]=0;J[695884]=2624824;J[695884]=2619664;H[2783548]=0;J[695886]=0;J[695884]=2618204;J[695886]=2618256}function Ie(a){var b=0;a:{a=J[a+4>>2];if(!a)break a;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break a;gc[J[J[a>>2]+8>>2]](a);Vc(a)}}function Djb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=ro(J[a>>2],c,242516);if(!a)return 64;J[d>>2]=a;J[e>>2]=0;return 0} -function Cjb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=ro(J[a>>2],c,242615);if(!a)return 64;J[d>>2]=a;J[e>>2]=0;return 0}function wv(a){a=a|0;var b=0;b=J[a+36>>2]-8|0;J[a+36>>2]=b;if(J[a+32>>2]==(b|0)){O[a+48>>3]=1;return}O[a+48>>3]=O[b-8>>3]}function wS(a,b){a=a|0;b=+b;var c=0,d=0,e=0;c=J[a+24>>2];d=c+1|0;J[a+24>>2]=d;e=+(d|0);O[a+16>>3]=O[a+16>>3]/e*+(c|0)+b/e}function vIa(a){a=a|0;a=J[J[a+16>>2]+40>>2];if(!a)return 0;a=J[a>>2];if(a)a=J[J[a+24>>2]+16>>2]+1|0;else a=0;return a|0}function qYa(a, -b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=J[a+272>>2];if(!d)break a;d=J[d+48>>2];if(!d)break a;gc[d|0](a,b,c)}}function pYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=J[a+272>>2];if(!d)break a;d=J[d+52>>2];if(!d)break a;gc[d|0](a,b,c)}}function gWa(a,b){a=a|0;b=b|0;J[a+4>>2]=b;J[a>>2]=2331012;J[a>>2]=827224;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function cl(a,b){if(b){cl(a,J[b>>2]);cl(a,J[b+4>>2]);if(H[b+39|0]<0)qc(J[b+28>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function c1a(a,b){a=a|0;b=b|0;var c= -0;c=J[a+8>>2];if(c>>>0>2]){J[a+8>>2]=c+1;return K[c|0]}J[b>>2]=8;return 65535}function _y(a,b){a=a|0;b=b|0;var c=0;c=J[b+8>>2];b=J[b+4>>2];if((c|0)==(b|0)){J[a>>2]=0;H[a+11|0]=0;return}FK(a,b,c-b>>2)}function Tia(a){a=a|0;var b=0;if((gc[J[J[a>>2]+36>>2]](a)|0)==-1)return-1;b=a;a=J[a+12>>2];J[b+12>>2]=a+4;return J[a>>2]}function Sf(a,b){var c=0;a:{if(!a|!J[a+20>>2])break a;c=J[b>>2];if(!c)break a;a=J[a+28>>2];gc[J[a+8>>2]](a,c)}J[b>>2]=0}function SE(a,b,c){c=J[c>>2];while(1){a:{if((a|0)!=(b| -0)){if((c|0)!=J[a>>2])break a}else a=b;return a}a=a+4|0;continue}}function A2(a,b,c){a=a|0;b=b|0;c=c|0;H[a+13|0]=255;J[a+8>>2]=b;J[a+4>>2]=1;J[a>>2]=349912;H[a+12|0]=(b|0)!=0&c;return a|0}function zjb(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2];return J5(c,a+28|0,b+28|0)|0}function xob(a,b){a=a|0;b=b|0;var c=0;c=J[a+428>>2];H[c+8|0]=K[b+32|0];H[c+9|0]=K[b+33|0];return ue(a,J[b>>2],2,c+8|0)|0}function xk(a){var b=0,c=0;if(!a)return 0;if(K[a|0])while(1){b=b+1|0;c= -K[a+1|0];a=a+1|0;if(c)continue;break}return b}function nu(a){var b=0;a:{if(!a)break a;a=x7(a);if(!a)break a;wc(J[a+40>>2],0,P(J[a+12>>2],J[a+4>>2])<<2);b=a}return b}function n5a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[a+16|0]=d;J[a+12>>2]=c;J[a+8>>2]=b;J[a+4>>2]=1;J[a>>2]=349852;return a|0}function m2a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=J[a+4>>2];if(a)e=d,f=Yd(b,1,c,a),J[e>>2]=f;return(a|0)!=0|0}function h4a(a,b){a=a|0;b=b|0;J[a+136>>2]=J[b>>2];b=J[a+8>>2];if(b){a=J[a+136>>2];if((a|0)!=J[b+ -216>>2])J[b+216>>2]=a}}function fja(a){a=a|0;var b=0;if((gc[J[J[a>>2]+36>>2]](a)|0)==-1)return-1;b=a;a=J[a+12>>2];J[b+12>>2]=a+1;return K[a|0]}function eN(a,b){a=a|0;b=b|0;var c=0;c=J[b>>2];if(K[b+32|0])return ue(a,c,0,0)|0;return ue(a,c,J[b+36>>2],J[b+40>>2])|0}function X4a(a){a=a|0;var b=0;J[a>>2]=350092;a:{if(K[a+16|0])break a;b=J[a+8>>2];if(!b)break a;qc(b);J[a+8>>2]=0}qc(a)}function Mvb(a,b){a=a|0;b=b|0;return a8(a,L[b+28>>1],L[b+30>>1],K[b+32|0],J[b+36>>2],J[b+40>>2],J[b+44>>2],J[b+48>>2])| -0}function LQ(a){var b=0;b=J[a+12>>2];if((b|0)==J[a+16>>2])return gc[J[J[a>>2]+40>>2]](a)|0;J[a+12>>2]=b+4;return J[b>>2]}function xH(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function wH(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function qUa(a){a=a|0;var b=0;b=J[a+224>>2];if(b){J[a+228>>2]=b;qc(b)}b=J[a+212>>2];if(b){J[a+216>>2]=b;qc(b)}qc(lh(a))}function mwa(a,b){a=a| -0;b=b|0;var c=0;if((b|0)>0)while(1){$c(a+36|0);a=a+56|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function k1a(a){a=a|0;var b=0;b=J[a+24>>2];a:{if(K[a+28|0]&16){a=J[b+216>>2];if(a)break a}a=J[b+12>>2]+4|0}return a|0}function h8(a){var b=0;b=L[a+2326>>1];a:{if(b){b=$g(a,b);break a}b=J[a+528>>2]}b=Lh(a,b,0);if(!b)H[a+498|0]=0;return b}function dIa(a){a=a|0;var b=0;a:{if(!a)break a;a=sY(2,J[a+672>>2],J[a+668>>2]);if(!a)break a;b=wc(a,0,236)}return b|0}function _r(a,b,c){var d=0;d=bc-16|0;bc=d;if(!(K[a| -0]&32|(!b|c&8192))){J[d+4>>2]=39181;J[d>>2]=b;Uy(a,4487,d)}bc=d+16|0}function VE(a,b,c){c=K[c|0];while(1){a:{if((a|0)!=(b|0)){if((c|0)!=K[a|0])break a}else a=b;return a}a=a+1|0;continue}}function V1a(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[a+4>>2]=b+4;return c|0}function TQ(a){var b=0;b=J[a+12>>2];if((b|0)==J[a+16>>2])return gc[J[J[a>>2]+40>>2]](a)|0;J[a+12>>2]=b+1;return K[b|0]}function Oza(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){sc(a+8|0);a=a+16| -0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Mu(a,b){var c=0,d=0;c=bc-16|0;bc=c;nF(c,a,b,1);d=Gy(J[c>>2],J[c+4>>2],J[c+8>>2],J[c+12>>2]);bc=c+16|0;return d}function Mca(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;d=c+21|0;e=c+32|0;XO(c+12|0,d,e,b);YE(a,d,J[c+12>>2]);bc=e}function M9a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=K[b|0];H[a+680|0]=b;d=b?O[c>>3]:1;O[a+672>>3]=d;O[J[a+16>>2]+2896>>3]=d}function Lca(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;d=c+21|0;e=c+32|0;WO(c+12|0,d,e,b);YE(a, -d,J[c+12>>2]);bc=e}function Iva(a){a=a|0;J[a>>2]=2412012;xd(a+124|0);xd(a+100|0);J[a>>2]=2411928;sc(a+24|0);sc(a+16|0);sc(a+8|0);qc(ed(a))}function H5(a){a=a|0;var b=0,c=0;if(a){b=J[J[a>>2]>>2];c=J[J[a+4>>2]+12>>2];if(c)gc[c|0](a);if(a)gc[J[b+8>>2]](b,a)}}function Gl(a,b){var c=0;c=J[694782];b=J[b>>2];if(b)J[694782]=(b|0)==-1?2778984:b;J[a>>2]=(c|0)==2778984?-1:c;return a}function EYa(a){a=a|0;var b=0;b=O$(a);a:{if(b)break a;b=0;a=eo(a,0);if(!a)break a;b=O$(a);gc[J[659451]](a)}return b|0}function $g(a, -b){a=J[a+688>>2];if(a)while(1){if(L[a+28>>1]==(b|0))return a;a=J[a+8>>2];if(a)continue;break}return 0}function fjb(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];a=J[a+4>>2];Op(b,c>>6,a>>6);J[b+212>>2]=a<<2;J[b+208>>2]=c<<2;return 0}function aWa(a){a=a|0;var b=0;b=J[a+12>>2];if(b>>>0>2]){J[a+12>>2]=b+1;a=K[J[a+16>>2]+b|0]}else a=-1;return a|0}function ZNa(a){a=a|0;var b=0,c=0;c=-1;b=J[a+60>>2];if(!(!b|M[a+64>>2]<=b>>>0)){J[a+60>>2]=b+1;c=K[b|0]^255}return c|0}function VU(a,b){a=a|0;b=b|0;var c=0;if((b| -0)>0)while(1){Ql(a+16|0);a=a+56|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function V5a(a){a=a|0;var b=0;J[a>>2]=349272;Ed(a+280|0);b=J[a+268>>2];if(b){J[a+272>>2]=b;qc(b)}Qe(a+88|0);return a|0}function Uza(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){Ql(a+8|0);a=a+44|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Uea(a){a=a|0;var b=0;b=J[a>>2];if(J[b>>2]){NP(b);b=J[a>>2]+16|0;a=J[a>>2];qP(b,J[a>>2],J[a+8>>2]-J[a>>2]>>2)}}function UO(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;d=c+21|0;e=c+32| -0;WO(c+12|0,d,e,b);VO(a,d,J[c+12>>2]);bc=e}function Qta(a){a=a|0;J[a>>2]=2413648;_c(a+92|0);_c(a+80|0);_c(a+68|0);J[a>>2]=2413388;_c(a+56|0);_c(a+44|0);qc(ed(a))}function Ny(a){var b=0;b=Ua(-100,a|0,0)|0;if((b|0)==-31)b=Ta(a|0)|0;if(b>>>0>=4294963201){J[694731]=0-b;b=-1}return b}function IG(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){sc(a+16|0);a=a+28|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function FLa(a,b){a=a|0;b=b|0;var c=0;c=a+40|0;J[a+300>>2]=c;J[a+296>>2]=c;b=J[a+28>>2]+b|0;J[a+28>>2]=b; -J[a+304>>2]=b}function EJa(a){a=a|0;var b=0;J[a>>2]=2333284;if(J[a+112>>2])fg(J[a+108>>2]);b=J[a+116>>2];if(b)qc(hY(b));return a|0}function BE(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=bc-32|0;bc=c;d=c+21|0;e=c+32|0;XO(c+12|0,d,e,b);VO(a,d,J[c+12>>2]);bc=e}function Afa(){J[695911]=0;J[695910]=2624824;J[695910]=2619664;J[695912]=46;J[695913]=44;J[695910]=2619376;Se(2783656)}function yU(a,b,c){Qh(a,1229209940,b,c);b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;J[a+200>>2]=J[a+200>>2]|4}function rnb(a, -b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1162757196){Dc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];return 0}function lK(a){a:{if(a){J[695492]=0;_(2877,a|0);a=J[695492];J[695492]=0;if((a|0)==1)break a}return}ea(0)|0;yc();B()}function iza(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!a)break a;if((Td(b,1,c,J[a+180>>2])|0)==(c|0))break a;Ad(a,58045);B()}}function fxb(a,b){a=a|0;b=b|0;a=bc-16|0;bc=a;hd(198351,0);hd(199581,0);J[a>>2]=201097;hd(199980,a);bc=a+16|0;return 0}function f5(a,b){a=a|0;b=b|0;a=J[a+4>>2]|J[a>>2]<< -16;b=J[b+4>>2]|J[b>>2]<<16;return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)|0}function Ujb(a,b){a=a|0;b=b|0;a:{a=J[a>>2];b=J[b>>2];if(K[a|0]!=K[b|0])break a;if(Ec(a,b))break a;return 1}return 0}function Teb(a){a=a|0;var b=0,c=0;b=J[a+868>>2];if(b){c=J[a+100>>2];Sf(J[a+104>>2],b+12|0);if(b)gc[J[c+8>>2]](c,b)}}function Seb(a){a=a|0;var b=0,c=0;b=J[a+872>>2];if(b){c=J[a+100>>2];Sf(J[a+104>>2],b+16|0);if(b)gc[J[c+8>>2]](c,b)}}function Jwb(a){a=a|0;var b=0;a=J[a+52>>2];b=gc[J[J[a>>2]+20>>2]](a,2)|0;if((b|0)>0)gc[J[J[a>> -2]+20>>2]](a,b-2|0)|0}function JGa(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!a)break a;if((Yd(b,1,c,J[a+180>>2])|0)==(c|0))break a;Ad(a,58057);B()}}function Fnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1934772034){Dc(a,2050,0,0);return 2050}H[b+33|0]=K[c+33|0];return 0}function un(a){a=a|0;var b=0;J[a>>2]=47656;b=J[a+4>>2];if(!(!b|!K[a+12|0])){qc(b);J[a+4>>2]=0;J[a+8>>2]=0}return a|0}function qfb(a,b){a=a|0;b=b|0;var c=0;c=gc[J[a+516>>2]](a,1751474532,b,0)|0;if(!c)c=Me(b,325872,a+160|0);return c|0}function mM(a){a= -a|0;var b=0,c=0;b=J[J[a>>2]+100>>2];c=J[a+20>>2];if(c)gc[J[b+8>>2]](b,c);J[a+16>>2]=0;J[a+20>>2]=0}function lfb(a,b){a=a|0;b=b|0;var c=0;c=gc[J[a+516>>2]](a,1886352244,b,0)|0;if(!c)c=Me(b,326368,a+476|0);return c|0}function j_a(a){a=a|0;var b=0;a=J[a+4>>2];sw(J[a+4>>2]);J[a+4>>2]=0;b=J[a+8>>2];if(b)qc(b);J[a+8>>2]=0;J[a+12>>2]=0}function ffb(a,b){a=a|0;b=b|0;var c=0;c=gc[J[a+516>>2]](a,1346587732,b,0)|0;if(!c)c=Me(b,326496,a+568|0);return c|0}function efb(a,b){a=a|0;b=b|0;var c=0;c=gc[J[a+516>>2]](a, -1651008868,b,0)|0;if(!c)c=Me(b,325872,a+160|0);return c|0}function Pbb(a,b){a=a|0;b=b|0;var c=0;c=O[b>>3];O[a+608>>3]=c;b=J[a+16>>2];if(b){zC(b,c,6);Zw(J[a+16>>2],6)}return 0}function Nbb(a,b){a=a|0;b=b|0;var c=0;c=O[b>>3];O[a+600>>3]=c;b=J[a+16>>2];if(b){AC(b,c,6);Zw(J[a+16>>2],6)}return 0}function Jjb(a){a=a|0;var b=0,c=0;b=J[a>>2];if(b){c=J[a+28>>2];gc[J[c+8>>2]](c,b)}J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0}function y4(a){a=a|0;var b=0,c=0;b=J[a+28>>2];c=J[a>>2];if(c)gc[J[b+8>>2]](b,c);J[a>>2]=0;J[a+ -4>>2]=0;J[a+24>>2]=0}function wLa(a,b){a=a|0;b=b|0;var c=0;c=J[a+28>>2]+b|0;J[a+28>>2]=c;J[a+32>>2]=J[a+32>>2]-b;J[a+40>>2]=J[a+24>>2]+c}function vma(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return NS(J[a+12>>2],b,c,d,e,f,g,h)|0}function vjb(a,b){a=a|0;b=b|0;var c=0;b=b+20|0;c=V5(J[a>>2],I[a+22>>1],I[a+20>>1],b);if(!c)U5(a+20|0,b);return c|0}function ve(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=413844;b=J[a+4>>2];if(b){fg(b);J[a+4>>2]=0}return a|0}function roa(a,b){a= -a|0;b=b|0;var c=0;c=O[b>>3];a=J[a+12>>2];if(c!=O[a+784>>3]){H[a+928|0]=1;O[a+784>>3]=c}return 0}function qy(a,b){var c=0;c=bc-16|0;bc=c;J[c+12>>2]=J[a>>2];J[c+12>>2]=J[c+12>>2]+(b<<2);bc=c+16|0;return J[c+12>>2]}function qba(a){a=a|0;var b=0;b=J[a>>2];J[b+20>>2]=123;gc[J[b+4>>2]](a,-1);J[a+804>>2]=2;J[a+800>>2]=97689;return 1}function fn(a,b){var c=0;c=J[a+84>>2];if((c|0)<=0)return 0;return J[a+80>>2]+P((b|0)<(c|0)?(b|0)>0?b:0:c-1|0,96)|0}function cF(a,b,c){var d=0;d=bc-16|0;bc=d;J[d+12>>2]=b;J[d+ -8>>2]=c;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+8>>2];bc=d+16|0}function bh(a){a=a|0;var b=0;J[a>>2]=2414580;b=J[a+12>>2];if(b){H[b|0]=0;qc(J[a+12>>2])}J[a+12>>2]=0;return ed(a)|0}function Zva(a,b){a=a|0;b=b|0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;return a|0}function W3a(a,b,c){a=a|0;b=b|0;c=c|0;if(K[b|0]){J[a+160>>2]=3;return}if(K[c|0]){J[a+160>>2]=4;return}J[a+160>>2]=0}function Sna(a){a=a|0;var b=0;J[a>>2]=2427724;b=J[a+12>>2];if(b){if(H[b+2347|0]<0)qc(J[b+2336>>2]); -qc(QS(b))}qc(a)}function Si(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=b;if(!b){J[a+4>>2]=0;return a|0}c=a,d=Qc(b),J[c+4>>2]=d;return a|0}function QKa(a){a=a|0;var b=0;b=J[a+4>>2];gc[J[J[b>>2]+20>>2]](b);J[a+144>>2]=0;b=a+8|0;J[a+136>>2]=b;J[a+140>>2]=b}function Oqa(a){a=a|0;J[a>>2]=2421484;xd(a+120|0);xd(a+96|0);xd(a+72|0);_c(a+40|0);_c(a+28|0);_c(a+16|0);return a|0}function OM(a,b){var c=0,d=0;c=bc-16|0;bc=c;if(a){d=J[a+36>>2];J[c+12>>2]=d;if(d)xo(c+12|0);J[a+36>>2]=b}bc=c+16|0}function MP(a){var b=0; -b=J[a>>2];J[a>>2]=0;if(b){a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)gc[J[J[b>>2]+8>>2]](b)}}function KXa(a){a=a|0;var b=0;b=bc-16|0;bc=b;a=J[a+104>>2];J[b+12>>2]=1;gc[J[J[a>>2]+312>>2]](a,b+12|0)|0;bc=b+16|0}function JCa(a,b,c){a=a|0;b=b|0;c=c|0;b=gc[J[J[a>>2]+32>>2]](a,b,c,J[a+12>>2])|0;J[a+12>>2]=b+J[a+12>>2];return b|0}function G2a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;J[d+4>>2]=0;H[d+15|0]=0;W1(a+72|0,d+4|0,b,c);bc=d+16|0}function zob(a,b,c){a=a|0;b=b|0;c=c|0;if(J[a+44>>2])a=0;else a= -(J[a+56>>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;return a|0}function wva(a,b){a=a|0;b=b|0;J[a+92>>2]=J[b>>2];J[a+96>>2]=J[b+4>>2];J[a+100>>2]=J[b+8>>2];J[a+104>>2]=J[b+12>>2]}function wX(a,b){fp(a,b,32767,-1);if(J[a+644>>2]){rd(a,J[a+648>>2]);J[a+644>>2]=0;J[a+648>>2]=0}if(b)wc(b,0,236)}function uW(){var a=0,b=0;a=ye(1,44);a:{if(a){J[a+16>>2]=0;b=ye(1,8);J[a+36>>2]=b;if(b)break a;qc(a)}a=0}return a}function mC(a,b,c){var d=0;d=J[a+84>>2];if((d|0)>0)J[(J[a+80>>2]+P((b|0)<(d|0)?(b|0)>0?b:0:d-1|0,96)|0)+60>> -2]=c}function kk(a,b,c){J[695492]=0;ga(6536,b|0,c|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)return;ea(0)|0;yc();B()}function _vb(a,b){a=a|0;b=b|0;var c=0;if(K[b+28|0])b=c;else{c=1;b=J[b+32>>2]}J[a+2192>>2]=b;H[a+308|0]=c;return 0}function Mj(a,b,c){J[695492]=0;ga(6524,b|0,c|0,a|0)|0;a=J[695492];J[695492]=0;if((a|0)!=1)return;ea(0)|0;yc();B()}function Gr(a,b){b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24}function Cp(a){a=a|0;var b=0;J[a>>2]=768024; -b=rc(16);J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=768116;J[a+4>>2]=b;return a|0}function B_(a){var b=0;b=bc-16|0;bc=b;H[b+12|0]=0;a:{if(!a)break a;if((Yd(b+12|0,1,4,a)|0)!=4)break a}bc=b+16|0}function ur(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;b=b+2|0}J[a+32>>2]=b;return c}function qXa(a){a=a|0;var b=0;b=J[a+8>>2];if((b|0)>2]){J[a+8>>2]=b+1;a=K[J[a>>2]+b|0]}else a=-1;return a|0}function nr(a){a=a|0;a=J[a>>2];if(R(O[a>>3]*O[a+24>>3]-O[a+16>>3]*O[a+8>>3])<=1E-4)a=2;else{Fp(a); -a=0}return a|0}function dd(a){var b=0;b=J[a>>2];J[695492]=0;Gc(b);b=J[695492];J[695492]=0;if((b|0)!=1)return a;ea(0)|0;yc();B()}function a$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;gc[J[b+8>>2]](J[b>>2],0,55295);gc[J[b+8>>2]](J[b>>2],57344,1114111)}function U5a(a){a=a|0;var b=0;J[a>>2]=349272;Ed(a+280|0);b=J[a+268>>2];if(b){J[a+272>>2]=b;qc(b)}Qe(a+88|0);qc(a)}function N0(a){var b=0,c=0;b=bc-48|0;bc=b;a:{if(a){c=b+4|0;P0(c,a);a=kK(0,c);break a}a=kK(0,0)}bc=b+48|0;return a}function DJa(a){a=a|0;var b=0;J[a>> -2]=2333284;if(J[a+112>>2])fg(J[a+108>>2]);b=J[a+116>>2];if(b)qc(hY(b));qc(a)}function Ay(a,b){a:{J[695492]=0;ca(6550,a|0,b|0,1);a=J[695492];J[695492]=0;if((a|0)!=1)break a;ea(0)|0;yc();B()}}function zR(a){var b=0;a=Ou(a,589824,0);if((a|0)>=0){b=bd(1,2072);if(!b){Ga(a|0)|0;return 0}J[b+8>>2]=a}return b}function wwa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){a=$c(a)+16|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function rNa(a){a=a|0;var b=0;J[a>>2]=2307416;b=J[a+4>>2];if(b)qc(Rc(b));b=J[a+8>>2];if(b)qc(Rc(b)); -return a|0}function peb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=b<<2;d=J[b+J[a+388>>2]>>2];c=td(c,IC(a));J[b+J[a+388>>2]>>2]=c+d}function isa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;oe(a+28|0,c,1);if(c)tc(J[a+24>>2],b,c);uj(a+16|0,d);J[a+20>>2]=10}function hC(a){a=a|0;var b=0;b=J[653595];J[a>>2]=b;J[J[b-12>>2]+a>>2]=J[653598];fs(a+4|0);Uf(a+104|0);return a|0}function gmb(a){a=a|0;var b=0;a:{b=a?J[a+180>>2]:0;if(b)if(gc[J[J[b>>2]+32>>2]](b)|0)break a;Ad(a,45519);B()}}function gC(a){a=a|0;var b=0;b=J[653556];J[a>> -2]=b;J[J[b-12>>2]+a>>2]=J[653559];fs(a+8|0);Uf(a+108|0);return a|0}function fJa(a,b){a=a|0;b=b|0;var c=0;c=J[a+16>>2];J[(c?c+4|0:a+12|0)>>2]=b;J[a+16>>2]=b;J[b+4>>2]=0;J[b+8>>2]=a}function caa(a){a=a|0;var b=0;a:{if(!J[a+20>>2])break a;b=J[a>>2];if(!b)break a;qc(b);J[a>>2]=0}qc(a);return 0}function bxa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){a=sc(a)+8|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Yvb(a,b){a=a|0;b=b|0;var c=0;if(K[b+28|0])b=c;else{c=1;b=K[b+29|0]}H[a+2228|0]=b;H[a+310|0]= -c;return 0}function Wh(a){a=a|0;var b=0;if(!a)return 735216;b=J[689411];if(b)return gc[b|0](J[689412],a)|0;return zc(a)|0}function D8(a){var b=0;b=Iw(a+2340|0,212824,56);if(b){Dc(a,5,b,0);return 5}H[a+2420|0]=1;J[a+2352>>2]=0;return 0}function xRa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];J[c+592>>2]=J[b+8>>2];a=J[a+8>>2];gc[J[J[a>>2]+168>>2]](a,c)}function rYa(a,b){a=a|0;b=b|0;var c=0;a:{c=J[a+272>>2];if(!c)break a;c=J[c+36>>2];if(!c)break a;gc[c|0](a,b)}}function qlb(a,b){a=a|0;b=b|0;J[a+24>>2]=J[b+ -20>>2];J[a+4>>2]=J[b>>2];J[a+28>>2]=J[b+24>>2];N6(a,b,0);N6(a,b,1)}function lX(a,b){a=a|0;b=b|0;if(!(!a|!b)){J[a+164>>2]=J[b+4>>2];J[a+160>>2]=J[b>>2];J[a+212>>2]=J[b+8248>>2]&2}}function jsa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;oe(a+28|0,c,1);if(c)tc(J[a+24>>2],b,c);J[a+20>>2]=d;md(a+16|0,0)}function ct(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;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function boa(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;mo(J[a+12>>2]+920|0,b,c,d,e,f, -g);return 0}function Zs(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;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function Y4a(a){a=a|0;J[a+4>>2]=1;J[a>>2]=347692;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=350092;H[a+16|0]=0;return a|0}function Pk(a){a:{a=J[a+4>>2]&74;if(a){if((a|0)==64)return 8;if((a|0)!=8)break a;return 16}return 0}return 10}function Pdb(a,b,c){a=a|0;b=b|0;c=c|0;c=HC(a,b,c,1);if(!c)J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15;return c|0}function IW(a,b,c,d,e,f){var g=0;if(!(!a|!J[a+ -72>>2]))g=gc[J[a+28>>2]](J[a+44>>2],b,c,d,e,f,a+48|0)|0;return g}function D$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;gc[J[b+8>>2]](J[b>>2],0,127);Bk(J[J[J[a+8>>2]>>2]+24>>2],b,c,5,d)}function Aza(a){a=a|0;var b=0,c=0;c=a+92|0;while(1){b=J[c>>2];if(!(b&1|b&16|b&8))continue;break}return zG(a)|0}function ry(a,b){var c=0;c=bc-16|0;bc=c;J[c+12>>2]=J[a>>2];J[c+12>>2]=J[c+12>>2]+b;bc=c+16|0;return J[c+12>>2]}function pj(a,b,c){if(!c)return J[a+4>>2]==J[b+4>>2];if((a|0)==(b|0))return 1;return!Ec(J[a+4>>2],J[b+ -4>>2])}function g5a(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=7;J[a>>2]=349976;J[a+16>>2]=0;J[a+20>>2]=0;return a|0}function _G(a){a=a|0;var b=0;J[a>>2]=2371824;b=J[a+4>>2];if(b){qc(b);J[a+4>>2]=0}b=J[a+8>>2];if(b)qc(b);qc(a)}function Hr(a){a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}function ET(a){a=a|0;var b=0;J[a>>2]=2414580;b=J[a+12>>2];if(b){H[b|0]=0;qc(J[a+12>>2])}J[a+12>>2]=0;qc(ed(a))}function Cka(a){a=a|0;J[a>>2]=2437776;if(H[a+87|0]< -0)qc(J[a+76>>2]);if(H[a+75|0]<0)qc(J[a+64>>2]);return a|0}function zvb(a,b){a=a|0;b=b|0;return V7(a,L[b+28>>1],K[b+30|0],J[b+32>>2],J[b+36>>2],J[b+40>>2],J[b+44>>2])|0}function vfa(a,b){a=a|0;b=b|0;b=P(J[a+588>>2],b);J[a+604>>2]=b+J[a+604>>2];J[a+608>>2]=J[a+608>>2]-b;return 1}function vP(a,b){J[695492]=0;ca(6550,a|0,b<<2,4);a=J[695492];J[695492]=0;if((a|0)!=1)return;ea(0)|0;yc();B()}function mab(a){a=a|0;var b=0;b=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;XK(a);b=0}return b|0}function e3a(a){a= -a|0;var b=0;a=J[a+188>>2];a:{if(!a)break a;a=qn(a,2);if(!a)break a;b=L[a+8>>1]}return b|0}function _O(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if(b){J[a>>2]=J[c>>2];b=b-1|0;a=a+4|0;continue}break}return a|0}function _Da(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a;a=K[b+11|0];c=a<<24>>24<0;xv(d,c?J[b>>2]:b,1,c?J[b+4>>2]:a)}function ZQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0}function Vvb(a,b){a=a|0;b=b|0;var c=0;c=b;b=J[b+32>>2];J[c+56>>2]=b;if(!(b|K[a+460| -0]))H[a+460|0]=1;return 0}function Lcb(a){a=a|0;var b=0;b=J[a+440>>2];if(J[a+84>>2])gc[J[J[a+480>>2]+8>>2]](a);J[b+12>>2]=J[b+12>>2]+1}function Cfa(){J[695905]=0;J[695904]=2624824;J[695904]=2619664;I[1391812]=11310;J[695904]=2619336;Se(2783628)}function wNa(a){a=a|0;var b=0;J[a>>2]=2307368;b=J[a+4>>2];if(b)qc(b);b=J[a+8>>2];if(b)qc(Rc(b));return a|0}function uTa(a,b){a=a|0;b=b|0;var c=0;c=Qc(b);J[a>>2]=c;J[a+4>>2]=0;kh(a,c);tc(J[a+4>>2],b,c+1|0);return a|0}function oi(a){var b=0;if(K[a+11|0]>>>7| -0)a=J[a>>2];b=bc-16|0;bc=b;J[b+12>>2]=a;bc=b+16|0;return J[b+12>>2]}function og(a,b,c){if(c)while(1){if(J[a>>2]==(b|0))return a;a=a+4|0;c=c-1|0;if(c)continue;break}return 0}function nxb(a){a=a|0;var b=Q(0);b=Q(N[a+344>>2]+Q(.5));if(b=Q(0))return~~b>>>0|0;return 0}function mA(){var a=0,b=0;a=ye(1,12);if(a){J[a+4>>2]=10;b=ye(10,4);J[a+8>>2]=b;if(b)return a;qc(a)}return 0}function hQ(a,b,c,d,e){b=Gm(b,c,d,e,4);if(!(K[d|0]&4))J[a>>2]=((b|0)<69?b+2E3|0:b>>>0<100?b+1900|0:b)-1900}function eQ(a, -b,c,d,e){b=Fm(b,c,d,e,4);if(!(K[d|0]&4))J[a>>2]=((b|0)<69?b+2E3|0:b>>>0<100?b+1900|0:b)-1900}function bja(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)>=0)a=(J[J[a+8>>2]+((c&255)<<2)>>2]&b)!=0;else a=0;return a|0}function bKa(a){a=a|0;var b=0;b=J[a+40>>2];if(b>>>0>2]){J[a+40>>2]=b+1;a=K[b|0]}else a=-1;return a|0}function Svb(a,b){a=a|0;b=b|0;return f8(a,L[b+28>>1],L[b+30>>1],L[b+32>>1],H[b+34|0],L[b+36>>1],K[b+38|0])|0}function SAa(a){a=a|0;J[a>>2]=2389364;Bd(a+108|0);Bd(a+80|0);Bd(a+52|0);xd(a+28|0); -$c(a+12|0);return ed(a)|0}function Nfb(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c+12>>2]=0;JC(a,b,c+12|0);bc=c+16|0;return J[c+12>>2]}function qNa(a){a=a|0;var b=0;J[a>>2]=2307416;b=J[a+4>>2];if(b)qc(Rc(b));b=J[a+8>>2];if(b)qc(Rc(b));qc(a)}function kn(a){a=a|0;J[a>>2]=340520;if(H[a+27|0]<0)qc(J[a+16>>2]);if(H[a+15|0]<0)qc(J[a+4>>2]);return a|0}function eP(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if(b){H[a|0]=K[c|0];b=b-1|0;a=a+1|0;continue}break}return a|0}function Xha(a){a=a|0;var b=0;b=J[694782];if(a)J[694782]= -(a|0)==-1?2778984:a;return((b|0)==2778984?-1:b)|0}function W9a(a,b){a=a|0;b=b|0;var c=0;c=1;if(!(!J[a+16>>2]|!J[a+20>>2])){J[a+636>>2]=J[b>>2];c=0}return c|0}function LM(a,b){a:{if(!b)break a;a=wf(a,b);if(!a)break a;uf(a,0,0,a?J[a>>2]:-1,a?J[a+4>>2]:-1,10,0,0,0)}}function Gpa(a){a=a|0;J[a>>2]=2424840;Bd(a+68|0);sc(a+60|0);$c(a+44|0);Bd(a+16|0);sc(a+8|0);return ed(a)|0}function Eu(a,b,c){var d=0;d=bc-16|0;bc=d;Nk(a,c);J[d+12>>2]=0;J[(c<<2)+b>>2]=J[d+12>>2];bc=d+16|0;return a}function zta(a,b,c,d){a= -a|0;b=b|0;c=c|0;d=d|0;b=J[c>>2];if(b){gc[J[J[b>>2]+28>>2]](a,b,1);return}J[a>>2]=0}function vta(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=J[c>>2];if(b){gc[J[J[b>>2]+24>>2]](a,b,2);return}J[a>>2]=0}function sta(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=Im(c,b);if((a|0)>=0){c=a+c|0;H[c|0]=0}H[c|0]=0;return c|0}function m9(a,b){a=a|0;b=b|0;var c=0;if(!(1<>>0>20){b=0;c=0}else c=1;J[a+68>>2]=b;return c|0}function kr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(b?a:0)){J[c>>2]=0;J[d>>2]=0;return}Ep(a, -b,c,d,e)}function gA(a){var b=0;b=bc-16|0;bc=b;if(a){a=iF(b+12|0,32,a);a=a?0:J[b+12>>2]}else a=0;bc=b+16|0;return a}function Zjb(a){a=a|0;var b=0;b=J[a+32>>2];if(!b)return 3;sl(a,J[J[a+16>>2]>>2]);J[b+184>>2]=513;return 0}function Xk(a){var b=0;b=bc-16|0;bc=b;if(a){a=iF(b+12|0,16,a);a=a?0:J[b+12>>2]}else a=0;bc=b+16|0;return a}function W8a(a){a=a|0;var b=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!J[a+4>>2])gc[J[J[a>>2]+4>>2]](a);return b|0}function Tha(a){a=a|0;a=J[a+4>>2];if(!a)return 1;if(J[a+76>>2]<0)a= -J[a>>2];else a=J[a>>2];return a>>>4&1}function Hia(a,b,c){a=a|0;b=b|0;c=c|0;b=HQ(a+4|0,b,c|16);a=J[J[a>>2]-12>>2]+a|0;if(b){SQ(a);return}pq(a,4)}function Gga(a){a=a|0;a=J[a+4>>2];if(!a)return-1;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];return a>>>5&1}function G_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(e>>>0<=2)a=Qu(b,c,d,e)?-1:0;else a=-1;return a|0}function xwb(a,b){a=a|0;b=b|0;var c=0;c=J[a+4>>2];if(c){J[a+12>>2]=0;J[c+20>>2]=J[c+12>>2]+b;J[a+8>>2]=b}}function xf(a,b,c,d){if(!a)return;if(b)J[b>> -2]=J[a>>2];if(c)J[c>>2]=J[a+4>>2];if(d)J[d>>2]=J[a+8>>2]}function wq(a){var b=0;a=AF(a);b=fc;if((b|0)>=0&a>>>0>=2147483648|(b|0)>0){J[694731]=61;return-1}return a}function s2a(a,b){a=a|0;b=b|0;var c=0,d=0;d=a;a=K[b+11|0];c=a<<24>>24<0;lm(d,c?J[b>>2]:b,c?J[b+4>>2]:a,0)}function iP(a){if(!J[a+136>>2])J[a+136>>2]=J[J[694782]>>2]?2454544:2454520;if(!J[a+72>>2])J[a+72>>2]=1}function Uy(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;J[d+12>>2]=c;a=lF(a,b,c);bc=d+16|0;return a|0}function Nk(a,b){if(K[a+ -11|0]>>>7|0){J[a+4>>2]=b;return}H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127}function NRa(a,b,c){a=a|0;b=b|0;c=c|0;b=Zl(J[a+28>>2]);J[a+28>>2]=b;a=J[a+8>>2];gc[J[J[a>>2]+68>>2]](a,b)}function Mxb(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c>>2]=J[a+12>>2];cd(b,210284,c);bc=c+16|0;return 0}function K4(a,b){a=a|0;b=b|0;a=J[J[a>>2]+4>>2];b=J[J[b>>2]+4>>2];return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)|0}function Joa(a){a=a|0;var b=0,c=0;b=1;c=J[a+4>>2];if(!(!c|!K[a+8|0])){b=fg(c);J[a+4>>2]=0;b=!b}return b| -0}function Iia(a,b,c){a=a|0;b=b|0;c=c|0;b=HQ(a+8|0,b,c|8);a=J[J[a>>2]-12>>2]+a|0;if(b){SQ(a);return}pq(a,4)}function HP(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;J[e>>2]=c;J[h>>2]=f;return 3}function Gsa(a){a=a|0;var b=0;b=bc-16|0;bc=b;a=gc[J[J[a>>2]+44>>2]](a,0,b+12|0,10)|0;bc=b+16|0;return a|0}function Fn(a){if(H[a+35|0]<0)qc(J[a+24>>2]);if(H[a+23|0]<0)qc(J[a+12>>2]);if(H[a+11|0]<0)qc(J[a>>2])}function Bka(a){a=a|0;J[a>>2]=2437776;if(H[a+87|0]<0)qc(J[a+76>>2]);if(H[a+75|0]< -0)qc(J[a+64>>2]);qc(a)}function $Ua(a,b){a=a|0;b=b|0;if(J[a+16>>2]){we(b,1);a=J[a+16>>2];gc[J[J[a>>2]+8>>2]](a,b);return}we(b,0)}function zxa(a){a=a|0;var b=0;J[a>>2]=45680;b=J[a+4>>2];if(!(!b|!K[a+8|0])){fg(b);J[a+4>>2]=0}return a|0}function oy(){var a=0;J[695492]=0;a=J[695492];J[695492]=0;if((a|0)!=1)return J[653685];ea(0)|0;yc();B()}function ny(){var a=0;J[695492]=0;a=J[695492];J[695492]=0;if((a|0)!=1)return J[654072];ea(0)|0;yc();B()}function dLa(a){a=a|0;var b=0;b=J[a+4>>2];gc[J[J[b>>2]+20>> -2]](b);J[a+52>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0}function Rjb(a){a=a|0;a=J[a>>2];return P(P(P(a&255,31)+(a>>>8&255)|0,31)+(a>>>16&255)|0,31)+(a>>>24|0)|0}function Nia(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return gc[J[J[a>>2]+16>>2]](a,b,c,d,e,f)|0}function JJa(a,b){a=a|0;b=b|0;a=J[J[a>>2]+40>>2];b=J[J[b>>2]+40>>2];return((a|0)<(b|0)?-1:(a|0)>(b|0))|0}function Ijb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[d>>2]=0;if(!b)return 81;return vr(b,333319,e)|0}function Hjb(a,b,c,d,e){a=a|0;b=b|0; -c=c|0;d=d|0;e=e|0;J[d>>2]=0;if(!b)return 81;return vr(b,333312,e)|0}function Aoa(a,b){a=a|0;b=b|0;if((b|0)<=0){a=_i(a);b=a>>>0>8192?1:8192/((a>>>0<=1?1:a)>>>0)|0}return b|0}function vk(a){var b=0;if(a){b=J[a>>2];if(b)vk(b);b=J[a+4>>2];if(b)gc[J[659451]](b);gc[J[659451]](a)}}function vNa(a){a=a|0;var b=0;J[a>>2]=2307368;b=J[a+4>>2];if(b)qc(b);b=J[a+8>>2];if(b)qc(Rc(b));qc(a)}function tnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1296387652){Dc(a,2050,0,0);a=2050}else a=0;return a|0}function qjb(a,b,c){a= -a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;a=Zd(a,P(b,c),d+12|0);bc=d+16|0;return a|0}function jba(a){a=a|0;var b=0;b=J[a+828>>2];J[b+604>>2]=J[a+780>>2];J[b+608>>2]=J[b+600>>2]-J[a+784>>2]}function dgb(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c+12>>2]=b;a=F4(a,c+12|0,0);bc=c+16|0;return a|0}function c_a(a,b){a=a|0;b=b|0;b=rw(J[J[b+4>>2]+4>>2]);if(!b){J[a>>2]=0;H[a+11|0]=0;return}mm(a,b,Qc(b))}function b9a(a){a=a|0;J[a>>2]=340520;if(H[a+27|0]<0)qc(J[a+16>>2]);if(H[a+15|0]<0)qc(J[a+4>>2]);qc(a)}function _s(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(!J[J[a+12>>2]+44>>2])return 1;return 0}function Z3a(a,b){a=a|0;b=b|0;b=J[b+8>>2];if(!b){J[a>>2]=0;H[a+11|0]=0;return}gc[J[J[b>>2]+44>>2]](a,b)}function YNa(a){a=a|0;var b=0,c=0;c=-1;b=J[a+60>>2];if(!(!b|M[a+64>>2]<=b>>>0))c=K[b|0]^255;return c|0}function Wmb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1246971216){Dc(a,2050,0,0);a=2050}else a=0;return a|0}function Vkb(a,b){a=a|0;b=b|0;b=J[a>>2];J[a+16>>2]=J[J[b+140>>2]+52>>2];J[a+20>>2]=J[b+144>>2];return 0} -function Tmb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1229999687){Dc(a,2050,0,0);a=2050}else a=0;return a|0}function Rmb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1229606471){Dc(a,2050,0,0);a=2050}else a=0;return a|0}function RAa(a){a=a|0;J[a>>2]=2389364;Bd(a+108|0);Bd(a+80|0);Bd(a+52|0);xd(a+28|0);$c(a+12|0);qc(ed(a))}function KPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=wc(a,0,256),e=(K[J[b>>2]+c|0]<<6)+-8192|0,J[d>>2]=e}function Jnb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1229278788){Dc(a,2050,0,0);a=2050}else a= -0;return a|0}function JW(a,b,c){var d=0;if(!(!J[a+72>>2]|(!a|!b)))d=gc[J[a+4>>2]](J[a+44>>2],b,c,a+48|0)|0;return d}function Ilb(a,b,c){a=a|0;b=b|0;c=c|0;if(!(J[J[J[a>>2]+16>>2]+40>>2]?J[a+20>>2]:1))X_(J[689612],b,c)}function $s(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(!J[J[a+16>>2]+44>>2])return 1;return 0}function zGa(a,b,c){a=a|0;b=b|0;c=c|0;if((b|0)<0){fc=-1;return-1}J[c+8>>2]=J[c+8>>2]+a;fc=b;return a|0}function xQa(a){a=a|0;var b=0;b=J[a+168>>2];if(!b)return 0;J[b+24>>2]=J[b+24>> -2]+1;return J[a+168>>2]}function lma(a){a=a|0;a=J[a+12>>2];a:{if(J[a+2232>>2]==512){bv(a+1984|0);break a}WK(a+2312|0)}return 0}function c6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+268>>2]+(b<<3)|0;J[c>>2]=J[a>>2];N[d>>2]=N[a+4>>2]}function YGa(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;return gX(J[a>>2],b,c,d,e,f,g)|0}function Mea(a,b,c){a=a|0;b=b|0;c=c|0;if(c>>>0<=127)a=(J[(c<<2)+2618256>>2]&b)!=0;else a=0;return a|0}function EUa(a){a=a|0;if(H[a+343|0]<0)qc(J[a+332>>2]);if(H[a+327|0]< -0)qc(J[a+316>>2]);return em(a)|0}function DX(a,b){a=a|0;b=b|0;if(!J[J[a+16>>2]+44>>2])return 1;J[b>>2]=0;J[b+4>>2]=1079115776;return 0}function CX(a,b){a=a|0;b=b|0;if(!J[J[a+12>>2]+44>>2])return 1;J[b>>2]=0;J[b+4>>2]=1079115776;return 0}function AR(a){if(!(H[2781468]&1)){lb(2778928,2778932,2778936);H[2781468]=1}a=Xb(a|0)|0;fc=cc;return a}function p9a(a){a=a|0;var b=0;b=bc-16|0;bc=b;J[b+12>>2]=1;gc[J[J[a>>2]+348>>2]](a,b+12|0)|0;bc=b+16|0}function fZa(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+8>>2]; -if(!a)break a;b=J[a+40>>2]==1}return b|0}function eZa(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+8>>2];if(!a)break a;b=J[a+44>>2]!=0}return b|0}function dmb(a){a=a|0;var b=0;a:{if(!a)break a;b=J[688836];if(!b)break a;gc[J[J[b>>2]+40>>2]](b,a)}}function dZa(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+8>>2];if(!a)break a;b=J[a+48>>2]!=0}return b|0}function _mb(a){a=a|0;var b=0;b=J[a+4>>2];if(!(!b|!K[a+12|0])){qc(b);J[a+4>>2]=0;J[a+8>>2]=0}return 1}function SZa(a,b){a=a|0;b=b|0;J[a>>2]=0;b=J[b>>2];J[a>>2]= -b;if(b)gc[J[J[b>>2]+8>>2]](b)|0;return a|0}function Nob(a,b){a=a|0;b=b|0;var c=0;c=J[a+428>>2];H[c+8|0]=K[b+32|0];return ue(a,J[b>>2],1,c+8|0)|0}function K$a(a){a=a|0;var b=0;b=J[a+8>>2];if(b){ir(J[b>>2]);if(!K[a+34|0])Gf(J[a+8>>2]);J[a+8>>2]=0}}function Fpa(a){a=a|0;J[a>>2]=2424840;Bd(a+68|0);sc(a+60|0);$c(a+44|0);Bd(a+16|0);sc(a+8|0);qc(ed(a))}function D9a(a,b,c){a=a|0;b=+b;c=+c;var d=0;a=J[a+16>>2];d=J[a+44>>2];O[d+40>>3]=c;O[d+32>>3]=b;Yw(a)}function Bxa(a){a=a|0;var b=0;b=J[a+8>>2];if(!b)return 0; -zU(b,1);return(J[J[a+8>>2]+148>>2]&2)>>>1|0}function yq(a){if(J[a+76>>2]<0)a=J[a+60>>2];else a=J[a+60>>2];if((a|0)<0){J[694731]=8;a=-1}return a}function qP(a,b,c){var d=0;d=bc-16|0;bc=d;a:{if((a|0)==(b|0)){H[b+120|0]=0;break a}vP(b,c)}bc=d+16|0}function k2(a){var b=0;b=J[a>>2];J[a>>2]=0;if(b){if(!(!K[a+8|0]|H[b+27|0]>=0))qc(J[b+16>>2]);qc(b)}}function hkb(a,b){a=a|0;b=b|0;a=J[a+712>>2];H[b|0]=0;if(!(!a|J[a+1504>>2]==65535))H[b|0]=1;return 0}function fmb(a,b){a=a|0;b=b|0;var c=0;if(!J[688836]){c=fL(); -J[688836]=c;gc[J[J[c>>2]+36>>2]](c,a,b)}}function cTa(a,b){a=a|0;b=b|0;J[a>>2]=b;J[a+12>>2]=0;J[a+16>>2]=1;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}function _E(a){a=a|0;if((a|0)!=0&(a|0)!=2454520&(a|0)!=2454544&(a|0)!=2781984&(a|0)!=2782008)qc(a)}function WN(a){var b=0,c=0;if(a)while(1){b=b+1|0;c=a>>>0>1;a=a>>>1|0;if(c)continue;break}return b}function Sd(){var a=0;a=jk(4);J[a>>2]=2626404;J[a>>2]=2626364;J[a>>2]=2626384;xa(a|0,2626492,32);B()}function Ps(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a>>2]=0;J[a+4>> -2]=0;H[a+8|0]=0;xv(a,b,c,d);return a|0}function KJa(a,b){a=a|0;b=b|0;var c=0,d=0;c=O[J[a>>2]+24>>3];d=O[J[b>>2]+24>>3];return(cd)|0}function HW(a,b){var c=0;if(!(!J[a+72>>2]|(!a|!b)))c=gc[J[a+16>>2]](J[a+44>>2],b,a+48|0)|0;return c}function wfb(a,b){a=a|0;b=b|0;var c=0;c=J[J[a+12>>2]+48>>2];if(!c)return 150;return gc[c|0](a,b)|0}function v7(a,b){if(!a)return 0;if(!b){if(a)J[a+16>>2]=J[a+16>>2]+1;return a}return NM(a,b,b,b,b)}function qvb(a){a=a|0;var b=0;b=J[a+12>>2];gc[J[J[a>>2]+8>>2]](a); -ef(b+2568|0,J[J[a>>2]+20>>2]);B()}function cwb(a,b){a=a|0;b=b|0;H[a+306|0]=1;J[a+1160>>2]=J[b+28>>2];tc(a+1164|0,b+32|0,768);return 0}function awb(a,b){a=a|0;b=b|0;H[a+307|0]=1;J[a+1932>>2]=J[b+28>>2];tc(a+1936|0,b+32|0,256);return 0}function a1(a){var b=0;b=J[a+4>>2];if(b)qc(b);b=J[a+16>>2];if(b)qc(b);b=J[a>>2];if(b)qc(b);qc(a)}function Xi(a){var b=0;b=J[a>>2];J[a>>2]=b-1;if((b|0)<=1){b=J[J[a+8>>2]>>2];if(b)gc[b|0](a);qc(a)}}function WL(a,b,c){if((b|0)>0){a=gc[J[a+4>>2]](a,b)|0;J[c>>2]=!a<<6;return a}J[c>> -2]=b?6:0;return 0}function JYa(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+36>>2];if(!a)break a;b=J[a+28>>2]}return b|0}function IYa(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+36>>2];if(!a)break a;b=J[a+32>>2]}return b|0}function Hna(a,b){a=a|0;b=b|0;var c=0;a=J[a+12>>2];c=O[b>>3];O[a+2248>>3]=c;O[a+1992>>3]=c;return 0}function Gu(a,b,c){var d=0;d=bc-16|0;bc=d;Nk(a,c);H[d+15|0]=0;H[b+c|0]=K[d+15|0];bc=d+16|0;return a}function Gf(a){a=a|0;var b=0;if((a|0)!=735216){b=J[689413];if(b){gc[b|0](J[689412],a);return}qc(a)}} -function Fna(a,b){a=a|0;b=b|0;var c=0;a=J[a+12>>2];c=O[b>>3];O[a+1984>>3]=c;O[a+2240>>3]=c;return 0}function wja(a,b){a=a|0;b=b|0;J[a+528>>2]=0;J[a+516>>2]=571;J[a+512>>2]=0;J[a+524>>2]=571;return 1}function tua(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a>>2]=2412864;J[a+4>>2]=0;return a|0}function tkb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return gc[J[J[a+548>>2]+40>>2]](a,b,c,d,e)|0}function qPa(a){a=a|0;var b=0;J[a>>2]=2206256;b=J[a+12>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function qOa(a){a= -a|0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+40>>2]=-1;J[a+32>>2]=0;J[a+36>>2]=0;return a|0}function pX(a){var b=0;if(a){b=J[a+4>>2];if(b)gc[b|0](J[a>>2]);qc(J[a+32>>2]);J[a+32>>2]=0;qc(a)}}function bYa(a){a=a|0;J[J[a+388>>2]+12>>2]=0;gc[J[J[a+404>>2]+4>>2]](a);gc[J[J[a+404>>2]+8>>2]](a)}function Yo(a){var b=0;b=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=b;b=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=b}function YDa(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];if(K[a+8|0])c=J[c>>2];return J[(J[b>>2]<<2)+c>>2]}function XPa(a){a=a|0;var b= -0;J[a>>2]=2206048;b=J[a+16>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function X3a(a,b){a=a|0;b=b|0;a=J[a+8>>2];if(!a)return 0;return gc[J[J[a>>2]+92>>2]](a,J[b>>2])|0}function Qja(a){a=a|0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=2451300;J[a+12>>2]=0;J[a+16>>2]=0;return a|0}function Nvb(a,b){a=a|0;b=b|0;return b8(a,L[b+28>>1],L[b+30>>1],K[b+32|0],J[b+36>>2],J[b+40>>2])|0}function Moa(a){a=a|0;var b=0;J[a>>2]=2427048;b=J[a+12>>2];if(b){qc(fT(b));J[a+12>>2]=0}return a|0}function Lo(a){J[695492]=0;PO(a-24|0); -a=J[695492];J[695492]=0;if((a|0)!=1)return;ea(0)|0;yc();B()}function KYa(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+36>>2];if(!a)break a;b=J[a+4>>2]}return b|0}function Jba(a,b){a=a|0;b=b|0;a=J[a+12>>2];Nc(J[a+628>>2],90031,90289,0);ef(J[a+584>>2]+4|0,1);B()}function Iba(a,b){a=a|0;b=b|0;a=J[a+12>>2];Nc(J[a+628>>2],90031,90289,0);ef(J[a+584>>2]+4|0,1);B()}function Fdb(a,b,c){a=a|0;b=b|0;c=c|0;if(Ec(b,241361))a=12;else{J[c>>2]=J[a+64>>2];a=0}return a|0}function $sa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d= -bc-16|0;bc=d;J[d+12>>2]=c;FT(a,b,d+12|0);bc=d+16|0}function zCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];return gc[J[J[a>>2]+20>>2]](a,b,c,d)|0}function yTa(a){a=a|0;var b=0;J[a+4>>2]=8;b=vd(8,4);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=b;return a|0}function rp(a,b,c,d){var e=0;a:{if(!a)break a;a=J[a+44>>2];if(!a)break a;e=tf(a,c,d,b)}return e}function q5a(a,b){a=a|0;b=b|0;var c=0;c=J[b>>2];if(c)gc[J[J[c>>2]+8>>2]](c);J[a>>2]=b;return a|0}function pf(a){var b=0;b=bc-16|0;bc=b;a=af(a,b+12|0,1);bc=b+16| -0;return((a|0)==1?K[b+12|0]:0)&255}function oZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b>>2];a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0}function oKa(a){a=a|0;var b=0;J[a>>2]=2332684;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function mLa(a){a=a|0;var b=0;J[a>>2]=2331460;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function kY(a,b){a=a|0;b=b|0;var c=0,d=0;c=O[J[a>>2]+8>>3];d=O[J[b>>2]+8>>3];return(cd)|0}function gPa(a){a=a|0;var b=0;J[a>>2]=2206328;b=J[a+8>>2];if(b)gc[J[J[b>>2]+ -4>>2]](b);return a|0}function gLa(a){a=a|0;var b=0;J[a>>2]=2331560;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function fj(a){var b=0;a:{if(!J[a+24>>2])break a;b=J[a+20>>2];if(!b)break a;qc(b);J[a+20>>2]=0}}function eJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!a|(c|0)!=156)a=d;else J[a+156>>2]=b;return a|0}function cPa(a){a=a|0;var b=0;J[a>>2]=2206348;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function bya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+12>>2];return gc[J[J[a>>2]+20>>2]](a,b,c, -0)|0}function XM(a,b){if(b){XM(a,J[b>>2]);XM(a,J[b+4>>2]);a=J[b+20>>2];if(a){J[b+24>>2]=a;qc(a)}qc(b)}}function WM(a,b){if(b){WM(a,J[b>>2]);WM(a,J[b+4>>2]);a=J[b+20>>2];if(a){J[b+24>>2]=a;qc(a)}qc(b)}}function WGa(a,b,c){a=a|0;b=b|0;c=c|0;if(!a){fa(2344776,2342899,3219,2359390);B()}eX(J[a>>2],b,c)}function TKa(a){a=a|0;var b=0;J[a>>2]=2331760;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function P3(a){a=a|0;var b=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)gc[J[J[a>>2]+4>>2]](a);return b|0}function NSa(a){a= -a|0;var b=0;J[a>>2]=2201448;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function NMa(a){a=a|0;var b=0,c=0;if(!J[a+88>>2])b=a,c=BY(a+32|0,a+48|0,a,J[a>>2]),J[b+88>>2]=c}function Hma(a,b){a=a|0;b=b|0;var c=0;c=O[b>>3];a=J[a+12>>2];H[a+2225|0]=1;O[a+472>>3]=c;return 0}function DUa(a){a=a|0;if(H[a+343|0]<0)qc(J[a+332>>2]);if(H[a+327|0]<0)qc(J[a+316>>2]);qc(em(a))}function Bcb(a){a=a|0;var b=0;b=gh(J[a+4>>2],240862);if(!b)return 11;J[a+28>>2]=J[b>>2];return 0}function BBa(a){a=a|0;var b=0;b=J[a+ -20>>2];if(!b)return a+36|0;return(J[b+8>>2]?a+20|0:a+36|0)|0}function zmb(a){a=a|0;var b=0;b=J[a+20>>2];a=J[a+12>>2];return b+P(J[a+4>>2]-J[a>>2]>>2,20480)|0}function z1a(){var a=0;a=J[689410];if(a){Ih(a);J[689410]=0}J[689408]=0;wc(2757560,0,72);return 1}function xGa(a){a=a|0;var b=0;b=1;if(!(!a|!K[a+398|0])){J[a+208>>2]=J[a+208>>2]|2;b=7}return b|0}function v8(a){a=a|0;tc(J[a+644>>2],J[a+636>>2]+J[a+616>>2]|0,J[a+604>>2]);H[a+649|0]=0;return 0}function rd(a,b){a=a|0;b=b|0;var c=0;if(!(!a|!b)){c= -J[a+676>>2];if(c){gc[c|0](a,b);return}qc(b)}}function rN(a){var b=0;a:{if(!J[a+964>>2])break a;if(!Yx(a,0,0))break a;b=J[a+964>>2]}return b}function qBa(a){a=a|0;J[a>>2]=2386220;sc(a+44|0);sc(a+36|0);sc(a+28|0);sc(a+20|0);return ed(a)|0}function n6a(a){a=a|0;var b=0;b=rc(12);J[b+8>>2]=J[a+8>>2];J[b>>2]=349232;J[b+4>>2]=0;return b|0}function l_a(a){a=a|0;var b=0;J[a>>2]=768024;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);return a|0}function jca(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(pj(a,J[b+ -8>>2],f))vE(b,c,d,e)}function izb(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;J[c>>2]=J[a+12>>2];cd(b,207389,c);bc=c+16|0}function iMa(a,b){a=a|0;b=b|0;if(b){a=J[b>>2];if(a)qc(Rc(a));a=J[b+4>>2];if(a)qc(Rc(a));qc(b)}}function iI(a,b,c,d){var e=0;e=J[a+448>>2];if(e)Gc(e);O[a+456>>3]=d;J[a+452>>2]=c;J[a+448>>2]=b}function eAa(a){a=a|0;J[a>>2]=2389692;$c(a+40|0);sc(a+32|0);sc(a+24|0);sc(a+12|0);return ed(a)|0}function dFa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;gc[J[J[b>>2]+16>>2]](a,b,J[c+8>>2],J[c+12>>2],0,d)} -function Qxb(a,b,c){a=a|0;b=b|0;c=c|0;return((Ko(c,J[a+20>>2],J[a+16>>2])|0)!=J[a+16>>2]?-1:0)|0}function Nta(a){a=a|0;var b=0;b=J[a+4>>2];if(!b)J[a+4>>2]=-32767;if(!b)gc[J[J[a>>2]+4>>2]](a)}function LO(a){var b=0;a:{a=J[a>>2]-12|0;b=J[a+8>>2]-1|0;J[a+8>>2]=b;if((b|0)>=0)break a;qc(a)}}function Gya(a,b){a=a|0;b=b|0;a=a+148|0;b=J[a>>2]&-4097|(b?4096:0);if((b|0)!=J[a>>2])J[a>>2]=b}function Fya(a,b){a=a|0;b=b|0;a=a+148|0;b=J[a>>2]&-2049|(b?2048:0);if((b|0)!=J[a>>2])J[a>>2]=b}function Ci(a){var b=0;b= -J[a+104>>2];a:{if(!b)break a;b=J[b>>2];if(!b)break a;gc[b|0](a)}qc(a)}function CDa(a){a=a|0;a=J[a+4>>2];if(!a)return 0;a=J[a+12>>2];if(a)a=zG(a);else a=0;return a|0}function wma(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return OS(J[a+12>>2],b,c,d,e,f)|0}function xo(a){var b=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;qc(J[b>>2]);qc(b);J[a>>2]=0}}function xM(a,b){var c=0;if(!(!a|(b|0)<0|J[a+4>>2]<=(b|0)))c=J[J[a+12>>2]+(b<<2)>>2];return c}function xKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(a){J[a+ -676>>2]=d;J[a+672>>2]=c;J[a+668>>2]=b}}function v5(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[J[a+12>>2]+56>>2]+12>>2]](J[a+52>>2],b,c)|0}function bzb(a,b){a=a|0;b=b|0;a=J[a+4>>2];b=J[b+4>>2];return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)|0}function ahb(a,b){a=a|0;b=b|0;var c=0;J[(!a|J[a>>2]!=1381173770?c:J[a+4>>2])+16>>2]=b;return 1}function Yxa(a){a=a|0;a=Pz(a);H[a+16|0]=0;J[a+8>>2]=0;J[a+12>>2]=-1;J[a>>2]=2404676;return a|0}function Nva(a){a=a|0;var b=0;J[a>>2]=2411688;b=J[a+4>>2];if(!(!b|(b|0)==2382582))qc(b); -qc(a)}function Ngb(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+104>>2];I[a+144>>1]=0-c;J[a+140>>2]=0-P(I[b>>1],c)}function Mf(a,b,c){if(!(J[a+12>>2]>(b|0)&(b|0)>=0)){J[c>>2]=0;return 0}return K[J[a+8>>2]+b|0]}function IP(a){a=a|0;var b=0;J[a>>2]=2618204;b=J[a+8>>2];if(!(!b|!K[a+12|0]))qc(b);return a|0}function Hxa(a,b){a=a|0;b=b|0;var c=0;c=rc(12);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=J[b>>2];of(a,c)}function Fla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+4>>2];if(!a)return 0;return Td(b,c,d,a)|0}function Cya(a,b){a=a| -0;b=b|0;a=a+148|0;b=J[a>>2]&-129|(b?128:0);if((b|0)!=J[a>>2])J[a>>2]=b}function Ad(a,b){var c=0;a:{if(!a)break a;c=J[a+160>>2];if(!c)break a;gc[c|0](a,b)}mY(a);B()}function $Ia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(a){J[a+164>>2]=d;J[a+160>>2]=c;J[a+168>>2]=b}}function vcb(a){a=a|0;if(dM(J[J[a>>2]+504>>2]+108|0,J[a+44>>2])){_5(J[a+44>>2]);J[a+44>>2]=0}}function tqb(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;tc(g,e,P(d,6));return 0}function pPa(a){a=a|0;var b=0;J[a>>2]=2206256;b=J[a+12>> -2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function pB(a,b,c){var d=0;a:{if(!a)break a;a=J[a+40>>2];if(!a)break a;d=bn(a,b,c)}return d}function jwb(a,b){a=a|0;b=b|0;var c=0;c=J[a+20>>2];if(c){J[a+28>>2]=0;Xg(c,b,0);J[a+24>>2]=b}}function d1(a,b){a=a|0;b=b|0;a:{if(b>>>0<=1){J[a+48>>2]=0;if((b|0)==1)break a}J[a+52>>2]=1}}function aKa(a){a=a|0;var b=0;b=J[a+40>>2];if(b>>>0>2])a=K[b|0];else a=-1;return a|0}function YQ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0} -function Xbb(a){a=a|0;var b=0;J[a>>2]=340424;b=J[a+28>>2];if(b){qc(b);J[a+28>>2]=0}return a|0}function WPa(a){a=a|0;var b=0;J[a>>2]=2206048;b=J[a+16>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function Tqb(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;tc(g,e,P(d,3));return 0}function ygb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=2;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function uvb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+152>>2];if(!a)return 0;return gc[a|0](P(b,c))|0}function ujb(a,b,c){a=a|0;b=b|0;c=c| -0;if(b)uo(a+20|0,b);if(c)Jh(a+20|0,J[c>>2],J[c+4>>2])}function sgb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=4;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function olb(a,b,c){a=a|0;b=b|0;c=c|0;if(b)J[b>>2]=J[a+10056>>2];if(c)J[c>>2]=J[a+252>>2]}function nib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;fh(a,J[a+8>>2]);return fu(a,J[a+8>>2],b,c,d)|0}function ngb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=6;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function nKa(a){a=a|0;var b=0;J[a>>2]=2332684;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>> -2]](b);qc(a)}function me(a){var b=0;b=bc-16|0;bc=b;a=af(a,b+12|0,1);bc=b+16|0;return(a|0)==1&K[b+12|0]!=0}function lLa(a){a=a|0;var b=0;J[a>>2]=2331460;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function kwa(a){a=a|0;oe(a+28|0,0,1);J[a+20>>2]=0;oe(a+40|0,0,1);oe(a+52|0,0,4);J[a+60>>2]=0}function kPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[c+8>>2]=0;J[c+12>>2]=1;J[c>>2]=0;J[c+4>>2]=0}function g4a(a,b){a=a|0;b=b|0;O[a+128>>3]=O[b>>3];b=J[a+8>>2];if(b)O[b+144>>3]=O[a+128>>3]}function fLa(a){a=a|0;var b= -0;J[a>>2]=2331560;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function ePa(a){a=a|0;var b=0;J[a>>2]=2206328;b=J[a+8>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function _Ga(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Cv(J[a>>2],b,c,d,e,f)|0}function Xhb(a){a=a|0;var b=0,c=0;b=J[a>>2];c=J[a+4>>2];if(c)gc[J[b+8>>2]](b,c);J[a+4>>2]=0}function WJa(a){a=a|0;var b=0;b=gc[J[J[a>>2]+32>>2]](a)|0;J[a+44>>2]=J[a+44>>2]+1;return b|0}function Ve(a){var b=0,c=0;c=a;while(1){b=c;c=b+4|0;if(J[b>>2])continue; -break}return b-a>>2}function SKa(a){a=a|0;var b=0;J[a>>2]=2331760;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function LSa(a){a=a|0;var b=0;J[a>>2]=2201448;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function KP(a,b){var c=0;c=a+8|0;a=J[c>>2];return J[a+(b<<2)>>2]!=0&J[c+4>>2]-a>>2>>>0>b>>>0}function Cia(a,b){a=a|0;b=b|0;var c=0;c=bc-16|0;bc=c;bc=c+16|0;return(M[b>>2]>2]?b:a)|0}function Cgb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=0;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function wvb(a){a= -a|0;var b=0;b=a;a=J[a>>2];gc[J[a+12>>2]](b,J[a+288>>2]);ef(a+132|0,1);B()}function sN(a){var b=0;H[a+2420|0]=0;b=kl(a+2340|0);if(b){Dc(a,5,b,0);a=5}else a=0;return a}function pBa(a){a=a|0;J[a>>2]=2386220;sc(a+44|0);sc(a+36|0);sc(a+28|0);sc(a+20|0);qc(ed(a))}function oba(a){a=a|0;var b=0;b=J[a+828>>2];J[a+800>>2]=J[b+596>>2];J[a+804>>2]=J[b+608>>2]}function nqb(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;tc(g,e,d<<3);return 0}function mk(a){a=a|0;var b=0;J[a>>2]=2451200;b=J[a+4>>2];if(b){J[a+ -8>>2]=b;qc(b)}return a|0}function mY(a){var b=0;a:{if(!a)break a;b=J[a+156>>2];if(!b)break a;gc[b|0](a,1)}ra();B()}function lwb(a,b){a=a|0;b=b|0;var c=0;c=J[a+20>>2];if(c){Xg(c,b,1);J[a+24>>2]=J[a+24>>2]+b}}function k_a(a){a=a|0;var b=0;J[a>>2]=768024;b=J[a+4>>2];if(b)gc[J[J[b>>2]+4>>2]](b);qc(a)}function jLa(a){a=a|0;var b=0;b=J[a+4>>2];gc[J[J[b>>2]+20>>2]](b);J[a+8>>2]=-1;J[a+12>>2]=0}function hba(a){a=a|0;var b=0;b=J[a+828>>2];J[a+780>>2]=J[b+596>>2];J[a+784>>2]=J[b+600>>2]}function cAa(a){a=a| -0;J[a>>2]=2389692;$c(a+40|0);sc(a+32|0);sc(a+24|0);sc(a+12|0);qc(ed(a))}function b3a(a){a=a|0;J[a>>2]=350760;qc(J[a+8>>2]);qc(J[a+12>>2]);qc(J[a+28>>2]);return a|0}function _la(a,b,c){a=a|0;b=b|0;c=c|0;if(c&1){fa(77333,76141,715,83380);B()}qs(b,(c|0)/2|0)}function Yy(a){a=a|0;a=Ga(a|0)|0;a=(a|0)!=27?a:0;if(a){J[694731]=a;a=-1}else a=0;return a|0}function Qla(a,b,c){a=a|0;b=b|0;c=c|0;if(c&3){fa(78585,76141,731,83418);B()}Xo(b,(c|0)/4|0)}function Nla(a,b,c){a=a|0;b=b|0;c=c|0;if(c&7){fa(79009,76141, -739,83437);B()}GF(b,(c|0)/8|0)}function Li(a){a=a|0;var b=0;a:{if(J[a+20>>2])break a;b=J[a+36>>2];if(!b)break a;Mn(a,b)}}function Lbb(a,b){a=a|0;b=b|0;if(!b)return 1;O[b>>3]=O[a+616>>3]*25.4/O[a+600>>3];return 0}function Kbb(a,b){a=a|0;b=b|0;if(!b)return 1;O[b>>3]=O[a+624>>3]*25.4/O[a+608>>3];return 0}function Ej(a,b){a=a|0;b=b|0;return(K[a+494|0]?b:b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0}function Dlb(a){a=a|0;a:{if(H[a+11|0]<0){J[a+4>>2]=0;a=J[a>>2];break a}H[a+11|0]=0}H[a|0]=0}function Aq(a){a= -a|0;var b=0;J[a>>2]=2451300;b=J[a+4>>2];if(b)qc(b);J[a+4>>2]=0;return a|0}function $ba(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=gc[a|0](b,c,d,e)|0;cc=fc;return a|0}function u8(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;tc(g,e,d<<1);return 0}function ss(a,b){if(b){ss(a,J[b>>2]);ss(a,J[b+4>>2]);if(H[b+31|0]<0)qc(J[b+20>>2]);qc(b)}}function s8(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;tc(g,e,d<<2);return 0}function rOa(a,b){a=a|0;b=b|0;J[a+4>>2]=b;b=vd(b,1);J[a>>2]=b;wc(b, -0,J[a+4>>2]);return a|0}function ml(a,b){if(b){ml(a,J[b>>2]);ml(a,J[b+4>>2]);if(H[b+31|0]<0)qc(J[b+20>>2]);qc(b)}}function eA(a,b){if(b){eA(a,J[b>>2]);eA(a,J[b+4>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function dv(a,b){if(b){dv(a,J[b>>2]);dv(a,J[b+4>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function cz(a,b){if(b){cz(a,J[b>>2]);cz(a,J[b+4>>2]);if(H[b+31|0]<0)qc(J[b+20>>2]);qc(b)}}function ci(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+4>>2];if(d)wc(J[J[a>>2]>>2],c,P(b,d))}function Zt(a,b){if(b){Zt(a, -J[b>>2]);Zt(a,J[b+4>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function Wkb(a,b){a=a|0;b=b|0;a=J[a+4>>2];b=J[b+4>>2];return(a>>>0>>0?-1:a>>>0>b>>>0)|0}function U6(a,b,c){a=a|0;b=b|0;c=c|0;if(b)J[b>>2]=J[a+7928>>2];if(c)J[c>>2]=J[a+252>>2]}function TI(a,b){if(b){TI(a,J[b>>2]);TI(a,J[b+4>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function Sw(a,b){if(b){Sw(a,J[b>>2]);Sw(a,J[b+4>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function SI(a,b){if(b){SI(a,J[b>>2]);SI(a,J[b+4>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]); -qc(b)}}function Rw(a,b){if(b){Rw(a,J[b>>2]);Rw(a,J[b+4>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function Rt(a,b){if(b){Rt(a,J[b>>2]);Rt(a,J[b+4>>2]);if(H[b+27|0]<0)qc(J[b+16>>2]);qc(b)}}function ERa(a,b,c){a=a|0;b=b|0;c=c|0;O[J[a+28>>2]+576>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3]}function E1(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;b=J[a+4>>2];if(b){fg(b);J[a+4>>2]=0}}function Bja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=(b|0)/(c|0)|0;J[a>>2]=d;J[a+4>>2]=b-P(c,d)}function $ka(a){a=a|0;J[a>>2]=2431592;ml(a+ -16|0,J[a+20>>2]);Cq(a+4|0,J[a+8>>2]);return a|0}function sL(a){a=a|0;var b=0;b=J[a+4>>2];if(b)gc[J[b+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0}function dC(a,b){a=a|0;b=b|0;if(!b)return 0;if(J[b>>2]<=0)a=v1(a,b);else a=0;return a|0}function av(a){var b=0;b=J[a+28>>2];if(b){J[a+32>>2]=b;qc(b)}if(H[a+11|0]<0)qc(J[a>>2])}function Zdb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b+12>>2]+(c<<3)|0;J[a+4>>2]=J[a+4>>2]+d}function ZDa(a){a=a|0;var b=0;b=J[a>>2];if(K[a+8|0]){if(!b)return 0;b=J[b>>2]}return b|0}function M_(a, -b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=g|0;h=h|0;i=i|0;return 0}function ILa(a){a=a|0;var b=0;b=a+40|0;J[a+296>>2]=b;J[a+300>>2]=b;J[a+304>>2]=J[a+28>>2]}function Gi(a,b,c,d){var e=0;e=bc-16|0;bc=e;J[e+12>>2]=d;a=Il(a,b,c,d);bc=e+16|0;return a}function F4a(a){a=a|0;var b=0;b=J[a+472>>2];J[b+92>>2]=J[a+316>>2];J[b+96>>2]=J[a+116>>2]}function Dfb(a){a=a|0;if(a>>>0<=127)a=K[(a>>>3|0)+325264|0]&1<<(a&7);else a=0;return a|0}function Cvb(a,b){a=a|0;b=b|0;return X7(a,K[b+28|0],J[b+32>>2],b+36| -0,b+804|0,b+1060|0)|0}function yeb(a){a=a|0;J[a+116>>2]=-1;J[a+304>>2]=-1;J[a+308>>2]=-1;H[a+112|0]=0;return 0}function pgb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return gc[J[J[a>>2]+12>>2]](a,b,c,d,0,0)|0}function mzb(a,b){a=a|0;b=b|0;var c=0;c=a;a=kq(J[b+12>>2]);J[c+12>>2]=a;return(a?0:-1)|0}function jnb(a){a=a|0;var b=0;J[a>>2]=47656;b=J[a+4>>2];if(!(!b|!K[a+12|0]))qc(b);qc(a)}function jIa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function iIa(a,b,c,d){a=a|0;b=b|0;c= -c|0;d=d|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function Wqb(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;tc(g,e,d);return 0}function Vda(a){a=a|0;a=2782664;while(1){a=ad(a-12|0);if((a|0)!=2782496)continue;break}}function TPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];gc[J[J[a>>2]+16>>2]](a,b,c,d)}function Sda(a){a=a|0;a=2782840;while(1){a=Ze(a-12|0);if((a|0)!=2782672)continue;break}}function SPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];gc[J[J[a>>2]+20>>2]](a,b,c,d)}function RPa(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];gc[J[J[a>>2]+24>>2]](a,b,c,d)}function Qda(a){a=a|0;a=2783136;while(1){a=ad(a-12|0);if((a|0)!=2782848)continue;break}}function PPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];gc[J[J[a>>2]+36>>2]](a,b,c,d)}function Oda(a){a=a|0;a=2783440;while(1){a=Ze(a-12|0);if((a|0)!=2783152)continue;break}}function Mda(a){a=a|0;a=2783480;while(1){a=ad(a-12|0);if((a|0)!=2783456)continue;break}}function Ida(a){a=a|0;a=2783512;while(1){a=Ze(a-12|0);if((a|0)!=2783488)continue; -break}}function Hzb(a,b){var c=0,d=0;c=b&31;d=(-1>>>c&a)<>>a}function FR(a,b){b=b&3;return K[(b^1)+a|0]<<16|K[a+b|0]<<24|K[(b^2)+a|0]<<8|K[(b^3)+a|0]}function Ev(a,b){var c=0;c=bc-96|0;bc=c;if(!a){mY(0);B()}SX(J[a+348>>2],c,b);Ad(a,c);B()}function DQa(a){a=a|0;var b=0;b=J[a+1444>>2];J[b+24>>2]=J[b+24>>2]+1;return J[a+1444>>2]}function xva(a,b,c){a=a|0;b=b|0;c=c|0;J[a+100>>2]=J[a+92>>2]+b;J[a+104>>2]=J[a+96>>2]+c}function vF(a,b){a=nb(-100,a|0,b|0)|0;if(a>>>0>=4294963201){J[694731]= -0-a;a=-1}return a}function uN(a){a=a|0;a=qf(a,3);J[a+976>>2]=0;J[a>>2]=47612;wc(a+496|0,0,464);return a|0}function dqa(a){a=a|0;var b=0;J[a>>2]=45680;b=J[a+4>>2];if(!(!b|!K[a+8|0]))fg(b);qc(a)}function cya(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+12>>2];return gc[J[J[a>>2]+12>>2]](a,b,c)|0}function cO(a){var b=0;b=J[a>>2];J[a>>2]=b-1;if((b|0)<=1){gc[J[J[a+4>>2]>>2]](a);qc(a)}}function Yx(a,b,c){var d=0;if(!((c|b)<0|J[a+20>>2]<=(c|0)))d=J[a+16>>2]>(b|0);return d}function Yeb(a){a=a|0;Sf(J[a+104>>2],a+788|0); -J[a+800>>2]=0;J[a+792>>2]=0;J[a+796>>2]=0}function Xva(a,b){a=a|0;b=b|0;J[a>>2]=b;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function XO(a,b,c,d){if(!((b|0)==(c|0)|(d|0)>=0)){H[b|0]=45;d=0-d|0;b=b+1|0}RO(a,b,c,d)}function Ucb(a,b){a=a|0;b=b|0;var c=0,d=0;c=a,d=gc[J[b+52>>2]](b,0,0,0)|0,J[c+544>>2]=d}function L_a(a,b){a=a|0;b=b|0;if(J[b+76>>2]<0)a=J[b>>2];else a=J[b>>2];return a>>>5&1}function BCa(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+16>>2];return gc[J[J[a>>2]+12>>2]](a,b,c)|0}function ys(a){var b= -0,c=0;c=a;b=J[a+100>>2];a=J[a+60>>2];return jT(c,a>>>0>b>>>0?b:a)}function kga(a,b,c){a=a|0;b=b|0;c=c|0;c=TQ(J[b>>2])<<24;J[a+4>>2]=J[b>>2];H[a|0]=c>>24}function ip(a,b,c){a=a|0;b=b|0;c=c|0;return hf((J[a+4>>2]+(b<<5)|0)+8|0,J[a>>2],c,0)|0}function gia(a,b){a=a|0;b=b|0;var c=0;c=a;a=J[b+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1}function cba(a,b){a=a|0;b=b|0;J[a+556>>2]=675;J[a+548>>2]=675;J[a+540>>2]=675;return 1}function b$(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if((a|0)==1)d0(J[b+352>>2],c,d)}function a4(a, -b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;VL(c,J[J[a+424>>2]+(b<<2)>>2],d);return 0}function a3a(a){a=a|0;J[a>>2]=350760;qc(J[a+8>>2]);qc(J[a+12>>2]);qc(J[a+28>>2]);qc(a)}function _ya(a,b){a=a|0;b=b|0;if(!fd(b,2374855,-1))return 1;return!fd(b,2375673,-1)|0}function _kb(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+132>>2];J[c>>2]=J[a+136>>2];return 0}function ZR(a,b){a=a|0;b=b|0;if((a|0)!=(b|0))J7(a+4|0,J[b+4>>2],J[b+8>>2]);return a|0}function Vib(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+176>>2];J[c>>2]=J[a+180>>2];return 0} -function Og(a,b,c){var d=0;d=bc-16|0;bc=d;J[d+12>>2]=c;a=cR(a,b,c);bc=d+16|0;return a}function Kjb(a,b){a=a|0;b=b|0;a=I[a>>1];b=I[b>>1];return((a|0)<(b|0)?-1:(a|0)>(b|0))|0}function Ju(){var a=0;a=jk(4);J[a>>2]=2626404;J[a>>2]=2626772;xa(a|0,2626820,6549);B()}function Hm(a,b){a=J[a>>2];b=Tf(b);if(!KP(a,b)){Ju();B()}return J[J[a+8>>2]+(b<<2)>>2]}function CCa(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+16>>2];return gc[J[J[a>>2]+8>>2]](a,b,c)|0}function Alb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g= -g|0;h=h|0;return 0}function zea(a,b){a=a|0;b=b|0;if((b|0)>=0)b=J[oy()+((b&255)<<2)>>2];return b<<24>>24}function wea(a,b){a=a|0;b=b|0;if((b|0)>=0)b=J[ny()+((b&255)<<2)>>2];return b<<24>>24}function wda(a){a=a|0;if(!K[2782456]){rr(2782444,2619524);H[2782456]=1}return 2782444}function vua(a){a=a|0;var b=0;J[a>>2]=2412864;b=J[a+20>>2];if(b)qc(b);return ed(a)|0}function sda(a){a=a|0;if(!K[2782488]){rr(2782476,2619608);H[2782488]=1}return 2782476}function o5a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;jn(J[b>> -2],c,d,0,e,J[a+112>>2])}function lNa(a){a=a|0;var b=0;J[a>>2]=2307488;b=J[a+12>>2];if(b)qc(Rc(b));return a|0}function gka(a){a=a|0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2451200;return a|0}function aeb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b+12>>2]+(c<<3)|0;J[a>>2]=J[a>>2]+d}function _ka(a){a=a|0;J[a>>2]=2431592;ml(a+16|0,J[a+20>>2]);Cq(a+4|0,J[a+8>>2]);qc(a)}function Wl(a){if(J[a+12>>2]){J[a+40>>2]=0;while(1){if(J[a+24>>2]>0)continue;break}}}function VRa(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+8>>2]; -gc[J[J[b>>2]+264>>2]](b,J[a+28>>2])}function Lkb(a,b){a=a|0;b=b|0;return gc[J[J[J[J[a>>2]+712>>2]+3084>>2]+12>>2]](a,b)|0}function Klb(a){a=a|0;var b=0;b=J[a+12>>2];if(b){gc[J[J[b>>2]+4>>2]](b);J[a+12>>2]=0}}function Isa(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a>>2]=2414676;return a|0}function Fda(a){a=a|0;if(!K[2782392]){rr(2782380,2619452);H[2782392]=1}return 2782380}function Bda(a){a=a|0;if(!K[2782424]){rr(2782412,2619488);H[2782424]=1}return 2782412}function BK(a,b,c,d,e){if(J[e>>2]<= -0)hi(J[a+4>>2],b,c,a+16|0,J[a+20>>2],a+24|0,d,e)}function yUa(a){a=a|0;var b=0;b=J[a+296>>2];if(b){J[a+300>>2]=b;qc(b)}return lh(a)|0}function xka(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(!a)return 0;return!Xg(a,b,c)|0}function wUa(a){a=a|0;var b=0;b=J[a+212>>2];if(b){J[a+216>>2]=b;qc(b)}return lh(a)|0}function uUa(a){a=a|0;var b=0;b=J[a+248>>2];if(b){J[a+252>>2]=b;qc(b)}return lh(a)|0}function tha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return gc[J[J[a>>2]+32>>2]](a,b,c,d)|0}function qg(a,b,c){var d=0;d= -J[a+176>>2];if(d){gc[d|0](a,b,c);return}Ad(a,57715);B()}function q2a(a){a=a|0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=413844;return a|0}function pNa(a){a=a|0;var b=0;J[a>>2]=2307440;b=J[a+4>>2];if(b)qc(Rc(b));return a|0}function nNa(a){a=a|0;var b=0;J[a>>2]=2307464;b=J[a+4>>2];if(b)qc(Rc(b));return a|0}function l2a(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(a)Td(b,1,c,a);return(a|0)!=0|0}function kfa(a,b){a=a|0;b=b|0;a=J[a+4>>2];if(!a)return 0;return(Ph(b,a)|0)==(b|0)|0}function iva(a){a=a|0;return(M[a+ -32>>2]>=3?2412320:J[a+48>>2]==-1?2378639:2412352)|0}function iNa(a){a=a|0;var b=0;J[a>>2]=2307512;b=J[a+4>>2];if(b)qc(Rc(b));return a|0}function hTa(a){a=a|0;var b=0;J[a>>2]=2184648;b=J[a+4>>2];if(b)qc(Rc(b));return a|0}function dha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return gc[J[J[a>>2]+48>>2]](a,b,c,d)|0}function cNa(a){a=a|0;var b=0;J[a>>2]=2307584;b=J[a+4>>2];if(b)qc(Rc(b));return a|0}function bf(a,b,c){var d=0;d=J[a+172>>2];if(d){gc[d|0](a,b,c);return}Ad(a,57687);B()}function _9(a){a=a|0;var b= -0;b=Yy(J[a>>2]);if(H[a+4|0]&1)mR(a+8|0);qc(a);return b|0}function Zua(a){a=a|0;return(M[a+32>>2]>=3?2412432:J[a+48>>2]==-1?2378639:2412464)|0}function Tba(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Nc(J[a+628>>2],97424,90394,0);return 0}function Nkb(a,b){a=a|0;b=b|0;return gc[J[J[J[J[a>>2]+712>>2]+3084>>2]+8>>2]](a,b)|0}function NJa(a,b){a=a|0;b=b|0;return J[J[J[a>>2]+36>>2]>>2]-J[J[J[b>>2]+36>>2]>>2]|0}function LE(){var a=0;a=jk(4);J[a>>2]=2626404;J[a>>2]=2626364;xa(a|0,2626480,32);B()}function J9a(a,b,c, -d){a=a|0;b=b|0;c=c|0;d=d|0;gc[J[J[a+452>>2]+4>>2]](a,0,0,0,b,c,d)}function IDa(a){a=a|0;var b=0;J[a>>2]=2373264;b=J[a+4>>2];if(b)qc(NV(b));return a|0}function zda(a){a=a|0;if(!K[2782440]){Dj(2782428,19945);H[2782440]=1}return 2782428}function wsb(a,b,c){a=a|0;b=b|0;c=c|0;return K[(J[a+964>>2]+P(J[a+16>>2],c)|0)+b|0]}function pMa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+8>>2]=-1;J[a+4>>2]=c;J[a>>2]=b;return a|0}function nla(a){a=a|0;return+(O[a+96>>3]*O[a+40>>3]*.35277777777777775/O[a+104>>3])}function mwb(a){a= -a|0;E1(a+4|0);J[a+28>>2]=0;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}function mR(a){a=Ua(-100,a|0,0)|0;if(a>>>0>=4294963201){J[694731]=0-a;a=-1}return a}function gFa(a){a=a|0;J[a>>2]=2369744;if(H[a+43|0]<0)qc(J[a+32>>2]);return Nh(a)|0}function dra(a,b){a=a|0;b=b|0;if((b|0)<0)return J[a+36>>2];J[a+36>>2]=b;return b|0}function dHa(a,b){a=a|0;b=b|0;lX(J[a>>2],b);H[a+124|0]=0;J[a+128>>2]=J[b+8248>>2]&1}function cJ(a){var b=0;b=bc-96|0;bc=b;a=xq(yq(a),b);bc=b+96|0;return a?0:J[b+24>>2]}function U9a(a){a= -a|0;H[a+8|0]=1;J[J[J[a+20>>2]+4>>2]+28>>2]=J[a+16>>2]+56;return 0}function Swa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=Ul(a- -64|0,c),e=b,J[d+24>>2]=e}function Onb(a,b,c){a=a|0;b=b|0;c=c|0;return K[(J[a+960>>2]+P(J[a+16>>2],c)|0)+b|0]}function Hz(a){a=a|0;J[a>>2]=2411928;sc(a+24|0);sc(a+16|0);sc(a+8|0);return ed(a)|0}function GW(a){if(a){gc[J[(J[a+72>>2]?20:16)+a>>2]](J[a+44>>2]);J[a+44>>2]=0;qc(a)}}function Dda(a){a=a|0;if(!K[2782408]){Dj(2782396,20817);H[2782408]=1}return 2782396}function $G(a){cp(a+ -24|0,J[a+28>>2]);yv(a+12|0,J[a+16>>2]);cp(a,J[a+4>>2]);return a}function uda(a){a=a|0;if(!K[2782472]){Dj(2782460,5877);H[2782472]=1}return 2782460}function pQa(a){a=a|0;a=rc(12);J[a>>2]=2205736;J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function pIa(a,b){a=a|0;b=b|0;if(!J[J[a+16>>2]+44>>2])return 1;J[b>>2]=1;return 0}function oIa(a,b){a=a|0;b=b|0;if(!J[J[a+12>>2]+44>>2])return 1;J[b>>2]=1;return 0}function mQa(a){a=a|0;a=rc(12);J[a>>2]=2205840;J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function jCa(a,b,c){a=a| -0;b=b|0;c=c|0;sV(a,b,J[a+76>>2],c);J[a+76>>2]=J[a+76>>2]+c}function hQa(a){a=a|0;a=rc(12);J[a>>2]=2205944;J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function Zta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=bc-16|0;bc=d;oG(a,b,d,c);bc=d+16|0}function Hda(a){a=a|0;if(!K[2782376]){Dj(2782364,1588);H[2782376]=1}return 2782364}function pba(a){a=a|0;var b=0;b=J[a+916>>2];J[a+800>>2]=J[a+912>>2];J[a+804>>2]=b}function kba(a){a=a|0;var b=0;b=J[a+916>>2];J[a+780>>2]=J[a+912>>2];J[a+784>>2]=b}function cp(a,b){if(b){cp(a,J[b>> -2]);cp(a,J[b+4>>2]);Lc(b+28|0);Lc(b+16|0);qc(b)}}function acb(a,b){a=a|0;b=b|0;b=b-J[a+16>>2]|0;return(b>>>0>2]?b+1|0:0)|0}function Yra(a){a=a|0;var b=0;b=J[a+32>>2];a=J[a+28>>2];return((a|0)<(b|0)?b:a)|0}function YMa(a){a=a|0;if(!J[a+4>>2])return 0;return(J[a+8>>2]?1:J[a+12>>2]!=0)|0}function XJa(a){a=a|0;var b=0;b=gc[J[J[a>>2]+32>>2]](a)|0;J[a+8>>2]=-1;return b|0}function Ku(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=J[b>>2];J[a+4>>2]=J[c>>2];return a|0}function yyb(a){a=a|0;var b=0;b=J[a+28>>2]; -if(b)qc(b);a=J[a+32>>2];if(a)qc(a)}function x5a(a){a=a|0;a=J[a>>2];return+(O[a>>3]*O[a+24>>3]-O[a+16>>3]*O[a+8>>3])}function uua(a){a=a|0;var b=0;J[a>>2]=2412864;b=J[a+20>>2];if(b)qc(b);qc(ed(a))}function tfa(){J[695927]=0;J[695926]=2624824;J[695926]=2619664;J[695926]=2622508}function tLa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;xc(7,-1,805780,0);return 0}function rzb(a){a=a|0;var b=0;b=J[a+16>>2];if(b)qc(b);a=J[a+28>>2];if(a)qc(a)}function q0a(a){a=a|0;return((J[a+52>>2]&-268435456)==268435456?729042: -729642)|0}function pJa(a,b){a=a|0;b=b|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;return DH(a,b)|0}function ofa(){J[695935]=0;J[695934]=2624824;J[695934]=2619664;J[695934]=2623004}function mfa(){J[695937]=0;J[695936]=2624824;J[695936]=2619664;J[695936]=2623168}function kNa(a){a=a|0;var b=0;J[a>>2]=2307488;b=J[a+12>>2];if(b)qc(Rc(b));qc(a)}function ifa(){J[695939]=0;J[695938]=2624824;J[695938]=2619664;J[695938]=2623332}function hd(a,b){var c=0;c=bc-16|0;bc=c;J[c+12>>2]=b;lF(J[651370],a,b);bc=c+16|0}function gfa(){J[695941]= -0;J[695940]=2624824;J[695940]=2619664;J[695940]=2623496}function cQa(a,b){a=a|0;b=b|0;J[b+8>>2]=0;J[b+12>>2]=65536;J[b>>2]=0;J[b+4>>2]=0}function Zea(){J[695959]=0;J[695958]=2624824;J[695958]=2619664;J[695958]=2623660}function Z0(a){a=a|0;var b=0;b=J[a+8>>2];if(b){if(!K[a+34|0])Gf(b);J[a+8>>2]=0}}function Yw(a){a=a|0;var b=0;b=a+56|0;Bj(b,a+44|0);Ck(b,a+48|0,1);Ck(b,a+52|0,0)}function Th(a){var b=0;b=bc-16|0;bc=b;J[b>>2]=a;cd(J[651370],779053,b);ya(1);B()}function Qha(a,b,c,d){a=a|0;b=b|0;c=c|0;d= -d|0;b=bc-16|0;bc=b;rQ(a,c,d);bc=b+16|0}function Lta(a){a=a|0;if(a>>>0<=255)a=(a<<24>>24)-65>>>0<26;else a=1;return a|0}function Loa(a){a=a|0;var b=0;J[a>>2]=2427048;b=J[a+12>>2];if(b)qc(fT(b));qc(a)}function Kta(a){a=a|0;if(a>>>0<=255){a=a<<24>>24;a=a-97>>>0<26?a&95:a}return a|0}function Ita(a){a=a|0;if(a>>>0<=255)a=(a<<24>>24)-97>>>0<26;else a=1;return a|0}function Hta(a){a=a|0;if(a>>>0<=255){a=a<<24>>24;a=a-65>>>0<26?a|32:a}return a|0}function yGa(a,b,c){a=a|0;b=b|0;c=c|0;if((b|0)<0)return 0;J[c+ -8>>2]=a;return 1}function xUa(a){a=a|0;var b=0;b=J[a+296>>2];if(b){J[a+300>>2]=b;qc(b)}qc(lh(a))}function vUa(a){a=a|0;var b=0;b=J[a+212>>2];if(b){J[a+216>>2]=b;qc(b)}qc(lh(a))}function tUa(a){a=a|0;var b=0;b=J[a+248>>2];if(b){J[a+252>>2]=b;qc(b)}qc(lh(a))}function ov(a){a=a|0;var b=0,c=0;b=J[a+628>>2];c=J[a+644>>2];iU(a);gc[c|0](b)|0}function oNa(a){a=a|0;var b=0;J[a>>2]=2307440;b=J[a+4>>2];if(b)qc(Rc(b));qc(a)}function o6a(a,b){a=a|0;b=b|0;J[a+8>>2]=b;J[a>>2]=349232;J[a+4>>2]=0;return a|0}function mNa(a){a= -a|0;var b=0;J[a>>2]=2307464;b=J[a+4>>2];if(b)qc(Rc(b));qc(a)}function lPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0}function j9(){var a=0;a=zc(12);if(a){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0}return a}function hNa(a){a=a|0;var b=0;J[a>>2]=2307512;b=J[a+4>>2];if(b)qc(Rc(b));qc(a)}function gTa(a){a=a|0;var b=0;J[a>>2]=2184648;b=J[a+4>>2];if(b)qc(Rc(b));qc(a)}function cga(a,b,c){a=a|0;b=b|0;c=c|0;c=LQ(J[b>>2]);J[a+4>>2]=J[b>>2];J[a>>2]=c}function bt(a,b,c){a=a|0;b=b|0;c=c|0;if(!J[J[a+ -16>>2]+44>>2])return 1;return 0}function bNa(a){a=a|0;var b=0;J[a>>2]=2307584;b=J[a+4>>2];if(b)qc(Rc(b));qc(a)}function at(a,b,c){a=a|0;b=b|0;c=c|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function X_(a,b,c){a=a|0;b=b|0;c=c|0;Y_(a,0);if(b){J[a+460>>2]=c;J[a+456>>2]=b}}function Q0a(a){a=a|0;a=J[a+28>>2]&15;return(a?(a|0)==1?729673:730123:729010)|0}function L5a(a){a=a|0;var b=0;b=J[a+472>>2];J[b+36>>2]=0;J[b+44>>2]=J[a+116>>2]}function L2a(a){a=a|0;J[a>>2]=351116;kC(a+72|0);Qw(a+28|0);Tw(a+8|0);return a| -0}function Hja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=DR(J[a+60>>2],b,c,d);return a|0}function HPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[b>>2]=0;J[b+4>>2]=0;O[c>>3]=d|0}function HDa(a){a=a|0;var b=0;J[a>>2]=2373264;b=J[a+4>>2];if(b)qc(NV(b));qc(a)}function G6(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a>>2]+12>>2]](a,b,1,c,0,0)|0}function Flb(a){a=a|0;var b=0;b=J[a+4>>2];a=K[a+11|0];return(a<<24>>24<0?b:a)|0}function ykb(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a+548>>2]+20>>2]](a,b,c)|0}function xkb(a,b,c){a= -a|0;b=b|0;c=c|0;return gc[J[J[a+548>>2]+24>>2]](a,b,c)|0}function vq(a,b){var c=0;c=bc-16|0;bc=c;J[c+12>>2]=b;kF(2728888,a,b);bc=c+16|0}function vkb(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a+548>>2]+32>>2]](a,b,c)|0}function ukb(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a+548>>2]+36>>2]](a,b,c)|0}function rca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(pj(a,J[b+8>>2],0))wE(b,c,d)}function oeb(a,b,c){a=a|0;b=b|0;c=c|0;c=td(c,IC(a));J[J[a+388>>2]+(b<<2)>>2]=c}function leb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+388>>2]+ -(b<<2)|0;J[a>>2]=J[a>>2]+c}function iGa(a){a=a|0;J[a>>2]=2364172;if(H[a+15|0]<0)qc(J[a+4>>2]);return a|0}function fFa(a){a=a|0;J[a>>2]=2369744;if(H[a+43|0]<0)qc(J[a+32>>2]);qc(Nh(a))}function b$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;gc[J[b+8>>2]](J[b>>2],0,1114111)}function URa(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+40>>2];if((b|0)>0)J[a+40>>2]=b-1}function TT(a){a=a|0;J[a>>2]=2411928;sc(a+24|0);sc(a+16|0);sc(a+8|0);qc(ed(a))}function Sy(a,b){var c=0;c=bc-16|0;bc=c;J[c+12>>2]=b;jF(2728888,a,b);bc=c+16|0}function Sgb(a){a= -a|0;gc[J[J[J[a+12>>2]+56>>2]+8>>2]](J[a+52>>2],0,0);return 0}function PZ(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function Jra(a,b){a=a|0;b=b|0;a=J[(b>>4<<2)+a>>2];if(a)J[a+((b&15)<<2)>>2]=0}function Akb(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a+548>>2]+12>>2]](a,b,c)|0}function x0(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(Zq(a)|0)==1|0}function vi(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(xJ(a)|0)==1|0}function vTa(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;kh(a,0); -H[J[a+4>>2]]=0;return a|0}function swb(a,b){a=a|0;b=b|0;return(K[a+494|0]?b:b<<8|(b&65280)>>>8)<<16>>16}function k6a(a){a=a|0;J[a>>2]=349252;if(H[a+19|0]<0)qc(J[a+8>>2]);return a|0}function Yj(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(N$(a)|0)==1|0}function Ri(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(wJ(a)|0)==1|0}function Gh(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(Zq(a)|0)!=0|0}function Br(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;return 0}function Bkb(a, -b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a+548>>2]+8>>2]](a,b,c)|0}function BU(a){a=a|0;if(!fd(a,2404416,-1))return 1;return!fd(a,2404421,-1)|0}function AU(a){a=a|0;if(!fd(a,2404455,-1))return 1;return!fd(a,2404249,-1)|0}function zza(a,b){a=a|0;b=b|0;if(a){J[a+280>>2]=b;J[a+204>>2]=J[a+204>>2]|2}}function zE(a,b){var c=0;c=a;a=(b>>>0)/100|0;return mq(mq(c,a),b-P(a,100)|0)}function yE(a,b){var c=0;c=a;a=(b>>>0)/1E4|0;return zE(mq(c,a),b-P(a,1E4)|0)}function xE(a,b){var c=0;c=a;a=(b>>>0)/1E6|0;return yE(mq(c, -a),b-P(a,1E6)|0)}function oGa(a){a=a|0;a=J[J[a+4>>2]+12>>2];if(!a)return 0;return J[a+36>>2]}function dO(a){a=(a>>8)-1|0;if(a>>>0>=5){ra();B()}return J[(a<<2)+206704>>2]}function ad(a){if(K[a+11|0]>>>7|0)Ay(J[a>>2],J[a+8>>2]&2147483647);return a}function Ze(a){if(K[a+11|0]>>>7|0)Fu(J[a>>2],J[a+8>>2]&2147483647);return a}function Wm(a,b,c){a=a|0;b=b|0;c=c|0;return Ef((J[a+4>>2]+(b<<5)|0)+8|0,c)|0}function V_(a){if(H[a+31|0]<0)qc(J[a+20>>2]);if(H[a+19|0]<0)qc(J[a+8>>2])}function Rkb(a,b){a=a|0;b=b| -0;return(b>>>0<=255?L[J[a+16>>2]+(b<<1)>>1]:0)|0}function Qva(a,b){a=a|0;b=b|0;return J[J[a+12>>2]+((b>>>0)%M[a+8>>2]<<2)>>2]}function GSa(a,b){a=a|0;b=b|0;a=J[a+4>>2];return gc[J[J[a>>2]+64>>2]](a,b)|0}function G4a(a,b){a=a|0;b=b|0;var c=0;c=a;a=J[b>>2];J[c+36>>2]=(a|0)<=0?-1:a}function Egb(a,b){a=a|0;b=b|0;return(b>>>0<=255?K[(J[a+16>>2]+b|0)+6|0]:0)|0}function Bca(a,b,c){a=a|0;b=b|0;c=c|0;return J[b>>2]==(c|0)&J[b+4>>2]==(a|0)}function A3a(a){a=a|0;a=J[a+188>>2];if(!a)return 0;return(K[a+8|0]& -4)>>>2|0}function xq(a,b){if((a|0)<0){J[694731]=8;return-1}return JR(a,39181,b,4096)}function rkb(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a+552>>2]>>2]](a,b,c)|0}function rY(a,b){a=a|0;b=b|0;a=J[a+4>>2];return gc[J[J[a>>2]+64>>2]](a,0)|0}function qrb(a){a=a|0;var b=0;b=J[a+4>>2];return(b?J[a+44>>2]?b+40|0:0:0)|0}function pqa(a,b){a=a|0;b=b|0;var c=0,d=0;c=b,d=$i(a,0,11,a+60|0),J[c>>2]=d}function ojb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return RL(J[a+12>>2],b,c,d)|0}function d9a(a){a=a|0;var b=0;J[a>>2]= -340424;b=J[a+28>>2];if(b)qc(b);qc(a)}function bo(a,b){a=a|0;b=b|0;a=J[a+4>>2];return gc[J[J[a>>2]+64>>2]](a,1)|0}function YN(a){a=a-20529|0;if(a>>>0>=6){ra();B()}return J[(a<<2)+207796>>2]}function Wna(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;aT(a,c,d,e,f)}function Qu(a,b,c,d){if(J[a+76>>2]<0)return KR(a,b,c,d);return KR(a,b,c,d)}function Kcb(a){a=a|0;a=J[a+140>>2];if(!a)return 0;return a+(K[a|0]==47)|0}function K9(a){a=a-20529|0;if(a>>>0>=6){ra();B()}return J[(a<<2)+207820>>2]}function Iea(a, -b){a=a|0;b=b|0;if(b>>>0<=127)b=J[oy()+(b<<2)>>2];return b|0}function Gea(a,b){a=a|0;b=b|0;if(b>>>0<=127)b=J[ny()+(b<<2)>>2];return b|0}function B6(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a>>2]+16>>2]](a,b,1,c)|0}function x9a(a){a=a|0;a=J[a+16>>2];if(!a)return 0;return K[a+2892|0]!=0|0}function s0(a){if(H[a+23|0]<0)qc(J[a+12>>2]);if(H[a+11|0]<0)qc(J[a>>2])}function pWa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;H[a+203|0]=0}function oAa(a){a=a|0;J[a>>2]=2390152;Bd(a+44|0);$c(a+28|0);return ed(a)| -0}function nob(a,b){a=a|0;b=b|0;return ue(a,J[b>>2],J[b+32>>2],J[b+36>>2])|0}function hca(a){a=a|0;if(!a)return 0;return(ik(a,2625884,2626028)|0)!=0|0}function cd(a,b,c){var d=0;d=bc-16|0;bc=d;J[d+12>>2]=c;kF(a,b,c);bc=d+16|0}function b1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;gc[J[b+8>>2]](J[b>>2],0,255)}function Y0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;gc[J[b+8>>2]](J[b>>2],0,127)}function Xc(a,b,c){var d=0;d=bc-16|0;bc=d;J[d+12>>2]=c;HI(a,b,c);bc=d+16|0}function VXa(a,b){a=a|0;b=b|0;return J[a+4>>2]==J[b+ -4>>2]&J[a>>2]==J[b>>2]}function Ulb(a,b){a=a|0;b=b|0;a=J[a>>2];return gc[J[J[a>>2]+64>>2]](a,b)|0}function T4a(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+8>>2];J[c>>2]=J[a+12>>2]}function Pia(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a>>2]+12>>2]](a,b,c)|0}function Obb(a,b){a=a|0;b=b|0;if(!b)return 1;O[b>>3]=O[a+608>>3];return 0}function Mbb(a,b){a=a|0;b=b|0;if(!b)return 1;O[b>>3]=O[a+600>>3];return 0}function Kfb(a,b){a=a|0;b=b|0;return gc[J[J[J[a>>2]+544>>2]+12>>2]](a,b)|0}function K2a(a){a=a|0;J[a>>2]= -351116;kC(a+72|0);Qw(a+28|0);Tw(a+8|0);qc(a)}function Ii(a,b,c){var d=0;d=bc-16|0;bc=d;J[d+12>>2]=c;jF(a,b,c);bc=d+16|0}function Fvb(a,b){a=a|0;b=b|0;return Y7(a,K[b+28|0],K[b+29|0],K[b+30|0])|0}function Clb(a){a=a|0;var b=0;J[a>>2]=231644;b=J[a+4>>2];if(b)qc(b);qc(a)}function CAa(a){a=a|0;J[a>>2]=2389464;sc(a+20|0);sc(a+12|0);return ed(a)|0}function Bhb(a,b){a=a|0;b=b|0;return gc[J[J[J[a>>2]+488>>2]+12>>2]](a,b)|0}function uJa(a,b){a=a|0;b=b|0;if(J[a+144>>2])gc[J[J[a>>2]+204>>2]](a,b)}function qwa(a){a= -a|0;J[a>>2]=2407080;$c(a+44|0);sc(a+8|0);return ed(a)|0}function qQa(a){a=a|0;J[a>>2]=2205736;J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function oxa(a){a=a|0;J[a>>2]=2405448;sc(a+36|0);Bd(a+8|0);return ed(a)|0}function neb(a,b){a=a|0;b=b|0;return Pc(J[J[a+388>>2]+(b<<2)>>2],IC(a))|0}function nQa(a){a=a|0;J[a>>2]=2205840;J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function lIa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return!J[a+16>>2]|0}function kIa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return!J[a+12>>2]|0}function hGa(a){a= -a|0;J[a>>2]=2364172;if(H[a+15|0]<0)qc(J[a+4>>2]);qc(a)}function d6(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a>>2]+20>>2]](a,b,c)|0}function __a(a,b,c){a=a|0;b=b|0;c=c|0;return Kt(a,J[b>>2],J[b+52>>2],c)|0}function Ugb(a){a=a|0;return(a>>>0<=390?I[(a<<1)+266352>>1]+262128|0:0)|0}function Ts(a){var b=0;if(a){b=J[a+12>>2];if(b){qc(b);J[a+12>>2]=0}qc(a)}}function OQ(a,b,c){a=a|0;b=b|0;c=c|0;return gc[J[J[a>>2]+48>>2]](a,b,c)|0}function Nhb(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0}function Lfb(a, -b){a=a|0;b=b|0;return gc[J[J[J[a>>2]+544>>2]+8>>2]](a,b)|0}function Dz(a){a=a|0;J[a>>2]=2413388;_c(a+56|0);_c(a+44|0);return ed(a)|0}function Chb(a,b){a=a|0;b=b|0;return gc[J[J[J[a>>2]+488>>2]+8>>2]](a,b)|0}function qib(a,b){a=a|0;b=b|0;fh(a,J[a+8>>2]);return ql(a,J[a+8>>2],b)|0}function j6a(a){a=a|0;J[a>>2]=349252;if(H[a+19|0]<0)qc(J[a+8>>2]);qc(a)}function gja(a){a=a|0;J[a+84>>2]=131088;I[a+98>>1]=L[a+90>>1]==32844?1:3}function eza(a){a=a|0;J[a>>2]=2402E3;xd(a+36|0);Bd(a+8|0);return ed(a)|0}function ef(a, -b){a=a|0;b=b|0;if(!J[695492]){J[695492]=a;J[695493]=b}ac()}function ee(a){var b=0;b=J[a+20>>2];if(b)qc(b);a=J[a+8>>2];if(a)qc(a)}function ZGa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return hX(J[a>>2],b,c,d)|0}function XP(a,b){var c=0;c=J[b>>2];J[b>>2]=0;ih(a,c);J[a+4>>2]=J[b+4>>2]}function Vgb(a){a=a|0;return I[((a>>>0<=257?a:0)<<1)+265824>>1]+262128|0}function Ova(a,b){a=a|0;b=b|0;var c=0;c=J[b+24>>2];J[a+4>>2]=b;J[a>>2]=c}function re(a,b){a=a|0;b=b|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function qe(a, -b){a=a|0;b=b|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function nIa(a){a=a|0;a=J[a+16>>2];return(!J[a+44>>2]|J[a+48>>2]?1:0)|0}function mIa(a){a=a|0;a=J[a+12>>2];return(!J[a+44>>2]|J[a+48>>2]?1:0)|0}function ljb(a){a=a|0;fg(J[a+12>>2]);J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0}function cia(a){a=a|0;J[a+16>>2]=J[a+16>>2]|1;if(H[a+20|0]&1){Ia();B()}}function bia(a){a=a|0;J[a+16>>2]=J[a+16>>2]|4;if(K[a+20|0]&4){Ia();B()}}function T9a(a){a=a|0;H[a+8|0]=0;J[J[J[a+20>>2]+4>>2]+28>>2]=0;return 0}function Skb(a, -b){a=a|0;b=b|0;J[a+16>>2]=J[J[a>>2]+712>>2]+668;return 0}function Qg(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return-1;return gm(a)|0}function Q3(a){a=a|0;var b=0;b=a;a=J[a+4>>2]+1|0;J[b+4>>2]=a;return a|0}function Hu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[e>>2]=c;return 3}function Bp(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return-1;return M$(a)|0}function yv(a,b){if(b){yv(a,J[b>>2]);yv(a,J[b+4>>2]);Lc(b+16|0);qc(b)}}function h3a(a){a=a|0;a=J[a+188>>2];if(!a)return 0;return H[a+12|0]&1}function dJ(a,b,c, -d,e,f,g,h){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h}function aba(a,b){a=a|0;b=b|0;J[a+548>>2]=676;J[a+540>>2]=676;return 1}function Z9(a){a=a|0;return(J[a+32>>2]+J[a+12>>2]|0)+(J[a+44>>2]<<2)|0}function Xh(a,b){if(b){Xh(a,J[b>>2]);Xh(a,J[b+4>>2]);fj(b+96|0);qc(b)}}function RJa(a,b){a=a|0;b=b|0;return J[J[a>>2]+4>>2]-J[J[b>>2]+4>>2]|0}function Mo(a,b){a=a|0;b=b|0;H[a|0]=2;H[a+1|0]=3;H[a+2|0]=0;H[a+3|0]=4}function Gka(a,b){a=a|0;b=b|0;Nc(J[a+628>>2],J[a>>2],71416,0);return 0}function E9a(a,b){a=a| -0;b=b|0;a=J[a+16>>2];if(a)O[a+2912>>3]=O[b>>3]}function BF(a,b){var c=0;c=a;a=Qc(a);return(Td(c,1,a,b)|0)!=(a|0)?-1:0}function zJa(a,b){a=a|0;b=b|0;a=J[a+116>>2];J[a+128>>2]=J[a+128>>2]+b}function yQa(a){a=a|0;a=J[a+164>>2];if(!a)return 0;return J[a+12>>2]}function sOa(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}function rsa(a,b){a=a|0;b=b|0;if(J[a>>2]!=(b|0))J[a>>2]=b;return a|0}function oqa(a,b,c){a=a|0;b=b|0;c=c|0;return $i(a,-262143,262142,c)|0}function mja(a,b){a=a|0;b=b|0;if(!J[695492]){J[695492]= -a;J[695493]=b}}function mD(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return 0}function mAa(a){a=a|0;J[a>>2]=2390152;Bd(a+44|0);$c(a+28|0);qc(ed(a))}function aua(a){a=a|0;J[a>>2]=2413388;_c(a+56|0);_c(a+44|0);qc(ed(a))}function _xb(a,b,c){a=a|0;b=b|0;c=c|0;return B9(a+12|0,c,J[a+4>>2])|0}function Tfa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;QE(a,f)}function Pea(a){a=a|0;var b=0;b=J[695558]+1|0;J[695558]=b;J[a+4>>2]=b}function Nxb(a,b,c){a=a|0;b=b|0;c=c|0;return(wh(c,J[a+12>>2])?-1:0)| -0}function LI(a,b){a=a|0;b=b|0;a=rc(8);J[b>>2]=a;J[a>>2]=-1;J[a+4>>2]=0}function BEa(a){a=a|0;J[a>>2]=2371600;Lc(a+20|0);Lc(a+4|0);return a|0}function BAa(a){a=a|0;J[a>>2]=2389464;sc(a+20|0);sc(a+12|0);qc(ed(a))}function zkb(a,b){a=a|0;b=b|0;return gc[J[J[a+548>>2]+16>>2]](a,b)|0}function y9a(a,b){a=a|0;b=b|0;a=J[a+16>>2];if(a)H[a+2892|0]=K[b|0]}function wkb(a,b){a=a|0;b=b|0;return gc[J[J[a+548>>2]+28>>2]](a,b)|0}function vM(a,b){a=a|0;b=b|0;a=jk(4);J[a>>2]=b;xa(a|0,2626124,0);B()}function skb(a){a= -a|0;var b=0;b=J[a+548>>2];if(b)gc[J[b+44>>2]](a)}function pwa(a){a=a|0;J[a>>2]=2407080;$c(a+44|0);sc(a+8|0);qc(ed(a))}function nxa(a){a=a|0;J[a>>2]=2405448;sc(a+36|0);Bd(a+8|0);qc(ed(a))}function jna(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]- -64>>3];return 0}function iub(a){a=a|0;a=J[a+24>>2];J[a+4>>2]=4096;J[a>>2]=J[a+52>>2]}function ipa(a){a=a|0;var b=0;b=a;a=J[a>>2]+1|0;J[b>>2]=a;return a|0}function ina(a,b){a=a|0;b=b|0;O[J[a+12>>2]- -64>>3]=O[b>>3];return 0}function hpa(a){a=a|0;var b=0;b=a;a=J[a>> -2]-1|0;J[b>>2]=a;return a|0}function ejb(a,b){a=a|0;b=b|0;NL(b,J[a>>2]<<2,J[a+4>>2]<<2);return 0}function eT(a,b){a=a|0;b=b|0;J[b>>2]=0;J[b+4>>2]=1079508992;return 0}function Zla(a,b){a=a|0;b=b|0;J[J[a+12>>2]+2236>>2]=J[b>>2];return 0}function WLa(a,b){a=a|0;b=b|0;J[a+4>>2]=b;J[a>>2]=2331012;return a|0}function W7a(a){a=a|0;var b=0;b=J[a>>2];J[b+20>>2]=47;gc[J[b>>2]](a)}function Rnb(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,1320);return 0}function Rna(a,b){a=a|0;b=b|0;J[J[a+12>>2]+2004>>2]=J[b>>2]; -return 0}function Rba(a,b){a=a|0;b=b|0;Nc(J[a+628>>2],97409,90394,0);return 0}function Ina(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+2248>>3];return 0}function Gna(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+2240>>3];return 0}function GEa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+16>>2]=b;xv(a+20|0,c,1,-1)}function G1a(a){a=a|0;H[a+8|0]=0;J[a+4>>2]=40;J[a>>2]=a+9;return a|0}function Ena(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+2256>>3];return 0}function Dna(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+2264>>3];return 0}function Bvb(a, -b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,1316);return 0}function $la(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+2236>>2];return 0}function zma(a,b){a=a|0;b=b|0;J[J[a+12>>2]+504>>2]=J[b>>2];return 0}function xra(a){a=a|0;a=J[a+12>>2];if(!a)return 0;return J[a+4>>2]}function wra(a){a=a|0;a=J[a+12>>2];if(!a)return 0;return J[a+8>>2]}function tq(a,b){return b?a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24):a}function soa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+784>>3];return 0}function sQ(a,b,c){a=a|0;b=b|0;c=c|0;return ns(0, -a,b,c?c:2782036)|0}function qxb(a,b){a=a|0;b=b|0;hd(208988,0);gE(b,J[651370]);return 0}function ozb(a){a=a|0;return(Qc(J[a+16>>2])+(J[a+24>>2]<<1)|0)+83|0}function ooa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+804>>2];return 0}function noa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+804>>2]=J[b>>2];return 0}function moa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+808>>3];return 0}function loa(a,b){a=a|0;b=b|0;O[J[a+12>>2]+808>>3]=O[b>>3];return 0}function koa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+816>>2];return 0}function joa(a, -b){a=a|0;b=b|0;J[J[a+12>>2]+816>>2]=J[b>>2];return 0}function hA(a){a=a|0;qc(J[a+144>>2]);qc(J[a+272>>2]);qc(a);return 0}function gwb(a){a=a|0;return J[a+32>>2]-(J[a+24>>2]+J[a+28>>2]|0)|0}function gpa(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=0;J[a+4>>2]=J[682146]}function fob(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,808);return 0}function dza(a){a=a|0;J[a>>2]=2402E3;xd(a+36|0);Bd(a+8|0);qc(ed(a))}function dob(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,564);return 0}function doa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+ -932>>2]=J[b>>2];return 0}function c5a(a,b){a=a|0;b=b|0;J[a+4>>2]=b;J[a>>2]=349992;return a|0}function bwb(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,800);return 0}function _Ja(a){a=a|0;a=J[a+24>>2];return gc[J[J[a>>2]+12>>2]](a)|0}function Znb(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,548);return 0}function ZJa(a){a=a|0;a=J[a+24>>2];return gc[J[J[a>>2]+52>>2]](a)|0}function Vma(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+124>>2];return 0}function Uma(a,b){a=a|0;b=b|0;J[J[a+12>>2]+124>>2]=J[b>>2];return 0}function Tma(a, -b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+120>>2];return 0}function Sma(a,b){a=a|0;b=b|0;J[J[a+12>>2]+120>>2]=J[b>>2];return 0}function Rma(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+184>>3];return 0}function Qma(a,b){a=a|0;b=b|0;O[J[a+12>>2]+184>>3]=O[b>>3];return 0}function Oma(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+100>>2];return 0}function MTa(a,b){a=a|0;b=b|0;return J[(J[a+28>>2]+P(b,20)|0)+4>>2]}function Ima(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+472>>3];return 0}function G9(a){a=a|0;var b=0;b=J[a+24>>2]; -if(b){qc(b);J[a+24>>2]=0}}function Ema(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+492>>2];return 0}function Dma(a,b){a=a|0;b=b|0;J[J[a+12>>2]+492>>2]=J[b>>2];return 0}function Cma(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+496>>3];return 0}function Cea(a,b,c){a=a|0;b=b|0;c=c|0;return(b>>>0<128?b:c)<<24>>24}function Bsa(a,b){a=a|0;b=b|0;return Gq(b,J[a+12>>2]+J[a+8>>2]|0)|0}function Bma(a,b){a=a|0;b=b|0;O[J[a+12>>2]+496>>3]=O[b>>3];return 0}function BYa(a,b){a=a|0;b=b|0;return(a>>>0>>0?-1:(a|0)!=(b|0))|0} -function BTa(a){a=a|0;a=J[a+20>>2];if(!a)return 0;return J[a+4>>2]}function Ama(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+504>>2];return 0}function ACa(a){a=a|0;a=J[a+16>>2];return gc[J[J[a>>2]+16>>2]](a)|0}function $vb(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,288);return 0}function $9(a,b,c){a=a|0;b=b|0;c=c|0;return DR(J[a>>2],b,b>>31,c)|0}function zoa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+28>>2]=J[b>>2];return 0}function zna(a,b){a=a|0;b=b|0;J[J[a+12>>2]+16>>2]=J[b>>2];return 0}function zlb(a,b){a=a|0;b=b|0; -a=jP(a,b);J[a>>2]=2626688;return a|0}function yoa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+36>>2];return 0}function yna(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+24>>3];return 0}function xvb(a,b){a=a|0;b=b|0;return d8(a,J[b+28>>2],J[b+32>>2])|0}function xoa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+36>>2]=J[b>>2];return 0}function xna(a,b){a=a|0;b=b|0;O[J[a+12>>2]+24>>3]=O[b>>3];return 0}function wU(a){a=a|0;a=J[a+12>>2];return gc[J[J[a>>2]+16>>2]](a)|0}function v6a(a,b){a=a|0;b=b|0;a=jP(a,b);J[a>>2]=2626636;return a| -0}function v$a(a){a=a|0;return(K[J[a+8>>2]+74|0]==1?728953:729618)|0}function uwb(a){a=a|0;return J[a+16>>2]-(J[a+8>>2]+J[a+12>>2]|0)|0}function slb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return S6(d,b,c,d)|0}function rwb(a){a=a|0;a=J[a+4>>2];if(!a)return 0;return J[a+4>>2]}function qJa(a){a=a|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;return a|0}function pTa(a,b){a=a|0;b=b|0;return J[J[J[a+32>>2]>>2]+(b<<2)>>2]}function nna(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+48>>3];return 0}function mna(a,b){a=a|0;b=b|0;O[J[a+ -12>>2]+48>>3]=O[b>>3];return 0}function lra(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}function lna(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+56>>2];return 0}function kna(a,b){a=a|0;b=b|0;J[J[a+12>>2]+56>>2]=J[b>>2];return 0}function ila(a){a=a|0;J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;return a|0}function gna(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+80>>2];return 0}function fna(a,b){a=a|0;b=b|0;J[J[a+12>>2]+80>>2]=J[b>>2];return 0}function ena(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+84>>2];return 0}function dna(a, -b){a=a|0;b=b|0;J[J[a+12>>2]+84>>2]=J[b>>2];return 0}function cna(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+92>>2];return 0}function cKa(a){a=a|0;return(J[a+296>>2]+(J[a+304>>2]-a|0)|0)-40|0}function bna(a,b){a=a|0;b=b|0;J[J[a+12>>2]+92>>2]=J[b>>2];return 0}function ana(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+88>>2];return 0}function _ma(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+96>>2];return 0}function Zma(a,b){a=a|0;b=b|0;J[J[a+12>>2]+96>>2]=J[b>>2];return 0}function ZVa(a){a=a|0;a=J[a+4>>2];return gc[J[J[a>> -2]+52>>2]](a)|0}function Ynb(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,60);return 0}function YVa(a){a=a|0;a=J[a+4>>2];return gc[J[J[a>>2]+68>>2]](a)|0}function Xna(a){a=a|0;var b=0,c=0;b=a,c=rc(1),J[b>>2]=c;return a|0}function XVa(a){a=a|0;a=J[a+4>>2];return gc[J[J[a>>2]+72>>2]](a)|0}function XEa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;Uf(a+12|0);return a|0}function WVa(a){a=a|0;a=J[a+4>>2];return gc[J[J[a>>2]+76>>2]](a)|0}function Roa(a,b){a=a|0;b=b|0;a=lT(a,b);J[a>>2]=2426788;return a|0}function Qca(a,b, -c,d){a=a|0;b=b|0;c=c|0;d=d|0;return YO(a,b,c,d)|0}function I_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Td(c,1,d,b)|0}function H_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Yd(c,1,d,b)|0}function Gj(a,b){a=a|0;b=b|0;if(!J[a+4>>2])tc(a+52|0,b+52|0,908)}function Gca(a,b){a=a|0;b=b|0;a=kP(a,b);J[a>>2]=2626580;return a|0}function Fca(a,b){a=a|0;b=b|0;a=kP(a,b);J[a>>2]=2626688;return a|0}function FI(a,b,c){a=a|0;b=b|0;c=c|0;return cm(a,J[a+32>>2],b,c)|0}function Doa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+ -24>>2];return 0}function Coa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+24>>2]=J[b>>2];return 0}function Cna(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+12>>2];return 0}function Cn(a,b,c){a=a|0;b=b|0;c=c|0;b=wP(c);J[a+4>>2]=c;J[a>>2]=b}function Boa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+28>>2];return 0}function Bna(a,b){a=a|0;b=b|0;J[J[a+12>>2]+12>>2]=J[b>>2];return 0}function Ana(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+16>>2];return 0}function $ma(a,b){a=a|0;b=b|0;J[J[a+12>>2]+88>>2]=J[b>>2];return 0}function vN(a,b){a= -a|0;b=b|0;if(b)gc[J[a+156>>2]](b,64);return 0}function vH(a,b,c){a=a|0;b=b|0;c=c|0;return!J[J[a+16>>2]+44>>2]|0}function uH(a,b,c){a=a|0;b=b|0;c=c|0;return!J[J[a+12>>2]+44>>2]|0}function tN(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,28);return 0}function qmb(a){a=a|0;return(J[a+4>>2]?J[a+16>>2]>J[a+8>>2]:-1)|0}function oxb(a,b,c){a=a|0;b=b|0;c=c|0;J[a+396>>2]=c;J[a+392>>2]=b}function nda(a){a=a|0;var b=0,c=0;b=a,c=Wg(),J[b>>2]=c;return a|0}function kWa(a){a=a|0;a=J[a+172>>2];if(!a)return 0;return K[a| -0]}function iT(a,b){a=a|0;b=b|0;a=cG(a,b);J[a>>2]=2426756;return a|0}function h9a(a,b){a=a|0;b=b|0;tc(a+220|0,b,80);dx(a+300|0,b+80|0)}function dy(a,b,c,d,e){b=Ub(a|0,b|0,c|0,d|0,e|0)|0;fc=cc;return b}function aq(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,36);return 0}function aEa(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;return a|0}function VD(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,44);return 0}function Uia(a,b,c){a=a|0;b=b|0;c=c|0;return BQ(a,(b<<2)+a|0,c)|0}function UD(a,b){a=a|0;b=b|0;if(b)gc[J[a+ -156>>2]](b,52);return 0}function Sbb(a){a=a|0;if(!J[a+12>>2])gc[J[J[a>>2]+460>>2]](a,0)}function Qbb(a,b){a=a|0;b=b|0;if(!b)return 1;J[b>>2]=16;return 0}function Oxb(a,b,c){a=a|0;b=b|0;c=c|0;return(Lg(c,a+12|0)?-1:0)|0}function N7(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,68);return 0}function M7(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,56);return 0}function Lr(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,32);return 0}function Kr(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,40);return 0}function Kka(a){a=a|0; -ss(2778756,J[694690]);ss(2778744,J[694687])}function Hoa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+8>>3];return 0}function Goa(a,b){a=a|0;b=b|0;O[J[a+12>>2]+8>>3]=O[b>>3];return 0}function AF(a){if(J[a+76>>2]<0){a=IR(a);return a}a=IR(a);return a}function $p(a,b){a=a|0;b=b|0;if(b)gc[J[a+156>>2]](b,48);return 0}function z5(a){a=a|0;var b=0;b=J[a>>2];if(a)gc[J[b+8>>2]](b,a)}function wna(a,b){a=a|0;b=b|0;H[b|0]=K[J[a+12>>2]+32|0];return 0}function vna(a,b){a=a|0;b=b|0;H[J[a+12>>2]+32|0]=K[b|0];return 0}function una(a, -b){a=a|0;b=b|0;H[b|0]=K[J[a+12>>2]+33|0];return 0}function tna(a,b){a=a|0;b=b|0;H[J[a+12>>2]+33|0]=K[b|0];return 0}function sna(a,b){a=a|0;b=b|0;H[b|0]=K[J[a+12>>2]+34|0];return 0}function rna(a,b){a=a|0;b=b|0;H[J[a+12>>2]+34|0]=K[b|0];return 0}function rJ(a,b){var c=0;if(!(!a|!b))c=yt(a,b,xk(b),1);return c}function qna(a,b){a=a|0;b=b|0;H[b|0]=K[J[a+12>>2]+35|0];return 0}function ona(a,b){a=a|0;b=b|0;H[J[a+12>>2]+35|0]=K[b|0];return 0}function lia(a,b){a=a|0;b=b|0;return gc[J[J[a>>2]+44>>2]](a,b)| -0}function keb(a,b,c){a=a|0;b=b|0;c=c|0;J[J[a+388>>2]+(b<<2)>>2]=c}function hJa(a,b){a=a|0;b=b|0;return Bc(J[a+48>>2],795182,b,0)|0}function fkb(a){a=a|0;return(a>>>0<=255?L[(a<<1)+255552>>1]:0)|0}function ccb(a,b){a=a|0;b=b|0;tc(b,J[a+132>>2]+4|0,156);return 0}function aja(a){a=a|0;a=J[a+4>>2];if(!a)return 0;return!Ji(a)|0}function Tlb(a){a=a|0;a=J[a>>2];return gc[J[J[a>>2]+60>>2]](a)|0}function Mha(a,b){a=a|0;b=b|0;return gc[J[J[a>>2]+12>>2]](a,b)|0}function Kda(a){a=a|0;a=J[a+4>>2];if(!a)return-1; -return Yg(a)|0}function K9a(a,b){a=a|0;b=b|0;a=J[a+16>>2];if(a)J[a+2936>>2]=b}function Jmb(a,b){a=a|0;b=b|0;if(b)H[a+12|0]=0;return J[a+4>>2]}function Fja(a){a=a|0;a=J[a+4>>2];if(!a)return 0;return wq(a)|0}function Cja(a,b){a=a|0;b=b|0;return a-48>>>0<10|(a|32)-97>>>0<6}function AEa(a){a=a|0;J[a>>2]=2371600;Lc(a+20|0);Lc(a+4|0);qc(a)}function y0a(a,b,c){a=a|0;b=b|0;c=c|0;J[a+48>>2]=0;J[a+52>>2]=1}function xQ(a,b){a=a|0;b=b|0;return gc[J[J[a>>2]+28>>2]](a,b)|0}function vh(a){var b=0;b=J[J[a>>2]+4>> -2];if(b)gc[b|0](a);qc(a)}function tvb(a,b){a=a|0;b=b|0;a=J[a+156>>2];if(a)gc[a|0](b,1)}function tA(a){a=a|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function sA(a){a=a|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function qWa(a,b,c){a=a|0;b=b|0;c=c|0;H[a+205|0]=0;H[a+203|0]=0}function o9a(a){a=a|0;jL(a,1);jL(a,0);qc(J[a+4>>2]);J[a+4>>2]=0}function imb(a,b){a=a|0;b=b|0;qd(J[a+168>>2],b,255);ef(a,1);B()}function awa(a){a=a|0;J[a>>2]=2407348;_c(a+12|0);return ed(a)|0}function Wpa(a){a=a|0;J[a>>2]=2422928; -_c(a+20|0);return ed(a)|0}function Uqa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+76>>2]=c;J[a+72>>2]=b}function SD(a){var b=0;b=J[a+964>>2];if(b){qc(b);J[a+964>>2]=0}}function Mna(a,b){a=a|0;b=b|0;return J[b>>2]-9>>>0<4294967294|0}function Im(a,b){a=a|0;b=b|0;if(!a)return 0;return Iy(a,b,0)|0}function Foa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]>>3];return 0}function F9a(a,b){a=a|0;b=b|0;a=J[a+16>>2];if(a)H[a+2904|0]=b}function Eoa(a,b){a=a|0;b=b|0;O[J[a+12>>2]>>3]=O[b>>3];return 0}function Ed(a){var b=0;b=J[a>> -2];if(b){qc(b);J[a>>2]=0}return a}function A_a(a,b){a=a|0;b=b|0;if(!b)return-1;return J[b+16>>2]}function AAa(a){a=a|0;J[a>>2]=2389624;$c(a+12|0);return ed(a)|0}function wP(a){if(a>>>0>1073741823){Sd();B()}return zQ(a<<2,4)}function pmb(a){a=a|0;if(a)J[a+16>>2]=J[a+16>>2]+1;return a|0}function kZ(a,b){a=a|0;b=b|0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0}function jjb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Vd(d,c)|0}function jhb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return 1}function iBa(a){a=a|0;J[a>> -2]=2388868;sc(a+8|0);return ed(a)|0}function gUa(a){a=a|0;J[a>>2]=2181200;fg(J[a+4>>2]);return a|0}function coa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+932>>2]=-1;return 0}function Xxa(a,b){a=a|0;b=b|0;uj(a+8|0,b);Gs(di(),J[a+8>>2],a)}function Ufb(a,b){a=a|0;b=b|0;J[b>>2]=-1;J[b+4>>2]=14;return 0}function TGa(a,b,c){a=a|0;b=b|0;c=c|0;return ZW(J[a>>2],b,c)|0}function Oz(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a>>2]=0;md(a,0)}function Osa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Rj(b,c)|0}function OBa(a){a=a|0;J[a>> -2]=2385980;$c(a+8|0);return ed(a)|0}function Nyb(a,b){a=a|0;b=b|0;J[a+336>>2]=J[a+44>>2]>(b|0)?b:0}function Fcb(a,b,c){a=a|0;b=b|0;c=c|0;if(c)J[c>>2]=b;return 0}function tM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return 0}function kq(a){var b=0;b=zc(Qc(a)+1|0);if(b)ff(b,a);return b}function kma(a,b){a=a|0;b=b|0;return PS(J[a+12>>2],J[b>>2])|0}function ieb(a,b){a=a|0;b=b|0;return J[J[a+388>>2]+(b<<2)>>2]}function fA(a){a=a|0;var b=0;b=J[a>>2];if(b){qc(b);J[a>>2]=0}}function aca(a,b){a=a|0;b=b|0;a= -gc[a|0](b)|0;cc=fc;return a|0}function _Ra(a,b,c){a=a|0;b=b|0;c=c|0;J[a+40>>2]=J[a+40>>2]+1}function YE(a,b,c){var d=0;d=bc-16|0;bc=d;IQ(a,b,c);bc=d+16|0}function WEa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;Uf(a+12|0);qc(a)}function Rib(a,b){a=a|0;b=b|0;J[a+16>>2]=J[a>>2]+296;return 0}function NTa(a,b){a=a|0;b=b|0;return J[J[a+28>>2]+P(b,20)>>2]}function Kyb(a,b){a=a|0;b=b|0;return(ki(b,J[a+20>>2])?-1:0)|0}function Kdb(a,b){a=a|0;b=b|0;J[J[a+8>>2]+308>>2]=-1;return 0}function FTa(a){a=a|0;if(!J[a+80>>2])w_(a); -return J[a+20>>2]}function ETa(a){a=a|0;if(!J[a+80>>2])w_(a);return J[a+24>>2]}function Dhb(a,b){a=a|0;b=b|0;return J[J[a+424>>2]+(b<<2)>>2]}function vxa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;tc(a,b,P(c,3))}function rM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0}function dG(a){while(1){if(J[a>>2])continue;break}J[a>>2]=1}function X8a(a){a=a|0;J[a+4>>2]=J[a+4>>2]+1;return J[a+4>>2]}function Wba(a){a=a|0;ae(J[a+628>>2],97072,89425,0);return 1}function Sba(a){a=a|0;Nc(J[a+628>>2],97440,90394,0);return 0} -function Qba(a){a=a|0;Nc(J[a+628>>2],97392,90394,0);return 0}function Lra(a){a=a|0;J[a>>2]=2415352;jv(a+508|0);return a|0}function Hhb(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}function z6a(a){a=a|0;J[a>>2]=348984;Qe(a+128|0);return a|0}function yja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;fc=0;return 0}function ut(a,b){if(b){ut(a,J[b>>2]);ut(a,J[b+4>>2]);qc(b)}}function ubb(a,b){a=a|0;b=b|0;O[b>>3]=O[a- -64>>3];return 0}function tea(a,b,c){a=a|0;b=b|0;c=c|0;return((b|0)<0?c:b)|0}function tbb(a,b){a= -a|0;b=b|0;O[a- -64>>3]=O[b>>3];return 0}function lA(a){var b=0;if(a){b=J[a+8>>2];if(b)qc(b);qc(a)}}function hxa(a){a=a|0;return(J[a+68>>2]-J[a- -64>>2]|0)+1|0}function Zxb(a,b,c){a=a|0;b=b|0;c=c|0;A9(a+12|0,c);return 0}function Y8a(a){a=a|0;J[a+4>>2]=1;J[a>>2]=347640;return a|0}function XQ(a,b,c){a=a|0;b=b|0;c=c|0;return BQ(a,a+b|0,c)|0}function Ss(a,b){if(b){Ss(a,J[b>>2]);Ss(a,J[b+4>>2]);qc(b)}}function S8a(a){a=a|0;J[a+4>>2]=1;J[a>>2]=348116;return a|0}function L3(a){var b=0;b=rc(4);J[a>>2]=b;J[b>> -2]=0;return a}function J6a(a){a=a|0;J[a>>2]=348804;Qe(a+116|0);return a|0}function ESa(a,b){a=a|0;b=b|0;return J[J[a+4>>2]+(b<<5)>>2]}function Dx(a,b){if(b){Dx(a,J[b>>2]);Dx(a,J[b+4>>2]);qc(b)}}function Dq(a,b){if(b){Dq(a,J[b>>2]);Dq(a,J[b+4>>2]);qc(b)}}function Dca(a,b,c){a=a|0;b=b|0;c=c|0;J[a+4>>2]=b;J[a>>2]=c}function zP(a){a=a|0;J[a>>2]=2619336;ad(a+12|0);return a|0}function zAa(a){a=a|0;J[a>>2]=2389624;$c(a+12|0);qc(ed(a))}function yP(a){a=a|0;J[a>>2]=2619376;ad(a+16|0);return a|0}function w6a(a){a= -a|0;J[a>>2]=349040;Qe(a+92|0);return a|0}function uq(a,b,c){a=a|0;b=b|0;c=c|0;return gc[c|0](a,b)|0}function m_a(a){a=a|0;J[a+4>>2]=1;J[a>>2]=768E3;return a|0}function lbb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+100>>2];return 0}function kbb(a,b){a=a|0;b=b|0;J[a+100>>2]=J[b>>2];return 0}function jbb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+108>>2];return 0}function ibb(a,b){a=a|0;b=b|0;J[a+108>>2]=J[b>>2];return 0}function hbb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+104>>2];return 0}function gqa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;tc(a, -b,c<<4)}function gbb(a,b){a=a|0;b=b|0;J[a+104>>2]=J[b>>2];return 0}function fbb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+112>>2];return 0}function fIa(a,b){a=a|0;b=b|0;return!J[J[a+16>>2]+44>>2]|0}function ebb(a,b){a=a|0;b=b|0;J[a+112>>2]=J[b>>2];return 0}function eIa(a,b){a=a|0;b=b|0;return!J[J[a+12>>2]+44>>2]|0}function bbb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+116>>2];return 0}function _ab(a,b){a=a|0;b=b|0;J[a+140>>2]=J[b>>2];return 0}function Zab(a,b){a=a|0;b=b|0;J[b>>2]=J[a+136>>2];return 0}function Yab(a,b){a=a| -0;b=b|0;J[a+136>>2]=J[b>>2];return 0}function Xwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;tc(a,b,c<<1)}function Xab(a,b){a=a|0;b=b|0;O[b>>3]=O[a+200>>3];return 0}function X9a(a,b){a=a|0;b=b|0;J[b>>2]=J[a+636>>2];return 0}function Wwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;tc(a,b,c<<3)}function Vpa(a){a=a|0;J[a>>2]=2422928;_c(a+20|0);qc(ed(a))}function Vab(a,b){a=a|0;b=b|0;O[a+200>>3]=O[b>>3];return 0}function U0a(a){a=a|0;return(K[a+28|0]&15?730994:730581)|0}function Qfb(a){a=a|0;a=J[a>>2];J[a+20>>2]=0;J[a+108>> -2]=0}function N0a(a){a=a|0;return(K[a+28|0]&15?731618:731318)|0}function Lyb(a,b){a=a|0;b=b|0;return(Di(b,a+20|0)?-1:0)|0}function Lab(a,b){a=a|0;b=b|0;O[b>>3]=O[a+488>>3];return 0}function Kab(a,b){a=a|0;b=b|0;O[a+488>>3]=O[b>>3];return 0}function J9(){var a=0;a=zc(52);if(a)J[a+48>>2]=0;return a}function Icb(a,b){a=a|0;b=b|0;I[b>>1]=L[a+312>>1];return 0}function Hab(a,b){a=a|0;b=b|0;J[b>>2]=J[a+508>>2];return 0}function Gab(a,b){a=a|0;b=b|0;J[a+508>>2]=J[b>>2];return 0}function Fab(a,b){a=a|0;b= -b|0;O[b>>3]=O[a+512>>3];return 0}function F6a(a){a=a|0;J[a>>2]=348880;Qe(a+92|0);return a|0}function Efb(a){a=a|0;return a-48>>>0<10|(a&-33)-65>>>0<26}function Eab(a,b){a=a|0;b=b|0;O[a+512>>3]=O[b>>3];return 0}function Dab(a,b){a=a|0;b=b|0;J[b>>2]=J[a+520>>2];return 0}function C6a(a){a=a|0;J[a>>2]=348932;Qe(a+92|0);return a|0}function Aab(a,b){a=a|0;b=b|0;J[a+520>>2]=J[b>>2];return 0}function $za(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;tc(a,b,c<<2)}function $va(a){a=a|0;J[a>>2]=2407348;_c(a+12|0);qc(ed(a))} -function $ab(a,b){a=a|0;b=b|0;J[b>>2]=J[a+140>>2];return 0}function zua(a){a=a|0;return(K[a+64|0]?2411863:2411759)|0}function xV(a){a=a|0;a=J[a+16>>2];gc[J[J[a>>2]+24>>2]](a)}function tE(a){a=a|0;J[a>>2]=2626532;LO(a+4|0);return a|0}function t1a(a){a=a|0;if(!a)return 0;return K[a|0]==47|0}function ssa(a,b,c){a=a|0;b=b|0;c=c|0;gc[b|0](c);return 0}function sbb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+72>>2];return 0}function rbb(a,b){a=a|0;b=b|0;J[a+72>>2]=J[b>>2];return 0}function qbb(a,b){a=a|0;b=b|0;O[b>>3]= -O[a+80>>3];return 0}function pbb(a,b){a=a|0;b=b|0;O[a+80>>3]=O[b>>3];return 0}function p_a(a,b,c){a=a|0;b=b|0;c=c|0;return zc(P(b,c))|0}function nbb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+96>>2];return 0}function mbb(a,b){a=a|0;b=b|0;J[a+96>>2]=J[b>>2];return 0}function mba(a){a=a|0;J[a+916>>2]=J[a+916>>2]-J[a+784>>2]}function lMa(a){a=a|0;return(J[a+52>>2]&J[a+56>>2])==-1|0}function hBa(a){a=a|0;J[a>>2]=2388868;sc(a+8|0);qc(ed(a))}function eUa(a){a=a|0;J[a>>2]=2181200;fg(J[a+4>>2]);qc(a)}function a9a(a){a= -a|0;J[a>>2]=340592;ji(a+8|0);return a|0}function _Va(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=8;J[c>>2]=2}function _3(a,b){a=a|0;b=b|0;I[b>>1]=L[a+164>>1];return 0}function Xsa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;CT(a,b,c,d)}function Wk(a,b,c,d,e,f,g,h){return EW(a,b,c,d,e,f,g,h,1)}function VLa(a){a=a|0;a=J[a+4>>2];gc[J[J[a>>2]+24>>2]](a)}function Us(a,b,c,d,e,f,g,h){return EW(a,b,c,d,e,f,g,h,0)}function Qgb(a){a=a|0;J[a+140>>2]=J[a+140>>2]+I[a+144>>1]}function NBa(a){a=a|0;J[a>>2]=2385980;$c(a+8|0);qc(ed(a))} -function MO(a){a=a|0;J[a>>2]=2626512;LO(a+4|0);return a|0}function Iub(a){a=a|0;a=J[a+24>>2];H[(a?a-20|0:0)+56|0]=1}function Ibb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+28>>2];return 0}function Hbb(a,b){a=a|0;b=b|0;J[a+28>>2]=J[b>>2];return 0}function Gua(a){a=a|0;return(K[a+56|0]?2411858:2411754)|0}function Gbb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+32>>2];return 0}function Fbb(a,b){a=a|0;b=b|0;J[a+32>>2]=J[b>>2];return 0}function Ebb(a,b){a=a|0;b=b|0;O[b>>3]=O[a+40>>3];return 0}function Dbb(a,b){a=a|0;b=b|0;O[a+40>> -3]=O[b>>3];return 0}function yhb(a){a=a|0;a=a<<13^a;a=a>>>17^a;return a<<5^a}function ye(a,b){var c=0;if(!(!a|!b))c=bd(a,b);return c}function tca(a,b,c){a=a|0;b=b|0;c=c|0;return pj(a,b,0)|0}function mxb(a,b){a=a|0;b=Q(b);N[a+344>>2]=b>Q(0)?b:Q(0)}function k8(a){Lh(a,J[a+532>>2],0);H[a+498|0]=0;return 0}function Zw(a,b){a=a|0;b=b|0;J[a+40>>2]=b;K3(a);return 0}function Xl(a){var b=0,c=0;b=a,c=$f(0,0,0),J[b+384>>2]=c}function Xeb(a,b,c){a=a|0;b=b|0;c=c|0;return cM(a,b,c)|0}function Xaa(a){a=a|0;a=J[a+ -584>>2];if(a)qc(a);return 1}function Qea(a,b){a=a|0;b=b|0;return KP(J[a>>2],Tf(b))|0}function N1a(a){a=a|0;return H[J[J[a+24>>2]+12>>2]+70|0]}function zbb(a,b){a=a|0;b=b|0;H[a+49|0]=K[b|0];return 0}function ybb(a,b){a=a|0;b=b|0;H[b|0]=K[a+50|0];return 0}function xza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;OU(a,b,d)}function xxa(a,b){a=a|0;b=b|0;return!fd(b,2391306,-1)|0}function xmb(a){a=a|0;return(J[a+4>>2]?J[a+16>>2]:-1)|0}function xca(a){a=a|0;if(a){a=a-24|0;J[a>>2]=J[a>>2]+1}}function xbb(a,b){a=a|0; -b=b|0;H[a+50|0]=K[b|0];return 0}function wbb(a,b){a=a|0;b=b|0;H[b|0]=K[a+51|0];return 0}function vbb(a,b){a=a|0;b=b|0;H[a+51|0]=K[b|0];return 0}function v4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[d>>2]=0}function tia(a){a=a|0;return gC(J[J[a>>2]-12>>2]+a|0)|0}function ria(a){a=a|0;return hC(J[J[a>>2]-12>>2]+a|0)|0}function q9a(a){a=a|0;gc[J[J[a>>2]+348>>2]](a,340676)|0}function pLa(a,b,c){a=a|0;b=b|0;c=c|0;xc(7,-1,806193,0)}function nBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;tc(a,b,c)}function mPa(a,b,c,d){a= -a|0;b=b|0;c=c|0;d=d|0;J[c>>2]=0}function mP(a,b,c,d){a=Ky(a,b,c,0,-2147483648);return a}function k4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[d>>2]=c}function d6a(a){a=a|0;return J[a+272>>2]-J[a+268>>2]>>3}function bka(a,b){a=a|0;b=b|0;return J[a+4>>2]+(b<<2)|0}function Zcb(a,b){a=a|0;b=b|0;J[b+376>>2]=J[b+376>>2]|1}function Z3(a,b){a=a|0;b=b|0;tc(b,a+168|0,196);return 0}function XMa(a){a=a|0;return J[a+12>>2]!=0|J[a+4>>2]>=0}function Vha(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;YE(a,c,d)}function Tib(a,b,c,d){a= -a|0;b=b|0;c=c|0;d=d|0;return 12}function TMa(a){a=a|0;return J[(J[a>>2]<<2)+2720608>>2]}function TLa(a,b,c){a=a|0;b=b|0;c=c|0;xc(7,-1,805309,0)}function Sjb(a,b){a=a|0;b=b|0;return J[a>>2]==J[b>>2]|0}function Rc(a){var b=0;b=J[a+4>>2];if(b)qc(b);return a}function RLa(a){a=a|0;a=J[a>>2];gc[J[J[a>>2]+20>>2]](a)}function QLa(a){a=a|0;a=J[a>>2];gc[J[J[a>>2]+24>>2]](a)}function QAa(a,b){a=a|0;b=b|0;if((b|0)>0)wc(a,0,b<<2)}function OIa(a,b){a=a|0;b=b|0;return!sd(J[a+20>>2],b)|0}function Nja(a){a=a|0;J[a+ -16>>2]=0;J[a+12>>2]=J[a+4>>2]}function Mva(a){a=a|0;a=J[a+4>>2];return(a?a:2377794)|0}function Kx(a,b){a=a|0;b=b|0;return ue(a,J[b>>2],0,0)|0}function Kra(a){a=a|0;J[a>>2]=2415352;jv(a+508|0);qc(a)}function Cbb(a,b){a=a|0;b=b|0;H[b|0]=K[a+48|0];return 0}function Bbb(a,b){a=a|0;b=b|0;H[a+48|0]=K[b|0];return 0}function Abb(a,b){a=a|0;b=b|0;H[b|0]=K[a+49|0];return 0}function zLa(a){a=a|0;J[a+40>>2]=J[a+24>>2]+J[a+28>>2]}function y6a(a){a=a|0;J[a>>2]=348984;Qe(a+128|0);qc(a)}function u6(a){a=a|0;a=J[a+ -156>>2];if(a)J[a+36>>2]=0}function smb(a){a=a|0;return(J[a+4>>2]?J[a+8>>2]:-1)|0}function qQ(a,b){a=a|0;b=b|0;gc[J[J[b>>2]+24>>2]](a,b)}function pQ(a,b){a=a|0;b=b|0;gc[J[J[b>>2]+28>>2]](a,b)}function o$a(a){a=a|0;a=J[a+8>>2];return(a?a+26|0:0)|0}function lQ(a,b){a=a|0;b=b|0;gc[J[J[b>>2]+20>>2]](a,b)}function l0a(a){a=a|0;a=J[a+8>>2];return(a?a+69|0:0)|0}function j6(a,b){a=a|0;b=b|0;if(b)gc[J[a+8>>2]](a,b)}function i_a(a,b){a=a|0;b=b|0;return A0(J[a+4>>2],b)|0}function es(a,b){var c=0;c=AQ(b);J[a+ -4>>2]=b;J[a>>2]=c}function ZMa(a){a=a|0;return(J[a+4>>2]|J[a+8>>2])!=0|0}function WQ(a){a=a|0;return Dy(J[J[a>>2]-12>>2]+a|0)|0}function Vz(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=0;md(a,0)}function RQ(a){a=a|0;return Cy(J[J[a>>2]-12>>2]+a|0)|0}function RA(a,b){a=a|0;b=b|0;return DY(J[a+12>>2],b)|0}function I6a(a){a=a|0;J[a>>2]=348804;Qe(a+116|0);qc(a)}function E9(){var a=0;a=zc(4);if(a)J[a>>2]=0;return a}function DGa(a){a=a|0;if(a)J[a+208>>2]=J[a+208>>2]|1}function zwb(a,b){a=a|0;b=b|0;J[a+12>>2]=J[a+12>> -2]+b}function yu(a){var b=0;b=J[a+48>>2];if(b)qc(b);qc(a)}function wn(a){var b=0;b=J[a+12>>2];if(b)qc(b);qc(a)}function u2a(a){a=a|0;if(H[2757371]<0)qc(J[689340])}function t6a(a){a=a|0;J[a>>2]=349040;Qe(a+92|0);qc(a)}function mQ(a){a=a|0;return gc[J[J[a>>2]+16>>2]](a)|0}function eD(a){a=a|0;return gc[J[J[a>>2]+28>>2]](a)|0}function _ja(a){a=a|0;if(H[2778815]<0)qc(J[694701])}function Zja(a){a=a|0;if(H[2778827]<0)qc(J[694704])}function Yna(a){a=a|0;if(H[2778739]<0)qc(J[694682])}function Yja(a){a=a| -0;if(H[2778839]<0)qc(J[694707])}function Yf(a,b){a=Ly(a,b);return K[a|0]==(b&255)?a:0}function YD(a){var b=0;b=J[a+16>>2];if(b)qc(b);qc(a)}function Xja(a){a=a|0;if(H[2778851]<0)qc(J[694710])}function Wja(a){a=a|0;if(H[2778863]<0)qc(J[694713])}function Vja(a){a=a|0;if(H[2778875]<0)qc(J[694716])}function Uka(a){a=a|0;if(H[a+31|0]<0)qc(J[a+20>>2])}function Uja(a){a=a|0;if(H[2778887]<0)qc(J[694719])}function UQ(a){a=a|0;return gc[J[J[a>>2]+24>>2]](a)|0}function Tja(a){a=a|0;if(H[2778899]<0)qc(J[694722])} -function Sja(a){a=a|0;if(H[2778911]<0)qc(J[694725])}function Rp(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0}function Rja(a){a=a|0;if(H[2778923]<0)qc(J[694728])}function Nna(a,b){a=a|0;b=b|0;J[J[a+12>>2]+1728>>2]=b}function N2(a){a=a|0;return gc[J[J[a>>2]+12>>2]](a)|0}function Gcb(a,b){a=a|0;b=b|0;if(b)H[b|0]=1;return 0}function Elb(a){a=a|0;return(H[a+11|0]<0?J[a>>2]:a)|0}function E6a(a){a=a|0;J[a>>2]=348880;Qe(a+92|0);qc(a)}function Blb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0}function B6a(a){a=a| -0;J[a>>2]=348932;Qe(a+92|0);qc(a)}function B1a(a){a=a|0;Ih(J[a+4>>2]);Gf(J[a>>2]);Gf(a)}function $ja(a){a=a|0;if(H[2778803]<0)qc(J[694698])}function meb(a){a=a|0;return Pc(L[a+256>>1],IC(a))|0}function hwb(a){a=a|0;return J[a+28>>2]+J[a+24>>2]|0}function _8a(a){a=a|0;J[a>>2]=340592;ji(a+8|0);qc(a)}function Uab(a,b){a=a|0;b=b|0;Bj(b,a+120|0);return 0}function Tab(a,b){a=a|0;b=b|0;Bj(a+120|0,b);return 0}function SHa(a,b,c){a=a|0;b=b|0;c=c|0;fc=-1;return-1}function Evb(a,b){a=a|0;b=b|0;H[a+2252|0]=1; -return 0}function Dvb(a,b){a=a|0;b=b|0;H[a+2252|0]=2;return 0}function Czb(a){if(a)return 31-S(a-1^a)|0;return 32}function A2a(a,b,c){a=a|0;b=b|0;c=c|0;_1(a+72|0,b,c)}function $Ja(a){a=a|0;return J[a+40>>2]-J[a+24>>2]|0}function zcb(a,b){a=a|0;b=b|0;return rl(333120,b)|0}function vwb(a){a=a|0;return J[a+12>>2]+J[a+8>>2]|0}function rmb(a){a=a|0;return!J[a+4>>2]|K[a+24|0]!=0}function pA(a,b,c){return gc[J[a+40>>2]](a,b,0,c)|0}function ky(a,b){a=a|0;b=b|0;return dP(a,b,Qc(b))|0}function jcb(a,b){a=a| -0;b=b|0;return rl(334016,b)|0}function hlb(a,b){a=a|0;b=b|0;return rl(252032,b)|0}function elb(a,b){a=a|0;b=b|0;return rl(252288,b)|0}function cka(a){a=a|0;return J[a+8>>2]-J[a+4>>2]>>2}function ama(a){a=a|0;Ut(J[a+12>>2]+648|0);return 0}function aP(a,b){a=a|0;b=b|0;return HE(a,b,Qc(b))|0}function _u(a){a=a|0;gc[J[J[a+16>>2]>>2]](a+16|0)|0}function _ib(a,b){a=a|0;b=b|0;return rl(260192,b)|0}function Wr(a,b){a=a|0;b=b|0;return hy(a,b,Ve(b))|0}function Tcb(a,b){a=a|0;b=b|0;return rl(331008,b)|0}function Lib(a, -b){a=a|0;b=b|0;return rl(260832,b)|0}function KO(){var a=0;a=Zb(2372,0)|0;fc=cc;return a}function Igb(a,b){a=a|0;b=b|0;return rl(324448,b)|0}function Ggb(a,b){a=a|0;b=b|0;J[a+16>>2]=b;return 0}function Exb(a,b){a=a|0;b=b|0;J[a+84>>2]=2;return 0}function Dwa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ql(a)}function Ddb(a,b){a=a|0;b=b|0;return rl(329040,b)|0}function $na(a){a=a|0;Ut(J[a+12>>2]+920|0);return 0}function $gb(a,b){a=a|0;b=b|0;return rl(324336,b)|0}function zu(a){var b=0;b=J[a>>2];if(b)qc(b);qc(a)} -function tRa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+36>>2]=1}function sRa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+36>>2]=2}function lSa(a){a=a|0;return tc(rc(1576),a,1576)|0}function hIa(a,b){a=a|0;b=b|0;return BX(a-4|0,b)|0}function cL(a,b){a=a|0;b=b|0;Bj(a+52|0,b);return 0}function cIa(a,b){a=a|0;b=b|0;return zX(a-4|0,b)|0}function bL(a,b){a=a|0;b=b|0;Bj(a+48|0,b);return 0}function Q$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,11)}function P$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,16)}function O$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a, -b,c,17)}function N$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,18)}function M$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,19)}function Dja(a,b){a=a|0;b=b|0;return a-48>>>0<10|0}function zfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782308))}function yfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782056))}function xfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782064))}function wfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782072))}function vg(a,b,c){return Ky(a,b,c,-2147483648,0)}function ufa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782080))}function sfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782120))} -function rfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782128))}function qkb(a){a=a|0;gc[J[J[a+552>>2]+28>>2]](a)}function qfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782136))}function pfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782144))}function nfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782152))}function m_(a,b){a=a|0;b=b|0;return Ef(a+8|0,b)|0}function lfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782160))}function hfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782168))}function ffa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782176))}function efa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782088))}function dfa(a, -b){a=a|0;b=b|0;eg(a,b,Tf(2782096))}function bfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782104))}function a0a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,1)}function Yea(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782184))}function Xea(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782192))}function X$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,2)}function W$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,3)}function V$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,4)}function U$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,5)}function Tsb(a){a=a|0;return P(P(a,85)&255,257)|0}function T$a(a,b, -c){a=a|0;b=b|0;c=c|0;ll(a,b,c,6)}function Rsb(a){a=a|0;return P(P(a,17)&255,257)|0}function R$a(a,b,c){a=a|0;b=b|0;c=c|0;ll(a,b,c,8)}function Qk(a,b){a=a|0;b=b|0;return yQ(a)^yQ(b)^1}function Pfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782040))}function Ofa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782048))}function Mfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782244))}function Lj(a,b){a=a|0;b=b|0;return wQ(a)^wQ(b)^1}function Lfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782236))}function Kfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782252))}function Ioa(a,b){a= -a|0;b=b|0;J[b>>2]=18;return 0}function Ifa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782260))}function Hfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782268))}function Ffa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782284))}function FJa(a,b,c){a=a|0;b=b|0;c=c|0;Td(b,1,c,a)}function Efa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782276))}function Dfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782292))}function Bfa(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782300))}function $ea(a,b){a=a|0;b=b|0;eg(a,b,Tf(2782112))}function zPa(a,b){a=a|0;b=b|0;J[a+12>>2]=J[b>>2]}function vpa(a,b){a=a| -0;b=b|0;return P(b,20)+a|0}function sR(a,b){a=pF(a,b)+a|0;return K[a|0]?a:0}function oLa(a){a=a|0;xc(7,-1,806586,0);return 0}function m9a(a){a=a|0;return+O[J[a+16>>2]+16>>3]}function ii(a,b,c,d){Bk(a,b,c,K[a+200|0]==219,d)}function geb(a,b,c){a=a|0;b=b|0;c=c|0;return b|0}function fla(a){a=a|0;J[a>>2]=2431360;return a|0}function feb(a,b,c){a=a|0;b=b|0;c=c|0;return c|0}function edb(a,b){a=a|0;b=b|0;return X3(a,0,0)|0}function eMa(a){a=a|0;xc(7,-1,774779,0);return-1}function bWa(a){a=a|0;if(J[a+16>> -2])fA(a+16|0)}function Wza(a,b){a=a|0;b=b|0;return P(b,44)+a|0}function Wka(a){a=a|0;J[a>>2]=2431668;return a|0}function Vfb(a,b){a=a|0;b=b|0;J[b>>2]=0;return 0}function SBa(a,b){a=a|0;b=b|0;return P(b,68)+a|0}function Lla(a){a=a|0;J[a>>2]=2429916;return a|0}function Kna(a,b){a=a|0;b=b|0;J[b>>2]=8;return 0}function Jla(a){a=a|0;J[a>>2]=2430036;return a|0}function Hla(a){a=a|0;J[a>>2]=2430156;return a|0}function Ela(a){a=a|0;J[a>>2]=2430276;return a|0}function Dxa(a,b){a=a|0;b=b|0;J[a+12>>2]=(b|0)% -4}function Cla(a){a=a|0;J[a>>2]=2430396;return a|0}function BIa(a){a=a|0;return J[J[a+16>>2]+36>>2]}function Awa(a,b){a=a|0;b=b|0;return P(b,24)+a|0}function AX(a,b){a=a|0;b=b|0;return M[b>>2]>10|0}function zja(a){a=a|0;J[694792]=a-1;J[694793]=0}function y_a(a,b){a=a|0;b=b|0;return J[b+12>>2]}function xzb(a){a=a|0;return(J[a+12>>2]<<1)+4|0}function wxa(a,b){a=a|0;b=b|0;return P(b,3)+a|0}function tv(a,b){a=a|0;b=b|0;return P(b,12)+a|0}function qTa(a){a=a|0;return J[J[a+32>>2]+8>>2]}function pq(a,b){a= -a|0;b=b|0;zy(a,J[a+16>>2]|b)}function nLa(a,b){a=a|0;b=b|0;xc(7,-1,807039,0)}function n9a(a){a=a|0;return+O[J[a+16>>2]+8>>3]}function myb(a){a=a|0;a=J[a+52>>2];if(a)qc(a)}function m6a(a,b){a=a|0;b=b|0;J[b>>2]=J[a+8>>2]}function jzb(a){a=a|0;return Qc(J[a+12>>2])+1|0}function hV(a,b){a=a|0;b=b|0;return P(b,40)+a|0}function gsa(a,b){a=a|0;b=b|0;J[a>>2]=0;md(a,b)}function aDa(a){a=a|0;J[a+24>>2]=0;J[a+16>>2]=0}function X5a(a){a=a|0;return J[J[a+8>>2]+12>>2]}function WZa(a,b){a=a|0;b=b|0;J[a+8>>2]=J[b>> -2]}function W5a(a){a=a|0;return J[J[a+8>>2]+16>>2]}function Vp(a,b){if(!(!a|!b))tD(J[a+16>>2],b)}function V9(a){a=a|0;a=J[a+16>>2];if(a)qc(a)}function Tg(a,b){if(!b)return 0;return Vd(a,b)}function T3a(a,b){a=a|0;b=b|0;H[a+164|0]=K[b|0]}function Sib(a,b,c){a=a|0;b=b|0;c=c|0;return 12}function ME(a,b,c,d){a=Ky(a,b,c,-1,-1);return a}function Ks(a,b){a=a|0;b=b|0;return P(b,28)+a|0}function Ey(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function Eh(a){J[a>>2]=0;H[J[a+4>>2]]=0;kh(a,0)}function EDa(a){a=a|0;return J[J[a+ -4>>2]+16>>2]}function Dyb(a){a=a|0;a=J[a+28>>2];if(a)qc(a)}function Cab(a,b){a=a|0;b=b|0;J[a+4>>2]=J[b>>2]}function BG(a,b){a=a|0;b=b|0;return P(b,56)+a|0}function twb(a,b){a=a|0;b=b|0;H[a+40|0]=K[b|0]}function sia(a){a=a|0;DQ(J[J[a>>2]-12>>2]+a|0)}function r5a(a){a=a|0;a=bc-16|0;bc=a;bc=a+16|0}function qia(a){a=a|0;CQ(J[J[a>>2]-12>>2]+a|0)}function nG(a,b){a=a|0;b=b|0;J[a>>2]=0;md(a,0)}function fE(a){a=a|0;a=J[a+20>>2];if(a)qc(a)}function bi(a,b,c){if(!(K[a|0]&32))Ty(b,c,a)}function Ywa(a,b){a=a| -0;b=b|0;return(b<<1)+a|0}function UY(a,b){tc(J[a>>2],J[b>>2],J[a+4>>2])}function U9(a){a=a|0;a=J[a+12>>2];if(a)qc(a)}function NAa(a,b){a=a|0;b=b|0;return(b<<5)+a|0}function HT(a,b){a=a|0;b=b|0;GT(a,b,5461,5462)}function F9(a){a=a|0;a=J[a+24>>2];if(a)qc(a)}function ER(a){a=a|0;if(!(a&1))qc(a);return 0}function C_a(a,b){a=a|0;b=b|0;return L0(a,b)|0}function C6(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0}function z5a(a){a=a|0;return+O[J[a>>2]+24>>3]}function oob(a){a=a|0;return J[a+960>>2]!=0|0}function lF(a, -b,c){return mF(a,b,c,6520,6521)}function jU(a,b){a=a|0;b=b|0;return(b<<3)+a|0}function ita(a){a=a|0;return Zf(J[a+12>>2])|0}function _tb(a){a=a|0;return J[a+964>>2]!=0|0}function Wsb(a){a=a|0;return P(0-a&255,257)|0}function VY(a,b,c){return QZ(J[a+428>>2],b,c)}function VQ(a){a=a|0;gF(J[J[a>>2]-12>>2]+a|0)}function Tx(a,b,c){a=a|0;b=b|0;c=c|0;return-1}function QQ(a){a=a|0;eF(J[J[a>>2]-12>>2]+a|0)}function Jna(a){a=a|0;return gz(J[a+12>>2])|0}function Jja(a){a=a|0;return Ga(J[a+60>>2])|0}function Ig(a, -b,c){a=a|0;b=b|0;c=c|0;return 0}function Hua(a){a=a|0;return(K[a+56|0]?4:1)|0}function Fzb(a,b,c,d){a=Bzb(a,b,c,d);return a}function EM(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function Aua(a){a=a|0;return(K[a+64|0]?5:3)|0}function AG(a,b){a=a|0;b=b|0;return(b<<4)+a|0}function $U(a,b){a=a|0;b=b|0;return(b<<2)+a|0}function vdb(a){a=a|0;J[J[a+156>>2]+36>>2]=0}function v9a(a){a=a|0;return J[a+16>>2]+56|0}function u9a(a){a=a|0;return J[a+16>>2]+52|0}function r9a(a){a=a|0;return J[a+16>>2]+44|0}function r0a(a, -b){a=a|0;b=b|0;return zc(b)|0}function pGa(a){a=a|0;return J[J[a+4>>2]>>2]}function nkb(a){a=a|0;return J[a+8>>2]>>>9&1}function hw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0}function fKa(a){a=a|0;return J[J[a+8>>2]>>2]}function ZEa(a){a=a|0;Uf(a+4|0);return a-8|0}function Z6a(a){a=a|0;J[J[a+480>>2]+28>>2]=1}function Yha(){return(J[J[694782]>>2]?4:1)|0}function Oia(a){a=a|0;return Hm(a,2782064)|0}function Oea(a){a=a|0;gc[J[J[a>>2]+4>>2]](a)}function Kvb(a,b){a=a|0;b=b|0;return $7(a)|0}function Jeb(a){a=a|0; -J[a+64>>2]=40;return 0}function J_a(a,b){a=a|0;b=b|0;return fg(b)|0}function IJa(a){a=a|0;return J[J[a>>2]+8>>2]}function H0(a,b,c){return Kw(a,b,8,15,8,0,c)}function F_a(a,b){a=a|0;b=b|0;return AF(b)|0}function $ya(a){a=a|0;if(a)Ji(J[a+180>>2])}function uOa(a,b){a=a|0;b=b|0;J[a+336>>2]=b}function tOa(a,b){a=a|0;b=b|0;J[a+408>>2]=b}function oq(a){a=a|0;LQ(J[a>>2]);return a|0}function nUa(a){a=a|0;TI(2758416,J[689605])}function lWa(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d}function lUa(a){a=a|0;SI(2758428,J[689608])} -function i8(a){H[a+1124|0]=0;Eo(a);return 0}function hya(a,b){a=a|0;b=b|0;J[a+132>>2]=b}function hXa(a,b){a=a|0;b=b|0;J[a+164>>2]=b}function gs(a){a=a|0;TQ(J[a>>2]);return a|0}function fF(a){a=a|0;return Hm(a,2782244)|0}function ela(a){a=a|0;J[a>>2]=2431360;qc(a)}function dF(a){a=a|0;return Hm(a,2782236)|0}function bxb(a,b){a=a|0;b=b|0;J[a+332>>2]=b}function a6a(a){a=a|0;return Q(N[a+284>>2])}function _e(a){if(!a)return 0;return zc(a)}function _2a(a){a=a|0;ml(2757324,J[689332])}function Zna(a){a= -a|0;ml(2778716,J[694680])}function Zda(a,b){a=a|0;b=b|0;rr(a,2619408)}function Xda(a,b){a=a|0;b=b|0;rr(a,2619428)}function XZa(a){a=a|0;ml(2758012,J[689504])}function XE(a){a=a|0;return Hm(a,2782300)|0}function Wab(a){a=a|0;J[J[a+456>>2]>>2]=298}function WXa(a,b){a=a|0;b=b|0;J[a+468>>2]=b}function WMa(a){a=a|0;return J[a+8>>2]!=5|0}function Vka(a){a=a|0;J[a>>2]=2431668;qc(a)}function UE(a){a=a|0;return Hm(a,2782308)|0}function Kla(a){a=a|0;J[a>>2]=2429916;qc(a)}function Jka(a){a=a|0;cz(2778772,J[694694])} -function Ila(a){a=a|0;J[a>>2]=2430036;qc(a)}function Gla(a){a=a|0;J[a>>2]=2430156;qc(a)}function GQ(a){a=a|0;return Hm(a,2782252)|0}function Dla(a){a=a|0;J[a>>2]=2430276;qc(a)}function Bla(a){a=a|0;J[a>>2]=2430396;qc(a)}function B4a(a,b){a=a|0;b=b|0;J[a+172>>2]=b}function APa(a,b){a=a|0;b=b|0;J[b>>2]=65536}function $Ea(a){a=a|0;Uf(a+12|0);return a|0}function z9a(a,b){a=a|0;b=b|0;mL(a+88|0,b)}function tjb(a,b){a=a|0;b=b|0;Pp(a+20|0,b)}function o_a(a){a=a|0;ml(2758E3,J[689501])}function oBa(a,b){a= -a|0;b=b|0;return a+b|0}function nmb(a,b){a=a|0;b=b|0;J[a+16>>2]=b}function gya(a,b){a=a|0;b=b|0;H[a+136|0]=b}function cq(a){a=a|0;return J[a+4>>2]!=0|0}function bl(a,b){Kl(J[a>>2],J[a+8>>2],4,b)}function aea(a,b){a=a|0;b=b|0;QE(a,b+12|0)}function Yza(a,b){a=a|0;b=b|0;J[a+84>>2]=b}function VGa(a){a=a|0;return bX(J[a>>2])|0}function UGa(a){a=a|0;return cX(J[a>>2])|0}function TZa(a){a=a|0;J[a>>2]=0;return a|0}function Rwb(a,b){a=a|0;b=b|0;H[a+492|0]=b}function Q3a(a,b){a=a|0;b=b|0;J[a+20>>2]=b}function F2a(a, -b){a=a|0;b=b|0;Y1(a+72|0,b)}function Ewb(a,b){a=a|0;b=b|0;H[a+493|0]=b}function A9a(a,b){a=a|0;b=b|0;mL(b,a+88|0)}function A5a(a){a=a|0;return+O[J[a>>2]>>3]}function $da(a,b){a=a|0;b=b|0;QE(a,b+16|0)}function sC(a,b){a=a|0;b=b|0;Bj(a+20|0,b)}function qF(a,b){ff(Qc(a)+a|0,b);return a}function mSa(a){a=a|0;return J[a+2984>>2]}function kV(a,b){a=a|0;b=b|0;Ln(a,b+12|0)}function kSa(a){a=a|0;return J[a+1568>>2]}function iSa(a){a=a|0;return J[a+1064>>2]}function gSa(a){a=a|0;return J[a+1576>>2]}function dja(a){a= -a|0;return!J[a+16>>2]|0}function bIa(a){a=a|0;H[a+8|0]=1;return 0}function aIa(a){a=a|0;H[a+8|0]=0;return 0}function _da(a,b){a=a|0;b=b|0;Dj(a,13352)}function Yda(a,b){a=a|0;b=b|0;Dj(a,13672)}function YEa(a){a=a|0;Uf(a+4|0);qc(a-8|0)}function Xza(a,b){a=a|0;b=b|0;H[a+88|0]=b}function Xg(a,b,c){return Qu(a,b,b>>31,c)}function XC(a,b,c,d){return c6(a,b,c,d,1)}function KJ(a,b,c,d){return Dw(a,b,c,0,d)}function Dy(a){a=a|0;Uf(a+8|0);return a|0}function Cy(a){a=a|0;Uf(a+4|0);return a|0}function zyb(a){a= -a|0;return J[a+368>>2]}function zOa(a){a=a|0;return J[a+376>>2]}function yOa(a){a=a|0;return J[a+380>>2]}function xeb(a){a=a|0;q4(a);H[a+112|0]=0}function wua(a){a=a|0;return J[a+124>>2]}function w3a(a){a=a|0;return J[a+256>>2]}function v3a(a){a=a|0;return J[a+260>>2]}function t3a(a){a=a|0;return J[a+264>>2]}function s3a(a){a=a|0;return J[a+268>>2]}function rJa(a){a=a|0;return J[a+216>>2]}function heb(a){a=a|0;return L[a+256>>1]}function Zsb(a){a=a|0;return(a<<1|a)&255}function Ysb(a){a=a|0;return P(a, -15)&255}function XDa(a){a=a|0;return!J[a+4>>2]|0}function Usb(a){a=a|0;return P(a,85)&255}function Tj(a,b){return $v(J[a+24>>2],b)}function Ssb(a){a=a|0;return P(a,17)&255}function P3a(a){a=a|0;return+O[a+128>>3]}function O3a(a){a=a|0;return J[a+140>>2]}function N3a(a){a=a|0;return J[a+144>>2]}function Msb(a){a=a|0;return a<<15&32768}function M3a(a){a=a|0;return J[a+148>>2]}function L3a(a){a=a|0;return J[a+152>>2]}function Jy(a,b,c){return Ky(a,b,c,-1,0)}function Jsb(a){a=a|0;return a<<14&49152}function Hsb(a){a= -a|0;return a<<12&61440}function GZa(a){a=a|0;return PB(a-8|0)|0}function EA(a,b){a=a|0;b=b|0;return b|0}function Dua(a){a=a|0;return J[a+100>>2]}function Cua(a){a=a|0;return J[a+104>>2]}function BOa(a){a=a|0;return J[a+128>>2]}function Ajb(a){a=a|0;I5(J[a>>2],a+28|0)}function AOa(a){a=a|0;return J[a+132>>2]}function A4a(a){a=a|0;return J[a+172>>2]}function yxb(a){a=a|0;return J[a+44>>2]}function pxb(a){a=a|0;return L[a+26>>1]}function ou(a,b,c){return Wp(255,a,b,c)}function o2(a){a=a|0;return J[a+ -168>>2]}function l2(a){a=a|0;return J[a+136>>2]}function kF(a,b,c){return mF(a,b,c,0,0)}function k5a(a){a=a|0;return+O[a+48>>3]}function jxb(a){a=a|0;return K[a+348|0]}function fMa(a){a=a|0;return J[a+60>>2]}function dR(a,b,c){Il(a,2147483647,b,c)}function bQ(a,b){a=a|0;b=b|0;kQ(a,1,45)}function aQ(a,b){a=a|0;b=b|0;RE(a,1,45)}function Vsb(a){a=a|0;return P(a,5)&255}function TN(a){a=a|0;return J[a+364>>2]}function Qsb(a){a=a|0;return P(a,257)|0}function OTa(a){a=a|0;return J[a+32>>2]}function LJ(a, -b,c){return Dw(a,b,0,0,c)}function L1(a,b){a=a|0;b=+b;O[a+8>>3]=b}function Iwb(a){a=a|0;return K[a+492|0]}function Fua(a){a=a|0;return J[a+92>>2]}function Eya(a,b){a=a|0;b=b|0;EU(a,b,1)}function Eua(a){a=a|0;return J[a+96>>2]}function $xb(a){a=a|0;return J[a+68>>2]}function w9(a){a=a|0;return J[a+52>>2]}function um(a){a=a|0;return J[a+12>>2]}function ti(a){wc(J[a>>2],0,J[a+4>>2])}function sy(a){a=a|0;return 2147483647}function rC(a){a=a|0;return J[a+24>>2]}function mI(a,b){return $v(J[a>>2],b)}function ge(a, -b){J[a+168>>2]=b;vM(a,1)}function aYa(a){a=a|0;gc[J[659451]](a)}function _Ea(a){a=a|0;Uf(a+12|0);qc(a)}function UA(a,b){a=a|0;b=b|0;J[b>>2]=0}function Rk(a,b){return JR(-100,a,b,0)}function R7(a){a=a|0;return J[a+48>>2]}function Qjb(a,b){a=a|0;b=b|0;return 7}function QN(a){a=a|0;return J[a+20>>2]}function Pn(a){a=a|0;return J[a+16>>2]}function Ol(a){return $S(a,J[a+72>>2])}function DA(a){a=a|0;return J[a+28>>2]}function Cwa(a,b,c){a=a|0;b=b|0;c=Q(c)}function AE(a,b){a=a|0;b=b|0;CE(a,b,0)}function xu(a, -b){a=a|0;b=b|0;return-1}function sib(a){a=a|0;fh(a,J[a+8>>2])}function pT(){Hi(2383375);J[694678]=0}function nz(a){a=J[a>>2];if(a)qc(a)}function jWa(a,b){a=a|0;b=b|0;fB(a,b)}function jE(a,b){a=a|0;b=b|0;ra();B()}function dea(a){a=a|0;return H[a+8|0]}function bz(a,b){a=a|0;b=b|0;return 1}function bn(a,b,c){return tf(a,b,c,0)}function bea(a){a=a|0;return H[a+9|0]}function Ux(a){a=a|0;return J[a+8>>2]}function RUa(a,b){a=a|0;b=b|0;ew(a,b)}function QO(a,b){a=a|0;b=b|0;ra();B()}function Psb(a){a=a|0;return a<< -1&254}function Osb(a){a=a|0;return a<<3&248}function Nsb(a){a=a|0;return a<<7&128}function Lsb(a){a=a|0;return a<<2&252}function LC(a){a=a|0;return bd(1,a)|0}function Ksb(a){a=a|0;return a<<6&192}function Isb(a){a=a|0;return a<<4&240}function Ho(a){a=a|0;return J[a+4>>2]}function Ee(a,b){a=a|0;b=b|0;return 0}function $Ha(a,b){a=a|0;b=+b;return 1}function yua(a){a=a|0;return 2411764}function uja(a){a=a|0;return ks(a)|0}function t9a(a){a=a|0;Yw(J[a+16>>2])}function nia(a){a=a|0;return rc(a)|0}function mWa(a, -b,c){a=a|0;b=b|0;c=+c}function goa(a){a=a|0;return J[a>>2]}function dhb(a){a=a|0;return a+100|0}function chb(a){a=a|0;return a+112|0}function bhb(a){a=a|0;return a+140|0}function _4a(a){a=a|0;lD(334620);B()}function Zh(a,b,c){a=a|0;b=b|0;c=c|0}function Xsb(a){a=a|0;return 0-a&255}function EX(a,b){a=a|0;b=b|0;rd(a,b)}function Bua(a){a=a|0;return 2378639}function Beb(a){a=a|0;ne(J[a+24>>2])}function xib(a){a=a|0;pl(46357);B()}function vQ(a){a=a|0;return tE(a)|0}function st(a){a=a|0;pl(816124);B()}function qt(a){a= -a|0;pl(841504);B()}function kj(a){a=a|0;pl(226893);B()}function jF(a,b,c){mF(a,b,c,6520,0)}function gMa(a){a=a|0;return a+16|0}function g6(a,b,c){return Wc(a,b,c)}function e0(a,b){return tf(a,b,0,0)}function d$a(a){a=a|0;return 733344}function ax(a){a=a|0;lD(340680);B()}function _j(a){a=a|0;pl(340392);B()}function ZP(a){return Hm(a,2782128)}function YP(a){return Hm(a,2782120)}function WZ(a){a=a|0;return Yg(a)|0}function W2(a){a=a|0;pl(340693);B()}function VP(a){return Hm(a,2782144)}function V$(a, -b){return vw(a,b,0,1)}function UP(a){return Hm(a,2782136)}function SR(a){Yy(J[a+8>>2]);qc(a)}function J2a(a){a=a|0;return a+28|0}function Hgb(a,b){a=a|0;b=b|0;qc(a)}function Gp(a){a=a|0;pl(334780);B()}function G8a(a){a=a|0;return a+52|0}function FZa(a){a=a|0;qc(PB(a-8|0))}function EV(a){a=a|0;return ed(a)|0}function mr(a){a=a|0;lD(12940);B()}function fca(a){a=a|0;return 17751}function eca(a){a=a|0;return 11042}function dYa(a){a=a|0;if(a)a0(a)}function Ok(a,b){a=a|0;b=b|0;Se(a)}function Id(a){a=a| -0;pl(12940);B()}function G8(a){a=a|0;return a+72|0}function B5(a,b){a=a|0;b=b|0;qc(b)}function zva(a){a=a|0;sc(2760168)}function xda(a){a=a|0;ad(2782428)}function vda(a){a=a|0;Ze(2782444)}function uAa(a){a=a|0;sc(2759500)}function tda(a){a=a|0;ad(2782460)}function tAa(a){a=a|0;sc(2759512)}function rda(a){a=a|0;Ze(2782476)}function qea(a){a=a|0;RP(a);qc(a)}function pxa(a){a=a|0;$c(2759552)}function ph(a){a=a|0;pl(4758);B()}function p2a(a){a=a|0;ve(a);qc(a)}function nD(a){a=a|0;lD(4758);B()}function m5a(a){a= -a|0;B2(a);qc(a)}function l5a(a){a=a|0;z2(a);qc(a)}function kia(a){a=a|0;return 9589}function ija(a){a=a|0;Fy(a);qc(a)}function hL(a){a=a|0;return a+8|0}function gca(a){a=a|0;return 6596}function fva(a){a=a|0;sc(2760180)}function fea(a){a=a|0;zP(a);qc(a)}function f5a(a){a=a|0;w2(a);qc(a)}function eia(a){a=a|0;$E(a);qc(a)}function eea(a){a=a|0;yP(a);qc(a)}function dka(a){a=a|0;mk(a);qc(a)}function dca(a){a=a|0;return 2161}function Yia(a){a=a|0;Nh(a);qc(a)}function Wsa(a){a=a|0;Bd(2778680)}function Sea(a){a= -a|0;LP(a);qc(a)}function Pja(a){a=a|0;Aq(a);qc(a)}function Gsb(a){a=a|0;return a<<8}function Gda(a){a=a|0;ad(2782364)}function Gc(a){a=a|0;if(a)qc(a)}function Eia(a){a=a|0;fs(a);qc(a)}function Eda(a){a=a|0;Ze(2782380)}function D5a(a){a=a|0;ji(a);qc(a)}function Cva(a){a=a|0;sc(2760132)}function Cda(a){a=a|0;ad(2782396)}function Bva(a){a=a|0;sc(2760144)}function Ava(a){a=a|0;sc(2760156)}function Aea(a){a=a|0;IP(a);qc(a)}function Ada(a){a=a|0;Ze(2782412)}function A6(a){a=a|0;J[a+16>>2]=0}function $wb(a){a= -a|0;J[a+4>>2]=2}function ey(a){a=a|0;MO(a);qc(a)}function aF(a){a=a|0;tE(a);qc(a)}function _c(a){qc(J[J[a>>2]>>2])}function WO(a,b,c,d){RO(a,b,c,d)}function zka(a){a=a|0;qc(nS(a))}function z2a(a){a=a|0;qc(kC(a))}function yn(a){return Mg(a,0,0)}function xCa(a){a=a|0;qc(wV(a))}function wKa(a){a=a|0;qc(nY(a))}function vGa(a){a=a|0;qc(sW(a))}function tzb(a){a=a|0;return 12}function ty(a){a=a|0;return 127}function tka(a){a=a|0;qc(kS(a))}function tg(a){a=a|0;return a|0}function tSa(a){a=a|0;qc(GZ(a))}function oka(a){a= -a|0;qc(dS(a))}function nMa(a){a=a|0;qc(wY(a))}function lVa(a){a=a|0;qc(pt(a))}function kJa(a){a=a|0;qc(OX(a))}function jOa(a){a=a|0;qc(QY(a))}function exa(a){a=a|0;qc(kU(a))}function eqa(a){a=a|0;qc(qT(a))}function dCa(a){a=a|0;qc(oV(a))}function cza(a){a=a|0;qc(KU(a))}function cDa(a){a=a|0;qc(TG(a))}function bza(a){a=a|0;qc(JU(a))}function bOa(a){a=a|0;qc(PY(a))}function Zm(a,b){return Oj(a,b)}function Wbb(a){a=a|0;qc(S3(a))}function WCa(a){a=a|0;qc(FV(a))}function Uya(a){a=a|0;Tl(IU(a))}function Uwa(a){a= -a|0;qc(gU(a))}function UZa(a){a=a|0;qc(w0(a))}function U8a(){return J[689330]}function R4a(a){a=a|0;qc(Tw(a))}function PIa(a){a=a|0;qc(GX(a))}function Nka(a){a=a|0;qc(tS(a))}function Njb(a){a=a|0;qc(so(a))}function Khb(a){a=a|0;qc(e5(a))}function Kh(a,b){return Vd(a,b)}function HZa(a){a=a|0;qc(PB(a))}function H4a(a){a=a|0;qc(Qw(a))}function H3a(a){a=a|0;qc(i2(a))}function FQa(a){a=a|0;qc(sZ(a))}function FKa(a){a=a|0;qc(qY(a))}function FIa(a){a=a|0;FX(a-4|0)}function Eza(a){a=a|0;Tl(QU(a))}function DTa(a){a= -a|0;qc(u_(a))}function Cm(a,b,c){Zc(a,b,c<<2)}function BUa(a){a=a|0;qc(D_(a))}function AQa(a){a=a|0;qc(rZ(a))}function xP(a){a=a|0;qc(NE(a))}function vca(){QO(29435,0);B()}function rf(a,b){Xr(a,b,Ve(b))}function gF(a){a=a|0;qc(Dy(a))}function eF(a){a=a|0;qc(Cy(a))}function d0(a,b,c){Ft(a,b,c,0)}function _Q(){return($b()|0)>0}function YI(a){a=a|0;qc(lh(a))}function Xv(a){a=a|0;return 10}function NG(a){a=a|0;qc(ed(a))}function L_(a){a=a|0;qc(em(a))}function DQ(a){a=a|0;qc(gC(a))}function CQ(a){a=a| -0;qc(hC(a))}function se(a){a=a|0;return 1}function sX(){pl(2171905);B()}function kA(){return ye(1,36)}function i0(a){return Bw(a,0)}function hp(a){a=a|0;return 3}function hI(a){a=a|0;return 5}function gI(a){a=a|0;return 6}function fI(a){a=a|0;return 7}function eI(a){a=a|0;return 8}function dB(a){a=a|0;return 9}function aia(){return 2614740}function Zn(a){a=a|0;return 2}function Yn(a){a=a|0;return 4}function Wv(a){a=a|0;return-1}function Wf(a){return Mu(a,0)}function Rd(a){a=a|0;return 0}function Pu(a){return To(1, -a)}function Kja(){return 2778924}function AQ(a){return zQ(a,1)}function $ha(){return 2616288}function bB(a,b,c){Xg(a,b,c)}function S2(){pl(334620);B()}function O9(a,b){tc(b,a,104)}function Ne(a,b,c){tc(a,b,c)}function NP(a){pP(a,J[a>>2])}function Jd(a,b){a=a|0;b=b|0}function Hg(a,b,c){wc(a,b,c)}function Dm(a,b,c){Zc(a,b,c)}function w9a(a){a=a|0;qr(a)}function kja(a){a=a|0;cc=a}function cca(){return bc|0}function bca(a){a=a|0;bc=a}function Xd(a){a=a|0;qc(a)}function Le(a,b){wc(a,0,b)}function bv(a){cv(a+ -72|0)}function C$(a){fo(a,3178)}function sf(a,b){ky(a,b)}function Yh(a){a=a|0;B()}function Fu(a,b){vP(a,b)}function Lva(){Ia();B()}function CGa(){return 0}function SQ(a){zy(a,0)}function Ae(a){ih(a,0)}function Uf(a){$E(a)}function Bf(a){a=a|0}function Nfa(){JP()}function Z6(){}e=K;p(q);var gc=c([null,Mlb,Hwb,n2a,rc,qf,Ho,rta,xlb,Azb,Do,Gwb,Pra,waa,qE,Re,Gmb,D1,azb,KD,aza,E1,mxb,dwa,wlb,mj,tn,nia,m2a,tfb,um,Dj,tg,v6a,MO,_Xa,yEa,p5a,hA,C1,f2a,D1,l2a,j2a,i2a,YJa,m2,s1,uN,WC,HL,EAa,Omb,Jmb,smb,Jua,Oba, -Xd,Bba,df,Jp,wvb,Bf,Zeb,dvb,Tub,Iub,Cub,tub,iub,sL,Ndb,Edb,eq,nxb,jxb,W3,pcb,mi,wm,TN,fq,Yp,gN,QN,w9,fcb,jdb,ef,Ir,Xd,Vk,ff,sL,DYa,Pn,wYa,vYa,xYa,nYa,zyb,mYa,kYa,CYa,uO,fba,cq,G8,iE,mMa,qd,dIa,CLa,GGa,jmb,$Ia,imb,bMa,fN,Q7,_p,qrb,kW,Jk,DGa,xGa,RN,_tb,Cl,ULa,hh,MLa,Vza,Gza,Sya,hmb,gmb,pxb,zza,yxb,UN,HG,DG,ZU,dN,R7,ug,hN,Ik,nAa,Pza,tm,dAa,Gj,eob,vtb,Fo,QD,qN,lN,nO,$xb,oob,job,zob,sm,wsb,Onb,Hx,Xx,Bja,Zp,bu,Px,lj,Urb,ktb,ov,G6,B6,Mkb,Rd,eD,Ig,Zh,d6,G6,se,B6,Ewb,nE,Ho,Z9,Q5,_6,N5,Nyb,rO,Gjb,bjb,Qx,oxb, -Iwb,swb,y5,Hj,OL,Rwb,xib,Sd,n5,bxb,m9,Gx,Ej,bq,xmb,XN,K8,zhb,se,se,vhb,uhb,shb,jhb,Rd,ahb,Wgb,LC,Hgb,se,xgb,pgb,d6,eD,zxa,dqa,Joa,Wma,Fla,xka,Fja,xja,aja,Tha,Gga,kfa,Kda,Xca,Zba,tn,tn,tn,tn,tn,tn,tn,tn,tn,Pvb,Hvb,un,jnb,_mb,Imb,Hmb,Emb,cq,rmb,qmb,omb,mmb,kmb,Ig,plb,ilb,so,Njb,e5,Khb,Zh,Zh,Qfb,Ifb,yfb,sfb,hfb,Heb,zeb,teb,jeb,_db,Lcb,Acb,Wab,R3,Bab,tab,jab,$9a,Q9a,J9a,o9a,jL,$8a,V8a,O8a,H8a,E8a,F3,D3,n8a,Xw,W7a,Bf,O7a,B7a,q7a,k7a,j7a,d7a,Z6a,Q6a,G6a,u6a,Bf,l6a,b6a,L5a,E5a,B5a,y5a,t5a,Bf,o5a,j5a,a5a, -Z4a,U4a,M4a,F4a,v4a,k4a,b4a,S3a,J3a,F3a,u3a,o3a,d3a,X2a,$_a,g$a,p$a,x$a,H$a,S$a,$$a,R_a,K_a,D_a,B_a,v_a,t_a,q_a,n_a,e_a,_Za,VZa,NZa,EZa,CZa,BZa,yZa,rZa,oZa,mZa,gZa,bZa,WYa,SYa,Y_a,P2a,N2a,E2a,y2a,x2a,w2a,o2a,h2a,_1a,U1a,O1a,H1a,A1a,q1a,i1a,Z0a,T0a,J0a,Rd,C0a,cYa,bYa,$Xa,Bf,ZXa,YXa,XXa,UXa,OXa,IXa,sXa,kXa,$Wa,QWa,IWa,yWa,nWa,SVa,Bf,OVa,GVa,xVa,pVa,hVa,bVa,SUa,IUa,CUa,sUa,KPa,VPa,eQa,lQa,sQa,wQa,GQa,nPa,fPa,ZOa,QOa,JOa,GOa,EOa,COa,vOa,pOa,mOa,fOa,_Na,WNa,PNa,KNa,DNa,uNa,jNa,_Ma,UMa,RMa,JMa,NQa,zMa, -uMa,yPa,kUa,fUa,z_,RTa,ITa,CTa,zTa,xTa,wTa,mTa,iTa,eTa,$Sa,YSa,USa,QSa,PSa,MSa,IRa,yRa,nRa,xZ,WQa,OQa,i0a,MYa,FYa,sY,eJa,ra,xKa,gIa,gg,IIa,EX,Iw,Yc,rd,ft,JGa,$Ba,TBa,KBa,ABa,tBa,$ya,iza,Vva,Rva,Zh,Nla,_la,Vla,Qla,cva,Tua,Iua,xua,nua,fua,bua,Yta,Mta,Gta,yta,qta,jta,ata,Usa,Nsa,Fsa,vsa,osa,Zra,Ora,Gra,Ara,qra,hra,Zqa,Rqa,Iqa,xqa,mqa,cqa,Upa,Kpa,zpa,ppa,jpa,Zh,Ig,RS,Lka,Rka,Yka,bz,se,pna,Aoa,Bf,Gka,cla,lla,rla,vja,Zh,oja,nja,lja,jja,gja,cja,$ia,Wia,Qia,Kia,yia,pia,mia,fia,_ha,Sha,Nha,Iha,rha,oha,fha, -aha,Vga,Nga,Fga,yga,sga,oga,hga,Gfa,vfa,jfa,Fea,xea,oea,_ea,gea,cea,Uda,Jda,yda,qda,pda,mda,yca,fda,dda,ada,Kca,Yba,Xba,Wba,Vba,Uba,Tba,Sba,Rba,Qba,Pba,Nba,Mba,Lba,Kba,Bf,Jba,Iba,Hba,Bf,Zbb,Fba,Eba,Dba,Cba,Aba,zba,yba,xba,wba,vba,uba,tba,sba,nba,Bf,rba,qba,pba,oba,gba,mba,lba,kba,jba,iba,hba,cx,IJ,AYa,fYa,sL,eba,dba,bba,$aa,Zaa,Yaa,tO,Xaa,Waa,Uaa,Taa,Saa,Raa,Paa,Oaa,Naa,Maa,Laa,Jaa,Iaa,Haa,Gaa,Faa,Eaa,Daa,Caa,Baa,Aaa,zaa,yaa,xaa,vaa,uaa,taa,saa,raa,qaa,paa,oaa,naa,maa,laa,kaa,jaa,iaa,haa,gaa,Rfa, -Vaa,_aa,aba,cba,Gba,_ba,Pca,Eca,Vea,ida,wja,Kaa,rja,Zyb,_yb,$yb,Xyb,Wyb,Yyb,Uyb,Tyb,Vyb,Ryb,Qyb,Syb,Oyb,Myb,Pyb,qyb,x9,r9,gxb,exb,fxb,cxb,axb,dxb,Cu,bzb,faa,eaa,daa,caa,baa,aaa,$9,_9,Y9,X9,V9,jE,zzb,yzb,xzb,wzb,vzb,uzb,tzb,szb,rzb,jE,qzb,pzb,ozb,nzb,U9,mzb,lzb,kzb,jzb,izb,T9,jE,hzb,gzb,fzb,S9,T9,jE,ezb,dzb,czb,S9,Lyb,Kyb,Jyb,Iyb,Hyb,Gyb,G9,Fyb,Eyb,Dyb,Cyb,Byb,Ayb,yyb,xyb,xu,wyb,F9,vyb,xu,uyb,G9,tyb,syb,ryb,pyb,oyb,nyb,myb,lyb,kyb,jyb,Bf,iyb,hyb,gyb,Bf,fyb,eyb,dyb,cyb,byb,ayb,fE,_xb,Zxb,Yxb,F9,Xxb, -Wxb,Vxb,V9,Uxb,Txb,Sxb,Rxb,Tx,fE,z9,Qxb,y9,fE,z9,Pxb,y9,Oxb,Nxb,Mxb,Lxb,Kxb,Jxb,fE,Ixb,Hxb,Gxb,U9,Fxb,Exb,Dxb,Cxb,Bxb,Axb,zxb,xxb,wxb,vxb,uxb,txb,sxb,rxb,Ee,Ee,qxb,lxb,kxb,ixb,hxb,pwb,Q8,P8,O8,M8,Fwb,$wb,_wb,Zwb,U8,Ywb,Xwb,Wwb,Vwb,Uwb,Twb,Swb,Qwb,Pwb,Owb,Nwb,Mwb,Lwb,Kwb,Jwb,Dwb,Cwb,Bwb,Awb,qwb,ywb,zwb,xwb,wwb,vwb,uwb,rwb,owb,nwb,Ig,mwb,fwb,kwb,lwb,jwb,iwb,hwb,gwb,QN,I8,XD,Wqb,Vqb,Uqb,u8,uqb,t8,Tqb,Sqb,Rqb,tqb,sqb,rqb,u8,Qqb,t8,Pqb,Oqb,s8,qqb,r8,pqb,oqb,s8,Nqb,r8,Mqb,Lqb,nqb,mqb,lqb,kqb,jqb,Lsb,Ksb, -Jsb,Isb,Hsb,Gsb,Vsb,Usb,Tsb,Ssb,Rsb,Qsb,Esb,Fsb,Csb,Dsb,Bsb,zsb,Asb,ysb,vsb,xsb,usb,tsb,rsb,ssb,qsb,psb,nsb,osb,msb,ksb,lsb,isb,jsb,hsb,yub,zub,C8,C8,ewb,dwb,cwb,bwb,awb,$vb,_vb,aq,Zvb,vN,Yvb,Lr,Xvb,F8,Wvb,aq,Vvb,Uvb,E8,aq,Tvb,vN,Svb,Kr,Rvb,$p,Qvb,Kr,Ovb,vN,Nvb,VD,Mvb,UD,Lvb,aq,Ee,Kr,Kvb,tN,Jvb,Ivb,Gvb,$p,Fvb,Lr,Evb,tN,Dvb,tN,Cvb,Bvb,Avb,$p,zvb,yvb,xvb,vvb,tvb,uvb,Dc,Bf,qvb,Bf,svb,Rd,Bf,qdb,Adb,Ubb,Jbb,rvb,gsb,fub,B8,fsb,eub,A8,esb,dub,z8,dsb,x8,y8,csb,cub,Fub,bsb,bub,Eub,asb,aub,Dub,$rb,$tb,B8,_rb, -Ztb,A8,Zrb,Ytb,z8,Yrb,x8,y8,Xrb,Xtb,Bub,Wrb,Wtb,Aub,v8,Vtb,v8,Utb,qub,lub,pub,kub,oub,jub,nub,hub,mub,gub,Mub,Nub,Kub,Lub,Jub,Gub,Hub,Vub,Wub,Sub,Rub,Qub,Pub,Oub,Xub,pvb,kvb,ovb,nvb,mvb,lvb,jvb,ivb,hvb,gvb,fvb,evb,bvb,$ub,cvb,avb,_ub,Zub,Yub,mtb,wtb,utb,ttb,ltb,htb,stb,rtb,jtb,gtb,etb,qtb,otb,ptb,ntb,atb,btb,_sb,Ttb,Stb,Rtb,Qtb,Ptb,Otb,Ntb,Ltb,Mtb,Jtb,Itb,Ktb,Htb,Gtb,Dtb,Ftb,Ctb,Etb,Btb,Vrb,Trb,Srb,Rrb,Qrb,Prb,Orb,Nrb,Mrb,Lrb,Krb,Jrb,Irb,Hrb,Grb,Frb,Erb,Drb,Crb,Brb,Arb,zrb,yrb,xrb,wrb,vrb,urb,trb, -srb,rrb,Hf,xub,wub,vub,uub,prb,orb,nrb,mrb,lrb,sub,rub,bqb,cqb,hqb,iqb,fqb,gqb,dqb,eqb,mob,krb,jrb,irb,Kqb,Jqb,Iqb,hrb,grb,frb,Hqb,Gqb,Fqb,erb,drb,crb,brb,arb,Eqb,Dqb,Cqb,Bqb,Aqb,$qb,_qb,Zqb,Yqb,Xqb,zqb,yqb,xqb,wqb,vqb,Psb,Osb,Nsb,Msb,Zsb,Ysb,Xsb,Wsb,vn,F8,cpb,nob,Kmb,Co,VD,Bpb,Hob,lnb,HD,M7,Fpb,Lob,pnb,HD,M7,ypb,Eob,hnb,Ix,UD,Epb,Kob,onb,Xp,Pnb,fpb,rob,Nmb,JD,N7,Gpb,Mob,qnb,Ix,UD,lpb,vob,Vmb,vn,Vnb,Cpb,Iob,mnb,vn,Qnb,gpb,sob,Qmb,ID,aq,Hpb,Nob,rnb,hob,Unb,Apb,Gob,knb,Co,bN,_pb,eN,Knb,qu,Lr,Zpb,Kx, -Jnb,Xp,$p,aqb,bpb,Mnb,qu,Lr,hpb,Kx,Rmb,qu,Lr,jpb,Kx,Tmb,Co,bN,opb,eN,Ymb,Co,bN,npb,eN,Xmb,Xp,$p,ppb,wob,Zmb,qu,Lr,mpb,Kx,Wmb,O7,Xnb,Ipb,Oob,snb,Ix,UD,dpb,pob,Lmb,qu,Lr,Jpb,Kx,tnb,O7,Ynb,Kpb,Pob,unb,Xp,$p,zpb,Fob,inb,vn,Nnb,epb,qob,Mmb,Ix,Wnb,Dpb,Job,nnb,lob,fob,$pb,apb,Lnb,gob,Rnb,ipb,tob,Smb,ID,aq,kpb,uob,Umb,Co,Tnb,vpb,Bob,enb,vn,L7,upb,P7,dnb,vn,Kr,xpb,Dob,gnb,Co,VD,wpb,Cob,fnb,Co,VD,Qpb,Uob,Anb,JD,N7,Wpb,Zob,Gnb,Co,Snb,tpb,yob,cnb,ID,aq,spb,xob,bnb,vn,Kr,Xpb,_ob,Hnb,iob,Znb,Mpb,Rob,wnb,HD,cob, -Vpb,Yob,Enb,JD,$nb,Rpb,Vob,Bnb,vn,L7,rpb,P7,anb,Xp,$p,qpb,S7,$mb,Xp,$p,Ppb,S7,znb,vn,Kr,Opb,Tob,ynb,HD,_nb,Npb,Sob,xnb,ID,aq,U7,Upb,Fnb,Xp,bob,Tpb,Xob,Dnb,vn,Kr,Lpb,Qob,vnb,kob,dob,Ypb,$ob,Inb,Ix,aob,Spb,Wob,Cnb,Atb,ztb,ytb,xtb,itb,ftb,dtb,ctb,wd,ED,q2a,kj,jj,kj,lmb,VM,umb,zmb,Fmb,ymb,Cx,tmb,wmb,Dmb,DD,Bmb,CD,MM,pmb,Ao,Cmb,J7,BD,zo,AD,Amb,wf,uf,ck,vmb,zc,qc,mm,_w,JIa,JDa,wGa,Id,vIa,wIa,lm,Ooa,qIa,Df,yf,U8a,Nna,Rna,Qna,Ona,kr,jf,Xlb,Clb,nD,zlb,klb,clb,Ykb,Xkb,Wkb,tM,Okb,Wjb,Vjb,Ujb,Tjb,Sjb,Rjb,Kjb, -Jjb,j6,qjb,pjb,ojb,njb,mjb,ljb,kjb,jjb,r0a,B5,Z6,Ojb,Z6,vM,ajb,$ib,aib,$hb,_hb,Zhb,f5,Dhb,thb,qhb,phb,ohb,nhb,mhb,lhb,FL,khb,ihb,hhb,ghb,fhb,Zgb,Qgb,Pgb,Ogb,Ngb,Bf,Mgb,Lgb,Zh,Kgb,Jgb,Nfb,Efb,Dfb,K4,K4,y4,y4,Oeb,Neb,Meb,Leb,Keb,Feb,Eeb,Deb,Ceb,Beb,Hdb,ueb,peb,oeb,neb,meb,leb,keb,ieb,heb,geb,feb,eeb,deb,ceb,beb,aeb,$db,Zdb,Ydb,Xdb,Wdb,Vdb,Udb,Tdb,Sdb,Rdb,Qdb,Kdb,Bdb,rdb,f5,U3,ylb,W6,U6,T6,S6,vlb,ulb,rlb,qlb,olb,nlb,mlb,tlb,W6,U6,T6,slb,llb,jlb,Bf,hlb,glb,flb,elb,dlb,nM,blb,alb,$kb,_kb,Zkb,Vkb,C6,Ukb, -Tkb,Skb,A6,Rkb,Qkb,Pkb,mM,Nkb,Lkb,lM,Bf,Kkb,Jkb,Ikb,Hkb,Gkb,Fkb,u6,Ekb,t6,Dkb,Ckb,s6,Bkb,Akb,zkb,ykb,xkb,wkb,vkb,ukb,tkb,skb,rkb,qkb,pkb,okb,nkb,mkb,lkb,kkb,jkb,ikb,hkb,gkb,Mjb,Ljb,fkb,q6,ekb,dkb,o6,ckb,bkb,akb,$jb,_jb,Zjb,Yjb,Xjb,Ijb,Hjb,_L,Fjb,Ejb,Djb,Cjb,ZL,YL,Bjb,Ajb,zjb,yjb,xjb,wjb,vjb,ujb,tjb,sjb,A5,Zh,Ig,ijb,z5,hjb,gjb,x5,w5,v5,fjb,ejb,djb,cjb,Rd,Bf,_ib,Zib,QC,Yib,Xib,Wib,Vib,Uib,Tib,Sib,Rib,A6,Qib,Pib,Oib,C6,Nib,Mib,Lib,Kib,Jib,Iib,Hib,Gib,Fib,Eib,q5,Dib,Cib,Bib,Aib,zib,yib,wib,vib,uib,tib, -Bf,sib,LL,rib,qib,pib,oib,nib,Lp,mib,l5,lib,kib,IL,jib,IL,k5,iib,hib,gib,fib,h5,eib,dib,cib,bib,Yhb,Xhb,Whb,Ohb,Nhb,Mhb,Lhb,Jhb,Ihb,Hhb,Ghb,Fhb,Ehb,mM,Chb,Bhb,Vhb,IL,k5,Uhb,Thb,Shb,Rhb,h5,Qhb,Phb,Ahb,yhb,xhb,whb,dhb,chb,bhb,rhb,ehb,Q4,_gb,Ygb,Xgb,Vgb,Ugb,$gb,A5,Zh,Ig,Tgb,z5,Sgb,Rgb,x5,w5,v5,xfb,vfb,ufb,rfb,Igb,Jfb,qfb,pfb,ofb,nfb,mfb,lfb,kfb,jfb,ifb,gfb,ffb,efb,dfb,JC,cfb,bfb,afb,$eb,_eb,Yeb,Xeb,Web,Veb,Ueb,Teb,Seb,w4,Reb,Qeb,Peb,om,Cfb,Ggb,Egb,Dgb,Fgb,Cgb,Agb,zgb,Bgb,ygb,wgb,ugb,tgb,vgb,sgb,qgb, -ogb,rgb,ngb,lgb,kgb,mgb,jgb,hgb,ggb,igb,fgb,G4,dgb,cgb,egb,bgb,G4,$fb,_fb,agb,Zfb,Xfb,Yfb,Ee,Vfb,Tfb,Sfb,Rfb,Pfb,Ofb,Wfb,Ufb,Mfb,mM,Lfb,Kfb,Hfb,Gfb,Ffb,Bfb,Afb,zfb,DL,wfb,Jeb,Bf,Ieb,Geb,Aeb,yeb,xeb,web,veb,t6,seb,reb,qeb,Pdb,Odb,$t,vL,Mdb,t4,Ldb,r4,Jdb,Idb,s4,FC,Gdb,Fdb,lM,Bf,Ddb,Cdb,zdb,ydb,xdb,wdb,vdb,udb,tdb,sdb,pdb,odb,TN,a4,ndb,$3,_3,se,Z3,mdb,ldb,kdb,Y3,X3,idb,hdb,gdb,fdb,edb,ddb,cdb,fx,bdb,adb,$cb,_cb,Zcb,Ycb,Xcb,Wcb,Vcb,Ucb,lM,Bf,Tcb,Scb,Rcb,Qcb,Pcb,Ocb,u6,Ncb,Mcb,Kcb,Jcb,Icb,Hcb,Gcb,Fcb, -Ecb,Dcb,Ccb,Jd,Bcb,Bf,zcb,ycb,xcb,wcb,vcb,ucb,tcb,scb,rcb,qcb,a4,ocb,TN,$3,_3,se,Z3,ncb,mcb,lcb,kcb,jcb,icb,hcb,gcb,ecb,dcb,ccb,bcb,acb,$bb,o6a,h6a,T2,_5a,$5a,nL,Xr,mo,E4a,iab,tg,GK,Koa,twb,nmb,Cab,WZa,zPa,$sb,G5a,Pn,Ho,Ux,um,nm,Qaa,Y8a,M2,cL,Yw,G8a,or,I8a,R2,bL,AC,zC,Zw,Vt,qC,Uw,f9a,g9a,e9a,_j,_j,_j,_bb,Ybb,Z8a,J4a,M2a,eL,xi,Y4a,Xe,BE,_ca,nl,I2,F8a,Vw,x8a,Ho,X5a,W5a,P2,Pn,Ck,sC,B8a,L1,L1,KK,D8a,P1,lr,O1,C8a,A8a,z8a,y8a,u8a,t8a,s8a,r8a,j8a,v2a,g8a,f8a,e8a,d8a,c8a,b8a,a8a,$7a,_7a,Bj,nr,a6a,B3,d6a, -c6a,q8a,m8a,Z7a,Y7a,X7a,Zj,gn,XK,I3,je,w8a,Cj,m6a,v8a,V7a,U7a,A2,uC,n5a,p8a,o8a,l8a,k8a,i8a,h8a,i7a,h7a,g7a,f7a,e7a,c7a,b7a,a7a,$6a,_6a,Y6a,X6a,W6a,V6a,U6a,T6a,S6a,R6a,K2,$w,T7a,S7a,dx,R7a,OR,zja,Q7a,P7a,O6a,W2,N6a,_j,_j,_j,M6a,L6a,N3,J8a,f6a,g6a,F5a,iC,IK,T5a,S5a,Ke,Uub,_7,w5a,v5a,u5a,Gp,S3,Wbb,Q3,P3,Qbb,Rd,Obb,Pbb,Mbb,Nbb,Lbb,Kbb,Ibb,Hbb,Gbb,Fbb,Ebb,Dbb,Cbb,Bbb,Abb,zbb,ybb,xbb,wbb,vbb,ubb,tbb,sbb,rbb,qbb,pbb,obb,nbb,mbb,lbb,kbb,jbb,ibb,hbb,gbb,fbb,ebb,dbb,cbb,bbb,abb,$ab,_ab,Zab,Yab,Uab,Tab,Xab, -Vab,Sab,Rab,Qab,Pab,Oab,Nab,Mab,Lab,Kab,Jab,Iab,Hab,Gab,Fab,Eab,Dab,Aab,zab,yab,xab,wab,I9a,vab,uab,sab,rab,qab,pab,oab,nab,mab,lab,kab,hab,gab,fab,eab,dab,cab,bab,aab,Br,H9a,Br,_9a,Z9a,Y9a,X9a,W9a,V9a,Ig,Ig,U9a,T9a,bz,EM,bz,bz,N9a,Vbb,Tbb,Sbb,um,G9a,Rbb,F9a,E9a,S9a,D9a,C9a,B9a,A9a,z9a,M9a,y9a,x9a,L9a,w9a,R9a,P9a,v9a,u9a,t9a,s9a,r9a,q9a,p9a,n9a,m9a,O9a,l9a,k9a,j9a,i9a,h9a,K9a,Xbb,d9a,ln,c9a,kn,b9a,a9a,_8a,X8a,W8a,hL,tg,Xd,Yh,vca,Yh,Yh,Yh,Yh,Yh,T8a,Yh,Yh,R8a,Q8a,P8a,N8a,M8a,L8a,K8a,A3,P6a,K6a,J6a, -I6a,H6a,F6a,E6a,D6a,C6a,B6a,A6a,z6a,y6a,x6a,w6a,t6a,s6a,r6a,q6a,p6a,tg,Xd,tg,Xd,n6a,k6a,j6a,i6a,V5a,U5a,e6a,ZK,Z5a,Y5a,R5a,Q5a,P5a,O5a,K5a,J5a,I5a,H5a,ji,D5a,tg,Xd,Bf,Bf,B2,m5a,z2,l5a,w2,f5a,tg,Xd,N7a,M7a,rM,L7a,K7a,J7a,I7a,H7a,G7a,F7a,E7a,D7a,C7a,A7a,z7a,y7a,x7a,w7a,v7a,u7a,t7a,s7a,r7a,p7a,o7a,n7a,m7a,l7a,j2,Mca,aP,HE,K4a,N4a,IE,Tt,p2,QL,Qjb,I4a,PL,v2,OK,f2,F1,g2,lC,X4a,W4a,V4a,T4a,Tw,R4a,Q4a,P4a,O4a,Qw,H4a,G4a,Q3a,L4a,D4a,C4a,A4a,o2,Ux,P3a,g4a,l2,h4a,O3a,N3a,M3a,L3a,K3a,Bf,B4a,z4a,y4a,x4a,w4a,u4a, -t4a,s4a,r4a,q4a,o4a,l4a,j4a,n2,n2,f4a,e4a,d4a,c4a,a4a,$3a,_3a,Z3a,W3a,Y3a,X3a,V3a,U3a,m4a,T3a,n4a,p4a,i4a,ox,R3a,St,iu,vo,G5,qn,rjb,H5,Pjb,$L,I3a,m3a,i2,H3a,C3a,B3a,A3a,w3a,v3a,t3a,s3a,n3a,h3a,g3a,y3a,x3a,f3a,z3a,G3a,E3a,D3a,r3a,q3a,p3a,e3a,c3a,l3a,k3a,j3a,i3a,b3a,a3a,$2a,$4a,Z2a,Id,hy,W2a,TK,Bm,c2a,r2a,Xe,U2a,T2a,Gp,mr,Du,ph,X5,ky,Sc,nd,mg,j6,Xna,Wna,T3,V2a,$1,a2,a2a,_1,V1a,W1a,W1,Y2a,S4a,S8a,X1,Z1,b2a,dP,_2a,S2a,L2a,K2a,J2a,G8,hL,I2a,H2a,G2a,F2a,B2a,A2a,D2a,C2a,kC,z2a,hL,Q2a,R2a,O2a,t2a,dia,Gia, -Iia,Hia,Zia,Fia,zy,Wr,Ep,Aja,Yy,u2a,ve,p2a,rF,$1a,A1,K1a,L1a,J1a,x1a,w1a,I1a,Bf,Gf,G1a,s1a,U0,Si,Kt,B1a,E1a,t1a,r1a,D1a,C1a,F1a,Z_a,v1a,Ih,z1a,y1a,u1a,__a,Wh,p1a,o1a,n1a,xK,h1,m1a,l1a,k1a,j1a,h1a,g1a,f1a,e1a,d1a,c1a,b1a,a1a,$0a,_0a,Y0a,X0a,f1,e1,vK,W0a,V0a,U0a,a$a,f1,e1,tK,O0a,P0a,N0a,S0a,d1,uK,R0a,Q0a,K0a,I0a,M0a,L0a,H0a,G0a,b$a,Mw,c1,F0a,E0a,D0a,sK,b1,B0a,A0a,z0a,y0a,d1,x0a,w0a,v0a,u0a,t0a,s0a,q0a,p0a,o0a,n0a,rK,m0a,l0a,k0a,j0a,h0a,g0a,f0a,e0a,d0a,c0a,b0a,a0a,$0,_$a,Z$a,Y$a,X$a,W$a,V$a,U$a,T$a, -R$a,Q$a,P$a,O$a,N$a,M$a,L$a,K$a,J$a,I$a,G$a,F$a,E$a,D$a,C$a,Z0,B$a,A$a,z$a,y$a,w$a,v$a,u$a,t$a,Z0,s$a,r$a,q$a,o$a,n$a,m$a,l$a,k$a,j$a,i$a,h$a,W0,Jd,f$a,e$a,d$a,c$a,O_a,V_a,UB,Q_a,N_a,B1,P_a,Q0,M_a,Z1a,C_a,Q1a,X1a,Y1a,K0,e2a,M0,L_a,J_a,G_a,F_a,I_a,H_a,E_a,A_a,Ee,z_a,y_a,x_a,w_a,u_a,p_a,B5,G0,s_a,r_a,cP,Wca,Tna,Vna,vJ,Zq,gm,_q,Bt,rw,sw,o_a,tg,Xd,Q3,P3,l_a,k_a,ZZa,YZa,m_a,DZa,xJ,At,wJ,QZa,Tt,MZa,SZa,TZa,JZa,XZa,w0,UZa,PB,HZa,GZa,FZa,lZa,kZa,jZa,iZa,Uy,Zh,xZa,wZa,o0,vZa,uZa,tZa,AZa,zZa,sZa,qZa,pZa,HYa, -GYa,EYa,se,Ig,Ig,UYa,VYa,LYa,hZa,OYa,KB,cZa,dZa,eZa,fZa,_Ya,$Ya,RJ,NYa,RYa,TYa,XYa,YYa,Jd,ZYa,aZa,PYa,QYa,zYa,yYa,Zh,BYa,nZa,uYa,tYa,sYa,rYa,qYa,pYa,oYa,Vd,$e,Rd,KYa,JYa,IYa,tB,tJ,lYa,G$,jYa,iYa,hYa,gYa,eYa,Ee,dYa,aYa,b$,tTa,uTa,rTa,vTa,yTa,Y_,pJa,Ob,Nb,uja,zh,SXa,s5a,r5a,Bf,q5a,PXa,T_,S_,uC,hWa,RXa,Bc,T1a,uc,W_,hf,mUa,IQa,uXa,TXa,gJ,rXa,x_,qXa,TTa,CQa,LTa,xQa,OTa,NTa,MTa,al,$n,TSa,DQa,tXa,U_,PQa,cXa,$l,Rf,bXa,TA,_Wa,lt,jZ,Oq,XWa,CC,kL,VWa,nQa,Ov,Oq,UWa,M3,lL,NWa,MWa,LWa,KWa,IOa,iWa,NXa,Zca,Q_,DE, -HXa,BWa,g5a,e5a,d5a,c5a,SLa,RLa,HA,QLa,qQa,LOa,PLa,dZ,KOa,zh,fA,WLa,UH,ZZ,_Z,Ni,jr,Ef,Mc,VVa,T_a,UVa,ax,sTa,m_,aJ,FI,QVa,ESa,GE,FE,lTa,PVa,Ce,qt,ip,oTa,nTa,IVa,kTa,LVa,KVa,JNa,wMa,uQa,HVa,CVa,BVa,ph,h_a,g_a,z0,vi,b_a,rVa,Ri,Qg,d_a,Gh,qVa,$Za,qt,b5a,rt,sd,id,jg,qTa,pTa,K_,RVa,NVa,MVa,JVa,FVa,EVa,qt,Uca,nVa,mVa,H_,Wm,ZI,jVa,iVa,TVa,qt,fVa,eVa,fTa,l_,g_,Xe,nUa,jUa,Tt,lUa,Gc,iUa,STa,ATa,JTa,kh,qJa,Wn,bTa,_Sa,xMa,AMa,yMa,xNa,vd,VSa,pMa,WZ,eD,xI,WZ,OSa,DSa,CSa,BSa,ASa,uSa,FOa,QQa,Iv,HOa,Zl,MQa,LQa,eD,dm, -KQa,xc,HQa,KTa,FTa,ETa,v_,BTa,rC,Md,TMa,RA,zOa,yOa,WSa,JQa,wOa,SSa,ot,zd,Dh,XSa,xOa,SZ,Nd,kp,pZ,tQa,fZ,TOa,aZ,VMa,UX,RSa,PZ,PZ,nJa,mJa,TX,lJa,aTa,LI,Oi,sk,qOa,rOa,cOa,dOa,oOa,kOa,lKa,TNa,cTa,INa,HNa,GNa,FNa,ENa,CNa,BNa,ANa,zNa,yNa,aNa,FSa,oJa,PMa,$Ma,dTa,QMa,SMa,iJa,ZSa,OLa,oMa,_La,ZLa,YLa,VNa,gWa,gY,QJa,JJa,TJa,SJa,RJa,Zk,dt,ok,PJa,LJa,kY,KJa,kY,FJa,HJa,LNa,jJa,_Ha,rM,Ee,x2,Br,x2,i5a,h5a,Blb,DOa,tOa,QXa,WXa,uOa,X_,jw,rA,ZHa,jTa,rH,vMa,tMa,hXa,sMa,eL,hJa,XHa,WHa,TO,CE,hg,Tm,FK,YHa,pd,NMa,VHa,OMa, -rMa,HY,eda,UHa,lY,GJa,qMa,sJa,IJa,vX,iY,MJa,bP,sVa,cVa,o_,VXa,_I,xi,I_,kVa,dVa,d2a,am,rk,Ux,Pn,cZ,DVa,uVa,oVa,zVa,wVa,vVa,yVa,tVa,AVa,THa,gVa,eJ,MXa,Rd,se,se,Rd,se,se,Rd,MMa,oWa,LXa,KXa,LMa,KMa,IMa,JXa,GXa,vXa,dJ,FXa,Jd,EXa,DXa,CXa,BXa,Jd,Jd,Jd,AXa,zXa,yXa,xXa,wXa,Jd,Jd,Jd,Jd,Jd,pXa,Jd,Jd,Jd,Jd,Jd,Jd,Jd,mWa,Jd,Jd,oXa,nXa,mXa,iXa,eXa,P_,HWa,P_,FWa,EWa,Zh,Jd,CWa,DWa,M_,Jd,Jd,Jd,hw,Jd,Ig,AWa,zWa,xWa,wWa,vWa,uWa,tWa,lWa,dJ,Jd,Zh,sWa,rWa,qWa,pWa,Jd,Jd,se,se,se,se,se,Rd,se,se,Rd,kWa,lXa,jXa,gXa,fXa,dXa, -aXa,ZWa,YWa,WWa,TWa,SWa,RWa,PWa,OWa,JWa,jWa,GWa,fWa,eWa,cWa,dB,Rd,dWa,bWa,aWa,$Va,eMa,dMa,cMa,aMa,ZVa,TLa,Rp,bo,YVa,XVa,WVa,Rd,_Va,Ho,GUa,FUa,VUa,EUa,DUa,UUa,D_,BUa,TUa,em,L_,RUa,L_,ew,lh,YI,QUa,AUa,zUa,PUa,yUa,xUa,OUa,wUa,vUa,NUa,uUa,tUa,MUa,rUa,qUa,LUa,pUa,oUa,KUa,YI,JUa,YI,ao,pt,lVa,WI,HUa,G_,$Ua,F_,E_,WUa,G_,aVa,VI,UI,_Ua,VI,UI,ZUa,VI,UI,YUa,F_,E_,XUa,lp,hUa,gUa,eUa,dUa,cUa,bUa,aUa,$Ta,_Ta,tg,Xd,ZTa,YTa,XTa,WTa,VTa,UTa,QTa,PTa,HTa,GTa,u_,DTa,hTa,gTa,se,Rd,Rd,Rd,Rd,Rd,Rd,Rd,Rd,Rd,Rd,Rd,tg,Xd,Rd, -se,Xd,se,Xd,se,Xd,se,Xd,se,Xd,se,Xd,se,Xd,se,Xd,se,Xd,se,NSa,LSa,KSa,Xv,JSa,VLa,ISa,HSa,$La,GSa,tg,Zh,tg,Xd,oSa,Wv,zSa,se,ySa,xSa,nSa,Rd,wSa,mSa,Xd,lSa,Zn,vSa,kSa,GZ,tSa,jSa,hp,sSa,iSa,rSa,qSa,hSa,Yn,pSa,gSa,oI,Yh,Rd,Rd,sZ,FQa,EQa,BQa,rZ,AQa,se,yQa,zQa,vQa,tg,Xd,pQa,Rd,oZ,nZ,mZ,se,UA,rQa,Rd,Xd,oQa,se,oZ,nZ,mZ,se,UA,Xd,mQa,Zn,kQa,lZ,hp,kZ,Xd,jQa,hp,iQa,lZ,hp,kZ,Xd,hQa,Yn,gQa,fQa,dQa,Yn,cQa,Xd,bQa,hI,aQa,$Pa,_Pa,hp,ZPa,YPa,XPa,WPa,UPa,gI,TPa,SPa,RPa,um,QPa,PPa,OPa,NPa,MPa,fI,LPa,JPa,IPa,se,UA,HPa,GPa, -FPa,EPa,eI,DPa,CPa,BPa,se,APa,rC,xPa,wPa,vPa,dB,uPa,tPa,sPa,um,rPa,o2,qPa,pPa,oPa,Xv,mPa,lPa,kPa,Rd,Jd,jPa,iPa,hPa,gPa,ePa,dPa,cPa,Yh,bPa,aPa,$Oa,_Oa,YOa,XOa,WOa,VOa,UOa,SOa,ROa,POa,OOa,NOa,MOa,nOa,lOa,Rd,QY,jOa,se,iOa,hOa,Zn,gOa,eOa,hp,PY,bOa,aOa,eI,$Na,ZNa,YNa,XNa,Rp,bo,UNa,SNa,RNa,dB,QNa,ONa,NNa,Rp,bo,MNa,wNa,vNa,ZMa,Rd,tNa,sNa,YMa,se,rNa,qNa,cq,Zn,pNa,oNa,cq,hp,nNa,mNa,cq,Yn,lNa,kNa,XMa,hI,iNa,hNa,cq,gI,gNa,fNa,cq,fI,eNa,dNa,WMa,eI,cNa,bNa,cq,dB,wY,nMa,lMa,kMa,jMa,iMa,hMa,Ux,um,gMa,R7,w9,fMa, -XLa,Yh,Bf,EA,tg,tg,Pn,Rd,Rd,tg,Yh,NLa,LLa,KLa,Rd,ILa,eKa,dKa,HLa,cKa,GLa,JLa,DA,FLa,ELa,DLa,BLa,Xv,zLa,Bf,bKa,aKa,yLa,$Ja,xLa,ALa,DA,wLa,vLa,uLa,_Ja,se,Bf,sLa,rLa,qLa,ZJa,pLa,tLa,oLa,nLa,mLa,lLa,kLa,se,jLa,XJa,iLa,hLa,rY,gLa,fLa,eLa,Zn,dLa,WJa,cLa,bLa,rY,aLa,$Ka,_Ka,hp,VKa,ZKa,YKa,XKa,WKa,UKa,bo,TKa,SKa,RKa,Yn,QKa,VJa,UJa,PKa,OKa,bo,NKa,MKa,LKa,hI,KKa,JKa,IKa,HKa,GKa,bo,qY,FKa,EKa,gI,DKa,CKa,BKa,AKa,zKa,yKa,bo,nY,wKa,vKa,fI,uKa,tKa,sKa,rKa,qKa,pKa,bo,oKa,nKa,mKa,Xv,Bf,Wv,Wv,Ig,Rp,Ee,kKa,jKa,iKa,Xv, -hKa,gKa,fKa,Rp,bo,EJa,DJa,se,se,Rd,Rd,Rd,se,CJa,BJa,Jd,WX,HMa,dJ,Jd,Jd,Jd,Jd,Jd,Jd,Jd,Jd,Jd,Jd,Jd,Jd,WX,Jd,wJa,vJa,uJa,BMa,Ig,Jd,Jd,Jd,Jd,Jd,Zh,Jd,AJa,Zh,M_,Jd,Jd,zJa,yJa,xJa,Ig,Rp,Jd,GMa,FMa,EMa,DMa,CMa,sOa,Jd,Zh,rM,Jd,tJa,rJa,OJa,NJa,OX,kJa,gJa,Yh,Rd,Rd,Rd,Rd,Rd,Rd,Ee,Rd,um,Ho,fJa,dJa,se,cJa,bJa,aJa,_Ia,se,ZIa,YIa,XIa,se,WIa,VIa,UIa,se,TIa,SIa,RIa,se,QIa,GX,PIa,se,OIa,NIa,MIa,LIa,se,KIa,HIa,FX,DIa,CIa,EIa,BIa,Rd,AIa,zIa,yIa,xIa,uIa,Qoa,Poa,tIa,sIa,rIa,pIa,nIa,re,re,re,re,DX,DX,re,re,re,re,re,re, -re,re,re,re,re,re,re,re,re,re,re,re,re,re,bt,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,re,$s,lIa,jIa,re,re,re,re,re,BX,re,re,re,re,re,re,re,re,re,re,re,re,$s,ct,$s,xH,xH,fIa,re,bt,bt,bt,ct,bt,ct,tA,tA,re,tA,bt,$s,ct,$s,xH,$s,ct,ct,ct,tA,re,re,vH,vH,vH,AX,zX,GIa,FIa,oIa,mIa,qe,qe,qe,qe,CX,CX,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,at,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,_s,kIa,iIa,qe,hIa,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,qe,_s,_s,Zs,wH,wH,eIa, -qe,at,at,at,Zs,at,Zs,sA,sA,qe,sA,at,_s,_s,Zs,wH,_s,Zs,Zs,Zs,sA,qe,qe,uH,uH,uH,bIa,aIa,AX,cIa,$Ha,wc,fSa,eSa,dSa,cSa,bSa,aSa,$Ra,_Ra,ZRa,YRa,XRa,WRa,BZ,VRa,URa,TRa,SRa,RRa,QRa,PRa,ORa,NRa,MRa,LRa,KRa,JRa,HRa,GRa,FRa,ERa,DRa,CRa,BRa,ARa,zRa,xRa,wRa,vRa,uRa,tRa,sRa,rRa,qRa,pRa,oRa,mRa,yZ,lRa,kRa,jRa,iRa,hRa,gRa,fRa,eRa,dRa,cRa,bRa,aRa,$Qa,_Qa,ZQa,tI,YQa,XQa,VQa,UQa,TQa,SQa,RQa,Ig,SHa,Tx,Tx,qA,RHa,QHa,PHa,OHa,NHa,MHa,LHa,Jd,EM,KHa,JHa,IHa,HHa,GHa,bHa,bX,cX,eX,EM,aX,lX,mH,kX,Ee,hX,ZW,_W,gX,Cv,Xs,VGa,UGa, -WGa,cHa,eHa,Ee,ZGa,TGa,XGa,YGa,dHa,RW,_Ga,$Ga,aHa,IGa,HGa,FGa,EGa,Xd,BGa,AGa,zGa,yGa,FHa,EHa,DHa,CHa,BHa,AHa,zHa,yHa,xHa,wHa,vHa,uHa,tHa,sHa,rHa,qHa,pHa,oHa,nHa,mHa,lHa,kHa,jHa,iHa,hHa,gHa,fHa,SGa,RGa,QGa,PGa,OGa,NGa,MGa,LGa,KGa,dH,X_a,HFa,W_a,k2a,g2a,RZa,i_a,VB,T0,R1a,S_a,Jq,U_a,S0,Yca,sW,vGa,sGa,rGa,qGa,pGa,se,uGa,tGa,oGa,nGa,mGa,lGa,kGa,jGa,iGa,hGa,Rd,gGa,fGa,eGa,dGa,cGa,bGa,aGa,$Fa,_Fa,ZFa,Rd,YFa,XFa,WFa,VFa,se,UFa,TFa,SFa,RFa,QFa,PFa,OFa,Jd,NFa,MFa,LFa,KFa,JFa,$ca,GFa,y0,lEa,IFa,j_a,FFa,oEa, -EFa,DFa,QB,c_a,tEa,CFa,x0,f_a,yFa,BFa,AFa,cH,QEa,Xe,a_a,EE,iW,$Da,aEa,Fd,Xf,kEa,WDa,UDa,xFa,wFa,vFa,uEa,TDa,uFa,hEa,ZDa,cEa,tFa,ODa,RDa,wv,RV,sFa,xv,XDa,YDa,MDa,PDa,KDa,VDa,vEa,SDa,Yj,nEa,Qs,mEa,rFa,pEa,_Da,rr,S1a,sEa,LDa,k5a,CEa,DEa,QDa,Ho,jEa,rEa,qFa,pFa,_4a,$z,Hp,VV,oFa,xi,bda,nFa,mFa,GEa,_V,zFa,NDa,KEa,Xia,kFa,Ia,ta,gEa,lFa,ph,Mia,hW,jFa,iFa,hFa,Dy,gF,WQ,VQ,gFa,fFa,Jd,Ey,eFa,dFa,Rd,Rd,Via,cFa,Tia,bFa,Sia,aFa,bA,VEa,UEa,TEa,SEa,REa,$Ea,_Ea,ZEa,YEa,XEa,WEa,Cy,eF,RQ,QQ,Cp,PEa,OEa,NEa,Vl,MEa,iEa, -LEa,JEa,Bp,dEa,bEa,eEa,bH,fC,eC,tg,Xd,IEa,Rd,BEa,AEa,HEa,se,zEa,_G,FEa,_G,EEa,_G,Ee,Oca,Sca,qEa,eL,ZV,wEa,xEa,fEa,ph,Ps,UV,WG,VG,nD,eW,dW,cW,wDa,md,hpa,Nta,s2a,Uk,Roa,Qj,vDa,uj,Aza,Nza,ipa,Lza,HCa,Jza,tza,Bxa,Dxa,uDa,tDa,Sxa,uwa,Qxa,rwa,Bs,PZa,KZa,Nxa,Mxa,Fxa,Oxa,Exa,Li,Kc,UT,sDa,IZa,OZa,LZa,qDa,xG,zG,DAa,rDa,Pn,Cxa,Ln,Hva,Eva,Fva,Gva,Rca,iDa,hDa,gDa,Zh,Zh,Zz,ch,kpa,eDa,dDa,YCa,kG,HV,As,fDa,XCa,Mva,yz,OCa,FCa,tsa,SG,Xva,CGa,Vz,of,vV,wCa,Kn,Pl,yCa,vCa,Tk,Qva,sCa,Wva,aj,Pj,Uz,qCa,uCa,On,Es,Jn,rCa,Ql, -bG,sV,Tz,goa,Lva,nCa,oCa,PG,lCa,rV,kCa,_Ba,hCa,fCa,fd,tCa,uV,eCa,rsa,Sz,bp,pCa,cCa,bCa,aCa,yT,bsa,HBa,GBa,_o,Uoa,iT,EBa,DBa,tj,Asa,lG,kv,AT,wsa,RG,Ms,bDa,Ns,Zva,Sl,kf,Ul,PCa,VCa,BV,Pm,CBa,Pva,FBa,sBa,Ul,jV,Ova,Rsa,Xsa,rBa,ysa,lBa,kBa,Ul,fBa,gBa,Nm,aBa,BBa,$Aa,uBa,LG,_Aa,qV,Ls,jG,yBa,wz,FAa,cBa,CV,usa,MG,ZAa,mG,Zsa,WAa,XAa,Toa,mV,YAa,nk,IAa,vv,HAa,Tsa,Jz,xAa,Mm,WU,xsa,rAa,vAa,uAa,tAa,wAa,XU,Sva,pAa,sv,qAa,sAa,Uua,Yva,Yua,hva,yAa,kAa,hAa,Dva,iAa,fAa,jAa,Kza,Pz,RU,Iza,Zg,di,Hza,Mza,zBa,JAa,GAa,Dza,mBa, -jBa,PU,wya,jxa,fxa,pz,yya,FU,OU,Cza,sj,iCa,Bza,nV,rya,sya,NU,Vwa,Fza,Qwa,WBa,Rwa,vza,Wya,Gs,wBa,vBa,gxa,xBa,Swa,yza,Qsa,uza,Hs,Yxa,Xxa,zU,jCa,sza,Rxa,rua,sua,DU,Vra,lra,jDa,mDa,qv,$xa,mCa,kV,MU,rza,LU,bV,pV,gCa,lza,GU,Iq,Zza,mya,eBa,hxa,kza,dBa,qya,pya,jya,IBa,Pn,bBa,Os,yG,VAa,uxa,txa,asa,Twa,Xya,Zya,Vya,Yya,Rya,Iya,XT,Mya,Lya,Kya,Qya,Jya,sqa,Yqa,Vqa,Qqa,Eya,Dya,Zpa,Cra,xra,wra,Cya,Fya,Gya,Bya,Zwa,Aya,ixa,CU,zya,BU,AU,WT,EU,Tya,ssa,Nya,axa,xya,vya,tya,xU,sxa,oya,nya,uya,HU,Kl,aya,ei,Wxa,Vxa,uU,Uxa, -Txa,kya,Sqa,Sj,Lxa,kua,Kxa,MT,LT,Zta,Pta,oua,pua,lua,tua,Sta,Ixa,YT,qz,Hxa,cwa,jua,mua,PT,Uva,Ds,iwa,iua,hua,Gxa,Jxa,pU,Tta,$ta,_ta,gua,Xta,qU,Uta,bwa,lya,gAa,Fz,eua,dua,cua,Ez,qxa,pxa,Epa,Cpa,xpa,wpa,DCa,lv,mU,In,mxa,lxa,BT,kxa,Psa,zsa,Vsa,Ssa,_za,Ul,qv,$o,Rl,fU,Pwa,vwa,lAa,$T,bU,aU,twa,ECa,swa,mv,kwa,fwa,ci,gwa,Bz,vG,hwa,oe,Mn,ewa,sG,Fc,Kva,Lm,Cva,Bva,Ava,zva,rva,sva,fva,Pua,_va,Lua,qua,Lta,Kta,Jta,Ita,Hta,Dta,Az,Bta,xta,zz,uR,Uo,mta,nta,lta,$sa,CT,Ysa,Fta,Wsa,Tva,_sa,DT,Im,Cta,Eta,Isa,HT,lsa,Hn, -Rj,Gq,qsa,msa,ksa,uz,Gn,Ira,uT,Ura,Hra,Xra,Jra,vT,rz,Wra,Fra,Era,Xqa,Wqa,uqa,ara,Pqa,tqa,$qa,jwa,uG,Nz,Mqa,zqa,wqa,_qa,Lqa,Dqa,Fs,Tqa,fqa,bqa,aqa,Uqa,$pa,_pa,fsa,esa,Tpa,Lpa,Ipa,Hpa,Jpa,Bpa,Apa,Rpa,Dpa,ypa,fG,Ul,qpa,npa,gv,rpa,lpa,IDa,HDa,GDa,FDa,Bf,EDa,Zn,DDa,Jd,CDa,BDa,ADa,zDa,yDa,xDa,ud,_z,pDa,UG,oDa,nDa,lDa,kDa,UG,TG,Yh,SCa,RCa,um,QCa,_Ca,ZCa,cDa,$Ca,aDa,FV,WCa,TCa,UCa,NCa,MCa,JCa,LCa,um,ICa,Bf,Pn,KCa,QG,GCa,CCa,BCa,ACa,zCa,xV,wV,xCa,oV,dCa,VBa,UBa,ZBa,YBa,QN,XBa,tv,Jd,OG,Jd,SBa,RBa,QBa,PBa,OBa, -NBa,tv,MBa,LBa,JBa,EV,NG,EV,NG,qBa,pBa,oBa,Jd,nBa,Jd,Ks,KG,JG,IG,hV,gV,fV,dV,iBa,hBa,UAa,TAa,SAa,RAa,$U,QAa,PAa,OAa,Ks,GG,FG,EG,NAa,MAa,LAa,KAa,CAa,BAa,AAa,zAa,eAa,cAa,oAa,mAa,bAa,aAa,$U,Jd,$za,Jd,Wza,Uza,Tza,Sza,BG,VU,UU,TU,AG,Rza,Qza,Oza,QU,Eza,fza,xza,oza,nza,Ig,Ig,Jd,Jd,Zh,pza,hw,Cwa,qza,hza,jza,gza,mza,Yza,Xza,wza,eza,dza,Ks,GG,FG,EG,KU,cza,JU,bza,Ks,KG,JG,IG,IU,Uya,iya,Dwa,Oz,Oz,Pya,Oya,hya,gya,Hya,fya,eya,dya,cya,wU,bya,_xa,Zxa,Axa,yxa,xxa,Pxa,hw,wxa,Jd,vxa,Jd,ed,NG,oxa,nxa,Ks,GG,FG,EG,kU, -exa,jU,dxa,cxa,bxa,BG,VU,UU,TU,$wa,_wa,Ywa,Jd,Xwa,Jd,jU,Jd,Wwa,Jd,Hq,hU,gU,Uwa,Owa,Nwa,Mwa,Lwa,Kwa,Jwa,Iwa,Hwa,Gwa,Fwa,Ewa,hU,_ya,Bwa,dU,dU,Awa,Jd,zwa,Jd,Ks,KG,JG,IG,tv,Jd,OG,Jd,AG,ywa,xwa,wwa,tv,Jd,OG,Jd,qwa,pwa,BG,owa,nwa,mwa,ZT,lwa,awa,$va,Nva,Hz,Yh,Rd,yva,Jva,Iva,Kua,Aua,zua,Oua,eva,dva,bva,pva,nva,ova,mva,lva,kva,jva,qva,iva,gva,TT,RT,Zn,yua,Mua,Wua,Vua,wua,BOa,AOa,l2,Nua,ava,$ua,_ua,Zua,Xua,TT,RT,Hua,Gua,Qua,uva,tva,Fua,Eua,Dua,Cua,Sua,xva,wva,Rua,Bua,vva,vua,uua,Dz,aua,Wta,Vta,Rta,Qta,Ota, -bh,ET,wta,tta,Rd,se,pta,ota,vta,kta,ita,hta,gta,fta,sta,eta,hw,hw,Jd,nG,dta,uta,bh,Yh,Rd,ET,Ata,bta,se,Lsa,Ksa,zta,Hsa,Gsa,Esa,Dsa,Csa,Osa,Bsa,Jsa,Msa,psa,nsa,jsa,isa,hsa,gsa,dsa,csa,$ra,_ra,Yra,xV,Lra,Kra,Mra,Tra,Sra,nG,Oz,gra,fra,ira,jra,Nra,Rra,era,bra,Qra,DA,dra,cra,tg,Yh,iv,Yh,nG,Oz,Bra,zra,EA,vra,ura,rra,pra,sra,tra,ora,mra,yra,DA,nra,iG,kra,Xd,Dra,sT,nqa,lqa,kqa,hG,rqa,qqa,Nqa,pqa,Kqa,Jqa,Hqa,Fqa,Cqa,Bqa,Aqa,yqa,vqa,oqa,Oqa,Yh,Gqa,Eqa,tv,jqa,iqa,hqa,AG,Jd,gqa,Jd,Ypa,Xpa,Wpa,Vpa,qT,eqa,Spa, -oT,Qpa,Ppa,wU,Opa,Npa,Mpa,oT,Gpa,Fpa,vpa,upa,tpa,spa,hV,gV,fV,dV,opa,mpa,eG,nT,eG,nT,rxa,mT,cpa,lT,dpa,bpa,epa,fpa,apa,xz,gpa,Soa,$oa,cta,Qn,_oa,Zoa,Yoa,Xoa,Woa,Uk,cG,Voa,_z,_z,_z,UG,Noa,BE,xi,Xe,Moa,Loa,Ioa,Rd,Hoa,Goa,Foa,Eoa,eT,eT,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ig,Doa,Coa,Boa,zoa,yoa,xoa,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,Ee,mD,tM,Rp,woa,voa,uoa,toa,soa,roa,qoa,poa,ooa,noa,moa,loa,koa,joa,ioa,hoa,foa,eoa,doa,coa,Ig,Ig,Ig,Br,Ig,Br,Rd,Rd,Ee,Rd,Ig,mD,mD,Br,Alb, -mD,Br,boa,aoa,$na,Ee,Ee,Ig,Ig,Ig,gT,_na,dC,N1a,M1a,DK,ir,Una,P1a,Eja,GR,ER,Zna,Yna,Ala,Qja,MF,Mja,Pna,OF,qka,Lca,Lja,zla,yla,_F,Sna,Kna,Jna,Ina,Hna,Gna,Fna,Ena,Dna,Cna,Bna,Ana,zna,yna,xna,wna,vna,una,tna,sna,rna,qna,ona,nna,mna,lna,kna,jna,ina,hna,gna,fna,ena,dna,cna,bna,ana,$ma,_ma,Zma,Yma,Xma,Oma,Nma,Vma,Uma,Tma,Sma,Ee,Ee,Rma,Qma,Pma,tM,Rp,Mma,Lma,Kma,Jma,Ima,Hma,Gma,Fma,Ema,Dma,Cma,Bma,Ama,zma,yma,wma,xma,vma,uma,tma,sma,rma,qma,pma,oma,nma,mma,lma,kma,jma,ima,hma,fma,gma,ema,dma,cma,bma,Br,ama, -$la,Zla,Yla,Ig,Ig,Mna,Lna,WS,Ula,pC,L2,kz,vka,Sla,mL,wka,x5a,ska,bka,A5a,z5a,IS,ES,jla,Rla,wla,tla,nla,ZR,hla,mla,wS,kz,gka,nka,kz,SF,ph,rka,hS,$u,ph,Pla,VF,$u,Ola,cka,ph,NF,_y,$u,$y,jka,FS,YR,lS,Mla,RF,st,Lla,Kla,_u,Ee,Xd,Jla,Ila,_u,Xd,Hla,Gla,_u,Xd,Ela,Dla,_u,Xd,Cla,Bla,_u,Xd,ila,Tka,ola,ula,XS,N5a,M5a,gz,ez,CS,yS,Tla,OS,NS,tg,Xd,tg,Xd,vla,xla,sla,qla,pla,hn,gla,Xla,fla,ela,dla,Xd,bla,um,Pn,rC,UO,C5a,ala,Xe,Pmb,Aob,$ka,_ka,Zka,Xka,Wka,Vka,Uka,Xd,Wla,Ska,kla,Kka,XR,Jka,zq,Ika,Hka,HF,tS,Nka,Oka,rS, -pS,vS,Qka,uS,Mka,Fka,Cka,Bka,Bf,Eka,Dka,fka,nS,zka,Aka,mS,yka,mz,cv,Oc,wg,Nja,Wo,kS,tka,uka,Pka,mka,lka,aka,TS,KF,kka,dS,oka,pka,bS,aS,hka,ika,_R,eka,mk,dka,$ja,_ja,Zja,Yja,Xja,Wja,Vja,Uja,Tja,Sja,Rja,Aq,Pja,Oja,Hja,Gja,Ija,Jja,uq,Rd,yja,tja,sja,qja,pja,XQ,rC,_ia,UQ,pq,cia,dja,Qk,qq,PQ,gs,bia,Uia,dF,Lia,UQ,pq,gia,Oia,Nia,Ey,GQ,Qea,fg,Ku,tg,oia,Fy,ija,Jd,Ey,ZQ,YQ,Rd,Rd,hja,Wv,fja,xu,eja,xu,Dy,gF,WQ,VQ,Cy,eF,RQ,QQ,Nh,Yia,ZQ,YQ,Wv,xu,xu,fs,Eia,uia,zia,xia,wia,via,Dia,Bia,Aia,gC,DQ,tia,sia,hC,CQ,ria, -qia,Bf,hia,iia,vQ,tg,Xd,kia,Dca,Cca,Bca,jia,aF,Ho,$E,eia,fF,XE,qQ,pQ,yy,LE,Mha,Ku,Jia,So,Kha,Ah,mQ,lQ,Hha,Fha,oQ,oQ,Bha,xy,zha,tha,N2,xha,vha,Wg,sha,Xha,UE,qQ,pQ,wy,Lj,Ria,xQ,oq,Ro,mQ,lQ,vy,dha,N2,$ga,xQ,No,OQ,Wga,Uga,as,Ku,lR,Cja,Dja,JQ,Pga,lia,Iu,OQ,Jga,$r,Ku,ZE,jda,tE,Ey,Bf,mga,cQ,lga,bja,kga,cda,$P,jga,_P,Ku,gga,ega,dga,Pia,cga,WP,_P,aga,_fa,Zfa,Wfa,Vfa,_E,Qfa,Pfa,Ofa,Nfa,Mfa,Lfa,Kfa,Jfa,Ifa,Hfa,Ffa,Efa,Dfa,Cfa,Bfa,Afa,zfa,yfa,xfa,wfa,ufa,tfa,sfa,rfa,qfa,pfa,ofa,nfa,mfa,lfa,ifa,hfa,gfa,ffa,efa, -dfa,cfa,bfa,afa,$ea,Zea,Yea,Xea,Wea,PP,Uea,UA,Pea,Tea,nda,oda,oP,Rea,Nea,aia,$ha,Zha,Iy,tQ,ns,kea,jea,Yha,sQ,Vda,Sda,Qda,Oda,Mda,Ida,Gda,Eda,Cda,Ada,xda,vda,tda,rda,Cia,Jd,LP,Sea,Oea,IP,Aea,zea,yea,wea,vea,EA,uea,tea,sea,RP,qea,pea,nea,mea,lea,Rd,iea,hea,zP,fea,dea,bea,aea,_da,Yda,yP,eea,Ux,um,$da,Zda,Xda,tg,Xd,Xd,Mea,Lea,Kea,Jea,Iea,Hea,Gea,Eea,EA,Dea,Cea,Bea,Xd,HP,HP,Hu,se,se,rea,se,Xd,FP,EP,Hu,Rd,Rd,DP,Yn,Xd,FP,EP,Hu,Rd,Rd,DP,Yn,Xd,CP,BP,Hu,Rd,Rd,AP,Yn,Xd,CP,BP,Hu,Rd,Rd,AP,Yn,tg,Xd,Wha,Vha,Uha, -tg,Xd,Rha,Qha,Pha,Xd,Oha,Lha,Jha,Gha,Eha,Dha,Cha,Aha,yha,wha,uha,Xd,qha,pha,nha,mha,lha,kha,jha,iha,hha,gha,eha,Xd,cha,bha,_ga,Zga,Yga,Xga,Tga,Sga,Xd,Rga,Qga,Oga,Mga,Lga,Kga,Iga,Hga,tg,Xd,Zn,Ega,Dga,Cga,Bga,Aga,zga,Wda,Rda,Nda,zda,uda,Hda,Dda,tg,Xd,Zn,xga,wga,vga,uga,tga,rga,Tda,Pda,Lda,wda,sda,Fda,Bda,NE,xP,qga,NE,xP,pga,Xd,ty,ty,Ok,Ok,Ok,bQ,Rd,Mo,Mo,Xd,ty,ty,Ok,Ok,Ok,bQ,Rd,Mo,Mo,Xd,sy,sy,Ok,Ok,Ok,aQ,Rd,Mo,Mo,Xd,sy,sy,Ok,Ok,Ok,aQ,Rd,Mo,Mo,Xd,nga,iga,Xd,fga,bga,Xd,$fa,Yfa,Xd,Xfa,Ufa,Xd,Tx,Tfa,Jd, -Xd,Tx,Sfa,Jd,tg,Yh,Rd,Rd,Rd,Xd,lda,KE,hda,gda,eP,_O,Cn,Vca,Ica,Tca,Qca,Qca,Nca,AE,Jca,Hca,Fca,Gca,XQ,zca,Aca,kda,vQ,aF,uca,PO,QO,tg,Xd,Bf,Bf,tca,Xd,sca,jca,mca,rca,Xd,kca,nca,qca,Xd,lca,oca,pca,Xd,fca,Xd,eca,Xd,gca,ey,Ho,aF,ey,ey,ey,Xd,dca]);function hc(){return G.byteLength/65536|0}function mc(nc){nc=nc|0;var ic=hc()|0;var jc=ic+nc|0;if(ic=65536,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+INITIAL_MEMORY+"! (STACK_SIZE="+65536+")");if(Module["wasmMemory"])wasmMemory=Module["wasmMemory"];else wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":2147483648/65536});updateMemoryViews();INITIAL_MEMORY=wasmMemory.buffer.byteLength; -var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[function(){window["AscViewer"]&&window["AscViewer"]["onLoadModule"]&&window["AscViewer"]["onLoadModule"]()}];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length)addOnPreRun(Module["preRun"].shift())}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]== -"function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length)addOnPostRun(Module["postRun"].shift())}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}if(!Math.imul||Math.imul(4294967295,5)!==-5)Math.imul=function(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};if(!Math.fround){var froundBuffer=new Float32Array(1); -Math.fround=function(x){froundBuffer[0]=x;return froundBuffer[0]}}if(!Math.clz32)Math.clz32=function(x){var n=32;var y=x>>16;if(y){n-=16;x=y}y=x>>8;if(y){n-=8;x=y}y=x>>4;if(y){n-=4;x=y}y=x>>2;if(y){n-=2;x=y}y=x>>1;if(y)return n-2;return n-x};if(!Math.trunc)Math.trunc=function(x){return x<0?Math.ceil(x):Math.floor(x)};var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"])Module["monitorRunDependencies"](runDependencies)} -function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"])Module["monitorRunDependencies"](runDependencies);if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){if(Module["onAbort"])Module["onAbort"](what);what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info."; -var e=new WebAssembly.RuntimeError(what);throw e;}var dataURIPrefix="data:application/octet-stream;base64,";var isDataURI=function(filename){return filename.startsWith(dataURIPrefix)};var wasmBinaryFile;wasmBinaryFile="drawingfile.wasm";if(!isDataURI(wasmBinaryFile))wasmBinaryFile=locateFile(wasmBinaryFile);function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);var binary=tryParseAsDataURI(file);if(binary)return binary;if(readBinary)return readBinary(file); -throw"both async and sync fetching of the wasm failed";}function getBinaryPromise2(binaryFile){if(!wasmBinary&&!isDataURI(binaryFile)&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER))if(typeof fetch=="function")return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"])throw"failed to load wasm binary file at '"+binaryFile+"'";return response["arrayBuffer"]()}).catch(function(){return getBinarySync(binaryFile)});return Promise.resolve().then(function(){return getBinarySync(binaryFile)})} -function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(function(binary){return WebAssembly.instantiate(binary,imports)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(binaryFile)&&typeof fetch=="function")return fetch(binaryFile, -{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(binaryFile,imports,callback)})});return instantiateArrayBuffer(binaryFile,imports,callback)}function createWasm(){var info={"a":wasmImports};function receiveInstance(instance,module){wasmExports=instance.exports;wasmTable= -wasmExports["gb"];addOnInit(wasmExports["fb"]);removeRunDependency("wasm-instantiate");return wasmExports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}if(Module["instantiateWasm"])try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult);return{}}var tempDouble;function js_get_stream_id(data, -status){return self.AscViewer.CheckStreamId(data,status)}function js_free_id(data){self.AscViewer.Free(data);return 1}function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}var callRuntimeCallbacks=function(callbacks){while(callbacks.length>0)callbacks.shift()(Module)};var noExitRuntime=Module["noExitRuntime"]||true;var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;var UTF8ArrayToString=function(heapOrArray, -idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder)return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr));var str="";while(idx>10,56320|ch&1023)}}return str};var UTF8ToString=function(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""};var ___assert_fail=function(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])}; -var exceptionCaught=[];var uncaughtExceptionCount=0;var ___cxa_begin_catch=function(ptr){var info=new ExceptionInfo(ptr);if(!info.get_caught()){info.set_caught(true);uncaughtExceptionCount--}info.set_rethrown(false);exceptionCaught.push(info);___cxa_increment_exception_refcount(info.excPtr);return info.get_exception_ptr()};var exceptionLast=0;var ___cxa_end_catch=function(){_setThrew(0,0);var info=exceptionCaught.pop();___cxa_decrement_exception_refcount(info.excPtr);exceptionLast=0};function ExceptionInfo(excPtr){this.excPtr= -excPtr;this.ptr=excPtr-24;this.set_type=function(type){HEAPU32[this.ptr+4>>2]=type};this.get_type=function(){return HEAPU32[this.ptr+4>>2]};this.set_destructor=function(destructor){HEAPU32[this.ptr+8>>2]=destructor};this.get_destructor=function(){return HEAPU32[this.ptr+8>>2]};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+12>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+12>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+13>>0]=rethrown}; -this.get_rethrown=function(){return HEAP8[this.ptr+13>>0]!=0};this.init=function(type,destructor){this.set_adjusted_ptr(0);this.set_type(type);this.set_destructor(destructor)};this.set_adjusted_ptr=function(adjustedPtr){HEAPU32[this.ptr+16>>2]=adjustedPtr};this.get_adjusted_ptr=function(){return HEAPU32[this.ptr+16>>2]};this.get_exception_ptr=function(){var isPointer=___cxa_is_pointer_type(this.get_type());if(isPointer)return HEAPU32[this.excPtr>>2];var adjusted=this.get_adjusted_ptr();if(adjusted!== -0)return adjusted;return this.excPtr}}var ___resumeException=function(ptr){if(!exceptionLast)exceptionLast=ptr;throw exceptionLast;};var findMatchingCatch=function(args){var thrown=exceptionLast;if(!thrown){setTempRet0(0);return 0}var info=new ExceptionInfo(thrown);info.set_adjusted_ptr(thrown);var thrownType=info.get_type();if(!thrownType){setTempRet0(0);return thrown}for(var arg in args){var caughtType=args[arg];if(caughtType===0||caughtType===thrownType)break;var adjusted_ptr_addr=info.ptr+16; -if(___cxa_can_catch(caughtType,thrownType,adjusted_ptr_addr)){setTempRet0(caughtType);return thrown}}setTempRet0(thrownType);return thrown};var ___cxa_find_matching_catch_2=function(){return findMatchingCatch([])};var ___cxa_find_matching_catch_3=function(arg0){return findMatchingCatch([arg0])};var ___cxa_rethrow=function(){var info=exceptionCaught.pop();if(!info)abort("no exception to throw");var ptr=info.excPtr;if(!info.get_rethrown()){exceptionCaught.push(info);info.set_rethrown(true);info.set_caught(false); -uncaughtExceptionCount++}exceptionLast=ptr;throw exceptionLast;};var ___cxa_throw=function(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;uncaughtExceptionCount++;throw exceptionLast;};var ___cxa_uncaught_exceptions=function(){return uncaughtExceptionCount};var SYSCALLS={varargs:undefined,get:function(){var ret=HEAP32[+SYSCALLS.varargs>>2];SYSCALLS.varargs+=4;return ret},getp:function(){return SYSCALLS.get()},getStr:function(ptr){var ret=UTF8ToString(ptr); -return ret}};function ___syscall_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;return 0}var ___syscall_fstat64=function(fd,buf){};var lengthBytesUTF8=function(str){var len=0;for(var i=0;i=55296&&c<=57343){len+=4;++i}else len+=3}return len};var stringToUTF8Array=function(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}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}}heap[outIdx]= -0;return outIdx-startIdx};var stringToUTF8=function(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)};var ___syscall_getcwd=function(buf,size){};var ___syscall_getdents64=function(fd,dirp,count){};function ___syscall_ioctl(fd,op,varargs){SYSCALLS.varargs=varargs;return 0}var ___syscall_lstat64=function(path,buf){};var ___syscall_mkdirat=function(dirfd,path,mode){};var ___syscall_newfstatat=function(dirfd,path,buf,flags){};function ___syscall_openat(dirfd,path, -flags,varargs){SYSCALLS.varargs=varargs}var ___syscall_readlinkat=function(dirfd,path,buf,bufsize){};var ___syscall_rmdir=function(path){};var ___syscall_stat64=function(path,buf){};var ___syscall_unlinkat=function(dirfd,path,flags){};var ___syscall_utimensat=function(dirfd,path,times,flags){};var nowIsMonotonic=true;var __emscripten_get_now_is_monotonic=function(){return nowIsMonotonic};var __emscripten_throw_longjmp=function(){throw Infinity;};var isLeapYear=function(year){return year%4===0&&(year% -100!==0||year%400===0)};var MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335];var MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334];var ydayFromDate=function(date){var leap=isLeapYear(date.getFullYear());var monthDaysCumulative=leap?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE;var yday=monthDaysCumulative[date.getMonth()]+date.getDate()-1;return yday};var convertI32PairToI53Checked=function(lo,hi){return hi+2097152>>>0<4194305-!!lo?(lo>>> -0)+hi*4294967296:NaN};var __mktime_js=function(tmPtr){var ret=function(){var date=new Date(HEAP32[tmPtr+20>>2]+1900,HEAP32[tmPtr+16>>2],HEAP32[tmPtr+12>>2],HEAP32[tmPtr+8>>2],HEAP32[tmPtr+4>>2],HEAP32[tmPtr>>2],0);var dst=HEAP32[tmPtr+32>>2];var guessedOffset=date.getTimezoneOffset();var start=new Date(date.getFullYear(),0,1);var summerOffset=(new Date(date.getFullYear(),6,1)).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dstOffset=Math.min(winterOffset,summerOffset);if(dst<0)HEAP32[tmPtr+ -32>>2]=Number(summerOffset!=winterOffset&&dstOffset==guessedOffset);else if(dst>0!=(dstOffset==guessedOffset)){var nonDstOffset=Math.max(winterOffset,summerOffset);var trueOffset=dst>0?dstOffset:nonDstOffset;date.setTime(date.getTime()+(trueOffset-guessedOffset)*6E4)}HEAP32[tmPtr+24>>2]=date.getDay();var yday=ydayFromDate(date)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+ -16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getYear();return date.getTime()/1E3}();return setTempRet0((tempDouble=ret,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),ret>>>0};function __mmap_js(len,prot,flags,fd,offset_low,offset_high,allocated,addr){var offset=convertI32PairToI53Checked(offset_low,offset_high);return-52}function __munmap_js(addr,len,prot,flags,fd,offset_low,offset_high){var offset= -convertI32PairToI53Checked(offset_low,offset_high)}var stringToNewUTF8=function(str){var size=lengthBytesUTF8(str)+1;var ret=_malloc(size);if(ret)stringToUTF8(str,ret,size);return ret};var __tzset_js=function(timezone,daylight,tzname){var currentYear=(new Date).getFullYear();var winter=new Date(currentYear,0,1);var summer=new Date(currentYear,6,1);var winterOffset=winter.getTimezoneOffset();var summerOffset=summer.getTimezoneOffset();var stdTimezoneOffset=Math.max(winterOffset,summerOffset);HEAPU32[timezone>> -2]=stdTimezoneOffset*60;HEAP32[daylight>>2]=Number(winterOffset!=summerOffset);function extractZone(date){var match=date.toTimeString().match(/\(([A-Za-z ]+)\)$/);return match?match[1]:"GMT"}var winterName=extractZone(winter);var summerName=extractZone(summer);var winterNamePtr=stringToNewUTF8(winterName);var summerNamePtr=stringToNewUTF8(summerName);if(summerOffset>2]=winterNamePtr;HEAPU32[tzname+4>>2]=summerNamePtr}else{HEAPU32[tzname>>2]=summerNamePtr;HEAPU32[tzname+ -4>>2]=winterNamePtr}};var _abort=function(){abort("")};var _emscripten_date_now=function(){return Date.now()};var _emscripten_get_now;_emscripten_get_now=function(){return performance.now()};var _emscripten_memcpy_js=Uint8Array.prototype.copyWithin?function(dest,src,num){return HEAPU8.copyWithin(dest,src,src+num)}:function(dest,src,num){return HEAPU8.set(HEAPU8.subarray(src,src+num),dest)};var getHeapMax=function(){return 2147483648};var growMemory=function(size){var b=wasmMemory.buffer;var pages= -(size-b.byteLength+65535)/65536;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=function(requestedSize){var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize)return false;var alignUp=function(x,multiple){return x+(multiple-x%multiple)%multiple};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,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement)return true}return false};var ENV={};var getExecutableName=function(){return thisProgram||"./this.program"};var getEnvStrings=function(){if(!getEnvStrings.strings){var lang=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"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 stringToAscii=function(str,buffer){for(var i=0;i>0]=str.charCodeAt(i);HEAP8[buffer>>0]=0};var _environ_get=function(__environ,environ_buf){var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAPU32[__environ+ -i*4>>2]=ptr;stringToAscii(string,ptr);bufSize+=string.length+1});return 0};var _environ_sizes_get=function(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAPU32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){return bufSize+=string.length+1});HEAPU32[penviron_buf_size>>2]=bufSize;return 0};var runtimeKeepaliveCounter=0;var keepRuntimeAlive=function(){return noExitRuntime||runtimeKeepaliveCounter>0};var _proc_exit=function(code){EXITSTATUS=code;if(!keepRuntimeAlive()){if(Module["onExit"])Module["onExit"](code); -ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=function(status,implicit){EXITSTATUS=status;_proc_exit(status)};var _exit=exitJS;var _fd_close=function(fd){return 52};var _fd_read=function(fd,iov,iovcnt,pnum){return 52};function _fd_seek(fd,offset_low,offset_high,whence,newOffset){var offset=convertI32PairToI53Checked(offset_low,offset_high);return 70}var printCharBuffers=[null,[],[]];var printChar=function(stream,curr){var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream=== -1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else buffer.push(curr)};var _fd_write=function(fd,iov,iovcnt,pnum){var num=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j>2]=num;return 0};var _llvm_eh_typeid_for=function(type){return type};var arraySum=function(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]);return sum};var MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30, -31,30,31];var MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];var addDays=function(date,days){var newDate=new Date(date.getTime());while(days>0){var leap=isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11)newDate.setMonth(currentMonth+1);else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+ -1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate};function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}var writeArrayToMemory=function(array,buffer){HEAP8.set(array,buffer)};var _strftime=function(s,maxsize,format,tm){var tm_zone=HEAPU32[tm+40>>2];var date= -{tm_sec:HEAP32[tm>>2],tm_min:HEAP32[tm+4>>2],tm_hour:HEAP32[tm+8>>2],tm_mday:HEAP32[tm+12>>2],tm_mon:HEAP32[tm+16>>2],tm_year:HEAP32[tm+20>>2],tm_wday:HEAP32[tm+24>>2],tm_yday:HEAP32[tm+28>>2],tm_isdst:HEAP32[tm+32>>2],tm_gmtoff:HEAP32[tm+36>>2],tm_zone:tm_zone?UTF8ToString(tm_zone):""};var pattern=UTF8ToString(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c", -"%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var rule in EXPANSION_RULES_1)pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_1[rule]);var WEEKDAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var MONTHS=["January","February","March","April","May","June","July","August","September","October", -"November","December"];function leadingSomething(value,digits,character){var str=typeof value=="number"?value.toString():value||"";while(str.length0?1:0}var compare;if((compare=sgn(date1.getFullYear()-date2.getFullYear()))===0)if((compare=sgn(date1.getMonth()-date2.getMonth()))===0)compare=sgn(date1.getDate()- -date2.getDate());return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6:return new Date(janFourth.getFullYear()-1,11,30)}}function getWeekBasedYear(date){var thisDate=addDays(new Date(date.tm_year+ -1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0){if(compareByDay(firstWeekStartNextYear,thisDate)<=0)return thisDate.getFullYear()+1;return thisDate.getFullYear()}return thisDate.getFullYear()-1}var EXPANSION_RULES_2= -{"%a":function(date){return WEEKDAYS[date.tm_wday].substring(0,3)},"%A":function(date){return WEEKDAYS[date.tm_wday]},"%b":function(date){return MONTHS[date.tm_mon].substring(0,3)},"%B":function(date){return MONTHS[date.tm_mon]},"%C":function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)},"%d":function(date){return leadingNulls(date.tm_mday,2)},"%e":function(date){return leadingSomething(date.tm_mday,2," ")},"%g":function(date){return getWeekBasedYear(date).toString().substring(2)}, -"%G":function(date){return getWeekBasedYear(date)},"%H":function(date){return leadingNulls(date.tm_hour,2)},"%I":function(date){var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)},"%j":function(date){return leadingNulls(date.tm_mday+arraySum(isLeapYear(date.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,date.tm_mon-1),3)},"%m":function(date){return leadingNulls(date.tm_mon+1,2)},"%M":function(date){return leadingNulls(date.tm_min, -2)},"%n":function(){return"\n"},"%p":function(date){if(date.tm_hour>=0&&date.tm_hour<12)return"AM";return"PM"},"%S":function(date){return leadingNulls(date.tm_sec,2)},"%t":function(){return"\t"},"%u":function(date){return date.tm_wday||7},"%U":function(date){var days=date.tm_yday+7-date.tm_wday;return leadingNulls(Math.floor(days/7),2)},"%V":function(date){var val=Math.floor((date.tm_yday+7-(date.tm_wday+6)%7)/7);if((date.tm_wday+371-date.tm_yday-2)%7<=2)val++;if(!val){val=52;var dec31=(date.tm_wday+ -7-date.tm_yday-1)%7;if(dec31==4||dec31==5&&isLeapYear(date.tm_year%400-1))val++}else if(val==53){var jan1=(date.tm_wday+371-date.tm_yday)%7;if(jan1!=4&&(jan1!=3||!isLeapYear(date.tm_year)))val=1}return leadingNulls(val,2)},"%w":function(date){return date.tm_wday},"%W":function(date){var days=date.tm_yday+7-(date.tm_wday+6)%7;return leadingNulls(Math.floor(days/7),2)},"%y":function(date){return(date.tm_year+1900).toString().substring(2)},"%Y":function(date){return date.tm_year+1900},"%z":function(date){var off= -date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)},"%Z":function(date){return date.tm_zone},"%%":function(){return"%"}};pattern=pattern.replace(/%%/g,"\x00\x00");for(var rule in EXPANSION_RULES_2)if(pattern.includes(rule))pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date));pattern=pattern.replace(/\0\0/g,"%");var bytes=intArrayFromString(pattern,false);if(bytes.length>maxsize)return 0;writeArrayToMemory(bytes, -s);return bytes.length-1};var _strftime_l=function(s,maxsize,format,tm,loc){return _strftime(s,maxsize,format,tm)};var wasmTableMirror=[];var wasmTable;var getWasmTableEntry=function(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func};var wasmImports={j:___assert_fail,r:___cxa_begin_catch,x:___cxa_end_catch,b:___cxa_find_matching_catch_2,i:___cxa_find_matching_catch_3, -M:___cxa_rethrow,B:___cxa_throw,db:___cxa_uncaught_exceptions,f:___resumeException,ca:___syscall_fcntl64,ya:___syscall_fstat64,ua:___syscall_getcwd,qa:___syscall_getdents64,Ba:___syscall_ioctl,va:___syscall_lstat64,ra:___syscall_mkdirat,wa:___syscall_newfstatat,_:___syscall_openat,Z:___syscall_readlinkat,X:___syscall_rmdir,xa:___syscall_stat64,Y:___syscall_unlinkat,oa:___syscall_utimensat,za:__emscripten_get_now_is_monotonic,eb:__emscripten_throw_longjmp,$a:__mktime_js,Za:__mmap_js,_a:__munmap_js, -pa:__tzset_js,v:_abort,aa:_emscripten_date_now,$:_emscripten_get_now,Aa:_emscripten_memcpy_js,na:_emscripten_resize_heap,sa:_environ_get,ta:_environ_sizes_get,C:_exit,K:_fd_close,ba:_fd_read,ab:_fd_seek,R:_fd_write,u:invoke_di,N:invoke_dii,E:invoke_diii,Ea:invoke_fif,ma:invoke_fiii,t:invoke_i,d:invoke_ii,P:invoke_iidd,Ua:invoke_iidddddd,Ma:invoke_iiddiii,e:invoke_iii,ha:invoke_iiiddddd,Oa:invoke_iiiddiii,O:invoke_iiiff,Pa:invoke_iiiffff,k:invoke_iiii,l:invoke_iiiii,Ga:invoke_iiiiid,Wa:invoke_iiiiifi, -q:invoke_iiiiii,T:invoke_iiiiiiddiiiii,n:invoke_iiiiiii,z:invoke_iiiiiiii,D:invoke_iiiiiiiii,H:invoke_iiiiiiiiii,U:invoke_iiiiiiiiiii,F:invoke_iiiiiiiiiiii,ja:invoke_iiiiiiiiiiiiiiiiiiiiiiiiiii,bb:invoke_ji,Ya:invoke_jiiii,o:invoke_v,Ha:invoke_vdii,c:invoke_vi,J:invoke_vid,V:invoke_vidd,ka:invoke_viddd,Ta:invoke_vidddddddd,Va:invoke_viddi,la:invoke_vidi,Qa:invoke_viffffi,h:invoke_vii,A:invoke_viid,La:invoke_viidddd,Ka:invoke_viiddddddi,Ca:invoke_viiddiiiii,Fa:invoke_viif,g:invoke_viii,Ia:invoke_viiid, -ea:invoke_viiiddiiiii,ga:invoke_viiiddiiiiii,Ja:invoke_viiidi,Na:invoke_viiidiiiddddd,m:invoke_viiii,L:invoke_viiiid,da:invoke_viiiidii,p:invoke_viiiii,fa:invoke_viiiiid,ia:invoke_viiiiiff,s:invoke_viiiiii,y:invoke_viiiiiii,G:invoke_viiiiiiii,W:invoke_viiiiiiiii,I:invoke_viiiiiiiiii,S:invoke_viiiiiiiiiii,Da:invoke_viiiiiiiiiiii,Xa:invoke_viiiiiiiiiiiiii,Q:invoke_viiiiiiiiiiiiiii,Ra:js_free_id,Sa:js_get_stream_id,w:_llvm_eh_typeid_for,a:wasmMemory,cb:_strftime_l};var wasmExports=createWasm();var ___wasm_call_ctors= -function(){return(___wasm_call_ctors=wasmExports["fb"])()};var ___cxa_free_exception=function(a0){return(___cxa_free_exception=wasmExports["__cxa_free_exception"])(a0)};var _malloc=Module["_malloc"]=function(a0){return(_malloc=Module["_malloc"]=wasmExports["hb"])(a0)};var _free=Module["_free"]=function(a0){return(_free=Module["_free"]=wasmExports["ib"])(a0)};var setTempRet0=function(a0){return(setTempRet0=wasmExports["jb"])(a0)};var ___errno_location=function(){return(___errno_location=wasmExports["kb"])()}; -var _InitializeFontsBin=Module["_InitializeFontsBin"]=function(a0,a1){return(_InitializeFontsBin=Module["_InitializeFontsBin"]=wasmExports["lb"])(a0,a1)};var _InitializeFontsBase64=Module["_InitializeFontsBase64"]=function(a0,a1){return(_InitializeFontsBase64=Module["_InitializeFontsBase64"]=wasmExports["mb"])(a0,a1)};var _InitializeFontsRanges=Module["_InitializeFontsRanges"]=function(a0){return(_InitializeFontsRanges=Module["_InitializeFontsRanges"]=wasmExports["nb"])(a0)};var _SetFontBinary=Module["_SetFontBinary"]= -function(a0,a1,a2){return(_SetFontBinary=Module["_SetFontBinary"]=wasmExports["ob"])(a0,a1,a2)};var _IsFontBinaryExist=Module["_IsFontBinaryExist"]=function(a0){return(_IsFontBinaryExist=Module["_IsFontBinaryExist"]=wasmExports["pb"])(a0)};var _GetType=Module["_GetType"]=function(a0,a1){return(_GetType=Module["_GetType"]=wasmExports["qb"])(a0,a1)};var _Open=Module["_Open"]=function(a0,a1,a2){return(_Open=Module["_Open"]=wasmExports["rb"])(a0,a1,a2)};var _GetErrorCode=Module["_GetErrorCode"]=function(a0){return(_GetErrorCode= -Module["_GetErrorCode"]=wasmExports["sb"])(a0)};var _Close=Module["_Close"]=function(a0){return(_Close=Module["_Close"]=wasmExports["tb"])(a0)};var _GetInfo=Module["_GetInfo"]=function(a0){return(_GetInfo=Module["_GetInfo"]=wasmExports["ub"])(a0)};var _GetPixmap=Module["_GetPixmap"]=function(a0,a1,a2,a3,a4){return(_GetPixmap=Module["_GetPixmap"]=wasmExports["vb"])(a0,a1,a2,a3,a4)};var _GetGlyphs=Module["_GetGlyphs"]=function(a0,a1){return(_GetGlyphs=Module["_GetGlyphs"]=wasmExports["wb"])(a0,a1)}; -var _GetLinks=Module["_GetLinks"]=function(a0,a1){return(_GetLinks=Module["_GetLinks"]=wasmExports["xb"])(a0,a1)};var _GetStructure=Module["_GetStructure"]=function(a0){return(_GetStructure=Module["_GetStructure"]=wasmExports["yb"])(a0)};var _GetInteractiveFormsInfo=Module["_GetInteractiveFormsInfo"]=function(a0){return(_GetInteractiveFormsInfo=Module["_GetInteractiveFormsInfo"]=wasmExports["zb"])(a0)};var _GetInteractiveFormsFonts=Module["_GetInteractiveFormsFonts"]=function(a0,a1){return(_GetInteractiveFormsFonts= -Module["_GetInteractiveFormsFonts"]=wasmExports["Ab"])(a0,a1)};var _GetInteractiveFormsAP=Module["_GetInteractiveFormsAP"]=function(a0,a1,a2,a3,a4,a5,a6,a7){return(_GetInteractiveFormsAP=Module["_GetInteractiveFormsAP"]=wasmExports["Bb"])(a0,a1,a2,a3,a4,a5,a6,a7)};var _GetButtonIcons=Module["_GetButtonIcons"]=function(a0,a1,a2,a3,a4,a5){return(_GetButtonIcons=Module["_GetButtonIcons"]=wasmExports["Cb"])(a0,a1,a2,a3,a4,a5)};var _GetAnnotationsInfo=Module["_GetAnnotationsInfo"]=function(a0,a1){return(_GetAnnotationsInfo= -Module["_GetAnnotationsInfo"]=wasmExports["Db"])(a0,a1)};var _GetAnnotationsAP=Module["_GetAnnotationsAP"]=function(a0,a1,a2,a3,a4,a5,a6){return(_GetAnnotationsAP=Module["_GetAnnotationsAP"]=wasmExports["Eb"])(a0,a1,a2,a3,a4,a5,a6)};var _GetFontBinary=Module["_GetFontBinary"]=function(a0,a1){return(_GetFontBinary=Module["_GetFontBinary"]=wasmExports["Fb"])(a0,a1)};var _DestroyTextInfo=Module["_DestroyTextInfo"]=function(a0){return(_DestroyTextInfo=Module["_DestroyTextInfo"]=wasmExports["Gb"])(a0)}; -var _IsNeedCMap=Module["_IsNeedCMap"]=function(a0){return(_IsNeedCMap=Module["_IsNeedCMap"]=wasmExports["Hb"])(a0)};var _SetCMapData=Module["_SetCMapData"]=function(a0,a1,a2){return(_SetCMapData=Module["_SetCMapData"]=wasmExports["Ib"])(a0,a1,a2)};var _ScanPage=Module["_ScanPage"]=function(a0,a1,a2){return(_ScanPage=Module["_ScanPage"]=wasmExports["Jb"])(a0,a1,a2)};var _GetImageBase64=Module["_GetImageBase64"]=function(a0,a1){return(_GetImageBase64=Module["_GetImageBase64"]=wasmExports["Kb"])(a0, -a1)};var _GetImageBase64Len=Module["_GetImageBase64Len"]=function(a0){return(_GetImageBase64Len=Module["_GetImageBase64Len"]=wasmExports["Lb"])(a0)};var _GetImageBase64Ptr=Module["_GetImageBase64Ptr"]=function(a0){return(_GetImageBase64Ptr=Module["_GetImageBase64Ptr"]=wasmExports["Mb"])(a0)};var _GetImageBase64Free=Module["_GetImageBase64Free"]=function(a0){return(_GetImageBase64Free=Module["_GetImageBase64Free"]=wasmExports["Nb"])(a0)};var _setThrew=function(a0,a1){return(_setThrew=wasmExports["Ob"])(a0, -a1)};var stackSave=function(){return(stackSave=wasmExports["Pb"])()};var stackRestore=function(a0){return(stackRestore=wasmExports["Qb"])(a0)};var ___cxa_decrement_exception_refcount=function(a0){return(___cxa_decrement_exception_refcount=wasmExports["Rb"])(a0)};var ___cxa_increment_exception_refcount=function(a0){return(___cxa_increment_exception_refcount=wasmExports["Sb"])(a0)};var ___cxa_can_catch=function(a0,a1,a2){return(___cxa_can_catch=wasmExports["Tb"])(a0,a1,a2)};var ___cxa_is_pointer_type= -function(a0){return(___cxa_is_pointer_type=wasmExports["Ub"])(a0)};var dynCall_ji=Module["dynCall_ji"]=function(a0,a1){return(dynCall_ji=Module["dynCall_ji"]=wasmExports["Vb"])(a0,a1)};var dynCall_jiiii=Module["dynCall_jiiii"]=function(a0,a1,a2,a3,a4){return(dynCall_jiiii=Module["dynCall_jiiii"]=wasmExports["Wb"])(a0,a1,a2,a3,a4)};var ___start_em_js=Module["___start_em_js"]=2729048;var ___stop_em_js=Module["___stop_em_js"]=2729217;function invoke_iii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1, -a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(index,a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3, -a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(index,a1){var sp=stackSave();try{getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(index){var sp=stackSave();try{getWasmTableEntry(index)()}catch(e){stackRestore(sp); -if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(index){var sp= -stackSave();try{return getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiifi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddi(index, -a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidi(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidddddd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vid(index, -a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidd(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidd(index,a1,a2, -a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddd(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiiiiiiiiiiiiiiii(index, -a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){stackRestore(sp);if(e!==e+0)throw e; -_setThrew(1,0)}}function invoke_iiiiiiddiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viffffi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiffff(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1, -a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiff(index,a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiff(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1, -a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiddiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiidiiiddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_dii(index, -a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiddiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!== -e+0)throw e;_setThrew(1,0)}}function invoke_iiiddddd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiddiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10, -a11){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_di(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viidddd(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiddddddi(index, +Infinity:R(Y(e))*65536;if(R(e)<2147483648){J[c+8>>2]=~~e;return}J[c+8>>2]=-2147483648}function Zyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;b=0;while(1){if(!(b&255)){g=K[e|0];e=e+1|0;b=128}if(b&g){H[c|0]=K[c|0]^-1;d=J[a+588>>2]}b=(b&254)>>>1|0;c=J[a+584>>2]+c|0;f= +f+1|0;if((f|0)<(d|0))continue;break}break b}if((d|0)<=0)break a;b=0;while(1){if(!(b&255)){g=K[e|0];e=e+1|0;b=128}b=b&255;H[c|0]=b&g?-1:0;b=b>>>1|0;c=J[a+584>>2]+c|0;d=J[a+588>>2];f=f+1|0;if((d|0)>(f|0))continue;break}}if((d|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;c=0;e=0;d=0;while(1){if(!(c&255)){e=K[f|0];f=f+1|0;c=128}c=c&255;H[b|0]=(c&e)!=0;c=c>>>1|0;b=J[a+584>>2]+b|0;d=d+1|0;if((d|0)>2])continue; +break}}return 0}function SM(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;g=fc-16|0;fc=g;a:{if(H[a+372|0]&1){i=J[a+52>>2];j=J[a+48>>2];l=L[a+46>>1];k=L[a+44>>1];h=J[a+36>>2];m=J[a+40>>2];f=a- -64|0;n=J[f+4>>2];J[g+8>>2]=J[f>>2];J[g+12>>2]=n;f=J[a+60>>2];J[g>>2]=J[a+56>>2];J[g+4>>2]=f;f=a+290|0;break a}i=J[a+88>>2];j=J[a+84>>2];l=L[a+82>>1];k=L[a+80>>1];h=J[a+72>>2];m=J[a+76>>2];f=J[a+104>>2];J[g+8>>2]=J[a+100>>2];J[g+12>>2]=f;f=J[a+96>>2];J[g>>2]=J[a+92>>2];J[g+4>>2]=f;f=a+292|0}f=L[f>> +1];b:{if(f>>>0>=k>>>0){if(K[a+565|0])J[a+12>>2]=134;I[e>>1]=0;a=1;break b}J[d+16>>2]=i;J[d+12>>2]=j;I[d+10>>1]=l;I[d+8>>1]=k;J[d>>2]=h;J[d+4>>2]=m;h=J[g+4>>2];J[d+20>>2]=J[g>>2];J[d+24>>2]=h;h=J[g+12>>2];J[d+28>>2]=J[g+8>>2];J[d+32>>2]=h;I[e>>1]=f;e=b;b=f<<3;d=b+i|0;b=b+j|0;b=kc[J[a+576>>2]](a,J[d>>2]-J[b>>2]|0,J[d+4>>2]-J[b+4>>2]|0)|0;o=e,p=Od(b,I[a+302>>1],J[a+568>>2]),J[o>>2]=p;o=c,p=Od(b,I[a+304>>1],J[a+568>>2]),J[o>>2]=p;a=0}fc=g+16|0;return a}function Tyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g= +0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];c=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;e=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;b=0;while(1){if(!(b&255)){g=K[e|0];e=e+1|0;b=128}if(b&g){H[c|0]=K[c|0]^1;d=J[a+588>>2]}b=(b&254)>>>1|0;c=J[a+584>>2]+c|0;f=f+1|0;if((f|0)<(d|0))continue;break}break b}if((d|0)<=0)break a;b=0;while(1){if(!(b&255)){g=K[e|0];e=e+1|0;b=128}b=b&255;H[c|0]=(b&g)!= +0;b=b>>>1|0;c=J[a+584>>2]+c|0;d=J[a+588>>2];f=f+1|0;if((d|0)>(f|0))continue;break}}if((d|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;f=J[a+636>>2]+J[a+616>>2]|0;c=0;e=0;d=0;while(1){if(!(c&255)){e=K[f|0];f=f+1|0;c=128}c=c&255;H[b|0]=(c&e)!=0;c=c>>>1|0;b=J[a+584>>2]+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function GHa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-144|0;fc=d;a:{a=K[b+11|0];if(a<<24>>24<0?J[b+4>>2]:a){a=d+4|0; +J[a+4>>2]=0;J[a+60>>2]=2381548;J[a>>2]=2381528;J[699344]=0;f=a+60|0;c=a+8|0;da(3019,f|0,c|0);e=J[699344];J[699344]=0;b:{c:{d:{if((e|0)!=1){J[a+132>>2]=0;J[a+136>>2]=-1;J[a+60>>2]=2381492;J[a>>2]=2381472;J[699344]=0;c=_(5050,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;J[c>>2]=2381648;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+56>>2]=8;J[699344]=0;da(5051,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;if(H[a+51|0]<0)uc(J[a+40>>2]);ai(c);break c}break b}b=Z()|0;break c}b=Z()| +0}bg(f);ba(b|0);B()}J[d>>2]=0;b=a+J[J[a>>2]-12>>2]|0;J[b+4>>2]=J[b+4>>2]&-75|8;J[699344]=0;aa(5057,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;c=J[d>>2];J[a+60>>2]=2381492;J[a>>2]=2381472;J[a+8>>2]=2381648;if(H[a+51|0]<0)uc(J[a+40>>2]);ai(a+8|0);bg(a+60|0)}fc=d+144|0;return c|0}b=Z()|0;UX(a);ba(b|0);B()}function vyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[J[a+536>>2]+88>>2];e=(J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0)+P(J[d+1164>>2],J[a+580>>2])|0;d=J[a+644>>2];a:{b:{c:switch(K[a+2253| +0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){c=K[e|0]|K[e+1|0]<<8;b=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=b+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[e|0]=c;H[e+1|0]=c>>>8;c=e+2|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[d+2|0]|K[d+3|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;c=e+4|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[d+4|0]|K[d+5|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>> +8;c=e+6|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[d+6|0]|K[d+7|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d+8|0;e=e+8|0;g=g+1|0;if((g|0)>2])continue;break}}return 0}xc(e,d,J[a+588>>2]<<3);return 0}function uhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;c=J[b+72>>2];d=J[a+100>>2];J[e+12>>2]=0;b=kc[J[b+36>>2]](b)|0;a:{if((b|0)<0|J[a+304>>2])break a;c=M[c+4>>2]/100|0;c=b>>>0>>0?b:c;d=_c(d,252,0,c,0,e+12|0);J[a+304>>2]=d;if(J[e+12>>2])break a; +J[a+300>>2]=c;if(!c)break a;b=0;if(c>>>0>=4){h=c&67108860;while(1){a=d+P(b,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|1,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|2,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;a=d+P(b|3,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;b=b+4|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}c=c&3;if(!c)break a; +while(1){a=d+P(b,252)|0;J[a+116>>2]=1;J[a+108>>2]=2596864;J[a+112>>2]=7;J[a+180>>2]=3932;J[a+4>>2]=4;b=b+1|0;g=g+1|0;if((c|0)!=(g|0))continue;break}}fc=e+16|0}function rlb(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;if(M[b+160>>2]>>0)pe(b,8);c=K[a+3|0]|K[a+2|0]<<8;j=c+a|0;if(!(c>>>0>=518&M[b+160>>2]>=j>>>0))pe(b,8);c=a+6|0;while(1){f=K[c+1|0];g=f|K[c|0]<<8;if(!(!(f&7)|J[b+164>>2]<2))pe(b,8);c=c+2|0;f=g>>>3|0;h=f>>>0>h>>>0?f:h;d=d+1|0;if((d|0)!=256)continue;break}c=a+ +518|0;g=(c+(h<<3)|0)+8|0;if(g>>>0>M[b+160>>2])pe(b,8);d=0;while(1){f=d;a=c+8|0;d=K[c+3|0]|K[c+2|0]<<8;a:{if(!d){c=a;break a}e=K[c+6|0];k=K[c+7|0];l=K[c+4|0];m=K[c+5|0];i=K[c|0];n=K[c+1|0];b:{if(J[b+164>>2]<2)break b;i=n|i<<8;if(i>>>0<=255&256-i>>>0>=d>>>0)break b;pe(b,8)}e=e<<8|k;if(!e){c=a;break a}e=e+(c+6|0)|0;if(!(e>>>0>=g>>>0&e+(d<<1)>>>0<=j>>>0))pe(b,9);if(J[b+164>>2]<=0){c=a;break a}e=l<<8|m;d=((d<<1)+c|0)+8|0;c=a;while(1){a=K[c+1|0]|K[c|0]<<8;if(!(!a|M[b+172>>2]>(a+e&65535)>>>0))pe(b,16);c= +c+2|0;if(d>>>0>c>>>0)continue;break}}d=f+1|0;if((f|0)!=(h|0))continue;break}return 0}function o2(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=-1;a:{if(!(!d|(!a|!b))){if(!c){J[b>>2]=0;J[d>>2]=0;return 0}e=J[b>>2]/2|0;f=a;j=c;h=J[d>>2];b:{if((h|0)<=0)break b;k=h+j|0;l=(e<<1)+f|0;while(1){e=H[j|0];g=e&255;h=(e|0)>=0;i=0;c:{if(h)break c;if(e>>>0<=4294967231){J[b>>2]=f-a;J[d>>2]=j-c;return-2}if(e>>>0<=4294967263){g=g&31;i=1;break c}if(e>>>0<=4294967279){g=g&15;i=2;break c}if(e>>> +0>4294967287)break a;g=g&7;i=3}e=j+1|0;if((i|0)>(k-e|0))break b;d:{e:{if(!(e>>>0>=k>>>0|h)){while(1){f:{h=e+1|0;e=K[e|0];if((e&192)!=128)break f;g=e&63|g<<6;i=i-1|0;if(!i)break f;e=h;if(k>>>0>e>>>0)continue}break}if(g>>>0>65535)break e;e=h}if(f>>>0>=l>>>0)break b;I[f>>1]=g;h=e;f=f+2|0;break d}if(g>>>0>1114111|f+2>>>0>=l>>>0)break b;I[f+2>>1]=g&1023|56320;I[f>>1]=g+16711680>>>10|55296;f=f+4|0}j=h;if(k>>>0>h>>>0)continue;break}}J[b>>2]=f-a;J[d>>2]=j-c;e=J[b>>2]}return e|0}J[b>>2]=f-a;J[d>>2]=j-c;return-2} +function o1(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;b=K[J[J[a+36>>2]+16>>2]];a:{if(((b&223)-65&255)>>>0<=25){d=kc[J[663198]](10)|0;if(!d){se(a,0);break a}H[d|0]=b;Zd(a);c=K[J[J[a+36>>2]+16>>2]];g=1;h=10;while(1){b:{c:{d:{if((c-48&255)>>>0<10|((c&-33)-65&255)>>>0<26)break d;b=c&255;if(b-45>>>0<2)break d;if((b|0)!=95)break c}e=g+1|0;if((e|0)<(h|0)){b=d;break b}h=h<<1;b=kc[J[663200]](d,h)|0;if(b)break b;c=0;se(a,0);kc[J[663199]](d);break a}H[d+g|0]=0;c=d;break a}d=b;H[b+g|0]=c;Zd(a);g=e;b= +J[a+36>>2];e=J[b+16>>2];c=K[e|0];if(c)continue;e:{if(J[a+292>>2])break e;if(!((e-J[b+12>>2]|0)<501|(J[b+20>>2]-e|0)>499)){_g(a);b=J[a+36>>2];if(J[a+292>>2])break e}if((J[b+20>>2]-J[b+16>>2]|0)>249)break e;Rd(a);b=J[a+36>>2]}c=K[J[b+16>>2]];continue}}if(!(!J[a+212>>2]|J[a+172>>2]!=-1))break a;J[a+84>>2]=79;J[f>>2]=14074;Hc(0,0,0,a,0,1,79,3,0,0,0,0,32906,f);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}fc=f+16|0;return c}function k9(a,b,c,d,e,f,g,h){var i=0,j=0,k=0;a:{b:{k=(P(d,f)<<2)+a|0;i=(e| +0)/32|0;c:{if(!J[k+(i<<2)>>2])break c;j=i<<5|31;if((j|0)<(e|0)|(b|0)<=(e|0))break c;while(1){if(J[k+(e>>5<<2)>>2]>>>(e^-1)&1)break b;if((e|0)>=(j|0))break c;e=e+1|0;if((e|0)<(b|0))continue;break}}i=i+1|0;e=i<<5;if((e|0)<(b|0)){i=k+(i<<2)|0;while(1){d:{if(!J[i>>2])break d;j=0;if((b|0)<=(e|0))break d;while(1){if(J[k+(e>>5<<2)>>2]>>>(e^-1)&1)break b;e=e+1|0;if(j>>>0>30)break d;j=j+1|0;if((b|0)>(e|0))continue;break}}i=i+4|0;e=e+32|0;if((e|0)<(b|0))continue;break}}e=0;f=f+1|0;if((b|0)<=0|(f|0)>=(c|0))break a; +while(1){k=(P(d,f)<<2)+a|0;i=k;while(1){e:{if(!J[i>>2])break e;j=0;if((b|0)<=(e|0))break e;while(1){if(J[k+(e>>5<<2)>>2]>>>(e^-1)&1)break b;e=e+1|0;if(j>>>0>30)break e;j=j+1|0;if((b|0)>(e|0))continue;break}}i=i+4|0;e=e+32|0;if((e|0)<(b|0))continue;break}e=0;f=f+1|0;if((f|0)!=(c|0))continue;break}break a}J[g>>2]=e;J[h>>2]=f;e=1}return e}function Nhb(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;d=fc-336|0;fc=d;i=J[a+100>>2];kc[J[b+60>>2]](b,d+272|0,4,d+268|0);f=J[d+268>>2];a:{if((f|0)<0){c= +162;break a}c=3;if(f-5>>>0<4294967292)break a;j=J[b+8>>2];k=J[b>>2];c=JD(a,0,f);J[d+332>>2]=c;if(c)break a;if(J[d+268>>2]>0){f=J[a+532>>2]+88|0;while(1){a=P(g,12);c=a+(d+272|0)|0;J[b>>2]=J[c>>2];J[b+8>>2]=J[c+4>>2];kc[J[b+60>>2]](b,d+16|0,20,d+12|0);c=3;e=J[d+12>>2];if(e-21>>>0<4294967276)break a;a=a+f|0;if(J[a+4>>2])break a;e=_c(i,4,0,e<<1,0,d+332|0);J[a+4>>2]=e;c=J[d+332>>2];if(c)break a;c=J[d+12>>2];J[a+8>>2]=e+(c<<2);H[a|0]=c;if((c|0)>0){c=0;while(1){e=(d+16|0)+P(c,12)|0;J[b>>2]=J[e>>2]+1;J[b+ +8>>2]=J[e+4>>2]-1;e=kc[J[b+36>>2]](b)|0;h=c<<2;J[h+J[a+4>>2]>>2]=e;e=kc[J[b+40>>2]](b,0)|0;J[J[a+8>>2]+h>>2]=e;c=c+1|0;if((c|0)>2])continue;break}}g=g+1|0;if((g|0)>2])continue;break}g=J[d+332>>2]}J[b+8>>2]=j;J[b>>2]=k;c=g}J[b+12>>2]=c;fc=d+336|0}function r_(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a>>2];if((kc[J[J[d>>2]+40>>2]](d,J[a+24>>2],J[a+20>>2])|0)==J[a+20>>2]){a:{b:{c:{d:{c=J[a+12>>2];switch(c-1|0){case 7:break a;case 0:break c;case 15:break d;default:break b}}if(J[a+16>> +2]<=0)break a;while(1){H[J[a+28>>2]+b|0]=K[J[a+24>>2]+(b<<1)|0];b=b+1|0;if((b|0)>2])continue;break}break a}if(J[a+16>>2]<=0)break a;d=J[a+24>>2];while(1){c=K[d|0];H[J[a+28>>2]+b|0]=c>>>7;H[J[a+28>>2]+(b|1)|0]=c>>>6&1;H[J[a+28>>2]+(b|2)|0]=c>>>5&1;H[J[a+28>>2]+(b|3)|0]=c>>>4&1;H[J[a+28>>2]+(b|4)|0]=c>>>3&1;H[J[a+28>>2]+(b|5)|0]=c>>>2&1;H[J[a+28>>2]+(b|6)|0]=c>>>1&1;H[J[a+28>>2]+(b|7)|0]=c&1;d=d+1|0;b=b+8|0;if((b|0)>2])continue;break}break a}if(J[a+16>>2]<=0)break a;g=-1<>2];d=0;while(1){if((b|0)<(c|0)){f=K[e|0]|f<<8;e=e+1|0;b=b+8|0}H[J[a+28>>2]+d|0]=f>>>b-c&g;c=J[a+12>>2];b=b-c|0;d=d+1|0;if((d|0)>2])continue;break}}a=J[a+28>>2]}else a=0;return a|0}function Sha(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,m=0,n=0;k=fc-16|0;fc=k;l=j;a:{if(a){j=k+4|0;a=qR(b);kc[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;kc[J[J[a>>2]+32>>2]](j,a);Fi(i,j);jd(j);kc[J[J[a>>2]+28>> +2]](j,a);Fi(h,j);jd(j);m=d,n=kc[J[J[a>>2]+12>>2]](a)|0,H[m|0]=n;m=e,n=kc[J[J[a>>2]+16>>2]](a)|0,H[m|0]=n;kc[J[J[a>>2]+20>>2]](j,a);Fi(f,j);jd(j);kc[J[J[a>>2]+24>>2]](j,a);Fi(g,j);jd(k+4|0);a=kc[J[J[a>>2]+36>>2]](a)|0;break a}j=k+4|0;a=pR(b);kc[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;kc[J[J[a>>2]+32>>2]](j,a);Fi(i,j);jd(j);kc[J[J[a>>2]+28>>2]](j,a);Fi(h,j);jd(j);m=d,n=kc[J[J[a>>2]+12>>2]](a)|0,H[m|0]=n;m=e,n=kc[J[J[a>>2]+16>>2]](a)|0,H[m|0]=n;kc[J[J[a>> +2]+20>>2]](j,a);Fi(f,j);jd(j);kc[J[J[a>>2]+24>>2]](j,a);Fi(g,j);jd(k+4|0);a=kc[J[J[a>>2]+36>>2]](a)|0}J[l>>2]=a;fc=k+16|0}function RD(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;h=fc-16|0;fc=h;k=J[a+12>>2];if(k)J[(J[a+20>>2]+(k<<4)|0)-4>>2]=e;i=J[a+16>>2];l=k+1|0;a:{b:{if(i>>>0>=l>>>0){g=J[a+20>>2];break b}J[h+4>>2]=0;e=i;i=(k&-8)+8|0;g=_c(f,16,e,i,J[a+20>>2],h+4|0);J[a+20>>2]=g;j=J[h+4>>2];if(j)break a;J[a+16>>2]=i}e=((l<<4)+g|0)-16|0;J[e>>2]=0;J[((k<<4)+g|0)+12>>2]=0;J[a+12>>2]=l;if(!l){c:{if(i){e= +g;break c}J[h+8>>2]=0;e=_c(f,16,0,8,g,h+8|0);J[a+20>>2]=e;j=J[h+8>>2];if(j)break a;J[a+16>>2]=8}J[e>>2]=0;J[e+12>>2]=0;J[a+12>>2]=1}a=J[e+4>>2];J[h+12>>2]=0;g=d+7>>>3|0;a=a+7>>>3|0;d:{if(g>>>0<=a>>>0){f=J[e+8>>2];break d}i=a;a=g+7&1073741816;f=_c(f,1,i,a,J[e+8>>2],h+12|0);J[e+8>>2]=f;j=J[h+12>>2];if(j)break a;J[e+4>>2]=a<<3}J[e>>2]=d;j=0;if(!d)break a;b=(c>>>3|0)+b|0;e=128>>>(c&7)|0;a=128;while(1){c=K[f|0];H[f|0]=K[b|0]&e?c|a:c&(a^-1);c=a>>>0<2;a=c?128:a>>1;g=e>>>0<2;e=g?128:e>>>1|0;f=c+f|0;b=b+g| +0;d=d-1|0;if(d)continue;break}}fc=h+16|0;return j}function N4a(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;l=J[a+328>>2]-1|0;m=J[a+448>>2];a:{while(1){f=J[a+144>>2];c=J[a+152>>2];if((f|0)>=(c|0)&((c|0)!=(f|0)|M[a+148>>2]>M[a+156>>2]))break a;if(kc[J[J[a+456>>2]>>2]](a)|0)continue;break}return 0}if(J[a+36>>2]>0){d=J[a+216>>2];while(1){b:{if(!J[d+52>>2])break b;e=h<<2;c=J[d+12>>2];n=kc[J[J[a+4>>2]+32>>2]](a,J[(e+m|0)+72>>2],P(c,J[a+156>>2]),c,0)|0;g=!J[d+28>>2];if(M[a+156>> +2]>>0)c=J[d+12>>2];else{f=J[d+12>>2];c=M[d+32>>2]%(f>>>0)|0;c=c?c:f}if(g|(c|0)<=0)break b;o=J[(e+J[a+468>>2]|0)+4>>2];i=J[b+e>>2];g=0;e=1;while(1){f=0;if(e){e=J[(g<<2)+n>>2];j=0;k=0;while(1){kc[o|0](a,d,e,i,j);e=e+128|0;j=J[d+36>>2]+j|0;f=J[d+28>>2];k=k+1|0;if(f>>>0>k>>>0)continue;break}}i=(J[d+40>>2]<<2)+i|0;e=f;g=g+1|0;if((c|0)!=(g|0))continue;break}}d=d+88|0;h=h+1|0;if((h|0)>2])continue;break}}b=J[a+156>>2]+1|0;J[a+156>>2]=b;return(b>>>0>2]?3:4)|0}function wT(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(+a);f=v(1)|0;i=v(0)|0;g=f&2147483647;d=g;if(d>>>0>=1141899264){A(1.5707963267948966);d=v(1)|0;f=v(0)|0;A(+a);b=v(1)|0;v(0)|0;x(0,f|0);x(1,d&2147483647|b&-2147483648);b=g;return j=a,k=+z(),l=(b|0)==2146435072&(i|0)!=0|b>>>0>2146435072,l?j:k}a:{b:{if(d>>>0<=1071382527){b=-1;if(d>>>0>=1044381696)break b;break a}a=R(a);if(d>>>0<=1072889855){if(d>>>0<=1072037887){a=(a+a+-1)/(a+2);b=0;break b}a=(a+-1)/(a+1);b=1;break b}if(d>>>0<=1073971199){a=(a+-1.5)/(a*1.5+1);b=2; +break b}a=-1/a;b=3}e=a*a;c=e*e;h=c*(c*(c*(c*(c*-.036531572744216916+-.058335701337905735)+-.0769187620504483)+-.11111110405462356)+-.19999999999876483);e=e*(c*(c*(c*(c*(c*.016285820115365782+.049768779946159324)+.06661073137387531)+.09090887133436507)+.14285714272503466)+.3333333333333293);if(d>>>0<=1071382527)return a-a*(h+e);b=b<<3;a=O[b+2464048>>3]-(a*(h+e)-O[b+2464080>>3]-a);a=(f|0)<0?-a:a}return a}function MGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-160|0;fc=d;J[a+8>>2]=0;J[a>>2]=0;J[a+ +4>>2]=0;J[699344]=0;b=ga(5034,d+16|0,b|0,24)|0;e=J[699344];J[699344]=0;a:{if((e|0)!=1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;while(1){J[699344]=0;e=ga(5035,b|0,d|0,c|0)|0;f=J[699344];J[699344]=0;b:{c:{d:{if((f|0)!=1){if(K[(e+J[J[e>>2]-12>>2]|0)+16|0]&5)break c;e=J[a+4>>2];if((e|0)!=J[a+8>>2]){if(H[d+11|0]>=0){f=J[d+4>>2];J[e>>2]=J[d>>2];J[e+4>>2]=f;J[e+8>>2]=J[d+8>>2];break b}J[699344]=0;ca(15,e|0,J[d>>2],J[d+4>>2]);f=J[699344];J[699344]=0;if((f|0)!=1)break b;c=Z()|0;J[a+4>>2]=e;break d}J[699344]=0;da(2962, +a|0,d|0);e=J[699344];J[699344]=0;if((e|0)!=1)continue}c=Z()|0}if(H[d+11|0]<0)uc(J[d>>2]);ZA(b);break a}if(H[d+11|0]<0)uc(J[d>>2]);J[b+64>>2]=2381836;J[b>>2]=2381796;J[b+12>>2]=2381648;J[b+8>>2]=2381816;if(H[b+55|0]<0)uc(J[b+44>>2]);ai(b+12|0);bg(b- -64|0);fc=d+160|0;return}J[a+4>>2]=e+12;continue}}c=Z()|0}Ag(a);ba(c|0);B()}function htb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>> +8;H[d+12|0]=K[b+36|0];c=L[b+38>>1];c=c<<8|c>>>8;H[d+13|0]=c;H[d+14|0]=c>>>8;c=L[b+40>>1];c=c<<8|c>>>8;H[d+15|0]=c;H[d+16|0]=c>>>8;c=L[b+42>>1];c=c<<8|c>>>8;H[d+17|0]=c;H[d+18|0]=c>>>8;c=L[b+44>>1];c=c<<8|c>>>8;H[d+19|0]=c;H[d+20|0]=c>>>8;c=L[b+46>>1];c=c<<8|c>>>8;H[d+21|0]=c;H[d+22|0]=c>>>8;c=L[b+48>>1];c=c<<8|c>>>8;H[d+23|0]=c;H[d+24|0]=c>>>8;f=K[b+50|0];H[d+25|0]=f;d=d+8|0;g=a;h=J[b>>2];e=18;a:{if(K[b+36|0]!=(f|0))break a;c=L[b+48>>1];e=17;if((c|0)!=L[b+40>>1])break a;e=15;if((c|0)!=L[b+46>>1])break a; +a=L[b+44>>1];e=13;if((a|0)!=L[b+38>>1])break a;e=11;if((a|0)!=L[b+42>>1])break a;e=9;if((a|0)!=(c|0))break a;e=7;if((c|0)!=1)break a;e=5;if(f)break a;a=L[b+32>>1];b=L[b+34>>1];e=4;if((a|0)!=(b|0))break a;e=((b|0)!=0)<<1}return Ce(g,h,e,d)|0}function XY(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:{b:{if(!c)break b;c:{f=J[a+160>>2];if(!f)break c;e=J[a+72>>2];if(!e|!J[e+16>>2]|J[J[e+24>>2]+40>>2]!=(f|0))break c;h=J[c+16>>2];if(!h)break c;g=J[c+24>>2];if(J[g+40>>2]|J[g+44>> +2])break c;e=0;if(h>>>0>=8){k=h&-8;while(1){J[(P(e,52)+g|0)+40>>2]=f;J[(P(e|1,52)+g|0)+40>>2]=f;J[(P(e|2,52)+g|0)+40>>2]=f;J[(P(e|3,52)+g|0)+40>>2]=f;J[(P(e|4,52)+g|0)+40>>2]=f;J[(P(e|5,52)+g|0)+40>>2]=f;J[(P(e|6,52)+g|0)+40>>2]=f;J[(P(e|7,52)+g|0)+40>>2]=f;e=e+8|0;i=i+8|0;if((k|0)!=(i|0))continue;break}}h=h&7;if(h)while(1){J[(P(e,52)+g|0)+40>>2]=f;e=e+1|0;j=j+1|0;if((h|0)!=(j|0))continue;break}if(wI(c,d))break c;return 0}e=J[a+76>>2];if(!e){e=fB();J[a+76>>2]=e;if(!e)break b}yI(c,e);if(!d)break a; +if(!Xp(J[a+180>>2],4819,d))break b;if(!fZ(a,J[a+180>>2],b,d)){Jn(J[a+72>>2]);J[a+72>>2]=0;return 0}l=WY(a,c)}return l|0}fa(2358486,2358254,11620,2370761);B()}function X7a(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;a:{e=J[a+316>>2];b:{if((e|0)<=0)break b;g=J[d>>2];b=J[a+472>>2]+J[b+4>>2]|0;d=K[b+150|0];j=d;f=d-1|0;h=K[b+140|0];if(h){b=0;if(d>>>0>=2){while(1){k=b+1|0;e=J[a+112>>2];if((e|0)>0){d=J[(b<<2)+g>>2];l=e+d|0;e=J[(i<<2)+c>>2];while(1){m=K[e|0];e=e+1|0;d=Ac(d,m, +h)+h|0;if(l>>>0>d>>>0)continue;break}e=J[a+112>>2]}ao(g,b,g,k,f,e);i=i+1|0;b=b+j|0;if((b|0)>2])continue;break}break b}while(1){f=J[a+112>>2];if((f|0)>0){d=J[(b<<2)+g>>2];f=f+d|0;e=J[(i<<2)+c>>2];while(1){k=K[e|0];e=e+1|0;d=Ac(d,k,h)+h|0;if(f>>>0>d>>>0)continue;break}e=J[a+316>>2]}i=i+1|0;b=b+j|0;if((e|0)>(b|0))continue;break}break b}if(d>>>0>=2){b=0;while(1){c=J[a+112>>2];if((c|0)>0)break a;ao(g,b,g,b+1|0,f,c);b=b+j|0;if((b|0)>2])continue;break}break b}b=0;a=J[a+112>>2]<=0;while(1){if(!a)break a; +b=b+j|0;if((e|0)>(b|0))continue;break}}return}while(1)continue}function Kha(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,m=0,n=0;k=fc-16|0;fc=k;l=j;a:{if(a){j=k+4|0;a=mR(b);kc[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;kc[J[J[a>>2]+32>>2]](j,a);vn(i,j);df(j);kc[J[J[a>>2]+28>>2]](j,a);vn(h,j);df(j);m=d,n=kc[J[J[a>>2]+12>>2]](a)|0,J[m>>2]=n;m=e,n=kc[J[J[a>>2]+16>>2]](a)|0,J[m>>2]=n;kc[J[J[a>>2]+20>>2]](j, +a);Fi(f,j);jd(j);kc[J[J[a>>2]+24>>2]](j,a);vn(g,j);df(j);a=kc[J[J[a>>2]+36>>2]](a)|0;break a}j=k+4|0;a=lR(b);kc[J[J[a>>2]+44>>2]](j,a);b=J[k+4>>2];H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;kc[J[J[a>>2]+32>>2]](j,a);vn(i,j);df(j);kc[J[J[a>>2]+28>>2]](j,a);vn(h,j);df(j);m=d,n=kc[J[J[a>>2]+12>>2]](a)|0,J[m>>2]=n;m=e,n=kc[J[J[a>>2]+16>>2]](a)|0,J[m>>2]=n;kc[J[J[a>>2]+20>>2]](j,a);Fi(f,j);jd(j);kc[J[J[a>>2]+24>>2]](j,a);vn(g,j);df(j);a=kc[J[J[a>>2]+36>>2]](a)|0}J[l>>2]=a;fc=k+16|0}function Se(a){var b= +0,c=0,d=0,e=0;c=J[a+144>>2];if(c){b=J[a+148>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;e=J[d>>2];if(e){J[b-8>>2]=e;uc(e)}b=d;if((c|0)!=(b|0))continue;break}d=J[a+144>>2]}J[a+148>>2]=c;uc(d)}c=J[a+132>>2];if(c){b=J[a+136>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;e=J[d>>2];if(e){J[b-8>>2]=e;uc(e)}b=d;if((c|0)!=(b|0))continue;break}d=J[a+132>>2]}J[a+136>>2]=c;uc(d)}c=J[a+120>>2];if(c){b=J[a+124>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;e=J[d>>2];if(e){J[b-8>>2]=e;uc(e)}b=d;if((c|0)!=(b|0))continue; +break}d=J[a+120>>2]}J[a+124>>2]=c;uc(d)}b=J[a+108>>2];if(b){J[a+112>>2]=b;uc(b)}b=J[a+96>>2];if(b){J[a+100>>2]=b;uc(b)}b=J[a+84>>2];if(b){J[a+88>>2]=b;uc(b)}b=J[a+52>>2];if(b){J[a+56>>2]=b;uc(b)}b=J[a+40>>2];if(b){J[a+44>>2]=b;uc(b)}c=J[a+12>>2];if(c){b=J[a+16>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;e=J[d>>2];if(e){J[b-8>>2]=e;uc(e)}b=d;if((c|0)!=(b|0))continue;break}d=J[a+12>>2]}J[a+16>>2]=c;uc(d)}}function R_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=fc-48|0;fc=f;a:{if(!a)break a; +b:switch(J[a+216>>2]-1|0){case 0:c=l2(J[a+8>>2],b,3,c,d,e);if(!c){if(!J[a+268>>2])break a;c=J[a>>2];if(!c)break a;c=J[c+84>>2];if(!c)break a;a=J[a+4>>2];J[f+16>>2]=b;kc[c|0](a,31725,f+16|0);break a}if(J[c+64>>2]|!d)break a;b=J[a+36>>2];c:{if(b){b=J[b+4>>2];if(b)break c}b=J[a+180>>2]}g=c,h=tu(d,b),J[g+64>>2]=h;break a;case 1:c=n2(J[a+8>>2],b,3,c,d,e);if(!c){if(!J[a+268>>2])break a;c=J[a>>2];if(!c)break a;c=J[c+84>>2];if(!c)break a;a=J[a+4>>2];J[f+32>>2]=b;kc[c|0](a,31612,f+32|0);break a}if(J[c+64>> +2]|!d)break a;b=J[a+36>>2];d:{if(b){b=J[b+4>>2];if(b)break d}b=J[a+180>>2]}g=c,h=tu(d,b),J[g+64>>2]=h;break a;default:break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=1;J[f+4>>2]=0;J[f>>2]=b;Hc(0,0,0,a,0,1,1,3,b,0,0,0,31197,f);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}fc=f+48|0}function C2(a){var b=0,c=0,d=0;c=a+148|0;while(1){d=b<<2;I[d+c>>1]=0;I[(d|4)+c>>1]=0;b=b+2|0;if((b|0)!=286)continue;break}I[a+2684>>1]=0;I[a+2440>>1]=0;I[a+2756>>1]=0;I[a+2752>>1]=0;I[a+2748>> +1]=0;I[a+2744>>1]=0;I[a+2740>>1]=0;I[a+2736>>1]=0;I[a+2732>>1]=0;I[a+2728>>1]=0;I[a+2724>>1]=0;I[a+2720>>1]=0;I[a+2716>>1]=0;I[a+2712>>1]=0;I[a+2708>>1]=0;I[a+2704>>1]=0;I[a+2700>>1]=0;I[a+2696>>1]=0;I[a+2692>>1]=0;I[a+2688>>1]=0;I[a+2556>>1]=0;I[a+2552>>1]=0;I[a+2548>>1]=0;I[a+2544>>1]=0;I[a+2540>>1]=0;I[a+2536>>1]=0;I[a+2532>>1]=0;I[a+2528>>1]=0;I[a+2524>>1]=0;I[a+2520>>1]=0;I[a+2516>>1]=0;I[a+2512>>1]=0;I[a+2508>>1]=0;I[a+2504>>1]=0;I[a+2500>>1]=0;I[a+2496>>1]=0;I[a+2492>>1]=0;I[a+2488>>1]=0;I[a+ +2484>>1]=0;I[a+2480>>1]=0;I[a+2476>>1]=0;I[a+2472>>1]=0;I[a+2468>>1]=0;I[a+2464>>1]=0;I[a+2460>>1]=0;I[a+2456>>1]=0;I[a+2452>>1]=0;I[a+2448>>1]=0;I[a+2444>>1]=0;J[a+5804>>2]=0;J[a+5808>>2]=0;I[a+1172>>1]=1;J[a+5800>>2]=0;J[a+5792>>2]=0}function kj(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0;i=h&10;n=g&10;if(!(i|n)){f=f*256;f=f+(f<0?-.5:.5);a:{if(R(f)<2147483648){h=~~f;break a}h=-2147483648}e=e*256;e=e+(e<0?-.5:.5);b:{if(R(e)<2147483648){g=~~e;break b}g=-2147483648}d=d*256;d=d+(d<0?-.5:.5);c:{if(R(d)< +2147483648){a=~~d;break c}a=-2147483648}c=c*256;c=c+(c<0?-.5:.5);if(R(c)<2147483648){ep(b,~~c,a,g,h);return}ep(b,-2147483648,a,g,h);return}if((i|0)!=(n|0)){l=c;j=d;if(g&8){j=O[a+8>>3];l=(e-c)*(j-d)/(f-d)+c}if(g&2){j=O[a+24>>3];l=(e-c)*(j-d)/(f-d)+c}m=e;k=f;if(h&8){k=O[a+8>>3];m=(e-c)*(k-d)/(f-d)+c}if(h&2){k=O[a+24>>3];m=(e-c)*(k-d)/(f-d)+c}c=k*256;c=c+(c<0?-.5:.5);d:{if(R(c)<2147483648){h=~~c;break d}h=-2147483648}c=m*256;c=c+(c<0?-.5:.5);e:{if(R(c)<2147483648){g=~~c;break e}g=-2147483648}c=j*256; +c=c+(c<0?-.5:.5);f:{if(R(c)<2147483648){a=~~c;break f}a=-2147483648}c=l*256;c=c+(c<0?-.5:.5);g:{if(R(c)<2147483648){i=~~c;break g}i=-2147483648}ep(b,i,a,g,h)}}function SMa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{c:{if(!(J[a+8>>2]|!J[a+12>>2])){if((c|0)>0)break c;return 0}if((c|0)<=0|J[a+3504>>2]>=J[a+20>>2])break b;d=J[a+3496>>2];while(1){H[b+f|0]=J[(J[((d<<2)+a|0)+3480>>2]+(P(J[a+32>>2],J[a+3504>>2])<<2)|0)+(J[a+3500>>2]<<2)>>2];d=J[a+3496>>2]+1|0;J[a+3496>>2]=d;d:{if(J[a+188>>2]!=(d| +0))break d;d=0;J[a+3496>>2]=0;e=J[a+3500>>2]+1|0;J[a+3500>>2]=e;if((e|0)!=J[a+16>>2])break d;J[a+3500>>2]=0;e=J[a+3504>>2]+1|0;J[a+3504>>2]=e;if((e|0)>2])break d;return f+1|0}f=f+1|0;if((f|0)!=(c|0))continue;break}return c|0}d=J[a+3472>>2];while(1){e=J[a+3476>>2];if((e|0)==(d|0)){d=J[a+28>>2]+J[a+3504>>2]|0;if((d|0)>=J[a+20>>2])break b;J[a+3504>>2]=d;if(!XI(a))break a;e=J[a+3476>>2];d=J[a+3472>>2]}g=d;d=e-d|0;e=c-f|0;e=(d|0)<(e|0)?d:e;xc(b+f|0,g,e);d=e+J[a+3472>>2]|0;J[a+3472>>2]=d;f=e+f| +0;if((f|0)<(c|0))continue;break}}return f|0}J[a+3504>>2]=J[a+20>>2];return f|0}function w5a(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0;h=J[a+276>>2];if(h)kc[J[J[h>>2]+80>>2]](h,b,c,d,e,f,g);O[a+8>>3]=O[b>>3];O[a+16>>3]=O[c>>3];j=O[d>>3];a:{if(J[a+136>>2]){O[a+24>>3]=O[b>>3]*.3090169943749+j;e=O[c>>3]*.3090169943749+e;break a}O[a+24>>3]=j}O[a+48>>3]=g;O[a+40>>3]=f;O[a+32>>3]=e;d=J[a+304>>2];h=a+308|0;if((d|0)!=(h|0))while(1){J[d+120>>2]=1;b=J[d+4>>2];b:{if(b)while(1){c= +b;b=J[b>>2];if(b)continue;break b}while(1){c=J[d+8>>2];b=J[c>>2]!=(d|0);d=c;if(b)continue;break}}d=c;if((h|0)!=(d|0))continue;break}k=a+316|0;d=J[k>>2];i=a+320|0;if((d|0)!=(i|0))while(1){J[d+120>>2]=1;b=J[d+4>>2];c:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break c}while(1){c=J[d+8>>2];b=J[c>>2]!=(d|0);d=c;if(b)continue;break}}d=c;if((i|0)!=(d|0))continue;break}ki(a+304|0,J[a+308>>2]);J[a+304>>2]=h;J[a+308>>2]=0;J[a+312>>2]=0;ki(k,J[a+320>>2]);J[a+316>>2]=i;J[a+320>>2]=0;J[a+324>>2]=0}function sZa(a, +b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;a:{if(K[J[693464]+464|0])break a;a=J[a+104>>2];b:switch(J[b+388>>2]){case 0:J[c+12>>2]=3;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 1:J[c+12>>2]=14;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 2:J[c+12>>2]=15;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 3:J[c+12>>2]=16;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 4:J[c+12>>2]=17;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 5:J[c+12>>2]=18;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 6:J[c+12>>2]=19;kc[J[J[a>> +2]+460>>2]](a,c+12|0);break a;case 7:J[c+12>>2]=20;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 8:J[c+12>>2]=21;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 9:J[c+12>>2]=22;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 10:J[c+12>>2]=23;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;case 11:J[c+12>>2]=24;kc[J[J[a>>2]+460>>2]](a,c+12|0);break a;default:break b}J[c+12>>2]=3;kc[J[J[a>>2]+460>>2]](a,c+12|0)}fc=c+16|0}function aza(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;f=fc-32|0;fc=f;J[f+ +24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;g=f+16|0;J[g>>2]=2397928;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[699344]=0;ia(5597,b|0,c|0,g|0,1);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[a>>2]=0;c:{d:{b=J[g+8>>2];e:{if(!b)break e;while(1){e=J[b+8>>2];h=J[J[e>>2]+16>>2];J[699344]=0;i=h;h=f+12|0;ia(i|0,h|0,e|0,c|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;J[699344]=0;e=aa(5153,a|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break c;h=J[e>>2];e=J[f+12>>2];J[f+12>>2]=0;f:{if(!e)break f;J[699344]= +0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(i)break f;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}if(h)break e;b=J[b>>2];if(b)continue;break}}id(g);fc=f+32|0;return}b=Z()|0;zc(a);break b}b=Z()|0;zc(f+12|0);zc(a);break b}b=Z()|0}id(g);ba(b|0);B()}ea(0)|0;Bc();B()}function EL(a,b,c,d,e,f,g,h){var i=0,j=0,k=0;i=J[d>>2];a:{b:{c:{d:{if(!f)break d;k=J[f>>2];if(!k)break d;if((c|0)<=0){j=c;break b}if(e>>>0>i>>>0)break c;j=c;break b}if((c|0)<=0){j=c; +break a}if(e>>>0<=i>>>0){j=c;break a}while(1){I[i>>1]=L[b>>1];j=c-1|0;i=i+2|0;b=b+2|0;if(c>>>0<2)break a;c=j;if(e>>>0>i>>>0)continue;break}break a}while(1){I[i>>1]=L[b>>1];J[k>>2]=g;j=c-1|0;k=k+4|0;i=i+2|0;b=b+2|0;if(c>>>0<2)break b;c=j;if(e>>>0>i>>>0)continue;break}}J[f>>2]=k}J[d>>2]=i;if((j|0)>0){e:{if(!a)break e;H[a+65|0]=j;i=a+116|0;a=j&7;f:{if(!a){c=j;break f}k=0;c=j;while(1){I[i>>1]=L[b>>1];c=c-1|0;i=i+2|0;b=b+2|0;k=k+1|0;if((a|0)!=(k|0))continue;break}}if(j>>>0<8)break e;while(1){I[i>>1]=L[b>> +1];I[i+2>>1]=L[b+2>>1];I[i+4>>1]=L[b+4>>1];I[i+6>>1]=L[b+6>>1];I[i+8>>1]=L[b+8>>1];I[i+10>>1]=L[b+10>>1];I[i+12>>1]=L[b+12>>1];I[i+14>>1]=L[b+14>>1];i=i+16|0;b=b+16|0;a=c-9|0;c=c-8|0;if(a>>>0<4294967294)continue;break}}J[h>>2]=15}}function $ya(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;f=fc-32|0;fc=f;J[f+24>>2]=0;J[f+28>>2]=0;J[f+16>>2]=0;J[f+20>>2]=0;g=f+16|0;J[g>>2]=2397928;J[g+4>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[699344]=0;ia(5597,b|0,c|0,g|0,1);b=J[699344];J[699344]=0;a:{b:{if((b| +0)!=1){J[a>>2]=0;c:{d:{b=J[g+8>>2];e:{if(!b)break e;while(1){e=J[b+8>>2];h=J[J[e>>2]+20>>2];J[699344]=0;i=h;h=f+12|0;ia(i|0,h|0,e|0,c|0,d|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;J[699344]=0;e=aa(5153,a|0,h|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break c;h=J[e>>2];e=J[f+12>>2];J[f+12>>2]=0;f:{if(!e)break f;J[699344]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(i)break f;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}if(h)break e;b=J[b>>2]; +if(b)continue;break}}id(g);fc=f+32|0;return}b=Z()|0;zc(a);break b}b=Z()|0;zc(f+12|0);zc(a);break b}b=Z()|0}id(g);ba(b|0);B()}ea(0)|0;Bc();B()}function i4(a){a=a|0;var b=0,c=0,d=0;J[a+4>>2]=1;J[a>>2]=347876;J[a+172>>2]=0;J[a+176>>2]=0;J[a>>2]=352300;J[a+292>>2]=0;J[a+296>>2]=0;J[a+284>>2]=0;J[a+168>>2]=0;J[a+276>>2]=0;J[a+180>>2]=0;J[a+300>>2]=0;b=a+308|0;J[b>>2]=0;J[b+4>>2]=0;c=a+320|0;J[c>>2]=0;J[c+4>>2]=0;J[a+304>>2]=b;J[a+328>>2]=0;d=a+316|0;J[d>>2]=c;ki(a+304|0,0);J[a+304>>2]=b;J[a+308>>2]=0; +J[a+312>>2]=0;ki(d,J[a+320>>2]);J[d>>2]=c;J[a+320>>2]=0;J[a+324>>2]=0;Ac(a+8|0,0,96);J[a+112>>2]=0;J[a+116>>2]=0;I[a+104>>1]=1;J[a+120>>2]=0;J[a+124>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+192>>2]=0;J[a+196>>2]=0;J[a+280>>2]=0;J[a+216>>2]=0;J[a+208>>2]=0;J[a+212>>2]=1072693248;J[a+200>>2]=-1;J[a+204>>2]=-1;J[a+252>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+264>>2]=0; +J[a+268>>2]=0;J[a+272>>2]=0;J[a+328>>2]=a;J[a+288>>2]=1;return a|0}function _7(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=J[b+8>>2];d=g>>31;f=I[a+70>>1];c=f>>31;d=(d^g)-d|0;h=d>>>8|0;c=(c^f)-c|0;a:{if(h+c>>>0<=8190){e=P(c,d)+32768>>>16|0;break a}e=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}c=e;i=0-c|0;c=f>>31|1;J[b+12>>2]=((((g|0)<0?0-c|0:c)|0)<0?i:e)+63&-64;f=I[a+72>>1];c=f>>31;c=(c^f)-c|0;b:{if(c+h>>>0<=8190){e=P(c,d)+32768>>>16|0;break b}e=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}c=e;i=0-c|0;c= +f>>31|1;J[b+16>>2]=((((g|0)<0?0-c|0:c)|0)<0?i:e)&-64;f=I[a+74>>1];c=f>>31;c=(c^f)-c|0;c:{if(c+h>>>0<=8190){c=P(c,d)+32768>>>16|0;break c}c=P(c,d>>>16|0)+(P(c,d&65535)+32768>>>16|0)|0}d=c;e=0-d|0;d=f>>31|1;J[b+20>>2]=((((g|0)<0?0-d|0:d)|0)<0?e:c)+32&-64;g=I[a+76>>1];d=g>>31;c=J[b+4>>2];a=c>>31;d=(d^g)-d|0;a=(a^c)-a|0;d:{if(d+(a>>>8|0)>>>0<=8190){e=P(a,d)+32768>>>16|0;break d}e=P(d,a>>>16|0)+(P(d,a&65535)+32768>>>16|0)|0}a=e;d=0-a|0;a=g>>31|1;J[b+24>>2]=((((c|0)<0?0-a|0:a)|0)<0?d:e)+32&-64}function Sba(a, +b,c){var d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{f:{e=J[a+112>>2];d=J[e>>2];if((d|0)>0){f=J[e+8>>2];a=0;while(1){g=f+(a<<3)|0;if(J[g>>2]==(b|0))break f;a=a+1|0;if((d|0)!=(a|0))continue;break}}if(!c)break b;if((d|0)<0)break a;a=d;if((a|0)>2])break c;f=a+32|0;a=f<<3;g=J[e+8>>2];if(!g)break e;a=Yh(g,a);break d}if(c){J[c>>2]=J[c>>2]+1;e=f+(a<<3)|0;a=J[e+4>>2];d=J[a>>2];J[a>>2]=d-1;if((d|0)<=1){d=J[J[a+8>>2]>>2];if(d)kc[d|0](a);uc(a)}J[g>>2]=b;J[e+4>>2]=c;return 0}b=J[(f+(a<<3)|0)+4>>2];c=J[b>>2];J[b>>2]= +c-1;if((c|0)<=1){c=J[J[b+8>>2]>>2];if(c)kc[c|0](b);uc(b);d=J[e>>2]}b=(a^-1)+d|0;if((b|0)>0){a=J[e+8>>2]+(a<<3)|0;cd(a,a+8|0,b<<3);d=J[e>>2]}J[e>>2]=d-1;return 0}a=Dc(a)}if(!a)return-1;J[e+4>>2]=f;J[e+8>>2]=a;a=J[e>>2]}J[c>>2]=J[c>>2]+1;f=a-d|0;if((f|0)>0){a=J[e+8>>2]+(d<<3)|0;cd(a+8|0,a,f<<3);a=J[e>>2]}d=J[e+8>>2]+(d<<3)|0;J[d+4>>2]=c;J[d>>2]=b;J[e>>2]=a+1}return 0}fa(205200,199175,765,206793);B()}function Ps(a,b,c){var d=0,e=0,f=0,g=0;d=c-b|0;if((d|0)<=0)return 0;a=(b>>3)+a|0;b=b&7;a:{if(b){c=8- +b|0;e=K[(K[a|0]<>>0>>0?c:e;f=c>>>0>>0?c:d;if(b+f>>>0<8)break a;d=d-f|0;a=a+1|0}b:{c:{d:{if((d|0)<64){b=a;a=d;c=f;break d}e:{if(!(a&3)){b=a;c=f;a=d;break e}f:{g:{b=K[a|0];if(b){c=f;break g}e=d-8|0;c=f+8|0;b=a+1|0;if(!(b&3)){a=e;e=d;break f}b=K[b|0];if(b)break g;g=d-16|0;c=f+16|0;b=a+2|0;if(!(b&3)){a=g;break f}b=K[b|0];if(b)break g;e=d-24|0;c=f+24|0;b=a+3|0;if(!(b&3)){a=e;e=g;break f}b=K[b|0];if(b)break g;b=a+4|0;a=d-32|0;c=f+32|0;break f}return K[b+95856|0]+c|0}if((e|0)< +40)break d}d=a;while(1){if(J[b>>2]){a=d;break c}b=b+4|0;c=c+32|0;e=(d|0)>63;a=d-32|0;d=a;if(e)continue;break}}if((a|0)<8)break b}d=a;while(1){a=K[b|0];if(a)return K[a+95856|0]+c|0;b=b+1|0;c=c+8|0;e=(d|0)>15;a=d-8|0;d=a;if(e)continue;break}}if((a|0)<=0)return c;b=K[K[b|0]+95856|0];f=((a|0)<(b|0)?a:b)+c|0}return f}function Ksa(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;j=fc-32|0;fc=j;a:{if((d|0)>=0){i=J[a+3312>>2];while(1){l=g;if((c|0)>0){m=e+1|0;n= +f+2|0;g=K[g-1|0]|(K[e|0]<<8|K[e-1|0]<<9|K[m|0]<<7|K[f-2|0]<<6|K[f-1|0]<<5|K[f|0]<<4|K[f+1|0]<<3|K[n|0]<<2|K[g-2|0]<<1);e=0;while(1){o=e+l|0;h=(a+g|0)+240|0;k=J[((K[h|0]<<2)+i|0)+44>>2]+J[i+20>>2]|0;b:{if(k>>>0<=M[i+28>>2]){J[i+20>>2]=k;h=H[h|0]&1;break b}h=qh(i,h,k)}H[o|0]=h;e=e+1|0;g=h|(g<<1&890|K[n+e|0]<<2|K[e+m|0]<<7);if((c|0)!=(e|0))continue;break}}if(!J[b+20>>2])_i(b);g=L[b+14>>1];e=d-1|0;c:{if(!(e>>>0>1]&(d|0)>0)){h=g;g=L[b+12>>1];if(J[685890]<(h+g|0)){a=Qc(j+8|0,2398385,2398717,577, +2393703,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}g=g+J[685889]|0;break c}g=L[b+12>>1]+(J[b+20>>2]+P(e,g)|0)|0}h=(d|0)>0;d=e;e=f;f=l;if(h)continue;break}}GA(b);fc=j+32|0;return}B()}function yBb(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;e=fc-8224|0;fc=e;Ac(e+12|0,0,8212);a:{b:{c:{d:{e:switch(Paa(c,d)-1|0){case 0:a=vc(20);J[699344]=0;d=ga(906,a|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;c=Saa(d,e+12|0);kc[J[J[d>>2]+ +4>>2]](d);if(c)break c;break b;case 1:a=vc(20);J[699344]=0;d=ga(906,a|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break d;break a;case 2:break e;default:break b}a=vc(20);J[699344]=0;d=ga(906,a|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;c=Qaa(d,e+12|0);kc[J[J[d>>2]+4>>2]](d);if(c)break c;break b}c=Raa(d,e+12|0);kc[J[J[d>>2]+4>>2]](d);if(!c)break b}g=Oaa(c,b,f);f=J[c+24>>2];f:{if(!f)break f;d=0;a=J[c+16>>2];if((a|0)>0){while(1){b=J[c+24>>2]+P(d,48)|0;f=J[b+44>>2];if(f){uc(f);J[b+ +44>>2]=0;a=J[c+16>>2]}d=d+1|0;if((d|0)<(a|0))continue;break}f=J[c+24>>2];if(!f)break f}uc(f)}uc(c)}fc=e+8224|0;return g|0}b=Z()|0;uc(a);ba(b|0);B()}function k1(a,b,c){var d=0,e=0;d=TK();if(!d)return 0;if(c){J[d+360>>2]=J[c+360>>2];J[d+272>>2]=J[c+272>>2]}a:{b:{c:{d:{e:{f:{e=tu(a,0);if(!e){e=KC(a,b,d);if(!e)break a;c=J[d+40>>2];b=J[d+44>>2];g:{if((c|0)<(b|0)){b=J[d+48>>2];break g}J[d+44>>2]=b<<1;b=kc[J[663200]](J[d+48>>2],b<<3)|0;J[d+48>>2]=b;if(!b)break f;c=J[d+40>>2]}J[(c<<2)+b>>2]=e;J[d+40>>2]= +c+1;J[d+36>>2]=e;break c}a=KC(e,b,d);if(!a){kc[J[663199]](e);break a}c=J[d+40>>2];b=J[d+44>>2];h:{if((c|0)<(b|0)){b=J[d+48>>2];break h}J[d+44>>2]=b<<1;b=kc[J[663200]](J[d+48>>2],b<<3)|0;J[d+48>>2]=b;if(!b)break e;c=J[d+40>>2]}J[(c<<2)+b>>2]=a;J[d+40>>2]=c+1;J[d+36>>2]=a;break d}se(d,0);th(e);J[d+44>>2]=J[d+44>>2]/2;break c}se(d,0);th(a);J[d+44>>2]=J[d+44>>2]/2}i:{if(J[d+180>>2])break i;a=zC(e);if(J[d+180>>2]|!a)break i;J[d+180>>2]=a}kc[J[663199]](e);break b}if(J[d+180>>2])break b;a=zC(a);if(J[d+180>> +2]|!a)break b;J[d+180>>2]=a;return d}return d}Vj(d);return 0}function SQ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a=c;a:if((d-a|0)<3)break a;while(1){b:{if(e>>>0<=h>>>0|a>>>0>=d>>>0)break b;b=H[a|0];g=b&255;c:{if((b|0)>=0){b=1;break c}if(b>>>0<4294967234)break b;if(b>>>0<=4294967263){if((K[a+1|0]&192)!=128|(d-a|0)<2)break b;b=2;break c}if(b>>>0<=4294967279){if((d-a|0)<3)break b;f=K[a+2|0];b=K[a+1|0];d:{e:{if((g|0)!=237){if((g|0)!=224)break e;if((b&224)==160)break d;break b}if((b& +224)!=128)break b;break d}if((b&192)!=128)break b}if((f&192)!=128)break b;b=3;break c}if((d-a|0)<4|b>>>0>4294967284)break b;i=K[a+3|0];j=K[a+2|0];f=K[a+1|0];f:{g:switch(g-240|0){case 0:if((f+112&255)>>>0>=48)break b;break f;case 4:if((f&240)!=128)break b;break f;default:break g}if((f&192)!=128)break b}if((j&192)!=128|(i&192)!=128)break b;b=4;if((i&63|(j<<6&4032|(g<<18&1835008|(f&63)<<12)))>>>0>1114111)break b}h=h+1|0;a=a+b|0;continue}break}return a-c|0}function SBb(a){a=a|0;var b=0,c=0,d=0,e=0,f= +0,g=0,h=0;d=J[a+44>>2];b=J[a+52>>2];kc[J[J[b>>2]+20>>2]](b,2)|0;e=kc[J[J[b>>2]+20>>2]](b,2)|0;f=J[d+60>>2];a:{b:{if(f){g=J[d+56>>2];if((f|0)>0){while(1){c:{h=J[(c<<2)+g>>2];c=c+1|0;if((f|0)<=(c|0))break c;if((e|0)!=(h|0))continue}break}if((e|0)==(h|0))break a}c=(f<<2)+g|0;break b}c=J[d+56>>2]}J[c>>2]=e;J[d+60>>2]=J[d+60>>2]+1}c=kc[J[J[b>>2]+20>>2]](b,4)|0;if(!c)c=(kc[J[J[b>>2]+40>>2]](b)|0)+8|0;kc[J[J[b>>2]+20>>2]](b,1)|0;kc[J[J[b>>2]+20>>2]](b,1)|0;J[a+8>>2]=e;b=kc[J[J[b>>2]+36>>2]](b)|0;J[a+4>> +2]=16;J[a+12>>2]=(b+c|0)-12;b=J[d+88>>2]+P(J[a+8>>2],1876)|0;if(J[b>>2]==1){c=J[b+1872>>2];b=xc(b,J[a+36>>2],1876);J[b+1872>>2]=c;J[b+1452>>2]=0;J[b+1456>>2]=0;c=0;J[b+1460>>2]=0;if(J[J[a+40>>2]+16>>2]>0){b=b+1872|0;while(1){e=P(c,1076);xc(e+J[b>>2]|0,e+J[J[a+36>>2]+1872>>2]|0,1076);c=c+1|0;if((c|0)>2]+16>>2])continue;break}}J[J[d+88>>2]+P(J[a+8>>2],1876)>>2]=0}}function CRa(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=fc-640|0;fc=f;h=J[a+12>>2];a:{if((h|0)<= +0)break a;if(h>>>0>=4){m=h&-4;while(1){g=f+384|0;O[g+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;i=e|1;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=e|2;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=g;g=e|3;O[i+(g<<3)>>3]=+J[(g<<2)+b>>2]*1.52587890625E-5;e=e+4|0;j=j+4|0;if((m|0)!=(j|0))continue;break}}h=h&3;if(!h)break a;while(1){O[(f+384|0)+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;e=e+1|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}b=J[a+148>>2];kc[J[J[b>>2]+16>>2]](b,f+384|0,f+128|0);b=J[a+ +144>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)>0){e=0;while(1){g=(e<<2)+f|0;l=O[(f+128|0)+(e<<3)>>3]*65536;b:{if(R(l)<2147483648){b=~~l;break b}b=-2147483648}J[g>>2]=b;b=J[a+144>>2];e=e+1|0;if((kc[J[J[b>>2]+28>>2]](b)|0)>(e|0))continue;break}}a=J[a+144>>2];kc[J[J[a>>2]+16>>2]](a,f,c,d);fc=f+640|0}function BRa(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=fc-640|0;fc=f;h=J[a+12>>2];a:{if((h|0)<=0)break a;if(h>>>0>=4){m=h&-4;while(1){g=f+384|0;O[g+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5; +i=e|1;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=e|2;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=g;g=e|3;O[i+(g<<3)>>3]=+J[(g<<2)+b>>2]*1.52587890625E-5;e=e+4|0;j=j+4|0;if((m|0)!=(j|0))continue;break}}h=h&3;if(!h)break a;while(1){O[(f+384|0)+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;e=e+1|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}b=J[a+148>>2];kc[J[J[b>>2]+16>>2]](b,f+384|0,f+128|0);b=J[a+144>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)>0){e=0;while(1){g=(e<<2)+f|0;l=O[(f+128|0)+(e<<3)>>3]*65536; +b:{if(R(l)<2147483648){b=~~l;break b}b=-2147483648}J[g>>2]=b;b=J[a+144>>2];e=e+1|0;if((kc[J[J[b>>2]+28>>2]](b)|0)>(e|0))continue;break}}a=J[a+144>>2];kc[J[J[a>>2]+20>>2]](a,f,c,d);fc=f+640|0}function ARa(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=fc-640|0;fc=f;h=J[a+12>>2];a:{if((h|0)<=0)break a;if(h>>>0>=4){m=h&-4;while(1){g=f+384|0;O[g+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;i=e|1;O[(i<<3)+g>>3]=+J[(i<<2)+b>>2]*1.52587890625E-5;i=e|2;O[(i<<3)+g>>3]=+J[(i<<2)+ +b>>2]*1.52587890625E-5;i=g;g=e|3;O[i+(g<<3)>>3]=+J[(g<<2)+b>>2]*1.52587890625E-5;e=e+4|0;j=j+4|0;if((m|0)!=(j|0))continue;break}}h=h&3;if(!h)break a;while(1){O[(f+384|0)+(e<<3)>>3]=+J[(e<<2)+b>>2]*1.52587890625E-5;e=e+1|0;k=k+1|0;if((h|0)!=(k|0))continue;break}}b=J[a+148>>2];kc[J[J[b>>2]+16>>2]](b,f+384|0,f+128|0);b=J[a+144>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)>0){e=0;while(1){g=(e<<2)+f|0;l=O[(f+128|0)+(e<<3)>>3]*65536;b:{if(R(l)<2147483648){b=~~l;break b}b=-2147483648}J[g>>2]=b;b=J[a+144>>2];e=e+1| +0;if((kc[J[J[b>>2]+28>>2]](b)|0)>(e|0))continue;break}}a=J[a+144>>2];kc[J[J[a>>2]+24>>2]](a,f,c,d);fc=f+640|0}function jEa(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;c=b+12|0;Fn(c,a);J[699344]=0;da(5278,b+8|0,c|0);c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){J[699344]=0;c=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=J[685894];d=ha(5279,c|0,b|0,0,0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;if((d|0)>0){e=J[J[c>>2]+16>>2];J[699344]=0;c=_(e|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;J[a+84>>2]=(c+d| +0)-4}wc(b);a=J[b+8>>2];J[b+8>>2]=0;d:{if(!a)break d;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[b+12>>2];J[b+12>>2]=0;e:{if(!a)break e;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=b+16|0;return}a=Z()|0;break b}a=Z()|0;wc(b);zc(b+8|0)}zc(b+12|0);ba(a|0); +B()}ea(0)|0;Bc();B()}function axa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;J[c+20>>2]=0;J[c+24>>2]=J[685894];e=J[b+132>>2];d=J[b+124>>2];f=J[b+136>>2];b=J[b+128>>2];J[c+16>>2]=f-b;J[c>>2]=2423668;J[c+4>>2]=d;J[c+8>>2]=b;J[699344]=0;J[c+12>>2]=e-d;b=ga(5350,c+20|0,2390054,c|0)|0;d=J[699344];J[699344]=0;a:{if((d|0)!=1){J[a>>2]=0;J[a+4>>2]=J[685894];b=J[b>>2];b:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;wc(a);break a}J[c+ +28>>2]=0}J[699344]=0;aa(5153,a|0,c+28|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}ea(0)|0;Bc();B()}b=Z()|0;zc(c+28|0);wc(a);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(c+20|0);fc=c+32|0;return}b=Z()|0}wc(c+20|0);ba(b|0);B()}function Vyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[J[a+2248>>2]+88>> +2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];c=c+3|0;b=P(J[a+584>>2],3)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=P(J[a+584>> +2],3)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}}if((e|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;e=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=P(J[a+584>>2],3)+b|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function VD(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!a)break a;c=J[a+100>>2];b=J[a+292>>2];if(b)kc[J[c+8>>2]](c,b);J[a+292>>2]=0;b=J[a+308>>2];if(b)kc[J[c+8>> +2]](c,b);J[a+308>>2]=0;b=J[a+284>>2];if(b){if(J[a+280>>2]>0){while(1){b=J[a+284>>2];b:{if(!b)break b;b=b+P(e,12)|0;d=J[b>>2];if(d)kc[J[c+8>>2]](c,d);J[b>>2]=0;if(!K[b+4|0])break b;d=J[b+8>>2];if(d)kc[J[c+8>>2]](c,d);J[b+8>>2]=0}e=e+1|0;if((e|0)>2])continue;break}b=J[a+284>>2]}if(b)kc[J[c+8>>2]](c,b);J[a+284>>2]=0}b=J[a+192>>2];if(b)kc[J[c+8>>2]](c,b);J[a+192>>2]=0;b=J[a+20>>2];if(b)kc[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>>2];if(b)kc[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+32>>2];if(b)kc[J[c+ +8>>2]](c,b);J[a+32>>2]=0;b=J[a+176>>2];if(b)kc[J[c+8>>2]](c,b);J[a+176>>2]=0;b=J[a+180>>2];if(b)kc[J[c+8>>2]](c,b);J[a+180>>2]=0;c=J[a+104>>2];if((c|0)!=(a+132|0))break a;c:{if(!c)break c;b=J[c+24>>2];if(!b)break c;kc[b|0](c)}J[a+104>>2]=J[a+172>>2]}}function Cxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;J[c+20>>2]=0;J[c+24>>2]=J[685894];e=J[b+100>>2];d=J[b+92>>2];f=J[b+104>>2];b=J[b+96>>2];J[c+16>>2]=f-b;J[c>>2]=2423658;J[c+4>>2]=d;J[c+8>>2]=b;J[699344]=0;J[c+12>>2]=e-d;b=ga(5350,c+20| +0,2390054,c|0)|0;d=J[699344];J[699344]=0;a:{if((d|0)!=1){J[a>>2]=0;J[a+4>>2]=J[685894];b=J[b>>2];b:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;wc(a);break a}J[c+28>>2]=0}J[699344]=0;aa(5153,a|0,c+28|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}ea(0)| +0;Bc();B()}b=Z()|0;zc(c+28|0);wc(a);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(c+20|0);fc=c+32|0;return}b=Z()|0}wc(c+20|0);ba(b|0);B()}function Hlb(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;e=fc+-64|0;fc=e;J[e+60>>2]=0;h=b+108|0;g=J[a+8>>2];a:{b:{c:{d:{if(J[b+72>>2]!=J[a+16>>2]){J[e+60>>2]=6;break d}i=19;if((c|0)!=2)break a;if(H[J[b+156>>2]+4|0]&1){c=J[b+88>>2];if(c)kc[J[g+8>>2]](g,c);J[b+88>>2]=0;c=J[b+156>>2];J[c+4>>2]=J[c+4>>2]&-2}if(FN(b,2,d)){J[e+60>>2]= +98;break d}j=b,k=_c(g,J[b+84>>2],0,J[b+76>>2],0,e+60|0),J[j+88>>2]=k;c=0;if(J[e+60>>2])break c;c=J[b+156>>2];J[c+4>>2]=J[c+4>>2]|1;f=J[b+76>>2]-J[b+104>>2]<<6;c=0-(J[b+100>>2]<<6)|0;if(d){f=J[d+4>>2]+f|0;c=J[d>>2]+c|0}if(c|f)Xh(h,c,f);J[e+20>>2]=0;J[e+16>>2]=h;J[e+12>>2]=b+76;a=kc[J[a+56>>2]](J[a+52>>2],e+12|0)|0;J[e+60>>2]=a;if(a)break c;J[b+72>>2]=1651078259;break b}c=0}if(!(H[J[b+156>>2]+4|0]&1))break b;a=J[b+88>>2];if(a)kc[J[g+8>>2]](g,a);J[b+88>>2]=0;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2}if(c| +f)Xh(h,0-c|0,0-f|0);i=J[e+60>>2]}a=i;fc=e- -64|0;return a|0}function pf(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=J[a+608>>2];if((c|0)>0){b=J[a+12>>2];if(!(b&(L[a+94>>1]|256))){mH(J[a+596>>2],c);c=J[a+608>>2];b=J[a+12>>2]}j=J[a+596>>2];e=fc-32|0;fc=e;a:{b:{g=J[(b&1024?504:480)+a>>2];h=J[J[a+184>>2]+(g<<2)>>2];c:{if(!(J[a+484>>2]?h:0)){if(!J[a+180>>2])break b;f=g<<2;i=J[a+628>>2];d=J[a+640>>2];d:{e:{if(!h)break e;b=J[f+J[a+188>>2]>>2];if(b>>>0>>0|!b)break e;b=0;d=kc[d|0](i,h,0)|0;if((d|0)==J[J[a+ +184>>2]+f>>2])break d;f=J[a+628>>2];J[e+16>>2]=J[a+472>>2];Uc(f,92400,78705,e+16|0);break c}d=kc[d|0](i,0,2)|0;J[f+J[a+184>>2]>>2]=d}J[a+484>>2]=d;J[J[a+188>>2]+(g<<2)>>2]=0}if((kc[J[a+636>>2]](J[a+628>>2],j,c)|0)!=(c|0)){b=J[a+628>>2];J[e>>2]=J[a+472>>2];Uc(b,92400,79085,e);b=0;break c}J[a+484>>2]=J[a+484>>2]+c;b=J[a+188>>2]+(g<<2)|0;J[b>>2]=J[b>>2]+c;b=1}fc=e+32|0;break a}fa(78582,77315,629,92400);B()}if(!b)return 0;J[a+608>>2]=0;J[a+604>>2]=J[a+596>>2]}return 1}function Ntb(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;J[e+12>>2]=0;a:{b:{c:{d:{if(!K[b+40|0]){h=b+60|0;c=h;break d}f=e+4|0;c=wO(a,J[b+64>>2],J[b+60>>2],e+12|0,e+8|0,f);if(c)break c;h=b+60|0;c=K[b+40|0]?f:h}d=J[b+32>>2];g=(J[c>>2]+(J[b+52>>2]+(d+J[b+44>>2]|0)|0)|0)+5|0;e:{if(g>>>0<=M[a+424>>2]){f=J[a+428>>2]+8|0;break e}f=kc[J[a+152>>2]](g)|0;if(!f)break b;d=J[b+32>>2]}c=f;if(d)c=xc(c,J[b+36>>2],d)+J[b+32>>2]|0;H[c|0]=0;H[c+1|0]=K[b+40|0];H[c+2|0]=K[b+41|0];c=c+3|0;d=J[b+44>>2];if(d)c=xc(c,J[b+48>>2],d)+J[b+44>>2]| +0;H[c|0]=0;c=c+1|0;d=J[b+52>>2];if(d)c=xc(c,J[b+56>>2],d)+J[b+52>>2]|0;H[c|0]=0;d=c+1|0;f:{if(K[b+40|0]){c=J[e+4>>2];if(!c)break f;xc(d,J[e+12>>2],c);break f}c=J[h>>2];if(!c)break f;xc(d,J[b+64>>2],c)}c=Ce(a,J[b>>2],g,f);if(M[a+424>>2]>=g>>>0)break c;kc[J[a+156>>2]](f,g)}b=J[e+12>>2];if(!b)break a;kc[J[a+156>>2]](b,J[e+8>>2]);break a}c=1;Jc(a,1,0,0)}fc=e+16|0;return c|0}function Mk(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=fc-32|0;H[i+23|0]=0;f=d>>31;g=(f^d)-f|0;e=i+23|0;l=c-1|0;m=(c|0)!= +5;j=1;c=0;while(1){if(!(!g&(c|0)>=(j|0))){f=0;a:{b:{c:{d:switch(l|0){case 4:f=(g>>>0)%10|0;if(f|k){e=e-1|0;h=K[f+61520|0];H[e|0]=h;k=1}else k=0;f=(g>>>0)/10|0;j=5;default:c=c+1|0;if(!m)break b;break a;case 1:j=2;case 0:e=e-1|0;f=(g>>>0)/10|0;h=K[(g-P(f,10)|0)+61520|0];H[e|0]=h;break c;case 3:j=2;break;case 2:break d}e=e-1|0;h=K[(g&15)+61520|0];H[e|0]=h;f=g>>>4|0}c=c+1|0;break a}if((c|0)!=5|e>>>0<=i>>>0)break a;if(k){h=46;e=e-1|0;H[e|0]=46;c=5;break a}k=0;c=5;if(f)break a;h=48;e=e-1|0;H[e|0]=48;f= +0}g=f;if(e>>>0>i>>>0)continue}break}if(!(e>>>0<=i>>>0|(d|0)>=0)){e=e-1|0;H[e|0]=45;h=45}e:{if(b-1>>>0>7)break e;a=((b<<5)+a|0)-32|0;if(!a)break e;c=0;f:{if(!e|!h)break f;g=0;while(1){H[a+g|0]=h;c=g+1|0;if(g>>>0>29)break f;h=K[e+1|0];e=e+1|0;g=c;if(h)continue;break}}H[a+c|0]=0}}function Ku(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;a:{f=J[a+4>>2];b:{if((f|0)!=J[a>>2]){d=f;break b}g=J[a+8>>2];d=J[a+12>>2];if(g>>>0>>0){e=((d-g>>2)+1|0)/2<<2;c=g-f|0;d=(e+g|0)-c|0;m=a,n=cd(d, +f,c),J[m+4>>2]=n;J[a+8>>2]=e+J[a+8>>2];break b}c=(d|0)==(f|0)?1:d-f>>1;if(c>>>0>=1073741824)break a;d=c<<2;i=vc(d);l=i+d|0;d=(c+3&-4)+i|0;h=d;c:{if((f|0)==(g|0))break c;e=d;c=f;j=g-c|0;k=j-4|0;g=(k>>>2|0)+1&7;if(g){h=0;while(1){J[e>>2]=J[c>>2];c=c+4|0;e=e+4|0;h=h+1|0;if((g|0)!=(h|0))continue;break}}h=d+j|0;if(k>>>0<28)break c;while(1){J[e>>2]=J[c>>2];J[e+4>>2]=J[c+4>>2];J[e+8>>2]=J[c+8>>2];J[e+12>>2]=J[c+12>>2];J[e+16>>2]=J[c+16>>2];J[e+20>>2]=J[c+20>>2];J[e+24>>2]=J[c+24>>2];J[e+28>>2]=J[c+28>>2]; +c=c+32|0;e=e+32|0;if((h|0)!=(e|0))continue;break}}J[a+12>>2]=l;J[a+8>>2]=h;J[a+4>>2]=d;J[a>>2]=i;if(!f)break b;uc(f);d=J[a+4>>2]}J[d-4>>2]=J[b>>2];J[a+4>>2]=J[a+4>>2]-4;return}Pd();B()}function lPa(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;d=fc-48|0;fc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;J[a>>2]=0;J[a+4>>2]=0;a:{b:{if(J[b>>2]!=6)break b;e=J[b+8>>2];if(J[e+12>>2]<=0)break b;while(1){if(J[Sc(e,h,d+32|0,0)>>2]==7){Ec(J[d+40>>2],812564,d+16|0,0);Ec(J[d+40>>2],812932,d,0);c:{if(J[d+16>> +2]!=4)break c;e=J[d+24>>2];d:{if(!Ic(e,813228))break d;if(Ic(e,813454))break c;e:switch(J[d>>2]-4|0){case 1:break d;case 0:break e;default:break c}if(Ic(J[d+8>>2],813812))break c}f=vc(40);J[699344]=0;e=ga(3636,f|0,J[d+40>>2],c|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(J[e+36>>2]){f=J[a>>2];g=J[a+4>>2];if((i|0)<=(g|0)){i=i+16|0;f=Wd(f,i,4);J[a>>2]=f;g=J[a+4>>2]}J[a+4>>2]=g+1;J[(g<<2)+f>>2]=e;break c}f=J[e+32>>2];if(f)kc[J[J[f>>2]+4>>2]](f);uc(e)}yc(d);yc(d+16|0)}yc(d+32|0);h=h+1|0;e=J[b+ +8>>2];if((h|0)>2])continue;break}}fc=d+48|0;return a|0}a=Z()|0;uc(f);ba(a|0);B()}function aC(a){a=a|0;var b=0,c=0,d=0,e=0;b=K[a+11|0];e=b<<24>>24;c=(e|0)<0;a:{d=J[a+4>>2];if(((c?d:b)|0)==7){if(!qd(c?J[a>>2]:a,795928,7))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}c=e<<24>>24;if((((c|0)<0?d:b)|0)==12){if(!qd((c|0)<0?J[a>>2]:a,796740,12))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}c=e<<24>>24<0;if(((c?d:b)|0)==19){if(!qd(c?J[a>>2]:a,797532,19))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}c=e<<24>>24;if((((c|0)<0?d:b)| +0)==15){if(!qd((c|0)<0?J[a>>2]:a,798336,15))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}c=e<<24>>24<0;if(((c?d:b)|0)==9){if(!qd(c?J[a>>2]:a,799076,9))break a;b=K[a+11|0];e=b;d=J[a+4>>2]}b:{c=d;d=e<<24>>24;if((((d|0)<0?c:b)|0)!=14)break b;if(qd((d|0)<0?J[a>>2]:a,799852,14))break b;break a}b=1;c:{if(Cl(a,800548))break c;if(Cl(a,801288))break c;if(Cl(a,802108))break c;if(Cl(a,802748))break c;if(Cl(a,803448))break c;if(Cl(a,804224))break c;if(Cl(a,804896))break c;b=Cl(a,805532)}return b|0}return 1}function nCb(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a+84>>2]-4|0;if(c)if((c|0)==12)break c;else break a;e=J[a+64>>2];d=J[e+20>>2];if((d|0)<=0)break b;c=J[e+24>>2];while(1){a=J[c>>2];if(!(a&8)){J[c>>2]=a|2;a=J[b+16>>2];if((a|0)>0){g=J[b+20>>2];d=0;while(1){a=d<<2;J[(a+c|0)+16>>2]=J[a+g>>2];a=J[b+16>>2];d=d+1|0;if((a|0)>(d|0))continue;break}d=J[e+20>>2]}J[c+12>>2]=a;H[c+416|0]=K[b+24|0];H[c+9|0]=K[b+12|0]}c=c+488|0;f=f+1|0;if((f|0)<(d|0))continue;break}break b}d=-1;a=J[a+52>>2];if(!a|J[a+40>>2]>0)break a; +e=J[a+32>>2];d=J[e+20>>2];if((d|0)<=0)break b;c=J[e+24>>2];while(1){a=J[c>>2];if(!(a&8)){J[c>>2]=a|2;a=J[b+16>>2];if((a|0)>0){g=J[b+20>>2];d=0;while(1){a=d<<2;J[(a+c|0)+16>>2]=J[a+g>>2];a=J[b+16>>2];d=d+1|0;if((a|0)>(d|0))continue;break}d=J[e+20>>2]}J[c+12>>2]=a;H[c+416|0]=K[b+24|0];H[c+9|0]=K[b+12|0]}c=c+488|0;f=f+1|0;if((f|0)<(d|0))continue;break}}J[e>>2]=J[e>>2]|2;d=0}return d|0}function jL(a,b){var c=0,d=0,e=0,f=0,g=0;g=fc-16|0;fc=g;a:{if(J[a+32>>2])break a;d=J[a+24>>2];c=J[a+8>>2];if(!((d|0)== +(c|0)|c>>>0>2147483646)){J[a+24>>2]=c;d=c}f=J[a+20>>2];c=J[a+4>>2];if(!((f|0)==(c|0)|c>>>0>2147483646)){J[a+20>>2]=c;f=c}c=J[a+12>>2];if((c|0)==2)break a;e=b+f|0;if(e>>>0>>0){e=d-f|0;break a}b=b>>>0>>0?d<<1:e+100|0;b:{c:{d:{e:{f:switch(c-3|0){case 2:if(d>>>0<15E6&e>>>0<=14999999)break e;J[g>>2]=33701;e=0;Hc(0,0,0,0,0,29,2,3,33701,0,0,0,32879,g);if(J[a+32>>2])break a;J[a+32>>2]=2;break a;case 0:break f;default:break d}c=J[a+16>>2];if(!c)break d;e=0;d=c;c=J[a>>2]-c|0;f=kc[J[663200]](d,c+b|0)| +0;if(f)break c;sq(a,5424);break a}b=b>>>0>=15E6?15E6:b}e=0;d=kc[J[663200]](J[a>>2],b)|0;if(d)break b;sq(a,5424);break a}J[a+16>>2]=f;d=c+f|0}J[a+24>>2]=b;J[a>>2]=d;J[a+8>>2]=b>>>0>=2147483647?2147483647:b;c=a;a=J[a+20>>2];J[c+4>>2]=a>>>0>=2147483647?2147483647:a;e=b-a|0}fc=g+16|0;return e}function aDb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=-1;a:{d=J[c+8>>2];b:{if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+ +24>>2];J[c+24>>2]=b+1;d=K[b|0];break c}d=td(c,1);if((d|0)==-1)break b}H[a+12|0]=d;b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;d:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break d}d=td(c,1);if((d|0)==-1)break b}H[a+13|0]=d;b=-1;if(Wg(c,a+16|0))break b;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>> +2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break e}d=td(c,1);if((d|0)==-1)break b}H[a+20|0]=d;b=-1;if(Fba(c,H[a+12|0]&1,a+24|0))break b;b=0-(J[c+8>>2]&1)|0}return b|0}J[c+8>>2]=d|4;return-1}function WCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=a+12|0;a:{b:{c:{if(M[b>>2]<=256){b=-1;e=J[c+8>>2];if(e&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=e|4;return-1}b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;d:{if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;e=K[b|0];break d}e=td(c,1); +if((e|0)==-1)break b}J[d>>2]=e&255;break c}b=-1;if(Wg(c,d))break b}b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;e:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break e}d=td(c,1);if((d|0)==-1)break b}H[a+16|0]=d;b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;f:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;c=K[b| +0];break f}c=td(c,1);if((c|0)==-1)break b}H[a+17|0]=c;b=0}return b|0}J[c+8>>2]=d|4;return-1}function Xvb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-2|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];g=g+2|0;a:{if(j>>>0>l>>>0)break a;h=j?(j|0)==(l|0)?d:b:c;if(!(!j&(e|0)==1)){if(h>>>0<2)break a;i=1;m=h<<1;while(1){a=K[f|0];k=K[f+2|0];if((a|0)!=(k|0))a=a+((h+(P(k-a|0,i)<<1)|0)/(m|0)|0)|0;H[g|0]=a;a=K[f+1|0];k=K[f+3|0];if((a|0)!=(k|0))a=a+((h+(P(k-a|0,i)<< +1)|0)/(m|0)|0)|0;H[g+1|0]=a;g=g+2|0;i=i+1|0;if((h|0)!=(i|0))continue;break}break a}if(h>>>0<2)break a;a=h-1|0;i=a&3;if(h-2>>>0>=3){h=a&-4;a=0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f|0];H[g+3|0]=K[f+1|0];H[g+4|0]=K[f|0];H[g+5|0]=K[f+1|0];H[g+6|0]=K[f|0];H[g+7|0]=K[f+1|0];g=g+8|0;a=a+4|0;if((h|0)!=(a|0))continue;break}}a=0;if(!i)break a;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];g=g+2|0;a=a+1|0;if((i|0)!=(a|0))continue;break}}f=f+2|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function $D(a){a= +a|0;var b=0,c=0;a=xf(a,2);J[a>>2]=47868;J[699344]=0;b=_(27,16384)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;J[a+1028>>2]=b;J[699344]=0;b=_(27,4096)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+1060>>2]=b;J[699344]=0;b=_(27,4096)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+1064>>2]=b;J[699344]=0;b=_(27,8192)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+1068>>2]=b;J[699344]=0;b=_(27,20012)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+1072>>2]=b;J[699344]=0;b=_(27,10006)| +0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+1076>>2]=b;J[699344]=0;b=_(27,257)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+1052>>2]=b;J[699344]=0;b=_(27,256)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+1112>>2]=b;J[699344]=0;b=_(27,256)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+1120>>2]=0;J[a+1116>>2]=b;H[a+492|0]=0;H[b|0]=0;return a|0}b=Z()|0;Jj(a);ba(b|0);B()}function nhb(a){a=a|0;var b=0,c=0;if(a){c=J[a+100>>2];b=J[a+504>>2];if(b)ey(b);b=J[a+132>>2];if(b)kc[J[c+8>>2]](c, +b);J[a+132>>2]=0;b=J[a+136>>2];if(b)kc[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+140>>2];if(b)kc[J[c+8>>2]](c,b);J[a+140>>2]=0;b=J[a+144>>2];if(b)kc[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+148>>2];if(b)kc[J[c+8>>2]](c,b);J[a+148>>2]=0;b=J[a+432>>2];if(b)kc[J[c+8>>2]](c,b);J[a+432>>2]=0;b=J[a+428>>2];if(b)kc[J[c+8>>2]](c,b);J[a+428>>2]=0;b=J[a+424>>2];if(b)kc[J[c+8>>2]](c,b);J[a+424>>2]=0;b=J[a+396>>2];if(b)kc[J[c+8>>2]](c,b);J[a+396>>2]=0;b=J[a+400>>2];if(b)kc[J[c+8>>2]](c,b);J[a+400>>2]=0;b=J[a+384>>2];if(b)kc[J[c+ +8>>2]](c,b);J[a+384>>2]=0;b=J[a+388>>2];if(b)kc[J[c+8>>2]](c,b);J[a+388>>2]=0;b=J[a+364>>2];if(b)kc[J[c+8>>2]](c,b);J[a+364>>2]=0;b=J[a+496>>2];if(b)kc[J[c+8>>2]](c,b);J[a+496>>2]=0;b=J[a+560>>2];if(b)kc[J[c+8>>2]](c,b);J[a+556>>2]=0;J[a+560>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}}function hMa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{c=J[b+492>>2];if(c){b=J[c+12>>2];J[a>>2]=J[c+8>>2];J[a+4>>2]=b;g=O[c+128>>3];O[a+24>>3]=g;h=O[c+136>>3];O[a+32>>3]=h;if(g>1){J[a+24>>2]=0;J[a+28>>2]=1072168960}if(h< +-.5){J[a+32>>2]=0;J[a+36>>2]=-1076887552}b=0;f=J[c+16>>2];if(!f)break a;e=vc(8);J[699344]=0;d=aa(3350,e|0,f|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break a;a=Z()|0;uc(e);ba(a|0);B()}J[a+32>>2]=0;J[a+36>>2]=-1076887552;J[a+24>>2]=0;J[a+28>>2]=1072168960;J[a>>2]=-1;J[a+4>>2]=-1;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;return a|0}J[a+8>>2]=d;d=J[c+24>>2];J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=d;b:{if(!(kc[J[J[c>>2]+8>>2]](c)|0))while(1){d=J[((b<<2)+c|0)+164>>2];if(!(!d|K[d|0]!=109|K[d+1|0])){d= +b;break b}d=b|1;e=J[((d<<2)+c|0)+164>>2];if(!(!e|K[e|0]!=109|K[e+1|0]))break b;b=b+2|0;if((b|0)!=256)continue;break}return a|0}O[a+16>>3]=O[(((d&255)<<3)+c|0)+1464>>3];return a|0}function fKa(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(!(K[a+68|0]&8)){f=J[a+32>>2];J[a+36>>2]=f;a:{b:{c:{e=J[a+48>>2];if(e){while(1){e=kc[J[a+20>>2]](f,e,J[a>>2])|0;if((e|0)==-1)break c;f=e+J[a+36>>2]|0;J[a+36>>2]=f;e=J[a+48>>2]-e|0;J[a+48>>2]=e;if(e)continue;break}f=J[a+32>>2]}J[a+36>>2]=f;if(!!b& +(c|0)>=0|(c|0)>0)break b;f=0;e=0;break a}J[a+68>>2]=J[a+68>>2]|8;Nc(d,4,2352619,0);J[a+48>>2]=0;J[a+68>>2]=J[a+68>>2]|8;jc=-1;return-1}f=0;e=0;while(1){g=kc[J[a+24>>2]](b,c,J[a>>2])|0;h=jc;i=h;if((g&h)==-1){Nc(d,4,2353589,0);J[a+68>>2]=J[a+68>>2]|8;b=e+J[a+60>>2]|0;c=f+J[a+56>>2]|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b;a=!(e|f);b=a?-1:f;jc=a?-1:e;return b|0}e=e+i|0;f=f+g|0;e=f>>>0>>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+J[a+60>>2]| +0;c=f+J[a+56>>2]|0;b=c>>>0>>0?b+1|0:b;J[a+56>>2]=c;J[a+60>>2]=b}jc=e;return f|0}function XUa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;c=-1;a:{b:switch(J[a+40>>2]){case 0:c=J[a+352>>2];if((c|0)==-1){b=J[a+4>>2];g=kc[J[J[b>>2]+28>>2]](b)|0;if((g|0)==-1){c=J[a+352>>2];J[a+352>>2]=-1;break a}b=K[a+348|0]+1|0;H[a+348|0]=b;d=b&255;b=a+92|0;d=d+b|0;c=K[d|0];f=c+K[a+349|0]|0;H[a+349|0]=f;h=d;d=b+(f&255)|0;f=K[d|0];H[h|0]=f;H[d|0]=c;c=K[b+(c+f&255)|0]^g&255}J[a+352>>2]=-1;break a;case 1:b= +J[a+316>>2];if((b|0)==16){b=J[a+4>>2];if((kc[J[J[b>>2]+40>>2]](b,e,16)|0)!=16)break a;b=J[a+4>>2];F$(a+92|0,e,(kc[J[J[b>>2]+32>>2]](b)|0)==-1);b=J[a+316>>2];if((b|0)==16)break a}J[a+316>>2]=b+1;c=K[(a+b|0)+300|0];break a;case 2:break b;default:break a}b=J[a+380>>2];if((b|0)==16){b=J[a+4>>2];if((kc[J[J[b>>2]+40>>2]](b,e,16)|0)!=16)break a;b=J[a+4>>2];cu(a+92|0,e,(kc[J[J[b>>2]+32>>2]](b)|0)==-1);b=J[a+380>>2];if((b|0)==16)break a}J[a+380>>2]=b+1;c=K[(a+b|0)+364|0]}fc=e+16|0;return c|0}function Ida(a, +b){a=a|0;b=b|0;var c=0;if((b|0)==7){if(!Bn(a,97488,8)){Uc(J[a+628>>2],97472,71040,0);return 0}b=Dc(952);J[a+584>>2]=b;if(!b){Uc(J[a+628>>2],97472,71675,0);return 0}Sg(b,0,952);b=J[a+584>>2];J[b+828>>2]=a;J[b+892>>2]=J[a+672>>2];J[a+672>>2]=642;J[b+896>>2]=J[a+668>>2];J[a+668>>2]=643;J[b+900>>2]=J[a+676>>2];J[a+676>>2]=644;J[b+948>>2]=0;J[b+936>>2]=0;J[b+940>>2]=0;J[b+920>>2]=75;J[b+924>>2]=0;J[b+912>>2]=0;J[b+916>>2]=0;J[b+928>>2]=3;J[b+932>>2]=0;J[a+556>>2]=645;J[a+548>>2]=645;J[a+540>>2]=645;J[a+ +520>>2]=646;J[a+516>>2]=647;J[a+572>>2]=648;J[a+560>>2]=649;J[a+552>>2]=649;J[a+544>>2]=649;J[a+536>>2]=650;J[a+532>>2]=651;J[a+524>>2]=652;J[b+904>>2]=J[a+576>>2];J[a+576>>2]=653;J[b+908>>2]=J[a+580>>2];J[a+580>>2]=654;J[a+12>>2]=J[a+12>>2]|256;J[b+488>>2]=0;if(!J[a+16>>2]){J[b+916>>2]=2E3;c=b;b=Dc(2E3);J[c+912>>2]=b;Sg(b,0,2E3)}J[a+44>>2]=J[a+44>>2]|128;return 1}fa(69671,70506,1951,97472);B()}function P4a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-32|0;fc=c;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]= +0;H[c+4|0]=0;J[c>>2]=a;e=J[b+4>>2];f=J[b>>2];g=e-f|0;d=(g|0)/12|0;a:{b:{c:{if((e|0)!=(f|0)){if(d>>>0>=357913942){J[699344]=0;$(2969,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}J[699344]=0;e=_(4,g|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[a+4>>2]=e;J[a>>2]=e;J[a+8>>2]=e+P(d,12);f=J[b+4>>2];b=J[b>>2];J[c+28>>2]=e;J[c+24>>2]=e;H[c+20|0]=0;J[c+8>>2]=a+8;J[c+16>>2]=c+28;J[c+12>>2]=c+24;d:{if((b|0)==(f|0)){d=e;break d}d=e;while(1){e:{if(H[b+11|0]>=0){g=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>> +2]=g;J[d+8>>2]=J[b+8>>2];break e}g=J[b+4>>2];h=J[b>>2];J[699344]=0;ca(15,d|0,h|0,g|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;d=J[c+28>>2]}d=d+12|0;J[c+28>>2]=d;b=b+12|0;if((f|0)!=(b|0))continue;break}}J[a+4>>2]=d}fc=c+32|0;return a|0}b=Z()|0;break a}b=Z()|0;YL(c+8|0);J[a+4>>2]=e}U3(c);ba(b|0);B()}function KC(a,b,c){var d=0,e=0,f=0;e=fc-112|0;fc=e;a:{b:{if(!a)break b;d=16;c:{d:{e:{if((a|0)==28575)break e;if((K[a|0]&223)==70&(K[a+1|0]&223)==73){f=K[a+2|0]&223;if((f|0)==76){f:{if((K[a+3|0]&223)!= +69|K[a+4|0]!=58|(K[a+5|0]!=47|K[a+6|0]!=47))break f;if((K[a+7|0]&223)!=76|(K[a+8|0]&223)!=79|((K[a+9|0]&223)!=67|(K[a+10|0]&223)!=65))break f;if((K[a+11|0]&223)!=76|(K[a+12|0]&223)!=72|((K[a+13|0]&223)!=79|(K[a+14|0]&223)!=83))break f;if((K[a+15|0]&223)!=84)break f;if(K[a+16|0]==47)break e}d=7;if((a|0)==28645)break e;if((f|0)!=76|(K[a+3|0]&223)!=69|(K[a+4|0]!=58|K[a+5|0]!=47))break d;if(K[a+6|0]!=47)break d;if(K[a+7|0]==47)break e;break d}}if((a|0)!=28645)break d;d=7}d=a+d|0;break c}d=a}if((ol(d, +e+16|0)|0)!=-1)break b;d=ox(a);if(!d){J[e>>2]=33676;a=0;Hc(0,0,0,0,0,8,2,3,33676,0,0,0,32879,e);break a}a=kc[J[663331]](d,b,c)|0;kc[J[663199]](d);break a}a=kc[J[663331]](a,b,c)|0}fc=e+112|0;return a}function yc(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:switch(J[a>>2]-3|0){case 0:b=J[a+8>>2];if(!b)break a;uc(Zc(b));break a;case 1:Mc(J[a+8>>2]);break a;case 3:b=J[a+8>>2];c=J[b+16>>2]-1|0;J[b+16>>2]=c;if(c)break a;b=J[a+8>>2];if(!b)break a;uc(a0(b));break a;case 4:b=J[a+8>>2];c=J[b+20>>2]-1|0;J[b+20>>2]=c;if(c)break a; +b=J[a+8>>2];if(!b)break a;c:{d:{if(J[b+16>>2]>0)while(1){e=d<<5;c=J[e+J[b+4>>2]>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+4>>2];J[699344]=0;$(3370,(c+e|0)+8|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;d=d+1|0;if((d|0)>2])continue;break}c=J[b+4>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[b+8>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break d;break c}ea(0)|0;Bc();B()}uc(b);break a;case 5:b=J[a+8>>2];if(!b)break a;kc[J[J[b>> +2]+4>>2]](b);break a;case 7:break b;default:break a}Mc(J[a+8>>2])}J[a>>2]=13}function q6(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a>>2];if(J[a+248>>2]){d=J[a+92>>2]>>6;while(1){f=c<<2;g=Wc(J[f+J[e+704>>2]>>2],d);J[f+J[a+252>>2]>>2]=g;c=c+1|0;if(c>>>0>2])continue;break}}c=J[a+300>>2];d=UM(c,e,a);if(!d){H[c+565|0]=b;H[c+492|0]=0;J[c+16>>2]=0;J[c+432>>2]=0;f=J[e+696>>2];b=J[e+692>>2];J[c+464>>2]=0;J[c+468>>2]=0;J[c+460>>2]=b;J[c+456>>2]=f;d=0;if(b){J[c+368>>2]=b;J[c+360>>2]=f;J[c+364>>2]=0;J[c+356>> +2]=2;d=kc[J[e+708>>2]](c)|0}J[a+308>>2]=d;I[c+304>>1]=0;I[c+296>>1]=0;I[c+298>>1]=16384;I[c+300>>1]=0;I[c+302>>1]=16384;J[c+288>>2]=0;J[c+292>>2]=1073741824;I[c+352>>1]=1;J[c+348>>2]=65537;J[c+308>>2]=1;xc(a+180|0,c+288|0,68);J[a+124>>2]=J[c+400>>2];J[a+136>>2]=J[c+412>>2];J[a+148>>2]=J[c+424>>2];J[a+152>>2]=J[c+428>>2];b=J[c+452>>2];J[a+156>>2]=J[c+448>>2];J[a+160>>2]=b;b=J[c+460>>2];J[a+164>>2]=J[c+456>>2];J[a+168>>2]=b;b=J[c+468>>2];J[a+172>>2]=J[c+464>>2];J[a+176>>2]=b}return d}function _wa(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;c=fc-16|0;fc=c;if(!K[a+88|0]){l=a,m=kc[J[J[a>>2]+36>>2]](a)|0,J[l+72>>2]=m;l=a,m=kc[J[J[a>>2]+44>>2]](a)|0,J[l+76>>2]=m;l=a,m=kc[J[J[a>>2]+40>>2]](a)|0,J[l+80>>2]=m;d=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}J[c>>2]=J[a+124>>2];J[c+8>>2]=J[a+132>>2];J[c+4>>2]=J[a+128>>2];J[c+12>>2]=J[a+136>>2];HV(b,c);h=J[c>>2];J[a+124>>2]=h;i=J[c+4>>2];J[a+128>>2]=i;e=J[c+8>>2];J[a+132>>2]=e;f=J[c+12>>2];b=(e-h|0)/2|0;J[a+100>>2]=b;H[a+88|0]= +0;J[a+136>>2]=f;g=(f-i|0)/2|0;J[a+104>>2]=g;d=b+g|0;e=(e+h|0)/2|0;f=(f+i|0)/2|0;a:{if((b|0)>(g|0)){j=Y(+(P(d,b-g|0)|0));b:{if(R(j)<2147483648){d=~~j;break b}d=-2147483648}h=e-d|0;e=d+e|0;d=g;i=f;break a}j=Y(+(P(d,g-b|0)|0));c:{if(R(j)<2147483648){k=~~j;break c}k=-2147483648}i=k+f|0;d=b;b=g;h=e;f=f-k|0}J[a+120>>2]=f;J[a+116>>2]=h;J[a+108>>2]=e;J[a+92>>2]=b;J[a+96>>2]=d;J[a+112>>2]=i;fc=c+16|0}function $wa(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;c=fc-16|0;fc=c;if(!K[a+88|0]){l= +a,m=kc[J[J[a>>2]+36>>2]](a)|0,J[l+72>>2]=m;l=a,m=kc[J[J[a>>2]+44>>2]](a)|0,J[l+76>>2]=m;l=a,m=kc[J[J[a>>2]+40>>2]](a)|0,J[l+80>>2]=m;d=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}J[c>>2]=J[a+124>>2];J[c+8>>2]=J[a+132>>2];J[c+4>>2]=J[a+128>>2];J[c+12>>2]=J[a+136>>2];rt(b,c);h=J[c>>2];J[a+124>>2]=h;i=J[c+4>>2];J[a+128>>2]=i;e=J[c+8>>2];J[a+132>>2]=e;f=J[c+12>>2];b=(e-h|0)/2|0;J[a+100>>2]=b;H[a+88|0]=0;J[a+136>>2]=f;g=(f-i|0)/2|0;J[a+104>>2]=g;d=b+g|0;e=(e+h|0)/2|0;f=(f+i|0)/2|0;a:{if((b|0)>(g| +0)){j=Y(+(P(d,b-g|0)|0));b:{if(R(j)<2147483648){d=~~j;break b}d=-2147483648}h=e-d|0;e=d+e|0;d=g;i=f;break a}j=Y(+(P(d,g-b|0)|0));c:{if(R(j)<2147483648){k=~~j;break c}k=-2147483648}i=k+f|0;d=b;b=g;h=e;f=f-k|0}J[a+120>>2]=f;J[a+116>>2]=h;J[a+108>>2]=e;J[a+92>>2]=b;J[a+96>>2]=d;J[a+112>>2]=i;fc=c+16|0}function $Da(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d){while(1){c:{d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;mk(a+16| +0,b+16|0);J[699344]=0;aa(5201,a+52|0,b+52|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;b=b+68|0;a=a+68|0;d=(c|0)>0;c=c-1|0;if(d)continue;break b}break}break a}while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;mk(a+16|0,b+16|0);J[699344]=0;d=b+52|0;aa(5201,a+52|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;id(d);J[b+40>>2]=2392964;J[b+16>>2]=2392932;d=J[b+44>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[b+44>>2]=0}J[b+32>> +2]=2392964;d=J[b+36>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[b+36>>2]=0}wc(b+24|0);b=b+68|0;a=a+68|0;d=(c|0)>0;c=c-1|0;if(d)continue;break}}return}b=Z()|0;kX(a);ba(b|0);B()}function x_(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=J[a+8>>2];kc[J[J[d>>2]+20>>2]](d);d=fc-1056|0;fc=d;J[a+16>>2]=0;J[a+20>>2]=0;f=d+16|0;Ac(f,0,1025);g=J[a+8>>2];kc[J[J[g>>2]+40>>2]](g,f,1024)|0;a:{b:{while(1){if(!ud((d+16|0)+e|0,782765,5))break b;e=e+1|0;if((e|0)!=1019)continue;break}Cc(0,-1,783908,0);break a}f= +J[a+8>>2];kc[J[J[f>>2]+104>>2]](f,e);f=d+e|0;e=Og(f+21|0,784945);if(!e){Cc(0,-1,783908,0);break a}h=qg(e);O[a+16>>3]=h;if(!(h>2.0001)&(K[f+21|0]-58&255)>>>0>=246)break a;J[d+4>>2]=786717;J[d>>2]=e;Cc(0,-1,785787,d)}fc=d+1056|0;c:{d:{if(!w_(a,b,c,0)){if((J[a+44>>2]&-2)!=2)return 0;Cc(0,-1,779303,0);d=0;if(!w_(a,b,c,1))break d}c=vc(4);b=J[a+24>>2];d=J[a+28>>2];J[699344]=0;b=ga(3642,c|0,d+96|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;J[a+32>>2]=b;c=vc(12);J[699344]=0;b=aa(3643,c|0,a|0)|0;d= +J[699344];J[699344]=0;if((d|0)==1)break c;J[a+36>>2]=b;d=1}return d}a=Z()|0;uc(c);ba(a|0);B()}function hNa(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;if((c|0)<=0)return 0;j=a+8|0;d=J[a+136>>2];while(1){a:{g=J[a+140>>2];if(g>>>0<=d>>>0){if(J[a+144>>2])break a;d=J[a+4>>2];e=kc[J[J[d>>2]+28>>2]](d)|0;if(!((e|0)!=128&(e|0)!=-1)){J[a+144>>2]=1;return h|0}b:{if((e|0)<=127){i=e+1|0;if((e|0)<0)break b;c:{if(!e){d=0;break c}l=i&-2;d=0;g=0;while(1){k=a+8|0;f=J[a+4>>2];m=k+d|0, +n=kc[J[J[f>>2]+28>>2]](f)|0,H[m|0]=n;f=J[a+4>>2];m=(d|1)+k|0,n=kc[J[J[f>>2]+28>>2]](f)|0,H[m|0]=n;d=d+2|0;g=g+2|0;if((l|0)!=(g|0))continue;break}}if(e&1)break b;e=a+d|0;d=J[a+4>>2];m=e,n=kc[J[J[d>>2]+28>>2]](d)|0,H[m+8|0]=n;break b}i=257-e|0;d=J[a+4>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if(e>>>0>256)break b;Ac(j,d,(i|0)<=1?1:i)}J[a+136>>2]=j;g=i+j|0;J[a+140>>2]=g;d=j}e=d;f=g-d|0;d=c-h|0;f=(d|0)>(f|0)?f:d;xc(b+h|0,e,f);d=f+J[a+136>>2]|0;J[a+136>>2]=d;h=f+h|0;if((h|0)<(c|0))continue}break}return h|0}function n6(a){var b= +0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=fc-16|0;fc=c;d=J[a+104>>2];f=J[d+28>>2];g=J[a+736>>2];H[g+24|0]=1;a:{if(kc[J[a+516>>2]](a,1635148146,d,c+8|0)|0)break a;a=af(d,J[c+8>>2]);J[c+12>>2]=a;if(a)break a;a=Fh(d);e=Fh(d);b:{if((a|0)!=65536|(e|0)!=J[J[g+12>>2]>>2])break b;a=_c(f,8,0,e,0,c+12|0);J[g+28>>2]=a;if(J[c+12>>2]|(e|0)<=0)break b;while(1){c:{b=tf(d);I[a>>1]=b;if(M[c+8>>2]>>0)break c;k=a,l=_c(f,8,0,b,0,c+12|0),J[k+4>>2]=l;if(J[c+12>>2])break c;b=0;if(L[a>>1])while(1){i=tf(d);j=b<<3; +J[j+J[a+4>>2]>>2]=i<<16>>16<<2;i=tf(d);J[(J[a+4>>2]+j|0)+4>>2]=i<<16>>16<<2;b=b+1|0;if(b>>>0>1])continue;break}a=a+8|0;h=h+1|0;if((e|0)!=(h|0))continue;break b}break}a=J[g+28>>2];if(h)while(1){e=h-1|0;b=e<<3;a=J[(b+a|0)+4>>2];if(a)kc[J[f+8>>2]](f,a);a=J[g+28>>2];J[(b+a|0)+4>>2]=0;b=(h|0)>1;h=e;if(b)continue;break}if(a)kc[J[f+8>>2]](f,a);J[g+28>>2]=0}ve(d)}fc=c+16|0}function Y_a(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{e:{b=J[a+388>>2];switch(J[b+20>>2]){case 2:break c;case 1:break d;case 0:break e; +default:break b}}bL(a);$K(a);if(!J[a+208>>2]){kc[J[J[a+408>>2]>>2]](a);kc[J[J[a+412>>2]>>2]](a);kc[J[J[a+396>>2]>>2]](a,0)}kc[J[J[a+416>>2]>>2]](a);kc[J[J[a+420>>2]>>2]](a,J[a+216>>2]);kc[J[J[a+400>>2]>>2]](a,J[b+28>>2]>1?3:0);kc[J[J[a+392>>2]>>2]](a,0);if(J[a+216>>2]){J[b+12>>2]=0;break a}J[b+12>>2]=1;break a}bL(a);$K(a);if(J[a+368>>2]?J[a+360>>2]:1){kc[J[J[a+420>>2]>>2]](a,1);kc[J[J[a+400>>2]>>2]](a,2);J[b+12>>2]=0;break a}J[b+20>>2]=2;J[b+24>>2]=J[b+24>>2]+1}if(!J[a+216>>2]){bL(a);$K(a)}kc[J[J[a+ +420>>2]>>2]](a,0);kc[J[J[a+400>>2]>>2]](a,2);if(!J[b+32>>2])kc[J[J[a+404>>2]+4>>2]](a);kc[J[J[a+404>>2]+8>>2]](a);J[b+12>>2]=0;break a}c=J[a>>2];J[c+20>>2]=49;kc[J[c>>2]](a)}d=b;c=J[b+28>>2];b=J[b+24>>2];J[d+16>>2]=(c-1|0)==(b|0);a=J[a+8>>2];if(a){J[a+16>>2]=c;J[a+12>>2]=b}}function L0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];f=(J[a+4>>2]-c|0)/20|0;d=f+1|0;if(d>>>0<214748365){c=(J[a+8>>2]-c|0)/20|0;e=c<<1;d=c>>>0>=107374182?214748364:d>>>0>>0?e:d;if(d>>>0>=214748365)break c; +c=P(f,20);d=P(d,20);f=vc(d);c=c+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;e=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=e;d=d+f|0;f=c+20|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-20|0;g=J[b+4>>2];c=c-20|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;g=J[b+16>>2];J[c+12>>2]=J[b+12>>2];J[c+16>>2]=g;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b| +0)==(d|0))break a;while(1){a=b-20|0;if(H[b-9|0]<0)uc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}eh(a);B()}Pd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)uc(b)}function JF(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=fc-16|0;fc=g;J[g+12>>2]=c;a:{b:{if(K[a+11|0]>>>7|0)i=J[a+4>>2];else i=K[a+11|0]&127;if(b>>>0<=i>>>0){f=i-b|0;J[g+8>>2]=f;c=fc-16|0;fc=c;fc=c+16|0;c=g+8|0;h=g+12|0;J[g+12>>2]=J[(M[c>>2]>2]?c:h)>>2];h=J[g+12>>2];c=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)- +1|0:1;if(h+(c-i|0)>>>0>=e>>>0){if(K[a+11|0]>>>7|0)c=J[a>>2];else c=a;h=c;c=J[g+12>>2];if(!((e|0)==(c|0)|(c|0)==(f|0))){j=f-c|0;f=h+(b<<2)|0;if(c>>>0>e>>>0)break b;c:{if(d>>>0<=f>>>0|h+(i<<2)>>>0<=d>>>0)break c;if(f+(c<<2)>>>0<=d>>>0){d=(e-c<<2)+d|0;break c}tn(f,d,c);f=J[g+12>>2];c=0;J[g+12>>2]=0;d=(e<<2)+d|0;e=e-f|0;b=b+f|0}f=h+(b<<2)|0;tn(f+(e<<2)|0,f+(c<<2)|0,j)}tn(h+(b<<2)|0,d,e);a=tv(a,h,(e+i|0)-J[g+12>>2]|0);break a}Ks(a,c,e+i-(c+h)|0,i,b,h,e,d);break a}as(a);B()}tn(f,d,e);tn(f+(e<<2)|0,f+(J[g+ +12>>2]<<2)|0,j);a=tv(a,h,(e+i|0)-J[g+12>>2]|0)}fc=g+16|0;return a|0}function wMa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=fc-128|0;fc=e;a:{b:{if(b){d=K[b|0];if((d|0)!=49){J[a+204>>2]=J[a+204>>2]|131072;d=K[b|0]}c:{if(!d)break c;c=K[b+1|0];if((c|0)!=46){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+1|0]}d=((c|0)==46)+((d|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+2|0];if((c|0)!=53){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+2|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+3|0];if((c|0)!=46){J[a+204>>2]=J[a+204>>2]|131072; +c=K[b+3|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+4|0];if((c|0)!=50){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+4|0]}d=d+((c|0)==46)|0;if(!c|d>>>0>1)break c;c=K[b+5|0];if((c|0)!=54){J[a+204>>2]=J[a+204>>2]|131072;c=K[b+5|0]}if(!K[b+6|0]|(!c|d+((c|0)==46)>>>0>1))break c;J[a+204>>2]=J[a+204>>2]|131072}d=1;if(!(K[a+206|0]&2))break a;break b}J[a+204>>2]=J[a+204>>2]|131072}Ar(e,128,Ar(e,128,Ar(e,128,Ar(e,128,0,58653),b),58867),58499);fd(a,e);d=0}fc=e+128|0;return d|0}function vU(a,b){var c=0,d=0,e=0; +c=fc+-64|0;fc=c;J[c+56>>2]=0;J[c+60>>2]=0;a:{b:{if(!(J[a+80>>2]==3008&(b|0)>=256)){J[c+8>>2]=0;J[c+12>>2]=0;break b}J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;d=a+652|0;c:{e=J[a+100>>2];if(e){J[699344]=0;ua(6515,c+16|0,d|0,e|0,c+48|0,c+40|0,c+32|0,c+24|0);d=J[699344];J[699344]=0;if((d|0)!=1)break c;break a}J[699344]=0;ua(6614,c+16|0,d|0,a+108|0,c+48|0,c+40|0,c+32|0,c+24|0);d=J[699344];J[699344]=0;if((d|0)!=1)break c;break a}d=J[c+20>>2]; +J[c+60>>2]=d;e=J[c+16>>2];J[c+56>>2]=e;J[c+12>>2]=d;J[c+8>>2]=e;if(!d)break b;J[d+4>>2]=J[d+4>>2]+1}J[699344]=0;d=J[c+12>>2];J[c>>2]=J[c+8>>2];J[c+4>>2]=d;ca(6505,a+1976|0,b|0,c|0);a=J[699344];J[699344]=0;if((a|0)!=1){a=J[c+60>>2];d:{if(!a)break d;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break d;kc[J[J[a>>2]+8>>2]](a);Gc(a)}fc=c- -64|0;return 0}}a=Z()|0;je(c+56|0);ba(a|0);B()}function dXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Uw(a,b);if(K[a+9|0]&2){c=K[a+359|0];d=c<<24>>24<0;lf(b,d?J[a+348>>2]:a+348|0,d?J[a+352>> +2]:c)}a:{if(K[a+160|0]==27){zd(b,J[a+344>>2]);c=J[a+8>>2];if(c&1024){c=K[a+371|0];d=c<<24>>24<0;lf(b,d?J[a+360>>2]:a+360|0,d?J[a+364>>2]:c);c=J[a+8>>2]}if(c&2048){c=K[a+383|0];d=c<<24>>24<0;lf(b,d?J[a+372>>2]:a+372|0,d?J[a+376>>2]:c);c=J[a+8>>2]}if(c&4096){c=K[a+395|0];d=c<<24>>24<0;lf(b,d?J[a+384>>2]:a+384|0,d?J[a+388>>2]:c);c=J[a+8>>2]}if(c&8192)Fe(b,K[a+341|0]);c=J[a+344>>2];if(!(c&1))break a;if(c&2){Fe(b,K[a+342|0]);c=J[a+344>>2]}if(c&4){Fe(b,K[a+343|0]);c=J[a+344>>2]}if(!(c&8))break a;e=O[a+ +408>>3]*100;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}zd(b,d);e=O[a+416>>3]*100;if(R(e)<2147483648){zd(b,~~e);return}zd(b,-2147483648);return}Fe(b,K[a+340|0]);if(!(K[a+9|0]&64))break a;d=b;b=K[a+407|0];c=b<<24>>24<0;lf(d,c?J[a+396>>2]:a+396|0,c?J[a+400>>2]:b)}}function cIa(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;d=fc-16|0;fc=d;J[d+12>>2]=0;e=uq(a);a=J[J[b>>2]+20>>2];J[699344]=0;a=ga(a|0,b|0,c|0,d+12|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){b:{c:{d:{if(!a)break d;a=J[d+12>> +2];b=J[a+4>>2];if(b>>>0>=2147483632){J[699344]=0;$(3030,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}c=J[a>>2];e:{if(b>>>0<=10){H[d+11|0]=b;a=d;break e}J[699344]=0;f=(b|15)+1|0;a=_(4,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;J[d>>2]=a;J[d+4>>2]=b;J[d+8>>2]=f|-2147483648}h=cd(a,c,b)+b|0,i=0,H[h|0]=i;J[699344]=0;aa(3469,e|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+12>>2];if(a){f:{if(!K[a+8|0])break f;b=J[a>>2];if(!b)break f;uc(b)}uc(a)}if(H[d+11|0]>=0)break d;uc(J[d>> +2])}fc=d+16|0;return}b=Z()|0;break a}b=Z()|0;if(H[d+11|0]>=0)break a;uc(J[d>>2]);break a}b=Z()|0}J[e>>2]=769768;a=J[e+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);ba(b|0);B()}function qsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=c;J[a+8>>2]=b;J[a>>2]=2434920;J[a+4>>2]=0;J[699344]=0;c=ha(5213,a+32|0,a+28|0,b+8|0,1)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{if((b|0)!=1){b=J[a+8>>2];J[699344]=0;e=ha(5213,a+44|0,a+40|0,b+4|0,2)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break f;b=J[a+8>>2];J[699344]=0;f=ha(5213,a+56|0,a+52|0,b+4|0,2)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[a+64>>2]=0;J[a+68>>2]=0;d=a+72|0;J[d>>2]=0;J[d+4>>2]=0;J[699344]=0;ri(c,1,0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;ri(e,2,0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;ri(f,2,0);b=J[699344];J[699344]=0;if((b|0)==1)break d;b=L[a+8>>1];I[J[a+40>>2]>>1]=b;I[J[a+52>>2]>>1]=b;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;zc(a+76|0);zc(d); +zc(a+68|0);zc(a- -64|0);hd(f)}hd(e)}hd(c)}nd(a);ba(b|0);B()}function VQ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a=c;a:if((d-a|0)<3)break a;while(1){b:{if(e>>>0<=g>>>0|a>>>0>=d>>>0)break b;b=K[a|0];f=a+1|0;c:{if(b<<24>>24>=0)break c;if(b>>>0<194)break b;if(b>>>0<=223){if((K[a+1|0]&192)!=128|(d-a|0)<2)break b;f=a+2|0;break c}if(b>>>0<=239){if((d-a|0)<3)break b;h=K[a+2|0];f=K[a+1|0];d:{e:{if((b|0)!=237){if((b|0)!=224)break e;if((f&224)==160)break d;break b}if((f&224)!=128)break b; +break d}if((f&192)!=128)break b}if((h&192)!=128)break b;f=a+3|0;break c}if((d-a|0)<4|b>>>0>244|e-g>>>0<2)break b;h=K[a+3|0];i=K[a+2|0];f=K[a+1|0];f:{g:switch(b-240|0){case 0:if((f+112&255)>>>0>=48)break b;break f;case 4:if((f&240)!=128)break b;break f;default:break g}if((f&192)!=128)break b}if((i&192)!=128|(h&192)!=128|(h&63|(i<<6&4032|(b<<18&1835008|(f&63)<<12)))>>>0>1114111)break b;g=g+1|0;f=a+4|0}a=f;g=g+1|0;continue}break}return a-c|0}function TM(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a>>2];a:{if(K[b+ +732|0])break a;H[a+112|0]=0;d=J[a+16>>2];c=J[a+12>>2];J[a+48>>2]=c;J[a+52>>2]=d;d=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>>2]=d;e=J[a+32>>2];d=a- -64|0;J[d>>2]=J[a+28>>2];J[d+4>>2]=e;J[a+72>>2]=J[a+36>>2];e=151;if(!(c&65535)|!L[a+50>>1])break a;if(K[b+176|0]&8){f=a,g=Wc(I[b+70>>1],J[a+56>>2])+32&-64,J[f+60>>2]=g;f=d,g=Wc(I[b+72>>1],J[a+56>>2])+32&-64,J[f>>2]=g;f=a,g=Wc(I[b+74>>1],J[a+56>>2])+32&-64,J[f+68>>2]=g}H[a+112|0]=1;e=0;d=a+48|0;c=L[d>>1];if(K[b+176|0]&8){f=a,g=Cd(c<<6,L[b+68>>1]),J[f+52>> +2]=g;f=a,g=Cd(L[a+50>>1]<<6,L[b+68>>1]),J[f+56>>2]=g;f=a,g=Wc(I[b+76>>1],J[a+52>>2])+32&-64,J[f+72>>2]=g;c=L[a+48>>1]}b=L[a+50>>1];b:{if(b>>>0<=c>>>0){I[a+84>>1]=c;J[a+76>>2]=65536;J[a+92>>2]=J[a+52>>2];c=Cd(b,c);break b}I[a+84>>1]=b;J[a+92>>2]=J[a+56>>2];f=a,g=Cd(c,b),J[f+76>>2]=g;c=65536}J[a+308>>2]=-1;J[a+44>>2]=d;J[a+80>>2]=c}return e}function v0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;b=J[b+84>>2];f=P(J[b+96>>2],I[c+48>>1]);h=P(J[b+32>> +2],I[c+16>>1]);g=P(f+h|0,4433);i=J[d>>2]+e|0;a=J[a+332>>2]+128|0;j=P(J[b+100>>2],I[c+50>>1]);k=P(J[b+36>>2],I[c+18>>1]);l=P(j+k|0,4433);k=l+P(k,6270)|0;m=P(J[b+68>>2],L[c+34>>1]);n=P(J[b+4>>2],L[c+2>>1]);o=m+n<<13;p=k+o|0;q=P(J[b+64>>2],L[c+32>>1]);b=P(J[b>>2],L[c>>1]);c=q+b<<13;h=g+P(h,6270)|0;r=(c+h|0)+32768|0;H[i|0]=K[a+(p+r>>>16&1023)|0];H[i+1|0]=K[a+(r-p>>>16&1023)|0];i=J[d+4>>2]+e|0;g=g+P(f,-15137)|0;b=b-q<<13;f=(g+b|0)+32768|0;j=P(j,-15137)+l|0;l=n-m<<13;m=j+l|0;H[i|0]=K[a+(f+m>>>16&1023)| +0];H[i+1|0]=K[a+(f-m>>>16&1023)|0];f=J[d+8>>2]+e|0;b=(b-g|0)+32768|0;g=l-j|0;H[f|0]=K[a+(b+g>>>16&1023)|0];H[f+1|0]=K[a+(b-g>>>16&1023)|0];b=J[d+12>>2]+e|0;c=(c-h|0)+32768|0;d=o-k|0;H[b|0]=K[a+(c+d>>>16&1023)|0];H[b+1|0]=K[a+(c-d>>>16&1023)|0]}function oBa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=fc-16|0;fc=f;g=wt(172);J[699344]=0;h=_(5471,g|0)|0;i=J[699344];J[699344]=0;a:{b:{c:{d:{if((i|0)!=1){J[a>>2]=0;vd(a,h);g=J[J[h>>2]+56>>2];J[699344]=0;da(g|0,h|0,d|0);d=J[699344];J[699344]= +0;if((d|0)==1)break d;g=J[J[h>>2]+60>>2];d=0;J[699344]=0;da(g|0,h|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[c>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break d;d=J[c>>2]}J[699344]=0;J[f+12>>2]=d;ca(5472,h|0,b|0,f+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;a=J[f+12>>2];J[f+12>>2]=0;e:{if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0; +if((a|0)==1)break a}fc=f+16|0;return}a=Z()|0;Gm(g);ba(a|0);B()}b=Z()|0;break b}b=Z()|0;zc(f+12|0)}zc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function Dq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;vh(a,J[a+8>>2]);c=J[a>>2];J[d+12>>2]=c;f=J[a+8>>2];if(c>>>0>>0){a:{b:{c:{d:{e:{f:{g:{e=K[c|0];if((e|0)!=123){if((e|0)==91)break g;if((e|0)!=40)break f;J[b>>2]=c;J[b+8>>2]=2;if(eN(d+12|0,f))break e;break d}J[b>>2]=c;J[b+8>>2]=3;if(!q7(d+12|0,f))break d;break e}J[b>>2]= +c;J[b+8>>2]=3;J[a>>2]=c+1;vh(a,f);c=J[a>>2];h:{if(f>>>0<=c>>>0)break h;e=1;while(1){if(J[a+12>>2])break h;i:{j:switch(K[c|0]-91|0){case 2:if((e|0)>1){e=e-1|0;break i}c=c+1|0;J[d+12>>2]=c;J[b+4>>2]=c;break a;case 0:break j;default:break i}e=e+1|0}fN(a);vh(a,J[a+8>>2]);c=J[a>>2];if(f>>>0>c>>>0)continue;break}}J[d+12>>2]=c;break e}J[b>>2]=c;J[b+8>>2]=K[c|0]==47?4:1;fN(a);c=J[a>>2];J[d+12>>2]=c;if(!J[a+12>>2])break c}c=J[b+4>>2];break b}c=J[d+12>>2]}J[b+4>>2]=c}if(c)break a;J[b+8>>2]=0;J[b>>2]=0}J[a>> +2]=J[d+12>>2]}fc=d+16|0}function avb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[a+588>>2]>0){b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];while(1){c=K[e+3|0];a:{if(!c)break a;b:{if((c|0)!=255){d=K[b+3|0];if(d)break b}H[b|0]=K[e|0];H[b+1|0]=K[e+1|0];d=K[e+2|0];H[b+3|0]=c;H[b+2|0]=d;break a}if((d|0)==255){d=c^255;f=(P(c,K[e|0])+P(d,K[b|0])|0)+128|0;H[b|0]=(f>>>8&255)+f>>>8;f=(P(c,K[e+1|0])+P(d,K[b+1|0])|0)+128|0; +H[b+1|0]=(f>>>8&255)+f>>>8;c=(P(c,K[e+2|0])+P(d,K[b+2|0])|0)+128|0;H[b+2|0]=(c>>>8&255)+c>>>8;break a}f=K[e|0];k=K[e+1|0];g=K[e+2|0];h=c^255;i=P(h,d^255)>>>8^-1;H[b+3|0]=i;l=g;g=i&255;c=(c<<8>>>0)/(g>>>0)|0;d=(P(d,h)>>>0)/(g>>>0)|0;H[b+2|0]=(P(l,c)+P(d,K[b+2|0])|0)+127>>>8;H[b+1|0]=(P(c,k)+P(d,K[b+1|0])|0)+127>>>8;H[b|0]=(P(c,f)+P(d,K[b|0])|0)+127>>>8}e=e+4|0;b=b+4|0;j=j+1|0;if((j|0)>2])continue;break}}return 0}function Fub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0; +a:{b:{if(!(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0])))break b;if(K[a+300|0])break b;c:{if(!c)break c;f=d;while(1){i=f;f=f+1|0;if(K[i|0])continue;break}g=i-d|0;if((g|0)>(c|0)){Jc(a,1043,0,0);return 1043}f=K[f|0];if((f-3&255)>>>0<=253){Jc(a,1048,0,0);return 1048}h=(c-g|0)-2|0;j=f&255;if(!((j|0)==1?(h>>>0)%6|0:0))if(!((h>>>0)%10|0)|(j|0)!=2)break c;Jc(a,1028,0,0);return 1028}d:{e:{if(!K[a+112|0])break e;b=kc[J[b+4>>2]](a,b,e)|0;if(b)break d;b=J[e>>2];c=!c;H[b+32|0]=c;if(c)break e;H[b+44|0]=f;J[b+ +36>>2]=g;J[b+48>>2]=(h>>>0)/(((f&255)==1?6:10)>>>0);if(g){b=kc[J[a+152>>2]](g+1|0)|0;J[J[e>>2]+40>>2]=b;b=J[J[e>>2]+40>>2];if(!b)break a;xc(b,d,g)}if(!h)break e;b=kc[J[a+152>>2]](h)|0;J[J[e>>2]+52>>2]=b;b=J[J[e>>2]+52>>2];if(!b)break a;xc(b,i+2|0,h)}b=0}return b|0}Jc(a,1029,0,0);return 1029}Jc(a,1,0,0);return 1}function rW(a,b){var c=0,d=0,e=0,f=0;c=fc+-64|0;fc=c;a:{b:{if(K[a+13|0]&8){e=J[b>>2];f=e+2|0;if(f>>>0>M[a+616>>2]){b=J[a+628>>2];J[c+32>>2]=J[a>>2];Uc(b,79776,79839,c+32|0);break a}d=c+62| +0;Ue(d,e+J[a+612>>2]|0,2);if(K[a+12|0]&128){e=K[d+1|0];H[d+1|0]=K[d|0];H[d|0]=e}d=P(L[c+62>>1],12)+f|0;if(M[a+616>>2]>>0){b=J[a+628>>2];J[c+48>>2]=J[a>>2];Uc(b,79776,80097,c+48|0);d=0;break a}Ue(b,d+J[a+612>>2]|0,4);d=1;if(K[a+12|0]&128)break b;break a}c:{if((kc[J[a+640>>2]](J[a+628>>2],J[b>>2],0)|0)==J[b>>2])if((kc[J[a+632>>2]](J[a+628>>2],c+62|0,2)|0)==2)break c;b=J[a+628>>2];J[c+16>>2]=J[a>>2];Uc(b,79776,79839,c+16|0);break a}if(K[a+12|0]&128){e=K[c+63|0];H[c+63|0]=K[c+62|0];H[c+62|0]=e}kc[J[a+ +640>>2]](J[a+628>>2],P(L[c+62>>1],12),1)|0;if((kc[J[a+632>>2]](J[a+628>>2],b,4)|0)!=4){b=J[a+628>>2];J[c>>2]=J[a>>2];Uc(b,79776,80097,c);break a}d=1;if(!(K[a+12|0]&128))break a}Rp(b)}fc=c- -64|0;return d}function bl(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=6;a:{if(!a|!c)break a;g=J[c>>2];if(!g)break a;i=J[g+100>>2];h=J[a>>2];b:{c:{if((h|0)<=0){if(!h)break c;break b}e=kc[J[i+4>>2]](i,h)|0;if(!e){f=64;e=0;break b}Ac(e,0,h)}f=J[c+4>>2];J[e>>2]=J[c>>2];J[e+4>>2]=f;J[e+8>>2]=J[c+8>>2];J[e+12>>2]=a;d:{a=J[a+ +4>>2];if(a){f=kc[a|0](e,b)|0;if(f)break d}a=J[g+36>>2];b=a+1|0;if((a|b)<0){f=6;break d}h=J[g+40>>2];e:{f:{g:{if(!b){c=0;if(!h)break g;kc[J[i+8>>2]](i,h);J[g+40>>2]=0;break e}f=10;if((a|0)>536870910)break d;h:{if(!a){c=kc[J[i+4>>2]](i,b<<2)|0;f=!c<<6;break h}b=kc[J[i+12>>2]](i,a<<2,b<<2,h)|0;c=b?b:h;f=!b<<6}if(f|!c)break f;a=(a<<2)+c|0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0}J[g+40>>2]=c;break e}J[g+40>>2]=c;if(f)break d}a=J[g+36>>2];J[g+36>>2]=a+1;J[(a<<2)+c>>2]=e;f=0;break b}a=J[J[e>>2]+100>>2]; +b=J[J[e+12>>2]+8>>2];if(b)kc[b|0](e);kc[J[a+8>>2]](a,e);e=0}if(!d)break a;J[d>>2]=e}return f}function Uea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-112|0;fc=d;e=J[a+584>>2];if(e){c=J[a+48>>2];if(c&4){J[d+96>>2]=J[e+196>>2];md(b,88885,d+96|0);c=J[a+48>>2]}if(c&8){J[d+80>>2]=J[e+200>>2];md(b,89004,d+80|0);c=J[a+48>>2]}if(c&16){ae(89094,14,1,b);if(K[e+211|0]){c=0;while(1){J[d+64>>2]=J[((c<<2)+e|0)+216>>2];md(b,89207,d- -64|0);c=c+1|0;if(c>>>0>2]}if(c&32){ae(89258, +15,1,b);if(K[e+212|0]){c=0;while(1){J[d+48>>2]=J[((c<<2)+e|0)+228>>2];md(b,89207,d+48|0);c=c+1|0;if(c>>>0>2]}if(c&64){ae(89322,15,1,b);if(K[e+213|0]){c=0;while(1){J[d+32>>2]=J[((c<<2)+e|0)+240>>2];md(b,89207,d+32|0);c=c+1|0;if(c>>>0>2]}if(c&128){J[d+16>>2]=K[e+204|0];md(b,89365,d+16|0);c=J[a+48>>2]}if(c&256){J[d>>2]=L[e+300>>1];md(b,89392,d)}fc=d+112|0;return}fa(88779,70472,582,97059);B()}function Htb(a,b){a= +a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24; +c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+28|0]=c;H[d+29|0]=c>>>8;H[d+30|0]=c>>>16;H[d+31|0]=c>>>24;c=J[b+56>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+32|0]=c;H[d+33|0]=c>>>8;H[d+34|0]=c>>>16;H[d+35|0]=c>>>24;return Ce(a,J[b>>2],28,d+8|0)|0}function Pmb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{d=J[a+28>>2];if(K[d+44|0])break b;c=e7(d,J[b>>2],J[b+4>>2]); +if(!c)break b;a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=c;return}c:{c=J[d+12>>2];if((I[c+22>>1]+I[c+58>>1]|0)+3>>>0<=M[c+4>>2])break c;c=Hh(c,3,0);if(!c)break c;a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=c;return}a=J[d+20>>2];d:{e:{f:{if(!K[d+45|0]){I[a+2>>1]=L[a+2>>1]+1;break f}c=J[a+8>>2];e=J[b+8>>2];f=I[a+2>>1];g=J[a+4>>2]+(f<<3)|0;J[g+4>>2]=J[b+12>>2]>>10;J[g>>2]=e>>10;H[c+f|0]=2;e=K[d+45|0];c=J[d+20>>2];I[a+2>>1]=L[a+2>>1]+1;if(e)break e;a=c}I[a+2>>1]=L[a+2>>1]+1;break d}a=J[c+8>>2];e=J[b+16>>2]; +f=I[c+2>>1];g=J[c+4>>2]+(f<<3)|0;J[g+4>>2]=J[b+20>>2]>>10;J[g>>2]=e>>10;H[a+f|0]=2;e=K[d+45|0];a=J[d+20>>2];I[c+2>>1]=L[c+2>>1]+1;if(!e)break d;c=J[a+8>>2];d=J[b+24>>2];e=I[a+2>>1];f=J[a+4>>2]+(e<<3)|0;J[f+4>>2]=J[b+28>>2]>>10;J[f>>2]=d>>10;H[c+e|0]=1}I[a+2>>1]=L[a+2>>1]+1}}function $_(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=vc(8);J[699344]=0;f=_(3351,d|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){c=J[a+4>>2];if(!K[c|0])break a;b:while(1){if(!Ic(c,778102))break a;d=c;if(!Ic(c,778978))break a;while(1){c:{e= +d;d=d+1|0;a=K[e+1|0];b=a-32|0;if((1<>>0<=13:0)|(a|0)==95)break c;if(a)continue}break}b=d;a=b-c|0;d:{if((a|0)<2)break d;e:{f:{g=e-1|0;switch(K[g|0]-66|0){case 0:case 11:break f;default:break e}}b=K[e|0]==84?g:d;a=b-c|0;if((a|0)<2)break d}e=b-2|0;if(K[e|0]==80){b=K[b-1|0]==83?e:b;a=b-c|0}if((a|0)<4)break d;a=b-4|0;if(K[a|0]!=87|K[b-3|0]!=71|K[b-2|0]!=76)break d;b=K[b-1|0]==52?a:b}if(c>>>0>>0)while(1){a=K[c|0];Kd(f,((a-97&255)>>>0<26?a&223:a)<<24>>24);c=c+1|0;if((b|0)!=(c|0))continue;break}while(1){a= +K[d|0];c=a-32|0;if((1<>>0<=13:0)|(a|0)==95){d=d+1|0;continue}else{c=d;if(a)continue b;break a}}}}a=Z()|0;uc(d);ba(a|0);B()}return f}function Bga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+4>>2];c=e-J[a>>2]>>2;if(c>>>0>>0){h=fc-32|0;fc=h;a:{b:{f=b-c|0;c:{if(f>>>0<=J[a+8>>2]-e>>2>>>0){fR(a,f);break c}g=a+16|0;e=h+12|0;c=fc-16|0;fc=c;d=(J[a+4>>2]-J[a>>2]>>2)+f|0;J[c+12>>2]=d;d:{b=KQ();if(d>>>0<=b>>>0){d=J[a+8>>2]-J[a>>2]>>2;if(d>>>0>>1>>>0){J[c+8>>2]=d<<1;b=fc-16|0;fc=b; +fc=b+16|0;b=c+12|0;d=c+8|0;b=J[(M[d>>2]>2]?b:d)>>2]}fc=c+16|0;c=b;break d}eh(a);B()}i=J[a+4>>2]-J[a>>2]>>2;b=0;d=fc-16|0;fc=d;J[d+12>>2]=0;J[e+12>>2]=0;J[e+16>>2]=g;if(c){JQ(d+4|0,J[e+16>>2],c);b=J[d+4>>2];c=J[d+8>>2]}else c=0;J[e>>2]=b;g=(i<<2)+b|0;J[e+8>>2]=g;J[e+4>>2]=g;J[e+12>>2]=(c<<2)+b;fc=d+16|0;J[699344]=0;da(6965,e|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;GQ(a,e);a=J[699344];J[699344]=0;if((a|0)==1)break b;FQ(e)}fc=h+32|0;break a}a=Z()|0;FQ(e);ba(a|0);B()}return}if(b>>> +0>>0)HQ(a,J[a>>2]+(b<<2)|0)}function VBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;J[c+20>>2]=0;J[699344]=0;J[c+24>>2]=J[685894];d=_(5239,b+8|0)|0;e=J[699344];J[699344]=0;a:{b:{if((e|0)==1)break b;J[c>>2]=b;J[699344]=0;J[c+4>>2]=d;b=ga(5350,c+20|0,2399917,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a>>2]=0;J[a+4>>2]=J[685894];b=J[b>>2];c:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;wc(a);break a}J[c+28>>2]=0}J[699344]= +0;aa(5153,a|0,c+28|0)|0;b=J[699344];J[699344]=0;d:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break d;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}ea(0)|0;Bc();B()}b=Z()|0;zc(c+28|0);wc(a);break a}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];wc(c+20|0);fc=c+32|0;return}b=Z()|0}wc(c+20|0);ba(b|0);B()}function GI(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=b;b=8-c|0;h=zw(a,4<>2]=h;f=-1<<16-c^-1;a:{if(d-95E3>>>0>1E4){k=+(d|0)*1E-5;l=+(f>>>0);d=0;while(1){e=lh(a,512);J[(d<<2)+h>>2]=e;c=0;while(1){g=e+(c<<1)|0;i=V(_e(+((c<>>0)/l,k)*65535+.5);b:{if(i<4294967296&i>=0){f=~~i>>>0;break b}f=0}I[g>>1]=f;c=c+1|0;if((c|0)!=256)continue;break}d=d+1|0;if(!(d>>>b|0))continue;break}break a}d=0;if(!c)while(1){f=lh(a,512);J[(d<<2)+h>>2]=f;c=0;while(1){I[f+(c<<1)>>1]=(c<>1]=(e<>1]=(e<>1]=(e<>>b|0))continue;break a}e=1<<15-c;while(1){g=lh(a,512);J[(d<<2)+h>>2]=g;c=0;while(1){I[(c<<1)+g>>1]=(e+P((c<>>0)/(f>>>0);j=c|1;I[(j<<1)+g>>1]=(e+P((j<>>0)/(f>>>0);c=c+2|0;if((c|0)!=256)continue;break}d=d+1|0;if(!(d>>>b|0))continue;break}}}function K3a(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=-1;f=K[b+11|0];g=f<<24>>24<0;i=g?J[b>>2]:b;h=g?J[b+4>>2]:f;b=h+1|0;f=vc(b);g=vc(b>>>0>1073741823?-1:b<<2);if(K[c|0]){J[g>> +2]=0;e=0}b=K[i|0];if(!((b|0)!=92&(b|0)!=47)){H[f|0]=b;e=e+1|0;J[g+(e<<2)>>2]=1;d=1}c=0;a:{b:{if((h|0)>0){c:while(1){b=c;while(1){d:{j=K[b+i|0];if(!((j|0)!=92&(j|0)!=47)){e:{if((b|0)<=(c|0))break e;f:{if((b-c|0)!=2)break f;c=c+i|0;if(K[c|0]!=46|K[c+1|0]!=46|(e|0)<=0)break f;e=e-1|0;d=J[g+(e<<2)>>2];break e}H[d+f|0]=47;e=e+1|0;d=d+1|0;J[g+(e<<2)>>2]=d}c=b+1|0;if((h|0)>(c|0))continue c;break d}H[d+f|0]=j;d=d+1|0;b=b+1|0;if((h|0)>(b|0))continue}break}break}H[d+f|0]=0;if(d>>>0>=2147483632)break b;if(d>>> +0<=10){H[a+11|0]=d;break a}c=(d|15)+1|0;b=vc(c);J[a+8>>2]=c|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b;break a}H[d+f|0]=0;H[a+11|0]=d;break a}_d(a);B()}k=xc(a,f,d)+d|0,l=0,H[k|0]=l;uc(f);uc(g)}function TUa(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=Ac(a,0,256);d=J[b>>2]+c|0;h=K[d+2|0];e=K[d|0];f=h+e|0;g=K[d+1|0];d=(f+g<<4)-6144|0;J[a>>2]=d;h=P(e-h|0,10033)+256>>9;J[a+4>>2]=h;J[a+8>>2]=P(f-(g<<1)|0,5793)+256>>9;e=J[b+4>>2]+c|0;f=K[e+2|0];g=K[e|0];i=f+g|0;j=K[e+1|0];e=(i+j<<4)-6144|0; +J[a+32>>2]=e;f=P(g-f|0,10033)+256>>9;J[a+36>>2]=f;g=P(i-(j<<1)|0,5793)+256>>9;J[a+40>>2]=g;b=J[b+8>>2]+c|0;c=K[b+2|0];i=K[b|0];j=c+i|0;b=K[b+1|0];k=(j+b<<4)-6144|0;J[a+32>>2]=P(d-k|0,17837)+16384>>15;c=P(i-c|0,10033)+256>>9;J[a+36>>2]=P(h-c|0,17837)+16384>>15;d=d+k|0;J[a+64>>2]=P(d-(e<<1)|0,10298)+16384>>15;J[a>>2]=P(d+e|0,14564)+16384>>15;c=c+h|0;J[a+68>>2]=P(c-(f<<1)|0,10298)+16384>>15;J[a+4>>2]=P(c+f|0,14564)+16384>>15;c=J[a+8>>2];b=P(j-(b<<1)|0,5793)+256>>9;J[a+40>>2]=P(c-b|0,17837)+16384>>15; +b=b+c|0;J[a+72>>2]=P(b-(g<<1)|0,10298)+16384>>15;J[a+8>>2]=P(b+g|0,14564)+16384>>15}function GBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=fc-48|0;fc=d;a:{b:{c:{d:{if(!(c&2))break d;IW(a,b);e:{f:{g:{if(!J[a+100>>2])break g;J[d+12>>2]=0;e=d+12|0;vd(e,b);if(J[a+100>>2]){J[d+40>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[699344]=0;c=aa(5250,d+16|0,2413244)|0;f=J[699344];J[699344]=0;if((f|0)==1)break f;f=J[a+100>>2];J[699344]=0;ca(5429,e|0,c|0,f|0);e=J[699344]; +J[699344]=0;if((e|0)==1)break c;Md(c)}c=J[d+12>>2];J[d+12>>2]=0;if(!c)break g;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break b;if(e)break g;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break b}if(K[a+60|0])break d;b=b+148|0;if(!(J[b>>2]&4096))break e;I[a+60>>1]=257;break d}a=Z()|0;break a}if(!(J[b>>2]&2048))break d;H[a+61|0]=1}GW(a);fc=d+48|0;return}a=Z()|0;Md(c);break a}ea(0)|0;Bc();B()}zc(d+12|0);ba(a|0);B()}function yM(a,b){var c=0,d=0,e=0,f=0, +g=0,h=0,i=0,j=0,k=0,l=0;a:{c=J[a+8>>2];b:{if((c|0)!=J[a+12>>2]){e=c;break b}d=J[a+4>>2];g=J[a>>2];if(d>>>0>g>>>0){f=((d-g>>2)+1|0)/-2<<2;c=c-d|0;e=cd(f+d|0,d,c)+c|0;J[a+8>>2]=e;J[a+4>>2]=f+J[a+4>>2];break b}f=(c|0)==(g|0)?1:c-g>>1;if(f>>>0>=1073741824)break a;e=f<<2;h=vc(e);l=h+e|0;f=(f&-4)+h|0;e=f;c:{if((c|0)==(d|0))break c;i=c-d|0;j=i-4|0;k=(j>>>2|0)+1&7;d:{if(!k){c=f;break d}e=0;c=f;while(1){J[c>>2]=J[d>>2];d=d+4|0;c=c+4|0;e=e+1|0;if((k|0)!=(e|0))continue;break}}e=f+i|0;if(j>>>0<28)break c;while(1){J[c>> +2]=J[d>>2];J[c+4>>2]=J[d+4>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=J[d+12>>2];J[c+16>>2]=J[d+16>>2];J[c+20>>2]=J[d+20>>2];J[c+24>>2]=J[d+24>>2];J[c+28>>2]=J[d+28>>2];d=d+32|0;c=c+32|0;if((e|0)!=(c|0))continue;break}}J[a+12>>2]=l;J[a+8>>2]=e;J[a+4>>2]=f;J[a>>2]=h;if(!g)break b;uc(g);e=J[a+8>>2]}J[e>>2]=J[b>>2];J[a+8>>2]=J[a+8>>2]+4;return}Pd();B()}function pnb(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;g=fc-16|0;fc=g;J[g+12>>2]=0;i=J[c>>2];d=he(i,24,g+12|0);e=J[g+12>>2];a:{if(e)break a; +b:{e=a+4|0;if(e>>>0>b>>>0)break b;h=K[a|0];H[d+4|0]=h;f=K[a+1|0]|K[a+2|0]<<8;I[d+6>>1]=f<<8|f>>>8;f=K[a+3|0];H[d+5|0]=f;k=J[c+148>>2];l=J[c+4>>2];j=f&1;f=(f>>>1&1)+(j?5:3)|0;J[d+8>>2]=f;J[d+12>>2]=(e+l|0)-k;if(e+P(f,h)>>>0>b>>>0)break b;if(h){c:{if(j){a=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);J[d+16>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=e+P(f,h-1|0)|0;a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);break c}J[d+16>>2]=K[a+5|0]|K[a+4|0]<<16; +a=e+P(f,h-1|0)|0;a=K[a|0]<<16|K[a+1|0]}e=0;J[d>>2]=0;J[d+20>>2]=a;J[J[c+140>>2]>>2]=d;J[c+140>>2]=d;J[c+132>>2]=J[c+132>>2]+h;break a}if(d)kc[J[i+8>>2]](i,d);e=J[g+12>>2];break a}if(d)kc[J[i+8>>2]](i,d);e=8}fc=g+16|0;return e|0}function D7a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc+-64|0;fc=e;d=e+16|0;J[d>>2]=0;J[d+4>>2]=0;H[d+40|0]=0;J[d+32>>2]=0;J[d+36>>2]=-1074790400;H[d+21|0]=0;H[d+22|0]=0;H[d+23|0]=0;H[d+24|0]=0;H[d+25|0]=0;H[d+26|0]=0;H[d+27|0]=0;H[d+28|0]=0;J[d+16>>2]=0;J[d+20>>2]= +0;J[d+8>>2]=0;J[d+12>>2]=0;f=J[a+12>>2];J[699344]=0;J[e+12>>2]=f;f=e+12|0;J[d+4>>2]=J[f>>2];g=J[699344];J[699344]=0;if((g|0)!=1)a:{g=J[a+16>>2];J[699344]=0;J[e+12>>2]=g;J[d+8>>2]=J[f>>2];g=J[699344];J[699344]=0;if((g|0)==1)break a;g=J[a+20>>2];J[699344]=0;J[e+12>>2]=g;J[d+12>>2]=J[f>>2];f=J[699344];J[699344]=0;if((f|0)==1)break a;a=J[a+24>>2];J[699344]=0;J[d+16>>2]=a;a=J[699344];J[699344]=0;if((a|0)==1)break a;J[699344]=0;a=ga(2534,d|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]= +0;J[d+16>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break a;Yg(d);fc=e- -64|0;return a|0}a=Z()|0;Yg(d);ba(a|0);B()}function CGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=fc-48|0;fc=e;g=e+36|0;J[g>>2]=0;J[g+4>>2]=0;H[g+8|0]=0;J[699344]=0;h=$g(a);d=J[699344];J[699344]=0;a:{if((d|0)!=1){b:{c:{d:{e:{f:{while(1){g:{J[699344]=0;d=aa(4975,a|0,h|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break g;if(!d)break b;J[699344]=0;d=e+12|0;da(4962,d|0,a|0);f=J[699344];J[699344]=0;if((f|0)==1)break f;J[699344]= +0;d=aa(4985,e+24|0,d|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break e;J[699344]=0;dg(g,d);f=J[699344];J[699344]=0;if((f|0)==1)break d;Rc(d);if(H[e+23|0]<0)uc(J[e+12>>2]);J[699344]=0;d=Qd(g,2383844);f=J[699344];J[699344]=0;if((f|0)==1)break g;if(!d)continue;J[699344]=0;ca(5102,a|0,b|0,c|0);d=J[699344];J[699344]=0;if((d|0)!=1)continue}break}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;break c}a=Z()|0;Rc(d)}if(H[e+23|0]>=0)break a;uc(J[e+12>>2]);break a}Rc(g);fc=e+48|0;return}a=Z()|0}Rc(g);ba(a|0);B()}function wi(a, +b,c,d,e,f,g,h){var i=0,j=0,k=0;i=J[d>>2];a:{b:{c:{d:{if(!f)break d;k=J[f>>2];if(!k)break d;if((c|0)<=0){j=c;break b}if(e>>>0>i>>>0)break c;j=c;break b}if((c|0)<=0){j=c;break a}if(e>>>0<=i>>>0){j=c;break a}while(1){H[i|0]=K[b|0];j=c-1|0;i=i+1|0;b=b+1|0;if(c>>>0<2)break a;c=j;if(e>>>0>i>>>0)continue;break}break a}while(1){H[i|0]=K[b|0];J[k>>2]=g;j=c-1|0;k=k+4|0;i=i+1|0;b=b+1|0;if(c>>>0<2)break b;c=j;if(e>>>0>i>>>0)continue;break}}J[f>>2]=k}J[d>>2]=i;if((j|0)>0){e:{if(!a)break e;H[a+63|0]=j;i=a+76|0; +a=j&7;f:{if(!a){c=j;break f}k=0;c=j;while(1){H[i|0]=K[b|0];c=c-1|0;i=i+1|0;b=b+1|0;k=k+1|0;if((a|0)!=(k|0))continue;break}}if(j>>>0<8)break e;while(1){H[i|0]=K[b|0];H[i+1|0]=K[b+1|0];H[i+2|0]=K[b+2|0];H[i+3|0]=K[b+3|0];H[i+4|0]=K[b+4|0];H[i+5|0]=K[b+5|0];H[i+6|0]=K[b+6|0];H[i+7|0]=K[b+7|0];i=i+8|0;b=b+8|0;a=c-9|0;c=c-8|0;if(a>>>0<4294967294)continue;break}}J[h>>2]=15}}function iaa(a){var b=0,c=0,d=0,e=0;d=fc-16|0;fc=d;b=L[a+1016>>1];a:{b:{if(!b){c=J[a+528>>2];if(K[a+1018|0])H[c+31|0]=!K[a+1019|0]; +if(K[a+1022|0]){J[c+36>>2]=J[a+1024>>2];J[c+40>>2]=J[a+1028>>2]}b=0;e=K[a+1032|0];if(!e)break b;H[c+44|0]=e;J[c+48>>2]=J[a+1036>>2];J[c+52>>2]=J[a+1040>>2];J[c+56>>2]=J[a+1044>>2];J[c+60>>2]=J[a+1048>>2];break b}b=ph(a,b);J[d+12>>2]=b;if(!b){b=Jaa(a,L[a+1016>>1],K[a+1021|0]==1,!K[a+1019|0],0,J[a+1024>>2],J[a+1028>>2],H[a+1032|0],J[a+1036>>2],J[a+1040>>2],J[a+1044>>2],J[a+1048>>2],d+12|0);if(b)break a;b=J[d+12>>2];break b}if(K[a+1018|0])H[b+31|0]=!K[a+1019|0];H[b+32|0]=0;if(K[a+1022|0]){J[b+36>>2]= +J[a+1024>>2];J[b+40>>2]=J[a+1028>>2]}c=K[a+1032|0];if(c){H[b+44|0]=c;J[b+48>>2]=J[a+1036>>2];J[b+52>>2]=J[a+1040>>2];J[b+56>>2]=J[a+1044>>2];J[b+60>>2]=J[a+1048>>2]}if(!K[a+1020|0])break b;H[J[b+88>>2]+33|0]=K[a+1021|0]==1}J[a+512>>2]=b;b=0}fc=d+16|0;return b}function VHa(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;f=J[b>>2];g=K[a+11|0];k=g<<24>>24;d=(k|0)<0;e=K[b+11|0];j=e<<24>>24;h=(j|0)<0;i=d?J[a+4>>2]:g;e=h?J[b+4>>2]:e;l=i>>>0>>0;a:{g=l?i:e;if(g>>>0<=1){f=(j|0)<0?f:b;break a}f= +h?f:b;d=d?J[a>>2]:a;b:{while(1){b=c<<2;if(J[b+d>>2]!=J[b+f>>2])break b;c=c+1|0;if((g|0)!=(c|0))continue;break}c=g}if(!c)break a;h=0;c:{if(c>>>0>=i>>>0){b=c;break c}b=c;while(1){j=J[d+(b<<2)>>2];if(j-58>>>0<4294967286)break c;h=(j+P(h,10)|0)-48|0;b=b+1|0;if((i|0)!=(b|0))continue;break}break a}if((b|0)==(i|0)|J[d+(b<<2)>>2]!=93)break a;b=0;d:{if(c>>>0>=e>>>0)break d;while(1){d=J[(c<<2)+f>>2];if(d-58>>>0<4294967286)break d;b=(d+P(b,10)|0)-48|0;c=c+1|0;if((e|0)!=(c|0))continue;break}break a}if((c|0)== +(e|0)|J[(c<<2)+f>>2]!=93)break a;return(b|0)>(h|0)|0}e:{if(g){c=qd((k|0)<0?J[a>>2]:a,f,g);if(c)break e}c=l?-1:e>>>0>>0}return c>>>31|0}function JEa(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;d=fc-32|0;fc=d;a:{b:{g=J[a+16>>2];if(g){h=a+8|0;while(1){J[d+20>>2]=h;a=g;J[d+16>>2]=a;g=J[a>>2];e=0;f=J[a+8>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;e=J[a+8>>2]}J[d+12>>2]=e;c:{d:{if(J[e+44>>2]!=J[b>>2]){J[d+12>>2]=0;break d}a=J[e+60>>2];e:{if(!a)break e;f=e+52|0;i=J[c>>2];while(1){if(J[a+8>>2]!=(i|0)){a= +J[a>>2];if(a)continue;break e}break}J[d+28>>2]=f;J[d+24>>2]=a;J[699344]=0;da(5235,f|0,d+24|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}if(!J[e+56>>2]){J[699344]=0;da(5235,h|0,d+16|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}e=J[d+12>>2];J[d+12>>2]=0;if(!e)break c}J[699344]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(a)break c;J[699344]=0;$(5147,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}if(g)continue;break}}fc=d+32|0;return}a=Z()|0;zc(d+12|0);ba(a|0);B()}ea(0)| +0;Bc();B()}function Gs(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=J[a+16>>2];a:{b:{if((b|0)<0){b=d;if((d|0)>=0)break b;break a}if((b|0)>(d|0))break a}e=J[a+20>>2];c:{if((e|0)>(d|0))break c;f=e+128|0;d=f<<2;g=J[a+24>>2];d:{if(!g){d=Dc(d);break d}d=Yh(g,d)}if(!d)return-1;J[a+20>>2]=f;J[a+24>>2]=d;d=J[a+16>>2];if((f|0)<=(d|0))break c;e=e-d|0;g=e+127|0;h=e&3;if(h){e=0;while(1){J[J[a+24>>2]+(d<<2)>>2]=0;d=d+1|0;e=e+1|0;if((h|0)!=(e|0))continue;break}}if(g>>>0<3)break c;while(1){e=d<<2;J[e+J[a+24>>2]>>2]=0;J[(e+ +J[a+24>>2]|0)+4>>2]=0;J[(e+J[a+24>>2]|0)+8>>2]=0;J[(e+J[a+24>>2]|0)+12>>2]=0;d=d+4|0;if((f|0)!=(d|0))continue;break}}c=FP(J[c>>2],J[c+4>>2],J[c+8>>2],J[c+12>>2],J[c+16>>2],J[c+20>>2],J[c+24>>2],J[c+28>>2]!=0,1);if(!c)return-1;d=J[a+16>>2];if((d|0)>(b|0)){f=J[a+24>>2]+(b<<2)|0;cd(f+4|0,f,d-b<<2);d=J[a+16>>2]}J[J[a+24>>2]+(b<<2)>>2]=c;J[a+16>>2]=d+1;pv(a);return 0}fa(200168,198814,663,206497);B()}function sG(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{if((b|0)==8){b=Dc(c);break b}e=28;if(b&3|b>>>0<4)break a; +d=b>>>2|0;if(d&d-1)break a;e=48;if(-64-b>>>0>>0)break a;d=16;b=b>>>0<=16?16:b;e=b>>>0<=16?16:b;c:{if(!(e-1&e)){b=e;break c}while(1){b=d;d=b<<1;if(b>>>0>>0)continue;break}}d:{if(-64-b>>>0<=c>>>0){J[698583]=48;c=0;break d}e=c>>>0<11?16:c+11&-8;d=Dc((e+b|0)+12|0);c=0;if(!d)break d;c=d-8|0;e:{if(!(d&b-1)){b=c;break e}g=d-4|0;h=J[g>>2];f=b;b=((b+d|0)-1&0-b)-8|0;b=(b-c>>>0<=15?f:0)+b|0;d=b-c|0;f=(h&-8)-d|0;if(!(h&3)){c=J[c>>2];J[b+4>>2]=f;J[b>>2]=c+d;break e}J[b+4>>2]=f|J[b+4>>2]&1|2;f=b+f|0;J[f+ +4>>2]=J[f+4>>2]|1;J[g>>2]=d|J[g>>2]&1|2;f=c+d|0;J[f+4>>2]=J[f+4>>2]|1;zz(c,d)}c=J[b+4>>2];f:{if(!(c&3))break f;d=c&-8;if(d>>>0<=e+16>>>0)break f;J[b+4>>2]=e|c&1|2;c=b+e|0;e=d-e|0;J[c+4>>2]=e|3;d=b+d|0;J[d+4>>2]=J[d+4>>2]|1;zz(c,e)}c=b+8|0}b=c}if(!b)return 48;J[a>>2]=b;e=0}return e}function yr(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{e=J[a>>2];b=J[e+8>>2];if((b|0)>0)while(1){k=J[J[e>>2]+(j<<2)>>2];if(k){f=0;g=J[k>>2];b=J[g+8>>2];if((b|0)>0)while(1){d=J[J[g>>2]+(f<<2)>>2];if(d){h=0;i=J[d>> +2];c=J[i+8>>2];if((c|0)>0)while(1){b=J[J[i>>2]+(h<<2)>>2];if(b){c=J[b+32>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[b+40>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[b+36>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(b);c=J[i+8>>2]}h=h+1|0;if((h|0)<(c|0))continue;break}uc(ld(i));b=J[d+48>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[d+52>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a; +uc(d);b=J[g+8>>2]}f=f+1|0;if((f|0)<(b|0))continue;break}uc(ld(g));uc(k);b=J[e+8>>2]}j=j+1|0;if((j|0)<(b|0))continue;break}uc(ld(e));return a}ea(0)|0;Bc();B()}function uya(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;J[a+20>>2]=0;J[a>>2]=2419044;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;I[a+16>>1]=0;J[699344]=0;g=ha(5213,a+28|0,a+24|0,0,1)|0;e=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((e|0)!=1){J[699344]=0;e=ha(5213,a+40|0,a+36|0,0,1)|0;f=J[699344];J[699344]=0;if((f|0)==1)break h;J[699344]= +0;f=ha(5213,a+52|0,a+48|0,0,4)|0;h=J[699344];J[699344]=0;if((h|0)==1)break e;J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[699344]=0;ia(5606,a|0,b|0,c|0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;oa(ea(0)|0)|0;J[699344]=0;$(5607,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;ka(5257);b=J[699344];J[699344]=0;if((b|0)==1)break g;B()}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)==1)break a;zc(a+68|0);hd(f);break d}return a|0}b=Z()|0}hd(e)}hd(g)}nd(a); +ba(b|0);B()}ea(0)|0;Bc();B()}function JX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c:{d=J[a+4>>2];h=J[a>>2];e=(d-h|0)/12|0;c=e+1|0;if(c>>>0<357913942){g=(J[a+8>>2]-h|0)/12|0;f=g<<1;c=g>>>0>=178956970?357913941:c>>>0>>0?f:c;if(c>>>0>=357913942)break c;f=P(e,12);e=P(c,12);g=vc(e);c=f+g|0;J[c+4>>2]=J[b+4>>2];f=K[b+8|0];H[c+8|0]=f;b=J[b>>2];J[c>>2]=b;if(!(!f|!b))J[b+4>>2]=J[b+4>>2]+1;g=e+g|0;f=c+12|0;if((d|0)==(h|0))break b;b=d;while(1){c=c-12|0;b=b-12|0;J[c+4>>2]=J[b+4>>2];i=K[b+8|0]; +H[c+8|0]=i;e=J[b>>2];J[c>>2]=e;if(!(!i|!e))J[e+4>>2]=J[e+4>>2]+1;if((b|0)!=(h|0))continue;break}J[a+8>>2]=g;J[a+4>>2]=f;J[a>>2]=c;if((d|0)==(h|0))break a;while(1){d=d-12|0;b=d;d:{if(!K[b+8|0])break d;a=J[b>>2];if(!a)break d;c=J[a+4>>2]-1|0;J[a+4>>2]=c;if(c)break d;uc(a)}J[d>>2]=0;J[d+4>>2]=0;H[b+8|0]=0;if((d|0)!=(h|0))continue;break}d=h;break a}eh(a);B()}Pd();B()}J[a+8>>2]=g;J[a+4>>2]=f;J[a>>2]=c}if(d)uc(d)}function fj(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!a)break a;b:switch(K[a|0]-97|0){case 11:b=2774; +if((a|0)==2774)return 2652808;c=108;while(1){if(c){d=K[b+1|0];c=K[a+1|0];b=b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break a}break}return 2652808;case 6:b=2988;if((a|0)==2988)return 2652884;c=103;while(1){if(c){d=K[b+1|0];c=K[a+1|0];b=b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break a}break}return 2652884;case 0:b=5817;if((a|0)==5817)return 2652960;c=97;d=a;c:{while(1){if(c){e=K[b+1|0];c=K[d+1|0];b=b+1|0;d=d+1|0;if((c|0)==(e|0))continue;break c}break}return 2652960}b=4040;if((a|0)==4040)return 2653036;while(1){d= +K[a|0];if((d|0)!=K[b|0])break a;b=b+1|0;a=a+1|0;if(d)continue;break}return 2653036;case 16:break b;default:break a}b=2292;d:{if((a|0)==2292)break d;c=113;while(1){if(!c)break d;d=K[b+1|0];c=K[a+1|0];b=b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break}break a}f=2653112}return f}function oN(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=fc-32|0;fc=h;a:{if(!b){b=6;break a}i=J[a>>2];g=kc[J[i+4>>2]](i,40)|0;if(!g){kc[J[i+8>>2]](i,b);b=64;break a}H[g+20|0]=0;H[g+21|0]=0;H[g+22|0]=0;H[g+23|0]=0;H[g+24|0]=0;H[g+25|0]=0;H[g+ +26|0]=0;H[g+27|0]=0;H[g+12|0]=0;H[g+13|0]=0;H[g+14|0]=0;H[g+15|0]=0;H[g+16|0]=0;H[g+17|0]=0;H[g+18|0]=0;H[g+19|0]=0;J[g+8>>2]=0;J[g+4>>2]=c;J[g>>2]=b;H[g+36|0]=0;H[g+37|0]=0;H[g+38|0]=0;H[g+39|0]=0;H[g+28|0]=0;H[g+29|0]=0;H[g+30|0]=0;H[g+31|0]=0;H[g+32|0]=0;H[g+33|0]=0;H[g+34|0]=0;H[g+35|0]=0;J[g+24>>2]=1657;J[h+16>>2]=g;J[h>>2]=2;if(e){J[h>>2]=10;c=J[a+16>>2];b:{if((c|0)<=0){c=0;break b}b=a+20|0;j=b+(c<<2)|0;while(1){c=J[b>>2];if(!Ic(J[J[c>>2]+8>>2],e))break b;b=b+4|0;if(j>>>0>b>>>0)continue;break}c= +0}J[h+20>>2]=c}b=d8(a,h,d,f,0);if(!b){a=J[f>>2];J[a+8>>2]=J[a+8>>2]&-1025;b=0;break a}a=J[g+24>>2];if(a)kc[a|0](g);kc[J[i+8>>2]](i,g)}fc=h+32|0;return b}function cY(a,b,c){var d=0,e=0,f=0;d=fc-16|0;fc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){fd(a,66471);Vd(a,c);break a}f=e&2;e=K[a+401|0];if(!(f|(e|0)!=3)){fd(a,66495);Vd(a,c);break a}if(!(!b|!(K[b+8|0]&32))){fd(a,66520);Vd(a,c);break a}if((((e|0)==3?1:e&2?6:2)|0)!=(c|0)){fd(a,66541);Vd(a,c);break a}e=d+10|0;Dg(a,e,c);Ae(a,e,c);if(Vd(a,0))break a;e=K[a+401| +0];b:{if((e|0)==3){c=K[d+10|0];H[d|0]=c;c:{d:{if(!b)break d;e=L[b+20>>1];if(!e)break d;if(c>>>0>=e>>>0){fd(a,66569);break a}c=J[a+388>>2]+P(c,3)|0;I[d+2>>1]=K[c|0];I[d+4>>1]=K[c+1|0];I[d+6>>1]=K[c+2|0];break c}I[d+6>>1]=0;I[d+2>>1]=0;I[d+4>>1]=0}I[d+8>>1]=0;break b}H[d|0]=0;c=K[d+10|0]|K[d+11|0]<<8;c=c<<8|c>>>8;if(!(e&2)){I[d+6>>1]=c;I[d+8>>1]=c;I[d+4>>1]=c;I[d+2>>1]=c;break b}I[d+2>>1]=c;I[d+8>>1]=0;c=K[d+12|0]|K[d+13|0]<<8;I[d+4>>1]=c<<8|c>>>8;c=K[d+14|0]|K[d+15|0]<<8;I[d+6>>1]=c<<8|c>>>8}hI(a, +b,d)}fc=d+16|0;return}Ld(a,66446);B()}function RHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-32|0;fc=e;a=e+20|0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;J[699344]=0;ia(5007,a|0,b|0,1,-1);b=J[699344];J[699344]=0;a:{b:{if((b|0)==1)break b;J[699344]=0;d=J[a+4>>2];b=J[699344];J[699344]=0;if((b|0)==1)break b;c:{d:{e:{f=!d;if(!f){J[699344]=0;d=J[a+4>>2];b=J[699344];J[699344]=0;if((b|0)==1)break b;f:{if(!d)break f;J[699344]=0;J[e+8>>2]=0;d=e+8|0;b=J[a>>2];if(K[a+8|0])b=J[b>>2];g=J[(J[d>>2]<<2)+b>>2];b=J[699344]; +J[699344]=0;if((b|0)==1)break e;if((g|0)!=123)break f;J[699344]=0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;ia(5010,c|0,a|0,a|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;Rc(d)}J[699344]=0;da(5011,c|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}Rc(a);fc=e+32|0;return!f|0}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;Rc(d);break a}b=Z()|0}Rc(a);ba(b|0);B()}function Cc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=fc-48|0;fc=f;a:{b:{c:{if(J[693462])break c; +e=J[693464];if(!e)break c;if(J[e+408>>2])break b}J[f+44>>2]=d;e=vc(8);J[e>>2]=0;J[e+4>>2]=0;J[699344]=0;da(3541,e|0,0);g=J[699344];J[699344]=0;d:{if((g|0)!=1){H[J[e+4>>2]]=0;c=WJ(e,c,d);break d}a=Z()|0;uc(e);ba(a|0);B()}d=vc(8);J[699344]=0;e=_(3351,d|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(J[c>>2]>0){d=0;while(1){g=K[J[c+4>>2]+d|0];e:{if((g-32&255)>>>0<=94){Kd(e,g<<24>>24);break e}J[f+32>>2]=g;ed(e,785761,f+32|0)}d=d+1|0;if((d|0)>2])continue;break}}d=J[693462];f:{if(d){kc[d|0](J[693463], +a,b,J[e+4>>2]);break f}Zi(J[655076]);d=J[(a<<2)+2708640>>2];a=J[655074];g=J[e+4>>2];g:{if((b|0)>=0){J[f+8>>2]=g;J[f+4>>2]=b;J[f>>2]=d;md(a,786804,f);break g}J[f+20>>2]=g;J[f+16>>2]=d;md(a,787606,f+16|0)}Zi(a)}uc(Zc(c));uc(Zc(e))}fc=f+48|0;return}a=Z()|0;uc(d);ba(a|0);B()}function FH(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;i=fc-32|0;fc=i;a:{b:{if(!((J[b>>2]|J[b+4>>2])<0|J[b+8>>2]>J[a+32>>2]))if(J[b+12>>2]<=J[a+36>>2])break b;a=Qc(i+8|0,2387870,2385707,267,2425378,0);J[699344]=0;$(5179,a|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}if(!J[a+40>>2])FV(a,0,0);e=J[a+52>>2];if(!e){GV(a,0,0);e=J[a+52>>2]}f=J[(J[b>>2]<<2)+e>>2]>>4;J[c>>2]=f;h=J[a+40>>2];g=J[h+(J[b+4>>2]<<2)>>2]>>4;J[c+4>>2]=g;e=J[((J[b+8>>2]<<2)+e|0)-4>>2]+15>>4;J[c+8>>2]=e;h=J[(h+(J[b+12>>2]<<2)|0)-4>>2];f=(f|0)>0?f:0;J[c>>2]=f;b=J[a+24>>2];g=(g|0)>0?g:0;J[c+4>>2]=g;e=e+1|0;b=(b|0)>(e|0)?e:b;J[c+8>>2]=b;j=c;c=(h+15>>4)+1|0;e=J[a+28>>2];c=(c|0)<(e|0)?c:e;J[j+12>>2]=c;e=J[a+16>>2];f=f<>2]=(f|0)>0?f:0; +b=b<>2];J[d+8>>2]=(b|0)<(e|0)?b:e;b=J[a+20>>2];e=g<>2]=(e|0)>0?e:0;b=c<>2];J[d+12>>2]=(a|0)>(b|0)?b:a;fc=i+32|0;return}B()}function Evb(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;var h=0,i=0,j=0;a:{if(f){if(((c+1|0)/2|0)<=(b|0)){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+1|0]=b;b=K[e+2|0];h=K[f+2|0];if((b| +0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+2|0]=b;H[g+3|0]=K[f+3|0];g=g+4|0;f=f+4|0;e=e+4|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+1|0]=b;b=K[e+2|0];h=K[f+2|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+2|0]=b;H[g+3|0]=K[e+3|0];g=g+4|0;e=e+4|0;f=f+4|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}xc(g, +e,d<<2)}return 0}function TWa(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;j=J[a+372>>2];d=J[a+420>>2];e=J[a+24>>2];J[d+112>>2]=J[e>>2];J[d+116>>2]=J[e+4>>2];if(!(J[d+36>>2]|!J[a+236>>2]))ZB(d,J[d+40>>2]);if(J[a+316>>2]>0)while(1){e=h<<2;c=J[(e+a|0)+320>>2]<<2;k=J[(c+a|0)+292>>2];g=d+c|0;c=J[g+20>>2];f=I[J[b+e>>2]>>1]>>j;J[g+20>>2]=f;i=f-c|0;g=i>>31;e=0;a:{if((c|0)==(f|0))break a;f=(g^i)-g|0;while(1){c=e;e=c+1|0;l=f>>>0>1;f=f>>>1|0;if(l)continue;break}if(c>>>0<11)break a;c=J[a>>2]; +J[c+20>>2]=6;kc[J[c>>2]](a)}c=J[k+20>>2];b:{if(J[d+108>>2]){c=J[((c<<2)+d|0)+76>>2]+(e<<2)|0;J[c>>2]=J[c>>2]+1;break b}c=J[((c<<2)+d|0)+44>>2];Gr(d,J[c+(e<<2)>>2],H[(c+e|0)+1024|0])}if(e)Gr(d,g+i|0,e);h=h+1|0;if((h|0)>2])continue;break}b=J[a+24>>2];J[b>>2]=J[d+112>>2];J[b+4>>2]=J[d+116>>2];a=J[a+236>>2];if(a){b=J[d+36>>2];if(b)a=b;else J[d+40>>2]=J[d+40>>2]+1&7;J[d+36>>2]=a-1}return 1}function cH(a,b,c,d,e){var f=0,g=0,h=0,i=0;i=dH(a,b,c,d);f=J[d>>2];g=K[f+622|0];a:{b:{h=J[e>>2];if(K[h+622| +0]){if(!g)break a;break b}if(!g)break b;return i}if(M[h+616>>2]>2])break a;return i}J[d>>2]=h;J[e>>2]=f;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=i+1|0;f=J[c>>2];g=K[f+622|0];h=J[d>>2];c:{d:{e:{if(K[h+622|0]){if(g)break e;break d}if(g)break c}if(M[h+616>>2]>=M[f+616>>2])break c}J[c>>2]=h;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;e=i+2|0;d=J[b>>2];f=K[d+622|0];g=J[c>>2];f:{g:{if(K[g+622|0]){if(f)break g;break f}if(f)break c}if(M[g+616>>2]>=M[d+616>>2])break c}J[b>>2]=g;J[c>> +2]=d;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;e=i+3|0;c=J[a>>2];d=K[c+622|0];f=J[b>>2];h:{i:{if(K[f+622|0]){if(d)break i;break h}if(d)break c}if(M[f+616>>2]>=M[c+616>>2])break c}J[a>>2]=f;J[b>>2]=c;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;e=i+4|0}return e}function Vf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;J[a+8>>2]=b;if(J[a+32>>2]){f=J[a+20>>2];j=J[a+28>>2]-f>>3;while(1){c=I[f+10>>1];g=J[f+12>>2];a:{b:{h=J[a+8>>2];if((h|0)<0)break b;k=J[a+32>>2];b=J[k>>2];if((h|0)>(J[b+12>>2]-1|0))break b; +i=J[b+8>>2];d=c;b=g;e=I[f+8>>1];if((e|0)<0){d=c+e|0;if((d|0)<=0)break b;b=Ac(b,0,0-e|0)-e|0;e=0}l=d+e|0;if((l|0)>(i-1|0)){i=l-i|0;d=d-i|0;if((d|0)<=0)break b;Ac(b+d|0,0,i)}c=J[k>>2];c=((J[c+4>>2]+P(h,J[c+16>>2])|0)+(e<<2)|0)+3|0;e=d-1|0;g=0;h=d&3;if(h)while(1){H[b|0]=P(K[c|0],K[b|0])+255>>>8;d=d-1|0;c=c+4|0;b=b+1|0;g=g+1|0;if((h|0)!=(g|0))continue;break}if(e>>>0<3)break a;while(1){H[b|0]=P(K[c|0],K[b|0])+255>>>8;H[b+1|0]=P(K[c+4|0],K[b+1|0])+255>>>8;H[b+2|0]=P(K[c+8|0],K[b+2|0])+255>>>8;H[b+3|0]= +P(K[c+12|0],K[b+3|0])+255>>>8;c=c+16|0;b=b+4|0;d=d-4|0;if(d)continue;break}break a}Ac(g,0,c)}f=f+8|0;j=j-1|0;if(j)continue;break}}}function rOa(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;var h=0;J[a>>2]=2343548;J[a+4>>2]=b;a:{b:{if((c|0)!=1){b=vc(44);J[b+40>>2]=0;J[b+32>>2]=0;J[b+16>>2]=f;J[b+12>>2]=e;J[b+8>>2]=d;J[b+4>>2]=c;J[b>>2]=a;c=P(d,e);J[b+20>>2]=c;h=P(e,f)+7>>3;J[b+24>>2]=h;h=h+(P(c,f)+7>>3)|0;J[b+28>>2]=h;c:{d:{if((d|0)<=0|(e|0)<=0|(f-17>>>0<4294967280|e>>>0>32))break d;if(2147483647/ +(e>>>0)>>>0<=d>>>0|(c|0)>=(2147483640/(f>>>0)|0))break d;J[699344]=0;c=_(3616,h|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;J[b+32>>2]=c;Ac(c,0,J[b+28>>2]);J[b+40>>2]=1;J[b+36>>2]=J[b+28>>2];J[a+8>>2]=b;break b}J[a+8>>2]=b;J[699344]=0;Mc(0);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(b);J[a+8>>2]=0;break b}a=Z()|0;uc(b);ba(a|0);B()}J[a+8>>2]=0}J[a+53316>>2]=1;J[a+53308>>2]=0;J[a+53312>>2]=0;J[a+49192>>2]=258;J[a+49196>>2]=9;J[a+24>>2]=0;J[a+16>>2]=0;J[a+12>>2]=g;return a|0}ea(0)|0;Bc();B()} +function bPa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=fc-16|0;fc=f;J[a+64>>2]=13;J[a+48>>2]=13;J[a+32>>2]=13;J[a+16>>2]=13;J[f>>2]=13;J[a+92>>2]=d;J[a+88>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=e;a:{if(J[Ec(c,778905,f,0)>>2]==3){d=vc(12);J[699344]=0;e=aa(3354,d|0,J[f+8>>2])|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[a+4>>2]=e}g=a- -64|0;h=a+48|0;i=a+32|0;j=a+16|0;yc(f);b:{c:{if(J[Ec(c,779712,f,0)>>2]!=5){e=vc(12);J[699344]=0;d=aa(3626,e|0,f|0)|0;k=J[699344];J[699344]= +0;d:{if((k|0)!=1){if(!(kc[J[J[d>>2]+8>>2]](d)|0)){kc[J[J[d>>2]+4>>2]](d);d=0}break d}a=Z()|0;uc(e);ba(a|0);B()}break c}yc(f);if(J[Ec(c,781756,f,0)>>2]==5)break b;d=fJ(f,0)}J[a+8>>2]=d}yc(f);Pe(b,j);Ke(c,776249,i);Ke(c,777426,h);Ke(c,782085,g);J[a+80>>2]=0;if(!(J[Ec(c,783148,f,0)>>2]!=1|J[f+8>>2]<=0))J[a+80>>2]=1;yc(f);J[a+84>>2]=-1;fc=f+16|0;return a|0}a=Z()|0;uc(d);ba(a|0);B()}function SQa(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;g=fc-128|0;fc=g;i=J[a+12>> +2];a:{if(i){j=J[a+16>>2];if((j|0)<=0)break a;k=K[b|0];if(j>>>0>=4){m=j&-4;b=a+148|0;while(1){e=f<<2;h=k<<2;J[e+g>>2]=J[h+J[b+e>>2]>>2];l=e|4;J[l+g>>2]=J[h+J[b+l>>2]>>2];l=e|8;J[l+g>>2]=J[h+J[b+l>>2]>>2];e=e|12;J[e+g>>2]=J[h+J[b+e>>2]>>2];f=f+4|0;n=n+4|0;if((m|0)!=(n|0))continue;break}}b=j&3;if(!b)break a;while(1){e=f<<2;J[e+g>>2]=J[J[(a+e|0)+148>>2]+(k<<2)>>2];f=f+1|0;o=o+1|0;if((b|0)!=(o|0))continue;break}break a}e=J[a+8>>2];b:{if((e|0)<=0)break b;if((e|0)!=1){j=e&-2;i=a+20|0;while(1){h=f<<2;J[h+ +g>>2]=J[J[h+i>>2]+(K[b+f|0]<<2)>>2];h=f|1;k=h<<2;J[k+g>>2]=J[J[i+k>>2]+(K[b+h|0]<<2)>>2];f=f+2|0;m=m+2|0;if((j|0)!=(m|0))continue;break}}if(!(e&1))break b;e=f<<2;J[e+g>>2]=J[J[(a+e|0)+20>>2]+(K[b+f|0]<<2)>>2]}i=J[a>>2]}kc[J[J[i>>2]+16>>2]](i,g,c,d);fc=g+128|0}function RQa(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;g=fc-128|0;fc=g;i=J[a+12>>2];a:{if(i){j=J[a+16>>2];if((j|0)<=0)break a;k=K[b|0];if(j>>>0>=4){m=j&-4;b=a+148|0;while(1){e=f<<2;h=k<<2;J[e+g>>2]=J[h+ +J[b+e>>2]>>2];l=e|4;J[l+g>>2]=J[h+J[b+l>>2]>>2];l=e|8;J[l+g>>2]=J[h+J[b+l>>2]>>2];e=e|12;J[e+g>>2]=J[h+J[b+e>>2]>>2];f=f+4|0;n=n+4|0;if((m|0)!=(n|0))continue;break}}b=j&3;if(!b)break a;while(1){e=f<<2;J[e+g>>2]=J[J[(a+e|0)+148>>2]+(k<<2)>>2];f=f+1|0;o=o+1|0;if((b|0)!=(o|0))continue;break}break a}e=J[a+8>>2];b:{if((e|0)<=0)break b;if((e|0)!=1){j=e&-2;i=a+20|0;while(1){h=f<<2;J[h+g>>2]=J[J[h+i>>2]+(K[b+f|0]<<2)>>2];h=f|1;k=h<<2;J[k+g>>2]=J[J[i+k>>2]+(K[b+h|0]<<2)>>2];f=f+2|0;m=m+2|0;if((j|0)!=(m|0))continue; +break}}if(!(e&1))break b;e=f<<2;J[e+g>>2]=J[J[(a+e|0)+20>>2]+(K[b+f|0]<<2)>>2]}i=J[a>>2]}kc[J[J[i>>2]+20>>2]](i,g,c,d);fc=g+128|0}function Hha(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;g=fc-16|0;fc=g;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;h=c-b>>2;a:{if(!h)break a;b:{if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(f>>>0<=b>>>0){if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(K[a+11|0]>>>7|0)i=J[a+4>>2];else i=K[a+11|0]&127;f=f+(i<<2)>>>0>=b>>> +0}else f=0;if(!f){if(d-e>>>0>>0)$y(a,d,(e-d|0)+h|0,e,e,0);if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;d=d+(e<<2)|0;while(1){if((b|0)==(c|0))break b;J[d>>2]=J[b>>2];b=b+4|0;d=d+4|0;continue}}e=fc-16|0;fc=e;d=g+4|0;KR(d,b,c);fc=e+16|0;b=d;c:{if(K[b+11|0]>>>7|0){c=J[b>>2];break c}c=b}if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;J[699344]=0;ga(2960,a|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){df(b);break a}a=Z()|0;df(b);ba(a|0);B()}J[g+4>>2]=0;J[d>>2]=J[g+4>>2];kl(a,e+h|0)}fc=g+16|0;return a| +0}function Dtb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=L[b+52>>1];d=K[b+40|0];e=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[e+8|0]=c;H[e+9|0]=c>>>8;H[e+10|0]=c>>>16;H[e+11|0]=c>>>24;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[e+12|0]=c;H[e+13|0]=c>>>8;H[e+14|0]=c>>>16;H[e+15|0]=c>>>24;H[e+16|0]=K[b+40|0];H[e+17|0]=K[b+41|0];H[e+18|0]=K[b+42|0];H[e+19|0]=K[b+43|0];H[e+20|0]=K[b+44|0];c=d>>>0<9?255:-1;g=e+8|0;a:{b:{d=L[b+46>>1];if(d|L[b+48>>1]|(L[b+50>>1]|(c& +65535)!=(f|0)))break b;if(K[b+54|0])break b;d=13;break a}d=d<<8|d>>>8;H[e+21|0]=d;H[e+22|0]=d>>>8;d=L[b+48>>1];d=d<<8|d>>>8;H[e+23|0]=d;H[e+24|0]=d>>>8;d=L[b+50>>1];d=d<<8|d>>>8;H[e+25|0]=d;H[e+26|0]=d>>>8;d=19;if(!(K[b+54|0]|(c&65535)!=(f|0)))break a;c=L[b+52>>1];c=c<<8|c>>>8;H[e+27|0]=c;H[e+28|0]=c>>>8;f=K[b+54|0];d=21;if(!f)break a;H[e+29|0]=f;d=22}c=d;return Ce(a,J[b>>2],c,g)|0}function wq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[c>>2];if(!f){f=vc(P(b,6)+4|0);J[c>>2]=f}if(e){H[f+2| +0]=191;H[f|0]=239;H[f+1|0]=187;f=f+3|0}if((b|0)>0){e=(b<<2)+a|0;while(1){b=J[a>>2];a:{if(b>>>0<=127){H[f|0]=b;f=f+1|0;break a}if(b>>>0<=2047){H[f+1|0]=b&63|128;H[f|0]=b>>>6|192;f=f+2|0;break a}if(b>>>0<=65535){H[f+2|0]=b&63|128;H[f|0]=b>>>12|224;H[f+1|0]=b>>>6&63|128;f=f+3|0;break a}if(b>>>0<=2097150){H[f+3|0]=b&63|128;H[f|0]=b>>>18|240;H[f+2|0]=b>>>6&63|128;H[f+1|0]=b>>>12&63|128;f=f+4|0;break a}if(b>>>0<=67108862){H[f+4|0]=b&63|128;H[f|0]=b>>>24|248;H[f+3|0]=b>>>6&63|128;H[f+2|0]=b>>>12&63|128; +H[f+1|0]=b>>>18&63|128;f=f+5|0;break a}if(b>>>0>2147483646)break a;H[f+5|0]=b&63|128;H[f|0]=b>>>30|252;H[f+4|0]=b>>>6&63|128;H[f+3|0]=b>>>12&63|128;H[f+2|0]=b>>>18&63|128;H[f+1|0]=b>>>24&63|128;f=f+6|0}a=a+4|0;if(e>>>0>a>>>0)continue;break}}J[d>>2]=f-J[c>>2];H[f|0]=0}function veb(a){a=a|0;var b=0,c=0,d=0;a:{if(!J[a+16>>2])break a;b=J[a+700>>2];if((b|0)==J[a+696>>2])break a;c=b-4|0;b=J[c>>2];J[a+700>>2]=c;J[a+28>>2]=J[b+12>>2];J[a+32>>2]=J[b+16>>2];O[a+40>>3]=O[b+24>>3];H[a+48|0]=K[b+32|0];H[a+49| +0]=K[b+33|0];H[a+50|0]=K[b+34|0];H[a+51|0]=K[b+35|0];c=J[a+52>>2];if(c){uc(c);J[a+52>>2]=0}c=J[b+40>>2];J[a+56>>2]=c;if(c){d=c<<3;c=vc(c>>>0>536870911?-1:d);J[a+52>>2]=c;xc(c,J[b+36>>2],d)}O[a- -64>>3]=O[b+48>>3];J[a+72>>2]=J[b+56>>2];O[a+80>>3]=O[b- -64>>3];Ux(a+88|0,b+72|0);$l(a+456|0,b+440|0);c=J[a+16>>2];if(!(!c|!J[a+20>>2])){BD(c,b+512|0);Mu(J[a+16>>2])}kc[J[J[a>>2]+532>>2]](a,b+529|0);kc[J[J[a>>2]+528>>2]](a,b+528|0,b+520|0);kc[J[J[a>>2]+460>>2]](a,b+532|0);I5(J[a+16>>2]);c=J[b+536>>2];if((c| +0)!=J[b+540>>2])while(1){d=J[c>>2];G5(J[a+16>>2],J[d>>2],J[d+4>>2],J[d+8>>2]);c=c+4|0;if((c|0)!=J[b+540>>2])continue;break}kc[J[J[b>>2]+4>>2]](b)}}function tWa(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;a:{b:{e=J[b+4>>2];c:{if(!e){f=b+4|0;c=f;break c}f=K[c+11|0];g=f<<24>>24>=0;i=g?c:J[c>>2];g=g?f:J[c+4>>2];while(1){c=e;e=K[e+27|0];f=e<<24>>24<0;e=f?J[c+20>>2]:e;j=e>>>0>>0;d:{e:{f:{g:{h=j?e:g;h:{if(h){f=f?J[c+16>>2]:c+16|0;k=dd(i,f,h);if(!k){if(e>>>0>g>>>0)break h;break g}if((k| +0)>=0)break g;break h}if(e>>>0<=g>>>0)break f}f=c;e=J[c>>2];if(e)continue;break c}e=dd(f,i,h);if(e)break e}if(j)break d;break b}if((e|0)>=0)break b}e=J[c+4>>2];if(e)continue;break}f=c+4|0}e=vc(36);J[e+24>>2]=J[d+8>>2];g=J[d+4>>2];J[e+16>>2]=J[d>>2];J[e+20>>2]=g;J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;g=J[d+12>>2];d=J[d+16>>2];J[e>>2]=0;J[e+4>>2]=0;J[e+8>>2]=c;J[e+28>>2]=g;J[e+32>>2]=d;J[f>>2]=e;c=e;d=J[J[b>>2]>>2];if(d){J[b>>2]=d;c=J[f>>2]}Oc(J[b+4>>2],c);J[b+8>>2]=J[b+8>>2]+1;b=1;break a}e=c;b=0}H[a+4| +0]=b;J[a>>2]=e}function pM(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;l=K[a+120|0];a:{b:{c:{if(!J[b>>2]){g=O[a+72>>3];i=O[a>>3];if(!l){J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;break c}k=O[a+104>>3];h=O[a+88>>3];J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;O[a>>3]=i;j=g+h;h=g+k;break b}g=O[a+80>>3];i=O[a+8>>3];if(!l){J[699344]=0;a=_(4,32)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c;break a}k=O[a+112>>3];h=O[a+96>>3];J[699344]=0;a=_(4,32)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break a;O[a>>3]=i;j=g+h;h=g+k;break b}O[a>>3]=i;j=i;h=g}O[a+24>>3]=g;O[a+16>>3]=h;O[a+8>>3]=j;g=O[c>>3];d:{if(!(!(g>i)|!(g>O[a+24>>3])|!(g>O[a+8>>3]))){b=0;if(g>O[a+16>>3])break d}h=O[a+24>>3];if(!(!(g>3])|(!(gg)))){b=0;if(g>3])break d}k=h-i;h=O[a+8>>3];j=(h-i)*3;h=(O[a+16>>3]-h)*3-j;b=b5(k-j-h,h,j,i-g,d,e,f)}uc(a);return b}ea(0)|0;Bc();B()}function jBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;a:{b:{c:{if(!K[a+144|0]){a=Qc(c+8|0,2394631,2386059, +164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;Kc(a);ba(b|0);B()}d:{e:{if(b){b=0;a=a+148|0;if(!(J[a>>2]&1))break e;while(1){b=1;if(J[a>>2]&1)continue;break}break e}b=0;J[c+8>>2]=0;a=J[a+120>>2];if(!a)break e;f:{while(1){d=J[a+8>>2];J[699344]=0;d=J[d+148>>2];e=J[699344];J[699344]=0;if((e|0)==1)break d;if(!(d&1)){a=J[a>>2];if(!a)break f;continue}break}J[699344]=0;aa(5153,c+8|0,a+8|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break f;break a}a=J[c+8>>2];J[c+8>> +2]=0;if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(!b){J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b}b=1}fc=c+32|0;return b|0}break a}B()}ea(0)|0;Bc();B()}a=Z()|0;zc(c+8|0);ba(a|0);B()}function dS(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;H[a|0]=0;a:{d=J[J[b>>2]-12>>2]+b|0;b:{if(!J[d+16>>2]){d=J[d+72>>2];if(d)cS(d);c:{if(c)break c;c=J[J[b>>2]-12>>2]+b|0;if(!(J[c+4>>2]&4096))break c;d=f+12|0;c=J[c+28>>2];J[d>>2]=c;J[c+ +4>>2]=J[c+4>>2]+1;J[699344]=0;c=_(6750,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;d=J[d>>2];e=J[d+4>>2]-1|0;J[d+4>>2]=e;if((e|0)==-1)kc[J[J[d>>2]+8>>2]](d);d=f+8|0;J[d>>2]=J[(J[J[b>>2]-12>>2]+b|0)+24>>2];g=f+4|0;J[g>>2]=0;while(1){d:{if(gk(d,g))break d;e=J[d>>2];h=J[e+12>>2];e:{if((h|0)==J[e+16>>2]){e=kc[J[J[e>>2]+36>>2]](e)|0;break e}e=J[h>>2]}if(!(kc[J[J[c>>2]+12>>2]](c,1,e)|0))break d;dr(d);continue}break}if(!gk(d,g))break c;fr(J[J[b>>2]-12>>2]+b|0,6)}H[a|0]=!J[(J[J[b>>2]-12>>2]+b|0)+16>> +2];break b}fr(d,4)}fc=f+16|0;return a}c=Z()|0;a=J[f+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function v5(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if(!K[e+3|0])break a;g=J[a>>2];a=J[g+4>>2];i=J[g+16>>2];b:{if((i|0)>=0){c=P(c,i);break b}c=P(c,i);if((a-J[g>>2]|0)<(0-c|0))break a}if(!a)break a;a=(a+c|0)+(b<<2)|0;while(1){i=K[e|0];b=P(K[e+3|0],K[f|0]+1|0);c=b>>>8|0;c:{if((c|0)==255){H[a+2|0]=i;H[a+1|0]=K[e+1|0];b=K[e+2|0];H[a+3|0]=255;H[a|0]=b;break c}if(b>>> +0<256)break c;j=K[e+2|0];m=K[e+1|0];b=a+3|0;h=K[a|0];k=K[a+1|0];l=K[a+2|0];g=K[a+3|0];d:{if((g|0)==255){H[a|0]=h+(P(c,j-h|0)>>>8|0);h=(P(c,m-k|0)>>>8|0)+k|0;g=(P(c,i-l|0)>>>8|0)+l|0;j=(c-(P(c,255)+255>>>8|0)|0)+255|0;break d}b=c+g-(P(c,g)+255>>>8)|0;H[a+3|0]=b;h=P(g,h);b=b&255;j=(h+P(c,j)-(P(c,h)+255>>>8)>>>0)/(b>>>0)|0;h=P(g,k);h=(h+P(c,m)-(P(c,h)+255>>>8)>>>0)/(b>>>0)|0;g=P(g,l);g=(g+P(c,i)-(P(c,g)+255>>>8)>>>0)/(b>>>0)|0;b=a}H[a+1|0]=h;H[a+2|0]=g;H[b|0]=j}f=f+1|0;a=a+4|0;d=d-1|0;if(d)continue; +break}}}function i1a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(!K[b+8|0]){d=ji(48);J[a+8>>2]=d;if(d){I[d>>1]=65534;J[a+44>>2]=65535;H[d+25|0]=0;I[d+2>>1]=0;e=J[b+12>>2]&15;if(e>>>0<=8){H[d+24|0]=1;a=K[730727]|K[730728]<<8|(K[730729]<<16|K[730730]<<24);b=K[730723]|K[730724]<<8|(K[730725]<<16|K[730726]<<24);H[d+26|0]=b;H[d+27|0]=b>>>8;H[d+28|0]=b>>>16;H[d+29|0]=b>>>24;H[d+30|0]=a;H[d+31|0]=a>>>8;H[d+32|0]=a>>>16;H[d+33|0]=a>>>24;a=K[730734]|K[730735]<<8|(K[730736]<<16|K[730737]<<24);b=K[730730]|K[730731]<< +8|(K[730732]<<16|K[730733]<<24);H[d+33|0]=b;H[d+34|0]=b>>>8;H[d+35|0]=b>>>16;H[d+36|0]=b>>>24;H[d+37|0]=a;H[d+38|0]=a>>>8;H[d+39|0]=a>>>16;H[d+40|0]=a>>>24;b=P(e,12);a=J[b+753956>>2];J[d+20>>2]=a;J[d+16>>2]=a;J[d+12>>2]=a;a=L[b+753952>>1]<<7;I[d+8>>1]=a;I[d+4>>1]=a;I[d+6>>1]=a;a=d+26|0;a=Yc(a)+a|0;H[a|0]=e|48;H[a+1|0]=0;J[d+44>>2]=0;return}Nf(d);J[a+8>>2]=0;J[c>>2]=1;return}J[c>>2]=7}}function g5(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;e=fc-16|0;fc=e;a:{b:{f=J[a+4>>2];c= +J[f>>2];if(!c){g=-1;break b}h=J[f+16>>2];if((c|0)!=1){k=c&-2;while(1){l=b;b=J[(d>>>6&67108860)+h>>2]+(d&254)|0;i=K[b|0];b=K[b+1|0];b=(l+((i|0)!=0&!(i&64))|0)+((b|0)!=0&!(b&64))|0;d=d+2|0;g=g+2|0;if((k|0)!=(g|0))continue;break}}if(c&1){d=K[J[(d>>>6&67108860)+h>>2]+(d&255)|0];b=((d|0)!=0&!(d&64))+b|0}g=b-1|0;if(g)break b;break a}d=0;while(1){b=d+1|0;c:{if(b>>>0>=c>>>0|K[J[J[f+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]!=4)break c;Zk(e+4|0,a,d,4);c=J[e+4>>2];if(!c)break c;J[e+8>>2]=c;uc(c)}Zk(e+4|0,a,d,2); +c=J[e+4>>2];m=O[c+24>>3];n=O[c>>3];o=O[c+8>>3];p=O[c+16>>3];J[e+8>>2]=c;uc(c);j=j+ +Q((m*n-o*p)/20);f=J[a+4>>2];c=J[f>>2];if(!(b>>>0>=c>>>0))b=(K[J[J[f+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]==4?d+2|0:d)+1|0;d=b;if(g>>>0>d>>>0)continue;break}}fc=e+16|0;return j>=0}function Xpb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=K[a+20|0];f=J[a+16>>2];g=J[a+12>>2];a:{b:{if(!Ic(b,252180)){b=J[c>>2];if(!b){d=35;break a}d=J[b+116>>2];J[e+8>>2]=d;if(!d){d=nE(b,e+8|0,a);if(d)break a;d=J[e+8>>2]; +J[b+116>>2]=d;J[b+120>>2]=1643}J[c+4>>2]=J[d+8>>2];break b}if(!Ic(b,252084)){J[c>>2]=J[J[(g<<2)+247312>>2]+8>>2];break b}if(!Ic(b,252100)){J[c>>2]=f;break b}if(!Ic(b,252115)){b=J[c>>2];if(!b){d=35;break a}d=J[b+116>>2];J[e+12>>2]=d;if(!d){d=nE(b,e+12|0,a);if(d)break a;d=J[e+12>>2];J[b+116>>2]=d;J[b+120>>2]=1643}J[c+4>>2]=J[d+12>>2];break b}if(!Ic(b,252133)){H[c|0]=d;break b}if(!Ic(b,252141)){J[c>>2]=J[a+24>>2];J[c+4>>2]=J[a+28>>2];J[c+8>>2]=J[a+32>>2];J[c+12>>2]=J[a+36>>2];J[c+16>>2]=J[a+40>>2];J[c+ +20>>2]=J[a+44>>2];J[c+24>>2]=J[a+48>>2];J[c+28>>2]=J[a+52>>2];break b}d=12;if(Ic(b,252162))break a;H[c|0]=K[a+21|0]}d=0}fc=e+16|0;return d|0}function LY(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=fc-16|0;fc=e;a:{b:{c:{f=J[a+200>>2];if(!(f&1)){if((c|0)!=13)break c;J[a+200>>2]=f|1;c=e+3|0;Dg(a,c,13);Ae(a,c,13);Vd(a,0);c=K[e+3|0]|K[e+4|0]<<8|(K[e+5|0]<<16|K[e+6|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if((c|0)<0)break b;f=K[e+7|0]|K[e+8|0]<<8|(K[e+9|0]<<16|K[e+10|0]<<24);g=f<<24|(f&65280)<< +8|(f>>>8&65280|f>>>24);if((g|0)<0)break a;i=K[e+15|0];f=K[e+12|0];j=K[e+14|0];k=K[e+13|0];h=K[e+11|0];H[a+402|0]=h;J[a+324>>2]=g;J[a+320>>2]=c;H[a+696|0]=k;H[a+664|0]=j;H[a+401|0]=f;H[a+398|0]=i;l=f<<3;d=l&31;if((l&63)>>>0>=32)d=262402>>>d|0;else d=((1<>>d;d=f>>>0>=7?1:d;H[a+405|0]=d;d=P(d,h);H[a+404|0]=d;d=d&255;d:{if(d>>>0>=8){d=P(c,d>>>3|0);break d}d=P(c,d)+7>>>3|0}J[a+336>>2]=d;CX(a,b,c,g,h,f,i,k,j);fc=e+16|0;return}Ld(a,59908);B()}Ld(a,60007);B()}Ld(a,57851);B()}Ld(a, +57851);B()}function Zua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;J[d+8>>2]=c;zV(d+4|0,b,d+8|0);a:{b:{b=J[d+4>>2];c:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[d+12>>2]=0}J[699344]=0;aa(5153,a|0,d+12|0)|0;b=J[699344];J[699344]=0;d:{if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break d}break a}a=Z()|0;zc(d+12|0);break b}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];b=J[d+4>>2];J[d+4>>2]=0;e:{f:{if(!b)break f;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break e;if(c)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break e}fc=d+16|0;return a|0}break a}zc(d+4|0);ba(a|0);B()}ea(0)|0;Bc();B()}function D9a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=Q(0),e=Q(0),f=Q(0),g=Q(0),h=Q(0),i=Q(0);i=Q(NaN);d=N[a+12>>2];f=Q(N[a+16>>2]- +d);e=N[a+24>>2];g=Q(N[a+32>>2]-e);e=Q(c-e);c=b;b=N[a+20>>2];h=Q(c-b);b=Q(N[a+28>>2]-b);c=Q(Q(Q(g+g)*e)+Q(Q(Q(d+d)*f)+Q(h*Q(b+b))));e=Q(Q(Q(d*d)-Q(h*h))-Q(e*e));d=Q(Q(Q(f*f)-Q(b*b))-Q(g*g));b=Q(Q(c*c)+Q(e*Q(d*Q(-4))));a:{if(b=Q(0))|!(b<=Q(1)))){c=N[a+140>>2];return Q(Q(Q(Q(N[a+144>>2]-c)*b)+c))}c=Q(Q(Q(f-c)*Q(.5))/d);if(!(!(c>=Q(0))|!(c<=Q(1)))){b=N[a+140>>2];return Q(Q(Q(Q(N[a+144>>2]- +b)*c)+b))}b:{if(N[a+108>>2]==Q(0))break b;d=Q(-N[a+276>>2]);if(!(b<=Q(0)&b>=d)&(!(c<=Q(0))|!(c>=d)))break b;return Q(N[a+140>>2])}if(N[a+112>>2]==Q(0))break a;d=Q(N[a+272>>2]+Q(1));if(!(b<=d&b>=Q(1))&(!(c>=Q(1))|!(c<=d)))break a;i=N[a+144>>2]}return Q(i)}function Cw(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;h=O[a+16>>3];s=O[a+40>>3];t=O[a+32>>3];f=O[a+24>>3];g=h*s-t*f;if(R(g)<=1E-10){J[e>>2]=0;J[e+4>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[b>>2]= +0;J[b+4>>2]=0;return}m=1/g;n=O[a+48>>3];o=O[a+56>>3];q=m*(f*n-o*h);l=O[a+632>>3];u=m*-f;j=l*u;f=h*m;g=O[a+656>>3];v=f*g;h=q+(j+v);p=O[a+640>>3];k=f*p;i=q+(j+k);r=m*(t*o-n*s);f=l;l=s*m;j=f*l;f=m*-t;n=f*g;g=r+(j+n);o=f*p;f=r+(j+o);a:{if(gi)){f=i;h=f;break b}f=i}i=O[a+648>>3];p=i*u;k=q+(p+k);l=i*l;i=r+(l+o);c:{d:{if(ik){f=k;break f}if(hi)break g}g=i}i:{j:{if(f>h){f=h;break j}if(h>k)break i}h=k}O[b>>3]=j;O[c>>3]=f;O[d>>3]=g;O[e>>3]=h}function rya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[a+20>>2]=0;J[a>>2]=2419044;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;I[a+16>>1]=0;J[699344]=0;f=ha(5213,a+28|0,a+24|0,0,1)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{e:{f:{g:{h:{if((d|0)!=1){J[699344]=0;d=ha(5213,a+40|0,a+36|0,0,1)|0;e=J[699344];J[699344]=0;if((e|0)==1)break h;J[699344]=0;e=ha(5213,a+52|0,a+48|0,0,4)|0; +g=J[699344];J[699344]=0;if((g|0)==1)break e;J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[699344]=0;ca(5613,a|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)!=1)break f;oa(ea(0)|0)|0;J[699344]=0;$(5607,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;ka(5257);b=J[699344];J[699344]=0;if((b|0)==1)break g;B()}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)==1)break a;zc(a+68|0);hd(e);break d}return a|0}b=Z()|0}hd(d)}hd(f)}nd(a);ba(b|0);B()}ea(0)|0;Bc(); +B()}function p$a(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=J[b>>2];e=J[d>>2];if((e&-2147483647)==1){e=e-1|0;J[d>>2]=e}g=(e|0)/2|0;h=a;i=c;a:{if((e|0)<=1)break a;k=f+h|0;l=(g<<1)+i|0;b:{while(1){g=i;f=h;h=f-a|0;if(J[b>>2]<=(h+5|0))break b;i=g+2|0;c:{e=L[g>>1];if((e&64512)==55296){if(i>>>0>=l>>>0)break b;i=L[i>>1];if((i&64512)!=56320)break c;e=(e<<10&1047552|i&1023)+65536|0;i=g+4|0}if(f>>>0>=k>>>0)break b;d:{if(e>>>0<=127){H[f|0]=e;h=f+1|0;break d}g=e>>>0<65536;j=e>>>0> +2047;H[f|0]=(j?g?-32:-16:-64)|e>>>(j?g?12:18:6);h=f+1|0;if(k>>>0<=h>>>0)break d;g=j?g?6:12:0;H[f+1|0]=e>>>g&63|128;h=f+2|0;if(e>>>0<2048|k>>>0<=h>>>0)break d;j=g-6|0;H[f+2|0]=e>>>j&63|128;h=f+3|0;if(j>>>0<6|k>>>0<=h>>>0)break d;H[f+3|0]=e>>>g-12&63|128;h=f+4|0}if(i>>>0>=l>>>0)break a;continue}break}J[b>>2]=h;J[d>>2]=g-c;return-2}h=f;i=g}J[b>>2]=h-a;J[d>>2]=i-c;return J[b>>2]}function cwa(a){a=a|0;var b=0,c=0,d=0,e=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2425292;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+ +24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[699344]=0;b=ha(5213,a+44|0,a+40|0,0,4)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[699344]=0;ha(5213,a+56|0,a+52|0,0,4)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;hd(b);nd(a);ba(c|0);B()}b=Z()|0;nd(a);ba(b|0);B()}J[a>>2]=2425452;J[699344]=0;c=ha(5213,a+68|0,a- -64|0,0,1)|0;b=J[699344];J[699344]=0;b:{c:{d:{e:{f:{g:{if((b|0)!=1){J[699344]=0;d=ha(5213,a+80|0,a+76|0,0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break g;J[699344]=0;e=ha(5213,a+ +92|0,a+88|0,0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break f;J[699344]=0;ha(5213,a+104|0,a+100|0,0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;return a|0}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;break d}b=Z()|0;hd(e)}hd(d)}hd(c)}xA(a);ba(b|0);B()}function Vha(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;var h=0,i=0;h=fc-416|0;fc=h;d=h+416|0;J[h+12>>2]=d;c=fc-144|0;fc=c;J[c+28>>2]=c+132;i=c+32|0;xR(a+8|0,i,c+28|0,e,f,g);J[c+16>>2]=0;J[c+20>>2]=0;J[c+12>>2]=i;e=h+16|0;i=J[h+12>>2]- +e>>2;f=fc-16|0;fc=f;J[f+12>>2]=J[a+8>>2];g=rm(f+8|0,f+12|0);J[699344]=0;a=eG(e,c+12|0,i,c+16|0);i=J[699344];J[699344]=0;a:{if((i|0)!=1){$h(g);fc=f+16|0;break a}a=Z()|0;$h(g);ba(a|0);B()}if((a|0)==-1){wR(15698);B()}J[h+12>>2]=e+(a<<2);fc=c+144|0;g=fc-16|0;fc=g;a=fc-32|0;fc=a;jG(a+24|0,e,J[h+12>>2]);h=J[a+28>>2];c=fc-16|0;fc=c;f=J[a+24>>2];J[c+8>>2]=f;J[c+12>>2]=b;while(1){if((f|0)!=(h|0)){$R(c+12|0,J[f>>2]);f=f+4|0;J[c+8>>2]=f;continue}break}J[a+16>>2]=J[c+8>>2];J[a+20>>2]=J[c+12>>2];fc=c+16|0;J[a+ +12>>2]=e+(J[a+16>>2]-e|0);J[a+8>>2]=J[a+20>>2];J[g+8>>2]=J[a+12>>2];J[g+12>>2]=J[a+8>>2];fc=a+32|0;fc=g+16|0;fc=d;return J[g+12>>2]}function n$a(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;i=J[b>>2];f=J[d>>2];if((f&-2147483647)==1){f=f-1|0;J[d>>2]=f}g=(f|0)/2|0;h=c;e=a;a:{b:{if((f|0)<=1)break b;k=e+i|0;l=(g<<1)+h|0;while(1){g=e;e=h;h=e+2|0;i=K[e|0];f=K[e+1|0]|i<<8;if((i&252)==216){if(h>>>0>=l>>>0){J[b>>2]=g-a;J[d>>2]=e-c;return-2}h=K[h|0];if((h&252)!=220)break a;f=(f<<10& +1047552|(K[e+3|0]|h<<8&768))+65536|0;h=e+4|0}if(g>>>0>=k>>>0){h=e;e=g;break b}c:{if(f>>>0<=127){H[g|0]=f;e=g+1|0;break c}j=f>>>0<65536;i=f>>>0>2047;H[g|0]=(i?j?-32:-16:-64)|f>>>(i?j?12:18:6);e=g+1|0;if(k>>>0<=e>>>0)break c;j=i?j?6:12:0;H[g+1|0]=f>>>j&63|128;e=g+2|0;if(f>>>0<2048|k>>>0<=e>>>0)break c;i=j-6|0;H[g+2|0]=f>>>i&63|128;e=g+3|0;if(i>>>0<6|k>>>0<=e>>>0)break c;H[g+3|0]=f>>>j-12&63|128;e=g+4|0}if(h>>>0>>0)continue;break}}J[b>>2]=e-a;J[d>>2]=h-c;return J[b>>2]}J[b>>2]=g-a;J[d>>2]=e-c;return-2} +function _W(a,b){var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;J[a+16>>2]=0;J[a+20>>2]=J[685894];f=a+16|0;c=J[b+16>>2];a:{b:{c:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+12|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break c;break b}J[d+12>>2]=0}J[699344]=0;aa(5153,f|0,d+12|0)|0;c=J[699344];J[699344]=0;d:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break d;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[699344];J[699344]= +0;if((g|0)!=1){if(e)break d;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break d}ea(0)|0;Bc();B()}a=Z()|0;zc(d+12|0);break a}c=J[a+16>>2];J[a+20>>2]=J[(c?c+12|0:2743576)>>2];e:{c=J[b+24>>2];if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break e;b=J[b+24>>2]}else b=0;J[a+24>>2]=b;fc=d+16|0;return a}}a=Z()|0}wc(f);ba(a|0);B()}function Sdb(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=fc-32|0;fc=f;J[f+28>>2]=d;J[f+24>>2]=d;H[f+20|0]=0;J[f+8>>2]=a; +J[f+16>>2]=f+28;J[f+12>>2]=f+24;a:{b:{c:{if((b|0)!=(c|0))while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;a=J[b+4>>2];e=J[b>>2];if((a|0)!=(e|0)){a=a-e|0;e=a>>2;if(e>>>0>=1073741824){J[699344]=0;$(2268,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}J[699344]=0;a=_(4,a|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break b;J[d+4>>2]=a;J[d>>2]=a;J[d+8>>2]=(e<<2)+a;e=J[b>>2];h=J[b+4>>2];if((e|0)!=(h|0))while(1){g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[a|0]=g;H[a+1|0]=g>>>8;H[a+2|0]=g>>>16;H[a+3|0]= +g>>>24;a=a+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}J[d+4>>2]=a}d=d+12|0;J[f+28>>2]=d;b=b+12|0;if((c|0)!=(b|0))continue;break}fc=f+32|0;return d|0}a=Z()|0;b=J[d>>2];if(!b)break a;J[d+4>>2]=b;uc(b);break a}a=Z()|0}GD(f+8|0);ba(a|0);B()}function y5a(a){a=a|0;var b=0,c=0,d=0;J[a+280>>2]=1;if(!(O[a+56>>3]!=1|O[a- -64>>3]!=0|(O[a+72>>3]!=0|O[a+80>>3]!=1))){J[a+280>>2]=0;b=J[a+276>>2];if(b){c=O[b+8>>3]*65536;a:{if(R(c)<2147483648){d=~~c;break a}d=-2147483648}J[b+220>>2]=d;c=O[b+16>>3]*65536;b:{if(R(c)< +2147483648){d=~~c;break b}d=-2147483648}J[b+228>>2]=d;c=O[b+24>>3]*65536;c:{if(R(c)<2147483648){d=~~c;break c}d=-2147483648}J[b+224>>2]=d;c=O[b+32>>3]*65536;d:{if(R(c)<2147483648){d=~~c;break d}d=-2147483648}J[b+232>>2]=d;Zu(J[b+188>>2],b+220|0,0)}c=O[a+8>>3]*65536;e:{if(R(c)<2147483648){b=~~c;break e}b=-2147483648}J[a+220>>2]=b;c=O[a+16>>3]*65536;f:{if(R(c)<2147483648){b=~~c;break f}b=-2147483648}J[a+228>>2]=b;c=O[a+24>>3]*65536;g:{if(R(c)<2147483648){b=~~c;break g}b=-2147483648}J[a+224>>2]=b;c= +O[a+32>>3]*65536;h:{if(R(c)<2147483648){b=~~c;break h}b=-2147483648}J[a+232>>2]=b;Zu(J[a+188>>2],a+220|0,0)}}function fVa(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;a:{g=J[a+4>>2];if(!g)break a;b:{c:{d:{e:{if((d|0)!=1){e=J[a+16>>2];if((e|0)>0)break e;break d}J[(b<<2)+g>>2]=J[c>>2];return}h=J[a+12>>2];while(1){if(J[P(f,40)+h>>2]==(b|0))break d;f=f+1|0;if((e|0)!=(f|0))continue;break}f=e;break c}if((e|0)!=(f|0))break b}if((e|0)==J[a+20>>2]){e=e+8|0;J[a+20>>2]=e;i=a,j=Wd(J[a+12>>2], +e,40),J[i+12>>2]=j;g=J[a+4>>2];e=J[a+16>>2]}J[a+16>>2]=e+1}J[(b<<2)+g>>2]=0;e=J[a+12>>2];f=P(f,40);a=e+f|0;J[a+36>>2]=d;J[a>>2]=b;if((d|0)<=0)break a;J[a+4>>2]=J[c>>2];a=d-1|0;if(!a)break a;b=e+f|0;J[b+8>>2]=J[c+4>>2];if((a|0)==1)break a;J[b+12>>2]=J[c+8>>2];if((a|0)==2)break a;J[b+16>>2]=J[c+12>>2];if((a|0)==3)break a;J[b+20>>2]=J[c+16>>2];if((a|0)==4)break a;J[b+24>>2]=J[c+20>>2];if((a|0)==5)break a;J[b+28>>2]=J[c+24>>2];if((a|0)==6)break a;J[b+32>>2]=J[c+28>>2]}}function WUa(a){a=a|0;var b=0,c= +0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;c=-1;a:{b:switch(J[a+40>>2]){case 0:c=J[a+352>>2];if((c|0)!=-1)break a;c=J[a+4>>2];g=kc[J[J[c>>2]+28>>2]](c)|0;if((g|0)==-1){c=J[a+352>>2];break a}c=K[a+348|0]+1|0;H[a+348|0]=c;d=c&255;c=a+92|0;d=d+c|0;b=K[d|0];f=b+K[a+349|0]|0;H[a+349|0]=f;h=d;d=c+(f&255)|0;f=K[d|0];H[h|0]=f;H[d|0]=b;c=K[c+(b+f&255)|0]^g&255;J[a+352>>2]=c;break a;case 1:b=J[a+316>>2];if((b|0)==16){b=J[a+4>>2];if((kc[J[J[b>>2]+40>>2]](b,e,16)|0)!=16)break a;b=J[a+4>>2];F$(a+92|0,e,(kc[J[J[b>>2]+ +32>>2]](b)|0)==-1);b=J[a+316>>2];if((b|0)==16)break a}c=K[(a+b|0)+300|0];break a;case 2:break b;default:break a}b=J[a+380>>2];if((b|0)==16){b=J[a+4>>2];if((kc[J[J[b>>2]+40>>2]](b,e,16)|0)!=16)break a;b=J[a+4>>2];cu(a+92|0,e,(kc[J[J[b>>2]+32>>2]](b)|0)==-1);b=J[a+380>>2];if((b|0)==16)break a}c=K[(a+b|0)+364|0]}fc=e+16|0;return c|0}function hvb(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;var h=0,i=0,j=0,k=0;a:{b:{if(f){if(((c+1|0)/2|0)>(b|0))break b;if(!d)break a;j=c<<1;k=b<<1;b=0;while(1){a= +L[e>>1];c:{if((a|0)==L[f>>1]){I[g>>1]=a;break c}a=K[e|0]|K[e+1|0]<<8;h=a>>>8|0;i=K[f|0]|K[f+1|0]<<8;a=((a<<8|h)&65535)+((P(k,((i<<8|i>>>8)&65535)-((h|a<<8)&65535)|0)+c|0)/(j|0)|0)&65535;a=a<<8|a>>>8;H[g|0]=a;H[g+1|0]=a>>>8}I[g+2>>1]=L[f+2>>1];g=g+4|0;f=f+4|0;e=e+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}xc(g,e,d<<2);break a}if(!d)break a;j=c<<1;k=b<<1;b=0;while(1){a=L[e>>1];d:{if((a|0)==L[f>>1]){I[g>>1]=a;break d}a=K[e|0]|K[e+1|0]<<8;h=a>>>8|0;i=K[f|0]|K[f+1|0]<<8;a=((a<<8|h)&65535)+((P(k, +((i<<8|i>>>8)&65535)-((h|a<<8)&65535)|0)+c|0)/(j|0)|0)&65535;a=a<<8|a>>>8;H[g|0]=a;H[g+1|0]=a>>>8}I[g+2>>1]=L[e+2>>1];g=g+4|0;e=e+4|0;f=f+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}return 0}function Eub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if(!(K[a+288|0]|(K[a+286|0]|K[a+287|0]))){f=1029;break a}f=1029;if(K[a+300|0]|!K[a+293|0])break a;f=1028;if(c&1)break a;h=c>>>1|0;if((h|0)!=J[a+332>>2])break a;b:{if(!K[a+112|0])break b;i=kc[J[b+4>>2]](a,b,e)|0;if(i)break b;j=J[e>> +2];J[j+32>>2]=h;i=0;if(c>>>0<2)break b;a=h>>>0<=1?1:h;h=a&3;c:{if(c>>>0<8){a=0;break c}f=a&2147483644;a=0;c=j+36|0;b=0;while(1){e=a<<1;g=K[d|0]|K[d+1|0]<<8;I[e+c>>1]=g<<8|g>>>8;g=K[d+2|0]|K[d+3|0]<<8;I[c+(e|2)>>1]=g<<8|g>>>8;g=K[d+4|0]|K[d+5|0]<<8;I[c+(e|4)>>1]=g<<8|g>>>8;g=c+(e|6)|0;e=K[d+6|0]|K[d+7|0]<<8;I[g>>1]=e<<8|e>>>8;a=a+4|0;d=d+8|0;b=b+4|0;if((f|0)!=(b|0))continue;break}}if(!h)break b;f=0;while(1){b=K[d|0]|K[d+1|0]<<8;I[((a<<1)+j|0)+36>>1]=b<<8|b>>>8;a=a+1|0;d=d+2|0;f=f+1|0;if((h|0)!=(f| +0))continue;break}}return i|0}Jc(a,f,0,0);return f|0}function D3(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;a:{b:{c:{if(d){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[699344]=0;ca(3018,b|0,c|0,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}d=c+1|0;e=vc(d>>>0>1073741823?-1:d<<2);d:{if((c|0)<=0)break d;d=0;if(c>>>0>=4){g=c&-4;while(1){J[(d<<2)+e>>2]=K[b+d|0];f=d|1;J[(f<<2)+e>>2]=K[b+f|0];f=d|2;J[(f<<2)+e>>2]=K[b+f|0];f=d|3;J[(f<<2)+e>>2]= +K[b+f|0];d=d+4|0;h=h+4|0;if((g|0)!=(h|0))continue;break}}g=c&3;if(!g)break d;while(1){J[(d<<2)+e>>2]=K[b+d|0];d=d+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}J[(c<<2)+e>>2]=0;if(c>>>0>=1073741808)break b;e:{if(c>>>0<=1){H[a+11|0]=c;break e}b=c|3;if(b>>>0>=1073741823)break a;d=b+1|0;b=vc(d<<2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;j=xc(b,e,a)+a|0,k=0,J[j>>2]=k;uc(e)}return}_d(a);B()}Pd();B()}function XS(a){var b=0,c=0,d=0,e=0,f=0;f=fc-16|0;fc=f;a:{b:{c:{d:{d=J[a+584>>2];if(d){if(L[a+ +90>>1]!=32844)break d;b=J[d>>2];if((b|0)!=-1)break a;c=L[a+86>>1]|(L[a+98>>1]<<3|L[a+84>>1]<<6);b=c-1033|0;if(b>>>0>3|(b|0)==2)break c;b=1;break b}fa(74429,70372,1182,93856);B()}fa(78859,70372,1183,93856);B()}e:switch(c-521|0){case 0:case 3:b=3;break b;default:b=0;if((c|0)==2059)break b;break;case 1:case 2:break e}b=-1}J[d>>2]=b}e=4;f:{g:{h:switch(b|0){case 3:e=1;break g;default:Uc(J[a+628>>2],J[a>>2],79316,0);c=0;break f;case 0:break g;case 1:break h}e=2}J[d+8>>2]=e;i:{if(K[a+13|0]&4){b=J[a+68>> +2];c=vEb(J[a+72>>2],0,b,0);e=(jc|0)!=0;break i}b=J[a+56>>2];c=vEb(J[a+100>>2],0,b,0);e=(jc|0)!=0}c=b?e&1?0:c:0;J[d+16>>2]=c;if(!(!(c&2147483647)|(c|0)<=0)){b=Dc(c<<1);J[d+12>>2]=b;c=1;if(b)break f}c=J[a+628>>2];J[f>>2]=J[a>>2];Uc(c,93856,75975,f);c=0}fc=f+16|0;return c}function Pu(a,b){a=a|0;b=b|0;var c=0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];if((a|0)==(b|0)){c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;c=J[b+68>>2];J[a+64>> +2]=J[b+64>>2];J[a+68>>2]=c;c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;J[a+80>>2]=J[b+80>>2];return a|0}HM(a+12|0,J[b+12>>2],J[b+16>>2]);c=J[b+36>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=c;c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=c;Tx(a+40|0,J[b+40>>2],J[b+44>>2]);Tx(a+52|0,J[b+52>>2],J[b+56>>2]);J[a+80>>2]=J[b+80>>2];c=J[b+76>>2];J[a+72>>2]=J[b+72>>2];J[a+76>>2]=c;c=J[b+68>>2];J[a+64>>2]=J[b+64>>2];J[a+68>>2]=c;HD(a+84|0,J[b+84>>2],J[b+88>>2]);GM(a+96|0,J[b+96>>2],J[b+100>>2]);Tx(a+108|0,J[b+ +108>>2],J[b+112>>2]);O5(a+120|0,J[b+120>>2],J[b+124>>2]);HM(a+132|0,J[b+132>>2],J[b+136>>2]);N5(a+144|0,J[b+144>>2],J[b+148>>2]);return a|0}function pCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+12>>2];if((e|0)>J[a+56>>2]){rd(208624,0);return-1}f=b+12|0;a:{b:{c:{d=J[a+84>>2]-4|0;if(d)if((d|0)==12)break c;else break a;c=J[J[a+64>>2]+24>>2]+P(e,488)|0;H[c+5|0]=K[b+17|0]+1;H[c+6|0]=K[b+18|0]+2;H[c+7|0]=K[b+19|0]+2;H[c+8|0]=K[b+21|0];H[c+418|0]=K[b+20|0];H[c+4|0]=H[b+16|0]&1;if(J[b+24>>2]>0){a=0;while(1){e= +a+c|0;d=(a<<1)+f|0;H[e+419|0]=K[d+16|0];H[e+452|0]=K[d+17|0];a=a+1|0;if((a|0)>2])continue;break}}break b}c=-1;d=J[a+52>>2];if(!d)break a;a=0;if(J[d+40>>2]>0)break a;c=J[J[d+32>>2]+24>>2]+P(e,488)|0;H[c+5|0]=K[b+17|0]+1;H[c+6|0]=K[b+18|0]+2;H[c+7|0]=K[b+19|0]+2;H[c+8|0]=K[b+21|0];H[c+418|0]=K[b+20|0];H[c+4|0]=H[b+16|0]&1;if(J[b+24>>2]>0)while(1){e=a+c|0;d=(a<<1)+f|0;H[e+419|0]=K[d+16|0];H[e+452|0]=K[d+17|0];a=a+1|0;if((a|0)>2])continue;break}}J[c>>2]=J[c>>2]|5;c=0}return c|0}function ES(a, +b,c,d){var e=0,f=0,g=0,h=0;g=fc-32|0;fc=g;f=d&2147483647;e=f-1065418752|0;h=f-1082064896|0;a:{if((e|0)==(h|0)&0|e>>>0>>0){f=(d&33554431)<<7|c>>>25;e=0;h=e;c=c&33554431;if(!(!e&(c|0)==16777216?!(a|b):!e&c>>>0<16777216)){e=f+1073741825|0;break a}e=f+1073741824|0;if(c^16777216|a|(b|h))break a;e=(f&1)+e|0;break a}if(!(!c&(f|0)==2147418112?!(a|b):f>>>0<2147418112)){e=((d&33554431)<<7|c>>>25)&4194303|2143289344;break a}e=2139095040;if(f>>>0>1082064895)break a;e=0;f=f>>>16|0;if(f>>>0<16145)break a;e= +d&65535|65536;Gi(g+16|0,a,b,c,e,f-16129|0);hr(g,a,b,c,e,16257-f|0);a=J[g+8>>2];e=(J[g+12>>2]&33554431)<<7|a>>>25;c=J[g>>2]|(J[g+16>>2]|J[g+24>>2]|(J[g+20>>2]|J[g+28>>2]))!=0;f=J[g+4>>2];b=0;a=a&33554431;if(!(!b&(a|0)==16777216?!(c|f):!b&a>>>0<16777216)){e=e+1|0;break a}if(a^16777216|c|(b|f))break a;e=(e&1)+e|0}fc=g+32|0;return x(2,d&-2147483648|e),D()}function Gqb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(J[a+20>>2])a=0;else{d=J[J[J[a+16>>2]+16>>2]+40>>2];if(d)a:{a=fc-32|0;fc=a;b:{e=J[d>>2];c:{if(!e)break c; +f=J[e+28>>2];if(!f)break c;J[a+20>>2]=1E3;J[a+12>>2]=231660;c=Dc(1E3);J[a+16>>2]=c;H[c|0]=0;H[c+1|0]=0;H[c+2|0]=0;H[c+3|0]=0;J[a+28>>2]=4;J[a+24>>2]=c+4;d:{if((b|0)>=0){c=J[d+20>>2];d=J[d+16>>2];J[699344]=0;ma(3740,e|0,d|0,c|0,a+12|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;break b}b=J[f+20>>2];if((b|0)<=0)break d;c=0;while(1){e=J[d+20>>2];f=J[d+16>>2];g=J[d>>2];J[699344]=0;ma(3740,g|0,f|0,e|0,a+12|0,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break b;c=c+1|0;if((b|0)!=(c|0))continue;break}}b= +J[a+16>>2];c=J[a+28>>2];H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;c=J[a+16>>2]}fc=a+32|0;a=c;break a}b=Z()|0;J[a+12>>2]=231660;a=J[a+16>>2];if(a)uc(a);ba(b|0);B()}else a=0}return a|0}function EBb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=J[a+8>>2];i=J[J[a+44>>2]+88>>2];e=J[a+52>>2];c=kc[J[J[e>>2]+20>>2]](e,2)|0;b=kc[J[J[e>>2]+20>>2]](e,1)|0;j=P(h,1876)+i|0;J[j+1460>>2]=1;f=c-3|0;a:{if(!b){b=kd(1,f);J[j+1452>>2]=b;if(!b){J[J[a>>2]+20>>2]=1;return}a=P(h,1876)+i|0;J[a+1464>> +2]=0;J[a+1456>>2]=b;b=f;break a}d=J[j+1464>>2];b=f+d|0;g=kd(1,b);if(!g){J[J[a>>2]+20>>2]=1;return}k=g;a=P(h,1876)+i|0;g=J[a+1452>>2];k=xc(k,g,f);if(g){uc(g);d=J[j+1464>>2];b=f+d|0}J[a+1452>>2]=k;J[a+1456>>2]=k}a=P(h,1876)+i|0;J[a+1468>>2]=b;b=a+1464|0;b:{if((c|0)<4)break b;f=a+1452|0;a=c-3|0;if(a&1){a=kc[J[J[e>>2]+20>>2]](e,1)|0;H[J[f>>2]+d|0]=a;d=d+1|0;a=c-4|0}if((c|0)==4)break b;while(1){c=kc[J[J[e>>2]+20>>2]](e,1)|0;H[J[f>>2]+d|0]=c;c=kc[J[J[e>>2]+20>>2]](e,1)|0;H[(J[f>>2]+d|0)+1|0]=c;d=d+2|0; +c=a-3|0;a=a-2|0;if(c>>>0<4294967294)continue;break}}J[b>>2]=d}function zU(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=fc-96|0;fc=e;d=J[b+4>>2];f=L[a+98>>1];a:{b:{if(d>>>0>=f>>>0){if(d>>>0>f>>>0){d=J[a>>2];g=J[a+628>>2];h=J[Sf(a,L[b>>1])+16>>2];i=J[b+4>>2];J[e+40>>2]=f;J[e+36>>2]=i;J[e+32>>2]=h;le(g,d,82939,e+32|0);d=J[b+4>>2]}g=e+48|0;if(d>>>0>=11){g=bh(a,d,4,88455);if(!g)break b;d=J[b+4>>2]}c:{d:{if((d|0)==1){h=J[b+8>>2];J[g>>2]=h;break d}d=0;if(!ci(a,b,g))break c;h=J[g>>2]}e:{d=J[b+4>>2];i=(d| +0)<(f|0)?d:f;if((i|0)<2)break e;d=1;f=1;while(1){if(J[(d<<2)+g>>2]==(h|0)){f=f+1|0;d=f&65535;if(d>>>0<(i&65535)>>>0)continue;break e}break}c=J[a>>2];d=J[a+628>>2];j=e,k=J[Sf(a,L[b>>1])+16>>2],J[j+16>>2]=k;Uc(d,c,88545,e+16|0);d=0;break c}J[c>>2]=h;d=1}if((e+48|0)==(g|0))break a;uc(g);break a}c=J[a>>2];d=J[a+628>>2];a=J[Sf(a,L[b>>1])+16>>2];b=J[b+4>>2];J[e+8>>2]=f;J[e+4>>2]=b;J[e>>2]=a;le(d,c,82731,e)}d=0}fc=e+96|0;return d}function Ux(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;J[a+8>>2]=J[b+8>> +2];J[a+12>>2]=J[b+12>>2];J[a+20>>2]=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+24>>2]=J[b+24>>2];c=J[b+28>>2];J[a+28>>2]=c;if(c)kc[J[J[c>>2]+8>>2]](c)|0;Dj(a+32|0,b+32|0);f=(a|0)==(b|0);a:{if(f)break a;c=a+36|0;d=b+36|0;g=K[b+47|0];e=g<<24>>24;if(H[a+47|0]>=0){if((e|0)>=0){e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+8>>2];break a}Gf(c,J[b+36>>2],J[b+40>>2]);break a}h=c;c=(e|0)<0;Lf(h,c?J[b+36>>2]:d,c?J[b+40>>2]:g)}J[a+48>>2]=J[b+48>>2];J[a+52>>2]=J[b+52>>2];J[a+56>>2]=J[b+56>>2];c=J[b+64>>2]; +J[a+60>>2]=J[b+60>>2];J[a+64>>2]=c;c=J[b+72>>2];J[a+68>>2]=J[b+68>>2];J[a+72>>2]=c;O[a+80>>3]=O[b+80>>3];O[a+88>>3]=O[b+88>>3];O[a+96>>3]=O[b+96>>3];O[a+104>>3]=O[b+104>>3];O[a+112>>3]=O[b+112>>3];if(!f)HD(a+120|0,J[b+120>>2],J[b+124>>2]);xc(a+132|0,b+132|0,80);Pu(a+212|0,b+212|0);return a|0}function Tdb(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=fc-32|0;fc=e;J[e+28>>2]=d;J[e+24>>2]=d;H[e+20|0]=0;J[e+8>>2]=a;J[e+16>>2]=e+28;J[e+12>>2]=e+24;a:{b:{c:{d:{if((b|0)==(c|0)){f=d;break d}f=J[e+ +28>>2];while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;a=J[b+4>>2];g=J[b>>2];if((a|0)!=(g|0)){a=a-g|0;g=a>>3;if(g>>>0>=536870912){J[699344]=0;J[e+28>>2]=f;$(2267,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}J[699344]=0;a=_(4,a|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;J[d+4>>2]=a;J[d>>2]=a;J[d+8>>2]=(g<<3)+a;f=J[b>>2];g=J[b+4>>2];if((f|0)!=(g|0))while(1){h=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=h;a=a+8|0;f=f+8|0;if((g|0)!=(f|0))continue;break}J[d+4>>2]=a}f=d+12|0;d=f;b=b+12|0;if((c|0)!=(b| +0))continue;break}J[e+28>>2]=d}fc=e+32|0;return f|0}a=Z()|0;b=J[d>>2];if(!b)break a;J[d+4>>2]=b;uc(b);break a}a=Z()|0;J[e+28>>2]=f}GD(e+8|0);ba(a|0);B()}function s6a(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;f=fc-32|0;fc=f;j=J[a+420>>2];d=J[a+464>>2];a:{b:{if(J[d+40>>2]|!J[a+280>>2])break b;c=J[a+460>>2];J[c+24>>2]=J[c+24>>2]+(J[d+12>>2]/8|0);J[d+12>>2]=0;g=0;if(!(kc[J[c+8>>2]](a)|0))break a;if(J[a+336>>2]>0)while(1){J[((e<<2)+d|0)+20>>2]=0;e=e+1|0;if((e|0)>2])continue;break}J[d+ +16>>2]=0;J[d+40>>2]=J[a+280>>2];if(J[a+436>>2])break b;J[d+36>>2]=0}J[f+28>>2]=a;c=J[a+24>>2];g=J[c>>2];J[f+12>>2]=g;h=J[c+4>>2];J[f+16>>2]=h;e=J[d+12>>2];i=J[d+8>>2];if(J[a+364>>2]>0){j=1<>2];if((e|0)<=0){g=0;if(!Qg(f+12|0,i,e,1))break a;i=J[f+20>>2];e=J[f+24>>2]}e=e-1|0;if(i>>>e&1)I[h>>1]=j|L[h>>1];c=c+1|0;if((c|0)>2])continue;break}h=J[f+16>>2];g=J[f+12>>2];c=J[a+24>>2]}J[c+4>>2]=h;J[c>>2]=g;J[d+12>>2]=e;J[d+8>>2]=i;J[d+40>>2]=J[d+40>>2]-1;g=1}fc=f+32|0;return g| +0}function cub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;if(!(K[a+288|0]?K[a+285|0]:0)){Jc(a,1029,0,0);return 1029}if((c|0)!=3){Jc(a,1028,0,0);return 1028}g=K[d|0];if(!(1<>>0<=6:0)){Jc(a,1037,0,0);return 1037}h=K[d+1|0];if(!(1<>>0<=16:0)){Jc(a,1048,0,0);return 1048}c=K[d+2|0];if(c>>>0>=2){Jc(a,1057,0,0);return 1057}a:{if(K[a+114|0]){f=kc[J[a+152>>2]](32)|0;if(!f){Jc(a,1,0,0);d=1;break a}J[f+4>>2]=1068;J[f>>2]=1069;d=J[a+700>>2];b:{if(d){J[d+8>>2]=f;break b}J[a+696>> +2]=f}J[f+8>>2]=0;J[f+12>>2]=d;J[a+700>>2]=f;J[f+16>>2]=J[a+436>>2];J[f+20>>2]=J[a+440>>2];J[f+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=f;H[f+30|0]=c;H[f+29|0]=g;H[f+28|0]=h}d=_9(a,h,g,c)}c:{if(d)break c;d=0;if(!K[a+112|0])break c;d=kc[J[b+4>>2]](a,b,e)|0;if(d)break c;a=J[e>>2];H[a+34|0]=c;H[a+33|0]=h;H[a+32|0]=g;d=0}return d|0}function rBa(a){a=a|0;var b=0,c=0;a=JA(a);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2414100;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+ +32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;b=J[685894];J[a+68>>2]=0;J[a- -64>>2]=b;J[a+60>>2]=0;J[a+56>>2]=b;J[699344]=0;c=_(5252,a+72|0)|0;b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[a+108>>2]=0;J[a+112>>2]=0;J[a+124>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[699344]=0;b=a+112|0;J[b>>2]=2397928;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+148>>2]=0;H[a+144|0]=0;J[a+140>>2]=-1;H[a+136|0]=0;J[a+132>>2]=0;J[a+164>>2]=0;J[a+156>>2]=0;J[a+ +160>>2]=0;return a|0}b=Z()|0;break a}b=Z()|0;zc(a+108|0);Ed(c)}wc(a+60|0);wc(a+52|0);zc(a+48|0);zc(a+44|0);zc(a+40|0);zc(a+36|0);zc(a+32|0);zc(a+28|0);zc(a+24|0);zc(a+20|0);zc(a+16|0);zc(a+12|0);zc(a+8|0);vr(a);ba(b|0);B()}function _1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;a:{if(!J[c>>2]){J[c>>2]=632;a=0;break a}c=J[a+8>>2];a=xc(b+528|0,c,104);H[b+34|0]=1;J[b+8>>2]=a;a=J[c+40>>2];if(a){J[e+12>>2]=268;f=b,g=x3(a,b+260|0,e+12|0,d),J[f+568>>2]=g;a=0;if(J[d>>2]>0)break a}a=J[c>> +2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+4>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+8>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+12>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+16>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+20>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+24>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+28>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+32>>2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=J[c+36>> +2];if(!a|!K[a+17|0]?0:a)J[a+4>>2]=J[a+4>>2]+1;a=b}fc=e+16|0;return a|0}function W7(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=fc-16|0;fc=h;a:{if(!a){e=33;break a}e=6;if(!d)break a;f=J[a>>2];if(!f)break a;J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;if((c|0)<0|b>>>0>>0)break a;e=10;if(b>>>0>32767)break a;b:{c:{d:{e:{if(!b){g=d+4|0;e=0;break e}e=b<<3;g=kc[J[f+4>>2]](f,e)|0;if(!g){e=d+4|0;g=e;break c}i=d,j=Ac(g,0,e),J[i+4>>2]=j;g=d+4|0;e=kc[J[f+4>>2]](f,b)|0;if(!e)break d;Ac(e,0,b)}J[h+ +12>>2]=0;J[d+8>>2]=e;i=d,j=_c(f,2,0,c,0,h+12|0),J[i+12>>2]=j;e=J[h+12>>2];if(e)break b;I[d>>1]=c;I[d+2>>1]=b;J[d+16>>2]=J[d+16>>2]|1;e=0;break a}e=d+8|0}J[e>>2]=0;e=64}J[d+16>>2]=J[d+16>>2]|1;a=J[a>>2];if(!a)break a;b=J[g>>2];if(b)kc[J[a+8>>2]](a,b);J[d+4>>2]=0;b=J[d+8>>2];if(b)kc[J[a+8>>2]](a,b);J[d+8>>2]=0;b=J[d+12>>2];if(b)kc[J[a+8>>2]](a,b);J[d>>2]=0;J[d+4>>2]=0;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0}fc=h+16|0;return e}function gy(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(a){d=I[a+56>> +1];I[a+20>>1]=d+L[a+20>>1];b=L[a+22>>1];I[a+22>>1]=b+L[a+58>>1];h=J[a+48>>2]+J[a+84>>2]|0;J[a+48>>2]=h;a:{if((d|0)<=0)break a;f=J[a+68>>2];if(d>>>0>=4){k=d&-4;while(1){c=g<<1;e=c+f|0;I[e>>1]=b+L[e>>1];e=f+(c|2)|0;I[e>>1]=b+L[e>>1];e=f+(c|4)|0;I[e>>1]=b+L[e>>1];c=f+(c|6)|0;I[c>>1]=b+L[c>>1];g=g+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}d=d&3;if(!d)break a;while(1){c=f+(g<<1)|0;I[c>>1]=b+L[c>>1];g=g+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}}J[a+84>>2]=0;J[a+56>>2]=0;b=J[a+24>>2];if(b)b=b+(I[a+22>> +1]<<3)|0;else b=0;J[a+60>>2]=b;c=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[c>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;if(K[a+16|0]){b=I[a+22>>1]<<3;J[a+76>>2]=b+J[a+40>>2];J[a+80>>2]=b+J[a+44>>2]}b=a;a=J[a+52>>2];J[b+88>>2]=a?a+(h<<5)|0:0}}function dIa(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;d=fc-16|0;fc=d;J[d+12>>2]=0;J[a>>2]=0;e=a;a=J[J[b>>2]+20>>2];J[699344]=0;a=ga(a|0,b|0,c|0,d+12|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){b:{c:{d:{if(!a)break d; +a=J[d+12>>2];b=J[a+4>>2];if(b>>>0>=2147483632){J[699344]=0;$(3030,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}c=J[a>>2];e:{if(b>>>0<=10){H[d+11|0]=b;a=d;break e}J[699344]=0;f=(b|15)+1|0;a=_(4,f|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;J[d>>2]=a;J[d+4>>2]=b;J[d+8>>2]=f|-2147483648}h=cd(a,c,b)+b|0,i=0,H[h|0]=i;J[699344]=0;aa(3258,e|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+12>>2];if(a){f:{if(!K[a+8|0])break f;b=J[a>>2];if(!b)break f;uc(b)}uc(a)}if(H[d+11|0]>=0)break d; +uc(J[d>>2])}fc=d+16|0;return}b=Z()|0;break a}b=Z()|0;if(H[d+11|0]>=0)break a;uc(J[d>>2]);break a}b=Z()|0}mh(e);ba(b|0);B()}function Wmb(a,b,c,d,e,f,g,h,i){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;var j=0;a=Ac(a,0,1516);j=al(J[b+96>>2],254444,1);if(!j)return 7;H[a+68|0]=1;J[a+64>>2]=0;J[a+1348>>2]=j;J[a+8>>2]=d;J[a+4>>2]=b;J[a>>2]=J[b+100>>2];a:{if(!d)break a;j=J[J[d+156>>2]>>2];J[a+12>>2]=j;J[a+20>>2]=j+56;J[a+16>>2]=j+20;jp(j);c=J[J[c+40>>2]>>2];J[a+72>>2]=0;J[a+76>>2]=c;if(!g)break a; +J[a+72>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;c=J[65287];J[a+80>>2]=J[65286];J[a+84>>2]=c;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;c=J[65289];J[a+88>>2]=J[65288];J[a+92>>2]=c;c=J[65291];J[a+96>>2]=J[65290];J[a+100>>2]=c;c=J[65293];J[a+104>>2]=J[65292];J[a+108>>2]=c;J[a+1352>>2]=J[b+16>>2];J[a+1472>>2]=h;J[a+1356>>2]=e;J[a+1476>>2]=i;J[a+1468>>2]=f;b=J[65295];J[a+1480>>2]=J[65294];J[a+1484>>2]=b;b=J[65297];a=a+1488|0;J[a>>2]=J[65296];J[a+4>>2]=b;return 0}function Xna(a,b){a= +a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a>>2];a:{d=J[a+4>>2];if(d&1){c=J[b>>2];H[c+621|0]=0;e=J[f+40>>2];J[c+436>>2]=J[e+4>>2];J[c+440>>2]=J[e+8>>2];O[c+448>>3]=O[e+16>>3];H[c+456|0]=K[e+24|0];H[c+457|0]=K[e+25|0];H[c+458|0]=K[e+26|0];H[c+459|0]=K[e+27|0];d=J[c+460>>2];if(d){uc(d);J[c+460>>2]=0}d=J[e+32>>2];J[c+464>>2]=d;if(d){J[699344]=0;g=d<<3;h=_(27,(d>>>0>536870911?-1:g)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[c+460>>2]=h;xc(h,J[e+28>>2],g)}O[c+472>>3]=O[e+40>>3];J[c+480>>2]=J[e+ +48>>2];O[c+488>>3]=O[e+56>>3];O[c+448>>3]=O[J[a+8>>2]>>3]*O[c+448>>3];d=J[a+4>>2]}if(d&768){d=J[b>>2];H[d+620|0]=0;a=J[f+44>>2];J[699344]=0;aa(6518,d- -64|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a}b=J[b+4>>2];b:{if(!b)break b;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}return}a=Z()|0;je(b);ba(a|0);B()}function F1(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;a:{if(!(d|e)|(!b|!c))break a;b:{f=J[b+36>>2];if(f)break b;f=J[b+32>>2];if(f)f=J[f+80>>2];else f=0;f=mq(0, +f);J[b+36>>2]=f;if(f)break b;b=0;e=0;c=0;c:{if(!a)break c;b=J[a>>2];e=J[a+4>>2];c=0;if((J[a+28>>2]&-2)!=-1412623820)break c;c=(b^-1)+a>>>0<249?b:0}J[g>>2]=38432;Hc(0,e,b,c,0,23,2,3,38432,0,0,0,32879,g);break a}b=kc[J[663195]](12)|0;if(!b){d:{if(!a){b=0;c=0;break d}b=J[a>>2];c=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break d;h=(b^-1)+a>>>0<249?b:0}J[g+16>>2]=17054;Hc(0,c,b,h,0,23,2,3,17054,0,0,0,32879,g+16|0);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;i=b,j=ff(c),J[i>>2]=j;if(e)i=b,j=ff(e),J[i+8>> +2]=j;if(d)i=b,j=ff(d),J[i+4>>2]=j;if(!WK(f,c,b))break a;a=J[b>>2];if(a)kc[J[663199]](a);a=J[b+4>>2];if(a)kc[J[663199]](a);a=J[b+8>>2];if(a)kc[J[663199]](a);kc[J[663199]](b)}fc=g+32|0}function sW(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;g=fc-48|0;fc=g;e=a+72|0;f=ql(e);a:{b:{c:{d=J[J[b+12>>2]+((f>>>0)%M[b+8>>2]<<2)>>2];d:{if(d)while(1){if((f|0)==J[d+12>>2])if(Bm(d+16|0,e))break d;d=J[d+8>>2];if(d)continue;break}h=ew(b,e),i=0,J[h+52>>2]=i;d=g+4|0;rH(d,e);J[699344]=0;d=ga(5343,g+12|0,d|0, +c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[699344]=0;aa(5253,e|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[d+24>>2]=2392964;J[d>>2]=2392932;e=J[d+28>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)kc[J[J[e>>2]+4>>2]](e);J[d+28>>2]=0}J[d+16>>2]=2392964;e=J[d+20>>2];if(e){f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(!f)kc[J[J[e>>2]+4>>2]](e);J[d+20>>2]=0}wc(d+8|0);wc(g+4|0);d=J[a+120>>2];if(!d)break d;while(1){sW(J[d+8>>2],b,c);d=J[d>>2];if(d)continue;break}}fc=g+48|0;return}b=Z()|0;break a}b=Z()| +0;Ed(d)}wc(g+4|0);ba(b|0);B()}function xpb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=fc-208|0;fc=e;J[e+204>>2]=0;c=J[a>>2];b=J[J[c+712>>2]+3080>>2];c=wh(J[J[c+96>>2]+4>>2],241714);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;h=kc[b|0](c)|0;if(!h)break a;b=J[a>>2];f=J[b+712>>2];c=J[b+100>>2];b=he(c,1028,e+204|0);b:{c:{if(J[e+204>>2])break c;d=e+8|0;w8(f+1372|0,d);d=kc[J[h>>2]](J[J[a>>2]+100>>2],d,b)|0;J[e+204>>2]=d;if(d)break c;d=J[f+2024>>2];while(1){if(!d)break b;d=d-1|0;g=d<<2;i=e+8|0;w8(J[(g+ +f|0)+2028>>2],i);g=kc[J[h>>2]](J[J[a>>2]+100>>2],i,(b+g|0)+4|0)|0;J[e+204>>2]=g;if(!g)continue;break}}if(b){a=J[f+2024>>2];if(a)while(1){a=a-1|0;f=b+(a<<2)|0;d=J[f+4>>2];if(d)kc[J[c+8>>2]](c,d);J[f+4>>2]=0;if(a)continue;break}a=J[b>>2];if(a)kc[J[c+8>>2]](c,a);J[b>>2]=0}if(b)kc[J[c+8>>2]](c,b);j=J[e+204>>2];break a}J[J[a+40>>2]>>2]=b;J[a+44>>2]=-1}fc=e+208|0;return j|0}function wqa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;d=J[a+12>>2];if(J[d+ +932>>2]!=8){g=K[b+11|0];g=g<<24>>24<0?J[b+4>>2]:g;if((g|0)>J[d+1268>>2]){h=J[d+1264>>2];if(h){uc(h);J[d+1264>>2]=0}J[d+1268>>2]=g;o=d,p=vc(g>>>0>1073741823?-1:g<<2),J[o+1264>>2]=p}J[d+1272>>2]=0;a:{if((g|0)<=0)break a;h=H[b+11|0]<0?J[b>>2]:b;i=J[d+1264>>2];b=0;if((g|0)!=1){j=g&-2;while(1){k=b<<2;l=J[k+h>>2];m=J[d+1272>>2];J[d+1272>>2]=m+1;J[i+(m<<2)>>2]=l;k=J[h+(k|4)>>2];l=J[d+1272>>2];J[d+1272>>2]=l+1;J[i+(l<<2)>>2]=k;b=b+2|0;n=n+2|0;if((j|0)!=(n|0))continue;break}}if(!(g&1))break a;b=J[h+(b<<2)>> +2];g=d;d=J[d+1272>>2];J[g+1272>>2]=d+1;J[i+(d<<2)>>2]=b}b=J[a+12>>2];d=b+1272|0;g=J[b+1264>>2];h=b+832|0;i=b+752|0;j=Ou(h,i);if(!j){$l(h,i);O[b+912>>3]=O[b+864>>3]}jA(b+944|0,g,c,d,e,f,!j,b);H[J[a+12>>2]+928|0]=0}return 0}function TW(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;g=fc-32|0;fc=g;J[g+16>>2]=0;J[g+8>>2]=0;J[g+12>>2]=0;J[g>>2]=0;i=Yc(c);if(d)j=Yc(d);if(e)k=Yc(e);a:{if(!f){f=NA(a,0,0,b-2|0,g);break a}f=NA(a,f,Yc(f),b-2|0,g)}b:{if(a){J[a+744>>2]=34;H[g+28|0]=105;H[g+29|0]=84;H[g+30|0]=88;H[g+31| +0]=116;h=(f+((j+i|0)+k|0)|0)+5|0;H[g+27|0]=h;H[g+26|0]=h>>>8;H[g+25|0]=h>>>16;H[g+24|0]=h>>>24;hf(a,g+24|0,8);J[a+348>>2]=1767135348;Km(a);Ae(a,g+28|0,4);J[a+744>>2]=66;c:{if(!c)break c;h=i+1|0;if(!h)break c;hf(a,c,h);Ae(a,c,h)}H[g+23|0]=0;H[g+22|0]=(b+1&-3)!=0;b=g+22|0;hf(a,b,2);Ae(a,b,2);H[g+22|0]=0;c=j+1|0;if(c){b=d?d:b;hf(a,b,c);Ae(a,b,c)}b=k+1|0;if(b){c=e?e:g+22|0;hf(a,c,b);Ae(a,c,b)}hw(a,g,f);J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[g+24|0]=b;H[g+25|0]=b>>>8; +H[g+26|0]=b>>>16;H[g+27|0]=b>>>24;hf(a,g+24|0,4);break b}hw(0,g,f)}fc=g+32|0}function LZ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=1;c=J[a>>2];b=0;a:{if((c|0)<=0)break a;e=K[J[a+4>>2]];b=1;if((e|0)==43)break a;g=(e|0)!=45;b=(e|0)==45}b:{if((b|0)>=(c|0))break b;e=J[a+4>>2];c:{while(1){f=K[b+e|0];if((f-48&255)>>>0<=9){d=d*10+ +(f<<24>>24)+-48;b=b+1|0;if((c|0)!=(b|0))continue;break c}break}if((f|0)!=46)break b;b=b+1|0;if((c|0)<=(b|0))break b;h=.1;while(1){f=K[b+e|0]-48|0;if((f&255)>>>0>9)break b;d=h*+(f| +0)+d;h=h*.1;b=b+1|0;if((c|0)>(b|0))continue;break}}b=c}d=g?d:-d;d:{g=c;c=b+1|0;e:{if((g|0)>(c|0)){f:{g:{h:{i:{a=J[a+4>>2];switch(K[a+b|0]-99|0){case 10:break f;case 0:break g;case 13:break h;case 6:break i;default:break d}}if(K[a+c|0]!=110)break d;return d*72}if(K[a+c|0]==116)break e;break d}if(K[a+c|0]!=109)break d;return d*28.346456692913385}if(K[a+c|0]!=109)break d;return d*2.834645669291339}d=d*72}return d}return d*72}function DDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;a:{b=J[b>>2];b:{if(b){d= +c+8|0;AV(d,b,5635,5636);J[699344]=0;aa(5314,a|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[c+8>>2];J[c+8>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}a=Z()|0;zc(c+8|0);ba(a|0);B()}J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;J[c+12>>2]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[699344]=0;d=J[b+ +4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}break a}b=Z()|0;zc(c+12|0);wc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2]}fc=c+16|0;return}ea(0)|0;Bc();B()}function b$(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;d=J[a+596>>2];m=J[d+28>>2];a:{if((m|0)<=0){i=O[a+32>>3];f=O[a+16>>3];break a}q=O[a+56>>3];r=O[a+40>>3];s=O[a+24>>3];g=O[a+48>>3];i= +O[a+32>>3];f=O[a+16>>3];t=J[d+24>>2];while(1){d=J[(h<<2)+t>>2];n=J[d+12>>2];if((n|0)>0){u=J[d+4>>2];v=J[d>>2];d=0;while(1){o=d<<3;c=O[o+v>>3];p=O[u+o>>3];b=q+(s*c+p*r);c=g+(f*c+p*i);b:{if(!(d|h)){e=b;j=b;k=c;l=c;break b}c:{if(ck))break c;k=c}if(bj))break b;j=b}d=d+1|0;if((n|0)!=(d|0))continue;break}}h=h+1|0;if((m|0)!=(h|0))continue;break}}g=e;e=O[a+440>>3]*.5;b=R(f);c=R(O[a+40>>3]);f=e*(b>c?b:c);c=g-f;g=e;e=R(i);b=g*(b>e?b:e);e=l-b;if(e>O[a+632>>3])O[a+ +632>>3]=e;if(c>O[a+640>>3])O[a+640>>3]=c;b=b+k;if(b>3])O[a+648>>3]=b;b=f+j;if(b>3])O[a+656>>3]=b}function j$a(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=-1;a:{b:{if(!(!d|(!a|!b))){if(!c){J[b>>2]=0;J[d>>2]=0;return 0}f=c;i=a;g=J[d>>2];c:{if((g|0)<=0)break c;l=J[b>>2]+i|0;k=f+g|0;g=f;while(1){e=H[g|0];h=e&255;f=(e|0)>=0;j=0;d:{if(f)break d;if(e>>>0<=4294967231)break a;if(e>>>0<=4294967263){h=h&31;j=1;break d}if(e>>>0<=4294967279){h=h&15;j=2;break d}if(e>>> +0>4294967287)break b;h=h&7;j=3}e=g+1|0;if((j|0)>(k-e|0)){f=g;break c}e:{if(f){f=e;break e}f=e;if(k>>>0<=e>>>0)break e;while(1){f=e+1|0;e=K[e|0];if((e&192)!=128)break e;h=e&63|h<<6;j=j-1|0;if(!j)break e;e=f;if(k>>>0>e>>>0)continue;break}}f:{if(h>>>0<=127){if(i>>>0>>0)break f;f=g;break c}break a}H[i|0]=h;i=i+1|0;g=f;if(k>>>0>g>>>0)continue;break}}J[b>>2]=i-a;J[d>>2]=f-c;f=J[b>>2]}return f|0}J[b>>2]=i-a;J[d>>2]=g-c;return-2}J[b>>2]=i-a;J[d>>2]=g-c;return-2}function Pyb(a){a=a|0;var b=0,c=0,d=0,e= +0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];c=c+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];c=c+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;e= +J[a+588>>2];if((d|0)<(e|0))continue;break}}if((e|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;e=0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];c=c+2|0;b=(J[a+584>>2]<<1)+b|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function P8(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=J[a+2744>>2];l=i&4;f=64;a:{if(l)break a;f=(e|0)==1?55:49;if(!(!(H[b+12|0]&1)|!(H[c+12|0]&1)))break a;f=(e|0)==1?61:59}m=J[c+ +4>>2];n=J[b+4>>2];j=pE(i,J[a+2748>>2],e,m-n|0);b:{c:{d:{e:{i=(((m+n|0)/2|0)+d|0)+((j|0)/-2|0)|0;a=i&63;f:{if(!a)break f;g=j+i&63;if(!g)break f;d=64-a|0;if((f|0)>=(j|0)){if((g|0)>=(j|0))break f;if(d>>>0<=g>>>0)break c;h=0-g|0;break f}if(!l)if(a>>>0>=f>>>0|d>>>0>=f>>>0|(f>>>0<=g>>>0|f>>>0<=64-g>>>0))break f;k=j&63;if(k>>>0>31)break e;if(d>>>0<=k>>>0)break f;if(g>>>0>k>>>0)break d}a=(h|0)<=-14?-14:h;break b}k=64-f|0}e=d-k|0;a=f-d|0;h=(a|0)>(e|0)?e:0-a|0;e=h>>31;d=f-g|0;a=g-k|0;d=(a|0)>(d|0)?d:0-a|0; +a=d>>31;d=(e^h)-e>>>0>(a^d)-a>>>0?d:h}h=d;a=(d|0)<=-14?-14:d;a=(a|0)>=14?14:a}d=l?h:a;f=d+i|0;e=f+j|0;a=(m|0)>(n|0);J[b+8>>2]=a?f:e;J[c+8>>2]=a?e:f;return d}function DZa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;a:{c=J[a+220>>2]+J[a+216>>2]|0;f=J[a+208>>2];e=J[a+204>>2];if((c|0)==(((e|0)!=(f|0)?(f-e<<6)-1|0:0)|0)){J[699344]=0;$(3365,a+200|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;e=J[a+204>>2];c=J[a+216>>2]+J[a+220>>2]|0}c=J[(c>>>6&67108860)+ +e>>2]+((c&255)<<4)|0;e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;e=J[d+12>>2];J[c+8>>2]=J[d+8>>2];J[c+12>>2]=e;e=J[a+220>>2];J[a+220>>2]=e+1;c=J[a+224>>2];e=e+J[a+216>>2]|0;J[J[J[a+204>>2]+(e>>>6&67108860)>>2]+((e&255)<<4)>>2]=b;if(c){kc[J[J[c>>2]+8>>2]](c)|0;c=(J[a+220>>2]+J[a+216>>2]|0)-1|0;J[(J[J[a+204>>2]+(c>>>6&67108860)>>2]+((c&255)<<4)|0)+4>>2]=J[a+224>>2]}kc[J[J[a>>2]+72>>2]](a,b);fc=d+16|0;return}a=Z()|0;b=J[d+8>>2];if(b){uc(tK(b));J[d+8>>2]=0}b=J[d+12>>2];if(b){uc(sK(b));J[d+12>>2]=0}ba(a|0); +B()}function $A(a,b,c,d){var e=0,f=0,g=0;a:{b:{c:{d:{e:{f:switch(b-1|0){case 0:if(J[d>>2])break d;b=0;break c;case 1:if(J[d>>2])break e;b=0;break c;case 7:case 15:case 31:break a;case 3:break f;default:break b}b=0;if(!J[d>>2])break c;b=c;while(1){H[b|0]=K[a|0]>>>4;H[b+1|0]=K[a|0]&15;a=a+1|0;b=b+2|0;e=e+1|0;f=e?f:f+1|0;g=J[d>>2];if(!f&g>>>0>e>>>0)continue;break}b=g<<1;break c}b=c;while(1){H[b|0]=K[a|0]>>>6;H[b+1|0]=K[a|0]>>>4&3;H[b+2|0]=K[a|0]>>>2&3;H[b+3|0]=K[a|0]&3;a=a+1|0;b=b+4|0;e=e+1|0;f=e?f: +f+1|0;g=J[d>>2];if(!f&g>>>0>e>>>0)continue;break}b=g<<2;break c}b=c;while(1){H[b|0]=K[a|0]>>>7;H[b+1|0]=K[a|0]>>>6&1;H[b+2|0]=K[a|0]>>>5&1;H[b+3|0]=K[a|0]>>>4&1;H[b+4|0]=K[a|0]>>>3&1;H[b+5|0]=K[a|0]>>>2&1;H[b+6|0]=K[a|0]>>>1&1;H[b+7|0]=H[a|0]&1;a=a+1|0;b=b+8|0;e=e+1|0;f=e?f:f+1|0;g=J[d>>2];if(!f&g>>>0>e>>>0)continue;break}b=g<<3}J[d>>2]=b}a=c}return a}function uN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=hp(g,c,242211);if(!f)return 64;a:{b=J[a>>2];a=kc[J[b+4>>2]](b,40)|0;if(!a){c= +64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29|0]=0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]=0;H[a+35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]=0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=dy(a,f); +J[a+16>>2]=f;if(c){kc[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=ks(a,333319,e);b=J[a+28>>2];e=J[a+24>>2];if(e)kc[e|0](a);kc[J[b+8>>2]](b,a);if(c)break a;J[d>>2]=f;return 0}kc[J[g+8>>2]](g,f);return c|0}function tN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=hp(g,c,242728);if(!f)return 64;a:{b=J[a>>2];a=kc[J[b+4>>2]](b,40)|0;if(!a){c=64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29|0]=0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0; +H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]=0;H[a+35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]=0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=dy(a,f);J[a+16>>2]=f;if(c){kc[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=ks(a,333319,e);b=J[a+28>>2];e=J[a+24>>2];if(e)kc[e|0](a);kc[J[b+8>>2]](b,a);if(c)break a; +J[d>>2]=f;return 0}kc[J[g+8>>2]](g,f);return c|0}function sN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=J[a>>2];f=hp(g,c,242800);if(!f)return 64;a:{b=J[a>>2];a=kc[J[b+4>>2]](b,40)|0;if(!a){c=64;break a}H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;H[a+29|0]=0;H[a+30|0]=0;H[a+31|0]=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;H[a+4|0]=0;H[a+5|0]=0;H[a+6|0]=0;H[a+7|0]=0;H[a+32|0]=0;H[a+33|0]=0;H[a+34|0]=0;H[a+35|0]=0;H[a+36|0]=0;H[a+37|0]=0;H[a+38|0]=0;H[a+39|0]=0;H[a+16|0]= +0;H[a+17|0]=0;H[a+18|0]=0;H[a+19|0]=0;H[a+20|0]=0;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+8|0]=0;H[a+9|0]=0;H[a+10|0]=0;H[a+11|0]=0;H[a+12|0]=0;H[a+13|0]=0;H[a+14|0]=0;H[a+15|0]=0;J[a+28>>2]=b;c=dy(a,f);J[a+16>>2]=f;if(c){kc[J[b+8>>2]](b,a);break a}J[a+28>>2]=b;c=ks(a,333319,e);b=J[a+28>>2];e=J[a+24>>2];if(e)kc[e|0](a);kc[J[b+8>>2]](b,a);if(c)break a;J[d>>2]=f;return 0}kc[J[g+8>>2]](g,f);return c|0}function anb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[a>>2]=0;J[a+4>>2]=0;J[a+56>>2]=0;J[a+48>> +2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=J[b>>2];a:{if(c){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>>2];J[a+40>>2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=b+69|0;e=b+68|0;b=b+70|0;break a}J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];d=J[b+20>>2];J[a+40>> +2]=b+48;J[a+36>>2]=b+40;J[a+32>>2]=b+32;J[a+28>>2]=b+28;J[a+24>>2]=b+24;J[a+20>>2]=d;d=b+66|0;e=b+65|0;f=K[b+64|0];b=b+67|0}e=K[e|0];d=K[d|0];b=K[b|0];g=J[65285];J[a+52>>2]=J[65284];J[a+56>>2]=g;H[a+48|0]=c;H[a+47|0]=b;H[a+46|0]=d;H[a+45|0]=e;H[a+44|0]=f}function ERa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=vc(176);d=J[a+12>>2];f=J[a+144>>2];c=J[J[f>>2]+8>>2];J[699344]=0;f=_(c|0,f|0)|0;c=J[699344];J[699344]=0;a:{b:{if((c|0)==1)break b;c=J[a+148>>2];e=J[J[c>>2]+8>>2];J[699344]=0;c=_(e|0,c|0)|0;e=J[699344]; +J[699344]=0;if((e|0)==1)break b;e=J[a+4>>2];g=J[a+168>>2];J[b+152>>2]=13;J[b>>2]=2218092;J[b+4>>2]=15;J[b+8>>2]=0;J[b+148>>2]=c;J[b+144>>2]=f;J[b+12>>2]=d;d=0;J[699344]=0;aa(3448,a+152|0,b+152|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[b+4>>2]=e;J[b+168>>2]=g;c:{if(J[b+12>>2]>0){f=a+16|0;while(1){c=d<<2;e=J[c+f>>2];J[699344]=0;a=_(4,8)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;J[699344]=0;e=aa(3350,a|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)==1){d=Z()|0;uc(a);break a}J[(b+c|0)+16>>2]= +e;d=d+1|0;if((d|0)>2])continue;break}}return b|0}d=Z()|0;break a}d=Z()|0}uc(b);ba(d|0);B()}function TZa(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;k=P(J[b+36>>2],J[b+28>>2]);e=J[a+272>>2];a:{if((e|0)<=0)break a;g=J[a+28>>2];h=(k<<1)-g|0;if((h|0)<=0)break a;b=0;if(e>>>0>=4){m=e&-4;while(1){f=b<<2;i=g+J[f+c>>2]|0;Ac(i,K[i-1|0],h);i=g+J[(f|4)+c>>2]|0;Ac(i,K[i-1|0],h);i=g+J[(f|8)+c>>2]|0;Ac(i,K[i-1|0],h);f=g+J[(f|12)+c>>2]|0;Ac(f,K[f-1|0],h);b=b+4|0;l=l+4|0;if((m| +0)!=(l|0))continue;break}}e=e&3;if(e)while(1){f=g+J[(b<<2)+c>>2]|0;Ac(f,K[f-1|0],h);b=b+1|0;j=j+1|0;if((e|0)!=(j|0))continue;break}e=J[a+272>>2]}if(!(!k|(e|0)<=0)){h=k&-2;f=k&1;j=0;while(1){e=j<<2;b=J[e+c>>2];e=J[d+e>>2];g=0;if((k|0)!=1)while(1){H[e|0]=K[b|0]+K[b+1|0]>>>1;H[e+1|0]=(K[b+2|0]+K[b+3|0]|0)+1>>>1;b=b+4|0;e=e+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}if(f)H[e|0]=K[b|0]+K[b+1|0]>>>1;j=j+1|0;if((j|0)>2])continue;break}}}function Gmb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e| +0;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=J[b+712>>2];a=Ac(a,0,780);J[a+8>>2]=d;J[a+4>>2]=b;H[a+65|0]=1;J[a>>2]=J[b+100>>2];a:{if(!d)break a;b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;jp(b);J[a+68>>2]=0;J[a+72>>2]=0;if(!c|!e)break a;b=J[J[c+40>>2]>>2];if(!b)break a;J[a+72>>2]=J[b>>2];J[a+68>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+108>>2]=i;b=J[65346];J[a+76>>2]=J[65345];J[a+80>>2]=b;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;b=J[65348];J[a+84>>2]=J[65347];J[a+ +88>>2]=b;b=J[65350];J[a+92>>2]=J[65349];J[a+96>>2]=b;b=J[65352];J[a+100>>2]=J[65351];J[a+104>>2]=b;b=J[i+120>>2];J[a+732>>2]=b;J[a+748>>2]=J[i+1352>>2];b:{if(J[i+1416>>2]==1)break b;j=107;if(b>>>0<1240)break b;j=b>>>0<33900?1131:32768}J[a+776>>2]=h;J[a+772>>2]=g;J[a+760>>2]=f;J[a+740>>2]=j}function Flb(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;a:{h=J[a+4>>2];k=0-h|0;g=k&(c+h|0)-1;i=d&k;b:{if((g|0)<=(i|0)){c=J[a>>2];b=g;break b}if((h+i|0)!=(g|0))break a;j=i;c:{d:{e:{l= +L[e+12>>1];m=l&7;switch(m|0){case 0:break c;case 1:case 5:break d;case 4:break e;default:break a}}j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k;break c}if(!(J[e+28>>2]!=(f|0)|J[e+16>>2]>0)&(!(l&16)|J[a+8>>2]>(d-c|0))|!(J[f+28>>2]!=(e|0)|J[e+20>>2]!=(b|0))&(!(l&32)|J[a+8>>2]>(d-c|0)))break a;if((m|0)==1)break c;j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k}c=J[a>>2];b=g;b=(j|0)>=0?L[a+52>>1]>j>>>c>>>0?j:i:b;d=((g|0)==(b|0)?i:g)>>c;if((d|0)<0|d>>>0>=L[a+52>>1])break b;if(K[(J[a+56>>2]+J[a+140>>2]|0)+(d<<13>>16)|0]<<(d&7)& +128)break a}b=b>>c;if((b|0)<0|b>>>0>=L[a+52>>1])break a;a=(J[a+56>>2]+J[a+140>>2]|0)+(b>>>3&65535)|0;H[a|0]=K[a|0]|128>>>(b&7)}}function s3(a,b,c,d){var e=0,f=0,g=0,h=0;f=1;a:{if(J[d>>2]>0){if(!b|!K[b+17|0])break a;c=J[b+4>>2];b:{if(c){c=c-1|0;J[b+4>>2]=c;if(c)break b}if(K[b+16|0])break b;c=J[J[b+20>>2]+8>>2];if(c)kc[c|0](b);c=J[b+8>>2];if(c)Vh(c);Nf(b)}return a}c:{if(a)break c;f=0;a=ji(260);if(a)break c;J[d>>2]=7;a=0;if(!b|!K[b+17|0])break a;a=J[b+4>>2];d:{if(a){a=a-1|0;J[b+4>>2]=a;if(a)break d}if(K[b+ +16|0])break d;a=J[J[b+20>>2]+8>>2];if(a)kc[a|0](b);a=J[b+8>>2];if(a)Vh(a);Nf(b)}return 0}e=Ac(a,0,260);J[e+24>>2]=b;H[e+33|0]=f;J[e+28>>2]=J[c+12>>2];if(!K[c+8|0]){J[e+4>>2]=3037;J[e+180>>2]=-1;J[e>>2]=3038;J[e+44>>2]=J[b+24>>2];f=J[b+12>>2];H[e+60|0]=K[f+71|0];H[e+66|0]=K[f+80|0];g=H[f+76|0];h=e+108|0;J[e+20>>2]=h;H[e+61|0]=g;xc(h,f+72|0,g);J[e+256>>2]=1}b=J[J[b+20>>2]+12>>2];if(!b)break a;kc[b|0](e,c,d);if(K[c+8|0]|J[d>>2]<=0)break a;Yr(e);a=0}return a}function qM(a,b){var c=0,d=0;O[a>>3]=O[b>> +3];O[a+8>>3]=O[b+8>>3];O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3];c=J[b+60>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=c;c=J[b+52>>2];J[a+48>>2]=J[b+48>>2];J[a+52>>2]=c;c=J[b+64>>2];d=J[b+68>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+64>>2]=c;c=J[a+68>>2];J[a+68>>2]=d;a:{if(!c)break a;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break a;kc[J[J[c>>2]+8>>2]](c);Gc(c)}O[a+72>>3]=O[b+72>>3];O[a+80>>3]=O[b+80>>3];O[a+88>>3]=O[b+88>>3];O[a+96>>3]=O[b+96>>3];O[a+104>>3]=O[b+104>>3];O[a+112>> +3]=O[b+112>>3];c=J[b+132>>2];J[a+128>>2]=J[b+128>>2];J[a+132>>2]=c;c=J[b+124>>2];J[a+120>>2]=J[b+120>>2];J[a+124>>2]=c;d=J[b+136>>2];c=J[b+140>>2];if(c)J[c+4>>2]=J[c+4>>2]+1;J[a+136>>2]=d;b=J[a+140>>2];J[a+140>>2]=c;b:{if(!b)break b;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}}function Clb(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;a:{h=J[a+4>>2];k=0-h|0;g=k&(c+h|0)-1;i=d&k;b:{if((g|0)<=(i|0)){c=J[a>>2];d=g;break b}if((h+i|0)!=(g|0))break a; +j=i;c:{d:{e:{l=L[e+12>>1];m=l&7;switch(m|0){case 0:break c;case 1:case 5:break d;case 4:break e;default:break a}}j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k;break c}if(!(J[e+28>>2]!=(f|0)|J[e+16>>2]>0)&(!(l&16)|J[a+8>>2]>(d-c|0))|!(J[f+28>>2]!=(e|0)|J[e+20>>2]!=(b|0))&(!(l&32)|J[a+8>>2]>(d-c|0)))break a;if((m|0)==1)break c;j=(c+d|0)+((P(h,63)|0)/64|0)>>1&k}c=J[a>>2];d=g;d=(j|0)>=0?M[a+96>>2]>j>>>c>>>0?j:i:d;e=((g|0)==(d|0)?i:g)>>c;if((e|0)<0|e>>>0>=M[a+96>>2])break b;if(K[(J[a+56>>2]+(b>>3)|0)-P(e,J[a+104>> +2])|0]&128>>>(b&7))break a}c=d>>c;if((c|0)<0|c>>>0>=M[a+96>>2])break a;a=(J[a+56>>2]+(b>>3)|0)-P(c,J[a+104>>2])|0;H[a|0]=K[a|0]|128>>>(b&7)}}function plb(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;d=J[b>>2]+1|0;a:{if(d>>>0>65535)break a;a=J[a+16>>2];i=a+518|0;j=a+6|0;while(1){b:{e=d>>>0>255;c:{d:{e:{if(!e){c=(d<<1&510)+j|0;a=i;if(!(K[c|0]<<8|K[c+1|0]))break e;break d}a=(d>>>7&33554430)+j|0;a=K[a|0]<<8|K[a+1|0]&248;if(!a)break d;a=a+i|0}c=a;a=K[c+1|0]|K[c|0]<<8;g=K[c+3|0]|K[c+ +2|0]<<8;f=d&255;h=K[c+6|0];k=K[c+7|0];l=K[c+4|0];m=K[c+5|0];if(!e){e=256;if(f>>>0>=a+g>>>0)break c}h=h<<8|k;if(!h){if((d|0)!=256)break d;break b}e=(d&-256)+(a>>>0>>0?f:a)|0;a=f-a|0;a=a>>>0<=f>>>0?a:0;if(g>>>0>a>>>0){f=l<<8|m;d=((c+6|0)+h|0)+(a<<1)|0;while(1){c=K[d+1|0]|K[d|0]<<8;if(c){c=c+f&65535;if(c)break a}d=d+2|0;e=e+1|0;a=a+1|0;if(g>>>0>a>>>0)continue;break}}d=e-((g|0)!=0)|0}e=d>>>0<256?d+1|0:(d&-256)+256|0}d=e;if(d>>>0<65536)continue}break}e=0;c=0}J[b>>2]=e;return c|0}function e6(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,p=0;a:{if((a|0)>(b|0))break a;g=J[(c<<3)+e>>2]>J[(d<<3)+e>>2];k=g?c:d;h=k<<3;i=J[h+f>>2];l=g?d:c;c=l<<3;j=J[c+f>>2];h=J[e+h>>2];g=J[c+e>>2];if(!((h|0)==(g|0)&(i|0)!=(j|0))){if((g|0)!=(h|0))m=Cd(i-j|0,h-g|0);o=i-h|0;p=j-g|0;c=a;while(1){d=c;n=c<<3;c=J[n+e>>2];b:{if((c|0)<=(g|0)){i=c+p|0;break b}i=c+o|0;if((c|0)>=(h|0))break b;i=Wc(c-g|0,m)+j|0}J[f+n>>2]=i;c=d+1|0;if((b|0)!=(d|0))continue;break}}h=f+4|0;e=e+4|0;d=J[e+(l<<3)>>2]>J[e+(k<<3)>>2];g=(d?l:k)<< +3;c=J[h+g>>2];d=(d?k:l)<<3;f=J[d+h>>2];g=J[e+g>>2];d=J[d+e>>2];if((g|0)==(d|0)&(c|0)!=(f|0))break a;k=0;if((d|0)!=(g|0))k=Cd(c-f|0,g-d|0);i=c-g|0;l=f-d|0;while(1){c=a;m=c<<3;a=J[m+e>>2];c:{if((a|0)<=(d|0)){j=a+l|0;break c}j=a+i|0;if((a|0)>=(g|0))break c;j=Wc(a-d|0,k)+f|0}J[h+m>>2]=j;a=c+1|0;if((b|0)!=(c|0))continue;break}}}function dTa(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;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+ +16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,823044,0);return}d=J[c+380>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+380>>2]=0;c=J[a+28>>2];f=Ok(2);d=J[c+116>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+116>>2]=f;c=J[a+8>>2];kc[J[J[c>>2]+108>>2]](c,J[a+28>>2]);e=O[b+24>>3];d=J[b+24>>2];h=O[b+8>>3];f=J[b+8>>2];i=J[b>>2];j=J[b+16>>2];c=J[a+28>>2];g=(J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3])*65536;b:{if(R(g)<2147483648){b=~~g;break b}b=-2147483648}J[c+132>>2]=b;e=((j|0)==1?+(d|0):e)*65536;c:{if(R(e)<2147483648){b=~~e;break c}b= +-2147483648}J[c+128>>2]=b;e=((i|0)==1?+(f|0):h)*65536;d:{if(R(e)<2147483648){b=~~e;break d}b=-2147483648}J[c+124>>2]=b;b=J[a+8>>2];kc[J[J[b>>2]+116>>2]](b,J[a+28>>2])}function ZT(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;a:{b:{f=J[b+256>>2];j=J[b+260>>2];if((f|0)!=(j|0)){h=O[b+32>>3];b=0;while(1){c:{if((b|0)!=(d|0)){O[d>>3]=h;d=d+8|0;J[a+4>>2]=d;break c}c=b-g|0;k=c>>3;d=k+1|0;if(d>>>0>=536870912){J[699344]=0;$(2494,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b; +break a}e=c>>2;e=c>>>0>=2147483640?536870911:d>>>0>>0?e:d;d:{if(!e){i=0;break d}if(e>>>0>=536870912){J[699344]=0;ka(209);a=J[699344];J[699344]=0;if((a|0)!=1)break a;break b}J[699344]=0;i=_(4,e<<3)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b}c=(k<<3)+i|0;O[c>>3]=h;d=c+8|0;if((b|0)!=(g|0))while(1){c=c-8|0;b=b-8|0;O[c>>3]=O[b>>3];if((b|0)!=(g|0))continue;break}b=(e<<3)+i|0;J[a+8>>2]=b;J[a+4>>2]=d;J[a>>2]=c;if(g)uc(g);g=c}h=h+O[f>>3];f=f+8|0;if((j|0)!=(f|0))continue;break}}return}ea(0)|0;Bc();B()}B()} +function TTa(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;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,823044,0);return}d=J[c+384>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+384>>2]=0;c=J[a+28>>2];f=Ok(2);d=J[c+120>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+120>>2]=f;c=J[a+8>>2];kc[J[J[c>>2]+112>>2]](c,J[a+28>>2]);e=O[b+24>>3];d=J[b+24>>2];h=O[b+8>>3];f=J[b+8>>2];i=J[b>>2];j=J[b+16>>2];c=J[a+28>> +2];g=(J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3])*65536;b:{if(R(g)<2147483648){b=~~g;break b}b=-2147483648}J[c+260>>2]=b;e=((j|0)==1?+(d|0):e)*65536;c:{if(R(e)<2147483648){b=~~e;break c}b=-2147483648}J[c+256>>2]=b;e=((i|0)==1?+(f|0):h)*65536;d:{if(R(e)<2147483648){b=~~e;break d}b=-2147483648}J[c+252>>2]=b;b=J[a+8>>2];kc[J[J[b>>2]+120>>2]](b,J[a+28>>2])}function Qf(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=2147483632;J[b>>2]=2147483632;f=J[b+8>>2];J[b+16>>2]=f;e=J[b+20>>2];J[b+28>>2]=e;I[e+2>>1]= +0;i=J[a+20>>2];k=J[a+28>>2]-i>>3;while(1){d=I[i+10>>1];h=d>>15;j=(d^h)-h|0;l=j&65535;h=I[i+8>>1];a:{b:{if((d|0)<0){d=K[J[i+12>>2]];c:{if((h|0)!=(g+1|0))break c;g=I[e+2>>1];if((d|0)!=K[J[e+4>>2]]|(g|0)>=0)break c;I[e+2>>1]=g-j;break b}H[f|0]=d;d=J[b+28>>2];e=d+8|0;J[b+28>>2]=e;g=J[b+16>>2];f=g+1|0;J[b+16>>2]=f;I[d+10>>1]=0-j;I[d+8>>1]=h;J[d+12>>2]=g;break b}if(!d)break a;xc(f,J[i+12>>2],l);d=J[b+28>>2];d:{e:{if((h|0)!=(J[b>>2]+1|0))break e;e=I[d+2>>1];if((e|0)<=0)break e;I[d+2>>1]=e+j;f=J[b+16>>2]; +e=d;break d}e=d+8|0;J[b+28>>2]=e;f=J[b+16>>2];I[d+10>>1]=j;I[d+8>>1]=h;J[d+12>>2]=f}f=f+l|0;J[b+16>>2]=f}g=(h+l|0)-1|0;J[b>>2]=g}i=i+8|0;k=k-1|0;if(k)continue;break}J[b+4>>2]=J[a+4>>2];Zj(c,b)}function Oha(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;d=fc-16|0;fc=d;if(K[a+11|0]>>>7|0)g=J[a+4>>2];else g=K[a+11|0]&127;e=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;h=c-b|0;a:{if(!h)break a;b:{if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(f>>>0<=b>>>0){if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;if(K[a+ +11|0]>>>7|0)i=J[a+4>>2];else i=K[a+11|0]&127;f=f+i>>>0>=b>>>0}else f=0;if(!f){if(e-g>>>0>>0)az(a,e,(g-e|0)+h|0,g,g,0);if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;e=f+g|0;while(1){if((b|0)==(c|0))break b;H[e|0]=K[b|0];b=b+1|0;e=e+1|0;continue}}e=fc-16|0;fc=e;_R(d,b,c);fc=e+16|0;b=d;if(K[d+11|0]>>>7|0)b=J[d>>2];if(K[d+11|0]>>>7|0)c=J[d+4>>2];else c=K[d+11|0]&127;J[699344]=0;ga(2835,a|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){jd(d);break a}a=Z()|0;jd(d);ba(a|0);B()}H[d+15|0]=0;H[e|0]=K[d+15|0]; +kl(a,g+h|0)}fc=d+16|0;return a|0}function Qra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;a:{b=J[b>>2];b:{if(b){d=c+8|0;BV(d,b);J[699344]=0;aa(5314,a|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[c+8>>2];J[c+8>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}a=Z()|0;zc(c+8|0);ba(a|0);B()}J[a>>2]=0;J[a+4>>2]=J[685894];J[699344]=0;J[c+12>>2]=0;aa(5153,a|0, +c+12|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}break a}b=Z()|0;zc(c+12|0);wc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2]}fc=c+16|0;return}ea(0)|0;Bc();B()}function Ff(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=fc-16|0;fc=e;a:{if(!b)break a;if((a|0)==(b|0)){c=b;break a}f=J[b+ +12>>2];d=J[b+4>>2];g=P(f,d);h=g<<2;if(!a){a=z9(b);if(!a)break a;Ac(J[a+40>>2],0,P(J[a+12>>2],J[a+4>>2])<<2);xc(J[a+40>>2],J[b+40>>2],h);c=a;break a}c=J[b>>2];if(!(!((c|0)!=J[a>>2]|(d|0)!=J[a+4>>2])&J[b+8>>2]==J[a+8>>2])){i=J[b+8>>2];J[a+4>>2]=(d|0)>0?d:0;J[a>>2]=(c|0)>0?c:0;if((i|0)>0)J[a+8>>2]=i;J[a+12>>2]=f;c=J[a+40>>2];if(c){kc[J[663154]](c);J[a+40>>2]=0}c=0;d=kc[J[663153]](g<<2)|0;if(!d)break a;J[a+40>>2]=d}c=J[a+36>>2];J[e+8>>2]=c;if(c){np(e+8|0);J[a+36>>2]=0}c=J[b+36>>2];b:{if(!c)break b;c= +$N(c);if(!c)break b;d=J[a+36>>2];J[e+12>>2]=d;if(d)np(e+12|0);J[a+36>>2]=c}J[a+20>>2]=J[b+20>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=J[b+28>>2];p9(a+32|0,J[b+32>>2]);xc(J[a+40>>2],J[b+40>>2],h);c=a}fc=e+16|0;return c|0}function KCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;J[e+12>>2]=b;a:{if(!b)break a;d=K[b|0];if(K[a+16|0]|!d)break a;while(1){b:{f=b;c:{if((c|0)!=92){if((c|0)!=34){if(c)break c;c=(d|0)==34?34:0;break c}if((d|0)==34){c=0;break c}if((d|0)==92){c=92;break c}if(d>>>0<32)break b; +c=34;if((d|0)!=127)break c;break b}c=34;if(!Cg(2400398,d<<24>>24,18))break b}b=f+1|0;d=K[f+1|0];if(d)continue;break a}break}H[a+16|0]=1}J[699344]=0;ia(5352,a|0,2401912,a|0,e+12|0);a=J[699344];J[699344]=0;d:{e:{if((a|0)==1){c=ea(2423616)|0;f:{if((gc|0)==(sa(2423616)|0)){a=oa(c|0)|0;J[699344]=0;a=En(a,J[685886]);b=J[699344];J[699344]=0;if((b|0)!=1){if(!a)break f;J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)!=1)break d}c=Z()|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break e}ba(c| +0);B()}ta()}fc=e+16|0;return}ea(0)|0;Bc()}B()}function yqa(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;e=J[a+12>>2];if(J[e+932>>2]!=8){f=K[b+11|0];f=f<<24>>24<0?J[b+4>>2]:f;if((f|0)>J[e+1268>>2]){g=J[e+1264>>2];if(g){uc(g);J[e+1264>>2]=0}J[e+1268>>2]=f;n=e,o=vc(f>>>0>1073741823?-1:f<<2),J[n+1264>>2]=o}J[e+1272>>2]=0;a:{if((f|0)<=0)break a;g=H[b+11|0]<0?J[b>>2]:b;h=J[e+1264>>2];b=0;if((f|0)!=1){i=f&-2;while(1){j=b<<2;k=J[j+g>>2];l=J[e+1272>>2];J[e+1272>> +2]=l+1;J[h+(l<<2)>>2]=k;j=J[g+(j|4)>>2];k=J[e+1272>>2];J[e+1272>>2]=k+1;J[h+(k<<2)>>2]=j;b=b+2|0;m=m+2|0;if((i|0)!=(m|0))continue;break}}if(!(f&1))break a;b=J[g+(b<<2)>>2];f=e;e=J[e+1272>>2];J[f+1272>>2]=e+1;J[h+(e<<2)>>2]=b}b=J[a+12>>2];e=b+1272|0;f=J[b+1264>>2];g=b+832|0;h=b+752|0;i=Ou(g,h);if(!i){$l(g,h);O[b+912>>3]=O[b+864>>3]}jA(b+944|0,f,0,e,c,d,!i,b);H[J[a+12>>2]+928|0]=0}return 0}function Wo(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=fc-16|0;fc=f;a:{if(!a)break a;if((b|0)<=0){b=Yc(a);if((b| +0)<0)break a}g=kc[J[663198]](b+1|0)|0;if(!g){J[f>>2]=33974;Hc(0,0,0,0,0,30,2,3,33974,0,0,0,32879,f);break a}e=g;if(b)while(1){b:{c:{h=K[a|0];if((h|0)!=37|b>>>0<3)break c;c=K[a+1|0];d=c-48|0;i=(d&255)>>>0<10;if(!i)if(((c&-33)-71&255)>>>0<250)break c;j=K[a+2|0];if((j-58&255)>>>0<=245)if(((j&-33)-71&255)>>>0<250)break c;d:{e:{if(i)break e;if((c-97&255)>>>0<=5){d=c-87|0;break e}if((c-65&255)>>>0>5)break d;d=c-55|0}H[e|0]=d}c=K[a+2|0];d=c-48|0;f:{g:{if((d&255)>>>0<=9){d=d+(K[e|0]<<4)|0;break g}d=(c+(K[e| +0]<<4)|0)-87|0;if((c-97&255)>>>0<=5)break g;if((c-65&255)>>>0>5)break f;d=(c+(K[e|0]<<4)|0)-55|0}H[e|0]=d}c=-3;a=a+3|0;break b}H[e|0]=h;c=-1;a=a+1|0}e=e+1|0;b=b+c|0;if(b)continue;break}H[e|0]=0;e=g}fc=f+16|0;return e}function B5a(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;e=fc-112|0;fc=e;k=J[J[a+24>>2]+216>>2];j=k?a:a+12|0;g=j+4|0;a:{b:{c:{h=J[j+4>>2];d:{e:{if(!h){f=J[b>>2];J[e+4>>2]=f;i=e+8|0;xc(i,b,104);c=g;break e}f=J[b>>2];d=g;c=h;while(1){i=J[c+16>>2]<(f|0);d=i?d:c;c=J[(i?c+4|0: +c)>>2];if(c)continue;break}if((d|0)!=(g|0)&J[d+16>>2]<=(f|0))break b;J[e+4>>2]=f;i=e+8|0;xc(i,b,104);while(1){c=h;b=J[c+16>>2];if((b|0)>(f|0)){h=J[c>>2];if(h)continue;g=c;break e}if((b|0)>=(f|0))break d;h=J[c+4>>2];if(h)continue;break}g=c+4|0}J[699344]=0;d=_(4,124)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[d+16>>2]=f;xc(d+20|0,i,104);J[d+8>>2]=c;J[d>>2]=0;J[d+4>>2]=0;J[g>>2]=d;a=(k?0:12)+a|0;b=J[J[a>>2]>>2];if(b){J[a>>2]=b;d=J[g>>2]}Oc(J[j+4>>2],d);J[j+8>>2]=J[j+8>>2]+1}Cj(e+84|0);break a}a= +Z()|0;Cj(e+84|0);ba(a|0);B()}xc(d+20|0,b,104)}fc=e+112|0}function jQa(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;a:{if(!a)break a;d=J[a>>2];if(!d)break a;j=J[d+668>>2];k=J[d+676>>2];f=b?J[b>>2]:f;g=c?J[c>>2]:g;i=fc-160|0;fc=i;if(f)d_(d,f);if(g)d_(d,g);EZ(d);Bd(d,J[d+268>>2]);Bd(d,J[d+680>>2]);Bd(d,J[d+748>>2]);Bd(d,J[d+740>>2]);Bd(d,J[d+588>>2]);Bd(d,J[d+592>>2]);e=J[d+632>>2];if(e&4096){k_(d,J[d+388>>2]);e=J[d+632>>2]}h=e&-4097;J[d+632>>2]=h;if(e&8192){Bd(d,J[d+504>>2]); +h=J[d+632>>2]}e=h&-8193;J[d+632>>2]=e;if(h&8){Bd(d,J[d+596>>2]);e=J[d+632>>2]}J[d+632>>2]=e&-9;Jl(d+212|0);Bd(d,J[d+544>>2]);l=xc(i,d,156);m=J[d+164>>2];h=J[d+160>>2];i=J[d+168>>2];e=J[d+676>>2];Ac(d+156|0,0,612);J[d+676>>2]=e;J[d+168>>2]=i;J[d+160>>2]=h;J[d+164>>2]=m;xc(d,l,156);fc=l+160|0;if(f){Zp(d,f,16384,-1);Yt(f,k,j);J[b>>2]=0}if(g){Zp(d,g,16384,-1);Yt(g,k,j);J[c>>2]=0}Yt(d,k,j);J[a>>2]=0}}function _oa(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;g=J[a+12>> +2];j=g+192|0;J[g+196>>2]=J[j>>2];a:{b:{c:{if((d|0)>0)while(1){a=J[g+196>>2];h=(a|0)==J[g+200>>2];l=J[(k<<2)+b>>2];n=O[(k<<3)+c>>3]*65536;d:{if(R(n)<2147483648){i=~~n;break d}i=-2147483648}e:{if(!h){J[a>>2]=l;J[a+4>>2]=i;J[g+196>>2]=a+8;break e}m=J[j>>2];h=a-m|0;f=h>>3;e=f+1|0;if(e>>>0>=536870912)break c;o=f<<3;f=h>>2;f=h>>>0>=2147483640?536870911:e>>>0>>0?f:e;if(f){if(f>>>0>=536870912)break b;h=vc(f<<3)}else h=0;e=o+h|0;J[e>>2]=l;J[e+4>>2]=i;i=e+8|0;if((a|0)!=(m|0)){while(1){a=a-8|0;l=J[a+4>>2]; +e=e-8|0;J[e>>2]=J[a>>2];J[e+4>>2]=l;if((a|0)!=(m|0))continue;break}a=J[j>>2]}J[g+200>>2]=h+(f<<3);J[g+196>>2]=i;J[g+192>>2]=e;if(!a)break e;uc(a)}k=k+1|0;if((k|0)!=(d|0))continue;break}H[g+2E3|0]=1;break a}nj(j);B()}Pd();B()}return 0}function Rdb(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=fc-32|0;fc=e;J[e+28>>2]=d;J[e+24>>2]=d;H[e+20|0]=0;J[e+8>>2]=a;J[e+16>>2]=e+28;J[e+12>>2]=e+24;a:{b:{c:{d:{if((b|0)==(c|0)){f=d;break d}f=J[e+28>>2];while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;a=J[b+4>> +2];g=J[b>>2];if((a|0)!=(g|0)){a=a-g|0;g=a>>2;if(g>>>0>=1073741824){J[699344]=0;J[e+28>>2]=f;$(2269,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}J[699344]=0;a=_(4,a|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;J[d+4>>2]=a;J[d>>2]=a;J[d+8>>2]=(g<<2)+a;f=J[b>>2];g=J[b+4>>2];if((f|0)!=(g|0))while(1){N[a>>2]=N[f>>2];a=a+4|0;f=f+4|0;if((g|0)!=(f|0))continue;break}J[d+4>>2]=a}f=d+12|0;d=f;b=b+12|0;if((c|0)!=(b|0))continue;break}J[e+28>>2]=d}fc=e+32|0;return f|0}a=Z()|0;b=J[d>>2];if(!b)break a; +J[d+4>>2]=b;uc(b);break a}a=Z()|0;J[e+28>>2]=f}GD(e+8|0);ba(a|0);B()}function zZa(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;d=fc-16|0;fc=d;k=O[b+456>>3];c=J[b+448>>2];f=J[b+452>>2];a:{b:{c:{if((f|0)==1){b=vc(16);i=O[c>>3];O[b+8>>3]=i;O[b>>3]=i;e=2;g=vc(16);c=b;break c}if(!f){b=J[a+104>>2];H[d+8|0]=0;c=d+8|0;kc[J[J[b>>2]+76>>2]](b,c)|0;a=J[a+104>>2];J[d+8>>2]=0;J[d+12>>2]=0;kc[J[J[a>>2]+108>>2]](a,c)|0;break a}g=vc(f>>>0>536870911?-1:f<<3);e=f;if((f|0)<=0)break b}b=0;if((e|0)!=1){l= +e&2147483646;while(1){h=b<<3;O[h+g>>3]=O[c+h>>3]/72*25.4;h=h|8;O[h+g>>3]=O[c+h>>3]/72*25.4;b=b+2|0;j=j+2|0;if((j|0)!=(l|0))continue;break}}if(!(e&1))break b;b=b<<3;O[b+g>>3]=O[b+c>>3]/72*25.4}b=J[a+104>>2];kc[J[J[b>>2]+128>>2]](b,g,e)|0;b=J[a+104>>2];H[d+8|0]=5;e=d+8|0;kc[J[J[b>>2]+76>>2]](b,e)|0;a=J[a+104>>2];O[d+8>>3]=k/72*25.4;kc[J[J[a>>2]+108>>2]](a,e)|0;uc(g);if(!c|(f|0)!=1)break a;uc(c)}fc=d+16|0}function S7a(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=fc-32|0;fc=e;J[e+28>>2]=d;J[e+ +24>>2]=d;H[e+20|0]=0;J[e+8>>2]=a;J[e+16>>2]=e+28;J[e+12>>2]=e+24;a:{b:{c:{d:{if((b|0)==(c|0)){f=d;break d}f=J[e+28>>2];while(1){J[d+8>>2]=0;J[d>>2]=0;J[d+4>>2]=0;a=J[b+4>>2];g=J[b>>2];if((a|0)!=(g|0)){a=a-g|0;g=a>>3;if(g>>>0>=536870912){J[699344]=0;J[e+28>>2]=f;$(2494,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}J[699344]=0;a=_(4,a|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break b;J[d+4>>2]=a;J[d>>2]=a;J[d+8>>2]=(g<<3)+a;f=J[b>>2];g=J[b+4>>2];if((f|0)!=(g|0))while(1){O[a>>3]=O[f>>3];a=a+8| +0;f=f+8|0;if((g|0)!=(f|0))continue;break}J[d+4>>2]=a}f=d+12|0;d=f;b=b+12|0;if((c|0)!=(b|0))continue;break}J[e+28>>2]=d}fc=e+32|0;return f|0}a=Z()|0;b=J[d>>2];if(!b)break a;J[d+4>>2]=b;uc(b);break a}a=Z()|0;J[e+28>>2]=f}GD(e+8|0);ba(a|0);B()}function GQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;J[e+8>>2]=J[a+4>>2];J[e+4>>2]=J[a>>2];J[e>>2]=J[b+4>>2];f=J[e+4>>2];h=J[e>>2];g=fc-16|0;fc=g;d=fc-32|0;fc=d;c=fc-16|0;fc=c;J[c+12>>2]=J[e+8>>2];J[c+8>>2]=f;J[d+24>>2]=J[c+12>>2];J[d+28>>2]= +J[c+8>>2];fc=c+16|0;f=J[d+24>>2];c=fc-16|0;fc=c;J[c+8>>2]=J[d+28>>2];J[c+12>>2]=f;J[c+4>>2]=h;while(1){f=J[c+12>>2];if((f|0)!=J[c+8>>2]){J[J[c+4>>2]-4>>2]=J[f-4>>2];J[c+12>>2]=J[c+12>>2]-4;J[c+4>>2]=J[c+4>>2]-4;continue}break}J[d+16>>2]=J[c+12>>2];J[d+20>>2]=J[c+4>>2];fc=c+16|0;J[d+12>>2]=J[d+16>>2];J[d+8>>2]=J[d+20>>2];J[g+8>>2]=J[d+12>>2];J[g+12>>2]=J[d+8>>2];fc=d+32|0;fc=g+16|0;J[e+12>>2]=J[g+12>>2];J[b+4>>2]=J[e+12>>2];d=J[a>>2];J[a>>2]=J[b+4>>2];J[b+4>>2]=d;d=J[a+4>>2];J[a+4>>2]=J[b+8>>2];J[b+ +8>>2]=d;d=J[a+8>>2];J[a+8>>2]=J[b+12>>2];J[b+12>>2]=d;J[b>>2]=J[b+4>>2];fc=e+16|0}function C1a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;b=J[b+84>>2];f=P(J[b+44>>2],I[c+22>>1]);g=J[d>>2]+e|0;a=J[a+332>>2]+128|0;h=P(J[b+32>>2],L[c+16>>1]);j=P(J[b>>2],L[c>>1]);i=(h+j|0)+4|0;k=P(J[b+40>>2],L[c+20>>1]);l=P(J[b+8>>2],L[c+4>>1]);m=k+l|0;n=i+m<<13;o=P(J[b+12>>2],I[c+6>>1]);p=o+f|0;q=P(J[b+36>>2],I[c+18>>1]);b=P(J[b+4>>2],I[c+2>>1]);c=q+b|0;r=P(p+c|0, +4433);c=r+P(c,6270)|0;H[g|0]=K[a+(n+c>>>16&1023)|0];H[g+3|0]=K[a+(n-c>>>16&1023)|0];c=P(p,-15137)+r|0;i=i-m<<13;H[g+1|0]=K[a+(c+i>>>16&1023)|0];H[g+2|0]=K[a+(i-c>>>16&1023)|0];g=o-f|0;f=b-q|0;c=P(g+f|0,4433);b=J[d+4>>2]+e|0;d=c+P(f,6270)|0;e=(j-h|0)+4|0;f=l-k|0;h=e+f<<13;H[b|0]=K[a+(d+h>>>16&1023)|0];H[b+3|0]=K[a+(h-d>>>16&1023)|0];c=c+P(g,-15137)|0;d=e-f<<13;H[b+1|0]=K[a+(c+d>>>16&1023)|0];H[b+2|0]=K[a+(d-c>>>16&1023)|0]}function B3a(){var a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=fc-16|0;fc=d;a= +J[693326];if(a){J[693326]=0;Yr(a)}if(J[693200]){f=1;while(1){a:{J[d+12>>2]=-1;e=0;a=k3(J[693200],d+12|0);if(!a)break a;while(1){b=J[a+4>>2];b:{if(!J[b+4>>2]){c=J[693200];if(J[a>>2]>=0){J[c+24>>2]=J[c+24>>2]-1;g=J[a+4>>2];h=J[c+16>>2];c:{if(!h)break c;i=J[a+8>>2];if(!i)break c;kc[h|0](i)}c=J[c+20>>2];if(g?c:0)kc[c|0](g);J[a+8>>2]=0;J[a>>2]=-2147483648;J[a+4>>2]=0}H[b+16|0]=0;j=j+1|0;if(J[b+4>>2])break b;a=J[J[b+20>>2]+8>>2];if(a)kc[a|0](b);a=J[b+8>>2];if(a)Vh(a);Nf(b);break b}e=e+1|0}a=k3(J[693200], +d+12|0);if(a)continue;break}a=(e|0)>0&f;f=0;if(a)continue}break}}fc=d+16|0;a=J[693200];if(!(!a|J[a+24>>2])){l3(a);J[693200]=0}I[1386404]=0;a=J[693203];if(a){Nf(a);J[693203]=0}J[693204]=0;J[693224]=0;H[2772832]=0;H[2772796]=0;J[693198]=0;return!J[693200]|0}function vHa(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;if((b|0)==-1)return 0;h=J[a+8>>2];i=J[a+12>>2];a:{d=J[a+28>>2];e=J[a+24>>2];b:{if((d|0)!=(e|0))c=J[a+44>>2];else{c=-1;if(!(K[a+48|0]&16))break b;j=J[a+44>>2];f=J[a+20>>2];J[699344]= +0;c=a+32|0;da(3417,c|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[a+40>>2];g=H[a+43|0];J[699344]=0;ca(3702,c|0,((g|0)>=0?1:(d&2147483647)-1|0)|0,0);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=K[a+43|0];g=d<<24>>24<0;c=g?J[a+32>>2]:c;J[a+20>>2]=c;e=c+(e-f&-4)|0;J[a+24>>2]=e;d=c+((g?J[a+36>>2]:d)<<2)|0;J[a+28>>2]=d;c=c+(j-f&-4)|0}f=e+4|0;c=c>>>0>f>>>0?c:f;J[a+44>>2]=c;if(K[a+48|0]&8){J[a+16>>2]=c;c=H[a+43|0]<0?J[a+32>>2]:a+32|0;J[a+8>>2]=c;J[a+12>>2]=c+(i-h&-4)}if((d|0)==(e|0))return kc[J[J[a>> +2]+52>>2]](a,b)|0;J[a+24>>2]=f;J[e>>2]=b;c=b}return c|0}oa(ea(0)|0)|0;ta();return-1}function uba(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(J[J[a+4>>2]>>2]>0)while(1){d=0;c=0;a:{g=J[a+4>>2];h=J[g>>2];if((h|0)>0){k=J[J[g+8>>2]>>2];e=1;b:{if((h|0)<=1)break b;f=h-1&3;if(f)while(1){i=J[g+8>>2];l=i+(d<<2)|0;d=e;J[l>>2]=J[(d<<2)+i>>2];e=d+1|0;c=c+1|0;if((f|0)!=(c|0))continue;break}if(h-2>>>0<3)break b;while(1){c=d<<2;d=J[g+8>>2];f=c+d|0;c=d;d=e<<2;J[f>>2]=J[c+d>>2];c=J[g+8>>2];i=c+d|0;f=c;c=d+ +4|0;J[i>>2]=J[f+c>>2];f=c;c=J[g+8>>2];d=d+8|0;J[f+c>>2]=J[d+c>>2];c=J[g+8>>2];f=c+d|0;d=e+3|0;J[f>>2]=J[c+(d<<2)>>2];e=e+4|0;if((h|0)!=(e|0))continue;break}}J[g>>2]=h-1;break a}fa(197868,198897,594,212202);B()}uc(k);if(J[J[a+4>>2]>>2]>0)continue;break}if(J[b>>2]<=0)return 0;c:{while(1){e=aP(J[b+4>>2]+(j<<4)|0);if(!e)return-1;if(kba(J[a+4>>2],e))break c;j=j+1|0;if((j|0)>2])continue;break}return 0}return-1}function HT(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;Tc(b,2455668,-1);Tc(b,2456020, +-1);Tc(b,2456060,-1);Tc(b,2456120,-1);H[f+15|0]=0;Lv(a,b,f+15|0);Kv(a,b);Tc(b,2456164,-1);e=fc-16|0;fc=e;c=2462656;a:{b:{if(!(J[a+676>>2]==J[a+680>>2]|J[a+56>>2]!=1)){Tc(b,2462328,-1);Tc(b,2462372,-1);c=J[a+676>>2];if((c|0)!=J[a+680>>2])while(1){c=(g<<3)+c|0;d=J[c>>2];J[e+8>>2]=d;c=J[c+4>>2];J[e+12>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;h=J[J[d>>2]+12>>2];J[699344]=0;da(h|0,d|0,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break b;c:{if(!c)break c;d=J[c+4>>2];J[c+4>>2]=d-1;if(d)break c;kc[J[J[c>>2]+8>>2]](c); +Gc(c)}g=g+1|0;c=J[a+676>>2];if(g>>>0>2]-c>>3>>>0)continue;break}Tc(b,2462436,-1);Tc(b,2462504,-1);Tc(b,2462552,-1);FT(b);c=2462600}Tc(b,c,-1);fc=e+16|0;break a}a=Z()|0;je(e+8|0);ba(a|0);B()}Tc(b,2456212,-1);Tc(b,2456256,-1);fc=f+16|0}function GXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[d+4|0]=0;J[d>>2]=a;a:{b:{c:{c=J[b+4>>2];if(c){if(c>>>0>=357913942){J[699344]=0;$(3505,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;B()}J[699344]= +0;c=P(c,12);e=_(4,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break c;J[a+4>>2]=e;J[a>>2]=e;J[a+8>>2]=c+e;b=J[b>>2];J[d+28>>2]=e;J[d+24>>2]=e;H[d+20|0]=0;J[d+8>>2]=a+8;f=b+c|0;J[d+16>>2]=d+28;J[d+12>>2]=d+24;c=e;while(1){d:{if(H[b+11|0]>=0){g=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];break d}g=J[b+4>>2];h=J[b>>2];J[699344]=0;ca(2838,c|0,h|0,g|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;c=J[d+28>>2]}c=c+12|0;J[d+28>>2]=c;b=b+12|0;if((f|0)!=(b|0))continue;break}J[a+4>>2]=c}fc=d+32| +0;return a|0}b=Z()|0;break a}b=Z()|0;YL(d+8|0);J[a+4>>2]=e}U3(d);ba(b|0);B()}function LM(a,b,c){a:switch(c-1|0){case 0:J[b>>2]=J[a+4>>2];return;case 1:J[b>>2]=J[a+4>>2]+J[a+12>>2];J[b+4>>2]=J[a+8>>2]+J[a+12>>2];return;case 2:J[b>>2]=J[a+4>>2]+(J[a+12>>2]+(J[a+20>>2]+J[a+28>>2]|0)|0);J[b+4>>2]=J[a+8>>2]+(J[a+12>>2]+(J[a+24>>2]+J[a+28>>2]|0)|0);J[b+8>>2]=J[a+16>>2]+(J[a+20>>2]+(J[a+24>>2]+J[a+28>>2]|0)|0);return;default:break a}J[b>>2]=J[a+4>>2]+(J[a+12>>2]+(J[a+20>>2]+(J[a+28>>2]+(J[a+36>>2]+(J[a+ +44>>2]+(J[a+52>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+4>>2]=J[a+8>>2]+(J[a+12>>2]+(J[a+24>>2]+(J[a+28>>2]+(J[a+40>>2]+(J[a+44>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+8>>2]=J[a+16>>2]+(J[a+20>>2]+(J[a+24>>2]+(J[a+28>>2]+(J[a+48>>2]+(J[a+52>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0);J[b+12>>2]=J[a+32>>2]+(J[a+36>>2]+(J[a+40>>2]+(J[a+44>>2]+(J[a+48>>2]+(J[a+52>>2]+(J[a+56>>2]+J[a+60>>2]|0)|0)|0)|0)|0)|0)}function J8(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;a:{if((c|0)<=0)break a;i=d-8|0;j=d+7| +0;f=c-1|0;c=0;if((d|0)<=15){k=16-d|0;while(1){g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);h=g<<24|(g&65280)<<8|(g>>>8&65280|g>>>24);g=c+d|0;h=h>>>32-g<>>8)&65535)>>>k<<2)+e|0;H[a|0]=K[h|0];H[a+1|0]=K[h+1|0];H[a+2|0]=K[h+2|0];b:{if((g|0)<8){c=g;break b}g=(c+j|0)-((g|0)>=15?15:g)|0;c=(c+i|0)-(g&-8)|0;b=b+1+(g>>>3)|0}a=a+3|0;g=(f|0)>0;f=f-1|0;if(g)continue;break}break a}while(1){g=f;f=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);h=f<<24|(f&65280)<<8|(f>>>8&65280|f>>>24); +f=c+d|0;h=h>>>32-f|0;h=(((h<<8|(h&65280)>>>8)&65535)<<2)+e|0;H[a|0]=K[h|0];H[a+1|0]=K[h+1|0];H[a+2|0]=K[h+2|0];c:{if((f|0)>=8){f=(c+j|0)-((f|0)>=15?15:f)|0;c=(c+i|0)-(f&-8)|0;b=b+1+(f>>>3)|0;break c}c=f}a=a+3|0;f=g-1|0;if((g|0)>0)continue;break}}}function Gtb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+428>>2];H[d+8|0]=K[b+32|0];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+9|0]=c;H[d+10|0]=c>>>8;H[d+11|0]=c>>>16;H[d+12|0]=c>>>24;h=d+8|0;c=K[b+40|0];a:{if(!c){f=5;break a}H[d+13| +0]=c;c=J[b+44>>2];if(!(J[b+52>>2]|(c|0)!=1)){f=6;c=1;if(J[b+48>>2]==2147483647)break a}c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+14|0]=c;H[d+15|0]=c>>>8;H[d+16|0]=c>>>16;H[d+17|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+18|0]=c;H[d+19|0]=c>>>8;H[d+20|0]=c>>>16;H[d+21|0]=c>>>24;f=J[b+52>>2];if(!f){f=14;break a}c=d+22|0;f=(f<<2)+14|0;d=J[b+56>>2];while(1){e=J[d>>2];e=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);H[c|0]=e;H[c+1|0]=e>>>8;H[c+2|0]=e>>>16;H[c+3|0]=e>>>24;d=d+4|0; +c=c+4|0;g=g+1|0;if(g>>>0>2])continue;break}}return Ce(a,J[b>>2],f,h)|0}function $ia(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;i=fc-32|0;fc=i;a:{b:{c:{if((b|0)!=(c|0)){k=J[698583];J[698583]=0;g=fc-16|0;fc=g;gh();f=fc-16|0;fc=f;e=fc-16|0;fc=e;xG(e,b,i+28|0,2);h=J[e>>2];j=J[e+4>>2];b=f;f=J[e+12>>2];J[b+8>>2]=J[e+8>>2];J[b+12>>2]=f;J[b>>2]=h;J[b+4>>2]=j;fc=e+16|0;f=J[b>>2];h=J[b+4>>2];e=g;g=J[b+12>>2];J[e+8>>2]=J[b+8>>2];J[e+12>>2]=g;J[e>>2]=f;J[e+4>>2]= +h;fc=b+16|0;g=J[e>>2];f=J[e+4>>2];h=J[e+12>>2];b=i;J[b+16>>2]=J[e+8>>2];J[b+20>>2]=h;J[b+8>>2]=g;J[b+12>>2]=f;fc=e+16|0;e=J[b+16>>2];f=J[b+20>>2];g=J[b+8>>2];h=J[b+12>>2];j=J[698583];if(!j)break c;if(J[b+28>>2]!=(c|0))break b;l=g;m=h;n=e;o=f;if((j|0)!=68)break a;break b}J[d>>2]=4;break a}J[698583]=k;if(J[i+28>>2]==(c|0))break a}J[d>>2]=4;g=l;h=m;e=n;f=o}J[a>>2]=g;J[a+4>>2]=h;J[a+8>>2]=e;J[a+12>>2]=f;fc=i+32|0}function aIa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0; +e=a+16|0;d=e;J[d>>2]=0;J[d+4>>2]=0;g=a+32|0;d=g;J[d>>2]=0;J[d+4>>2]=0;J[a+12>>2]=e;J[a+28>>2]=d;J[699344]=0;d=_(3360,a+40|0)|0;c=J[699344];J[699344]=0;e=a+28|0;a:{if((c|0)!=1){J[a+52>>2]=0;c=a+44|0;J[c>>2]=0;J[c+4>>2]=0;J[699344]=0;f=fc-16|0;fc=f;fc=f+16|0;f=J[699344];J[699344]=0;if((f|0)==1){b=Z()|0;Ag(c);c=J[d>>2];if(c){kc[J[J[c>>2]+4>>2]](c);J[d>>2]=0}break a}J[a+56>>2]=b;b=a- -64|0;J[a+60>>2]=b;J[b>>2]=0;J[b+4>>2]=0;Ht(e,J[a+32>>2]);J[a+28>>2]=g;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;return a| +0}b=Z()|0}Ht(e,J[a+32>>2]);Du(a+12|0,J[a+16>>2]);d=J[a>>2];if(d){e=d;c=J[a+4>>2];if((d|0)!=(c|0)){while(1){if(H[c-1|0]<0)uc(J[c-12>>2]);if(H[c-13|0]<0)uc(J[c-24>>2]);c=c-40|0;if((d|0)!=(c|0))continue;break}e=J[a>>2]}J[a+4>>2]=d;uc(e)}ba(b|0);B()}function nU(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;d=fc-16|0;fc=d;c=a+8|0;a:{if(kH(c,b))break a;$l(c,b);b=J[a>>2];J[d+12>>2]=J[a+72>>2];O[d>>3]=Q(O[a+40>>3]);kc[J[J[b>>2]+148>>2]](b,a+12|0,d+12|0,d,2443456,2443464)|0;b=J[a>>2];kc[J[J[b>>2]+76>> +2]](b);b=J[a>>2];i=a,j=+(kc[J[J[b>>2]+48>>2]](b)|0),O[i+80>>3]=j;b=J[a>>2];i=a,j=+(kc[J[J[b>>2]+52>>2]](b)|0),O[i+88>>3]=j;b=J[a>>2];i=a,j=+(kc[J[J[b>>2]+56>>2]](b)|0),O[i+96>>3]=j;b=J[a>>2];f=+(kc[J[J[b>>2]+44>>2]](b)|0);O[a+104>>3]=f;O[a+112>>3]=O[a+88>>3]*.35277777777777775*O[a+40>>3]/f;mU(a);b=K[a+131|0];e=b<<24>>24<0;if(e?J[a+124>>2]:b)break a;b=a+120|0;c=a+24|0;g=K[a+35|0];h=g<<24>>24;if(!e){if((h|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}Gf(b,J[a+24>>2],J[a+ +28>>2]);break a}e=b;b=(h|0)<0;Lf(e,b?J[a+24>>2]:c,b?J[a+28>>2]:g)}fc=d+16|0}function h5a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=fc-16|0;fc=b;a:{b:{if(!a){d=3;break b}c:{if(!a)break c;a=J[a+96>>2];c=J[J[a>>2]+32>>2];if(!c)break c;d=kc[c|0](a,239469)|0}c=Yc(d);if(c>>>0>=2147483632)break a;a=d;d:{if(c>>>0<=10){H[b+15|0]=c;e=b+4|0;break d}d=(c|15)+1|0;e=vc(d);J[b+12>>2]=d|-2147483648;J[b+4>>2]=e;J[b+8>>2]=c}d=0;f=cd(e,a,c)+c|0,g=0,H[f|0]=g;e=K[b+15|0];c=e<<24>>24;a=(c|0)<0;e:{f:{g:switch((a?J[b+8>>2]: +e)-3|0){case 5:a=(c|0)<0?J[b+4>>2]:b+4|0;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1702195796|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=1701869908)break f;d=1;break e;case 0:if(dd((c|0)<0?J[b+4>>2]:b+4|0,21311,3))break f;d=2;break e;case 8:break g;default:break f}if(!dd(a?J[b+4>>2]:b+4|0,20469,11))break e}d=3}if((c|0)>=0)break b;uc(J[b+4>>2])}fc=b+16|0;return d|0}_d(b+4|0);B()}function Ug(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=J[a+12>>2];c=J[e>>2];f=J[c+4>>2];d=J[a+4>>2];b=J[c>>2]; +J[a+4>>2]=b;g=e;e=b>>>0<=d>>>0;J[g>>2]=J[c+(e?12:8)>>2];d=J[a+8>>2];while(1){a:{if(d){b=J[a>>2];break a}b:{c:{d:{e:{if(!J[a+32>>2]){c=J[a+24>>2];d=J[c+8>>2];if(d&7)break e;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;break e}b=J[c+28>>2];J[c+28>>2]=b-1;f:{if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;b=K[b|0];break f}b=td(c,1);if((b|0)==-1)break e}d=K[a+28|0];H[a+28|0]=b;c=J[a>>2];if((d|0)!=255)break d;if((b|0)>=144)break c;b=(b<<9)+c|0;d=7;break a}b=J[a>>2]+65280| +0;break b}J[a+32>>2]=1;d=K[a+28|0];b=255;H[a+28|0]=255;c=J[a>>2];if((d|0)==255)break c}d=8;b=(b<<8)+c|0;break a}b=c+65280|0}d=8}d=d-1|0;J[a+8>>2]=d;J[a>>2]=b<<1;b=J[a+4>>2];J[a+4>>2]=b<<1;if(!(b&16384))continue;break}return e^f}function wea(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;f=fc-16|0;fc=f;J[f+12>>2]=0;if(K[b+11|0]>>>7|0)b=J[b>>2];J[f+8>>2]=J[698583];J[698583]=0;e=fc-16|0;fc=e;j=f+12|0;d=fc-224|0;fc=d;Ac(d+16|0,0,144);h=d+160|4;J[d+24>>2]=h;J[d+60>>2]=h;J[d+92>> +2]=-1;J[d+64>>2]=60;J[d+20>>2]=h;J[d+48>>2]=7244;i=b;while(1){g=b;b=b+4|0;if(NR(J[g>>2]))continue;break}J[d+100>>2]=g;b=d+16|0;Jk(b,0,0);yG(d,b,1,1);h=J[d+8>>2];k=J[d+12>>2];b=J[d>>2];l=J[d+4>>2];if(j){m=g;g=J[d+136>>2]+(J[d+20>>2]-J[d+60>>2]|0)|0;J[j>>2]=g?m+(g<<2)|0:i}J[e+8>>2]=h;J[e+12>>2]=k;J[e>>2]=b;J[e+4>>2]=l;fc=d+224|0;n=yz(J[e>>2],J[e+4>>2],J[e+8>>2],J[e+12>>2]);fc=e+16|0;b=J[698583];J[698583]=J[f+8>>2];J[f+8>>2]=b;a:{b:{if(J[f+8>>2]!=68){b=J[f+12>>2];if((b|0)==(i|0))break b;if(c)J[c>>2]= +b-i>>2;fc=f+16|0;break a}Is(a);B()}_y(a);B()}return+n}function uia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=fc-32|0;fc=f;J[f+28>>2]=b;a:{if(!(J[c+4>>2]&1)){c=kc[J[J[a>>2]+24>>2]](a,b,c,d,e)|0;break a}b=f+16|0;a=J[c+28>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[699344]=0;a=_(6854,b|0)|0;c=J[699344];J[699344]=0;b:{if((c|0)!=1){c=J[b>>2];d=J[c+4>>2]-1|0;J[c+4>>2]=d;if((d|0)==-1)kc[J[J[c>>2]+8>>2]](c);c:{if(e){kc[J[J[a>>2]+24>>2]](b,a);break c}kc[J[J[a>>2]+28>>2]](f+16|0,a)}g=f,h=Ei(f+16| +0),J[g+12>>2]=h;while(1){a=f+16|0;g=f,h=Fp(a),J[g+8>>2]=h;if(J[f+12>>2]==J[f+8>>2]){c=J[f+28>>2];df(a);break a}a=J[J[f+12>>2]>>2];J[699344]=0;aa(6879,f+28|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[f+12>>2]=J[f+12>>2]+4;continue}break}c=Z()|0;df(f+16|0);break b}c=Z()|0;a=J[f+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a)}ba(c|0);B()}fc=f+32|0;return c|0}function jZa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-32|0;fc=c;a:{if(!J[a+168>>2])break a;d=J[b+492>>2];if(!d)break a; +e=J[a+104>>2];O[c+16>>3]=O[b+496>>3];b=c+16|0;kc[J[J[e>>2]+252>>2]](e,b)|0;J[c+16>>2]=0;H[c+27|0]=0;J[c+4>>2]=0;H[c+15|0]=0;e=J[a+168>>2];f=J[a+160>>2];g=J[a+164>>2];J[699344]=0;h=e;e=c+4|0;la(3392,g|0,f|0,h|0,d|0,b|0,e|0);d=J[699344];J[699344]=0;b:{c:{if((d|0)==1)break c;d=K[c+27|0];if(!(d<<24>>24<0?J[c+20>>2]:d))break b;d=J[a+104>>2];f=J[J[d>>2]+244>>2];J[699344]=0;aa(f|0,d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;a=J[a+104>>2];b=J[J[a>>2]+236>>2];J[699344]=0;aa(b|0,a|0,e|0)|0;a=J[699344]; +J[699344]=0;if((a|0)!=1)break b}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);if(H[c+27|0]<0)uc(J[c+16>>2]);ba(a|0);B()}if(H[c+15|0]<0)uc(J[c+4>>2]);if(H[c+27|0]>=0)break a;uc(J[c+16>>2])}fc=c+32|0}function Twb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{if(K[d+56|0]){if((b|0)>0)while(1){if(!e){h=K[g|0];f=7;e=128;g=g+1|0}i=(e&h)>>>f|0;if(i>>>0>=M[d+64>>2])break b;b=P(i,3)+d|0;H[c|0]=K[b+68|0];H[c+ +1|0]=K[b+69|0];H[c+2|0]=K[b+70|0];H[c+3|0]=i>>>0>=M[d+844>>2]?255:K[(d+i|0)+848|0];f=f-1|0;c=c+4|0;e=(e&254)>>>1|0;j=j+1|0;if((j|0)>2])continue;break}H[a+649|0]=0;return 0}if((b|0)>0)while(1){if(!e){j=K[g|0];f=7;e=128;g=g+1|0}b=(e&j)>>>f|0;if(b>>>0>=M[d+64>>2])break a;b=P(b,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];b=K[b+70|0];H[c+3|0]=255;H[c+2|0]=b;f=f-1|0;c=c+4|0;e=(e&254)>>>1|0;h=h+1|0;if((h|0)>2])continue;break}H[a+649|0]=1;return 0}Jc(a,1042,0,0);return 1042}Jc(a,1042,0,0); +return 1042}function Swb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{if(K[d+56|0]){if((b|0)>0)while(1){if(!e){h=K[g|0];f=6;e=192;g=g+1|0}i=(e&h)>>>f|0;if(i>>>0>=M[d+64>>2])break b;b=P(i,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];H[c+2|0]=K[b+70|0];H[c+3|0]=i>>>0>=M[d+844>>2]?255:K[(d+i|0)+848|0];f=f-2|0;c=c+4|0;e=(e&252)>>>2|0;j=j+1|0;if((j|0)>2])continue;break}H[a+649|0]=0;return 0}if((b| +0)>0)while(1){if(!e){j=K[g|0];f=6;e=192;g=g+1|0}b=(e&j)>>>f|0;if(b>>>0>=M[d+64>>2])break a;b=P(b,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];b=K[b+70|0];H[c+3|0]=255;H[c+2|0]=b;f=f-2|0;c=c+4|0;e=(e&252)>>>2|0;h=h+1|0;if((h|0)>2])continue;break}H[a+649|0]=1;return 0}Jc(a,1042,0,0);return 1042}Jc(a,1042,0,0);return 1042}function Rwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{if(K[d+ +56|0]){if((b|0)>0)while(1){if(!e){h=K[g|0];f=4;e=240;g=g+1|0}i=(e&h)>>>f|0;if(i>>>0>=M[d+64>>2])break b;b=P(i,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];H[c+2|0]=K[b+70|0];H[c+3|0]=i>>>0>=M[d+844>>2]?255:K[(d+i|0)+848|0];f=f-4|0;c=c+4|0;e=(e&240)>>>4|0;j=j+1|0;if((j|0)>2])continue;break}H[a+649|0]=0;return 0}if((b|0)>0)while(1){if(!e){j=K[g|0];f=4;e=240;g=g+1|0}b=(e&j)>>>f|0;if(b>>>0>=M[d+64>>2])break a;b=P(b,3)+d|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];b=K[b+70|0];H[c+3|0]=255;H[c+2|0]=b; +f=f-4|0;c=c+4|0;e=(e&240)>>>4|0;h=h+1|0;if((h|0)>2])continue;break}H[a+649|0]=1;return 0}Jc(a,1042,0,0);return 1042}Jc(a,1042,0,0);return 1042}function IZa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+4>>2];a:{if(!d)break a;e=a+4|0;a=e;while(1){f=fq(d+16|0,b);a=f?a:d;d=J[(f?d+4|0:d)>>2];if(d)continue;break}if((a|0)==(e|0))break a;if(fq(b,a+16|0))break a;a=J[a+24>>2];if(!a)break a;b:{if((a|0)==(c|0))break b;d=K[a+11|0];b=d<<24>>24;c:{if(H[c+11|0]>=0){if((b|0)>=0){b=J[a+4>>2];J[c>>2]= +J[a>>2];J[c+4>>2]=b;J[c+8>>2]=J[a+8>>2];break c}Gf(c,J[a>>2],J[a+4>>2]);break c}b=(b|0)<0;Lf(c,b?J[a>>2]:a,b?J[a+4>>2]:d)}d=a+12|0;b=c+12|0;f=K[a+23|0];e=f<<24>>24;if(H[c+23|0]>=0){if((e|0)>=0){e=J[d+4>>2];J[b>>2]=J[d>>2];J[b+4>>2]=e;J[b+8>>2]=J[d+8>>2];break b}Gf(b,J[a+12>>2],J[a+16>>2]);break b}g=b;b=(e|0)<0;Lf(g,b?J[a+12>>2]:d,b?J[a+16>>2]:f)}b=J[a+28>>2];J[c+24>>2]=J[a+24>>2];J[c+28>>2]=b;H[c+40|0]=K[a+40|0];b=J[a+36>>2];J[c+32>>2]=J[a+32>>2];J[c+36>>2]=b;g=1}return g|0}function Q5a(a,b){a=a| +0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a=J[a+8>>2];if(!a)return 0;g=J[a+188>>2];if(g){a=0;c=K[b+11|0];h=c<<24>>24<0;d=h?J[b+4>>2]:c;c=vc(d+1|0);H[c+d|0]=0;a:{if((d|0)<=0)break a;b=h?J[b>>2]:b;if(d>>>0>=4){h=d&-4;while(1){H[a+c|0]=J[(a<<2)+b>>2];f=a|1;H[f+c|0]=J[(f<<2)+b>>2];f=a|2;H[f+c|0]=J[(f<<2)+b>>2];f=a|3;H[f+c|0]=J[(f<<2)+b>>2];a=a+4|0;e=e+4|0;if((h|0)!=(e|0))continue;break}}d=d&3;if(!d)break a;e=0;while(1){H[a+c|0]=J[(a<<2)+b>>2];a=a+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}e=0;b:{if(!(J[g+ +8>>2]&512)|(!g|!c))break b;c:{d:{a=J[g+128>>2];b=J[a+40>>2];switch(b+2|0){case 0:break b;case 2:break d;default:break c}}b=J[g+96>>2];d=J[J[b>>2]+32>>2];e:{if(!d){b=0;break e}b=kc[d|0](b,240009)|0;a=J[g+128>>2]}J[a+40>>2]=b?b:-2}if(!b)break b;a=J[b+4>>2];if(!a)break b;e=kc[a|0](g,c)|0}uc(c)}return e|0}function B4a(a,b){a=a|0;b=b|0;var c=0,d=0;d=fc-16|0;fc=d;a:{b:{c:{d:{if(b){b=d+4|0;UL(b);J[699344]=0;b=aa(2993,a+72|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;if(H[d+15|0]<0)uc(J[d+4>>2]); +if(b)break d}b=vc(80);J[d+4>>2]=b;J[d+8>>2]=16;J[d+12>>2]=-2147483628;c=J[88248];J[b+56>>2]=J[88247];J[b+60>>2]=c;c=J[88246];J[b+48>>2]=J[88245];J[b+52>>2]=c;c=J[88244];J[b+40>>2]=J[88243];J[b+44>>2]=c;c=J[88242];J[b+32>>2]=J[88241];J[b+36>>2]=c;c=J[88240];J[b+24>>2]=J[88239];J[b+28>>2]=c;c=J[88238];J[b+16>>2]=J[88237];J[b+20>>2]=c;c=J[88236];J[b+8>>2]=J[88235];J[b+12>>2]=c;c=J[88234];J[b>>2]=J[88233];J[b+4>>2]=c;J[b+64>>2]=0;J[699344]=0;da(2994,a+72|0,d+4|0);c=J[699344];J[699344]=0;if((c|0)==1)break b; +uc(b);J[a+48>>2]=a+8}fc=d+16|0;return}a=Z()|0;if(H[d+15|0]>=0)break a;uc(J[d+4>>2]);ba(a|0);B()}a=Z()|0;uc(b)}ba(a|0);B()}function lO(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=J[J[e>>2]+12>>2];i=J[c>>2];k=J[J[f+(i<<2)>>2]+4>>2];e=J[b>>2];j=J[J[(e<<2)+f>>2]+4>>2];g=J[a>>2];l=J[(g<<2)+f>>2];a:{if(j>>>0>=M[l+4>>2]){if(k>>>0>=j>>>0){e=i;break a}J[b>>2]=i;J[c>>2]=e;h=1;g=J[b>>2];i=J[a>>2];if(M[J[(g<<2)+f>>2]+4>>2]>=M[J[(i<<2)+f>>2]+4>>2])break a;J[a>>2]=g;J[b>>2]=i;e=J[c>>2];h=2;break a}b:{if(k>>>0< +j>>>0){J[a>>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=e;J[b>>2]=g;h=2;e=J[c>>2];if(M[J[(e<<2)+f>>2]+4>>2]>=M[l+4>>2]){h=1;break a}J[b>>2]=e;J[c>>2]=g}e=g}g=J[d>>2];if(M[J[(g<<2)+f>>2]+4>>2]>2]+4>>2]){J[c>>2]=g;J[d>>2]=e;d=J[c>>2];e=J[b>>2];if(M[J[(d<<2)+f>>2]+4>>2]>=M[J[(e<<2)+f>>2]+4>>2])return h+1|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(M[J[(c<<2)+f>>2]+4>>2]>=M[J[(d<<2)+f>>2]+4>>2])return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function jub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e| +0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break b;if(K[a+289|0])break b;if(!c){Jc(a,1028,0,0);return 1028}i=c+1|0;f=kc[J[a+152>>2]](i)|0;if(!f)break a;h=xc(f,d,c);f=h;while(1){g=f;f=g+1|0;if(K[g|0])continue;break}j=h;c:{d:{e:{f:{k=c+h|0;if(k>>>0>g>>>0){f=h;while(1){l=V9(a,f);j=g+1|0;f=j;while(1){g=f;f=g+1|0;if(K[g|0])continue;break}if(l){f=j;if(g>>>0>>0)continue}break}if(!l)break f}f=V9(a,j);kc[J[a+156>>2]](h,i);if(!f)break e;g=0;if(!K[a+112|0])break c; +g=kc[J[b+4>>2]](a,b,e)|0;if(g)break c;J[J[e>>2]+32>>2]=c;b=kc[J[a+152>>2]](i)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(b)break d;break a}kc[J[a+156>>2]](h,i)}Jc(a,1062,0,0);return 1062}xc(b,d,c);g=0}return g|0}Jc(a,1029,0,0);return 1029}Jc(a,1,0,0);return 1}function Y8(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=fc-16|0;fc=g;J[g+12>>2]=0;d=252E3;b=48;a:{while(1){d=d+1|0;if((b&255)==32)while(1){b=K[d|0];d=d+1|0;if((b|0)==32)continue;break}f=b&255;if(b<<24>>24<0){c=f>>>0<240;b=f>>>0<224;e=b? +1:c?2:3;f=(b?31:c?15:7)&f;c=0;b=d;while(1){f=K[b|0]&63|f<<6;b=b+1|0;c=c+1|0;if((e|0)!=(c|0))continue;break}d=d+e|0}h=J[J[a+36>>2]>>2];c=0;while(1){b=K[d|0];if((b|32)!=32){d=d+1|0;c=b;if(b<<24>>24>=0)continue;e=b>>>0<240;b=b>>>0<224;i=b?1:e?2:3;c=(b?31:e?15:7)&c;e=0;b=d;while(1){c=K[b|0]&63|c<<6;b=b+1|0;e=e+1|0;if((i|0)!=(e|0))continue;break}d=d+i|0;continue}break}b:{if(c){gE(h,0,g+12|0);break b}b=Gh(h,f);gE(J[J[a+36>>2]>>2],b,g+12|0);if(!b)break b;b=j;j=1;c=J[g+12>>2];if(!b){k=c;break b}if((c|0)== +(k|0))break b;b=0;break a}b=K[d|0];if(b)continue;break}b=1}H[a+32|0]=b;fc=g+16|0}function Hia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=fc-32|0;fc=f;J[f+28>>2]=b;a:{if(!(J[c+4>>2]&1)){c=kc[J[J[a>>2]+24>>2]](a,b,c,d,e)|0;break a}b=f+16|0;a=J[c+28>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;J[699344]=0;a=_(6827,b|0)|0;c=J[699344];J[699344]=0;b:{if((c|0)!=1){c=J[b>>2];d=J[c+4>>2]-1|0;J[c+4>>2]=d;if((d|0)==-1)kc[J[J[c>>2]+8>>2]](c);c:{if(e){kc[J[J[a>>2]+24>>2]](b,a);break c}kc[J[J[a>>2]+28>> +2]](f+16|0,a)}g=f,h=Ei(f+16|0),J[g+12>>2]=h;while(1){a=f+16|0;g=f,h=Hp(a),J[g+8>>2]=h;if(J[f+12>>2]==J[f+8>>2]){c=J[f+28>>2];jd(a);break a}a=H[J[f+12>>2]];J[699344]=0;aa(6746,f+28|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[f+12>>2]=J[f+12>>2]+1;continue}break}c=Z()|0;jd(f+16|0);break b}c=Z()|0;a=J[f+16>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a)}ba(c|0);B()}fc=f+32|0;return c|0}function ET(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2463728;d=J[a+60>>2];c=J[a+56>>2];if((d|0)!= +(c|0))while(1){d=d-8|0;b=J[d+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((c|0)!=(d|0))continue;break}J[a+60>>2]=c;b=J[a+80>>2];J[a+76>>2]=0;J[a+80>>2]=0;b:{if(!b)break b;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+88>>2];c:{if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+80>>2];d:{if(!b)break d;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break d;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+56>>2];if(b){c= +b;d=J[a+60>>2];if((b|0)!=(d|0)){while(1){d=d-8|0;c=J[d+4>>2];e:{if(!c)break e;e=J[c+4>>2];J[c+4>>2]=e-1;if(e)break e;kc[J[J[c>>2]+8>>2]](c);Gc(c)}if((b|0)!=(d|0))continue;break}c=J[a+56>>2]}J[a+60>>2]=b;uc(c)}return a|0}function D2(a,b){var c=0,d=0,e=0,f=0,g=0;e=-2;a:{if(!a|!J[a+32>>2])break a;d=J[a+36>>2];if(!d)break a;c=J[a+28>>2];if(!c|J[c>>2]!=(a|0)|J[c+4>>2]-16180>>>0>31)break a;if((b|0)<0)b=0-b|0;else{f=(b>>>4|0)+5|0;b=b>>>0<48?b&15:b}if(b?b-8>>>0>=8:0)break a;g=J[c+56>>2];b:{if(!(J[c+40>>2]!= +(b|0)?g:0)){J[c+40>>2]=b;J[c+12>>2]=f;break b}kc[d|0](J[a+40>>2],g);J[c+56>>2]=0;d=J[a+32>>2];J[c+40>>2]=b;J[c+12>>2]=f;if(!d)break a}if(!J[a+36>>2])break a;b=J[a+28>>2];if(!b|J[b>>2]!=(a|0)|J[b+4>>2]-16180>>>0>31)break a;e=0;J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+32>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;c=J[b+12>>2];if(c)J[a+48>>2]=c&1;J[b+60>>2]=0;J[b+64>>2]=0;J[b+36>>2]=0;J[b+24>>2]=32768;J[b+16>>2]=0;J[b+4>>2]=16180;J[b+8>>2]=0;J[b+7108>>2]=1;J[b+7112>>2]=-1;a=b+1332|0;J[b+112>>2]=a; +J[b+84>>2]=a;J[b+80>>2]=a}return e}function Jp(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,m=0;k=fc-16|0;fc=k;H[k+15|0]=a;a:{b:{c:{if(J[d>>2]!=(c|0))break c;l=43;m=a&255;if((m|0)!=K[j+24|0]){l=45;if(K[j+25|0]!=(m|0))break c}J[d>>2]=c+1;H[c|0]=l;break b}if(K[g+11|0]>>>7|0)g=J[g+4>>2];else g=K[g+11|0]&127;if(!(!g|(a|0)!=(f|0))){a=0;b=J[i>>2];if((b-h|0)>159)break a;a=J[e>>2];J[i>>2]=b+4;J[b>>2]=a;break b}a=-1;f=aG(j,j+26|0,k+15|0)-j|0;if((f|0)>23)break a; +d:{e:switch(b-8|0){case 0:case 2:if((b|0)>(f|0))break d;break a;case 1:break d;default:break e}if((b|0)!=16|(f|0)<22)break d;b=J[d>>2];if((b|0)==(c|0)|(b-c|0)>2|K[b-1|0]!=48)break a;a=0;J[e>>2]=0;J[d>>2]=b+1;H[b|0]=K[f+2632752|0];break a}a=J[d>>2];J[d>>2]=a+1;H[a|0]=K[f+2632752|0];J[e>>2]=J[e>>2]+1;a=0;break a}a=0;J[e>>2]=0}fc=k+16|0;return a|0}function xDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;CA(a+8|0);FA(a+36|0);a:{f=Kk(b);if((f|0)>0)while(1){J[d+8>>2]=0;J[d+12>>2]=J[685894]; +b:{while(1){c:{c=J[J[b>>2]+8>>2];J[699344]=0;c=ga(c|0,b|0,d+7|0,1)|0;e=J[699344];J[699344]=0;if((e|0)==1)break c;if(!c)break b;c=K[d+7|0];if(!c)break b;J[699344]=0;aa(5315,d+8|0,c<<24>>24)|0;c=J[699344];J[699344]=0;if((c|0)!=1)continue}break}break a}J[699344]=0;c=_(5296,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[699344]=0;e=_(5293,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;J[699344]=0;h=_(5293,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[699344]=0;g=d+8|0;ma(5316,a|0,g|0, +(c|0)!=0|0,e|0,h|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=(f|0)>1;wc(g);f=f-1|0;if(c)continue;break}fc=d+16|0;return}a=Z()|0;wc(d+8|0);ba(a|0);B()}function m6(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;l=J[a+12>>2];e=J[l>>2];h=b>>>0>e>>>0?e:b;if(h){b=J[l+12>>2];while(1){j=J[b+12>>2];e=j;k=i<<2;f=J[k+c>>2];if((e|0)>=(f|0)){e=J[b+4>>2];e=(e|0)<(f|0)?f:e}f=J[b+8>>2];a:{if((f|0)>(e|0)){g=0-Cd(e-f|0,J[b+4>>2]-f|0)|0;break a}g=0;if((e|0)<=(f|0))break a;g=Cd(e-f|0,j-f|0)}J[d+k>>2]= +g;b=b+24|0;i=i+1|0;if((h|0)!=(i|0))continue;break}e=J[l>>2]}if(e>>>0>h>>>0)Ac((h<<2)+d|0,0,e-h<<2);a=J[a+28>>2];if(!(!a|!e)){c=0;while(1){g=L[a>>1];b:{if(g>>>0<2)break b;i=(c<<2)+d|0;f=J[i>>2];h=J[a+4>>2];b=1;while(1){j=b<<3;k=j+h|0;m=J[k>>2];if((f|0)<(m|0)){g=f;b=j-8|0;e=b+h|0;f=J[e>>2];n=i,o=Od(g-f|0,J[k+4>>2]-J[e+4>>2]|0,m-f|0)+J[(b+J[a+4>>2]|0)+4>>2]|0,J[n>>2]=o;e=J[l>>2];break b}b=b+1|0;if((g|0)!=(b|0))continue;break}}a=a+8|0;c=c+1|0;if(e>>>0>c>>>0)continue;break}}}function dX(a,b){var c=0,d= +0,e=0,f=0,g=0;d=fc-16|0;fc=d;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;J[a+16>>2]=0;J[a+20>>2]=J[685894];f=a+16|0;a:{b:{c=J[b+16>>2];c:{if(c){e=J[J[c>>2]+28>>2];J[699344]=0;ca(e|0,d+12|0,c|0,1);c=J[699344];J[699344]=0;if((c|0)!=1)break c;break b}J[d+12>>2]=0}J[699344]=0;aa(5153,f|0,d+12|0)|0;c=J[699344];J[699344]=0;d:{if((c|0)!=1){c=J[d+12>>2];J[d+12>>2]=0;if(!c)break d;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;g=J[699344];J[699344]=0;if((g|0)!=1){if(e)break d; +J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break d}ea(0)|0;Bc();B()}a=Z()|0;zc(d+12|0);break a}c=J[a+16>>2];J[a+20>>2]=J[(c?c+12|0:2743576)>>2];J[699344]=0;aa(5201,a+24|0,b+24|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;fc=d+16|0;return a}a=Z()|0}wc(f);ba(a|0);B()}function ENa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=fc-32|0;fc=f;b=J[a+8>>2];if((b|0)==-1){a:{if(J[a+12>>2]){b=-1;break a}while(1){b=J[a+4>>2];d=kc[J[J[b>>2]+28>>2]](b)|0;if((d|0)==32|d-9>>>0<5)continue;break}if((d|0)== +62){J[a+12>>2]=1;b=-1;break a}while(1){b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)==32|c-9>>>0<5)continue;break}if((c|0)==62){J[a+12>>2]=1;c=48}e=d<<4;b=e-768|0;b:{if(d-48>>>0<=9)break b;b=e-880|0;if(d-65>>>0<=5)break b;b=e-1392|0;if(d-97>>>0<=5)break b;c:{if((d|0)==-1){J[a+12>>2]=1;break c}b=kc[J[J[a>>2]+52>>2]](a)|0;J[f+16>>2]=d;Cc(1,b,809142,f+16|0)}b=0}e=c-48|0;if(e>>>0<=9){b=b+e|0;break a}if(c-65>>>0<=5){b=(b+c|0)-55|0;break a}if(c-97>>>0<=5){b=(b+c|0)-87|0;break a}if((c|0)==-1){J[a+12>> +2]=1;b=0;break a}e=kc[J[J[a>>2]+52>>2]](a)|0;J[f>>2]=c;Cc(1,e,809142,f)}J[a+8>>2]=b}fc=f+32|0;return b|0}function Uaa(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(J[a+4>>2]==16)e=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else e=J[a+36>>2];i=J[e+1872>>2];f=i+P(b,1076)|0;g=J[a+52>>2];a=kc[J[J[g>>2]+20>>2]](g,1)|0;J[f+804>>2]=a>>5;d=a&31;J[f+24>>2]=d;e=d;a:{b:{c:{d:switch(d|0){case 0:e=c-1|0;break c;case 1:break b;default:break d}e=(c-1|0)/2|0}if((e|0)<=0)break a}a=0;while(1){c=J[J[g>>2]+20>>2];e:{if(!J[f+24>> +2]){d=kc[c|0](g,1)>>>3|0;c=0;break e}d=kc[c|0](g,2)|0;c=d&2047;d=d>>11}h=(a<<3)+f|0;J[h+32>>2]=c;J[h+28>>2]=d;a=a+1|0;if((e|0)!=(a|0))continue;break}d=J[f+24>>2]}a=1;if((d|0)==1){c=P(b,1076)+i|0;e=J[c+28>>2];d=J[c+32>>2];while(1){b=c+(a<<3)|0;J[b+32>>2]=d;J[b+40>>2]=d;f=e+((a<<24>>24)/-3<<24>>24)|0;J[b+36>>2]=(f|0)>0?f:0;h=b;b=e+((a-1<<24>>24)/-3<<24>>24)|0;J[h+28>>2]=(b|0)>0?b:0;a=a+2|0;if((a|0)!=97)continue;break}}}function FHa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=a+32|0;a:{if((d|0)==(b|0))break a; +e=K[b+11|0];c=e<<24>>24;if(H[a+43|0]>=0){if((c|0)>=0){c=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=c;J[d+8>>2]=J[b+8>>2];break a}Gf(d,J[b>>2],J[b+4>>2]);break a}c=(c|0)<0;Lf(d,c?J[b>>2]:b,c?J[b+4>>2]:e)}J[a+44>>2]=0;c=J[a+48>>2];if(c&8){e=K[a+43|0];f=e<<24>>24<0;b=f?J[a+32>>2]:d;J[a+12>>2]=b;J[a+8>>2]=b;b=b+((f?J[a+36>>2]:e)<<2)|0;J[a+44>>2]=b;J[a+16>>2]=b}b:{if(!(c&16))break b;c=K[a+43|0];b=c<<24>>24<0;c=b?J[a+36>>2]:c;J[a+44>>2]=(b?J[a+32>>2]:d)+(c<<2);GF(d,b?(J[a+40>>2]&2147483647)-1|0:1,0);b=d;d=K[a+ +43|0];e=d<<24>>24<0;b=e?J[a+32>>2]:b;J[a+24>>2]=b;J[a+20>>2]=b;J[a+28>>2]=((e?J[a+36>>2]:d)<<2)+b;if(!(K[a+48|0]&3))break b;c:{if((c|0)<0){d=c-2147483647|0;c=(d|0)<0;b=c?b-8|0:b-4|0;c=c?1:d;break c}if(!c)break b}J[a+24>>2]=(c<<2)+b}}function CE(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=fc-16|0;fc=c;e=!a;a:{if(e|((e?-1:J[a+8>>2])|0)!=8)break a;if(a?J[a+36>>2]:0){b=el(a,2);break a}f=kd(256,4);if(!f)break a;while(1){J[(b<<2)+f>>2]=b<<24|b<<16|b<<8;e=b|1;J[(e<<2)+f>>2]=e<<24|e<<16|e<<8;b=b+ +2|0;if((b|0)!=256)continue;break}b=0;Df(a,c+12|0,c+8|0,0);i=a?J[a+40>>2]:0;j=a?J[a+12>>2]:-1;d=xh(J[c+12>>2],J[c+8>>2],32);if(!d)break a;if(!(!d|!a|(a|0)==(d|0))){J[d+20>>2]=J[a+20>>2];J[d+24>>2]=J[a+24>>2]}e=d?J[d+40>>2]:0;a=d?J[d+12>>2]:-1;b=J[c+8>>2];b:{if((b|0)<=0)break b;g=J[c+12>>2];if((g|0)<=0)break b;while(1){if((g|0)>0){k=(P(a,h)<<2)+e|0;l=(P(h,j)<<2)+i|0;b=0;while(1){J[(b<<2)+k>>2]=J[(K[b+l^3]<<2)+f>>2];b=b+1|0;g=J[c+12>>2];if((b|0)<(g|0))continue;break}b=J[c+8>>2]}h=h+1|0;if((h|0)<(b|0))continue; +break}}uc(f);b=d}fc=c+16|0;return b}function alb(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;d=J[b>>2];if((d|0)==-1)return 0;e=J[a+16>>2];c=K[e+8204|0]|K[e+8205|0]<<8|(K[e+8206|0]<<16|K[e+8207|0]<<24);f=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{b:{if(!f)break b;k=J[a>>2];a=d+1|0;d=e+8208|0;while(1){e=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);h=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);a=a>>>0>h>>>0?a:h;c=K[d+7|0];g=K[d+5|0]<<16|K[d+4|0]<<24|K[d+6|0]<<8;i=c|g;c:{if(a>>>0>i>>>0)break c; +e=K[d+8|0]|K[d+9|0]<<8|(K[d+10|0]<<16|K[d+11|0]<<24);j=e<<24|(e&65280)<<8|(e>>>8&65280|e>>>24);e=(g|1)+c|0;d:{while(1){c=a-h|0;if((c^-1)>>>0>>0)break c;c=c+j|0;if(c)break d;c=a+1|0;if(!c)break b;g=a>>>0>>0;a=c;if(g)continue;break}a=e;break c}if(M[k+16>>2]>c>>>0)break a}d=d+12|0;f=f-1|0;if(f)continue;break}}c=0;a=0}J[b>>2]=a;return c|0}function ICa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-32|0;fc=e;J[a+12>>2]=0;J[a+8>>2]=b;J[a>>2]=2401596;J[a+4>>2]=0;b=J[685894];J[a+40>>2]=0;J[a+44>> +2]=0;J[a+36>>2]=b;J[a+32>>2]=0;J[a+28>>2]=b;J[a+24>>2]=0;J[a+16>>2]=b;J[a+48>>2]=0;J[a+52>>2]=0;J[699344]=0;d=a+40|0;J[d>>2]=2397928;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;b=J[699344];J[699344]=0;f=a+32|0;g=a+24|0;a:{b:{c:{d:{e:{if((b|0)!=1){b=J[a+8>>2];if((b&-2)==2)break d;J[699344]=0;c=ja(5178,e+8|0,2389111,2389637,204,2401604,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break e;B()}b=Z()|0;break a}b=Z()|0;Kc(c);break b}J[699344]=0;aa(5224, +((b|0)==2?g:f)|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;break b}fc=e+32|0;return a|0}b=Z()|0}id(d)}wc(f);wc(g);wc(a+12|0);nd(a);ba(b|0);B()}function kk(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!J[a+8>>2])break a;d=J[a+4>>2];c=J[d>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b=d;d=J[b+4>>2];b:{if(!J[b+20>>2])break b;c=J[b+16>>2];f=J[c>>2];e=J[J[b+12>>2]+4>>2];J[f+4>>2]=e;J[e>>2]=f;J[b+20>>2]=0;e=b+12|0;if((e|0)==(c|0))break b;while(1){f=J[c+4>>2];uc(c); +c=f;if((e|0)!=(c|0))continue;break}}uc(b);if((a|0)!=(d|0))continue;break}if(!J[a+8>>2])break a;d=J[a+4>>2];c=J[d>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b=d;d=J[b+4>>2];c:{if(!J[b+20>>2])break c;c=J[b+16>>2];f=J[c>>2];e=J[J[b+12>>2]+4>>2];J[f+4>>2]=e;J[e>>2]=f;J[b+20>>2]=0;e=b+12|0;if((e|0)==(c|0))break c;while(1){f=J[c+4>>2];uc(c);c=f;if((e|0)!=(c|0))continue;break}}uc(b);if((a|0)!=(d|0))continue;break}}}function Ytb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d= +d|0;e=e|0;var f=0,g=0;a:{b:{c:{f=1029;d:{if(!K[a+285|0]|!K[a+288|0])break d;g=(c>>>0)/5|0;f=1028;if(c-P(g,5)|c>>>0<5)break d;if(!K[a+112|0])break b;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break a;J[J[e>>2]+32>>2]=g;f=kc[J[a+152>>2]](c)|0;if(f)break c;f=1}Jc(a,f,0,0);return f|0}J[J[e>>2]+36>>2]=f;if(c-5>>>0>=5){b=g&1073741822;c=0;while(1){a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[f+4|0]=K[d+4|0];a=K[d+5|0]|K[d+6|0]<<8|(K[d+7|0]<<16|K[d+8|0]<<24);J[f+8>> +2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[f+12|0]=K[d+9|0];f=f+16|0;d=d+10|0;c=c+2|0;if((b|0)!=(c|0))continue;break}}if(!(g&1))break b;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);H[f+4|0]=K[d+4|0]}f=0}return f|0}function Ip(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=fc-16|0;fc=k;J[k+12>>2]=a;a:{b:{c:{if(J[d>>2]!=(c|0))break c;l=43;if(J[j+96>>2]!=(a|0)){l=45;if(J[j+100>>2]!=(a|0))break c}J[d>> +2]=c+1;H[c|0]=l;break b}if(K[g+11|0]>>>7|0)g=J[g+4>>2];else g=K[g+11|0]&127;if(!(!g|(a|0)!=(f|0))){a=0;b=J[i>>2];if((b-h|0)>159)break a;a=J[e>>2];J[i>>2]=b+4;J[b>>2]=a;break b}a=-1;f=ZF(j,j+104|0,k+12|0)-j>>2;if((f|0)>23)break a;d:{e:switch(b-8|0){case 0:case 2:if((b|0)>(f|0))break d;break a;case 1:break d;default:break e}if((b|0)!=16|(f|0)<22)break d;b=J[d>>2];if((b|0)==(c|0)|(b-c|0)>2|K[b-1|0]!=48)break a;a=0;J[e>>2]=0;J[d>>2]=b+1;H[b|0]=K[f+2632752|0];break a}a=J[d>>2];J[d>>2]=a+1;H[a|0]=K[f+2632752| +0];J[e>>2]=J[e>>2]+1;a=0;break a}a=0;J[e>>2]=0}fc=k+16|0;return a|0}function H7(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=fc-16|0;fc=g;a:{if(!a){d=37;break a}d=6;if(!b)break a;f=J[a>>2];if(!f)break a;b:{h=J[f>>2];c=J[a+72>>2];e=259928;c:{if((c|0)==1651078259)break c;e=259960;if((c|0)==1869968492)break c;d:{e:{if(!f)break e;d=J[f+148>>2];if(!d)break e;while(1){e=J[d+8>>2];if((c|0)==J[e+16>>2])break d;d=J[d+4>>2];if(d)continue;break}}e=0}if(!e)break b;e=e+20|0}c=he(h,J[e>>2],g+12|0);d=J[g+12>> +2];if(d)break a;J[c+4>>2]=e;J[c>>2]=f;J[c+8>>2]=J[e+4>>2];d=6;f:{f=J[a+64>>2];g:{if(f-2097152>>>0<4290772993)break g;h=J[a+68>>2];if(h-2097152>>>0<4290772993)break g;J[c+16>>2]=h<<10;J[c+12>>2]=f<<10;d=kc[J[e+8>>2]](c,a)|0;if(!d)break f;e=J[c+4>>2]}a=J[J[c>>2]>>2];b=J[e+12>>2];if(b)kc[b|0](c);if(c)kc[J[a+8>>2]](a,c);break a}J[b>>2]=c;d=0;break a}d=18}fc=g+16|0;return d|0}function uS(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-32|0;fc=c;J[c+28>>2]=a;f=1;a:{b:switch(b-a>>3){case 2:b=b-8|0;J[c+24>>2]=b;if(!(O[b>> +3]>3]))break a;a=J[c+28>>2];h=O[a>>3];b=a;a=J[c+24>>2];O[b>>3]=O[a>>3];O[a>>3]=h;break a;case 3:wz(a,a+8|0,b-8|0);break a;case 4:xS(a,a+8|0,a+16|0,b-8|0);break a;case 5:wS(a,a+8|0,a+16|0,a+24|0,b-8|0);break a;case 0:case 1:break a;default:break b}e=a+16|0;wz(a,a+8|0,e);d=a+24|0;while(1){J[c+20>>2]=d;if((b|0)==(d|0))break a;c:{if(!(O[d>>3]>3]))break c;O[c+8>>3]=O[J[c+20>>2]>>3];J[c+4>>2]=e;d=J[c+20>>2];while(1){d:{O[d>>3]=O[J[c+4>>2]>>3];d=J[c+4>>2];if((d|0)==(a|0)){d=a;break d}e=d-8|0;J[c+ +4>>2]=e;if(O[c+8>>3]>3])continue}break}O[d>>3]=O[c+8>>3];g=g+1|0;if((g|0)!=8)break c;f=(J[c+20>>2]+8|0)==(b|0);break a}e=J[c+20>>2];d=e+8|0;continue}}fc=c+32|0;return f}function ora(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;i=fc-16|0;fc=i;a:{if(!a|!d|((b|0)>(c|0)|(e|0)>(f|0)))break a;while(1){h=(b<<3)+a|0;J[h>>2]=0;J[h+4>>2]=J[685894];b:{g=J[(e<<3)+d>>2];c:{d:{if(g){j=J[J[g>>2]+28>>2];J[699344]=0;ca(j|0,i+12|0,g|0,1);g=J[699344];J[699344]=0;if((g|0)!=1)break d; +b=Z()|0;break c}J[i+12>>2]=0}J[699344]=0;aa(5153,h|0,i+12|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){g=J[i+12>>2];J[i+12>>2]=0;if(!g)break b;J[699344]=0;j=J[g+4>>2]-1|0;J[g+4>>2]=j;k=J[699344];J[699344]=0;if((k|0)!=1){if(j)break b;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)!=1)break b}ea(0)|0;Bc();B()}b=Z()|0;zc(i+12|0)}wc(h);ba(b|0);B()}g=h;h=J[h>>2];J[g+4>>2]=J[(h?h+12|0:2743576)>>2];if((b|0)>=(c|0))break a;b=b+1|0;h=(e|0)<(f|0);e=e+1|0;if(h)continue;break}}fc=i+16|0}function RBb(a){a= +a|0;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;j=J[a+8>>2];b=J[a+12>>2];d=J[a+52>>2];e=kc[J[J[d>>2]+36>>2]](d)|0;c=kc[J[J[d>>2]+40>>2]](d)|0;m=kc[J[J[d>>2]+40>>2]](d)|0;c=c+1|0;b=b-e|0;h=(b|0)>(c|0)?c:b;b=j<<2;c=J[b+J[a+32>>2]>>2];e=kd(1,h+c|0);if(e){a:{if((c|0)<=0)break a;f=J[b+J[a+28>>2]>>2];b=0;if(c>>>0>=4){i=c&-4;while(1){H[b+e|0]=K[b+f|0];g=b|1;H[g+e|0]=K[f+g|0];g=b|2;H[g+e|0]=K[f+g|0];g=b|3;H[g+e|0]=K[f+g|0];b=b+4|0;k=k+4|0;if((i|0)!=(k|0))continue;break}}i=c&3;if(!i)break a;while(1){H[b+ +e|0]=K[b+f|0];b=b+1|0;l=l+1|0;if((i|0)!=(l|0))continue;break}}kc[J[J[d>>2]+16>>2]](d,c+e|0,h);d=j<<2;b=d+J[a+32>>2]|0;J[b>>2]=J[b>>2]+h;b=J[a+28>>2];c=b+d|0;f=J[c>>2];if(f){uc(f);J[c>>2]=0;b=J[a+28>>2]}J[b+d>>2]=e;if((m+1|0)!=(h|0)){J[a+4>>2]=8;return}J[a+4>>2]=64;return}J[J[a>>2]+20>>2]=1}function Hjb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=J[a+872>>2];if(!i)return 0;f=J[e+8>>2];a:{b:{if(f){g=J[e>>2];b=J[e+4>>2];break b}f=0;J[e+4>>2]=0;g=L[i+2>>1];if(!g)break a; +l=J[i+8>>2];g=g-1|0;c:{while(1){j=((g-f|0)/2|0)+f|0;h=P(j,6)+l|0;k=K[h|0]<<8|K[h+1|0];d:{if(k>>>0>>0){f=j+1|0;break d}if(b>>>0>=k>>>0)break c;g=j-1|0}if((f|0)<=(g|0))continue;break}return 0}f=0;b=K[h+4|0]|K[h+5|0]<<8;g=(b<<8|b>>>8)&65535;if(!g)break a;b=K[h+3|0];h=K[h+2|0];J[e>>2]=g;b=b|h<<8;if(M[i+20>>2]>>0)break a;f=J[i+12>>2]+(b<<2)|0;J[e+8>>2]=f;b=0}if(b>>>0>=g>>>0)return 0;J[e+8>>2]=f+2;J[c>>2]=K[f+1|0]|K[f|0]<<8;J[e+8>>2]=f+4;b=K[f+3|0]|K[f+2|0]<<8;J[d>>2]=b;if(M[c>>2]>=M[a+16>>2])return 0; +if((b|0)!=65535){f=0;if(b>>>0>=L[a+660>>1])break a}f=1;J[e+4>>2]=J[e+4>>2]+1}return f|0}function zP(a,b,c){var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;g=-1;e=Fs(a,1800688195);a:{if(!e|J[e+4>>2]!=1668641398)break a;a=Dc(152);if(!a)break a;J[a+4>>2]=2642264;J[a+8>>2]=0;J[a+12>>2]=0;Ac(a+16|0,0,136);J[a>>2]=1;f=sj();if(!f)break a;if(qn(f,-1,a))break a;J[a+16>>2]=1;J[a+8>>2]=1;J[a+12>>2]=3;J[a+24>>2]=1;J[a+28>>2]=1;b:{if(!b){J[a+120>>2]=-1353773692;J[a+124>>2]=1072326036;J[a+88>>2]=0;J[a+92>>2]=1072693248;J[a+ +56>>2]=-178670640;J[a+60>>2]=1072618169;J[a+20>>2]=0;if(!zp(a+32|0,e+12|0))break b;break a}J[a+120>>2]=1252199824;J[a+124>>2]=1072915827;J[a+88>>2]=0;J[a+92>>2]=1072693248;J[a+56>>2]=-791998740;J[a+60>>2]=1072732180;J[a+20>>2]=1;J[d+8>>2]=0;J[d+12>>2]=0;b=d+8|0;if(zp(b,e+12|0))break a;if(Ry(a+32|0,b,J[d+12>>2]))break a;b=J[d+8>>2];if(!b)break b;uc(b)}rj(e);wP(a);J[c>>2]=f;g=0}fc=d+16|0;return g}function dNa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=vc(84);c=J[a+4>>2];d=J[J[c>>2]+8>>2];J[699344]= +0;f=_(d|0,c|0)|0;c=J[699344];J[699344]=0;d=1;a:{if((c|0)==1)break a;e=J[a+32>>2];g=J[a+28>>2];h=J[a+24>>2];i=J[a+16>>2];j=J[a+12>>2];c=J[a+20>>2];a=J[a+8>>2];J[b>>2]=2343748;J[b+8>>2]=a;J[b+20>>2]=c;J[b+12>>2]=j;J[b+16>>2]=i;J[b+4>>2]=f;b:{if((c|0)>0){d=2147483644;if(c>>>0<2147483645)break b}J[b+20>>2]=d;c=d}J[b+32>>2]=e;J[b+28>>2]=g;J[b+24>>2]=h;J[b+36>>2]=e?255:0;J[699344]=0;d=aa(3551,c+1|0,4)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b+60>>2]=d;J[699344]=0;e=aa(3551,c+3|0,4)|0;f=J[699344]; +J[699344]=0;if((f|0)==1)break a;J[b+48>>2]=0;J[b+40>>2]=0;J[b+64>>2]=e;J[b+56>>2]=0;J[b+44>>2]=a>>>31;J[d>>2]=c;J[b+80>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+68>>2]=c;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function _ub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(J[a+588>>2]>0){b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];while(1){d=K[e+3|0];a:{if(!d)break a;c=K[b+3|0];if((c|0)==255)break a;b:{if((d|0)==255){g=255;d=c^255; +f=(P(c,K[b|0])+P(d,K[e|0])|0)+128|0;H[b|0]=(f>>>8&255)+f>>>8;f=(P(c,K[b+1|0])+P(d,K[e+1|0])|0)+128|0;H[b+1|0]=(f>>>8&255)+f>>>8;c=(P(c,K[b+2|0])+P(d,K[e+2|0])|0)+128|0;H[b+2|0]=(c>>>8&255)+c>>>8;break b}f=K[e|0];k=K[e+1|0];h=c^255;g=P(h,d^255)>>>8^-1;i=g&255;c=(c<<8>>>0)/(i>>>0)|0;d=(P(d,h)>>>0)/(i>>>0)|0;H[b+2|0]=(P(c,K[b+2|0])+P(d,K[e+2|0])|0)+127>>>8;H[b+1|0]=(P(c,K[b+1|0])+P(d,k)|0)+127>>>8;H[b|0]=(P(c,K[b|0])+P(d,f)|0)+127>>>8}H[b+3|0]=g}e=e+4|0;b=b+4|0;j=j+1|0;if((j|0)>2])continue; +break}}return 0}function HO(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=fc-16|0;fc=g;e=J[a+408>>2];J[d>>2]=0;if(e)while(1){f=J[e+20>>2]+f|0;e=J[e>>2];if(e)continue;break}a:{b:{if(c>>>0<=f>>>0){if(!c){e=0;break a}while(1){e=J[a+408>>2];f=J[e+16>>2];h=J[e+20>>2];if(h>>>0>c>>>0)break b;f=xc(b,f,h);h=J[e+20>>2];J[d>>2]=h+J[d>>2];e=J[e+20>>2];b=J[a+408>>2];i=J[b>>2];J[a+408>>2]=i;if(!i)J[a+412>>2]=0;c=c-e|0;c:{d:{if(!K[b+12|0])break d;e=J[a+160>>2];if(!e)break d;kc[e|0](a,J[b+4>>2],J[b+8>>2]);break c}e=J[b+4>> +2];if(!e)break c;kc[J[a+156>>2]](e,J[b+8>>2])}kc[J[a+156>>2]](b,24);b=f+h|0;if(c)continue;break}e=0;break a}e=0;J[g+12>>2]=0;if(!(kc[J[a+172>>2]](a,b,c,g+12|0)|0)){e=901;Jc(a,901,0,0);break a}J[d>>2]=J[d>>2]+J[g+12>>2];break a}xc(b,f,c);J[e+20>>2]=J[e+20>>2]-c;J[e+16>>2]=J[e+16>>2]+c;J[d>>2]=J[d>>2]+c;e=0}fc=g+16|0;return e}function S6a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];e=(J[a+4>>2]-c|0)/12|0;d=e+1|0;if(d>>>0<357913942){c=(J[a+8>>2]-c|0)/12|0;g=c<<1;d=c>>>0>=178956970?357913941: +d>>>0>>0?g:d;if(d){if(d>>>0>=357913942)break c;f=vc(P(d,12))}c=P(e,12)+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;d=P(d,12)+f|0;f=c+12|0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-12|0;g=J[b+4>>2];c=c-12|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){a=b-12|0;if(H[b-1|0]< +0)uc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}pD(a);B()}Pd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)uc(b)}function MXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[a>>2];e=(J[a+4>>2]-c|0)/12|0;d=e+1|0;if(d>>>0<357913942){c=(J[a+8>>2]-c|0)/12|0;g=c<<1;d=c>>>0>=178956970?357913941:d>>>0>>0?g:d;if(d){if(d>>>0>=357913942)break c;f=vc(P(d,12))}c=P(e,12)+f|0;e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;d=P(d,12)+f|0;f=c+12| +0;b=J[a+4>>2];e=J[a>>2];if((b|0)==(e|0))break b;while(1){b=b-12|0;g=J[b+4>>2];c=c-12|0;J[c>>2]=J[b>>2];J[c+4>>2]=g;J[c+8>>2]=J[b+8>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((b|0)!=(e|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=f;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}b=d;break a}eh(a);B()}Pd();B()}J[a+8>>2]=d;J[a+4>>2]=f;J[a>>2]=c}if(b)uc(b)}function t_(a,b,c){var d=0,e=0,f=0;d=fc+-64|0;fc=d;J[d+48>>2]=13;J[d+ +32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;e=d+48|0;Ec(J[b+8>>2],777533,e,c);if(J[d+48>>2]==5){yc(e);Ec(J[b+8>>2],779263,e,c)}e=d+16|0;Ec(J[b+8>>2],779809,e,c);if(J[d+16>>2]==5){yc(e);Ec(J[b+8>>2],781717,e,c)}e=a;a:{b:switch(J[d+48>>2]-4|0){case 2:f=J[d+56>>2];if(J[f+12>>2]<=0)break a;b=0;while(1){Sc(f,b,d+32|0,c);c:{if(J[d+16>>2]==6){Sc(J[d+24>>2],b,d,c);break c}J[d>>2]=5}d:{if(J[d+32>>2]==4){e=s_(a,J[d+40>>2],e,d,c);break d}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,782425,0);f=vc(8);J[f>>2]=2344572;J[f+4>>2]=e;e= +f}yc(d+32|0);yc(d);b=b+1|0;f=J[d+56>>2];if((b|0)>2])continue;break}break a;default:Cc(1,kc[J[J[e>>2]+52>>2]](e)|0,783237,0);break a;case 1:break a;case 0:break b}e=s_(e,J[d+56>>2],e,d+16|0,c)}yc(d+48|0);yc(d+16|0);fc=d- -64|0;return e}function UN(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=fc-32|0;fc=c;d=!a;a:{if(d|((d?-1:J[a+8>>2])|0)!=1)break a;b:switch(b-4|0){case 0:case 4:break b;default:break a}py(a,c+16|0);if(J[c+16>>2]){e=Kq(1);break a}d=Ff(0,a);J[c+4>>2]=d;if(!d)break a;f=uE(a?J[a+4>>2]: +-1);J[c>>2]=f;if(!f)break a;a=uE(0);if(!a)break a;J[f+12>>2]=a;a=Kq(0);if(!a)break a;Df(d,c+28|0,c+24|0,c+20|0);c:{if(J[c+20>>2]!=1)break c;i=b-4|0;b=0;while(1){e=d?J[d+12>>2]:-1;if(!k9(d?J[d+40>>2]:0,J[c+28>>2],J[c+24>>2],e,b,h,c+12|0,c+8|0))break c;h=J[c+8>>2];b=J[c+12>>2];e=0;if(((d?J[d+8>>2]:-1)|0)!=1)break a;d:{e:switch(i|0){case 0:g=j9(d,f,b,h);if(g)break d;break a;case 4:break e;default:break a}g=i9(d,f,b,h);if(!g)break a}xE(a,g);Df(d,c+28|0,c+24|0,c+20|0);if(J[c+20>>2]==1)continue;break}}QN(c, +1);Fd(c+4|0);e=a}fc=c+32|0;return e}function zS(a,b){var c=0,d=0,e=0,f=0,g=0;c=fc-32|0;fc=c;J[c+28>>2]=a;f=1;a:{b:switch(b-a>>2){case 2:b=b-4|0;J[c+24>>2]=b;if(J[b>>2]>=J[a>>2])break a;a=J[c+28>>2];b=J[a>>2];d=a;a=J[c+24>>2];J[d>>2]=J[a>>2];J[a>>2]=b;break a;case 3:xz(a,a+4|0,b-4|0);break a;case 4:CS(a,a+4|0,a+8|0,b-4|0);break a;case 5:BS(a,a+4|0,a+8|0,a+12|0,b-4|0);break a;case 0:case 1:break a;default:break b}e=a+8|0;xz(a,a+4|0,e);d=a+12|0;while(1){J[c+20>>2]=d;if((b|0)==(d|0))break a;c:{if(J[d>> +2]>=J[e>>2])break c;J[c+16>>2]=J[J[c+20>>2]>>2];J[c+12>>2]=e;d=J[c+20>>2];while(1){d:{J[d>>2]=J[J[c+12>>2]>>2];d=J[c+12>>2];if((d|0)==(a|0)){d=a;break d}e=d-4|0;J[c+12>>2]=e;if(J[c+16>>2]>2])continue}break}J[d>>2]=J[c+16>>2];g=g+1|0;if((g|0)!=8)break c;f=(J[c+20>>2]+4|0)==(b|0);break a}e=J[c+20>>2];d=e+4|0;continue}}fc=c+32|0;return f}function Yta(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;f=fc-32|0;fc=f;a:{b:{c:{if(J[a+56>>2]){a=Qc(f+8|0,2389990,2386227,1653,2427576,0);J[699344]= +0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;Kc(a);break c}AH(b,2390459,1);d:{e:{if((c|0)<=0)break e;while(1){AH(b,2391056,0);J[f+4>>2]=0;e=f+4|0;vd(e,b);g=J[J[a>>2]+32>>2];J[699344]=0;g=ga(g|0,a|0,e|0,P(h,12)+d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[f+4>>2];J[f+4>>2]=0;f:{if(!e)break f;J[699344]=0;i=J[e+4>>2]-1|0;J[e+4>>2]=i;j=J[699344];J[699344]=0;if((j|0)==1)break a;if(i)break f;J[699344]=0;$(5147,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break a}rA(b);if(!g)break e; +h=h+1|0;if((h|0)<(c|0))continue;break}}rA(b);kc[J[J[a>>2]+48>>2]](a);fc=f+32|0;return}b=Z()|0;zc(f+4|0)}ba(b|0)}B()}ea(0)|0;Bc();B()}function Jka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>0){f=J[a+12>>2];while(1){g=c;d=+N[b>>2];e=32767;a:{if(d>=1.8371976E19)break a;e=65535;if(d<=-1.8371976E19)break a;c=J[a+4>>2];if(d>5.4136769E-20){d=ct(d)*1.4426950408889634+64;if(c){e=vEb(J[698644],J[698645],1284865837,1481765933);c=jc;e=e+1|0;c=e?c:c+1|0;J[698644]=e;J[698645]=c;d=d*256+ +(c>>>1|0)*4.656612875245797E-10+ +-.5}else d=d*256;if(R(d)<2147483648){e=~~d;break a}e=-2147483648;break a}e=0;if(!(d<-5.4136769E-20))break a;d=ct(-d)*1.4426950408889634+64;if(c){e=vEb(J[698644],J[698645],1284865837,1481765933);c=jc;e=e+1|0;c=e?c:c+1|0;J[698644]=e;J[698645]=c;d=d*256+ +(c>>>1|0)*4.656612875245797E-10+-.5}else d=d*256;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}e=c|-32768}b=b+4|0;c=g-1|0;I[f>>1]=e;f=f+2|0;if(g>>>0>1)continue;break}}}function U1(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=(a|0)!=(b|0);a:{if(!a|(a|0)==(b| +0))break a;b:{if(c)while(1){f=-1;c:{d:switch(J[a+4>>2]-1|0){case 4:case 5:case 16:break b;case 0:break d;default:break c}e=J[a+48>>2];if(!e)break c;while(1){e:{d=J[e+12>>2];if(!d)break e;f=0;g=c;if((c|0)==(d|0))break b;while(1){h=K[d|0];if((h|0)!=K[g|0])break e;g=g+1|0;d=d+1|0;if(h)continue;break}break b}e=J[e>>2];if(e)continue;break}}a=J[a+20>>2];d=(b|0)!=(a|0);if(!a)break a;if((a|0)!=(b|0))continue;break a}while(1){f=-1;f:{g:switch(J[a+4>>2]-1|0){case 0:break g;case 4:case 5:case 16:break b;default:break f}d= +J[a+48>>2];if(!d)break f;while(1){if(J[d+12>>2]){d=J[d>>2];if(d)continue;break f}break}f=0;break b}a=J[a+20>>2];d=(b|0)!=(a|0);if(!a)break a;if((a|0)!=(b|0))continue;break}break a}return f}return d?-1:1}function Mwb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=fc-976|0;fc=f;a:{if(!b|!J[a+964>>2])break a;c=LP(f,J[a+16>>2],J[a+20>>2],8,0);J[699344]=0;h=J[c+4>>2]!=0;d=J[699344];J[699344]=0;b:{c:{if((d|0)==1)break c;if(!h){J[699344]=0;b=J[699344];J[699344]=0;if((b|0)==1)break c;of(a+72|0,c+72|0); +break b}if(J[a+20>>2]>0){e=J[c+56>>2];g=J[a+16>>2];d=J[a+964>>2];while(1){e=xc(e,d,g);g=J[a+16>>2];d=g+d|0;e=J[c+52>>2]+e|0;i=i+1|0;if((i|0)>2])continue;break}}J[699344]=0;Pq(c);a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;ga(108,b|0,c|0,1)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}}a=Z()|0;Jj(c);ba(a|0);B()}J[c>>2]=1032;J[699344]=0;_(13,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699344]=0;_(14,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}fc=f+976|0;return h| +0}function S_(a){a=a|0;var b=0;J[a>>2]=2317544;J[699344]=0;$(3619,a|0);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+76>>2];if(b)uc(W_(b));b=J[a+80>>2];if(b)uc(ld(b));b=J[a+84>>2];if(b)uc(ld(b));b=J[a+88>>2];if(b)uc(ld(b));b=J[a+92>>2];if(b)uc(ld(b));b=J[a+96>>2];if(b)uc(ld(b));b=J[a+100>>2];if(b)uc(ld(b));b=J[a+104>>2];if(b)uc(ld(b));b=J[a+108>>2];if(b)uc(ld(b));b=J[a+112>>2];if(b)uc(ld(b));b=J[a+116>>2];if(b)uc(ld(b)); +b=J[a+120>>2];if(b)uc(ld(b));b=J[a+124>>2];if(b)uc(ld(b));b=J[a+128>>2];if(b)uc(ld(b));b=J[a+132>>2];if(b)uc(ld(b));b=J[a+136>>2];if(b)uc(ld(b));b=J[a+140>>2];if(b)uc(ld(b));b=J[a+144>>2];if(b)uc(b);b=J[a+148>>2];if(b)uc(b);b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function qcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=255-e|0; +h=K[a+3|0];o=P(h,c);l=K[a|0];m=K[a+1|0];n=P(m,e);i=h^255;g=P(e,h);j=K[a+2|0];k=P(j,e);a:{if((g|0)<=(k+P(b,h)|0)){b=((P(b,i)+g|0)+P(f,j)|0)+255>>>8|0;break a}b=((k>>>0)/(255-((b<<8>>>0)/(e>>>0)|0)>>>0)|0)+((P(f,j)+P(b,i)|0)+255>>>8|0)|0}k=P(d,h);j=P(e,l);H[a+2|0]=b;if((n+o|0)>=(g|0))b=((P(c,i)+g|0)+P(f,m)|0)+255>>>8|0;else b=((n>>>0)/(255-((c<<8>>>0)/(e>>>0)|0)>>>0)|0)+((P(c,i)+P(f,m)|0)+255>>>8|0)|0;H[a+1|0]=b;b:{if((j+k|0)>=(g|0)){c=g+255|0;b=(c+P(d,i)|0)+P(f,l)>>>8|0;break b}c=g+255|0;b=((j>>>0)/ +(255-((d<<8>>>0)/(e>>>0)|0)>>>0)|0)+((P(d,i)+P(f,l)|0)+255>>>8|0)|0}H[a|0]=b;H[a+3|0]=e+h-(c>>>8)}}function fQa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)a:{J[a+48>>2]=c;b=vc(16);J[699344]=0;c=_(3352,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+52>>2]=c;if(J[a+8>>2]==8){b=J[a+16>>2];J[a+56>>2]=b;kc[J[J[b>>2]+20>>2]](b);b=J[a+56>>2];c=J[a+76>>2];J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=b;J[J[a+144>>2]>>2]=b;J[J[a+148>>2]>>2]=b;Q_(a); +b=J[a+56>>2];kc[J[J[b>>2]+24>>2]](b);e=a,f=AEb(J[a+48>>2],J[a+52>>2],32),J[e+48>>2]=f;J[a+52>>2]=jc}b=J[a+4>>2];J[a+56>>2]=b;kc[J[J[b>>2]+20>>2]](b);b=J[a+56>>2];c=J[a+76>>2];J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=b;J[J[a+144>>2]>>2]=b;J[J[a+148>>2]>>2]=b;Q_(a);b=J[a+40>>2];b:{if(!b){c=0;b=0;break b}c=J[b+20>>2];b=c+P(J[b+16>>2],J[b+12>>2])|0}J[a+60>>2]=c;J[a+64>>2]=b;return}a=Z()|0;uc(b);ba(a|0);B()}function Ov(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=fc-32|0;fc=c;if(!J[a+2772>>2]){b=J[a+4>>2];b=kc[J[J[b>> +2]+52>>2]](b)|0;J[a+2772>>2]=b;J[c+24>>2]=8;kc[J[J[b>>2]+72>>2]](b,c+24|0)}O[c+24>>3]=O[a+496>>3]*O[a+2720>>3]/25.4;e=a+576|0;f=a+440|0;a:{if(Ou(e,f)){if(!(O[a+2704>>3]>1))break a;a=J[a+2772>>2];kc[J[J[a>>2]+32>>2]](a,c+24|0);break a}b=J[a+2772>>2];kc[J[J[b>>2]+40>>2]](b,a+492|0);if(O[a+2704>>3]>1){b=J[a+2772>>2];kc[J[J[b>>2]+32>>2]](b,c+24|0)}b=a+2720|0;d=K[a+455|0];b:{if(!(d<<24>>24<0?J[a+448>>2]:d)){d=J[a+2772>>2];O[c+16>>3]=Q(O[a+472>>3]);g=J[a+480>>2]!=0;J[c+12>>2]=K[a+488|0]<<2|(J[a+484>>2]? +g|2:g)|K[a+489|0]<<7;kc[J[J[d>>2]+144>>2]](d,a+456|0,c+16|0,c+12|0,b,a+2728|0)|0;break b}d=J[a+2772>>2];O[c+16>>3]=Q(O[a+472>>3]);kc[J[J[d>>2]+148>>2]](d,a+444|0,a+504|0,c+16|0,b,a+2728|0)|0}$l(e,f)}fc=c+32|0}function M6(a,b,c,d,e,f,g){var h=0,i=0,j=0;j=e-c|0;a:{if((e|0)<(f|0)|(j|0)<=0|(c|0)>(g|0))break a;h=d-b|0;b:{if((c|0)<(f|0)){b=Od(h,f-c|0,j)+b|0;i=J[a>>2];f=f>>i;c=0;break b}i=J[a>>2];f=c>>i;c=J[a+4>>2]-1&c}d=1;if((e|0)<=(g|0)){g=e;d=!(J[a+4>>2]-1&e)}e=g>>i;c:{if((c|0)>0){if((e|0)==(f|0))break a; +f=f+1|0;b=Od(h,J[a+4>>2]-c|0,j)+b|0;break c}if(!K[a+79|0])break c;J[a+36>>2]=J[a+36>>2]-4}H[a+79|0]=d;if(K[a+78|0]){J[J[a+80>>2]+20>>2]=f;H[a+78|0]=0}g=e-f|0;c=g+1|0;if(M[a+32>>2]<=J[a+36>>2]+(c<<2)>>>0){J[a+40>>2]=98;return 1}d=1;e=J[a+4>>2];d:{if((h|0)>0){f=DN(e,h,j);break d}d=-1;h=0-h|0;f=0-DN(e,h,j)|0}h=(P(J[a+4>>2],h)|0)%(j|0)|0;e=J[a+36>>2];if((g|0)>=0){g=0-j|0;while(1){J[e>>2]=b;g=g+h|0;i=(g|0)>=0;g=g-(i?j:0)|0;b=(b+f|0)+(i?d:0)|0;e=e+4|0;i=c>>>0>1;c=c-1|0;if(i)continue;break}}J[a+36>>2]=e}return 0} +function KK(a,b){var c=0,d=0,e=0,f=0;c=J[a+20>>2];if(c)e=J[c+296>>2];a:{if(!J[693393])break a;c=J[693391];if(!c)break a;kc[c|0](b)}d=J[b+20>>2];b:{if(!d)break b;c=J[d+32>>2];if(!c|!(J[c+44>>2]|J[c+48>>2]))break b;if(!pC(c,d,b))break b;c=J[J[b+20>>2]+32>>2];if(!c)break b;f=J[c+64>>2];if(!f)break b;d=mx(c,J[b+12>>2]);if(!d)break b;c=Bf(f,d,0,0);kc[J[663199]](d);if(!c|J[c+8>>2]!=(b|0))break b;d=J[b+8>>2];J[c+8>>2]=0;J[c+12>>2]=d}c=J[b+12>>2];if(c)qC(a,c);d=J[b+8>>2];c:{if(!d)break c;if(e)while(1){c= +J[e+16>>2];if(c)while(1){if(d>>>0<=M[c+4>>2]&d>>>0>=c+20>>>0)break c;c=J[c>>2];if(c)continue;break}e=J[e+20>>2];if(e)continue;break}kc[J[663199]](d)}d:{a=J[a+20>>2];if(!a)break d;e=J[a+376>>2];if((e|0)>99)break d;J[b+24>>2]=J[a+380>>2];J[a+376>>2]=e+1;J[a+380>>2]=b;return}kc[J[663199]](b)}function txb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a+2308>>2];a:{if(!d)break a;c=J[a+2312>>2];b=J[a+2316>>2];a=J[a+2300>>2];if(K[a+56|0]){if((d|0)!=1){f=d&-2;while(1){e=L[c>>1];if((e|0)!=L[a+836>>1])I[b+2>>1]= +65535;I[b>>1]=e;e=L[c+2>>1];if((e|0)!=L[a+836>>1])I[b+6>>1]=65535;I[b+4>>1]=e;b=b+8|0;c=c+4|0;g=g+2|0;if((f|0)!=(g|0))continue;break}}if(!(d&1))break a;d=L[a+836>>1];a=L[c>>1];if((d|0)!=(a|0))I[b+2>>1]=65535;I[b>>1]=a;return 0}if(d>>>0>=4){f=d&-4;a=0;while(1){I[b>>1]=L[c>>1];I[b+2>>1]=65535;I[b+4>>1]=L[c+2>>1];I[b+6>>1]=65535;I[b+8>>1]=L[c+4>>1];I[b+10>>1]=65535;I[b+12>>1]=L[c+6>>1];I[b+14>>1]=65535;b=b+16|0;c=c+8|0;a=a+4|0;if((f|0)!=(a|0))continue;break}}d=d&3;if(!d)break a;a=0;while(1){I[b>>1]= +L[c>>1];I[b+2>>1]=65535;b=b+4|0;c=c+2|0;a=a+1|0;if((d|0)!=(a|0))continue;break}}return 0}function pXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;J[c>>2]=13;a:{if(J[Ec(J[b+8>>2],852382,c,0)>>2]!=6)break a;b=J[c+8>>2];if(J[b+12>>2]!=4)break a;J[c+16>>2]=13;if(J[Sc(b,0,c+16|0,0)>>2]-3>>>0>=4294967294)d=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];b=c+16|0;yc(b);O[a+8>>3]=d;J[c+16>>2]=13;if(J[Sc(J[c+8>>2],1,b,0)>>2]-3>>>0>=4294967294)e=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];b=c+16|0;yc(b);O[a+16>>3]=e; +J[c+16>>2]=13;e=0;d=0;if(J[Sc(J[c+8>>2],2,b,0)>>2]-3>>>0>=4294967294)d=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];b=c+16|0;yc(b);O[a+24>>3]=d;J[c+16>>2]=13;if(J[Sc(J[c+8>>2],3,b,0)>>2]-3>>>0>=4294967294)e=J[c+16>>2]==1?+J[c+24>>2]:O[c+24>>3];yc(c+16|0);O[a+32>>3]=e;d=O[a+24>>3];f=O[a+8>>3];if(d>3]=f;O[a+8>>3]=d}d=O[a+16>>3];if(!(d>e))break a;O[a+32>>3]=d;O[a+16>>3]=e}yc(c);fc=c+32|0}function pOa(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;J[a>>2]=2344472;J[a+4>>2]=b;a:{b:{if((c| +0)!=1){b=vc(44);J[b+40>>2]=0;J[b+32>>2]=0;J[b+16>>2]=f;J[b+12>>2]=e;J[b+8>>2]=d;J[b+4>>2]=c;J[b>>2]=a;c=P(d,e);J[b+20>>2]=c;g=P(e,f)+7>>3;J[b+24>>2]=g;g=g+(P(c,f)+7>>3)|0;J[b+28>>2]=g;c:{d:{if((d|0)<=0|(e|0)<=0|(f-17>>>0<4294967280|e>>>0>32))break d;if(2147483647/(e>>>0)>>>0<=d>>>0|(c|0)>=(2147483640/(f>>>0)|0))break d;J[699344]=0;c=_(3616,g|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;J[b+32>>2]=c;Ac(c,0,J[b+28>>2]);J[b+40>>2]=1;J[b+36>>2]=J[b+28>>2];J[a+8>>2]=b;break b}J[a+8>>2]=b;J[699344]= +0;Mc(0);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(b);J[a+8>>2]=0;break b}a=Z()|0;uc(b);ba(a|0);B()}J[a+8>>2]=0}J[a+34076>>2]=0;J[a+34068>>2]=0;Ac(a+12|0,0,32768);return a|0}ea(0)|0;Bc();B()}function Gfb(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;j=a+208|0;J[a+212>>2]=J[j>>2];a:{b:{if((d|0)>0)while(1){e=J[a+212>>2];h=(e|0)==J[a+216>>2];l=J[(k<<2)+b>>2];n=O[(k<<3)+c>>3]*65536;c:{if(R(n)<2147483648){i=~~n;break c}i=-2147483648}d:{if(!h){J[e>>2]=l;J[e+4>>2]= +i;J[a+212>>2]=e+8;break d}m=J[j>>2];h=e-m|0;g=h>>3;f=g+1|0;if(f>>>0>=536870912)break b;o=g<<3;g=h>>2;g=h>>>0>=2147483640?536870911:f>>>0>>0?g:f;if(g){if(g>>>0>=536870912)break a;h=vc(g<<3)}else h=0;f=o+h|0;J[f>>2]=l;J[f+4>>2]=i;i=f+8|0;if((e|0)!=(m|0)){while(1){e=e-8|0;l=J[e+4>>2];f=f-8|0;J[f>>2]=J[e>>2];J[f+4>>2]=l;if((e|0)!=(m|0))continue;break}e=J[j>>2]}J[a+216>>2]=h+(g<<3);J[a+212>>2]=i;J[a+208>>2]=f;if(!e)break d;uc(e)}k=k+1|0;if((k|0)!=(d|0))continue;break}return 0}nj(j);B()}Pd();B()}function q7(a, +b){var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;c=J[a>>2];J[e+12>>2]=c;d=0;a:{if(b>>>0<=c>>>0)break a;while(1){d=0;b:{c:{d:{e:{f:{g:{g=K[c|0];switch(g-37|0){case 1:case 2:case 4:case 5:case 6:case 7: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 20:case 21:case 22:break b;case 0:break d;case 23:break e;case 3:break f;default:break g}}h:switch(g-123|0){case 0:f=f+1|0;break c;case 2:break h;default:break b}f=f-1|0;if(f)break b;c=c+1|0;d=0;break a}d=eN(e+ +12|0,b);break b}d=o7(e+12|0,b);break b}d=37;i:{while(1){j:switch((d&255)-10|0){case 0:case 3:break i;default:break j}c=c+1|0;if((c|0)!=(b|0)){d=K[c|0];continue}break}c=b}J[e+12>>2]=c}d=0}c=J[e+12>>2]+1|0;J[e+12>>2]=c;if(!d&b>>>0>c>>>0)continue;break}d=f?3:d}J[a>>2]=c;fc=e+16|0;return d}function U7a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{c:{c=J[a>>2];e=(J[a+4>>2]-c|0)/12|0;d=e+1|0;if(d>>>0<357913942){c=(J[a+8>>2]-c|0)/12|0;f=c<<1;d=c>>>0>=178956970?357913941:d>>>0>>0?f:d;if(d>>>0>=357913942)break c; +c=P(e,12);d=P(d,12);e=vc(d);c=c+e|0;J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2];J[c+8>>2]=J[b+8>>2];J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;d=d+e|0;e=c+12|0;b=J[a+4>>2];f=J[a>>2];if((b|0)==(f|0))break b;while(1){c=c-12|0;b=b-12|0;J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2];J[c+8>>2]=J[b+8>>2];J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;if((b|0)!=(f|0))continue;break}J[a+8>>2]=d;b=J[a+4>>2];J[a+4>>2]=e;d=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){a=b-12|0;c=J[a>>2];if(c){J[b-8>>2]=c;uc(c)}b=a;if((d|0)!=(b|0))continue;break}b= +d;break a}Fg(a);B()}Pd();B()}J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=c}if(b)uc(b)}function $ca(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;h=fc-48|0;fc=h;k=1;f=J[a+608>>2];d=J[a+604>>2];a:{if((c|0)>0)while(1){g=f;b:{c:{d:{e:{while(1){i=d;l=g;if((g|0)<=0)break d;g=g-1|0;d=d+1|0;e=K[i|0];j=e<<24>>24;if((j|0)>=0)break e;if((j|0)==-128)continue;break}e=1-j|0;if((e|0)<=(c|0)){f=l-2|0;g=i+2|0;break c}g=J[a>>2];f=J[a+628>>2];J[h>>2]=e-c;le(f,g,69269,h);f=l-2|0;g=i+2|0;e=c;if((e|0)>0)break c; +break b}if((c|0)<=(e|0)){f=J[a>>2];i=J[a+628>>2];J[h+16>>2]=(e-c|0)+1;le(i,f,69269,h+16|0);e=c-1|0}e=e+1|0;Ue(b,d,e);f=g-e|0;b=b+e|0;g=d+e|0;break b}J[a+604>>2]=i;J[a+608>>2]=f>>31&f;b=J[a+628>>2];c=J[a>>2];J[h+32>>2]=J[a+472>>2];Uc(b,c,70259,h+32|0);k=0;break a}b=Ac(b,K[d|0],e)+e|0}d=g;c=c-e|0;if((c|0)>0)continue;break}J[a+608>>2]=f;J[a+604>>2]=d}fc=h+48|0;return k|0}function YBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;pX(e+12|0,b);b=0;a:{b:{c:{d:{f=J[c>>2];if(f){J[699344]=0; +J[f+4>>2]=J[f+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break d;b=J[c>>2]}J[699344]=0;J[e+8>>2]=b;ia(5385,a|0,e+12|0,e+8|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;J[e+8>>2]=0;e:{if(!b)break e;J[699344]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(a)break e;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[e+12>>2];J[e+12>>2]=0;f:{if(!a)break f;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break f; +J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=e+16|0;return}b=Z()|0;break b}b=Z()|0;zc(e+8|0)}zc(e+12|0);ba(b|0);B()}ea(0)|0;Bc();B()}function Iya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc-48|0;fc=d;c=J[b>>2];e=a+8|0;aw(e);f=e;e=Bt(c);f=qt(f,e);g=kc[J[J[c>>2]+8>>2]](c,f,e)|0;H[g+f|0]=0;a:{if((e|0)>(g|0)){a=Qc(d+24|0,2387804,2385316,364,2418838,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}if((kc[J[J[c>>2]+8>>2]](c,d+23| +0,1)|0)==1){c=K[d+23|0];if((c|0)!=1){b=$v(d+4|0,c);J[699344]=0;ca(5218,d+12|0,2388799,b|0);a=J[699344];J[699344]=0;b:{c:{d:{if((a|0)!=1){a=J[d+12>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;c=ja(5178,d+24|0,a|0,2385316,370,2418838,0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break d;J[699344]=0;$(5179,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0;Kc(c);break c}a=Z()|0;break b}a=Z()|0}wc(d+12|0)}wc(b);ba(a|0);B()}XV(a+16|0,b,e,0,0)}fc=d+48|0;return}B()}function ixa(a,b){a=a|0;b=b|0;var c=0,d= +0,e=0,f=0;d=fc-32|0;fc=d;if(!K[a+88|0]){e=a,f=kc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=kc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=kc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=c}a:{b:{if(J[a+92>>2]>0){c=0;while(1){if(!(J[a+116>>2]<=(c|0)&J[a+120>>2]>=(c|0))){a=Qc(d+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(!(J[a+140>>2]<=(c|0)&J[a+144>>2]>=(c|0))){a=Qc(d+8|0,2404388,2405416,619, +2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}HH(b,J[a+104>>2]+(c-J[a+108>>2]<<2)|0,J[a+128>>2]+(c-J[a+132>>2]<<2)|0);c=c+1|0;if((c|0)>2])continue;break}}H[a+88|0]=0;fc=d+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function hxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-32|0;fc=d;if(!K[a+88|0]){e=a,f=kc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=kc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=kc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;c=kc[J[J[a>>2]+48>>2]](a)| +0;H[a+88|0]=1;J[a+84>>2]=c}a:{b:{if(J[a+92>>2]>0){c=0;while(1){if(!(J[a+116>>2]<=(c|0)&J[a+120>>2]>=(c|0))){a=Qc(d+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(!(J[a+140>>2]<=(c|0)&J[a+144>>2]>=(c|0))){a=Qc(d+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}GH(b,J[a+104>>2]+(c-J[a+108>>2]<<2)|0,J[a+128>>2]+(c-J[a+132>>2]<<2)|0);c=c+1|0;if((c|0)>2])continue;break}}H[a+ +88|0]=0;fc=d+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Dx(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a>>2];a:{if(d>>>0<2)break a;e=J[a+12>>2];c=d-2|0;f=J[e+(c>>>4&268435452)>>2]+P(c&63,24)|0;c=d-1|0;e=J[e+(c>>>4&268435452)>>2]+P(c&63,24)|0;g=O[e>>3]-O[f>>3];j=g*g;g=O[e+8>>3]-O[f+8>>3];g=Y(j+g*g);e=g>1E-14;O[f+16>>3]=e?g:1E14;if(e)break a;J[a>>2]=c;d=c}h=J[a+4>>2];f=d>>>6|0;if(h>>>0<=f>>>0){c=J[a+8>>2];b:{if(c>>>0>f>>>0){i=J[a+12>>2];break b}e=c+J[a+16>>2]|0;i=vc(e>>>0>1073741823? +-1:e<<2);c=J[a+12>>2];if(c){xc(i,c,h<<2);uc(c);e=J[a+8>>2]+J[a+16>>2]|0;h=J[a+4>>2];d=J[a>>2]}J[a+8>>2]=e;J[a+12>>2]=i}k=(f<<2)+i|0,l=vc(1536),J[k>>2]=l;J[a+4>>2]=h+1}c=J[b+4>>2];d=J[J[a+12>>2]+(f<<2)>>2]+P(d&63,24)|0;J[d>>2]=J[b>>2];J[d+4>>2]=c;c=J[b+20>>2];J[d+16>>2]=J[b+16>>2];J[d+20>>2]=c;c=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=c;J[a>>2]=J[a>>2]+1}function A_(a){var b=0,c=0;a:{b=J[a+12>>2];if(b){J[699344]=0;$(3370,b+176|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;$(3370,b+192| +0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;$(3370,b+208|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;$(3370,b+224|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;$(3370,b+240|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;$(3370,b+256|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;$(3370,b+280|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(b)}J[699344]=0;$(3370,a+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370, +a+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+48|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a}ea(0)|0;Bc();B()}function jO(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=J[J[e>>2]+12>>2];i=J[c>>2];k=J[J[f+(i<<2)>>2]>>2];e=J[b>>2];j=J[J[(e<<2)+f>>2]>>2];g=J[a>>2];l=J[(g<<2)+f>>2];a:{if(j>>>0>=M[l>>2]){if(k>>>0>=j>>>0){e=i;break a}J[b>>2]=i;J[c>>2]=e;h=1;g=J[b>>2];i=J[a>>2];if(M[J[(g<<2)+f>>2]>>2]>=M[J[(i<<2)+f>>2]>>2])break a;J[a>>2]=g;J[b>>2]=i;e=J[c>>2];h=2;break a}b:{if(k>>> +0>>0){J[a>>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=e;J[b>>2]=g;h=2;e=J[c>>2];if(M[J[(e<<2)+f>>2]>>2]>=M[l>>2]){h=1;break a}J[b>>2]=e;J[c>>2]=g}e=g}g=J[d>>2];if(M[J[(g<<2)+f>>2]>>2]>2]>>2]){J[c>>2]=g;J[d>>2]=e;d=J[c>>2];e=J[b>>2];if(M[J[(d<<2)+f>>2]>>2]>=M[J[(e<<2)+f>>2]>>2])return h+1|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(M[J[(c<<2)+f>>2]>>2]>=M[J[(d<<2)+f>>2]>>2])return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function fta(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=J[b>> +2];if(d){J[d+4>>2]=J[d+4>>2]+1;e=J[b>>2]}J[699344]=0;J[c+8>>2]=e;b=c+12|0;ia(5214,b|0,c+8|0,0,1);d=J[699344];J[699344]=0;a:{b:{c:{if((d|0)!=1){J[699344]=0;aa(5153,a+3312|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;a=J[c+12>>2];J[c+12>>2]=0;d:{if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[c+8>>2];J[c+8>>2]=0;e:{if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+ +4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=c+16|0;return}b=Z()|0;break b}b=Z()|0;zc(c+12|0)}zc(c+8|0);ba(b|0);B()}ea(0)|0;Bc();B()}function Z7a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{e=J[a+4>>2];d=J[a>>2];f=e-d>>3;c=f+1|0;if(c>>>0<536870912){g=J[a+8>>2]-d|0;h=g>>2;c=g>>>0>=2147483640?536870911:c>>>0>>0?h:c;if(c>>>0>=536870912)break c;h=f<<3;f=c<<3;g=vc(f);c=h+g|0;J[c>>2]=J[b>>2];b=J[b+4>> +2];J[c+4>>2]=b;if(b){J[b+4>>2]=J[b+4>>2]+1;e=J[a+4>>2];d=J[a>>2]}b=f+g|0;f=c+8|0;if((d|0)==(e|0))break b;while(1){c=c-8|0;e=e-8|0;J[c>>2]=J[e>>2];J[c+4>>2]=J[e+4>>2];J[e>>2]=0;J[e+4>>2]=0;if((d|0)!=(e|0))continue;break}J[a+8>>2]=b;d=J[a+4>>2];J[a+4>>2]=f;b=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){d=d-8|0;a=J[d+4>>2];d:{if(!a)break d;e=J[a+4>>2];J[a+4>>2]=e-1;if(e)break d;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(d|0))continue;break}d=b;break a}Fg(a);B()}Pd();B()}J[a+8>>2]=b;J[a+4>>2]=f;J[a>> +2]=c}if(d)uc(d)}function RC(a,b,c,d){var e=0,f=0;e=J[a+5820>>2];a:{if((e|0)>=14){e=L[a+5816>>1]|d<>1]=e;f=J[a+20>>2];J[a+20>>2]=f+1;H[f+J[a+8>>2]|0]=e;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=K[a+5817|0];e=d&65535;d=J[a+5820>>2];f=e>>>16-d|0;I[a+5816>>1]=f;d=d-13|0;break a}f=L[a+5816>>1]|d<>1]=f;d=e+3|0}b:{if((d|0)>=9){d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=f;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=K[a+5817|0];break b}if((d|0)<=0)break b;d=J[a+20>>2];J[a+20>> +2]=d+1;H[d+J[a+8>>2]|0]=f}J[a+5820>>2]=0;I[a+5816>>1]=0;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=c;d=J[a+20>>2];J[a+20>>2]=d+1;H[d+J[a+8>>2]|0]=c>>>8;d=J[a+20>>2];J[a+20>>2]=d+1;e=d+J[a+8>>2]|0;d=c^-1;H[e|0]=d;e=J[a+20>>2];J[a+20>>2]=e+1;H[e+J[a+8>>2]|0]=d>>>8;xc(J[a+8>>2]+J[a+20>>2]|0,b,c);J[a+20>>2]=J[a+20>>2]+c}function C$a(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;a:{d=J[a>>2];e=J[a+4>>2]-d>>2;c=e+1|0;if(c>>>0<1073741824){d=J[a+8>>2]-d|0;f=d>>1;c=d>>>0>=2147483644?1073741823:c>>> +0>>0?f:c;if(c){if(c>>>0>=1073741824)break a;g=vc(c<<2)}J[699344]=0;d=(e<<2)+g|0;aa(3261,d|0,b|0)|0;b=J[699344];J[699344]=0;b:{if((b|0)!=1){f=(c<<2)+g|0;h=d+4|0;i=J[a>>2];e=J[a+4>>2];b=d;c:{while(1){c=b;if((e|0)==(i|0))break c;J[699344]=0;b=c-4|0;e=e-4|0;aa(3261,b|0,e|0)|0;j=J[699344];J[699344]=0;if((j|0)!=1)continue;break}e=Z()|0;if((c|0)!=(d|0))while(1){mh(c);c=c+4|0;if((d|0)!=(c|0))continue;break}mh(d);break b}J[a+8>>2]=f;b=J[a>>2];J[a>>2]=c;c=J[a+4>>2];J[a+4>>2]=h;if((b|0)!=(c|0))while(1){c= +c-4|0;mh(c);if((b|0)!=(c|0))continue;break}if(b)uc(b);return}e=Z()|0}if(g)uc(g);ba(e|0);B()}eh(a);B()}Pd();B()}function vna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-16|0;fc=d;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+24>>2]=0;J[a+4>>2]=a;J[a>>2]=a;J[699344]=0;e=_(6622,a+32|0)|0;c=J[699344];J[699344]=0;a:{b:{if((c|0)!=1){c=J[J[b>>2]+52>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[a+12>>2]=b;J[d+12>>2]=8;c=J[J[b>>2]+72>>2];J[699344]=0;da(c|0,b|0,d+12|0);b=J[699344];J[699344]= +0;if((b|0)==1)break b;fc=d+16|0;return a|0}b=Z()|0;break a}b=Z()|0;Am(e)}if(H[a+27|0]<0)uc(J[a+16>>2]);c:{if(!J[a+8>>2])break c;d=a;a=J[a+4>>2];e=J[a>>2];c=J[J[d>>2]+4>>2];J[e+4>>2]=c;J[c>>2]=e;J[d+8>>2]=0;if((a|0)==(d|0))break c;while(1){e=J[a+4>>2];if(H[a+63|0]<0)uc(J[a+52>>2]);c=J[a+36>>2];if(c){J[a+40>>2]=c;uc(c)}if(H[a+19|0]<0)uc(J[a+8>>2]);uc(a);a=e;if((d|0)!=(a|0))continue;break}}ba(b|0);B()}function r$a(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=-1;a:{b:{if(!(!d| +(!a|!b))){if(!c){J[b>>2]=0;J[d>>2]=0;return 0}e=c;h=a;f=J[d>>2];c:{if((f|0)<=0)break c;l=J[b>>2]+h|0;k=e+f|0;f=e;while(1){e=H[f|0];g=e&255;j=(e|0)>=0;i=0;d:{if(j)break d;if(e>>>0<=4294967231)break a;if(e>>>0<=4294967263){g=g&31;i=1;break d}if(e>>>0<=4294967279){g=g&15;i=2;break d}if(e>>>0>4294967287)break b;g=g&7;i=3}e=f+1|0;if((i|0)>(k-e|0)){e=f;break c}if(!(e>>>0>=k>>>0|j)){while(1){j=K[e|0];if((j&192)!=128)break a;g=j&63|g<<6;i=i-1|0;e=e+1|0;if(k>>>0>e>>>0?i:0)continue;break}if(g>>>0>255)break a}if(h>>> +0>=l>>>0){e=f;break c}H[h|0]=g;h=h+1|0;f=e;if(e>>>0>>0)continue;break}}J[b>>2]=h-a;J[d>>2]=e-c;e=J[b>>2]}return e|0}J[b>>2]=h-a;J[d>>2]=f-c;return-2}J[b>>2]=h-a;J[d>>2]=f-c;return-2}function eA(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{e=J[a+4>>2];d=J[a>>2];f=e-d>>3;c=f+1|0;if(c>>>0<536870912){g=J[a+8>>2]-d|0;h=g>>2;c=g>>>0>=2147483640?536870911:c>>>0>>0?h:c;if(c>>>0>=536870912)break c;h=f<<3;f=c<<3;g=vc(f);c=h+g|0;J[c>>2]=J[b>>2];b=J[b+4>>2];J[c+4>>2]=b;if(b){J[b+4>>2]=J[b+4>>2]+ +1;e=J[a+4>>2];d=J[a>>2]}b=f+g|0;f=c+8|0;if((d|0)==(e|0))break b;while(1){c=c-8|0;e=e-8|0;J[c>>2]=J[e>>2];J[c+4>>2]=J[e+4>>2];J[e>>2]=0;J[e+4>>2]=0;if((d|0)!=(e|0))continue;break}J[a+8>>2]=b;d=J[a+4>>2];J[a+4>>2]=f;b=J[a>>2];J[a>>2]=c;if((b|0)==(d|0))break a;while(1){d=d-8|0;a=J[d+4>>2];d:{if(!a)break d;e=J[a+4>>2];J[a+4>>2]=e-1;if(e)break d;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(d|0))continue;break}d=b;break a}eh(a);B()}Pd();B()}J[a+8>>2]=b;J[a+4>>2]=f;J[a>>2]=c}if(d)uc(d)}function _G(a,b,c){var d= +0,e=0;a:{b:{d=J[b+4>>2];c:{if(d>>>0<=4){e=L[b+2>>1];if(L[a+456>>1]==19789){if((e|0)==6){a=1;d:switch(d-1|0){case 3:H[c+3|0]=J[b+8>>2];case 2:H[c+2|0]=J[b+8>>2]>>>8;case 1:H[c+1|0]=L[b+10>>1];break;case 0:break d;default:break c}break b}a=1;e:switch(d-1|0){case 3:H[c+3|0]=J[b+8>>2];case 2:H[c+2|0]=J[b+8>>2]>>>8;case 1:H[c+1|0]=L[b+10>>1];break;case 0:break e;default:break c}break b}if((e|0)==6){a=1;f:switch(d-1|0){case 3:H[c+3|0]=K[b+11|0];case 2:H[c+2|0]=L[b+10>>1];case 1:H[c+1|0]=J[b+8>>2]>>>8;break; +case 0:break f;default:break c}break a}a=1;g:switch(d-1|0){case 3:H[c+3|0]=K[b+11|0];case 2:H[c+2|0]=L[b+10>>1];case 1:H[c+1|0]=J[b+8>>2]>>>8;break;case 0:break g;default:break c}break a}a=(ci(a,b,c)|0)!=0}return a}H[c|0]=K[b+11|0];return 1}H[c|0]=J[b+8>>2];return 1}function Wdb(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;var g=0,h=0,i=0,j=0;g=fc-32|0;fc=g;j=O[J[a+16>>2]+24>>3];O[g+24>>3]=d;O[g+16>>3]=c;O[g+8>>3]=e;O[g>>3]=c;h=kc[J[J[a>>2]+556>>2]](a)|0;ce(h,g+24|0,g+16|0);ce(h,g+8|0,g);if(!b){e= +O[g+8>>3];i=O[g+24>>3];d=O[g+16>>3];b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;c=j*f/25.4+.5;a:{if(R(c)<2147483648){b=~~c;break a}b=-2147483648}c=+((b>>>0<=1?1:b)|0);f=c*.5;if(R(d)<2147483648)b=~~d;else b=-2147483648;d=f+(+(b|0)+.5)+-.5-c;h=J[a+20>>2];if(R(i)<2147483648)b=~~i;else b=-2147483648;f=+(b|0);Yj(h,f,d);h=J[a+20>>2];if(R(e)<2147483648)b=~~e;else b=-2147483648;e=+(b+1|0);_n(h,e,d);kc[J[J[a>>2]+580>>2]](a);b=J[J[a+20>>2]+4>>2];H[b+25|0]=0;J[b+20>>2]=0;J[b>>2]=0;c=c+c+d;Yj(J[a+ +20>>2],f,c);_n(J[a+20>>2],e,c);kc[J[J[a>>2]+580>>2]](a)}fc=g+32|0}function PM(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-16|0;fc=g;i=J[a+28>>2];J[g+12>>2]=0;d=0;a:{if(b>>>0>>0)break a;f=_c(i,4,0,c,0,g+12|0);d=0;if(J[g+12>>2])break a;while(1){d=f;if(c>>>0<=e>>>0)break a;b=J[a+32>>2];if(b>>>0>2]){J[a+32>>2]=b+1;b=H[b|0]}else b=0;d=b<<24>>24;h=d&63;b:{if((d|0)<0){b=(e^-1)+c|0;b=b>>>0>>0?b:h;Ac((e<<2)+f|0,0,(b<<2)+4|0);d=b+1|0;e=d+e|0;break b}b=0;if(d&64)while(1){k=(e<<2)+f|0,l= +tf(a)<<16,J[k>>2]=l;d=b+1|0;e=e+1|0;if(b>>>0>=h>>>0)break b;b=d;if(c>>>0>e>>>0)continue;break b}while(1){j=(e<<2)+f|0;d=J[a+32>>2];if(d>>>0>2]){J[a+32>>2]=d+1;d=H[d|0]}else d=0;J[j>>2]=d<<24>>24<<16;d=b+1|0;e=e+1|0;if(b>>>0>=h>>>0)break b;b=d;if(c>>>0>e>>>0)continue;break}}if(d>>>0>h>>>0)continue;break}if(f)kc[J[i+8>>2]](i,f);d=0}fc=g+16|0;return d}function KAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-80|0;fc=c;d=c+8|0;e=a+72|0;kA(d,e);J[699344]=0;a=ga(5343,c+44|0,b|0,d|0)|0;b=J[699344];J[699344]= +0;a:{b:{if((b|0)!=1){J[699344]=0;aa(5253,e|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+24>>2]=2392964;J[a>>2]=2392932;b=J[a+28>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2392964;b=J[a+20>>2];if(b){d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(!d)kc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}wc(a+8|0);J[c+32>>2]=2392964;J[c+8>>2]=2392932;a=J[c+36>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[c+36>>2]=0}J[c+24>>2]=2392964;a=J[c+28>>2];if(a){b= +J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[c+28>>2]=0}wc(c+16|0);fc=c+80|0;return}b=Z()|0;break a}b=Z()|0;Ed(a)}Ed(c+8|0);ba(b|0);B()}function wN(a,b,c,d){var e=0,f=0,g=0,h=0;if(!a)return;if(!d)return;e=J[a+96>>2];J[d>>2]=0;J[d+4>>2]=0;e=J[J[e+12>>2]+76>>2];if(!e)return;if(!(kc[e|0](a,b,c,d)|0)){e=J[d>>2];b=e>>31;c=J[a+88>>2];g=J[c+16>>2];a=g>>31;b=(b^e)-b|0;a=(a^g)-a|0;a:{if(b+(a>>>8|0)>>>0<=8190){b=P(a,b)+32768>>>16|0;break a}f=b&65535;b=P(f,a>>>16|0)+P(a,b>>>16|0)+(P(f,a&65535)+32768>>> +16)|0}a=b;f=0-a|0;a=e>>31|1;b=(((g|0)<0?0-a|0:a)|0)<0?f:b;J[d>>2]=b;g=J[d+4>>2];e=g>>31;f=J[c+20>>2];a=f>>31;e=(e^g)-e|0;a=(a^f)-a|0;b:{if(e+(a>>>8|0)>>>0<=8190){e=P(a,e)+32768>>>16|0;break b}h=e&65535;e=P(h,a>>>16|0)+P(a,e>>>16|0)+(P(a&65535,h)+32768>>>16)|0}a=e;h=0-a|0;a=g>>31|1;a=(((f|0)<0?0-a|0:a)|0)<0?h:e;J[d+4>>2]=a;e=L[c+12>>1];if(e>>>0<=24)b=Od(b,e,25);c=L[c+14>>1];if(c>>>0<=24)a=Od(a,c,25);J[d+4>>2]=a+32&-64;J[d>>2]=b+32&-64}}function fWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>> +0>2147482623)break a;e=J[a+1040>>2];if((e|0)>(b|0))break a;b:{if((e+1020|0)>=(b|0)){d=e;break b}f=J[a+1044>>2];d=f+e|0;if((d|0)>(b|0)){d=f+(e-b|0)|0;J[a+1044>>2]=d;f=a+16|0;cd(f,f+(b-e|0)|0,d);J[a+1040>>2]=b;d=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=d;if((b|0)<=(d|0))break b;while(1){d=0;if((kc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;d=J[a+1040>>2]+1|0;J[a+1040>>2]=d;if((b|0)>(d|0))continue;break}}e=b+4|0;if((e|0)>(J[a+1044>>2]+d|0))while(1){d=0;f=kc[J[a+4>>2]](J[a+8>>2])|0;if((f|0)<0)break a;d=J[a+1044>> +2];J[a+1044>>2]=d+1;H[(a+d|0)+16|0]=f;d=J[a+1040>>2];if((e|0)>(d+J[a+1044>>2]|0))continue;break}a=(b-d|0)+a|0;a=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);J[c>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);d=1}return d|0}function dDb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=fc-16|0;fc=f;b=-1;a:{if(Wg(c,a+12|0))break a;if(Ti(c,a+16|0))break a;if(Ti(c,a+20|0))break a;if(Ti(c,a+24|0))break a;if(Ti(c,a+28|0))break a;if(Ti(c,a+32|0))break a;if(Ti(c,a+36|0))break a;if(Ti(c,a+40|0))break a;if(Ti(c, +a+44|0))break a;if(Wg(c,a+48|0)|!J[a+16>>2]|(!J[a+20>>2]|!J[a+32>>2]))break a;if(!J[a+36>>2])break a;d=J[a+48>>2];if(!d)break a;d=Dc(d<<2);J[a+52>>2]=d;if(!d)break a;b:{if(J[a+48>>2]){b=0;while(1){c:{d:{if(Ds(c,f+15|0))break d;e=b<<2;if(Ds(c,(e+J[a+52>>2]|0)+2|0))break d;if(!Ds(c,(e+J[a+52>>2]|0)+3|0))break c}uc(J[a+52>>2]);break b}d=J[a+52>>2];e=e+d|0;H[e+1|0]=K[f+15|0]>>>7;H[e|0]=(K[f+15|0]&127)+1;b=b+1|0;if(b>>>0>2])continue;break}}b=0;if(!(H[c+8|0]&1))break a;uc(d)}b=-1}fc=f+16|0;return b| +0}function zvb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-1|0;while(1){I[g>>1]=L[f>>1];I[g+2>>1]=L[f+2>>1];I[g+4>>1]=L[f+4>>1];h=g+6|0;a=j?(j|0)==(l|0)?d:b:c;a:{if(a>>>0<2){g=h;break a}i=a-1|0;k=i&3;b:{if(a-2>>>0<3){a=g;break b}m=i&-4;i=0;a=g;while(1){I[h>>1]=L[f>>1];I[a+8>>1]=L[f+2>>1];I[a+10>>1]=L[f+4>>1];I[h+6>>1]=L[f>>1];I[h+8>>1]=L[f+2>>1];I[h+10>>1]=L[f+4>>1];I[h+12>>1]=L[f>>1];I[h+14>>1]=L[f+2>>1];I[h+16>>1]=L[f+4>>1];I[h+18>>1]=L[f>>1];I[h+ +20>>1]=L[f+2>>1];I[h+22>>1]=L[f+4>>1];a=h+18|0;h=h+24|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;g=h;if(!k)break a;while(1){h=g;I[h>>1]=L[f>>1];I[a+8>>1]=L[f+2>>1];I[a+10>>1]=L[f+4>>1];g=h+6|0;a=h;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=f+6|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function uFa(a){a=a|0;var b=0,c=0,d=0;c=fc-16|0;fc=c;b=J[a+32>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;d=J[a+32>>2]}J[699344]=0;J[c+8>>2]=d;b=c+12|0;ia(5214,b|0,c+8|0,0,1);d=J[699344];J[699344]=0;a:{b:{c:{if((d|0)!= +1){J[699344]=0;aa(5153,a+48|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;a=J[c+12>>2];J[c+12>>2]=0;d:{if(!a)break d;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break d;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[c+8>>2];J[c+8>>2]=0;e:{if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=c+16| +0;return}a=Z()|0;break b}a=Z()|0;zc(c+12|0)}zc(c+8|0);ba(a|0);B()}ea(0)|0;Bc();B()}function mF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=uF(a);a:{if(!f)break a;d=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=d;d=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=d;d=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=d;d=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=d;d=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=d;xc(a+52|0,b+52|0,908);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+960>>2]=J[b+960>>2];J[a+964>>2]=J[b+ +964>>2];J[a+968>>2]=J[b+968>>2];Ac(b+4|0,0,968);if(!c)break a;b:{if(J[a+60>>2])break b;d=J[a+972>>2];if(!d)break b;c=0;e=J[a+356>>2];c:{if((e|0)>0){while(1){d=J[J[a+972>>2]+(c<<2)>>2];if(d){kc[J[J[d>>2]+4>>2]](d);e=J[a+356>>2]}c=c+1|0;if((e|0)>(c|0))continue;break}d=J[a+972>>2];if(!d)break c}uc(d)}J[a+356>>2]=0;J[a+972>>2]=0}J[a+972>>2]=J[b+972>>2];J[b+972>>2]=0}return f|0}function Bla(a){a=a|0;var b=0,c=0,d=0;d=fc-32|0;fc=d;b=J[a+584>>2];a:{b:{c:{d:{e:{c=L[a+90>>1];switch(c-32844|0){case 0:break d; +case 1:break e;default:break c}}c=1;if(!pT(a))break a;if(L[a+88>>1]==34677){J[a+544>>2]=594;f:switch(J[b>>2]){case 0:J[b+20>>2]=595;break a;case 2:break a;case 1:break f;default:break b}J[b+20>>2]=596;break a}J[a+544>>2]=597;g:switch(J[b>>2]){case 0:J[b+20>>2]=598;break a;case 2:break a;case 1:break g;default:break b}J[b+20>>2]=599;break a}c=1;if(!XS(a))break a;J[a+544>>2]=600;h:{c=J[b>>2];switch(c|0){case 1:break a;case 0:break h;default:break b}}J[b+20>>2]=601;c=1;break a}b=J[a>>2];a=J[a+628>>2]; +J[d+4>>2]=73878;J[d>>2]=c;Uc(a,b,73051,d);c=1;break a}b=J[a>>2];c=J[a+628>>2];J[d+16>>2]=L[a+90>>1]==32844?80703:80818;Uc(c,b,80301,d+16|0);c=0}fc=d+32|0;return c|0}function Fyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[J[a+536>>2]+88>>2];d=(J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0)+P(J[d+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){c=K[d|0]|K[d+1|0]<<8;b=(c<<8|c>>>8)&65535;c=K[e|0]|K[e+1| +0]<<8;c=b+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;c=d+2|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[e+2|0]|K[e+3|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;c=d+4|0;b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[e+4|0]|K[e+5|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;e=e+6|0;d=d+6|0;g=g+1|0;if((g|0)>2])continue;break}}return 0}xc(d,e,P(J[a+588>>2],6));return 0}function wp(a){var b=0,c=0,d=0,e=0,f=0,g= +0;a:{e=J[a+12>>2];d=K[e|0];b:{if(!d){b=e;break b}while(1){b=d<<24>>24;if(!((b|0)==32|b-9>>>0<5))break a;d=K[e+1|0];b=e+1|0;e=b;if(d)continue;break}}J[a+12>>2]=b;return 1}f=-1;c=(b|32)-97>>>0<26;c:{d:{e:{if((d&255)==95){c=e;break e}if(c){c=e;break e}c=e;if(b-48>>>0>9)break d}f:{while(1){b=d<<24>>24;if(!((d&255)==95|(b|32)-97>>>0<26)&b-48>>>0>9)break f;d=K[c+1|0];c=c+1|0;if(d)continue;break}J[a+12>>2]=c;break c}if((d&255)!=61){if(!((b|0)==32|b-9>>>0<5))break d;H[c|0]=0;J[a+12>>2]=c+1;break c}f=0;H[c| +0]=0;g=c+1|0;d=g;b=K[c+1|0];g:{if(!b)break g;c=d;while(1){h:{d=c+1|0;b=b<<24>>24;if((b|0)==32|b-9>>>0<5)break h;c=d;b=K[c|0];if(b)continue;break g}break}H[c|0]=0}J[a+8>>2]=g;J[a+4>>2]=e;J[a+12>>2]=d}return f}J[a+8>>2]=198547;J[a+4>>2]=e;return 0}function qe(a,b,c){var d=0,e=0,f=0,g=0;g=J[c>>2]+b|0;d=K[g|0];e=d>>>1|0;c=J[(e<<2)+2731648>>2];b=J[a+12>>2]-c|0;J[a+12>>2]=b;d=d&1;f=J[a+8>>2];a:{if(f>>>0>>0){if((b|0)<0)break a;b:{if(b>>>0>>0){b=d^1;f=e<<2;e=J[f+2732032>>2]<<1;c=b|e;if(J[f+2732224>> +2])break b;c=d|e;break b}b=d;c=b|J[(e<<2)+2731840>>2]<<1}H[g|0]=c;c=J[a+16>>2];while(1){if(!c){pJ(a);c=J[a+16>>2]}c=c-1|0;J[a+16>>2]=c;d=J[a+12>>2]<<1;J[a+12>>2]=d;J[a+8>>2]=J[a+8>>2]<<1;if((d|0)>=0)continue;break}return b}J[a+8>>2]=f-b;c:{if(b>>>0>>0){b=J[(e<<2)+2731840>>2]<<1|d;break c}f=d^1;e=e<<2;b=J[e+2732032>>2]<<1;b=J[e+2732224>>2]?b|f:b|d;d=f}H[g|0]=b;J[a+12>>2]=c;b=J[a+16>>2];while(1){if(!b){pJ(a);c=J[a+12>>2];b=J[a+16>>2]}c=c<<1;J[a+12>>2]=c;b=b-1|0;J[a+16>>2]=b;J[a+8>>2]=J[a+8>>2]<< +1;if((c|0)>=0)continue;break}}return d}function oVa(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;a:{f=J[a+392>>2];if(M[f+8>>2]>=M[a+284>>2])break a;h=f+24|0;i=f+12|0;e=J[a+280>>2];g=J[f+12>>2];if(e>>>0>g>>>0){kc[J[J[a+396>>2]+4>>2]](a,b,c,d,h,i,e);g=J[i>>2];e=J[a+280>>2]}if((e|0)!=(g|0))break a;g=kc[J[J[a+400>>2]+4>>2]](a,h)|0;e=J[f+16>>2];b:{if(!g)break b;if(e){J[c>>2]=J[c>>2]+1;J[f+16>>2]=0}J[f+12>>2]=0;e=J[f+8>>2]+1|0;J[f+8>>2]=e;if(e>>>0>=M[a+284>>2])break a;while(1){e=J[a+280>>2]; +if(e){kc[J[J[a+396>>2]+4>>2]](a,b,c,d,h,i,e);e=J[a+280>>2];g=J[i>>2]}else g=0;if((e|0)!=(g|0))break a;g=kc[J[J[a+400>>2]+4>>2]](a,h)|0;e=J[f+16>>2];if(!g)break b;if(e){J[c>>2]=J[c>>2]+1;J[f+16>>2]=0}J[f+12>>2]=0;e=J[f+8>>2]+1|0;J[f+8>>2]=e;if(e>>>0>2])continue;break}break a}if(e)break a;J[c>>2]=J[c>>2]-1;J[f+16>>2]=1}}function Vg(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+12>>2];c=J[b>>2];f=J[c+4>>2];e=M[a+4>>2]>2];J[b>>2]=J[c+(e?12:8)>>2];c=J[a+8>>2];while(1){a:{if(c){b=J[a>>2];break a}b:{c:{d:{e:{if(!J[a+ +32>>2]){d=J[a+24>>2];c=J[d+8>>2];if(c&7)break e;b=J[d+64>>2];if(!((b|0)<0|(b|0)>J[d+60>>2])){J[d+8>>2]=c|4;break e}b=J[d+28>>2];J[d+28>>2]=b-1;f:{if((b|0)>0){J[d+60>>2]=J[d+60>>2]+1;b=J[d+24>>2];J[d+24>>2]=b+1;b=K[b|0];break f}b=td(d,1);if((b|0)==-1)break e}c=K[a+28|0];H[a+28|0]=b;d=J[a>>2];if((c|0)!=255)break d;if((b|0)>=144)break c;b=(b<<9)+d|0;c=7;break a}b=J[a>>2]+65280|0;break b}J[a+32>>2]=1;c=K[a+28|0];b=255;H[a+28|0]=255;d=J[a>>2];if((c|0)==255)break c}c=8;b=(b<<8)+d|0;break a}b=d+65280|0}c= +8}c=c-1|0;J[a+8>>2]=c;J[a>>2]=b<<1;b=J[a+4>>2];J[a+4>>2]=b<<1;if(!(b&16384))continue;break}return f^e}function Kl(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;f=fc-256|0;fc=f;e=ji(84);J[a+8>>2]=e;a:{if(e){J[f+24>>2]=J[187884];g=J[187883];J[f+16>>2]=J[187882];J[f+20>>2]=g;g=J[187881];J[f+8>>2]=J[187880];J[f+12>>2]=g;g=J[187879];J[f>>2]=J[187878];J[f+4>>2]=g;g=Ac(e,0,84);H[f+8|0]=K[b+8|0];e=0;b:{c:{while(1){if(J[c>>2]>0)break c;if(!(63104>>>e&1)){h=e<<2;i=h+g|0,j=jg(J[h+751552>>2],f+32|0,f,c),J[i>>2]=j}e=e+ +1|0;if((e|0)!=20)continue;break}if(J[c>>2]>0)break c;if(!K[b+8|0])break b}Z2(a);break a}H[g+80|0]=d;e=0;a=J[b+24>>2];d:{if(!a)break d;b=H[a|0];if(!b)break d;c=751632;e=734539;d=b&255;while(1){e:{h=K[e|0];f:{if((h|0)==(d|0)){if(ud(e,a,Yc(e)))break f;H[g+81|0]=K[c+4|0];break a}if((b|0)>24)break e}e=J[c+8>>2];c=c+8|0;if(e)continue}break}e=1}H[g+81|0]=e;break a}J[c>>2]=7}fc=f+256|0}function IUa(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;a:{g=J[a+8>>2];if((g|0)<=0)break a; +e=O[a+16>>3];d=O[a+24>>3];h=O[b>>3];h=e>h?e:d>2]){b=0;while(1){f=b<<3;i=f+a|0;e=O[i+1304>>3];f=c+f|0;d=O[i+1048>>3];e=d+_e(h,O[a+1560>>3])*(e-d);O[f>>3]=e;i=(b<<4)+a|0;d=O[i+528>>3];b:{if(!(e>3];if(!(e>d))break b}O[f>>3]=d}b=b+1|0;if((g|0)!=(b|0))continue;break}break a}b=0;if((g|0)!=1){l=g&-2;i=a+1048|0;j=a+1304|0;while(1){f=b<<3;e=O[f+j>>3];d=O[f+i>>3];m=c+f|0,n=d+_e(h,O[a+1560>>3])*(e-d),O[m>>3]=n;f=f|8;e=O[f+j>>3];d=O[f+i>>3];m=c+f|0,n=d+_e(h,O[a+1560>>3])*(e- +d),O[m>>3]=n;b=b+2|0;k=k+2|0;if((l|0)!=(k|0))continue;break}}if(!(g&1))break a;b=b<<3;g=b+a|0;e=O[g+1304>>3];d=O[g+1048>>3];m=b+c|0,n=d+_e(h,O[a+1560>>3])*(e-d),O[m>>3]=n}}function kXa(a,b){a=a|0;b=b|0;var c=0,d=0;Fe(b,1);zd(b,J[a+20>>2]);Fe(b,K[a+64|0]);c=K[a+64|0];a:{if(c>>>0>7)break a;b:{c:{d:{if(!(1<>3]*100;if(!(R(d)<2147483648))break d;c=~~d;break c}Fe(b,K[a+24|0]);c=J[a+24>>2];if(c&1){d=O[a+32>>3]*100;e:{if(R(d)<2147483648){c=~~d;break e}c=-2147483648}zd(b, +c);c=J[a+24>>2]}if(c&2){d=O[a+40>>3]*100;f:{if(R(d)<2147483648){c=~~d;break f}c=-2147483648}zd(b,c);c=J[a+24>>2]}if(c&4)break b;break a}c=-2147483648}zd(b,c);d=O[a+40>>3]*100;g:{if(R(d)<2147483648){c=~~d;break g}c=-2147483648}zd(b,c);d=O[a+48>>3]*100;h:{if(R(d)<2147483648){c=~~d;break h}c=-2147483648}zd(b,c)}d=O[a+56>>3]*100;i:{if(R(d)<2147483648){c=~~d;break i}c=-2147483648}zd(b,c)}if(J[a+16>>2]){Fe(b,1);a=J[a+16>>2];kc[J[J[a>>2]+8>>2]](a,b);return}Fe(b,0)}function ZPa(a){a=a|0;var b=0,c=0,d=0;b= +vc(240);c=J[a+4>>2];a=J[J[c>>2]+8>>2];J[699344]=0;c=_(a|0,c|0)|0;a=J[699344];J[699344]=0;a:{b:{c:{if((a|0)==1)break c;J[699344]=0;J[b+4>>2]=c;J[b>>2]=2342900;a=J[699344];J[699344]=0;if((a|0)==1)break c;J[b>>2]=2317872;J[699344]=0;d=_(4,16)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[b+4>>2];J[699344]=0;c=ga(3623,d|0,a|0,3)|0;a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;uc(d);break a}J[b+96>>2]=0;J[b+76>>2]=0;J[b+8>>2]=c;J[b+12>>2]=0;J[b+16>>2]=0;J[b+88>>2]=0;J[b+92>>2]=0;J[b+20>>2]=0;J[b+24>> +2]=0;J[b+28>>2]=0;J[b+104>>2]=0;J[b+108>>2]=0;J[b+112>>2]=0;J[b+116>>2]=0;J[b+124>>2]=0;J[b+128>>2]=0;J[b+132>>2]=0;J[b+136>>2]=0;J[b+200>>2]=0;J[b+204>>2]=0;J[b+208>>2]=0;J[b+212>>2]=0;J[b+216>>2]=0;return b|0}a=Z()|0;break a}a=Z()|0}uc(b);ba(a|0);B()}function Sra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;e=J[b>>2]}J[699344]=0;J[c+8>>2]=e;da(5710,c+12|0,c+8|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){b=J[c+8>>2];J[c+8>>2]=0;d:{if(!b)break d;J[699344]= +0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[699344]=0;da(5711,a|0,J[c+12>>2]);a=J[699344];J[699344]=0;if((a|0)==1)break c;a=J[c+12>>2];J[c+12>>2]=0;e:{if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=c+16|0;return}b=Z()|0;a=c+8|0;break b}b=Z()|0;a=c+12|0}zc(a); +ba(b|0);B()}ea(0)|0;Bc();B()}function yda(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=J[a+584>>2];a:{if(J[b+884>>2]>0){e=J[b+76>>2];if((e|0)>0){c=J[b+84>>2];while(1){f=J[c+12>>2];d=P(f,J[b+884>>2]);f=f<<3;if((d|0)<(f|0)){e=J[c+28>>2]<<3;i=(g<<2)+b|0;while(1){h=J[i+844>>2]+(d<<2)|0;Ue(J[h>>2],J[h-4>>2],e);d=d+1|0;if((f|0)!=(d|0))continue;break}e=J[b+76>>2]}c=c+88|0;g=g+1|0;if((g|0)<(e|0))continue;break}}d=0;i=b;h=b+844|0;b=J[b+272>>2]<<3;if((SP(i,h,b)|0)!=(b|0))break a;b=J[a+584>>2]}c=0;a=Dc(40); +J[a>>2]=0;a=Hf(b+624|0,1,a,4);f=gc;b:{c:{while(1){if(c)break b;J[699344]=0;$(103,b|0);c=J[699344];J[699344]=0;if((c|0)==1){d=Z()|0;uc(a);ba(d|0);B()}e=-1;d:{e:{if(!c)break e;g=J[699345];if(!g)break e;e=Pc(J[c>>2],a,f);if(!e)break d;gc=g}c=gc;if((e|0)!=1)break c;continue}break}uc(a);nf(c,g);B()}d=1}uc(a)}return d|0}function kV(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=fc-48|0;fc=f;b=J[a+72>>2];d=J[a+68>>2];if((d|0)==-1)d=J[a+56>>2];g=J[a+76>>2];b=(b|0)==-1?J[a+60>>2]:b;g=(g|0)==-1?J[a- -64>>2]:g;a:{if(!g| +(!d|!b))break a;h=J[a+56>>2];if(h>>>0<0-d>>>0)c=((d+h|0)-1>>>0)/(d>>>0)|0;d=J[a+60>>2];b:{if(d>>>0>=0-b>>>0)break b;d=(b+d|0)-1|0;e=vEb((d>>>0)/(b>>>0)|0,0,c,0);c=jc;if(!c|b>>>0>d>>>0)break b;c=J[a>>2];e=J[a+628>>2];J[f+32>>2]=72063;Uc(e,c,74135,f+32|0);e=0}c=0;b=J[a- -64>>2];if(b>>>0>=0-g>>>0)break a;b=(b+g|0)-1|0;c=vEb((b>>>0)/(g>>>0)|0,0,e,0);e=jc;if(!e|b>>>0>>0)break a;c=J[a>>2];e=J[a+628>>2];J[f+16>>2]=72063;Uc(e,c,74135,f+16|0);c=0}c:{if(L[a+138>>1]!=2)break c;e=L[a+98>>1];c=vEb(e,0,c,0); +b=jc;if(!e|!b)break c;c=J[a>>2];a=J[a+628>>2];J[f>>2]=72063;Uc(a,c,74135,f);c=0}fc=f+48|0;return c}function vva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=fc-32|0;fc=c;e=sh(c+4|0,c+12|0,P(J[b+8>>2],6)|1,1);H[J[c+12>>2]]=0;a:{b:{d=J[b+12>>2];if(!d)break b;b=J[b+8>>2];if(!b)break b;f=J[c+12>>2];J[c+16>>2]=0;c:{d:{while(1){J[699344]=0;g=Mp(c+16|0,d,b);h=J[699344];J[699344]=0;if((h|0)==1)break c;if((g|0)<0)break d;d=d+g|0;f=nk(J[c+16>>2],f);b=b-g|0;if(b)continue;break}H[f|0]=0;break b}J[699344]= +0;ca(5614,e|0,0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;break a}b=Z()|0;break a}J[699344]=0;b=J[c+12>>2];J[c+24>>2]=0;J[c+28>>2]=0;J[c+20>>2]=0;J[c+16>>2]=2426580;ca(5638,a|0,c+16|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1){J[c+16>>2]=2426484;a=J[c+28>>2];if(a){H[a|0]=0;uc(J[c+28>>2])}J[c+28>>2]=0;nd(c+16|0);hd(e);fc=c+32|0;return}b=Z()|0;rh(c+16|0)}hd(e);ba(b|0);B()}function Ohb(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;d=fc-272|0;fc=d;kc[J[b+60>>2]](b,d+80|0,16,d+76| +0);f=J[d+76>>2];a:{if((f|0)<0){c=162;break a}c=3;if(f-17>>>0<4294967280)break a;i=J[a+532>>2];j=J[b+8>>2];k=J[b>>2];f=0;while(1){c=(d+80|0)+P(g,12)|0;J[b>>2]=J[c>>2];J[b+8>>2]=J[c+4>>2];kc[J[b+60>>2]](b,d+16|0,4,d+12|0);e=J[d+12>>2];b:{c:{if(!g){if(e-5>>>0<4294967292)break c;c=JD(a,J[d+76>>2],e);if(c)break a;i=J[a+532>>2];c=J[d+12>>2];f=e;break b}c=f;if((e|0)==(c|0))break b}c=3;break a}if((c|0)>0){e=(g<<2)+i|0;c=0;while(1){h=(d+16|0)+P(c,12)|0;J[b>>2]=J[h>>2];J[b+8>>2]=J[h+4>>2];h=kc[J[b+40>>2]](b, +0)|0;J[J[e+24>>2]+(c<<2)>>2]=h;c=c+1|0;if((c|0)>2])continue;break}}g=g+1|0;if((g|0)>2])continue;break}J[b+8>>2]=j;J[b>>2]=k;c=0}J[b+12>>2]=c;fc=d+272|0}function zFa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=vc(52);b=J[a+4>>2];J[c+20>>2]=0;J[c+24>>2]=-1;J[c+12>>2]=0;J[c+16>>2]=-1;J[c>>2]=2394472;J[c+4>>2]=0;J[c+8>>2]=0;J[c+28>>2]=J[b+28>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=J[b+36>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=J[b+44>>2];J[c+48>>2]=J[b+48>>2];d=J[b+24>>2];e=J[b+20>> +2];J[699344]=0;ca(5212,c|0,e|0,d|0);d=J[699344];J[699344]=0;a:{if((d|0)==1)break a;e=J[b+8>>2];f=J[c+8>>2];g=J[b+44>>2];h=J[c+20>>2];i=J[c+24>>2];d=J[c+12>>2];j=J[b+20>>2];k=J[b+24>>2];b=J[b+12>>2];J[699344]=0;la(g|0,f|0,h-d|0,i-d|0,e|0,j-b|0,k-b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[c+4>>2]=J[c+4>>2]+1;b=J[a+4>>2];b:{if(!b)break b;d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(d)break b;kc[J[J[b>>2]+4>>2]](b)}J[a+4>>2]=c;return}a=Z()|0;uc(c);ba(a|0);B()}function eB(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a; +b=J[a+5164>>2];if(b){c=J[a+5160>>2];if(c){b=0;while(1){d=J[J[a+5164>>2]+(b<<3)>>2];if(d){uc(d);c=J[a+5160>>2]}b=b+1|0;if(c>>>0>b>>>0)continue;break}b=J[a+5164>>2]}J[a+5160>>2]=0;uc(b);J[a+5164>>2]=0}b=J[a+5172>>2];if(b){uc(b);J[a+5172>>2]=0}b=J[a+5584>>2];if(b){uc(b);J[a+5584>>2]=0}b=J[a+5612>>2];if(b){uc(b);J[a+5612>>2]=0}b=J[a+5608>>2];if(b){uc(b);J[a+5608>>2]=0}b=J[a+5628>>2];if(b){uc(b);J[a+5636>>2]=0;J[a+5628>>2]=0;J[a+5632>>2]=0}b=J[a+5616>>2];if(b){e=J[a+5620>>2];if(e){c=0;while(1){d=J[b+12>> +2];if(d){uc(d);J[b+12>>2]=0;e=J[a+5620>>2]}b=b+20|0;c=c+1|0;if(e>>>0>c>>>0)continue;break}b=J[a+5616>>2]}uc(b);J[a+5616>>2]=0}b=J[a+5604>>2];if(b){uc(b);J[a+5604>>2]=0}b=J[a+5596>>2];if(!b)break a;uc(b);J[a+5596>>2]=0;J[a+5600>>2]=0}}function Od(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=2147483647;a:{if(!c)break a;b:{e=b>>31;f=(e^b)-e|0;e=a>>31;g=(e^a)-e|0;e=c>>31;e=(e^c)-e|0;if(f+g>>>0<=129894-(e>>>17|0)>>>0){f=P(f,g)+(e>>>1|0)|0;break b}h=f>>>16|0;d=g>>>16|0;j=P(h,g&65535)+P(d,f&65535)|0;d=(j>>> +16|0)+P(d,h)|0;h=e>>>1|0;g=P(f,g);f=h+g|0;d=(d+(f>>>0>>0)|0)+(g>>>0>>0)|0;if(!d)break b;if(e>>>0<=d>>>0)break a;g=S(d);h=32-g|0;d=f>>>h|d<>>0)/(e>>>0)|0;d=d-P(e,i)|0;f=f<>>31;h=d>>>0>=e>>>0;d=d-(h?e:0)|0;i=h|i<<1;h=g^31;f=f<<1}if((g|0)==31)break a;while(1){d=d<<1|f>>>31;g=d>>>0>=e>>>0;d=f>>>30&1|d-(g?e:0)<<1;j=d>>>0>=e>>>0;d=d-(j?e:0)|0;i=j|(i<<2|g<<1);f=f<<2;h=h-2|0;if(h)continue;break}break a}i=(f>>>0)/(e>>>0)|0}a=a>>31|1;a=(b|0)<0?0-a|0:a;return(((c|0)<0?0- +a|0:a)|0)<0?0-i|0:i}function _C(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=b+c|0;H[g|0]=0;i=(c<<10)+a|0;c=0;while(1){d=J[(c<<2)+i>>2];e=d>>>24&127;f=e+b|0;if(K[f|0]==255)_C(a,b,e);a:{b:{if((d|0)>=0){if(H[f|0]<0)break b;break a}if((d&14680064)>>>0<6291456)break a}if((c|0)==255){H[g|0]=192;return}c=c+1|0;continue}break}d=K[g|0]|c>>>2&1073741816;H[g|0]=d;e=255;if(c>>>0<=254){while(1){d=J[(e<<2)+i>>2];f=d>>>24&127;h=f+b|0;if(K[h|0]==255)_C(a,b,f);c:{d:{if((d|0)>=0){if(H[h|0]<0)break d;break c}if((d&14680064)>>> +0<6291456)break c}e=e-1|0;if(e>>>0>c>>>0)continue}break}d=K[g|0]}H[g|0]=d|e>>>5;if((c|0)<=(e|0))while(1){d=c;c=J[(c<<2)+i>>2];h=c>>>24&127;f=h+b|0;if(K[f|0]==255)_C(a,b,h);e:{if((c|0)>=0)break e;H[f|0]=K[f|0]|64;if(c&12582912)break e;H[g|0]=K[g|0]|64}c=d+1|0;if((d|0)!=(e|0))continue;break}}function REa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;J[699344]=0;J[c+28>>2]=0;aa(5145,c+28|0,0)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){d=J[c+28>>2];if(!d)break a;J[d+8>>2]=2;J[c+24>>2]=b;J[699344]=0;b= +aa(5149,c+8|0,a|0)|0;a=J[699344];J[699344]=0;c:{d:{e:{if((a|0)!=1){J[699344]=0;d=ga(5227,c+16|0,b|0,c+24|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break e;wc(b);J[699344]=0;aa(5228,J[c+28>>2],d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break c;a=ea(0)|0;wc(d);break d}a=ea(0)|0;break d}a=ea(0)|0;wc(b)}zc(c+28|0);break b}wc(d);a=J[c+28>>2];J[c+28>>2]=0;if(!a)break a;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)!=1){if(b)break a;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]= +0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}a=ea(0)|0}oa(a|0)|0;ta()}fc=c+32|0}function Cx(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-32|0;fc=g;c=J[a>>2];a:{if(c>>>0<2)break a;while(1){d=J[a+12>>2];j=c-2|0;h=J[d+(j>>>4&268435452)>>2]+P(j&63,24)|0;i=c-1|0;d=J[d+(i>>>4&268435452)>>2]+P(i&63,24)|0;e=O[d>>3]-O[h>>3];f=e*e;e=O[d+8>>3]-O[h+8>>3];e=Y(f+e*e);i=e>1E-14;O[h+16>>3]=i?e:1E14;if(i)break a;c=J[d+20>>2];J[g+24>>2]=J[d+16>>2];J[g+28>>2]=c;c=J[d+12>>2];J[g+16>>2]=J[d+8>>2];J[g+20>>2]=c;c=J[d+ +4>>2];J[g+8>>2]=J[d>>2];J[g+12>>2]=c;J[a>>2]=j;Dx(a,g+8|0);c=J[a>>2];if(c>>>0>1)continue;break}}b:{if(!b|c>>>0<2)break b;h=J[a+12>>2];b=J[h>>2];e=O[b+8>>3];k=O[b>>3];while(1){c=c-1|0;b=J[h+(c>>>4&268435452)>>2]+P(c&63,24)|0;f=k-O[b>>3];l=f*f;f=e-O[b+8>>3];f=Y(l+f*f);d=f>1E-14;O[b+16>>3]=d?f:1E14;if(d)break b;J[a>>2]=c;if(c>>>0>1)continue;break}}fc=g+32|0}function xu(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=fc+-64|0;fc=f;a:{b:{if(J[d>>2]>0)break b;if(!(!c|b?(c|0)>=-1:0)){J[d>>2]=1;break b}if((c| +0)<0)c=Yc(b);if((c|0)<=0)break b;g=J[a>>2];e=J[a+52>>2];h=g+e|0;if((h|0)==(b|0)){if((J[a+4>>2]-e|0)<=(c|0)){J[d>>2]=5;break b}b=c+e|0;J[a+52>>2]=b;H[b+g|0]=0;break b}if(!(b>>>0>>0|b>>>0>=h>>>0|(J[a+4>>2]-e|0)>(c|0))){e=f+8|0;H[e+8|0]=0;J[e+4>>2]=40;J[e>>2]=e+9;J[e+52>>2]=0;H[J[e>>2]]=0;J[699344]=0;ha(3049,e|0,b|0,c|0,d|0)|0;c=J[699344];J[699344]=0;b=e;if((c|0)==1)break a;J[699344]=0;a=ga(3063,a|0,b|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){Eh(b);break b}break a}if(!T2(a,(c+e|0)+1|0,d))break b; +xc(J[a>>2]+J[a+52>>2]|0,b,c);b=J[a+52>>2]+c|0;J[a+52>>2]=b;H[b+J[a>>2]|0]=0}fc=f- -64|0;return a|0}a=Z()|0;Eh(b);ba(a|0);B()}function qX(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;h=fc-32|0;fc=h;a:{if((c|0)<0){a=Qc(h+8|0,2388434,2387711,610,2397222,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}f=J[a+12>>2];b:{if(!f)break b;g=b+c|0;if((g|0)<=0)break b;e=J[f+8>>2];a=e>>31;a=(a^e)-a|0;d=0;c:{if((e|0)<=0)break c;e=a>>>0>>0;d=e?a:g;if((b| +0)<=0)break c;d=a>>>0>=g>>>0?c:0;if(!(e&a>>>0>=b>>>0))break c;d=a-b|0}e=J[f>>2];if(!e)break b;while(1){if((a|0)>=(g|0))break b;i=J[e+8>>2];f=i>>31;j=(f^i)-f|0;f=a;a=j+a|0;d:{if((i|0)<=0)break d;if((b|0)>(f|0)){if(!((a|0)<(b|0)|(a|0)>=(g|0))){d=(d-b|0)+a|0;break d}d=((a|0)>=(g|0)?c:0)+d|0;break d}if((a|0)<=(g|0)){d=d+j|0;break d}d=(d+g|0)-f|0}e=J[e>>2];if(e)continue;break}}fc=h+32|0;return d|0}B()}function Wwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];c= +J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{if(K[d+56|0]){if((b|0)<=0)break a;while(1){b=K[e|0]|K[e+1|0]<<8;b=(b<<8|b>>>8)&65535;g=(b|0)!=L[d+836>>1];b=g?b:0;h=b<<8|b>>>8;H[c|0]=h;H[c+1|0]=h>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=g?65535:0;b=b<<8|b>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;e=e+2|0;c=c+8|0;f=f+1|0;if((f|0)>2])continue;break}break a}if((b|0)<=0){i=1;break a}while(1){d=K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535;b=d<<8|d>>>8;H[c|0]=b;H[c+1|0]=b>>> +8;d=d<<8|d>>>8;H[c+2|0]=d;H[c+3|0]=d>>>8;H[c+4|0]=d;H[c+5|0]=d>>>8;H[c+6|0]=255;H[c+7|0]=255;e=e+2|0;c=c+8|0;i=1;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=i;return 0}function RXa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=fc-32|0;fc=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[f+16>>2]=13;c=J[c+8>>2];J[699344]=0;c=ha(3368,c|0,d|0,f+16|0,0)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)==1)break b;c:{d:{if(J[c>>2]==3){J[b+8>>2]=J[b+8>>2]|1<>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;c=J[b+4>>2];d=J[b>>2];J[699344]=0;ca(3447,f+4|0,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[f+8>>2];J[a>>2]=J[f+4>>2];J[a+4>>2]=c;J[a+8>>2]=J[f+12>>2];uc(ld(b))}J[699344]=0;$(3370,f+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;fc=f+32|0;return}a=Z()|0;uc(c);ba(a|0);B()}break a}b=Z()|0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}ba(Z()|0);B()}function KA(a){var b=0,c=0,d=0,e=0,f=0, +g=0;c=fc-16|0;fc=c;J[c+12>>2]=166;g=J[c+12>>2];b=J[a+656>>2];if(b){d=J[a+660>>2];if(d){b=0;while(1){e=J[J[a+656>>2]+(b<<2)>>2];a:{if(L[e+12>>1]!=65)break a;f=J[e+16>>2];if(ud(69923,f,4))break a;uc(f);uc(e);d=J[a+660>>2]}b=b+1|0;if(d>>>0>b>>>0)continue;break}b=J[a+656>>2]}uc(b);J[a+660>>2]=0}if(!Bn(a,83520,g))Uc(J[a+628>>2],70192,71124,0);Sg(a+40|0,0,208);J[a+100>>2]=-1;J[a+92>>2]=65537;J[a+96>>2]=65537;J[a+192>>2]=1;J[a+72>>2]=0;J[a+76>>2]=1;I[a+136>>1]=2;J[a+84>>2]=65537;J[a+676>>2]=0;J[a+672>>2]= +513;J[a+668>>2]=514;J[a+664>>2]=0;J[a+652>>2]=515;I[a+208>>1]=1;J[a+204>>2]=131074;b=a- -64|0;J[b>>2]=1;J[b+4>>2]=0;b=J[686056];if(b)kc[b|0](a);J[c>>2]=1;ke(a,259,c);J[a+588>>2]=-1;J[a+508>>2]=-1;J[a+12>>2]=J[a+12>>2]&-1033;fc=c+16|0;return 1}function X$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-80|0;fc=c;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;a:{if(J[b>>2]==7){b:{if(J[Ec(J[b+8>>2],837087,c- -64|0,0)>>2]!=6)break b;d=J[c+72>>2];if(J[d+12>>2]<2)break b;while(1){if(J[Sc(d,e, +c+48|0,0)>>2]==1){if(J[Sc(J[c+72>>2],e|1,c+32|0,0)>>2]==7){f=J[a+156>>2];d=vc(20);J[699344]=0;g=ga(3546,d|0,J[c+56>>2],J[c+40>>2])|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;sd(f,g)}yc(c+32|0)}yc(c+48|0);e=e+2|0;d=J[c+72>>2];if((e|0)<(J[d+12>>2]-1|0))continue;break}}yc(c- -64|0);c:{if(J[Ec(J[b+8>>2],798515,c+16|0,0)>>2]!=6)break c;d=J[c+24>>2];if(J[d+12>>2]<=0)break c;e=0;while(1){Sc(d,e,c,0);X$(a,c);yc(c);e=e+1|0;d=J[c+24>>2];if((e|0)>2])continue;break}}yc(c+16|0)}fc=c+80|0;return}a=Z()| +0;uc(d);ba(a|0);B()}function vla(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;f=fc-32|0;fc=f;d=J[a+28>>2];J[f+16>>2]=d;g=J[a+20>>2];J[f+28>>2]=c;J[f+24>>2]=b;b=g-d|0;J[f+20>>2]=b;g=b+c|0;i=2;a:{b:{b=f+16|0;d=Ra(J[a+60>>2],b|0,2,f+12|0)|0;if(d){J[698583]=d;d=-1}else d=0;c:{d:{if(d){d=b;break d}while(1){e=J[f+12>>2];if((e|0)==(g|0))break c;if((e|0)<0){d=b;break b}h=J[b+4>>2];j=h>>>0>>0;d=(j<<3)+b|0;h=e-(j?h:0)|0;J[d>>2]=h+J[d>>2];b=(j?12:4)+b|0;J[b>>2]=J[b>>2]-h;g=g-e|0;b=d;i=i-j|0;e= +Ra(J[a+60>>2],b|0,i|0,f+12|0)|0;if(e){J[698583]=e;e=-1}else e=0;if(!e)continue;break}}if((g|0)!=-1)break b}b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;J[a+16>>2]=b+J[a+48>>2];a=c;break a}J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=J[a>>2]|32;a=0;if((i|0)==2)break a;a=c-J[d+4>>2]|0}fc=f+32|0;return a|0}function sIa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-32|0;fc=e;g=e+20|0;kc[J[J[b>>2]+12>>2]](g,b,c);f=K[e+31|0];b=f<<24>>24;c=(b|0)<0;a:{b:{c:{f=c?J[e+24>>2]:f;d:{if(!f)break d;f=f-1|0;if(J[(f<< +2)+(c?J[e+20>>2]:g)>>2]!=47)break d;J[699344]=0;ca(2971,g|0,f|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break c;b=K[e+31|0]}e:{if(b<<24>>24>=0){J[e+16>>2]=J[e+28>>2];b=J[e+24>>2];J[e+8>>2]=J[e+20>>2];J[e+12>>2]=b;break e}J[699344]=0;ca(15,e+8|0,J[e+20>>2],J[e+24>>2]);b=J[699344];J[699344]=0;if((b|0)==1)break c}J[699344]=0;ca(2985,a|0,e+8|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;if(H[e+19|0]<0)uc(J[e+8>>2]);if(H[e+31|0]<0)uc(J[e+20>>2]);fc=e+32|0;return}b=Z()|0;break a}b=Z()|0;if(H[e+19|0]>= +0)break a;uc(J[e+8>>2])}if(H[e+31|0]<0)uc(J[e+20>>2]);ba(b|0);B()}function nma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;a:{b:{if(J[a+56>>2]==3){Tc(b,2462712,-1);Tc(b,2462744,-1);Tc(b,2462792,-1);Oj(b,J[J[a+624>>2]+4>>2]);Tc(b,2457768,-1);Oj(b,J[J[a+624>>2]+4>>2]);Tc(b,2452492,-1);Tc(b,2462848,-1);Tc(b,2463080,-1);Tc(b,2463120,-1);Tc(b,2463172,-1);GT(a,b);Tc(b,2463224,-1);Tc(b,2463280,-1);H[c+15|0]=1;Lv(a,b,c+15|0);Kv(a,b);e=2463356;f=2463316;break b}Tc(b,2463392,-1);Tc(b,2463280,-1); +H[c+14|0]=1;Lv(a,b,c+14|0);Kv(a,b);Tc(b,2463316,-1);e=2463600;if(J[a+676>>2]==J[a+680>>2]|J[a+56>>2]!=1)break a;Tc(b,2463420,-1);Tc(b,2463464,-1);FT(b);Tc(b,2463504,-1);f=2463552;d=J[a+676>>2];a=J[a+680>>2];if((d|0)==(a|0))break b;while(1){g=J[d>>2];kc[J[J[g>>2]+16>>2]](g,b);d=d+8|0;if((a|0)!=(d|0))continue;break}}Tc(b,f,-1)}Tc(b,e,-1);fc=c+16|0}function epb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=fc-16|0;fc=g;f=J[a+712>>2];J[g+12>>2]=0;a:{if(!f)break a;e=J[f+3132>>2];if(!e){e=he(J[a+100>>2],2, +g+12|0);c=J[g+12>>2];if(c)break a;I[e>>1]=0;a=J[f+1500>>2];b:{if((a|0)==65535)break b;c:{if(a>>>0>=391){a=a-391|0;if(a>>>0>=M[f+1356>>2])break b;a=J[J[f+1360>>2]+(a<<2)>>2];break c}c=J[f+3084>>2];if(!c)break b;a=kc[J[c+20>>2]](a)|0}if(!a)break b;a=Je(a,241425);if(!a)break b;c=a+7|0;a=Je(c,241530);if(!a|(a|0)==(c|0))break b;while(1){d:{d=K[c|0];e:{if((d-48&255)>>>0<=9){d=L[e>>1];if(d>>>0>6551)break d;d=P(d,10);I[e>>1]=d;I[e>>1]=(d+H[c|0]|0)-48;break e}d=d-10|0;if(d>>>0>22|!(1<>1]=0}J[f+3132>>2]=e;c=J[g+12>>2]}I[b>>1]=L[e>>1]}fc=g+16|0;return c|0}function cja(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=fc-32|0;fc=e;a:{if(L[a+84>>1]!=1){Uc(J[a+628>>2],J[a>>2],87716,0);break a}b=J[a+584>>2];b:{if(K[a+13|0]&4){h=Cn(a);c=a+68|0;break b}h=wj(a);c=a+56|0}g=J[c>>2];J[b+12>>2]=g;J[b+8>>2]=h;f=1;f=H[b+28|0]&1?f:L[a+88>>1]==4;J[b+80>>2]=0;c:{c=g>>>0<4294967264?g+31&-32:0;c=f?(c|0)>=0?c<<1:0:c;if(!(!c|(c|0)<0)){i=c<<1;if(i)break c}b= +J[a>>2];a=J[a+628>>2];J[e>>2]=g;Uc(a,b,87910,e);break a}d=bh(a,i,4,87953);J[b+80>>2]=d;if(!d){d=0;break a}J[b+88>>2]=d;J[b+84>>2]=f?d+(c<<2)|0:0;if(!(!(H[b+28|0]&1)|L[a+88>>1]!=3)){J[a+556>>2]=617;J[a+548>>2]=617;J[a+540>>2]=617}b=J[a+584>>2];if(f){d=b;b=Dc(h);J[d+96>>2]=b;d=1;if(b)break a;b=J[a+628>>2];J[e+16>>2]=J[a>>2];Uc(b,88083,88233,e+16|0);d=0;break a}J[b+96>>2]=0;d=1}fc=e+32|0;return d|0}function _Ea(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;if((c|0)<=0)return 0;e=J[a+12>> +2];d=e+c|0;a:{b:{if((d|0)<=(J[a+16>>2]+4095&-4096))break b;e=J[a+20>>2];c:{if((d|0)<=e<<12)break c;d=d+65535>>12&-16;J[a+20>>2]=d;xe(a+28|0,d,4);f=J[a+20>>2];if((f|0)<=(e|0))break c;d=J[a+24>>2];g=e<<2;h=d+g|0;e=h+4|0;i=d^-1;d=d+(f<<2)|0;Ac(h,0,((i+(d>>>0>>0?e:d)|0)-g&-4)+4|0)}e=J[a+12>>2];f=e+c|0;if((f|0)<=(e&-4096))break b;d=e>>12;while(1){g=J[a+24>>2]+(d<<2)|0;if(!J[g>>2])j=g,k=vc(4096),J[j>>2]=k;d=d+1|0;if((f|0)>d<<12)continue;break}if((c|0)<=0)break a}d=c;while(1){g=e&4095;f=4096-g|0;f=(d| +0)<(f|0)?d:f;xc(g+J[J[a+24>>2]+(e>>12<<2)>>2]|0,b,f);e=f+J[a+12>>2]|0;J[a+12>>2]=e;b=b+f|0;d=d-f|0;if((d|0)>0)continue;break}}if(J[a+16>>2]<(e|0))J[a+16>>2]=e;return c|0}function wx(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(J[a+32>>2]|!a)break a;e=J[a+24>>2];d=J[a+8>>2];if(!((e|0)==(d|0)|d>>>0>2147483646)){J[a+24>>2]=d;e=d}d=J[a+20>>2];f=J[a+4>>2];if(!((d|0)==(f|0)|f>>>0>2147483646)){J[a+20>>2]=f;d=f}if(b-1>>>0>=d>>>0)break a;d=d-b|0;J[a+20>>2]=d;b:{c:{d:switch(J[a+12>>2]-2|0){case 0:c=e-b|0;J[a+24>>2]= +c;J[a>>2]=J[a>>2]+b;break b;case 1:if(J[a+16>>2])break c;break;default:break d}c=J[a>>2];cd(c,b+c|0,d);H[J[a>>2]+J[a+20>>2]|0]=0;c=J[a+24>>2];break b}c=e-b|0;J[a+24>>2]=c;e=J[a>>2]+b|0;J[a>>2]=e;f=J[a+16>>2];if(!f)break b;g=e-f|0;if(g>>>0>>0)break b;cd(f,e,d);c=J[a+16>>2];J[a>>2]=c;H[c+J[a+20>>2]|0]=0;c=J[a+24>>2]+g|0;J[a+24>>2]=c}J[a+8>>2]=c>>>0>=2147483647?2147483647:c;d=a;a=J[a+20>>2];J[d+4>>2]=a>>>0>=2147483647?2147483647:a;c=b}return c}function gM(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l= +0;i=J[c>>2];k=O[J[P(i,12)+e>>2]>>3];f=J[b>>2];j=O[J[P(f,12)+e>>2]>>3];g=J[a>>2];l=O[J[P(g,12)+e>>2]>>3];a:{if(!(j>2]=i;J[c>>2]=f;h=1;g=J[b>>2];i=J[a>>2];if(!(O[J[P(g,12)+e>>2]>>3]>2]>>3]))break a;J[a>>2]=g;J[b>>2]=i;f=J[c>>2];h=2;break a}b:{if(k>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=f;J[b>>2]=g;h=1;f=J[c>>2];if(!(O[J[P(f,12)+e>>2]>>3]>2]=f;J[c>>2]=g;h=2}f=g}g=J[d>>2];if(O[J[P(g,12)+e>>2]>>3]>2]>>3]){J[c>>2]=g;J[d>> +2]=f;d=J[c>>2];f=J[b>>2];if(!(O[J[P(d,12)+e>>2]>>3]>2]>>3]))return h+1|0;J[b>>2]=d;J[c>>2]=f;c=J[b>>2];d=J[a>>2];if(!(O[J[P(c,12)+e>>2]>>3]>2]>>3]))return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function Jma(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;PG(a+240|0,b);J[a+48>>2]=0;J[a+52>>2]=0;J[a+260>>2]=J[a+256>>2];a:{e=J[c>>2];i=J[c+4>>2];if((e|0)==(i|0))break a;j=a+256|0;b:{while(1){c:{c=J[a+260>>2];d:{if((c|0)!=J[a+264>>2]){O[c>>3]=O[e>>3];J[a+260>> +2]=c+8;break d}g=J[j>>2];d=c-g|0;h=d>>3;f=h+1|0;if(f>>>0>=536870912)break c;b=d>>2;d=d>>>0>=2147483640?536870911:b>>>0>f>>>0?b:f;if(d){if(d>>>0>=536870912)break b;f=vc(d<<3)}else f=0;b=f+(h<<3)|0;O[b>>3]=O[e>>3];h=b+8|0;if((c|0)!=(g|0))while(1){b=b-8|0;c=c-8|0;O[b>>3]=O[c>>3];if((c|0)!=(g|0))continue;break}J[a+264>>2]=f+(d<<3);J[a+260>>2]=h;J[a+256>>2]=b;if(!g)break d;uc(g)}k=O[e>>3]+O[a+48>>3];O[a+48>>3]=k;e=e+8|0;if((i|0)!=(e|0))continue;break a}break}Fg(j);B()}Pd();B()}O[a+40>>3]=O[a+32>>3]+k} +function vFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;f=J[b>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;c=J[b>>2]}J[d+12>>2]=c;J[a+8>>2]=1;J[a+4>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a>>2]=2395600;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=c;a:{b:{c:{if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;b=J[699344];J[699344]=0;if((b|0)==1)break c;e=J[d+12>>2]}J[a+32>>2]=e;J[699344]=0;ha(5213,a+40|0,a+36|0,0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1){c=Z()|0;zc(a+32|0);break a}Ac(a+48|0,0,304);J[d+12>>2]=0;d:{if(!e)break d; +J[699344]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break d;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}H[a+352|0]=0;J[a>>2]=2395644;fc=d+16|0;return a|0}c=Z()|0;break a}ea(0)|0;Bc();B()}nd(a);zc(d+12|0);ba(c|0);B()}function qnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;J[f+12>>2]=0;a:{if(J[c+76>>2])break a;e=8;d=a+1|0;if(d>>>0>b>>>0)break a;a=K[a|0];g=a&15;a=g+(a>>>4|0)|0;if((a<<1)+d>>>0>b>>>0)break a;b=_c(J[c>>2], +4,0,a,0,f+12|0);e=J[f+12>>2];if(e)break a;J[c+76>>2]=b;J[c- -64>>2]=(g<<2)+b;e=0;if(!a)break a;c=a-1|0;g=a&3;if(g)while(1){h=K[d|0]|K[d+1|0]<<8;J[b>>2]=(h<<8|h>>>8)<<16>>16;b=b+4|0;a=a-1|0;d=d+2|0;e=e+1|0;if((g|0)!=(e|0))continue;break}if(c>>>0>=3)while(1){c=K[d|0]|K[d+1|0]<<8;J[b>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+2|0]|K[d+3|0]<<8;J[b+4>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+4|0]|K[d+5|0]<<8;J[b+8>>2]=(c<<8|c>>>8)<<16>>16;c=K[d+6|0]|K[d+7|0]<<8;J[b+12>>2]=(c<<8|c>>>8)<<16>>16;b=b+16|0;d=d+8|0;a=a-4|0;if(a)continue; +break}e=J[f+12>>2]}fc=f+16|0;return e|0}function F6(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+28>>2];a:{if((d|0)==-1)break a;e=J[a+36>>2];h=J[a+40>>2];if(e>>>0>=h>>>0)break a;k=J[a>>2];d=d+1|0;l=J[a+16>>2]+16|0;while(1){b:{b=P(e,12)+l|0;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);g=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=d>>>0>g>>>0?d:g;c=K[b+7|0];f=K[b+5|0]<<16|K[b+4|0]<<24|K[b+6|0]<<8;i=c|f;if(d>>>0>i>>>0)break b;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);j=b<<24| +(b&65280)<<8|(b>>>8&65280|b>>>24);b=(f|1)+c|0;c:{while(1){c=d-g|0;if((c^-1)>>>0>>0)break b;c=c+j|0;if(c)break c;c=d+1|0;if(!c)break a;f=d>>>0>>0;d=c;if(f)continue;break}d=b;break b}if(c>>>0>=M[k+16>>2])break b;J[a+36>>2]=e;J[a+32>>2]=c;J[a+28>>2]=d;return}e=e+1|0;if((h|0)!=(e|0))continue;break}}H[a+24|0]=0}function uf(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+112>>2];d=J[a+116>>2];i=(b|d)!=0;h=b;e=J[a+4>>2];f=J[a+44>>2];b=e-f|0;g=b;c=b+J[a+120>>2]|0;b=J[a+124>>2]+(b>>31)|0;a:{b=c>>>0< +g>>>0?b+1|0:b;if(!(((b|0)>=(d|0)&c>>>0>=h>>>0|(b|0)>(d|0))&i)){i=Nz(a);if((i|0)>=0)break a;e=J[a+4>>2];f=J[a+44>>2]}J[a+112>>2]=-1;J[a+116>>2]=-1;J[a+104>>2]=e;g=c;c=f-e|0;d=g+c|0;b=(c>>31)+b|0;J[a+120>>2]=d;J[a+124>>2]=c>>>0>d>>>0?b+1|0:b;return-1}d=c+1|0;b=d?b:b+1|0;h=J[a+4>>2];f=J[a+8>>2];c=J[a+116>>2];g=c;e=J[a+112>>2];b:{if(!(c|e))break b;c=e-d|0;e=g-(b+(d>>>0>e>>>0)|0)|0;j=f-h|0;g=j>>31;if((e|0)>=(g|0)&c>>>0>=j>>>0|(e|0)>(g|0))break b;f=c+h|0}J[a+104>>2]=f;c=J[a+44>>2];f=c-h|0;d=f+d|0;b=(f>> +31)+b|0;J[a+120>>2]=d;J[a+124>>2]=d>>>0>>0?b+1|0:b;if(c>>>0>=h>>>0)H[h-1|0]=i;return i}function n7a(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;var h=0;J[a+4>>2]=1;J[a>>2]=351308;h=vc(80);J[h+32>>2]=d;J[h+28>>2]=c;H[h+24|0]=0;J[h+4>>2]=b;J[h+8>>2]=b;e=P(e?-4:4,c);J[h+20>>2]=e;J[h+16>>2]=d;J[h+12>>2]=c;c=h+4|0;a:{if(g){if((e|0)<0)J[h+8>>2]=P(e,1-d|0)+b;J[h+44>>2]=0;J[h+48>>2]=2147483632;J[h+36>>2]=c;J[h>>2]=351404;break a}if(f){if((e|0)<0)J[h+8>>2]=P(e,1-d|0)+b;J[h+44>>2]=0;J[h+48>> +2]=2147483632;J[h+36>>2]=c;J[h>>2]=351532;break a}if((e|0)<0)J[h+8>>2]=P(e,1-d|0)+b;J[h+44>>2]=0;J[h+48>>2]=2147483632;J[h+36>>2]=c;J[h>>2]=351600;J[h+56>>2]=0;J[h+60>>2]=0;b=h- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[h+72>>2]=0;J[h+76>>2]=h+36;J[a+8>>2]=h;return a|0}J[h+56>>2]=0;J[h+60>>2]=0;b=h- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[h+72>>2]=0;J[h+76>>2]=h+36;J[a+8>>2]=h;return a|0}function Gq(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{if(J[a+188>>2])break a;g=J[a+180>>2];if(!(g|J[a+184>>2]))break a;h=J[a+156>>2];b:{i= +J[a+192>>2]+(J[a+160>>2]-J[a+172>>2]<<2)|0;e=J[i>>2];c:{if(!e){e=0;break c}f=J[e>>2];if((h|0)<(f|0))break c;d:{while(1){d=e;if((f|0)==(h|0))break b;e=J[d+12>>2];if(e){f=J[e>>2];if((h|0)<(f|0))break d;continue}break}e=0}i=d+12|0}d=J[a+204>>2];if((d|0)>=J[a+200>>2]){PN(a,1);g=J[a+180>>2];e=J[i>>2];d=J[a+204>>2]}J[a+204>>2]=d+1;f=J[a+196>>2]+(d<<4)|0;J[f+8>>2]=g;J[f>>2]=h;d=J[a+184>>2];J[f+12>>2]=e;J[f+4>>2]=d;J[i>>2]=f;break a}J[d+8>>2]=J[d+8>>2]+g;J[d+4>>2]=J[d+4>>2]+J[a+184>>2]}J[a+180>>2]=0;J[a+ +184>>2]=0;J[a+160>>2]=c;d=J[a+164>>2];J[a+156>>2]=(b|0)<(d|0)?d-1|0:b;e=1;J[a+188>>2]=J[a+176>>2]<=(c|0)|J[a+172>>2]>(c|0)?e:J[a+168>>2]<=(b|0)}function p6(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;h=kc[J[a+596>>2]](a)|0;f=J[b>>2];a:{if(!f)break a;g=a+36|0;e=1;while(1){b=J[a+28>>2];if((b|0)<=1){if(K[a+565|0])J[a+12>>2]=129;J[a+28>>2]=0;break a}d=b-2|0;J[a+28>>2]=d;c=b<<2;b=J[a+24>>2];c=L[(c+b|0)-4>>1];b:{if(c>>>0>1]){d=J[b+(d<<2)>>2];b=d>>>4&15;c:{d:switch(K[a+372|0]-113|0){case 0:b=b|16;break c;case 1:break d; +default:break c}b=b|32}if((L[a+336>>1]+b|0)!=(h|0))break b;b=d&15;b=(b>>>0>7?-7:-8)+b<<6-L[a+338>>1];if(!(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)){if(!((L[a+304>>1]?K[a+564|0]:0)|K[c+J[a+60>>2]|0]&16)|(K[a+617|0]?K[a+616|0]:0))break b;kc[J[a+588>>2]](a,g,c,b);break b}kc[J[a+588>>2]](a,g,c,b);break b}if(!K[a+565|0])break b;J[a+12>>2]=134}e=e+1|0;if(f>>>0>=e>>>0)continue;break}}J[a+32>>2]=J[a+28>>2]}function Ura(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a>>2]=2436744;J[a+4>>2]=0;b=J[685894];J[a+16>> +2]=0;J[a+20>>2]=0;J[a+12>>2]=b;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[699344]=0;d=aa(5250,a+16|0,2401340)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{if((b|0)!=1){J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[699344]=0;b=a+44|0;J[b>>2]=2436816;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1)break d;J[a+60>>2]=0;c=J[685894];J[a+68>>2]=0;J[a+72>>2]=0;J[a- -64>>2]=c;J[a+76>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[699344]=0;aa(5250, +a+68|0,2436836)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[a+96>>2]=0;return a|0}c=Z()|0;break a}c=Z()|0;break b}c=Z()|0;wc(a+60|0);id(b)}Md(d)}wc(a+8|0);nd(a);ba(c|0);B()}function RS(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;A(+a);h=v(1)|0;v(0)|0;g=h&2147483640;g=(g|0)==1072010279|g>>>0<1072010279;if(!g){i=(h|0)>0|(h|0)>=0;a=.7853981633974483-(i?a:-a)+(3.061616997868383E-17-(i?b:-b));b=0}e=a*a;d=a*e;j=d*.3333333333333341;f=d;d=e*e;e=j+(e*(f*(d*(d*(d*(d*(d*-1.8558637485527546E-5+7.817944429395571E-5)+ +5.880412408202641E-4)+.0035920791075913124)+.021869488294859542)+.13333333333320124+e*(d*(d*(d*(d*(d*2.590730518636337E-5+7.140724913826082E-5)+2.464631348184699E-4)+.0014562094543252903)+.0088632398235993)+.05396825397622605))+b)+b);b=a+e;if(!g){f=b*b;d=b;b=+(1-(c<<1)|0);a=a+(e-f/(d+b));a=b-(a+a);return i?a:-a}if(c){f=-1/b;A(+f);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);d=+z();A(+b);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);b=+z();b=f*(d*(e-(b-a))+(d*b+1))+d}return b}function Nha(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e= +0,f=0,g=0,h=0;e=J[a+4>>2];if(!e)return 0;a:{b:{c:{if(J[e+76>>2]>=0){if((c|0)<2)break c;break b}if((c|0)>1)break b}a=J[e+72>>2];J[e+72>>2]=a-1|a;a=0;if((c|0)<=0)break a;H[b|0]=0;a=b;break a}c=c-1|0;a=b;d:{while(1){e:{f:{g:{d=J[e+4>>2];f=J[e+8>>2];if((d|0)==(f|0))break g;g=Cg(d,10,f-d|0);h:{if(g){d=J[e+4>>2];f=(g-d|0)+1|0;break h}d=J[e+4>>2];f=J[e+8>>2]-d|0}h=d;d=c>>>0>f>>>0?f:c;xc(a,h,d);f=d+J[e+4>>2]|0;J[e+4>>2]=f;a=a+d|0;if(g)break e;c=c-d|0;if(!c)break e;if((f|0)==J[e+8>>2])break g;J[e+4>>2]=f+ +1;d=K[f|0];break f}d=Nz(e);if((d|0)>=0)break f;c=0;if((a|0)==(b|0))break d;if(K[e|0]&16)break e;break d}H[a|0]=d;a=a+1|0;if((d&255)==10)break e;c=c-1|0;if(c)continue}break}if(!b){c=0;break d}H[a|0]=0;c=b}a=c}return a|0}function zaa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[J[a+2248>>2]+88>>2];c=J[b+1168>>2];c=(J[b+1176>>2]+P(c,J[a+572>>2])|0)+P(c,J[a+2268>>2])|0;b=J[b+1164>>2];b=(c+P(b,J[a+580>>2])|0)+P(b,J[a+2264>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];a:{b:{if(K[a+2253|0]!=4){if((d|0)<=0)break a; +d=0;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=J[a+584>>2]+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}break b}if((d|0)<=0)break a;d=0;while(1){H[b|0]=K[c|0];c=c+1|0;b=J[a+584>>2]+b|0;d=d+1|0;e=J[a+588>>2];if((d|0)<(e|0))continue;break}}if((e|0)<=0)break a;b=J[a+540>>2];b=(J[b+1176>>2]+P(J[a+572>>2],J[b+1168>>2])|0)+P(J[a+580>>2],J[b+1164>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;e=0;while(1){H[b|0]=K[c|0];c=c+1|0;b=J[a+584>>2]+b|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function vT(a){var b= +0,c=0,d=Q(0),e=0,f=Q(0),g=Q(0);e=(C(a),v(2));c=e&2147483647;if(c>>>0>=1283457024)return(e&2147483647)>>>0>2139095040?a:(x(2,(C(a),v(2))&-2147483648|1070141402),D());a:{b:{if(c>>>0<=1054867455){b=-1;if(c>>>0>=964689920)break b;break a}a=Q(R(a));if(c>>>0<=1066926079){if(c>>>0<=1060110335){a=Q(Q(Q(a+a)+Q(-1))/Q(a+Q(2)));b=0;break b}a=Q(Q(a+Q(-1))/Q(a+Q(1)));b=1;break b}if(c>>>0<=1075576831){a=Q(Q(a+Q(-1.5))/Q(Q(a*Q(1.5))+Q(1)));b=2;break b}a=Q(Q(-1)/a);b=3}f=Q(a*a);d=Q(f*f);g=Q(d*Q(Q(d*Q(-.106480173766613))+ +Q(-.19999158382415771)));d=Q(f*Q(Q(d*Q(Q(d*Q(.06168760731816292))+Q(.14253635704517365)))+Q(.333333283662796)));if(c>>>0<=1054867455)return Q(a-Q(a*Q(g+d)));b=b<<2;a=Q(N[b+2464208>>2]-Q(Q(Q(a*Q(g+d))-N[b+2464224>>2])-a));a=(e|0)<0?Q(-a):a}return a}function vA(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;J[a>>2]=0;a:{b:{c:{d:{e:{if(!c)break e;f=Yc(c);if((f|0)<=0)break e;d=J[J[b>>2]+8>>2];J[699344]=0;g=d;d=e+12|0;ca(g|0,d|0,b|0,f|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]= +0;aa(5153,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;b=J[e+12>>2];J[e+12>>2]=0;f:{if(!b)break f;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(d)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}a=J[J[a>>2]+12>>2];b=K[c|0];g:{if(!b)break g;f=c+f|0;while(1){H[a|0]=b;a=a+1|0;b=K[c+1|0];if(!b)break g;c=c+1|0;if((f|0)!=(c|0))continue;break}}H[a|0]=0}fc=e+16|0;return}c=Z()|0;break b}c=Z()|0;zc(e+12|0)}zc(a);ba(c|0);B()}ea(0)| +0;Bc();B()}function o0(a,b,c){var d=0,e=0,f=0,g=0,h=0;if(!(J[a+108>>2]|!c))while(1){if(!J[a+108>>2]){d=J[a+16>>2];g=J[a+12>>2]|(H[b|0]&1)<<23-d;e=d+1|0;if((d|0)>=7)while(1){d=J[a+112>>2];J[a+112>>2]=d+1;H[d|0]=g>>>16;d=J[a+116>>2]-1|0;J[a+116>>2]=d;if(!d){f=J[a+120>>2];d=J[f+24>>2];if(!(kc[J[d+12>>2]](f)|0)){f=J[a+120>>2];h=J[f>>2];J[h+20>>2]=25;kc[J[h>>2]](f)}J[a+112>>2]=J[d>>2];J[a+116>>2]=J[d+4>>2]}d=e;a:{if((g&16711680)!=16711680)break a;e=J[a+112>>2];J[a+112>>2]=e+1;H[e|0]=0;e=J[a+116>>2]-1| +0;J[a+116>>2]=e;if(e)break a;f=J[a+120>>2];e=J[f+24>>2];if(!(kc[J[e+12>>2]](f)|0)){f=J[a+120>>2];h=J[f>>2];J[h+20>>2]=25;kc[J[h>>2]](f)}J[a+112>>2]=J[e>>2];J[a+116>>2]=J[e+4>>2]}e=d-8|0;g=g<<8;if((d|0)>15)continue;break}J[a+16>>2]=e;J[a+12>>2]=g}b=b+1|0;c=c-1|0;if(c)continue;break}}function LI(a,b,c,d){var e=0,f=0,g=0,h=0;e=J[c>>2];h=J[d>>2];a:{if(h>>>0>=b>>>0)break a;while(1){f=4;b:{c:switch(H[a+h|0]-43|0){case 2:f=132;break b;case 3:f=16;break b;case 5:f=8;break b;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:f= +264;break b;case 0:break b;case 26:case 58:break c;default:break a}f=32}d:{e:switch((f&60|e&3)-4|0){case 0:if(e&60)break a;g=e|f;break d;case 12:if(e&16)break a;g=e|f;if(e&8)break d;g=e&448|f|1;break d;case 4:g=(e&16?e&384|17:e)|f|64;break d;case 28:if(!(e&8))break a;g=e&448|2;break d;case 5:g=e|f|64;break d;case 29:if(!(e&8))break a;g=e&448|2;break d;case 2:if(e&60)break a;g=e|4;break d;case 6:break e;default:break a}g=e|72}e=g;h=h+1|0;if((h|0)!=(b|0))continue;break}h=b}J[c>>2]=e;J[d>>2]=h;return e>>> +3&1}function znb(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){e=J[J[a+96>>2]+8>>2];J[a+20>>2]=0;J[a+24>>2]=0;c=J[a+100>>2];b=c;d=J[a+368>>2];if(d)kc[J[b+8>>2]](b,d);J[a+368>>2]=0;b=J[a+372>>2];if(b)kc[J[c+8>>2]](c,b);J[a+372>>2]=0;b=J[a+376>>2];if(b)kc[J[c+8>>2]](c,b);J[a+376>>2]=0;b=J[a+364>>2];if(b)kc[J[c+8>>2]](c,b);J[a+360>>2]=0;J[a+364>>2]=0;J[a+348>>2]=0;J[a+352>>2]=0;b=J[a+388>>2];if(b)kc[J[c+8>>2]](c,b);J[a+380>>2]=0;J[a+384>>2]=0;J[a+388>>2]=0;b=J[a+416>>2];if(b)kc[J[c+8>>2]](c,b);J[a+408>>2]=0;J[a+ +412>>2]=0;J[a+416>>2]=0;b=J[a+396>>2];if(b)kc[J[c+8>>2]](c,b);J[a+392>>2]=0;J[a+396>>2]=0;b=J[a+424>>2];if(b)while(1){d=J[b>>2];if(b)kc[J[c+8>>2]](c,b);b=d;if(b)continue;break}J[a+428>>2]=0;J[a+420>>2]=0;J[a+424>>2]=0;b=J[a+32>>2];if(b)kc[J[e+8>>2]](e,b);J[a+32>>2]=0}}function zE(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=fc-32|0;fc=c;a:{if(!a)break a;e=!b;if(e)break a;Df(a,c+28|0,c+24|0,c+20|0);f=J[c+28>>2];g=J[c+24>>2];b:{if(e)break b;e=J[b>>2];if((e|0)>=(f|0))break b;h=J[b+4>>2];if((e+J[b+8>>2]|0)<= +0|(h|0)>=(g|0)|(J[b+12>>2]+h|0)<=0)break b;d=l9(b);b=J[d>>2];if((b|0)<0){J[d>>2]=0;J[d+8>>2]=b+J[d+8>>2];b=0}e=b;b=J[d+4>>2];if((b|0)<0){J[d+4>>2]=0;J[d+12>>2]=b+J[d+12>>2];b=0}if((e+J[d+8>>2]|0)>(f|0))J[d+8>>2]=f-e;if((b+J[d+12>>2]|0)<=(g|0))break b;J[d+12>>2]=g-b}J[c>>2]=d;if(!d)break a;ss(d,c+16|0,c+12|0,c+8|0,c+4|0);b=xh(J[c+8>>2],J[c+4>>2],J[c+20>>2]);if(!b)break a;if(!(!b|!a|(a|0)==(b|0))){J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2]}BE(b,a);Cf(b,0,0,J[c+8>>2],J[c+4>>2],24,a,J[c+16>>2],J[c+12>> +2]);WN(c);i=b}fc=c+32|0;return i}function AP(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=O[b+40>>3];e=O[b+80>>3];d=O[b+72>>3];f=O[b+48>>3];g=c*e-d*f;h=O[b+32>>3];i=h*d;d=O[b+64>>3];c=O[b+16>>3]*(i-d*c)+(O[b>>3]*g-(h*e-d*f)*O[b+8>>3]);if((c>=0?c:-c)<1E-6)a=-1;else{O[a>>3]=g/c;O[a+32>>3]=-(O[b+32>>3]*O[b+80>>3]-O[b+64>>3]*O[b+48>>3])/c;O[a+64>>3]=(O[b+32>>3]*O[b+72>>3]-O[b+64>>3]*O[b+40>>3])/c;O[a+8>>3]=-(O[b+8>>3]*O[b+80>>3]-O[b+72>>3]*O[b+16>>3])/c;O[a+40>>3]=(O[b>>3]*O[b+80>>3]-O[b+64>>3]*O[b+16>>3])/ +c;O[a+72>>3]=-(O[b>>3]*O[b+72>>3]-O[b+64>>3]*O[b+8>>3])/c;O[a+16>>3]=(O[b+8>>3]*O[b+48>>3]-O[b+40>>3]*O[b+16>>3])/c;O[a+48>>3]=-(O[b>>3]*O[b+48>>3]-O[b+16>>3]*O[b+32>>3])/c;O[a+80>>3]=(O[b>>3]*O[b+40>>3]-O[b+32>>3]*O[b+8>>3])/c;O[a+24>>3]=-O[b+24>>3];O[a+56>>3]=-O[b+56>>3];O[a+88>>3]=-O[b+88>>3];a=0}return a}function rhb(a){a=a|0;var b=0,c=0,d=0;b=J[a+440>>2];a:{b:{if(J[b+8>>2]){J[b+8>>2]=0;kc[J[J[a+480>>2]>>2]](a,0);kc[J[J[a+452>>2]>>2]](a,2);c=2;break b}c:{if(J[a+136>>2]|!J[a+84>>2])break c;if(!(!J[a+ +92>>2]|!J[a+108>>2])){J[a+480>>2]=J[b+24>>2];J[b+8>>2]=1;break c}if(J[a+100>>2]){J[a+480>>2]=J[b+20>>2];break c}c=J[a>>2];J[c+20>>2]=47;kc[J[c>>2]](a)}kc[J[J[a+468>>2]>>2]](a);kc[J[J[a+448>>2]+8>>2]](a);if(J[a+68>>2])break a;if(!J[b+16>>2])kc[J[J[a+476>>2]>>2]](a);kc[J[J[a+472>>2]>>2]](a);if(J[a+84>>2])kc[J[J[a+480>>2]>>2]](a,J[b+8>>2]);kc[J[J[a+452>>2]>>2]](a,J[b+8>>2]?3:0);c=0}kc[J[J[a+444>>2]>>2]](a,c)}c=J[a+8>>2];d:{if(!c)break d;d=J[b+12>>2];J[c+12>>2]=d;b=(J[b+8>>2]?2:1)+d|0;J[c+16>>2]=b;if(J[J[a+ +456>>2]+20>>2]|!J[a+64>>2])break d;J[c+16>>2]=b+(J[a+108>>2]?2:1)}}function lnb(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;j=fc-16|0;fc=j;e=6;a:{if((b|0)<0|J[a+16>>2]<=(b|0))break a;g=J[a>>2];e=J[a+8>>2];f=J[a+4>>2];h=f+d|0;if(e>>>0>>0){k=c-g|0;m=(k|0)>=0&e>>>0>k>>>0;while(1){e=((e>>>2|0)+e|0)+1024&-1024;if(h>>>0>e>>>0)continue;break}l=J[a+32>>2];f=he(l,e,j+12|0);J[a>>2]=f;h=J[j+12>>2];if(h){J[a>>2]=g;e=h;break a}if(g){xc(f,g,J[a+8>>2]);f=J[a+16>>2];if((f| +0)>0){n=J[a>>2]-g|0;i=J[a+24>>2];o=i+(f<<2)|0;while(1){f=J[i>>2];if(f)J[i>>2]=f+n;i=i+4|0;if(o>>>0>i>>>0)continue;break}}if(g)kc[J[l+8>>2]](l,g)}J[a+8>>2]=e;c=m?J[a>>2]+k|0:c;e=0;if(h)break a;g=J[a>>2];f=J[a+4>>2]}b=b<<2;J[b+J[a+24>>2]>>2]=g?g+f|0:0;J[b+J[a+28>>2]>>2]=d;xc(J[a>>2]+f|0,c,d);J[a+4>>2]=J[a+4>>2]+d;e=0}fc=j+16|0;return e|0}function _F(a,b,c,d,e){var f=0,g=0,h=0;f=fc-16|0;fc=f;g=f+12|0;b=J[b+28>>2];J[g>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[699344]=0;b=_(6750,g|0)|0;h=J[699344];J[699344]=0;a:{if((h| +0)==1)break a;J[699344]=0;ha(6866,b|0,2632752,2632784,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;b=_(6854,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;c=_(6867,b|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;J[d>>2]=c;J[699344]=0;c=_(6863,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[e>>2]=c;J[699344]=0;da(6864,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);fc=f+16|0;return}c= +Z()|0;a=J[f+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function K8(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;i=Cd(65536E3,b<<16);if((i|0)>=655){n=J[a+52>>2];h=J[a+48>>2];j=J[a+44>>2];f=J[a+40>>2];k=J[a+36>>2];g=J[a+32>>2];l=J[a+28>>2];m=J[a+24>>2];a=c<<16;e=(a|0)<=262144?262144:a;b=S(e)^31;c=m<<16;if((d|0)<=0)a=4915200;else a=Wc(d<<16,i);if((b-S(a)|0)>=15)b=h<<16;else b=Wc(a,e);a:{if((c|0)>(b|0)){a=Cd(l<<16,e);break a}b:{c:{d:{d=g<<16;e:{if((b|0)< +(d|0)){b=Cd(c,e);if((g|0)==(m|0))break e;a=Od(a-b|0,k-l|0,g-m|0)+Cd(l<<16,e)|0;break a}c=f<<16;if((b|0)>=(c|0))break d}b=Cd(d,e);if((f|0)==(g|0)){c=f<<16;break c}a=Od(a-b|0,j-k|0,f-g|0)+Cd(k<<16,e)|0;break a}if((b|0)>=h<<16)break b}b=Cd(c,e);if((f|0)==(h|0))break b;a=Od(a-b|0,n-j|0,h-f|0)+Cd(j<<16,e)|0;break a}a=Cd(n<<16,e)}a=Cd(a,i)+32768>>16}else a=0;return a}function m2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=-9;h=b;a:{b:{c:{d:{e:{e=J[a+4>>2];switch(J[e+48>>2]-8|0){case 1:break d;case 0:break e; +default:break a}}b=J[a+8>>2];d=J[a+12>>2];c=8;if(b>>>0>=d>>>0)break b;c=d-b|0;if((c|0)<=3){xc(e+37|0,b,c);H[J[a+4>>2]+36|0]=c;J[a+8>>2]=b+c;c=11;break b}d=K[b+2|0];f=K[b+1|0];g=K[b|0];c=K[b+3|0];break c}b=J[a+8>>2];d=J[a+12>>2];c=8;if(b>>>0>=d>>>0)break b;c=d-b|0;if((c|0)<=3){xc(e+37|0,b,c);H[J[a+4>>2]+36|0]=c;J[a+8>>2]=b+c;c=11;break b}d=K[b+1|0];f=K[b+2|0];g=K[b+3|0];c=K[b|0]}J[a+8>>2]=b+4;d=f<<16|g<<24|d<<8;c=d|c;if(c>>>0<=1114111&(d&-2048)!=55296)break a;b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+ +3|0]<<24);H[e+37|0]=b;H[e+38|0]=b>>>8;H[e+39|0]=b>>>16;H[e+40|0]=b>>>24;H[J[a+4>>2]+36|0]=4;c=12}J[h>>2]=c;c=65535}return c|0}function cKa(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;b=J[a+44>>2];if(!(b&7)){if(b>>>0>=8){e=J[a+36>>2];i=P(e,7);j=P(e,6);k=P(e,5);l=e<<2;m=P(e,3);n=e<<1;c=J[a+40>>2];o=e<<5;g=8;while(1){AI(a,c,J[a+36>>2],8);Lo(a);f=J[a+32>>2];a:{if(!f)break a;h=J[a>>2];b=0;while(1){d=h+(b<<5)|0;N[(b<<2)+c>>2]=N[d>>2];N[(b+e<<2)+c>>2]=N[d+4>>2];N[(b+n<<2)+c>> +2]=N[d+8>>2];N[(b+m<<2)+c>>2]=N[d+12>>2];b=b+1|0;if((f|0)!=(b|0))continue;break}if(!f)break a;h=J[a>>2];b=0;while(1){d=h+(b<<5)|0;N[(b+l<<2)+c>>2]=N[d+16>>2];N[(b+k<<2)+c>>2]=N[d+20>>2];N[(b+j<<2)+c>>2]=N[d+24>>2];N[(b+i<<2)+c>>2]=N[d+28>>2];b=b+1|0;if((f|0)!=(b|0))continue;break}}c=c+o|0;g=g+8|0;if(g>>>0<=M[a+44>>2])continue;break}}uc(J[a>>2]);uc(a);return}fa(2354509,2350512,3218,2354697);B()}function _9(a,b,c,d){var e=0,f=0;f=J[a+2248>>2];if(!f){Jc(a,1063,0,0);return 1063}e=J[f+88>>2];if(K[e+44| +0]>b>>>0){Jc(a,1036,0,0);return 1036}a:{b:{c:{d:{e:{f:{e=K[e+45|0];switch(e|0){case 2:break d;case 4:break e;case 0:break f;default:break c}}if(!(1<>>0>6)break b;break a}switch(c-4|0){case 0:case 2:break a;default:break b}}switch(c-2|0){case 0:case 4:break a;default:break b}}if((e|0)==6&(c|0)!=6)break b;g:switch(e-8|0){case 0:if(c>>>0>14)break b;if(1<>>0>6)break b;if(1<>2];J[g>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[699344]=0;b=_(6826,g|0)|0;h=J[699344];J[699344]=0;a:{if((h|0)==1)break a;J[699344]=0;ha(6847,b|0,2632752,2632784,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;b=_(6827,g|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;c=_(6848,b|0)| +0;h=J[699344];J[699344]=0;if((h|0)==1)break a;H[d|0]=c;J[699344]=0;c=_(6838,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;H[e|0]=c;J[699344]=0;da(6839,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[g>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);fc=f+16|0;return}c=Z()|0;a=J[f+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function zs(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;J[a+572>>2]=J[a+572>>2]+J[a+576>>2];b=H[a+568|0];a:{if((b| +0)<0|b>>>0>6)break a;while(1){f=J[a+320>>2];if(J[a+580>>2]>2]&(f|0)>J[a+572>>2])break a;d=b+1|0;H[a+568|0]=d;if(b<<24>>24>5)break a;b=d<<24>>24<<2;J[a+584>>2]=J[b+213200>>2];e=J[b+213168>>2];J[a+580>>2]=e;J[a+576>>2]=J[b+213136>>2];g=J[b+213104>>2];J[a+572>>2]=g;h=J[a+316>>2];c=J[b+213232>>2]+(h-e|0)>>>J[b+213264>>2]|0;J[a+588>>2]=c;b=J[a+592>>2];b:{if((b|0)>=2){c=P(b,c);break b}b=J[a+600>>2];if((b|0)<=0)break b;c=J[a+596>>2]+c>>b}J[a+604>>2]=c;c:{if((f|0)<=(g|0)|(e|0)>=(h|0))break c;if((c| +0)<=0)break c;b=J[a+640>>2];c=0;while(1){H[b|0]=0;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}d=K[a+568|0]}b=d;if(b<<24>>24<7)continue;break}}return 0}function QXa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=fc-32|0;fc=f;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[699344]=0;J[f+16>>2]=13;c=ga(3490,c|0,d|0,f+16|0)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)==1)break b;c:{d:{if(J[c>>2]==3){J[b+8>>2]=J[b+8>>2]|1<>2])|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;c=J[b+4>>2];d=J[b>>2];J[699344]=0;ca(3447,f+4|0,d|0,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;c=J[f+8>>2];J[a>>2]=J[f+4>>2];J[a+4>>2]=c;J[a+8>>2]=J[f+12>>2];uc(ld(b))}J[699344]=0;$(3370,f+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;fc=f+32|0;return}a=Z()|0;uc(c);ba(a|0);B()}break a}b=Z()|0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}ba(Z()|0);B()}function ci(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=fc-16|0;fc=f;a:{b:{e= +J[b+4>>2];g=!e;d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+91548>>2];else d=0;if(g|!d)break b;d=vEb(d,0,e,0);if(jc)break b;c:{if(!(K[a+13|0]&8)){if((kc[J[a+640>>2]](J[a+628>>2],J[b+8>>2],0)|0)!=J[b+8>>2])break b;if((kc[J[a+632>>2]](J[a+628>>2],c,d)|0)==(d|0))break c;break b}e=J[b+8>>2];g=d+e|0;if(M[a+616>>2]>>0|e>>>0>g>>>0)break b;Ue(c,J[a+612>>2]+e|0,d)}d:{if(!(K[a+12|0]&128))break d;h=d;e:switch(L[b+2>>1]-3|0){case 0:case 5:jt(c,J[b+4>>2]);break d;case 1:case 6:case 8:Pp(c,J[b+4>>2]);break d;case 2:case 7:Pp(c, +J[b+4>>2]<<1);break d;case 9:break e;default:break a}oH(c,J[b+4>>2])}h=d;break a}c=J[a>>2];d=J[a+628>>2];i=f,j=J[Sf(a,L[b>>1])+16>>2],J[i>>2]=j;Uc(d,c,88018,f)}fc=f+16|0;return h}function Lr(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=fc-48|0;fc=d;e=a?J[a+80>>2]:0;a:{b:{c:{d:switch(c-1|0){case 1:if(b)break b;a=39025;break c;default:J[d>>2]=34253;a=0;Hc(0,0,0,0,0,23,1,2,0,0,0,0,4607,d);break a;case 0:case 2:case 3:break d}a=39064;if(!b)break b}J[d+32>>2]=a;Hc(0,0,0,0,0,23,1,2,0,0,0,0,4607,d+32|0)}a=kc[J[663195]](28)| +0;if(!a){J[d+16>>2]=17054;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,d+16|0);a=0;break a}J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=1;J[a>>2]=c;J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;if(!b)break a;c=PK(b,d+44|0);if(!c){if(!e){g=a,h=ff(b),J[g+8>>2]=h;break a}g=a,h=te(e,b,-1),J[g+8>>2]=h;break a}f=J[d+44>>2];if(!e){g=a,h=Hl(b,f),J[g+24>>2]=h;g=a,h=ff(c),J[g+8>>2]=h;break a}g=a,h=te(e,b,f),J[g+24>>2]=h;g=a,h=te(e,c,-1),J[g+8>>2]=h}fc=d+48|0;return a}function G9(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;c=fc-16|0;fc=c;f=!a;a:{if(f|((f?-1:J[a+8>>2])|0)!=16)break a;Df(a,c+12|0,c+8|0,0);b=xh(J[c+12>>2],J[c+8>>2],8);if(!b)break a;if(!(!b|!a|(a|0)==(b|0))){J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2]}d=a?J[a+12>>2]:-1;n=a?J[a+40>>2]:0;f=b?J[b+12>>2]:-1;i=b?J[b+40>>2]:0;m=J[c+8>>2];if(!((m|0)<=0|(d|0)<=0)){o=d&-2;p=d&1;while(1){j=(P(f,g)<<2)+i|0;k=(P(d,g)<<2)+n|0;a=0;l=0;if((d|0)!=1)while(1){e=J[(a<<2)+k>>2];I[((a<<1)+j^2)>>1]=e>>>16&65280|e>>>8&255;e=a|1;h=J[(e<<2)+k>>2];I[((e<<1)+j^2)>> +1]=h>>>16&65280|h>>>8&255;a=a+2|0;l=l+2|0;if((o|0)!=(l|0))continue;break}if(p){h=(a<<1)+j^2;a=J[(a<<2)+k>>2];I[h>>1]=a>>>16&65280|a>>>8&255}g=g+1|0;if((m|0)!=(g|0))continue;break}}i=b}fc=c+16|0;return i}function xca(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];a:{if(!(kc[J[b+56>>2]](a)|0))break a;if(!MP(a))break a;d=1;b:{c:switch(J[b>>2]-2|0){case 0:c=706;d:{e:{f:switch(L[a+84>>1]-8|0){case 8:c=707;break e;case 0:break e;case 24:break f;default:break d}c=708}J[b+40>>2]=c}c=J[a+540>>2];if((c|0)!=709){J[b+ +28>>2]=c;J[a+540>>2]=709;J[b+32>>2]=J[a+548>>2];J[a+548>>2]=710;J[b+36>>2]=J[a+556>>2];J[a+556>>2]=710}if(!(K[a+12|0]&128))break a;c=J[b+40>>2];if((c|0)==707){J[b+40>>2]=711;break b}if((c|0)!=708)break a;J[b+40>>2]=712;break b;case 1:break c;default:break a}J[b+40>>2]=713;c=J[a+540>>2];if((c|0)!=709){J[b+28>>2]=c;J[a+540>>2]=709;J[b+32>>2]=J[a+548>>2];J[a+548>>2]=710;J[b+36>>2]=J[a+556>>2];J[a+556>>2]=710}if(!(K[a+12|0]&128))break a}J[a+652>>2]=515}return d|0}function kn(a,b,c,d,e){a=a|0;b=b|0;c= +c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=J[b+44>>2];a:{if(j){g=L[b+26>>1];b:{if((g|0)==8){f=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+c|0];break b}h=K[(J[b+56>>2]+P(J[b+52>>2],d)|0)+(P(c,g)>>3)|0];c:switch(g-1|0){case 3:f=4-((c|0)%2<<2)&252;f=(h&15<>>f|0;break b;case 0:break c;default:break b}f=7-((c|0)%8|0)|0;f=(h&1<>>f|0}h=J[b+4>>2];d:{if(!h){g=0;i=0;break d}g=0;f=f&255;i=0;if(f>>>0>=j>>>0)break d;f=h+(f<<2)|0;g=K[f+41|0]<<8;k=K[f+43|0]<<24;l=K[f+40|0];i=K[f+42|0]<<16}h=i;f=h|k|g|l;H[a| +0]=f;H[a+1|0]=f>>>8;H[a+2|0]=f>>>16;H[a+3|0]=f>>>24;break a}f=(J[b+56>>2]+P(J[b+52>>2],d)|0)+P(c,3)|0;H[a|0]=K[f|0];H[a+1|0]=K[f+1|0];f=K[f+2|0];H[a+3|0]=0;H[a+2|0]=f}f=J[b+964>>2];if(!(!f|!e))H[a+3|0]=K[(f+P(J[b+16>>2],d)|0)+c|0]}function cHa(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;f=fc-16|0;fc=f;i=b+4|0;h=i;g=h;e=J[b+4>>2];a:{b:{if(!e)break b;while(1){g=e;j=e+16|0;if(Hn(c,j)){h=e;e=J[e>>2];if(e)continue;break b}if(Hn(j,c)){h=g+4|0;e=J[g+4>>2];if(e)continue;break b}break}c=J[h>> +2];e=0;if(c)break a}e=vc(40);H[f+12|0]=0;J[f+8>>2]=i;J[f+4>>2]=e;J[699344]=0;c=Im(e+16|0,d);i=J[699344];J[699344]=0;c:{d:{if((i|0)!=1){J[699344]=0;Im(e+28|0,d+12|0);d=J[699344];J[699344]=0;if((d|0)!=1)break c;g=Z()|0;Rc(c);break d}g=Z()|0}a=J[f+4>>2];J[f+4>>2]=0;if(a){if(K[f+12|0]){Rc(a+28|0);Rc(a+16|0)}uc(a)}ba(g|0);B()}J[e+8>>2]=g;J[e>>2]=0;J[e+4>>2]=0;J[h>>2]=e;c=J[J[b>>2]>>2];if(c){J[b>>2]=c;e=J[h>>2]}Oc(J[b+4>>2],e);J[b+8>>2]=J[b+8>>2]+1;c=J[f+4>>2];e=1}H[a+4|0]=e;J[a>>2]=c;fc=f+16|0}function rla(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;if((c|0)>0){a=J[a+12>>2];while(1){f=b;a:{b:{b=J[a>>2];e=b>>>14&1023;if(e){h=Np((+(e|0)+.5)*.010830424696249145+-8.317766166719343);if(!(h<=0))break b}J[f+8>>2]=0;J[f>>2]=0;J[f+4>>2]=0;break a}j=b&16383;c:{if(j>>>0>16288){d=.210526316;g=.473684211;break c}k=163;e=0;d:{e:{while(1){b=e+k>>1;l=j-I[(b<<3)+92438>>1]|0;f:{if((l|0)>0){e=b;break f}if((l|0)>=0)break e;k=b}if((k-e|0)>1)continue;break}b=e;g=+(j-I[(b<<3)+92438>>1]|0)+.5;break d}g= +.5}d=g*.0035000001080334187+ +N[(b<<3)+92432>>2];g=(+(b|0)+.5)*.0035000001080334187+.016939999535679817}N[f+4>>2]=h;i=d*9;d=1/(d*6+g*-16+12);i=i*d;d=g*4*d;N[f>>2]=h*(i/d);N[f+8>>2]=h*((1-i-d)/d)}a=a+4|0;b=f+12|0;e=c>>>0>1;c=c-1|0;if(e)continue;break}}}function EW(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2413964;b=J[a+64>>2];J[a+64>>2]=0;a:{b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b| +0)==1)break a}b=J[a+60>>2];J[a+60>>2]=0;c:{if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+24>>2]=2392932;J[a+48>>2]=2392964;b=J[a+52>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0}J[a+40>>2]=2392964;b=J[a+44>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+44>>2]=0}wc(a+32|0);wc(a+12|0);return nd(a)|0}ea(0)|0; +Bc();B()}function rCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{b:{c:{c=J[a+84>>2]-4|0;if(c)if((c|0)==12)break c;else break a;a=a- -64|0;break b}d=-1;a=J[a+52>>2];if(!a|J[a+40>>2])break a;a=a+32|0}a=J[a>>2];d=J[a>>2]|1;J[a>>2]=d;c=b+12|0;H[a+8|0]=K[c+1|0];H[a+16|0]=K[c+8|0]?K[c+17|0]?2:1:0;J[a+12>>2]=J[c+4>>2];H[a+17|0]=K[c|0]&6;e=J[a+20>>2];if((e|0)>0){b=J[a+24>>2];while(1){f=J[b>>2];if(!(f&4)){H[b+5|0]=K[c+13|0]+1;H[b+6|0]=K[c+14|0]+2;H[b+7|0]=K[c+15|0]+2;H[b+8|0]=K[c+17|0];H[b+418|0]=K[c+ +16|0];H[b+4|0]=H[c+12|0]&1;d=0;if(J[c+20>>2]>0){while(1){e=b+d|0;g=c+(d<<1)|0;H[e+419|0]=K[g+24|0];H[e+452|0]=K[g+25|0];d=d+1|0;if((d|0)>2])continue;break}e=J[a+20>>2]}J[b>>2]=f|1}b=b+488|0;h=h+1|0;if((h|0)<(e|0))continue;break}d=J[a>>2]|1}J[a>>2]=d;d=0}return d|0}function qz(a){var b=0,c=0;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[699344]=0;b=J[(b+c|0)+24>>2];c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;b:{if(!b)break b;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[699344]=0;b=J[(b+c|0)+16>>2];c=J[699344];J[699344]= +0;if((c|0)==1)break a;if(b)break b;b=J[a+4>>2];if(!(J[(J[J[b>>2]-12>>2]+b|0)+4>>2]&8192))break b;if(qS())break b;b=J[a+4>>2];c=J[J[b>>2]-12>>2];J[699344]=0;b=J[(b+c|0)+24>>2];c=J[699344];J[699344]=0;c:{if((c|0)==1)break c;J[699344]=0;b=_(6740,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;if((b|0)!=-1)break b;a=J[a+4>>2];b=J[J[a>>2]-12>>2];J[699344]=0;da(6741,a+b|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break b}oa(ea(0)|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break a}return}ea(0)| +0;Bc();B()}function k2(a){var b=0,c=0,d=0,e=0,f=0;if(a){b=J[a>>2];if(b){d=J[a+4>>2];a:{if((d|0)<=0)break a;e=J[a+8>>2];if((e|0)<=0)break a;while(1){b=J[a>>2];b:{if(!b)break b;c=b+P(f,24)|0;if(!J[c+20>>2])break b;d=J[c>>2];b=J[c+16>>2];if(b)fL(b);c:{if(J[a+12>>2])break c;b=J[c+4>>2];if(b)kc[J[663199]](b);b=J[c+8>>2];if(b)kc[J[663199]](b);b=J[c+12>>2];if(!b)break c;kc[J[663199]](b)}J[c+16>>2]=0;while(1){e=e-1|0;if(d){b=d;d=J[b>>2];c=J[b+16>>2];if(c)fL(c);d:{if(J[a+12>>2])break d;c=J[b+4>>2];if(c)kc[J[663199]](c); +c=J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+12>>2];if(!c)break d;kc[J[663199]](c)}J[b+16>>2]=0;kc[J[663199]](b);continue}break}d=J[a+4>>2]}f=f+1|0;if((f|0)<(d|0)&(e|0)>0)continue;break}b=J[a>>2]}kc[J[663199]](b)}b=J[a+12>>2];if(b)Wn(b);kc[J[663199]](a)}}function Wqb(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=fc-32|0;fc=d;a:{b:{c:{d:{g=J[693078];e:{if(!g)break e;e=Yc(a);if(e>>>0>=2147483632)break a;f:{if(e>>>0<=10){H[d+31|0]=e;f=d+20|0;break f}h=(e|15)+1|0;f=vc(h);J[d+28>>2]=h|-2147483648; +J[d+20>>2]=f;J[d+24>>2]=e}i=xc(f,a,e)+e|0,j=0,H[i|0]=j;J[699344]=0;a=d+8|0;e=H[d+31|0];f=(e|0)<0;ca(1618,a|0,(f?J[d+20>>2]:d+20|0)|0,(f?J[d+24>>2]:e&255)|0);e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[J[g>>2]+16>>2];J[699344]=0;na(e|0,g|0,a|0,b|0,c|0,1)|0;a=J[699344];J[699344]=0;if((a|0)==1)break c;if(H[d+19|0]<0)uc(J[d+8>>2]);if(H[d+31|0]>=0)break e;uc(J[d+20>>2])}fc=d+32|0;return}a=Z()|0;break b}a=Z()|0;if(H[d+19|0]>=0)break b;uc(J[d+8>>2])}if(H[d+31|0]<0)uc(J[d+20>>2]);ba(a|0);B()}_d(d+20| +0);B()}function U$(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;J[c+16>>2]=13;J[c>>2]=13;a:{b:{c:{if(J[a+24>>2]==7){if(J[Ec(J[a+32>>2],J[b+4>>2],c+16|0,0)>>2]!=5){a=J[c+16>>2];break c}yc(c+16|0)}if(J[a+40>>2]!=7)break b;b=T$(a,a+40|0,b,c+16|0);a=J[b>>2];if((a|0)!=5)break c;yc(b);break b}d:{e:{f:{g:{h:switch(a-6|0){case 0:a=vc(72);J[699344]=0;d=aa(3550,a|0,J[c+24>>2])|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;yc(c+16|0);break e;case 1:if(J[Ec(J[c+24>>2],797416,c,0)>>2]!=6)break g;a=vc(72);J[699344]= +0;d=aa(3550,a|0,J[c+8>>2])|0;b=J[699344];J[699344]=0;if((b|0)!=1)break f;break a;default:break h}Cc(0,-1,797784,0);yc(c+16|0);break b}Cc(0,-1,797784,0)}yc(c);yc(c+16|0);if(!d)break d}if(J[d+68>>2])break b;uc(d)}d=0}fc=c+32|0;return d|0}b=Z()|0;uc(a);ba(b|0);B()}function Px(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;k=e>>8;if((d|0)==(f|0)){Aq(a,k,b);return}n=e&255;g=c&255;l=c>>8;if((l|0)==(k|0)){b=f-d|0;J[a+56>>2]=b+J[a+56>>2];J[a+60>>2]=J[a+60>>2]+P(b,g+n|0);return}h=f-d|0;m=-1;i=e-c|0; +a:{if((i|0)>=0){o=256;m=1;c=256-g|0;break a}i=0-i|0;c=g}e=P(c,h);c=(e|0)/(i|0)|0;j=e-P(c,i)|0;h=c+(j>>31)|0;J[a+56>>2]=h+J[a+56>>2];J[a+60>>2]=J[a+60>>2]+P(h,g|o);e=l+m|0;Aq(a,e,b);c=d+h|0;if((e|0)!=(k|0)){g=(f+h|0)-c<<8;d=(g|0)/(i|0)|0;g=g-P(d,i)|0;h=g>>31;l=(h&i)+g|0;h=d+h|0;d=j-((j|0)>=0?i:0)|0;while(1){d=d+l|0;j=(d|0)>=0;g=j+h|0;J[a+56>>2]=g+J[a+56>>2];J[a+60>>2]=J[a+60>>2]+(g<<8);e=e+m|0;Aq(a,e,b);d=d-(j?i:0)|0;c=c+g|0;if((e|0)!=(k|0))continue;break}}b=f-c|0;J[a+56>>2]=b+J[a+56>>2];J[a+60>>2]= +J[a+60>>2]+P(b,(n|256)-o|0)}function Gr(a,b,c){var d=0,e=0,f=0;e=J[a+16>>2];if(!c){d=J[a+120>>2];f=J[d>>2];J[f+20>>2]=41;kc[J[f>>2]](d)}if(!J[a+108>>2]){d=(-1<>2]|d<<24-b;if((b|0)>=8)while(1){e=J[a+112>>2];J[a+112>>2]=e+1;H[e|0]=c>>>16;e=J[a+116>>2]-1|0;J[a+116>>2]=e;if(!e){d=J[a+120>>2];e=J[d+24>>2];if(!(kc[J[e+12>>2]](d)|0)){d=J[a+120>>2];f=J[d>>2];J[f+20>>2]=25;kc[J[f>>2]](d)}J[a+112>>2]=J[e>>2];J[a+116>>2]=J[e+4>>2]}e=b;a:{if((c&16711680)!=16711680)break a;b=J[a+112>> +2];J[a+112>>2]=b+1;H[b|0]=0;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(b)break a;d=J[a+120>>2];b=J[d+24>>2];if(!(kc[J[b+12>>2]](d)|0)){d=J[a+120>>2];f=J[d>>2];J[f+20>>2]=25;kc[J[f>>2]](d)}J[a+112>>2]=J[b>>2];J[a+116>>2]=J[b+4>>2]}b=e-8|0;c=c<<8;if((e|0)>15)continue;break}J[a+16>>2]=b;J[a+12>>2]=c}}function $Ia(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=fc-16|0;fc=e;a:{b:{if(a){if(!b)break b;if(!d)break a;c:{if(J[a+116>>2])break c;if(c>>>0<=1){Nc(d,1,2363460,0);break c}wd(b,e+12|0,2);f=J[e+12>> +2];h=f&65535;if(!h){Nc(d,1,2363524,0);break c}if(P(h,6)+2>>>0>c>>>0){Nc(d,1,2363460,0);break c}c=ef(P(f,6));if(!c)break c;d=ef(8);J[a+116>>2]=d;if(!d){uc(c);break c}J[d>>2]=c;f=d;d=L[e+12>>1];I[f+4>>1]=d;if(!d){g=1;break c}d=0;while(1){g=e+12|0;wd(b+2|0,g,2);f=c+P(d,6)|0;I[f>>1]=J[e+12>>2];wd(b+4|0,g,2);I[f+2>>1]=J[e+12>>2];b=b+6|0;wd(b,g,2);I[f+4>>1]=J[e+12>>2];g=1;d=d+1|0;if(d>>>0>2]+4>>1])continue;break}}fc=e+16|0;return g|0}fa(2354499,2354795,1403,2371594);B()}fa(2363435,2354795,1404, +2371594);B()}fa(2355439,2354795,1405,2371594);B()}function n8a(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=fc+-64|0;fc=h;O[h+40>>3]=c;O[h+48>>3]=b;O[h+32>>3]=d;O[h+24>>3]=e;O[h+16>>3]=f;O[h+8>>3]=g;i=J[a+8>>2];if(!K[i+1|0]){kc[J[J[a>>2]>>2]](a,b,c)|0;i=J[a+8>>2]}J[h+60>>2]=0;j=i+4|0;k=h+60|0;m=Qe(j,k),n=4,H[m|0]=n;l=J[h+60>>2];O[l+8>>3]=c;O[l>>3]=b;J[i+4>>2]=J[i+4>>2]+1;J[h+60>>2]=0;m=Qe(j,k),n=4,H[m|0]=n;l=J[h+60>>2];O[l+8>>3]=e;O[l>>3]=d;J[i+4>>2]=J[i+4>> +2]+1;J[h+60>>2]=0;m=Qe(j,k),n=4,H[m|0]=n;j=J[h+60>>2];O[j+8>>3]=g;O[j>>3]=f;J[i+4>>2]=J[i+4>>2]+1;i=J[a+4>>2];if(i){J[h+60>>2]=512;kc[J[J[i>>2]+308>>2]](i,k)|0;i=J[a+4>>2];kc[J[J[i>>2]+328>>2]](i,h+48|0,h+40|0,h+32|0,h+24|0,h+16|0,h+8|0)|0;a=J[a+4>>2];J[h+60>>2]=512;kc[J[J[a>>2]+312>>2]](a,k)|0}fc=h- -64|0;return 1}function XM(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];c=J[b+4>>2];e=J[b>>2];while(1){if(!c){if(!(kc[J[b+12>>2]](a)|0))return 0;e=J[b>>2];c=J[b+4>>2]}d=e+1|0;c=c-1|0;if(K[e|0]!=255)while(1){e= +J[a+460>>2];J[e+24>>2]=J[e+24>>2]+1;J[b+4>>2]=c;J[b>>2]=d;if(!c){if(!(kc[J[b+12>>2]](a)|0))return 0;d=J[b>>2];c=J[b+4>>2]}c=c-1|0;e=K[d|0];d=d+1|0;if((e|0)!=255)continue;break}while(1){if(!c){if(!(kc[J[b+12>>2]](a)|0))return 0;d=J[b>>2];c=J[b+4>>2]}c=c-1|0;f=K[d|0];e=d+1|0;d=e;if((f|0)==255)continue;break}if(!f){d=J[a+460>>2];J[d+24>>2]=J[d+24>>2]+2;J[b+4>>2]=c;J[b>>2]=e;continue}break}d=J[J[a+460>>2]+24>>2];if(d){g=J[a>>2];J[g+24>>2]=d;J[g+20>>2]=119;J[J[a>>2]+28>>2]=f;kc[J[J[a>>2]+4>>2]](a,-1); +J[J[a+460>>2]+24>>2]=0}J[a+436>>2]=f;J[b+4>>2]=c;J[b>>2]=e;return 1}function MR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=fc-1040|0;fc=g;h=J[b>>2];J[g+12>>2]=h;j=a?a:g+16|0;d=a?d:256;a:{b:{c:{if(!(!h|!d)){while(1){f=c>>>2|0;if(!(c>>>0>131|f>>>0>=d>>>0)){f=h;break b}k=eG(j,g+12|0,d>>>0>f>>>0?f:d,e);f=J[g+12>>2];if((k|0)==-1){d=0;i=-1;break c}l=(g+16|0)!=(j|0)?k:0;d=d-l|0;j=(l<<2)+j|0;c=f?(c+h|0)-f|0:0;i=i+k|0;if(!f)break c;h=f;if(d)continue;break}break c}f=h}if(!f)break a}if(!d| +!c)break a;h=i;while(1){d:{i=bt(j,f,c,e);e:{if(i+2>>>0<=2){f:switch(i+1|0){case 1:J[g+12>>2]=0;break e;case 0:break a;default:break f}J[e>>2]=0;break e}f=J[g+12>>2]+i|0;J[g+12>>2]=f;h=h+1|0;d=d-1|0;if(d)break d}i=h;break a}j=j+4|0;c=c-i|0;i=h;if(c)continue;break}}if(a)J[b>>2]=J[g+12>>2];fc=g+1040|0;return i|0}function UT(a,b,c){a=a|0;b=b|0;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=fc-16|0;fc=h;J[h+12>>2]=b;a:{b:{i=a+240|0;c:{if(!(J[ym(i,(J[i+8>>2]-J[i+4>>2]>>2)-1|0)>>2]!=32|(b|0)!=32)){b=J[a+260>>2]- +8|0;O[b>>3]=O[b>>3]+c;break c}b=J[a+260>>2];d:{if((b|0)!=J[a+264>>2]){O[b>>3]=c;J[a+260>>2]=b+8;break d}d=a+256|0;g=J[d>>2];f=b-g|0;j=f>>3;e=j+1|0;if(e>>>0>=536870912)break b;d=f>>2;d=f>>>0>=2147483640?536870911:d>>>0>e>>>0?d:e;if(d){if(d>>>0>=536870912)break a;f=vc(d<<3)}else f=0;e=f+(j<<3)|0;O[e>>3]=c;j=e+8|0;if((b|0)!=(g|0))while(1){e=e-8|0;b=b-8|0;O[e>>3]=O[b>>3];if((b|0)!=(g|0))continue;break}J[a+264>>2]=f+(d<<3);J[a+260>>2]=j;J[a+256>>2]=e;if(!g)break d;uc(g)}Sz(i,h+12|0)}c=O[a+48>>3]+c;O[a+ +48>>3]=c;O[a+40>>3]=c+O[a+32>>3];fc=h+16|0;return}Fg(d);B()}Pd();B()}function vK(a,b,c){var d=0,e=0,f=0;if(!(c?b:0)){kc[J[663297]](J[693366],31776,0);return}a:{if(!J[a+292>>2]|J[a+40>>2]!=1)break a;d=J[a+36>>2];f=J[d+12>>2];e=J[d+20>>2];while(1){d=e;e=d-1|0;if(f>>>0>e>>>0)break a;if(K[e|0]!=60)continue;break}J[b>>2]=e;b:{f=J[a+36>>2];a=J[f+20>>2];if(a>>>0>d>>>0)while(1){c:{d:switch(K[d|0]-34|0){case 5:while(1){b=d;d=d+1|0;if(a>>>0>d>>>0&K[d|0]!=39)continue;break}d=a>>>0>d>>>0?b+2|0:d;break c;case 0:while(1){b= +d;d=d+1|0;if(a>>>0>d>>>0&K[d|0]!=34)continue;break}d=a>>>0>d>>>0?b+2|0:d;break c;case 28:break b;default:break d}d=d+1|0}if(a>>>0>d>>>0)continue;break}a=J[f+12>>2];e:{while(1){e=e-1|0;if(a>>>0>e>>>0)break e;if(K[e|0]!=62)continue;break}J[c>>2]=e;return}J[c>>2]=0;return}J[c>>2]=d;return}J[b>>2]=0;J[c>>2]=0}function j5(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=fc-16|0;fc=f;a:{if((a|0)!=(b|0)){J[699344]=0;c=_(4,32)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[c+4>>2]=0;J[c+8>>2]=0;J[c+28>>2]= +0;J[c+12>>2]=0;J[c+16>>2]=0;I[c+18>>1]=0;I[c+20>>1]=0;I[c+22>>1]=0;I[c+24>>1]=0;J[a+4>>2]=c;g=J[b+4>>2];J[c>>2]=0;e=c;d=g;if(J[d>>2]){e=0;while(1){h=e&255;d=e>>>6&67108860;i=K[h+J[d+J[g+16>>2]>>2]|0];d=J[J[g+12>>2]+d>>2]+(h<<4)|0;j=O[d+8>>3];k=O[d>>3];J[699344]=0;J[f+12>>2]=0;d=aa(2487,c|0,f+12|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;H[d|0]=i;d=J[f+12>>2];O[d+8>>3]=j;O[d>>3]=k;J[c>>2]=J[c>>2]+1;e=e+1|0;if(e>>>0>2])continue;break}d=J[b+4>>2];e=J[a+4>>2]}J[c+20>>2]=J[g+20>>2];H[e+24|0]= +K[d+24|0];H[e+25|0]=K[d+25|0]}fc=f+16|0;return a}ea(0)|0;Bc();B()}function kH(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!b)break a;d=K[a+15|0];c=d<<24>>24;e=K[b+15|0];f=e<<24>>24;i=(f|0)<0;h=i?J[b+8>>2]:e;e=J[a+8>>2];j=(c|0)<0;f=j?e:d;g=0;b:{if((h|0)!=(f|0))break b;if(f){d=a+4|0;c=b+4|0;g=0;if(qd(j?J[d>>2]:d,i?J[c>>2]:c,f))break b;e=J[a+8>>2];d=K[a+15|0];c=d}c:{if(c<<24>>24<0?e:d)break c;f=K[a+27|0];c=f<<24>>24;e=K[b+27|0];d=e<<24>>24;c=(c|0)<0;f=c?J[a+20>>2]:f;d=(d|0)<0;g=0;if((f|0)!=((d?J[b+ +20>>2]:e)|0))break b;if(!f)break c;e=a+16|0;h=c?J[e>>2]:e;c=b+16|0;g=0;if(qd(h,d?J[c>>2]:c,f))break b}if(J[a+64>>2]!=J[b+64>>2]|J[a+52>>2]!=J[b+52>>2]|(J[a+40>>2]!=J[b+40>>2]|O[a+32>>3]!=O[b+32>>3]))break a;if(J[a+44>>2]!=J[b+44>>2])break a;g=0;if(K[a+48|0]!=K[b+48|0])break b;g=K[a+49|0]==K[b+49|0]}return g}return 0}function Uwa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=vc(148);J[699344]=0;c=aa(5628,f|0,b|0)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){J[c>>2]=2423916;d=K[b+93|0]|K[b+94|0]<<8|(K[b+95| +0]<<16|K[b+96|0]<<24);e=K[b+89|0]|K[b+90|0]<<8|(K[b+91|0]<<16|K[b+92|0]<<24);H[c+89|0]=e;H[c+90|0]=e>>>8;H[c+91|0]=e>>>16;H[c+92|0]=e>>>24;H[c+93|0]=d;H[c+94|0]=d>>>8;H[c+95|0]=d>>>16;H[c+96|0]=d>>>24;d=K[b+96|0]|K[b+97|0]<<8|(K[b+98|0]<<16|K[b+99|0]<<24);H[c+96|0]=d;H[c+97|0]=d>>>8;H[c+98|0]=d>>>16;H[c+99|0]=d>>>24;J[699344]=0;d=aa(5629,c+100|0,b+100|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;aa(5629,c+124|0,b+124|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Hd(d);BA(c);break a}J[a>> +2]=0;vd(a,c);return}b=Z()|0;break a}b=Z()|0;BA(c)}uc(f);ba(b|0);B()}function G9a(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;f=c-b|0;g=f>>3;d=J[a+8>>2];e=J[a>>2];if(g>>>0<=d-e>>3>>>0){d=J[a+4>>2];h=d-e|0;f=h+b|0;h=h>>3;i=h>>>0>>0?f:c;if((i|0)!=(b|0))while(1){J[e>>2]=J[b>>2];J[e+4>>2]=J[b+4>>2];e=e+8|0;b=b+8|0;if((i|0)!=(b|0))continue;break}if(g>>>0>h>>>0){if((c|0)!=(f|0))while(1){b=J[f+4>>2];J[d>>2]=J[f>>2];J[d+4>>2]=b;d=d+8|0;f=f+8|0;if((f|0)!=(c|0))continue;break}J[a+4>>2]=d;return}J[a+ +4>>2]=e;return}if(e){J[a+4>>2]=e;uc(e);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;d=0}a:{if(g>>>0>=536870912)break a;e=d>>2;d=d>>>0>=2147483640?536870911:e>>>0>g>>>0?e:g;if(d>>>0>=536870912)break a;e=d<<3;d=vc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(f-8&-8)+8|0;d=xc(d,c,b)+b|0}J[a+4>>2]=d;return}m5(a);B()}function p_a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(c>>>0>=65534){d=J[a>>2];J[d+20>>2]=12;kc[J[d>>2]](a)}d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=255;e=J[d+4>>2]-1|0;J[d+4>>2]=e; +a:{if(e)break a;if(kc[J[d+12>>2]](a)|0)break a;d=J[a>>2];J[d+20>>2]=25;kc[J[d>>2]](a)}d=J[a+24>>2];e=J[d>>2];J[d>>2]=e+1;H[e|0]=b;b=J[d+4>>2]-1|0;J[d+4>>2]=b;b:{if(b)break b;if(kc[J[d+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];d=J[b>>2];J[b>>2]=d+1;e=d;d=c+2|0;H[e|0]=d>>>8;c=J[b+4>>2]-1|0;J[b+4>>2]=c;c:{if(c)break c;if(kc[J[b+12>>2]](a)|0)break c;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=d;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d:{if(c)break d; +if(kc[J[b+12>>2]](a)|0)break d;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}}function KBb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=J[J[a+40>>2]+16>>2];b=J[a+52>>2];if(J[a+4>>2]==16)d=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else d=J[a+36>>2];if(J[d+424>>2])a=J[d+420>>2]+1|0;else a=0;j=J[d+1872>>2];J[d+424>>2]=1;h=(g|0)<257?1:2;c=((kc[J[J[b>>2]+20>>2]](b,2)|0)-2|0)/((h<<1)+5|0)|0;i=c+a|0;if((c|0)>0)while(1){e=(a<<5)+d|0;k=e,l=kc[J[J[b>>2]+20>>2]](b,1)|0,J[k+428>>2]=l;k=e,l=kc[J[J[b>>2]+ +20>>2]](b,h)|0,J[k+432>>2]=l;f=kc[J[J[b>>2]+20>>2]](b,2)|0;c=J[d+12>>2];J[e+436>>2]=c>>>0>>0?c:f;f=kc[J[J[b>>2]+20>>2]](b,1)|0;c=J[j+4>>2];J[e+440>>2]=c>>>0>>0?c:f;c=kc[J[J[b>>2]+20>>2]](b,h)|0;J[e+444>>2]=c>>>0>g>>>0?g:c;k=e,l=kc[J[J[b>>2]+20>>2]](b,1)|0,J[k+448>>2]=l;a=a+1|0;if((i|0)>(a|0))continue;break}J[d+420>>2]=i-1}function vGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=K[a+11|0];e=d+7>>>3|0;g=J[a+4>>2];a:{if(!d)break a;a=e>>>0<=1?1:e;f=a&3;if(d>>>0>=25){d=a&60;a=0;while(1){H[b| +0]=K[b|0]+(K[c|0]>>>1|0);H[b+1|0]=K[b+1|0]+(K[c+1|0]>>>1|0);H[b+2|0]=K[b+2|0]+(K[c+2|0]>>>1|0);H[b+3|0]=K[b+3|0]+(K[c+3|0]>>>1|0);b=b+4|0;c=c+4|0;a=a+4|0;if((d|0)!=(a|0))continue;break}}if(!f)break a;a=0;while(1){H[b|0]=K[b|0]+(K[c|0]>>>1|0);b=b+1|0;c=c+1|0;a=a+1|0;if((f|0)!=(a|0))continue;break}}b:{if((e|0)==(g|0))break b;f=g-e|0;h=f&1;d=0;a=0-e|0;if((e+1|0)!=(g|0)){e=f&-2;while(1){H[b|0]=K[b|0]+(K[a+b|0]+K[c|0]>>>1|0);H[b+1|0]=K[b+1|0]+(K[a+(b+1|0)|0]+K[c+1|0]>>>1|0);b=b+2|0;c=c+2|0;d=d+2|0;if((e| +0)!=(d|0))continue;break}}if(!h)break b;H[b|0]=K[b|0]+(K[a+b|0]+K[c|0]>>>1|0)}}function H9a(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;c=c<<2;f=J[c+J[b+8>>2]>>2];g=J[c+J[b+4>>2]>>2];c=J[c+J[b>>2]>>2];b=J[d>>2];h=J[a+332>>2];d=J[a+472>>2];j=J[d+28>>2];m=J[d+24>>2];n=J[d+20>>2];o=J[d+16>>2];d=J[a+112>>2];if(d>>>0>=2){d=d>>>1|0;while(1){e=K[g|0]<<2;k=J[e+n>>2];i=K[f|0]<<2;l=J[i+m>>2];p=J[e+j>>2];i=h+J[i+o>>2]|0;e=K[c|0];H[b|0]=K[i+e|0];l=h+(l+p>>16)|0;H[b+1| +0]=K[l+e|0];k=h+k|0;H[b+2|0]=K[k+e|0];e=K[c+1|0];H[b+3|0]=K[e+i|0];H[b+4|0]=K[e+l|0];H[b+5|0]=K[e+k|0];b=b+6|0;c=c+2|0;f=f+1|0;g=g+1|0;d=d-1|0;if(d)continue;break}d=J[a+112>>2]}if(d&1){a=K[g|0]<<2;d=J[a+n>>2];f=K[f|0]<<2;g=J[f+m>>2];j=J[a+j>>2];a=K[c|0];H[b|0]=K[a+(h+J[f+o>>2]|0)|0];H[b+1|0]=K[a+(h+(g+j>>16)|0)|0];H[b+2|0]=K[a+(d+h|0)|0]}}function $$(a){var b=0,c=0,d=0,e=0;c=J[a+20>>2];if(c){J[699344]=0;$(3370,c+176|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)==1)break b;J[699344]=0;$(3370,c+192|0); +b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,c+208|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,c+224|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,c+240|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,c+256|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;$(3370,c+280|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;break a}ea(0)|0;Bc();B()}uc(c)}d=J[a+16>>2];if(d){b=J[d+8>>2];if((b|0)>0)while(1){c=J[J[d>>2]+(e<< +2)>>2];if(c){uc($$(c));b=J[d+8>>2]}e=e+1|0;if((e|0)<(b|0))continue;break}uc(ld(d))}return a}function nI(a,b,c){var d=0,e=0,f=0,g=0;e=fc-144|0;fc=e;a:{d=J[b>>2];b:{if((d|0)>=J[c>>2])break b;while(1){g=J[(d<<2)+a>>2]-32|0;if(!g|(g|0)==12){d=d+1|0;J[b>>2]=d;if(J[c>>2]>(d|0))continue;break b}break}Ac(e+16|0,0,128);while(1){g=J[(d<<2)+a>>2];if((g|0)!=32){J[(e+16|0)+(f<<2)>>2]=g;d=d+1|0;J[b>>2]=d;f=f+1|0;if(J[c>>2]>(d|0))continue}break}a=Et(e+4|0,e+16|0,0,f);J[699344]=0;b=Qd(a,2383744);c=J[699344];J[699344]= +0;f=1;if((c|0)==1)break a;c:{if(b)break c;J[699344]=0;b=Qd(a,2383764);c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break c;J[699344]=0;b=Qd(a,2383772);c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break c;J[699344]=0;f=Qd(a,2383780);b=J[699344];J[699344]=0;if((b|0)==1)break a}Rc(a)}fc=e+144|0;return f}b=Z()|0;Rc(a);ba(b|0);B()}function Qx(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;g=J[a+4>>2];if(c>>>0>=999999985){d=J[a>>2];J[d+20>>2]=56;J[d+24>>2]=1;kc[J[J[a>>2]>>2]](a)}if(b>>>0>= +2){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=15;kc[J[J[a>>2]>>2]](a)}e=c+7&-8;a:{b:{h=(b<<2)+g|0;c=J[h+52>>2];if(!c){d=0;break b}while(1){d=c;if(M[c+8>>2]>>0){c=J[c>>2];if(c)continue;break b}break}b=d;break a}b=J[(b<<2)+(d?54584:54576)>>2];c=999999984-e|0;c=b>>>0>>0?b:c;i=e+16|0;f=c+i|0;b=Dc(f);if(!b)while(1){if(c>>>0<=99){b=J[a>>2];J[b+20>>2]=56;J[b+24>>2]=2;kc[J[J[a>>2]>>2]](a)}c=c>>>1|0;f=i+c|0;b=Dc(f);if(!b)continue;break}J[g+76>>2]=J[g+76>>2]+f;J[b+8>>2]=c+e;J[b>>2]=0;J[b+4>>2]=0;if(!d){J[h+52>> +2]=b;break a}J[d>>2]=b}a=J[b+4>>2];J[b+4>>2]=a+e;J[b+8>>2]=J[b+8>>2]-e;return(a+b|0)+16|0}function Bn(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=fc-32|0;fc=e;J[a+664>>2]=0;d=J[a+660>>2];a:{if(d){d=pW(a,J[a+656>>2],c+d|0,4,86880);break a}d=bh(a,c,4,86880)}J[a+656>>2]=d;b:{if(!d){c=0;Uc(J[a+628>>2],86848,72352,0);break b}g=J[a+660>>2];if((c|0)>0){g=d+(g<<2)|0;d=0;while(1){i=P(d,20)+b|0;f=J[i+8>>2];j=J[i>>2];J[e+24>>2]=0;J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+4>>2]=e+8;h=J[a+664>>2];c:{if(!(!h| +J[h>>2]!=(j|0))&(!f|(f|0)==J[h+8>>2]))break c;h=J[a+656>>2];d:{if(!h)break d;J[e+16>>2]=f;J[e+8>>2]=j;f=MG(e+4|0,h,J[a+660>>2]);if(!f){J[a+664>>2]=0;break d}f=J[f>>2];J[a+664>>2]=f;if(f)break c}J[g>>2]=i;J[a+660>>2]=J[a+660>>2]+1;g=g+4|0}d=d+1|0;if((d|0)!=(c|0))continue;break}g=J[a+660>>2];d=J[a+656>>2]}vm(d,g,4,558)}fc=e+32|0;return c}function B5(a,b,c,d,e,f){var g=0,h=0,i=0;i=fc-96|0;fc=i;a:{b:{c:{d:{if(!(J[b+8>>2]|!b|(e==0|f==0))){h=k5(i+88|0);J[699344]=0;wa(2325,h|0,+c,+d)|0;g=J[699344];J[699344]= +0;if((g|0)==1)break d;J[699344]=0;e=c+e;wa(2326,h|0,+e,+d)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;J[699344]=0;d=d+f;wa(2326,h|0,+e,+d)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;J[699344]=0;wa(2326,h|0,+c,+d)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;J[699344]=0;_(2327,h|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break d;J[699344]=0;b=ga(2224,i+8|0,b|0,4)|0;g=J[699344];J[699344]=0;if((g|0)==1)break c;J[699344]=0;ga(2328,a|0,b|0,h|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;vM(b); +ij(h)}fc=i+96|0;return}a=Z()|0;break a}a=Z()|0;break a}a=Z()|0;vM(b)}ij(h);ba(a|0);B()}function wra(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-32|0;fc=c;b=c+12|0;Pj(b,a,0);J[699344]=0;da(6238,c+20|0,b|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){b=J[c+20>>2];c:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+28|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+28>>2]=0}J[699344]=0;aa(5153,a+8|0,c+28|0)|0;b=J[699344];J[699344]=0;d:{if((b|0)!=1){b=J[c+28>>2];J[c+28>>2]=0;if(!b)break d; +J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}ea(0)|0;Bc();B()}a=Z()|0;zc(c+28|0);break b}b=a;a=J[a+8>>2];J[b+12>>2]=J[(a?a+12|0:2743576)>>2];wc(c+20|0);wc(c+12|0);fc=c+32|0;return}a=Z()|0;break a}wc(c+20|0)}wc(c+12|0);ba(a|0);B()}function eWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>2147482623)break a;e=J[a+1040>>2];if((e|0)>(b|0))break a;b:{if((e+1020|0)>=(b|0)){d=e;break b}f= +J[a+1044>>2];d=f+e|0;if((d|0)>(b|0)){d=f+(e-b|0)|0;J[a+1044>>2]=d;f=a+16|0;cd(f,f+(b-e|0)|0,d);J[a+1040>>2]=b;d=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=d;if((b|0)<=(d|0))break b;while(1){d=0;if((kc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;d=J[a+1040>>2]+1|0;J[a+1040>>2]=d;if((b|0)>(d|0))continue;break}}e=b+4|0;if((e|0)>(J[a+1044>>2]+d|0))while(1){d=0;f=kc[J[a+4>>2]](J[a+8>>2])|0;if((f|0)<0)break a;d=J[a+1044>>2];J[a+1044>>2]=d+1;H[(a+d|0)+16|0]=f;d=J[a+1040>>2];if((e|0)>(d+J[a+1044>>2]|0))continue;break}a= +(b-d|0)+a|0;J[c>>2]=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);d=1}return d|0}function s1a(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;if(!K[b+8|0]){b=J[b+24>>2];d=ji(84);J[a+8>>2]=d;a:{if(d){b:{if(!(!b|K[b|0]!=106|K[b+1|0]!=97)){e=17039875;f=100992768;b=K[b+2|0];c=1;if(!b|(b|0)==95)break b}e=33751047;f=17171716;c=0}H[d+74|0]=c;H[d+65|0]=0;H[d+66|0]=0;H[d+67|0]=0;H[d+68|0]=0;H[d+64|0]=1;g=J[188365];b=J[188364];J[d>>2]=b;J[d+4>>2]=g;h=J[188367];c=J[188366];J[d+8>>2]= +c;J[d+12>>2]=h;i=J[188369];j=J[188368];J[d+16>>2]=j;J[d+20>>2]=i;k=J[188371];l=J[188370];J[d+24>>2]=l;J[d+28>>2]=k;H[a+36|0]=0;I[d+72>>1]=1;J[d+76>>2]=e;J[d+80>>2]=f;H[d+75|0]=0;J[d+56>>2]=l;J[d+60>>2]=k;J[d+48>>2]=j;J[d+52>>2]=i;J[d+40>>2]=c;J[d+44>>2]=h;J[d+32>>2]=b;J[d+36>>2]=g;J[a+56>>2]=0;break a}J[c>>2]=7}H[a+61|0]=255;I[a+108>>1]=65533}}function Zva(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2425292;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0; +J[a+36>>2]=0;J[699344]=0;b=ha(5213,a+44|0,a+40|0,0,4)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[699344]=0;ha(5213,a+56|0,a+52|0,0,4)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;hd(b);nd(a);ba(c|0);B()}b=Z()|0;nd(a);ba(b|0);B()}J[a>>2]=2425552;J[699344]=0;c=ha(5213,a+68|0,a- -64|0,0,3)|0;b=J[699344];J[699344]=0;b:{c:{d:{e:{if((b|0)!=1){J[699344]=0;d=ha(5213,a+80|0,a+76|0,0,3)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;J[699344]=0;ha(5213,a+92|0,a+88|0,0,3)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break d;return a|0}b=Z()|0;break b}b=Z()|0;break c}b=Z()|0;hd(d)}hd(c)}xA(a);ba(b|0);B()}function Zma(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(H[c+11|0]>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}Ve(b,J[c>>2],J[c+4>>2])}a=b+12|0;b:{c:{d:{e:{f:{g:{if(H[c+23|0]>=0){d=c+12|0;e=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=e;J[a+8>>2]=J[c+20>>2];break g}d=J[c+16>>2];e=J[c+12>>2];J[699344]=0;ca(15,a|0,e|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break f}d=b+24|0;if(H[c+ +35|0]<0)break e;a=c+24|0;e=J[a+4>>2];J[d>>2]=J[a>>2];J[d+4>>2]=e;J[d+8>>2]=J[c+32>>2];break d}c=Z()|0;break b}e=J[c+28>>2];f=J[c+24>>2];J[699344]=0;ca(15,d|0,f|0,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break c}a=J[c+40>>2];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=a;return}c=Z()|0;if(H[b+23|0]>=0)break b;uc(J[a>>2])}if(H[b+11|0]<0)uc(J[b>>2]);ba(c|0);B()}function N6a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-32|0;fc=e;d=e+16|0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=415588;J[699344]=0;b=ga(3, +d|0,b|0,0)|0;g=J[699344];J[699344]=0;a:{b:{if((g|0)==1)break b;if(!b)break a;J[699344]=0;b=J[d+12>>2];f=J[699344];J[699344]=0;if((f|0)==1)break b;J[a+12>>2]=b;c:{if(!c){J[699344]=0;c=_(27,b|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break c;break b}H[a+16|0]=1}J[a+8>>2]=c;J[699344]=0;J[e+12>>2]=0;ha(28,d|0,c|0,b|0,e+12|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){if((b|0)!=J[e+12>>2]){d:{if(K[a+16|0])break d;b=J[a+8>>2];if(!b)break d;uc(b);J[a+8>>2]=0}f=0;J[a+12>>2]=0;break a}J[699344]=0;$(21,d|0);a=J[699344]; +J[699344]=0;f=1;if((a|0)!=1)break a}}a=Z()|0;De(d);ba(a|0);B()}De(d);fc=e+32|0;return f|0}function JE(a,b){var c=0,d=0,e=0,f=0,g=0;Be(b,Fc(b)<<1);a:{b:{c:{d:{e:{if(!Fc(b)){if((Fc(b)|0)!=1349808750)break e;e=Fc(b);f:{if(!e)break f;while(1){if(Fc(b))break d;c=Fc(b);d=Fc(b);g:{if((c|0)!=1231318644){if((c|0)!=1315774496)break a;if((d|0)!=1413830740)break c;c=Fc(b);J[a>>2]=c;c=Dc(c<<1);J[a+4>>2]=c;if(!c)break f;Ac(c,0,J[a>>2]<<1);gf(b,J[a+4>>2],J[a>>2]<<1);break g}if((d|0)!=1413830740)break b;c=0;d=Fc(b); +if((d|0)<=0)break g;while(1){f=a+c|0,g=ad(b),H[f+8|0]=g;c=c+1|0;if((d|0)!=(c|0))continue;break}}e=e-1|0;if(e)continue;break}}return}fa(221278,219859,1196,225558);B()}fa(225593,219859,1199,225558);B()}fa(221278,219859,1207,225558);B()}fa(224432,219859,1223,225558);B()}fa(224432,219859,1236,225558);B()}fa(219546,219859,1244,225558);B()}function Ezb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=J[J[a+544>>2]+88>>2];e=J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0;b=J[a+588>>2];c=J[a+644>>2];a:{if(K[d+56|0]){if((b| +0)<=0)break a;while(1){b=K[e|0]|K[e+1|0]<<8;b=(b<<8|b>>>8)&65535;g=(b|0)!=L[d+836>>1];b=g?b:0;h=b<<8|b>>>8;H[c|0]=h;H[c+1|0]=h>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=g?65535:0;b=b<<8|b>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;c=c+8|0;e=e+2|0;f=f+1|0;if((f|0)>2])continue;break}break a}if((b|0)<=0)break a;while(1){d=K[e|0]|K[e+1|0]<<8;d=(d<<8|d>>>8)&65535;b=d<<8|d>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d<<8|d>>>8;H[c+2|0]=d;H[c+3|0]=d>>>8;H[c+4|0]=d;H[c+5|0]=d>>>8;H[c+6|0]=255; +H[c+7|0]=255;c=c+8|0;e=e+2|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function zHa(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;h=J[b+44>>2];i=J[b+24>>2];if(h>>>0>>0){J[b+44>>2]=i;h=i}m=-1;n=-1;o=f&24;a:{if(!o|(e|0)==1&(o|0)==24)break a;if(h){j=h-(H[b+43|0]<0?J[b+32>>2]:b+32|0)>>2;k=j>>31}b:{c:switch(e|0){case 1:if(f&8){g=J[b+12>>2]-J[b+8>>2]>>2;l=g>>31;break b}g=i-J[b+20>>2]>>2;l=g>>31;break b;case 0:break b;case 2:break c;default:break a}g= +j;l=k}d=d+l|0;c=c+g|0;d=g>>>0>c>>>0?d+1|0:d;if((d|0)<0|(c>>>0>j>>>0&(d|0)>=(k|0)|(d|0)>(k|0)))break a;e=f&8;d:{if(!(c|d))break d;if(J[b+12>>2]?0:e)break a;if(!(f&16))break d;if(!i)break a}if(e){J[b+16>>2]=h;J[b+12>>2]=J[b+8>>2]+(c<<2)}if(f&16)J[b+24>>2]=J[b+20>>2]+(c<<2);m=c;n=d}J[a+8>>2]=m;J[a+12>>2]=n;J[a>>2]=0;J[a+4>>2]=0}function YCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(K[a+17|0]<33){e=J[a+12>>2];b:{c:{if(M[b>>2]<=256){b=-1;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+ +60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break c}if((bd(c,e&255)|0)!=-1)break c;break b}b=-1;if(Kh(c,e))break b}b=-1;d=J[c+8>>2];if(d&7)break b;a=a+16|0;e=K[a|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;d:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break d}if((bd(c,e)|0)==-1)break b}b=Eba(c,H[a|0]&1, +a)?-1:0}return b|0}fa(209362,207976,689,209398);B()}J[c+8>>2]=d|4;return-1}function Ki(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-128|0;fc=c;J[c+112>>2]=13;a:{if(J[b>>2]!=6)break a;f=J[b+8>>2];d=J[f+12>>2];b:{if((d|0)<=0)break b;while(1){d=(c+80|0)+(e<<3)|0;if(J[Sc(f,e,c+112|0,0)>>2]-3>>>0>=4294967294)g=J[c+112>>2]==1?+J[c+120>>2]:O[c+120>>3];else g=0;O[d>>3]=g;yc(c+112|0);f=J[b+8>>2];d=J[f+12>>2];if(e>>>0>2)break b;e=e+1|0;if((d|0)>(e|0))continue;break}}c:{d:switch(d-1|0){case 0:a=J[a+40>>2];O[c>>3]= +O[c+80>>3];ed(a,837955,c);break c;case 2:a=J[a+40>>2];O[c+32>>3]=O[c+96>>3];O[c+16>>3]=O[c+80>>3];O[c+24>>3]=O[c+88>>3];ed(a,838196,c+16|0);break c;case 3:break d;default:break a}a=J[a+40>>2];O[c- -64>>3]=O[c+96>>3];O[c+72>>3]=O[c+104>>3];O[c+48>>3]=O[c+80>>3];O[c+56>>3]=O[c+88>>3];ed(a,838385,c+48|0)}h=1}fc=c+128|0;return h}function exb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+2308>>2];a:{if(!e)break a;c=J[a+2312>>2];b=J[a+2316>>2];a=J[a+2300>>2];if(K[a+56|0]){while(1){d=L[c+4>>1];g=L[c>>1]; +f=L[c+2>>1];if(!(!((g|0)!=L[a+838>>1]|(f|0)!=L[a+840>>1])&(d|0)==L[a+842>>1]))I[b+6>>1]=65535;I[b+4>>1]=d;I[b+2>>1]=f;I[b>>1]=g;b=b+8|0;c=c+6|0;h=h+1|0;if((h|0)!=(e|0))continue;break}break a}if((e|0)!=1){f=e&-2;a=0;while(1){d=L[c>>1]|L[c+2>>1]<<16;I[b+4>>1]=L[c+4>>1];I[b>>1]=d;I[b+2>>1]=d>>>16;I[b+6>>1]=65535;d=L[c+6>>1]|L[c+8>>1]<<16;I[b+12>>1]=L[c+10>>1];I[b+8>>1]=d;I[b+10>>1]=d>>>16;I[b+14>>1]=65535;b=b+16|0;c=c+12|0;a=a+2|0;if((f|0)!=(a|0))continue;break}}if(!(e&1))break a;a=L[c>>1]|L[c+2>>1]<< +16;I[b+4>>1]=L[c+4>>1];I[b>>1]=a;I[b+2>>1]=a>>>16;I[b+6>>1]=65535}return 0}function ema(a){a=a|0;var b=0,c=0,d=0;c=fc-16|0;fc=c;J[a+652>>2]=515;b=J[a+584>>2];a:{b:{c:{d:{e:{d=L[a+90>>1];switch(d-32844|0){case 0:break d;case 1:break e;default:break c}}if(!pT(a))break b;if(L[a+88>>1]==34677){J[a+540>>2]=583;a=1;f:switch(J[b>>2]){case 0:J[b+20>>2]=584;break a;case 1:J[b+20>>2]=585;break a;case 3:break f;default:break a}J[b+20>>2]=586;break a}J[a+540>>2]=587;a=1;g:switch(J[b>>2]){case 0:J[b+20>>2]=588; +break a;case 1:J[b+20>>2]=589;break a;case 3:break g;default:break a}J[b+20>>2]=590;break a}if(!XS(a))break b;J[a+540>>2]=591;a=1;h:switch(J[b>>2]){case 0:J[b+20>>2]=592;break a;case 3:break h;default:break a}J[b+20>>2]=593;break a}b=J[a>>2];a=J[a+628>>2];J[c+4>>2]=73878;J[c>>2]=d;Uc(a,b,73051,c)}a=0}fc=c+16|0;return a|0}function T4a(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;f=K[b+11|0];d=f<<24>>24<0;f=d?J[b+4>>2]:f;j=d?J[b>>2]:b;e=K[a+11|0];d=e<<24>>24<0;e=d?J[a+4>>2]:e;i=d?J[a>>2]: +a;d=0;while(1){a:{if(f){g=(e<<2)+i|0;e=(d<<2)+i|0;d=g-e>>2;if((f|0)>(d|0))break a;h=J[j>>2];while(1){d=(d-f|0)+1|0;if(!d)break a;d=og(e,h,d);if(!d)break a;if(qd(d,j,f)){e=d+4|0;d=g-e>>2;if((f|0)<=(d|0))continue;break a}break}if((d|0)==(g|0))break a;d=d-i>>2}if((d|0)==-1)break a;f=K[b+11|0];h=f<<24>>24<0?J[b+4>>2]:f;f=K[c+11|0];e=f<<24>>24<0;JF(a,d,h,e?J[c>>2]:c,e?J[c+4>>2]:f);f=K[b+11|0];e=f<<24>>24<0;f=e?J[b+4>>2]:f;j=e?J[b>>2]:b;e=K[a+11|0];g=e<<24>>24<0;i=g?J[a>>2]:a;h=d;d=K[c+11|0];d=h+(d<<24>> +24<0?J[c+4>>2]:d)|0;e=g?J[a+4>>2]:e;if(d>>>0<=e>>>0)continue}break}}function $vb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-1|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];h=g+3|0;a=j?(j|0)==(l|0)?d:b:c;a:{if(a>>>0<2){g=h;break a}i=a-1|0;k=i&3;b:{if(a-2>>>0<3){a=g;break b}m=i&-4;i=0;a=g;while(1){H[h|0]=K[f|0];H[a+4|0]=K[f+1|0];H[a+5|0]=K[f+2|0];H[h+3|0]=K[f|0];H[h+4|0]=K[f+1|0];H[h+5|0]=K[f+2|0];H[h+6|0]=K[f|0];H[h+7|0]=K[f+1|0];H[h+ +8|0]=K[f+2|0];H[h+9|0]=K[f|0];H[h+10|0]=K[f+1|0];H[h+11|0]=K[f+2|0];a=h+9|0;h=h+12|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;g=h;if(!k)break a;while(1){h=g;H[h|0]=K[f|0];H[a+4|0]=K[f+1|0];H[a+5|0]=K[f+2|0];g=h+3|0;a=h;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=f+3|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function o6(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;a:{if(b>>>0>c>>>0)break a;f=J[a+12>>2];if(f>>>0<=d>>>0|e>>>0>=f>>>0)break a;g=J[a+8>>2];f=J[g+(d<<3)>>2];g=J[g+ +(e<<3)>>2];b:{if((f|0)<=(g|0)){i=g;g=f;f=e;e=d;break b}i=f;f=d}d=J[a+4>>2];f=f<<3;h=J[d+f>>2];k=f;f=J[a>>2];l=J[k+f>>2];n=h-l|0;e=e<<3;j=J[e+d>>2];m=J[e+f>>2];o=j-m|0;if(!((g|0)==(i|0)|(h|0)==(j|0))){k=i-g|0;e=h-j|0;i=0;while(1){h=b<<3;f=J[h+J[a>>2]>>2];c:{if((f|0)<=(m|0)){f=f+o|0;break c}if((f|0)>=(l|0)){f=f+n|0;break c}if(!(i&255))p=Cd(e,k);f=Wc(J[h+J[a+8>>2]>>2]-g|0,p)+j|0;d=J[a+4>>2];i=1}J[d+h>>2]=f;b=b+1|0;if(c>>>0>=b>>>0)continue;break}break a}while(1){a=b<<3;e=J[a+f>>2];J[a+d>>2]=(e|0)>(m| +0)?(e|0)<(l|0)?j:e+n|0:e+o|0;b=b+1|0;if(c>>>0>=b>>>0)continue;break}}}function zub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if((c|0)!=1){Jc(a,1028,0,0);return 1028}if(K[a+305|0]){g=K[d|0];b:{if(K[a+114|0]){c=kc[J[a+152>>2]](36)|0;if(!c){Jc(a,1,0,0);c=1;break b}J[c+4>>2]=1042;J[c>>2]=1043;f=J[a+700>>2];c:{if(f){J[f+8>>2]=c;break c}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=f;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2]; +J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;H[c+28|0]=g;c=Gaa(a,c);if(c)break b}c=0}d:{if(c)break d;c=0;if(!K[a+112|0])break d;c=kc[J[b+4>>2]](a,b,e)|0;if(c)break d;H[J[e>>2]+32|0]=K[d|0];c=0}return c|0}Jc(a,1069,0,0);return 1069}Jc(a,1029,0,0);return 1029}function kv(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{if(b>>>0<32){if(c>>>b|0)break b;c:{if(b){f=b-1|0;while(1){if(!(K[a+16|0]&2))break a;g=b;b=J[a+8>>2];d=b-1|0;J[a+8>>2]=d;d:{if((b|0)<= +0){h=J[a+4>>2];e=h<<8&65280;b=(e|0)==65280?6:7;J[a+8>>2]=b;J[a+4>>2]=(c>>>f&1)<>2];i=J[b+8>>2];if(i&7)break c;d=J[b+64>>2];if(!((d|0)<0|(d|0)>J[b+60>>2])){J[b+8>>2]=i|4;return-1}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=h;break d}d=-1;if((bd(b,e>>>8|0)|0)!=-1)break d;break c}J[a+4>>2]=J[a+4>>2]|(c>>>f&1)<>>0>1)continue;break}}d=0}return d}fa(204035,202126,218,212135);B()}fa(204365, +202126,220,212135);B()}fa(203263,202126,225,212135);B()}function gv(a,b,c,d){var e=0,f=0;a:{if(!c){c=0;break a}c=J[a+512>>2];if(c)break a;c=J[a+528>>2]}b:{c:{d:{e:{c=d?J[a+544>>2]:c;if(!c)break e;c=J[c+88>>2];if(!c)break e;if(K[c+49|0])break b;e=.45455;if(K[c+59|0])break c;if(!K[c+57|0])break e;e=+M[c+1104>>2]/1E5;break d}f:{if(!b)break f;e=.45455;if(K[a+310|0])break c;if(!K[a+308|0])break f;e=+M[a+2192>>2]/1E5;break d}e=O[a+104>>3]}if(!(e>0))break b}e=O[a+88>>3]/(e*O[a+96>>3]);if(e!=O[a+960>>3]){H[a+ +704|0]=0;c=1;while(1){b=a+c|0;f=_e(+(c|0)/255,e)*255+.5;g:{if(f<4294967296&f>=0){d=~~f>>>0;break g}d=0}H[b+704|0]=d;b=c+1|0;if((b|0)!=256){d=a+b|0;f=_e(+(b|0)/255,e)*255+.5;h:{if(f<4294967296&f>=0){b=~~f>>>0;break h}b=0}H[d+704|0]=b;c=c+2|0;continue}break}O[a+960>>3]=e}J[a+976>>2]=1270}return 0}function cA(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;e=fc-16|0;fc=e;a:{if(!b|J[a+8>>2]!=J[b+8>>2]|J[a+28>>2]!=J[b+28>>2])break a;J[e+8>>2]=-755914244;J[e+12>>2]=1062232653;if(!J4(a+32|0,b+32|0, +e+8|0,0)|J[a+12>>2]!=J[b+12>>2]|(J[a+16>>2]!=J[b+16>>2]|J[a+20>>2]!=J[b+20>>2]))break a;if(J[a+24>>2]!=J[b+24>>2]|O[a+112>>3]!=O[b+112>>3])break a;f=a+36|0;d=K[f+11|0];g=d<<24>>24;h=b+36|0;c=K[h+11|0];g=(g|0)<0;d=g?J[f+4>>2]:d;i=c;c=c<<24>>24<0;if((d|0)==((c?J[h+4>>2]:i)|0))if(d)c=qd(g?J[f>>2]:f,c?J[h>>2]:h,d);else c=0;else c=1;if(c|J[a+48>>2]!=J[b+48>>2]|(J[a+52>>2]!=J[b+52>>2]|J[a+56>>2]!=J[b+56>>2]))break a;if(N[a+60>>2]!=N[b+60>>2]|N[a- -64>>2]!=N[b- -64>>2]|N[a+68>>2]!=N[b+68>>2])break a;j=N[a+ +72>>2]==N[b+72>>2]}fc=e+16|0;return j|0}function SX(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{b:{c:{d=J[a+708>>2];switch(d|0){case 0:break a;case 1:break c;default:break b}}Vd(a,c);return}d=d-1|0;J[a+708>>2]=d;if((d|0)!=1)break a;fd(a,67573);Vd(a,c);return}d=J[a+200>>2];if(d&1){if(d&4)J[a+200>>2]=d|8;Bd(a,J[a+740>>2]);d=sg(a,c+1|0);J[a+740>>2]=d;if(!d){fd(a,67631);return}Dg(a,d,c);Ae(a,d,c);e=Vd(a,0);d=J[a+740>>2];if(e){Bd(a,d);J[a+740>>2]=0;return}f=c+d|0;H[f|0]=0;c=d;while(1){e=c;c=c+1|0;if(K[e|0])continue; +break}c=sg(a,28);if(!c){fd(a,67663);Bd(a,J[a+740>>2]);J[a+740>>2]=0;return}J[c+24>>2]=0;J[c+4>>2]=d;J[c>>2]=-1;J[c+16>>2]=0;J[c+20>>2]=0;d=((e|0)!=(f|0))+e|0;J[c+8>>2]=d;g=c,h=Yc(d),J[g+12>>2]=h;b=eI(a,b,c);Bd(a,J[a+740>>2]);J[a+740>>2]=0;Bd(a,c);if(b)fd(a,67703);return}Ld(a,67606);B()}function Nq(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=(+(b|0)+16)/116;f=h+ +(d|0)/-200;e=_e(f,3);i=(e>.008856?e:f/7.787)*108.883/100;j=i*1.057;f=+(c|0)/500+h;e=_e(f,3);g=(e>.008856?e:f/7.787)*95.047/100;e=_e(h,3);f=(e> +.008856?e:h/7.787)*100/100;e=g*.0557+f*-.204;h=i*.0415+(g*-.9689+f*1.8758);f=i*-.4986+(g*3.2406+f*-1.5372);a:{if(f>.0031308){g=_e(f,.4166666666666667)*1.055+-.055;break a}g=f*12.92}e=j+e;b:{if(h>.0031308){f=_e(h,.4166666666666667)*1.055+-.055;break b}f=h*12.92}c:{if(e>.0031308){e=_e(e,.4166666666666667)*1.055+-.055;break c}e=e*12.92}b=a<<24;g=g*256;d:{if(R(g)<2147483648){a=~~g;break d}a=-2147483648}b=b|a<<16;f=f*256;e:{if(R(f)<2147483648){a=~~f;break e}a=-2147483648}a=b|a<<8;e=e*256;if(R(e)<2147483648)return a| +~~e;return a|-2147483648}function Iy(a){var b=0,c=0,d=0,e=0,f=0,g=0;if(a){b=J[a+32>>2];if(b){uc(b);J[a+32>>2]=0}b=J[a+28>>2];if(b){uc(b);J[a+28>>2]=0}b=J[a+36>>2];a:{if(!b)break a;c=J[b+1456>>2];if(c){uc(c);J[b+1456>>2]=0;b=J[a+36>>2]}c=J[b+1872>>2];if(c){uc(c);J[b+1872>>2]=0;b=J[a+36>>2];if(!b)break a}uc(b);J[a+36>>2]=0}c=J[a+44>>2];if(c){b=J[c+88>>2];b:{if(!b)break b;if((P(J[c+52>>2],J[c+48>>2])|0)>0){while(1){b=J[c+88>>2];d=P(e,1876);f=b+d|0;g=J[f+1456>>2];if(g){uc(g);J[f+1456>>2]=0;b=J[c+88>> +2]}b=b+d|0;d=J[b+1872>>2];if(d){uc(d);J[b+1872>>2]=0}e=e+1|0;if((e|0)<(P(J[c+52>>2],J[c+48>>2])|0))continue;break}b=J[c+88>>2];if(!b)break b}uc(b);J[c+88>>2]=0}b=J[c+68>>2];if(b){uc(b);J[c+68>>2]=0}b=J[c+56>>2];if(b){uc(b);J[c+56>>2]=0}b=J[c+44>>2];if(b)uc(b);uc(c)}uc(a)}}function rT(a){var b=Q(0),c=0,d=0,e=0,f=0;f=fc-16|0;fc=f;e=(C(a),v(2));c=e&2147483647;a:{if(c>>>0<=1061752794){b=Q(1);if(c>>>0<964689920)break a;b=xm(+a);break a}if(c>>>0<=1081824209){if(c>>>0>=1075235812){b=Q(-xm(((e|0)<0?3.141592653589793: +-3.141592653589793)+ +a));break a}d=+a;if((e|0)<0){b=wm(d+1.5707963267948966);break a}b=wm(1.5707963267948966-d);break a}if(c>>>0<=1088565717){if(c>>>0>=1085271520){b=xm(((e|0)<0?6.283185307179586:-6.283185307179586)+ +a);break a}if((e|0)<0){b=wm(-4.71238898038469-+a);break a}b=wm(+a+-4.71238898038469);break a}b=Q(a-a);if(c>>>0>=2139095040)break a;c=sT(a,f+8|0);d=O[f+8>>3];b:switch(c&3){case 0:b=xm(d);break a;case 1:b=wm(-d);break a;case 2:b=Q(-xm(d));break a;default:break b}b=wm(d)}a=b;fc=f+16|0; +return a}function Vqb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=fc-32|0;fc=b;a:{b:{c:{d:{e=J[693078];e:{if(e){c=Yc(a);if(c>>>0>=2147483632)break a;f:{if(c>>>0<=10){H[b+31|0]=c;d=b+20|0;break f}f=(c|15)+1|0;d=vc(f);J[b+28>>2]=f|-2147483648;J[b+20>>2]=d;J[b+24>>2]=c}g=xc(d,a,c)+c|0,h=0,H[g|0]=h;J[699344]=0;a=b+8|0;c=H[b+31|0];d=(c|0)<0;ca(1618,a|0,(d?J[b+20>>2]:b+20|0)|0,(d?J[b+24>>2]:c&255)|0);c=J[699344];J[699344]=0;if((c|0)==1)break d;c=J[J[e>>2]+24>>2];J[699344]=0;c=aa(c|0,e|0,a|0)|0;a=J[699344]; +J[699344]=0;if((a|0)==1)break c;if(H[b+19|0]<0)uc(J[b+8>>2]);if(H[b+31|0]<0)uc(J[b+20>>2]);a=1;if(c)break e}a=0}fc=b+32|0;return a|0}a=Z()|0;break b}a=Z()|0;if(H[b+19|0]>=0)break b;uc(J[b+8>>2])}if(H[b+31|0]<0)uc(J[b+20>>2]);ba(a|0);B()}_d(b+20|0);B()}function RIa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=fc-16|0;fc=f;J[a>>2]=2375924;e=vc(16);J[e>>2]=b;J[e+12>>2]=0;d=J[J[b>>2]+52>>2];J[699344]=0;d=_(d|0,b|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;J[e+4>>2]=d;J[699344]=0;d=pa(1619)|0;c=J[699344]; +J[699344]=0;if((c|0)==1)break a;c=J[J[b>>2]+24>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[J[d>>2]+24>>2];J[699344]=0;da(c|0,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[e+4>>2];c=J[J[b>>2]+68>>2];J[699344]=0;da(c|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[f+12>>2]=16;b=J[J[d>>2]+20>>2];J[699344]=0;da(b|0,d|0,f+12|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[e+8>>2]=0;J[a+4>>2]=e;fc=f+16|0;return a|0}a=Z()|0;uc(e);ba(a|0);B()}function OL(a, +b){var c=0,d=0,e=0,f=0,g=0;g=a;c=K[b|0];a:{if(!c)break a;while(1){e=f;b=b+1|0;b:{c:{d:{e:{f:{g:{if(c<<24>>24<0)break g;f=1;h:{d=K[(c&255)+736704|0];switch(d|0){case 2:break b;case 0:break g;case 1:break h;default:break e}}if(e&255)break b;f=0;e=K[b|0];d=e<<24>>24;if((d|0)<0)break b;if((K[e+736704|0]-1&255)>>>0<=1)break f;break b}d=K[b|0]}if(!(d&255))break a;while(1){b=b+1|0;i:{j:{if(d<<24>>24<0)break j;f=0;k:{c=K[(d&255)+736704|0];switch(c|0){case 0:break j;case 1:break k;case 2:break d;default:break b}}e= +K[b|0];c=e<<24>>24;if((c|0)<0)break c;if((K[e+736704|0]-1&255)>>>0<=1)break i;break c}c=K[b|0]}d=c;if(c&255)continue;break}break a}f=0;c=d;break b}f=1}c=d}H[g|0]=c;g=g+1|0;c=K[b|0];if(c)continue;break}}H[g|0]=0;return a}function GTa(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;d=O[b+24>>3];c=J[b+24>>2];e=O[b+40>>3];j=J[b+40>>2];f=O[b+56>>3];k=J[b+56>>2];g=O[b+72>>3];l=J[b+72>>2];h=O[b+88>>3];m=J[b+88>>2];n=J[b+16>>2];o=J[b+32>>2];p=J[b+48>>2];q= +J[b+64>>2];r=J[b+80>>2];i=O[b+8>>3];s=J[b+8>>2];t=J[b>>2];b=J[a+28>>2];J[b+616>>2]=0;J[b+620>>2]=0;J[b+624>>2]=0;J[b+628>>2]=0;i=(t|0)==1?+(s|0):i;O[b+504>>3]=i;h=(r|0)==1?+(m|0):h;O[b+544>>3]=h;g=(q|0)==1?+(l|0):g;O[b+536>>3]=g;f=(p|0)==1?+(k|0):f;O[b+528>>3]=f;e=(o|0)==1?+(j|0):e;O[b+520>>3]=e;d=(n|0)==1?+(c|0):d;O[b+512>>3]=d;O[b+608>>3]=d*0+f*0+h;O[b+600>>3]=i*0+e*0+g;c=J[a+8>>2];kc[J[J[c>>2]+160>>2]](c,b);b=J[a+8>>2];kc[J[J[b>>2]+184>>2]](b,J[a+28>>2]);J[a+32>>2]=1}function GM(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;g=c-b|0;e=g>>2;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>2>>>0){f=J[a+4>>2]-d|0;h=f>>2;if(e>>>0>h>>>0){cd(d,b,f);d=J[a+4>>2];b=(h<<2)+b|0;if((c|0)!=(b|0))while(1){e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[d|0]=e;H[d+1|0]=e>>>8;H[d+2|0]=e>>>16;H[d+3|0]=e>>>24;d=d+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=cd(d,b,g)+(e<<2)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=1073741824)break a; +d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d>>>0>=1073741824)break a;e=d<<2;d=vc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-4&-4)+4|0;d=xc(d,c,b)+b|0}J[a+4>>2]=d;return}nj(a);B()}function Q6(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a|a>>>0>=b>>>0)break a;g=a+1|0;d=H[a|0];a=0;e=52;b:{while(1){f=a+e|0;c=f&-2;c=(K[c+268178|0]<<8|K[c+268179|0])+268176|0;h=K[c|0]&127;if((h|0)==(d|0))break b;c=f>>1;f=(d|0)>(h|0);a=f?c+1|0:a;e=f?e:c;if((a|0)<(e|0))continue;break}return 0}c:{if(b>>> +0<=g>>>0){d=K[c|0];break c}d=K[c|0];while(1){a=K[c+1|0];e=a&127;h=d<<24>>24;f=K[g|0];d=a<<24>>24;d:{e:{if((h|0)<0){if((e|0)!=(f|0))break e;c=c+1|0;break d}if(!e)break a;a=(((d|0)>=0?1:3)+c|0)+1|0;while(1){c=(K[a+1|0]|K[a|0]<<8)+268176|0;d=K[c|0];if((f|0)==(d&127))break d;a=a+2|0;c=(e|0)>1;e=e-1|0;if(c)continue;break}break a}return 0}g=g+1|0;if((g|0)!=(b|0))continue;break}}if(d<<24>>24<0|H[c+1|0]>=0)break a;return K[c+3|0]|K[c+2|0]<<8}return 0}function CM(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f= +0;f=fc-16|0;fc=f;e=J[J[a>>2]>>2];a=!e;a:{if(a)break a;Df(e,f+12|0,f+8|0,f+4|0);if((b|0)<0|J[f+12>>2]<=(b|0)|((c|0)<0|J[f+8>>2]<=(c|0)))break a;a=(P(e?J[e+12>>2]:-1,c)<<2)+(a?0:J[e+40>>2])|0;b:{c:switch(J[f+4>>2]-1|0){case 0:c=-2147483648>>>b|0;if(d){a=a+(b>>>3&536870908)|0;J[a>>2]=c|J[a>>2];break b}a=a+(b>>>3&536870908)|0;J[a>>2]=J[a>>2]&(c^-1);break b;case 1:a=a+(b>>>2&1073741820)|0;c=a;e=J[a>>2];a=b<<1;J[c>>2]=e&(-1073741824>>>a^-1)|(d&3)<<(a&30^30);break b;case 3:a=a+(b>>>1&2147483644)|0;c=a;e= +J[a>>2];a=b<<2;J[c>>2]=e&(-268435456>>>a^-1)|(d&15)<<(a&28^28);break b;case 7:H[a+b^3]=d;break b;case 15:I[(a+(b<<1)^2)>>1]=d;break b;case 31:break c;default:break a}J[a+(b<<2)>>2]=d}}fc=f+16|0}function vob(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;b=Yc(c);f=b+18|0;a:{b:{if((b|0)<=-18){a=6;if(f)break a;a=0;break b}a=J[a>>2];a=kc[J[a+4>>2]](a,f)|0;if(!a)return 64;Ac(a,0,f)}f=xc(a,c,b);b=f+b|0;a=K[242302]|K[242303]<<8;H[b+16|0]=a;H[b+17|0]=a>>>8;a=K[242298]|K[242299]<<8|(K[242300]<<16|K[242301]<< +24);c=K[242294]|K[242295]<<8|(K[242296]<<16|K[242297]<<24);H[b+8|0]=c;H[b+9|0]=c>>>8;H[b+10|0]=c>>>16;H[b+11|0]=c>>>24;H[b+12|0]=a;H[b+13|0]=a>>>8;H[b+14|0]=a>>>16;H[b+15|0]=a>>>24;a=K[242290]|K[242291]<<8|(K[242292]<<16|K[242293]<<24);c=K[242286]|K[242287]<<8|(K[242288]<<16|K[242289]<<24);H[b|0]=c;H[b+1|0]=c>>>8;H[b+2|0]=c>>>16;H[b+3|0]=c>>>24;H[b+4|0]=a;H[b+5|0]=a>>>8;H[b+6|0]=a>>>16;H[b+7|0]=a>>>24;J[d>>2]=f;J[e>>2]=0;a=0}return a|0}function Qy(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=J[b+ +8>>2];d=d-i|0;g=J[b+4>>2];c=c-g|0;h=J[a+36>>2];if(h){if(!(H[a|0]&1))uc(h);J[a+36>>2]=0;J[a+40>>2]=0}h=J[a+28>>2];if(h){uc(h);J[a+28>>2]=0}f=(((i^-1)+f|0)-d|0)+1|0;J[a+32>>2]=f;J[a+24>>2]=(((g^-1)+e|0)-c|0)+1;J[a+20>>2]=f;J[a>>2]=J[a>>2]|1;l=a,m=Dc(f<<2),J[l+28>>2]=m;e=J[a+20>>2];a:{if((e|0)<=0)break a;f=0;if((e|0)!=1){h=e&-2;i=0;while(1){g=f<<2;j=c<<2;k=d<<2;J[g+J[a+28>>2]>>2]=j+J[k+(g+J[b+28>>2]|0)>>2];g=g|4;J[g+J[a+28>>2]>>2]=J[(g+J[b+28>>2]|0)+k>>2]+j;f=f+2|0;i=i+2|0;if((h|0)!=(i|0))continue;break}}if(!(e& +1))break a;f=f<<2;J[f+J[a+28>>2]>>2]=J[(f+J[b+28>>2]|0)+(d<<2)>>2]+(c<<2)}c=c+J[b+4>>2]|0;J[a+4>>2]=c;b=J[b+8>>2];J[a+12>>2]=c+J[a+24>>2];b=b+d|0;J[a+8>>2]=b;J[a+16>>2]=b+e}function I2(a){var b=0,c=0,d=0;b=fc-65808|0;fc=b;J[b+44>>2]=0;J[b+48>>2]=0;a:{if(!a){N2(b+8|0);break a}J[b+48>>2]=J[a+40>>2];c=J[a+36>>2];J[b+40>>2]=J[a+32>>2];J[b+44>>2]=c;c=J[a+28>>2];J[b+32>>2]=J[a+24>>2];J[b+36>>2]=c;c=J[a+20>>2];J[b+24>>2]=J[a+16>>2];J[b+28>>2]=c;c=J[a+12>>2];J[b+16>>2]=J[a+8>>2];J[b+20>>2]=c;c=J[a+4>>2]; +J[b+8>>2]=J[a>>2];J[b+12>>2]=c}c=J[b+36>>2];a=J[b+8>>2];if(!a)a=J[b+40>>2];c=kc[a|0](c,0,11)|0;J[b+52>>2]=c;b:{if(!c){a=0;break b}a=0;c=vq(b+8|0,c);J[b+128>>2]=0;J[b+64>>2]=0;J[b+65776>>2]=c;J[b+65780>>2]=jc;J[b+56>>2]=0;J[b+60>>2]=0;d=Dc(65800);c=b+65792|0;J[c>>2]=0;J[c+4>>2]=0;J[b+65784>>2]=0;J[b+65788>>2]=0;if(!d){kc[J[b+28>>2]](J[b+36>>2],J[b+52>>2])|0;break b}J[b+65800>>2]=0;a=xc(d,b+8|0,65800)}fc=b+65808|0;return a}function bY(a,b,c){var d=0,e=0,f=0;d=fc-528|0;fc=d;e=J[a+200>>2];if(e&1){a:{if(e& +4){fd(a,66627);Vd(a,c);break a}if(!(e&2)){fd(a,66651);Vd(a,c);break a}if(!(!b|!(K[b+8|0]&64))){fd(a,66676);Vd(a,c);break a}if(!(L[a+392>>1]<<1==(c|0)&c>>>0<=512)){fd(a,66697);Vd(a,c);break a}if(c>>>0>=2){c=c>>>1|0;e=c>>>0<=1?1:c;c=0;while(1){f=d+14|0;Dg(a,f,2);Ae(a,f,2);f=K[d+14|0]|K[d+15|0]<<8;I[(d+16|0)+(c<<1)>>1]=f<<8|f>>>8;c=c+1|0;if((e|0)!=(c|0))continue;break}}if(Vd(a,0))break a;e=d+16|0;b:{if(!a|!b)break b;if((L[b+20>>1]-257&65535)>>>0<=65279){fd(a,60943);break b}Zp(a,b,8,0);c=sg(a,512);J[a+ +596>>2]=c;if(c){a=L[b+20>>1];if(a)xc(c,e,a<<1);J[b+124>>2]=c;J[b+8>>2]=J[b+8>>2]|64;J[b+184>>2]=J[b+184>>2]|8;break b}fd(a,61160)}}fc=d+528|0;return}Ld(a,66602);B()}function yJ(a,b,c){var d=0,e=0,f=0;a:{d=J[a>>2];if(!d)break a;e=J[a+12>>2];b:{c:{if(!e)break c;f=J[a+4>>2];d:{if(f){e=kc[f|0](J[d>>2],b)|0;break d}if(b>>>0>>0)break c;e=b>>>0>e>>>0?-1:0}if(!e)break b}Er(a,0,b,a,0,0);if(J[a+8>>2]){DJ(a);Er(a,0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}e=0;d=J[a>>2];if(!d)break a;d=J[d>>2];e=J[a+4>> +2];e:{if(e){e=kc[e|0](d,b)|0;break e}e=1;if(b>>>0>>0)break a;e=b>>>0>d>>>0?-1:0}if(e)break a;a=J[a>>2];J[a+4>>2]=c;J[a>>2]=b;return 1}d=Dc(16);if(d){J[d+4>>2]=c;J[d>>2]=b;b=J[a>>2];f:{if(!b){J[d+8>>2]=0;b=d+12|0;break f}if((e|0)<0){J[d+8>>2]=b;J[d+12>>2]=J[b+12>>2];b=b+12|0;break f}J[d+12>>2]=b;J[d+8>>2]=J[b+8>>2];b=b+8|0}J[b>>2]=0;J[a+12>>2]=0;J[a>>2]=d;J[a+20>>2]=J[a+20>>2]+1;a=1}else a=0;return a}function qh(a,b,c){var d=0,e=0,f=0,g=0;e=K[b|0];g=e&1;f=J[a+20>>2];d=(f+c>>>2|0)+24576|0;d=c>>> +0>d>>>0?d:c;c=J[a+24>>2];if(d>>>0>c>>>0){e=c;c=65536-d|0;J[a+24>>2]=e+c;J[a+20>>2]=c+f;H[b|0]=K[(K[b|0]+a|0)+2348|0];c=J[a+20>>2];a:{if(c>>>0>=65280){b=H[((c&255)+a|0)+2604|0]+8|0;break a}b=H[((c>>>8|0)+a|0)+2604|0]}J[a+20>>2]=c<>2]>>>d|J[a+24>>2]<>2]=c;if(d>>>0<=15){Xv(a);c=J[a+24>>2]}J[a+28>>2]=c>>>0>=32767?32767:c;return!g}if(M[((e<<2)+a|0)+1068>>2]<=f>>>0){H[b|0]=K[(a+e|0)+2092|0];c=J[a+24>>2]}J[a+20>>2]=d<<1&65534; +b=K[a+18|0]-1|0;H[a+18|0]=b;b=b&255;c=J[a+36>>2]>>>b&1|c<<1&65534;J[a+24>>2]=c;if(b>>>0<=15){Xv(a);c=J[a+24>>2]}J[a+28>>2]=c>>>0>=32767?32767:c;return g}function hX(a,b){var c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;J[a+16>>2]=0;J[a+20>>2]=J[685894];c=a+16|0;a:{d=J[b+16>>2];b:{c:{if(d){f=J[J[d>>2]+28>>2];J[699344]=0;ca(f|0,e+12|0,d|0,1);d=J[699344];J[699344]=0;if((d|0)!=1)break c;a=Z()|0;break b}J[e+12>>2]=0}J[699344]=0;aa(5153, +c|0,e+12|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){c=J[e+12>>2];J[e+12>>2]=0;if(!c)break a;J[699344]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;f=J[699344];J[699344]=0;if((f|0)!=1){if(d)break a;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a}ea(0)|0;Bc();B()}a=Z()|0;zc(e+12|0)}wc(c);ba(a|0);B()}c=J[a+16>>2];J[a+20>>2]=J[(c?c+12|0:2743576)>>2];J[a+24>>2]=J[b+24>>2];fc=e+16|0;return a}function gh(){var a=0,b=0,c=0,d=0,e=0,f=0;if(K[2797612])return J[699402];c=fc-32|0;fc=c;a:{b:{while(1){b=c+8| +0;d=Ez(a,1<>2]=d;if((d|0)==-1)break b;a=a+1|0;if((a|0)!=6)continue;break}a=2467144;if(!dd(b,2467144,24))break a;a=2467168;if(!dd(b,2467168,24))break a;a=0;if(!K[2797440]){while(1){e=(a<<2)+2797392|0,f=Ez(a,39197),J[e>>2]=f;a=a+1|0;if((a|0)!=6)continue;break}H[2797440]=1;J[699354]=J[699348]}a=2797392;b=c+8|0;if(!dd(b,2797392,24))break a;a=2797416;if(!dd(b,2797416,24))break a;a=Dc(24);if(!a)break b;b=J[c+12>>2];J[a>>2]=J[c+8>>2];J[a+4>>2]=b;b=J[c+28>>2];J[a+16>> +2]=J[c+24>>2];J[a+20>>2]=b;b=J[c+20>>2];J[a+8>>2]=J[c+16>>2];J[a+12>>2]=b;break a}a=0}fc=c+32|0;H[2797612]=1;J[699402]=a;return a|0}function aua(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=fc-16|0;fc=f;g=vc(68);J[699344]=0;h=nV(g);i=J[699344];J[699344]=0;a:{b:{c:{d:{if((i|0)!=1){J[h+64>>2]=0;J[h+56>>2]=0;J[h+60>>2]=0;J[h>>2]=2427512;J[a>>2]=0;vd(a,h);g=J[c>>2];if(g){J[699344]=0;J[g+4>>2]=J[g+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break d;e=J[c>>2]}J[699344]=0;J[f+12>>2]=e;ia(5671, +h|0,b|0,f+12|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[f+12>>2]=0;e:{if(!e)break e;J[699344]=0;a=J[e+4>>2]-1|0;J[e+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(a)break e;J[699344]=0;$(5147,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=f+16|0;return}a=Z()|0;uc(g);ba(a|0);B()}b=Z()|0;break b}b=Z()|0;zc(f+12|0)}zc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function Nd(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=-1;a:{if(!a)break a;e=J[a>>2];if(!e)break a;g=J[a+12>>2];if(!g)break a;h=J[a+16>> +2];if(!h)break a;c=J[e+16>>2];if(!c)break a;if(!J[c+32>>2]){b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;f=0;b=J[c+20>>2];d=J[c+4>>2];if(!((b|0)==(d|0)|d>>>0>2147483646)){J[c+20>>2]=d;b=d}if(b>>>0>(h-g|0)+250>>>0)break a}if(!J[e+4>>2])return 0;f=CC(e,250);b=0;c=J[J[a>>2]+16>>2];if(!(!c|J[c+32>>2]))b=J[c>>2];d=J[a+12>>2];if((d|0)!=(b|0)){J[a+12>>2]=b;J[a+16>>2]=(J[a+16>>2]-d|0)+b}b=0;if(!(J[c+32>>2]|!c)){b=J[c+8>>2];if(!((b|0)==J[c+24>>2]|b>>>0>2147483646))J[c+24>>2]=b;d=J[c+20>> +2];b=J[c+4>>2];if((d|0)==(b|0)|b>>>0>2147483646)b=d;else J[c+20>>2]=b;b=b+J[c>>2]|0}J[a+20>>2]=b}return f}function stb(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=Q(0),k=0,l=0,m=0,n=0;g=fc-976|0;fc=g;e=xf(g,0);h=J[a+8>>2];k=J[a+16>>2];l=K[a+40|0];m=J[a+12>>2];f=J[a+4>>2];J[699344]=0;f=za(18,e|0,k|0,f|0,h|0,32,f<<2,(m^-1)>>>31|0,!l|0)|0;h=J[699344];J[699344]=0;a:{b:{if((h|0)==1)break b;if(f){c:{if((d|0)!=3)break c;i=O[a+32>>3];if(i==-1)break c;J[699344]=0;j=Q(i);N[e+344>>2]=j>Q(0)?j: +Q(0);a=J[699344];J[699344]=0;if((a|0)==1)break b}J[699344]=0;n=ha(23,e|0,b|0,c|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b}J[e>>2]=1032;J[699344]=0;_(13,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;J[699344]=0;_(14,e|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;fc=g+976|0;return n|0}a=Z()|0;Jj(e);ba(a|0);B()}ea(0)|0;Bc();B()}function nDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+16>>2]>>>2|0;J[a+20>>2]=c;c=Dc(c<<3);J[a+24>>2]=c;a:{if(!c)break a;if(!J[a+20>>2])return 0;b:{while(1){f= +J[a+24>>2]+(e<<3)|0;if(Wg(b,f))break a;c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;c=J[b+28>>2];J[b+28>>2]=c-1;c:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break c}c=td(b,1);if((c|0)==-1)break a}H[f+4|0]=c;c=J[b+8>>2];if(c&7)break a;d=J[b+64>>2];if((d|0)>=0&(d|0)<=J[b+60>>2])break b;c=J[b+28>>2];J[b+28>>2]=c-1;d:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break d}c=td(b,1);if((c|0)==-1)break a}H[f+5|0]= +c;e=e+1|0;if(e>>>0>2])continue;break}return 0}J[b+8>>2]=c|4}return-1}function XD(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+52>>2];c=K[a+32|0];a:{b:{c:{if(c)break c;d=J[a+24>>2];if(d>>>0>=M[a+28>>2])break c;if(M[a+56>>2]>2])break b}if(M[a+56>>2]>=M[a+60>>2]){b=b+1|0;J[a+52>>2]=b;e=-1;if(b>>>0>16)break a;J[a+60>>2]=M[a+40>>2]>b>>>0?(1<>2]+1|0}if(c){J[a+60>>2]=256;J[a+52>>2]=9;H[a+32|0]=0;b=9}e=-1;if(J[a+4>>2])break a;d=0;c=rN(J[a+164>>2],a+8|0,b);J[a+24>>2]=0;f=c<<3;J[a+ +28>>2]=f;J[a+36>>2]=c+J[a+36>>2];g=J[a+52>>2];J[a+4>>2]=g>>>0>c>>>0;if(f>>>0<=g>>>0)break a;J[a+28>>2]=(f|1)-g;if(!c)break a}J[a+24>>2]=b+d;g=(d>>>3|0)+a|0;c=g+8|0;f=d&7;e=K[c|0]>>>f|0;d=8-f|0;a=b-d|0;if(a>>>0<8)b=g+9|0;else{a=a-8|0;e=K[c+1|0]<>>2|0;J[e>>2]=g;g=kc[J[a+152>>2]](g)|0;J[d>>2]=g;if(!g)break a;i=c>>>1|0;while(1){g=zx(a+2340|0,J[a+2396>>2],J[a+2400>>2],J[a+ +2404>>2],J[a+2408>>2],J[a+2412>>2],212840);c:{if(g){Jc(a,5,g,0);break c}H[a+2421|0]=1}J[a+2352>>2]=J[d>>2];J[a+2356>>2]=J[e>>2];J[a+2340>>2]=b;J[a+2344>>2]=c;h=Wk(a+2340|0,4);g=10;d:{if((h|0)==-5|J[a+2344>>2])break d;g=0;if(h>>>0<2)break d;Jc(a,5,h,0);g=5}J[f>>2]=J[a+2360>>2];h=Yo(a+2340|0);e:{if(h){Jc(a,5,h,0);break e}H[a+2421|0]=0}if((g|0)!=10)break b;g=J[d>>2];if(g)kc[J[a+156>>2]](g,J[e>>2]);g=J[e>>2]+i|0;J[e>>2]=g;g=kc[J[a+152>>2]](g)|0;J[d>>2]=g;if(g)continue;break}Jc(a,1,0,0);return 1}J[d>> +2]=0;J[e>>2]=0;J[f>>2]=0}return g}Jc(a,1,0,0);return 1}function gmb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=fc-16|0;fc=e;a:{if(J[a+4>>2])break a;d=6;b:{if(J[a+12>>2]!=1)break b;g=J[a>>2];c=J[a+28>>2];if(c)J[(J[a+36>>2]+(c<<4)|0)-4>>2]=b;h=c+1|0;d=J[a+32>>2];c:{if(h>>>0<=d>>>0){f=J[a+36>>2];break c}J[e+8>>2]=0;i=(c&-8)+8|0;f=_c(g,16,d,i,J[a+36>>2],e+8|0);J[a+36>>2]=f;d=J[e+8>>2];if(d)break b;J[a+32>>2]=i}J[((h<<4)+f|0)-16>>2]=0;J[((c<<4)+f|0)+12>>2]=0;J[a+28>>2]=h;c=J[a- -64>>2];if(c)J[(J[a+ +72>>2]+(c<<4)|0)-4>>2]=b;f=c+1|0;b=J[a+68>>2];d:{if(f>>>0<=b>>>0){b=J[a+72>>2];break d}J[e+12>>2]=0;d=g;g=(c&-8)+8|0;b=_c(d,16,b,g,J[a+72>>2],e+12|0);J[a+72>>2]=b;d=J[e+12>>2];if(d)break b;J[a+68>>2]=g}J[((f<<4)+b|0)-16>>2]=0;J[((c<<4)+b|0)+12>>2]=0;J[a+64>>2]=f;break a}J[a+4>>2]=d}fc=e+16|0}function _tb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{b:{c:{f=1029;d:{if(!K[a+285|0]|!K[a+288|0])break d;f=1028;if(c&3|c>>>0<4)break d;if(!K[a+112|0])break b;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break a;b= +c>>>2|0;J[J[e>>2]+32>>2]=b;f=kc[J[a+152>>2]](c)|0;if(f)break c;f=1}Jc(a,f,0,0);return f|0}J[J[e>>2]+36>>2]=f;if((b|0)!=1){e=b&1073741822;b=0;while(1){a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[f+4>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);f=f+8|0;d=d+8|0;b=b+2|0;if((e|0)!=(b|0))continue;break}}if(!(c&4))break b;a=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f>>2]=a<<24|(a&65280)<<8|(a>>> +8&65280|a>>>24)}f=0}return f|0}function _U(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;a=Cm(a);J[a>>2]=2438676;J[699344]=0;da(6242,c+4|0,b|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){b=J[c+4>>2];c:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[c+12>>2]=0}J[699344]=0;aa(5153,a+8|0,c+12|0)|0;b=J[699344];J[699344]=0;d:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break d;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344]; +J[699344]=0;if((e|0)!=1){if(d)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d}ea(0)|0;Bc();B()}b=Z()|0;zc(c+12|0);break b}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2743576)>>2];wc(c+4|0);fc=c+16|0;return a|0}b=Z()|0;break a}wc(c+4|0)}Ed(a);ba(b|0);B()}function vDa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=fc-16|0;fc=f;J[a+8>>2]=0;J[a>>2]=2400772;J[a+4>>2]=0;J[a+12>>2]=J[685894];g=a+8|0;a:{b=J[b>>2];b:{c:{if(b){h=J[J[b>>2]+28>>2];J[699344]=0;ca(h|0,f+12|0,b|0, +1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[f+12>>2]=0}J[699344]=0;aa(5153,g|0,f+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[f+12>>2];J[f+12>>2]=0;if(!b)break a;J[699344]=0;g=J[b+4>>2]-1|0;J[b+4>>2]=g;h=J[699344];J[699344]=0;if((h|0)!=1){if(g)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}b=Z()|0;zc(f+12|0)}wc(g);nd(a);ba(b|0);B()}b=J[a+8>>2];b=J[(b?b+12|0:2743576)>>2];J[a+24>>2]=e;J[a+20>>2]=d;H[a+16|0]=c;J[a+12>>2]=b;fc=f+16| +0;return a|0}function Vh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){a:{if(!a)break a;b=J[a+20>>2];if(!b)break a;c=J[a+16>>2];e=fc-16|0;fc=e;J[e+12>>2]=0;f=b-c|0;b=J[698607];b:{if(b){d=e+12|0;while(1){if((c|0)==J[b>>2])break b;if(d)J[d>>2]=b;b=J[b+36>>2];if(b)continue;break}}b=0}c:{if(!(b?f:0)){c=-28;break c}if(J[b+4>>2]!=(f|0)){c=-28;break c}d=J[e+12>>2];J[(d?d+36|0:2794428)>>2]=J[b+36>>2];d=J[b+16>>2];if(!(d&32)){c=Xb(c|0,f|0,J[b+32>>2],d|0,J[b+12>>2],J[b+24>>2],J[b+28>>2])|0;if(c)break c}if(J[b+8>> +2])uc(J[b>>2]);c=0;if(K[b+16|0]&32)break c;uc(b)}fc=e+16|0;b=c;if(b>>>0>=4294963201)J[698583]=0-b;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0}if(K[a+12|0]){Nf(a);return}J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=-1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}}function N0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=fc-32|0;fc=f;a:{if(H[b+11|0]>=0){J[f+24>>2]=J[b+8>>2];g=J[b+4>>2];J[f+16>>2]=J[b>>2];J[f+20>>2]=g;break a}Ve(f+16|0,J[b>>2],J[b+4>>2])}b:{c:{d:{e:{if(H[c+11|0]>=0){J[f+8>>2]=J[c+8>>2]; +b=J[c+4>>2];J[f>>2]=J[c>>2];J[f+4>>2]=b;break e}b=J[c+4>>2];c=J[c>>2];J[699344]=0;ca(15,f|0,c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break d}a=J[a>>2];J[699344]=0;a=ja(3197,(H[f+27|0]<0?J[f+16>>2]:f+16|0)|0,(H[f+11|0]<0?J[f>>2]:f)|0,a|0,d|0,(e|0)>0|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;if(H[f+11|0]<0)uc(J[f>>2]);if(H[f+27|0]<0)uc(J[f+16>>2]);fc=f+32|0;return(a|0)!=0|0}b=Z()|0;break b}b=Z()|0;if(H[f+11|0]>=0)break b;uc(J[f>>2])}if(H[f+27|0]<0)uc(J[f+16>>2]);ba(b|0);B()}function oH(a, +b){var c=0,d=0,e=0,f=0,g=0;e=b<<1;if(e){c=a;while(1){d=K[c+3|0];H[c+3|0]=K[c|0];H[c|0]=d;d=K[c+2|0];H[c+2|0]=K[c+1|0];H[c+1|0]=d;d=K[c+7|0];H[c+7|0]=K[c+4|0];H[c+4|0]=d;d=K[c+6|0];H[c+6|0]=K[c+5|0];H[c+5|0]=d;c=c+8|0;e=e-2|0;if(e)continue;break}}a:{if(!b)break a;d=b&3;b:{if(!d){c=b;break b}e=0;c=b;while(1){f=a,g=AEb(J[a>>2],J[a+4>>2],32),J[f>>2]=g;J[a+4>>2]=jc;a=a+8|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){f=a,g=AEb(J[a>>2],J[a+4>>2],32),J[f>>2]=g;J[a+4>>2]=jc; +f=a,g=AEb(J[a+8>>2],J[a+12>>2],32),J[f+8>>2]=g;J[a+12>>2]=jc;f=a,g=AEb(J[a+16>>2],J[a+20>>2],32),J[f+16>>2]=g;J[a+20>>2]=jc;f=a,g=AEb(J[a+24>>2],J[a+28>>2],32),J[f+24>>2]=g;J[a+28>>2]=jc;a=a+32|0;c=c-4|0;if(c)continue;break}}}function eo(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(c-37>>>0<4294967261)break a;d=J[a>>2];if(d>>>0>=b>>>0)break a;b:{c:{g=K[d|0];switch(g-43|0){case 0:case 2:break c;default:break b}}d=d+1|0;if((d|0)==(b|0))break a;k=(g|0)==45;switch(K[d|0]-43|0){case 0:case 2:break a; +default:break b}}h=2147483647/(c>>>0)|0;if(b>>>0>d>>>0){l=P(c,h)^2147483647;d:{while(1){g=e;e:{e=K[d|0];switch(e|0){case 0:case 9:case 10:case 12:case 13:case 32:break d;default:break e}}if(e<<24>>24<0)break d;i=H[e+261808|0];if((i|0)<0|(c|0)<=(i|0))break d;e=1;j=f;f:{if((f|0)>(h|0))break f;if((f|0)==(h|0)){j=h;if((i|0)>(l|0))break f}e=g;j=i+P(c,f)|0}f=j;d=d+1|0;if((d|0)!=(b|0))continue;break}g=e;d=b}e=g&255?2147483647:f}J[a>>2]=d;f=k?0-e|0:e}return f}function YS(a){var b=0,c=0,d=0,e=0;e=fc-16|0; +fc=e;d=(C(a),v(2));c=d&2147483647;a:{if(c>>>0<=1061752794){if(c>>>0<964689920)break a;a=wm(+a);break a}if(c>>>0<=1081824209){b=+a;if(c>>>0<=1075235811){if((d|0)<0){a=Q(-xm(b+1.5707963267948966));break a}a=xm(b+-1.5707963267948966);break a}a=wm(-(((d|0)>=0?-3.141592653589793:3.141592653589793)+b));break a}if(c>>>0<=1088565717){if(c>>>0<=1085271519){b=+a;if((d|0)<0){a=xm(b+4.71238898038469);break a}a=Q(-xm(b+-4.71238898038469));break a}a=wm(((d|0)<0?6.283185307179586:-6.283185307179586)+ +a);break a}if(c>>> +0>=2139095040){a=Q(a-a);break a}c=sT(a,e+8|0);b=O[e+8>>3];b:switch(c&3){case 0:a=wm(b);break a;case 1:a=xm(b);break a;case 2:a=wm(-b);break a;default:break b}a=Q(-xm(b))}fc=e+16|0;return a}function NIa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;c=fc-32|0;fc=c;kc[J[J[a>>2]+16>>2]](a);e=c+28|0;J[e>>2]=0;d=J[J[a+4>>2]+8>>2];J[c+4>>2]=0;H[c+15|0]=0;f=J[J[d>>2]+12>>2];J[699344]=0;g=f;f=c+16|0;ca(g|0,f|0,d|0,c+4|0);d=J[699344];J[699344]=0;a:{b:{c:{d:{if((d|0)!=1){J[699344]=0;b=na(4898,e|0,b|0, +f|0,0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;if(H[c+27|0]<0)uc(J[c+16>>2]);if(H[c+15|0]<0)uc(J[c+4>>2]);if(!b){d=vc(72);e=J[J[a+4>>2]+4>>2];J[699344]=0;e=aa(4899,d|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;a=J[a+4>>2];J[a+12>>2]=e;$X(e,J[a+8>>2])}fc=c+32|0;return!b|0}a=Z()|0;break c}a=Z()|0;if(H[c+27|0]>=0)break c;uc(J[c+16>>2])}if(H[c+15|0]>=0)break a;uc(J[c+4>>2]);ba(a|0);B()}a=Z()|0;uc(d)}ba(a|0);B()}function MH(a){var b=0,c=0,d=0;Sg(a+40|0,0,4);b=J[a+152>>2];if(b){uc(b);J[a+ +152>>2]=0}b=J[a+156>>2];if(b){uc(b);J[a+156>>2]=0}b=J[a+160>>2];if(b){uc(b);J[a+160>>2]=0}b=J[a+172>>2];if(b){uc(b);J[a+172>>2]=0}b=J[a+200>>2];if(b){uc(b);J[a+200>>2]=0}b=J[a+232>>2];if(b){uc(b);J[a+232>>2]=0}b=J[a+212>>2];if(b){uc(b);J[a+212>>2]=0}b=J[a+216>>2];if(b){uc(b);J[a+216>>2]=0}b=J[a+220>>2];if(b){uc(b);J[a+220>>2]=0}b=J[a+224>>2];if(b){uc(b);J[a+224>>2]=0}b=J[a+184>>2];if(b){uc(b);J[a+184>>2]=0}b=J[a+188>>2];if(b){uc(b);J[a+188>>2]=0}J[a+44>>2]=J[a+44>>2]&-385;c=J[a+236>>2];if((c|0)>0){b= +0;while(1){d=J[(J[a+240>>2]+P(b,12)|0)+8>>2];if(d){uc(d);c=J[a+236>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}J[a+236>>2]=0;b=J[a+240>>2];if(b){uc(b);J[a+240>>2]=0}}function $Qa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=f$(a,b);J[c>>2]=2218316;a=J[b+184>>2];J[c+184>>2]=a;J[699344]=0;a=aa(3551,a|0,272)|0;d=J[699344];J[699344]=0;a:{if((d|0)==1)break a;J[c+180>>2]=a;xc(a,J[b+180>>2],P(J[c+184>>2],272));a=J[b+192>>2];J[c+192>>2]=a;J[699344]=0;a=aa(3551,P(a,3)|0,4)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a; +J[c+188>>2]=a;xc(a,J[b+188>>2],P(J[c+192>>2],12));J[c+324>>2]=J[b+324>>2];a=J[b+328>>2];J[c+328>>2]=a;b:{if((a|0)>0){a=0;while(1){d=a<<2;e=J[(d+b|0)+196>>2];f=J[J[e>>2]+8>>2];J[699344]=0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[(c+d|0)+196>>2]=e;a=a+1|0;if((a|0)>2])continue;break}}return c|0}}b=Z()|0;J[c>>2]=2218236;a=J[c+8>>2];if(a)kc[J[J[a>>2]+4>>2]](a);ba(b|0);B()}function _wb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[a+636>>2]+J[a+616>>2]|0;e=J[a+644>>2];b=J[a+540>> +2];if(!b)b=J[J[a+528>>2]+88>>2];a:{b:{if(!K[b+56|0]){b=0;if(J[a+588>>2]>0)break b;g=1;break a}c=J[a+588>>2];c:{d:{if(L[b+836>>1]){b=0;if((c|0)>0)break d;break a}b=0;if((c|0)>0)break c;break a}c=0;while(1){if(!(b&255)){c=K[d|0];d=d+1|0;b=128}b=b&255;ws(e,b&c?0:255);e=e+4|0;b=b>>>1|0;f=f+1|0;if((f|0)>2])continue;break}break a}c=0;while(1){if(!(b&255)){c=K[d|0];d=d+1|0;b=128}b=b&255;ws(e,b&c?-1:0);e=e+4|0;b=b>>>1|0;f=f+1|0;if((f|0)>2])continue;break}break a}while(1){if(!(b&255)){c= +K[d|0];d=d+1|0;b=128}b=b&255;ws(e,b&c?-1:255);e=e+4|0;g=1;b=b>>>1|0;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=g;return 0}function uA(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a>>2]=0;d=J[685894];J[a+8>>2]=b;J[a+4>>2]=d;a:{b:{if(!c)break b;J[699344]=0;b=aa(5642,b|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;d=aa(5224,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[d>>2];c:{if(!b|!J[b+8>>2])break c;b=J[b+12>>2];d:{if(!(!b|!K[b|0])){if(!K[c|0])break d;if(Ic(b,c))break d; +break c}if(!K[c|0])break c}b=J[a+8>>2];J[699344]=0;b=aa(5642,b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[d>>2];if(c){c=J[c+12>>2];if(!(!c|!K[c|0])){if(!b|!K[b|0])break b;if(!Ic(c,b))break c;break b}}if(!b)break c;if(K[b|0]?-1:0)break b}J[699344]=0;$(5580,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}return a|0}b=Z()|0;wc(a);ba(b|0);B()}function ZBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc+-64|0;fc=d;J[d+56>>2]=0;J[d+60>>2]=J[685894];c=J[c>>2];J[d+4>>2]=J[(c?c+12|0:2743576)>>2];J[d>> +2]=b;J[699344]=0;b=d+56|0;ga(5350,b|0,2403219,d|0)|0;c=J[699344];J[699344]=0;a:{b:{c:{if((c|0)!=1){J[699344]=0;c=aa(5284,d+20|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;aa(5151,a|0,c|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;J[c+24>>2]=2392964;J[c>>2]=2392932;a=J[c+28>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[c+28>>2]=0}J[c+16>>2]=2392964;a=J[c+20>>2];if(a){b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);J[c+20>>2]=0}wc(c+8|0);wc(d+ +56|0);fc=d- -64|0;return}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;Ed(c)}wc(d+56|0);ba(b|0);B()}function E0a(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;g=fc-16|0;fc=g;J[699344]=0;J[g+8>>2]=0;J[g+12>>2]=0;da(3200,g+8|0,a|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1)b:{J[699344]=0;h=J[g+8>>2];a=ja(3201,h|0,b|0,c|0,d|0,e|0,f|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){if(a)break c;if(!h){a=0;break a}J[699344]=0;a=_(3199,h|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}break b}if(!h)break a; +J[699344]=0;_(3199,h|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a;ea(0)|0;Bc();B()}a=Z()|0;d:{e:{b=J[g+8>>2];if(b){J[699344]=0;_(3199,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e}J[g+8>>2]=0;b=J[g+12>>2];if(b){uc(b);J[g+12>>2]=0}break d}ea(0)|0;Bc();B()}ba(a|0);B()}b=J[g+12>>2];if(b)uc(b);fc=g+16|0;return a|0}function u1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=fc-16|0;fc=f;a:{if(J[d>>2]>0)break a;if(!J[c>>2]){J[c>>2]=544;break a}e=J[a+8>>2];c=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<< +16|K[e+7|0]<<24);g=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);H[b+528|0]=g;H[b+529|0]=g>>>8;H[b+530|0]=g>>>16;H[b+531|0]=g>>>24;H[b+532|0]=c;H[b+533|0]=c>>>8;H[b+534|0]=c>>>16;H[b+535|0]=c>>>24;c=K[e+12|0]|K[e+13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);e=K[e+8|0]|K[e+9|0]<<8|(K[e+10|0]<<16|K[e+11|0]<<24);H[b+536|0]=e;H[b+537|0]=e>>>8;H[b+538|0]=e>>>16;H[b+539|0]=e>>>24;H[b+540|0]=c;H[b+541|0]=c>>>8;H[b+542|0]=c>>>16;H[b+543|0]=c>>>24;H[b+34|0]=1;J[b+8>>2]=b+528;J[f+12>>2]=268;a=x3(J[J[a+8>>2]>>2], +b+260|0,f+12|0,d);J[J[b+8>>2]>>2]=a;e=b}fc=f+16|0;return e|0}function h7(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;J[d>>2]=0;if(!(!(e|f)|(a|0)<655)){o=d;p=(e|0)/2|0;if(f){m=J[g+28>>2];j=J[g+24>>2];k=J[g+20>>2];h=J[g+16>>2];l=J[g+12>>2];i=J[g+8>>2];f=J[g+4>>2];g=J[g>>2];q=d;e=Wc(c+e|0,a);if(S(e)+S(b)>>>0<=16)c=j<<16;else c=Wc(e,b);d=g<<16;a:{if((c|0)<(d|0)){b=Cd(f<<16,b);break a}b:{c:{d:{n=i<<16;e:{if((n|0)>(c|0)){c=Cd(d,b);if((g|0)==(i|0))break e;b=Od(e-c|0,l-f|0,i-g|0)+Cd(f<<16, +b)|0;break a}f=h<<16;if((c|0)>=(f|0))break d}c=Cd(n,b);if((h|0)==(i|0)){f=h<<16;break c}b=Od(e-c|0,k-l|0,h-i|0)+Cd(l<<16,b)|0;break a}if((c|0)>=j<<16)break b}c=Cd(f,b);if((h|0)==(j|0))break b;b=Od(e-c|0,m-k|0,j-h|0)+Cd(k<<16,b)|0;break a}b=Cd(m<<16,b)}J[q>>2]=b;a=Cd(b,a<<1)}else a=0;J[o>>2]=p+a}}function eTa(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;g=O[b+56>>3];h=J[b+56>>2];e=O[b+40>>3];i=J[b+40>>2];d=O[b+24>>3];j=J[b+24>>2];k=J[b+48>>2];l=J[b+32>>2];m=J[b+16>>2];c=J[a+ +28>>2];f=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];O[c+600>>3]=f;d=(m|0)==1?+(j|0):d;O[c+608>>3]=d;b=J[c+596>>2];O[b+16>>3]=d;O[b+8>>3]=f;J[b>>2]=1;b=J[a+28>>2];O[b+608>>3]=d;e=f+((l|0)==1?+(i|0):e);O[b+600>>3]=e;re(J[b+596>>2],e,d);b=J[a+28>>2];d=d+((k|0)==1?+(h|0):g);O[b+608>>3]=d;O[b+600>>3]=e;re(J[b+596>>2],e,d);b=J[a+28>>2];O[b+608>>3]=d;O[b+600>>3]=f;re(J[b+596>>2],f,d);a=J[a+28>>2];gg(J[a+596>>2]);b=J[a+596>>2];b=J[(J[b+24>>2]+(J[b+28>>2]<<2)|0)-4>>2];c=J[b+12>>2]<<3;O[a+600>>3]=O[(c+J[b>>2]|0)-8>>3]; +O[a+608>>3]=O[(c+J[b+4>>2]|0)-8>>3]}function YK(a,b,c){var d=0,e=0,f=0;a:{b:{c:{d:{if((c|0)<0){if(!b|!K[b|0])break d;c=0;d=b;while(1){c=c+1|0;e=K[d+1|0];d=d+1|0;if(e)continue;break}}if(!b)break d;if(c)break c}if(!a)return 0;d=a;while(1){b=d;d=b+1|0;if(K[b|0])continue;break}d=0;b=b-a|0;if((b|0)<0)break b;c=kc[J[663198]](b+1|0)|0;if(!c)break a;a=xc(c,a,b);H[a+b|0]=0;return a}if(!a){a=kc[J[663198]](c+1|0)|0;if(!a)break a;a=xc(a,b,c);H[a+c|0]=0;return a}e=0;if(K[a|0]){d=a;while(1){e=e+1|0;f=K[d+1|0]; +d=d+1|0;if(f)continue;break}}f=c+e|0;d=kc[J[663195]](f+1|0)|0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);b=kc[J[663198]](e+1|0)|0;if(!b)break a;a=xc(b,a,e);H[a+e|0]=0;return a}a=xc(d,a,e);xc(a+e|0,b,c);H[a+f|0]=0}return d}Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);return 0}function uL(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+124>>2];a:{if(!J[a+65708>>2])break a;if(!b){b=0;break a}c=a+65752|0;while(1){b=J[a+65756>>2];e=J[a+65744>>2];f=a+d|0;e=J[b+(((e^K[f+164|0])&255)<<2)>>2]^e>>>8;J[a+65744>>2]=e;e=P(J[a+65748>> +2]+(e&255)|0,134775813)+1|0;J[a+65748>>2]=e;g=b;b=J[c>>2];J[c>>2]=J[g+((b&255^e>>>24)<<2)>>2]^b>>>8;H[f+164|0]=K[f+164|0]^P(b|2,b&65533^3)>>>8;b=J[a+124>>2];d=d+1|0;if(b>>>0>d>>>0)continue;break}}e=kc[J[a+8>>2]](J[a+28>>2],J[a+44>>2],a+164|0,b)|0;f=J[a+72>>2];J[a+72>>2]=0;b=J[a+124>>2];J[a+124>>2]=0;c=a+65736|0;d=c;g=J[c>>2];f=g+f|0;c=J[c+4>>2];J[d>>2]=f;J[d+4>>2]=f>>>0>>0?c+1|0:c;a=a+65728|0;c=a;d=J[a>>2];a=J[a+4>>2];d=b+d|0;a=d>>>0>>0?a+1|0:a;J[c>>2]=d;J[c+4>>2]=a;return(b|0)!=(e|0)?-1:0} +function srb(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;if(!J[a+72216>>2]){d=1<>2]=e;Ac(e,0,d)}if((b|0)>0){j=-1<>2]+(h&j)|0;e=K[f|0];g=e<<2;d=L[g+2652240>>1];k=f;f=c>>>31|0;a:{b:{if((f|0)==(e>>>0>46|0)){e=L[a+4>>1]-d|0;I[a+4>>1]=e;if(e<<16>>16>=0){if(d>>>0>(e&65535)>>>0){e=d;d=g+2652242|0;break b}J[a>>2]=d+J[a>>2];d=g+2652242|0;break b}J[a>>2]=d+J[a>>2];break a}e=L[a+4>>1]-d|0;c:{if(d>>>0<=(e&65535)>>>0){e=d;break c}J[a>> +2]=d+J[a>>2]}d=g+2652243|0}H[k|0]=K[d|0];while(1){e=e<<1;I[a+4>>1]=e;J[a>>2]=J[a>>2]<<1;d=K[a+6|0]-1|0;H[a+6|0]=d;if(!(d&255)){km(a);e=L[a+4>>1]}if(e<<16>>16>=0)continue;break}}c=c<<1;h=f|h<<1;i=i+1|0;if((i|0)!=(b|0))continue;break}}}function hRa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=vc(400);J[699344]=0;b=aa(3601,g|0,a|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[b>>2]=2218256;O[b+184>>3]=O[a+184>>3];O[b+192>>3]=O[a+192>>3];O[b+200>>3]=O[a+200>>3];O[b+208>>3]=O[a+208>>3];O[b+216>>3]=O[a+216>>3]; +O[b+224>>3]=O[a+224>>3];O[b+232>>3]=O[a+232>>3];O[b+240>>3]=O[a+240>>3];O[b+248>>3]=O[a+248>>3];O[b+256>>3]=O[a+256>>3];c=J[a+392>>2];J[b+392>>2]=c;b:{if((c|0)>0)while(1){c=d<<2;e=J[(c+a|0)+264>>2];f=J[J[e>>2]+8>>2];J[699344]=0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[(b+c|0)+264>>2]=e;d=d+1|0;if((d|0)>2])continue;break}return b|0}d=Z()|0;J[b>>2]=2218236;a=J[b+8>>2];if(!a)break a;kc[J[J[a>>2]+4>>2]](a);break a}d=Z()|0}uc(g);ba(d|0);B()}function aRa(a){a=a|0;var b=0,c= +0,d=0,e=0,f=0,g=0;g=vc(392);J[699344]=0;b=aa(3601,g|0,a|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[b>>2]=2218296;O[b+184>>3]=O[a+184>>3];O[b+192>>3]=O[a+192>>3];O[b+200>>3]=O[a+200>>3];O[b+208>>3]=O[a+208>>3];O[b+216>>3]=O[a+216>>3];O[b+224>>3]=O[a+224>>3];O[b+232>>3]=O[a+232>>3];O[b+240>>3]=O[a+240>>3];c=J[a+376>>2];J[b+376>>2]=c;b:{if((c|0)>0)while(1){c=d<<2;e=J[(c+a|0)+248>>2];f=J[J[e>>2]+8>>2];J[699344]=0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[(b+c|0)+248>>2]=e;d=d+1| +0;if((d|0)>2])continue;break}J[b+380>>2]=J[a+380>>2];J[b+384>>2]=J[a+384>>2];return b|0}d=Z()|0;J[b>>2]=2218236;a=J[b+8>>2];if(!a)break a;kc[J[J[a>>2]+4>>2]](a);break a}d=Z()|0}uc(g);ba(d|0);B()}function Lgb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b:{c=J[a+20>>2];switch(c-204|0){case 0:case 3:break a;default:break b}}d=J[a>>2];J[d+24>>2]=c;J[d+20>>2]=21;kc[J[J[a>>2]>>2]](a)}b=(b|0)<=1?1:b;if(J[J[a+456>>2]+20>>2]){c=J[a+144>>2];b=(b|0)<(c|0)?b:c}J[a+152>>2]=b;if(J[a+20>>2]!=204){kc[J[J[a+440>> +2]>>2]](a);J[a+20>>2]=204;J[a+140>>2]=0}c:{if(J[J[a+440>>2]+8>>2]){e=a+140|0;b=J[a+140>>2];while(1){d=J[a+116>>2];if(d>>>0>b>>>0){c=J[a+8>>2];if(c){J[c+8>>2]=d;J[c+4>>2]=b;kc[J[c>>2]](a);b=J[a+140>>2]}d=0;kc[J[J[a+444>>2]+4>>2]](a,0,e,0);c=b;b=J[a+140>>2];if((c|0)!=(b|0))continue;break c}kc[J[J[a+440>>2]+4>>2]](a);kc[J[J[a+440>>2]>>2]](a);b=0;J[a+140>>2]=0;if(J[J[a+440>>2]+8>>2])continue;break}}J[a+20>>2]=J[a+68>>2]?206:205;d=1}return d|0}function zM(a,b,c){var d=0,e=0;if(K[a+96|0]){H[a+96|0]=0;J[a+ +64>>2]=2147483647;J[a+68>>2]=2147483647;J[a+48>>2]=2147483647;J[a+52>>2]=2147483647;J[a+8>>2]=0;J[a+12>>2]=0;J[a+1172>>2]=0;J[a+88>>2]=-2147483647;J[a+92>>2]=-2147483647;J[a+80>>2]=2147483647;J[a+84>>2]=2147483647;J[a+72>>2]=0;J[a+76>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0}if(!(!K[a+1160|0]|J[a+1172>>2]!=2))gd(a+100|0,a,J[a+1164>>2],J[a+1168>>2]);c=c*256;c=c+(c<0?-.5:.5);a:{if(R(c)<2147483648){d=~~c;break a}d=-2147483648}J[a+1168>>2]=d;b=b*256;b=b+(b<0?-.5:.5);b:{if(R(b)<2147483648){e=~~b;break b}e=-2147483648}J[a+ +1164>>2]=e;J[a+120>>2]=d;J[a+116>>2]=e;if(K[a+128|0])J[a+124>>2]=(J[a+112>>2]<(d|0))<<1|J[a+108>>2]<(e|0)|(J[a+100>>2]>(e|0))<<2|(J[a+104>>2]>(d|0))<<3;J[a+1172>>2]=1}function kq(a,b){var c=0,d=0,e=0,f=0,g=0;e=fc-32|0;fc=e;a:{if(!b)break a;J[b>>2]=0;if(!a)break a;c=K[a|0];if((c|0)==58)break a;while(1){if(!c){d=0;break a}if((c|0)!=58){d=d+1|0;c=K[d+a|0];continue}break}c=kc[J[663198]](d+1|0)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);J[b>>2]=0;J[e>>2]=2777;Hc(0,0,0,0,0,2,2,3,2777,0,0,0,32879,e);d= +0;break a}c=xc(c,a,d);H[c+d|0]=0;J[b>>2]=c;b:{a=(a+d|0)+1|0;c:{if(!a)break c;d=a;while(1){c=d;d=c+1|0;if(K[c|0])continue;break}c=c-a|0;if((c|0)<0)break c;d=kc[J[663198]](c+1|0)|0;if(d)break b;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0)}J[e+16>>2]=2777;d=0;Hc(0,0,0,0,0,2,2,3,2777,0,0,0,32879,e+16|0);a=J[b>>2];if(!a)break a;kc[J[663199]](a);J[b>>2]=0;break a}f=xc(d,a,c)+c|0,g=0,H[f|0]=g}fc=e+32|0;return d}function Jy(a,b){var c=0,d=0,e=0;a:{b:{c:{if(K[a+16|0]&2){if(b>>>0>=64)break c;c=J[a+8>>2];d:{e:{f:{if(!c){c= +7;if(K[a+4|0]==255)break f;break e}if(c>>>0>7)break d;b=b>>>7-c|0}if(kv(a,c,b))break d;b=J[a+8>>2];if((b|0)>7)break d;if((b|0)<0)break b}c=K[a+4|0];if((c|0)==255)break a;b=J[a+12>>2];d=J[b+8>>2];if(d&7)break d;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;return}J[b+4>>2]=J[b+4>>2]|32;d=J[b+28>>2];J[b+28>>2]=d-1;g:{if((d|0)<=0){if((bd(b,c)|0)!=-1)break g;break d}J[b+60>>2]=J[b+60>>2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;H[b|0]=c}J[a+8>>2]=8;J[a+4>>2]=J[a+4>>2]<<8&65280}return}fa(205494, +202126,396,212179);B()}fa(205773,202126,402,212179);B()}fa(206004,202126,428,212179);B()}fa(206151,202126,429,212179);B()}function mu(a,b){var c=0,d=0,e=0;e=fc-32|0;fc=e;c=-1;a:{if(!b)break a;b:{c:{if(J[693384]){d=J[a+36>>2];d:{if(!d)break d;c=J[d+4>>2];if(!c)break d;d=J[d+28>>2];J[e+16>>2]=c;J[e+20>>2]=d;kc[J[663297]](J[693366],29803,e+16|0)}d=J[a+40>>2];J[e+4>>2]=J[b+16>>2];J[e>>2]=d+1;kc[J[663297]](J[693366],32196,e);break c}if(a)break c;d=-1;break b}e:{d=J[a+40>>2];c=J[a+44>>2];f:{if((d|0)<(c| +0)){c=J[a+48>>2];break f}J[a+44>>2]=c<<1;c=kc[J[663200]](J[a+48>>2],c<<3)|0;J[a+48>>2]=c;if(!c)break e;d=J[a+40>>2]}J[(d<<2)+c>>2]=b;J[a+40>>2]=d+1;J[a+36>>2]=b;break b}se(a,0);th(b);J[a+44>>2]=J[a+44>>2]/2;d=-1}c=-1;if(J[a+172>>2]==-1)break a;g:{if(J[a+292>>2])break g;b=J[a+36>>2];if((J[b+20>>2]-J[b+16>>2]|0)>249)break g;Rd(a)}c=d}fc=e+32|0;return c}function cd(a,b,c){var d=0,e=0;a:{if((a|0)==(b|0))break a;e=a+c|0;if(b-e>>>0<=0-(c<<1)>>>0)return xc(a,b,c);d=(a^b)&3;b:{c:{if(a>>>0>>0){if(d){d= +a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c)break a;H[d|0]=K[b|0];b=b+1|0;c=c-1|0;d=d+1|0;if(d&3)continue;break}break c}d:{if(d)break d;if(e&3)while(1){if(!c)break a;c=c-1|0;d=c+a|0;H[d|0]=K[b+c|0];if(d&3)continue;break}if(c>>>0<=3)break d;while(1){c=c-4|0;J[c+a>>2]=J[b+c>>2];if(c>>>0>3)continue;break}}if(!c)break a;while(1){c=c-1|0;H[c+a|0]=K[b+c|0];if(c)continue;break}break a}if(c>>>0<=3)break b;while(1){J[d>>2]=J[b>>2];b=b+4|0;d=d+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a;while(1){H[d| +0]=K[b|0];d=d+1|0;b=b+1|0;c=c-1|0;if(c)continue;break}}return a}function _bb(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;a:{if((d|0)<=0)break a;f=J[a+480>>2];e=J[f+48>>2];l=J[a+112>>2];if(l){a=J[f+24>>2];m=J[a+8>>2];n=J[a+4>>2];o=J[a>>2];while(1){a=e<<6;p=a+J[f+60>>2]|0;q=a+J[f+56>>2]|0;r=a+J[f+52>>2]|0;a=g<<2;h=J[a+c>>2];a=J[a+b>>2];i=0;j=l;while(1){k=i<<2;H[h|0]=(K[K[a+1|0]+(J[q+k>>2]+n|0)|0]+K[K[a|0]+(J[k+r>>2]+o|0)|0]|0)+K[K[a+2|0]+(J[k+p>>2]+m| +0)|0];h=h+1|0;a=a+3|0;i=i+1&15;j=j-1|0;if(j)continue;break}e=e+1&15;J[f+48>>2]=e;g=g+1|0;if((g|0)!=(d|0))continue;break}break a}if(d>>>0>=8){b=d&-8;a=0;while(1){e=e+8&15;a=a+8|0;if((b|0)!=(a|0))continue;break}}b=d&7;if(b){a=0;while(1){e=e+1&15;a=a+1|0;if((b|0)!=(a|0))continue;break}}J[f+48>>2]=e}}function Zwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=J[a+636>>2]+J[a+616>>2]|0;b=J[a+588>>2];g=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{c:{if(K[d+56|0]){if((b|0)>0)break c; +break a}if((b|0)>0)break b;j=1;break a}b=0;while(1){if(!b){i=K[f|0];e=6;f=f+1|0;b=192}c=(b&i)>>>e|0;h=0;d:{if((c|0)==L[d+836>>1])break d;c=c-1|0;h=255;if((c&255)>>>0>2)break d;h=P(c&255,1431655680)+1431655935|0}ws(g,h);e=e-2|0;g=g+4|0;b=(b&252)>>>2|0;k=k+1|0;if((k|0)>2])continue;break}break a}b=0;d=0;while(1){if(!b){d=K[f|0];e=6;f=f+1|0;b=192}c=((b&d)>>>e|0)-1&255;ws(g,c>>>0>=3?255:P(c,1431655680)+1431655935|0);e=e-2|0;g=g+4|0;b=(b&252)>>>2|0;j=1;i=i+1|0;if((i|0)>2])continue;break}}H[a+ +649|0]=j;return 0}function Vi(a,b){var c=0,d=0,e=0,f=0;c=Dc(68);if(!c)return 0;J[c+52>>2]=0;J[c+56>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+60>>2]=0;J[c+64>>2]=-1;J[c>>2]=11;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;d=Dc(8208);J[c+12>>2]=d;a:{if(d){f=J[c+4>>2]|8;e=8192;break a}d=c+32|0;J[c+12>>2]=d;f=J[c+4>>2];e=1}J[c+28>>2]=0;J[c+20>>2]=e;J[c+52>>2]=2642232;d=d+16|0;J[c+24>>2]=d;J[c+16>>2]=d;J[c+4>>2]=f|2;d=Dc(24);if(!d){b:{if(!(K[c+4|0]&8))break b;a=J[c+12>>2];if(!a)break b;uc(a); +J[c+12>>2]=0}uc(c);return 0}J[c+56>>2]=d;e=(b|0)<=0;J[d+16>>2]=e;J[d>>2]=0;J[d+20>>2]=0;e=e?1024:b;J[d+4>>2]=e;c:{d:{if(!a){a=Dc(e);J[d+20>>2]=1;J[d>>2]=a;if(a)break d;Pf(c);return 0}J[d>>2]=a;if((b|0)>0)break c}b=0}J[d+12>>2]=0;J[d+8>>2]=b;return c}function P$(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{c:{c=J[J[a>>2]>>2];if(!c)break c;c=J[c>>2];if(!c)break c;if(Eg(c,b))break c;f=J[J[a>>2]>>2];break b}d=J[a+4>>2];if((d|0)<2)break a;c=1;while(1){d:{e=J[J[a>>2]+(c<<2)>>2];e:{if(!e)break e;e=J[e>>2];if(!e)break e; +if(!Eg(e,b))break d;d=J[a+4>>2]}g=g+1|0;c=c+1|0;if((d|0)>(c|0))continue;break a}break}f=J[J[a>>2]+(c<<2)>>2];d=c&3;if(d){b=0;while(1){e=J[a>>2]+(c<<2)|0;J[e>>2]=J[e-4>>2];c=c-1|0;b=b+1|0;if((d|0)!=(b|0))continue;break}}if(g>>>0>=3)while(1){b=c<<2;d=b+J[a>>2]|0;J[d>>2]=J[d-4>>2];d=b+J[a>>2]|0;J[d-4>>2]=J[d-8>>2];d=b+J[a>>2]|0;J[d-8>>2]=J[d-12>>2];b=b+J[a>>2]|0;J[b-12>>2]=J[b-16>>2];b=(c|0)>4;c=c-4|0;if(b)continue;break}J[J[a>>2]>>2]=f}J[f+24>>2]=J[f+24>>2]+1}return f}function Gva(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=fc-16|0;fc=e;if(c)g=Yc(c);if(d)i=Yc(d);J[a>>2]=0;a:{h=g+i|0;b:{if((h|0)<=0)break b;f=J[J[b>>2]+8>>2];J[699344]=0;j=f;f=e+12|0;ca(j|0,f|0,b|0,h|0);b=J[699344];J[699344]=0;c:{d:{e:{if((b|0)!=1){J[699344]=0;aa(5153,a|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break e;b=J[e+12>>2];J[e+12>>2]=0;f:{if(!b)break f;J[699344]=0;h=J[b+4>>2]-1|0;J[b+4>>2]=h;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(h)break f;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0; +if((b|0)==1)break a}b=J[a>>2];a=J[b+12>>2];if(!g)break c;of(a,c);if(!i)break b;AG(J[b+12>>2],d);break b}g=Z()|0;break d}g=Z()|0;zc(e+12|0)}zc(a);ba(g|0);B()}of(a,d)}fc=e+16|0;return}ea(0)|0;Bc();B()}function oUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=J[a+28>>2];if(!J[c+492>>2]){c=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];c=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,c,833750,0);return}if(J[a+32>>2]){d=J[a+8>>2];kc[J[J[d>>2]+156>>2]](d,c);J[a+32>>2]=0;c=J[a+28>>2]}e= +O[c+624>>3]-O[c+576>>3];O[c+624>>3]=e;f=O[c+616>>3];O[c+600>>3]=O[c+536>>3]+(O[c+504>>3]*f+e*O[c+520>>3]);O[c+608>>3]=O[c+544>>3]+(f*O[c+512>>3]+e*O[c+528>>3]);d=J[a+8>>2];kc[J[J[d>>2]+184>>2]](d,c);if(J[a+100>>2]){c=J[a+8>>2];kc[J[J[c>>2]+232>>2]](c,J[a+28>>2]);UB(a,J[b+8>>2]);b=J[a+8>>2];kc[J[J[b>>2]+236>>2]](b,J[a+28>>2]);return}b=J[b+8>>2];c=J[a+8>>2];if(kc[J[J[c>>2]+32>>2]](c)|0){a=J[a+8>>2];kc[J[J[a>>2]+268>>2]](a,J[b>>2])}}function eZ(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=Q(0),l=0;a:{b:{if(b){j= +J[b+40>>2];if(!j)break b;h=P(a,40)+j|0;g=J[h+20>>2];i=g+1|0;l=J[h+28>>2];c:{if(i>>>0<=l>>>0){h=J[h+24>>2];break c}k=Q(Q(l>>>0)+Q(100));d:{if(k=Q(0)){g=~~k>>>0;break d}g=0}J[h+28>>2]=g;i=P(a,40);h=ch(J[(i+j|0)+24>>2],P(g,24));j=J[b+40>>2];g=i+j|0;if(!h)break a;J[g+24>>2]=h;g=J[g+20>>2];i=g+1|0}b=P(g,24)+h|0;J[b+16>>2]=f;J[b+8>>2]=d;J[b+12>>2]=d>>31;I[b>>1]=c;a=P(a,40)+j|0;J[a+20>>2]=i;e:{if((c|0)!=65424)break e;b=J[a+16>>2];if(!b)break e;a=b+P(J[a+12>>2],24)|0;J[a>>2]=d;J[a+4>>2]= +e}return 1}fa(2364373,2358254,8195,2369520);B()}fa(2369541,2358254,8196,2369520);B()}uc(J[g+24>>2]);a=i+J[b+40>>2]|0;J[a+28>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;return 0}function S3a(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-1136|0;fc=b;J[b+1040>>2]=0;J[b+4>>2]=0;c=K[a+11|0];d=c<<24>>24<0;_r(d?J[a>>2]:a,d?J[a+4>>2]:c,b+1040|0,b+4|0,0);c=ol(J[b+1040>>2],b+16|0);d=J[b+20>>2];e=J[b+1040>>2];if(e)uc(e);a:{if(!c){c=1;if((d&61440)==16384)break a}c=b+4|0;d=K[a+11|0];e=d<<24>>24<0;_m(c,e?J[a>>2]:a,e?J[a+4>>2]:d,0);J[b>> +2]=H[b+15|0]<0?J[b+4>>2]:c;a=b+16|0;Wi(a,1024,4607,b);d=Yc(a)+b|0;c=K[d+15|0];H[d+15|0]=(c|0)!=47?c:0;b:{while(1){c=a+1|0;d=K[a+1|0];if((d|0)!=47){a=c;if(d)continue;c=!EG(b+16|0,448);break b}H[c|0]=0;if(!(ol(b+16|0,b+1040|0)|(J[b+1044>>2]&61440)!=16384)){H[c|0]=47;a=c;continue}d=EG(b+16|0,509);H[c|0]=47;a=c;if(!d)continue;break}c=0}if(H[b+15|0]>=0)break a;uc(J[b+4>>2])}fc=b+1136|0;return c|0}function JXa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=fc-48|0;fc=f;j0(c,f+40|0,a+184|0);J[a+ +176>>2]=0;J[f+24>>2]=13;a:{g=J[f+40>>2];b:{c:{if((g|0)<0){g=c;c=f+24|0;if(oK(b,g,c,a+292|0))break c;yc(c);break b}J[f+36>>2]=J[f+44>>2];J[f+32>>2]=g;J[f+24>>2]=9}H[f+23|0]=0;H[f+22|0]=0;c=d;d=f+24|0;nK(f+8|0,b,c,e,d,a+304|0,a+316|0,f+23|0,f+22|0);J[699344]=0;b=H[f+19|0];c=J[f+8>>2];$(3370,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;d=K[a+327|0];if(d<<24>>24<0?J[a+320>>2]:d)J[a+8>>2]=J[a+8>>2]|4;d=K[a+303|0];if(d<<24>>24<0?J[a+296>>2]:d)J[a+8>>2]=J[a+8>>2]|16;if(K[f+23|0])J[a+176>>2]=J[a+176>> +2]|1;if(K[f+22|0])J[a+176>>2]=J[a+176>>2]|2;if((b|0)>=0)break b;uc(c)}fc=f+48|0;return}a=Z()|0;if((b|0)<0)uc(c);ba(a|0);B()}function _va(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0;c=fc-16|0;fc=c;if(f>>>0>=2){o=(g|0)/2<<2;g=((e<<2)+b|0)+(h<<2)|0;d=(h<<1)+e<<2;while(1){h=e;while(1){j=K[i+2|0];k=K[i+3|0];l=c+12|0;m=c+8|0;n=c+4|0;ie(J[a+68>>2],K[i|0],j,k,l,m,n);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;ie(J[a+68>>2],K[i+1|0],j,k, +l,m,n);J[g>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i=i+4|0;g=g+4|0;b=b+4|0;h=h-1|0;if(h)continue;break}i=i+o|0;g=d+g|0;b=b+d|0;f=f-2|0;if(f>>>0>1)continue;break}}if(f)while(1){ie(J[a+68>>2],K[i|0],K[i+2|0],K[i+3|0],c+12|0,c+8|0,c+4|0);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i=i+4|0;b=b+4|0;e=e-1|0;if(e)continue;break}fc=c+16|0}function ht(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{e=J[b>>2];if(e){d=J[a>>2];if(!d)break e;g=J[e+616>>2];if(g>>>0>2])break e;d=0;f=J[c>> +2];if(!f|M[f+616>>2]>=g>>>0)break a;break d}f=J[c>>2];if(f)break d;return 0}f=J[c>>2];if(!(!f|M[f+616>>2]>=M[e+616>>2])){J[a>>2]=f;J[c>>2]=d;c=c+4|0;a=a+4|0;d=1;break b}J[a>>2]=e;J[b>>2]=d;d=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=d;d=1;a=J[c>>2];if(!a)break a;e=J[b>>2];if(M[a+616>>2]>=M[e+616>>2]?e:0)break a;J[b>>2]=a;J[c>>2]=e;c=c+4|0;a=b+4|0;break c}J[b>>2]=f;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;d=1;e=J[b>>2];if(!e)break a;f=J[a>>2];if(M[e+616>>2]>=M[f+616>>2]?f:0)break a;c=b+ +4|0;J[a>>2]=e;J[b>>2]=f;a=a+4|0}d=2}b=J[a>>2];J[a>>2]=J[c>>2];J[c>>2]=b}return d}function pj(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if((a|0)<=0|(b|0)<=0)break a;f=kd(1,24);if(!f)break a;J[f+4>>2]=b;J[f>>2]=a;h=kd(a,4);if(!h)break a;b:{while(1){c:{g=kd(b,4);J[(e<<2)+h>>2]=g;if(!g)break c;e=e+1|0;if((e|0)!=(a|0))continue;break b}break}return 0}J[f+12>>2]=d;J[f+8>>2]=c;J[f+16>>2]=h;if(!((a|0)<=0|(b|0)<=0)){j=b&-8;i=b&7;g=0;k=b>>>0<8;while(1){c=J[(g<<2)+h>>2];b=0;d=0;if(!k)while(1){e=b<<2;J[e+c>> +2]=1;J[c+(e|4)>>2]=1;J[c+(e|8)>>2]=1;J[c+(e|12)>>2]=1;J[c+(e|16)>>2]=1;J[c+(e|20)>>2]=1;J[c+(e|24)>>2]=1;J[c+(e|28)>>2]=1;b=b+8|0;d=d+8|0;if((j|0)!=(d|0))continue;break}d=0;if(i)while(1){J[c+(b<<2)>>2]=1;b=b+1|0;d=d+1|0;if((i|0)!=(d|0))continue;break}g=g+1|0;if((g|0)!=(a|0))continue;break}}e=f}return e}function RY(a,b,c,d,e){var f=0,g=0,h=0,i=0;if(K[a+206|0]&32){yx(a+212|0);J[a+204>>2]=J[a+204>>2]&-2097153}J[a+212>>2]=b;J[a+216>>2]=0;h=a+212|0;a:{if(!d)while(1){if(!(J[a+216>>2]|!c)){J[a+216>>2]=c; +c=0}b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;b=Vk(h,0);d=J[a+272>>2]-J[a+228>>2]|0;f=(b>>>0<2?(d|0)>0?d:0:0)+f|0;if(!b)continue;break a}while(1){if(!(J[a+216>>2]|!c)){J[a+216>>2]=c;c=0}b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;b=Vk(h,0);b:{if(b>>>0>1)break b;g=J[a+272>>2]-J[a+228>>2]|0;if((g|0)<=0)break b;if(e>>>0>f>>>0){i=e-f|0;xc(d+f|0,J[a+268>>2],g>>>0>>0?g:i)}f=f+g|0}if(!b)continue;break}}J[a+216>>2]=0;yx(h);if((b|0)!=1){c=a;a=J[a+236>>2];bJ(c,a?a:(b|0)==-5?68892:(b|0)== +-3?68930:68966);f=0}return f}function _M(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<44|(K[b|0]!=83|K[b+1|0]!=70))break a;if(K[b+2|0]!=87|K[b+3|0]!=57|(K[b+4|0]!=52|K[b+5|0]!=65))break a;if(K[b+7|0]|K[b+6|0]!=4|(K[b+9|0]|K[b+8|0]!=16))break a;if(K[b+11|0]|K[b+10|0]!=1|(K[b+13|0]|K[b+12|0]!=100))break a;if(K[b+14|0]|K[b+15|0]|(K[b+17|0]|K[b+16|0]!=204))break a;if(K[b+18|0]|K[b+19|0]|(K[b+21|0]|K[b+20|0]!=59))break a;if(K[b+22|0]|K[b+23|0]|(K[b+24|0]!=218|K[b+25|0]!=7))break a;if(K[b+26|0]|K[b+27|0]|(K[b+28| +0]!=7|K[b+29|0]!=1))break a;if(K[b+30|0]|K[b+31|0]|(K[b+33|0]|K[b+32|0]!=68))break a;if(K[b+34|0]|K[b+35|0]|(K[b+36|0]!=208|K[b+37|0]!=7))break a;if(K[b+38|0]|K[b+39|0]|(K[b+40|0]!=75|K[b+41|0]!=1))break a;if(K[b+42|0]|K[b+43|0])break a;d=1}return d}function MS(a,b,c,d){a:switch(b-9|0){case 0:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];return;case 6:b=J[c>>2];J[c>>2]=b+4;b=I[b>>1];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 7:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=L[b>>1];J[a+4>>2]=0;return;case 8:b=J[c>>2];J[c>>2]=b+ +4;b=H[b|0];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 9:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=K[b|0];J[a+4>>2]=0;return;case 16:b=J[c>>2]+7&-8;J[c>>2]=b+8;O[a>>3]=O[b>>3];return;case 17:kc[d|0](a,c);default:return;case 1:case 4:case 14:b=J[c>>2];J[c>>2]=b+4;b=J[b>>2];J[a>>2]=b;J[a+4>>2]=b>>31;return;case 2:case 5:case 11:case 15:b=J[c>>2];J[c>>2]=b+4;J[a>>2]=J[b>>2];J[a+4>>2]=0;return;case 3:case 10:case 12:case 13:break a}b=J[c>>2]+7&-8;J[c>>2]=b+8;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c}function mna(a,b,c,d, +e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=Q(0),m=Q(0),n=Q(0),o=Q(0);k=fc-32|0;fc=k;J[k+28>>2]=c;J[f>>2]=0;J[f+4>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[h>>2]=0;J[h+4>>2]=0;J[i>>2]=0;J[i+4>>2]=0;c=J[a>>2];if(c){N[k+8>>2]=d;N[k+24>>2]=e;kc[J[J[c>>2]+92>>2]](c,b,k+28|0,k+8|0,k+24|0)|0;a:{b:{c:switch(j|0){case 0:a=J[a>>2];kc[J[J[a>>2]+116>>2]](k+8|0,a);break b;case 1:break c;default:break a}a=J[a>>2];kc[J[J[a>>2]+120>>2]](k+8|0,a)}n=N[k+20>>2];l=N[k+16>>2];o=N[k+12>>2];m= +N[k+8>>2]}O[f>>3]=m;O[g>>3]=l;O[h>>3]=Q(o-m);O[i>>3]=Q(n-l);O[f>>3]=O[f>>3]*.35277777777777775;O[g>>3]=O[g>>3]*.35277777777777775;O[h>>3]=O[h>>3]*.35277777777777775;O[i>>3]=O[i>>3]*.35277777777777775}fc=k+32|0}function gWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>2147482623)break a;e=J[a+1040>>2];if((e|0)>(b|0))break a;b:{if((e+1022|0)>=(b|0)){d=e;break b}f=J[a+1044>>2];d=f+e|0;if((d|0)>(b|0)){d=f+(e-b|0)|0;J[a+1044>>2]=d;f=a+16|0;cd(f,f+(b-e|0)|0,d);J[a+1040>>2]=b;d=b;break b}J[a+1044>> +2]=0;J[a+1040>>2]=d;if((b|0)<=(d|0))break b;while(1){d=0;if((kc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;d=J[a+1040>>2]+1|0;J[a+1040>>2]=d;if((b|0)>(d|0))continue;break}}e=b+2|0;if((e|0)>(J[a+1044>>2]+d|0))while(1){d=0;f=kc[J[a+4>>2]](J[a+8>>2])|0;if((f|0)<0)break a;d=J[a+1044>>2];J[a+1044>>2]=d+1;H[(a+d|0)+16|0]=f;d=J[a+1040>>2];if((e|0)>(d+J[a+1044>>2]|0))continue;break}a=(b-d|0)+a|0;J[c>>2]=K[a+16|0]<<8|K[a+17|0];d=1}return d|0}function S5a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{c=J[a+8>>2];if(!c)break a; +d=c;b=J[d+304>>2];e=d+308|0;if((b|0)!=(e|0))while(1){J[b+120>>2]=1;c=J[b+4>>2];b:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break b}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(e|0))continue;break}g=d+316|0;b=J[g>>2];f=d+320|0;if((b|0)!=(f|0))while(1){J[b+120>>2]=1;c=J[b+4>>2];c:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break c}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(f|0))continue;break}ki(d+304|0,J[d+308>>2]);J[d+304>>2]=e;J[d+308>>2]=0;J[d+ +312>>2]=0;ki(g,J[d+320>>2]);J[d+316>>2]=f;J[d+320>>2]=0;J[d+324>>2]=0;c=J[a+8>>2];if(!c)break a;kc[J[J[c>>2]+12>>2]](c)|0;J[a+8>>2]=0}}function t1(a,b){a:{b:{if(!(a&131072)){c:switch(b-47|0){default:if((b|0)==32)break b;break;case 0:case 15:break b;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:break c}a=1;if((b|0)==58|(b&-33)-65>>>0<26|((b|0)==95|b-65536>>>0<917504))break a;if(b-65008>>>0<526|b-63744>>>0<1232|(b-12289>>>0<43007|b-11264>>>0< +1008))break a;if((b&-2)==8204|b-8304>>>0<288|(b-895>>>0<7297|b-880>>>0<14))break a;if(b-248>>>0<520|b-192>>>0<23)break a;if(b-216>>>0>=31)break b;break a}if((b|0)<=255){a=1;if(b-192>>>0<23|(b&-33)-65>>>0<26|(b-216>>>0<31|(b|0)>247))break a;return(b|0)==95|(b|0)==58}a=1;if(Zm(b,771140)|b-12321>>>0<9|((b|0)==12295|b-19968>>>0<20902))break a}a=0}return a}function Qg(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=J[a+4>>2];g=J[a>>2];f=J[a+16>>2];a:{b:{if(J[f+436>>2]){e=g;break b}if((c|0)>24){i=c;e=g;break a}while(1){if(!h){if(!(kc[J[J[f+ +24>>2]+12>>2]](f)|0))return 0;e=J[f+24>>2];h=J[e+4>>2];g=J[e>>2]}e=g+1|0;h=h-1|0;c:{i=K[g|0];if((i|0)==255){while(1){if(!h){if(!(kc[J[J[f+24>>2]+12>>2]](f)|0))return 0;e=J[f+24>>2];h=J[e+4>>2];e=J[e>>2]}h=h-1|0;g=K[e|0];i=255;e=e+1|0;if((g|0)==255)continue;break}if(g)break c}b=b<<8|i;j=(c|0)<17;g=e;i=c+8|0;c=i;if(j)continue;break a}break}J[f+436>>2]=g}if((c|0)>=(d|0)){i=c;break a}if(!J[J[f+464>>2]+36>>2]){d=J[f>>2];J[d+20>>2]=120;kc[J[d+4>>2]](f,-1);J[J[f+464>>2]+36>>2]=1}i=25;b=b<<25-c}J[a+12>>2]= +i;J[a+8>>2]=b;J[a+4>>2]=h;J[a>>2]=e;return 1}function Awa(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[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=2424768;J[a+4>>2]=0;I[a+12>>1]=c;I[a+10>>1]=c;I[a+8>>1]=b;a:{c=P(c&65535,b&65535);b:{if(!c)break b;J[699344]=0;b=_(27,(g=-1,h=vEb(c,0,3,0),i=jc,i?g:h)|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[a+16>>2]=b;J[a+20>>2]=b;if(!d)break b;while(1){b=c-1|0;e=J[a+20>>2]+P(b,3)|0;f=K[d|0]|K[d+1|0]<<8;H[e|0]=f;H[e+1|0]=f>>>8;H[e+2|0]=K[d+2|0];e=(c|0)>1; +c=b;if(e)continue;break}}return a|0}oa(ea(0)|0)|0;b=J[a+20>>2];if(b)uc(b);J[a+16>>2]=0;J[a+20>>2]=0;J[699344]=0;ka(5257);b=J[699344];J[699344]=0;c:{if((b|0)==1){b=Z()|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)!=1)break c;ea(0)|0;Bc()}B()}nd(a);ba(b|0);B()}function yTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if((d|0)<=0)break a;gg(c);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>> +2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];if(!J[a+100>>2])break a;b=J[J[a+28>>2]+116>>2];b:{if((kc[J[J[b>>2]+12>>2]](b)|0)==10){Cr(a,0);break b}b=J[a+8>>2];kc[J[J[b>>2]+204>>2]](b,J[a+28>>2])}b=J[J[a+28>>2]+120>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==10){bu(a);break a}b=J[a+8>>2];kc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2];kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;_f(b)}}function xTa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if((d|0)<=0)break a;gg(c);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];if(!J[a+100>>2])break a;b=J[J[a+28>>2]+116>>2];b:{if((kc[J[J[b>>2]+12>>2]](b)|0)==10){Cr(a,1);break b}b=J[a+8>>2];kc[J[J[b>>2]+208>>2]](b,J[a+28>>2])}b=J[J[a+28>>2]+120>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==10){bu(a);break a}b=J[a+8>>2]; +kc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2];kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;_f(b)}}function ry(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=Q(0),k=Q(0),l=Q(0);f=J[J[e>>2]+16>>2];i=J[c>>2];k=N[f+(i<<2)>>2];e=J[b>>2];j=N[(e<<2)+f>>2];g=J[a>>2];l=N[(g<<2)+f>>2];a:{if(!(j>2]=i;J[c>>2]=e;h=1;g=J[b>>2];i=J[a>>2];if(!(N[(g<<2)+f>>2]>2]))break a; +J[a>>2]=g;J[b>>2]=i;e=J[c>>2];h=2;break a}b:{if(k>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=e;J[b>>2]=g;h=2;e=J[c>>2];if(!(N[(e<<2)+f>>2]>2]=e;J[c>>2]=g}e=g}g=J[d>>2];if(N[(g<<2)+f>>2]>2]){J[c>>2]=g;J[d>>2]=e;d=J[c>>2];e=J[b>>2];if(!(N[(d<<2)+f>>2]>2]))return h+1|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(!(N[(c<<2)+f>>2]>2]))return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function qy(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=Q(0),k=Q(0),l=Q(0); +f=J[J[e>>2]+12>>2];i=J[c>>2];k=N[f+(i<<2)>>2];e=J[b>>2];j=N[(e<<2)+f>>2];g=J[a>>2];l=N[(g<<2)+f>>2];a:{if(!(j>2]=i;J[c>>2]=e;h=1;g=J[b>>2];i=J[a>>2];if(!(N[(g<<2)+f>>2]>2]))break a;J[a>>2]=g;J[b>>2]=i;e=J[c>>2];h=2;break a}b:{if(k>2]=i;J[c>>2]=g;h=1;break b}J[a>>2]=e;J[b>>2]=g;h=2;e=J[c>>2];if(!(N[(e<<2)+f>>2]>2]=e;J[c>>2]=g}e=g}g=J[d>>2];if(N[(g<<2)+f>>2]>2]){J[c>>2]=g;J[d>>2]=e;d=J[c>>2];e=J[b>>2];if(!(N[(d<<2)+ +f>>2]>2]))return h+1|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(!(N[(c<<2)+f>>2]>2]))return h+2|0;J[a>>2]=c;J[b>>2]=d;h=h+3|0}return h}function DM(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;f=K[b+11|0];g=f<<24>>24<0;i=g?J[b>>2]:b;e=K[a+11|0];d=e<<24>>24<0;e=d?J[a+4>>2]:e;h=d?J[a>>2]:a;d=K[c+11|0];k=d<<24>>24<0?J[c+4>>2]:d;j=g?J[b+4>>2]:f;f=j;d=0;while(1){a:{if(f){g=(e<<2)+h|0;e=(d<<2)+h|0;d=g-e>>2;if((f|0)>(d|0))break a;l=J[i>>2];while(1){d=(d-f|0)+ +1|0;if(!d)break a;d=og(e,l,d);if(!d)break a;if(qd(d,i,f)){e=d+4|0;d=g-e>>2;if((f|0)<=(d|0))continue;break a}break}if((d|0)==(g|0))break a;d=d-h>>2}if((d|0)==-1)break a;f=K[c+11|0];e=f<<24>>24<0;JF(a,d,j,e?J[c>>2]:c,e?J[c+4>>2]:f);f=K[b+11|0];e=f<<24>>24<0;f=e?J[b+4>>2]:f;i=e?J[b>>2]:b;e=K[a+11|0];g=e<<24>>24<0;h=g?J[a>>2]:a;d=d+k|0;e=g?J[a+4>>2]:e;if(d>>>0<=e>>>0)continue}break}}function CVa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=fc-32|0;fc=b;J[b+16>>2]=13;J[b>>2]=13;a:{if(J[Ec(J[a+32>>2],786188, +b+16|0,0)>>2]==6){d=J[b+24>>2];if(J[d+12>>2]<=0)break a;tg(d,0,b);b:{if(J[b>>2]!=9)break b;a=J[J[a>>2]+28>>2];d=J[a+8>>2];if((d|0)<=0)break b;e=J[b+12>>2];f=J[b+8>>2];g=J[a>>2];a=0;while(1){c=J[g+(a<<2)>>2];if(!((f|0)!=J[c>>2]|(e|0)!=J[c+4>>2])){c=J[c+8>>2];yc(b);break a}a=a+1|0;if((d|0)!=(a|0))continue;break}c=0}yc(b);break a}if(J[a+8>>2]!=9)break a;d=J[J[a>>2]+28>>2];e=J[d+8>>2];if((e|0)<=0)break a;f=J[a+16>>2];g=J[a+20>>2];d=J[d>>2];a=0;while(1){c=J[d+(a<<2)>>2];if(!((f|0)!=J[c>>2]|(g|0)!=J[c+ +4>>2])){c=J[c+8>>2];break a}a=a+1|0;if((e|0)!=(a|0))continue;break}c=0}yc(b+16|0);fc=b+32|0;return c|0}function Ac(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(!c)break a;H[a|0]=b;d=a+c|0;H[d-1|0]=b;if(c>>>0<3)break a;H[a+2|0]=b;H[a+1|0]=b;H[d-3|0]=b;H[d-2|0]=b;if(c>>>0<7)break a;H[a+3|0]=b;H[d-4|0]=b;if(c>>>0<9)break a;d=0-a&3;e=d+a|0;b=P(b&255,16843009);J[e>>2]=b;d=c-d&-4;c=d+e|0;J[c-4>>2]=b;if(d>>>0<9)break a;J[e+8>>2]=b;J[e+4>>2]=b;J[c-8>>2]=b;J[c-12>>2]=b;if(d>>>0<25)break a;J[e+24>>2]= +b;J[e+20>>2]=b;J[e+16>>2]=b;J[e+12>>2]=b;J[c-16>>2]=b;J[c-20>>2]=b;J[c-24>>2]=b;J[c-28>>2]=b;g=e&4|24;c=d-g|0;if(c>>>0<32)break a;d=vEb(b,0,1,1);f=jc;b=e+g|0;while(1){J[b+24>>2]=d;J[b+28>>2]=f;J[b+16>>2]=d;J[b+20>>2]=f;J[b+8>>2]=d;J[b+12>>2]=f;J[b>>2]=d;J[b+4>>2]=f;b=b+32|0;c=c-32|0;if(c>>>0>31)continue;break}}return a|0}function oz(a){var b=0,c=0,d=0;c=fc-32|0;fc=c;a:{if(!Bn(a,95488,11)){Uc(J[a+628>>2],73340,73731,0);a=0;break a}b=Dc(112);J[a+584>>2]=b;if(!b){b=J[a+628>>2];J[c>>2]=J[a>>2];Uc(b,71258, +74201,c);a=0;break a}d=J[a+8>>2];J[b>>2]=d;J[b+48>>2]=J[a+672>>2];J[a+672>>2]=605;J[b+52>>2]=J[a+668>>2];J[a+668>>2]=606;J[b+56>>2]=J[a+676>>2];J[a+676>>2]=607;J[b+44>>2]=0;J[b+36>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;if(!d)J[a+12>>2]=J[a+12>>2]|256;J[b+80>>2]=0;J[c+16>>2]=608;ke(a,65540,c+16|0);J[J[a+584>>2]+96>>2]=0;J[a+556>>2]=609;J[a+548>>2]=609;J[a+540>>2]=609;J[a+520>>2]=610;J[a+516>>2]=611;J[a+572>>2]=612;J[a+564>>2]=613;J[a+560>>2]=614;J[a+552>>2]=614;J[a+544>>2]=614;J[a+536>>2]=615;J[a+532>>2]= +616;J[a+524>>2]=611;a=1}fc=c+32|0;return a}function DN(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=2147483647;a:{if(!c)break a;d=c>>31;h=(d^c)-d|0;b:{d=b>>31;d=(d^b)-d|0;f=a>>31;f=(f^a)-f|0;if(d+f>>>0<=131071){d=P(d,f);break b}g=d>>>16|0;e=f>>>16|0;j=P(g,f&65535)+P(e,d&65535)|0;d=P(d,f);e=((j>>>16|0)+P(e,g)|0)+(d>>>0>>0)|0;if(!e)break b;if(e>>>0>=h>>>0)break a;f=S(e);g=32-f|0;e=d>>>g|e<>>0)/(h>>>0)|0;e=e-P(h,i)|0;d=d<>>31;g=e>>>0>=h>>>0;e=e-(g?h:0)|0;i=g|i<<1;g=f^31; +d=d<<1}if((f|0)==31)break a;while(1){e=e<<1|d>>>31;f=e>>>0>=h>>>0;e=d>>>30&1|e-(f?h:0)<<1;j=e>>>0>=h>>>0;e=e-(j?h:0)|0;i=j|(i<<2|f<<1);d=d<<2;g=g-2|0;if(g)continue;break}break a}i=(d>>>0)/(h>>>0)|0}a=a>>31|1;a=(b|0)<0?0-a|0:a;return(((c|0)<0?0-a|0:a)|0)<0?0-i|0:i}function seb(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=g|0;var h=0,i=0,j=0;h=fc+-64|0;fc=h;i=yq(h+60|0,1,0,0,1,0,0);a:{b:{c:{g=e<=1?0:f<=1?0:g;if(!g&b==0)break c;J[699344]=0;c=e*.5+c;d=f*.5+d;ds(i,-c,-d,1);j=J[699344];J[699344]=0;d:{if((j| +0)==1)break d;J[699344]=0;qD(i,b,1);j=J[699344];J[699344]=0;if((j|0)==1)break d;J[699344]=0;Lx(i,g&1?-1:1,g&2?-1:1,1);g=J[699344];J[699344]=0;if((g|0)==1)break d;J[699344]=0;ds(i,c,d,1);g=J[699344];J[699344]=0;if((g|0)!=1)break c}break b}J[699344]=0;cs(i,h);g=J[699344];J[699344]=0;if((g|0)!=1){g=J[J[a>>2]+396>>2];J[699344]=0;va(g|0,a|0,h|0,h|8,h+16|0,h+24|0,h+32|0,h+40|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break a}}a=Z()|0;Jd(i);ba(a|0);B()}Jd(i);fc=h- -64|0;return 0}function ntb(a,b){a=a|0;b= +b|0;var c=0,d=0,e=0,f=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=K[b+34|0];c=K[b+35|0];H[d+11|0]=c;f=d+8|0;e=4;a:{if((c|0)==7)break a;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;e=12;if(!K[b+35|0])break a;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+ +21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+24|0]=c;H[d+25|0]=c>>>8;H[d+26|0]=c>>>16;H[d+27|0]=c>>>24;e=20}c=e;return Ce(a,J[b>>2],c,f)|0}function bXa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=fc-32|0;fc=b;g=J[a+420>>2];if(J[a+264>>2])Ir(g);J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;if(J[a+288>>2]>0)while(1){d=J[((h<<2)+a|0)+292>>2];a:{if(J[a+360>>2]|J[a+368>>2])break a;e=J[d+ +20>>2]<<2;f=e+(b+16|0)|0;if(J[f>>2])break a;i=a+e|0;c=J[i+120>>2];if(!c){c=kc[J[J[a+4>>2]>>2]](a,0,280)|0;J[c+276>>2]=0;J[i+120>>2]=c}v0(a,c,J[(e+g|0)+76>>2]);J[f>>2]=1}b:{if(!J[a+364>>2])break b;d=J[d+24>>2]<<2;e=d+b|0;if(J[e>>2])break b;f=a+d|0;c=J[f+136>>2];if(!c){c=kc[J[J[a+4>>2]>>2]](a,0,280)|0;J[c+276>>2]=0;J[f+136>>2]=c}v0(a,c,J[(d+g|0)+92>>2]);J[e>>2]=1}h=h+1|0;if((h|0)>2])continue;break}fc=b+32|0}function Y9(a,b,c,d,e,f,g,h,i,j,k){var l=0,m=0,n=0;a:{b:{if(b>>>0>c>>>0){I[a+2324>> +1]=c;I[a+2320>>1]=b;break b}n=b;while(1){l=n&65535;c:{d:{if(!l){l=J[a+528>>2];break d}l=ph(a,l);if(!l|K[l+30|0])break c;if(!(K[l+64|0]|K[l+65|0]))break d;m=iv(a,l);if(m)break a}I[l+76>>1]=j;I[l+74>>1]=i;I[l+72>>1]=h;I[l+70>>1]=g;I[l+68>>1]=f;I[l+66>>1]=e;H[l+65|0]=k;H[l+64|0]=d}n=n+1|0;if((n&65535)>>>0<=c>>>0)continue;break}I[a+2324>>1]=c;I[a+2320>>1]=b;if(b>>>0>c>>>0)break b;while(1){if(K[a+497|0])break b;I[a+2322>>1]=b;d=b&65535;e:{if(!d)break e;d=ph(a,d);if(!d|K[d+30|0]|(!K[d+31|0]|!K[d+32|0]))break e; +m=Zh(a,d,0);if(m)break a}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}}m=0;if(!K[a+497|0])break a;H[a+498|0]=9}return m}function Bh(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;if((b|0)<0)gi(781205);g=(b|0)>=1048576?1048576:b;c=8;a:{b:{if(!J[a+4>>2]){while(1){d=c;c=c<<1;if((d|0)<(g|0))continue;break}if((d^2147483647)<(b|0))gi(782771);c=vc(b+d&0-d);break b}while(1){d=c;c=c<<1;if((d|0)<(g|0))continue;break}if((d^2147483647)<(b|0))gi(782771);f=J[a>>2];h=(f|0)>=1048576?1048576:f;e=8;while(1){c= +e;e=c<<1;if((c|0)<(h|0))continue;break}if((c^2147483647)<(f|0))gi(782771);if((c+f&0-c)==(b+d&0-d))break a;d=8;while(1){c=d;d=c<<1;if((c|0)<(g|0))continue;break}if((c^2147483647)<(b|0))gi(782771);c=vc(b+c&0-c);d=J[a+4>>2];e=J[a>>2];c:{if((e|0)>(b|0)){i=xc(c,d,b)+b|0,j=0,H[i|0]=j;break c}xc(c,d,e+1|0)}if(!d)break b;uc(d)}J[a+4>>2]=c}}function DW(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2414024;b=J[a+24>>2];J[a+24>>2]=0;a:{b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d| +0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+16>>2];J[a+16>>2]=0;c:{if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+12>>2];J[a+12>>2]=0;d:{if(!b)break d;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break d;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)== +1)break a}return nd(a)|0}ea(0)|0;Bc();B()}function BEa(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;f=fc-32|0;fc=f;a:{b:{if((b|0)<0){b=Qc(f+8|0,2386793,2387711,649,2397273,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}if((c|0)<=0){b=Qc(f+8|0,2388434,2387711,651,2397273,0);J[699344]=0;$(5179,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b;break a}a=J[a+12>>2];c:{if(!a)break c;g=b+c|0;e=J[a+8>>2];d=e>>31;d:{d=(d^e)-d|0;if(d>>>0>b>>>0)break d;a=J[a>>2];if(!a)break c; +while(1){if((d|0)>=(g|0))break c;e=J[a+8>>2];h=e>>31;j=(b|0)>=(d|0);d=((e^h)-h|0)+d|0;if(j&(d|0)>(b|0))break d;a=J[a>>2];if(a)continue;break}break c}if((e|0)<0){i=-1;break c}i=(d|0)>(g|0)?c:d-b|0}fc=f+32|0;return i|0}B()}a=Z()|0;Kc(b);ba(a|0);B()}function ivb(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;var h=0,i=0,j=0,k=0,l=0;a:{if(f){if(!d)break a;a=c<<1;l=b<<1;b=0;while(1){i=L[e>>1];b:{if((i|0)==L[f>>1]){I[g>>1]=i;break b}i=K[e|0]|K[e+1|0]<<8;j=i>>>8|0;h=K[f|0]|K[f+1|0]<<8;i=((i<<8| +j)&65535)+((P(((h<<8|h>>>8)&65535)-((j|i<<8)&65535)|0,l)+c|0)/(a|0)|0)&65535;i=i<<8|i>>>8;H[g|0]=i;H[g+1|0]=i>>>8}i=g+2|0;h=L[e+2>>1];c:{if((h|0)==L[f+2>>1]){I[i>>1]=h;break c}h=e+2|0;k=K[h+1|0]<<8;j=K[h|0]|k;h=k|K[h|0];k=(h<<8|h>>>8)&65535;h=K[f+2|0]|K[f+3|0]<<8;h=k+((P(((h<<8|h>>>8)&65535)-((j<<8|j>>>8)&65535)|0,l)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[i|0]=h;H[i+1|0]=h>>>8}f=f+4|0;e=e+4|0;g=g+4|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}xc(g,e,d<<2)}return 0}function Yr(a){a=a|0;var b=0,c=0, +d=0;b=fc-32|0;fc=b;J[b+28>>2]=0;a:{if(!a)break a;c=J[a+4>>2];if((c|0)!=3037){J[b+24>>2]=J[183567];d=J[183566];J[b+16>>2]=J[183565];J[b+20>>2]=d;d=J[183564];J[b+8>>2]=J[183563];J[b+12>>2]=d;d=J[183562];J[b>>2]=J[183561];J[b+4>>2]=d;J[b+28>>2]=0;J[b+4>>2]=a;kc[c|0](J[a+16>>2],b,0,0,4,b+28|0)}c=J[a>>2];if((c|0)!=3038){J[b+24>>2]=J[183574];d=J[183573];J[b+16>>2]=J[183572];J[b+20>>2]=d;d=J[183571];J[b+8>>2]=J[183570];J[b+12>>2]=d;d=J[183569];J[b>>2]=J[183568];J[b+4>>2]=d;J[b+28>>2]=0;J[b+4>>2]=a;kc[c| +0](J[a+12>>2],b,0,0,0,4,b+28|0)}c=J[J[J[a+24>>2]+20>>2]+16>>2];if(c)kc[c|0](a);c=J[a+20>>2];if((c|0)!=(a+108|0))Nf(c);c=J[a+24>>2];if(K[c+17|0])Oe(c);if(K[a+33|0])break a;Nf(a)}fc=b+32|0}function gca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{b:{d=J[a+4>>2];e=J[a+12>>2];f=e+c|0;if(!(!J[a+16>>2]|(d|0)>=(f|0))){c:{while(1){if((d|0)>=(f|0))break c;d=d<<1;if((d|0)>=0)continue;break}fa(205368,198694,1018,206440);B()}e=J[a>>2];if(!e)break b;e=Yh(e,d);if(!e)return-1;J[a+4>>2]=d;J[a>>2]=e;e=J[a+12>> +2]}f=J[a+8>>2];d:{if((f|0)<(e|0)){d=((e|0)<(d|0)?e:d)-f|0;if((d|0)>0){Ac(J[a>>2]+f|0,0,d);f=d+J[a+8>>2]|0;J[a+8>>2]=f;e=J[a+12>>2]}d=0;if((e|0)!=(f|0))break d;d=J[a+4>>2];e=f}g=d-e|0;d=(c|0)>(g|0)?g:c;if((d|0)>0){xc(J[a>>2]+e|0,b,d);e=J[a+12>>2]+d|0;J[a+12>>2]=e;f=J[a+8>>2]}if((e|0)>(f|0))J[a+8>>2]=e;if((c|0)>(g|0))break a}return d|0}fa(205709,198694,996,206450);B()}fa(205456,198694,1046,206440);B()}function um(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;j=L[((a>>>0<=153?a:0)<<1)+2622224>> +1]+2620308|0;a=J[J[698634]+20>>2];if(a){e=J[a+4>>2];b=J[a>>2];d=J[b>>2]+1794895138|0;f=jr(J[b+8>>2],d);g=jr(J[b+12>>2],d);c=jr(J[b+16>>2],d);a:{if(e>>>2>>>0<=f>>>0)break a;a=e-(f<<2)|0;if((c|g)&3|(a>>>0<=g>>>0|a>>>0<=c>>>0))break a;m=c>>>2|0;c=b+(g&-4)|0;while(1){h=f>>>1|0;i=h+k|0;a=(i<<3)+c|0;g=jr(J[a>>2],d);a=jr(J[a+4>>2],d);if(a>>>0>=e>>>0|g>>>0>=e-a>>>0)break a;a=a+b|0;if(K[a+g|0])break a;a=Ic(j,a);if(!a){a=(b+(m<<2)|0)+(i<<3)|0;c=jr(J[a>>2],d);a=jr(J[a+4>>2],d);if(a>>>0>=e>>>0|c>>>0>=e-a>>>0)break a; +a=a+b|0;l=K[a+c|0]?0:a;break a}if((f|0)==1)break a;a=(a|0)<0;f=a?h:f-h|0;k=a?k:i;continue}}}return l?l:j}function py(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{if(!b)break a;J[b>>2]=1;d=!a;if(d|(d?0:J[a+36>>2]))break a;c=P(a?J[a>>2]:-1,a?J[a+8>>2]:-1);h=(c|0)/32|0;d=a?J[a+4>>2]:-1;f=a?J[a+12>>2]:-1;g=a?J[a+40>>2]:0;if((d|0)<=0)return;a=c&31;i=-1<<32-a;b:{if((c|0)>=32){if(!a)while(1){a=(P(e,f)<<2)+g|0;c=0;while(1){if(J[a>>2])break b;a=a+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}e=e+1|0;if((d|0)!=(e| +0))continue;break a}while(1){a=(P(e,f)<<2)+g|0;c=0;while(1){if(J[a>>2])break b;a=a+4|0;c=c+1|0;if((h|0)!=(c|0))continue;break}if(J[a>>2]&i)break b;e=e+1|0;if((d|0)!=(e|0))continue;break}break a}if(!a)break a;a=0;while(1){if(J[(P(a,f)<<2)+g>>2]&i)break b;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}J[b>>2]=0}}function nu(a){a=a|0;var b=0,c=0,d=0;a:{b:{if(!a)break b;b=J[a+64>>2];if(!b)break b;c:{d:{e:{f:{g:{h:{i:{c=J[a+68>>2];b=c?c:b;switch(J[b+4>>2]-1|0){case 4:case 5:case 6:case 9:case 11:case 13:break a; +case 17:break c;case 10:break d;case 8:case 12:break e;case 7:break f;case 3:break g;case 2:break h;case 0:case 1:break i;default:break b}}j:{c=J[b+36>>2];if(c){c=J[c+12>>2];if(c)break j}return J[b+8>>2]}return MC(J[a+88>>2],c,J[b+8>>2])|0}return te(J[a+88>>2],1826,-1)|0}return te(J[a+88>>2],6685,-1)|0}return te(J[a+88>>2],2643,-1)|0}return te(J[a+88>>2],2508,-1)|0}return te(J[a+88>>2],2704,-1)|0}a=J[a+88>>2];b=J[b+12>>2];if(!b)return te(a,4071,-1)|0;d=MC(a,4071,b)}return d|0}return te(J[a+88>>2], +J[b+8>>2],-1)|0}function nJ(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=vc(24);J[g+12>>2]=e;J[g+8>>2]=d;J[g>>2]=2317464;J[g+4>>2]=0;j=d+7>>3;J[g+16>>2]=j;a:{if(!((d|0)<=0|(e|0)<=0|(j|0)<=0)){f=e;if(2147483646/(j>>>0)>>>0>f>>>0)break a}J[g+12>>2]=-1;J[g+16>>2]=2;j=2;f=-1}J[699344]=0;h=P(f,j);f=_(3616,h+1|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1){J[g+20>>2]=f;H[f+h|0]=0;l=Ac(f,0,h);if(!(!e|!d)){h=0;while(1){k=c+h|0;if((k|0)>=0){m=P(h,j)+l|0;f=0;while(1){i=b+f|0;if(!((i|0)<0|(i|0)>=J[a+8>>2]|(!(K[J[a+ +20>>2]+P(J[a+16>>2],k)+(i>>>3)|0]>>>((i^-1)&7)&1)|J[a+12>>2]<=(k|0)))){i=(f>>3)+m|0;H[i|0]=K[i|0]|1<<((f^-1)&7)}f=f+1|0;if((f|0)!=(d|0))continue;break}}h=h+1|0;if((h|0)!=(e|0))continue;break}}return g}a=Z()|0;uc(g);ba(a|0);B()}function mCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[b+12>>2];if((d|0)>J[a+56>>2]){rd(208912,0);return-1}a:{b:{e=J[a+84>>2]-4|0;if(e)if((e|0)==12)break b;else break a;d=J[J[a+64>>2]+24>>2]+P(d,488)|0;J[d>>2]=J[d>>2]|10;c=J[b+20>>2];if((c|0)>0){e=J[b+24>>2];a=0;while(1){c=a<<2; +J[(c+d|0)+16>>2]=J[c+e>>2];a=a+1|0;c=J[b+20>>2];if((a|0)<(c|0))continue;break}}J[d+12>>2]=c;H[d+416|0]=K[b+28|0];H[d+9|0]=K[b+16|0];return 0}c=-1;a=J[a+52>>2];if(!a|J[a+40>>2]>0)break a;d=J[J[a+32>>2]+24>>2]+P(d,488)|0;J[d>>2]=J[d>>2]|10;c=J[b+20>>2];if((c|0)>0){e=J[b+24>>2];a=0;while(1){c=a<<2;J[(c+d|0)+16>>2]=J[c+e>>2];a=a+1|0;c=J[b+20>>2];if((a|0)<(c|0))continue;break}}J[d+12>>2]=c;H[d+416|0]=K[b+28|0];H[d+9|0]=K[b+16|0];c=0}return c|0}function et(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{c:{d:{e:{e=J[b>> +2];if(e){d=J[a>>2];if(!d)break e;g=O[e+32>>3];if(g>3])break e;d=0;f=J[c>>2];if(!f|!(O[f+32>>3]>2];if(f)break d;return 0}f=J[c>>2];if(!(!f|!(O[f+32>>3]>3]))){J[a>>2]=f;J[c>>2]=d;c=c+4|0;a=a+4|0;d=1;break b}J[a>>2]=e;J[b>>2]=d;d=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=d;d=1;a=J[c>>2];if(!a)break a;e=J[b>>2];if(O[a+32>>3]>3]?0:e)break a;J[b>>2]=a;J[c>>2]=e;c=c+4|0;a=b+4|0;break c}J[b>>2]=f;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;d=1;e=J[b>> +2];if(!e)break a;f=J[a>>2];if(O[e+32>>3]>3]?0:f)break a;c=b+4|0;J[a>>2]=e;J[b>>2]=f;a=a+4|0}d=2}b=J[a>>2];J[a>>2]=J[c>>2];J[c>>2]=b}return d}function QW(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;mk(a+16|0,b+16|0);J[a+52>>2]=J[b+52>>2];d=c;c=d-1|0;b=b+56|0;a=a+56|0;if(d)continue;break a}while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+ +8>>2];J[a+12>>2]=d;mk(a+16|0,b+16|0);J[a+52>>2]=J[b+52>>2];J[b+40>>2]=2392964;J[b+16>>2]=2392932;d=J[b+44>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[b+44>>2]=0}J[b+32>>2]=2392964;d=J[b+36>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[b+36>>2]=0}wc(b+24|0);b=b+56|0;a=a+56|0;d=(c|0)>0;c=c-1|0;if(d)continue;break}}}function cDb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!J[a+16>>2]|!J[a+20>>2]|(!J[a+32>>2]|!J[a+36>>2]))break a;if(!J[a+48>>2])break a;b:{if(Kh(c, +J[a+12>>2]))break b;if(zi(c,J[a+16>>2]))break b;if(zi(c,J[a+20>>2]))break b;if(zi(c,J[a+24>>2]))break b;if(zi(c,J[a+28>>2]))break b;if(zi(c,J[a+32>>2]))break b;if(zi(c,J[a+36>>2]))break b;if(zi(c,J[a+40>>2]))break b;if(zi(c,J[a+44>>2]))break b;if(Kh(c,J[a+48>>2]))break b;if(!J[a+48>>2])return 0;b=0;while(1){d=b<<2;e=d+J[a+52>>2]|0;if(Cs(c,(K[e|0]-1&127|K[e+1|0]<<7)&255))break b;if(Cs(c,K[(J[a+52>>2]+d|0)+2|0]))break b;if(Cs(c,K[(J[a+52>>2]+d|0)+3|0]))break b;b=b+1|0;if(b>>>0>2])continue;break}return 0}return-1}fa(207626, +207976,534,208857);B()}function US(a,b,c,d,e,f){var g=0;g=fc-80|0;fc=g;a:{if((f|0)>=16384){Zf(g+32|0,b,c,d,e,0,0,0,2147352576);d=J[g+40>>2];e=J[g+44>>2];b=J[g+32>>2];c=J[g+36>>2];if(f>>>0<32767){f=f-16383|0;break a}Zf(g+16|0,b,c,d,e,0,0,0,2147352576);f=((f|0)>=49149?49149:f)-32766|0;d=J[g+24>>2];e=J[g+28>>2];b=J[g+16>>2];c=J[g+20>>2];break a}if((f|0)>-16383)break a;Zf(g- -64|0,b,c,d,e,0,0,0,7471104);d=J[g+72>>2];e=J[g+76>>2];b=J[g+64>>2];c=J[g+68>>2];if(f>>>0>4294934644){f=f+16269|0;break a}Zf(g+ +48|0,b,c,d,e,0,0,0,7471104);f=((f|0)<=-48920?-48920:f)+32538|0;d=J[g+56>>2];e=J[g+60>>2];b=J[g+48>>2];c=J[g+52>>2]}Zf(g,b,c,d,e,0,0,0,f+16383<<16);b=J[g+12>>2];J[a+8>>2]=J[g+8>>2];J[a+12>>2]=b;b=J[g+4>>2];J[a>>2]=J[g>>2];J[a+4>>2]=b;fc=g+80|0}function Ora(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;e=rl(d,c);J[699344]=0;f=rf(e);c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;J[699344]=0;c=J[J[b+80>>2]+((f>>>0)%M[b+76>>2]<<2)>>2];b=J[699344];J[699344]=0;if((b|0)==1)break a;b=0;b:{if(!c)break b; +while(1){c:{if(J[c+12>>2]!=(f|0))break c;J[699344]=0;b=ga(5287,c+16|0,e|0,-1)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(b)break c;b=c;break b}c=J[c+8>>2];if(c)continue;break}b=0}wc(e);J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2397928;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[699344]=0;aa(5201,a|0,(b?b+24|0:d)|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){id(d);fc=d+16|0;return}a=Z()|0;id(d);ba(a|0);B()}a=Z()|0;wc(e);ba(a|0);B()}function M5(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=340716;b=J[a+ +536>>2];c=J[a+540>>2];if((b|0)!=(c|0)){while(1){d=J[b>>2];if(d){c=J[d>>2];if(c){kc[J[J[c>>2]+20>>2]](c);J[d>>2]=0}c=J[d+4>>2];if(c)uc(Jd(c));uc(d);c=J[a+540>>2]}b=b+4|0;if((c|0)!=(b|0))continue;break}b=J[a+536>>2]}J[a+540>>2]=b;if(b)uc(b);Jd(a+512|0);J[a+440>>2]=340552;if(H[a+467|0]<0)uc(J[a+456>>2]);if(H[a+455|0]<0)uc(J[a+444>>2]);J[a+72>>2]=340504;a:{b=J[a+100>>2];if(b){d=J[J[b>>2]+12>>2];J[699344]=0;_(d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+100>>2]=0}Se(a+284|0);b=J[a+192>>2]; +if(b){J[a+196>>2]=b;uc(b)}if(H[a+119|0]<0)uc(J[a+108>>2]);Jd(a+104|0);J[a+8>>2]=340456;b=J[a+36>>2];if(b){uc(b);J[a+36>>2]=0}return a|0}ea(0)|0;Bc();B()}function Tj(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;d=J[a+596>>2];j=J[d+28>>2];if((j|0)>0){n=O[a+56>>3];o=O[a+40>>3];p=O[a+24>>3];q=O[a+48>>3];r=O[a+32>>3];s=O[a+16>>3];t=J[d+24>>2];d=0;while(1){b=J[(d<<2)+t>>2];k=J[b+12>>2];if((k|0)>0){u=J[b+4>>2];v=J[b>>2];b=0;while(1){l=b<<3;c=O[l+v>>3];m=O[u+ +l>>3];e=n+(p*c+m*o);c=q+(s*c+m*r);a:{if(!(b|d)){f=e;g=e;h=c;i=c;break a}b:{if(ch))break b;h=c}if(eg))break a;g=e}b=b+1|0;if((k|0)!=(b|0))continue;break}}d=d+1|0;if((j|0)!=(d|0))continue;break}}if(O[a+632>>3]>3]=i;if(O[a+640>>3]>3]=f;if(O[a+648>>3]>h)O[a+648>>3]=h;if(O[a+656>>3]>g)O[a+656>>3]=g}function sla(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=fc-16|0;fc=h;a:{b:{if(!d){e=J[a+584>>2];if(!e)break b;f=(c| +0)/J[e+8>>2]|0;j=b;if(J[e>>2]!=2){if(J[e+16>>2]<(f|0))break a;j=J[e+12>>2]}g=J[a+608>>2];d=J[a+604>>2];c=0;c:{if((f|0)<=0){i=g;break c}if((g|0)<=0){i=g;break c}while(1){J[(c<<2)+j>>2]=K[d+2|0]|(K[d+1|0]<<8|K[d|0]<<16);i=g-3|0;d=d+3|0;c=c+1|0;if((f|0)<=(c|0))break c;k=g>>>0>3;g=i;if(k)continue;break}}J[a+608>>2]=i;J[a+604>>2]=d;d:{if((c|0)!=(f|0)){b=J[a>>2];d=J[a+628>>2];a=J[a+472>>2];J[h+4>>2]=f-c;J[h>>2]=a;Uc(d,b,78069,h);a=0;break d}kc[J[e+20>>2]](e,b,f);a=1}fc=h+16|0;return a|0}fa(76922,70372, +248,93824);B()}fa(74429,70372,249,93824);B()}fa(77140,70372,256,93824);B()}function gq(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{h=J[a+36>>2];b:{if(!h)break b;g=J[h+12>>2];f=J[h+16>>2]-g|0;if((f|0)<0)break b;e=J[a+204>>2];e=(e|0)>(f|0)?e:f;i=J[h>>2];if(i){f=0;g=J[i+16>>2];if(!(!g|J[g+32>>2]))f=J[g>>2];g=f;f=Li(J[J[h>>2]+16>>2])}else f=J[h+24>>2];i=f+(d?-2:c?-1:0)|0;if((e|0)<(i|0)){c:{if(d)while(1){f=e;j=g+e|0;e=e+1|0;if(!(K[j|0]!=(b|0)|K[g+e|0]!=(c|0))&K[j+2|0]==(d|0))break a;if((e|0)!=(i|0))continue; +break c}if(c){f=e;while(1){d=f+1|0;if(K[f+g|0]==(b|0)&K[d+g|0]==(c|0))break a;f=d;if((i|0)!=(f|0))continue;break}break c}while(1){if(K[e+g|0]==(b|0)){f=e;break a}e=e+1|0;if((i|0)!=(e|0))continue;break}}e=i}J[a+204>>2]=e}return-1}J[a+204>>2]=0;return J[h+12>>2]+(f-J[h+16>>2]|0)|0}function YZ(a,b,c){var d=0,e=0,f=0,g=0;a:{if(J[c>>2]==2){a=J[b+8>>2];if((a|0)<=0)break a;while(1){f=a-1|0;e=J[J[b>>2]+(f<<2)>>2];d=O[e+16>>3];g=J[c+52>>2];b:{c:{if(!J[g+8>>2]){O[c+16>>3]=d;O[c+24>>3]=O[e+24>>3];O[c+32>>3]= +O[e+32>>3];d=O[e+40>>3];break c}if(d>3])O[c+16>>3]=d;d=O[e+24>>3];if(d>3])O[c+24>>3]=d;d=O[e+32>>3];if(d>O[c+32>>3])O[c+32>>3]=d;d=O[e+40>>3];if(!(d>O[c+40>>3]))break b}O[c+40>>3]=d}Pn(g,0,e);e=a>>>0>1;a=f;if(e)continue;break}break a}YZ(a,b,J[J[J[c+52>>2]>>2]>>2]);a=J[J[J[c+52>>2]>>2]>>2];d=O[a+16>>3];if(d>3])O[c+16>>3]=d;d=O[a+24>>3];if(d>3])O[c+24>>3]=d;d=O[a+32>>3];if(d>O[c+32>>3])O[c+32>>3]=d;d=O[a+40>>3];if(!(d>O[c+40>>3]))break a;O[c+40>>3]=d}}function MFa(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=fc-16|0;fc=f;e=wt(180);J[699344]=0;g=_(5155,e|0)|0;h=J[699344];J[699344]=0;a:{b:{c:{d:{if((h|0)!=1){J[a>>2]=0;vd(a,g);e=J[c>>2];if(e){J[699344]=0;J[e+4>>2]=J[e+4>>2]+1;e=J[699344];J[699344]=0;if((e|0)==1)break d;i=J[c>>2]}J[699344]=0;J[f+12>>2]=i;ia(5157,g|0,b|0,f+12|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;a=J[f+12>>2];J[f+12>>2]=0;e:{if(!a)break e;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a; +if(b)break e;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=f+16|0;return}a=Z()|0;Gm(e);ba(a|0);B()}b=Z()|0;break b}b=Z()|0;zc(f+12|0)}zc(a);ba(b|0);B()}ea(0)|0;Bc();B()}function r0(a){var b=0,c=0,d=0,e=0,f=0;a:{if(J[a+108>>2])break a;b=J[a+16>>2];if((b|0)<=0)break a;c=b+7|0;f=J[a+12>>2]|127<<17-b;while(1){b=J[a+112>>2];J[a+112>>2]=b+1;H[b|0]=f>>>16;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(!b){d=J[a+120>>2];b=J[d+24>>2];if(!(kc[J[b+12>>2]](d)|0)){d=J[a+120>>2];e=J[d>>2];J[e+20>> +2]=25;kc[J[e>>2]](d)}J[a+112>>2]=J[b>>2];J[a+116>>2]=J[b+4>>2]}b=c;b:{if((f&16711680)!=16711680)break b;c=J[a+112>>2];J[a+112>>2]=c+1;H[c|0]=0;c=J[a+116>>2]-1|0;J[a+116>>2]=c;if(c)break b;d=J[a+120>>2];c=J[d+24>>2];if(!(kc[J[c+12>>2]](d)|0)){d=J[a+120>>2];e=J[d>>2];J[e+20>>2]=25;kc[J[e>>2]](d)}J[a+112>>2]=J[c>>2];J[a+116>>2]=J[c+4>>2]}c=b-8|0;f=f<<8;if((b|0)>15)continue;break}}J[a+12>>2]=0;J[a+16>>2]=0}function gf(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{if(!b)break b;if((c|0)<0)break a;f=J[a+12>>2];if(!f){f= +Dc(4096);J[a+12>>2]=f;if(!f)break b}g=J[a+16>>2];e=J[a+20>>2];d=g-e|0;c:{if((d|0)<=0){d=0;break c}if((c|0)<(d|0)){d=0;break c}b=xc(b,e+f|0,d);g=J[a+16>>2];J[a+20>>2]=g;c=c-d|0;b=b+d|0;e=g}d:{if((c|0)>=4097){b=kc[J[J[a+8>>2]+8>>2]](J[a+4>>2],b,1,c)|0;J[a+20>>2]=J[a+16>>2];d=b+d|0;break d}if((e|0)==(g|0)){if((c|0)<=0)break d;e=kc[J[J[a+8>>2]+8>>2]](J[a+4>>2],J[a+12>>2],1,4096)|0;J[a+16>>2]=e;f=b;b=(c|0)<(e|0)?c:e;xc(f,J[a+12>>2],b);J[a+20>>2]=b;d=b+d|0;break d}f=b;b=g-e|0;b=(b|0)>(c|0)?c:b;xc(f,J[a+ +12>>2]+e|0,b);J[a+20>>2]=b+J[a+20>>2];d=b+d|0}J[a+28>>2]=J[a+28>>2]+d}return d}fa(219524,220042,64,223627);B()}function cF(a,b){var c=0,d=0,e=0,f=0;if(!(J[b>>2]!=J[a>>2]|J[b+4>>2]!=J[a+4>>2])){c=J[b+8>>2];a:{if((c|0)<=0)break a;b=J[b+12>>2];a=J[a+12>>2];e=c&3;b:{if(!e){d=c;break b}d=c;while(1){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];b=b+16|0;a=a+16|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(c>>>0<4)break a;while(1){J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]= +J[b+12>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=J[b+28>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=J[b+44>>2];J[a+52>>2]=J[b+52>>2];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];b=b- -64|0;a=a- -64|0;c=d-5|0;d=d-4|0;if(c>>>0<4294967294)continue;break}}return}fa(200079,198855,206,212464);B()}function ZB(a,b){var c=0,d=0,e=0;Ir(a);a:{if(J[a+108>>2])break a;r0(a);c=J[a+112>>2];J[a+112>>2]=c+1;H[c|0]=255;c=J[a+116>>2]-1|0;J[a+116>>2]=c;b:{if(c){c=J[a+112>>2];break b}c=J[a+ +120>>2];d=J[c+24>>2];if(!(kc[J[d+12>>2]](c)|0)){c=J[a+120>>2];e=J[c>>2];J[e+20>>2]=25;kc[J[e>>2]](c)}c=J[d>>2];J[a+116>>2]=J[d+4>>2]}J[a+112>>2]=c+1;H[c|0]=b-48;b=J[a+116>>2]-1|0;J[a+116>>2]=b;if(b)break a;c=J[a+120>>2];b=J[c+24>>2];if(!(kc[J[b+12>>2]](c)|0)){c=J[a+120>>2];d=J[c>>2];J[d+20>>2]=25;kc[J[d>>2]](c)}J[a+112>>2]=J[b>>2];J[a+116>>2]=J[b+4>>2]}c=J[a+120>>2];c:{if(!J[c+360>>2]){if(J[c+288>>2]<=0)break c;b=0;while(1){J[((b<<2)+a|0)+20>>2]=0;b=b+1|0;if((b|0)>2])continue;break}break c}J[a+ +128>>2]=0;J[a+132>>2]=0}}function UVa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=fc-16|0;fc=c;J[c+12>>2]=1;if(!((Tf(a,0,c+12|0)|0)!=128|!J[c+12>>2])){f=Pk(J[a+12>>2]);a:{if((Tf(a,0,c+12|0)|0)!=128|!J[c+12>>2])break a;while(1){g=c+12|0;if(Tf(a,d+1|0,g)-1>>>0>1|!J[c+12>>2])break a;b:{c:{b=d+2|0;if(b>>>0<=2147483644){e=b+3|0;if((e|0)>2])break c}J[g>>2]=0;b=0;break b}i=J[a+8>>2];b=b+i|0;b=(K[b+2|0]<<8|K[e+i|0]<<16|K[b+1|0])<<8|K[b|0]}if(!J[c+12>>2])break a;d=d+6|0;e=b+d|0;if(!((b|0)<=(d^2147483647)& +(b|d)>=0&(e|0)<=J[a+12>>2]))break a;xc(f+h|0,d+J[a+8>>2]|0,b);h=b+h|0;d=e;if((Tf(a,d,g)|0)!=128)break a;if(J[c+12>>2])continue;break}}if(J[a+16>>2])Mc(J[a+4>>2]);J[a+16>>2]=1;J[a+8>>2]=f;J[a+4>>2]=f;J[a+12>>2]=h}fc=c+16|0}function Qwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=J[a+636>>2]+J[a+616>>2]|0;d=J[a+588>>2];b=J[a+644>>2];e=J[a+540>>2];if(!e)e=J[J[a+528>>2]+88>>2];a:{b:{if(K[e+56|0]){if((d|0)>0)while(1){g=K[f|0];if(g>>>0>=M[e+64>>2])break b;d=P(g,3)+e|0;H[b|0]=K[d+68|0];H[b+1|0]=K[d+69|0];H[b+ +2|0]=K[d+70|0];H[b+3|0]=g>>>0>=M[e+844>>2]?255:K[(e+g|0)+848|0];f=f+1|0;b=b+4|0;c=c+1|0;if((c|0)>2])continue;break}H[a+649|0]=0;return 0}if((d|0)>0){d=0;while(1){c=K[f|0];if(c>>>0>=M[e+64>>2])break a;c=P(c,3)+e|0;H[b|0]=K[c+68|0];H[b+1|0]=K[c+69|0];c=K[c+70|0];H[b+3|0]=255;H[b+2|0]=c;f=f+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}H[a+649|0]=1;return 0}Jc(a,1042,0,0);return 1042}Jc(a,1042,0,0);return 1042}function xw(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=fc-32|0;fc=d;J[d+ +16>>2]=13;J[d>>2]=13;Ec(a,b,d+16|0,0);a:{if(J[d+16>>2]!=6)break a;a=J[d+24>>2];if(J[a+12>>2]!=4)break a;Sc(a,0,d,0);b=J[d>>2];a=b-3>>>0<4294967294;if(!a)e=(b|0)==1?+J[d+8>>2]:O[d+8>>3];yc(d);b=1;Sc(J[d+24>>2],1,d,0);f=1;g=J[d>>2];if(g-3>>>0>=4294967294){h=(g|0)==1?+J[d+8>>2]:O[d+8>>3];f=a}yc(d);Sc(J[d+24>>2],2,d,0);a=J[d>>2];if(a-3>>>0>=4294967294){i=(a|0)==1?+J[d+8>>2]:O[d+8>>3];b=f}yc(d);Sc(J[d+24>>2],3,d,0);a=J[d>>2];if(a-3>>>0>=4294967294){j=O[d+8>>3];g=J[d+8>>2];yc(d);f=0;if(b)break a;b=e>i; +O[c+16>>3]=b?e:i;O[c>>3]=b?i:e;f=1;e=(a|0)==1?+(g|0):j;a=e>3]=a?h:e;O[c+8>>3]=a?e:h;break a}yc(d);f=0}yc(d+16|0);fc=d+32|0;return f}function dta(a){a=a|0;var b=0,c=0;J[a+8>>2]=0;J[a>>2]=2432988;J[a+4>>2]=0;b=J[685894];J[a+16>>2]=0;J[a+20>>2]=0;J[a+12>>2]=b;J[699344]=0;b=a+24|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2434524;c=J[699344];J[699344]=0;a:{b:{if((c|0)!=1){J[699344]=0;c=a+48|0;J[c+20>>2]=-1;J[c+12>>2]=-1;J[c+16>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>> +2]=2434544;c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Hd(b);break b}c=Z()|0}zc(a+20|0);wc(a+8|0);nd(a);ba(c|0);B()}J[a+72>>2]=0;J[a+76>>2]=0;J[a>>2]=2433192;J[699344]=0;b=a+80|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2418148;b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;jV(a);ba(b|0);B()}H[a+104|0]=0;return a|0}function oEb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-96|0;fc=c;J[c+80>>2]=J[a+12>>2];md(b,205824,c+80|0);d=J[a+12>>2];a:{if((d|0)!=1){if((d|0)<=0)break a; +d=J[J[a+16>>2]>>2];J[c+64>>2]=0;O[c+72>>3]=+(d>>>0)/65535;Yi(b,206214,c- -64|0);if(J[a+12>>2]<2)break a;d=J[J[a+16>>2]+4>>2];J[c+48>>2]=1;O[c+56>>3]=+(d>>>0)/65535;Yi(b,206214,c+48|0);d=3;if(J[a+12>>2]<3)break a;e=J[J[a+16>>2]+8>>2];J[c+32>>2]=2;O[c+40>>3]=+(e>>>0)/65535;Yi(b,206214,c+32|0);e=J[a+12>>2];if((e|0)<=3)break a;while(1){if((e-3|0)<=(d|0)){e=J[J[a+16>>2]+(d<<2)>>2];J[c+16>>2]=d;O[c+24>>3]=+(e>>>0)/65535;Yi(b,206214,c+16|0);e=J[a+12>>2]}d=d+1|0;if((e|0)>(d|0))continue;break}break a}O[c>> +3]=+M[J[a+16>>2]>>2]*.00390625;Yi(b,206083,c)}fc=c+96|0}function nna(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=+c;d=+d;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=Q(0),m=Q(0),n=Q(0),o=Q(0);j=fc-32|0;fc=j;J[e>>2]=0;J[e+4>>2]=0;J[f>>2]=0;J[f+4>>2]=0;J[g>>2]=0;J[g+4>>2]=0;J[h>>2]=0;J[h+4>>2]=0;k=J[a>>2];if(k){N[j+12>>2]=c;N[j+28>>2]=d;kc[J[J[k>>2]+84>>2]](k,b,j+12|0,j+28|0)|0;a:{b:{c:switch(i|0){case 0:a=J[a>>2];kc[J[J[a>>2]+116>>2]](j+12|0,a);break b;case 1:break c;default:break a}a=J[a>>2];kc[J[J[a>>2]+120>> +2]](j+12|0,a)}n=N[j+24>>2];l=N[j+20>>2];o=N[j+16>>2];m=N[j+12>>2]}O[e>>3]=m;O[f>>3]=l;O[g>>3]=Q(o-m);O[h>>3]=Q(n-l);O[e>>3]=O[e>>3]*.35277777777777775;O[f>>3]=O[f>>3]*.35277777777777775;O[g>>3]=O[g>>3]*.35277777777777775;O[h>>3]=O[h>>3]*.35277777777777775}fc=j+32|0}function Ez(a,b){var c=0,d=0,e=0;a:{if(K[b|0])break a;b=Xi(21176);if(K[b|0]?b:0)break a;b=Xi(P(a,12)+2620192|0);if(K[b|0]?b:0)break a;b=Xi(21302);if(K[b|0]?b:0)break a;b=22369}b:{while(1){d=K[b+c|0];if(!(!d|(d|0)==47)){d=23;c=c+1|0;if((c| +0)!=23)continue;break b}break}d=c}e=22369;c:{d:{c=K[b|0];e:{f:{if(!(K[b+d|0]|(c|0)==46)){e=b;if((c|0)!=67)break f}if(!K[e+1|0])break e}if(!Ic(e,22369))break e;if(Ic(e,19989))break d}if(!a){c=2467108;if(K[e+1|0]==46)break c}return 0}c=J[698647];if(c)while(1){if(!Ic(e,c+8|0))break c;c=J[c+32>>2];if(c)continue;break}c=Dc(36);if(c){b=J[616778];J[c>>2]=J[616777];J[c+4>>2]=b;b=c+8|0;xc(b,e,d);H[b+d|0]=0;J[c+32>>2]=J[698647];J[698647]=c}c=a|c?c:2467108}return c}function sn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d= +d|0;e=e|0;var f=0,g=0,h=0;e=fc-16|0;fc=e;J[e+12>>2]=d;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if(d>>>0>>0){as(a);B()}if(K[b+11|0]>>>7|0)b=J[b>>2];J[e+4>>2]=d-c;g=(c<<2)+b|0;b=fc-16|0;fc=b;fc=b+16|0;d=fc-16|0;fc=d;a:{b=e+4|0;c=e+12|0;c=J[(M[b>>2]>2]?b:c)>>2];if(c>>>0<=1073741807){b:{if(c>>>0<2){H[a+11|0]=c|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;b=a;break b}h=d+8|0;if(c>>>0>=2){f=c+4&-4;b=f-1|0;b=(b|0)==2?f:b}else b=1;to(h,a,b+1|0);b=J[d+8>>2];J[a>>2]=b;J[a+8>>2]=J[a+8>>2]&-2147483648| +J[d+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}Ik(b,g,c);J[d+4>>2]=0;J[(c<<2)+b>>2]=J[d+4>>2];fc=d+16|0;break a}_d(a);B()}fc=e+16|0;return a|0}function pm(a,b,c){var d=0,e=0,f=0;d=fc+-64|0;fc=d;f=J[a>>2];e=J[f-4>>2];f=J[f-8>>2];J[d+32>>2]=0;J[d+36>>2]=0;J[d+40>>2]=0;J[d+44>>2]=0;J[d+48>>2]=0;J[d+52>>2]=0;H[d+55|0]=0;H[d+56|0]=0;H[d+57|0]=0;H[d+58|0]=0;H[d+59|0]=0;H[d+60|0]=0;H[d+61|0]=0;H[d+62|0]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=b;J[d+12>>2]=a;J[d+8>>2]=c;a=a+ +f|0;b=0;a:{if(Mj(e,c,0)){J[d+56>>2]=1;kc[J[J[e>>2]+20>>2]](e,d+8|0,a,a,1,0);b=J[d+32>>2]==1?a:0;break a}kc[J[J[e>>2]+24>>2]](e,d+8|0,a,1,0);b:switch(J[d+44>>2]){case 0:b=J[d+48>>2]==1?J[d+36>>2]==1?J[d+40>>2]==1?J[d+28>>2]:0:0:0;break a;case 1:break b;default:break a}if(J[d+32>>2]!=1)if(J[d+48>>2]|J[d+36>>2]!=1|J[d+40>>2]!=1)break a;b=J[d+24>>2]}fc=d- -64|0;return b}function lX(a){a=a|0;var b=0,c=0,d=0;a:{b=J[693726];if(!b){c=vc(32);J[c>>2]=0;J[c+4>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+ +20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[699344]=0;b=aa(5250,c|0,2397856)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[693726]=b}c=fc-16|0;fc=c;QA(b);b:{c:{d:{if(!lk(a))break d;d=ql(a);b=J[J[b+12>>2]+((d>>>0)%M[b+8>>2]<<2)>>2];if(!b)break d;while(1){e:{if((d|0)==J[b+12>>2])if(Bm(b+16|0,a))break e;b=J[b+8>>2];if(b)continue;break d}break}a=Eo(c,b+52|0);b=J[a+8>>2];if(b)while(1){d=J[b+8>>2];J[699344]=0;$(5246,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;b=J[b>>2];if(b)continue;break}id(a)}fc=c+16| +0;break b}b=Z()|0;id(a);ba(b|0);B()}return}a=Z()|0;uc(c);ba(a|0);B()}function Nba(a){var b=0,c=0,d=0,e=0,f=0;a:{b=Dc(16);b:{if(b){J[b+12>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;if((a|0)<0)break a;c=Dc(a<<2);if(c){J[b+12>>2]=c;J[b+8>>2]=a;c=J[b+4>>2];if((c|0)>=(a|0))break b;d=(c^-1)+a|0;e=a-c&3;if(e)while(1){J[J[b+12>>2]+(c<<2)>>2]=0;c=c+1|0;f=f+1|0;if((f|0)!=(e|0))continue;break}if(d>>>0<3)break b;while(1){d=c<<2;J[d+J[b+12>>2]>>2]=0;J[(d+J[b+12>>2]|0)+4>>2]=0;J[(d+J[b+12>>2]|0)+8>>2]=0;J[(d+J[b+12>>2]|0)+ +12>>2]=0;c=c+4|0;if((c|0)!=(a|0))continue;break}break b}a=J[b+12>>2];if(a){if(J[b+4>>2]>0){c=0;while(1){a=J[J[b+12>>2]+(c<<2)>>2];d=J[a+32>>2];if(d)uc(d);uc(a);c=c+1|0;if((c|0)>2])continue;break}a=J[b+12>>2]}uc(a)}uc(b)}b=0}return b}fa(206121,206278,441,207782);B()}function zEa(a){a=a|0;var b=0,c=0,d=0;J[a+16>>2]=0;H[a+10|0]=0;I[a+8>>1]=0;J[a>>2]=2397332;J[a+4>>2]=0;J[699344]=0;d=_(5252,a+20|0)|0;c=J[699344];J[699344]=0;a:{b:{c:{d:{if((c|0)!=1){J[a+88>>2]=0;J[a+92>>2]=0;J[a+84>>2]=-1;J[a+76>> +2]=0;J[a+80>>2]=0;J[a+64>>2]=0;J[a+56>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[699344]=0;c=a+88|0;J[c>>2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[699344]=0;b=a+108|0;J[b>>2]=2397928;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break c;return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;id(c)}zc(a- -64|0);zc(a+56|0);Ed(d)}zc(a+16|0);nd(a);ba(b|0);B()}function nMa(a){a=a|0; +var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+136>>2];a:{if(b>>>0>=M[a+140>>2]){b=-1;if(J[a+144>>2])break a;b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if(!((c|0)!=128&(c|0)!=-1)){J[a+144>>2]=1;return-1}b:{if((c|0)<=127){d=c+1|0;b=0;if((c|0)<0)break b;if(c){h=d&-2;f=a+8|0;while(1){e=J[a+4>>2];i=b+f|0,j=kc[J[J[e>>2]+28>>2]](e)|0,H[i|0]=j;e=J[a+4>>2];i=(b|1)+f|0,j=kc[J[J[e>>2]+28>>2]](e)|0,H[i|0]=j;b=b+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}}if(c&1)break b;c=a+b|0;b=J[a+4>>2];i=c,j=kc[J[J[b>>2]+28>> +2]](b)|0,H[i+8|0]=j;break b}d=257-c|0;b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if(c>>>0>256)break b;Ac(a+8|0,b,(d|0)<=1?1:d)}b=a+8|0;J[a+140>>2]=d+b}J[a+136>>2]=b+1;b=K[b|0]}return b|0}function $u(a,b,c){var d=0,e=0,f=0;d=K[b|0];if((d|0)==30)return iE(a,b,c,0);f=b+1|0;a:{b:switch(d-28|0){case 0:e=0;if(M[a+8>>2]<=b+2>>>0)break a;e=(K[b+2|0]|K[f|0]<<8)<<16>>16;break a;case 1:e=0;if(M[a+8>>2]<=b+4>>>0)break a;a=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);e=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24); +break a;default:break b}e=d-139|0;if(d>>>0<=246)break a;a=J[a+8>>2];if(d>>>0<=250){e=0;if(a>>>0<=f>>>0)break a;e=(K[f|0]|d<<8)-63124|0;break a}e=0;if(a>>>0<=f>>>0)break a;e=64148-(K[f|0]|d<<8)|0}d=e;if(c){a=c<<2;b=d>>31;if(J[a+258288>>2]<((b^d)-b|0))return(d|0)>0?2147483647:-2147483647;d=P(J[a+258240>>2],d)}if((d|0)<=32767)a=(d|0)<-32767?-2147483647:d<<16;else a=2147483647;return a}function $l(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if((a|0)==(b|0))break a;c=a+16|0;d=b+16|0;f=K[b+27|0];e=f<<24>> +24;b:{if(H[a+27|0]>=0){if((e|0)>=0){e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+8>>2];break b}Gf(c,J[b+16>>2],J[b+20>>2]);break b}g=c;c=(e|0)<0;Lf(g,c?J[b+16>>2]:d,c?J[b+20>>2]:f)}c=a+4|0;d=b+4|0;f=K[b+15|0];e=f<<24>>24;if(H[a+15|0]>=0){if((e|0)>=0){e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+8>>2];break a}Gf(c,J[b+4>>2],J[b+8>>2]);break a}g=c;c=(e|0)<0;Lf(g,c?J[b+4>>2]:d,c?J[b+8>>2]:f)}O[a+32>>3]=O[b+32>>3];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=J[b+44>>2];H[a+48|0]=K[b+48|0];H[a+49| +0]=K[b+49|0];J[a+52>>2]=J[b+52>>2];O[a+56>>3]=O[b+56>>3];J[a+64>>2]=J[b+64>>2];return a|0}function wH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-16|0;fc=d;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;e=J[b>>2]}J[a+4>>2]=0;J[a>>2]=e;J[a+8>>2]=J[685894];c=a+4|0;a:{b=J[b+4>>2];b:{c:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[d+12>>2]=0}J[699344]=0;aa(5153,c|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break a; +J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}b=Z()|0;zc(d+12|0)}wc(c);zc(a);ba(b|0);B()}b=J[a+4>>2];J[a+8>>2]=J[(b?b+12|0:2743576)>>2];fc=d+16|0;return a|0}function sT(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=fc-16|0;fc=e;g=(C(a),v(2));c=g&2147483647;a:{if(c>>>0<=1305022426){h=+a;f=h*.6366197723675814+6755399441055744+-6755399441055744;d=h+f*-1.5707963109016418+f*-1.5893254773528196E-8; +O[b>>3]=d;g=d<-.7853981852531433;if(R(f)<2147483648)c=~~f;else c=-2147483648;if(g){d=f+-1;O[b>>3]=h+d*-1.5707963109016418+d*-1.5893254773528196E-8;c=c-1|0;break a}if(!(d>.7853981852531433))break a;d=f+1;O[b>>3]=h+d*-1.5707963109016418+d*-1.5893254773528196E-8;c=c+1|0;break a}if(c>>>0>=2139095040){O[b>>3]=Q(a-a);c=0;break a}i=c;c=(c>>>23|0)-150|0;O[e+8>>3]=(x(2,i-(c<<23)|0),D());c=tT(e+8|0,e,c,1,0);d=O[e>>3];if((g|0)<0){O[b>>3]=-d;c=0-c|0;break a}O[b>>3]=d}fc=e+16|0;return c}function lMa(a){a=a|0; +var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+136>>2];a:{if(b>>>0>=M[a+140>>2]){b=-1;if(J[a+144>>2])break a;b=J[a+4>>2];c=kc[J[J[b>>2]+28>>2]](b)|0;if(!((c|0)!=128&(c|0)!=-1)){J[a+144>>2]=1;return-1}b:{if((c|0)<=127){d=c+1|0;b=0;if((c|0)<0)break b;if(c){h=d&-2;f=a+8|0;while(1){e=J[a+4>>2];i=b+f|0,j=kc[J[J[e>>2]+28>>2]](e)|0,H[i|0]=j;e=J[a+4>>2];i=(b|1)+f|0,j=kc[J[J[e>>2]+28>>2]](e)|0,H[i|0]=j;b=b+2|0;g=g+2|0;if((h|0)!=(g|0))continue;break}}if(c&1)break b;c=a+b|0;b=J[a+4>>2];i=c,j=kc[J[J[b>>2]+28>> +2]](b)|0,H[i+8|0]=j;break b}d=257-c|0;b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;if(c>>>0>256)break b;Ac(a+8|0,b,(d|0)<=1?1:d)}b=a+8|0;J[a+136>>2]=b;J[a+140>>2]=b+d}b=K[b|0]}return b|0}function hD(a,b,c,d,e,f,g,h,i){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;O[a+40>>3]=i;O[a+32>>3]=h;O[a+24>>3]=c;O[a+16>>3]=b;O[a+112>>3]=b;O[a+48>>3]=b;O[a+120>>3]=c;O[a+56>>3]=c;n=d-b;o=e-c;j=f-d;k=j*j;j=g-e;k=Y(n*n+o*o)+Y(k+j*j);j=h-f;m=j*j;j=i-g;j=(k+Y(m+j*j))*.25*O[a+8>> +3]+.5;a:{if(j<4294967296&j>=0){l=~~j>>>0;break a}l=0}l=(l|0)<=4?4:l;J[a>>2]=l;j=1/+(l|0);m=j*j;p=(e-g)*3-c+i;i=j*m;k=i*6;q=p*k;O[a+104>>3]=q;h=(d-f)*3-b+h;k=h*k;O[a+96>>3]=k;r=h*i;h=j*3;b=b-(d+d)+f;d=m*3;f=r+(n*h+b*d);O[a+128>>3]=f;O[a+64>>3]=f;c=c-(e+e)+g;d=p*i+(o*h+c*d);O[a+136>>3]=d;O[a+72>>3]=d;d=b;b=m*6;d=d*b+k;O[a+144>>3]=d;O[a+80>>3]=d;b=c*b+q;O[a+152>>3]=b;O[a+88>>3]=b;J[a+4>>2]=l}function fib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=fc-1536|0;fc=f;a:{b:{if(d&16){if(!c)break b; +d=0;Ac(e,0,c<<2);break a}d=kc[J[J[J[a+492>>2]+12>>2]>>2]](f+8|0,a,0,0,J[a+424>>2],J[a+532>>2],0,0,1751)|0;if(d)break a;H[f+76|0]=0;H[f+78|0]=1;J[f+1372>>2]=J[a+404>>2];J[f+1376>>2]=J[a+408>>2];J[f+1380>>2]=J[a+412>>2];J[f+1384>>2]=J[a+416>>2];J[f+1504>>2]=J[a+548>>2];J[f+1508>>2]=J[a+544>>2];d=0;if(!c)break a;a=0;while(1){h=(a<<2)+e|0;g=f+1528|0;c:{if(!Wx(f+8|0,a+b|0,g,f+1527|0)){d=J[J[J[f+12>>2]+128>>2]+52>>2];if(d)kc[J[J[d>>2]+4>>2]](J[d+4>>2],g);d=J[f+48>>2];d=(((d>>31)+d|0)+32768&-65536)>>16; +break c}d=0}J[h>>2]=d;a=a+1|0;if((c|0)!=(a|0))continue;break}}d=0}fc=f+1536|0;return d|0}function ZCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=a+12|0;a:{b:{if(M[b>>2]<=256){b=-1;e=J[c+8>>2];if(e&7)break a;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=e|4;return-1}b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;c:{if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;e=K[b|0];break c}e=td(c,1);if((e|0)==-1)break a}J[d>>2]=e&255;break b}b=-1;if(Wg(c,d))break a}b=-1;d=J[c+8>>2];if(d&7)break a;b=J[c+ +64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;return-1}b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;d:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break d}d=td(c,1);if((d|0)==-1)break a}a=a+16|0;H[a|0]=d;b=-1;if(Fba(c,d&1,a))break a;b=0-(J[c+8>>2]&1)|0}return b|0}function pcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=255-e|0;h=K[a+ +3|0];n=P(h,c);l=K[a|0];m=K[a+1|0];o=P(m,e);i=h^255;g=P(e,h);j=K[a+2|0];k=P(j,e)+P(b,h)|0;a:{if((g|0)>=(k|0)){b=P(b,i)+P(f,j)|0;break a}b=((P(b,i)+P(f,j)|0)+((P(k-g|0,e)>>>0)/(b>>>0)|0)|0)+255|0}j=P(d,h);k=P(e,l);H[a+2|0]=b>>>8;b=n+o|0;if((b|0)<=(g|0))b=P(f,m)+P(c,i)|0;else b=((P(c,i)+P(f,m)|0)+((P(b-g|0,e)>>>0)/(c>>>0)|0)|0)+255|0;H[a+1|0]=b>>>8;b=j+k|0;if((b|0)<=(g|0))b=P(f,l)+P(d,i)|0;else b=((P(d,i)+P(f,l)|0)+((P(b-g|0,e)>>>0)/(d>>>0)|0)|0)+255|0;H[a|0]=b>>>8;H[a+3|0]=e+h-(g+255>>>8)}}function osa(a, +b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=fc-16|0;fc=g;h=vc(80);J[699344]=0;c=ga(5699,h|0,c|0,d|0)|0;d=J[699344];J[699344]=0;a:{b:{c:{d:{if((d|0)!=1){J[a>>2]=0;vd(a,c);d=J[b>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break d;f=J[b>>2]}J[699344]=0;J[g+12>>2]=f;ca(5700,c|0,g+12|0,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;J[g+12>>2]=0;e:{if(!f)break e;J[699344]=0;a=J[f+4>>2]-1|0;J[f+4>>2]=a;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(a)break e; +J[699344]=0;$(5147,f|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=g+16|0;return}a=Z()|0;uc(h);ba(a|0);B()}f=Z()|0;break b}f=Z()|0;zc(g+12|0)}zc(a);ba(f|0);B()}ea(0)|0;Bc();B()}function nJa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(!c)break a;Nc(d,2,2356525,0);if(!VY(J[a>>2],b,c,d,e)){Nc(d,1,2350217,0);return 0}f=1;if(J[J[a>>2]+60>>2])break a;f=0;e=a+108|0;if(!OY(c,e,d))break a;b=1;b:{c:switch(J[a+48>>2]-12|0){case 5:b=2;break b;case 6:b=3;break b;case 12:b=4;break b;case 0:b=5;break b; +case 4:break b;default:break c}b=-1}J[c+20>>2]=b;b=J[a+120>>2];d:{if(!b)break d;if(!J[b+12>>2]){uc(J[b+4>>2]);uc(J[J[a+120>>2]+8>>2]);uc(J[J[a+120>>2]>>2]);b=J[a+120>>2];f=J[b+12>>2];if(f){uc(f);b=J[a+120>>2]}uc(b);J[a+120>>2]=0;break d}if(!NY(c,e,d))break a}if(J[a+116>>2])MY(c,e,d);f=1;b=J[e>>2];if(!b)break a;J[c+28>>2]=b;J[c+32>>2]=J[a+112>>2];J[a+108>>2]=0}return f|0}function i3a(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(J[a>>2]>0)break a;b:{c:{if(J[693290]==2)break c;if(!$C(2773160))break c;d=fc-16| +0;fc=d;yu(17,3062);J[699344]=0;b=_(3064,56)|0;c=J[699344];J[699344]=0;if((c|0)==1){ea(0)|0;Bc();B()}d:{e:{if(b){J[699344]=0;H[b+8|0]=0;J[b+4>>2]=40;J[b>>2]=b+9;c=J[699344];J[699344]=0;if((c|0)==1)break e;J[b+52>>2]=0;H[J[b>>2]]=0;J[693295]=b;c=Xi(736993);if(J[a>>2]>0)break d;J[b+52>>2]=0;H[J[b>>2]]=0;e=b;b=hj(d+8|0,c?c:732680);xu(e,J[b>>2],J[b+4>>2],a);break d}J[693295]=0;J[a>>2]=7;break d}a=Z()|0;zL(b);ba(a|0);B()}fc=d+16|0;J[693291]=J[a>>2];J[693290]=2;break b}b=J[693291];if((b|0)<=0)break b;J[a>> +2]=b;break a}if(J[a>>2]>0)break a;return J[J[693295]>>2]}return 732680}function _N(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!b)break a;b:{c:{d:{if(a){d=K[a|0];if(d)break d;break b}a=J[b>>2];if(!a)break a;break c}while(1){if(!eg(226040,d<<24>>24))break c;c=c+1|0;d=K[c+a|0];if(d)continue;break}c=0;break b}d=c;g=a+c|0;f=K[g|0];e:{if(!f)break e;while(1){if(eg(226040,f<<24>>24))break e;d=d+1|0;f=K[d+a|0];if(f)continue;break}}e=d-c|0;f=kd(e+1|0,1);f:{if(!f|(e|0)<=0)break f;c=0;while(1){h=K[c+g|0];if(h){H[c+ +f|0]=h;c=c+1|0;if((e|0)!=(c|0))continue;break f}break}if((c|0)>=(e|0))break f;Ac(c+f|0,0,e-c|0)}c=0;e=a+d|0;g=H[e|0];if(!g)break b;if(!eg(226040,g)){c=e;break b}while(1){d=d+1|0;e=d+a|0;g=H[e|0];if(!g)break b;if(eg(226040,g))continue;break}c=e}J[b>>2]=c}return f}function UW(a,b,c){var d=0,e=0,f=0;d=fc-32|0;fc=d;J[d+16>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;f=Yc(b);a:{if(!c){MA(a,b,0);break a}if(!K[c|0]){MA(a,b,c);break a}c=NA(a,c,Yc(c),0,d);if(a){J[a+744>>2]=34;H[d+28|0]=122;H[d+29| +0]=84;H[d+30|0]=88;H[d+31|0]=116;e=(c+f|0)+2|0;H[d+27|0]=e;H[d+26|0]=e>>>8;H[d+25|0]=e>>>16;H[d+24|0]=e>>>24;hf(a,d+24|0,8);J[a+348>>2]=2052348020;Km(a);Ae(a,d+28|0,4);J[a+744>>2]=66;b:{if(!b)break b;e=f+1|0;if(!e)break b;hf(a,b,e);Ae(a,b,e)}H[d+23|0]=0;b=d+23|0;hf(a,b,1);Ae(a,b,1);hw(a,d,c);J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+24|0]=b;H[d+25|0]=b>>>8;H[d+26|0]=b>>>16;H[d+27|0]=b>>>24;hf(a,d+24|0,4);break a}hw(0,d,c)}fc=d+32|0}function TV(a,b,c){var d=0,e=0, +f=0;f=fc-16|0;fc=f;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b:{c:{d=J[b>>2];if((d|0)<(c|0))while(1){J[699344]=0;e=f+8|0;da(5602,e|0,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;J[699344]=0;aa(5340,a|0,e|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;wc(e);d=J[b>>2]+1|0;J[b>>2]=d;if((c|0)>(d|0))continue;break}d:{e:{if((c|0)<(d|0))while(1){e=d-1|0;J[b>>2]=e;J[699344]=0;d=f+8|0;da(5600,d|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1)break e;J[699344]=0;aa(5340,a|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)== +1)break d;wc(d);d=J[b>>2];if((d|0)>(c|0))continue;break}fc=f+16|0;return}d=Z()|0;break a}d=Z()|0;wc(f+8|0);break a}d=Z()|0;break a}d=Z()|0;wc(f+8|0)}wc(a);ba(d|0);B()}function LXa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-48|0;fc=d;a=$B(a,b,c);J[a>>2]=837748;J[d+32>>2]=13;J[d+16>>2]=13;J[699344]=0;J[d>>2]=13;e=c;c=d+16|0;aa(3488,e|0,c|0)|0;e=J[699344];J[699344]=0;a:{if((e|0)==1)break a;b=J[b+24>>2];J[699344]=0;ha(3372,c|0,b|0,d|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370, +c|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;b=ha(3368,J[d+8>>2],812930,d+32|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(J[b>>2]==7)J[a+8>>2]=J[a+8>>2]|512;J[699344]=0;$(3370,d+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;fc=d+48|0;return a|0}b=Z()|0;Tm(a);ba(b|0);B()}function yT(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;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2463820;h=a+ +4|0;a:{e=J[a+4>>2];b:{if(J[a+12>>2]-e>>2>>>0>=d>>>0)break b;if(d>>>0>=1073741824){J[699344]=0;$(1587,h|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;B()}f=J[a+8>>2];J[699344]=0;i=d<<2;j=_(4,i|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;k=(f-e|0)+j|0;g=k;if((e|0)!=(f|0))while(1){g=g-4|0;f=f-4|0;J[g>>2]=J[f>>2];if((e|0)!=(f|0))continue;break}J[a+12>>2]=j+i;J[a+8>>2]=k;J[a+4>>2]=g;if(!e)break b;uc(e)}e=J[a+8>>2];b=J[b+4>>2];J[699344]=0;b=b+(c<<2)|0;ha(6709,h|0,e|0,b|0,b+(d<<2)|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break a;return}b=Z()|0;qi(a);ba(b|0);B()}function jxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=fc-32|0;fc=e;a:{b:{if(J[a+92>>2]>0)while(1){if(!(J[a+116>>2]<=(d|0)&J[a+120>>2]>=(d|0))){a=Qc(e+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=J[a+104>>2];g=J[a+108>>2];c=vc(12);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=J[f+(d-g<<2)>>2];vf(b,c);if(!(J[a+140>>2]<=(d|0)&J[a+144>>2]>=(d|0))){a=Qc(e+8|0,2404388,2405416,632,2424656, +0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=J[a+128>>2];g=J[a+132>>2];c=vc(12);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=J[f+(d-g<<2)>>2];vf(b,c);d=d+1|0;if((d|0)>2])continue;break}fc=e+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function aSa(a){a=a|0;var b=0,c=0,d=0,e=0;b=vc(96);c=J[a+12>>2];d=J[a+16>>2];e=J[J[d>>2]+8>>2];J[699344]=0;d=_(e|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[b+16>>2]=d;J[b+12>>2]=c;J[b>>2]=2217936;J[b+4>>2]=15;J[b+8>>2]=0;c=J[a+92>>2]; +J[b+88>>2]=J[a+88>>2];J[b+92>>2]=c;c=J[a+28>>2];J[b+24>>2]=J[a+24>>2];J[b+28>>2]=c;c=J[a+36>>2];J[b+32>>2]=J[a+32>>2];J[b+36>>2]=c;c=J[a+44>>2];J[b+40>>2]=J[a+40>>2];J[b+44>>2]=c;c=J[a+52>>2];J[b+48>>2]=J[a+48>>2];J[b+52>>2]=c;c=J[a+60>>2];J[b+56>>2]=J[a+56>>2];J[b+60>>2]=c;d=a- -64|0;e=J[d+4>>2];c=b- -64|0;J[c>>2]=J[d>>2];J[c+4>>2]=e;c=J[a+76>>2];J[b+72>>2]=J[a+72>>2];J[b+76>>2]=c;c=J[a+84>>2];J[b+80>>2]=J[a+80>>2];J[b+84>>2]=c;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function Ks(a,b,c,d,e,f,g,h){var i= +0,j=0,k=0,l=0;j=fc-16|0;fc=j;if((b^-1)+1073741807>>>0>=c>>>0){if(K[a+11|0]>>>7|0)i=J[a>>2];else i=a;k=i;i=j+4|0;l=i;if(b>>>0<536870887){J[j+12>>2]=b<<1;J[j+4>>2]=b+c;c=fc-16|0;fc=c;fc=c+16|0;c=j+12|0;c=J[(M[i>>2]>2]?c:i)>>2];if(c>>>0>=2){i=c+4&-4;c=i-1|0;c=(c|0)==2?i:c}else c=1;c=c+1|0}else c=1073741807;to(l,a,c);c=J[j+4>>2];if(e)Ik(c,k,e);if(g)Ik(c+(e<<2)|0,h,g);i=e+f|0;h=d-i|0;if((d|0)!=(i|0)){d=e<<2;Ik((d+c|0)+(g<<2)|0,(d+k|0)+(f<<2)|0,h)}b=b+1|0;if((b|0)!=2)uv(k,b);J[a>>2]=c;J[a+8>>2]=J[a+ +8>>2]&-2147483648|J[j+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;b=a;a=h+(e+g|0)|0;J[b+4>>2]=a;J[j+12>>2]=0;J[c+(a<<2)>>2]=J[j+12>>2];fc=j+16|0;return}_d(a);B()}function p2(a,b,c,d,e){var f=0;e=b?P(K[a|0],30)+e|0:e+1740|0;if((d|0)>=11){f=d-11|0;d=(d-b|0)-2|0;e=K[((d|0)<0?f:d)+c|0]+e|0;d=10;b=(b|0)>=10?10:b}a:switch(b-1|0){case 9:e=K[a+9|0]+e|0;case 8:e=K[a+8|0]+e|0;case 7:e=K[a+7|0]+e|0;case 6:e=K[a+6|0]+e|0;case 5:e=K[a+5|0]+e|0;case 4:e=K[a+4|0]+e|0;case 3:e=K[a+3|0]+e|0;case 2:e=K[a+2|0]+ +e|0;case 1:e=K[a+1|0]+e|0;case 0:e=K[a|0]+e|0;break;default:break a}a=d-b|0;b=(a|0)>0;e=b?e+58|0:e;b:switch(a+(b^-1)|0){case 9:e=K[c+9|0]+e|0;case 8:e=K[c+8|0]+e|0;case 7:e=K[c+7|0]+e|0;case 6:e=K[c+6|0]+e|0;case 5:e=K[c+5|0]+e|0;case 4:e=K[c+4|0]+e|0;case 3:e=K[c+3|0]+e|0;case 2:e=K[c+2|0]+e|0;case 1:e=K[c+1|0]+e|0;case 0:e=K[c|0]+e|0;break;default:break b}return e}function m3(a,b){var c=0,d=Q(0),e=0,f=0,g=Q(0);a:{if(J[b>>2]<=0){c=ji(52);if(!c){J[b>>2]=7;return 0}b:{if(J[b>>2]<=0){H[c+49|0]=0;J[c+ +16>>2]=0;J[c+20>>2]=0;J[c+12>>2]=0;J[c+8>>2]=3041;J[c+4>>2]=3040;H[c+48|0]=a;J[c+40>>2]=1056964608;J[c+44>>2]=0;f=J[(a<<2)+736848>>2];J[c+28>>2]=f;e=P(f,12);a=ji(e);J[c>>2]=a;if(a)break b;J[b>>2]=7}H[c+49|0]=1;break a}e=a+e|0;while(1){J[a+8>>2]=0;J[a>>2]=-2147483647;J[a+4>>2]=0;a=a+12|0;if(e>>>0>a>>>0)continue;break}J[c+24>>2]=0;d=Q(f|0);g=Q(d*Q(0));c:{if(Q(R(g))>2]=a;d=Q(d*Q(.5));d:{if(Q(R(d))>2]= +a;a=J[b>>2];H[c+49|0]=1;if((a|0)>0)break a}return c}Nf(c);return 0}function Sv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:{d=J[a+4>>2];h=J[a>>2];f=d-h>>3;c=f+1|0;if(c>>>0<536870912){g=J[a+8>>2]-h|0;e=g>>2;c=g>>>0>=2147483640?536870911:c>>>0>>0?e:c;if(c>>>0>=536870912)break a;e=f<<3;f=c<<3;g=vc(f);c=e+g|0;J[c>>2]=J[b>>2];J[c+4>>2]=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;e=c+8|0;if((d|0)!=(h|0))while(1){c=c-8|0;d=d-8|0;J[c>>2]=J[d>>2];J[c+4>>2]=J[d+4>>2];J[d>>2]=0;J[d+4>>2]=0;if((d|0)!=(h|0))continue; +break}J[a+8>>2]=f+g;b=J[a>>2];J[a>>2]=c;d=J[a+4>>2];J[a+4>>2]=e;if((b|0)!=(d|0))while(1){d=d-8|0;a=J[d+4>>2];b:{if(!a)break b;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break b;kc[J[J[a>>2]+8>>2]](a);Gc(a)}if((b|0)!=(d|0))continue;break}if(b)uc(b);return}eh(a);B()}Pd();B()}function IM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+4>>2];a:{if(b>>>0>=2){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=15;kc[J[J[a>>2]>>2]](a);break a}if((b|0)!=1)break a;c=J[d+68>>2];if(c)while(1){if(J[c+40>>2]){J[c+40>>2]=0;kc[J[c+56>>2]](a,c+48|0)}c= +J[c+44>>2];if(c)continue;break}J[d+68>>2]=0;c=J[d+72>>2];if(c)while(1){if(J[c+40>>2]){J[c+40>>2]=0;kc[J[c+56>>2]](a,c+48|0)}c=J[c+44>>2];if(c)continue;break}J[d+72>>2]=0}b=(b<<2)+d|0;c=J[b+60>>2];J[b+60>>2]=0;if(c)while(1){a=J[c>>2];e=J[c+4>>2]+J[c+8>>2]|0;uc(c);J[d+76>>2]=J[d+76>>2]-(e+16|0);c=a;if(c)continue;break}c=J[b+52>>2];J[b+52>>2]=0;if(c)while(1){a=J[c>>2];b=(J[c+4>>2]+J[c+8>>2]|0)+16|0;uc(c);J[d+76>>2]=J[d+76>>2]-b;c=a;if(c)continue;break}}function Aya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c| +0)<=0)break a;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;d=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=d;d=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+28>>2]=d;J[a+32>>2]=J[b+32>>2];Eo(a+36|0,b+36|0);J[a+52>>2]=J[b+52>>2];d=c;c=d-1|0;b=b+56|0;a=a+56|0;if(d)continue;break a}while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;d=J[b+20>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=d;d=J[b+28>>2];J[a+24>>2]=J[b+ +24>>2];J[a+28>>2]=d;J[a+32>>2]=J[b+32>>2];d=b+36|0;Eo(a+36|0,d);J[a+52>>2]=J[b+52>>2];id(d);d=c;c=d-1|0;b=b+56|0;a=a+56|0;if(d)continue;break}}}function xr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;b=fc-32|0;fc=b;e=b+16|0;d=K[c+11|0];f=d<<24>>24<0;_m(e,f?J[c>>2]:c,f?J[c+4>>2]:d,0);d=K[b+27|0];c=d<<24>>24<0;a:{b:{if(!(!(c?J[b+20>>2]:d)|K[(c?J[b+16>>2]:e)|0]!=47)){J[699344]=0;c=e;e=b+31|0;c=na(3233,b+4|0,c|0,1,-1,e|0)|0;d=J[699344];J[699344]=0;c:{if((d|0)!=1){J[699344]=0;H[b+31|0]=1;ca(4907,a|0,c|0, +e|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;if(H[c+11|0]>=0)break a;uc(J[c>>2]);break a}a=Z()|0;break b}a=Z()|0;if(H[c+11|0]>=0)break b;uc(J[c>>2]);break b}J[699344]=0;H[b+4|0]=1;ca(4907,a|0,b+16|0,b+4|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;a=Z()|0}if(H[b+27|0]<0)uc(J[b+16>>2]);ba(a|0);B()}if(H[b+27|0]<0)uc(J[b+16>>2]);fc=b+32|0}function thb(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;c=fc-32|0;fc=c;f=J[b+96>>2];a:{if((f|0)<0|J[a+300>>2]<=(f|0))break a;g=J[a+304>>2];if((kc[J[b+ +52>>2]](b,6,c,3)|0)<6)break a;e=J[c+12>>2];if(!e)break a;h=P(f,252)+g|0;i=h+216|0;d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){j=a,k=Cd(1E3,d),I[j+68>>1]=k;j=c,k=Cd(J[c>>2],d),J[j>>2]=k;j=c,k=Cd(J[c+4>>2],d),J[j+4>>2]=k;j=c,k=Cd(J[c+8>>2],d),J[j+8>>2]=k;j=c,k=Cd(J[c+16>>2],d),J[j+16>>2]=k;j=c,k=Cd(J[c+20>>2],d),J[j+20>>2]=k;e=J[c+12>>2]<0?-65536:65536;J[c+12>>2]=e}J[i>>2]=J[c>>2];a=P(f,252)+g|0;J[a+224>>2]=J[c+4>>2];d=J[c+8>>2];J[a+228>>2]=e;J[a+220>>2]=d;if(!eE(i)){J[b+12>>2]=3;break a}J[h+232>>2]=I[c+18>> +1];J[a+236>>2]=I[c+22>>1]}fc=c+32|0}function spb(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;f=fc-16|0;fc=f;c=J[a>>2];a:{if(K[c+8|0]&2){if(!(kc[J[J[c+540>>2]+104>>2]](c,b,f+12|0)|0)){t8(a,J[f+12>>2]);break a}J[a+44>>2]=-1;c=J[a>>2]}ms(c,b);c=J[a>>2];b=J[J[c+712>>2]+3080>>2];c=wh(J[J[c+96>>2]+4>>2],241714);if(!c|!b)break a;b=J[b>>2];if(!b)break a;g=kc[b|0](c)|0;if(!g)break a;h=J[J[a>>2]+712>>2];c=J[h+1440>>2];i=J[J[a+40>>2]>>2];kc[J[g+4>>2]](J[i>>2],J[a+16>>2],J[a+20>>2],0,0);e=J[h+2024>> +2];if(!e)break a;while(1){b=J[a+16>>2];e=e-1|0;j=e<<2;d=J[J[(j+h|0)+2028>>2]+68>>2];b:{if((d|0)!=(c|0)){b=Od(b,c,d);d=Od(J[a+20>>2],c,d);break b}d=J[a+20>>2]}kc[J[g+4>>2]](J[(i+j|0)+4>>2],b,d,0,0);if(e)continue;break}}fc=f+16|0;return 0}function WD(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,p=0;k=e>>8;if((d|0)==(f|0)){Gq(a,k,b);return}p=e&255;g=c&255;l=c>>8;if((l|0)!=(k|0)){h=f-d|0;m=1;c=e-c|0;a:{if((c|0)>0){n=256;e=256-g|0;break a}c=0-c|0;m=-1;e=g}i=P(e,h);e=(i|0)/(c|0)|0;j=i-P(c,e)|0; +o=j>>31;i=e+o|0;J[a+184>>2]=i+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+P(i,g|n);e=l+m|0;Gq(a,e,b);d=d+i|0;if((e|0)!=(k|0)){h=h<<8;g=(h|0)/(c|0)|0;h=h-P(c,g)|0;i=h>>31;l=(i&c)+h|0;i=g+i|0;g=j+(c&o)|0;while(1){g=g+l|0;j=(g|0)>=(c|0);h=j+i|0;J[a+184>>2]=h+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+(h<<8);e=e+m|0;Gq(a,e,b);g=g-(j?c:0)|0;d=d+h|0;if((e|0)!=(k|0))continue;break}}g=256-n|0}b=f-d|0;J[a+184>>2]=b+J[a+184>>2];J[a+180>>2]=J[a+180>>2]+P(b,g+p|0)}function Kw(a){var b=0,c=0,d=0,e=0;a:{b:{if(!J[a+12>>2]){c= +J[a+8>>2];b=J[J[c>>2]+48>>2];J[699344]=0;$(b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}while(1){b=J[a+28>>2];if(!J[b+668>>2])break a;J[699344]=0;d=_(3568,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+28>>2]=d;c=J[a+8>>2];b=J[J[c>>2]+68>>2];J[699344]=0;da(b|0,c|0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}}ea(0)|0;Bc();B()}uc(Br(b));c=J[a+20>>2];if(c)while(1){b=J[c+104>>2];uc(HJ(c));J[a+20>>2]=b;c=b;if(b)continue;break}e=J[a+104>>2];c=J[e+8>>2];if((c|0)>0){d=0;while(1){b= +J[J[e>>2]+(d<<2)>>2];if(b){uc(b);c=J[e+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}}uc(ld(e));b=J[a+112>>2];if(b)uc(ld(b));return a}function Ix(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=351884;J[699344]=0;c=J[693078];b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;if(c){J[699344]=0;c=J[693078];b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[J[c>>2]+32>>2];J[699344]=0;$(b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}c=J[a+8>>2];d=a+12|0;if((c|0)!=(d|0))while(1){e=J[c+28>>2];if(e){b=J[J[e>>2]+12>>2]; +J[699344]=0;_(b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break b}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}b=a+8|0;Hx(b,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0;Hx(b,0);return a|0}ea(0)|0;Bc();B()}function Hfa(a){a=a|0;var b=0,c=0,d=0,e=0;a:{c=J[a+584>>2];if(c){J[a+672>>2]=J[c+160>>2];J[a+668>>2]=J[c+164>>2];b=J[c+252>>2];if(b)uc(b);b=J[c+256>>2];if(b)uc(b);b=J[c+260>>2];if(b)uc(b); +b=J[c+264>>2];if(b)uc(b);b=J[c+268>>2];if(b)uc(b);b=J[c+272>>2];if(b)uc(b);b=J[c+276>>2];if(b)uc(b);b=J[c+280>>2];if(b)uc(b);b=J[c+284>>2];if(b)uc(b);b=J[c+288>>2];if(b)uc(b);b=J[c+292>>2];if(b)uc(b);b=J[c+296>>2];if(b)uc(b);if(K[c+400|0]){d=J[a+584>>2];if(!K[d+400|0])break a;b=d+536|0;e=J[b+4>>2];if(e)kc[J[e+40>>2]](b);J[b+20>>2]=0;J[b+4>>2]=0;H[d+400|0]=0}b=J[c+1084>>2];if(b)uc(b);b=J[c+1104>>2];if(b)uc(b);b=J[c+5256>>2];if(b)uc(b);uc(c);J[a+584>>2]=0;sr(a)}return}fa(89868,70472,1196,97162);B()} +function sna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=vc(68);J[c+16>>2]=0;J[c+20>>2]=0;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+44>>2]=0;J[c+36>>2]=0;J[c+40>>2]=0;I[c+22>>1]=65535;H[c+31|0]=0;H[c+32|0]=0;H[c+33|0]=0;H[c+34|0]=0;J[699344]=0;e=c+8|0;aa(6621,e|0,b|0)|0;d=J[699344];J[699344]=0;a:{if((d|0)!=1){I[c+48>>1]=L[b+40>>1];d=c+52|0;if(H[b+55|0]>=0){e=J[b+48>>2];J[d>>2]=J[b+44>>2];J[d+4>>2]=e;J[d+8>>2]=J[b+52>>2];break a}f=J[b+48>>2];g=J[b+44>>2];J[699344]= +0;ca(15,d|0,g|0,f|0);d=J[699344];J[699344]=0;if((d|0)!=1)break a}a=Z()|0;Tv(e);uc(c);ba(a|0);B()}b=L[b+56>>1];J[c+4>>2]=a;I[c- -64>>1]=b;b=J[a>>2];J[c>>2]=b;J[b+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1}function nra(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;h=fc-16|0;fc=h;a:{if(!a|!d|((b|0)>(c|0)|(e|0)>(f|0)))break a;while(1){i=(b<<3)+a|0;g=J[(e<<3)+d>>2];b:{if(g){kc[J[J[g>>2]+28>>2]](h+12|0,g,1);break b}J[h+12>>2]=0}J[699344]=0;aa(5153,i|0,h+12|0)|0;g=J[699344];J[699344]= +0;c:{if((g|0)!=1){g=J[h+12>>2];J[h+12>>2]=0;if(!g)break c;J[699344]=0;j=J[g+4>>2]-1|0;J[g+4>>2]=j;k=J[699344];J[699344]=0;if((k|0)!=1){if(j)break c;J[699344]=0;$(5147,g|0);g=J[699344];J[699344]=0;if((g|0)!=1)break c}ea(0)|0;Bc();B()}a=Z()|0;zc(h+12|0);ba(a|0);B()}g=J[i>>2];J[i+4>>2]=J[(g?g+12|0:2743576)>>2];if((b|0)>=(c|0))break a;b=b+1|0;g=(e|0)<(f|0);e=e+1|0;if(g)continue;break}}fc=h+16|0}function vdb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-48|0;fc=c;a:{if(H[b+11|0]>=0){J[c+40>>2]=J[b+8>>2];d=J[b+ +4>>2];J[c+32>>2]=J[b>>2];J[c+36>>2]=d;break a}Ve(c+32|0,J[b>>2],J[b+4>>2])}J[c+20>>2]=92;J[c+24>>2]=0;H[c+31|0]=1;J[699344]=0;J[c+8>>2]=47;J[c+12>>2]=0;H[c+19|0]=1;ca(2275,c+32|0,c+20|0,c+8|0);b=J[699344];J[699344]=0;b:{c:{if((b|0)!=1){if(H[c+19|0]<0)uc(J[c+8>>2]);if(H[c+31|0]<0)uc(J[c+20>>2]);b=0;J[699344]=0;d=mj(a+8|0,c+32|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;b=(a+12|0)!=(d|0)?J[d+28>>2]:b;if(H[c+43|0]<0)uc(J[c+32>>2]);fc=c+48|0;return b|0}b=Z()|0;if(H[c+19|0]<0)uc(J[c+8>>2]);if(H[c+31| +0]>=0)break b;uc(J[c+20>>2]);break b}b=Z()|0}if(H[c+43|0]<0)uc(J[c+32>>2]);ba(b|0);B()}function tQ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=fc-16|0;fc=e;J[e+12>>2]=d;if(K[b+11|0]>>>7|0)d=J[b+4>>2];else d=K[b+11|0]&127;if(d>>>0>>0){bC(a);B()}if(K[b+11|0]>>>7|0)b=J[b>>2];J[e+4>>2]=d-c;g=b+c|0;b=fc-16|0;fc=b;fc=b+16|0;d=fc-16|0;fc=d;a:{b=e+4|0;c=e+12|0;c=J[(M[b>>2]>2]?b:c)>>2];if(c>>>0<=2147483631){b:{if(c>>>0<11){H[a+11|0]=c|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;b=a;break b}h= +d+8|0;if(c>>>0>=11){f=c+16&-16;b=f-1|0;b=(b|0)==11?f:b}else b=10;Vs(h,b+1|0);b=J[d+8>>2];J[a>>2]=b;J[a+8>>2]=J[a+8>>2]&-2147483648|J[d+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}hk(b,g,c);H[d+7|0]=0;H[b+c|0]=K[d+7|0];fc=d+16|0;break a}_d(a);B()}fc=e+16|0;return a|0}function si(){var a=0,b=0,c=0,d=0;a:{b:{a=J[693747];if(!a){a=vc(92);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2418360;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[699344]=0;c=aa(5250,a+8|0,2418560)|0;b=J[699344]; +J[699344]=0;c:{if((b|0)!=1){J[a+36>>2]=0;J[a+40>>2]=0;J[a+60>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[699344]=0;d=aa(5250,a+36|0,2418560)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+64>>2]=0;J[a+68>>2]=0;J[a+88>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[699344]=0;aa(5250,a- -64|0,2418580)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;Md(d);Md(c);break a}b=Z()|0;break a}J[693747]=a}return a|0}b=Z()|0;Md(c)}uc(a);ba(b|0);B()}function hBb(a,b,c){a=a| +0;b=b|0;c=c|0;var d=0,e=0;J[a>>2]=212624;d=a+4|0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=415588;e=J[J[a>>2]+12>>2];J[699344]=0;$(e|0,a|0);e=J[699344];J[699344]=0;a:{if((e|0)==1)break a;b:{c:{if((c|0)>0){J[699344]=0;b=ga(3,d|0,b|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(!b)break c;break b}J[699344]=0;b=aa(17,d|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b}J[699344]=0;$(21,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a|0}J[699344]=0;b=J[d+4>>2];c=J[699344]; +J[699344]=0;if((c|0)==1)break a;J[a+20>>2]=b;J[699344]=0;b=J[d+12>>2];c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+32>>2]=b;return a|0}a=Z()|0;De(d);ba(a|0);B()}function e5a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=J[a+448>>2];if(J[b+16>>2]){k=b;a:{b:{if(!J[a+160>>2]|(!J[a+80>>2]|!J[a+224>>2]))break b;c=J[b+112>>2];if(!c){c=kc[J[J[a+4>>2]>>2]](a,1,P(J[a+36>>2],24))|0;J[b+112>>2]=c}if(J[a+36>>2]<=0)break b;d=J[a+216>>2];while(1){b=J[d+80>>2];if(!b|!L[b>>1]|(!L[b+2>>1]|!L[b+16>>1]))break b; +if(!L[b+4>>1]|(!L[b+32>>1]|!L[b+18>>1]))break b;b=J[a+160>>2]+(e<<8)|0;if(J[b>>2]<0)break b;f=J[b+4>>2];J[c+4>>2]=f;g=J[b+8>>2];J[c+8>>2]=g;h=J[b+12>>2];J[c+12>>2]=h;i=J[b+16>>2];J[c+16>>2]=i;b=J[b+20>>2];J[c+20>>2]=b;j=b|i|(f|g|h)?1:j;d=d+88|0;c=c+24|0;e=e+1|0;if((e|0)>2])continue;break}b=402;if(j)break a}b=398}J[k+12>>2]=b}J[a+156>>2]=0}function bYa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=fc-48|0;fc=b;a:{if(!a|J[a>>2]!=7)break a;J[b+32>>2]=13;d=b+32|0;if(J[Ec(J[a+8>>2],776806,d,0)>>2]==3){c= +vc(12);J[699344]=0;e=aa(3354,c|0,J[b+40>>2])|0;f=J[699344];J[699344]=0;if((f|0)!=1){yc(d);J[b+16>>2]=13;J[b>>2]=13;Ec(J[a+8>>2],777471,b+16|0,0);b:{if(J[b+16>>2]!=7)break b;a=0;while(1){if(J[Ec(J[b+24>>2],776806,b+32|0,0)>>2]==3){if(J[e+4>>2])SZ(e);NI(e,J[b+40>>2])}yc(b+32|0);Ec(J[b+24>>2],777471,b,0);yc(b+16|0);c=J[b+12>>2];J[b+24>>2]=J[b+8>>2];J[b+28>>2]=c;d=J[b+4>>2];c=J[b>>2];J[b+16>>2]=c;J[b+20>>2]=d;if((c|0)!=7)break b;c=a>>>0<49;a=a+1|0;if(c)continue;break}}yc(b+16|0);break a}a=Z()|0;uc(c); +ba(a|0);B()}yc(b+32|0)}fc=b+48|0;return e|0}function EZ(a){var b=0,c=0;Bd(a,J[a+468>>2]);J[a+468>>2]=0;b=J[a+472>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){Bd(a,J[J[a+472>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue;break}b=J[a+472>>2]}Bd(a,b);J[a+472>>2]=0}Bd(a,J[a+476>>2]);J[a+476>>2]=0;Bd(a,J[a+480>>2]);J[a+480>>2]=0;b=J[a+484>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){Bd(a,J[J[a+484>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue; +break}b=J[a+484>>2]}Bd(a,b);J[a+484>>2]=0}b=J[a+488>>2];if(b){c=J[a+456>>2];if((c|0)!=-23){b=1<<8-c;c=(b|0)<=1?1:b;b=0;while(1){Bd(a,J[J[a+488>>2]+(b<<2)>>2]);b=b+1|0;if((c|0)!=(b|0))continue;break}b=J[a+488>>2]}Bd(a,b);J[a+488>>2]=0}}function zkb(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;d=fc-48|0;fc=d;c=J[a>>2];e=J[c+20>>2];a:{b:{c:{if(!((e|0)<=0|(e|0)>J[c+116>>2])){a=J[c+112>>2]+(e<<2)|0;break c}f=J[c+120>>2];if(!f)break b;a=J[c+124>>2];if((a|0)>(e|0)|(e|0)>J[c+128>>2])break b;a= +f+(e-a<<2)|0}f=J[a>>2];if(f)break a}J[c+24>>2]=e;f=J[J[c+112>>2]>>2]}a=f;d:{e:{while(1){e=K[a|0];if(!e)break e;a=a+1|0;if((e|0)!=37)continue;break}if(K[a|0]!=115)break e;J[d+32>>2]=c+24;cg(b,f,d+32|0);break d}g=J[c+32>>2];h=J[c+36>>2];i=J[c+40>>2];j=J[c+44>>2];k=J[c+24>>2];e=J[c+28>>2];a=J[c+52>>2];J[d+24>>2]=J[c+48>>2];J[d+28>>2]=a;J[d+16>>2]=i;J[d+20>>2]=j;J[d+8>>2]=g;J[d+12>>2]=h;J[d>>2]=k;J[d+4>>2]=e;cg(b,f,d)}fc=d+48|0}function iFa(a){a=a|0;var b=0,c=0;c=fc-32|0;fc=c;a:{b=J[a+16>>2];if((b|0)> +0){if((b|0)>=J[a+20>>2]){a=Qc(c+8|0,2390963,2385875,963,2396303,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}b=b+J[a+36>>2]|0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;H[b+24|0]=0;H[b+25|0]=0;H[b+26|0]=0;H[b+27|0]=0;H[b+28|0]=0;H[b+29|0]=0;H[b+30|0]=0;H[b+31|0]=0;H[b+16|0]=0;H[b+17|0]=0;H[b+18|0]=0;H[b+19|0]=0;H[b+20|0]=0;H[b+21|0]=0;H[b+22|0]=0;H[b+23|0]=0;H[b+8|0]=0;H[b+9|0]=0;H[b+10|0]=0;H[b+11|0]=0; +H[b+12|0]=0;H[b+13|0]=0;H[b+14|0]=0;H[b+15|0]=0;J[a+24>>2]=J[a+16>>2]+1;AX(a)}J[a+24>>2]=0;J[a+16>>2]=0;fc=c+32|0;return}B()}function fHa(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;f=fc-16|0;fc=f;i=b+4|0;g=i;h=g;a:{e=J[b+4>>2];b:{c:{if(!e)break c;while(1){h=e;j=e+16|0;if(Hn(c,j)){g=e;e=J[e>>2];if(e)continue;break c}if(Hn(j,c)){g=h+4|0;e=J[h+4>>2];if(e)continue;break c}break}c=J[g>>2];e=0;if(c)break b}e=vc(32);H[f+12|0]=0;J[f+8>>2]=i;J[f+4>>2]=e;J[699344]=0;Im(e+16|0,d);c=J[699344]; +J[699344]=0;if((c|0)==1)break a;c=J[d+12>>2];J[e+8>>2]=h;J[e>>2]=0;J[e+4>>2]=0;J[e+28>>2]=c;J[g>>2]=e;c=J[J[b>>2]>>2];if(c){J[b>>2]=c;e=J[g>>2]}Oc(J[b+4>>2],e);J[b+8>>2]=J[b+8>>2]+1;c=J[f+4>>2];e=1}H[a+4|0]=e;J[a>>2]=c;fc=f+16|0;return}b=Z()|0;a=J[f+4>>2];J[f+4>>2]=0;if(a){if(K[f+12|0])Rc(a+16|0);uc(a)}ba(b|0);B()}function JP(){var a=0,b=0;a=fc-16|0;fc=a;J[a+12>>2]=734;J[a+8>>2]=735;J[a+4>>2]=736;b=a+4|0;rn(0,197920,197920,199277,b);J[a+12>>2]=737;J[a+8>>2]=738;J[a+4>>2]=739;rn(1,199999,199999,200998, +b);rn(1,199999,201321,200998,b);rn(1,199999,202106,200998,b);J[a+12>>2]=740;J[a+8>>2]=741;J[a+4>>2]=742;rn(2,202586,202586,203492,b);J[a+12>>2]=743;J[a+8>>2]=744;J[a+4>>2]=745;rn(3,203801,203801,204344,b);J[a+12>>2]=746;J[a+8>>2]=747;J[a+4>>2]=748;rn(4,204724,204724,205043,b);J[a+12>>2]=749;J[a+8>>2]=750;J[a+4>>2]=751;rn(5,205247,205247,205543,b);J[a+12>>2]=752;J[a+8>>2]=753;J[a+4>>2]=754;rn(6,205697,205697,206048,b);J[a+12>>2]=755;J[a+8>>2]=756;J[a+4>>2]=757;rn(7,206117,206117,206345,b);fc=a+16| +0;return 0}function vY(a,b,c){var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;J[d+12>>2]=0;e=J[a+200>>2];if(e&1){a:{if(e&4){fd(a,63233);Vd(a,c);break a}if(e&2)fd(a,63290);if(!(!b|!(K[b+8|0]&2))){fd(a,63470);Vd(a,c);break a}if(!(((K[a+401|0]==3?3:K[a+405|0])|0)==(c|0)&c>>>0<=4)){fd(a,63555);Vd(a,c);break a}f=d+12|0;Dg(a,f,c);Ae(a,f,c);if(Vd(a,0))break a;e=K[d+12|0];b:{if(K[a+401|0]&2){c=K[d+13|0];g=K[d+14|0];f=f|3;break b}H[a+495|0]=e;c=e;g=c;f=d+12|1}H[a+496|0]=K[f|0];H[a+494|0]=g;H[a+493|0]=c;H[a+492|0]=e;if(!(!a| +!b)){c=K[a+492|0]|K[a+493|0]<<8|(K[a+494|0]<<16|K[a+495|0]<<24);H[b+68|0]=c;H[b+69|0]=c>>>8;H[b+70|0]=c>>>16;H[b+71|0]=c>>>24;H[b+72|0]=K[a+496|0];J[b+8>>2]=J[b+8>>2]|2}}fc=d+16|0;return}Ld(a,63057);B()}function Ah(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;while(1){e=(p<<2)+a|0;c=J[e>>2];g=c>>>24|0;h=g<<1;h=(c|0)<0?h^27:h;f=h<<1;i=h<<24>>24<0?f^27:f;j=c>>>8|0;f=j<<1;f=j<<24>>24<0?f^27:f;b=f<<1;l=f<<24>>24<0?b^27:b;q=i^l;k=c>>>16|0;b=k<<1;b=k<<24>>24<0?b^27:b;m= +b<<1;m=b<<24>>24<0?m^27:m;n=m<<1;n=m<<24>>24<0?n^27:n;k=n^k;d=i<<1;d=i<<24>>24<0?d^27:d;i=g^d;r=e;o=l<<1;l=l<<24>>24<0?o^27:o;j=j^l;s=h^(b^q)^d;e=c<<1;e=c<<24>>24<0?e^27:e;g=e<<1;g=e<<24>>24<0?g^27:g;d=g<<1;d=g<<24>>24<0?d^27:d;c=c^d;o=b;b=g^m;J[r>>2]=(k^(j^(s^c)))<<24|((i^(j^(c^(o^(b^f))^n)))&255)<<16|((k^(i^(c^(f^(e^q))^l)))&255)<<8|(j^(i^(k^(h^(b^e)^d))))&255;p=p+1|0;if((p|0)!=4)continue;break}}function wJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(!c)return 0;if(!XY(J[a>>2],b,c,d)){Nc(d, +1,2350217,0);return 0}b=1;a:{if(J[J[a>>2]+60>>2]|J[a+128>>2])break a;e=a+108|0;if(!OY(c,e,d))return 0;b:{c:switch(J[a+48>>2]-12|0){case 5:b=2;break b;case 6:b=3;break b;case 12:b=4;break b;case 0:b=5;break b;case 4:break b;default:break c}b=-1}J[c+20>>2]=b;b=J[a+120>>2];d:{if(!b)break d;if(!J[b+12>>2]){uc(J[J[e+12>>2]+4>>2]);uc(J[J[e+12>>2]+8>>2]);uc(J[J[e+12>>2]>>2]);b=J[e+12>>2];f=J[b+12>>2];if(f){uc(f);b=J[e+12>>2]}uc(b);J[e+12>>2]=0;break d}b=0;if(!NY(c,e,d))break a}if(J[a+116>>2])MY(c,e,d);b= +1;d=J[e>>2];if(!d)break a;J[c+28>>2]=d;J[c+32>>2]=J[a+112>>2];J[a+108>>2]=0}return b|0}function q9(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!b)break a;J[b>>2]=0;if(!a)break a;d=J[a+12>>2];f=kd(d,4);if(!f)break a;g=kd(d,4);if(!g)break a;h=kd(d,4);if(!h)break a;b:{if((d|0)<=0)break b;i=J[a>>2];a=0;if((d|0)!=1){k=d&-2;while(1){c=a<<2;e=c+i|0;J[c+f>>2]=K[e+2|0];J[c+g>>2]=K[e+1|0];J[c+h>>2]=K[e|0];c=c|4;e=c+i|0;J[c+f>>2]=K[e+2|0];J[c+g>>2]=K[e+1|0];J[c+h>>2]=K[e|0];a=a+2|0;j=j+2|0;if((j|0)!= +(k|0))continue;break}}if(d&1){a=a<<2;c=a+i|0;J[a+f>>2]=K[c+2|0];J[a+g>>2]=K[c+1|0];J[a+h>>2]=K[c|0]}a=0;if((d|0)<=0)break b;while(1){c:{c=a<<2;i=J[c+f>>2];if((i|0)!=J[c+g>>2]|(i|0)!=J[c+h>>2])break c;a=a+1|0;if((d|0)!=(a|0))continue;break b}break}J[b>>2]=1}uc(f);uc(g);uc(h)}}function aL(a,b){var c=0,d=0;d=fc-16|0;fc=d;a:{if(!b)break a;c=kc[J[663195]](60)|0;if(c){J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]= +0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+4>>2]=1;J[c+36>>2]=0;J[c+8>>2]=b;b:{if(!J[693393])break b;b=J[693390];if(!b)break b;kc[b|0](c)}J[c+32>>2]=a;break a}J[d>>2]=14579;Hc(0,0,0,0,0,2,2,3,14579,0,0,0,32879,d);if(!a){c=0;break a}a=J[a+80>>2];while(1){if(!a){c=0;break a}c=J[a+16>>2];if(c)while(1){if(!(M[c+4>>2]>>0|c+20>>>0>b>>>0)){c=0;break a}c=J[c>>2];if(c)continue;break}a=J[a+20>>2];if(a)continue;break}c=0;kc[J[663199]](b)}fc=d+16|0;return c}function PU(a,b,c){a=a|0;b=b|0;c= +c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;f=O[c>>3];g=O[b>>3];c=d+4|0;J[d+8>>2]=c;J[699344]=0;J[d>>2]=0;b=_(4,24)|0;e=J[699344];J[699344]=0;if((e|0)!=1){O[b+8>>3]=g;J[b+4>>2]=c;J[b>>2]=c;O[b+16>>3]=f;J[d+8>>2]=b;J[d+4>>2]=b;J[699344]=0;J[d+12>>2]=1;c=_(4,24)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[c+8>>2]=0;J[c+16>>2]=b;e=c+12|0;J[b>>2]=e;J[c+12>>2]=b;J[b+4>>2]=e;J[c+4>>2]=a;J[c+20>>2]=1;b=J[a>>2];J[c>>2]=b;J[b+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;if(O[a+16>>3]>g)O[a+16>>3]=g;if(O[a+32>>3]>3]=g;if(O[a+24>>3]>f)O[a+24>>3]=f;if(O[a+40>>3]>3]=f;fc=d+16|0;return}a=Z()|0;Qp(d);ba(a|0);B()}a=Z()|0;J[d+12>>2]=0;J[d+4>>2]=c;Am(c);ba(a|0);B()}function OU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;f=O[c>>3];g=O[b>>3];c=d+4|0;J[d+8>>2]=c;J[699344]=0;J[d>>2]=1;b=_(4,24)|0;e=J[699344];J[699344]=0;if((e|0)!=1){O[b+8>>3]=g;J[b+4>>2]=c;J[b>>2]=c;O[b+16>>3]=f;J[d+8>>2]=b;J[d+4>>2]=b;J[699344]=0;J[d+12>>2]=1;c=_(4,24)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[c+8>>2]=1; +J[c+16>>2]=b;e=c+12|0;J[b>>2]=e;J[c+12>>2]=b;J[b+4>>2]=e;J[c+4>>2]=a;J[c+20>>2]=1;b=J[a>>2];J[c>>2]=b;J[b+4>>2]=c;J[a>>2]=c;J[a+8>>2]=J[a+8>>2]+1;if(O[a+16>>3]>g)O[a+16>>3]=g;if(O[a+32>>3]>3]=g;if(O[a+24>>3]>f)O[a+24>>3]=f;if(O[a+40>>3]>3]=f;fc=d+16|0;return}a=Z()|0;Qp(d);ba(a|0);B()}a=Z()|0;J[d+12>>2]=0;J[d+4>>2]=c;Am(c);ba(a|0);B()}function OKa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[J[a+16>>2]+40>>2];if(!e)return 0;b=fc-32|0;fc=b;a=J[e>>2];a:{if(!a)break a;a=J[a+32>>2];if(!a)break a; +f=J[a>>2];if(!f)break a;J[b+20>>2]=1E3;J[b+12>>2]=231660;a=Dc(1E3);J[b+16>>2]=a;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;c=4;J[b+28>>2]=4;J[b+24>>2]=a+4;g=J[f+8>>2];if((g|0)>0){while(1){b:{a=J[J[f>>2]+(d<<2)>>2];if(!a)break b;c=J[e>>2];J[699344]=0;ia(3708,c|0,a|0,b+12|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;J[b+12>>2]=231660;c=J[b+16>>2];if(c)uc(c);ba(a|0);B()}d=d+1|0;if((g|0)!=(d|0))continue;break}c=J[b+28>>2];a=J[b+16>>2]}H[a|0]=c;H[a+1|0]=c>>>8;H[a+2|0]=c>>>16;H[a+3|0]=c>>>24; +d=J[b+16>>2]}fc=b+32|0;return d|0}function KMa(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;a:{b:{d=J[a+8>>2];if(!d){if((c|0)>0)break b;return 0}if((c|0)<=0)return 0;a=J[d+36>>2];while(1){e=J[d+28>>2];if((e|0)<=(a|0)){if(!Wt(d))break a;e=J[d+28>>2];a=J[d+36>>2]}g=J[d+32>>2]+a|0;a=e-a|0;e=c-f|0;e=(a|0)<(e|0)?a:e;xc(b+f|0,g,e);a=e+J[d+36>>2]|0;J[d+36>>2]=a;f=e+f|0;if((f|0)<(c|0))continue;break}break a}i=a+12|0;d=J[a+32784>>2];while(1){if(!d){if(J[a+34096>>2]?J[a+34092>>2]:0)break a;EB(a);d= +J[a+32784>>2]}g=J[a+32780>>2];e=32768-g|0;h=c-f|0;d=(d|0)>(h|0)?h:d;e=(d|0)>(e|0)?e:d;xc(b+f|0,i+g|0,e);d=J[a+32784>>2]-e|0;J[a+32784>>2]=d;J[a+32780>>2]=e+J[a+32780>>2]&32767;f=e+f|0;if((f|0)<(c|0))continue;break}}return f|0}function Sma(a,b,c){a=a|0;b=b|0;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=fc-16|0;fc=f;a:{if(O[b+32>>3]>c){J[a>>2]=0;J[a+4>>2]=0;break a}ZT(f+4|0,b);b:{c:{d:{e:{e=J[f+4>>2];i=J[f+8>>2];if((e|0)!=(i|0)){h=i-e>>3;d=e;while(1){j=h>>>1|0;g=(j<<3)+d|0;k=O[g>>3]>2]=0;J[a+4>>2]=0;break d}if((d|0)==(e|0)){J[a>>2]=0;J[a+4>>2]=0;break d}d=d-e>>3;g=d-1|0;d=R(O[(g<<3)+e>>3]-c)<.5?d-2|0:g;if(!d){J[a>>2]=0;J[a+4>>2]=0;break c}J[699344]=0;ca(6655,a|0,b|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;e=J[f+4>>2]}if(!e)break a}J[f+8>>2]=e;uc(e);break a}a=Z()|0;b=J[f+4>>2];if(b){J[f+8>>2]=b;uc(b)}ba(a|0);B()}fc=f+16|0}function MIa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;kc[J[J[a>>2]+16>>2]](a); +e=vc(8);J[e>>2]=2376196;J[699344]=0;d=_(4,20)|0;f=J[699344];J[699344]=0;a:{b:{if((f|0)!=1){J[d+8>>2]=0;J[d+12>>2]=0;J[d+16>>2]=0;J[699344]=0;ca(4900,d|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;b=J[d+8>>2];if(b){f=b;c=J[d+12>>2];if((b|0)!=(c|0)){while(1){f=c-20|0;if(H[c-9|0]<0)uc(J[f>>2]);c=f;if((b|0)!=(c|0))continue;break}f=J[d+8>>2]}J[d+12>>2]=b;uc(f)}uc(d);break a}J[e+4>>2]=d;b=J[a+4>>2];J[b+8>>2]=e;e=vc(72);b=J[b+4>>2];J[699344]=0;b=aa(4899,e|0,b|0)|0;c=J[699344];J[699344]=0;if((c| +0)==1)break b;a=J[a+4>>2];J[a+12>>2]=b;$X(b,J[a+8>>2]);return 1}a=Z()|0;break a}a=Z()|0}uc(e);ba(a|0);B()}function LX(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;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,u=0;l=O[a>>3];j=O[b>>3];q=O[d>>3];i=q*q;r=O[c>>3];p=r*r;k=-l/j*i/p;l=i*(j*j/i+l*l/p)/(j+j);s=(k+k)*l;n=s/i;t=k*k;j=1/p+t/i;u=l*l;m=n*n+j*-4*(u/i+-1);a:{b:{if(!(m<0))break b;i=u+s*s/((t+i/p)*-4);o=0;if(i<0)break a;i=Y(i)/q;if(!(i>1))break b;O[c>>3]=r*i;k=i*O[d>>3];O[d>> +3]=k;i=k*k;l=O[a>>3];j=O[b>>3];k=O[c>>3];m=k*k;k=i*(-l/j)/m;l=i*(j*j/i+l*l/m)/(j+j);n=(k+k)*l/i;j=1/m+k*k/i;m=n*n+j*-4*(l*l/i+-1)}o=0;if(m<-.001)break a;c:{if(m<0){i=-n/(j+j);j=i;break c}i=Y(m);m=j+j;j=(-n-i)/m;i=(i-n)/m}O[e>>3]=i;O[g>>3]=j;O[f>>3]=k*O[e>>3]+l;O[h>>3]=k*O[g>>3]+l;o=1}return o|0}function w8a(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0,l=0;h=fc+-64|0;fc=h;O[h+40>>3]=c;O[h+48>>3]=b;O[h+32>>3]=d;O[h+24>>3]=e;O[h+16>>3]=f;O[h+8>>3]=g;i=J[a+4>>2];j=J[i+28>>2]; +if(j){ce(j,h+48|0,h+40|0);ce(J[J[a+4>>2]+28>>2],h+32|0,h+24|0);ce(J[J[a+4>>2]+28>>2],h+16|0,h+8|0);i=J[a+4>>2];g=O[h+8>>3];f=O[h+16>>3];e=O[h+24>>3];d=O[h+32>>3];c=O[h+40>>3];b=O[h+48>>3]}J[h+60>>2]=0;k=Qe(i,h+60|0),l=4,H[k|0]=l;a=J[h+60>>2];O[a+8>>3]=c;O[a>>3]=b;J[i>>2]=J[i>>2]+1;J[h+60>>2]=0;k=Qe(i,h+60|0),l=4,H[k|0]=l;a=J[h+60>>2];O[a+8>>3]=e;O[a>>3]=d;J[i>>2]=J[i>>2]+1;J[h+60>>2]=0;k=Qe(i,h+60|0),l=4,H[k|0]=l;a=J[h+60>>2];O[a+8>>3]=g;O[a>>3]=f;J[i>>2]=J[i>>2]+1;fc=h- -64|0;return 1}function qla(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;if((c|0)>0){g=J[a+12>>2];while(1){d=J[g>>2];I[b>>1]=(d>>>12&4093)+13314;h=163;a=0;i=d&16383;a:{if(i>>>0>16288){e=.210526316;f=.473684211;break a}b:{c:{while(1){d=a+h>>1;j=i-I[(d<<3)+92438>>1]|0;d:{if((j|0)>0){a=d;break d}if((j|0)>=0)break c;h=d}if((h-a|0)>1)continue;break}d=a;e=+(i-I[(d<<3)+92438>>1]|0)+.5;break b}e=.5}e=e*.0035000001080334187+ +N[(d<<3)+92432>>2];f=(+(d|0)+.5)*.0035000001080334187+.016939999535679817}f=f*32768;e:{if(R(f)<2147483648){a= +~~f;break e}a=-2147483648}I[b+4>>1]=a;e=e*32768;f:{if(R(e)<2147483648){a=~~e;break f}a=-2147483648}I[b+2>>1]=a;g=g+4|0;b=b+6|0;a=(c|0)>1;c=c-1|0;if(a)continue;break}}}function WDa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+8>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;d=J[b+8>>2]}else d=0;J[a+8>>2]=d;b=b+12|0;a=a+12|0;d=(c|0)>0;c=c-1|0;if(d)continue;break b}while(1){d=c;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;c=J[b+ +8>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;c=J[b+8>>2]}else c=0;J[a+8>>2]=c;c=J[b+8>>2];J[b+8>>2]=0;c:{if(!c)break c;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break c;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=d-1|0;b=b+12|0;a=a+12|0;if((d|0)>0)continue;break}}return}ea(0)|0;Bc();B()}function Ctb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]= +c;H[d+11|0]=c>>>8;f=d+8|0;c=K[b+36|0];a:{if(!(c|K[b+37|0]|(K[b+38|0]|K[b+39|0]))){e=4;break a}H[d+12|0]=c;c=K[b+37|0];if(!(K[b+39|0]|(c|K[b+38|0]))){e=5;break a}H[d+13|0]=c;c=K[b+38|0];e=6;if(!(c|K[b+39|0]))break a;H[d+14|0]=c;e=7;if(!K[b+39|0])break a;H[d+15|0]=K[b+40|0];c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+16|0]=c;H[d+17|0]=c>>>8;H[d+18|0]=c>>>16;H[d+19|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+20|0]=c;H[d+21|0]=c>>>8;H[d+22|0]=c>>>16;H[d+23|0]=c>>> +24;e=16}c=e;return Ce(a,J[b>>2],c,f)|0}function AC(a,b,c){var d=0,e=0,f=0;a:{if((b|0)<0)break a;e=-1;if(J[a+28>>2]|!a)break a;if(J[a+12>>2]){d=J[a+20>>2];if(!d){d=kL();J[a+20>>2]=d}if(Xj(d,c,b))break a;b=0;d=J[a+20>>2];b:{if(!d|J[d+32>>2])break b;b=J[d+8>>2];if(!((b|0)==J[d+24>>2]|b>>>0>2147483646))J[d+24>>2]=b;b=J[d+20>>2];c=J[d+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break b;J[d+20>>2]=c;b=c}f=LC(a,1);if((f|0)<0){dL(1544,4972,0);J[a+28>>2]=1544;return-1}d=0;e=J[a+20>>2];c:{if(!e|J[e+32>>2])break c; +c=J[e+8>>2];if(!((c|0)==J[e+24>>2]|c>>>0>2147483646))J[e+24>>2]=c;d=J[e+20>>2];c=J[e+4>>2];if((d|0)==(c|0)|c>>>0>2147483646)break c;J[e+20>>2]=c;d=c}J[a+32>>2]=J[a+32>>2]+(b-d|0);return f}e=Xj(J[a+16>>2],c,b)?-1:b}return e}function oo(a,b,c){var d=0,e=0,f=0,g=0;if(!c)return 0;d=c;while(1){a:{f=d;b:{d=J[b+8>>2];c:{if(d&7)break c;e=J[b+64>>2];if(!((e|0)<0|(e|0)>J[b+60>>2])){J[b+8>>2]=d|4;break c}d=J[b+28>>2];J[b+28>>2]=d-1;if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;d=J[b+24>>2];J[b+24>>2]=d+1;d=K[d|0];break b}d= +td(b,1);if((d|0)!=-1)break b}e=-1;if((c|0)>=0)break a;return J[b+8>>2]<<30>>31}e=-1;g=J[a+8>>2];if(g&7)break a;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2])){J[a+8>>2]=g|4;return-1}J[a+4>>2]=J[a+4>>2]|32;e=J[a+28>>2];J[a+28>>2]=e-1;d:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;e=J[a+24>>2];J[a+24>>2]=e+1;H[e|0]=d;break d}e=-1;if((bd(a,d)|0)==-1)break a}d=f-1|0;e=0;if((c|0)<0|(f|0)>1)continue}break}return e}function Ywb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=J[a+636>>2]+J[a+616>>2]|0;b=J[a+ +588>>2];c=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{b:{c:{if(K[d+56|0]){if((b|0)>0)break c;break a}if((b|0)>0)break b;g=1;break a}b=0;while(1){if(!b){k=K[f|0];e=4;f=f+1|0;b=240}h=(b&k)>>>e|0;j=(h|0)!=L[d+836>>1];H[c+3|0]=j?-1:0;h=j?P(h,17):0;H[c+2|0]=h;H[c+1|0]=h;H[c|0]=h;e=e-4|0;c=c+4|0;b=(b&240)>>>4|0;i=i+1|0;if((i|0)>2])continue;break}break a}b=0;d=0;while(1){if(!b){d=K[f|0];e=4;f=f+1|0;b=240}H[c+3|0]=255;g=P((b&d)>>>e|0,17);H[c+2|0]=g;H[c+1|0]=g;H[c|0]=g;e=e-4|0;c=c+4| +0;b=(b&240)>>>4|0;g=1;i=i+1|0;if((i|0)>2])continue;break}}H[a+649|0]=g;return 0}function XQa(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;a=Ac(a,0,256);d=J[b>>2]+c|0;g=K[d|0];e=K[d+1|0];d=g-e<<3;J[a+4>>2]=d;g=(e+g<<3)-2048|0;J[a>>2]=g;e=J[b+4>>2]+c|0;h=K[e|0];f=K[e+1|0];e=h-f<<3;J[a+36>>2]=e;h=(f+h<<3)-2048|0;J[a+32>>2]=h;f=J[b+8>>2]+c|0;i=K[f|0];j=K[f+1|0];f=i-j<<3;J[a+68>>2]=f;i=(i+j<<3)-2048|0;J[a+64>>2]=i;b=J[b+12>>2]+c|0;c=K[b|0];b=K[b+1|0];j=c-b<<3;k=j+d|0;l=e+f| +0;J[a+68>>2]=k-l;J[a+4>>2]=k+l;c=(b+c<<3)-2048|0;b=c+g|0;k=h+i|0;J[a+64>>2]=b-k;J[a>>2]=b+k;e=e-f|0;d=d-j|0;b=P(e+d|0,4433)+4096|0;J[a+100>>2]=b+P(e,-15137)>>13;J[a+36>>2]=b+P(d,6270)>>13;d=h-i|0;c=g-c|0;b=P(d+c|0,4433)+4096|0;J[a+96>>2]=b+P(d,-15137)>>13;J[a+32>>2]=b+P(c,6270)>>13}function Tm(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=837768;b=J[a+228>>2];c=J[a+232>>2];if((b|0)!=(c|0))while(1){f=d<<2;e=J[f+b>>2];if(e){kc[J[J[e>>2]+4>>2]](e);J[J[a+228>>2]+f>>2]=0;c=J[a+232>>2];b=J[a+228>>2]}d=d+1|0; +if(d>>>0>2>>>0)continue;break}if(H[a+339|0]<0)uc(J[a+328>>2]);if(H[a+327|0]<0)uc(J[a+316>>2]);if(H[a+315|0]<0)uc(J[a+304>>2]);if(H[a+303|0]<0)uc(J[a+292>>2]);if(H[a+291|0]<0)uc(J[a+280>>2]);if(H[a+279|0]<0)uc(J[a+268>>2]);if(H[a+267|0]<0)uc(J[a+256>>2]);if(H[a+255|0]<0)uc(J[a+244>>2]);b=J[a+228>>2];if(b){J[a+232>>2]=b;uc(b)}b=J[a+216>>2];if(b){J[a+220>>2]=b;uc(b)}b=J[a+204>>2];if(b){J[a+208>>2]=b;uc(b)}b=J[a+192>>2];if(b){J[a+196>>2]=b;uc(b)}return eu(a)|0}function KN(a){var b=0,c=0;a:{if(!a)break a; +c=J[a>>2];if(!c)break a;J[a+44>>2]=0;J[a+48>>2]=0;b=J[a+52>>2];if((b|0)!=(a+72|0)){if(b)kc[J[c+8>>2]](c,b);J[a+52>>2]=0}J[a+56>>2]=0;J[a+60>>2]=0;b=J[a- -64>>2];if((b|0)!=(a+864|0)){if(b)kc[J[c+8>>2]](c,b);J[a+64>>2]=0}b=a+1392|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+1400>>2];if((b|0)!=(a+1420|0)){if(b)kc[J[c+8>>2]](c,b);J[a+1400>>2]=0}b=a+1404|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+1412>>2];if((b|0)!=(a+2212|0)){if(b)kc[J[c+8>>2]](c,b);J[a+1412>>2]=0}b=J[a+40>>2];if((b|0)!=(a+2760|0)){if(b)kc[J[c+8>>2]](c,b);J[a+40>> +2]=0}J[a+32>>2]=0;J[a+36>>2]=0;b=J[a+28>>2];if((b|0)!=(a+2792|0)){if(b)kc[J[c+8>>2]](c,b);J[a+28>>2]=0}J[a>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}}function Bzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[J[a+544>>2]+88>>2];f=J[e+1176>>2]+P(J[e+1168>>2],J[a+572>>2])|0;d=J[a+588>>2];b=J[a+644>>2];a:{b:{c:{if(K[e+56|0]){if((d|0)>0)break c;return 0}if((d|0)>0)break b;return 0}while(1){g=K[f|0];if(g>>>0>=M[e+64>>2])break a;d=P(g,3)+e|0;H[b|0]=K[d+68|0];H[b+1|0]=K[d+69|0];H[b+2|0]=K[d+70|0];H[b+3|0]=g>>>0>=M[e+844>> +2]?255:K[(e+g|0)+848|0];b=b+4|0;f=f+1|0;c=c+1|0;if((c|0)>2])continue;break}return 0}d=0;while(1){c=K[f|0];if(c>>>0>=M[e+64>>2])break a;c=P(c,3)+e|0;H[b|0]=K[c+68|0];H[b+1|0]=K[c+69|0];c=K[c+70|0];H[b+3|0]=255;H[b+2|0]=c;b=b+4|0;f=f+1|0;d=d+1|0;if((d|0)>2])continue;break}return 0}Jc(a,1042,0,0);return 1042}function $$a(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{b=J[a+20>>2];switch(b-101|0){case 2:break a;case 0:case 1:break d;default:break c}}if(M[a+260>>2]>2]){b=J[a>>2];J[b+20>> +2]=69;kc[J[b>>2]](a)}b=J[a+388>>2]+8|0;break b}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;b=J[a>>2]}kc[J[b>>2]](a)}b=J[a+388>>2];if(!J[b+16>>2])while(1){kc[J[b>>2]](a);b=0;d=J[a+284>>2];if(d)while(1){c=J[a+8>>2];if(c){J[c+8>>2]=d;J[c+4>>2]=b;kc[J[c>>2]](a)}if(!(kc[J[J[a+400>>2]+4>>2]](a,0)|0)){c=J[a>>2];J[c+20>>2]=25;kc[J[c>>2]](a)}b=b+1|0;d=J[a+284>>2];if(b>>>0>>0)continue;break}kc[J[J[a+388>>2]+8>>2]](a);b=J[a+388>>2];if(!J[b+16>>2])continue;break}kc[J[J[a+404>>2]+12>>2]](a);kc[J[J[a+24>>2]+16>>2]](a); +Vx(a)}function qBb(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;e=J[a+4>>2];if(!e)return 0;d=J[a+12>>2];if(d){J[e+20>>2]=d+J[e+20>>2];J[a+12>>2]=0;J[a+8>>2]=d+J[a+8>>2]}a:{if((b|0)<=0)break a;j=b&1;c=J[e+20>>2];h=J[e+16>>2];b:{if((b|0)==1){g=b;break b}k=b&-2;g=b;while(1){c:{if(!(M[e+12>>2]>c>>>0|c>>>0>=h>>>0)){d=c+1|0;J[e+20>>2]=d;c=K[c|0];break c}d=c;c=0}l=(c<<(g<<3)-8)+f|0;f=0;d:{if(d>>>0>=h>>>0){c=d;break d}if(M[e+12>>2]>d>>>0){c=d;break d}c=d+1|0;J[e+20>>2]=c;f=K[d|0]}g=g-2|0; +f=((f&255)<<(g<<3))+l|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!j)break a;d=0;if(!(M[e+12>>2]>c>>>0|c>>>0>=h>>>0)){J[e+20>>2]=c+1;d=K[c|0]}f=(d<<(g<<3)-8)+f|0}J[a+8>>2]=J[a+8>>2]+b;return f|0}function eRa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=vc(376);J[699344]=0;b=aa(3601,g|0,a|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[b>>2]=2218276;O[b+184>>3]=O[a+184>>3];O[b+192>>3]=O[a+192>>3];O[b+200>>3]=O[a+200>>3];O[b+208>>3]=O[a+208>>3];O[b+216>>3]=O[a+216>>3];O[b+224>>3]=O[a+224>>3];c=J[a+360>>2]; +J[b+360>>2]=c;b:{if((c|0)>0)while(1){c=d<<2;e=J[(c+a|0)+232>>2];f=J[J[e>>2]+8>>2];J[699344]=0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[(b+c|0)+232>>2]=e;d=d+1|0;if((d|0)>2])continue;break}J[b+364>>2]=J[a+364>>2];J[b+368>>2]=J[a+368>>2];return b|0}d=Z()|0;J[b>>2]=2218236;a=J[b+8>>2];if(!a)break a;kc[J[J[a>>2]+4>>2]](a);break a}d=Z()|0}uc(g);ba(d|0);B()}function ZX(a,b,c){var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){fd(a,66848);Vd(a,c);break a}if(!(!b| +!(H[b+9|0]&1))){fd(a,66872);Vd(a,c);break a}if((c|0)!=9){fd(a,66893);Vd(a,c);break a}c=d+7|0;Dg(a,c,9);Ae(a,c,9);if(Vd(a,0))break a;f=H[d+7|0];c=f&255;g=H[d+11|0];e=g&255;if((f|0)<0)c=0-(P(K[d+8|0],2147418112)-(K[d+10|0]|(K[d+9|0]<<8|c<<24))&2147483647)|0;else c=K[d+10|0]|(K[d+8|0]<<16|c<<24|K[d+9|0]<<8);if((g|0)<0)e=0-(P(K[d+12|0],2147418112)-(K[d+14|0]|(K[d+13|0]<<8|e<<24))&2147483647)|0;else e=K[d+14|0]|(K[d+12|0]<<16|e<<24|K[d+13|0]<<8);f=K[d+15|0];if(!(!a|!b)){H[b+108|0]=f;J[b+104>>2]=e;J[b+ +100>>2]=c;J[b+8>>2]=J[b+8>>2]|256}}fc=d+16|0;return}Ld(a,66823);B()}function Ltb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;c=J[a+428>>2];e=c+8|0;a:{b:switch(K[b+33|0]){case 0:H[e|0]=K[b+34|0];d=1;break a;case 2:H[c+8|0]=K[b+34|0];H[c+9|0]=K[b+35|0];H[c+10|0]=K[b+36|0];d=3;break a;case 3:H[e|0]=K[b+34|0];H[e|0]=K[b+35|0];H[e|0]=K[b+36|0];d=3;break a;case 4:H[c+8|0]=K[b+34|0];H[c+9|0]=K[b+35|0];d=2;break a;case 10:H[e|0]=K[b+34|0];d=1;break a;case 12:H[c+8|0]=K[b+34|0]; +H[c+9|0]=K[b+35|0];H[c+10|0]=K[b+36|0];d=3;break a;case 14:H[c+8|0]=K[b+34|0];H[c+9|0]=K[b+35|0];d=2;break a;case 6:case 16:break b;default:break a}H[c+8|0]=K[b+34|0];H[c+9|0]=K[b+35|0];H[c+10|0]=K[b+36|0];H[c+11|0]=K[b+37|0];d=4}return Ce(a,J[b>>2],d,e)|0}function AUa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=vc(1048);d=J[a+4>>2];J[e+8>>2]=d;J[e>>2]=2216812;J[e+4>>2]=d;a:{if((d|0)<=0)break a;a=0;if(d>>>0>=4){i=d&-4;while(1){c=a<<4;f=e+16|0;b=c+f|0;J[b+8>>2]=0;J[b+12>>2]=1072693248;J[b>>2]=0; +J[b+4>>2]=0;b=f+(c|16)|0;J[b+8>>2]=0;J[b+12>>2]=1072693248;J[b>>2]=0;J[b+4>>2]=0;b=f+(c|32)|0;J[b+8>>2]=0;J[b+12>>2]=1072693248;J[b>>2]=0;J[b+4>>2]=0;c=f+(c|48)|0;J[c+8>>2]=0;J[c+12>>2]=1072693248;J[c>>2]=0;J[c+4>>2]=0;a=a+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}c=d&3;if(!c)break a;while(1){d=(a<<4)+e|0;J[d+24>>2]=0;J[d+28>>2]=1072693248;J[d+16>>2]=0;J[d+20>>2]=0;a=a+1|0;h=h+1|0;if((c|0)!=(h|0))continue;break}}J[e+1040>>2]=0;return e|0}function A0(a,b,c){var d=0,e=0,f=0;a:{if((b|0)>2147482623| +(c|0)>1024|(b|c)<0)break a;e=J[a+1040>>2];if((e|0)>(b|0))break a;f=b+c|0;b:{if((f|0)<=(e+1024|0)){c=e;break b}d=J[a+1044>>2];c=d+e|0;if((c|0)>(b|0)){c=d+(e-b|0)|0;J[a+1044>>2]=c;d=a+16|0;cd(d,d+(b-e|0)|0,c);J[a+1040>>2]=b;c=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=c;if((b|0)<=(c|0))break b;while(1){d=0;if((kc[J[a+4>>2]](J[a+8>>2])|0)<0)break a;c=J[a+1040>>2]+1|0;J[a+1040>>2]=c;if((b|0)>(c|0))continue;break}}d=1;if((J[a+1044>>2]+c|0)>=(f|0))break a;while(1){d=0;b=kc[J[a+4>>2]](J[a+8>>2])|0;if((b|0)<0)break a; +d=1;c=J[a+1044>>2];J[a+1044>>2]=c+1;H[(a+c|0)+16|0]=b;if((J[a+1044>>2]+J[a+1040>>2]|0)<(f|0))continue;break}}return d}function tsb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1767135348){Jc(a,2050,0,0);return 2050}e=J[c+32>>2];J[b+32>>2]=e;H[b+40|0]=K[c+40|0];H[b+41|0]=K[c+41|0];J[b+44>>2]=J[c+44>>2];J[b+52>>2]=J[c+52>>2];d=J[c+60>>2];J[b+60>>2]=d;a:{if(e){d=kc[J[a+152>>2]](e)|0;J[b+36>>2]=d;if(!d)break a;xc(d,J[c+36>>2],J[b+32>>2]);d=J[b+60>>2]}b:{if(!d)break b;d=kc[J[a+152>>2]](J[b+44>>2])| +0;J[b+48>>2]=d;if(!d)break a;xc(d,J[c+48>>2],J[b+44>>2]);if(!J[b+60>>2])break b;d=kc[J[a+152>>2]](J[b+52>>2])|0;J[b+56>>2]=d;if(!d)break a;xc(d,J[c+56>>2],J[b+52>>2]);d=J[b+60>>2];if(!d)break b;d=kc[J[a+152>>2]](d)|0;J[b+64>>2]=d;if(!d)break a;xc(d,J[c+64>>2],J[b+60>>2])}return 0}Jc(a,1,0,0);return 1}function q5a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a+140>>2];if((d|0)!=J[b>>2]){c=J[a+304>>2];e=a+308|0;if((c|0)!=(e|0))while(1){J[c+120>>2]=1;d=J[c+4>>2];a:{if(d)while(1){c=d;d=J[c>>2];if(d)continue; +break a}while(1){d=c;c=J[c+8>>2];if((d|0)!=J[c>>2])continue;break}}if((c|0)!=(e|0))continue;break}g=a+316|0;c=J[g>>2];f=a+320|0;if((c|0)!=(f|0))while(1){J[c+120>>2]=1;d=J[c+4>>2];b:{if(d)while(1){c=d;d=J[c>>2];if(d)continue;break b}while(1){d=c;c=J[c+8>>2];if((d|0)!=J[c>>2])continue;break}}if((c|0)!=(f|0))continue;break}ki(a+304|0,J[a+308>>2]);J[a+304>>2]=e;J[a+308>>2]=0;J[a+312>>2]=0;ki(g,J[a+320>>2]);J[a+316>>2]=f;J[a+320>>2]=0;J[a+324>>2]=0;d=J[b>>2]}J[a+140>>2]=d}function ima(a,b){a=a|0;b=b|0; +var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;a:{e=J[b>>2];f=J[b+4>>2];if((e|0)!=(f|0)){g=a+56|0;while(1){c=J[e>>2];b=J[e+4>>2];if(b)J[b+4>>2]=J[b+4>>2]+1;J[d+12>>2]=b;J[d+8>>2]=c;b=J[J[a>>2]+32>>2];J[699344]=0;da(b|0,a|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+60>>2];b:{if((b|0)!=J[a+64>>2]){J[b>>2]=J[d+8>>2];c=J[d+12>>2];J[b+4>>2]=c;if(c)J[c+4>>2]=J[c+4>>2]+1;J[a+60>>2]=b+8;break b}J[699344]=0;da(6542,g|0,d+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[d+12>>2];c:{if(!b)break c;c= +J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;kc[J[J[b>>2]+8>>2]](b);Gc(b)}e=e+8|0;if((f|0)!=(e|0))continue;break}}fc=d+16|0;return}a=Z()|0;je(d+8|0);ba(a|0);B()}function hWa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=-1;a:{if(b>>>0>2147482623)break a;d=J[a+1040>>2];if((d|0)>(b|0))break a;b:{if((d+1024|0)>(b|0)){c=d;break b}e=J[a+1044>>2];c=e+d|0;if((c|0)>(b|0)){c=e+(d-b|0)|0;J[a+1044>>2]=c;e=a+16|0;cd(e,e+(b-d|0)|0,c);J[a+1040>>2]=b;c=b;break b}J[a+1044>>2]=0;J[a+1040>>2]=c;if((b|0)<=(c|0))break b;while(1){if((kc[J[a+ +4>>2]](J[a+8>>2])|0)<0)break a;c=J[a+1040>>2]+1|0;J[a+1040>>2]=c;if((b|0)>(c|0))continue;break}}if((J[a+1044>>2]+c|0)<=(b|0))while(1){c=kc[J[a+4>>2]](J[a+8>>2])|0;if((c|0)<0)break a;d=J[a+1044>>2];J[a+1044>>2]=d+1;H[(a+d|0)+16|0]=c;c=J[a+1040>>2];if((c+J[a+1044>>2]|0)<=(b|0))continue;break}f=K[((b-c|0)+a|0)+16|0]}return f|0}function Aq(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(!(J[a+48>>2]==(b|0)&J[a+52>>2]==(c|0))){a:{if(!(J[a+56>>2]|J[a+60>>2]))break a;if(L[a+12>>1]&4095)d=a+20|0;else{d=J[a>>2];if(d>>> +0>1023)break a;g=J[a+8>>2];if(g>>>0>=d>>>0){h=J[a+4>>2];b:{if(h>>>0>d>>>0){e=J[a+16>>2];break b}f=h+256|0;e=vc(f>>>0>1073741823?-1:f<<2);i=J[a+16>>2];if(i){xc(e,i,h<<2);uc(i);f=J[a+4>>2]+256|0;g=J[a+8>>2];d=J[a>>2]}J[a+4>>2]=f;J[a+16>>2]=e}f=vc(65536);J[a>>2]=d+1;J[(d<<2)+e>>2]=f}J[a+8>>2]=g+1;d=J[a+16>>2]+(g<<2)|0}d=J[d>>2];J[a+20>>2]=d+16;e=J[a+60>>2];J[d+8>>2]=J[a+56>>2];J[d+12>>2]=e;e=J[a+52>>2];J[d>>2]=J[a+48>>2];J[d+4>>2]=e;J[a+12>>2]=J[a+12>>2]+1}J[a+56>>2]=0;J[a+60>>2]=0;J[a+52>>2]=c;J[a+ +48>>2]=b}}function lx(a,b){var c=0,d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;a:{if(!b)break a;c=kc[J[663195]](48)|0;if(!c){J[f>>2]=13586;Hc(0,0,0,0,0,2,2,3,13586,0,0,0,32879,f);break a}J[c>>2]=0;J[c+4>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=2;e=b;b:{c:{if(!a)break c;d=J[a+80>>2];if(!d)break c;e=te(d,b,-1);break b}while(1){d=e;e=d+1|0;if(K[d|0])continue;break}e=0;d=d-b|0;if((d|0)<0)break b;g=kc[J[663198]](d+ +1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}e=xc(g,b,d);H[d+e|0]=0}J[c+32>>2]=a;J[c+8>>2]=e;d:{if(!J[693393])break d;a=J[693390];if(!a)break d;kc[a|0](c)}e=c}fc=f+16|0;return e}function Tpb(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;d=J[b>>2];if(M[d+16>>2]>c>>>0){b=J[d+140>>2];f=L[b+96>>1];e=J[b+56>>2];if(c)b=c-1|0;else b=J[d+148>>2];b=e+P(b,36)|0;c=I[b+20>>1];e=I[b+16>>1];g=L[b+10>>1];h=J[b+24>>2];i=L[b+14>>1];j=L[b+12>>1];J[a+84>>2]=J[b+28>>2];J[a+80>>2]=j;J[a+76>> +2]=i;CN(a,h);a:{b:switch(f-1|0){case 0:H[a+94|0]=1;break a;case 1:H[a+94|0]=3;break a;case 3:H[a+94|0]=4;break a;case 7:break b;default:break a}I[a+92>>1]=256;H[a+94|0]=2}J[a+104>>2]=c;J[a+100>>2]=e;J[a+72>>2]=1651078259;J[a+40>>2]=g<<6;J[a+36>>2]=c<<6;J[a+32>>2]=e<<6;J[a+24>>2]=J[a+80>>2]<<6;J[a+28>>2]=J[a+76>>2]<<6;Xu(a+24|0,L[J[d+140>>2]+6>>1]<<6);a=0}else a=6;return a|0}function cka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=fc-16|0;fc=e;J[e+12>>2]=c;J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0;J[a+28>> +2]=0;J[a+20>>2]=0;J[a+24>>2]=0;a:{if(!K[a+96|0])break a;d=J[a+32>>2];if(!d)break a;uc(d)}b:{if(!K[a+97|0])break b;d=J[a+56>>2];if(!d)break b;uc(d)}J[a+52>>2]=c;c:{d:{e:{if(c>>>0>=9){d=K[a+98|0];if(!(!b|!d)){H[a+96|0]=0;J[a+32>>2]=b;break d}c=vc(c);H[a+96|0]=1;J[a+32>>2]=c;break e}H[a+96|0]=0;J[a+52>>2]=8;J[a+32>>2]=a+44;d=K[a+98|0]}if(d)break d;J[e+8>>2]=8;c=fc-16|0;fc=c;fc=c+16|0;c=e+8|0;d=e+12|0;d=J[(J[d>>2]>2]?c:d)>>2];J[a+60>>2]=d;if(b){c=0;if(d>>>0>7)break c}b=vc(d);c=1;break c}b=0;J[a+ +60>>2]=0;c=0}H[a+97|0]=c;J[a+56>>2]=b;fc=e+16|0;return a|0}function bw(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=fc-16|0;fc=e;g=a+28|0;xe(g,0,1);J[a+20>>2]=0;xe(a+40|0,0,1);xe(a+52|0,0,4);I[a+16>>1]=2;J[a+60>>2]=0;f=c+d|0;I[a+14>>1]=f;I[a+12>>1]=d;I[a+10>>1]=c;I[a+8>>1]=b;c=e+12|0;f=f&65535;d=d&65535;LH(c,f+d|0);J[699344]=0;aa(5153,a+68|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[e+12>>2];J[e+12>>2]=0;a:{b:{if(!c)break b;J[699344]=0;h=J[c+4>>2]-1|0;J[c+4>>2]=h;i=J[699344];J[699344]= +0;if((i|0)==1)break a;if(h)break b;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}b=d+P(f,b&65535)|0;if(b){xe(g,b,1);ri(g,1,0);J[a+20>>2]=J[a+24>>2]}fc=e+16|0;return}ea(0)|0;Bc();B()}a=Z()|0;zc(e+12|0);ba(a|0);B()}function bba(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=fc;e=b+1|0;d=h-((e<<1&-4)+15&-16)|0;fc=d;f=e-c>>1;if((f|0)>0)xc(d,a,f<<2);b=b-f|0;if((b|0)>0){e=(f<<2)+a|0;g=(1-c<<2)+a|0;while(1){J[g>>2]=J[e>>2];e=e+4|0;g=g+8|0;i=b>>>0>1;b=b-1|0;if(i)continue;break}}a:{if((f|0)<=0)break a; +b=(c<<2)+a|0;a=f&7;b:{if(!a){e=f;break b}g=0;e=f;while(1){J[b>>2]=J[d>>2];d=d+4|0;b=b+8|0;e=e-1|0;g=g+1|0;if((a|0)!=(g|0))continue;break}}if(f>>>0<8)break a;while(1){J[b>>2]=J[d>>2];J[b+8>>2]=J[d+4>>2];J[b+16>>2]=J[d+8>>2];J[b+24>>2]=J[d+12>>2];J[b+32>>2]=J[d+16>>2];J[b+40>>2]=J[d+20>>2];J[b+48>>2]=J[d+24>>2];J[b+56>>2]=J[d+28>>2];d=d+32|0;b=b- -64|0;a=e-9|0;e=e-8|0;if(a>>>0<4294967294)continue;break}}fc=h}function gDb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=-1;a:{if(Kh(c,J[a+12>>2]))break a;if(zi(c, +J[a+16>>2]))break a;e=J[c+8>>2];if(e&7)break a;d=K[a+20|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=e|4;return-1}J[c+4>>2]=J[c+4>>2]|32;b=-1;e=J[c+28>>2];J[c+28>>2]=e-1;b:{if((e|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break b}if((bd(c,d)|0)==-1)break a}b=-1;d=J[c+8>>2];if(d&7)break a;a=K[a+21|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;return-1}J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1; +b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=a;break c}if((bd(c,a)|0)==-1)break a}b=0}return b|0}function g0a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+4>>2]=0;if((b|0)!=80){d=J[a>>2];J[d+20>>2]=13;J[d+24>>2]=80;J[J[a>>2]+28>>2]=b;kc[J[J[a>>2]>>2]](a)}if((c|0)!=432){b=J[a>>2];J[b+20>>2]=22;J[b+24>>2]=432;J[J[a>>2]+28>>2]=c;kc[J[J[a>>2]>>2]](a)}b=J[a>>2];c=J[a+12>>2];Ac(a+4|0,0,428);J[a+12>>2]=c;J[a>>2]=b;P5(a);J[a+84>>2]=0;J[a+88>>2]=0;J[a+8>>2]=0;J[a+92>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+120>>2]=0;J[a+124>>2]= +0;J[a+112>>2]=100;J[a+116>>2]=100;J[a+104>>2]=100;J[a+108>>2]=100;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+424>>2]=0;J[a+384>>2]=63;J[a+380>>2]=53280;J[a+376>>2]=8;J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+20>>2]=100;J[a+24>>2]=0}function ds(a,b,c,d){a=a|0;b=+b;c=+c;d=d|0;var e=0,f=0;e=fc-48|0;fc=e;a=J[a>>2];a:{if(!d){J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;O[e+40>>3]=c;O[e+32>>3]=b;J[e+24>>2]=0;J[e+28>>2]=1072693248;J[e>>2]=0;J[e+4>>2]=1072693248; +d=Bj(e,a);f=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=f;f=J[d+44>>2];J[a+40>>2]=J[d+40>>2];J[a+44>>2]=f;f=J[d+36>>2];J[a+32>>2]=J[d+32>>2];J[a+36>>2]=f;f=J[d+28>>2];J[a+24>>2]=J[d+24>>2];J[a+28>>2]=f;f=J[d+20>>2];J[a+16>>2]=J[d+16>>2];J[a+20>>2]=f;f=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=f;break a}J[e+16>>2]=0;J[e+20>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=1072693248;O[e+40>>3]=c;O[e+32>>3]=b;J[e+24>>2]=0;J[e+28>>2]=1072693248;Bj(a,e)}fc=e+48|0}function wsa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d| +0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){J[a>>2]=J[b>>2];d=J[b+4>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;d=J[b+4>>2]}else d=0;J[a+4>>2]=d;J[a+8>>2]=J[b+8>>2];b=b+12|0;a=a+12|0;d=(c|0)>0;c=c-1|0;if(d)continue;break b}while(1){d=c;J[a>>2]=J[b>>2];c=J[b+4>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;c=J[b+4>>2]}else c=0;J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];c=J[b+4>>2];J[b+4>>2]=0;c:{if(!c)break c;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break c;J[699344]=0; +$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=d-1|0;b=b+12|0;a=a+12|0;if((d|0)>0)continue;break}}return}ea(0)|0;Bc();B()}function tya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=fc-32|0;fc=f;a:{b:{if((a|0)!=(b|0)){bw(a,L[b+8>>1],L[b+10>>1],c);I[a+16>>1]=L[b+16>>1];if(!L[a+8>>1])break b;g=J[a+24>>2]+L[a+12>>1]|0;c=0;while(1){c:{if(J[b+20>>2])break c;d=J[b+36>>2];if(!d)break c;Fo(b,d)}d=L[b+14>>1];d:{if(L[b+8>>1]<=c>>>0){e=d;d=L[b+12>>1];if(J[685890]<(e+d|0)){a=Qc(f+8|0,2399211,2399543, +592,2423452,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}e=d+J[685889]|0;break d}e=L[b+12>>1]+(J[b+20>>2]+P(c,d)|0)|0}g=xc(g,e,L[a+10>>1])+L[a+14>>1]|0;c=c+1|0;if(c>>>0>1])continue;break}break b}if(L[a+12>>1]>=(c|0))break b;KH(a,c)}fc=f+32|0;return}B()}function Vd(a,b){var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;c=J[a+272>>2];if(c>>>0>>0)while(1){e=J[a+268>>2];f=J[a+272>>2];Dg(a,e,f);Ae(a,e,f);b=b-c|0;if(c>>>0>>0)continue;break}if(b){c=J[a+268>> +2];Dg(a,c,b);Ae(a,c,b)}J[a+744>>2]=129;b=J[a+204>>2];c=J[a+348>>2];Dg(a,d+12|0,4);a:{b:{c:{if(c&536870912){if((b&768)==768)break c;break b}if(!(b&2048))break b}b=0;break a}b=0;c=K[d+12|0]|K[d+13|0]<<8|(K[d+14|0]<<16|K[d+15|0]<<24);if(J[a+384>>2]==(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)))break a;c=J[a+204>>2];d:{e:{if(K[a+351|0]&32){if(!(c&512))break e;break d}if(!(c&1024))break d}bJ(a,58561);b=1;break a}f:{if(K[a+206|0]&128){bJ(a,58561);break f}ww(a,58561);B()}}fc=d+16|0;return b}function R8a(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;g=c-b|0;e=g>>3;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>3>>>0){f=J[a+4>>2]-d|0;h=f>>3;if(e>>>0>h>>>0){cd(d,b,f);d=J[a+4>>2];b=(h<<3)+b|0;if((c|0)!=(b|0))while(1){e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;d=d+8|0;b=b+8|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=cd(d,b,g)+(e<<3)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=536870912)break a;d=f>>2;d=f>>>0>=2147483640?536870911:d>>>0>e>>> +0?d:e;if(d>>>0>=536870912)break a;e=d<<3;d=vc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-8&-8)+8|0;d=xc(d,c,b)+b|0}J[a+4>>2]=d;return}Fg(a);B()}function Gaa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=K[a+432|0];if(!(K[a+344|0]|(K[a+496|0]|K[a+476|0]?e:0)))return 0;a:{c=J[b+32>>2];b:{if(!c){c=J[b+12>>2];if(!c)break a;while(1){if(J[c>>2]==1041&K[c+28|0]==K[b+28|0])break b;c=J[c+12>>2];if(c)continue;break}break a}if(K[c+28|0]!=K[b+28|0])break a}J[b+32>>2]=c;b=J[c+56>>2];d=b-1|0;if(d>>> +0<=2147483645){J[c+56>>2]=d;b=d}c:{if(!(!K[a+344|0]|e|b>>>0<2147483647)){J[a+456>>2]=2147483647;J[a+448>>2]=2147483647;J[a+452>>2]=2147483647;break c}if(!b){if(J[a+696>>2]!=(c|0))break c;H[a+305|0]=0;break c}if(J[a+516>>2]){J[a+516>>2]=c;break c}J[a+516>>2]=J[c+8>>2]}if(!(J[c+32>>2]|!K[a+460|0]))H[a+460|0]=0;return 0}Jc(a,1069,0,0);return 1069}function r5a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(J[a+136>>2]!=J[b>>2]){c=J[a+304>>2];e=a+308|0;if((c|0)!=(e|0))while(1){J[c+120>>2]=1;d=J[c+4>>2];a:{if(d)while(1){c= +d;d=J[c>>2];if(d)continue;break a}while(1){d=c;c=J[c+8>>2];if((d|0)!=J[c>>2])continue;break}}if((c|0)!=(e|0))continue;break}g=a+316|0;c=J[g>>2];f=a+320|0;if((c|0)!=(f|0))while(1){J[c+120>>2]=1;d=J[c+4>>2];b:{if(d)while(1){c=d;d=J[c>>2];if(d)continue;break b}while(1){d=c;c=J[c+8>>2];if((d|0)!=J[c>>2])continue;break}}if((c|0)!=(f|0))continue;break}ki(a+304|0,J[a+308>>2]);J[a+304>>2]=e;J[a+308>>2]=0;J[a+312>>2]=0;ki(g,J[a+320>>2]);J[a+316>>2]=f;J[a+320>>2]=0;J[a+324>>2]=0;J[a+136>>2]=J[b>>2];bM(a)}} +function ewa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=fc-16|0;fc=j;n=e&1;d=e>>>1|0;o=g<<1;p=h<<2;while(1){h=d;while(1){c=i;g=K[c+2|0];i=K[c+3|0];k=j+12|0;l=j+8|0;m=j+4|0;ie(J[a+68>>2],K[c|0],g,i,k,l,m);e=b;J[e>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;ie(J[a+68>>2],K[c+1|0],g,i,k,l,m);J[e+4>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;i=c+4|0;b=e+8|0;h=h-1|0;if(h)continue;break}a:{if(!n){i=4;b=2;break a}ie(J[a+68>> +2],K[c+4|0],K[c+6|0],K[c+7|0],j+12|0,j+8|0,j+4|0);i=8;J[b>>2]=J[j+12>>2]|J[j+8>>2]<<8|J[j+4>>2]<<16|-16777216;b=3}b=((b<<2)+e|0)+p|0;i=o+(c+i|0)|0;f=f-1|0;if(f)continue;break}fc=j+16|0}function PE(a,b,c,d){var e=0,f=0,g=0,h=0;if(!K[a+3748|0]){while(1){e=g>>>1|0;e=g&1?e^-306674912:e;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;e=e&1?f^-306674912:f;f=e>>>1|0;J[((g<<2)+a|0)+2724>>2]= +e&1?f^-306674912:f;g=g+1|0;if((g|0)!=256)continue;break}H[a+3748|0]=1}a:{if((d|0)<=0)break a;f=d&1;b:{if((d|0)==1){g=0;break b}h=d&-2;g=0;d=a+2724|0;e=0;while(1){b=J[d+(((K[c+g|0]^b)&255)<<2)>>2]^b>>>8;b=J[d+(((b^K[(g|1)+c|0])&255)<<2)>>2]^b>>>8;g=g+2|0;e=e+2|0;if((h|0)!=(e|0))continue;break}}if(!f)break a;b=J[((((K[c+g|0]^b)&255)<<2)+a|0)+2724>>2]^b>>>8}return b}function NM(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;j=J[b+4>>2]+(c<<4)|0;c=J[j+4>>2];if(!c)return 0;n=J[j+12>>2]+(P(c,d)<< +1)|0;while(1){a:{if(!L[b+8>>1]){d=65536;break a}c=J[J[b+16>>2]+(J[J[j+8>>2]+(k<<2)>>2]<<2)>>2];l=0;d=65536;while(1){g=d;e=J[c+4>>2];h=J[c>>2];b:{if((e|0)<(h|0))break b;i=J[c+8>>2];if(!e|(i|0)<(e|0))break b;if((h|0)<0&(i|0)>0)break b;f=J[J[J[a+736>>2]+8>>2]+(l<<2)>>2];if((f|0)==(e|0))break b;d=0;if((f|0)<=(h|0)|(f|0)>=(i|0))break a;if((e|0)>(f|0)){g=Od(g,f-h|0,e-h|0);break b}g=Od(g,i-f|0,i-e|0)}d=g;c=c+12|0;l=l+1|0;if(l>>>0>1])continue;break}}m=Wc(d,L[(k<<1)+n>>1]<<16)+m|0;k=k+1|0;if(k>>>0< +M[j+4>>2])continue;break}return m+32768>>16}function HD(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;g=c-b|0;e=g>>3;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>3>>>0){f=J[a+4>>2]-d|0;h=f>>3;if(e>>>0>h>>>0){cd(d,b,f);d=J[a+4>>2];b=(h<<3)+b|0;if((c|0)!=(b|0))while(1){e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;d=d+8|0;b=b+8|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=cd(d,b,g)+(e<<3)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=536870912)break a; +d=f>>2;d=f>>>0>=2147483640?536870911:d>>>0>e>>>0?d:e;if(d>>>0>=536870912)break a;e=d<<3;d=vc(e);J[a+4>>2]=d;J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-8&-8)+8|0;d=xc(d,c,b)+b|0}J[a+4>>2]=d;return}nj(a);B()}function DX(a,b){var c=0,d=0;J[a>>2]=2395496;J[a+4>>2]=0;J[699344]=0;c=_(4,52)|0;d=J[699344];J[699344]=0;a:{if((d|0)!=1){J[c+48>>2]=5208;J[c+44>>2]=5209;J[c+40>>2]=5209;J[c+36>>2]=5210;J[c+32>>2]=5211;J[c+28>>2]=1;J[c+20>>2]=0;J[c+24>>2]=-1;J[c+12>>2]=0;J[c+16>>2]=-1;J[c>>2]=2394472;J[c+ +4>>2]=0;J[c+8>>2]=0;J[699344]=0;ca(5212,c|0,0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[c+4>>2]=J[c+4>>2]+1;b=J[a+4>>2];b:{if(!b)break b;d=J[b+4>>2]-1|0;J[b+4>>2]=d;if(d)break b;kc[J[J[b>>2]+4>>2]](b)}J[a+4>>2]=c;return a}b=Z()|0;J[a>>2]=2392964;ba(b|0);B()}d=Z()|0;uc(c);J[a>>2]=2392964;b=J[a+4>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}ba(d|0);B()}function uJa(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;a:{b:{c:{if(a){if(!b)break c;if(!c)break b; +if(Xp(J[a+8>>2],4821,c))d:{e=J[a+8>>2];if(!e)break a;g=J[e+8>>2];e:{f:{g:{h:{d=J[e>>2];if(d){h=1;j=d&1;if((d|0)!=1)break h;d=0;break g}J[e>>2]=0;break f}d=d&-2;while(1){f=0;i:{if(!h)break i;f=0;if(!(kc[J[g>>2]](a,b,c)|0))break i;f=(kc[J[g+4>>2]](a,b,c)|0)!=0}h=f;g=g+8|0;i=i+2|0;if((d|0)!=(i|0))continue;break}d=!f}if(j){if(d)break e;h=(kc[J[g>>2]](a,b,c)|0)!=0}J[e>>2]=0;if(!h)break d}return 1}J[e>>2]=0}return 0}fa(2354499,2354795,2113,2371251);B()}fa(2355263,2354795,2114,2371251);B()}fa(2355439,2354795, +2115,2371251);B()}fa(2363606,2354795,2439,2371612);B()}function Xhb(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;g=fc-16|0;fc=g;h=J[a+532>>2];d=6;a:{if(!h)break a;i=J[h+4>>2];LM(J[h+136>>2],g,i);j=b>>>0>i>>>0?i:b;if(j)while(1){n=k<<2;l=J[n+g>>2];d=P(k,12)+h|0;e=J[d+96>>2];b:{if((l|0)>J[e>>2]){a=1;f=K[d+88|0];if(f>>>0>1)while(1){m=a<<2;o=J[m+e>>2];if((l|0)<=(o|0)){d=J[d+92>>2];f=m-4|0;a=J[d+f>>2];d=J[d+m>>2];e=J[e+f>>2];a=P(Cd(l-e|0,o-e|0),d-a|0)+(a<<16)|0;break b}a= +a+1|0;if((f|0)!=(a|0))continue;break}a=J[(J[d+92>>2]+(f<<2)|0)-4>>2]<<16;break b}a=J[J[d+92>>2]>>2]<<16}J[c+n>>2]=a;k=k+1|0;if((j|0)!=(k|0))continue;break}d=0;if(b>>>0<=i>>>0)break a;Ac((j<<2)+c|0,0,b-j<<2);d=0}fc=g+16|0;return d|0}function Cba(a,b){var c=0,d=0,e=0,f=0;d=J[b+8>>2];a:{if(d&7)break a;c=K[a+12|0];e=K[a|0];f=J[b+64>>2];if(!((f|0)<0|(f|0)>J[b+60>>2])){J[b+8>>2]=d|4;break a}d=e|c<<5;J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+ +24>>2]=c+1;H[c|0]=d;break a}bd(b,d&255)}if(J[a+4>>2]>0){d=0;while(1){c=J[J[a+8>>2]+(d<<2)>>2];b:{if(!K[a|0]){e=J[b+8>>2];if(e&7)break b;f=J[b+64>>2];if(!((f|0)<0|(f|0)>J[b+60>>2])){J[b+8>>2]=e|4;break b}c=c>>>8&248;J[b+4>>2]=J[b+4>>2]|32;e=J[b+28>>2];J[b+28>>2]=e-1;if((e|0)>0){J[b+60>>2]=J[b+60>>2]+1;e=J[b+24>>2];J[b+24>>2]=e+1;H[e|0]=c;break b}bd(b,c);break b}Kh(b,c)}d=d+1|0;if((d|0)>2])continue;break}}}function tla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-80|0;fc=d;e=J[a+584>>2]; +a:{b:switch(b-65560|0){case 0:b=e;e=J[c>>2];J[b>>2]=e;b=3;c=32;c:{d:switch(e|0){case 2:b=1;J[d+48>>2]=1;ke(a,277,d+48|0);break c;case 3:b=1;c=8;break c;default:b=J[a>>2];a=J[a+628>>2];J[d>>2]=e;Uc(a,b,81500,d);b=0;break a;case 0:break c;case 1:break d}b=2;c=16}J[d+32>>2]=c;ke(a,258,d+32|0);J[d+16>>2]=b;ke(a,339,d+16|0);if(K[a+13|0]&4)b=Dm(a);else b=-1;J[a+508>>2]=b;f=a,g=wj(a),J[f+588>>2]=g;b=1;break a;case 1:c=J[c>>2];J[e+4>>2]=c;b=1;if(c>>>0<2)break a;b=J[a>>2];a=J[a+628>>2];J[d+64>>2]=c;Uc(a,b, +81682,d- -64|0);b=0;break a;default:break b}b=kc[J[e+28>>2]](a,b,c)|0}fc=d+80|0;return b|0}function s0(a){a=a|0;var b=0,c=0;J[a>>2]=2194356;b=J[a+20>>2];if(b)uc(Zc(b));a:{b=J[a+24>>2];if(!((b|0)==2654368|!b|(b|0)==2653344)){b=0;while(1){c=J[J[a+24>>2]+(b<<2)>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;b=b+1|0;if((b|0)!=256)continue;break}b=J[a+24>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+328>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b| +0)==1)break a}b=J[a+340>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+344>>2];if(!((b|0)==2657760|(b|0)==2657424|(!b|(b|0)==2656960))){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}return dq(a)|0}ea(0)|0;Bc();B()}function Yk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-48|0;fc=d;b=J[b>>2];e=J[a>>2];a:{if(!c){a=J[b+44>>2];J[d+40>>2]=J[b+40>>2];J[d+44>>2]=a;a=J[b+36>>2];J[d+32>>2]=J[b+32>>2];J[d+36>>2]=a;a=J[b+28>>2];J[d+24>>2]=J[b+24>>2];J[d+28>>2]=a;a= +J[b+20>>2];J[d+16>>2]=J[b+16>>2];J[d+20>>2]=a;a=J[b+12>>2];J[d+8>>2]=J[b+8>>2];J[d+12>>2]=a;a=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=a;b=Bj(d,e);a=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=a;a=J[b+44>>2];J[e+40>>2]=J[b+40>>2];J[e+44>>2]=a;a=J[b+36>>2];J[e+32>>2]=J[b+32>>2];J[e+36>>2]=a;a=J[b+28>>2];J[e+24>>2]=J[b+24>>2];J[e+28>>2]=a;a=J[b+20>>2];J[e+16>>2]=J[b+16>>2];J[e+20>>2]=a;a=J[b+12>>2];J[e+8>>2]=J[b+8>>2];J[e+12>>2]=a;break a}Bj(e,b)}fc=d+48|0}function n_(a){a=a|0;var b=0,c=0;J[a>>2]=2343848;b=J[a+ +3480>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[a+3480>>2]=0;b=J[a+3484>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+3484>>2]=0;b=J[a+3488>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+3488>>2]=0;b=J[a+3492>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+3492>>2]=0;b=J[a+3468>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+3468>>2]=0;b=J[a+4>>2];c=J[J[b>>2]+24>>2];J[699344]=0;$(c| +0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function lN(a,b,c,d){var e=0,f=0;e=J[a+8264>>2];a:{if(e>>>0>b>>>0){e=0;if(yd(J[a>>2],J[a+68>>2]))break a;yx(a+12|0);J[a+28>>2]=0;J[a+12>>2]=a+72;J[a+16>>2]=0;e=a+8264|0;J[a+8272>>2]=e;J[a+24>>2]=a+4168;J[a+8268>>2]=e;J[a+8264>>2]=0;e=0}b:{if(b>>>0>e>>>0){b=b-e|0;c:{while(1){f=J[a+8268>>2];e=J[a+8272>>2]-f|0;e=b>>>0>e>>>0?e:b;J[a+8268>>2]=e+f;J[a+8264>>2]=e+J[a+8264>>2];b=b-e|0;if(!b)break c; +if(!E7(a))continue;break}return 0}if(d)break b;return 0}if(d)break b;return 0}e=0;while(1){f=J[a+8268>>2];b=J[a+8272>>2]-f|0;b=b>>>0>>0?b:d;c=xc(c,f,b);J[a+8268>>2]=b+J[a+8268>>2];J[a+8264>>2]=b+J[a+8264>>2];e=b+e|0;d=d-b|0;if(!d)break a;c=b+c|0;if(!E7(a))continue;break}}return e}function dH(a,b,c,d){var e=0,f=0,g=0,h=0;h=it(a,b,c);e=J[c>>2];f=K[e+622|0];a:{b:{g=J[d>>2];if(K[g+622|0]){if(!f)break a;break b}if(!f)break b;return h}if(M[g+616>>2]>2])break a;return h}J[c>>2]=g;J[d>>2]=e;e= +J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=h+1|0;e=J[b>>2];f=K[e+622|0];g=J[c>>2];c:{d:{e:{if(K[g+622|0]){if(f)break e;break d}if(f)break c}if(M[g+616>>2]>=M[e+616>>2])break c}J[b>>2]=g;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;d=h+2|0;c=J[a>>2];e=K[c+622|0];f=J[b>>2];f:{g:{if(K[f+622|0]){if(e)break g;break f}if(e)break c}if(M[f+616>>2]>=M[c+616>>2])break c}J[a>>2]=f;J[b>>2]=c;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;d=h+3|0}return d}function R_(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+4>> +2];d=Dc(28);J[d+8>>2]=0;J[d+12>>2]=0;J[d+4>>2]=b;J[d>>2]=0;J[d+24>>2]=-1414746709;J[d+16>>2]=0;J[d+20>>2]=0;e=J[a>>2];a:{if(!e)break a;b=e;while(1){c=b;b=J[b+8>>2];if(b)continue;break}b=J[c>>2];if(!b)break a;while(1){b:{if(!e)break b;c=J[a+12>>2];c:{if(!c)break c;f=J[a+4>>2];d:{if(f){c=kc[f|0](J[e>>2],b)|0;break d}if(b>>>0>>0)break c;c=b>>>0>c>>>0?-1:0}if(!c)break b}Er(a,0,b,a,0,0);if(J[a+8>>2]){DJ(a);Er(a,0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}yJ(d,Z4(J[J[a>>2]>>2]),k4(J[J[a>>2]+4>>2])); +e=J[a>>2];b=J[e+12>>2];if(!b)break a;while(1){c=b;b=J[b+8>>2];if(b)continue;break}b=J[c>>2];if(b)continue;break}}return d}function bka(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;f=fc-16|0;fc=f;g=J[b+68>>2];if(g){g=kc[J[J[g>>2]+24>>2]](g)|0;a:{b:{if(!(!J[b+64>>2]|(c|d)!=0&(g|0)<=0))if(!(kc[J[J[b>>2]+24>>2]](b)|0))break b;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}if(e>>>0>=3){J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}h=J[b+64>>2];d=vEb(g,0,c,d); +c=(g|0)>0;if(Ev(h,c?d:0,c?jc:0,e)){J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}i=a,j=IG(J[b+64>>2]),J[i+8>>2]=j;J[a+12>>2]=jc;J[a>>2]=0;J[a+4>>2]=0;c=J[b+72>>2];b=J[b+76>>2];J[f>>2]=c;J[f+4>>2]=b;J[f+8>>2]=c;J[f+12>>2]=b;b=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=b}fc=f+16|0;return}yv();B()}function R8(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,r=0;j=P(c,1348)+a|0;f=J[j- -64>>2];g=J[j+56>>2];i=P(c,7676)+b|0;k=J[i+44>>2];b=Wc(M[b+40>>2]/40|0,k);c=1;a:{if((g|0)<=0)break a; +a=J[i+260>>2];if(!a)break a;p=(b|0)>=32?32:b;q=P(g,44)+f|0;r=i+264|0;while(1){if(c){c=0;b=p;g=0;while(1){h=P(c,28)+r|0;d=J[h+24>>2];if(!(!(d&1)|(d&2)>>>1^J[j+68>>2]!=H[f+13|0])){a=I[f>>1];l=J[h>>2];m=a-l|0;d=m>>31;n=J[h+12>>2];o=a-n|0;e=o>>31;d=(d^m)-d>>>0>(e^o)-e>>>0;e=a-(d?n:l)|0;a=e>>31;e=Wc((a^e)-a|0,k);a=(e|0)<(b|0);b=a?e:b;g=a?d?h+12|0:h:g;a=J[i+260>>2]}c=c+1|0;if(c>>>0>>0)continue;break}if(g)J[f+20>>2]=g;c=a}else c=0;f=f+44|0;if(q>>>0>f>>>0)continue;break}}}function Ls(a,b,c,d,e,f,g,h){var i= +0,j=0,k=0,l=0;j=fc-16|0;fc=j;if((b^-1)+2147483631>>>0>=c>>>0){if(K[a+11|0]>>>7|0)i=J[a>>2];else i=a;k=i;i=j+4|0;l=i;if(b>>>0<1073741799){J[j+12>>2]=b<<1;J[j+4>>2]=b+c;c=fc-16|0;fc=c;fc=c+16|0;c=j+12|0;c=J[(M[i>>2]>2]?c:i)>>2];if(c>>>0>=11){i=c+16&-16;c=i-1|0;c=(c|0)==11?i:c}else c=10;c=c+1|0}else c=2147483631;Vs(l,c);c=J[j+4>>2];if(e)hk(c,k,e);if(g)hk(c+e|0,h,g);i=e+f|0;h=d-i|0;if((d|0)!=(i|0))hk((c+e|0)+g|0,(e+k|0)+f|0,h);b=b+1|0;if((b|0)!=11)pz(k,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648| +J[j+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;b=a;a=h+(e+g|0)|0;J[b+4>>2]=a;H[j+12|0]=0;H[a+c|0]=K[j+12|0];fc=j+16|0;return}_d(a);B()}function zV(a,b,c){var d=0;d=fc-32|0;fc=d;J[699344]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2426580;ca(5638,d+12|0,d+16|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1){J[d+16>>2]=2426484;b=J[d+28>>2];if(b){H[b|0]=0;uc(J[d+28>>2])}J[d+28>>2]=0;nd(d+16|0);a:{b=J[d+12>>2];b:{if(b){c=J[c>>2];J[699344]=0;ca(5640,a|0,b|0,c|0);a=J[699344];J[699344]=0;if((a| +0)==1)break a;a=J[d+12>>2];J[d+12>>2]=0;if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}ea(0)|0;Bc();B()}J[a>>2]=0}fc=d+32|0;return}a=Z()|0;zc(d+12|0);ba(a|0);B()}a=Z()|0;rh(d+16|0);ba(a|0);B()}function cS(a){var b=0,c=0,d=0;c=fc-16|0;fc=c;a:{b:{if(!J[(J[J[a>>2]-12>>2]+a|0)+24>>2])break b;J[699344]=0;aa(6751,c+8|0,a|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){d:{if(!K[c+8|0])break d; +b=J[(J[J[a>>2]-12>>2]+a|0)+24>>2];J[699344]=0;b=_(6752,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){if((b|0)!=-1)break d;b=J[J[a>>2]-12>>2];J[699344]=0;da(6753,a+b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break d}b=ea(0)|0;aS(c+8|0);break c}aS(c+8|0);break b}b=ea(0)|0}oa(b|0)|0;b=J[J[a>>2]-12>>2];J[699344]=0;$(6742,a+b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;ta()}fc=c+16|0;return}a=Z()|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)!=1){ba(a|0);B()}ea(0)|0;Bc();B()}function b2(a,b,c){var d= +0,e=0,f=0;if(!(J[b+4>>2]!=2|J[c+4>>2]!=2|(J[a+4>>2]!=2?a:0))){e=J[b+20>>2];f=J[c+8>>2];d=J[c+36>>2];if(d)d=J[d+8>>2];else d=0;d=SK(e,f,d);e=J[b+32>>2];if((e|0)!=J[c+32>>2])Xm(c,e);e=J[b+20>>2];J[c+28>>2]=a;J[c+20>>2]=e;a:{b:{if(a){J[c+24>>2]=J[a+24>>2];J[a+24>>2]=c;b=J[c+24>>2];if(b)break b;break a}J[c+24>>2]=b}J[b+28>>2]=c}if(!(J[c+28>>2]|!e))J[e+44>>2]=c;c:{if(!d|J[d+4>>2]==16)break c;b=J[d+20>>2];if(!b)break c;a=J[b+44>>2];d:{e:{if((d|0)==(a|0)){a=J[d+24>>2];J[b+44>>2]=a;b=0;if(a)break e;break d}while(1){b= +a;if(!a)break c;a=J[a+24>>2];if((d|0)!=(a|0))continue;break}a=J[d+24>>2];J[b+24>>2]=a;if(!a)break d}J[a+28>>2]=b}nx(d)}d=c}return d}function Vwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+636>>2]+J[a+616>>2]|0;e=J[a+588>>2];b=J[a+644>>2];c=J[a+540>>2];if(!c)c=J[J[a+528>>2]+88>>2];a:{b:{c:{if(K[c+56|0]){if((e|0)>0)break c;c=0;break a}if((e|0)>0)break b;c=1;break a}e=0;while(1){f=K[d+2|0];g=K[d|0];h=K[d+1|0];d:{if(!((g|0)!=L[c+838>>1]|(h|0)!=L[c+840>>1]|(f|0)!=L[c+842>>1])){H[b|0]=0;H[b+1|0]=0; +H[b+2|0]=0;H[b+3|0]=0;break d}H[b+3|0]=255;H[b+2|0]=f;H[b+1|0]=h;H[b|0]=g}b=b+4|0;d=d+3|0;e=e+1|0;if((e|0)>2])continue;break}c=0;break a}while(1){H[b|0]=K[d|0];H[b+1|0]=K[d+1|0];c=K[d+2|0];H[b+3|0]=255;H[b+2|0]=c;b=b+4|0;d=d+3|0;c=1;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=c;return 0}function UQa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=vc(328);J[699344]=0;c=aa(3601,g|0,a|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[c>>2]=2218336;b=J[a+184>>2];J[c+184>>2]=b;J[699344]=0;b=aa(3551, +b|0,1280)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[c+180>>2]=b;xc(b,J[a+180>>2],P(J[c+184>>2],1280));J[c+316>>2]=J[a+316>>2];b=J[a+320>>2];J[c+320>>2]=b;b:{if((b|0)>0){b=0;while(1){d=b<<2;e=J[(d+a|0)+188>>2];f=J[J[e>>2]+8>>2];J[699344]=0;e=_(f|0,e|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break b;J[(c+d|0)+188>>2]=e;b=b+1|0;if((b|0)>2])continue;break}}return c|0}}b=Z()|0;J[c>>2]=2218236;a=J[c+8>>2];if(!a)break a;kc[J[J[a>>2]+4>>2]](a);break a}b=Z()|0}uc(g);ba(b|0);B()}function Ou(a,b){var c= +0,d=0,e=0,f=0,g=0;a:{if(!b)break a;e=K[a+27|0];c=e<<24>>24;d=K[b+27|0];g=d<<24>>24;c=(c|0)<0;e=c?J[a+20>>2]:e;g=(g|0)<0;f=0;b:{if((e|0)!=((g?J[b+20>>2]:d)|0))break b;if(e){d=a+16|0;d=c?J[d>>2]:d;c=b+16|0;f=0;if(qd(d,g?J[c>>2]:c,e))break b}d=K[a+15|0];c=d<<24>>24;e=K[b+15|0];g=e<<24>>24;g=(g|0)<0;f=g?J[b+8>>2]:e;c=(c|0)<0;e=c?J[a+8>>2]:d;if((f|0)!=(e|0))break a;if(e){d=a+4|0;d=c?J[d>>2]:d;c=b+4|0;f=0;if(qd(d,g?J[c>>2]:c,e))break b}if(J[a+64>>2]!=J[b+64>>2]|J[a+52>>2]!=J[b+52>>2]|(J[a+40>>2]!=J[b+40>> +2]|O[a+32>>3]!=O[b+32>>3]))break a;if(J[a+44>>2]!=J[b+44>>2])break a;f=0;if(K[a+48|0]!=K[b+48|0])break b;f=K[a+49|0]==K[b+49|0]}return f}return 0}function CCa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-48|0;fc=d;a:{if(J[b+8>>2]==4){if(J[b+44>>2]<=(c|0)){BH(d+16|0,2398577,b+12|0);a=J[d+16>>2];a=J[(a?a+12|0:2743576)>>2];J[699344]=0;a=ja(5178,d+24|0,a|0,2389637,384,2401717,0)|0;b=J[699344];J[699344]=0;b:{c:{if((b|0)!=1){J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;B()}e=Z()| +0;break b}e=Z()|0;Kc(a)}wc(d+16|0);ba(e|0);B()}f=b+40|0;b=J[b+48>>2];d:{if(!b|(c|0)<=0)break d;while(1){b=J[b>>2];e=e+1|0;if((e|0)>=(c|0))break d;if(b)continue;break}}J[d+12>>2]=f;J[d+8>>2]=b;if(!b)break a;c=J[b+8>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;b=J[b+8>>2]}else b=0;J[a>>2]=b;fc=d+48|0;return}gw(b,4);B()}xj(d+8|0,f);B()}function wtb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=K[b+36| +0];c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+13|0]=c;H[d+14|0]=c>>>8;H[d+15|0]=c>>>16;H[d+16|0]=c>>>24;c=J[b+44>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+17|0]=c;H[d+18|0]=c>>>8;H[d+19|0]=c>>>16;H[d+20|0]=c>>>24;c=J[b+48>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+21|0]=c;H[d+22|0]=c>>>8;H[d+23|0]=c>>>16;H[d+24|0]=c>>>24;c=J[b+52>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+25|0]=c;H[d+26|0]=c>>>8;H[d+27|0]=c>>>16;H[d+28|0]=c>>>24;return Ce(a,J[b>>2],21,d+8|0)| +0}function wJ(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;i=O[a+24>>3];j=O[a+40>>3];k=d*i+j*e;O[a+40>>3]=k;h=d;d=O[a+16>>3];l=O[a+32>>3];e=h*d+l*e;O[a+32>>3]=e;h=b*i+j*c;O[a+24>>3]=h;b=b*d+l*c;O[a+16>>3]=b;d=f*d+l*g+O[a+48>>3];O[a+48>>3]=d;g=f*i+j*g+O[a+56>>3];O[a+56>>3]=g;f=1E10;a:{if(!(b>1E10)){f=-1E10;if(!(b<-1E10))break a}O[a+16>>3]=f}c=1E10;b:{if(!(h>1E10)){c=-1E10;if(!(h<-1E10))break b}O[a+24>>3]=c}c=1E10;c:{if(!(e>1E10)){c=-1E10;if(!(e<-1E10))break c}O[a+32>>3]=c}e=1E10;d:{if(!(k>1E10)){e=-1E10; +if(!(k<-1E10))break d}O[a+40>>3]=e}e=1E10;e:{if(!(d>1E10)){e=-1E10;if(!(d<-1E10))break e}O[a+48>>3]=e}e=1E10;f:{if(!(g>1E10)){e=-1E10;if(!(g<-1E10))break f}O[a+56>>3]=e}}function sFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;f=vc(356);a:{b:{c:{d:{e:{d=J[b>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break e;c=J[b>>2]}J[699344]=0;J[e+12>>2]=c;b=aa(5215,f|0,e+12|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[e+12>>2]=0;f:{if(!c)break f;J[699344]=0;f= +J[c+4>>2]-1|0;J[c+4>>2]=f;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(f)break f;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break b}J[a>>2]=0;vd(a,b);J[699344]=0;$(5216,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;zc(a);ba(b|0);B()}c=Z()|0;break c}c=Z()|0;zc(e+12|0)}uc(f);ba(c|0);B()}ea(0)|0;Bc();B()}fc=e+16|0}function jD(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=353348;b=J[a+8>>2];d=J[a+12>>2];if((b|0)!=(d|0)){while(1){c=J[b>>2];if(c){uc(ZL(c));d=J[a+12>>2]}b=b+4|0;if((d| +0)!=(b|0))continue;break}b=J[a+8>>2]}J[a+12>>2]=b;c=J[a+32>>2];if(c){e=c-4|0;b=J[e>>2];if(b){d=P(b,20)+c|0;while(1){b=d-20|0;if(H[d-9|0]<0)uc(J[b>>2]);d=b;if((b|0)!=(c|0))continue;break}}uc(e);J[a+32>>2]=0}a:{if(!J[a+48>>2])break a;b=J[a+44>>2];d=J[b>>2];c=J[J[a+40>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+48>>2]=0;c=a+40|0;if((c|0)==(b|0))break a;while(1){d=J[b+4>>2];if(H[b+19|0]<0)uc(J[b+8>>2]);uc(b);b=d;if((c|0)!=(b|0))continue;break}}if(H[a+31|0]<0)uc(J[a+20>>2]);b=J[a+8>>2];if(b){J[a+12>>2]=b;uc(b)}return a| +0}function WWa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Fe(b,K[a+228|0]);To(a,b);c=J[a+8>>2];if(c&32768){d=O[a+232>>3]*100;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}zd(b,c);d=O[a+240>>3]*100;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}zd(b,c);d=O[a+248>>3]*100;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}zd(b,c);d=O[a+256>>3]*100;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}zd(b,c);c=J[a+8>>2]}e:{if(!(c&65536))break e;zd(b,J[a+268>>2]-J[a+264>>2]>>3);e=J[a+264>>2];if((e|0)==J[a+ +268>>2])break e;c=0;while(1){d=O[(c<<3)+e>>3]*1E4;f:{if(R(d)<2147483648){e=~~d;break f}e=-2147483648}zd(b,e);c=c+1|0;e=J[a+264>>2];if(c>>>0>2]-e>>3>>>0)continue;break}}}function Bm(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;Pj(c+8|0,a,0);J[699344]=0;ca(5401,c|0,b|0,0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[c>>2];e=J[(a?a+12|0:2743576)>>2];a=J[c+8>>2];f=J[(a?a+12|0:2743576)>>2];while(1){g=d+f|0;a=K[g|0];if(!(!(!a|(a|0)==63)&(a|0)!=35)){a=0;while(1){h=a+e|0;b=K[h|0];if(!b| +(b|0)==35|(b|0)==63)break a;a=a+1|0;continue}}d=d+1|0;continue}}a=Z()|0;wc(c+8|0);ba(a|0);B()}b:{if((a|0)==(d|0)){b=0;if(Ic(g,h))break b;b=!ud(f,e,d);break b}if(!((a+1|0)!=(d|0)|K[a+f|0]!=47)){b=0;if(Ic(g,h))break b;b=!ud(f,e,a);break b}b=0;if((d+1|0)!=(a|0)|K[d+e|0]!=47)break b;if(Ic(g,h))break b;b=!ud(f,e,d)}wc(c);wc(c+8|0);fc=c+16|0;return b|0}function TX(a,b,c){var d=0,e=0;d=fc-16|0;fc=d;e=J[a+200>>2];if(e&1){a:{if(!(!b|!(K[b+9|0]&2))){fd(a,67524);Vd(a,c);break a}if(e&4)J[a+200>>2]=e|8;if((c| +0)!=7){fd(a,67545);Vd(a,c);break a}c=d+9|0;Dg(a,c,7);Ae(a,c,7);if(Vd(a,0))break a;H[d+6|0]=K[d+15|0];c=K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14|0]<<24);I[d+2>>1]=c;I[d+4>>1]=c>>>16;c=K[d+9|0]|K[d+10|0]<<8;I[d>>1]=c<<8|c>>>8;b:{if(K[a+201|0]&2|(!a|!b))break b;c:{if(!((K[d+2|0]-13&255)>>>0<244|(K[d+3|0]-32&255)>>>0<225|(K[d+4|0]>23|K[d+5|0]>59)))if(K[d+6|0]<61)break c;fd(a,64897);break b}a=L[d+4>>1]|L[d+6>>1]<<16;J[b+60>>2]=L[d>>1]|L[d+2>>1]<<16;J[b+64>>2]=a;J[b+8>>2]=J[b+8>>2]|512}}fc=d+16|0;return}Ld(a, +67500);B()}function xV(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;e=fc-16|0;fc=e;J[a>>2]=0;if((c|0)<0)c=Yc(J[b+12>>2]);a:{b:{c:{d:{if((c|0)>0){d=J[J[b>>2]+8>>2];J[699344]=0;g=d;d=e+12|0;ca(g|0,d|0,b|0,c|0);f=J[699344];J[699344]=0;if((f|0)==1)break d;J[699344]=0;aa(5153,a|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break c;d=J[e+12>>2];J[e+12>>2]=0;e:{if(!d)break e;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(f)break e;J[699344]=0;$(5147,d|0);d= +J[699344];J[699344]=0;if((d|0)==1)break a}h=Ad(J[J[a>>2]+12>>2],J[b+12>>2],c)+c|0,i=0,H[h|0]=i}fc=e+16|0;return}c=Z()|0;break b}c=Z()|0;zc(e+12|0)}zc(a);ba(c|0);B()}ea(0)|0;Bc();B()}function Ye(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;h=a+4|0;d=J[a+4>>2];if(!d){J[b>>2]=h;return h|0}while(1){a:{a=d;d=a+16|0;e=K[a+27|0];g=e<<24>>24<0;f=K[c+11|0];i=f<<24>>24<0;b:{c:{d:{e=g?J[a+20>>2]:e;f=i?J[c+4>>2]:f;j=e>>>0>>0?e:f;if(j){g=qd(i?J[c>>2]:c,g?J[a+16>>2]:d,j);if(g)break d}if(e>>>0>f>>> +0)break c;break b}if((g|0)>=0)break b}h=a;d=J[a>>2];if(d)continue;break a}e=K[c+11|0];g=e<<24>>24<0;f=K[a+27|0];i=f<<24>>24<0;e:{f:{e=g?J[c+4>>2]:e;f=i?J[a+20>>2]:f;j=e>>>0>>0?e:f;if(j){d=qd(i?J[d>>2]:d,g?J[c>>2]:c,j);if(d)break f}if(e>>>0>f>>>0)break e;break a}if((d|0)>=0)break a}h=a+4|0;d=J[a+4>>2];if(d)continue}break}J[b>>2]=a;return h|0}function P0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc-96|0;fc=d;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=-1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0; +a:{if(ol(b,d))break a;e=J[d+24>>2];c=J[d+28>>2];if(!e&(c|0)<=0|(c|0)<0)break a;f=Cv(b,0,0);if((f|0)==-1)break a;b:{if(e>>>0>=2147483647){J[698583]=48;b=-1;break b}c:{d:{c=Dc(40);b=Wb(e|0,1,1,f|0,0,0,c+8|0,c|0)|0;if((b|0)>=0){J[c+12>>2]=f;break d}uc(c);break c}J[c+32>>2]=1;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=1;J[c+4>>2]=e;J[c+36>>2]=J[698607];J[698607]=c;b=J[c>>2]}b=(b|0)==-63?-63:b;if(b>>>0>=4294963201){J[698583]=0-b;b=-1}}Pz(f);if((b|0)==-1)break a;J[a+16>>2]=b;J[a+4>>2]=b;J[a+20>>2]=b+e;g=1}fc= +d+96|0;return g|0}function OW(a,b){var c=0,d=0,e=0;c=fc-16|0;fc=c;d=J[b+4>>2];e=J[b>>2];J[a+8>>2]=0;J[a>>2]=e;J[a+4>>2]=d;J[a+12>>2]=J[685894];d=a+8|0;a:{b=J[b+8>>2];b:{c:{if(b){e=J[J[b>>2]+28>>2];J[699344]=0;ca(e|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;a=Z()|0;break b}J[c+12>>2]=0}J[699344]=0;aa(5153,d|0,c+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break a;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break a; +J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}a=Z()|0;zc(c+12|0)}wc(d);ba(a|0);B()}b=J[a+8>>2];J[a+12>>2]=J[(b?b+12|0:2743576)>>2];fc=c+16|0;return a}function Teb(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;var h=0,i=0;a:{b:{g=J[a+668>>2];c:{d:{if(!g){g=vc(40);J[699344]=0;J[g+4>>2]=1;J[g>>2]=347752;h=J[699344];J[699344]=0;if((h|0)!=1){J[g>>2]=340624;J[699344]=0;h=g+8|0;J[h+12>>2]=0;J[h+16>>2]=0;J[h+4>>2]=1;J[h+8>>2]=8;J[h>>2]=351116;J[h+20>>2]=0; +J[h+24>>2]=0;H[h+28|0]=0;i=J[699344];J[699344]=0;if((i|0)==1)break b;J[699344]=0;da(2244,h|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break d;a=Z()|0;If(h);break a}a=Z()|0;break a}g=kc[J[J[g>>2]+20>>2]](g,b)|0;if(!g)break c}b=kc[J[J[g>>2]+16>>2]](g)|0;B5(J[a+16>>2],b,O[c>>3],O[d>>3],O[e>>3],O[f>>3]);kc[J[J[g>>2]+12>>2]](g)|0}return 0}a=Z()|0}uc(g);ba(a|0);B()}function tga(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;if((b|0)==6){a:{if(!Bn(a,96480,7)){Uc(J[a+628>>2],96463,71080,0);a=0;break a}b=Dc(5264); +if(!b){Uc(J[a+628>>2],96463,71644,0);a=0;break a}Sg(b,0,5264);I[b+208>>1]=514;H[b+204|0]=1;J[b>>2]=a;J[c>>2]=2;J[c+4>>2]=2;ke(a,530,c);J[a+652>>2]=622;J[a+520>>2]=623;J[a+516>>2]=624;J[a+556>>2]=625;J[a+548>>2]=625;J[a+540>>2]=625;J[a+584>>2]=b;J[a+572>>2]=626;J[a+560>>2]=627;J[a+552>>2]=627;J[a+544>>2]=627;J[a+536>>2]=628;J[a+532>>2]=629;J[a+524>>2]=630;J[b+160>>2]=J[a+672>>2];J[a+672>>2]=631;J[b+164>>2]=J[a+668>>2];J[a+676>>2]=632;J[a+668>>2]=633;J[a+12>>2]=J[a+12>>2]|131072;a=1}fc=c+16|0;return a| +0}fa(69698,70472,397,96463);B()}function F$a(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=fc-16|0;fc=e;f=J[b>>2];a:{if(!f){if(H[d+11|0]>=0){b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=b;J[a+8>>2]=J[d+8>>2];break a}Ve(a,J[d>>2],J[d+4>>2]);break a}g=e+4|0;h=K[c+11|0];i=h<<24>>24<0;_m(g,i?J[c>>2]:c,i?J[c+4>>2]:h,0);J[699344]=0;c=Fu(f+12|0,g);f=J[699344];J[699344]=0;b:{if((f|0)!=1){if(H[e+15|0]<0)uc(J[e+4>>2]);if((c|0)!=(J[b>>2]+16|0))break b;if(H[d+11|0]>=0){b=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>> +2]=b;J[a+8>>2]=J[d+8>>2];break a}Ve(a,J[d>>2],J[d+4>>2]);break a}a=Z()|0;if(H[e+15|0]<0)uc(J[e+4>>2]);ba(a|0);B()}d=a;a=c+28|0;g=J[a>>2];f=a;a=K[c+39|0];b=a<<24>>24<0;Ll(d,b?g:f,b?J[c+32>>2]:a)}fc=e+16|0}function B1(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;a:{if(!c)break a;if(!a){a=J[c+32>>2];if(!a)break a}d=J[a+44>>2];if(!(d|J[a+48>>2])|!b|J[a+4>>2]==13)break a;e=J[c+8>>2];h=J[b+8>>2];J[f+8>>2]=0;b:{c:{if(!d)break c;d=J[d+44>>2];if(!d)break c;g=kq(e,f+8|0);d:{if(g){e=Bf(d,g,J[f+8>>2],h);d=J[f+ +8>>2];if(d)kc[J[663199]](d);kc[J[663199]](g);break d}e=Bf(d,e,0,h)}if(e)break b}d=J[a+48>>2];if(!d){e=0;break a}a=J[c+8>>2];b=J[b+8>>2];e=0;J[f+12>>2]=0;c=J[d+44>>2];if(!c)break a;d=kq(a,f+12|0);e:{if(d){e=Bf(c,d,J[f+12>>2],b);a=J[f+12>>2];if(a)kc[J[663199]](a);kc[J[663199]](d);break e}e=Bf(c,a,0,b)}if(e)break b;e=0;break a}e=J[e+40>>2]-3>>>0<2}fc=f+16|0;return e}function z9(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;a:{if(!a)break a;c=J[a+8>>2];b=c-1|0;if(b>>>0>31|!(1<>2];if((f|0)<=0)break a;g=J[a+4>>2];if((g|0)<=0)break a;b=kd(1,44);if(!b)break a;J[b+16>>2]=1;J[b+8>>2]=c;J[b+4>>2]=g;J[b>>2]=f;c=(P(c,f)+31|0)/32|0;J[b+12>>2]=c;c=kc[J[663153]](P(c,g)<<2)|0;if(!c)break a;J[b+40>>2]=c;qp(b,0);if((a|0)==(b|0)){d=a;break a}J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2];d=J[b+36>>2];J[e+8>>2]=d;if(d){np(e+8|0);J[b+36>>2]=0}d=J[a+36>>2];b:{if(!d)break b;d=$N(d);if(!d)break b;c=J[b+36>>2];J[e+12>>2]=c;if(c)np(e+12|0);J[b+36>>2]=d}p9(b+32|0,J[a+32>>2]);J[b+28>>2]=J[a+ +28>>2];d=b}fc=e+16|0;return d}function wvb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-1|0;while(1){I[g>>1]=L[f>>1];I[g+2>>1]=L[f+2>>1];h=g+4|0;a=j?(j|0)==(l|0)?d:b:c;a:{if(a>>>0<2){g=h;break a}i=a-1|0;k=i&3;b:{if(a-2>>>0<3){a=g;break b}m=i&-4;i=0;a=g;while(1){I[h>>1]=L[f>>1];I[a+6>>1]=L[f+2>>1];I[h+4>>1]=L[f>>1];I[h+6>>1]=L[f+2>>1];I[h+8>>1]=L[f>>1];I[h+10>>1]=L[f+2>>1];I[h+12>>1]=L[f>>1];I[h+14>>1]=L[f+2>>1];a=h+12|0;h=h+16|0;i=i+4|0;if((m|0)!= +(i|0))continue;break}}i=0;g=h;if(!k)break a;while(1){h=g;I[h>>1]=L[f>>1];I[a+6>>1]=L[f+2>>1];g=h+4|0;a=h;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=f+4|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function km(a){var b=0,c=0,d=0,e=0;a:{b:{b=K[a+7|0];if((b|0)!=255){c=J[a>>2];if(c>>>0<134217728)break b;b=b+1|0;H[a+7|0]=b;if((b&255)!=255)break b;J[a>>2]=c&134217727}d=a;b=J[a+8>>2];if((b|0)>=0){b=J[a+20>>2];c:{if((b|0)!=20480){c=J[a+16>>2];e=255;break c}sy(J[a+12>>2],a+16|0);c=vc(20480);J[a+16>>2]= +c;b=0;e=K[a+7|0]}J[a+20>>2]=b+1;H[b+c|0]=e;b=J[a+8>>2]}J[d+8>>2]=b+1;b=J[a>>2];H[a+7|0]=b>>>20;d=7;b=b&1048575;break a}d=J[a+8>>2];if((d|0)>=0){c=J[a+20>>2];d:{if((c|0)!=20480){d=J[a+16>>2];break d}sy(J[a+12>>2],a+16|0);d=vc(20480);J[a+16>>2]=d;b=K[a+7|0];c=0}J[a+20>>2]=c+1;H[c+d|0]=b;c=J[a>>2];d=J[a+8>>2]}J[a+8>>2]=d+1;H[a+7|0]=c>>>19;d=8;b=c&524287}H[a+6|0]=d;J[a>>2]=b}function rvb(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;var h=0,i=0,j=0,k=0,l=0;if(e){k=e-1|0;while(1){I[g>>1]=L[f>> +1];I[g+2>>1]=L[f+2>>1];I[g+4>>1]=L[f+4>>1];I[g+6>>1]=L[f+6>>1];a=g+8|0;h=i?(i|0)==(k|0)?d:b:c;a:{if(h>>>0<2)break a;j=h-1|0;l=j&1;if((h|0)!=2){j=j&-2;h=0;while(1){I[a>>1]=L[f>>1];I[g+10>>1]=L[f+2>>1];I[g+12>>1]=L[f+4>>1];I[g+14>>1]=L[f+6>>1];I[a+8>>1]=L[f>>1];I[a+10>>1]=L[f+2>>1];I[a+12>>1]=L[f+4>>1];I[a+14>>1]=L[f+6>>1];g=a+8|0;a=a+16|0;h=h+2|0;if((j|0)!=(h|0))continue;break}}if(!l)break a;I[a>>1]=L[f>>1];I[g+10>>1]=L[f+2>>1];I[g+12>>1]=L[f+4>>1];I[g+14>>1]=L[f+6>>1];a=a+8|0}g=a;f=f+8|0;i=i+1|0; +if((i|0)!=(e|0))continue;break}}return 0}function ltb(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;c=J[a+428>>2];H[c+8|0]=K[b+32|0];k=c+8|0;a:{if(!J[b+36>>2]){d=1;break a}c=c+9|0;d=1;while(1){b:{c:{f=P(g,5)+b|0;i=K[f+44|0];if(i){if(!h){H[c+1|0]=0;H[c|0]=g;d=d+2|0;j=c+1|0;c=c+2|0}h=1;e=K[b+32|0];if(e>>>0>5)break b;e=1<>2];if(g>>>0>>0)continue;break}if(!i)break a;H[j|0]=e-1}return Ce(a,J[b>>2],d,k)|0}function ZO(a,b,c,d){var e=0,f=0,g=0,h=0;g=fc-128|0;fc=g;a:{if((c|0)>=0){f=g;a=J[b>>2];if(!a){e=b;break a}while(1){J[f>>2]=b;f=f+4|0;e=a;b=a;a=J[a>>2];if(a)continue;break}break a}fa(202183,198855,339,212521);B()}a=0;b:{while(1){b=J[e+8>>2];if((b|0)<(a|0)){J[e+8>>2]=a;b=a}c:{if((b|0)>=(c|0))break c; +while(1){if(J[e+4>>2]<=(b|0))break c;d:{if(H[d+16|0]&1){h=J[d+8>>2];a=h-1|0;J[d+8>>2]=a;if((h|0)>0){a=J[d+4>>2]>>>a&1;break d}a=Ng(d);if((a|0)>=0)break d;a=-1;break b}fa(203308,198855,357,212521);B()}e:{if(a){J[e+4>>2]=b;break e}b=b+1|0}if((b|0)<(c|0))continue;break}}J[e+8>>2]=b;if((f|0)!=(g|0)){f=f-4|0;e=J[f>>2];a=b;continue}break}a=J[e+4>>2]<(c|0)}fc=g+128|0;return a}function u_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{if((e|0)<=0)break a;k=J[a+ +28>>2];if(!k)break a;j=J[J[a+408>>2]+8>>2];while(1){l=e-1|0;a=d<<2;m=J[a+J[c+12>>2]>>2];n=J[a+J[c+8>>2]>>2];o=J[a+J[c+4>>2]>>2];p=J[a+J[c>>2]>>2];a=J[b>>2];f=0;while(1){g=K[a+2|0];h=K[a+1|0];i=K[a|0];H[f+m|0]=K[a+3|0];g=((g^255)<<2)+j|0;h=((h^255)<<2)+j|0;i=((i^255)<<2)+j|0;H[f+p|0]=J[g+2048>>2]+(J[h+1024>>2]+J[i>>2]|0)>>>16;H[f+o|0]=J[g+5120>>2]+(J[h+4096>>2]+J[i+3072>>2]|0)>>>16;H[f+n|0]=J[g+7168>>2]+(J[h+6144>>2]+J[i+5120>>2]|0)>>>16;a=a+4|0;f=f+1|0;if((k|0)!=(f|0))continue;break}d=d+1|0;b=b+4| +0;a=(e|0)>1;e=l;if(a)continue;break}}}function s$a(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;e=-1;if(!(!d|!b|(!a|!c))){g=J[d>>2];h=(g|0)>0;i=J[b>>2]+a|0;a:{if((g|0)<=0){e=c;f=a;break a}e=c;f=a;k=i-1|0;if(f>>>0>=k>>>0)break a;j=e+g|0;g=j;while(1){h=H[e|0];if((h|0)<0){H[f|0]=(h&192)>>>6|192;H[f+1|0]=K[e|0]&63|128;f=f+2|0;e=e+1|0}h=i-f|0;g=(h|0)<(g-e|0)?h+e|0:g;b:{if(g>>>0<=e>>>0)break b;while(1){h=H[e|0];if((h|0)<0)break b;H[f|0]=h;f=f+1|0;e=e+1|0;if((g|0)!=(e|0))continue;break}e= +g}h=e>>>0>>0;if(e>>>0>=j>>>0)break a;if(f>>>0>>0)continue;break}}c:{if(!h|f>>>0>=i>>>0)break c;g=H[e|0];if((g|0)<0)break c;H[f|0]=g;f=f+1|0;e=e+1|0}J[b>>2]=f-a;J[d>>2]=e-c;e=J[b>>2]}return e|0}function Vka(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;if((c|0)>0){g=J[a+12>>2];while(1){i=c;j=J[a+4>>2];f=+N[b+4>>2];c=1023;a:{if(f>=15.742)break a;c=0;if(f<=2.4283E-4)break a;d=ct(f)*1.4426950408889634+12;if(j){e=vEb(J[698644],J[698645],1284865837,1481765933);c=jc;e=e+1|0; +c=e?c:c+1|0;J[698644]=e;J[698645]=c;f=+N[b+4>>2];d=d*64+ +(c>>>1|0)*4.656612875245797E-10+-.5}else d=d*64;if(R(d)<2147483648){c=~~d;break a}c=-2147483648}e=c;d=.473684211;k=.210526316;b:{if(!c)break b;l=+N[b>>2];h=+N[b+8>>2]*3+(f*15+l);if(h<=0)break b;d=f*9/h;k=l*4/h}c=i-1|0;m=e<<14;e=PT(k,d,j);J[g>>2]=m|((e|0)<0?12266:e);b=b+12|0;g=g+4|0;if(i>>>0>1)continue;break}}}function lCa(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;c=vc(16);J[c>>2]=0;J[c+4>>2]=0;d=c+8|0;J[d>>2]=0;J[c+12>>2]=J[685894];a:{a= +J[a>>2];b:{c:{if(a){e=J[J[a>>2]+28>>2];J[699344]=0;ca(e|0,b+12|0,a|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break c;a=Z()|0;break b}J[b+12>>2]=0}J[699344]=0;aa(5153,d|0,b+12|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[b+12>>2];J[b+12>>2]=0;if(!a)break a;J[699344]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break a;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}a=Z()|0;zc(b+12|0)}wc(d);ba(a|0);B()}a=J[c+8>>2];J[c+12>>2]=J[(a?a+12| +0:2743576)>>2];fc=b+16|0;return c|0}function MPa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-4096|0;fc=d;J[a>>2]=2319400;a:{b:{c:switch(J[b>>2]-3|0){case 0:b=J[b+8>>2];c=vc(8);J[699344]=0;b=aa(3350,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[a+4>>2]=b;break b;case 5:c=vc(8);J[699344]=0;e=_(3351,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[a+4>>2]=e;c=J[b+8>>2];kc[J[J[c>>2]+20>>2]](c);c=J[b+8>>2];c=kc[J[J[c>>2]+40>>2]](c,d,4096)|0;if((c|0)>0)while(1){kf(J[a+4>>2],d,c);c=J[b+8>>2]; +c=kc[J[J[c>>2]+40>>2]](c,d,4096)|0;if((c|0)>0)continue;break}b=J[b+8>>2];kc[J[J[b>>2]+24>>2]](b);break b;default:break c}Cc(1,-1,809202,0);J[a+4>>2]=0}fc=d+4096|0;return a|0}a=Z()|0;uc(c);ba(a|0);B()}function yEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=1;e=0;a:{if(!a)break a;d=J[a>>2];e=0;if(!d)break a;g=J[d+676>>2];f=0;c=d;e=J[c+668>>2]}b:{if(!b)break b;d=J[b>>2];if(!d)break b;c:{if(f)break c;Zp(c,d,32767,-1);if(!J[c+644>>2])break c;Bd(c,J[c+648>>2]);J[c+644>>2]=0}Yt(d,g,e);J[b>>2]=0}if(!f){b= +fc-160|0;fc=b;if(J[c+276>>2])Yo(c+212|0);Bd(c,J[c+268>>2]);Bd(c,J[c+356>>2]);Bd(c,J[c+352>>2]);Bd(c,J[c+360>>2]);Bd(c,J[c+364>>2]);Bd(c,J[c+368>>2]);Bd(c,J[c+372>>2]);b=xc(b,c,156);d=J[c+164>>2];f=J[c+160>>2];h=J[c+168>>2];i=J[c+676>>2];Ac(c+156|0,0,612);J[c+676>>2]=i;J[c+168>>2]=h;J[c+160>>2]=f;J[c+164>>2]=d;xc(c,b,156);fc=b+160|0;Yt(c,g,e);J[a>>2]=0}}function Yf(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=fc-16|0;fc=e;a:{if(!(K[a+12|0]&128))break a;b:switch(L[b+2>>1]-3|0){case 0:case 5:jt(c,J[b+4>> +2]);break a;case 1:case 6:case 8:Pp(c,J[b+4>>2]);break a;case 2:case 7:Pp(c,J[b+4>>2]<<1);break a;case 9:break b;default:break a}oH(c,J[b+4>>2])}J[b+8>>2]=J[a+488>>2];f=J[b+4>>2];d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+91548>>2];else d=0;c:{d:{if((kc[J[a+640>>2]](J[a+628>>2],J[b+8>>2],0)|0)!=J[b+8>>2])break d;g=c;c=P(d,f);if((kc[J[a+636>>2]](J[a+628>>2],g,c)|0)!=(c|0))break d;h=1;J[a+488>>2]=J[a+488>>2]+(c+1&-2);break c}c=J[a>>2];d=J[a+628>>2];i=e,j=J[Sf(a,L[b>>1])+16>>2],J[i>>2]=j;Uc(d,c,75780,e)}fc= +e+16|0;return h}function sS(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;J[d+12>>2]=c;a:{if((b|0)<2)break a;i=b-2>>>1|0;e=c-a|0;if((i|0)>2)break a;f=e>>1;e=f+1|0;g=(e<<2)+a|0;J[d+8>>2]=g;f=f+2|0;b:{if((f|0)>=(b|0))break b;h=g+4|0;if(J[g>>2]>=J[h>>2])break b;J[d+8>>2]=h;g=h;e=f}if(J[g>>2]>2])break a;J[d+4>>2]=J[J[d+12>>2]>>2];c:{while(1){J[J[d+12>>2]>>2]=J[J[d+8>>2]>>2];c=J[d+8>>2];J[d+12>>2]=c;if((e|0)>(i|0))break c;e=e<<1;f=e|1;c=(f<<2)+a|0;J[d+8>>2]=c;d:{e:{e=e+2|0;if((e|0)>=(b|0))break e; +g=J[c>>2];h=J[c+4>>2];c=J[d+8>>2];if((g|0)>=(h|0))break e;c=c+4|0;J[d+8>>2]=c;break d}e=f}if(J[c>>2]>=J[d+4>>2])continue;break}c=J[d+12>>2]}J[c>>2]=J[d+4>>2]}fc=d+16|0}function rS(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=fc-16|0;fc=d;J[d+12>>2]=c;a:{if((b|0)<2)break a;i=b-2>>>1|0;e=c-a|0;if((i|0)>3)break a;f=e>>2;e=f+1|0;g=(e<<3)+a|0;J[d+8>>2]=g;f=f+2|0;b:{if((f|0)>=(b|0))break b;h=g+8|0;if(!(O[g>>3]>3]))break b;J[d+8>>2]=h;g=h;e=f}if(O[g>>3]>3])break a;O[d>>3]=O[J[d+12>>2]>>3];c:{while(1){O[J[d+ +12>>2]>>3]=O[J[d+8>>2]>>3];c=J[d+8>>2];J[d+12>>2]=c;if((e|0)>(i|0))break c;e=e<<1;f=e|1;c=(f<<3)+a|0;J[d+8>>2]=c;d:{e:{e=e+2|0;if((e|0)>=(b|0))break e;j=O[c>>3];k=O[c+8>>3];c=J[d+8>>2];if(!(j>2]=c;break d}e=f}if(!(O[c>>3]>3]))continue;break}c=J[d+12>>2]}O[c>>3]=O[d>>3]}fc=d+16|0}function VWa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Fe(b,K[a+229|0]);To(a,b);zd(b,J[a+248>>2]-J[a+244>>2]>>3);c=J[a+244>>2];if((c|0)!=J[a+248>>2])while(1){e=O[(d<<3)+c>>3]*100;a:{if(R(e)<2147483648){c= +~~e;break a}c=-2147483648}zd(b,c);d=d+1|0;c=J[a+244>>2];if(d>>>0>2]-c>>3>>>0)continue;break}d=J[a+8>>2];if(d&32768){Fe(b,K[a+230|0]);Fe(b,K[a+231|0]);d=J[a+8>>2]}b:{if(!(d&65536))break b;zd(b,J[a+236>>2]-J[a+232>>2]>>3);c=J[a+232>>2];if((c|0)==J[a+236>>2])break b;d=0;while(1){e=O[(d<<3)+c>>3]*1E4;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}zd(b,c);d=d+1|0;c=J[a+232>>2];if(d>>>0>2]-c>>3>>>0)continue;break}}if(K[a+10|0]&16)Fe(b,K[a+228|0])}function VJa(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=fc-16|0;fc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;if(J[a+8>>2]==16)g=J[a+156>>2]+P(J[a+192>>2],5644)|0;else g=J[a+12>>2];h=J[a+72>>2];f=M[h+16>>2]<257?1:2;c:{if(f>>>0>=c>>>0){c=0;Nc(d,1,2366602,0);break c}J[e+12>>2]=(f^-1)+c;wd(b,e+8|0,f);i=J[e+8>>2];if(i>>>0>=M[h+16>>2]){c=0;Nc(d,1,2366628,0);break c}c=1;b=b+f|0;wd(b,J[g+5584>>2]+P(i,1080)|0,1);if(!TY(a,J[e+8>>2],b+1|0,e+12|0,d)){c=0;Nc(d,1,2366602,0);break c}if(!J[e+12>>2])break c;c=0;Nc(d,1,2366602,0)}fc= +e+16|0;return c|0}fa(2365733,2358254,2918,2366585);B()}fa(2358373,2358254,2919,2366585);B()}fa(2358486,2358254,2920,2366585);B()}function zm(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;c=O[b+24>>3];e=O[a+16>>3];d=O[b+16>>3];if(e>d){O[a+16>>3]=d;e=d}g=O[a+32>>3];if(d>g){O[a+32>>3]=d;g=d}d=O[a+24>>3];if(c>3]=c;d=c}h=O[a+40>>3];if(c>h){O[a+40>>3]=c;h=c}c=O[b+40>>3];m=e;e=O[b+32>>3];if(m>e)O[a+16>>3]=e;if(e>g)O[a+32>>3]=e;if(c>3]=c;if(c>h)O[a+40>>3]=c;k=J[b+8>>2];if(k){i= +J[b+4>>2];f=J[i>>2];j=J[b>>2];l=J[j+4>>2];J[f+4>>2]=l;J[l>>2]=f;f=J[a>>2];J[f+4>>2]=i;J[i>>2]=f;J[a>>2]=j;J[j+4>>2]=a;J[a+8>>2]=J[a+8>>2]+k;J[b+8>>2]=0}J[b+40>>2]=-1;J[b+44>>2]=-1048577;J[b+32>>2]=-1;J[b+36>>2]=-1048577;J[b+24>>2]=-1;J[b+28>>2]=2146435071;J[b+16>>2]=-1;J[b+20>>2]=2146435071}function H4a(a){a=a|0;var b=0,c=0,d=0;J[a+4>>2]=1;J[a>>2]=348268;J[a>>2]=352872;J[699344]=0;c=a+8|0;J[c+4>>2]=1;J[c>>2]=347840;J[c>>2]=351884;b=c+12|0;J[b>>2]=0;J[b+4>>2]=0;J[c+8>>2]=b;b=J[699344];J[699344]=0; +a:{b:{c:{d:{if((b|0)!=1){J[699344]=0;d=_(2273,a+28|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;J[(a+72|0)+4>>2]=1;J[a+72>>2]=348228;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[a+72>>2]=353348;J[a+96>>2]=0;J[a+100>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+120>>2]=0;b=a+112|0;J[a+116>>2]=b;J[a+104>>2]=0;J[a+108>>2]=0;J[a+48>>2]=c;J[a+112>>2]=b;return a|0}a=Z()|0;break a}a=Z()|0;break b}a=Z()|0;Fx(d)}Ix(c)}ba(a|0);B()}function x1(a){var b=0,c=0;a:{c=J[a+36>>2]; +b=J[c+16>>2];b:{if(K[b|0]!=118|K[b+1|0]!=101|(K[b+2|0]!=114|K[b+3|0]!=115))break b;if(K[b+4|0]!=105|K[b+5|0]!=111|K[b+6|0]!=110)break b;J[a+200>>2]=J[a+200>>2]+7;J[c+16>>2]=b+7;J[c+32>>2]=J[c+32>>2]+7;b=K[b+7|0];if((b|0)==37){Yd(a);c=J[a+36>>2];b=K[J[c+16>>2]]}c:{if(b)break c;if((Nd(c)|0)>0)break c;He(a)}be(a);if(K[J[J[a+36>>2]+16>>2]]!=61){Xe(a,75,0);return 0}Zd(a);be(a);d:switch(K[J[J[a+36>>2]+16>>2]]-34|0){case 0:Zd(a);b=p1(a);if(K[J[J[a+36>>2]+16>>2]]!=34)break a;Zd(a);return b;case 5:Zd(a);b= +p1(a);if(K[J[J[a+36>>2]+16>>2]]!=39)break a;Zd(a);return b;default:break d}Xe(a,33,0)}return 0}Xe(a,34,0);return b}function Veb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;a:{if(c){J[a+508>>2]=1;b=1;if(!J[a+16>>2]|!J[a+20>>2])break a;fs(a);g=J[a+20>>2];b=J[a+12>>2];i=O[e>>3];j=O[f>>3];a=fc+-64|0;fc=a;J[a+60>>2]=d;if(b){J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0; +J[a+8>>2]=0;J[a+12>>2]=0;d=a+48|0;e=a+40|0;kc[J[J[b>>2]+124>>2]](b,d,e,a+32|0,a+24|0,a+16|0,a+8|0)|0;N[a+48>>2]=i;N[a+40>>2]=j;kc[J[J[b>>2]+92>>2]](b,c,a+60|0,d,e)|0;kc[J[J[b>>2]+132>>2]](b,g)|0}fc=a- -64|0;return 0}J[a+508>>2]=0;b=kc[J[J[a>>2]+364>>2]](a,b,e,f,g,h)|0}return b|0}function Bua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-32|0;fc=d;J[699344]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2426580;ia(5650,d+12|0,d+16|0,b|0,c|0);b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[d+16>>2]=2426484; +b=J[d+28>>2];if(b){H[b|0]=0;uc(J[d+28>>2])}J[d+28>>2]=0;nd(d+16|0);J[699344]=0;aa(5314,a|0,d+12|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+32|0;return}a=Z()|0;zc(d+12|0);ba(a|0);B()}a=Z()|0;rh(d+16|0);ba(a|0);B()}ea(0)|0;Bc();B()}function uV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-32|0;fc=d; +J[699344]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2426580;ia(5657,d+12|0,d+16|0,b|0,c|0);b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[d+16>>2]=2426484;b=J[d+28>>2];if(b){H[b|0]=0;uc(J[d+28>>2])}J[d+28>>2]=0;nd(d+16|0);J[699344]=0;aa(5314,a|0,d+12|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc= +d+32|0;return}a=Z()|0;zc(d+12|0);ba(a|0);B()}a=Z()|0;rh(d+16|0);ba(a|0);B()}ea(0)|0;Bc();B()}function gEa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-32|0;fc=e;f=-1;a:{b:{c:{d:{e:switch(c|0){case 0:c=J[a+20>>2];break d;case 2:break c;case 1:break e;default:break a}c=J[a+20>>2];b=c+b|0}if((b|0)<(c|0)){d=J[a+540>>2];f:{if((d+b|0)>=(c|0)){J[a+540>>2]=d+(b-c|0);break f}J[a+536>>2]=0}J[a+20>>2]=b;f=0;break a}f=0;if((b|0)<=(c|0))break a;J[a+20>>2]=b-1;J[a+540>>2]=J[a+540>>2]+((c^-1)+b|0);if(kc[J[J[a>> +2]+8>>2]](a,e+31|0,1)|0)break a;a=Qc(e+4|0,J[685886],2387711,1782,2397644,0);break b}if(d)break a;a=Qc(e+4|0,2393166,2387711,1789,2397644,0)}J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0)}B()}fc=e+32|0;return f|0}function ECa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;if(J[b+8>>2]==2){J[a>>2]=0;J[a+4>>2]=J[685894];a:{b=J[b+24>>2];b:{c:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[c+ +12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break a;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}b=Z()|0;zc(c+12|0)}wc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];fc=c+16|0;return}gw(b,2);B()}function DCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;if(J[b+8>>2]==3){J[a>>2]=0;J[a+ +4>>2]=J[685894];a:{b=J[b+32>>2];b:{c:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break a;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}b=Z()|0;zc(c+12|0)}wc(a);ba(b|0);B()}b=a;a=J[a>> +2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];fc=c+16|0;return}gw(b,3);B()}function BH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-32|0;fc=d;J[699344]=0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+20>>2]=0;J[d+16>>2]=2426580;ia(5656,d+12|0,d+16|0,b|0,c|0);b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[d+16>>2]=2426484;b=J[d+28>>2];if(b){H[b|0]=0;uc(J[d+28>>2])}J[d+28>>2]=0;nd(d+16|0);J[699344]=0;aa(5314,a|0,d+12|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>> +2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+32|0;return}a=Z()|0;zc(d+12|0);ba(a|0);B()}a=Z()|0;rh(d+16|0);ba(a|0);B()}ea(0)|0;Bc();B()}function zyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=J[J[a+536>>2]+88>>2];e=(J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0)+P(J[c+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-2|0){case 0:if(J[a+588>>2]<=0)break a;while(1){b=e+2|0;d=K[b|0]|K[b+1|0]<<8;g=(d<<8|d>>> +8)&65535;d=K[c|0]|K[c+1|0]<<8;d=g+((d<<8|d>>>8)&65535)&65535;d=d<<8|d>>>8;H[b|0]=d;H[b+1|0]=d>>>8;c=c+2|0;e=e+4|0;f=f+1|0;if((f|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){b=K[c|0]|K[c+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[e+2|0]=b;H[e+3|0]=b>>>8;c=c+2|0;e=e+4|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function tyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=J[J[a+536>>2]+88>>2];e=(J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0)+ +P(J[c+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-2|0){case 0:if(J[a+588>>2]<=0)break a;while(1){b=e+6|0;d=K[b|0]|K[b+1|0]<<8;g=(d<<8|d>>>8)&65535;d=K[c|0]|K[c+1|0]<<8;d=g+((d<<8|d>>>8)&65535)&65535;d=d<<8|d>>>8;H[b|0]=d;H[b+1|0]=d>>>8;c=c+2|0;e=e+8|0;f=f+1|0;if((f|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){b=K[c|0]|K[c+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[e+6|0]=b;H[e+7|0]=b>>>8;c=c+2|0;e=e+8|0;f=f+1|0;if((f|0)< +J[a+588>>2])continue;break}}return 0}function WW(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;if(J[b+8>>2]==4){J[a>>2]=0;J[a+4>>2]=J[685894];a:{b=J[b+12>>2];b:{c:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c;b=Z()|0;break b}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break a;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break a;J[699344]= +0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}b=Z()|0;zc(c+12|0)}wc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];fc=c+16|0;return}gw(b,4);B()}function ocb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=255-e|0;i=K[a+3|0];k=P(i,e);j=i^255;h=K[a+2|0];g=b<<1;a:{if(g>>>0>>0){g=P(h,f+g|0)+P(b,j)|0;break a}g=(((P(b,j)+k|0)+P(f,h)| +0)+(P(b-e|0,i-h|0)<<1)|0)+255|0}b=K[a|0];h=K[a+1|0];H[a+2|0]=g>>>8;g=c<<1;b:{if(g>>>0>>0){c=P(h,f+g|0)+P(c,j)|0;break b}c=(((P(c,j)+k|0)+P(f,h)|0)+(P(c-e|0,i-h|0)<<1)|0)+255|0}H[a+1|0]=c>>>8;c=d<<1;c:{if(c>>>0>>0){d=P(b,c+f|0)+P(d,j)|0;c=k+255|0;break c}c=k+255|0;d=((c+P(d,j)|0)+P(b,f)|0)+(P(d-e|0,i-b|0)<<1)|0}H[a|0]=d>>>8;H[a+3|0]=e+i-(c>>>8)}}function Xf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;J[a+8>>2]=b;if(J[a+32>>2]){f=J[a+20>>2];h=J[a+28>>2]-f>>3;while(1){j=I[f+10>>1];b=J[f+12>> +2];a:{b:{i=J[a+8>>2];if((i|0)<0)break b;k=J[a+32>>2];d=J[k>>2];if((J[d+12>>2]-1|0)<(i|0))break b;l=J[d+8>>2];c=j;d=b;e=I[f+8>>1];if((e|0)<0){c=c+e|0;if((c|0)<=0)break b;d=Ac(b,0,0-e|0)-e|0;e=0}g=c+e|0;if((g|0)>(l-1|0)){g=g-l|0;c=c-g|0;if((c|0)<=0)break b;Ac(d+c|0,0,g)}b=J[k>>2];b=(J[b+4>>2]+P(J[b+16>>2],i)|0)+(e<<2)|0;while(1){H[d|0]=P(K[d|0],(P(K[b+1|0],150)+P(K[b|0],77)|0)+P(K[b+2|0],29)>>>8|0)+255>>>8;b=b+4|0;d=d+1|0;c=c-1|0;if(c)continue;break}break a}Ac(b,0,j)}f=f+8|0;h=h-1|0;if(h)continue;break}}} +function Wf(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;J[a+8>>2]=b;if(J[a+32>>2]){f=J[a+20>>2];h=J[a+28>>2]-f>>3;while(1){j=I[f+10>>1];b=J[f+12>>2];a:{b:{i=J[a+8>>2];if((i|0)<0)break b;k=J[a+32>>2];d=J[k>>2];if((J[d+12>>2]-1|0)<(i|0))break b;l=J[d+8>>2];c=j;d=b;e=I[f+8>>1];if((e|0)<0){c=c+e|0;if((c|0)<=0)break b;d=Ac(b,0,0-e|0)-e|0;e=0}g=c+e|0;if((g|0)>(l-1|0)){g=g-l|0;c=c-g|0;if((c|0)<=0)break b;Ac(d+c|0,0,g)}b=J[k>>2];b=(J[b+4>>2]+P(J[b+16>>2],i)|0)+(e<<2)|0;while(1){H[d|0]=P(K[d|0],(P(K[b+ +1|0],150)+P(K[b+2|0],77)|0)+P(K[b|0],29)>>>8|0)+255>>>8;b=b+4|0;d=d+1|0;c=c-1|0;if(c)continue;break}break a}Ac(b,0,j)}f=f+8|0;h=h-1|0;if(h)continue;break}}}function zY(a,b,c){var d=0,e=0;d=fc-272|0;fc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){fd(a,62243);Vd(a,c);break a}if(e&2)fd(a,62345);if(!(!b|(J[b+8>>2]&2049)!=1)){fd(a,62480);Vd(a,c);break a}if((c|0)!=4){fd(a,62594);Vd(a,c);break a}c=d+268|0;Dg(a,c,4);Ae(a,c,4);if(Vd(a,0))break a;c=K[d+268|0]|K[d+269|0]<<8|(K[d+270|0]<<16|K[d+271|0]<<24);c=c<<24|(c& +65280)<<8|(c>>>8&65280|c>>>24);if((c|0)<=0){fd(a,62785);break a}c=(c|0)<0?-1:c;if(!(!b|!(K[b+9|0]&8)|c-46001>>>0>4294966294)){Mk(d,1,5,c);zr(a,d,62855);break a}J[a+460>>2]=c;b:{if(!a|!b)break b;if(c-625000001>>>0<=3669967310){fd(a,60447);break b}J[b+40>>2]=c;J[b+8>>2]=J[b+8>>2]|1}}fc=d+272|0;return}Ld(a,62149);B()}function vy(a,b,c){var d=0,e=0,f=0,g=0;Be(c,Fc(c)<<1);a:{b:{if(!Fc(c)){if((Fc(c)|0)!=1349415968)break b;f=Fc(c);if(f)while(1){if(Fc(c))break a;d=Fc(c);e=Fc(c);c:{d:{if((d|0)!=1450341475){if((d| +0)!=1215461998)break d;d=a;if((e|0)!=1433302086)break c;if((Fc(c)|0)==592474723)break c;fa(225544,219859,1287,225607);B()}d=b;if((e|0)!=1433302086)break c;if((Fc(c)|0)==592474723)break c;fa(225544,219859,1300,225607);B()}fa(219546,219859,1308,225607);B()}g=me(c);e:{if(R(g)<2147483648){e=~~g;break e}e=-2147483648}J[d>>2]=e;f=f-1|0;if(f)continue;break}return}fa(221278,219859,1263,225607);B()}fa(225635,219859,1266,225607);B()}fa(221278,219859,1274,225607);B()}function ii(a,b){var c=0,d=0,e=0,f=0;f=fc- +16|0;fc=f;a:{b:{c:{if(a){if(!b)break a;c=J[a+80>>2];if(!c)break c;while(1){if(J[b>>2]-1>>>0>=4)break b;d=b;b=J[b+16>>2];e=J[d+12>>2];if(e)ii(a,e);e=J[d+8>>2];d:{if(!e)break d;if(Sk(c,e))break d;kc[J[663199]](J[d+8>>2])}e=J[d+24>>2];e:{if(!e)break e;if(Sk(c,e))break e;kc[J[663199]](J[d+24>>2])}kc[J[663199]](d);if(b)continue;break}break a}if(!b)break a}while(1){if(J[b>>2]-1>>>0>3)break b;d=J[b+16>>2];c=J[b+12>>2];if(c)ii(a,c);c=J[b+8>>2];if(c)kc[J[663199]](c);c=J[b+24>>2];if(c)kc[J[663199]](c);kc[J[663199]](b); +b=d;if(b)continue;break}break a}J[f>>2]=34253;Hc(0,0,0,0,0,23,1,2,0,0,0,0,4607,f)}fc=f+16|0}function wt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(!J[693748])f=2774992,g=vc(1),J[f>>2]=g;a:{b:{c:{while(1){c=vc(a);J[(d<<2)+2775008>>2]=c;b=J[693749];if(!b)break c;e=d+1|0;while(1){if(J[b>>2]!=(c|0)){b=J[b+4>>2];if(b)continue;break c}break}d=e;if((d|0)!=128)continue;break}d=128;c=vc(a);break b}if(!d)break a}while(1){a=d-1|0;uc(J[(a<<2)+2775008>>2]);e=(d|0)>1;d=a;if(e)continue;break}}a=si()+36|0;b=J[J[a+12>> +2]+((c>>>0)%M[a+8>>2]<<2)>>2];d:{if(b)while(1){if(J[b+12>>2]==(c|0)&J[b+16>>2]==(c|0))break d;b=J[b+8>>2];if(b)continue;break}b=vc(24);J[b>>2]=0;J[b+4>>2]=0;J[b+20>>2]=0;J[b+16>>2]=c;J[b+12>>2]=c;J[b+8>>2]=0;Em(a,b)}J[b+20>>2]=0;return c|0}function rA(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-32|0;fc=c;a:{b:{b=J[a+24>>2];if(!b){a=Qc(c+8|0,2399231,2390750,398,2427053,0);J[699344]=0;$(5179,a|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b;c=Z()|0;Kc(a);ba(c|0);B()}if(J[a+36>>2]>0){d=J[a+28>>2];J[b+8>>2]=d;e= +d;d=J[b+4>>2];b=e-d|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c+8|0]=b;H[c+9|0]=b>>>8;H[c+10|0]=b>>>16;H[c+11|0]=b>>>24;b=J[a+16>>2];kc[J[J[b>>2]+20>>2]](b,d-4|0,0,0)|0;Dt(J[a+16>>2],c+8|0,4);b=J[a+16>>2];kc[J[J[b>>2]+20>>2]](b,J[a+28>>2],0,0)|0;b=J[a+24>>2]}J[a+32>>2]=J[b+8>>2];d=a;a=J[b>>2];J[d+24>>2]=a;if(K[a+20|0]?0:a)break a;uc(b);fc=c+32|0;return}B()}fa(2399582,2390750,418,2427087);B()}function qVa(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;J[a+4>>2]=c;j=a,k=Gd(c,4),J[j>> +2]=k;h=J[a+4>>2];a:{if((h|0)<=0)break a;if(h>>>0>=4){i=h&-4;while(1){f=d<<2;J[f+J[a>>2]>>2]=0;J[J[a>>2]+(f|4)>>2]=0;J[J[a>>2]+(f|8)>>2]=0;J[J[a>>2]+(f|12)>>2]=0;d=d+4|0;e=e+4|0;if((i|0)!=(e|0))continue;break}}e=h&3;if(!e)break a;while(1){J[J[a>>2]+(d<<2)>>2]=0;d=d+1|0;g=g+1|0;if((e|0)!=(g|0))continue;break}}e=0;if((c|0)>0)while(1){g=0;i=P(e,12)+b|0;d=J[i>>2];f=K[d|0];if(f)while(1){g=P(g,17)+f|0;f=K[d+1|0];d=d+1|0;if(f)continue;break}d=J[a>>2]+((g>>>0)%(h>>>0)<<2)|0;J[i+8>>2]=J[d>>2];J[d>>2]=i;e=e+ +1|0;if((e|0)!=(c|0))continue;break}return a|0}function T0(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+4>>2];f=J[a+8>>2];a:{if((b|0)==(f|0)){g=a+20|0;break a}g=a+20|0;d=J[a+16>>2];e=(d>>>6&67108860)+b|0;c=J[e>>2]+((d&255)<<4)|0;d=d+J[a+20>>2]|0;d=J[(d>>>6&67108860)+b>>2]+((d&255)<<4)|0;if((c|0)==(d|0))break a;while(1){b=J[c+8>>2];if(b){uc(tK(b));J[c+8>>2]=0}b=J[c+12>>2];if(b){uc(sK(b));J[c+12>>2]=0}c=c+16|0;if((c-J[e>>2]|0)==4096){c=J[e+4>>2];e=e+4|0}if((c|0)!=(d|0))continue;break}b=J[a+4>>2];f=J[a+8>>2]}J[g>> +2]=0;c=f-b>>2;if(c>>>0>2)while(1){uc(J[b>>2]);b=J[a+4>>2]+4|0;J[a+4>>2]=b;c=J[a+8>>2]-b>>2;if(c>>>0>2)continue;break}b=128;b:switch(c-1|0){case 1:b=256;case 0:J[a+16>>2]=b;break;default:break b}}function G$(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;while(1){g=a+n|0;h=H[g+8|0];i=h<<1;i=(h|0)<0?i^27:i;c=i<<1;k=i<<24>>24<0?c^27:c;c=k<<1;q=k<<24>>24<0?c^27:c;h=q^h;j=H[g|0];c=j<<1;c=(j|0)<0?c^27:c;b=c<<1;o=c<<24>>24<0?b^27:b;b=o<<1;r=o<<24>>24<0?b^27:b;j=r^j;p=H[g+ +12|0];b=p<<1;b=(p|0)<0?b^27:b;d=b<<1;l=b<<24>>24<0?d^27:d;e=H[g+4|0];d=e<<1;d=(e|0)<0?d^27:d;f=d<<1;f=d<<24>>24<0?f^27:f;s=l^f;m=e;e=f<<1;f=f<<24>>24<0?e^27:e;e=m^f;m=l<<1;l=l<<24>>24<0?m^27:m;H[g+12|0]=j^(c^s^b)^e^l^h;k=k^o;m=e^(j^(k^i^b)^q);b=l^p;H[g+8|0]=m^b;H[g+4|0]=b^(j^(f^(i^(d^s)))^h);H[g|0]=b^(e^(d^(c^k)^r)^h);n=n+1|0;if((n|0)!=4)continue;break}}function tcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c, +f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){h=255-e|0;f=K[a+3|0];j=P(f,e);i=f^255;k=K[a+1|0];g=K[a+2|0];a:{if(f>>>0>g<<1>>>0){g=P(g,(b<<1)+h|0)+P(b,i)|0;break a}g=(((P(b,i)+j|0)+P(h,g)|0)+(P(b-e|0,f-g|0)<<1)|0)+255|0}b=K[a|0];H[a+2|0]=g>>>8;if(f>>>0>k<<1>>>0)c=P((c<<1)+h|0,k)+P(c,i)|0;else c=(((P(c,i)+j|0)+P(h,k)|0)+(P(c-e|0,f-k|0)<<1)|0)+255|0;H[a+1|0]=c>>>8;b:{if(f>>>0>b<<1>>>0){c=j+255|0;b=P(b,(d<<1)+h|0)+P(d,i)|0;break b}c=j+255|0;b=((c+P(d,i)|0)+P(b,h)|0)+(P(d-e|0,f-b|0)<<1)|0}H[a|0]=b>>>8;H[a+3|0]= +e+f-(c>>>8)}}function er(a,b,c){var d=0,e=Q(0),f=0,g=0,h=0,i=0,j=0,k=0;h=fc-16|0;fc=h;i=Dc(J[b+4>>2]<<3);a:{if(i){if(J[b+4>>2])while(1){g=1;e=N[(j<<2)+c>>2];b:{if(e>1]==5){d=J[a>>2];f=J[a+628>>2];k=J[Sf(a,L[b>>1])+16>>2];O[h+8>>3]=e;J[h>>2]=k;le(f,d,76814,h);e=Q(0);d=1;break b}g=-1;e=Q(-e)}d=1;if(!(e>Q(0))|!(e>>0<33554432;d=f;if(k)continue}break}d=f}f=(j<<3)+i|0;J[f+4>>2]=d;g=g*(+e+.5);d:{if(g<4294967296& +g>=0){d=~~g>>>0;break d}d=0}J[f>>2]=d;j=j+1|0;if(j>>>0>2])continue;break}d=Yf(a,b,i);uc(i);break a}Uc(J[a+628>>2],J[a>>2],75825,0)}fc=h+16|0;return d}function Qjb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a>>2];c=J[a+436>>2];J[d+24>>2]=c;J[d+20>>2]=124;J[J[a>>2]+28>>2]=b;kc[J[J[a>>2]+4>>2]](a,-1);d=b+6&7|208;f=b-1&7|208;g=b+2&7|208;b=b+1&7|208;while(1){a:{b:{if((c|0)<192)break b;if((b|0)==(c|0)|c-216>>>0<4294967288|(c|0)==(g|0))break a;if((c|0)==(f|0)|(c|0)==(d|0))break b;b=J[a>>2];J[b+ +24>>2]=c;J[b+20>>2]=99;J[J[a>>2]+28>>2]=1;kc[J[J[a>>2]+4>>2]](a,4);J[a+436>>2]=0;return 1}e=J[a>>2];J[e+24>>2]=c;J[e+20>>2]=99;J[J[a>>2]+28>>2]=2;kc[J[J[a>>2]+4>>2]](a,4);if(XM(a)){c=J[a+436>>2];continue}else return 0}break}b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=99;J[J[a>>2]+28>>2]=3;kc[J[J[a>>2]+4>>2]](a,4);return 1}function Vua(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;c=J[a>>2];b=0;a:{if(!c)break a;kc[J[J[c>>2]+44>>2]](c,0,d+8|0,10)|0;c=J[d+8>>2];b=1;if((c|0)<0)break a;f=J[a>>2];b=J[f+ +8>>2];b:{if((c|0)>=(b|0)){c=b;break b}e=b;b=J[f+12>>2];h=e+b|0;b=b+c|0;c:{while(1){d:{c=b;if(!K[b|0])break d;J[d+12>>2]=b;g=kc[J[J[f>>2]+60>>2]](f,d+12|0)|0;b=J[d+12>>2];if((c|0)==(b|0))break d;e:{if(g>>>0>255)break e;e=g<<24>>24;e=(e|0)<-1?g:e;if((e|0)==32|e-9>>>0<5)break e;switch(g-10|0){case 0:case 3:break e;default:break d}}if(b>>>0>>0)continue;break c}break}b=c}b=b-J[f+12>>2]|0;a=J[a>>2];c=0;if(!a)break b;c=J[a+8>>2]}b=(b|0)==(c|0)}fc=d+16|0;return b|0}function OMa(a){a=a|0;var b=0,c=0;J[a+ +32780>>2]=0;J[a+32784>>2]=0;J[a+34084>>2]=0;J[a+34092>>2]=1;J[a+34096>>2]=1;b=a+32788|0;J[b>>2]=0;J[b+4>>2]=0;b=J[a+4>>2];kc[J[J[b>>2]+20>>2]](b);b=J[a+8>>2];if(b){Ac(J[b+32>>2],0,J[b+28>>2]);J[b+36>>2]=J[b+28>>2]}J[a+34092>>2]=1;J[a+34096>>2]=1;b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+34112>>2]=0;J[a+34116>>2]=0;J[a+34104>>2]=2;J[a+34108>>2]=0;if(!((b|0)==-1|(c|0)==-1)){if((b&15)!=8){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,831317,0);return}if((c+(b<<8)|0)%31|0){Cc(1, +kc[J[J[a>>2]+52>>2]](a)|0,831733,0);return}if(c&32){Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,832019,0);return}J[a+34096>>2]=0}}function wTa(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;c=J[a+28>>2];e=J[c+596>>2];if(!(J[e+28>>2]>0|J[e>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,828862,0);return}g=O[b+24>>3];a=J[b+24>>2];h=O[b+40>>3];i=J[b+40>>2];j=O[b+56>>3];k=J[b+56>>2];d=O[b+72>> +3];l=J[b+72>>2];m=O[b+8>>3];n=J[b+8>>2];o=J[b>>2];p=J[b+16>>2];q=J[b+32>>2];r=J[b+48>>2];s=J[b+64>>2];f=J[b+80>>2]==1?+J[b+88>>2]:O[b+88>>3];O[c+608>>3]=f;d=(s|0)==1?+(l|0):d;O[c+600>>3]=d;Nm(e,(o|0)==1?+(n|0):m,(p|0)==1?+(a|0):g,(q|0)==1?+(i|0):h,(r|0)==1?+(k|0):j,d,f)}function hs(a){var b=0,c=0,d=0,e=0;c=J[a+420>>2];a:{if(!c)break a;b=J[a+412>>2];if((b|0)<=0)break a;b=P(b,24)+c|0;d=K[a+372|0];while(1){if(!(!K[c+16|0]|(d|0)!=K[c+12|0])){b=J[a+432>>2];if((b|0)>=J[a+436>>2]){J[a+12>>2]=130;return}J[a+ +432>>2]=b+1;b=J[a+440>>2]+(b<<4)|0;J[b>>2]=J[a+356>>2];d=J[a+364>>2];J[b+12>>2]=c;J[b+8>>2]=1;J[b+4>>2]=d+1;b=J[c>>2];b:{if(b-4>>>0<=4294967292){J[a+12>>2]=132;break b}d=(b-1<<3)+a|0;e=J[d+448>>2];if(!e){J[a+12>>2]=138;break b}d=J[d+452>>2];c=J[c+4>>2];if((d|0)<(c|0)){J[a+12>>2]=131;break b}J[a+368>>2]=d;J[a+360>>2]=e;J[a+364>>2]=c;J[a+356>>2]=b}H[a+380|0]=0;return}c=c+24|0;if(b>>>0>c>>>0)continue;break}}J[a+12>>2]=128}function hba(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=2770160;c=J[a+16>>2];e=J[a+12>>2]; +d=(e|0)>=19?19:e;a:{if((d|0)<=0)break a;f=d&3;b:{if(!f){a=d;break b}a=d;while(1){J[c>>2]=(J[b>>2]+(J[b+4>>2]<<1)<<4)+2647936;b=b+8|0;c=c+4|0;a=a-1|0;g=g+1|0;if((g|0)!=(f|0))continue;break}}if(d>>>0<4)break a;while(1){J[c>>2]=(J[b>>2]+(J[b+4>>2]<<1)<<4)+2647936;J[c+4>>2]=(J[b+8>>2]+(J[b+12>>2]<<1)<<4)+2647936;J[c+8>>2]=(J[b+16>>2]+(J[b+20>>2]<<1)<<4)+2647936;J[c+12>>2]=(J[b+24>>2]+(J[b+28>>2]<<1)<<4)+2647936;b=b+32|0;c=c+16|0;d=a-5|0;a=a-4|0;if(d>>>0<4294967294)continue;break}}b=e-19|0;if((b|0)>0)while(1){J[c>> +2]=2647936;c=c+4|0;a=b>>>0>1;b=b-1|0;if(a)continue;break}}function fba(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=2770160;c=J[a+16>>2];e=J[a+20>>2];d=(e|0)>=19?19:e;a:{if((d|0)<=0)break a;f=d&3;b:{if(!f){a=d;break b}a=d;while(1){J[c>>2]=(J[b>>2]+(J[b+4>>2]<<1)<<4)+2647936;b=b+8|0;c=c+4|0;a=a-1|0;g=g+1|0;if((g|0)!=(f|0))continue;break}}if(d>>>0<4)break a;while(1){J[c>>2]=(J[b>>2]+(J[b+4>>2]<<1)<<4)+2647936;J[c+4>>2]=(J[b+8>>2]+(J[b+12>>2]<<1)<<4)+2647936;J[c+8>>2]=(J[b+16>>2]+(J[b+20>>2]<<1)<<4)+2647936;J[c+ +12>>2]=(J[b+24>>2]+(J[b+28>>2]<<1)<<4)+2647936;b=b+32|0;c=c+16|0;d=a-5|0;a=a-4|0;if(d>>>0<4294967294)continue;break}}b=e-19|0;if((b|0)>0)while(1){J[c>>2]=2647936;c=c+4|0;a=b>>>0>1;b=b-1|0;if(a)continue;break}}function fP(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+56>>2];if(e){if(J[a+52>>2]){while(1){c=J[e>>2];if(c){f=0;h=J[e+32>>2];if(J[h+32>>2]){while(1){b=J[c+28>>2];if(b){g=0;if(J[c+24>>2]){while(1){d=J[b+4>>2];if(d)uc(d);d=J[b+20>>2];if(d)Pf(d);d=J[b+24>>2];if(d)aF(d);d=J[b+28>>2];if(d)mg(d); +d=J[b+32>>2];if(d)mg(d);b=b+60|0;g=g+1|0;if(g>>>0>2])continue;break}b=J[c+28>>2]}uc(b)}b=J[c+32>>2];if(b)no(b);b=J[c+36>>2];if(b)no(b);b=J[c+44>>2];if(b)no(b);b=J[c+48>>2];if(b)no(b);c=c+52|0;f=f+1|0;if(f>>>0>2])continue;break}c=J[e>>2]}uc(c)}c=J[e+4>>2];if(c)mg(c);e=e+36|0;i=i+1|0;if(i>>>0>2])continue;break}e=J[a+56>>2]}uc(e)}}function aY(a){var b=0,c=0,d=0,e=0;J[699344]=0;$(4897,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)a:{aB(a+60|0,J[a- -64>>2]);J[699344]=0;b=J[699344];J[699344]= +0;if((b|0)==1)break a;e=J[a+44>>2];if(e){b=J[a+48>>2];c=e;if((b|0)!=(c|0)){while(1){d=b-12|0;if(H[b-1|0]<0)uc(J[d>>2]);b=d;if((e|0)!=(b|0))continue;break}c=J[a+44>>2]}J[a+48>>2]=e;uc(c)}b=J[a+40>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+40>>2]=0}Ht(a+28|0,J[a+32>>2]);Du(a+12|0,J[a+16>>2]);d=J[a>>2];if(d){b=d;c=J[a+4>>2];if((b|0)!=(c|0)){while(1){if(H[c-1|0]<0)uc(J[c-12>>2]);if(H[c-13|0]<0)uc(J[c-24>>2]);c=c-40|0;if((d|0)!=(c|0))continue;break}b=J[a>>2]}J[a+4>>2]=d;uc(b)}return a}ea(0)|0;Bc();B()}function aJa(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=fc-16|0;fc=f;a:{b:{if(a){if(!b)break b;if(!d)break a;e=J[a+120>>2];c:{if(!e){Nc(d,1,2363229,0);c=0;break c}if(J[e+12>>2]){Nc(d,1,2363356,0);c=0;break c}e=K[e+18|0];g=e<<2;if(g>>>0>c>>>0){Nc(d,1,2363395,0);c=0;break c}g=ef(g);c=0;if(!g)break c;if(e){d=0;while(1){c=f+12|0;wd(b,c,2);h=g+(d<<2)|0;I[h>>1]=J[f+12>>2];wd(b+2|0,c,1);H[h+2|0]=J[f+12>>2];wd(b+3|0,c,1);H[h+3|0]=J[f+12>>2];b=b+4|0;d=d+1|0;if((e|0)!=(d|0))continue;break}}J[J[a+120>>2]+12>>2]= +g;c=1}fc=f+16|0;return c|0}fa(2354499,2354795,1277,2371576);B()}fa(2363143,2354795,1278,2371576);B()}fa(2355439,2354795,1279,2371576);B()}function aH(a,b,c,d,e){var f=0,g=0,h=0;h=bH(a,b,c,d);f=J[e>>2];if(!f)return h;g=J[d>>2];if(!(!g|M[f+616>>2]>2]))return h;J[d>>2]=f;J[e>>2]=g;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=h+1|0;f=J[d>>2];a:{if(!f)break a;g=J[c>>2];if(M[f+616>>2]>=M[g+616>>2]?g:0)break a;J[c>>2]=f;J[d>>2]=g;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;e=h+2|0;d=J[c>>2];if(!d)break a; +f=J[b>>2];if(M[d+616>>2]>=M[f+616>>2]?f:0)break a;J[b>>2]=d;J[c>>2]=f;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;e=h+3|0;c=J[b>>2];if(!c)break a;d=J[a>>2];if(M[c+616>>2]>=M[d+616>>2]?d:0)break a;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;e=h+4|0}return e}function a4(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;h=J[a+16>>2];if((h|0)!=J[a+24>>2]){h=(h+J[a+12>>2]|0)-1|0;H[h|0]=K[h|0]&253;h=J[a+20>>2];i=J[a+16>>2];j=i+3|0;a:{if((h|0)>=(j|0)){h=J[a+12>>2];break a}if(!h){J[a+20>>2]=32;h= +32}if((h|0)<(j|0)){while(1){h=h<<1;if((j|0)>(h|0))continue;break}J[a+20>>2]=h}k=a,l=fe(J[a+8>>2],h<<4),J[k+8>>2]=l;h=fe(J[a+12>>2],J[a+20>>2]);J[a+12>>2]=h;i=J[a+16>>2]}j=J[a+8>>2]+(i<<4)|0;O[j+8>>3]=c;O[j>>3]=b;H[h+i|0]=8;h=J[a+16>>2]+1|0;J[a+16>>2]=h;i=J[a+8>>2]+(h<<4)|0;O[i+8>>3]=e;O[i>>3]=d;H[h+J[a+12>>2]|0]=8;h=J[a+16>>2]+1|0;J[a+16>>2]=h;i=J[a+8>>2]+(h<<4)|0;O[i+8>>3]=g;O[i>>3]=f;H[h+J[a+12>>2]|0]=2;J[a+16>>2]=J[a+16>>2]+1}}function XMa(a){a=a|0;var b=0,c=0,d=0;b=vc(3528);c=J[a+4>>2];d=J[J[c>> +2]+8>>2];J[699344]=0;c=_(d|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[b+192>>2]=J[a+192>>2];J[b>>2]=2343848;J[b+4>>2]=c;J[b+3468>>2]=0;J[b+188>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;Ac(b+724|0,0,2736);J[b+3504>>2]=0;a=b+3496|0;J[a>>2]=0;J[a+4>>2]=0;a=b+3488|0;J[a>>2]=0;J[a+4>>2]=0;J[b+3480>>2]=0;J[b+3484>>2]=0;if(!K[2773860]){a=0;Ac(2773872,0,384);while(1){H[a+2774256|0]=a;H[a+2774257|0]=a|1;H[a+2774258|0]=a|2;H[a+2774259|0]=a|3;a=a+4|0;if((a|0)!=256)continue; +break}Ac(2774512,255,383);H[2773860]=1}return b|0}a=Z()|0;uc(b);ba(a|0);B()}function yIa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-32|0;fc=e;f=e+20|0;kc[J[J[a>>2]+12>>2]](f,a,b);J[699344]=0;_(44,f|0)|0;a=J[699344];J[699344]=0;a:{b:{c:{if((a|0)!=1){J[699344]=0;a=e+4|0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=415588;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[699344]=0;aa(17,a|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[699344]=0;ga(42,a|0,c|0,d|0)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break b;J[699344]=0;$(21,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;De(a);if(H[e+31|0]<0)uc(J[e+20>>2]);fc=e+32|0;return}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;De(a)}if(H[e+31|0]<0)uc(J[e+20>>2]);ba(b|0);B()}function csb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1179795789){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];e=J[c+36>>2];J[b+36>>2]=e;H[b+44|0]=K[c+44|0];H[b+45|0]=K[c+45|0];H[b+46|0]=K[c+46|0];H[b+47|0]=K[c+47|0];J[b+48>>2]=J[c+48>>2];J[b+52>> +2]=J[c+52>>2];H[b+56|0]=K[c+56|0];J[b+60>>2]=J[c+60>>2];J[b+64>>2]=J[c+64>>2];J[b+68>>2]=J[c+68>>2];J[b+72>>2]=J[c+72>>2];d=J[c+76>>2];J[b+76>>2]=d;if(e){d=kc[J[a+152>>2]](e)|0;J[b+40>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[c+40>>2],J[b+36>>2]);d=J[b+76>>2]}if(d){e=b;d=d<<2;b=kc[J[a+152>>2]](d)|0;J[e+80>>2]=b;if(b){xc(b,J[c+80>>2],d);return 0}Jc(a,1,0,0);a=1}else a=0;return a|0}function W8(a,b,c){var d=0,e=0,f=0,g=0;g=J[(c?16:12)+b>>2];b=J[(c?8:4)+b>>2];e=P(c,7676)+a|0;f=e+7712|0;a=e+7716|0;a:{if((b| +0)==J[f>>2]&J[a>>2]==(g|0))break a;J[f>>2]=b;J[a>>2]=g;J[e+44>>2]=b;J[e+48>>2]=g;if(!J[e+260>>2])break a;f=0;while(1){a=P(f,28)+e|0;c=Wc(J[a+264>>2],b)+g|0;J[a+272>>2]=c;J[a+268>>2]=c;c=Wc(J[a+276>>2],b)+g|0;J[a+284>>2]=c;J[a+280>>2]=c;J[a+288>>2]=J[a+288>>2]&-2;if(Wc(J[a+264>>2]-J[a+276>>2]|0,b)+48>>>0<=96){c=J[a+268>>2]+32&-64;J[a+272>>2]=c;c=Cd(c,b)-J[a+276>>2]|0;d=c>>31;d=Wc((c^d)-d|0,b);d=(d|0)>=32?d+32&-64:0;J[a+284>>2]=((c|0)<0?d:0-d|0)+J[a+272>>2];J[a+288>>2]=J[a+288>>2]|1}f=f+1|0;if(f>>> +0>2])continue;break}}}function QKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=fc-16|0;fc=f;if(J[J[a+16>>2]+40>>2]){J[f+12>>2]=1;kc[J[J[b>>2]+416>>2]](b,837272,f+12|0)|0;g=fc-240|0;fc=g;a:{b:{a=J[J[a+16>>2]+40>>2];if(!(!b|!J[a>>2])){b=V0(g+8|0,b,J[a+16>>2],J[a+20>>2]);e=J[J[a>>2]+24>>2];J[699344]=0;J[b+164>>2]=e;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[b+172>>2]=d;d=J[J[a>>2]+28>>2];J[699344]=0;c=c+1|0;d=aa(3446,d|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;a=J[a>>2]; +d=J[J[d+12>>2]+168>>2];J[699344]=0;eb(3696,a|0,b|0,c|0,72,72,0-d|0,0,1,0,0,0);a=J[699344];J[699344]=0;if((a|0)==1)break b;eC(b)}fc=g+240|0;break a}a=Z()|0;eC(b);ba(a|0);B()}}fc=f+16|0}function Jva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[a>>2]=0;a:{b:{c:{d:{if(c){f=J[b+12>>2];J[699344]=0;e=d+12|0;ia(5639,e|0,b|0,f|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;aa(5153,a|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;if(!a)break a;J[699344]= +0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break b;if(b)break a;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;break a}c=Z()|0;zc(d+12|0);break c}J[699344]=0;aa(5145,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a;c=Z()|0;break c}c=Z()|0}zc(a);ba(c|0);B()}ea(0)|0;Bc();B()}fc=d+16|0}function Byb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=J[J[a+536>>2]+88>>2];d=(J[d+1176>>2]+P(J[d+1168>>2],J[a+572>>2])|0)+P(J[d+1164>>2],J[a+580>>2])|0;e=J[a+644>>2];a:{b:{c:switch(K[a+ +2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){b=K[d|0]|K[d+1|0]<<8;c=(b<<8|b>>>8)&65535;b=K[e|0]|K[e+1|0]<<8;b=c+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[d|0]=b;H[d+1|0]=b>>>8;b=d+2|0;c=K[b|0]|K[b+1|0]<<8;g=(c<<8|c>>>8)&65535;c=K[e+2|0]|K[e+3|0]<<8;c=g+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;e=e+4|0;d=d+4|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}xc(d,e,J[a+588>>2]<<2);return 0}function m9a(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;e=fc-16|0;fc=e;d=J[a+112>>2];J[e+12>>2]=d;f=J[a+108>>2];J[e+8>>2]=f;g=P(d,f)<<2;a:{if((g|0)<=0)break a;J[b+8>>2]=J[e+8>>2];J[b+4>>2]=J[e+12>>2];J[e+4>>2]=J[e+12>>2]<<2;J[b+12>>2]=J[e+4>>2];d=vc(g);J[b+16>>2]=d;b=J[a+108>>2];if(!b)break a;f=J[a+112>>2];if(!f)break a;i=c?0:2;j=c?2:0;while(1){b:{if(!f){f=0;break b}b=J[a+144>>2]+P(P(J[a+288>>2],h),f)|0;c=0;while(1){H[d+j|0]=K[b|0];H[d+1|0]=K[b+1|0];H[d+i|0]=K[b+2|0];H[d+3|0]=K[b+3|0];d=d+4|0;b=b+4|0;c=c+1|0;f=J[a+ +112>>2];if(c>>>0>>0)continue;break}b=J[a+108>>2]}h=h+1|0;if(h>>>0>>0)continue;break}}fc=e+16|0;return(g|0)>0|0}function dT(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=fc-16|0;fc=d;if(!K[2794352]){j=2794353,k=wb()|0,H[j|0]=k;H[2794352]=1}g=+Za();c=g/1E3;a:{if(R(c)<0x7fffffffffffffff){e=~~c>>>0;if(R(c)>=1)b=~~(c>0?T(V(c*2.3283064365386963E-10),4294967295):W((c-+(~~c>>>0>>>0))*2.3283064365386963E-10))>>>0;else b=0;break a}b=-2147483648}J[d>>2]=e;J[d+4>>2]=b;c=(g-(+(vEb(e,b,1E3,0)>>>0)+ +(jc| +0)*4294967296))*1E3*1E3;b:{if(R(c)<2147483648){b=~~c;break b}b=-2147483648}J[d+8>>2]=b;h=J[d+8>>2];i=J[d>>2];e=J[698616];b=J[698605];J[698605]=b+1;b=b+((h+i|0)+P(e,65537)|0)|0;while(1){H[a+f|0]=(b&15|b<<1&32)+65;b=b>>>5|0;f=f+1|0;if((f|0)!=6)continue;break}fc=d+16|0}function Pj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;if(!K[b+32|0])Sp(b,c);J[a>>2]=0;J[a+4>>2]=J[685894];a:{b=J[b+8>>2];b:{c:{if(b){c=J[J[b>>2]+28>>2];J[699344]=0;ca(c|0,d+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break c; +b=Z()|0;break b}J[d+12>>2]=0}J[699344]=0;aa(5153,a|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=J[d+12>>2];J[d+12>>2]=0;if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}b=Z()|0;zc(d+12|0)}wc(a);ba(b|0);B()}b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];fc=d+16|0}function Lx(a,b,c,d){a=a|0;b=+b;c=+c;d=d|0;var e=0,f=0;e=fc-48|0;fc=e;a=J[a>>2];a:{if(!d){J[e+ +16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;O[e+24>>3]=c;O[e>>3]=b;d=Bj(e,a);f=J[d+4>>2];J[a>>2]=J[d>>2];J[a+4>>2]=f;f=J[d+44>>2];J[a+40>>2]=J[d+40>>2];J[a+44>>2]=f;f=J[d+36>>2];J[a+32>>2]=J[d+32>>2];J[a+36>>2]=f;f=J[d+28>>2];J[a+24>>2]=J[d+24>>2];J[a+28>>2]=f;f=J[d+20>>2];J[a+16>>2]=J[d+16>>2];J[a+20>>2]=f;f=J[d+12>>2];J[a+8>>2]=J[d+8>>2];J[a+12>>2]=f;break a}J[e+16>>2]=0;J[e+20>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;O[e>>3]= +b;J[e+32>>2]=0;J[e+36>>2]=0;O[e+24>>3]=c;Bj(a,e)}fc=e+48|0}function HJa(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=fc-16|0;fc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;g=J[J[a+72>>2]+16>>2];c:{if((g+2|0)!=(c|0)){Nc(d,1,2369004,0);break c}wd(b,e+12|0,2);if(J[e+12>>2]!=(g|0)){Nc(d,1,2369004,0);break c}if(!g){f=1;break c}b=b+2|0;a=J[J[a+72>>2]+24>>2];c=0;while(1){wd(b,e+8|0,1);f=J[e+8>>2];h=f&127;i=h+1|0;J[a+24>>2]=i;J[a+32>>2]=f>>>7&1;if(h>>>0>=31){J[e+4>>2]=i;J[e>>2]=c;Nc(d,1,2368067, +e);f=0;break c}a=a+52|0;f=1;b=b+1|0;c=c+1|0;if((g|0)!=(c|0))continue;break}}fc=e+16|0;return f|0}fa(2365733,2358254,6527,2368987);B()}fa(2358373,2358254,6528,2368987);B()}fa(2358486,2358254,6529,2368987);B()}function D8a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((e|0)<=0)break a;i=J[a+112>>2];if(!i)break a;g=J[a+332>>2];a=J[a+476>>2];k=J[a+20>>2];l=J[a+16>>2];m=J[a+12>>2];n=J[a+8>>2];while(1){o=c+1|0;p=e-1|0;a=c<<2;q=J[a+J[b+12>> +2]>>2];r=J[a+J[b+8>>2]>>2];s=J[a+J[b+4>>2]>>2];t=J[a+J[b>>2]>>2];c=J[d>>2];a=0;while(1){f=K[a+s|0];h=K[a+t|0]^255;j=K[a+r|0]<<2;H[c|0]=K[(h-J[j+n>>2]|0)+g|0];f=f<<2;H[c+1|0]=K[(h-(J[l+j>>2]+J[f+k>>2]>>16)|0)+g|0];H[c+2|0]=K[(h-J[f+m>>2]|0)+g|0];H[c+3|0]=K[a+q|0];c=c+4|0;a=a+1|0;if((i|0)!=(a|0))continue;break}d=d+4|0;a=(e|0)>1;e=p;c=o;if(a)continue;break}}}function Tx(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;g=c-b|0;e=g>>2;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>2>>>0){f=J[a+4>>2]-d|0; +h=f>>2;if(e>>>0>h>>>0){cd(d,b,f);d=J[a+4>>2];b=(h<<2)+b|0;if((c|0)!=(b|0))while(1){N[d>>2]=N[b>>2];d=d+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=cd(d,b,g)+(e<<2)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=1073741824)break a;d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d>>>0>=1073741824)break a;e=d<<2;d=vc(e);J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-4&-4)+4|0;d=xc(d,c,b)+b|0}J[a+4>>2]=d;return}nj(a); +B()}function T8a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if((e|0)<=0)break a;a=J[a+112>>2];if(!a)break a;l=a&-4;k=a&3;m=a-1>>>0<3;while(1){i=J[J[b>>2]+(c<<2)>>2];a=J[d>>2];j=0;g=0;h=0;if(!m)while(1){f=K[g+i|0];H[a+1|0]=f;H[a+2|0]=f;H[a|0]=f;f=K[(g|1)+i|0];H[a+4|0]=f;H[a+5|0]=f;H[a+3|0]=f;f=K[(g|2)+i|0];H[a+7|0]=f;H[a+8|0]=f;H[a+6|0]=f;f=K[(g|3)+i|0];H[a+10|0]=f;H[a+11|0]=f;H[a+9|0]=f;g=g+4|0;a=a+12|0;h=h+4|0;if((l|0)!=(h|0))continue;break}if(k)while(1){h=K[g+ +i|0];H[a+1|0]=h;H[a+2|0]=h;H[a|0]=h;g=g+1|0;a=a+3|0;j=j+1|0;if((j|0)!=(k|0))continue;break}d=d+4|0;c=c+1|0;a=(e|0)>1;e=e-1|0;if(a)continue;break}}}function L9(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;g=c-b|0;e=g>>2;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>2>>>0){f=J[a+4>>2]-d|0;h=f>>2;if(e>>>0>h>>>0){cd(d,b,f);d=J[a+4>>2];b=(h<<2)+b|0;if((c|0)!=(b|0))while(1){J[d>>2]=J[b>>2];d=d+4|0;b=b+4|0;if((c|0)!=(b|0))continue;break}J[a+4>>2]=d;return}i=a,j=cd(d,b,g)+(e<<2)|0,J[i+4>>2]=j;return}if(d){J[a+ +4>>2]=d;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=1073741824)break a;d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d>>>0>=1073741824)break a;e=d<<2;d=vc(e);J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-4&-4)+4|0;d=xc(d,c,b)+b|0}J[a+4>>2]=d;return}qj(a);B()}function c_a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;b=kc[J[663195]](64)|0;a:{if(!b){J[d>>2]=17054;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,d);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;J[b+48>>2]= +0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=16;J[b+40>>2]=J[a+40>>2];J[b+44>>2]=J[a+44>>2];e=b,f=I1(J[a+52>>2]),J[e+52>>2]=f;c=J[a+60>>2];if(c)e=b,f=ff(c),J[e+60>>2]=f;c=J[a+8>>2];if(c)e=b,f=ff(c),J[e+8>>2]=f;c=J[a+56>>2];if(c)e=b,f=ff(c),J[e+56>>2]=f;a=J[a+48>>2];if(!a)break a;e=b,f=ff(a),J[e+48>>2]=f}fc=d+16|0;return b|0}function AE(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(!a)return;c=a?J[a+ +40>>2]:0;b=a?J[a+12>>2]:-1;d=a?J[a+4>>2]:-1;if(!((d|0)<=0|(b|0)<=0)){g=b&-4;e=b&3;h=b>>>0<4;while(1){a=0;if(!h)while(1){b=J[c>>2];J[c>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[c+4>>2];J[c+4>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[c+8>>2];J[c+8>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=J[c+12>>2];J[c+12>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);c=c+16|0;a=a+4|0;if((g|0)!=(a|0))continue;break}a=0;if(e)while(1){b=J[c>>2];J[c>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);c=c+4|0;a=a+ +1|0;if((e|0)!=(a|0))continue;break}f=f+1|0;if((f|0)!=(d|0))continue;break}}}function iD(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{if(!(b>0))break b;e=J[a>>2];if(e>>>0<2)break b;h=e-2|0;if(!h){e=2;break a}f=J[a+12>>2];d=e;while(1){g=O[(J[f+(h>>>4&268435452)>>2]+P(h&63,24)|0)+16>>3];if(!(g>b)){if(d){e=d-1|0;J[a>>2]=e;d=e}else d=0;b=b-g;h=h-1|0;if(h)continue}break}if(e>>>0>1)break a;J[a>>2]=0}return}d=J[a+12>>2];f=e-2|0;f=J[d+(f>>>4&268435452)>>2]+P(f&63,24)|0;j=O[f>>3];e=e-1|0;d=J[d+(e>>>4&268435452)>> +2]+P(e&63,24)|0;i=O[f+8>>3];g=O[f+16>>3];b=(g-b)/g;g=(O[d+8>>3]-i)*b+i;O[d+8>>3]=g;b=j+(O[d>>3]-j)*b;O[d>>3]=b;b=b-O[f>>3];i=b*b;b=g-O[f+8>>3];b=Y(i+b*b);d=b>1E-14;O[f+16>>3]=d?b:1E14;if(!d)J[a>>2]=e;Cx(a,(c|0)!=0)}function T6a(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;g=c-b|0;e=g>>3;f=J[a+8>>2];d=J[a>>2];if(e>>>0<=f-d>>3>>>0){f=J[a+4>>2]-d|0;h=f>>3;if(e>>>0>h>>>0){cd(d,b,f);d=J[a+4>>2];b=(h<<3)+b|0;if((c|0)!=(b|0))while(1){O[d>>3]=O[b>>3];d=d+8|0;b=b+8|0;if((c|0)!=(b|0))continue;break}J[a+ +4>>2]=d;return}i=a,j=cd(d,b,g)+(e<<3)|0,J[i+4>>2]=j;return}if(d){J[a+4>>2]=d;uc(d);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=0}a:{if(e>>>0>=536870912)break a;d=f>>2;d=f>>>0>=2147483640?536870911:d>>>0>e>>>0?d:e;if(d>>>0>=536870912)break a;e=d<<3;d=vc(e);J[a>>2]=d;J[a+8>>2]=d+e;if((b|0)!=(c|0)){c=b;b=(g-8&-8)+8|0;d=xc(d,c,b)+b|0}J[a+4>>2]=d;return}Fg(a);B()}function rSa(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;a=Ac(a,0,256);d=J[b>>2]+c|0;e=K[d+3|0];f=K[d|0];g=e+f|0;h=K[d+2|0];i=K[d+ +1|0];j=h+i|0;d=g-j<<5;J[a+8>>2]=d;g=g+j<<5;J[a>>2]=g-16384;h=i-h|0;f=f-e|0;e=P(h+f|0,4433)+128|0;h=e+P(h,-15137)>>8;J[a+12>>2]=h;e=e+P(f,6270)>>8;J[a+4>>2]=e;b=J[b+4>>2]+c|0;c=K[b+3|0];f=K[b|0];i=c+f|0;j=K[b+2|0];b=K[b+1|0];k=j+b|0;l=i-k<<5;J[a+40>>2]=d-l>>2;J[a+8>>2]=d+l>>2;d=g-16382|0;g=(i+k<<5)-16384|0;J[a+32>>2]=d-g>>2;J[a>>2]=d+g>>2;d=b-j|0;c=f-c|0;b=P(d+c|0,4433)+128|0;e=e+2|0;c=b+P(c,6270)>>8;J[a+36>>2]=e-c>>2;J[a+4>>2]=c+e>>2;c=h+2|0;b=b+P(d,-15137)>>8;J[a+44>>2]=c-b>>2;J[a+12>>2]=b+c>>2} +function qD(a,b,c){a=a|0;b=+b;c=c|0;var d=0,e=0,f=0,g=0;d=fc-48|0;fc=d;b=b*3.141592653589793/180;f=Ee(b);g=-f;a=J[a>>2];b=Me(b);a:{if(!c){J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;O[d+24>>3]=b;O[d+16>>3]=g;O[d+8>>3]=f;O[d>>3]=b;c=Bj(d,a);e=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=e;e=J[c+44>>2];J[a+40>>2]=J[c+40>>2];J[a+44>>2]=e;e=J[c+36>>2];J[a+32>>2]=J[c+32>>2];J[a+36>>2]=e;e=J[c+28>>2];J[a+24>>2]=J[c+24>>2];J[a+28>>2]=e;e=J[c+20>>2];J[a+16>>2]=J[c+16>>2];J[a+20>>2]=e;e=J[c+12>>2];J[a+8>>2]= +J[c+8>>2];J[a+12>>2]=e;break a}J[d+40>>2]=0;J[d+44>>2]=0;J[d+32>>2]=0;J[d+36>>2]=0;O[d+24>>3]=b;O[d+16>>3]=g;O[d+8>>3]=f;O[d>>3]=b;Bj(a,d)}fc=d+48|0}function hDb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=-1;a:{b:{if(Wg(c,a+12|0))break b;if(Ti(c,a+16|0))break b;d=J[c+8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;c:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break c}d=td(c,1);if((d|0)==-1)break b}H[a+20|0]=d;b=-1;d=J[c+ +8>>2];if(d&7)break b;b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2]))break a;b=-1;d=J[c+28>>2];J[c+28>>2]=d-1;d:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;d=K[b|0];break d}d=td(c,1);if((d|0)==-1)break b}H[a+21|0]=d;b=0-(J[c+8>>2]&1)|0}return b|0}J[c+8>>2]=d|4;return-1}function V_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-32|0;fc=e;a:{if(!a)break a;f=J[a+8>>2];if(!f)break a;if(!(c|d)){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=105;J[e+4>>2]=0;J[e>>2]=b;Hc(0,0,0, +a,0,1,105,3,b,0,0,0,33756,e);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}b:switch(J[a+216>>2]-1|0){case 0:F1(a+108|0,J[f+44>>2],b,c,d);break a;case 1:F1(a+108|0,J[f+48>>2],b,c,d);break a;default:break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=105;J[e+20>>2]=0;J[e+16>>2]=b;Hc(0,0,0,a,0,1,105,3,b,0,0,0,31368,e+16|0);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}fc=e+32|0}function Ayb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=J[J[a+536>>2]+88>>2];c= +(J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0)+P(J[c+1164>>2],J[a+580>>2])|0;d=J[a+644>>2];a:{b:switch(K[a+2253|0]-3|0){case 0:if(J[a+588>>2]<=0)break a;while(1){b=K[c|0]|K[c+1|0]<<8;f=(b<<8|b>>>8)&65535;b=K[d|0]|K[d+1|0]<<8;b=f+((b<<8|b>>>8)&65535)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>>8;d=d+2|0;c=c+4|0;e=e+1|0;if((e|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c|0]=b;H[c+1|0]=b>>> +8;d=d+2|0;c=c+4|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function w_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if((e|0)<=0)break a;h=J[a+76>>2];if((h|0)<=0)break a;a=J[a+28>>2];if(!a)break a;l=a&-4;k=a&3;m=a-1>>>0<3;while(1){n=e-1|0;g=0;while(1){j=J[J[(g<<2)+c>>2]+(d<<2)>>2];f=J[b>>2];a=0;i=0;if(!m)while(1){H[a+j|0]=K[f+g|0];f=f+h|0;H[(a|1)+j|0]=K[f+g|0];f=f+h|0;H[(a|2)+j|0]=K[f+g|0];f=f+h|0;H[(a|3)+j|0]=K[f+g|0];a=a+4|0;f=f+h|0;i=i+4|0;if((l| +0)!=(i|0))continue;break}i=0;if(k)while(1){H[a+j|0]=K[f+g|0];a=a+1|0;f=f+h|0;i=i+1|0;if((k|0)!=(i|0))continue;break}g=g+1|0;if((h|0)!=(g|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=n;if(a)continue;break}}}function vpa(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=J[a+12>>2];a:{if(!b)break a;if(!c){J[a+40>>2]=0;b=J[a+36>>2];if(!b)break a;uc(b);J[a+36>>2]=0;break a}if(J[a+40>>2]!=(c|0)){J[a+40>>2]=c;e=J[a+36>>2];if(e){uc(e);J[a+36>>2]=0;c=J[a+40>>2]}j=a,k=vc(c>>>0>536870911?-1:c<< +3),J[j+36>>2]=k}if((c|0)<=0)break a;e=J[a+36>>2];a=0;if(c>>>0>=4){i=c&-4;while(1){d=a<<3;O[d+e>>3]=O[b+d>>3];f=d|8;O[f+e>>3]=O[b+f>>3];f=d|16;O[f+e>>3]=O[b+f>>3];d=d|24;O[d+e>>3]=O[b+d>>3];a=a+4|0;g=g+4|0;if((g|0)!=(i|0))continue;break}}c=c&3;if(!c)break a;while(1){d=a<<3;O[d+e>>3]=O[b+d>>3];a=a+1|0;h=h+1|0;if((c|0)!=(h|0))continue;break}}return 0}function pRa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=vc(144);d=O[a+48>>3];e=O[a+56>>3];c=J[a+12>>2];f=J[a+8>>2];J[b+4>>2]=1;J[b+128>>2]=13;J[b+64>>2]=13;J[b>> +2]=2218196;J[b+8>>2]=f;J[b+12>>2]=c;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+56>>3]=e;O[b+48>>3]=d;J[699344]=0;aa(3448,a- -64|0,b- -64|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;O[b+80>>3]=O[a+80>>3];O[b+88>>3]=O[a+88>>3];O[b+96>>3]=O[a+96>>3];O[b+104>>3]=O[a+104>>3];O[b+112>>3]=O[a+112>>3];O[b+120>>3]=O[a+120>>3];J[699344]=0;aa(3448,a+128|0,b+128|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function gu(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0;b=vc(16);J[699344]=0;e=_(3352,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)a:{b=J[a>>2];if((b|0)>0){c=0;while(1){b:{if((c|0)>=(b|0))break b;while(1){b=J[a>>2];d=H[J[a+4>>2]+c|0];if(d>>>0<=255)d=K[d+2318736|0]==1;else d=0;if(!d)break b;c=c+1|0;if((b|0)>(c|0))continue;break}}d=c;if((c|0)<(b|0)){while(1){d=d+1|0;if((d|0)>2]){b=H[J[a+4>>2]+d|0];if(b>>>0<=255)b=K[b+2318736|0]==1;else b=0;if(!b)continue}break}b=vc(8);J[699344]=0;c=ha(3454,b|0,a|0,c|0,d-c|0)|0;f=J[699344]; +J[699344]=0;if((f|0)==1)break a;sd(e,c);b=J[a>>2];c=d}if((c|0)<(b|0))continue;break}}return e|0}a=Z()|0;uc(b);ba(a|0);B()}function pV(a){var b=0,c=0;b=(J[a+8>>2]<<2)+a|0;J[b+16>>2]=J[b+16>>2]>>1;b=J[a+8>>2];if(!b){J[a+56>>2]=J[a+56>>2]>>1;J[a+60>>2]=J[a+60>>2]>>1;c=a- -64|0;J[c>>2]=J[c>>2]>>1;J[a+68>>2]=J[a+68>>2]>>1;J[a+72>>2]=J[a+72>>2]>>1;J[a+76>>2]=J[a+76>>2]>>1;J[a+80>>2]=J[a+80>>2]>>1;J[a+84>>2]=J[a+84>>2]>>1;J[a+88>>2]=J[a+88>>2]>>1;J[a+92>>2]=J[a+92>>2]>>1;J[a+96>>2]=J[a+96>>2]>>1;J[a+100>> +2]=J[a+100>>2]>>1;J[a+104>>2]=J[a+104>>2]>>1;J[a+108>>2]=J[a+108>>2]>>1;J[a+112>>2]=J[a+112>>2]>>1;J[a+116>>2]=J[a+116>>2]>>1;J[a+8>>2]=b+1;return 1}J[a+8>>2]=b+1;if((b|0)>=9){J[a+8>>2]=0;b=a;c=J[a+12>>2]+1|0;a=J[a+52>>2];J[b+12>>2]=a?c:-1;a=(a|0)!=0}else a=1;return a}function _ob(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+712>>2];a:{b:{if(!e)break b;f=J[e+1504>>2];a=6;if((f|0)==65535)break a;if(b){a=J[e+3096>>2];if(!a){c:{if(f>>>0>=391){f=f-391|0;g=0;if(f>>>0>=M[e+1356>>2])break c;g= +J[J[e+1360>>2]+(f<<2)>>2];break c}a=J[e+3084>>2];g=0;if(!a)break c;g=kc[J[a+20>>2]](f)|0}a=g;J[e+3096>>2]=a}J[b>>2]=a}if(c){a=J[e+3100>>2];if(!a){a=0;b=J[e+1508>>2];d:{if((b|0)==65535)break d;if(b>>>0>=391){b=b-391|0;if(b>>>0>=M[e+1356>>2])break d;a=J[J[e+1360>>2]+(b<<2)>>2];break d}f=J[e+3084>>2];if(!f)break d;a=kc[J[f+20>>2]](b)|0}J[e+3100>>2]=a}J[c>>2]=a}if(!d)break b;J[d>>2]=J[e+1512>>2]}a=0}return a|0}function SJa(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=fc-16|0;fc=e;a:{b:{c:{d:{if(b){if(!a)break d; +if(!d)break c;h=e+8|0;e:{if(M[J[a+72>>2]+16>>2]<=256){if(c){f=-1;g=1;break e}Nc(d,1,2367161,0);a=0;break a}if(c>>>0<=1)break b;f=-2;g=2}wd(b,h,g);J[e+12>>2]=c+f;c=J[e+8>>2];f=J[J[a+72>>2]+16>>2];if(c>>>0>=f>>>0){J[e+4>>2]=f;J[e>>2]=c;Nc(d,1,2367187,e);a=0;break a}if(!SY(a,c,b+g|0,e+12|0,d)){Nc(d,1,2367161,0);a=0;break a}a=1;if(!J[e+12>>2])break a;Nc(d,1,2367161,0);a=0;break a}fa(2365733,2358254,3183,2367144);B()}fa(2358373,2358254,3184,2367144);B()}fa(2358486,2358254,3185,2367144);B()}Nc(d,1,2367161, +0);a=0}fc=e+16|0;return a|0}function Eib(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;f=J[a+736>>2];a:{if(!f){d=Qu(a,0);if(d)break a;f=J[a+736>>2]}if(!J[f+4>>2]){d=MD(a,0,0,1);if(d)break a}e=J[f>>2];e=b>>>0>e>>>0?e:b;b:{if(K[a+733|0]){if(!e){e=0;break b}f=J[f+8>>2];a=0;if(e>>>0>=4){h=e&-4;while(1){d=a<<2;J[d+c>>2]=J[d+f>>2];g=d|4;J[g+c>>2]=J[f+g>>2];g=d|8;J[g+c>>2]=J[f+g>>2];d=d|12;J[d+c>>2]=J[d+f>>2];a=a+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}d=e&3;if(!d)break b;while(1){h=a<<2; +J[h+c>>2]=J[f+h>>2];a=a+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}break b}if(!e){e=0;break b}Ac(c,0,e<<2)}d=0;if(b>>>0<=e>>>0)break a;Ac((e<<2)+c|0,0,b-e<<2)}return d|0}function Dw(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=fc-256|0;fc=g;a:{if(J[a+320>>2]>0){while(1){e=J[((d<<2)+a|0)+188>>2];kc[J[J[e>>2]+16>>2]](e,b,(d<<3)+g|0);d=d+1|0;if((d|0)>2])continue;break}d=0;b=J[a+8>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)<=0)break a;while(1){e=(d<<2)+c|0;f=O[(d<<3)+g>>3]*65536;b:{if(R(f)<2147483648){b= +~~f;break b}b=-2147483648}J[e>>2]=b;b=J[a+8>>2];d=d+1|0;if((kc[J[J[b>>2]+28>>2]](b)|0)>(d|0))continue;break}break a}if(J[a+316>>2]<=0)break a;while(1){h=(d<<2)+c|0;f=O[(d<<3)+b>>3]*65536;c:{if(R(f)<2147483648){e=~~f;break c}e=-2147483648}J[h>>2]=e;d=d+1|0;if((d|0)>2])continue;break}}fc=g+256|0}function Cib(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;f=J[a+736>>2];a:{if(!f){d=Qu(a,0);if(d)break a;f=J[a+736>>2]}if(!J[f+4>>2]){d=MD(a,0,0,1);if(d)break a}e=J[f>>2];e=b>>>0>e>>>0? +e:b;b:{if(K[a+733|0]){if(!e){e=0;break b}f=J[f+4>>2];a=0;if(e>>>0>=4){h=e&-4;while(1){d=a<<2;J[d+c>>2]=J[d+f>>2];g=d|4;J[g+c>>2]=J[f+g>>2];g=d|8;J[g+c>>2]=J[f+g>>2];d=d|12;J[d+c>>2]=J[d+f>>2];a=a+4|0;i=i+4|0;if((h|0)!=(i|0))continue;break}}d=e&3;if(!d)break b;while(1){h=a<<2;J[h+c>>2]=J[f+h>>2];a=a+1|0;j=j+1|0;if((d|0)!=(j|0))continue;break}break b}if(!e){e=0;break b}Ac(c,0,e<<2)}d=0;if(b>>>0<=e>>>0)break a;Ac((e<<2)+c|0,0,b-e<<2)}return d|0}function mA(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a+12>> +2]=1;J[a+4>>2]=b;J[a>>2]=2432040;J[a+16>>2]=0;b=J[608017];J[a+56>>2]=J[608016];J[a+60>>2]=b;c=J[608019];b=a- -64|0;J[b>>2]=J[608018];J[b+4>>2]=c;J[a+112>>2]=131072;J[a+116>>2]=131072;J[a+104>>2]=131072;J[a+108>>2]=131072;J[a+96>>2]=65536;J[a+100>>2]=65536;J[a+88>>2]=65536;J[a+92>>2]=65536;J[a+80>>2]=65536;J[a+84>>2]=65536;J[a+72>>2]=65536;J[a+76>>2]=65536;J[a+52>>2]=J[608031];b=J[608030];J[a+44>>2]=J[608029];J[a+48>>2]=b;b=J[608028];J[a+36>>2]=J[608027];J[a+40>>2]=b;b=J[608026];J[a+28>>2]=J[608025]; +J[a+32>>2]=b;b=J[608024];J[a+20>>2]=J[608023];J[a+24>>2]=b;Ac(a+392|0,0,114);return a|0}function _1(a){var b=0,c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;b=kc[J[663195]](60)|0;a:{if(!b){J[e>>2]=1832;Hc(0,0,0,0,0,2,2,3,1832,0,0,0,32879,e);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+56>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+4>>2]=3;J[b+8>>2]=774748;if(a){d=a;while(1){c=d;d=c+1|0;if(K[c|0])continue; +break}d=0;c=c-a|0;b:{if((c|0)<0)break b;f=kc[J[663198]](c+1|0)|0;if(!f){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}d=xc(f,a,c);H[c+d|0]=0}J[b+40>>2]=d}if(!J[693393])break a;a=J[693390];if(!a)break a;kc[a|0](b)}fc=e+16|0;return b}function RG(a,b,c,d,e){var f=0,g=0,h=0;h=SG(a,b,c,d);f=J[e>>2];if(!f)return h;g=J[d>>2];if(!(!g|O[f+32>>3]>3]))return h;J[d>>2]=f;J[e>>2]=g;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=h+1|0;f=J[d>>2];a:{if(!f)break a;g=J[c>>2];if(O[f+32>>3]>3]?0:g)break a; +J[c>>2]=f;J[d>>2]=g;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;e=h+2|0;d=J[c>>2];if(!d)break a;f=J[b>>2];if(O[d+32>>3]>3]?0:f)break a;J[b>>2]=d;J[c>>2]=f;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;e=h+3|0;c=J[b>>2];if(!c)break a;d=J[a>>2];if(O[c+32>>3]>3]?0:d)break a;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;e=h+4|0}return e}function E6(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+28>>2];a:{if((b|0)==-1)break a;d=J[a+36>>2];f=J[a+40>>2];if(d>>>0>=f>>>0)break a; +g=J[a>>2];e=b+1|0;h=J[a+16>>2]+16|0;while(1){b:{b=P(d,12)+h|0;c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);e=c>>>0>>0?e:c;c=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(e>>>0>(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0)break b;b=K[b+8|0]|K[b+9|0]<<8|(K[b+10|0]<<16|K[b+11|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if(!b|b>>>0>=M[g+16>>2])break b;J[a+36>>2]=d;J[a+32>>2]=b;J[a+28>>2]=e;return}d=d+1|0;if((f|0)!=(d|0))continue;break}}H[a+ +24|0]=0}function Yvb(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;var h=0,i=0,j=0,k=0,l=0,m=0;if(e){l=e-1|0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];h=g+2|0;a=j?(j|0)==(l|0)?d:b:c;a:{if(a>>>0<2){g=h;break a}i=a-1|0;k=i&3;b:{if(a-2>>>0<3){a=g;break b}m=i&-4;i=0;a=g;while(1){H[h|0]=K[f|0];H[a+3|0]=K[f+1|0];H[h+2|0]=K[f|0];H[h+3|0]=K[f+1|0];H[h+4|0]=K[f|0];H[h+5|0]=K[f+1|0];H[h+6|0]=K[f|0];H[h+7|0]=K[f+1|0];a=h+6|0;h=h+8|0;i=i+4|0;if((m|0)!=(i|0))continue;break}}i=0;g=h;if(!k)break a;while(1){h= +g;H[h|0]=K[f|0];H[a+3|0]=K[f+1|0];g=h+2|0;a=h;i=i+1|0;if((k|0)!=(i|0))continue;break}}f=f+2|0;j=j+1|0;if((j|0)!=(e|0))continue;break}}return 0}function RPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2319280;e=a,f=eJ(b),J[e+4>>2]=f;a:{b:{c:switch(J[c>>2]-3|0){case 1:b=vc(8);c=J[c+8>>2];J[699344]=0;c=aa(3349,b|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+12>>2]=c;return a|0;case 0:c=J[c+8>>2];b=vc(8);J[699344]=0;c=aa(3350,b|0,c|0)|0;d=J[699344];J[699344]=0; +if((d|0)==1)break a;J[a+12>>2]=c;return a|0;case 3:b=vc(72);c=J[c+8>>2];J[699344]=0;c=aa(3550,b|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+8>>2]=c;if(J[c+68>>2])break b;uc(c);J[a+8>>2]=0;return a|0}break a;default:break c}Cc(0,-1,805666,0)}return a|0}a=Z()|0;uc(b);ba(a|0);B()}function oq(a){var b=0,c=0,d=0,e=0,f=0;d=fc-32|0;fc=d;b=kc[J[663195]](96)|0;a:{if(!b){J[d>>2]=17782;Hc(0,0,0,0,0,2,2,3,17782,0,0,0,32879,d);break a}b=Ac(b,0,96);J[b+4>>2]=9;e=a?a:28571;c=e;while(1){a=c;c=a+1|0;if(K[a| +0])continue;break}c=0;b:{a=a-e|0;if((a|0)>=0){f=kc[J[663198]](a+1|0)|0;if(f)break b;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0)}J[b+56>>2]=0;J[d+16>>2]=17782;Hc(0,0,0,0,0,2,2,3,17782,0,0,0,32879,d+16|0);kc[J[663199]](b);break a}c=a;a=xc(f,e,a);H[c+a|0]=0;J[b+56>>2]=a;J[b+36>>2]=-1;J[b+40>>2]=-1;J[b+88>>2]=0;J[b+92>>2]=32;J[b+76>>2]=1;J[b+32>>2]=b;c:{if(!J[693393])break c;a=J[693390];if(!a)break c;kc[a|0](b)}c=b}fc=d+32|0;return c}function jHa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=fc-16|0;fc=e;J[a+4>>2]=0;J[a+ +8>>2]=0;c=a+16|0;J[c>>2]=0;J[c+4>>2]=0;J[a>>2]=a+4;d=a+28|0;J[d>>2]=0;J[d+4>>2]=0;J[a+12>>2]=c;J[a+24>>2]=d;J[699344]=0;c=_(5096,e+8|0)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){J[699344]=0;b=aa(3469,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(b){J[699344]=0;da(5097,a|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}J[c>>2]=769768;b=J[c+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);fc=e+16|0;return a|0}b=Z()|0;break a}b=Z()|0;J[c>>2]=769768;c=J[c+4>>2];if(c)kc[J[J[c>>2]+4>>2]](c)}Wp(a+24|0, +J[a+28>>2]);nw(a+12|0,J[a+16>>2]);Wp(a,J[a+4>>2]);ba(b|0);B()}function Mhb(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;d=fc+-64|0;fc=d;kc[J[b+60>>2]](b,d+16|0,4,d+12|0);c=J[d+12>>2];a:{if((c|0)<0){c=162;break a}if(c-5>>>0<4294967292){c=3;break a}c=JD(a,0,c);J[d+8>>2]=c;if(c)break a;if(J[d+12>>2]<=0){c=0;break a}i=J[a+100>>2];j=J[a+532>>2];while(1){a=(d+16|0)+P(g,12)|0;c=J[a>>2];if(K[c|0]==47){c=c+1|0;J[a>>2]=c}e=J[a+4>>2];if((e|0)==(c|0)){c=3;break a}f=(g<<2)+j|0;h=J[f+8>>2];if(h)kc[J[i+ +8>>2]](i,h);h=f;e=e-c|0;f=he(i,e+1|0,d+8|0);J[h+8>>2]=f;c=J[d+8>>2];if(c)break a;k=xc(f,J[a>>2],e)+e|0,l=0,H[k|0]=l;g=g+1|0;if((g|0)>2])continue;break}c=J[d+8>>2]}J[b+12>>2]=c;fc=d- -64|0}function hta(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=fc-32|0;fc=f;a:{b:{c=J[a+44>>2];e=J[a+40>>2];if(J[b>>2]>=(((c+J[a+16>>2]|0)-e|0)+1|0)){a=Qc(f+8|0,2388535,2386144,228,2433142,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}d=(c-e|0)+1|0;if(!((e|0)<=(d|0)&(c|0)>=(d|0))){ut(a+ +24|0,d);e=J[a+40>>2];c=J[a+44>>2]}if(!((d|0)>=(e|0)&(c|0)>=(d|0))){a=Qc(f+8|0,2393794,2394220,619,2434564,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}c=J[a+28>>2]+P(d-J[a+32>>2]|0,12)|0;J[c>>2]=J[b>>2];Rj(c+4|0,b+4|0);J[c+8>>2]=J[b+8>>2];fc=f+32|0;return J[a+16>>2]+d|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function vua(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a>>2]=0;a:{b:{c:{d:{if(b){J[699344]=0;c=_(4,36)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[699344]=0;J[c+8>>2]=0; +J[c+12>>2]=0;J[c+4>>2]=0;J[c>>2]=2426580;d=J[699344];J[699344]=0;if((d|0)==1)break c;J[c+16>>2]=0;J[c+20>>2]=8;J[c>>2]=2426768;J[699344]=0;ha(5213,c+28|0,c+24|0,0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1){b=Z()|0;zc(c+16|0);rh(c);break b}J[699344]=0;aa(5145,a|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[699344]=0;e=_(4,b+1|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break d;J[c+8>>2]=b;J[c+12>>2]=e;H[b+e|0]=0}return}b=Z()|0;break a}b=Z()|0}uc(c)}zc(a);ba(b|0);B()}function lj(a,b,c,d,e,f,g, +h){var i=0,j=0,k=0,l=0;j=h&10;k=g&10;if(!(j|k)){ep(b,c,d,e,f);return}if((j|0)!=(k|0)){j=c;k=d;if(g&8){k=J[a+4>>2];i=+(e-c|0)*+(k-d|0)/+(f-d|0);i=i+(i<0?-.5:.5);a:{if(R(i)<2147483648){j=~~i;break a}j=-2147483648}j=j+c|0}if(g&2){k=J[a+12>>2];i=+(e-c|0)*+(k-d|0)/+(f-d|0);i=i+(i<0?-.5:.5);b:{if(R(i)<2147483648){g=~~i;break b}g=-2147483648}j=g+c|0}g=e;l=f;if(h&8){l=J[a+4>>2];i=+(e-c|0)*+(l-d|0)/+(f-d|0);i=i+(i<0?-.5:.5);c:{if(R(i)<2147483648){g=~~i;break c}g=-2147483648}g=g+c|0}if(h&2){l=J[a+12>>2];i= ++(e-c|0)*+(l-d|0)/+(f-d|0);i=i+(i<0?-.5:.5);d:{if(R(i)<2147483648){a=~~i;break d}a=-2147483648}g=a+c|0}ep(b,j,k,g,l)}}function k6(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;f=J[a>>2];if(!f)return 65536;g=65536;a:{if(!(b&16384))while(1){b=g;e=i<<2;d=J[e+c>>2];b:{if(!d)break b;e=J[e+J[a+8>>2]>>2];if(!e)return 0;if((d|0)==(e|0))break b;g=0;if((e|0)<(d&d>>31)|(e|0)>(((d|0)>0?d:0)|0))break a;g=Od(b,e,d);f=J[a>>2]}i=i+1|0;if(i>>>0>>0)continue;break a}while(1){b=g;h=i<<2;j=J[h+c>>2];c:{if(!j)break c;g=0; +f=J[h+J[a+8>>2]>>2];if(!f)break a;if((f|0)==(j|0)){g=b;break c}k=J[d+h>>2];if((f|0)<=(k|0))break a;h=J[e+h>>2];if((h|0)<=(f|0))break a;if((f|0)<(j|0)){g=Od(b,f-k|0,j-k|0);break c}g=Od(b,h-f|0,h-j|0)}i=i+1|0;if(i>>>0>2])continue;break}}return g}function bt(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;g=d?d:2794416;d=J[g>>2];a:{b:{c:{if(!b){if(d)break c;return 0}e=-2;if(!c)break b;d:{if(d){e=c;break d}d=K[b|0];f=d<<24>>24;if((f|0)>=0){if(a)J[a>>2]=d;return(f|0)!=0|0}if(!J[J[698634]>>2]){e= +1;if(!a)break b;J[a>>2]=f&57343;return 1}d=d-194|0;if(d>>>0>50)break c;d=J[(d<<2)+2615808>>2];e=c-1|0;if(!e)break a;b=b+1|0}f=K[b|0];h=f>>>3|0;if((h-16|(d>>26)+h)>>>0>7)break c;while(1){e=e-1|0;d=f-128|d<<6;if((d|0)>=0){J[g>>2]=0;if(a)J[a>>2]=d;return c-e|0}if(!e)break a;b=b+1|0;f=K[b|0];if((f&192)==128)continue;break}}J[g>>2]=0;J[698583]=25;e=-1}return e|0}J[g>>2]=d;return-2}function YYa(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;var h=0,i=0,j=Q(0),k=0,l=0,m=0,n=0;i=fc-256|0;fc=i;if(g){m= +(e<<2)+c|0;a=J[a+416>>2];c=J[(a+(J[b+16>>2]<<2)|0)+140>>2];n=J[(a+(J[b+4>>2]<<2)|0)+100>>2];a=0;while(1){kc[n|0](i,m,f);l=(a<<7)+d|0;e=0;while(1){k=(e<<1)+l|0;h=e<<2;j=Q(Q(N[h+i>>2]*N[c+h>>2])+Q(16384.5));a:{if(Q(R(j))>1]=h-16384;k=e|1;h=k<<2;j=Q(Q(N[h+i>>2]*N[c+h>>2])+Q(16384.5));b:{if(Q(R(j))>1]=h-16384;e=e+2|0;if((e|0)!=64)continue;break}f=J[b+36>>2]+f|0;a=a+1|0;if((g|0)!=(a|0))continue;break}}fc= +i+256|0}function Wn(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!a)break a;if(!K[2773432]){b=Dc(4);J[693359]=b;if(!b)break a;H[2773432]=1}b=J[a>>2];J[a>>2]=b-1;if((b|0)>1)break a;b=J[a+20>>2];if(b)Wn(b);b=J[a+4>>2];if(b){c=J[a+8>>2];b:{if(!c)break b;d=J[a+12>>2];while(1){b=J[a+4>>2];if(!d)break b;f=P(e,20)+b|0;c:{if(!J[f+12>>2]|!b)break c;b=J[f>>2];d=d-1|0;J[a+12>>2]=d;if(!b)break c;while(1){c=J[b>>2];kc[J[663199]](b);d=J[a+12>>2]-1|0;J[a+12>>2]=d;b=c;if(b)continue;break}c=J[a+8>>2]}e=e+1|0;if(e>>>0>>0)continue; +break}b=J[a+4>>2]}kc[J[663199]](b)}b=J[a+16>>2];if(b)while(1){c=J[b>>2];kc[J[663199]](b);b=c;if(b)continue;break}kc[J[663199]](a)}}function Ng(a){var b=0,c=0,d=0,e=0,f=0;a:{if(H[a+16|0]&1){if(J[a+8>>2]>0)break a;c=J[a>>2];if(c&4){J[a+8>>2]=0;return-1}if(c&2){J[a+4>>2]=127;J[a+8>>2]=7;return 1}e=J[a+4>>2]<<8&65280;J[a+4>>2]=e;b:{c:{b=J[a+12>>2];d=J[b+8>>2];d:{if(d&7)break d;f=J[b+64>>2];if(!((f|0)<0|J[b+60>>2]<(f|0))){J[b+8>>2]=d|4;break d}c=J[b+28>>2];J[b+28>>2]=c-1;if((c|0)>0){J[b+60>>2]=J[b+60>> +2]+1;d=b;b=J[b+24>>2];J[d+24>>2]=b+1;b=K[b|0];break b}b=td(b,1);if((b|0)!=-1)break c;c=J[a>>2]}J[a>>2]=c|2;return 1}e=J[a+4>>2]}c=(e|0)==65280?6:7;J[a+8>>2]=c;d=a;a=(2<>2]=a;return a>>>c&1}fa(204644,202126,242,212157);B()}fa(205022,202126,243,212157);B()}function q1a(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+8>>2];a:{if(b>>>0<=1){H[c+65|0]=0;H[c+66|0]=0;H[c+67|0]=0;H[c+68|0]=0;H[c+64|0]=1;d=J[188371];J[c+24>>2]=J[188370];J[c+28>>2]=d;d=J[188369];J[c+16>>2]=J[188368];J[c+20>>2]=d;d=J[188367]; +J[c+8>>2]=J[188366];J[c+12>>2]=d;d=J[188365];J[c>>2]=J[188364];J[c+4>>2]=d;H[a+36|0]=0;if((b|0)==1)break a}H[c+75|0]=0;I[c+72>>1]=1;b=J[188371];J[c+56>>2]=J[188370];J[c+60>>2]=b;b=J[188369];J[c+48>>2]=J[188368];J[c+52>>2]=b;b=J[188367];J[c+40>>2]=J[188366];J[c+44>>2]=b;b=J[188365];J[c+32>>2]=J[188364];J[c+36>>2]=b;b=K[c+74|0]==1;J[c+76>>2]=b?17039875:33751047;J[c+80>>2]=b?100992768:17171716;J[a+56>>2]=0}}function nk(a,b){a=a|0;b=b|0;if(a>>>0<=127){H[b|0]=a;return b+1|0}if(a>>>0<=2047){H[b+1|0]=a& +63|128;H[b|0]=a>>>6|192;return b+2|0}if(a>>>0<=65535){H[b+2|0]=a&63|128;H[b|0]=a>>>12|224;H[b+1|0]=a>>>6&63|128;return b+3|0}if(a>>>0<=2097151){H[b+3|0]=a&63|128;H[b|0]=a>>>18|240;H[b+2|0]=a>>>6&63|128;H[b+1|0]=a>>>12&63|128;return b+4|0}if(a>>>0<=67108863){H[b+4|0]=a&63|128;H[b|0]=a>>>24|248;H[b+3|0]=a>>>6&63|128;H[b+2|0]=a>>>12&63|128;H[b+1|0]=a>>>18&63|128;return b+5|0}if((a|0)>=0){H[b+5|0]=a&63|128;H[b|0]=a>>>30|252;H[b+4|0]=a>>>6&63|128;H[b+3|0]=a>>>12&63|128;H[b+2|0]=a>>>18&63|128;H[b+1|0]= +a>>>24&63|128;return b+6|0}H[b|0]=63;return b+1|0}function Kj(a){var b=0,c=0;b=-1;c=J[a+8>>2];a:{if(c&7)break a;while(1){b:{c:{b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break c;b=J[a+28>>2];J[a+28>>2]=b-1;d:{if((b|0)<=0){b=td(a,1);break d}J[a+60>>2]=J[a+60>>2]+1;b=J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0]}if((b|0)!=35)break a;while(1){b=-1;c=J[a+8>>2];if(c&7)break a;b=J[a+64>>2];if((b|0)>=0&(b|0)<=J[a+60>>2])break c;b=J[a+28>>2];J[a+28>>2]=b-1;e:{if((b|0)<=0){b=td(a,1);break e}J[a+60>>2]=J[a+60>>2]+1;b= +J[a+24>>2];J[a+24>>2]=b+1;b=K[b|0]}switch(b+1|0){case 0:break a;case 11:case 14:break b;default:continue}}}J[a+8>>2]=c|4;b=-1;break a}b=-1;c=J[a+8>>2];if(!(c&7))continue;break}}return b}function tNa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[a+8>>2];b=vc(53336);d=J[a+4>>2];c=J[J[d>>2]+8>>2];a:{b:{if(e){J[699344]=0;d=_(c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=J[a+12>>2];a=J[a+8>>2];e=J[a+16>>2];f=J[a+12>>2];g=J[a+8>>2];a=J[a+4>>2];J[699344]=0;va(3648,b|0,d|0,a|0,g|0,f|0,e|0,c|0)|0;a=J[699344]; +J[699344]=0;if((a|0)!=1)break b}break a}J[699344]=0;d=_(c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;a=J[a+12>>2];J[b+53316>>2]=1;J[b+53308>>2]=0;J[b+53312>>2]=0;J[b+49192>>2]=258;J[b+49196>>2]=9;J[b+24>>2]=0;J[b+16>>2]=0;J[b+12>>2]=a;J[b+8>>2]=0;J[b>>2]=2343548;J[b+4>>2]=d}return b|0}a=Z()|0;uc(b);ba(a|0);B()}function rxa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=fc-32|0;fc=f;a:{b:{if(J[a+92>>2]>0){g=J[a+128>>2];h=J[a+104>>2];while(1){if(!(J[a+116>>2]<=(d|0)&J[a+120>>2]>=(d|0))){a= +Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}e=(d-J[a+108>>2]<<2)+h|0;J[e>>2]=J[e>>2]+b;if(!(J[a+140>>2]<=(d|0)&J[a+144>>2]>=(d|0))){a=Qc(f+8|0,2404388,2405416,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}e=(d-J[a+132>>2]<<2)+g|0;J[e>>2]=J[e>>2]+c;d=d+1|0;if((d|0)>2])continue;break}}fc=f+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function ixb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0; +d=J[a+2308>>2];a:{if(!d)break a;c=J[a+2312>>2];a=J[a+2316>>2];if(d>>>0>=4){f=d&-4;while(1){b=L[c>>1];I[a+6>>1]=L[c+2>>1];I[a+4>>1]=b;I[a+2>>1]=b;I[a>>1]=b;b=L[c+4>>1];I[a+14>>1]=L[c+6>>1];I[a+12>>1]=b;I[a+10>>1]=b;I[a+8>>1]=b;b=L[c+8>>1];I[a+22>>1]=L[c+10>>1];I[a+20>>1]=b;I[a+18>>1]=b;I[a+16>>1]=b;b=L[c+12>>1];I[a+30>>1]=L[c+14>>1];I[a+28>>1]=b;I[a+26>>1]=b;I[a+24>>1]=b;a=a+32|0;c=c+16|0;e=e+4|0;if((f|0)!=(e|0))continue;break}}b=d&3;if(!b)break a;e=0;while(1){d=L[c>>1];I[a+6>>1]=L[c+2>>1];I[a+4>> +1]=d;I[a+2>>1]=d;I[a>>1]=d;a=a+8|0;c=c+4|0;e=e+1|0;if((b|0)!=(e|0))continue;break}}return 0}function MDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;J[a>>2]=0;J[a+4>>2]=J[685894];a:{b=J[b>>2];b:{if(b){d=J[J[b>>2]+28>>2];J[699344]=0;ca(d|0,c+12|0,b|0,1);b=J[699344];J[699344]=0;if((b|0)!=1)break b;b=Z()|0;break a}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;c:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break c;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]= +0;if((e|0)!=1){if(d)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break c}ea(0)|0;Bc();B()}b=Z()|0;zc(c+12|0);break a}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];fc=c+16|0;return a|0}wc(a);ba(b|0);B()}function tma(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+56>>2]=0;J[a>>2]=2452172;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;JM(a- -64|0);J[a+480>>2]=0;J[a+472>>2]=0;J[a+476>>2]=0;J[a+448>> +2]=0;J[a+452>>2]=1072693248;J[a+436>>2]=0;J[a+440>>2]=255;J[a+432>>2]=340456;J[a+456>>2]=0;J[a+460>>2]=0;J[a+464>>2]=0;J[a+488>>2]=0;J[a+492>>2]=1071644672;gA(a+496|0);gA(a+544|0);J[a+600>>2]=0;J[a+592>>2]=0;J[a+596>>2]=0;H[a+622|0]=1;I[a+620>>1]=257;J[a+616>>2]=0;J[a+608>>2]=0;J[a+612>>2]=0;Ac(a+623|0,0,69);b=J[685895];J[a+692>>2]=b;J[685895]=b+1024;return a|0}function hv(a,b,c,d,e,f){var g=0,h=0,i=0;a:{b:{if(c){g=P(c,3);J[e>>2]=g;g=kc[J[a+152>>2]](g)|0;J[d>>2]=g;if(!g)break a;i=P(c,200);while(1){Faa(a); +J[a+2352>>2]=J[d>>2];J[a+2356>>2]=J[e>>2]-1;J[a+2340>>2]=b;J[a+2344>>2]=c;g=Vk(a+2340|0,4);h=10;c:{if((g|0)==-5|J[a+2344>>2])break c;h=0;if(g>>>0<2)break c;Jc(a,5,g,0);h=5}g=h;J[f>>2]=J[a+2360>>2];MO(a);if((g|0)!=10){if(g)break b;H[J[d>>2]+J[f>>2]|0]=0;return 0}g=J[d>>2];if(g)kc[J[a+156>>2]](g,J[e>>2]);g=J[e>>2]<<1;J[e>>2]=g;g=kc[J[a+152>>2]](g)|0;J[d>>2]=g;if(!g){Jc(a,1,0,0);return 1}if(M[e>>2]>>0)continue;break}return 10}J[d>>2]=0;J[e>>2]=0;J[f>>2]=0}return g}Jc(a,1,0,0);return 1}function bta(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=fc-32|0;fc=e;a:{b:{if(M[b+4>>2]>=((J[a+16>>2]+J[a+44>>2]|0)-J[a+40>>2]|0)+1>>>0){a=Qc(e+8|0,2389130,2386144,285,2433200,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=J[a+100>>2];d=J[a+96>>2];c=(f-d|0)+1|0;if(!((c|0)>=(d|0)&(c|0)<=(f|0))){ut(a+80|0,c);f=J[a+100>>2];d=J[a+96>>2]}if(!((c|0)<=(f|0)&(c|0)>=(d|0))){a=Qc(e+8|0,2393794,2394220,619,2416728,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}d= +J[b+4>>2];a=J[a+84>>2]+(c-J[a+88>>2]<<3)|0;J[a>>2]=J[b>>2];J[a+4>>2]=d;fc=e+32|0;return c|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Vaa(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=J[a+44>>2];if(J[a+4>>2]==16)g=J[c+88>>2]+P(J[a+8>>2],1876)|0;else g=J[a+36>>2];d=J[g+1872>>2];e=P(b,1076);b=d+e|0;a=J[a+52>>2];f=kc[J[J[a>>2]+20>>2]](a,1)|0;J[b+4>>2]=f+1;g=c;c=J[c+12>>2];J[g+12>>2]=(c|0)<(f|0)?c:f;h=b,i=(kc[J[J[a>>2]+20>>2]](a,1)|0)+2|0,J[h+8>>2]=i;h=b,i=(kc[J[J[a>>2]+20>>2]](a,1)|0)+2|0,J[h+12>>2]=i;h=b,i=kc[J[J[a>> +2]+20>>2]](a,1)|0,J[h+16>>2]=i;h=b,i=kc[J[J[a>>2]+20>>2]](a,1)|0,J[h+20>>2]=i;if(!(!(H[b|0]&1)|J[b+4>>2]<=0)){c=0;f=d+e|0;while(1){d=f+(c<<2)|0;e=kc[J[J[a>>2]+20>>2]](a,1)|0;J[d+944>>2]=e>>4;J[d+812>>2]=e&15;c=c+1|0;if((c|0)>2])continue;break}}}function Og(a,b){var c=0,d=0,e=0,f=0;a:{if(!a){a=J[699206];if(!a)break a}d=fc-32|0;J[d+24>>2]=0;J[d+28>>2]=0;J[d+16>>2]=0;J[d+20>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;c=b;e=K[c|0];f=0;b:{if(!e)break b;if(!K[c+1|0]){c=a;while(1){d=c;c= +c+1|0;if(K[d|0]==(e|0))continue;break}f=d-a|0;break b}while(1){f=d+(e>>>3&28)|0;J[f>>2]=J[f>>2]|1<>>3&28)>>2]>>>e&1))break c;e=K[c+1|0];c=c+1|0;if(e)continue;break}}f=c-a|0}c=f+a|0;if(!K[c|0]){J[699206]=0;return 0}a=zG(c,b)+c|0;if(K[a|0]){J[699206]=a+1;H[a|0]=0;return c}J[699206]=0}return c}function Hub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{b:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break b; +if(K[a+289|0])break b;break a}if(K[a+291|0]|(K[a+300|0]|K[a+292|0]))break a;c:switch(c|0){default:Jc(a,1028,0,0);return 1028;case 0:case 9:break c}d:{e:{if(!K[a+112|0])break e;a=kc[J[b+4>>2]](a,b,e)|0;if(a)break d;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break e;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+44|0]=K[d+8|0]}a=0}return a|0}Jc(a,1029,0, +0);return 1029}function s$(a){a=a|0;var b=0,c=0;J[a>>2]=2217424;a:{while(1){b:{if(!K[(a+b|0)+1188|0])break b;c=J[((b<<2)+a|0)+164>>2];if(!c)break b;J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a}b=b+1|0;if((b|0)!=256)continue;break}b=J[a+1444>>2];J[699344]=0;$(3390,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(J[a+3512>>2]==7){J[699344]=0;$(3370,a+3512|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(J[a+3528>>2]==7){J[699344]=0;$(3370,a+3528|0);b=J[699344];J[699344]=0;if((b| +0)==1)break a}J[a>>2]=2217332;b=J[a+4>>2];if(b)uc(Zc(b));b=J[a+16>>2];if(b)uc(Zc(b));b=J[a+28>>2];if(b)uc(Zc(b));return a|0}ea(0)|0;Bc();B()}function mH(a,b){var c=0,d=0,e=0;a:{b:{if(b>>>0>8)while(1){H[a|0]=K[K[a|0]+91664|0];H[a+1|0]=K[K[a+1|0]+91664|0];H[a+2|0]=K[K[a+2|0]+91664|0];H[a+3|0]=K[K[a+3|0]+91664|0];H[a+4|0]=K[K[a+4|0]+91664|0];H[a+5|0]=K[K[a+5|0]+91664|0];H[a+6|0]=K[K[a+6|0]+91664|0];H[a+7|0]=K[K[a+7|0]+91664|0];a=a+8|0;b=b-8|0;if(b>>>0>8)continue;break b}if(!b)break a}e=b-1|0;c=b&3;if(c)while(1){H[a| +0]=K[K[a|0]+91664|0];a=a+1|0;b=b-1|0;d=d+1|0;if((c|0)!=(d|0))continue;break}if(e>>>0<3)break a;while(1){H[a|0]=K[K[a|0]+91664|0];H[a+1|0]=K[K[a+1|0]+91664|0];H[a+2|0]=K[K[a+2|0]+91664|0];H[a+3|0]=K[K[a+3|0]+91664|0];a=a+4|0;b=b-4|0;if(b)continue;break}}}function hhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=J[a>>2];d=J[a+44>>2];if(d){c=J[d>>2];if(!(!c|!J[c+96>>2]))J[c+88>>2]=d}e=fc-16|0;fc=e;c=J[f+504>>2];a:{if(!c){d=35;break a}d=6;if(!b|J[b+4>>2]<0|(J[b+8>>2]<0|M[b>>2]>4))break a;d=J[c+88>>2];J[J[d+ +40>>2]+12>>2]=0;g=J[J[J[c+96>>2]+12>>2]+88>>2];if(g){d=kc[g|0](d,b)|0;break a}if((J[c+8>>2]&3)==2){d=yN(c,b,e+12|0);if(d)break a;d=xN(c,J[e+12>>2]);break a}ms(c,b);d=0}fc=e+16|0;if(!d){b=J[J[f+504>>2]+88>>2];c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;J[a+36>>2]=J[b+36>>2];c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c}return d|0}function dN(a,b,c,d,e,f,g){var h=0;h=fc-16|0;fc=h;a:{b:switch(K[c+16|0]-8|0){case 24:if((e|0)<=0)break a;c=0;while(1){kc[J[J[d>> +2]+12>>2]](d,h+10|0,4,1,0,0)|0;H[b|0]=K[h+10|0];H[b+1|0]=K[h+11|0];H[b+2|0]=K[h+12|0];yh(a,c+g|0,f,K[h+13|0]);b=b+3|0;c=c+1|0;if((e|0)!=(c|0))continue;break}break a;case 0:kc[J[J[d>>2]+12>>2]](d,b,e,1,0,0)|0;break a;case 7:case 8:g=0;if((e|0)<=0)break a;while(1){kc[J[J[d>>2]+12>>2]](d,h+14|0,2,1,0,0)|0;a=L[h+14>>1];H[b|0]=a<<3;H[b+2|0]=a>>>7&248;H[b+1|0]=a>>>2&248;b=b+3|0;g=g+1|0;if((g|0)!=(e|0))continue;break}break a;case 16:break b;default:break a}kc[J[J[d>>2]+12>>2]](d,b,P(e,3),1,0,0)|0}fc=h+16| +0}function Yka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if(!d){d=J[a+584>>2];if(!d)break b;e=(c|0)/J[d+8>>2]|0;c:{if(J[d>>2]==2){c=b;break c}if(J[d+16>>2]<(e|0))break a;c=J[d+12>>2];kc[J[d+20>>2]](d,b,e)}f=J[a+600>>2];b=f-J[a+608>>2]|0;d=J[a+604>>2];if(e){while(1){if((b|0)<=2){J[a+604>>2]=d;J[a+608>>2]=J[a+600>>2]-b;if(!pf(a))return-1;d=J[a+604>>2];b=J[a+600>>2]-J[a+608>>2]|0}H[d|0]=L[c+2>>1];H[d+1|0]=J[c>>2]>>>8;H[d+2|0]=J[c>>2];b=b-3|0;d=d+3|0;c=c+4|0;e=e-1|0;if(e)continue;break}f=J[a+ +600>>2]}J[a+604>>2]=d;J[a+608>>2]=f-b;return 1}fa(76922,70372,468,93920);B()}fa(74429,70372,469,93920);B()}fa(77140,70372,476,93920);B()}function N4(a){var b=0,c=0;b=J[a+248>>2];a:{if(!b)break a;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+240>>2];b:{if(!b)break b;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+232>>2];c:{if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+212>>2];d:{if(!b)break d;c=J[b+4>> +2];J[b+4>>2]=c-1;if(c)break d;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+140>>2];e:{if(!b)break e;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break e;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+68>>2];f:{if(!b)break f;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break f;kc[J[J[b>>2]+8>>2]](b);Gc(b)}return a}function DJ(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=J[a+20>>2];if(i>>>0<=2){J[a+8>>2]=0;return}c=i<<2;j=Dc(c);if(j){d=J[a>>2];a:{if(!d)break a;g=Dc(c);e=Dc(i);if(!g|!e)break a;J[g>>2]=d;H[e|0]=0;k=j;b:while(1){l=b+e|0;while(1){c:{d:{e:{f:switch(f| +0){case 0:f=2;c=J[d+8>>2];if(!c)continue;break e;case 3:break c;case 1:break f;default:break d}f=3;c=J[d+12>>2];if(!c)continue}H[l|0]=f;b=b+1|0;h=b?h:h+1|0;J[(b<<2)+g>>2]=c;f=0;H[b+e|0]=0;d=c;continue b}J[k>>2]=d;k=k+4|0;f=1;continue}break}H[l|0]=3;if(b|h){h=h-!b|0;b=b-1|0;f=K[b+e|0];d=J[(b<<2)+g>>2];continue}break}uc(g);uc(e)}b=JJ(j,0,i-1|0);J[a+8>>2]=0;J[a>>2]=b;uc(j)}}function Bda(a){a=a|0;var b=0,c=0;b=J[a+584>>2];Vy(a,0,1);a:{if(b){if(!J[b+16>>2])break a;b:{if(!(K[a+48|0]&4))break b;J[b+800>> +2]=0;J[b+804>>2]=0;J[b+824>>2]=656;J[b+820>>2]=63;J[b+816>>2]=657;J[b+812>>2]=658;J[b+24>>2]=b+800;J[b+808>>2]=659;if((YP(b,0)|0)==2)break b;Uc(J[a+628>>2],97689,79579,0);return 0}c=L[a+90>>1];I[b+832>>1]=c;c:{if((c|0)==6){I[b+834>>1]=L[a+204>>1];c=L[a+206>>1];break c}I[b+834>>1]=1;c=1}I[b+836>>1]=c;J[b+800>>2]=0;J[b+804>>2]=0;J[b+824>>2]=656;J[b+820>>2]=63;J[b+816>>2]=657;J[b+812>>2]=658;J[b+808>>2]=660;J[b+24>>2]=b+800;J[a+652>>2]=515;return 1}fa(75270,70506,646,97689);B()}fa(79113,70506,647,97689); +B()}function oNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=J[a+8>>2];a:{if(e){if((c|0)<=0)return 0;a=J[e+36>>2];while(1){d=J[e+28>>2];if((d|0)<=(a|0)){if(!Wt(e))break a;d=J[e+28>>2];a=J[e+36>>2]}g=J[e+32>>2]+a|0;a=d-a|0;d=c-f|0;d=(a|0)<(d|0)?a:d;xc(b+f|0,g,d);a=d+J[e+36>>2]|0;J[e+36>>2]=a;f=d+f|0;if((f|0)<(c|0))continue;break}break a}if(J[a+16>>2]|(c|0)<=0)break a;g=a+49208|0;e=J[a+53312>>2];while(1){d=J[a+53308>>2];if((d|0)<=(e|0)){if(!FB(a))break a;d=J[a+53308>>2];e=J[a+53312>>2]}h=e+g| +0;e=d-e|0;d=c-f|0;d=(e|0)<(d|0)?e:d;xc(b+f|0,h,d);e=d+J[a+53312>>2]|0;J[a+53312>>2]=e;f=d+f|0;if((f|0)<(c|0))continue;break}}return f|0}function h4a(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;f=fc-112|0;fc=f;J[f+108>>2]=0;d=K[b+11|0];g=d<<24>>24<0;h=g?J[b>>2]:b;a:{if(!h)break a;d=g?J[b+4>>2]:d;if(!d)break a;wq(h,d,f+108|0,f+104|0,0);e=J[f+108>>2]}b:{if(!ol(e,f+8|0)){d=0;if((J[f+12>>2]&61440)==16384)break b}c=jk(e,c?28734:18788);J[a+4>>2]=c;if(e){uc(e);c=J[a+4>>2]}if(c){hh(c,0,2);i=a, +j=mr(J[a+4>>2]),J[i+12>>2]=j;hh(J[a+4>>2],0,0);J[a+8>>2]=0;e=K[b+11|0];c=e<<24>>24<0;e=c?J[b+4>>2]:e;c:{if(!(!e|J[((e<<2)+(c?J[b>>2]:b)|0)-4>>2]!=47)){J[a+12>>2]=2147483647;break c}d=1;if(J[a+12>>2]!=2147483647)break b}kc[J[J[a>>2]+8>>2]](a)}d=0}fc=f+112|0;return d|0}function Mp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(!b)return 0;a:{b:{if(!c)break b;d=K[b|0];e=d<<24>>24;if((e|0)>=0){if(a)J[a>>2]=d;return(e|0)!=0|0}if(!J[J[698634]>>2]){b=1;if(!a)break a;J[a>>2]=e&57343;return 1}d=d-194|0;if(d>>>0> +50)break b;d=J[(d<<2)+2615808>>2];if(c>>>0<=3)if(d<>>3|0;if((e-16|e+(d>>26))>>>0>7)break b;c=c-128|d<<6;if((c|0)>=0){b=2;if(!a)break a;J[a>>2]=c;return 2}d=K[b+2|0]-128|0;if(d>>>0>63)break b;c=d|c<<6;if((c|0)>=0){b=3;if(!a)break a;J[a>>2]=c;return 3}d=K[b+3|0]-128|0;if(d>>>0>63)break b;b=4;if(!a)break a;J[a>>2]=d|c<<6;return 4}J[698583]=25;b=-1}return b|0}function MT(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(!K[a+57|0])break a;f=J[a+120>>2]; +b=J[a+124>>2];if((f|0)==(b|0))break a;b=b-f>>3;j=b>>>0<=1?1:b;while(1){c=J[(g<<3)+f>>2];b:{if(!(c|J[21]))break b;b=J[c+56>>2];c=J[c+60>>2];if((b|0)==(c|0))break b;e=c-b>>3;d=e>>>0<=1?1:e;k=d&1;h=J[a+60>>2];c=0;if(e>>>0>=2){l=d&-2;e=0;while(1){i=c<<3;d=J[i+b>>2];if(!(!d|(h|0)!=J[d+92>>2]))H[d+90|0]=0;d=J[(i|8)+b>>2];if(!(!d|(h|0)!=J[d+92>>2]))H[d+90|0]=0;c=c+2|0;e=e+2|0;if((l|0)!=(e|0))continue;break}}if(!k)break b;b=J[(c<<3)+b>>2];if(!b|(h|0)!=J[b+92>>2])break b;H[b+90|0]=0}g=g+1|0;if((j|0)!=(g|0))continue; +break}}}function j$(a){a=a|0;J[a+32>>2]=0;J[a+36>>2]=1072693248;J[a>>2]=2217780;J[a+4>>2]=15;J[a+8>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+40>>2]=0;J[a+44>>2]=0;J[a+16>>2]=0;J[a+20>>2]=1072693248;J[a+80>>2]=0;J[a+84>>2]=1072693248;J[a+72>>2]=0;J[a+76>>2]=1072693248;J[a+88>>2]=0;J[a+92>>2]=1072693248;J[a+64>>2]=0;J[a+68>>2]=1072693248;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[a+96>>2]=0;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+120>>2]=0;J[a+124>>2]= +1072693248;J[a+128>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;J[a+156>>2]=1072693248;return a|0}function Y3(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;a:{if(H[b+11|0]>=0){J[c+16>>2]=J[b+8>>2];d=J[b+4>>2];J[c+8>>2]=J[b>>2];J[c+12>>2]=d;break a}Ve(c+8|0,J[b>>2],J[b+4>>2])}J[699344]=0;ca(2985,c+20|0,c+8|0,1);b=J[699344];J[699344]=0;b:{c:{if((b|0)!=1){if(H[c+19|0]<0)uc(J[c+8>>2]);J[699344]=0;ca(2986,a|0,c+20|0,0);a=J[699344];J[699344]=0;if((a|0)==1)break c; +d=J[c+20>>2];if(d){a=J[c+24>>2];b=d;if((a|0)!=(b|0)){while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((b|0)!=(d|0))continue;break}b=J[c+20>>2]}J[c+24>>2]=d;uc(b)}fc=c+32|0;return}b=Z()|0;if(H[c+19|0]>=0)break b;uc(J[c+8>>2]);ba(b|0);B()}b=Z()|0;Ag(c+20|0)}ba(b|0);B()}function JA(a){a=a|0;var b=0,c=0,d=0;c=fc-32|0;fc=c;J[a>>2]=2418272;J[a+4>>2]=0;J[699344]=0;b=pa(5383)|0;d=J[699344];J[699344]=0;a:{if((d|0)!=1){J[699344]=0;b=J[J[b+48>>2]+((a>>>0)%M[b+44>>2]<<2)>>2];d=J[699344];J[699344]=0;b:{c:{d:{if((d| +0)!=1){if(b)while(1){if(J[b+12>>2]==(a|0)&J[b+16>>2]==(a|0))break b;b=J[b+8>>2];if(b)continue;break}J[699344]=0;c=ja(5178,c+8|0,2395256,2385358,214,2418328,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;$(5179,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;B()}b=Z()|0;break a}b=Z()|0;break a}b=Z()|0;Kc(c);break a}J[b+20>>2]=a;fc=c+32|0;return a|0}b=Z()|0}nd(a);ba(b|0);B()}function Dvb(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;var h=0,i=0,j=0;a:{if(f){if(((c+1|0)/2|0)<= +(b|0)){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];b=K[e+3|0];h=K[f+3|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+3|0]=b;f=f+4|0;e=e+4|0;g=g+4|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){H[g|0]=K[e|0];H[g+1|0]=K[e+1|0];H[g+2|0]=K[e+2|0];b=K[e+3|0];h=K[f+3|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+3|0]=b;f=f+4|0;e=e+4|0;g=g+4|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}xc(g,e, +d<<2)}return 0}function vrb(a){a=a|0;var b=0,c=0,d=0;c=J[a>>2];b=c|65535;J[a>>2]=(b>>>0>1]>>>0?b:b-32768|0)<>2]=J[a>>2]<>2];a:{if((b|0)!=20480){c=J[a+16>>2];break a}sy(J[a+12>>2],a+16|0);c=vc(20480);J[a+16>>2]=c;b=0}J[a+20>>2]=b+1;d=b+c|0;b=K[a+7|0];H[d|0]=b;if((b|0)!=255){H[a+7|0]=255;b=J[a+20>>2];b:{if((b|0)!=20480){c=J[a+16>>2];d=255;break b}sy(J[a+12>>2],a+16|0);c=vc(20480);J[a+16>>2]=c;b=0;d=K[a+7|0]}J[a+20>>2]=b+1;H[b+c|0]=d}c=172;H[a+7| +0]=172;b=J[a+20>>2];c:{if((b|0)!=20480){d=J[a+16>>2];break c}sy(J[a+12>>2],a+16|0);d=vc(20480);J[a+16>>2]=d;c=K[a+7|0];b=0}J[a+20>>2]=b+1;H[b+d|0]=c}function pv(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=1;j=J[a+16>>2];a:{if((j|0)>0){k=J[a+24>>2];b=J[k>>2];e=J[b>>2];J[a>>2]=e;f=J[b+4>>2];J[a+4>>2]=f;g=(P(J[b+8>>2],J[b+16>>2]-1|0)+e|0)+1|0;J[a+8>>2]=g;h=(P(J[b+12>>2],J[b+20>>2]-1|0)+f|0)+1|0;J[a+12>>2]=h;if((j|0)==1)break a;while(1){c=J[(d<<2)+k>>2];b=J[c>>2];if((b|0)<(e|0)){J[a>>2]=b;e=b}i= +J[c+4>>2];if((i|0)<(f|0)){J[a+4>>2]=i;f=i}b=b+P(J[c+8>>2],J[c+16>>2]-1|0)|0;if((b|0)>=(g|0)){g=b+1|0;J[a+8>>2]=g}b=P(J[c+12>>2],J[c+20>>2]-1|0)+i|0;if((b|0)>=(h|0)){h=b+1|0;J[a+12>>2]=h}d=d+1|0;if((j|0)!=(d|0))continue;break}break a}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}}function $w(a,b,c){var d=0,e=0,f=0;a:{if(!(K[a+361|0]&32))break a;d=J[a+328>>2];while(1){e=d;if((d|0)<2)break a;f=J[a+336>>2];d=d-2|0;if(J[f+(d<<2)>>2]!=(b|0))continue;break}if(J[(f+(e<<2)|0)-4>>2]!=(c|0))break a;return-2}b:{c:{d:{e= +J[a+332>>2];if(e){d=J[a+336>>2];if(d)break d}J[a+328>>2]=0;J[a+332>>2]=10;d=kc[J[663195]](40)|0;J[a+336>>2]=d;if(d)break c;se(a,0);J[a+332>>2]=0;return-1}if((e|0)>J[a+328>>2])break c;J[a+332>>2]=e<<1;d=kc[J[663200]](d,e<<3)|0;if(!d)break b;J[a+336>>2]=d}f=d;d=J[a+328>>2];e=d<<2;J[f+e>>2]=b;b=d+2|0;J[a+328>>2]=b;J[(e+J[a+336>>2]|0)+4>>2]=c;return b}se(a,0);J[a+332>>2]=J[a+332>>2]/2;return-1}function Tvb(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;var h=0,i=0,j=0,k=0,l=0;if(e){k=e-1|0; +while(1){H[g|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g+2|0]=K[f+2|0];H[g+3|0]=K[f+3|0];a=g+4|0;h=i?(i|0)==(k|0)?d:b:c;a:{if(h>>>0<2)break a;j=h-1|0;l=j&1;if((h|0)!=2){j=j&-2;h=0;while(1){H[a|0]=K[f|0];H[g+5|0]=K[f+1|0];H[g+6|0]=K[f+2|0];H[g+7|0]=K[f+3|0];H[a+4|0]=K[f|0];H[a+5|0]=K[f+1|0];H[a+6|0]=K[f+2|0];H[a+7|0]=K[f+3|0];g=a+4|0;a=a+8|0;h=h+2|0;if((j|0)!=(h|0))continue;break}}if(!l)break a;H[a|0]=K[f|0];H[g+5|0]=K[f+1|0];H[g+6|0]=K[f+2|0];H[g+7|0]=K[f+3|0];a=a+4|0}g=a;f=f+4|0;i=i+1|0;if((i|0)!=(e|0))continue; +break}}return 0}function Dzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;c=J[J[a+544>>2]+88>>2];d=J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0;e=J[a+588>>2];b=J[a+644>>2];a:{if(K[c+56|0]){if((e|0)<=0)break a;e=0;while(1){f=K[d+2|0];g=K[d|0];h=K[d+1|0];b:{if(!((g|0)!=L[c+838>>1]|(h|0)!=L[c+840>>1]|L[c+842>>1]!=(f|0))){H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;break b}H[b+3|0]=255;H[b+2|0]=f;H[b+1|0]=h;H[b|0]=g}b=b+4|0;d=d+3|0;e=e+1|0;if((e|0)>2])continue;break}break a}c=0;if((e|0)<=0)break a;while(1){H[b| +0]=K[d|0];H[b+1|0]=K[d+1|0];e=K[d+2|0];H[b+3|0]=255;H[b+2|0]=e;b=b+4|0;d=d+3|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function IU(a,b){var c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;J[a+16>>2]=-1;a:{b:{if((b|0)!=32){if((b|0)!=64)break b;An(a+136|0);break b}d=a+88|0;c:{if(!J[d+8>>2]|J[J[d>>2]+8>>2]==3)break c;J[c+12>>2]=0;e=c+4|0;J[c+8>>2]=e;J[c>>2]=3;J[699344]=0;J[c+4>>2]=e;da(6500,d|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(!J[c+12>>2])break c;b=J[c+8>>2];f=J[b>>2];g=J[J[c+4>> +2]+4>>2];J[f+4>>2]=g;J[g>>2]=f;J[c+12>>2]=0;if((b|0)==(e|0))break c;while(1){f=J[b+4>>2];uc(b);b=f;if((e|0)!=(b|0))continue;break}}b=a+136|0;if(J[b+8>>2]){KU(c,b,d,J[a+20>>2],256);fA(b,c);kk(c);An(d);break b}fA(b,d)}fc=c+48|0;return}a=Z()|0;Qp(c);ba(a|0);B()}function wpb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=J[J[a+40>>2]>>2];if(e){a=J[a>>2];f=J[a+100>>2];c=J[a+712>>2];b=J[c+3080>>2];a=wh(J[J[a+96>>2]+4>>2],241714);a:{if(!a|!b)break a;b=J[b>>2];if(!b)break a;d=kc[b|0](a)|0;if(!d)break a;kc[J[d+8>> +2]](J[e>>2]);b=J[c+2024>>2];if(!b)break a;g=b&3;b:{if(!g){a=b;break b}c=0;a=b;while(1){a=a-1|0;kc[J[d+8>>2]](J[((a<<2)+e|0)+4>>2]);c=c+1|0;if((g|0)!=(c|0))continue;break}}if(b>>>0<4)break a;b=e+4|0;while(1){c=b+(a<<2)|0;kc[J[d+8>>2]](J[c-4>>2]);kc[J[d+8>>2]](J[c-8>>2]);kc[J[d+8>>2]](J[c-12>>2]);a=a-4|0;kc[J[d+8>>2]](J[b+(a<<2)>>2]);if(a)continue;break}}if(e)kc[J[f+8>>2]](f,e)}}function l0(a){var b=0,c=0,d=0,e=0;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)!=1)a:{d=J[a+28>>2];b=J[d+8>> +2];if((b|0)>0)while(1){c=J[J[d>>2]+(e<<2)>>2];if(c){uc(c);b=J[d+8>>2]}e=e+1|0;if((e|0)<(b|0))continue;break}uc(ld(d));e=J[a+32>>2];c=J[e+8>>2];if((c|0)>0){b=0;while(1){d=J[J[e>>2]+(b<<2)>>2];if(d){J[699344]=0;$(3370,d+8|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;J[699344]=0;$(3370,d+24|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[d+44>>2];if(c)uc(ld(c));uc(d);c=J[e+8>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}uc(ld(e));b=J[a+36>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a}ea(0)|0;Bc();B()}function _hb(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=fc-16|0;fc=f;a=J[a+532>>2];a:{if(!a){e=6;break a}d=J[a+136>>2];a=J[a+4>>2];LM(d,f,a);d=a>>>0>>0?a:b;if(d)xc(c,f,d<<2);if(a>>>0>=b>>>0)break a;g=(d^-1)+b|0;e=b-d&7;if(e){a=0;while(1){J[(d<<2)+c>>2]=32768;d=d+1|0;a=a+1|0;if((e|0)!=(a|0))continue;break}}e=0;if(g>>>0<7)break a;g=c+28|0;h=c+24|0;i=c+20|0;j=c+16|0;k=c+12|0;l=c+8|0;m=c+4|0;while(1){a=d<<2;J[a+c>>2]=32768;J[a+m>>2]=32768;J[a+l>>2]=32768;J[a+k>>2]=32768;J[a+j>>2]=32768; +J[a+i>>2]=32768;J[a+h>>2]=32768;J[a+g>>2]=32768;d=d+8|0;if((d|0)!=(b|0))continue;break}}fc=f+16|0;return e|0}function $t(a,b,c){var d=0,e=0,f=0,g=0,h=0;g=fc-256|0;fc=g;a:{if(J[a+328>>2]>0){while(1){e=J[((d<<2)+a|0)+196>>2];kc[J[J[e>>2]+16>>2]](e,b,(d<<3)+g|0);d=d+1|0;if((d|0)>2])continue;break}d=0;b=J[a+8>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)<=0)break a;while(1){e=(d<<2)+c|0;f=O[(d<<3)+g>>3]*65536;b:{if(R(f)<2147483648){b=~~f;break b}b=-2147483648}J[e>>2]=b;b=J[a+8>>2];d=d+1|0;if((kc[J[J[b>> +2]+28>>2]](b)|0)>(d|0))continue;break}break a}if(J[a+324>>2]<=0)break a;while(1){h=(d<<2)+c|0;f=O[(d<<3)+b>>3]*65536;c:{if(R(f)<2147483648){e=~~f;break c}e=-2147483648}J[h>>2]=e;d=d+1|0;if((d|0)>2])continue;break}}fc=g+256|0}function v$(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;J[c>>2]=13;a:{if(J[b>>2]!=9)break a;f=J[a+112>>2];if(J[f+8>>2]<=0)break a;while(1){b:{c:{d:{e=J[J[f>>2]+(h<<2)>>2];switch(J[e>>2]-6|0){case 0:break c;case 3:break d;default:break b}}if(J[b+8>>2]!=J[e+8>>2]|J[b+ +12>>2]!=J[e+12>>2])break b;d=1;Cc(1,-1,793912,0);break a}d=0;g=J[e+8>>2];if(J[g+12>>2]<=0)break b;while(1){tg(g,d,c);if(!(J[c>>2]!=9|J[b+8>>2]!=J[c+8>>2]|J[b+12>>2]!=J[c+12>>2])){d=1;Cc(1,-1,793912,0);yc(c);break a}yc(c);d=d+1|0;g=J[e+8>>2];if((d|0)>2])continue;break}f=J[a+112>>2]}h=h+1|0;if((h|0)>2])continue;break}d=0}fc=c+16|0;return d}function Zja(a,b){a=a|0;b=b|0;var c=0;kc[J[J[a>>2]+24>>2]](a)|0;b=YR(b);J[a+68>>2]=b;c=K[a+98|0];b=kc[J[J[b>>2]+28>>2]](b)|0;H[a+98|0]=b;if((b|0)!= +(c|0)){J[a+16>>2]=0;J[a+12>>2]=0;J[a+8>>2]=0;J[a+28>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;b=K[a+96|0];if(K[a+98|0]){a:{if(!b)break a;b=J[a+32>>2];if(!b)break a;uc(b)}H[a+96|0]=K[a+97|0];J[a+52>>2]=J[a+60>>2];b=J[a+56>>2];J[a+56>>2]=0;J[a+60>>2]=0;J[a+32>>2]=b;H[a+97|0]=0;return}b:{if(b)break b;b=J[a+32>>2];if((b|0)==(a+44|0))break b;H[a+97|0]=0;J[a+56>>2]=b;b=J[a+52>>2];J[a+60>>2]=b;b=vc(b);H[a+96|0]=1;J[a+32>>2]=b;return}b=J[a+52>>2];J[a+60>>2]=b;b=vc(b);H[a+97|0]=1;J[a+56>>2]=b}}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;h=J[a+760>>2];a:{if(h>>>0>b>>>0){f=J[a+764>>2];b:{if(L[a+210>>1]){e=f+(b<<2)|0;d=K[e|0]|K[e+1|0]<<8|(K[e+2|0]<<16|K[e+3|0]<<24);g=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);d=g;if(e+8>>>0>f+(h<<2)>>>0)break b;d=K[e+4|0]|K[e+5|0]<<8|(K[e+6|0]<<16|K[e+7|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);break b}e=f+(b<<1)|0;d=K[e|0]<<8|K[e+1|0];g=d<<1;if(e+4>>>0<=f+(h<<1)>>>0)d=K[e+3|0]|K[e+2|0]<<8;d=d<<1}f=0;a=J[a+724>>2];if(a>>>0>>0){J[c>>2]=0;return 0}if(a>>> +0>>0){d=a;e=0;if((h-2|0)!=(b|0))break a}a=d>>>0>>0?a:d}else a=0;f=a-g|0;e=g}J[c>>2]=f;return e|0}function ita(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-32|0;fc=d;a:{b:{if(((J[a+44>>2]-J[a+40>>2]|0)+1|0)>0){a=Qc(d+8|0,2386890,2386144,193,2433088,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(J[a+20>>2]){a=Qc(d+8|0,2387887,2386144,195,2433088,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}Rj(a+20|0,b);c=J[b>>2];c=((J[c+16>>2]+J[c+ +44>>2]|0)-J[c+40>>2]|0)+1|0;J[a+16>>2]=c;if((c|0)>0)while(1){c=J[lA(J[b>>2],e)+4>>2];if(J[c+64>>2]?0:c)J[c+64>>2]=((c^c>>>5)&7)+2775520;e=e+1|0;if((e|0)>2])continue;break}fc=d+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function QA(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;b=J[693725];J[693725]=b+1;if(!b){b=J[a+24>>2];J[c+12>>2]=a;J[c+8>>2]=b;b=J[c+8>>2];a:{if(!b)break a;while(1){b:{c:{d:{if(J[c+12>>2]==(a|0))while(1){if(!J[b+56>>2])break d;d=J[b+60>>2];e=b+52|0;J[c+4>>2]=e;e:{if(!d)break e; +if(J[J[d+8>>2]+4>>2]<2)break c;while(1){d=J[d>>2];if(!d)break e;if(J[J[d+8>>2]+4>>2]>=2)continue;break}break c}b=J[b>>2];if(b)continue;break a}J[c+8>>2]=b;xj(c+8|0,a);B()}J[c+8>>2]=b;Tp(a,c+8|0);break b}J[c>>2]=d;J[c+8>>2]=b;Do(e,c)}b=J[a+24>>2];J[c+12>>2]=a;J[c+8>>2]=b;b=J[c+8>>2];if(b)continue;break}}b=J[693725]-1|0}J[693725]=b;fc=c+16|0}function LBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=fc-32|0;fc=f;a:{b:{c:{if(!K[b+89|0]){a=Qc(f+8|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179, +a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;c=Z()|0;Kc(a);break c}d:{e=J[c+8>>2];e:{if(!e|!J[e+8>>2])break e;e=f+8|0;Pj(e,c,0);g=J[f+8>>2];if(!g){wc(e);break e}e=J[g+8>>2];wc(f+8|0);if(e)break d}J[a>>2]=0;vd(a,0);break a}kc[J[J[b>>2]+84>>2]](a,b,c,d);if(!J[a>>2])break a;J[699344]=0;c=pa(5383)|0;d=J[699344];J[699344]=0;if((d|0)!=1){d=J[a>>2];J[699344]=0;ca(5415,c|0,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}c=Z()|0;zc(a)}ba(c|0)}B()}fc=f+32|0}function KI(a,b,c){var d=0,e=0,f=0,g=0,h= +0,i=0,j=0;a:{b:{if(!c)break b;e=eg(b,91);if(!e)break b;while(1){c:{g=e+1|0;j=fg(g);h=eg(g,46);g=h+1|0;d:{e:{d=kc[J[J[c>>2]+40>>2]](c)|0;if(d){e=e-b|0;f=0;while(1){f:{if(!(kc[J[J[d>>2]+28>>2]](d)|0))break f;i=J[d+20>>2];if((e|0)!=J[i>>2])break f;if(ud(J[i+4>>2],b,e))break f;if((f|0)==(j|0))break e;f=f+1|0}d=kc[J[J[d>>2]+44>>2]](d)|0;if(d)continue;break}}if(h)break d;break a}if(!h)break c;f=KI(a,g,d);if(f)break b}b=g;e=eg(g,91);if(e)continue;break a}break}f=0;a=kc[J[J[d>>2]+40>>2]](d)|0;if(!a)break b; +if(!(kc[J[J[a>>2]+36>>2]](a)|0))break b;f=J[a+20>>2]}return f}return 0}function mj(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;h=a+4|0;a=J[a+4>>2];a:{b:{if(!a)break b;d=h;while(1){e=K[b+11|0];i=e<<24>>24<0;c=K[a+27|0];j=c<<24>>24<0;f=i?J[b+4>>2]:e;g=j?J[a+20>>2]:c;e=f>>>0>>0;c=e?f:g;c:{if(c){c=qd(j?J[a+16>>2]:a+16|0,i?J[b>>2]:b,c);if(c)break c}c=f>>>0>g>>>0?-1:e}c=(c|0)<0;d=c?d:a;a=J[(c?a+4|0:a)>>2];if(a)continue;break}if((d|0)==(h|0))break b;c=K[d+27|0];f=c<<24>>24<0;a=K[b+11|0];g=a<< +24>>24<0;d:{e=f?J[d+20>>2]:c;c=g?J[b+4>>2]:a;a=c>>>0>e>>>0?e:c;if(a){a=qd(g?J[b>>2]:b,f?J[d+16>>2]:d+16|0,a);if(a)break d}if(c>>>0>>0)break b;break a}if((a|0)>=0)break a}d=h}return d|0}function Cd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=2147483647;a:{if(!b)break a;c=a>>31;c=(c^a)-c|0;d=b>>31;d=(d^b)-d|0;if(c>>>0<=(d>>>17^65535)>>>0){g=((c<<16)+(d>>>1|0)>>>0)/(d>>>0)|0;break a}f=d>>>1|0;i=f+(c<<16)|0;c=(c>>>16|0)+(f>>>0>i>>>0)|0;if(c>>>0>=d>>>0)break a;f=S(c);h=32-f|0;c=i>>>h|c<>>0)/(d>>> +0)|0;e=c-P(d,g)|0;c=i<>>31;h=e>>>0>=d>>>0;e=e-(h?d:0)|0;g=h|g<<1;h=31-f|0;c=c<<1}if((f|0)==31)break a;while(1){e=e<<1|c>>>31;f=e>>>0>=d>>>0;e=c>>>30&1|e-(f?d:0)<<1;i=e>>>0>=d>>>0;e=e-(i?d:0)|0;g=g<<2|f<<1|i;c=c<<2;h=h-2|0;if(h)continue;break}}a=a>>31|1;return(((b|0)<0?0-a|0:a)|0)<0?0-g|0:g}function ZXa(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;f=fc-16|0;fc=f;a:{h=Ye(b,f+12|0,c);c=J[h>>2];if(c)b=0;else{c=vc(40);J[f+4>>2]=b+4;J[f>>2]=c;g=c+16|0;H[f+8|0]=0;d=J[e>> +2];b:{if(H[d+11|0]>=0){e=J[d+4>>2];J[g>>2]=J[d>>2];J[g+4>>2]=e;J[g+8>>2]=J[d+8>>2];break b}e=J[d+4>>2];d=J[d>>2];J[699344]=0;ca(15,g|0,d|0,e|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}J[c+36>>2]=0;J[c+28>>2]=0;J[c+32>>2]=0;J[c+8>>2]=J[f+12>>2];J[c>>2]=0;J[c+4>>2]=0;J[h>>2]=c;d=c;e=J[J[b>>2]>>2];if(e){J[b>>2]=e;d=J[h>>2]}Oc(J[b+4>>2],d);J[b+8>>2]=J[b+8>>2]+1;b=1}H[a+4|0]=b;J[a>>2]=c;fc=f+16|0;return}a=Z()|0;mK(f);ba(a|0);B()}function A6a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a+4>>2]=1;J[a>>2]=347988; +b=a;J[a>>2]=351920;J[a+36>>2]=-1;J[a+40>>2]=0;J[a+20>>2]=0;a=a+12|0;J[a>>2]=0;J[a+4>>2]=0;J[b+32>>2]=0;c=b+24|0;J[b+28>>2]=c;J[b+24>>2]=c;J[b+8>>2]=a;J[699344]=0;_(2841,b+40|0)|0;a=J[699344];J[699344]=0;a:{if((a|0)==1)break a;J[699344]=0;a=J[699344];J[699344]=0;if((a|0)==1)break a;return b|0}f=Z()|0;b:{if(!J[c+8>>2])break b;a=J[c+4>>2];d=J[a>>2];e=J[J[c>>2]+4>>2];J[d+4>>2]=e;J[e>>2]=d;J[c+8>>2]=0;if((a|0)==(c|0))break b;while(1){d=J[a+4>>2];if(H[a+19|0]<0)uc(J[a+8>>2]);uc(a);a=d;if((c|0)!=(a|0))continue; +break}}Gx(b+8|0,J[b+12>>2]);ba(f|0);B()}function ria(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;g=fc-256|0;fc=g;J[g+248>>2]=37;J[g+252>>2]=0;h=g+248|0;Gp(h|1,9829,1,J[c+4>>2]);i=gh();J[g>>2]=e;J[g+4>>2]=f;a=g+224|0;e=Di(a,24,i,h,g)+a|0;i=fk(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[699344]=0;h=g+32|0;ua(6880,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)kc[J[J[a>>2]+8>>2]](a); +a=Qs(b,h,J[g+28>>2],J[g+24>>2],c,d);fc=g+256|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function pia(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;g=fc-256|0;fc=g;J[g+248>>2]=37;J[g+252>>2]=0;h=g+248|0;Gp(h|1,9829,0,J[c+4>>2]);i=gh();J[g>>2]=e;J[g+4>>2]=f;a=g+224|0;e=Di(a,24,i,h,g)+a|0;i=fk(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[699344]=0;h=g+32|0;ua(6880,a|0,i|0,e|0,h|0,g+28|0,g+ +24|0,f|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)kc[J[J[a>>2]+8>>2]](a);a=Qs(b,h,J[g+28>>2],J[g+24>>2],c,d);fc=g+256|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function vAa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];e=J[J[d>>2]+16>>2];J[699344]=0;d=_(e|0,d|0)|0;e=J[699344];J[699344]=0;a:{b:{c:{if((e|0)==1)break c;e=J[a+20>>2];if(!(!e|(J[a+24>>2]/256|0)==((d|0)/ +256|0))){f=J[a+16>>2];J[699344]=0;da(e|0,d|0,f|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;J[a+24>>2]=d}a=J[a+12>>2];d=J[J[a>>2]+8>>2];J[699344]=0;a=ga(d|0,a|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break b}oa(ea(0)|0)|0;J[699344]=0;ka(5257);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}return a|0}a=Z()|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)!=1){ba(a|0);B()}ea(0)|0;Bc();B()}function t8a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{c:{d=J[a>>2];f=J[a+4>>2]-d>>3;c=f+1|0; +if(c>>>0<536870912){d=J[a+8>>2]-d|0;e=d>>2;c=d>>>0>=2147483640?536870911:c>>>0>>0?e:c;if(c){if(c>>>0>=536870912)break c;e=vc(c<<3)}else e=0;d=e+(f<<3)|0;$n(d,b);c=e+(c<<3)|0;e=d+8|0;b=J[a+4>>2];f=J[a>>2];if((b|0)==(f|0))break b;while(1){d=d-8|0;b=b-8|0;$n(d,b);if((b|0)!=(f|0))continue;break}J[a+8>>2]=c;b=J[a+4>>2];J[a+4>>2]=e;c=J[a>>2];J[a>>2]=d;if((b|0)==(c|0))break a;while(1){b=b-8|0;kc[J[J[b>>2]+16>>2]](b)|0;if((b|0)!=(c|0))continue;break}b=c;break a}Fg(a);B()}Pd();B()}J[a+8>>2]=c;J[a+4>>2]= +e;J[a>>2]=d}if(b)uc(b)}function r$(a){a=a|0;var b=0;J[a>>2]=2217456;b=J[a+160>>2];if(b)uc(Zc(b));a:{b=J[a+164>>2];if(b){J[699344]=0;$(3598,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+168>>2];if(b){J[699344]=0;$(3390,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+200>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+208>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+216>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a>> +2]=2217332;b=J[a+4>>2];if(b)uc(Zc(b));b=J[a+16>>2];if(b)uc(Zc(b));b=J[a+28>>2];if(b)uc(Zc(b));return a|0}ea(0)|0;Bc();B()}function ql(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;Pj(b+8|0,a,0);a:{b:{c:{d:{e:{a=J[b+8>>2];f:{g:{if(!a)break g;d=J[a+8>>2];if(!d)break g;e=J[a+12>>2];h:{a=d-1|0;if(!a)break h;c=a;if((d|0)>0)break h;J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)==1)break f;B()}if(K[c+e|0]==47)break e}J[699344]=0;a=rf(b+8|0);c=J[699344];J[699344]=0;if((c|0)!=1)break d}a=Z()|0;break a}J[699344]= +0;ia(5313,b|0,b+8|0,0,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break c;J[699344]=0;a=rf(b);c=J[699344];J[699344]=0;if((c|0)==1)break b;wc(b)}wc(b+8|0);fc=b+16|0;return a|0}a=Z()|0;break a}a=Z()|0;wc(b)}wc(b+8|0);ba(a|0);B()}function I$(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(!c)break a;d=J[a+68>>2];h=d;f=J[a+64>>2];g=c<<3;e=f+g|0;d=(c>>>29|0)+d|0;d=e>>>0>>0?d+1|0:d;if((h|0)==(d|0)&e>>>0>>0|d>>>0>>0){g=J[a+76>>2];f=J[a+72>>2]+1|0;g=f?g:g+1|0;J[a+72>>2]=f;J[a+76>>2]=g}f=a+80|0;J[a+64>>2]=e;J[a+ +68>>2]=d;e=J[a+208>>2];b:{if(e){d=e+f|0;e=128-e|0;if(e>>>0>c>>>0){xc(d,b,c);c=J[a+208>>2]+c|0;break b}xc(d,b,e);J[a+208>>2]=0;Ow(a,f,1);c=c-e|0;b=b+e|0}c:{if(c>>>0<128)break c;if(b&7)while(1){Ow(a,xc(f,b,128),1);b=b+128|0;c=c-128|0;if(c>>>0>127)continue;break c}Ow(a,b,c>>>7|0);b=b+c|0;c=c&127;b=b-c|0}if(!c)break a;xc(f,b,c)}J[a+208>>2]=c}}function Dia(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;g=fc-112|0;fc=g;J[g+104>>2]=37;J[g+108>>2]=0;h=g+104|0;Gp(h|1,9829,1,J[c+4>>2]);i= +gh();J[g>>2]=e;J[g+4>>2]=f;a=g+80|0;e=Di(a,24,i,h,g)+a|0;i=fk(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[699344]=0;h=g+32|0;ua(6868,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)kc[J[J[a>>2]+8>>2]](a);a=Rs(b,h,J[g+28>>2],J[g+24>>2],c,d);fc=g+112|0;break a}c=Z()|0;a=J[g+20>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function Bia(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;g=fc-112|0;fc=g;J[g+104>>2]=37;J[g+108>>2]=0;h=g+104|0;Gp(h|1,9829,0,J[c+4>>2]);i=gh();J[g>>2]=e;J[g+4>>2]=f;a=g+80|0;e=Di(a,24,i,h,g)+a|0;i=fk(a,e,c);f=g+20|0;h=J[c+28>>2];J[f>>2]=h;J[h+4>>2]=J[h+4>>2]+1;J[699344]=0;h=g+32|0;ua(6868,a|0,i|0,e|0,h|0,g+28|0,g+24|0,f|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[f>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)kc[J[J[a>>2]+8>>2]](a);a=Rs(b,h,J[g+28>>2],J[g+24>>2],c,d);fc=g+112|0;break a}c=Z()|0;a=J[g+20>>2];b= +J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function _u(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+4>>2];b=f>>31;c=(b^f)-b|0;h=J[a>>2];if(!h){if(!f)return;J[a+4>>2]=(f|0)<0?-65536:65536;return}b=h>>31;d=(b^h)-b|0;if(!f){J[a>>2]=(h|0)<0?-65536:65536;return}e=c>>>0>>0?d+(c>>>1|0)|0:c+(d>>>1|0)|0;b=S(e);b=(-1431655766>>>b>>>0>e>>>0?-15:-16)+b|0;a:{if((b|0)>0){d=d<>>0>>0?d+(c>>>1|0)|0:(d>>>1|0)+c|0;break a}g=e;e=0-b|0;b=g>>>e|0;c=c>>>e|0; +d=d>>>e|0}b=65536-b|0;while(1){e=(P(b,d)>>16)+d|0;g=(P(b,c)>>16)+c|0;i=P((P(e,e)+P(g,g)|0)/-512|0,b+65536>>8);b=(i>>>16|0)+b|0;if((i|0)>65535)continue;break}J[a+4>>2]=(f|0)<0?0-g|0:g;J[a>>2]=(h|0)<0?0-e|0:e}function R1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;c=1;e=J[b>>2];a:{if(K[e|0]!=47)break a;J[d+12>>2]=e+1;b:{if(Pr(d+12|0,0,0))break b;while(1){f=J[d+12>>2];if(K[f|0]!=47)break b;J[d+12>>2]=f+1;if(!Pr(d+12|0,0,1))continue;break}break a}c:{if(!a){c=J[d+12>>2];break c}c=J[a+24>>2];if(c){kc[J[663199]](c); +e=J[b>>2]}c=J[d+12>>2];if((e|0)!=(c|0)){f=c-e|0;if(K[a+36|0]&2){if(!(!e|(f|0)<0)){g=kc[J[663198]](f+1|0)|0;if(!g){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);J[a+24>>2]=0;break c}h=xc(g,e,f)+f|0,i=0,H[h|0]=i}J[a+24>>2]=g;break c}h=a,i=Wo(e,f),J[h+24>>2]=i;break c}J[a+24>>2]=0;c=e}J[b>>2]=c;c=0}fc=d+16|0;return c}function Fya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;Ho(d+12|0);J[699344]=0;e=b;b=J[d+12>>2];ca(5603,e|0,b|0,c|0);c=J[699344];J[699344]=0;a:{b:{if((c|0)==1)break b;c=J[J[b>>2]+20>>2]; +J[699344]=0;ha(c|0,b|0,0,0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;da(5604,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+12>>2];J[d+12>>2]=0;c:{if(!a)break c;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+16|0;return}a=Z()|0;zc(d+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Lhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-208|0;fc=d;f=J[a+ +532>>2];kc[J[b+60>>2]](b,d+16|0,16,d+12|0);e=J[d+12>>2];a:{if((e|0)<0){c=162;break a}c=3;if(e-17>>>0<4294967280)break a;b:{c:{d:{if(f){g=J[f>>2];if(g)break d}c=JD(a,e,0);if(c)break a;e=J[b+8>>2];g=J[b>>2];if(J[d+12>>2]<=0)break b;f=J[a+532>>2];break c}if((e|0)!=(g|0))break a;e=J[b+8>>2];g=J[b>>2]}c=0;while(1){a=(d+16|0)+P(c,12)|0;J[b>>2]=J[a>>2];J[b+8>>2]=J[a+4>>2];a=kc[J[b+40>>2]](b,0)|0;h=c<<2;J[h+J[f+136>>2]>>2]=a;J[J[f+140>>2]+h>>2]=a;c=c+1|0;if((c|0)>2])continue;break}}J[b+8>>2]=e;J[b>> +2]=g;c=0}J[b+12>>2]=c;fc=d+208|0}function $H(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if((c|0)<=0)break a;e=c&3;b:{if(!e){d=c;break b}d=c;while(1){g=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=g;J[a+8>>2]=J[b+8>>2];b=b+12|0;a=a+12|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(c>>>0<4)break a;while(1){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];J[a+20>>2]=J[b+20>>2];c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;J[a+32>>2]=J[b+32>>2];c=J[b+28>>2];J[a+24>>2]=J[b+24>>2];J[a+ +28>>2]=c;c=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=c;J[a+44>>2]=J[b+44>>2];b=b+48|0;a=a+48|0;c=d-5|0;d=d-4|0;if(c>>>0<4294967294)continue;break}}}function vI(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=fc-256|0;fc=g;a:{b:{if(c>>>0>>0){fd(a,58803);d=0;break b}if(!b){c:{h=c-d|0;c=RY(a,J[a+740>>2]+d|0,h,0,0);if(!(d>>>0>4294967293|c>>>0>=-2-d>>>0)){b=J[a+712>>2];if(!b|c+d>>>0>>0)break c}fd(a,58993);break b}if(!c)break b;d:{b=c+d|0;f=sg(a,b+1|0);if(f){i=J[a+740>>2];f=xc(f,i,d);h=RY(a,d+i|0,h,d+f|0,c); +H[b+f|0]=0;if((c|0)==(h|0))break d;fd(a,59138);Bd(a,f);break b}fd(a,59327);break b}Bd(a,J[a+740>>2]);J[a+740>>2]=f;d=b;break a}Mk(g,1,1,b);zr(a,g,59576)}b=sg(a,d+1|0);if(!b)break a;c=J[a+740>>2];if(d)xc(b,c,d);Bd(a,c);J[a+740>>2]=b;H[b+d|0]=0}J[e>>2]=d;fc=g+256|0}function uh(a,b,c){var d=0,e=0,f=0;f=fc-16|0;fc=f;a:{b:{if((kc[J[a+4>>2]](J[a+28>>2],b,f+12|0,1)|0)==1){e=K[f+12|0];break b}d=-1;if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break a}c:{d:{e:{if((kc[J[a+4>>2]](J[a+28>>2],b,f+13|0,1)|0)==1){d=e;e=K[f+ +13|0];d=d|e<<8;break e}if(kc[J[a+24>>2]](J[a+28>>2],b)|0)break d;d=P(e,257)}if((kc[J[a+4>>2]](J[a+28>>2],b,f+14|0,1)|0)==1){e=K[f+14|0];break c}if(!(kc[J[a+24>>2]](J[a+28>>2],b)|0))break c}e=0;d=-1;break a}d=d|e<<16;if((kc[J[a+4>>2]](J[a+28>>2],b,f+15|0,1)|0)==1){e=d|K[f+15|0]<<24;d=0;break a}a=kc[J[a+24>>2]](J[a+28>>2],b)|0;e=a?0:d|e<<24;d=a?-1:0}J[c>>2]=e;fc=f+16|0;return d}function mx(a,b){var c=0,d=0,e=0,f=0;f=fc-16|0;fc=f;if(b){d=J[b+20>>2];if(d)a:if(J[d+4>>2]==2)break a;d=0;while(1){b:{c:switch(J[b+ +4>>2]-3|0){case 0:case 1:d=nq(d,J[b+40>>2]);break b;case 2:break c;default:break b}e=J[b+8>>2];d:{e:{f:{if(!a)break f;c=J[a+44>>2];g:{if(!c)break g;c=J[c+48>>2];if(!c)break g;c=Bf(c,e,0,0);if(c)break e}if(J[a+40>>2]==1)break f;c=J[a+48>>2];if(!c)break f;c=J[c+48>>2];if(!c)break f;c=Bf(c,e,0,0);if(c)break e}c=fj(e);if(!c)break d}e=mx(a,J[c+12>>2]);if(!e)break b;d=nq(d,e);kc[J[663199]](e);break b}d=nq(d,J[b+40>>2])}b=J[b+24>>2];if(b)continue;break}}fc=f+16|0;return d}function hJa(a,b,c,d){a=a|0;b=b| +0;c=c|0;d=d|0;var e=0;a:{b:{c:{d:{if(b){if(!a)break d;if(!d)break c;if(J[a+100>>2]!=1){Nc(d,1,2360239,0);return 0}if(c>>>0<=7)break a;wd(b,a+56|0,4);wd(b+4|0,a+60|0,4);if(c&3)break a;e=c-8|0;c=e>>>2|0;J[a+64>>2]=c;if(e>>>0>=4){c=Ge(c,4);J[a+68>>2]=c;if(!c)break b;c=J[a+64>>2]}if(c){d=b+8|0;b=0;while(1){wd(d,J[a+68>>2]+(b<<2)|0,4);d=d+4|0;b=b+1|0;if(b>>>0>2])continue;break}}J[a+100>>2]=J[a+100>>2]|2;return 1}fa(2359884,2354795,2594,2371416);B()}fa(2354499,2354795,2595,2371416);B()}fa(2355439, +2354795,2596,2371416);B()}Nc(d,1,2360406,0);return 0}Nc(d,1,2360289,0);return 0}function Thb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-32|0;fc=c;a:{if((kc[J[b+52>>2]](b,6,c,3)|0)<=5){J[b+12>>2]=3;break a}e=J[c+12>>2];if(!e){J[b+12>>2]=3;break a}d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){f=a,g=Cd(1E3,d),I[f+68>>1]=g;f=c,g=Cd(J[c>>2],d),J[f>>2]=g;f=c,g=Cd(J[c+4>>2],d),J[f+4>>2]=g;f=c,g=Cd(J[c+8>>2],d),J[f+8>>2]=g;f=c,g=Cd(J[c+16>>2],d),J[f+16>>2]=g;f=c,g=Cd(J[c+20>>2],d),J[f+20>>2]=g;e=J[c+12>>2]<0?-65536: +65536;J[c+12>>2]=e}J[a+440>>2]=J[c>>2];J[a+448>>2]=J[c+4>>2];d=J[c+8>>2];J[a+452>>2]=e;J[a+444>>2]=d;if(!eE(a+440|0)){J[b+12>>2]=3;break a}J[a+456>>2]=I[c+18>>1];J[a+460>>2]=I[c+22>>1]}fc=c+32|0}function wn(a,b,c,d,e){var f=0,g=0,h=0,i=0;h=fc-16|0;fc=h;J[h+12>>2]=b;b=0;f=6;a:{b:{if(gk(a,h+12|0))break b;f=4;g=J[a>>2];i=J[g+12>>2];c:{if((i|0)==J[g+16>>2]){g=kc[J[J[g>>2]+36>>2]](g)|0;break c}g=J[i>>2]}if(!(kc[J[J[d>>2]+12>>2]](d,64,g)|0))break b;b=kc[J[J[d>>2]+52>>2]](d,g,0)|0;while(1){d:{dr(a);b=b- +48|0;if(gk(a,h+12|0)|(e|0)<2)break d;f=J[a>>2];g=J[f+12>>2];e:{if((g|0)==J[f+16>>2]){f=kc[J[J[f>>2]+36>>2]](f)|0;break e}f=J[g>>2]}if(!(kc[J[J[d>>2]+12>>2]](d,64,f)|0))break a;e=e-1|0;b=(kc[J[J[d>>2]+52>>2]](d,f,0)|0)+P(b,10)|0;continue}break}f=2;if(!gk(a,h+12|0))break a}J[c>>2]=J[c>>2]|f}fc=h+16|0;return b}function uX(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2397168;J[699344]=0;$(5233,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)a:{id(a+52|0);b=J[a+44>>2];J[a+44>>2]=0;b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]- +1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+8>>2]=2392932;J[a+32>>2]=2392964;b=J[a+36>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+36>>2]=0}J[a+24>>2]=2392964;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}wc(a+16|0);return nd(a)|0}ea(0)|0;Bc();B()}function Qtb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;J[c+12>>2]=0;a:{if(K[b+ +32|0]){d=Ce(a,J[b>>2],0,0);break a}b:{d=wO(a,J[b+52>>2],J[b+48>>2],c+12|0,c+8|0,c+4|0);c:{if(d)break c;e=J[b+36>>2];f=(e+J[c+4>>2]|0)+2|0;d:{if(f>>>0<=M[a+424>>2]){g=J[a+428>>2]+8|0;break d}g=kc[J[a+152>>2]](f)|0;if(!g)break b;e=J[b+36>>2]}d=g;if(e)d=xc(d,J[b+40>>2],e)+J[b+36>>2]|0;H[d|0]=0;H[d+1|0]=K[b+44|0];e=J[c+4>>2];if(e)xc(d+2|0,J[c+12>>2],e);d=Ce(a,J[b>>2],f,g);if(M[a+424>>2]>=f>>>0)break c;kc[J[a+156>>2]](g,f)}b=J[c+12>>2];if(!b)break a;kc[J[a+156>>2]](b,J[c+8>>2]);break a}d=1;Jc(a,1,0,0)}fc= +c+16|0;return d|0}function OD(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if(!a)return 35;e=16;a:{if(L[a+264>>1]<=b>>>0)break a;d=J[a+544>>2];if(!d)return 7;e=0;g=c,h=kc[J[d+16>>2]](0)|0,J[g>>2]=h;f=c;c=J[a+476>>2];b:{if((c|0)!=151552){if((c|0)!=131072){if((c|0)!=65536|b>>>0>257)break a;a=kc[J[d+16>>2]](b)|0;break b}if(!K[a+632|0])if(C6(a))break a;if(L[a+636>>1]<=b>>>0)break a;b=L[J[a+640>>2]+(b<<1)>>1];if(b>>>0<=257){a=kc[J[d+16>>2]](b)|0;break b}a=J[(J[a+644>>2]+(b<<2)|0)-1032>>2];break b}if(!K[a+ +632|0])if(C6(a))break a;if(L[a+636>>1]<=b>>>0)break a;a=kc[J[d+16>>2]](H[J[a+640>>2]+b|0]+b|0)|0}J[f>>2]=a}return e|0}function iN(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;kc[J[J[b>>2]+16>>2]](b,45447,1,6)|0;c=J[a+16>>2];kc[J[J[b>>2]+44>>2]](b,c&255)|0;kc[J[J[b>>2]+44>>2]](b,c>>>8&255)|0;c=J[a+20>>2];kc[J[J[b>>2]+44>>2]](b,c&255)|0;kc[J[J[b>>2]+44>>2]](b,c>>>8&255)|0;if(J[a+44>>2]){c=L[a+26>>1]-1|0;c=c<<5|c|-128}else c=17;kc[J[J[b>>2]+44>>2]](b,c&255)|0;c=0;kc[J[J[b>>2]+44>>2]](b,0)|0;kc[J[J[b>>2]+44>>2]](b, +0)|0;e=J[a+44>>2];d=!e;if(!(d|d)){d=J[a+4>>2];d=d?e?d+40|0:0:0;while(1){e=d+(c<<2)|0;kc[J[J[b>>2]+44>>2]](b,K[e+2|0])|0;kc[J[J[b>>2]+44>>2]](b,K[e+1|0])|0;kc[J[J[b>>2]+44>>2]](b,K[e|0])|0;c=c+1|0;if(c>>>0>2])continue;break}}}function Xmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=3;a:{if(J[a+64>>2]!=3){J[a+64>>2]=3;e=J[a+20>>2];if(!e)break a;b:{if(K[a+68|0]){d=J[a+12>>2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=Hh(d,0,1);if(d)break a}f=L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+ +12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=Hh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+68|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[f+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1}d=0}return d|0}function XA(a,b,c,d,e,f,g,h,i,j){var k=0,l=0,m=0,n=0,o=0,p=0;k=fc-96|0;fc=k;m=h-g;n=Av(m*.5);l=Ee(m);m=Me(h);o=Ee(h);h=f*o+d;l=l*(Y(n*(n*3)+4)+-1)/3;n=l*f;p= +Me(g);l=l*e;g=Ee(g);O[k+88>>3]=e*p+c-l*g;O[k+80>>3]=n*p+(f*g+d);c=e*m+c;O[k+72>>3]=l*o+c;O[k+64>>3]=h-m*n;O[k+56>>3]=c;O[k+48>>3]=h;ce(b,k+88|0,k+80|0);ce(b,k+72|0,k- -64|0);ce(b,k+56|0,k+48|0);O[k+40>>3]=O[k+88>>3]*25.4/96;O[k+32>>3]=O[k+80>>3]*25.4/96;O[k+24>>3]=O[k+72>>3]*25.4/96;O[k+16>>3]=O[k+64>>3]*25.4/96;O[k+8>>3]=O[k+56>>3]*25.4/96;O[k>>3]=O[k+48>>3]*25.4/96;kc[J[J[a>>2]+328>>2]](a,k+40|0,k+32|0,k+24|0,k+16|0,k+8|0,k)|0;O[i>>3]=c;O[j>>3]=h;fc=k+96|0}function WI(a,b){var c=0,d=0,e=0,f=0,g= +0,h=0;c=J[a+3524>>2];a:{while(1){b:{if(c){d=J[a+3520>>2];c=c-1|0;break b}c:{c=J[a+4>>2];d=kc[J[J[c>>2]+28>>2]](c)|0;if((d|0)!=255){if((d|0)==-1)break a;break c}while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;if((c|0)==255)continue;break}if(!c)break c;Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,819751,0);return 9999}J[a+3520>>2]=d;c=7}J[a+3524>>2]=c;e=e+1|0;f=(e<<1)+b|0;g=L[f+18>>1];h=d>>>c&1|h<<1&131070;d=h&65535;if(g>>>0<=d>>>0){d=d-g|0;if((d|0)>1])return K[((K[b+e|0]+(d&65535)|0)+b|0)+86|0];if((e|0)!= +16)continue}break}Cc(1,kc[J[J[a>>2]+52>>2]](a)|0,819545,0)}return 9999}function Ozb(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{c:{d:{e:{b=J[J[a+512>>2]+88>>2];switch(K[b+45|0]){case 2:case 6:break c;case 3:break d;case 0:case 4:break e;default:break a}}c=K[b+44|0];if(c>>>0>=9){c=K[b+1155|0];break b}c=P(K[c+213080|0],K[b+1154|0]);break b}b=b+P(K[b+1152|0],3)|0;c=K[b+70|0];d=K[b+69|0];e=K[b+68|0];break a}e=L[b+1156>>1];if(K[b+44|0]>=9){e=(e&65280)>>>8|0;c=K[b+1161|0];d=K[b+1159|0];break a}c=K[b+1160|0];d=K[b+ +1158|0];break a}d=c;e=c}b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)>0){a=J[a+644>>2];c=e&255|((d&255)<<8|(c&255)<<16);while(1){J[a>>2]=c;a=a+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function Dh(a,b,c,d){var e=0,f=0,g=0;a:{b:{if(!(H[a+201|0]&1)&(b|0)>=65536)break b;e=J[a+52>>2];f=-1;c:switch(K[a+200|0]){case 0:e=L[(J[a+188>>2]+((b&15)<<1)|0)+(L[(e+(b>>>3&126)|0)+(L[e+(b>>10<<1)>>1]<<1)>>1]<<1)>>1];d:{if(d){if(e>>>0>2047)break d;break b}if(e>>>0<3072)break b}J[c>>2]=e&255;return 1;case 1:break c; +default:break a}g=b&15;f=J[(e+(b>>>2&252)|0)+(L[e+(b>>10<<1)>>1]<<2)>>2];e=L[J[a+188>>2]+((g|f<<4&1048560)<<1)>>1];if(!(f>>>(g|16)&1))if(!e|!(b-57344>>>0<6400|d)&b-983040>>>0>131071)break b;J[c>>2]=e;return e>>>0<256?1:2}a=J[a+224>>2];if(!a)return 0;b=wu(a,b,c,d);a=b>>31;f=(a^b)-a|0}return f}function ir(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0;j=1;i=d&2147483647;k=i;l=(i|0)==2147418112;a:{if(l&!c?a|b:l&(c|0)!=0|i>>>0>2147418112)break a;i=h&2147483647;if(!g&(i|0)==2147418112?e|f:(i|0)==2147418112&(g|0)!= +0|i>>>0>2147418112)break a;if(!(a|e|(c|g)|(b|f|(i|k))))return 0;j=d&h;if((j|0)>0)k=1;else k=(j|0)>=0;if(k){j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>>0|b>>>0>>0:c>>>0>>0&(d|0)<=(h|0)|(d|0)<(h|0))break a;return(a^e|c^g|(b^f|d^h))!=0}j=-1;if((c|0)==(g|0)&(d|0)==(h|0)?(b|0)==(f|0)&a>>>0>e>>>0|b>>>0>f>>>0:c>>>0>g>>>0&(d|0)>=(h|0)|(d|0)>(h|0))break a;j=(a^e|c^g|(b^f|d^h))!=0}return j}function dB(a){var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;J[a+744>>2]=33;Dg(a,c+8|0,8);a:{b=K[c+8|0]|K[c+9| +0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);e=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);if((e|0)>=0){b=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);J[a+348>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);Km(a);Ae(a,c+12|0,4);b=J[a+348>>2];d=b&255;if(d-123>>>0<4294967238|d-91>>>0<=5)break a;d=b>>>8&255;if(d-123>>>0<4294967238|d-91>>>0<6)break a;d=b>>>16&255;if(d-123>>>0<4294967238|d-91>>>0<6)break a;b=b>>>24|0;if(b-123>>>0<4294967238|b-91>>>0<6)break a;J[a+744>>2]=65;fc=c+16|0;return e}Ld(a,57851);B()}ww(a, +68336);B()}function bDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-80|0;fc=c;J[c+64>>2]=J[a+12>>2];md(b,208124,c- -64|0);d=J[a+16>>2];f=J[a+20>>2];g=J[a+28>>2];J[c+56>>2]=J[a+24>>2];J[c+60>>2]=g;J[c+48>>2]=d;J[c+52>>2]=f;md(b,208173,c+48|0);d=J[a+32>>2];f=J[a+36>>2];g=J[a+44>>2];J[c+40>>2]=J[a+40>>2];J[c+44>>2]=g;J[c+32>>2]=d;J[c+36>>2]=f;md(b,208280,c+32|0);if(J[a+48>>2])while(1){d=J[a+52>>2]+(e<<2)|0;f=K[d|0];g=K[d+1|0];h=K[d+2|0];J[c+28>>2]=K[d+3|0];J[c+24>>2]=e;J[c+20>>2]=h;J[c+16>>2]= +e;J[c+12>>2]=g;J[c+8>>2]=e;J[c+4>>2]=f;J[c>>2]=e;md(b,208403,c);e=e+1|0;if(e>>>0>2])continue;break}fc=c+80|0;return 0}function LHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;J[a+4>>2]=0;J[a+64>>2]=2382056;J[a>>2]=2382036;J[a+8>>2]=2381816;J[699344]=0;f=a- -64|0;d=a+12|0;da(3019,f|0,d|0);e=J[699344];J[699344]=0;a:{b:{if((e|0)!=1){J[a+136>>2]=0;J[a+140>>2]=-1;J[a+64>>2]=2381836;J[a>>2]=2381796;J[a+8>>2]=2381816;J[699344]=0;d=_(5050,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[d>>2]=2381648; +J[a+52>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+60>>2]=c;J[699344]=0;da(5051,d|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;if(H[a+55|0]<0)uc(J[a+44>>2]);ai(d);break a}return a|0}b=Z()|0;break a}b=Z()|0}bg(f);ba(b|0);B()}function AS(a,b,c){var d=0,e=0;d=fc-16|0;fc=d;J[d+8>>2]=b;J[d+12>>2]=a;J[d+4>>2]=c;e=J[c>>2];c=J[b>>2];b=(e|0)<(c|0);fc=d+16|0;a:{b:{if((c|0)>=J[a>>2]){a=0;if(!b)break a;c=d+8|0;a=J[c>>2];b=J[a>>2];e=a;a=J[d+4>>2];J[e>>2]=J[a>>2];J[a>>2]=b;b=J[d+12>>2];a=1;if(J[J[d+ +8>>2]>>2]>=J[b>>2])break a;a=J[b>>2];e=b;b=J[c>>2];J[e>>2]=J[b>>2];J[b>>2]=a;break b}if(b){a=J[d+12>>2];b=J[a>>2];c=a;a=J[d+4>>2];J[c>>2]=J[a>>2];J[a>>2]=b;a=1;break a}a=J[d+12>>2];b=J[a>>2];e=a;c=d+8|0;a=J[c>>2];J[e>>2]=J[a>>2];J[a>>2]=b;b=J[d+4>>2];a=1;if(J[b>>2]>=J[J[d+8>>2]>>2])break a;a=J[c>>2];c=J[a>>2];J[a>>2]=J[b>>2];J[b>>2]=c}a=2}return a}function nt(a,b,c,d){var e=0,f=0,g=0,h=0;g=fc-16|0;fc=g;a:{if(J[a+8>>2]==1){Uc(J[a+628>>2],J[a>>2],81776,0);e=-1;break a}if(K[a+13|0]&4){Uc(J[a+628>>2], +J[a>>2],82141,0);e=-1;break a}e=J[a+180>>2];if(e>>>0<=b>>>0){c=J[a>>2];a=J[a+628>>2];J[g+4>>2]=e;J[g>>2]=b;Uc(a,c,69402,g);e=-1;break a}e=1;h=J[a+60>>2];f=J[a+100>>2];if(h>>>0>f>>>0)e=((f+h|0)-1>>>0)/(f>>>0)|0;b:{if((e-1|0)==((b>>>0)%(e>>>0)|0)){e=(h>>>0)%(f>>>0)|0;if(e)break b}e=f}f=rV(a,e);e=-1;if(!dV(a,b))break a;d=(d|0)==-1?f:(d|0)>(f|0)?f:d;if((kc[J[a+548>>2]](a,c,d,(b>>>0)/M[a+176>>2]&65535)|0)<=0)break a;kc[J[a+652>>2]](a,c,d);e=d}fc=g+16|0;return e}function Gkb(a,b){a=a|0;b=b|0;var c=0,d= +0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;g=J[a+16>>2];c=J[a+28>>2];e=J[a+24>>2];J[f+12>>2]=0;a:{b:{d=e+1|0;c:{if(d>>>0<=c>>>0){b=J[a+32>>2];break c}J[a+36>>2]=b;b=_c(b,4,c,d,J[a+32>>2],f+12|0);J[a+32>>2]=b;if(J[f+12>>2])break b;J[a+28>>2]=d}d:{if(!e)break d;a=g+10|0;c=0;if((e|0)!=1){g=e&-2;d=0;while(1){h=c<<2;J[h+b>>2]=K[a+2|0]|(K[a+1|0]<<8|K[a|0]<<16);J[(h|4)+b>>2]=K[a+13|0]|(K[a+12|0]<<8|K[a+11|0]<<16);c=c+2|0;a=a+22|0;d=d+2|0;if((g|0)!=(d|0))continue;break}}if(!(e&1))break d;J[(c<<2)+b>>2]=K[a+2|0]|(K[a+ +1|0]<<8|K[a|0]<<16)}J[(e<<2)+b>>2]=0;break a}b=0}fc=f+16|0;return b|0}function blb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+16>>2];c=K[a+8204|0]|K[a+8205|0]<<8|(K[a+8206|0]<<16|K[a+8207|0]<<24);d=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(!d)break a;a=a+8208|0;while(1){c=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);if(e>>>0>b>>>0)break a;c=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);if((c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0>>0){a=a+12| +0;d=d-1|0;if(!d)break a;continue}break}a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);b=b-e|0;f=a>>>0<=(b^-1)>>>0?a+b|0:0}return f|0}function W1(a,b,c){var d=0,e=0,f=0;if(!a)return 0;a:{if(!b){b:while(1){b=f;while(1){if(J[a+4>>2]!=14){f=0;d=kx(a,0,c,1);if(!d)break a;c:{d:{if(!b){e=0;b=d;break d}if((d|0)==(e|0))break c;J[e+24>>2]=d}J[d+28>>2]=e;e=d}f=b;a=J[a+24>>2];if(a)continue b;break a}a=J[a+24>>2];if(a)continue;break}break}return b}while(1){e:{f:{g:{if(J[a+ +4>>2]==14){d=J[b+44>>2];if(d)break f;d=OK(a);if(d)break g;return 0}d=kx(a,b,c,1);if(d)break e;return 0}J[d+20>>2]=c;J[d+32>>2]=b;J[b+44>>2]=d}dh(c,d)}h:{i:{if(!f){e=0;f=d;break i}if((d|0)==(e|0))break h;J[e+24>>2]=d}J[d+28>>2]=e;e=d}a=J[a+24>>2];if(a)continue;break}}return f}function Pe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;c=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]=c;a:{b:{c:switch(J[a>>2]-3|0){case 0:c=J[a+8>>2];a=vc(8);J[699344]=0;c=aa(3350,a|0,c|0)|0;d= +J[699344];J[699344]=0;if((d|0)==1)break b;J[b+8>>2]=c;break a;case 1:e=b,f=Id(J[a+8>>2]),J[e+8>>2]=f;break a;case 3:a=J[a+8>>2];J[a+16>>2]=J[a+16>>2]+1;break a;case 4:a=J[a+8>>2];J[a+20>>2]=J[a+20>>2]+1;break a;case 5:a=J[a+8>>2];e=b,f=kc[J[J[a>>2]+8>>2]](a)|0,J[e+8>>2]=f;break a;case 7:break c;default:break a}e=b,f=Id(J[a+8>>2]),J[e+8>>2]=f;break a}b=Z()|0;uc(a);ba(b|0);B()}return b|0}function k7(a,b,c){var d=0;d=0;a:{if(J[a>>2])break a;b:{if(K[b|0]|c>>>0<32|(K[b+1|0]|K[b+2|0]))break b;if(K[b+3| +0]!=12|K[b+4|0]!=106|(K[b+5|0]!=80|K[b+6|0]!=32))break b;if(K[b+7|0]!=32|K[b+8|0]!=13|(K[b+9|0]!=10|K[b+10|0]!=135))break b;if(K[b+12|0]|K[b+11|0]!=10|(K[b+13|0]|K[b+14|0]))break b;if(K[b+15|0]!=24|K[b+16|0]!=102|(K[b+17|0]!=116|K[b+18|0]!=121))break b;if(K[b+19|0]!=112|K[b+20|0]!=109|(K[b+21|0]!=106|K[b+22|0]!=112))break b;if(K[b+24|0]|K[b+23|0]!=50|(K[b+25|0]|K[b+26|0]))break b;if(K[b+27|0]|K[b+28|0]!=109|(K[b+29|0]!=106|K[b+30|0]!=112))break b;d=1;if(K[b+31|0]==50)break a}d=0}return d}function ica(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;h=fc-16|0;fc=h;a:{b:{c:{d:{e=J[a+584>>2];if(e){if(!J[e+24>>2])break d;if(!J[e+20>>2])break c;f=Dc(c);e:{if(!f){a=J[a+628>>2];J[h>>2]=c;Uc(a,197648,80712,h);b=0;break e}f=xc(f,b,c);g=J[e+8>>2];if((g|0)<=0)break b;if((c|0)%(g|0)|0)break a;if((c|0)>0){b=f;i=c;while(1){kc[J[e+24>>2]](a,b,g);b=b+g|0;i=i-g|0;if((i|0)>0)continue;break}}b=kc[J[e+20>>2]](a,f,c,d)|0;uc(f)}fc=h+16|0;return b|0}fa(72298,70404,574,197648);B()}fa(79617,70404,575,197648);B()}fa(80355, +70404,576,197648);B()}fa(79443,70404,594,197648);B()}fa(81026,70404,595,197648);B()}function eN(a,b){var c=0,d=0,e=0,f=0;d=J[a>>2];if(d>>>0>>0)while(1){c=d+1|0;a:{b:{c:{d:{e:{f=K[d|0];switch(f-40|0){case 1:break c;case 0:break d;default:break e}}if((f|0)!=92)break a;if((b|0)==(c|0)){J[a>>2]=b;return 3}f:switch(K[c|0]-40|0){case 0:case 1:case 52:case 58:case 62:case 70:case 74:case 76:break b;default:break f}if((K[c|0]&248)!=48|b>>>0<=c>>>0)break a;c=d+2|0;if(c>>>0>=b>>>0|(K[c|0]&248)!=48)break a; +c=d+3|0;if(c>>>0>=b>>>0)break a;c=(K[d+3|0]&248)==48?d+4|0:c;break a}e=e+1|0;break a}e=e-1|0;if(e)break a;J[a>>2]=c;return 0}c=d+2|0}d=c;if(c>>>0>>0)continue;break}J[a>>2]=d;return 3}function J8a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;a:{if((e|0)<=0)break a;g=J[a+36>>2];if((g|0)<=0)break a;j=J[a+112>>2];if(!j)break a;l=j&3;m=j-1>>>0<3;while(1){n=e-1|0;h=0;while(1){a=J[J[(h<<2)+b>>2]+(c<<2)>>2];f=J[d>>2]+h|0;i=j;k=0;if(l)while(1){H[f|0]=K[a|0];i=i-1|0;f= +f+g|0;a=a+1|0;k=k+1|0;if((k|0)!=(l|0))continue;break}if(!m)while(1){H[f|0]=K[a|0];f=f+g|0;H[f|0]=K[a+1|0];f=f+g|0;H[f|0]=K[a+2|0];f=f+g|0;H[f|0]=K[a+3|0];a=a+4|0;f=f+g|0;i=i-4|0;if(i)continue;break}h=h+1|0;if((h|0)!=(g|0))continue;break}d=d+4|0;c=c+1|0;a=(e|0)>1;e=n;if(a)continue;break}}}function LOa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=fc-32|0;fc=f;J[a+12>>2]=e;J[a+40>>2]=0;J[a+44>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;e=vc(8); +J[699344]=0;b=aa(3349,e|0,b|0)|0;g=J[699344];J[699344]=0;a:{b:{c:{if((g|0)!=1){J[a>>2]=b;b=jk(J[b+4>>2],776801);J[a+4>>2]=b;if(b)break c;J[f>>2]=J[a>>2];Cc(4,-1,778164,f);J[a+44>>2]=1;break b}break a}J[f+16>>2]=5;e=vc(312);J[699344]=0;b=ja(3646,e|0,b|0,0,0,0,f+16|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[a+8>>2]=b;h=a,i=x_(a,c,d),J[h+40>>2]=i}fc=f+32|0;return a|0}a=Z()|0;uc(e);ba(a|0);B()}function mQ(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=fc-16|0;fc=g;J[g+12>>2]=0;if(K[b+11|0]>>>7|0)b=J[b>>2]; +J[g+8>>2]=J[698583];J[698583]=0;i=g+12|0;f=fc-208|0;fc=f;e=Ac(f,0,144);f=e+144|4;J[e+8>>2]=f;J[e+44>>2]=f;J[e+76>>2]=-1;J[e+48>>2]=60;J[e+4>>2]=f;J[e+32>>2]=7243;f=b;while(1){h=b;b=b+4|0;if(NR(J[h>>2]))continue;break}J[e+84>>2]=h;Jk(e,0,0);b=LS(e,d,1,-2147483648,0);if(i){d=J[e+120>>2]+(J[e+4>>2]-J[e+44>>2]|0)|0;J[i>>2]=d?(d<<2)+h|0:f}fc=e+208|0;d=J[698583];J[698583]=J[g+8>>2];J[g+8>>2]=d;a:{if(J[g+8>>2]!=68){d=J[g+12>>2];if((d|0)==(f|0))break a;if(c)J[c>>2]=d-f>>2;fc=g+16|0;return b}Is(a);B()}_y(a); +B()}function TJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;J[e+12>>2]=c;a:{b:{if(b){if(!a)break b;if(!d)break a;c:{if(!(!SY(a,0,b,e+12|0,d)|J[e+12>>2])){if(J[a+8>>2]==16)b=J[a+156>>2]+P(J[a+192>>2],5644)|0;else b=J[a+12>>2];f=1;if(M[J[a+72>>2]+16>>2]<2)break c;b=J[b+5584>>2];g=b+28|0;c=1;d=b;while(1){J[d+1104>>2]=J[b+24>>2];J[d+1884>>2]=J[b+804>>2];xc(d+1108|0,g,776);d=d+1080|0;c=c+1|0;if(c>>>0>2]+16>>2])continue;break}break c}Nc(d,1,2366798,0)}fc=e+16|0;return f|0}fa(2365733, +2358254,3039,2366781);B()}fa(2358373,2358254,3040,2366781);B()}fa(2358486,2358254,3041,2366781);B()}function P5(a){var b=0,c=0,d=0;c=fc-16|0;fc=c;J[a+4>>2]=0;J[c+12>>2]=0;b=Dc(84);if(!b){d=J[a>>2];J[d+20>>2]=56;J[d+24>>2]=0;kc[J[J[a>>2]>>2]](a)}J[b+48>>2]=1E9;J[b+40>>2]=303;J[b+36>>2]=304;J[b+32>>2]=305;J[b+28>>2]=306;J[b+24>>2]=307;J[b+20>>2]=308;J[b+16>>2]=309;J[b+12>>2]=310;J[b+8>>2]=311;J[b+4>>2]=312;J[b>>2]=313;J[b+52>>2]=0;J[b+56>>2]=0;J[b+44>>2]=0;J[b+76>>2]=84;J[b+60>>2]=0;J[b+64>>2]=0;J[b+ +68>>2]=0;J[b+72>>2]=0;J[a+4>>2]=b;a=Xi(48050);a:{if(!a)break a;H[c+11|0]=120;J[c>>2]=c+12;J[c+4>>2]=c+11;if((Zg(a,48090,c)|0)<=0)break a;a=J[c+12>>2];J[b+44>>2]=P((K[c+11|0]&223)==77?P(a,1E3):a,1E3)}fc=c+16|0}function lf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=c+4|0;a:{b:{f=J[a+4>>2];c:{if(!f){d=e>>>0<=1E3?1E3:e;J[a+8>>2]=d;d=Dc(d);J[a+16>>2]=0;J[a+4>>2]=d;break c}d=J[a+8>>2];e=e+J[a+16>>2]|0;if(d>>>0>=e>>>0)break b;while(1){d=d<<1;if(e>>>0>d>>>0)continue;break}J[a+8>>2]=d;d=fe(f,d);if(d){J[a+ +4>>2]=d;d=d+J[a+16>>2]|0;break c}d=Dc(J[a+8>>2]);e=J[a+4>>2];d=xc(d,e,J[a+16>>2]);uc(e);J[a+4>>2]=d;d=d+J[a+16>>2]|0}J[a+12>>2]=d;break a}d=J[a+12>>2]}H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;d=J[a+12>>2]+4|0;J[a+12>>2]=d;J[a+16>>2]=J[a+16>>2]+4;xc(d,b,c);J[a+12>>2]=J[a+12>>2]+c;J[a+16>>2]=J[a+16>>2]+c}function u3a(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;a:{if(!a)break a;if(!J[693241]){J[c+4>>2]=0;J[c+8>>2]=0;J[c+28>>2]=-1;J[c+20>>2]=0;J[c+24>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[693241]= +1}b:{c:{if(J[b>>2]>0)break c;d:{if(J[693239]==2)break d;if(!$C(2772956))break d;d=m3(3,b);J[693238]=d;a=J[b>>2];if((a|0)<=0){J[d+20>>2]=3050;yu(16,3051);a=J[b>>2]}J[693240]=a;J[693239]=2;a=J[693238];break b}a=J[693240];if((a|0)<=0)break c;J[b>>2]=a}a=J[693238]}if(J[b>>2]>0)break a;a=ML(a,733043);if(!a|!J[a+4>>2]|J[b>>2]>0)break a;J[699344]=0;a=J[699344];J[699344]=0;if((a|0)!=1)break a;ea(0)|0;Bc();B()}fc=c+32|0}function qx(a,b){var c=0,d=0,e=0;c=-1;a:{if(!a|(b|0)>4)break a;while(1){e=J[a+4>>2];if(!(e>>> +0>8|!(1<>1];if((d|0)!=65535)return d;b:{c:{d:switch(e-1|0){case 0:c=J[a+12>>2];if(!c)break c;c=qx(c,b+1|0);break b;case 2:break d;default:break c}c=J[a+52>>2];if(c)break b}c=J[a+24>>2];if(c){c=qx(c,b+1|0);break b}a=J[a+28>>2];if(!a)return d;c=qx(a,b+1|0)}if((c|0)==65535)return d;if((c|0)!=-1)break a;return d}d=J[a+28>>2];e:{f:{if(!d)break f;e=J[d+4>>2];if(e>>>0>8)break f;if(1<>2];if(!d|J[d+4>>2]!=1)break a}a=d;b=b+1|0;if((b|0)!=5)continue;break}}return c} +function caa(a,b,c,d,e,f,g,h){a:{if(b>>>0>c>>>0)break a;b:switch(d|0){case 0:while(1){d=b&65535;c:{if(d){d=ph(a,d);break c}d=J[a+528>>2]}if(d){J[d+60>>2]=h;J[d+56>>2]=g;J[d+52>>2]=f;J[d+48>>2]=e;H[d+44|0]=1}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}break a;case 1:while(1){d=b&65535;d:{if(d){d=ph(a,d);break d}d=J[a+528>>2]}if(d){H[d+44|0]=1;J[d+48>>2]=J[d+48>>2]+e;J[d+52>>2]=J[d+52>>2]+f;J[d+56>>2]=J[d+56>>2]+g;J[d+60>>2]=J[d+60>>2]+h}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}break a;default:break b}while(1){d= +b&65535;if(d)ph(a,d);b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}}return 0}function C8a(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;var h=0,i=0,j=0,k=0,l=0;d=J[a+472>>2];i=J[d+92>>2];h=J[a+316>>2];if((i|0)>=(h|0)){if(J[a+36>>2]>0){l=d+12|0;h=J[a+216>>2];i=0;while(1){j=i<<2;k=j+d|0;kc[J[k+52>>2]](a,h,J[b+j>>2]+(P(J[k+100>>2],J[c>>2])<<2)|0,j+l|0);h=h+88|0;i=i+1|0;if((i|0)>2])continue;break}h=J[a+316>>2]}J[d+92>>2]=0;i=0}b=h-i|0;h=J[d+96>>2];b=b>>>0>>0?b:h;h=g;g=J[f>>2];h= +h-g|0;b=b>>>0>>0?b:h;kc[J[J[a+476>>2]+4>>2]](a,d+12|0,i,(g<<2)+e|0,b);J[f>>2]=b+J[f>>2];J[d+96>>2]=J[d+96>>2]-b;b=b+J[d+92>>2]|0;J[d+92>>2]=b;if((b|0)>=J[a+316>>2])J[c>>2]=J[c>>2]+1}function Ajb(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;h=3;g=b+2|0;a:{if(g>>>0>c>>>0)break a;i=c;c=K[b+1|0]|K[b|0]<<8;if(i>>>0<(c<<2)+g>>>0)break a;b=J[a+12>>2];i=K[b+14|0];j=L[b+12>>1];k=L[b+10>>1];l=K[b+8|0];m=L[b+6>>1];n=L[b+4>>1];b:{if(!c){h=0;break b}f=f+1|0;b=0;while(1){h= +y6(a,K[g+1|0]|K[g|0]<<8,H[g+2|0]+d|0,H[g+3|0]+e|0,f,0);if(!h){g=g+4|0;b=b+1|0;if((c|0)!=(b|0))continue}break}b=J[a+12>>2]}I[b+14>>1]=i;I[b+8>>1]=l;I[b+12>>1]=j<<24>>24;I[b+10>>1]=k<<24>>24;I[b+6>>1]=m<<24>>24;I[b+4>>1]=n<<24>>24;a=J[a+8>>2];I[b+2>>1]=K[a+4|0];I[b>>1]=K[a|0]}return h|0}function m8(a,b,c,d){var e=0,f=0,g=0,h=0;a:{e=d>>31;f=(e^d)-e|0;e=a>>31;if((f+((e^a)-e|0)|0)>131071)break a;e=c>>31;f=(e^c)-e|0;e=b>>31;if((f+((e^b)-e|0)|0)>131071)break a;a=P(a,d);b=P(b,c);return(a|0)>(b|0)?1:(a|0)< +(b|0)?-1:0}f=d>>>16|0;g=P(f,a&65535);h=a>>>16|0;e=g+P(h,d&65535)|0;a=P(a,d);e=(((e>>>16|0)+P(h,f)|0)+((e>>>0>>0)<<16)|0)+(a>>>0>>0)|0;f=c>>>16|0;g=P(f,b&65535);h=b>>>16|0;d=g+P(h,c&65535)|0;b=P(b,c);c=(((d>>>16|0)+P(h,f)|0)+((d>>>0>>0)<<16)|0)+(b>>>0>>0)|0;d=1;b:{if(e>>>0>c>>>0)break b;d=-1;if(c>>>0>e>>>0)break b;d=1;if(a>>>0>b>>>0)break b;d=a>>>0>>0?-1:0}return d}function cx(a,b){var c=0,d=0,e=0;e=fc-16|0;fc=e;a:{if(!a)break a;b:{c=J[a+56>>2];d=J[a+60>>2];if((c|0)>=(d|0)){c= +kc[J[663200]](J[a+64>>2],d<<3)|0;if(!c)break b;J[a+64>>2]=c;J[a+60>>2]=J[a+60>>2]<<1;c=J[a+56>>2]}d=J[663332];if(!(K[a+362|0]&8|d>>>0>=c>>>0)){if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=1;J[e>>2]=d;Hc(0,0,0,a,0,1,1,3,0,0,0,d,33167,e);J[a+12>>2]=0}J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(!b)break a;c=J[b+40>>2];if(c){kc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39197;J[b+16>>2]=39197;break a}J[J[a+64>>2]+(c<<2)>>2]=b;J[a+56>>2]=c+1;J[a+52>>2]=b;break a}se(a,0)}fc=e+16|0}function jU(a){var b= +0,c=0,d=0,e=0;a:{if(!J[a+8>>2])break a;d=J[a+4>>2];c=J[d>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){c=d;d=J[c+4>>2];b=J[c+12>>2];b:{if(!b)break b;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}uc(c);if((a|0)!=(d|0))continue;break}if(!J[a+8>>2])break a;d=J[a+4>>2];c=J[d>>2];b=J[J[a>>2]+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){c=d;d=J[c+4>>2];b=J[c+12>>2];c:{if(!b)break c;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break c; +kc[J[J[b>>2]+8>>2]](b);Gc(b)}uc(c);if((a|0)!=(d|0))continue;break}}}function eQ(a){var b=0;b=J[a+268>>2];if(b)uc(b);b=J[a+280>>2];if(b)uc(b);b=J[a+292>>2];if(b)uc(b);b=J[a+304>>2];if(b)uc(b);b=J[a+316>>2];if(b)uc(b);b=J[a+328>>2];if(b)uc(b);b=J[a+340>>2];if(b)uc(b);b=J[a+352>>2];if(b)uc(b);b=J[a+364>>2];if(b)uc(b);b=J[a+376>>2];if(b)uc(b);b=J[a+388>>2];if(b)uc(b);b=J[a+400>>2];if(b)uc(b);b=J[a+412>>2];if(b)uc(b);b=J[a+424>>2];if(b)uc(b);b=J[a+436>>2];if(b)uc(b);b=J[a+448>>2];if(b)uc(b);b=J[a+460>> +2];if(b)uc(b);b=J[a+472>>2];if(b)uc(b);b=J[a+484>>2];if(b)uc(b);b=J[a+496>>2];if(b)uc(b);a:{if(!K[a+512|0])break a;b=J[a>>2];if(!b)break a;uc(b)}return a}function ZW(a,b){var c=0,d=0,e=0;d=fc+-64|0;fc=d;c=J[a+276>>2];if(!(c&4)){a:{if((b|0)==(c|0))break a;b:{c:{if(!c)break c;c=Yo(a+212|0);J[a+276>>2]=0;if(!c)break c;e=63895;break b}d:{e:switch(b-1|0){case 0:e=64925;c=zx(a+212|0,J[a+280>>2],J[a+284>>2],J[a+288>>2],J[a+292>>2],J[a+296>>2],63987);break d;default:Ld(a,65051);B();case 1:break e}e=63994; +c=zx(a+212|0,J[a+300>>2],J[a+304>>2],J[a+308>>2],J[a+312>>2],J[a+316>>2],63987)}if(!c)break a}e=Ar(d,64,Ar(d,64,0,65162),e);b=c+6|0;if(b>>>0<=4)b=J[(b<<2)+69028>>2];else b=65422;Ar(d,64,e,b);Ld(a,d);B()}J[a+276>>2]=b|4;fc=d- -64|0;return}Ld(a,65528);B()}function Z$(a,b){var c=0,d=0,e=0,f=0;c=fc-80|0;fc=c;J[c+64>>2]=13;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;a:{if(J[Ec(J[b+8>>2],798515,c- -64|0,0)>>2]==6){b=J[c+72>>2];if(J[b+12>>2]<=0)break a;while(1){e=b;b=c+48|0;if(J[Sc(e,d,b,0)>>2]== +7)Z$(a,b);yc(c+48|0);d=d+1|0;b=J[c+72>>2];if((d|0)>2])continue;break}break a}b:{if(J[Ec(J[b+8>>2],782163,c+32|0,0)>>2]!=6)break b;d=J[c+40>>2];if(J[d+12>>2]<2)break b;b=0;e=1;while(1){f=b;b=c+16|0;Sc(d,f,b,0);Sc(J[c+40>>2],e,c,0);S$(a,c,b);yc(b);yc(c);b=e;e=b+1|0;d=J[c+40>>2];if((e|0)>2])continue;break}}yc(c+32|0)}yc(c- -64|0);fc=c+80|0}function Cla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;kc[J[J[a>>2]+8>>2]](a,7);e=J[a+12>>2];J[a+12>>2]=e+4;J[e>>2]=35;f=J[a+16>>2];J[a+16>> +2]=f+1;g=K[b|0];J[a+12>>2]=e+8;J[e+4>>2]=J[(g>>>2&60)+2463936>>2];J[a+16>>2]=f+2;b=K[b|0];J[a+12>>2]=e+12;J[e+8>>2]=J[((b&15)<<2)+2463936>>2];J[a+16>>2]=f+3;b=K[c|0];J[a+12>>2]=e+16;J[e+12>>2]=J[(b>>>2&60)+2463936>>2];J[a+16>>2]=f+4;b=K[c|0];J[a+12>>2]=e+20;J[e+16>>2]=J[((b&15)<<2)+2463936>>2];J[a+16>>2]=f+5;b=K[d|0];J[a+12>>2]=e+24;J[e+20>>2]=J[(b>>>2&60)+2463936>>2];J[a+16>>2]=f+6;b=K[d|0];J[a+12>>2]=e+28;J[e+24>>2]=J[((b&15)<<2)+2463936>>2];J[a+16>>2]=f+7}function vfa(a){a=a|0;if(K[2797752])return J[699437]; +if(!K[2798848])H[2798848]=1;yf(2798560,2639016);yf(2798572,2639048);yf(2798584,2639084);yf(2798596,2639108);yf(2798608,2639132);yf(2798620,2639148);yf(2798632,2639168);yf(2798644,2639188);yf(2798656,2639216);yf(2798668,2639256);yf(2798680,2639288);yf(2798692,2639324);yf(2798704,2639360);yf(2798716,2639376);yf(2798728,2639392);yf(2798740,2639408);yf(2798752,2639132);yf(2798764,2639424);yf(2798776,2639440);yf(2798788,2639456);yf(2798800,2639472);yf(2798812,2639488);yf(2798824,2639504);yf(2798836,2639520); +H[2797752]=1;J[699437]=2798560;return 2798560}function bQa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+4>>2]=b;J[a>>2]=2342900;J[a>>2]=2317872;J[699344]=0;b=_(4,16)|0;c=J[699344];J[699344]=0;a:{b:{if((c|0)!=1){c=J[a+4>>2];J[699344]=0;c=ga(3623,b|0,c|0,3)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[a+96>>2]=0;J[a+76>>2]=0;J[a+8>>2]=c;J[a+12>>2]=0;J[a+16>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+124>>2]=0;J[a+128>>2]= +0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+200>>2]=0;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+216>>2]=0;return a|0}a=Z()|0;break a}a=Z()|0;uc(b)}ba(a|0);B()}function a9a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;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;a:{if((e|0)<=0)break a;i=J[a+112>>2];if(!i)break a;g=J[a+332>>2];a=J[a+476>>2];k=J[a+20>>2];l=J[a+16>>2];m=J[a+12>>2];n=J[a+8>>2];while(1){o=c+1|0;p=e-1|0;a=c<<2;q=J[a+J[b+8>>2]>>2];r=J[a+J[b+4>>2]>>2];s=J[a+J[b>>2]>>2];c=J[d>>2];a=0; +while(1){f=K[a+r|0];h=K[a+s|0];j=K[a+q|0]<<2;H[c|0]=K[h+(J[j+n>>2]+g|0)|0];f=f<<2;H[c+1|0]=K[((J[l+j>>2]+J[f+k>>2]>>16)+g|0)+h|0];H[c+2|0]=K[(J[f+m>>2]+g|0)+h|0];c=c+3|0;a=a+1|0;if((i|0)!=(a|0))continue;break}d=d+4|0;a=(e|0)>1;e=p;c=o;if(a)continue;break}}}function SPa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=2319256;a:{b:{c:switch(J[b>>2]-3|0){case 1:c=vc(8);b=J[b+8>>2];J[699344]=0;b=aa(3349,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+8>>2]=b;return a|0;case 0:b= +J[b+8>>2];c=vc(8);J[699344]=0;b=aa(3350,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+8>>2]=b;return a|0;case 3:c=vc(72);b=J[b+8>>2];J[699344]=0;b=aa(3550,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+4>>2]=b;if(J[b+68>>2])break b;uc(b);J[a+4>>2]=0;return a|0}break a;default:break c}Cc(0,-1,805666,0)}return a|0}a=Z()|0;uc(c);ba(a|0);B()}function tia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=fc-144|0;fc=f;J[f+136>>2]=37;J[f+140>>2]=0;h=f+136|0;Gp(h|1,10141,1, +J[c+4>>2]);g=gh();J[f>>2]=e;a=f+123|0;e=Di(a,13,g,h,f)+a|0;i=fk(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[699344]=0;g=f+16|0;ua(6880,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)kc[J[J[a>>2]+8>>2]](a);a=Qs(b,g,J[f+12>>2],J[f+8>>2],c,d);fc=f+144|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function qia(a,b,c,d,e){a=a|0;b=b|0;c=c| +0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=fc-144|0;fc=f;J[f+136>>2]=37;J[f+140>>2]=0;h=f+136|0;Gp(h|1,10141,0,J[c+4>>2]);g=gh();J[f>>2]=e;a=f+123|0;e=Di(a,13,g,h,f)+a|0;i=fk(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[699344]=0;g=f+16|0;ua(6880,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)kc[J[J[a>>2]+8>>2]](a);a=Qs(b,g,J[f+12>>2],J[f+8>>2],c,d);fc=f+144|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>> +2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function I0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-48|0;fc=d;a:{if((b|0)>5)break a;J[d+32>>2]=13;a=J[a+8>>2];f=kc[J[J[a>>2]+76>>2]](a)|0;a=d+32|0;if(J[Ec(f,809102,a,0)>>2]!=7){yc(a);break a}if(J[Ec(J[d+40>>2],809399,c,0)>>2]==7){yc(d+32|0);e=1;break a}J[d+16>>2]=13;b:{c:{if(J[Ec(J[d+40>>2],809752,d+16|0,0)>>2]!=7)break c;a=J[J[d+24>>2]+16>>2];if((a|0)<=0)break c;b=b+1|0;while(1){J[d>>2]=13;d:{if(J[aq(J[d+24>>2],e,d)>>2]!=8){yc(d); +break d}f=I0(d,b,c);yc(d);if(f)break b}e=e+1|0;if((a|0)!=(e|0))continue;break}}yc(d+16|0);yc(d+32|0);e=0;break a}yc(d+16|0);yc(d+32|0);e=1}fc=d+48|0;return e|0}function fma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=O[a+96>>3];f=O[b+96>>3];h=e>f;a:{if(h){c=1;if(O[a+104>>3]>3])break a}b:{if(!(e>3];g=O[b+104>>3];c=2;if(d>g)break a;if(!(d=f)break a}c:{if(!h)break c;d=O[b+104>>3];if(!(d>3]))break c;c=4;if(R(e-d)<.02|d>=e)break a}if(!(e!= +f|O[a+104>>3]!=O[b+104>>3]|O[a+32>>3]!=O[b+32>>3])){c=5;if(O[a+40>>3]==O[b+40>>3])break a}g=O[a+104>>3];i=O[b+104>>3];d=R(g-i);if(R(e-f)<.02){c=6;if(d<.02)break a;return 7}c=8;if(d<.02)break a;c=9;if(f>g)break a;c=e>i?10:0}return c|0}function eGa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;h=a,i=Rc(J[a+20>>2]-12|0),J[h+20>>2]=i;a:{b:{b=J[a+28>>2];c:{if(!b)break c;J[d+4>>2]=64;c=d+4|0;kc[J[J[b>>2]+308>>2]](b,c)|0;b=J[a+28>>2];J[d+4>>2]=64;kc[J[J[b>>2]+312>>2]](b,c)|0;b=J[a+20>>2]-J[a+ +16>>2]|0;if((b|0)<=0)break c;e=a+16|0;b=(b>>>0)/12|0;f=b>>>0<=1?1:b;b=0;while(1){c=J[a+16>>2];if((J[a+20>>2]-c|0)/12>>>0<=b>>>0)break b;c=Im(d+4|0,c+P(b,12)|0);J[699344]=0;da(5139,a|0,c|0);g=J[699344];J[699344]=0;if((g|0)==1)break a;Rc(c);b=b+1|0;if((f|0)!=(b|0))continue;break}}fc=d+16|0;return}my(e);B()}a=Z()|0;Rc(c);ba(a|0);B()}function Z2(a){a=a|0;var b=0,c=0;a:{c=J[a+8>>2];if(!c)break a;b=J[c>>2];if(b)Oe(b);b=J[c+4>>2];if(b)Oe(b);b=J[c+8>>2];if(b)Oe(b);b=J[c+12>>2];if(b)Oe(b);b=J[c+16>>2];if(b)Oe(b); +b=J[c+20>>2];if(b)Oe(b);b=J[c+24>>2];if(b)Oe(b);b=J[c+28>>2];if(b)Oe(b);b=J[c+32>>2];if(b)Oe(b);b=J[c+36>>2];if(b)Oe(b);b=J[c+40>>2];if(b)Oe(b);b=J[c+44>>2];if(b)Oe(b);b=J[c+48>>2];if(b)Oe(b);b=J[c+52>>2];if(b)Oe(b);b=J[c+56>>2];if(b)Oe(b);b=J[c+60>>2];if(b)Oe(b);b=J[c+64>>2];if(b)Oe(b);b=J[c+68>>2];if(b)Oe(b);b=J[c+72>>2];if(b)Oe(b);c=J[c+76>>2];if(c)Oe(c);if(K[a+34|0])break a;Nf(J[a+8>>2]);J[a+8>>2]=0}}function Ttb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(K[b+32|0])return Ce(a,J[b>>2],0, +0)|0;if(K[b+33|0])return Ce(a,J[b>>2],J[b+304>>2],b+308|0)|0;d=J[a+428>>2];f=d+8|0;a:{b:{c:switch(K[b+34|0]){case 2:c=L[b+298>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+300>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;c=b+302|0;g=13;e=6;h=d+12|0;break b;case 3:d=J[b+36>>2];if(!d)break a;c=f;while(1){H[c|0]=K[(b+e|0)+40|0];c=c+1|0;e=e+1|0;if(e>>>0>2])continue;break}e=d;break a;case 0:break c;default:break a}c=b+296|0;g=9;e=2;h=f}c=L[c>>1];H[h|0]=c>>>8;H[d+g|0]=c}return Ce(a,J[b>>2],e, +f)|0}function Jr(a,b){var c=0,d=0,e=0;c=fc-16|0;fc=c;H[c+8|0]=0;a:{if(a){d=ge(c+8|0,1,2,a);e=K[c+8|0]|K[c+9|0]<<8;I[b>>1]=(d|0)!=2?-1:e<<8|e>>>8;H[c+10|0]=0;d=ge(c+10|0,1,2,a);e=K[c+10|0]|K[c+11|0]<<8;I[b+2>>1]=(d|0)!=2?-1:e<<8|e>>>8;H[c+12|0]=0;d=ge(c+12|0,1,2,a);e=K[c+12|0]|K[c+13|0]<<8;I[b+4>>1]=(d|0)!=2?-1:e<<8|e>>>8;H[c+14|0]=0;d=65535;if((ge(c+14|0,1,2,a)|0)!=2)break a;d=K[c+14|0]|K[c+15|0]<<8;d=d<<8|d>>>8;break a}I[b+4>>1]=65535;I[b>>1]=65535;I[b+2>>1]=65535;d=65535}I[b+6>>1]=d;d=0;if(J[a+ +76>>2]<0)a=J[a>>2];else a=J[a>>2];if(!(a>>>4&1|I[b+4>>1]>1]))d=I[b+6>>1]>=I[b+2>>1];fc=c+16|0;return d}function IBa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{e=J[b+156>>2];b:{if(e)while(1){d=0;f=J[e+8>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;d=J[e+8>>2]}J[a>>2]=d;if(J[d+8>>2]==J[J[c>>2]+8>>2])break b;J[a>>2]=0;J[699344]=0;f=J[d+4>>2]-1|0;J[d+4>>2]=f;g=J[699344];J[699344]=0;if((g|0)==1)break a;if(!f){J[699344]=0;$(5147,d|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}e=J[e>>2];if(e)continue;break}d= +vc(12);J[d>>2]=0;J[d+4>>2]=0;e=J[c>>2];if(e){J[e+4>>2]=J[e+4>>2]+1;g=J[c>>2]}else g=0;J[d+8>>2]=g;vf(b+148|0,d);b=J[c>>2];if(b){J[b+4>>2]=J[b+4>>2]+1;b=J[c>>2]}else b=0;J[a>>2]=b}return}ea(0)|0;Bc();B()}function G6a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+8>>2];f=a+12|0;if((c|0)!=(f|0)){g=b+4|0;while(1){d=J[c+28>>2];a:{if((mj(b,c+16|0)|0)!=(g|0)){if(d)kc[J[J[d>>2]+12>>2]](d)|0;d=c;e=J[c+4>>2];b:{if(e)while(1){d=e;e=J[d>>2];if(e)continue;break b}while(1){e=d;d=J[d+8>>2];if((e|0)!=J[d>>2])continue; +break}}if(J[a+8>>2]==(c|0))J[a+8>>2]=d;J[a+16>>2]=J[a+16>>2]-1;ED(J[a+12>>2],c);if(H[c+27|0]<0)uc(J[c+16>>2]);uc(c);c=d;break a}e=c;d=J[c+4>>2];if(d)while(1){c=d;d=J[c>>2];if(d)continue;break a}while(1){c=J[e+8>>2];d=J[c>>2]!=(e|0);e=c;if(d)continue;break}}if((c|0)!=(f|0))continue;break}}}function jWa(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;a:{if(c-5>>>0<4294967292|(b|0)>2147482623|(b|c)<0)break a;e=J[a+1032>>2];if(!((e|0)<=(b|0)&(b+c|0)<=(e+J[a+1036>>2]|0))){if(hh(J[a+4>>2], +b,0))break a;J[a+1032>>2]=b;e=ge(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=e;if((c|0)>(e|0))break a}J[d>>2]=0;h=1;i=c&1;e=0;if((c|0)!=1){j=c&-2;c=0;while(1){g=a+8|0;c=K[g+((b+e|0)-J[a+1032>>2]|0)|0]|c<<8;J[d>>2]=c;c=K[(((e|1)+b|0)-J[a+1032>>2]|0)+g|0]|c<<8;J[d>>2]=c;e=e+2|0;f=f+2|0;if((j|0)!=(f|0))continue;break}f=c<<8}if(!i)break a;J[d>>2]=K[(((b+e|0)-J[a+1032>>2]|0)+a|0)+8|0]|f}return h|0}function oG(a,b,c){var d=0,e=0;d=fc-16|0;fc=d;J[d+8>>2]=b;J[d+12>>2]=a;J[d+4>>2]=c;e=O[b>>3];b=e>O[c>>3];fc=d+16| +0;a:{b:{if(!(e>3])){a=0;if(!b)break a;c=d+8|0;a=J[c>>2];e=O[a>>3];b=a;a=J[d+4>>2];O[b>>3]=O[a>>3];O[a>>3]=e;b=J[d+12>>2];a=1;if(!(O[J[d+8>>2]>>3]>3]))break a;e=O[b>>3];a=J[c>>2];O[b>>3]=O[a>>3];O[a>>3]=e;break b}if(b){a=J[d+12>>2];e=O[a>>3];b=a;a=J[d+4>>2];O[b>>3]=O[a>>3];O[a>>3]=e;a=1;break a}a=J[d+12>>2];e=O[a>>3];b=a;c=d+8|0;a=J[c>>2];O[b>>3]=O[a>>3];O[a>>3]=e;b=J[d+4>>2];a=1;if(!(O[b>>3]>2]>>3]))break a;a=J[c>>2];e=O[a>>3];O[a>>3]=O[b>>3];O[b>>3]=e}a=2}return a}function UMa(a){a= +a|0;var b=0,c=0,d=0,e=0;a:{b:{if(J[a+12>>2]?J[a+8>>2]:1){b=-1;d=J[a+3504>>2];if((d|0)>=J[a+20>>2])break b;c=J[a+3496>>2];e=J[a+3500>>2];b=J[(J[((c<<2)+a|0)+3480>>2]+(P(d,J[a+32>>2])<<2)|0)+(e<<2)>>2];c=c+1|0;J[a+3496>>2]=c;if((c|0)!=J[a+188>>2])break b;J[a+3496>>2]=0;c=e+1|0;J[a+3500>>2]=c;if((c|0)!=J[a+16>>2])break b;J[a+3500>>2]=0;J[a+3504>>2]=d+1;return b|0}b=J[a+3472>>2];if((b|0)==J[a+3476>>2]){b=-1;d=J[a+28>>2]+J[a+3504>>2]|0;if((d|0)>=J[a+20>>2])break b;J[a+3504>>2]=d;if(!XI(a))break a;b=J[a+ +3472>>2]}J[a+3472>>2]=b+1;b=K[b|0]}return b|0}J[a+3504>>2]=J[a+20>>2];return-1}function Gia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=fc+-64|0;fc=f;J[f+56>>2]=37;J[f+60>>2]=0;h=f+56|0;Gp(h|1,10141,1,J[c+4>>2]);g=gh();J[f>>2]=e;a=f+43|0;e=Di(a,13,g,h,f)+a|0;i=fk(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[699344]=0;g=f+16|0;ua(6868,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)kc[J[J[a>> +2]+8>>2]](a);a=Rs(b,g,J[f+12>>2],J[f+8>>2],c,d);fc=f- -64|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function Cia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=fc+-64|0;fc=f;J[f+56>>2]=37;J[f+60>>2]=0;h=f+56|0;Gp(h|1,10141,0,J[c+4>>2]);g=gh();J[f>>2]=e;a=f+43|0;e=Di(a,13,g,h,f)+a|0;i=fk(a,e,c);h=f+4|0;g=J[c+28>>2];J[h>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[699344]=0;g=f+16|0;ua(6868,a|0,i|0,e|0,g|0,f+12|0,f+8|0,h|0); +a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[h>>2];e=J[a+4>>2]-1|0;J[a+4>>2]=e;if((e|0)==-1)kc[J[J[a>>2]+8>>2]](a);a=Rs(b,g,J[f+12>>2],J[f+8>>2],c,d);fc=f- -64|0;break a}c=Z()|0;a=J[f+4>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return a|0}function t6(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(H[a+741|0]&1){g=J[a+736>>2];d=J[g+56>>2];b=L[d>>1];if(b){c=J[d+24>>2];h=c+P(b,12)|0;while(1){b=i6(a,J[c>>2]);d=NM(a,J[g+56>>2]+4|0,L[c+4>>1],L[c+6>>1]);a:{if(!b)break a; +I[b>>1]=d+L[c+8>>1];b=J[c>>2];if((b|0)==1751216995){e=d;break a}if((b|0)!=1751934832){if((b|0)!=1751413603)break a;f=d;break a}i=d}c=c+12|0;if(h>>>0>c>>>0)continue;break}}d=L[a+72>>1];f=d+f|0;I[a+72>>1]=f;b=e;e=L[a+70>>1];c=b+e|0;I[a+70>>1]=c;b=I[a+486>>1];I[a+82>>1]=b;I[a+80>>1]=L[a+484>>1]+((b|0)/-2|0);I[a+74>>1]=(c+(d+((L[a+74>>1]+i|0)-e|0)|0)|0)-f;M7(a+108|0,1722)}}function cTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if((d|0)<=0)break a; +gg(c);c=J[b+596>>2];c=J[(J[c+24>>2]+(J[c+28>>2]<<2)|0)-4>>2];d=J[c+12>>2]<<3;O[b+600>>3]=O[(d+J[c>>2]|0)-8>>3];O[b+608>>3]=O[(d+J[c+4>>2]|0)-8>>3];if(!J[a+100>>2])break a;b=J[J[a+28>>2]+120>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==10){bu(a);break a}b=J[a+8>>2];kc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2];kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;_f(b)}}function c1(a){var b=0,c=0,d=0,e= +0,f=0,g=0,h=0,i=0;a:{b=J[a+352>>2];if(!b)break a;e=a;b:{if(!b|!J[b>>2])break b;c=J[b+4>>2];if((c|0)<=0)break b;while(1){h=P(g,24);d=J[b>>2];a=h+d|0;if(!(!J[a+20>>2]|!d)){d=J[b+8>>2];while(1){f=d;c=J[a>>2];i=J[a+16>>2];if(i){b1(i,e,J[a+4>>2],J[a+8>>2],J[a+12>>2]);d=J[b+8>>2]}c:{d:{if((d|0)==(f|0)){a=c;break d}f=J[b>>2]+h|0;if((f|0)!=(a|0)){a=c;break d}if((c|0)!=J[a>>2])break d;if(!J[f+20>>2])break c}if(a)continue}break}c=J[b+4>>2]}g=g+1|0;if((g|0)<(c|0))continue;break}}a=J[e+352>>2];if(a)a=J[a+8>> +2];else a=-1;if(a)break a;Xo(J[e+352>>2],0);J[e+352>>2]=0}}function MZ(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;J[a>>2]=2347640;f=J[a+4>>2];J[699344]=0;da(3614,f|0,e+12|0);c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;while(1){J[699344]=0;c=cj(f,e+12|0,e+8|0,e+4|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(c){c=J[e+4>>2];if(!c)continue;b=J[c>>2];if(b)uc(Zc(b));b=J[c+4>>2];if(b)uc(Zc(b));b=J[c+8>>2];if(b)uc(Zc(b));b=J[c+12>>2];if(b)uc(b);b=J[c+16>>2];if(b){d=J[b+4>>2];if(d)uc(Zc(d));uc(b)}b= +J[c+20>>2];if(b){d=J[b>>2];if(d)uc(Zc(d));d=J[b+40>>2];if(d)uc(Zc(d));uc(b)}uc(c);continue}break}uc(Sh(f));fc=e+16|0;return a|0}ea(0)|0;Bc();B()}function Jc(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;if(!a)return 1;J[a+144>>2]=d;J[a+140>>2]=c;J[a+132>>2]=b;g=44;e=88;a:{b:{while(1){h=J[(g<<3)+215024>>2];c:{if((h|0)<(b|0)){f=g+1|0;break c}if((b|0)>=(h|0))break b;e=g-1|0}g=e+f>>1;if((e|0)>=(f|0))continue;break}g=212804;break a}g=J[(g<<3)+215028>>2]}J[a+148>>2]=g;f=0;d:{if(!b)break d;e:{e=b& +15360;if((e|0)!=8192){if((e|0)!=4096){if((e|0)!=2048)break e;f=5;break d}f=2;break d}f=1;break d}f=9}H[a+136|0]=f;e=1;f:{if(J[a>>2]!=1381173770)break f;h=J[a+180>>2];if(!h)break f;e=kc[h|0](a,b,f,J[a+268>>2],J[a+272>>2],c,d,g)|0}return e|0}function DEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;QA(a);a:{if(!lk(b))break a;f=ql(b);e=J[J[a+12>>2]+((f>>>0)%M[a+8>>2]<<2)>>2];if(!e)break a;while(1){b:{if((f|0)==J[e+12>>2])if(Bm(e+16|0,b))break b;e=J[e+8>>2];if(e)continue;break a}break}J[d+ +12>>2]=a;J[d+8>>2]=e;J[d>>2]=0;J[d+4>>2]=0;f=e+52|0;b=0;while(1){c:{d:{e:{if(b){if((f|0)==J[d+4>>2])break e;xj(d,f);B()}b=J[e+60>>2];if(!b)break d}g=J[c>>2];while(1){if(J[b+8>>2]==(g|0))break c;b=J[b>>2];if(b)continue;break}}if(J[e+56>>2])break a;Tp(a,d+8|0);break a}J[d+4>>2]=f;J[d>>2]=b;Do(f,d);b=J[d>>2];continue}}fc=d+16|0}function cm(a,b){var c=0,d=0,e=0;a:{d=K[b|0];if((d|0)!=255){if((d|0)!=30)break a;return iE(a,b,0,0)>>16}return((K[b+3|0]|(K[b+2|0]<<8|K[b+1|0]<<16))<<8)+32768>>16}e=b+1|0;b:{c:switch(d- +28|0){case 0:c=0;if(M[a+8>>2]<=b+2>>>0)break b;return(K[b+2|0]|K[e|0]<<8)<<16>>16;case 1:c=0;if(M[a+8>>2]<=b+4>>>0)break b;a=K[b+1|0]|K[b+2|0]<<8|(K[b+3|0]<<16|K[b+4|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);default:break c}if(d>>>0<=246)return d-139|0;a=J[a+8>>2];if(d>>>0<=250){c=0;if(a>>>0<=e>>>0)break b;return(K[e|0]|d<<8)-63124|0}c=0;if(a>>>0<=e>>>0)break b;c=64148-(K[e|0]|d<<8)|0}return c}function wG(a,b,c,d,e){var f=0,g=0,h=0,i=0;f=fc-208|0;fc=f;J[f+204>>2]=c;c=f+160|0;Ac(c,0,40); +J[f+200>>2]=J[f+204>>2];a:{if((OS(0,b,f+200|0,f+80|0,c,d,e)|0)<0){e=-1;break a}i=J[a+76>>2]<0;g=J[a>>2];J[a>>2]=g&-33;b:{c:{d:{if(!J[a+48>>2]){J[a+48>>2]=80;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;h=J[a+44>>2];J[a+44>>2]=f;break d}if(J[a+16>>2])break c}c=-1;if(KG(a))break b}c=OS(a,b,f+200|0,f+80|0,f+160|0,d,e)}if(h){kc[J[a+36>>2]](a,0,0)|0;J[a+48>>2]=0;J[a+44>>2]=h;J[a+28>>2]=0;b=J[a+20>>2];J[a+16>>2]=0;J[a+20>>2]=0;c=b?c:-1}b=a;a=J[a>>2];J[b>>2]=a|g&32;e=a&32?-1:c;if(i)break a}fc=f+208|0;return e} +function v_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{if((e|0)<=0)break a;k=J[a+28>>2];if(!k)break a;g=J[J[a+408>>2]+8>>2];while(1){l=e-1|0;a=d<<2;m=J[a+J[c+8>>2]>>2];n=J[a+J[c+4>>2]>>2];o=J[a+J[c>>2]>>2];a=J[b>>2];f=0;while(1){h=(K[a+2|0]<<2)+g|0;i=(K[a+1|0]<<2)+g|0;j=(K[a|0]<<2)+g|0;H[f+o|0]=J[h+2048>>2]+(J[i+1024>>2]+J[j>>2]|0)>>>16;H[f+n|0]=J[h+5120>>2]+(J[i+4096>>2]+J[j+3072>>2]|0)>>>16;H[f+m|0]=J[h+7168>>2]+(J[i+6144>>2]+J[j+5120>>2]|0)>>>16;a= +a+3|0;f=f+1|0;if((k|0)!=(f|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=l;if(a)continue;break}}}function vS(a,b,c,d,e){var f=0,g=0,h=0;f=fc-32|0;fc=f;J[f+24>>2]=b;J[f+28>>2]=a;J[f+20>>2]=c;J[f+16>>2]=d;J[f+12>>2]=e;g=tS(a,b,c,d);a:{if(!(O[e>>3]>3]))break a;d=J[f+16>>2];h=O[d>>3];e=d;d=J[f+12>>2];O[e>>3]=O[d>>3];O[d>>3]=h;if(!(O[J[f+16>>2]>>3]>3])){g=g+1|0;break a}c=J[f+20>>2];h=O[c>>3];d=c;c=J[f+16>>2];O[d>>3]=O[c>>3];O[c>>3]=h;if(!(O[J[f+20>>2]>>3]>3])){g=g+2|0;break a}b=J[f+24>> +2];h=O[b>>3];c=b;b=J[f+20>>2];O[c>>3]=O[b>>3];O[b>>3]=h;if(!(O[J[f+24>>2]>>3]>3])){g=g+3|0;break a}g=g+4|0;a=J[f+28>>2];h=O[a>>3];b=a;a=J[f+24>>2];O[b>>3]=O[a>>3];O[a>>3]=h}fc=f+32|0;return g}function cQa(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;if((c|0)<=0)return 0;d=J[a+64>>2]-J[a+60>>2]|0;f=(c|0)>(d|0)?d:c;a:{if((d|0)<=0)break a;d=(f|0)<=1?1:f;g=d&3;c=0;if(d>>>0>=4){i=d&2147483644;d=0;while(1){e=J[a+60>>2];J[a+60>>2]=e+1;H[b+c|0]=K[e|0]^-1;e=J[a+60>>2];J[a+60>>2]=e+1;H[(c|1)+b| +0]=K[e|0]^-1;e=J[a+60>>2];J[a+60>>2]=e+1;H[(c|2)+b|0]=K[e|0]^-1;e=J[a+60>>2];J[a+60>>2]=e+1;H[(c|3)+b|0]=K[e|0]^-1;c=c+4|0;d=d+4|0;if((i|0)!=(d|0))continue;break}}if(!g)break a;while(1){d=J[a+60>>2];J[a+60>>2]=d+1;H[b+c|0]=K[d|0]^-1;c=c+1|0;h=h+1|0;if((h|0)!=(g|0))continue;break}}return f|0}function Rkb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=J[a+16>>2];a=K[c+12|0]|K[c+13|0]<<8|(K[c+14|0]<<16|K[c+15|0]<<24);a=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);if(a){g=c+16|0;while(1){e=a+f>>>1|0;c=P(e, +12)+g|0;d=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);b:{if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>b>>>0){a=e;break b}d=K[c+4|0]|K[c+5|0]<<8|(K[c+6|0]<<16|K[c+7|0]<<24);if((d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24))>>>0>=b>>>0)break a;f=e+1|0}if(a>>>0>f>>>0)continue;break}}return 0}a=K[c+8|0]|K[c+9|0]<<8|(K[c+10|0]<<16|K[c+11|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}function uxa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;a:{b:{c:{if(J[a+116>>2]<=0){e=J[a+120>>2]; +if((e|0)>=0)break c}a=Qc(d+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=J[a+104>>2];g=J[a+108>>2];b=J[f-(g<<2)>>2];c=1;a=J[a+92>>2];if((a|0)>1)while(1){if((c|0)>(e|0)){a=Qc(d+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}h=J[(c-g<<2)+f>>2];b=(b|0)>(h|0)?b:h;c=c+1|0;if((a|0)!=(c|0))continue;break}fc=d+32|0;return b+1|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function sxa(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;a:{b:{c:{if(J[a+140>>2]<=0){e=J[a+144>>2];if((e|0)>=0)break c}a=Qc(d+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=J[a+128>>2];g=J[a+132>>2];b=J[f-(g<<2)>>2];c=1;a=J[a+92>>2];if((a|0)>1)while(1){if((c|0)>(e|0)){a=Qc(d+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}h=J[(c-g<<2)+f>>2];b=(b|0)>(h|0)?b:h;c=c+1|0;if((a|0)!= +(c|0))continue;break}fc=d+32|0;return b+1|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function nP(a,b){var c=0,d=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;c:{if((d|0)<=0){if((bd(a,b&255)|0)!=-1)break c;break b}J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]= +d-1;d:{if((d|0)<=0){if((bd(a,b>>>8&255)|0)!=-1)break d;break b}J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b>>>8}c=0}return c}J[a+8>>2]=d|4;return-1}function _Ma(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;if((c|0)<=0)return 0;a:{while(1){i=J[a+68>>2];if((i|0)>=J[a+20>>2]){if(J[a+40>>2])break a;if(!$I(a))break a;i=J[a+68>>2]}e=J[a+72>>2];j=e&1?0:255;l=J[a+60>>2];d=J[l+(e<<2)>>2]-i|0;b:{if((d|0)>8){f=j;break b}m=J[a+20>>2];f=0;g=8;while(1){k=(d|0)<(g|0)? +d:g;f=f<>>8-k;g=g-k|0;d=d-k|0;if(!d){d=(e<<2)+l|0;if(J[d>>2]>=(m|0)){f=f<>2]=e;d=J[(e<<2)+l>>2]-J[d>>2]|0;j=j^255}if((g|0)>0)continue;break}}J[a+68>>2]=i+8;H[b+h|0]=J[a+36>>2]^f;h=h+1|0;if((h|0)!=(c|0))continue;break}h=c}return h|0}function Kh(a,b){var c=0,d=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;c:{if((d|0)<=0){if((bd(a,b>>>8&255)|0)!=-1)break c;break b}J[a+ +60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=b>>>8}c=-1;d=J[a+8>>2];if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;J[a+4>>2]=J[a+4>>2]|32;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)<=0){if((bd(a,b&255)|0)!=-1)break d;break b}J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b}c=0}return c}J[a+8>>2]=d|4;return-1}function D$(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2216908;b=J[a+1048>>2];c=0;a:{if(!b)break a;d=J[a+1044>>2];c=b;if((d|0)<=0)break a;while(1){b=J[J[a+ +1048>>2]+(e<<2)>>2];if(b){kc[J[J[b>>2]+4>>2]](b);d=J[a+1044>>2]}e=e+1|0;if((e|0)<(d|0))continue;break}c=J[a+1048>>2]}b=c;J[699344]=0;Mc(b);b=J[699344];J[699344]=0;b:{if((b|0)==1)break b;b=J[a+1052>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[a+1056>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break b;b=J[a+1060>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break b;return a|0}ea(0)|0;Bc();B()}function z6a(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];d=a+12| +0;if((b|0)!=(d|0))while(1){c=J[b+28>>2];if(c)kc[J[J[c>>2]+12>>2]](c)|0;c=J[b+4>>2];a:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break a}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}Gx(a+8|0,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0;b:{if(!J[a+32>>2]|J[a+36>>2]==-1)break b;b=J[a+28>>2];c=J[b>>2];d=J[J[a+24>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+32>>2]=0;c=a+24|0;if((c|0)==(b|0))break b;while(1){a=J[b+4>>2];if(H[b+19|0]<0)uc(J[b+8>>2]);uc(b);b=a;if((c| +0)!=(b|0))continue;break}}}function HI(a){var b=0,c=0,d=0,e=0;a:{b:{c:{b=J[a+32>>2];c=J[a+36>>2];if(b>>>0>=c>>>0)break c;d:switch(K[b|0]-34|0){case 0:case 5:break d;default:break c}d=b+1|0;J[a+32>>2]=d;e=K[b|0];b=d;e:{if(c>>>0<=b>>>0)break e;while(1){if(K[b|0]==(e|0))break e;b=b+1|0;J[a+32>>2]=b;if((b|0)!=(c|0))continue;break}b=c}c=vc(8);J[699344]=0;b=ga(3348,c|0,d|0,b-d|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;c=J[a+32>>2];if(c>>>0>=M[a+36>>2]|K[c|0]!=(e|0))break a;J[a+32>>2]=c+1;break a}c= +vc(8);J[699344]=0;b=_(3351,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break a}a=Z()|0;uc(c);ba(a|0);B()}return b}function HG(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=2469360;h=K[a|0]?a:2469360;while(1){d=b;f=0;a=h;c=K[a|0];a:{b:{if(!c)break b;while(1){g=K[d|0];if(!g){f=c;break b}c:{d:{while(1){if((c|32)-124>>>0>4294967268|c-59>>>0>4294967284)break d;c=K[a+1|0];e=a+1|0;a=e;if(c)continue;break}c=0;break c}e=a}a=1;if((c|32)!=(g|0))break a;d=d+1|0;a=e+1|0;c=K[e+1|0];if(c)continue;break}}a=K[d|0]!=(f&255)}if(!a){while(1){b= +(Yc(b)+b|0)+1|0;if(K[b|0])continue;break}return b-2469359|0}b=(Yc(b)+b|0)+1|0;a=K[b|0];if(!a){a=K[b+1|0];b=((a>>>0<=128?P(64-a|0,5):0)+b|0)+2|0;a=K[b|0]}if(a&255)continue;break}return-1}function vxa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;a:{b:{c:{if(J[a+116>>2]<=0){e=J[a+120>>2];if((e|0)>=0)break c}a=Qc(d+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=J[a+104>>2];g=J[a+108>>2];b=J[f-(g<<2)>>2];c=1;a=J[a+92>>2];if((a| +0)>1)while(1){if((c|0)>(e|0)){a=Qc(d+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}h=J[(c-g<<2)+f>>2];b=(b|0)<(h|0)?b:h;c=c+1|0;if((a|0)!=(c|0))continue;break}fc=d+32|0;return b|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function txa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;a:{b:{c:{if(J[a+140>>2]<=0){e=J[a+144>>2];if((e|0)>=0)break c}a=Qc(d+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b| +0)!=1)break b;break a}f=J[a+128>>2];g=J[a+132>>2];b=J[f-(g<<2)>>2];c=1;a=J[a+92>>2];if((a|0)>1)while(1){if((c|0)>(e|0)){a=Qc(d+8|0,2404388,2405416,632,2424656,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}h=J[(c-g<<2)+f>>2];b=(b|0)<(h|0)?b:h;c=c+1|0;if((a|0)!=(c|0))continue;break}fc=d+32|0;return b|0}B()}b=Z()|0;Kc(a);ba(b|0);B()}function qm(a,b,c){var d=0,e=0,f=0,g=0;f=J[a+584>>2];g=J[f+64>>2];e=J[f+68>>2];a:{if(e>>>0>=c>>>0)break a;c=c-e|0;d=b>>>c|g;if(J[a+608>> +2]>=J[a+600>>2])pf(a);e=J[a+604>>2];J[a+604>>2]=e+1;H[e|0]=d;d=J[a+608>>2]+1|0;J[a+608>>2]=d;g=0;e=8;if(c>>>0<9)break a;while(1){c=c-8|0;e=b>>>c|0;if(J[a+600>>2]<=(d|0))pf(a);d=J[a+604>>2];J[a+604>>2]=d+1;H[d|0]=e;d=J[a+608>>2]+1|0;J[a+608>>2]=d;e=8;if(c>>>0>8)continue;break}}d=J[(c<<2)+95808>>2]&b;b=e-c|0;d=d<>2]>=J[a+600>>2])pf(a);b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=d;J[a+608>>2]=J[a+608>>2]+1;d=0;b=8}J[f+68>>2]=b;J[f+64>>2]=d}function l8a(a){a=a|0;a=J[693129];if(a){J[693130]= +a;uc(a)}a=J[693126];if(a){J[693127]=a;uc(a)}a=J[693123];if(a){J[693124]=a;uc(a)}a=J[693120];if(a){J[693121]=a;uc(a)}a=J[693117];if(a){J[693118]=a;uc(a)}a=J[693114];if(a){J[693115]=a;uc(a)}a=J[693111];if(a){J[693112]=a;uc(a)}a=J[693108];if(a){J[693109]=a;uc(a)}a=J[693105];if(a){J[693106]=a;uc(a)}a=J[693102];if(a){J[693103]=a;uc(a)}a=J[693099];if(a){J[693100]=a;uc(a)}a=J[693096];if(a){J[693097]=a;uc(a)}a=J[693093];if(a){J[693094]=a;uc(a)}a=J[693090];if(a){J[693091]=a;uc(a)}a=J[693087];if(a){J[693088]= +a;uc(a)}a=J[693084];if(a){J[693085]=a;uc(a)}}function k8a(a){a=a|0;a=J[693177];if(a){J[693178]=a;uc(a)}a=J[693174];if(a){J[693175]=a;uc(a)}a=J[693171];if(a){J[693172]=a;uc(a)}a=J[693168];if(a){J[693169]=a;uc(a)}a=J[693165];if(a){J[693166]=a;uc(a)}a=J[693162];if(a){J[693163]=a;uc(a)}a=J[693159];if(a){J[693160]=a;uc(a)}a=J[693156];if(a){J[693157]=a;uc(a)}a=J[693153];if(a){J[693154]=a;uc(a)}a=J[693150];if(a){J[693151]=a;uc(a)}a=J[693147];if(a){J[693148]=a;uc(a)}a=J[693144];if(a){J[693145]=a;uc(a)}a= +J[693141];if(a){J[693142]=a;uc(a)}a=J[693138];if(a){J[693139]=a;uc(a)}a=J[693135];if(a){J[693136]=a;uc(a)}a=J[693132];if(a){J[693133]=a;uc(a)}}function h5(a){a=a|0;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;e=fc-16|0;fc=e;f=vc(8);J[699344]=0;_(2250,f|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){g=J[a+4>>2];d=J[f+4>>2];J[d>>2]=0;c=d;b=g;if(J[b>>2]){c=0;while(1){h=c>>>6&67108860;i=c&255;b=J[h+J[g+12>>2]>>2]+(i<<4)|0;j=O[b>>3];k=O[b+8>>3];b=K[J[J[g+16>>2]+h>>2]+i|0];J[e+12>>2]=0;l=Qe(d,e+12|0), +m=b,H[l|0]=m;b=J[e+12>>2];O[b+8>>3]=k;O[b>>3]=j;J[d>>2]=J[d>>2]+1;c=c+1|0;if(c>>>0>2])continue;break}c=J[f+4>>2];b=J[a+4>>2]}J[d+20>>2]=J[g+20>>2];H[c+24|0]=K[b+24|0];H[c+25|0]=K[b+25|0];fc=e+16|0;return f|0}a=Z()|0;uc(f);ba(a|0);B()}function Xt(a){var b=0,c=0,d=0,e=0,f=0;c=J[a+36>>2];if(c){d=J[c+4>>2];b=J[d+8>>2];if((b|0)>0)while(1){f=J[J[d>>2]+(e<<2)>>2];if(f){b=J[f+8>>2];if(b)uc(ld(b));uc(f);b=J[d+8>>2]}e=e+1|0;if((b|0)>(e|0))continue;break}uc(ld(d));b=J[c+8>>2];if(b)uc(dJ(b));uc(c)}e=J[a+ +32>>2];if(e){d=0;c=J[e>>2];if(c){b=J[c+8>>2];if((b|0)>0)while(1){f=J[J[c>>2]+(d<<2)>>2];if(f){uc(yw(f));b=J[c+8>>2]}d=d+1|0;if((b|0)>(d|0))continue;break}uc(ld(c))}uc(e)}b=J[a+28>>2];if(b)uc(W$(b));b=J[a+24>>2];if(b)uc(wB(b));b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+4>>2];if(b)pg(b);b=J[a>>2];if(b)uc(Zc(b));return a}function $_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=fc-16|0;fc=g;a:{if(!a)break a;f=J[a+8>>2];if(!f)break a;e=J[f+12>>2];b:{c:{if(e)while(1){if(J[e+4>>2]==14)break c; +e=J[e+24>>2];if(e)continue;break}e=J[f+44>>2];if(!e)break b}if(J[a+32>>2])break a;Wj(e);Ur(e);f=J[a+8>>2];J[f+44>>2]=0}b=h2(f,b,c,d);J[J[a+8>>2]+44>>2]=b;if(b)break a;J[a+84>>2]=2;c=J[a>>2];b=0;d:{if(!c)break d;b=0;if(J[c+108>>2]!=-554844497)break d;b=J[c+124>>2]}c=J[a+112>>2];d=J[a+108>>2];J[g+4>>2]=0;J[g>>2]=30591;Hc(b,c,d,a,0,1,2,2,30591,0,0,0,3278,g);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2}fc=g+16|0}function mjb(a){a=a|0;var b=0,c=0,d=0,e=0;a:{b:{c:{a=J[J[a+156>>2]>>2];b=J[a+4>>2];if(!(!b|J[a+ +40>>2])){d=b<<1;if((d|0)<0){c=6;break b}if(d){c=10;if(d>>>0>268435455)break b;c=J[a>>2];b=b<<4;c=kc[J[c+4>>2]](c,b)|0;if(!c)break c;Ac(c,0,b)}H[a+16|0]=1;J[a+40>>2]=c;d=(J[a+4>>2]<<3)+c|0;J[a+44>>2]=d;b=J[a+24>>2];if(b)b=b+(I[a+22>>1]<<3)|0;else b=0;J[a+60>>2]=b;e=a- -64|0;b=J[a+28>>2];if(b)b=b+I[a+22>>1]|0;else b=0;J[e>>2]=b;b=J[a+32>>2];if(b)b=b+(I[a+20>>1]<<1)|0;else b=0;J[a+68>>2]=b;b=I[a+22>>1]<<3;J[a+80>>2]=b+d;J[a+76>>2]=b+c}c=0;break a}J[a+40>>2]=c;c=64;break a}J[a+40>>2]=0}return c|0}function bz(a, +b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(!c)break a;while(1){if(K[a|0]&32)break a;e=J[b>>2];f=fc-16|0;fc=f;h=J[698634];if(J[a+72>>2]<=0)AQ(a);J[698634]=J[a+136>>2];b:{c:{d:{if(e>>>0<=127){e:{if(J[a+80>>2]==(e|0))break e;d=J[a+20>>2];if((d|0)==J[a+16>>2])break e;J[a+20>>2]=d+1;H[d|0]=e;break b}e=dt(a,e);break d}d=J[a+20>>2];if(M[a+16>>2]>d+4>>>0){d=zn(d,e);if((d|0)<0)break c;J[a+20>>2]=d+J[a+20>>2];break d}g=f+12|0;d=zn(g,e);if((d|0)<0)break c;if(Lz(g,d,a)>>>0>>0)break c}if((e|0)!=-1)break b}J[a>>2]= +J[a>>2]|32}J[698634]=h;fc=f+16|0;b=b+4|0;c=c-1|0;if(c)continue;break}}}function ML(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;c=fc-32|0;fc=c;J[c+20>>2]=b;d=J[a+4>>2];J[c+16>>2]=b;b=kc[d|0](c+16|0)|0;J[c+24>>2]=J[c+20>>2];g=b&2147483647;f=J[a+28>>2];h=(g^67108864)%(f|0)|0;b=h;e=-1;j=J[a>>2];a:{while(1){d=P(b,12)+j|0;i=J[d>>2];b:{if((i|0)==(g|0)){f=J[a+8>>2];J[c+12>>2]=J[c+24>>2];J[c+8>>2]=J[d+8>>2];d=b;if(kc[f|0](c+12|0,c+8|0)|0)break a;f=J[a+28>>2];break b}if((i|0)>=0)break b;e=(e|0)<0?b:e;d=e; +if((i|0)==-2147483647)break a}if(!k)k=((g|0)%(f-1|0)|0)+1|0;b=(b+k|0)%(f|0)|0;if((h|0)!=(b|0))continue;break}d=(e|0)<0?h:e}fc=c+32|0;return J[(P(d,12)+j|0)+4>>2]}function I$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=vc(44);J[699344]=0;J[c+4>>2]=1;J[c>>2]=769744;d=J[699344];J[699344]=0;if((d|0)!=1){J[c+8>>2]=770016;J[c>>2]=769992;J[c+12>>2]=0;J[c+16>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+40>>2]=0;d=c+32|0;J[c+36>>2]=d;J[c+32>>2]=d;hx(0);J[c+12>>2]=0;d=J[c+16>>2];if(d)uc(d);J[c+16>>2]=0;d=K[b+11| +0];e=d<<24>>24<0;d=e?J[b+4>>2]:d;J[c+20>>2]=d;f=vc(d);J[c+16>>2]=f;g=c,h=HK(xc(f,e?J[b>>2]:b,d),d,0,0,0),J[g+12>>2]=h;t2(c);b=J[c+24>>2];a:{if(!b){kc[J[J[c>>2]+4>>2]](c);break a}J[a>>2]=b;kc[J[J[c>>2]+12>>2]](c)|0}return(b|0)!=0|0}a=Z()|0;uc(c);ba(a|0);B()}function gQ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=fc-16|0;fc=i;if(K[b+11|0]>>>7|0)f=J[b+4>>2];else f=K[b+11|0]&127;h=Yc(c);e=f+h|0;j=fc-16|0;fc=j;a:{if(e>>>0<=2147483631){b:{if(e>>>0<11){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;H[a+11|0]=K[a+11|0]& +128|e;H[a+11|0]=K[a+11|0]&127;break b}if(e>>>0>=11){g=e+16&-16;d=g-1|0;d=(d|0)==11?g:d}else d=10;d=d+1|0;g=TR(d);J[a+8>>2]=J[a+8>>2]&-2147483648|d&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a>>2]=g;J[a+4>>2]=e}fc=j+16|0;break a}_d(a);B()}if(K[a+11|0]>>>7|0)a=J[a>>2];if(K[b+11|0]>>>7|0)b=J[b>>2];hk(a,b,f);a=a+f|0;hk(a,c,h);QF(a+h|0,1,0);fc=i+16|0}function _Ca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;d=J[b>> +2]}else d=0;J[a>>2]=d;b=b+4|0;a=a+4|0;d=(c|0)>0;c=c-1|0;if(d)continue;break b}while(1){d=c;c=J[b>>2];if(c){J[c+4>>2]=J[c+4>>2]+1;c=J[b>>2]}else c=0;J[a>>2]=c;c=J[b>>2];J[b>>2]=0;c:{if(!c)break c;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break c;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=d-1|0;b=b+4|0;a=a+4|0;if((d|0)>0)continue;break}}return}ea(0)|0;Bc();B()}function Nn(a){var b=0,c=0;a:{b:{c:{d:{if(!J[a+36>>2])break d;b=J[a+ +40>>2];if((b|0)>=0){J[a+40>>2]=-1;J[a>>2]=b;break c}b=J[a+32>>2];J[a+32>>2]=b-1;if((b|0)>0)break d;b=255;J[a>>2]=255;break c}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];b=kc[J[J[b>>2]+28>>2]](b)&255;J[a>>2]=b;if(!J[a+36>>2])break b}c=J[a+40>>2];if((c|0)>=0){J[a+40>>2]=-1;break a}c=J[a+32>>2];J[a+32>>2]=c-1;if((c|0)>0)break b;c=255;break a}J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];c=kc[J[J[b>>2]+28>>2]](b)&255;b=J[a>>2]}J[a+4>>2]=c;J[a+8>>2]=b<<16^16711680;pJ(a);J[a+12>>2]=-2147483648;J[a+8>>2]=J[a+8>>2]<<7;J[a+ +16>>2]=J[a+16>>2]-7}function $xa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((a|0)==(b|0))break a;c=J[a+24>>2];if(c)while(1){d=J[c>>2];kc[J[J[a>>2]+16>>2]](c,1);uc(c);c=d;if(c)continue;break}J[a+4>>2]=0;J[a+24>>2]=0;ri(a+16|0,4,0);JH(a,J[b+8>>2]);b=J[b+24>>2];if(!b)break a;while(1){c=vc(J[J[a>>2]>>2]);kc[J[J[a>>2]+12>>2]](c,b,1,0);e=J[a+12>>2]+(M[c+12>>2]%M[a+8>>2]<<2)|0;d=J[e>>2];J[c+8>>2]=d;J[c+4>>2]=d;b:{c:{if(d){J[c>>2]=J[d>>2];J[d>>2]=c;d=J[c>>2];if(d)break c;break b}d=J[a+24>>2];J[c>>2]=d;J[a+24>> +2]=c;if(!d)break b}J[d+4>>2]=c}J[e>>2]=c;J[a+4>>2]=J[a+4>>2]+1;b=J[b>>2];if(b)continue;break}}return a|0}function fU(a,b,c){var d=0,e=0,f=0,g=0,h=0;if(!K[a+1028|0]){f=J[a>>2];while(1){d=f&0-(e&1)^e>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;d=f&0-(d&1)^d>>>1;J[((e<<2)+a|0)+8>>2]=f&0-(d&1)^d>>>1;e=e+1|0;if((e|0)!=256)continue;break}H[a+1028|0]=1}e=J[a+4>>2];a:{if(!c)break a;d=c&1;b:{if((c|0)==1){c=0;break b}h=c&-2;c=0;f=0;while(1){g=a+8|0;e=J[g+(((K[b+ +c|0]^e)&255)<<2)>>2]^e>>>8;e=J[(((e^K[(c|1)+b|0])&255)<<2)+g>>2]^e>>>8;c=c+2|0;f=f+2|0;if((h|0)!=(f|0))continue;break}}if(!d)break a;e=J[((((K[b+c|0]^e)&255)<<2)+a|0)+8>>2]^e>>>8}return e^-1}function Be(a,b){var c=0,d=0,e=0,f=0;if((b|0)>=0){a:{if(!b)break a;e=J[a+12>>2];if(!e){e=Dc(4096);J[a+12>>2]=e;if(!e)break a}c=J[a+16>>2];f=J[a+20>>2];d=c-f|0;b:{if((d|0)<=0){d=0;break b}if((b|0)<(d|0)){d=0;break b}J[a+20>>2]=c;b=b-d|0;f=c}c:{if((b|0)>=4097){kc[J[J[a+8>>2]+4>>2]](J[a+4>>2],b,1)|0;J[a+20>>2]=J[a+ +16>>2];d=b+d|0;break c}if((c|0)==(f|0)){if((b|0)<=0)break c;c=kc[J[J[a+8>>2]+8>>2]](J[a+4>>2],e,1,4096)|0;J[a+16>>2]=c;b=(b|0)<(c|0)?b:c;J[a+20>>2]=b;d=b+d|0;break c}c=c-f|0;b=(b|0)<(c|0)?b:c;J[a+20>>2]=b+f;d=b+d|0}J[a+28>>2]=J[a+28>>2]+d}return}fa(219524,220042,122,223642);B()}function cK(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;if((b|0)<0){H[c|0]=0;return c}if(b>>>0<=390){of(c,J[(b<<2)+2655392>>2]);return c}a:{b:{e=b-391|0;if((e|0)>=J[a+72>>2])break b;g=J[a+80>>2];f=e;e=J[a+76>>2];e=Rn(a,(J[a+68>> +2]+P(f,e)|0)+3|0,e,d);h=J[a+80>>2];f=b-390|0;b=J[a+76>>2];i=Rn(a,(J[a+68>>2]+P(f,b)|0)+3|0,b,d);b=e+g|0;e=J[a+80>>2];if((b|0)<(e|0))break b;g=J[a+84>>2];if((g|0)<(b|0))break b;f=e;e=h+i|0;if((f|0)>=(e|0)|(e|0)>(g|0)|(b|0)>(e|0))break b;if(!J[d>>2])break a;d=b+J[a+8>>2]|0;a=e-b|0;a=(a|0)>=255?255:a;j=Ad(c,d,a)+a|0,k=0,H[j|0]=k;return c}J[d>>2]=0}H[c|0]=0;return c}function Vda(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;if(Mj(a,J[b+8>>2],f)){yF(b,c,d,e);return}g= +K[b+53|0];j=J[a+12>>2];H[b+53|0]=0;h=K[b+52|0];H[b+52|0]=0;m=a+16|0;xF(m,b,c,d,e,f);k=K[b+52|0];h=(h|k)!=0;l=K[b+53|0];g=(g|l)!=0;i=a+24|0;j=(j<<3)+m|0;a:{if(i>>>0>=j>>>0)break a;while(1){if(K[b+54|0])break a;b:{if(k){if(J[b+24>>2]==1)break a;if(K[a+8|0]&2)break b;break a}if(!l)break b;if(!(H[a+8|0]&1))break a}I[b+52>>1]=0;xF(i,b,c,d,e,f);l=K[b+53|0];g=(l|g)!=0;k=K[b+52|0];h=(k|h)!=0;i=i+8|0;if(j>>>0>i>>>0)continue;break}}H[b+53|0]=g;H[b+52|0]=h}function ys(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;a:{if(J[a+44>>2]|!b)break a;d=J[a+52>>2];c=(c|0)>(d|0)?d:c;a=P(J[a+16>>2],3);c=(a|0)>(c|0)?c:a;if((c|0)<=0)break a;d=((c-1>>>0)/3|0)+1|0;e=d&3;a=0;if(c>>>0>=10){h=d&2147483644;while(1){c=a+b|0;d=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=d;d=(a|3)+b|0;i=K[d+2|0];H[d+2|0]=K[d|0];H[d|0]=i;d=K[c+8|0];H[c+8|0]=K[c+6|0];H[c+6|0]=d;d=K[c+9|0];H[c+9|0]=K[c+11|0];H[c+11|0]=d;a=a+12|0;f=f+4|0;if((h|0)!=(f|0))continue;break}}if(!e)break a;while(1){c=a+b|0;d=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=d;a=a+3|0;g=g+ +1|0;if((e|0)!=(g|0))continue;break}}}function aU(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=O[a+8>>3];f=O[b+8>>3];h=e>f;a:{if(h){c=1;if(O[a+16>>3]>3])break a}b:{if(!(e>3];g=O[b+16>>3];c=2;if(d>g)break a;if(!(d=f)break a}c:{if(!h)break c;d=O[b+16>>3];if(!(d>3]))break c;c=4;if(R(e-d)<.02|d>=e)break a}if(!(e!=f|O[a+16>>3]!=O[b+16>>3]|O[a+32>>3]!=O[b+32>>3])){c=5;if(O[a+40>>3]==O[b+40>>3])break a}g=O[a+16>>3];i=O[b+16>>3];d= +R(g-i);if(R(e-f)<.02){c=6;if(d<.02)break a;return 7}c=8;if(d<.02)break a;c=9;if(f>g)break a;c=e>i?10:0}return c|0}function Mv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=O[a+32>>3];f=O[b+32>>3];h=e>f;a:{if(h){c=1;if(O[a+40>>3]>3])break a}b:{if(!(e>3];g=O[b+40>>3];c=2;if(d>g)break a;if(!(d=f)break a}c:{if(!h)break c;d=O[b+40>>3];if(!(d>3]))break c;c=4;if(R(e-d)<.02|d>=e)break a}if(!(e!=f|O[a+40>>3]!=O[b+40>>3]|O[a+8>>3]!=O[b+ +8>>3])){c=5;if(O[a+16>>3]==O[b+16>>3])break a}g=O[a+40>>3];i=O[b+40>>3];d=R(g-i);if(R(e-f)<.02){c=6;if(d<.02)break a;return 7}c=8;if(d<.02)break a;c=9;if(f>g)break a;c=e>i?10:0}return c|0}function LRa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=vc(28);f=J[a+12>>2];J[699344]=0;d=_(4,8)|0;b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)==1)break c;J[699344]=0;f=aa(3350,d|0,f|0)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;uc(d);break b}d=J[a+16>>2];b=J[J[d>>2]+8>>2];J[699344]=0;d=_(b|0,d|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break c;b=J[a+20>>2];e=J[J[b>>2]+8>>2];J[699344]=0;b=_(e|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break a}a=Z()|0}uc(c);ba(a|0);B()}e=J[a+4>>2];J[c+24>>2]=J[a+24>>2];J[c+20>>2]=b;J[c+16>>2]=d;J[c+12>>2]=f;J[c>>2]=2218040;J[c+8>>2]=0;J[c+4>>2]=e;return c|0}function I5(a){var b=0,c=0,d=0;H[a+192|0]=0;J[a+160>>2]=2147483647;J[a+164>>2]=2147483647;J[a+144>>2]=2147483647;J[a+148>>2]=2147483647;J[a+104>>2]=0;J[a+108>>2]=0;b=a+96|0;I[b+1468>>1]=0;J[b+1208>>2]=0;J[a+184>>2]=-2147483647; +J[a+188>>2]=-2147483647;J[a+176>>2]=2147483647;J[a+180>>2]=2147483647;J[a+168>>2]=0;J[a+172>>2]=0;J[a+152>>2]=0;J[a+156>>2]=0;c=J[a+2932>>2];b=J[a+2928>>2];if((c|0)!=(b|0)){while(1){d=J[b>>2];if(d){c=J[d>>2];if(c){kc[J[J[c>>2]+20>>2]](c);J[d>>2]=0}c=J[d+4>>2];if(c)uc(Jd(c));uc(d);c=J[a+2932>>2]}b=b+4|0;if((b|0)!=(c|0))continue;break}b=J[a+2928>>2]}J[a+2932>>2]=b}function kia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a=fc-208|0;fc=a;h=gh();J[a>>2]=e;e=a+176|0;j=Di(e,20,h, +5886,a);h=j+e|0;k=fk(e,h,c);f=a+12|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>>2]=J[g+4>>2]+1;J[699344]=0;g=_(6750,f|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1){f=J[f>>2];i=J[f+4>>2]-1|0;J[f+4>>2]=i;if((i|0)==-1)kc[J[J[f>>2]+8>>2]](f);f=e;e=a+16|0;kc[J[J[g>>2]+48>>2]](g,f,h,e)|0;f=b;b=e+(j<<2)|0;b=Qs(f,e,(h|0)==(k|0)?b:(a+(k-a<<2)|0)-688|0,b,c,d);fc=a+208|0;return b|0}c=Z()|0;a=J[a+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function dhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f= +0,g=0;c=fc-32|0;fc=c;a:{if((kc[J[b+52>>2]](b,6,c,0)|0)<=5){J[b+12>>2]=3;break a}e=J[c+12>>2];if(!e){J[b+12>>2]=3;break a}d=e>>31;d=(d^e)-d|0;if((d|0)!=65536){f=c,g=Cd(J[c>>2],d),J[f>>2]=g;f=c,g=Cd(J[c+4>>2],d),J[f+4>>2]=g;f=c,g=Cd(J[c+8>>2],d),J[f+8>>2]=g;f=c,g=Cd(J[c+16>>2],d),J[f+16>>2]=g;f=c,g=Cd(J[c+20>>2],d),J[f+20>>2]=g;e=J[c+12>>2]<0?-65536:65536;J[c+12>>2]=e}J[a+440>>2]=J[c>>2];J[a+448>>2]=J[c+4>>2];d=J[c+8>>2];J[a+452>>2]=e;J[a+444>>2]=d;if(!eE(a+440|0)){J[b+12>>2]=3;break a}J[a+456>>2]= +I[c+18>>1];J[a+460>>2]=I[c+22>>1]}fc=c+32|0}function Ira(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;f=J[b>>2];if(f){J[f+4>>2]=J[f+4>>2]+1;e=J[b>>2]}J[699344]=0;J[d+12>>2]=e;a=ha(5718,a|0,d+12|0,1,c|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[d+12>>2]=0;b:{if(!e)break b;J[699344]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+20>>2]=0;J[a>>2]=2436864;J[a+40>>2]=0;J[a+32>> +2]=0;J[a+36>>2]=16777215;H[a+19|0]=25;H[a+17|0]=0;H[a+18|0]=0;fc=d+16|0;return a|0}a=Z()|0;zc(d+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function $2a(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;f=fc-16|0;fc=f;e=J[a+4>>2];h=J[e+24>>2];g=!K[e+66|0];if(J[h+224>>2])d=H[e+67|0];else d=L[e+112>>1]<256;a:{if(!(g|!d)){g=e+66|0;d=1;break a}g=J[e+20>>2];d=H[e+61|0]}H[e+67|0]=0;i=a;b:{c:{if(K[h+200|0]==12){d:{e:switch(d-1|0){case 0:d=f+12|0;if(J[e+52>>2]==2){J[e+52>>2]=1;H[f+12|0]=15;d=f+13|0}H[d|0]=K[g| +0];d=d+1|0;break d;case 1:break e;default:break c}d=f+12|0;if(M[e+52>>2]<=1){J[e+52>>2]=2;H[f+12|0]=14;d=f+13|0}H[d|0]=K[g|0];H[d+1|0]=K[g+1|0];d=d+2|0}a=f+12|0;d=d-a|0}else a=g;PL(i,a,d,b,c);break b}J[c>>2]=1}fc=f+16|0}function U0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+8>>2];xi(J[a+4>>2],b,c,d);xi(J[a+8>>2],b,c,d);xi(J[a+12>>2],b,c,d);xi(J[a+16>>2],b,c,d);xi(J[a+20>>2],b,c,d);xi(J[a+24>>2],b,c,d);xi(J[a+28>>2],b,c,d);xi(J[a+32>>2],b,c,d);xi(J[a+36>>2],b,c,d);xi(J[a+40>>2],b,c,d);xi(J[a+44>>2],b, +c,d);xi(J[a+48>>2],b,c,d);xi(J[a+52>>2],b,c,d);xi(J[a+56>>2],b,c,d);xi(J[a+60>>2],b,c,d);xi(J[a+64>>2],b,c,d);xi(J[a+68>>2],b,c,d);xi(J[a+72>>2],b,c,d);xi(J[a+76>>2],b,c,d);kc[J[b+4>>2]](J[b>>2],0);kc[J[b+4>>2]](J[b>>2],9);kc[J[b+4>>2]](J[b>>2],10);kc[J[b+8>>2]](J[b>>2],32,127);kc[J[b+8>>2]](J[b>>2],160,255)}function D$a(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=J[a>>2];a:{if(!d)break a;g=J[d+28>>2]-J[d+24>>2]>>2;if((g|0)<=0)break a;while(1){f=K[b+11|0];h=f<<24>>24<0;d=J[J[J[a>>2]+ +24>>2]+(e<<2)>>2];i=K[d+59|0];j=i<<24>>24<0;b:{f=h?J[b+4>>2]:f;if((f|0)!=((j?J[d+52>>2]:i)|0))break b;c:{d:{if(!f){b=J[c>>2];J[c>>2]=d;break d}d=d+48|0;if(qd(h?J[b>>2]:b,j?J[d>>2]:d,f))break b;b=J[c>>2];d=J[J[J[a>>2]+24>>2]+(e<<2)>>2];J[c>>2]=d;if(!d)break c}kc[J[J[d>>2]+8>>2]](d)|0}e=1;if(!b)break a;kc[J[J[b>>2]+12>>2]](b)|0;return 1}e=e+1|0;if((g|0)!=(e|0))continue;break}e=0}return e|0}function MP(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=fc-48|0;fc=c;a:{b:{c:{d:{e:{d=J[a+584>>2];b=J[d>>2];switch(b-1|0){case 0:break a; +case 2:break d;case 1:break e;default:break c}}b=L[a+84>>1];e=b-8|0;if(1<>>0<=24:0)break b;a=J[a+628>>2];J[c+16>>2]=b;Uc(a,197567,75871,c+16|0);b=0;break a}b=L[a+86>>1];if((b|0)==3)break b;a=J[a+628>>2];J[c+32>>2]=b;Uc(a,197567,76426,c+32|0);b=0;break a}a=J[a+628>>2];J[c>>2]=b;Uc(a,197567,77241,c);b=0;break a}b=1;J[d+4>>2]=L[a+138>>1]!=1?1:L[a+98>>1];f:{if(K[a+13|0]&4){f=d,g=Cn(a),J[f+8>>2]=g;break f}f=d,g=wj(a),J[f+8>>2]=g}}fc=c+48|0;return b}function yw(a){var b=0,c=0,d=0,e=0;b=J[a+ +88>>2];if(b){c=J[b+8>>2];if((c|0)>0)while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){uc(yw(e));c=J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}uc(ld(b));J[a+88>>2]=0}b=J[a+4>>2];if(b)uc(ld(b));b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[699344]=0;$(3370,a+16|0);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;$(3370,a+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+48|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a- -64|0);b=J[699344];J[699344]=0;if((b|0)== +1)break a;return a}ea(0)|0;Bc();B()}function Yeb(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;e=1;if(!(!J[a+16>>2]|!J[a+20>>2])){fs(a);f=J[a+20>>2];g=O[c>>3];h=O[d>>3];c=fc+-64|0;fc=c;a=J[a+12>>2];if(a){J[c+60>>2]=J[b>>2];J[c+48>>2]=0;J[c+52>>2]=1072693248;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=c+48|0;d=c+40|0;e=c+32|0;kc[J[J[a>>2]+124>>2]](a,b,d,e,c+24|0,c+16|0,c+8|0)|0;J[c+48>>2]= +1;N[c+40>>2]=g;N[c+32>>2]=h;kc[J[J[a>>2]+92>>2]](a,c+60|0,b,d,e)|0;kc[J[J[a>>2]+132>>2]](a,f)|0}fc=c- -64|0;e=0}return e|0}function SRa(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;f=fc-640|0;fc=f;h=J[a+12>>2];i=kc[J[J[h>>2]+28>>2]](h)|0;e=J[a+12>>2];kc[J[J[e>>2]+36>>2]](e,f+384|0,f+128|0,J[a+16>>2]);g=+J[b>>2]*1.52587890625E-5+.5;a:{if(R(g)<2147483648){e=~~g;break a}e=-2147483648}if((i|0)>0){b=0;j=J[a+20>>2];a=J[a+16>>2];e=j+P((e|0)>=0?(a|0)<(e|0)?a:e:0,i)|0;while(1){j=(b<<2)+f|0; +a=b<<3;g=(+K[b+e|0]/255*O[a+(f+128|0)>>3]+O[a+(f+384|0)>>3])*65536;b:{if(R(g)<2147483648){a=~~g;break b}a=-2147483648}J[j>>2]=a;b=b+1|0;if((i|0)!=(b|0))continue;break}}kc[J[J[h>>2]+16>>2]](h,f,c,d);fc=f+640|0}function Rmb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+28>>2];a=J[f+20>>2];a:{if(!a)break a;b:{c:{b=L[a>>1];d=b<<16>>16;if((d|0)>=2){e=I[(J[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break c}if(d)break c;b=L[a+2>>1];break b}b=I[a+2>>1];if((e|0)!=(b|0))break b;I[a>>1]=d-1;break a}d:{if(b<<16>>16<2)break d; +c=J[a+4>>2];g=c+(e<<3)|0;h=b&65535;c=c+(h<<3)|0;if(J[g>>2]!=J[c-8>>2]|J[g+4>>2]!=J[c-4>>2]|K[(J[a+8>>2]+h|0)-1|0]!=1)break d;b=b-1|0;I[a+2>>1]=b}if((d|0)<=0)break a;c=e;e=(b<<16>>16)-1|0;if((c|0)==(e|0)){I[a+2>>1]=b-1;I[a>>1]=d-1;break a}I[(J[a+12>>2]+(d<<1)|0)-2>>1]=e}H[f+44|0]=0}function RRa(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;f=fc-640|0;fc=f;h=J[a+12>>2];i=kc[J[J[h>>2]+28>>2]](h)|0;e=J[a+12>>2];kc[J[J[e>>2]+36>>2]](e,f+384|0,f+128|0,J[a+16>>2]);g=+J[b>>2]*1.52587890625E-5+ +.5;a:{if(R(g)<2147483648){e=~~g;break a}e=-2147483648}if((i|0)>0){b=0;j=J[a+20>>2];a=J[a+16>>2];e=j+P((e|0)>=0?(a|0)<(e|0)?a:e:0,i)|0;while(1){j=(b<<2)+f|0;a=b<<3;g=(+K[b+e|0]/255*O[a+(f+128|0)>>3]+O[a+(f+384|0)>>3])*65536;b:{if(R(g)<2147483648){a=~~g;break b}a=-2147483648}J[j>>2]=a;b=b+1|0;if((i|0)!=(b|0))continue;break}}kc[J[J[h>>2]+20>>2]](h,f,c,d);fc=f+640|0}function QRa(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;f=fc-640|0;fc=f;h=J[a+12>>2];i=kc[J[J[h>>2]+28>>2]](h)|0;e=J[a+ +12>>2];kc[J[J[e>>2]+36>>2]](e,f+384|0,f+128|0,J[a+16>>2]);g=+J[b>>2]*1.52587890625E-5+.5;a:{if(R(g)<2147483648){e=~~g;break a}e=-2147483648}if((i|0)>0){b=0;j=J[a+20>>2];a=J[a+16>>2];e=j+P((e|0)>=0?(a|0)<(e|0)?a:e:0,i)|0;while(1){j=(b<<2)+f|0;a=b<<3;g=(+K[b+e|0]/255*O[a+(f+128|0)>>3]+O[a+(f+384|0)>>3])*65536;b:{if(R(g)<2147483648){a=~~g;break b}a=-2147483648}J[j>>2]=a;b=b+1|0;if((i|0)!=(b|0))continue;break}}kc[J[J[h>>2]+24>>2]](h,f,c,d);fc=f+640|0}function oF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j= +0;a:{c=J[a+20>>2];b:{if((c|0)>=2){d=J[a+28>>2];e=J[d+4>>2]-J[d>>2]>>2;break b}if((c|0)!=1)break a}if(J[a+24>>2]<=0)break a;f=J[J[a+28>>2]>>2];j=e<<2;while(1){h=c;d=J[a+24>>2];c:{if((d|0)<=0)break c;g=0;c=f;e=d;i=d&3;if(i)while(1){J[c>>2]=J[c>>2]<>>0<4)break c;while(1){J[c>>2]=J[c>>2]<>2]=J[c+4>>2]<>2]=J[c+8>>2]<>2]=J[c+12>>2]<>>0<4294967294)continue;break}}c=h-1|0;f=f+j|0;if((h| +0)>1)continue;break}}}function dZ(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=fc-32|0;fc=g;f=J[a+72>>2];a:{if(!f){Nc(d,1,2360054,0);e=0;break a}f=Ge(4,J[f+16>>2]);e=0;if(!f)break a;if(b){j=J[a+72>>2];while(1){b:{e=J[(h<<2)+c>>2];c:{if(e>>>0>=M[j+16>>2]){J[g+16>>2]=e;Nc(d,1,2360127,g+16|0);break c}i=f+(e<<2)|0;if(!J[i>>2])break b;J[g>>2]=e;Nc(d,1,2360200,g)}uc(f);e=0;break a}J[i>>2]=1;h=h+1|0;if((h|0)!=(b|0))continue;break}}uc(f);uc(J[a- -64>>2]);d:{if(b){e=b<<2;d=ef(e);J[a+64>> +2]=d;if(!d){J[a+60>>2]=0;e=0;break a}xc(d,c,e);break d}J[a+64>>2]=0}J[a+60>>2]=b;e=1}fc=g+32|0;return e|0}function cnb(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=fc-32|0;fc=e;J[d>>2]=-1;Dq(a,e+20|0);if(J[e+28>>2]==3){i=J[a>>2];g=J[e+20>>2]+1|0;J[a>>2]=g;j=J[a+8>>2];h=J[e+24>>2]-1|0;J[a+8>>2]=h;f=b;a:{if(g>>>0>=h>>>0)break a;if(!f){f=0;while(1){Dq(a,e+8|0);if(!J[e+16>>2])break a;f=f+12|0;if(M[a>>2]>2])continue;break}break a}c=P(c,12)+b|0;while(1){Dq(a,e+8|0);if(!J[e+16>> +2])break a;if(c>>>0>f>>>0){g=J[e+12>>2];J[f>>2]=J[e+8>>2];J[f+4>>2]=g;J[f+8>>2]=J[e+16>>2]}f=f+12|0;if(M[a>>2]>2])continue;break}}J[d>>2]=(f-b|0)/12;J[a+8>>2]=j;J[a>>2]=i}fc=e+32|0}function Kra(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;wH(a+8|0,b+8|0);d=c;c=c-1|0;b=b+20|0;a=a+20|0;if(d)continue;break b}while(1){d=c;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;wH(a+8|0,b+8|0);wc(b+12|0);c=J[b+8>>2];J[b+8>> +2]=0;c:{if(!c)break c;J[699344]=0;e=J[c+4>>2]-1|0;J[c+4>>2]=e;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break c;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a}c=d-1|0;b=b+20|0;a=a+20|0;if((d|0)>0)continue;break}}return}ea(0)|0;Bc();B()}function G1(a){a=a|0;var b=0,c=0;if(a){b=J[a+32>>2];if(b)b=J[b+80>>2];else b=0;Wj(a);c=J[a+52>>2];if(c)Rk(c);c=J[a+60>>2];a:{if(b){b:{if(!c)break b;if(Sk(b,c))break b;kc[J[663199]](J[a+60>>2])}c=J[a+8>>2];c:{if(!c)break c;if(Sk(b,c))break c; +kc[J[663199]](J[a+8>>2])}c=J[a+56>>2];d:{if(!c)break d;if(Sk(b,c))break d;kc[J[663199]](J[a+56>>2])}c=J[a+48>>2];if(!c)break a;if(Sk(b,c))break a;kc[J[663199]](J[a+48>>2]);break a}if(c)kc[J[663199]](c);b=J[a+8>>2];if(b)kc[J[663199]](b);b=J[a+48>>2];if(b)kc[J[663199]](b);b=J[a+56>>2];if(!b)break a;kc[J[663199]](b)}kc[J[663199]](a)}}function kba(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=J[a>>2];f=g;c=J[a+4>>2];if((c|0)<=(g|0)){c=c+128|0;f=Yh(J[a+8>>2],c<<2);if(!f)return-1;J[a+8>>2]=f;J[a+4>>2]=c;f=J[a>>2]}a:{if((f| +0)<=(g|0))break a;c=f;e=c-g&3;if(e)while(1){d=J[a+8>>2]+(c<<2)|0;J[d>>2]=J[d-4>>2];c=c-1|0;h=h+1|0;if((e|0)!=(h|0))continue;break}if((g^-1)+f>>>0<3)break a;while(1){e=c<<2;d=e+J[a+8>>2]|0;J[d>>2]=J[d-4>>2];d=e+J[a+8>>2]|0;J[d-4>>2]=J[d-8>>2];d=e+J[a+8>>2]|0;J[d-8>>2]=J[d-12>>2];e=e+J[a+8>>2]|0;J[e-12>>2]=J[e-16>>2];c=c-4|0;if((g|0)<(c|0))continue;break}}J[J[a+8>>2]+(g<<2)>>2]=b;J[a>>2]=f+1;return 0}function bub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(K[a+288|0]?K[a+285|0]:0)){Jc(a,1029,0,0); +return 1029}if(c){Jc(a,1028,0,0);return 1028}c=0;a:{if(!K[a+114|0])break a;c=kc[J[a+152>>2]](28)|0;if(!c){Jc(a,1,0,0);c=1;break a}J[c+4>>2]=1070;J[c>>2]=1071;d=J[a+700>>2];b:{if(d){J[d+8>>2]=c;break b}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=d;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;c=0}c:{if(c)break c;H[a+2252|0]=1;if(K[a+112|0]){c=kc[J[b+4>>2]](a,b,e)|0;if(c)break c}c=0}return c|0}function Vz(a){var b= +0,c=0,d=0,e=0,f=0;c=fc-48|0;fc=c;d=J[a+56>>2];b=K[d+395|0];a:{b:{if(!(b<<24>>24<0?J[d+388>>2]:b))break b;e=a+240|0;b=e;if(J[b+4>>2]==J[b+8>>2])break b;b=a+120|0;d=J[a+64>>2];f=K[a+135|0];c:{if(!(f<<24>>24<0?J[a+128>>2]:f)){lU(d,b);break c}nU(d,b)}b=J[a+64>>2];J[c+4>>2]=0;d=b;b=c+4|0;kU(d,b);d=J[a+64>>2];Jv(b,e);J[699344]=0;zb(6650,d|0,b|0,0,0,c+40|0,c+32|0,c+24|0,c+16|0,1);b=J[699344];J[699344]=0;if((b|0)==1)break a;if(H[c+15|0]<0)uc(J[c+4>>2]);O[a+200>>3]=O[c+24>>3];O[a+208>>3]=O[c+16>>3]}fc=c+48| +0;return}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function Mca(a,b){a=a|0;b=b|0;if(!((b|0)!=8&(b|0)!=32946)){if(!Bn(a,97984,1)){Uc(J[a+628>>2],97962,70997,0);return 0}b=Dc(136);J[a+584>>2]=b;if(b){J[b+104>>2]=0;J[b+108>>2]=0;J[b+96>>2]=0;J[b+100>>2]=0;J[b+128>>2]=J[a+672>>2];J[a+672>>2]=691;J[b+132>>2]=J[a+668>>2];J[a+668>>2]=692;J[b+120>>2]=-1;J[b+124>>2]=0;J[a+556>>2]=693;J[a+548>>2]=693;J[a+540>>2]=693;J[a+520>>2]=694;J[a+516>>2]=695;J[a+572>>2]=696;J[a+560>>2]=697;J[a+552>>2]=697;J[a+ +544>>2]=697;J[a+536>>2]=698;J[a+532>>2]=699;J[a+524>>2]=700;tF(a);return 1}Uc(J[a+628>>2],97962,71615,0);return 0}fa(69850,70440,349,97962);B()}function Lmb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[a+8>>2]=d;J[a+4>>2]=b;I[a+64>>1]=256;J[a>>2]=J[b+100>>2];a:{if(!d)break a;b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;jp(b);J[a+68>>2]=0;J[a+72>>2]=0;if(!c|!e)break a;b=J[J[c+40>>2]>>2];if(!b)break a;J[a+72>>2]=J[b>>2];J[a+68>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+ +40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;b=J[65346];J[a+76>>2]=J[65345];J[a+80>>2]=b;b=J[65348];J[a+84>>2]=J[65347];J[a+88>>2]=b;b=J[65350];J[a+92>>2]=J[65349];J[a+96>>2]=b;b=J[65352];J[a+100>>2]=J[65351];J[a+104>>2]=b}function $tb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(K[a+288|0]?K[a+285|0]:0)){Jc(a,1029,0,0);return 1029}if(c){Jc(a,1028,0,0);return 1028}c=0;a:{if(!K[a+114|0])break a;c=kc[J[a+152>>2]](28)|0;if(!c){Jc(a,1,0,0);c=1;break a}J[c+4>>2]=1072;J[c>>2]=1073;d=J[a+700>>2];b:{if(d){J[d+ +8>>2]=c;break b}J[a+696>>2]=c}J[c+8>>2]=0;J[c+12>>2]=d;J[a+700>>2]=c;J[c+16>>2]=J[a+436>>2];J[c+20>>2]=J[a+440>>2];J[c+24>>2]=J[a+444>>2];if(!(J[a+516>>2]|(K[a+496|0]|!K[a+432|0])))J[a+516>>2]=c;c=0}c:{if(c)break c;H[a+2252|0]=2;if(K[a+112|0]){c=kc[J[b+4>>2]](a,b,e)|0;if(c)break c}c=0}return c|0}function wia(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a=fc-96|0;fc=a;h=gh();J[a>>2]=e;e=a- -64|0;j=Di(e,20,h,5886,a);h=j+e|0;k=fk(e,h,c);f=a+12|0;g=J[c+28>>2];J[f>>2]=g;J[g+4>> +2]=J[g+4>>2]+1;J[699344]=0;g=_(6826,f|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1){f=J[f>>2];i=J[f+4>>2]-1|0;J[f+4>>2]=i;if((i|0)==-1)kc[J[J[f>>2]+8>>2]](f);f=e;e=a+16|0;kc[J[J[g>>2]+32>>2]](g,f,h,e)|0;f=b;b=e+j|0;b=Rs(f,e,(h|0)==(k|0)?b:(a+(k-a|0)|0)-48|0,b,c,d);fc=a+96|0;return b|0}c=Z()|0;a=J[a+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function iub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+ +289|0])break a;b:switch(c|0){default:Jc(a,1028,0,0);return 1028;case 0:case 9:break b}c:{d:{if(!K[a+112|0])break d;a=kc[J[b+4>>2]](a,b,e)|0;if(a)break c;a=J[e>>2];b=!c;H[a+32|0]=b;if(b)break d;b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[a+36>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0]|K[d+5|0]<<8|(K[d+6|0]<<16|K[d+7|0]<<24);J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a+44|0]=K[d+8|0]}a=0}return a|0}Jc(a,1029,0,0);return 1029}function Wtb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d| +0;e=e|0;var f=0,g=0;a:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;Jc(a,1029,0,0);return 1029}f=J[a+268>>2];if(!(f&536870912)){Jc(a,1061,0,0);return 1061}b:{g=J[a+212>>2];if(!g)break b;if(kc[g|0](a,f,c,d)|0)break b;Jc(a,904,0,0);return 904}f=0;c:{if(!K[a+112|0])break c;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break c;f=J[a+268>>2];b=J[e>>2];J[b+32>>2]=c;J[b>>2]=f;if(!c){J[b+36>>2]=0;return 0}b=kc[J[a+152>>2]](c)|0;J[J[e>>2]+36>>2]=b;b=J[J[e>>2]+36>>2];if(!b){Jc(a,1,0,0);return 1}xc(b, +d,c);f=0}return f|0}function OI(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0;a:{if(!a)break a;j=1;b:{if((c|0)>0)if((b|d|e|f|g|h|i)>=0)break b;fd(a,60026);j=0}if((1E5-c|0)<(b|0)){fd(a,60165);j=0}if((1E5-e|0)<(d|0)){fd(a,60346);j=0}if((1E5-g|0)<(f|0)){fd(a,60553);j=0}if((1E5-i|0)<(h|0)){fd(a,60794);j=0}c=f-d|0;b=c>>>16|0;f=i-e|0;i=f&65535;k=c&65535;c=P(i,k);g=g-e|0;e=g>>>16|0;h=h-d|0;l=h&65535;g=g&65535;d=P(l,g);f=f>>>16|0;i=P(b,i)+P(k,f)+(c>>>16)|0;k=(i>>>16|0)+P(b,f)|0;b=h>>>16|0;f=P(e,l)+P(g,b)+(d>>>16)|0; +if((k|0)!=((f>>>16|0)+P(b,e)|0)|(c&65535|i<<16)!=(d&65535|f<<16))break a;fd(a,61200);j=0}return j}function F7(a){var b=0,c=0,d=0;b=fc-16|0;fc=b;d=yd(a,0);a:{if(d)break a;d=zg(a,b+8|0,4);if(d)break a;d=3;if(K[b+8|0]!=31|K[b+9|0]!=139|(K[b+10|0]!=8|K[b+11|0]>31))break a;d=kg(a,6);J[b+12>>2]=d;c=K[b+11|0];if(c&4){c=P7(a,b+12|0);d=J[b+12>>2];if(d)break a;d=kg(a,c);J[b+12>>2]=d;if(d)break a;d=0;c=K[b+11|0]}if(c&8){while(1){c=Rg(a,b+12|0)?0:3;d=J[b+12>>2];c=d?2:c;if(!c)continue;break}if((c|0)!=3)break a; +c=K[b+11|0]}if(c&16){while(1){c=Rg(a,b+12|0)?0:5;d=J[b+12>>2];c=d?2:c;if(!c)continue;break}if((c|0)!=5)break a;c=K[b+11|0]}if(!(c&2))break a;d=kg(a,2)}fc=b+16|0;return d}function Elb(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;b=J[a+4>>2];g=b+c|0;b=0-b|0;f=g-1&b;b=b&d;if((L[e+12>>1]&7)!=2)b=J[a+20>>2]<(d-g|0)?b:(c|0)==(f|0)?b:(b|0)==(d|0)?b:f;c=J[a>>2];b=b>>c;a:{if((b|0)<0)break a;c=f>>c;d=L[a+52>>1];if((c|0)>=(d|0))break a;d=b>>>0>>0?b:d-1|0;b=-128>>(d&7);g=J[a+140>>2];h= +J[a+56>>2];i=g+h|0;e=(c|0)>0?c:0;c=e<<13>>16;a=i+c|0;e=255>>>(e&7)|0;f=d<<13>>16;d=f-c|0;b:{if((d|0)>0){H[a|0]=e|K[a|0];if((d|0)!=1){a=(d|0)>=2?2:d;Ac((c+i|0)+1|0,255,(f-(a+c|0)|0)+1|0);a=(h+((f+g|0)-a|0)|0)+1|0}a=a+1|0;break b}b=b&e}H[a|0]=K[a|0]|b}}function EP(a,b){var c=0,d=0,e=0;a:{if((b|0)<0){b=J[686165];if((b|0)<=0)break a;c=2744672;b:{while(1){e=J[c+24>>2];if(e){if(!(kc[e|0](a)|0))break b;b=J[686165]}c=c+28|0;d=d+1|0;if((d|0)<(b|0))continue;break}return 0}b=J[c>>2];if((b|0)<0)break a}d=0;e= +J[686165];if((e|0)<=0)break a;c=2744672;c:{while(1){if(J[c>>2]==(b|0))break c;c=c+28|0;d=d+1|0;if((e|0)!=(d|0))continue;break}return 0}b=J[c+16>>2];if(!b)break a;a=kc[b|0](a,0)|0;if(!a)break a;b=J[a+28>>2];if(b&16384)return a;if(!(b&255))return a;if(J[a+32>>2])return a;b=BP(b);J[a+32>>2]=b;if(b)return a;Mh(a)}return 0}function dFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c+4|0]=b;H[c+5|0]=b>>>8;H[c+6|0]=b>>>16;H[c+7|0]=b>>>24;b=0;d=4;f=c+4|0; +a:{b:{while(1){e=kc[J[J[a>>2]+12>>2]](a,f,d)|0;if(!e){a=Qc(c+8|0,2390640,2387108,474,2396576,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=f+e|0;b=b+e|0;d=d-e|0;if(d)continue;break}if((b|0)!=4){a=Qc(c+8|0,um(J[698583]),2387108,547,2396741,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}fc=c+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function U6(a,b){var c=0,d=0,e=0;c=J[a+32>>2];d=J[a+28>>2];if(d){while(1){e=J[c+8>>2];if(e)kc[J[b+8>> +2]](b,e);J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;c=c+16|0;d=d-1|0;if(d)continue;break}c=J[a+32>>2]}if(c)kc[J[b+8>>2]](b,c);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;c=J[a+20>>2];d=J[a+16>>2];if(d){while(1){e=J[c+8>>2];if(e)kc[J[b+8>>2]](b,e);J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;c=c+16|0;d=d-1|0;if(d)continue;break}c=J[a+20>>2]}if(c)kc[J[b+8>>2]](b,c);J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;c=J[a+8>>2];if(c)kc[J[b+8>>2]](b,c);J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0}function gBa(a){a=a|0;var b= +0,c=0,d=0;b=fc-16|0;fc=b;J[b+12>>2]=0;vd(b+12|0,a);J[699344]=0;aa(5145,a+160|0,0)|0;c=J[699344];J[699344]=0;a:{b:{if((c|0)==1)break b;J[699344]=0;$(5477,a|0);a=J[699344];J[699344]=0;if((a|0)==1){oa(ea(0)|0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break b}a=J[b+12>>2];J[b+12>>2]=0;c:{if(!a)break c;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=b+16|0;return}a= +Z()|0;zc(b+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function fCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;mk(a+8|0,b+8|0);d=c;c=d-1|0;b=b+44|0;a=a+44|0;if(d)continue;break a}while(1){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;mk(a+8|0,b+8|0);J[b+32>>2]=2392964;J[b+8>>2]=2392932;d=J[b+36>>2];if(d){e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[b+36>>2]=0}J[b+24>>2]=2392964;d=J[b+28>>2];if(d){e=J[d+4>>2]-1|0;J[d+ +4>>2]=e;if(!e)kc[J[J[d>>2]+4>>2]](d);J[b+28>>2]=0}wc(b+16|0);b=b+44|0;a=a+44|0;d=(c|0)>0;c=c-1|0;if(d)continue;break}}}function $y(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=fc-16|0;fc=h;if(1073741807-b>>>0>=c>>>0){if(K[a+11|0]>>>7|0)g=J[a>>2];else g=a;i=g;g=h+4|0;j=g;if(b>>>0<536870887){J[h+12>>2]=b<<1;J[h+4>>2]=b+c;c=fc-16|0;fc=c;fc=c+16|0;c=h+12|0;c=J[(M[g>>2]>2]?c:g)>>2];if(c>>>0>=2){g=c+4&-4;c=g-1|0;c=(c|0)==2?g:c}else c=1;c=c+1|0}else c=1073741807;to(j,a,c);c=J[h+4>>2];if(e)Ik(c,i,e);if((d|0)!= +(e|0)){g=e<<2;Ik((g+c|0)+(f<<2)|0,g+i|0,d-e|0)}b=b+1|0;if((b|0)!=2)uv(i,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[h+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;fc=h+16|0;return}_d(a);B()}function nXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{if(J[a+104>>2]==J[a+108>>2])break a;zd(b,J[a>>2]);zd(b,J[a+88>>2]);zd(b,J[a+92>>2]);zd(b,J[a+96>>2]);zd(b,J[a+100>>2]);zd(b,J[a+108>>2]-J[a+104>>2]>>2);c=J[a+104>>2];if((c|0)==J[a+108>>2])break a;while(1){e=c;c=g<<2;d=J[e+c>>2];f=K[d+15|0];e=f<<24>> +24<0;lf(b,e?J[d+4>>2]:d+4|0,e?J[d+8>>2]:f);d=J[J[a+104>>2]+c>>2];f=K[d+27|0];e=f<<24>>24<0;lf(b,e?J[d+16>>2]:d+16|0,e?J[d+20>>2]:f);zd(b,J[J[J[a+104>>2]+c>>2]+28>>2]);zd(b,0);Fe(b,K[J[J[a+104>>2]+c>>2]]);g=g+1|0;c=J[a+104>>2];if(g>>>0>2]-c>>2>>>0)continue;break}}}function hR(a,b,c){var d=0,e=0,f=0;d=J[a+584>>2];while(1){a:{f=Ps(b,e,c);Os(a,f,94080);e=e+f|0;if(e>>>0>=c>>>0)break a;f=Ns(b,e,c);Os(a,f,94736);e=e+f|0;if(e>>>0>>0)continue}break}b=J[d+4>>2];b:{if(!(b&12))break b;if(J[d+68>> +2]!=8){if(J[a+608>>2]>=J[a+600>>2])pf(a);b=J[d+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=b;J[a+608>>2]=J[a+608>>2]+1;J[d+64>>2]=0;J[d+68>>2]=8;b=J[d+4>>2]}if(!(b&8))break b;c=J[a+604>>2];if(!(c&1))break b;if(J[a+608>>2]>=J[a+600>>2]){pf(a);c=J[a+604>>2]}b=J[d+64>>2];J[a+604>>2]=c+1;H[c|0]=b;J[a+608>>2]=J[a+608>>2]+1;J[d+64>>2]=0;J[d+68>>2]=8}}function Ylb(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=fc-128|0;fc=f;if((c|0)>0){k=(P((b|0)!=0,36)+a|0)+16|0;while(1){h=(c|0)>=16? +16:c;g=h<<1;b=0;while(1){e=b<<2;i=J[e+d>>2]+i|0;J[e+f>>2]=((i+(i>>31)|0)+32768&-65536)>>16;b=b+1|0;if((g|0)!=(b|0))continue;break}b=0;while(1){e=b<<2;j=(e|4)+f|0;J[j>>2]=J[j>>2]-J[e+f>>2];b=b+2|0;if(g>>>0>b>>>0)continue;break}a:{if(J[a+4>>2])break a;b=f;g=h;while(1){e=_x(k,J[b>>2],J[b+4>>2],J[a>>2],0);if(e){J[a+4>>2]=e;break a}b=b+8|0;e=(g|0)>1;g=g-1|0;if(e)continue;break}}c=c-h|0;if((c|0)>0)continue;break}}fc=f+128|0}function Tib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=I[a+302>>1];if(f){a:{b:{c:switch(J[J[J[a>> +2]+96>>2]+64>>2]-35|0){case 5:if(K[a+615|0])break a;g=b+16|0;e=J[b+16>>2]+(c<<3)|0;break b;case 0:break c;default:break a}g=b+16|0;e=J[b+16>>2]+(c<<3)|0}e=J[e>>2];f=Od(d,f,J[a+568>>2]);J[J[g>>2]+(c<<3)>>2]=f+e}e=J[b+24>>2]+c|0;H[e|0]=K[e|0]|8}e=I[a+304>>1];if(e){d:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break d;g=c<<3;f=J[(g+J[b+16>>2]|0)+4>>2];a=Od(d,e,J[a+568>>2]);J[(g+J[b+16>>2]|0)+4>>2]=a+f}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|16}}function QPa(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0,f=0,g=0;c=fc-32|0;fc=c;J[a>>2]=2319304;J[c+16>>2]=13;J[c>>2]=13;J[a+4>>2]=0;J[a+8>>2]=0;a:{if(J[b>>2]==7){d=c+16|0;b:{if(J[Ec(J[b+8>>2],782750,d,0)>>2]!=5){f=a,g=eJ(d),J[f+4>>2]=g;break b}d=c+16|0;yc(d);if(J[Ec(J[b+8>>2],795220,d,0)>>2]==7){Ec(J[c+24>>2],782750,c,0);f=a,g=eJ(c),J[f+4>>2]=g;yc(c);if(J[Ec(J[c+24>>2],806250,c,0)>>2]==3){d=J[c+8>>2];b=vc(8);J[699344]=0;d=aa(3350,b|0,d|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[a+8>>2]=d}yc(c);break b}Cc(0,-1,806555,0)}yc(c+16|0)}fc= +c+32|0;return a|0}a=Z()|0;uc(b);ba(a|0);B()}function Hz(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0;i=fc-240|0;fc=i;h=J[d>>2];J[i+232>>2]=h;d=J[d+4>>2];J[i>>2]=a;J[i+236>>2]=d;m=0-b|0;l=!f;a:{b:{c:{d:{if((h|0)!=1){h=a;f=1;break d}h=a;f=1;if(d)break d;break c}while(1){j=(e<<2)+g|0;d=h-J[j>>2]|0;if((kr(d,a,c)|0)<=0)break c;k=l^-1;l=1;e:{if(!((k|(e|0)<2)&1)){j=J[j-8>>2];k=h+m|0;if((kr(k,d,c)|0)>=0)break e;if((kr(k-j|0,d,c)|0)>=0)break e}J[(f<<2)+i>>2]=d;j=i+232|0;h=$S(j);Iz(j,h);f=f+1|0;e=e+h|0;h=d;if(J[i+ +236>>2]|J[i+232>>2]!=1)continue;break b}break}d=h;break b}d=h;if(!l)break a}_S(b,i,f);CG(d,b,c,e,g)}fc=i+240|0}function UJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;g=J[J[a+72>>2]+16>>2];f=g>>>0<257?1:2;c:{if((f+2|0)!=(c|0)){a=0;Nc(d,1,2366698,0);break c}if(J[a+8>>2]==16)c=J[a+156>>2]+P(J[a+192>>2],5644)|0;else c=J[a+12>>2];wd(b,e+12|0,f);a=1;b=b+f|0;wd(b,e+8|0,1);f=J[e+12>>2];if(f>>>0>=g>>>0){J[e+4>>2]=g;J[e>>2]=f;Nc(d,1,2366724,e);a= +0;break c}wd(b+1|0,(J[c+5584>>2]+P(f,1080)|0)+808|0,1)}fc=e+16|0;return a|0}fa(2365733,2358254,5126,2366681);B()}fa(2358373,2358254,5127,2366681);B()}fa(2358486,2358254,5128,2366681);B()}function sB(a,b){a:{b:{if(b>>>0<=127)break b;if(b>>>0<=2047){Kd(a,(b>>>6|0)+-64<<24>>24);b=b&63|-128;break b}if(b>>>0<=65535){Kd(a,(b>>>12|0)-32<<24>>24);Kd(a,b>>>6&63|-128);b=b&63|-128;break b}if(b>>>0<=2097151){Kd(a,(b>>>18|0)-16<<24>>24);Kd(a,b>>>12&63|-128);Kd(a,b>>>6&63|-128);b=b&63|-128;break b}if(b>>>0<=67108863){Kd(a, +(b>>>24|0)-8<<24>>24);Kd(a,b>>>18&63|-128);Kd(a,b>>>12&63|-128);Kd(a,b>>>6&63|-128);b=b&63|-128;break b}if((b|0)<0)break a;Kd(a,b>>>30|-4);Kd(a,b>>>24&63|-128);Kd(a,b>>>18&63|-128);Kd(a,b>>>12&63|-128);Kd(a,b>>>6&63|-128);b=b&63|-128}Kd(a,b<<24>>24)}}function Yjb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;e=J[b+28>>2];c=kc[J[a+516>>2]](a,1734439792,b,0)|0;a:{if(c)break a;c=af(b,4);J[d+12>>2]=c;if(c)break a;g=a,h=tf(b),I[g+560>>1]=h;g=a,h=tf(b),I[g+562>>1]=h;ve(b);if(L[a+560>>1]>= +2){I[a+562>>1]=0;c=8;break a}c=e;e=L[a+562>>1];g=a,h=_c(c,4,0,e,0,d+12|0),J[g+564>>2]=h;c=J[d+12>>2];if(c)break a;c=af(b,e<<2);J[d+12>>2]=c;if(c)break a;if(e){c=J[a+564>>2];a=0;while(1){f=c+(a<<2)|0;g=f,h=tf(b),I[g>>1]=h;g=f,h=tf(b),I[g+2>>1]=h;a=a+1|0;if((e|0)!=(a|0))continue;break}}ve(b);c=J[d+12>>2]}fc=d+16|0;return c|0}function Wg(a,b){var c=0,d=0,e=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>> +2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=td(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break d}a=td(a,1);if((a|0)==-1)break b}c=0;if(!b)break b;J[b>>2]=e<<8|a}return c}J[a+8>>2]=d|4;return-1}function My(a,b){var c=0,d=0,e=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>> +2]))break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=td(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2]))break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break d}a=td(a,1);if((a|0)==-1)break b}c=0;if(!b)break b;J[b>>2]=a<<8|e}return c}J[a+8>>2]=d|4;return-1}function KY(a){a=a|0;var b=0,c=0;if(a){xI(J[a>> +2]);J[a>>2]=0;b=J[a+72>>2];if(b){uc(b);J[a+72>>2]=0}b=J[a+68>>2];if(b){uc(b);J[a+68>>2]=0}b=J[a+108>>2];if(b){uc(b);J[a+108>>2]=0}b=J[a+116>>2];if(b){c=J[b>>2];if(c){uc(c);b=J[a+116>>2];J[b>>2]=0}uc(b);J[a+116>>2]=0}b=J[a+120>>2];if(b){c=J[b+12>>2];if(c){uc(c);b=J[a+120>>2];J[b+12>>2]=0}c=J[b+4>>2];if(c){uc(c);b=J[a+120>>2];J[b+4>>2]=0}c=J[b+8>>2];if(c){uc(c);b=J[a+120>>2];J[b+8>>2]=0}c=J[b>>2];if(c){uc(c);b=J[a+120>>2];J[b>>2]=0}uc(b);J[a+120>>2]=0}b=J[a+4>>2];if(b){gB(b);J[a+4>>2]=0}b=J[a+8>>2]; +if(b){gB(b);J[a+8>>2]=0}uc(a)}}function iGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-16|0;fc=d;e=yq(d+12|0,O[b>>3],O[b+8>>3],O[b+16>>3],O[b+24>>3],O[b+32>>3],O[b+40>>3]);J[699344]=0;Yk(a,e,0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)==1)break c;J[699344]=0;b=_(4,12)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;J[b>>2]=0;J[699344]=0;aa(2259,b+8|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;uc(b);break b}J[b+4>>2]=a+4;c=J[a+4>>2];J[b>>2]=c;J[c+4>>2]=b;J[a+4>>2]=b;J[a+12>>2]=J[a+12>>2]+1;J[699344]= +0;$(5138,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}a=Z()|0}Jd(e);ba(a|0);B()}Jd(e);fc=d+16|0}function cI(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=fc-32|0;fc=b;d=4;e=b+4|0;a:{b:{while(1){c=kc[J[J[a>>2]+8>>2]](a,e,d)|0;if((c|0)<0){a=Qc(b+8|0,um(J[698583]),2387108,413,2396533,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(c){e=c+e|0;f=c+f|0;d=d-c|0;if(d)continue}break}if((f|0)!=4){a=Qc(b+8|0,J[685886],2387108,582,2396881,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break b;break a}fc=b+32|0;a=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Xea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];a:{b:switch(b-512|0){case 1:J[J[c>>2]>>2]=J[d+196>>2];break a;case 2:J[J[c>>2]>>2]=J[d+200>>2];break a;case 18:if(!K[d+206|0])vQ(a);I[J[c>>2]>>1]=K[d+208|0];I[J[c+4>>2]>>1]=K[d+209|0];break a;case 7:J[J[c>>2]>>2]=K[d+211|0];J[J[c+4>>2]>>2]=d+216;break a;case 8:J[J[c>>2]>>2]= +K[d+212|0];J[J[c+4>>2]>>2]=d+228;break a;case 9:J[J[c>>2]>>2]=K[d+213|0];J[J[c+4>>2]>>2]=d+240;break a;case 0:I[J[c>>2]>>1]=K[d+204|0];break a;case 3:I[J[c>>2]>>1]=L[d+300>>1];break a;default:break b}return kc[J[d+160>>2]](a,b,c)|0}return 1}function cGa(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=J[a+60>>2];e=J[a- -64>>2];if(d>>>0>>0){H[d+4|0]=c;J[d>>2]=b;J[a+60>>2]=d+8;return}a:{i=a+56|0;h=J[i>>2];f=d-h>>3;g=f+1|0;if(g>>>0<536870912){j=f<<3;e=e-h|0;f=e>>2;f=e>>>0>=2147483640?536870911: +f>>>0>g>>>0?f:g;if(f){if(f>>>0>=536870912)break a;g=vc(f<<3)}else g=0;e=j+g|0;H[e+4|0]=c;J[e>>2]=b;b=e+8|0;if((d|0)!=(h|0)){while(1){e=e-8|0;d=d-8|0;J[e>>2]=J[d>>2];H[e+4|0]=K[d+4|0];if((d|0)!=(h|0))continue;break}d=J[i>>2]}J[a+64>>2]=g+(f<<3);J[a+60>>2]=b;J[a+56>>2]=e;if(d)uc(d);return}eh(i);B()}Pd();B()}function TC(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=fc-16|0;fc=h;a:{if((e|0)<=0)break a;i=e&3;if(e>>>0>=4){m=e&-4;while(1){f=h+8|0;H[f+g|0]=c;H[(g|1)+f|0]=(d&255)<<24|c>>>8;H[(g|2)+ +f|0]=(d&65535)<<16|c>>>16;j=d>>>24|0;n=(g|3)+f|0;f=(d&16777215)<<8|c>>>24;H[n|0]=f;g=g+4|0;c=d;d=0;k=k+4|0;if((m|0)!=(k|0))continue;break}}if(i)while(1){f=c;j=d;H[(h+8|0)+g|0]=c;g=g+1|0;c=(d&255)<<24|c>>>8;d=d>>>8|0;l=l+1|0;if((l|0)!=(i|0))continue;break}if(!j&f>>>0<256|(e|0)<=0)break a;Ac(h+8|0,255,e)}a=kc[J[a+8>>2]](J[a+28>>2],b,h+8|0,e)|0;fc=h+16|0;return(a|0)!=(e|0)?-1:0}function P_a(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!a)break a;c=J[a+24>>2];b:{if(!c)break b;b=J[a+8>>2];if(!b|J[b+60>>2])break b; +J[b+60>>2]=c;J[a+24>>2]=0}b=J[a+48>>2];c:{if(!b|J[a+40>>2]<=0)break c;b=J[b>>2];if(!b)break c;c=J[b+44>>2];if(!c)break c;b=J[a+8>>2];if(!b|J[b+60>>2])break c;b=c;while(1){d=b;b=b+1|0;if(K[d|0])continue;break}b=0;d=d-c|0;d:{if((d|0)<0)break d;e=kc[J[663198]](d+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break d}b=xc(e,c,d);H[d+b|0]=0}J[J[a+8>>2]+60>>2]=b}b=J[a+256>>2];if(!b)break a;a=J[a+8>>2];if(!a|J[a+76>>2])break a;J[a+76>>2]=b}}function An(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{if(!J[a+8>>2])break a; +d=J[a+4>>2];b=J[d>>2];c=J[J[a>>2]+4>>2];J[b+4>>2]=c;J[c>>2]=b;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b=d;d=J[b+4>>2];b:{if(!J[b+20>>2])break b;c=J[b+16>>2];f=J[c>>2];e=J[J[b+12>>2]+4>>2];J[f+4>>2]=e;J[e>>2]=f;J[b+20>>2]=0;e=b+12|0;if((e|0)==(c|0))break b;while(1){f=J[c+4>>2];uc(c);c=f;if((e|0)!=(c|0))continue;break}}uc(b);if((a|0)!=(d|0))continue;break}}J[a+40>>2]=-1;J[a+44>>2]=-1048577;J[a+32>>2]=-1;J[a+36>>2]=-1048577;J[a+24>>2]=-1;J[a+28>>2]=2146435071;J[a+16>>2]=-1;J[a+20>>2]=2146435071} +function nVa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-48|0;fc=d;J[d+32>>2]=13;J[d+16>>2]=13;J[d>>2]=13;J[a+4>>2]=-1;J[a>>2]=b+1;e=J[Ec(c,776808,d+32|0,0)>>2];b=vc(12);a:{if((e|0)==3){J[699344]=0;aa(3354,b|0,J[d+40>>2])|0;break a}J[699344]=0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0}e=J[699344];J[699344]=0;if((e|0)==1){a=Z()|0;uc(b);ba(a|0);B()}J[a+8>>2]=b;yc(d+32|0);H[a+16|0]=0;b:{if(J[Ec(c,777838,d+16|0,0)>>2]!=4)break b;b=J[d+24>>2];if((Yc(b)|0)!=1)break b;H[a+16|0]=K[b|0]}yc(d+16|0);J[a+12>>2]=1;if(J[Ec(c, +778503,d,0)>>2]==1)J[a+12>>2]=J[d+8>>2];yc(d);fc=d+48|0;return a|0}function Uka(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;if((c|0)>0){g=J[a+12>>2];while(1){i=c;c=c-1|0;f=I[b>>1];d=0;a:{if((f|0)<=0)break a;d=1023;if(f>>>0>7409)break a;d=f-3314>>2;if(!J[a+4>>2])break a;d=vEb(J[698644],J[698645],1284865837,1481765933);e=jc;d=d+1|0;e=d?e:e+1|0;J[698644]=d;J[698645]=e;h=(+(f|0)+-3314)*.25+ +(e>>>1|0)*4.656612875245797E-10+-.5;if(R(h)<2147483648){d=~~h;break a}d=-2147483648}e=PT((+I[b+2>>1]+ +.5)*3.0517578125E-5,(+I[b+4>>1]+.5)*3.0517578125E-5,J[a+4>>2]);J[g>>2]=d<<14|((e|0)<0?12266:e);b=b+6|0;g=g+4|0;if(i>>>0>1)continue;break}}}function Fu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;g=a+4|0;a=J[a+4>>2];a:{b:{if(!a)break b;d=K[b+11|0];f=d<<24>>24<0;d=f?J[b+4>>2]:d;f=f?J[b>>2]:b;b=g;while(1){e=K[a+27|0];c=e<<24>>24<0;e=c?J[a+20>>2]:e;h=e>>>0>d>>>0;i=h?d:e;c:{if(i){c=dd(c?J[a+16>>2]:a+16|0,f,i);if(c)break c}c=d>>>0>e>>>0?-1:h}c=(c|0)<0;b=c?b:a;a=J[(c?a+4|0:a)>>2];if(a)continue;break}if((b| +0)==(g|0))break b;c=K[b+27|0];a=c<<24>>24<0;d:{c=a?J[b+20>>2]:c;e=c>>>0>>0?c:d;if(e){a=dd(f,a?J[b+16>>2]:b+16|0,e);if(a)break d}if(c>>>0>d>>>0)break b;break a}if((a|0)>=0)break a}b=g}return b|0}function az(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;h=fc-16|0;fc=h;if(2147483631-b>>>0>=c>>>0){if(K[a+11|0]>>>7|0)g=J[a>>2];else g=a;i=g;g=h+4|0;j=g;if(b>>>0<1073741799){J[h+12>>2]=b<<1;J[h+4>>2]=b+c;c=fc-16|0;fc=c;fc=c+16|0;c=h+12|0;c=J[(M[g>>2]>2]?c:g)>>2];if(c>>>0>=11){g=c+16&-16;c=g-1|0;c=(c|0)==11?g: +c}else c=10;c=c+1|0}else c=2147483631;Vs(j,c);c=J[h+4>>2];if(e)hk(c,i,e);if((d|0)!=(e|0))hk((c+e|0)+f|0,e+i|0,d-e|0);b=b+1|0;if((b|0)!=11)pz(i,b);J[a>>2]=c;J[a+8>>2]=J[a+8>>2]&-2147483648|J[h+8>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;fc=h+16|0;return}_d(a);B()}function yD(a){var b=0,c=0,d=0;c=J[a+20>>2]-1|0;if((c|0)>=0)while(1){b=J[(J[J[a+32>>2]+(c>>>4&268435452)>>2]+((c&63)<<3)|0)+4>>2];if(b)uc(b);b=(c|0)>0;c=c-1|0;if(b)continue;break}J[a>>2]=0;J[a+20>>2]=0;b=J[a+24>>2];if(b){c=b-1|0;J[a+ +24>>2]=c;d=J[a+32>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){uc(b);c=J[a+24>>2]}b=c;c=b-1|0;J[a+24>>2]=c;if(b)continue;break}}c=J[a+32>>2];if(c)uc(c);b=J[a+4>>2];if(b){c=b-1|0;J[a+4>>2]=c;d=J[a+12>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){uc(b);c=J[a+4>>2]}b=c;c=b-1|0;J[a+4>>2]=c;if(b)continue;break}}a=J[a+12>>2];if(a)uc(a)}function tr(a,b){var c=0,d=0;d=fc-32|0;fc=d;a:{b:{c=K[a+19|0];c:{if(c){if((c|0)==255)break c;H[a+19|0]=c-1;break c}c=K[a+18|0]+1|0;H[a+18|0]=c;H[a+17|0]=K[a+17|0]<<1|b; +if((c&255)!=8)break c;if(!K[a+16|0]){a=Qc(d+8|0,2386475,2394966,1004,2438472,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}b=J[a+12>>2];if((kc[J[J[b>>2]+12>>2]](b,a+17|0,1)|0)!=1){a=Qc(d+8|0,2387019,2394966,1006,2438472,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}H[a+17|0]=0;H[a+18|0]=0}fc=d+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function t8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+44>>2]=b;io(J[a>>2],b);c=J[a>>2]; +b=J[J[c+712>>2]+3080>>2];c=wh(J[J[c+96>>2]+4>>2],241714);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;e=kc[b|0](c)|0;if(!e)break a;f=J[J[a>>2]+712>>2];c=J[f+1440>>2];h=J[J[a+40>>2]>>2];kc[J[e+4>>2]](J[h>>2],J[a+16>>2],J[a+20>>2],0,0);b=J[f+2024>>2];if(!b)break a;while(1){g=J[a+16>>2];b=b-1|0;i=b<<2;d=J[J[(i+f|0)+2028>>2]+68>>2];b:{if((d|0)!=(c|0)){g=Od(g,c,d);d=Od(J[a+20>>2],c,d);break b}d=J[a+20>>2]}kc[J[e+4>>2]](J[(h+i|0)+4>>2],g,d,0,0);if(b)continue;break}}return 0}function NSa(a,b,c){a=a|0;b=b| +0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-32|0;fc=d;J[d>>2]=13;e=J[a+36>>2];J[d+24>>2]=J[a+32>>2];J[d+28>>2]=e;J[d+16>>2]=9;e=d+16|0;jf(e,b,d,0);a:{if(J[d>>2]!=8){Cc(1,-1,806177,0);yc(d);yc(e);J[a+32>>2]=-1;break a}e=J[d+8>>2];f=Pk(4096);J[c>>2]=0;kc[J[J[e>>2]+20>>2]](e);a=J[c>>2];b=4096;while(1){b:{if((b-4096|0)<(a|0)){if((b|0)>=1073741824){Cc(1,-1,806638,0);break b}b=b<<1;f=YJ(f,b);a=J[c>>2]}g=kc[J[J[e>>2]+40>>2]](e,a+f|0,4096)|0;a=g+J[c>>2]|0;J[c>>2]=a;if((g|0)==4096)continue}break}kc[J[J[e>>2]+24>>2]](e); +yc(d);yc(d+16|0)}fc=d+32|0;return f|0}function pTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,823044,0);return}d=J[c+380>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+380>>2]=0;c=J[a+28>>2];f=Ok(0);d=J[c+116>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+116>>2]=f;c=J[a+8>>2];kc[J[J[c>>2]+108>>2]](c,J[a+28>>2]);c=J[a+28>>2];e=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*65536;b:{if(R(e)< +2147483648){b=~~e;break b}b=-2147483648}J[c+124>>2]=b;b=J[a+8>>2];kc[J[J[b>>2]+116>>2]](b,J[a+28>>2])}function kya(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;if(!(!f|!e)){c=L[a+26>>1];a=J[a+64>>2];d=e&3;k=e-1>>>0<3;l=h<<2;while(1){j=0;h=e;if(d)while(1){J[b>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;b=b+4|0;h=h-1|0;j=j+1|0;if((j|0)!=(d|0))continue;break}if(!k)while(1){J[b>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+4>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+ +8>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];i=c+i|0;J[b+12>>2]=J[J[a+(K[i|0]<<2)>>2]>>2];b=b+16|0;i=c+i|0;h=h-4|0;if(h)continue;break}i=g+i|0;b=b+l|0;f=f-1|0;if(f)continue;break}}}function c1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=0;kc[J[b+8>>2]](J[b>>2],0,160);while(1){d=(a<<7)+2304|0;e=J[P(a,12)+753956>>2];c=0;a:{if((a|0)!=6)while(1){if(K[c+754688|0]&e)kc[J[b+4>>2]](J[b>>2],c+d|0);f=c|1;if(K[f+754688|0]&e)kc[J[b+4>>2]](J[b>>2],d+f|0);c=c+2|0;if((c|0)!=128)continue;break a}while(1){if(!(!(K[c+754688| +0]&e)&(c|0)!=49))kc[J[b+4>>2]](J[b>>2],c+d|0);c=c+1|0;if((c|0)!=128)continue;break}}a=a+1|0;if((a|0)!=9)continue;break}kc[J[b+4>>2]](J[b>>2],2404);kc[J[b+4>>2]](J[b>>2],2405);kc[J[b+4>>2]](J[b>>2],8204);kc[J[b+4>>2]](J[b>>2],8205)}function _Ta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,823044,0);return}d=J[c+384>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+384>> +2]=0;c=J[a+28>>2];f=Ok(0);d=J[c+120>>2];if(d)kc[J[J[d>>2]+4>>2]](d);J[c+120>>2]=f;c=J[a+8>>2];kc[J[J[c>>2]+112>>2]](c,J[a+28>>2]);c=J[a+28>>2];e=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*65536;b:{if(R(e)<2147483648){b=~~e;break b}b=-2147483648}J[c+252>>2]=b;b=J[a+8>>2];kc[J[J[b>>2]+120>>2]](b,J[a+28>>2])}function Ixa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0;if(!(!f|!e)){c=J[a+60>>2];a=L[a+26>>1];d=e&3;k=e-1>>>0<3;l=h<<2;while(1){j=0;h=e;if(d)while(1){J[b>>2]= +J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;b=b+4|0;h=h-1|0;j=j+1|0;if((j|0)!=(d|0))continue;break}if(!k)while(1){J[b>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;J[b+4>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;J[b+8>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];i=a+i|0;J[b+12>>2]=J[J[(K[i|0]<<2)+c>>2]>>2];b=b+16|0;i=a+i|0;h=h-4|0;if(h)continue;break}i=g+i|0;b=b+l|0;f=f-1|0;if(f)continue;break}}}function bJ(a,b){var c=0,d=0;c=fc-96|0;fc=c;a:{if(!a)break a;q_(J[a+348>>2],c,b);b=0;b:{if(K[c|0]!=35)break b;b=1;if(K[c+1|0]==32)break b;b= +2;if(K[c+2|0]==32)break b;b=3;if(K[c+3|0]==32)break b;b=4;if(K[c+4|0]==32)break b;b=5;if(K[c+5|0]==32)break b;b=6;if(K[c+6|0]==32)break b;b=7;if(K[c+7|0]==32)break b;b=8;if(K[c+8|0]==32)break b;b=9;if(K[c+9|0]==32)break b;b=10;if(K[c+10|0]==32)break b;b=11;if(K[c+11|0]==32)break b;b=12;if(K[c+12|0]==32)break b;b=13;if(K[c+13|0]==32)break b;b=K[c+14|0]==32?14:15}d=J[a+164>>2];if(!d)break a;kc[d|0](a,b|c)}fc=c+96|0}function Vca(a,b){a=a|0;b=b|0;var c=0;b=J[a+584>>2];if(b){if(!J[b+116>>2])kc[J[a+516>> +2]](a)|0;c=J[a+596>>2];a:{if(!(K[c|0]|!(H[c+1|0]&1))){if(!J[b+96>>2]){le(J[a+628>>2],J[a>>2],73159,0);J[a+556>>2]=690;J[a+548>>2]=690;J[a+540>>2]=690;kc[J[a+516>>2]](a)|0;J[b+96>>2]=690}I[b+66>>1]=511;break a}J[b+96>>2]=682;I[b+66>>1]=510}I[b+64>>1]=9;J[b+72>>2]=0;J[b+76>>2]=0;J[b+84>>2]=511;J[b+88>>2]=0;a=J[a+608>>2];c=J[b+116>>2]+2064|0;J[b+108>>2]=c;J[b+92>>2]=a<<3;Sg(c,0,38888);a=J[b+116>>2]-8|0;J[b+104>>2]=a;J[b+112>>2]=a+(J[b+84>>2]<<3);return 1}fa(72298,70340,259,71720);B()}function Oi(a,b, +c){var d=0,e=0,f=0,g=0;d=J[a+4>>2];g=J[a+20>>2];a:{b:{c:{if(g){e=85;if(b>>>0>d>>>0)break a;f=J[a+28>>2];d:{if((b|0)>0){e=kc[J[f+4>>2]](f,b)|0;d=64;if(!e)break b;g=J[a+20>>2];break d}d=6;if(b)break b;e=0}J[a>>2]=e;g=kc[g|0](a,J[a+8>>2],e,b)|0;d=J[a>>2];if(b>>>0<=g>>>0)e=0;else{if(d)kc[J[f+8>>2]](f,d);d=0;J[a>>2]=0;e=85}J[a+32>>2]=d;J[a+36>>2]=d?b+d|0:0;J[a+8>>2]=g+J[a+8>>2];if(b>>>0<=g>>>0)break c;break a}e=85;f=J[a+8>>2];if(f>>>0>=d>>>0|d-f>>>0>>0)break a;J[a+8>>2]=b+f;d=f+J[a>>2]|0}J[c>>2]=d; +J[a+32>>2]=0;a=a+36|0;d=0}e=d;J[a>>2]=0}return e}function Acb(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;i=K[a+3|0];h=i^255;a:{if(f>>>0<=254){g=P(b,h);b=K[a+2|0];j=P((g+P(b,e)|0)+255>>>8|0,f)+255>>>8|0;g=b;b=255-f|0;H[a+2|0]=j+(P(g,b)+255>>>8|0);g=P(c,h);c=K[a+1|0];H[a+1|0]=(P((g+P(c,e)|0)+255>>>8|0,f)+255>>>8)+(P(b,c)+255>>>8);c=(P(b,i)+255>>>8)+(P(e,f)+255>>>8)|0;g=P(d,h);d=K[a|0];b=(P((g+P(d,e)|0)+255>>>8|0,f)+255>>>8)+(P(b,d)+255>>>8)|0;break a}H[a+2|0]=(P(b,h)+P(K[a+ +2|0],e)|0)+255>>>8;H[a+1|0]=(P(c,h)+P(K[a+1|0],e)|0)+255>>>8;c=e;b=(P(d,h)+P(K[a|0],e)|0)+255>>>8|0}H[a+3|0]=c;H[a|0]=b}function y9(a,b,c,d){var e=0,f=0;e=fc-16|0;fc=e;a:{if(!d)break a;J[d>>2]=0;f=!a;if(f)break a;Df(a,e+12|0,e+8|0,e+4|0);if((b|0)<0|J[e+12>>2]<=(b|0)|((c|0)<0|J[e+8>>2]<=(c|0)))break a;f=f?-1:J[a+12>>2];a=(P(c,f)<<2)+(a?J[a+40>>2]:0)|0;b:{c:switch(J[e+4>>2]-1|0){case 0:a=J[a+(b>>>3&536870908)>>2]>>>(b^-1)&1;break b;case 1:a=J[a+(b>>>2&1073741820)>>2]>>>((b^-1)<<1)&3;break b;case 3:a= +J[a+(b>>>1&2147483644)>>2]>>>((b^-1)<<2)&15;break b;case 7:a=K[a+b^3];break b;case 15:a=L[(a+(b<<1)^2)>>1];break b;case 31:break c;default:break a}a=J[a+(b<<2)>>2]}J[d>>2]=a}fc=e+16|0}function tX(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=fc-16|0;fc=e;a:{b:{d=J[a+60>>2];if(d)while(1){b=J[d+8>>2];c:{if(!b)break c;c=J[b+56>>2];if(!c)break c;J[c+4>>2]=J[c+4>>2]+1;c=b+56|0;b=J[c>>2];J[e+12>>2]=b;if(!b)break c;J[699344]=0;aa(5145,c|0,0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;J[699344]=0;c=J[b+4>>2]-1|0; +J[b+4>>2]=c;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}d=J[d>>2];if(d)continue;break}tt(a+52|0);fc=e+16|0;return}a=Z()|0;zc(e+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function P3a(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;c=fc-16|0;fc=c;f=J[b+4>>2];e=f;while(1){d=e;e=d+1|0;if(K[d|0])continue;break}d=d-f|0;if(d>>>0<2147483632){a:{if(d>>>0<=10){H[c+15|0]=d;g=c+4|0;break a}h=(d|15)+1|0;g=vc(h);J[c+12>>2]=h|-2147483648; +J[c+4>>2]=g;J[c+8>>2]=d}i=cd(g,f,d)+d|0,j=0,H[i|0]=j;J[b+4>>2]=e;J[699344]=0;e=a;a=K[c+15|0];b=a<<24>>24<0;ca(1618,e|0,(b?J[c+4>>2]:c+4|0)|0,(b?J[c+8>>2]:a)|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}_d(c+4|0);B()}function zSa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+152>>2]=13;J[a>>2]=2218092;J[a+4>>2]=15;J[a+8>>2]=0;J[a+148>>2]=e;J[a+144>>2]=d;J[a+12>>2]=b;Pe(f,a+152|0);d=0;J[a+4>>2]=0;J[a+168>> +2]=1;if(J[a+12>>2]>0)while(1){b=d<<2;e=b+a|0;b=J[b+c>>2];J[e+16>>2]=b;if(Dd(b,808870))J[a+168>>2]=0;a:{if(!Dd(J[e+16>>2],809137)){b=J[a+4>>2]|1;break a}if(!Dd(J[e+16>>2],809580)){b=J[a+4>>2]|2;break a}if(!Dd(J[e+16>>2],809700)){b=J[a+4>>2]|4;break a}b=15;if(Dd(J[e+16>>2],810224))break a;b=J[a+4>>2]|8}J[a+4>>2]=b;d=d+1|0;if((d|0)>2])continue;break}return a|0}function bma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2463820;a:{c=J[b+8>>2];e=J[b+4>>2];if((c| +0)!=(e|0)){d=a+4|0;c=c-e|0;e=c>>2;if(e>>>0>=1073741824){J[699344]=0;$(1587,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;B()}J[699344]=0;c=_(4,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[a+8>>2]=c;J[a+4>>2]=c;J[a+12>>2]=(e<<2)+c;d=J[b+4>>2];b=J[b+8>>2];if((d|0)!=(b|0))while(1){J[c>>2]=J[d>>2];c=c+4|0;d=d+4|0;if((b|0)!=(d|0))continue;break}J[a+8>>2]=c}return a|0}c=Z()|0;b=J[d>>2];if(b){J[a+8>>2]=b;uc(b)}ba(c|0);B()}function Otb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;J[c+ +12>>2]=0;a:{b:{d=wO(a,J[b+48>>2],J[b+44>>2],c+12|0,c+8|0,c+4|0);c:{if(d)break c;e=J[b+32>>2];f=(e+J[c+4>>2]|0)+2|0;d:{if(f>>>0<=M[a+424>>2]){g=J[a+428>>2]+8|0;break d}g=kc[J[a+152>>2]](f)|0;if(!g)break b;e=J[b+32>>2]}d=g;if(e)d=xc(d,J[b+36>>2],e)+J[b+32>>2]|0;H[d|0]=0;H[d+1|0]=0;e=J[c+4>>2];if(e)xc(d+2|0,J[c+12>>2],e);d=Ce(a,J[b>>2],f,g);if(M[a+424>>2]>=f>>>0)break c;kc[J[a+156>>2]](g,f)}b=J[c+12>>2];if(!b)break a;kc[J[a+156>>2]](b,J[c+8>>2]);break a}d=1;Jc(a,1,0,0)}fc=c+16|0;return d|0}function Fzb(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=J[J[a+544>>2]+88>>2];g=J[f+1176>>2]+P(J[f+1168>>2],J[a+572>>2])|0;c=J[a+588>>2];b=J[a+644>>2];a:{if(K[f+56|0]){if((c|0)<=0)break a;while(1){e=0;c=K[g|0];if((c|0)!=L[f+836>>1]){e=P(K[K[f+44|0]+213080|0],c);c=255}else c=0;H[b+3|0]=c;H[b+2|0]=e;H[b+1|0]=e;H[b|0]=e;b=b+4|0;g=g+1|0;d=d+1|0;if((d|0)>2])continue;break}break a}if((c|0)<=0)break a;while(1){c=K[g|0];d=K[f+44|0];H[b+3|0]=255;d=P(c,K[d+213080|0]);H[b+2|0]=d;H[b+1|0]=d;H[b|0]=d;b=b+4|0;g=g+1|0;e=e+1| +0;if((e|0)>2])continue;break}}return 0}function B6(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;g=fc-16|0;fc=g;J[g+12>>2]=0;h=he(a,(L[c+8>>1]>>>1|0)+1|0,g+12|0);e=0;a:{if(J[g+12>>2])break a;e=yd(b,J[c+12>>2]);J[g+12>>2]=e;b:{if(e)break b;e=af(b,L[c+8>>1]);J[g+12>>2]=e;if(e)break b;e=h;c:{f=L[c+8>>1];if(f>>>0>=2){i=f>>>1|0;f=J[b+32>>2];while(1){if(K[f|0])break c;if(!(kc[d|0](H[f+1|0])|0))break c;H[e|0]=K[f+1|0];f=f+2|0;e=e+1|0;i=i-1|0;if(i)continue;break}}H[e|0]=0;ve(b);e=h;break a}ve(b)}if(h)kc[J[a+ +8>>2]](a,h);J[c+12>>2]=0;I[c+8>>1]=0;b=J[c+16>>2];if(b)kc[J[a+8>>2]](a,b);J[c+16>>2]=0;e=0}fc=g+16|0;return e}function ucb(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;a:{if((d|0)<=0)break a;f=J[a+112>>2];if(!f)break a;a=J[J[a+480>>2]+24>>2];h=J[a+8>>2];i=J[a+4>>2];j=J[a>>2];l=f-1|0;m=f&1;while(1){a=k<<2;e=J[a+c>>2];a=J[a+b>>2];if(m){H[e|0]=K[K[a+2|0]+h|0]+(K[K[a+1|0]+i|0]+K[K[a|0]+j|0]|0);e=e+1|0;a=a+3|0;g=l}else g=f;if((f|0)!=1)while(1){H[e|0]=K[K[a+2|0]+h|0]+(K[K[a+ +1|0]+i|0]+K[K[a|0]+j|0]|0);H[e+1|0]=K[K[a+5|0]+h|0]+(K[K[a+4|0]+i|0]+K[K[a+3|0]+j|0]|0);e=e+2|0;a=a+6|0;g=g-2|0;if(g)continue;break}k=k+1|0;if((k|0)!=(d|0))continue;break}}}function lU(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;d=a+8|0;if(!kH(d,b)){$l(d,b);b=J[a>>2];O[c+8>>3]=Q(O[a+40>>3]);d=J[a+48>>2]!=0;J[c+4>>2]=J[a+52>>2]?d|2:d;kc[J[J[b>>2]+144>>2]](b,a+24|0,c+8|0,c+4|0,2443456,2443464)|0;b=J[a>>2];kc[J[J[b>>2]+76>>2]](b);b=J[a>>2];f=a,g=+(kc[J[J[b>>2]+48>>2]](b)|0),O[f+80>>3]=g; +b=J[a>>2];f=a,g=+(kc[J[J[b>>2]+52>>2]](b)|0),O[f+88>>3]=g;b=J[a>>2];f=a,g=+(kc[J[J[b>>2]+56>>2]](b)|0),O[f+96>>3]=g;b=J[a>>2];e=+(kc[J[J[b>>2]+44>>2]](b)|0);O[a+104>>3]=e;O[a+112>>3]=O[a+88>>3]*.35277777777777775*O[a+40>>3]/e;mU(a)}fc=c+16|0}function hZa(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;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=fc-256|0;fc=i;if(g){k=(e<<2)+c|0;a=J[a+416>>2];l=J[(a+(J[b+16>>2]<<2)|0)+84>>2];m=J[(a+(J[b+4>>2]<<2)|0)+44>>2];while(1){kc[m|0](i,k,f);n=(j<<7)+d|0;e= +0;while(1){c=e<<2;a=J[c+l>>2];h=a>>1;o=(e<<1)+n|0;c=J[c+i>>2];a:{if((c|0)<0){c=h-c|0;if((c|0)>=(a|0))a=(c|0)/(a|0)|0;else a=0;c=0-a|0;break a}h=c+h|0;c=0;if((h|0)<(a|0))break a;c=(h|0)/(a|0)|0}I[o>>1]=c;e=e+1|0;if((e|0)!=64)continue;break}f=J[b+36>>2]+f|0;j=j+1|0;if((j|0)!=(g|0))continue;break}}fc=i+256|0}function fxa(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;g=J[b>>2];J[a+124>>2]=g;h=J[b+4>>2];J[a+128>>2]=h;d=J[b+8>>2];J[a+132>>2]=d;e=J[b+12>>2];b=(d-g|0)/2|0;J[a+100>>2]=b;J[a+136>>2]= +e;f=(e-h|0)/2|0;J[a+104>>2]=f;c=b+f|0;d=(d+g|0)/2|0;e=(e+h|0)/2|0;a:{if((b|0)>(f|0)){i=Y(+(P(c,b-f|0)|0));b:{if(R(i)<2147483648){c=~~i;break b}c=-2147483648}g=d-c|0;d=d+c|0;c=f;h=e;break a}i=Y(+(P(c,f-b|0)|0));c:{if(R(i)<2147483648){c=~~i;break c}c=-2147483648}j=c;h=j+e|0;c=b;b=f;g=d;e=e-j|0}J[a+120>>2]=e;J[a+116>>2]=g;J[a+108>>2]=d;J[a+92>>2]=b;J[a+96>>2]=c;J[a+112>>2]=h}function fZ(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{c:{if(b){if(!a)break c;if(!c)break b;if(!d)break a;g=J[b+8>>2];e=J[b>>2]; +if(!e){J[b>>2]=0;return 1}f=1;i=e&1;if((e|0)==1)e=0;else{e=e&-2;while(1){h=0;d:{if(!f)break d;h=0;if(!(kc[J[g>>2]](a,c,d)|0))break d;h=(kc[J[g+4>>2]](a,c,d)|0)!=0}f=h;g=g+8|0;j=j+2|0;if((e|0)!=(j|0))continue;break}e=f^1}f=i?0:f;if(!(e|!i))f=(kc[J[g>>2]](a,c,d)|0)!=0;J[b>>2]=0;return f}fa(2364625,2358254,8861,2364648);B()}fa(2358373,2358254,8862,2364648);B()}fa(2358446,2358254,8863,2364648);B()}fa(2358486,2358254,8864,2364648);B()}function dLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=vc(8);J[699344]= +0;d=_(3351,f|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){a:{if(K[a+24|0]){e=J[a+20>>2];if(J[e>>2]<=0)break a;f=0;while(1){b:{c:{d:{e:{f:{e=K[J[e+4>>2]+f|0];switch(e-38|0){case 0:break d;case 24:break e;case 22:break f;default:break c}}od(d,805433);break b}od(d,805852);break b}od(d,806271);break b}Kd(d,e<<24>>24)}f=f+1|0;e=J[a+20>>2];if((f|0)>2])continue;break}break a}od(d,796277);Qh(d,J[a+20>>2]);od(d,798243)}a=kc[b|0](c,J[d+4>>2],J[d>>2])|0;uc(Zc(d));return a|0}a=Z()|0;uc(f);ba(a|0);B()}function axb(a){a= +a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=J[a+2308>>2];if(b){d=J[a+2300>>2];f=J[a+2312>>2];c=J[a+2316>>2];while(1){e=K[f|0];if(e>>>0>2]){b=P(e,3)+d|0;g=kc[J[a+2296>>2]](K[b+68|0])|0;h=kc[J[a+2296>>2]](K[b+69|0])|0;i=kc[J[a+2296>>2]](K[b+70|0])|0;b=65535;if(!(!K[d+56|0]|M[d+844>>2]<=e>>>0))b=kc[J[a+2296>>2]](K[(d+e|0)+848|0])|0;H[c+7|0]=(b|0)!=0;H[c+6|0]=b>>>8;H[c+5|0]=(i|0)!=0;H[c+4|0]=i>>>8;H[c+3|0]=(h|0)!=0;H[c+2|0]=h>>>8;H[c+1|0]=(g|0)!=0;H[c|0]=g>>>8;b=J[a+2308>>2]}c=c+8|0;f=f+1|0; +j=j+1|0;if(j>>>0>>0)continue;break}}return 0}function p4(a,b,c,d){var e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;a:{g=Ye(b,e+12|0,c);c=J[g>>2];if(c)b=0;else{c=vc(32);J[e+4>>2]=b+4;J[e>>2]=c;f=c+16|0;H[e+8|0]=0;d=J[d>>2];b:{if(H[d+11|0]>=0){h=J[d+4>>2];J[f>>2]=J[d>>2];J[f+4>>2]=h;J[f+8>>2]=J[d+8>>2];break b}h=J[d+4>>2];d=J[d>>2];J[699344]=0;ca(15,f|0,d|0,h|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}J[c+28>>2]=0;J[c+8>>2]=J[e+12>>2];J[c>>2]=0;J[c+4>>2]=0;J[g>>2]=c;d=c;f=J[J[b>>2]>>2];if(f){J[b>>2]=f;d=J[g>> +2]}Oc(J[b+4>>2],d);J[b+8>>2]=J[b+8>>2]+1;b=1}H[a+4|0]=b;J[a>>2]=c;fc=e+16|0;return}a=Z()|0;j4(e);ba(a|0);B()}function g9(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=Q(0);f=fc-16|0;fc=f;g=!a;a:{if(g)break a;g=g?0:J[a>>2];j=jo(g);if((g|0)<=0)break a;while(1){d=f+8|0;h=f+12|0;if(h)J[h>>2]=0;if(d)J[d>>2]=0;b:{if(!a|(i|0)<0|J[a>>2]<=(i|0))break b;e=J[J[a+12>>2]+(i<<2)>>2];if(!e)break b;J[e+16>>2]=J[e+16>>2]+1;if(h)J[h>>2]=0;if(d)J[d>>2]=0;if(h)J[h>>2]=J[e+8>>2];if(d)J[d>>2]=J[e+12>>2];d=J[e+16>>2]-1|0;J[e+ +16>>2]=d;if((d|0)>0)break b;uc(e)}k=Q(0);c:{if(J[f+12>>2]>(b|0)|J[f+8>>2]>(c|0))break c;k=Q(1)}mi(j,k);i=i+1|0;if((g|0)!=(i|0))continue;break}}fc=f+16|0;return j}function XK(a){var b=0,c=0,d=0;d=fc-16|0;fc=d;b=kc[J[663195]](36)|0;a:{if(!b){J[d>>2]=5402;Hc(0,0,0,0,0,8,2,3,5402,0,0,0,32879,d);b=0;break a}J[b>>2]=0;J[b+4>>2]=0;J[b+32>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;c=b+16|0;J[c>>2]=0;J[c+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;c=Wr(J[663196]<<1);J[b+16>>2]=c;if(!c){kc[J[663199]](b);b=0;break a}b:{if(J[c+32>> +2]|(J[c+12>>2]&-2)==2)break b;J[c+12>>2]=0;c=J[c+28>>2];if(!c)break b;J[c+12>>2]=0}c=gL(a);J[b+12>>2]=c;a=0;if(c)a=Wr(J[663196]<<1);J[b+8>>2]=0;J[b+20>>2]=a;J[b+32>>2]=0;J[b+24>>2]=-1;J[b>>2]=0;J[b+4>>2]=0}fc=d+16|0;return b}function TRa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=vc(24);c=J[a+12>>2];d=J[J[c>>2]+8>>2];J[699344]=0;c=_(d|0,c|0)|0;d=J[699344];J[699344]=0;a:{if((d|0)==1)break a;d=J[a+16>>2];J[b+16>>2]=d;J[b+12>>2]=c;J[b>>2]=2217988;J[b+4>>2]=15;J[b+8>>2]=0;e=J[J[c>>2]+28>>2];J[699344]=0;e=_(e| +0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[699344]=0;d=aa(3551,P(d+1|0,e)|0,1)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b+20>>2]=d;J[b+4>>2]=J[c+4>>2];c=J[a+16>>2];e=J[a+20>>2];a=J[a+12>>2];xc(d,e,P(kc[J[J[a>>2]+28>>2]](a)|0,c+1|0));return b|0}a=Z()|0;uc(b);ba(a|0);B()}function hw(a,b,c){var d=0,e=0,f=0;a:{b:{c:{d=J[b>>2];if(!d){if(J[b+8>>2]<=0)break b;c=0;if(a)break c;while(1){Bd(0,J[J[b+16>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}break b}if(!a|!c)break a;hf(a, +d,c);Ae(a,d,c);return}while(1){f=c<<2;d=J[f+J[b+16>>2]>>2];d:{if(!d)break d;e=J[a+272>>2];if(!e)break d;hf(a,d,e);Ae(a,d,e);d=J[J[b+16>>2]+f>>2]}Bd(a,d);c=c+1|0;if((c|0)>2])continue;break}}if(J[b+12>>2])Bd(a,J[b+16>>2]);c=J[a+272>>2];d=J[a+228>>2];e:{if(c>>>0<=d>>>0)break e;b=J[a+268>>2];if(!b)break e;c=c-d|0;hf(a,b,c);Ae(a,b,c)}XW(a)}}function UZa(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;ao(c,0,d,0,J[a+272>>2],J[a+28>>2]);g=J[a+272>>2];a:{if((g|0)<=0)break a;c=P(J[b+36>> +2],J[b+28>>2]);b=J[a+28>>2];c=c-b|0;if((c|0)<=0)break a;a=0;if(g>>>0>=4){j=g&-4;while(1){e=a<<2;f=b+J[e+d>>2]|0;Ac(f,K[f-1|0],c);f=b+J[(e|4)+d>>2]|0;Ac(f,K[f-1|0],c);f=b+J[(e|8)+d>>2]|0;Ac(f,K[f-1|0],c);e=b+J[(e|12)+d>>2]|0;Ac(e,K[e-1|0],c);a=a+4|0;h=h+4|0;if((j|0)!=(h|0))continue;break}}g=g&3;if(!g)break a;while(1){e=b+J[(a<<2)+d>>2]|0;Ac(e,K[e-1|0],c);a=a+1|0;i=i+1|0;if((g|0)!=(i|0))continue;break}}}function rra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=fc-32|0;fc=f;a:{b:{c=J[a+4>>2];if(J[c+4>>2]>= +2){d=vc(52);J[699344]=0;c=aa(5437,d|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[c+4>>2]=J[c+4>>2]+1;d=J[a+4>>2];c:{if(!d)break c;e=J[d+4>>2]-1|0;J[d+4>>2]=e;if(e)break c;kc[J[J[d>>2]+4>>2]](d)}J[a+4>>2]=c}if(!(J[c+20>>2]<=(b|0)&J[c+24>>2]>=(b|0))){a=Qc(f+8|0,18085,12650,545,19883,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}fc=f+32|0;return J[c+8>>2]+(b-J[c+12>>2]<<3)|0}a=Z()|0;uc(d);ba(a|0);B()}B()}function fua(a,b,c){a=a|0;b=b|0;c=c| +0;var d=0,e=0,f=0,g=0;g=fc-32|0;fc=g;a:{e=J[a+24>>2];b:{if(!(J[a+36>>2]<0?e:0)){a=Qc(g+8|0,2401967,2390750,480,2427099,0);break b}d=J[a+28>>2];f=J[a+32>>2];if((d|0)<(f|0)){d=J[a+16>>2];kc[J[J[d>>2]+20>>2]](d,f,0,0)|0;d=J[a+32>>2];J[a+28>>2]=d;e=J[a+24>>2]}e=J[e+8>>2];if((e|0)>=(d|0))break a;a=Qc(g+8|0,2402079,2390750,488,2427099,0)}J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0)}B()}f=J[a+16>>2];b=kc[J[J[f>>2]+8>>2]](f,b,(e|0)<(c+d|0)?e-d|0:c)|0;J[a+28>>2]=b+J[a+ +28>>2];fc=g+32|0;return b|0}function Bba(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+20>>2]=0;a:{d=J[a+4>>2];b:{c:{if(!d)break c;b=J[c+8>>2];d:{if(b&7)break d;e=J[c+64>>2];if(!((e|0)<0|J[c+60>>2]<(e|0))){J[c+8>>2]=b|4;break d}b=J[c+28>>2];J[c+28>>2]=b-1;e:{if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;b=K[b|0];break e}b=td(c,1);if((b|0)==-1)break d;d=J[a+4>>2]}H[a+12|0]=b;b=-1;d=d-1|0;J[a+16>>2]=d;if(!d)break a;d=Dc(d);J[a+20>>2]=d;if(!d)break b;b=0;if((Ai(c,d,J[a+16>>2])|0)==J[a+16>> +2])break b}a=J[a+20>>2];if(!a)break c;uc(a)}b=-1}return b|0}J[a+20>>2]=0;return 0}function kra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;b=J[b>>2];e=J[(b?b+12|0:2743576)>>2];f=sh(d+4|0,d+12|0,P(Yc(e),3)+1|0,1);b=J[d+12>>2];while(1){a:{b:{c=K[e|0];if((c|0)!=47){if(c){c:{if(!((c-48&255)>>>0<10|((c&223)-65&255)>>>0<26))if(!Cg(22239,c,15))break c;H[b|0]=c;break a}H[b|0]=37;H[b+2|0]=K[(c&15)+2438624|0];H[b+1|0]=K[(c>>>4|0)+2438624|0];b=b+2|0;break a}H[b|0]=0;J[699344]=0;aa(6251,a|0,J[d+12>>2])| +0;a=J[699344];J[699344]=0;if((a|0)!=1)break b;a=Z()|0;hd(f);ba(a|0);B()}H[b|0]=47;break a}hd(f);fc=d+16|0;return}b=b+1|0;e=e+1|0;continue}}function b2a(a,b){a=a|0;b=b|0;var c=0;c=J[a+8>>2];a:{b:{if((b|0)<=1){J[c+48>>2]=0;H[c+68|0]=0;J[c+60>>2]=0;I[c+52>>1]=0;if((b|0)!=1){I[c+54>>1]=0;I[c+56>>1]=0;I[c+58>>1]=0;if(K[c+99|0]!=107)break a;if(J[c+64>>2]!=1)break b;b=J[c+40>>2];H[b+36|0]=0;J[b+44>>2]=0;J[b+48>>2]=0;break b}if(K[c+99|0]!=107|J[c+64>>2]!=1)break a;a=J[c+40>>2];H[a+36|0]=0;J[a+44>>2]=0;J[a+ +48>>2]=0;return}I[c+54>>1]=0;I[c+56>>1]=0;I[c+58>>1]=0;if(K[c+99|0]!=107)break a}if(!K[a+63|0]){J[a+76>>2]=1126769691;H[a+63|0]=4}if(J[c+64>>2]!=1)break a;a=J[c+40>>2];J[a+52>>2]=1;J[a+56>>2]=0}}function T2(a,b,c){var d=0,e=0,f=0;d=0;a:{if(J[c>>2]>0)break a;e=J[a+4>>2];d=1;if((e|0)>=(b|0))break a;b:{d=b+e|0;if((d|0)<=(b|0)|(d|0)<=0)break b;e=J[a+52>>2];f=ji(d);if(!f)break b;if((e|0)>=0){b=J[a+4>>2];c=e+1|0;b=(b|0)<(c|0)?b:c;xc(f,J[a>>2],(b|0)<(d|0)?b:d)}if(K[a+8|0])Nf(J[a>>2]);H[a+8|0]=1;J[a+4>>2]= +d;J[a>>2]=f;return 1}c:{if((b|0)<=0)break c;d=J[a+52>>2];e=ji(b);if(!e)break c;if((d|0)>=0){c=J[a+4>>2];d=d+1|0;c=(c|0)<(d|0)?c:d;xc(e,J[a>>2],(b|0)>(c|0)?c:b)}if(K[a+8|0])Nf(J[a>>2]);H[a+8|0]=1;J[a+4>>2]=b;J[a>>2]=e;return 1}J[c>>2]=7;d=0}return d}function uK(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=J[a+4>>2];if(!c)break a;e=a+4|0;d=e;while(1){f=fq(c+16|0,b);d=f?d:c;c=J[(f?c+4|0:c)>>2];if(c)continue;break}if((d|0)==(e|0))break a;if(fq(b,d+16|0))break a;b=J[d+24>>2];if(b){c=J[b+24>>2];if(c)uc(c); +c=J[b+28>>2];if(c)uc(c);if(H[b+23|0]<0)uc(J[b+12>>2]);if(H[b+11|0]<0)uc(J[b>>2]);uc(b)}b=J[d+4>>2];b:{if(!b){b=d;while(1){c=J[b+8>>2];e=J[c>>2]!=(b|0);b=c;if(e)continue;break}break b}while(1){c=b;b=J[b>>2];if(b)continue;break}}if(J[a>>2]==(d|0))J[a>>2]=c;J[a+8>>2]=J[a+8>>2]-1;ED(J[a+4>>2],d);uc(d)}}function l5a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[c>>2]=-1;d=J[a+188>>2];if(!d)return 0;if(J[a+216>>2])return b|0;e=J[d+36>>2];if(!e)return b|0;if((e|0)>0){e=0;while(1){g=d;d=J[J[d+40>>2]+(e<< +2)>>2];a:{if(ls(g,d))break a;b:{d=J[d+4>>2];if((d|0)<=1937337697){if(!d)break b;if((d|0)!=1634889070)break a;break b}if((d|0)==1937337698)break b;if((d|0)!=1970170211)break a;f=0;d=Gh(J[a+188>>2],b);if(!d)break a;J[c>>2]=e;return d|0}f=Gh(J[a+188>>2],b);if(!f){f=0;break a}J[c>>2]=e}e=e+1|0;d=J[a+188>>2];if((e|0)>2])continue;break}}return f|0}function d6a(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=Q(0),l=Q(0),m=Q(0),n=0;g=fc-16|0;fc=g;a:{b:{i=a+16|0;if(J[i+84>>2]> +0){h=J[a+8>>2];if(h)break b}J[b>>2]=0;J[c>>2]=0;J[d>>2]=0;J[e>>2]=0;J[f>>2]=0;a=0;break a}N[g+12>>2]=N[a+24>>2];m=N[a+28>>2];N[g+4>>2]=N[a+32>>2];j=J[h+188>>2];n=I[j+82>>1];k=Q(O[h+112>>3]/1E3*O[h+128>>3]/72);l=Q(Q(I[j+80>>1])*k);N[g>>2]=N[a+36>>2]-l;N[g+8>>2]=m-l;q4(i,g+12|0,g+8|0);q4(i,g+4|0,g);N[b>>2]=N[g+12>>2];N[c>>2]=N[g+8>>2];N[d>>2]=N[g+4>>2];N[e>>2]=N[g>>2];N[f>>2]=Q(n|0)*k;a=1}fc=g+16|0;return a|0}function aZ(){var a=0,b=0,c=0;a:{b=Ge(1,216);if(b){J[b>>2]=1;H[b+176|0]=K[b+176|0]|6;a=Ge(1, +5644);J[b+12>>2]=a;if(!a)break a;a=Ge(1,1E3);J[b+16>>2]=a;if(!a)break a;J[b+48>>2]=0;J[b+52>>2]=0;J[b+44>>2]=-1;J[b+20>>2]=1E3;b:{c=Ge(1,48);if(c){J[c+24>>2]=0;J[c+32>>2]=100;a=Ge(100,24);J[c+28>>2]=a;if(a)break b;uc(c)}J[b+188>>2]=0;break a}J[c+40>>2]=0;J[b+188>>2]=c;a=hB();J[b+184>>2]=a;if(!a)break a;a=hB();J[b+180>>2]=a;if(!a)break a;c:if(!Xi(2363694))break c;a=iY();J[b+200>>2]=a;if(!a){a=iY();J[b+200>>2]=a;if(!a)break a}}else b=0;return b}xI(b);return 0}function aOa(a,b,c){a=a|0;b=b|0;c=c|0;var d= +0,e=0,f=0,g=0,h=0;if((c|0)<=0)return 0;f=a+40|0;e=J[a+296>>2];while(1){a:{d=J[a+300>>2];if(e>>>0>=d>>>0){J[a+300>>2]=f;J[a+296>>2]=f;e=J[a+304>>2]+(d-f|0)|0;J[a+304>>2]=e;if(J[a+32>>2]){d=J[a+36>>2]+J[a+28>>2]|0;if((d|0)<=(e|0))break a;d=(d|0)>=(e+256|0)?256:d-e|0}else d=256;h=J[a+24>>2];_B(J[h>>2],e,0);d=ge(f,1,d,J[h>>2])+f|0;J[a+300>>2]=d;e=J[a+296>>2];if(e>>>0>=d>>>0)break a}h=e;e=d-e|0;d=c-g|0;d=(d|0)>(e|0)?e:d;xc(b+g|0,h,d);e=d+J[a+296>>2]|0;J[a+296>>2]=e;g=d+g|0;if((g|0)<(c|0))continue}break}return g| +0}function Gvb(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;var h=0,i=0,j=0;a:{if(f){if(((c+1|0)/2|0)<=(b|0)){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){H[g|0]=K[f|0];b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+1|0]=b;f=f+2|0;e=e+2|0;g=g+2|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){H[g|0]=K[e|0];b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g+1|0]=b;f=f+2|0;e=e+2|0;g=g+2|0;a=a+1|0;if((d| +0)!=(a|0))continue;break}break a}xc(g,e,d<<1)}return 0}function bA(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=(c|0)){c=(c-b|0)+b|0;f=J[a+4>>2];a:{if((c|0)==(f|0)){e=b;break a}e=b;while(1){g=J[c>>2];h=J[c+4>>2];J[c>>2]=0;J[c+4>>2]=0;d=J[e+4>>2];J[e>>2]=g;J[e+4>>2]=h;b:{if(!d)break b;g=J[d+4>>2];J[d+4>>2]=g-1;if(g)break b;kc[J[J[d>>2]+8>>2]](d);Gc(d)}e=e+8|0;c=c+8|0;if((f|0)!=(c|0))continue;break}c=J[a+4>>2]}if((c|0)!=(e|0))while(1){c=c-8|0;d=J[c+4>>2];c:{if(!d)break c;f=J[d+4>>2];J[d+ +4>>2]=f-1;if(f)break c;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if((c|0)!=(e|0))continue;break}J[a+4>>2]=e}return b|0}function ak(a,b){var c=0,d=0,e=0;c=-1;a:{d=J[a+8>>2];b:{if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;e=J[a+28>>2];J[a+28>>2]=e-1;c:{if((e|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;e=K[c|0];break c}e=td(a,1);if((e|0)==-1)break b;d=J[a+8>>2]}c=-1;if(d&7)break b;c=J[a+64>>2];if((c|0)>=0&(c|0)<=J[a+60>>2])break a;c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;d:{if((d| +0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break d}a=td(a,1);if((a|0)==-1)break b}J[b>>2]=e<<8|a;c=0}return c}J[a+8>>2]=d|4;return-1}function PLa(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;a:{if(!J[a+144>>2])break a;c=J[b+596>>2];if(J[c+28>>2]!=1)break a;c=J[J[c+24>>2]>>2];if(J[c+12>>2]!=2)break a;f=O[b+56>>3];d=O[b+24>>3];k=J[c>>2];g=O[k+8>>3];e=O[b+40>>3];c=J[c+4>>2];l=O[c+8>>3];h=f+(d*g+e*l);j=d;d=O[k>>3];i=O[c>>3];f=f+(j*d+i*e);e=O[b+48>>3];m= +O[b+16>>3];j=i;i=O[b+32>>3];d=e+(m*d+j*i);g=e+(m*g+i*l);if(d!=g&f!=h)break a;b=J[J[a+116>>2]+212>>2];a=vc(40);c=f>h;e=c?h:f;h=c?f:h;J[a+32>>2]=e==h;O[a+24>>3]=h;c=d>g;O[a+16>>3]=c?d:g;O[a+8>>3]=e;O[a>>3]=c?g:d;sd(b,a)}}function xVa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-48|0;fc=c;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;d=J[a>>2];a:{if(J[d+24>>2]){Rm(a,J[a+32>>2],806716,b);break a}Po(b,J[J[d>>2]+24>>2]);b:{if(J[Ec(J[a+32>>2],786188,c+32|0,0)>>2]==6){d=J[c+40>>2];if(J[d+12>>2]<=0)break b;a=0;while(1){Sc(d, +a,c+16|0,0);c:{if(J[c+16>>2]!=7)break c;d=i0(J[c+24>>2],c);if(J[d>>2]==7){hg(J[b+8>>2],d);break c}yc(d)}yc(c+16|0);a=a+1|0;d=J[c+40>>2];if((a|0)>2])continue;break}break b}a=i0(J[a+32>>2],c);if(J[a>>2]==7){hg(J[b+8>>2],a);break b}yc(a)}yc(c+32|0)}fc=c+48|0;return b|0}function mUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+116>>2];b:{if((kc[J[J[b>>2]+12>>2]](b)|0)==10){Cr(a,0);break b}b=J[a+8>>2]; +kc[J[J[b>>2]+204>>2]](b,J[a+28>>2])}b=J[J[a+28>>2]+120>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==10){bu(a);break a}b=J[a+8>>2];kc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2];kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;_f(b)}}function lUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+116>>2];b:{if((kc[J[J[b>> +2]+12>>2]](b)|0)==10){Cr(a,1);break b}b=J[a+8>>2];kc[J[J[b>>2]+208>>2]](b,J[a+28>>2])}b=J[J[a+28>>2]+120>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==10){bu(a);break a}b=J[a+8>>2];kc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2];kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;_f(b)}}function ZSa(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;c=J[a+28>>2];e=J[c+596>>2];if(!(J[e+ +28>>2]>0|J[e>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,829884,0);return}g=O[b+24>>3];a=J[b+24>>2];d=O[b+40>>3];h=J[b+40>>2];i=O[c+608>>3];j=O[b+8>>3];k=J[b+8>>2];l=J[b>>2];m=J[b+16>>2];n=J[b+32>>2];f=J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3];O[c+608>>3]=f;o=O[c+600>>3];d=(n|0)==1?+(h|0):d;O[c+600>>3]=d;Nm(e,o,i,(l|0)==1?+(k|0):j,(m|0)==1?+(a|0):g,d,f)}function Hv(a){var b=0,c=0,d=0,e=0,f=0,g=0;A(+a);e=v(1)|0;g=v(0)|0; +c=e&2147483647;if(c>>>0>=1072693248){if(!(c-1072693248|g))return a*1.5707963267948966+7.52316384526264E-37;return 0/(a-a)}a:{if(c>>>0<=1071644671){if(c+-1048576>>>0<1044381696)break a;return a*Iv(a*a)+a}b=(1-R(a))*.5;a=Y(b);f=Iv(b);b:{if(c>>>0>=1072640819){a=a*f+a;a=1.5707963267948966-(a+a+-6.123233995736766E-17);break b}A(+a);c=v(1)|0;v(0)|0;x(0,0);x(1,c|0);d=b;b=+z();d=(d-b*b)/(a+b);a=.7853981633974483-(b+b)-((a+a)*f-(6.123233995736766E-17-(d+d)))+.7853981633974483}a=(e|0)<0?-a:a}return a}function G8(a){var b= +0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!a)break a;b:{c:{b=J[a+8>>2];switch(b|0){case 0:break a;case 1:break b;default:break c}}g=b-1|0;h=g&3;d=1;if(b-2>>>0>=3){k=g&-4;while(1){c=J[a>>2];b=e<<2;f=d<<2;J[c+b>>2]=J[c+f>>2];c=J[a>>2];J[c+(b|4)>>2]=J[(c+f|0)+4>>2];c=J[a>>2];J[c+(b|8)>>2]=J[(c+f|0)+8>>2];c=b|12;b=J[a>>2];J[c+b>>2]=J[(b+f|0)+12>>2];d=d+4|0;e=e+4|0;i=i+4|0;if((k|0)!=(i|0))continue;break}}if(!h)break b;while(1){b=J[a>>2];J[b+(e<<2)>>2]=J[b+(d<<2)>>2];d=d+1|0;e=e+1|0;j=j+1|0;if((j|0)!= +(h|0))continue;break}}J[a+8>>2]=g}}function doa(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;a:{f=a;c=vc(24);J[c>>2]=0;a=J[b>>2];J[c+20>>2]=0;d=c+12|0;J[c+16>>2]=d;J[c+8>>2]=a;J[d>>2]=d;b:{e=J[b+8>>2];g=b+4|0;if((e|0)!=(g|0)){a=d;while(1){J[699344]=0;b=_(4,24)|0;i=J[699344];J[699344]=0;if((i|0)==1)break b;O[b+8>>3]=O[e+8>>3];j=O[e+16>>3];J[b+4>>2]=d;O[b+16>>3]=j;J[b>>2]=a;J[a+4>>2]=b;h=h+1|0;J[c+20>>2]=h;J[c+12>>2]=b;a=b;e=J[e+4>>2];if((g|0)!=(e|0))continue;break}}J[c+4>>2]=f;a=J[f>>2];J[c>> +2]=a;J[a+4>>2]=c;J[f>>2]=c;J[f+8>>2]=J[f+8>>2]+1;break a}a=Z()|0;Am(d);uc(c);ba(a|0);B()}}function U2(a){a=a|0;var b=0,c=0;c=J[a+8>>2];if(c){b=J[c>>2];if(b)Oe(b);b=J[c+4>>2];if(b)Oe(b);b=J[c+8>>2];if(b)Oe(b);b=J[c+12>>2];if(b)Oe(b);b=J[c+16>>2];if(b)Oe(b);b=J[c+20>>2];if(b)Oe(b);b=J[c+24>>2];if(b)Oe(b);b=J[c+28>>2];if(b)Oe(b);b=J[c+32>>2];if(b)Oe(b);b=J[c+36>>2];if(b)Oe(b);b=J[c+40>>2];if(b)Oe(b);b=J[c+44>>2];if(b)Oe(b);b=J[c+48>>2];if(b)Oe(b);b=J[c+52>>2];if(b)Oe(b);b=J[c+56>>2];if(b)Oe(b);b=J[c+ +60>>2];if(b)Oe(b);b=J[c+64>>2];if(b)Oe(b);b=J[c+68>>2];if(b)Oe(b);b=J[c+72>>2];if(b)Oe(b);c=J[c+76>>2];if(c)Oe(c);Nf(J[a+8>>2])}}function $mb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[a+68|0]=1;J[a+64>>2]=0;J[a+8>>2]=d;J[a+4>>2]=b;J[a>>2]=J[b+100>>2];a:{if(!d)break a;b=J[J[d+156>>2]>>2];J[a+12>>2]=b;J[a+20>>2]=b+56;J[a+16>>2]=b+20;jp(b);b=J[J[c+40>>2]>>2];J[a+72>>2]=0;J[a+76>>2]=b;if(!e)break a;J[a+72>>2]=J[J[d+156>>2]+36>>2]}J[a+24>>2]=0;J[a+28>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>> +2]=0;b=J[65287];J[a+80>>2]=J[65286];J[a+84>>2]=b;b=J[65289];J[a+88>>2]=J[65288];J[a+92>>2]=b;b=J[65291];J[a+96>>2]=J[65290];J[a+100>>2]=b;b=J[65293];J[a+104>>2]=J[65292];J[a+108>>2]=b}function ti(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;f=J[c>>2];d=J[f+8>>2];a:{if(d){if(J[b+12>>2]<0)J[b+12>>2]=J[d+32>>2];J[d+4>>2]=J[d+4>>2]+1;J[a>>2]=J[f+8>>2];break a}wr(e,f,1);b:{d=J[e+8>>2];c:{if(d)while(1){J[699344]=0;ca(5520,a|0,b|0,d+8|0);f=J[699344];J[699344]=0;if((f|0)==1)break c;if(J[a>>2]){if(J[b+ +12>>2]>=0)break b;J[b+12>>2]=J[J[J[c>>2]+8>>2]+32>>2];break b}J[a>>2]=0;d=J[d>>2];if(d)continue;break}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}a=Z()|0;id(e);ba(a|0);B()}id(e)}fc=e+16|0}function Rma(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=O[a+216>>3];f=O[b+216>>3];h=e>f;a:{if(h){c=1;if(O[a+224>>3]>3])break a}b:{if(!(e>3];g=O[b+224>>3];c=2;if(d>g)break a;if(!(d=f)break a}c:{if(!h)break c; +d=O[b+224>>3];if(!(d>3]))break c;c=4;if(R(e-d)<.02|d>=e)break a}if(e==f){c=5;if(O[a+224>>3]==O[b+224>>3])break a}g=O[a+224>>3];i=O[b+224>>3];d=R(g-i);if(R(e-f)<.02){c=6;if(d<.02)break a;return 7}c=8;if(d<.02)break a;c=9;if(f>g)break a;c=e>i?10:0}return c|0}function Hvb(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;var h=0,i=0,j=0;a:{if(f){if(((c+1|0)/2|0)<=(b|0)){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g|0]= +b;H[g+1|0]=K[f+1|0];g=g+2|0;f=f+2|0;e=e+2|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(j,h-b|0)+c|0)/(i|0)|0)|0;H[g|0]=b;H[g+1|0]=K[e+1|0];g=g+2|0;e=e+2|0;f=f+2|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}xc(g,e,d<<1)}return 0}function HSa(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{c=J[a+16>>2];if(c){b=vc(8);J[699344]=0;c=aa(3350,b|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;n0(c);b=J[c+4>>2];if(Je(b,812701))break d; +if(Je(b,813249))break d;b=Je(b,813556);uc(Zc(c));if(b)break c}if(J[a+32>>2]>=0){e:switch(J[a+20>>2]-1|0){case 0:case 1:case 2:if(J[a+152>>2])break c;if(!J[a+1448>>2])return 1;return J[a+1460>>2]!=0|0;case 3:case 4:case 5:break a;default:break e}return!J[a+152>>2]|0}break a}uc(Zc(c))}return 0}a=Z()|0;uc(b);ba(a|0);B()}return!(J[a+152>>2]|J[a+1448>>2])|0}function xyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>> +2];a:{b:switch(K[a+2253|0]-3|0){case 0:if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];c=c+3|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function hl(a){var b=0,c=0,d=0,e=0;c=J[a+2564>>2];d=J[a+2552>>2];a:{if(c>>>0>=d>>>0)break a;e=J[a+ +2556>>2];if(e>>>0<=c>>>0)break a;d=d>>>0>>0?d:e;e=J[a+572>>2];while(1){J[a+572>>2]=c;b=kc[J[a+980>>2]](a)|0;if(b)break a;b=J[a+976>>2];if(b){b=kc[b|0](a)|0;if(b)break a}b=kc[J[a+968>>2]](a)|0;if(b)break a;b:{if(!K[a+115|0]|J[a+12>>2]==2&M[a+320>>2]<301)break b;b=J[a+680>>2];if(J[a+516>>2]|(J[a+684>>2]-b|0)<51|((b+J[a+572>>2]|0)-J[a+664>>2]|0)%20)break b;H[a+502|0]=1}c=c+1|0;if(d>>>0>c>>>0)continue;break}J[a+572>>2]=e;J[a+2564>>2]=d;b=0}return b}function _Cb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc- +80|0;fc=c;J[c+64>>2]=K[a+24|0];md(b,208988,c- -64|0);d=K[a+25|0];e=K[a+29|0];J[c+56>>2]=K[a+20|0];J[c+52>>2]=e;J[c+48>>2]=d;md(b,209071,c+48|0);d=K[a+13|0];J[c+36>>2]=J[a+16>>2];J[c+32>>2]=d;md(b,209128,c+32|0);d=K[a+26|0];e=K[a+27|0];J[c+24>>2]=K[a+28|0];J[c+20>>2]=e;J[c+16>>2]=d;md(b,209191,c+16|0);if(!(!(H[a+12|0]&1)|J[a+32>>2]<=0)){b=0;while(1){d=(b<<1)+a|0;e=K[d+36|0];J[c+12>>2]=K[d+37|0];J[c+8>>2]=b;J[c+4>>2]=e;J[c>>2]=b;rd(209323,c);b=b+1|0;if((b|0)>2])continue;break}}fc=c+80|0;return 0} +function Uhb(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;e=J[a+532>>2];if(!e)return 6;f=J[e>>2];i=J[b>>2];a=6;a:{if(f>>>0>i>>>0)break a;b:{if(!f)break b;e=J[e+136>>2];a=0;if(f>>>0>=4){h=f&-4;while(1){d=a<<2;J[d+c>>2]=J[e+d>>2];g=d|4;J[g+c>>2]=J[e+g>>2];g=d|8;J[g+c>>2]=J[e+g>>2];d=d|12;J[d+c>>2]=J[e+d>>2];a=a+4|0;j=j+4|0;if((h|0)!=(j|0))continue;break}}d=f&3;if(!d)break b;while(1){h=a<<2;J[h+c>>2]=J[e+h>>2];a=a+1|0;k=k+1|0;if((d|0)!=(k|0))continue;break}}a=0;if(f>>>0>=i>>>0)break a; +Ac((f<<2)+c|0,0,i-f<<2);a=0}J[b>>2]=f;return a|0}function rr(a,b,c,d,e){var f=0,g=0,h=0;g=Pv(a,b,c,d);f=J[e>>2];h=J[d>>2];if(O[f+16>>3]>3]){J[d>>2]=f;J[e>>2]=h;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=J[d>>2];f=J[c>>2];if(!(O[e+16>>3]>3]))return g+1|0;J[c>>2]=e;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=J[c>>2];e=J[b>>2];if(!(O[d+16>>3]>3]))return g+2|0;J[b>>2]=d;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[b>>2];d=J[a>>2];if(!(O[c+16>>3]>3]))return g+3|0;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;g=g+4|0}return g}function nq(a,b){var c=0,d=0,e=0,f=0;if(!b)return a;a:{if(!a){c=b;while(1){a=c;c=a+1|0;if(K[a|0])continue;break}a=a-b|0;if((a|0)<0)break a;c=kc[J[663198]](a+1|0)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);return 0}d=a;a=xc(c,b,a);H[d+a|0]=0;return a}d=b;while(1){c=d;d=c+1|0;if(K[c|0])continue;break}if((b|0)==(c|0))return a;f=c-b|0;if((f|0)<0)break a;d=0;if(K[a|0]){c=a;while(1){d=d+1|0;e=K[c+1|0]; +c=c+1|0;if(e)continue;break}}c=d+f|0;e=kc[J[663200]](a,c+1|0)|0;if(!e){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);return a}xc(d+e|0,b,f);H[c+e|0]=0}return e}function Qv(a,b,c,d,e){var f=0,g=0,h=0;g=$z(a,b,c,d);f=J[e>>2];h=J[d>>2];if(O[f+32>>3]>3]){J[d>>2]=f;J[e>>2]=h;f=J[d+4>>2];J[d+4>>2]=J[e+4>>2];J[e+4>>2]=f;e=J[d>>2];f=J[c>>2];if(!(O[e+32>>3]>3]))return g+1|0;J[c>>2]=e;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=J[c>>2];e=J[b>>2];if(!(O[d+32>>3]>3]))return g+2|0;J[b>> +2]=d;J[c>>2]=e;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;c=J[b>>2];d=J[a>>2];if(!(O[c+32>>3]>3]))return g+3|0;J[a>>2]=c;J[b>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;g=g+4|0}return g}function Qs(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;i=fc-16|0;fc=i;a:{b:{if(!a)break b;g=J[e+12>>2];h=c-b>>2;if((h|0)>0)if((kc[J[J[a>>2]+48>>2]](a,b,h)|0)!=(h|0))break b;b=d-b>>2;g=(b|0)<(g|0)?g-b|0:0;if((g|0)>0){b=YF(i+4|0,g,f);c:{if(K[b+11|0]>>>7|0){f=J[b>>2];break c}f= +b}J[699344]=0;f=ga(6883,a|0,f|0,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;df(b);if((f|0)!=(g|0))break b}b=d-c>>2;if((b|0)>0)if((kc[J[J[a>>2]+48>>2]](a,c,b)|0)!=(b|0))break b;J[e+12>>2]=0;j=a}fc=i+16|0;return j|0}a=Z()|0;df(b);ba(a|0);B()}function $7(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a)break a;b=J[a>>2];if(!b)return;f=J[b+96>>2];if(!f)return;c=J[b+108>>2];if(!c)break a;e=b+108|0;d=J[f+8>>2];while(1){if(J[c+8>>2]!=(a|0)){c=J[c+4>>2];if(c)continue;break a}break}g=J[c>>2];h=g?g+4|0:e; +e=J[c+4>>2];J[h>>2]=e;J[(e?e:b+112|0)>>2]=g;kc[J[d+8>>2]](d,c);b:{if(J[b+88>>2]!=(a|0))break b;J[b+88>>2]=0;c=J[b+108>>2];if(!c)break b;J[b+88>>2]=J[c+8>>2]}b=J[a+8>>2];if(b)kc[b|0](a);b=J[J[f+12>>2]+60>>2];if(b)kc[b|0](a);b=J[a+40>>2];if(b)kc[J[d+8>>2]](d,b);J[a+40>>2]=0;kc[J[d+8>>2]](d,a)}}function zoa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=J[a+12>>2]+2776|0;c=J[c>>2];a:{if(!b)break a;if((c|0)==2){kc[J[J[a>>2]+4>>2]](a,O[b>>3],O[b+8>>3])|0;break a}if((c|0)<4)break a;if(!K[J[a+8>>2]+1|0])kc[J[J[a>> +2]>>2]](a,O[b>>3],O[b+8>>3])|0;e=1;d=c>>>1|0;f=d-1|0;g=f&1;c=2;if((d|0)!=2){f=f&-2;c=0;while(1){d=(e<<4)+b|0;kc[J[J[a>>2]+4>>2]](a,O[d>>3],O[d+8>>3])|0;kc[J[J[a>>2]+4>>2]](a,O[d+16>>3],O[d+24>>3])|0;e=e+2|0;c=c+2|0;if((f|0)!=(c|0))continue;break}c=e<<1}if(!g)break a;b=(c<<3)+b|0;kc[J[J[a>>2]+4>>2]](a,O[b>>3],O[b+8>>3])|0}return 0}function p1(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{b:{c=kc[J[663198]](10)|0;if(!c)break b;b=K[J[J[a+36>>2]+16>>2]];if((b-48&255)>>>0>=10)break a;H[c|0]=b;Zd(a);if(K[J[J[a+36>> +2]+16>>2]]!=46)break a;H[c+1|0]=46;Zd(a);g=2;d=K[J[J[a+36>>2]+16>>2]];c:{if((d-48&255)>>>0>9){b=c;e=2;break c}f=10;while(1){d:{e=g+1|0;if((f|0)>(e|0)){b=c;break d}f=f<<1;b=kc[J[663200]](c,f)|0;if(b)break d;kc[J[663199]](c);break b}H[b+g|0]=d;Zd(a);g=e;c=b;d=K[J[J[a+36>>2]+16>>2]];if((d-48&255)>>>0<10)continue;break}}H[b+e|0]=0;return b}se(a,0);return 0}kc[J[663199]](c);return 0}function zIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;J[c>>2]=0;e=d+20|0;kc[J[J[a>>2]+12>>2]](e,a,b);J[699344]= +0;a=_(43,e|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)a:{if(a){J[d+16>>2]=0;J[699344]=0;J[d+12>>2]=0;a=ga(4901,e|0,d+16|0,d+12|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;if(a){J[699344]=0;a=_(4,12)|0;b=J[699344];J[699344]=0;f=1;if((b|0)==1)break a;b=J[d+16>>2];e=J[d+12>>2];H[a+8|0]=1;J[a+4>>2]=e;J[a>>2]=b;J[c>>2]=a}}if(H[d+31|0]<0)uc(J[d+20>>2]);fc=d+32|0;return f|0}a=Z()|0;if(H[d+31|0]<0)uc(J[d+20>>2]);ba(a|0);B()}function rx(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(!a|!b)break a;d=J[a+4>>2];e=kc[J[663195]](16)| +0;if(!e)break a;J[e+8>>2]=0;J[e+12>>2]=0;c=(d|0)<=0?256:d;J[e+4>>2]=c;d=P(c,24);c=kc[J[663195]](d)|0;J[e>>2]=c;if(!c){kc[J[663199]](e);return 0}Ac(c,0,d);b:{if(!J[a>>2])break b;d=J[a+4>>2];if((d|0)<=0)break b;while(1){f=J[a>>2];c=f+P(g,24)|0;if(!(!J[c+20>>2]|!f)){while(1){d=J[c>>2];f=J[c+4>>2];sx(e,f,J[c+8>>2],J[c+12>>2],kc[b|0](J[c+16>>2],f)|0);c=d;if(c)continue;break}d=J[a+4>>2]}g=g+1|0;if((g|0)<(d|0))continue;break}}J[e+8>>2]=J[a+8>>2];c=e}return c}function XE(a){var b=0,c=0;b=J[a+2552>>2];J[a+ +2552>>2]=b+1;a:{b:{if(!J[a+968>>2])break b;c:switch(K[a+336|0]-12|0){default:J[a+572>>2]=b;b=kc[J[a+980>>2]](a)|0;if(b)break a;b=J[a+976>>2];if(b){b=kc[b|0](a)|0;if(b)break a}b=kc[J[a+968>>2]](a)|0;if(b)break a;if(!K[a+115|0]|J[a+12>>2]==2&M[a+320>>2]<301)break b;b=J[a+680>>2];if(J[a+516>>2]|(J[a+684>>2]-b|0)<51|((b+J[a+572>>2]|0)-J[a+664>>2]|0)%20)break b;H[a+502|0]=1;break b;case 0:case 2:break c}b=hl(a);if(b)break a}b=0;c=J[a+2552>>2];if(c>>>0<=M[a+2560>>2])break a;J[a+2560>>2]=c}return b}function Rs(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;i=fc-16|0;fc=i;a:{b:{if(!a)break b;g=J[e+12>>2];h=c-b|0;if((h|0)>0)if((kc[J[J[a>>2]+48>>2]](a,b,h)|0)!=(h|0))break b;b=d-b|0;g=(b|0)<(g|0)?g-b|0:0;if((g|0)>0){b=ER(i+4|0,g,f);c:{if(K[b+11|0]>>>7|0){f=J[b>>2];break c}f=b}J[699344]=0;f=ga(6871,a|0,f|0,g|0)|0;h=J[699344];J[699344]=0;if((h|0)==1)break a;jd(b);if((f|0)!=(g|0))break b}b=d-c|0;if((b|0)>0)if((kc[J[J[a>>2]+48>>2]](a,c,b)|0)!=(b|0))break b;J[e+12>>2]=0;j=a}fc=i+16|0;return j| +0}a=Z()|0;jd(b);ba(a|0);B()}function IC(a,b){var c=0;a:{if(!a|!b)break a;c=J[a+4>>2];if((c|0)==18|(a|0)==(b|0)|J[b+4>>2]==18)break a;b:{c:{if((c|0)==2)break c;c=J[a+20>>2];if(!c|!J[c+12>>2])break c;c=J[c+16>>2];if(!c)break c;if(!J[c+24>>2])break b}while(1){c=a;a=J[c+24>>2];if(a)continue;break}}Wj(b);d:{a=J[b+4>>2];if(!(J[c+4>>2]!=3|(a|0)!=3)){if(J[c+8>>2]!=J[b+8>>2])break d;wC(c,J[b+40>>2]);Fl(b);return}if((a|0)!=2)break d;b2(c,c,b);return}a=J[c+32>>2];if((a|0)!=J[b+32>>2])Xm(b,a);a=J[c+20>>2];J[b+ +24>>2]=0;J[b+28>>2]=c;J[b+20>>2]=a;J[c+24>>2]=b;if(a)J[a+16>>2]=b}}function Dr(a){var b=0;b=J[a+80>>2];J[a+80>>2]=b+1;H[(a+b|0)+16|0]=128;b=J[a+80>>2];if((b|0)>=57){if(b>>>0<=63)while(1){J[a+80>>2]=b+1;H[(a+b|0)+16|0]=0;b=J[a+80>>2];if((b|0)<64)continue;break}bq(a);b=J[a+80>>2]}if((b|0)<=55)while(1){J[a+80>>2]=b+1;H[(a+b|0)+16|0]=0;b=J[a+80>>2];if((b|0)<56)continue;break}J[a+80>>2]=64;H[a+79|0]=0;H[a+77|0]=0;H[a+78|0]=0;b=J[a+84>>2];H[a+76|0]=b>>29;H[a+75|0]=b>>>21;H[a+74|0]=b>>>13;H[a+73|0]=b>>> +5;H[a+72|0]=b<<3;bq(a);b=J[a+4>>2];J[a+88>>2]=J[a>>2];J[a+92>>2]=b;b=J[a+12>>2];J[a+96>>2]=J[a+8>>2];J[a+100>>2]=b}function Xda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Mj(a,J[b+8>>2],e)){if(!(J[b+28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{if(Mj(a,J[b>>2],e)){if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!=1)break a;J[b+32>>2]=1;return}J[b+32>>2]=d;b:{if(J[b+44>>2]==4)break b;I[b+52>>1]=0;a=J[a+8>>2];kc[J[J[a>>2]+20>>2]](a,b,c,c,1,e);if(K[b+53|0]){J[b+44>>2]=3;if(!K[b+52|0])break b; +break a}J[b+44>>2]=4}J[b+20>>2]=c;J[b+40>>2]=J[b+40>>2]+1;if(J[b+36>>2]!=1|J[b+24>>2]!=2)break a;H[b+54|0]=1;return}a=J[a+8>>2];kc[J[J[a>>2]+24>>2]](a,b,c,d,e)}}function V3a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;f=K[b+11|0];e=f<<24>>24<0;a:{b:{c:{g=J[b+4>>2];d:{if(!(e?g:f))break d;e:{if(!e){J[d+8>>2]=J[b+8>>2];e=J[b+4>>2];J[d>>2]=J[b>>2];J[d+4>>2]=e;break e}b=J[b>>2];J[699344]=0;ca(15,d|0,b|0,g|0);b=J[699344];J[699344]=0;if((b|0)==1)break b}J[699344]= +0;ca(2995,d|0,a|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break c;if(H[d+11|0]>=0)break d;uc(J[d>>2])}fc=d+16|0;return}b=Z()|0;if(H[d+11|0]>=0)break a;uc(J[d>>2]);break a}b=Z()|0}Ag(a);ba(b|0);B()}function i7(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;a:{a=J[a+20>>2];b:{if(!a)break b;c:{d:{b=L[a>>1];e=b<<16>>16;if((e|0)>=2){d=I[(J[a+12>>2]+(b<<1)|0)-4>>1]+1|0;break d}if(e)break d;b=L[a+2>>1];break c}b=I[a+2>>1];if((d|0)!=(b|0))break c;break a}e:{if(b<<16>>16<2)break e;c=J[a+4>>2];f=c+(d<<3)|0;g=b&65535; +c=c+(g<<3)|0;if(J[f>>2]!=J[c-8>>2]|J[f+4>>2]!=J[c-4>>2]|K[(J[a+8>>2]+g|0)-1|0]!=1)break e;b=b-1|0;I[a+2>>1]=b}if((e|0)<=0)break b;c=d;d=(b<<16>>16)-1|0;if((c|0)==(d|0)){I[a+2>>1]=b-1;break a}I[(J[a+12>>2]+(e<<1)|0)-2>>1]=d}return}I[a>>1]=e-1}function gfb(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;d=1;a:{if(!J[a+16>>2])break a;f=J[a+20>>2];if(!f)break a;a=fc-16|0;fc=a;d=J[c>>2];if((d|0)>=4){c=J[f+4>>2];if(!K[c+25|0]){g=O[b>>3];h=O[b+8>>3];H[c+25|0]=1;J[a+8>>2]=0;j=Qe(c,a+8|0),k=1, +H[j|0]=k;e=J[a+8>>2];O[e+8>>3]=h;O[e>>3]=g;J[c>>2]=J[c>>2]+1}e=d>>>1|0;d=1;while(1){c=(d<<4)+b|0;g=O[c>>3];h=O[c+8>>3];c=J[f+4>>2];J[a+12>>2]=0;j=Qe(c,a+12|0),k=2,H[j|0]=k;i=J[a+12>>2];O[i+8>>3]=h;O[i>>3]=g;J[c>>2]=J[c>>2]+1;d=d+1|0;if((e|0)!=(d|0))continue;break}}fc=a+16|0;d=0}return d|0}function g2(a,b){var c=0,d=0,e=0;a:{b:{c:{d:{if(!a|!b|J[a+4>>2]==18)break d;c=J[b+4>>2];if((c|0)==18)break d;if(!J[a+12>>2]){J[a+12>>2]=b;c=b;break a}if((c|0)!=3)break c;c=J[a+16>>2];if(J[c+4>>2]!=3|J[b+8>>2]!=J[c+ +8>>2])break c;wC(c,J[b+40>>2]);c=J[b+24>>2];Fl(b);if(c)break b}return}c=b}b=J[a+16>>2];J[b+24>>2]=c;J[c+28>>2]=b}b=J[c+24>>2];if(b){d=c+24|0;while(1){J[c+20>>2]=a;e=J[a+32>>2];if((e|0)!=J[c+32>>2]){Xm(c,e);b=J[d>>2]}c=b;d=c+24|0;b=J[c+24>>2];if(b)continue;break}}J[c+20>>2]=a;b=J[a+32>>2];if((b|0)!=J[c+32>>2])Xm(c,b);J[a+16>>2]=c}function Qe(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;e=J[a>>2];f=e>>>8|0;g=J[a+4>>2];if(f>>>0>=g>>>0){c=J[a+8>>2];a:{if(f>>>0>>0){d=J[a+12>>2];break a}d= +(c<<1)+512|0;d=vc(d>>>0>1073741823?-1:d<<2);h=c<<2;j=(d+h|0)+1024|0;i=J[a+12>>2];if(i){xc(d,i,h);xc(j,J[a+16>>2],h);uc(i);e=J[a>>2];g=J[a+4>>2];c=J[a+8>>2]}J[a+16>>2]=j;J[a+12>>2]=d;J[a+8>>2]=c+256}c=f<<2;k=c+d|0,l=vc(4352),J[k>>2]=l;J[c+J[a+16>>2]>>2]=J[c+J[a+12>>2]>>2]+4096;J[a+4>>2]=g+1}c=b;b=f<<2;J[c>>2]=J[b+J[a+12>>2]>>2]+(e<<4&4080);return J[b+J[a+16>>2]>>2]+(e&255)|0}function Fvb(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;var h=0,i=0,j=0;a:{if(f){if(!d)break a;a=c<<1;i=b<<1;while(1){b= +K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+1|0]=b;b=K[e+2|0];h=K[f+2|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+2|0]=b;b=K[e+3|0];h=K[f+3|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+3|0]=b;f=f+4|0;e=e+4|0;g=g+4|0;j=j+1|0;if((j|0)!=(d|0))continue;break}break a}xc(g,e,d<<2)}return 0}function vma(a,b){a=a|0;b=b|0;var c=0,d=0;d=fc-16|0;fc=d;if((b&-2)==34676){a:{if(!Bn(a,93760, +2)){Uc(J[a+628>>2],93736,70955,0);a=0;break a}c=Dc(32);J[a+584>>2]=c;if(c){Sg(c,0,32);J[c+20>>2]=572;J[c+4>>2]=(b|0)==34677;J[c>>2]=-1;J[a+556>>2]=573;J[a+548>>2]=574;J[a+516>>2]=575;J[a+572>>2]=576;J[a+564>>2]=577;J[a+560>>2]=578;J[a+552>>2]=579;J[a+524>>2]=580;J[c+24>>2]=J[a+672>>2];J[a+672>>2]=581;J[c+28>>2]=J[a+668>>2];J[a+668>>2]=582;a=1;break a}b=J[a+628>>2];J[d>>2]=J[a>>2];Uc(b,93736,71579,d);a=0}fc=d+16|0;return a|0}fa(69608,70372,1567,93736);B()}function vB(a,b){var c=0,d=0,e=0,f=0,g=0;e= +J[a+32>>2]+4|0;J[a+32>>2]=e;f=J[a+36>>2];g=f-3|0;if(g>>>0>=e>>>0){c=e;while(1){if(!ud(c,798976,3)){d=vc(24);J[699344]=0;f=_(4,8)|0;g=J[699344];J[699344]=0;a:{b:{if((g|0)!=1){J[699344]=0;c=ga(3348,f|0,e|0,c-e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[d+4>>2]=0;J[d+8>>2]=0;J[d+20>>2]=c;J[d>>2]=2348456;J[d+12>>2]=0;J[d+16>>2]=0;kc[J[J[b>>2]+48>>2]](b,d);J[a+32>>2]=J[a+32>>2]+3;return}c=Z()|0;break a}c=Z()|0;uc(f)}uc(d);ba(c|0);B()}c=c+1|0;J[a+32>>2]=c;if(c>>>0<=g>>>0)continue;break}}J[a+32>> +2]=f}function V3(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=fc-16|0;fc=e;g=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);f=c+4|0;J[e+12>>2]=f;h=d;if((g|0)>0){f=0;a:{while(1){b:{if(H[b+11|0]>=0){J[e+8>>2]=J[b+8>>2];d=J[b+4>>2];J[e>>2]=J[b>>2];J[e+4>>2]=d;break b}Ve(e,J[b>>2],J[b+4>>2])}J[699344]=0;d=aa(2990,e+12|0,e|0)|0;i=J[699344];J[699344]=0;if((i|0)!=1){if(H[e+11|0]<0)uc(J[e>>2]);_3(a,d);f=f+1|0;if((g|0)==(f|0))break a;continue}break}a=Z()|0;if(H[e+11|0]<0)uc(J[e>>2]);ba(a|0); +B()}f=J[e+12>>2]}if(h>>>0>f-c>>>0)X3(a,f);fc=e+16|0}function K_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{if((e|0)<=0)break a;f=J[a+28>>2];if(!f)break a;g=J[a+36>>2];l=f&-4;k=f&3;m=f-1>>>0<3;while(1){h=J[J[c>>2]+(d<<2)>>2];f=J[b>>2];i=0;a=0;j=0;if(!m)while(1){H[a+h|0]=K[f|0];f=f+g|0;H[(a|1)+h|0]=K[f|0];f=f+g|0;H[(a|2)+h|0]=K[f|0];f=f+g|0;H[(a|3)+h|0]=K[f|0];a=a+4|0;f=f+g|0;j=j+4|0;if((l|0)!=(j|0))continue;break}if(k)while(1){H[a+h|0]=K[f|0];a=a+1|0;f=f+g|0;i= +i+1|0;if((i|0)!=(k|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=e-1|0;if(a)continue;break}}}function af(a,b){var c=0,d=0,e=0;c=J[a+4>>2];a:{e=J[a+20>>2];b:{if(e){d=85;if(b>>>0>c>>>0)break b;d=J[a+28>>2];c:{d:{if((b|0)>0){c=kc[J[d+4>>2]](d,b)|0;if(c)break d;c=64;break a}c=6;if(b)break a;c=0;break c}e=J[a+20>>2]}J[a>>2]=c;e=kc[e|0](a,J[a+8>>2],c,b)|0;c=J[a>>2];if(b>>>0<=e>>>0)d=0;else{if(c)kc[J[d+8>>2]](d,c);c=0;J[a>>2]=0;d=85}J[a+32>>2]=c;J[a+36>>2]=c?b+c|0:0;J[a+8>>2]=e+J[a+8>>2];return d}e=J[a+ +8>>2];d=85;if(e>>>0>=c>>>0|c-e>>>0>>0)break b;J[a+8>>2]=b+e;c=e+J[a>>2]|0;J[a+32>>2]=c;J[a+36>>2]=b+c;d=0}return d}J[a>>2]=0;return c}function LH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(!K[2775532]){J[693882]=0;H[2775532]=1}a:{b:{c=J[685890];if((c|0)<(b|0)){while(1){d=c;c=c<<1;if((b|0)>(d|0))continue;break}c=vc(20);J[c>>2]=2419252;J[c+4>>2]=0;J[699344]=0;b=d+4095&-4096;d=ha(5213,c+12|0,c+8|0,b|0,1)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;ri(d,1,0);e=J[699344];J[699344]=0;if((e|0)== +1){b=Z()|0;hd(d);break a}d=J[c+8>>2];J[685890]=b;J[685889]=d;vd(2775528,c)}b=J[693882];if(b){J[b+4>>2]=J[b+4>>2]+1;b=J[693882]}else b=0;J[a>>2]=b;return}b=Z()|0}uc(nd(c));ba(b|0);B()}function E7(a){var b=0,c=0,d=0,e=0,f=0,g=0;J[a+28>>2]=4096;b=a+4168|0;J[a+24>>2]=b;J[a+8268>>2]=b;d=a+72|0;f=a+12|0;a:{while(1){if(!J[a+16>>2]){b=J[a>>2];c=J[b+20>>2];b:{if(c){c=kc[c|0](b,J[b+8>>2],d,4096)|0;if(c)break b;break a}e=J[b+4>>2];c=J[b+8>>2];if((e|0)==(c|0))break a;g=c+J[b>>2]|0;c=e-c|0;c=c>>>0>=4096?4096: +c;xc(d,g,c)}J[b+8>>2]=J[b+8>>2]+c;J[a+16>>2]=c;J[a+12>>2]=d}b=Vk(f,0);if(b){if((b|0)==1){b=J[a+24>>2];J[a+8272>>2]=b;return(b|0)==J[a+8268>>2]?85:0}break a}if(J[a+28>>2])continue;break}return 0}J[a+8272>>2]=J[a+8268>>2];return 85}function soa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=J[a+12>>2];a:{if(J[b+2696>>2]==512){dA(b+1976|0);break a}a=fc-16|0;fc=a;d=b+2776|0;b=J[d+8>>2];c=J[b+4>>2];b:{if(!c)break b;c=c-1|0;if(!K[J[J[b+20>>2]+(c>>>6&67108860)>>2]+(c&255)|0])break b;J[a+12>>2]=0;e=Qe(b+4|0,a+12|0), +f=0,H[e|0]=f;c=J[a+12>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[b+4>>2]=J[b+4>>2]+1}b=J[d+4>>2];if(b){J[a+8>>2]=512;kc[J[J[b>>2]+308>>2]](b,a+8|0)|0;b=J[d+4>>2];kc[J[J[b>>2]+352>>2]](b)|0;b=J[d+4>>2];J[a+4>>2]=512;kc[J[J[b>>2]+312>>2]](b,a+4|0)|0}fc=a+16|0}return 0}function d7(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=J[a+4>>2];a:{if(!J[J[d+128>>2]+52>>2]){d=18;if(b>>>0>255)break a;f=J[a+532>>2];if(!J[f+1188>>2])break a;h=kc[J[J[f+3088>> +2]>>2]](b)|0;g=J[f+20>>2];if(!g)break a;f=J[f+1188>>2];b=0;while(1){if(L[f+(b<<1)>>1]!=(h|0)){b=b+1|0;if((g|0)!=(b|0))continue;break a}break}if((b|0)<0)break a;d=J[a+4>>2]}d=kc[J[a+596>>2]](d,b,e+12|0,e+8|0)|0;if(d)break a;a=J[e+12>>2];J[c+4>>2]=a;b=J[e+8>>2];J[c+12>>2]=a;d=0;J[c+8>>2]=a?a+b|0:0}fc=e+16|0;return d}function Hmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(K[a+64|0])break a;H[a+64|0]=1;e=J[a+20>>2];b:{if(K[a+65|0]){d=J[a+12>>2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=Hh(d, +0,1);if(d)break a}f=L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=Hh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+65|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function rCa(a){a=a|0;var b=0,c=0,d=0;b=vc(72);J[b+28>>2]=0;J[b+32>>2]=0;J[b>>2]=2402056;J[b+4>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;J[699344]=0;c=b+ +28|0;J[c>>2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;d=J[699344];J[699344]=0;a:{if((d|0)!=1){J[b+44>>2]=0;J[b+48>>2]=0;J[b+68>>2]=0;J[b+60>>2]=0;J[b+64>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[699344]=0;aa(5250,b+44|0,2401340)|0;d=J[699344];J[699344]=0;if((d|0)==1){a=Z()|0;id(c);break a}J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=-1;J[b+20>>2]=0;J[b+24>>2]=0;J[a>>2]=0;vd(a,b);return}a=Z()|0}uc(nd(b));ba(a|0);B()}function aGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;a:{if(M[b+4>>2]>=17){g=a+56| +0;c=f+4|0;d=J[b>>2];b:{if(K[b+8|0]){e=0;if(!d)break b;d=J[d>>2]}e=d}d=Et(c,e- -64|0,0,J[b+4>>2]-17|0);b=J[a+60>>2]-J[a+56>>2]>>3;while(1){c:{if((b|0)<=0){c=0;break c}b=b-1|0;c=J[a+56>>2];if(b>>>0>=J[a+60>>2]-c>>3>>>0){J[699344]=0;$(5140,g|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}c=J[c+(b<<3)>>2];J[699344]=0;c=PX(c,d);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(!c)continue}break}Rc(d)}fc=f+16|0;return c|0}a=Z()|0;Rc(d);ba(a|0);B()}function Rm(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=fc- +32|0;fc=e;J[e+16>>2]=13;J[e>>2]=13;a:{if(h=J[Ec(b,c,d,0)>>2]!=5,i=0,j=J[J[d+8>>2]+16>>2]|J[d>>2]!=7,j?h:i)break a;yc(d);Ec(b,787015,e+16|0,0);b:{if(J[e+16>>2]!=7)break b;b=0;while(1){if(J[Ec(J[e+24>>2],c,d,0)>>2]!=5){yc(e+16|0);break a}yc(d);Ec(J[e+24>>2],787015,e,0);yc(e+16|0);f=J[e+12>>2];J[e+24>>2]=J[e+8>>2];J[e+28>>2]=f;g=J[e+4>>2];f=J[e>>2];J[e+16>>2]=f;J[e+20>>2]=g;if((f|0)!=7)break b;f=b>>>0<49;b=b+1|0;if(f)continue;break}}yc(e+16|0);Ec(J[J[a>>2]+16>>2],c,d,0)}fc=e+32|0;return d}function m4(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;var h=0,i=Q(0),j=0,k=0,l=Q(0),m=Q(0),n=Q(0),o=0;k=J[a+8>>2];if(!k)return 0;kc[J[J[k>>2]+76>>2]](k,b,c,d,O[e>>3],0,0)|0;i=Q(O[b>>3]);l=Q(O[c>>3]);m=Q(O[d>>3]);n=Q(O[e>>3]);a=a+16|0;O[a- -64>>3]=0;O[a+56>>3]=0;O[a+48>>3]=n;O[a+40>>3]=m;O[a+32>>3]=l;O[a+24>>3]=i;i=Q(Q(i*n)-Q(l*m));j=+i;h=1/j;h=i-.001?-1E3:h:h;O[a+72>>3]=i>=Q(0)?j<.001?1E3:h:h;j=O[a+72>>3];h=+Q(O[f>>3]);o=+Q(O[g>>3]);N[a>>2]=j*(h*O[a+48>>3]-o*O[a+40>>3]);N[a+4>>2]=j*(o*O[a+ +24>>3]-h*O[a+32>>3]);return 1}function f5a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=+J[a>>2]*.015625;g=+J[a+4>>2]*.015625;a=J[b>>2];c=J[a+16>>2];if((c|0)!=J[a+24>>2]){c=(c+J[a+12>>2]|0)-1|0;H[c|0]=K[c|0]&253;c=J[a+20>>2];d=J[a+16>>2];a:{if((c|0)>(d|0)){c=J[a+12>>2];break a}if(!c){J[a+20>>2]=32;c=32}if((c|0)<=(d|0)){while(1){c=c<<1;if((d|0)>=(c|0))continue;break}J[a+20>>2]=c}h=a,i=fe(J[a+8>>2],c<<4),J[h+8>>2]=i;c=fe(J[a+12>>2],J[a+20>>2]);J[a+12>>2]=c;d=J[a+16>>2]}e=J[a+8>>2]+(d<<4)|0;O[e+ +8>>3]=g;O[e>>3]=f;H[c+d|0]=2;J[a+16>>2]=J[a+16>>2]+1}J[b+4>>2]=1;return 0}function _T(a){a=a|0;var b=0,c=0;J[a>>2]=2444156;b=J[a+60>>2];J[a+56>>2]=0;J[a+60>>2]=0;a:{if(!b)break a;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+256>>2];if(b){J[a+260>>2]=b;uc(b)}qi(a+240|0);J[a+120>>2]=340552;if(H[a+147|0]<0)uc(J[a+136>>2]);if(H[a+135|0]<0)uc(J[a+124>>2]);b=J[a+80>>2];if(b)Gc(b);b=J[a+72>>2];b:{if(!b)break b;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b= +J[a+60>>2];c:{if(!b)break c;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break c;kc[J[J[b>>2]+8>>2]](b);Gc(b)}return a|0}function RE(a){var b=0;a:{if(!K[a+498|0]){b:{c:switch(K[a+1112|0]-2|0){case 0:case 2:break c;default:break b}if(!J[a+436>>2]){J[a+1116>>2]=J[a+1144>>2];break b}b=Ey(a);if(b)break a}H[a+1112|0]=K[a+1080|0];J[a+1144>>2]=J[a+1084>>2];J[a+1120>>2]=J[a+1088>>2];H[a+1124|0]=K[a+1092|0];b=J[a+1100>>2];J[a+1128>>2]=J[a+1096>>2];J[a+1132>>2]=b;b=J[a+1108>>2];J[a+1136>>2]=J[a+1104>>2];J[a+1140>>2]=b}b= +0;if(K[a+497|0])break a;if(!(J[a+440>>2]?K[a+1112|0]!=4:0)){b=up(a);if(b)break a}H[a+433|0]=1;J[a+436>>2]=J[a+436>>2]+1;b=0}H[a+498|0]=0;return b}function PBb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+52>>2];if(J[a+4>>2]==16)c=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else c=J[a+36>>2];e=J[a+40>>2];kc[J[J[b>>2]+20>>2]](b,2)|0;g=c,h=kc[J[J[b>>2]+20>>2]](b,1)|0,J[g+4>>2]=h;g=c,h=kc[J[J[b>>2]+20>>2]](b,1)|0,J[g+8>>2]=h;g=c,h=kc[J[J[b>>2]+20>>2]](b,2)|0,J[g+12>>2]=h;g=c,h=kc[J[J[b>>2]+20>>2]](b,1)| +0,J[g+16>>2]=h;f=kc[J[J[b>>2]+36>>2]](b)|0;if(J[e+16>>2]>0)while(1){J[J[c+1872>>2]+P(d,1076)>>2]=J[c+4>>2]&1;kc[J[J[b>>2]+28>>2]](b,f);Vaa(a,d);d=d+1|0;if((d|0)>2])continue;break}}function Ax(a,b,c,d){var e=0;e=fc-96|0;fc=e;a=Xr(a,e+8|0,0,c,d);if(!(a|!b)){J[b>>2]=J[e+8>>2];J[b+4>>2]=J[e+12>>2];J[b+8>>2]=J[e+16>>2];J[b+12>>2]=J[e+20>>2];J[b+16>>2]=J[e+24>>2];J[b+20>>2]=J[e+28>>2];J[b+32>>2]=J[e+48>>2];J[b+36>>2]=J[e+52>>2];J[b+40>>2]=J[e+56>>2];J[b+44>>2]=J[e+60>>2];J[b+48>>2]=J[e+64>>2];J[b+ +52>>2]=J[e+68>>2];c=J[e+76>>2];J[b+56>>2]=J[e+72>>2];J[b+60>>2]=c;d=J[e+84>>2];c=b- -64|0;J[c>>2]=J[e+80>>2];J[c+4>>2]=d;c=J[e+92>>2];J[b+72>>2]=J[e+88>>2];J[b+76>>2]=c;J[b+24>>2]=J[e+32>>2];J[b+28>>2]=J[e+40>>2]}fc=e+96|0;return a}function vTa(a,b,c){a=a|0;b=b|0;c=c|0;wJ(J[a+28>>2],J[b>>2]==1?+J[b+8>>2]:O[b+8>>3],J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3],J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3],J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3],J[b+64>>2]==1?+J[b+72>>2]:O[b+72>>3],J[b+80>>2]==1?+J[b+88>>2]:O[b+88>>3]); +c=J[a+8>>2];kc[J[J[c>>2]+76>>2]](c,J[a+28>>2],J[b>>2]==1?+J[b+8>>2]:O[b+8>>3],J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3],J[b+32>>2]==1?+J[b+40>>2]:O[b+40>>3],J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3],J[b+64>>2]==1?+J[b+72>>2]:O[b+72>>3],J[b+80>>2]==1?+J[b+88>>2]:O[b+88>>3]);J[a+32>>2]=1}function nGa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=fc-16|0;fc=b;a:{c=J[a>>2];d=c;b:{if(!K[a+8|0])break b;d=0;if(!c)break b;d=J[c>>2]}a=bf(d);if(a>>>0<1073741808){c:{if(a>>>0<=1){H[b+15|0]=a;c=b+4|0;break c}c=a|3;if(c>>>0>=1073741823)break a; +e=c+1|0;c=vc(e<<2);J[b+12>>2]=e|-2147483648;J[b+4>>2]=c;J[b+8>>2]=a}a=a<<2;f=cd(c,d,a)+a|0,g=0,J[f>>2]=g;J[699344]=0;a=ga(5128,b+4|0,0,10)|0;d=J[699344];J[699344]=0;if((d|0)!=1){if(H[b+15|0]<0)uc(J[b+4>>2]);fc=b+16|0;return a|0}a=Z()|0;if(H[b+15|0]<0)uc(J[b+4>>2]);ba(a|0);B()}_d(b+4|0);B()}Pd();B()}function FZ(a){a=a|0;var b=0,c=0,d=0,e=0;d=fc-16|0;fc=d;J[a>>2]=2348584;b=J[a+20>>2];if(b)uc(Zc(b));b=J[a+24>>2];J[699344]=0;da(3614,b|0,d+12|0);c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;while(1){J[699344]= +0;c=cj(b,d+12|0,d+8|0,d+4|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c){c=J[d+4>>2];if(!c)continue;e=J[c>>2];if(e)uc(Zc(e));e=J[c+4>>2];if(e)uc(Zc(e));uc(c);continue}break}uc(Sh(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}fc=d+16|0;return a|0}ea(0)|0;Bc();B()}function DF(a,b){var c=0;if(b>>>0<=999999){if(b>>>0<=9999){if(b>>>0<=99){if(b>>>0<=9){H[a|0]=b+48;return a+1|0}return Cp(a,b)}if(b>>>0<=999){c=(b>>>0)/100|0;H[a|0]=c+48;return Cp(a+ +1|0,b-P(c,100)|0)}return CF(a,b)}if(b>>>0<=99999){c=(b>>>0)/1E4|0;H[a|0]=c+48;return CF(a+1|0,b-P(c,1E4)|0)}return BF(a,b)}if(b>>>0<=99999999){if(b>>>0<=9999999){c=(b>>>0)/1E6|0;H[a|0]=c+48;return BF(a+1|0,b-P(c,1E6)|0)}return Zy(a,b)}if(b>>>0<=999999999){c=(b>>>0)/1E8|0;H[a|0]=c+48;return Zy(a+1|0,b-P(c,1E8)|0)}c=a;a=(b>>>0)/1E8|0;return Zy(Cp(c,a),b-P(a,1E8)|0)}function $s(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>131071)break a;e=a&255;c=(e>>>0)/3|0;b=a>>>8|0;b=J[(((P(J[((a-P(c,3)&255)<<2)+ +2622644>>2],K[(c+P(K[b+2624016|0],86)|0)+2624016|0])>>>11>>>0)%6|0)+K[b+2626688|0]<<2)+2622656>>2];c=b>>8;b=b&255;if(b>>>0<=1)return(c&0-b)+a|0;b=c&255;if(!b)break a;c=c>>>8|0;while(1){f=b>>>1|0;d=f+c|0;g=K[(d<<1)+2623616|0];if((g|0)==(e|0)){c=J[(K[(d<<1)+2623617|0]<<2)+2622656>>2];b=c&255;if(b>>>0<=1)return(0-b&c>>8)+a|0;return a+1|0}h=d;d=e>>>0>>0;c=d?c:h;b=d?f:b-f|0;if(b)continue;break}}return a}function j8(a,b){var c=0,d=0,e=0,f=0,g=0;b=J[a+84>>2]+(J[a+48>>2]+b|0)|0;d=J[a+12>>2];a:{if(b>>> +0<=d>>>0)break a;b=b+1|0;if((b|d)<0)return 6;f=J[a>>2];g=J[a+52>>2];b:{c:{e=b&-2;d:{if(!e){b=0;if(!g)break d;kc[J[f+8>>2]](f,g);J[a+52>>2]=0;break b}c=10;if((e|0)>67108863)break a;e:{if(!d){b=kc[J[f+4>>2]](f,e<<5)|0;c=!b<<6;break e}c=kc[J[f+12>>2]](f,d<<5,e<<5,g)|0;b=c?c:g;c=!c<<6}if(c|(d|0)>=(e|0)|!b)break c;Ac((d<<5)+b|0,0,e-d<<5)}J[a+52>>2]=b;break b}J[a+52>>2]=b;if(c)break a}J[a+12>>2]=e;c=0;J[a+88>>2]=b?(J[a+48>>2]<<5)+b|0:0}return c}function hm(a,b,c){var d=0,e=0,f=0,g=0;d=fc-32|0;fc=d;e=d9(a, +b,c,d+4|0);if(e){a=0;Df(b,d+28|0,d+24|0,0);ss(c,d+16|0,d+20|0,d+8|0,d+12|0);if(e)Cf(e,0,0,e?J[e>>2]:-1,e?J[e+4>>2]:-1,0,0,0,0);g=J[d+16>>2];a:{if((g|0)<=0)break a;f=J[d+20>>2];if((f|0)<=0)break a;while(1){b=0;if((f|0)>0){while(1){if(J[J[J[c+16>>2]+(a<<2)>>2]+(b<<2)>>2]==1){Cf(e,b-J[d+12>>2]|0,a-J[d+8>>2]|0,J[d+28>>2],J[d+24>>2],28,J[d+4>>2],0,0);f=J[d+20>>2]}b=b+1|0;if((f|0)>(b|0))continue;break}g=J[d+16>>2]}a=a+1|0;if((g|0)>(a|0))continue;break}}Fd(d+4|0)}fc=d+32|0;return e}function RGa(a){a=a|0; +var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=fc-16|0;fc=b;c=J[a>>2];a:if(K[a+8|0]){d=0;if(!c)break a;d=J[c>>2]}else d=c;b:{a=J[a+4>>2];if(a>>>0<1073741808){c:{if(a>>>0<=1){H[b+15|0]=a;c=b+4|0;break c}c=a|3;if(c>>>0>=1073741823)break b;e=c+1|0;c=vc(e<<2);J[b+12>>2]=e|-2147483648;J[b+4>>2]=c;J[b+8>>2]=a}a=a<<2;g=cd(c,d,a)+a|0,h=0,J[g>>2]=h;J[699344]=0;f=+Oa(5127,b+4|0,0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[b+15|0]<0)uc(J[b+4>>2]);fc=b+16|0;return+f}a=Z()|0;if(H[b+15|0]<0)uc(J[b+4>>2]);ba(a|0);B()}_d(b+4| +0);B()}Pd();B()}function OT(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2450296;c=J[a+124>>2];b=J[a+120>>2];if((c|0)!=(b|0))while(1){c=c-8|0;d=J[c+4>>2];a:{if(!d)break a;e=J[d+4>>2];J[d+4>>2]=e-1;if(e)break a;kc[J[J[d>>2]+8>>2]](d);Gc(d)}if((b|0)!=(c|0))continue;break}J[a+124>>2]=b;if(H[a+143|0]<0)uc(J[a+132>>2]);d=J[a+120>>2];if(d){b=d;c=J[a+124>>2];if((b|0)!=(c|0)){while(1){c=c-8|0;b=J[c+4>>2];b:{if(!b)break b;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)!=(c|0))continue; +break}b=J[a+120>>2]}J[a+124>>2]=d;uc(b)}return a|0}function Ad(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a;a:{b:{c:{d:{if((e^b)&3)break d;d=(c|0)!=0;e:{if(!(b&3)|!c)break e;while(1){d=K[b|0];H[e|0]=d;if(!d)break a;e=e+1|0;c=c-1|0;d=(c|0)!=0;b=b+1|0;if(!(b&3))break e;if(c)continue;break}}if(!d)break b;if(!K[b|0])break a;if(c>>>0<4)break d;while(1){d=J[b>>2];if((d^-1)&d-16843009&-2139062144)break c;J[e>>2]=d;e=e+4|0;b=b+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break b}while(1){d=K[b|0];H[e|0]=d;if(!d)break a; +e=e+1|0;b=b+1|0;c=c-1|0;if(c)continue;break}}c=0}Ac(e,0,c);return a|0}function x3a(){var a=0;a=J[693238];if(a){l3(a);J[693238]=0}J[693239]=0;a=J[693228];a:{if(!a)break a;Vh(a);J[693228]=0;a=J[693229];if(!a)break a;Vh(a);J[693229]=0;a=J[693230];if(!a)break a;Vh(a);J[693230]=0;a=J[693231];if(!a)break a;Vh(a);J[693231]=0;a=J[693232];if(!a)break a;Vh(a);J[693232]=0;a=J[693233];if(!a)break a;Vh(a);J[693233]=0;a=J[693234];if(!a)break a;Vh(a);J[693234]=0;a=J[693235];if(!a)break a;Vh(a);J[693235]=0;a=J[693236]; +if(!a)break a;Vh(a);J[693236]=0;a=J[693237];if(!a)break a;Vh(a);J[693237]=0}J[693241]=0;return 1}function e7(a,b,c){var d=0,e=0,f=0;a:{if(K[a+44|0])break a;H[a+44|0]=1;e=J[a+20>>2];if(!e)return 3;b:{if(K[a+45|0]){d=J[a+12>>2];if((I[d+20>>1]+I[d+56>>1]|0)+1>>>0>M[d+8>>2]){d=Hh(d,0,1);if(d)break a}f=L[e>>1];d=f<<16>>16;if((d|0)<=0)break b;I[(J[e+12>>2]+(f<<1)|0)-2>>1]=L[e+2>>1]-1}d=L[e>>1]}I[e>>1]=d+1;d=J[a+12>>2];if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=Hh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+ +45|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d}function PJ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;while(1){f=h<<3;d=f+b|0;e=J[d>>2];i=c+f|0;a:{if(J[i>>2]){if(!e){J[d>>2]=1;j=d,k=Gd(256,8),J[j+4>>2]=k;f=0;while(1){e=f<<3;J[e+J[d+4>>2]>>2]=0;J[(e+J[d+4>>2]|0)+4>>2]=0;g=e|8;J[g+J[d+4>>2]>>2]=0;J[(g+J[d+4>>2]|0)+4>>2]=0;g=e|16;J[g+J[d+4>>2]>>2]=0;J[(g+J[d+4>>2]|0)+4>>2]=0;e=e|24;J[e+J[d+4>>2]>>2]=0;J[(e+J[d+4>>2]|0)+ +4>>2]=0;f=f+4|0;if((f|0)!=256)continue;break}}PJ(a,J[d+4>>2],J[i+4>>2]);break a}if(e){Cc(1,-1,793046,0);break a}J[d+4>>2]=J[i+4>>2]}h=h+1|0;if((h|0)!=256)continue;break}}function ITa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;c=fc-32|0;fc=c;f=J[b+8>>2];e=J[a+20>>2];a:{while(1){d=J[e+4>>2];if(d){d=AJ(d,f);if(d)break a}e=J[e+104>>2];if(e)continue;break}J[c+16>>2]=f;Cc(1,-1,784882,c+16|0);d=0}b:{if(!d){a=J[a+28>>2];J[a+496>>2]=0;J[a+500>>2]=0;J[a+492>>2]=0;break b}g=J[b+16>>2]==1?+J[b+24>>2]:O[b+24>> +3];if(J[a+16>>2]){e=J[J[d+4>>2]+4>>2];b=J[d+16>>2];if(b)b=J[b+4>>2];else b=833329;O[c+8>>3]=g;J[c+4>>2]=b;J[c>>2]=e;Kz(833060,c);Zi(J[655076])}b=J[a+28>>2];O[b+496>>3]=g;J[b+492>>2]=d;J[a+32>>2]=1}fc=c+32|0}function A6(a,b){var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+12>>2]=0;e=Rg(a,d+12|0);c=J[d+12>>2];a:{if(c)break a;if((e|0)==-128){c=8;break a}f=b;b=e&127;b:{if((e|0)>=0)break b;e=Rg(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127|b<<7;if((e|0)>=0)break b;e=Rg(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127| +b<<7;if((e|0)>=0)break b;e=Rg(a,d+12|0);c=J[d+12>>2];if(c)break a;b=e&127|b<<7;if((e|0)>=0)break b;a=Rg(a,d+12|0);c=J[d+12>>2];if(c)break a;if(b>>>0>33554431){c=8;break a}c=8;if((a|0)<0)break a;b=a&127|b<<7}J[f>>2]=b;c=0}fc=d+16|0;return c}function fd(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(!a)break a;c=0;b:{if(K[b|0]!=35)break b;c=1;if(K[b+1|0]==32)break b;c=2;if(K[b+2|0]==32)break b;c=3;if(K[b+3|0]==32)break b;c=4;if(K[b+4|0]==32)break b;c=5;if(K[b+5|0]==32)break b;c=6;if(K[b+6|0]==32)break b;c=7;if(K[b+ +7|0]==32)break b;c=8;if(K[b+8|0]==32)break b;c=9;if(K[b+9|0]==32)break b;c=10;if(K[b+10|0]==32)break b;c=11;if(K[b+11|0]==32)break b;c=12;if(K[b+12|0]==32)break b;c=13;if(K[b+13|0]==32)break b;c=K[b+14|0]==32?14:15}d=J[a+164>>2];if(!d)break a;kc[d|0](a,b+c|0)}}function bGa(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=fc-16|0;fc=f;a:{if(M[b+4>>2]>=17){h=a+56|0;g=f+4|0;d=J[b>>2];b:{if(K[b+8|0]){e=0;if(!d)break b;d=J[d>>2]}e=d}d=Et(g,e- -64|0,0,J[b+4>>2]-17|0);b=J[a+60>>2]-J[a+56>>2]>>3;while(1){if((b| +0)>0){b=b-1|0;e=J[a+56>>2];if(b>>>0>=J[a+60>>2]-e>>3>>>0){J[699344]=0;$(5140,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}e=J[(b<<3)+e>>2];J[699344]=0;e=QX(e,d,c);g=J[699344];J[699344]=0;if((g|0)==1)break a;if(!e)continue}break}Rc(d)}fc=f+16|0;return}a=Z()|0;Rc(d);ba(a|0);B()}function bD(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(J[b>>2]>0)break a;f=o3(J[a+16>>2],735464,J[a+20>>2],3039,b);if(J[b>>2]>0)break a;e=i3(f);b:{if(J[b>>2]>0)break b;d=13;c:{c=H[e+69|0];d:{if((c&65534)>>>0>33|((c&63)>>>0<32? +515>>>c|0:0)&1)break d;c=J[(c<<2)+735328>>2];if(!K[c+17|0]|J[c+4>>2]!=1|J[e>>2]!=100)break d;d=ji(228);if(d)break c;d=7}J[b>>2]=d;break b}c=xc(d,c,228);H[c+16|0]=0;J[c+12>>2]=e;J[c+8>>2]=f;g=J[J[c+20>>2]+4>>2];if(g){kc[g|0](c,a,J[e>>2]+e|0,b);if(J[b>>2]<=0)break a;Nf(c);d=0}if(J[b>>2]<=0)break a}Vh(f);d=0}return d}function VVa(a,b){a=a|0;b=b|0;var c=0;c=vc(88);J[699344]=0;J[c+8>>2]=a;J[c>>2]=2181644;J[c+16>>2]=0;J[c+12>>2]=b;J[c+4>>2]=a;a=c;b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[c+32>>2]=-755914244; +J[c+36>>2]=1062232653;J[c+20>>2]=0;J[c+24>>2]=0;J[c>>2]=2194316;J[c+40>>2]=0;J[c+44>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;b=c- -64|0;J[b>>2]=0;J[b+4>>2]=0;J[c+56>>2]=-755914244;J[c+60>>2]=1062232653;J[c+72>>2]=0;J[c+76>>2]=0;J[c+80>>2]=0;J[699344]=0;$(3540,c|0);b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;dq(c);break a}return a|0}a=Z()|0}uc(c);ba(a|0);B()}function M3a(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=K[a+11|0];g=d<<24>>24<0?J[a+4>>2]:d;a:{if(!g)break a;J[b>>2]=0;d=g<<2|2;i=vc(g& +1073741824?-1:d);f=Ac(i,0,d);d=f;while(1){e=J[_h(a,h)>>2];if(e>>>0<=65535)j=1;else{I[d+2>>1]=e&1023|56320;e=e+16711680>>>10|-10240;j=2}I[d>>1]=e;d=(j<<1)+d|0;h=h+1|0;if((h|0)!=(g|0))continue;break}a=d-f|0;J[b>>2]=a>>1;if((d|0)==(f|0)){uc(f);return 0}if(K[c|0])break a;d=0;while(1){b=d+f|0;c=K[b|0];e=b;b=(d|1)+f|0;H[e|0]=K[b|0];H[b|0]=c;d=d+2|0;if(a>>>0>d>>>0)continue;break}}return i|0}function FF(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;g=fc-16|0;fc=g;e=fc-16|0;fc=e;a:{f=c-b|0;if(f>>>0<=1073741807){b:{if(f>>> +0<2){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d=a;break b}i=e+8|0;if(f>>>0>=2){h=f+4&-4;d=h-1|0;d=(d|0)==2?h:d}else d=1;to(i,a,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){J[e+8>>2]=H[b|0];b=b+1|0;J[d>>2]=J[e+8>>2];d=d+4|0;continue}break}J[e+8>>2]=0;J[d>>2]=J[e+8>>2];fc=e+16|0;break a}_d(a);B()}fc=g+16|0}function $jb(a){a=a|0;var b=0,c=0,d=0,e=0;d=J[J[a+96>>2]+8>>2];b=J[a+356>>2];if(b){c= +J[a+348>>2];if((c|0)>0){c=P(c,20)+b|0;while(1){e=J[b+16>>2];if(e)kc[J[d+8>>2]](d,e);J[b+16>>2]=0;b=b+20|0;if(c>>>0>b>>>0)continue;break}b=J[a+356>>2]}if(b)kc[J[d+8>>2]](d,b);J[a+356>>2]=0}b=J[a+364>>2];if(b){c=J[a+360>>2];if((c|0)>0){c=P(c,12)+b|0;while(1){e=J[b+8>>2];if(e)kc[J[d+8>>2]](d,e);J[b+8>>2]=0;b=b+12|0;if(c>>>0>b>>>0)continue;break}b=J[a+364>>2]}if(b)kc[J[d+8>>2]](d,b);J[a+364>>2]=0}I[a+344>>1]=0;J[a+360>>2]=0;J[a+348>>2]=0;J[a+352>>2]=0}function xfa(a){a=a|0;if(K[2797744])return J[699435]; +if(!K[2798544])H[2798544]=1;zf(2798256,1289);zf(2798268,1280);zf(2798280,11252);zf(2798292,9832);zf(2798304,1584);zf(2798316,13841);zf(2798328,1318);zf(2798340,2077);zf(2798352,5536);zf(2798364,5519);zf(2798376,5527);zf(2798388,5546);zf(2798400,7351);zf(2798412,18791);zf(2798424,5620);zf(2798436,4734);zf(2798448,1584);zf(2798460,6359);zf(2798472,9608);zf(2798484,12713);zf(2798496,5833);zf(2798508,3727);zf(2798520,1752);zf(2798532,18038);H[2797744]=1;J[699435]=2798256;return 2798256}function kwa(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;a:{if(!(J[b>>2]>2]&J[b+4>>2]>2])){a=Qc(c+8|0,2395337,2385446,334,2425169,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=d;if(K[a+32|0]&4){e=a,f=AEb(J[a>>2],J[a+4>>2],32),J[e>>2]=f;J[a+4>>2]=jc;e=a,f=AEb(J[a+8>>2],J[a+12>>2],32),J[e+8>>2]=f;J[a+12>>2]=jc}J[a+36>>2]=0;J[a+40>>2]=1;J[a+44>>2]=0;J[a+48>>2]= +1;fc=c+32|0;return}B()}function a7(a,b){var c=0,d=0,e=0,f=0;f=fc-16|0;fc=f;a:{b:{d=J[a+20>>2];if((d|0)!=J[a+12>>2]){e=J[a+28>>2];break b}c=J[a+16>>2];J[f+12>>2]=0;c:{c=c+d|0;e=J[a+8>>2];if(c>>>0>2147483647/(e>>>0)>>>0)break c;d=P(c,e);e=_c(J[a>>2],1,J[a+24>>2],d,J[a+28>>2],f+12|0);J[a+28>>2]=e;if(J[f+12>>2])break c;J[a+24>>2]=d;J[a+12>>2]=c;d=J[a+20>>2];if(c>>>0>=d>>>0)break b;b=J[a+4>>2];if(!(!b|J[b>>2]))J[b>>2]=130;J[a+20>>2]=c;break a}a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=64;break a}c=J[a+ +8>>2];xc(P(c,d)+e|0,b,c);J[a+20>>2]=J[a+20>>2]+1}fc=f+16|0}function XCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;c=J[685894];e=b&3;b:{if(!e){d=b;break b}d=b;while(1){J[a+24>>2]=0;J[a+16>>2]=0;J[a+28>>2]=c;J[a+20>>2]=c;a=a+32|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<4)break a;while(1){J[a+24>>2]=0;J[a+16>>2]=0;J[a+124>>2]=c;J[a+120>>2]=0;J[a+116>>2]=c;J[a+112>>2]=0;J[a+92>>2]=c;J[a+88>>2]=0;J[a+84>>2]=c;J[a+80>>2]=0;J[a+60>>2]=c;J[a+56>>2]=0;J[a+52>>2]=c;J[a+48>> +2]=0;J[a+28>>2]=c;J[a+20>>2]=c;a=a+128|0;b=d-5|0;d=d-4|0;if(b>>>0<4294967294)continue;break}}}function Gea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;J[d+8>>2]=c;J[d+12>>2]=b;g=d,h=Ei(a),J[g+4>>2]=h;e=J[d+12>>2]-J[d+4>>2]>>2;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a:{if((c|0)==((K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1)|0)){$y(a,c,1,c,e,1);b=J[a>>2];break a}if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if((c|0)==(e|0))break a;f=(e<<2)+b|0;tn(f+4|0,f,c-e|0)}J[(e<<2)+b>> +2]=J[d+8>>2];J[d+4>>2]=0;f=b;b=c+1|0;c=d+4|0;J[f+(b<<2)>>2]=J[c>>2];kl(a,b);g=d,h=Ei(a),J[g+4>>2]=h;a=ez(c,e);fc=d+16|0;return a|0}function qOa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0;J[a+20>>2]=f;J[a+16>>2]=e;J[a+12>>2]=d;J[a+8>>2]=c;J[a>>2]=2343748;J[a+4>>2]=b;e=1;a:{if((f|0)>0){e=2147483644;if(f>>>0<2147483645)break a}J[a+20>>2]=e;f=e}J[a+32>>2]=i;J[a+28>>2]=h;J[a+24>>2]=g;J[a+36>>2]=i?255:0;j=a,k=Gd(f+1|0,4),J[j+60>>2]=k;b=Gd(J[a+20>>2]+3|0,4);J[a+ +48>>2]=0;J[a+40>>2]=0;J[a+64>>2]=b;J[a+56>>2]=0;J[a+44>>2]=J[a+8>>2]>>>31;b=J[a+20>>2];J[J[a+60>>2]>>2]=b;J[a+80>>2]=0;J[a+72>>2]=0;J[a+76>>2]=0;J[a+68>>2]=b;return a|0}function cJ(a,b){var c=0,d=0;if(K[a+206|0]&128){c=0;a:{if(K[b|0]!=35)break a;c=1;if(K[b+1|0]==32)break a;c=2;if(K[b+2|0]==32)break a;c=3;if(K[b+3|0]==32)break a;c=4;if(K[b+4|0]==32)break a;c=5;if(K[b+5|0]==32)break a;c=6;if(K[b+6|0]==32)break a;c=7;if(K[b+7|0]==32)break a;c=8;if(K[b+8|0]==32)break a;c=9;if(K[b+9|0]==32)break a;c=10; +if(K[b+10|0]==32)break a;c=11;if(K[b+11|0]==32)break a;c=12;if(K[b+12|0]==32)break a;c=13;if(K[b+13|0]==32)break a;c=K[b+14|0]==32?14:15}d=J[a+164>>2];if(d)kc[d|0](a,b+c|0);return}Ld(a,b);B()}function Iea(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;f=bf(c);h=fc-16|0;fc=h;a:{if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(b>>>0<=d>>>0){e=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;b:{if(e-d>>>0>=f>>>0){if(!f)break b;if(K[a+11|0]>>>7|0)e=J[a>>2];else e=a;g=b<<2;i=e+g|0;if((b|0)!=(d| +0)){g=e+g|0;tn(g+(f<<2)|0,g,d-b|0);c=((c>>>0>=g>>>0?e+(d<<2)>>>0>c>>>0?f:0:0)<<2)+c|0}tn(i,c,f);b=f+d|0;kl(a,b);J[h+12>>2]=0;J[e+(b<<2)>>2]=J[h+12>>2];break b}Ks(a,e,(f+d|0)-e|0,d,b,0,f,c)}fc=h+16|0;break a}as(a);B()}return a|0}function HUa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;J[a>>2]=2216908;c=xc(a,b,1072);f=c,g=Gd(J[c+1044>>2],4),J[f+1048>>2]=g;d=J[c+1044>>2];if((d|0)>0){a=0;while(1){d=a<<2;e=J[d+J[b+1048>>2]>>2];e=kc[J[J[e>>2]+8>>2]](e)|0;J[d+J[c+1048>>2]>>2]=e;a=a+1|0;d=J[c+1044>>2];if((a| +0)<(d|0))continue;break}}a=Gd(d+1|0,8);J[c+1052>>2]=a;xc(a,J[b+1052>>2],(J[c+1044>>2]<<3)+8|0);a=Gd(J[c+1044>>2]<<1,8);J[c+1056>>2]=a;xc(a,J[b+1056>>2],J[c+1044>>2]<<4);a=Gd(J[c+1044>>2],8);J[c+1060>>2]=a;xc(a,J[b+1060>>2],J[c+1044>>2]<<3);J[c+1064>>2]=1;return c|0}function BC(a){var b=0,c=0,d=0;c=fc-16|0;fc=c;b=kc[J[663195]](60)|0;a:{if(!b){if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2}J[c>>2]=33608;Hc(0,0,0,a,0,1,2,3,33608,0,0,0,32879,c);break a}J[b+48>> +2]=0;J[b+52>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+56>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+52>>2]=-1;J[b+32>>2]=1;J[b+28>>2]=1;if(!a)break a;d=a;a=J[a+464>>2];J[d+464>>2]=a+1;J[b+56>>2]=a}fc=c+16|0;return b}function Yrb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if(J[c>>2]!=1396790853){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];d=J[c+36>>2];J[b+36>>2]=d;a:{b:{if(!d)break b;d=P(d,36); +e=kc[J[a+152>>2]](d)|0;J[b+40>>2]=e;if(!e)break a;xc(e,J[c+40>>2],d);d=J[b+36>>2];if(!d)break b;c=J[b+40>>2];while(1){e=J[c+28>>2];c:{if(e){d=J[c+32>>2];e=kc[J[a+152>>2]](e)|0;J[c+32>>2]=e;if(!e)break a;xc(e,d,J[c+28>>2]);d=J[b+36>>2];break c}J[c+32>>2]=0}c=c+36|0;f=f+1|0;if(f>>>0>>0)continue;break}}return 0}Jc(a,1,0,0);return 1}function YC(a,b){var c=0;if(a-192>>>0<=127){J[b>>2]=192;return 249}if(a-592>>>0<128){J[b>>2]=592;return 250}if(a-880>>>0<128){J[b>>2]=880;return 251}if(a-1328>>>0<128){J[b>> +2]=1328;return 252}if(a-12352>>>0<128){J[b>>2]=12352;return 253}if(a-12448>>>0<128){J[b>>2]=12448;return 254}if(a-65376>>>0<128){J[b>>2]=65376;return 255}c=-1;a:{if(a>>>0<128)break a;if(!(!(a-118784>>>0<12288|a>>>0<13312)&(a&-16384)!=65536)){J[b>>2]=a&2147483520;return a>>>7|0}if((a|0)==65279|a-57344>>>0>8175)break a;J[b>>2]=a&2147483520;c=a-44032>>>7|0}return c}function Wv(a,b){var c=0,d=0;c=J[a+24>>2];if(c>>>0>>0){b=65536-b|0;d=b+c|0;c=b+J[a+20>>2]|0;a:{if(c>>>0>=65280){b=H[((c&255)+a|0)+2604| +0]+8|0;break a}b=H[((c>>>8|0)+a|0)+2604|0]}J[a+20>>2]=c<>2]>>>c|d<>2]=b;if(c>>>0<=15){Xv(a);b=J[a+24>>2]}J[a+28>>2]=b>>>0>=32767?32767:b;return 1}J[a+20>>2]=b<<1&65534;b=K[a+18|0]-1|0;H[a+18|0]=b;d=b&255;b=J[a+36>>2]>>>d&1|c<<1&65534;J[a+24>>2]=b;if(d>>>0<=15){Xv(a);b=J[a+24>>2]}J[a+28>>2]=b>>>0>=32767?32767:b;return 0}function rDa(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;b=vc(136);J[699344]=0;d=_(5319,b|0)|0;e=J[699344]; +J[699344]=0;if((e|0)==1){a=Z()|0;uc(b);ba(a|0);B()}J[c+12>>2]=0;b=c+12|0;vd(b,d);J[699344]=0;aa(5153,a+8|0,b|0)|0;a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[c+12>>2];J[c+12>>2]=0;b:{if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=c+16|0;return}a=Z()|0;zc(c+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function gxa(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;f=(c| +0)/2|0;J[a+104>>2]=f;e=(b|0)/2|0;J[a+100>>2]=e;g=J[a+124>>2];d=g+b|0;J[a+132>>2]=d;b=c;c=J[a+128>>2];b=b+c|0;J[a+136>>2]=b;h=e+f|0;c=(b+c|0)/2|0;b=(d+g|0)/2|0;a:{if((e|0)>(f|0)){i=Y(+(P(h,e-f|0)|0));b:{if(R(i)<2147483648){d=~~i;break b}d=-2147483648}h=b-d|0;b=b+d|0;d=f;g=c;break a}i=Y(+(P(h,f-e|0)|0));c:{if(R(i)<2147483648){j=~~i;break c}j=-2147483648}g=j+c|0;d=e;e=f;h=b;c=c-j|0}J[a+120>>2]=c;J[a+116>>2]=h;J[a+108>>2]=b;J[a+92>>2]=e;J[a+96>>2]=d;J[a+112>>2]=g}function Xha(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;var h=0;c=fc-128|0;fc=c;J[c+12>>2]=c+116;d=c+16|0;xR(a+8|0,d,c+12|0,e,f,g);g=fc-16|0;fc=g;a=fc-32|0;fc=a;jG(a+24|0,d,J[c+12>>2]);h=J[a+28>>2];e=fc-16|0;fc=e;f=J[a+24>>2];J[e+8>>2]=f;J[e+12>>2]=b;while(1){if((f|0)!=(h|0)){fS(e+12|0,H[f|0]);f=f+1|0;J[e+8>>2]=f;continue}break}J[a+16>>2]=J[e+8>>2];J[a+20>>2]=J[e+12>>2];fc=e+16|0;J[a+12>>2]=(J[a+16>>2]-d|0)+d;J[a+8>>2]=J[a+20>>2];J[g+8>>2]=J[a+12>>2];J[g+12>>2]=J[a+8>>2];fc=a+32|0;fc=g+16|0;fc=c+128|0;return J[g+12>>2]} +function $Fa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=fc-16|0;fc=g;a:{if(M[b+4>>2]>=17){h=a+56|0;d=g+4|0;e=J[b>>2];b:{if(K[b+8|0]){f=0;if(!e)break b;e=J[e>>2]}f=e}e=Et(d,f- -64|0,0,J[b+4>>2]-17|0);b=J[a+60>>2]-J[a+56>>2]>>3;while(1){if((b|0)>0){b=b-1|0;d=J[a+56>>2];if(b>>>0>=J[a+60>>2]-d>>3>>>0){J[699344]=0;$(5140,h|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}d=J[(b<<3)+d>>2];J[699344]=0;d=OX(d,e,c);f=J[699344];J[699344]=0;if((f|0)==1)break a;if(!d)continue}break}Rc(e)}fc=g+16|0; +return}a=Z()|0;Rc(e);ba(a|0);B()}function zO(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;a:{if(!b)break a;e=J[a+4>>2];if(!e)break a;d=J[a+44>>2];if(!d)break a;b:{if(!c)break b;e=e+40|0;d=c>>>0>d>>>0?d:c;h=d&1;c=0;if((d|0)!=1){i=d&-2;d=0;while(1){g=e+(c<<2)|0;f=P(c,3)+b|0;H[g+2|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g|0]=K[f+2|0];f=c|1;g=e+(f<<2)|0;f=P(f,3)+b|0;H[g+2|0]=K[f|0];H[g+1|0]=K[f+1|0];H[g|0]=K[f+2|0];c=c+2|0;d=d+2|0;if((i|0)!=(d|0))continue;break}}if(!h)break b;e=e+(c<<2)|0;b=P(c,3)+b|0; +H[e+2|0]=K[b|0];H[e+1|0]=K[b+1|0];H[e|0]=K[b+2|0]}H[a+481|0]=0}}function jGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=O[b>>3]*O[a+48>>3];O[a+48>>3]=h;b=J[a+36>>2];if((b|0)!=J[a+40>>2]){O[b>>3]=h;J[a+36>>2]=b+8;return}a:{c=a+32|0;f=J[c>>2];e=b-f|0;g=e>>3;d=g+1|0;if(d>>>0<536870912){c=e>>2;c=e>>>0>=2147483640?536870911:c>>>0>d>>>0?c:d;if(c){if(c>>>0>=536870912)break a;e=vc(c<<3)}else e=0;d=e+(g<<3)|0;O[d>>3]=h;g=d+8|0;if((b|0)!=(f|0))while(1){d=d-8|0;b=b-8|0;O[d>>3]=O[b>>3];if((b|0)!=(f|0))continue; +break}J[a+40>>2]=e+(c<<3);J[a+36>>2]=g;J[a+32>>2]=d;if(f)uc(f);return}Fg(c);B()}Pd();B()}function WOa(a,b){a=a|0;b=b|0;kc[J[J[a>>2]+80>>2]](a,b);kc[J[J[a>>2]+84>>2]](a,b);kc[J[J[a>>2]+88>>2]](a,b);kc[J[J[a>>2]+92>>2]](a,b);kc[J[J[a>>2]+96>>2]](a,b);kc[J[J[a>>2]+100>>2]](a,b);kc[J[J[a>>2]+104>>2]](a,b);kc[J[J[a>>2]+108>>2]](a,b);kc[J[J[a>>2]+116>>2]](a,b);kc[J[J[a>>2]+112>>2]](a,b);kc[J[J[a>>2]+120>>2]](a,b);kc[J[J[a>>2]+124>>2]](a,b);kc[J[J[a>>2]+128>>2]](a,b);kc[J[J[a>>2]+132>>2]](a,b);kc[J[J[a>> +2]+136>>2]](a,b);kc[J[J[a>>2]+140>>2]](a,b);kc[J[J[a>>2]+144>>2]](a,b);kc[J[J[a>>2]+152>>2]](a,b);kc[J[J[a>>2]+156>>2]](a,b)}function hjb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;c=J[a>>2];a:{b:{if(K[c+8|0]&2){d=kc[J[J[c+540>>2]+104>>2]](c,b,e+12|0)|0;if(!d){c=J[e+12>>2];J[a+116>>2]=c;b=J[a>>2];if(H[b+8|0]&1){io(b,c);d=0;TM(a);break a}d=kc[J[J[b+540>>2]+108>>2]](b,c,a+12|0)|0;if(!d)break b;J[a+116>>2]=-1;break a}J[a+116>>2]=-1;c=J[a>>2]}ms(c,b);if(!(H[J[a>>2]+8|0]&1))break a;d=TM(a); +if(d)break a;c=a;d=L[a+84>>1];a=J[a+44>>2];a=J[(L[a>>1]>L[a+2>>1]?12:16)+b>>2];f=c,g=Od(d,4608,J[b>>2]==4?72:a?a:72),J[f+120>>2]=g}d=0}fc=e+16|0;return d|0}function MA(a,b,c){var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;e=Yc(b);if(!(!c|!K[c|0]))f=Yc(c);if(a){J[a+744>>2]=34;H[d+8|0]=116;H[d+9|0]=69;H[d+10|0]=88;H[d+11|0]=116;e=e+1|0;g=e+f|0;H[d+7|0]=g;H[d+6|0]=g>>>8;H[d+5|0]=g>>>16;H[d+4|0]=g>>>24;hf(a,d+4|0,8);J[a+348>>2]=1950701684;Km(a);Ae(a,d+8|0,4);J[a+744>>2]=66;if(!(!b|!e)){hf(a,b,e);Ae(a,b,e)}if(!(!f| +(!a|!c))){hf(a,c,f);Ae(a,c,f)}J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[d+12|0]=b;H[d+13|0]=b>>>8;H[d+14|0]=b>>>16;H[d+15|0]=b>>>24;hf(a,d+12|0,4)}fc=d+16|0}function GVa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+400>>2];J[c+8>>2]=0;a:{if(J[a+288>>2]>=2){J[c+20>>2]=1;break a}d=J[a+292>>2];if(J[a+284>>2]!=1){J[c+20>>2]=J[d+12>>2];break a}J[c+20>>2]=J[d+76>>2]}J[c+12>>2]=0;J[c+16>>2]=0;b:switch(b|0){case 0:if(J[c+64>>2]){b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}J[c+4>>2]=485;return; +case 3:if(!J[c+64>>2]){b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}J[c+4>>2]=486;return;case 2:if(!J[c+64>>2]){b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}J[c+4>>2]=487;return;default:break b}b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}function Zu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!a)break a;a=J[a+128>>2];J[a+24>>2]=0;b:{c:{d:{if(!b){J[a+8>>2]=0;J[a+12>>2]=65536;J[a>>2]=65536;J[a+4>>2]=0;b=a;break d}d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;d=b+8|0;e=J[d+4>>2];J[a+8>>2]=J[d>>2];J[a+12>>2]=e;if(J[b+8>>2]|J[b+ +4>>2])break c}if(J[b>>2]!=65536)break c;d=2;if(J[b+12>>2]==65536)break b}J[a+24>>2]=1;d=3}b=a+16|0;e:{if(!c){J[a+16>>2]=0;J[a+20>>2]=0;c=0;break e}b=J[c+4>>2];J[a+16>>2]=J[c>>2];J[a+20>>2]=b;b=c;c=J[b>>2]}if(!(c|J[b+4>>2]))break a;J[a+24>>2]=d}}function TT(a,b,c){a=a|0;b=b|0;c=+c;var d=0,e=0;d=fc-32|0;fc=d;O[d+16>>3]=c;J[d+28>>2]=b;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=2463820;J[699344]=0;aa(6663,d|0,d+28|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;b=a+240|0;aa(6664,d|0, +b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[699344]=0;aa(6653,b|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+256>>2];J[699344]=0;ga(6665,a+256|0,b|0,d+16|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;qi(d);fc=d+32|0;return}a=Z()|0;qi(d);ba(a|0);B()}function RF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=J[a+84>>2];a:{d=J[a+28>>2];b:{if((d|0)!=(b|0)){e=-1;if((RF(a,d,J[a+20>>2]-d|0)|0)==-1)break b}d=J[f>>2];c:{if(!J[f+4>>2]|!c)break c;e=c;while(1){g=Mp(d,b,e);if((g| +0)<0)break a;h=J[f+4>>2]-1|0;J[f+4>>2]=h;d=J[f>>2]+4|0;J[f>>2]=d;if(!h)break c;g=g>>>0<=1?1:g;b=g+b|0;e=e-g|0;if(e)continue;break}}J[d>>2]=0;b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;J[a+16>>2]=b+J[a+48>>2];e=c}return e|0}J[J[f>>2]>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=J[a>>2]|32;return g|0}function Pca(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;b=J[a+584>>2];if(b){c=J[b+144>>2];if(!c){kc[J[a+524>>2]](a)|0;c=J[b+144>>2]}I[b+68>>1]=258;J[b+64>>2]=33488905;J[b+132>>2]=0;J[b+136>>2]=0;J[b+124>>2]= +1E4;J[b+128>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+140>>2]=(J[a+596>>2]+J[a+600>>2]|0)-5;a=c+72E3|0;d=8993;while(1){J[a>>2]=-1;J[a-8>>2]=-1;J[a-16>>2]=-1;J[a-24>>2]=-1;J[a-32>>2]=-1;J[a-40>>2]=-1;J[a-48>>2]=-1;J[a-56>>2]=-1;a=a+-64|0;e=d>>>0>7;d=d-8|0;if(e)continue;break}J[c>>2]=-1;J[b+120>>2]=65535;return 1}fa(72298,70340,765,97928);B()}function x2(a,b){a=a|0;b=b|0;var c=0,d=0;a:{d=fc-16|0;fc=d;b=J[J[b+4>>2]+4>>2];b:{if(!b){J[a>>2]=0;H[a+11|0]=0;break b}b=nu(b);if(!b){J[a>>2]=0;H[a+11|0]=0;break b}Ll(a, +b,Yc(b))}c:{b=Ci(a,58,0);d:{if((b|0)==-1)break d;b=b+1|0;c=K[a+11|0];if(b>>>0>=(c<<24>>24<0?J[a+4>>2]:c)>>>0)break d;J[699344]=0;b=na(2963,d|0,a|0,b|0,-1,d+15|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break c;if(H[a+11|0]<0)uc(J[a>>2]);c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2]}fc=d+16|0;break a}b=Z()|0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}}function qxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=J[a+2308>>2];a:{if(!d)break a;c=J[a+2312>>2];a=J[a+2316>>2];if(d>>>0>=4){f=d&-4;while(1){b=L[c>> +1];I[a+4>>1]=b;I[a+2>>1]=b;I[a>>1]=b;b=L[c+2>>1];I[a+10>>1]=b;I[a+8>>1]=b;I[a+6>>1]=b;b=L[c+4>>1];I[a+16>>1]=b;I[a+14>>1]=b;I[a+12>>1]=b;b=L[c+6>>1];I[a+22>>1]=b;I[a+20>>1]=b;I[a+18>>1]=b;a=a+24|0;c=c+8|0;e=e+4|0;if((f|0)!=(e|0))continue;break}}b=d&3;if(!b)break a;e=0;while(1){d=L[c>>1];I[a+4>>1]=d;I[a+2>>1]=d;I[a>>1]=d;a=a+6|0;c=c+2|0;e=e+1|0;if((b|0)!=(e|0))continue;break}}return 0}function GZa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=fc-16|0;fc=c;a:{if((b|0)<0)break a;b=J[a+104>>2];J[c+12>>2]=1; +kc[J[J[b>>2]+308>>2]](b,c+12|0)|0;J[a+120>>2]=0;J[a+124>>2]=0;J[a+112>>2]=0;J[a+116>>2]=1072693248;J[a+128>>2]=0;J[a+132>>2]=0;J[a+144>>2]=0;J[a+148>>2]=0;J[a+136>>2]=0;J[a+140>>2]=1072693248;J[a+152>>2]=0;J[a+156>>2]=0;b:{c:{b=J[a+108>>2]-6|0;if(b){if((b|0)==12)break c;break b}b=J[a+104>>2];J[c+8>>2]=0;d=a,e=!(kc[J[J[b>>2]+416>>2]](b,836624,c+8|0)|0),H[d+229|0]=e;break a}H[a+229|0]=1;break a}H[a+229|0]=0}fc=c+16|0}function Fmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[J[a+4>>2]+712>>2];a:{b:{if(!J[d+ +2024>>2]){d=d+1372|0;break b}e=kc[J[J[d+3088>>2]+8>>2]](d+3052|0,c)|0;c=3;if(e>>>0>=M[d+2024>>2])break a;c=e<<2;d=J[(c+d|0)+2028>>2];if(!b|!J[a+68>>2])break b;J[a+72>>2]=J[(c+J[J[b+40>>2]>>2]|0)+4>>2]}e=J[d+620>>2];J[a+728>>2]=e;J[a+744>>2]=J[d+644>>2];c=0;b=0;c:{if(J[J[a+108>>2]+1416>>2]==1)break c;b=107;if(e>>>0<1240)break c;b=e>>>0<33900?1131:32768}J[a+736>>2]=b;J[a+584>>2]=J[d+540>>2];b=J[d+544>>2];J[a+768>>2]=d;J[a+588>>2]=b}return c|0}function Xeb(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;e=1;if(!(!J[a+16>>2]|!J[a+20>>2])){fs(a);f=J[a+20>>2];g=O[c>>3];h=O[d>>3];c=fc-48|0;fc=c;a=J[a+12>>2];if(a){J[c+40>>2]=0;J[c+44>>2]=1072693248;J[c+32>>2]=0;J[c+36>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=1072693248;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=c+40|0;e=c+32|0;kc[J[J[a>>2]+124>>2]](a,d,e,c+24|0,c+16|0,c+8|0,c)|0;N[c+40>>2]=g;N[c+32>>2]=h;kc[J[J[a>>2]+84>>2]](a,b,d,e)|0;kc[J[J[a>>2]+132>>2]](a,f)|0}fc=c+48|0;e=0}return e|0}function JV(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;f=J[c>>2];a:{d=J[b+8>>2];e=J[b>>2];if((d|0)>(e|0)){g=J[b+4>>2];b=J[b+12>>2];if((g|0)<(b|0))break a}J[a>>2]=f;b=J[c+8>>2];J[a+8>>2]=b;d=J[c+4>>2];J[a+4>>2]=d;e=a;a=J[c+12>>2];J[e+12>>2]=a;return(b|0)>(f|0)&(a|0)>(d|0)}b:{h=J[c+8>>2];if((h|0)>(f|0)){i=J[c+4>>2];c=J[c+12>>2];if((i|0)<(c|0))break b}J[a+8>>2]=d;J[a>>2]=e;J[a+12>>2]=b;J[a+4>>2]=g;return 1}J[a+8>>2]=(d|0)>(h|0)?d:h;J[a>>2]=(f|0)>(e|0)?e:f;J[a+12>>2]=(b|0)>(c|0)?b:c;J[a+4>>2]=(g|0)<(i|0)?g:i;return 1} +function AO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!c)break a;g=J[a+4>>2];if(!g)break a;f=J[a+44>>2];if(!f)break a;b:{if(!b)break b;g=g+40|0;d=d?d:c;e=e?e:d;f=b>>>0>f>>>0?f:b;j=f&1;b=0;if((f|0)!=1){k=f&-2;while(1){f=g+(b<<2)|0;H[f+2|0]=K[b+c|0];H[f+1|0]=K[b+d|0];H[f|0]=K[b+e|0];f=b|1;h=g+(f<<2)|0;H[h+2|0]=K[c+f|0];H[h+1|0]=K[d+f|0];H[h|0]=K[e+f|0];b=b+2|0;i=i+2|0;if((k|0)!=(i|0))continue;break}}if(!j)break b;g=g+(b<<2)|0;H[g+2|0]=K[b+c|0];H[g+1|0]=K[b+d|0];H[g| +0]=K[b+e|0]}H[a+481|0]=0}}function v2(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=769920;a:{b=J[a+8>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}b=0;d=J[a+28>>2]-J[a+24>>2]>>2;if((d|0)>0)while(1){c=J[J[a+24>>2]+(b<<2)>>2];if(c){e=J[J[c>>2]+12>>2];J[699344]=0;_(e|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a}b=b+1|0;if((d|0)!=(b|0))continue;break}if(H[a+59|0]<0)uc(J[a+48>>2]);if(H[a+47|0]<0)uc(J[a+36>>2]);b=J[a+24>>2];if(b){J[a+28>>2]=b;uc(b)}mL(a+ +12|0,J[a+16>>2]);return a|0}ea(0)|0;Bc();B()}function kK(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+116>>2];if(b){uc(Kw(b));J[a+116>>2]=0}b=J[a+120>>2];if(b){uc(Yg(b));J[a+120>>2]=0}b=J[a+124>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+124>>2]=0}b=J[a+128>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+128>>2]=0}b=J[a+108>>2];c=J[a+104>>2];a:{if((b|0)==(c|0)){c=b;break a}while(1){f=e<<2;d=J[f+c>>2];if(d){if(H[d+27|0]<0)uc(J[d+16>>2]);if(H[d+15|0]<0)uc(J[d+4>>2]);uc(d);J[J[a+104>>2]+f>>2]=0;c=J[a+104>>2];b=J[a+108>>2]}e=e+1| +0;if(e>>>0>2>>>0)continue;break}}if(c){J[a+108>>2]=c;uc(c)}return a}function Cvb(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;var h=0,i=0,j=0,k=0,l=0;if(e){l=e-1|0;while(1){a=L[f>>1];I[g>>1]=a;g=g+2|0;h=i?(i|0)==(l|0)?d:b:c;a:{if(h>>>0<2)break a;j=h-1|0;k=j&7;if(h-2>>>0>=7){j=j&-8;h=0;while(1){I[g+14>>1]=a;I[g+12>>1]=a;I[g+10>>1]=a;I[g+8>>1]=a;I[g+6>>1]=a;I[g+4>>1]=a;I[g+2>>1]=a;I[g>>1]=a;g=g+16|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!k)break a;while(1){I[g>>1]=a;g=g+2| +0;h=h+1|0;if((k|0)!=(h|0))continue;break}}f=f+2|0;i=i+1|0;if((i|0)!=(e|0))continue;break}}return 0}function uD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a=J[a+4>>2];m=J[a>>2];if(m){o=J[a+16>>2];p=J[a+12>>2];f=1E100;l=-1E100;a=0;i=-1E100;g=1E100;while(1){n=a&255;h=a>>>6&67108860;a:{if(K[n+J[h+o>>2]|0]-1>>>0>13)break a;h=J[h+p>>2]+(n<<4)|0;j=O[h+8>>3];g=g>j?j:g;k=O[h>>3];i=ik?k:f;if(!(l> +3]=f;O[c>>3]=g;O[d>>3]=i-f;O[e>>3]=l-g;return}J[b>>2]=0;J[b+4>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[d>>2]=0;J[d+4>>2]=0;O[e>>3]=0}function hza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a>>2]=0;J[699344]=0;b=J[J[b+48>>2]+((c>>>0)%M[b+44>>2]<<2)>>2];d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){if(!b)break b;while(1){if(!(J[b+12>>2]==(c|0)&J[b+16>>2]==(c|0))){b=J[b+8>>2];if(b)continue;break b}break}if(!J[b+20>>2]|J[c+4>>2]<=0)break b;J[699344]=0;aa(5145,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}break a}b= +J[a>>2];if(!(!b|J[b+4>>2]>0)){J[699344]=0;aa(5145,a|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}return}b=Z()|0;zc(a);ba(b|0);B()}function Ss(a,b,c){var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;e=d+12|0;b=J[b+28>>2];J[e>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[699344]=0;b=_(6854,e|0)|0;f=J[699344];J[699344]=0;a:{if((f|0)==1)break a;J[699344]=0;f=_(6863,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[c>>2]=f;J[699344]=0;da(6864,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[e>>2];b=J[a+4>>2]-1|0;J[a+ +4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);fc=d+16|0;return}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function PCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=a+16|0;f=J[a+4>>2];d=a+12|0;g=d;a:{b:{c:{if(M[b>>2]<=256){d=J[c+8>>2];b=0;if(d&7)break b;b=J[c+64>>2];d:{if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;break d}b=J[c+28>>2];J[c+28>>2]=b-1;if((b|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;b=K[b|0];break c}b=td(c,1);if((b| +0)!=-1)break c}b=0;break b}Wg(c,d);b=-2;break a}b=b&255}J[g>>2]=b;b=-1}e:{f:{if(Dba(e,c,f+b|0))break f;b=0;if(!(H[c+8|0]&1))break e;a=J[a+24>>2];if(!a)break f;uc(a)}b=-1}return b|0}function v6(a,b){var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;c=J[b+28>>2];d=kc[J[a+516>>2]](a,1668707360,b,e+8|0)|0;J[e+12>>2]=d;a:{if(d){J[a+700>>2]=0;J[a+704>>2]=0;c=0;break a}d=J[e+8>>2]>>>1|0;J[a+700>>2]=d;f=a,g=_c(c,4,0,d,0,e+12|0),J[f+704>>2]=g;c=J[e+12>>2];if(c)break a;c=af(b,J[a+700>>2]<<1);J[e+12>>2]=c;if(c)break a; +d=J[a+700>>2];if((d|0)>0){c=J[a+704>>2];d=c+(d<<2)|0;while(1){f=c,g=tf(b)<<16>>16<<6,J[f>>2]=g;c=c+4|0;if(d>>>0>c>>>0)continue;break}}ve(b);if(!K[a+733|0]){c=J[e+12>>2];break a}c=l6(a,b)}fc=e+16|0;return c}function jw(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;b=b<<8|(b&65280)>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;b=0;d=2;f=c+6|0;a:{b:{while(1){e=kc[J[J[a>>2]+12>>2]](a,f,d)|0;if(!e){a=Qc(c+8|0,2390640,2387108,474,2396576,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f= +f+e|0;b=b+e|0;d=d-e|0;if(d)continue;break}if((b|0)!=2){a=Qc(c+8|0,um(J[698583]),2387108,524,2396663,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}fc=c+32|0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Xwb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+636>>2]+J[a+616>>2]|0;c=J[a+588>>2];b=J[a+644>>2];d=J[a+540>>2];if(!d)d=J[J[a+528>>2]+88>>2];a:{if(K[d+56|0]){if((c|0)<=0)break a;while(1){c=K[e|0];g=(c|0)!=L[d+836>>1];H[b+3|0]=g?-1:0;c=g?c:0;H[b+2|0]=c;H[b+1|0]=c; +H[b|0]=c;e=e+1|0;b=b+4|0;f=f+1|0;if((f|0)>2])continue;break}break a}if((c|0)<=0){h=1;break a}while(1){d=K[e|0];H[b+3|0]=255;H[b+2|0]=d;H[b+1|0]=d;H[b|0]=d;h=1;e=e+1|0;b=b+4|0;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=h;return 0}function Us(a,b,c){var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;e=d+12|0;b=J[b+28>>2];J[e>>2]=b;J[b+4>>2]=J[b+4>>2]+1;J[699344]=0;b=_(6827,e|0)|0;f=J[699344];J[699344]=0;a:{if((f|0)==1)break a;J[699344]=0;f=_(6838,b|0)|0;g=J[699344];J[699344]=0;if((g|0)==1)break a; +H[c|0]=f;J[699344]=0;da(6839,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;a=J[e>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);fc=d+16|0;return}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function ND(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;b=J[a+260>>2];if(!b){n=a;d=I[a+300>>1];b=J[a+248>>2];a:{if(!d)break a;c=I[a+298>>1];b=J[a+252>>2];if(!c)break a;e=J[a+248>>2];b=e>>31;f=(b^e)-b|0;b=c>>31;g=(b^c)- +b|0;h=P(f>>>16|0,g);i=h<<16|8192;a=J[a+252>>2];b=a>>31;j=(a^b)-b|0;b=d>>31;k=(b^d)-b|0;l=P(j>>>16|0,k);m=l<<16|8192;b=i+P(g,f&65535)|0;b=(h>>>16|0)+(b>>>0>>0)<<18|b>>>14;c=(c^e)<0?0-b|0:b;b=m+P(k,j&65535)|0;b=(l>>>16|0)+(b>>>0>>0)<<18|b>>>14;b=EN(c,(a^d)<0?0-b|0:b)}J[n+260>>2]=b}return b}function f4(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=O[a+8>>3];g=O[a+56>>3];e=O[a+16>>3];h=O[a+72>>3];d=(b*g+e*h)*65536;a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}J[a+220>>2]=c;d=b;b=O[a- -64>>3]; +f=e;e=O[a+80>>3];d=(d*b+f*e)*65536;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}J[a+228>>2]=c;d=O[a+24>>3];f=d*b;b=O[a+32>>3];e=(f+e*b)*65536;c:{if(R(e)<2147483648){c=~~e;break c}c=-2147483648}J[a+232>>2]=c;b=(d*g+h*b)*65536;d:{if(R(b)<2147483648){c=~~b;break d}c=-2147483648}J[a+224>>2]=c;Zu(J[a+188>>2],a+220|0,0)}function Qz(a){var b=0,c=0,d=0,e=0,f=0,g=0;A(+a);b=v(1)|0;f=v(0)|0;e=b&2147483647;if(e>>>0>=1072693248){if(!(e-1072693248|f))return(b|0)>0|(b|0)>=0?0:3.141592653589793;return 0/(a- +a)}a:{if(e>>>0<=1071644671){d=1.5707963267948966;if(e>>>0<1012924417)break a;return 6.123233995736766E-17-a*Iv(a*a)-a+1.5707963267948966}if((b|0)<0){a=(a+1)*.5;c=Y(a);a=1.5707963267948966-(c+(c*Iv(a)+-6.123233995736766E-17));return a+a}a=(1-a)*.5;c=Y(a);g=c*Iv(a);A(+c);b=v(1)|0;v(0)|0;x(0,0);x(1,b|0);d=a;a=+z();a=g+(d-a*a)/(c+a)+a;d=a+a}return d}function Mx(a,b){a=a|0;b=b|0;var c=0,d=0;c=vc(48);J[c>>2]=0;J[c+4>>2]=1072693248;J[c+8>>2]=0;J[c+12>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+32>>2]=0;J[c+36>> +2]=0;J[c+24>>2]=0;J[c+28>>2]=1072693248;J[c+40>>2]=0;J[c+44>>2]=0;J[a>>2]=c;b=J[b>>2];d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d;d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;d=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;return a|0}function gOa(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;J[a+8>>2]=13;J[a>>2]=2342784;g=J[f+4>>2];J[a+8>>2]=J[f>> +2];J[a+12>>2]=g;g=J[f+12>>2];J[a+16>>2]=J[f+8>>2];J[a+20>>2]=g;J[a>>2]=2343E3;J[699344]=0;f=_(4,8)|0;g=J[699344];J[699344]=0;a:{if((g|0)==1){b=Z()|0;J[a>>2]=2342784;J[699344]=0;$(3370,a+8|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;ba(b|0);B()}J[f+4>>2]=1;J[f>>2]=b;b=a+40|0;J[a+300>>2]=b;J[a+36>>2]=e;J[a+32>>2]=d;J[a+28>>2]=c;J[a+24>>2]=f;J[a+304>>2]=c;J[a+296>>2]=b;return a|0}ea(0)|0;Bc();B()}function f1(a,b){var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;a:{if(!J[a+336>>2])break a;c=J[a+328>>2];if((c| +0)<(b|0)){J[e>>2]=b;kc[J[663297]](J[693366],36649,e);c=J[a+328>>2];b=c}if((c|0)<=0|(b|0)<=0)break a;if(b>>>0>=4){g=b&-4;while(1){d=c<<2;J[(d+J[a+336>>2]|0)-4>>2]=0;J[(J[a+336>>2]+d|0)-8>>2]=0;J[(J[a+336>>2]+d|0)-12>>2]=0;c=c-4|0;J[J[a+336>>2]+(c<<2)>>2]=0;f=f+4|0;if((g|0)!=(f|0))continue;break}}d=b&3;if(d){b=0;while(1){c=c-1|0;J[J[a+336>>2]+(c<<2)>>2]=0;b=b+1|0;if((d|0)!=(b|0))continue;break}}J[a+328>>2]=c}fc=e+16|0}function Kea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;H[d+ +27|0]=c;J[d+28>>2]=b;g=d,h=Ei(a),J[g+20>>2]=h;e=J[d+28>>2]-J[d+20>>2]|0;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a:{if((c|0)==((K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10)|0)){az(a,c,1,c,e,1);b=J[a>>2];break a}if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if((c|0)==(e|0))break a;f=b+e|0;un(f+1|0,f,c-e|0)}H[b+e|0]=K[d+27|0];H[d+19|0]=0;f=b;b=c+1|0;H[f+b|0]=K[d+19|0];kl(a,b);g=d,h=Ei(a),J[g+12>>2]=h;a=fz(d+12|0,e);fc=d+32|0;return a|0}function o$a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0; +e=fc-16|0;fc=e;d=J[a+20>>2];if((d|0)!=101){f=J[a>>2];J[f+24>>2]=d;J[f+20>>2]=21;kc[J[J[a>>2]>>2]](a)}if(M[a+260>>2]>=M[a+32>>2]){d=J[a>>2];J[d+20>>2]=126;kc[J[d+4>>2]](a,-1)}d=J[a+8>>2];if(d){J[d+4>>2]=J[a+260>>2];J[d+8>>2]=J[a+32>>2];kc[J[d>>2]](a)}d=J[a+388>>2];if(J[d+12>>2])kc[J[d+4>>2]](a);d=J[a+260>>2];f=J[a+32>>2];J[e+12>>2]=0;g=b;b=f-d|0;kc[J[J[a+392>>2]+4>>2]](a,g,e+12|0,b>>>0>>0?b:c);b=a;c=J[a+260>>2];a=J[e+12>>2];J[b+260>>2]=c+a;fc=e+16|0;return a|0}function cDa(a){a=a|0;var b=0,c=0, +d=0;J[a>>2]=2400920;Md(a+16|0);b=J[a+12>>2];J[a+12>>2]=0;a:{b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+8>>2];J[a+8>>2]=0;c:{if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}uc(nd(a));return}ea(0)|0;Bc();B()}function XSa(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;c=J[a+28>>2];e=J[c+596>>2];if(!(J[e+28>>2]>0|J[e>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,830070,0);return}g=O[b+24>>3];a=J[b+24>>2];d=O[b+40>>3];h=J[b+40>>2];i=O[b+8>>3];j=J[b+8>>2];k=J[b>>2];l=J[b+16>>2];m=J[b+32>>2];f=J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3];O[c+608>>3]=f;d=(m|0)==1?+(h|0):d;O[c+600>>3]=d;Nm(e,(k|0)==1?+(j|0):i,(l|0)==1?+(a|0):g,d,f,d,f)} +function PMa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=J[a+8>>2];b=vc(34120);c=J[a+4>>2];d=J[J[c>>2]+8>>2];a:{b:{if(e){J[699344]=0;c=_(d|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){a=J[a+8>>2];d=J[a+16>>2];e=J[a+12>>2];f=J[a+8>>2];a=J[a+4>>2];J[699344]=0;ja(3650,b|0,c|0,a|0,f|0,e|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}break a}J[699344]=0;a=_(d|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[b+34076>>2]=0;J[b+34068>>2]=0;J[b>>2]=2344472;J[b+4>>2]=a;Ac(b+8|0,0,32772)}return b|0}a=Z()| +0;uc(b);ba(a|0);B()}function wX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;H[c+7|0]=b;H[c+6|0]=b>>>8;H[c+5|0]=b>>>16;b=0;d=3;f=c+5|0;a:{b:{while(1){e=kc[J[J[a>>2]+12>>2]](a,f,d)|0;if(!e){a=Qc(c+8|0,2390640,2387108,474,2396576,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}f=f+e|0;b=b+e|0;d=d-e|0;if(d)continue;break}if((b|0)!=3){a=Qc(c+8|0,um(J[698583]),2387108,535,2396702,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}fc=c+32| +0;return}B()}b=Z()|0;Kc(a);ba(b|0);B()}function iQa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+40>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+40>>2]=0}c=J[a+48>>2];if(c){d=J[c+8>>2];if((d|0)>0){b=0;while(1){e=J[J[c>>2]+(b<<2)>>2];if(e){kc[J[J[e>>2]+4>>2]](e);d=J[c+8>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}}uc(ld(c));J[a+48>>2]=0}c=J[a+52>>2];if(c){d=J[c+8>>2];if((d|0)>0){b=0;while(1){e=J[J[c>>2]+(b<<2)>>2];if(e){kc[J[J[e>>2]+4>>2]](e);d=J[c+8>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}}uc(ld(c));J[a+52>>2]=0}J[a+ +60>>2]=0;J[a+64>>2]=0;a=J[a+4>>2];kc[J[J[a>>2]+24>>2]](a)}function gI(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2395600;b=J[a+48>>2];J[a+48>>2]=0;a:{b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}hd(a+40|0);b=J[a+32>>2];J[a+32>>2]=0;c:{if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c;J[699344]=0;$(5147,b|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a}return nd(a)|0}ea(0)|0;Bc();B()}function $Xa(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;g=fc-80|0;fc=g;i=J[a+24>>2];J[g+64>>2]=13;J[g+48>>2]=13;h=g- -64|0;h0(c,h);a=0;jf(h,i,g+48|0,0);J[g+32>>2]=13;J[g+16>>2]=13;J[g>>2]=13;a:{if(J[Ec(J[g+56>>2],785266,g+32|0,0)>>2]==6){h=J[g+40>>2];if(J[h+12>>2]<=0)break a;while(1){j=h;h=g+16|0;tg(j,a,h);jf(h,i,g,0);XB(c,b,d,0,h,g,e,f,0);yc(g);yc(h);a=a+1|0;h=J[g+40>>2];if((a|0)>2])continue;break}break a}XB(c, +b,d,0,g- -64|0,g+48|0,e,f,0)}yc(g+32|0);yc(g- -64|0);yc(g+48|0);fc=g+80|0}function sm(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=fc-16|0;fc=e;A(+b);g=v(1)|0;c=v(0)|0;d=g&2147483647;f=d+-1048576|0;a:{if((f|0)==2145386495|f>>>0<2145386495){h=c<<28;c=(d&15)<<28|c>>>4;d=(d>>>4|0)+1006632960|0;break a}if((d|0)==2146435072|d>>>0>2146435072){h=c<<28;c=(g&15)<<28|c>>>4;d=g>>>4|2147418112;break a}if(!(c|d)){c=0;d=0;break a}f=c;c=d?S(d):S(c)+32|0;Gi(e,f,d,0,0,c+49|0);i=J[e>>2];h=J[e+4>>2];f=15372-c<<16;c=J[e+8>> +2];d=f|J[e+12>>2]^65536}J[a>>2]=i;J[a+4>>2]=h;J[a+8>>2]=c;J[a+12>>2]=g&-2147483648|d;fc=e+16|0}function dDa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2400920;Md(a+16|0);b=J[a+12>>2];J[a+12>>2]=0;a:{b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+8>>2];J[a+8>>2]=0;c:{if(!b)break c;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break c; +J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}return nd(a)|0}ea(0)|0;Bc();B()}function RBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;b=J[b>>2];a:{if(b){kc[J[J[b>>2]+28>>2]](c+12|0,b,1);break a}J[c+12>>2]=0}J[699344]=0;aa(5153,a|0,c+12|0)|0;b=J[699344];J[699344]=0;b:{if((b|0)!=1){b=J[c+12>>2];J[c+12>>2]=0;if(!b)break b;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b}ea(0)| +0;Bc();B()}a=Z()|0;zc(c+12|0);ba(a|0);B()}b=J[a>>2];J[a+4>>2]=J[(b?b+12|0:2743576)>>2];fc=c+16|0;return a|0}function Bt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=fc-32|0;fc=b;d=3;e=b+5|0;a:{b:{while(1){c=kc[J[J[a>>2]+8>>2]](a,e,d)|0;if((c|0)<0){a=Qc(b+8|0,um(J[698583]),2387108,413,2396533,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(c){e=c+e|0;f=c+f|0;d=d-c|0;if(d)continue}break}if((f|0)!=3){a=Qc(b+8|0,J[685886],2387108,573,2396847,0);J[699344]=0;$(5179,a|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break b;break a}fc=b+32|0;return K[b+7|0]|(K[b+6|0]<<8|K[b+5|0]<<16)}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Asb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1951551059){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];H[b+34|0]=K[c+34|0];d=J[c+36>>2];J[b+36>>2]=d;I[b+296>>1]=L[c+296>>1];I[b+298>>1]=L[c+298>>1];I[b+300>>1]=L[c+300>>1];I[b+302>>1]=L[c+302>>1];a=J[c+304>>2];J[b+304>>2]=a;if(d){a=0;while(1){H[(a+b|0)+40|0]=K[(a+c|0)+40|0];a=a+1|0;if(a>>>0>2])continue;break}a=J[b+304>>2]}if(a){a=0;while(1){H[(a+b|0)+308|0]=K[(a+c|0)+308|0];a=a+1|0;if(a>>>0>2])continue;break}}return 0}function IIa(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;g=fc-16|0;fc=g;J[g+12>>2]=0;J[g+8>>2]=0;a=J[J[a+4>>2]+12>>2];if(a){l=g+12|0;m=g+8|0;i=a+32|0;h=J[i>>2];a:{if(!h)break a;a=i;while(1){j=J[h+16>>2]<(b|0);a=j?a:h;h=J[(j?h+4|0:h)>>2];if(h)continue;break}if((a|0)==(i|0)|J[a+16>>2]>(b|0))break a;XX(J[a+20>>2],l,m)}n= ++J[g+12>>2]*25.4;k=+J[g+8>>2]*25.4}else k=0;O[c>>3]=n/96;O[d>>3]=k/96;J[e>>2]=1717986918;J[e+4>>2]=1077503590;J[f>>2]=1717986918;J[f+4>>2]=1077503590;fc=g+16|0}function zda(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;f=J[a+584>>2];if(f){g=c;c=J[f+840>>2];d=(g|0)/(c|0)|0;if((g|0)!=(P(d,c)|0))le(J[a+628>>2],J[a>>2],87770,0);if(!(K[a+13|0]&4)){c=J[a+60>>2];g=J[a+472>>2];d=c>>>0>>0?c-g|0:d}c=1;a:{if((d|0)<=0)break a;J[e+12>>2]=b;c=0;if((RP(f,e+12|0)|0)!=1)break a;while(1){if(d>>> +0<2){c=1;break a}J[a+472>>2]=J[a+472>>2]+1;b=J[f+840>>2]+b|0;J[e+12>>2]=b;d=d-1|0;if((RP(f,e+12|0)|0)==1)continue;break}}fc=e+16|0;return c|0}fa(75270,70506,1426,97758);B()}function d_a(a){a=a|0;var b=0,c=0,d=0;d=fc-16|0;fc=d;b=kc[J[663195]](56)|0;a:{if(!b){J[d>>2]=17054;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,d);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+ +4>>2]=15;J[b+36>>2]=J[a+36>>2];c=J[a+8>>2];if(c)c=ff(c);else c=0;J[b+8>>2]=c;c=J[a+48>>2];if(c)c=ff(c);else c=0;J[b+48>>2]=c;a=fx(0,J[a+40>>2]);J[b+44>>2]=0;J[b+40>>2]=a}fc=d+16|0;return b|0}function Uca(a){a=a|0;var b=0,c=0,d=0;a:{b:{b=J[a+584>>2];if(!b){b=Dc(148);J[a+584>>2]=b;if(!b){Uc(J[a+628>>2],71720,70774,0);return 0}J[b+96>>2]=0;J[b+116>>2]=0;tF(a);b=J[a+584>>2];if(!b)break b}if(!J[b+116>>2]){d=b;b=Dc(40952);J[d+116>>2]=b;if(!b)break a;a=255;while(1){c=b+(a<<3)|0;H[c+7|0]=a;H[c+6|0]=a;I[c+ +4>>1]=1;J[c>>2]=0;c=a-1|0;d=b+(c<<3)|0;H[d+7|0]=c;H[d+6|0]=c;I[d+4>>1]=1;J[d>>2]=0;a=a-2|0;if(c)continue;break}Sg(b+2048|0,0,16)}return 1}fa(72298,70340,222,97872);B()}Uc(J[a+628>>2],97856,72611,0);return 0}function zC(a){var b=0,c=0,d=0,e=0;d=fc-1024|0;fc=d;if(!K[2773576]){c=J[693395];if((c|0)<=14){b=c<<4;J[b+2773596>>2]=3288;J[b+2773592>>2]=3289;J[b+2773588>>2]=3290;J[b+2773584>>2]=3291;J[693395]=c+1}H[2773576]=1}a:{if(!a)break a;b=Ad(d,a,1023);H[b+1023|0]=0;c=Yc(b);a=c+b|0;b:{c:{d:{e:{if((c|0)> +0)while(1){if(K[a|0]==47)break e;a=a-1|0;if(b>>>0>>0)continue;break}if(K[a|0]!=47)break d}a=(a|0)==(b|0)?b+1|0:a;break c}if(!jT(b,1024))break b;a=b+1023|0}H[a|0]=0;e=kc[J[663201]](b)|0;break a}}fc=d+1024|0;return e}function qp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;a:{if(!a){g=1;break a}Df(a,c+12|0,c+8|0,c+4|0);if(J[c+4>>2]==32)break a;e=a?J[a+40>>2]:0;f=a?J[a+12>>2]:-1;a=P(J[c+4>>2],J[c+12>>2]);d=(a|0)/32|0;a=a-(d<<5)|0;if(!a|J[c+8>>2]<=0)break a;e=(d<<2)+e|0;d=J[(0-a<<2)+230848>> +2];a=0;b:{if(!b){d=d^-1;while(1){b=e+(P(a,f)<<2)|0;J[b>>2]=d&J[b>>2];a=a+1|0;if((a|0)>2])continue;break}break b}while(1){b=e+(P(a,f)<<2)|0;J[b>>2]=d|J[b>>2];a=a+1|0;if((a|0)>2])continue;break}}}fc=c+16|0;return g|0}function cea(a){a=a|0;var b=0,c=0,d=0,e=0;b=a>>>0<=1?1:a;a=DQ(16,b);if(!a)a:{d=(b+3>>>2|0)+1|0;a=J[699875];if(!a){J[699875]=2799516;I[1399759]=125;I[1399758]=128;a=J[699875]}while(1){b=0;b:{if(!a|(a|0)==2800016)a=b;else{b=L[a+2>>1];e=d+(b>>>0>d>>>0?b-d&3:0)|0;if(e>>>0>> +0){c=b-e|0;I[a+2>>1]=c;a=((c&65535)<<2)+a|0;I[a+2>>1]=e;I[a>>1]=0;a=a+4|0;break a}if(b>>>0>>0)break b;b=L[a>>1];c:{if(!c){J[699875]=(b<<2)+2799504;break c}I[c>>1]=b}I[a>>1]=0;a=a+4|0}break a}c=a;a=(L[a>>1]<<2)+2799504|0;continue}}return a|0}function WH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;c=J[685894];e=b&7;b:{if(!e){d=b;break b}d=b;while(1){J[a+16>>2]=0;J[a+20>>2]=c;a=a+28|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<8)break a;while(1){J[a+16>>2]=0;J[a+216>> +2]=c;J[a+212>>2]=0;J[a+188>>2]=c;J[a+184>>2]=0;J[a+160>>2]=c;J[a+156>>2]=0;J[a+132>>2]=c;J[a+128>>2]=0;J[a+104>>2]=c;J[a+100>>2]=0;J[a+76>>2]=c;J[a+72>>2]=0;J[a+48>>2]=c;J[a+44>>2]=0;J[a+20>>2]=c;a=a+224|0;b=d-9|0;d=d-8|0;if(b>>>0<4294967294)continue;break}}}function Sz(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=J[a+8>>2];if((e|0)!=J[a+12>>2]){J[e>>2]=J[b>>2];J[a+8>>2]=e+4;return a|0}a:{c=a+4|0;g=J[c>>2];f=e-g|0;h=f>>2;d=h+1|0;if(d>>>0<1073741824){c=f>>1;c=f>>>0>=2147483644?1073741823:c>>>0>d>>> +0?c:d;if(c){if(c>>>0>=1073741824)break a;f=vc(c<<2)}else f=0;d=f+(h<<2)|0;J[d>>2]=J[b>>2];b=d+4|0;if((e|0)!=(g|0))while(1){d=d-4|0;e=e-4|0;J[d>>2]=J[e>>2];if((e|0)!=(g|0))continue;break}J[a+12>>2]=f+(c<<2);J[a+8>>2]=b;J[a+4>>2]=d;if(g)uc(g);return a|0}qj(c);B()}Pd();B()}function wca(a){a=a|0;var b=0,c=0,d=0;c=J[a+584>>2];a:{if(!(kc[J[c+60>>2]](a)|0))break a;if(!MP(a))break a;d=1;b:{c:switch(J[c>>2]-2|0){case 0:b=714;d:{e:{f:switch(L[a+84>>1]-8|0){case 8:b=715;break e;case 0:break e;case 24:break f; +default:break d}b=716}J[c+24>>2]=b}b=J[a+544>>2];if((b|0)!=717)break b;break a;case 1:break c;default:break a}J[c+24>>2]=718;b=J[a+544>>2];if((b|0)==717)break a}J[c+12>>2]=b;J[a+544>>2]=717;J[c+16>>2]=J[a+552>>2];J[a+552>>2]=719;J[c+20>>2]=J[a+560>>2];J[a+560>>2]=719}return d|0}function d4a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;J[b>>2]=0;J[c>>2]=0;J[d+12>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=415588;J[699344]=0;a=ga(3,d|0,a|0,0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)a:{b:{if(!a)break b; +J[699344]=0;e=J[d+12>>2];a=_(27,e|0)|0;g=J[699344];J[699344]=0;c:{if((g|0)!=1){f=J[d+4>>2];if(!f)break c;g=1;e=ge(a,1,e,f);J[d+8>>2]=0;J[d+12>>2]=0;f=J[d+4>>2];if(f){pg(f);J[d+4>>2]=0}J[b>>2]=a;J[c>>2]=e;break b}break a}uc(a);g=0}De(d);fc=d+16|0;return g|0}a=Z()|0;De(d);ba(a|0);B()}function xib(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+8>>2];b=J[c>>2];a:{if(K[b+732|0])break a;H[c+112|0]=0;d=J[c+16>>2];a=J[c+12>>2];J[c+48>>2]=a;J[c+52>>2]=d;d=J[c+24>>2];J[c+56>>2]=J[c+20>>2];J[c+60>>2]=d;e=J[c+ +32>>2];d=c- -64|0;J[d>>2]=J[c+28>>2];J[d+4>>2]=e;J[c+72>>2]=J[c+36>>2];if(!(a&65535)|!L[c+50>>1])break a;if(K[b+176|0]&8){f=c,g=Wc(I[b+70>>1],J[c+56>>2])+32&-64,J[f+60>>2]=g;f=d,g=Wc(I[b+72>>1],J[c+56>>2])+32&-64,J[f>>2]=g;f=c,g=Wc(I[b+74>>1],J[c+56>>2])+32&-64,J[f+68>>2]=g}H[c+112|0]=1}return 0}function wpa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=fc-32|0;fc=d;f=L[a+88>>1];b=2744240;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[660504];if(!e)break c;b=2642016;if(L[1321010]==(f|0))break b;while(1){e= +J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=70186;J[d>>2]=f;Uc(a,b,75437,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=70186;J[d+16>>2]=e;Uc(a,b,75083,d+16|0)}fc=d+32|0;return-1}function t2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=b;c=J[a+8>>2];d=J[a+12>>2];b=8;a:{b:{if(c>>>0>=d>>>0)break b;b=d-c|0;if((b|0)<=3){xc(J[a+4>>2]+37|0,c,b);H[J[a+4>>2]+36|0]=b;J[a+8>>2]= +b+c;b=11;break b}b=K[c+2|0];d=K[c+3|0];f=K[c+1|0];g=K[c|0];J[a+8>>2]=c+4;h=d;d=f<<16|g<<24|b<<8;b=h|d;if(b>>>0<=1114111&(d&-2048)!=55296)break a;b=J[a+4>>2];c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[b+37|0]=c;H[b+38|0]=c>>>8;H[b+39|0]=c>>>16;H[b+40|0]=c>>>24;H[J[a+4>>2]+36|0]=4;b=12}J[e>>2]=b;b=65535}return b|0}function q2a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=b;c=J[a+8>>2];d=J[a+12>>2];b=8;a:{b:{if(c>>>0>=d>>>0)break b;b=d-c|0;if((b|0)<=3){xc(J[a+4>>2]+37|0,c,b);H[J[a+4>>2]+36| +0]=b;J[a+8>>2]=b+c;b=11;break b}b=K[c+1|0];d=K[c|0];f=K[c+2|0];g=K[c+3|0];J[a+8>>2]=c+4;h=d;d=f<<16|g<<24|b<<8;b=h|d;if(b>>>0<=1114111&(d&-2048)!=55296)break a;b=J[a+4>>2];c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);H[b+37|0]=c;H[b+38|0]=c>>>8;H[b+39|0]=c>>>16;H[b+40|0]=c>>>24;H[J[a+4>>2]+36|0]=4;b=12}J[e>>2]=b;b=65535}return b|0}function lqa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=fc-32|0;fc=d;f=L[a+88>>1];b=2744240;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[660504];if(!e)break c;b=2642016; +if(L[1321010]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=69335;J[d>>2]=f;Uc(a,b,74619,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=69335;J[d+16>>2]=e;Uc(a,b,74282,d+16|0)}fc=d+32|0;return-1}function lpa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=fc-32|0;fc=d;f=L[a+88>>1];b=2744240;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[660504];if(!e)break c; +b=2642016;if(L[1321010]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=70860;J[d>>2]=f;Uc(a,b,75437,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=70860;J[d+16>>2]=e;Uc(a,b,75083,d+16|0)}fc=d+32|0;return-1}function eJ(a){var b=0,c=0,d=0;b=fc-16|0;fc=b;J[b>>2]=13;a:{b:{c:switch(J[a>>2]-3|0){case 0:a=J[a+8>>2];c=vc(8);J[699344]=0;a=aa(3350,c|0,a|0)|0; +d=J[699344];J[699344]=0;if((d|0)!=1)break b;break a;case 4:if(J[Ec(J[a+8>>2],795220,b,0)>>2]!=3){yc(b);Ec(J[a+8>>2],782750,b,0)}d:{if(J[b>>2]==3){a=J[b+8>>2];c=vc(8);J[699344]=0;a=aa(3350,c|0,a|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1)break d;break a}a=0;Cc(0,-1,796201,0)}yc(b);break b;default:break c}a=0;Cc(0,-1,796201,0)}fc=b+16|0;return a}a=Z()|0;uc(c);ba(a|0);B()}function bqa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=fc-32|0;fc=d;f=L[a+88>>1];b=2744240;a:{b:{while(1){b=J[b>>2];if(!b){c:{e= +J[660504];if(!e)break c;b=2642016;if(L[1321010]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=70186;J[d>>2]=f;Uc(a,b,74619,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=70186;J[d+16>>2]=e;Uc(a,b,74282,d+16|0)}fc=d+32|0;return-1}function _Ga(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=fc-16|0;fc=c;if(!(!J[a+12>>2]|(!J[a+4>>2]|!J[a+8>>2]))){J[c+ +12>>2]=0;kc[J[J[b>>2]+16>>2]](b,c+12|0)|0;a:{if(J[c+12>>2]==1){b=b-4|0;kc[J[J[b>>2]+264>>2]](b,J[a+4>>2],J[a+8>>2],J[a+12>>2])|0;break a}d=O[a+32>>3]-O[a+16>>3];e=d;f=d*d;d=O[a+40>>3]-O[a+24>>3];h=c,i=Qz(e/Y(f+d*d))*180/3.141592653589793,O[h>>3]=i;kc[J[J[b>>2]+136>>2]](b,2382776)|0;kc[J[J[b>>2]+228>>2]](b,J[a+4>>2],J[a+8>>2],J[a+12>>2])|0;kc[J[J[b>>2]+216>>2]](b,c)|0}g=1}fc=c+16|0;return g|0}function Ykb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];if((c|0)==-1)return 0;d=c+1|0;a=J[a+16>>2];c=K[a+ +12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);e=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);c=d>>>0>e>>>0?d:e;e=c-e|0;d=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);a:{if(e>>>0>=d>>>0)break a;a=(a+(e<<1)|0)+20|0;while(1){f=K[a+1|0]|K[a|0]<<8;if(f)break a;if((c|0)==-1)return 0;a=a+2|0;c=c+1|0;e=e+1|0;if(d>>>0>e>>>0)continue;break}f=0}J[b>>2]=c;return f|0}function Spa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=fc-32|0;fc=d;f=L[a+88>>1];b=2744240; +a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[660504];if(!e)break c;b=2642016;if(L[1321010]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=70860;J[d>>2]=f;Uc(a,b,74619,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=70860;J[d+16>>2]=e;Uc(a,b,74282,d+16|0)}fc=d+32|0;return-1}function OP(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=J[a+508>>2]; +if((d|0)>0){while(1){c=P(b,12)+a|0;g=J[c+272>>2];a:{if(!(e|(g|0)!=225)){i=J[c+276>>2];j=J[c+268>>2];e=225;break a}h=J[c+268>>2];if(!(f|(g|0)!=254)){k=J[c+276>>2];f=254;l=h;break a}uc(h);J[c+268>>2]=0;d=J[a+508>>2]}b=b+1|0;if((d|0)>(b|0))continue;break}b=0;J[a+508>>2]=0;if(e){J[a+268>>2]=j;J[a+508>>2]=1;J[a+276>>2]=i;J[a+272>>2]=e;b=1}if(f){J[a+508>>2]=b+1;a=P(b,12)+a|0;J[a+276>>2]=k;J[a+272>>2]=f;J[a+268>>2]=l}return}J[a+508>>2]=0}function Hpa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=fc-32| +0;fc=d;f=L[a+88>>1];b=2744240;a:{b:{while(1){b=J[b>>2];if(!b){c:{e=J[660504];if(!e)break c;b=2642016;if(L[1321010]==(f|0))break b;while(1){e=J[b+12>>2];if(!e)break c;c=b;b=b+12|0;if(L[c+16>>1]!=(f|0))continue;break}break b}b=J[a>>2];a=J[a+628>>2];J[d+4>>2]=69335;J[d>>2]=f;Uc(a,b,75437,d);break a}c=J[b+4>>2];if(L[c+4>>1]!=(f|0))continue;break}e=J[c>>2]}b=J[a>>2];a=J[a+628>>2];J[d+20>>2]=69335;J[d+16>>2]=e;Uc(a,b,75083,d+16|0)}fc=d+32|0;return-1}function zd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{b:{d= +J[a+4>>2];c:{if(!d){J[a+8>>2]=1E3;c=Dc(1E3);J[a+16>>2]=0;J[a+4>>2]=c;break c}c=J[a+8>>2];e=J[a+16>>2]+4|0;if(c>>>0>=e>>>0)break b;while(1){c=c<<1;if(e>>>0>c>>>0)continue;break}J[a+8>>2]=c;c=fe(d,c);if(c){J[a+4>>2]=c;c=c+J[a+16>>2]|0;break c}c=Dc(J[a+8>>2]);d=J[a+4>>2];c=xc(c,d,J[a+16>>2]);uc(d);J[a+4>>2]=c;c=c+J[a+16>>2]|0}J[a+12>>2]=c;break a}c=J[a+12>>2]}H[c|0]=b;H[c+1|0]=b>>>8;H[c+2|0]=b>>>16;H[c+3|0]=b>>>24;J[a+12>>2]=J[a+12>>2]+4;J[a+16>>2]=J[a+16>>2]+4}function yN(a,b,c){var d=0,e=0,f=0,g=0, +h=0;d=35;a:{if(!(K[a+8|0]&2))break a;d=7;if(J[b>>2])break a;e=J[b+4>>2];f=e;d=J[b+12>>2];if(d)f=(P(d,e)+36|0)/72|0;g=J[b+8>>2];h=g;d=23;b=J[b+16>>2];if(b)h=(P(b,g)+36|0)/72|0;b=g?h:f;f=(e?f:b)+32&-64;if(!f)break a;e=(e?b:h)+32&-64;if(!e)break a;h=J[a+28>>2];if((h|0)<=0)break a;a=J[a+32>>2];b=0;while(1){g=a+(b<<4)|0;if(!((e|0)==(J[g+12>>2]+32&-64)&(f|0)==(J[g+8>>2]+32&-64))){b=b+1|0;if((h|0)!=(b|0))continue;break a}break}d=0;if(!c)break a;J[c>>2]=b;return 0}return d}function XL(a){a=a|0;J[a+72>>2]= +0;J[a+76>>2]=0;J[a+64>>2]=1;J[a+56>>2]=0;J[a+60>>2]=0;J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+40>>2]=-1030792151;J[a+44>>2]=1072703733;J[a+32>>2]=0;J[a+36>>2]=1074790400;J[a+24>>2]=1;J[a+16>>2]=0;J[a+20>>2]=1061158912;J[a+8>>2]=0;J[a+12>>2]=1071644672;J[a>>2]=0;J[a+4>>2]=1071644672;J[a+92>>2]=0;J[a+96>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0;J[a+112>>2]=0;J[a+116>>2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=64;J[a+100>>2]=0;J[a+104>>2]=0;J[a+108>>2]=64;J[a+120>>2]=0;J[a+124>>2]=0;return a|0}function WG(a,b){a= +a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=J[a+8>>2];d=J[a+4>>2];if(c-d>>3>>>0>=b>>>0){if(b){b=b<<3;d=Ac(d,0,b)+b|0}J[a+4>>2]=d;return}a:{f=J[a>>2];g=d-f>>3;e=g+b|0;if(e>>>0<536870912){c=c-f|0;h=c>>2;e=c>>>0>=2147483640?536870911:e>>>0>>0?h:e;if(e){if(e>>>0>=536870912)break a;i=vc(e<<3)}c=(g<<3)+i|0;b=b<<3;b=Ac(c,0,b)+b|0;if((d|0)!=(f|0))while(1){c=c-8|0;d=d-8|0;O[c>>3]=O[d>>3];if((d|0)!=(f|0))continue;break}J[a+8>>2]=(e<<3)+i;J[a+4>>2]=b;J[a>>2]=c;if(f)uc(f);return}Fg(a);B()}Pd();B()}function HTa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0;c=J[a+28>>2];if(!J[c+492>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,833333,0);return}if(J[a+32>>2]){d=J[a+8>>2];kc[J[J[d>>2]+156>>2]](d,c);J[a+32>>2]=0}if(J[a+100>>2]){c=J[a+8>>2];kc[J[J[c>>2]+232>>2]](c,J[a+28>>2]);UB(a,J[b+8>>2]);b=J[a+8>>2];kc[J[J[b>>2]+236>>2]](b,J[a+28>>2]);return}b=J[b+8>>2];c=J[a+8>>2];if(kc[J[J[c>>2]+32>>2]](c)|0){a=J[a+8>>2];kc[J[J[a>>2]+268>>2]](a,J[b>>2])}} +function jta(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;a:{b:{c:{d:{d=J[a+16>>2];if((d|0)<=(b|0)){b=b-d|0;if((b|0)>=J[a+40>>2]&(b|0)<=J[a+44>>2])break d;a=Qc(c+8|0,2393794,2394220,632,2434636,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=J[a+20>>2];if(a){a=lA(a,b);break c}a=Qc(c+8|0,2394816,2386144,183,2433036,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}a=J[a+28>>2]+P(b-J[a+32>>2]|0,12)|0}fc=c+32|0;return a|0}B()}b=Z()|0;Kc(a); +ba(b|0);B()}function cwb(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;var h=0,i=0,j=0,k=0,l=0;if(e){l=e-1|0;while(1){a=K[f|0];H[g|0]=a;g=g+1|0;h=i?(i|0)==(l|0)?d:b:c;a:{if(h>>>0<2)break a;j=h-1|0;k=j&7;if(h-2>>>0>=7){j=j&-8;h=0;while(1){H[g+7|0]=a;H[g+6|0]=a;H[g+5|0]=a;H[g+4|0]=a;H[g+3|0]=a;H[g+2|0]=a;H[g+1|0]=a;H[g|0]=a;g=g+8|0;h=h+8|0;if((j|0)!=(h|0))continue;break}}h=0;if(!k)break a;while(1){H[g|0]=a;g=g+1|0;h=h+1|0;if((k|0)!=(h|0))continue;break}}f=f+1|0;i=i+1|0;if((i|0)!=(e|0))continue; +break}}return 0}function Fsa(a){a=a|0;var b=0,c=0,d=0;b=vc(72);J[b+8>>2]=0;J[b>>2]=2432988;J[b+4>>2]=0;d=J[685894];J[b+16>>2]=0;J[b+20>>2]=0;J[b+12>>2]=d;J[699344]=0;d=b+24|0;J[d+20>>2]=-1;J[d+12>>2]=-1;J[d+16>>2]=0;J[d+4>>2]=0;J[d+8>>2]=0;J[d>>2]=2434524;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[699344]=0;c=b+48|0;J[c+20>>2]=-1;J[c+12>>2]=-1;J[c+16>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2434544;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;Hd(d);break a}J[a>>2]=0;vd(a,b);return}a=Z()|0}zc(b+20|0); +wc(b+8|0);uc(nd(b));ba(a|0);B()}function Eua(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){c=e&-2;d=e&1;l=h<<2;a=g<<1;while(1){h=0;if((e|0)!=1)while(1){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|-16777216;J[b+4>>2]=K[i+3|0]|K[j+3|0]<<8|K[k+3|0]<<16|-16777216;b=b+8|0;k=k+4|0;j=j+4|0;i=i+4|0;h=h+2|0;if((h|0)!=(c|0))continue;break}if(d){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|-16777216;k=k+2|0;j=j+2|0;i=i+2|0;b=b+4|0}b=b+l|0;k=a+k|0;j= +a+j|0;i=a+i|0;f=f-1|0;if(f)continue;break}}}function Bka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;while(1){a:{if((c|0)<=(g|0))break a;d=J[a+12>>2];e=J[a+16>>2];b:{if(d>>>0>>0){J[f+12>>2]=2147483647;J[f+8>>2]=e-d>>2;J[f+4>>2]=c-g;d=fc-16|0;fc=d;fc=d+16|0;d=fc-16|0;fc=d;fc=d+16|0;d=f+4|0;e=f+8|0;d=J[d>>2]>2]?d:e;e=f+12|0;d=J[(J[d>>2]>2]?d:e)>>2];Ik(b,J[a+12>>2],d);e=d<<2;J[a+12>>2]=e+J[a+12>>2];b=b+e|0;break b}d=kc[J[J[a>>2]+40>>2]](a)|0;if((d|0)==-1)break a;J[b>>2]= +d;d=1;b=b+4|0}g=d+g|0;continue}break}fc=f+16|0;return g|0}function A8a(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;d=fc-32|0;fc=d;a:{if(!J[b+216>>2]){F3(b);break a}J[b+192>>2]=0}while(1){b:{c:{if(J[b+216>>2]){c=J[b+192>>2];if(c>>>0>=M[b+196>>2])break b;J[b+192>>2]=c+1;g=J[J[b+208>>2]+(c>>>4&268435452)>>2]+((c&63)<<4)|0;e=O[g>>3];O[d+16>>3]=e;f=O[g+8>>3];O[d+8>>3]=f;c=c?2:1;break c}c=$o(b,d+16|0,d+8|0);if(!c)break b;f=O[d+8>>3];e=O[d+16>>3]}J[d+28>>2]=0;h=Qe(a,d+28|0),i=c,H[h|0]=i;c=J[d+28>> +2];O[c+8>>3]=f;O[c>>3]=e;J[a>>2]=J[a>>2]+1;continue}break}fc=d+32|0}function Hd(a){var b=0,c=0,d=0,e=0,f=0;a:{b=J[a+16>>2];if((b|0)<=J[a+20>>2]){d=J[a+4>>2];c=J[a>>2];e=J[c+16>>2];c=J[c+4>>2];f=J[a+8>>2];J[699344]=0;b=aa(c|0,d|0,b-f|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[a+16>>2];c=J[a+20>>2];J[699344]=0;da(e|0,b|0,(c-d|0)+1|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+4>>2];if(b)uc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0;return}oa(ea(0)|0)|0;J[699344]= +0;ka(5053);a=J[699344];J[699344]=0;if((a|0)!=1)return;ea(0)|0;Bc();B()}function hla(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;if((c|0)>0){a=J[a+12>>2];while(1){a:{b:{f=J[a>>2];h=f>>16;i=h&32767;if(i){d=Np((+(i|0)+.5)*.0027076061740622863+-44.3614195558365);d=h&32768?-d:d;if(!(d<=0))break b}J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;break a}N[b+4>>2]=d;g=(+((f>>>8&255)>>>0)+.5)*.0024390243902439024;j=(+((f&255)>>>0)+.5)*.0024390243902439024;e=1/(g*6+j*-16+12);g=g*9*e;e=j*4*e;N[b>>2]=d*(g/e); +N[b+8>>2]=d*((1-g-e)/e)}a=a+4|0;b=b+12|0;f=c>>>0>1;c=c-1|0;if(f)continue;break}}}function hBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=fc-32|0;fc=d;a:{if(!K[a+144|0]){a=Qc(d+8|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}b:{if(!(c&32)|(a|0)==(b|0))break b;c=a+148|0;if(!(J[c>>2]&64))break b;b=J[c>>2];e=!(b&16);if(e|!(b&64)|e)break b;b=J[a+120>>2];if(b)while(1){if(!(J[J[b+8>>2]+148>>2]&32))break b;b=J[b>>2];if(b)continue; +break}kh(c,0,0,32,0);b=si();kc[J[J[b>>2]+40>>2]](b,a,32,0)}fc=d+32|0;return}B()}function fxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+2308>>2]){g=J[a+2300>>2];c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=K[c+2|0];e=K[c+1|0];f=K[c|0];a:{if(!(!K[g+56|0]|(f|0)!=L[g+838>>1]|(e|0)!=L[g+840>>1]))if((d|0)==L[g+842>>1])break a;H[b+6|0]=255;H[b+7|0]=255}f=kc[J[a+2296>>2]](f)|0;e=kc[J[a+2296>>2]](e)|0;d=kc[J[a+2296>>2]](d)|0;H[b+3|0]=(e|0)!=0;H[b+2|0]=e>>>8;H[b+1|0]=(f|0)!=0;H[b|0]=f>>>8;H[b+5|0]=(d|0)!= +0;H[b+4|0]=d>>>8;b=b+8|0;c=c+3|0;h=h+1|0;if(h>>>0>2])continue;break}}return 0}function dCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;c=J[685894];e=b&7;b:{if(!e){d=b;break b}d=b;while(1){J[a+8>>2]=0;J[a+12>>2]=c;a=a+16|0;d=d-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<8)break a;while(1){J[a+8>>2]=0;J[a+124>>2]=c;J[a+120>>2]=0;J[a+108>>2]=c;J[a+104>>2]=0;J[a+92>>2]=c;J[a+88>>2]=0;J[a+76>>2]=c;J[a+72>>2]=0;J[a+60>>2]=c;J[a+56>>2]=0;J[a+44>>2]=c;J[a+40>>2]=0;J[a+28>> +2]=c;J[a+24>>2]=0;J[a+12>>2]=c;a=a+128|0;b=d-9|0;d=d-8|0;if(b>>>0<4294967294)continue;break}}}function Ujb(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!K[a+632|0])break a;c=J[a+100>>2];b=J[a+476>>2];if((b|0)!=151552){if((b|0)!=131072)break a;b=J[a+640>>2];if(b)kc[J[c+8>>2]](c,b);I[a+636>>1]=0;J[a+640>>2]=0;if(L[a+638>>1]){b=0;while(1){d=b<<2;e=J[d+J[a+644>>2]>>2];if(e)kc[J[c+8>>2]](c,e);J[J[a+644>>2]+d>>2]=0;b=b+1|0;if(b>>>0>1])continue;break}}b=J[a+644>>2];if(b)kc[J[c+8>>2]](c,b);I[a+638>>1]=0;J[a+ +644>>2]=0;break a}b=J[a+640>>2];if(b)kc[J[c+8>>2]](c,b);I[a+636>>1]=0;J[a+640>>2]=0}H[a+632|0]=0}function yDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=-1;a:{if(zi(b,J[a+24>>2]))break a;if(zi(b,J[a+20>>2]))break a;if(Kh(b,J[a+28>>2]))break a;d=J[b+8>>2];if(d&7)break a;e=K[a+32|0];c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2])){J[b+8>>2]=d|4;return-1}J[b+4>>2]=J[b+4>>2]|32;c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;b:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break b}if((bd(b,e)|0)==-1)break a}c= +-1;if(Cs(b,K[a+33|0]))break a;if(Cs(b,K[a+34|0]))break a;c=Cs(b,K[a+35|0])?-1:0}return c|0}function dF(a){var b=0,c=0,d=0,e=0;a:{b=J[a+8>>2];if((b|0)<=0)break a;a=J[a+12>>2];d=b&3;b:{if(!d){c=b;break b}c=b;while(1){J[a+12>>2]=0;J[a+4>>2]=2147483647;J[a+8>>2]=0;a=a+16|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){J[a+12>>2]=0;J[a+4>>2]=2147483647;J[a+8>>2]=0;J[a+60>>2]=0;J[a+52>>2]=2147483647;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=2147483647;J[a+40>>2]=0;J[a+28>>2]=0; +J[a+20>>2]=2147483647;J[a+24>>2]=0;a=a- -64|0;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}}function Zm(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(!b)break a;b:{if(a>>>0<=65535){c=J[b>>2];if(!c|(c|0)<=0)break a;f=J[b+8>>2];b=c-1|0;c=0;e=a&65535;while(1){d=(b+c|0)/2|0;g=f+(d<<2)|0;c:{if(L[g>>1]>a>>>0){b=d-1|0;break c}if(e>>>0<=L[g+2>>1])return 1;c=d+1|0}if((b|0)>=(c|0))continue;break}break b}c=J[b+4>>2];if(!c|(c|0)<=0)break a;f=J[b+12>>2];b=c-1|0;c=0;while(1){d=(b+c|0)/2|0;e=f+(d<<3)|0;d:{if(M[e>>2]> +a>>>0){b=d-1|0;break d}if(M[e+4>>2]>=a>>>0)return 1;c=d+1|0}if((b|0)>=(c|0))continue;break}}}return 0}function Hyb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;d=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){c=K[b|0]|K[b+1|0]<<8;f=(c<<8|c>>>8)&65535;c=K[d|0]|K[d+1|0]<<8;c=f+((c<<8|c>>>8)&65535)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]= +c>>>8;d=d+2|0;b=b+2|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}xc(b,d,J[a+588>>2]<<1);return 0}function Oja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;e=J[c+4>>2];c=J[c>>2];J[d>>2]=c;J[d+4>>2]=e;J[d+8>>2]=c;J[d+12>>2]=e;f=fc-32|0;fc=f;e=_j(f+8|0,b);J[699344]=0;c=f+20|0;ca(7261,c|0,d|0,e|0);b=J[699344];J[699344]=0;a:{b:{c:{if((b|0)!=1){J[699344]=0;a=aa(7262,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;jd(c);jd(e);J[a>>2]=2640712;b=J[d+4>>2];J[a+8>>2]=J[d>>2];J[a+ +12>>2]=b;fc=f+32|0;break a}a=Z()|0;break b}a=Z()|0;jd(f+20|0)}jd(e);ba(a|0);B()}J[a>>2]=2629416;fc=d+16|0;return a|0}function LPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;J[a+8>>2]=13;J[a>>2]=2319424;a:{if(J[b>>2]==3){b=J[b+8>>2];e=vc(8);J[699344]=0;b=aa(3350,e|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1)break a;a=Z()|0;uc(e);ba(a|0);B()}b=0;Cc(1,-1,809521,0)}e=a+8|0;J[a+4>>2]=b;b:{c:switch(J[c>>2]-5|0){case 1:Pe(c,e);break b;default:Cc(1,-1,809843,0);break;case 0:break c}J[e>>2]=5}d:switch(J[d>> +2]-1|0){case 0:J[a+24>>2]=J[d+8>>2];return a|0;default:Cc(1,-1,810246,0);break;case 4:break d}J[a+24>>2]=0;return a|0}function noa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;g=fc-16|0;fc=g;a=J[a+12>>2];Ov(a);J[g+12>>2]=d;h=a+2776|0;d=J[a+2772>>2];a=fc-16|0;fc=a;a:{if(!c){J[a+12>>2]=0;c=a+12|0;kc[J[J[d>>2]+40>>2]](d,c);N[a+12>>2]=O[e>>3];N[a+8>>2]=O[f>>3];kc[J[J[d>>2]+84>>2]](d,b,c,a+8|0)|0;break a}J[a+12>>2]=1;b=a+12|0;kc[J[J[d>>2]+40>>2]](d,b);J[a+12>>2]=J[g+12>>2];N[a+8>>2]= +O[e>>3];N[a+4>>2]=O[f>>3];kc[J[J[d>>2]+92>>2]](d,c,b,a+8|0,a+4|0)|0}kc[J[J[d>>2]+132>>2]](d,h)|0;fc=a+16|0;fc=g+16|0;return 0}function lw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(!K[a+8|0])break a;e=J[a>>2];if(!e)break a;f=J[e+4>>2]-1|0;J[e+4>>2]=f;if(f)break a;uc(e)}J[a>>2]=0;J[a+4>>2]=0;e=0;H[a+8|0]=0;if((d|0)==-1){d=bf(b);d=(d|0)<0?-2147483648:d}J[a+4>>2]=d;b:{c:{d:{if(!c){c=b;break d}if(!d)break c;c=vc(8);J[699344]=0;f=d<<2;d=_(27,(d>>>0>1073741822?-1:f+4|0)|0)|0;g=J[699344];J[699344]= +0;e=1;if((g|0)==1)break b;J[c>>2]=d;J[d+f>>2]=0;xc(d,b,f);J[c+4>>2]=1}H[a+8|0]=e;J[a>>2]=c}return}a=Z()|0;uc(c);ba(a|0);B()}function Xg(a,b,c){var d=0,e=0,f=0;a:{d=J[a+4>>2];if((d&48)!=48){f=J[a+8>>2];J[a+8>>2]=f&-2;b:{c:{if(d&16){if((c|0)!=1)break c;b=b-J[a+28>>2]|0;break c}if(!(d&32))break c;e=-1;if(!(K[a|0]&6)|f&6)break b;f=J[a+16>>2];e=J[a+24>>2]-f|0;if((e|0)>0){if((kc[J[J[a+52>>2]+4>>2]](J[a+56>>2],f,e)|0)!=(e|0))break a;d=J[a+4>>2]}d=d|32}J[a+28>>2]=0;J[a+24>>2]=J[a+16>>2];J[a+4>>2]=d&-49;a= +kc[J[J[a+52>>2]+8>>2]](J[a+56>>2],b,c)|0;e=(a|0)<0?-1:a}return e}fa(201531,198694,648,206385);B()}J[a+8>>2]=J[a+8>>2]|2;return-1}function VJ(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a>>2];e=Yc(b);if((c|0)>(e^2147483647)){gi(780573);c=J[a>>2]}Bh(a,c+e|0);d=J[a>>2];a:{if((d|0)<0)break a;c=d;g=c+1&3;if(g)while(1){h=J[a+4>>2]+d|0;H[h+e|0]=K[h|0];d=d-1|0;f=f+1|0;if((g|0)!=(f|0))continue;break}if(c>>>0<3)break a;while(1){c=J[a+4>>2]+d|0;H[c+e|0]=K[c|0];c=(J[a+4>>2]+d|0)-1|0;H[c+e|0]=K[c|0];c=(J[a+4>>2]+d|0)- +2|0;H[c+e|0]=K[c|0];f=d-3|0;c=f+J[a+4>>2]|0;H[c+e|0]=K[c|0];d=d-4|0;if((f|0)>0)continue;break}}xc(J[a+4>>2],b,e);J[a>>2]=J[a>>2]+e}function Nk(a){var b=0,c=0,d=0;J[699344]=0;$(3370,a+16|0);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;$(3370,a+32|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+4>>2];if(b){b:{c:{if(J[b+8>>2]!=13){d=J[b+16>>2];c=J[J[d>>2]+24>>2];J[699344]=0;$(c|0,d|0);c=J[699344];J[699344]=0;if((c|0)==1)break c;J[699344]=0;$(3370,b+8|0);c=J[699344];J[699344]=0;if((c| +0)==1)break c}d:{if(!J[b+24>>2])break d;c=J[b>>2];if(!c)break d;uc(a0(c))}break b}ea(0)|0;Bc();B()}uc(b)}return a}ea(0)|0;Bc();B()}function M8a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+16>>2]=c;J[a>>2]=349404;J[a+4>>2]=2;e=wk(a+20|0);J[a+40>>2]=0;J[a+44>>2]=0;J[a+24>>2]=-16777216;J[a+28>>2]=-16777216;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=0;J[699344]=0;c=_(4,32)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){J[699344]=0;b=aa(2486,c|0,b|0)|0;d=J[699344];J[699344]= +0;if((d|0)==1)break b;H[a+72|0]=255;J[a+12>>2]=1;J[a+8>>2]=b;H[a+32|0]=0;return a|0}a=Z()|0;break a}a=Z()|0;uc(c)}Jd(e);ba(a|0);B()}function HJ(a){var b=0;b=J[a+4>>2];if(b)uc(q$(b));J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;$(3370,a+24|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+40|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+56|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+72|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(3370,a+88|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a}ea(0)|0;Bc();B()}function daa(a,b,c,d,e,f){a:{if(b>>>0>c>>>0)break a;b:switch(d|0){case 0:while(1){d=b&65535;c:{if(d){d=ph(a,d);break c}d=J[a+528>>2]}if(d){J[d+40>>2]=f;J[d+36>>2]=e}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}break a;case 1:while(1){d=b&65535;d:{if(d){d=ph(a,d);break d}d=J[a+528>>2]}if(d){J[d+36>>2]=J[d+36>>2]+e;J[d+40>>2]=J[d+40>>2]+f}b=b+1|0;if((b&65535)>>>0<=c>>>0)continue; +break}break a;default:break b}while(1){d=b&65535;if(d)ph(a,d);b=b+1|0;if((b&65535)>>>0<=c>>>0)continue;break}}return 0}function bd(a,b){var c=0,d=0,e=0;c=-1;a:{b:{c:{if(!(!(K[a|0]&6)|K[a+8|0]&7)){e=J[a+4>>2];if(e&16)break c;c=J[a+16>>2];d=J[a+24>>2]-c|0;if((d|0)>0){if((kc[J[J[a+52>>2]+4>>2]](J[a+56>>2],c,d)|0)!=(d|0))break b;e=J[a+4>>2];c=J[a+16>>2]}J[a+24>>2]=c;d=J[a+20>>2];J[a+28>>2]=d;J[a+4>>2]=e|32;if((b|0)==-1)return 0;if((d|0)<=0)break a;J[a+28>>2]=d-1;J[a+24>>2]=c+1;J[a+60>>2]=J[a+60>>2]+1; +H[c|0]=b;c=b&255}return c}fa(203515,198694,814,206420);B()}J[a+8>>2]=J[a+8>>2]|2;return-1}fa(202924,198694,834,206420);B()}function WA(a){a=a|0;var b=0,c=0,d=0;c=K[a+11|0];d=c<<24>>24;b=(d|0)<0;a:{b:switch((b?J[a+4>>2]:c)-4|0){case 1:if(dd(b?J[a>>2]:a,15212,5))break a;return 2;case 2:if(dd(b?J[a>>2]:a,13753,6))break a;return 1;case 4:a=b?J[a>>2]:a;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))!=1634300500|(K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24))!=1701603182)break a;return 3;case 0:break b; +default:break a}a=(d|0)<0?J[a>>2]:a;if((K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24))==1952541766)break a}return 0}function O$(a,b){var c=0,d=0,e=0;a:{e=J[a+4>>2];d=J[(J[a>>2]+(e<<2)|0)-4>>2];b:{if(!d)break b;c=J[d+24>>2]-1|0;J[d+24>>2]=c;if(c)break b;c=J[d>>2];if(c)uc(Zc(c));c=J[d+4>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[d+12>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(d);e=J[a+4>>2]}if((e|0)>=2)while(1){d=J[a>>2];c=e-1|0;J[d+(c<<2)>>2]=J[(d+ +(e<<2)|0)-8>>2];d=e>>>0>2;e=c;if(d)continue;break}J[J[a>>2]>>2]=b;J[b+24>>2]=J[b+24>>2]+1;return}ea(0)|0;Bc();B()}function Lh(a,b,c,d){var e=0,f=0,g=0,h=0;a:{if((b|0)>0)while(1){e=J[a+8>>2];if(e&7)return-1;f=J[a+64>>2];if(!((f|0)<0|J[a+60>>2]<(f|0))){J[a+8>>2]=e|4;return-1}e=(b<<3)-8|0;f=c;h=e&-8;e=h&31;if((h&63)>>>0>=32)e=d>>>e|0;else e=((1<>>e;J[a+4>>2]=J[a+4>>2]|32;f=J[a+28>>2];J[a+28>>2]=f-1;b:{if((f|0)>0){J[a+60>>2]=J[a+60>>2]+1;f=J[a+24>>2];J[a+24>>2]=f+1;H[f|0]=e;break b}f= +-1;if((bd(a,e&255)|0)==-1)break a}f=b>>>0>1&(g|0)>=0|(g|0)>0;e=b;b=e-1|0;g=g-!e|0;if(f)continue;break}f=0}return f}function IV(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=fc-32|0;fc=e;a:{b:{f=J[a+24>>2];g=J[a+16>>2];c:{if((f|0)<=(g|0))break c;c=J[a+28>>2];d=J[a+20>>2];if((c|0)<=(d|0))break c;h=J[a+8>>2];i=J[a>>2];if((h|0)<=(i|0))break c;b=J[a+12>>2];j=J[a+4>>2];if((b|0)>(j|0))break b}a=Qc(e+8|0,2388016,2385446,395,2425256,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()| +0;Kc(a);ba(b|0);B()}d=c-d|0;c=0;J[a+44>>2]=d|c;J[a+48>>2]=b-j;J[a+36>>2]=c|f-g;J[a+40>>2]=h-i;fc=e+32|0;return}B()}function xn(a,b,c,d,e){var f=0,g=0,h=0,i=0;g=fc-16|0;fc=g;J[g+12>>2]=b;b=0;f=6;a:{b:{if(nl(a,g+12|0))break b;f=4;h=gr(a);if((h|0)>=0)i=(J[J[d+8>>2]+((h&255)<<2)>>2]&64)!=0;else i=0;if(!i)break b;b=kc[J[J[d>>2]+36>>2]](d,h,0)|0;while(1){c:{Xs(a);b=b-48|0;if(nl(a,g+12|0)|(e|0)<2)break c;f=gr(a);if((f|0)>=0)h=(J[J[d+8>>2]+((f&255)<<2)>>2]&64)!=0;else h=0;if(!h)break a;e=e-1|0;b=(kc[J[J[d>> +2]+36>>2]](d,f,0)|0)+P(b,10)|0;continue}break}f=2;if(!nl(a,g+12|0))break a}J[c>>2]=J[c>>2]|f}fc=g+16|0;return b}function Uua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;e=J[a+8>>2];if((e|0)>(b|0)){d=J[a+12>>2]+b|0;b=(c|0)<0?e-b|0:c;a:{if((b|0)<=0)break a;e=b+d|0;while(1){b:{b=d;if(!K[b|0])break b;J[f+12>>2]=b;c=kc[J[J[a>>2]+60>>2]](a,f+12|0)|0;d=J[f+12>>2];if((b|0)==(d|0))break b;c:{if(c>>>0>255)break c;g=c<<24>>24;g=(g|0)<-1?c:g;if((g|0)==32|g-9>>>0<5)break c;switch(c-10|0){case 0:case 3:break c; +default:break b}}if(e>>>0>d>>>0)continue;break a}break}d=b}e=d-J[a+12>>2]|0}fc=f+16|0;return e|0}function Kk(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=fc-32|0;fc=b;d=2;e=b+6|0;a:{b:{while(1){c=kc[J[J[a>>2]+8>>2]](a,e,d)|0;if((c|0)<0){a=Qc(b+8|0,um(J[698583]),2387108,413,2396533,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(c){e=c+e|0;f=c+f|0;d=d-c|0;if(d)continue}break}if((f|0)!=2){a=Qc(b+8|0,J[685886],2387108,564,2396813,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]= +0;if((b|0)!=1)break b;break a}fc=b+32|0;return K[b+7|0]|K[b+6|0]<<8}B()}b=Z()|0;Kc(a);ba(b|0);B()}function I3a(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;e=fc+-64|0;fc=e;d=0;a:{if(!c)break a;d=0;if(J[c>>2]>0)break a;b:{if(!b){H[e+4|0]=K[734136];J[e>>2]=K[734132]|K[734133]<<8|(K[734134]<<16|K[734135]<<24);b=4;break b}H[e|0]=0;b=0}i=b|e;f=fc-32|0;fc=f;if((a|0)>=0)b=0;else{H[i|0]=45;a=0-a|0;b=1}H[f+29|0]=0;h=29;while(1){h=h-1|0;j=h+f|0;d=(a>>>0)/10|0;g=a-P(d,10)|0;H[j|0]=g+((g&254)>>>0< +10?48:55);g=a>>>0>=10;a=d;if(g)continue;break}of(b+i|0,j);fc=f+32|0;d=t3(e,c)}fc=e- -64|0;return d|0}function f8(a,b,c){var d=0;d=0;a:{if(J[a>>2])break a;b:{if(c>>>0<8)break b;a=K[b|0];c:{if((a|0)!=87|K[b+1|0]!=87|(K[b+2|0]!=66|K[b+3|0]!=66))break c;if(K[b+4|0]!=49|K[b+5|0]!=49|K[b+6|0]!=49)break c;d=1;if(K[b+7|0]==49)break a}if(a|c>>>0<16|(K[b+1|0]|K[b+2|0]!=2))break b;if(K[b+3|0]|K[b+4|0]!=2|(K[b+5|0]!=16|K[b+6|0]!=201))break b;if(K[b+7|0]|K[b+8|0]!=2|(K[b+9|0]|K[b+10|0]!=200))break b;if(K[b+11| +0]!=6|K[b+12|0]!=76|(K[b+13|0]|K[b+14|0]!=2))break b;if(K[b+15|0])break b;return 1}d=0}return d}function bH(a,b,c,d){var e=0,f=0,g=0;g=ht(a,b,c);e=J[d>>2];if(!e)return g;f=J[c>>2];if(!(!f|M[e+616>>2]>2]))return g;J[c>>2]=e;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=g+1|0;e=J[c>>2];a:{if(!e)break a;f=J[b>>2];if(M[e+616>>2]>=M[f+616>>2]?f:0)break a;J[b>>2]=e;J[c>>2]=f;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;d=g+2|0;c=J[b>>2];if(!c)break a;e=J[a>>2];if(M[c+616>>2]>=M[e+616>> +2]?e:0)break a;J[a>>2]=c;J[b>>2]=e;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;d=g+3|0}return d}function aS(a){var b=0,c=0;a:{b=J[a+4>>2];c=!J[(J[J[b>>2]-12>>2]+b|0)+24>>2];b=b+J[J[b>>2]-12>>2]|0;b:{if(c|J[b+16>>2]|!(J[b+4>>2]&8192))break b;if(qS())break b;b=J[a+4>>2];b=J[(J[J[b>>2]-12>>2]+b|0)+24>>2];J[699344]=0;b=_(6752,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){if((b|0)!=-1)break b;a=J[a+4>>2];b=J[J[a>>2]-12>>2];J[699344]=0;da(6753,a+b|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break b}oa(ea(0)| +0)|0;J[699344]=0;ka(5053);a=J[699344];J[699344]=0;if((a|0)==1)break a}return}ea(0)|0;Bc();B()}function Jg(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;if(J[a+8>>2]>=J[a+4>>2])q0(a);d=vc(12);J[d+4>>2]=c;J[d>>2]=b;c=J[b>>2];a:{if((c|0)<=0)break a;f=c&3;b=J[b+4>>2];b:{if(c>>>0<4){c=b;break b}i=c&-4;while(1){e=K[b+3|0]+P(K[b+2|0]+P(K[b+1|0]+P(K[b|0]+P(e,17)|0,17)|0,17)|0,17)|0;c=b+4|0;b=c;g=g+4|0;if((i|0)!=(g|0))continue;break}}if(!f)break a;while(1){e=K[c|0]+P(e,17)|0;c=c+1|0;h=h+1|0;if((h|0)!=(f|0))continue; +break}}b=J[a+12>>2]+((e>>>0)%M[a+4>>2]<<2)|0;J[d+8>>2]=J[b>>2];J[b>>2]=d;J[a+8>>2]=J[a+8>>2]+1}function Ztb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(!(K[a+288|0]?K[a+285|0]:0)){Jc(a,1029,0,0);return 1029}if(c>>>0<=5){Jc(a,1028,0,0);return 1028}a:{if(!K[a+112|0])break a;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break a;f=J[e>>2];b=K[d|0]|K[d+1|0]<<8|(K[d+2|0]<<16|K[d+3|0]<<24);J[f+32>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);b=K[d+4|0];g=c-5|0;J[f+40>>2]=g;H[f+36|0]=b;b=kc[J[a+152>>2]](c-4|0)| +0;J[J[e>>2]+44>>2]=b;b=J[J[e>>2]+44>>2];if(!b){Jc(a,1,0,0);return 1}xc(b,d+5|0,g);f=0}return f|0}function PY(a,b){var c=0,d=0,e=0,f=0,g=0;f=fc-32|0;fc=f;c=J[a+60>>2];a:{b:{if(c){g=1;while(1){e=J[J[a+64>>2]+(d<<2)>>2];if(!J[(J[J[a+76>>2]+24>>2]+P(e,52)|0)+44>>2]){J[f+16>>2]=e;Nc(b,2,2370964,f+16|0);g=0;c=J[a+60>>2]}d=d+1|0;if(c>>>0>d>>>0)continue;break}break b}g=1;c=J[a+76>>2];e=1;if(!J[c+16>>2])break a;while(1){if(!J[(J[c+24>>2]+P(d,52)|0)+44>>2]){J[f>>2]=d;Nc(b,2,2370964,f);g=0;c=J[a+76>>2]}d=d+ +1|0;if(d>>>0>2])continue;break}}e=1;if(g)break a;Nc(b,1,2370995,0);e=0}fc=f+32|0;return e}function E$a(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=fc-16|0;fc=e;a:{f=bf(c);if(f>>>0<1073741808){b:{if(f>>>0<=1){H[e+15|0]=f;g=e+4|0;break b}g=f|3;if(g>>>0>=1073741823)break a;h=g+1|0;g=vc(h<<2);J[e+12>>2]=h|-2147483648;J[e+4>>2]=g;J[e+8>>2]=f}h=c;c=f<<2;i=xc(g,h,c)+c|0,j=0,J[i>>2]=j;J[699344]=0;ia(3260,a|0,b|0,e+4|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[e+15|0]<0)uc(J[e+ +4>>2]);fc=e+16|0;return}a=Z()|0;if(H[e+15|0]<0)uc(J[e+4>>2]);ba(a|0);B()}_d(e+4|0);B()}Pd();B()}function sy(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=J[a+4>>2];if((c|0)!=J[a+8>>2]){J[c>>2]=J[b>>2];J[a+4>>2]=c+4;return}a:{g=J[a>>2];f=c-g|0;d=f>>2;e=d+1|0;if(e>>>0<1073741824){h=d<<2;d=f>>1;d=f>>>0>=2147483644?1073741823:d>>>0>e>>>0?d:e;if(d){if(d>>>0>=1073741824)break a;f=vc(d<<2)}else f=0;e=h+f|0;J[e>>2]=J[b>>2];b=e+4|0;if((c|0)!=(g|0)){while(1){e=e-4|0;c=c-4|0;J[e>>2]=J[c>>2];if((c|0)!=(g|0))continue;break}c= +J[a>>2]}J[a+8>>2]=f+(d<<2);J[a+4>>2]=b;J[a>>2]=e;if(c)uc(c);return}$k(225980);B()}Pd();B()}function lA(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;a:{b:{while(1){d=J[a+16>>2];if((d|0)<=(b|0)){b=b-d|0;if(!((b|0)>=J[a+40>>2]&(b|0)<=J[a+44>>2])){a=Qc(c+8|0,2393794,2394220,619,2434564,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}fc=c+32|0;return J[a+28>>2]+P(b-J[a+32>>2]|0,12)|0}a=J[a+20>>2];if(a)continue;break}a=Qc(c+8|0,2394816,2386144,165,2432996,0);J[699344]=0;$(5179, +a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}B()}b=Z()|0;Kc(a);ba(b|0);B()}function Zwa(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a>>2]=2423832;J[a+4>>2]=0;J[a+12>>2]=J[685894];J[699344]=0;aa(5149,a+16|0,2423756)|0;c=J[699344];J[699344]=0;if((c|0)==1){b=Z()|0;wc(a+8|0);nd(a);ba(b|0);B()}J[a+24>>2]=0;c=J[685894];H[a+88|0]=0;J[a+68>>2]=1;I[a+64>>1]=0;J[a+60>>2]=0;I[a+56>>1]=0;J[a+48>>2]=-1;J[a+52>>2]=50;J[a+40>>2]=255;J[a+44>>2]=1;H[a+36|0]=0;J[a+32>>2]=0;J[a+28>>2]=c;J[a>>2]=2424484;J[a+92>> +2]=J[b>>2];J[a+96>>2]=J[b+4>>2];J[a+100>>2]=J[b+8>>2];J[a+104>>2]=J[b+12>>2];return a|0}function dGa(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;d=K[a+11|0];e=d+7>>>3|0;a:{if(!d){d=b;break a}f=b+e|0;d=b;while(1){H[d|0]=K[c|0]+K[d|0];c=c+1|0;d=d+1|0;if(f>>>0>d>>>0)continue;break}}b=J[a+4>>2]+b|0;if(b>>>0>d>>>0){a=0-e|0;m=(b-d|0)+d|0;while(1){h=K[a+d|0];b=K[a+c|0];e=h-b|0;f=e>>31;i=K[c|0];g=i-b|0;j=g>>31;k=e+g|0;l=k>>31;n=b;b=(e^f)-f|0;e=(g^j)-j|0;f=b>>>0>>0;H[d|0]=K[d| +0]+((l^k)-l>>>0<(f?b:e)>>>0?n:f?i:h);c=c+1|0;d=d+1|0;if((m|0)!=(d|0))continue;break}}}function ap(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=J[a+4>>2];g=J[a>>2];e=g>>>6|0;if(d>>>0<=e>>>0){c=J[a+8>>2];a:{if(c>>>0>e>>>0){c=J[a+12>>2];break a}f=c+J[a+16>>2]|0;c=vc(f>>>0>1073741823?-1:f<<2);h=J[a+12>>2];if(h){xc(c,h,d<<2);uc(h);f=J[a+8>>2]+J[a+16>>2]|0;g=J[a>>2];d=J[a+4>>2]}J[a+8>>2]=f;J[a+12>>2]=c}i=(e<<2)+c|0,j=vc(1024),J[i>>2]=j;J[a+4>>2]=d+1}d=J[b+4>>2];c=J[J[a+12>>2]+(e<<2)>>2]+((g&63)<<4)|0;J[c>> +2]=J[b>>2];J[c+4>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;J[a>>2]=J[a>>2]+1}function Xzb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if((b|0)>0){c=J[a+24>>2];e=c?c-20|0:0;f=J[e+24>>2];if((f|0)<(b|0))while(1){c=J[a+24>>2];c=c?c-20|0:0;d=J[c+48>>2];d=kc[J[J[d>>2]+12>>2]](d,J[c+52>>2],1,4096,0,0)|0;if(!d){if(K[c+56|0]){d=J[a>>2];J[d+20>>2]=43;kc[J[d>>2]](a)}d=J[a>>2];J[d+20>>2]=123;kc[J[d+4>>2]](a,-1);H[J[c+52>>2]]=255;H[J[c+52>>2]+1|0]=217;d=2}H[c+56|0]=0;J[c+24>>2]=d;J[c+20>>2]=J[c+52>>2];b=b- +f|0;f=J[e+24>>2];if((b|0)>(f|0))continue;break}J[e+24>>2]=f-b;J[e+20>>2]=J[e+20>>2]+b}}function RYa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(!K[a+229|0]){c=(J[a+220>>2]+J[a+216>>2]|0)-1|0;d=J[a+204>>2]+(c>>>6&67108860)|0;e=(c&255)<<4;f=e+J[d>>2]|0;c=J[f+8>>2];if(!c){c=vc(40);J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[f+8>>2]=c;c=J[(J[d>>2]+e|0)+8>>2]}O0(c,J[b+596>>2],b+16|0,1);c=(J[a+220>>2]+J[a+216>>2]|0)-1|0;d=J[J[a+204>>2]+(c>>> +6&67108860)>>2]+((c&255)<<4)|0;c=J[d+8>>2];N0(a,b,d,(J[c+16>>2]-J[c+12>>2]>>2)-1|0)}}function HH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=J[c>>2];h=J[b>>2];if(!(J[a+44>>2]?J[a+36>>2]:0))IV(a);g=J[a+32>>2];e=g&4;f=e?h:d;j=g&2?J[a+12>>2]+(J[a+4>>2]-f|0)|0:f;f=J[a+40>>2];i=(f|0)/2|0;k=b;b=J[a>>2];e=e?d:h;d=P(J[a+36>>2],(g&1?(b+J[a+8>>2]|0)-e|0:e)-b|0);a:{if((d|0)>=0){b=(d+i|0)/(f|0)|0;break a}b=0-((i-d|0)/(f|0)|0)|0}J[k>>2]=b+J[a+16>>2];b=J[a+48>>2];e=(b|0)/2|0;d=J[a+20>>2];a=P(J[a+44>>2],j-J[a+ +4>>2]|0);b:{if((a|0)>=0){a=(a+e|0)/(b|0)|0;break b}a=0-((e-a|0)/(b|0)|0)|0}J[c>>2]=a+d}function G7(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<32|(K[b|0]|K[b+1|0]))break a;if(K[b+2|0]|K[b+3|0]!=12|(K[b+4|0]!=106|K[b+5|0]!=80))break a;if(K[b+6|0]!=32|K[b+7|0]!=32|(K[b+8|0]!=13|K[b+9|0]!=10))break a;if(K[b+10|0]!=135|K[b+11|0]!=10|(K[b+12|0]|K[b+13|0]))break a;if(K[b+14|0]|K[b+16|0]!=102|(K[b+17|0]!=116|K[b+18|0]!=121))break a;if(K[b+19|0]!=112|K[b+20|0]!=106|(K[b+21|0]!=112|K[b+22|0]!=50))break a;if(K[b+24| +0]|K[b+23|0]!=32|(K[b+25|0]|K[b+26|0]))break a;if(K[b+27|0])break a;d=1}return d}function vya(a){a=a|0;var b=0,c=0,d=0;J[a+20>>2]=0;J[a>>2]=2419044;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;I[a+16>>1]=0;J[699344]=0;c=ha(5213,a+28|0,a+24|0,0,1)|0;b=J[699344];J[699344]=0;a:{b:{c:{d:{if((b|0)!=1){J[699344]=0;d=ha(5213,a+40|0,a+36|0,0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break d;J[699344]=0;ha(5213,a+52|0,a+48|0,0,4)|0;b=J[699344];J[699344]=0;if((b|0)==1)break c;J[a+68>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0; +return a|0}b=Z()|0;break a}b=Z()|0;break b}b=Z()|0;hd(d)}hd(c)}nd(a);ba(b|0);B()}function PGa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=fc-16|0;fc=b;a:{d=H[a+11|0]<0?J[a>>2]:a;a=bf(d);if(a>>>0<1073741808){b:{if(a>>>0<=1){H[b+15|0]=a;c=b+4|0;break b}c=a|3;if(c>>>0>=1073741823)break a;e=c+1|0;c=vc(e<<2);J[b+12>>2]=e|-2147483648;J[b+4>>2]=c;J[b+8>>2]=a}a=a<<2;f=cd(c,d,a)+a|0,g=0,J[f>>2]=g;J[699344]=0;a=ga(5128,b+4|0,0,10)|0;c=J[699344];J[699344]=0;if((c|0)!=1){if(H[b+15|0]<0)uc(J[b+4>>2]);fc=b+16|0;return a| +0}a=Z()|0;if(H[b+15|0]<0)uc(J[b+4>>2]);ba(a|0);B()}_d(b+4|0);B()}Pd();B()}function F0(a){var b=0,c=0,d=0;if(H[a+83|0]<0)uc(J[a+72>>2]);if(H[a+71|0]<0)uc(J[a+60>>2]);if(H[a+59|0]<0)uc(J[a+48>>2]);c=J[a+36>>2];if(c){b=J[a+40>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;if(H[b-1|0]<0)uc(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a+36>>2]}J[a+40>>2]=c;uc(d)}c=J[a+24>>2];if(c){b=J[a+28>>2];d=c;if((b|0)!=(c|0)){while(1){d=b-12|0;if(H[b-1|0]<0)uc(J[d>>2]);b=d;if((c|0)!=(b|0))continue;break}d=J[a+24>> +2]}J[a+28>>2]=c;uc(d)}b=J[a+12>>2];if(b){J[a+16>>2]=b;uc(b)}return a}function i0(a,b){var c=0;c=fc+-64|0;fc=c;J[c+48>>2]=13;J[c+32>>2]=13;J[c+16>>2]=13;J[c>>2]=13;if(J[Ec(a,810779,c+48|0,0)>>2]==7){Ec(J[c+56>>2],809264,c,0);a:{if(J[c>>2]==7){b:{if(J[Ec(a,836792,c+32|0,0)>>2]==4){Ec(J[c+8>>2],J[c+40>>2],c+16|0,0);break b}a=J[c+8>>2];if(J[a+16>>2]==1){aq(a,0,c+16|0);break b}Ec(a,837100,c+16|0,0)}yc(c+32|0);break a}Pe(c,c+16|0)}yc(c)}yc(c+48|0);c:{if(J[c+16>>2]==8){a=J[c+24>>2];Ec(kc[J[J[a>>2]+76>>2]](a)| +0,834058,b,0);break c}J[b>>2]=5}yc(c+16|0);fc=c- -64|0;return b}function hr(a,b,c,d,e,f){var g=0,h=0,i=0,j=0;a:{if(f&64){c=f+-64|0;b=c&31;if((c&63)>>>0>=32){c=0;b=e>>>b|0}else{c=e>>>b|0;b=((1<>>b}d=0;e=0;break a}if(!f)break a;i=d;h=64-f|0;g=h&31;if((h&63)>>>0>=32){h=d<>>32-g|e<>>0>=32){g=0;b=c>>>b|0}else{g=c>>>b|0;b=((1<>>b}b=j|b;c=g|h;g=d;d=f&31;if((f&63)>>>0>=32){h=0;d=e>>>d|0}else{h=e>>>d|0;d=((1<>>d}e=h}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e}function hM(a,b,c,d,e,f){var g=0,h=0,i=0;g=gM(a,b,c,d,J[J[f>>2]>>2]);f=J[J[f>>2]>>2];h=J[e>>2];i=J[d>>2];if(O[J[f+P(h,12)>>2]>>3]>2]>>3]){J[d>>2]=h;J[e>>2]=i;e=J[d>>2];h=J[c>>2];if(!(O[J[f+P(e,12)>>2]>>3]>2]>>3]))return g+1|0;J[c>>2]=e;J[d>>2]=h;d=J[c>>2];e=J[b>>2];if(!(O[J[f+P(d,12)>>2]>>3]>2]>>3]))return g+2|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(!(O[J[f+P(c,12)>>2]>>3]> +2]>>3]))return g+3|0;J[a>>2]=c;J[b>>2]=d;g=g+4|0}return g}function P0(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(!K[a+229|0]){c=(J[a+220>>2]+J[a+216>>2]|0)-1|0;d=J[a+204>>2]+(c>>>6&67108860)|0;e=(c&255)<<4;f=e+J[d>>2]|0;c=J[f+8>>2];if(!c){c=vc(40);J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[f+8>>2]=c;c=J[(J[d>>2]+e|0)+8>>2]}O0(c,J[b+596>>2],b+16|0,0);c=(J[a+220>>2]+J[a+216>>2]|0)-1|0;d=J[J[a+204>>2]+(c>>>6&67108860)>>2]+((c&255)<< +4)|0;c=J[d+8>>2];N0(a,b,d,(J[c+16>>2]-J[c+12>>2]>>2)-1|0)}}function HOa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{c=bj(J[a+28>>2],c);a=fc-16|0;fc=a;J[a>>2]=13;d=vc(8);e=J[c+4>>2];J[699344]=0;e=ha(3372,c+16|0,e|0,a|0,0)|0;f=J[699344];J[699344]=0;b:{if((f|0)==1)break b;c=J[J[J[c>>2]+28>>2]+56>>2];J[699344]=0;c=ga(3640,d|0,e|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;yc(a);if(J[c+4>>2]>0){d=0;while(1){kc[J[J[b>>2]+348>>2]](b,J[J[c>>2]+(d<<2)>>2]);d=d+1|0;if((d|0)>2])continue;break}}uc(H_(c)); +fc=a+16|0;break a}a=Z()|0;uc(d);ba(a|0);B()}}function scb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);h=K[a+2|0];g=P(h,e);i=f^255;j=255-e|0;h=P(i,b)+P(h,j)|0;b=P(b,f);H[a+2|0]=(h+(b>>>0>>0?b:g)|0)+255>>>8;g=K[a+1|0];b=P(g,e);g=P(c,i)+P(g,j)|0;c=P(c,f);H[a+1|0]=(g+(b>>>0>c>>>0?c:b)|0)+255>>>8;c=K[a|0];b=P(c,e);e=a;a=P(d,f);H[e|0]=((P(d, +i)+P(c,j)|0)+(a>>>0>>0?a:b)|0)+255>>>8}}function rcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);h=K[a+2|0];g=P(h,e);i=f^255;j=255-e|0;h=P(i,b)+P(h,j)|0;b=P(b,f);H[a+2|0]=(h+(b>>>0>g>>>0?b:g)|0)+255>>>8;g=K[a+1|0];b=P(g,e);g=P(c,i)+P(g,j)|0;c=P(c,f);H[a+1|0]=(g+(b>>>0>>0?c:b)|0)+255>>>8;c=K[a|0];b=P(c,e);e=a;a=P(d,f);H[e|0]=((P(d, +i)+P(c,j)|0)+(a>>>0>b>>>0?a:b)|0)+255>>>8}}function mra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=(c|0)/3|0;if((P(a,3)|0)!=(c|0)){fa(78055,76157,723,83415);B()}c=b;a:{if(!a)break a;d=a&3;b:{if(!d){b=a;break b}b=a;while(1){f=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=f;c=c+3|0;b=b-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(a>>>0<4)break a;while(1){a=K[c+2|0];H[c+2|0]=K[c|0];H[c|0]=a;a=K[c+5|0];H[c+5|0]=K[c+3|0];H[c+3|0]=a;a=K[c+8|0];H[c+8|0]=K[c+6|0];H[c+6|0]=a;a=K[c+11|0];H[c+11|0]=K[c+9|0];H[c+9|0]=a; +c=c+12|0;b=b-4|0;if(b)continue;break}}}function h$a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+20>>2];if((d|0)!=102){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=21;kc[J[J[a>>2]>>2]](a)}e=J[a+32>>2];f=J[a+260>>2];if(e>>>0<=f>>>0){b=J[a>>2];J[b+20>>2]=126;kc[J[b+4>>2]](a,-1);return 0}d=J[a+8>>2];if(d){J[d+8>>2]=e;J[d+4>>2]=f;kc[J[d>>2]](a)}d=J[a+388>>2];if(J[d+12>>2])kc[J[d+4>>2]](a);d=c;c=J[a+272>>2]<<3;if(d>>>0>>0){d=J[a>>2];J[d+20>>2]=24;kc[J[d>>2]](a)}if(!(kc[J[J[a+400>>2]+4>>2]](a,b)|0))return 0; +J[a+260>>2]=c+J[a+260>>2];return c|0}function Swa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=vc(140);J[699344]=0;d=aa(5628,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[d>>2]=2424400;c=J[b+96>>2];J[d+92>>2]=J[b+92>>2];J[d+96>>2]=c;c=J[b+104>>2];J[d+100>>2]=J[b+100>>2];J[d+104>>2]=c;c=J[b+112>>2];J[d+108>>2]=J[b+108>>2];J[d+112>>2]=c;c=J[b+120>>2];J[d+116>>2]=J[b+116>>2];J[d+120>>2]=c;c=J[b+128>>2];J[d+124>>2]=J[b+124>>2];J[d+128>>2]=c;c=J[b+136>>2];J[d+132>>2]=J[b+132>>2];J[d+136>>2]=c;J[a>>2]=0;vd(a, +d);return}a=Z()|0;uc(c);ba(a|0);B()}function QGa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=fc-16|0;fc=b;a:{d=H[a+11|0]<0?J[a>>2]:a;a=bf(d);if(a>>>0<1073741808){b:{if(a>>>0<=1){H[b+15|0]=a;c=b+4|0;break b}c=a|3;if(c>>>0>=1073741823)break a;e=c+1|0;c=vc(e<<2);J[b+12>>2]=e|-2147483648;J[b+4>>2]=c;J[b+8>>2]=a}a=a<<2;g=cd(c,d,a)+a|0,h=0,J[g>>2]=h;J[699344]=0;f=+Oa(5127,b+4|0,0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[b+15|0]<0)uc(J[b+4>>2]);fc=b+16|0;return+f}a=Z()|0;if(H[b+15|0]<0)uc(J[b+4>>2]);ba(a| +0);B()}_d(b+4|0);B()}Pd();B()}function ni(a,b,c){var d=0,e=0,f=0;a:{if(!a|!b)break a;b:{c:{d:switch(c|0){case 1:b=Ff(0,b);break c;case 0:break b;case 2:break d;default:break a}if(b)J[b+16>>2]=J[b+16>>2]+1}if(!b)break a}f=J[a>>2];c=J[a+4>>2];e:{if((f|0)<(c|0))break e;d=c<<1;if((d|0)>(c|0)){c=im(a+12|0,c<<2,c<<3);J[a+12>>2]=c;if(!c)break e;J[a+4>>2]=d}c=J[a+16>>2];f:{if(!c)break f;e=J[c+4>>2];if((e|0)<(d|0)){e=im(c+12|0,e<<2,d<<2);J[c+12>>2]=e;if(!e)break f;J[c+4>>2]=d}}}J[J[a+12>>2]+(f<<2)>>2]=b;J[a>> +2]=J[a>>2]+1}}function m8a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;b=J[a+8>>2];H[b+2|0]=1;c=J[b+4>>2];a:{if(!c)break a;c=c-1|0;if(K[J[J[b+20>>2]+(c>>>6&67108860)>>2]+(c&255)|0]-1>>>0>13)break a;J[d+12>>2]=0;e=Qe(b+4|0,d+12|0),f=79,H[e|0]=f;c=J[d+12>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[b+4>>2]=J[b+4>>2]+1}b=J[a+4>>2];if(b){J[d+8>>2]=512;kc[J[J[b>>2]+308>>2]](b,d+8|0)|0;b=J[a+4>>2];kc[J[J[b>>2]+340>>2]](b)|0;a=J[a+4>>2];J[d+4>>2]=512;kc[J[J[a>>2]+312>>2]](a,d+4|0)|0}fc=d+16| +0;return 1}function d$(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=vc(24);c=J[a+16>>2];J[b+16>>2]=c;g=J[a+12>>2];J[b+12>>2]=g;J[699344]=0;d=aa(3551,c|0,8)|0;f=J[699344];J[699344]=0;a:{if((f|0)==1)break a;J[b>>2]=d;J[699344]=0;f=aa(3551,c|0,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b+4>>2]=f;J[699344]=0;c=aa(3551,c|0,4)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b+8>>2]=c;e=d;d=g<<3;xc(e,J[a>>2],d);xc(f,J[a+4>>2],d);xc(c,J[a+8>>2],g<<2);J[b+20>>2]=J[a+20>>2];return b|0}a=Z()|0;uc(b);ba(a| +0);B()}function T7a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+452>>2];a:{b:switch(b|0){case 0:if(J[a+84>>2]){J[c+4>>2]=348;if(J[c+12>>2])break a;d=c,e=kc[J[J[a+4>>2]+28>>2]](a,J[c+8>>2],0,J[c+16>>2],1)|0,J[d+12>>2]=e;break a}J[c+4>>2]=J[J[a+472>>2]+4>>2];break a;case 3:if(!J[c+8>>2]){b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}J[c+4>>2]=349;break a;case 2:if(!J[c+8>>2]){b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}J[c+4>>2]=350;break a;default:break b}b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}J[c+20>>2]=0;J[c+24>>2]= +0}function SG(a,b,c,d){var e=0,f=0,g=0;g=et(a,b,c);e=J[d>>2];if(!e)return g;f=J[c>>2];if(!(!f|O[e+32>>3]>3]))return g;J[c>>2]=e;J[d>>2]=f;e=J[c+4>>2];J[c+4>>2]=J[d+4>>2];J[d+4>>2]=e;d=g+1|0;e=J[c>>2];a:{if(!e)break a;f=J[b>>2];if(O[e+32>>3]>3]?0:f)break a;J[b>>2]=e;J[c>>2]=f;d=J[b+4>>2];J[b+4>>2]=J[c+4>>2];J[c+4>>2]=d;d=g+2|0;c=J[b>>2];if(!c)break a;e=J[a>>2];if(O[c+32>>3]>3]?0:e)break a;J[a>>2]=c;J[b>>2]=e;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c;d=g+3|0}return d}function Rsa(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc-32|0;fc=d;c=a+160|0;f=a,g=vj(a,0,262142,c),J[f+216>>2]=g;c=vj(a,0,262142,c);J[a+220>>2]=c;a:{b:{if(c){e=J[a+216>>2];if(e)break b}a=Qc(d+8|0,2392170,2386144,691,2433653,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}J[b+76>>2]=c;J[b+72>>2]=e;J[a+212>>2]=0;J[a+200>>2]=e+1;J[a+208>>2]=c;J[a+232>>2]=c;J[a+204>>2]=0;J[a+228>>2]=c;J[a+236>>2]=0;J[a+224>>2]=c;H[a+49|0]=1;fc=d+32|0;return}B()}function Nea(a,b,c){a= +a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=Yc(c);g=fc-16|0;fc=g;a:{if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(b>>>0<=d>>>0){f=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;b:{if(f-d>>>0>=e>>>0){if(!e)break b;if(K[a+11|0]>>>7|0)f=J[a>>2];else f=a;h=f+b|0;if((b|0)!=(d|0)){un(e+h|0,h,d-b|0);c=(c>>>0>=h>>>0?d+f>>>0>c>>>0?e:0:0)+c|0}un(h,c,e);b=e+d|0;kl(a,b);H[g+15|0]=0;H[b+f|0]=K[g+15|0];break b}Ls(a,f,(e+d|0)-f|0,d,b,0,e,c)}fc=g+16|0;break a}bC(a);B()}return a|0}function mI(a,b,c){var d=0, +e=0,f=0,g=0;d=J[b>>2];a:{if((d|0)>=J[c>>2])break a;g=1;b:{while(1){c:{f=J[(d<<2)+a>>2];d=d+1|0;J[b>>2]=d;if((f|0)!=32)switch(f-45|0){case 0:break b;case 1:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 24:case 56:break c;default:break a}if(J[c>>2]>(d|0))continue;break a}break}e=f-48|0;g=0}c=J[(d<<2)+a>>2]-48|0;if(c>>>0<=9){while(1){e=P(e,10)+c|0;d=d+1|0;c=J[(d<<2)+a>>2]-48|0;if(c>>>0<10)continue;break}J[b>>2]=d}e=g?0-e|0:e}return e}function jI(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0;e=fc-16|0;fc=e;a:{if(!J[b+4>>2])break a;c=J[a+28>>2];if(!c)break a;kc[J[J[c>>2]+352>>2]](c)|0;d=J[a+28>>2];J[e+12>>2]=32;c=e+12|0;kc[J[J[d>>2]+308>>2]](d,c)|0;d=J[a+28>>2];J[e+12>>2]=4;kc[J[J[d>>2]+308>>2]](d,c)|0;b=MX(b,J[a+28>>2]);d=J[a+28>>2];kc[J[J[d>>2]+412>>2]](d,b?2385152:2385156)|0;b=J[a+28>>2];J[e+12>>2]=4;kc[J[J[b>>2]+312>>2]](b,c)|0;b=J[a+28>>2];J[e+12>>2]=32;kc[J[J[b>>2]+312>>2]](b,c)|0;a=J[a+28>>2];kc[J[J[a>>2]+344>>2]](a)|0}fc=e+16|0}function YHa(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;d=K[c+11|0];f=d<<24>>24;e=K[b+11|0];g=e<<24>>24;a:{h=(f|0)<0?J[c+4>>2]:d;i=(g|0)<0?J[b+4>>2]:e;e=h+i|0;if(e>>>0<1073741808){b:{if(e>>>0<=1){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[a+11|0]=e;break b}d=e|3;if(d>>>0>=1073741823)break a;j=d+1|0;d=vc(j<<2);J[a+4>>2]=e;J[a>>2]=d;J[a+8>>2]=j|-2147483648;a=d}d=a;a=i<<2;b=cd(d,(g|0)<0?J[b>>2]:b,a)+a|0;a=h<<2;k=cd(b,(f|0)<0?J[c>>2]:c,a)+a|0,l=0,J[k>>2]=l;return}_d(a);B()}Pd();B()}function COa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e= +0,f=0;a=vc(8);a:{b:{c:{if(!b)break c;J[699344]=0;d=_(4,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;J[699344]=0;e=aa(3350,d|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break c;c=Z()|0;uc(d);break a}d:{if(!c)break d;J[699344]=0;b=_(4,8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;J[699344]=0;f=aa(3350,b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)break d;c=Z()|0;uc(b);break a}J[a+4>>2]=f;J[a>>2]=e;return a|0}c=Z()|0}uc(a);ba(c|0);B()}function fn(a,b){var c=0,d=0,e=0;c=J[a+20>>2];if(!(K[a+13| +0]?c:0))return Wc(b,J[a+16>>2]);d=J[a+24>>2];c=c-1|0;e=c>>>0>>0?d:c;while(1){a:{c=d;if((e|0)==(c|0)){c=e;break a}d=c+1|0;if(J[(P(d,20)+a|0)+36>>2]<=(b|0))continue}break}b:{c:{if(c)while(1){d=J[(P(c,20)+a|0)+36>>2];if((d|0)<=(b|0))break c;c=c-1|0;if(c)continue;break}c=0;J[a+24>>2]=0;d=J[a+36>>2];if((d|0)<=(b|0))break b;return Wc(b-d|0,J[a+16>>2])+J[a+40>>2]|0}J[a+24>>2]=c}a=P(c,20)+a|0;return Wc(b-d|0,J[a+44>>2])+J[a+40>>2]|0}function QM(a,b){var c=0,d=0,e=0;c=J[b+4>>2];if(c){if(J[b>>2])while(1){e= +d<<4;c=J[(e+c|0)+8>>2];if(c)kc[J[a+8>>2]](a,c);c=e+J[b+4>>2]|0;J[c+8>>2]=0;c=J[c+12>>2];if(c)kc[J[a+8>>2]](a,c);c=J[b+4>>2];J[(e+c|0)+12>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}if(c)kc[J[a+8>>2]](a,c);J[b+4>>2]=0}c=J[b+16>>2];if(c){if(J[b+12>>2]){d=0;while(1){e=d<<2;c=J[e+c>>2];if(c)kc[J[a+8>>2]](a,c);c=J[b+16>>2];J[e+c>>2]=0;d=d+1|0;if(d>>>0>2])continue;break}}if(c)kc[J[a+8>>2]](a,c);J[b+16>>2]=0}}function Lka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;while(1){a:{if((c| +0)<=(g|0))break a;d=J[a+12>>2];f=J[a+16>>2];b:{if(d>>>0>>0){J[e+12>>2]=2147483647;J[e+8>>2]=f-d;J[e+4>>2]=c-g;d=fc-16|0;fc=d;fc=d+16|0;d=fc-16|0;fc=d;fc=d+16|0;d=e+4|0;f=e+8|0;d=J[d>>2]>2]?d:f;f=e+12|0;d=J[(J[d>>2]>2]?d:f)>>2];hk(b,J[a+12>>2],d);J[a+12>>2]=J[a+12>>2]+d;break b}d=kc[J[J[a>>2]+40>>2]](a)|0;if((d|0)==-1)break a;H[b|0]=d;d=1}b=b+d|0;g=d+g|0;continue}break}fc=e+16|0;return g|0}function Fx(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=351920;J[699344]=0;$(2843,a|0);b=J[699344];J[699344]= +0;a:{if((b|0)==1)break a;b=J[a+40>>2];if(b){J[699344]=0;_(2844,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}b:{if(!J[a+32>>2])break b;c=J[a+28>>2];d=J[c>>2];b=J[J[a+24>>2]+4>>2];J[d+4>>2]=b;J[b>>2]=d;J[a+32>>2]=0;d=a+24|0;if((d|0)==(c|0))break b;while(1){b=J[c+4>>2];if(H[c+19|0]<0)uc(J[c+8>>2]);uc(c);c=b;if((d|0)!=(b|0))continue;break}}Gx(a+8|0,J[a+12>>2]);return a|0}ea(0)|0;Bc();B()}function C7a(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;var h=0,i=0;b=J[a+452>>2];c=J[b+24>>2]; +a:{if(c){d=J[b+12>>2];break a}d=kc[J[J[a+4>>2]+28>>2]](a,J[b+8>>2],J[b+20>>2],J[b+16>>2],0)|0;J[b+12>>2]=d;c=J[b+24>>2]}h=J[b+16>>2]-c|0;i=J[f>>2];g=g-i|0;g=g>>>0>h>>>0?h:g;h=J[a+116>>2]-J[b+20>>2]|0;g=g>>>0>>0?g:h;kc[J[J[a+480>>2]+4>>2]](a,(c<<2)+d|0,(i<<2)+e|0,g);J[f>>2]=g+J[f>>2];a=g+J[b+24>>2]|0;J[b+24>>2]=a;c=a;a=J[b+16>>2];if(c>>>0>=a>>>0){J[b+24>>2]=0;J[b+20>>2]=a+J[b+20>>2]}}function gja(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=fc-16|0;fc=e;a:{b:{c:{if((a|0)!=(b|0))d:{e:{f= +K[a|0];if((f|0)!=45)break e;a=a+1|0;if((b|0)!=(a|0))break e;break d}h=J[698583];J[698583]=0;a=TF(a,e+12|0,d,gh());d=jc;g=J[698583];f:{if(g){if(J[e+12>>2]!=(b|0))break f;if((g|0)==68)break c;break b}J[698583]=h;if(J[e+12>>2]==(b|0))break b}}J[c>>2]=4;a=0;b=0;break a}J[c>>2]=4;a=-1;b=-1;break a}b=a;c=(f|0)==45;a=c?0-b|0:b;b=c?0-(d+((b|0)!=0)|0)|0:d}fc=e+16|0;jc=b;return a|0}function DT(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[b>>2];J[a+72>>2]=e;c=J[a+60>>2];b=J[a+56>>2];a:{if((c|0)==(b|0))break a;c= +c-b>>3;f=c>>>0<=1?1:c;g=f&3;a=0;if(c>>>0>=4){i=f&-4;f=0;while(1){c=a<<3;d=J[c+b>>2];if(d)J[d+84>>2]=e;d=J[b+(c|8)>>2];if(d)J[d+84>>2]=e;d=J[b+(c|16)>>2];if(d)J[d+84>>2]=e;c=J[b+(c|24)>>2];if(c)J[c+84>>2]=e;a=a+4|0;f=f+4|0;if((i|0)!=(f|0))continue;break}}if(!g)break a;while(1){c=J[b+(a<<3)>>2];if(c)J[c+84>>2]=e;a=a+1|0;h=h+1|0;if((h|0)!=(g|0))continue;break}}}function Ct(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=fc-32|0;fc=b;d=1;e=b+7|0;a:{b:{while(1){c=kc[J[J[a>>2]+8>>2]](a,e,d)|0;if((c|0)<0){a=Qc(b+8|0, +um(J[698583]),2387108,413,2396533,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}if(c){e=c+e|0;f=c+f|0;d=d-c|0;if(d)continue}break}if((f|0)!=1){a=Qc(b+8|0,J[685886],2387108,555,2396780,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b;break a}fc=b+32|0;return K[b+7|0]}B()}b=Z()|0;Kc(a);ba(b|0);B()}function bNa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+68>>2];a:{if((f|0)>=J[a+20>>2]){c=-1;if(J[a+40>>2])break a;if(!$I(a))break a;f=J[a+68>> +2]}h=J[a+60>>2];d=J[a+72>>2];b=J[h+(d<<2)>>2]-f|0;b:{if((b|0)<=8){i=J[a+20>>2];c=8;while(1){g=(c|0)>(b|0)?b:c;e=(d&1?0:255>>>8-g|0)|e<>2]>=(i|0)){e=e<>2]=d;b=J[(d<<2)+h>>2]-J[b>>2]|0}if((c|0)>0)continue;break}break b}e=d&1?0:255}J[a+68>>2]=f+8;c=J[a+36>>2]^e}return c|0}function _X(a,b,c){var d=0,e=0;d=fc-16|0;fc=d;e=J[a+200>>2];if(e&1){a:{if(e&4){fd(a,66750);Vd(a,c);break a}if(!(!b|!(K[b+8|0]&128))){fd(a,66774);Vd(a,c);break a}if((c| +0)!=9){fd(a,66795);Vd(a,c);break a}c=d+7|0;Dg(a,c,9);Ae(a,c,9);if(Vd(a,0))break a;c=a;a=K[d+7|0]|K[d+8|0]<<8|(K[d+9|0]<<16|K[d+10|0]<<24);e=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);a=K[d+11|0]|K[d+12|0]<<8|(K[d+13|0]<<16|K[d+14|0]<<24);fI(c,b,e,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24),K[d+15|0])}fc=d+16|0;return}Ld(a,66725);B()}function B0(a){a=a|0;var b=0,c=0,d=0;c=J[a+376>>2];if(c){d=c;b=J[a+380>>2];if((c|0)!=(b|0)){while(1){if(H[b-1|0]<0)uc(J[b-12>>2]);d=b-24|0;if(H[b-13|0]<0)uc(J[d>>2]);b=d;if((c| +0)!=(b|0))continue;break}d=J[a+376>>2]}J[a+380>>2]=c;uc(d)}b=J[a+364>>2];if(b){J[a+368>>2]=b;uc(b)}c=J[a+352>>2];if(c){b=c;d=J[a+356>>2];if((b|0)!=(d|0)){while(1){b=d-12|0;if(H[d-1|0]<0)uc(J[b>>2]);d=b;if((b|0)!=(c|0))continue;break}b=J[a+352>>2]}J[a+356>>2]=c;uc(b)}if(H[a+351|0]<0)uc(J[a+340>>2]);return Tm(a)|0}function Al(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;a:{e=J[a+4>>2];if(!e){e=b;break a}b:{if(M[a+8>>2]<=b>>>0)break b;e=J[e+(b<<2)>>2];if(e)break a;g=J[a+16>>2];if((g|0)<=0)break b; +h=J[a+12>>2];a=0;while(1){e=h+P(a,40)|0;if(J[e>>2]==(b|0)){if((d|0)<=0)break b;a=e;if(J[a+36>>2]<=0)break b;while(1){b=f<<2;J[b+c>>2]=J[(a+b|0)+4>>2];f=f+1|0;if((f|0)>=(d|0))break b;if(J[a+36>>2]>(f|0))continue;break}break b}a=a+1|0;if((g|0)!=(a|0))continue;break}}return f|0}J[c>>2]=e;return 1}function yoa(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;var h=0,i=0,j=0,k=0,l=0,m=0;a=J[a+12>>2];h=O[b>>3];i=O[d>>3];j=O[e>>3];k=O[f>>3];l=O[g>>3];g=fc-48|0;fc=g;m=O[c>>3];O[g+32>>3]=m;O[g+40>> +3]=h;O[g+24>>3]=i;O[g+16>>3]=j;O[g+8>>3]=k;O[g>>3]=l;a:{if(J[a+2696>>2]==512){f=a+1976|0;e=g+40|0;d=g+32|0;ce(J[f+56>>2],e,d);c=g+24|0;b=g+16|0;ce(J[f+56>>2],c,b);a=g+8|0;ce(J[f+56>>2],a,g);NU(f+88|0,e,d,c,b,a,g);break a}a=a+2776|0;kc[J[J[a>>2]+8>>2]](a,h,m,i,j,k,l)|0}fc=g+48|0;return 0}function mO(a,b,c,d,e,f){var g=0,h=0,i=0;g=lO(a,b,c,d,f);f=J[J[f>>2]+12>>2];h=J[e>>2];i=J[d>>2];if(M[J[f+(h<<2)>>2]+4>>2]>2]+4>>2]){J[d>>2]=h;J[e>>2]=i;e=J[d>>2];h=J[c>>2];if(M[J[f+(e<<2)>>2]+4>>2]>= +M[J[f+(h<<2)>>2]+4>>2])return g+1|0;J[c>>2]=e;J[d>>2]=h;d=J[c>>2];e=J[b>>2];if(M[J[f+(d<<2)>>2]+4>>2]>=M[J[f+(e<<2)>>2]+4>>2])return g+2|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(M[J[f+(c<<2)>>2]+4>>2]>=M[J[f+(d<<2)>>2]+4>>2])return g+3|0;J[a>>2]=c;J[b>>2]=d;g=g+4|0}return g}function _ya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2397928;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[699344]=0;ia(5597,a|0,b|0,d|0,1);a=J[699344];J[699344]= +0;if((a|0)!=1)a:{a=J[d+8>>2];b:{if(!a)break b;while(1){e=J[a+8>>2];f=J[J[e>>2]+24>>2];J[699344]=0;e=ga(f|0,e|0,b|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break b;a=J[a>>2];if(a)continue;break}}id(d);fc=d+16|0;return e|0}a=Z()|0;id(d);ba(a|0);B()}function Zya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2397928;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[699344]=0;ia(5597,a|0,b|0,d|0,1);a=J[699344];J[699344]=0;if((a|0)!= +1)a:{a=J[d+8>>2];b:{if(!a)break b;while(1){e=J[a+8>>2];f=J[J[e>>2]+28>>2];J[699344]=0;e=ga(f|0,e|0,b|0,c|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;if(e)break b;a=J[a>>2];if(a)continue;break}}id(d);fc=d+16|0;return e|0}a=Z()|0;id(d);ba(a|0);B()}function qA(a){var b=0,c=0,d=0;if((K[a|0]-127&255)>>>0<161)return-1;if((K[a+1|0]-127&255)>>>0<161)return-1;if((K[a+2|0]-127&255)>>>0<161)return-1;c=K[a+3|0];if((c-127&255)>>>0<161)return-1;d=1;b=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);a:{if((b| +0)==1297239878|(b|0)==1414744396|((b|0)==1347375696|(b|0)==542392643))break a;b=c-49|0;if(!(dd(a,2388643,3)|(b&255)>>>0>=9))return-1;if(!dd(a,2389263,3)){d=-1;if((b&255)>>>0<9)break a}d=0-(!dd(a,2389934,3)&(c-49&255)>>>0<9)|0}return d}function He(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;a:{if(!a)break a;while(1){b=J[a+40>>2];if((b|0)<2)break a;b:{c:{d:{if(!J[693384]){c=b-1|0;J[a+40>>2]=c;d=J[a+48>>2];break d}J[e>>2]=b;d=0;kc[J[663297]](J[693366],36125,e);b=J[a+40>>2];if((b|0)<=0)break b;c=b- +1|0;J[a+40>>2]=c;d=J[a+48>>2];g=0;f=0;if((b|0)==1)break c}g=J[((b<<2)+d|0)-8>>2];f=c}b=f;J[a+36>>2]=g;c=(b<<2)+d|0;d=J[c>>2];J[c>>2]=0}th(d);c=J[a+36>>2];if(K[J[c+16>>2]])break a;if((Nd(c)|0)<=0)continue;break}}fc=e+16|0}function oU(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;h=fc-16|0;fc=h;e=J[b+4>>2];d=L[b+2>>1];if(d>>>0<=13)d=J[(d<<2)+91548>>2];else d=0;d=bh(a,e,d,88164);if(d){a:{if(!ci(a,b,d))break a;i=J[b+4>>2];if(!i)break a;while(1){e=d+(f<<3)|0;g=J[e>>2];e=J[e+4>>2];if(!e){c=J[a>>2];f=J[a+628>>2];a= +J[Sf(a,L[b>>1])+16>>2];J[h+4>>2]=g;J[h>>2]=a;Uc(f,c,88361,h);g=0;break a}N[(f<<2)+c>>2]=L[b+2>>1]==5?Q(Q(g>>>0)/Q(e>>>0)):Q(Q(g|0)/Q(e|0));g=1;f=f+1|0;if((i|0)!=(f|0))continue;break}}uc(d)}fc=h+16|0;return g}function SH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{if((c|0)<=0)break b;c=c-1|0;if(!d)while(1){d=c;c=c-1|0;a=_W(a,b)+28|0;b=b+28|0;if(d)continue;break b}while(1){d=c;e=_W(a,b);a=J[b+24>>2];J[b+24>>2]=0;c:{if(!a)break c;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;f=J[699344];J[699344]=0; +if((f|0)==1)break a;if(c)break c;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}wc(b+16|0);c=d-1|0;b=b+28|0;a=e+28|0;if((d|0)>0)continue;break}}return}ea(0)|0;Bc();B()}function S1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=fc-16|0;fc=e;d=J[b>>2];J[e+12>>2]=d;a:{while(1){f=J[e+12>>2];if(K[f|0]==47){c=1;J[e+12>>2]=f+1;if(!Pr(e+12|0,0,1))continue;break a}break}if(a){c=J[a+24>>2];if(c){kc[J[663199]](c);d=J[b>>2]}c=0;b:{if((d|0)==(f|0))break b;g=f-d|0;if(K[a+36|0]&2){if(!d|(g|0)<0)break b; +c=kc[J[663198]](g+1|0)|0;if(!c){c=0;Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);break b}h=xc(c,d,g)+g|0,i=0,H[h|0]=i;break b}c=Wo(d,g)}J[a+24>>2]=c}J[b>>2]=f;c=0}fc=e+16|0;return c}function Qca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+584>>2];e=L[c+64>>1];d=J[c+72>>2];f=J[c+76>>2];b=J[a+604>>2];if(b>>>0>M[c+140>>2]){J[a+608>>2]=b-J[a+596>>2];pf(a);b=J[a+596>>2]}g=J[c+120>>2];if((g|0)!=65535){d=g|d<>f;if((g|0)<16)b=b+1|0;else{f=g-16|0;H[b+1|0]=d>>f;b=b+2|0}J[c+120>>2]=65535}d= +d<>c;if((e|0)<16)b=b+1|0;else{c=e-16|0;H[b+1|0]=d>>c;b=b+2|0}if((c|0)>0){H[b|0]=d<<8-c;b=b+1|0}J[a+608>>2]=b-J[a+596>>2];return 1}function x8(a,b){var c=0,d=0,e=0,f=0;f=J[a+16>>2];a:{if(!f)break a;if(!J[a+12>>2]){c=f;break a}c=f;while(1){f=e<<2;c=J[f+c>>2];if(c)kc[J[b+8>>2]](b,c);c=J[a+16>>2];J[f+c>>2]=0;e=e+1|0;if(e>>>0>2])continue;break}}if(c)kc[J[b+8>>2]](b,c);J[a+16>>2]=0;c=J[a+4>>2];b:{if(!c)break b;if(!J[a>>2]){d=c;break b}e=0;d=c;while(1){c=e<<3;d=J[(c+ +d|0)+4>>2];if(d)kc[J[b+8>>2]](b,d);d=J[a+4>>2];J[(c+d|0)+4>>2]=0;e=e+1|0;if(e>>>0>2])continue;break}}if(d)kc[J[b+8>>2]](b,d);J[a+4>>2]=0}function qzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;b=J[a+636>>2]+J[a+616>>2]|0;while(1){d=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);e=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[c|0]=e;H[c+1|0]=e>>>8;H[c+2|0]=e>>>16;H[c+3|0]=e>>>24;H[c+4|0]=d; +H[c+5|0]=d>>>8;H[c+6|0]=d>>>16;H[c+7|0]=d>>>24;b=b+8|0;c=(J[a+584>>2]<<3)+c|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function osb(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;if(J[c>>2]!=1749635924){Jc(a,2050,0,0);return 2050}e=J[c+32>>2];J[b+32>>2]=e;if(!e)return 0;a=0;if(e>>>0>=4){j=e&-4;while(1){f=b+36|0;d=a<<1;h=c+36|0;I[f+d>>1]=L[d+h>>1];g=d|2;I[g+f>>1]=L[h+g>>1];g=d|4;I[g+f>>1]=L[h+g>>1];d=d|6;I[d+f>>1]=L[d+h>>1];a=a+4|0;i=i+4|0;if((j|0)!=(i|0))continue;break}}d=e& +3;if(d){e=0;while(1){f=a<<1;I[(f+b|0)+36>>1]=L[(c+f|0)+36>>1];a=a+1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}return 0}function _V(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;J[a>>2]=2418360;J[699344]=0;d=a+8|0;b=d;e=J[b+24>>2];J[c+12>>2]=b;J[c+8>>2]=e;b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;b=J[c+8>>2];b:{if(!b)break b;while(1){if(J[c+12>>2]!=(d|0)){J[699344]=0;da(5243,c+8|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}e=J[b+20>>2];if(e){uc(id(e));b=J[c+8>>2];if(!b)break b}b=J[b>> +2];J[c+8>>2]=b;if(b)continue;break}}Md(a- -64|0);Md(a+36|0);Md(d);fc=c+16|0;return a|0}ea(0)|0;Bc();B()}function KR(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;f=c-b>>2;if(f>>>0<=1073741807){a:{if(f>>>0<2){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d=a;break a}h=e+8|0;if(f>>>0>=2){g=f+4&-4;d=g-1|0;d=(d|0)==2?g:d}else d=1;to(h,a,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){J[d>>2]=J[b>> +2];d=d+4|0;b=b+4|0;continue}break}J[e+4>>2]=0;J[d>>2]=J[e+4>>2];fc=e+16|0;return}_d(a);B()}function Fnb(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;a:{d=J[b>>2];e=J[a+16>>2];g=L[e+2>>1];h=g+(L[e+6>>1]<<8)|0;if(d>>>0>=h>>>0)break a;a=L[e>>1];k=(g-a|0)+1|0;i=L[e+4>>1];j=a+(i<<8)|0;e=J[e+12>>2];while(1){c=d+1|0;c=c>>>0>j>>>0?c:j;d=c>>>8|0;c=c&255;b:{if(c>>>0>>0){c=a;break b}f=c>>>0>g>>>0;c=f?a:c;d=d+f|0}f=d&65535;d=(f<<8)+c|0;c=L[(e+(c-a<<1)|0)+(P(f-i|0,k)<<1)>>1];if((c|0)!=65535)break a; +if(d>>>0>>0)continue;break}J[b>>2]=d;return 65535}J[b>>2]=d;return c|0}function Br(a){var b=0;b=J[a+116>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+120>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+380>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+384>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+424>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+428>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+432>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+436>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+448>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1){b= +J[a+596>>2];if(b)uc(xJ(b));return a}ea(0)|0;Bc();B()}function qQa(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[a+8>>2]=c;J[a>>2]=2317484;J[a+4>>2]=b;h=a,i=Gd(c,4),J[h+12>>2]=i;b=J[a+8>>2];a:{if(!b)break a;c=0;if(b>>>0>=4){g=b&-4;while(1){d=c<<2;J[d+J[a+12>>2]>>2]=0;J[J[a+12>>2]+(d|4)>>2]=0;J[J[a+12>>2]+(d|8)>>2]=0;J[J[a+12>>2]+(d|12)>>2]=0;c=c+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}b=b&3;if(!b)break a;while(1){J[J[a+12>>2]+(c<<2)>>2]=0;c=c+1|0;f=f+1|0;if((b|0)!=(f|0))continue;break}}J[a+ +16>>2]=0;J[a+20>>2]=0;return a|0}function apb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+96>>2];c=J[a+712>>2];a:{if(K[c+24|0]==2){c=al(wh(J[d+4>>2],239709),240700,0);if(!c)break a;c=J[c+4>>2];if(!c)break a;return kc[c|0](a,b)|0}d=al(d,241605,1);if(!d|!J[c+20>>2])break a;while(1){a=L[J[c+1188>>2]+(e<<1)>>1];b:{c:{if(a>>>0>=391){a=a-391|0;if(a>>>0>=M[c+1356>>2])break b;a=J[J[c+1360>>2]+(a<<2)>>2];break c}a=kc[J[d+20>>2]](a)|0}if(!a)break b;if(!Ic(b,a))break a}e=e+1|0;if(e>>>0>2])continue;break}e= +0}return e|0}function DL(a,b,c,d,e,f,g){var h=0,i=0,j=0;h=J[c>>2];a:{if(h>>>0>=d>>>0)break a;b:{c:{if((b|0)<=65535){I[h>>1]=b;i=1;j=0;break c}I[h>>1]=(b>>>10|0)-10304;b=b&1023|-9216;i=2;if(h+2>>>0>=d>>>0){i=1;b=b&57343;break b}I[h+2>>1]=b;j=1}b=-1}h=(i<<1)+h|0;if(!e)break a;d=J[e>>2];if(!d)break a;J[d>>2]=f;if(j){J[d+4>>2]=f;d=d+8|0}else d=d+4|0;J[e>>2]=d}J[c>>2]=h;if((b|0)>=0){if(a){if(b>>>0<=65535)c=1;else{I[a+118>>1]=b&1023|56320;b=(b>>>10|0)-10304|0;c=2}H[a+65|0]=c;I[a+116>>1]=b}J[g>>2]=15}}function td(a, +b){var c=0,d=0,e=0;c=-1;a:{b:{if(!(!(H[a|0]&1)|K[a+8|0]&7)){d=J[a+4>>2];if(d&32)break b;e=J[a+20>>2];c=J[a+16>>2];if((e|0)<(J[a+24>>2]-c|0))break a;J[a+24>>2]=c;J[a+4>>2]=d|16;c=kc[J[J[a+52>>2]>>2]](J[a+56>>2],c,e)|0;J[a+28>>2]=c;if((c|0)<=0){J[a+28>>2]=0;J[a+8>>2]=J[a+8>>2]|(c?2:1);return-1}c:{if(b){J[a+28>>2]=c-1;J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;break c}c=J[a+24>>2]}c=K[c|0]}return c}fa(202198,198694,771,206401);B()}fa(200210,198694,773,206401);B()}function _R(a,b,c){var d=0, +e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;f=c-b|0;if(f>>>0<=2147483631){a:{if(f>>>0<11){H[a+11|0]=K[a+11|0]&128|f;H[a+11|0]=K[a+11|0]&127;d=a;break a}h=e+8|0;if(f>>>0>=11){g=f+16&-16;d=g-1|0;d=(d|0)==11?g:d}else d=10;Vs(h,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=f}while(1){if((b|0)!=(c|0)){H[d|0]=K[b|0];d=d+1|0;b=b+1|0;continue}break}H[e+7|0]=0;H[d|0]=K[e+7|0];fc=e+16|0;return}_d(a);B()}function Qk(a,b){var c=0,d=0,e=0,f=0,g= +0,h=0,i=0;d=J[b>>2];a:{if((d|0)<=0)break a;f=d&3;c=J[b+4>>2];if(d>>>0>=4){d=d&-4;while(1){e=K[c+3|0]+P(K[c+2|0]+P(K[c+1|0]+P(K[c|0]+P(e,17)|0,17)|0,17)|0,17)|0;c=c+4|0;g=g+4|0;if((d|0)!=(g|0))continue;break}}if(!f)break a;while(1){e=K[c|0]+P(e,17)|0;c=c+1|0;h=h+1|0;if((h|0)!=(f|0))continue;break}}c=J[J[a+12>>2]+((e>>>0)%M[a+4>>2]<<2)>>2];b:{if(!c)break b;while(1){if(Eg(J[c>>2],b)){c=J[c+8>>2];if(c)continue;break b}break}i=J[c+4>>2]}return i}function Q$(a){var b=0,c=0,d=0,e=0;a:{b=J[a+4>>2];if((b| +0)>0)while(1){c=J[J[a>>2]+(d<<2)>>2];b:{if(!c)break b;e=J[c+24>>2]-1|0;J[c+24>>2]=e;if(e)break b;b=J[c>>2];if(b)uc(Zc(b));b=J[c+4>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[c+12>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;uc(c);b=J[a+4>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}c=J[a>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;return a}ea(0)|0;Bc();B()}function NJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e; +a:{b:{if(b){if(!a)break b;if(!d)break a;c:{if(!c){Nc(d,1,2368386,0);a=0;break c}wd(b,e+12|0,1);f=c-1|0;a=1;if(!f)break c;a=0;c=0;while(1){b=b+1|0;wd(b,e+8|0,1);g=J[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 c;Nc(d,1,2368386,0);a=0}fc=e+16|0;return a|0}fa(2365733,2358254,3765,2368369);B()}fa(2358373,2358254,3766,2368369);B()}fa(2358486,2358254,3767,2368369);B()}function gIa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;kc[J[J[a>>2]+48>>2]](c+4|0,a,b,1);b= +J[c+4>>2];a:{if((b|0)==J[c+8>>2]){d=b;break a}b:{while(1){c:{d=J[J[a>>2]+36>>2];J[699344]=0;da(d|0,a|0,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break c;b=b+12|0;if((b|0)!=J[c+8>>2])continue;break b}break}a=Z()|0;Ag(c+4|0);ba(a|0);B()}d=J[c+4>>2]}if(d){a=d;if((b|0)!=(a|0)){while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((d|0)!=(b|0))continue;break}a=J[c+4>>2]}J[c+8>>2]=d;uc(a)}fc=c+16|0}function eF(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+12>>2];if(b){d=J[a+8>>2];if((d|0)>0){while(1){c=J[b+4>>2];if(c){d= +0;e=J[b>>2];if((e|0)>0){while(1){f=J[c+4>>2];if(f){uc(f);e=J[b>>2]}c=c+20|0;d=d+1|0;if((e|0)>(d|0))continue;break}c=J[b+4>>2]}uc(c);d=J[a+8>>2]}b=b+16|0;g=g+1|0;if((g|0)<(d|0))continue;break}b=J[a+12>>2]}uc(b)}b=J[a+76>>2];if(b){c=J[b+8>>2];if(c){if(J[b>>2]>0){c=0;while(1){uc(J[J[b+8>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}c=J[b+8>>2]}uc(c)}uc(b)}uc(a)}function dJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;f=J[a+24>>2];if((f| +0)!=255){J[e>>2]=f;Nc(d,2,2362766,e)}c:{d:{if(J[a+20>>2]==(c|0)){if(c)break d;c=1;break c}c=0;Nc(d,1,2362909,0);break c}d=0;while(1){c=1;wd(b,(J[a+72>>2]+P(d,12)|0)+8|0,1);b=b+1|0;d=d+1|0;if(d>>>0>2])continue;break}}fc=e+16|0;return c|0}fa(2362700,2354795,736,2371540);B()}fa(2354499,2354795,737,2371540);B()}fa(2355439,2354795,738,2371540);B()}function Kta(a,b){a=a|0;b=b|0;a:{b:switch(b|0){case 1:b=vc(56);J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=1065353216;J[b+4>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0; +J[b+36>>2]=10;J[b>>2]=2432604;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;break a;case 0:b=vc(40);J[b+12>>2]=0;J[b+16>>2]=0;J[b+8>>2]=1065353216;J[b+4>>2]=0;J[b+36>>2]=0;J[b>>2]=2432368;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;break a;default:break b}J[a>>2]=0;vd(a,0);return}J[a>>2]=0;vd(a,b)}function Ir(a){var b=0,c=0,d=0;a:{b:{c:{c=J[a+128>>2];switch(c|0){case 0:break a;case 1:break b;default:break c}}while(1){b=d;d=b+1|0;c=c>>1;if(c>>>0>1)continue;break}if(b>>> +0<14)break b;c=J[a+120>>2];b=J[c>>2];J[b+20>>2]=41;kc[J[b>>2]](c)}c=d<<4;b=J[a+124>>2];d:{if(J[a+108>>2]){b=J[((b<<2)+a|0)+92>>2]+(c<<2)|0;J[b>>2]=J[b>>2]+1;break d}b=J[((b<<2)+a|0)+60>>2];Gr(a,J[b+(c<<2)>>2],H[(b+c|0)+1024|0])}if(d)Gr(a,J[a+128>>2],d);J[a+128>>2]=0;o0(a,J[a+136>>2],J[a+132>>2]);J[a+132>>2]=0}}function CSa(a){a=a|0;var b=0,c=0,d=0;a:{b:{c:{d:{c=J[a+16>>2];if(c){b=vc(8);J[699344]=0;c=aa(3350,b|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;n0(c);b=J[c+4>>2];if(Je(b,812701))break d; +if(Je(b,813249))break d;b=Je(b,813556);uc(Zc(c));if(b)break c}if(J[a+32>>2]>=0){e:switch(J[a+20>>2]-7|0){case 0:case 1:case 2:case 3:case 4:break a;default:break e}return!J[a+152>>2]|0}return!J[a+152>>2]|0}uc(Zc(c))}return 0}a=Z()|0;uc(b);ba(a|0);B()}return!(J[a+152>>2]|J[a+224>>2])|0}function jma(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b>>2];d=J[J[a>>2]+32>>2];J[699344]=0;da(d|0,a|0,c|0);c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;c=J[a+60>>2];b:{if((c|0)!=J[a- -64>>2]){J[c>>2]=J[b>>2];d=J[b+4>>2];J[c+ +4>>2]=d;if(d)J[d+4>>2]=J[d+4>>2]+1;J[a+60>>2]=c+8;break b}J[699344]=0;da(6542,a+56|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}a=J[b+4>>2];c:{if(!a)break c;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break c;kc[J[J[a>>2]+8>>2]](a);Gc(a)}return}a=Z()|0;je(b);ba(a|0);B()}function ej(a,b){var c=0,d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;c=0;a:{if(!a)break a;b:{if((b|0)>=128){g=b>>>0<2048;c:{if(g){c=192;d=6;e=0;break c}if(b>>>0<65536){c=224;d=12;e=6;break c}if(b>>>0>=1114112)break b;c=240;d=18;e=12}H[a|0]=b>>>d|c;H[a+ +1|0]=b>>>e&63|128;c=(a+2|0)-a|0;if(g)break a;d=e-6|0;H[a+2|0]=b>>>d&63|128;c=(a+3|0)-a|0;if(d>>>0<6)break a;H[a+3|0]=b>>>e-12&63|128;c=(a+4|0)-a|0;break a}H[a|0]=b;c=1;break a}J[f>>2]=b;Hc(0,0,0,0,0,1,9,3,0,0,0,b,35057,f);c=0}fc=f+16|0;return c}function THa(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;J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a:{g=a+12|0;if((g|0)==(b|0))break a;if(H[b+11|0]>=0){h=J[b+4>>2];J[g>>2]=J[b>>2];J[g+4>>2]=h;J[g+8>>2]=J[b+8>> +2];break a}h=J[b+4>>2];b=J[b>>2];J[699344]=0;ga(1631,g|0,b|0,h|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;if(H[a+23|0]<0)uc(J[g>>2]);uZ(a);ba(b|0);B()}J[a+36>>2]=f;J[a+32>>2]=e;J[a+28>>2]=d;J[a+24>>2]=c;return a|0}function Qqb(a){a=a|0;var b=0,c=0;a:{if(a){b:{if(K[a+24|0])break b;b=J[a+16>>2];if(!b)break b;kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}b=J[a+8>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}b=J[a+4>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}b=J[a>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]= +0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a>>2]=0}b=J[a+12>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}a=J[693078];if(!(!a|!a))kc[J[J[a>>2]+12>>2]](a)|0;J[693078]=0;return}ea(0)|0;Bc();B()}function IBb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a=J[a+52>>2];c=kc[J[J[a>>2]+20>>2]](a,2)|0;kc[J[J[a>>2]+20>>2]](a,1)|0;b=kc[J[J[a>>2]+20>>2]](a,1)|0;d=b>>>4&3;b=b>>>6&1;c=(c-4|0)/((d+(b<<1)|0)+2|0)|0;a:{if((c|0)<=0)break a;b=b?4:2;if((c|0)!=1){f=c&-2;while(1){kc[J[J[a>>2]+20>>2]](a,d)|0;kc[J[J[a>>2]+ +20>>2]](a,b)|0;kc[J[J[a>>2]+20>>2]](a,d)|0;kc[J[J[a>>2]+20>>2]](a,b)|0;e=e+2|0;if((f|0)!=(e|0))continue;break}}if(!(c&1))break a;kc[J[J[a>>2]+20>>2]](a,d)|0;kc[J[J[a>>2]+20>>2]](a,b)|0}}function Ava(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;kc[J[J[a>>2]+28>>2]](d+12|0,a,0);a=J[d+12>>2];e=J[J[a>>2]+84>>2];J[699344]=0;b=ga(e|0,a|0,b|0,c|0)|0;a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e| +0)==1)break a;if(c)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+16|0;return b|0}a=Z()|0;zc(d+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Adb(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=348728;a:{c=J[a+8>>2];d=a+12|0;if((c|0)!=(d|0))while(1){e=J[c+28>>2];if(e){b=J[J[e>>2]+12>>2];J[699344]=0;_(b|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[c+28>>2]=0}b=J[c+4>>2];b:{if(b)while(1){c=b;b=J[c>>2];if(b)continue;break b}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue; +break}}if((c|0)!=(d|0))continue;break}b=a+8|0;Nu(b,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0;Nu(b,0);return a|0}ea(0)|0;Bc();B()}function u6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=J[a+736>>2];a:{if(!d){c=Qu(a,0);if(c)break a;d=J[a+736>>2]}c=6;if(L[a+14>>1]>>0)break a;b:{if(b){f=J[a+100>>2];g=J[d+12>>2];d=J[g+16>>2]+P(b,12)|0;c=kc[J[J[a+540>>2]+144>>2]](a,L[d-8>>1],e+12|0)|0;if(c)break a;c=J[a+24>>2];if(c)kc[J[f+8>>2]](f,c);J[a+24>>2]=J[e+12>>2];c=RM(a,J[g>>2],J[d-12>> +2]);if(c){c=(c|0)!=-1?c:0;break a}c=0;break b}c=RM(a,0,0)}I[a+6>>1]=b;J[a+8>>2]=J[a+8>>2]&-32769}fc=e+16|0;return c|0}function skb(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;J[c>>2]=-1;J[d>>2]=-1;f=L[a+340>>1];if(f){h=J[a+356>>2];a=0;while(1){e=P(a,20)+h|0;a:{if(L[e+6>>1]!=(b|0)|!L[e+8>>1])break a;b:{c:switch(L[e>>1]-1|0){case 2:if(L[e+2>>1]>1)break a;g=c;if(L[e+4>>1]==1033|J[c>>2]==-1)break b;break a;case 0:break c;default:break a}if(L[e+2>>1])break a;g=d;if(!L[e+4>>1])break b;if(J[d>> +2]!=-1)break a}J[g>>2]=a}a=a+1|0;if((f|0)!=(a|0))continue;break}}return(J[d>>2]&J[c>>2])>=0|0}function lja(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=fc-16|0;fc=e;a:{b:{c:{d:{if((a|0)!=(b|0))e:{f:{f=K[a|0];if((f|0)!=45)break f;a=a+1|0;if((b|0)!=(a|0))break f;break e}h=J[698583];J[698583]=0;a=TF(a,e+12|0,d,gh());d=jc;g=J[698583];g:{if(g){if(J[e+12>>2]!=(b|0))break g;if((g|0)==68)break c;break d}J[698583]=h;if(J[e+12>>2]==(b|0))break d}}J[c>>2]=4;a=0;break a}if(!d&a>>>0<=65535)break b}J[c>> +2]=4;a=65535;break a}a=(f|0)==45?0-a|0:a}fc=e+16|0;return a&65535}function RMa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if((b|0)<2)break a;f=J[a+4>>2];b=kc[J[J[f>>2]+60>>2]](f,b,c,d)|0;if(!b)break a;b:{if(!d)break b;d=J[a+4>>2];kc[J[J[d>>2]+20>>2]](d);J[a+3460>>2]=0;J[a+3464>>2]=0;J[a+720>>2]=0;J[a+188>>2]=0;J[a+204>>2]=0;J[a+196>>2]=0;J[a+200>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;d=YI(a,1);e=J[a+4>>2];kc[J[J[e>>2]+24>>2]](e);if(!(J[a+12>>2]?J[a+8>>2]|!d:1))break b;uc(Zc(b)); +return 0}od(od(b,c),831233);e=b}return e|0}function M9a(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;var h=0,i=0,j=0;h=fc-16|0;fc=h;d=J[a+472>>2];a:{if(J[d+36>>2]){ao(d+32|0,0,(J[f>>2]<<2)+e|0,0,1,J[d+40>>2]);J[d+36>>2]=0;a=1;break a}i=J[d+44>>2];j=e;e=J[f>>2];j=j+(e<<2)|0;J[h+8>>2]=J[j>>2];e=g-e|0;g=e>>>0>i>>>0?i:e;i=g>>>0<2;if(i){J[d+36>>2]=1;e=J[d+32>>2]}else e=J[j+4>>2];J[h+12>>2]=e;kc[J[d+12>>2]](a,b,J[c>>2],h+8|0);a=i?g:2}J[f>>2]=a+J[f>>2];J[d+44>>2]=J[d+44>>2]-a;if(!J[d+36>>2])J[c>> +2]=J[c>>2]+1;fc=h+16|0}function Hla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{d=J[a+4>>2];b:{if(!d){b=(b|0)<=1E3?1E3:b;J[a+8>>2]=b;c=Dc(b<<2);J[a+16>>2]=0;J[a+4>>2]=c;break b}c=J[a+8>>2];e=J[a+16>>2]+b|0;if(c>>>0>=e>>>0)break a;b=P(b,10);b=(b|0)<=1048576?1048576:b;while(1){c=c>>>0>10485760?b+c|0:c<<1;if(e>>>0>c>>>0)continue;break}J[a+8>>2]=c;b=fe(d,c<<2);if(b){J[a+4>>2]=b;c=b+(J[a+16>>2]<<2)|0;break b}b=Dc(J[a+8>>2]<<2);c=J[a+4>>2];b=xc(b,c,J[a+16>>2]<<2);uc(c);J[a+4>>2]=b;c=b+(J[a+16>>2]<<2)|0}J[a+12>> +2]=c}}function Ch(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=847180;c=J[a+160>>2];d=J[a+164>>2];if((c|0)!=(d|0))while(1){f=e<<2;b=J[f+c>>2];if(b){if(H[b+83|0]<0)uc(J[b+72>>2]);if(H[b+71|0]<0)uc(J[b+60>>2]);if(H[b+59|0]<0)uc(J[b+48>>2]);uc(b);J[J[a+160>>2]+f>>2]=0;d=J[a+164>>2];c=J[a+160>>2]}e=e+1|0;if(e>>>0>2>>>0)continue;break}if(H[a+227|0]<0)uc(J[a+216>>2]);if(H[a+215|0]<0)uc(J[a+204>>2]);if(H[a+203|0]<0)uc(J[a+192>>2]);b=J[a+160>>2];if(b){J[a+164>>2]=b;uc(b)}return eu(a)|0}function pja(a,b, +c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;a:{b:{c:{if((a|0)!=(b|0)){g=J[698583];J[698583]=0;d=EQ(a,e+12|0,d,gh());a=jc;f=J[698583];d:{if(f){if(J[e+12>>2]!=(b|0))break d;if((f|0)==68)break b;break c}J[698583]=g;if(J[e+12>>2]==(b|0))break c}}J[c>>2]=4;b=0;break a}if((a|0)<0&d>>>0<2147483648|(a|0)<-1|(d>>>0>2147483647&(a|0)>=0|(a|0)>0))break b;b=d;break a}J[c>>2]=4;b=2147483647;if(!!d&(a|0)>=0|(a|0)>0)break a;b=-2147483648}fc=e+16|0;return b|0}function ls(a,b){var c=0,d=0,e=0,f=0,g= +0,h=0;e=fc-16|0;fc=e;a:{if(!a){f=35;break a}f=38;if(!b)break a;d=J[a+40>>2];if(!d)break a;f=6;g=J[a+36>>2];if((g|0)<=0)break a;g=(g<<2)+d|0;while(1){b:{if(J[d>>2]!=(b|0))break b;c=J[b>>2];c:{if(!c)break c;c=J[c+96>>2];h=J[J[c>>2]+32>>2];if(!h)break c;c=kc[h|0](c,240416)|0;if(!c)break c;if(kc[J[c>>2]](b,e+8|0)|0)break c;if(J[e+12>>2]==14)break b}J[a+92>>2]=J[d>>2];f=0;break a}d=d+4|0;if(g>>>0>d>>>0)continue;break}}fc=e+16|0;return f}function gE(a,b,c){var d=0,e=0;if(!a)return;if(!c)return;a:{if(M[a+ +16>>2]<=b>>>0)break a;d=J[J[J[a+96>>2]+12>>2]+84>>2];if(d){d=kc[d|0](a,b,1,2051,c)|0;if(!d|(d&255)!=7)break a}b:{if(!a|!c)break b;d=J[a+16>>2];e=b+1|0;c:{if(d>>>0>>0|!e|b>>>0>=d>>>0)break c;d=J[J[J[a+96>>2]+12>>2]+84>>2];if(d){d=kc[d|0](a,b,1,2051,c)|0;if(!d)break b;if((d&255)!=7)break c}d=0;while(1){if(lp(a,b+d|0,2307))break c;J[(d<<2)+c>>2]=J[J[a+84>>2]+64>>2];d=d+1|0;if((d|0)!=1)continue;break}}}}}function d5a(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;g=fc-16|0;fc=g;d= +J[c>>2];h=J[d+16>>2];if((h|0)!=J[d+24>>2]){d=(J[d+8>>2]+(h<<4)|0)-16|0;O[g+8>>3]=O[d>>3];O[g>>3]=O[d+8>>3];d=1}else d=0;if(d){e=+J[a>>2]*.015625;e=e+e;i=(e+O[g+8>>3])*.3333333333333333;f=+J[a+4>>2]*.015625;f=f+f;j=(f+O[g>>3])*.3333333333333333;k=e;e=+J[b>>2]*.015625;l=f;f=+J[b+4>>2]*.015625;a4(J[c>>2],i,j,(k+e)*.3333333333333333,(l+f)*.3333333333333333,e,f);J[c+4>>2]=1}fc=g+16|0;return 0}function _ra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;e=J[b>>2]}J[699344]= +0;J[c+12>>2]=e;a=ga(5706,a|0,c+12|0,10)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[c+12>>2]=0;b:{if(!e)break b;J[699344]=0;b=J[e+4>>2]-1|0;J[e+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break b;J[699344]=0;$(5147,e|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a>>2]=2436636;fc=c+16|0;return a|0}a=Z()|0;zc(c+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Zi(a){var b=0,c=0,d=0;if(!a){a=J[686006];if(a)b=Zi(a);a=J[685932];if(a)b=Zi(a)|b;a=J[698609];if(a)while(1){if(J[a+20>>2]!=J[a+28>> +2])b=Zi(a)|b;a=J[a+56>>2];if(a)continue;break}return b}d=J[a+76>>2]<0;a:{b:{if(J[a+20>>2]==J[a+28>>2])break b;kc[J[a+36>>2]](a,0,0)|0;if(J[a+20>>2])break b;b=-1;break a}b=J[a+8>>2];c=J[a+4>>2];if((b|0)!=(c|0)){b=c-b|0;kc[J[a+40>>2]](a,b,b>>31,1)|0}b=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;if(d)break a}return b}function Gi(a,b,c,d,e,f){var g=0,h=0,i=0;a:{if(f&64){e=f+-64|0;f=b;d=e&31;if((e&63)>>>0>=32){e=f<>>32-d|c<>>0>=32){i=d<>>32-g|e<>>0>=32){e=0;d=c>>>d|0}else{e=c>>>d|0;d=((1<>>d}d=h|d;e=e|i;h=b;g=f&31;if((f&63)>>>0>=32){i=b<>>32-g|c<>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e}function Yv(a,b){b=(J[a+36>>2]<<1)+b|0;J[a+36>>2]=b&16777215;a:{b:{c:{d:{b=b>>>24|0;switch(b|0){case 0:break b;case 1:break d;default:break c}}tr(a,1);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)while(1){tr(a, +0);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)continue;break}J[a+40>>2]=0;return}if((b|0)==255)break a;fa(2388078,2394966,1047,2438498);B()}J[a+40>>2]=J[a+40>>2]+1;return}tr(a,0);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)while(1){tr(a,1);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)continue;break}J[a+40>>2]=0}function xJ(a){var b=0,c=0,d=0;a:{b=J[a+28>>2];if((b|0)>0)while(1){c=J[J[a+24>>2]+(d<<2)>>2];if(c){b=J[c>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[c+4>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)==1)break a;b=J[c+8>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;uc(c);b=J[a+28>>2]}d=d+1|0;if((d|0)<(b|0))continue;break}c=J[a+24>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;return a}ea(0)|0;Bc();B()}function xla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-32|0;fc=e;J[e+16>>2]=b;d=J[a+48>>2];J[e+20>>2]=c-((d|0)!=0);g=J[a+44>>2];J[e+28>>2]=d;J[e+24>>2]=g;a:{b:{d=_a(J[a+60>>2],e+16|0,2,e+12|0)|0;if(d){J[698583]=d;d=-1}else d=0;if(d)b=32;else{d= +J[e+12>>2];if((d|0)>0)break b;b=d?32:16}J[a>>2]=b|J[a>>2];break a}f=d;g=J[e+20>>2];if(g>>>0>=d>>>0)break a;f=J[a+44>>2];J[a+4>>2]=f;J[a+8>>2]=f+(d-g|0);if(J[a+48>>2]){J[a+4>>2]=f+1;H[(b+c|0)-1|0]=K[f|0]}f=c}fc=e+32|0;return f|0}function u5a(a,b){a=a|0;b=b|0;var c=0,d=0;H[b|0]=0;H[b+1|0]=0;H[b+2|0]=0;H[b+3|0]=0;H[b+4|0]=0;H[b+5|0]=0;H[b+6|0]=0;H[b+7|0]=0;H[b+8|0]=0;H[b+9|0]=0;a=J[a+188>>2];a:{if(!a)break a;c=ho(a,2);if(!c)break a;a=K[c+36|0]|K[c+37|0]<<8|(K[c+38|0]<<16|K[c+39|0]<<24);d=K[c+32|0]|K[c+ +33|0]<<8|(K[c+34|0]<<16|K[c+35|0]<<24);H[b|0]=d;H[b+1|0]=d>>>8;H[b+2|0]=d>>>16;H[b+3|0]=d>>>24;H[b+4|0]=a;H[b+5|0]=a>>>8;H[b+6|0]=a>>>16;H[b+7|0]=a>>>24;a=K[c+40|0]|K[c+41|0]<<8;H[b+8|0]=a;H[b+9|0]=a>>>8}}function lub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if(c>>>0<=2){Jc(a,1028,0,0);return 1028}b:{if(!K[a+112|0])break b;f=kc[J[b+4>>2]](a,b,e)|0;if(f)break b;b=K[d|0]|K[d+1|0]<<8;f=J[e>>2];J[f+36>>2]=c-2;I[f+ +32>>1]=b<<8|b>>>8;b=kc[J[a+152>>2]](c-1|0)|0;J[J[e>>2]+40>>2]=b;b=J[e>>2];c=J[b+40>>2];if(!c){Jc(a,1,0,0);return 1}xc(c,d+2|0,J[b+36>>2]);f=0}return f|0}Jc(a,1029,0,0);return 1029}function Xh(a,b,c){var d=0,e=0,f=0;a:{if(!a)break a;d=I[a+2>>1];if((d|0)<=0)break a;a=J[a+4>>2];if(d>>>0>=4){f=d&-4;while(1){J[a>>2]=J[a>>2]+b;J[a+4>>2]=J[a+4>>2]+c;J[a+8>>2]=J[a+8>>2]+b;J[a+16>>2]=J[a+16>>2]+b;J[a+24>>2]=J[a+24>>2]+b;J[a+12>>2]=J[a+12>>2]+c;J[a+20>>2]=J[a+20>>2]+c;J[a+28>>2]=J[a+28>>2]+c;a=a+32|0;e=e+4| +0;if((f|0)!=(e|0))continue;break}}d=d&3;if(!d)break a;e=0;while(1){J[a>>2]=J[a>>2]+b;J[a+4>>2]=J[a+4>>2]+c;a=a+8|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}}function dkb(a,b){a=a|0;b=b|0;var c=0,d=0;c=kc[J[a+516>>2]](a,1835104368,b,0)|0;a:{if(c)break a;d=a+260|0;c=Te(b,326064,d);if(c)break a;I[a+290>>1]=0;I[a+282>>1]=0;I[a+284>>1]=0;I[a+286>>1]=0;I[a+288>>1]=0;I[a+274>>1]=0;I[a+276>>1]=0;I[a+278>>1]=0;I[a+280>>1]=0;I[a+266>>1]=0;I[a+268>>1]=0;I[a+270>>1]=0;I[a+272>>1]=0;b:{if(J[a+260>>2]<65536)break b; +c=Te(b,326080,d);if(c)break a;if(L[a+280>>1]<=63)I[a+280>>1]=64;if(L[a+276>>1]<65532)break b;I[a+276>>1]=65531}c=0}return c|0}function Qmb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{c=J[a+28>>2];if(K[c+44|0])break b;d=e7(c,J[b>>2],J[b+4>>2]);if(!d)break b;a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=d;return}d=J[b+12>>2];f=J[b+8>>2];c:{b=J[c+12>>2];if((I[b+22>>1]+I[b+58>>1]|0)+1>>>0>M[b+4>>2]){b=Hh(b,1,0);if(b)break c}a=J[c+20>>2];if(K[c+45|0]){b=J[a+8>>2];c=I[a+2>>1];e=J[a+4>>2]+(c<<3)|0;J[e+4>>2]=d>> +10;J[e>>2]=f>>10;H[b+c|0]=1}I[a+2>>1]=L[a+2>>1]+1;return}a=J[a+24>>2];if(J[a>>2])break a;J[a>>2]=b}}function AFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=kc[J[J[b>>2]+28>>2]](b)|0;if((c|0)>0){d=DX(a,c-1|0);a=J[d+4>>2];b:{if(J[a+4>>2]>=2){J[699344]=0;$(5207,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[d+4>>2]}e=J[J[b>>2]+32>>2];f=J[a+12>>2];a=J[a+8>>2];J[699344]=0;ha(e|0,b|0,a-f|0,c|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break a}b=Z()|0;J[d>>2]=2392964;a=J[d+4>>2];if(a){c=J[a+4>>2]-1| +0;J[a+4>>2]=c;if(!c)kc[J[J[a>>2]+4>>2]](a);J[d+4>>2]=0}ba(b|0);B()}DX(a,-1)}}function xDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+16>>2];J[a+20>>2]=d;d=Dc(d);J[a+24>>2]=d;if(!d)return-1;a:{if(J[a+20>>2]){d=0;while(1){c=J[b+8>>2];if(c&7)return-1;f=J[a+24>>2];e=J[b+64>>2];if(!((e|0)<0|J[b+60>>2]<(e|0))){J[b+8>>2]=c|4;return-1}c=J[b+28>>2];J[b+28>>2]=c-1;b:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;c=K[c|0];break b}c=td(b,1);e=-1;if((c|0)==-1)break a}if(f)H[d+f|0]=c;d=d+1|0; +if(d>>>0>2])continue;break}}e=0}return e|0}function nnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[a+32>>2]=c;e=a,f=_c(c,4,0,b,0,d+12|0),J[e+24>>2]=f;a:{b:{if(J[d+12>>2])break b;e=a,f=_c(c,4,0,b,0,d+12|0),J[e+28>>2]=f;if(J[d+12>>2])break b;J[a+20>>2]=0;J[a+16>>2]=b;J[a+8>>2]=0;J[a+12>>2]=-559038737;J[a>>2]=0;J[a+4>>2]=0;b=J[65267];J[a+36>>2]=J[65266];J[a+40>>2]=b;b=J[65269];J[a+44>>2]=J[65268];J[a+48>>2]=b;a=0;break a}b=J[a+24>>2];if(b)kc[J[c+8>>2]](c,b);J[a+24>>2]=0;a=J[d+ +12>>2]}fc=d+16|0;return a|0}function m0(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=fc-32|0;fc=c;J[c+16>>2]=13;J[c>>2]=13;if(J[b+20>>2]>0){d=1;while(1){f=d;d=bj(b,d);a:{if(J[jf(d+16|0,J[d+4>>2],c+16|0,0)>>2]!=6)break a;d=0;e=J[c+24>>2];if(J[e+12>>2]<=0)break a;while(1){if(J[tg(e,d,c)>>2]==9){g=J[a+28>>2];e=vc(12);h=J[c+12>>2];i=J[c+8>>2];J[e+8>>2]=f;J[e>>2]=i;J[e+4>>2]=h;sd(g,e)}yc(c);d=d+1|0;e=J[c+24>>2];if((d|0)>2])continue;break}}d=f+1|0;yc(c+16|0);if(J[b+20>>2]>(f|0))continue;break}}fc=c+32| +0}function Wr(a){var b=0,c=0,d=0;c=fc-32|0;fc=c;b=kc[J[663195]](36)|0;a:{if(!b){J[c>>2]=5439;Hc(0,0,0,0,0,29,2,3,5439,0,0,0,32879,c);break a}J[b+20>>2]=0;J[b+4>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;d=J[663197];a=a?a+2|0:0;J[b+24>>2]=a;J[b+12>>2]=d;J[b+8>>2]=a;b:{if(a){a=kc[J[663198]](a)|0;J[b>>2]=a;if(!a){J[c+16>>2]=5439;Hc(0,0,0,0,0,29,2,3,5439,0,0,0,32879,c+16|0);if(!J[b+32>>2])J[b+32>>2]=2;d=0;kc[J[663199]](b);break a}H[a|0]=0;break b}J[b>>2]=0}J[b+16>>2]=0;d=b}fc=c+32|0;return d}function KL(a,b){var c= +0,d=0,e=0,f=0;d=1;e=(b<<10)+a|0;b=J[e+644>>2];a:{if((b|0)<0&(b&15728640)!=7340032)break a;b=0;c=J[e+260>>2];if((c|0)<0&(c&15728640)!=7340032)break a;while(1){c=b<<2;f=J[c+e>>2];if((f|0)<0&(f&15728640)!=7340032)break a;c=J[(c|4)+e>>2];if((c|0)<0&(c&15728640)!=7340032)break a;b=b+2|0;if((b|0)!=256)continue;break}b=0;while(1){b:{d=J[(b<<2)+e>>2];if((d|0)<0)break b;if(!KL(a,d>>>24|0))break b;return 1}b=b+1|0;if((b|0)!=256)continue;break}d=0}return d}function y8(a,b){var c=0,d=0,e=0;if(b){c=J[b+608>>2]; +if(c){d=J[c+28>>2];e=b+640|0;if(J[e>>2])$f(c,e);c=J[b+636>>2];if(c)kc[J[d+8>>2]](d,c);J[b+640>>2]=0;J[b+632>>2]=0;J[b+636>>2]=0;J[b+624>>2]=0;J[b+628>>2]=0;J[b+616>>2]=0;J[b+620>>2]=0;J[b+608>>2]=0;J[b+612>>2]=0}c=J[b+644>>2];if(c)kc[J[a+8>>2]](a,c);J[b+644>>2]=0;c=J[b+572>>2];if(c)kc[J[a+8>>2]](a,c);J[b+572>>2]=0;c=J[b+580>>2];if(c)kc[J[a+8>>2]](a,c);J[b+580>>2]=0;c=J[b+592>>2];if(c)kc[J[a+8>>2]](a,c);J[b+592>>2]=0}}function otb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c& +65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;H[d+16|0]=K[b+40|0];H[d+17|0]=K[b+41|0];H[d+18|0]=K[b+42|0];H[d+19|0]=K[b+43|0];H[d+20|0]=K[b+44|0];H[d+21|0]=K[b+45|0];H[d+22|0]=K[b+46|0];H[d+23|0]=K[b+47|0];return Ce(a,J[b>>2],16,d+8|0)|0}function jh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;kc[J[J[a>>2]+8>>2]](a,11);a:{if(!b){b=J[a+12>>2]; +J[a+12>>2]=b+4;J[b>>2]=48;d=1;break a}if((b|0)<0){c=J[a+12>>2];J[a+12>>2]=c+4;J[c>>2]=45;J[a+16>>2]=J[a+16>>2]+1;b=(b|0)==-2147483648?2147483647:0-b|0}c=b;while(1){d=d+1|0;e=c>>>0<10;c=(c>>>0)/10|0;if(!e)continue;break}f=J[a+12>>2];c=1;while(1){e=(b>>>0)/10|0;J[(d-c<<2)+f>>2]=b-P(e,10)|48;c=c+1|0;g=b>>>0>9;b=e;if(g)continue;break}J[a+12>>2]=(d<<2)+f}J[a+16>>2]=J[a+16>>2]+d}function aw(a){a=a|0;var b=0,c=0,d=0;c=fc-16|0;fc=c;J[c+12>>2]=0;b=c+12|0;vd(b,0);J[699344]=0;aa(5153,a|0,b|0)|0;b=J[699344]; +J[699344]=0;a:{if((b|0)!=1){b=a;a=J[a>>2];J[b+4>>2]=J[(a?a+12|0:2743576)>>2];a=J[c+12>>2];J[c+12>>2]=0;b:{if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=c+16|0;return}a=Z()|0;zc(c+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function _D(a){var b=0,c=0,d=0,e=0,f=0;if(!a)return 35;f=38;c=J[a+40>>2];a:{if(!c)break a;d=(J[a+36>>2]<<2)+c|0;e=d-4|0;b:{if(e>>>0>=c>>>0)while(1){b=J[e>> +2];c:{if(J[b+4>>2]!=1970170211)break c;d:switch(L[b+8>>1]){case 3:if(L[b+10>>1]!=10)break c;break b;case 0:break d;default:break c}if(L[b+10>>1]==4)break b}e=e-4|0;if(e>>>0>=c>>>0)continue;break}while(1){d=d-4|0;if(d>>>0>>0)break a;b=J[d>>2];if(J[b+4>>2]!=1970170211)continue;break}}J[a+92>>2]=b;f=0}return f}function Dcb(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;i=K[a+3|0];g=i^255;a:{if(f>>>0<=254){h=255-f|0;H[a+2|0]=(P(h,K[a+2|0])+255>>>8)+(P(P(b,g)+255>>>8|0,f)+255>>>8); +H[a+1|0]=(P(K[a+1|0],h)+255>>>8)+(P(P(c,g)+255>>>8|0,f)+255>>>8);e=(P(P(e,g)+255>>>8|0,f)+255>>>8)+(P(h,i)+255>>>8)|0;b=(P(K[a|0],h)+255>>>8)+(P(P(d,g)+255>>>8|0,f)+255>>>8)|0;break a}H[a+1|0]=P(c,g)+255>>>8;H[a+2|0]=P(b,g)+255>>>8;e=P(e,g)+255>>>8|0;b=P(d,g)+255>>>8|0}H[a+3|0]=e;H[a|0]=b}function kO(a,b,c,d,e,f){var g=0,h=0,i=0;g=jO(a,b,c,d,f);f=J[J[f>>2]+12>>2];h=J[e>>2];i=J[d>>2];if(M[J[f+(h<<2)>>2]>>2]>2]>>2]){J[d>>2]=h;J[e>>2]=i;e=J[d>>2];h=J[c>>2];if(M[J[f+(e<<2)>>2]>>2]>=M[J[f+ +(h<<2)>>2]>>2])return g+1|0;J[c>>2]=e;J[d>>2]=h;d=J[c>>2];e=J[b>>2];if(M[J[f+(d<<2)>>2]>>2]>=M[J[f+(e<<2)>>2]>>2])return g+2|0;J[b>>2]=d;J[c>>2]=e;c=J[b>>2];d=J[a>>2];if(M[J[f+(c<<2)>>2]>>2]>=M[J[f+(d<<2)>>2]>>2])return g+3|0;J[a>>2]=c;J[b>>2]=d;g=g+4|0}return g}function h9(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=fc-16|0;fc=f;c=!a;a:{if(c|!b)break a;i=c?0:J[a>>2];h=cl(i);if(!h)break a;if((i|0)>0)while(1){k=f,l=lg(a,d),J[k+12>>2]=l;j=u9(a,d,1);e=zE(b,j);g=J[f+12>>2];b:{if((e|0)==(g|0))break b; +c=!e;if(c|!g|((c?-1:J[e+8>>2])|0)!=((g?J[g+8>>2]:-1)|0))break b;c=Ff(e,e);if(!c)break b;Cf(c,0,0,c?J[c>>2]:-1,c?J[c+4>>2]:-1,16,g,0,0)}ni(h,e,0);Mq(h,j);Fd(f+12|0);d=d+1|0;if((i|0)!=(d|0))continue;break}d=h}fc=f+16|0;return d}function a6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=Q(0),g=0,h=0;e=J[a+104>>2];if(!((e|0)<0|J[a+100>>2]<=(e|0))){J[a+104>>2]=e+1;g=J[a+96>>2]+P(e,96)|0;h=1}J[b>>2]=g;if(!h)return 0;a:{b:{c:{d:{b=J[b>>2];switch(J[b+60>>2]){case 0:break c;case 1:break d;default:break b}}if(!J[J[a+ +8>>2]+276>>2])break b}N[c>>2]=Q(N[a+24>>2]+N[b+4>>2])+Q(J[b+68>>2]);f=Q(Q(N[a+28>>2]+N[b+8>>2])-Q(J[b+72>>2]));break a}N[c>>2]=N[a+24>>2]+N[b+4>>2];f=Q(N[a+28>>2]+N[b+8>>2])}N[d>>2]=f;return 1}function Xm(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a+4>>2];if((c|0)==18|J[a+32>>2]==(b|0))break a;b:{if((c|0)!=1)break b;d=J[a+44>>2];if(!d)break b;while(1){if(J[d+40>>2]==2)E1(J[a+32>>2],d);J[d+32>>2]=b;c=J[d+12>>2];if(!(!c|J[c+4>>2]==18))while(1){if(J[c+32>>2]!=(b|0))Xm(c,b);c=J[c+24>>2];if(c)continue;break}d= +J[d+24>>2];if(d)continue;break}}c=J[a+12>>2];if(!(!c|J[c+4>>2]==18))while(1){if(J[c+32>>2]!=(b|0))Xm(c,b);c=J[c+24>>2];if(c)continue;break}J[a+32>>2]=b}}function Sxa(a,b,c,d,e,f,g,h,i){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;var j=0,k=0,l=0,m=0;if(!(!f|!e)){d=J[a+60>>2];a=L[a+26>>1];j=a<<1;c=e-1|0;k=e&1;l=P(a,e)<<1;m=h<<2;while(1){a:{if(!k){h=e;a=i;break a}J[b>>2]=J[J[(K[i+1|0]<<2)+d>>2]>>2];b=b+4|0;h=c;a=i+j|0}if((e|0)!=1)while(1){J[b>>2]=J[J[(K[a+1|0]<<2)+d>>2]>>2];a=a+j|0;J[b+4>> +2]=J[J[(K[a+1|0]<<2)+d>>2]>>2];b=b+8|0;a=a+j|0;h=h-2|0;if(h)continue;break}i=(i+l|0)+g|0;b=b+m|0;f=f-1|0;if(f)continue;break}}}function zdb(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=348728;a:{b=J[a+8>>2];d=a+12|0;if((b|0)!=(d|0))while(1){e=J[b+28>>2];if(e){c=J[J[e>>2]+12>>2];J[699344]=0;_(c|0,e|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[b+28>>2]=0}c=J[b+4>>2];b:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break b}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue; +break}Nu(a+8|0,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0;uc(a);return}ea(0)|0;Bc();B()}function qn(a,b,c){var d=0,e=0,f=0;d=J[a>>2];a:{b:{if((b|0)<0){b=d;if((d|0)>=0)break b;break a}b=0;if((d|0)<0)break a}e=J[a+4>>2];if((e|0)<=(d|0)){e=d+16|0;d=e<<2;f=J[a+8>>2];c:{if(!f){d=Dc(d);break c}d=Yh(f,d)}if(!d)return-1;J[a+4>>2]=e;J[a+8>>2]=d;d=J[a>>2]}if((d|0)<(e|0)){J[c>>2]=J[c>>2]+1;e=d-b|0;if((e|0)>0){d=J[a+8>>2]+(b<<2)|0;cd(d+4|0,d,e<<2);d=J[a>>2]}J[J[a+8>>2]+(b<<2)>>2]=c;J[a>>2]=d+1;return 0}fa(203191, +198656,664,206643);B()}fa(202549,198656,658,206643);B()}function d4(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=fc-16|0;fc=d;a:{b:{g=b+304|0;e=J[J[b+328>>2]+216>>2]?g:b+316|0;f=J[e+4>>2];if(!f)break b;h=e+4|0;e=h;while(1){i=J[f+16>>2]<(c|0);e=i?e:f;f=J[(i?f+4|0:f)>>2];if(f)continue;break}if((e|0)==(h|0)|J[e+16>>2]>(c|0))break b;xc(a,e+20|0,104);break a}J[d+12>>2]=c;H[d+11|0]=0;H[d+10|0]=0;Eu(a,b,d+12|0,d+11|0,0,d+10|0);J[699344]=0;da(2924,g|0,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Cj(a+ +76|0);ba(b|0);B()}fc=d+16|0}function _kb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=a+20|0;if(e>>>0>M[b+160>>2])pe(b,8);c=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);d=K[a+4|0]|K[a+5|0]<<8|(K[a+6|0]<<16|K[a+7|0]<<24);d=d<<24|(d&65280)<<8|(d>>>8&65280|d>>>24);if(!(!(d>>>0<20|d>>>0>J[b+160>>2]-a>>>0)&d-20>>>1>>>0>=c>>>0))pe(b,8);if(!(!c|J[b+164>>2]<=0))while(1){if(M[b+172>>2]<=(K[e+1|0]|K[e|0]<<8)>>>0)pe(b,16);e=e+2|0;c=c-1|0;if(c)continue;break}return 0}function bWa(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=vc(84);J[699344]=0;J[e+8>>2]=a;J[e>>2]=2181644;J[e+16>>2]=0;J[e+12>>2]=b;J[e+4>>2]=a;b=e;a=J[699344];J[699344]=0;a:{if((a|0)!=1){J[b+60>>2]=0;J[b>>2]=2193240;J[b+20>>2]=0;J[b+24>>2]=0;J[b+80>>2]=0;J[b+72>>2]=0;J[b+76>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[699344]=0;ca(3538,b|0,c|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;dq(b);break a}if(!J[b+80>>2]){kc[J[J[b>>2]+4>>2]](b);b=0}return b|0}a=Z()|0}uc(e);ba(a|0);B()}function Hn(a,b){var c=0,d=0,e=0,f=0,g= +0,h=0;e=J[a>>2];d=e;a:{if(!K[a+8|0])break a;d=0;if(!e)break a;d=J[e>>2]}e=d;c=J[b>>2];d=c;b:{if(!K[b+8|0])break b;d=0;if(!c)break b;d=J[c>>2]}c=J[b+4>>2];a=J[a+4>>2];b=c>>>0>>0;g=b?c:a;if(g){h=1;a=1;f=J[d>>2];c=J[e>>2];c:{if((f|0)>(c|0))break c;a=0;d:{while(1){if((c|0)>(f|0))break d;a=a+1|0;h=g>>>0>a>>>0;if((a|0)==(g|0))break c;f=a<<2;c=J[f+e>>2];f=J[f+d>>2];if((c|0)>=(f|0))continue;break}a=1;break c}a=0}b=h?a:b}return b&1}function twa(a,b,c){a=+a;b=b|0;c=c|0;var d=0,e=0;d=fc-256|0;fc=d;a:{if(a< +1.001&a>.999)break a;IH(a,d);if((c|0)<=0)break a;if(c&1){H[b+2|0]=K[K[b+2|0]+d|0];H[b+1|0]=K[K[b+1|0]+d|0];H[b|0]=K[K[b|0]+d|0];b=b+3|0;e=c-1|0}else e=c;if((c|0)==1)break a;while(1){H[b+2|0]=K[K[b+2|0]+d|0];H[b+1|0]=K[K[b+1|0]+d|0];H[b|0]=K[K[b|0]+d|0];H[b+5|0]=K[K[b+5|0]+d|0];H[b+4|0]=K[K[b+4|0]+d|0];H[b+3|0]=K[K[b+3|0]+d|0];b=b+6|0;c=e-3|0;e=e-2|0;if(c>>>0<4294967294)continue;break}}fc=d+256|0}function o7(a,b){var c=0,d=0,e=0;d=fc-16|0;fc=d;c=J[a>>2]+1|0;J[d+12>>2]=c;a:{if(b>>>0<=c>>>0)break a; +while(1){vh(d+12|0,b);c=J[d+12>>2];if(c>>>0>=b>>>0)break a;b:{e=K[c|0];if((e-48&255)>>>0<=9)break b;switch(e-65|0){case 0:case 1:case 2:case 3:case 4:case 5:case 32:case 33:case 34:case 35:case 36:case 37:break b;default:break a}}c=c+1|0;J[d+12>>2]=c;if(b>>>0>c>>>0)continue;break}}c:{if(b>>>0>c>>>0){b=3;if(K[c|0]!=62)break c}c=c+1|0;b=0}J[a>>2]=c;fc=d+16|0;return b}function lIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-32|0;fc=d;J[c>>2]=0;e=d+20|0;xr(e,a,b);J[d+16>>2]=0;J[d+12>>2]=0;a=J[a+4>>2];J[699344]= +0;ia(4906,a|0,e|0,d+16|0,d+12|0);a=J[699344];J[699344]=0;a:{if((a|0)==1)break a;b=J[d+12>>2];if(b){J[699344]=0;a=_(4,12)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;e=J[d+16>>2];H[a+8|0]=0;J[a+4>>2]=b;J[a>>2]=e;J[c>>2]=a}if(H[d+31|0]<0)uc(J[d+20>>2]);fc=d+32|0;return(b|0)!=0|0}a=Z()|0;if(H[d+31|0]<0)uc(J[d+20>>2]);ba(a|0);B()}function kY(a,b,c,d){var e=0,f=0,g=0;g=fc-128|0;fc=g;f=g;c=J[b+12>>2]+(c<<4)|0;e=J[c>>2];a:{if(!e){b=c;break a}while(1){J[f>>2]=c;f=f+4|0;b=e;c=b;e=J[c>>2];if(e)continue;break}}e= +0;while(1){c=J[b+8>>2];if((e|0)>(c|0)){J[b+8>>2]=e;c=e}b:{if((c|0)>=(d|0))break b;while(1){if(J[b+4>>2]<=(c|0))break b;c:{if(Kn(a,1)){J[b+4>>2]=c;break c}c=c+1|0}if((c|0)<(d|0))continue;break}}J[b+8>>2]=c;if((f|0)!=(g|0)){f=f-4|0;b=J[f>>2];e=c;continue}break}fc=g+128|0;return J[b+4>>2]<(d|0)}function O7(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;g=K[c|0]|K[c+1|0]<<8;e=J[a+16>>2];h=K[c+4|0]|K[c+5|0]<<8;k=J[b+336>>2];f=J[a+20>>2];d=K[c+2|0]|K[c+3|0]<<8;c=f-(d+(K[c+6|0]|K[c+7|0]<<8)| +0)|0;i=(c|0)>0?c:0;j=f-d|0;a:{if((i|0)>=(j|0))break a;c=g+h|0;e=c>>>0>>0?c:e;if(g>>>0>=e>>>0)break a;d=i;while(1){h=d-i|0;c=g;while(1){f=Ij(b,c-g|0,h);if((f|0)!=(k|0))jn(a,c,d,f);c=c+1|0;if((e|0)!=(c|0))continue;break}d=d+1|0;if((j|0)>(d|0))continue;break}}}function wyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-2|0){case 0:if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c| +0]+K[b|0];c=c+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0];c=c+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function TH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;d=J[685894];e=b&3;b:{if(!e){c=b;break b}c=b;while(1){J[a+24>>2]=0;J[a+16>>2]=0;J[a+20>>2]=d;a=a+28|0;c=c-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<4)break a;while(1){J[a+24>>2]=0;J[a+16>>2]= +0;J[a+108>>2]=0;J[a+104>>2]=d;J[a+100>>2]=0;J[a+80>>2]=0;J[a+76>>2]=d;J[a+72>>2]=0;J[a+52>>2]=0;J[a+48>>2]=d;J[a+44>>2]=0;J[a+20>>2]=d;a=a+112|0;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}}function Cyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-2|0){case 0:if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue; +break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function aka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=fc-16|0;fc=d;a:{b:{if(J[b+64>>2])if(!(kc[J[J[b>>2]+24>>2]](b)|0))break b;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}if(Ev(J[b+64>>2],J[c+8>>2],J[c+12>>2],0)){J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0;break a}e=J[c+4>>2];J[d+8>>2]=J[c>>2];J[d+12>>2]=e;e=J[d+12>> +2];J[b+72>>2]=J[d+8>>2];J[b+76>>2]=e;b=J[c+12>>2];J[a+8>>2]=J[c+8>>2];J[a+12>>2]=b;b=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=b}fc=d+16|0}function Rnb(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;if(b){i=J[d>>2]-P(J[d+4>>2],a)|0;while(1){f=L[c+2>>1];a:{if(!f)break a;d=P(I[c>>1],3)+i|0;e=K[c+4|0];g=0;a=f;h=a&7;if(h)while(1){H[d|0]=e;d=d+3|0;a=a-1|0;g=g+1|0;if((g&65535)!=(h|0))continue;break}if(f>>>0<8)break a;while(1){H[d+21|0]=e;H[d+18|0]=e;H[d+15|0]=e;H[d+12|0]=e;H[d+9|0]=e;H[d+6|0]=e;H[d+ +3|0]=e;H[d|0]=e;d=d+24|0;a=a-8|0;if(a&65535)continue;break}}c=c+6|0;b=b-1|0;if(b)continue;break}}}function GH(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;if(!(J[a+44>>2]?J[a+36>>2]:0))IV(a);e=J[a+36>>2];d=(e|0)/2|0;g=J[a>>2];f=P(J[a+40>>2],J[b>>2]-J[a+16>>2]|0);a:{if((f|0)>=0){e=(d+f|0)/(e|0)|0;break a}e=0-((d-f|0)/(e|0)|0)|0}d=J[a+44>>2];f=(d|0)/2|0;h=J[a+4>>2];i=b;j=J[a+12>>2];b=P(J[a+48>>2],J[c>>2]-J[a+20>>2]|0);b:{if((b|0)>=0){d=(b+f|0)/(d|0)|0;break b}d=0-((f-b|0)/(d|0)|0)|0}b=J[a+32>>2];d=b&2?j- +d|0:d+h|0;a=b&1?J[a+8>>2]-e|0:e+g|0;b=b&4;J[i>>2]=b?d:a;J[c>>2]=b?a:d}function Fca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;a:{d=J[a+584>>2];if(d){if(J[d+124>>2]!=2)break a;J[d+64>>2]=b;J[d+68>>2]=c;b=d- -64|0;b:{while(1){if(Wk(b,0)){b=J[a+628>>2];a=J[a>>2];J[e+4>>2]=J[d+88>>2];J[e>>2]=a;Uc(b,98097,76565,e);a=0;break b}if(!J[d+80>>2]){J[a+608>>2]=J[a+600>>2];pf(a);J[d+76>>2]=J[a+596>>2];J[d+80>>2]=J[a+600>>2]}if(J[d+68>>2])continue;break}a=1}fc=e+16|0;return a|0}fa(73294,70440,216, +98097);B()}fa(76239,70440,217,98097);B()}function Ex(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{b=mj(2772732,b);b:{if((b|0)==2772736)break b;b=J[b+28>>2];c=J[693186];if(b>>>0>=(J[693187]-c|0)/12>>>0)break a;c=c+P(b,12)|0;b=J[c>>2];f=J[c+4>>2];if((b|0)==(f|0))break b;while(1){d=K[a+11|0];g=d<<24>>24<0;e=K[b+11|0];h=e<<24>>24<0;d=g?J[a+4>>2]:d;if((d|0)==((h?J[b+4>>2]:e)|0)){e=1;if(!d)break b;if(!qd(g?J[a>>2]:a,h?J[b>>2]:b,d))break b;f=J[c+4>>2]}b=b+12|0;if((f|0)!=(b|0))continue;break}e=0}return e}my(2772744); +B()}function V8a(a){a=a|0;var b=0,c=0,d=0,e=0;b=vc(64);J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=349364;J[b+4>>2]=1;J[b+32>>2]=0;J[b+36>>2]=0;J[b+20>>2]=-16777216;J[b+24>>2]=-16777216;J[b+16>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;a:{if((a|0)==(b|0))break a;c=b+8|0;if(H[a+19|0]>=0){d=a+8|0;e=J[d+4>>2];J[c>>2]=J[d>>2];J[c+4>>2]=e;J[c+8>>2]=J[d+8>>2];break a}Gf(c,J[a+8>>2],J[a+12>>2])}J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2];return b|0}function Uya(a,b,c,d){a=a| +0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e>>2]=2397928;J[e+4>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[699344]=0;ia(5597,a|0,b|0,e|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)a:{a=J[e+8>>2];if(a)while(1){g=J[a+8>>2];f=J[J[g>>2]+44>>2];J[699344]=0;ia(f|0,g|0,b|0,c|0,d|0);f=J[699344];J[699344]=0;if((f|0)==1)break a;a=J[a>>2];if(a)continue;break}id(e);fc=e+16|0;return}a=Z()|0;id(e);ba(a|0);B()}function Tya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g= +0;e=fc-16|0;fc=e;J[e+8>>2]=0;J[e+12>>2]=0;J[e>>2]=0;J[e+4>>2]=0;J[e>>2]=2397928;J[e+4>>2]=0;J[e+8>>2]=0;J[e+12>>2]=0;J[699344]=0;ia(5597,a|0,b|0,e|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)a:{a=J[e+8>>2];if(a)while(1){g=J[a+8>>2];f=J[J[g>>2]+48>>2];J[699344]=0;ia(f|0,g|0,b|0,c|0,d|0);f=J[699344];J[699344]=0;if((f|0)==1)break a;a=J[a>>2];if(a)continue;break}id(e);fc=e+16|0;return}a=Z()|0;id(e);ba(a|0);B()}function Ts(a,b){var c=0,d=0,e=0;d=fc-16|0;fc=d;c=d+12|0;a=J[a+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+ +4>>2]+1;J[699344]=0;a=_(6750,c|0)|0;e=J[699344];J[699344]=0;a:{b:{if((e|0)==1)break b;J[699344]=0;ha(6866,a|0,2632752,2632778,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;a=J[c>>2];c=J[a+4>>2]-1|0;J[a+4>>2]=c;if((c|0)==-1)kc[J[J[a>>2]+8>>2]](a);fc=d+16|0;break a}c=Z()|0;a=J[d+12>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}return b}function GF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(d>>>0>>0){f=fc- +16|0;fc=f;e=b-d|0;if(e){b=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;if(b-d>>>0>>0)$y(a,b,d+(e-b|0)|0,d,d,0);if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;qQ(b+(d<<2)|0,e,c);c=a;a=d+e|0;kl(c,a);J[f+12>>2]=0;J[b+(a<<2)>>2]=J[f+12>>2]}fc=f+16|0;return}c=a;if(K[a+11|0]>>>7|0)a=J[a>>2];tv(c,a,b)}function G7a(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;var h=0,i=0;e=J[a+452>>2];i=e+24|0;g=J[e+24>>2];a:{if(g){h=J[e+12>>2];break a}h=kc[J[J[a+ +4>>2]+28>>2]](a,J[e+8>>2],J[e+20>>2],J[e+16>>2],1)|0;J[e+12>>2]=h;g=J[e+24>>2]}kc[J[J[a+472>>2]+4>>2]](a,b,c,d,h,i,J[e+16>>2]);b=J[e+24>>2];if(b>>>0>g>>>0){b=b-g|0;kc[J[J[a+480>>2]+4>>2]](a,J[e+12>>2]+(g<<2)|0,0,b);J[f>>2]=b+J[f>>2];b=J[e+24>>2]}a=J[e+16>>2];if(a>>>0<=b>>>0){J[e+24>>2]=0;J[e+20>>2]=a+J[e+20>>2]}}function xIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;e=d+20|0;kc[J[J[a>>2]+12>>2]](e,a,b);b=J[J[a>>2]+12>>2];J[699344]=0;f=b;b=d+8|0;ca(f|0,b|0,a|0,c|0);a=J[699344];J[699344]= +0;a:{b:{if((a|0)!=1){J[699344]=0;aa(4902,e|0,b|0)|0;a=J[699344];J[699344]=0;if((a|0)==1)break b;if(H[d+19|0]<0)uc(J[d+8>>2]);if(H[d+31|0]<0)uc(J[d+20>>2]);fc=d+32|0;return}a=Z()|0;break a}a=Z()|0;if(H[d+19|0]>=0)break a;uc(J[d+8>>2])}if(H[d+31|0]<0)uc(J[d+20>>2]);ba(a|0);B()}function h1(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(J[a+292>>2])break a;c=J[a+36>>2];if((J[c+20>>2]-J[c+16>>2]|0)>249)break a;Rd(a)}if(J[a+172>>2]==-1)return 0;f=J[a+36>>2];e=J[f+16>>2];d=K[e|0];b:{c:{if(!d){c=b;break c}c=b;while(1){g= +K[c|0];if((g|0)!=(d|0))break b;J[f+32>>2]=J[f+32>>2]+1;c=c+1|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}}g=K[c|0];d=0}d:{if(!g){c=d-9|0;if((d|0)==62|(1<>>0<=23:0))break d}a=hi(a);return(a|0)==(b|0)?1:a}J[f+16>>2]=e;return 1}function aib(a){a=a|0;var b=0,c=0;b=J[a+20>>2];a:{if(!(J[a+64>>2]|b-205>>>0>1)){if(M[a+140>>2]>2]){b=J[a>>2];J[b+20>>2]=69;kc[J[b>>2]](a)}kc[J[J[a+440>>2]+4>>2]](a);J[a+20>>2]=210;break a}b:switch(b-207|0){case 0:J[a+20>>2]=210;break a;case 3:break a;default:break b}c= +J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}c:{while(1){b=J[a+456>>2];if(J[b+20>>2])break c;if(kc[J[b>>2]](a)|0)continue;break}return 0}kc[J[J[a+24>>2]+24>>2]](a);Vx(a);return 1}function T3a(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-112|0;fc=b;J[b+12>>2]=0;J[b+8>>2]=0;c=K[a+11|0];d=c<<24>>24<0;_r(d?J[a>>2]:a,d?J[a+4>>2]:c,b+12|0,b+8|0,0);c=ol(J[b+12>>2],b+16|0);d=J[b+20>>2];e=J[b+12>>2];if(e)uc(e);a:{if(!c){c=1;if((d&61440)==16384)break a}J[b+12>>2]=0;J[b+8>>2]=0;c=K[a+11|0];d=c<<24>>24<0;_r(d? +J[a>>2]:a,d?J[a+4>>2]:c,b+12|0,b+8|0,0);c=1;if((ol(J[b+12>>2],b+16|0)|0)==-1)c=!EG(J[b+12>>2],509);a=J[b+12>>2];if(!a)break a;uc(a)}fc=b+112|0;return c|0}function Kvb(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;var h=0,i=0,j=0;a:{if(f){if(!d)break a;a=c<<1;i=b<<1;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+1|0]=b;b=K[e+2|0];h=K[f+2|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c| +0)/(a|0)|0)|0;H[g+2|0]=b;f=f+3|0;e=e+3|0;g=g+3|0;j=j+1|0;if((j|0)!=(d|0))continue;break}break a}xc(g,e,P(d,3))}return 0}function I3(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0;O[a+40>>3]=g;O[a+32>>3]=f;O[a+24>>3]=c;O[a+16>>3]=b;O[a+96>>3]=b;O[a+48>>3]=b;O[a+104>>3]=c;O[a+56>>3]=c;i=d-b;k=e-c;h=f-d;l=h*h;h=g-e;h=(Y(i*i+k*k)+Y(l+h*h))*.25*O[a+8>>3]+.5;a:{if(h<4294967296&h>=0){j=~~h>>>0;break a}j=0}j=(j|0)<=4?4:j;J[a>>2]=j;J[a+4>>2]=j;l=i;i=1/+(j|0);h=i+i;b=b-(d+d)+f;d=i*i;b=b*d;f=l*h+b;O[a+112>>3]=f;O[a+ +64>>3]=f;c=(c-(e+e)+g)*d;d=k*h+c;O[a+120>>3]=d;O[a+72>>3]=d;O[a+88>>3]=c+c;O[a+80>>3]=b+b}function Bxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;if(!K[a+88|0]){e=a,f=kc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=kc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=kc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;d=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}J[c>>2]=J[a+92>>2];J[c+8>>2]=J[a+100>>2];J[c+4>>2]=J[a+96>>2];J[c+12>>2]=J[a+104>>2];rt(b,c);J[a+92>>2]=J[c>>2];J[a+96>>2]=J[c+4>>2];J[a+100>>2]= +J[c+8>>2];b=J[c+12>>2];H[a+88|0]=0;J[a+104>>2]=b;fc=c+16|0}function Axa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;if(!K[a+88|0]){e=a,f=kc[J[J[a>>2]+36>>2]](a)|0,J[e+72>>2]=f;e=a,f=kc[J[J[a>>2]+44>>2]](a)|0,J[e+76>>2]=f;e=a,f=kc[J[J[a>>2]+40>>2]](a)|0,J[e+80>>2]=f;d=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=d}J[c>>2]=J[a+92>>2];J[c+8>>2]=J[a+100>>2];J[c+4>>2]=J[a+96>>2];J[c+12>>2]=J[a+104>>2];HV(b,c);J[a+92>>2]=J[c>>2];J[a+96>>2]=J[c+4>>2];J[a+100>>2]=J[c+8>>2];b=J[c+12>>2];H[a+88| +0]=0;J[a+104>>2]=b;fc=c+16|0}function Reb(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;var h=0,i=0,j=0;h=fc+-64|0;fc=h;i=1;a:{if(!(!J[a+16>>2]|!J[a+20>>2])){i=wk(h+12|0);a=J[a+16>>2];J[699344]=0;j=J[699344];J[699344]=0;if((j|0)==1)break a;J[699344]=0;cs(a+52|0,h+16|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;O[b>>3]=O[h+16>>3];O[c>>3]=O[h+24>>3];O[d>>3]=O[h+32>>3];O[e>>3]=O[h+40>>3];O[f>>3]=O[h+48>>3];O[g>>3]=O[h+56>>3];Jd(i);i=0}fc=h- -64|0;return i|0}a=Z()|0;Jd(i);ba(a|0);B()}function qlb(a, +b){a=a|0;b=b|0;var c=0,d=0;a:{if(b>>>0>65535)break a;c=J[a+16>>2];a=c+518|0;c=c+6|0;b:{if(b>>>0<=255){c=c+(b<<1&510)|0;if(!(K[c|0]<<8|K[c+1|0]))break b;break a}c=c+(b>>>7&33554430)|0;c=K[c|0]<<8|K[c+1|0]&248;if(!c)break a;a=a+c|0}b=(b&255)-(K[a+1|0]|K[a|0]<<8)|0;if(b>>>0>=(K[a+3|0]|K[a+2|0]<<8)>>>0)break a;c=K[a+7|0]|K[a+6|0]<<8;if(!c)break a;b=(c+(a+6|0)|0)+(b<<1)|0;b=K[b|0]<<8|K[b+1|0];if(!b)break a;d=b+(K[a+5|0]|K[a+4|0]<<8)&65535}return d|0}function TGa(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=+c;d=+d; +e=+e;f=+f;g=+g;h=+h;i=i|0;if(g<0)while(1){g=g+360;if(g<0)continue;break}if(g>360)while(1){g=g+-360;if(g>360)continue;break}if(h<0)while(1){h=h+360;if(h<0)continue;break}if(h>=360)while(1){h=h+-360;if(h>=360)continue;break}if(!i){if(g<=h){Gt(a,b,c,d,e,f,g,h,0);return}Gt(a,b,c,d,e,f,g,360,0);Gt(a,b,c,d,e,f,0,h,0);return}if(g>=h){Gt(a,b,c,d,e,f,g,h,1);return}Gt(a,b,c,d,e,f,g,0,1);Gt(a,b,c,d,e,f,360,h,1)}function Lra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if((b|0)<=0)break a;d=J[685894];e=b&3;b:{if(!e){c= +b;break b}c=b;while(1){J[a+8>>2]=0;J[a+12>>2]=0;J[a+16>>2]=d;a=a+20|0;c=c-1|0;f=f+1|0;if((e|0)!=(f|0))continue;break}}if(b>>>0<4)break a;while(1){J[a+8>>2]=0;J[a+12>>2]=0;J[a+76>>2]=d;J[a+68>>2]=0;J[a+72>>2]=0;J[a+56>>2]=d;J[a+48>>2]=0;J[a+52>>2]=0;J[a+36>>2]=d;J[a+28>>2]=0;J[a+32>>2]=0;J[a+16>>2]=d;a=a+80|0;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue;break}}}function zDb(a,b){a=a|0;b=b|0;var c=0,d=0;c=-1;a:{if(Ti(b,a+24|0))break a;if(Ti(b,a+20|0))break a;if(Wg(b,a+28|0))break a;d=J[b+8>>2];if(d& +7)break a;c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2])){J[b+8>>2]=d|4;return-1}c=-1;d=J[b+28>>2];J[b+28>>2]=d-1;b:{if((d|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;d=K[c|0];break b}d=td(b,1);if((d|0)==-1)break a}H[a+32|0]=d;c=-1;if(Ds(b,a+33|0))break a;if(Ds(b,a+34|0))break a;c=Ds(b,a+35|0)?-1:0}return c|0}function hKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=J[a+32>>2];J[a+36>>2]=f;a:{e=J[a+48>>2];if(e){while(1){e=kc[J[a+20>>2]](f,e,J[a>>2])|0;if((e|0)==-1)break a;f=e+J[a+36>> +2]|0;J[a+36>>2]=f;e=J[a+48>>2]-e|0;J[a+48>>2]=e;if(e)continue;break}f=J[a+32>>2]}J[a+48>>2]=0;J[a+36>>2]=f;if(!(kc[J[a+28>>2]](b,c,J[a>>2])|0)){J[a+68>>2]=J[a+68>>2]|8;return 0}J[a+56>>2]=b;J[a+60>>2]=c;return 1}J[a+68>>2]=J[a+68>>2]|8;Nc(d,4,2352619,0);J[a+68>>2]=J[a+68>>2]|8;return 0}function X6(a,b){var c=0,d=0,e=0,f=0,g=0;e=J[a>>2];if(e){f=J[(J[a+24>>2]+P(b,204)|0)+200>>2];a=J[a+8>>2];while(1){b=J[a+24>>2];if(b){d=J[a+16>>2];c=J[b+8>>2];a:{if(d&512)break a;c=J[b+12>>2]+J[b+8>>2]|0;if(d&1024)break a; +d=J[a+28>>2]-J[b>>2]|0;if((d|0)<=0){c=J[b+8>>2]+Wc(d,f)|0;break a}c=J[b+12>>2];g=J[b+8>>2];b=J[b+4>>2];if((b|0)<=(d|0)){c=Wc(d-b|0,f)+(c+g|0)|0;break a}c=Od(d,c,b)+g|0}J[a+36>>2]=c;J[a+16>>2]=J[a+16>>2]|32}a=a+40|0;e=e-1|0;if(e)continue;break}}}function Qw(a,b){var c=0,d=0,e=0;a:{while(1){c=d;if((c|0)==255){d=255;break a}e=ih(b);if((e|0)==-1)break a;H[a+c|0]=e;d=c+1|0;b:switch(e-10|0){case 0:break a;case 3:break b;default:continue}break}e=ih(b);if(!((e|0)!=10|(d|0)>=255)){H[a+d|0]=10;d=c+2|0;break a}c= +(e|0)==-1;if(c)break a;c:{if(c)break c;c=J[b+4>>2];if(!c){Oz(b);c=J[b+4>>2];if(!c)break c}if(c>>>0<=J[b+44>>2]-8>>>0)break c;c=c-1|0;J[b+4>>2]=c;H[c|0]=e;J[b>>2]=J[b>>2]&-17}}H[a+d|0]=0;return d?a:0}function Pgb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+20>>2];if((d|0)!=206){e=J[a>>2];J[e+24>>2]=d;J[e+20>>2]=21;kc[J[J[a>>2]>>2]](a)}e=J[a+116>>2];f=J[a+140>>2];if(e>>>0<=f>>>0){b=J[a>>2];J[b+20>>2]=126;kc[J[b+4>>2]](a,-1);return 0}d=J[a+8>>2];if(d){J[d+8>>2]=e;J[d+4>>2]=f;kc[J[d>>2]](a)}d=c;c= +P(J[a+324>>2],J[a+316>>2]);if(d>>>0>>0){d=J[a>>2];J[d+20>>2]=24;kc[J[d>>2]](a)}if(!(kc[J[J[a+448>>2]+12>>2]](a,b)|0))return 0;J[a+140>>2]=c+J[a+140>>2];return c|0}function Fra(a){a=a|0;var b=0,c=0;b=65536;a:{b:{c:{c=J[a+32>>2];if(c>>>0<=32768){b=32768;if(!c)break c}J[a+32>>2]=b;break b}b=0;if(J[a+36>>2]==16777215)break a}while(1){Yv(a,1-(b>>>15|0)|0);b=J[a+32>>2]<<1&65534;J[a+32>>2]=b;if(b|J[a+36>>2]!=16777215)continue;break}}tr(a,1);b=J[a+40>>2];J[a+40>>2]=b-1;if(b)while(1){tr(a,0);b=J[a+40>> +2];J[a+40>>2]=b-1;if(b)continue;break}J[a+40>>2]=0;if(K[a+18|0])while(1){tr(a,1);if(K[a+18|0])continue;break}H[a+19|0]=255}function Dyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:switch(K[a+2253|0]-3|0){case 0:if(J[a+588>>2]<=0)break a;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}break a;case 3:break b;default:break a}if(J[a+588>>2]<=0)break a;while(1){H[b| +0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function psb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1934642260){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];e=J[c+36>>2];J[b+36>>2]=e;H[b+44|0]=K[c+44|0];d=J[c+48>>2];J[b+48>>2]=d;J[b+52>>2]=J[c+52>>2];if(e){d=kc[J[a+152>>2]](e)|0;J[b+40>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[c+40>>2],J[b+36>>2]);d=J[b+48>>2]}if(d){e=b;d=P(P(K[b+44|0],3)+2|0,d);b=kc[J[a+152>>2]](d)|0;J[e+52>>2]=b;if(b){xc(b,J[c+52>>2],d); +return 0}Jc(a,1,0,0);a=1}else a=0;return a|0}function ZMa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-48|0;fc=e;a:{if((b|0)<2)break a;f=J[a+4>>2];b=kc[J[J[f>>2]+60>>2]](f,b,c,d)|0;if(!b)break a;od(od(b,c),836854);c=J[a+8>>2];if(c){J[e+32>>2]=c;ed(b,814176,e+32|0)}if(J[a+12>>2])od(b,814470);if(J[a+16>>2])od(b,815067);J[e+16>>2]=J[a+20>>2];ed(b,815376,e+16|0);c=J[a+24>>2];if(c){J[e>>2]=c;ed(b,815700,e)}if(!J[a+28>>2])od(b,816006);if(J[a+32>>2])od(b,816153);od(b,816950);g=b}fc=e+48|0;return g| +0}function Ni(a,b,c,d,e){var f=0,g=0;if((c|0)<(e|0)){if(!Qg(a,b,c,e))return-1;c=J[a+12>>2];b=J[a+8>>2]}g=e<<2;c=c-e|0;f=J[g+55920>>2]&b>>c;if((f|0)>J[d+g>>2])while(1){if((c|0)<=0){if(!Qg(a,b,c,1))return-1;c=J[a+12>>2];b=J[a+8>>2]}c=c-1|0;f=b>>>c&1|f<<1;e=e+1|0;if((f|0)>J[(e<<2)+d>>2])continue;break}J[a+12>>2]=c;J[a+8>>2]=b;if((e|0)>=17){a=J[a+16>>2];b=J[a>>2];J[b+20>>2]=121;kc[J[b+4>>2]](a,-1);return 0}return K[(J[d+140>>2]+(J[((e<<2)+d|0)+72>>2]+f|0)|0)+17|0]}function Fcb(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;g=K[a+3|0];a:{if(f>>>0<=254){h=255-f|0;H[a+2|0]=(P(h,K[a+2|0])+255>>>8)+(P(P(b,g)+255>>>8|0,f)+255>>>8);H[a+1|0]=(P(K[a+1|0],h)+255>>>8)+(P(P(c,g)+255>>>8|0,f)+255>>>8);e=(P(P(e,g)+255>>>8|0,f)+255>>>8)+(P(g,h)+255>>>8)|0;b=(P(K[a|0],h)+255>>>8)+(P(P(d,g)+255>>>8|0,f)+255>>>8)|0;break a}H[a+1|0]=P(c,g)+255>>>8;H[a+2|0]=P(b,g)+255>>>8;e=P(e,g)+255>>>8|0;b=P(d,g)+255>>>8|0}H[a+3|0]=e;H[a|0]=b}function ztb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+428>>2];c=L[b+ +32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;c=L[b+36>>1];c=c<<8|c>>>8;H[d+12|0]=c;H[d+13|0]=c>>>8;f=d+8|0;c=K[b+38|0];a:{if(!(K[b+42|0]|(c|L[b+40>>1]))){e=6;break a}H[d+14|0]=c;c=L[b+40>>1];e=7;if(!(c|K[b+42|0]))break a;c=c<<8|c>>>8;H[d+15|0]=c;H[d+16|0]=c>>>8;c=K[b+42|0];e=9;if(!c)break a;H[d+17|0]=c;e=10}c=e;return Ce(a,J[b>>2],c,f)|0}function n7(a,b,c,d){var e=0,f=0,g=0,h=0;h=J[a>>2];if(h>>>0>>0){f=1;d=d<<1;b=b-h|0;d=b>>>0>d>>>0?d:b;a:{if(!d){b= +0;break a}b=0;b:{while(1){c:{d:{e=K[b+h|0];switch(e|0){case 0:case 9:case 10:case 12:case 13:case 32:break c;default:break d}}if(e<<24>>24<0)break b;e=K[e+261808|0];if(e>>>0>15)break b;e=e|f<<4;if(!(f&16)){f=e;break c}H[c+g|0]=e;f=1;g=g+1|0}b=b+1|0;if((d|0)!=(b|0))continue;break}b=d}if((f|0)==1)break a;H[c+g|0]=f<<4;g=g+1|0}J[a>>2]=b+h}return g}function KRa(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=fc-400|0;fc=e;O[e+392>>3]=+J[b>>2]*1.52587890625E-5;b=J[a+20>>2];kc[J[J[b>>2]+16>>2]](b, +e+392|0,e+128|0);b=J[a+16>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)>0){b=0;while(1){h=(b<<2)+e|0;g=O[(e+128|0)+(b<<3)>>3]*65536;a:{if(R(g)<2147483648){f=~~g;break a}f=-2147483648}J[h>>2]=f;f=J[a+16>>2];b=b+1|0;if((kc[J[J[f>>2]+28>>2]](f)|0)>(b|0))continue;break}}a=J[a+16>>2];kc[J[J[a>>2]+16>>2]](a,e,c,d);fc=e+400|0}function JRa(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=fc-400|0;fc=e;O[e+392>>3]=+J[b>>2]*1.52587890625E-5;b=J[a+20>>2];kc[J[J[b>>2]+16>>2]](b,e+392|0,e+128|0);b=J[a+16>>2];if((kc[J[J[b>> +2]+28>>2]](b)|0)>0){b=0;while(1){h=(b<<2)+e|0;g=O[(e+128|0)+(b<<3)>>3]*65536;a:{if(R(g)<2147483648){f=~~g;break a}f=-2147483648}J[h>>2]=f;f=J[a+16>>2];b=b+1|0;if((kc[J[J[f>>2]+28>>2]](f)|0)>(b|0))continue;break}}a=J[a+16>>2];kc[J[J[a>>2]+20>>2]](a,e,c,d);fc=e+400|0}function IRa(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=fc-400|0;fc=e;O[e+392>>3]=+J[b>>2]*1.52587890625E-5;b=J[a+20>>2];kc[J[J[b>>2]+16>>2]](b,e+392|0,e+128|0);b=J[a+16>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)>0){b=0;while(1){h= +(b<<2)+e|0;g=O[(e+128|0)+(b<<3)>>3]*65536;a:{if(R(g)<2147483648){f=~~g;break a}f=-2147483648}J[h>>2]=f;f=J[a+16>>2];b=b+1|0;if((kc[J[J[f>>2]+28>>2]](f)|0)>(b|0))continue;break}}a=J[a+16>>2];kc[J[J[a>>2]+24>>2]](a,e,c,d);fc=e+400|0}function QI(a,b,c,d){var e=0,f=0;a:{e=J[b+4>>2];if(!((e|0)==3|!d&(e|0)==2)){e=0;f=J[b+52>>2];if(J[f+8>>2]<=0)break a;while(1){QI(a,J[J[f>>2]+(e<<2)>>2],c,d);e=e+1|0;f=J[b+52>>2];if((e|0)>2])continue;break}break a}e=vc(16);J[699344]=0;d=_(3352,e|0)|0;f=J[699344];J[699344]= +0;b:{if((f|0)!=1){VZ(a,b,d);a=UZ(a,d,J[b+8>>2],O[b+16>>3],O[b+24>>3],O[b+32>>3],O[b+40>>3]);uc(ld(d));break b}a=Z()|0;uc(e);ba(a|0);B()}if(J[b+8>>2]-1>>>0<=1){Pn(c,0,a);return}sd(c,a)}}function HR(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=fc-16|0;fc=e;a:{b:{c:{d:{if((a|0)!=(b|0))e:{f:{f=K[a|0];if((f|0)!=45)break f;a=a+1|0;if((b|0)!=(a|0))break f;break e}h=J[698583];J[698583]=0;a=TF(a,e+12|0,d,gh());d=jc;g=J[698583];g:{if(g){if(J[e+12>>2]!=(b|0))break g;if((g|0)==68)break c;break d}J[698583]= +h;if(J[e+12>>2]==(b|0))break d}}J[c>>2]=4;a=0;break a}if(!d)break b}J[c>>2]=4;a=-1;break a}a=(f|0)==45?0-a|0:a}fc=e+16|0;return a|0}function Cg(a,b,c){var d=0,e=0;d=(c|0)!=0;a:{b:{c:{if(!(a&3)|!c)break c;e=b&255;while(1){if((e|0)==K[a|0])break b;c=c-1|0;d=(c|0)!=0;a=a+1|0;if(!(a&3))break c;if(c)continue;break}}if(!d)break a;d=b&255;if(!((d|0)==K[a|0]|c>>>0<4)){d=P(d,16843009);while(1){e=d^J[a>>2];if((e^-1)&e-16843009&-2139062144)break b;a=a+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a}b=b& +255;while(1){if((b|0)==K[a|0])return a;a=a+1|0;c=c-1|0;if(c)continue;break}}return 0}function uC(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a|!b)break a;d=K[b|0];if(!d)return a;c=b;while(1){f=f+1|0;e=K[c+1|0];c=c+1|0;if(e)continue;break}c=K[a|0];if(!c)break a;h=K[d+775024|0];while(1){b:{if(K[(c&255)+775024|0]!=(h|0))break b;c=a;d=b;e=f;if((a|0)==(b|0))return b;while(1){g=K[d|0];if(K[K[c|0]+775024|0]!=K[g+775024|0])break b;e=e-1|0;if(!e)return a;d=d+1|0;c=c+1|0;if(g)continue;break}return a}c=K[a+1|0]; +a=a+1|0;if(c)continue;break}}return 0}function eC(a){a=a|0;var b=0,c=0;J[a+104>>2]=0;J[a>>2]=836212;a:{b=J[a+224>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+224>>2]=0}T0(a+200|0);b=J[a+204>>2];c=J[a+208>>2];b:{if((b|0)==(c|0))break b;while(1){uc(J[b>>2]);b=b+4|0;if((c|0)!=(b|0))continue;break}b=J[a+208>>2];c=J[a+204>>2];if((b|0)==(c|0))break b;J[a+208>>2]=b+((c-b|0)+3&-4)}b=J[a+200>>2];if(b)uc(b);U0(a+176|0);return a|0}ea(0)|0;Bc();B()}function YF(a, +b,c){var d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;e=fc-16|0;fc=e;a:{if(b>>>0<=1073741807){b:{if(b>>>0<2){H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127;d=a;break b}h=e+8|0;if(b>>>0>=2){g=b+4&-4;d=g-1|0;d=(d|0)==2?g:d}else d=1;to(h,a,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=b}qQ(d,b,c);J[e+4>>2]=0;J[(b<<2)+d>>2]=J[e+4>>2];fc=e+16|0;break a}_d(a);B()}fc=f+16|0;return a}function Mlb(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;j=J[a+16>>2];a:{if(j){c=J[b>>2]+1|0;k=J[a+20>>2];h=j;while(1){i=(h-d>>>1|0)+d|0;e=(i<<3)+k|0;f=J[e>>2];if((f|0)==(c|0)){a=J[((i<<3)+k|0)+4>>2];J[b>>2]=c;return a|0}f=f&2147483647;g=(f|0)==(c|0)?J[e+4>>2]:g;e=c>>>0>f>>>0;d=e?i+1|0:d;h=e?h:i;if(d>>>0>>0)continue;break}if(g)break a}c=0;g=0;if(d>>>0>=j>>>0)break a;a=J[a+20>>2]+(d<<3)|0;c=J[a>>2]&2147483647;g=J[a+4>>2]}J[b>>2]=c;return g|0}function Az(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(a){if(b>>>0<=127)break a;b:{if(!J[J[698634]>>2]){if((b& +-128)==57216)break a;break b}if(b>>>0<=2047){H[a+1|0]=b&63|128;H[a|0]=b>>>6|192;return 2}if(!((b&-8192)!=57344&b>>>0>=55296)){H[a+2|0]=b&63|128;H[a|0]=b>>>12|224;H[a+1|0]=b>>>6&63|128;return 3}if(b-65536>>>0<=1048575){H[a+3|0]=b&63|128;H[a|0]=b>>>18|240;H[a+2|0]=b>>>6&63|128;H[a+1|0]=b>>>12&63|128;return 4}}J[698583]=25;a=-1}else a=1;return a|0}H[a|0]=b;return 1}function pw(a,b,c){var d=0;if(!J[a+12>>2]){kc[b|0](c,J[a+36>>2]);return}a:{d=ef(8);b:{if(!d)break b;J[d+4>>2]=c;J[d>>2]=b;b=ef(8);if(!b){uc(d); +return}J[b>>2]=d;c=P(J[a+4>>2],100);J[a+40>>2]=c;while(1){if((c|0)>2])continue;break}J[b+4>>2]=J[a+20>>2];J[a+20>>2]=b;J[a+24>>2]=J[a+24>>2]+1;b=J[a+28>>2];if(!b)break b;c=J[b>>2];if(!J[c+8>>2])break a;J[c+8>>2]=0;J[a+28>>2]=J[b+4>>2];J[a+32>>2]=J[a+32>>2]-1;uc(b)}return}fa(2349888,2351004,873,2375886);B()}function o8a(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0;e=fc-32|0;fc=e;O[e+8>>3]=c;O[e+16>>3]=b;d=J[a+8>>2];if(!K[d+1|0]){kc[J[J[a>>2]>>2]](a,b,c)|0;d=J[a+8>>2]}J[e+28>>2]=0;f=e+ +28|0;h=Qe(d+4|0,f),i=2,H[h|0]=i;g=J[e+28>>2];O[g+8>>3]=c;O[g>>3]=b;J[d+4>>2]=J[d+4>>2]+1;d=J[a+4>>2];if(d){J[e+28>>2]=512;kc[J[J[d>>2]+308>>2]](d,f)|0;d=J[a+4>>2];kc[J[J[d>>2]+320>>2]](d,e+16|0,e+8|0)|0;a=J[a+4>>2];J[e+28>>2]=512;kc[J[J[a>>2]+312>>2]](a,f)|0}fc=e+32|0;return 1}function YGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=fc-16|0;fc=g;a:{if(!Th(a)){d=g+4|0;J[d>>2]=0;J[d+4>>2]=0;H[d+8|0]=0;J[699344]=0;h=$g(a);e=J[699344];J[699344]=0;if((e|0)==1)break a;while(1){J[699344]=0;f=aa(4975, +a|0,h|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;b:{if(!f){f=0;break b}J[699344]=0;f=ga(5099,a|0,b|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(!f)continue}break}Rc(d)}fc=g+16|0;return f|0}a=Z()|0;Rc(d);ba(a|0);B()}function A$(a,b,c){a=a|0;b=b|0;c=c|0;a:{b=J[a+104>>2];c=J[b+8>>2];if((c|0)>0){b=zj(b,c-1|0);c=J[b>>2];uc(b);b:switch(c|0){case 0:b=J[a+104>>2];c=J[b+8>>2];if((c|0)>0){J[a+100>>2]=J[J[(J[b>>2]+(c<<2)|0)-4>>2]+4>>2];return}J[a+100>>2]=1;return;case 1:break b;default:break a}b= +J[a+8>>2];kc[J[J[b>>2]+276>>2]](b,J[a+28>>2]);return}b=-1;a=J[a+108>>2];c:{if(!a)break c;a=J[a+4>>2];if(J[a+8>>2]==13)break c;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,844646,0)}}function zUa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=xc(vc(2992),a,2992);c=J[b+4>>2];J[699344]=0;f=1<>2]=d;xc(d,J[a+2456>>2],4<>2];J[699344]=0;d=aa(3551,c|0,8)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b+2460>>2]=d;xc(d,J[a+ +2460>>2],c<<3);J[699344]=0;a=aa(3551,f|0,8)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[b+2468>>2]=a;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function pka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(c>>>0>>0){e=fc-16|0;fc=e;c=b-c|0;if(c){d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(K[a+11|0]>>>7|0)b=J[a+4>>2];else b=K[a+11|0]&127;if(d-b>>>0>>0)az(a,d,b+(c-d|0)|0,b,b,0);if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;QF(d+b|0,c,0);f=a;a=b+c|0;kl(f, +a);H[e+15|0]=0;H[a+d|0]=K[e+15|0]}fc=e+16|0;break a}c=a;if(K[a+11|0]>>>7|0)a=J[a>>2];vv(c,a,b)}}function d8a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;J[a>>2]=d;g=a,h=tM(b),H[g+4|0]=h;d=tM(c);J[a+8>>2]=e;H[a+5|0]=d;d=$n(a+12|0,b);c=$n(a+20|0,c);J[699344]=0;e=_(2250,a+28|0)|0;b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){f=Ac(a+36|0,0,84);J[699344]=0;$(2502,a|0);b=J[699344];J[699344]=0;if((b|0)==1)break b;return a|0}b=Z()|0;break a}b=Z()|0;$m(a+108|0);zq(a+96|0);zq(a+84|0);zq(a+72|0);zq(a+ +60|0);$4(a+48|0);$4(f);ij(e)}ij(c);ij(d);ba(b|0);B()}function cV(a,b){var c=0,d=0,e=0;c=fc-16|0;fc=c;d=J[a+12>>2];if(!(d&131072)){e=J[a+596>>2];if(e){if(d&512)uc(e);J[a+596>>2]=0}b=b>>>0<4294966272?b+1023&-1024:0;J[a+600>>2]=b;a:{b:{if((b|0)<=0){J[a+12>>2]=J[a+12>>2]|512;break b}b=Dc(b);J[a+596>>2]=b;J[a+12>>2]=J[a+12>>2]|512;if(!b)break b;b=1;if(J[a+600>>2])break a}b=J[a+628>>2];d=J[a>>2];J[c+4>>2]=J[a+472>>2];J[c>>2]=d;Uc(b,83376,76651,c);J[a+600>>2]=0;b=0}fc=c+16|0;return b}fa(75579,76157,597, +83376);B()}function Sya(a,b,c){a=a|0;b=b|0;c=Q(c);var d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2397928;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[699344]=0;ia(5597,a|0,b|0,d|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)a:{a=J[d+8>>2];if(a)while(1){f=J[a+8>>2];e=J[J[f>>2]+52>>2];J[699344]=0;Db(e|0,f|0,b|0,Q(c));e=J[699344];J[699344]=0;if((e|0)==1)break a;a=J[a>>2];if(a)continue;break}id(d);fc=d+16|0;return}a=Z()|0;id(d);ba(a|0);B()}function Mtb(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;d=J[a+428>>2];e=d+8|0;a:{b:switch(K[b+33|0]){case 0:c=L[b+36>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=2;break a;case 2:c=L[b+38>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+40>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;c=L[b+42>>1];c=c<<8|c>>>8;H[d+12|0]=c;H[d+13|0]=c>>>8;c=6;break a;case 3:break b;default:break a}H[e|0]=K[b+34|0];c=1}return Ce(a,J[b>>2],c,e)|0}function yx(a){var b=0,c=0,d=0;c=-2;a:{if(!J[a+36>>2]|(!a|!J[a+32>>2]))break a; +b=J[a+28>>2];if(!b|J[b>>2]!=(a|0)|J[b+4>>2]-16180>>>0>31)break a;c=0;J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+32>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;d=J[b+12>>2];if(d)J[a+48>>2]=d&1;J[b+60>>2]=0;J[b+64>>2]=0;J[b+36>>2]=0;J[b+24>>2]=32768;J[b+16>>2]=0;J[b+4>>2]=16180;J[b+8>>2]=0;J[b+7108>>2]=1;J[b+7112>>2]=-1;a=b+1332|0;J[b+112>>2]=a;J[b+84>>2]=a;J[b+80>>2]=a}return c}function WHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=J[c>>2];d=J[b+4>>2];a:{b:{if(!d){e=b+4|0;f=e;break b}while(1){f= +d;e=J[d+16>>2];if((e|0)>(g|0)){e=d;d=J[d>>2];if(d)continue;break b}if((e|0)>=(g|0)){b=0;break a}d=J[f+4>>2];if(d)continue;break}e=f+4|0}d=vc(24);J[d+16>>2]=g;c=J[c+4>>2];J[d+8>>2]=f;J[d>>2]=0;J[d+4>>2]=0;J[d+20>>2]=c;J[e>>2]=d;f=d;c=J[J[b>>2]>>2];if(c){J[b>>2]=c;f=J[e>>2]}Oc(J[b+4>>2],f);J[b+8>>2]=J[b+8>>2]+1;b=1}H[a+4|0]=b;J[a>>2]=d}function ix(a){var b=0;if(a){b=J[a>>2];if(b)kc[J[663199]](b);J[a>>2]=0;b=J[a+12>>2];if(b)kc[J[663199]](b);J[a+12>>2]=0;b=J[a+16>>2];if(b)kc[J[663199]](b);J[a+16>>2]= +0;b=J[a+24>>2];if(b)kc[J[663199]](b);J[a+24>>2]=0;b=J[a+32>>2];if(b)kc[J[663199]](b);J[a+32>>2]=0;b=J[a+4>>2];if(b)kc[J[663199]](b);J[a+4>>2]=0;b=J[a+8>>2];if(b)kc[J[663199]](b);J[a+8>>2]=0;b=J[a+28>>2];if(b)kc[J[663199]](b);J[a+28>>2]=0;b=J[a+40>>2];if(b)kc[J[663199]](b);J[a+40>>2]=0}}function ip(a){a=a|0;var b=0;J[a>>2]=47868;b=J[a+1028>>2];if(b)uc(b);b=J[a+1060>>2];if(b)uc(b);b=J[a+1064>>2];if(b)uc(b);b=J[a+1068>>2];if(b)uc(b);b=J[a+1072>>2];if(b)uc(b);b=J[a+1076>>2];if(b)uc(b);b=J[a+1052>>2]; +if(b)uc(b);b=J[a+1112>>2];if(b)uc(b);b=J[a+1116>>2];if(b)uc(b);J[a>>2]=1032;J[699344]=0;_(13,a|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[699344]=0;_(14,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return a|0}function fY(a){a=a|0;var b=0,c=0;J[a>>2]=2375924;a:{b=J[a+4>>2];c=J[b+12>>2];b:{c:{if(c){J[699344]=0;$(4897,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+4>>2];c=J[b+12>>2];if(c){uc(aY(c));b=J[a+4>>2]}J[b+12>>2]=0;break c}c=J[b+8>>2];if(!c)break b;kc[J[J[c>> +2]+4>>2]](c);b=J[a+4>>2]}J[b+8>>2]=0}b=J[b+4>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[J[a+4>>2]+4>>2]=0}return a|0}ea(0)|0;Bc();B()}function Vya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+8>>2]=0;J[d+12>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[d>>2]=2397928;J[d+4>>2]=0;J[d+8>>2]=0;J[d+12>>2]=0;J[699344]=0;ia(5597,a|0,b|0,d|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)a:{a=J[d+8>>2];if(a)while(1){f=J[a+8>>2];e=J[J[f>>2]+40>>2];J[699344]= +0;ca(e|0,f|0,b|0,c|0);e=J[699344];J[699344]=0;if((e|0)==1)break a;a=J[a>>2];if(a)continue;break}id(d);fc=d+16|0;return}a=Z()|0;id(d);ba(a|0);B()}function NVa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+4>>2]=7;J[a>>2]=b;h=a,i=Gd(7,4),J[h+12>>2]=i;c=J[a+4>>2];a:{if((c|0)<=0)break a;b=0;if(c>>>0>=4){g=c&-4;while(1){d=b<<2;J[d+J[a+12>>2]>>2]=0;J[J[a+12>>2]+(d|4)>>2]=0;J[J[a+12>>2]+(d|8)>>2]=0;J[J[a+12>>2]+(d|12)>>2]=0;b=b+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}c=c&3;if(!c)break a;while(1){J[J[a+ +12>>2]+(b<<2)>>2]=0;b=b+1|0;f=f+1|0;if((c|0)!=(f|0))continue;break}}J[a+8>>2]=0;return a|0}function ER(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=fc-16|0;fc=f;e=fc-16|0;fc=e;a:{if(b>>>0<=2147483631){b:{if(b>>>0<11){H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127;d=a;break b}h=e+8|0;if(b>>>0>=11){g=b+16&-16;d=g-1|0;d=(d|0)==11?g:d}else d=10;Vs(h,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=b}QF(d,b,c);H[e+7|0]=0;H[b+d|0]=K[e+7| +0];fc=e+16|0;break a}_d(a);B()}fc=f+16|0;return a}function xra(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{f=a?J[a+8>>2]:0;c=b+1|0;b:{if((f|0)<=(c|0))break b;c:{if(c){e=!a;d=c;d:{if(!a)break d;d=c;if((b|0)>-2)break d;d=c+J[a+8>>2]|0}if(e|(d|0)<0|J[a+8>>2]<(d|0))break a;e=J[a+12>>2];break c}if(!a)break b;e=J[a+12>>2]}if(K[d+e|0]==47){d=b+2|0;e:{if(!d){c=0;break e}c=d;c=!a|(b|0)>-3?c:J[a+8>>2]+c|0;if(!a|(c|0)<0|J[a+8>>2]<(c|0))break a}c=K[c+e|0]==47?b+3|0:d}a=Bo(a,47,c);f=(a|0)>0?a:f}return f|0}CH();B()} +function mvb(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;var h=0,i=0,j=0,k=0;a:{if(f){if(!d)break a;a=c<<1;k=b<<1;b=0;while(1){h=L[e>>1];b:{if((h|0)==L[f>>1]){I[g>>1]=h;break b}h=K[e|0]|K[e+1|0]<<8;i=h>>>8|0;j=K[f|0]|K[f+1|0]<<8;h=((h<<8|i)&65535)+((P(((j<<8|j>>>8)&65535)-((i|h<<8)&65535)|0,k)+c|0)/(a|0)|0)&65535;h=h<<8|h>>>8;H[g|0]=h;H[g+1|0]=h>>>8}f=f+2|0;e=e+2|0;g=g+2|0;b=b+1|0;if((d|0)!=(b|0))continue;break}break a}xc(g,e,d<<1)}return 0}function eSa(a,b){a=a|0;b=b|0;var c=0,d=0;J[b>> +2]=0;a:{b:{c=O[a+64>>3];if(c>0){c=c*65536;if(!(R(c)<2147483648))break b;d=~~c;break a}c=O[a+72>>3];if(!(c<0))break a;c=c*65536;if(!(R(c)<2147483648))break b;d=~~c;break a}d=-2147483648}J[b+4>>2]=d;c:{d:{c=O[a+80>>3];if(c>0){c=c*65536;if(!(R(c)<2147483648))break d;J[b+8>>2]=~~c;return}c=O[a+88>>3];a=0;if(!(c<0))break c;c=c*65536;if(!(R(c)<2147483648))break d;J[b+8>>2]=~~c;return}a=-2147483648}J[b+8>>2]=a}function TBa(a){a=a|0;var b=0,c=0,d=0;b=vc(60);J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2413904;J[b+4>> +2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+32>>2]=0;J[699344]=0;d=aa(5250,b+8|0,2413936)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[699344]=0;c=b+36|0;J[c+20>>2]=-1;J[c+12>>2]=-1;J[c+16>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2401300;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;Md(d);break a}J[a>>2]=0;vd(a,b);return}a=Z()|0}uc(nd(b));ba(a|0);B()}function Ij(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(!J[a+4>>2]|!J[a+44>>2])break a;if(!(!((b|c)<0|J[a+16>>2]<=(b|0))&J[a+20>>2]>(c|0))){d= +J[a+336>>2];if((d|0)>=0)break a;d=K[J[a+56>>2]];break a}e=L[a+26>>1];if((e|0)==8){d=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0];break a}a=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0];b:switch(e-1|0){case 3:b=(b^-1)<<2&4;d=(a&15<>>b|0;break a;case 0:break b;default:break a}b=(b^-1)&7;d=(a&1<>>b|0}return d&255}function $Ma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+68>>2];a:{if((b|0)>=J[a+20>>2]){b=-1;if(J[a+40>>2])break a;if(!$I(a))break a;b=J[a+68>>2]}g=J[a+60>>2];d=J[a+72>>2];c=J[g+(d<< +2)>>2]-b|0;b:{if((c|0)<=7){h=J[a+20>>2];b=8;while(1){f=(b|0)>(c|0)?c:b;e=(d&1?0:255>>>8-f|0)|e<>2];if((c|0)>=(h|0)){e=e<>2]-c|0}if((b|0)>0)continue;break}break b}e=d&1?0:255}b=J[a+36>>2]^e}return b|0}function wL(a){var b=0,c=0,d=0,e=0,f=0;if(!a)return-102;f=-100;a:{if(!(J[a+96>>2]|J[a+100>>2]))break a;c=J[a+56>>2];b=J[a+60>>2];d=J[a+84>>2];e=J[a+80>>2]+1|0;d=e?d:d+1|0;if((c|0)==(e|0)&(b|0)==(d|0)&((c|0)!=65535|(b|0)!=0))break a; +J[a+80>>2]=e;J[a+84>>2]=d;c=J[a+92>>2];b=(J[a+176>>2]+(J[a+168>>2]+J[a+172>>2]|0)|0)+46|0;e=b;b=b+J[a+88>>2]|0;c=e>>>0>b>>>0?c+1|0:c;J[a+88>>2]=b;J[a+92>>2]=c;f=Xr(a,a+128|0,a+216|0,0,0);J[a+96>>2]=!f;J[a+100>>2]=0}return f}function lk(a){a=a|0;var b=0,c=0,d=0;b=fc-16|0;fc=b;if(!K[a+32|0])Sp(a,0);c=b+8|0;Pj(c,a,0);J[699344]=0;da(6232,b|0,c|0);d=J[699344];J[699344]=0;if((d|0)==1){a=Z()|0;wc(c);ba(a|0);B()}wc(b+8|0);J[699344]=0;d=pd(b,14210,-1);c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;c=0;if(!d){a= +J[a+8>>2];if(J[a+8>>2]<=4){J[699344]=0;ka(5289);a=J[699344];J[699344]=0;if((a|0)==1)break a;B()}c=K[J[a+12>>2]+5|0]==47}wc(b);fc=b+16|0;return c|0}a=Z()|0;wc(b);ba(a|0);B()}function e0(a,b,c){var d=0,e=0,f=0,g=0;d=fc-80|0;fc=d;a:{b:switch(c|0){case 0:od(J[a+40>>2],835453);break a;case 1:a=J[a+40>>2];O[d>>3]=O[b>>3];ed(a,835672,d);break a;case 3:a=J[a+40>>2];e=O[b>>3];f=O[b+8>>3];O[d+32>>3]=O[b+16>>3];O[d+24>>3]=f;O[d+16>>3]=e;ed(a,835944,d+16|0);break a;case 4:break b;default:break a}a=J[a+40>>2]; +e=O[b>>3];f=O[b+8>>3];g=O[b+16>>3];O[d+72>>3]=O[b+24>>3];O[d- -64>>3]=g;O[d+56>>3]=f;O[d+48>>3]=e;ed(a,836166,d+48|0)}fc=d+80|0}function ck(a,b){a=a|0;b=b|0;var c=0;if(b){c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;c=J[b+48>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=c;c=J[b+40>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=c;c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c;xc(a+52|0,b+52|0,908);J[a+4>>2]=J[b+4>>2];J[a+8>>2]=J[b+8>>2];J[a+960>>2]=J[b+960>>2];J[a+ +964>>2]=J[b+964>>2];J[a+968>>2]=J[b+968>>2];c=J[b+972>>2];J[a+60>>2]=b;J[a+972>>2]=c}}function U0(a){var b=0,c=0,d=0,e=0;J[a+20>>2]=0;c=J[a+8>>2];b=J[a+4>>2];d=c-b>>2;if(d>>>0>=3)while(1){uc(J[b>>2]);b=J[a+4>>2]+4|0;J[a+4>>2]=b;c=J[a+8>>2];d=c-b>>2;if(d>>>0>2)continue;break}e=256;a:switch(d-1|0){case 1:e=512;case 0:J[a+16>>2]=e;break;default:break a}b:{if((b|0)==(c|0))break b;while(1){uc(J[b>>2]);b=b+4|0;if((c|0)!=(b|0))continue;break}b=J[a+8>>2];c=J[a+4>>2];if((b|0)==(c|0))break b;J[a+8>>2]=b+((c- +b|0)+3&-4)}a=J[a>>2];if(a)uc(a)}function KCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc+-64|0;fc=c;if(J[a+12>>2]>0){d=J[a+16>>2];while(1){J[c+52>>2]=K[d|0];J[c+48>>2]=e;md(b,209993,c+48|0);f=J[d+4>>2];J[c+44>>2]=J[d+8>>2];J[c+40>>2]=e;J[c+36>>2]=f;J[c+32>>2]=e;md(b,210033,c+32|0);f=K[d+1|0];J[c+28>>2]=K[d+2|0];J[c+24>>2]=e;J[c+20>>2]=f;J[c+16>>2]=e;md(b,210085,c+16|0);J[c+4>>2]=J[d+12>>2];J[c>>2]=e;md(b,210166,c);d=d+16|0;e=e+1|0;if((e|0)>2])continue;break}}fc=c- -64|0;return 0}function $o(a, +b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=J[a+4>>2];if((d|0)>=0){a:{if(J[a>>2]==(d|0)){O[b>>3]=O[a+16>>3];O[c>>3]=O[a+24>>3];f=1;b=d-1|0;break a}if(!d){O[b>>3]=O[a+32>>3];O[c>>3]=O[a+40>>3];f=2;b=-1;break a}g=O[a+64>>3];h=g+O[a+48>>3];O[a+48>>3]=h;e=O[a+72>>3];i=O[a+88>>3];O[a+72>>3]=e+i;O[a+56>>3]=e+O[a+56>>3];e=O[a+80>>3];O[a+80>>3]=e+O[a+96>>3];O[a+64>>3]=g+e;O[a+88>>3]=i+O[a+104>>3];O[b>>3]=h;O[c>>3]=O[a+56>>3];f=2;b=d-1|0}J[a+4>>2]=b}return f}function mAa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16| +0;fc=d;c=J[c>>2];e=J[c+32>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+32>>2];break a}wr(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[699344]=0;ca(5525,a|0,b|0,c+8|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}a=Z()|0;id(d);ba(a|0);B()}id(d)}fc=d+16|0}function jn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(!J[a+4>>2]|(b|c)<0|(!J[a+44>>2]|J[a+16>>2]<= +(b|0)))break a;if(J[a+20>>2]<=(c|0))break a;e=L[a+26>>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0]=d;return}a=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0;b:switch(e-1|0){case 3:c=a;e=K[a|0];a=(b^-1)<<2&4;H[c|0]=e&(15<>2]=31;J[a+8>>2]=0;c=Gd(31,8);J[a>>2]=c;e=J[a+4>>2];a:{if((e|0)<=0)break a;if(e>>>0>=8){h=e&-8;while(1){b= +d<<3;J[b+c>>2]=0;J[(b|8)+c>>2]=0;J[(b|16)+c>>2]=0;J[(b|24)+c>>2]=0;J[(b|32)+c>>2]=0;J[(b|40)+c>>2]=0;J[(b|48)+c>>2]=0;J[(b|56)+c>>2]=0;d=d+8|0;f=f+8|0;if((h|0)!=(f|0))continue;break}}b=e&7;if(!b)break a;while(1){J[(d<<3)+c>>2]=0;d=d+1|0;g=g+1|0;if((b|0)!=(g|0))continue;break}}return a|0}function Zv(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2432136;c=J[a+12>>2];if(c){b=J[c+24>>2];if(b)while(1){d=J[b>>2];uc(b);J[c+24>>2]=d;b=d;if(b)continue;break}b=J[c>>2];if(b)uc(b);uc(c)}c=J[a+16>>2];if(c){b=J[c+24>>2];if(b)while(1){d= +J[b>>2];uc(b);J[c+24>>2]=d;b=d;if(b)continue;break}b=J[c>>2];if(b)uc(b);uc(c)}c=J[a+20>>2];if(c){b=J[c+24>>2];if(b)while(1){d=J[b>>2];uc(b);J[c+24>>2]=d;b=d;if(b)continue;break}b=J[c>>2];if(b)uc(b);uc(c)}return nd(a)|0}function Vn(a){var b=0,c=0;if(a){c=J[a+20>>2];if(c){b=J[c+12>>2];a:{b:{c:{if((b|0)==3){b=J[c+16>>2];if(!b)break c;break b}if((b|0)==2)break a}b=J[c>>2];if(!b)break a}kc[J[663199]](b)}kc[J[663199]](c);J[a+20>>2]=0}b=J[a+8>>2];if(b)kc[b|0](J[a>>2])|0;c=J[a+16>>2];if(c){b=J[c+12>>2];d:{e:{f:{if((b| +0)==3){b=J[c+16>>2];if(!b)break f;break e}if((b|0)==2)break d}b=J[c>>2];if(!b)break d}kc[J[663199]](b)}kc[J[663199]](c);J[a+16>>2]=0}kc[J[663199]](a)}}function Nh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;if(!e|(c-b|0)<5)break a;xv(b,c);f=c-4|0;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;if(K[a+11|0]>>>7|0)a=J[a>>2];c=a;a=e+a|0;b:{while(1){c:{e=H[c|0];if(b>>>0>=f>>>0)break c;if(!((e|0)<=0|(e|0)>=127)&(e|0)!=J[b>>2])break b;b=b+4|0; +c=((a-c|0)>1)+c|0;continue}break}if((e|0)<=0|(e|0)>=127|H[c|0]>>>0>J[f>>2]-1>>>0)break a}J[d>>2]=4}}function tS(a,b,c,d){var e=0,f=0,g=0;e=fc-16|0;fc=e;J[e+8>>2]=b;J[e+12>>2]=a;J[e+4>>2]=c;J[e>>2]=d;f=oG(a,b,c);a:{if(!(O[d>>3]>3]))break a;c=J[e+4>>2];g=O[c>>3];d=c;c=J[e>>2];O[d>>3]=O[c>>3];O[c>>3]=g;if(!(O[J[e+4>>2]>>3]>3])){f=f+1|0;break a}b=J[e+8>>2];g=O[b>>3];c=b;b=J[e+4>>2];O[c>>3]=O[b>>3];O[b>>3]=g;if(!(O[J[e+8>>2]>>3]>3])){f=f+2|0;break a}f=f+3|0;a=J[e+12>>2];g=O[a>>3];b=a;a= +J[e+8>>2];O[b>>3]=O[a>>3];O[a>>3]=g}fc=e+16|0;return f}function rob(a,b){a=a|0;b=b|0;var c=0;if(J[b+72>>2]==1651078259){c=J[a>>2];J[a+20>>2]=J[b+100>>2];J[a+24>>2]=J[b+104>>2];a=a+28|0;if(H[J[b+156>>2]+4|0]&1){c=J[b+80>>2];J[a>>2]=J[b+76>>2];J[a+4>>2]=c;c=J[b+96>>2];J[a+16>>2]=J[b+92>>2];J[a+20>>2]=c;c=J[b+88>>2];J[a+8>>2]=J[b+84>>2];J[a+12>>2]=c;a=J[b+156>>2];J[a+4>>2]=J[a+4>>2]&-2;return 0}if(a){J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}a=K7(c,b+76|0,a)}else a=18; +return a|0}function pZ(a,b){var c=0,d=0,e=0;a:{if(K[a+9|0]!=16)break a;c=P(J[a>>2],K[a+10|0]);if(!c)break a;if(c>>>0>=4){e=c&-4;a=0;while(1){d=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=d;d=K[b+2|0];H[b+2|0]=K[b+3|0];H[b+3|0]=d;d=K[b+4|0];H[b+4|0]=K[b+5|0];H[b+5|0]=d;d=K[b+6|0];H[b+6|0]=K[b+7|0];H[b+7|0]=d;b=b+8|0;a=a+4|0;if((e|0)!=(a|0))continue;break}}c=c&3;if(!c)break a;a=0;while(1){e=K[b+1|0];H[b+1|0]=K[b|0];H[b|0]=e;b=b+2|0;a=a+1|0;if((c|0)!=(a|0))continue;break}}}function oW(a,b,c){a=a|0;b=b|0;c=c|0;var d= +0,e=0;d=fc-16|0;fc=d;c=J[c>>2];e=J[c+12>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+12>>2];break a}wr(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[699344]=0;ca(5521,a|0,b|0,c+8|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}a=Z()|0;id(d);ba(a|0);B()}id(d)}fc=d+16|0}function nW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;c=J[c>>2];e=J[c+16>>2];a:{if(e){J[e+ +4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+16>>2];break a}wr(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[699344]=0;ca(5522,a|0,b|0,c+8|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}a=Z()|0;id(d);ba(a|0);B()}id(d)}fc=d+16|0}function mW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;c=J[c>>2];e=J[c+20>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+20>>2];break a}wr(d,c, +1);b:{c=J[d+8>>2];c:{if(c)while(1){J[699344]=0;ca(5523,a|0,b|0,c+8|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}a=Z()|0;id(d);ba(a|0);B()}id(d)}fc=d+16|0}function lW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;c=J[c>>2];e=J[c+28>>2];a:{if(e){J[e+4>>2]=J[e+4>>2]+1;J[a>>2]=J[c+28>>2];break a}wr(d,c,1);b:{c=J[d+8>>2];c:{if(c)while(1){J[699344]=0;ca(5524, +a|0,b|0,c+8|0);e=J[699344];J[699344]=0;if((e|0)==1)break c;if(J[a>>2])break b;J[a>>2]=0;c=J[c>>2];if(c)continue;break}J[a>>2]=0;J[699344]=0;aa(5145,a|0,0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break b}a=Z()|0;id(d);ba(a|0);B()}id(d)}fc=d+16|0}function jya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[b>>2];J[a+4>>2]=0;J[a>>2]=c;d=J[b+8>>2];J[a+8>>2]=d;f=J[b+12>>2];J[a+12>>2]=f;e=J[b+16>>2];J[a+16>>2]=e;g=J[b+20>>2];J[a+20>>2]=g;if((d|0)<=(f|0)){h=vc(P(J[c>>2],(f-d|0)+1|0));J[a+4>>2]=h;g=J[a+20>> +2];e=J[a+16>>2]}if((e|0)<=(g|0)){c=J[a>>2];d=J[c+12>>2];kc[d|0](kc[J[c+4>>2]](h,e-J[a+8>>2]|0)|0,kc[J[J[a>>2]+4>>2]](J[b+4>>2],J[a+16>>2]-J[a+8>>2]|0)|0,(J[a+20>>2]-J[a+16>>2]|0)+1|0,0)}return a|0}function ew(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=ql(b);c=J[J[a+12>>2]+((d>>>0)%M[a+8>>2]<<2)>>2];a:{if(c)while(1){if((d|0)==J[c+12>>2])if(Bm(c+16|0,b))break a;c=J[c+8>>2];if(c)continue;break}c=vc(56);J[c>>2]=0;J[c+4>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;J[c+ +24>>2]=0;J[c+28>>2]=0;d=c+16|0;J[d>>2]=0;J[d+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;b=mk(d,b);J[c+52>>2]=0;e=c,f=ql(b),J[e+12>>2]=f;Em(a,c)}return c|0}function TAa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;J[d+12>>2]=0;vd(d+12|0,a);J[699344]=0;b=ga(5335,J[d+12>>2],b|0,c|0)|0;a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(c)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]= +0;if((a|0)==1)break a}fc=d+16|0;return b|0}a=Z()|0;zc(d+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Bta(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;a=J[a+12>>2];if(a){c=J[a+20>>2];if((c|0)<=0)b=0;else{g=J[a>>2];while(1){h=(d<<4)+g|0;a=0;while(1){e=b;f=(a>>>2&1073741820)+h|0;b=J[f>>2];if(b)b=J[((a&14)<<2)+b>>2];else b=i;e=e+((b|0)!=0)|0;b=J[f>>2];if(b)b=J[(b+((a&14)<<2)|0)+4>>2];else b=0;b=e+((b|0)!=0)|0;a=a+2|0;if((a|0)!=64)continue;break}d=d+1|0;if((c|0)!=(d|0))continue;break}b=P(b,100)}a=c<<6}else a= +0;return(b|0)/((a>>>0<=1?1:a)|0)|0}function r3(a,b){var c=0,d=0;c=fc-512|0;fc=c;J[c+24>>2]=J[184161];d=J[184160];J[c+16>>2]=J[184159];J[c+20>>2]=d;d=J[184158];J[c+8>>2]=J[184157];J[c+12>>2]=d;d=J[184156];J[c>>2]=J[184155];J[c+4>>2]=d;a:{if(J[b>>2]>0)break a;H[c+8|0]=1;a=jg(a,c+28|0,c,b);s3(c+252|0,a,c,b);if(!a|!K[a+17|0])break a;b=J[a+4>>2];b:{if(b){b=b-1|0;J[a+4>>2]=b;if(b)break b}if(K[a+16|0])break b;b=J[J[a+20>>2]+8>>2];if(b)kc[b|0](a);b=J[a+8>>2];if(b)Vh(b);Nf(a)}}fc=c+512|0}function mY(a){var b= +0,c=0,d=0;a:{if(!a)break a;b=J[a+8>>2];if(!b)break a;a=J[a+12>>2];if(b>>>0>=4){d=b&-4;while(1){J[a+12>>2]=0;J[a+4>>2]=999;J[a+8>>2]=0;J[a+60>>2]=0;J[a+52>>2]=999;J[a+56>>2]=0;J[a+44>>2]=0;J[a+36>>2]=999;J[a+40>>2]=0;J[a+28>>2]=0;J[a+20>>2]=999;J[a+24>>2]=0;a=a- -64|0;c=c+4|0;if((d|0)!=(c|0))continue;break}}b=b&3;if(!b)break a;c=0;while(1){J[a+12>>2]=0;J[a+4>>2]=999;J[a+8>>2]=0;a=a+16|0;c=c+1|0;if((b|0)!=(c|0))continue;break}}}function PC(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=770016;J[a>>2]=769992;a:{if(!J[a+ +40>>2])break a;c=J[a+36>>2];d=J[c>>2];b=J[J[a+32>>2]+4>>2];J[d+4>>2]=b;J[b>>2]=d;J[a+40>>2]=0;d=a+32|0;if((d|0)==(c|0))break a;while(1){b=J[c+4>>2];uc(c);c=b;if((d|0)!=(b|0))continue;break}}J[a+8>>2]=769860;b=J[a+12>>2];J[699344]=0;$(3243,b|0);b=J[699344];J[699344]=0;if((b|0)!=1){J[a+12>>2]=0;b=J[a+16>>2];if(b)uc(b);J[a+16>>2]=0;J[a+20>>2]=0;return a|0}ea(0)|0;Bc();B()}function Xv(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-32|0;fc=b;if(K[a+18|0]<=24){e=a+17|0;while(1){a:{c=J[a+12>>2];if(kc[J[J[c>>2]+8>>2]](c, +e,1)|0){c=K[e|0];break a}c=255;H[a+17|0]=255;d=K[a+19|0]-1|0;H[a+19|0]=d;if(d&255)break a;a=Qc(b+8|0,J[685886],2394966,768,2438448,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0)}B()}d=K[a+18|0]+8|0;H[a+18|0]=d;J[a+36>>2]=J[a+36>>2]<<8|c;if((d&255)>>>0<25)continue;break}}fc=b+32|0}function mcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0]; +H[a+3|0]=f+e-(P(e,f)+255>>>8);h=K[a+2|0];g=P(h,e);h=b+h|0;b=P(b,f);H[a+2|0]=h-(((b>>>0>>0?b:g)<<1)+255>>>8|0);g=K[a+1|0];b=P(g,e);g=c+g|0;c=P(c,f);H[a+1|0]=g-(((b>>>0>c>>>0?c:b)<<1)+255>>>8|0);c=K[a|0];b=P(c,e);e=a;a=P(d,f);H[e|0]=c+d-(((a>>>0>>0?a:b)<<1)+255>>>8)}}function JH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;J[a+4>>2]=0;d=J[a+24>>2];J[a+24>>2]=0;c=a+16|0;xe(c,0,4);J[a+8>>2]=b;xe(c,b,4);ri(c,4,0);if(d){g=J[a+8>>2];e=J[a+4>>2];while(1){b=d;f=J[a+12>>2]+(M[b+12>>2]%(g>>>0)<<2)|0;c=J[f>> +2];J[b+8>>2]=c;J[b+4>>2]=c;d=J[b>>2];a:{b:{if(c){J[b>>2]=J[c>>2];J[c>>2]=b;c=J[b>>2];if(c)break b;break a}c=J[a+24>>2];J[b>>2]=c;J[a+24>>2]=b;if(!c)break a}J[c+4>>2]=b}J[f>>2]=b;e=e+1|0;if(d)continue;break}J[a+4>>2]=e}}function Hea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-16|0;fc=d;J[d+12>>2]=b;a:{b:{c=K[a+11|0];e=c>>>7|0;c:{if(!e){c=c&127;b=1;break c}c=J[a+4>>2];b=(J[a+8>>2]&2147483647)-1|0}if((b|0)==(c|0)){$y(a,b,1,b,b,0);d:if(K[a+11|0]>>>7|0)break d;break b}e:if(K[a+11|0]>>>7|0)break e;if(e)break b; +b=a;H[a+11|0]=c+1|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;break a}b=J[a>>2];J[a+4>>2]=c+1}a=(c<<2)+b|0;J[a>>2]=J[d+12>>2];J[d+8>>2]=0;J[a+4>>2]=J[d+8>>2];fc=d+16|0}function yzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){c=J[J[a+544>>2]+88>>2];d=J[c+1176>>2]+P(J[c+1168>>2],J[a+572>>2])|0;c=J[a+644>>2];while(1){b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;e=b<<8|b>>>8;H[c|0]=e;H[c+1|0]=e>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=K[d+2|0]|K[d+3|0]<<8;b=(b<<8|b>>>8)&65535; +b=b<<8|b>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;c=c+8|0;d=d+4|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function lAa(a,b){a=a|0;b=b|0;var c=0;Ho(a);c=J[a>>2];a:{b=J[b+8>>2];if(b){J[699344]=0;da(5526,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[J[c>>2]+20>>2];J[699344]=0;ha(b|0,c|0,0,0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[J[c>>2]+28>>2];J[699344]=0;b=_(b|0,c|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(!b){J[699344]=0;aa(5145,a|0,0)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break a}return}b=Z()|0;zc(a);ba(b|0);B()}function hzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){h=K[d|0];e=6;d=d+1|0;b=192}f=(b&h)>>>e|0;H[c|0]=f>>>0<4?P(f,85):0;e=e-2|0;c=c+2|0;b=(b&252)>>>2|0;g=g+1|0;if((g|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0} +function czb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){h=K[d|0];e=6;d=d+1|0;b=192}f=(b&h)>>>e|0;H[c|0]=f>>>0<4?P(f,85):0;e=e-2|0;c=c+4|0;b=(b&252)>>>2|0;g=g+1|0;if((g|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function GS(a,b,c,d,e){var f=0,g=0,h=0;h=-1;g=d&2147483647; +f=(g|0)==2147418112;a:{if(f&!c?a|b:f&(c|0)!=0|g>>>0>2147418112)break a;f=e&2147483647;if(((f|0)==2147418112&0|f>>>0>2147418112)&(f|0)!=2147418112)break a;if(!(a|c|(f|g|b)))return 0;f=d&e;if((f|0)>0)f=1;else f=(f|0)>=0;if(f){if(((c|0)!=0|(d|0)!=(e|0))&(d|0)<(e|0))break a;return(a|c|(d^e|b))!=0}if(!c&(d|0)==(e|0)?a|b:(c|0)!=0&(d|0)>=(e|0)|(d|0)>(e|0))break a;h=(a|c|(d^e|b))!=0}return h}function rza(a){a=a|0;var b=0,c=0;J[a>>2]=2418052;J[a+4>>2]=0;J[699344]=0;c=a+8|0;J[c+20>>2]=-1;J[c+12>>2]=-1;J[c+ +16>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c>>2]=2418128;b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[a+32>>2]=0;J[a+36>>2]=0;J[699344]=0;b=a+40|0;J[b+20>>2]=-1;J[b+12>>2]=-1;J[b+16>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=2412952;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+64>>2]=0;return a|0}b=Z()|0;break a}b=Z()|0;Hd(c)}nd(a);ba(b|0);B()}function pra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(!a|(b|0)>(c|0))break a;d=c-b|0;e=d+1&3;if(e)while(1){f=(b<<3)+a|0;J[f>>2]=0;J[f+4>>2]=J[685894];b=b+1| +0;g=g+1|0;if((e|0)!=(g|0))continue;break}if(d>>>0<3)break a;while(1){d=(b<<3)+a|0;J[d>>2]=0;e=J[685894];J[d+8>>2]=0;J[d+4>>2]=e;e=J[685894];J[d+16>>2]=0;J[d+12>>2]=e;J[d+20>>2]=J[685894];d=b+3|0;e=(d<<3)+a|0;J[e>>2]=0;J[e+4>>2]=J[685894];b=b+4|0;if((c|0)!=(d|0))continue;break}}}function EGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{c=K[a+11|0]+7>>>3|0;e=J[a+4>>2];if(c>>>0>=e>>>0)break a;d=0-c|0;a=b+c|0;b=(c^-1)+e|0;f=e-c&3;if(f)while(1){H[a|0]=K[a+d|0]+K[a|0];c=c+1|0;a=a+1|0;g=g+1|0;if((f|0)!= +(g|0))continue;break}if(b>>>0<3)break a;while(1){H[a|0]=K[a+d|0]+K[a|0];H[a+1|0]=K[(a+1|0)+d|0]+K[a+1|0];H[a+2|0]=K[(a+2|0)+d|0]+K[a+2|0];H[a+3|0]=K[(a+3|0)+d|0]+K[a+3|0];a=a+4|0;c=c+4|0;if((e|0)!=(c|0))continue;break}}}function IO(a,b,c){var d=0,e=0,f=0;a:{d=J[a+116>>2];b:{if(d&15){c=c-4|0;e=K[b|0]&32;f=!e;c:{if(!(f?d&61440:0)&(f|!(d&3840)))break c;if((PE(a,-1,b,c)^-1)==(xs(b+c|0)|0))break c;d=J[a+116>>2];d:{if(!e){d=d&61440;if((d|0)==8192)break d;if((d|0)!=12288)break c;break a}d=d&3840;if((d|0)== +256)return 0;if((d|0)==768)break a;if((d|0)!=512)break c}d=1027;if(!Jc(a,1027,0,0))break b}return JO(a,b,c)}d=JO(a,b,c)}return d}Jc(a,1027,0,0);return 1027}function FBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=fc-16|0;fc=c;HW(c+12|0,b,d,0);b=J[c+12>>2];J[a>>2]=0;J[699344]=0;aa(5145,a|0,b|0)|0;a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[c+12>>2];J[c+12>>2]=0;b:{if(!a)break b;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break a}fc=c+16|0;return}a=Z()|0;zc(c+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function ng(a,b,c){var d=0,e=0,f=0;e=fc-16|0;fc=e;J[b+4>>2]=J[b+4>>2]+1;d=fc-16|0;fc=d;J[d+12>>2]=b;b=e+12|0;J[b>>2]=J[d+12>>2];fc=d+16|0;a:{a=a+8|0;if(J[a+4>>2]-J[a>>2]>>2>>>0<=c>>>0){J[699344]=0;da(6963,a|0,c+1|0);d=J[699344];J[699344]=0;if((d|0)==1)break a}d=J[J[a>>2]+(c<<2)>>2];if(d){f=J[d+4>>2]-1|0;J[d+4>>2]=f;if((f|0)==-1)kc[J[J[d>>2]+8>>2]](d)}d=J[b>>2];J[b>>2]=0;J[J[a>>2]+(c<<2)>>2]=d;cR(b);fc= +e+16|0;return}a=Z()|0;cR(b);ba(a|0);B()}function kL(){var a=0,b=0,c=0;c=fc-32|0;fc=c;a=kc[J[663195]](36)|0;a:{if(!a){J[c>>2]=5439;Hc(0,0,0,0,0,29,2,3,5439,0,0,0,32879,c);break a}J[a+20>>2]=0;J[a+4>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;b=J[663196];J[a+8>>2]=b;J[a+24>>2]=b;J[a+12>>2]=J[663197];b=kc[J[663198]](b)|0;J[a>>2]=b;if(!b){J[c+16>>2]=5439;b=0;Hc(0,0,0,0,0,29,2,3,5439,0,0,0,32879,c+16|0);if(!J[a+32>>2])J[a+32>>2]=2;kc[J[663199]](a);break a}H[b|0]=0;J[a+16>>2]=0;b=a}fc=c+32|0;return b}function iUa(a, +b,c){a=a|0;b=b|0;c=c|0;b=J[a+28>>2];J[b+504>>2]=0;J[b+508>>2]=1072693248;J[b+600>>2]=0;J[b+604>>2]=0;J[b+512>>2]=0;J[b+516>>2]=0;J[b+520>>2]=0;J[b+524>>2]=0;J[b+536>>2]=0;J[b+540>>2]=0;J[b+528>>2]=0;J[b+532>>2]=1072693248;J[b+544>>2]=0;J[b+548>>2]=0;J[b+608>>2]=0;J[b+612>>2]=0;J[b+616>>2]=0;J[b+620>>2]=0;J[b+624>>2]=0;J[b+628>>2]=0;c=J[a+8>>2];kc[J[J[c>>2]+160>>2]](c,b);b=J[a+8>>2];kc[J[J[b>>2]+184>>2]](b,J[a+28>>2]);J[a+32>>2]=1}function cQ(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a>>>0<2800016&a>>>0>= +2799504){c=a;b=a-4|0;e=J[699875];d=e;a:{while(1){a=d;if(!(!a|(a|0)==2800016)){d=L[a+2>>1];if((a+(d<<2)|0)==(b|0)){I[a+2>>1]=d+L[c-2>>1];break a}if((a|0)==((L[b+2>>1]<<2)+b|0)){c=c-2|0;I[c>>1]=L[a+2>>1]+L[c>>1];if(!f){J[699875]=b;I[b>>1]=L[a>>1];break a}I[f>>1]=b-2799504>>>2;break a}else{d=(L[a>>1]<<2)+2799504|0;f=a;continue}}break}I[b>>1]=e-2799504>>>2;J[699875]=b}return}uc(a)}function Yya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c>>2]=2397928; +J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[699344]=0;ia(5597,a|0,b|0,c|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)a:{a=J[c+8>>2];if(a)while(1){e=J[a+8>>2];d=J[J[e>>2]+32>>2];J[699344]=0;da(d|0,e|0,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;a=J[a>>2];if(a)continue;break}id(c);fc=c+16|0;return}a=Z()|0;id(c);ba(a|0);B()}function Xya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;J[c>>2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[699344]=0;ia(5597,a| +0,b|0,c|0,0);a=J[699344];J[699344]=0;if((a|0)!=1)a:{a=J[c+8>>2];if(a)while(1){e=J[a+8>>2];d=J[J[e>>2]+36>>2];J[699344]=0;da(d|0,e|0,b|0);d=J[699344];J[699344]=0;if((d|0)==1)break a;a=J[a>>2];if(a)continue;break}id(c);fc=c+16|0;return}a=Z()|0;id(c);ba(a|0);B()}function $E(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=J[b+88>>2];if(L[b+28>>1]){c=J[b+8>>2];d=J[b+12>>2];a:{if(d){J[d+8>>2]=c;break a}J[a+688>>2]=c}J[(c?c+12|0:a+692|0)>>2]=d}c=J[e+28>>2];b:{if(c){c=c-1|0;J[e+28>>2]=c;if(c)break b}c=J[e+1144>>2];c:{if(!c)break c; +d=J[e+1148>>2];if(!d)break c;kc[J[a+156>>2]](d,c)}c=J[e+1172>>2];d:{if(!c)break d;d=J[e+1176>>2];if(!d)break d;kc[J[a+156>>2]](d,c)}kc[J[a+156>>2]](e,1180)}kc[J[a+156>>2]](b,92);return 0}function xtb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=L[b+34>>1];c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=K[b+36|0];c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+13|0]=c;H[d+14|0]=c>>>8;H[d+15|0]=c>>>16;H[d+16|0]=c>>>24;c=J[b+44>>2];c= +c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+17|0]=c;H[d+18|0]=c>>>8;H[d+19|0]=c>>>16;H[d+20|0]=c>>>24;return Ce(a,J[b>>2],13,d+8|0)|0}function uDa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;a:{e=J[b+56>>2];f=J[b+52>>2];b:{if(((e-f|0)+1|0)>(c|0)){if(!((c|0)<=(e|0)&(c|0)>=(f|0))){a=Qc(d+8|0,2386813,2387828,619,2400812,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}c=J[b+40>>2]+(c-J[b+44>>2]<<2)|0;b=J[c>>2];if(!b){J[a>>2]=0;break b}J[b+4>> +2]=J[b+4>>2]+1;J[a>>2]=J[c>>2];break b}J[a>>2]=0;vd(a,0)}fc=d+32|0;return}B()}function sP(){var a=0,b=0,c=0,d=0;a=Dc(12);if(a){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;b=Dc(256);if(b){J[a+4>>2]=32;J[a+8>>2]=b;return a}c=J[a+8>>2];if(c){b=J[a>>2];if((b|0)>0){while(1){c=J[J[a+8>>2]+4>>2];d=J[c>>2];J[c>>2]=d-1;if((d|0)<=1){b=J[J[c+8>>2]>>2];if(b)kc[b|0](c);uc(c);b=J[a>>2]}b=b-1|0;a:{if((b|0)<=0){J[a>>2]=b;break a}c=J[a+8>>2];cd(c,c+8|0,b<<3);c=J[a>>2];b=c-1|0;J[a>>2]=b;if((c|0)>1)continue}break}c=J[a+8>>2]}uc(c)}uc(a)}return 0} +function W5(a){var b=0,c=0,d=0;a:{if(J[a+76>>2]|J[a+304>>2]|(J[a+40>>2]!=3|J[a+36>>2]!=3))break a;if(J[a+44>>2]!=2|J[a+120>>2]!=3)break a;b=J[a+216>>2];if(J[b+8>>2]!=2|J[b+96>>2]!=1|(J[b+184>>2]!=1|J[b+12>>2]>2))break a;if(J[b+100>>2]!=1|J[b+188>>2]!=1)break a;c=J[b+36>>2];if((c|0)!=J[a+320>>2]|(c|0)!=J[b+124>>2]|(c|0)!=J[b+212>>2])break a;c=J[a+324>>2];a=J[b+40>>2];if((c|0)!=(a|0)|(a|0)!=J[b+128>>2])break a;d=(a|0)==J[b+216>>2]}return d}function HDa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc- +32|0;fc=d;a:{e=J[b+48>>2];f=J[b+44>>2];b:{if(((e-f|0)+1|0)>(c|0)){if(!((c|0)<=(e|0)&(c|0)>=(f|0))){a=Qc(d+8|0,2400123,2400335,632,2400557,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}c=J[b+32>>2]+(c-J[b+36>>2]<<2)|0;b=J[c>>2];if(!b){J[a>>2]=0;break b}J[b+4>>2]=J[b+4>>2]+1;J[a>>2]=J[c>>2];break b}J[a>>2]=0;vd(a,0)}fc=d+32|0;return}B()}function Fe(a,b){var c=0,d=0,e=0;d=J[a+4>>2];a:{b:{if(!d){J[a+8>>2]=1E3;c=Dc(1E3);J[a+16>>2]=0;J[a+4>>2]=c;break b}c= +J[a+8>>2];e=J[a+16>>2]+1|0;if(c>>>0>=e>>>0){c=J[a+12>>2];break a}while(1){c=c<<1;if(e>>>0>c>>>0)continue;break}J[a+8>>2]=c;c=fe(d,c);if(c){J[a+4>>2]=c;c=c+J[a+16>>2]|0;break b}c=Dc(J[a+8>>2]);d=J[a+4>>2];c=xc(c,d,J[a+16>>2]);uc(d);J[a+4>>2]=c;c=c+J[a+16>>2]|0}J[a+12>>2]=c}H[c|0]=b;J[a+12>>2]=J[a+12>>2]+1;J[a+16>>2]=J[a+16>>2]+1}function p0(a,b){var c=0,d=0,e=0;c=K[b|0];if(c){d=b;while(1){e=P(e,17)+(c&255)|0;c=K[d+1|0];d=d+1|0;if(c)continue;break}}d=(e>>>0)%M[a+4>>2]|0;c=J[J[a+12>>2]+(d<<2)>>2];a:{if(!c)break a; +while(1){if(Dd(J[c>>2],b)){c=J[c+8>>2];if(c)continue;break a}break}d=J[a+12>>2]+(d<<2)|0;while(1){b=d;e=J[b>>2];d=e+8|0;if((c|0)!=(e|0))continue;break}J[b>>2]=J[c+8>>2];b:{if(!J[a>>2])break b;b=J[c>>2];if(!b)break b;uc(Zc(b))}uc(c);J[a+8>>2]=J[a+8>>2]-1}}function bpb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=J[a+712>>2];a:{if(K[e+24|0]==2){f=11;e=al(wh(J[J[a+96>>2]+4>>2],239709),240700,0);if(!e)break a;e=J[e>>2];if(!e)break a;return kc[e|0](a,b,c,d)|0}a=J[e+3084>>2];if(!a)return 11;b=L[J[e+1188>> +2]+(b<<1)>>1];if((b|0)==65535)break a;b:{if(b>>>0>=391){a=b-391|0;if(a>>>0>=M[e+1356>>2])break a;a=J[J[e+1360>>2]+(a<<2)>>2];break b}a=kc[J[a+20>>2]](b)|0}if(!a)break a;pN(c,a,d)}return f|0}function wFa(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=1;J[a+4>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;J[a>>2]=2395600;J[a+20>>2]=0;J[a+24>>2]=0;c=J[b>>2];J[a+28>>2]=c;a:{b:{c:{if(c){J[699344]=0;J[c+4>>2]=J[c+4>>2]+1;c=J[699344];J[699344]=0;if((c|0)==1)break c;b=J[b>>2]}else b=0;J[a+32>>2]=b;J[699344]=0;ha(5213,a+40|0,a+36|0, +0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;Ac(a+48|0,0,304);return a|0}b=Z()|0;break a}b=Z()|0;zc(a+32|0)}nd(a);ba(b|0);B()}function rn(a,b,c,d,e){var f=0,g=0;if(!(!b|(a|0)<0|(!c|!e))){g=J[686165];a:{if((g|0)>31)break a;f=P(g,28);J[f+2744672>>2]=a;a=f+2744676|0;b=br(b);J[a>>2]=b;if(!b)break a;f=f+2744680|0;b=br(c);J[f>>2]=b;if(!b){uc(J[a>>2]);return}b=P(g,28);c=br(d);J[b+2744684>>2]=c;if(!c){uc(J[a>>2]);uc(J[f>>2]);return}J[b+2744696>>2]=J[e+8>>2];a=b+2744688|0;b=J[e+4>>2];J[a>>2]=J[e>>2]; +J[a+4>>2]=b;J[686165]=J[686165]+1}return}fa(197693,198814,540,206480);B()}function jIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;f=J[a+4>>2];e=d+20|0;xr(e,a,b);J[699344]=0;b=d+8|0;ca(4909,b|0,a|0,c|0);a=J[699344];J[699344]=0;a:{b:{if((a|0)!=1){J[699344]=0;ca(4910,f|0,e|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;if(H[d+19|0]<0)uc(J[d+8>>2]);if(H[d+31|0]<0)uc(J[d+20>>2]);fc=d+32|0;return}a=Z()|0;break a}a=Z()|0;if(H[d+19|0]>=0)break a;uc(J[d+8>>2])}if(H[d+31|0]<0)uc(J[d+20>>2]); +ba(a|0);B()}function hia(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;g=fc-16|0;fc=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[699344]=0;h=_(6826,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)kc[J[J[b>>2]+8>>2]](b);DR(a,f+24|0,g+12|0,c,e,h);fc=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function fia(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;g=fc-16|0;fc=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[699344]=0;h=_(6826,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)kc[J[J[b>>2]+8>>2]](b);CR(a,f+16|0,g+12|0,c,e,h);fc=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function _ha(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;g=fc-16|0;fc=g;J[g+12>>2]=b;b= +g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[699344]=0;h=_(6750,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)kc[J[J[b>>2]+8>>2]](b);zR(a,f+16|0,g+12|0,c,e,h);fc=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Mea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-16|0;fc=d;H[d+15|0]=b;a:{b:{c=K[a+11|0];e=c>>>7|0;c:{if(!e){c=c&127;b=10;break c}c=J[a+4>>2];b=(J[a+8>>2]&2147483647)- +1|0}if((b|0)==(c|0)){az(a,b,1,b,b,0);d:if(K[a+11|0]>>>7|0)break d;break b}e:if(K[a+11|0]>>>7|0)break e;if(e)break b;b=a;H[a+11|0]=c+1|K[a+11|0]&128;H[a+11|0]=K[a+11|0]&127;break a}b=J[a>>2];J[a+4>>2]=c+1}a=b+c|0;H[a|0]=K[d+15|0];H[d+14|0]=0;H[a+1|0]=K[d+14|0];fc=d+16|0}function $ha(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;g=fc-16|0;fc=g;J[g+12>>2]=b;b=g+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[699344]=0;h=_(6750,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){b=J[b>>2];d= +J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)kc[J[J[b>>2]+8>>2]](b);AR(a,f+24|0,g+12|0,c,e,h);fc=g+16|0;return J[g+12>>2]}c=Z()|0;a=J[g+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function ibb(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;a:{if((d|0)<=0)break a;j=J[a+112>>2];if(!j)break a;o=J[J[a+480>>2]+24>>2];while(1){e=g<<2;h=J[e+c>>2];f=J[b+e>>2];e=j;while(1){k=K[f|0]>>>3|0;l=K[f+1|0]>>>2|0;m=K[f+2|0]>>>3|0;n=(J[(k<<2)+o>>2]+(l<< +6)|0)+(m<<1)|0;i=L[n>>1];if(!i){r5(a,k,l,m);i=K[n|0]}f=f+3|0;H[h|0]=i-1;h=h+1|0;e=e-1|0;if(e)continue;break}g=g+1|0;if((g|0)!=(d|0))continue;break}}}function fO(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=fc-16|0;fc=g;j=!a;a:{if(j|(b|c|d|e)<0)break a;Df(a,g+12|0,g+8|0,g+4|0);k=J[g+12>>2]+b|0;h=k+c|0;l=J[g+8>>2]+d|0;i=l+e|0;f=iO(h,i,J[g+4>>2]);if(!f)break a;if(!(j|!f|(a|0)==(f|0))){J[f+20>>2]=J[a+20>>2];J[f+24>>2]=J[a+24>>2]}BE(f,a);Cf(f,0,0,b,i,0,0,0,0);Cf(f,k,0,c,i,0,0,0,0);Cf(f,0,0,h,d,0,0, +0,0);Cf(f,0,l,h,e,0,0,0,0);Cf(f,b,d,J[g+12>>2],J[g+8>>2],24,a,0,0);m=f}fc=g+16|0;return m}function fC(a){var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;c=b+4|0;d=K[a+11|0];e=d<<24>>24<0;_m(c,e?J[a>>2]:a,e?J[a+4>>2]:d,0);J[699344]=0;a=_(4,8)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){J[699344]=0;e=c;c=K[b+15|0];d=c<<24>>24<0;c=ga(3348,a|0,(d?J[b+4>>2]:e)|0,(d?J[b+8>>2]:c)|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;if(H[b+15|0]<0)uc(J[b+4>>2]);fc=b+16|0;return c}c=Z()|0;break a}c=Z()|0;uc(a)}if(H[b+15| +0]<0)uc(J[b+4>>2]);ba(c|0);B()}function cxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+2308>>2];if(b){f=J[a+2300>>2];e=J[a+2312>>2];c=J[a+2316>>2];while(1){d=K[e|0];if(d>>>0>2]){b=P(d,3)+f|0;d=kc[J[a+2296>>2]](K[b+68|0])|0;g=kc[J[a+2296>>2]](K[b+69|0])|0;b=kc[J[a+2296>>2]](K[b+70|0])|0;H[c+3|0]=(g|0)!=0;H[c+2|0]=g>>>8;H[c+1|0]=(d|0)!=0;H[c|0]=d>>>8;H[c+5|0]=(b|0)!=0;H[c+4|0]=b>>>8;b=J[a+2308>>2]}c=c+6|0;e=e+1|0;h=h+1|0;if(h>>>0>>0)continue;break}}return 0}function aJ(a,b){var c=0,d= +0,e=0,f=0;d=J[a>>2];a:{if(!d)break a;c=J[a+12>>2];b:{c:{if(!c)break c;e=J[a+4>>2];d:{if(e){c=kc[e|0](J[d>>2],b)|0;break d}if(b>>>0>>0)break c;c=b>>>0>c>>>0?-1:0}if(!c)break b}Er(a,0,b,a,0,0);if(J[a+8>>2]){DJ(a);Er(a,0,b,a,0,0);if(J[a+8>>2])break b}J[a+12>>2]=b}c=J[J[a>>2]>>2];d=J[a+4>>2];e:{if(d){b=kc[d|0](c,b)|0;break e}if(b>>>0>>0)return 0;b=b>>>0>c>>>0?-1:0}if(b)break a;f=J[J[a>>2]+4>>2]}return f}function ZQa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218316;b=J[a+180>>2];J[699344]=0;Mc(b);b=J[699344]; +J[699344]=0;a:{if((b|0)==1)break a;b=J[a+188>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;c=J[a+328>>2];if((c|0)>0){b=0;while(1){d=J[((b<<2)+a|0)+196>>2];if(d){kc[J[J[d>>2]+4>>2]](d);c=J[a+328>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a);return}ea(0)|0;Bc();B()}function Fda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;c=fc-80|0;fc=c;e=J[a+584>>2];if(e){d=J[a+48>>2];if(d&4){J[c+64>>2]=J[e+916>>2];md(b,76929,c- -64|0);d=J[a+48>> +2]}if(d&8){J[c+48>>2]=J[e+936>>2];md(b,77462,c+48|0);d=J[a+48>>2]}if(d&16){J[c+32>>2]=J[e+940>>2];md(b,78129,c+32|0);d=J[a+48>>2]}if(d&32){J[c+16>>2]=J[e+944>>2];md(b,78675,c+16|0);d=J[a+48>>2]}if(d&64){J[c>>2]=J[e+948>>2];md(b,79039,c)}fc=c+80|0;return}fa(75270,70506,1817,97676);B()}function TPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=fc-16|0;fc=e;J[a+8>>2]=13;J[e>>2]=13;a:{if(J[c>>2]==8){d=vc(20);J[699344]=0;J[d>>2]=b;J[d+12>>2]=0;J[d+16>>2]=1;J[d+4>>2]=0;J[d+8>>2]=0;b=J[699344];J[699344]=0;if((b| +0)!=1){J[a+24>>2]=1;J[a>>2]=d;hg(d,Pe(c,e));c=J[a>>2];break a}a=Z()|0;uc(d);ba(a|0);B()}c=J[c+8>>2];J[a+24>>2]=0;J[a>>2]=c}J[a+4>>2]=0;if(J[c+12>>2]>0){Sc(c,0,a+8|0,0);b=J[a+16>>2];kc[J[J[b>>2]+20>>2]](b)}fc=e+16|0;return a|0}function pL(a,b){a=a|0;b=b|0;var c=0;c=J[a+88>>2];if(c)J[c+128>>2]=b;c=J[a+92>>2];if(c)J[c+128>>2]=b;c=J[a+96>>2];if(c)J[c+128>>2]=b;c=J[a+100>>2];if(c)J[c+128>>2]=b;c=J[a+120>>2];if(c)J[c+276>>2]=b;c=J[a+136>>2];if(c)J[c+276>>2]=b;c=J[a+124>>2];if(c)J[c+276>>2]=b;c=J[a+140>> +2];if(c)J[c+276>>2]=b;c=J[a+128>>2];if(c)J[c+276>>2]=b;c=J[a+144>>2];if(c)J[c+276>>2]=b;c=J[a+132>>2];if(c)J[c+276>>2]=b;a=J[a+148>>2];if(a)J[a+276>>2]=b}function me(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;if((gf(a,d+8|0,8)|0)==8){if(!K[2770312])H[2770312]=1;a=d;b=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);c=b&16711680;e=c>>>8|0;f=c<<24;c=b&-16777216;a=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);x(0,f|c<<8|(((a&255)<<24|b>>>8)&-16777216|((a&16777215)<<8|b>>>24)&16711680|(a>>> +8&65280|a>>>24)));a=e|c>>>24|(b<<24|(b&65280)<<8);e=0;x(1,a|(e|e));g=+z()}fc=d+16|0;return g}function jZ(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{if(!d)break b;while(1){g=c+f|0;h=g+1|0;e=J[a+16>>2];i=f<<2;if(!tl(b,e,g,J[a+20>>2],h,i+((J[a>>2]+(J[a+12>>2]<<5)|0)+(e<<6)|0)|0,16,0))break a;e=J[a+8>>2];j=J[a+24>>2];if(tl(b,e+j|0,g,J[a+28>>2]+e|0,h,(((J[a>>2]-(J[a+12>>2]<<5)|0)+(j<<6)|0)+i|0)+32|0,16,0)){f=f+1|0;if((f|0)==(d|0))break b;continue}break}fa(2354036,2350512,2959,2355113);B()}return}fa(2354036, +2350512,2952,2355113);B()}function _Qa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218316;b=J[a+180>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;b=J[a+188>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;c=J[a+328>>2];if((c|0)>0){b=0;while(1){d=J[((b<<2)+a|0)+196>>2];if(d){kc[J[J[d>>2]+4>>2]](d);c=J[a+328>>2]}b=b+1|0;if((c|0)>(b|0))continue;break}}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function N0(a,b,c,d){var e=0,f=0,g=0, +h=0;e=fc-16|0;fc=e;if(!(K[a+229|0]|K[a+228|0])){c=J[c+8>>2];g=J[J[c+12>>2]+(d<<2)>>2];h=J[J[c+24>>2]+(d>>>3&536870908)>>2];f=J[a+104>>2];J[e+12>>2]=32;kc[J[J[f>>2]+308>>2]](f,e+12|0)|0;f=J[a+104>>2];J[e+8>>2]=h>>>d&1;kc[J[J[f>>2]+412>>2]](f,e+8|0)|0;rk(a,g,O[b+104>>3],b+16|0,J[c>>2]+P(d,48)|0);b=J[a+104>>2];J[e+4>>2]=32;kc[J[J[b>>2]+312>>2]](b,e+4|0)|0;a=J[a+104>>2];kc[J[J[a>>2]+344>>2]](a)|0}fc=e+16|0}function kOa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a+12>>2]=e;J[a+8>>2]=d;J[a+4>>2]= +c;J[a>>2]=b;f=P(c,d);J[a+16>>2]=f;b=P(e,f)+7>>3;J[a+20>>2]=b;a:{if((2147483647/(d|0)|0)>=(c|0))if((2147483640/(e|0)|0)>=(f|0))break a;b=-1;J[a+20>>2]=-1}d=Gd(b,1);J[a+24>>2]=d;b:{c:{d:switch(J[a+12>>2]-1|0){case 0:b=J[a+16>>2]+7&-8;break c;case 7:break b;default:break d}b=J[a+16>>2]}d=Gd(b,1)}J[a+28>>2]=d;J[a+32>>2]=J[a+16>>2];return a|0}function Wob(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a+8>>2];a:{if(!c)break a;b:switch(K[a|0]){case 0:e=K[b+c|0];break a;case 3:break b;default:break a}if(M[a+ +20>>2]>b-J[a+16>>2]>>>0){e=K[a+24|0];break a}d=c+2|0;g=c+J[a+12>>2]|0;c=K[c+1|0]|K[c|0]<<8;while(1){if(b>>>0>>0)break a;f=K[d+2|0]|K[d+1|0]<<8;if(f>>>0>b>>>0){e=K[d|0];H[a+24|0]=e;J[a+20>>2]=f-c;J[a+16>>2]=c;break a}c=f;d=d+3|0;if(g>>>0>d>>>0)continue;break}}return e|0}function ZHa(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;d=K[b+11|0];f=d<<24>>24;a:{g=(f|0)<0?J[b+4>>2]:d;h=bf(c);e=g+h|0;if(e>>>0<1073741808){b:{if(e>>>0<=1){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;H[a+11|0]=e;break b}d= +e|3;if(d>>>0>=1073741823)break a;i=d+1|0;d=vc(i<<2);J[a+4>>2]=e;J[a>>2]=d;J[a+8>>2]=i|-2147483648;a=d}d=a;a=g<<2;b=cd(d,(f|0)<0?J[b>>2]:b,a)+a|0;a=h<<2;j=cd(b,c,a)+a|0,k=0,J[j>>2]=k;return}_d(a);B()}Pd();B()}function Rw(a,b,c,d){var e=0,f=0,g=0,h=0;J[c>>2]=b;e=Ef(a,b,d);J[c+4>>2]=e;if(!e){J[c+8>>2]=0;a=b+2|0;J[c+16>>2]=a;J[c+12>>2]=a;return}e=Tf(a,b+2|0,d);J[c+8>>2]=e;if(e-5>>>0<=4294967291){J[d>>2]=0;e=J[c+8>>2]}h=b+3|0;b=J[c+4>>2];f=h+P(b+1|0,e)|0;g=f-1|0;J[c+12>>2]=g;if(!((f|0)>0&J[a+12>>2]>=(f| +0))){J[d>>2]=0;e=J[c+8>>2];g=J[c+12>>2];b=J[c+4>>2]}b=Rn(a,P(b,e)+h|0,e,d)+g|0;J[c+16>>2]=b;if(!((b|0)<=J[a+12>>2]&(b|0)>=J[c+12>>2]))J[d>>2]=0}function Dz(a,b){var c=0,d=0;a:{d=b&255;if(d){if(a&3)while(1){c=K[a|0];if(!c|(c|0)==(b&255))break a;a=a+1|0;if(a&3)continue;break}c=J[a>>2];b:{if((c^-1)&c-16843009&-2139062144)break b;d=P(d,16843009);while(1){c=c^d;if((c^-1)&c-16843009&-2139062144)break b;c=J[a+4>>2];a=a+4|0;if(!(c-16843009&(c^-1)&-2139062144))continue;break}}while(1){c=a;d=K[a|0];if(d){a= +a+1|0;if((d|0)!=(b&255))continue}break}return c}return Yc(a)+a|0}return a}function DFa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+20>>2]=0;J[a+24>>2]=-1;J[a+12>>2]=0;J[a+16>>2]=-1;J[a>>2]=2394472;J[a+4>>2]=0;J[a+8>>2]=0;J[a+28>>2]=J[b+28>>2];J[a+32>>2]=J[b+32>>2];J[a+36>>2]=J[b+36>>2];J[a+40>>2]=J[b+40>>2];J[a+44>>2]=J[b+44>>2];J[a+48>>2]=J[b+48>>2];UA(a,J[b+20>>2],J[b+24>>2]);c=J[a+12>>2];d=J[a+20>>2]-c|0;e=J[a+24>>2]-c|0;c=J[b+12>>2];kc[J[b+44>>2]](J[a+8>>2],d,e,J[b+8>>2],J[b+20>>2]-c|0,J[b+24>>2]-c| +0);return a|0}function eia(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;a=fc-16|0;fc=a;J[a+12>>2]=b;b=a+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[699344]=0;g=_(6826,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)kc[J[J[b>>2]+8>>2]](b);BR(f+20|0,a+12|0,c,e,g);fc=a+16|0;return J[a+12>>2]}c=Z()|0;a=J[a+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function Zha(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;a=fc-16|0;fc=a;J[a+12>>2]=b;b=a+8|0;d=J[d+28>>2];J[b>>2]=d;J[d+4>>2]=J[d+4>>2]+1;J[699344]=0;g=_(6750,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){b=J[b>>2];d=J[b+4>>2]-1|0;J[b+4>>2]=d;if((d|0)==-1)kc[J[J[b>>2]+8>>2]](b);yR(f+20|0,a+12|0,c,e,g);fc=a+16|0;return J[a+12>>2]}c=Z()|0;a=J[a+8>>2];b=J[a+4>>2]-1|0;J[a+4>>2]=b;if((b|0)==-1)kc[J[J[a>>2]+8>>2]](a);ba(c|0);B()}function GBb(a){a=a|0;var b=0,c=0,d=0,e=0;a=J[a+52>>2];c=kc[J[J[a>>2]+20>>2]](a,2)|0;kc[J[J[a>>2]+20>>2]](a,1)|0; +a:{if((c|0)<4)break a;b=c-3|0;d=b&3;if(d)while(1){kc[J[J[a>>2]+20>>2]](a,1)|0;b=b-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}if(c-4>>>0<=2)break a;while(1){kc[J[J[a>>2]+20>>2]](a,1)|0;kc[J[J[a>>2]+20>>2]](a,1)|0;kc[J[J[a>>2]+20>>2]](a,1)|0;kc[J[J[a>>2]+20>>2]](a,1)|0;c=b-5|0;b=b-4|0;if(c>>>0<4294967294)continue;break}}}function A3(a){a=a|0;var b=0,c=0,d=0;a:{c=K[2772767];b=c<<24>>24<0;b:{d=J[693190];if(b?d:c){if(b)break b;J[a+8>>2]=J[693191];b=J[693190];J[a>>2]=J[693189];J[a+4>>2]=b;return}b=Xi(20920); +c:{if(b)break c;b=Xi(20916);if(b)break c;b=Xi(20849)}b=b?b:5802;c=Yc(b);J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[699344]=0;ca(3018,b|0,c|0,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}Ve(a,J[693189],d)}}function kcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}f=e>>>1|0;g=(b-f<<1)+255|0;b=K[a+3|0];e=b>>>1|0;g=(P(g,K[a+2|0]-e|0)>>8)+e|0;g=(g|0)>0?g:0; +H[a+2|0]=b>>>0>g>>>0?g:b;c=e+(P((c-f<<1)+255|0,K[a+1|0]-e|0)>>8)|0;c=(c|0)>0?c:0;H[a+1|0]=b>>>0>c>>>0?c:b;c=a;a=e+(P((d-f<<1)+255|0,K[a|0]-e|0)>>8)|0;a=(a|0)>0?a:0;H[c|0]=a>>>0>>0?a:b}function Nua(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){d=h<<2;a=g<<1;while(1){f=f-1|0;g=e;while(1){c=K[l+1|0];J[b>>2]=c<<24|((P(K[i+1|0],c)+127&65535)>>>0)/255|((P(K[j+1|0],c)+127&65535)>>>0)/255<<8|((P(K[k+1|0],c)+127&65535)>>>0)/255<<16;b=b+4|0; +k=k+2|0;j=j+2|0;i=i+2|0;l=l+2|0;g=g-1|0;if(g)continue;break}b=b+d|0;l=a+l|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f)continue;break}}}function KOa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;J[a+12>>2]=e;J[a+40>>2]=0;J[a+44>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;a:{if(!(kc[J[J[b>>2]+96>>2]](b)|0)){e=0;break a}e=kc[J[J[b>>2]+96>>2]](b)|0;f=vc(8);J[699344]=0;e=aa(3350,f|0,e|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1)break a;a=Z()|0;uc(f);ba(a|0);B()}J[a+ +8>>2]=b;J[a>>2]=e;h=a,i=x_(a,c,d),J[h+40>>2]=i;return a|0}function uF(a){a=a|0;var b=0,c=0,d=0,e=0;e=J[a+60>>2];a:{if(e)break a;b=J[a+968>>2];if(b){c=J[a+484>>2];b:{if((c|0)>0){while(1){b=J[J[a+968>>2]+(d<<2)>>2];if(b){kc[J[J[b>>2]+4>>2]](b);c=J[a+484>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}b=J[a+968>>2];if(!b)break b}uc(b)}J[a+484>>2]=0;J[a+968>>2]=0}b=J[a+960>>2];if(b){uc(b);J[a+960>>2]=0}b=J[a+964>>2];if(b){uc(b);J[a+964>>2]=0}b=J[a+4>>2];if(!b)break a;uc(b);J[a+4>>2]=0}return!e|0}function qTa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+116>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==10){Cr(a,1);break a}b=J[a+8>>2];kc[J[J[b>>2]+208>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2];kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;_f(b)}}function di(a,b,c,d){var e=0;e=fc-16|0;fc=e;if(a){J[a+744>>2]=34;H[e+11|0]=b;H[e+ +10|0]=b>>>8;H[e+9|0]=b>>>16;H[e+8|0]=b>>>24;H[e+7|0]=d;H[e+6|0]=d>>>8;H[e+5|0]=d>>>16;H[e+4|0]=d>>>24;hf(a,e+4|0,8);J[a+348>>2]=b;Km(a);Ae(a,e+8|0,4);J[a+744>>2]=66;if(!(!c|!d)){hf(a,c,d);Ae(a,c,d)}J[a+744>>2]=130;b=J[a+384>>2];b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[e+12|0]=b;H[e+13|0]=b>>>8;H[e+14|0]=b>>>16;H[e+15|0]=b>>>24;hf(a,e+12|0,4)}fc=e+16|0}function T_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;a:{if(!a)break a;f=J[a+8>>2];if(!f)break a;b:switch(J[a+216>>2]-1|0){case 0:J1(a+ +108|0,J[f+44>>2],b,c,d);break a;case 1:J1(a+108|0,J[f+48>>2],b,c,d);break a;default:break b}if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=1;J[e+4>>2]=0;J[e>>2]=b;Hc(0,0,0,a,0,1,1,3,b,0,0,0,31313,e);J[a+100>>2]=0;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}fc=e+16|0}function TJ(a,b){var c=0,d=0,e=0,f=0,g=0;c=fc-32|0;fc=c;d=.1;e=J[a+84>>2];a:{if(!e)break a;d=O[e+8>>3];if(!(d<=0))break a;d=.1}O[b>>3]=d;b=J[a+40>>2];O[c+16>>3]=d;ed(b,833964,c+16|0);b=J[a+84>>2];if(!(!b|J[b>>2]!=1)){f=J[b+ +16>>2];e=J[b+20>>2];od(J[a+40>>2],834196);if((e|0)>0){b=0;while(1){g=J[a+40>>2];O[c>>3]=O[(b<<3)+f>>3];ed(g,834300,c);b=b+1|0;if((e|0)!=(b|0))continue;break}}od(J[a+40>>2],834892)}od(J[a+40>>2],835152);fc=c+32|0}function K$a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=vc(44);J[699344]=0;J[c+4>>2]=1;J[c>>2]=769744;d=J[699344];J[699344]=0;a:{b:{if((d|0)!=1){J[c+8>>2]=770016;J[c>>2]=769992;J[c+12>>2]=0;J[c+16>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+40>>2]=0;d=c+32|0;J[c+36>>2]=d;J[c+32>>2]=d;if(z2(c+8|0,b))break b; +break a}a=Z()|0;uc(c);ba(a|0);B()}t2(c);b=J[c+24>>2];if(!b)break a;J[a>>2]=b;kc[J[J[c>>2]+12>>2]](c)|0;return 1}kc[J[J[c>>2]+4>>2]](c);return 0}function Dub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{if(K[a+285|0]|K[a+286|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;Jc(a,1029,0,0);return 1029}if((c|0)!=7){Jc(a,1028,0,0);return 1028}c=0;b:{if(!K[a+112|0])break b;c=kc[J[b+4>>2]](a,b,e)|0;if(c)break b;a=J[e>>2];b=K[d|0]|K[d+1|0]<<8;I[a+32>>1]=b<<8|b>>>8;H[a+34|0]=K[d+2|0];H[a+35|0]=K[d+ +3|0];H[a+36|0]=K[d+4|0];H[a+37|0]=K[d+5|0];H[a+38|0]=K[d+6|0];c=0}return c|0}function $Ta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+116>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==10){Cr(a,0);break a}b=J[a+8>>2];kc[J[J[b>>2]+204>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2];kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>> +2]=0;_f(b)}}function qIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;a=uq(a);e=J[J[b>>2]+12>>2];J[699344]=0;f=e;e=d+4|0;ca(f|0,e|0,b|0,c|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[699344]=0;aa(4904,a|0,e|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;if(H[d+15|0]<0)uc(J[d+4>>2]);fc=d+16|0;return}b=Z()|0;break a}b=Z()|0;if(H[d+15|0]>=0)break a;uc(J[d+4>>2])}J[a>>2]=769768;a=J[a+4>>2];if(a)kc[J[J[a>>2]+4>>2]](a);ba(b|0);B()}function Cr(a,b){var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;c=J[a+ +8>>2];a:{if(!(kc[J[J[c>>2]+28>>2]](c)|0))break a;c=J[J[a+28>>2]+380>>2];if(!c)break a;f=-1;b:{c:{d:{e=J[c+4>>2];switch(e-1|0){case 1:break c;case 0:break d;default:break b}}GJ(a,c,0,b,0);break a}FJ(a,c,0,b,0);break a}a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];f=kc[J[J[a>>2]+52>>2]](a)|0;e=J[c+4>>2]}J[d>>2]=e;Cc(1,f,831171,d)}fc=d+16|0}function rP(a,b){var c=0,d=0,e=0,f=0;while(1){d=Kj(a);if((d|0)==-1)return-1;if((d|0)==32|d-9>>>0<5)continue;break}a:{b:{if((d| +0)==45){e=-1;c=Kj(a);if((c|0)!=-1)break b;break a}c=d;if((d|0)!=43)break b;e=-1;c=Kj(a);if((c|0)==-1)break a}c:{while(1){e=c-48|0;if(e>>>0>9)break c;f=e+P(f,10)|0;c=Kj(a);if((c|0)>=0)continue;break}return-1}e=-1;if(!((c|0)==32|c-9>>>0<5))break a;if(!b)return 0;e=0;J[b>>2]=(d|0)==45?0-f|0:f}return e}function iJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;c:{if(J[a+100>>2]){Nc(d,1,2359966,0);a=0;break c}if((c|0)!=4){Nc(d,1,2360020,0);a=0;break c}wd(b, +e+12|0,4);if(J[e+12>>2]!=218793738){Nc(d,1,2360156,0);a=0;break c}J[a+100>>2]=J[a+100>>2]|1;a=1}fc=e+16|0;return a|0}fa(2359884,2354795,2546,2371400);B()}fa(2354499,2354795,2547,2371400);B()}fa(2355439,2354795,2548,2371400);B()}function TEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=kc[J[J[a>>2]+28>>2]](a)|0;a:{if((d|0)>0){e=d+1|0;xe(c,e,1);d=0;while(1){c=kc[J[J[a>>2]+8>>2]](a,J[b>>2]+d|0,e)|0;if((c|0)<=0)break a;d=c+d|0;e=e-c|0;if(e)continue;break}break a}xe(c,32768,1);d=0;e=kc[J[J[a>>2]+8>>2]](a,J[b>> +2],32768)|0;if((e|0)<=0)break a;while(1){d=d+e|0;xe(c,d+32768|0,1);e=kc[J[J[a>>2]+8>>2]](a,J[b>>2]+d|0,32768)|0;if((e|0)>0)continue;break}}H[J[b>>2]+d|0]=0}function STa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+28>>2];c=J[b+596>>2];d=J[c+28>>2];if(!((d|0)<=0&!J[c>>2])){a:{if(!J[a+100>>2]|(d|0)<=0)break a;b=J[b+120>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==10){bu(a);break a}b=J[a+8>>2];kc[J[J[b>>2]+200>>2]](b,J[a+28>>2])}b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2]; +kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;_f(b)}}function Qfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;while(1){a:{if((c|0)==(d|0)|e>>>0<=h>>>0)break a;g=1;f=fc-16|0;fc=f;J[f+12>>2]=J[a+8>>2];i=rm(f+8|0,f+12|0);J[699344]=0;j=LR(c,d-c|0,b);l=J[699344];J[699344]=0;b:{if((l|0)!=1){$h(i);fc=f+16|0;break b}a=Z()|0;$h(i);ba(a|0);B()}c:switch(j+2|0){default:g=j;break;case 0:case 1:break a;case 2:break c}h=h+1|0;k=g+k|0;c=c+g|0;continue}break}return k| +0}function Aw(a,b){var c=0,d=0,e=0;c=J[a+8>>2];if(c>>>0>=b>>>0){d=c-b|0;J[a+8>>2]=d;return J[a+4>>2]>>>d&((b|0)==32?-1:-1<>2]=0;d=J[a+4>>2]&(-1<>>0>=8)while(1){c=J[a>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+12>>2]=J[a+12>>2]+1;d=c&255|d<<8;b=b-8|0;if(b>>>0>7)continue;break}if(b){c=J[a>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[a+4>>2]=c;e=8-b|0;J[a+8>>2]=e;J[a+12>>2]=J[a+12>>2]+1;d=(-1<>>e|d<>2]; +d=J[a+104>>2];e=J[a+100>>2];c=J[a+716>>2];if(c)kc[c|0](J[a+712>>2]);if(b)kc[J[b+12>>2]](a);$f(J[a+104>>2],a+764|0);J[a+760>>2]=0;c=J[a+104>>2];b=J[c+28>>2];f=J[a+784>>2];if(f)kc[J[b+8>>2]](b,f);J[a+784>>2]=0;$f(c,a+768|0);b=J[a+704>>2];if(b)kc[J[e+8>>2]](e,b);J[a+700>>2]=0;J[a+704>>2]=0;$f(d,a+688|0);$f(d,a+696|0);J[a+692>>2]=0;J[a+684>>2]=0;s6(a);J[a+736>>2]=0}}function lCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=b+12|0;a:{b:{c:{c=J[a+84>>2]-4|0;if(c)if((c|0)==12)break c;else break b;c=-1;if(!uba(J[a+ +64>>2],e))break b;break a}c=-1;d=J[a+52>>2];if(!d)break a;if(!J[d+40>>2]){if(!uba(J[d+32>>2],e))break b;break a}a=0;if(J[b+12>>2]<=0)break b;c=J[d+52>>2];while(1){d=aP(J[b+16>>2]+(a<<4)|0);if(!d)break b;if(kba(J[c+76>>2],d))break b;a=a+1|0;if((a|0)>2])continue;break}}c=0}return c|0}function bu(a){var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;b=J[a+8>>2];a:{if(!(kc[J[J[b>>2]+28>>2]](b)|0))break a;b=J[J[a+28>>2]+384>>2];if(!b)break a;e=-1;b:{c:{d:{d=J[b+4>>2];switch(d-1|0){case 1:break c;case 0:break d;default:break b}}GJ(a, +b,1,0,0);break a}FJ(a,b,1,0,0);break a}a=J[a+108>>2];e:{if(!a)break e;a=J[a+4>>2];if(J[a+8>>2]==13)break e;a=J[a+16>>2];e=kc[J[J[a>>2]+52>>2]](a)|0;d=J[b+4>>2]}J[c>>2]=d;Cc(1,e,831378,c)}fc=c+16|0}function JN(a){a=a|0;var b=0,c=0;if(a){c=J[a+100>>2];I8(J[a+140>>2]);b=J[a+144>>2];if(b)kc[J[c+8>>2]](c,b);J[a+144>>2]=0;b=J[a+132>>2];if(b)kc[J[c+8>>2]](c,b);J[a+132>>2]=0;b=J[a+136>>2];if(b)kc[J[c+8>>2]](c,b);J[a+136>>2]=0;b=J[a+20>>2];if(b)kc[J[c+8>>2]](c,b);J[a+20>>2]=0;b=J[a+24>>2];if(b)kc[J[c+8>>2]](c, +b);J[a+24>>2]=0;b=J[a+32>>2];if(b)kc[J[c+8>>2]](c,b);J[a+32>>2]=0;b=J[a+140>>2];if(b)kc[J[c+8>>2]](c,b);J[a+140>>2]=0}}function oi(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0;i=vEb(b,c,h,i);h=jc;e=vEb(d,e,f,g);i=e+i|0;d=jc+h|0;h=e>>>0>i>>>0?d+1|0:d;j=g;e=0;k=c;d=0;c=vEb(g,e,c,d);g=c+i|0;i=jc+h|0;l=g;c=c>>>0>g>>>0?i+1|0:i;g=vEb(f,0,b,0);h=jc;i=0;d=vEb(f,i,k,d);h=h+d|0;f=jc+i|0;f=d>>>0>h>>>0?f+1|0:f;i=f+l|0;d=c;f=f>>>0>i>>>0?d+1|0:d;b=vEb(b,m,j,e)+h|0;e=jc;e=b>>>0>>0?e+1|0:e;h=e+i|0;i=f;J[a+8>>2]=h;J[a+ +12>>2]=e>>>0>h>>>0?i+1|0:i;J[a>>2]=g;J[a+4>>2]=b}function gzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){g=K[d|0];e=4;d=d+1|0;b=240}H[c|0]=P((b&g)>>>e|0,17);e=e-4|0;c=c+2|0;b=(b&240)>>>4|0;f=f+1|0;if((f|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function eO(a,b){a=a| +0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if(!a)return 0;if(!b){if(a)J[a+16>>2]=J[a+16>>2]+1;return a|0}d=fc-16|0;fc=d;g=!a;a:{if(g|(b|0)<0)break a;Df(a,d+12|0,d+8|0,d+4|0);c=b+b|0;e=J[d+12>>2]-c|0;if((e|0)<=0)break a;f=J[d+8>>2]-c|0;if((f|0)<=0)break a;c=iO(e,f,J[d+4>>2]);if(!c)break a;if(!(g|!c|(a|0)==(c|0))){J[c+20>>2]=J[a+20>>2];J[c+24>>2]=J[a+24>>2]}BE(c,a);Cf(c,0,0,e,f,24,a,b,b);h=c}fc=d+16|0;return h|0}function e5(a){var b=0,c=0,d=0,e=0;J[a>>2]=349644;a:{b=J[a+4>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]= +0;_(c|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[a+4>>2]=0}c=J[a+8>>2];if(c){d=J[c+8>>2];b:{if(!d)break b;b=d-1|0;J[c+8>>2]=b;e=J[c+16>>2]+(d<<2)|0;while(1){e=e-4|0;d=J[e>>2];if(d){uc(d);b=J[c+8>>2]}d=b;b=d-1|0;J[c+8>>2]=b;if(d)continue;break}b=J[c+16>>2];if(!b)break b;uc(b)}uc(c);J[a+8>>2]=0}return}ea(0)|0;Bc();B()}function bzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;d=J[a+ +636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){g=K[d|0];e=4;d=d+1|0;b=240}H[c|0]=P((b&g)>>>e|0,17);e=e-4|0;c=c+4|0;b=(b&240)>>>4|0;f=f+1|0;if((f|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function LAa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;a:{if(!K[a+144|0]){a=Qc(c,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>> +2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=Co(c,2413244);J[699344]=0;ca(5512,a|0,d|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;Md(d);ba(a|0);B()}Md(d);fc=c+32|0;return}B()}function IT(a,b){var c=0;c=fc-16|0;fc=c;Tc(b,2457016,-1);Tc(b,2457332,-1);Tc(b,2457648,-1);Tc(b,2457704,-1);Oj(b,J[J[a+624>>2]+4>>2]);Tc(b,2457768,-1);Oj(b,J[J[a+624>>2]+4>>2]);Tc(b,2453360,-1);Tc(b,2456952,-1);Tc(b,2457836,-1);Tc(b,2457996,-1);Tc(b,2458144,-1);Tc(b,2458208,-1);Tc(b,2458268,-1);GT(a,b);Tc(b,2458328, +-1);Tc(b,2458392,-1);H[c+15|0]=0;Lv(a,b,c+15|0);Kv(a,b);Tc(b,2458492,-1);Tc(b,2458540,-1);Tc(b,2456256,-1);fc=c+16|0}function I8a(a){a=a|0;var b=0,c=0,d=0,e=0;b=vc(80);c=J[a+8>>2];J[b+16>>2]=J[a+16>>2];J[b>>2]=349404;J[b+4>>2]=2;J[699344]=0;d=_(2256,b+20|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[b+40>>2]=0;J[b+44>>2]=0;J[b+24>>2]=-16777216;J[b+28>>2]=-16777216;H[b+72|0]=255;J[b+12>>2]=0;J[b+8>>2]=c;H[b+32|0]=0;J[b+48>>2]=0;J[b+52>>2]=0;J[b+56>>2]=0;J[b+60>>2]=0;c=b- -64|0;J[c>>2]=0;J[c+4>>2]=0; +Dj(d,a+20|0);return b|0}a=Z()|0;uc(b);ba(a|0);B()}function $wb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=kc[J[a+2296>>2]](K[c|0])|0;e=kc[J[a+2296>>2]](K[c+1|0])|0;f=kc[J[a+2296>>2]](K[c+2|0])|0;g=kc[J[a+2296>>2]](K[c+3|0])|0;H[b+5|0]=(f|0)!=0;H[b+4|0]=f>>>8;H[b+3|0]=(e|0)!=0;H[b+2|0]=e>>>8;H[b+1|0]=(d|0)!=0;H[b|0]=d>>>8;H[b+7|0]=(g|0)!=0;H[b+6|0]=g>>>8;b=b+8|0;c=c+4|0;h=h+1|0;if(h>>>0>2])continue;break}}return 0}function om(a,b,c){var d= +0,e=0,f=0;e=fc-4112|0;fc=e;J[e+4108>>2]=c;IS(e,b,c);c=K[e|0];a:{if(!c)break a;b=e;while(1){d=J[a+8>>2];if(d&7)break a;f=J[a+64>>2];if(!((f|0)<0|J[a+60>>2]<(f|0))){J[a+8>>2]=d|4;break a}J[a+4>>2]=J[a+4>>2]|32;d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=c;break b}if((bd(a,c&255)|0)==-1)break a}c=K[b+1|0];b=b+1|0;if(c)continue;break}}fc=e+4112|0}function SWa(a,b){a=a|0;b=b|0;var c=0,d=0;Fe(b,13);To(a,b);c=J[a+8>>2];if(c&32768){d=O[a+232>>3]*100; +a:{if(R(d)<2147483648){c=~~d;break a}c=-2147483648}zd(b,c);d=O[a+240>>3]*100;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}zd(b,c);d=O[a+248>>3]*100;c:{if(R(d)<2147483648){c=~~d;break c}c=-2147483648}zd(b,c);d=O[a+256>>3]*100;d:{if(R(d)<2147483648){c=~~d;break d}c=-2147483648}zd(b,c);c=J[a+8>>2]}if(c&65536)Fe(b,K[a+228|0])}function LU(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!J[a+8>>2])break a;d=J[a+4>>2];b=J[d>>2];c=J[J[a>>2]+4>>2];J[b+4>>2]=c;J[c>>2]=b;J[a+8>>2]=0;if((a|0)==(d|0))break a;while(1){b= +d;d=J[b+4>>2];b:{if(!J[b+20>>2])break b;c=J[b+16>>2];f=J[c>>2];e=J[J[b+12>>2]+4>>2];J[f+4>>2]=e;J[e>>2]=f;J[b+20>>2]=0;e=b+12|0;if((e|0)==(c|0))break b;while(1){f=J[c+4>>2];uc(c);c=f;if((e|0)!=(c|0))continue;break}}uc(b);if((a|0)!=(d|0))continue;break}}}function Eqb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;d=Yc(b);if(d>>>0<2147483632){a:{if(d>>>0<=10){H[c+15|0]=d;e=c+4|0;break a}f=(d|15)+1|0;e=vc(f);J[c+12>>2]=f|-2147483648;J[c+4>>2]=e;J[c+8>>2]=d}g=xc(e,b,d)+d|0,h=0,H[g|0]=h;J[699344]= +0;a=aa(1628,a|0,c+4|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return a|0}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}_d(c+4|0);B()}function xka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;while(1){a:{if((c|0)<=(g|0))break a;d=J[a+24>>2];e=J[a+28>>2];if(d>>>0>=e>>>0){if((kc[J[J[a>>2]+52>>2]](a,J[b>>2])|0)==-1)break a;g=g+1|0;b=b+4|0}else{J[f+12>>2]=e-d>>2;J[f+8>>2]=c-g;d=fc-16|0;fc=d;fc=d+16|0;d=f+8|0;e=f+12|0;d=J[(J[d>>2]>2]?d:e)>>2]; +Ik(J[a+24>>2],b,d);e=d<<2;J[a+24>>2]=e+J[a+24>>2];g=d+g|0;b=b+e|0}continue}break}fc=f+16|0;return g|0}function of(a,b){a=a|0;b=b|0;var c=0,d=0;d=a;a:{b:{if((d^b)&3){c=K[b|0];break b}if(b&3)while(1){c=K[b|0];H[d|0]=c;if(!c)break a;d=d+1|0;b=b+1|0;if(b&3)continue;break}c=J[b>>2];if((c^-1)&c-16843009&-2139062144)break b;while(1){J[d>>2]=c;c=J[b+4>>2];d=d+4|0;b=b+4|0;if(!(c-16843009&(c^-1)&-2139062144))continue;break}}H[d|0]=c;if(!(c&255))break a;while(1){c=K[b+1|0];H[d+1|0]=c;d=d+1|0;b=b+1|0;if(c)continue; +break}}return a|0}function iea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;a:{if(J[b>>2]){if(K[c+11|0]>>>7|0)d=J[c+4>>2];else d=K[c+11|0]&127;if(d)rQ(c,29829);d=e+4|0;f=J[b+4>>2];kc[J[J[f>>2]+24>>2]](d,f,J[b>>2]);J[699344]=0;aa(7260,c|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;jd(d)}b=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=b;J[a+8>>2]=J[c+8>>2];J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;fc=e+16|0;return}a=Z()|0;jd(e+4|0);ba(a|0);B()}function bib(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=J[a+496>>2];if(!f)return 6;g=J[f+32>>2];if(g){a=0;while(1){e=J[f+28>>2]+P(a,20)|0;a:{if(J[e>>2]!=(c|0))break a;h=J[e+4>>2];if((h|0)>(b|0)){J[d>>2]=J[e+8>>2];break a}i=J[e+12>>2];if((i|0)<(b|0)){J[d>>2]=J[e+16>>2];break a}j=d,k=Od(b-h|0,J[e+16>>2]-J[e+8>>2]|0,i-h|0)+J[e+8>>2]|0,J[j>>2]=k;g=J[f+32>>2]}a=a+1|0;if(g>>>0>a>>>0)continue;break}}return 0}function Ygb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=J[a+20>>2];if((d|0)!=205){f=J[a>>2];J[f+24>>2]=d;J[f+ +20>>2]=21;kc[J[J[a>>2]>>2]](a)}f=J[a+116>>2];g=J[a+140>>2];a:{if(f>>>0<=g>>>0){b=J[a>>2];J[b+20>>2]=126;kc[J[b+4>>2]](a,-1);c=0;break a}d=J[a+8>>2];if(d){J[d+8>>2]=f;J[d+4>>2]=g;kc[J[d>>2]](a)}J[e+12>>2]=0;kc[J[J[a+444>>2]+4>>2]](a,b,e+12|0,c);c=J[e+12>>2];J[a+140>>2]=c+J[a+140>>2]}fc=e+16|0;return c|0}function ABa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;NH(d+12|0,a);J[699344]=0;ca(5322,J[d+12>>2],b|0,c|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[d+12>>2];J[d+12>>2]=0;b:{if(!a)break b; +J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(b)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=d+16|0;return}a=Z()|0;zc(d+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function Gm(a){var b=0,c=0,d=0;a:{b:{if(!J[693748])break b;c=J[693750];c:{if(c){J[699344]=0;b=_(4,8)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b>>2]=a;J[c+4>>2]=b;break c}J[699344]=0;b=_(4,8)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[b>>2]=a;J[693749]=b}J[693750]= +b;J[b+4>>2]=0;b=J[693751];J[693751]=b+1;if((b|0)<127)break b;b=J[693749];J[693749]=J[b+4>>2];uc(b);J[693751]=J[693751]-1}uc(a);return}ea(0)|0;Bc();B()}function y_(a,b,c,d,e,f){a=J[a+12>>2];if(c){b=J[a+4>>2];J[e>>2]=J[a>>2];J[e+4>>2]=b;b=J[a+28>>2];J[e+24>>2]=J[a+24>>2];J[e+28>>2]=b;b=J[a+20>>2];J[e+16>>2]=J[a+16>>2];J[e+20>>2]=b;b=J[a+12>>2];J[e+8>>2]=J[a+8>>2];J[e+12>>2]=b;return}b=J[a+36>>2];J[e>>2]=J[a+32>>2];J[e+4>>2]=b;b=J[a+60>>2];J[e+24>>2]=J[a+56>>2];J[e+28>>2]=b;b=J[a+52>>2];J[e+16>>2]=J[a+ +48>>2];J[e+20>>2]=b;b=J[a+44>>2];J[e+8>>2]=J[a+40>>2];J[e+12>>2]=b;J[f>>2]=0}function oZa(a,b){a=a|0;b=b|0;kc[J[J[a>>2]+80>>2]](a,b);kc[J[J[a>>2]+84>>2]](a,b);kc[J[J[a>>2]+88>>2]](a,b);kc[J[J[a>>2]+92>>2]](a,b);kc[J[J[a>>2]+96>>2]](a,b);kc[J[J[a>>2]+100>>2]](a,b);kc[J[J[a>>2]+104>>2]](a,b);kc[J[J[a>>2]+108>>2]](a,b);kc[J[J[a>>2]+116>>2]](a,b);kc[J[J[a>>2]+112>>2]](a,b);kc[J[J[a>>2]+120>>2]](a,b);kc[J[J[a>>2]+124>>2]](a,b);kc[J[J[a>>2]+128>>2]](a,b);kc[J[J[a>>2]+132>>2]](a,b);kc[J[J[a>>2]+156>>2]](a, +b)}function etb(a){a=a|0;var b=0,c=0,d=0;c=J[a+588>>2];b=J[a+644>>2];a:{if(K[a+648|0]){if((c|0)<=0)break a;c=a+704|0;while(1){H[b|0]=K[c+K[b|0]|0];H[b+2|0]=K[c+K[b+2|0]|0];H[b+4|0]=K[c+K[b+4|0]|0];b=b+8|0;d=d+1|0;if((d|0)>2])continue;break}break a}if((c|0)<=0)break a;c=a+704|0;while(1){H[b|0]=K[c+K[b|0]|0];H[b+1|0]=K[c+K[b+1|0]|0];H[b+2|0]=K[c+K[b+2|0]|0];b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function Zw(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a>>2];e=a+4|0;if((c|0)!=(e| +0))while(1){d=J[c+24>>2];if(d){b=J[d+24>>2];if(b)uc(b);b=J[d+28>>2];if(b)uc(b);if(H[d+23|0]<0)uc(J[d+12>>2]);if(H[d+11|0]<0)uc(J[d>>2]);uc(d)}b=J[c+4>>2];a:{if(b)while(1){c=b;b=J[c>>2];if(b)continue;break a}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(e|0))continue;break}hu(a,J[a+4>>2]);J[a>>2]=e;J[a+4>>2]=0;J[a+8>>2]=0}function Seb(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;var h=0,i=0;h=fc-16|0;fc=h;i=1;a:{if(!(!J[a+16>>2]|!J[a+20>>2])){b=yq(h+12|0,O[b>>3], +O[c>>3],O[d>>3],O[e>>3],O[f>>3],O[g>>3]);c=J[a+16>>2];if(!(!c|!J[a+20>>2])){J[699344]=0;BD(c,b);c=J[699344];J[699344]=0;if((c|0)==1)break a;a=J[a+16>>2];J[699344]=0;Mu(a);a=J[699344];J[699344]=0;if((a|0)==1)break a}Jd(b);i=0}fc=h+16|0;return i|0}a=Z()|0;Jd(b);ba(a|0);B()}function zwa(a,b){a=a|0;b=b|0;var c=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a>>2]=2424768;J[a+4>>2]=0;J[699344]=0;ca(5631,a|0,b|0,0);b=J[699344];J[699344]=0;a:{b:{if((b|0)==1){oa(ea(0)|0)|0;b=J[a+20>>2];if(b)uc(b);J[a+16>>2]=0; +J[a+20>>2]=0;J[699344]=0;ka(5257);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)==1)break b;nd(a);ba(b|0);B()}return a|0}ea(0)|0;Bc()}B()}function tW(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-32|0;fc=d;c=a+148|0;a:{if(J[c>>2]&1)break a;e=J[c>>2];if(e&2|e&4)break a;xW(a);f=1}b:{if(!b)break b;if(K[a+144|0])while(1){if(!(J[c>>2]&1))break b;while(1){if(J[c>>2]&1)continue;break}if(K[a+144|0])continue;break}a=Qc(d+8|0,2394631,2386059,164,2414168, +0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0);B()}B()}fc=d+32|0;return f|0}function dya(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((a|0)==(b|0))break a;c=J[a+8>>2];if(c)while(1){d=J[c>>2];kc[J[J[a>>2]+16>>2]](c,1);uc(c);c=d;if(c)continue;break}J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;c=J[b+8>>2];if(!c)break a;b=a+8|0;while(1){e=vc(J[J[a>>2]>>2]);kc[J[J[a>>2]+12>>2]](e,c,1,0);J[e>>2]=0;d=J[a+12>>2];J[e+4>>2]=d;J[a+12>>2]=e;J[(d?d:b)>>2]=e;J[a+4>>2]=J[a+4>>2]+1;c=J[c>> +2];if(c)continue;break}}return a|0}function WO(a,b,c){var d=0,e=0,f=0,g=0,h=0;if(a){f=J[b+88>>2]+P(c,1876)|0;if(J[f+420>>2]>=0){c=0;while(1){g=c;e=P(c,112)+a|0;d=J[e+76>>2];a:{if(!d)break a;c=0;b=J[a+72>>2];if((b|0)>0){while(1){d=J[e+76>>2]+(c<<4)|0;h=J[d+12>>2];if(h){uc(h);J[d+12>>2]=0;b=J[a+72>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}d=J[e+76>>2];if(!d)break a}uc(d);J[e+76>>2]=0}c=g+1|0;if(J[f+420>>2]>(g|0))continue;break}}b=J[a>>2];if(b)uc(b);uc(a)}}function EUa(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;f=fc-16|0;fc=f;g=O[a+16>>3];h=O[a+24>>3];d=O[b>>3];d=dh?h:d;b=J[a+1044>>2];e=((b|0)<=1?1:b)-1|0;i=J[a+1052>>2];while(1){a:{b=j;if((e|0)==(b|0)){b=e;break a}j=b+1|0;if(!(d>3]))continue}break}e=b<<3;O[f+8>>3]=(d-O[e+i>>3])*O[e+J[a+1060>>2]>>3]+O[J[a+1056>>2]+(b<<4)>>3];a=J[J[a+1048>>2]+(b<<2)>>2];kc[J[J[a>>2]+16>>2]](a,f+8|0,c);fc=f+16|0}function Cnb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=J[a+16>>2];if(!e){J[b>>2]=0;return 0}i=J[a+20>>2];f=J[b>> +2];a:while(1){f=f+1|0;c=0;d=e;while(1){g=(d-c>>>1|0)+c|0;h=J[(g<<4)+i>>2];if((h|0)==(f|0)){if(!g)continue a;J[b>>2]=f;return g+1|0}h=f>>>0>h>>>0;c=h?g+1|0:c;d=h?d:g;if(c>>>0>>0)continue;break}break}d=0;if(c>>>0>=e>>>0){J[b>>2]=0;return 0}e=0;if(c){e=J[J[a+20>>2]+(c<<4)>>2];d=c+1|0}J[b>>2]=e;return d|0}function yjb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];c=J[b+4>>2];if(!c){if(!(kc[J[b+12>>2]](a)|0))return 0;c=J[b+4>>2]}d=J[b>>2];e=K[d|0];f=c-1|0;if(f)c=d+1|0;else{if(!(kc[J[b+12>>2]](a)| +0))return 0;f=J[b+4>>2];c=J[b>>2]}d=K[c|0];g=J[a>>2];J[g+20>>2]=93;J[g+24>>2]=J[a+436>>2];d=d|e<<8;e=d-2|0;J[J[a>>2]+28>>2]=e;kc[J[J[a>>2]+4>>2]](a,1);J[b+4>>2]=f-1;J[b>>2]=c+1;if(d>>>0>=3)kc[J[J[a+24>>2]+16>>2]](a,e);return 1}function wEa(a){a=a|0;var b=0,c=0,d=0;b=fc-16|0;fc=b;J[b+12>>2]=0;vd(b+12|0,a);J[699344]=0;$(5263,J[b+12>>2]);a=J[699344];J[699344]=0;a:{if((a|0)!=1){a=J[b+12>>2];J[b+12>>2]=0;b:{if(!a)break b;J[699344]=0;c=J[a+4>>2]-1|0;J[a+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a; +if(c)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}fc=b+16|0;return}a=Z()|0;zc(b+12|0);ba(a|0);B()}ea(0)|0;Bc();B()}function vzb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;b=J[a+636>>2]+J[a+616>>2]|0;while(1){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;d=K[b+4|0]|K[b+5|0]<<8;H[c+4|0]=d;H[c+5|0]=d>>>8;b=b+6|0;c=P(J[a+ +584>>2],6)+c|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function ona(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-32|0;fc=b;c=J[a>>2];J[b+8>>2]=32;J[b+12>>2]=0;H[b+19|0]=1;J[b+28>>2]=0;J[b+24>>2]=0;e=J[J[c>>2]+88>>2];J[699344]=0;ha(e|0,c|0,b+8|0,b+28|0,b+24|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){if(H[b+19|0]<0)uc(J[b+8>>2]);a=J[a>>2];kc[J[J[a>>2]+120>>2]](b+8|0,a);fc=b+32|0;d=+Q(N[b+12>>2]-N[b+8>>2])*.35277777777777775;return+(d<=0?1:d)}a=Z()|0;if(H[b+19|0]<0)uc(J[b+8>>2]);ba(a|0);B()}function Ktb(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{e=J[b+36>>2];g=P(J[b+48>>2],K[b+44|0]>>>1&124|2);d=(e+g|0)+2|0;b:{if(d>>>0<=M[a+424>>2]){c=J[a+428>>2]+8|0;break b}c=kc[J[a+152>>2]](d)|0;if(!c)break a;e=J[b+36>>2]}f=c;if(e)f=xc(c,J[b+40>>2],e)+J[b+36>>2]|0;H[f|0]=0;H[f+1|0]=K[b+44|0];if(J[b+48>>2])xc(f+2|0,J[b+52>>2],g);b=Ce(a,J[b>>2],d,c);if(M[a+424>>2]>>0)kc[J[a+156>>2]](c,d);return b|0}Jc(a,1,0,0);return 1}function rca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{c:{e=J[a+584>>2];if(e){f=J[e+ +36>>2];if(!f)break c;if(!(kc[f|0](a,b,c,d)|0))return 0;d=J[e+8>>2];if((d|0)<=0)break b;if(!J[e+40>>2])break a;if((c|0)>0)while(1){kc[J[e+40>>2]](a,b,d);b=b+d|0;c=c-d|0;if((c|0)>0)continue;break}return 1}fa(72298,70404,416,197601);B()}fa(78812,70404,417,197601);B()}fa(79443,70404,421,197601);B()}fa(78549,70404,422,197601);B()}function V4a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(!b)return 0;if(J[a+16>>2]>0)while(1){c=J[a+8>>2]+(d<<4)|0;e=O[c+8>>3];f=O[c>>3];g=K[J[a+12>>2]+d|0];a:{b:{if(g&1){kc[J[J[b>> +2]>>2]](b,f,e)|0;break b}if(g&8){kc[J[J[b>>2]+8>>2]](b,f,e,O[c+16>>3],O[c+24>>3],O[c+32>>3],O[c+40>>3])|0;c=3;break a}kc[J[J[b>>2]+4>>2]](b,f,e)|0}c=1}d=c+d|0;if((g&6)==6)kc[J[J[b>>2]+12>>2]](b)|0;if(J[a+16>>2]>(d|0))continue;break}return 1}function QZ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(a>>>0<=127){if((c|0)<=0)return 0;H[b|0]=a;return 1}a:{if(a>>>0<=2047){if((c|0)<2)break a;H[b+1|0]=a&63|128;H[b|0]=(a>>>6|0)+-64;return 2}if(a>>>0<=65535){if((c|0)<3)break a;H[b+2|0]=a&63|128;H[b|0]=(a>>>12|0)-32; +H[b+1|0]=a>>>6&63|128;return 3}if((c|0)<4|a>>>0>1114111)break a;H[b+3|0]=a&63|128;H[b|0]=(a>>>18|0)-16;H[b+2|0]=a>>>6&63|128;H[b+1|0]=a>>>12&63|128;d=4}return d|0}function Ima(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=fc+-64|0;fc=c;e=L[a+88>>1];b=2744240;a:{while(1){b:{b=J[b>>2];if(!b){d=0;if(!J[660504])break b;b=2642016;while(1){if((e|0)==L[b+4>>1])break a;f=J[b+12>>2];b=b+12|0;if(f)continue;break}break b}d=J[b+4>>2];if((e|0)!=L[d+4>>1])continue}break}b=d}J[c+16>>2]=L[a+88>>1];d=c+32|0;cg(d,78809,c+16| +0);e=J[a>>2];f=J[a+628>>2];J[c>>2]=b?J[b>>2]:d;Uc(f,e,79182,c);fc=c- -64|0;return 0}function cU(a){var b=0,c=0,d=0;a:{if(!J[a+8>>2])break a;b=J[a+4>>2];c=J[b>>2];d=J[J[a>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+8>>2]=0;if((a|0)==(b|0))break a;while(1){c=J[b+4>>2];yo(b+8|0);uc(b);b=c;if((b|0)!=(a|0))continue;break}if(!J[a+8>>2])break a;b=J[a+4>>2];c=J[b>>2];d=J[J[a>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+8>>2]=0;if((a|0)==(b|0))break a;while(1){c=J[b+4>>2];yo(b+8|0);uc(b);b=c;if((b|0)!=(a|0))continue;break}}} +function SVa(a){a=a|0;var b=0,c=0;J[a>>2]=2194316;a:{b=J[a+20>>2];b:{if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[a+24>>2];if(!b|(b|0)==2653344)break a;b=0;while(1){c=J[J[a+24>>2]+(b<<2)>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break b;b=b+1|0;if((b|0)!=256)continue;break}b=J[a+24>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(dq(a))}function Owb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){d=J[a+636>>2]+J[a+ +616>>2]|0;c=J[a+644>>2];while(1){b=K[d|0]|K[d+1|0]<<8;b=(b<<8|b>>>8)&65535;e=b<<8|b>>>8;H[c|0]=e;H[c+1|0]=e>>>8;b=b<<8|b>>>8;H[c+2|0]=b;H[c+3|0]=b>>>8;H[c+4|0]=b;H[c+5|0]=b>>>8;b=K[d+2|0]|K[d+3|0]<<8;b=(b<<8|b>>>8)&65535;b=b<<8|b>>>8;H[c+6|0]=b;H[c+7|0]=b>>>8;c=c+8|0;d=d+4|0;f=f+1|0;if((f|0)>2])continue;break}}H[a+649|0]=0;return 0}function O_(a,b){var c=0,d=0;Ji(J[a+88>>2]);Ji(J[a+92>>2]);Ji(J[a+96>>2]);Ji(J[a+100>>2]);Ji(J[a+104>>2]);Ji(J[a+108>>2]);Ji(J[a+112>>2]);Ji(J[a+116>>2]);Ji(J[a+ +120>>2]);Ji(J[a+124>>2]);Ji(J[a+128>>2]);Ji(J[a+132>>2]);Ji(J[a+136>>2]);d=1<>2];if((d|0)==J[c+4>>2]){Ji(c);return}uc(ld(c));b=vc(8);J[699344]=0;c=aa(3618,b|0,d|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+140>>2]=c;return}a=Z()|0;uc(b);ba(a|0);B()}function RU(a,b){var c=0;J[a+40>>2]=-1;J[a+44>>2]=-1048577;J[a+32>>2]=-1;J[a+36>>2]=-1048577;J[a+24>>2]=-1;J[a+28>>2]=2146435071;J[a+16>>2]=-1;J[a+20>>2]=2146435071;J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;a:{if((a|0)!=(b|0)){c=J[b+4>>2];J[699344]= +0;ia(6490,a|0,c|0,b|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break a;O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3]}return a}ea(0)|0;Bc();B()}function yMa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+296>>2];c=J[a+300>>2];a:{if(b>>>0>=c>>>0){b=a+40|0;J[a+300>>2]=b;J[a+296>>2]=b;c=J[a+304>>2]+(c-b|0)|0;J[a+304>>2]=c;if(J[a+32>>2]){e=J[a+36>>2]+J[a+28>>2]|0;d=-1;if((e|0)<=(c|0))break a;d=(e|0)>=(c+256|0)?256:e-c|0}else d=256;e=J[a+24>>2];_B(J[e>>2],c,0);c=ge(b,1,d,J[e>> +2])+b|0;J[a+300>>2]=c;b=J[a+296>>2];d=-1;if(c>>>0<=b>>>0)break a}J[a+296>>2]=b+1;d=K[b|0]}return d|0}function l3(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;b=J[a>>2];if(b){b:{if(!(J[a+16>>2]|J[a+20>>2]))break b;d=-1;while(1){b=J[a>>2];e=J[a+28>>2];while(1){d=d+1|0;if((e|0)<=(d|0))break b;c=P(d,12)+b|0;if(J[c>>2]<0)continue;break}b=J[a+16>>2];c:{if(!b)break c;e=J[c+8>>2];if(!e)break c;kc[b|0](e)}b=J[a+20>>2];if(!b)continue;c=J[c+4>>2];if(!c)continue;kc[b|0](c);continue}}Nf(b);J[a>>2]=0}if(!K[a+49|0])break a; +Nf(a)}}function iva(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){d=h<<2;while(1){f=f-1|0;a=e;while(1){c=K[l|0];J[b>>2]=c<<24|((P(K[i|0],c)+127&65535)>>>0)/255|((P(K[j|0],c)+127&65535)>>>0)/255<<8|((P(K[k|0],c)+127&65535)>>>0)/255<<16;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;l=l+1|0;a=a-1|0;if(a)continue;break}l=g+l|0;k=g+k|0;j=g+j|0;i=g+i|0;b=b+d|0;if(f)continue;break}}}function hka(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;a:{if((c| +0)>0)while(1){g=J[a+600>>2];e=J[a+608>>2];f=(c+e|0)>(g|0)?g-e|0:c;if((f|0)<=0)break a;d=b;h=J[a+604>>2];if((h|0)!=(b|0)){Ue(h,b,f);g=J[a+600>>2];e=J[a+608>>2];d=J[a+604>>2]}e=e+f|0;J[a+608>>2]=e;J[a+604>>2]=d+f;b:{if((e|0)<(g|0))break b;if(pf(a))break b;return-1}b=b+f|0;c=c-f|0;if((c|0)>0)continue;break}return 1}fa(70576,71153,48,94050);B()}function wDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{if(J[a+20>>2])while(1){c=J[b+8>>2];if(c&7)return-1;e=K[J[a+24>>2]+d|0];f=J[b+64>>2];if(!((f|0)<0|J[b+60>> +2]<(f|0))){J[b+8>>2]=c|4;return-1}J[b+4>>2]=J[b+4>>2]|32;c=J[b+28>>2];J[b+28>>2]=c-1;b:{if((c|0)>0){J[b+60>>2]=J[b+60>>2]+1;c=J[b+24>>2];J[b+24>>2]=c+1;H[c|0]=e;break b}c=-1;if((bd(b,e)|0)==-1)break a}d=d+1|0;if(d>>>0>2])continue;break}c=0}return c|0}function nx(a){var b=0,c=0,d=0;if(a){b=J[a+32>>2];if(b)d=J[b+80>>2];a:{if(!J[693393])break a;c=J[693391];if(!c)break a;kc[c|0](a);b=J[a+32>>2]}if(!(!b|J[a+40>>2]!=2))E1(b,a);b=J[a+12>>2];if(b)Ym(b);c=J[a+8>>2];b:{if(!c)break b;if(d)while(1){b= +J[d+16>>2];if(b)while(1){if(c>>>0<=M[b+4>>2]&c>>>0>=b+20>>>0)break b;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}kc[J[663199]](c)}kc[J[663199]](a)}}function j_(a){a=a|0;var b=0,c=0;J[a>>2]=2344472;a:{b=J[a+34068>>2];if((b|0)!=J[685848]){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+34076>>2];if((b|0)!=J[685884]){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+8>>2];if(b){c=J[b+32>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a; +uc(b)}b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function TVa(a){a=a|0;var b=0,c=0;J[a>>2]=2194316;a:{b=J[a+20>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+24>>2];if(!(!b|(b|0)==2653344)){b=0;while(1){c=J[J[a+24>>2]+(b<<2)>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;b=b+1|0;if((b|0)!=256)continue;break}b=J[a+24>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}return dq(a)|0}ea(0)|0;Bc();B()}function OH(a){a= +a|0;var b=0,c=0,d=0;c=fc-32|0;fc=c;a:{if(!K[a+89|0]){a=Qc(c+8|0,2390221,2385400,286,2413455,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}b=1;d=a+92|0;b:{if(!(J[d>>2]&1))break b;if(J[a+56>>2]-3>>>0<=1){a=J[a+48>>2];b=(J[a+48>>2]-J[a+44>>2]|0)+1|0;break b}if(!(J[d>>2]&4))break b;a=J[a+112>>2];b=(J[a+68>>2]-J[a- -64>>2]|0)+1|0}fc=c+32|0;return b|0}B()}function IEa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=fc-16|0;fc=b;a:{if(J[a+12>>2]>=16){d=a+8|0;while(1){f= +0;c=J[a+16>>2];J[b+12>>2]=d;J[b+8>>2]=c;e=c;if(!c){J[b+4>>2]=d;J[b>>2]=0;break a}while(1){g=J[J[e+8>>2]+72>>2];if(g>>>0>>0){J[b+12>>2]=d;J[b+8>>2]=e;f=g;c=e}e=J[e>>2];if(e)continue;break}J[b+4>>2]=d;J[b>>2]=c;if(!c)break a;tX(J[c+8>>2]);Do(d,b+8|0);if(J[a+12>>2]>15)continue;break}}fc=b+16|0;return}xj(b,d);B()}function yFa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a=a+c|0;cd(a+e|0,a,b-c|0);a:{if((e|0)<=0)break a;f=e&7;b=K[d|0];d=0;c=0;if(e>>>0>=8){g=e&-8;e=0;while(1){H[a+c|0]=b;H[a+(c| +1)|0]=b;H[a+(c|2)|0]=b;H[a+(c|3)|0]=b;H[a+(c|4)|0]=b;H[a+(c|5)|0]=b;H[a+(c|6)|0]=b;H[a+(c|7)|0]=b;c=c+8|0;e=e+8|0;if((g|0)!=(e|0))continue;break}}if(!f)break a;while(1){H[a+c|0]=b;c=c+1|0;d=d+1|0;if((f|0)!=(d|0))continue;break}}}function p8a(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0,i=0;d=fc-32|0;fc=d;O[d+8>>3]=c;O[d+16>>3]=b;e=J[a+8>>2];H[e+1|0]=1;J[d+28>>2]=0;f=d+28|0;h=Qe(e+4|0,f),i=1,H[h|0]=i;g=J[d+28>>2];O[g+8>>3]=c;O[g>>3]=b;J[e+4>>2]=J[e+4>>2]+1;e=J[a+4>>2];if(e){J[d+28>>2]=512;kc[J[J[e>> +2]+308>>2]](e,f)|0;e=J[a+4>>2];kc[J[J[e>>2]+316>>2]](e,d+16|0,d+8|0)|0;a=J[a+4>>2];J[d+28>>2]=512;kc[J[J[a>>2]+312>>2]](a,f)|0}fc=d+32|0;return 1}function cya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{e=J[d>>2];if(!(!e|J[d+4>>2]!=(c|0))){if(J[b+4>>2]!=(a|0)?J[b>>2]:0)break a;f=d;d=J[e>>2];J[f>>2]=d;b=J[b>>2];if((b|0)!=(e|0)){g=c+8|0;f=J[e+4>>2];J[(d?d:g)+4>>2]=f;J[(f?f:g)>>2]=d;J[c+4>>2]=J[c+4>>2]-1;d=a+12|0;c=J[(b?b+4|0:d)>>2];J[e>>2]=b;J[e+4>>2]=c;J[(c?c:a+8|0)>>2]=e;b=J[e>>2];J[(b?b+ +4|0:d)>>2]=e;J[a+4>>2]=J[a+4>>2]+1}return}xj(d,c);B()}xj(b,a);B()}function cdb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=J[a+4>>2];if(c>>>0>=999999985){d=J[a>>2];J[d+20>>2]=56;J[d+24>>2]=3;kc[J[J[a>>2]>>2]](a)}if(b>>>0>=2){d=J[a>>2];J[d+24>>2]=b;J[d+20>>2]=15;kc[J[J[a>>2]>>2]](a)}d=c+7&-8;f=d+16|0;c=Dc(f);if(!c){g=J[a>>2];J[g+20>>2]=56;J[g+24>>2]=4;kc[J[J[a>>2]>>2]](a)}J[e+76>>2]=J[e+76>>2]+f;a=(b<<2)+e|0;b=J[a+60>>2];J[c+8>>2]=0;J[c+4>>2]=d;J[c>>2]=b;J[a+60>>2]=c;return c+16|0}function aO(a, +b,c){var d=0,e=0;if(!a)return;e=J[a+8>>2]+((b>>>0)%M[a>>2]<<2)|0;b=J[e>>2];a:{b:{if(b){a=J[b>>2];break b}a=J[a+4>>2];b=kd(1,24);if(!b)break a;a=(a|0)<=0?50:a;d=kd(a,4);J[b+20>>2]=d;if(!d)break a;J[b+16>>2]=1065353216;J[b+8>>2]=1;J[b>>2]=a;J[e>>2]=b}d=b+20|0;e=J[b+4>>2];c:{if((e|0)<(a|0)){a=J[d>>2];d=e;break c}a=im(d,a<<2,a<<3);J[b+20>>2]=a;J[b>>2]=J[b>>2]<<1;d=J[b+4>>2]}N[(e<<2)+a>>2]=c;J[b+4>>2]=d+1}}function Spb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[b+8>>2];f=J[a>>2];d=J[f+140>>2];g=J[f+ +32>>2];e=J[b+16>>2];if(e)c=(P(c,e)+36|0)/72|0;e=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((e|0)==J[g+12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23;if((e|0)!=(J[d+44>>2]+J[d+40>>2]|0))break a}c=0;io(f,0);J[a+24>>2]=J[d+40>>2]<<6;J[a+28>>2]=0-(J[d+44>>2]<<6);J[a+36>>2]=L[d+4>>1]<<6}return c|0}function PF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;a:{b:{if(c>>>0<11){d=a;H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;break b}if(c>>>0>2147483631)break a; +g=e+8|0;if(c>>>0>=11){f=c+16&-16;d=f-1|0;d=(d|0)==11?f:d}else d=10;Vs(g,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>>2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}hk(d,b,c+1|0);fc=e+16|0;return}_d(a);B()}function zYa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;c=fc-16|0;fc=c;a:{if(J[a+108>>2]!=16)break a;d=J[a+104>>2];e=O[b+392>>3];e=e>0?e:0;kc[J[J[d>>2]+452>>2]](d,e<1?e:1)|0;b=J[a+104>>2];J[c+12>>2]=20480;kc[J[J[b>>2]+312>>2]](b,c+12|0)|0;d=J[a+196>>2];J[a+196>>2]= +d-1;b=J[a+184>>2];f=J[a+180>>2];if((((b|0)!=(f|0)?(b-f<<7)-1|0:0)-(d+J[a+192>>2]|0)|0)+1>>>0<1024)break a;uc(J[b-4>>2]);J[a+184>>2]=J[a+184>>2]-4}fc=c+16|0}function rUa(a){a=a|0;var b=0,c=0,d=0,e=0;c=xc(vc(1584),a,1584);b=J[a+1044>>2];J[699344]=0;d=_(4,8)|0;e=J[699344];J[699344]=0;a:{b:{if((e|0)!=1){J[699344]=0;b=aa(3350,d|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){a=Z()|0;uc(d);break b}J[c+1044>>2]=b;d=J[c+1056>>2];J[699344]=0;b=aa(3551,d|0,16)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break a}a= +Z()|0}uc(c);ba(a|0);B()}J[c+1048>>2]=b;xc(b,J[a+1048>>2],d<<4);return c|0}function hob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!c)break a;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(!a)break a;d=J[a+4>>2];if(!d)break a;d=J[d+24>>2];if(!d)break a;kc[d|0](a,c);if((b&-3)==1){J[c>>2]=J[c>>2]&-64;J[c+4>>2]=J[c+4>>2]&-64;J[c+8>>2]=J[c+8>>2]+63&-64;J[c+12>>2]=J[c+12>>2]+63&-64}if((b&-2)!=2)break a;J[c>>2]=J[c>>2]>>6;J[c+4>>2]=J[c+4>>2]>>6;J[c+8>>2]=J[c+8>>2]>>6;J[c+12>>2]=J[c+12>>2]>>6}}function eVa(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;J[a+4>>2]=b;h=a,i=Gd(b,4),J[h>>2]=i;c=J[a+4>>2];a:{if((c|0)<=0)break a;b=0;if(c>>>0>=4){g=c&-4;while(1){d=b<<2;J[d+J[a>>2]>>2]=0;J[J[a>>2]+(d|4)>>2]=0;J[J[a>>2]+(d|8)>>2]=0;J[J[a>>2]+(d|12)>>2]=0;b=b+4|0;e=e+4|0;if((g|0)!=(e|0))continue;break}}c=c&3;if(!c)break a;while(1){J[J[a>>2]+(b<<2)>>2]=0;b=b+1|0;f=f+1|0;if((c|0)!=(f|0))continue;break}}return a|0}function bi(a,b){var c=0,d=0,e=0;c=J[b+76>>2];a:{if(!((c|0)>=0&(!c|J[698616]!=(c&-1073741825)))){b:{c= +a&255;if((c|0)==J[b+80>>2])break b;d=J[b+20>>2];if((d|0)==J[b+16>>2])break b;J[b+20>>2]=d+1;H[d|0]=a;break a}c=dt(b,c);break a}d=b+76|0;c=J[d>>2];J[d>>2]=c?c:1073741823;c:{d:{c=a&255;if((c|0)==J[b+80>>2])break d;e=J[b+20>>2];if((e|0)==J[b+16>>2])break d;J[b+20>>2]=e+1;H[e|0]=a;break c}c=dt(b,c)}J[d>>2]=0}return c}function _c(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;if((b|c|d)<0){J[f>>2]=6;return e|0}a:{if(!(d?b:0)){if(!e)break a;kc[J[a+8>>2]](a,e);break a}g=10;b:{if((2147483647/(b>>> +0)|0)<(d|0))break b;c:{if(!c){e=kc[J[a+4>>2]](a,P(b,d))|0;g=!e<<6;break c}a=kc[J[a+12>>2]](a,P(b,c),P(b,d),e)|0;e=a?a:e;g=!a<<6}if(g|(c|0)>=(d|0)|!e)break b;g=0;Ac(P(b,c)+e|0,0,P(d-c|0,b))}J[f>>2]=g;return e|0}J[f>>2]=0;return 0}function Ika(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;while(1){a:{if((c|0)<=(f|0))break a;d=J[a+24>>2];g=J[a+28>>2];if(d>>>0>=g>>>0){if((kc[J[J[a>>2]+52>>2]](a,K[b|0])|0)==-1)break a;f=f+1|0;b=b+1|0}else{J[e+12>>2]=g-d;J[e+8>>2]=c-f;d=fc-16|0;fc=d;fc=d+ +16|0;d=e+8|0;g=e+12|0;d=J[(J[d>>2]>2]?d:g)>>2];hk(J[a+24>>2],b,d);J[a+24>>2]=d+J[a+24>>2];f=d+f|0;b=b+d|0}continue}break}fc=e+16|0;return f|0}function n9a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=0,e=0,f=0,g=Q(0),h=Q(0),i=0;h=b;b=N[a+264>>2];f=J[a+280>>2]-1|0;g=Q(f|0);b=Q(Q(Q(h-b)*g)/Q(N[a+268>>2]-b));a:{if(Q(R(b))>>0>f>>>0;b=N[a+272>>2];b=Q(Q(Q(c-b)*g)/Q(N[a+276>>2]-b));b:{if(Q(R(b))>>0>f>>>0| +i|(e|d)<0))b=N[J[J[a+248>>2]+P(d,12)>>2]+(e<<2)>>2];return Q(b)}function Vtb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;H[d+16|0]=K[b+40|0];H[d+17|0]=K[b+41|0];H[d+18|0]=K[b+42|0];H[d+19|0]=K[b+43|0];H[d+20|0]=K[b+44|0];return Ce(a,J[b>>2],13,d+8|0)|0}function Pf(a){var b= +0,c=0,d=0;c=J[a+4>>2];a:{if(!(K[a|0]&6)|(c&16|K[a+8|0]&7))break a;b:{b=J[a+16>>2];d=J[a+24>>2]-b|0;if((d|0)>0){if((kc[J[J[a+52>>2]+4>>2]](J[a+56>>2],b,d)|0)!=(d|0))break b;c=J[a+4>>2];b=J[a+16>>2]}J[a+24>>2]=b;J[a+28>>2]=J[a+20>>2];J[a+4>>2]=c|32;break a}J[a+8>>2]=J[a+8>>2]|2}kc[J[J[a+52>>2]+12>>2]](J[a+56>>2])|0;c:{if(!(K[a+4|0]&8))break c;b=J[a+12>>2];if(!b)break c;uc(b);J[a+12>>2]=0}uc(a)}function t$(a,b,c,d){var e=0;e=1;a:{b:{c:{d:switch(Sw(J[a+4>>2])|0){case 2:e=2;break c;case 3:e=8;break c; +case 4:case 5:e=d?10:5;break c;case 6:e=3;break c;case 7:e=9;break c;case 0:case 1:break c;case 8:break d;default:break b}e=d?10:5}if(d){if(e>>>0<7)break b;break a}if(e>>>0<7)break a}uc(Zc(a));return 0}d=vc(48);J[d+40>>2]=-1;J[d+32>>2]=0;O[d+24>>3]=c;J[d+20>>2]=b;J[d+16>>2]=a;J[d+4>>2]=e;J[d>>2]=1;return d}function fnb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=fc-16|0;fc=f;vh(a,J[a+8>>2]);g=J[a>>2];J[f+12>>2]=g;h=J[a+8>>2];a:{if(h>>>0<=g>>>0)break a;b:{if(e){i=3;if(K[g| +0]!=60)break a;J[f+12>>2]=g+1;j=d,k=n7(f+12|0,h,b,c),J[j>>2]=k;b=J[f+12>>2];J[a>>2]=b;if(K[b|0]!=62&b>>>0>2])break a;b=b+1|0;break b}j=d,k=n7(f+12|0,h,b,c),J[j>>2]=k;b=J[f+12>>2]}J[a>>2]=b;i=0}fc=f+16|0;return i|0}function PJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;a:{b:{if(b){if(!a)break b;if(!d)break a;a=1;c:{if(c>>>0<=1){a=0;Nc(d,1,2368300,0);break c}wd(b,e+12|0,1);wd(b+1|0,e+8|0,1);b=J[e+8>>2];if(!((c-2>>>0)%(((b>>>5&2)+(b>>>4&3)|0)+2>>>0)|0))break c;a=0;Nc(d,1,2368300, +0)}fc=e+16|0;return a|0}fa(2365733,2358254,3631,2368283);B()}fa(2358373,2358254,3632,2368283);B()}fa(2358486,2358254,3633,2368283);B()}function Lj(a,b){var c=0,d=0,e=0;a:{c=J[b>>2];d=c+J[a>>2]|0;if((d|0)>J[a+4>>2]){if((c|0)<0)break a;c=d<<2;e=J[a+8>>2];b:{if(!e){c=Dc(c);break b}c=Yh(e,c)}if(!c)return-1;J[a+4>>2]=d;J[a+8>>2]=c;c=J[b>>2]}if((c|0)<=0)return 0;c=J[a>>2];d=0;while(1){e=J[J[b+8>>2]+(d<<2)>>2];J[e>>2]=J[e>>2]+1;J[J[a+8>>2]+(c<<2)>>2]=e;c=c+1|0;J[a>>2]=c;d=d+1|0;if((d|0)>2])continue; +break}return 0}fa(203774,198656,706,206672);B()}function zlb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+24>>2];J[a+48>>2]=b;d=J[a+28>>2];J[a+52>>2]=d;e=J[a+8>>2];f=e+J[a>>2]|0;J[a+8>>2]=f>>1;c=b;b=J[a+16>>2];c=c+b|0;J[a+40>>2]=c>>1;b=b+e|0;e=b+f|0;J[a+16>>2]=e>>2;b=b+c|0;J[a+32>>2]=b>>2;c=d;d=J[a+20>>2];f=c+d|0;J[a+44>>2]=f>>1;c=J[a+12>>2];g=c+J[a+4>>2]|0;J[a+12>>2]=g>>1;J[a+24>>2]=b+e>>3;b=d+c|0;d=b+f|0;J[a+36>>2]=d>>2;b=b+g|0;J[a+20>>2]=b>>2;J[a+28>>2]=b+d>>3}function sya(a,b,c,d,e,f,g,h,i){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;var j=0;if(!(!f|!e)){d=L[a+26>>1];g=P(g,d);a=J[a+56>>2];j=h<<2;while(1){f=f-1|0;h=e;while(1){c=K[i+3|0]^255;J[b>>2]=K[a+((P(c,K[i+1|0]^255)>>>0)/255|0)|0]<<8|K[a+((P(K[i|0]^255,c)>>>0)/255|0)|0]|K[a+((P(K[i+2|0]^255,c)>>>0)/255|0)|0]<<16|-16777216;i=d+i|0;b=b+4|0;h=h-1|0;if(h)continue;break}i=g+i|0;b=b+j|0;if(f)continue;break}}}function ao(a,b,c,d,e,f){var g=0;a:{if((e|0)<=0)break a;b=(b<<2)+a|0;d=(d<<2)+c|0;g=e&3;b:{if(!g){c=e;break b}a=0;c=e;while(1){xc(J[d>> +2],J[b>>2],f);c=c-1|0;d=d+4|0;b=b+4|0;a=a+1|0;if((g|0)!=(a|0))continue;break}}if(e>>>0<4)break a;while(1){xc(J[d>>2],J[b>>2],f);xc(J[d+4>>2],J[b+4>>2],f);xc(J[d+8>>2],J[b+8>>2],f);xc(J[d+12>>2],J[b+12>>2],f);d=d+16|0;b=b+16|0;a=c-5|0;c=c-4|0;if(a>>>0<4294967294)continue;break}}}function W$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+4>>2];a=J[d+4>>2];a:{b:{if(!a)break b;if((Nr(a)|0)!=1)break b;e=b+1|0;while(1){a=ou(J[d+4>>2]);c=Vm(J[d+4>>2]);if((a|0)==-1|(c|0)==-1|(b|0)>(c|0))break b;f=1;if((a|0)== +1&(c|0)==(e|0))break a;c:{if(a>>>0>15)break c;if(!(1<>2])|0)==1)continue;break}}f=0}return f|0}function Ve(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;a:{b:{if(c>>>0<2){d=a;H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;break b}if(c>>>0>1073741807)break a;g=e+8|0;if(c>>>0>=2){f=c+4&-4;d=f-1|0;d=(d|0)==2?f:d}else d=1;to(g,a,d+1|0);d=J[e+8>>2];J[a>>2]=d;J[a+8>>2]=J[a+8>>2]&-2147483648|J[e+12>> +2]&2147483647;J[a+8>>2]=J[a+8>>2]|-2147483648;J[a+4>>2]=c}Ik(d,b,c+1|0);fc=e+16|0;return}_d(a);B()}function TP(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=Dc(40);J[e>>2]=0;e=Hf(a+624|0,1,e,4);i=gc;a:{b:{while(1){if(d){h=0;break a}d=J[J[a+4>>2]+8>>2];J[699344]=0;h=ha(d|0,a|0,1,b|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;f=-1;c:{d:{if(!d)break d;g=J[699345];if(!g)break d;f=Pc(J[d>>2],e,i);if(!f)break c;gc=g}d=gc;if((f|0)==1)continue;break a}break}uc(e);nf(d,g);B()}a=Z()|0;uc(e);ba(a|0);B()}uc(e); +return h}function tO(a,b,c,d){var e=0;e=fc+-64|0;fc=e;J[e+24>>2]=0;J[e+28>>2]=0;J[e+56>>2]=0;J[e+60>>2]=0;J[e+48>>2]=0;J[e+52>>2]=0;J[e+40>>2]=0;J[e+44>>2]=0;J[e+32>>2]=0;J[e+36>>2]=0;J[e+24>>2]=d;J[e+16>>2]=0;J[e+20>>2]=0;J[e+12>>2]=b;J[e+8>>2]=a;J[e+20>>2]=c;a=-101;a:{if(xx(e+8|0,219260,56))break a;while(1){b=Vk(e+8|0,1);a=0;if((b|0)==1)break a;if(!(J[e+24>>2]?b:1))continue;break}a=b>>>0>1?-101:0}fc=e- -64|0;return a}function cBb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-16|0;fc=d;c=J[a+20>>2];a:{if(!c){c= +0;break a}e=J[a+28>>2];if(e){hh(c,e,1);c=J[a+28>>2];J[a+28>>2]=0;J[a+24>>2]=c+J[a+24>>2];c=J[a+20>>2]}J[d+12>>2]=0;ge(d+12|0,1,(b|0)>=4?4:b,c);c=J[d+12>>2];b:{c:switch(b-2|0){case 0:c=(c<<8|c>>>8)&65535;break b;case 2:break c;default:break b}c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24)}J[a+24>>2]=J[a+24>>2]+b}fc=d+16|0;return c|0}function QB(a,b,c){var d=0,e=0;J[b>>2]=0;J[c>>2]=0;d=J[a>>2];a:{if((d|0)<4)break a;while(1){e=J[a+4>>2]+d|0;b:{if(!Ic(e-4|0,780493)){d=d-4|0;Sm(a,d,4);J[b>>2]=1;break b}c:{if(d>>> +0>=6){if(!Ic(e-6|0,781738)){d=d-6|0;Sm(a,d,6);J[c>>2]=1;break b}if(d>>>0<7)break c;if(Ic(e-7|0,782729))break c;d=d-7|0;Sm(a,d,7);break b}if((d|0)!=5)break a}if(Ic(e-5|0,783769))break a;d=d-5|0;Sm(a,d,5)}if((d|0)>3)continue;break}}}function Pja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)!=1){f=fc-1040|0;fc=f;g=J[698583];e=f+16|0;b=um(c);d=Yc(b);a:{if(d>>>0>=1024){xc(e,b,1023);H[e+1023|0]=0;d=68;break a}xc(e,b,d+1|0);d=0}b=e;b:{c:switch(d+1|0){case 0:d=J[698583];break;case 1:break b;default:break c}b= +39197;if((d|0)==28)break b;ra();B()}if(!K[b|0]){J[f>>2]=c;Wi(e,1024,17431,f);b=e}J[698583]=g;_j(a,b);fc=f+1040|0;return}_j(a,4800)}function zib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;a:{if(!K[a+733|0])break a;d=J[a+736>>2];if(!d)break a;if(!K[d+32|0]){e=h6(a,0);d=J[a+736>>2];J[d+36>>2]=e}if(!K[d+33|0])return J[d+36>>2];d=J[d+40>>2];e=J[d+28>>2];b:{if(e){f=e;e=J[d+20>>2];e=(b>>>0>>0?b:e-1|0)<<2;b=J[f+e>>2];f=J[e+J[d+24>>2]>>2];break b}e=6;if(M[J[d+4>>2]>>2]<=b>>>0)break a}g=c,h=NM(a,d, +f,b)+J[c>>2]|0,J[g>>2]=h;e=0}return e|0}function z1(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;if(J[693384]){J[e>>2]=J[b+8>>2];kc[J[663297]](J[693366],32715,e)}c=BC(a);a:{if(!c)break a;f=Tk(J[b+8>>2]);g=f+5|0;d=kc[J[663198]](g)|0;if(!d){se(a,0);kc[J[663199]](c);break a}H[d|0]=32;H[d+1|0]=37;a=d+f|0;H[a+4|0]=0;H[a+2|0]=59;H[a+3|0]=32;xc(d+2|0,J[b+8>>2],f);J[c+24>>2]=g;J[c+16>>2]=d;J[c+12>>2]=d;J[c+40>>2]=3346;J[c+20>>2]=d+g;h=c}fc=e+16|0;return h}function yib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0, +e=0,f=0,g=0,h=0;a:{if(!K[a+733|0])break a;d=J[a+736>>2];if(!d)break a;if(!K[d+44|0]){e=h6(a,1);d=J[a+736>>2];J[d+48>>2]=e}if(!K[d+45|0])return J[d+48>>2];d=J[d+52>>2];e=J[d+28>>2];b:{if(e){f=e;e=J[d+20>>2];e=(b>>>0>>0?b:e-1|0)<<2;b=J[f+e>>2];f=J[e+J[d+24>>2]>>2];break b}e=6;if(M[J[d+4>>2]>>2]<=b>>>0)break a}g=c,h=NM(a,d,f,b)+J[c>>2]|0,J[g>>2]=h;e=0}return e|0}function pVa(){var a=0;a=J[664490];if(a)uc(ld(a));a=J[664497];if(a)uc(ld(a));a=J[664504];if(a)uc(ld(a));a=J[664511];if(a)uc(ld(a));a=J[664518]; +if(a)uc(ld(a));a=J[664525];if(a)uc(ld(a));a=J[664532];if(a)uc(ld(a));a=J[664539];if(a)uc(ld(a));a=J[664546];if(a)uc(ld(a));a=J[664553];if(a)uc(ld(a));a=J[664560];if(a)uc(ld(a));a=J[664567];if(a)uc(ld(a));a=J[664574];if(a)uc(ld(a));a=J[664581];if(a)uc(ld(a))}function kka(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;a:{b=J[a+64>>2];if(b){J[c+4>>2]=6760;b=Bg(c+8|0,b,c+4|0);e=J[J[a>>2]+24>>2];J[699344]=0;e=_(e|0,a|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;d=J[b>>2];J[b>>2]=0;d=pg(d);J[a+64>> +2]=0;f=J[J[a>>2]+12>>2];J[699344]=0;ga(f|0,a|0,0,0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;XR(b);a=d|e?0:a}else a=0;fc=c+16|0;return a|0}a=Z()|0;XR(b);ba(a|0);B()}function _m(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=fc-16|0;fc=e;a:{b:{if(!(c?b:0)){H[a|0]=0;H[a+11|0]=0;break b}J[e+12>>2]=0;J[e+8>>2]=0;wq(b,c,e+12|0,e+8|0,d);c=J[e+8>>2];if(c>>>0>=2147483632)break a;d=J[e+12>>2];c:{if(c>>>0<=10){H[a+11|0]=c;break c}f=(c|15)+1|0;b=vc(f);J[a+8>>2]=f|-2147483648;J[a>>2]=b;J[a+4>>2]= +c;a=b}g=cd(a,d,c)+c|0,h=0,H[g|0]=h;if(!d)break b;uc(d)}fc=e+16|0;return}_d(a);B()}function E_a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:{if((e|0)<=0)break a;h=J[a+28>>2];if(!h)break a;g=J[J[a+408>>2]+8>>2];while(1){i=e-1|0;j=J[J[c>>2]+(d<<2)>>2];a=J[b>>2];f=0;while(1){H[f+j|0]=J[((K[a+2|0]<<2)+g|0)+2048>>2]+(J[((K[a+1|0]<<2)+g|0)+1024>>2]+J[(K[a|0]<<2)+g>>2]|0)>>>16;a=a+3|0;f=f+1|0;if((h|0)!=(f|0))continue;break}d=d+1|0;b=b+4|0;a=(e|0)>1;e=i;if(a)continue;break}}}function AD(a){var b= +0,c=0,d=0;b=J[a+408>>2];if(b){c=b-1|0;J[a+408>>2]=c;d=J[a+416>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){uc(b);c=J[a+408>>2]}b=c;c=b-1|0;J[a+408>>2]=c;if(b)continue;break}}c=J[a+416>>2];if(c)uc(c);b=J[a+184>>2];if(b){c=b-1|0;J[a+184>>2]=c;d=J[a+192>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){uc(b);c=J[a+184>>2]}b=c;c=b-1|0;J[a+184>>2]=c;if(b)continue;break}}a=J[a+192>>2];if(a)uc(a)}function hcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d, +f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);g=b;b=K[a+2|0];h=P(g,f-b|0)+255>>>8|0;g=b;b=255-e|0;H[a+2|0]=h+(P(g,b)+255>>>8|0);e=c;c=K[a+1|0];H[a+1|0]=(P(e,f-c|0)+255>>>8)+(P(b,c)+255>>>8);c=a;a=K[a|0];H[c|0]=(P(f-a|0,d)+255>>>8)+(P(a,b)+255>>>8)}}function Sf(a,b){var c=0,d=0;c=fc-32|0;fc=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=c+8;a:{d=J[a+664>>2];if(J[d>>2]==(b|0)?d:0)break a;d=J[a+656>>2];b:{if(!d)break b; +J[c+16>>2]=0;J[c+8>>2]=b;d=MG(c+4|0,d,J[a+660>>2]);if(!d){J[a+664>>2]=0;break b}d=J[d>>2];J[a+664>>2]=d;if(d)break a}a=J[a+628>>2];J[c>>2]=b;Uc(a,75018,75321,c);fa(76203,76778,811,75018);B()}fc=c+32|0;return d}function Oj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=c+4|0;iQ(d,b);b=K[c+15|0];e=b<<24>>24<0;d=e?J[c+4>>2]:d;b=e?J[c+8>>2]:b;if((b|0)==-1)b=bf(d);e=J[J[a>>2]+8>>2];J[699344]=0;da(e|0,a|0,b|0);e=J[699344];J[699344]=0;if((e|0)!=1){e=d;d=b<<2;xc(J[a+12>>2],e,d);J[a+12>>2]=d+J[a+12>>2]; +J[a+16>>2]=J[a+16>>2]+b;if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function vza(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b&3;b:{if(!d){c=b;break b}c=b;while(1){J[a>>2]=0;J[a+4>>2]=J[685894];a=a+8|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){J[a>>2]=0;b=J[685894];J[a+16>>2]=0;J[a+12>>2]=b;J[a+8>>2]=0;J[a+4>>2]=b;b=J[685894];J[a+28>>2]=b;J[a+24>>2]=0;J[a+20>>2]=b;a=a+32|0;b=c-5|0;c=c-4|0;if(b>>>0<4294967294)continue; +break}}}function t7(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=fc-16|0;fc=f;J[f+12>>2]=0;g=J[d>>2];if(g){if(g)kc[J[c+8>>2]](c,g);J[d>>2]=0}a:{if(!b){c=0;break a}b=b-!K[(a+b|0)-1|0]|0;if(!b){c=0;break a}b:{while(1){if(H[a+e|0]<32)break b;e=e+1|0;if((b|0)!=(e|0))continue;break}if(!b)break b;c=he(c,b+1|0,f+12|0);e=J[f+12>>2];if(e)break a;h=xc(c,a,b)+b|0,i=0,H[h|0]=i;e=J[f+12>>2];break a}e=0;c=0}J[d>>2]=c;fc=f+16|0;return e}function jt(a,b){var c=0,d=0,e=0,f=0;a:{if(!b)break a;d=b&3;b:{if(!d){c=b;break b}c=b; +while(1){f=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=f;a=a+2|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<4)break a;while(1){b=K[a+1|0];H[a+1|0]=K[a|0];H[a|0]=b;b=K[a+3|0];H[a+3|0]=K[a+2|0];H[a+2|0]=b;b=K[a+5|0];H[a+5|0]=K[a+4|0];H[a+4|0]=b;b=K[a+7|0];H[a+7|0]=K[a+6|0];H[a+6|0]=b;a=a+8|0;c=c-4|0;if(c)continue;break}}}function eja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=Q(0),g=0,h=Q(0);e=fc-16|0;fc=e;a:{b:{c:{if((a|0)!=(b|0)){g=J[698583];J[698583]=0;gh();d=fc-16|0;fc=d;xG(d,a,e+12|0,0);f=ES(J[d>> +2],J[d+4>>2],J[d+8>>2],J[d+12>>2]);fc=d+16|0;a=J[698583];if(!a)break c;if(J[e+12>>2]!=(b|0))break b;h=f;if((a|0)!=68)break a;break b}J[c>>2]=4;break a}J[698583]=g;if(J[e+12>>2]==(b|0))break a}J[c>>2]=4;f=h}fc=e+16|0;return Q(f)}function _ua(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc+-64|0;fc=c;J[c+56>>2]=0;J[c+48>>2]=0;J[c+52>>2]=0;J[c+40>>2]=0;J[c+44>>2]=0;J[c+32>>2]=0;J[c+36>>2]=0;d=Co(c+32|0,2401340);J[699344]=0;e=aa(5652,c+4|0,d|0)|0;f=J[699344];J[699344]=0;a:{b:{if((f|0)!=1){J[699344]=0;ca(5653, +a|0,b|0,e|0);a=J[699344];J[699344]=0;if((a|0)==1)break b;Md(e);Md(d);fc=c- -64|0;return}a=Z()|0;break a}a=Z()|0;Md(e)}Md(d);ba(a|0);B()}function Sy(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;while(1){g=(e<<2)+a|0;b=J[g+20>>2];if(b){c=J[b>>2];if((c|0)>0)while(1){f=J[b+8>>2];c=c-1|0;h=c<<2;d=J[f+h>>2];i=J[d>>2];J[d>>2]=i-1;if((i|0)<=1){kc[J[J[d+4>>2]>>2]](d);uc(d);f=J[b+8>>2];c=J[b>>2]-1|0}J[f+h>>2]=0;J[b>>2]=c;if((c|0)>0)continue;break}c=J[b+8>>2];if(c)uc(c);uc(b);J[g+20>>2]=0}e=e+1|0;if((e|0)!=13)continue; +break}b=J[a+16>>2];if(b)pn(b);uc(a)}function Xca(a,b){a=a|0;b=b|0;if((b|0)==5){b=Dc(148);J[a+584>>2]=b;if(b){J[b+144>>2]=0;J[b+96>>2]=0;J[b+116>>2]=0;J[b+80>>2]=J[a+8>>2];J[a+556>>2]=682;J[a+548>>2]=682;J[a+540>>2]=682;J[a+520>>2]=683;J[a+516>>2]=684;J[a+572>>2]=685;J[a+560>>2]=686;J[a+552>>2]=686;J[a+544>>2]=686;J[a+536>>2]=687;J[a+532>>2]=688;J[a+524>>2]=689;tF(a);return 1}Uc(J[a+628>>2],97840,70774,0);return 0}fa(69582,70340,1062,97840);B()}function Ru(a,b){var c=0,d=0,e=0;c=fc-16|0;fc=c;J[c+12>> +2]=0;e=Rg(a,c+12|0);d=J[c+12>>2];a:{if(d)break a;b:{c:{d:{e:{e=e&255;switch(e-253|0){case 1:break c;case 2:break d;case 0:break e;default:break b}}e=ee(a,c+12|0);d=J[c+12>>2];if(!d)break b;break a}a=Rg(a,c+12|0);d=J[c+12>>2];if(d)break a;e=(a&255)+253|0;break b}a=Rg(a,c+12|0);d=J[c+12>>2];if(d)break a;e=(a&255)+506|0}I[b>>1]=e;d=0}fc=c+16|0;return d}function Md(a){var b=0,c=0,d=0;a:{b=J[a+24>>2];b:{if(b)while(1){c=J[b>>2];d=J[J[a>>2]+16>>2];J[699344]=0;da(d|0,b|0,1);d=J[699344];J[699344]=0;if((d| +0)==1)break b;uc(b);b=c;if(b)continue;break}J[a+4>>2]=0;J[a+24>>2]=0;J[699344]=0;ri(a+16|0,4,0);c=J[699344];J[699344]=0;if((c|0)!=1)break a}oa(ea(0)|0)|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)!=1)break a;ea(0)|0;Bc();B()}hd(a+16|0);return a}function sK(a){var b=0,c=0,d=0,e=0;if(J[a+8>>2]>0)while(1){b=J[a>>2];e=d<<6;c=b+e|0;c=K[c+20|0]|K[c+21|0]<<8|(K[c+22|0]<<16|K[c+23|0]<<24);if(c){uc(c);b=J[a>>2]}c=b+e|0;c=K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24);if(c){uc(c);b=J[a>>2]}b=b+e| +0;b=K[b+4|0]|K[b+5|0]<<8|(K[b+6|0]<<16|K[b+7|0]<<24);if(b)uc(b);d=d+1|0;if((d|0)>2])continue;break}b=J[a>>2];if(b)uc(b);b=J[a+4>>2];if(b)uc(b);return a}function jib(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;J[d>>2]=0;J[d+4>>2]=0;e=J[a+496>>2];if(e){a=J[e+36>>2];e=(a+(J[e+40>>2]<<4)|0)-16|0;a:{if(a>>>0>e>>>0)break a;c=b<<16|c;while(1){f=(e-a>>4)/2|0;b=(f<<4)+a|0;g=J[b>>2]<<16|J[b+4>>2];if((c|0)==(g|0)){a=(f<<4)+a|0;J[d>>2]=J[a+8>>2];h=J[a+12>>2];break a}f=c>>>0>g>>>0;a=f?b+16|0:a; +e=f?e:b-16|0;if(a>>>0<=e>>>0)continue;break}}J[d+4>>2]=h}return 0}function jba(a){var b=0,c=0,d=0,e=0,f=0,g=0;J[a+104>>2]=-1;I[a+100>>1]=0;J[a+96>>2]=-1;J[a+72>>2]=0;b=J[a+8>>2];if((b|0)>0){d=J[a+12>>2];while(1){c=J[d>>2];if((c|0)>0){e=J[d+4>>2];f=0;while(1){if(J[e>>2]>0){c=J[e+4>>2];b=0;while(1){J[c>>2]=0;c=c+4|0;b=b+1|0;if((b|0)>2])continue;break}c=J[d>>2]}e=e+20|0;f=f+1|0;if((f|0)<(c|0))continue;break}b=J[a+8>>2]}d=d+16|0;g=g+1|0;if((g|0)<(b|0))continue;break}}}function izb(a){a=a|0;var b= +0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){f=K[d|0];d=d+1|0;b=128}b=b&255;H[c|0]=b&f?-1:0;c=c+2|0;b=b>>>1|0;e=e+1|0;if((e|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function il(a,b,c){var d=0,e=0;e=-1;a:{b:{if(Kh(a,J[c>>2]))break b;if(J[J[c+104>>2]+8>>2]){d=Vi(0,0);if(!d)break b;if(kc[J[J[c+ +104>>2]+8>>2]](c,b,d)|0)break a;e=tj(d);if((e|0)<0)break a;J[c+4>>2]=e;if((Xg(d,0,0)|0)<0)break a;if(Kh(a,J[c+4>>2]+2|0))break a;if((oo(a,d,J[c+4>>2])|0)<0)break a;Pf(d)}if(J[c>>2]==65361)J[b>>2]=J[c+48>>2];e=0;if(J[686392]<=0)break b;kF(c,J[655074])}return e}Pf(d);return-1}function dzb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!(b&255)){f=K[d|0];d= +d+1|0;b=128}b=b&255;H[c|0]=b&f?-1:0;c=c+4|0;b=b>>>1|0;e=e+1|0;if((e|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function dHa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+4>>2]=0;J[a+8>>2]=0;d=a+16|0;c=d;J[c>>2]=0;J[c+4>>2]=0;J[a>>2]=a+4;c=a+28|0;J[c>>2]=0;J[c+4>>2]=0;J[a+12>>2]=d;J[a+24>>2]=c;J[699344]=0;c=Th(b);d=J[699344];J[699344]=0;a:{if((d|0)==1)break a;if(!c){J[699344]=0;da(5097,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}return a| +0}b=Z()|0;Wp(a+24|0,J[a+28>>2]);nw(a+12|0,J[a+16>>2]);Wp(a,J[a+4>>2]);ba(b|0);B()}function Wgb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[b+8>>2];f=J[a>>2];g=J[f+32>>2];e=J[f+132>>2];d=J[b+16>>2];if(d)c=(P(c,d)+36|0)/72|0;d=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((d|0)==J[g+12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23;if((d|0)!=L[e+96>>1])break a}c=0;io(f,0);b=L[e+80>>1];J[a+24>>2]=b<<6;J[a+28>>2]=b-L[e+96>>1]<<6;J[a+36>>2]=L[e+102>>1]<<6}return c|0}function sw(a, +b){var c=0,d=0;c=fc-16|0;b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[c+11|0]=b;H[c+12|0]=b>>>8;H[c+13|0]=b>>>16;H[c+14|0]=b>>>24;a:{if(!a)break a;b=J[a+644>>2];if((b|0)<=0)break a;d=J[a+648>>2];a=d+P(b,5)|0;while(1){b=a-5|0;if((K[c+11|0]|K[c+12|0]<<8|(K[c+13|0]<<16|K[c+14|0]<<24))==(K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24)))return K[a-1|0];a=b;if(b>>>0>d>>>0)continue;break}}return 0}function Nnb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b+8>>2];d=J[a>>2];f=J[d+32>>2];e=J[b+16>>2];if(e)c=(P(c, +e)+36|0)/72|0;e=c+32>>6;c=7;a:{b:{c:switch(J[b>>2]){case 0:c=23;if((e|0)==J[f+12>>2]+32>>6)break b;break a;case 1:break c;default:break a}c=23;if((e|0)!=(J[d+208>>2]+J[d+204>>2]|0))break a}c=0;io(d,0);J[a+24>>2]=J[d+204>>2]<<6;J[a+28>>2]=0-(J[d+208>>2]<<6);J[a+36>>2]=I[d+236>>1]<<6}return c|0}function Jpb(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;i=J[a+20>>2];h=J[a+16>>2];a:{b:{if(h){e=J[b>>2]+1|0;a=h>>>1|0;g=h;while(1){d=c+g>>>1|0;d=a>>>0>=g>>>0?d:a>>>0>>0?d:a;f=J[(d<<3)+i>>2];if((f| +0)==(e|0)){c=d;break b}a=(e+d|0)-f|0;f=e>>>0>>0;c=f?c:d+1|0;g=f?d:g;if(c>>>0>>0)continue;break}}e=0;if(c>>>0>=h>>>0)break a;e=J[(c<<3)+i>>2]}j=L[((c<<3)+i|0)+4>>1]+1&65535}J[b>>2]=e;return j|0}function E5(a){var b=0,c=0,d=0;b=J[a+104>>2];if(b){c=b-1|0;J[a+104>>2]=c;d=J[a+112>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){uc(b);c=J[a+104>>2]}b=c;c=b-1|0;J[a+104>>2]=c;if(b)continue;break}}c=J[a+112>>2];if(c)uc(c);b=J[a+84>>2];if(b){c=b-1|0;J[a+84>>2]=c;d=J[a+92>>2]+(b<<2)|0;while(1){d=d-4|0;b= +J[d>>2];if(b){uc(b);c=J[a+84>>2]}b=c;c=b-1|0;J[a+84>>2]=c;if(b)continue;break}}a=J[a+92>>2];if(a)uc(a)}function wsb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1766015824){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];e=J[c+36>>2];J[b+36>>2]=e;H[b+44|0]=K[c+44|0];d=J[c+48>>2];J[b+48>>2]=d;a:{if(e){d=kc[J[a+152>>2]](e)|0;J[b+40>>2]=d;if(!d)break a;xc(d,J[c+40>>2],J[b+36>>2]);d=J[b+48>>2]}if(d){d=kc[J[a+152>>2]](d)|0;J[b+52>>2]=d;if(!d)break a;xc(d,J[c+52>>2],J[b+48>>2])}return 0}Jc(a,1,0,0); +return 1}function uob(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=6;b=Yc(c);f=b+6|0;a:{b:{if((b|0)<=-6){if(f)break a;a=0;break b}a=J[a>>2];a=kc[J[a+4>>2]](a,f)|0;if(!a)return 64;Ac(a,0,f)}g=0;c=xc(a,c,b);a=c+b|0;b=K[242432]|K[242433]<<8;H[a+4|0]=b;H[a+5|0]=b>>>8;b=K[242428]|K[242429]<<8|(K[242430]<<16|K[242431]<<24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24;J[d>>2]=c;J[e>>2]=0}return g|0}function Of(a){a=a|0;var b=0,c=0;b=J[a+536>>2];if(b){c=J[b+88>>2];J[a+540>>2]=c;H[b+32| +0]=1;H[c+34|0]=1}a:{b:{b=J[a+608>>2];if(!b)break b;b=kc[J[a+152>>2]](b)|0;J[a+636>>2]=b;if(!b)break a;b=kc[J[a+152>>2]](J[a+608>>2])|0;J[a+640>>2]=b;if(b)break b;break a}b=kc[J[a+152>>2]](J[a+316>>2]<<3)|0;J[a+644>>2]=b;if(!b)break a;c:{if(J[a+968>>2]){a=gv(a,1,1,0);if(a)break c}a=0}return a|0}Jc(a,1,0,0);return 1}function xMa(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+296>>2];b=J[a+300>>2];a:{if(c>>>0>=b>>>0){c=a+40|0;J[a+300>>2]=c;J[a+296>>2]=c;b=J[a+304>>2]+(b-c|0)|0;J[a+304>>2]=b;if(J[a+32>>2]){e=J[a+ +36>>2]+J[a+28>>2]|0;d=-1;if((e|0)<=(b|0))break a;d=(e|0)>=(b+256|0)?256:e-b|0}else d=256;e=J[a+24>>2];_B(J[e>>2],b,0);b=ge(c,1,d,J[e>>2])+c|0;J[a+300>>2]=b;c=J[a+296>>2];d=-1;if(b>>>0<=c>>>0)break a}d=K[c|0]}return d|0}function oDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc-32|0;fc=d;c=J[a+20>>2];J[d+20>>2]=K[a+24|0];J[d+16>>2]=c;md(b,208672,d+16|0);g=J[a+20>>2];if(g){c=K[a+24|0];while(1){e=c&255;c=0;if(e){while(1){J[d+8>>2]=J[(J[a+28>>2]+(P(e,f)<<2)|0)+(c<<2)>>2];J[d+4>>2]=c;J[d>>2]=f;md(b,208776, +d);c=c+1|0;e=K[a+24|0];if(c>>>0>>0)continue;break}g=J[a+20>>2];c=e}f=f+1|0;if(g>>>0>f>>>0)continue;break}}fc=d+32|0}function kF(a,b){var c=0,d=0,e=0,f=0,g=0;d=fc-32|0;fc=d;e=J[a>>2];c=2646864;while(1){g=c;f=J[c>>2];if((f|0)!=(e|0)){c=c+24|0;if((f|0)>=0)continue}break}J[d+20>>2]=J[g+4>>2];J[d+16>>2]=e;md(b,199219,d+16|0);c=J[a>>2];a:{if(!(c-65426>>>0<2|(c|0)==65359|((c|0)==65497|(c&-16)==65328))){J[d>>2]=J[a+4>>2]+2;md(b,200290,d);c=J[J[a+104>>2]+12>>2];if(c){kc[c|0](a,b)|0;break a}bi(10,b);break a}bi(10, +b)}fc=d+32|0}function eua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-32|0;fc=d;a:{b:{if(!(J[a+36>>2]>0?J[a+24>>2]:0)){a=Qc(d+8|0,2402340,2390750,505,2427150,0);break b}if(J[a+32>>2]<=J[a+28>>2])break a;a=Qc(d+8|0,2402526,2390750,507,2427150,0)}J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0)}B()}e=J[a+16>>2];b=kc[J[J[e>>2]+12>>2]](e,b,c)|0;J[a+28>>2]=b+J[a+28>>2];fc=d+32|0;return b|0}function Fva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a>>2]=0;a:{if(c){J[699344]=0; +b=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=0;J[b>>2]=2426580;J[699344]=0;aa(5145,a|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0;d=_(4,c+1|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b+8>>2]=c;J[b+12>>2]=d;H[c+d|0]=0}return}b=Z()|0;zc(a);ba(b|0);B()}function DU(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=J[a>>2];if(d){b=d;c=J[a+4>>2];if((b|0)!=(c|0)){while(1){f=c-12|0;e=J[f>>2];if(e){b=e;g=c-8|0;c=J[g>>2];if((b|0)!=(c|0)){while(1){c= +c-8|0;b=J[c+4>>2];a:{if(!b)break a;h=J[b+4>>2];J[b+4>>2]=h-1;if(h)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((c|0)!=(e|0))continue;break}b=J[f>>2]}J[g>>2]=e;uc(b)}c=f;if((d|0)!=(c|0))continue;break}b=J[a>>2]}J[a+4>>2]=d;uc(b)}}function Cva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a>>2]=0;a:{if(c){J[699344]=0;b=_(4,16)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[b+8>>2]=0;J[b+12>>2]=0;J[b+4>>2]=0;J[b>>2]=2425848;J[699344]=0;aa(5145,a|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[699344]=0; +d=_(4,c+1|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;J[b+8>>2]=c;J[b+12>>2]=d;H[c+d|0]=0}return}b=Z()|0;zc(a);ba(b|0);B()}function Afa(a){a=a|0;if(K[2797736])return J[699433];if(!K[2798248])H[2798248]=1;yf(2798080,2638676);yf(2798092,2638704);yf(2798104,2638732);yf(2798116,2638764);yf(2798128,2638804);yf(2798140,2638840);yf(2798152,2638868);yf(2798164,2638904);yf(2798176,2638920);yf(2798188,2638936);yf(2798200,2638952);yf(2798212,2638968);yf(2798224,2638984);yf(2798236,2639E3);H[2797736]=1; +J[699433]=2798080;return 2798080}function nja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=fc-16|0;fc=e;a:{b:{if((a|0)!=(b|0)){g=J[698583];J[698583]=0;a=EQ(a,e+12|0,d,gh());d=jc;f=J[698583];c:{if(f){if(J[e+12>>2]!=(b|0))break c;if((f|0)==68)break b;break a}J[698583]=g;if(J[e+12>>2]==(b|0))break a}}J[c>>2]=4;a=0;d=0;break a}J[c>>2]=4;if(!!a&(d|0)>=0|(d|0)>0){a=-1;d=2147483647;break a}a=0;d=-2147483648}fc=e+16|0;jc=d;return a|0}function lWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(b>>>0>2147482623)break a; +e=b;d=J[a+1032>>2];if(!((d|0)<=(b|0)&(b+4|0)<=(J[a+1036>>2]+d|0))){d=0;if(hh(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;b=ge(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=b;if((b|0)<4)break a;d=J[a+1032>>2]}a=(e-d|0)+a|0;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[c>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);d=1}return d|0}function jwa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;a:{if(!(J[b>>2]>2]&J[b+4>>2]>2])){a=Qc(c+8|0,2387375,2385446,348,2425212,0);J[699344]=0;$(5179,a|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}d=J[b+4>>2];J[a+16>>2]=J[b>>2];J[a+20>>2]=d;d=J[b+12>>2];J[a+24>>2]=J[b+8>>2];J[a+28>>2]=d;J[a+44>>2]=0;J[a+48>>2]=1;J[a+36>>2]=0;J[a+40>>2]=1;fc=c+32|0;return}B()}function drb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=fc-16|0;fc=b;a:{if(!a){g=1;break a}h=J[a+72>>2];i=J[a+96>>2];c=J[a+104>>2];pp(a+108|0);d=c?J[c>>2]:0;f=ts(d);J[a+108>>2]=f;if((d|0)<=0)break a;a=0;while(1){s9(c,a,b+8|0,b+4|0);Hj(i,a,b+12|0);e=lg(h,J[b+12>>2]);J[b>>2]=e; +jm(f,Q(J[b+8>>2]),Q((J[b+4>>2]+(e?J[e+4>>2]:-1)|0)-13|0));Fd(b);a=a+1|0;if((d|0)!=(a|0))continue;break}}fc=b+16|0;return g|0}function uM(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=J[a+4>>2];a=J[b>>2];if(!a)return 0;f=a&1;c=J[b+16>>2];a:{if((a|0)==1){b=0;a=0;break a}g=a&-2;b=0;a=0;while(1){h=b;b=J[(a>>>6&67108860)+c>>2]+(a&254)|0;d=K[b|0];b=K[b+1|0];b=(h+((d|0)!=0&!(d&64))|0)+((b|0)!=0&!(b&64))|0;a=a+2|0;e=e+2|0;if((g|0)!=(e|0))continue;break}}if(f){a=K[J[(a>>>6&67108860)+c>>2]+(a&255)|0];b=((a|0)!= +0&!(a&64))+b|0}return b|0}function tV(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];e=kc[J[J[c>>2]+16>>2]](c)|0;c=vc(40);J[c+8>>2]=1;J[c+4>>2]=0;J[c>>2]=2397024;a:{d=J[b>>2];if(d){J[699344]=0;J[d+4>>2]=J[d+4>>2]+1;d=J[699344];J[699344]=0;if((d|0)==1)break a;f=J[b>>2]}J[c+16>>2]=f;J[c+12>>2]=f;J[c+36>>2]=0;J[c+24>>2]=0;J[c>>2]=2426900;J[c+32>>2]=e;J[c+28>>2]=e;I[c+20>>1]=0;J[a>>2]=0;vd(a,c);return}a=Z()|0;uc(nd(c));ba(a|0);B()}function rta(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+12>>2];if(b){c=b+24|0; +b=(J[b+20>>2]<<4)+32|0;while(1){d=b;b=b+8164|0;c=J[c>>2];if(c)continue;break}d=d+24|0}else d=24;b=J[a+16>>2];if(b){c=b+24|0;b=(J[b+20>>2]<<4)+32|0;while(1){e=b;b=b+8164|0;c=J[c>>2];if(c)continue;break}d=d+e|0}a=J[a+20>>2];if(a){c=a+24|0;b=(J[a+20>>2]<<4)+32|0;while(1){a=b;b=b+8164|0;c=J[c>>2];if(c)continue;break}d=a+d|0}return d|0}function TN(a,b,c,d,e){var f=0,g=0,h=0;h=fc-16|0;fc=h;g=!a;a:{if(g|(((g?-1:J[a+8>>2])|0)!=1|(b|0)>4))break a;if((c|0)>4|(d|0)>4|(e|0)>4)break a;if((b|0)<=0){f=Ff(0,a);break a}g= +b9();if(!g)break a;f=wE(a,b,g);J[h+12>>2]=f;b:{if((c|0)<=0)break b;f=wE(f,c,g);J[h+8>>2]=f;Fd(h+12|0);if((d|0)<=0)break b;f=wE(f,d,g);J[h+4>>2]=f;Fd(h+8|0);if((e|0)<=0)break b;f=wE(f,e,g);Fd(h+4|0)}uc(g)}fc=h+16|0;return f}function Sua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;d=-1;a:{if(!b|!c)break a;J[b>>2]=0;a=J[a+12>>2];d=0;if(!K[a|0])break a;d=Yc(a);J[e+12>>2]=a;b:{if((c|0)<=0)break b;c=(c<<2)+b|0;a=a+d|0;d=b;while(1){f=J[e+12>>2];if(!(f>>>0>=a>>>0|!K[f|0])){f=ur(e+12|0,a);if(c>>> +0>d>>>0){J[d>>2]=f;d=d+4|0}if(c>>>0>d>>>0)continue;break b}break}J[d>>2]=0;d=d-b>>>2|0;break a}d=-1}fc=e+16|0;return d|0}function SCa(a,b){a=a|0;b=b|0;var c=0,d=0;d=fc-32|0;fc=d;a:{c=J[a+8>>2];if((c|0)>=65536){a=Qc(d+8|0,2395158,2385275,158,2401376,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}b=J[b>>2];Gn(b,c&255);Gn(b,K[a+9|0]);c=J[a+12>>2];if(c)c=J[c+8>>2];else c=0;jw(b,c);dI(b,a+12|0);c=J[a+20>>2];if(c)c=J[c+8>>2];else c=0;wX(b,c);dI(b,a+20|0); +fc=d+32|0;return}B()}function Gyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)<(P(J[a+588>>2],3)|0))continue;break}}return 0}xc(b,c,P(J[a+588>>2],3));return 0}function zrb(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;H[a+24|0]= +0;a:{if(!b)break a;e=J[a+4>>2];if(!e)break a;c=P(c,d);if(!c)break a;f=J[a+16>>2];g=c+f|0;h=J[a+20>>2];if(!((g|0)<=(h|0)|g>>>0<=h>>>0)){f=(g&-65536)+65536|0;e=fe(e,f);J[a+20>>2]=f;H[a+12|0]=1;J[a+4>>2]=e;if(!e)break a;f=J[a+16>>2]}xc(e+f|0,b,c);b=c+J[a+16>>2]|0;J[a+16>>2]=b;if((b|0)>J[a+8>>2])J[a+8>>2]=b;i=d}return i|0}function mp(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b=J[c+8>>2]-1|0;J[c+8>>2]=b;if(!b){b:{d=J[c>>2];if((d|0)<=0)break b;b=J[c+12>>2];if(!b)break b;while(1){c:{if(!b)break c; +f=(e<<2)+b|0;b=J[f>>2];if(!b)break c;g=J[b+16>>2]-1|0;J[b+16>>2]=g;if((g|0)<=0){uc(b);d=J[c>>2]}J[f>>2]=0}e=e+1|0;if((e|0)>=(d|0))break b;b=J[c+12>>2];continue}}uc(J[c+12>>2]);uc(c)}J[a>>2]=0}}function mT(a,b,c,d){var e=0,f=0;a:{if(d>>>0>=3){J[698583]=28;break a}b:{if((d|0)!=1)break b;e=J[a+8>>2];if(!e)break b;f=b;e=e-J[a+4>>2]|0;b=b-e|0;c=c-((e>>31)+(e>>>0>f>>>0)|0)|0}if(J[a+20>>2]!=J[a+28>>2]){kc[J[a+36>>2]](a,0,0)|0;if(!J[a+20>>2])break a}J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;kc[J[a+40>>2]](a, +b,c,d)|0;if((jc|0)<0)break a;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=J[a>>2]&-17;return 0}return-1}function i5(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0,i=0,j=0,k=0;h=fc-16|0;fc=h;a=J[a+4>>2];J[h+4>>2]=0;j=Qe(a,h+4|0),k=4,H[j|0]=k;i=J[h+4>>2];O[i+8>>3]=c;O[i>>3]=b;J[a>>2]=J[a>>2]+1;J[h+8>>2]=0;j=Qe(a,h+8|0),k=4,H[j|0]=k;i=J[h+8>>2];O[i+8>>3]=e;O[i>>3]=d;J[a>>2]=J[a>>2]+1;J[h+12>>2]=0;j=Qe(a,h+12|0),k=4,H[j|0]=k;i=J[h+12>>2];O[i+8>>3]=g;O[i>>3]=f;J[a>>2]=J[a>>2]+1;fc=h+16|0;return 0}function XEa(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;d=fc-32|0;fc=d;a:{b:{c:{d:switch(c|0){case 2:c=J[a+16>>2];break c;default:a=Qc(d+8|0,2391498,2387108,924,2396960,0);break b;case 0:break c;case 1:break d}c=J[a+12>>2]}b=b+c|0;if((b|0)>=0)break a;a=Qc(d+8|0,2391929,2387108,928,2396960,0)}J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0)}B()}J[a+12>>2]=b;fc=d+32|0;return 0}function WEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;d=vc(36);J[d+8>>2]=1;J[d+4>>2]=0;J[d+20>>2]=0; +J[d+12>>2]=0;J[d+16>>2]=0;J[d>>2]=2396924;J[699344]=0;ha(5213,d+28|0,d+24|0,0,4)|0;f=J[699344];J[699344]=0;if((f|0)==1){a=Z()|0;uc(nd(d));ba(a|0);B()}J[a>>2]=0;vd(a,d);J[699344]=0;ia(5225,e+8|0,d|0,b|0,c|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;zc(a);ba(b|0);B()}wc(e+8|0);fc=e+16|0}function Tsb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;kc[J[a+156>>2]](d,c+1|0)}c=J[b+44>>2];b:{if(!c)break b;d=J[b+48>>2];if(!d)break b;kc[J[a+156>>2]](d,c+1|0)}c=J[b+ +52>>2];c:{if(!c)break c;d=J[b+56>>2];if(!d)break c;kc[J[a+156>>2]](d,c+1|0)}c=J[b+60>>2];d:{if(!c)break d;d=J[b+64>>2];if(!d)break d;kc[J[a+156>>2]](d,c)}kc[J[a+156>>2]](b,68);return 0}function Rn(a,b,c,d){var e=0,f=0,g=0;if(!((b|0)<0|(c^2147483647)>>>0>>0|J[a+12>>2]<(b+c|0))){if((c|0)<=0)return 0;e=J[a+8>>2]+b|0;a=0;b=0;d=0;if(c>>>0>=4){g=c&-4;while(1){f=b;b=b+4|0;d=d+4|0;if((g|0)!=(d|0))continue;break}d=K[(f|3)+e|0]|(K[(f|2)+e|0]|(K[e+f|0]<<16|K[(f|1)+e|0]<<8))<<8}c=c&3;if(c)while(1){d=K[b+e| +0]|d<<8;b=b+1|0;a=a+1|0;if((c|0)!=(a|0))continue;break}return d}J[d>>2]=0;return 0}function FT(a){Tc(a,2461032,-1);Tc(a,2461068,-1);Tc(a,2461156,-1);Tc(a,2461256,-1);Tc(a,2461356,-1);Tc(a,2461408,-1);Tc(a,2461468,-1);Tc(a,2461508,-1);Tc(a,2461548,-1);Tc(a,2461588,-1);Tc(a,2461628,-1);Tc(a,2461676,-1);Tc(a,2461724,-1);Tc(a,2461772,-1);Tc(a,2461840,-1);Tc(a,2461888,-1);Tc(a,2461948,-1);Tc(a,2462E3,-1);Tc(a,2453660,-1);Tc(a,2462068,-1);Tc(a,2459664,-1);Tc(a,2462204,-1);Tc(a,2462268,-1)}function xua(a, +b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;c=fc-16|0;fc=c;if(f){d=h<<2;while(1){h=e;while(1){ie(J[a+68>>2],K[i|0],K[j|0],K[k|0],c+12|0,c+8|0,c+4|0);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;b=b+4|0;k=k+1|0;j=j+1|0;i=i+1|0;h=h-1|0;if(h)continue;break}k=g+k|0;j=g+j|0;i=g+i|0;b=b+d|0;f=f-1|0;if(f)continue;break}}fc=c+16|0}function iAa(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;a:{if(J[a+8>>2]){ti(b+12|0,a,a+8|0);break a}J[b+12>>2]=0; +vd(b+12|0,0)}b:{c=J[b+12>>2];if(!c){a=0;break b}a=J[(J[a+12>>2]&1?12:8)+c>>2];J[699344]=0;J[b+12>>2]=0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break b;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b}ea(0)|0;Bc();B()}fc=b+16|0;return a|0}function hAa(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;a:{if(J[a+8>>2]){ti(b+12|0,a,a+8|0);break a}J[b+12>>2]=0;vd(b+12|0,0)}b:{c=J[b+12>>2];if(!c){a=0;break b}a=J[(J[a+12>>2]&1?8:12)+c>>2];J[699344]=0;J[b+12>>2]= +0;d=J[c+4>>2]-1|0;J[c+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break b;J[699344]=0;$(5147,c|0);c=J[699344];J[699344]=0;if((c|0)!=1)break b}ea(0)|0;Bc();B()}fc=b+16|0;return a|0}function Ap(a,b,c){var d=0,e=0,f=0;if((c|0)<=0)return 0;a:{while(1){d=J[a+8>>2];if(d&7)break a;e=J[a+64>>2];if(!((e|0)<0|(e|0)>J[a+60>>2])){J[a+8>>2]=d|4;return f}J[a+4>>2]=J[a+4>>2]|32;d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=K[b|0];e=J[a+24>>2];J[a+24>>2]=e+1;H[e|0]=d;break b}if((bd(a, +K[b|0])|0)==-1)break a}b=b+1|0;f=f+1|0;if((f|0)!=(c|0))continue;break}f=c}return f}function ykb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:{b:{c:{if(b){h=142;g=L[a+152>>1];if(!g)break b;f=J[a+156>>2];i=f+(g<<4)|0;while(1){d:{if(J[f>>2]==(b|0)){g=J[f+12>>2];if(g)break d}f=f+16|0;if(i>>>0>f>>>0)continue;break b}break}c=J[f+8>>2]+c|0;break c}g=J[J[a+104>>2]+4>>2]}if(!e){f=g;break a}f=J[e>>2];if(f)break a;J[e>>2]=g;h=0}return h|0}return YD(J[a+104>>2],c,d,f)|0}function vwb(a){a=a| +0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1120;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1121;if(K[a+2272|0])break a}b=1122}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=2;J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b+3>>>2|0);J[a+604>>2]=c+3>>>2;return Of(a)|0}function twb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1123;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1124;if(K[a+2272|0])break a}b= +1125}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b+1>>>1|0);J[a+604>>2]=c+1>>>1;return Of(a)|0}function Jwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1099;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1100;if(K[a+2272|0])break a}b=1101}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=2; +J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b+3>>>2|0);J[a+604>>2]=c+3>>>2;return Of(a)|0}function Hwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1102;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1103;if(K[a+2272|0])break a}b=1104}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>> +2]=J[a+616>>2]+(b+1>>>1|0);J[a+604>>2]=c+1>>>1;return Of(a)|0}function Blb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;f=J[a+4>>2];e=0-f|0;a:{if((e&(c+f|0)-1)!=(c|0))break a;c=c>>J[a>>2];if((c|0)<0|c>>>0>=M[a+96>>2])break a;c=(J[a+56>>2]+(b>>3)|0)-P(c,J[a+104>>2])|0;H[c|0]=K[c|0]|128>>>(b&7);e=0-J[a+4>>2]|0}b:{if((d&e)!=(d|0))break b;c=d>>J[a>>2];if((c|0)<0|c>>>0>=M[a+96>>2])break b;a=(J[a+56>>2]+(b>>3)|0)-P(c,J[a+104>>2])|0;H[a|0]=K[a|0]|128>>>(b&7)}}function uOa(a,b,c){a=a|0;b=b|0;c=c|0;var d= +0,e=0;if((kc[J[J[a>>2]+32>>2]](a)|0)==-1|(c|0)<0)b=d;else{a:{if(c>>>0<2)break a;c=c-1|0;while(1){b:{c:{e=kc[J[J[a>>2]+28>>2]](a)|0;switch(e+1|0){case 0:case 11:break a;case 14:break c;default:break b}}if((kc[J[J[a>>2]+32>>2]](a)|0)!=10)break a;kc[J[J[a>>2]+28>>2]](a)|0;break a}H[b+d|0]=e;d=d+1|0;if((c|0)!=(d|0))continue;break}d=c}H[b+d|0]=0}return b|0}function gna(a){a=a|0;var b=0,c=0;a:{a=a+16|0;if(H[a+423|0]<0)uc(J[a+412>>2]);if(H[a+395|0]<0)uc(J[a+384>>2]);J[a+16>>2]=340504;b:{b=J[a+44>>2];if(b){c= +J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;J[a+44>>2]=0}Se(a+228|0);b=J[a+136>>2];if(b){J[a+140>>2]=b;uc(b)}if(H[a+63|0]<0)uc(J[a+52>>2]);Jd(a+48|0);if(H[a+11|0]<0)uc(J[a>>2]);break a}ea(0)|0;Bc();B()}}function yyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<<2<=0)break b; +while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2]<<2)continue;break}}return 0}xc(b,c,J[a+588>>2]<<2);return 0}function dOa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;J[c>>2]=13;Pe(a+8|0,c);b=vc(312);e=J[a+28>>2];f=J[a+32>>2];g=J[a+36>>2];a=J[a+24>>2];d=J[c+4>>2];J[b+8>>2]=J[c>>2];J[b+12>>2]=d;d=J[c+12>>2];J[b+16>>2]=J[c+8>>2];J[b+20>>2]=d;J[b>>2]=2343E3;J[a+4>>2]=J[a+4>>2]+1;d=b+40|0;J[b+300>>2]=d;J[b+32>>2]=f;J[b+36>>2]=g;J[b+28>>2]=e;J[b+24>>2]=a;J[b+304>>2]=e; +J[b+296>>2]=d;fc=c+16|0;return b|0}function YA(a,b,c){var d=0,e=0,f=0,g=0;f=J[a>>2];g=bf(b);d=K[a+11|0];e=d<<24>>24<0;d=e?J[a+4>>2]:d;if(d>>>0>=c>>>0){if(!g)return c;f=e?f:a;e=f+(d<<2)|0;c=f+(c<<2)|0;a=e-c>>2;a:{b:{if((g|0)>(a|0))break b;d=J[b>>2];while(1){a=(a-g|0)+1|0;if(!a)break b;a=og(c,d,a);if(!a)break b;if(!qd(a,b,g))break a;c=a+4|0;a=e-c>>2;if((g|0)<=(a|0))continue;break}}a=e}a=(a|0)==(e|0)?-1:a-f>>2}else a=-1;return a}function Eyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>> +2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<<1<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2]<<1)continue;break}}return 0}xc(b,c,J[a+588>>2]<<1);return 0}function uha(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;J[a>>2]=0;J[a+4>>2]=0;J[c+4>>2]=0;d=a+8|0;J[d>>2]=0;H[d+128|0]=0;J[c>>2]=a;d=J[c>>2];H[c+8|0]=0;J[c+4>>2]=d;a:{if(!b)break a; +J[699344]=0;da(6958,a|0,b|0);d=J[699344];J[699344]=0;if((d|0)!=1){J[699344]=0;da(6959,a|0,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}a=Z()|0;eR(c+4|0);ba(a|0);B()}b=c+4|0;H[b+4|0]=1;eR(b);fc=c+16|0;return a|0}function Rf(a,b){var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+3>>>0)break d;e=J[a+20>>2];e:{if(e){f=d+12|0;if((kc[e|0](a,c,f,4)|0)!=4)break d;c=J[a+8>>2];b=f;break e}b=J[a>>2];if(!b)break c;b=b+c|0}b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<< +24);g=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+4}fc=d+16|0;return g}function pmb(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;a:{d=a?a+b|0:0;if(d>>>0<=a>>>0)break a;d=d-a|0;d=b>>>0>d>>>0?d:b;if(!d)break a;b=0;if((d|0)!=1){i=d&-2;while(1){e=a+b|0;f=K[e|0];H[e|0]=f^c>>>8;g=(b|1)+a|0;e=K[g|0];c=P(c+f|0,52845)+22719|0;H[g|0]=e^c>>>8;c=P(c+e|0,52845)+22719&65535;b=b+2|0;h=h+2|0;if((i|0)!=(h|0))continue;break}}if(!(d&1))break a;a=a+b|0;H[a|0]=K[a|0]^c>>> +8}}function hFa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if(!c)return 0;h=a+40|0;while(1){d=J[a+20>>2];e=J[a+36>>2];if(!e){J[a+16>>2]=0;xe(h,d+32|0,1);e=J[a+36>>2];d=J[a+20>>2]}f=J[a+16>>2];d=d+(f^-1)|0;d=(c|0)>(d|0)?d:c;xc(e+f|0,b,d);e=d+J[a+16>>2]|0;J[a+16>>2]=e;J[a+12>>2]=d+J[a+12>>2];c=c-d|0;if(J[a+20>>2]<=(e+1|0))kc[J[J[a>>2]+24>>2]](a);g=d+g|0;b=b+d|0;if(c)continue;break}return g|0}function WNa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;i=J[a+32>>2];g=J[a+28>>2];f= +vc(48);h=J[a+24>>2];a=J[e+12>>2];J[f+16>>2]=J[e+8>>2];J[f+20>>2]=a;a=J[e+4>>2];J[f+8>>2]=J[e>>2];J[f+12>>2]=a;J[f+44>>2]=0;J[f+24>>2]=h;J[f>>2]=2343116;a=g+i|0;b=b>>>0>>0?g:a>>>0>>0?a:b;J[f+28>>2]=b;e=b+h|0;J[f+40>>2]=e;g=a-b|0;a=c?a>>>0>>0?g:d:g;J[f+32>>2]=a;J[f+36>>2]=a+e;return f|0}function UJ(a){var b=0,c=0;b=J[a+16>>2];if(b)uc(Zc(b));b=J[a+20>>2];if(b)uc(Zc(b));J[699344]=0;$(3370,a+24|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){b=J[a+40>>2];if(b)uc(Zc(b));b=J[a+84>>2];if(b){c=J[b+ +16>>2];if(c){J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a}uc(b)}J[699344]=0;$(3370,a+88|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b}break a}return a}ea(0)|0;Bc();B()}function LZa(a){a=a|0;var b=0,c=0,d=0;J[a+4>>2]=0;J[a+8>>2]=0;c=a+4|0;J[a>>2]=c;J[699344]=0;d=_(3360,a+12|0)|0;b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[699344]=0;b=fc-16|0;fc=b;fc=b+16|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;hu(a,J[a+4>>2]);J[a>>2]=c;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}c=Z()|0;break a}c=Z()| +0;b=J[d>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[d>>2]=0}}hu(a,J[a+4>>2]);ba(c|0);B()}function EEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=ql(b);d=J[J[a+12>>2]+((c>>>0)%M[a+8>>2]<<2)>>2];a:{if(d)while(1){if((c|0)==J[d+12>>2])if(Bm(d+16|0,b))break a;d=J[d+8>>2];if(d)continue;break}d=vc(68);c=Ac(d,0,68);e=mk(c+16|0,b);J[c+60>>2]=0;J[c+64>>2]=0;J[c+52>>2]=0;J[c+56>>2]=0;b=c+52|0;J[b>>2]=2397928;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;f=c,g=ql(e),J[f+12>>2]=g;Em(a,c)}return d|0}function fla(a,b,c){a=a|0;b= +b|0;c=c|0;var d=0,e=0,f=0;if((c|0)>0){a=J[a+12>>2];while(1){d=J[a>>2];I[b>>1]=d>>>16;e=(+((d&255)>>>0)+.5)*.0024390243902439024*32768;a:{if(R(e)<2147483648){f=~~e;break a}f=-2147483648}I[b+4>>1]=f;e=(+((d>>>8&255)>>>0)+.5)*.0024390243902439024*32768;b:{if(R(e)<2147483648){d=~~e;break b}d=-2147483648}I[b+2>>1]=d;a=a+4|0;b=b+6|0;d=c>>>0>1;c=c-1|0;if(d)continue;break}}}function MUa(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;a:{e=J[a+4>>2];if((e|0)<=0)break a;a=0;if(e>>>0>=4){i=e&-4;while(1){d= +a<<3;O[d+c>>3]=O[b+d>>3];f=d|8;O[f+c>>3]=O[b+f>>3];f=d|16;O[f+c>>3]=O[b+f>>3];d=d|24;O[d+c>>3]=O[b+d>>3];a=a+4|0;g=g+4|0;if((i|0)!=(g|0))continue;break}}d=e&3;if(!d)break a;while(1){e=a<<3;O[e+c>>3]=O[b+e>>3];a=a+1|0;h=h+1|0;if((d|0)!=(h|0))continue;break}}}function Lz(a,b,c){var d=0,e=0,f=0;d=J[c+16>>2];a:{if(!d){if(KG(c))break a;d=J[c+16>>2]}e=J[c+20>>2];if(d-e>>>0>>0)return kc[J[c+36>>2]](c,a,b)|0;b:{c:{if(!b|J[c+80>>2]<0)break c;d=b;while(1){f=a+d|0;if(K[f-1|0]!=10){d=d-1|0;if(d)continue;break c}break}e= +kc[J[c+36>>2]](c,a,d)|0;if(e>>>0>>0)break a;b=b-d|0;e=J[c+20>>2];break b}f=a;d=0}xc(e,f,b);J[c+20>>2]=J[c+20>>2]+b;e=b+d|0}return e}function Au(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=J[a+4>>2];if((d|0)>=0){a:{if(J[a>>2]==(d|0)){O[b>>3]=O[a+16>>3];O[c>>3]=O[a+24>>3];e=1;b=d-1|0;break a}if(!d){O[b>>3]=O[a+32>>3];O[c>>3]=O[a+40>>3];e=2;b=-1;break a}f=O[a+64>>3];g=f+O[a+48>>3];O[a+48>>3]=g;h=O[a+72>>3];O[a+72>>3]=h+O[a+88>>3];O[a+56>>3]=h+O[a+56>>3];O[a+64>>3]=f+O[a+80>>3];O[b>>3]=g;O[c>>3]=O[a+56>>3];e= +2;b=d-1|0}J[a+4>>2]=b}return e}function zwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1114;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1115;if(K[a+2272|0])break a}b=1116}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=6;J[a+596>>2]=0;J[a+652>>2]=6;H[a+648|0]=1;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+P(b,6);J[a+604>>2]=P(c,6);return Of(a)|0}function tB(a){var b=0,c=0,d=0;b=vc(8);J[699344]=0;c=_(3351,b|0)|0;d=J[699344]; +J[699344]=0;if((d|0)!=1){b=J[a+32>>2];a:{if(b>>>0>=M[a+36>>2]|!K[K[b|0]+2347808|0])break a;J[a+32>>2]=b+1;Kd(c,H[b|0]);b=J[a+32>>2];if(b>>>0>=M[a+36>>2])break a;while(1){if(!K[K[b|0]+2348064|0])break a;J[a+32>>2]=b+1;Kd(c,H[b|0]);b=J[a+32>>2];if(b>>>0>2])continue;break}}return c}a=Z()|0;uc(b);ba(a|0);B()}function rM(a,b,c,d,e,f,g){var h=0;h=fc-16|0;fc=h;a:{if(!c){J[h+12>>2]=0;c=h+12|0;kc[J[J[e>>2]+40>>2]](e,c);J[h+12>>2]=J[d>>2];N[h+8>>2]=O[f>>3];N[h+4>>2]=O[g>>3];kc[J[J[e>>2]+92>>2]](e,b, +c,h+8|0,h+4|0)|0;break a}J[h+12>>2]=1;b=h+12|0;kc[J[J[e>>2]+40>>2]](e,b);J[h+12>>2]=J[d>>2];N[h+8>>2]=O[f>>3];N[h+4>>2]=O[g>>3];kc[J[J[e>>2]+92>>2]](e,c,b,h+8|0,h+4|0)|0}kc[J[J[e>>2]+132>>2]](e,a)|0;fc=h+16|0}function qeb(a){a=a|0;var b=0,c=0;b=J[a+12>>2];if(b)kc[J[J[b>>2]+156>>2]](b);b=a+544|0;Js(b,340592,5);a:{if(H[a+543|0]<0){J[a+536>>2]=0;c=J[a+532>>2];break a}H[a+543|0]=0;c=a+532|0}J[c>>2]=0;I[a+576>>1]=0;J[a+568>>2]=0;J[a+572>>2]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+580>>2]=0;J[a+584>>2]=0;J[a+ +588>>2]=0;J[a+592>>2]=0;b:{if(H[a+555|0]<0){J[a+548>>2]=0;b=J[a+544>>2];break b}H[a+555|0]=0}J[b>>2]=0}function Z7(a,b,c,d){var e=0,f=0;e=fc-32|0;fc=e;J[e+8>>2]=0;f=c?c:d;J[e+20>>2]=f?f:72;J[e+24>>2]=f?c?d?d:c:d:72;b=(b|0)<=64?64:b;J[e+12>>2]=b;J[e+16>>2]=b;a:{if(!a){d=35;break a}b=J[a+88>>2];J[J[b+40>>2]+12>>2]=0;c=J[J[J[a+96>>2]+12>>2]+88>>2];if(c){d=kc[c|0](b,e+8|0)|0;break a}if((J[a+8>>2]&3)==2){d=yN(a,e+8|0,e+28|0);if(d)break a;d=xN(a,J[e+28>>2]);break a}ms(a,e+8|0);d=0}fc=e+32|0;return d}function Ty(a, +b){var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b;while(1){b:{c=J[a+8>>2];c:{if(c&7)break c;e=J[a+64>>2];if(!((e|0)<0|J[a+60>>2]<(e|0))){J[a+8>>2]=c|4;break c}J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=J[a+24>>2];J[a+24>>2]=c+1;H[c|0]=0;break b}if((bd(a,0)|0)!=-1)break b}b=b-d|0;break a}c=(d|0)>1;d=d-1|0;if(c)continue;break}}return b}function Sh(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=J[a+12>>2];e=J[a+4>>2];if((e|0)>0)while(1){g=f<<2;d=g+c|0;b=J[d>>2];if(b){while(1){J[d>> +2]=J[b+8>>2];a:{if(!J[a>>2])break a;c=J[b>>2];if(!c)break a;uc(Zc(c))}uc(b);c=J[a+12>>2];d=g+c|0;b=J[d>>2];if(b)continue;break}e=J[a+4>>2]}f=f+1|0;if((f|0)<(e|0))continue;break}J[699344]=0;Mc(c);b=J[699344];J[699344]=0;if((b|0)!=1)return a;ea(0)|0;Bc();B()}function SP(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=Dc(40);J[d>>2]=0;d=Hf(a+624|0,1,d,4);i=gc;a:{b:{while(1){if(e){h=-1;break a}J[699344]=0;h=ga(671,a|0,b|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;c:{d:{if(!e)break d;g=J[699345];if(!g)break d; +f=Pc(J[e>>2],d,i);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;break a}break}uc(d);nf(e,g);B()}a=Z()|0;uc(d);ba(a|0);B()}uc(d);return h}function PP(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;d=Dc(40);J[d>>2]=0;d=Hf(a+624|0,1,d,4);i=gc;a:{b:{while(1){if(e){h=-1;break a}J[699344]=0;h=ga(641,a|0,b|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break b;f=-1;c:{d:{if(!e)break d;g=J[699345];if(!g)break d;f=Pc(J[e>>2],d,i);if(!f)break c;gc=g}e=gc;if((f|0)==1)continue;break a}break}uc(d);nf(e,g);B()}a=Z()|0;uc(d); +ba(a|0);B()}uc(d);return h}function L3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];g=P(J[b+36>>2],L[c+18>>1]);h=P(J[b+4>>2],L[c+2>>1]);i=g+h|0;j=P(J[b+32>>2],L[c+16>>1]);b=P(J[b>>2],L[c>>1])+4|0;c=j+b|0;H[f|0]=K[a+(i+c>>>3&1023)|0];H[f+1|0]=K[a+(c-i>>>3&1023)|0];c=J[d+4>>2]+e|0;d=h-g|0;b=b-j|0;H[c|0]=K[a+(d+b>>>3&1023)|0];H[c+1|0]=K[a+(b-d>>>3&1023)|0]}function Jz(a){var b=0,c=0;b=J[685989];if(!((b|0)>=0&(!b|J[698616]!=(b&-1073741825)))){a:{c= +a&255;if((c|0)==J[685990])break a;b=J[685975];if((b|0)==J[685974])break a;J[685975]=b+1;H[b|0]=a;return}dt(2743880,c);return}b=J[685989];J[685989]=b?b:1073741823;b:{c:{c=a&255;if((c|0)==J[685990])break c;b=J[685975];if((b|0)==J[685974])break c;J[685975]=b+1;H[b|0]=a;break b}dt(2743880,c)}J[685989]=0}function HCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=-1;d=J[c+8>>2];a:{if(d&7)break a;e=K[a+12|0];b=J[c+64>>2];if(!((b|0)<0|(b|0)>J[c+60>>2])){J[c+8>>2]=d|4;return-1}J[c+4>>2]=J[c+4>>2]|32;b=-1;d=J[c+28>> +2];J[c+28>>2]=d-1;b:{if((d|0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=e;break b}if((bd(c,e)|0)==-1)break a}b=(Ap(c,J[a+20>>2],J[a+16>>2])|0)!=J[a+16>>2]?-1:0}return b|0}function Gya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;a:{b:{if(!(!J[a+8>>2]|J[a+20>>2]>=J[a+28>>2]|J[a+24>>2]>=J[a+32>>2])){WV(b,a+8|0,1,a+44|0,c);break b}a=d+8|0;VV(a,1);J[699344]=0;aa(5228,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;wc(a);UV(a,1);J[699344]=0;aa(5228,b|0,a|0)|0;b=J[699344]; +J[699344]=0;if((b|0)==1)break a;wc(a)}fc=d+16|0;return}a=Z()|0;wc(d+8|0);ba(a|0);B()}function Bwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1111;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1112;if(K[a+2272|0])break a}b=1113}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=3;J[a+596>>2]=0;J[a+652>>2]=3;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+P(b,3);J[a+604>>2]=P(c,3);return Of(a)|0}function w6a(a){a=a|0; +var b=0;J[a+4>>2]=1;J[a>>2]=348028;J[a>>2]=351960;J[699344]=0;u4(a+16|0);b=J[699344];J[699344]=0;if((b|0)!=1){J[a+112>>2]=0;J[a+116>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+8>>2]=0;J[a+156>>2]=40968;J[a+160>>2]=0;J[a+136>>2]=0;J[a+140>>2]=0;J[a+144>>2]=0;J[a+128>>2]=0;J[a+132>>2]=0;H[a+164|0]=1;J[a+120>>2]=0;J[a+124>>2]=0;J[a+148>>2]=0;J[a+152>>2]=0;return a|0}ba(Z()|0);B()}function v_(a,b,c){var d=0,e=0,f=0,g=0;g=fc-32|0;H[g+23|0]=0;d=g+23|0;while(1){if(!(!c&(f|0)>0)){d=d-1|0;e=c;c=(c>>>0)/10|0;e=K[(e- +P(c,10)|0)+61520|0];H[d|0]=e;f=f+1|0;if(d>>>0>g>>>0)continue}break}a:{if(b-1>>>0>7)break a;a=((b<<5)+a|0)-32|0;if(!a)break a;f=0;b:{if(!d|!e)break b;c=0;while(1){H[a+c|0]=e;f=c+1|0;if(c>>>0>29)break b;e=K[d+1|0];d=d+1|0;c=f;if(e)continue;break}}H[a+f|0]=0}}function pwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1129;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1130;if(K[a+2272|0])break a}b=1131}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]= +2;J[a+596>>2]=0;J[a+652>>2]=2;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b<<1);J[a+604>>2]=c<<1;return Of(a)|0}function nwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1132;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1133;if(K[a+2272|0])break a}b=1134}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=4;J[a+596>>2]=0;J[a+652>>2]=4;H[a+648|0]=1;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b<< +2);J[a+604>>2]=c<<2;return Of(a)|0}function lwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1135;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1136;if(K[a+2272|0])break a}b=1021}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=4;J[a+596>>2]=0;J[a+652>>2]=4;H[a+648|0]=0;b=J[a+316>>2];c=b+7>>>3|0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b<<2);J[a+604>>2]=c<<2;return Of(a)|0}function jwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1137;if(J[a+536>> +2]){a:{if(K[a+288|0]){b=1138;if(K[a+2272|0])break a}b=1020}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=8;J[a+596>>2]=0;J[a+652>>2]=8;H[a+648|0]=1;b=J[a+316>>2];c=b+7|0;J[a+604>>2]=c&-8;J[a+588>>2]=c>>>3;J[a+608>>2]=J[a+616>>2]+(b<<3);return Of(a)|0}function Jyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a; +case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0]&15;c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}xc(b,c,J[a+588>>2]);return 0}function Dwb(a){a=a|0;var b=0,c=0;if(J[a+968>>2])J[a+988>>2]=1108;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1109;if(K[a+2272|0])break a}b=1110}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;H[a+648|0]=1;b=J[a+316>>2];c=b+7>>>3| +0;J[a+588>>2]=c;J[a+608>>2]=J[a+616>>2]+(b<<1);J[a+604>>2]=c<<1;return Of(a)|0}function dWa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if(c-5>>>0<4294967292)break a;if(!A0(a,b,c))break a;J[d>>2]=0;e=K[((b-J[a+1040>>2]|0)+a|0)+16|0];J[d>>2]=e;f=1;if((c|0)==1)break a;e=K[((b-J[a+1040>>2]|0)+a|0)+17|0]|e<<8;J[d>>2]=e;if((c|0)==2)break a;e=K[((b-J[a+1040>>2]|0)+a|0)+18|0]|e<<8;J[d>>2]=e;if((c|0)==3)break a;J[d>>2]=K[((b-J[a+1040>>2]|0)+a|0)+19|0]|e<<8}return f|0}function Lyb(a){a=a|0;var b=0,c=0, +d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0]&1;c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}xc(b,c,J[a+588>>2]);return 0}function Kyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>> +2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<=0)break b;while(1){H[b|0]=K[c|0]+K[b|0]&3;c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}xc(b,c,J[a+588>>2]);return 0}function x6(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=6;d=J[a+868>>2];a:{if(!d|L[a+648>>1]<=b>>>0)break a;e=8;b=J[d+8>>2]+(b<<1)|0;b=K[b|0]<<8|K[b+1|0];c=L[a+660>>1];if(L[d+2>>1]>>0)break a;e=0;if(!c)break a;a=J[a+672>>2];c=a+(c<<2)|0;b=J[d+4>>2]+(b<<2)|0;while(1){H[a| +0]=K[b|0];H[a+1|0]=K[b+1|0];H[a+2|0]=K[b+2|0];H[a+3|0]=K[b+3|0];b=b+4|0;a=a+4|0;if(c>>>0>a>>>0)continue;break}}return e|0}function vx(a,b){var c=0,d=0,e=0;d=fc-16|0;fc=d;c=-1;a:{if(J[a+32>>2]|(!a|!b))break a;e=J[a+24>>2];c=J[a+8>>2];if(!((e|0)==(c|0)|c>>>0>2147483646)){J[a+24>>2]=c;e=c}c=J[a+4>>2];if(!((c|0)==J[a+20>>2]|c>>>0>2147483646))J[a+20>>2]=c;c=J[b+12>>2]-J[a>>2]|0;if(e>>>0>=c>>>0)break a;J[d>>2]=5455;c=0;Hc(0,0,0,0,0,29,7E3,2,5455,0,0,0,0,d);if(J[a+32>>2])break a;J[a+32>>2]=7E3}fc=d+16|0; +return c}function pn(a){var b=0,c=0,d=0,e=0;d=J[a+112>>2];if(d){b=J[d+8>>2];if(b){c=J[d>>2];if((c|0)>0){while(1){b=J[J[d+8>>2]+4>>2];e=J[b>>2];J[b>>2]=e-1;if((e|0)<=1){c=J[J[b+8>>2]>>2];if(c)kc[c|0](b);uc(b);c=J[d>>2]}c=c-1|0;a:{if((c|0)<=0){J[d>>2]=c;break a}b=J[d+8>>2];cd(b,b+8|0,c<<3);b=J[d>>2];c=b-1|0;J[d>>2]=c;if((b|0)>1)continue}break}b=J[d+8>>2]}uc(b)}uc(d)}c=J[a+108>>2];if(c)uc(c);uc(a)}function _$(a,b){var c=0,d=0,e=0;c=fc-32|0;fc=c;J[c+16>>2]=13;J[c>>2]=13;if(J[b>>2]==7){d=1;a:{if(J[Ec(J[b+ +8>>2],798515,c+16|0,0)>>2]!=6)break a;b=J[c+24>>2];if(J[b+12>>2]<=0){d=0;break a}d=0;while(1){Sc(b,e,c,0);b=_$(a,c);b:{if((b|0)<(d^2147483647)){d=b+d|0;break b}Cc(1,-1,803603,0);d=2147483647}yc(c);e=e+1|0;b=J[c+24>>2];if((e|0)>2])continue;break}}yc(c+16|0)}fc=c+32|0;return d}function WZ(a,b,c){var d=0,e=0,f=0,g=0;a:{b:{c:{if(J[c>>2]!=2){c=J[c+52>>2];e=J[c+8>>2];if((e|0)<=0)break a;g=J[c>>2];break c}if(J[c+8>>2])break a;f=(O[b+24>>3]+O[b+40>>3])*.5;if(!(f>O[c+24>>3])|!(O[c+40>>3]>f))break a; +if(O[b+16>>3]<=O[b+56>>3]*.5+O[c+32>>3])break b;break a}while(1){c=WZ(a,b,J[(d<<2)+g>>2]);if(c)break b;d=d+1|0;if((e|0)!=(d|0))continue;break}break a}return c}return 0}function RP(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Dc(40);J[c>>2]=0;c=Hf(a+624|0,1,c,4);h=gc;a:{b:{while(1){if(d){g=-1;break a}J[699344]=0;g=ga(102,a|0,b|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;e=-1;c:{d:{if(!d)break d;f=J[699345];if(!f)break d;e=Pc(J[d>>2],c,h);if(!e)break c;gc=f}d=gc;if((e|0)==1)continue;break a}break}uc(c); +nf(d,f);B()}a=Z()|0;uc(c);ba(a|0);B()}uc(c);return g}function Pq(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{b=J[a+4>>2];if(!b)break a;a=J[a+44>>2];if(!a)break a;g=a&-2;h=a&1;b=b+40|0;e=255/(a-1>>>0)|0;a=0;while(1){d=b+(a<<2)|0;c=P(a,e);H[d+1|0]=c;H[d+2|0]=c;H[d|0]=c;c=a|1;d=b+(c<<2)|0;c=P(c,e);H[d+1|0]=c;H[d+2|0]=c;H[d|0]=c;a=a+2|0;f=f+2|0;if((g|0)!=(f|0))continue;break}if(!h)break a;b=b+(a<<2)|0;a=P(a,e);H[b+1|0]=a;H[b+2|0]=a;H[b|0]=a}}function AEb(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<>>0>=32){d=f<>>32-e|d<>>0>=32){d=-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}a=a|g;jc=c|f;return a}function xx(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-6;a:{if(!b|(c|0)!=56|K[b|0]!=49)break a;if(!a)return-2;J[a+24>>2]=0;b=J[a+32>>2];if(!b){J[a+40>>2]=0;J[a+32>>2]=3228;b=3228}if(!J[a+ +36>>2])J[a+36>>2]=3229;c=kc[b|0](J[a+40>>2],1,7120)|0;if(!c)return-4;J[a+28>>2]=c;d=0;J[c+56>>2]=0;J[c>>2]=a;J[c+4>>2]=16180;b=D2(a,15);if(!b)break a;kc[J[a+36>>2]](J[a+40>>2],c);J[a+28>>2]=0;d=b}return d|0}function cj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[b>>2];if(!e)return 0;g=J[e+4>>2];a:{if(g){J[e+4>>2]=J[g+8>>2];e=J[b>>2];f=J[e+4>>2];if(f)break a}g=J[a+12>>2];a=J[a+4>>2];while(1){f=J[e>>2]+1|0;J[e>>2]=f;if((a|0)==(f|0)){uc(e);J[b>>2]=0;return 0}J[e+4>>2]=J[g+(f<<2)>>2];e=J[b>> +2];f=J[e+4>>2];if(!f)continue;break}}J[c>>2]=J[f>>2];J[d>>2]=J[J[J[b>>2]+4>>2]+4>>2];return 1}function ZDb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+72>>2];g=J[a+60>>2];h=K[a+13|0];d=K[a+12|0];a:{if(!d){b=1;break a}a=K[a+52|0];e=d&7;b:{if(d>>>0<8){b=1;break b}i=d&248;b=1;while(1){b=P(a,P(a,P(a,P(a,P(a,P(a,P(a,P(a,b))))))));c=c+8|0;if((i|0)!=(c|0))continue;break}}if(!e)break a;c=0;while(1){b=P(a,b);c=c+1|0;if((e|0)!=(c|0))continue;break}}return(P(d,g)+P(b+f|0,h)|0)+44|0}function XP(a,b){var c= +0,d=0,e=0,f=0,g=0,h=0;c=Dc(40);J[c>>2]=0;c=Hf(a+624|0,1,c,4);h=gc;a:{b:{while(1){if(d){g=-1;break a}J[699344]=0;g=ga(86,a|0,b|0,1)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;e=-1;c:{d:{if(!d)break d;f=J[699345];if(!f)break d;e=Pc(J[d>>2],c,h);if(!e)break c;gc=f}d=gc;if((e|0)==1)continue;break a}break}uc(c);nf(d,f);B()}a=Z()|0;uc(c);ba(a|0);B()}uc(c);return g}function Wya(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;h=h<<2; +while(1){f=f-1|0;g=e;while(1){a=K[i+7|0];J[b>>2]=a<<24|((P(a,K[i+1|0])+127&65535)>>>0)/255|((P(a,K[i+3|0])+127&65535)>>>0)/255<<8|((P(a,K[i+5|0])+127&65535)>>>0)/255<<16;b=b+4|0;i=c+i|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+h|0;if(f)continue;break}}}function Iyb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+536>>2]+88>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+644>>2];a:{b:{c:switch(K[a+2253|0]){case 0:case 4:break a;case 1:break c;default:break b}if(J[a+588>>2]<= +0)break b;while(1){H[b|0]=K[c|0]+K[b|0];c=c+1|0;b=b+1|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}xc(b,c,J[a+588>>2]);return 0}function F6a(a){a=a|0;var b=0,c=0,d=0;b=J[693078];if(b)kc[J[J[b>>2]+32>>2]](b);c=J[a+8>>2];d=a+12|0;if((c|0)!=(d|0))while(1){b=J[c+28>>2];if(b)kc[J[J[b>>2]+12>>2]](b)|0;b=J[c+4>>2];a:{if(b)while(1){c=b;b=J[b>>2];if(b)continue;break a}while(1){b=c;c=J[c+8>>2];if((b|0)!=J[c>>2])continue;break}}if((c|0)!=(d|0))continue;break}Hx(a+8|0,J[a+12>>2]);J[a+8>>2]=d;J[a+12>> +2]=0;J[a+16>>2]=0}function y$(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;J[c>>2]=13;g=J[b+8>>2];d=J[g+12>>2];a:{if(!d)break a;h=Gd(d,8);if((d|0)<=0)break a;while(1){f=Sc(g,e,c,0);O[(e<<3)+h>>3]=J[f>>2]==1?+J[f+8>>2]:O[f+8>>3];yc(c);e=e+1|0;if((e|0)!=(d|0))continue;break}}uJ(J[a+28>>2],h,d,J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3]);b=J[a+8>>2];kc[J[J[b>>2]+80>>2]](b,J[a+28>>2]);fc=c+16|0}function rZa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;f=J[a+104>>2];e=O[b+392>>3]*255; +a:{if(R(e)<2147483648){c=~~e;break a}c=-2147483648}c=(c|0)>0?c:0;J[d+12>>2]=(c|0)>=255?255:c;kc[J[J[f>>2]+152>>2]](f,d+12|0)|0;c=J[a+104>>2];e=O[b+392>>3]*255;b:{if(R(e)<2147483648){a=~~e;break b}a=-2147483648}a=(a|0)>0?a:0;J[d+8>>2]=(a|0)>=255?255:a;kc[J[J[c>>2]+168>>2]](c,d+8|0)|0;fc=d+16|0}function rIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[a>>2]=0;e=J[J[b>>2]+12>>2];J[699344]=0;f=e;e=d+4|0;ca(f|0,e|0,b|0,c|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[699344]=0;ga(4903,a| +0,e|0,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break b;if(H[d+15|0]<0)uc(J[d+4>>2]);fc=d+16|0;return}b=Z()|0;break a}b=Z()|0;if(H[d+15|0]>=0)break a;uc(J[d+4>>2])}mh(a);ba(b|0);B()}function hwb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a;b=1139;b:switch(K[a+336|0]-12|0){case 2:b=1140;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1;b=J[a+316>>2];J[a+588>>2]= +b;b=b+7>>3;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function gwb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a;b=1141;b:switch(K[a+336|0]-12|0){case 2:b=1142;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=2;J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>>2]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b+3>>2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function fwb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]| +K[a+337|0]!=8)break a;b=1143;b:switch(K[a+336|0]-12|0){case 2:b=1144;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b+1>>1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function ckb(a,b){a=a|0;b=b|0;var c=0,d=0;c=kc[J[a+516>>2]](a,1330851634,b,0)|0;a:{if(c)break a;d=a+372|0;c=Te(b,326144,d);if(c)break a;J[a+468>>2]=0;J[a+460>>2]= +0;J[a+464>>2]=0;J[a+452>>2]=0;J[a+456>>2]=0;I[a+472>>1]=65535;if(!L[a+372>>1])return 0;c=Te(b,326320,d);if(c)break a;if(L[d>>1]<2)return 0;c=Te(b,326336,d);if(c)break a;c=0;if(L[d>>1]<5)break a;c=Te(b,326368,d)}return c|0}function TMa(a){a=a|0;var b=0,c=0;a:{b:{if(J[a+12>>2]?J[a+8>>2]:1){b=J[a+3504>>2];c=-1;if((b|0)>=J[a+20>>2])break b;return J[(J[((J[a+3496>>2]<<2)+a|0)+3480>>2]+(P(b,J[a+32>>2])<<2)|0)+(J[a+3500>>2]<<2)>>2]}b=J[a+3472>>2];if((b|0)==J[a+3476>>2]){c=-1;if(J[a+20>>2]<=(J[a+28>>2]+J[a+ +3504>>2]|0))break b;if(!XI(a))break a;b=J[a+3472>>2]}c=K[b|0]}return c|0}J[a+3504>>2]=J[a+20>>2];return-1}function meb(a,b){a=a|0;b=b|0;var c=0,d=0;J[b+4>>2]=J[a+28>>2];J[b+8>>2]=J[a+32>>2];O[b+16>>3]=O[a+40>>3];H[b+24|0]=K[a+48|0];H[b+25|0]=K[a+49|0];H[b+26|0]=K[a+50|0];H[b+27|0]=K[a+51|0];c=J[b+28>>2];if(c){uc(c);J[b+28>>2]=0}c=J[a+56>>2];J[b+32>>2]=c;if(c){d=c<<3;c=vc(c>>>0>536870911?-1:d);J[b+28>>2]=c;xc(c,J[a+52>>2],d)}O[b+40>>3]=O[a- -64>>3];J[b+48>>2]=J[a+72>>2];O[b+56>>3]=O[a+80>>3]}function leb(a, +b){a=a|0;b=b|0;var c=0,d=0;J[a+28>>2]=J[b+4>>2];J[a+32>>2]=J[b+8>>2];O[a+40>>3]=O[b+16>>3];H[a+48|0]=K[b+24|0];H[a+49|0]=K[b+25|0];H[a+50|0]=K[b+26|0];H[a+51|0]=K[b+27|0];c=J[a+52>>2];if(c){uc(c);J[a+52>>2]=0}c=J[b+32>>2];J[a+56>>2]=c;if(c){d=c<<3;c=vc(c>>>0>536870911?-1:d);J[a+52>>2]=c;xc(c,J[b+28>>2],d)}O[a- -64>>3]=O[b+40>>3];J[a+72>>2]=J[b+48>>2];O[a+80>>3]=O[b+56>>3]}function jnb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+8>>2]=c;J[a+4>>2]=b;J[a+12>>2]=0;J[a+16>>2]=d;J[a>>2]=b;b=J[65271];J[a+20>>2]= +J[65270];J[a+24>>2]=b;b=J[65273];J[a+28>>2]=J[65272];J[a+32>>2]=b;b=J[65275];J[a+36>>2]=J[65274];J[a+40>>2]=b;b=J[65277];J[a+44>>2]=J[65276];J[a+48>>2]=b;b=J[65279];J[a+52>>2]=J[65278];J[a+56>>2]=b;b=J[65281];J[a+60>>2]=J[65280];J[a+64>>2]=b;J[a+68>>2]=J[65282]}function hL(){var a=0,b=0,c=0,d=0;a=fc-16|0;fc=a;a:{if(J[693362])break a;b=kc[J[663195]](200)|0;J[693362]=b;if(!b){J[a>>2]=38590;Hc(0,0,0,0,0,27,2,3,38590,0,0,0,32879,a);break a}qq(22406,3277,3277);c=2773452,d=qq(21452,3278,3279),J[c>>2]=d; +c=2773456,d=qq(21461,3280,3281),J[c>>2]=d;qq(22641,3278,3282);qq(28329,3283,3284);qq(21292,3285,3286);qq(21289,3285,3286);qq(21060,0,3287)}fc=a+16|0}function gAa(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(K[a+16|0])break a;b:{if(!pd(c,2388004,4))break b;if(!pd(c,2388248,2))break b;if(pd(c,2388876,2))break a}b=si();kc[J[J[b>>2]+32>>2]](b,a);H[a+16|0]=1;return}c:{d:{if(!pd(c,2389504,1))break d;if(!pd(c,2390161,2))break d;if(!pd(c,2390594,2))break d;if(!pd(c,2388876,2))break d;if(pd(c,2388248,2))break c}b=si(); +kc[J[J[b>>2]+28>>2]](b,a)}}function ZK(a,b,c){var d=0,e=0,f=0;if(!b)return a;if(!c)return a;if((c|0)>=0){if(!a){a=kc[J[663198]](c+1|0)|0;if(!a){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);return 0}a=xc(a,b,c);H[a+c|0]=0;return a}if(K[a|0]){d=a;while(1){f=f+1|0;e=K[d+1|0];d=d+1|0;if(e)continue;break}}e=c+f|0;d=kc[J[663200]](a,e+1|0)|0;if(!d){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);return a}xc(d+f|0,b,c);H[d+e|0]=0}return d}function YP(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Dc(40);J[c>>2]=0;c=Hf(a+624|0,1,c,4);h=gc; +a:{b:{while(1){if(d){g=-1;break a}J[699344]=0;g=aa(72,a|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break b;e=-1;c:{d:{if(!d)break d;f=J[699345];if(!f)break d;e=Pc(J[d>>2],c,h);if(!e)break c;gc=f}d=gc;if((e|0)==1)continue;break a}break}uc(c);nf(d,f);B()}a=Z()|0;uc(c);ba(a|0);B()}uc(c);return g}function Meb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=fc-16|0;fc=e;a:{b:{c:{d:{d=J[b>>2];switch(d-8|0){case 8:break c;case 0:break d;default:break b}}a=J[a+16>>2];if(!a)break a;H[a+2913|0]=J[c>>2]==1;break a}d= +J[a+12>>2];if(!d)break a;H[e+15|0]=J[c>>2]==1;kc[J[J[d>>2]+188>>2]](d,e+15|0);d=J[b>>2]}if((d|0)!=32)break a;a=J[a+16>>2];if(!a)break a;H[a+2948|0]=J[c>>2]==1}fc=e+16|0;return 0}function Eca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;c=J[a+584>>2];J[c+68>>2]=0;g=c- -64|0;a:{while(1){e=Wk(g,4);if(e>>>0<=1){b=J[c+80>>2];f=J[a+600>>2];if((b|0)!=(f|0)){J[a+608>>2]=f-b;pf(a);J[c+76>>2]=J[a+596>>2];J[c+80>>2]=J[a+600>>2]}b=1;if((e|0)!=1)continue;break a}break}b=J[a+628>>2];a=J[a>>2];J[d+4>>2]= +J[c+88>>2];J[d>>2]=a;Uc(b,98083,72488,d);b=0}fc=d+16|0;return b|0}function utb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+428>>2];e=K[b+32|0];H[d+8|0]=e;c=1;if((e|0)==3){H[d+9|0]=K[b+33|0];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+10|0]=c;H[d+11|0]=c>>>8;H[d+12|0]=c>>>16;H[d+13|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+14|0]=c;H[d+15|0]=c>>>8;H[d+16|0]=c>>>16;H[d+17|0]=c>>>24;c=10}return Ce(a,J[b>>2],c,d+8|0)|0}function usb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0, +e=0;if(J[c>>2]!=2052348020){Jc(a,2050,0,0);return 2050}e=J[c+32>>2];J[b+32>>2]=e;H[b+40|0]=K[c+40|0];d=J[c+44>>2];J[b+44>>2]=d;a:{if(e){d=kc[J[a+152>>2]](e)|0;J[b+36>>2]=d;if(!d)break a;xc(d,J[c+36>>2],J[b+32>>2]);d=J[b+44>>2]}if(d){d=kc[J[a+152>>2]](d)|0;J[b+48>>2]=d;if(!d)break a;xc(d,J[c+48>>2],J[b+44>>2])}return 0}Jc(a,1,0,0);return 1}function sj(){var a=0,b=0,c=0,d=0,e=0,f=0;a=Dc(12);if(a){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;b=Dc(64);if(b){J[a+4>>2]=16;J[a+8>>2]=b;return a}b=J[a>>2];if((b|0)>0)while(1){d= +J[a+8>>2];b=b-1|0;e=b<<2;c=J[d+e>>2];f=J[c>>2];J[c>>2]=f-1;if((f|0)<=1){kc[J[J[c+4>>2]>>2]](c);uc(c);d=J[a+8>>2];b=J[a>>2]-1|0}J[d+e>>2]=0;J[a>>2]=b;if((b|0)>0)continue;break}b=J[a+8>>2];if(b)uc(b);uc(a)}return 0}function ey(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(!a)return 35;c=J[a+96>>2];if(!c)return 35;d=J[a+128>>2];b=J[d+64>>2];J[d+64>>2]=b-1;if((b|0)<=1){b=J[c+16>>2];if(!b)return 35;e=c+16|0;d=J[c+8>>2];a:{while(1){if(J[b+8>>2]==(a|0))break a;b=J[b+4>>2];if(b)continue;break}return 35}f=J[b>> +2];g=f?f+4|0:e;e=J[b+4>>2];J[g>>2]=e;J[(e?e:c+20|0)>>2]=f;kc[J[d+8>>2]](d,b);Yu(d,a,c)}return 0}function dwb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a;b=1147;b:switch(K[a+336|0]-12|0){case 2:b=1148;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;b=J[a+316>>2];J[a+588>>2]=b;b=b<<1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function Hq(a,b){var c= +0,d=0,e=0,f=0,g=0,h=0,i=0;if(!(!a|!b)){d=I[a+2>>1];a:{if(!d){d=0;a=0;break a}c=J[a+4>>2];e=J[c+4>>2];f=J[c>>2];if((d|0)<2){d=e;a=f;break a}i=(d<<3)+c|0;h=c+8|0;a=f;d=e;while(1){g=J[c+12>>2];d=(d|0)<(g|0)?g:d;e=(e|0)>(g|0)?g:e;c=J[c+8>>2];a=(a|0)<(c|0)?c:a;f=(c|0)<(f|0)?c:f;c=h;h=c+8|0;if(i>>>0>h>>>0)continue;break}}J[b+8>>2]=a;J[b>>2]=f;J[b+12>>2]=d;J[b+4>>2]=e}}function kW(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;a:{if(J[a+8>>2]){ti(b+12|0,a,a+8|0);break a}J[b+12>>2]=0;vd(b+12|0,0)}b:{a=J[b+12>> +2];if(!a){c=300;break b}c=J[a+20>>2];J[699344]=0;J[b+12>>2]=0;d=J[a+4>>2]-1|0;J[a+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)!=1){if(d)break b;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break b}ea(0)|0;Bc();B()}fc=b+16|0;return c|0}function beb(a,b,c,d,e){a=a|0;b=+b;c=+c;d=+d;e=+e;var f=0,g=0,h=0,i=0;f=fc-32|0;fc=f;O[f+16>>3]=c;O[f+24>>3]=b;h=f+24|0;i=f+16|0;kc[J[J[a>>2]+316>>2]](a,h,i)|0;O[f+8>>3]=O[f+24>>3]+d;g=f+8|0;kc[J[J[a>>2]+320>>2]](a,g,i)|0;O[f+8>>3]=O[f+24>>3]+d;O[f>>3]=O[f+ +16>>3]+e;kc[J[J[a>>2]+320>>2]](a,g,f)|0;O[f+8>>3]=O[f+16>>3]+e;kc[J[J[a>>2]+320>>2]](a,h,g)|0;kc[J[J[a>>2]+340>>2]](a)|0;fc=f+32|0}function Uu(a,b,c){if(K[a+11664|0]){H[a+11665|0]=1;is(a,J[a+11736>>2],J[a+11740>>2]);if(K[a+11744|0])by(a,a+8|0,a+11704|0,J[a+11712>>2],J[a+11716>>2],1);H[a+11744|0]=0;I[a+11664>>1]=0}J[a+11720>>2]=b;J[a+11736>>2]=b;H[a+11667|0]=1;J[a+11740>>2]=c;J[a+11724>>2]=c;b=a+8|0;c=J[a+11676>>2];if(!(K[c+5|0]?0:K[a+20|0]))ay(b,J[a+11668>>2],J[a+11672>>2],c,J[a+11680>>2],0);xc(a+ +3876|0,b,3868)}function yA(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+32>>2];d=c;a:{b:{c:switch((b&3)-1|0){case 0:d=(c&4?2:1)^c^4;break b;case 1:d=c^3;break b;case 2:break c;default:break a}d=(c&4?1:2)^c^4}J[a+32>>2]=d}if((c^d)&4){J[a+44>>2]=0;J[a+48>>2]=1;J[a+36>>2]=0;J[a+40>>2]=1;e=a,f=AEb(J[a>>2],J[a+4>>2],32),J[e>>2]=f;J[a+4>>2]=jc;e=a,f=AEb(J[a+8>>2],J[a+12>>2],32),J[e+8>>2]=f;J[a+12>>2]=jc}}function elb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=J[b>>2]+1|0;if(c>>>0<=65535){h=b;d=J[a+16>> +2];a=K[d+6|0]<<8|K[d+7|0];c=a>>>0>>0?c:a;b=c-a|0;g=K[d+9|0]|K[d+8|0]<<8;e=0;a:{if(b>>>0>=g>>>0)break a;a=(d+(b<<1)|0)+10|0;while(1){f=K[a+1|0]|K[a|0]<<8;e=c;if(f)break a;if(c>>>0>65534)return 0;a=a+2|0;c=c+1|0;b=b+1|0;if(g>>>0>b>>>0)continue;break}f=0;e=0}J[h>>2]=e}return f|0}function ZJ(a,b){var c=0,d=0,e=0,f=0;d=J[a+4>>2];c=J[a+8>>2];e=J[b+8>>2];if((d|0)<(c+e|0)){f=J[a>>2];while(1){c=J[a+12>>2];c=((c|0)>0?c:d)+d|0;J[a+4>>2]=c;f=Wd(f,c,4);J[a>>2]=f;d=J[a+4>>2];c=J[a+8>>2];e=J[b+8>>2];if((d|0)< +(c+e|0))continue;break}}d=0;if((e|0)>0)while(1){f=J[J[b>>2]+(d<<2)>>2];e=c+1|0;J[a+8>>2]=e;J[J[a>>2]+(c<<2)>>2]=f;c=e;d=d+1|0;if((d|0)>2])continue;break}}function Ivb(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;var h=0,i=0,j=0;a:{if(f){if(!d)break a;a=c<<1;i=b<<1;while(1){b=K[e|0];h=K[f|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g|0]=b;b=K[e+1|0];h=K[f+1|0];if((b|0)!=(h|0))b=b+((P(h-b|0,i)+c|0)/(a|0)|0)|0;H[g+1|0]=b;f=f+2|0;e=e+2|0;g=g+2|0;j=j+1|0;if((j|0)!=(d|0))continue; +break}break a}xc(g,e,d<<1)}return 0}function Era(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2436864;J[699344]=0;$(5719,a|0);b=J[699344];J[699344]=0;a:{b:{if((b|0)!=1){J[a>>2]=2436896;b=J[a+8>>2];J[a+8>>2]=0;if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break b}break a}break a}uc(nd(a));return}ea(0)|0;Bc();B()}function zF(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=Dc(40);J[e>>2]=0;e=Hf(a+4|0,1,e,4); +h=gc;a=0;a:{b:{while(1){if(a)break a;J[699344]=0;ga(641,b|0,c|0,d|0)|0;a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;uc(e);ba(a|0);B()}f=-1;c:{d:{if(!a)break d;g=J[699345];if(!g)break d;f=Pc(J[a>>2],e,h);if(!f)break c;gc=g}a=gc;if((f|0)!=1)break b;continue}break}uc(e);nf(a,g);B()}i=1}uc(e);return i}function tjb(a){a=a|0;var b=0,c=0,d=0;b=J[a+196>>2];d=b+10|0;if(d>>>0<=M[a+200>>2]){c=K[b|0]|K[b+1|0]<<8;I[a+32>>1]=c<<8|c>>>8;c=K[b+2|0]|K[b+3|0]<<8;J[a+36>>2]=(c<<8|c>>>8)<<16>>16;c=K[b+4|0]|K[b+5|0]<< +8;J[a+40>>2]=(c<<8|c>>>8)<<16>>16;c=K[b+6|0]|K[b+7|0]<<8;J[a+44>>2]=(c<<8|c>>>8)<<16>>16;b=K[b+8|0]|K[b+9|0]<<8;J[a+196>>2]=d;J[a+48>>2]=(b<<8|b>>>8)<<16>>16;a=0}else a=20;return a|0}function Tsa(a,b){a=a|0;b=b|0;var c=0;b=fc-32|0;fc=b;a:{c=a+160|0;if(vj(a,0,262142,c)|vj(a,0,262142,c)){a=Qc(b+8|0,2391884,2386144,670,2433586,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}J[a+200>>2]=1;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+224>>2]=0;J[a+228>> +2]=0;H[a+49|0]=1;J[a+232>>2]=0;J[a+236>>2]=0;fc=b+32|0;return}B()}function Kn(a,b){var c=0,d=0,e=0,f=0;a:{if(b){if((b|0)>0)break a;return 0}fa(2351635,2350805,180,2352139);B()}c=J[a+12>>2];d=J[a+16>>2];while(1){e=b;b:{if(d)break b;c=c<<8&65280;J[a+12>>2]=c;d=(c|0)==65280?7:8;J[a+16>>2]=d;b=J[a+8>>2];if(b>>>0>=M[a+4>>2])break b;J[a+8>>2]=b+1;c=K[b|0]|c;J[a+12>>2]=c}d=d-1|0;J[a+16>>2]=d;b=e-1|0;f=(c>>>d&1)<>>0>1)continue;break}return f}function GP(a,b){var c=0,d=0;a:{if(K[b|0])while(1){c= +J[a+8>>2];if(c&7)return-1;d=J[a+64>>2];if(!((d|0)<0|(d|0)>J[a+60>>2])){J[a+8>>2]=c|4;return-1}J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;b:{if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=K[b|0];d=J[a+24>>2];J[a+24>>2]=d+1;H[d|0]=c;break b}c=-1;if((bd(a,K[b|0])|0)==-1)break a}c=K[b+1|0];b=b+1|0;if(c)continue;break}c=0}return c}function xwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1117;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1118;if(K[a+2272|0])break a}b=1119}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8; +J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2]+7>>>3|0;J[a+588>>2]=b;J[a+608>>2]=J[a+616>>2]+b;J[a+604>>2]=b+7>>>3;return Of(a)|0}function wcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);g=K[a+2|0];e=255-e|0;h=b;b=f^255;H[a+2|0]=(P(g,e)+P(h,b+g|0)|0)+255>>>8;f=K[a+1|0]; +H[a+1|0]=(P(f,e)+P(b+f|0,c)|0)+255>>>8;c=a;a=K[a|0];H[c|0]=(P(a,e)+P(a+b|0,d)|0)+255>>>8}}function qGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+4>>2];if(!d)break a;if(d>>>0>=4){e=d&-4;a=0;while(1){H[b|0]=K[c|0]+K[b|0];H[b+1|0]=K[c+1|0]+K[b+1|0];H[b+2|0]=K[c+2|0]+K[b+2|0];H[b+3|0]=K[c+3|0]+K[b+3|0];b=b+4|0;c=c+4|0;a=a+4|0;if((e|0)!=(a|0))continue;break}}d=d&3;if(!d)break a;a=0;while(1){H[b|0]=K[c|0]+K[b|0];b=b+1|0;c=c+1|0;a=a+1|0;if((d|0)!=(a|0))continue;break}}}function cyb(a,b){a=a|0;b=b|0; +var c=0,d=0,e=0,f=0,g=0;a:{if(!tp(b))break a;e=J[a+16>>2];if((e|0)!=J[b+16>>2])break a;d=J[a+20>>2];if((d|0)!=J[b+20>>2])break a;c=J[a+964>>2];if(!c){c=Dc(P(d,e));J[a+964>>2]=c}f=J[b+56>>2];if(!f|!c)break a;g=1;if((d|0)<=0)break a;d=0;while(1){c=xc(c,f,e);f=J[b+52>>2]+f|0;e=J[a+16>>2];c=c+e|0;d=d+1|0;if((d|0)>2])continue;break}}return g|0}function Um(a,b,c,d,e){var f=0,g=0,h=0,i=0;f=fc-32|0;fc=f;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;g=J[a>>2];h=0;b:{if(!g)break b; +h=0;if(J[g+108>>2]!=-554844497)break b;h=J[g+124>>2]}g=J[a+112>>2];i=J[a+108>>2];J[f+20>>2]=e;J[f+16>>2]=d;Hc(h,g,i,a,0,4,b,2,d,e,0,0,c,f+16|0);J[a+100>>2]=0;break a}J[f+4>>2]=e;J[f>>2]=d;Hc(0,0,0,0,0,4,b,2,d,e,0,0,c,f)}fc=f+32|0}function Lwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1096;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1097;if(K[a+2272|0])break a}b=1098}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1; +H[a+648|0]=0;b=J[a+316>>2]+7>>>3|0;J[a+588>>2]=b;J[a+608>>2]=J[a+616>>2]+b;J[a+604>>2]=b+7>>>3;return Of(a)|0}function KX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b>>2];a:{b:{c:{d:{e:{if(K[b+8|0]){if(!c)break e;c=J[c>>2]}if(c)break d}H[a+11|0]=0;break c}d=bf(c);if(d>>>0>=1073741808)break b;f:{if(d>>>0<=1){H[a+11|0]=d;break f}b=d|3;if(b>>>0>=1073741823)break a;e=b+1|0;b=vc(e<<2);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=d;a=b}b=a;a=d<<2;a=cd(b,c,a)+a|0}J[a>>2]=0;return}_d(a);B()}Pd();B()}function Gab(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;a:{if((d|0)<=0)break a;g=J[a+112>>2];if(!g)break a;j=J[J[a+480>>2]+24>>2];while(1){a=J[(e<<2)+b>>2];c=g;while(1){h=(J[(K[a|0]>>>1&124)+j>>2]+(K[a+1|0]<<4&4032)|0)+(K[a+2|0]>>>2&62)|0;i=L[h>>1];f=i+1|0;I[h>>1]=(f|0)!=(f&65535)?i:f;a=a+3|0;c=c-1|0;if(c)continue;break}e=e+1|0;if((e|0)!=(d|0))continue;break}}}function mnb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;c=J[a>>2];a:{if(!c)break a;f=J[a+32>>2];b=he(f,J[a+4>>2],d+12|0);J[a>> +2]=b;if(J[d+12>>2])break a;xc(b,c,J[a+4>>2]);e=J[a+16>>2];if((e|0)>0){h=J[a>>2]-c|0;b=J[a+24>>2];e=b+(e<<2)|0;while(1){g=J[b>>2];if(g)J[b>>2]=h+g;b=b+4|0;if(e>>>0>b>>>0)continue;break}}J[a+8>>2]=J[a+4>>2];if(c)kc[J[f+8>>2]](f,c)}fc=d+16|0}function iTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;c=J[a+28>>2];e=J[c+596>>2];if(!(J[e+28>>2]>0|J[e>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,828410,0);return}d=O[b+24>>3]; +a=J[b+24>>2];g=J[b+16>>2];f=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];O[c+600>>3]=f;d=(g|0)==1?+(a|0):d;O[c+608>>3]=d;re(e,f,d)}function V6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=fc-16|0;fc=f;a:{if(b){e=vc(32);J[699344]=0;J[e+12>>2]=0;J[e+16>>2]=0;J[e+4>>2]=1;J[e+8>>2]=8;J[e>>2]=351116;J[e+20>>2]=0;J[e+24>>2]=0;H[e+28|0]=0;g=J[699344];J[699344]=0;if((g|0)==1)break a;J[a+20>>2]=e;J[f+12>>2]=c;J[f+8>>2]=d;J[f+4>>2]=0-(c<<2);yi(e,b,f+12|0,f+8|0,f+4|0,0)}fc=f+16|0;return}a=Z()|0;uc(e);ba(a|0);B()} +function NTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=O[b+24>>3];f=J[b+24>>2];g=J[b+16>>2];c=J[a+28>>2];e=O[c+616>>3]+(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3]);O[c+616>>3]=e;d=(g|0)==1?+(f|0):d;O[c+576>>3]=-d;d=d+O[c+624>>3];O[c+624>>3]=d;O[c+600>>3]=O[c+536>>3]+(O[c+504>>3]*e+d*O[c+520>>3]);O[c+608>>3]=O[c+544>>3]+(O[c+512>>3]*e+d*O[c+528>>3]);a=J[a+8>>2];kc[J[J[a>>2]+184>>2]](a,c)}function Eja(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=fc-16|0;fc=g;e=J[b>>2];a:{if(!e|!c)break a;d= +a?d:0;while(1){f=Az(d>>>0<4?g+12|0:a,J[e>>2],0);if((f|0)==-1){h=-1;break a}if(a){if(d>>>0<=3){if(d>>>0>>0)break a;xc(a,g+12|0,f)}d=d-f|0;a=a+f|0}else a=0;if(!J[e>>2]){e=0;break a}h=f+h|0;e=e+4|0;c=c-1|0;if(c)continue;break}}if(a)J[b>>2]=e;fc=g+16|0;return h|0}function rwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1126;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1127;if(K[a+2272|0])break a}b=1128}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>> +2]=1;J[a+596>>2]=0;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+608>>2]=b+J[a+616>>2];b=b+7>>>3|0;J[a+604>>2]=b;J[a+588>>2]=b;return Of(a)|0}function n2(a,b,c,d,e,f){var g=0,h=0;h=fc-32|0;fc=h;a:{if(!a){a=0;J[h>>2]=0;Hc(0,0,0,0,0,2,521,2,0,0,0,0,21065,h);break a}g=J[a+48>>2];if(!g){a=0;J[h+16>>2]=0;Hc(0,0,0,0,0,2,522,2,0,0,0,0,2991,h+16|0);break a}a=m2(g,b,c,d,e,f);if(!a){a=0;break a}J[a+20>>2]=g;J[a+32>>2]=J[g+32>>2];b=J[g+16>>2];b:{if(!b){J[g+12>>2]=a;break b}J[b+24>>2]=a;J[a+28>>2]=b}J[g+16>>2]= +a}fc=h+32|0;return a}function l2(a,b,c,d,e,f){var g=0,h=0;h=fc-32|0;fc=h;a:{if(!a){a=0;J[h>>2]=0;Hc(0,0,0,0,0,2,521,2,0,0,0,0,21099,h);break a}g=J[a+44>>2];if(!g){a=0;J[h+16>>2]=0;Hc(0,0,0,0,0,2,522,2,0,0,0,0,3078,h+16|0);break a}a=m2(g,b,c,d,e,f);if(!a){a=0;break a}J[a+20>>2]=g;J[a+32>>2]=J[g+32>>2];b=J[g+16>>2];b:{if(!b){J[g+12>>2]=a;break b}J[b+24>>2]=a;J[a+28>>2]=b}J[g+16>>2]=a}fc=h+32|0;return a}function dqb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+4>>2];J[a+2748>>2]=b;c=J[b+28>>2];J[a+4>> +2]=J[b+44>>2];J[a+8>>2]=J[b+48>>2];J[a+12>>2]=J[b+9848>>2];J[a+16>>2]=J[b+9852>>2];d=J[b+24>>2];f=d&-3;c=!(H[e+12|0]&1)&(f|0)!=1?c:c|1;J[a+2740>>2]=K[J[J[b+36>>2]+388>>2]+20|0]?c:c|8;c=a;a=(d&-2)==2;b=a|2;e=(d|0)==4?b:a;a=(d|0)==2;b=a?b:e;b=(f|0)==1?b:b|4;J[c+2744>>2]=a?b|8:b;return 0}function WP(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=Dc(40);J[b>>2]=0;b=Hf(a+624|0,1,b,4);g=gc;a:{b:{while(1){if(c){f=-1;break a}J[699344]=0;f=_(87,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;d=-1;c:{d:{if(!c)break d; +e=J[699345];if(!e)break d;d=Pc(J[c>>2],b,g);if(!d)break c;gc=e}c=gc;if((d|0)==1)continue;break a}break}uc(b);nf(c,e);B()}a=Z()|0;uc(b);ba(a|0);B()}uc(b);return f}function Ro(a,b){var c=0,d=0,e=0;if(Ic(b,779363)){c=J[a>>2];if(!Ic(b,780531)){a:{b:{if((c|0)<=1){d=J[a+4>>2];break b}b=c-2|0;d=J[a+4>>2];while(1){if(K[b+d|0]!=47){e=(b|0)>0;b=b-1|0;if(e)continue;break b}break}if(b)break a}if(K[d|0]==47){Sm(a,1,c-1|0);return a}Rh(a);od(a,780531);return a}Sm(a,b,c-b|0);return a}if(!(K[(J[a+4>>2]+c|0)-1|0]== +47|(c|0)<=0))Kd(a,47);od(a,b)}return a}function Fwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1105;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1106;if(K[a+2272|0])break a}b=1107}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=8;J[a+572>>2]=0;J[a+576>>2]=8;H[a+568|0]=0;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+608>>2]=b+J[a+616>>2];b=b+7>>>3|0;J[a+604>>2]=b;J[a+588>>2]=b;return Of(a)|0}function DBb(a){a=a|0;var b=0,c=0,d=0;b=J[J[a+40>>2]+16>>2];a=J[a+52>>2];kc[J[J[a>> +2]+20>>2]](a,2)|0;a:{if((b|0)<=0)break a;if((b|0)!=1){d=b&-2;while(1){kc[J[J[a>>2]+20>>2]](a,2)|0;kc[J[J[a>>2]+20>>2]](a,2)|0;kc[J[J[a>>2]+20>>2]](a,2)|0;kc[J[J[a>>2]+20>>2]](a,2)|0;c=c+2|0;if((d|0)!=(c|0))continue;break}}if(!(b&1))break a;kc[J[J[a>>2]+20>>2]](a,2)|0;kc[J[J[a>>2]+20>>2]](a,2)|0}}function ywb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1117;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1118;if(K[a+2272|0])break a}b=1119}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+ +568|0]=255;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+7>>3;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function wwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1120;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1121;if(K[a+2272|0])break a}b=1122}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=2;J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+3>>2;J[a+604>> +2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function uwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1123;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1124;if(K[a+2272|0])break a}b=1125}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+1>>1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function sv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e; +J[e+12>>2]=c;if(c){if(K[a+11|0]>>>7|0)g=J[a+4>>2];else g=K[a+11|0]&127;if(K[a+11|0]>>>7|0)c=J[a>>2];else c=a;f=g-b|0;J[e+8>>2]=f;d=fc-16|0;fc=d;fc=d+16|0;d=e+8|0;h=e+12|0;d=J[(M[d>>2]>2]?d:h)>>2];J[e+12>>2]=d;if((d|0)!=(f|0)){b=(b<<2)+c|0;tn(b,b+(d<<2)|0,f-d|0);f=J[e+12>>2]}tv(a,c,g-f|0)}fc=e+16|0}function lcb(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>> +8);e=f+(f^255)|0;H[a|0]=(P(e,d)+P(K[a|0],255-(d<<1)|0)|0)+255>>>8;d=K[a+2|0];H[a+2|0]=(P(d,255)+P(e-(d<<1)|0,b)|0)+255>>>8;b=a;a=K[a+1|0];H[b+1|0]=(P(a,255)+P(e-(a<<1)|0,c)|0)+255>>>8}}function l9(a){var b=0,c=0,d=0,e=0,f=0;if(!a)return 0;b=J[a+12>>2];c=J[a+8>>2];a:{if((b|c)<0)break a;d=J[a+4>>2];b:{e=J[a>>2];if((e|0)>=0)break b;c=c+e|0;e=0;if((c|0)>0)break b;return 0}c:{if((d|0)>=0)break c;b=b+d|0;d=0;if((b|0)>0)break c;return 0}a=kd(1,20);if(!a)break a;J[a+4>>2]=d;J[a>>2]=e;if((c|0)!=-1)J[a+8>> +2]=c;if((b|0)!=-1)J[a+12>>2]=b;J[a+16>>2]=1;f=a}return f}function jSa(a){a=a|0;var b=0;b=vc(120);J[b>>2]=2217884;J[b+4>>2]=15;J[b+8>>2]=0;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+48>>3]=O[a+48>>3];O[b+56>>3]=O[a+56>>3];O[b+64>>3]=O[a+64>>3];O[b+72>>3]=O[a+72>>3];O[b+80>>3]=O[a+80>>3];O[b+88>>3]=O[a+88>>3];O[b+96>>3]=O[a+96>>3];O[b+104>>3]=O[a+104>>3];O[b+112>>3]=O[a+112>>3];return b|0}function ewb(a){a=a|0;var b=0;a:{if(!J[a+536>>2]|K[a+337|0]!=8)break a; +b=1145;b:switch(K[a+336|0]-12|0){case 2:b=1146;break;case 0:break b;default:break a}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;b=J[a+316>>2];J[a+604>>2]=b;J[a+588>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function Sxb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){d=J[a+644>>2];c=d;while(1){b=K[c|0]|K[c+1|0]<<8;H[d|0]=((b<<8|b>>>8)&65535)>>>8;b=K[c+2|0]|K[c+3|0]<<8;H[d+1|0]=((b<<8|b>>>8)&65535)>>> +8;b=K[c+4|0]|K[c+5|0]<<8;H[d+2|0]=((b<<8|b>>>8)&65535)>>>8;b=K[c+6|0]|K[c+7|0]<<8;H[d+3|0]=((b<<8|b>>>8)&65535)>>>8;c=c+8|0;d=d+4|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Ptb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=J[b+32>>2];e=(c+J[b+40>>2]|0)+1|0;b:{if(e>>>0<=M[a+424>>2]){d=J[a+428>>2]+8|0;break b}d=kc[J[a+152>>2]](e)|0;if(!d)break a;c=J[b+32>>2]}f=d;if(c)f=xc(d,J[b+36>>2],c)+J[b+32>>2]|0;H[f|0]=0;c=J[b+40>>2];if(c)xc(f+1|0,J[b+44>>2],c);b=Ce(a,J[b>>2],e,d);if(M[a+424>> +2]>>0)kc[J[a+156>>2]](d,e);return b|0}Jc(a,1,0,0);return 1}function Nwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1096;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1097;if(K[a+2272|0])break a}b=1098}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=3;J[a+592>>2]=1;J[a+596>>2]=7;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+7>>3;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function Kwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1099; +if(J[a+536>>2]){a:{if(K[a+288|0]){b=1100;if(K[a+2272|0])break a}b=1101}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=2;J[a+592>>2]=1;J[a+596>>2]=3;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b+3>>2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function Krb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1347439700){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];a=J[c+36>>2];J[b+36>>2]=a;if(a){a=0;while(1){d=P(a,5);e=d+b|0;d= +c+d|0;H[e+44|0]=K[d+44|0];d=K[d+40|0]|K[d+41|0]<<8|(K[d+42|0]<<16|K[d+43|0]<<24);H[e+40|0]=d;H[e+41|0]=d>>>8;H[e+42|0]=d>>>16;H[e+43|0]=d>>>24;a=a+1|0;if(a>>>0>2])continue;break}}return 0}function Iwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1102;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1103;if(K[a+2272|0])break a}b=1104}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=1;J[a+592>>2]=1;J[a+596>>2]=1;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+ +588>>2]=b;b=b+1>>1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function Cwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1111;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1112;if(K[a+2272|0])break a}b=1113}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=3;J[a+596>>2]=0;J[a+652>>2]=3;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=P(b,3);J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function Awb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+ +988>>2]=1114;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1115;if(K[a+2272|0])break a}b=1116}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=6;J[a+596>>2]=0;J[a+652>>2]=6;H[a+648|0]=1;b=J[a+316>>2];J[a+588>>2]=b;b=P(b,6);J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function $ka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>0){a=J[a+12>>2];while(1){g=c;c=L[a>>1];e=c&32767;f=0;a:{if(!e)break a;d=Np((+(e>>>0)+.5)*.0027076061740622863+ +-44.3614195558365);d=c<<16>>16<0?-d:d;f=0;if(d<=0)break a;e=d>=1;d=Y(d)*256;b:{if(R(d)<2147483648){c=~~d;break b}c=-2147483648}f=e?255:c}e=f;a=a+2|0;c=g-1|0;H[b|0]=e;b=b+1|0;if(g>>>0>1)continue;break}}}function $G(a){a=a|0;var b=0,c=0,d=0;Zz(a);b=J[a+2788>>2];d=a+2792|0;if((b|0)!=(d|0))while(1){c=J[b+20>>2];if(c)kc[J[J[c>>2]+4>>2]](c);c=J[b+4>>2];a:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break a}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}qr(a+2788| +0,J[a+2792>>2]);J[a+2788>>2]=d;J[a+2792>>2]=0;J[a+2796>>2]=0;Xz(a+1928|0)}function aQ(a,b,c){var d=0,e=0,f=0,g=0,h=0;d=Dc(40);J[d>>2]=0;d=Hf(a+4|0,1,d,4);g=gc;a=0;a:{b:{while(1){if(a)break a;J[699344]=0;ga(86,b|0,c|0,1)|0;a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;uc(d);ba(a|0);B()}e=-1;c:{d:{if(!a)break d;f=J[699345];if(!f)break d;e=Pc(J[a>>2],d,g);if(!e)break c;gc=f}a=gc;if((e|0)!=1)break b;continue}break}uc(d);nf(a,f);B()}h=1}uc(d);return h}function ZGa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0; +fc=c;if(!(!J[a+12>>2]|(!J[a+4>>2]|!J[a+8>>2]))){J[c+12>>2]=0;kc[J[J[b>>2]+16>>2]](b,c+12|0)|0;a:{if(J[c+12>>2]==1){b=b-4|0;kc[J[J[b>>2]+264>>2]](b,J[a+4>>2],J[a+8>>2],J[a+12>>2])|0;J[c>>2]=0;J[c+4>>2]=0;break a}kc[J[J[b>>2]+136>>2]](b,2382780)|0;kc[J[J[b>>2]+228>>2]](b,J[a+4>>2],J[a+8>>2],J[a+12>>2])|0}d=1}fc=c+16|0;return d|0}function SW(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=fc-16|0;fc=c;a:{b:{d=K[b+2|0];c:{if((d-13&255)>>>0<244)break c;e=K[b+3|0];if((e-32&255)>>>0<225)break c;f=K[b+4|0];if(f>>>0>23)break c; +g=K[b+6|0];if(g>>>0<61)break b}fd(a,63314);break a}h=L[b>>1];H[c+13|0]=f;H[c+12|0]=e;H[c+11|0]=d;H[c+10|0]=h;H[c+9|0]=h>>>8;b=K[b+5|0];H[c+15|0]=g;H[c+14|0]=b;di(a,1950960965,c+9|0,7)}fc=c+16|0}function tza(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){c=L[a+26>>1];d=P(g,c);h=h<<2;while(1){f=f-1|0;g=e;while(1){a=K[i+3|0];J[b>>2]=a<<24|((P(a,K[i|0])+127&65535)>>>0)/255|((P(a,K[i+1|0])+127&65535)>>>0)/255<<8|((P(a,K[i+2|0])+127&65535)>>>0)/255<<16;i=c+i|0;b=b+ +4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+h|0;if(f)continue;break}}}function st(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=J[b>>2];d=J[c>>2];f=(d|0)<(f|0)?f:d;J[a>>2]=f;d=J[b+8>>2];e=J[c+8>>2];d=(d|0)<(e|0)?d:e;J[a+8>>2]=d;e=J[b+4>>2];g=J[c+4>>2];e=(e|0)>(g|0)?e:g;J[a+4>>2]=e;b=J[b+12>>2];c=J[c+12>>2];c=(b|0)<(c|0)?b:c;J[a+12>>2]=c;a:{if((d|0)>(f|0)){b=1;if((c|0)>(e|0))break a}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;b=0}return b|0}function qwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>> +2]=1129;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1130;if(K[a+2272|0])break a}b=1131}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b<<1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function paa(a){var b=0,c=0,d=0,e=0;a:{b:{if(K[a+460|0]|!K[a+496|0])break b;b=J[a+560>>2];d=J[a+564>>2];if(b>>>0>=d>>>0)break b;c=J[a+552>>2];e=J[a+556>>2];if(c>>>0>=e>>>0)break b; +if(!(kc[J[a+232>>2]](a,c,b,e-c|0,d-b|0)|0)){Jc(a,904,0,0);return 904}H[a+502|0]=0;J[a+560>>2]=0;J[a+564>>2]=0;J[a+552>>2]=0;J[a+556>>2]=0;if(K[a+500|0])break b;a=SE(a);if(a)break a}a=0}return a}function owb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1132;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1133;if(K[a+2272|0])break a}b=1134}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=4;J[a+596>>2]=0;J[a+652>>2]=4;H[a+648|0]=1;b=J[a+316>>2];J[a+588>> +2]=b;b=b<<2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function nTa(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+28>>2];c=J[b+596>>2];if(!(J[c+28>>2]>0|J[c>>2])){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(1,b,830583,0);return}gg(c);a=J[b+596>>2];a=J[(J[a+24>>2]+(J[a+28>>2]<<2)|0)-4>>2];c=J[a+12>>2]<<3;O[b+600>>3]=O[(c+J[a>>2]|0)-8>>3];O[b+608>>3]=O[(c+J[a+4>>2]|0)-8>>3]}function mwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]= +1135;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1136;if(K[a+2272|0])break a}b=1021}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=4;J[a+596>>2]=0;J[a+652>>2]=4;H[a+648|0]=0;b=J[a+316>>2];J[a+588>>2]=b;b=b<<2;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function kwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1137;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1138;if(K[a+2272|0])break a}b=1020}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>> +2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=8;J[a+596>>2]=0;J[a+652>>2]=8;H[a+648|0]=1;b=J[a+316>>2];J[a+588>>2]=b;b=b<<3;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function Ewb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1108;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1109;if(K[a+2272|0])break a}b=1110}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=2;J[a+596>>2]=0;J[a+652>>2]=2;H[a+648|0]=1;b=J[a+316>>2];J[a+588>> +2]=b;b=b<<1;J[a+604>>2]=b;J[a+608>>2]=b+J[a+616>>2];return Of(a)|0}function Ai(a,b,c){var d=0,e=0,f=0;if((c|0)<=0)return 0;a:{while(1){d=J[a+8>>2];if(d&7)break a;f=J[a+64>>2];if(!((f|0)<0|J[a+60>>2]<(f|0))){J[a+8>>2]=d|4;return e}d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;d=J[a+24>>2];J[a+24>>2]=d+1;d=K[d|0];break b}d=td(a,1);if((d|0)==-1)break a}H[b|0]=d;b=b+1|0;e=e+1|0;if((e|0)!=(c|0))continue;break}e=c}return e}function Agb(a){a=a|0;var b=0,c=0;b=J[a+20>>2];a:{b:{if(b-205>>> +0<=1){if(!J[a+64>>2])break b;kc[J[J[a+440>>2]+4>>2]](a);J[a+20>>2]=208;break a}if((b|0)==208)break a}c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}c:{while(1){if(J[a+144>>2]>J[a+152>>2])break c;b=J[a+456>>2];if(J[b+20>>2])break c;if(kc[J[b>>2]](a)|0)continue;break}return 0}J[a+20>>2]=207;return 1}function $U(a,b){a=a|0;b=b|0;var c=0,d=0;b=J[b>>2];d=J[(b?b+12|0:2743576)>>2];b=K[d|0];a:{if(!b)break a;c=d;while(1){b:{b=b&255;if(b-48>>>0<10|(b|32)-97>>>0<26)break b;c:switch(b-43|0){case 0:case 2:case 3:break b; +case 15:break c;default:break a}if(K[c+1|0]!=47|K[c+2|0]!=47)break a;DH(a,d,c-d|0);return}b=K[c+1|0];c=c+1|0;if(b)continue;break}}J[a>>2]=0;J[a+4>>2]=J[685894]}function szb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;b=J[a+636>>2]+J[a+616>>2]|0;while(1){d=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);H[c|0]=d;H[c+1|0]=d>>>8;H[c+2|0]=d>>>16;H[c+3|0]=d>>>24;b=b+4|0;c=(J[a+584>>2]<<2)+c|0;e=e+1|0;if((e|0)< +J[a+588>>2])continue;break}}return 0}function kGa(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;e=J[a+4>>2];a=K[c|0];d=a+K[b|0]|0;H[b|0]=d;if((e|0)>=2){l=b+e|0;b=b+1|0;while(1){h=d&255;d=h-a|0;f=d>>31;e=K[c+1|0];g=e-a|0;i=g>>31;j=d+g|0;k=j>>31;m=a;a=(d^f)-f|0;d=(g^i)-i|0;f=a>>>0>>0;d=K[b|0]+((k^j)-k>>>0<(f?a:d)>>>0?m:f?e:h)|0;H[b|0]=d;c=c+1|0;a=e;b=b+1|0;if(l>>>0>b>>>0)continue;break}}}function era(a,b,c,d,e,f,g,h,i){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; +a=YU(a,b,c,d,e,1,f,g,h,i);if(!a)return 0;b=J[a+16>>2];J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;uc(Yg(a));return b|0}function Xe(a,b,c){var d=0,e=0,f=0;d=fc-32|0;fc=d;a:{if(!(!a|!J[a+212>>2])&J[a+172>>2]==-1)break a;e=14431;f=b-1|0;if(f>>>0<=109)e=J[(f<<2)+775780>>2];if(a)J[a+84>>2]=b;b:{if(!c){J[d>>2]=e;Hc(0,0,0,a,0,1,b,3,0, +0,0,0,32906,d);break b}J[d+20>>2]=c;J[d+16>>2]=e;Hc(0,0,0,a,0,1,b,3,c,0,0,0,32777,d+16|0)}if(!a)break a;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}fc=d+32|0}function VP(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Dc(40);J[c>>2]=0;c=Hf(a+624|0,1,c,4);g=gc;a:{b:{while(1){if(d)break a;J[699344]=0;ca(98,a|0,b|0,0);d=J[699344];J[699344]=0;if((d|0)==1){a=Z()|0;uc(c);ba(a|0);B()}e=-1;c:{d:{if(!d)break d;f=J[699345];if(!f)break d;e=Pc(J[d>>2],c,g);if(!e)break c;gc=f}d=gc;if((e|0)!=1)break b;continue}break}uc(c); +nf(d,f);B()}h=1}uc(c);return h}function U9(a,b){a=a|0;b=b|0;var c=0,d=0;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;d=J[a+428>>2];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;c=J[b+40>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+12|0]=c;H[d+13|0]=c>>>8;H[d+14|0]=c>>>16;H[d+15|0]=c>>>24;H[d+16|0]=K[b+44|0];return Ce(a,J[b>>2],9,d+8|0)|0}function FY(a){J[a+28>>2]=2371632;J[a+100>>2]=2371632;J[a+96>>2]=2371632;J[a+92>>2]=2371632; +J[a+88>>2]=2371632;J[a+84>>2]=2371632;J[a+80>>2]=2371632;J[a+76>>2]=2371632;J[a+72>>2]=2371632;J[a+68>>2]=2371632;J[a- -64>>2]=2371632;J[a+60>>2]=2371632;J[a+56>>2]=2371632;J[a+52>>2]=2371632;J[a+48>>2]=2371632;J[a+44>>2]=2371632;J[a+40>>2]=2371632;J[a+36>>2]=2371632;J[a+32>>2]=2371632}function xsa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b&7;b:{if(!d){c=b;break b}c=b;while(1){J[a+4>>2]=0;a=a+12|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue;break}}if(b>>>0<8)break a;while(1){J[a+4>> +2]=0;J[a+88>>2]=0;J[a+76>>2]=0;J[a- -64>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;a=a+96|0;b=c-9|0;c=c-8|0;if(b>>>0<4294967294)continue;break}}}function fSa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;kc[J[J[a>>2]+20>>2]](a,b,e+4|0,d);a=65536-J[e+12>>2]|0;a=(a|0)>=65536?65536:a;b=(a|0)>0?a:0;a=65536-J[e+8>>2]|0;a=(a|0)>=65536?65536:a;d=(a|0)>0?a:0;a=65536-J[e+4>>2]|0;a=(a|0)>=65536?65536:a;f=(a|0)>0?a:0;a=d>>>0>>0?d:f;a=a>>>0>b>>>0?b:a;J[c+12>>2]=a;J[c+8>>2]=b-a; +J[c+4>>2]=d-a;J[c>>2]=f-a;fc=e+16|0}function dE(a,b){var c=0,d=0,e=0,f=0,g=0;if(a){d=J[a+4>>2];a:{if(!d)break a;c=J[a+20>>2];if((d|0)!=1){g=d&-2;while(1){e=J[c>>2];if(e)kc[J[b+8>>2]](b,e);J[c>>2]=0;e=J[c+4>>2];if(e)kc[J[b+8>>2]](b,e);J[c+4>>2]=0;c=c+8|0;f=f+2|0;if((g|0)!=(f|0))continue;break}}if(!(d&1))break a;d=J[c>>2];if(d)kc[J[b+8>>2]](b,d);J[c>>2]=0}c=J[a+20>>2];if(c)kc[J[b+8>>2]](b,c);J[a+20>>2]=0}}function Ysb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=J[b+960>>2];a:{if(!e)break a;c=J[a+16>>2]; +if((c|0)!=J[b+16>>2])break a;d=J[a+20>>2];if((d|0)!=J[b+20>>2])break a;d=P(c,d);c=J[a+960>>2];if(!c){c=Dc(d);J[a+960>>2]=c;if(!c)break a;e=J[b+960>>2]}xc(c,e,d);c=J[b+384>>2];J[a+380>>2]=J[b+380>>2];J[a+384>>2]=c;c=J[b+376>>2];J[a+372>>2]=J[b+372>>2];J[a+376>>2]=c;f=1}return f|0}function SFa(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;g=J[a+4>>2];if(g){a=fc-16|0;fc=a;g=J[g+12>>2];if(!g){J[c>>2]=0;J[c+4>>2]=0;J[d>>2]=0;J[d+4>>2]=0;J[e>>2]=0;J[e+4>>2]=1079508992;J[f>>2]=0;J[f+4>>2]= +1079508992}J[a+12>>2]=0;J[a+8>>2]=0;J[a+4>>2]=0;LA(g,b,a+12|0,a+8|0,a+4|0);O[c>>3]=J[a+12>>2];O[d>>3]=J[a+8>>2];h=+J[a+4>>2];O[e>>3]=h;O[f>>3]=h;fc=a+16|0}}function Gra(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2436864;J[699344]=0;$(5719,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)a:{J[a>>2]=2436896;b=J[a+8>>2];J[a+8>>2]=0;b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}return nd(a)| +0}ea(0)|0;Bc();B()}function F8(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;J[b>>2]=0;a:{if(!a)break a;d=J[a+8>>2];if(!d)break a;e=J[J[a>>2]>>2];while(1){g=J[J[a>>2]+(f<<2)>>2];h=K[g|0];if(h){while(1){H[c+e|0]=h;c=c+1|0;h=K[g+1|0];g=g+1|0;if(h)continue;break}d=J[a+8>>2]}f=f+1|0;if(f>>>0>>0){H[c+e|0]=32;d=J[a+8>>2];c=c+1|0}if(d>>>0>f>>>0)continue;break}if((e|0)!=254785)H[c+e|0]=0;J[b>>2]=c}return e}function vV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=fc-32|0;fc=e;d=-1;a:{b:{if((c|0)>=0)break b;c=J[a+8>>2]+c| +0;if((c|0)>=0)break b;a=Qc(e+8|0,2393824,2385973,1748,2426309,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}if(!(!b|!K[b|0]|J[a+8>>2]<=(c|0))){d=J[a+12>>2]+c|0;a=WS(d,b);d=a?a+(c-d|0)|0:-1}fc=e+32|0;return d|0}B()}function vF(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=Dc(40);J[c>>2]=0;c=Hf(a+624|0,1,c,4);g=gc;a:{b:{while(1){if(d)break a;J[699344]=0;da(97,a|0,b|0);d=J[699344];J[699344]=0;if((d|0)==1){a=Z()|0;uc(c);ba(a|0);B()}e=-1;c:{d:{if(!d)break d;f=J[699345]; +if(!f)break d;e=Pc(J[d>>2],c,g);if(!e)break c;gc=f}d=gc;if((e|0)!=1)break b;continue}break}uc(c);nf(d,f);B()}h=1}uc(c);return h}function q9a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=Q(0),e=0,f=Q(0),g=Q(0),h=Q(0),i=Q(0),j=Q(0);e=J[a+176>>2];f=N[e+20>>2];d=b;b=N[e+16>>2];g=Q(d-b);d=Q(N[e+12>>2]-f);h=Q(N[e>>2]-b);i=Q(b-N[e+8>>2]);j=N[e+4>>2];b=Q(Q(d*h)+Q(i*Q(j-f)));c=Q(c-f);d=Q(Q(Q(d*g)+Q(c*i))/b);b=Q(Q(Q(Q(f-j)*g)+Q(c*h))/b);a=J[a+200>>2];return Q(Q(Q(Q(Q(Q(1)-d)-b)*N[a+8>>2])+Q(Q(d*N[a>>2])+Q(N[a+4>>2]*b))))} +function oQ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=fc-16|0;fc=f;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;a:{if(d-e>>>0>=c>>>0){if(!c)break a;if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;Ik(d+(e<<2)|0,b,c);b=c+e|0;kl(a,b);J[f+12>>2]=0;J[d+(b<<2)>>2]=J[f+12>>2];break a}Ks(a,d,(c-d|0)+e|0,e,e,0,c,b)}fc=f+16|0;return a|0}function grb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;H[a+24|0]=0;d=J[a+4>>2];a:{if(!d)break a;c=J[a+16>>2];e=J[a+20>>2];b:{if((c| +0)<(e|0))break b;f=e;e=c+1|0;if(f>>>0>=e>>>0)break b;c=(e&-65536)+65536|0;d=fe(d,c);J[a+20>>2]=c;H[a+12|0]=1;J[a+4>>2]=d;if(!d)break a;c=J[a+16>>2]}g=1;J[a+16>>2]=c+1;H[c+d|0]=b;b=J[a+16>>2];if((b|0)<=J[a+8>>2])break a;J[a+8>>2]=b}return g|0}function UY(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;J[a+160>>2]=b;d=J[a+72>>2];a:{if(!d)break a;f=J[d+24>>2];if(!f)break a;e=J[a+12>>2];if(!e|!J[e+5584>>2])break a;e=J[d+16>>2];if(!e)return 1;d=0;while(1){if(M[(J[J[a+12>>2]+5584>>2]+P(d,1080)|0)+4>>2]<=b>>> +0){Nc(c,1,2363275,0);return 0}J[(P(d,52)+f|0)+40>>2]=b;g=1;d=d+1|0;if((e|0)!=(d|0))continue;break}}return g|0}function Pp(a,b){var c=0;a:{if(!b)break a;if(b&1){c=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=c;c=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=c;a=a+4|0;c=b-1|0}else c=b;if((b|0)==1)break a;while(1){b=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=b;b=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=b;b=K[a+7|0];H[a+7|0]=K[a+4|0];H[a+4|0]=b;b=K[a+6|0];H[a+6|0]=K[a+5|0];H[a+5|0]=b;a=a+8|0;c=c-2|0;if(c)continue;break}}}function Msa(a,b, +c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=fc-32|0;fc=f;g=vj(a,-262143,262142,a+188|0);a=vj(a,-262143,262142,a+192|0);a:{b:{c=c+g|0;if(c>>>0<=65535){a=a+d|0;if(a>>>0<65536)break b}a=Qc(f+8|0,2394816,2386144,802,2433953,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}bw(b,a,c,e);fc=f+32|0;return}B()}function Cn(a){var b=0,c=0,d=0;d=fc-32|0;fc=d;a:{if(!J[a+72>>2])break a;c=J[a+68>>2];if(!c)break a;b=vEb(L[a+84>>1],0,c,0);if(jc){b=J[a>>2];c=J[a+ +628>>2];J[d+16>>2]=72535;Uc(c,b,74135,d+16|0);b=0}b:{if(L[a+138>>1]!=1)break b;c=L[a+98>>1];b=vEb(c,0,b,0);if(!c|!jc)break b;b=J[a>>2];a=J[a+628>>2];J[d>>2]=72535;Uc(a,b,74135,d);b=0}b=(b>>>3|0)+((b&7)!=0)|0}fc=d+32|0;return b}function rEb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+12>>2]=0;J[a+16>>2]=0;a:{b:{if(cf(b,a+12|0))break b;d=Dc(J[a+12>>2]<<2);J[a+16>>2]=d;if(!d)return-1;if(J[a+12>>2]){d=0;while(1){if(ak(b,J[a+16>>2]+(d<<2)|0))break b;d=d+1|0;e=J[a+12>>2];if(d>>>0>>0)continue;break}b=(e<< +1)+4|0}else b=4;d=0;if((b|0)==(c|0))break a}d=-1;a=J[a+16>>2];if(!a)break a;uc(a)}return d|0}function kmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=!a|J[a>>2]!=1381173770?d:J[a+4>>2];I[d+32>>1]=24;J[d+24>>2]=c;J[d+20>>2]=b;e=P(b,24)+31>>>3&536870908;J[d+28>>2]=e;if(K[a+86|0]){J[d+40>>2]=0;H[d+46|0]=K[a+81|0];H[d+45|0]=K[a+83|0];H[d+44|0]=K[a+85|0]}f=d,g=Dc(P(c,e)),J[f+4>>2]=g;if(!(!a|J[a>>2]!=1381173770))J[a+52>>2]=20480;f=d,g=Dc(P(b,c)),J[f+8>>2]=g;return 1}function eXa(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0,f=0;Fe(b,12);zd(b,J[a+20>>2]);zd(b,(J[a+28>>2]-J[a+24>>2]|0)/12|0);c=J[a+24>>2];if((c|0)!=J[a+28>>2])while(1){c=P(d,12)+c|0;e=K[c+11|0];f=e<<24>>24<0;lf(b,f?J[c>>2]:c,f?J[c+4>>2]:e);d=d+1|0;c=J[a+24>>2];if(d>>>0<(J[a+28>>2]-c|0)/12>>>0)continue;break}if(J[a+16>>2]){Fe(b,1);a=J[a+16>>2];kc[J[J[a>>2]+8>>2]](a,b);return}Fe(b,0)}function XDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b&7;b:{if(!d){c=b;break b}c=b;while(1){J[a+8>>2]=0;a=a+12|0;c=c-1|0;e=e+1|0;if((d|0)!=(e|0))continue; +break}}if(b>>>0<8)break a;while(1){J[a+8>>2]=0;J[a+92>>2]=0;J[a+80>>2]=0;J[a+68>>2]=0;J[a+56>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+20>>2]=0;a=a+96|0;b=c-9|0;c=c-8|0;if(b>>>0<4294967294)continue;break}}}function Gd(a,b){a=a|0;b=b|0;var c=0;c=fc-48|0;fc=c;a:{b:{c:{d:{if(!a){a=0;break d}if((a|0)<0|(b|0)<=0|2147483647/(b>>>0)>>>0<=a>>>0)break c;a=P(a,b);if((a|0)<0)break b;a=Dc(a);if(!a)break a}fc=c+48|0;return a|0}J[c>>2]=778829;md(J[655074],780797,c);ya(1);B()}J[c+16>>2]=776705;md(J[655074],780797,c+16| +0);ya(1);B()}J[c+32>>2]=777393;md(J[655074],780797,c+32|0);ya(1);B()}function nxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){e=J[a+2300>>2];d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=K[d|0];if(!((c|0)==L[e+836>>1]?K[e+56|0]:0)){H[b+6|0]=255;H[b+7|0]=255}f=kc[J[a+2296>>2]](c)|0;c=f>>>8|0;H[b+4|0]=c;H[b+2|0]=c;H[b|0]=c;c=(f|0)!=0;H[b+5|0]=c;H[b+3|0]=c;H[b+1|0]=c;b=b+8|0;d=d+1|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function gP(a){var b=0,c=0,d=0,e=0;b=J[a+48>>2];if(b){if(J[a+ +44>>2]){while(1){c=J[b+4>>2];if(c){d=0;if(J[b>>2]){while(1){fP(c);c=c- -64|0;d=d+1|0;if(d>>>0>2])continue;break}c=J[b+4>>2]}uc(c)}c=J[b+8>>2];if(c)mg(c);c=J[b+20>>2];if(c)uc(c);b=b+716|0;e=e+1|0;if(e>>>0>2])continue;break}b=J[a+48>>2]}uc(b)}b=J[a+40>>2];if(b)uc(b);b=J[a+32>>2];if(b)eF(b);uc(a)}function WDb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=J[a+72>>2];g=J[a+60>>2];h=K[a+13|0];c=1;d=K[a+12|0];a:{if(!d)break a;a=K[a+52|0];e=d&7;if(d>>>0>=8){i=d&248;while(1){c=P(a,P(a,P(a,P(a, +P(a,P(a,P(a,P(a,c))))))));b=b+8|0;if((i|0)!=(b|0))continue;break}}if(!e)break a;b=0;while(1){c=P(a,c);b=b+1|0;if((e|0)!=(b|0))continue;break}}return(P(c+f|0,h)+P(d,g)<<1)+44|0}function NCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;d=K[a+16|0];e=K[a+28|0];f=J[a+12>>2];J[c+28>>2]=J[a+20>>2];J[c+24>>2]=e;J[c+20>>2]=d;J[c+16>>2]=f;md(b,209933,c+16|0);if(J[a+20>>2]>0){d=0;while(1){e=J[J[a+24>>2]+(d<<2)>>2];J[c+8>>2]=d;J[c>>2]=d;J[c+12>>2]=e&2047;J[c+4>>2]=e>>>11;md(b,209862,c);d=d+1|0;if((d| +0)>2])continue;break}}fc=c+32|0;return 0}function IOa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=bj(J[a+28>>2],b);b=fc-16|0;fc=b;J[b>>2]=13;d=vc(8);c=J[a+4>>2];J[699344]=0;c=ha(3372,a+16|0,c|0,b|0,0)|0;e=J[699344];J[699344]=0;a:{b:{if((e|0)==1)break b;a=J[J[J[a>>2]+28>>2]+56>>2];J[699344]=0;a=ga(3640,d|0,c|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break b;yc(b);fc=b+16|0;break a}a=Z()|0;uc(d);ba(a|0);B()}return a|0}function qo(a,b){var c=0,d=0,e=0;a:{c=L[a+1148>>1];if(!c){if(!ek(a))return 0;c= +L[a+1148>>1];if(!c)break a}d=J[a+1152>>2];e=K[d|0];I[a+1148>>1]=c-1;c=d+1|0;J[a+1152>>2]=c;I[b>>1]=e<<8;d=L[a+1148>>1];if(!d){if(!ek(a))return 0;d=L[a+1148>>1];if(!d)break a;c=J[a+1152>>2]}e=K[c|0];I[a+1148>>1]=d-1;J[a+1152>>2]=c+1;I[b>>1]=e|L[b>>1];return 1}fa(80397,70472,1949,96717);B()}function mma(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+60>>2];d=J[a+56>>2];if((c|0)!=(d|0))while(1){c=c-8|0;b=J[c+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((c|0)!=(d| +0))continue;break}J[a+60>>2]=d;b=J[a+80>>2];J[a+76>>2]=0;J[a+80>>2]=0;b:{if(!b)break b;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}}function fXa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;Fe(b,9);Fe(b,K[a+20|0]);zd(b,(J[a+28>>2]-J[a+24>>2]|0)/12|0);c=J[a+24>>2];if((c|0)!=J[a+28>>2])while(1){c=P(d,12)+c|0;e=K[c+11|0];f=e<<24>>24<0;lf(b,f?J[c>>2]:c,f?J[c+4>>2]:e);d=d+1|0;c=J[a+24>>2];if(d>>>0<(J[a+28>>2]-c|0)/12>>>0)continue;break}if(J[a+16>>2]){Fe(b,1);a=J[a+16>>2];kc[J[J[a>>2]+8>> +2]](a,b);return}Fe(b,0)}function UP(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=Dc(40);J[b>>2]=0;b=Hf(a+624|0,1,b,4);f=gc;a:{b:{while(1){if(c)break a;J[699344]=0;da(101,a|0,0);c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;uc(b);ba(a|0);B()}d=-1;c:{d:{if(!c)break d;e=J[699345];if(!e)break d;d=Pc(J[c>>2],b,f);if(!d)break c;gc=e}c=gc;if((d|0)!=1)break b;continue}break}uc(b);nf(c,e);B()}g=1}uc(b);return g}function UE(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=L[a+26>>1];if((e|0)==8){H[(J[a+56>>2]+P(J[a+52>> +2],c)|0)+b|0]=d;return}a=(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,e)>>3)|0;a:switch(e-1|0){case 3:c=a;e=K[a|0];a=4-((b|0)%2<<2)&252;H[c|0]=e&(15<>1]=(c|0)==2?H[b+12|0]:0;c=gf(a,d,2);I[b+6>>1]=(c|0)==2?H[b+12|0]:0;c=gf(a,b+12|0,2);I[b+8>>1]=(c|0)==2?H[b+12|0]: +0;a=gf(a,b+12|0,2);I[b+10>>1]=(a|0)==2?H[b+12|0]:0;a=KE(d,(g|0)==2?(f<<8|f>>>8)<<16>>16:0,e);fc=b+16|0;return a?16777215:J[b+12>>2]}function zq(a){var b=0,c=0,d=0,e=0,f=0;e=J[a>>2];if(e){b=e;d=J[a+4>>2];if((b|0)!=(d|0)){while(1){b=d;d=b-144|0;c=J[d+140>>2];a:{if(!c)break a;f=J[c+4>>2];J[c+4>>2]=f-1;if(f)break a;kc[J[J[c>>2]+8>>2]](c);Gc(c)}b=J[b-76>>2];b:{if(!b)break b;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((e|0)!=(d|0))continue;break}b=J[a>>2]}J[a+4>>2]=e;uc(b)}}function yH(a){a= +a|0;var b=0,c=0,d=0;J[a>>2]=2433320;b=J[a+3312>>2];J[a+3312>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}J[a>>2]=2433388;Hd(a+120|0);Hd(a+96|0);Hd(a+72|0);hd(a+40|0);hd(a+28|0);hd(a+16|0);return a|0}function swb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1126;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1127;if(K[a+2272|0])break a}b=1128}J[a+984>>2]=b}J[a+ +580>>2]=0;J[a+584>>2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+604>>2]=b;J[a+588>>2]=b;J[a+608>>2]=J[a+616>>2]+b;return Of(a)|0}function Wib(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;d=I[a+298>>1];e=P(d,b>>16);b=P(d,b&65535);d=e<<16;f=b+d|0;a=I[a+300>>1];g=P(a,c&65535);c=P(a,c>>16);h=c<<16;a=g+h|0;i=f+a|0;c=((((((e>>16)+(b>>31)|0)+(g>>31)|0)+(c>>16)|0)+(d>>>0>f>>>0)|0)+(a>>>0>>0)|0)+(a>>>0>i>>> +0)|0;b=c>>31;a=i+b|0;return((b+c|0)+(a>>>0>>0)|0)+(a>>>0>4294959103)<<18|a- -8192>>>14}function Vib(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;d=I[a+294>>1];e=P(d,b>>16);b=P(d,b&65535);d=e<<16;f=b+d|0;a=I[a+296>>1];g=P(a,c&65535);c=P(a,c>>16);h=c<<16;a=g+h|0;i=f+a|0;c=((((((e>>16)+(b>>31)|0)+(g>>31)|0)+(c>>16)|0)+(d>>>0>f>>>0)|0)+(a>>>0>>0)|0)+(a>>>0>i>>>0)|0;b=c>>31;a=i+b|0;return((b+c|0)+(a>>>0>>0)|0)+(a>>>0>4294959103)<<18|a- -8192>>>14}function Lea(a,b,c){a=a|0;b=b|0;c=c|0; +var d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;J[e+12>>2]=c;if(c){if(K[a+11|0]>>>7|0)g=J[a+4>>2];else g=K[a+11|0]&127;if(K[a+11|0]>>>7|0)c=J[a>>2];else c=a;f=g-b|0;J[e+8>>2]=f;d=fc-16|0;fc=d;fc=d+16|0;d=e+8|0;h=e+12|0;d=J[(M[d>>2]>2]?d:h)>>2];J[e+12>>2]=d;if((d|0)!=(f|0)){b=b+c|0;un(b,b+d|0,f-d|0);f=J[e+12>>2]}vv(a,c,g-f|0)}fc=e+16|0}function Gwb(a){a=a|0;var b=0;if(J[a+968>>2])J[a+988>>2]=1105;if(J[a+536>>2]){a:{if(K[a+288|0]){b=1106;if(K[a+2272|0])break a}b=1107}J[a+984>>2]=b}J[a+580>>2]=0;J[a+584>> +2]=1;J[a+572>>2]=0;J[a+576>>2]=1;H[a+568|0]=255;J[a+600>>2]=0;J[a+592>>2]=1;J[a+596>>2]=0;J[a+652>>2]=1;H[a+648|0]=0;b=J[a+316>>2];J[a+604>>2]=b;J[a+588>>2]=b;J[a+608>>2]=J[a+616>>2]+b;return Of(a)|0}function Bj(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;d=O[b+32>>3];e=O[b>>3];f=O[b+16>>3];h=O[a>>3];i=O[a+8>>3];c=O[b+24>>3];O[a+8>>3]=h*O[b+8>>3]+i*c;j=O[a+16>>3];k=O[b+8>>3];g=c;c=O[a+24>>3];O[a+24>>3]=j*k+g*c;m=O[b+40>>3];n=O[b+24>>3];g=d;d=O[a+32>>3];l=O[a+40>>3];O[a+32>>3]=g+(e*d+ +f*l);O[a+16>>3]=j*e+f*c;O[a>>3]=h*e+i*f;O[a+40>>3]=m+(d*k+l*n);return a}function xba(a){var b=0,c=0,d=0;b=J[a+28>>2];if(b){if(J[a+24>>2]){while(1){c=J[b+4>>2];if(c)uc(c);c=J[b+20>>2];if(c)Pf(c);c=J[b+24>>2];if(c)aF(c);c=J[b+28>>2];if(c)mg(c);c=J[b+32>>2];if(c)mg(c);b=b+60|0;d=d+1|0;if(d>>>0>2])continue;break}b=J[a+28>>2]}uc(b)}b=J[a+32>>2];if(b)no(b);b=J[a+36>>2];if(b)no(b);b=J[a+44>>2];if(b)no(b);a=J[a+48>>2];if(a)no(a)}function nz(a,b){a=a|0;b=b|0;var c=0,d=0;b=!J[a+24>>2]|b;J[a+16>>2]= +b;if(b&J[a+20>>2]){c=fc-16|0;fc=c;b=Hk(16);a=fc-16|0;fc=a;if(!K[2797388])H[2797388]=1;J[a+12>>2]=2744032;J[a+8>>2]=1;d=J[a+12>>2];c=c+8|0;J[c>>2]=J[a+8>>2];J[c+4>>2]=d;fc=a+16|0;J[699344]=0;ga(6813,b|0,5597,c|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){xa(b|0,2629500,6814);B()}a=Z()|0;Bp(b);ba(a|0);B()}}function l8(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=a+c|0;g=f>>31;h=b+d|0;i=h>>31;e=c;c=c>>31;c=(e^c)-c|0;e=d;d=d>>31;d=(e^d)-d|0;e=a;a=a>>31;a=(e^a)-a|0;e=b;b=b>>31;b=(e^b)-b|0;c=(P(c>>>0>>0?c:d,3)>>> +3|0)+(c>>>0>d>>>0?c:d)+((P(a>>>0>>0?a:b,3)>>>3|0)+(a>>>0>b>>>0?a:b))|0;a=(g^f)-g|0;b=(i^h)-i|0;a=(P(a>>>0>>0?a:b,3)>>>3|0)+(a>>>0>b>>>0?a:b)|0;return(c-a|0)<(a>>>4|0)}function isb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1145390665){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];H[b+34|0]=K[c+34|0];H[b+35|0]=K[c+35|0];H[b+36|0]=K[c+36|0];H[b+37|0]=K[c+37|0];H[b+38|0]=K[c+38|0];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];H[b+48|0]=K[c+48|0];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=J[c+56>>2];J[b+60>>2]= +J[c+60>>2];J[b+64>>2]=J[c+64>>2];return 0}function hmb(a){a=a|0;var b=0;b=J[a+8>>2];Ac(a+16|0,0,84);J[a+136>>2]=1681;J[a+132>>2]=1682;J[a+128>>2]=1683;J[a+124>>2]=1684;J[a+120>>2]=1685;J[a+116>>2]=1686;J[a+108>>2]=1687;J[a+104>>2]=1688;J[a+100>>2]=1689;J[a+12>>2]=b;J[a+164>>2]=1681;J[a+160>>2]=1690;J[a+156>>2]=1691;J[a+152>>2]=1692;J[a+148>>2]=1685;J[a+144>>2]=1693;b=a+12|0;J[a+112>>2]=b;J[a+140>>2]=b;return 0}function _Da(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0)while(1){id(a+52|0);J[a+40>>2]=2392964; +J[a+16>>2]=2392932;c=J[a+44>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+44>>2]=0}J[a+32>>2]=2392964;c=J[a+36>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+36>>2]=0}wc(a+24|0);a=a+68|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function SA(a,b,c,d){var e=0,f=0;a:{if((d-c|0)>=257){f=SA(a,b,c,(P(c,6)+(d<<1)|0)/8|0);e=SA(a,b,(P(d,3)+P(c,5)|0)/8|0,(P(d,5)+P(c,3)|0)/8|0);a=SA(a,b,(P(d,6)+(c<<1)|0)/8|0,d);break a}e=J[a+8>>2];a=K[J[e+(d<<2)>>2]+b|0];f=K[J[e+ +(c<<2)>>2]+b|0];e=K[J[e+((c+d|0)/2<<2)>>2]+b|0]}c=e&255;b=f&255;a=a&255;d=a>>>0>>0?b:a;a=a>>>0>b>>>0?b:a;return a>>>0>>0?c>>>0>>0?c:d:a}function FL(a){a=a|0;var b=0,c=0;a:{c=J[a+8>>2];if(!c)break a;b=J[c>>2];if(b)Oe(b);b=J[c+4>>2];if(b)Oe(b);b=J[c+8>>2];if(b)Oe(b);b=J[c+12>>2];if(b)Oe(b);b=J[c+16>>2];if(b)Oe(b);b=J[c+20>>2];if(b)Oe(b);b=J[c+24>>2];if(b)Oe(b);b=J[c+28>>2];if(b)Oe(b);b=J[c+32>>2];if(b)Oe(b);b=J[c+36>>2];if(b)Oe(b);Yr(J[c+40>>2]);if(K[a+34|0])break a;Nf(J[a+8>>2]);J[a+8>>2]= +0}}function ke(a,b,c){var d=0,e=0,f=0;d=fc-32|0;fc=d;J[d+28>>2]=c;e=kt(a,b);a:{if(!e){c=J[a+628>>2];J[d>>2]=J[a>>2];J[d+8>>2]=b;J[d+4>>2]=b>>>0>65535?72810:73438;Uc(c,71733,72006,d);break a}if(!(K[e+14|0]|(!(K[a+12|0]&64)|(b|0)==257))){b=J[a+628>>2];a=J[a>>2];J[d+20>>2]=J[e+16>>2];J[d+16>>2]=a;Uc(b,71733,73531,d+16|0);break a}f=kc[J[a+668>>2]](a,b,c)|0}fc=d+32|0;return f}function Qha(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;e=fc-16|0;fc=e;f=J[a+4>>2];d=J[c>>2]-J[a>>2]|0;a:{if(d>>>0<2147483647){d= +d<<1;break a}d=-1}d=d>>>0<=1?1:d;h=J[b>>2];i=J[a>>2];g=fe((f|0)!=6891?J[a>>2]:0,d);if(g){if((f|0)!=6891)J[a>>2]=0;J[e+4>>2]=1617;f=Bg(e+8|0,g,e+4|0);oR(a,f);Ie(f);J[b>>2]=J[a>>2]+(h-i|0);J[c>>2]=d+J[a>>2];fc=e+16|0;return}SF();B()}function L1(a){var b=0,c=0,d=0,e=0,f=0;e=1;b=J[a>>2];d=K[b|0];a:{if((d-48&255)>>>0>9)break a;f=a;a=K[b+1|0];c=b+1|0;b:{if((a-48&255)>>>0>9)break b;if((d|0)==48)break a;c=b+2|0;if((K[b+2|0]-48&255)>>>0>9)break b;c:switch(d-49|0){case 0:c=b+3|0;break b;case 1:break c;default:break a}b= +b+3|0;c=b;if(a>>>0<=52)break b;if((a|0)!=53)break a;c=b}J[f>>2]=c;e=0}return e}function tF(a){var b=0;b=J[a+584>>2];if(b){if(!Bn(a,197488,1)){Uc(J[a+628>>2],197456,70910,0);return}J[b+44>>2]=J[a+672>>2];J[a+672>>2]=701;J[b+48>>2]=J[a+668>>2];J[a+668>>2]=702;J[b+52>>2]=J[a+676>>2];J[a+676>>2]=703;J[b+56>>2]=J[a+516>>2];J[a+516>>2]=704;J[b+60>>2]=J[a+524>>2];J[a+524>>2]=705;J[b+40>>2]=0;J[b+24>>2]=0;J[b>>2]=1;return}fa(69724,70404,677,197456);B()}function Up(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0; +e=fc-32|0;fc=e;a:{b:{if(!c)break b;while(1){d=kc[J[J[a>>2]+8>>2]](a,b,c)|0;if((d|0)<0){a=Qc(e+8|0,um(J[698583]),2387108,413,2396533,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}if(!d)break b;b=b+d|0;f=d+f|0;c=c-d|0;if(c)continue;break}}fc=e+32|0;return f|0}B()}function UPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;J[a+8>>2]=13;J[d>>2]=13;e=a+8|0;J[e+8>>2]=c;J[e>>2]=8;c=vc(20);J[699344]=0;J[c>>2]=b;J[c+12>>2]=0;J[c+16>>2]=1;J[c+4>>2]=0; +J[c+8>>2]=0;b=J[699344];J[699344]=0;if((b|0)!=1){J[a>>2]=c;hg(c,Pe(e,d));J[a+24>>2]=1;J[a+4>>2]=0;b=J[a+16>>2];kc[J[J[b>>2]+20>>2]](b);fc=d+16|0;return a|0}a=Z()|0;uc(c);ba(a|0);B()}function QYa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=fc-16|0;fc=f;if(!K[a+229|0]){g=J[a+104>>2];J[f+12>>2]=32;h=f+12|0;kc[J[J[g>>2]+308>>2]](g,h)|0;g=J[a+104>>2];J[f+12>>2]=e;kc[J[J[g>>2]+412>>2]](g,h)|0;rk(a,c,O[b+104>>3],d,0);b=J[a+104>>2];J[f+12>>2]=4;kc[J[J[b>>2]+312>>2]](b,h)|0;a=J[a+104>>2];J[f+ +12>>2]=32;kc[J[J[a>>2]+312>>2]](a,h)|0}fc=f+16|0}function vsb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1950701684){Jc(a,2050,0,0);return 2050}e=J[c+32>>2];J[b+32>>2]=e;d=J[c+40>>2];J[b+40>>2]=d;a:{if(e){d=kc[J[a+152>>2]](e)|0;J[b+36>>2]=d;if(!d)break a;xc(d,J[c+36>>2],J[b+32>>2]);d=J[b+40>>2]}if(d){d=kc[J[a+152>>2]](d)|0;J[b+44>>2]=d;if(!d)break a;xc(d,J[c+44>>2],J[b+40>>2])}return 0}Jc(a,1,0,0);return 1}function u4(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+88>>2]=-1;J[a+80>>2]=0;J[a+ +84>>2]=0;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a>>2]=0;J[a+4>>2]=0;J[a+72>>2]=0;J[a+76>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=1072693248;J[a+56>>2]=0;J[a+60>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;return a|0}function jR(a,b,c){var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=fc-32|0;fc=d;MQ(d+24|0,a,b);iG(d+16|0,J[d+24>>2],J[d+28>>2],c);g=J[d+16>>2];b=fc-16|0;fc=b;J[b+12>>2]=a;a=fc-16|0;fc=a;f=b+12|0;J[a+12>>2]=J[f>>2];fc=a+16|0;a=ez(f, +g-J[a+12>>2]>>2);fc=b+16|0;J[d+12>>2]=a;J[d+8>>2]=(J[d+20>>2]-c|0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];fc=d+32|0;fc=e+16|0;return J[e+12>>2]}function Me(a){var b=0,c=0,d=0;d=fc-16|0;fc=d;A(+a);c=v(1)|0;v(0)|0;c=c&2147483647;a:{if(c>>>0<=1072243195){b=1;if(c>>>0<1044816030)break a;b=Gv(a,0);break a}b=a-a;if(c>>>0>=2146435072)break a;c=LG(a,d);a=O[d+8>>3];b=O[d>>3];b:switch(c&3){case 0:b=Gv(b,a);break a;case 1:b=-Fv(b,a,1);break a;case 2:b=-Gv(b,a);break a;default:break b}b=Fv(b,a,1)}fc=d+16| +0;return b}function Esa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2433320;b=J[a+3312>>2];J[a+3312>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}J[a>>2]=2433388;Hd(a+120|0);Hd(a+96|0);Hd(a+72|0);hd(a+40|0);hd(a+28|0);hd(a+16|0);uc(a)}function Cfa(a){a=a|0;if(K[2797728])return J[699431];if(!K[2798072])H[2798072]=1;zf(2797904,1563);zf(2797916,1570);zf(2797928, +1536);zf(2797940,1544);zf(2797952,1527);zf(2797964,1577);zf(2797976,1554);zf(2797988,6355);zf(2798E3,6996);zf(2798012,13476);zf(2798024,17376);zf(2798036,1791);zf(2798048,10622);zf(2798060,3757);H[2797728]=1;J[699431]=2797904;return 2797904}function rR(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;e=fc-16|0;fc=e;f=J[a+4>>2];d=J[c>>2]-J[a>>2]|0;a:{if(d>>>0<2147483647){d=d<<1;break a}d=-1}d=d?d:4;h=J[b>>2];i=J[a>>2];g=fe((f|0)!=6891?J[a>>2]:0,d);if(g){if((f|0)!=6891)J[a>>2]=0;J[e+4>>2]=1617; +f=Bg(e+8|0,g,e+4|0);oR(a,f);Ie(f);J[b>>2]=J[a>>2]+(h-i|0);J[c>>2]=J[a>>2]+(d&-4);fc=e+16|0;return}SF();B()}function kR(a,b,c){var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=fc-32|0;fc=d;MQ(d+24|0,a,b);iG(d+16|0,J[d+24>>2],J[d+28>>2],c);g=J[d+16>>2];b=fc-16|0;fc=b;J[b+12>>2]=a;a=fc-16|0;fc=a;f=b+12|0;J[a+12>>2]=J[f>>2];fc=a+16|0;a=fz(f,g-J[a+12>>2]|0);fc=b+16|0;J[d+12>>2]=a;J[d+8>>2]=(J[d+20>>2]-c|0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];fc=d+32|0;fc=e+16|0;return J[e+12>>2]}function f7(a){a=a|0;var b= +0;J[a>>2]=47992;b=J[a+984>>2];if(b)uc(b);b=J[a+988>>2];if(b)uc(b);a:{if(J[a+976>>2]){J[699344]=0;_(218,a+976|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a>>2]=1032;J[699344]=0;_(13,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;_(14,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;return a|0}ea(0)|0;Bc();B()}function hO(a,b){var c=0,d=0,e=0;a:{if(!a|!b|(a|0)==(b|0))break a;d=J[b>>2];c=J[b+4>>2];if(!((d|0)!=J[a>>2]|(c|0)!=J[a+4>>2])&J[b+8>>2]==J[a+8>>2])break a;e=J[b+12>>2]; +b=J[b+8>>2];J[a+4>>2]=(c|0)>0?c:0;J[a>>2]=(d|0)>0?d:0;if((b|0)>0)J[a+8>>2]=b;J[a+12>>2]=e;b=J[a+40>>2];if(b){kc[J[663154]](b);J[a+40>>2]=0}b=kc[J[663153]](P(c,e)<<2)|0;if(!b)return;J[a+40>>2]=b}}function XNa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;c=fc-16|0;fc=c;J[c>>2]=13;Pe(a+8|0,c);b=vc(48);f=J[c+8>>2];g=J[c+12>>2];d=J[a+32>>2];e=J[a+28>>2];a=J[a+24>>2];h=J[c>>2];i=J[c+4>>2];J[b>>2]=2343116;J[b+24>>2]=a;J[b+28>>2]=e;J[b+32>>2]=d;J[b+44>>2]=0;J[b+16>>2]=f;J[b+20>>2]=g;J[b+8>>2]=h;J[b+12>>2]= +i;a=a+e|0;J[b+40>>2]=a;J[b+36>>2]=a+d;fc=c+16|0;return b|0}function JTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=O[b+24>>3];f=J[b+24>>2];g=J[b+16>>2];c=J[a+28>>2];e=O[c+616>>3]+(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3]);O[c+616>>3]=e;d=O[c+624>>3]+((g|0)==1?+(f|0):d);O[c+624>>3]=d;O[c+600>>3]=O[c+536>>3]+(O[c+504>>3]*e+d*O[c+520>>3]);O[c+608>>3]=O[c+544>>3]+(O[c+512>>3]*e+d*O[c+528>>3]);a=J[a+8>>2];kc[J[J[a>>2]+184>>2]](a,c)}function Ee(a){var b=0,c=0,d=0;c=fc-16|0;fc=c;A(+a);b=v(1)|0;v(0)|0;b=b&2147483647; +a:{if(b>>>0<=1072243195){if(b>>>0<1045430272)break a;a=Fv(a,0,0);break a}if(b>>>0>=2146435072){a=a-a;break a}b=LG(a,c);a=O[c+8>>3];d=O[c>>3];b:switch(b&3){case 0:a=Fv(d,a,1);break a;case 1:a=Gv(d,a);break a;case 2:a=-Fv(d,a,1);break a;default:break b}a=-Gv(d,a)}fc=c+16|0;return a}function uk(a){var b=0;if(a){b=J[a>>2];if(b)kc[J[663199]](b);b=J[a+12>>2];if(b)kc[J[663199]](b);b=J[a+16>>2];if(b)kc[J[663199]](b);b=J[a+24>>2];if(b)kc[J[663199]](b);b=J[a+32>>2];if(b)kc[J[663199]](b);b=J[a+4>>2];if(b)kc[J[663199]](b); +b=J[a+8>>2];if(b)kc[J[663199]](b);b=J[a+28>>2];if(b)kc[J[663199]](b);b=J[a+40>>2];if(b)kc[J[663199]](b);kc[J[663199]](a)}}function k4a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[c>>2];if(!d){d=vc((b<<2)+5|0);J[c>>2]=d}if((b|0)<=0)a=d;else{f=(b<<2)+a|0;while(1){b=J[a>>2];if(b>>>0<=65535)e=2;else{e=b&1023|56320;H[d+2|0]=e;H[d+3|0]=e>>>8;b=b+983040>>>10&1023|-10240;e=4}H[d|0]=b;H[d+1|0]=b>>>8;d=d+e|0;a=a+4|0;if(f>>>0>a>>>0)continue;break}a=J[c>>2]}J[c+4>>2]=d-a;H[d|0]=0;H[d+1|0]=0}function iz(a,b, +c){var d=0,e=0;if(c&2048){H[a|0]=43;a=a+1|0}if(c&1024){H[a|0]=35;a=a+1|0}d=c&260;if((d|0)!=260){H[a|0]=46;H[a+1|0]=42;a=a+2|0}c=c&16384;while(1){e=K[b|0];if(e){H[a|0]=e;a=a+1|0;b=b+1|0;continue}break}a:{b:{if((d|0)!=256){if((d|0)!=4)break b;b=c?70:102;break a}b=c?69:101;break a}b=c?65:97;if((d|0)==260)break a;b=c?71:103}H[a|0]=b;return(d|0)!=260}function hxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=kc[J[a+2296>>2]](K[c|0])|0;e=kc[J[a+2296>>2]](K[c+ +1|0])|0;f=kc[J[a+2296>>2]](K[c+2|0])|0;H[b+3|0]=(e|0)!=0;H[b+2|0]=e>>>8;H[b+1|0]=(d|0)!=0;H[b|0]=d>>>8;H[b+5|0]=(f|0)!=0;H[b+4|0]=f>>>8;b=b+6|0;c=c+3|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function Yea(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=J[a+8>>2];J[c+12>>2]=a+8;J[c+4>>2]=d;J[c+8>>2]=(b<<2)+d;b=J[c+4>>2];a:{while(1){if(J[c+8>>2]==(b|0))break a;a=J[c+4>>2];J[699344]=0;J[a>>2]=0;a=J[699344];J[699344]=0;if((a|0)!=1){b=J[c+4>>2]+4|0;J[c+4>>2]=b;continue}break}a=Z()|0;J[J[c+ +12>>2]>>2]=J[c+4>>2];ba(a|0);B()}J[J[c+12>>2]>>2]=J[c+4>>2];fc=c+16|0}function RH(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)>0)while(1){c=b;b=J[a+24>>2];J[a+24>>2]=0;b:{if(!b)break b;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=c-1|0;wc(a+16|0);a=a+28|0;if(c>>>0>1)continue;break}return}ea(0)|0;Bc();B()}function Ppb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=6;a=J[a+140>>2];a:{if(!a| +!b|(!J[a+72>>2]|!K[b|0]))break a;b=Pi(b,J[a+92>>2]);if(!b)break a;a=J[a+80>>2];if(!a)break a;b:{c:{d:{e:{a=a+(J[b>>2]<<4)|0;switch(J[a+4>>2]-1|0){case 2:break c;case 1:break d;case 0:break e;default:break a}}J[c>>2]=1;break b}J[c>>2]=2;break b}J[c>>2]=3}J[c+4>>2]=J[a+12>>2];d=0}return d|0}function Gma(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;b=a+240|0;yT(c,b,0,(J[b+8>>2]-J[b+4>>2]>>2)-1|0);J[699344]=0;aa(6653,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){qi(c);b=J[a+260>>2];d=b-8|0;e=O[a+48>> +3]-O[d>>3];O[a+48>>3]=e;O[a+40>>3]=e+O[a+32>>3];a:{if((b|0)==J[a+256>>2]){WG(a+256|0,-1);break a}J[a+260>>2]=d}fc=c+16|0;return}a=Z()|0;qi(c);ba(a|0);B()}function kWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(b>>>0>2147482623)break a;e=b;d=J[a+1032>>2];if(!((d|0)<=(b|0)&(b+4|0)<=(J[a+1036>>2]+d|0))){d=0;if(hh(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;b=ge(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=b;if((b|0)<4)break a;d=J[a+1032>>2]}a=(e-d|0)+a|0;J[c>>2]=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24); +d=1}return d|0}function Wua(a,b,c,d,e,f,g,h,i,j,k,l){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;l=l|0;if(!(!f|!e)){c=h<<2;a=g<<1;while(1){f=f-1|0;h=0;while(1){J[b>>2]=K[i+1|0]|K[j+1|0]<<8|K[k+1|0]<<16|K[l+1|0]<<24;b=b+4|0;l=l+2|0;k=k+2|0;j=j+2|0;i=i+2|0;h=h+1|0;if((h|0)!=(e|0))continue;break}b=b+c|0;l=a+l|0;k=a+k|0;j=a+j|0;i=a+i|0;if(f)continue;break}}}function TA(a,b,c,d){var e=0,f=0;a:{if((d-c|0)>=257){f=TA(a,b,c,(P(c,6)+(d<<1)|0)/8|0);e=TA(a,b,(P(d,3)+P(c,5)|0)/8|0,(P(d, +5)+P(c,3)|0)/8|0);a=TA(a,b,(P(d,6)+(c<<1)|0)/8|0,d);break a}e=J[a+8>>2];a=J[(J[e+(d<<2)>>2]<<2)+b>>2];f=J[(J[e+(c<<2)>>2]<<2)+b>>2];e=J[(J[e+((c+d|0)/2<<2)>>2]<<2)+b>>2]}b=(a|0)<(f|0)?f:a;a=(a|0)>(f|0)?f:a;return(a|0)<(e|0)?(b|0)>(e|0)?e:b:a}function NF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=fc-16|0;fc=f;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(K[a+11|0]>>>7|0)e=J[a+4>>2];else e=K[a+11|0]&127;a:{if(d-e>>>0>=c>>>0){if(!c)break a;if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;hk(d+e|0,b,c);b=c+ +e|0;kl(a,b);H[f+15|0]=0;H[b+d|0]=K[f+15|0];break a}Ls(a,d,(c-d|0)+e|0,e,e,0,c,b)}fc=f+16|0;return a|0}function M4a(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;e=J[693186];if(e){a=e;b=J[693187];if((a|0)!=(b|0)){while(1){f=b-12|0;c=J[f>>2];if(c){b=b-8|0;a=J[b>>2];d=c;if((a|0)!=(c|0)){while(1){d=a-12|0;if(H[a-1|0]<0)uc(J[d>>2]);a=d;if((c|0)!=(a|0))continue;break}d=J[f>>2]}J[b>>2]=c;uc(d)}b=f;if((e|0)!=(b|0))continue;break}a=J[693186]}J[693187]=e;uc(a)}Du(2772732,J[693184])}function Jra(a,b){a=a|0;b=b|0;var c=0, +d=0,e=0;a:{if((b|0)>0)while(1){c=b;wc(a+12|0);b=J[a+8>>2];J[a+8>>2]=0;b:{if(!b)break b;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=c-1|0;a=a+20|0;if(c>>>0>1)continue;break}return}ea(0)|0;Bc();B()}function Eo(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b>>2];J[a+12>>2]=0;J[a>>2]=c;J[a+4>>2]=0;J[a+8>>2]=0;a:{if((a|0)==(b|0))break a;J[a+4>>2]=0;c=J[b+8>>2];if(!c)break a;e=a+8|0;while(1){b= +vc(J[J[a>>2]>>2]);kc[J[J[a>>2]+12>>2]](b,c,1,0);J[b>>2]=0;d=J[a+12>>2];J[b+4>>2]=d;J[a+12>>2]=b;J[(d?d:e)>>2]=b;J[a+4>>2]=J[a+4>>2]+1;c=J[c>>2];if(c)continue;break}}return a|0}function Djb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;f=J[a+16>>2];d=L[a+8>>1];c=d>>>1|0;b=_c(b,1,0,c+1|0,0,e+12|0);fc=e+16|0;if(J[e+12>>2])b=g;else{a=0;a:{if(d>>>0<2)break a;g=c>>>0<=1?1:c;while(1){c=K[f+1|0];d=c|K[f|0]<<8;if(!d)break a;H[a+b|0]=d-128>>>0<4294967200?63:c;f=f+2|0;a=a+1|0;if((g|0)!=(a|0))continue; +break}a=g}H[a+b|0]=0}return b|0}function I_(a,b){a=a|0;b=b|0;var c=0;J[a>>2]=J[b>>2];c=J[b+4>>2];J[a+4>>2]=c;a:{if(c){c=J[b+12>>2];J[a+8>>2]=J[b+8>>2];J[a+12>>2]=c;break a}J[a+8>>2]=J[b+8>>2]}O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+40>>3]=O[b+40>>3];O[a+48>>3]=O[b+48>>3];J[a+56>>2]=J[b+56>>2];J[a+60>>2]=J[b+60>>2];b=J[b+64>>2];J[a+68>>2]=1;J[a+64>>2]=b;return a|0}function tdb(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];d=a+12|0;if((b|0)!=(d|0))while(1){c=J[b+28>>2];if(c){kc[J[J[c>> +2]+12>>2]](c)|0;J[b+28>>2]=0}c=J[b+4>>2];a:{if(c)while(1){b=c;c=J[b>>2];if(c)continue;break a}while(1){c=b;b=J[b+8>>2];if((c|0)!=J[b>>2])continue;break}}if((b|0)!=(d|0))continue;break}Nu(a+8|0,J[a+12>>2]);J[a+8>>2]=d;J[a+12>>2]=0;J[a+16>>2]=0}function jT(a,b){var c=0,d=0,e=0,f=0;c=fc;f=c;e=4096;d=c-(a?16:4096)|0;fc=d;c=d;a:{b:{if(!a)break b;c=a;e=b;if(b)break b;J[698583]=28;a=0;break a}a=0;b=rb(c|0,e|0)|0;if(b>>>0>=4294963201){J[698583]=0-b;b=-1}if((b|0)<0)break a;if(!(K[c|0]==47?b:0)){J[698583]= +44;break a}a=c;if((d|0)!=(a|0))break a;a=Yc(d)+1|0;b=Dc(a);if(b)a=xc(b,d,a);else a=0}fc=f;return a}function gxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;if(J[a+2308>>2]){d=J[a+2300>>2];c=J[a+2312>>2];b=J[a+2316>>2];while(1){e=K[c+2|0];f=K[c+1|0];g=K[c|0];a:{if(!(!K[d+56|0]|(g|0)!=L[d+838>>1]|L[d+840>>1]!=(f|0)))if(L[d+842>>1]==(e|0))break a;H[b+3|0]=255}H[b+2|0]=e;H[b+1|0]=f;H[b|0]=g;b=b+4|0;c=c+3|0;h=h+1|0;if(h>>>0>2])continue;break}}return 0}function Em(a,b){a=a|0;b=b|0;var c=0,d=0;c= +J[a+8>>2];d=c<<1;if((d|0)<(P(J[a+4>>2],3)|0)){JH(a,d-1|0);c=J[a+8>>2]}d=J[a+12>>2]+(M[b+12>>2]%(c>>>0)<<2)|0;c=J[d>>2];J[b+8>>2]=c;J[b+4>>2]=c;a:{b:{if(c){J[b>>2]=J[c>>2];J[c>>2]=b;c=J[b>>2];if(c)break b;break a}c=J[a+24>>2];J[b>>2]=c;J[a+24>>2]=b;if(!c)break a}J[c+4>>2]=b}J[d>>2]=b;J[a+4>>2]=J[a+4>>2]+1;return b|0}function lT(a,b,c,d){var e=0;a:{b:{c:{if(!((d|0)!=4096|(a|0)<0)){if(K[b|0])break c;a=vb(a|0,c|0)|0;break a}d:{if((a|0)!=-100){e=K[b|0];if(!d&(e|0)==47)break d;if((d|0)!=256|(e|0)!=47)break c; +break b}if((d|0)==256)break b;if(d)break c}a=ub(b|0,c|0)|0;break a}a=tb(a|0,b|0,c|0,d|0)|0;break a}a=sb(b|0,c|0)|0}if(a>>>0>=4294963201){J[698583]=0-a;a=-1}return a}function iJ(a,b,c){var d=0,e=0,f=0;a:{b=J[(b<<2)+2317648>>2];if(!(!c|(b|0)!=J[c+4>>2])){d=J[a+80>>2];if((b|0)!=J[d+4>>2])break a;X_(d,c);return}c=J[a+80>>2];if((b|0)==J[c+4>>2]){Ji(c);return}uc(ld(c));c=vc(8);J[699344]=0;b=aa(3618,c|0,1<>2]=b;return}a=Z()|0;uc(c);ba(a|0);B()}uc(ld(d)); +e=a,f=NB(c),J[e+80>>2]=f}function _t(a,b){var c=0,d=0,e=0,f=0,g=0;c=J[a+56>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;a:{if((c|0)==-1)break a;d=J[a+56>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break a;e=J[a+56>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)==-1)break a;f=J[a+56>>2];f=kc[J[J[f>>2]+28>>2]](f)|0;if((f|0)==-1)break a;J[a+68>>2]=J[a+68>>2]+4;J[b>>2]=f|(d<<16|c<<24|e<<8);g=1}return g}function N5a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;J[b>>2]=0;J[b+4>>2]=1084227584;J[c>>2]=0;J[c+4>>2]=0;J[d>>2]=0;J[d+ +4>>2]=0;e=J[a+8>>2];a:{if(!e)break a;e=J[e+188>>2];if(!e)break a;e=ho(e,0);if(e){O[c>>3]=I[e+42>>1];O[d>>3]=I[e+38>>1];O[b>>3]=L[e+18>>1]}a=ho(J[J[a+8>>2]+188>>2],2);if(!a|L[a>>1]==65535)break a;O[c>>3]=L[a+76>>1];O[d>>3]=0-L[a+78>>1]|0}}function KB(a,b,c){var d=0,e=0,f=0;a:{b=J[(b<<2)+2317664>>2];if(!(!c|(b|0)!=J[c+4>>2])){d=J[a+84>>2];if((b|0)!=J[d+4>>2])break a;X_(d,c);return}c=J[a+84>>2];if((b|0)==J[c+4>>2]){Ji(c);return}uc(ld(c));c=vc(8);J[699344]=0;b=aa(3618,c|0,1<>2]=b;return}a=Z()|0;uc(c);ba(a|0);B()}uc(ld(d));e=a,f=NB(c),J[e+84>>2]=f}function Amb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[b>>2];while(1){d=d+1|0;if(d>>>0>255){J[b>>2]=0;return 0}f=kc[J[a+20>>2]](L[J[a+16>>2]+(d<<1)>>1])|0;g=J[a+24>>2];a:{if(g){h=J[a+28>>2];c=0;while(1){e=J[(c<<2)+h>>2];if(!(!e|K[e|0]!=K[f|0]))if(!Ic(e,f))break a;c=c+1|0;if((g|0)!=(c|0))continue;break}}c=0}if(!c)continue;break}J[b>>2]=d;return c|0}function wIa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c= +fc-16|0;fc=c;d=c+4|0;kc[J[J[a>>2]+12>>2]](d,a,b);a=0;J[699344]=0;b=_(43,d|0)|0;e=J[699344];J[699344]=0;a:{if((e|0)==1)break a;if(b){J[699344]=0;a=_(3202,d|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;a=a^1}if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return a|0}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function tCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;c=J[b+8>>2];if(c)while(1){a:{b:{e=J[c+8>>2];if(J[e+8>>2]!=4)break b;f=d+8|0;WW(f,e);J[699344]=0;e=pd(f,a,-1);g=J[699344];J[699344]= +0;if((g|0)!=1){wc(f);if(e)break b;J[d+12>>2]=b;J[d+8>>2]=c;c=J[c>>2];Do(b,f);break a}a=Z()|0;wc(d+8|0);ba(a|0);B()}c=J[c>>2]}if(c)continue;break}fc=d+16|0}function rL(a,b,c){var d=0;d=-6;a:{if(!c|K[c|0]!=49)break a;if(!a)return-2;J[a+24>>2]=0;c=J[a+32>>2];if(!c){J[a+40>>2]=0;J[a+32>>2]=3228;c=3228}if(!J[a+36>>2])J[a+36>>2]=3229;c=kc[c|0](J[a+40>>2],1,7120)|0;if(!c)return-4;J[a+28>>2]=c;J[c+56>>2]=0;J[c>>2]=a;J[c+4>>2]=16180;b=D2(a,b);d=0;if(!b)break a;kc[J[a+36>>2]](J[a+40>>2],c);J[a+28>>2]=0;d=b}return d} +function qv(a,b){var c=0,d=0,e=0;a:{if((b|0)<=0)break a;d=b;while(1){b:{c=J[a+8>>2];c:{if(c&7)break c;e=J[a+64>>2];if(!((e|0)<0|J[a+60>>2]<(e|0))){J[a+8>>2]=c|4;break c}c=J[a+28>>2];J[a+28>>2]=c-1;if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;J[a+24>>2]=J[a+24>>2]+1;break b}if((td(a,1)|0)!=-1)break b}b=b-d|0;break a}c=(d|0)>1;d=d-1|0;if(c)continue;break}}return b}function h3(a,b){var c=0,d=0,e=0;a:{b:{c:{if(a){if(!b)return 0;if(!K[a|0]){a=0;d=1;break c}if(Ic(b,737078))break c;if(!Ic(a,737082)){c=737089;break b}c= +Ic(a,737096)?b:737105;break b}d=1;a=0;if(!b)break a}e=Ic(b,737112);c=e?b:737105;if(!e|d)break b;if(!Ic(a,737057)){c=b;break b}if(Ic(b,737118)){c=b;if(Ic(b,737069))break b}c=737133}a=K[c|0]?c:0}return a}function Yua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;e=-1;f=J[a+8>>2];a:{b:{if((c|0)>=0)break b;c=c+f|0;if((c|0)>=0)break b;a=Qc(d+8|0,2393824,2385973,1695,2426220,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}if((c|0)<(f|0)){a=J[a+ +12>>2];b=Je(a+c|0,b);e=b?b-a|0:-1}fc=d+32|0;return e|0}B()}function Xua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;e=-1;f=J[a+8>>2];a:{b:{if((c|0)>=0)break b;c=c+f|0;if((c|0)>=0)break b;a=Qc(d+8|0,2393824,2385973,1714,2426268,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}if((c|0)<(f|0)){a=J[a+12>>2];b=at(a+c|0,b);e=b?b-a|0:-1}fc=d+32|0;return e|0}B()}function Wda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Mj(a,J[b+8>>2],e)){if(!(J[b+ +28>>2]==1|J[b+4>>2]!=(c|0)))J[b+28>>2]=d;return}a:{if(!Mj(a,J[b>>2],e))break a;if(!(J[b+16>>2]!=(c|0)&J[b+20>>2]!=(c|0))){if((d|0)!=1)break a;J[b+32>>2]=1;return}J[b+20>>2]=c;J[b+32>>2]=d;J[b+40>>2]=J[b+40>>2]+1;if(!(J[b+36>>2]!=1|J[b+24>>2]!=2))H[b+54|0]=1;J[b+44>>2]=4}}function OCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+12>>2];a:{if(M[b>>2]<=256){b=J[c+8>>2];if(b&7)break a;e=J[c+64>>2];if(!((e|0)<0|J[c+60>>2]<(e|0))){J[c+8>>2]=b|4;break a}J[c+4>>2]=J[c+4>>2]|32;b=J[c+28>>2];J[c+28>>2]=b-1;if((b| +0)>0){J[c+60>>2]=J[c+60>>2]+1;b=J[c+24>>2];J[c+24>>2]=b+1;H[b|0]=d;break a}bd(c,d&255);break a}Kh(c,d)}Cba(a+16|0,c);return 0}function JB(a,b){var c=0,d=0,e=0,f=0;a:{c=J[a+52>>2];d=J[c+8>>2];if((d|0)>0){f=J[c>>2];c=0;while(1){e=J[(c<<2)+f>>2];if(J[e+4>>2]==(b|0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}}a=J[a+48>>2];d=J[a+8>>2];if((d|0)<=0)return 0;a=J[a>>2];c=0;while(1){e=J[a+(c<<2)>>2];if(J[e+4>>2]==(b|0))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}return 0}return e}function IJ(a,b,c){a= +a|0;b=b|0;c=c|0;var d=0;c=J[a+28>>2];if(J[c+664>>2]){b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(0,b,820954,0);return}b=J[b+8>>2];d=0;b:{if(!Ic(b,821221))break b;d=2;if(!Ic(b,821757))break b;d=Ic(b,822861)?1:3}J[c+420>>2]=d;a=J[a+8>>2];kc[J[J[a>>2]+148>>2]](a,c)}function Bub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!K[a+285|0]){Jc(a,1029,0,0);return 1029}if(c){Jc(a,1028,0,0);return 1028}c=QE(a);a:{if(c)break a;if(!J[a+448>> +2])J[a+448>>2]=J[a+436>>2];if(!J[a+452>>2])J[a+452>>2]=J[a+440>>2];if(!J[a+456>>2])J[a+456>>2]=J[a+444>>2];H[a+285|0]=0;if(K[a+112|0]){c=kc[J[b+4>>2]](a,b,e)|0;if(c)break a}c=0}return c|0}function oX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=vc(128);J[699344]=0;f=_(5258,e|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){J[a>>2]=0;vd(a,f);J[699344]=0;$(5259,f|0);e=J[699344];J[699344]=0;a:{if((e|0)!=1){J[699344]=0;ia(5265,f|0,b|0,c|0,d|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}b=Z()|0;zc(a); +ba(b|0);B()}return}a=Z()|0;uc(e);ba(a|0);B()}function eCa(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0)while(1){J[a+8>>2]=2392932;J[a+32>>2]=2392964;c=J[a+36>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+36>>2]=0}J[a+24>>2]=2392964;c=J[a+28>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+28>>2]=0}wc(a+16|0);a=a+44|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function _Za(a){a=a|0;var b=0,c=0;if(a){a:{b:{c:{d:{b=J[a+20>>2];if(b){c=J[b+80>>2];b=J[a+4>>2];if(!b)break c; +if(!c){c=0;break d}if(Sk(c,b))break c;b=J[a+4>>2];break d}b=J[a+4>>2];if(b)break d;b=J[a+12>>2];if(!b)break a;break b}kc[J[663199]](b)}b=J[a+12>>2];if(!b)break a;if(!c)break b;if(Sk(c,b))break a;b=J[a+12>>2]}kc[J[663199]](b)}kc[J[663199]](a)}}function PW(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0)while(1){J[a+16>>2]=2392932;J[a+40>>2]=2392964;c=J[a+44>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>>2]+4>>2]](c);J[a+44>>2]=0}J[a+32>>2]=2392964;c=J[a+36>>2];if(c){d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(!d)kc[J[J[c>> +2]+4>>2]](c);J[a+36>>2]=0}wc(a+24|0);a=a+56|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Hzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>>2];a:{if(!b)break a;c=J[a+644>>2];d=kc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a+1|0]&248;H[c+1|0]=K[a|0]>>>3&28|K[a+1|0]<<5;d=K[a|0];H[c+3|0]=0;H[c+2|0]=d<<3;a=a+2|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function Gzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>>2];a:{if(!b)break a; +c=J[a+644>>2];d=kc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a|0]&248;H[c+1|0]=K[a|0]>>>3&28|K[a+1|0]<<5;d=K[a+1|0];H[c+3|0]=0;H[c+2|0]=d<<3;a=a+2|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function GRa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218092;b=J[a+12>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+16>>2];if(d){uc(Zc(d));b=J[a+12>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}b=J[a+144>>2];if(b)kc[J[J[b>>2]+4>> +2]](b);b=J[a+148>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[699344]=0;$(3370,a+152|0);b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ea(0)|0;Bc();B()}function x_a(a){a=a|0;var b=0,c=0;b=J[a+408>>2];c=kc[J[J[a+4>>2]>>2]](a,1,8192)|0;J[b+8>>2]=c;a=0;while(1){b=(a<<2)+c|0;J[b>>2]=P(a,19595);J[b+7168>>2]=P(a,-5329);J[b+6144>>2]=P(a,-27439);J[b+5120>>2]=(a<<15)+8421375;J[b+4096>>2]=P(a,-21709);J[b+3072>>2]=P(a,-11059);J[b+2048>>2]=P(a,7471)+32768;J[b+1024>>2]=P(a,38470);a=a+1|0;if((a|0)!=256)continue;break}}function k_a(a){a= +a|0;var b=0,c=0;b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=255;c=J[b+4>>2]-1|0;J[b+4>>2]=c;a:{if(c)break a;if(kc[J[b+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}b=J[a+24>>2];c=J[b>>2];J[b>>2]=c+1;H[c|0]=217;c=J[b+4>>2]-1|0;J[b+4>>2]=c;b:{if(c)break b;if(kc[J[b+12>>2]](a)|0)break b;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}}function dob(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+12>>2];if(b){e=J[a+28>>2];J[b+104>>2]=0;J[b+48>>2]=0;J[b+36>>2]=0;J[b+40>>2]=0;H[b+44|0]=0;J[b- -64>>2]=9;J[b+12>>2]= +0;J[b+16>>2]=0;d=J[b+180>>2];c=J[b+100>>2];if((c|0)!=(b+112|0)){if(c)kc[J[d+8>>2]](d,c);J[b+100>>2]=0}c=J[b+88>>2];if(c)kc[J[d+8>>2]](d,c);b=Ac(b,0,184);if(b)kc[J[e+8>>2]](e,b);J[a+12>>2]=0}}function Zkb(a,b){a=a|0;b=b|0;var c=0,d=0;a=J[a+16>>2];c=K[a+12|0]|K[a+13|0]<<8|(K[a+14|0]<<16|K[a+15|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);a:{if(c>>>0>b>>>0)break a;b=b-c|0;c=K[a+16|0]|K[a+17|0]<<8|(K[a+18|0]<<16|K[a+19|0]<<24);if(b>>>0>=(c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24))>>>0)break a;a=(a+ +20|0)+(b<<1)|0;d=K[a|0]<<8|K[a+1|0]}return d|0}function Raa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=kd(1,24);if(!d)return 0;H[d|0]=1;a:{e=kd(1,56);if(e){J[e>>2]=d;c=kd(1,1876);J[e+36>>2]=c;if(!c){uc(e);uc(d);return 0}J[d+8>>2]=e;if(b){c=kd(1,96);if(!c)break a;J[c+12>>2]=J[b>>2];J[c+16>>2]=J[b+4>>2];J[c+20>>2]=J[b+8>>2];J[e+44>>2]=c}c=UO(e,a);Iy(J[d+8>>2])}uc(d);return c|0}J[d+20>>2]=1;Iy(e);uc(d);return 0}function vh(a,b){var c=0,d=0;c=J[a>>2];a:{if(c>>>0>=b>>>0)break a;while(1){b:{c:switch(K[c|0]){case 0:case 9:case 10:case 12:case 13:case 32:break b; +case 37:break c;default:break a}d=37;while(1){d:switch(d-10|0){case 0:case 3:break b;default:break d}c=c+1|0;if((c|0)!=(b|0)){d=K[c|0];continue}break}c=b}c=c+1|0;if(c>>>0>>0)continue;break}}J[a>>2]=c}function oj(a,b){var c=0,d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+3>>>0)break d;e=J[a+20>>2];e:{if(e){f=d+12|0;if((kc[e|0](a,c,f,4)|0)!=4)break d;c=J[a+8>>2];b=f;break e}b=J[a>>2];if(!b)break c;b=b+c|0}g=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);break b}J[b>> +2]=85;break a}g=0}J[a+8>>2]=c+4}fc=d+16|0;return g}function al(a,b,c){var d=0,e=0,f=0;a:{b:{if(!a)break b;d=J[J[a>>2]+32>>2];if(d)d=kc[d|0](a,b)|0;else d=0;if(d|!c)break a;c=J[a+4>>2];d=J[c+16>>2];if((d|0)<=0)break b;c=c+20|0;f=c+(d<<2)|0;while(1){e=J[c>>2];c:{if((e|0)==(a|0))break c;d=J[J[e>>2]+32>>2];if(!d)break c;d=kc[d|0](e,b)|0;if(d)break a}c=c+4|0;if(f>>>0>c>>>0)continue;break}}d=0}return d}function Uqb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{b:{if((b|0)<6)break b;e=((b|0)>=1024?1024:b)-6|0; +while(1){if(!ud(a+c|0,28675,5))break a;f=(c|0)==(e|0);c=c+1|0;if(!f)continue;break}if(K[a|0]!=65|(b|0)<8|(K[a+1|0]!=84|K[a+2|0]!=38))break b;if(K[a+3|0]!=84|K[a+4|0]!=70|(K[a+5|0]!=79|K[a+6|0]!=82))break b;d=1;if(K[a+7|0]==77)break a}d=2}return d|0}function Bob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{b:{if(!Ic(b,240970)){J[c>>2]=J[a+36>>2];J[c+4>>2]=J[a+40>>2];J[c+8>>2]=J[a+44>>2];J[c+12>>2]=J[a+48>>2];J[c+16>>2]=J[a+52>>2];J[c+20>>2]=J[a+56>>2];J[c+24>>2]=J[a+60>>2];J[c+28>>2]=J[a- -64>>2];break b}if(!Ic(b, +241142)){J[c>>2]=J[a+28>>2];break b}d=12;if(Ic(b,241407))break a;H[c|0]=K[a+32|0]}d=0}return d|0}function BOa(a){a=a|0;var b=0,c=0,d=0,e=0;a=J[J[a+4>>2]+12>>2];a:{if(!a)break a;a=kc[J[J[a>>2]+168>>2]](a)|0;if(!a)break a;b=vc(8);J[699344]=0;d=_(4,8)|0;c=J[699344];J[699344]=0;b:{c:{if((c|0)!=1){J[699344]=0;c=aa(3350,d|0,a|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1)break b;a=Z()|0;uc(d);break c}a=Z()|0}uc(b);ba(a|0);B()}J[b+4>>2]=c;J[b>>2]=a}return b|0}function m0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e= +0,f=0,g=0;if(!b)return 0;e=J[b+4>>2];a=J[b+12>>2];a:{if(e>>>0>=a+d>>>0)break a;if(J[b+20>>2]){a=e+(d>>>0<=65535?65535:d)|0;g=Dc(a);f=J[b>>2];e=xc(g,f,e);uc(f);J[b+4>>2]=a;J[b>>2]=e;a=J[b+12>>2];break a}d=e-a|0}xc(J[b>>2]+a|0,c,d);a=J[b+12>>2]+d|0;J[b+12>>2]=a;if(a>>>0>M[b+8>>2])J[b+8>>2]=a;return d|0}function fX(a,b){a=a|0;b=b|0;var c=0;a:{if((b|0)>0)while(1){J[a+16>>2]=0;c=J[685894];J[a+24>>2]=0;J[a+28>>2]=0;J[a+20>>2]=c;J[a+32>>2]=0;J[a+36>>2]=0;J[699344]=0;c=a+24|0;J[c>>2]=2397928;J[c+4>>2]=0; +J[c+8>>2]=0;J[c+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1)break a;a=a+40|0;c=(b|0)>1;b=b-1|0;if(c)continue;break}return}b=Z()|0;wc(a+16|0);ba(b|0);B()}function Pea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+84>>2];f=J[d>>2]?d:2640256;d=0;a:{if(!J[a+48>>2])break a;while(1){e=J[(d<<2)+f>>2];if(!e)break a;H[J[a+44>>2]+d|0]=(e|0)>=128?64:e;d=d+1|0;if(d>>>0>2])continue;break}}e=J[a+44>>2];J[a+4>>2]=e;J[a+84>>2]=(d<<2)+f;J[a+8>>2]=d+e;if(!(!c|!d)){J[a+4>>2]=e+1;H[b|0]=K[e|0];g=1}return g| +0}function Oea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+84>>2];f=J[d>>2]?d:2640264;d=0;a:{if(!J[a+48>>2])break a;while(1){e=J[(d<<2)+f>>2];if(!e)break a;H[J[a+44>>2]+d|0]=(e|0)>=128?64:e;d=d+1|0;if(d>>>0>2])continue;break}}e=J[a+44>>2];J[a+4>>2]=e;J[a+84>>2]=(d<<2)+f;J[a+8>>2]=d+e;if(!(!c|!d)){J[a+4>>2]=e+1;H[b|0]=K[e|0];g=1}return g|0}function ksb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1280266064){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];H[b+ +40|0]=K[c+40|0];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];d=J[c+52>>2];J[b+52>>2]=d;if(d){e=b;d=d<<2;b=kc[J[a+152>>2]](d)|0;J[e+56>>2]=b;if(b){xc(b,J[c+56>>2],d);return 0}Jc(a,1,0,0);a=1}else a=0;return a|0}function k$a(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=a;f=c;a:{g=J[d>>2];b:{if((g|0)<=0)break b;g=f+g|0;j=J[b>>2]+e|0;while(1){h=e-a|0;if(J[b>>2]<=(h+5|0)|e>>>0>=j>>>0)break b;i=H[f|0];if((i|0)<0)break a;H[e|0]=i;e=e+1|0;f=f+1|0;if(g>>>0>f>>>0)continue;break}}J[b>>2]=e- +a;J[d>>2]=f-c;return J[b>>2]}J[b>>2]=h;J[d>>2]=f-c;return-1}function jxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=kc[J[a+2296>>2]](K[d|0])|0;f=kc[J[a+2296>>2]](K[d+1|0])|0;e=c>>>8|0;H[b+4|0]=e;H[b+2|0]=e;H[b|0]=e;c=(c|0)!=0;H[b+5|0]=c;H[b+3|0]=c;H[b+1|0]=c;H[b+7|0]=(f|0)!=0;H[b+6|0]=f>>>8;b=b+8|0;d=d+2|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function hQ(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;f=c+4|0;d=YF(f,20,0);if(K[d+ +11|0]>>>7|0)e=(J[d+8>>2]&2147483647)-1|0;else e=1;J[699344]=0;da(7254,d|0,e|0);e=J[699344];J[699344]=0;if((e|0)==1){a=Z()|0;df(d);ba(a|0);B()}J[699344]=0;Ba(7255,a|0,f|0,+b);a=J[699344];J[699344]=0;if((a|0)!=1){df(f);fc=c+16|0;return}a=Z()|0;df(c+4|0);ba(a|0);B()}function W_(a){var b=0,c=0;a:{b:{if(!J[a+36>>2])break b;b=J[a+32>>2];if((b|0)<=0)break b;while(1){J[a+40>>2]=-1;if(J[a+36>>2])J[a+32>>2]=b-1;J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];c=J[J[b>>2]+28>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]= +0;if((c|0)==1)break a;J[a+40>>2]=b&255;b=J[a+32>>2];if((b|0)>0)continue;break}}return a}ea(0)|0;Bc();B()}function Knb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=6;f=J[a+280>>2];a:{if((f|0)<=0)break a;d=J[a+284>>2];a=0;while(1){b:{h=a;g=Ic(J[P(a,12)+d>>2],b);a=a+1|0;if((f|0)<=(a|0))break b;if(g)continue}break}if(g)break a;b=P(h,12)+d|0;c:{if(K[b+4|0]){J[c>>2]=1;J[c+4>>2]=J[b+8>>2];break c}J[c>>2]=2;J[c+4>>2]=J[(P(a,12)+d|0)-4>>2]}e=0}return e|0}function loa(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;var h=0,i=0,j=0;g=J[a+12>>2];h=O[c>>3];i=O[e>>3];j=O[f>>3];a=fc-48|0;fc=a;O[a+32>>3]=O[d>>3];O[a+40>>3]=h;O[a+24>>3]=i;O[a+16>>3]=j;f=b;b=a+40|0;c=a+32|0;d=a+24|0;e=a+16|0;dU(a+8|0,g+652|0,f,b,c,d,e);f=J[a+12>>2];J[a>>2]=J[a+8>>2];J[a+4>>2]=f;FU(g+1976|0,a,b,c,d,e);fc=a+48|0;return 0}function ge(a,b,c,d){var e=0,f=0,g=0,h=0;g=P(b,c);e=J[d+72>>2];J[d+72>>2]=e-1|e;e=J[d+4>>2];f=J[d+8>>2];if((e|0)==(f|0))e=g;else{h=e;e=f-e|0;e=e>>>0>>0?e:g;xc(a,h,e);J[d+4>>2]=e+J[d+4>>2];a= +a+e|0;e=g-e|0}if(e)while(1){a:{if(!Oz(d)){f=kc[J[d+32>>2]](d,a,e)|0;if(f)break a}return(g-e>>>0)/(b>>>0)|0}a=a+f|0;e=e-f|0;if(e)continue;break}return b?c:0}function cEb(a,b){a=a|0;b=b|0;var c=0;c=-1;a:{if(GP(b,J[a+12>>2]))break a;a=J[b+8>>2];if(a&7)break a;c=J[b+64>>2];if(!((c|0)<0|(c|0)>J[b+60>>2])){J[b+8>>2]=a|4;return-1}J[b+4>>2]=J[b+4>>2]|32;c=-1;a=J[b+28>>2];J[b+28>>2]=a-1;b:{if((a|0)<=0){if((bd(b,0)|0)!=-1)break b;break a}J[b+60>>2]=J[b+60>>2]+1;a=J[b+24>>2];J[b+24>>2]=a+1;H[a|0]=0}c=0}return c| +0}function bxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){c=J[a+2300>>2];f=J[a+2312>>2];b=J[a+2316>>2];while(1){e=K[f|0];if(e>>>0>2]){d=P(e,3)+c|0;H[b|0]=K[d+68|0];H[b+1|0]=K[d+69|0];H[b+2|0]=K[d+70|0];d=255;H[b+3|0]=!K[c+56|0]|M[c+844>>2]<=e>>>0?d:K[(c+e|0)+848|0]}b=b+4|0;f=f+1|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0}function b8a(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;if(J[a+316>>2]>0){f=J[d>>2];while(1){i=e|1;b=J[a+112>>2];if((b|0)>0){d= +J[(e<<2)+f>>2];j=b+d|0;b=J[(g<<2)+c>>2];while(1){h=K[b|0];H[d+1|0]=h;H[d|0]=h;b=b+1|0;d=d+2|0;if(j>>>0>d>>>0)continue;break}b=J[a+112>>2]}ao(f,e,f,i,1,b);g=g+1|0;e=e+2|0;if((e|0)>2])continue;break}}}function _w(a,b,c){var d=0,e=0,f=0;d=vc(16);J[699344]=0;f=_(3352,d|0)|0;e=J[699344];J[699344]=0;a:{if((e|0)==1)break a;if(c){d=vc(8);J[699344]=0;c=aa(3350,d|0,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;sd(f,c)}a=J[a+32>>2];d=vc(8);J[699344]=0;b=aa(3349,d|0,b|0)|0;c=J[699344];J[699344]= +0;if((c|0)!=1){Jg(a,b,f);return}}a=Z()|0;uc(d);ba(a|0);B()}function Vub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=J[J[J[a+544>>2]+88>>2]+36>>2];f=J[a+644>>2];c=J[a+636>>2];J[a+644>>2]=c;J[a+636>>2]=f;d=J[a+672>>2];if((d|0)>2]){b=J[a+656>>2];e=(b<<3)+f|0;while(1){J[c>>2]=J[e>>2];J[c+4>>2]=J[e+4>>2];b=b+1|0;g=b>>>0>>0;e=g?e+8|0:f;b=g?b:0;c=c+8|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function FRa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218092;b=J[a+12>>2];if((b|0)>0)while(1){d= +J[((c<<2)+a|0)+16>>2];if(d){uc(Zc(d));b=J[a+12>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}b=J[a+144>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+148>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[699344]=0;$(3370,a+152|0);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function vsa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)>0)while(1){c=b;b=J[a+4>>2];J[a+4>>2]=0;b:{if(!b)break b;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break b;J[699344]=0;$(5147,b|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a}b=c-1|0;a=a+12|0;if(c>>>0>1)continue;break}return}ea(0)|0;Bc();B()}function p$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;J[a+20>>2]=d;J[a+16>>2]=c;J[a+12>>2]=b;J[a>>2]=2218040;J[a+4>>2]=15;J[a+8>>2]=0;e=a,f=!Dd(b,808870),J[e+24>>2]=f;b=1;a:{b:{if(!Dd(J[a+12>>2],809137))break b;b=2;if(!Dd(J[a+12>>2],809580))break b;b=4;if(!Dd(J[a+12>>2],809700))break b;if(Dd(J[a+12>>2],810224))break a;b=8}J[a+4>>2]=b}return a|0}function fR(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc= +c;J[c+4>>2]=a;a=J[a+4>>2];J[c+8>>2]=a;J[c+12>>2]=a+(b<<2);b=J[c+8>>2];a=J[c+12>>2];a:{while(1){if((a|0)==(b|0))break a;J[699344]=0;J[b>>2]=0;d=J[699344];J[699344]=0;if((d|0)!=1){b=b+4|0;J[c+8>>2]=b;continue}break}a=Z()|0;J[J[c+4>>2]+4>>2]=J[c+8>>2];ba(a|0);B()}J[J[c+4>>2]+4>>2]=J[c+8>>2];fc=c+16|0}function ZUa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=vc(384);b=J[a+4>>2];c=J[J[b>>2]+8>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;c=J[a+52>>2];e=J[a+48>>2];f=J[a+44>>2]; +g=J[a+40>>2];J[699344]=0;a=va(3558,d|0,b|0,a+8|0,g|0,f|0,e|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;return a|0}a=Z()|0;uc(d);ba(a|0);B()}function TDa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)>0)while(1){c=b;b=J[a+8>>2];J[a+8>>2]=0;b:{if(!b)break b;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=c-1|0;a=a+12|0;if(c>>>0>1)continue;break}return}ea(0)|0;Bc();B()}function Sva(a, +b,c,d,e,f,g,h,i){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;c=fc-16|0;fc=c;d=P(g,3);h=h<<2;while(1){g=e;while(1){ie(J[a+68>>2],K[i|0],K[i+1|0],K[i+2|0],c+12|0,c+8|0,c+4|0);J[b>>2]=J[c+12>>2]|J[c+8>>2]<<8|J[c+4>>2]<<16|-16777216;i=i+3|0;b=b+4|0;g=g-1|0;if(g)continue;break}i=d+i|0;b=b+h|0;f=f-1|0;if(f)continue;break}fc=c+16|0}function NPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+12>>2]=0;J[a+4>>2]=-1;J[a>>2]=2319376;if(J[b>>2]==9){c=J[b+12>>2];J[a+4>>2]=J[b+8>>2];J[a+8>>2]=c;return a|0}a:{if(J[c>> +2]==3){c=J[c+8>>2];b=vc(8);J[699344]=0;c=aa(3350,b|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+12>>2]=c;return a|0}Cc(1,-1,808653,0);return a|0}a=Z()|0;uc(b);ba(a|0);B()}function GK(){var a=0,b=0,c=0,d=0;a=28571;while(1){b=a;a=b+1|0;if(K[b|0])continue;break}c=b-28571|0;a:{if((c|0)<0)break a;a=0;b:{c:{d=kc[J[663198]](c+1|0)|0;if(d){if((b|0)==28571)break b;break c}Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);return 0}while(1){b=K[a+28571|0];H[a+d|0]=b;if(!b)break a;a=a+1|0;if((c|0)!=(a|0))continue; +break}}H[c+d|0]=0}return d}function zcb(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;if(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+127>>>7);g=b;b=f^255;e=255-e|0;H[a+2|0]=(P(g,b)+P(e,K[a+2|0])|0)+255>>>8;H[a+1|0]=(P(b,c)+P(e,K[a+1|0])|0)+255>>>8;H[a|0]=(P(b,d)+P(e,K[a|0])|0)+255>>>8}}function xzb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+ +P(J[b+1164>>2],J[a+580>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;while(1){c=K[d|0]|K[d+1|0]<<8;c=(c<<8|c>>>8)&65535;c=c<<8|c>>>8;H[b|0]=c;H[b+1|0]=c>>>8;d=d+2|0;b=(J[a+584>>2]<<1)+b|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function VQa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218336;b=J[a+180>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+320>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+188>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+320>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]= +2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a);return}ea(0)|0;Bc();B()}function iWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=Yc(c);a:{if((b|0)>2147482623|(e|0)>1024|(b|e)<0)break a;f=b;d=J[a+1032>>2];if(!((d|0)<=(b|0)&(b+e|0)<=(J[a+1036>>2]+d|0))){d=0;if(hh(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;b=ge(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=b;if((b|0)<(e|0))break a;d=J[a+1032>>2]}d=!dd((f+(a-d|0)|0)+8|0,c,e)}return d|0}function Xka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=J[a+84>>2]; +f=J[e>>2];d=J[e+4>>2];h=J[a+28>>2];g=J[a+20>>2]-h|0;g=d>>>0>>0?d:g;if(g){xc(f,h,g);f=g+J[e>>2]|0;J[e>>2]=f;d=J[e+4>>2]-g|0;J[e+4>>2]=d}d=c>>>0>d>>>0?d:c;if(d){xc(f,b,d);f=d+J[e>>2]|0;J[e>>2]=f;J[e+4>>2]=J[e+4>>2]-d}H[f|0]=0;b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;return c|0}function Tp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];if(!(!c|J[b+4>>2]!=(a|0))){f=M[c+12>>2]%M[a+8>>2]|0;d=J[c+4>>2];e=J[c>>2];if(e)J[e+4>>2]=d;J[(d?d:a+24|0)>>2]=e;d=J[a+12>>2]+(f<<2)|0;a:{if(J[d>>2]==(c|0)){J[d>>2]=J[c+ +8>>2];break a}d=J[c>>2];if(!d)break a;J[d+8>>2]=J[c+8>>2]}kc[J[J[a>>2]+16>>2]](c,1);uc(c);J[a+4>>2]=J[a+4>>2]-1;J[b>>2]=0}}function QP(a){var b=0,c=0,d=0,e=0,f=0;b=Dc(40);J[b>>2]=0;b=Hf(a+624|0,1,b,4);f=gc;a:{b:{while(1){if(!c){J[699344]=0;$(672,a|0);c=J[699344];J[699344]=0;if((c|0)==1)break b;d=-1;c:{if(!c)break c;e=J[699345];if(!e)break c;d=Pc(J[c>>2],b,f);if(!d)break a;gc=e}c=gc;if((d|0)==1)continue}break}uc(b);return}a=Z()|0;uc(b);ba(a|0);B()}uc(b);nf(c,e);B()}function JK(a){a=a|0;var b=0,c=0, +d=0,e=0;d=-1;a:{if(!a)break a;c=J[a+64>>2];if(!c)break a;d=0;if(J[c+4>>2]!=1)break a;b:{c:{b=J[a+68>>2];if(!b){b=J[c+48>>2];if(b)break b;break c}e=J[b+4>>2]-2|0;if(e){if((e|0)!=16)break a;b=J[b>>2];if(!b)break c;break b}b=J[b+24>>2];if(!b)break a;break b}b=J[c+44>>2];if(!b)break a}J[a+68>>2]=b;d=1}return d|0}function uI(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(a){c=J[a+4>>2];if(c){uc(c);J[a+4>>2]=0}if(b){c=a;while(1){d=J[c+200>>2];if(d){e=0;f=J[c+196>>2];if(f){while(1){g=J[d+12>>2];if(g){uc(g);J[d+12>> +2]=0;f=J[c+196>>2]}d=d+16|0;e=e+1|0;if(e>>>0>>0)continue;break}d=J[c+200>>2]}uc(d);J[c+200>>2]=0}c=c+240|0;h=h+1|0;if((h|0)!=(b|0))continue;break}}uc(a)}}function moa(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;g=J[a+12>>2];h=O[c>>3];i=O[e>>3];j=O[f>>3];a=fc-48|0;fc=a;O[a+32>>3]=O[d>>3];O[a+40>>3]=h;O[a+24>>3]=i;O[a+16>>3]=j;f=b;b=a+40|0;c=a+32|0;d=a+24|0;e=a+16|0;hU(a+8|0,g+652|0,f,b,c,d,e);f=J[a+12>>2];J[a>>2]=J[a+8>>2];J[a+4>>2]=f;FU(g+1976|0,a,b,c,d,e);fc=a+48|0;return 0} +function fzb(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function ezb(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+1|0; +c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+2|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function _yb(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=((J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+2|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>> +2]){b=hl(a);if(b)break a}b=0}return b|0}function WQa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218336;b=J[a+180>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+320>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+188>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+320>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function Peb(a){a=a|0;var b=0,c=0,d=0;c=fc-16|0;fc=c;a:{b:{if(!(!J[a+16>>2]|!J[a+20>>2])){d=yq(c+12|0,1,0,0,1,0,0); +b=J[a+16>>2];if(!(!b|!J[a+20>>2])){J[699344]=0;BD(b,d);b=J[699344];J[699344]=0;if((b|0)==1)break b;a=J[a+16>>2];J[699344]=0;Mu(a);a=J[699344];J[699344]=0;if((a|0)==1)break b}Jd(d)}fc=c+16|0;break a}a=Z()|0;Jd(d);ba(a|0);B()}return 0}function NMa(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];if(!b){while(1){b=J[a+32784>>2];if(!b){if(!(!J[a+34092>>2]|!J[a+34096>>2]))return-1;EB(a);continue}break}c=J[a+32780>>2];d=K[(c+a|0)+12|0];J[a+32784>>2]=b-1;J[a+32780>>2]=c+1&32767;return d|0}a=J[b+36>>2];if((a|0)>=J[b+ +28>>2]){if(!Wt(b))return-1;a=J[b+36>>2]}J[b+36>>2]=a+1;return K[J[b+32>>2]+a|0]}function Lsb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[b+36>>2];a:{if(!d)break a;c=J[b+40>>2];while(1){e=J[c+28>>2];b:{if(!e)break b;f=J[c+32>>2];if(!f)break b;kc[J[a+156>>2]](f,e);d=J[b+36>>2]}c=c+1296|0;g=g+1|0;if(g>>>0>>0)continue;break}if(!d)break a;c=J[b+40>>2];if(!c)break a;kc[J[a+156>>2]](c,P(d,36))}kc[J[a+156>>2]](b,44);return 0}function $yb(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=((J[b+ +1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0)+3|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+1|0;b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}}J[a+2556>>2]=J[a+2556>>2]+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function zsa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2433192;Hd(a+80|0);J[a>>2]=2432988;Hd(a+48|0);Hd(a+24|0);b=J[a+20>>2];J[a+20>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a; +J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}wc(a+8|0);return nd(a)|0}function zG(a,b){var c=0,d=0,e=0;d=fc-32|0;fc=d;c=H[b|0];a:{if(!(K[b+1|0]?c:0)){b=Dz(a,c);break a}Ac(d,0,32);c=K[b|0];if(c)while(1){e=(c>>>3&28)+d|0;J[e>>2]=J[e>>2]|1<>>3&28)+d>>2]>>>c&1)break a;c=K[b+1|0];b=b+1|0;if(c)continue;break}}fc=d+32|0;return b-a|0}function mRa(a){a=a|0;var b=0,c=0,d=0;b=vc(64); +c=J[a+8>>2];d=J[J[c>>2]+8>>2];J[699344]=0;c=_(d|0,c|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[b+8>>2]=c;J[b>>2]=2218216;J[b+4>>2]=2;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+48>>3]=O[a+48>>3];O[b+56>>3]=O[a+56>>3];return b|0}a=Z()|0;uc(b);ba(a|0);B()}function hsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1111577417){Jc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];J[b+36>>2]=J[c+36>>2];H[b+40|0]=K[c+40|0];H[b+41|0]=K[c+41|0];H[b+42|0]=K[c+42|0];H[b+43| +0]=K[c+43|0];H[b+44|0]=K[c+44|0];I[b+46>>1]=L[c+46>>1];I[b+48>>1]=L[c+48>>1];I[b+50>>1]=L[c+50>>1];I[b+52>>1]=L[c+52>>1];H[b+54|0]=K[c+54|0];return 0}function S0(a){var b=0,c=0,d=0;b=(J[a+20>>2]+J[a+16>>2]|0)-1|0;b=J[J[a+4>>2]+(b>>>6&67108860)>>2]+((b&255)<<4)|0;c=J[b+8>>2];if(c){uc(tK(c));J[b+8>>2]=0}c=J[b+12>>2];if(c){uc(sK(c));J[b+12>>2]=0}c=J[a+20>>2];J[a+20>>2]=c-1;b=J[a+8>>2];d=J[a+4>>2];if((((b|0)!=(d|0)?(b-d<<6)-1|0:0)-(c+J[a+16>>2]|0)|0)+1>>>0>=512){uc(J[b-4>>2]);J[a+8>>2]=J[a+8>>2]-4}}function Dj(a, +b){a=a|0;b=b|0;var c=0,d=0;b=J[b>>2];d=J[b+4>>2];c=J[a>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+44>>2];J[c+40>>2]=J[b+40>>2];J[c+44>>2]=d;d=J[b+36>>2];J[c+32>>2]=J[b+32>>2];J[c+36>>2]=d;d=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=d;d=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;return a|0}function xoa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a=J[a+12>>2]+2776|0;c=J[c>>2];if((b|0)!=0&(c|0)>7){kc[J[J[a>>2]+(K[J[a+8>>2]+1|0]<<2)>>2]](a,O[b>>3],O[b+8>>3])|0;e= +b+16|0;c=(c-2>>>0)/6|0;while(1){b=P(d,48)+e|0;kc[J[J[a>>2]+8>>2]](a,O[b>>3],O[b+8>>3],O[b+16>>3],O[b+24>>3],O[b+32>>3],O[b+40>>3])|0;d=d+1|0;if((c|0)!=(d|0))continue;break}}return 0}function oBb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=J[a+4>>2];d=J[a+12>>2];if(d){J[f+20>>2]=d+J[f+20>>2];J[a+12>>2]=0;J[a+8>>2]=d+J[a+8>>2]}d=c;e=d;a:{if((d|0)<=0)break a;while(1){e=0;g=J[f+20>>2];if(g>>>0>=M[f+16>>2])break a;J[f+20>>2]=g+1;e=d-1|0;H[g|0]=b>>>(e<<3);g=(d|0)>1;d=e;if(g)continue;break}e=c}J[a+8>> +2]=J[a+8>>2]+c;return e|0}function mV(a){var b=0,c=0,d=0,e=0;c=fc-32|0;fc=c;e=J[a+56>>2];b=vEb(e,0,L[a+84>>1],0);d=jc;if(!(!e|!d)){d=J[a>>2];b=J[a+628>>2];J[c+16>>2]=72551;Uc(b,d,73496,c+16|0);b=0}a:{if(L[a+138>>1]!=1)break a;d=L[a+98>>1];b=vEb(d,0,b,0);e=jc;if(!d|!e)break a;b=J[a>>2];a=J[a+628>>2];J[c>>2]=72551;Uc(a,b,73496,c);b=0}fc=c+32|0;return(b>>>3|0)+((b&7)!=0)|0}function iEa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+540>>2];e=J[a+536>>2];a:{if(d>>>0>=e>>>0){d=J[a+12>>2];if(c>>>0>=512){d= +OA(d,b,J[a+20>>2],c,0);a=a+20|0;break a}e=OA(d,a+24|0,J[a+20>>2],512,0);J[a+540>>2]=0;J[a+536>>2]=e;d=0}f=(a+d|0)+24|0;d=c+d>>>0>>0?c:e-d|0;xc(b,f,d);J[a+540>>2]=J[a+540>>2]+d;a=a+20|0}J[a>>2]=J[a>>2]+d;return d|0}function ZCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if((b|0)>0)while(1){c=b;b=J[a>>2];J[a>>2]=0;b:{if(!b)break b;J[699344]=0;d=J[b+4>>2]-1|0;J[b+4>>2]=d;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(d)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=c-1|0;a= +a+4|0;if(c>>>0>1)continue;break}return}ea(0)|0;Bc();B()}function Voa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;a=J[a+12>>2];a:{if(H[b+11|0]>=0){J[c+8>>2]=J[b+8>>2];d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;break a}Ve(c,J[b>>2],J[b+4>>2])}J[699344]=0;a=aa(6384,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+11|0]<0)uc(J[c>>2]);fc=c+16|0;return a|0}a=Z()|0;if(H[c+11|0]<0)uc(J[c>>2]);ba(a|0);B()}function Toa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;a=J[a+12>>2];a:{if(H[b+11|0]>=0){J[c+8>>2]= +J[b+8>>2];d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;break a}Ve(c,J[b>>2],J[b+4>>2])}J[699344]=0;a=aa(6385,a|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+11|0]<0)uc(J[c>>2]);fc=c+16|0;return a|0}a=Z()|0;if(H[c+11|0]<0)uc(J[c>>2]);ba(a|0);B()}function RDb(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;e=-1;d=Ai(a,b+12|0,4);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((dk(a,K[c+(b+12|0)|0])|0)!=-1)continue;break a}break}if((d|0)<4)break a;a=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15| +0]<<24);e=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))!=1296647690?-1:0}fc=b+16|0;return e|0}function JDb(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;e=-1;d=Ai(a,b+12|0,4);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((dk(a,K[c+(b+12|0)|0])|0)!=-1)continue;break a}break}if((d|0)<4)break a;a=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);e=(a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24))!=1504078485?-1:0}fc=b+16|0;return e|0}function t9a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=Q(0),e=Q(0),f=Q(0), +g=Q(0);f=N[a+12>>2];d=Q(N[a+20>>2]-f);g=N[a+16>>2];e=Q(N[a+24>>2]-g);b=Q(Q(Q(Q(b-f)*d)+Q(Q(c-g)*e))/Q(Q(d*d)+Q(e*e)));if(!(!(b>2]==Q(0)))return Q(N[a+152>>2]);if(!(!(b>Q(1))|N[a+124>>2]==Q(0)))return Q(N[a+156>>2]);c=N[a+152>>2];return Q(Q(Q(Q(N[a+156>>2]-c)*b)+c))}function fhb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a>>2];d=J[a+44>>2];if(d){e=J[d>>2];if(!(!e|!J[e+96>>2]))J[e+88>>2]=d}d=xN(J[c+504>>2],b);if(!d){b=J[J[c+504>>2]+88>>2];c=J[b+16>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=c;J[a+ +36>>2]=J[b+36>>2];c=J[b+32>>2];J[a+28>>2]=J[b+28>>2];J[a+32>>2]=c;c=J[b+24>>2];J[a+20>>2]=J[b+20>>2];J[a+24>>2]=c}return d|0}function aea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc+-64|0;fc=d;e=1;a:{if(Mj(a,b,0))break a;e=0;if(!b)break a;b=pm(b,2640868,2640916);e=0;if(!b)break a;Ac(d+12|0,0,52);J[d+56>>2]=1;J[d+20>>2]=-1;J[d+16>>2]=a;J[d+8>>2]=b;kc[J[J[b>>2]+28>>2]](b,d+8|0,J[c>>2],1);a=J[d+32>>2];if((a|0)==1)J[c>>2]=J[d+24>>2];e=(a|0)==1}a=e;fc=d- -64|0;return a|0}function XGa(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0;c=fc-32|0;fc=c;a=lI(c+12|0,a);J[699344]=0;ca(5106,a|0,c+28|0,c+24|0);e=J[699344];J[699344]=0;if((e|0)!=1){Rc(a);a=vc(12);d=O[b>>3];b=J[c+24>>2];J[a+4>>2]=J[c+28>>2];J[a>>2]=2383424;d=d*+(b|0);a:{if(R(d)<2147483648){b=~~d;break a}b=-2147483648}J[a+8>>2]=b;fc=c+32|0;return a|0}b=Z()|0;Rc(a);ba(b|0);B()}function Op(a,b){a=a|0;b=b|0;var c=0,d=0;kc[J[J[a>>2]+8>>2]](a,6);c=J[a+12>>2];b=J[b>>2];J[c>>2]=J[(b>>>18&60)+2463936>>2];d=J[a+16>>2];J[c+16>>2]=J[(b>>>2&60)+2463936>>2];J[c+12>>2]=J[(b>>> +6&60)+2463936>>2];J[c+8>>2]=J[(b>>>10&60)+2463936>>2];J[c+4>>2]=J[(b>>>14&60)+2463936>>2];J[a+12>>2]=c+24;J[c+20>>2]=J[((b&15)<<2)+2463936>>2];J[a+16>>2]=d+6}function Caa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!b){g=K[d|0];e=6;d=d+1|0;b=192}H[c|0]=(b&g)>>>e;e=e-2|0;b=(b&252)>>>2|0;c=J[a+584>>2]+c|0;f=f+1|0;if((f|0)>2])continue;break}}return 0} +function Baa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0;while(1){if(!b){g=K[d|0];e=4;d=d+1|0;b=240}H[c|0]=(b&g)>>>e;e=e-4|0;b=(b&240)>>>4|0;c=J[a+584>>2]+c|0;f=f+1|0;if((f|0)>2])continue;break}}return 0}function vtb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;d=J[a+428>>2];c=L[b+34>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>> +8;f=d+8|0;c=L[b+36>>1];e=2;a:{if(!(K[b+38|0]|(c|0)!=L[b+34>>1]))break a;c=c<<8|c>>>8;H[d+10|0]=c;H[d+11|0]=c>>>8;c=K[b+38|0];e=4;if(!c)break a;H[d+12|0]=c;e=5}c=e;return Ce(a,J[b>>2],c,f)|0}function mob(a){a=a|0;var b=0,c=0;a:{b=J[a>>2];if(!b)break a;a=a+20|0;if(!a)break a;b=J[b>>2];if(!b)break a;b:{if(!(H[a+16|0]&1))break b;c=J[a+4>>2];if(c)kc[J[b+8>>2]](b,c);J[a+4>>2]=0;c=J[a+8>>2];if(c)kc[J[b+8>>2]](b,c);J[a+8>>2]=0;c=J[a+12>>2];if(!c)break b;kc[J[b+8>>2]](b,c)}J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]= +0;J[a+8>>2]=0;J[a+12>>2]=0}}function Zmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];a:{if((I[d+22>>1]+I[d+58>>1]|0)+1>>>0>M[d+4>>2]){d=Hh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+68|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[f+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function Vsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-32|0;fc=d;a:{c=vj(a,0,J[a+116>>2],a- -64|0);if(!((c|0)>=J[a+112>>2]&J[a+116>> +2]>=(c|0))){a=Qc(d+8|0,2393794,2394220,619,2413160,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}J[b>>2]=J[J[a+100>>2]+(c-J[a+104>>2]<<2)>>2];fc=d+32|0;return c|0}B()}function MU(a){a=a|0;var b=0,c=0,d=0;c=fc-16|0;fc=c;J[c+12>>2]=0;b=c+4|0;J[c+8>>2]=b;J[c>>2]=3;J[699344]=0;J[c+4>>2]=b;b=_(4,24)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[b+8>>2]=3;J[b+4>>2]=a;J[b+20>>2]=0;d=b+12|0;J[b+16>>2]=d;J[b+12>>2]=d;d=J[a>>2];J[b>>2]=d;J[d+4>>2]=b;J[a>>2]=b;J[a+ +8>>2]=J[a+8>>2]+1;fc=c+16|0;return}a=Z()|0;Qp(c);ba(a|0);B()}function HBb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+52>>2];a=kc[J[J[b>>2]+20>>2]](b,2)|0;kc[J[J[b>>2]+20>>2]](b,1)|0;if((a|0)>=4){c=a-3|0;while(1){a=c-4|0;c=a;d=kc[J[J[b>>2]+20>>2]](b,4)|0;a:{if((d|0)<=0)break a;while(1){kc[J[J[b>>2]+20>>2]](b,1)|0;c=a-1|0;if((a|0)<2)break a;e=d>>>0>1;d=d-1|0;a=c;if(e)continue;break}}if((c|0)>0)continue;break}}}function yF(a,b,c,d){H[a+53|0]=1;a:{if(J[a+4>>2]!=(c|0))break a;H[a+52|0]=1;c=J[a+16>>2];b:{if(!c){J[a+ +36>>2]=1;J[a+24>>2]=d;J[a+16>>2]=b;if((d|0)!=1)break a;if(J[a+48>>2]==1)break b;break a}if((b|0)==(c|0)){c=J[a+24>>2];if((c|0)==2){J[a+24>>2]=d;c=d}if(J[a+48>>2]!=1)break a;if((c|0)==1)break b;break a}J[a+36>>2]=J[a+36>>2]+1}H[a+54|0]=1}}function qu(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=fc-16|0;fc=e;a:{if(!a){c=0;break a}if(!b){c=a;break a}b:{g=Yc(a);f=Yc(b);h=g+f|0;i=h+2|0;if((d|0)>=(i|0)?c:0)break b;c=kc[J[663198]](i)|0;if(c)break b;J[e>>2]=14116;Hc(0,0,0,0,0,2,2,3,14116,0,0,0,32879,e);c=0;break a}b= +xc(c,b,f);d=b+f|0;H[d|0]=58;xc(d+1|0,a,g);H[(b+h|0)+1|0]=0}fc=e+16|0;return c}function bW(a){a=a|0;var b=0,c=0;J[a>>2]=2417608;Md(a+100|0);Md(a+72|0);Hd(a+48|0);J[a+36>>2]=2392964;J[a+12>>2]=2392932;b=J[a+40>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+40>>2]=0}J[a+28>>2]=2392964;b=J[a+32>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+32>>2]=0}wc(a+20|0);return nd(a)|0}function Tob(a){a=a|0;var b=0,c=0,d=0;c=J[a+16>>2];if(M[a+20>>2]>=c+16>>>0){d=J[a+ +32>>2];b=$u(a,J[c>>2],0);J[d+84>>2]=((b>>31)+b|0)+32768&-65536;b=$u(a,J[c+4>>2],0);J[d+88>>2]=((b>>31)+b|0)+32768&-65536;b=$u(a,J[c+8>>2],0);J[d+92>>2]=((b>>31)+b|0)+32768&-65536;a=$u(a,J[c+12>>2],0);J[d+96>>2]=((a>>31)+a|0)+32768&-65536;a=0}else a=161;return a|0}function LAb(a,b){a=a|0;b=b|0;I[a+1016>>1]=L[b+28>>1];H[a+1018|0]=K[b+30|0];H[a+1019|0]=K[b+31|0];H[a+1020|0]=K[b+32|0];H[a+1021|0]=K[b+33|0];H[a+1022|0]=K[b+34|0];J[a+1024>>2]=J[b+36>>2];J[a+1028>>2]=J[b+40>>2];H[a+1032|0]=K[b+44|0];J[a+ +1036>>2]=J[b+48>>2];J[a+1040>>2]=J[b+52>>2];J[a+1044>>2]=J[b+56>>2];J[a+1048>>2]=J[b+60>>2];return iaa(a)|0}function ysa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2433192;Hd(a+80|0);J[a>>2]=2432988;Hd(a+48|0);Hd(a+24|0);b=J[a+20>>2];J[a+20>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}wc(a+8|0);uc(nd(a))}function ee(a,b){var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc= +e;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+1>>>0)break d;f=J[a+20>>2];e:{if(f){d=e+14|0;if((kc[f|0](a,c,d,2)|0)!=2)break d;c=J[a+8>>2];break e}b=J[a>>2];if(!b)break c;d=b+c|0}b=K[d|0]|K[d+1|0]<<8;g=b<<8|b>>>8;break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+2}fc=e+16|0;return g&65535}function XRa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(J[a+12>>2]>0)while(1){f=(e<<2)+b|0;a:{b:{d=(e<<3)+a|0;c=O[d+24>>3];if(c>0){c=c*65536;if(!(R(c)<2147483648))break b;d=~~c;break a}c=O[d+56>>3];d=0;if(!(c<0))break a; +c=c*65536;if(!(R(c)<2147483648))break b;d=~~c;break a}d=-2147483648}J[f>>2]=d;e=e+1|0;if((e|0)>2])continue;break}}function Qd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=J[a>>2];d=c;a:{if(!K[a+8|0])break a;d=0;if(!c)break a;d=J[c>>2]}a=J[a+4>>2];c=bf(b);f=(c|0)<0?-2147483648:c;b:{if((a|0)!=(f|0))break b;if(!c)return 1;a=0;while(1){e=a<<2;g=J[e+d>>2];c=J[b+e>>2];e=(g|0)==(c|0);if((c|0)!=(g|0))break b;a=a+1|0;if((f|0)!=(a|0))continue;break}}return e|0}function QCb(a,b){a=a|0;b=b|0;var c=0,d= +0,e=0;c=fc-32|0;fc=c;d=K[a+24|0];e=K[a+12|0];J[c+24>>2]=J[a+16>>2];J[c+20>>2]=d;J[c+16>>2]=e;md(b,209775,c+16|0);if(J[a+16>>2]>0){d=0;while(1){e=J[J[a+20>>2]+(d<<2)>>2];J[c+8>>2]=d;J[c>>2]=d;J[c+12>>2]=e&2047;J[c+4>>2]=e>>>11;md(b,209862,c);d=d+1|0;if((d|0)>2])continue;break}}fc=c+32|0;return 0}function zca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-16|0;fc=e;d=J[a+584>>2];if(K[a+48|0]&4){ae(73971,13,1,b);a:{b:switch(J[d>>2]-1|0){case 0:ae(74445,5,1,b);break a;case 1:ae(74859,24,1,b);break a; +case 2:break b;default:break a}ae(75295,25,1,b)}f=J[d>>2];J[e+4>>2]=f;J[e>>2]=f;md(b,75814,e)}d=J[d+52>>2];if(d)kc[d|0](a,b,c);fc=e+16|0}function Ws(a){a=a|0;var b=0;J[a>>2]=2628424;J[699344]=0;_(3024,a|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)==1){oa(ea(0)|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;if((b|0)==1)break a}b:{if(!K[a+96|0])break b;b=J[a+32>>2];if(!b)break b;uc(b)}c:{if(!K[a+97|0])break c;b=J[a+56>>2];if(!b)break c;uc(b)}return uz(a)|0}ea(0)|0;Bc();B()}function $hb(a,b){a=a|0;b= +b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a=J[a+532>>2];if(!a)return 6;d=J[a+4>>2];J[b>>2]=d;J[b+4>>2]=J[a>>2];if(!d)return 0;g=a+88|0;h=b+8|0;b=0;while(1){c=P(b,12);e=c+h|0;J[e>>2]=J[(a+(b<<2)|0)+8>>2];c=c+g|0;f=J[c+4>>2];J[e+4>>2]=J[f>>2];J[e+8>>2]=J[((K[c|0]<<2)+f|0)-4>>2];b=b+1|0;if((d|0)!=(b|0))continue;break}return 0}function v3(a,b){var c=0,d=0,e=0;d=fc-32|0;fc=d;a:{if(!a)break a;c=J[a+24>>2];b:{if(b>>>0<=1){e=J[c+24>>2];J[a+48>>2]=0;J[a+44>>2]=e;H[a+65|0]=0;H[a+36|0]=0;H[a+254|0]=0;H[a+62|0]=0;if((b| +0)==1)break b}H[a+253|0]=0;J[a+180>>2]=-1;H[a+63|0]=0;H[a+64|0]=0;J[a+52>>2]=0;J[a+56>>2]=0}c=J[J[c+20>>2]+20>>2];if(!c)break a;kc[c|0](a,b)}fc=d+32|0}function sLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=vc(8);J[699344]=0;d=aa(3349,e|0,800460)|0;f=J[699344];J[699344]=0;if((f|0)!=1){Qh(d,J[a+20>>2]);od(d,801228);if(J[a+24>>2]){od(d,802053);Qh(d,J[a+24>>2]);od(d,801228)}if(K[a+28|0])od(d,802708);od(d,787579);a=kc[b|0](c,J[d+4>>2],J[d>>2])|0;uc(Zc(d));return a|0}a=Z()|0;uc(e);ba(a|0);B()}function J_(a){var b= +0,c=0,d=0;a:{if(J[a+8>>2]==13)break a;c=a+8|0;while(1){b=J[a+16>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)!=-1){if(J[c>>2]==13)break a;continue}b=J[a+16>>2];kc[J[J[b>>2]+24>>2]](b);yc(c);b=J[a+4>>2]+1|0;J[a+4>>2]=b;d=J[a>>2];if((b|0)>2]){Sc(d,b,c,0);b=J[a+16>>2];kc[J[J[b>>2]+20>>2]](b)}if(J[c>>2]!=13)continue;break}}}function oIa(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2376196;a:{b=J[a+4>>2];if(b){J[699344]=0;VC(b);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[b+8>>2];if(c){d=c;e=J[b+12>>2];if((e| +0)!=(c|0)){while(1){d=e-20|0;if(H[e-9|0]<0)uc(J[d>>2]);e=d;if((e|0)!=(c|0))continue;break}d=J[b+8>>2]}J[b+12>>2]=c;uc(d)}uc(b)}uc(a);return}ea(0)|0;Bc();B()}function d9(a,b,c,d){var e=0,f=0;e=fc-16|0;fc=e;a:{if(!d)break a;J[d>>2]=0;f=!b;if(f|!c|((f?-1:J[b+8>>2])|0)!=1)break a;ss(c,e+12|0,e+8|0,0,0);if(!J[e+12>>2]|!J[e+8>>2])break a;b:{c:{if(!a){a=cv(b);if(a)break c;a=0;break a}hO(a,b);if((a|0)!=(b|0))break c;a=b;b=Ff(0,b);break b}if(b)J[b+16>>2]=J[b+16>>2]+1}J[d>>2]=b}fc=e+16|0;return a}function IXa(a, +b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=fc-32|0;fc=f;J[f+16>>2]=13;g=c;c=f+16|0;a:{if(!oK(b,g,c,a+292|0)){yc(c);break a}H[f+15|0]=0;H[f+14|0]=0;c=b;b=a+328|0;nK(f,c,d,e,f+16|0,b,b,f+15|0,f+14|0);if(H[f+11|0]<0)uc(J[f>>2]);b=K[a+339|0];if(b<<24>>24<0?J[a+332>>2]:b)J[a+8>>2]=J[a+8>>2]|524288;yc(f+16|0)}fc=f+32|0}function Eea(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;J[e+12>>2]=0;if(K[b+11|0]>>>7|0)b=J[b>>2];J[e+8>>2]=J[698583];J[698583]=0;d=Ig(b,e+12|0,d);f=J[698583]; +J[698583]=J[e+8>>2];J[e+8>>2]=f;a:{b:{if(J[e+8>>2]!=68){f=J[e+12>>2];if((f|0)==(b|0))break b;if(c)J[c>>2]=f-b;fc=e+16|0;a=d;break a}Is(a);B()}_y(a);B()}return a|0}function oCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b+12>>2];if((c|0)>J[a+56>>2]){rd(208728,0);return-1}a:{b:{d=J[a+84>>2]-4|0;if(d)if((d|0)==12)break b;else break a;H[(J[J[a+64>>2]+24>>2]+P(c,488)|0)+417|0]=K[b+17|0];return 0}e=-1;a=J[a+52>>2];if(!a|J[a+40>>2]>0)break a;H[(J[J[a+32>>2]+24>>2]+P(c,488)|0)+417|0]=K[b+17|0];e=0}return e|0}function cPa(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0;if(!a)return(b?-1:0)|0;if(!b)return 1;c=K[a|0];a:{if(!c)break a;while(1){d=K[b|0];if(!d){e=c;break a}if(!((c|0)==(d|0)|((c-65>>>0<26?c|32:c)|0)==((d-65>>>0<26?d|32:d)|0))){e=c;break a}b=b+1|0;c=K[a+1|0];a=a+1|0;if(c)continue;break}}a=K[b|0];return(e-65>>>0<26?e|32:e)-(a-65>>>0<26?a|32:a)|0}function T_(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2317484;b=J[a+8>>2];if(b)while(1){d=J[J[a+12>>2]+(c<<2)>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+8>>2]}c=c+1|0;if(c>>>0>>0)continue;break}b= +J[a+12>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+16>>2];if(b)uc(ld(b));b=J[a+20>>2];if(b)uc(ld(b));return a|0}ea(0)|0;Bc();B()}function K7a(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;var h=0,i=0,j=0,k=0,l=0;h=fc-16|0;fc=h;i=J[a+452>>2];j=J[i+16>>2];k=J[f>>2];J[h+12>>2]=0;l=b;b=g-k|0;kc[J[J[a+472>>2]+4>>2]](a,l,c,d,J[i+12>>2],h+12|0,b>>>0>>0?b:j);kc[J[J[a+480>>2]+4>>2]](a,J[i+12>>2],(J[f>>2]<<2)+e|0,J[h+12>>2]);J[f>>2]=J[f>>2]+J[h+12>>2];fc=h+16|0}function pIa(a){a= +a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2376196;a:{b=J[a+4>>2];if(b){J[699344]=0;VC(b);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=J[b+8>>2];if(c){d=c;e=J[b+12>>2];if((e|0)!=(c|0)){while(1){d=e-20|0;if(H[e-9|0]<0)uc(J[d>>2]);e=d;if((e|0)!=(c|0))continue;break}d=J[b+8>>2]}J[b+12>>2]=c;uc(d)}uc(b)}return a|0}ea(0)|0;Bc();B()}function itb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+428>>2]+8|0;g=J[b+32>>2];if(g){e=J[b+36>>2];d=f;while(1){c=J[e>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d|0]=c; +H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;H[d+4|0]=K[e+4|0];e=e+8|0;d=d+5|0;h=h+1|0;if(h>>>0>2])continue;break}}return Ce(a,J[b>>2],P(g,5),f)|0}function fF(a,b){var c=0,d=0,e=0;a:{if(b>>>0<=31){if(b)break a;return 0}fa(204035,202126,198,212113);B()}while(1){b:{c:{if(H[a+16|0]&1){c=J[a+8>>2];e=c-1|0;J[a+8>>2]=e;if((c|0)>0){c=J[a+4>>2]>>>e&1;break c}c=Ng(a);if((c|0)>=0)break c;d=-1;break b}fa(202788,202126,203,212113);B()}d=d<<1|c;c=b>>>0>1;b=b-1|0;if(c)continue}break}return d}function XAb(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[b+88>>2];c=J[d+28>>2];a:{if(c){c=c-1|0;J[d+28>>2]=c;if(c)break a}c=J[d+1144>>2];b:{if(!c)break b;e=J[d+1148>>2];if(!e)break b;kc[J[a+156>>2]](e,c)}c=J[d+1172>>2];c:{if(!c)break c;e=J[d+1176>>2];if(!e)break c;kc[J[a+156>>2]](e,c)}kc[J[a+156>>2]](d,1180)}kc[J[a+156>>2]](b,92);return 0}function Olb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=J[a+20>>2];a=(c+(J[a+16>>2]<<3)|0)-8|0;if(a>>>0>=c>>>0){while(1){e=(a-c>>4<<3)+c|0;d=J[e>>2];if((d|0)==(b|0)){f=e;break a}d=d&2147483647; +f=(d|0)==(b|0)?e:f;if((a|0)!=(c|0)){d=b>>>0>d>>>0;c=d?e+8|0:c;a=d?a:e-8|0;if(c>>>0<=a>>>0)continue}break}if(f)break a}return 0}return J[f+4>>2]}function Kp(a,b){a:{if((b|0)>=1024){a=a*8.98846567431158E307;if(b>>>0<2047){b=b-1023|0;break a}a=a*8.98846567431158E307;b=((b|0)>=3069?3069:b)-2046|0;break a}if((b|0)>-1023)break a;a=a*2.004168360008973E-292;if(b>>>0>4294965304){b=b+969|0;break a}a=a*2.004168360008973E-292;b=((b|0)<=-2960?-2960:b)+1938|0}x(0,0);x(1,b+1023<<20);return a*+z()}function Icb(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;if(f>>>0<=254){g=255-f|0;H[a+2|0]=(P(g,K[a+2|0])+255>>>8)+(P(b,f)+255>>>8);H[a+1|0]=(P(K[a+1|0],g)+255>>>8)+(P(c,f)+255>>>8);H[a|0]=(P(K[a|0],g)+255>>>8)+(P(d,f)+255>>>8);H[a+3|0]=(P(K[a+3|0],g)+255>>>8)+(P(e,f)+255>>>8);return}H[a+1|0]=c;H[a+2|0]=b;H[a+3|0]=e;H[a|0]=d}function xEa(a){a=a|0;var b=0,c=0,d=0;c=vc(128);J[699344]=0;b=_(5258,c|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a>>2]=0;vd(a,b);J[699344]=0;$(5259,b|0);c=J[699344];J[699344]= +0;a:{if((c|0)!=1){J[699344]=0;ma(5260,b|0,0,32,5261,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}b=Z()|0;zc(a);ba(b|0);B()}return}a=Z()|0;uc(c);ba(a|0);B()}function tK(a){var b=0,c=0,d=0,e=0,f=0;b=J[a+16>>2];c=J[a+12>>2];a:{if((b|0)==(c|0)){c=b;break a}while(1){e=d<<2;f=J[e+c>>2];if(f){uc(xJ(f));J[J[a+12>>2]+e>>2]=0;c=J[a+12>>2];b=J[a+16>>2]}d=d+1|0;if(d>>>0>2>>>0)continue;break}}b=J[a+24>>2];if(b){uc(b);c=J[a+12>>2]}if(c){J[a+16>>2]=c;uc(c)}b=J[a>>2];if(b){J[a+4>>2]=b;uc(b)}return a}function tIa(a, +b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=c+4|0;kc[J[J[a>>2]+12>>2]](d,a,b);J[699344]=0;a=_(3202,d|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){if(!a)break a;J[699344]=0;da(3036,d|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break a}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0}function fsb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1346458452){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];H[b+34|0]=K[c+34|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>> +2];d=J[c+44>>2];J[b+44>>2]=d;if(d){e=b;d=P(d,36);b=kc[J[a+152>>2]](d)|0;J[e+48>>2]=b;if(b){xc(b,J[c+48>>2],d);return 0}Jc(a,1,0,0);a=1}else a=0;return a|0}function RAb(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;if(K[b+28|0])b=c;else{c=J[b+56>>2];d=J[b+52>>2];e=J[b+48>>2];f=J[b+44>>2];g=J[b+40>>2];h=J[b+36>>2];i=J[b+32>>2];j=1;b=J[b+60>>2]}J[a+2224>>2]=b;J[a+2220>>2]=c;J[a+2216>>2]=d;J[a+2212>>2]=e;J[a+2208>>2]=f;J[a+2204>>2]=g;J[a+2200>>2]=h;J[a+2196>>2]=i;H[a+309|0]=j;return 0}function KUa(a){a= +a|0;var b=0;J[a>>2]=2216844;a:{b=J[a+2456>>2];b:{if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[a+2460>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break b}b=J[a+2468>>2];if(!b)break a;J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(a)}function Daa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+588>>2]>0){b=J[a+540>>2];c=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;d=J[a+636>>2]+J[a+616>>2]|0;b=0; +while(1){if(!(b&255)){f=K[d|0];d=d+1|0;b=128}b=b&255;H[c|0]=(b&f)!=0;b=b>>>1|0;c=J[a+584>>2]+c|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function rzb(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];H[b+3|0]=K[c+3|0];c=c+4|0;b=(J[a+584>>2]<<2)+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function icb(a, +b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=P(e,f)+255|0;if(b>>>0>=256){c=K[a+3|0];b=b>>>8|0;H[a+3|0]=c+b-(P(b,c)+255>>>8);d=K[a+2|0];f=P(b,c-d|0)+255>>>8|0;e=d;d=255-b|0;H[a+2|0]=f+(P(e,d)+255>>>8|0);e=K[a+1|0];H[a+1|0]=(P(b,c-e|0)+255>>>8)+(P(d,e)+255>>>8);e=a;a=K[a|0];H[e|0]=(P(b,c-a|0)+255>>>8)+(P(a,d)+255>>>8)}}function d0(a){a:{if(J[a>>2]!=4)break a;a=J[a+8>>2];if(!Ic(a,838468))break a;if(!Ic(a,838653))return 1;if(!Ic(a,815981))return 2;if(!Ic(a,838886))return 3;if(!Ic(a,838993))return 4; +if(!Ic(a,839201))return 5;if(!Ic(a,839379))return 6;if(!Ic(a,839525))return 7;if(!Ic(a,839711))return 8;if(Ic(a,839883))break a;return 9}return 0}function PAb(a,b){a=a|0;b=b|0;var c=0;if(K[b+28|0]){H[a+311|0]=0;b=J[a+2232>>2];a:{if(!b)break a;c=J[a+2236>>2];if(!c)break a;kc[J[a+156>>2]](c,b)}J[a+2232>>2]=0;J[a+2236>>2]=0;return 0}H[a+311|0]=1;c=J[b+32>>2];J[a+2232>>2]=c;if(c){c=kc[J[a+152>>2]](c)|0;J[a+2236>>2]=c;if(!c){Jc(a,1,0,0);return 1}xc(c,J[b+36>>2],J[b+32>>2])}return 0}function C4a(a,b,c){a= +a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;a:{b:{if(c){c=a+72|0;if(W3(c,b))break b;e=d+4|0;UL(e);J[699344]=0;c=aa(2993,c|0,e|0)|0;e=J[699344];J[699344]=0;if((e|0)==1)break a;if(H[d+15|0]<0)uc(J[d+4>>2]);if(c)break b}Y3(a+72|0,b);J[a+48>>2]=a+8}fc=d+16|0;return}a=Z()|0;if(H[d+15|0]<0)uc(J[d+4>>2]);ba(a|0);B()}function uIa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=c+4|0;kc[J[J[a>>2]+12>>2]](d,a,b);J[699344]=0;a=_(3202,d|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){if(a)break a;J[699344]=0;_(3206, +d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)break a}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0}function kub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{if(K[a+286|0]|!K[a+285|0]|(K[a+287|0]|K[a+288|0]))break a;if(K[a+289|0])break a;if((c|0)!=2){Jc(a,1028,0,0);return 1028}c=0;b:{if(!K[a+112|0])break b;c=kc[J[b+4>>2]](a,b,e)|0;if(c)break b;a=J[e>>2];H[a+32|0]=K[d|0];H[a+33|0]=K[d+1|0];c=0}return c|0}Jc(a,1029,0,0);return 1029}function id(a){var b=0,c=0,d= +0;a:{b=J[a+8>>2];if(b)while(1){c=J[b>>2];d=J[J[a>>2]+16>>2];J[699344]=0;da(d|0,b|0,1);d=J[699344];J[699344]=0;if((d|0)==1)break a;uc(b);b=c;if(b)continue;break}J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a}oa(ea(0)|0)|0;J[699344]=0;ka(5053);c=J[699344];J[699344]=0;if((c|0)!=1)return a;ea(0)|0;Bc();B()}function _Oa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=O[b>>3];O[a+8>>3]=d;e=O[b+8>>3];O[a+16>>3]=e;f=O[b+16>>3];O[a+24>>3]=f;g=O[b+24>>3];O[a+32>>3]=g;h=O[b+32>>3];O[a+40>>3]=h;i=O[b+40>>3]; +c=1/(d*g-f*e);O[a+80>>3]=d*c;O[a+72>>3]=c*-f;O[a- -64>>3]=c*-e;O[a+56>>3]=g*c;O[a+48>>3]=i;O[a+96>>3]=c*(e*h-i*d);O[a+88>>3]=c*(f*i-h*g)}function VKa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+16>>2];c=d+24|0;a:{if((c|0)==(b|0))break a;f=K[b+11|0];e=f<<24>>24;if(H[d+35|0]>=0){if((e|0)>=0){e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];break a}Gf(c,J[b>>2],J[b+4>>2]);break a}d=c;c=(e|0)<0;Lf(d,c?J[b>>2]:b,c?J[b+4>>2]:f)}a=J[J[a+16>>2]+40>>2];if(a)BI(a,b)}function Ec(a,b,c,d){a=a|0;b=b| +0;c=c|0;d=d|0;var e=0,f=0,g=0;e=K[b|0];if(e){f=b;while(1){g=P(g,17)+(e&255)|0;e=K[f+1|0];f=f+1|0;if(e)continue;break}}a:{e=J[J[a+8>>2]+((g>>>0)%((J[a+12>>2]<<1)-1>>>0)<<2)>>2];if(e)while(1){if(!Ic(b,J[e>>2]))break a;e=J[e+24>>2];if(e)continue;break}J[c>>2]=5;return c|0}return jf(e+8|0,J[a>>2],c,d)|0}function ru(a){var b=0,c=0,d=0;c=fc-16|0;fc=c;if(a)a:{b=kc[J[663195]](44)|0;if(!b){J[c>>2]=34150;Hc(0,0,0,0,0,30,2,3,34150,0,0,0,32879,c);break a}J[b>>2]=0;J[b+4>>2]=0;J[b+40>>2]=0;J[b+32>>2]=0;J[b+36>> +2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;if(!uu(b,a)){d=b;break a}uk(b)}fc=c+16|0;return d}function laa(a){var b=0,c=0;c=L[a+2322>>1];a:{b:{if(c>>>0>L[a+2324>>1])break b;while(1){if(K[a+497|0])break b;I[a+2322>>1]=c;b=c&65535;c:{if(!b)break c;b=ph(a,b);if(!b|K[b+30|0]|(!K[b+31|0]|!K[b+32|0]))break c;b=Zh(a,b,0);if(b)break a}c=c+1|0;if(L[a+2324>>1]>=(c&65535)>>>0)continue;break}}b=0;H[a+498|0]=K[a+497|0]?9:0}return b}function Uh(a){var b=0;a:{b=J[a+5820>>2]; +b:{if((b|0)==16){b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5817|0];I[a+5816>>1]=0;b=0;break b}if((b|0)<8)break a;b=J[a+20>>2];J[a+20>>2]=b+1;H[b+J[a+8>>2]|0]=K[a+5816|0];I[a+5816>>1]=K[a+5817|0];b=J[a+5820>>2]-8|0}J[a+5820>>2]=b}}function Kzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>>2];a:{if(!b)break a;c=J[a+644>>2];d=kc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c| +0]=K[a|0];H[c+1|0]=K[a+1|0];d=K[a+2|0];H[c+3|0]=0;H[c+2|0]=d;a=a+3|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function Jzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+224>>2];a:{if(!b)break a;c=J[a+644>>2];d=kc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a+2|0];H[c+1|0]=K[a+1|0];d=K[a|0];H[c+3|0]=0;H[c+2|0]=d;a=a+3|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function Izb(a){a=a|0;var b=0,c=0,d=0;b=J[a+ +224>>2];a:{if(!b)break a;c=J[a+644>>2];d=kc[b|0](a,J[a+680>>2]+J[a+572>>2]|0)|0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)<=0)break a;a=P(J[a+672>>2],3)+d|0;while(1){H[c|0]=K[a+2|0];H[c+1|0]=K[a+1|0];d=K[a|0];H[c+3|0]=0;H[c+2|0]=d;a=a+4|0;c=c+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function xna(a,b){a=a|0;b=b|0;var c=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a>>2]=0;J[a+4>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;I[a+14>>1]=65535;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]= +0;H[a+26|0]=0;J[699344]=0;b=aa(6621,a|0,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)return b|0;b=Z()|0;Tv(a);ba(b|0);B()}function mWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(b>>>0>2147482623)break a;e=b;d=J[a+1032>>2];if(!((d|0)<=(b|0)&(b+2|0)<=(J[a+1036>>2]+d|0))){d=0;if(hh(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;b=ge(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=b;if((b|0)<2)break a;d=J[a+1032>>2]}a=(e-d|0)+a|0;J[c>>2]=K[a+8|0]<<8|K[a+9|0];d=1}return d|0}function b0(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0, +f=0,g=0,h=0;e=fc-16|0;fc=e;d=J[a+80>>2];a:{if(d&2|(d&4?0:c)|!(d&32?c:1))break a;if(f=0,g=HB(J[J[a>>2]+36>>2],a+88|0,e+12|0),h=J[e+12>>2],h?f:g)break a;d=a+24|0;c=J[a+16>>2];if(c){c=Dd(c,843358);c=c?0:J[a+84>>2]}else c=0;EJ(b,d,c,O[a+48>>3],O[a+56>>3],O[a+64>>3],O[a+72>>3])}fc=e+16|0}function Wub(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=J[J[J[a+544>>2]+88>>2]+36>>2];e=J[a+644>>2];c=J[a+636>>2];J[a+644>>2]=c;J[a+636>>2]=e;d=J[a+672>>2];if((d|0)>2]){b=J[a+656>>2];f=(b<<2)+e|0;while(1){J[c>> +2]=J[f>>2];b=b+1|0;g=b>>>0>>0;f=g?f+4|0:e;b=g?b:0;c=c+4|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function TKa(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;g=J[a+16>>2];a=J[g+40>>2];if(!(!a|J[g+48>>2])){g=J[a>>2];if(g){h=c;b=b+1|0;c=J[bj(J[g+28>>2],b)+12>>2];O[h>>3]=O[c+48>>3]-O[c+32>>3];a=J[bj(J[J[a>>2]+28>>2],b)+12>>2];O[d>>3]=O[a+56>>3]-O[a+40>>3];J[e>>2]=0;J[e+4>>2]=1079115776;J[f>>2]=0;J[f+4>>2]=1079115776}}}function M1(a){var b=0,c=0,d=0;if(!a)return-1;b=J[a+ +64>>2];a:{if(!b)break a;c=J[a+68>>2];c=c?c:b;if(J[c+4>>2]!=1)break a;b:switch(J[a+16>>2]-2|0){case 0:case 2:break a;default:break b}a=0;b=J[c+44>>2];if(b)while(1){a=a+1|0;b=J[b+24>>2];if(b)continue;break}b=c+48|0;while(1){d=a;a=a+1|0;b=J[b>>2];if(b)continue;break}}return d}function $T(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=O[b+16>>3];c=O[a+16>>3];d=c>3]=d;e=O[a+32>>3];c=O[b+32>>3];if(!(!(e>c)&(!(c>0)|e!=0))){O[a+32>>3]=c;e=c}f=O[a+40>>3];c=O[b+40>>3];if(!(!(f0)|f!=0))){O[a+ +40>>3]=c;f=c}g=O[a+8>>3];c=O[b+8>>3];if(g!=0&!(c>3]=c;O[a+24>>3]=d-c;O[a+48>>3]=f-e}function iy(a){var b=0,c=0,d=0;a:{if(!a)break a;b=K[a|0];if(!b)break a;d=(b|0)==45;b=d+a|0;a=H[b|0];b:{if(!(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1))break b;while(1){if(c<<16>>16>3274){c=32767;break b}c=K[a+254832|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1)continue;break}}c=d?0-c|0:c}return c<<16>>16}function dMa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;b=vc(8); +J[699344]=0;e=_(3351,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){c=OB(J[693464]);if(c){if(J[a+44>>2]>0){b=0;while(1){f=d+8|0;kf(e,f,ei(c,J[J[a+32>>2]+(b<<2)>>2],f,8));b=b+1|0;if((b|0)>2])continue;break}}Mo(c)}fc=d+16|0;return e|0}a=Z()|0;uc(b);ba(a|0);B()}function Zq(a,b){var c=0,d=0,e=0,f=0,g=0;a:{b:{e=J[J[a+4>>2]+8>>2]&3;if(!e){c=Vi(0,0);d=J[J[a>>2]+12>>2];if(d)if(kc[d|0](a,c)|0)break b;f=a,g=tj(c)+8|0,J[f+12>>2]=g;po(c)}if(zi(b,J[a+12>>2]))break b;if(zi(b,J[a+8>>2]))break b;d=0;if(e)break a; +if(oo(b,c,J[a+12>>2]-8|0))break b;Pf(c);return 0}d=-1;if(!c)break a;Pf(c)}return d}function Q4a(a,b){a=a|0;b=b|0;var c=0,d=0;a:{c=J[a+4>>2];if((c|0)!=J[a+8>>2]){b:{if(H[b+11|0]>=0){d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;J[c+8>>2]=J[b+8>>2];break b}d=J[b+4>>2];b=J[b>>2];J[699344]=0;ca(15,c|0,b|0,d|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a+4>>2]=c+12;return}eM(a,b);return}b=Z()|0;J[a+4>>2]=c;ba(b|0);B()}function CG(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=fc-240|0;fc=h;J[h>>2]=a;i=1;a:{if((d| +0)<2)break a;k=0-b|0;f=a;while(1){f=f+k|0;j=d-2|0;g=f-J[(j<<2)+e>>2]|0;if((kr(a,g,c)|0)>=0)if((kr(a,f,c)|0)>=0)break a;l=g;g=(kr(g,f,c)|0)>=0;f=g?l:f;J[(i<<2)+h>>2]=f;i=i+1|0;d=g?d-1|0:j;if((d|0)>1)continue;break}}_S(b,h,i);fc=h+240|0}function B3(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;J[c+12>>2]=0;a:{b:{d=K[b+11|0];e=d<<24>>24<0;f=e?J[b>>2]:b;if(f){b=e?J[b+4>>2]:d;if(b)break b}b=jk(0,18077);J[a+4>>2]=b;break a}wq(f,b,c+12|0,c+8|0,0);d=J[c+12>>2];b=jk(d,18077);J[a+4>>2]=b;if(!d)break a; +uc(d);b=J[a+4>>2]}if(b)J[a+8>>2]=0;fc=c+16|0;return(b|0)!=0|0}function gp(a){var b=0,c=0,d=0,e=0;a:{if(J[a+12>>2]>0)break a;b:{c:{b=J[a>>2];d=J[a+8>>2];d:{if(b>>>0>=d>>>0)break d;while(1){c=1;e=b+1|0;J[a>>2]=e;e:switch(K[b|0]-9|0){case 50:break b;case 1:case 4:break c;case 17:break d;case 0:case 23:break e;default:break a}b=e;if((d|0)!=(b|0))continue;break}}c=3;break b}c=2}J[a+12>>2]=c}}function Nqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+12>>2];c=d+768|0;a:{if((c|0)==(b|0))break a;f=K[b+11|0]; +e=f<<24>>24;if(H[d+779|0]>=0){if((e|0)>=0){e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];break a}Gf(c,J[b>>2],J[b+4>>2]);break a}d=c;c=(e|0)<0;Lf(d,c?J[b>>2]:b,c?J[b+4>>2]:f)}H[J[a+12>>2]+928|0]=1;return 0}function Kqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+12>>2];c=d+756|0;a:{if((c|0)==(b|0))break a;f=K[b+11|0];e=f<<24>>24;if(H[d+767|0]>=0){if((e|0)>=0){e=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=e;J[c+8>>2]=J[b+8>>2];break a}Gf(c,J[b>>2],J[b+4>>2]);break a}d=c;c=(e|0)<0;Lf(d,c?J[b>> +2]:b,c?J[b+4>>2]:f)}H[J[a+12>>2]+928|0]=1;return 0}function Dt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=fc-32|0;fc=e;a:{if(c)while(1){d=kc[J[J[a>>2]+12>>2]](a,b,c)|0;if(!d){a=Qc(e+8|0,2390640,2387108,474,2396576,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}b=b+d|0;f=d+f|0;c=c-d|0;if(c)continue;break}fc=e+32|0;return f|0}B()}function xh(a,b,c){var d=0,e=0;d=c-1|0;a:{if(d>>>0>31|!(1<>2]=1;J[d+8>>2]=c;J[d+4>>2]=b;J[d>>2]=a;a=(P(a,c)+31|0)/32|0;J[d+12>>2]=a;a=kc[J[663153]](P(a,b)<<2)|0;if(!a)break a;J[d+40>>2]=a;qp(d,0);Ac(J[d+40>>2],0,P(J[d+12>>2],J[d+4>>2])<<2);e=d}return e}function LUa(a){a=a|0;var b=0;J[a>>2]=2216844;a:{b=J[a+2456>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+2460>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+2468>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}return a| +0}ea(0)|0;Bc();B()}function E8(a){var b=0,c=0,d=0;a:{if(!a)break a;b=K[a|0];if(!b)break a;d=(b|0)==45;b=d+a|0;a=H[b|0];b:{if(!(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1))break b;while(1){if((c|0)>214748362){c=2147483647;break b}c=K[a+254832|0]+P(c,10)|0;a=H[b+1|0];b=b+1|0;if(K[((a&248)>>>3|0)+254800|0]>>>(a&7)&1)continue;break}}c=d?0-c|0:c}return c}function g_a(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+4>>2];b=J[a+20>>2];a:{b:{if(b){if(!c)break a;d=J[b+80>>2];if(!d)break b;while(1){b=J[d+16>>2];if(b)while(1){if(b+ +20>>>0<=c>>>0&M[b+4>>2]>=c>>>0)break a;b=J[b>>2];if(b)continue;break}d=J[d+20>>2];if(d)continue;break}break b}if(!c)break a}kc[J[663199]](c)}kc[J[663199]](a)}}function U8(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;J[a+2748>>2]=b;d=J[b+28>>2];J[a+4>>2]=J[b+44>>2];J[a+8>>2]=J[b+48>>2];J[a+12>>2]=J[b+7720>>2];J[a+16>>2]=J[b+7724>>2];c=J[b+24>>2];J[a+2740>>2]=(K[J[J[b+36>>2]+388>>2]+20|0]?4:12)|d;d=a;a=(c&-2)==2;b=a|2;e=(c|0)==4?b:a;a=(c|0)==2;b=a?b:e;b=(c&-3)==1?b:b|4;J[d+2744>>2]=a?b|8:b;return 0}function Osa(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;d=fc-32|0;fc=d;a:{if(!K[a+49|0]){a=Qc(d+8|0,2392458,2386144,777,2433789,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}e=vj(a,1,J[a+216>>2],a+144|0);a=vj(a,1,J[a+220>>2],a+148|0);I[b>>1]=e-1;I[b+2>>1]=a-c;fc=d+32|0;return}B()}function CMa(a){a=a|0;var b=0,c=0,d=0;b=vc(16);c=J[a+4>>2];d=J[J[c>>2]+8>>2];J[699344]=0;c=_(d|0,c|0)|0;d=J[699344];J[699344]=0;a:{if((d|0)==1)break a;a=J[a+12>>2];J[b+12>>2]=a;J[b>>2]=2344672; +J[b+4>>2]=c;J[699344]=0;a=aa(3551,a|0,4)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a;J[b+8>>2]=a;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function cy(a){var b=0,c=0,d=0,e=0,f=0;gp(a);a:{if(J[a+12>>2]>0)break a;b=J[a>>2];d=b-1|0;e=J[a+8>>2];b:{c:{while(1){c=3;if(b>>>0>=e>>>0)break b;f=b;b=b+1|0;J[a>>2]=b;d:switch(K[f|0]-9|0){case 0:case 23:break a;case 17:break b;case 50:break c;case 1:case 4:break d;default:continue}break}c=2;break b}c=1}J[a+12>>2]=c}return d}function cOa(a,b,c,d,e){a=a|0;b=b|0;c=c| +0;d=d|0;e=e|0;var f=0,g=0;f=vc(312);a=J[a+24>>2];g=J[e+12>>2];J[f+16>>2]=J[e+8>>2];J[f+20>>2]=g;g=J[e+4>>2];J[f+8>>2]=J[e>>2];J[f+12>>2]=g;J[f>>2]=2343E3;J[a+4>>2]=J[a+4>>2]+1;e=f+40|0;J[f+300>>2]=e;J[f+36>>2]=d;J[f+32>>2]=c;J[f+28>>2]=b;J[f+24>>2]=a;J[f+304>>2]=b;J[f+296>>2]=e;return f|0}function Qo(a,b){var c=0,d=0,e=0,f=0;c=J[a+8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;a:{if((c|0)==-1)break a;d=J[a+8>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break a;e=J[a+8>>2];e=kc[J[J[e>>2]+28>>2]](e)|0;if((e|0)== +-1)break a;a=J[a+8>>2];a=kc[J[J[a>>2]+28>>2]](a)|0;if((a|0)==-1)break a;J[b>>2]=a|(d<<16|c<<24|e<<8);f=1}return f}function Oh(a,b,c){var d=0;d=J[a+20>>2];H[b|0]=K[(K[b|0]+a|0)+2348|0];b=(c+d>>>2|0)+24576|0;b=65536-(b>>>0>>0?b:c)|0;c=b+J[a+32>>2]|0;J[a+32>>2]=c;b=b+J[a+20>>2]|0;J[a+20>>2]=b;if(b>>>0>=32768)while(1){Yv(a,1-(c>>>15|0)|0);c=J[a+32>>2]<<1&65534;J[a+32>>2]=c;b=J[a+20>>2]<<1&65534;J[a+20>>2]=b;if(b>>>0>32767)continue;break}}function Maa(a){a=a|0;var b=0,c=0;c=2;b=J[a>>2];if(!(!b|J[b>> +2]!=1381173770)){SO(b);$E(b,J[b+528>>2]);a:{if(!K[b+2420|0])break a;H[b+2420|0]=0;c=Jl(b+2340|0);if(!c)break a;Jc(b,5,c,0)}if(K[b+2421|0])b:{c=Yo(b+2340|0);if(c){Jc(b,5,c,0);break b}H[b+2421|0]=0}J[b>>2]=0;b=J[a>>2];kc[J[b+156>>2]](b,3752);J[a>>2]=0;c=0}return c|0}function Bea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+12>>2]=0;if(K[b+11|0]>>>7|0)b=J[b>>2];J[d+8>>2]=J[698583];J[698583]=0;f=Bv(b,d+12|0);e=J[698583];J[698583]=J[d+8>>2];J[d+8>>2]=e;a:{b:{if(J[d+8>>2]!=68){e=J[d+12>> +2];if((e|0)==(b|0))break b;if(c)J[c>>2]=e-b;fc=d+16|0;break a}Is(a);B()}_y(a);B()}return+f}function uZa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=J[b+116>>2];kc[J[J[d>>2]+20>>2]](d,b+124|0,c+4|0,0);b=J[a+104>>2];d=P(J[c+12>>2],255)+32768&16711680|(P(J[c+8>>2],255)+32768>>>8&65280|P(J[c+4>>2],255)+32768>>>16&255);J[c>>2]=d;kc[J[J[b>>2]+144>>2]](b,c)|0;a=J[a+104>>2];J[c>>2]=d;kc[J[J[a>>2]+160>>2]](a,c)|0;fc=c+16|0}function sr(a){J[a+556>>2]=559;J[a+548>>2]=560;J[a+540>>2]=561;J[a+520>>2]=562;J[a+ +516>>2]=563;J[a+512>>2]=1;J[a+528>>2]=1;J[a+580>>2]=564;J[a+576>>2]=565;J[a+572>>2]=566;J[a+568>>2]=567;J[a+564>>2]=566;J[a+560>>2]=568;J[a+552>>2]=569;J[a+544>>2]=570;J[a+536>>2]=563;J[a+532>>2]=562;J[a+524>>2]=563;J[a+12>>2]=J[a+12>>2]&-131329}function gma(a){a=a|0;var b=0,c=0,d=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=J[a+56>>2];c=J[a+60>>2];if((b|0)!=(c|0))while(1){d=J[b>>2];if(d)kc[J[J[a>> +2]+32>>2]](a,d);b=b+8|0;if((c|0)!=(b|0))continue;break}}function Wia(a){a=a|0;var b=0,c=0;b=J[a+584>>2];if(b){J[a+672>>2]=J[b+48>>2];J[a+668>>2]=J[b+52>>2];J[a+676>>2]=J[b+56>>2];c=J[b+80>>2];if(c)uc(c);b=J[b+96>>2];if(b)uc(b);b=J[a+584>>2];c=J[b+36>>2];if(c){uc(c);b=J[a+584>>2]}c=J[b+44>>2];if(c){uc(c);b=J[a+584>>2]}uc(b);J[a+584>>2]=0;sr(a);return}fa(79455,70539,1092,96426);B()}function SZ(a){var b=0,c=0,d=0,e=0;c=J[a+4>>2];if((c|0)>=0){b=-1;a:{if((c|0)!=2147483647){d=J[a+8>>2];if((d|0)>(c|0)){b= +J[a>>2];break a}b=c+1|0;e=b;b=d<<1;b=d-1073741824>>>0<3221225473?e:(b|0)<=(c|0)?e:b}J[a+8>>2]=b;b=Wd(J[a>>2],b,4);J[a>>2]=b;c=J[a+4>>2]}if((c|0)>0){cd(b+4|0,b,c<<2);b=J[a>>2]}J[b>>2]=46;J[a+4>>2]=J[a+4>>2]+1}}function HYa(a,b){a=a|0;b=b|0;var c=0,d=0;b=fc-16|0;fc=b;J[b+12>>2]=8;a:{c=J[a+104>>2];if(!(kc[J[J[c>>2]+444>>2]](c,b+12|0)|0)){c=vc(8);J[699344]=0;J[c+4>>2]=8;J[c>>2]=351748;d=J[699344];J[699344]=0;if((d|0)==1)break a;a=J[a+104>>2];kc[J[J[a>>2]+448>>2]](a,c)|0;kc[J[J[c>>2]+4>>2]](c)}fc=b+16| +0;return}a=Z()|0;uc(c);ba(a|0);B()}function Ghb(a){a=a|0;var b=0,c=0,d=0,e=0;d=fc-16|0;fc=d;c=J[a>>2];b=J[c+320>>2];c=wh(J[J[c+96>>2]+4>>2],240774);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;c=kc[b|0](c)|0;if(!c)break a;b=J[a>>2];e=kc[J[c>>2]](J[b+100>>2],J[b+304>>2]+P(J[b+4>>2],252)|0,d+12|0)|0;if(e)break a;J[J[a+40>>2]>>2]=J[d+12>>2]}fc=d+16|0;return e|0}function A8(a,b,c){var d=0;a:{if(J[a>>2]|c>>>0<34|(K[b|0]!=66|K[b+1|0]!=77))break a;if(K[b+6|0]|K[b+7|0]|(K[b+27|0]|K[b+26|0]!=1))break a;b:switch(K[b+ +28|0]){case 0:case 1:case 4:case 8:case 16:case 24:case 32:break b;default:break a}if(K[b+29|0]|K[b+30|0]>5|(K[b+31|0]|K[b+32|0]))break a;if(K[b+33|0])break a;d=1}return d}function $Za(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;c=kc[J[663195]](12)|0;a:{if(!c){J[d>>2]=17054;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,d);break a}b=J[a>>2];if(b)b=ff(b);else b=0;J[c>>2]=b;b=J[a+4>>2];if(b)b=ff(b);else b=0;J[c+4>>2]=b;a=J[a+8>>2];if(a){e=c,f=ff(a),J[e+8>>2]=f;break a}J[c+8>>2]=0}fc=d+16|0;return c|0}function d6(a, +b,c){var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=yd(a,0);a:{if(d)break a;f=e+12|0;g=ee(a,f);d=J[e+12>>2];if(d)break a;b:{if((g+32767&65535)>>>0<2){oj(a,f);d=J[e+12>>2];if(d)break a;if((g|0)==32769)break b}d=yd(a,0);if(d)break a}d=af(a,c);if(d)break a;b=dd(J[a+32>>2],b,c);ve(a);d=((b|0)!=0)<<1}fc=e+16|0;return d}function bja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;a:{b:{c:{if((a|0)!=(b|0)){f=J[698583];J[698583]=0;gh();e=Bv(a,d+12|0);a=J[698583];if(!a)break c;if(J[d+12>>2]!=(b|0))break b; +g=e;if((a|0)!=68)break a;break b}J[c>>2]=4;break a}J[698583]=f;if(J[d+12>>2]==(b|0))break a}J[c>>2]=4;e=g}fc=d+16|0;return+e}function aX(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=rf(c);a:{e=b+8|0;b=e;b=J[J[b+12>>2]+((d>>>0)%M[b+8>>2]<<2)>>2];if(b)while(1){if(J[b+12>>2]==(d|0))if(!Qj(b+16|0,c,-1))break a;b=J[b+8>>2];if(b)continue;break}J[a>>2]=0;vd(a,0);return}c=Hm(e,c);b=J[c+24>>2];if(!b){J[a>>2]=0;return}J[b+4>>2]=J[b+4>>2]+1;J[a>>2]=J[c+24>>2]}function Lzb(a){a=a|0;var b=0,c=0;b=J[a+24>>2];b=b?b-20| +0:0;c=J[b+48>>2];c=kc[J[J[c>>2]+12>>2]](c,J[b+52>>2],1,4096,0,0)|0;if(!c){if(K[b+56|0]){c=J[a>>2];J[c+20>>2]=43;kc[J[c>>2]](a)}c=J[a>>2];J[c+20>>2]=123;kc[J[c+4>>2]](a,-1);H[J[b+52>>2]]=255;H[J[b+52>>2]+1|0]=217;c=2}H[b+56|0]=0;J[b+24>>2]=c;J[b+20>>2]=J[b+52>>2];return 1}function vp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=L[a+26>>1];a:{if((d|0)==8){a=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+b|0];break a}c=K[(J[a+56>>2]+P(J[a+52>>2],c)|0)+(P(b,d)>>3)|0];a=0;b:switch(d-1|0){case 3:a=4-((b|0)%2<<2)&252;a=(c&15<< +a)>>>a|0;break a;case 0:break b;default:break a}a=7-((b|0)%8|0)|0;a=(c&1<>>a|0}return a&255}function via(a,b){a=a|0;b=b|0;var c=0,d=Q(0),e=0;b=J[a+584>>2];if(b){J[b+92>>2]=0;J[b+64>>2]=0;J[b+68>>2]=8;c=J[b+96>>2];if(c)Sg(c,0,J[b+8>>2]);c=0;if(H[b+28|0]&1){d=N[a+132>>2];e=(L[a+136>>1]==3?Q(d*Q(2.5399999618530273)):d)>Q(150)?4:2;c=e-1|0}J[b+108>>2]=0;J[b+100>>2]=c;J[b+104>>2]=e;return 1}fa(89229,70539,710,95789);B()}function mq(a,b){var c=0,d=0;c=kc[J[663195]](16)|0;if(c){J[c+8>>2]=0;J[c+12>>2]= +0;a=(a|0)<=0?256:a;J[c+4>>2]=a;d=P(a,24);a=kc[J[663195]](d)|0;J[c>>2]=a;if(!a){kc[J[663199]](c);return 0}Ac(a,0,d);J[c+12>>2]=b;a:{if(!K[2773432]){a=Dc(4);J[693359]=a;if(!a)break a;H[2773432]=1}if(!b)break a;J[b>>2]=J[b>>2]+1}}else c=0;return c}function i_(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+60>>2]=0;J[a+64>>2]=0;J[a+56>>2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+68>>2]=0;J[a+72>>2]=0;J[a+76>> +2]=0;J[a+80>>2]=0;J[a+84>>2]=0;J[a+88>>2]=0;J[a+92>>2]=0;return a|0}function fya(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+4>>2]=45696;J[699344]=0;J[d+8>>2]=b;H[d+12|0]=!b;a=ga(55,a|0,d+4|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[d+4>>2]=45696;b=J[d+8>>2];if(!(!b|!K[d+12|0]))pg(b);fc=d+16|0;return a|0}a=Z()|0;J[d+4>>2]=45696;b=J[d+8>>2];if(!(!b|!K[d+12|0]))pg(b);ba(a|0);B()}function fEa(){var a=0,b=0;a:{a=J[693724];if(!a){a=vc(28);J[a+4>>2]=0;J[a+24>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0; +J[a>>2]=2397884;J[a+16>>2]=0;J[a+20>>2]=0;J[699344]=0;b=a+8|0;J[b>>2]=2397928;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[693724]=a}tt(a+8|0);return}b=Z()|0;uc(nd(a));ba(b|0);B()}function Y7(a){a=a|0;var b=0,c=0,d=0,e=0;a:{if(!a)break a;b:{c:{c=J[a+128>>2];b=J[c+28>>2];switch(b+2|0){case 0:break a;case 2:break c;default:break b}}b=J[a+96>>2];d=J[J[b>>2]+32>>2];d:{if(!d){b=0;break d}b=kc[d|0](b,240210)|0;c=J[a+128>>2]}J[c+28>>2]=b?b:-2}if(!b)break a;b=J[b>>2]; +if(!b)break a;e=kc[b|0](a)|0}return e|0}function VDa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+4>>2]=45696;J[699344]=0;J[d+8>>2]=b;H[d+12|0]=!b;a=ga(51,a|0,d+4|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[d+4>>2]=45696;b=J[d+8>>2];if(!(!b|!K[d+12|0]))pg(b);fc=d+16|0;return a|0}a=Z()|0;J[d+4>>2]=45696;b=J[d+8>>2];if(!(!b|!K[d+12|0]))pg(b);ba(a|0);B()}function I4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=fc-16|0;fc=f;a:{if(!c)break a;J[f+12>>2]=0;if(kN(f+12|0))break a;e=Dc(32);J[e+ +24>>2]=1768386675;J[e+28>>2]=0;J[e+16>>2]=1768386662;J[e+20>>2]=0;J[e+8>>2]=1768386675;J[e+12>>2]=0;J[e>>2]=1768386662;J[e+4>>2]=0;$3(a,J[f+12>>2],e,b,c,d);uc(e);jN(J[f+12>>2])}fc=f+16|0}function zAb(a){a=a|0;var b=0;J[a>>2]=47628;b=J[a+976>>2];if(b)uc(eQ(b));J[a>>2]=1032;J[699344]=0;_(13,a|0)|0;b=J[699344];J[699344]=0;a:{b:{if(!((b|0)!=1?b:0)){if((b|0)==1)break a;J[699344]=0;_(14,a|0)|0;b=J[699344];J[699344]=0;if(!b|(b|0)==1)break b}nf(b,J[699345]);B()}if((b|0)==1)break a;uc(a);return}ea(0)|0;Bc(); +B()}function sNa(a){a=a|0;var b=0,c=0;b=J[a+8>>2];a:{b:{if(b){a=J[b+36>>2];if((a|0)>=J[b+28>>2]){if(!Wt(b))return-1;a=J[b+36>>2]}J[b+36>>2]=a+1;a=J[b+32>>2]+a|0;break b}c=-1;if(J[a+16>>2])break a;b=J[a+53312>>2];if((b|0)>=J[a+53308>>2]){if(!FB(a))break a;b=J[a+53312>>2]}J[a+53312>>2]=b+1;a=(a+b|0)+49208|0}c=K[a|0]}return c|0}function sF(a){var b=0,c=0,d=0;a:{c=J[a+4>>2];if(!(c&16)){if(K[a+8|0]&7)return-1;if(!(K[a|0]&6))return-1;b=J[a+16>>2];d=J[a+24>>2]-b|0;if((d|0)>0){if((kc[J[J[a+52>>2]+4>>2]](J[a+ +56>>2],b,d)|0)!=(d|0))break a;c=J[a+4>>2];b=J[a+16>>2]}J[a+24>>2]=b;J[a+28>>2]=J[a+20>>2];J[a+4>>2]=c|32}return 0}J[a+8>>2]=J[a+8>>2]|2;return-1}function aEa(a,b){a=a|0;b=b|0;var c=0;a:{if((b|0)>0)while(1){Cm(a+16|0);J[a+60>>2]=0;J[a+64>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[699344]=0;c=a+52|0;J[c>>2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1)break a;a=a+68|0;c=(b|0)>1;b=b-1|0;if(c)continue;break}return}b=Z()|0;kX(a);ba(b|0);B()}function Xz(a){a=a|0;var b=0,c=0,d= +0;a:{if(!J[a+8>>2])break a;b=J[a+4>>2];c=J[b>>2];d=J[J[a>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+8>>2]=0;if((a|0)==(b|0))break a;while(1){d=J[b+4>>2];if(H[b+63|0]<0)uc(J[b+52>>2]);c=J[b+36>>2];if(c){J[b+40>>2]=c;uc(c)}if(H[b+19|0]<0)uc(J[b+8>>2]);uc(b);b=d;if((b|0)!=(a|0))continue;break}}}function P7(a,b){var c=0,d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;J[b>>2]=0;a:{b:{c:{d:{c=J[a+8>>2];if(M[a+4>>2]<=c+1>>>0)break d;f=J[a+20>>2];e:{if(f){d=e+14|0;if((kc[f|0](a,c,d,2)|0)!=2)break d;c=J[a+8>>2];break e}b=J[a>>2]; +if(!b)break c;d=b+c|0}g=K[d|0]|K[d+1|0]<<8;break b}J[b>>2]=85;break a}g=0}J[a+8>>2]=c+2}fc=e+16|0;return g}function qjb(a){a=a|0;var b=0,c=0;a:{b=J[a+436>>2];b:{if(!b){if(!XM(a))break b;b=J[a+436>>2]}c=J[J[a+460>>2]+20>>2];if((c+208|0)==(b|0)){b=J[a>>2];J[b+24>>2]=c;J[b+20>>2]=100;kc[J[J[a>>2]+4>>2]](a,3);J[a+436>>2]=0;break a}if(kc[J[J[a+24>>2]+20>>2]](a,c)|0)break a}return 0}a=J[a+460>>2];J[a+20>>2]=J[a+20>>2]+1&7;return 1}function ie(a,b,c,d,e,f,g){var h=0;h=e;d=(d|0)>=255?255:d;e=((d|0)>0?d:0)<< +2;d=J[a>>2];b=J[a+20>>2]+((b>>>0>=255?255:b)<<2)|0;J[h>>2]=K[J[e+J[a+4>>2]>>2]+(d+J[b>>2]|0)|0];c=(c|0)>=255?255:c;c=((c|0)>0?c:0)<<2;J[f>>2]=K[(d+J[b>>2]|0)+(J[e+J[a+12>>2]>>2]+J[c+J[a+16>>2]>>2]>>16)|0];J[g>>2]=K[J[c+J[a+8>>2]>>2]+(d+J[b>>2]|0)|0]}function Uxb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){d=J[a+644>>2];b=d;while(1){c=K[b|0]|K[b+1|0]<<8;H[d|0]=((c<<8|c>>>8)&65535)>>>8;c=K[b+2|0]|K[b+3|0]<<8;H[d+1|0]=((c<<8|c>>>8)&65535)>>>8;c=K[b+4|0]|K[b+5|0]<<8;H[d+2|0]=((c<<8|c>>>8)&65535)>>> +8;b=b+6|0;d=d+3|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function ycb(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){b=K[a+2|0]+b|0;H[a+2|0]=b>>>0>=255?255:b;b=K[a+1|0]+c|0;H[a+1|0]=b>>>0>=255?255:b;b=K[a+3|0]+e|0;H[a+3|0]=b>>>0>=255?255:b;b=a;a=K[a|0]+d|0;H[b|0]=a>>>0>=255?255:a}}function xqa(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;var h=0;f=fc-16|0;fc=f;g=J[a+12>>2]; +if(J[g+932>>2]!=8){J[f+12>>2]=J[b>>2];J[f+8>>2]=J[c>>2];J[f+4>>2]=1;b=g+832|0;c=g+752|0;h=Ou(b,c);if(!h){$l(b,c);O[g+912>>3]=O[g+864>>3]}jA(g+944|0,f+12|0,f+8|0,f+4|0,d,e,!h,g);H[J[a+12>>2]+928|0]=0}fc=f+16|0;return 0}function wHa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a+44>>2];c=J[a+24>>2];if(d>>>0>>0){J[a+44>>2]=c;d=c}c=J[a+12>>2];e=-1;a:{if(c>>>0<=M[a+8>>2])break a;if((b|0)==-1){J[a+16>>2]=d;J[a+12>>2]=c-4;return 0}if(!(K[a+48|0]&16)){e=-1;if(J[c-4>>2]!=(b|0))break a}J[a+16>>2]=d;d=a;a=c-4|0; +J[d+12>>2]=a;J[a>>2]=b;e=b}return e|0}function vcb(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){f=K[a+2|0];H[a+2|0]=f+b-(P(b,f)+255>>>8);b=K[a+1|0];H[a+1|0]=b+c-(P(b,c)+255>>>8);b=K[a+3|0];H[a+3|0]=b+e-(P(b,e)+255>>>8);b=a;a=K[a|0];H[b|0]=a+d-(P(a,d)+255>>>8)}}function uzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+24>>2];c=J[b+4>>2];a:{if((c|0)==4096)break a;d=J[b+48>>2];if(kc[J[J[d>>2]+16>>2]](d,J[b+52>>2], +1,4096-c|0)|0)break a;c=J[a>>2];J[c+20>>2]=38;kc[J[c>>2]](a)}c=J[b+48>>2];kc[J[J[c>>2]+32>>2]](c)|0;b=J[b+48>>2];if(kc[J[J[b>>2]+40>>2]](b)|0){b=J[a>>2];J[b+20>>2]=38;kc[J[b>>2]](a)}}function pxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){e=J[a+2300>>2];d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=K[d|0];if(!((c|0)==L[e+836>>1]?K[e+56|0]:0))H[b+3|0]=255;f=J[a+2296>>2];if(f)c=kc[f|0](c&255)|0;H[b+2|0]=c;H[b+1|0]=c;H[b|0]=c;b=b+4|0;d=d+1|0;g=g+1|0;if(g>>>0>2])continue;break}}return 0} +function hlb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+10|0;if(c>>>0>M[b+160>>2])pe(b,8);d=K[a+9|0]|K[a+8|0]<<8;e=a;a=K[a+3|0]|K[a+2|0]<<8;if(!(M[b+160>>2]>=e+a>>>0&(d<<1)+10>>>0<=a>>>0))pe(b,8);if(!(!d|J[b+164>>2]<=0))while(1){if(M[b+172>>2]<=(K[c+1|0]|K[c|0]<<8)>>>0)pe(b,16);c=c+2|0;d=d-1|0;if(d)continue;break}return 0}function fyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+(b<<2)|0;b=c+(b<<3)|0;c=0;while(1){H[b+7|0]=0;e=K[d+3|0];H[b+5|0]=0;H[b+6|0]=e;e=K[d+2|0]; +H[b+3|0]=0;H[b+4|0]=e;e=K[d+1|0];H[b+1|0]=0;H[b+2|0]=e;H[b|0]=K[d|0];b=b-8|0;d=d-4|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function _S(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=fc-256|0;fc=f;a:{if((c|0)<2)break a;h=(c<<2)+b|0;J[h>>2]=f;if(!a)break a;while(1){e=a>>>0>=256?256:a;xc(J[h>>2],J[b>>2],e);d=0;while(1){g=(d<<2)+b|0;d=d+1|0;xc(J[g>>2],J[(d<<2)+b>>2],e);J[g>>2]=J[g>>2]+e;if((c|0)!=(d|0))continue;break}a=a-e|0;if(a)continue;break}}fc=f+256|0}function HAb(a){a=a|0;var b=0;J[a>>2]=47628; +b=J[a+976>>2];if(b)uc(eQ(b));J[a>>2]=1032;J[699344]=0;_(13,a|0)|0;b=J[699344];J[699344]=0;a:{b:{if(!((b|0)!=1?b:0)){if((b|0)==1)break a;J[699344]=0;_(14,a|0)|0;b=J[699344];J[699344]=0;if(!b|(b|0)==1)break b}nf(b,J[699345]);B()}if((b|0)==1)break a;return a|0}ea(0)|0;Bc();B()}function Ds(a,b){var c=0,d=0;c=-1;d=J[a+8>>2];a:{if(d&7)break a;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2])){J[a+8>>2]=d|4;return-1}c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>> +2]=a+1;a=K[a|0];break b}a=td(a,1);if((a|0)==-1)break a}c=0;if(!b)break a;H[b|0]=a}return c}function yca(a){a=a|0;var b=0,c=0,d=0,e=0;e=J[a+60>>2];a:{if(e)break a;b=J[a+972>>2];if(!b)break a;c=J[a+356>>2];b:{if((c|0)>0){while(1){b=J[J[a+972>>2]+(d<<2)>>2];if(b){kc[J[J[b>>2]+4>>2]](b);c=J[a+356>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}b=J[a+972>>2];if(!b)break b}uc(b)}J[a+356>>2]=0;J[a+972>>2]=0}return!e|0}function sV(a){var b=0,c=0,d=0,e=0;d=fc-16|0;fc=d;c=J[a+100>>2];b=1;a:{if((c|0)==-1)break a; +e=J[a+60>>2];b=0;if(e>>>0>=0-c>>>0)break a;b=((c+e|0)-1>>>0)/(c>>>0)|0}b:{if(L[a+138>>1]!=2)break b;c=L[a+98>>1];b=vEb(c,0,b,0);e=jc;if(!c|!e)break b;b=J[a>>2];a=J[a+628>>2];J[d>>2]=70051;Uc(a,b,73496,d);b=0}fc=d+16|0;return b}function lYa(a){a=a|0;var b=0,c=0;b=vc(20);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[699344]=0;a=_(c|0,a|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;J[699344]=0;J[b+4>>2]=a;J[b>>2]=2342900;a=J[699344];J[699344]=0;if((a|0)==1)break a;J[b>>2]=837560;J[b+16>>2]=0;J[b+8>>2]=0;J[b+ +12>>2]=0;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function hC(a,b,c,d,e,f){var g=0;g=fc-32|0;fc=g;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[g+24>>2]=f;J[g+20>>2]=e;J[g+16>>2]=d;Hc(0,0,0,a,0,1,b,3,d,f,0,e,c,g+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[g+8>>2]=f;J[g+4>>2]=e;J[g>>2]=d;Hc(0,0,0,0,0,1,b,3,d,f,0,e,c,g)}fc=g+32|0}function c$(a,b,c,d,e){O[b>>3]=O[a+568>>3]*(O[a+496>>3]*(O[a+504>>3]*O[a+16>>3]+O[a+512>>3]*O[a+32>>3]));O[c>>3]=O[a+568>>3]*(O[a+496>> +3]*(O[a+504>>3]*O[a+24>>3]+O[a+512>>3]*O[a+40>>3]));O[d>>3]=O[a+496>>3]*(O[a+520>>3]*O[a+16>>3]+O[a+528>>3]*O[a+32>>3]);O[e>>3]=O[a+496>>3]*(O[a+520>>3]*O[a+24>>3]+O[a+528>>3]*O[a+40>>3])}function Vo(a,b,c,d){var e=0,f=0,g=0,h=0;e=fc-32|0;fc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;f=J[a>>2];if(f){g=J[f+84>>2];h=J[f+108>>2]==-554844497?J[f+124>>2]:0}f=J[a+4>>2];J[e+20>>2]=0;J[e+16>>2]=d;Hc(h,g,f,a,0,1,b,1,d,0,0,0,c,e+16|0);break a}J[e+4>>2]=0;J[e>>2]=d;Hc(0,0,0,0,0,1,b,1,d,0,0,0,c,e)}fc= +e+32|0}function VC(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];c=J[a+12>>2];a:{if((b|0)==(c|0))break a;while(1){d=J[b+12>>2];if(d){uc(d);J[b+12>>2]=0}b=b+20|0;if((c|0)!=(b|0))continue;break}b=J[a+8>>2];c=J[a+12>>2];if((b|0)==(c|0))break a;while(1){d=c-20|0;if(H[c-9|0]<0)uc(J[d>>2]);c=d;if((c|0)!=(b|0))continue;break}}J[a+12>>2]=b}function Uj(a,b){var c=0,d=0,e=0,f=0;a:{d=bf(a);e=K[b+11|0];f=e<<24>>24;c=0;b:{if((((f|0)<0?J[b+4>>2]:e)|0)!=(d|0))break b;c:switch(d+1|0){case 0:J[699344]=0;$(2970,b|0);a=J[699344]; +J[699344]=0;if((a|0)==1)break a;B();default:c=0;if(qd((f|0)<0?J[b>>2]:b,a,d))break b;break;case 1:break c}c=1}return c}ea(0)|0;Bc();B()}function SV(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2419044;b=J[a+68>>2];J[a+68>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}hd(a+52|0);hd(a+40|0);hd(a+28|0);return nd(a)|0}function Pi(a,b){var c=0,d=0,e=0,f=0;c=fc-16|0; +fc=c;J[c+8>>2]=a;e=J[b+20>>2];a=e+((kc[J[b+12>>2]](c+8|0)>>>0)%M[b+4>>2]<<2)|0;d=J[a>>2];a:{if(!d)break a;f=e-4|0;while(1){if(kc[J[b+16>>2]](d,c+8|0)|0)break a;a=a-4|0;if(e>>>0>a>>>0)a=(J[b+4>>2]<<2)+f|0;d=J[a>>2];if(d)continue;break}}fc=c+16|0;a=J[a>>2];return a?a+4|0:0}function Dl(a,b){var c=0,d=0,e=0,f=0;a:{d=Yc(b);e=K[a+11|0];f=e<<24>>24;c=0;b:{if((((f|0)<0?J[a+4>>2]:e)|0)!=(d|0))break b;c:switch(d+1|0){case 0:J[699344]=0;$(3453,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B();default:c=0; +if(dd((f|0)<0?J[a>>2]:a,b,d))break b;break;case 1:break c}c=1}return c}ea(0)|0;Bc();B()}function Cl(a,b){var c=0,d=0,e=0,f=0;a:{d=bf(b);e=K[a+11|0];f=e<<24>>24;c=0;b:{if((((f|0)<0?J[a+4>>2]:e)|0)!=(d|0))break b;c:switch(d+1|0){case 0:J[699344]=0;$(2970,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B();default:c=0;if(qd((f|0)<0?J[a>>2]:a,b,d))break b;break;case 1:break c}c=1}return c}ea(0)|0;Bc();B()}function Cca(a){a=a|0;var b=0,c=0,d=0;c=fc-16|0;fc=c;b=J[a+584>>2];if(b){if(H[b+124|0]&1){Jl(b- +-64|0);J[b+124>>2]=0}a:{if(G2(b- -64|0,J[b+120>>2],73918)){d=J[a+628>>2];a=J[a>>2];J[c+4>>2]=J[b+88>>2];J[c>>2]=a;Uc(d,98055,74194,c);a=0;break a}J[b+124>>2]=J[b+124>>2]|2;a=1}fc=c+16|0;return a|0}fa(73294,70440,174,98055);B()}function jhb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=J[a+160>>2];if(!b)break a;c=J[b+4>>2];a=J[c+84>>2];if(!a)break a;d=J[J[c+96>>2]+8>>2];if((a|0)!=(b|0))while(1){e=J[a+8>>2];if(!e)break a;f=a;a=e;if((b|0)!=(a|0))continue;break}J[(f?f+8|0:c+84|0)>>2]=J[b+8>>2];a=J[b+20>>2];if(a)kc[a| +0](b);fy(b);kc[J[d+8>>2]](d,b)}}function jV(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2432988;Hd(a+48|0);Hd(a+24|0);b=J[a+20>>2];J[a+20>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}wc(a+8|0);return nd(a)|0}function RV(a,b){a=a|0;b=b|0;var c=0;c=fc-32|0;fc=c;a:{if(b-257>>>0<=4294967040){a=Qc(c+8|0,2388369,2385834,482,2419077,0);J[699344]=0;$(5179,a|0);b=J[699344]; +J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}I[a+16>>1]=b;b:{if(J[a+20>>2]|b>>>0<3)break b;b=J[a+36>>2];if(!b)break b;Fo(a,b)}fc=c+32|0;return}B()}function Bya(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){J[a+8>>2]=1;J[a+12>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;c=a+36|0;J[c>>2]=0;J[c+4>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[c>>2]=2419016;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[a+52>>2]=0;a=a+56|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function y2(a,b){a=a|0; +b=b|0;var c=0,d=0,e=0;a:{b=J[J[b+4>>2]+4>>2];b:{if(!b){H[a+11|0]=0;break b}d=nu(b);if(!d){H[a+11|0]=0;break b}c=Yc(d);if(c>>>0>=2147483632)break a;c:{if(c>>>0<=10){H[a+11|0]=c;break c}e=(c|15)+1|0;b=vc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}a=cd(a,d,c)+c|0}H[a|0]=0;return}_d(a);B()}function rTa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];J[c+664>>2]=1;a=J[a+8>>2];kc[J[J[a>>2]+316>>2]](a,c,J[b>>2]==1?+J[b+8>>2]:O[b+8>>3],J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3],J[b+32>>2]==1?+J[b+40>>2]:O[b+40>> +3],J[b+48>>2]==1?+J[b+56>>2]:O[b+56>>3],J[b+64>>2]==1?+J[b+72>>2]:O[b+72>>3],J[b+80>>2]==1?+J[b+88>>2]:O[b+88>>3])}function pU(a){var b=0,c=0;a:{b=J[a>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a>>2]=0}b=J[a+148>>2];if(b){J[a+152>>2]=b;uc(b)}if(H[a+131|0]<0)uc(J[a+120>>2]);J[a+8>>2]=340552;if(H[a+35|0]<0)uc(J[a+24>>2]);if(H[a+23|0]<0)uc(J[a+12>>2]);return}ea(0)|0;Bc();B()}function hnb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=fc-16|0;fc=b; +vh(a,J[a+8>>2]);e=J[a+8>>2];d=J[a>>2];J[b+12>>2]=d;g=b+12|0;f=eo(g,e,10);c=J[b+12>>2];a:{if((d|0)==(c|0))break a;if(!(K[c|0]!=35|c>>>0>=e>>>0)){d=c+1|0;J[b+12>>2]=d;f=eo(g,e,f);c=J[b+12>>2];if((d|0)==(c|0))break a}J[a>>2]=c;h=f}fc=b+16|0;return h|0}function cg(a,b,c){var d=0,e=0,f=0,g=0;f=fc-16|0;fc=f;J[f+12>>2]=c;d=fc-160|0;fc=d;g=d+8|0;xc(g,2627952,144);J[d+52>>2]=a;J[d+28>>2]=a;e=-2-a|0;e=e>>>0>2147483647?2147483647:e;J[d+56>>2]=e;e=a+e|0;J[d+36>>2]=e;J[d+24>>2]=e;b=uG(g,b,c);if((a|0)!=-2){a=J[d+ +28>>2];H[a-((a|0)==J[d+24>>2])|0]=0}fc=d+160|0;fc=f+16|0;return b}function $pb(a){a=a|0;var b=0;J[a>>2]=47796;a:{b=J[a+976>>2];if(b){J[699344]=0;$(177,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a>>2]=1032;J[699344]=0;_(13,a|0)|0;b=J[699344];J[699344]=0;b:{if((b|0)!=1){J[699344]=0;_(14,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break b}break a}uc(a);return}ea(0)|0;Bc();B()}function wzb(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+ +1164>>2],J[a+580>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=P(J[a+584>>2],3)+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function ktb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+428>>2]+8|0;g=J[b+32>>2];if(g){e=J[b+36>>2];d=f;while(1){c=J[e>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d|0]=c;H[d+1|0]=c>>>8;H[d+2|0]=c>>>16;H[d+3|0]=c>>>24;d=d+4|0;e=e+4|0;h=h+1|0;if(h>>>0>2])continue;break}}return Ce(a,J[b>> +2],g<<2,f)|0}function gU(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;a:{if(!a)break a;c=J[a+24>>2];d=J[a+20>>2];b=d>>31;b=(b^d)-b|0;if((b|0)!=J[a+12>>2]<<2)break a;a=J[a+16>>2];d=vc(b);if((a|0)>=2){f=(a|0)/2|0;g=0-b|0;a=P(b,a-1|0)+c|0;while(1){h=xc(d,c,b);c=xc(c,a,b);a=xc(a,h,b)+g|0;c=b+c|0;e=e+1|0;if((e|0)!=(f|0))continue;break}}uc(d)}}function GY(a,b,c,d){var e=0,f=0,g=Q(0),h=0,i=Q(0),j=0,k=Q(0);if(d)while(1){e=f<<2;h=e+b|0;i=N[h>>2];j=a+e|0;g=N[j>>2];e=c+e|0;k=N[e>>2];N[j>>2]=Q(k*Q(1.4019999504089355))+ +g;N[h>>2]=Q(g+Q(i*Q(-.3441300094127655)))+Q(k*Q(-.714139997959137));N[e>>2]=g+Q(i*Q(1.7719999551773071));f=f+1|0;if((f|0)!=(d|0))continue;break}}function xya(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2419044;b=J[a+68>>2];J[a+68>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}hd(a+52|0);hd(a+40|0);hd(a+28|0);uc(nd(a))}function koa(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;var h=0,i=0,j=0,k=0,l=0;a=J[a+12>>2];h=O[c>>3];i=O[d>>3];j=O[e>>3];k=O[f>>3];l=O[g>>3];c=fc-48|0;fc=c;O[c+40>>3]=O[b>>3];O[c+32>>3]=h;O[c+24>>3]=i;O[c+16>>3]=j;O[c+8>>3]=k;O[c>>3]=l;dp(a+648|0,c+40|0,c+32|0,c+24|0,c+16|0,c+8|0,c);fc=c+48|0;return 0}function dC(a,b){var c=0,d=0,e=0,f=0;d=1;c=bf(a);e=K[b+11|0];f=e<<24>>24;a:{b:{if((((f|0)<0?J[b+4>>2]:e)|0)!=(c|0))break b;c:switch(c+1|0){case 0:J[699344]=0;$(2970,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;B();default:if(qd((f| +0)<0?J[b>>2]:b,a,c))break b;break;case 1:break c}d=0}return d}ea(0)|0;Bc();B()}function cia(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;g=fc-32|0;fc=g;h=J[658247];J[g+24>>2]=J[658246];J[g+28>>2]=h;h=J[658245];J[g+16>>2]=J[658244];J[g+20>>2]=h;h=J[658243];J[g+8>>2]=J[658242];J[g+12>>2]=h;h=J[658241];J[g>>2]=J[658240];J[g+4>>2]=h;h=a;a=g+32|0;b=uo(h,b,c,d,e,f,g,a);fc=a;return b|0}function boa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;d=wk(e+12|0);f=O[c+8>>3];g= +O[c>>3];h=O[b>>3];J[699344]=0;Kx(d,h,g,f,1);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;da(6498,a|0,d|0);a=J[699344];J[699344]=0;if((a|0)==1)break a;Jd(d);fc=e+16|0;return}a=Z()|0;Jd(d);ba(a|0);B()}function TL(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{b:{c:{if(!c){H[a+11|0]=0;break c}if(c>>>0>=1073741808)break b;d:{if(c>>>0<=1){H[a+11|0]=c;break d}d=c|3;if(d>>>0>=1073741823)break a;e=d+1|0;d=vc(e<<2);J[a+8>>2]=e|-2147483648;J[a>>2]=d;J[a+4>>2]=c;a=d}d=a;a=c<<2;a=xc(d,b,a)+a|0}J[a>>2]= +0;return}_d(a);B()}Pd();B()}function Mo(a){var b=0;b=J[a+28>>2]-1|0;J[a+28>>2]=b;a:{if(!b){b=J[a>>2];if(b)uc(Zc(b));b:{if(J[a+4>>2])break b;b=J[a+12>>2];if(!b)break b;J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+20>>2];if(b){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}uc(a)}return}ea(0)|0;Bc();B()}function Ke(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[b|0];if(d){e=b;while(1){f=P(f,17)+(d&255)|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}}a:{d=J[J[a+8>>2]+((f>>> +0)%((J[a+12>>2]<<1)-1>>>0)<<2)>>2];if(d)while(1){if(!Ic(b,J[d>>2]))break a;d=J[d+24>>2];if(d)continue;break}J[c>>2]=5;return c|0}return Pe(d+8|0,c)|0}function KM(a,b){var c=0,d=0;c=yd(b,J[a>>2]);a:{if(c)break a;c=Te(b,334352,a+4|0);if(c)break a;c=2;d=L[a+4>>1];if((d|256)!=768|M[a+8>>2]<((d|0)==768?148:118)>>>0)break a;if((d|0)==512){J[a+140>>2]=0;J[a+132>>2]=0;J[a+136>>2]=0}if(H[a+72|0]&1)break a;c=yd(b,J[a>>2]);if(c)break a;c=Oi(b,J[a+8>>2],a+160|0)}return c}function Hcb(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}f=b;b=255-e|0;H[a+2|0]=f+(P(b,K[a+2|0])+255>>>8|0);H[a+1|0]=(P(b,K[a+1|0])+255>>>8|0)+c;H[a|0]=(P(b,K[a|0])+255>>>8|0)+d;b=a;a=K[a+3|0];H[b+3|0]=a+e-(P(a,e)+255>>>8)}function xj(a,b){a=a|0;b=b|0;var c=0;c=fc-32|0;fc=c;a:{if(J[a+4>>2]!=(b|0)){a=Qc(c+8|0,2388305,2385663,380,2423538,0);break a}if(!J[a>>2]){a=Qc(c+8|0,2388954,2385663,382,2423538,0);break a}a=Qc(c+8|0,2389576,2385663,384, +2423538,0)}J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;Kc(a);ba(b|0)}B()}function xcb(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>>8|0;b=P(b,f)+255>>>8|0}if(e){b=K[a+2|0]-b|0;H[a+2|0]=b>>>0<=255?b:0;b=K[a+1|0]-c|0;H[a+1|0]=b>>>0<=255?b:0;b=K[a|0]-d|0;H[a|0]=b>>>0<=255?b:0;b=a;a=K[a+3|0];H[b+3|0]=a+e-(P(a,e)+255>>>8)}}function wLa(a,b){a=a|0;b=b|0;var c=0;c=a+20|0;a:{b:{if(!(!(kc[J[J[b>>2]+12>>2]](b)|0)| +J[a+20>>2]))break b;c=a+24|0;if(!(!(kc[J[J[b>>2]+16>>2]](b)|0)|J[a+24>>2]))break b;if(!(kc[J[J[b>>2]+28>>2]](b)|0)|J[a+28>>2])break a;c=a+28|0}J[c>>2]=b}c=J[a+16>>2];J[(c?c+4|0:a+12|0)>>2]=b;J[a+16>>2]=b;J[b+4>>2]=0;J[b+8>>2]=a}function w6(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0;h=fc-16|0;fc=h;J[h+12>>2]=0;g=10;j=J[c>>2];k=j+e|0;a:{if(k>>>0>31457280)break a;i=J[a>>2];g=J[b>>2];if(g>>>0>>0){i=_c(f,1,g,k,i,h+12|0);g=J[h+12>>2];if(g)break a;J[b>>2]=J[c>>2]+e;j=J[c>>2]}xc(i+j|0,d,e);J[c>>2]=J[c>>2]+e; +J[a>>2]=i;g=J[h+12>>2]}fc=h+16|0;return g}function kt(a,b){var c=0,d=0,e=0;c=fc-32|0;fc=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c+4>>2]=c+8;d=J[a+664>>2];a:{if(!(!d|J[d>>2]!=(b|0)))break a;d=0;e=J[a+656>>2];if(!e)break a;J[c+16>>2]=0;J[c+8>>2]=b;b=MG(c+4|0,e,J[a+660>>2]);if(b)d=J[b>>2];else d=0;J[a+664>>2]=d}fc=c+32|0;return d}function kqb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=ly(b,c);a:{if(d)break a;a=J[b+24>>2];if((a|0)<=0)break a;b=J[b+28>>2];f=b+P(a,40)|0; +a=J[c+4>>2];c=J[c+8>>2];while(1){J[a>>2]=J[b+16>>2];J[a+4>>2]=J[b+20>>2];e=L[b>>1];H[c|0]=e&1?0:e&2?2:1;c=c+1|0;a=a+8|0;b=b+40|0;if(f>>>0>b>>>0)continue;break}}return d|0}function aj(a){var b=0,c=0,d=0;a:{if(J[a+8>>2]==13)break a;c=a+8|0;while(1){b=J[a+16>>2];if((kc[J[J[b>>2]+28>>2]](b)|0)!=-1)break a;b=J[a+16>>2];kc[J[J[b>>2]+24>>2]](b);yc(c);b=J[a+4>>2]+1|0;J[a+4>>2]=b;d=J[a>>2];if((b|0)>2]){Sc(d,b,c,0);b=J[a+16>>2];kc[J[J[b>>2]+20>>2]](b)}if(J[c>>2]!=13)continue;break}}}function Dsb(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1347179589){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];a=J[c+36>>2];J[b+36>>2]=a;if(a){a=0;while(1){d=P(a,3);e=d+b|0;d=c+d|0;H[e+42|0]=K[d+42|0];d=K[d+40|0]|K[d+41|0]<<8;H[e+40|0]=d;H[e+41|0]=d>>>8;a=a+1|0;if(a>>>0>2])continue;break}}return 0}function Asa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2432988;Hd(a+48|0);Hd(a+24|0);b=J[a+20>>2];J[a+20>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a; +J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}wc(a+8|0);uc(nd(a))}function uxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){e=J[a+2300>>2];d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=K[d|0];if(!((c|0)==L[e+836>>1]?K[e+56|0]:0)){H[b+2|0]=255;H[b+3|0]=255}c=kc[J[a+2296>>2]](c)|0;H[b+1|0]=(c|0)!=0;H[b|0]=c>>>8;b=b+4|0;d=d+1|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function Xp(a,b,c){var d=0,e=0;a:{if(c){d=J[a>>2];e=J[a+4>>2];b:{if((d|0)!=(e|0)){e= +J[a+8>>2];break b}d=e+10|0;J[a+4>>2]=d;e=ch(J[a+8>>2],d<<2);if(!e)break a;J[a+8>>2]=e;d=J[a>>2]}J[(d<<2)+e>>2]=b;J[a>>2]=d+1;return 1}fa(2349953,2350578,74,2355175);B()}uc(J[a+8>>2]);J[a>>2]=0;J[a+4>>2]=0;Nc(c,1,2351746,0);return 0}function WM(a,b,c){var d=0,e=0,f=0,g=0;f=6;d=J[b>>2];a:{if(d+5>>>0>c>>>0)break a;e=J[a+12>>2];I[e>>1]=K[d|0];I[e+2>>1]=K[d+1|0];I[e+4>>1]=H[d+2|0];I[e+6>>1]=H[d+3|0];I[e+8>>1]=K[d+4|0];g=c;c=d+8|0;if(g>>>0>>0)break a;I[e+10>>1]=H[d+5|0];I[e+12>>1]=H[d+6|0];I[e+14>>1]= +K[d+7|0];H[a+16|0]=1;J[b>>2]=c;f=0}return f}function NFa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[699344]=0;c=a+12|0;aa(5145,c|0,0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){a:{if(H[a+11|0]<0){J[a+4>>2]=0;c=J[a>>2];break a}H[a+11|0]=0;c=a}J[c>>2]=0;J[a+16>>2]=b;return a|0}b=Z()|0;zc(c);if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}function M3(a,b){a=a|0;b=+b;var c=0,d=0,e=0;J[a+296>>2]=0;O[a+272>>3]=b;J[a+288>>2]=0;J[a+292>>2]=0;a:{if(b<0|b>0){e=J[a+264>>2];b=R(b);while(1){d= +O[(c<<3)+a>>3];if(!(d>2]=0;J[a+292>>2]=0;c=c+1|0;J[a+296>>2]=c;b=b-d;if(c>>>0>=e>>>0){J[a+296>>2]=0;c=0}if(b>0)continue;break}}return}O[a+288>>3]=b}function Arb(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;f=0;a:{if(!b)break a;h=J[a+4>>2];if(!h)break a;e=J[a+16>>2];g=J[a+8>>2];if((e|0)>=(g|0)){H[a+24|0]=1;return 0}d=P(c,d);if(!d)break a;if((d+e|0)>(g|0)){H[a+24|0]=1;d=g-e|0}xc(b,e+h|0,d);J[a+16>>2]=J[a+16>>2]+d;f=(d>>>0)/(c>>>0)|0}return f|0}function xK(a,b,c){var d= +0;d=fc-32|0;fc=d;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=42}b:{if(!b){J[d>>2]=c;Hc(0,0,0,a,0,1,42,3,c,0,0,0,35727,d);break b}J[d+20>>2]=c;J[d+16>>2]=b;Hc(0,0,0,a,0,1,42,3,b,c,0,0,35670,d+16|0)}if(!a)break a;J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1}fc=d+32|0}function qKa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-32|0;fc=d;J[d+16>>2]=13;f=J[a+8>>2];a=d+16|0;a:{if(J[Ec(f,786446,a,0)>>2]!=7){yc(a);break a}J[d+12>>2]=c;e=1;a=d+12|0;b:{if(CI(a,J[d+24>>2],b,787307))break b; +if(CI(a,J[d+24>>2],b,788457))break b;e=CI(a,J[d+24>>2],b,789038)}yc(d+16|0)}fc=d+32|0;return e|0}function kI(a){a=a|0;var b=0,c=0;b=fc-48|0;fc=b;c=J[a+28>>2];if(c){O[b+40>>3]=O[J[a>>2]>>3];O[b+32>>3]=O[J[a>>2]+8>>3];O[b+24>>3]=O[J[a>>2]+16>>3];O[b+16>>3]=O[J[a>>2]+24>>3];O[b+8>>3]=O[J[a>>2]+32>>3]*25.4/96;O[b>>3]=O[J[a>>2]+40>>3]*25.4/96;kc[J[J[c>>2]+396>>2]](c,b+40|0,b+32|0,b+24|0,b+16|0,b+8|0,b)|0}fc=b+48|0}function jpa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+108|0;if((c|0)!=(b|0))a:{d= +K[a+119|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}Gf(b,J[a+108>>2],J[a+112>>2]);break a}f=b;b=(e|0)<0;Lf(f,b?J[a+108>>2]:c,b?J[a+112>>2]:d)}return 0}function e8a(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;b=J[a+316>>2];if((b|0)>0){g=J[d>>2];while(1){d=J[a+112>>2];if((d|0)>0){e=f<<2;b=J[e+g>>2];h=d+b|0;d=J[c+e>>2];while(1){e=K[d|0];H[b+1|0]=e;H[b|0]=e;d=d+1|0;b=b+2|0;if(h>>>0>b>>>0)continue;break}b=J[a+316>>2]}f=f+1|0; +if((f|0)<(b|0))continue;break}}}function Woa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+456|0;if((c|0)!=(b|0))a:{d=K[a+467|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}Gf(b,J[a+456>>2],J[a+460>>2]);break a}f=b;b=(e|0)<0;Lf(f,b?J[a+456>>2]:c,b?J[a+460>>2]:d)}return 0}function Uoa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+444|0;if((c|0)!=(b|0))a:{d=K[a+455|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>> +2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];break a}Gf(b,J[a+444>>2],J[a+448>>2]);break a}f=b;b=(e|0)<0;Lf(f,b?J[a+444>>2]:c,b?J[a+448>>2]:d)}return 0}function Qia(a){a=a|0;var b=0,c=0,d=0;c=1;d=J[a+584>>2];if(!(H[d+4|0]&1)){b=12;if(H[d+28|0]&1){b=13;c=!J[d+92>>2]|2}qm(a,c,b);qm(a,c,b);qm(a,c,b);qm(a,c,b);qm(a,c,b);qm(a,c,b);if(J[a+608>>2]>=J[a+600>>2])pf(a);c=J[d+64>>2];b=J[a+604>>2];J[a+604>>2]=b+1;H[b|0]=c;J[a+608>>2]=J[a+608>>2]+1;J[d+64>>2]=0;J[d+68>>2]=8}}function E_(a,b){var c=0,d=0, +e=0,f=0;d=K[b|0];if(d){c=b;while(1){f=P(f,17)+(d&255)|0;d=K[c+1|0];c=c+1|0;if(d)continue;break}}e=J[a>>2];a=J[a+4>>2];d=(f>>>0)%(a>>>0)|0;c=J[e+(d<<3)>>2];if(c)while(1){if(!Ic(c,b))return J[((d<<3)+e|0)+4>>2];c=d+1|0;d=(a|0)!=(c|0)?c:0;c=J[(d<<3)+e>>2];if(c)continue;break}return 0}function xob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=fc-16|0;fc=a;kc[J[J[b>>2]+20>>2]](b,c,0)|0;H[a+15|0]=0;c=0;a:{while(1){d=-1;if(!(kc[J[J[b>>2]+12>>2]](b,a+15|0,1,1,0,0)|0))break a;d=c&255;c=K[a+15|0];if(d|(c|0)!=44)continue; +break}kc[J[J[b>>2]+20>>2]](b,-1,1)|0;d=kc[J[J[b>>2]+24>>2]](b)|0}b=d;fc=a+16|0;return b|0}function gqb(a){a=a|0;var b=0;J[a>>2]=47796;a:{b=J[a+976>>2];if(b){J[699344]=0;$(177,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a>>2]=1032;J[699344]=0;_(13,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;_(14,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;return a|0}ea(0)|0;Bc();B()}function ax(a){var b=0,c=0,d=0;a:{if(!a)break a;b=J[a>>2];if(!(!b|J[b+108>>2]!=-554844497|!(J[b+116>> +2]|J[b+120>>2])))J[a+324>>2]=1;c=a,d=te(J[a+296>>2],9684,3),J[c+312>>2]=d;c=a,d=te(J[a+296>>2],4071,5),J[c+316>>2]=d;b=te(J[a+296>>2],14854,36);J[a+320>>2]=b;if(!(b?!J[a+312>>2]|!J[a+316>>2]:1))break a;se(a,0)}}function Rj(a,b){a=a|0;b=b|0;var c=0,d=0;c=(b&252)+2793824|0;uH(c);d=J[b>>2];if(d)J[d+4>>2]=J[d+4>>2]+1;J[c>>2]=0;c=(a&252)+2793824|0;uH(c);b=J[a>>2];J[a>>2]=d;J[c>>2]=0;a:{if(!b)break a;d=b+4|0;c=J[d>>2]-1|0;J[d>>2]=c;if(c)break a;c=J[d>>2];if(!c)J[d>>2]=-32767;if(c)break a;kc[J[J[b>>2]+4>> +2]](b)}return a|0}function kzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+2556>>2];if(J[a+588>>2]>0){c=J[a+540>>2];b=(J[c+1176>>2]+P(b,J[c+1168>>2])|0)+1|0;c=J[a+2524>>2];while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}b=J[a+2556>>2]}J[a+2556>>2]=b+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function jzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+2556>>2];if(J[a+588>>2]>0){c=J[a+540>>2];b=(J[c+1176>>2]+P(b,J[c+1168>>2])|0)+3|0;c=J[a+2524>>2];while(1){H[b|0]=K[c|0];c=c+1|0; +b=b+4|0;d=d+1|0;if((d|0)>2])continue;break}b=J[a+2556>>2]}J[a+2556>>2]=b+1;a:{if(J[a+968>>2]){b=hl(a);if(b)break a}b=0}return b|0}function Yp(a,b,c){var d=0,e=0;e=b-1|0;a:{if(K[a+402|0]==8){b:{if(e>>>0>253)break b;d=V(_e(+(b>>>0)/255,+(c|0)*1E-5)*255+.5);if(d<4294967296&d>=0){b=~~d>>>0;break b}b=0}b=b&255;break a}if(e>>>0>65533)break a;d=V(_e(+(b>>>0)/65535,+(c|0)*1E-5)*65535+.5);if(d<4294967296&d>=0){b=~~d>>>0;break a}b=0}return b&65535}function W2(a){var b=0;b=0;a:{if(a-J[188372]>>>0<128)break a; +b=1;if(a-J[188373]>>>0<128)break a;b=2;if(a-J[188374]>>>0<128)break a;b=3;if(a-J[188375]>>>0<128)break a;b=4;if(a-J[188376]>>>0<128)break a;b=5;if(a-J[188377]>>>0<128)break a;b=6;if(a-J[188378]>>>0<128)break a;b=a-J[188379]>>>0<128?7:-1}return b}function RZ(a){a=a|0;var b=0,c=0;while(1){J[(c<<2)+a>>2]=c;b=c|1;J[(b<<2)+a>>2]=b;b=c|2;J[(b<<2)+a>>2]=b;b=c|3;J[(b<<2)+a>>2]=b;b=c|4;J[(b<<2)+a>>2]=b;b=c|5;J[(b<<2)+a>>2]=b;b=c|6;J[(b<<2)+a>>2]=b;b=c|7;J[(b<<2)+a>>2]=b;c=c+8|0;if((c|0)!=256)continue;break}J[a+ +1032>>2]=0;J[a+1024>>2]=0;J[a+1028>>2]=0;return a|0}function Oqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+768|0;if((c|0)!=(b|0)){d=K[a+779|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}Gf(b,J[a+768>>2],J[a+772>>2]);return 0}f=b;b=(e|0)<0;Lf(f,b?J[a+768>>2]:c,b?J[a+772>>2]:d)}return 0}function NBb(a){a=a|0;var b=0,c=0;if(J[a+4>>2]==16)c=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else c=J[a+36>>2];b=J[J[a+40>>2]+16>>2];a= +J[a+52>>2];kc[J[J[a>>2]+20>>2]](a,2)|0;b=kc[J[J[a>>2]+20>>2]](a,(b|0)<257?1:2)|0;kc[J[J[a>>2]+20>>2]](a,1)|0;a=kc[J[J[a>>2]+20>>2]](a,1)|0;J[(J[c+1872>>2]+P(b,1076)|0)+808>>2]=a}function Mqa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+12>>2];c=a+756|0;if((c|0)!=(b|0)){d=K[a+767|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}Gf(b,J[a+756>>2],J[a+760>>2]);return 0}f=b;b=(e|0)<0;Lf(f,b?J[a+756>>2]:c,b?J[a+760>>2]:d)}return 0}function HN(a){a= +a|0;var b=0;J[a+36>>2]=500;J[a+40>>2]=400;H[a+32|0]=1;J[a+28>>2]=1;J[a+60>>2]=2333;J[a+64>>2]=0;J[a+52>>2]=1667;J[a+56>>2]=275;J[a+44>>2]=1E3;J[a+48>>2]=275;b=fc-16|0;b=J[a+8>>2]^(b+8^b+12);b=b>>>20^b>>>10^b;J[a+68>>2]=b;a:{if((b|0)<0)b=0-b|0;else{if(b)break a;b=123456789}J[a+68>>2]=b}return 0}function Drb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1296123726){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];H[b+36|0]=K[c+36|0];I[b+38>>1]=L[c+38>>1];I[b+40>>1]=L[c+40>>1];I[b+42>>1]= +L[c+42>>1];I[b+44>>1]=L[c+44>>1];I[b+46>>1]=L[c+46>>1];I[b+48>>1]=L[c+48>>1];H[b+50|0]=K[c+50|0];return 0}function D0(a){a=a|0;var b=0,c=0,d=0;c=J[a+24>>2];if(c){b=c;d=J[a+28>>2];if((b|0)!=(d|0)){while(1){b=d-12|0;if(H[d-1|0]<0)uc(J[b>>2]);d=b;if((b|0)!=(c|0))continue;break}b=J[a+24>>2]}J[a+28>>2]=c;uc(b)}J[a>>2]=852676;b=J[a+16>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)uc(J[a+4>>2]);return a|0}function Cs(a,b){var c=0,d=0;c=J[a+8>>2];a:{b:{if(c&7)break b;d=J[a+64>>2];if(!((d|0)< +0|J[a+60>>2]<(d|0))){J[a+8>>2]=c|4;break b}J[a+4>>2]=J[a+4>>2]|32;c=J[a+28>>2];J[a+28>>2]=c-1;if((c|0)>0){J[a+60>>2]=J[a+60>>2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;H[a|0]=b;return 0}c=0;if((bd(a,b)|0)!=-1)break a}c=-1}return c}function BU(a){var b=0,c=0,d=0,e=0,f=0;a:{if(K[a+4|0])break a;e=J[a>>2];d=J[e>>2];if(!d)break a;b=d;c=J[e+4>>2];if((b|0)!=(c|0)){while(1){c=c-8|0;b=J[c+4>>2];b:{if(!b)break b;f=J[b+4>>2];J[b+4>>2]=f-1;if(f)break b;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)!=(c|0))continue;break}b= +J[J[a>>2]>>2]}J[e+4>>2]=d;uc(b)}}function xBa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;a=rl(d+8|0,2411063);J[699344]=0;e=ga(5287,a|0,b|0,-1)|0;f=J[699344];J[699344]=0;c=1;a:{if((f|0)==1)break a;if(e){J[699344]=0;b=pd(b,2411123,-1);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=!b}wc(a);fc=d+16|0;return c|0}b=Z()|0;wc(a);ba(b|0);B()}function tE(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{if(!J[a+4>>2])break a;e=Dc(J[a+52>>2]);if(!e)break a;b=mf(a,J[a+20>>2]-1|0);c=mf(a,0);if(J[a+20>>2]>=2){d=J[a+52>> +2];while(1){g=xc(e,b,d);b=xc(b,c,d);c=xc(c,g,J[a+52>>2]);d=J[a+52>>2];c=c+d|0;b=b-d|0;f=f+1|0;if((f|0)<(J[a+20>>2]/2|0))continue;break}}uc(e);yaa(a)}}function eYa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+420>>2];if(J[a+236>>2]){d=J[c+68>>2];if(!d){Vw(a,J[c+72>>2]);d=J[a+236>>2];J[c+72>>2]=J[c+72>>2]+1&7}J[c+68>>2]=d-1}if(J[a+316>>2]>0){d=c+204|0;e=J[a+372>>2];c=0;while(1){We(a,d,I[J[(c<<2)+b>>2]>>1]>>>e&1);c=c+1|0;if((c|0)>2])continue;break}}return 1}function XN(a,b,c,d){var e=0,f=0;a:{if((c| +d)<0)break a;b:{if((a|0)>=0)break b;c=a+c|0;a=0;if((c|0)>0)break b;return 0}c:{if((b|0)>=0)break c;d=b+d|0;b=0;if((d|0)>0)break c;return 0}e=kd(1,20);if(!e)break a;J[e+4>>2]=b;J[e>>2]=a;if((c|0)!=-1)J[e+8>>2]=c;if((d|0)!=-1)J[e+12>>2]=d;J[e+16>>2]=1;f=e}return f}function X$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+4>>2];a:{b:{if(!J[c+4>>2])break b;f=b+1|0;while(1){if((Nr(J[c+4>>2])|0)!=1)break b;d=ou(J[c+4>>2]);a=Vm(J[c+4>>2]);if((d|0)==-1|(a|0)==-1|(a|0)<(b|0))break b;e=1;if((d|0)==1&(a|0)==(f| +0))break a;if((d|0)!=15|(a|0)!=(b|0))continue;break}}e=0}return e|0}function Hca(a){a=a|0;var b=0,c=0,d=0;c=fc-16|0;fc=c;b=J[a+584>>2];if(b){if(K[b+124|0]&2){Yo(b- -64|0);J[b+124>>2]=0}a:{if(xx(b- -64|0,73918,56)){d=J[a+628>>2];a=J[a>>2];J[c+4>>2]=J[b+88>>2];J[c>>2]=a;Uc(d,98017,74194,c);a=0;break a}J[b+124>>2]=J[b+124>>2]|1;a=1}fc=c+16|0;return a|0}fa(73294,70440,93,98017);B()}function Gcb(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c, +f)+255>>>8|0;b=P(b,f)+255>>>8|0}f=K[a+3|0];H[a+3|0]=f+e-(P(e,f)+255>>>8);e=b;b=f^255;H[a+2|0]=K[a+2|0]+(P(e,b)+255>>>8|0);H[a+1|0]=K[a+1|0]+(P(b,c)+255>>>8|0);H[a|0]=K[a|0]+(P(b,d)+255>>>8|0)}function AAa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;a=rl(d+8|0,2415713);J[699344]=0;e=ga(5287,a|0,b|0,-1)|0;f=J[699344];J[699344]=0;c=1;a:{if((f|0)==1)break a;if(e){J[699344]=0;b=pd(b,2416422,-1);c=J[699344];J[699344]=0;if((c|0)==1)break a;c=!b}wc(a);fc=d+16|0;return c|0}b=Z()|0;wc(a);ba(b|0);B()} +function yJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=Q(0),f=0,g=0;d=fc-16|0;fc=d;if(c)while(1){H[d+15|0]=K[a|0];H[d+14|0]=K[a+1|0];H[d+13|0]=K[a+2|0];H[d+12|0]=K[a+3|0];e=N[d+12>>2];a:{if(Q(R(e))>2]=f;b=b+4|0;a=a+4|0;g=g+1|0;if((g|0)!=(c|0))continue;break}fc=d+16|0}function y8a(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;O[d+8>>3]=c;O[d+16>>3]=b;e=J[a+4>>2];f=J[e+28>>2];if(f){ce(f,d+16|0,d+8|0);e=J[a+4>>2];c=O[d+8>>3];b=O[d+16>>3]}H[e+25| +0]=1;J[d+28>>2]=0;g=Qe(e,d+28|0),h=1,H[g|0]=h;a=J[d+28>>2];O[a+8>>3]=c;O[a>>3]=b;J[e>>2]=J[e>>2]+1;fc=d+32|0;return 1}function v8a(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;a=J[a+4>>2];b=J[a>>2];a:{if(!b)break a;b=b-1|0;if(K[J[J[a+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]-1>>>0>13)break a;J[c+12>>2]=0;d=Qe(a,c+12|0),e=79,H[d|0]=e;b=J[c+12>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a>>2]=J[a>>2]+1}fc=c+16|0;return 1}function lDb(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(Wg(b,a+20|0))break a;c=Dc(P(J[a+ +20>>2],12));J[a+24>>2]=c;if(!c)break a;if(!J[a+20>>2])return 0;c=0;while(1){d=J[a+24>>2]+P(c,12)|0;if(Wg(b,d))break a;if(Wg(b,d+4|0))break a;if(Wg(b,d+8|0))break a;c=c+1|0;if(c>>>0>2])continue;break}return 0}return-1}function dt(a,b){var c=0,d=0,e=0;d=fc-16|0;fc=d;H[d+15|0]=b;c=J[a+16>>2];a:{if(!c){c=-1;if(KG(a))break a;c=J[a+16>>2]}b:{e=J[a+20>>2];if((c|0)==(e|0))break b;c=b&255;if((c|0)==J[a+80>>2])break b;J[a+20>>2]=e+1;H[e|0]=b;break a}c=-1;if((kc[J[a+36>>2]](a,d+15|0,1)|0)!=1)break a; +c=K[d+15|0]}fc=d+16|0;return c}function Ww(a){a:{if(J[a>>2]!=4)break a;a=J[a+8>>2];if(!Ic(a,786386))return 0;if(!Ic(a,787186))return 1;if(!Ic(a,788158))return 2;if(!Ic(a,788812))return 3;if(!Ic(a,789631))return 4;if(!Ic(a,790626))return 6;if(!Ic(a,791384))return 7;if(!Ic(a,792186))return 8;if(Ic(a,793277))break a;return 9}return 5}function V7(a,b){var c=0,d=0;a:{if(!a|!b)break a;d=L[a+2>>1];if((d|0)!=L[b+2>>1])break a;c=L[a>>1];if((a|0)==(b|0)|(c|0)!=L[b>>1])break a;if(d){xc(J[b+4>>2],J[a+4>>2],d<< +16>>16<<3);xc(J[b+8>>2],J[a+8>>2],I[a+2>>1]);c=L[a>>1]}if(c)xc(J[b+12>>2],J[a+12>>2],c<<16>>16<<1);J[b+16>>2]=J[a+16>>2]&-2|J[b+16>>2]&1}}function MB(a,b,c){var d=0,e=0,f=0;a:{if(J[a+12>>2]>=(b|0))break a;d=J[a+16>>2];if((d|0)<=0|(2147483646/(d>>>0)|0)<=(b|0))break a;d=YJ(J[a+20>>2],P(b,d)+1|0);J[a+20>>2]=d;e=J[a+12>>2];f=J[a+16>>2];d=d+P(e,f)|0;e=P(f,b-e|0);b:{if(c){Ac(d,255,e);break b}Ac(d,0,e)}J[a+12>>2]=b;H[J[a+20>>2]+P(J[a+16>>2],b)|0]=0}}function vu(a){var b=0,c=0,d=0;c=J[a+28>>2];Uh(c);b=J[c+ +20>>2];d=J[a+16>>2];b=b>>>0>>0?b:d;a:{if(!b)break a;xc(J[a+12>>2],J[c+16>>2],b);J[a+12>>2]=b+J[a+12>>2];J[c+16>>2]=b+J[c+16>>2];J[a+20>>2]=b+J[a+20>>2];J[a+16>>2]=J[a+16>>2]-b;a=J[c+20>>2];J[c+20>>2]=a-b;if((a|0)!=(b|0))break a;J[c+16>>2]=J[c+8>>2]}}function uQa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+12>>2]=d;J[a+8>>2]=c;J[a>>2]=2317464;J[a+4>>2]=b;b=c+7>>3;J[a+16>>2]=b;a:{if(!((c|0)<=0|(d|0)<=0|(b|0)<=0))if(2147483646/(b>>>0)>>>0>d>>>0)break a;J[a+12>>2]=-1;J[a+16>>2]=2;d=-1;b=2}b=Pk(P(b,d)+1|0); +J[a+20>>2]=b;H[b+P(J[a+16>>2],J[a+12>>2])|0]=0;return a|0}function qSa(a){a=a|0;var b=0;b=vc(160);J[b>>2]=2217780;J[b+4>>2]=15;J[b+8>>2]=0;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+48>>3]=O[a+48>>3];O[b+56>>3]=O[a+56>>3];O[b+64>>3]=O[a+64>>3];O[b+72>>3]=O[a+72>>3];O[b+80>>3]=O[a+80>>3];xc(b+88|0,a+88|0,72);return b|0}function l_a(a,b,c,d,e,f,g,h,i){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;var j=0,k=0;j=J[a+272>>2];if(j){k=J[j+40>>2];a:{if(!k)break a; +kc[k|0](a,b,c,d,e,f,g,h,i);b=J[a+52>>2];if(!b)break a;a=J[a+36>>2];if(!a)break a;a=J[a+16>>2];if(!a|K[a|0]!=47|K[a+1|0]!=62)break a;I[b+58>>1]=1}J[j+16>>2]=1}}function l$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a=65536-J[b+8>>2]|0;a=(a|0)>=65536?65536:a;d=(a|0)>0?a:0;a=65536-J[b+4>>2]|0;a=(a|0)>=65536?65536:a;e=(a|0)>0?a:0;a=65536-J[b>>2]|0;a=(a|0)>=65536?65536:a;b=(a|0)>0?a:0;a=b>>>0>e>>>0?e:b;a=a>>>0>d>>>0?d:a;J[c+12>>2]=a;J[c+8>>2]=d-a;J[c+4>>2]=e-a;J[c>>2]=b-a}function Nx(a){a=a|0;var b=0,c= +0,d=0,e=0;c=fc-16|0;fc=c;a=J[a+4>>2];b=J[a>>2];a:{if(!b)break a;b=b-1|0;if(K[J[J[a+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]-1>>>0>13)break a;J[c+12>>2]=0;d=Qe(a,c+12|0),e=79,H[d|0]=e;b=J[c+12>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a>>2]=J[a>>2]+1}fc=c+16|0;return 0}function H6a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;J[c+4>>2]=b;e=a+8|0;p4(c+8|0,e,b,c+4|0);a=J[J[c+8>>2]+28>>2];if(!a){a=0;d=J[693078];a:{if(!d)break a;d=kc[J[J[d>>2]+24>>2]](d,b)|0;if(!d)break a;kc[J[J[d>>2]+8>>2]](d)| +0;a=d}J[c+4>>2]=b;p4(c+8|0,e,b,c+4|0);J[J[c+8>>2]+28>>2]=a}fc=c+16|0;return a|0}function Ejb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;f=J[a+16>>2];c=b;b=L[a+8>>1];c=_c(c,1,0,b+1|0,0,d+12|0);fc=d+16|0;if(J[d+12>>2])a=e;else{a=0;a:{if(!b)break a;while(1){e=H[f|0];if(!e)break a;H[a+c|0]=(e|0)<32?63:e;f=f+1|0;a=a+1|0;if((b|0)!=(a|0))continue;break}a=b}H[a+c|0]=0;a=c}return a|0}function Dla(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=J[b+16>>2];if(c>>>0<1073741808){e=J[b+4>>2];b:{if(c>>>0<= +1){H[a+11|0]=c;break b}b=c|3;if(b>>>0>=1073741823)break a;d=b+1|0;b=vc(d<<2);J[a+8>>2]=d|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}b=a;a=c<<2;f=cd(b,e,a)+a|0,g=0,J[f>>2]=g;return}_d(a);B()}Pd();B()}function Ufa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=fc-16|0;fc=g;J[e>>2]=c;f=g+12|0;a=VF(f,0,b,J[a+8>>2]);b=2;a:{if(a+1>>>0<2)break a;c=a-1|0;b=1;if(c>>>0>d-J[e>>2]>>>0)break a;while(1){if(c){a=K[f|0];b=J[e>>2];J[e>>2]=b+1;H[b|0]=a;c=c-1|0;f=f+1|0;continue}break}b=0}a=b;fc=g+16|0;return a|0} +function G_(a){var b=0,c=0,d=0;a:{b=J[a+4>>2];if((b|0)>0)while(1){d=J[J[a>>2]+(c<<3)>>2];if(d){J[699344]=0;Mc(d);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+4>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}b=J[a>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a}ea(0)|0;Bc();B()}function uP(a,b){var c=0,d=0;c=-1;d=J[a+8>>2];a:{if(d&7)break a;c=J[a+64>>2];if(!((c|0)<0|(c|0)>J[a+60>>2])){J[a+8>>2]=d|4;return-1}c=-1;d=J[a+28>>2];J[a+28>>2]=d-1;b:{if((d|0)>0){J[a+60>>2]=J[a+60>> +2]+1;c=a;a=J[a+24>>2];J[c+24>>2]=a+1;a=K[a|0];break b}a=td(a,1);if((a|0)==-1)break a}H[b|0]=a;c=0}return c}function g$a(a){a=a|0;var b=0;b=J[a+388>>2];kc[J[J[a+420>>2]+8>>2]](a);a:{b:switch(J[b+20>>2]){case 0:J[b+20>>2]=2;if(J[a+216>>2])break a;J[b+32>>2]=J[b+32>>2]+1;break a;case 1:J[b+20>>2]=2;break a;case 2:break b;default:break a}if(J[a+216>>2])J[b+20>>2]=1;J[b+32>>2]=J[b+32>>2]+1}J[b+24>>2]=J[b+24>>2]+1}function Nsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-32|0;fc=d;a:{e=vj(a,0,262142,a+152| +0);a=vj(a,0,262142,a+156|0);if((e|a)>>>0>=65536){a=Qc(d+8|0,2394816,2386144,790,2433873,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}bw(b,a,e,c);fc=d+32|0;return}B()}function Nc(a,b,c,d){var e=0,f=0;e=fc-528|0;fc=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=J[b>>2];if(!b|!c)break a;f=J[a>>2];a=Ac(e,0,512);J[a+524>>2]=d;tm(a,512,c,d);H[a+511|0]=0;kc[b| +0](a,f)}fc=e+528|0}function MKa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[J[b+16>>2]+40>>2];if(!b){J[a>>2]=0;H[a+11|0]=0;return}d=b+36|0;b=mj(b+32|0,c);a:{if((d|0)==(b|0)){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;break a}if(H[b+39|0]>=0){c=J[b+32>>2];J[a>>2]=J[b+28>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+36>>2];break a}Ve(a,J[b+28>>2],J[b+32>>2])}}function Kpb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[a+16>>2];if(d){g=J[a+20>>2];a=d>>>1|0;while(1){c=d+f>>>1|0;c=a>>>0>=d>>>0?c:a>>>0>>0?c:a;e=J[(c<<3)+g>>2];if((e| +0)==(b|0))return L[((c<<3)+g|0)+4>>1]+1&65535;a=(b+c|0)-e|0;e=b>>>0>>0;f=e?f:c+1|0;d=e?c:d;if(f>>>0>>0)continue;break}}return 0}function C0(a){a=a|0;var b=0,c=0,d=0;c=J[a+24>>2];if(c){b=c;d=J[a+28>>2];if((b|0)!=(d|0)){while(1){b=d-12|0;if(H[d-1|0]<0)uc(J[b>>2]);d=b;if((b|0)!=(c|0))continue;break}b=J[a+24>>2]}J[a+28>>2]=c;uc(b)}J[a>>2]=852676;b=J[a+16>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)uc(J[a+4>>2]);uc(a)}function A1a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(K[b+8|0]){r3(730719, +c);return}b=cD(730719,c);if(J[c>>2]<=0){J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;d=a;a=J[693263];a:{if(a){a=kc[a|0](J[693264],16)|0;break a}a=Dc(16)}if(a)a=Ac(a,0,16);else a=0;J[d+8>>2]=a;if(a){J[a>>2]=b;return}Yr(b);J[c>>2]=7}}function xH(a,b,c){var d=0;d=vc(28);J[d+12>>2]=0;J[d+8>>2]=b;J[d>>2]=2434832;J[d+4>>2]=0;J[699344]=0;ha(5213,d+20|0,d+16|0,0,1)|0;b=J[699344];J[699344]=0;if((b|0)==1){a=Z()|0;uc(nd(d));ba(a|0);B()}J[a>>2]=0;vd(a,d);J[699344]=0;da(5698,d|0,c|0);b=J[699344];J[699344]= +0;if((b|0)==1){b=Z()|0;zc(a);ba(b|0);B()}}function nNa(a){a=a|0;var b=0;b=J[a+4>>2];kc[J[J[b>>2]+20>>2]](b);b=J[a+8>>2];if(b){Ac(J[b+32>>2],0,J[b+28>>2]);J[b+36>>2]=J[b+28>>2]}J[a+53320>>2]=0;J[a+53324>>2]=0;J[a+53316>>2]=1;J[a+53308>>2]=0;J[a+53312>>2]=0;J[a+49192>>2]=258;J[a+49196>>2]=9;J[a+24>>2]=0;J[a+16>>2]=0;a=a+53328|0;J[a>>2]=0;J[a+4>>2]=0}function eu(a){a=a|0;var b=0,c=0;J[a>>2]=851700;b=J[a+156>>2];if(b){c=J[b+16>>2];if(c){J[b+20>>2]=c;uc(c)}uc(b);J[a+156>>2]=0}b=J[a+144>>2];if(b){J[a+148>> +2]=b;uc(b)}if(H[a+143|0]<0)uc(J[a+132>>2]);if(H[a+131|0]<0)uc(J[a+120>>2]);if(H[a+119|0]<0)uc(J[a+108>>2]);if(H[a+107|0]<0)uc(J[a+96>>2]);return a|0}function Zxa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b){e=M[b+12>>2]%M[a+8>>2]|0;c=J[b+4>>2];d=J[b>>2];if(d)J[d+4>>2]=c;J[(c?c:a+24|0)>>2]=d;c=J[a+12>>2]+(e<<2)|0;a:{if(J[c>>2]==(b|0)){J[c>>2]=J[b+8>>2];break a}c=J[b>>2];if(!c)break a;J[c+8>>2]=J[b+8>>2]}kc[J[J[a>>2]+16>>2]](b,1);uc(b);J[a+4>>2]=J[a+4>>2]-1}}function FG(a){var b=0,c=0,d=0,e=0,f=0,g=0;b=28711; +if((a|0)!=28711){c=6879;e=3439;d=3439;while(1){if((c|0)==1)return 0;b=a>>>0>>0;g=b?g:e;c=b?d:c-d|0;d=c>>>1|0;e=g+d|0;f=L[(e<<1)+2594960>>1];b=L[(P(f>>>8|0,188)+((f&255)<<1)|0)+2532496>>1];if((b|0)!=(a|0))continue;break}a=f+8481|0}else a=17005;return a}function qO(a){if(!Fc(a)){a:{b:{a=Fc(a);if((a|0)<=1282306591){if((a|0)==1097754476)break a;if((a|0)!=1148022372)break b;return 4}if((a|0)==1282306592)return 0;if((a|0)!=1382444131){if((a|0)!=1382312992)break b;return 1}return 3}fa(219546,219859,865, +225251);B()}return 2}fa(221278,219859,845,225251);B()}function eza(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;g=h<<2;while(1){f=f-1|0;a=e;while(1){J[b>>2]=K[i+1|0]|K[i+3|0]<<8|K[i+5|0]<<16|K[i+7|0]<<24;b=b+4|0;i=c+i|0;a=a-1|0;if(a)continue;break}i=d+i|0;b=b+g|0;if(f)continue;break}}}function eHa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-32|0;fc=d;b=Im(d,b);J[699344]=0;c=Im(b+12|0,c);e=J[699344];J[699344]=0;a:{if((e|0)==1){a= +Z()|0;break a}J[699344]=0;ia(5104,d+24|0,a+24|0,b|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;Rc(c);break a}Rc(c);Rc(b);fc=d+32|0;return}Rc(b);ba(a|0);B()}function Bu(a,b,c,d){var e=0;e=fc-32|0;fc=e;J[a+344>>2]=0;a:{if((d|0)==1){J[e+24>>2]=0;J[e+28>>2]=0;O[e+16>>3]=c;O[e+8>>3]=b;d=a+320|0;a=J[a+320>>2];if(a)J[d>>2]=a-1;Dx(d,e+8|0);break a}if(d-1>>>0<=13){J[e+24>>2]=0;J[e+28>>2]=0;O[e+16>>3]=c;O[e+8>>3]=b;Dx(a+320|0,e+8|0);break a}J[a+340>>2]=d&64}fc=e+32|0}function oib(a){a=a|0;var b=0,c= +0,d=0,e=0;d=fc-16|0;fc=d;b=J[a>>2];c=J[b+552>>2];b=wh(J[J[b+96>>2]+4>>2],241284);a:{if(!b|!c)break a;c=J[c>>2];if(!c)break a;c=kc[c|0](b)|0;if(!c)break a;b=J[a>>2];e=kc[J[c>>2]](J[b+100>>2],b+168|0,d+12|0)|0;if(e)break a;J[J[a+40>>2]>>2]=J[d+12>>2]}fc=d+16|0;return e|0}function hF(a,b){var c=0;a:{b:{if(!Ic(b,197896))break b;if(!Ic(b,198565))break b;if(!Ic(b,200334))break b;if(Ic(b,200995))break a}c=Dc(20);if(c){J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=a;J[c>>2]=1;a=K[b|0];J[c+4>>2]=0;a=(a|0)==119;J[c+ +8>>2]=a<<3;J[c+16>>2]=a?2:1}return c}fa(201644,202126,103,212093);B()}function FDa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=rf(c);a:{b=J[J[b+120>>2]+((d>>>0)%M[b+116>>2]<<2)>>2];if(b)while(1){if(J[b+12>>2]==(d|0))if(!Qj(b+16|0,c,-1))break a;b=J[b+8>>2];if(b)continue;break}J[a>>2]=0;vd(a,0);return}c=J[b+24>>2];if(!c){J[a>>2]=0;return}J[c+4>>2]=J[c+4>>2]+1;J[a>>2]=J[b+24>>2]}function Ceb(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0;d=J[a+16>>2];a=2;f=b<0;a:{if(!(f|b>1)){a=J[d+1604>>2];c=8;if(!a)break a;a=(a+J[d+1600>> +2]|0)-1|0;c=J[J[J[d+1588>>2]+(a>>>8&16777212)>>2]+((a&1023)<<2)>>2];e=W(b*255);b:{if(e<4294967296&e>=0){a=~~e>>>0;break b}a=0}H[c+13|0]=b>1?-1:f?-1:a;a=0}c=a}return c|0}function ij(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=349612;c=J[a+4>>2];if(c){b=J[c+4>>2];a:{if(!b)break a;d=b-1|0;J[c+4>>2]=d;e=J[c+12>>2]+(b<<2)|0;while(1){e=e-4|0;b=J[e>>2];if(b){uc(b);d=J[c+4>>2]}b=d;d=b-1|0;J[c+4>>2]=d;if(b)continue;break}d=J[c+12>>2];if(!d)break a;uc(d)}uc(c);J[a+4>>2]=0}return a|0}function _ta(a){a=a|0;var b=0; +J[a>>2]=2427512;b=J[a+56>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+60>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+64>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[699344]=0;$(5675,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)return zH(a)|0;ea(0)|0;Bc();B()}function _sb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](1320)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>> +2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function Nvb(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;var h=0,i=0,j=0;a:{if(f){if(!d)break a;i=c<<1;j=b<<1;a=0;while(1){h=K[f|0];b=K[e|0];if((h|0)!=(b|0))b=b+((P(h-b|0,j)+c|0)/(i|0)|0)|0;H[g|0]=b;f=f+1|0;e=e+1|0;g=g+1|0;a=a+1|0;if((d|0)!=(a|0))continue;break}break a}xc(g,e,d)}return 0}function Bcb(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(f>>>0<=254){e=P(e,f)+255>>>8|0;d=P(d,f)+255>>>8|0;c=P(c,f)+255>>> +8|0;f=P(b,f)+255>>>8|0}else f=b;b=K[a+3|0];e=255-e|0;H[a+2|0]=(P(f,b)+P(e,K[a+2|0])|0)+255>>>8;H[a+1|0]=(P(b,c)+P(e,K[a+1|0])|0)+255>>>8;H[a|0]=(P(b,d)+P(e,K[a|0])|0)+255>>>8}function uka(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;d=fc-16|0;fc=d;e=J[a+608>>2];a:{if((e|0)<(c|0)){b=J[a>>2];c=J[a+628>>2];J[d>>2]=J[a+472>>2];Uc(c,b,69534,d);a=0;break a}f=J[a+604>>2];if((f|0)!=(b|0)){Ue(b,f,c);e=J[a+608>>2];b=J[a+604>>2]}J[a+608>>2]=e-c;J[a+604>>2]=b+c;a=1}fc=d+16|0;return a|0}function hHa(a,b,c){a= +a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-32|0;fc=d;b=Im(d,b);J[699344]=0;c=Im(b+12|0,c);e=J[699344];J[699344]=0;a:{if((e|0)==1){a=Z()|0;break a}J[699344]=0;ia(5104,d+24|0,a|0,b|0,b|0);a=J[699344];J[699344]=0;if((a|0)==1){a=Z()|0;Rc(c);break a}Rc(c);Rc(b);fc=d+32|0;return}Rc(b);ba(a|0);B()}function dtb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](808)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>> +2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function ctb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](564)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function atb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](548)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a= +J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function TCa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;b=J[b>>2];e=a,f=Ct(b),J[e+8>>2]=f;d=a+12|0;aw(d);e=a,f=(Ct(b)<<8)+J[a+8>>2]|0,J[e+8>>2]=f;c=Kk(b);if(c){d=qt(d,c);e=(kc[J[J[b>>2]+8>>2]](b,d,c)|0)+d|0,f=0,H[e|0]=f}c=a+20|0;aw(c);a=Bt(b);if(a){c=qt(c,a);e=(kc[J[J[b>>2]+8>>2]](b,c,a)|0)+c|0,f=0,H[e|0]=f}}function SL(a, +b){var c=0,d=0,e=0,f=0,g=0;d=K[a+11|0];c=d<<24>>24<0?J[a+4>>2]:d;a:{if(!c)break a;d=0;e=vc(c>>>0>1073741823?-1:c<<2);J[b>>2]=0;c=K[a+11|0];c=c<<24>>24<0?J[a+4>>2]:c;J[b>>2]=c;if(!c)break a;while(1){f=(d<<2)+e|0,g=J[_h(a,d)>>2],J[f>>2]=g;d=d+1|0;if(d>>>0>2])continue;break}}return e}function Oya(a,b,c,d,e,f,g,h,i){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;if(!(!f|!e)){a=L[a+26>>1];c=a<<1;d=P(a,g)<<1;g=h<<2;while(1){f=f-1|0;a=e;while(1){J[b>>2]=K[i+1|0]|K[i+3|0]<<8|K[i+5|0]<<16|-16777216; +b=b+4|0;i=c+i|0;a=a-1|0;if(a)continue;break}i=d+i|0;b=b+g|0;if(f)continue;break}}}function L8a(a,b,c){a=a|0;b=b|0;c=c|0;J[a+16>>2]=c;J[a>>2]=349404;J[a+4>>2]=2;wk(a+20|0);J[a+40>>2]=0;J[a+44>>2]=0;J[a+24>>2]=-16777216;J[a+28>>2]=-16777216;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;c=a- -64|0;J[c>>2]=0;J[c+4>>2]=0;H[a+72|0]=255;J[a+12>>2]=0;J[a+8>>2]=b;H[a+32|0]=0;return a|0}function H$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;d=c+4|0;e=K[b+11|0];f=e<<24>>24<0;_m(d,f?J[b>>2]:b, +f?J[b+4>>2]:e,0);J[699344]=0;a=aa(3258,a|0,d|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return a|0}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function Gp(a,b,c,d){var e=0;a:{if(!(d&2048))break a;e=d&74;if(!c|((e|0)==8|(e|0)==64))break a;H[a|0]=43;a=a+1|0}if(d&512){H[a|0]=35;a=a+1|0}while(1){e=K[b|0];if(e){H[a|0]=e;a=a+1|0;b=b+1|0;continue}break}e=d&74;b=111;b:{if((e|0)==64)break b;b=d&16384?88:120;if((e|0)==8)break b;b=c?100:117}H[a|0]=b}function GDa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0;d=rf(c);a:{b=J[J[b+64>>2]+((d>>>0)%M[b+60>>2]<<2)>>2];if(b)while(1){if(J[b+12>>2]==(d|0))if(!Qj(b+16|0,c,-1))break a;b=J[b+8>>2];if(b)continue;break}J[a>>2]=0;vd(a,0);return}c=J[b+24>>2];if(!c){J[a>>2]=0;return}J[c+4>>2]=J[c+4>>2]+1;J[a>>2]=J[b+24>>2]}function Ddb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=vc(44);J[699344]=0;d=_(2273,c|0)|0;e=J[699344];J[699344]=0;if((e|0)==1){a=Z()|0;uc(c);ba(a|0);B()}c=kc[J[J[a>>2]+20>>2]](a)|0;g=d,h=kc[J[J[c>>2]+24>>2]](c)|0, +f=J[J[d>>2]+24>>2],kc[f](g|0,h|0);kc[J[J[d>>2]+20>>2]](d,b);kc[J[J[a>>2]+68>>2]](a,d)}function Cu(a,b,c,d){var e=0;e=fc-32|0;fc=e;J[a+124>>2]=0;a:{if((d|0)==1){J[e+24>>2]=0;J[e+28>>2]=0;O[e+16>>3]=c;O[e+8>>3]=b;d=a+72|0;a=J[a+72>>2];if(a)J[d>>2]=a-1;Dx(d,e+8|0);break a}if(d-1>>>0<=13){J[e+24>>2]=0;J[e+28>>2]=0;O[e+16>>3]=c;O[e+8>>3]=b;Dx(a+72|0,e+8|0);break a}J[a+120>>2]=d&64}fc=e+32|0}function sqa(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;O[b>>3]=O[J[J[a+12>>2]+920>>2]>>3];O[c>>3]= +O[J[J[a+12>>2]+920>>2]+8>>3];O[d>>3]=O[J[J[a+12>>2]+920>>2]+16>>3];O[e>>3]=O[J[J[a+12>>2]+920>>2]+24>>3];O[f>>3]=O[J[J[a+12>>2]+920>>2]+32>>3];O[g>>3]=O[J[J[a+12>>2]+920>>2]+40>>3];return 0}function nia(a,b){a=a|0;b=b|0;var c=0;b=fc-16|0;fc=b;c=0;a:{if(!oz(a))break a;if(!Bn(a,95456,1)){Uc(J[a+628>>2],72327,72692,0);c=0;break a}J[a+556>>2]=618;J[a+548>>2]=618;J[a+540>>2]=618;J[a+560>>2]=619;J[a+552>>2]=619;J[a+544>>2]=619;J[a+536>>2]=620;J[b>>2]=1;c=ke(a,65536,b)}a=c;fc=b+16|0;return a|0}function jla(a){a= +a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;a:{b:{c:{b=Yc(a);if(b>>>0>=6){b=(a+b|0)-6|0;if(!dd(b,19982,6))break c}J[698583]=28;break b}d=100;while(1){dT(b);J[c>>2]=384;e=Cv(a,194,c);if((e|0)>=0)break a;d=d-1|0;if(J[698583]==20?d:0)continue;break}xc(b,19982,6)}e=-1}fc=c+16|0;return e|0}function h1a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+8>>2];a:{b:{if(b>>>0>=2){d=L[c+4>>1];e=J[c+20>>2];break b}J[a+44>>2]=65535;J[a+48>>2]=0;J[c+44>>2]=0;I[c>>1]=65534;d=L[c+4>>1];I[c+8>>1]=d;e=J[c+20>>2];J[c+16>>2]=e;if((b| +0)==1)break a}J[a+56>>2]=0;J[c+12>>2]=e;I[c+2>>1]=0;I[c+24>>1]=1;I[c+6>>1]=d}}function dxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=J[a+2308>>2];if(b){e=J[a+2300>>2];d=J[a+2312>>2];c=J[a+2316>>2];while(1){f=K[d|0];if(f>>>0>2]){b=P(f,3)+e|0;H[c|0]=K[b+68|0];H[c+1|0]=K[b+69|0];H[c+2|0]=K[b+70|0];b=J[a+2308>>2]}c=c+3|0;d=d+1|0;g=g+1|0;if(g>>>0>>0)continue;break}}return 0}function ZH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=rf(c);a:{b=J[J[b+92>>2]+((d>>>0)%M[b+88>>2]<<2)>>2];if(b)while(1){if(J[b+12>> +2]==(d|0))if(!Qj(b+16|0,c,-1))break a;b=J[b+8>>2];if(b)continue;break}J[a>>2]=0;vd(a,0);return}c=J[b+24>>2];if(!c){J[a>>2]=0;return}J[c+4>>2]=J[c+4>>2]+1;J[a>>2]=J[b+24>>2]}function CD(a,b,c){a=a|0;b=+b;c=c|0;a:{b:switch(c-3|0){case 0:b=O[a+16>>3]/(b/72);if(b==O[a+32>>3])break a;O[a+32>>3]=b;return 0;case 3:b=O[a+16>>3]/(b/25.4);if(b==O[a+32>>3])break a;O[a+32>>3]=b;return 0;case 1:break b;default:break a}b=O[a+16>>3]/b;if(b==O[a+32>>3])break a;O[a+32>>3]=b}return 0}function $sb(a,b,c){a=a|0;b=b| +0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](84)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function zy(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](52)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>> +2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function vD(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;a=J[a+4>>2];b=J[a>>2];a:{if(!b)break a;b=b-1|0;if(!K[J[J[a+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0])break a;J[c+12>>2]=0;d=Qe(a,c+12|0),e=0,H[d|0]=e;b=J[c+12>>2];J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a>>2]=J[a>>2]+1}fc=c+16|0;return 0}function uua(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2426768;hd(a+28|0);b=J[a+16>>2];J[a+16>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]- +1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return rh(a)|0}function u6a(a){a=a|0;var b=0,c=0;J[a>>2]=351960;a:{b=J[a+8>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+8>>2]=0}b=J[a+172>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+172>>2]=0}if(H[a+123|0]<0)uc(J[a+112>>2]);t4(a+16|0);uc(a);return}ea(0)|0;Bc();B()}function tzb(a){a=a|0;var b=0,c=0,d= +0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];c=c+2|0;b=(J[a+584>>2]<<1)+b|0;d=d+1|0;if((d|0)>2])continue;break}}return 0}function sp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](44)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+ +20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function o4(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b+4>>2];a:{if(!c){c=b;while(1){d=J[c+8>>2];e=J[d>>2]!=(c|0);c=d;if(e)continue;break}break a}while(1){d=c;c=J[c>>2];if(c)continue;break}}if(J[a>>2]==(b|0))J[a>>2]=d;J[a+8>>2]=J[a+8>>2]-1;ED(J[a+4>>2],b);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b);return d|0}function mo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](40)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2]; +J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function gsa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2436588;wc(a+16|0);b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return nd(a)|0}function fv(a,b,c){a=a|0;b=b|0;c=c|0;var d= +0;d=c;c=kc[J[a+152>>2]](32)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function fob(a){a=a|0;var b=0,c=0;c=J[a+28>>2];b=J[a+12>>2];if(b){Jl(b+12|0);J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;J[b+24>>2]=0;J[b+28>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;if(b)kc[J[c+8>>2]](c,b);J[a+12>>2]=0}if(!J[a+ +20>>2]){b=J[a>>2];if(b)kc[J[c+8>>2]](c,b);J[a>>2]=0}}function cZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(!(K[b+8|0]&16)|(!a|!b))break a;b:{if(K[b+25|0]==3){if(c){J[c>>2]=J[b+76>>2];f=16}else f=0;if(!e)break b;J[e>>2]=b+80;break b}if(e){J[e>>2]=b+80;f=16}else f=0;if(!c)break b;J[c>>2]=0}if(!d)break a;J[d>>2]=L[b+22>>1];f=16}return f|0}function XIa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+24>>2];if(b){c=J[a+28>>2];if(c>>>0>=52){e=(c>>>0)/52|0;while(1){c=J[b>>2];if(c){uc(c-1|0);J[b>>2]=0}c= +J[b+4>>2];if(c){uc(c);J[b+4>>2]=0}c=J[b+8>>2];if(c){uc(c);J[b+8>>2]=0}b=b+52|0;d=d+1|0;if((e|0)!=(d|0))continue;break}b=J[a+24>>2]}uc(b);J[a+24>>2]=0}}function Utb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;c=J[b+36>>2];g=P(c,3);f=J[a+428>>2]+8|0;if(c){c=f;while(1){e=P(d,3)+b|0;H[c|0]=K[e+40|0];H[c+1|0]=K[e+41|0];H[c+2|0]=K[e+42|0];c=c+3|0;d=d+1|0;if(d>>>0>2])continue;break}}return Ce(a,J[b>>2],g,f)|0}function Rrb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!= +1246250066){Jc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];J[b+36>>2]=J[c+36>>2];H[b+40|0]=K[c+40|0];H[b+41|0]=K[c+41|0];H[b+42|0]=K[c+42|0];H[b+43|0]=K[c+43|0];H[b+44|0]=K[c+44|0];H[b+45|0]=K[c+45|0];H[b+46|0]=K[c+46|0];H[b+47|0]=K[c+47|0];return 0}function Q9(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](60)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a= +J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function Oq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](48)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function NE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](68)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>> +2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function ME(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=c;c=kc[J[a+152>>2]](36)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function LE(a,b,c){a=a|0;b=b|0;c=c|0;var d= +0;d=c;c=kc[J[a+152>>2]](56)|0;J[d>>2]=c;if(!c){Jc(a,1,0,0);return 1}a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;a=J[b+28>>2];J[c+24>>2]=J[b+24>>2];J[c+28>>2]=a;a=J[b+20>>2];J[c+16>>2]=J[b+16>>2];J[c+20>>2]=a;a=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=a;return 0}function K5(a){var b=0,c=0,d=0,e=0;d=a+44|0;Hu(d);b=1;c=1;a:{b:switch(J[a+40>>2]-3|0){case 0:c=O[a+32>>3]/72;b=O[a+24>>3]/72;break a;case 3:c=O[a+32>>3]/25.4;b=O[a+24>>3]/25.4;break a;case 1:break b;default:break a}c=O[a+32>>3];b=O[a+24>>3]}Lx(d, +b,c,1);e=a+56|0;Dj(e,d);Yk(e,a+48|0,1);Yk(e,a+52|0,0)}function c7(a,b){var c=0,d=0,e=0;a:{if(b>>>0>255)break a;c=J[a+604>>2];c=kc[J[c+20>>2]](L[J[c+24>>2]+(b<<1)>>1])|0;d=J[a+584>>2];if(!d)break a;e=J[a+580>>2];b=0;while(1){b:{a=J[(b<<2)+e>>2];if(!a|K[a|0]!=K[c|0])break b;if(Ic(a,c))break b;return b}b=b+1|0;if((d|0)!=(b|0))continue;break}}return-1}function Vfb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a+124|0;if((c|0)!=(b|0)){d=K[a+135|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]= +J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}Gf(b,J[a+124>>2],J[a+128>>2]);return 0}f=b;b=(e|0)<0;Lf(f,b?J[a+124>>2]:c,b?J[a+128>>2]:d)}return 0}function SEa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;e=c+12|0;d=sh(c+4|0,e,0,1);J[699344]=0;ca(5226,b|0,e|0,d|0);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;aa(5149,a|0,J[c+12>>2])|0;a=J[699344];J[699344]=0;if((a|0)==1)break a;hd(d);fc=c+16|0;return}a=Z()|0;hd(d);ba(a|0);B()}function Kaa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+28>>2]; +a:{if(c){c=c-1|0;J[b+28>>2]=c;if(c)break a}c=J[b+1144>>2];b:{if(!c)break b;d=J[b+1148>>2];if(!d)break b;kc[J[a+156>>2]](d,c)}c=J[b+1172>>2];c:{if(!c)break c;d=J[b+1176>>2];if(!d)break c;kc[J[a+156>>2]](d,c)}kc[J[a+156>>2]](b,1180)}return 0}function Ffb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a+472|0;if((c|0)!=(b|0)){d=K[a+483|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>>2]=a;J[b+8>>2]=J[c+8>>2];return 0}Gf(b,J[a+472>>2],J[a+476>>2]);return 0}f=b;b=(e|0)<0;Lf(f,b? +J[a+472>>2]:c,b?J[a+476>>2]:d)}return 0}function FX(a){var b=0,c=0,d=0;b=J[a+12>>2];J[a+12>>2]=0;a:{b:{if(!b)break b;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)==1)break a;if(c)break b;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}if(H[a+11|0]<0)uc(J[a>>2]);return a}ea(0)|0;Bc();B()}function Dfb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a+460|0;if((c|0)!=(b|0)){d=K[a+471|0];e=d<<24>>24;if(H[b+11|0]>=0){if((e|0)>=0){a=J[c+4>>2];J[b>>2]=J[c>>2];J[b+4>> +2]=a;J[b+8>>2]=J[c+8>>2];return 0}Gf(b,J[a+460>>2],J[a+464>>2]);return 0}f=b;b=(e|0)<0;Lf(f,b?J[a+460>>2]:c,b?J[a+464>>2]:d)}return 0}function x8a(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0,h=0;d=fc-32|0;fc=d;O[d+8>>3]=c;O[d+16>>3]=b;e=J[a+4>>2];f=J[e+28>>2];if(f){ce(f,d+16|0,d+8|0);e=J[a+4>>2];c=O[d+8>>3];b=O[d+16>>3]}J[d+28>>2]=0;g=Qe(e,d+28|0),h=2,H[g|0]=h;a=J[d+28>>2];O[a+8>>3]=c;O[a>>3]=b;J[e>>2]=J[e>>2]+1;fc=d+32|0;return 1}function v6a(a){a=a|0;var b=0,c=0;J[a>>2]=351960;a:{b=J[a+8>>2];if(b){c= +J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+8>>2]=0}b=J[a+172>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+172>>2]=0}if(H[a+123|0]<0)uc(J[a+112>>2]);t4(a+16|0);return a|0}ea(0)|0;Bc();B()}function sDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;d=K[a+20|0];e=K[a+21|0];J[c+24>>2]=K[a+22|0];J[c+20>>2]=e;J[c+16>>2]=d;md(b,208094,c+16|0);a:{b:switch(K[a+20|0]-1|0){case 0:J[c>>2]=J[a+24>>2];md(b,208164,c);break a;case 1:break b;default:break a}Oba(b,J[a+28>>2], +J[a+32>>2])}fc=c+32|0}function ipa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+12>>2];a=c+108|0;if((a|0)!=(b|0))a:{e=K[b+11|0];d=e<<24>>24;if(H[c+119|0]>=0){if((d|0)>=0){d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;J[a+8>>2]=J[b+8>>2];break a}Gf(a,J[b>>2],J[b+4>>2]);break a}c=a;a=(d|0)<0;Lf(c,a?J[b>>2]:b,a?J[b+4>>2]:e)}return 0}function ZL(a){var b=0,c=0,d=0;b=J[a+116>>2];if(b){c=b;d=J[a+120>>2];if((b|0)!=(d|0)){while(1){c=d-12|0;if(H[d-1|0]<0)uc(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[a+116>>2]}J[a+ +120>>2]=b;uc(c)}if(H[a+39|0]<0)uc(J[a+28>>2]);if(H[a+23|0]<0)uc(J[a+12>>2]);if(H[a+11|0]<0)uc(J[a>>2]);return a}function XWa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Fe(b,K[a+228|0]);To(a,b);zd(b,J[a+236>>2]-J[a+232>>2]>>3);c=J[a+232>>2];if((c|0)!=J[a+236>>2])while(1){e=O[(d<<3)+c>>3]*100;a:{if(R(e)<2147483648){c=~~e;break a}c=-2147483648}zd(b,c);d=d+1|0;c=J[a+232>>2];if(d>>>0>2]-c>>3>>>0)continue;break}}function Vmb(a){a=a|0;var b=0,c=0,d=0,e=0;e=J[a>>2];b=J[a+8>>2];if(b){c=J[a+16>>2];d=J[c+4>> +2];J[b+108>>2]=J[c>>2];J[b+112>>2]=d;J[b+124>>2]=J[c+16>>2];d=J[c+12>>2];J[b+116>>2]=J[c+8>>2];J[b+120>>2]=d}b=J[a+1512>>2];if(b){kc[b|0](J[a+1508>>2]);b=J[a+1508>>2];if(b)kc[J[e+8>>2]](e,b);J[a+1508>>2]=0}}function Snb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;if(b){f=J[d>>2]+P(J[d+4>>2],(a|0)/-4|0)|0;while(1){if(L[c+2>>1]){g=K[c+4|0]+8>>>4|0;d=0;while(1){e=f+((I[c>>1]+d|0)/4|0)|0;a=K[e|0]+g|0;H[e|0]=a-(a>>>8|0);d=d+1|0;if(d>>>0>1])continue;break}}c=c+6|0;b=b-1|0;if(b)continue;break}}} +function DD(a,b,c){a=a|0;b=+b;c=c|0;a:{b:switch(c-3|0){case 0:b=O[a+8>>3]/(b/72);if(b==O[a+24>>3])break a;O[a+24>>3]=b;return 0;case 3:b=O[a+8>>3]/(b/25.4);if(b==O[a+24>>3])break a;O[a+24>>3]=b;return 0;case 1:break b;default:break a}b=O[a+8>>3]/b;if(b==O[a+24>>3])break a;O[a+24>>3]=b}return 0}function BAb(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+2336>>2]=b;a:{if(!J[a+200>>2])break a;c=kc[J[a+152>>2]](J[b+28>>2]+1|0)|0;if(!c){Jc(a,1,0,0);return 1}d=J[b+28>>2];if(d)xc(c,J[b+32>>2],d);d=kc[J[a+200>>2]](a,c)| +0;kc[J[a+156>>2]](c,J[b+28>>2]+1|0);if(d)break a;Jc(a,904,0,0);return 904}return Cy(a)|0}function wdb(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;g=J[a+4>>2];if((b|0)!=1){h=J[a>>2];J[h+24>>2]=b;J[h+20>>2]=15;kc[J[J[a>>2]>>2]](a)}else b=1;a=Qx(a,b,128);J[a+40>>2]=0;J[a+32>>2]=c;J[a+12>>2]=f;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=0;J[a+44>>2]=J[g+72>>2];J[g+72>>2]=a;return a|0}function ndb(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;g=J[a+4>>2];if((b|0)!=1){h=J[a>>2];J[h+ +24>>2]=b;J[h+20>>2]=15;kc[J[J[a>>2]>>2]](a)}else b=1;a=Qx(a,b,128);J[a+40>>2]=0;J[a+32>>2]=c;J[a+12>>2]=f;J[a+8>>2]=d;J[a+4>>2]=e;J[a>>2]=0;J[a+44>>2]=J[g+68>>2];J[g+68>>2]=a;return a|0}function fg(a){var b=0,c=0,d=0;while(1){c=a;a=a+1|0;b=H[c|0];if((b|0)==32|b-9>>>0<5)continue;break}d=1;a:switch(b-43|0){case 2:d=0;case 0:b=H[a|0];c=a;break;default:break a}a=0;if(b-48>>>0<10)while(1){a=(P(a,10)-H[c|0]|0)+48|0;b=H[c+1|0];c=c+1|0;if(b-48>>>0<10)continue;break}return d?0-a|0:a}function bia(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;g=a;h=b;a=kc[J[J[a+8>>2]+20>>2]](a+8|0)|0;a:{if(K[a+11|0]>>>7|0){b=J[a>>2];break a}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;return uo(g,h,c,d,e,f,i,b+(a<<2)|0)|0}function aqb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){d=J[J[a>>2]+100>>2];while(1){b=e<<2;f=b+a|0;c=J[f+16>>2];if(c){b=J[J[(J[J[b+247312>>2]+4>>2]<<2)+247024>>2]+16>>2];if(b){kc[b|0](c);c=J[f+16>>2]}if(c)kc[J[d+8>>2]](d,c);J[f+16>> +2]=0}e=e+1|0;if((e|0)!=87)continue;break}if(a)kc[J[d+8>>2]](d,a)}}function Zta(a){a=a|0;var b=0;J[a>>2]=2427512;b=J[a+56>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+60>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+64>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;J[699344]=0;$(5675,a|0);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(zH(a))}function Yg(a){var b=0;b=J[a+16>>2];if(b)uc(b);b=J[a+20>>2];if(b)uc(b);J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400; +H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a}function Gnb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a=J[a+16>>2];d=L[a+2>>1];a:{if(d+(L[a+6>>1]<<8)>>>0>>0)break a;c=L[a>>1];f=L[a+4>>1];if(c+(f<<8)>>>0>b>>>0)break a;e=b&255;if(e>>>0>d>>>0|c>>>0>e>>>0)break a;g=L[(J[a+12>>2]+(e-c<<1)|0)+(P((d-c|0)+1|0,(b>>>8&65535)-f|0)<<1)>>1]}return g|0}function zqa(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;f=fc-16|0;fc=f;e=J[a+12>>2];if(J[e+932>>2]!=8){J[f+12>>2]=J[b>>2];J[f+8>>2]=1;b=e+832|0;g=e+752|0;h=Ou(b,g);if(!h){$l(b,g);O[e+912>>3]=O[e+864>>3]}jA(e+944|0,f+12|0,0,f+8|0,c,d,!h,e);H[J[a+12>>2]+928|0]=0}fc=f+16|0;return 0}function vxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(J[a+2308>>2]){e=J[a+2300>>2];d=J[a+2312>>2];b=J[a+2316>>2];while(1){c=K[d|0];if(!((c|0)==L[e+836>>1]?K[e+56|0]:0))H[b+1|0]=255;f=J[a+2296>>2];if(f)c=kc[f|0](c)|0;H[b|0]=c;b=b+2|0;d=d+1|0;g=g+1|0;if(g>>> +0>2])continue;break}}return 0}function nWa(a,b){a=a|0;b=b|0;var c=0,d=0;d=-1;a:{if(b>>>0>2147482623)break a;c=J[a+1032>>2];if(!((c|0)<=(b|0)&(J[a+1036>>2]+c|0)>(b|0))){if(hh(J[a+4>>2],b,0))break a;J[a+1032>>2]=b;c=ge(a+8|0,1,1024,J[a+4>>2]);J[a+1036>>2]=c;if((c|0)<=0)break a;c=J[a+1032>>2]}d=K[((b-c|0)+a|0)+8|0]}return d|0}function lxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=kc[J[a+2296>>2]](K[c|0])|0;e=kc[J[a+2296>>2]](K[c+1|0])|0;H[b+ +1|0]=(d|0)!=0;H[b|0]=d>>>8;H[b+3|0]=(e|0)!=0;H[b+2|0]=e>>>8;b=b+4|0;c=c+2|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function jm(a,b,c){var d=0,e=0;if(!a)return;e=J[a>>2];d=J[a+4>>2];a:{if((e|0)<(d|0))break a;d=im(a+12|0,d<<2,d<<3);J[a+12>>2]=d;if(!d)break a;d=J[a+4>>2];d=im(a+16|0,d<<2,d<<3);J[a+16>>2]=d;if(!d)break a;J[a+4>>2]=J[a+4>>2]<<1}d=e<<2;N[d+J[a+12>>2]>>2]=b;N[d+J[a+16>>2]>>2]=c;J[a>>2]=J[a>>2]+1}function j3a(){var a=0,b=0;a:{if(J[693293]==2)break a;if(!$C(2773172))break a; +b:{if(J[693292])break b;b=732680;a=Xi(736984);a=a?a:732680;c:{if(!K[a|0])break c;b=ji(Yc(a)+2|0);if(!b)break b;b=of(b,a);a=J[693292];if(!a|!K[a|0])break c;Nf(a)}J[693292]=b;yu(17,3062)}J[693293]=2}return J[693292]}function ih(a){var b=0,c=0;b=J[a+76>>2];if(!((b|0)>=0&(!b|J[698616]!=(b&-1073741825)))){b=J[a+4>>2];if((b|0)!=J[a+8>>2]){J[a+4>>2]=b+1;return K[b|0]}return Nz(a)}b=a+76|0;c=J[b>>2];J[b>>2]=c?c:1073741823;c=J[a+4>>2];a:{if((c|0)!=J[a+8>>2]){J[a+4>>2]=c+1;a=K[c|0];break a}a=Nz(a)}J[b>>2]= +0;return a}function QNa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;J[c>>2]=13;Pe(a+8|0,c);b=vc(40);d=J[a+24>>2];e=J[a+28>>2];f=J[a+32>>2];a=J[c+4>>2];J[b+8>>2]=J[c>>2];J[b+12>>2]=a;a=J[c+12>>2];J[b+16>>2]=J[c+8>>2];J[b+20>>2]=a;J[b+32>>2]=f;J[b+24>>2]=d;J[b+28>>2]=e;J[b>>2]=2343232;fc=c+16|0;return b|0}function PZ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[b>>2];if((f|0)<(J[a>>2]-1|0)){j=1;i=J[a+4>>2];d=i+f|0;e=K[d+1|0];g=K[d|0];h=f+2|0;J[b>>2]=h;g=g<<8;e=e|g;if(!(g-57344>>>0<4294965248|(J[a>> +2]-1|0)<=(h|0))){a=K[d+3|0];d=K[h+i|0];J[b>>2]=f+4;e=((d<<8|a)+(e<<10)|0)-56613888|0}J[c>>2]=e}return j}function OZ(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=J[b>>2];if((f|0)<(J[a>>2]-1|0)){j=1;i=J[a+4>>2];d=i+f|0;e=K[d|0];g=K[d+1|0];h=f+2|0;J[b>>2]=h;g=g<<8;e=e|g;if(!(g-57344>>>0<4294965248|(J[a>>2]-1|0)<=(h|0))){a=K[h+i|0];d=K[d+3|0];J[b>>2]=f+4;e=((d<<8|a)+(e<<10)|0)-56613888|0}J[c>>2]=e}return j}function OQa(a,b,c,d,e,f,g){a=a|0;b=b|0;c=+c;d=+d;e=e|0;f=f|0;g=g|0;var h=0,i=0;J[a+32>>2]=g;O[a+16>> +3]=d;O[a+8>>3]=c;J[a>>2]=b;J[a+28>>2]=f;h=a,i=Gd(g,4),J[h+24>>2]=i;if(J[a+28>>2]>0){g=0;while(1){b=g<<2;f=d$(J[b+e>>2]);J[b+J[a+24>>2]>>2]=f;g=g+1|0;if((g|0)>2])continue;break}}return a|0}function tua(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2426768;hd(a+28|0);b=J[a+16>>2];J[a+16>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(rh(a))}function gs(a, +b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a:{c=bf(b);if(c>>>0<1073741808){b:{if(c>>>0<=1){H[a+11|0]=c;d=a;break b}d=c|3;if(d>>>0>=1073741823)break a;e=d+1|0;d=vc(e<<2);J[a+8>>2]=e|-2147483648;J[a>>2]=d;J[a+4>>2]=c}e=b;b=c<<2;f=cd(d,e,b)+b|0,g=0,J[f>>2]=g;return a|0}_d(a);B()}Pd();B()}function gib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(b>>>0>65535)break a;e=J[c+288>>2];if((e|0)<=0)break a;f=J[c+292>>2];while(1){c=J[(d<<2)+f>>2];b:{if(!c|K[c|0]!=K[a|0])break b;if((Yc(c)|0)!=(b|0))break b;if(!ud(c, +a,b))break a}d=d+1|0;if((e|0)!=(d|0))continue;break}d=0}return d|0}function b7(a,b,c){var d=0,e=0,f=0;e=fc-16|0;fc=e;f=J[J[a+128>>2]+52>>2];a:{b:{if(!f){d=b<<2;b=d+J[a+432>>2]|0;d=d+J[a+428>>2]|0;break b}d=e+8|0;a=kc[J[J[f>>2]>>2]](J[f+4>>2],b,d)|0;if(a)break a;b=e+12|0}b=J[b>>2];d=J[d>>2];J[c+12>>2]=d;a=0;J[c>>2]=0;J[c+4>>2]=d;J[c+8>>2]=b+d}fc=e+16|0;return a}function Odb(a){a=a|0;var b=0,c=0;J[a>>2]=340504;a:{b=J[a+28>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0; +if((b|0)==1)break a;J[a+28>>2]=0}Se(a+212|0);b=J[a+120>>2];if(b){J[a+124>>2]=b;uc(b)}if(H[a+47|0]<0)uc(J[a+36>>2]);Jd(a+32|0);uc(a);return}ea(0)|0;Bc();B()}function yaa(a){var b=0,c=0,d=0,e=0,f=0,g=0;a:{c=J[a+964>>2];if(!c)break a;d=J[a+16>>2];e=Dc(d);if(!e)break a;b=J[a+20>>2];if((b|0)>=2){b=P(b-1|0,d)+c|0;while(1){g=xc(e,b,d);b=xc(b,c,d);c=xc(c,g,J[a+16>>2]);d=J[a+16>>2];c=c+d|0;b=b-d|0;f=f+1|0;if((f|0)<(J[a+20>>2]/2|0))continue;break}}uc(e)}}function nyb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e= +J[b+964>>2];a:{if(!e)break a;c=J[a+16>>2];if((c|0)!=J[b+16>>2])break a;d=J[a+20>>2];if((d|0)!=J[b+20>>2])break a;d=P(c,d);c=J[a+964>>2];if(!c){c=Dc(d);J[a+964>>2]=c;if(!c)break a;e=J[b+964>>2]}xc(c,e,d);H[a+388|0]=K[b+388|0];f=1}return f|0}function mE(a){var b=0,c=0,d=0,e=0;a:{if(!a)break a;b=H[a|0];e=b&255;if(!e|!(K[(e>>>3|0)+254800|0]>>>(b&7)&1))break a;while(1){c=65535;if((d&65535)>>>0>6551)break a;c=b+254832|0;b=H[a+1|0];a=a+1|0;d=K[c|0]+P(d,10)|0;c=d;if(K[((b&248)>>>3|0)+254800|0]>>>(b&7)&1)continue; +break}}return c&65535}function eV(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2436588;wc(a+16|0);b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function c9(a,b,c){var d=0,e=0;d=fc-16|0;fc=d;a:{b:{c:{e=!b;d:{if(e|!c|((e?-1:J[b+8>>2])|0)!=1)break d;ss(c,d+12|0,d+8|0,0,0);if(!J[d+12>>2]|!J[d+8>>2])break d;if(a)break c;a=cv(b)}if(a)break b; +a=0;break a}hO(a,b)}b=hm(0,b,c);J[d+4>>2]=b;if(!b)break a;gm(a,b,c);Fd(d+4|0)}fc=d+16|0;return a}function Su(a){a=Q(a);var b=Q(0),c=Q(0),d=Q(0);if(a>Q(2))a=Q(0);else{b=Q(a+Q(-1));c=Q((b<=Q(0)?Q(0):Q(b*Q(b*b)))*Q(-4));d=Q((a<=Q(0)?Q(0):Q(Q(a*a)*a))*Q(6));b=Q(a+Q(1));a=Q(a+Q(2));a=Q(Q(c+Q(d+Q(Q((b<=Q(0)?Q(0):Q(b*Q(b*b)))*Q(-4))+(a<=Q(0)?Q(0):Q(a*Q(a*a))))))*Q(.1666666716337204))}return Q(a)}function Kba(a){var b=0,c=0,d=0;c=3;a:{b=J[a+20>>2]-8|0;b:{if(b){if((b|0)==16)break b;break a}c=1;b=J[a+40>>2]; +if((b|0)<=0)break b;a=J[a+48>>2];while(1){c=J[a>>2];if((c|0)!=J[a+4>>2])return 3;if((c|0)!=J[a+8>>2])return 3;a=a+16|0;c=1;d=(b|0)>1;b=b-1|0;if(d)continue;break}}return c}ra();B()}function sca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{e=J[a+584>>2];if(e){f=J[e+28>>2];if(!f)break b;if(!J[e+40>>2])break a;if(!(kc[f|0](a,b,c,d)|0))return 0;kc[J[e+40>>2]](a,b,c);return 1}fa(72298,70404,393,197582);B()}fa(77954,70404,394,197582);B()}fa(78549,70404,395,197582);B()}function p9(a,b){var c=0,d=0, +e=0,f=0;if(!a)return;c=J[a>>2];if(c)uc(c);a:{b:{if(!b)break b;d=Yc(b);e=kd(d+1|0,1);if(!e)break a;if((d|0)<=0)break b;c=0;while(1){f=K[b+c|0];if(f){H[c+e|0]=f;c=c+1|0;if((d|0)!=(c|0))continue;break b}break}if((c|0)>=(d|0))break b;Ac(c+e|0,0,d-c|0)}J[a>>2]=e}}function nd(a){a=a|0;var b=0;b=fc-32|0;fc=b;J[a>>2]=2425780;a:{if(J[a+4>>2]>0){J[699344]=0;a=ja(5178,b+8|0,2394694,2385616,95,2425788,0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[699344]=0;$(5179,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a; +B()}fc=b+32|0;return a|0}ea(0)|0;Bc();B()}function du(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[b|0];if(d){e=b;while(1){f=P(f,17)+(d&255)|0;d=K[e+1|0];e=e+1|0;if(d)continue;break}}d=J[J[a>>2]+((f>>>0)%M[a+4>>2]<<2)>>2];if(d)while(1){if(!Ic(J[d>>2],b)){I[c>>1]=L[d+4>>1];return 1}d=J[d+8>>2];if(d)continue;break}I[c>>1]=0;return 0}function dd(a,b,c){var d=0,e=0;a:{b:{if(c>>>0>=4){if((a|b)&3)break b;while(1){if(J[a>>2]!=J[b>>2])break b;b=b+4|0;a=a+4|0;c=c-4|0;if(c>>>0>3)continue;break}}if(!c)break a}while(1){d= +K[a|0];e=K[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c-1|0;if(c)continue;break a}break}return d-e|0}return 0}function Yc(a){var b=0,c=0,d=0;a:{b:{b=a;if(!(b&3))break b;if(!K[b|0])return 0;while(1){b=b+1|0;if(!(b&3))break b;if(K[b|0])continue;break}break a}while(1){c=b;b=b+4|0;d=J[c>>2];if(!((d^-1)&d-16843009&-2139062144))continue;break}while(1){b=c;c=b+1|0;if(K[b|0])continue;break}}return b-a|0}function XC(a,b){var c=0,d=0,e=0,f=0;c=b&255;e=H[a+75|0];d=e;while(1){d=(d|0)<=0?7:d-1|0;if((c|0)!=K[(d+a| +0)+76|0])continue;break}c=d+1|0;c=(c|0)!=8?c:0;if((e|0)!=(c|0)){e=a+76|0;while(1){f=d+e|0;d=c;H[f|0]=K[e+c|0];c=c+1|0;c=(c|0)!=8?c:0;if((c|0)!=H[a+75|0])continue;break}}H[(a+d|0)+76|0]=b}function Rg(a,b){var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;H[d+15|0]=0;J[b>>2]=0;c=J[a+8>>2];a:{b:{f=J[a+20>>2];c:{if(f){e=d+15|0;if((kc[f|0](a,c,e,1)|0)!=1)break b;c=J[a+8>>2];break c}if(M[a+4>>2]<=c>>>0)break b;e=J[a>>2]+c|0}b=K[e|0];J[a+8>>2]=c+1;break a}J[b>>2]=85;b=0}fc=d+16|0;return b<<24>>24}function Mza(a,b){a=a| +0;b=b|0;var c=0,d=0;jw(b,J[a+8>>2]);jw(b,J[a+12>>2]);Gn(b,K[a+16|0]);Gn(b,J[a+16>>2]>>8);Gn(b,K[a+20|0]);Gn(b,J[a+20>>2]>>8);c=O[a+24>>3]*10+.5;a:{if(R(c)<2147483648){d=~~c;break a}d=-2147483648}Gn(b,d);a=J[a+32>>2]-1|0;if(a>>>0<=2)a=J[(a<<2)+2417332>>2];else a=0;Gn(b,a)}function Ln(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a+8>>2]=13;J[a>>2]=2342784;f=J[e+4>>2];J[a+8>>2]=J[e>>2];J[a+12>>2]=f;f=J[e+12>>2];J[a+16>>2]=J[e+8>>2];J[a+20>>2]=f;J[a+44>>2]=0;e=b+c|0;J[a+40>>2]=e;J[a+36>>2]=d+e; +J[a+32>>2]=d;J[a+28>>2]=c;J[a+24>>2]=b;J[a>>2]=2343116;return a|0}function DCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[b>>2];J[a+12>>2]=d;d=Dc(d<<2);J[a+16>>2]=d;e=-1;a:{if(!d)break a;if(J[b>>2])while(1){b:{if(!Wg(c,d))if(!Wg(c,d+4|0))break b;a=J[a+16>>2];if(!a)break a;uc(a);return-1}d=d+8|0;f=f+1|0;if(f>>>0>2])continue;break}e=0}return e|0}function ysb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1665684045){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>> +2];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=J[c+56>>2];J[b+60>>2]=J[c+60>>2];J[b+64>>2]=J[c+64>>2];return 0}function tk(a,b,c,d){var e=0;e=fc-32|0;fc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[e+20>>2]=0;J[e+16>>2]=d;Hc(0,0,0,a,0,1,b,3,d,0,0,0,c,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[e+4>>2]=0;J[e>>2]=d;Hc(0,0,0,0,0,1,b,3,d,0,0,0,c,e)}fc=e+32|0}function t3(a,b){var c=0,d=0;c=fc-256|0;fc=c;J[c+24>>2]=J[184161]; +d=J[184160];J[c+16>>2]=J[184159];J[c+20>>2]=d;d=J[184158];J[c+8>>2]=J[184157];J[c+12>>2]=d;d=J[184156];J[c>>2]=J[184155];J[c+4>>2]=d;a:{if(J[b>>2]<=0){a=s3(0,jg(a,c+32|0,c,b),c,b);if(J[b>>2]<=0)break a}a=0}fc=c+256|0;return a}function pd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{b:{c:{d:{d=J[a>>2];if(d){a=0;if(!c)break a;d=J[d+12>>2];if(!d|!K[d|0])break c;a=1;if(!b|!K[b|0])break a;if((c|0)<=0)break d;return ud(d,b,c)|0}a=0;if(!b)break a;if(c)break b;break a}return Ic(d,b)|0}if(!b)break a}a=K[b|0]?-1:0}return a| +0}function ik(a,b){var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;a:{if(!b){b=0;break a}c=b>>31;e=(c^b)-c|0;c=S(e);Gi(d,e,0,0,0,c+81|0);e=0+J[d+8>>2]|0;c=(J[d+12>>2]^65536)+(16414-c<<16)|0;c=e>>>0>>0?c+1|0:c;f=b&-2147483648|c;c=J[d+4>>2];b=J[d>>2]}J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=e;J[a+12>>2]=f;fc=d+16|0}function iia(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;g=a;h=b;a=kc[J[J[a+8>>2]+20>>2]](a+8|0)|0;a:{if(K[a+11|0]>>>7|0){b=J[a>>2];break a}b=a}i=b;if(K[a+11|0]>>>7|0)b=J[a>>2];else b= +a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;return vo(g,h,c,d,e,f,i,b+a|0)|0}function bo(a){a=a|0;var b=0,c=0;J[a>>2]=340504;a:{b=J[a+28>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+28>>2]=0}Se(a+212|0);b=J[a+120>>2];if(b){J[a+124>>2]=b;uc(b)}if(H[a+47|0]<0)uc(J[a+36>>2]);Jd(a+32|0);return a|0}ea(0)|0;Bc();B()}function z8(a,b){var c=0,d=0,e=0;c=fc-16|0;fc=c;d=J[a+36>>2];a:{if(!d)break a;d=J[d+28>>2];b=hE(a+36|0,b,c+12|0,c+8|0);J[c+ +4>>2]=b;if(b)break a;b=J[c+8>>2];e=he(d,b+1|0,c+4|0);if(!J[c+4>>2]){if(b)xc(e,J[c+12>>2],b);H[b+e|0]=0}if(J[a+68>>2])break a;$f(J[a+36>>2],c+12|0)}fc=c+16|0;return e}function qNa(a){a=a|0;var b=0,c=0;b=J[a+8>>2];a:{b:{if(b){a=J[b+36>>2];if((a|0)>=J[b+28>>2]){if(!Wt(b))return-1;a=J[b+36>>2]}a=J[b+32>>2]+a|0;break b}c=-1;if(J[a+16>>2])break a;b=J[a+53312>>2];if((b|0)>=J[a+53308>>2]){if(!FB(a))break a;b=J[a+53312>>2]}a=(a+b|0)+49208|0}c=K[a|0]}return c|0}function k5a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0; +c=fc-16|0;fc=c;d=J[a+188>>2];a:{if(!d)break a;if(lp(d,b,40970))break a;J[c+12>>2]=0;if(H7(J[J[a+188>>2]+84>>2],c+12|0))break a;b=J[a+188>>2];d=L[b+68>>1];e=O[a+192>>3];a=J[J[b+84>>2]+56>>2];I7(J[c+12>>2]);e=e*+(a|0)/+(d>>>0)}fc=c+16|0;return+e}function cLa(a,b){a=a|0;b=b|0;var c=0;H[a+12|0]=0;J[a+8>>2]=1;J[a+4>>2]=2349380;J[a>>2]=2348896;c=vc(52);J[c>>2]=0;J[c+4>>2]=0;J[c+32>>2]=0;J[c+24>>2]=0;J[c+28>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[a+16>>2]=c;J[c+36>>2]=b;J[c+48>>2]=0;J[c+ +40>>2]=0;J[c+44>>2]=0;return a|0}function Wwa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=vc(108);J[699344]=0;d=aa(5628,c|0,b|0)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[d>>2]=2424484;c=J[b+96>>2];J[d+92>>2]=J[b+92>>2];J[d+96>>2]=c;c=J[b+104>>2];J[d+100>>2]=J[b+100>>2];J[d+104>>2]=c;J[a>>2]=0;vd(a,d);return}a=Z()|0;uc(c);ba(a|0);B()}function Tr(a,b){var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;J[a+84>>2]=2;d=J[a>>2];e=0;a:{if(!d)break a;e=0;if(J[d+108>>2]!=-554844497)break a;e=J[d+124>>2]}d=J[a+112>>2];f=J[a+108>>2]; +J[c+4>>2]=0;J[c>>2]=30591;Hc(e,d,f,a,0,1,2,2,30591,0,0,0,b,c);J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2;fc=c+16|0}function SI(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+644>>2];if((c|0)<=0)break a;d=J[a+648>>2];a=d+P(c,5)|0;while(1){c=a-5|0;if((K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24))==(K[c|0]|K[c+1|0]<<8|(K[c+2|0]<<16|K[c+3|0]<<24)))return K[a-1|0];a=c;if(c>>>0>d>>>0)continue;break}}return 0}function Jmb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];a:{if((I[d+22>>1]+I[d+58>>1]|0)+ +1>>>0>M[d+4>>2]){d=Hh(d,1,0);if(d)break a}d=J[a+20>>2];if(K[a+65|0]){a=J[d+8>>2];e=I[d+2>>1];f=J[d+4>>2]+(e<<3)|0;J[f+4>>2]=c>>10;J[f>>2]=b>>10;H[a+e|0]=1}I[d+2>>1]=L[d+2>>1]+1;d=0}return d|0}function tm(a,b,c,d){var e=0,f=0,g=0;e=fc-160|0;fc=e;f=b?a:e+158|0;J[e+148>>2]=f;a=-1;g=b-1|0;J[e+152>>2]=b>>>0>=g>>>0?g:0;e=Ac(e,0,144);J[e+76>>2]=-1;J[e+36>>2]=6735;J[e+80>>2]=-1;J[e+44>>2]=e+159;J[e+84>>2]=e+148;a:{if((b|0)<0){J[698583]=61;break a}H[f|0]=0;a=vG(e,c,d)}fc=e+160|0;return a}function PDb(a){a= +a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;d=Ai(a,b+14|0,2);a:{b:{if((d|0)<0)break b;c=d;while(1){if((c|0)>0){e=-1;c=c-1|0;if((dk(a,K[c+(b+14|0)|0])|0)!=-1)continue;break a}break}if(K[b+14|0]!=80|(d|0)<2)break b;e=0;if(K[b+15|0]-48>>>0<10)break a}e=-1}fc=b+16|0;return e|0}function MMa(a){a=a|0;var b=0;b=J[a+8>>2];if(!b){if(!J[a+32784>>2])while(1){if(!(!J[a+34092>>2]|!J[a+34096>>2]))return-1;EB(a);if(!J[a+32784>>2])continue;break}return K[(J[a+32780>>2]+a|0)+12|0]}a=J[b+36>>2];if((a|0)>=J[b+28>>2]){if(!Wt(b))return-1; +a=J[b+36>>2]}return K[J[b+32>>2]+a|0]}function I1(a){var b=0,c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;a:{if(!a)break a;d=J[a+4>>2];b=kc[J[663195]](8)|0;if(b){J[b>>2]=0;J[b+4>>2]=0;if(d)e=b,f=ff(d),J[e+4>>2]=f;a=J[a>>2];if(a)a=I1(a);else a=0;J[b>>2]=a;break a}J[c>>2]=17054;Hc(0,0,0,0,0,23,2,3,17054,0,0,0,32879,c);b=0}fc=c+16|0;return b}function GDb(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;e=-1;d=Ai(a,b,16);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((dk(a,H[c+b|0])|0)!=-1)continue;break a}break}if((d| +0)<16)break a;e=(H[b+7|0]|(H[b+5|0]<<16|K[b+4|0]<<24|H[b+6|0]<<8))!=1783636E3?-1:0}fc=b+16|0;return e|0}function yCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;J[c>>2]=J[a+12>>2];md(b,210369,c);e=J[a+16>>2];a:{if(e){f=J[a+20>>2];while(1){if(K[d+f|0]-32>>>0>=95)break a;d=d+1|0;if((e|0)!=(d|0))continue;break}}ae(210382,7,1,b);ae(J[a+20>>2],1,J[a+16>>2],b);bi(10,b)}fc=c+16|0;return 0}function xG(a,b,c,d){var e=0,f=0,g=0,h=0;e=fc-160|0;fc=e;J[e+60>>2]=b;J[e+20>>2]=b;J[e+24>>2]=-1;f=e+16|0;Jk(f, +0,0);yG(e,f,d,1);d=J[e+8>>2];g=J[e+12>>2];f=J[e>>2];h=J[e+4>>2];if(c)J[c>>2]=J[e+136>>2]+((J[e+20>>2]-J[e+60>>2]|0)+b|0);J[a+8>>2]=d;J[a+12>>2]=g;J[a>>2]=f;J[a+4>>2]=h;fc=e+160|0}function xAa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2416208;b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return nd(a)|0}function pla(a,b){a=a|0;b=b|0;var c= +0;a:{a=HG(a);b:{if((a|0)==-1)break b;b=HG(b);if((b|0)==-1)break b;if(K[a+2469360|0]<216)break a}J[698583]=28;return-1}c=a<<1|b<<16|1;a=K[b+2469360|0]-202|0;if(!(a>>>0>8|!(1<>2]=0;J[a>>2]=c;return a|0}return c|0}function gyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+P(b,3)|0;b=c+P(b,6)|0;c=0;while(1){H[b+5|0]=0;e=K[d+2|0];H[b+3|0]=0;H[b+4|0]=e;e=K[d+1|0];H[b+1|0]=0;H[b+2|0]=e;H[b|0]=K[d|0];b=b-6|0;d=d-3|0;c=c+1|0;if((c|0)< +J[a+588>>2])continue;break}}return 0}function eEa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2397768;b=J[a+16>>2];J[a+16>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return nd(a)|0}function _f(a){a=a|0;var b=0,c=0,d=0;b=J[a+596>>2];if(b)uc(xJ(b));b=vc(40);J[b>>2]=0;J[b+28>>2]=0;J[b+32>>2]=16;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[699344]=0;c= +aa(3551,16,4)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[b+24>>2]=c;J[a+596>>2]=b;return}a=Z()|0;uc(b);ba(a|0);B()}function Ymb(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if(!b)return 3;a:{b:{if(K[a+68|0]){a=J[a+12>>2];if((I[a+20>>1]+I[a+56>>1]|0)+1>>>0>M[a+8>>2]){a=Hh(a,0,1);if(a)break a}c=L[b>>1];a=c<<16>>16;if((a|0)<=0)break b;I[(J[b+12>>2]+(c<<1)|0)-2>>1]=L[b+2>>1]-1}a=L[b>>1]}I[b>>1]=a+1;a=0}return a|0}function Uva(a){a=a|0;var b=0;b=fc-32|0;fc=b;J[a>>2]=2425780;a:{if(J[a+4>>2]>0){J[699344]=0;a=ja(5178, +b+8|0,2394694,2385616,95,2425788,0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699344]=0;$(5179,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}uc(a);fc=b+32|0;return}B()}function T$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{d=gx(J[J[b+4>>2]+4>>2]);b:{if(!d){H[a+11|0]=0;break b}c=Yc(d);if(c>>>0>=2147483632)break a;c:{if(c>>>0<=10){H[a+11|0]=c;break c}e=(c|15)+1|0;b=vc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}a=cd(a,d,c)+c|0}H[a|0]=0;return}_d(a);B()}function xkb(a,b){a=a|0; +b=b|0;var c=0;a:switch(b|0){case 0:return a+160|0;case 3:return a+216|0;case 4:return(K[a+292|0]?a+296|0:0)|0;case 2:return(L[a+372>>1]!=65535?a+372|0:0)|0;case 5:return a+476|0;case 1:return a+260|0;case 6:c=J[a+568>>2]?a+568|0:0;break;default:break a}return c|0}function bI(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2397024;b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b| +0)!=1)break a}ea(0)|0;Bc();B()}return nd(a)|0}function a0(a){var b=0,c=0;a:{if(J[a+12>>2]>0)while(1){c=J[a+4>>2];J[699344]=0;$(3370,(b<<4)+c|0);c=J[699344];J[699344]=0;if((c|0)==1)break a;b=b+1|0;if((b|0)>2])continue;break}b=J[a+4>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a}ea(0)|0;Bc();B()}function YIa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+24>>2];if(b){c=J[a+28>>2];if(c>>>0>=60){e=(c>>>0)/60|0;while(1){c=J[b>>2];if(c){uc(c);J[b>>2]=0}c=J[b+4>>2];if(c){uc(c);J[b+ +4>>2]=0}uc(J[b+56>>2]);J[b+56>>2]=0;b=b+60|0;d=d+1|0;if((e|0)!=(d|0))continue;break}b=J[a+24>>2]}uc(b);J[a+24>>2]=0}}function Jgb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+12>>2];if(c){kc[J[J[c>>2]+12>>2]](c)|0;J[a+12>>2]=0}if(!b){c=vc(176);J[699344]=0;b=_(2229,c|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+12>>2]=b;kc[J[J[b>>2]+64>>2]](b);return}a=Z()|0;uc(c);ba(a|0);B()}J[a+12>>2]=b;kc[J[J[b>>2]+8>>2]](b)|0}function J4(a,b,c,d){var e=0,f=0;e=O[c>>3];a=J[a>>2];b=J[b>>2];a:{if(!(e>R(O[a>>3]-O[b>>3]))|!(R(O[a+ +24>>3]-O[b+24>>3])>3]-O[b+16>>3])>3]-O[b+8>>3])>3]-O[b+32>>3])>3]-O[b+40>>3])>2]+(b<<2)|0;f=J[c>>2];e=J[a+8>>2];d=e-1|0;if((d|0)>(b|0)){cd(c,c+4|0,(b^-1)+e<<2);d=J[a+8>>2]-1|0}J[a+8>>2]=d;c=J[a+12>>2];b=J[a+4>>2];c=(c|0)>0?c:(b|0)/2|0;if((c|0)<=(b-d|0)){b=b-c|0;J[a+4>>2]=b;g=a,h=Wd(J[a>>2],b,4),J[g>>2]=h}return f}function qAa(a){a=a|0;var b= +0,c=0,d=0;J[a>>2]=2416460;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return nd(a)|0}function oCa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2412920;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)| +0;Bc();B()}return nd(a)|0}function mDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-32|0;fc=c;J[c+16>>2]=J[a+20>>2];md(b,208388,c+16|0);if(J[a+20>>2])while(1){e=J[a+24>>2]+(d<<3)|0;f=J[e>>2];g=K[e+4|0];J[c+8>>2]=K[e+5|0];J[c+4>>2]=g;J[c>>2]=f;md(b,208537,c);d=d+1|0;if(d>>>0>2])continue;break}fc=c+32|0}function lsa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2434816;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]= +0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return nd(a)|0}function ZD(a,b,c){var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=0;a:{if(!a)break a;f=J[a+92>>2];d=0;if(!f)break a;d=0;if(!J[a+16>>2])break a;J[e+12>>2]=b;while(1){g=kc[J[J[f+12>>2]+16>>2]](f,e+12|0)|0;if(g>>>0>=M[a+16>>2])continue;break}d=g?J[e+12>>2]:0}a=d;if(c)J[c>>2]=g;fc=e+16|0;return a}function Uza(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2416580;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+ +4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return vr(a)|0}function G0a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=J[a>>2];if(d)UC(d);J[a>>2]=0;d=J[a+4>>2];if(d){uc(d);J[a+4>>2]=0}if(b){d=J[693350];J[693350]=d|1;J[c+12>>2]=0;J[c+8>>2]=0;_r(b,bf(b),c+12|0,c+8|0,0);b=xL(J[c+12>>2],0);e=J[c+12>>2];if(e)uc(e);J[a>>2]=b;J[693350]=d}fc=c+16|0}function FFa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2393752;b= +J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return nd(a)|0}function vl(a){var b=0,c=0,d=0,e=0;d=J[a+56>>2];a:{b=J[a+60>>2];if((b|0)>=0|(b|0)>0){c=J[a+12>>2];a=J[a+8>>2];if((b|0)==(c|0)&d>>>0>a>>>0|b>>>0>c>>>0)break a;e=!(a|c);jc=e?0:c-(b+(a>>>0>>0)|0)|0;return e?0:a-d|0}fa(2353649,2350739,586,2353936);B()}fa(2353968,2350739,587, +2353936);B()}function vH(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2436896;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return nd(a)|0}function rxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){d=J[a+2312>>2];b=J[a+2316>>2];while(1){e=kc[J[a+2296>>2]](K[d|0])|0;c=e>>>8|0;H[b+4|0]=c;H[b+2|0]=c;H[b|0]=c;c=(e|0)!=0;H[b+5|0]=c;H[b+3|0]=c; +H[b+1|0]=c;b=b+6|0;d=d+1|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function iO(a,b,c){var d=0,e=0;d=c-1|0;a:{if(d>>>0>31|!(1<>2]=1;J[d+8>>2]=c;J[d+4>>2]=b;J[d>>2]=a;a=(P(a,c)+31|0)/32|0;J[d+12>>2]=a;a=kc[J[663153]](P(a,b)<<2)|0;if(!a)break a;J[d+40>>2]=a;qp(d,0);e=d}return e}function QN(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b:{if(!b)break b;d=J[c+4>>2];if((d|0)<=0)break b;while(1){d=d-1| +0;J[c+4>>2]=d;uc(J[J[c+8>>2]+(d<<2)>>2]);d=J[c+4>>2];if((d|0)>0)continue;break}}if(J[c+12>>2])QN(c+12|0,b);b=J[c+8>>2];if(b)uc(b);uc(c);J[a>>2]=0}}function PIa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;b=J[J[b+4>>2]+8>>2];J[c+4>>2]=0;H[c+15|0]=0;d=J[J[b>>2]+12>>2];J[699344]=0;ca(d|0,a|0,b|0,c+4|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function Ed(a){a=a|0;var b=0,c=0;J[a+24>>2]=2392964;J[a>>2]=2392932; +b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2392964;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}wc(a+8|0);return a|0}function xBb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=212568;J[a+12>>2]=0;J[a+16>>2]=0;a:{d=QD(24);if(d){if(c?b:0)break a;uc(d)}J[a+4>>2]=0;return a|0}J[d+20>>2]=b;J[d+12>>2]=b;J[d+8>>2]=c;J[d+4>>2]=b;J[d>>2]=1;J[d+16>>2]=b+c;J[a+16>>2]=c;J[a+4>>2]=d;return a| +0}function jp(a){var b=0,c=0;J[a+20>>2]=0;J[a+36>>2]=0;J[a+48>>2]=0;b=J[a+24>>2];J[a+56>>2]=J[a+20>>2];J[a+60>>2]=b;c=J[a+32>>2];b=a- -64|0;J[b>>2]=J[a+28>>2];J[b+4>>2]=c;J[a+88>>2]=J[a+52>>2];b=J[a+40>>2];J[a+72>>2]=J[a+36>>2];J[a+76>>2]=b;b=J[a+48>>2];J[a+80>>2]=J[a+44>>2];J[a+84>>2]=b}function Xi(a){var b=0,c=0,d=0,e=0;b=Dz(a,61);if((b|0)==(a|0))return 0;d=b-a|0;a:{if(K[d+a|0])break a;b=J[698589];if(!b)break a;c=J[b>>2];if(!c)break a;while(1){b:{if(!ud(a,c,d)){c=J[b>>2]+d|0;if(K[c|0]==61)break b}c= +J[b+4>>2];b=b+4|0;if(c)continue;break a}break}e=c+1|0}return e}function OBb(a){a=a|0;var b=0,c=0,d=0;if(J[a+4>>2]==16)d=J[J[a+44>>2]+88>>2]+P(J[a+8>>2],1876)|0;else d=J[a+36>>2];c=J[a+40>>2];b=J[a+52>>2];kc[J[J[b>>2]+20>>2]](b,2)|0;c=kc[J[J[b>>2]+20>>2]](b,J[c+16>>2]<257?1:2)|0;b=kc[J[J[b>>2]+20>>2]](b,1)|0;J[J[d+1872>>2]+P(c,1076)>>2]=b;Vaa(a,c)}function Jba(a,b,c){var d=0;a:{if((b|0)==1){d=32768;if(!c)break a}b:{if(c-1>>>0>65533|b)break b;c:switch(a-3|0){case 2:d=c-1|0;if(d>>>0>=3)break b;break a; +case 0:d=0;if((c|0)!=1)break b;break a;default:return c-1&32767;case 1:break c}d=c-1|0;if(d>>>0<3)break a}d=65536}return d}function wAa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2416208;b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function jtb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=J[b+40>>2];d=J[a+428>>2];c=J[b+32>>2];c=c<<24|(c& +65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;H[d+12|0]=K[b+36|0];c=J[b+40>>2];if(c)xc(d+13|0,J[b+44>>2],c);return Ce(a,J[b>>2],e+5|0,d+8|0)|0}function gsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1129074510){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];H[b+36|0]=K[c+36|0];H[b+37|0]=K[c+37|0];H[b+38|0]=K[c+38|0];H[b+39|0]=K[c+39|0];H[b+40|0]=K[c+40|0];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];return 0}function gN(a,b,c){var d=0; +d=fc-16|0;fc=d;a:{if(b>>>0<=255){b=Te(a,b&4?260544:260576,c);break a}b=Te(a,260608,d+11|0);if(b)break a;I[c>>1]=K[d+11|0]-128;I[c+2>>1]=K[d+12|0]-128;I[c+4>>1]=K[d+13|0]-128;I[c+6>>1]=K[d+14|0]-128;a=K[d+15|0];I[c+10>>1]=0;I[c+8>>1]=a-128}fc=d+16|0;return b}function dEa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2397768;b=J[a+16>>2];J[a+16>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!= +1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function UEa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2397024;b=J[a+12>>2];J[a+12>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function Or(a,b){var c=0,d=0,e=0;c=fc-32|0;fc=c;d=J[b>>2];a:{if((d|0)>=1048577){J[c>>2]=31156;Hc(0,0,0,0,0,30,2,3,31156,0,0,0,32879,c);break a}d=d<<1;a=kc[J[663200]](a,d|1)|0;if(!a){J[c+ +16>>2]=36881;Hc(0,0,0,0,0,30,2,3,36881,0,0,0,32879,c+16|0);break a}J[b>>2]=d;e=a}fc=c+32|0;return e}function th(a){var b=0,c=0;if(a){b=J[a+4>>2];if(b)kc[J[663199]](b);b=J[a+8>>2];if(b)kc[J[663199]](b);b=J[a+44>>2];if(b)kc[J[663199]](b);b=J[a+48>>2];if(b)kc[J[663199]](b);b=J[a+40>>2];a:{if(!b)break a;c=J[a+12>>2];if(!c)break a;kc[b|0](c)}b=J[a>>2];if(b)Vn(b);kc[J[663199]](a)}}function faa(a,b,c){var d=0,e=0;a:{b:{if(b){while(1){d=ph(a,L[c>>1]);if(d){d=$E(a,d);if(d)break a}c=c+2|0;e=e+1|0;if((e|0)!= +(b|0))continue;break}break b}c=J[a+688>>2];if(!c)break b;while(1){b=J[c+8>>2];if(!K[c+30|0]){d=$E(a,c);if(d)break a}c=b;if(c)continue;break}}d=0}return d}function c4a(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;J[b+12>>2]=0;a:{b:{c=K[a+11|0];d=c<<24>>24<0;e=d?J[a>>2]:a;if(e){a=d?J[a+4>>2]:c;if(a)break b}a=jk(0,18788);break a}wq(e,a,b+12|0,b+8|0,0);c=J[b+12>>2];a=jk(c,18788);if(!c)break a;uc(c)}if(a)pg(a);fc=b+16|0;return(a|0)!=0|0}function Tfa(a){a=a|0;var b=0,c=0;b=J[a+8>>2];J[699344]=0;b=ha(6975, +0,0,4,b|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;if(b)a=-1;else{a=J[a+8>>2];if(!a)return 1;J[699344]=0;a=_(6976,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;a=(a|0)==1}return a|0}ea(0)|0;Bc();B()}function Sm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(!((b|0)<0|(c|0)<=0|(c^2147483647)>>>0>>0)){d=J[a>>2];e=(d|0)<(b+c|0)?d-b|0:c;c=d-e|0;if((c|0)>=(b|0))while(1){c=J[a+4>>2]+b|0;H[c|0]=K[c+e|0];c=J[a>>2]-e|0;d=(c|0)>(b|0);b=b+1|0;if(d)continue;break}J[a>>2]=c;Bh(a,c)}return a|0}function N3(a){a= +a|0;J[a+272>>2]=0;J[a+276>>2]=0;J[a+264>>2]=0;J[a+256>>2]=0;J[a+260>>2]=0;J[a+320>>2]=0;J[a+324>>2]=0;J[a+344>>2]=0;J[a+348>>2]=0;J[a+280>>2]=0;J[a+284>>2]=0;J[a+288>>2]=0;J[a+292>>2]=0;J[a+296>>2]=0;J[a+328>>2]=0;J[a+332>>2]=0;J[a+336>>2]=64;J[a+340>>2]=0;return a|0}function Bib(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+736>>2];a:{b:{if(f){if(b)J[b>>2]=J[f>>2];if(c)J[c>>2]=J[f+4>>2];if(d)J[d>>2]=J[J[a+736>>2]+8>>2];if(!e)break a;a=J[J[a+736>>2]+12>>2];break b}if(b)J[b>>2]=0;if(c)J[c>> +2]=0;a=0;if(!e)break a}J[e>>2]=a}return 0}function vJ(a,b){var c=0;c=J[a+424>>2];if(c)kc[J[J[c>>2]+4>>2]](c);J[a+424>>2]=J[b>>2];c=J[a+428>>2];if(c)kc[J[J[c>>2]+4>>2]](c);J[a+428>>2]=J[b+4>>2];c=J[a+432>>2];if(c)kc[J[J[c>>2]+4>>2]](c);J[a+432>>2]=J[b+8>>2];c=J[a+436>>2];if(c)kc[J[J[c>>2]+4>>2]](c);J[a+436>>2]=J[b+12>>2]}function pAa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2416460;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a; +J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function oQa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2317504;b=J[a+8>>2];if(b)while(1){d=J[J[a+12>>2]+(c<<2)>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+8>>2]}c=c+1|0;if(c>>>0>>0)continue;break}b=J[a+12>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ea(0)|0;Bc();B()}function nCa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2412920;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+ +4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function ksa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2434816;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function hp(a,b,c){var d=0,e=0,f=0,g=0;e=Yc(b)+Yc(c)|0;d=e+1|0;a:{b:{if(e>>> +0>=2147483647){a=0;if(!d)break b;break a}a=kc[J[a+4>>2]](a,d)|0;if(!a)return 0;Ac(a,0,d)}d=at(b,47);c:{if(d){e=b;b=(d-b|0)+1|0;f=Ad(a,e,b)+b|0,g=0,H[f|0]=g;b=d+1|0;break c}H[a|0]=0}a=AG(AG(a,c),b)}return a}function Tza(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2416580;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}Gm(vr(a))}function Sn(a,b, +c,d,e){var f=0;f=fc-32|0;fc=f;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[f+24>>2]=0;J[f+20>>2]=e;J[f+16>>2]=d;Hc(0,0,0,a,0,3,b,2,d,e,0,0,c,f+16|0);J[a+356>>2]=0;break a}J[f+8>>2]=0;J[f+4>>2]=e;J[f>>2]=d;Hc(0,0,0,0,0,3,b,2,d,e,0,0,c,f)}fc=f+32|0}function QG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a+8>>2];a=J[a+4>>2];c=J[b+8>>2];b=J[b+4>>2];a:{if((d-a|0)!=(c-b|0))break a;if((a|0)==(d|0))return 1;while(1){c=J[a>>2];e=J[b>>2];f=(c|0)==(e|0);if((c|0)!=(e|0))break a;b=b+4|0;a=a+4| +0;if((d|0)!=(a|0))continue;break}}return f|0}function H_(a){var b=0,c=0,d=0;b=J[a+4>>2];if((b|0)>0)while(1){d=J[J[a>>2]+(c<<2)>>2];if(d){b=J[d+32>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(d);b=J[a+4>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}b=J[a>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1)return a;ea(0)|0;Bc();B()}function Gu(a,b){var c=0,d=0,e=0,f=0;c=J[a>>2];a:{if(!b){if(!c)break a;uc(c);return}d=Yc(b);if(!c){c=a;a=Dc(d+4096|0);J[c>>2]=a;c=a;a=Yc(b);e=xc(c,b,a)+a|0,f=0,H[e|0]=f;return}if(d>>> +0>4294963199)break a;uc(c);c=a;a=Dc(d+4096|0);J[c>>2]=a;if(!a)break a;if(d)xc(a,b,d);H[a+d|0]=0}}function EFa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2393752;b=J[a+8>>2];J[a+8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function Cmb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(b>>>0>255)break a;b=kc[J[a+20>>2]](L[J[a+16>>2]+(b<<1)>>1])|0;d=J[a+24>> +2];if(!d)break a;e=J[a+28>>2];while(1){a=J[(c<<2)+e>>2];if(!(!a|K[a|0]!=K[b|0]))if(!Ic(a,b))break a;c=c+1|0;if((d|0)!=(c|0))continue;break}c=0}return c|0}function f9(a,b){var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;a:{if(!a)break a;c=!b;if(c)break a;c=c?0:J[b>>2];if((c|0)<=0)break a;e=c-1|0;if((c|0)<=(e|0)|(e|0)<0)break a;while(1){s9(b,f,d+12|0,d+8|0);jm(a,Q(J[d+12>>2]),Q(J[d+8>>2]));c=(f|0)!=(e|0);f=f+1|0;if(c)continue;break}}fc=d+16|0}function bV(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2436896;b=J[a+8>>2];J[a+ +8>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344];J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(nd(a))}function aFa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2396924;b=J[a+20>>2];if((b|0)>0)while(1){c=J[a+24>>2];e=d<<2;f=J[c+e>>2];if(f){uc(f);c=J[a+24>>2];b=J[a+20>>2]}J[c+e>>2]=0;d=d+1|0;if((d|0)<(b|0))continue;break}J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;hd(a+28|0);return nd(a)|0}function VA(a){a= +a|0;var b=0,c=0;J[a+24>>2]=2392964;J[a>>2]=2392932;b=J[a+28>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+28>>2]=0}J[a+16>>2]=2392964;b=J[a+20>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+20>>2]=0}wc(a+8|0);uc(a)}function wr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-32|0;fc=d;a:{if(!K[b+144|0]){a=Qc(d+8|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}if(!(J[b+148>>2]&64|c))AW(b); +Eo(a,b+112|0);fc=d+32|0;return}B()}function uQ(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:10;if(d>>>0>=c>>>0){if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;un(d,b,c);return vv(a,d,c)|0}e=d;f=c-d|0;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;Ls(a,e,f,d,0,d,c,b);return a|0}function cM(a,b,c,d){var e=0;J[a+84>>2]=1;J[a+88>>2]=0;N[a+8>>2]=N[a>>2]+c;N[a+12>>2]=N[a+4>>2]+d;e=J[a+80>>2];if(!e){e=vc(100);J[e+72>>2]=0;J[e+76>>2]=0;J[e>>2]=1;J[e+96>>2]=1;J[e+80>>2]= +0;J[e+84>>2]=0;J[e+88>>2]=0;J[e+92>>2]=0;e=e+4|0;J[a+80>>2]=e}a=J[b>>2];H[e+64|0]=0;J[e>>2]=a}function bE(a,b){var c=0,d=0,e=0;d=J[J[a+4>>2]+100>>2];c=J[a+156>>2];e=J[c+4>>2];a:{if(e&1){c=J[a+88>>2];if(c)kc[J[d+8>>2]](d,c);J[a+88>>2]=0;break a}J[c+4>>2]=e|1}e=0;c=b?6:0;b:{if((b|0)<=0)break b;d=kc[J[d+4>>2]](d,b)|0;c=64;if(!d)break b;e=Ac(d,0,b);c=0}J[a+88>>2]=e;return c}function XCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-32|0;fc=c;d=K[a+16|0];e=J[a+12>>2];J[c+24>>2]=K[a+17|0];J[c+20>>2]=d;J[c+ +16>>2]=e;md(b,209429,c+16|0);d=K[a+20|0];e=K[a+18|0];f=K[a+19|0];J[c+12>>2]=K[a+21|0];J[c+8>>2]=d;J[c+4>>2]=f;J[c>>2]=e;md(b,209556,c);fc=c+32|0;return 0}function UCa(a){a=a|0;var b=0,c=0;b=vc(28);J[b+12>>2]=0;J[b+16>>2]=0;J[b>>2]=2401528;J[b+4>>2]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[699344]=0;c=b+12|0;J[c>>2]=2397928;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;uc(nd(b));ba(a|0);B()}J[a>>2]=0;vd(a,b)}function zna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+444|0;if((c|0)!= +(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+455|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}Gf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Lf(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function uda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;kc[J[J[a+584>>2]+908>>2]](a,b,c);e=b;d=J[b>>2];b=L[a+204>>1]<<3;if(d>>>0<0-b>>>0)d=((b+d|0)-1>>>0)/(b>>>0)|0;else d=0;J[e>>2]=P(d,b);b=J[c>>2];a=L[a+206>>1]<<3;if(b>>>0<0-a>>>0)b=((a+b|0)-1>>>0)/(a>>>0)|0;else b=0;J[c>>2]=P(b,a)}function lZ(a, +b){var c=0,d=0;a:{d=K[a+9|0];if(d>>>0>7)break a;c=J[a+4>>2];a=64080;b:{c:switch(d-1|0){case 1:a=64336;break b;case 0:break b;case 3:break c;default:break a}a=64592}if((c|0)<=0)break a;c=b+c|0;while(1){H[b|0]=K[K[b|0]+a|0];b=b+1|0;if(c>>>0>b>>>0)continue;break}}}function Ufb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+124|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+135|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}Gf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0; +Lf(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function Js(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=K[a+11|0]>>>7|0?(J[a+8>>2]&2147483647)-1|0:1;if(d>>>0>=c>>>0){if(K[a+11|0]>>>7|0)d=J[a>>2];else d=a;tn(d,b,c);return tv(a,d,c)|0}e=d;f=c-d|0;if(K[a+11|0]>>>7|0)d=J[a+4>>2];else d=K[a+11|0]&127;Ks(a,e,f,d,0,d,c,b);return a|0}function Efb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+472|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+483|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+ +8>>2];return 0}Gf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Lf(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function Cfb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+460|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+471|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}Gf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Lf(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function Ana(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+456|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+467|0]>=0){if((e| +0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return 0}Gf(c,J[b>>2],J[b+4>>2]);return 0}a=(e|0)<0;Lf(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}return 0}function zzb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[J[a+544>>2]+88>>2];c=J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0;b=J[a+644>>2];while(1){d=K[c|0];H[b+2|0]=d;H[b+1|0]=d;H[b|0]=d;H[b+3|0]=K[c+1|0];b=b+4|0;c=c+2|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Pn(a,b,c){var d=0,e=0,f=0;e=J[a>>2];d=J[a+8>>2];f=J[a+ +4>>2];if((d|0)>=(f|0)){d=J[a+12>>2];d=((d|0)>0?d:f)+f|0;J[a+4>>2]=d;e=Wd(e,d,4);J[a>>2]=e;d=J[a+8>>2]}b=(b|0)>0?b:0;if((b|0)<(d|0)){e=(b<<2)+e|0;cd(e+4|0,e,d-b<<2);d=J[a+8>>2];e=J[a>>2]}J[e+(b<<2)>>2]=c;J[a+8>>2]=d+1}function Ph(a,b,c){var d=0,e=0;d=J[a+20>>2];e=(d+c>>>2|0)+24576|0;c=c>>>0>e>>>0?e:c;e=d;d=K[b|0];if(e>>>0>=M[((d<<2)+a|0)+1068>>2])H[b|0]=K[(a+d|0)+2092|0];J[a+20>>2]=c;if(c>>>0>=32768){Yv(a,1-(J[a+32>>2]>>>15|0)|0);J[a+32>>2]=J[a+32>>2]<<1&65534;J[a+20>>2]=J[a+20>>2]<<1&65534}}function GLa(a, +b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=vc(8);J[699344]=0;b=aa(3349,f|0,b|0)|0;g=J[699344];J[699344]=0;if((g|0)!=1){J[a+8>>2]=c;J[a>>2]=b;J[a+28>>2]=1;J[a+20>>2]=0;J[a+24>>2]=0;J[a+16>>2]=e;J[a+12>>2]=d;J[a+4>>2]=1;return a|0}a=Z()|0;uc(f);ba(a|0);B()}function BG(a){a=a|0;var b=0,c=0;b=J[a+12>>2];a:{if((b|0)>=J[a+16>>2]){b=0;c=nb(J[a+8>>2],a+24|0,2048)|0;if((c|0)<=0){if(!c|(c|0)==-44)break a;J[698583]=0-c;return 0}J[a+16>>2]=c}c=b;b=a+b|0;J[a+12>>2]=c+L[b+40>>1];c=J[b+36>>2];J[a>>2]= +J[b+32>>2];J[a+4>>2]=c;b=b+24|0}return b|0}function Aeb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;a:{if(!J[a+16>>2])break a;f=J[a+20>>2];if(!f)break a;Yj(f,O[b>>3],O[c>>3]);_n(J[a+20>>2],O[b>>3]+O[d>>3],O[c>>3]);_n(J[a+20>>2],O[b>>3]+O[d>>3],O[c>>3]+O[e>>3]);_n(J[a+20>>2],O[b>>3],O[c>>3]+O[e>>3]);Nx(J[a+20>>2])}}function nkb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=142;e=L[a+152>>1];a:{if(!e)break a;a=J[a+156>>2];e=a+(e<<4)|0;while(1){b:{if(J[a>>2]==(b|0)){g=J[a+12>>2];if(g)break b}a= +a+16|0;if(e>>>0>a>>>0)continue;break a}break}if(d)J[d>>2]=g;f=yd(c,J[a+8>>2])}return f|0}function nQa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2317504;b=J[a+8>>2];if(b)while(1){d=J[J[a+12>>2]+(c<<2)>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+8>>2]}c=c+1|0;if(c>>>0>>0)continue;break}b=J[a+12>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function mIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;b=fc-16|0;fc=b;e=K[c+11|0];d=e<<24>>24<0;f=J[c+4>>2];a:{if(!(!(d?f:e)|J[(d?J[c>>2]: +c)>>2]!=47)){sn(a,c,1,-1,b+15|0);break a}if(!d){d=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=d;J[a+8>>2]=J[c+8>>2];break a}Ve(a,J[c>>2],f)}fc=b+16|0}function gG(a){a=a|0;var b=0,c=0;J[a>>2]=2629436;J[699344]=0;da(6812,a|0,0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+28>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)kc[J[J[b>>2]+8>>2]](b);uc(J[a+32>>2]);uc(J[a+36>>2]);uc(J[a+48>>2]);uc(J[a+60>>2]);return a|0}ea(0)|0;Bc();B()}function U5(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if((a|0)!=(b|0)){d=K[b+11|0];c=d<<24>> +24;if(H[a+11|0]>=0){if((c|0)>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return a|0}return Gf(a,J[b>>2],J[b+4>>2])|0}e=a;a=(c|0)<0;a=Lf(e,a?J[b>>2]:b,a?J[b+4>>2]:d)}return a|0}function KSa(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;b=K[b|0];J[d>>2]=b;l=g,m=Al(J[a+1444>>2],b,e,f),J[l>>2]=m;O[h>>3]=O[((b<<3)+a|0)+1464>>3];J[k>>2]=0;J[k+4>>2]=0;J[j>>2]=0;J[j+4>>2]=0;J[i>>2]=0;J[i+4>>2]=0;return 1}function BDb(a,b){a=a|0;b= +b|0;var c=0;a:{if(Ti(b,a+20|0))break a;if(Ti(b,a+24|0))break a;c=J[a+16>>2]-8|0;J[a+28>>2]=c>>>2;if(c>>>0>131)break a;if(c>>>0<4)return 0;c=0;while(1){if(Ti(b,((c<<2)+a|0)+32|0))break a;c=c+1|0;if(c>>>0>2])continue;break}return 0}return-1}function Aaa(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=(J[b+1176>>2]+P(J[b+1168>>2],J[a+572>>2])|0)+P(J[b+1164>>2],J[a+580>>2])|0;c=J[a+636>>2]+J[a+616>>2]|0;while(1){H[b|0]=K[c|0];c=c+1|0;b=J[a+584>>2]+b|0;d=d+1|0;if((d|0)>2])continue; +break}}return 0}function xv(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;J[c+12>>2]=a;a:{if((a|0)==(b|0))break a;while(1){b=b-4|0;J[c+8>>2]=b;if(a>>>0>=b>>>0)break a;a=J[c+12>>2];b=J[a>>2];d=a;a=J[c+8>>2];J[d>>2]=J[a>>2];J[a>>2]=b;a=J[c+12>>2]+4|0;J[c+12>>2]=a;b=J[c+8>>2];continue}}fc=c+16|0}function qT(a){a=a|0;var b=0,c=0,d=0;b=+Za()/1E3;a:{if(R(b)<0x7fffffffffffffff){d=~~b>>>0;if(R(b)>=1)c=~~(b>0?T(V(b*2.3283064365386963E-10),4294967295):W((b-+(~~b>>>0>>>0))*2.3283064365386963E-10))>>>0;else c= +0;break a}c=-2147483648}if(a){J[a>>2]=d;J[a+4>>2]=c}jc=c;return d|0}function mDa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=Co(c,2400660);J[699344]=0;ca(5322,a|0,b|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1){Md(d);fc=c+32|0;return}a=Z()|0;Md(d);ba(a|0);B()}function hg(a,b){var c=0,d=0;c=J[a+12>>2];a:{if((c|0)!=J[a+8>>2]){d=J[a+4>>2];break a}c=c?c<<1:8;J[a+8>>2]=c;d=Wd(J[a+4>>2],c,16);J[a+4>>2]=d;c=J[a+12>>2]}c= +(c<<4)+d|0;d=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=d;d=J[b+12>>2];J[c+8>>2]=J[b+8>>2];J[c+12>>2]=d;J[a+12>>2]=J[a+12>>2]+1}function ZEa(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=J[a+16>>2]-d|0;f=(c|0)>(f|0)?f:c;if((f|0)<=0)return 0;c=f;while(1){h=d>>12;g=d&4095;e=4096-g|0;e=(c|0)<(e|0)?c:e;d=d+e|0;b=xc(b,J[J[a+24>>2]+(h<<2)>>2]+g|0,e)+e|0;c=c-e|0;if((c|0)>0)continue;break}return f|0}function PAa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-32|0;fc=c;J[c+24>>2]=0;J[c+16>>2]=0;J[c+20>>2]=0;J[c+8>>2]= +0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;d=Co(c,2413244);J[699344]=0;ca(5509,a|0,b|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1){Md(d);fc=c+32|0;return}a=Z()|0;Md(d);ba(a|0);B()}function D5(a){var b=0,c=0,d=0;b=J[a+4>>2];if(b){c=b-1|0;J[a+4>>2]=c;d=J[a+12>>2]+(b<<2)|0;while(1){d=d-4|0;b=J[d>>2];if(b){uc(b);b=J[a+4>>2]}else b=c;c=b-1|0;J[a+4>>2]=c;if(b)continue;break}c=J[a+12>>2];if(c)uc(c);J[a>>2]=0;J[a+4>>2]=0;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}}function $Ea(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]= +2396924;b=J[a+20>>2];if((b|0)>0)while(1){c=J[a+24>>2];e=d<<2;f=J[c+e>>2];if(f){uc(f);c=J[a+24>>2];b=J[a+20>>2]}J[c+e>>2]=0;d=d+1|0;if((d|0)<(b|0))continue;break}J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0;hd(a+28|0);uc(nd(a))}function kca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{b:{e=J[a+584>>2];if(e){f=J[e+24>>2];if(!f)break b;if(!J[e+12>>2])break a;kc[f|0](a,b,c);return kc[J[e+12>>2]](a,b,c,d)|0}fa(72298,70404,555,197621);B()}fa(79617,70404,556,197621);B()}fa(79998,70404,557,197621);B()}function gVa(a){a= +a|0;var b=0;b=J[a+24>>2]-1|0;J[a+24>>2]=b;a:{if(!b){b=J[a>>2];if(b)uc(Zc(b));b=J[a+4>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+12>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;uc(a)}return}ea(0)|0;Bc();B()}function cXa(a,b){a=a|0;b=b|0;var c=0,d=0;Uw(a,b);c=J[a+8>>2];if(c&512){d=K[a+351|0];c=d<<24>>24<0;lf(b,c?J[a+340>>2]:a+340|0,c?J[a+344>>2]:d);c=J[a+8>>2]}if(c&1024)zd(b,J[a+352>>2]);if(K[a+167|0]&2){d=b;c=K[a+367|0];b=c<<24>>24<0;lf(d,b?J[a+356>> +2]:a+356|0,b?J[a+360>>2]:c)}}function Z$a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+4>>2];hx(J[a+4>>2]);J[a+4>>2]=0;c=J[a+8>>2];if(c)uc(c);J[a+8>>2]=0;J[a+12>>2]=0;c=K[b+11|0];c=c<<24>>24<0?J[b+4>>2]:c;J[a+12>>2]=c;d=vc(c);J[a+8>>2]=d;e=a,f=HK(xc(d,H[b+11|0]<0?J[b>>2]:b,c),c,0,0,0),J[e+4>>2]=f;return 1}function tU(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;i=fc-16|0;fc=i;J[i+12>>2]=0;b=SL(b,i+12|0);j=J[i+12>>2];a:{if(!j)break a;b:{if(!(!d|(d|0)==(j|0))){if(b)break b; +break a}Yz(a,b,d?c:0,j,e,f,g,h);if(!b)break a}uc(b)}fc=i+16|0;return 0}function ooa(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;e=J[a+12>>2];Ov(e);f=e+2776|0;g=O[c>>3];h=O[d>>3];a=fc-16|0;fc=a;c=J[e+2772>>2];if(c){N[a+12>>2]=g;N[a+8>>2]=h+0;kc[J[J[c>>2]+84>>2]](c,b,a+12|0,a+8|0)|0;kc[J[J[c>>2]+132>>2]](c,f)|0}fc=a+16|0;return 0}function dPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-32|0;fc=d;J[d+16>>2]=13;J[d>>2]=13;J[a>>2]=0;if(J[b>>2]==7){e=d+16|0;Ke(J[b+8>>2],776249,e); +Ke(J[b+8>>2],777426,d);if(!(J[d+16>>2]!=9|J[d>>2]!=9))f=a,g=B_(e,d,0,c),J[f>>2]=g;yc(d+16|0);yc(d)}fc=d+32|0;return a|0}function dKa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+32>>2];b=J[a+28>>2];d=b+8|0;if(c>>>0>=d>>>0)while(1){jB(a,J[a+24>>2]+(b<<2)|0,J[a+20>>2],8);c=J[a+32>>2];b=d;d=b+8|0;if(c>>>0>=d>>>0)continue;break}if(b>>>0>>0)jB(a,J[a+24>>2]+(b<<2)|0,J[a+20>>2],c-b|0);uc(J[a>>2]);uc(a)}function YM(a,b){var c=0,d=0,e=0,f=0;c=b&-4;if(c)while(1){e=(K[(d|3)+a|0]|(K[(d|1)+a|0]<<16|K[a+d|0]<<24|K[(d| +2)+a|0]<<8))+e|0;d=d+4|0;if(d>>>0>>0)continue;break}if((b|0)!=(c|0)){while(1){f=K[a+c|0]<<((c^-1)<<3)|f;c=c+1|0;if(c>>>0>>0)continue;break}e=e+f|0}return e}function XW(a){var b=0,c=0,d=0,e=0;b=fc-256|0;fc=b;a:{if(K[a+276|0]&4){c=sL(a+212|0);J[a+276>>2]=J[a+276>>2]&-5;if(!c)break a;d=65694;e=c+6|0;if(e>>>0<=4)d=J[(e<<2)+69048>>2];Mk(b,1,1,c);z_(b,2,d);c=J[a+236>>2];z_(b,3,c?c:65727);zr(a,b,65793);break a}fd(a,65858)}fc=b+256|0}function sM(a){var b=0,c=0;c=fc-16|0;fc=c;b=J[a+8>>2];J[b+4>>2]=0; +H[b+2|0]=0;I[b>>1]=0;J[b+24>>2]=0;b=J[a+4>>2];if(b){J[c+12>>2]=512;kc[J[J[b>>2]+308>>2]](b,c+12|0)|0;b=J[a+4>>2];kc[J[J[b>>2]+344>>2]](b)|0;a=J[a+4>>2];J[c+8>>2]=512;kc[J[J[a>>2]+312>>2]](a,c+8|0)|0}fc=c+16|0}function kX(a){var b=0,c=0;J[a+16>>2]=2392932;J[a+40>>2]=2392964;b=J[a+44>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+44>>2]=0}J[a+32>>2]=2392964;b=J[a+36>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+36>>2]=0}wc(a+24|0)}function kDb(a,b){a= +a|0;b=b|0;var c=0,d=0;a:{if(Kh(b,J[a+20>>2]))break a;if(!J[a+20>>2])return 0;while(1){d=J[a+24>>2]+P(c,12)|0;if(Kh(b,J[d>>2]))break a;if(Kh(b,J[d+4>>2]))break a;if(Kh(b,J[d+8>>2]))break a;c=c+1|0;if(c>>>0>2])continue;break}return 0}return-1}function jLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=vc(8);J[699344]=0;d=aa(3349,e|0,795726)|0;f=J[699344];J[699344]=0;if((f|0)!=1){Qh(d,J[a+20>>2]);od(d,804129);Qh(d,J[a+24>>2]);od(d,787579);a=kc[b|0](c,J[d+4>>2],J[d>>2])|0;uc(Zc(d));return a|0}a=Z()| +0;uc(e);ba(a|0);B()}function Zgb(a){a=a|0;var b=0,c=0,d=0;if(a){c=J[a+100>>2];b=J[a+132>>2];if(b){if(J[b+160>>2])$f(J[a+104>>2],b+160|0);d=J[b+168>>2];if(d)kc[J[c+8>>2]](c,d);J[b+168>>2]=0;if(b)kc[J[c+8>>2]](c,b);J[a+132>>2]=0}b=J[a+32>>2];if(b)kc[J[c+8>>2]](c,b);J[a+28>>2]=0;J[a+32>>2]=0}}function Z_(a,b,c,d){var e=0,f=0;a:{e=Qk(J[a+56>>2],b);if(e){b=J[e>>2];a=vc(8);J[699344]=0;b=aa(3350,a|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)==1)break a;J[c>>2]=J[e+4>>2];O[d>>3]=O[e+8>>3];return b}J[c>>2]=0; +J[d>>2]=0;J[d+4>>2]=0;return __(a,b)}b=Z()|0;uc(a);ba(b|0);B()}function WZa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if(J[a+76>>2]>0){i=J[a+412>>2];f=J[a+84>>2];j=c<<2;while(1){c=g<<2;h=c+i|0;kc[J[h+12>>2]](a,f,J[b+c>>2]+j|0,J[c+d>>2]+(P(J[h+52>>2],e)<<2)|0);f=f+88|0;g=g+1|0;if((g|0)>2])continue;break}}}function Pw(a,b){var c=0,d=0,e=0,f=0;c=K[b|0];if(c){d=b;while(1){e=P(e,17)+(c&255)|0;c=K[d+1|0];d=d+1|0;if(c)continue;break}}c=J[J[a+12>>2]+((e>>>0)%M[a+4>>2]<<2)>> +2];a:{if(!c)break a;while(1){if(Dd(J[c>>2],b)){c=J[c+8>>2];if(c)continue;break a}break}f=J[c+4>>2]}return f}function KJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:{if(b){if(!a)break b;if(!d)break a;if(J[J[a+72>>2]+16>>2]<<2!=(c|0)){Nc(d,1,2368759,0);a=0}else a=1;return a|0}fa(2365733,2358254,3588,2368742);B()}fa(2358373,2358254,3589,2368742);B()}fa(2358486,2358254,3590,2368742);B()}function Jl(a){var b=0,c=0,d=0;c=-2;a:{if(!a|!J[a+32>>2])break a;d=J[a+36>>2];if(!d)break a;b=J[a+28>>2];if(!b|J[b>>2]!= +(a|0)|J[b+4>>2]-16180>>>0>31)break a;c=J[b+56>>2];if(c){kc[d|0](J[a+40>>2],c);d=J[a+36>>2];b=J[a+28>>2]}kc[d|0](J[a+40>>2],b);c=0;J[a+28>>2]=0}return c}function Imb(a){a=a|0;var b=0,c=0;b=J[a+20>>2];a:{b:{if(K[a+65|0]){a=J[a+12>>2];if((I[a+20>>1]+I[a+56>>1]|0)+1>>>0>M[a+8>>2]){a=Hh(a,0,1);if(a)break a}c=L[b>>1];a=c<<16>>16;if((a|0)<=0)break b;I[(J[b+12>>2]+(c<<1)|0)-2>>1]=L[b+2>>1]-1}a=L[b>>1]}I[b>>1]=a+1;a=0}return a|0}function Gn(a,b){a=a|0;b=b|0;var c=0;c=fc-32|0;fc=c;H[c+31|0]=b;a:{if((kc[J[J[a>> +2]+12>>2]](a,c+31|0,1)|0)!=1){a=Qc(c+4|0,um(J[698583]),2387108,514,2396625,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}fc=c+32|0;return}B()}function Aca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+584>>2];if(d){e=J[d+48>>2];if(!e)break a;if((b|0)==317){J[d>>2]=L[c>>1];J[a+48>>2]=J[a+48>>2]|4;J[a+12>>2]=J[a+12>>2]|8;return 1}return kc[e|0](a,b,c)|0}fa(72298,70404,620,197548);B()}fa(73271,70404,621,197548);B()}function s9(a,b,c,d){var e=0,f=0;if(c)J[c>> +2]=0;if(d)J[d>>2]=0;if(!a)return;if(c){e=+N[J[a+12>>2]+(b<<2)>>2]+.5;a:{if(R(e)<2147483648){f=~~e;break a}f=-2147483648}J[c>>2]=f}if(d){e=+N[J[a+16>>2]+(b<<2)>>2]+.5;b:{if(R(e)<2147483648){a=~~e;break b}a=-2147483648}J[d>>2]=a}}function kIa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;f=e+4|0;xr(f,a,b);a=J[a+4>>2];J[699344]=0;ia(4908,a|0,f|0,c|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[e+15|0]<0)uc(J[e+4>>2]);fc=e+16|0;return}a=Z()|0;if(H[e+15|0]<0)uc(J[e+4>>2]);ba(a|0);B()}function k6a(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;if(J[a+8>>2]){J[e+12>>2]=1;kc[J[J[a>>2]+40>>2]](a,e+12|0);J[e+8>>2]=J[b>>2];b=a+16|0;cM(b,e+8|0,N[c>>2],N[d>>2]);aM(J[a+8>>2],b);J[e+4>>2]=0;kc[J[J[a>>2]+40>>2]](a,e+4|0);a=1}else a=0;fc=e+16|0;return a|0}function jga(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+584>>2];c=J[b+396>>2]+1|0;J[b+396>>2]=c;a:{if(!((c>>>0)%M[a+176>>2]|0)){if(!K[b+400|0])break a;a=b+536|0;c=J[a+4>>2];if(c)kc[J[c+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0;H[b+393|0]=0;H[b+400|0]=0}return}fa(89868, +70472,848,97381);B()}function j6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;if(J[a+8>>2]){J[e+12>>2]=1;kc[J[J[a>>2]+40>>2]](a,e+12|0);J[e+8>>2]=J[b>>2];b=a+16|0;cM(b,e+8|0,N[c>>2],N[d>>2]);b4(J[a+8>>2],b);J[e+4>>2]=0;kc[J[J[a>>2]+40>>2]](a,e+4|0);a=1}else a=0;fc=e+16|0;return a|0}function gQa(a){a=a|0;var b=0,c=0,d=0;d=vc(152);b=J[a+4>>2];c=J[J[b>>2]+8>>2];J[699344]=0;b=_(c|0,b|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;J[699344]=0;a=ga(3620,d|0,b|0,a+8|0)|0;b=J[699344];J[699344]= +0;if((b|0)==1)break a;return a|0}a=Z()|0;uc(d);ba(a|0);B()}function dg(a,b){a=a|0;b=b|0;var c=0,d=0;a:{if(!K[a+8|0])break a;c=J[a>>2];if(!c)break a;d=J[c+4>>2]-1|0;J[c+4>>2]=d;if(d)break a;uc(c)}J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;J[a+4>>2]=J[b+4>>2];c=K[b+8|0];H[a+8|0]=c;d=a;a=J[b>>2];J[d>>2]=a;if(!(!c|!a))J[a+4>>2]=J[a+4>>2]+1}function Ep(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;J[c+12>>2]=a;a:{if((a|0)==(b|0))break a;while(1){b=b-1|0;J[c+8>>2]=b;if(a>>>0>=b>>>0)break a;a=J[c+12>>2];b=K[a|0];d= +a;a=J[c+8>>2];H[d|0]=K[a|0];H[a|0]=b;a=J[c+12>>2]+1|0;J[c+12>>2]=a;b=J[c+8>>2];continue}}fc=c+16|0}function ok(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=J[a>>2];J[a>>2]=e+b;d=b;b=J[a+8>>2];J[a+8>>2]=d+b;f=J[a+4>>2];J[a+4>>2]=f+c;d=c;c=J[a+12>>2];J[a+12>>2]=d+c;a:{if((b|0)>(e|0)){b=1;if((c|0)>(f|0))break a}J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;b=0}return b|0}function oe(a,b,c){var d=0;d=fc-32|0;fc=d;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[d+16>>2]=c;Hc(0,0,0,a,0, +1,b,3,0,0,0,0,4607,d+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[d>>2]=c;Hc(0,0,0,0,0,1,b,3,0,0,0,0,4607,d)}fc=d+32|0}function YJ(a,b){var c=0;c=fc-32|0;fc=c;a:{if((b|0)>=0){b:{if(!b){b=0;if(!a)break b;uc(a);break b}c:{if(a){b=fe(a,b);break c}b=Dc(b)}if(!b)break a}fc=c+32|0;return b}J[c>>2]=776705;md(J[655074],780797,c);ya(1);B()}J[c+16>>2]=777393;md(J[655074],780797,c+16|0);ya(1);B()}function Feb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=J[a+444>>2];if(!J[e+48>>2]){if(!(kc[J[J[a+ +448>>2]+12>>2]](a,e+8|0)|0))break a;J[e+48>>2]=1}f=J[a+324>>2];kc[J[J[a+452>>2]+4>>2]](a,e+8|0,e+52|0,f,b,c,d);if(M[e+52>>2]>>0)break a;J[e+48>>2]=0;J[e+52>>2]=0}}function Bc(){var a=0;a=J[686009];J[699344]=0;ka(a|0);a=J[699344];J[699344]=0;a:{if((a|0)!=1){J[699344]=0;da(7267,16881,0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}oa(ea(0)|0)|0;J[699344]=0;da(7267,6611,0);a=J[699344];J[699344]=0;if((a|0)!=1)break a;ea(0)|0;Bc()}B()}function Aja(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0, +h=0;h=(e-d|0)+b|0;a:{while(1){if((d|0)!=(e|0)){a=-1;if((b|0)==(c|0))break a;f=H[b|0];g=H[d|0];if((f|0)<(g|0))break a;if((f|0)>(g|0))return 1;else{d=d+1|0;b=b+1|0;continue}}break}a=(c|0)!=(h|0)}return a|0}function lSa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b>>2];a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0;a=J[b+4>>2];a=(a|0)>=65536?65536:a;J[c+4>>2]=(a|0)>0?a:0;a=J[b+8>>2];a=(a|0)>=65536?65536:a;J[c+8>>2]=(a|0)>0?a:0;a=J[b+12>>2];a=(a|0)>=65536?65536:a;J[c+12>>2]=(a|0)>0?a:0}function ehb(a,b){a=a|0;b= +b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=J[a+420>>2];if((d|0)>0){g=J[a+424>>2];h=K[b|0];while(1){a:{e=c<<2;f=J[e+g>>2];if(K[f|0]!=(h|0))break a;if(Ic(b,f))break a;return Ig(J[J[a+428>>2]+e>>2],0,10)|0}c=c+1|0;if((d|0)!=(c|0))continue;break}}return 0}function WBb(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;e=-1;d=Ai(a,b+14|0,2);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((dk(a,K[c+(b+14|0)|0])|0)!=-1)continue;break a}break}if((d|0)<2)break a;e=(K[b+15|0]|K[b+14|0]<<8)!=20551?-1:0}fc=b+16|0; +return e|0}function Ne(a){var b=0,c=0;b=J[a+12>>2];a:{if((b|0)==J[a+8>>2]){b=0;a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=161;return 0}c=a;a=b-8|0;J[c+12>>2]=a;b=J[a>>2];b:switch(J[a+4>>2]-1|0){case 1:return b<<16;case 0:break b;default:break a}b=((b>>31)+b|0)- -8192>>14}return b}function Frb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1145198923){Jc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];H[b+36|0]=K[c+36|0];d=J[c+40>>2];J[b+40>>2]=d;if(d){d=kc[J[a+152>>2]](d)|0;J[b+44>>2]=d;if(!d){Jc(a,1, +0,0);return 1}xc(d,J[c+44>>2],J[b+40>>2])}return 0}function tZa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=J[b+120>>2];kc[J[J[d>>2]+20>>2]](d,b+252|0,c+4|0,0);a=J[a+104>>2];J[c>>2]=P(J[c+12>>2],255)+32768&16711680|(P(J[c+8>>2],255)+32768>>>8&65280|P(J[c+4>>2],255)+32768>>>16&255);kc[J[J[a>>2]+52>>2]](a,c)|0;fc=c+16|0}function qba(a,b,c,d,e,f,g,h){var i=0,j=0,k=0;a:{b:{if((e|0)<=0|(f|0)<=0)break b;i=-1;if(kc[J[J[a+4>>2]>>2]](b,c,d,e,f,g)|0)break a;if((h|0)<=0)break b;j=a;k=b;a=c+1|0;b=a>>1;c=d+ +1|0;d=c>>1;i=-1;if(qba(j,k,b,d,(a+e>>1)-b|0,(c+f>>1)-d|0,g,h-1|0))break a}i=0}return i}function naa(a){var b=0;b=a;a=J[a+528>>2];if(!Ck(b,a,0,0,0,0,0,0,0,1)){J[a+36>>2]=0;J[a+40>>2]=0;H[a+31|0]=1;H[a+32|0]=1;J[a+48>>2]=0;J[a+52>>2]=0;H[a+44|0]=0;J[a+56>>2]=0;J[a+60>>2]=0;b=a- -64|0;J[b>>2]=0;J[b+4>>2]=0;I[a+70>>1]=0;I[a+72>>1]=0;I[a+74>>1]=0;I[a+76>>1]=0}}function kT(a){var b=0,c=0,d=0;b=J[a+40>>2];c=kc[b|0](a,0,0,K[a|0]&128?J[a+20>>2]==J[a+28>>2]?1:2:1)|0;b=jc;a:{if((b|0)<0)break a;d=J[a+8>>2];if(d)a= +a+4|0;else{d=J[a+28>>2];if(!d)break a;a=a+20|0}a=J[a>>2]-d|0;c=a+c|0;b=(a>>31)+b|0;b=a>>>0>c>>>0?b+1|0:b}jc=b;return c}function _Bb(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;e=-1;d=Ai(a,b+14|0,2);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((dk(a,K[c+(b+14|0)|0])|0)!=-1)continue;break a}break}if((d|0)<2)break a;e=0-(K[b+14|0]!=255|K[b+15|0]!=216)|0}fc=b+16|0;return e|0}function YV(a,b,c){a=a|0;b=b|0;c=c|0;a=fc-16|0;fc=a;b=a+8|0;cW(b,kc[J[685888]]()|0,c);c=J[a+8>>2];c=J[(c?c+12|0:2743576)>> +2];J[699344]=0;J[a>>2]=c;da(5579,2395408,a|0);c=J[699344];J[699344]=0;a:{if((c|0)!=1){wc(b);fc=a+16|0;break a}b=Z()|0;wc(a+8|0);ba(b|0);B()}return 1}function XOa(a,b,c,d,e){a=a|0;b=+b;c=+c;d=d|0;e=e|0;var f=0,g=0;f=O[a+40>>3]+(O[a+8>>3]*b+O[a+24>>3]*c)+.5;a:{if(R(f)<2147483648){g=~~f;break a}g=-2147483648}J[d>>2]=g;b=O[a+48>>3]+(O[a+16>>3]*b+O[a+32>>3]*c)+.5;if(R(b)<2147483648){J[e>>2]=~~b;return}J[e>>2]=-2147483648}function V_(a){var b=0,c=0,d=0;a:{if(!J[a+36>>2])break a;b=J[a+32>>2];if((b|0)<=0)break a; +while(1){J[a+40>>2]=-1;if(J[a+36>>2])J[a+32>>2]=b-1;J[a+28>>2]=J[a+28>>2]+1;b=J[a+24>>2];c=a,d=kc[J[J[b>>2]+28>>2]](b)&255,J[c+40>>2]=d;b=J[a+32>>2];if((b|0)>0)continue;break}}}function Lp(a){var b=0,c=0,d=0;A(+a);b=v(1)|0;v(0)|0;d=b>>>20&2047;if(d>>>0<=1074){if(d>>>0<=1021)return a*0;a=(b|0)>0|(b|0)>=0?a:-a;c=a+4503599627370496+-4503599627370496-a;a:{if(c>.5){a=a+c+-1;break a}a=a+c;if(!(c<=-.5))break a;a=a+1}a=(b|0)>0|(b|0)>=0?a:-a}return a}function iDb(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc= +b;e=-1;d=Ai(a,b+14|0,2);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((dk(a,K[c+(b+14|0)|0])|0)!=-1)continue;break a}break}if((d|0)<2)break a;e=0-(K[b+14|0]!=255|K[b+15|0]!=79)|0}fc=b+16|0;return e|0}function fNa(a){a=a|0;var b=0;J[a>>2]=2343748;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;b=J[a+60>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a|0}ea(0)|0;Bc();B()}function eka(a,b){a=a| +0;b=b|0;var c=0;a:{if(!J[a+64>>2])break a;c=J[a+12>>2];if(c>>>0<=M[a+8>>2])break a;if((b|0)==-1){J[a+12>>2]=c-1;return((b|0)!=-1?b:0)|0}c=J[a+12>>2]-1|0;if(!(K[a+88|0]&16)&K[c|0]!=(b&255))break a;J[a+12>>2]=c;H[J[a+12>>2]]=b;return b|0}return-1}function XO(a,b){var c=0,d=0,e=0,f=0;a:{while(1){d=-1;c=Kj(a);if((c|0)==-1)break a;if((c|0)==32|c-9>>>0<5)continue;break}while(1){e=c-48|0;if(e>>>0<=9){f=P(f,10)+e|0;c=Kj(a);if((c|0)>=0)continue;break a}break}if(!((c|0)==32|c-9>>>0<5))break a;J[b>>2]=f;d=0}return d} +function vd(a,b){a=a|0;b=b|0;var c=0,d=0;if(b)J[b+4>>2]=J[b+4>>2]+1;c=(a&252)+2793824|0;uH(c);d=J[a>>2];J[a>>2]=b;J[c>>2]=0;a:{if(!d)break a;b=d+4|0;c=J[b>>2]-1|0;J[b>>2]=c;if(c)break a;c=J[b>>2];if(!c)J[b>>2]=-32767;if(c)break a;kc[J[J[d>>2]+4>>2]](d)}return a|0}function bv(a,b,c){var d=0,e=0,f=0;if(!a)return;e=J[a+20>>2];a:{if(!e)break a;f=J[a+24>>2];if(!f)break a;d=+Q(Q(f>>>0)*c)+.5;b:{if(d<4294967296&d>=0){f=~~d>>>0;break b}f=0}J[a+24>>2]=f;d=+Q(Q(e>>>0)*b)+.5;c:{if(d<4294967296&d>=0){e=~~d>>> +0;break c}e=0}J[a+20>>2]=e}}function Uf(a,b,c,d){var e=0;e=fc-32|0;fc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[e+16>>2]=d;Hc(0,0,0,a,0,1,b,3,d,0,0,0,c,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[e>>2]=d;Hc(0,0,0,0,0,1,b,3,d,0,0,0,c,e)}fc=e+32|0}function Pua(a){a=a|0;var b=0,c=0,d=0,e=0;c=fc-16|0;fc=c;d=1;b=J[a+12>>2];a:{if(!b)break a;a=J[a+8>>2];if(!a)break a;J[c+12>>2]=b;a=a+b|0;while(1){if(!K[b|0]|a>>>0<=b>>>0)break a;ur(c+12|0,a);e=b;b=J[c+12>> +2];if((e|0)!=(b|0))continue;break}d=0}fc=c+16|0;return d|0}function Mxa(a){a=a|0;var b=0,c=0,d=0;if(K[a+88|0])return J[a+84>>2];c=a,d=kc[J[J[a>>2]+36>>2]](a)|0,J[c+72>>2]=d;c=a,d=kc[J[J[a>>2]+44>>2]](a)|0,J[c+76>>2]=d;c=a,d=kc[J[J[a>>2]+40>>2]](a)|0,J[c+80>>2]=d;b=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=b;return b|0}function MDb(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;e=-1;d=Ai(a,b+14|0,2);a:{if((d|0)<0)break a;c=d;while(1){if((c|0)>0){c=c-1|0;if((dk(a,K[c+(b+14|0)|0])|0)!=-1)continue; +break a}break}if((d|0)<2)break a;e=0-(K[b+14|0]!=66|K[b+15|0]!=77)|0}fc=b+16|0;return e|0}function El(a,b,c,d){var e=0;e=fc-32|0;fc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b;J[e+16>>2]=d;Hc(0,0,0,a,0,1,b,3,0,0,0,d,c,e+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[e>>2]=d;Hc(0,0,0,0,0,1,b,3,0,0,0,d,c,e)}fc=e+32|0}function Aoa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];e=O[b>>3];a=fc-16|0;fc=a;f=O[c>>3];O[a>>3]=f;O[a+8>>3]=e;a:{if(J[d+2696>>2]== +512){b=d+1976|0;c=a+8|0;ce(J[b+56>>2],c,a);OU(b+88|0,c,a);break a}b=d+2776|0;kc[J[J[b>>2]+4>>2]](b,e,f)|0}fc=a+16|0;return 0}function vlb(a,b){a=a|0;b=b|0;var c=0;if(M[b+160>>2]>>0)pe(b,8);c=K[a+3|0]|K[a+2|0]<<8;if(!(c>>>0>=262&M[b+160>>2]>=a+c>>>0))pe(b,8);if(J[b+164>>2]>0){a=a+6|0;c=0;while(1){if(M[b+172>>2]<=K[a|0])pe(b,16);a=a+1|0;c=c+1|0;if((c|0)!=256)continue;break}}return 0}function hSa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;kc[J[J[a>>2]+20>>2]](a,b,e+4|0,d);f=+J[e+ +12>>2]*.114+(+J[e+4>>2]*.299+ +J[e+8>>2]*.587)+.5;a:{if(R(f)<2147483648){a=~~f;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0;fc=e+16|0}function eD(a,b){a=a|0;b=b|0;var c=0,d=0;if((a|0)<=536870911){c=wEb(a<<2,a>>31<<2|a>>>30,3,0);c=b&1?c:c+((a|0)%3|0)|0;d=(c|0)/76|0;a=c-P(d,76)|0;a:{if(!a)break a;a=(a<<24>>24)%4|0;if(!a)break a;c=((0-a<<24>>24)+c|0)+4|0}a=(b&2?0:(d<<1)+2|0)+c|0}else a=-1;return a|0}function bla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((c|0)>0){a=J[a+12>>2];while(1){e= +L[a>>1];f=e&32767;if(f){d=Np((+(f>>>0)+.5)*.0027076061740622863+-44.3614195558365);d=e<<16>>16<0?-d:d}else d=0;a=a+2|0;N[b>>2]=d;b=b+4|0;e=c>>>0>1;c=c-1|0;if(e)continue;break}}}function b3a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[a+24>>2];c=J[a+36>>2]+(K[a+29|0]<<10)|0;a=0;while(1){H[a+b|0]=J[(a<<2)+c>>2]>=0;d=a|1;H[d+b|0]=J[(d<<2)+c>>2]>=0;d=a|2;H[d+b|0]=J[(d<<2)+c>>2]>=0;d=a|3;H[d+b|0]=J[(d<<2)+c>>2]>=0;a=a+4|0;if((a|0)!=256)continue;break}}function Vxb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]> +0){c=J[a+644>>2];b=c;while(1){d=K[b|0]|K[b+1|0]<<8;H[c|0]=((d<<8|d>>>8)&65535)>>>8;d=K[b+2|0]|K[b+3|0]<<8;H[c+1|0]=((d<<8|d>>>8)&65535)>>>8;b=b+4|0;c=c+2|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function P4(a){var b=0,c=0,d=0;b=J[a+8>>2];c=J[a+4>>2];if((b|0)!=(c|0))while(1){b=b-8|0;J[a+8>>2]=b;b=J[b+4>>2];a:{if(!b)break a;d=J[b+4>>2];J[b+4>>2]=d-1;if(d)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}b=J[a+8>>2];if((c|0)!=(b|0))continue;break}a=J[a>>2];if(a)uc(a)}function Lf(a,b,c){a=a|0;b=b|0; +c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=J[a+8>>2]&2147483647;a:{if(d>>>0>c>>>0){d=J[a>>2];J[a+4>>2]=c;Ik(d,b,c);J[e+12>>2]=0;J[d+(c<<2)>>2]=J[e+12>>2];break a}f=d-1|0;g=(c-d|0)+1|0;d=J[a+4>>2];Ks(a,f,g,d,0,d,c,b)}fc=e+16|0;return a|0}function Fd(a){a=a|0;var b=0,c=0,d=0;d=fc-16|0;fc=d;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b=J[c+16>>2]-1|0;J[c+16>>2]=b;if((b|0)<=0){b=J[c+40>>2];if(b)kc[J[663154]](b);b=J[c+32>>2];if(b)uc(b);b=J[c+36>>2];J[d+12>>2]=b;if(b)np(d+12|0);uc(c)}J[a>>2]=0}fc=d+16|0}function xe(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=J[a>>2];e=J[d>>2];a:{if(!b){if(e)break a;J[a+4>>2]=0;return}f=J[a+4>>2];g=vc(P(b,c));d=J[a>>2];h=J[d>>2];b:{if(!e)break b;c=P(b>>>0>f>>>0?f:b,c);if(!c)break b;xc(g,h,c)}e=h}J[d>>2]=g;J[a+4>>2]=b;uc(e)}function ux(a,b,c,d){var e=0,f=0;if(!(J[a+32>>2]|(!a|!b))){e=J[a+8>>2];if(!((e|0)==J[a+24>>2]|e>>>0>2147483646))J[a+24>>2]=e;e=J[a+20>>2];f=J[a+4>>2];if(!((e|0)==(f|0)|f>>>0>2147483646)){J[a+20>>2]=f;e=f}a=J[a>>2];J[b+20>>2]=e+a;a=a+c|0;J[b+12>>2]=a;J[b+ +16>>2]=a+d}}function p4a(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0,g=0;O[a>>3]=b;b=W(b);a:{if(b<4294967296&b>=0){c=~~b>>>0;break a}c=0}J[a+8>>2]=c<<1;J[a+12>>2]=1-(c&2147483647);d=c<<9;if(d>>>0>M[a+20>>2]){e=J[a+16>>2];if(e)uc(e);J[a+20>>2]=d;f=a,g=vc((d|0)<0?-1:c<<10),J[f+16>>2]=g}}function mzb(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=J[b+1176>>2]+P(J[b+1168>>2],J[a+2552>>2])|0;c=J[a+2516>>2];while(1){H[b|0]=K[c|0];H[b+1|0]=K[c+1|0];H[b+2|0]=K[c+2|0];c=c+3|0;b=b+4|0;d=d+1|0;if((d|0)< +J[a+588>>2])continue;break}}return XE(a)|0}function fp(a,b){var c=0;c=J[a+8>>2];a:{if(J[a+12>>2]-c>>3>>>0<=b>>>0){b=0;a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=130;return 0}a=(b<<3)+c|0;b=J[a>>2];b:switch(J[a+4>>2]-1|0){case 1:return b<<16;case 0:break b;default:break a}b=((b>>31)+b|0)- -8192>>14}return b}function Qr(a,b,c){var d=0;d=fc-32|0;fc=d;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=1;J[d+16>>2]=c;Hc(0,0,0,a,0,1,1,3,c,0,0,0,b,d+16|0);J[a+12>>2]=0;if(J[a+288>>2])break a;J[a+ +212>>2]=1;break a}J[d>>2]=c;Hc(0,0,0,0,0,1,1,3,c,0,0,0,b,d)}fc=d+32|0}function Fv(a,b,c){var d=0,e=0,f=0;d=a*a;f=d*(d*d)*(d*1.58969099521155E-10+-2.5050760253406863E-8)+(d*(d*2.7557313707070068E-6+-1.984126982985795E-4)+.00833333333332249);e=d*a;if(!c)return e*(d*f+-.16666666666666632)+a;return a-(d*(b*.5-f*e)-b+e*.16666666666666632)}function DC(a,b,c){var d=0;d=fc-32|0;fc=d;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=9;J[d+16>>2]=c;Hc(0,0,0,a,0,1,9,3,0,0,0,c,b,d+16|0);J[a+12>>2]= +0;if(J[a+288>>2])break a;J[a+212>>2]=1;break a}J[d>>2]=c;Hc(0,0,0,0,0,1,9,3,0,0,0,c,b,d)}fc=d+32|0}function D3a(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(!(e>>>0>2|(K[a|0]!=105|e?a:0))){J[f>>2]=0;a=J[b+4>>2];a:{b:{if(!(K[a+62|0]!=1|!K[a+66|0])){if(J[f>>2]>0)break a;c=736692;break b}if(J[f>>2]>0)break a;c=736694}EL(a,c,1,b+16|0,J[b+20>>2],b+24|0,0,f)}}}function Boa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+12>>2];e=O[b>>3];a=fc-16|0;fc=a;f=O[c>>3];O[a>>3]=f;O[a+8>>3]=e;a:{if(J[d+2696>> +2]==512){b=d+1976|0;c=a+8|0;ce(J[b+56>>2],c,a);PU(b+88|0,c,a);break a}b=d+2776|0;kc[J[J[b>>2]>>2]](b,e,f)|0}fc=a+16|0;return 0}function unb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+88>>2];if(b)J[b>>2]=J[a+300>>2];if(c)J[c>>2]=J[a+304>>2];a:{if(!f){c=65536;a=65536;break a}c=Cd(L[f+12>>1]<<6,J[a+304>>2]);a=Cd(L[f+14>>1]<<6,J[a+304>>2])}if(d)J[d>>2]=c;if(e)J[e>>2]=a;return 0}function hy(a){var b=0,c=0,d=0;a:{if(!a)break a;b=H[a|0];d=b&255;if(!d|!(K[(d>>>3|0)+254800|0]>>>(b&7)&1))break a; +while(1){if(c>>>0>429496727)return-1;c=K[b+254832|0]+P(c,10)|0;b=H[a+1|0];a=a+1|0;if(K[((b&248)>>>3|0)+254800|0]>>>(b&7)&1)continue;break}}return c}function W6a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+8|0;if((c|0)!=(b|0)){d=K[b+11|0];e=d<<24>>24;if(H[a+19|0]>=0){if((e|0)>=0){a=J[b+4>>2];J[c>>2]=J[b>>2];J[c+4>>2]=a;J[c+8>>2]=J[b+8>>2];return}KF(c,J[b>>2],J[b+4>>2]);return}a=(e|0)<0;LF(c,a?J[b>>2]:b,a?J[b+4>>2]:d)}}function Rob(a){a=a|0;var b=0,c=0,d=0;c=J[a+16>>2];b=161;a:{if(M[a+20>>2]>>0)break a; +d=J[a+32>>2];c=cm(a,J[c>>2]);b=3;if(c-17>>>0<4294967281)break a;I[d+176>>1]=c;b=d;d=(J[a+20>>2]-J[a+16>>2]>>>2|0)-4|0;I[b+178>>1]=d;I[a+38>>1]=d;I[a+36>>1]=c;b=0}return b|0}function Gca(a){a=a|0;var b=0,c=0;b=J[a+584>>2];if(b){KP(a);J[a+672>>2]=J[b+128>>2];J[a+668>>2]=J[b+132>>2];c=J[b+124>>2];a:{b:{if(c&2){Yo(b- -64|0);break b}if(!(c&1))break a;Jl(b- -64|0)}J[b+124>>2]=0}uc(b);J[a+584>>2]=0;sr(a);return}fa(77363,70440,278,98107);B()}function jRa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218256;b=J[a+392>> +2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+264>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+392>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function gRa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218276;b=J[a+360>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+232>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+360>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function cRa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]= +2218296;b=J[a+376>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+248>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+376>>2]}c=c+1|0;if((b|0)>(c|0))continue;break}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function Zda(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(Mj(a,J[b+8>>2],0)){AF(b,c,d);return}e=J[a+12>>2];f=a+16|0;bQ(f,b,c,d);a=a+24|0;e=(e<<3)+f|0;a:{if(a>>>0>=e>>>0)break a;while(1){bQ(a,b,c,d);if(K[b+54|0])break a;a=a+8|0;if(e>>>0>a>>>0)continue;break}}}function QQa(a){a=a|0;var b= +0,c=0;a:{if(J[a+12>>2])break a;b=J[a>>2];if((kc[J[J[b>>2]+12>>2]](b)|0)==6)b=J[J[a>>2]+16>>2];b:switch(kc[J[J[b>>2]+12>>2]](b)|0){case 0:case 1:return J[a+8>>2]>0|0;case 2:case 3:break b;default:break a}c=(J[a+8>>2]>2)<<1}return c|0}function BE(a,b){var c=0,d=0;c=fc-16|0;fc=c;a:{if(!a|!b)break a;b:{if((a|0)==(b|0))break b;d=J[a+36>>2];J[c+8>>2]=d;if(d){np(c+8|0);J[a+36>>2]=0}b=J[b+36>>2];if(!b)break b;b=$N(b);if(!b)break a;d=J[a+36>>2];J[c+12>>2]=d;if(d)np(c+12|0);J[a+36>>2]=b}}fc=c+16|0}function zH(a){a= +a|0;var b=0;J[a>>2]=2432604;b=J[a+44>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+48>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+52>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;return Zv(a)|0}function g3(a,b){var c=0,d=0,e=0,f=0,g=0;e=65534;c=J[a+4>>2];a:{if(!c)break a;f=J[a+20>>2];a=0;if((c|0)!=1)while(1){d=a+c>>>1|0;g=M[(d<<3)+f>>2]>b>>>0;a=g?a:d;c=g?d:c;if(a>>>0>>0)continue;break}a=(a<<3)+f|0;if(J[a>>2]!=(b|0))break a;e=J[a+4>>2]}return e} +function eib(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a>>2];c=J[d+552>>2];a:{d=wh(J[J[d+96>>2]+4>>2],241284);if(!(!d|!c)){c=J[c>>2];if(c)break a}ms(J[a>>2],b);return 0}c=kc[c|0](d)|0;ms(J[a>>2],b);if(c)kc[J[c+4>>2]](J[J[a+40>>2]>>2],J[a+16>>2],J[a+20>>2],0,0);return 0}function dy(a,b){var c=0;if(!a)return 40;J[a+16>>2]=b;J[a+8>>2]=0;J[a+12>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a>>2]=0;b=jk(b,239625);if(!b)return 1;hh(b,0,2);c=mr(b);J[a+4>>2]=c;if(!c){pg(b);return 81}hh(b,0,0);J[a+24>>2]=1664;J[a+20>>2]=1665; +J[a+12>>2]=b;return 0}function dP(a,b,c,d,e,f){var g=0,h=0;g=fc-16|0;fc=g;J[g+12>>2]=f;h=J[a>>2];a:{if((h|0)>0){nba(a,b,c,b,c,d,e,g+12|0,h);break a}J[f+32>>2]=e;J[f+28>>2]=d;J[f+24>>2]=c;J[f+20>>2]=b;J[f+12>>2]=e;J[f+8>>2]=d;J[f+4>>2]=c;J[f>>2]=b;J[f+36>>2]=8192;J[f+16>>2]=0}fc=g+16|0}function _Va(a){a=a|0;var b=0;J[a>>2]=2193240;b=J[a+20>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;b=J[a+28>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+60>>2];if(b)uc(Sh(b)); +uc(dq(a));return}ea(0)|0;Bc();B()}function SN(a){var b=0,c=0;a:{if(!a)break a;c=J[a>>2];if(!c)break a;b=J[c+8>>2];J[c+8>>2]=b-1;if((b|0)<=1){b=J[c+12>>2];if(b){if(J[c+4>>2]>0){b=0;while(1){uc(J[J[c+12>>2]+(b<<2)>>2]);b=b+1|0;if((b|0)>2])continue;break}b=J[c+12>>2]}uc(b)}uc(c)}J[a>>2]=0}}function PTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=J[a+28>>2];d=O[b+624>>3]-O[b+576>>3];O[b+624>>3]=d;e=O[b+616>>3];O[b+600>>3]=O[b+536>>3]+(O[b+504>>3]*e+d*O[b+520>>3]);O[b+608>>3]=O[b+544>>3]+(e*O[b+512>> +3]+d*O[b+528>>3]);a=J[a+8>>2];kc[J[J[a>>2]+184>>2]](a,b)}function Alb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+16>>2];J[a+32>>2]=b;d=J[a+20>>2];J[a+36>>2]=d;c=J[a+8>>2];e=c+J[a>>2]|0;J[a+8>>2]=e>>1;b=b+c|0;J[a+24>>2]=b>>1;J[a+16>>2]=b+e>>2;b=J[a+12>>2];c=b+J[a+4>>2]|0;J[a+12>>2]=c>>1;b=b+d|0;J[a+28>>2]=b>>1;J[a+20>>2]=b+c>>2}function wRa(a){a=a|0;var b=0,c=0;b=vc(16);a:{a=J[a+12>>2];b:{if(!a){a=0;break b}c=J[J[a>>2]+8>>2];J[699344]=0;a=_(c|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)==1)break a}J[b+12>>2]= +a;J[b>>2]=2218144;J[b+4>>2]=15;J[b+8>>2]=0;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function ty(a){a=a|0;var b=0,c=0,d=0;c=J[a+12>>2];b=J[c>>2];if((b|0)!=J[c+4>>2]){while(1){d=J[b>>2];if(d){uc(d);c=J[a+12>>2]}b=b+4|0;if((b|0)!=J[c+4>>2])continue;break}b=J[c>>2]}if(b){J[c+4>>2]=b;uc(b)}uc(c);b=J[a+16>>2];if(b)uc(b);a=J[a+72216>>2];if(a)uc(a)}function tEa(a){a=a|0;var b=0,c=0,d=0,e=0;if(!(lk(a+20|0)|J[a+16>>2])){H[a+8|0]=1;if(J[a+84>>2]<0){b=J[a+64>>2];d=a,e=kc[J[J[b>>2]+28>>2]](b)|0,J[d+84>>2]=e}b=J[a+ +96>>2];if(b)while(1){c=J[b+8>>2];if(!J[c+8>>2])J[c+8>>2]=1;b=J[b>>2];if(b)continue;break}PA(a)}}function rv(){var a=0,b=0,c=0,d=0;if(J[686165]>0)while(1){b=P(d,28);a=b+2744676|0;c=J[a>>2];if(c){uc(c);J[a>>2]=0}a=b+2744680|0;c=J[a>>2];if(c){uc(c);J[a>>2]=0}b=b+2744684|0;a=J[b>>2];if(a){uc(a);J[b>>2]=0}d=d+1|0;if((d|0)>2];if(d){if(J[c+4>>2]==(a|0))break a;xj(c,a);B()}d=J[a+8>>2];if(d)break a;return 0}b=J[b>> +2];b:{while(1){if((b|0)==J[d+8>>2])break b;d=J[d>>2];if(d)continue;break}return 0}J[c+4>>2]=a;J[c>>2]=d;return 1}function En(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a:{if(!(K[b|0]?b:0)){a=-1;if(!c)break a;a=K[c|0]?1:-1;break a}a=-1;if(!(!c|!K[c|0])){a=WS(c,2390494);b:{if(a){d=a-b|0;a=a-c|0;break b}a=Yc(c);d=Yc(b)}if((a|0)==(d|0)){a=ud(c,b,a);break a}a=Ic(c,b)}}return a|0}function $4(a){var b=0,c=0,d=0,e=0;d=J[a>>2];if(d){b=d;c=J[a+4>>2];if((b|0)!=(c|0)){while(1){c=c-72|0;b=J[c+68>>2];a:{if(!b)break a; +e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)!=(c|0))continue;break}b=J[a>>2]}J[a+4>>2]=d;uc(b)}}function sma(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+680>>2];d=J[a+676>>2];if((c|0)!=(d|0))while(1){c=c-8|0;b=J[c+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((c|0)!=(d|0))continue;break}J[a+680>>2]=d;An(a+496|0)}function raa(a){var b=0,c=0;c=J[a+408>>2];b=J[c>>2];J[a+408>>2]=b;if(!b)J[a+412>>2]=0;a:{b:{if(!K[c+12|0])break b;b= +J[a+160>>2];if(!b)break b;kc[b|0](a,J[c+4>>2],J[c+8>>2]);break a}b=J[c+4>>2];if(!b)break a;kc[J[a+156>>2]](b,J[c+8>>2])}kc[J[a+156>>2]](c,24)}function Yhb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=fc-16|0;fc=d;e=b>>>0>=4?4:b;if(b){h=e>>>0<=1?1:e;b=0;while(1){f=b<<2;g=J[f+c>>2];J[d+f>>2]=((g+(g>>31)|0)+32768&-65536)>>16;b=b+1|0;if((h|0)!=(b|0))continue;break}}a=Z5(a,e,d);fc=d+16|0;return a|0}function Iib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[((c<<2)+a|0)+268>>2];e=J[a+480>>2];c=J[a+484>> +2];a=J[a+488>>2];if((b|0)>=0){a=((a+d|0)-c|0)+b|0;a=c+(a-((a|0)%(e|0)|0)|0)|0;return((a|0)<0?c:a)|0}a=a+d-(b+c)|0;a=(a|0)%(e|0)-(a+c)|0;return((a|0)>0?0-c|0:a)|0}function AMa(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+8>>2];e=J[c>>2];if(J[a+12>>2]>=2){b=1;while(1){d=(b<<2)+c|0;J[d-4>>2]=J[d>>2];b=b+1|0;if((b|0)>2])continue;break}}b=J[a+4>>2];b=kc[J[J[b>>2]+28>>2]](b)|0;J[(J[a+8>>2]+(J[a+12>>2]<<2)|0)-4>>2]=b;return e|0}function $Va(a){a=a|0;var b=0;J[a>>2]=2193240;b=J[a+20>>2];J[699344]=0;Mc(b);b= +J[699344];J[699344]=0;a:{if((b|0)==1)break a;b=J[a+28>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+60>>2];if(b)uc(Sh(b));return dq(a)|0}ea(0)|0;Bc();B()}function zc(a){var b=0,c=0;b=J[a>>2];J[a>>2]=0;a:{b:{if(!b)break b;J[699344]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[699344];J[699344]=0;if((c|0)==1)break a;if(a)break b;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}return}ea(0)|0;Bc();B()}function Uib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=I[a+ +302>>1];if(e){f=c<<3;g=J[f+J[b+12>>2]>>2];e=Od(d,e,J[a+568>>2]);J[f+J[b+12>>2]>>2]=e+g}e=I[a+304>>1];if(e){c=c<<3;f=J[(c+J[b+12>>2]|0)+4>>2];a=Od(d,e,J[a+568>>2]);J[(c+J[b+12>>2]|0)+4>>2]=a+f}}function Id(a){a=a|0;var b=0,c=0;c=fc-32|0;fc=c;a:{b=Yc(a);if((b|0)>-2){b=b+1|0;b:{if(!b){b=0;break b}b=Dc(b);if(!b)break a}a=of(b,a);fc=c+32|0;return a|0}J[c>>2]=776705;md(J[655074],780797,c);ya(1);B()}J[c+16>>2]=777393;md(J[655074],780797,c+16|0);ya(1);B()}function Epb(a,b){a=a|0;b=b|0;var c=0;a=J[a+712>> +2];b=L[J[a+1188>>2]+(b<<1)>>1];a:{if((b|0)==65535)break a;if(b>>>0>=391){b=b-391|0;if(b>>>0>=M[a+1356>>2])break a;return J[J[a+1360>>2]+(b<<2)>>2]}a=J[a+3084>>2];if(!a)break a;c=kc[J[a+20>>2]](b)|0}return c|0}function Bma(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c+4>>2]=119;J[c+8>>2]=0;J[699344]=0;H[c+15|0]=1;ca(6673,a|0,b|0,c+4|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function $m(a){var b=0,c=0,d=0,e=0; +d=J[a>>2];if(d){b=d;c=J[a+4>>2];if((b|0)!=(c|0)){while(1){c=c-8|0;b=J[c+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((d|0)!=(c|0))continue;break}b=J[a>>2]}J[a+4>>2]=d;uc(b)}}function v5a(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=J[J[b+188>>2]+24>>2];c=Yc(d);if(c>>>0<2147483632){a:{if(c>>>0<=10){H[a+11|0]=c;break a}e=(c|15)+1|0;b=vc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=b;J[a+4>>2]=c;a=b}f=cd(a,d,c)+c|0,g=0,H[f|0]=g;return}_d(a);B()}function tta(a){a= +a|0;var b=0;J[a>>2]=2432604;b=J[a+44>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+48>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+52>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;uc(Zv(a))}function iRa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218256;b=J[a+392>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+264>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+392>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function fRa(a){a= +a|0;var b=0,c=0,d=0;J[a>>2]=2218276;b=J[a+360>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+232>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+360>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function bRa(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2218296;b=J[a+376>>2];if((b|0)>0)while(1){d=J[((c<<2)+a|0)+248>>2];if(d){kc[J[J[d>>2]+4>>2]](d);b=J[a+376>>2]}c=c+1|0;if((c|0)<(b|0))continue;break}J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function _s(a, +b,c){var d=0,e=0,f=0,g=0;if(b)while(1){c=c-1|0;e=a;a=xEb(a,b,10,0);d=jc;f=c,g=e-vEb(a,d,10,0)|48,H[f|0]=g;e=b>>>0>9;b=d;if(e)continue;break}if(a)while(1){c=c-1|0;b=(a>>>0)/10|0;H[c|0]=a-P(b,10)|48;d=a>>>0>9;a=b;if(d)continue;break}return c}function Ys(a,b){var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;a:{if(!b){b=0;break a}d=b;b=S(b);Gi(c,d,0,0,0,b+81|0);d=0+J[c+8>>2]|0;b=(J[c+12>>2]^65536)+(16414-b<<16)|0;f=e>>>0>d>>>0?b+1|0:b;e=J[c+4>>2];b=J[c>>2]}J[a>>2]=b;J[a+4>>2]=e;J[a+8>>2]=d;J[a+12>>2]=f;fc=c+16|0}function LF(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=fc-16|0;fc=e;d=J[a+8>>2]&2147483647;a:{if(d>>>0>c>>>0){d=J[a>>2];J[a+4>>2]=c;hk(d,b,c);H[e+15|0]=0;H[c+d|0]=K[e+15|0];break a}f=d-1|0;g=(c-d|0)+1|0;d=J[a+4>>2];Ls(a,f,g,d,0,d,c,b)}fc=e+16|0;return a|0}function w5(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=348856;b=J[a+2916>>2];if(b){c=b;d=J[a+2920>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;uc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+2916>>2]}J[a+2920>>2]=b;uc(c)}Se(a+88|0);return a| +0}function sg(a,b){a=a|0;b=b|0;var c=0,d=0;if(!a)return 0;d=J[a+204>>2];J[a+204>>2]=d|1048576;a:{b:{if(!b)break b;c=J[a+672>>2];c:{if(c){c=kc[c|0](a,b)|0;break c}c=Dc(b)}if(c)break b;c=0;if(!(K[a+206|0]&16))break a}J[a+204>>2]=d;return c|0}Ld(a,57648);B()}function iR(a){a=a|0;var b=0,c=0,d=0;J[a>>2]=2634104;b=J[a+8>>2];J[699344]=0;c=pa(6851)|0;d=J[699344];J[699344]=0;a:{if((d|0)==1)break a;if((b|0)!=(c|0)){b=J[a+8>>2];J[699344]=0;fG(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}return a|0}ea(0)| +0;Bc();B()}function Zra(a,b){a=a|0;b=b|0;var c=0,d=0;c=vc(36);J[699344]=0;b=aa(5707,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a>>2]=0;vd(a,b);J[699344]=0;$(5708,b|0);b=J[699344];J[699344]=0;if((b|0)==1){b=Z()|0;zc(a);ba(b|0);B()}return}a=Z()|0;uc(c);ba(a|0);B()}function Ssb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;kc[J[a+156>>2]](d,c+1|0)}c=J[b+48>>2];b:{if(!c)break b;d=J[b+52>>2];if(!d)break b;kc[J[a+156>>2]](d,P(c,P(K[b+44|0],3)+2|0))}kc[J[a+ +156>>2]](b,56);return 0}function Pxa(a){a=a|0;var b=0,c=0,d=0;if(!K[a+88|0]){c=a,d=kc[J[J[a>>2]+36>>2]](a)|0,J[c+72>>2]=d;c=a,d=kc[J[J[a>>2]+44>>2]](a)|0,J[c+76>>2]=d;c=a,d=kc[J[J[a>>2]+40>>2]](a)|0,J[c+80>>2]=d;b=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=b}return J[a+72>>2]}function Oxa(a){a=a|0;var b=0,c=0,d=0;if(!K[a+88|0]){c=a,d=kc[J[J[a>>2]+36>>2]](a)|0,J[c+72>>2]=d;c=a,d=kc[J[J[a>>2]+44>>2]](a)|0,J[c+76>>2]=d;c=a,d=kc[J[J[a>>2]+40>>2]](a)|0,J[c+80>>2]=d;b=kc[J[J[a>>2]+48>>2]](a)|0;H[a+ +88|0]=1;J[a+84>>2]=b}return J[a+80>>2]}function Nxa(a){a=a|0;var b=0,c=0,d=0;if(!K[a+88|0]){c=a,d=kc[J[J[a>>2]+36>>2]](a)|0,J[c+72>>2]=d;c=a,d=kc[J[J[a>>2]+44>>2]](a)|0,J[c+76>>2]=d;c=a,d=kc[J[J[a>>2]+40>>2]](a)|0,J[c+80>>2]=d;b=kc[J[J[a>>2]+48>>2]](a)|0;H[a+88|0]=1;J[a+84>>2]=b}return J[a+76>>2]}function H_a(a,b){a=a|0;b=b|0;var c=0;if(!a)return 0;c=J[a+8>>2];if(!c)return 0;a=J[c+44>>2];a:{b:{if(!a)break b;a=J[a+60>>2];if(!a)break b;a=Bf(a,b,0,0);if(a)break a}c=J[c+48>>2];if(!c)return 0;a=0;c=J[c+ +60>>2];if(!c)break a;a=Bf(c,b,0,0)}return a|0}function FLa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=vc(8);J[699344]=0;b=aa(3349,e|0,b|0)|0;f=J[699344];J[699344]=0;if((f|0)!=1){J[a+8>>2]=c;J[a>>2]=b;J[a+28>>2]=1;J[a+20>>2]=0;J[a+24>>2]=0;J[a+12>>2]=d;J[a+4>>2]=2;return a|0}a=Z()|0;uc(e);ba(a|0);B()}function Atb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=J[a+428>>2]+8|0;g=J[b+32>>2];if(g){e=J[b+36>>2];d=f;while(1){c=L[e>>1];c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;d=d+2|0;e=e+2|0;h=h+1|0;if(h>>> +0>2])continue;break}}return Ce(a,J[b>>2],g<<1,f)|0}function Ama(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c+4>>2]=97;J[c+8>>2]=0;J[699344]=0;H[c+15|0]=1;ca(6673,a|0,b|0,c+4|0);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function j5a(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;J[c+12>>2]=0;a:{if(J[a+216>>2]){d=b;break a}d=kc[J[J[a>>2]+84>>2]](a,b,c+12|0)|0;if((d|0)>0|J[a+216>>2]|(J[a+204>>2]==-1|(b|0)>61439))break a; +d=kc[J[J[a>>2]+84>>2]](a,b,c+12|0)|0}fc=c+16|0;return d|0}function hyb(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+(b<<1)|0;b=c+(b<<2)|0;c=0;while(1){H[b+3|0]=0;e=K[d+1|0];H[b+1|0]=0;H[b+2|0]=e;H[b|0]=K[d|0];b=b-4|0;d=d-2|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function eNa(a){a=a|0;var b=0;J[a>>2]=2343748;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;a:{if((b|0)!=1){b=J[a+60>>2];J[699344]=0;Mc(b); +b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(a)}function YNa(a){a=a|0;var b=0;J[a>>2]=2343116;a:{if(J[a+44>>2]){b=J[a+24>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a>>2]=2342784;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;uc(a);return}ea(0)|0;Bc();B()}function Qta(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+24>>2]=0;J[a+8>>2]=c;J[a+4>>2]=b;J[a>>2]=0;c=c+31&-32;J[a+16>>2]=c;b=b+31&-32;J[a+12>>2]=b;b=P(b,c);c=b>>10;J[a+20>>2]=c;d=b>>6;c= +vc(c>>>0>268435455?-1:d);if(b)Ac(c,0,d);J[a+28>>2]=4080;J[a>>2]=c;return a|0}function Pwb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){c=J[a+636>>2]+J[a+616>>2]|0;b=J[a+644>>2];while(1){d=K[c|0];H[b+1|0]=d;H[b|0]=d;H[b+2|0]=K[c|0];H[b+3|0]=K[c+1|0];b=b+4|0;c=c+2|0;e=e+1|0;if((e|0)>2])continue;break}}H[a+649|0]=0;return 0}function Mh(a){var b=0,c=0,d=0,e=0;b=J[a+24>>2];if(b){if(J[a+16>>2]>0){b=0;while(1){c=b<<2;d=J[c+J[a+24>>2]>>2];e=J[d+32>>2];if(e)Pf(e);uc(d);J[J[a+24>>2]+c>>2]=0;b=b+ +1|0;if((b|0)>2])continue;break}b=J[a+24>>2]}uc(b)}b=J[a+32>>2];if(b)Sy(b);uc(a)}function KPa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;J[a+8>>2]=13;J[a>>2]=2319448;d=a+8|0;e=J[b>>2];a:{if(!(e>>>0>9|!(1<>2]=5}if(!J[c>>2]){J[a+24>>2]=J[c+8>>2];return a|0}Cc(1,-1,811002,0);J[a+24>>2]=1;return a|0}function FA(a){var b=0,c=0,d=0;b=J[a+16>>2];if((b|0)<=J[a+20>>2]){c=J[a>>2];d=J[c+16>>2];kc[d|0](kc[J[c+4>>2]](J[a+4>>2],b-J[a+8>>2]|0)|0,(J[a+20>>2]-J[a+16>> +2]|0)+1|0)}b=J[a+4>>2];if(b)uc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0}function Ci(a,b,c){var d=0,e=0;if(K[a+11|0]>>>7|0)e=J[a>>2];else e=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;d=fc-16|0;fc=d;J[d+12>>2]=b;b=-1;if(a>>>0>c>>>0){a=a-c|0;if(a)a=og((c<<2)+e|0,J[d+12>>2],a);else a=0;b=a?a-e>>2:-1}fc=d+16|0;return b}function y1a(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(b>>>0>=2){c=J[a+8>>2];break b}J[a+44>>2]=0;J[a+48>>2]=0;c=J[a+8>>2];if(c){H[c+15|0]=0;H[c+13|0]=0}if((b| +0)==1)break a}J[a+52>>2]=0;J[a+56>>2]=0;if(!c)break a;J[c+4>>2]=0;J[c+8>>2]=0;H[c+14|0]=0;H[c+12|0]=0}}function xq(a){var b=0,c=0,d=0,e=0,f=0,g=0;c=O[a>>3];d=O[a+24>>3];e=O[a+16>>3];f=O[a+8>>3];b=1/(c*d-e*f);c=c*b;O[a+24>>3]=c;e=b*-e;O[a+16>>3]=e;f=b*-f;O[a+8>>3]=f;b=d*b;O[a>>3]=b;d=-O[a+32>>3];g=d*b;b=O[a+40>>3];O[a+32>>3]=g-e*b;O[a+40>>3]=d*f-c*b;return a}function xja(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;a:{while(1){if((d|0)!=(e|0)){a=-1;if((b|0)==(c|0))break a;f=J[b>>2];g=J[d>> +2];if((f|0)<(g|0))break a;if((f|0)>(g|0))return 1;else{d=d+4|0;b=b+4|0;continue}}break}a=(b|0)!=(c|0)}return a|0}function pba(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0;a:{if((h|0)>0){j=c+1|0;k=j>>1;l=d+1|0;m=l>>1;i=-1;if(pba(a,b,k,m,(e+j>>1)-k|0,(f+l>>1)-m|0,g,h-1|0))break a}if(!((e|0)<=0|(f|0)<=0)){i=-1;if(kc[J[J[a+4>>2]+4>>2]](b,c,d,e,f,g)|0)break a}i=0}return i}function iBb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=J[a+4>>2];if(e){d=J[a+12>>2];a:{if(!d){d=J[a+8>>2];break a}J[e+20>>2]=d+J[e+20>>2]; +J[a+12>>2]=0;d=d+J[a+8>>2]|0;J[a+8>>2]=d}xc(b,J[e+4>>2]+d|0,c);b=J[a+4>>2];J[b+20>>2]=J[b+20>>2]+c;J[a+8>>2]=J[a+8>>2]+c}}function f6a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-112|0;fc=d;b=J[b+8>>2];if(b){d4(d+8|0,b,J[c>>2]);b=J[d+44>>2];J[a+8>>2]=J[d+40>>2];J[a+12>>2]=b;b=J[d+36>>2];J[a>>2]=J[d+32>>2];J[a+4>>2]=b;N[a+16>>2]=N[d+24>>2];N[a+20>>2]=N[d+28>>2];Cj(d+84|0)}fc=d+112|0}function Xub(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+644>>2];c=J[a+636>>2];J[a+644>>2]=c;J[a+636>>2]=b;d=J[a+588>>2];if((d|0)>0){b= +b+(d<<3)|0;while(1){d=b-8|0;J[c>>2]=J[d>>2];J[c+4>>2]=J[b-4>>2];c=c+8|0;b=d;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Hr(a,b){var c=0,d=0;c=J[a+24>>2];if((c|0)>0){b=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);d=J[a+20>>2];a=0;while(1){if((b|0)==J[P(a,20)+d>>2])return a;a=a+1|0;if((c|0)!=(a|0))continue;break}}return-1}function wc(a){var b=0,c=0,d=0;b=J[a>>2];J[a>>2]=0;a:{if(!b)break a;J[699344]=0;c=J[b+4>>2]-1|0;J[b+4>>2]=c;d=J[699344]; +J[699344]=0;if((d|0)!=1){if(c)break a;J[699344]=0;$(5147,b|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}return a}function w9a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=Q(0),e=Q(0),f=Q(0),g=Q(0);d=N[a+4>>2];c=Q(c-N[a+252>>2]);b=Q(b-N[a+248>>2]);e=N[a+8>>2];f=N[a+256>>2];g=Q(R(Q(Q(Q(Q(d*c)-Q(b*e))*N[a+268>>2])*f)));b=Q(R(Q(Q(N[a+264>>2]*Q(Q(b*d)+Q(c*e)))*f)));return Q(b>2];c=J[a+304>>2];a:{if((b|0)== +(c|0))break a;e=J[d>>2];if(e)f=d,g=Od(e,b,c),J[f>>2]=g;b=J[d+4>>2];if(!b)break a;f=d,g=Od(b,J[a+300>>2],J[a+304>>2]),J[f+4>>2]=g}return 0}function k9a(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=349208;b=J[a+248>>2];if(b){c=b;d=J[a+252>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;uc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+248>>2]}J[a+252>>2]=b;uc(c)}Se(a+92|0);return a|0}function ZNa(a){a=a|0;var b=0;J[a>>2]=2343116;a:{if(J[a+44>>2]){b=J[a+24>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)==1)break a}J[a>>2]=2342784;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a|0}ea(0)|0;Bc();B()}function V$(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[a+20>>2]>0)while(1){if(!J[J[a+12>>2]+(d<<2)>>2])SJ(a,d+1|0,d,J[a+8>>2]);e=J[a+16>>2]+(d<<3)|0;if(!(J[e>>2]!=(b|0)|J[e+4>>2]!=(c|0)))return d+1|0;d=d+1|0;if((d|0)>2])continue;break}return 0}function Jcb(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(f>>>0<=254){b=255-f|0;H[a+2|0]=P(b,K[a+2|0])+255>>> +8;H[a+1|0]=P(K[a+1|0],b)+255>>>8;H[a|0]=P(K[a|0],b)+255>>>8;H[a+3|0]=P(K[a+3|0],b)+255>>>8;return}H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0}function Iv(a){return(a*(a*(a*(a*(a*3.479331075960212E-5+7.915349942898145E-4)+-.04005553450067941)+.20121253213486293)+-.3255658186224009)+.16666666666666666)*a/(a*(a*(a*(a*.07703815055590194+-.6882839716054533)+2.0209457602335057)+-2.403394911734414)+1)}function BCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;if(J[a+12>>2]>0){d=J[a+16>>2];while(1){f= +J[d>>2];J[c+12>>2]=J[d+4>>2];J[c+8>>2]=e;J[c+4>>2]=f;J[c>>2]=e;md(b,210313,c);d=d+8|0;e=e+1|0;if((e|0)>2])continue;break}}fc=c+16|0;return 0}function qya(a){a=a|0;var b=0,c=0;a=J[693882];J[693882]=0;a:{if(!a)break a;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break a;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}}function fEb(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc+-64|0;fc=c;J[c+48>>2]=J[a+16>>2];md(b,206371,c+48|0);d= +J[a+24>>2];J[c+32>>2]=J[a+20>>2];J[c+36>>2]=d;md(b,206977,c+32|0);J[c+16>>2]=J[a+32>>2];md(b,207090,c+16|0);J[c>>2]=K[a+36|0];md(b,207315,c);fc=c- -64|0}function bN(a){a=a|0;a=xf(a,17);J[a+976>>2]=0;J[a+980>>2]=0;J[a>>2]=47992;J[a+984>>2]=0;J[a+988>>2]=0;J[a+992>>2]=0;J[a+996>>2]=0;J[a+1E3>>2]=0;J[a+1004>>2]=0;J[a+1008>>2]=0;J[a+1012>>2]=0;J[a+1016>>2]=1065353216;J[a+1020>>2]=-1;J[a+1024>>2]=0;return a|0}function b4a(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;J[b+12>>2]=0;a:{b:{c=K[a+11|0];d=c<< +24>>24<0;e=d?J[a>>2]:a;if(e){a=d?J[a+4>>2]:c;if(a)break b}a=Fz(0);break a}wq(e,a,b+12|0,b+8|0,0);c=J[b+12>>2];a=Fz(c);if(!c)break a;uc(c)}fc=b+16|0;return!a|0}function aAa(a){a=a|0;var b=0,c=0;a=J[693738];J[693738]=0;a:{if(!a)break a;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break a;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}}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;e=J[a+20>>2];if(K[a+68|0]){a= +J[e+8>>2];f=I[e+2>>1];g=J[e+4>>2]+(f<<3)|0;J[g>>2]=(((b>>31)+b|0)+32768&-65536)>>16;J[g+4>>2]=(((c>>31)+c|0)+32768&-65536)>>16;H[a+f|0]=d?1:2}I[e+2>>1]=L[e+2>>1]+1}function Kza(a){a=a|0;var b=0,c=0;a=J[693745];J[693745]=0;a:{if(!a)break a;J[699344]=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;c=J[699344];J[699344]=0;if((c|0)!=1){if(b)break a;J[699344]=0;$(5147,a|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}}function Jqb(a,b){a=a|0;b=b|0;var c=0;a:{if(J[a+20>>2])break a;b:switch(b-1|0){case 0:a= +J[J[J[a+16>>2]+16>>2]+40>>2];if(a)a=tZ(a,0);else a=0;return a|0;case 1:break b;default:break a}a=J[J[J[a+16>>2]+16>>2]+40>>2];if(a)c=tZ(a,1);else c=0}return c|0}function J9a(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=348856;b=J[a+2916>>2];if(b){c=b;d=J[a+2920>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;uc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+2916>>2]}J[a+2920>>2]=b;uc(c)}Se(a+88|0);uc(a)}function Hf(a,b,c,d){var e=0,f=0,g=0;f=J[699346]+1|0;J[699346]=f;J[a>>2]=f;if(d)while(1){e= +(g<<3)+c|0;if(!J[e>>2]){J[e>>2]=f;J[e+4>>2]=b;J[e+8>>2]=0;gc=d;return c}g=g+1|0;if((g|0)!=(d|0))continue;break}e=a;a=d<<1;b=Hf(e,b,fe(c,d<<4|8),a);gc=a;return b}function EIa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[J[a+4>>2]+12>>2]+32|0;c=J[d>>2];a:{if(!c)break a;a=d;while(1){e=J[c+16>>2]<(b|0);a=e?a:c;c=J[(e?c+4|0:c)>>2];if(c)continue;break}if((a|0)==(d|0)|J[a+16>>2]>(b|0))break a;f=vZ(J[a+20>>2])}return f|0}function sxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){d=J[a+2312>>2];b=J[a+2316>> +2];while(1){c=K[d|0];e=J[a+2296>>2];if(e)c=kc[e|0](c&255)|0;H[b+2|0]=c;H[b+1|0]=c;H[b|0]=c;b=b+3|0;d=d+1|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function fkb(a,b,c){a=a|0;b=b|0;c=c|0;a:{b:{if(c){c=kc[J[a+516>>2]](a,1986553185,b,0)|0;if(c)break a;a=a+296|0;break b}c=kc[J[a+516>>2]](a,1751672161,b,0)|0;if(c)break a;a=a+216|0}c=Te(b,325984,a);if(c)break a;J[a+36>>2]=0;J[a+40>>2]=0;c=0}return c|0}function cn(a){var b=0,c=0,d=0,e=0,f=0;a:{if(K[a+4|0])break a;e=J[a>>2];b=J[e>>2];if(!b)break a; +c=b;d=J[e+4>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;f=J[c>>2];if(f){J[d-8>>2]=f;uc(f)}d=c;if((d|0)!=(b|0))continue;break}c=J[J[a>>2]>>2]}J[e+4>>2]=b;uc(c)}}function UF(a){a=a|0;var b=0,c=0,d=0;b=J[a+8>>2];J[699344]=0;c=pa(6851)|0;d=J[699344];J[699344]=0;a:{b:{if((d|0)==1)break b;if((b|0)!=(c|0)){b=J[a+8>>2];J[699344]=0;fG(b);b=J[699344];J[699344]=0;if((b|0)==1)break b}break a}ea(0)|0;Bc();B()}return a|0}function Oz(a){var b=0,c=0;b=J[a+72>>2];J[a+72>>2]=b-1|b;if(J[a+20>>2]!=J[a+28>>2])kc[J[a+36>>2]](a, +0,0)|0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=J[a>>2];if(b&4){J[a>>2]=b|32;return-1}c=J[a+44>>2]+J[a+48>>2]|0;J[a+8>>2]=c;J[a+4>>2]=c;return b<<27>>31}function Ok(a){a=a|0;var b=0;a:{b:switch(a|0){case 0:a=vc(12);J[a>>2]=2217624;break a;case 2:a=vc(12);J[a>>2]=2217728;break a;case 4:b=vc(12);J[b>>2]=2217832;J[b+4>>2]=15;J[b+8>>2]=0;break;default:break b}return b|0}J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function r2(a,b){var c=0,d=0;if(!(J[a+32>>2]|(!a|!b))){c=J[a+8>>2];if(!((c|0)==J[a+24>>2]|c>>>0> +2147483646))J[a+24>>2]=c;c=J[a+20>>2];d=J[a+4>>2];if(!((c|0)==(d|0)|d>>>0>2147483646)){J[a+20>>2]=d;c=d}a=J[a>>2];J[b+12>>2]=a;J[b+16>>2]=a;J[b+20>>2]=a+c}}function jVa(a){a=a|0;var b=0,c=0,d=0;b=vc(28);J[b+8>>2]=256;J[b>>2]=0;J[699344]=0;c=aa(3551,256,4)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[b+4>>2]=c;xc(c,a,1024);J[b+20>>2]=0;J[b+24>>2]=1;J[b+12>>2]=0;J[b+16>>2]=0;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function jNa(a){a=a|0;var b=0,c=0;b=vc(148);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[699344]=0;a=_(c| +0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[b>>2]=2343648;J[b+4>>2]=a;J[b+144>>2]=0;a=b+8|0;J[b+140>>2]=a;J[b+136>>2]=a;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function goa(a,b,c){a=a|0;b=b|0;c=c|0;c=0;a:{if(J[b>>2]!=64)break a;c=1;a=J[a+12>>2];if(J[a+80>>2]!=1E3|J[a+84>>2]!=J[a+12>>2]|J[a+92>>2]!=J[a+16>>2])break a;a=a+648|0;if(R(Jx(a))>1)break a;a=J[a>>2];if(O[a>>3]<0|O[a+24>>3]<0)break a;c=0}return c|0}function bR(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=2633E3;c=a+8|0;while(1){b=J[c>>2];if(J[c+4>> +2]-b>>2>>>0>d>>>0){b=J[b+(d<<2)>>2];if(b){e=J[b+4>>2]-1|0;J[b+4>>2]=e;if((e|0)==-1)kc[J[J[b>>2]+8>>2]](b)}d=d+1|0;continue}break}jd(a+152|0);gR(c);return a|0}function Sw(a){var b=0,c=0;c=jk(a,776801);if(!c)return 10;b=vc(1040);J[b+1032>>2]=0;J[b+1036>>2]=0;J[b+4>>2]=c;J[b>>2]=2193088;c=y0(b);kc[J[J[b>>2]+4>>2]](b);a:{if((c|0)!=9)break a;c=9;b=Yc(a);if((b|0)<6)break a;c=Ic((a+b|0)-6|0,777431)?9:8}return c}function CFa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2394472;c=J[a+32>>2];d=J[a+8>>2];e=J[a+ +20>>2];b=J[a+12>>2];f=J[a+24>>2];J[699344]=0;ca(c|0,d|0,e-b|0,f-b|0);b=J[699344];J[699344]=0;if((b|0)!=1){uc(J[a+8>>2]);J[a+8>>2]=0;return a|0}ea(0)|0;Bc();B()}function msb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1296581714){Jc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];J[b+52>>2]=J[c+52>>2];J[b+56>>2]=J[c+56>>2];return 0}function Wrb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1700286537){Jc(a,2050,0,0);return 2050}I[b+ +32>>1]=L[c+32>>1];d=J[c+36>>2];J[b+36>>2]=d;if(d){d=kc[J[a+152>>2]](d)|0;J[b+40>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[c+40>>2],J[b+36>>2])}return 0}function Io(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;J[a+48>>2]=g;J[a+44>>2]=f;J[a+40>>2]=e;J[a+36>>2]=d;J[a+32>>2]=c;J[a+28>>2]=b;J[a+20>>2]=0;J[a+24>>2]=-1;J[a+12>>2]=0;J[a+16>>2]=-1;J[a>>2]=2394472;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}function Hj(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=Q(0),f=0;d=1;a:{if(!c)break a;J[c>>2]=0;if(!a|(b|0)< +0|J[a+4>>2]<=(b|0))break a;e=N[J[a+20>>2]+(b<<2)>>2];f=(e>2]=a;d=0}return d|0}function vIa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=c+4|0;kc[J[J[a>>2]+12>>2]](d,a,b);J[699344]=0;_(44,d|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function s_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=fc-32|0;fc=b;if(a){a:{if(!J[a+68>>2])break a;d=J[a+52>> +2];if(!d)break a;c=J[a+36>>2];J[b+24>>2]=J[c+16>>2]-J[c+12>>2];c=J[c+28>>2];J[b+12>>2]=d;J[b+28>>2]=c;px(a,b+12|0)}J[a+264>>2]=-1;mC(a)}fc=b+32|0}function ro(a,b){var c=0,d=0;if(K[a+11|0]>>>7|0)c=J[a>>2];else c=a;d=-1;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;a:{if(!a)break a;a=(a<<2)+c|0;while(1){if((a|0)==(c|0))break a;a=a-4|0;if(J[a>>2]!=(b|0))continue;break}d=a-c>>2}return d}function n_a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+272>>2];if(d){e=J[d+32>>2];a:{if(!e)break a;kc[e|0](a, +b,c);b=J[a+52>>2];if(!b)break a;a=J[a+36>>2];if(!a)break a;a=J[a+16>>2];if(!a|K[a|0]!=47|K[a+1|0]!=62)break a;I[b+58>>1]=1}J[d+16>>2]=1}}function j9a(a){a=a|0;var b=0,c=0,d=0,e=0;J[a>>2]=349208;b=J[a+248>>2];if(b){c=b;d=J[a+252>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;uc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+248>>2]}J[a+252>>2]=b;uc(c)}Se(a+92|0);uc(a)}function a2(a){var b=0,c=0,d=0,e=0;if(a){b=J[a>>2];c=J[b>>2];if((c|0)!=(b|0))while(1){d=J[a+4>>2];e=J[c+4>>2];b=J[c>> +2];J[e>>2]=b;J[b+4>>2]=e;if(d)kc[d|0](c);kc[J[663199]](c);c=b;if((b|0)!=J[a>>2])continue;break}kc[J[663199]](b);kc[J[663199]](a)}}function MBb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=J[a+40>>2];b=J[a+52>>2];c=kc[J[J[b>>2]+20>>2]](b,2)|0;e=kc[J[J[b>>2]+36>>2]](b)|0;if(J[d+16>>2]>0){f=c-2|0;c=0;while(1){kc[J[J[b>>2]+28>>2]](b,e);Uaa(a,c,f);c=c+1|0;if((c|0)>2])continue;break}}}function HP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a>>2]=1032;f=J[b+68>>2];Ac(a+4|0,0,972);H[a+388|0]=255;J[a+ +344>>2]=1119092736;J[a+68>>2]=f;H[a+390|0]=1;J[a+336>>2]=-1;H[a+348|0]=1;nn(a,96);Yq(a,96);H[a+494|0]=1;rF(a,b,c,d,e);return a|0}function Bhb(a,b){a=a|0;b=b|0;var c=0;ms(J[a>>2],b);c=J[a>>2];b=J[c+320>>2];c=wh(J[J[c+96>>2]+4>>2],240774);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;b=kc[b|0](c)|0;if(!b)break a;kc[J[b+4>>2]](J[J[a+40>>2]>>2],J[a+16>>2],J[a+20>>2],0,0)}return 0}function Ay(a,b){var c=0;a:{if(!J[a+276>>2]){J[a+276>>2]=b;if(J[a+420>>2])break a;c=J[b>>2];J[a+420>>2]=c;c=(c|0)==1229472850? +1:(c|0)==1246250066?3:2;J[a+12>>2]=c;J[a+8>>2]=c;J[a+280>>2]=b;return}c=J[a+280>>2];J[b+28>>2]=c;J[c+24>>2]=b}J[a+280>>2]=b}function xma(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[a+124>>2];d=J[a+120>>2];if((c|0)!=(d|0))while(1){c=c-8|0;b=J[c+4>>2];a:{if(!b)break a;e=J[b+4>>2];J[b+4>>2]=e-1;if(e)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}if((c|0)!=(d|0))continue;break}J[a+124>>2]=d}function wta(a,b){a=a|0;b=Q(b);var c=0;c=fc-32|0;fc=c;a:{if(!(b<=Q(1)&b>Q(0))){a=Qc(c+8|0,2393143,2386101,1555,2432496,0);J[699344]= +0;$(5179,a|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(a);ba(c|0);B()}N[a+8>>2]=b;fc=c+32|0;return}B()}function vmb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[b>>2]+1|0;d=J[a+16>>2];c=c>>>0>d>>>0?c:d;d=d+J[a+20>>2]|0;a:{if(c>>>0>>0){e=J[a+24>>2];while(1){a=L[(c<<1)+e>>1];if(a)break a;c=c+1|0;if((d|0)!=(c|0))continue;break}}a=0;c=0}J[b>>2]=c;return a|0}function mta(a,b){a=a|0;b=Q(b);var c=0;c=fc-32|0;fc=c;a:{if(!(b<=Q(1)&b>Q(0))){a=Qc(c+8|0,2399638,2386101,1822,2432719,0);J[699344]=0;$(5179, +a|0);c=J[699344];J[699344]=0;if((c|0)!=1)break a;c=Z()|0;Kc(a);ba(c|0);B()}N[a+8>>2]=b;fc=c+32|0;return}B()}function lBa(a){a=a|0;var b=0;vd(a+8|0,0);vd(a+36|0,0);vd(a+40|0,0);vd(a+44|0,0);vd(a+12|0,0);vd(a+32|0,0);vd(a+20|0,0);vd(a+24|0,0);vd(a+28|0,0);vd(a+48|0,0);tA(a+52|0,2390543);tA(a+60|0,2390543);a=a+148|0;b=J[a>>2]&44;if((b|0)!=J[a>>2])J[a>>2]=b}function jDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;if(J[a+20>>2])while(1){e=J[a+24>>2]+P(d,12)|0;f=J[e>>2];g=J[e+4>>2];J[c+8>>2]= +J[e+8>>2];J[c>>2]=f;J[c+4>>2]=g;md(b,208250,c);d=d+1|0;if(d>>>0>2])continue;break}fc=c+16|0}function esb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1145656131){Jc(a,2050,0,0);return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){e=b;d=d<<1;b=kc[J[a+152>>2]](d)|0;J[e+36>>2]=b;if(b){xc(b,J[c+36>>2],d);return 0}Jc(a,1,0,0);a=1}else a=0;return a|0}function UR(a,b,c){var d=0,e=0;e=fc-16|0;fc=e;d=fc-32|0;fc=d;jG(d+24|0,a,b);iG(d+16|0,J[d+24>>2],J[d+28>>2],c);J[d+12>>2]=(J[d+16>>2]-a|0)+a;J[d+8>>2]= +(J[d+20>>2]-c|0)+c;J[e+8>>2]=J[d+12>>2];J[e+12>>2]=J[d+8>>2];fc=d+32|0;fc=e+16|0;return J[e+12>>2]}function Qrb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1245987137){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];d=J[c+36>>2];J[b+36>>2]=d;if(d){d=kc[J[a+152>>2]](d)|0;J[b+40>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[c+40>>2],J[b+36>>2])}return 0}function QX(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=J[a+4>>2];a:{if(!d)break a;e=a+4|0;a=e;while(1){f=Hn(d+16|0,b);a=f?a:d;d=J[(f?d+4|0:d)>>2];if(d)continue; +break}if((a|0)==(e|0))break a;if(Hn(b,a+16|0))break a;dg(c,a+28|0);g=1}return g|0}function Pya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[699344]=0;b=_(5244,d|0)|0;c=J[699344];J[699344]=0;a:{b:{if((c|0)!=1){if(!b)break b;J[699344]=0;ia(5447,a|0,d|0,0,-1);b=J[699344];J[699344]=0;if((b|0)!=1)break a}oa(ea(0)|0)|0;ta()}J[a>>2]=0;vd(a,0)}}function Prb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1245987156){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];d=J[c+36>>2];J[b+36>>2]=d;if(d){d=kc[J[a+152>>2]](d)|0; +J[b+40>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[c+40>>2],J[b+36>>2])}return 0}function PUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=Ac(a,0,256);d=J[b>>2]+c|0;e=K[d+1|0];d=K[d|0];f=e+d|0;b=J[b+4>>2]+c|0;c=K[b+1|0];b=K[b|0];g=c+b|0;J[a+32>>2]=f-g<<4;d=d-e|0;b=b-c|0;J[a+36>>2]=d-b<<4;J[a+4>>2]=b+d<<4;J[a>>2]=(f+g<<4)+-8192}function Mta(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]=0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]= +0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function MF(a,b,c){var d=0,e=0;if(K[a+11|0]>>>7|0)e=J[a>>2];else e=a;if(K[a+11|0]>>>7|0)a=J[a+4>>2];else a=K[a+11|0]&127;d=fc-16|0;fc=d;H[d+15|0]=b;b=-1;if(a>>>0>c>>>0){a=a-c|0;if(a)a=Cg(c+e|0,H[d+15|0],a);else a=0;b=a?a-e|0:-1}fc=d+16|0;return b}function Jk(a,b,c){var d=0,e=0,f=0,g=0;J[a+112>>2]=b;J[a+116>>2]=c;e=J[a+4>>2];d=J[a+44>>2]-e|0;J[a+120>>2]=d;J[a+124>>2]=d>>31;d=J[a+8>>2];a:{if(!(b|c))break a;f=d-e|0;g=f>>31;if((c| +0)>=(g|0)&b>>>0>=f>>>0|(c|0)>(g|0))break a;d=b+e|0}J[a+104>>2]=d}function Irb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1146244944){Jc(a,2050,0,0);return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){e=b;d=d<<2;b=kc[J[a+152>>2]](d)|0;J[e+36>>2]=b;if(b){xc(b,J[c+36>>2],d);return 0}Jc(a,1,0,0);a=1}else a=0;return a|0}function Erb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(J[c>>2]!=1330791506){Jc(a,2050,0,0);return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){e=b;d=d<<3;b=kc[J[a+152>>2]](d)|0;J[e+36>>2]=b;if(b){xc(b, +J[c+36>>2],d);return 0}Jc(a,1,0,0);a=1}else a=0;return a|0}function Enb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a>>2];b=J[c+408>>2];J[a+16>>2]=b;d=J[c+416>>2];J[a+20>>2]=d;a=1;c=0;a:{if(b>>>0<=1)break a;while(1){e=(a<<4)+d|0;if(M[e-16>>2]>2]){a=a+1|0;if((b|0)!=(a|0))continue;break a}break}c=8}return c|0}function Csb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1229209940){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];d=J[c+36>>2];J[b+36>>2]=d;if(d){d=kc[J[a+152>>2]](d)|0;J[b+40>>2]=d;if(!d){Jc(a, +1,0,0);return 1}xc(d,J[c+40>>2],J[b+36>>2])}return 0}function $rb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1129072976){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];H[b+36|0]=K[c+36|0];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];J[b+52>>2]=J[c+52>>2];return 0}function k4(a){a=a|0;var b=0,c=0,d=0;c=J[a+8>>2];d=kd(1,20);J[d+8>>2]=c;J[d+12>>2]=-1414746709;if(c>>>0<=4294963200){b=kd(1,c+4096|0);J[d+4>>2]=b;b=b?d:0}Gu(b,J[a>>2]);Gu(b+16|0,J[a+16>>2]);c=J[a+8>> +2];if(c)xc(J[b+4>>2],J[a+4>>2],c+1|0);return b|0}function Wd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;a:{b:{if(!b){b=0;if(!a)break b;uc(a);break b}if((b|0)<0|(c|0)<=0|2147483647/(c>>>0)>>>0<=b>>>0)break a;b=YJ(a,P(b,c))}fc=d+16|0;return b|0}J[d>>2]=778829;md(J[655074],780797,d);ya(1);B()}function QU(a,b){var c=0;a:{if((a|0)!=(b|0)){c=J[b+4>>2];J[699344]=0;ia(6490,a|0,c|0,b|0,0);c=J[699344];J[699344]=0;if((c|0)==1)break a;O[a+16>>3]=O[b+16>>3];O[a+24>>3]=O[b+24>>3];O[a+32>>3]=O[b+32>>3];O[a+ +40>>3]=O[b+40>>3]}return}ea(0)|0;Bc();B()}function Ola(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=Cn(a);if(!((c|0)%(e|0)|0)){if(c)break a;return 1}fa(80020,70372,615,93981);B()}while(1){f=kc[J[a+544>>2]](a,b,e,d)|0;if((f|0)==1){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)==1|0}function OX(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=a+28|0;a=J[e>>2];a:{if(!a)break a;d=e;while(1){f=Hn(a+16|0,b);d=f?d:a;a=J[(f?a+4|0:a)>>2];if(a)continue;break}if((d|0)==(e|0))break a;if(Hn(b,d+16|0))break a; +dg(c,d+28|0);g=1}return g|0}function Ela(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=wj(a);if(!((c|0)%(e|0)|0)){if(c)break a;return 1}fa(80020,70372,600,93963);B()}while(1){f=kc[J[a+544>>2]](a,b,e,d)|0;if((f|0)==1){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)==1|0}function zg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=J[a+8>>2];f=J[a+4>>2];if(d>>>0>>0){e=J[a+20>>2];a:{if(e){b=kc[e|0](a,d,b,c)|0;break a}e=b;b=f-d|0;b=b>>>0>>0?b:c;xc(e,J[a>>2]+d|0,b)}J[a+8>>2]=b+d;a=b>>>0>>0?85:0}else a= +85;return a|0}function z3(a){a=a|0;var b=0,c=0,d=0;b=fc-112|0;fc=b;J[b+12>>2]=0;J[b+8>>2]=0;d=K[a+11|0];c=d<<24>>24<0;_r(c?J[a>>2]:a,c?J[a+4>>2]:d,b+12|0,b+8|0,0);a=ol(J[b+12>>2],b+16|0);d=J[b+20>>2];c=J[b+12>>2];if(c)uc(c);fc=b+112|0;return!a&(d&61440)==16384}function tp(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+4>>2];c=J[a+44>>2];a=!b|!c;a:{if(a)break a;e=a?0:b+40|0;a=0;while(1){d=0;b=(a<<2)+e|0;if(K[b|0]!=(a|0)|K[b+1|0]!=(a|0)|K[b+2|0]!=(a|0))break a;d=1;a=a+1|0;if((c|0)!=(a|0))continue;break}}return d| +0}function poa(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;f=fc-16|0;fc=f;a=J[a+12>>2];J[f+12>>2]=J[b>>2];J[f+8>>2]=J[c>>2];b=fc-16|0;fc=b;Ov(a);J[b+12>>2]=1;rM(a+2776|0,f+12|0,f+8|0,b+12|0,J[a+2772>>2],d,e);fc=b+16|0;fc=f+16|0;return 0}function fw(a){var b=0,c=0;b=J[a+4>>2];J[a+4>>2]=0;a:{if(!b)break a;J[699344]=0;a=J[b+4>>2]-1|0;J[b+4>>2]=a;c=J[699344];J[699344]=0;if((c|0)!=1){if(a)break a;J[699344]=0;$(5147,b|0);a=J[699344];J[699344]=0;if((a|0)!=1)break a}ea(0)|0;Bc();B()}}function Zeb(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;a=J[a+4>>2];d=J[a>>2];if(d){e=J[a+12>>2];a=d-1|0;a=J[e+(a>>>6&67108860)>>2]+(a<<4&4080)|0;O[b>>3]=O[a>>3];O[c>>3]=O[a+8>>3]}d=0}return d|0}function Wc(a,b){var c=0,d=0,e=0;c=a>>31;d=(c^a)-c|0;c=b>>31;c=(c^b)-c|0;a:{if(d+(c>>>8|0)>>>0<=8190){c=P(c,d)+32768>>>16|0;break a}e=d&65535;c=P(e,c>>>16|0)+P(c,d>>>16|0)+(P(c&65535,e)+32768>>>16)|0}a=a>>31|1;return(((b|0)<0?0-a|0:a)|0)<0?0-c|0:c}function WCa(a,b,c,d){a= +a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=YW(a,b)+32|0;b=b+32|0;if(d)continue;break a}while(1){a=YW(a,b);wc(b+24|0);wc(b+16|0);d=c;c=d-1|0;b=b+32|0;a=a+32|0;if(d)continue;break}}}function Qua(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-32|0;fc=d;a:{if(!c){a=Qc(d+8|0,2394285,2385973,1912,2426410,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}J[a>>2]=0;vd(a,b);fc=d+32|0;return}B()}function P_(a,b,c){a=a|0;b=b|0;c=c| +0;var d=0,e=0,f=0;d=fc-768|0;fc=d;e=236;a:{b:switch(a-1|0){case 0:e=768;break;case 1:break b;default:break a}if(b){J[d+668>>2]=c;f=kc[b|0](d,e)|0;if(!f)break a;Ac(f,0,e);break a}f=kd(1,e)}fc=d+768|0;return f|0}function Nrb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1145586770){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];H[b+34|0]=K[c+34|0];H[b+35|0]=K[c+35|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];J[b+48>>2]=J[c+48>>2];return 0}function Jtb(a,b){a=a|0;b=b|0;var c=0,d=0,e= +0,f=0,g=0;f=J[a+428>>2]+8|0;g=J[b+32>>2];if(g){d=f;while(1){c=L[((e<<1)+b|0)+36>>1];c=c<<8|c>>>8;H[d|0]=c;H[d+1|0]=c>>>8;d=d+2|0;e=e+1|0;if(e>>>0>2])continue;break}}return Ce(a,J[b>>2],g<<1,f)|0}function Gf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;a:{if(c>>>0<=1){H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11|0]&127;Ik(a,b,c);J[d+12>>2]=0;J[(c<<2)+a>>2]=J[d+12>>2];break a}e=K[a+11|0]&127;Ks(a,1,c-1|0,e,0,e,c,b)}fc=d+16|0;return a|0}function z_(a,b,c){var d=0,e=0;a:{if(b-1>>>0>7)break a; +d=((b<<5)+a|0)-32|0;if(!d)break a;b:{if(!c)break b;b=0;a=K[c|0];if(!a)break b;while(1){H[b+d|0]=a;e=b+1|0;if(b>>>0>29)break b;a=K[c+1|0];c=c+1|0;b=e;if(a&255)continue;break}}H[d+e|0]=0}}function wva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-32|0;fc=d;a:{if(!c){a=Qc(d+8|0,2387195,2385973,572,2426016,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}J[a>>2]=0;vd(a,b);fc=d+32|0;return}B()}function vn(a,b){var c=0,d=0;c=fc-16|0;fc=c;if(K[a+11|0]>>>7|0)uv(J[a>> +2],J[a+8>>2]&2147483647);J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;H[b+11|0]=K[b+11|0]&128;H[b+11|0]=K[b+11|0]&127;J[c+12>>2]=0;J[b>>2]=J[c+12>>2];fc=c+16|0}function rnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+12>>2]=0;a:{if(J[c+80>>2])break a;b=b-a|0;f=he(J[c>>2],b+1|0,d+12|0);J[c+80>>2]=f;e=J[d+12>>2];if(e)break a;xc(f,a,b);H[b+J[c+80>>2]|0]=0;e=J[d+12>>2]}fc=d+16|0;return e|0}function nT(a,b){var c=0,d=0,e=0;A(+a);d=v(1)|0;e=v(0)|0;c=d>>>20&2047;if((c|0)!= +2047){if(!c){if(a==0)c=0;else{a=nT(a*1.8446744073709552E19,b);c=J[b>>2]+-64|0}J[b>>2]=c;return a}J[b>>2]=c-1022;x(0,e|0);x(1,d&-2146435073|1071644672);a=+z()}return a}function eX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=dX(a,b)+40|0;b=b+40|0;if(d)continue;break a}while(1){a=dX(a,b);id(b+24|0);wc(b+16|0);d=c;c=d-1|0;b=b+40|0;a=a+40|0;if(d)continue;break}}}function cna(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a+20|0;a=J[c>>2];a:{if(!a)break a;d=J[b>> +2]-6|0;b=c;while(1){e=J[a+16>>2]<(d|0);b=e?b:a;a=J[(e?a+4|0:a)>>2];if(a)continue;break}if((b|0)==(c|0))break a;f=J[b+16>>2]<=(d|0)?b+20|0:0}return f|0}function Vv(a,b){var c=0;c=65536-b|0;b=c+J[a+32>>2]|0;J[a+32>>2]=b;c=c+J[a+20>>2]|0;J[a+20>>2]=c;if(c>>>0>=32768)while(1){Yv(a,1-(b>>>15|0)|0);b=J[a+32>>2]<<1&65534;J[a+32>>2]=b;c=J[a+20>>2]<<1&65534;J[a+20>>2]=c;if(c>>>0>32767)continue;break}}function OJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:{if(b){if(!a)break b;if(!d)break a;if(c)a=1;else{Nc(d,1, +2368343,0);a=0}return a|0}fa(2365733,2358254,3690,2368326);B()}fa(2358373,2358254,3691,2368326);B()}fa(2358486,2358254,3692,2368326);B()}function Ho(a){a=a|0;var b=0,c=0;b=vc(36);J[b+8>>2]=1;J[b+4>>2]=0;J[b+20>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b>>2]=2396924;J[699344]=0;ha(5213,b+28|0,b+24|0,0,4)|0;c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;uc(nd(b));ba(a|0);B()}J[a>>2]=0;vd(a,b)}function zia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;J[e+12>>2]=b;J[e+8>>2]=d;b=rm(e+4|0,e+12|0);J[699344]= +0;a=ga(6876,a|0,c|0,J[e+8>>2])|0;c=J[699344];J[699344]=0;if((c|0)!=1){$h(b);fc=e+16|0;return a|0}a=Z()|0;$h(b);ba(a|0);B()}function xQ(a){var b=0,c=0,d=0,e=0;d=J[a>>2];b=J[d>>2]-48|0;if(b>>>0>9)return 0;while(1){e=-1;if(c>>>0<=214748364){c=P(c,10);e=(c^2147483647)>>>0>>0?-1:c+b|0}b=J[d+4>>2];c=e;e=d+4|0;d=e;b=b-48|0;if(b>>>0<10)continue;break}J[a>>2]=d;return c}function vw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;J[a+8>>2]=13;J[a>>2]=2342784;f=J[c+4>>2];J[a+8>>2]=J[c>>2];J[a+12>>2]=f;f= +J[c+12>>2];J[a+16>>2]=J[c+8>>2];J[a+20>>2]=f;J[a+32>>2]=e;J[a+28>>2]=d;J[a+24>>2]=b;J[a>>2]=2343232;return a|0}function ssb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1649100612){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];H[b+34|0]=K[c+34|0];I[b+36>>1]=L[c+36>>1];I[b+38>>1]=L[c+38>>1];I[b+40>>1]=L[c+40>>1];I[b+42>>1]=L[c+42>>1];return 0}function pt(a,b,c){var d=0,e=0;d=fc-16|0;fc=d;b=(b>>>0)/M[a+100>>2]|0;a:{if(L[a+138>>1]!=2)break a;e=L[a+98>>1];if(e>>>0<=c>>>0){b=J[a>>2];a=J[a+ +628>>2];J[d+4>>2]=e;J[d>>2]=c;Uc(a,b,69110,d);b=0;break a}b=b+P(J[a+176>>2],c)|0}fc=d+16|0;return b}function nR(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+8>>2]=b;J[d+12>>2]=a;J[d+4>>2]=c;while(1){a=J[d+12>>2];b=(a|0)!=J[d+8>>2];if(!(!b|J[a>>2]!=J[J[d+4>>2]>>2])){J[d+12>>2]=a+4;J[d+4>>2]=J[d+4>>2]+4;continue}break}fc=d+16|0;return!b|0}function dEb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[a+12>>2]=0;d=Dc(c);J[a+12>>2]=d;a:{b:{if(!d)break b;d=Ai(b,d,c);b=J[a+12>>2];if((c|0)==(d|0)){H[(b+c|0)-1|0]= +0;b=J[a+12>>2];a=0;if((Yc(b)+1|0)==(c|0))break a}if(!b)break b;uc(b)}a=-1}return a|0}function Twa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+124>>2]=J[a+124>>2]+b;J[a+132>>2]=J[a+132>>2]+b;J[a+128>>2]=J[a+128>>2]+c;J[a+136>>2]=J[a+136>>2]+c;J[a+108>>2]=J[a+108>>2]+b;J[a+112>>2]=J[a+112>>2]+c;J[a+116>>2]=J[a+116>>2]+b;J[a+120>>2]=J[a+120>>2]+c}function QV(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=J[b>>2];b:{if(d){if(J[b+4>>2]!=(a|0))break a;b=d+4|0;break b}b=a+12|0}b=J[b>>2];J[c>>2]=d;J[c+4>>2]=b;d=a+8|0;J[(b?b:d)>> +2]=c;b=J[c>>2];J[(b?b:d)+4>>2]=c;J[a+4>>2]=J[a+4>>2]+1;return}xj(b,a);B()}function QLa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a=J[a+116>>2];c=J[a+160>>2];J[a+160>>2]=0;d=J[a+200>>2];if(d){e=O[a+168>>3];f=O[a+176>>3];b_(a,b,e,f,O[a+184>>3]-e,O[a+192>>3]-f,0,d,c,J[a+164>>2])}Mc(c);J[a+200>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0}function O2(a,b){var c=0,d=0;J[a>>2]=0;J[a+32>>2]=J[b>>2];d=J[b+24>>2];J[a+4>>2]=J[b+4>>2];c=J[b+8>>2];J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=c;c=J[b+20>>2];J[a+24>>2]=d;J[a+20>>2]=c;J[a+ +28>>2]=J[b+28>>2];J[a+40>>2]=J[b+16>>2];J[a+36>>2]=J[b+12>>2]}function Hg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;H[a|0]=0;H[a+1|0]=0;H[a+2|0]=0;H[a+3|0]=0;d=J[b+4>>2];a:{if(!d)break a;b=J[b+44>>2];if(!b|b>>>0<=c>>>0)break a;b=(c<<2)+d|0;H[a|0]=K[b+40|0];H[a+1|0]=K[b+41|0];H[a+2|0]=K[b+42|0];H[a+3|0]=K[b+43|0]}}function Av(a){var b=0,c=0;c=fc-16|0;fc=c;A(+a);b=v(1)|0;v(0)|0;b=b&2147483647;a:{if(b>>>0<=1072243195){if(b>>>0<1044381696)break a;a=RS(a,0,0);break a}if(b>>>0>=2146435072){a=a-a;break a}b=LG(a, +c);a=RS(O[c>>3],O[c+8>>3],b&1)}fc=c+16|0;return a}function uSa(a){a=a|0;var b=0;b=vc(72);J[b>>2]=2217676;J[b+4>>2]=15;J[b+8>>2]=0;O[b+16>>3]=O[a+16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];O[b+48>>3]=O[a+48>>3];O[b+56>>3]=O[a+56>>3];O[b+64>>3]=O[a+64>>3];return b|0}function pLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=vc(8);J[699344]=0;d=aa(3349,e|0,803377)|0;f=J[699344];J[699344]=0;if((f|0)!=1){Qh(d,J[a+20>>2]);od(d,790277);a=kc[b|0](c,J[d+4>>2],J[d>>2])|0;uc(Zc(d)); +return a|0}a=Z()|0;uc(e);ba(a|0);B()}function o3a(a,b){a=a|0;b=b|0;var c=0,d=0;a=J[a>>2];b=J[b>>2];if((a|0)==(b|0))return 1;if(!(!a|!b)){c=K[a|0];a:{if(!c)break a;while(1){if(K[b|0]!=(c|0)){d=c;break a}b=b+1|0;c=K[a+1|0];a=a+1|0;if(c)continue;break}}c=K[b|0]==(d&255)}return c|0}function mLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=vc(8);J[699344]=0;d=aa(3349,e|0,797427)|0;f=J[699344];J[699344]=0;if((f|0)!=1){Qh(d,J[a+20>>2]);od(d,798976);a=kc[b|0](c,J[d+4>>2],J[d>>2])|0;uc(Zc(d));return a|0}a=Z()| +0;uc(e);ba(a|0);B()}function aT(a,b){var c=0,d=0,e=0,f=0;c=b>>>20&2047;e=0;a:{if(c>>>0<1023)break a;e=2;if(c>>>0>1075)break a;c=1075-c|0;d=c&31;if((c&63)>>>0>=32){c=1<>>32-d;d=f}f=d-1|0;e=0;if(a&f|b&c-!d)break a;e=a&d|b&c?1:2}return e}function _q(a){var b=0,c=0,d=0,e=0,f=0;c=Dc(160);if(c){d=Ac(c,0,160);J[d+8>>2]=a;e=2646832;a:{if(!J[661549])break a;b=2646192;while(1){if(J[b>>2]==(a|0)){e=b;break a}f=b;b=b+32|0;if(J[f+36>>2])continue;break}}J[d+4>>2]=e;J[d>>2]=e+12}return c} +function Lob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;e=J[J[a+128>>2]+52>>2];a:{if(e){a=J[b>>2];J[d+12>>2]=c;J[d+8>>2]=a;kc[J[J[e>>2]+4>>2]](J[e+4>>2],d+8|0);break a}a=J[a+712>>2];if(J[a+1236>>2])break a;$f(J[a+1204>>2],b)}fc=d+16|0}function Ej(a){var b=0,c=0;c=J[a+12>>2];a:{if((c|0)==J[a+8>>2]){a=J[a+4>>2];b=0;if(!a|J[a>>2])break a;J[a>>2]=161;return 0}if(J[c-4>>2]!=2){a=J[a+4>>2];b=0;if(!a|J[a>>2])break a;J[a>>2]=160;return 0}b=a;a=c-8|0;J[b+12>>2]=a;b=J[a>>2]}return b}function ySa(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if((kc[J[J[a>>2]+28>>2]](a)|0)>0){d=0;while(1){e=d<<3;f=e+b|0;J[f>>2]=0;J[f+4>>2]=0;e=c+e|0;J[e>>2]=0;J[e+4>>2]=1072693248;d=d+1|0;if((kc[J[J[a>>2]+28>>2]](a)|0)>(d|0))continue;break}}}function IF(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c+12>>2]=b;a:{if(K[a+11|0]>>>7|0){b=J[a>>2];J[a+4>>2]=1;break a}b=a;H[a+11|0]=K[a+11|0]&128|1;H[a+11|0]=K[a+11|0]&127}J[b>>2]=J[c+12>>2];J[c+8>>2]=0;J[b+4>>2]=J[c+8>>2];fc=c+16|0;return a|0}function Fi(a,b){var c=0,d=0; +c=fc-16|0;fc=c;if(K[a+11|0]>>>7|0)pz(J[a>>2],J[a+8>>2]&2147483647);J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;H[b+11|0]=K[b+11|0]&128;H[b+11|0]=K[b+11|0]&127;H[c+15|0]=0;H[b|0]=K[c+15|0];fc=c+16|0}function Ada(a){a=a|0;var b=0;b=J[a+584>>2];if(b){J[a+672>>2]=J[b+892>>2];J[a+668>>2]=J[b+896>>2];J[a+676>>2]=J[b+900>>2];if(J[b+488>>2])QP(b);b=J[b+912>>2];if(b)uc(b);uc(J[a+584>>2]);J[a+584>>2]=0;sr(a);return}fa(87902,70506,1575,97769);B()}function xnb(a){a=a|0;var b=0,c=0;c=J[J[a+188>> +2]>>2];b=J[a+168>>2];if(b)kc[J[c+8>>2]](c,b);J[a+172>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;b=J[a+184>>2];if(b)kc[J[c+8>>2]](c,b);H[a+192|0]=0;J[a+184>>2]=0;J[a+188>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0}function l5(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=349364;J[a+4>>2]=1;J[a+32>>2]=0;J[a+36>>2]=0;J[a+20>>2]=-16777216;J[a+24>>2]=-16777216;J[a+16>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;return a|0}function fGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{c=J[a+20>>2];if((c| +0)!=J[a+24>>2]){J[699344]=0;d=Im(c,b);e=J[699344];J[699344]=0;if((e|0)==1)break a;J[a+20>>2]=d+12;jI(a,b);return}JX(a+16|0,b);jI(a,b);return}b=Z()|0;J[a+20>>2]=c;ba(b|0);B()}function U3(a){var b=0,c=0,d=0,e=0;a:{if(K[a+4|0])break a;e=J[a>>2];b=J[e>>2];if(!b)break a;c=b;d=J[e+4>>2];if((b|0)!=(d|0)){while(1){c=d-12|0;if(H[d-1|0]<0)uc(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[J[a>>2]>>2]}J[e+4>>2]=b;uc(c)}}function Stb(a,b){a=a|0;b=b|0;var c=0,d=0;if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;d=J[a+ +428>>2];c=J[b+36>>2];c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);H[d+8|0]=c;H[d+9|0]=c>>>8;H[d+10|0]=c>>>16;H[d+11|0]=c>>>24;return Ce(a,J[b>>2],4,d+8|0)|0}function Oo(a){var b=0,c=0,d=0,e=0;b=J[a+52>>2];a:{b:{if(J[a>>2]==2){if(b)break b;break a}c=J[b+8>>2];if((c|0)<=0)break b;while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){uc(Oo(e));c=J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}}uc(ld(b))}return a}function Mob(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=fc-16|0;fc=e;f=J[J[a+128>>2]+52>>2];a:{if(f){a= +kc[J[J[f>>2]>>2]](J[f+4>>2],b,e+8|0)|0;J[c>>2]=J[e+8>>2];J[d>>2]=J[e+12>>2];break a}a=hE(J[a+712>>2]+1204|0,b,c,d)}fc=e+16|0;return a|0}function KQ(){var a=0,b=0,c=0;b=fc-16|0;fc=b;J[b+12>>2]=1073741823;J[699344]=0;J[b+8>>2]=2147483647;a=fc-16|0;fc=a;fc=a+16|0;a=b+8|0;c=b+12|0;a=M[a>>2]>2]?a:c;c=J[699344];J[699344]=0;if((c|0)!=1){fc=b+16|0;return J[a>>2]}ea(0)|0;Bc();B()}function KF(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;a:{if(c>>>0<=10){H[a+11|0]=K[a+11|0]&128|c;H[a+11|0]=K[a+11| +0]&127;hk(a,b,c);H[d+15|0]=0;H[a+c|0]=K[d+15|0];break a}e=K[a+11|0]&127;Ls(a,10,c-10|0,e,0,e,c,b)}fc=d+16|0;return a|0}function zhb(a,b){a=a|0;b=b|0;var c=0;c=J[a+192>>2];J[b+24>>2]=J[a+188>>2];J[b+28>>2]=c;c=J[a+184>>2];J[b+16>>2]=J[a+180>>2];J[b+20>>2]=c;c=J[a+176>>2];J[b+8>>2]=J[a+172>>2];J[b+12>>2]=c;c=J[a+168>>2];J[b>>2]=J[a+164>>2];J[b+4>>2]=c;return 0}function xHa(a){a=a|0;var b=0,c=0,d=0;b=J[a+44>>2];c=J[a+24>>2];if(b>>>0>>0){J[a+44>>2]=c;b=c}d=-1;a:{if(!(K[a+48|0]&8))break a;c=J[a+16>> +2];if(c>>>0>>0)J[a+16>>2]=b;else b=c;a=J[a+12>>2];if(a>>>0>=b>>>0)break a;d=J[a>>2]}return d|0}function tBb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;kc[J[J[a>>2]+12>>2]](a);a:{d=QD(24);if(d){if(c?b:0)break a;uc(d)}J[a+4>>2]=0;return 0}J[d+20>>2]=b;J[d+12>>2]=b;J[d+8>>2]=c;J[d+4>>2]=b;J[d>>2]=1;J[d+16>>2]=b+c;J[a+16>>2]=c;J[a+4>>2]=d;return 1}function sR(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+8>>2]=b;J[d+12>>2]=a;J[d+4>>2]=c;while(1){a=J[d+12>>2];b=(a|0)!=J[d+8>>2];if(!(!b|K[a|0]!=K[J[d+4>> +2]])){J[d+12>>2]=a+1;J[d+4>>2]=J[d+4>>2]+1;continue}break}fc=d+16|0;return!b|0}function oma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=Cn(a);if(!((c|0)%(e|0)|0)){if(c)break a;return 1}fa(80020,70372,363,93903);B()}while(1){f=kc[J[a+540>>2]](a,b,e,d)|0;if(f){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)!=0|0}function o0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=-1;a:{b:{c:{d:switch(d|0){case 1:a=b+12|0;break c;case 0:break b;case 2:break d;default:break a}a=b+8|0}d=J[a>>2]}a=c+d|0;if(a>>>0>M[b+ +4>>2]){J[b+16>>2]=1;return-1}J[b+12>>2]=a;a=0}return a|0}function lma(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{e=wj(a);if(!((c|0)%(e|0)|0)){if(c)break a;return 1}fa(80020,70372,347,93885);B()}while(1){f=kc[J[a+540>>2]](a,b,e,d)|0;if(f){b=b+e|0;c=c-e|0;if(c)continue}break}return(f|0)!=0|0}function bM(a){var b=0;b=J[a+276>>2];if(b)bM(b);J[a+8>>2]=0;J[a+12>>2]=1072693248;J[a+40>>2]=0;J[a+44>>2]=0;J[a+32>>2]=0;J[a+36>>2]=1072693248;J[a+16>>2]=0;J[a+20>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;O[a+24>>3]= +J[a+136>>2]?.3090169943749:0;g4(a)}function XT(){var a=0;J[698539]=0;J[698540]=0;J[698542]=0;J[698543]=0;J[698538]=2794156;J[698541]=2794168;J[699344]=0;$(6659,2794152);a=J[699344];J[699344]=0;if((a|0)!=1)return;a=Z()|0;ft(2794164,J[698542]);ft(2794152,J[698539]);ba(a|0);B()}function PCa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;a=a+12|0;DA(d+8|0,a,c);a:{c=J[d+8>>2];b:{if(c){J[d>>2]=c;e=J[d+12>>2];J[d+4>>2]=e;if((a|0)!=(e|0))break a;Rj(b,c+8|0);break b}vd(b,0)}fc=d+16|0;return J[b>>2]!= +0|0}xj(d,a);B()}function Gv(a,b){var c=0,d=0,e=0,f=0;c=a*a;d=c*.5;e=1-d;f=1-e-d;d=c*c;return e+(f+(c*(c*(c*(c*2.480158728947673E-5+-.001388888888887411)+.0416666666666666)+d*d*(c*(c*-1.1359647557788195E-11+2.087572321298175E-9)+-2.7557314351390663E-7))-a*b))}function Esb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1229472850){Jc(a,2050,0,0);return 2050}J[b+32>>2]=J[c+32>>2];J[b+36>>2]=J[c+36>>2];H[b+40|0]=K[c+40|0];H[b+41|0]=K[c+41|0];H[b+42|0]=K[c+42|0];H[b+43|0]=K[c+43|0];H[b+44|0]=K[c+44|0];return 0} +function BX(a,b,c){var d=0,e=0,f=0;d=1;e=1<>2]+J[a+20>>2]|0;a:{if(c>>>0<=M[a+28>>2]){J[a+20>>2]=c;b=H[b|0]&1;break a}b=qh(a,b,c)}d=b|d<<1;if((e|0)>(d|0))continue;break}}return d-e|0}function zNa(a){a=a|0;var b=0,c=0;b=vc(56);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[699344]=0;a=_(c|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[b>>2]=2343448;J[b+4>>2]=a;J[b+52>>2]=0;J[b+44>>2]=0;J[b+48>>2]=0;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function kja(a,b){a= +a|0;b=b|0;var c=0;b=J[a+584>>2];if(b){J[b+72>>2]=0;J[b+64>>2]=0;J[b+68>>2]=0;J[b+60>>2]=L[a+94>>1]!=2?91664:91920;a=J[b+84>>2];if(a){c=J[b+12>>2];J[a+4>>2]=0;J[a>>2]=c}J[b+108>>2]=0;return 1}fa(89229,70539,156,95762);B()}function hIa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=c+4|0;xr(d,a,b);a=J[a+4>>2];J[699344]=0;Q2(a,d);a=J[699344];J[699344]=0;if((a|0)!=1){if(H[c+15|0]<0)uc(J[c+4>>2]);fc=c+16|0;return}a=Z()|0;if(H[c+15|0]<0)uc(J[c+4>>2]);ba(a|0);B()}function aK(){var a=0,b=0,c=0;a=Xi(777067); +a:{if(a){b=vc(8);J[699344]=0;a=aa(3349,b|0,a|0)|0;break a}Xi(777840);J[698583]=44;b=vc(8);J[699344]=0;a=aa(3349,b|0,779363)|0}c=J[699344];J[699344]=0;if((c|0)==1){a=Z()|0;uc(b);ba(a|0);B()}return a}function a6(a,b){a=a|0;b=b|0;var c=0;c=J[a+136>>2];J[b>>2]=J[a+132>>2];J[b+4>>2]=c;c=J[a+160>>2];J[b+24>>2]=J[a+156>>2];J[b+28>>2]=c;c=J[a+152>>2];J[b+16>>2]=J[a+148>>2];J[b+20>>2]=c;c=J[a+144>>2];J[b+8>>2]=J[a+140>>2];J[b+12>>2]=c;return 0}function Vsb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a; +d=J[b+36>>2];if(!d)break a;kc[J[a+156>>2]](d,c+1|0)}c=J[b+40>>2];b:{if(!c)break b;d=J[b+44>>2];if(!d)break b;kc[J[a+156>>2]](d,c+1|0)}kc[J[a+156>>2]](b,48);return 0}function Ar(a,b,c,d){var e=0;if(!(!a|b>>>0<=c>>>0)){a:{if(!d)break a;e=K[d|0];if(!e)break a;b=b-1|0;if(b>>>0<=c>>>0)break a;while(1){H[a+c|0]=e;c=c+1|0;e=K[d+1|0];if(!e)break a;d=d+1|0;if(b>>>0>c>>>0)continue;break}}H[a+c|0]=0}return c}function Ak(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;c=J[b+8>>2]-1|0;J[b+8>>2]=c;if(!c){if(J[b>> +2]>0){c=0;while(1){Fd(J[b+12>>2]+(c<<2)|0);c=c+1|0;if((c|0)>2])continue;break}}uc(J[b+12>>2]);mp(b+16|0);uc(b)}J[a>>2]=0}}function xJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;if(c)while(1){qZ(a,d+8|0);e=O[d+8>>3];a:{if(R(e)<2147483648){f=~~e;break a}f=-2147483648}J[b>>2]=f;b=b+4|0;a=a+8|0;g=g+1|0;if((g|0)!=(c|0))continue;break}fc=d+16|0}function jlb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b>>2];a:{if(c>>>0>65534)break a;if(H[a+20|0]&1)return K6(J[a>>2],J[a+16>>2],b,1)|0;if((c|0)== +J[a+24>>2]){I6(a);c=J[a+28>>2];if(!c)break a;J[b>>2]=J[a+24>>2];return c|0}d=J6(a,b,1)}return d|0}function iF(a,b,c){a:{b:{c:switch(a|0){default:fa(200263,198937,144,211835);B();case 0:break b;case 1:break c}if(!b){a=0;if(!c)break b;fa(200904,198937,146,211835);B()}a=c-1|0;if(a>>>0>=3)break a;a=J[(a<<2)+211852>>2]}return a}ra();B()}function eZa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;if(!K[a+229|0]){rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];J[c+12>>2]=257;kc[J[J[b>>2]+348>>2]](b,c+12|0)| +0;a=J[a+104>>2];J[c+8>>2]=4;kc[J[J[a>>2]+312>>2]](a,c+8|0)|0}fc=c+16|0}function dZa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;if(!K[a+229|0]){rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];J[c+12>>2]=513;kc[J[J[b>>2]+348>>2]](b,c+12|0)|0;a=J[a+104>>2];J[c+8>>2]=4;kc[J[J[a>>2]+312>>2]](a,c+8|0)|0}fc=c+16|0}function aKa(a,b,c){a=a|0;b=b|0;c=c|0;a:{b:{if(a){if(!b)break b;if(!c)break a;return!J[a+8>>2]&(J[a+180>>2]!=0&J[a+184>>2]!=0)}fa(2358373,2358254,8640,2364597);B()}fa(2358446,2358254,8641,2364597); +B()}fa(2358486,2358254,8642,2364597);B()}function _j(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=Yc(b);if(c>>>0<2147483632){a:{if(c>>>0<=10){H[a+11|0]=c;d=a;break a}e=(c|15)+1|0;d=vc(e);J[a+8>>2]=e|-2147483648;J[a>>2]=d;J[a+4>>2]=c}f=cd(d,b,c)+c|0,g=0,H[f|0]=g;return a|0}_d(a);B()}function Wha(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];qm(a,1,12);qm(a,1,12);if(J[b+68>>2]!=8){if(J[a+608>>2]>=J[a+600>>2])pf(a);d=J[b+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=d;J[a+608>>2]=J[a+608>>2]+1;J[b+64>>2]=0;J[b+ +68>>2]=8}return 1}function Msb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;kc[J[a+156>>2]](d,c+1|0)}c=J[b+76>>2];b:{if(!c)break b;d=J[b+80>>2];if(!d)break b;kc[J[a+156>>2]](d,c<<2)}kc[J[a+156>>2]](b,84);return 0}function Hib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[((c<<2)+a|0)+268>>2];c=J[a+484>>2];e=J[a+488>>2];if((b|0)>=0){a=c+(((b+d|0)+e|0)-c&0-J[a+480>>2])|0;return((a|0)<0?c:a)|0}a=0-(c+(d+e-(b+c)&0-J[a+480>>2])|0)|0;return((a|0)>0?0-c|0:a)|0}function Gqa(a, +b){a=a|0;b=b|0;var c=0;b=J[b>>2];a=J[a+12>>2];c=J[a+792>>2]!=0;if((b|0)!=((J[a+796>>2]?c|2:c)|K[a+800|0]<<2|K[a+801|0]<<7)){H[a+928|0]=1;J[a+792>>2]=b&1;H[a+801|0]=(b&128)>>>7;H[a+800|0]=b>>>2&31;J[a+796>>2]=b>>>1&1}return 0}function Dd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=J[a>>2];a:{if((d|0)>0){f=b+d|0;a=J[a+4>>2];while(1){c=K[b|0];if(!c)return 1;c=K[a|0]-c|0;if(c)break a;b=b+1|0;a=a+1|0;e=e+1|0;if((e|0)!=(d|0))continue;break}b=f}c=K[b|0]?-1:0}return c|0}function CJa(a,b,c){a=a|0;b=b|0;c=c|0;var d= +0,e=0;d=fc-16|0;fc=d;if(c)while(1){H[d+15|0]=K[a|0];H[d+14|0]=K[a+1|0];H[d+13|0]=K[a+2|0];H[d+12|0]=K[a+3|0];N[b>>2]=N[d+12>>2];b=b+4|0;a=a+4|0;e=e+1|0;if((e|0)!=(c|0))continue;break}fc=d+16|0}function vLa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=kc[J[J[a>>2]+40>>2]](a)|0;a:{if(a)while(1){if(!(kc[J[J[a>>2]+52>>2]](a,b,c)|0))break a;if(!(kc[b|0](c,799849,1)|0))break a;a=kc[J[J[a>>2]+44>>2]](a)|0;if(a)continue;break}d=1}return d|0}function tsa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[b>>2];if((a|0)<=0){J[b>> +2]=256;a=256}d=J[c>>2];if((d|0)<=0){d=256;J[c>>2]=256;a=J[b>>2]}if(a&15){J[b>>2]=a>>>0<4294967280?a+15&-16:0;d=J[c>>2]}if(d&15)J[c>>2]=d>>>0<4294967280?d+15&-16:0}function se(a,b){var c=0;c=fc-16|0;fc=c;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+212>>2]=1;J[a+172>>2]=-1;J[a+84>>2]=2}if(b){J[c>>2]=b;Hc(0,0,0,a,0,1,2,3,b,0,0,0,32879,c);break a}Hc(0,0,0,a,0,1,2,3,0,0,0,0,36029,0)}fc=c+16|0}function nib(a){a=a|0;var b=0,c=0;if(J[J[a+40>>2]>>2]){c=J[a>>2];b=J[c+552>>2];c=wh(J[J[c+96>>2]+4>> +2],241284);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a;b=kc[b|0](c)|0;if(!b)break a;kc[J[b+8>>2]](J[J[a+40>>2]>>2])}J[J[a+40>>2]>>2]=0}}function WXa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=K[a+11|0];e=d;d=d<<24>>24<0;if((d?J[a+4>>2]:e)>>>0>=b>>>0){if((c|0)==-1){a:{if(d){J[a+4>>2]=b;c=J[a>>2];break a}H[a+11|0]=b;c=a}J[c+(b<<2)>>2]=0;return a|0}sv(a,b,c);return a|0}as(a);B()}function Sca(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;H[a+40|0]=0;J[a+32>>2]=0;J[a+36>>2]=-1074790400;H[a+21|0]=0;H[a+22|0]=0;H[a+23|0]= +0;H[a+24|0]=0;H[a+25|0]=0;H[a+26|0]=0;H[a+27|0]=0;H[a+28|0]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}function Itb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+428>>2];d=L[b+32>>1];d=d<<8|d>>>8;H[c+8|0]=d;H[c+9|0]=d>>>8;H[c+10|0]=K[b+34|0];H[c+11|0]=K[b+35|0];H[c+12|0]=K[b+36|0];H[c+13|0]=K[b+37|0];H[c+14|0]=K[b+38|0];return Ce(a,J[b>>2],7,c+8|0)|0}function Fhb(a){a=a|0;var b=0,c=0;if(J[J[a+40>>2]>>2]){c=J[a>>2];b=J[c+320>>2];c=wh(J[J[c+96>>2]+4>>2],240774);a:{if(!c|!b)break a;b=J[b>>2];if(!b)break a; +b=kc[b|0](c)|0;if(!b)break a;kc[J[b+8>>2]](J[J[a+40>>2]>>2])}J[J[a+40>>2]>>2]=0}}function u9(a,b,c){var d=0;if(!a)return 0;a:{if((b|0)<0)break a;a=J[a+16>>2];if(!a|c-3>>>0<4294967294|J[a>>2]<=(b|0))break a;a=J[J[a+12>>2]+(b<<2)>>2];if(!a)break a;if((c|0)==1)return l9(a);if(a)J[a+16>>2]=J[a+16>>2]+1;d=a}return d}function crb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=((c|0)<=1?1:c)-1|0;c=0;while(1){a:{if((c|0)==(e|0)){c=e;break a}d=kc[J[J[a>>2]+48>>2]](a)|0;if((d|0)==-1)return 0;H[b+c|0]=d;c=c+1|0;if((d| +0)!=10)continue}break}H[b+c|0]=0;return b|0}function cq(a){a=a|0;var b=0;b=J[a+20>>2]-1|0;J[a+20>>2]=b;a:{if(!b){b=J[a>>2];if(b)uc(Zc(b));b=J[a+4>>2];if(b)uc(Zc(b));b=J[a+16>>2];if(b){J[699344]=0;NJ(a,b);b=J[699344];J[699344]=0;if((b|0)==1)break a}uc(a)}return}ea(0)|0;Bc();B()}function JCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=J[a+4>>2];a:{b:{if(b){b=Dc(b);J[a+12>>2]=b;d=-1;if(!b)break a;b=Ai(c,b,J[a+4>>2]);if((b|0)!=J[a+4>>2]){uc(J[a+12>>2]);return-1}J[a+16>>2]=b;break b}J[a+12>>2]=0;J[a+16>>2]=0}d= +0}return d|0}function wkb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=6;a:{if(!d|!e)break a;g=L[a+152>>1];if(c){f=142;if(b>>>0>=g>>>0)break a;a=J[a+156>>2]+(b<<4)|0;J[c>>2]=J[a>>2];J[d>>2]=J[a+8>>2];g=J[a+12>>2]}J[e>>2]=g;f=0}return f|0}function hTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=O[b+24>>3];c=J[b+24>>2];f=J[b+16>>2];a=J[a+28>>2];e=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];O[a+600>>3]=e;d=(f|0)==1?+(c|0):d;O[a+608>>3]=d;a=J[a+596>>2];O[a+16>>3]=d;O[a+8>>3]=e;J[a>>2]=1}function Zlb(a,b, +c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(J[a+4>>2])break a;e=c;g=a+52|0;f=J[g>>2];c=J[a+16>>2];if((e|0)!=(f+c|0))break a;e=J[a>>2];c=RD(a+16|0,d,f,c,b,e);if(!c){c=RD(g,d,0,f,b,e);if(!c)break a}J[a+4>>2]=c}}function Wsb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;kc[J[a+156>>2]](d,c+1|0)}c=J[b+48>>2];b:{if(!c)break b;d=J[b+52>>2];if(!d)break b;kc[J[a+156>>2]](d,c)}kc[J[a+156>>2]](b,56);return 0}function Usb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>> +2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;kc[J[a+156>>2]](d,c+1|0)}c=J[b+44>>2];b:{if(!c)break b;d=J[b+48>>2];if(!d)break b;kc[J[a+156>>2]](d,c)}kc[J[a+156>>2]](b,52);return 0}function PX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=a+16|0;a=J[d>>2];a:{if(!a)break a;c=d;while(1){e=Hn(a+16|0,b);c=e?c:a;a=J[(e?a+4|0:a)>>2];if(a)continue;break}if((c|0)==(d|0))break a;if(Hn(b,c+16|0))break a;f=J[c+28>>2]}return f|0}function Jn(a){var b=0,c=0,d=0;if(a){b=J[a+24>>2];if(b){c=J[a+16>>2];if(c){b=0;while(1){d= +J[(J[a+24>>2]+P(b,52)|0)+44>>2];if(d){uc(d);c=J[a+16>>2]}b=b+1|0;if(c>>>0>b>>>0)continue;break}b=J[a+24>>2]}uc(b)}b=J[a+28>>2];if(b)uc(b);uc(a)}}function Gy(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;H[e+15|0]=0;H[e+12|0]=d>>>16;d=d<<8|(d&65280)>>>8;H[e+13|0]=d;H[e+14|0]=d>>>8;J[e+8>>2]=K[e+12|0]|K[e+13|0]<<8|(K[e+14|0]<<16|K[e+15|0]<<24);Qq(a,b,c,e+8|0,0);fc=e+16|0}function okb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;e=ZM(a,240507,d);a:{if(e)break a;e=ZM(a,240633,d+8|0); +if(e)break a;e=6;if(J[d>>2]!=1|J[d+8>>2]!=1)break a;J[b>>2]=J[d+12>>2];J[c>>2]=J[d+4>>2];e=0}fc=d+16|0;return e|0}function ff(a){a=a|0;var b=0,c=0;if(!a)return 0;b=a;while(1){c=b;b=c+1|0;if(K[c|0])continue;break}b=0;c=c-a|0;if((c|0)>=0){b=kc[J[663198]](c+1|0)|0;if(!b){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);return 0}b=xc(b,a,c);H[c+b|0]=0}return b|0}function cCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=OW(a,b)+16|0;b=b+16|0;if(d)continue;break a}while(1){a= +OW(a,b);wc(b+8|0);d=c;c=d-1|0;b=b+16|0;a=a+16|0;if(d)continue;break}}}function X3a(a,b){a=a|0;b=b|0;var c=0,d=0;d=fc-16|0;fc=d;c=ro(b,47);a:{if((c|0)==-1){if(H[b+11|0]>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];break a}Ve(a,J[b>>2],J[b+4>>2]);break a}sn(a,b,c+1|0,-1,d+15|0)}fc=d+16|0}function VH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=hX(a,b)+28|0;b=b+28|0;if(d)continue;break a}while(1){a=hX(a,b);wc(b+16|0);d=c;c=d-1|0;b=b+ +28|0;a=a+28|0;if(d)continue;break}}}function Fs(a,b){var c=0,d=0;a=J[a+112>>2];c=J[a>>2];if((c|0)<=0)return 0;d=J[a+8>>2];a=0;a:{while(1){if(J[(a<<3)+d>>2]==(b|0))break a;a=a+1|0;if((c|0)!=(a|0))continue;break}return 0}a=J[((a<<3)+d|0)+4>>2];J[a>>2]=J[a>>2]+1;return a}function BFa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;J[a>>2]=2394472;c=J[a+32>>2];d=J[a+8>>2];e=J[a+20>>2];b=J[a+12>>2];f=J[a+24>>2];J[699344]=0;ca(c|0,d|0,e-b|0,f-b|0);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(J[a+8>>2]);uc(a)} +function ACb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=-1;a:{if(Wg(c,a+12|0))break a;d=J[a+4>>2]-2|0;J[a+16>>2]=d;b:{if(d){d=Dc(d);J[a+20>>2]=d;if(!d)break a;if((Ai(c,d,J[a+16>>2])|0)==J[a+16>>2])break b;break a}J[a+20>>2]=0}b=0}return b|0}function xE(a,b){var c=0,d=0,e=0;if(!(!a|!b)){d=J[a>>2];c=J[a+4>>2];a:{if((d|0)<(c|0))break a;e=c<<1;if((c|0)>=(e|0))break a;c=im(a+12|0,c<<2,c<<3);J[a+12>>2]=c;if(!c)break a;J[a+4>>2]=e}J[J[a+12>>2]+(d<<2)>>2]=b;J[a>>2]=J[a>>2]+1}}function wrb(a,b,c){a=a|0;b=b|0;c=c| +0;var d=0;H[a+24|0]=0;a:{if(!J[a+4>>2])break a;b:{c:switch(c|0){case 1:b=J[a+16>>2]+b|0;break b;case 0:break b;case 2:break c;default:break a}b=J[a+8>>2]+b|0}J[a+16>>2]=(b|0)>0?b:0;d=1}return d|0}function nn(a,b){a=a|0;b=b|0;var c=0;b=(b|0)<=0?96:b;J[a+364>>2]=b;c=V(+(b|0)*1E4/254+.5);a:{if(R(c)<2147483648){b=~~c;break a}b=-2147483648}J[a+36>>2]=b;a=J[a+4>>2];if(a){H[a+24|0]=b;H[a+25|0]=b>>>8;H[a+26|0]=b>>>16;H[a+27|0]=b>>>24}}function knb(a){a=a|0;var b=0,c=0;if(J[a+12>>2]==-559038737){c=J[a+32>> +2];b=J[a>>2];if(b)kc[J[c+8>>2]](c,b);J[a>>2]=0;b=J[a+24>>2];if(b)kc[J[c+8>>2]](c,b);J[a+24>>2]=0;b=J[a+28>>2];if(b)kc[J[c+8>>2]](c,b);J[a+12>>2]=0;J[a+28>>2]=0}}function hOa(a,b){a=a|0;b=b|0;var c=0,d=0;if(J[a+32>>2]>=J[a+16>>2]){if(!r_(a))return 0;J[a+32>>2]=0}if(J[a+8>>2]>0)while(1){d=J[a+32>>2];J[a+32>>2]=d+1;H[b+c|0]=K[J[a+28>>2]+d|0];c=c+1|0;if((c|0)>2])continue;break}return 1}function Yq(a,b){a=a|0;b=b|0;var c=0;b=(b|0)<=0?96:b;J[a+368>>2]=b;c=V(+(b|0)*1E4/254+.5);a:{if(R(c)<2147483648){b= +~~c;break a}b=-2147483648}J[a+40>>2]=b;a=J[a+4>>2];if(a){H[a+28|0]=b;H[a+29|0]=b>>>8;H[a+30|0]=b>>>16;H[a+31|0]=b>>>24}}function OPa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+4>>2]=0;J[a>>2]=2319352;a:{if(J[b>>2]==4){c=vc(8);b=J[b+8>>2];J[699344]=0;b=aa(3349,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)==1)break a;J[a+4>>2]=b}return a|0}a=Z()|0;uc(c);ba(a|0);B()}function N7(a,b,c,d,e){if((b|1|c)<0){J[e>>2]=6;return d}a:{if(!c){if(!d)break a;kc[J[a+8>>2]](a,d);break a}if(!b){a=kc[J[a+4>>2]](a,c)|0;J[e>>2]=!a<< +6;return a}a=kc[J[a+12>>2]](a,b,c,d)|0;J[e>>2]=!a<<6;return a?a:d}J[e>>2]=0;return 0}function EA(a,b,c){var d=0;a:{d=J[b>>2];b:{if(d){if(J[b+4>>2]!=(a|0))break a;J[c+4>>2]=d;J[c>>2]=J[d>>2];break b}J[c+4>>2]=0;J[c>>2]=J[a+8>>2];d=a+8|0}J[d>>2]=c;b=J[c>>2];J[(b?b:a+8|0)+4>>2]=c;J[a+4>>2]=J[a+4>>2]+1;return}xj(b,a);B()}function Dnb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[a+16>>2];if(c){f=J[a+20>>2];a=0;while(1){e=(c-a>>>1|0)+a|0;d=J[(e<<4)+f>>2];if((d|0)==(b|0))return e+1|0;d=b>>>0>d>>>0;a=d?e+1|0: +a;c=d?c:e;if(a>>>0>>0)continue;break}}return 0}function Cv(a,b,c){var d=0,e=0;d=fc-16|0;fc=d;a:{if(!(b&64)){e=0;if((b&4259840)!=4259840)break a}J[d+12>>2]=c+4;e=J[c>>2]}J[d>>2]=e;J[d+4>>2]=0;a=Xa(-100,a|0,b|32768,d|0)|0;if(a>>>0>=4294963201){J[698583]=0-a;a=-1}fc=d+16|0;return a}function ADb(a,b){a=a|0;b=b|0;var c=0;a:{if(zi(b,J[a+20>>2]))break a;if(zi(b,J[a+24>>2]))break a;if(!J[a+28>>2])return 0;while(1){if(zi(b,J[((c<<2)+a|0)+32>>2]))break a;c=c+1|0;if(c>>>0>2])continue;break}return 0}return-1} +function Mma(a){a=a|0;var b=0,c=0;b=a+240|0;a=b;if(!(J[a+8>>2]-J[a+4>>2]>>2))return 1;a=0;while(1){c=J[ym(b,a)>>2];if(!((c|0)==32|(c|0)==8195|(c|0)==160))return 0;a=a+1|0;if(a>>>0>2]-J[b+4>>2]>>2>>>0)continue;break}return 1}function KWa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+228>>2];if(b){c=b;d=J[a+232>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;uc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+228>>2]}J[a+232>>2]=b;uc(c)}return Ch(a)|0}function oV(a){a=a|0;var b=0;b=J[a+44>> +2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+48>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+52>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+52>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0;J[a+32>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0}function fk(a,b,c){c=J[c+4>>2]&176;if((c|0)==32)return b;a:{if((c|0)!=16)break a;b:{c:{c=K[a|0];switch(c-43|0){case 0:case 2:break c;default:break b}}return a+1|0}if((c|0)!=48|(b-a|0)<2|(K[a+1|0]|32)!=120)break a;a=a+2|0}return a}function emb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[c>>2];d=((d>>31)+d|0)+32768&-65536; +c=J[c+4>>2];c=((c>>31)+c|0)+32768&-65536;a:{if(J[a+4>>2])break a;b=_x((P((b|0)!=0,36)+a|0)+16|0,d>>16,c>>16,J[a>>2],0);if(!b)break a;J[a+4>>2]=b}}function Yub(a){a=a|0;var b=0,c=0,d=0;b=J[a+644>>2];d=J[a+636>>2];J[a+644>>2]=d;J[a+636>>2]=b;c=J[a+588>>2];if((c|0)>0){b=b+(c<<2)|0;c=0;while(1){b=b-4|0;J[d>>2]=J[b>>2];d=d+4|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Qp(a){var b=0,c=0,d=0;a:{if(!J[a+12>>2])break a;b=J[a+8>>2];c=J[b>>2];d=J[J[a+4>>2]+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+ +12>>2]=0;c=a+4|0;if((c|0)==(b|0))break a;while(1){a=J[b+4>>2];uc(b);b=a;if((c|0)!=(a|0))continue;break}}}function FQ(a){var b=0,c=0;b=J[a+4>>2];a:{while(1){c=J[a+8>>2];if((b|0)==(c|0))break a;J[a+8>>2]=c-4;J[699344]=0;c=J[699344];J[699344]=0;if((c|0)!=1)continue;break}ea(0)|0;Bc();B()}b=J[a>>2];if(b)IQ(J[a+16>>2],b,J[a+12>>2]-b>>2)}function Eg(a,b){var c=0,d=0,e=0,f=0,g=0;c=J[a>>2];d=J[b>>2];f=(c|0)<(d|0)?c:d;a:{if((f|0)>0){a=J[a+4>>2];b=J[b+4>>2];while(1){e=K[a|0]-K[b|0]|0;if(e)break a;b=b+1|0;a= +a+1|0;g=g+1|0;if((f|0)!=(g|0))continue;break}}e=c-d|0}return e}function DP(a,b,c,d){var e=0,f=0,g=0,h=0;f=-1;g=J[686165];a:{if((g|0)<=0)break a;e=2744672;while(1){if(J[e>>2]!=(c|0)){e=e+28|0;h=h+1|0;if((g|0)!=(h|0))continue;break a}break}c=J[e+20>>2];if(!c)break a;f=kc[c|0](a,b,d)|0}return f}function Bca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+584>>2];if(d){e=J[d+44>>2];if(!e)break a;if((b|0)==317){I[J[c>>2]>>1]=J[d>>2];return 1}return kc[e|0](a,b,c)|0}fa(72298,70404,640,197529);B()}fa(72782, +70404,641,197529);B()}function v1a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;f=J[a+4>>2];e=J[f+8>>2];if(K[e+14|0]){H[d+12|0]=126;H[d+13|0]=125;H[e+14|0]=0;e=d+14|0}else e=d+12|0;H[e|0]=K[J[f+20>>2]];PL(a,d+12|0,(e-d|0)-11|0,b,c);fc=d+16|0}function qU(a,b){var c=0;if(H[b+27|0]>=0){c=J[b+20>>2];J[a>>2]=J[b+16>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+24>>2];return}c=J[b+20>>2];b=J[b+16>>2];J[699344]=0;ca(15,a|0,b|0,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)return;ea(0)|0;Bc();B()}function Qib(a,b, +c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:switch(J[J[J[a>>2]+96>>2]+64>>2]-35|0){case 5:if(K[a+615|0])break a;break;case 0:break b;default:break a}a=J[b+16>>2]+(c<<3)|0;J[a>>2]=J[a>>2]+d}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|8}function nzb(a){a=a|0;var b=0,c=0,d=0;if(J[a+588>>2]>0){b=J[a+540>>2];b=J[b+1176>>2]+P(J[b+1168>>2],J[a+2552>>2])|0;c=J[a+2516>>2];while(1){H[b|0]=K[c|0];c=c+1|0;b=b+2|0;d=d+1|0;if((d|0)>2])continue;break}}return XE(a)|0}function fea(a){a=a|0;var b=0,c=0;a:{b:{if(!a)break b;b=a-24| +0;c=J[b>>2]-1|0;J[b>>2]=c;if(K[b+13|0]|c)break b;b=J[b+8>>2];if(b){J[699344]=0;_(b|0,a|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}Bp(a)}return}ea(0)|0;Bc();B()}function Y3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(!a)return 0;g=1;if((b|0)<=0)return 0;f=eD(b,e);J[d>>2]=f;f=vc(f);J[c>>2]=f;a:{if(dD(a,b,f,d,e))break a;g=0;a=J[c>>2];if(!a)break a;uc(a);J[c>>2]=0}return g|0}function V$a(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if((b|0)!=100){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>> +2]>>2]](a)}kc[J[J[a>>2]+16>>2]](a);kc[J[J[a+24>>2]+8>>2]](a);$1(a);kc[J[J[a+404>>2]+16>>2]](a);kc[J[J[a+24>>2]+16>>2]](a)}function SR(a,b){var c=0;if(b>>>0>8){b=b>>>0<=4?4:b;a=a>>>0<=1?1:a;a:{while(1){c=DQ(b,a);if(c)break a;c=J[699874];if(c){kc[c|0]();continue}break}a=Hk(4);J[a>>2]=2641388;J[a>>2]=2641348;xa(a|0,2641464,32);B()}return c}return vc(a)}function Q3a(a,b){a=a|0;b=b|0;var c=0,d=0;d=fc-16|0;fc=d;c=ro(b,47);a:{if((c|0)==-1){if(H[b+11|0]>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>> +2]=J[b+8>>2];break a}Ve(a,J[b>>2],J[b+4>>2]);break a}sn(a,b,0,c,d+15|0)}fc=d+16|0}function Pk(a){a=a|0;var b=0;b=fc-32|0;fc=b;a:{if((a|0)>=0){b:{if(!a){a=0;break b}a=Dc(a);if(!a)break a}fc=b+32|0;return a|0}J[b>>2]=776705;md(J[655074],780797,b);ya(1);B()}J[b+16>>2]=777393;md(J[655074],780797,b+16|0);ya(1);B()}function Jeb(a,b){a=a|0;b=b|0;var c=0;c=fc-32|0;fc=c;J[c+8>>2]=0;J[c+12>>2]=0;J[c>>2]=0;J[c+4>>2]=0;O[c+16>>3]=J[b+4>>2];O[c+24>>3]=J[b+8>>2];kc[J[J[a>>2]+(J[b+12>>2]>0?552:548)>>2]](a,J[b+16>> +2],c,J[b+4>>2],J[b+8>>2],0);fc=c+32|0}function wxb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=kc[J[a+2296>>2]](K[c|0])|0;H[b+1|0]=(d|0)!=0;H[b|0]=d>>>8;b=b+2|0;c=c+1|0;e=e+1|0;if(e>>>0>2])continue;break}}return 0}function v4(a){a=a|0;var b=0,c=0;J[a>>2]=351732;a:{b=J[a+20>>2];if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a;J[a+20>>2]=0}if(H[a+19|0]<0)uc(J[a+8>>2]);return a|0}ea(0)|0;Bc();B()}function t4(a){var b= +0,c=0,d=0,e=0;b=J[a+80>>2];if(b){d=b-4|0;a=J[d>>2];if(a){a=P(a,96)+b|0;while(1){c=a;a=a-96|0;a:{if(!J[a+92>>2])break a;c=c-8|0;e=J[c>>2];if(!e)break a;uc(e);J[c>>2]=0}if((a|0)!=(b|0))continue;break}}uc(d)}}function iBa(a,b,c){a=a|0;b=b|0;c=c|0;b=fc-32|0;fc=b;a:{if(!K[a+144|0]){a=Qc(b+8|0,2394631,2386059,164,2414168,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a;b=Z()|0;Kc(a);ba(b|0);B()}fc=b+32|0;return}B()}function Xrb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1397048651){Jc(a, +2050,0,0);return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){d=kc[J[a+152>>2]](d)|0;J[b+36>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[c+36>>2],J[b+32>>2])}return 0}function XJ(a){var b=0,c=0,d=0;c=fc-16|0;fc=c;b=vc(8);J[b>>2]=0;J[b+4>>2]=0;J[699344]=0;da(3541,b|0,0);d=J[699344];J[699344]=0;if((d|0)!=1){H[J[b+4>>2]]=0;J[c+12>>2]=a;a=WJ(b,787792,a);fc=c+16|0;return a}a=Z()|0;uc(b);ba(a|0);B()}function VE(a){var b=0;b=J[a+644>>2];if(b)kc[J[a+156>>2]](b,J[a+316>>2]<<3);b=J[a+640>>2];if(b)kc[J[a+156>>2]](b,J[a+ +608>>2]);b=J[a+636>>2];if(b)kc[J[a+156>>2]](b,J[a+608>>2]);J[a+644>>2]=0;J[a+636>>2]=0;J[a+640>>2]=0;return 0}function Urb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(J[c>>2]!=1850033476){Jc(a,2050,0,0);return 2050}d=J[c+32>>2];J[b+32>>2]=d;if(d){d=kc[J[a+152>>2]](d)|0;J[b+36>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[c+36>>2],J[b+32>>2])}return 0}function Sk(a,b){var c=0,d=0;d=-1;a:{if(!b)break a;while(1){if(!a)break a;c=J[a+16>>2];if(c)while(1){if(!(M[c+4>>2]>>0|c+20>>>0>b>>>0))return 1;c=J[c>>2];if(c)continue; +break}a=J[a+20>>2];if(a)continue;break}d=0}return d}function Omb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=fc-16|0;fc=f;e=he(b,16,f+12|0);g=J[f+12>>2];if(!g){J[e+12>>2]=2;J[e+8>>2]=d;J[e>>2]=c;J[e+4>>2]=c;J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=e;J[a>>2]=b}fc=f+16|0;return g|0}function NS(a){var b=0,c=0,d=0;if(H[J[a>>2]]-48>>>0>=10)return 0;while(1){d=J[a>>2];c=-1;if(b>>>0<=214748364){c=H[d|0]-48|0;b=P(b,10);c=(c|0)>(b^2147483647)?-1:c+b|0}J[a>>2]=d+1;b=c;if(H[d+1|0]-48>>>0<10)continue;break}return b} +function Mm(a){a=a|0;var b=0;b=J[a+668>>2];if(!b)return a|0;J[b+596>>2]=J[a+596>>2];O[b+600>>3]=O[a+600>>3];O[b+608>>3]=O[a+608>>3];O[b+616>>3]=O[a+616>>3];O[b+624>>3]=O[a+624>>3];J[a+668>>2]=0;J[a+596>>2]=0;uc(Br(a));return b|0}function LP(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[a>>2]=1032;Ac(a+4|0,0,972);H[a+388|0]=255;J[a+344>>2]=1119092736;J[a+68>>2]=e;H[a+390|0]=1;J[a+336>>2]=-1;H[a+348|0]=1;nn(a,96);Yq(a,96);H[a+494|0]=1;Bi(a,b,c,d,e);return a|0}function Ecb(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(f>>>0<=254)e=255-(P(255-e|0,f)+255>>>8|0)|0;H[a+2|0]=P(K[a+2|0],e)+255>>>8;H[a+1|0]=P(K[a+1|0],e)+255>>>8;H[a|0]=P(K[a|0],e)+255>>>8;H[a+3|0]=P(K[a+3|0],e)+255>>>8}function wd(a,b,c){if(c-1>>>0<4){J[b>>2]=0;b=b+c|0;H[b-1|0]=K[a|0];a:{if((c|0)==1)break a;H[b-2|0]=K[a+1|0];if((c|0)==2)break a;H[b-3|0]=K[a+2|0];if((c|0)==3)break a;H[b-4|0]=K[a+3|0]}return}fa(2350100,2350739,88,2352152);B()}function qZa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=J[a+104>>2];e=O[b+400>>3]* +255;a:{if(R(e)<2147483648){a=~~e;break a}a=-2147483648}a=(a|0)>0?a:0;J[c+12>>2]=(a|0)>=255?255:a;kc[J[J[d>>2]+60>>2]](d,c+12|0)|0;fc=c+16|0}function q$(a){var b=0,c=0,d=0,e=0;b=J[a+4>>2];c=J[b+8>>2];if((c|0)>0)while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){kc[J[J[e>>2]+4>>2]](e);c=J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}uc(ld(b));b=J[a>>2];if(b)uc(Sh(b));return a}function nh(a){var b=0,c=0;b=J[a+140>>2];a:{if(!b)break a;c=J[b+4>>2];J[b+4>>2]=c-1;if(c)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}a=J[a+68>> +2];b:{if(!a)break b;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break b;kc[J[J[a>>2]+8>>2]](a);Gc(a)}}function _lb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:{if(J[a+4>>2])break a;d=J[a+16>>2];e=a+52|0;f=J[e>>2];if((d+f|0)!=(b|0))break a;g=J[a>>2];b=RD(a+16|0,c,0,d,0,g);if(!b){b=RD(e,c,d,f,0,g);if(!b)break a}J[a+4>>2]=b}}function XPa(a){a=a|0;var b=0,c=0;b=J[a+236>>2];if(b>>>0<=7){M_(a);b=J[a+236>>2]}a:{if((b|0)==8){b=K[a+232|0];break a}if(b>>>0>=9){c=b-8|0;b=J[a+232>>2]>>>c|0;break a}if(!b)return-1;b=J[a+ +232>>2]<<8-b}J[a+236>>2]=c;return b&255}function VMa(a){a=a|0;var b=0;Mc(J[a+3480>>2]);J[a+3480>>2]=0;b=a+3484|0;Mc(J[b>>2]);J[b>>2]=0;b=a+3488|0;Mc(J[b>>2]);J[b>>2]=0;b=a+3492|0;Mc(J[b>>2]);J[b>>2]=0;Mc(J[a+3468>>2]);J[a+3468>>2]=0;a=J[a+4>>2];kc[J[J[a>>2]+24>>2]](a)}function Tz(a){a=a|0;var b=0,c=0,d=0;c=J[a+56>>2];b=J[a+60>>2];if((c|0)==(b|0))return 1;a=0;if(J[c>>2])a=0;else{b=b-c>>3;d=b>>>0<=1?1:b;while(1){a=a+1|0;if((d|0)!=(a|0)&!J[(a<<3)+c>>2])continue;break}a=a>>>0>=b>>>0}return a|0}function Sob(a){a= +a|0;var b=0,c=0,d=0,e=0;b=161;c=J[a+16>>2];a:{if(M[a+20>>2]>>0)break a;d=J[a+32>>2];b=3;e=cm(a,J[c>>2]);if((e|0)<0)break a;J[d+120>>2]=e;a=cm(a,J[c+4>>2]);if((a|0)<0)break a;J[d+116>>2]=a;b=0}return b|0}function Plb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=J[a>>2];d=a&2147483647;b=J[b>>2];e=b&2147483647;a:{if((d|0)==(e|0)){c=1;if(a>>>0>b>>>0)break a;return(a>>>0>>0?-1:0)|0}c=1;if(d>>>0>e>>>0)break a;c=d>>>0>>0?-1:0}return c|0}function JWa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+228>>2];if(b){c=b; +d=J[a+232>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;uc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a+228>>2]}J[a+232>>2]=b;uc(c)}uc(Ch(a))}function xxb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(J[a+2308>>2]){b=J[a+2312>>2];c=J[a+2316>>2];while(1){d=K[b|0];e=J[a+2296>>2];if(e)d=kc[e|0](d)|0;H[c|0]=d;c=c+1|0;b=b+1|0;f=f+1|0;if(f>>>0>2])continue;break}}return 0}function xR(a,b,c,d,e,f){var g=0,h=0,i=0;g=fc-16|0;fc=g;H[g+15|0]=0;H[g+14|0]=f;H[g+13|0]=e;H[g+12|0]=37;if(f){e= +K[g+13|0];H[g+13|0]=K[g+14|0];H[g+14|0]=e}h=c,i=($b(b|0,J[c>>2]-b|0,g+12|0,d|0,J[a>>2])|0)+b|0,J[h>>2]=i;fc=g+16|0}function wk(a){a=a|0;var b=0;b=vc(48);J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=1072693248;J[b+32>>2]=0;J[b+36>>2]=0;J[b+24>>2]=0;J[b+28>>2]=1072693248;J[b+16>>2]=0;J[b+20>>2]=0;J[b+40>>2]=0;J[b+44>>2]=0;J[a>>2]=b;return a|0}function vr(a){a=a|0;var b=0,c=0;J[a>>2]=2418272;J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;a:{if((c|0)==1)break a;J[699344]=0;da(5408,b|0,a|0);b=J[699344]; +J[699344]=0;if((b|0)==1)break a;return nd(a)|0}ea(0)|0;Bc();B()}function mNa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a:{if(J[a+8>>2]|(b|0)<2)break a;e=J[a+4>>2];b=kc[J[J[e>>2]+60>>2]](e,b,c,d)|0;if(!b)break a;od(od(b,c),836854);if(!J[a+12>>2])od(b,837188);od(b,811566);f=b}return f|0}function kxb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+2308>>2]){c=J[a+2312>>2];b=J[a+2316>>2];while(1){d=K[c|0];H[b+3|0]=K[c+1|0];H[b+2|0]=d;H[b+1|0]=d;H[b|0]=d;b=b+4|0;c=c+2|0;e=e+1|0;if(e>>>0>2])continue;break}}return 0} +function JGa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=fc-16|0;fc=d;c=ro(b,46);e=ro(b,47);f=K[b+11|0];c=(c|0)==-1?f<<24>>24<0?J[b+4>>2]:f:c;a:{if((e|0)>(c|0)){J[a>>2]=0;H[a+11|0]=0;break a}sn(a,b,e+1|0,c+(e^-1)|0,d+15|0)}fc=d+16|0}function GNa(a){a=a|0;var b=0,c=0;b=vc(16);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[699344]=0;a=_(c|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[b+8>>2]=-1;J[b+12>>2]=0;J[b>>2]=2343348;J[b+4>>2]=a;return b|0}a=Z()|0;uc(b);ba(a|0);B()}function Fq(a,b){var c=0,d=0,e=0;a:{c=J[a+280>> +2];if((c|0)<=0)break a;d=J[a+284>>2];a=0;while(1){b:{e=Ic(J[P(a,12)+d>>2],b);a=a+1|0;if((c|0)<=(a|0))break b;if(e)continue}break}if(e)break a;return(P(a,12)+d|0)-12|0}return 0}function wYa(a,b){a=a|0;b=b|0;a:{if(J[a+108>>2]!=16)break a;b=J[a+104>>2];b:{if(!b)break b;b=pm(b,340388,340400);if(!b)break b;kc[J[J[b>>2]+600>>2]](b,0)}b=J[a+224>>2];if(!b)break a;kc[J[J[b>>2]+12>>2]](b)|0;J[a+224>>2]=0}}function iZa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;if(!K[a+229|0]){rk(a,J[b+596>>2],O[b+104>>3],b+16| +0,0);b=J[a+104>>2];kc[J[J[b>>2]+348>>2]](b,837252)|0;a=J[a+104>>2];J[c+12>>2]=4;kc[J[J[a>>2]+312>>2]](a,c+12|0)|0}fc=c+16|0}function gZa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;if(!K[a+229|0]){rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];kc[J[J[b>>2]+348>>2]](b,837256)|0;a=J[a+104>>2];J[c+12>>2]=4;kc[J[J[a>>2]+312>>2]](a,c+12|0)|0}fc=c+16|0}function fZa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;if(!K[a+229|0]){rk(a,J[b+596>>2],O[b+104>>3],b+16|0,0);b=J[a+104>>2];kc[J[J[b>>2]+348>>2]](b,837260)| +0;a=J[a+104>>2];J[c+12>>2]=4;kc[J[J[a>>2]+312>>2]](a,c+12|0)|0}fc=c+16|0}function $ob(a,b){a=a|0;b=b|0;var c=0,d=0;d=150;c=J[a+12>>2];a:{if((c|0)==255132|(c|0)==255172)break a;d=0;c=al(wh(J[J[J[a>>2]+96>>2]+4>>2],239709),240861,0);if(!c)break a;c=J[c>>2];if(!c)break a;d=kc[c|0](a,b)|0}return d|0}function wEb(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>>0)+e|0)|0;a=d>>31;b=c^a;f=f>>31;a=xEb(h,e,b-a|0,(a^d)-((a>>>0>b>>>0)+a|0)|0)^f;b=a-f|0;jc=(g^jc)-((a>>>0>> +0)+g|0)|0;return b}function pW(a,b,c,d,e){var f=0,g=0;f=fc-16|0;fc=f;a:{b:{if(!c|!d)break b;g=vEb(d,0,c,0);if(jc)break b;b=Yh(b,g);if(b)break a}b=J[a>>2];a=J[a+628>>2];J[f+8>>2]=d;J[f+4>>2]=c;J[f>>2]=e;Uc(a,b,69784,f);b=0}fc=f+16|0;return b}function dsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1111573323){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];I[b+36>>1]=L[c+36>>1];H[b+38|0]=K[c+38|0];I[b+40>>1]=L[c+40>>1];H[b+42|0]=K[c+42|0];return 0}function aya(a,b){a=a|0;b=b|0;var c= +0;c=J[b>>2];J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=c;c=sh(a+16|0,a+12|0,0,4);J[a+24>>2]=0;J[699344]=0;a=aa(5362,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;a=Z()|0;hd(c);ba(a|0);B()}function WKa(a,b){a=a|0;b=b|0;var c=0;b=J[J[b+16>>2]+40>>2];if(!b){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return}a:{if(H[b+15|0]>=0){c=J[b+8>>2];J[a>>2]=J[b+4>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+12>>2];break a}Ve(a,J[b+4>>2],J[b+8>>2])}}function OG(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=K[b+11|0];d=e<<24>>24<0;c=d?J[b>>2]:b;b= +d?J[b+4>>2]:e;if((b|0)==-1)b=bf(c);kc[J[J[a>>2]+8>>2]](a,b);d=c;c=b<<2;xc(J[a+12>>2],d,c);J[a+12>>2]=c+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+b}function Lm(a){var b=0;a:{b=J[a+28>>2];if((b|0)!=J[a+24>>2]){J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;b=J[a+24>>2]}J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a}ea(0)|0;Bc();B()}function Kya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if((c|0)<=0)break a;c=c-1|0;if(!d)while(1){d=c;c=d-1|0;a=Eo(a,b)+16|0;b=b+16|0;if(d)continue; +break a}while(1){d=c;c=d-1|0;a=Eo(a,b)+16|0;b=id(b)+16|0;if(d)continue;break}}}function xZa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=J[a+104>>2];b=J[b+476>>2];b=(b|0)==1?2:(b|0)==2?1:b;H[c+15|0]=b;kc[J[J[d>>2]+84>>2]](d,c+15|0)|0;a=J[a+104>>2];H[c+14|0]=b;kc[J[J[a>>2]+92>>2]](a,c+14|0)|0;fc=c+16|0}function w$(a,b,c){a:{b:{if(!Ic(b,786996))break b;if(!Ic(b,788459))break b;if(!Ic(b,789299))break b;while(1){if(J[a+24>>2]==7){if(J[Ec(J[a+32>>2],b,c,0)>>2]!=5)break a;yc(c)}a=J[a+104>>2];if(a)continue; +break}}J[c>>2]=5}}function nV(a){a=a|0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=1065353216;J[a+4>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0;J[a+36>>2]=10;J[a>>2]=2432604;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+48>>2]=0;J[a+52>>2]=0;return a|0}function nSa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=+J[b+8>>2]*-.11+(+J[b+4>>2]*-.59+(+J[b>>2]*-.3+ +(65536-J[b+12>>2]|0)))+.5;a:{if(R(e)<2147483648){a=~~e;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0}function lva(a,b){a=a|0;b=b|0;var c= +0,d=0,e=0;d=fc-16|0;fc=d;c=J[b>>2];a:{if(!c)break a;a=(J[a+8>>2]+J[a+12>>2]|0)-c|0;if((a|0)<=0)break a;a=Mp(d+12|0,c,a);c=J[d+12>>2];J[b>>2]=J[b>>2]+1;e=(a|0)>=0?c:0}fc=d+16|0;return e|0}function jP(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a;c=c-1|0;a:{b:{if(!(c>>>0>=20|!(753151>>>c&1))){a=(c<<2)+47460|0;break b}a=J[a+68>>2]-1|0;c=0;if(a>>>0>=20)break a;a=(a<<2)+47540|0}c=J[a>>2]}J[(d+(c<<2)|0)+400>>2]=b;return 1}function j7a(a){a=a|0;var b=0;J[a>>2]=351404;b=J[a- -64>>2];if(b)uc(b);b=J[a+56>>2];if(b)uc(b); +J[a>>2]=351508;b=J[a+4>>2];if(b){if(!K[a+24|0])uc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}return a|0}function g7a(a){a=a|0;var b=0;J[a>>2]=351532;b=J[a- -64>>2];if(b)uc(b);b=J[a+56>>2];if(b)uc(b);J[a>>2]=351508;b=J[a+4>>2];if(b){if(!K[a+24|0])uc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}return a|0}function e7a(a){a=a|0;var b=0;J[a>>2]=351600;b=J[a- -64>>2];if(b)uc(b);b=J[a+56>>2];if(b)uc(b);J[a>>2]=351508;b=J[a+4>>2];if(b){if(!K[a+24|0])uc(b);J[a+ +4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}return a|0}function Qob(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+16>>2];if(M[a+20>>2]>=b+12>>>0){c=J[a+32>>2];d=c,e=cm(a,J[b>>2]),J[d+132>>2]=e;d=c,e=cm(a,J[b+4>>2]),J[d+136>>2]=e;d=c,e=cm(a,J[b+8>>2]),J[d+140>>2]=e;a=0}else a=161;return a|0}function Pzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)>0){c=K[a+1053|0]|(K[a+1057|0]<<16|K[a+1055|0]<<8)|-16777216;a=J[a+644>>2];while(1){J[a>>2]=c;a=a+4|0;d=b>>>0>1;b=b-1|0;if(d)continue; +break}}return 0}function E$(a,b){var c=0;a=J[J[a+8>>2]+(449666%((J[a+12>>2]<<1)-1>>>0)<<2)>>2];a:{if(!a)break a;while(1){if(Ic(776744,J[a>>2])){a=J[a+24>>2];if(a)continue;break a}break}if(J[a+8>>2]!=4)break a;c=!Ic(J[a+16>>2],b)}return c}function uNa(a){a=a|0;var b=0,c=0;J[a>>2]=2343548;a:{b=J[a+8>>2];if(b){c=J[b+32>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(b)}b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a);return}ea(0)|0;Bc();B()}function rRa(a){a=a|0;var b=0;J[a>>2]=2218196; +J[699344]=0;$(3370,a- -64|0);b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;$(3370,a+128|0);b=J[699344];J[699344]=0;if((b|0)==1)break a;return a|0}ea(0)|0;Bc();B()}function nda(a){a=a|0;var b=0,c=0;c=Yh(J[a+912>>2],J[a+916>>2]+1E3|0);if(!c){b=J[a>>2];J[b+20>>2]=56;J[b+24>>2]=100;kc[J[J[a>>2]>>2]](a)}J[a+912>>2]=c;J[a+784>>2]=1E3;b=J[a+916>>2];J[a+916>>2]=b+1E3;J[a+780>>2]=b+c;return 1}function l3a(){var a=0;a=J[693292];if(!(!a|!K[a|0]))Nf(a);J[693293]=0;J[693292]=0;a=J[693295];if(a){Eh(a); +zL(a)}J[693290]=0;J[693295]=0;a=J[693298];if(a){Eh(a);zL(a)}J[693298]=0;a=J[693296];if(a){Nf(a);J[693296]=0}return 1}function go(a,b){var c=0,d=0,e=0;a:{if(!a|!b)break a;c=J[a+16>>2];if((c|0)<=0)break a;a=a+20|0;c=a+(c<<2)|0;while(1){d=J[J[a>>2]>>2];if(Ic(J[d+8>>2],b)){a=a+4|0;if(c>>>0>a>>>0)continue;break a}break}e=J[d+20>>2]}return e}function fS(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];a:{if(!c)break a;d=J[c+24>>2];b:{if((d|0)==J[c+28>>2]){b=kc[J[J[c>>2]+52>>2]](c,b&255)|0;break b}J[c+24>>2]=d+1; +H[d|0]=b;b=b&255}if((b|0)!=-1)break a;J[a>>2]=0}return a|0}function bh(a,b,c,d){var e=0,f=0;f=fc-16|0;fc=f;a:{b:{if(!b|!c)break b;e=vEb(c,0,b,0);if(jc)break b;e=Yh(0,e);if(e)break a}e=J[a>>2];a=J[a+628>>2];J[f+8>>2]=c;J[f+4>>2]=b;J[f>>2]=d;Uc(a,e,69784,f);e=0}fc=f+16|0;return e}function PS(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=fc-16|0;fc=d;J[d+12>>2]=c;J[d+8>>2]=c;e=-1;c=tm(0,0,b,c);a:{if((c|0)<0)break a;f=a;c=c+1|0;a=Dc(c);J[f>>2]=a;if(!a)break a;e=tm(a,c,b,J[d+12>>2])}fc=d+16|0;return e|0} +function LMa(a){a=a|0;var b=0,c=0,d=0;while(1){b=J[a+32784>>2];if(!b){if(!(!J[a+34092>>2]|!J[a+34096>>2]))return-1;EB(a);continue}break}c=J[a+32780>>2];d=K[(c+a|0)+12|0];J[a+32784>>2]=b-1;J[a+32780>>2]=c+1&32767;return d|0}function $N(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!a)break a;b=kd(1,16);if(!b)break a;e=J[a+8>>2];f=e<<2;c=kd(1,f);J[b>>2]=c;if(!c)break a;xc(c,J[a>>2],f);d=J[a+12>>2];J[b+8>>2]=e;J[b+12>>2]=d;J[b+4>>2]=J[a+4>>2];d=b}return d}function s0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f= +0;a=J[a+332>>2]+128|0;b=J[b+84>>2];f=P(J[b+32>>2],L[c+16>>1]);b=P(J[b>>2],L[c>>1])+4|0;H[J[d>>2]+e|0]=K[a+(f+b>>>3&1023)|0];H[J[d+4>>2]+e|0]=K[a+(b-f>>>3&1023)|0]}function rZ(a){var b=0,c=0,d=0;b=J[a+12>>2];a:{if((b&255)==255){b=b<<8&65280;J[a+12>>2]=b;J[a+16>>2]=(b|0)==65280?7:8;c=J[a+8>>2];d=0;if(c>>>0>=M[a+4>>2])break a;J[a+8>>2]=c+1;J[a+12>>2]=b|K[c|0]}J[a+16>>2]=0;d=1}return d}function dJ(a){var b=0,c=0,d=0,e=0;b=J[a>>2];if(b)uc(ld(b));b=J[a+12>>2];if(b){c=J[b+8>>2];if((c|0)>0)while(1){e=J[J[b>> +2]+(d<<2)>>2];if(e){uc(dJ(e));c=J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}uc(ld(b))}return a}function W0(a,b){a=a|0;b=b|0;var c=0,d=0;if(!b){J[a>>2]=0;H[a+11|0]=0;return}c=vc(12);J[699344]=0;b=aa(3354,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){TL(a,J[b>>2],J[b+4>>2]);uc(ld(b));return}a=Z()|0;uc(c);ba(a|0);B()}function C$(a,b){var c=0;rg(J[a+108>>2],b,0,0,0,0,0,0,0);if(J[b>>2]==9){c=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];c=kc[J[J[a>>2]+52>>2]](a)| +0}Cc(1,c,800076,0);yc(b);J[b>>2]=11}}function vNa(a){a=a|0;var b=0,c=0;J[a>>2]=2343548;a:{b=J[a+8>>2];if(b){c=J[b+32>>2];J[699344]=0;Mc(c);c=J[699344];J[699344]=0;if((c|0)==1)break a;uc(b)}b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function dL(a,b,c){var d=0;d=fc-32|0;fc=d;a:{if((a|0)==2){if(c){J[d>>2]=c;Hc(0,0,0,0,0,8,2,3,c,0,0,0,32879,d);break a}Hc(0,0,0,0,0,8,2,3,0,0,0,0,36029,0);break a}J[d+16>>2]=c;Hc(0,0,0,0,0,8,a,2,c,0,0,0,b,d+16|0)}fc=d+32|0}function csa(a,b,c,d,e, +f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;a=J[a+4>>2];if(!a)return 0;a:{if(!e|!f)break a;if(b>>>0>f>>>0)return ge(f,0,d,a)|0;e=b>>>0>>0?e:b;if(e+c>>>0<=f>>>0)break a;c=f-e|0}return ge(b,c,d,a)|0}function KO(a){a=a|0;var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;a:{if(!J[a+44>>2])break a;while(1){Hg(b+12|0,a,c&255);d=K[b+15|0];e=(d|0)!=0;if(d)break a;c=c+1|0;if(M[a+44>>2]>(c&65535)>>>0)continue;break}}fc=b+16|0;return e|0}function Q2a(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+8>>2];a:{b:{if(c>>>0>2]){d=K[c| +0];J[a+8>>2]=c+1;c=d<<24>>24;if((c|0)>=0)break a;a=J[a+4>>2];H[a+36|0]=1;H[a+37|0]=c;J[b>>2]=12;break b}J[b>>2]=8}d=65535}return d|0}function Hy(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{d=J[a+4>>2];if(!d)break a;e=J[a+44>>2];if(!e|b>>>0>=e>>>0)break a;b=(b<<2)+d|0;H[b+40|0]=K[c|0];H[b+41|0]=K[c+1|0];H[b+42|0]=K[c+2|0];H[b+43|0]=K[c+3|0];H[a+481|0]=0}}function Am(a){var b=0,c=0,d=0;a:{if(!J[a+8>>2])break a;b=J[a+4>>2];d=J[b>>2];c=J[J[a>>2]+4>>2];J[d+4>>2]=c;J[c>>2]=d;J[a+8>>2]=0;if((a|0)==(b|0))break a; +while(1){c=J[b+4>>2];uc(b);b=c;if((b|0)!=(a|0))continue;break}}}function tCb(a,b){a=a|0;b=b|0;var c=0;if(J[a+44>>2]>0){b=J[a+48>>2];while(1){a:{if(J[b>>2]!=1)break a;if(!wba(a,b))break a;return-1}vba(a,b);b=b+56|0;c=c+1|0;if((c|0)>2])continue;break}}J[a+84>>2]=32;return 1}function nsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1950960965){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];H[b+34|0]=K[c+34|0];H[b+35|0]=K[c+35|0];H[b+36|0]=K[c+36|0];H[b+37|0]=K[c+37|0];H[b+38|0]=K[c+38|0];return 0} +function Gj(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;if(J[b>>2]>0)while(1){uc(J[J[b+16>>2]+(c<<2)>>2]);c=c+1|0;if((c|0)>2])continue;break}uc(J[b+16>>2]);c=J[b+20>>2];if(c)uc(c);uc(b);J[a>>2]=0}}function E1(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+64>>2];if(!c)break a;a=mx(a,J[b+12>>2]);if(!a)break a;d=e2(c,a);if(!(J[d+8>>2]==(b|0)?d:0)){kc[J[663199]](a);return}su(c,a,0,3342);kc[J[663199]](a);J[b+40>>2]=0}}function xjb(a,b){a=a|0;b=b|0;var c=0,d=0;d=bm(327376,b);a:{if(d)break a; +d=0;if(!a)break a;c=J[a+4>>2];if(!c)break a;c=wh(c,239709);if(!c)break a;c=J[J[c>>2]+20>>2];if(!c)break a;d=kc[J[c+16>>2]](a,b)|0}return d|0}function pyb(a){a=a|0;var b=0,c=0,d=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+b|0;b=c+(b<<1)|0;c=0;while(1){H[b+1|0]=0;H[b|0]=K[d|0]<<7;b=b-2|0;d=d-1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function p3a(a){a=a|0;var b=0,c=0,d=0;a=J[a>>2];if(!a)return 0;b=Yc(a);c=0;a:{if(!a)break a;if((b|0)>0){c=a+b|0;b=((b-32|0)/32|0)+1|0;while(1){d= +K[a|0]+P(d,37)|0;a=a+b|0;if(c>>>0>a>>>0)continue;break}}c=d}return c|0}function lyb(a){a=a|0;var b=0,c=0,d=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+b|0;b=c+(b<<1)|0;c=0;while(1){H[b+1|0]=0;H[b|0]=K[d|0]<<6;b=b-2|0;d=d-1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function jyb(a){a=a|0;var b=0,c=0,d=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+b|0;b=c+(b<<1)|0;c=0;while(1){H[b+1|0]=0;H[b|0]=K[d|0]<<4;b=b-2|0;d=d-1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0} +function bpa(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;b=J[b>>2]!=0;g=O[c>>3];h=O[d>>3];i=O[e>>3];a=J[a+12>>2];N[a+144>>2]=O[f>>3];N[a+140>>2]=i;N[a+136>>2]=h;N[a+132>>2]=g;J[a+128>>2]=b;return 0}function Rq(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;a:{g=J[a+4>>2];if(!g)break a;h=J[a+44>>2];if(!h|b>>>0>=h>>>0)break a;b=(b<<2)+g|0;H[b+41|0]=d;H[b+40|0]=e;H[b+42|0]=c;H[b+43|0]=f;H[a+481|0]=0}}function K1(a){var b=0,c=0,d=0,e=0;b=fc-16|0;fc=b;a:{if(!a)break a; +c=J[a>>2];d=J[a+4>>2];if((J[a+28>>2]&-2)!=-1412623820)break a;e=(c^-1)+a>>>0<249?c:0}J[b>>2]=17054;Hc(0,d,c,e,0,23,2,3,17054,0,0,0,32879,b);fc=b+16|0}function CCb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(J[a+12>>2]>0){b=J[a+16>>2];while(1){d=-1;if(Kh(c,J[b>>2]))break a;if(Kh(c,J[b+4>>2]))break a;b=b+8|0;e=e+1|0;if((e|0)>2])continue;break}}d=0}return d|0}function Bq(a){a=a|0;J[a+104>>2]=0;J[a+108>>2]=0;J[a+16>>2]=283;J[a+12>>2]=284;J[a+8>>2]=285;J[a+4>>2]=286;J[a>>2]=287;J[a+124>>2]=0;J[a+ +128>>2]=0;J[a+116>>2]=126;J[a+120>>2]=0;J[a+112>>2]=52736;J[a+20>>2]=0;return a|0}function A_a(a){a=a|0;var b=0;if(!a)return-1;a:{b:{if(!(J[655076]!=(a|0)&J[655074]!=(a|0))){if((Zi(a)|0)>=0)break a;a=29223;break b}if(J[655075]==(a|0))break a;if((pg(a)|0)!=-1)break a;b=-1;a=29232}MK(a)}return b|0}function wh(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+16>>2];if((c|0)<=0)return 0;a=a+20|0;c=a+(c<<2)|0;while(1){d=J[a>>2];if(!Ic(J[J[d>>2]+8>>2],b))break a;a=a+4|0;if(c>>>0>a>>>0)continue;break}return 0}return d} +function uLa(a){a=a|0;var b=0;J[a>>2]=2348328;b=J[a+20>>2];if(b)uc(Zc(b));b=J[a+24>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function qsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1933723988){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];H[b+34|0]=K[c+34|0];H[b+35|0]=K[c+35|0];H[b+36|0]=K[c+36|0];H[b+37|0]=K[c+37|0];return 0}function qoa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;e=fc- +16|0;fc=e;a=J[a+12>>2];J[e+12>>2]=J[b>>2];b=fc-16|0;fc=b;Ov(a);J[b+12>>2]=1;rM(a+2776|0,e+12|0,0,b+12|0,J[a+2772>>2],c,d);fc=b+16|0;fc=e+16|0;return 0}function lLa(a){a=a|0;var b=0;J[a>>2]=2348520;b=J[a+20>>2];if(b)uc(Zc(b));b=J[a+24>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function kEb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;d=J[a+16>>2];e=J[a+12>>2];O[c+16>>3]=+J[a+20>>2]*1.52587890625E-5;O[c>>3]= ++(e|0)*1.52587890625E-5;O[c+8>>3]=+(d|0)*1.52587890625E-5;Yi(b,205671,c);fc=c+32|0}function gua(a){a=a|0;var b=0,c=0;rA(a);a:{if(J[a+36>>2]>0)break a;b=J[a+24>>2];if(K[b+20|0]?0:b)break a;b=J[a+32>>2];if((b|0)<=J[a+28>>2])break a;c=J[a+16>>2];kc[J[J[c>>2]+20>>2]](c,b,0,0)|0;J[a+28>>2]=J[a+32>>2]}}function TOa(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;if(i){kc[J[J[d>>2]+20>>2]](d);kc[J[J[d>>2]+48>>2]](d,P((P(J[g+4>>2],P(J[g+8>>2],e))+7|0)/8|0,f))|0;kc[J[J[d>> +2]+24>>2]](d)}}function Ko(a){var b=0,c=0,d=0,e=0;if(a){b=J[a+20>>2];c=J[a+16>>2];if(P(b,c))while(1){e=J[J[a+24>>2]+(d<<2)>>2];if(e){uc(e);c=J[a+16>>2];b=J[a+20>>2]}d=d+1|0;if(d>>>0>>0)continue;break}uc(J[a+24>>2]);uc(a)}}function Eia(a){a=a|0;var b=0,c=0,d=0;b=J[a+584>>2];if(J[b+68>>2]!=8){if(J[a+608>>2]>=J[a+600>>2])pf(a);d=J[b+64>>2];c=J[a+604>>2];J[a+604>>2]=c+1;H[c|0]=d;J[a+608>>2]=J[a+608>>2]+1;J[b+64>>2]=0;J[b+68>>2]=8}return 1}function vEb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=c>>> +16|0;f=a>>>16|0;j=P(e,f);g=c&65535;h=a&65535;i=P(g,h);f=(i>>>16|0)+P(f,g)|0;e=(f&65535)+P(e,h)|0;jc=(P(b,c)+j|0)+P(a,d)+(f>>>16)+(e>>>16)|0;return i&65535|e<<16}function tOa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=fc-4096|0;fc=e;while(1){if(b>>>0>d>>>0){c=b-d|0;c=c>>>0>=4096?4096:c;f=kc[J[J[a>>2]+40>>2]](a,e,c)|0;d=d+f|0;if((c|0)==(f|0))continue}break}fc=e+4096|0;return d|0}function ne(a,b,c){var d=0,e=0,f=0;e=fc-16|0;fc=e;J[e+12>>2]=c;d=kt(a,b);a:{if(!d)break a;if(b>>>0<=65535){d=L[d+12>>1];if(!(J[((d>>> +3&8188)+a|0)+40>>2]>>>d&1))break a}f=kc[J[a+672>>2]](a,b,c)|0}fc=e+16|0;return f}function iob(a,b){a=a|0;b=b|0;var c=0,d=0;J[b+72>>2]=1869968492;d=J[a+36>>2];J[b+124>>2]=d;c=J[a+24>>2];J[b+108>>2]=J[a+20>>2];J[b+112>>2]=c;c=J[a+32>>2];J[b+116>>2]=J[a+28>>2];J[b+120>>2]=c;J[b+124>>2]=d&-2;return 0}function ZN(a){var b=0,c=0,d=0,e=0,f=0;a:{if(!a)break a;c=Yc(a);d=kd(c+1|0,1);if(!d)break a;if((c|0)>0)while(1){e=H[a+b|0];if(!eg(226865,e)){H[f+d|0]=e;f=f+1|0}b=b+1|0;if((c|0)!=(b|0))continue;break}b=d}return b} +function wib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=12;a:{if(Ic(b,241377))break a;e=7;b:{c:{if(d){b=Ig(c,0,10);break c}b=J[c>>2]}switch(b-35|0){case 0:case 5:break b;default:break a}}J[a+64>>2]=b;e=0}return e|0}function qrb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+12>>2];d=J[c>>2];c=J[c+4>>2];if((d|0)!=(c|0))while(1){xc(b+e|0,J[d>>2],20480);e=e+20480|0;d=d+4|0;if((c|0)!=(d|0))continue;break}xc(b+e|0,J[a+16>>2],J[a+20>>2])}function pg(a){a=a|0;var b=0,c=0,d=0,e=0;d=Zi(a);e=kc[J[a+12>>2]](a)|0;if(!(H[a| +0]&1)){b=J[a+56>>2];c=J[a+52>>2];if(c)J[c+56>>2]=b;if(b)J[b+52>>2]=c;if(J[698609]==(a|0))J[698609]=b;uc(J[a+96>>2]);uc(a)}return d|e}function iyb(a){a=a|0;var b=0,c=0,d=0;b=J[a+588>>2];if((b|0)>0){c=J[a+644>>2];b=b-1|0;d=c+b|0;b=c+(b<<1)|0;c=0;while(1){H[b+1|0]=0;H[b|0]=K[d|0];b=b-2|0;d=d-1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function eub(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!K[a+289|0]){Jc(a,1029,0,0);return 1029}if(c){Jc(a,1028,0,0);return 1028}H[a+290|0]=1;a:{if(K[a+ +112|0]){a=kc[J[b+4>>2]](a,b,e)|0;if(a)break a}a=0}return a|0}function av(){var a=0,b=0;b=kd(256,4);if(b)while(1){J[(a<<2)+b>>2]=(((((((a&1)+(a>>>7|0)|0)+(a>>>1&1)|0)+(a>>>2&1)|0)+(a>>>3&1)|0)+(a>>>4&1)|0)+(a>>>5&1)|0)+(a>>>6&1);a=a+1|0;if((a|0)!=256)continue;break}return b}function X8(a,b){a=a|0;b=b|0;var c=0;c=J[b+4>>2];J[a+4>>2]=J[b>>2];J[a+8>>2]=c;J[a+28>>2]=J[b+24>>2];c=J[b+20>>2];J[a+20>>2]=J[b+16>>2];J[a+24>>2]=c;c=J[b+12>>2];J[a+12>>2]=J[b+8>>2];J[a+16>>2]=c;W8(a,b,0);W8(a,b,1)}function W4a(a){a= +a|0;var b=0,c=0;J[a+148>>2]=0;b=J[a+448>>2];a:{if(J[a+336>>2]>=2){J[b+28>>2]=1;break a}c=J[a+340>>2];if(J[a+328>>2]!=1){J[b+28>>2]=J[c+12>>2];break a}J[b+28>>2]=J[c+76>>2]}J[b+20>>2]=0;J[b+24>>2]=0}function Li(a){var b=0,c=0;a:{if(J[a+32>>2]|!a)break a;b=J[a+8>>2];if(!((b|0)==J[a+24>>2]|b>>>0>2147483646))J[a+24>>2]=b;b=J[a+20>>2];c=J[a+4>>2];if((b|0)==(c|0)|c>>>0>2147483646)break a;J[a+20>>2]=c;b=c}return b}function HY(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=J[h>>2];j=b+e|0;k=J[j>>2];e=J[g>>2]-(i+k>>2)|0;J[g>>2]=e+i;J[j>>2]=e;J[h>>2]=e+k;f=f+1|0;if((f|0)!=(d|0))continue;break}}function $V(a){a=a|0;var b=0,c=0;J[a>>2]=2418272;J[699344]=0;b=pa(5383)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){J[699344]=0;da(5408,b|0,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}Gm(nd(a))}function qkb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=fc-16|0;fc=d;e=J[a+16>>2];a:{if((e|0)>0)while(1){if(!OD(a,c,d+12|0))if(!Ic(b,J[d+12>>2]))break a;c=c+1|0;if((e|0)!=(c| +0))continue;break}c=0}fc=d+16|0;return c|0}function lB(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;J[a+48>>2]=0;J[a+36>>2]=J[a+32>>2];e=kc[J[a+28>>2]](b,c,J[a>>2])|0;d=J[a+68>>2];if(!e){J[a+68>>2]=d|4;return 0}J[a+56>>2]=b;J[a+60>>2]=c;J[a+68>>2]=d&-5;return 1}function jra(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;if(!K[b+32|0])Sp(b,0);d=c+8|0;rH(d,b);J[699344]=0;da(6239,a|0,d|0);a=J[699344];J[699344]=0;if((a|0)!=1){wc(d);fc=c+16|0;return}a=Z()|0;wc(c+8|0);ba(a|0);B()}function hI(a,b,c){a=a|0;b=b| +0;c=c|0;var d=0;if(!(!a|!b)){a=L[c+4>>1]|L[c+6>>1]<<16;d=L[c>>1]|L[c+2>>1]<<16;I[b+90>>1]=d;I[b+92>>1]=d>>>16;I[b+94>>1]=a;I[b+96>>1]=a>>>16;I[b+98>>1]=L[c+8>>1];J[b+8>>2]=J[b+8>>2]|32}}function gGa(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=fc-48|0;fc=b;cs(a,b);d=O[b+24>>3];e=O[b>>3];f=O[b+16>>3];g=O[b+8>>3];c=Y(d*e-f*g);O[b+24>>3]=d/c;O[b+16>>3]=f/c;O[b+8>>3]=g/c;O[b>>3]=e/c;kI(a);fc=b+48|0;return+c}function cpb(a){a=a|0;var b=0,c=0;c=J[a+712>>2];a:{if(!(K[a+8|0]&8)|!J[a+540>>2])break a;b=al(wh(J[J[a+ +96>>2]+4>>2],239709),240612,0);if(!b)break a;b=J[b>>2];if(!b)break a;return kc[b|0](a)|0}return J[c+1348>>2]}function bHa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;kc[J[J[b>>2]+136>>2]](b,2382740)|0;J[c+12>>2]=J[a+4>>2];kc[J[J[b>>2]+144>>2]](b,c+12|0)|0;J[c+8>>2]=J[a+8>>2];kc[J[J[b>>2]+152>>2]](b,c+8|0)|0;fc=c+16|0;return 1}function Sfa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;J[e+12>>2]=d;d=rm(e+8|0,e+12|0);J[699344]=0;a=Mp(a,b,c);b=J[699344];J[699344]=0;if((b|0)!=1){$h(d);fc=e+16|0; +return a|0}a=Z()|0;$h(d);ba(a|0);B()}function K4(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;a=J[a>>2];c=O[a>>3];d=O[a+8>>3];e=O[a+16>>3];f=O[a+24>>3];g=O[a+32>>3];N[b+20>>2]=O[a+40>>3];N[b+16>>2]=g;N[b+12>>2]=f;N[b+8>>2]=e;N[b+4>>2]=d;N[b>>2]=c;return 0}function Do(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=J[b>>2];if(!(!c|J[b+4>>2]!=(a|0))){d=J[c>>2];f=a+8|0;e=J[c+4>>2];J[(d?d:f)+4>>2]=e;J[(e?e:f)>>2]=d;J[a+4>>2]=J[a+4>>2]-1;kc[J[J[a>>2]+16>>2]](c,1);uc(c);J[b>>2]=0}}function ud(a,b,c){var d=0,e=0;if(!c)return 0; +d=K[a|0];if(d)a:{while(1){e=K[b|0];if((e|0)!=(d|0)|!e)break a;c=c-1|0;if(!c)break a;b=b+1|0;d=K[a+1|0];a=a+1|0;if(d)continue;break}d=0}else d=0;return d-K[b|0]|0}function YD(a,b,c,d){var e=0,f=0;f=J[a+4>>2];if(f>>>0>b>>>0){e=J[a+20>>2];a:{if(e){c=kc[e|0](a,b,c,d)|0;break a}e=c;c=f-b|0;c=c>>>0>>0?c:d;xc(e,J[a>>2]+b|0,c)}J[a+8>>2]=b+c;a=c>>>0>>0?85:0}else a=85;return a}function S9(a,b){a=a|0;b=b|0;var c=0;a:{b:{if(b-257>>>0<4294967040)break b;c=b;c:switch(L[a+26>>1]-1|0){case 0:c=c>>>0>=2?2:c; +break b;case 7:break b;case 3:break c;default:break a}c=c>>>0>=16?16:c}J[a+48>>2]=c}}function Oib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!(!K[a+616|0]|(!K[a+615|0]|J[J[J[a>>2]+96>>2]+64>>2]!=40)))if(K[a+617|0])break a;a=J[b+16>>2]+(c<<3)|0;J[a+4>>2]=J[a+4>>2]+d}a=J[b+24>>2]+c|0;H[a|0]=K[a|0]|16}function LB(a,b){var c=0,d=0,e=0;c=J[a+56>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;a:{if((c|0)==-1)break a;d=J[a+56>>2];d=kc[J[J[d>>2]+28>>2]](d)|0;if((d|0)==-1)break a;J[a+68>>2]=J[a+68>>2]+2;J[b>>2]=d|c<<8;e=1}return e} +function Fea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;e=_j(d+4|0,10629);J[699344]=0;a=ha(7248,e|0,a|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){jd(e);fc=d+16|0;return a|0}a=Z()|0;jd(e);ba(a|0);B()}function Aea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;e=_j(d+4|0,10629);J[699344]=0;a=ha(7251,e|0,a|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){jd(e);fc=d+16|0;return a|0}a=Z()|0;jd(e);ba(a|0);B()}function zea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;e=_j(d+4| +0,9618);J[699344]=0;a=ha(7252,e|0,a|0,b|0,c|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1){jd(e);fc=d+16|0;return a|0}a=Z()|0;jd(e);ba(a|0);B()}function tLa(a){a=a|0;var b=0;J[a>>2]=2348328;b=J[a+20>>2];if(b)uc(Zc(b));b=J[a+24>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}uc(a)}function kLa(a){a=a|0;var b=0;J[a>>2]=2348520;b=J[a+20>>2];if(b)uc(Zc(b));b=J[a+24>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>> +2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}uc(a)}function gTa(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+28>>2];c=J[b+596>>2];if(!(!J[a+36>>2]|J[c+28>>2]<=0&!J[c>>2])){Tj(b);b=J[a+8>>2];kc[J[J[b>>2]+(J[a+36>>2]==1?220:224)>>2]](b,J[a+28>>2]);b=J[a+28>>2]}J[a+36>>2]=0;_f(b)}function dU(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=fc-32|0;fc=d;c=M4(d,c);J[699344]=0;ca(6637,a|0,b|0,c|0);a=J[699344];J[699344]=0;if((a|0)!=1){If(c);fc=d+32|0;return}a=Z()|0;If(c);ba(a|0);B()}function Xq(a,b){a= +a|0;b=b|0;var c=0;c=a;b=b-1|0;a:{b:{if(!(b>>>0>=20|!(753151>>>b&1))){a=(b<<2)+47460|0;break b}a=J[a+68>>2]-1|0;b=0;if(a>>>0>=20)break a;a=(a<<2)+47540|0}b=J[a>>2]}return J[(c+(b<<2)|0)+400>>2]}function PV(a,b){a=a|0;b=b|0;J[a>>2]=2423592;J[a+8>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+16>>2]=J[b+16>>2];J[a+20>>2]=J[b+20>>2];b=J[b+4>>2];if(!(!b|(b|0)==2394486))b=of(vc(Yc(b)+1|0),b);J[a+4>>2]=b;return a|0}function Ccb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=255-(f>>>0<255?P(e,f)+255>>>8|0: +e)|0;H[a+2|0]=P(b,K[a+2|0])+8>>>8;H[a+1|0]=P(K[a+1|0],b)+8>>>8;H[a|0]=P(K[a|0],b)+8>>>8;H[a+3|0]=P(K[a+3|0],b)+8>>>8}function $R(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];a:{if(!c)break a;d=J[c+24>>2];b:{if((d|0)==J[c+28>>2]){b=kc[J[J[c>>2]+52>>2]](c,b)|0;break b}J[c+24>>2]=d+4;J[d>>2]=b}if((b|0)!=-1)break a;J[a>>2]=0}return a|0}function zJ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b>>2];a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0;a=J[b+4>>2];a=(a|0)>=65536?65536:a;J[c+4>>2]=(a|0)>0?a:0;a=J[b+8>>2];a=(a|0)>= +65536?65536:a;J[c+8>>2]=(a|0)>0?a:0}function qRa(a){a=a|0;var b=0;J[a>>2]=2218196;J[699344]=0;$(3370,a- -64|0);b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[699344]=0;$(3370,a+128|0);b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(a)}function ayb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+644>>2];c=b;while(1){d=K[c|0]|K[c+1|0]<<8;H[b|0]=((d<<8|d>>>8)&65535)>>>15;c=c+2|0;b=b+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function _ca(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d| +0;var e=0,f=0,g=0;d=J[J[a+584>>2]>>2];while(1){a:{f=1;if((c|0)<=0)break a;e=(c|0)<(d|0)?c:d;c=c-e|0;f=-1;g=NP(a,b,e,0);b=b+e|0;if((g|0)>=0)continue}break}return f|0}function Zxb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+644>>2];c=b;while(1){d=K[c|0]|K[c+1|0]<<8;H[b|0]=((d<<8|d>>>8)&65535)>>>14;c=c+2|0;b=b+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Xxb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+644>>2];c=b;while(1){d=K[c|0]|K[c+1|0]<<8;H[b|0]=((d<<8|d>>> +8)&65535)>>>12;c=c+2|0;b=b+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function NB(a){var b=0,c=0,d=0,e=0;b=vc(8);c=J[a+4>>2];J[b+4>>2]=c;J[699344]=0;d=aa(3551,c|0,1)|0;e=J[699344];J[699344]=0;if((e|0)!=1){J[b>>2]=d;xc(Ac(d,0,c),J[a>>2],J[a+4>>2]);return b}a=Z()|0;uc(b);ba(a|0);B()}function rN(a,b,c){var d=0,e=0,f=0,g=0;e=J[a+8>>2];f=J[a+4>>2];if(e>>>0>>0){d=J[a+20>>2];a:{if(d){d=kc[d|0](a,e,b,c)|0;break a}g=b;b=f-e|0;d=b>>>0>>0?b:c;xc(g,J[a>>2]+e|0,d)}J[a+8>>2]=J[a+8>>2]+d}return d} +function r1a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;d=J[d>>2]+e|0;a=J[a+332>>2]+128|0;b=J[b+84>>2];e=P(J[b+4>>2],L[c+2>>1]);b=P(J[b>>2],L[c>>1])+4|0;H[d|0]=K[a+(e+b>>>3&1023)|0];H[d+1|0]=K[a+(b-e>>>3&1023)|0]}function aia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if((c|0)>0){d=J[a+584>>2];while(1){tR(a,b,J[d+96>>2],J[d+12>>2]);Ue(J[d+96>>2],b,J[d+8>>2]);e=J[d+8>>2];b=e+b|0;c=c-e|0;if((c|0)>0)continue;break}}return 1}function Ysa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=vj(a,0,262142,a+56|0); +aw(b);e=qt(b,c);if((c|0)>0){f=a+52|0;while(1){g=d+e|0,h=vj(a,0,255,f),H[g|0]=h;d=d+1|0;if((d|0)!=(c|0))continue;break}}qt(b,-1)}function Wxb(a){a=a|0;var b=0,c=0,d=0,e=0;if(J[a+588>>2]>0){b=J[a+644>>2];c=b;while(1){d=K[c|0]|K[c+1|0]<<8;H[b|0]=((d<<8|d>>>8)&65535)>>>8;c=c+2|0;b=b+1|0;e=e+1|0;if((e|0)>2])continue;break}}return 0}function Jj(a){a=a|0;var b=0;J[a>>2]=1032;J[699344]=0;_(13,a|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)==1)break a;J[699344]=0;_(14,a|0)|0;b=J[699344];J[699344]=0;if((b| +0)==1)break a;return a|0}ea(0)|0;Bc();B()}function BMa(a){a=a|0;var b=0,c=0;b=J[a+4>>2];kc[J[J[b>>2]+20>>2]](b);if(J[a+12>>2]>0){b=0;while(1){c=J[a+4>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;J[J[a+8>>2]+(b<<2)>>2]=c;b=b+1|0;if((b|0)>2])continue;break}}}function ywa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-32|0;fc=e;b=xy(e+4|0,b,c);J[699344]=0;a=ga(55,a|0,b|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){lo(b);fc=e+32|0;return a|0}a=Z()|0;lo(b);ba(a|0);B()}function nO(a){a=a|0;var b=0,c=0,d=0;Ac(a+ +24|0,0,72192);J[a+8>>2]=-1;J[a+20>>2]=0;J[a>>2]=0;J[a+4>>2]=819200;c=a,d=vc(20480),J[c+16>>2]=d;b=vc(12);J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[a+72216>>2]=0;J[a+12>>2]=b}function mf(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a:{if(!c)break a;if(b){if(M[a+20>>2]<=b>>>0)break a;return((J[c>>2]+c|0)+(J[a+44>>2]<<2)|0)+P(J[a+52>>2],b)|0}d=(J[c>>2]+c|0)+(J[a+44>>2]<<2)|0}return d|0}function lZa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=J[693078];b=kc[J[J[d>>2]+24>>2]](d,b)|0;if(b){J[c+12>>2]=0;kc[J[J[b>> +2]+24>>2]](b,a,c+12|0);b=J[c+12>>2];H[a+12|0]=1;J[a+8>>2]=0;J[a+4>>2]=b}fc=c+16|0}function fOa(a){a=a|0;var b=0,c=0;J[a>>2]=2343E3;b=J[a+24>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)uc(b);J[a>>2]=2342784;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}return a|0}function Rjb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;e=kc[J[a+516>>2]](a,c?1986884728:1752003704,b,d+12|0)|0;if(!e){J[(c?756:752)+a>>2]=J[d+12>>2];J[(c?856:852)+a>>2]=J[b+8>>2]}fc=d+16|0;return e|0} +function F3(a){var b=0;b=J[a>>2];if(!b){J[a+4>>2]=-1;return}O[a+48>>3]=O[a+112>>3];O[a+56>>3]=O[a+120>>3];O[a+64>>3]=O[a+128>>3];O[a+72>>3]=O[a+136>>3];O[a+80>>3]=O[a+144>>3];O[a+88>>3]=O[a+152>>3];J[a+4>>2]=b}function Co(a,b){a=a|0;b=b|0;var c=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;b=sh(a+16|0,a+12|0,0,4);J[a+24>>2]=0;J[699344]=0;da(5617,a|0,17);c=J[699344];J[699344]=0;if((c|0)!=1)return a|0;a=Z()|0;hd(b);ba(a|0);B()}function CN(a,b){var c=0,d=0,e=0;c=J[a+156>>2];a:{if(!c)break a;d=J[c+4>>2];if(!(d& +1))break a;e=J[a+88>>2];if(e){c=J[J[a+4>>2]+100>>2];kc[J[c+8>>2]](c,e);c=J[a+156>>2];d=J[c+4>>2]}J[c+4>>2]=d&-2}J[a+88>>2]=b}function fAa(a){a=a|0;var b=0,c=0;b=vc(24);J[699344]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b>>2]=2424768;J[b+4>>2]=0;c=J[699344];J[699344]=0;if((c|0)!=1){J[a>>2]=0;vd(a,b);return}a=Z()|0;uc(b);ba(a|0);B()}function aPa(a){a=a|0;var b=0,c=0,d=0,e=0;b=J[a+88>>2];if(b){c=J[b+8>>2];if((c|0)>0)while(1){e=J[J[b>>2]+(d<<2)>>2];if(e){uc(yw(e));c=J[b+8>>2]}d=d+1|0;if((d|0)<(c|0))continue; +break}uc(ld(b));J[a+88>>2]=0}}function Rfa(a){a=a|0;var b=0,c=0,d=0;b=fc-16|0;fc=b;J[b+12>>2]=a;a=rm(b+8|0,b+12|0);J[699344]=0;c=J[J[698634]>>2]?4:1;d=J[699344];J[699344]=0;if((d|0)!=1){$h(a);fc=b+16|0;return c|0}b=Z()|0;$h(a);ba(b|0);B()}function Nzb(a){a=a|0;var b=0,c=0,d=0;b=J[a+660>>2]-J[a+656>>2]|0;if((b|0)>0){c=K[a+81|0]|(K[a+85|0]<<16|K[a+83|0]<<8);a=J[a+644>>2];while(1){J[a>>2]=c;a=a+4|0;d=b>>>0>1;b=b-1|0;if(d)continue;break}}return 0}function N_a(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){d=J[a+ +52>>2];if(!(!d|!J[a+68>>2])){b=J[a+448>>2];c=J[a+36>>2];J[b+12>>2]=J[c+16>>2]-J[c+12>>2];c=J[c+28>>2];J[b>>2]=d;J[b+16>>2]=c;px(a,b)}J[a+264>>2]=-1;mC(a)}}function Lya(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2418640;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;a=a+16|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function J2a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+28>>2]&15;if(d>>>0<=2){if(!(K[b+8|0]|(d|0)!=2)){J[a+24>>2]=739872;b=J[a+20>>2];H[b|0]=255; +H[b+1|0]=253;H[b+2|0]=0;H[b+3|0]=0}J[a+48>>2]=0;c=a+52|0}J[c>>2]=1}function GAb(a,b){a=a|0;b=b|0;if(K[a+498|0]){b=RE(a);H[a+498|0]=0;return b|0}return eaa(a,K[b+28|0],K[b+29|0],J[b+32>>2],K[b+36|0],J[b+40>>2],K[b+44|0],K[b+45|0],J[b+48>>2],J[b+52>>2],J[b+56>>2],J[b+60>>2])|0}function Ft(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=fc-16|0;fc=c;J[c+12>>2]=0;d=J[a>>2];a:{if(K[a+8|0]){e=0;if(!d)break a;d=J[d>>2]}e=d}d=e;J[c+8>>2]=J[a+4>>2];f=b,g=$e(d,c+12|0,c+8|0),O[f>>3]=g;fc=c+16|0}function Ao(a,b,c){a= +a|0;b=b|0;c=c|0;var d=0;a:{if(!c)break a;a=J[a+12>>2];if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break a;if((c|0)>0)return ud(a,b,c)|0;return Ic(a,b)|0}if(!b)break a;d=K[b|0]?-1:0}return d|0}function AF(a,b,c){var d=0;d=J[a+16>>2];if(!d){J[a+36>>2]=1;J[a+24>>2]=c;J[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(J[a+24>>2]!=2)break a;J[a+24>>2]=c;return}H[a+54|0]=1;J[a+24>>2]=2;J[a+36>>2]=J[a+36>>2]+1}}function Jx(a){a=a|0;var b=0,c=0,d=0,e=0;a=J[a>>2];b=O[a+40>>3];c=O[a+8>>3];d=O[a+24>>3]*0;e=b+(c+d)-(b+(c*0+ +d));b=O[a+32>>3];c=O[a>>3];d=O[a+16>>3]*0;return+(qf(e,b+(c+d)-(b+(c*0+d)))*180/3.141592653589793)}function JJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{b:{if(a){if(!d)break b;if(!b)break a;return 1}fa(2358373,2358254,2533,2368785);B()}fa(2358486,2358254,2534,2368785);B()}fa(2365733,2358254,2535,2368785);B()}function Hgb(a){a=a|0;var b=0;a:{if(H[a+555|0]<0){J[a+548>>2]=0;b=J[a+544>>2];break a}H[a+555|0]=0;b=a+544|0}J[b>>2]=0;b:{if(H[a+543|0]<0){J[a+536>>2]=0;a=J[a+532>>2];break b}H[a+543|0]=0;a=a+532| +0}J[a>>2]=0}function B4(a){var b=0,c=0;a:{b=J[a>>2];b:{if(!b)break b;b=J[b>>2];if(!b)break b;c=J[J[b>>2]+12>>2];J[699344]=0;$(c|0,b|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}J[a>>2]=0;return a}ea(0)|0;Bc();B()}function uU(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;g=fc-16|0;fc=g;J[g+12>>2]=0;b=SL(b,g+12|0);h=J[g+12>>2];a:{if(!h)break a;Yz(a,b,0,h,c,d,e,f);if(!b)break a;uc(b)}fc=g+16|0;return 0}function tda(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0){c=J[a+804>>2];a:{if((c|0)<(b|0)){b= +J[a>>2];J[b+20>>2]=123;kc[J[b+4>>2]](a,-1);J[a+800>>2]=97705;b=2;break a}J[a+800>>2]=J[a+800>>2]+b;b=c-b|0}J[a+804>>2]=b}}function kva(a){a=a|0;var b=0,c=0,d=0;b=1;c=J[a+12>>2];a:{if(!c)break a;d=J[a+8>>2];if(!d)break a;while(1){a=d;b=Mp(0,c,a);if(b-1>>>0>>0){c=b+c|0;d=a-b|0;if(d)continue}break}b=a>>>0>=b>>>0}return b|0}function Yj(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;a=J[a+4>>2];H[a+25|0]=1;J[d+12>>2]=0;f=Qe(a,d+12|0),g=1,H[f|0]=g;e=J[d+12>>2];O[e+8>>3]=c;O[e>>3]=b;J[a>>2]= +J[a>>2]+1;fc=d+16|0;return 0}function Q$a(a){a=a|0;var b=0;J[a>>2]=769860;b=J[a+4>>2];J[699344]=0;$(3243,b|0);b=J[699344];J[699344]=0;if((b|0)!=1){J[a+4>>2]=0;b=J[a+8>>2];if(b)uc(b);J[a+8>>2]=0;J[a+12>>2]=0;return a|0}ea(0)|0;Bc();B()}function GD(a){var b=0,c=0,d=0;a:{if(K[a+12|0])break a;b=J[J[a+8>>2]>>2];d=J[J[a+4>>2]>>2];if((b|0)==(d|0))break a;while(1){a=b-12|0;c=J[a>>2];if(c){J[b-8>>2]=c;uc(c)}b=a;if((a|0)!=(d|0))continue;break}}}function zk(a,b,c){var d=0,e=0,f=0;if(!b){J[c>>2]=0;return 0}e= +c;c=Yc(b);d=c+1|0;f=!d;a:{if(c>>>0<=2147483646){c=kc[J[a+4>>2]](a,d)|0;a=!c<<6;break a}c=0;a=d?6:0}if(!(f|a)){xc(c,b,d);a=0}J[e>>2]=a;return c}function teb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;c=fc-16|0;fc=c;J[c+12>>2]=b?J[b>>2]:32;J[c+8>>2]=J[d>>2];a=kc[J[J[a>>2]+296>>2]](a,c+12|0,c+8|0,e,f,g,h)|0;fc=c+16|0;return a|0}function sd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=J[a>>2];c=J[a+8>>2];e=J[a+4>>2];if((c|0)>=(e|0)){c=J[a+12>>2];c=((c|0)>0?c:e)+e|0;J[a+4>>2]=c;d=Wd(d,c,4); +J[a>>2]=d;c=J[a+8>>2]}J[a+8>>2]=c+1;J[(c<<2)+d>>2]=b}function ffb(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;var h=0;h=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;i5(a,O[b>>3],O[c>>3],O[d>>3],O[e>>3],O[f>>3],O[g>>3]);h=0}return h|0}function asb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1297045061){Jc(a,2050,0,0);return 2050}I[b+32>>1]=L[c+32>>1];I[b+34>>1]=L[c+34>>1];H[b+36|0]=K[c+36|0];J[b+40>>2]=J[c+40>>2];J[b+44>>2]=J[c+44>>2];return 0}function UC(a){a=a|0;var b=0,c=0;if(!a)return-102; +b=J[a+224>>2];if(b){c=J[b>>2];if(c)uc(c);J[b>>2]=0;if(J[b+72>>2]==8)Jl(b+4|0);uc(b);J[a+224>>2]=0}kc[J[a+20>>2]](J[a+28>>2],J[a+48>>2])|0;uc(a);return 0}function ynb(a){a=a|0;var b=0;b=J[J[a+156>>2]>>2];J[a+184>>2]=0;J[a+188>>2]=0;J[a+160>>2]=0;J[a+164>>2]=0;J[a+168>>2]=0;J[a+172>>2]=0;J[a+176>>2]=0;J[a+180>>2]=0;J[a+192>>2]=0;J[a+188>>2]=b;jp(b);return 0}function xk(a){var b=0,c=0,d=0,e=0;b=J[a+4>>2];if(b){c=b;d=J[a+8>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;uc(e)}d=c;if((d| +0)!=(b|0))continue;break}c=J[a+4>>2]}J[a+8>>2]=b;uc(c)}}function vha(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;b=fc-16|0;fc=b;a:{if(!(K[f+11|0]>>>7|0)){J[a+8>>2]=J[f+8>>2];c=J[f+4>>2];J[a>>2]=J[f>>2];J[a+4>>2]=c;break a}Ve(a,J[f>>2],J[f+4>>2])}fc=b+16|0}function q$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=-1;a:{if(!d|!b|(!a|!c))break a;e=J[b>>2];g=J[d>>2];e=(e|0)<(g|0)?e:g;if((e|0)<0)break a;xc(a,c,e);J[b>>2]=e;J[d>>2]=e;f=J[b>>2]}return f|0}function exa(a,b,c){a=a|0;b=b|0;c=c|0; +var d=0,e=0,f=0;e=+(J[a+92>>2]<<1);d=c-J[a+112>>2]|0;f=P(d,d);d=b-J[a+108>>2]|0;c=c-J[a+120>>2]|0;a=b-J[a+116>>2]|0;return e>=Y(+(f+P(d,d)|0))+Y(+(P(c,c)+P(a,a)|0))|0}function eOa(a){a=a|0;var b=0,c=0;J[a>>2]=2343E3;b=J[a+24>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)uc(b);J[a>>2]=2342784;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function eAa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=vc(108);J[699344]=0;b=na(5540,f|0,b|0,c|0,d|0,e|0)|0;c=J[699344];J[699344]= +0;if((c|0)!=1){J[a>>2]=0;vd(a,b);return}a=Z()|0;uc(f);ba(a|0);B()}function dSa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;J[b>>2]=0;J[b+4>>2]=0;J[c>>2]=0;J[c+4>>2]=1079574528;e=O[a+64>>3];O[b+8>>3]=e;O[c+8>>3]=O[a+72>>3]-e;e=O[a+80>>3];O[b+16>>3]=e;O[c+16>>3]=O[a+88>>3]-e}function C3a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=0;a:{if(K[d+4|0]|L[d>>1]<20|(K[d+5|0]|K[d+6|0]!=2))break a;if(K[d+8|0]!=99|K[d+9|0]!=110|(K[d+10|0]!=118|K[d+11|0]!=116))break a;a=K[d+12|0]==6}return a|0}function qib(a,b){a=a|0;b=b| +0;var c=0,d=0;c=fc-16|0;fc=c;d=b;b=c+8|0;d=Wx(a,d,b,c+7|0);a:{if(d)break a;a=J[J[J[a+4>>2]+128>>2]+52>>2];if(!a)break a;kc[J[J[a>>2]+4>>2]](J[a+4>>2],b)}fc=c+16|0;return d|0}function qd(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;while(1){d=J[a>>2];e=J[b>>2];if((d|0)==(e|0)){b=b+4|0;a=a+4|0;c=c-1|0;if(c)continue;break a}break}f=-1;if((d|0)<(e|0))break a;f=(d|0)>(e|0)}return f}function nua(a,b){a=a|0;b=b|0;var c=0;c=J[b>>2];if(c){c=J[J[c+28>>2]>>2]?J[c+32>>2]:0;xe(a+28|0,c,1);if(c)xc(J[a+24>>2],J[J[b>> +2]+24>>2],c);J[a+20>>2]=J[J[b>>2]+20>>2];return}xe(a+28|0,0,1);J[a+20>>2]=8}function mi(a,b){var c=0,d=0,e=0;if(!a)return;c=a+20|0;d=J[a>>2];e=J[a+4>>2];a:{if((d|0)>(e|0)){c=J[c>>2];break a}c=im(c,d<<2,d<<3);J[a+20>>2]=c;J[a>>2]=J[a>>2]<<1}N[(e<<2)+c>>2]=b;J[a+4>>2]=J[a+4>>2]+1}function lE(a,b){var c=0;a:{if((b|0)==65535)break a;if(b>>>0>=391){b=b-391|0;if(b>>>0>=M[a+1356>>2])break a;return J[J[a+1360>>2]+(b<<2)>>2]}a=J[a+3084>>2];if(!a)break a;c=kc[J[a+20>>2]](b)|0}return c}function cr(a,b){a:{if(!L[a+ +1148>>1]){if(!ek(a))return 0;if(!L[a+1148>>1])break a}H[b|0]=K[J[a+1152>>2]];J[a+1152>>2]=J[a+1152>>2]+1;I[a+1148>>1]=L[a+1148>>1]-1;return 1}fa(80397,70472,1949,96717);B()}function Tca(a){a=a|0;var b=0,c=0;KP(a);b=J[a+584>>2];if(b){c=J[b+116>>2];if(c){uc(c);b=J[a+584>>2]}c=J[b+144>>2];if(c){uc(c);b=J[a+584>>2]}uc(b);J[a+584>>2]=0;sr(a);return}fa(79688,70340,1045,97951);B()}function KT(a){a=a|0;var b=0;a:{a=J[a>>2];if(!a|J[a+672>>2])break a;b:{c:switch(J[a+668>>2]-5|0){case 0:b=O[a+24>>3]>.3?3:1; +break b;case 2:break c;default:break a}b=O[a+448>>3]>.3?15:14}J[a+672>>2]=b}}function Hi(a,b,c,d,e){var f=0;f=fc-256|0;fc=f;if(!(e&73728|(c|0)<=(d|0))){d=c-d|0;c=d>>>0<256;Ac(f,b&255,c?d:256);if(!c)while(1){pi(a,f,256);d=d-256|0;if(d>>>0>255)continue;break}pi(a,f,d)}fc=f+256|0}function xea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=_j(c+4|0,15049);J[699344]=0;e=+Da(7253,d|0,a|0,b|0);a=J[699344];J[699344]=0;if((a|0)!=1){jd(d);fc=c+16|0;return+e}a=Z()|0;jd(d);ba(a|0);B()}function roa(a,b,c){a= +a|0;b=b|0;c=c|0;var d=0,e=0;a=J[(J[a+12>>2]+2776|0)+8>>2];d=J[a+4>>2];if(d){e=J[a+16>>2];a=d-1|0;a=J[e+(a>>>6&67108860)>>2]+(a<<4&4080)|0;O[b>>3]=O[a>>3];O[c>>3]=O[a+8>>3]}return 0}function qtb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=J[b+36>>2];d=J[a+428>>2];c=L[b+32>>1];c=c<<8|c>>>8;H[d+8|0]=c;H[d+9|0]=c>>>8;c=J[b+36>>2];if(c)xc(d+10|0,J[b+40>>2],c);return Ce(a,J[b>>2],e+2|0,d+8|0)|0}function q_a(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+24>>2];d=J[c>>2];J[c>>2]=d+1;H[d|0]=b;b=J[c+4>>2]-1|0;J[c+4>>2]=b;a:{if(b)break a; +if(kc[J[c+12>>2]](a)|0)break a;b=J[a>>2];J[b+20>>2]=25;kc[J[b>>2]](a)}}function oYa(a){a=a|0;var b=0;J[a>>2]=837560;a:{if(J[a+16>>2]){J[699344]=0;bB(a+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a);return}ea(0)|0;Bc();B()}function i5a(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+188>>2];if(!c){J[a>>2]=0;H[a+11|0]=0;return}b=a;a=0;a:{if(!c)break a;c=J[c+96>>2];d=J[J[c>>2]+32>>2];if(!d)break a;a=kc[d|0](c,239469)|0}D3(b,a,Yc(a),0)}function cra(a){a=a|0;var b=0, +c=0,d=0;H[a+8|0]=0;J[a+4>>2]=1;J[a>>2]=2438952;b=vc(1280);J[699344]=0;c=_(6258,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+12>>2]=c;return a|0}a=Z()|0;uc(b);ba(a|0);B()}function Mr(a){a=a|0;var b=0,c=0;b=-1;a:{if(!a)break a;c=J[a+64>>2];if(!c)break a;b=0;if(J[a+68>>2]|J[c+4>>2]!=1|(J[c+12>>2]|J[a+16>>2]==2))break a;b=1;if(J[a+4>>2])break a;b=I[c+58>>1]&1}return b|0}function Cea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=_j(c+4|0,15049);J[699344]=0;e=+Da(7250,d|0,a|0,b|0);a=J[699344];J[699344]= +0;if((a|0)!=1){jd(d);fc=c+16|0;return+e}a=Z()|0;jd(d);ba(a|0);B()}function pSa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=+J[b+8>>2]*.114+(+J[b>>2]*.299+ +J[b+4>>2]*.587)+.5;a:{if(R(e)<2147483648){a=~~e;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0}function nC(a){var b=0,c=0,d=0;a:{if(!a)break a;b=J[a+40>>2];if((b|0)<=0)break a;d=b-1|0;J[a+40>>2]=d;c=J[a+48>>2];J[a+36>>2]=(b|0)!=1?J[(c+(b<<2)|0)-8>>2]:0;a=c+(d<<2)|0;c=J[a>>2];J[a>>2]=0}return c}function jl(a){var b=0,c=0,d=0,e= +0;b=Dc(108);if(b){J[b+4>>2]=0;J[b>>2]=a;d=2646864;while(1){c=d;e=J[c>>2];if((e|0)!=(a|0)){d=c+24|0;if((e|0)>=0)continue}break}J[b+104>>2]=c+8;Ac(b+12|0,0,92)}return b}function iq(a){var b=0,c=0;a:{if(!a)break a;J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(!b)break a;c=J[b+40>>2];if(c){kc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+12>>2]=39197;J[b+16>>2]=39197}}function gBb(a){a=a|0;var b=0,c=0;J[a>>2]=212624;J[699344]=0;b=a+4|0;$(21,b|0);c=J[699344];J[699344]=0;if((c|0)!=1){J[a+20>>2]=0;J[a+24>> +2]=0;J[a+28>>2]=0;J[a+32>>2]=0;De(b);return a|0}ea(0)|0;Bc();B()}function cO(a,b){var c=0,d=0,e=0;if(!(!a|!b)){c=a+8|0;d=J[a+4>>2];e=J[a>>2];a:{if((d|0)>(e|0)){c=J[c>>2];break a}c=im(c,d<<2,d<<3);J[a+8>>2]=c;J[a+4>>2]=J[a+4>>2]<<1}J[(e<<2)+c>>2]=b;J[a>>2]=J[a>>2]+1}}function QWa(a){a=a|0;if(H[a+407|0]<0)uc(J[a+396>>2]);if(H[a+395|0]<0)uc(J[a+384>>2]);if(H[a+383|0]<0)uc(J[a+372>>2]);if(H[a+371|0]<0)uc(J[a+360>>2]);if(H[a+359|0]<0)uc(J[a+348>>2]);return Tm(a)|0}function Pba(a){var b=0,c=0;a:{b:{if((a| +0)!=769){if((a|0)!=1025)break a;a=Vi(2642496,J[661410]);if(a)break b;break a}a=Vi(2645648,J[661511]);if(!a)break a}b=Tba(a);if(!b)break a;Pf(a);c=b}return c}function u_(a){a=a|0;var b=0;J[a>>2]=2342656;b=J[a+84>>2];if(b)uc(Zc(b));b=J[a+68>>2];if(b)uc(Zc(b));b=J[a+72>>2];if(b)uc(Zc(b));b=J[a+76>>2];if(b)uc(Zc(b));b=J[a+80>>2];if(b)uc(Zc(b));return a|0}function sAa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a>>2];a=J[c+16>>2];d=J[b>>2];b=J[d+16>>2];c=J[c+20>>2];d=J[d+20>>2];return(a>>>0>>0&(c|0)<=(d|0)|(c| +0)<(d|0)?-1:a>>>0>b>>>0&(c|0)>=(d|0)|(c|0)>(d|0))|0}function pYa(a){a=a|0;var b=0;J[a>>2]=837560;a:{if(J[a+16>>2]){J[699344]=0;bB(a+16|0);b=J[699344];J[699344]=0;if((b|0)==1)break a}b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function klb(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;J[c+12>>2]=b;d=0;a:{if(b>>>0>65535)break a;if(H[a+20|0]&1){d=K6(J[a>>2],J[a+16>>2],c+12|0,0);break a}d=J6(a,c+12|0,0)}a=d;fc=c+16|0;return a|0}function jj(a){var b=0,c=0,d=0,e=0;b=J[a>>2];if(b){c= +b;d=J[a+4>>2];if((d|0)!=(b|0)){while(1){c=d-12|0;e=J[c>>2];if(e){J[d-8>>2]=e;uc(e)}d=c;if((d|0)!=(b|0))continue;break}c=J[a>>2]}J[a+4>>2]=b;uc(c)}}function hP(a){var b=0,c=0,d=0;b=J[a+12>>2];if(b)gP(b);c=J[a+8>>2];if(c){b=J[c+52>>2];if(b){d=J[c- -64>>2];if(d){uc(d);b=J[c+52>>2]}uc(b)}uc(c)}b=J[a+16>>2];if(b)uc(b);b=J[a+32>>2];if(b)Pf(b);uc(a)}function g6(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;e=fc-16|0;fc=e;g=J[b>>2];a:{if(g>>>0>=d>>>0)break a;h=c,i=_c(a,1,g,d,J[c>>2],e+12|0),J[h>>2]=i;f=J[e+12>>2];if(f)break a; +J[b>>2]=d;f=0}fc=e+16|0;return f}function dM(a){var b=0,c=0,d=0;b=J[a+8>>2];d=J[a+4>>2];if((b|0)!=(d|0))while(1){c=b-12|0;J[a+8>>2]=c;if(H[b-1|0]<0){uc(J[c>>2]);c=J[a+8>>2]}b=c;if((d|0)!=(b|0))continue;break}a=J[a>>2];if(a)uc(a)}function _Ka(a){a=a|0;var b=0;a:{a=J[a+16>>2];if(J[a+48>>2])break a;a=J[a+40>>2];if(!a)break a;b=J[a>>2];if(b){uc(Xt(b));J[a>>2]=0}b=a+36|0;dj(a+32|0,J[b>>2]);J[a+32>>2]=b;J[a+36>>2]=0;J[a+40>>2]=0}}function Xta(a){a=a|0;var b=0;b=J[a+56>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b= +J[a+60>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+64>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+64>>2]=0;J[a+56>>2]=0;J[a+60>>2]=0;oV(a)}function Kmb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+20>>2];if(K[a+65|0]){a=J[e+8>>2];f=I[e+2>>1];g=J[e+4>>2]+(f<<3)|0;J[g+4>>2]=c>>10;J[g>>2]=b>>10;H[a+f|0]=d?1:2}I[e+2>>1]=L[e+2>>1]+1}function GMa(a){a=a|0;var b=0,c=0;b=vc(8);a=J[a+4>>2];c=J[J[a>>2]+8>>2];J[699344]=0;a=_(c|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[b>>2]=2344572;J[b+4>>2]=a;return b|0}a= +Z()|0;uc(b);ba(a|0);B()}function EC(a,b){var c=0,d=0;a:{if((a|0)!=(b|0)){if(!a)return-1;if(!b)return 1;while(1){d=K[b|0];c=K[K[a|0]+775024|0]-K[d+775024|0]|0;if(c)break a;b=b+1|0;a=a+1|0;if(d)continue;break}}c=0}return c}function so(a){var b=0;J[699344]=0;a=_(27,a|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)==1){oa(ea(0)|0)|0;J[699344]=0;ka(5053);b=J[699344];J[699344]=0;a=0;if((b|0)==1)break a}return a}ea(0)|0;Bc();B()}function nA(a){var b=0,c=0;c=J[a+28>>2];a:{if((c+34|0)<=4080){b=J[a+24>>2];break a}b= +vc(8164);J[b>>2]=J[a+24>>2];c=0;Ac(b+4|0,0,8160);J[a+24>>2]=b}J[a+28>>2]=c+34;a=c<<1;return(((b-a&2)+a|0)+b|0)+4|0}function kAb(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0){d=J[a+12>>2];a=J[J[d+2452>>2]+24>>2];c=J[a+4>>2];a:{if(c>>>0>>0){J[d+2492>>2]=b-c;c=0;b=0;break a}c=c-b|0;b=J[a>>2]+b|0}J[a>>2]=b;J[a+4>>2]=c}}function jAb(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)>0){d=J[a+12>>2];a=J[J[d+2464>>2]+24>>2];c=J[a+4>>2];a:{if(c>>>0>>0){J[d+2512>>2]=b-c;c=0;b=0;break a}c=c-b|0;b=J[a>>2]+b|0}J[a>>2]=b; +J[a+4>>2]=c}}function g6a(a,b,c){a=a|0;b=b|0;c=c|0;b=J[b+8>>2];if(!b){b=a+76|0;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=1;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[a+16>>2]=0;H[a+72|0]=0;return}d4(a,b,J[c>>2])}function yB(a,b,c){var d=0,e=0;a:{b:{if(!b|!c)break b;d=V(+(b|0)*+(c|0)/1E5+.5);if(!(d<=2147483647)|!(d>=-2147483648))break a;if(R(d)<2147483648){e=~~d;break b}e=-2147483648}J[a>>2]=e;e=1}return e}function vOa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if((c|0)<=0)break a;while(1){e=kc[J[J[a>> +2]+28>>2]](a)|0;if((e|0)==-1)break a;H[b+d|0]=e;d=d+1|0;if((d|0)!=(c|0))continue;break}d=c}return d|0}function ko(a){a=a|0;var b=0;J[a>>2]=1032;J[699344]=0;_(13,a|0)|0;b=J[699344];J[699344]=0;a:{if((b|0)!=1){J[699344]=0;_(14,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)break a}ea(0)|0;Bc();B()}uc(a)}function Yob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[a+712>>2];a:{b:{if(!a)break b;d=6;if(J[a+1504>>2]==65535|M[a+20>>2]<=b>>>0)break a;if(!c)break b;J[c>>2]=L[J[a+1188>>2]+(b<<1)>>1]}d=0}return d|0}function TNa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=J[a+28>>2];d=e+J[a+32>>2]|0;f=(c|0)<0;c=f?d-b|0:b;g=a;h=J[a+24>>2];a=c>>>0>>0?e:c>>>0>>0?c:d;J[g+40>>2]=h+(f?b>>>0<=d>>>0?a:0:a)}function vBb(a){a=a|0;var b=0,c=0;J[a>>2]=212568;b=J[a+4>>2];if(b){a:{if(J[b>>2]!=2)break a;c=J[b+4>>2];if(!c)break a;uc(c)}uc(b)}b=a+4|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;return a|0}function sSa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=+J[b+8>>2]*.11+(+J[b>>2]*.3+ +J[b+4>>2]*.59)+.5;a:{if(R(e)<2147483648){a= +~~e;break a}a=-2147483648}a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0}function mTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=J[a+28>>2];d=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a:{if(R(d)<2147483648){b=~~d;break a}b=-2147483648}O[c+464>>3]=b|0;a=J[a+8>>2];kc[J[J[a>>2]+84>>2]](a,c)}function lzb(a){a=a|0;var b=0,c=0;b=J[a+24>>2];c=J[b+48>>2];if((kc[J[J[c>>2]+16>>2]](c,J[b+52>>2],1,4096)|0)!=4096){c=J[a>>2];J[c+20>>2]=38;kc[J[c>>2]](a)}J[b+4>>2]=4096;J[b>>2]=J[b+52>>2];return 1}function gA(a){J[a+40>>2]=-1;J[a+44>> +2]=-1048577;J[a+32>>2]=-1;J[a+36>>2]=-1048577;J[a+24>>2]=-1;J[a+28>>2]=2146435071;J[a+16>>2]=-1;J[a+20>>2]=2146435071;J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;return a}function em(a,b){var c=0,d=0;if(!(!a|!b)){c=a+8|0;d=J[a>>2];a:{if((d|0)>J[a+4>>2]){c=J[c>>2];break a}c=im(c,d<<2,d<<3);J[a+8>>2]=c;J[a>>2]=J[a>>2]<<1}d=c;c=J[a+4>>2];J[d+(c<<2)>>2]=b;J[a+4>>2]=c+1}}function ZAb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+20>>2];if(d){e=J[a+28>>2];if(e){hh(d,e,1);d=J[a+28>>2];J[a+28>>2]=0;J[a+24>>2]=d+J[a+24>> +2];d=J[a+20>>2]}ge(b,1,c,d);J[a+24>>2]=J[a+24>>2]+c}}function Qc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+20>>2]=f;J[a+16>>2]=d;J[a+12>>2]=e;J[a+8>>2]=c;J[a>>2]=2423592;if(!(!b|(b|0)==2394486))b=of(vc(Yc(b)+1|0),b);J[a+4>>2]=b;return a|0}function Po(a,b){var c=0;J[a>>2]=6;c=vc(20);J[699344]=0;J[c>>2]=b;J[c+12>>2]=0;J[c+16>>2]=1;J[c+4>>2]=0;J[c+8>>2]=0;b=J[699344];J[699344]=0;if((b|0)!=1){J[a+8>>2]=c;return}a=Z()|0;uc(c);ba(a|0);B()}function GG(a,b){var c=0,d=0;c=K[a-1|0]<<2;a:{if(c>>> +0>b>>>0)break a;d=a;a=b-c|0;b=d+(P(a,5)>>>2|0)|0;a=a<<1&6;b=K[b+1|0]<<8-a&1020|K[b|0]>>>a;if(b>>>0<256)break a;b=L[(b<<1)+2593216>>1]}return b}function wu(a,b,c,d){var e=0,f=0;e=fc-16|0;fc=e;a:{if((AL(a,b,0,0,0,0,e+12|0,d,1)|0)<2)break a;a=J[e+12>>2];b=a>>>24&31;if(b>>>0>3)break a;J[c>>2]=a&16777215;f=(a|0)<0?b:0-b|0}fc=e+16|0;return f}function ss(a,b,c,d,e){if(b)J[b>>2]=0;if(c)J[c>>2]=0;if(d)J[d>>2]=0;if(e)J[e>>2]=0;if(!a)return;if(b)J[b>>2]=J[a>>2];if(c)J[c>>2]=J[a+4>>2];if(d)J[d>>2]=J[a+8>>2]; +if(e)J[e>>2]=J[a+12>>2]}function fca(a,b,c){a=a|0;b=b|0;c=c|0;a:{b:switch(c|0){case 1:b=J[a+12>>2]+b|0;break a;default:ra();B();case 0:break a;case 2:break b}b=J[a+8>>2]-b|0}if((b|0)<0)return-1;J[a+12>>2]=b;return b|0}function fBb(a){a=a|0;var b=0,c=0;J[a>>2]=212624;J[699344]=0;b=a+4|0;$(21,b|0);c=J[699344];J[699344]=0;if((c|0)==1){ea(0)|0;Bc();B()}J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;De(b);uc(a)}function UUa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a+12>>2]=8;J[a+16>>2]=0;J[a>>2]=b;c=a,d=Gd(8, +32),J[c+4>>2]=d;b=Gd((J[a+12>>2]<<1)-1|0,4);J[a+8>>2]=b;Ac(b,0,(J[a+12>>2]<<3)-4|0);J[a+20>>2]=1;return a|0}function UFa(a,b){a=a|0;b=b|0;var c=0;b=J[b+4>>2];if(b){a:{if(H[b+11|0]>=0){c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];break a}Ve(a,J[b>>2],J[b+4>>2])}return}J[a>>2]=0;H[a+11|0]=0}function Pza(a){a=a|0;var b=0;b=vc(40);J[b+32>>2]=0;J[b+24>>2]=-1717986918;J[b+28>>2]=1073846681;J[b+16>>2]=24;J[b+20>>2]=300;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=2417244;J[b+4>>2]=0;J[a>>2]=0;vd(a,b)} +function PWa(a){a=a|0;if(H[a+407|0]<0)uc(J[a+396>>2]);if(H[a+395|0]<0)uc(J[a+384>>2]);if(H[a+383|0]<0)uc(J[a+372>>2]);if(H[a+371|0]<0)uc(J[a+360>>2]);if(H[a+359|0]<0)uc(J[a+348>>2]);uc(Tm(a))}function Oob(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=3;c=J[a+32>>2];a:{if(!c)break a;d=J[c+364>>2];if(!d)break a;b=160;if(K[d+557|0])break a;e=c,f=cm(a,J[J[a+16>>2]>>2]),J[e+360>>2]=f;b=0}return b|0}function zA(a){a=a|0;J[a+32>>2]=0;J[a+36>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=0;J[a+4>> +2]=0;J[a+48>>2]=1;J[a+40>>2]=1;J[a+44>>2]=0;J[a+24>>2]=1;J[a+28>>2]=1;return a|0}function vz(a,b,c){var d=0,e=0;e=fc-16|0;fc=e;d=J[c>>2]>2];J[e+12>>2]=J[(d?c:a)>>2];J[c>>2]=J[(d?a:c)>>2];d=a;a=e+12|0;c=J[a>>2]>2];J[d>>2]=J[(c?d:b)>>2];J[b>>2]=J[(c?b:a)>>2];fc=e+16|0}function sA(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!c)break a;if(!(!a|!K[a|0])){d=1;if(!b|!K[b|0])break a;if((c|0)>0)return ud(a,b,c)|0;return Ic(a,b)|0}if(!b)break a;d=K[b|0]?-1:0}return d|0}function jna(a,b){a=a|0;b=b|0;var c= +0;c=vc(16);J[c+8>>2]=J[b>>2];b=J[b+4>>2];J[c+12>>2]=b;if(b)J[b+4>>2]=J[b+4>>2]+1;J[c>>2]=a;b=J[a+4>>2];J[c+4>>2]=b;J[b>>2]=c;J[a+4>>2]=c;J[a+8>>2]=J[a+8>>2]+1}function btb(a){a=a|0;var b=0,c=0,d=0;b=J[a+960>>2];if(b)uc(b);J[a+376>>2]=0;J[a+380>>2]=0;b=J[a+16>>2];J[a+372>>2]=b;c=J[a+20>>2];J[a+384>>2]=c;d=a;a=kd(P(b,c),1);J[d+960>>2]=a;return(a|0)!=0|0}function _0(a){var b=0,c=0;if(a){J[a+212>>2]=1;J[a+172>>2]=-1;b=J[a+36>>2];if(b){c=J[b+40>>2];if(c){kc[c|0](J[b+12>>2]);b=J[a+36>>2];J[b+40>>2]=0}J[b+ +12>>2]=39197;J[b+16>>2]=39197}J[a+84>>2]=111}}function YL(a){var b=0,c=0;a:{if(K[a+12|0])break a;b=J[J[a+8>>2]>>2];c=J[J[a+4>>2]>>2];if((b|0)==(c|0))break a;while(1){a=b-12|0;if(H[b-1|0]<0)uc(J[a>>2]);b=a;if((a|0)!=(c|0))continue;break}}}function Y$a(a){a=a|0;var b=0,c=0;a=J[a+4>>2];a:{if(!J[a+4>>2])break a;while(1){c=(b|0)==1;if(c)break a;if((Nr(J[a+4>>2])|0)!=1)break a;b=ou(J[a+4>>2]);if((b|0)!=-1)continue;break}}return c|0}function NR(a){var b=0,c=0,d=0;if(!a)return 0;d=2632656;a:{if(a){while(1){b= +d;c=J[b>>2];if(c){d=b+4|0;if((a|0)!=(c|0))continue}break}a=c?b:0;break a}a=(bf(2632656)<<2)+2632656|0}return(a|0)!=0}function DA(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a:{if(J[b+4>>2]<=(c|0))break a;d=J[b+8>>2];if(!d)break a;while(1){if(c){c=c-1|0;d=J[d>>2];if(d)continue;break a}break}e=d}J[a+4>>2]=b;J[a>>2]=e}function vc(a){a=a|0;var b=0;a=a>>>0<=1?1:a;a:{while(1){b=Dc(a);if(b)break a;b=J[699874];if(b){kc[b|0]();continue}break}a=Hk(4);J[a>>2]=2641388;J[a>>2]=2641348;xa(a|0,2641464,32);B()}return b| +0}function pl(a,b){var c=0,d=0;c=J[b>>2];d=J[b+4>>2];J[b>>2]=0;J[b+4>>2]=0;b=J[a+4>>2];J[a>>2]=c;J[a+4>>2]=d;a:{if(!b)break a;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}}function i9a(a,b,c){a=a|0;b=Q(b);c=Q(c);var d=0;d=vEb(J[698644],J[698645],1284865837,1481765933);a=jc;d=d+1|0;a=d?a:a+1|0;J[698644]=d;J[698645]=a;return Q(Q(Q(a>>>1|0)*Q(4.656612873077393E-10)))}function ho(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:{if(!a|!(K[a+8|0]&8))break a;c=J[a+96>>2];d=J[J[c>>2]+32>>2];if(!d)break a; +c=kc[d|0](c,240336)|0;if(!c)break a;e=kc[J[c+4>>2]](a,b)|0}return e|0}function _n(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0,f=0,g=0;d=fc-16|0;fc=d;a=J[a+4>>2];J[d+12>>2]=0;f=Qe(a,d+12|0),g=2,H[f|0]=g;e=J[d+12>>2];O[e+8>>3]=c;O[e>>3]=b;J[a>>2]=J[a>>2]+1;fc=d+16|0;return 0}function Ita(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=fc-32|0;fc=a;a=Qc(a+8|0,2388669,2386101,1377,2432276,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)B();b=Z()|0;Kc(a);ba(b|0);B()}function Gpb(a,b){a=a|0;b=b|0;var c=0,d=0; +c=J[b>>2];J[b>>2]=0;if(c>>>0>254)return 0;while(1){if((c|0)==255)return 0;c=c+1|0;d=L[J[a+16>>2]+(c<<1)>>1];if(!d)continue;break}J[b>>2]=c;return d|0}function Aba(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=K[a+12|0];J[c+4>>2]=J[a+16>>2];J[c>>2]=d;md(b,210179,c);if(J[a+16>>2]){ae(210268,7,1,b);Oba(b,J[a+20>>2],J[a+16>>2])}fc=c+16|0;return 0}function kh(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=b;b=J[a>>2];a:{if((f|0)!=(f&b)|((b^-1)&c)!=(c|0))break a;g=1;c=b;b=(b|d)&(e^-1);if((c|0)== +(b|0))break a;J[a>>2]=b}return g|0}function ikb(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];if((b|0)<0){b=J[c+108>>2];if(!(J[c+104>>2]<3?b:0)){kc[J[c+8>>2]](a);b=J[c+108>>2]}J[c+108>>2]=b+1;return}if(J[c+104>>2]>=(b|0))kc[J[c+8>>2]](a)}function hXa(a,b){a=a|0;b=b|0;var c=0,d=0;Fe(b,10);c=K[a+31|0];d=c<<24>>24<0;lf(b,d?J[a+20>>2]:a+20|0,d?J[a+24>>2]:c);if(J[a+16>>2]){Fe(b,1);a=J[a+16>>2];kc[J[J[a>>2]+8>>2]](a,b);return}Fe(b,0)}function gXa(a,b){a=a|0;b=b|0;var c=0,d=0;Fe(b,14);c=K[a+31|0];d=c<<24>>24<0;lf(b, +d?J[a+20>>2]:a+20|0,d?J[a+24>>2]:c);if(J[a+16>>2]){Fe(b,1);a=J[a+16>>2];kc[J[J[a>>2]+8>>2]](a,b);return}Fe(b,0)}function _pb(a){a=a|0;J[a+24>>2]=500;J[a+28>>2]=400;I[a+20>>1]=256;J[a+12>>2]=86;J[a+16>>2]=30;J[a+48>>2]=2333;J[a+52>>2]=0;J[a+40>>2]=1667;J[a+44>>2]=275;J[a+32>>2]=1E3;J[a+36>>2]=275;return 0}function WPa(a){a=a|0;var b=0;b=J[a+236>>2];if(b>>>0<=7){M_(a);b=J[a+236>>2]}if((b|0)==8)return K[a+232|0];if(b>>>0>=9)return J[a+232>>2]>>>b-8&255;if(!b)return-1;return J[a+232>>2]<<8-b&255}function JI(a, +b){var c=0,d=0,e=0;c=fc-16|0;fc=c;J[c+12>>2]=0;J[c+8>>2]=0;a:{if(!LI(a,b,c+12|0,c+8|0))break a;d=b;b=J[c+8>>2];if(K[a+b|0]?(d|0)!=(b|0):0)break a;e=J[c+12>>2]}fc=c+16|0;return e}function Hu(a){a=J[a>>2];J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=1072693248;J[a+24>>2]=0;J[a+28>>2]=1072693248;J[a+32>>2]=0;J[a+36>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+40>>2]=0;J[a+44>>2]=0}function xN(a,b){var c=0;c=35;a:{if(!a|!(K[a+8|0]&2))break a;c=6;if((b|0)<0|J[a+28>>2]<=(b|0))break a;c=J[J[J[a+96>>2]+12>>2]+92>> +2];if(c)return kc[c|0](J[a+88>>2],b)|0;io(a,b);c=0}return c}function mha(){var a=0,b=0;a:{J[699745]=0;J[699744]=2639640;J[699744]=2634480;J[699744]=2634104;J[699344]=0;a=pa(6851)|0;b=J[699344];J[699344]=0;if((b|0)!=1){J[699746]=a;break a}ba(Z()|0);B()}}function lfb(a,b){a=a|0;b=b|0;b=J[b>>2];J[a+632>>2]=b;a:{if((b|0)!=20480){if((b|0)!=12288){if((b|0)!=1)break a;return kc[J[J[a>>2]+20>>2]](a)|0}xD(J[a+16>>2]);return 0}xD(J[a+16>>2])}return 0}function iXa(a,b){a=a|0;b=b|0;var c=0,d=0;Fe(b,6);c=K[a+ +31|0];d=c<<24>>24<0;lf(b,d?J[a+20>>2]:a+20|0,d?J[a+24>>2]:c);if(J[a+16>>2]){Fe(b,1);a=J[a+16>>2];kc[J[J[a>>2]+8>>2]](a,b);return}Fe(b,0)}function i8(a,b){var c=0,d=0;J[a+16>>2]=1652;J[a+12>>2]=1653;J[a+8>>2]=0;J[a>>2]=80;J[a+4>>2]=241;b=kc[J[b+4>>2]](b,964)|0;if(!b){J[a+20>>2]=b;return 64}c=a,d=Ac(b,0,964),J[c+20>>2]=d;return 0}function cAa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=vc(72);J[699344]=0;b=ha(5551,e|0,b|0,c|0,d|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){J[a>>2]=0;vd(a,b);return}a=Z()| +0;uc(e);ba(a|0);B()}function PYa(a,b){a=a|0;b=b|0;var c=0;c=(J[a+220>>2]+J[a+216>>2]|0)-1|0;c=J[J[a+204>>2]+(c>>>6&67108860)>>2]+((c&255)<<4)|0;if(!(!J[c+12>>2]|J[b+592>>2]<4)){R0(a,c);kc[J[J[a>>2]+156>>2]](a,b)}}function KGa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;b=sn(c,b,0,ro(b,47)+1|0,c+15|0);J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;fc=c+16|0}function II(a,b){var c=0;a:{b:{if(!a|!b)break b;c=V(1E15/+(a|0)/+(b|0)+.5);b=c<=2147483647;if(R(c)< +2147483648)a=~~c;else a=-2147483648;if(!b)break b;if(c>=-2147483648)break a}a=0}return a}function xf(a,b){a=a|0;b=b|0;J[a>>2]=1032;Ac(a+4|0,0,972);H[a+388|0]=255;J[a+344>>2]=1119092736;J[a+68>>2]=b;H[a+390|0]=1;J[a+336>>2]=-1;H[a+348|0]=1;nn(a,96);Yq(a,96);H[a+494|0]=1;return a|0}function tj(a){var b=0,c=0;c=J[a+4>>2];b=0-J[a+28>>2]|0;a:{if(c&16)break a;b=0;if(!(c&32))break a;b=J[a+24>>2]-J[a+16>>2]|0}a=kc[J[J[a+52>>2]+8>>2]](J[a+56>>2],0,1)|0;return(a|0)<0?-1:b+a|0}function kf(a,b,c){var d=0;a:{if((c| +0)>=0){d=J[a>>2];if((d|0)<=(c^2147483647))break a}gi(778126);d=J[a>>2]}Bh(a,c+d|0);xc(J[a+4>>2]+J[a>>2]|0,b,c);b=J[a>>2]+c|0;J[a>>2]=b;H[b+J[a+4>>2]|0]=0}function fDb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=fc-16|0;fc=c;d=K[a+20|0];e=J[a+16>>2];f=J[a+12>>2];J[c+12>>2]=K[a+21|0];J[c+8>>2]=d;J[c>>2]=f;J[c+4>>2]=e;md(b,208806,c);fc=c+16|0;return 0}function Yoa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+12>>2];d=J[c+100>>2];if(d){kc[J[J[d>>2]+12>>2]](d)|0;c=J[a+12>>2];J[c+100>>2]=0}if(!b)return 1;J[c+100>>2]= +b;kc[J[J[b>>2]+8>>2]](b)|0;return 0}function YQ(a,b,c,d,e){var f=0;f=fc-16|0;fc=f;J[f+12>>2]=e;e=rm(f+8|0,f+12|0);J[699344]=0;a=bt(a,b,c,d);b=J[699344];J[699344]=0;if((b|0)!=1){$h(e);fc=f+16|0;return a}a=Z()|0;$h(e);ba(a|0);B()}function Oe(a){var b=0;if(!(!a|!K[a+17|0]))a:{b=J[a+4>>2];if(b){b=b-1|0;J[a+4>>2]=b;if(b)break a}if(K[a+16|0])break a;b=J[J[a+20>>2]+8>>2];if(b)kc[b|0](a);b=J[a+8>>2];if(b)Vh(b);Nf(a)}}function uZ(a){var b=0,c=0,d=0;b=J[a>>2];if(b){c=b;d=J[a+4>>2];if((b|0)!=(d|0)){while(1){c= +d-56|0;if(H[d-45|0]<0)uc(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[a>>2]}J[a+4>>2]=b;uc(c)}}function pNa(a){a=a|0;var b=0,c=0;c=-1;a:{if(J[a+16>>2])break a;b=J[a+53312>>2];if((b|0)>=J[a+53308>>2]){if(!FB(a))break a;b=J[a+53312>>2]}J[a+53312>>2]=b+1;c=K[(a+b|0)+49208|0]}return c|0}function mP(a,b){a=a|0;b=b|0;var c=0;a:{if(L[b+26>>1]>23)break a;c=J[b+336>>2];if((c|0)<0)break a;Hg(a,b,c&255);return}b=J[b+340>>2];H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24}function kg(a,b){var c=0, +d=0;c=85;a:{if((b|0)<0)break a;b=J[a+8>>2]+b|0;d=J[a+20>>2];b:{if(d){if(!(kc[d|0](a,b,0,0)|0))break b;break a}if(b>>>0>M[a+4>>2])break a}J[a+8>>2]=b;c=0}return c}function hq(a){var b=0,c=0;b=fc-16|0;fc=b;H[b+14|0]=0;c=65535;a:{if(!a)break a;c=65535;if((ge(b+14|0,1,2,a)|0)!=2)break a;a=K[b+14|0]|K[b+15|0]<<8;c=a<<8|a>>>8}a=c;fc=b+16|0;return a&65535}function Uja(a,b){a=a|0;b=b|0;var c=0;b=fc-16|0;fc=b;c=1;a:{if(!oz(a))break a;if(!Bn(a,95424,1)){Uc(J[a+628>>2],71258,71795,0);c=0;break a}J[b>>2]=1;c= +ke(a,65536,b)}a=c;fc=b+16|0;return a|0}function T3(a){var b=0;a:{if(J[a+124>>2])break a;b=a+72|0;Cx(b,J[a+120>>2]!=0);iD(b,O[a+112>>3],J[a+120>>2]);if(M[a+72>>2]>2)break a;J[a+120>>2]=0}J[a+132>>2]=0;J[a+136>>2]=0;J[a+124>>2]=1}function Goa(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;var h=0;h=fc-16|0;fc=h;a=J[a+12>>2];J[h+12>>2]=J[b>>2];J[h+8>>2]=J[c>>2];Yz(a,h+12|0,h+8|0,1,d,e,f,g);fc=h+16|0;return 0}function CP(a){var b=0,c=0,d=0,e=0;c=-1;d=J[686165];a:{if((d|0)<=0)break a;b=2744672; +while(1){if(Ic(J[b+4>>2],a)){b=b+28|0;e=e+1|0;if((d|0)!=(e|0))continue;break a}break}c=J[b>>2]}return c}function r3a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=0;a:{if(K[d+4|0]|L[d>>1]<20|(K[d+5|0]|K[d+8|0]!=67))break a;if(K[d+9|0]!=118|K[d+10|0]!=65|K[d+11|0]!=108)break a;a=K[d+12|0]==3}return a|0}function n3a(a){a=a|0;var b=0;if(J[a>>2]<=0){b=ji(28);if(!b){J[a>>2]=7;return 0}J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=-1;J[b+16>>2]=0;J[b+20>>2]=0;H[b+12|0]=1}return b|0}function jua(a){a=a| +0;var b=0;J[a>>2]=2426900;a:{while(1){if(!J[a+24>>2])break a;J[699344]=0;$(5332,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}ea(0)|0;Bc();B()}return bI(a)|0}function h6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;if(J[a+8>>2]){J[e+12>>2]=J[b>>2];b=a+16|0;cM(b,e+12|0,N[c>>2],N[d>>2]);b4(J[a+8>>2],b);a=1}else a=0;fc=e+16|0;return a|0}function Ll(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[699344]=0;ca(3018,b|0,c|0,a|0);b=J[699344];J[699344]=0;if((b|0)==1){b= +Z()|0;if(H[a+11|0]<0)uc(J[a>>2]);ba(b|0);B()}}function KP(a){var b=0;b=J[a+584>>2];if(!b){fa(69724,70404,718,197508);B()}J[a+672>>2]=J[b+44>>2];J[a+668>>2]=J[b+48>>2];J[a+676>>2]=J[b+52>>2];J[a+516>>2]=J[b+56>>2];J[a+524>>2]=J[b+60>>2]}function JJ(a,b,c){var d=0,e=0;d=(c-b>>>1|0)+b|0;e=J[(d<<2)+a>>2];if(b+1>>>0<=d>>>0)b=JJ(a,b,d-1|0);else b=0;J[e+8>>2]=b;b=d+1|0;if(b>>>0<=c>>>0)a=JJ(a,b,c);else a=0;J[e+12>>2]=a;return e}function Ag(a){var b=0,c=0,d=0;b=J[a>>2];if(b){c=b;d=J[a+4>>2];if((b|0)!=(d|0)){while(1){c= +d-12|0;if(H[d-1|0]<0)uc(J[c>>2]);d=c;if((d|0)!=(b|0))continue;break}c=J[a>>2]}J[a+4>>2]=b;uc(c)}}function vpb(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[J[b+712>>2]+3080>>2];a:{if(!c)break a;b=wh(J[J[b+96>>2]+4>>2],241714);if(!b)break a;b=kc[J[c+8>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function rLa(a){a=a|0;var b=0;J[a>>2]=2348392;b=J[a+20>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function oLa(a){a=a|0;var b=0; +J[a>>2]=2348456;b=J[a+20>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function fLa(a){a=a|0;var b=0;J[a>>2]=2348648;b=J[a+20>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function dp(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;a=J[a>>2];O[a>>3]=O[b>>3];O[a+8>>3]=O[c>>3];O[a+16>>3]=O[d>>3];O[a+24>>3]=O[e>>3];O[a+ +32>>3]=O[f>>3];O[a+40>>3]=O[g>>3]}function dk(a,b){var c=0,d=0;c=-1;d=J[a+24>>2];if(!(!d|J[a+12>>2]==(d|0))){c=d-1|0;J[a+24>>2]=c;J[a+8>>2]=J[a+8>>2]&-2;J[a+60>>2]=J[a+60>>2]-1;J[a+28>>2]=J[a+28>>2]+1;H[c|0]=b;c=0}return c}function dca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a>>2];a=fc-16|0;fc=a;J[a+12>>2]=c;J[a+8>>2]=b;b=_a(d|0,a+8|0,1,a+4|0)|0;if(b){J[698583]=b;b=-1}else b=0;fc=a+16|0;return(b?-1:J[a+4>>2])|0}function cca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a>>2];a=fc-16|0;fc=a;J[a+12>>2]=c;J[a+8>> +2]=b;b=Ra(d|0,a+8|0,1,a+4|0)|0;if(b){J[698583]=b;b=-1}else b=0;fc=a+16|0;return(b?-1:J[a+4>>2])|0}function ama(a){a=a|0;var b=0,c=0;b=J[a+584>>2];if(b){J[a+672>>2]=J[b+24>>2];J[a+668>>2]=J[b+28>>2];c=J[b+12>>2];if(c)uc(c);uc(b);J[a+584>>2]=0;sr(a);return}fa(81222,70372,1469,93998);B()}function Lq(a,b,c,d,e){a:{if(!e|(!c|!d))break a;J[e>>2]=0;J[d>>2]=0;J[c>>2]=0;if(!a|(b|0)<0|J[a+12>>2]<=(b|0))break a;a=J[a>>2]+(b<<2)|0;J[c>>2]=K[a+2|0];J[d>>2]=K[a+1|0];J[e>>2]=K[a|0]}}function KG(a){var b=0;b=J[a+ +72>>2];J[a+72>>2]=b-1|b;b=J[a>>2];if(b&8){J[a>>2]=b|32;return-1}J[a+4>>2]=0;J[a+8>>2]=0;b=J[a+44>>2];J[a+28>>2]=b;J[a+20>>2]=b;J[a+16>>2]=b+J[a+48>>2];return 0}function JS(a,b,c,d){a:{if(!a)break a;b:switch(b+2|0){case 0:H[a|0]=c;return;case 1:I[a>>1]=c;return;case 2:case 3:J[a>>2]=c;return;case 5:break b;default:break a}J[a>>2]=c;J[a+4>>2]=d}}function Ica(a,b){a=a|0;b=b|0;b=J[a+584>>2];if(b){if(!(H[b+124|0]&1))kc[J[a+516>>2]](a)|0;J[b+64>>2]=J[a+596>>2];J[b+68>>2]=J[a+608>>2];return!yx(b- -64|0)| +0}fa(73294,70440,119,98032);B()}function rG(a,b,c,d,e,f,g,h,i){var j=0;j=fc-16|0;fc=j;Nj(j,b,c,d,e,f,g,h,i^-2147483648);d=J[j>>2];c=J[j+4>>2];b=J[j+12>>2];J[a+8>>2]=J[j+8>>2];J[a+12>>2]=b;J[a>>2]=d;J[a+4>>2]=c;fc=j+16|0}function lv(a){var b=0;a:{b=J[a+16>>2];b:{if(b&1){gF(a,0,0);break b}if(!(b&2))break a;Jy(a,0)}c:{if(H[a|0]&1)break c;b=J[a+12>>2];if(!b)break c;Pf(b);J[a+12>>2]=0}uc(a);return}ra();B()}function im(a,b,c){var d=0,e=0;if(!a)return 0;d=J[a>>2];a:{b:{if((c|0)<=0){if(d)break b;break a}e= +kd(1,c);if(!d)break a;if(!e)return 0;xc(e,d,(b|0)<(c|0)?b:c)}uc(d);J[a>>2]=0}return e}function dib(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+420>>2];a:{if((c|0)>0){d=J[a+424>>2];a=0;while(1){if(!Ic(b,J[(a<<2)+d>>2]))break a;a=a+1|0;if((c|0)!=(a|0))continue;break}}a=0}return a|0}function Vm(a){a=a|0;var b=0;if(!a)return-1;if(!J[a+64>>2])return 0;b=J[a+68>>2];if(b){b=J[b+4>>2]-2|0;if(!((b|0)!=16?b:0))return J[a+72>>2]+1|0;return J[a+72>>2]+2|0}return J[a+72>>2]}function VF(a,b,c,d){var e=0;e=fc-16|0;fc=e; +J[e+12>>2]=d;d=rm(e+8|0,e+12|0);J[699344]=0;a=Az(a,b,c);b=J[699344];J[699344]=0;if((b|0)!=1){$h(d);fc=e+16|0;return a}a=Z()|0;$h(d);ba(a|0);B()}function Qh(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a>>2];c=J[b>>2];if((d|0)>(c^2147483647)){gi(778126);d=J[a>>2]}Bh(a,c+d|0);xc(J[a+4>>2]+J[a>>2]|0,J[b+4>>2],c+1|0);J[a>>2]=J[a>>2]+c;return a|0}function Dca(a,b){a=a|0;b=b|0;b=J[a+584>>2];if(b){if(J[b+124>>2]!=2)kc[J[a+524>>2]](a)|0;J[b+76>>2]=J[a+596>>2];J[b+80>>2]=J[a+600>>2];return!sL(b- -64|0)|0}fa(73294,70440, +198,98070);B()}function tVa(a,b){a=a|0;b=b|0;var c=0;if(!J[a+208>>2]){c=J[a+392>>2];J[c+20>>2]=b;J[c+16>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(!b){J[c+4>>2]=489;return}b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}}function rt(a,b){var c=0;HH(a,b,b+4|0);HH(a,b+8|0,b+12|0);a=J[b>>2];c=J[b+8>>2];if((a|0)>=(c|0)){J[b+8>>2]=a;J[b>>2]=c}a=J[b+4>>2];c=J[b+12>>2];if((a|0)>=(c|0)){J[b+4>>2]=c;J[b+12>>2]=a}}function mhb(a){a=a|0;var b=0,c=0,d=0;c=fc-16|0;fc=c;d=a8(J[J[a>>2]+504>>2],c+12|0);b=a;a=J[c+12>>2];J[b+44>>2]= +a;if(a){b=J[a>>2];if(!(!b|!J[b+96>>2]))J[b+88>>2]=a}fc=c+16|0;return d|0}function hEa(a,b,c){a=a|0;b=b|0;c=c|0;a=fc-32|0;fc=a;a=Qc(a+8|0,2392693,2387711,1745,2397585,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)B();b=Z()|0;Kc(a);ba(b|0);B()}function fQ(a,b,c,d){var e=0,f=0,g=0;e=c-b|0;a:{if((e|0)<=9){g=e;e=P(32-S(d|1)|0,1233)>>12;f=61;if((g|0)<(e+(M[(e<<2)+2640288>>2]<=d>>>0)|0))break a}c=DF(b,d);f=0}J[a+4>>2]=f;J[a>>2]=c}function c5a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a4(J[d>>2], ++J[a>>2]*.015625,+J[a+4>>2]*.015625,+J[b>>2]*.015625,+J[b+4>>2]*.015625,+J[c>>2]*.015625,+J[c+4>>2]*.015625);J[d+4>>2]=1;return 0}function XG(a,b){a=a|0;b=b|0;if((a|0)!=(b|0)){O[a+32>>3]=O[b+32>>3];O[a+8>>3]=O[b+8>>3];O[a+48>>3]=O[b+48>>3];O[a+24>>3]=O[b+24>>3];O[a+16>>3]=O[b+16>>3];O[a+40>>3]=O[b+40>>3]}return a|0}function Wka(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=J[a+84>>2];d=c+256|0;f=Cg(e,0,d);d=f?f-e|0:d;c=c>>>0>d>>>0?d:c;xc(b,e,c);b=e+d|0;J[a+84>>2]=b;J[a+8>>2]=b;J[a+4>>2]=c+e;return c| +0}function Tu(a,b){var c=0;a:{c=J[a+12>>2];if((c|0)==(J[a+8>>2]+(J[a+16>>2]<<3)|0)){a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=130;return}J[c>>2]=b;b=J[a+12>>2];J[b+4>>2]=2;J[a+12>>2]=b+8}}function Sea(a,b){a=a|0;b=b|0;J[a>>2]=2641388;J[a>>2]=2641516;if(K[b+11|0]>>>7|0)b=J[b>>2];J[699344]=0;aa(7241,a+4|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ba(Z()|0);B()}function PK(a,b){var c=0,d=0;a:{if(!a|!b)break a;d=K[a|0];if((d|0)==58)break a;while(1){if(!d)return 0;if((d|0)!=58){c=c+1|0;d=K[c+ +a|0];continue}break}J[b>>2]=c;c=(a+c|0)+1|0}return c}function OE(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:{if(!b)break a;d=J[a+4>>2];if(!d)break a;e=J[a+44>>2];if(!e)break a;f=b;b=e<<2;c=c<<2;xc(d+40|0,f,b>>>0>>0?b:c);H[a+481|0]=0}}function Kg(a,b){var c=0;a:{c=J[a+12>>2];if((c|0)==(J[a+8>>2]+(J[a+16>>2]<<3)|0)){a=J[a+4>>2];if(!a|J[a>>2])break a;J[a>>2]=130;return}J[c>>2]=b;b=J[a+12>>2];J[b+4>>2]=0;J[a+12>>2]=b+8}}function Jta(a,b,c){a=a|0;b=b|0;c=c|0;a=fc-32|0;fc=a;a=Qc(a+8|0,2388669,2386101, +1370,2432200,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)B();b=Z()|0;Kc(a);ba(b|0);B()}function HV(a,b){var c=0;GH(a,b,b+4|0);GH(a,b+8|0,b+12|0);a=J[b>>2];c=J[b+8>>2];if((a|0)>=(c|0)){J[b+8>>2]=a;J[b>>2]=c}a=J[b+4>>2];c=J[b+12>>2];if((a|0)>=(c|0)){J[b+4>>2]=c;J[b+12>>2]=a}}function Apb(a,b){a=a|0;b=b|0;var c=0;c=bm(255312,b);a:{if(c)break a;c=0;if(!a)break a;a=J[a+4>>2];if(!a)break a;a=wh(a,239709);if(!a)break a;c=kc[J[J[a>>2]+32>>2]](a,b)|0}return c|0}function xCb(a,b){a=a|0;b= +b|0;var c=0,d=0;c=fc-16|0;fc=c;if(J[a+16>>2])while(1){J[c>>2]=K[J[a+12>>2]+d|0];md(b,210429,c);d=d+1|0;if(d>>>0>2])continue;break}fc=c+16|0;return 0}function s8a(a){a=a|0;var b=0;J[a+4>>2]=0;J[a>>2]=349644;b=vc(28);J[b+4>>2]=0;J[b+8>>2]=0;H[b+2|0]=0;I[b>>1]=0;J[b+20>>2]=0;J[b+24>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[a+8>>2]=b;return a|0}function oA(a){var b=0,c=0;c=J[a+28>>2];a:{if((c+16|0)<=4080){b=J[a+24>>2];break a}b=vc(8164);J[b>>2]=J[a+24>>2];c=0;Ac(b+4|0,0,8160);J[a+24>>2]=b}J[a+28>>2]= +c+16;return((c<<1)+b|0)+4|0}function jia(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;g=fc-16|0;fc=g;J[g+8>>2]=624576549;J[g+12>>2]=1394948685;h=a;a=g+16|0;b=vo(h,b,c,d,e,f,g+8|0,a);fc=a;return b|0}function gFa(a,b,c){a=a|0;b=b|0;c=c|0;a=fc-32|0;fc=a;a=Qc(a+8|0,2387971,2387108,333,2396384,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)B();b=Z()|0;Kc(a);ba(b|0);B()}function fFa(a,b,c){a=a|0;b=b|0;c=c|0;a=fc-32|0;fc=a;a=Qc(a+8|0,2388512,2387108,340,2396432,0);J[699344]= +0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)B();b=Z()|0;Kc(a);ba(b|0);B()}function _Fa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=2385168;c=vc(20);J[699344]=0;b=aa(5144,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+4>>2]=b;return a|0}a=Z()|0;uc(c);ba(a|0);B()}function Znb(a){a=a|0;var b=0;b=J[a+4>>2];J[b+180>>2]=-21;J[b+184>>2]=0;J[b+196>>2]=21;J[b+200>>2]=0;J[b+188>>2]=0;J[b+192>>2]=0;kc[J[J[J[a+12>>2]+56>>2]+8>>2]](J[a+52>>2],0,0);return 0}function VIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0, +f=0,g=0;d=-1;e=J[c+8>>2];f=J[c+4>>2];if(e>>>0>>0){g=a;a=f-e|0;d=a>>>0>>0?a:b;xc(g,J[c>>2]+e|0,d);J[c+8>>2]=J[c+8>>2]+d}return d|0}function UIa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=-1;e=J[c+8>>2];f=J[c+4>>2];if(e>>>0>>0){g=a;a=f-e|0;d=a>>>0>>0?a:b;xc(J[c>>2]+e|0,g,d);J[c+8>>2]=J[c+8>>2]+d}return d|0}function N1(a){var b=0,c=0,d=0;d=-1;a:{if(!a)break a;b=J[a+64>>2];if(!b)break a;d=0;if(J[b+4>>2]!=1)break a;c=J[b+48>>2];if(!c){c=J[b+44>>2];if(!c)break a}J[a+68>>2]=c;d=1}return d} +function Ic(a,b){var c=0,d=0;c=K[a|0];d=K[b|0];a:{if(!c|(c|0)!=(d|0))break a;while(1){d=K[b+1|0];c=K[a+1|0];if(!c)break a;b=b+1|0;a=a+1|0;if((c|0)==(d|0))continue;break}}return c-d|0}function Fpb(a,b){a=a|0;b=b|0;var c=0,d=0;b=J[a>>2];c=J[b+712>>2];if(!J[c+1188>>2])return 163;d=J[J[c+3084>>2]+4>>2];if(!d)return 7;return kc[d|0](J[b+100>>2],a,J[c+20>>2],1649,0,b)|0}function $1(a){var b=0;b=a;a=kc[J[J[a+4>>2]>>2]](a,1,32)|0;J[b+404>>2]=a;J[a+28>>2]=0;J[a+24>>2]=413;J[a+20>>2]=414;J[a+16>>2]=415;J[a+ +12>>2]=416;J[a+8>>2]=417;J[a+4>>2]=418;J[a>>2]=419}function sq(a,b){var c=0;c=fc-16|0;fc=c;a:{if(b){J[c>>2]=b;Hc(0,0,0,0,0,29,2,3,b,0,0,0,32879,c);break a}Hc(0,0,0,0,0,29,2,3,0,0,0,0,36029,0)}if(!(J[a+32>>2]|!a))J[a+32>>2]=2;fc=c+16|0}function rw(a){var b=0,c=0;a:{b:{if(!a)break b;b=V(1E10/+(a|0)+.5);c=b<=2147483647;if(R(b)<2147483648)a=~~b;else a=-2147483648;if(!c)break b;if(b>=-2147483648)break a}a=0}return a}function qk(a,b,c){var d=0;a:{if(b>>>0<=2147483644){d=b+3|0;if((d|0)>2])break a}J[c>> +2]=0;return 0}c=b;b=J[a+8>>2];a=c+b|0;return(K[a+1|0]<<8|K[a|0]<<16|K[a+2|0])<<8|K[b+d|0]}function iua(a){a=a|0;var b=0;J[a>>2]=2426900;a:{while(1){if(!J[a+24>>2])break a;J[699344]=0;$(5332,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)continue;break}ea(0)|0;Bc();B()}uc(bI(a))}function aD(a){var b=0;a:{if(!a)break a;b=J[a+4>>2];if(b){b=b-1|0;J[a+4>>2]=b;if(b)break a}if(K[a+16|0])break a;b=J[J[a+20>>2]+8>>2];if(b)kc[b|0](a);b=J[a+8>>2];if(b)Vh(b);Nf(a)}}function Xu(a,b){var c=0,d=0;d=J[a+4>>2];c=J[a+12>> +2];c=(c|0)<0?(c|0)<(d|0)?d:c:d-c|0;if(!b)b=(P(c,12)|0)/10|0;J[a+28>>2]=b;J[a+24>>2]=(b-c|0)/2;J[a+20>>2]=J[a+8>>2]+(J[a+16>>2]/-2|0)}function VZ(a,b,c){var d=0,e=0;d=J[b+52>>2];if(J[b>>2]!=2){if(J[d+8>>2]>0)while(1){VZ(a,J[J[d>>2]+(e<<2)>>2],c);e=e+1|0;d=J[b+52>>2];if((e|0)>2])continue;break}return}ZJ(c,d)}function JPa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=2319472;c=vc(8);J[699344]=0;b=aa(3349,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+4>>2]=b;return a|0}a=Z()|0;uc(c);ba(a|0);B()}function tD(a){var b= +0,c=0,d=0;c=J[a>>2];if(c){d=c;b=J[a+4>>2];if((b|0)!=(c|0)){while(1){b=b-8|0;kc[J[J[b>>2]+16>>2]](b)|0;if((c|0)!=(b|0))continue;break}d=J[a>>2]}J[a+4>>2]=c;uc(d)}}function qLa(a){a=a|0;var b=0;J[a>>2]=2348392;b=J[a+20>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}uc(a)}function nLa(a){a=a|0;var b=0;J[a>>2]=2348456;b=J[a+20>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b); +continue}break}uc(a)}function n0(a){var b=0,c=0,d=0,e=0;c=J[a>>2];if((c|0)>0)while(1){e=J[a+4>>2]+d|0;b=K[e|0];if(b-65>>>0<26){H[e|0]=b-65>>>0<26?b|32:b;c=J[a>>2]}d=d+1|0;if((d|0)<(c|0))continue;break}}function gjb(a,b){a=a|0;b=b|0;var c=0;J[a+116>>2]=b;c=J[a>>2];if(H[c+8|0]&1){io(c,b);TM(a);return 0}b=kc[J[J[c+540>>2]+108>>2]](c,b,a+12|0)|0;if(!b)return 0;J[a+116>>2]=-1;return b|0}function eLa(a){a=a|0;var b=0;J[a>>2]=2348648;b=J[a+20>>2];if(b)uc(Zc(b));J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+ +12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}uc(a)}function VRa(a){a=a|0;var b=0;J[a>>2]=2217988;b=J[a+12>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ea(0)|0;Bc();B()}function VOa(a,b,c,d,e,f,g,h,i){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;if(h){kc[J[J[d>>2]+20>>2]](d);kc[J[J[d>>2]+48>>2]](d,P((e+7|0)/8|0,f))|0;kc[J[J[d>>2]+24>>2]](d)}}function Pc(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;while(1){e=(d<<3)+b|0; +f=J[e>>2];if(!f)break a;if((a|0)==(f|0))return J[e+4>>2];d=d+1|0;if((d|0)!=(c|0))continue;break}}return 0}function P$a(a){a=a|0;var b=0;J[a>>2]=769860;b=J[a+4>>2];J[699344]=0;$(3243,b|0);b=J[699344];J[699344]=0;if((b|0)!=1){J[a+4>>2]=0;b=J[a+8>>2];if(b)uc(b);uc(a);return}ea(0)|0;Bc();B()}function MG(a,b,c){var d=0,e=0,f=0;a:{if(c)while(1){e=c>>>1|0;d=(e<<2)+b|0;f=UU(a,d);b:{if((f|0)<0){c=e;break b}if(!f)break a;b=d+4|0;c=(e^-1)+c|0}if(c)continue;break}d=0}return d}function L_(a,b){var c=0,d=0;c=J[a+ +8>>2];c=kc[J[J[c>>2]+28>>2]](c)|0;a:{if((c|0)==-1)break a;a=J[a+8>>2];a=kc[J[J[a>>2]+28>>2]](a)|0;if((a|0)==-1)break a;J[b>>2]=a|c<<8;d=1}return d}function Fh(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+3>>>0){c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);c=c<<24|(c&65280)<<8|(c>>>8&65280|c>>>24);b=b+4|0}J[a+32>>2]=b;return c}function Fc(a){var b=0,c=0;b=fc-16|0;fc=b;if((gf(a,b+12|0,4)|0)==4){a=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);c=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}fc=b+ +16|0;return c}function DMa(a){a=a|0;var b=0;J[a>>2]=2344672;b=J[a+8>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a);return}ea(0)|0;Bc();B()}function lHa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+64>>2]=2381836;J[a>>2]=2381796;J[a+12>>2]=2381648;J[a+8>>2]=2381816;if(H[a+55|0]<0)uc(J[a+44>>2]);ai(a+12|0);bg(a- -64|0);return a|0}function khb(a){a=a|0;var b=0,c=0,d=0;d=fc-16|0;fc=d;b=J[a+4>>2];c=J[b+504>>2];a:{if(!J[b+84>>2]){c=c+84|0;b=0;break a}b=c; +c=d+12|0;b=BN(b,c)}J[a+160>>2]=J[c>>2];fc=d+16|0;return b|0}function cN(a){a=a|0;var b=0,c=0;b=J[a+8>>2];if(b){a=J[a+16>>2];c=J[a+4>>2];J[b+108>>2]=J[a>>2];J[b+112>>2]=c;J[b+124>>2]=J[a+16>>2];c=J[a+12>>2];J[b+116>>2]=J[a+8>>2];J[b+120>>2]=c}}function _ba(a){a=a|0;var b=0;b=J[a+32>>2];if(b){uc(b);J[a+32>>2]=0}J[a+36>>2]=0;b=J[a+40>>2];if(b){uc(b);J[a+40>>2]=0}J[a+44>>2]=0;b=J[a+48>>2];if(b){uc(b);J[a+48>>2]=0}J[a+52>>2]=0}function Zfa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=fc-16|0;fc=a;J[a+12>> +2]=e;J[a+8>>2]=d-c;b=fc-16|0;fc=b;fc=b+16|0;fc=a+16|0;b=a+8|0;a=a+12|0;return J[(M[b>>2]>2]?b:a)>>2]}function NC(a){var b=0;if(a){b=J[a+12>>2];a:{b:{c:{if((b|0)==3){b=J[a+16>>2];if(!b)break c;break b}if((b|0)==2)break a}b=J[a>>2];if(!b)break a}kc[J[663199]](b)}kc[J[663199]](a)}}function rsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1883789683){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];H[b+44|0]=K[c+44|0];return 0}function _rb(a,b,c){a=a|0;b=b|0;c=c| +0;if(J[c>>2]!=1397247831){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];I[b+34>>1]=L[c+34>>1];I[b+36>>1]=L[c+36>>1];H[b+38|0]=K[c+38|0];return 0}function Zrb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1413829197){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];return 0}function Trb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1883521383){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];J[b+40>>2]=J[c+40>>2];H[b+44|0]=K[c+44|0]; +return 0}function L2(a){a=a|0;var b=0,c=0;c=-102;a:{if(!a)break a;b=J[a+224>>2];if(!b)break a;c=J[b>>2];if(c)uc(c);c=0;J[b>>2]=0;if(J[b+72>>2]==8)Jl(b+4|0);uc(b);J[a+224>>2]=0}return c|0}function Kga(){var a=0;a:{J[699803]=0;J[699802]=2639640;J[699802]=2634480;J[699344]=0;_(6964,2799216)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699802]=2637040;break a}ba(Z()|0);B()}}function JMa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if(J[a+8>>2]|(b|0)<3)break a;a=J[a+4>>2];a=kc[J[J[a>>2]+60>>2]](a,b,c,d)|0; +if(!a)break a;od(od(a,c),832645);e=a}return e|0}function Iga(){var a=0;a:{J[699807]=0;J[699806]=2639640;J[699806]=2634480;J[699344]=0;_(6964,2799232)|0;a=J[699344];J[699344]=0;if((a|0)!=1){J[699806]=2637196;break a}ba(Z()|0);B()}}function Fp(a){var b=0,c=0;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a=fc-16|0;fc=a;J[a+12>>2]=(c<<2)+b;fc=a+16|0;return J[a+12>>2]}function EMa(a){a=a|0;var b=0;J[a>>2]=2344672;b=J[a+8>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)!=1){b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function Deb(a,b){a=a|0;b=b|0;var c=0;a:{c=J[a+16>>2];a=J[c+1580>>2];if((a|0)==(b|0))break a;if(a)kc[J[J[a>>2]+12>>2]](a)|0;J[c+1580>>2]=b;if(!b)break a;kc[J[J[b>>2]+8>>2]](b)|0}}function zJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;if(c)while(1){wd(a,d+12|0,4);J[b>>2]=J[d+12>>2];b=b+4|0;a=a+4|0;e=e+1|0;if((e|0)!=(c|0))continue;break}fc=d+16|0}function sga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b| +0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[(a<<2)+2633072>>2];else a=0;J[d>>2]=a;d=d+4|0;b=b+4|0;continue}break}return c|0}function rO(a){var b=0;a:{if(Fc(a))break a;a=Fc(a);if((a|0)!=1399614836){if((a|0)==1399210572)break a;if((a|0)==1349665356)return 1;fa(219546,219859,828,225219);B()}b=2}return b}function pFa(a){a=a|0;var b=0,c=0;b=kc[J[J[a>>2]+16>>2]](a)|0;if(!(kc[J[J[a>>2]+20>>2]](a,0,2,1)|0))return-1;c=kc[J[J[a>>2]+16>>2]](a)|0;kc[J[J[a>>2]+20>>2]](a,b,0,0)|0;return c|0}function W_a(a,b,c){a=a| +0;b=b|0;c=c|0;var d=0;if(!a)return 0;d=J[a+36>>2];a:{if(d){d=J[d+4>>2];if(d)break a}d=J[a+180>>2]}c=tu(c,d);a=KC(c,b,a);if(c)kc[J[663199]](c);return a|0}function EJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;if(c)while(1){wd(a,d+12|0,2);N[b>>2]=M[d+12>>2];b=b+4|0;a=a+2|0;e=e+1|0;if((e|0)!=(c|0))continue;break}fc=d+16|0}function Dsa(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+3312>>2];b=J[(a+(K[c|0]<<2)|0)+44>>2]+J[a+20>>2]|0;a:{if(b>>>0<=M[a+28>>2]){J[a+20>>2]=b;a=H[c|0]&1;break a}a=qh(a,c,b)}return(a| +0)!=0|0}function DJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;if(c)while(1){wd(a,d+12|0,4);N[b>>2]=M[d+12>>2];b=b+4|0;a=a+4|0;e=e+1|0;if((e|0)!=(c|0))continue;break}fc=d+16|0}function AJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;if(c)while(1){wd(a,d+12|0,2);J[b>>2]=J[d+12>>2];b=b+4|0;a=a+2|0;e=e+1|0;if((e|0)!=(c|0))continue;break}fc=d+16|0}function p3(a){var b=0,c=0;if(a>>>0<=4294963199){b=kd(1,20);J[b+8>>2]=a;J[b+12>>2]=-1414746709;c=Dc(a+4096|0);J[b+4>>2]=c;if(!c){uc(b);return 0}Ac(c, +0,a);Ac(a+c|0,0,4096)}return b}function k0a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(a){a:{if(c&8){c=0;if(!J[a+20>>2])break a;J[a+4>>2]=65535;d=a,e=Dc(65535),J[d>>2]=e;break a}c=J[a+4>>2]}J[a+8>>2]=c}return a|0}function _Wa(a,b){a=a|0;b=b|0;var c=0;Fe(b,0);To(a,b);c=J[a+8>>2];if(c&65536){Fe(b,K[a+228|0]);c=J[a+8>>2]}if(c&131072){Fe(b,K[a+230|0]);c=J[a+8>>2]}if(c&262144)Fe(b,K[a+229|0])}function _2a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(K[a+29|0]&128){kc[J[b+8>>2]](J[b>>2],0,55295);kc[J[b+8>>2]](J[b>> +2],57344,1114111);return}a=J[a+24>>2];Xk(a,b,c,K[a+200|0]==219,d)}function Zs(a){var b=0,c=0;b=J[686007];c=a+7&-8;a=b+c|0;a:{if(a>>>0<=b>>>0?c:0)break a;if(a>>>0>lc()<<16>>>0)if(!(cc(a|0)|0))break a;J[686007]=a;return b}J[698583]=48;return-1}function Qsa(a,b){a=a|0;b=b|0;J[a+212>>2]=0;J[a+204>>2]=0;J[a+236>>2]=0;H[a+49|0]=1;b=J[a+220>>2];J[a+208>>2]=b;J[a+232>>2]=b;J[a+228>>2]=b;J[a+224>>2]=b;J[a+200>>2]=J[a+216>>2]+1}function Nkb(a,b){a=a|0;b=b|0;J[a+16>>2]=b;b=K[b+6|0]|K[b+7|0]<<8|(K[b+8|0]<<16| +K[b+9|0]<<24);J[a+28>>2]=0;J[a+32>>2]=0;J[a+24>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);return 0}function p6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=O[b>>3];g=O[d>>3];a=g!=0;f=O[c>>3];if(!(!a&f==0)){if(!a)return+(f*e/72);if(f==0)return+(e*72/g);e=f*e/g}return+e}function lEa(a,b){a=a|0;b=b|0;a=fc-32|0;fc=a;a=Qc(a+8|0,2392115,2387711,1290,2397536,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)B();b=Z()|0;Kc(a);ba(b|0);B()}function kqa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d| +0;e=e|0;var f=0,g=0,h=0;b=fc-16|0;fc=b;h=J[c>>2];f=K[c+11|0];g=f<<24>>24<0;J[b+12>>2]=g?J[c+4>>2]:f;SU(a,g?h:c,b+12|0,d,e);fc=b+16|0}function URa(a){a=a|0;var b=0;J[a>>2]=2217988;b=J[a+12>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function Tw(a,b,c){var d=0;a:{if(b>>>0<=2147483646){d=b+1|0;if((d|0)>2])break a}J[c>>2]=0;return 0}a=J[a+8>>2];b=H[a+b|0];a=(b&255)<<8|K[a+d|0];return(b|0)<0?a|-65536:a}function Kd(a, +b){a=a|0;b=b|0;var c=0;c=J[a>>2];if((c|0)==2147483647){gi(778126);c=J[a>>2]}Bh(a,c+1|0);c=J[a>>2];J[a>>2]=c+1;H[c+J[a+4>>2]|0]=b;H[J[a+4>>2]+J[a>>2]|0]=0;return a|0}function IAb(a,b){a=a|0;b=b|0;I[a+1052>>1]=L[b+28>>1];I[a+1054>>1]=L[b+30>>1];I[a+1056>>1]=L[b+32>>1];H[a+1058|0]=K[b+34|0];I[a+1060>>1]=L[b+36>>1];H[a+1062|0]=K[b+38|0];return 0}function HQ(a,b){var c=0,d=0;c=J[a+4>>2];a:{while(1){if((b|0)==(c|0))break a;J[699344]=0;c=c-4|0;d=J[699344];J[699344]=0;if((d|0)!=1)continue;break}ea(0)|0;Bc(); +B()}J[a+4>>2]=b}function Dpb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-1;a:{if((b|0)==-1)break a;if(!(kc[J[J[a>>2]+20>>2]](a,b,c)|0))break a;d=b;if(!c)break a;d=kc[J[J[a>>2]+24>>2]](a)|0}return d|0}function Crb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[c+32>>2];J[b+32>>2]=d;if(d){d=kc[J[a+152>>2]](d)|0;J[b+36>>2]=d;if(!d){Jc(a,1,0,0);return 1}xc(d,J[c+36>>2],J[b+32>>2])}return 0}function BO(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+4>>2];a=(f|0)!=0&J[a+44>>2]!=0;if(a){b=(b<<2)+f|0;H[c|0]=K[b+42| +0];H[d|0]=K[b+41|0];H[e|0]=K[b+40|0]}return a|0}function vda(a,b){a=a|0;b=b|0;b=kc[J[J[a+584>>2]+904>>2]](a,b)|0;if(b>>>0>2]){a=L[a+206>>1]<<3;if(b>>>0<0-a>>>0)b=((a+b|0)-1>>>0)/(a>>>0)|0;else b=0;b=P(b,a)}return b|0}function ts(a){var b=0,c=0,d=0;b=kd(1,20);a:{if(!b)break a;J[b+8>>2]=1;a=(a|0)<=0?20:a;J[b+4>>2]=a;c=kd(a,4);J[b+12>>2]=c;if(!c)break a;a=kd(a,4);J[b+16>>2]=a;d=a?b:0}return d}function ova(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;J[e+12>>2]=0;b=Ig(J[a+12>>2]+b| +0,e+12|0,d);d=c;c=J[e+12>>2];J[d>>2]=c?c-J[a+12>>2]|0:-1;fc=e+16|0;return b|0}function nva(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;J[e+12>>2]=0;b=Bz(J[a+12>>2]+b|0,e+12|0,d);d=c;c=J[e+12>>2];J[d>>2]=c?c-J[a+12>>2]|0:-1;fc=e+16|0;return b|0}function mib(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[b+552>>2];a:{if(!c)break a;b=wh(J[J[b+96>>2]+4>>2],241284);if(!b)break a;b=kc[J[c+4>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function mC(a){var b=0,c=0,d=0;a:{if(!a)break a;b=J[a+56>>2];if((b|0)<= +0)break a;c=b-1|0;J[a+56>>2]=c;d=J[a+64>>2];J[a+52>>2]=(b|0)!=1?J[((b<<2)+d|0)-8>>2]:0;J[(c<<2)+d>>2]=0}}function kHa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+64>>2]=2381836;J[a>>2]=2381796;J[a+12>>2]=2381648;J[a+8>>2]=2381816;if(H[a+55|0]<0)uc(J[a+44>>2]);ai(a+12|0);bg(a- -64|0);uc(a)}function _Pa(a){a=a|0;var b=0;J[a>>2]=2317872;J[699344]=0;$(3624,a|0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a);return}ea(0)|0;Bc();B()}function Qj(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a>> +2];if(a)return kc[J[J[a>>2]+36>>2]](a,b,c)|0;a=0;b=J[b>>2];a:{if(!b|!c)break a;b=J[b+12>>2];if(!b)break a;a=K[b|0]?-1:0}return a|0}function Ehb(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[b+320>>2];a:{if(!c)break a;b=wh(J[J[b+96>>2]+4>>2],240774);if(!b)break a;b=kc[J[c+4>>2]](b)|0;J[J[a+156>>2]+36>>2]=b}return 0}function nob(a,b){a=a|0;b=b|0;var c=0;c=18;a:{if(J[b+72>>2]!=1869968492)break a;c=J[a>>2];a=a+20|0;c=W7(c,I[b+110>>1],I[b+108>>1],a);if(c)break a;V7(b+108|0,a);c=0}return c|0}function kp(a,b){var c= +0;a:{if(!a|!b)break a;c=J[a+4>>2];if(!c)break a;a=I[a+2>>1];if((a|0)<=0)break a;a=(a<<3)+c|0;while(1){fE(c,b);c=c+8|0;if(a>>>0>c>>>0)continue;break}}}function MNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((c|0)<=0)return 0;d=J[a+32>>2];c=J[a+28>>2]?c>>>0>d>>>0?d:c:c;J[a+32>>2]=d-c;a=J[a+24>>2];return kc[J[J[a>>2]+40>>2]](a,b,c)|0}function Hp(a){var b=0,c=0;if(K[a+11|0]>>>7|0)b=J[a>>2];else b=a;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;a=fc-16|0;fc=a;J[a+12>>2]=b+c;fc=a+16|0;return J[a+12>>2]} +function Dea(a){a=a|0;var b=0,c=0,d=0;b=fc-224|0;fc=b;c=b+16|0;kc[J[J[a>>2]+12>>2]](a,c);d=J[J[a+12>>2]+628>>2];J[b>>2]=c;Uc(d,90047,90068,b);nf(J[J[a+12>>2]+584>>2]+4|0,1);B()}function CUa(a){a=a|0;var b=0;J[a>>2]=2216940;b=J[a+1048>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+1044>>2];if(b)uc(Zc(b));uc(a);return}ea(0)|0;Bc();B()}function Bg(a,b,c){var d=0;d=fc-16|0;fc=d;J[699344]=0;J[d+12>>2]=b;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[c>>2];b=J[699344];J[699344]=0;if((b|0)!=1){fc=d+16| +0;return a}ea(0)|0;Bc();B()}function BJa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;if(c)while(1){qZ(a,d+8|0);N[b>>2]=O[d+8>>3];b=b+4|0;a=a+8|0;e=e+1|0;if((e|0)!=(c|0))continue;break}fc=d+16|0}function $L(a){a=a|0;J[a+4>>2]=1;J[a>>2]=347776;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=352516;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;return a|0}function zw(a,b){var c=0,d=0;a:{if(!a|!b)break a;c=J[a+672>>2];b:{if(c){c=kc[c|0](a,b)|0;break b}c=Dc(b)}if(!c){if(K[a+206| +0]&16)break a;Ld(a,57648);B()}d=Ac(c,0,b)}return d}function lmb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=d;d=0;a=J[(!a|J[a>>2]!=1381173770?d:J[a+4>>2])>>2];f=e,g=kc[J[J[a>>2]+12>>2]](a,b,1,c,0,0)|0,J[f>>2]=g;return 1}function eKa(a,b){a=a|0;b=b|0;b=J[a+28>>2];if(b>>>0>2])while(1){nZ(a,J[a+24>>2]+(P(J[a+20>>2],b)<<2)|0);b=b+1|0;if(b>>>0>2])continue;break}uc(J[a>>2]);uc(a)}function cl(a){var b=0,c=0,d=0;b=kd(1,20);a:{if(!b)break a;J[b+8>>2]=1;a=(a|0)<=0?20:a;J[b+4>>2]=a;c= +kd(a,4);J[b+12>>2]=c;if(!c)break a;a=Kq(a);J[b+16>>2]=a;d=a?b:0}return d}function aQa(a){a=a|0;var b=0;J[a>>2]=2317872;J[699344]=0;$(3624,a|0);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}ea(0)|0;Bc();B()}function a5a(a){a=a|0;var b=0,c=0;b=J[a+188>>2];if(!b)return 0;b=ho(b,2);a:{if(!(!b|L[b>>1]==65535)){c=1;if(L[b+4>>1]>799)break a}c=(K[J[a+188>>2]+12|0]&2)>>>1|0}return c|0}function Z4(a){a=a|0;var b=0,c=0,d=0;a:{b:{if(a){b=Yc(a);if((b|0)==-1)break a;c= +Dc(b+1|0);if(!c)break a;a=xc(c,a,b);break b}a=Dc(1);if(!a)break a}d=a;H[a+b|0]=0}return d|0}function LBb(a){a=a|0;var b=0,c=0,d=0,e=0;c=J[J[a+40>>2]+16>>2];b=J[a+52>>2];d=kc[J[J[b>>2]+20>>2]](b,2)|0;e=a;a=(c|0)<257;Uaa(e,kc[J[J[b>>2]+20>>2]](b,a?1:2)|0,(a?-3:-4)+d|0)}function yq(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var h=0;h=vc(48);J[a>>2]=h;O[h+40>>3]=g;O[h+32>>3]=f;O[h+24>>3]=e;O[h+16>>3]=d;O[h+8>>3]=c;O[h>>3]=b;return a|0}function yp(a,b,c,d){var e=0;if(!((a|0)>(c|0)|(b|0)>(d|0))){e= +Dk(d-b|0,c-a|0);if(e){J[e+16>>2]=d;J[e+12>>2]=c;J[e+8>>2]=b;J[e+4>>2]=a}return e}fa(197924,198617,89,206740);B()}function y7(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=6;a:{if(J[b+72>>2]!=J[a+16>>2])break a;if(c)kp(b+108|0,c);e=0;if(!d)break a;Xh(b+108|0,J[d>>2],J[d+4>>2])}return e|0}function k5(a){a=a|0;var b=0;J[a>>2]=349612;b=vc(32);J[b>>2]=0;J[b+4>>2]=0;J[b+28>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;I[b+24>>1]=0;J[a+4>>2]=b;return a|0}function c3(a,b){a=a|0;b=b|0;var c=0;c=J[a+ +28>>2]&15;a:{b:{if(b>>>0<=1){J[a+48>>2]=!c<<3;if((b|0)==1)break a;if((c|0)==1)break b;break a}if((c|0)!=1)break a}J[a+52>>2]=1}}function bO(a,b){var c=0;a:{if(!a|(b|0)<0)break a;if(J[a>>2]<=(b|0))return 0;a=J[J[a+8>>2]+(b<<2)>>2];if(!a)break a;b:{if(a){J[a+8>>2]=J[a+8>>2]+1;break b}a=0}c=a}return c}function Ueb(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;g=1;a:{if(!b)break a;a=J[a+16>>2];if(!a)break a;B5(a,b,O[c>>3],O[d>>3],O[e>>3],O[f>>3]);g=0}return g|0}function PR(a){var b=0,c=0;b= +J[a>>2];if(b){c=J[b+12>>2];a:{if((c|0)==J[b+16>>2]){b=kc[J[J[b>>2]+36>>2]](b)|0;break a}b=J[c>>2]}if((b|0)!=-1)return!J[a>>2];J[a>>2]=0}return 1}function DUa(a){a=a|0;var b=0;J[a>>2]=2216940;b=J[a+1048>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1){b=J[a+1044>>2];if(b)uc(Zc(b));return a|0}ea(0)|0;Bc();B()}function CH(){var a=0,b=0;a=fc-32|0;fc=a;a=Qc(a+8|0,2393824,2385973,1819,2426359,0);J[699344]=0;$(5179,a|0);b=J[699344];J[699344]=0;if((b|0)!=1)B();b=Z()|0;Kc(a);ba(b|0);B()}function yd(a, +b){a=a|0;b=b|0;var c=0,d=0;d=J[a+20>>2];a:{b:{if(d){c=85;if(!(kc[d|0](a,b,0,0)|0))break b;break a}c=85;if(M[a+4>>2]>>0)break a}J[a+8>>2]=b;c=0}return c|0}function tnb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;J[c>>2]=0;d=6;a:{if(!b|!a)break a;b=b-1|0;if(b>>>0>=M[a+408>>2])break a;J[c>>2]=J[(J[a+416>>2]+(b<<4)|0)+4>>2];d=0}return d|0}function qga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{while(1){if((c|0)==(d|0))break a;a=J[c>>2];if(!(a>>>0>127|!(J[(a<<2)+2633072>>2]&b))){c=c+4|0;continue}break}d=c}return d|0} +function qF(){var a=0;a=Dc(40);if(a){J[a>>2]=0;J[a+4>>2]=0;H[a+36|0]=1;J[a+24>>2]=0;J[a+28>>2]=16384;J[a+16>>2]=0;J[a+20>>2]=0;J[a+32>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}return a}function l0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!b)return 0;a=J[b+4>>2];e=J[b+12>>2];a=a>>>0>>0?a-e|0:d;xc(c,e+J[b>>2]|0,a);J[b+12>>2]=a+J[b+12>>2];return a|0}function b9(){var a=0,b=0;b=kd(256,1);if(b)while(1){H[a+b|0]=a<<1&64|(a<<2&32|(a<<3&16|(a>>>3&8|(a>>>2&4|(a&129|a>>>1&2)))));a=a+1|0;if((a|0)!=256)continue; +break}return b}function SKa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+16>>2];a=J[c+40>>2];if(!a|J[c+48>>2])a=d;else{a=J[a>>2];if(a)a=J[J[bj(J[a+28>>2],b+1|0)+12>>2]+168>>2];else a=0}return a|0}function RR(a){var b=0,c=0;b=J[a>>2];if(b){c=J[b+12>>2];a:{if((c|0)==J[b+16>>2]){b=kc[J[J[b>>2]+36>>2]](b)|0;break a}b=K[c|0]}if((b|0)!=-1)return!J[a>>2];J[a>>2]=0}return 1}function Pg(a,b){var c=0;if((a|0)==(b|0))return 1;if(!a)return 0;if(!b)return 0;while(1){c=K[a|0];if((c|0)!=K[b|0])return 0;b=b+1|0;a=a+1|0;if(c)continue; +break}return 1}function Oca(a){a=a|0;var b=0,c=0;b=J[a+584>>2];if(b){c=b;b=Dc(72008);J[c+144>>2]=b;if(b)a=1;else{Uc(J[a+628>>2],97913,78514,0);a=0}return a|0}fa(72298,70340,747,97913);B()}function M6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(d){d=vc(c);J[a+8>>2]=d;xc(d,b,c);H[a+16|0]=0;J[a+12>>2]=c;return 1}H[a+16|0]=1;J[a+8>>2]=b;J[a+12>>2]=b?c:0;return(b|0)!=0|0}function KZa(a,b){a=a|0;b=b|0;var c=0;c=J[a+396>>2];if(b){b=J[a>>2];J[b+20>>2]=3;kc[J[b>>2]](a)}b=J[a+32>>2];J[c+52>>2]=0;J[c+56>>2]=0;J[c+ +48>>2]=b;J[c+60>>2]=J[a+272>>2]<<1}function J7(a,b){var c=0;if(!a)return;if(!b)return;a=J[a>>2];c=J[b+12>>2];if(c)kc[J[a+8>>2]](a,c);J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=0;J[b+4>>2]=0}function Ek(a,b){var c=0,d=0;c=J[a+16>>2];if((c|0)>0){d=J[a+24>>2];a=0;while(1){if(J[J[(a<<2)+d>>2]+40>>2]==(b|0))return a;a=a+1|0;if((c|0)!=(a|0))continue;break}}return-1}function x0(a,b){a=a|0;b=b|0;var c=0;c=vc(1048);J[c+1040>>2]=0;J[c+1044>>2]=0;J[c+12>>2]=0;J[c+8>>2]=b;J[c+4>>2]=a;J[c>>2]= +2193128;a=y0(c);kc[J[J[c>>2]+4>>2]](c);return a|0}function tlb(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+16>>2]+6|0;a=J[b>>2];while(1){a=a+1|0;if(a>>>0>255){J[b>>2]=0;return 0}c=K[a+d|0];if(!c)continue;break}J[b>>2]=a;return c|0}function aNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(a){vEb(c,0,b,0);if(jc){fd(a,58227);return 0}d=J[a+204>>2];J[a+204>>2]=d|1048576;e=lh(a,P(b,c));J[a+204>>2]=d}return e|0}function UAa(a,b){a=a|0;b=b|0;var c=0,d=0;c=vc(128);J[699344]=0;b=aa(5394,c|0,b|0)|0;d=J[699344];J[699344]= +0;if((d|0)!=1){J[a>>2]=0;vd(a,b);return}a=Z()|0;uc(c);ba(a|0);B()}function Dga(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;if(KQ()>>>0>>0){eh(a);B()}JQ(c+8|0,a+16|0,b);b=J[c+8>>2];J[a+4>>2]=b;J[a>>2]=b;J[a+8>>2]=b+(J[c+12>>2]<<2);fc=c+16|0}function zW(a,b){a=a|0;b=b|0;var c=0;kh(a+148|0,0,0,b?1024:512,0);c=J[a+108>>2];if(c)mX(c,b);a=J[a+120>>2];if(a)while(1){zW(J[a+8>>2],b);a=J[a>>2];if(a)continue;break}}function wNa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((b|0)<2)break a;a=J[a+4>>2];a=kc[J[J[a>> +2]+60>>2]](a,b,c,d)|0;if(!a)break a;od(od(a,c),809944);e=a}return e|0}function sBb(a){a=a|0;var b=0,c=0;b=J[a+4>>2];if(b){a:{if(J[b>>2]!=2)break a;c=J[b+4>>2];if(!c)break a;uc(c)}uc(b)}a=a+4|0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}function rga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){a:{if((c|0)!=(d|0)){a=J[c>>2];if(a>>>0>127|!(J[(a<<2)+2633072>>2]&b))break a}else c=d;return c|0}c=c+4|0;continue}}function olb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=d;d=0;a=J[(!a|J[a>>2]!=1381173770? +d:J[a+4>>2])>>2];f=e,g=kc[J[J[a>>2]+16>>2]](a,b,1,c)|0,J[f>>2]=g;return 1}function mh(a){var b=0,c=0;b=J[a>>2];J[a>>2]=0;a:{if(b){c=J[J[b>>2]+12>>2];J[699344]=0;_(c|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)==1)break a}return a}ea(0)|0;Bc();B()}function gNa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((b|0)<2)break a;a=J[a+4>>2];a=kc[J[J[a>>2]+60>>2]](a,b,c,d)|0;if(!a)break a;od(od(a,c),811958);e=a}return e|0}function cs(a,b){a=a|0;b=b|0;a=J[a>>2];O[b>>3]=O[a>>3];O[b+8>>3]=O[a+8>>3];O[b+16>>3]=O[a+ +16>>3];O[b+24>>3]=O[a+24>>3];O[b+32>>3]=O[a+32>>3];O[b+40>>3]=O[a+40>>3];return 0}function bF(a,b,c){if((c|0)>=0){a:{if(!b)break a;while(1){if(J[b+4>>2]<=(c|0))break a;J[b+4>>2]=c;b=J[b>>2];if(b)continue;break}}return}fa(200984,198855,249,212481);B()}function XF(a,b){var c=0,d=0;c=fc-16|0;fc=c;a:{if(!(K[b+11|0]>>>7|0)){J[a+8>>2]=J[b+8>>2];d=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=d;break a}PF(a,J[b>>2],J[b+4>>2])}fc=c+16|0}function Vob(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=1;a:{if(!K[a|0]|J[a+8>> +2]!=(b|0)|J[a+12>>2]!=(c|0))break a;if(c)if(dd(d,J[a+16>>2],c<<2))break a;e=0}return e|0}function Ut(a){a=a|0;var b=0,c=0;b=88;a:{if(a>>>0>65535)break a;c=a>>>8<<3;b=K[c+2345588|0];if((b|0)!=88)break a;b=K[J[c+2345584>>2]+(a&255)|0]}return(b|0)==35|(b|0)==46}function DNa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if((b|0)<2)break a;a=J[a+4>>2];a=kc[J[J[a>>2]+60>>2]](a,b,c,d)|0;if(!a)break a;od(od(a,c),809609);e=a}return e|0}function CQ(a,b){J[a>>2]=2641388;J[a>>2]=2641496;if(K[b+11|0]>>>7|0)b=J[b>> +2];J[699344]=0;aa(7241,a+4|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)return a;ba(Z()|0);B()}function $oa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=J[a+12>>2];O[a+152>>3]=O[b>>3];O[a+160>>3]=O[c>>3];O[a+168>>3]=O[b>>3]+O[d>>3];O[a+176>>3]=O[c>>3]+O[e>>3];return 0}function $4a(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+188>>2];a:{if(!d)break a;c=J[a+204>>2]!=-1;if(c|!b)break a;c=0;a=ho(d,2);if(!a)break a;c=M[a+80>>2]<268435456}return c|0}function sjb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=J[a+24>>2];c=yd(b, +c);a:{if(c)break a;c=af(b,d);if(c)break a;J[a+196>>2]=J[b+32>>2];J[a+200>>2]=J[b+36>>2];c=0}return c|0}function rWa(a){a=a|0;var b=0;J[a>>2]=2181644;a:{if(!J[a+16>>2])break a;b=J[a+4>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1)break a;ea(0)|0;Bc();B()}uc(a)}function lh(a,b){var c=0;a:{if(!a|!b)break a;c=J[a+672>>2];b:{if(c){c=kc[c|0](a,b)|0;break b}c=Dc(b)}if(c)break a;c=0;if(K[a+206|0]&16)break a;Ld(a,57648);B()}return c}function l$a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!c){if(J[b>> +2]>=2){H[a|0]=255;H[a+1|0]=254;J[b>>2]=2;J[d>>2]=0;return 2}J[b>>2]=0;J[d>>2]=0;return 0}return o2(a,b,c,d)|0}function kMa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=J[a>>2];d=O[a+16>>3];b=J[b>>2];e=O[b+16>>3];c=-1;a:{if(de)break a;c=J[a+4>>2]-J[b+4>>2]|0}return c|0}function jvb(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;if(f){a=P(d,6);if(((c+1|0)/2|0)>(b|0)){xc(g,e,a);return 0}xc(g,f,a);return 0}xc(g,e,P(d,6));return 0}function jo(a){var b=0,c=0,d=0;b=kd(1,24);a:{if(!b)break a; +c=(a|0)<=0?50:a;a=kd(c,4);J[b+20>>2]=a;if(!a)break a;J[b+16>>2]=1065353216;J[b+8>>2]=1;J[b>>2]=c;d=b}return d}function jMa(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a=J[a>>2];d=O[a+24>>3];b=J[b>>2];e=O[b+24>>3];c=-1;a:{if(de)break a;c=J[a+4>>2]-J[b+4>>2]|0}return c|0}function iK(a){a=a|0;var b=0;if(H[a+31|0]<0)uc(J[a+20>>2]);J[a>>2]=852676;b=J[a+16>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)uc(J[a+4>>2]);return a|0}function cUa(a,b,c){a=a|0;b=b|0;c=c|0;b=-1;a=J[a+108>> +2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(7,b,843757,0)}function ZTa(a,b,c){a=a|0;b=b|0;c=c|0;b=-1;a=J[a+108>>2];a:{if(!a)break a;a=J[a+4>>2];if(J[a+8>>2]==13)break a;a=J[a+16>>2];b=kc[J[J[a>>2]+52>>2]](a)|0}Cc(7,b,843661,0)}function Jvb(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;if(f){a=P(d,3);if(((c+1|0)/2|0)>(b|0)){xc(g,e,a);return 0}xc(g,f,a);return 0}xc(g,e,P(d,3));return 0}function Ifb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d= +d|0;e=e|0;f=f|0;J[a+144>>2]=J[b>>2];N[a+148>>2]=O[c>>3];N[a+152>>2]=O[d>>3];N[a+156>>2]=O[e>>3];N[a+160>>2]=O[f>>3];return 0}function nHa(a){a=a|0;var b=0;J[a+56>>2]=2381836;b=a-8|0;J[b>>2]=2381796;J[a+4>>2]=2381648;J[a>>2]=2381816;if(H[a+47|0]<0)uc(J[a+36>>2]);ai(a+4|0);bg(a+56|0);return b|0}function kga(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;a=J[a+4>>2];if(a){J[d>>2]=c;c=fc-16|0;fc=c;J[c+12>>2]=d;a=KS(a,b,d);fc=c+16|0}else a=-1;fc=d+16|0;return a|0}function Tc(a,b,c){a=a|0;b=b|0;c=c|0; +var d=0;if((c|0)==-1)c=bf(b);kc[J[J[a>>2]+8>>2]](a,c);d=b;b=c<<2;xc(J[a+12>>2],d,b);J[a+12>>2]=b+J[a+12>>2];J[a+16>>2]=J[a+16>>2]+c}function NYa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;if(J[b+592>>2]>=4)kc[J[J[a>>2]+156>>2]](a,b);a=J[a+104>>2];J[c+12>>2]=2;kc[J[J[a>>2]+312>>2]](a,c+12|0)|0;fc=c+16|0}function NRa(a){a=a|0;var b=0;J[a>>2]=2218040;b=J[a+12>>2];if(b)uc(Zc(b));b=J[a+16>>2];if(b)kc[J[J[b>>2]+4>>2]](b);b=J[a+20>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function KDa(a,b,c,d){a=a|0;b=b|0; +c=c|0;d=d|0;a:{if(!a)break a;J[a+180>>2]=b;J[a+444>>2]=d?d:511;J[a+172>>2]=c?c:512;if(!J[a+176>>2])break a;J[a+176>>2]=0;fd(a,58362)}}function If(a){a=a|0;var b=0;J[a>>2]=351116;b=J[a+24>>2];if(!(K[a+28|0]|!b))uc(b);J[a+12>>2]=0;J[a+16>>2]=0;J[a+8>>2]=8;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;return a|0}function rfa(a){a=a|0;if(K[2797768])return J[699441];if(!K[2798920])H[2798920]=1;yf(2798896,2639536);yf(2798908,2639548);H[2797768]=1;J[699441]=2798896;return 2798896}function oFa(a,b,c,d){a=a|0;b=b| +0;c=c|0;d=d|0;var e=0;e=kc[J[J[a>>2]+16>>2]](a)|0;kc[J[J[a>>2]+20>>2]](a,d,0,1)|0;b=Up(a,b,c);kc[J[J[a>>2]+20>>2]](a,e,0,1)|0;return b|0}function mg(a){var b=0;a:{b=J[a+36>>2];if(b){if(H[a|0]&1)break a;uc(b);J[a+36>>2]=0}b=J[a+28>>2];if(b){uc(b);J[a+28>>2]=0}uc(a);return}fa(200337,198617,151,206757);B()}function ROa(a,b,c,d,e,f,g,h,i,j,k,l,m,n){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;l=l|0;m=m|0;n=n|0;kc[J[J[a>>2]+300>>2]](a,b,c,d,e,f,g,0,0,n)}function H6(a,b){a=a|0;b=b| +0;J[a+16>>2]=b;b=K[b+12|0]|K[b+13|0]<<8|(K[b+14|0]<<16|K[b+15|0]<<24);H[a+24|0]=0;J[a+40>>2]=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);return 0}function pr(a,b){var c=0;if(b){pr(a,J[b>>2]);pr(a,J[b+4>>2]);a=J[b+24>>2];a:{if(!a)break a;c=J[a+4>>2];J[a+4>>2]=c-1;if(c)break a;kc[J[J[a>>2]+8>>2]](a);Gc(a)}uc(b)}}function mba(){var a=0,b=0;a=Dc(108);if(a){J[a+96>>2]=0;J[a+12>>2]=0;b=Dc(12);if(b){J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0;J[a+76>>2]=b;return a}J[a+76>>2]=0;uc(a)}return 0}function i3(a){var b=0;a:{if(!a)break a; +a=J[a+4>>2];if(!a)break a;b=0;b:{if(!a)break b;b=L[a>>1];if(!K[a+8|0])break b;b=b<<8|(b&65280)>>>8}b=(b&65535)+a|0}return b}function eUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;if(J[a+16>>2]){J[d>>2]=J[b+8>>2];lr(845783,d);a=J[655076];if((c|0)==2)Mn(b+16|0,a);Jz(10);Zi(a)}fc=d+16|0}function Ukb(a,b){a=a|0;b=b|0;var c=0;if(!(!K[a+24|0]|J[a+28>>2]!=J[b>>2])){F6(a);if(!K[a+24|0])return 0;c=J[a+32>>2];J[b>>2]=J[a+28>>2];return c|0}return G6(a,b,1)|0}function DG(a){a:{if((JG(a,2743880)|0)<0)break a; +b:{if(J[685990]==10)break b;a=J[685975];if((a|0)==J[685974])break b;J[685975]=a+1;H[a|0]=10;break a}dt(2743880,10)}}function vaa(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;if(f){a=d<<1;if(((c+1|0)/2|0)>(b|0)){xc(g,e,a);return 0}xc(g,f,a);return 0}xc(g,e,d<<1);return 0}function upb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!a)return 37;d=b?d:d|3;if(!(d&1?0:b))return kE(a,0,c,d)|0;if(J[b>>2]==J[a+4>>2])a=kE(a,b,c,d);else a=35;return a|0}function taa(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;if(f){a=d<<2;if(((c+1|0)/2|0)>(b|0)){xc(g,e,a);return 0}xc(g,f,a);return 0}xc(g,e,d<<2);return 0}function k3(a,b){var c=0,d=0,e=0;e=J[a+28>>2];c=J[b>>2];while(1){c=c+1|0;if((e|0)<=(c|0))return 0;d=J[a>>2]+P(c,12)|0;if(J[d>>2]<0)continue;break}J[b>>2]=c;return d}function gda(a){a=a|0;var b=0,c=0,d=0;b=fc-224|0;fc=b;c=b+16|0;kc[J[J[a>>2]+12>>2]](a,c);d=J[J[a+828>>2]+628>>2];J[b>>2]=c;Uc(d,75531,75941,b);Vx(a);nf(a+624|0,1);B()}function flb(a,b){a=a|0;b=b|0;a=J[a+16>>2];b=b-(K[a+6|0]<< +8|K[a+7|0])|0;if(b>>>0<(K[a+9|0]|K[a+8|0]<<8)>>>0){a=a+(b<<1)|0;a=K[a+10|0]<<8|K[a+11|0]}else a=0;return a|0}function egb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+52>>2];if(d){uc(d);J[a+52>>2]=0}d=c<<3;e=vc(c>>>0>536870911?-1:d);J[a+52>>2]=e;xc(e,b,d);J[a+56>>2]=c;return 0}function dvb(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;if(f){a=d<<3;if(((c+1|0)/2|0)>(b|0)){xc(g,e,a);return 0}xc(g,f,a);return 0}xc(g,e,d<<3);return 0}function dq(a){a=a|0;var b=0;J[a>>2]=2181644;a:{if(J[a+16>> +2]){b=J[a+4>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1)break a}return a|0}ea(0)|0;Bc();B()}function ce(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=J[a>>2];d=O[b>>3];O[b>>3]=O[a+32>>3]+(d*O[a>>3]+O[c>>3]*O[a+16>>3]);O[c>>3]=O[a+40>>3]+(d*O[a+8>>3]+O[c>>3]*O[a+24>>3])}function ada(a,b){a=a|0;b=b|0;J[a+556>>2]=677;J[a+548>>2]=677;J[a+540>>2]=677;J[a+560>>2]=678;J[a+552>>2]=678;J[a+544>>2]=679;J[a+536>>2]=680;J[a+532>>2]=681;return 1}function Rc(a){var b=0,c=0;a:{if(!K[a+8|0])break a;b=J[a>>2]; +if(!b)break a;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break a;uc(b)}J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;return a}function $Na(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<0){c=J[a+24>>2];_B(J[c>>2],0,2);c=mr(J[c>>2]);b=(b|0)<=(c|0)?c-b|0:0}J[a+304>>2]=b;b=a+40|0;J[a+300>>2]=b;J[a+296>>2]=b}function t0a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a=18788;a:{if((c&3)==1)break a;a=18802;if(c&4)break a;d=c>>>3&1;a=d?18077:0}c=0;if(!(!b|!d))c=jk(b,a);return c|0}function mva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;J[d+ +12>>2]=0;e=Bv(J[a+12>>2]+b|0,d+12|0);b=J[d+12>>2];J[c>>2]=b?b-J[a+12>>2]|0:-1;fc=d+16|0;return+e}function j1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(J[d>>2]<=0){if(!J[c>>2]){J[c>>2]=344;return 0}a=xc(b+260|0,J[a+8>>2],84);H[b+34|0]=1;J[b+8>>2]=a}else b=0;return b|0}function hK(a){a=a|0;var b=0;if(H[a+31|0]<0)uc(J[a+20>>2]);J[a>>2]=852676;b=J[a+16>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)uc(J[a+4>>2]);uc(a)}function aob(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{if(!d){e=1;if(M[a+ +4>>2]>>0)break a}e=J[a+12>>2];if(J[a+8>>2]!=(b|0))hh(e,b,0);e=ge(c,1,d,e)}return e|0}function Xkb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=10;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function Tkb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=12;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function Pkb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=13;a=K[a+8|0]|K[a+9|0]<<8|(K[a+ +10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function MOa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+32>>2]=13;J[a+16>>2]=13;J[a+48>>2]=0;J[a+4>>2]=c;J[a>>2]=b;J[a+8>>2]=d;Sj(c,a+16|0);Sj(J[a+4>>2],a+32|0);return a|0}function Hl(a,b){var c=0,d=0,e=0;if(!(!a|(b|0)<0)){c=kc[J[663198]](b+1|0)|0;if(!c){Hc(0,0,0,0,0,1,2,3,0,0,0,0,36029,0);return 0}d=xc(c,a,b)+b|0,e=0,H[d|0]=e}return c}function tt(a){a=a|0;var b=0,c=0;b=J[a+8>>2];if(b)while(1){c=J[b>>2];kc[J[J[a>>2]+16>>2]](b, +1);uc(b);b=c;if(b)continue;break}J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0}function tfa(a){a=a|0;if(K[2797760])return J[699439];if(!K[2798888])H[2798888]=1;zf(2798864,21032);zf(2798876,21024);H[2797760]=1;J[699439]=2798864;return 2798864}function tPa(a){a=a|0;var b=0;J[a>>2]=2319424;b=J[a+4>>2];if(b)uc(Zc(b));J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ea(0)|0;Bc();B()}function mHa(a){a=a|0;var b=0;J[a+56>>2]=2381836;b=a-8|0;J[b>>2]=2381796;J[a+4>>2]=2381648;J[a>>2]=2381816; +if(H[a+47|0]<0)uc(J[a+36>>2]);ai(a+4|0);bg(a+56|0);uc(b)}function UNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if((c|0)<=0)return 0;d=J[a+40>>2];e=J[a+36>>2]-d|0;c=(c|0)>(e|0)?e:c;xc(b,d,c);J[a+40>>2]=c+J[a+40>>2];return c|0}function Rgb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=1;e=b;c=J[b>>2]+1|0;b=J[a+16>>2];if(c>>>0>b>>>0){b=c-b|0;a=b>>>0>2];d=a?b+1|0:0;b=a?c:0}J[e>>2]=b;return d|0}function MRa(a){a=a|0;var b=0;J[a>>2]=2218040;b=J[a+12>>2];if(b)uc(Zc(b));b=J[a+16>>2];if(b)kc[J[J[b>>2]+4>>2]](b); +b=J[a+20>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function Ata(a){a=a|0;var b=0,c=0;b=J[a+12>>2];if(!b)return 72;a=b+24|0;c=(J[b+20>>2]<<4)+32|0;while(1){b=c;c=b+8164|0;a=J[a>>2];if(a)continue;break}return b+72|0}function $kb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=8;a=K[a+8|0]|K[a+9|0]<<8|(K[a+10|0]<<16|K[a+11|0]<<24);J[b>>2]=a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24);return 0}function zB(a,b,c){var d=0;if(!J[b+4>>2]){d=J[b+52>>2];if(J[d+8>>2])while(1){zB(a,zj(d,0),c);d=J[b+52>>2];if(J[d+8>>2])continue; +break}uc(Oo(b));return}XZ(a,b,c)}function y4a(a){a=a|0;var b=0,c=0,d=0;b=vc(176);J[699344]=0;c=_(2229,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[c+168>>2]=a;return c|0}a=Z()|0;uc(b);ba(a|0);B()}function xl(a){a=a|0;var b=0,c=0;b=88;a:{if(a>>>0>65535)break a;c=a>>>8<<3;b=K[c+2345588|0];if((b|0)!=88)break a;b=K[J[c+2345584>>2]+(a&255)|0]}return(b|0)==76|0}function od(a,b){var c=0,d=0;d=J[a>>2];c=Yc(b);if((d|0)>(c^2147483647)){gi(778126);d=J[a>>2]}Bh(a,c+d|0);xc(J[a+4>>2]+J[a>>2]|0,b,c+1|0);J[a>> +2]=J[a>>2]+c;return a}function lL(a){var b=0,c=0,d=0;b=J[a>>2];if(b){d=b;c=J[a+4>>2];if((c|0)!=(b|0)){while(1){c=c-4|0;mh(c);if((b|0)!=(c|0))continue;break}d=J[a>>2]}J[a+4>>2]=b;uc(d)}}function d1(a,b,c,d){var e=0;e=fc-16|0;fc=e;if(!(!(!a|!J[a+212>>2])&J[a+172>>2]==-1)){J[e+8>>2]=0;J[e+4>>2]=d;J[e>>2]=c;Hc(0,0,0,a,0,3,100,1,c,d,0,0,b,e)}fc=e+16|0}function aBb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+12>>2]=b;b=J[a+20>>2];if(b){ae(d+12|0,1,(c|0)>=4?4:c,b);J[a+24>>2]=J[a+24>>2]+c}fc=d+16| +0;return 0}function _h(a,b){a=a|0;b=b|0;var c=0;if(K[a+11|0]>>>7|0)c=J[a+4>>2];else c=K[a+11|0]&127;if(c>>>0<=b>>>0){as(a);B()}if(K[a+11|0]>>>7|0)a=J[a>>2];return(b<<2)+a|0}function Oqb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=J[a+16>>2];if(!f)return 0;return kc[J[J[f>>2]+48>>2]](f,b,c,d,1,J[a+4>>2],e,(e|0)!=16777215,255)|0}function Lk(a){a=a|0;var b=0,c=0;b=88;a:{if(a>>>0>65535)break a;c=a>>>8<<3;b=K[c+2345588|0];if((b|0)!=88)break a;b=K[J[c+2345584>>2]+(a&255)|0]}return(b|0)==82|0}function vE(a, +b){var c=0,d=0;if(!((b|0)<0|J[J[a+20>>2]+20>>2]<(b|0))){J[a+4>>2]=b;c=a,d=mf(J[a+20>>2],0)+P(J[J[a+20>>2]+52>>2],b)|0,J[c+16>>2]=d}return J[a+16>>2]}function shb(a,b){a=a|0;b=b|0;var c=0;c=J[b+96>>2];if(!((c|0)<0|J[a+300>>2]<=(c|0))){a=J[a+304>>2]+P(c,252)|0;b=kc[J[b+40>>2]](b,0)|0;J[a+180>>2]=b;J[a+208>>2]=b}}function lqb(a,b){a=a|0;b=b|0;J[a+2748>>2]=b;J[a+2740>>2]=J[b+28>>2];J[a+4>>2]=J[b+8>>2];J[a+12>>2]=J[b+12>>2];J[a+8>>2]=J[b+16>>2];J[a+16>>2]=J[b+20>>2];return 0}function _A(a){var b=0,c=0, +d=0;b=J[a>>2];if(b){d=b;c=J[a+4>>2];if((c|0)!=(b|0)){while(1){c=Rc(c-12|0);if((c|0)!=(b|0))continue;break}d=J[a>>2]}J[a+4>>2]=b;uc(d)}}function VAa(a){a=a|0;var b=0,c=0,d=0;b=vc(68);J[699344]=0;c=_(5508,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a>>2]=0;vd(a,c);return}a=Z()|0;uc(b);ba(a|0);B()}function Sda(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+12>>2]=J[c>>2];a=kc[J[J[a>>2]+16>>2]](a,b,d+12|0)|0;if(a)J[c>>2]=J[d+12>>2];fc=d+16|0;return a|0}function OV(a){a=a|0;var b=0,c=0;b=Hk(24); +J[699344]=0;a=aa(5503,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){xa(a|0,2423616,5618);B()}a=Z()|0;Bp(b);ba(a|0);B()}function CA(a){var b=0,c=0;b=J[a+24>>2];if(b)while(1){c=J[b>>2];kc[J[J[a>>2]+16>>2]](b,1);uc(b);b=c;if(b)continue;break}J[a+4>>2]=0;J[a+24>>2]=0;ri(a+16|0,4,0)}function C5a(a,b){a=a|0;b=b|0;var c=0;if(H[b+123|0]>=0){b=b+112|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Ve(a,J[b+112>>2],J[b+116>>2])}function Af(a,b){var c=0,d=0;J[a>>2]=7;c=vc(24);J[699344]= +0;b=aa(3637,c|0,b|0)|0;d=J[699344];J[699344]=0;if((d|0)!=1){J[a+8>>2]=b;return}a=Z()|0;uc(c);ba(a|0);B()}function wR(a){a=a|0;var b=0,c=0;b=Hk(8);J[699344]=0;a=aa(6888,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){xa(a|0,2641736,6889);B()}a=Z()|0;Bp(b);ba(a|0);B()}function pp(a){a=a|0;var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;c=J[b+8>>2];J[b+8>>2]=c-1;if((c|0)<=1){uc(J[b+12>>2]);uc(J[b+16>>2]);uc(b)}J[a>>2]=0}}function oD(a,b,c,d,e,f){var g=0;g=J[a+84>>2];if((g|0)>0){a=J[a+80>>2]+P((b| +0)<(g|0)?(b|0)>0?b:0:g-1|0,96)|0;N[a+24>>2]=f;N[a+20>>2]=e;N[a+16>>2]=d;N[a+12>>2]=c}}function lm(a,b,c,d){var e=0;e=P(d+16776961|0,b);b=d<<8;return(e-b|0)+65535&16776960|(P(d-255|0,c)-b|0)+65535>>>8|16776960-(b+P(255-d|0,a)<<8)&16711680|-16777216}function iG(a,b,c,d){var e=0,f=0,g=0,h=0;e=fc-16|0;fc=e;J[e+12>>2]=c;f=b;b=c-b|0;g=e,h=cd(d,f,b)+b|0,J[g+8>>2]=h;J[a>>2]=J[e+12>>2];J[a+4>>2]=J[e+8>>2];fc=e+16|0}function UCb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;d=K[a+16|0];e=J[a+12>>2];J[c+8>> +2]=K[a+17|0];J[c+4>>2]=d;J[c>>2]=e;md(b,209662,c);fc=c+16|0;return 0}function Bw(a){var b=0,c=0,d=0;b=vc(672);J[699344]=0;c=ga(3564,b|0,a|0,0)|0;d=J[699344];J[699344]=0;if((d|0)==1){a=Z()|0;uc(b);ba(a|0);B()}J[c+668>>2]=a;return c}function zmb(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[b+488>>2];J[a+24>>2]=J[b+420>>2];J[a+28>>2]=J[b+424>>2];J[a+20>>2]=J[c+20>>2];J[a+16>>2]=J[c+28>>2];return 0}function x9a(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;kc[J[J[a+472>>2]+12>>2]](a,b,J[c>>2],(J[f>> +2]<<2)+e|0);J[f>>2]=J[f>>2]+1;J[c>>2]=J[c>>2]+1}function s7a(a){a=a|0;var b=0;b=vc(28);J[b>>2]=0;J[b+4>>2]=0;J[b+24>>2]=0;J[b+16>>2]=0;J[b+20>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;J[b>>2]=351172;J[a>>2]=b;return a|0}function qea(a){a=a|0;var b=0,c=0;b=Hk(8);J[699344]=0;a=aa(7257,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){xa(a|0,2641704,34);B()}a=Z()|0;Bp(b);ba(a|0);B()}function pea(a){a=a|0;var b=0,c=0;b=Hk(8);J[699344]=0;a=aa(7258,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){xa(a|0,2641600,34); +B()}a=Z()|0;Bp(b);ba(a|0);B()}function bm(a,b){var c=0;a:{if(!a|!b)break a;c=J[a>>2];if(!c)break a;while(1){if(!Ic(c,b))return J[a+4>>2];c=J[a+8>>2];a=a+8|0;if(c)continue;break}}return 0}function bQ(a,b,c,d){var e=0,f=0;e=J[a+4>>2];f=J[a>>2];a=0;a:{if(!c)break a;a=e>>8;if(!(e&1))break a;a=J[a+J[c>>2]>>2]}kc[J[J[f>>2]+28>>2]](f,b,a+c|0,e&2?d:2)}function Ze(a){var b=0,c=0;b=fc-16|0;fc=b;J[699344]=0;c=J[699344];J[699344]=0;if((c|0)!=1){J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;fc=b+16|0;return a}ea(0)|0;Bc(); +B()}function Vgb(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];b=J[c+132>>2];io(c,0);c=L[b+80>>1];J[a+24>>2]=c<<6;J[a+28>>2]=c-L[b+96>>1]<<6;J[a+36>>2]=L[b+102>>1]<<6;return 0}function U_(a,b,c){var d=0,e=0;d=1;J[a+20>>2]=1;if(b)while(1){d=qe(a,d,c)|J[a+20>>2]<<1;J[a+20>>2]=d;e=e+1|0;if((e|0)!=(b|0))continue;break}return(-1<>2]+300>>2]](a,b,c,d,e,f,g,0,0,m)}function Rpb(a,b){a= +a|0;b=b|0;var c=0,d=0;d=J[a>>2];c=J[d+140>>2];io(d,b);J[a+24>>2]=J[c+40>>2]<<6;J[a+28>>2]=0-(J[c+44>>2]<<6);J[a+36>>2]=L[c+4>>1]<<6;return 0}function Mt(a,b){var c=0,d=0,e=0;if(!b){fa(2363745,2363747,162,2363821);B()}d=b>>31;c=d+(a>>31)|0;e=a;a=a+b|0;c=e>>>0>a>>>0?c+1|0:c;return wEb(a-1|0,c-!a|0,b,d)}function Hoa(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;g=fc-16|0;fc=g;a=J[a+12>>2];J[g+12>>2]=J[b>>2];Yz(a,g+12|0,0,1,c,d,e,f);fc=g+16|0;return 0}function Emb(a,b){a=a|0;b=b|0;var c=0; +b=J[a>>2];c=J[b+488>>2];J[a+24>>2]=J[b+420>>2];J[a+28>>2]=J[b+424>>2];J[a+20>>2]=J[c+20>>2];J[a+16>>2]=J[c+24>>2];return 0}function DHa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+60>>2]=2381492;J[a>>2]=2381472;J[a+8>>2]=2381648;if(H[a+51|0]<0)uc(J[a+40>>2]);ai(a+8|0);bg(a+60|0);return a|0}function Bo(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=-1;e=J[a+8>>2];c=(e&c>>31)+c|0;if(!((c|0)<0|(c|0)>=(e|0))){a=J[a+12>>2];b=eg(a+c|0,b);d=b?b-a|0:-1}return d|0}function xFa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f= +f|0;a:{if(!a|!d)break a;c=c-b|0;f=f-e|0;c=(c|0)<(f|0)?c:f;if((c|0)<0)break a;cd(a+b|0,d+e|0,c+1|0)}}function tC(a,b,c,d,e){var f=0;f=fc-16|0;fc=f;if(!(J[a+172>>2]==-1?J[a+212>>2]:0)){J[a+84>>2]=b;J[f+4>>2]=e;J[f>>2]=d;Hc(0,0,0,a,0,3,b,1,d,e,0,0,c,f)}fc=f+16|0}function rha(a,b){a=a|0;b=b|0;b=fc-16|0;fc=b;if(oz(a)){J[a+556>>2]=621;J[a+548>>2]=621;J[a+540>>2]=621;J[b>>2]=11;a=ke(a,65536,b)}else a=0;fc=b+16|0;return a|0}function rPa(a){a=a|0;var b=0;J[a>>2]=2319424;b=J[a+4>>2];if(b)uc(Zc(b));J[699344]= +0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function ku(a,b,c,d){var e=0;e=fc-16|0;fc=e;a:{if(a){if(J[a+172>>2]==-1?J[a+212>>2]:0)break a;J[a+84>>2]=b}J[e>>2]=d;Hc(0,0,0,a,0,1,b,2,d,0,0,0,c,e)}fc=e+16|0}function hGa(a){a=a|0;var b=0,c=0,d=0;b=J[a+4>>2];c=J[b>>2];d=J[b+4>>2];J[c+4>>2]=d;J[d>>2]=c;J[a+12>>2]=J[a+12>>2]-1;Jd(b+8|0);uc(b);Dj(a,J[a+4>>2]+8|0);kI(a)}function bP(a){var b=0;b=J[a+8>>2];if(b){if(J[a>>2]>0){b=0;while(1){uc(J[J[a+8>>2]+(b<<2)>>2]);b=b+1|0;if((b| +0)>2])continue;break}b=J[a+8>>2]}uc(b)}uc(a)}function Yia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;J[e+12>>2]=b;J[e+8>>2]=d;b=rm(e+4|0,e+12|0);a=HS(a,c,J[e+8>>2]);$h(b);fc=e+16|0;return a|0}function UU(a,b){a=a|0;b=b|0;var c=0,d=0;a=J[a>>2];c=J[a>>2];b=J[b>>2];d=J[b>>2];if((c|0)!=(d|0))return c-d|0;a=J[a+8>>2];if(!a)return 0;return J[b+8>>2]-a|0}function Ae(a,b,c){var d=0,e=0,f=0;a:{if(!c)break a;d=J[a+204>>2];if(!(K[a+351|0]&32?(d&768)!=768:!(d&2048)))break a;e=a,f=ig(J[a+384>> +2],b,c),J[e+384>>2]=f}}function zh(a,b){var c=0;c=J[a>>2];J[a>>2]=b;a:{if(c){a=J[a+4>>2];J[699344]=0;$(a|0,c|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}return}ea(0)|0;Bc();B()}function yi(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+24>>2]=b;J[a+12>>2]=J[c>>2];J[a+16>>2]=J[d>>2];b=J[e>>2];H[a+28|0]=f;J[a+20>>2]=b;J[a+8>>2]=0}function yZa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;a=J[a+104>>2];b=J[b+472>>2];H[c+15|0]=(b|0)==1?2:(b|0)==2?1:b;kc[J[J[a>>2]+100>>2]](a,c+15|0)|0;fc=c+16|0}function uja(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0;a=0;while(1){if((b|0)!=(c|0)){a=J[b>>2]+(a<<4)|0;d=a&-268435456;a=(d|d>>>24)^a;b=b+4|0;continue}break}return a|0}function rib(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if(b-211>>>0<=4294967284){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}return J[J[a+456>>2]+20>>2]}function qAb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+40>>2];a:{if(!c)break a;d=J[b+44>>2];if(!d)break a;kc[J[a+156>>2]](d,P(c,36))}kc[J[a+156>>2]](b,48);return 0}function oga(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b| +0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[dz()+(J[b>>2]<<2)>>2];J[b>>2]=a;b=b+4|0;continue}break}return c|0}function mga(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=J[b>>2];if(a>>>0<=127)a=J[cz()+(J[b>>2]<<2)>>2];J[b>>2]=a;b=b+4|0;continue}break}return c|0}function hib(a){a=a|0;var b=0,c=0;b=J[a+20>>2];if(b-211>>>0<=4294967286){c=J[a>>2];J[c+24>>2]=b;J[c+20>>2]=21;kc[J[J[a>>2]>>2]](a)}return J[J[a+456>>2]+16>>2]}function eT(a,b,c,d){var e=0;e=fc-16|0;fc=e;a=Zb(a|0,b|0,c|0,d&255,e+8|0)|0;if(a){J[698583]= +a;a=-1}else a=0;fc=e+16|0;jc=a?-1:J[e+12>>2];return a?-1:J[e+8>>2]}function _6a(a,b){a=a|0;b=b|0;var c=0;if(H[b+55|0]>=0){b=b+44|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Ve(a,J[b+44>>2],J[b+48>>2])}function ZA(a){a=a|0;J[a+64>>2]=2381836;J[a>>2]=2381796;J[a+12>>2]=2381648;J[a+8>>2]=2381816;if(H[a+55|0]<0)uc(J[a+44>>2]);ai(a+12|0);bg(a- -64|0);return a|0}function XR(a){var b=0;b=J[a>>2];J[a>>2]=0;a:{if(b){a=J[a+4>>2];J[699344]=0;_(a|0,b|0)|0;a=J[699344];J[699344]=0;if((a| +0)==1)break a}return}ea(0)|0;Bc();B()}function WF(a){var b=0,c=0;J[699344]=0;c=pa(6967)|0;b=J[699344];J[699344]=0;if((b|0)!=1){b=a;a=J[c>>2];J[b>>2]=a;J[a+4>>2]=J[a+4>>2]+1;return}ea(0)|0;Bc();B()}function Q7(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]<=b+3>>>0){J[a+32>>2]=b;return 0}c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[a+32>>2]=b+4;return c}function Osb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+44>>2];a:{if(!c)break a;d=J[b+48>>2];if(!d)break a;kc[J[a+156>>2]](d,P(c,36))}kc[J[a+156>>2]](b,52); +return 0}function Is(a){var b=0,c=0;b=fc-16|0;fc=b;c=b+4|0;gQ(c,a,14416);J[699344]=0;$(7249,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)B();a=Z()|0;jd(b+4|0);ba(a|0);B()}function Ih(a,b,c,d){var e=0,f=0;a:{if(!a)break a;e=J[a+12>>2];if((e|0)>=J[a+8>>2])break a;f=J[a>>2]+(e<<2)|0;H[f+1|0]=c;H[f+2|0]=b;H[f|0]=d;J[a+12>>2]=e+1}}function Hk(a){var b=0,c=0;J[699344]=0;b=a+27&-4;a=_(7265,b|0)|0;c=J[699344];J[699344]=0;a:{if((c|0)!=1){if(!a)break a;return Ac(a,0,b)+24|0}ea(0)|0}Bc();B()}function Hfb(a,b,c, +d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;O[a+168>>3]=O[b>>3];O[a+176>>3]=O[c>>3];O[a+184>>3]=O[b>>3]+O[d>>3];O[a+192>>3]=O[c>>3]+O[e>>3];return 0}function HLa(a,b){a=a|0;b=b|0;var c=0;c=J[b+4>>2];J[a+4>>2]=c;J[a+8>>2]=c;if(c){c=Gd(c,4);J[a>>2]=c;xc(c,J[b>>2],J[a+4>>2]<<2);return a|0}J[a>>2]=0;return a|0}function Gha(a,b){a=a|0;b=b|0;b=fc-16|0;fc=b;if(oz(a)){J[a+556>>2]=621;J[a+548>>2]=621;J[a+540>>2]=621;J[b>>2]=7;a=ke(a,65536,b)}else a=0;fc=b+16|0;return a|0}function CT(a,b){a=a|0;b=b|0;var c=0,d=0;c= +J[a+56>>2];a=J[a+60>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];if(d)YT(d,b);c=c+8|0;if((a|0)!=(c|0))continue;break}}function BT(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+56>>2];a=J[a+60>>2];if((c|0)!=(a|0))while(1){d=J[c>>2];if(d)WT(d,b);c=c+8|0;if((a|0)!=(c|0))continue;break}}function $6a(a,b){a=a|0;b=b|0;var c=0;if(H[b+43|0]>=0){b=b+32|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Ve(a,J[b+32>>2],J[b+36>>2])}function zWa(a){a=a|0;var b=0;b=J[a+292>>2];if(b){J[a+296>>2]=b;uc(b)}b=J[a+ +280>>2];if(b){J[a+284>>2]=b;uc(b)}if(H[a+247|0]<0)uc(J[a+236>>2]);return Ch(a)|0}function yja(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=0;while(1){if((b|0)!=(c|0)){a=H[b|0]+(a<<4)|0;d=a&-268435456;a=(d|d>>>24)^a;b=b+1|0;continue}break}return a|0}function w4(a,b){a=a|0;b=b|0;var c=0;if(H[b+31|0]>=0){b=b+20|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Ve(a,J[b+20>>2],J[b+24>>2])}function sfb(a){a=a|0;var b=0;b=J[a+456>>2];J[b+24>>2]=1;J[b+16>>2]=0;J[b+20>>2]=0;J[b>>2]=298;kc[J[J[a>> +2]+16>>2]](a);kc[J[J[a+460>>2]>>2]](a);J[a+160>>2]=0}function h7a(a){a=a|0;var b=0;J[a>>2]=351508;b=J[a+4>>2];if(b){if(!K[a+24|0])uc(b);J[a+4>>2]=0;J[a+8>>2]=0;J[a+20>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}return a|0}function ekb(a,b){a=a|0;b=b|0;var c=0;c=kc[J[a+516>>2]](a,1668112752,b,a+512|0)|0;if(!c){c=Oi(b,J[a+512>>2],a+508|0);if(!c)return 0;J[a+512>>2]=0}return c|0}function _y(a){var b=0,c=0;b=fc-16|0;fc=b;c=b+4|0;gQ(c,a,6904);J[699344]=0;$(7256,c|0);a=J[699344];J[699344]=0;if((a|0)!=1)B();a=Z()|0; +jd(b+4|0);ba(a|0);B()}function Vba(a){a=a|0;var b=0;b=J[a+56>>2];if(b)uc(b);b=J[a- -64>>2];if(b)uc(b);b=J[a+68>>2];if(b)uc(b);b=J[a+76>>2];if(b)uc(b);a=J[a+80>>2];if(a)uc(a)}function Mrb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1347571533){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];H[b+34|0]=K[c+34|0];return 0}function G$a(a,b){a=a|0;b=b|0;var c=0,d=0;b=J[b>>2];if(b){d=a;a=K[b+47|0];c=a<<24>>24<0;Ll(d,c?J[b+36>>2]:b+36|0,c?J[b+40>>2]:a);return}J[a>>2]=0;H[a+11|0]=0}function DQ(a, +b){var c=0,d=0;c=(a+b|0)-1&0-a;c=b>>>0>>0?c:b;b=fc-16|0;fc=b;if(!((c>>>0)%(a>>>0)|a&3)){a=sG(b+12|0,a,c);d=a?0:J[b+12>>2]}fc=b+16|0;return d}function rf(a){a=a|0;var b=0,c=0;a=J[a>>2];a=J[(a?a+12|0:2743576)>>2];b=K[a|0];if(b)while(1){c=c<<6^b^c;b=K[a+1|0];a=a+1|0;if(b)continue;break}return c|0}function qZ(a,b){H[b+7|0]=K[a|0];H[b+6|0]=K[a+1|0];H[b+5|0]=K[a+2|0];H[b+4|0]=K[a+3|0];H[b+3|0]=K[a+4|0];H[b+2|0]=K[a+5|0];H[b+1|0]=K[a+6|0];H[b|0]=K[a+7|0]}function bmb(a){a=a|0;var b=0;if(a){J[a+412>>2]= +0;J[a+4>>2]=0;J[a+1960>>2]=0;J[a+1444>>2]=0;J[a+928>>2]=0;J[a+208>>2]=0;b=J[a>>2];if(a)kc[J[b+8>>2]](b,a)}}function a_a(a){a=a|0;var b=0;if(a){b=J[a>>2];if(b)kc[J[663199]](b);b=J[a+4>>2];if(b)kc[J[663199]](b);b=J[a+8>>2];if(b)kc[J[663199]](b);kc[J[663199]](a)}}function Vma(a){a=a|0;var b=0;b=J[a+60>>2];J[a+56>>2]=0;J[a+60>>2]=0;a:{if(!b)break a;a=J[b+4>>2];J[b+4>>2]=a-1;if(a)break a;kc[J[J[b>>2]+8>>2]](b);Gc(b)}}function Smb(a){a=a|0;var b=0,c=0;if(a){c=J[a>>2];b=J[a+108>>2];if(b)kc[J[c+8>>2]](c, +b);J[a+108>>2]=0;b=J[a+116>>2];if(b)kc[J[c+8>>2]](c,b);J[a+116>>2]=0}}function Rea(a,b){a=a|0;b=b|0;J[a>>2]=2641388;J[a>>2]=2641516;J[699344]=0;aa(7241,a+4|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ba(Z()|0);B()}function Mvb(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;if(f){if(((c+1|0)/2|0)>(b|0)){xc(g,e,d);return 0}xc(g,f,d);return 0}xc(g,e,d);return 0}function Ksb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;kc[J[a+156>>2]](d,c+ +1|0)}kc[J[a+156>>2]](b,44);return 0}function Jq(a,b){var c=0;a:{if(!a|(b|0)<0)break a;if(J[a>>2]<=(b|0))return 0;a=J[J[a+12>>2]+(b<<2)>>2];if(!a)break a;J[a+16>>2]=J[a+16>>2]+1;c=a}return c}function AAb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+28>>2];a:{if(!c)break a;d=J[b+32>>2];if(!d)break a;kc[J[a+156>>2]](d,c+1|0)}kc[J[a+156>>2]](b,36);return 0}function sOa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=vc(8);J[699344]=0;b=_(3351,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)return b|0;b=Z()|0;uc(a);ba(b|0);B()}function nAb(a, +b){a=a|0;b=b|0;var c=0,d=0;c=J[b+28>>2];a:{if(!c)break a;d=J[b+32>>2];if(!d)break a;kc[J[a+156>>2]](d,c<<1)}kc[J[a+156>>2]](b,36);return 0}function kea(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=fc-16|0;fc=d;e=d+8|0;kc[J[J[a>>2]+12>>2]](e,a,b);fc=d+16|0;return J[e>>2]==J[c>>2]&J[e+4>>2]==J[c+4>>2]}function iL(a){var b=0;a:{b:{if(!K[2773432]){b=Dc(4);J[693359]=b;if(!b)break b;H[2773432]=1;if(!a)break b;break a}if(a)break a}return}J[a>>2]=J[a>>2]+1}function i7a(a){a=a|0;var b=0;J[a>>2]=351404;b=J[a- -64>> +2];if(b)uc(b);b=J[a+56>>2];if(b)uc(b);J[a>>2]=351508;b=J[a+4>>2];if(!(K[a+24|0]|!b))uc(b);uc(a)}function gR(a){var b=0,c=0;b=fc-16|0;fc=b;c=b+12|0;J[c>>2]=a;J[699344]=0;$(6960,c|0);a=J[699344];J[699344]=0;if((a|0)!=1){fc=b+16|0;return}ea(0)|0;Bc();B()}function f7a(a){a=a|0;var b=0;J[a>>2]=351532;b=J[a- -64>>2];if(b)uc(b);b=J[a+56>>2];if(b)uc(b);J[a>>2]=351508;b=J[a+4>>2];if(!(K[a+24|0]|!b))uc(b);uc(a)}function eyb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>1;b=b+ +1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function dyb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>3;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function dra(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;a=YU(a,b,e,f,g,0,h,i,j,k);if(a){aaa(a,c,d);uc(Yg(a))}}function d7a(a){a=a|0;var b=0;J[a>>2]=351600;b=J[a- -64>>2];if(b)uc(b);b=J[a+56>>2];if(b)uc(b);J[a>>2]=351508;b=J[a+4>>2];if(!(K[a+24| +0]|!b))uc(b);uc(a)}function byb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>7;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function aZa(a,b){a=a|0;b=b|0;var c=0;b=fc-16|0;fc=b;if(!K[a+229|0]){c=J[a+104>>2];J[b+12>>2]=2048;kc[J[J[c>>2]+308>>2]](c,b+12|0)|0;H[a+228|0]=1}fc=b+16|0}function _xb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>6;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Yxb(a){a= +a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>4;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function Psb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+52>>2];a:{if(!c)break a;d=J[b+56>>2];if(!d)break a;kc[J[a+156>>2]](d,c<<2)}kc[J[a+156>>2]](b,60);return 0}function Nsb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;kc[J[a+156>>2]](d,c<<1)}kc[J[a+156>>2]](b,40);return 0}function N9(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a; +d=J[b+36>>2];if(!d)break a;kc[J[a+156>>2]](d,c+1|0)}kc[J[a+156>>2]](b,40);return 0}function MAb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+48>>2];a:{if(!c)break a;d=J[b+52>>2];if(!d)break a;kc[J[a+156>>2]](d,c<<1)}kc[J[a+156>>2]](b,60);return 0}function Isb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;kc[J[a+156>>2]](d,c<<2)}kc[J[a+156>>2]](b,40);return 0}function Fsb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;kc[J[a+156>> +2]](d,c<<3)}kc[J[a+156>>2]](b,40);return 0}function FK(a){a=a|0;var b=0;if(a){Wj(a);ii(J[a+32>>2],J[a+40>>2]);b=J[a+8>>2];if(b)kc[J[663199]](b);b=J[a+48>>2];if(b)kc[J[663199]](b);kc[J[663199]](a)}}function CHa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;J[a+60>>2]=2381492;J[a>>2]=2381472;J[a+8>>2]=2381648;if(H[a+51|0]<0)uc(J[a+40>>2]);ai(a+8|0);bg(a+60|0);uc(a)}function $xb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]>>>2;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0} +function wm(a){var b=0,c=0;b=a*a;c=b*a;return Q(c*(b*b)*(b*2.718311493989822E-6+-1.9839334836096632E-4)+(c*(b*.008333329385889463+-.16666666641626524)+a))}function vM(a){a=a|0;var b=0;J[a>>2]=349404;a:{if(!J[a+12>>2])break a;b=J[a+8>>2];if(!b)break a;kc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}Jd(a+20|0);return a|0}function syb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<1;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function sba(a,b,c){var d=0;d=1;a:{if(!c)break a; +c=(a|0)%3|0;if(c-1>>>0>=2){if(!c)break a;fa(198127,198937,130,211822);B()}d=(b+10|0)>(a|0)?1:2}return d}function sTa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+8>>2];kc[J[J[c>>2]+312>>2]](c,J[a+28>>2],J[b>>2]==1?+J[b+8>>2]:O[b+8>>3],J[b+16>>2]==1?+J[b+24>>2]:O[b+24>>3])}function ryb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<3;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function qyb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<< +7;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function oyb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<2;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function oHa(a){a=a|0;J[a+64>>2]=2381836;J[a>>2]=2381796;J[a+12>>2]=2381648;J[a+8>>2]=2381816;if(H[a+55|0]<0)uc(J[a+44>>2]);ai(a+12|0);bg(a- -64|0);uc(a)}function myb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<6;b=b+1|0;c=c+1|0;if((c|0)>2])continue; +break}}return 0}function kyb(a){a=a|0;var b=0,c=0;if(J[a+588>>2]>0){b=J[a+644>>2];while(1){H[b|0]=K[b|0]<<4;b=b+1|0;c=c+1|0;if((c|0)>2])continue;break}}return 0}function kd(a,b){var c=0,d=0;a:{if(!a)break a;c=vEb(a,0,b,0);d=jc;if((a|b)>>>0<65536)break a;c=d?-1:c}a=Dc(c);if(!(!a|!(K[a-4|0]&3)))Ac(a,0,c);return a}function Txa(){var a=0;a=fc-32|0;fc=a;J[a+24>>2]=268;J[a+28>>2]=0;J[a+20>>2]=2423624;J[a+16>>2]=2390706;J[a+8>>2]=2423592;J[a+12>>2]=2394486;OV(a+8|0);B()}function Eta(a){a=a|0;var b= +0;J[a>>2]=2432368;b=J[a+36>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;return Zv(a)|0}function $r(a,b,c){a=a|0;b=+b;c=+c;var d=0,e=0;d=J[a+264>>2];if(d>>>0<=31){O[a+256>>3]=b+c+O[a+256>>3];e=(d<<3)+a|0;O[e>>3]=b;J[a+264>>2]=d+2;O[e+8>>3]=c}}function yVa(a){a=a|0;var b=0,c=0,d=0;b=fc-16|0;fc=b;J[b>>2]=13;a=Rm(a,J[a+32>>2],808764,b);c=J[a+8>>2];d=J[a>>2];yc(a);fc=b+16|0;return((d|0)!=1?-1:c)|0}function vq(a,b){var c=0;c=J[a+28>>2];if(J[a+16>>2]){a=kc[J[a+12>> +2]](c,b)|0;return a}a=kc[J[a+36>>2]](c,b)|0;b=a;a=(a|0)==-1;b=a?-1:b;jc=a?-1:0;return b}function qE(a){var b=0,c=0;b=Hk(8);J[699344]=0;a=aa(1642,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){xa(a|0,2641704,34);B()}a=Z()|0;Bp(b);ba(a|0);B()}function nfb(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;var h=0;h=J[c>>2]>=0;J[a+508>>2]=h;return kc[J[J[a>>2]+288>>2]](a,h?c:b,d,e,f,g)|0}function ega(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=H[b|0];if((a|0)>=0)a=J[dz()+(H[b|0]<<2)>> +2];H[b|0]=a;b=b+1|0;continue}break}return c|0}function cga(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if((b|0)!=(c|0)){a=H[b|0];if((a|0)>=0)a=J[cz()+(H[b|0]<<2)>>2];H[b|0]=a;b=b+1|0;continue}break}return c|0}function Ssa(a,b){a=a|0;b=b|0;J[a+200>>2]=1;J[a+204>>2]=0;J[a+208>>2]=0;J[a+212>>2]=0;J[a+224>>2]=0;J[a+228>>2]=0;H[a+49|0]=1;J[a+232>>2]=0;J[a+236>>2]=0}function M5a(a,b,c){a=a|0;b=b|0;c=c|0;a=J[J[a+8>>2]+188>>2];O[b>>3]=I[a+72>>1];O[c>>3]=I[a+70>>1];if(K[a+8|0]&8){O[b>>3]=I[a+198>>1];O[c>>3]=I[a+202>> +1]}}function yWa(a){a=a|0;var b=0;b=J[a+292>>2];if(b){J[a+296>>2]=b;uc(b)}b=J[a+280>>2];if(b){J[a+284>>2]=b;uc(b)}if(H[a+247|0]<0)uc(J[a+236>>2]);uc(Ch(a))}function sAb(a,b){a=a|0;b=b|0;return Y9(a,L[b+28>>1],L[b+30>>1],K[b+32|0],L[b+34>>1],L[b+36>>1],L[b+38>>1],L[b+40>>1],L[b+42>>1],L[b+44>>1],K[b+46|0])|0}function qQ(a,b,c){var d=0;d=fc-16|0;fc=d;J[699344]=0;J[d+12>>2]=c;pQ(a,b,d+12|0);a=J[699344];J[699344]=0;if((a|0)!=1){fc=d+16|0;return}ea(0)|0;Bc();B()}function pN(a,b,c){var d=0;a:{if(c>>>0< +2)break a;while(1){d=K[b|0];if(!d)break a;H[a|0]=d;a=a+1|0;b=b+1|0;c=c-1|0;if(c>>>0>1)continue;break}}H[a|0]=0}function o_(a,b,c){var d=0;d=8;a:{if(c>>>0>8)break a;d=c;if(d)break a;return-1}if(b>>>0<=7)a=dd(a+b|0,b+61568|0,b+d>>>0>8?8-b|0:d);else a=-1;return a}function le(a,b,c,d){var e=0;e=fc-16|0;fc=e;J[e+12>>2]=d;d=J[660461];if(d)kc[d|0](b,c,J[e+12>>2]);d=J[686061];if(d)kc[d|0](a,b,c,J[e+12>>2]);fc=e+16|0}function hga(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;while(1){if((b|0)!=(c|0)){a=J[b>>2]; +H[e|0]=a>>>0<128?a:d;e=e+1|0;b=b+4|0;continue}break}return c|0}function hea(a,b){a=a|0;b=b|0;var c=0;c=a;if(K[b+11|0]>>>7|0)a=J[b>>2];else a=b;if(K[b+11|0]>>>7|0)b=J[b+4>>2];else b=K[b+11|0]&127;return NF(c,a,b)|0}function Web(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;var h=0;h=J[c>>2]>=0;J[a+508>>2]=h;return kc[J[J[a>>2]+360>>2]](a,h?c:b,d,e,f,g)|0}function Uc(a,b,c,d){var e=0;e=fc-16|0;fc=e;J[e+12>>2]=d;d=J[660462];if(d)kc[d|0](b,c,J[e+12>>2]);d=J[686059];if(d)kc[d|0](a,b,c,J[e+12>> +2]);fc=e+16|0}function ONa(a){a=a|0;var b=0,c=0;c=J[a+32>>2];a:{if(J[a+28>>2]){b=-1;if(!c)break a}J[a+32>>2]=c-1;a=J[a+24>>2];b=kc[J[J[a>>2]+28>>2]](a)|0}return b|0}function Nib(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+32&-64;return((a|0)>0?a:0)|0}a=0-((a-b|0)+32&-64)|0;return a>>31&a}function Kib(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+b|0)+63&-64;return((a|0)>0?a:0)|0}a=0-((a-b|0)+63&-64)|0;return a>>31&a}function IK(a){a=a|0;var b=0,c= +0;b=-1;a:{if(!a)break a;c=J[a+64>>2];if(!c)break a;b=0;if(!J[a+68>>2]|J[c+4>>2]!=1)break a;J[a+68>>2]=0;b=1}return b|0}function Hsb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+40>>2];a:{if(!c)break a;d=J[b+44>>2];if(!d)break a;kc[J[a+156>>2]](d,c)}kc[J[a+156>>2]](b,48);return 0}function Haa(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+32>>2];a:{if(!c)break a;d=J[b+36>>2];if(!d)break a;kc[J[a+156>>2]](d,c)}kc[J[a+156>>2]](b,40);return 0}function Gib(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=(a+ +b|0)+16&-32;return((a|0)>0?a:0)|0}a=0-((a-b|0)+16&-32)|0;return a>>31&a}function BTa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+568>>3]=(J[b>>2]==1?+J[b+8>>2]:O[b+8>>3])*.01;b=J[a+8>>2];kc[J[J[b>>2]+180>>2]](b,c);J[a+32>>2]=1}function vO(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[b+36>>2];a:{if(!c)break a;d=J[b+40>>2];if(!d)break a;kc[J[a+156>>2]](d,c)}kc[J[a+156>>2]](b,44);return 0}function u8(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=J[a+540>>2];J[d>>2]=0;J[d+4>>2]=0;if(e)f=d,g=kc[J[e+84>>2]](a,b, +c)|0,J[f>>2]=g;return 0}function tUa(a){a=a|0;var b=0,c=0;b=vc(1072);J[699344]=0;a=aa(3563,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)return a|0;a=Z()|0;uc(b);ba(a|0);B()}function rq(a,b){var c=0;a:{if(!a)break a;c=K[a|0];if(!c)break a;while(1){if((b|0)==(c|0))return a;c=K[a+1|0];a=a+1|0;if(c)continue;break}}return 0}function mn(a){var b=0,c=0;if((a|0)>=0){b=-1;if(a)while(1){b=b+1|0;c=a>>>0>1;a=a>>>1|0;if(c)continue;break}return b}fa(200312,198775,113,211890);B()}function mK(a){var b=0;b=J[a>> +2];J[a>>2]=0;if(b){a:{if(!K[a+8|0])break a;if(H[b+39|0]<0)uc(J[b+28>>2]);if(H[b+27|0]>=0)break a;uc(J[b+16>>2])}uc(b)}}function lt(a,b){a=a|0;b=b|0;J[a+20>>2]=b;if(b>>>0>=32768){Yv(a,1-(J[a+32>>2]>>>15|0)|0);J[a+32>>2]=J[a+32>>2]<<1&65534;J[a+20>>2]=J[a+20>>2]<<1&65534}}function hca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=J[a+12>>2];e=J[a+8>>2]-d|0;c=(c|0)>(e|0)?e:c;xc(b,d+J[a>>2]|0,c);J[a+12>>2]=c+J[a+12>>2];return c|0}function Wq(a){var b=0,c=0;if((a|0)>0){if((a|0)!=1)while(1){b=b+1|0;c=a>>>0>3; +a=a>>>1|0;if(c)continue;break}return b}fa(198060,198775,94,211876);B()}function Sfb(a,b){a=a|0;b=b|0;var c=0;c=J[a+116>>2];if(c){kc[J[J[c>>2]+12>>2]](c)|0;J[a+116>>2]=0}if(b){J[a+116>>2]=b;kc[J[J[b>>2]+8>>2]](b)|0}return 0}function QF(a,b,c){var d=0;d=fc-16|0;fc=d;J[699344]=0;H[d+15|0]=c;wQ(a,b,d+15|0);a=J[699344];J[699344]=0;if((a|0)!=1){fc=d+16|0;return}ea(0)|0;Bc();B()}function Mib(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b&-64;return((a|0)<0?32:a|32)|0}a=a-b&-64;return((a| +0)<-32?-32:a^-32)|0}function J$a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=(b|0)<=1?1:b;d=b>>>0>=100?100:b;if(b>>>0<=49){nL(a,5E3/((d&65535)>>>0)|0,c);return}nL(a,200-(d<<1)|0,c)}function $k(a){var b=0,c=0;b=Hk(8);J[699344]=0;a=aa(33,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1){xa(a|0,2641652,34);B()}a=Z()|0;Bp(b);ba(a|0);B()}function $h(a){a:{a=J[a>>2];if(a){J[699344]=0;if(a)J[698634]=(a|0)==-1?2794392:a;a=J[699344];J[699344]=0;if((a|0)==1)break a}return}ea(0)|0;Bc();B()}function $Ya(a){a=a|0;var b= +0,c=0;b=fc-16|0;fc=b;if(!K[a+229|0]){c=J[a+104>>2];J[b+12>>2]=2048;kc[J[J[c>>2]+312>>2]](c,b+12|0)|0;H[a+228|0]=0}fc=b+16|0}function zka(a,b){a=a|0;b=b|0;J[a+556>>2]=602;J[a+548>>2]=602;J[a+540>>2]=602;J[a+568>>2]=603;J[a+560>>2]=604;J[a+552>>2]=604;J[a+544>>2]=604;return 1}function pP(a,b){a=a|0;b=b|0;return((P(K[a+1|0],601)+P(K[a|0],117)|0)+P(K[a+2|0],306)>>>10)-((P(K[b+1|0],601)+P(K[b|0],117)|0)+P(K[b+2|0],306)>>>10)|0}function dma(a,b){a=a|0;b=b|0;var c=0,d=0;$T(a,b);c=O[b+216>>3];d=O[a+96>>3]; +O[a+96>>3]=d==0?c:c>3];d=O[a+104>>3];O[a+104>>3]=c>d?c:d}function bfb(a){a=a|0;var b=0;b=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;a=J[a+4>>2];H[a+25|0]=0;J[a+20>>2]=0;J[a>>2]=0;b=0}return b|0}function YQa(a){a=a|0;var b=0,c=0;b=vc(336);J[699344]=0;a=aa(3602,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)return a|0;a=Z()|0;uc(b);ba(a|0);B()}function Tea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=Yc(b);d=vc(c+13|0);J[d+8>>2]=0;J[d+4>>2]=c;J[d>>2]=c;e=a,f=xc(d+12|0,b,c+1|0), +J[e>>2]=f;return a|0}function RLa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+116>>2];b=J[a+160>>2];if(b)Mc(b);b=Gd(d,4);J[a+160>>2]=b;xc(b,c,d<<2);J[a+200>>2]=0;J[a+164>>2]=d}function Qi(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;c=J[b+8>>2];J[b+8>>2]=c-1;if((c|0)<=1){c=J[b+20>>2];if(c)uc(c);uc(b)}J[a>>2]=0}}function Q8a(a){a=a|0;var b=0,c=0;b=vc(336);J[699344]=0;a=aa(2485,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)return a|0;a=Z()|0;uc(b);ba(a|0);B()}function Pfa(a){a=a|0;var b=0;a= +J[a+8>>2];if(!a)return 1;J[699344]=0;a=_(6976,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ea(0)|0;Bc();B()}function K8a(a){a=a|0;var b=0;J[a>>2]=349404;a:{if(!J[a+12>>2])break a;b=J[a+8>>2];if(!b)break a;kc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}Jd(a+20|0);uc(a)}function Gua(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c+12>>2]=J[a+12>>2]+b;kc[J[J[a>>2]+60>>2]](a,c+12|0)|0;fc=c+16|0;return J[c+12>>2]-J[a+12>>2]|0}function yEb(a){var b=Q(0),c=Q(0);b=Q(V(a));c=Q(a-b);if(!(cQ(.5))return a; +c=a;a=Q(b*Q(.5));b=Q(a-Q(V(a)))==Q(0)?b:c}return b}function xqb(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c+12>>2]=b;a=J[a+12>>2];if(a)a=kc[J[J[a>>2]+12>>2]](a,c+12|0)|0;else a=0;fc=c+16|0;return a|0}function saa(a){var b=0,c=0;a:{if(K[a+346|0])break a;H[a+346|0]=1;b=J[a+168>>2];if(!b)break a;if(kc[b|0](a)|0)break a;c=901;Jc(a,901,0,0)}return c}function nEb(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)==12){c=-1;a:{if(cf(b,a+12|0))break a;if(cf(b,a+16|0))break a;c=cf(b,a+20|0)?-1:0}return c|0}ra();B()}function mEa(a, +b){a=a|0;b=b|0;var c=0,d=0;c=vc(12);J[c>>2]=0;J[c+4>>2]=0;d=J[b>>2];if(d){J[d+4>>2]=J[d+4>>2]+1;b=J[b>>2]}else b=0;J[c+8>>2]=b;vf(a,c)}function iI(a){a=a|0;var b=0,c=0;J[a>>2]=2392964;b=J[a+4>>2];a:{if(!b)break a;c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(c)break a;kc[J[J[b>>2]+4>>2]](b)}uc(a)}function fda(a){a=a|0;var b=0,c=0;b=fc-224|0;fc=b;c=b+16|0;kc[J[J[a>>2]+12>>2]](a,c);a=J[J[a+828>>2]+628>>2];J[b>>2]=c;le(a,75531,75941,b);fc=b+224|0}function ev(a,b,c,d,e){var f=0,g=0;f=e-255|0;g=P(f,c);c=e<<8;return(g- +c|0)+65535&-256|a<<24|(P(d,f)-c|0)+65535>>8|16776960-(c+P(255-e|0,b)<<8)&-65536}function _fa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;while(1){if((b|0)!=(c|0)){a=H[b|0];H[e|0]=(a|0)<0?d:a;e=e+1|0;b=b+1|0;continue}break}return c|0}function Tt(a,b){var c=0;a:{if(a-1>>>0>253)break a;c=V(_e(+(a>>>0)/255,+(b|0)*1E-5)*255+.5);if(c<4294967296&c>=0){a=~~c>>>0;break a}a=0}return a&255}function JAb(a,b){a=a|0;b=b|0;return gaa(a,L[b+30>>1],L[b+28>>1],K[b+32|0],H[b+33|0],K[b+34|0],K[b+35|0],H[b+36|0],K[b+37| +0],J[b+40>>2],J[b+44>>2])|0}function Geb(a,b){a=a|0;b=b|0;var c=0;a=J[a+16>>2];c=J[a+1576>>2];if(c)kc[J[J[c>>2]+12>>2]](c)|0;J[a+1576>>2]=b;if(b)kc[J[J[b>>2]+8>>2]](b)|0;xD(a)}function Cta(a){a=a|0;var b=0;J[a>>2]=2432368;b=J[a+36>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0;uc(Zv(a))}function At(a){a=a|0;var b=0,c=0;b=J[a+84>>2];a:{if((b|0)>=0)break a;b=-1;c=J[a+16>>2];if(!c)break a;b=At(c);b=(b|0)<0?-1:b-J[a+80>>2]|0}return b|0}function uea(a){a=a|0;var b= +0,c=0;b=fc-224|0;fc=b;c=b+16|0;kc[J[J[a>>2]+12>>2]](a,c);a=J[J[a+12>>2]+628>>2];J[b>>2]=c;le(a,90047,90068,b);fc=b+224|0}function q4(a,b,c){var d=0,e=0;d=+N[b>>2];e=+N[c>>2];N[b>>2]=O[a+56>>3]+(d*O[a+24>>3]+O[a+40>>3]*e);N[c>>2]=O[a- -64>>3]+(d*O[a+32>>3]+O[a+48>>3]*e)}function erb(a){a=a|0;var b=0,c=0;a:{c=J[a+4>>2];if(c){b=J[a+16>>2];if((b|0)>2])break a}H[a+24|0]=1;return-1}J[a+16>>2]=b+1;return K[b+c|0]}function Uda(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(Mj(a,J[b+8>>2],f)){yF(b, +c,d,e);return}a=J[a+8>>2];kc[J[J[a>>2]+20>>2]](a,b,c,d,e,f)}function IGa(a,b){a=a|0;b=b|0;var c=0,d=0;c=fc-16|0;fc=c;d=ro(b,46);a:{if((d|0)==-1){J[a>>2]=0;H[a+11|0]=0;break a}sn(a,b,d+1|0,-1,c+15|0)}fc=c+16|0}function HX(a){a=a|0;var b=0,c=0,d=0;b=J[a+60>>2];if((b|0)!=J[a+56>>2]){c=b-8|0;d=J[c>>2];if(!(!d|!K[c+4|0])){uc(pI(d));b=J[a+60>>2]}J[a+60>>2]=b-8}}function GFa(a){a=a|0;var b=0,c=0;J[a>>2]=2392964;b=J[a+4>>2];if(b){c=J[b+4>>2]-1|0;J[b+4>>2]=c;if(!c)kc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}return a| +0}function Ef(a,b,c){var d=0;a:{if(b>>>0<=2147483646){d=b+1|0;if((d|0)>2])break a}J[c>>2]=0;return 0}a=J[a+8>>2];return K[a+b|0]<<8|K[a+d|0]}function DZ(a){var b=0;a=J[J[a+16>>2]+40>>2];if(!a)return 1;b=J[a>>2];a:{if(b){a=0;if(J[b+40>>2])break a;a=b+44|0}else a=a+28|0;a=J[a>>2]}return a}function Aj(a,b,c,d,e){var f=0;f=J[a+16>>2];if(f)return kc[f|0](J[a+28>>2],b,c,d,e)|0;if(d)a=-1;else a=kc[J[a+40>>2]](J[a+28>>2],b,c,e)|0;return a}function mm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{if(!J[a+964>> +2])break a;if(!Py(a,b,c))break a;d=K[(J[a+964>>2]+P(J[a+16>>2],c)|0)+b|0]}return d|0}function brb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=a?J[a+180>>2]:0;if(d)if((kc[J[J[d>>2]+12>>2]](d,b,1,c,0,0)|0)==(c|0))break a;Ld(a,45181);B()}}function ZOa(a,b,c,d,e){a=a|0;b=+b;c=+c;d=d|0;e=e|0;O[d>>3]=O[a+88>>3]+(O[a+56>>3]*b+O[a+72>>3]*c);O[e>>3]=O[a+96>>3]+(O[a- -64>>3]*b+O[a+80>>3]*c)}function Nja(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+40>>2];while(1){if(c){c=c-1|0;d=c<<2;kc[J[J[a+32>>2]+d>>2]](b,a,J[d+J[a+36>> +2]>>2]);continue}break}}function MQ(a,b,c){var d=0,e=0,f=0;d=fc-16|0;fc=d;e=d,f=LQ(b),J[e+12>>2]=f;e=d,f=LQ(c),J[e+8>>2]=f;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+8>>2];fc=d+16|0}function IVa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a>>2]=d;J[a+4>>2]=0;Bh(a,d);xc(J[a+4>>2],J[b+4>>2]+c|0,J[a>>2]);H[J[a+4>>2]+J[a>>2]|0]=0;return a|0}function B7(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-16|0;fc=c;J[b>>2]=0;d=he(a,4,c+12|0);e=J[c+12>>2];if(!e){J[d>>2]=a;J[b>>2]=d}fc=c+16|0;return e|0}function tx(a){var b=0;b=fc-16|0; +fc=b;a:{if(a){J[b>>2]=a;Hc(0,0,0,0,0,2,2,3,a,0,0,0,32879,b);break a}Hc(0,0,0,0,0,2,2,3,0,0,0,0,36029,0)}fc=b+16|0}function qmb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;b=fc-16|0;fc=b;J[b+12>>2]=a;a=Maa(b+12|0);fc=b+16|0;return a<<24>>24}function Wz(a,b){var c=0;c=J[J[a>>2]+20>>2];J[699344]=0;a=aa(c|0,a|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)return a-9>>>0<2;ea(0)|0;Bc();B()}function Mnb(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];io(c,b);J[a+24>>2]=J[c+204>>2]<<6;J[a+28>>2]=0- +(J[c+208>>2]<<6);J[a+36>>2]=I[c+236>>1]<<6;return 0}function L7(a,b){var c=0,d=0;if(!(!a|!b)){c=J[a>>2];if(c)while(1){d=J[c+4>>2];kc[J[b+8>>2]](b,c);c=d;if(c)continue;break}J[a>>2]=0;J[a+4>>2]=0}}function tGa(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;c=K[b+11|0];d=c<<24>>24<0;lw(a,d?J[b>>2]:b,1,d?J[b+4>>2]:c);return a|0}function nIa(a,b,c){a=a|0;b=b|0;c=c|0;if(H[c+11|0]>=0){b=J[c+4>>2];J[a>>2]=J[c>>2];J[a+4>>2]=b;J[a+8>>2]=J[c+8>>2];return}Ve(a,J[c>>2],J[c+4>>2])}function m6a(a, +b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(!J[a+8>>2])return 0;f=a+16|0;s4(f,b,c,N[d>>2],N[e>>2]);c4(J[a+8>>2],f);return 1}function l7(a,b){a=a|0;b=b|0;var c=0;a:{if(!b)break a;a=J[a+12>>2];if((I[a+22>>1]+b|0)+I[a+58>>1]>>>0<=M[a+4>>2])break a;c=Hh(a,b,0)}return c|0}function l6a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(!J[a+8>>2])return 0;f=a+16|0;s4(f,b,c,N[d>>2],N[e>>2]);aM(J[a+8>>2],f);return 1}function iYa(a){a=a|0;var b=0,c=0,d=0;c=-1;b=J[a+8>>2];a:{if(!b)break a;d=b;b=J[a+ +12>>2];if(d>>>0<=b>>>0)break a;c=K[b+J[a+16>>2]|0]}return c|0}function hU(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;var h=0;if(O[g>>3]<0){gU(c);h=O[g>>3];O[g>>3]=-h;O[e>>3]=h+O[e>>3]}ZG(a,b,c)}function S2(a,b,c){a=a|0;b=b|0;c=c|0;if(T2(a,J[a+52>>2]+2|0,c)){c=J[a+52>>2];J[a+52>>2]=c+1;H[c+J[a>>2]|0]=b;H[J[a>>2]+J[a+52>>2]|0]=0}return a|0}function LIa(a){a=a|0;var b=0,c=0;b=J[J[a+4>>2]+12>>2];if(b){sI(b);b=J[a+4>>2];c=J[b+12>>2];if(c){uc(aY(c));b=J[a+4>>2]}J[b+8>>2]=0;J[b+12>>2]=0}}function sh(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;J[a+4>>2]=c;J[a>>2]=b;if(!c){J[b>>2]=0;return a|0}e=b,f=vc(P(c,d)),J[e>>2]=f;return a|0}function oob(a,b){a=a|0;b=b|0;var c=0;c=J[a+20>>2];J[b>>2]=c<<6;J[b+8>>2]=c+J[a+32>>2]<<6;c=J[a+24>>2];J[b+12>>2]=c<<6;J[b+4>>2]=c-J[a+28>>2]<<6}function e6a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+8>>2];if(!d)return 0;a=fc-16|0;fc=a;wN(J[d+188>>2],b,c,a+8|0);fc=a+16|0;return J[a+8>>2]>>6}function YOa(a,b,c,d,e){a=a|0;b=+b;c=+c;d=d|0;e=e|0;O[d>>3]=O[a+40>>3]+(O[a+8>>3]* +b+O[a+24>>3]*c);O[e>>3]=O[a+48>>3]+(O[a+16>>3]*b+O[a+32>>3]*c)}function Oy(a,b){a=a|0;b=b|0;var c=0,d=0;if(J[a+4>>2]){d=b?-1:0;c=b;b=L[a+26>>1];c=(b|0)==1?d:c;Ac(J[a+56>>2],(b|0)==4?P(c&15,17):c,J[a+32>>2])}}function Okb(a){a=a|0;var b=0,c=0;J[a+28>>2]=0;b=J[a+36>>2];a:{if(!b)break a;c=J[a+32>>2];if(!c)break a;if(c)kc[J[b+8>>2]](b,c);J[a+32>>2]=0}}function Nz(a){var b=0,c=0;b=fc-16|0;fc=b;c=-1;a:{if(Oz(a))break a;if((kc[J[a+32>>2]](a,b+15|0,1)|0)!=1)break a;c=K[b+15|0]}fc=b+16|0;return c}function Im(a, +b){a=a|0;b=b|0;var c=0;J[a+4>>2]=J[b+4>>2];c=K[b+8|0];H[a+8|0]=c;b=J[b>>2];J[a>>2]=b;if(!(!c|!b))J[b+4>>2]=J[b+4>>2]+1;return a|0}function HS(a,b,c){var d=0;d=fc-144|0;fc=d;d=Ac(d,0,144);J[d+76>>2]=-1;J[d+44>>2]=a;J[d+32>>2]=6736;J[d+84>>2]=a;a=KS(d,b,c);fc=d+144|0;return a}function Grb(a){a=a|0;var b=0;if(J[a+4>>2])a=0;else{J[a+8>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;b=Dc(1);H[a+12|0]=1;J[a+4>>2]=b;a=(b|0)!=0}return a|0}function zLa(a){a=a|0;var b=0;J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>> +2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}return a|0}function x4(a,b){var c=0;if(H[b+19|0]>=0){b=b+8|0;c=J[b+4>>2];J[a>>2]=J[b>>2];J[a+4>>2]=c;J[a+8>>2]=J[b+8>>2];return}Ve(a,J[b+8>>2],J[b+12>>2])}function op(a,b,c,d){if(c)J[c>>2]=0;if(d)J[d>>2]=0;if(!a)return;if(c)N[c>>2]=N[J[a+12>>2]+(b<<2)>>2];if(d)N[d>>2]=N[J[a+16>>2]+(b<<2)>>2]}function fq(a,b){var c=0,d=0,e=0;d=J[a>>2];e=J[b>>2];c=1;a:{if((d|0)<(e|0))break a;c=0;if((d|0)!=(e|0))break a;c=J[a+4>>2]>2]}return c}function eP(a,b){var c= +0;c=Dc(8);if(c){a:{if((b|0)>0){if(!a){J[c+4>>2]=2650480;break a}J[c+4>>2]=2650464;break a}J[c+4>>2]=0}J[c>>2]=b}return c}function ae(a,b,c,d){var e=0;e=P(b,c);a:{if(J[d+76>>2]<0){a=Lz(a,e,d);break a}a=Lz(a,e,d)}if((e|0)==(a|0))return b?c:0;return(a>>>0)/(b>>>0)|0}function VT(a){var b=0;b=J[a+56>>2];return(K[a+96|0]+(K[a+90|0]+(K[a+89|0]+(K[a+88|0]+(K[b+408|0]+K[b+409|0]|0)|0)|0)|0)&255)+(J[a+84>>2]!=0)|0}function Lca(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];if((b|0)==65557){J[J[c>>2]>>2]=J[d+ +120>>2];return 1}return kc[J[d+128>>2]](a,b,c)|0}function Job(a){a=a|0;var b=0,c=0;a=J[a>>2];b=K[a|0];if(b)while(1){c=(b<<24>>24)+P(c,31)|0;b=K[a+1|0];a=a+1|0;if(b)continue;break}return c|0}function $qb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=a?J[a+180>>2]:0;if(d)if((kc[J[J[d>>2]+16>>2]](d,b,1,c)|0)==(c|0))break a;Ld(a,45374);B()}}function $S(a){var b=0,c=0,d=0,e=0;b=J[a>>2]-1|0;b=(c=uEb(b),d=0,e=b,e?c:d);if(!b){a=J[a+4>>2];a=(c=uEb(a),d=0,e=a,e?c:d);b=a?a+32|0:0}return b}function wA(a,b){a=a|0;b=b| +0;var c=0,d=0;c=J[a>>2];d=J[c>>2];J[c>>2]=J[J[b>>2]>>2];J[J[b>>2]>>2]=d;c=J[a+4>>2];J[a+4>>2]=J[b+4>>2];J[b+4>>2]=c}function rJa(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;return Lt(J[a>>2],b,c,d,e,f,g,h,i,j,k)|0}function m$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0;a=65536-J[b>>2]|0;a=(a|0)>=65536?65536:a;J[c+12>>2]=(a|0)>0?a:0}function k2a(a,b){a=a|0;b=b|0;a:{if(b>>>0<=1){H[a+36|0]=0;J[a+44>>2]=16777216;if((b|0)==1)break a}J[a+ +52>>2]=J[a+52>>2]&-268435456|16777216}}function cw(a,b){var c=0,d=0;c=Yc(b);d=J[a>>2];if(d){uc(d);J[a>>2]=0}a:{if(!b)break a;d=a;c=c+1|0;a=Dc(c);J[d>>2]=a;if(!a)break a;Ue(a,b,c)}}function Sc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!(J[a+12>>2]>(b|0)&(b|0)>=0)){J[c>>2]=5;return c|0}return jf(J[a+4>>2]+(b<<4)|0,J[a>>2],c,d)|0}function SE(a){a:{if(!K[a+496|0])break a;if(!(kc[J[a+240>>2]](a,1)|0)){Jc(a,902,0,0);return 902}if(!K[a+496|0])break a;H[a+497|0]=1}return 0}function Mub(a,b){a=a|0;b=b|0;var c=0; +if(K[b+32|0])return Ce(a,J[b>>2],0,0)|0;c=J[a+428>>2];H[c+8|0]=K[b+33|0];return Ce(a,J[b>>2],1,c+8|0)|0}function zN(a,b){a:{if(!a)break a;a=J[a>>2];if(!a)break a;while(1){if(J[a+8>>2]==(b|0))return a;a=J[a+4>>2];if(a)continue;break}}return 0}function xm(a){var b=0;a=a*a;b=a*a;return Q(a*b*(a*2.439044879627741E-5+-.001388676377460993)+(b*.04166662332373906+(a*-.499999997251031+1)))}function tQa(a){a=a|0;var b=0;J[a>>2]=2317464;b=J[a+20>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]=0;if((b|0)!=1)return a| +0;ea(0)|0;Bc();B()}function l2a(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+28>>2]&15;if(b>>>0<=1){H[a+36|0]=0;J[a+44>>2]=16777216;J[a+52>>2]=b<<28|16777216;return}J[c>>2]=1}function ifb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;Yj(a,O[b>>3],O[c>>3]);d=0}return d|0}function hya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;Fm(a,c,d);return a|0}function hfb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=1;a:{if(!J[a+ +16>>2])break a;a=J[a+20>>2];if(!a)break a;_n(a,O[b>>3],O[c>>3]);d=0}return d|0}function Vea(a,b){a=a|0;b=b|0;var c=0;if(b)c=0;else{b=vc(464);Ac(b,0,464);c=1}H[a+512|0]=c;J[a>>2]=b;H[a+4|0]=0;Ac(a+260|0,0,252);return a|0}function FD(){var a=0,b=0,c=0;b=vc(712);J[699344]=0;a=_(2271,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)return a|0;a=Z()|0;uc(b);ba(a|0);B()}function CJ(a){a=a|0;var b=0;J[a>>2]=2217332;b=J[a+4>>2];if(b)uc(Zc(b));b=J[a+16>>2];if(b)uc(Zc(b));b=J[a+28>>2];if(b)uc(Zc(b));return a|0}function BQ(a, +b){J[a>>2]=2641388;J[a>>2]=2641496;J[699344]=0;aa(7241,a+4|0,b|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)return a;ba(Z()|0);B()}function tM(a){var b=0,c=0;a=J[a+4>>2];b=J[a>>2];if(!b)return 1;c=J[a+16>>2];a=b-1|0;return(K[J[c+(a>>>6&67108860)>>2]+(a&255)|0]&64)>>>6|0}function mtb(a,b){a=a|0;b=b|0;var c=0;c=J[a+428>>2];H[c+8|0]=K[b+32|0];H[c+9|0]=K[b+33|0];H[c+10|0]=K[b+34|0];return Ce(a,J[b>>2],3,c+8|0)|0}function mQa(a){a=a|0;var b=0;J[a>>2]=2317524;b=J[a+8>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)!=1)return a|0;ea(0)|0;Bc();B()}function _v(a){var b=0,c=0;c=J[a+24>>2];if(c)while(1){b=J[c>>2];uc(c);J[a+24>>2]=b;c=b;if(b)continue;break}b=J[a>>2];if(b)uc(b);return a}function ZZa(a){a=a|0;var b=0;a=a?J[a+8>>2]:0;if(a){b=J[a+4>>2];if(b)kc[J[663199]](b);b=J[a+12>>2];if(b)kc[J[663199]](b);kc[J[663199]](a)}}function Sx(){var a=0,b=0,c=0;b=vc(44);J[699344]=0;a=_(2273,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)return a|0;a=Z()|0;uc(b);ba(a|0);B()}function RWa(a){a=a|0;var b=0;J[a>>2]=852676; +b=J[a+16>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)uc(J[a+4>>2]);return a|0}function Ooa(a,b){a=a|0;b=b|0;a=J[a+12>>2];b=J[b>>2];J[a+480>>2]=b&1;H[a+489|0]=(b&128)>>>7;H[a+488|0]=b>>>2&31;J[a+484>>2]=b>>>1&1;return 0}function zsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1732332865){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];J[b+36>>2]=J[c+36>>2];return 0}function wZa(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;a=J[a+104>>2];O[c+8>>3]=O[b+480>>3]/72*25.4;kc[J[J[a>>2]+124>>2]](a,c+8| +0)|0;fc=c+16|0}function qza(a){a=a|0;var b=0;J[a>>2]=2418052;b=J[a+36>>2];if(b)uc(Md(b));b=J[a+64>>2];if(b)uc(Md(b));Hd(a+40|0);Hd(a+8|0);return nd(a)|0}function gl(a){a=a|0;var b=0,c=0;if(!J[a+964>>2]){c=a;b=P(J[a+20>>2],J[a+16>>2]);a=Dc(b);J[c+964>>2]=a;if(!a)return 0;Ac(a,255,b)}return 1}function dn(a){var b=0;b=J[a>>2];J[699344]=0;$(1584,b|0);b=J[699344];J[699344]=0;if((b|0)!=1){uc(J[a>>2]);J[a>>2]=0;return}ea(0)|0;Bc();B()}function dmb(a,b){a=a|0;b=b|0;var c=0,d=0;c=J[a+4>>2];a:{if(c)break a; +d=J[a>>2];c=S6(a+16|0,b,d);if(c)break a;c=S6(a+52|0,b,d)}return c|0}function bj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=b-1|0;e=d<<2;c=J[e+J[a+12>>2]>>2];if(!c){SJ(a,b,d,J[a+8>>2]);c=J[J[a+12>>2]+e>>2]}return c|0}function ZIa(a){a=a|0;var b=0;if(a){b=J[a+116>>2];if(b){uc(b);J[a+116>>2]=0}b=J[a+120>>2];if(b){uc(b);J[a+120>>2]=0}uc(J[a+148>>2]);uc(a)}}function Yca(a,b){a=a|0;b=b|0;b=Dc(4);J[a+584>>2]=b;if(!b)return 0;a:{if(K[a+13|0]&4){b=Cn(a);break a}b=wj(a)}J[J[a+584>>2]>>2]=b;return 1}function VLa(a, +b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a=J[a+116>>2];c_(a);if(c){e=O[c+96>>3];d=O[c+104>>3]}else d=0;O[a+112>>3]=e;O[a+120>>3]=d}function R9(a,b){a=a|0;b=b|0;var c=0,d=0;d=J[a+428>>2]+8|0;c=J[b+32>>2];a:{if(!c){c=0;break a}xc(d,J[b+36>>2],c)}return Ce(a,J[b>>2],c,d)|0}function Gh(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a+92>>2];if(!c)break a;b=kc[J[J[c+12>>2]+12>>2]](c,b)|0;d=b>>>0>2]?b:0}return d}function Fw(a){var b=0,c=0;b=vc(8);J[699344]=0;a=aa(3350,b|0,a|0)|0;c=J[699344];J[699344]=0;if((c| +0)!=1)return a;a=Z()|0;uc(b);ba(a|0);B()}function EM(){var a=0,b=0,c=0;b=vc(124);J[699344]=0;a=_(2274,b|0)|0;c=J[699344];J[699344]=0;if((c|0)!=1)return a;a=Z()|0;uc(b);ba(a|0);B()}function yu(a,b){a:{if(a>>>0>21)break a;J[(a<<2)+2773312>>2]=b;J[699344]=0;a=J[699344];J[699344]=0;if((a|0)!=1)break a;ea(0)|0;Bc();B()}}function xLa(a){a=a|0;var b=0;J[a>>2]=2347680;while(1){b=J[a+12>>2];if(b){J[a+12>>2]=J[b+4>>2];kc[J[J[b>>2]+4>>2]](b);continue}break}uc(a)}function vZa(a,b){a=a|0;b=b|0;var c=0;c=fc-16| +0;fc=c;a=J[a+104>>2];O[c+8>>3]=O[b+440>>3]/72*25.4;kc[J[J[a>>2]+68>>2]](a,c+8|0)|0;fc=c+16|0}function umb(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[J[b+488>>2]+4>>2];if(!c)return 7;return kc[c|0](J[b+100>>2],a,J[b+420>>2],1680,0,b)|0}function ula(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+584>>2];if((b|0)==65560){J[J[c>>2]>>2]=J[d>>2];return 1}return kc[J[d+24>>2]](a,b,c)|0}function os(a,b){var c=0;a:{if(!a|!b|(!J[a+72>>2]|!K[b|0]))break a;b=Pi(b,J[a+92>>2]);if(!b)break a;c=J[a+80>>2]+(J[b>>2]<<4)|0}return c} +function gr(a){a=a|0;var b=0;a=J[a>>2];b=J[a+12>>2];a:{if((b|0)==J[a+16>>2]){a=kc[J[J[a>>2]+36>>2]](a)|0;break a}a=K[b|0]}return a<<24>>24}function at(a,b){var c=0,d=0;c=Yc(a)+1|0;d=b&255;while(1){a:{b=0;if(!c)break a;c=c-1|0;b=c+a|0;if((d|0)!=K[b|0])continue}break}return b}function M4(a,b){a=a|0;b=b|0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]=1;J[a>>2]=351116;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;L4(a,b);return a|0}function Lib(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b|0)>=0){a=a+b&-64;return((a| +0)>0?a:0)|0}a=0-(a-b&-64)|0;return a>>31&a}function yy(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!J[a+960>>2])break a;if(!Py(a,b,c))break a;H[(J[a+960>>2]+P(J[a+16>>2],c)|0)+b|0]=d}}function yh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a:{if(!J[a+964>>2])break a;if(!Py(a,b,c))break a;H[(J[a+964>>2]+P(J[a+16>>2],c)|0)+b|0]=d}}function uBb(a){a=a|0;var b=0,c=0;J[a>>2]=212568;b=J[a+4>>2];if(b){a:{if(J[b>>2]!=2)break a;c=J[b+4>>2];if(!c)break a;uc(c)}uc(b)}uc(a)}function qra(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!(!a| +(b|0)>(c|0)))while(1){wc((b<<3)+a|0);d=(b|0)!=(c|0);b=b+1|0;if(d)continue;break}}function jqb(a,b){a=a|0;b=b|0;var c=0;c=J[b+92>>2];J[a+40>>2]=L[b+68>>1];a:{if(_D(b)){J[b+92>>2]=0;break a}Z8(a,b);Y8(a)}ls(b,c);return 0}function Ywa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+92>>2]=J[a+92>>2]+b;J[a+100>>2]=J[a+100>>2]+b;J[a+96>>2]=J[a+96>>2]+c;J[a+104>>2]=J[a+104>>2]+c}function Vrb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1716539977){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];H[b+33|0]=K[c+33|0];return 0}function TLa(a, +b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=i|0;j=j|0;k=k|0;l=l|0;b_(J[a+116>>2],b,c,d,e,f,i,j,k,l)}function FPa(a){a=a|0;var b=0;J[a>>2]=2319280;b=J[a+4>>2];if(b)uc(Zc(b));b=J[a+8>>2];if(b)uc(b);b=J[a+12>>2];if(b)uc(Zc(b));return a|0}function Ckb(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[J[b+544>>2]+4>>2];if(!c)return 7;return kc[c|0](J[b+100>>2],a,J[b+16>>2],1705,0,b)|0}function xy(a,b,c){a=a|0;b=b|0;c=c|0;J[a+20>>2]=c;J[a+16>>2]=0;J[a+4>>2]=b;J[a>>2]=47672;H[a+24|0]=0;J[a+8>> +2]=c;H[a+12|0]=!b;return a|0}function wXa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;f=fc-16|0;fc=f;g=f+4|0;J0(g,b,d,e,c,a+160|0);dj(g,J[f+8>>2]);fc=f+16|0}function uz(a){a=a|0;var b=0,c=0;J[a>>2]=2628104;b=J[a+4>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)kc[J[J[b>>2]+8>>2]](b);return a|0}function tL(a,b){J[a+28>>2]=b;J[a+24>>2]=3221;J[a+20>>2]=3222;J[a+16>>2]=3223;J[a+12>>2]=3224;J[a+8>>2]=3225;J[a+4>>2]=3226;J[a>>2]=3227}function sQa(a){a=a|0;var b=0;J[a>>2]=2317464;b=J[a+20>>2];J[699344]= +0;Mc(b);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function qPa(a){a=a|0;var b=0;J[a>>2]=2319448;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ea(0)|0;Bc();B()}function ozb(a){a=a|0;var b=0;b=J[a+540>>2];xc(J[b+1176>>2]+P(J[b+1168>>2],J[a+2552>>2])|0,J[a+2516>>2],P(J[a+588>>2],3));return XE(a)|0}function oOa(a){a=a|0;var b=0;J[a>>2]=2342784;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)!=1)return a|0;ea(0)|0;Bc();B()}function lg(a,b){var c=0; +if(!(!a|(b|0)<0)){if(J[a>>2]<=(b|0))return 0;c=J[J[a+12>>2]+(b<<2)>>2];if(c)J[c+16>>2]=J[c+16>>2]+1}return c}function f3a(a){a=a|0;var b=0;b=J[a+40>>2];if(b)Nf(b);if(K[a+30|0])Nf(J[a+36>>2]);b=J[a+220>>2];if(b)aD(b);a=J[a+212>>2];if(a)Nf(a)}function ai(a){a=a|0;var b=0,c=0;J[a>>2]=2628264;b=J[a+4>>2];c=J[b+4>>2]-1|0;J[b+4>>2]=c;if((c|0)==-1)kc[J[J[b>>2]+8>>2]](b);return a|0}function aP(a){var b=0,c=0;b=Dc(16);if(b){c=J[a+4>>2];J[b>>2]=J[a>>2];J[b+4>>2]=c;c=J[a+12>>2];J[b+8>>2]=J[a+8>>2];J[b+12>>2]= +c}return b}function Zka(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b;b=J[b>>2]+7&-8;J[c>>2]=b+16;d=a,e=yz(J[b>>2],J[b+4>>2],J[b+8>>2],J[b+12>>2]),O[d>>3]=e}function Yt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-768|0;fc=d;a:{if(!a)break a;if(b){J[d+668>>2]=c;kc[b|0](d,a);break a}uc(a)}fc=d+768|0}function Xwa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!(J[a+100>>2]<=(b|0)|J[a+92>>2]>(b|0)|J[a+96>>2]>(c|0)))d=J[a+104>>2]>(c|0);return d|0}function UX(a){a=a|0;J[a+60>>2]=2381492;J[a>>2]=2381472;J[a+8>>2]=2381648;if(H[a+ +51|0]<0)uc(J[a+40>>2]);ai(a+8|0);bg(a+60|0);return a|0}function PQa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=Ac(a,0,256);d=K[J[b>>2]+c|0];b=K[J[b+4>>2]+c|0];J[a+32>>2]=d-b<<5;J[a>>2]=(b+d<<5)+-8192}function Jja(a,b){a=a|0;b=b|0;J[a+20>>2]=0;J[a+24>>2]=b;J[a+12>>2]=0;J[a+4>>2]=4098;J[a+8>>2]=6;J[a+16>>2]=!b;Ac(a+32|0,0,40);WF(a+28|0)}function Hqa(a,b){a=a|0;b=b|0;var c=0;c=b;a=J[a+12>>2];b=J[a+792>>2]!=0;J[c>>2]=(J[a+796>>2]?b|2:b)|K[a+800|0]<<2|K[a+801|0]<<7;return 0}function Es(a,b){var c=0;if(J[a>>2]>= +0)while(1){if(!Ic(J[a+4>>2],b))return a;c=J[a+8>>2];a=a+8|0;if((c|0)>=0)continue;break}return 0}function Di(a,b,c,d,e){var f=0;f=fc-16|0;fc=f;J[f+12>>2]=c;J[f+8>>2]=e;c=rm(f+4|0,f+12|0);a=tm(a,b,d,J[f+8>>2]);$h(c);fc=f+16|0;return a}function $C(a){var b=0,c=0;b=J[a>>2];a:{if(b){if((b|0)!=1)break a;while(1){if(J[a>>2]==1)continue;break}break a}c=1;J[a>>2]=1}return c}function xF(a,b,c,d,e,f){var g=0,h=0;g=J[a+4>>2];h=g>>8;a=J[a>>2];if(g&1)h=J[J[d>>2]+h>>2];kc[J[J[a>>2]+20>>2]](a,b,c,d+h|0,g&2?e:2,f)} +function uE(a){var b=0,c=0,d=0;b=kd(1,16);a:{if(!b)break a;c=(a|0)<=0?20:a;a=kd(c,4);J[b+8>>2]=a;if(!a)break a;J[b>>2]=c;d=b}return d}function o6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!J[a+8>>2])return 0;e=a+16|0;r4(e,b,N[c>>2],N[d>>2]);c4(J[a+8>>2],e);return 1}function n6a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(!J[a+8>>2])return 0;e=a+16|0;r4(e,b,N[c>>2],N[d>>2]);aM(J[a+8>>2],e);return 1}function lQa(a){a=a|0;var b=0;J[a>>2]=2317524;b=J[a+8>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function he(a,b,c){if((b|0)<=0){J[c>>2]=b?6:0;return 0}a=kc[J[a+4>>2]](a,b)|0;if(!a){J[c>>2]=64;return 0}a=Ac(a,0,b);J[c>>2]=0;return a}function bwa(a){a=a|0;J[a>>2]=2425452;hd(a+104|0);hd(a+92|0);hd(a+80|0);hd(a+68|0);J[a>>2]=2425292;hd(a+56|0);hd(a+44|0);return nd(a)|0}function Kc(a){a=a|0;var b=0;J[a>>2]=2423592;b=J[a+4>>2];if(!(!b|(b|0)==2394486))uc(b);J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}function F7a(a){a=a|0;J[a+12>>2]=0;J[a+16>>2]=0;J[a+4>>2]= +1;J[a+8>>2]=8;J[a>>2]=351116;J[a+20>>2]=0;J[a+24>>2]=0;H[a+28|0]=0;return a|0}function Cka(a){a=a|0;J[a>>2]=2628264;WF(a+4|0);J[a+24>>2]=0;J[a+28>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function CY(a,b,c){var d=0;if(!(!a|!b)){if(!J[b+72>>2]){Nc(b+48|0,1,2352034,0);return 0}d=kc[J[b>>2]](a,J[b+44>>2],c,b+48|0)|0}return d}function wka(a){a=a|0;var b=0;a=J[a>>2];b=J[a+12>>2];a:{if((b|0)==J[a+16>>2]){a=kc[J[J[a>>2]+36>>2]](a)|0;break a}a=J[b>>2]}return a|0}function vf(a,b){a= +a|0;b=b|0;var c=0;J[b>>2]=0;J[b+4>>2]=J[a+12>>2];J[a+12>>2]=b;c=J[b+4>>2];J[(c?c:a+8|0)>>2]=b;J[a+4>>2]=J[a+4>>2]+1}function tqb(a){a=a|0;var b=0;J[a>>2]=231660;b=J[a+4>>2];if(b)uc(b);b=a+4|0;J[b>>2]=0;J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=0;return a|0}function r9(){var a=0,b=0,c=0;a=kd(1,16);a:{if(!a)break a;J[a+4>>2]=8;J[a+8>>2]=256;b=kd(256,4);if(!b)break a;J[a>>2]=b;c=a}return c}function qka(a,b){a=a|0;b=b|0;J[a+4>>2]=b;H[a|0]=0;b=J[J[b>>2]-12>>2]+b|0;if(!J[b+16>>2]){b=J[b+72>>2];if(b)cS(b);H[a| +0]=1}return a|0}function pza(a){a=a|0;var b=0;J[a>>2]=2418052;b=J[a+36>>2];if(b)uc(Md(b));b=J[a+64>>2];if(b)uc(Md(b));Hd(a+40|0);Hd(a+8|0);uc(nd(a))}function Tja(a,b,c){a=a|0;b=b|0;c=c|0;if(c>>>0>8){J[699344]=0;uc(a);a=J[699344];J[699344]=0;if((a|0)==1){ea(0)|0;Bc();B()}return}uc(a)}function NJ(a,b){a=a|0;b=b|0;var c=0,d=0;while(1){d=(c<<3)+b|0;if(J[d>>2])NJ(a,J[d+4>>2]);c=c+1|0;if((c|0)!=256)continue;break}Mc(b)}function N2(a){J[a+28>>2]=0;J[a+24>>2]=3214;J[a+20>>2]=3215;J[a+16>>2]=3216;J[a+12>> +2]=3217;J[a+8>>2]=3218;J[a+4>>2]=3219;J[a>>2]=3220}function F3a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;H[J[d>>2]+e|0]=K[(J[a+332>>2]+(P(J[J[b+84>>2]>>2],L[c>>1])+4>>>3&1023)|0)+128|0]}function Eh(a){a:{if(K[a+8|0]){a=J[a>>2];J[699344]=0;$(3044,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}return}ea(0)|0;Bc();B()}function E0(a){a=a|0;var b=0;J[a>>2]=852676;b=J[a+16>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+16>>2]=0}if(H[a+15|0]<0)uc(J[a+4>>2]);uc(a)}function AKa(a,b,c){a=a|0;b=b|0;c=c|0;if(a){J[a+ +180>>2]=b;J[a+176>>2]=c?c:505;if(J[a+172>>2]){J[a+172>>2]=0;fd(a,58362)}J[a+444>>2]=0}}function lwa(a){a=a|0;J[a+32>>2]=0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=1;J[a+12>>2]=1;J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=1;J[a+28>>2]=1}function YSa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+440>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];kc[J[J[a>>2]+100>>2]](a,c)}function Vx(a){a=a|0;var b=0;b=J[a+4>>2];if(b){kc[J[b+36>>2]](a,1);if(J[a+16>>2]){J[a+308>>2]=0;J[a+20>>2]=200;return}J[a+20>>2]=100}}function QC(a, +b){a=a|0;b=b|0;a:{b=J[J[b+4>>2]+4>>2];if(!b)break a;b=nu(b);if(!b)break a;Ll(a,b,Yc(b));return}J[a>>2]=0;H[a+11|0]=0}function KTa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+552>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];kc[J[J[a>>2]+164>>2]](a,c)}function IY(a,b){var c=0;c=J[a+200>>2];if((c&5)==5){J[a+200>>2]=c|24;if(!b){Vd(a,0);return}fd(a,61871);Vd(a,b);return}Ld(a,61826);B()}function ETa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+584>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];kc[J[J[a>> +2]+172>>2]](a,c)}function EHa(a){a=a|0;J[a+60>>2]=2381492;J[a>>2]=2381472;J[a+8>>2]=2381648;if(H[a+51|0]<0)uc(J[a+40>>2]);ai(a+8|0);bg(a+60|0);uc(a)}function CTa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];O[c+560>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];kc[J[J[a>>2]+176>>2]](a,c)}function yAb(a,b){a=a|0;b=b|0;H[a+288|0]=1;return $9(a,L[b+28>>1],K[b+30|0],K[b+31|0],J[b+32>>2],J[b+36>>2],J[b+40>>2],J[b+44>>2])|0}function xhb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(b)J[b>>2]=J[a+152>>2];if(c)J[c>>2]=J[a+ +156>>2];if(d)J[d>>2]=J[a+160>>2];return 0}function vYa(a,b,c,d,e,f,g,h,i,j,k,l,m,n){a=a|0;b=b|0;c=+c;d=+d;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;return 1}function tf(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;c=c<<8|c>>>8;b=b+2|0}J[a+32>>2]=b;return c&65535}function rkb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=fc-16|0;fc=e;a=OD(a,b,e+12|0);if(!a)pN(c,J[e+12>>2],d);fc=e+16|0;return a|0}function pH(a){a=a|0;var b=0;J[a>>2]=2439636;b=J[a+12>>2];if(b){if(H[b+ +2811|0]<0)uc(J[b+2800>>2]);uc(wU(b));J[a+12>>2]=0}return a|0}function mlb(a,b){a=a|0;b=b|0;var c=0;J[a+16>>2]=b;c=K[b+7|0];b=K[b+6|0];J[a+24>>2]=-1;J[a+28>>2]=0;J[a+32>>2]=(b<<8|c)>>>1;return 0}function g_(a,b){a=a|0;b=b|0;var c=0;a:{if((b|0)<0)break a;a=J[a>>2];if(J[a+8>>2]<=(b|0))break a;c=J[J[a>>2]+(b<<2)>>2]}return c|0}function X5a(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+168>>2];if(!a)return 0;a=kc[J[J[a>>2]+20>>2]](a)|0;return kc[J[J[a>>2]+20>>2]](a,b,c)|0}function VTa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+ +28>>2];O[c+480>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3];a=J[a+8>>2];kc[J[J[a>>2]+96>>2]](a,c)}function Qma(a){a=a|0;var b=0,c=0;b=J[a+4>>2];if(!b)return-1;b=mr(b);hh(J[a+4>>2],0,2);c=mr(J[a+4>>2]);hh(J[a+4>>2],b,0);return c|0}function Poa(a,b){a=a|0;b=b|0;var c=0;a=J[a+12>>2];c=J[a+480>>2]!=0;J[b>>2]=K[a+488|0]<<2|(J[a+484>>2]?c|2:c)|K[a+489|0]<<7;return 0}function Ny(a){var b=0;b=Dc(16);if(b){a=br(a);J[b>>2]=a;if(!a){uc(b);return 0}J[b+4>>2]=0;J[b+8>>2]=0;J[b+12>>2]=a}else b=0;return b}function JQ(a, +b,c){var d=0;d=fc-16|0;fc=d;a:{if(!(K[b+120|0]|c>>>0>30)){H[b+120|0]=1;break a}b=OQ(c)}fc=d+16|0;J[a+4>>2]=c;J[a>>2]=b}function EPa(a){a=a|0;var b=0;J[a>>2]=2319280;b=J[a+4>>2];if(b)uc(Zc(b));b=J[a+8>>2];if(b)uc(b);b=J[a+12>>2];if(b)uc(Zc(b));uc(a)}function ELa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!((c|0)<2|a>>>0>65535)){a=a<<8|(a&65280)>>>8;H[b|0]=a;H[b+1|0]=a>>>8;d=2}return d|0}function ymb(a,b){a=a|0;b=b|0;var c=0;b=J[a>>2];c=J[b+376>>2];J[a+16>>2]=c;J[a+20>>2]=J[b+380>>2]-c;J[a+24>>2]=J[b+384>> +2];return 0}function pzb(a){a=a|0;var b=0;b=J[a+540>>2];xc(J[b+1176>>2]+P(J[b+1168>>2],J[a+2552>>2])|0,J[a+2516>>2],J[a+588>>2]);return XE(a)|0}function pPa(a){a=a|0;var b=0;J[a>>2]=2319448;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function m_a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;a:{e=J[a+272>>2];if(!e)break a;e=J[e+44>>2];if(!e)break a;kc[e|0](a,b,c,d)}}function fI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(!a|!b)){H[b+120|0]=e;J[b+116>>2]=d;J[b+ +112>>2]=c;J[b+8>>2]=J[b+8>>2]|128}}function Yy(a,b,c,d,e){var f=0,g=0;f=J[a+4>>2];g=f>>8;a=J[a>>2];if(f&1)g=J[J[c>>2]+g>>2];kc[J[J[a>>2]+24>>2]](a,b,c+g|0,f&2?d:2,e)}function XH(a,b,c,d){var e=0;e=a;a=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);di(e,a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24),c,d)}function RNa(a){a=a|0;var b=0;J[a>>2]=2342784;J[699344]=0;$(3370,a+8|0);b=J[699344];J[699344]=0;if((b|0)==1){ea(0)|0;Bc();B()}uc(a)}function QOa(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){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;l=l|0;m=m|0;n=+n;o=+o}function M7(a,b){var c=0,d=0;if(!(!a|!b)){a=J[a>>2];while(1){if(!a)return;c=J[a+4>>2];d=kc[b|0](a,0)|0;a=c;if(!d)continue;break}}}function Gz(a,b){var c=0,d=0;a:{if(b>>>0<=31){d=J[a>>2];c=a+4|0;break a}b=b-32|0;c=a}c=J[c>>2];J[a>>2]=d<>2]=c<>>32-b}function zRa(a,b){a=a|0;b=b|0;var c=0;if(J[a+12>>2]>0)while(1){J[(c<<2)+b>>2]=65536;c=c+1|0;if((c|0)>2])continue;break}}function zCb(a,b,c){a=a|0;b=b|0;c=c|0;if(Kh(c,J[a+12>> +2]))a=-1;else a=(Ap(c,J[a+20>>2],J[a+16>>2])|0)!=J[a+16>>2]?-1:0;return a|0}function ut(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=J[a+16>>2];d=J[a+20>>2];e=(c|0)>(d|0);Fm(a,e?b:(b|0)>(c|0)?c:b,e?b:(b|0)<(d|0)?d:b)}function kda(a){a=a|0;var b=0;b=J[a+828>>2];J[b+608>>2]=J[b+600>>2];pf(b);J[a+780>>2]=J[b+596>>2];J[a+784>>2]=J[b+600>>2];return 1}function fTa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;b=J[a+8>>2];kc[J[J[b>>2]+64>>2]](b,J[a+28>>2]);d=a,e=Bw(J[a+28>>2]),J[d+28>>2]=e}function awa(a){a=a|0;J[a>>2]=2425452; +hd(a+104|0);hd(a+92|0);hd(a+80|0);hd(a+68|0);J[a>>2]=2425292;hd(a+56|0);hd(a+44|0);uc(nd(a))}function ajb(a){a=a|0;J[a+216>>2]=0;J[a+436>>2]=0;J[a+144>>2]=0;a=J[a+460>>2];J[a+164>>2]=0;J[a+24>>2]=0;J[a+12>>2]=0;J[a+16>>2]=0}function XU(a){a=a|0;var b=0;J[a>>2]=2439476;b=J[a+4>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}Uv(a+20|0,J[a+24>>2]);return a|0}function VCa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){wc(a+24|0);wc(a+16|0);a=a+32|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Rqb(a){a= +a|0;var b=0,c=0;b=-1;a:{if(!a)break a;c=J[a+16>>2];if(!c)break a;b=0;if(J[a+20>>2])break a;b=DZ(c)}return b|0}function Kt(a,b){var c=0,d=0;if(!b){fa(2354487,2354721,172,2355230);B()}d=a;a=a+b|0;c=d>>>0>a>>>0?1:c;return xEb(a-1|0,c-!a|0,b,0)}function Iz(a,b){var c=0,d=0;c=J[a+4>>2];a:{if(b>>>0<=31){d=J[a>>2];break a}b=b-32|0;d=c;c=0}J[a+4>>2]=c>>>b;J[a>>2]=c<<32-b|d>>>b}function Fob(a,b){a=a|0;b=b|0;var c=0,d=0;c=6;a:{if(!a)break a;d=J[a+4>>2];if(!d)break a;c=n8(J[J[d+96>>2]+4>>2],a,b)}return c|0} +function Eaa(a){a=a|0;var b=0,c=0;b=J[J[a+544>>2]+88>>2];c=J[b+1168>>2];xc(J[a+644>>2],J[b+1176>>2]+P(c,J[a+572>>2])|0,c);return 0}function DAb(a,b){a=a|0;b=b|0;if(!K[a+498|0]){H[a+1148|0]=K[b+32|0];I[a+1150>>1]=L[b+28>>1];I[a+1152>>1]=L[b+30>>1]}return Dy(a)|0}function wC(a,b){var c=0,d=0,e=0;if(!(!a|!b)){if(K[b|0]){c=b;while(1){d=d+1|0;e=K[c+1|0];c=c+1|0;if(e)continue;break}}vC(a,b,d)}}function vga(a){a=a|0;var b=0,c=0;b=J[J[a>>2]>>2];c=J[b+8>>2];a=J[b+4>>2];b=J[b>>2]+(c>>1)|0;if(c&1)a=J[a+J[b>> +2]>>2];kc[a|0](b)}function nH(a,b){a=a|0;b=+b;var c=0,d=0,e=0;c=J[a+432>>2];d=c+1|0;J[a+432>>2]=d;e=+(d>>>0);O[a+424>>3]=O[a+424>>3]/e*+(c>>>0)+b/e}function nD(a,b,c,d){var e=0;e=J[a+84>>2];if((e|0)>0){a=J[a+80>>2]+P((b|0)<(e|0)?(b|0)>0?b:0:e-1|0,96)|0;N[a+8>>2]=d;N[a+4>>2]=c}}function fMa(a,b){a=a|0;b=b|0;var c=0;a=J[a>>2];b=J[b>>2];c=O[a+16>>3]-O[b+16>>3];if(c==0)c=O[a>>3]-O[b>>3];return(c<0?-1:c>0)|0}function d3(a,b,c){a=a|0;b=b|0;c=c|0;a:{b=J[a+28>>2];if(!(b&14)){b=b&15;J[a+48>>2]=!b<<3;if((b| +0)!=1)break a;c=a+52|0}J[c>>2]=1}}function cX(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){id(a+24|0);wc(a+16|0);a=a+40|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function WN(a){var b=0,c=0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;c=J[b+16>>2]-1|0;J[b+16>>2]=c;if((c|0)<=0)uc(b);J[a>>2]=0}}function QT(a){a=a|0;var b=0;a:{if(a>>>0<=13){b=1;if(1<>>0<55264|a-57344>>>0<8190|a>>>0>65535}return b|0}function NNa(a){a=a|0;var b=0;a:{if(J[a+28>>2]){b=-1;if(!J[a+32>>2])break a}a=J[a+24>> +2];b=kc[J[J[a>>2]+32>>2]](a)|0}return b|0}function Kgb(a,b){a=a|0;b=b|0;var c=0;c=J[a+668>>2];if(c)kc[J[J[c>>2]+12>>2]](c)|0;J[a+668>>2]=b;if(b)kc[J[J[b>>2]+8>>2]](b)|0}function lga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){J[d>>2]=H[b|0];d=d+4|0;b=b+1|0;continue}break}return c|0}function kVa(){var a=0;a=vc(28);J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=1;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function UGa(a){a=a|0;var b=0;J[a>>2]=2383728;b=J[a+4>>2];if(b){uc(b);J[a+ +4>>2]=0}b=J[a+8>>2];if(b){uc(b);J[a+8>>2]=0}return a|0}function RO(a){var b=0,c=0;b=J[a+688>>2];if(b)while(1){c=J[b+8>>2];if(!K[b+33|0])kc[J[b>>2]](a,b)|0;b=c;if(b)continue;break}}function LKa(a,b,c,d,e,f,g,h,i){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;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function L3(a){var b=0;if(!J[a+344>>2]){b=a+320|0;Cx(b,J[a+340>>2]!=0);iD(b,O[a+280>>3],J[a+340>>2])}J[a+344>>2]=1;J[a+348>>2]=0}function Jib(a,b,c){a=a|0;b=b|0;c=c|0;a=J[((c<<2)+a|0)+268>>2];if((b| +0)>=0){a=a+b|0;return((a|0)>0?a:0)|0}a=b-a|0;return a>>31&a}function Ii(a,b){a=J[a+12>>2];if(a)while(1){if(kc[J[J[a>>2]+32>>2]](a,b)|0)return a;a=J[a+4>>2];if(a)continue;break}return 0}function Doa(a,b){a=a|0;b=b|0;b=J[b>>2];a=J[a+12>>2];if(!(K[a+2768|0]?(b|0)==1:0)){J[a+2696>>2]=b;J[(a+1976|0)+16>>2]=b}return 0}function z_a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=-1;a:{if(!a|!b)break a;d=ge(b,1,c,a);if((d|0)>=0)break a;MK(29241)}return d|0}function zR(a,b,c,d,e,f){a=kc[J[J[a+8>>2]+4>>2]](a+8|0)|0;a=kz(c, +d,a,a+288|0,f,e,0)-a|0;if((a|0)<=287)J[b>>2]=((a|0)/12|0)%12}function yfb(a,b){a=a|0;b=b|0;b=J[b>>2];J[a+496>>2]=b&1;H[a+505|0]=(b&128)>>>7;H[a+504|0]=b>>>2&31;J[a+500>>2]=b>>>1&1;return 0}function pkb(a){a=a|0;var b=0,c=0;b=fc-224|0;fc=b;c=b+16|0;kc[J[J[a>>2]+12>>2]](a,c);J[b>>2]=c;md(J[655074],53248,b);fc=b+224|0}function lI(a,b){var c=0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;c=bf(b);H[a+8|0]=0;J[a>>2]=b;J[a+4>>2]=(c|0)<0?-2147483648:c;return a}function kU(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;a=J[a>> +2];if(a){J[c+12>>2]=J[b>>2];kc[J[J[a>>2]+40>>2]](a,c+12|0)}fc=c+16|0}function imb(a,b){a=a|0;b=b|0;var c=0;c=!a|J[a>>2]!=1381173770?c:J[a+4>>2];return J[c+4>>2]+P(J[c+28>>2],J[c+24>>2]+(b^-1)|0)|0}function iVa(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=J[a>>2];if((b|0)>2]){J[a+4>>2]=b+1;a=K[J[c+4>>2]+b|0]}else a=-1;return a|0}function bga(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;while(1){if((b|0)!=(c|0)){H[d|0]=K[b|0];d=d+1|0;b=b+1|0;continue}break}return c|0}function ad(a){var b=0;b=fc-16|0;fc=b;a=gf(a,b+12| +0,2);fc=b+16|0;b=K[b+12|0]|K[b+13|0]<<8;return((a|0)==2?b<<8|b>>>8:0)<<16>>16}function UKa(a){a=a|0;var b=0;a=J[J[a+16>>2]+40>>2];a:{if(!a)break a;a=J[a>>2];if(!a)break a;b=J[J[a+28>>2]+20>>2]}return b|0}function Nlb(a,b){a=a|0;b=b|0;var c=0;c=!a|J[a>>2]!=1381173770?c:J[a+4>>2];return J[c+8>>2]+P(J[c+20>>2],J[c+24>>2]+(b^-1)|0)|0}function JVa(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=c;J[a+4>>2]=0;Bh(a,c);xc(J[a+4>>2],b,J[a>>2]);H[J[a+4>>2]+J[a>>2]|0]=0;return a|0}function FMa(a,b,c){a=a|0;b=b|0;c=c|0;var d= +0,e=0;J[a+12>>2]=c;J[a>>2]=2344672;J[a+4>>2]=b;d=a,e=Gd(c,4),J[d+8>>2]=e;return a|0}function DY(a,b){var c=0;if(!(!a|!b)){if(!J[a+72>>2]){Nc(a+48|0,1,2351450,0);return 0}kc[J[a+24>>2]](J[a+44>>2],b);c=1}return c}function Cp(a,b){J[699344]=0;a=ga(7259,(b<<1)+2640336|0,2,a|0)|0;b=J[699344];J[699344]=0;if((b|0)!=1)return a;ea(0)|0;Bc();B()}function CR(a,b,c,d,e,f){a=kc[J[J[a+8>>2]+4>>2]](a+8|0)|0;a=mz(c,d,a,a+288|0,f,e,0)-a|0;if((a|0)<=287)J[b>>2]=((a|0)/12|0)%12}function wmb(a,b){a=a|0;b=b|0;var c= +0,d=0;c=J[a+16>>2];return(c>>>0>b>>>0|J[a+20>>2]+c>>>0<=b>>>0?d:L[J[a+24>>2]+(b<<1)>>1])|0}function wW(a){a=a|0;var b=0;b=1;a:{if(!pd(a,2416300,-1))break a;if(!pd(a,2415668,-1))break a;b=!pd(a,2412112,-1)}return b|0}function voa(a){a=a|0;a=J[a+12>>2];a:{if(J[a+2696>>2]==512){MU(a+2064|0);break a}a=a+2776|0;kc[J[J[a>>2]+12>>2]](a)|0}return 0}function qqa(a){a=a|0;var b=0;J[a>>2]=2439476;b=J[a+4>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+4>>2]=0}Uv(a+20|0,J[a+24>>2]);uc(a)}function cmb(a){a=a|0;J[a+12>>2]= +1;J[a+16>>2]=0;J[a+4>>2]=0;J[a+76>>2]=0;J[a- -64>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0}function _da(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Mj(a,J[b+8>>2],0)){AF(b,c,d);return}a=J[a+8>>2];kc[J[J[a>>2]+28>>2]](a,b,c,d)}function Xlb(a){a=a|0;J[a+12>>2]=2;J[a+16>>2]=0;J[a+4>>2]=0;J[a+76>>2]=0;J[a- -64>>2]=0;J[a+52>>2]=0;J[a+40>>2]=0;J[a+28>>2]=0}function UOa(a,b,c,d,e,f,g,h,i){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;kc[J[J[a>>2]+292>>2]](a,b,c,d,e,f,g,h,i)}function x7(a,b,c){a=a|0;b= +b|0;c=c|0;J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=0;J[c+12>>2]=0;if(J[b+72>>2]==J[a+16>>2])Hq(b+108|0,c)}function ve(a){var b=0,c=0;if(J[a+20>>2]){b=J[a>>2];if(b){c=J[a+28>>2];kc[J[c+8>>2]](c,b)}J[a>>2]=0}J[a+32>>2]=0;J[a+36>>2]=0}function r8a(a,b){a=a|0;b=b|0;var c=0;c=J[a+4>>2];if(c)kc[J[J[c>>2]+12>>2]](c)|0;J[a+4>>2]=b;if(b)kc[J[J[b>>2]+8>>2]](b)|0}function n$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b>>2];a=(a|0)>=65536?65536:a;a=(a|0)>0?a:0;J[c+4>>2]=a;J[c+8>>2]=a;J[c>>2]=a}function lTa(a,b,c){a=a|0;b=b| +0;c=c|0;c=J[a+28>>2];b=J[b+8>>2];J[c+472>>2]=b>>>0<=2?b:0;a=J[a+8>>2];kc[J[J[a>>2]+88>>2]](a,c)}function iSa(a,b,c){a=a|0;b=b|0;c=c|0;a=Ac(a,0,256);b=J[b>>2]+c|0;c=K[b|0];b=K[b+1|0];J[a+4>>2]=c-b<<5;J[a>>2]=(b+c<<5)+-8192}function fm(a){var b=0,c=0;a:{if(!a)break a;b=J[a+4>>2];if(!b)break a;b=b-1|0;J[a+4>>2]=b;c=J[J[a+8>>2]+(b<<2)>>2]}return c}function eR(a){a:{if(!K[a+4|0]){J[699344]=0;$(6960,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}return}ea(0)|0;Bc();B()}function a_(a,b,c,d,e){var f=0; +f=J[a+212>>2];a=vc(40);J[a+32>>2]=c==e;O[a+24>>3]=e;O[a+16>>3]=d;O[a+8>>3]=c;O[a>>3]=b;sd(f,a)}function YBb(a,b,c){a=a|0;b=b|0;c=c|0;a=fc-16|0;fc=a;rd(201852,0);rd(202468,0);J[a>>2]=201113;rd(199996,a);fc=a+16|0;return-1}function XTa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];b=J[b+8>>2];J[c+476>>2]=b>>>0<=2?b:0;a=J[a+8>>2];kc[J[J[a>>2]+92>>2]](a,c)}function LQ(a){var b=0;b=fc-16|0;fc=b;J[b+12>>2]=a;a=fc-16|0;fc=a;J[a+12>>2]=J[b+12>>2];fc=a+16|0;fc=b+16|0;return J[a+12>>2]}function Kq(a){var b=0;b=kd(1, +16);if(!b)return 0;J[b+8>>2]=1;a=(a|0)<=0?20:a;J[b+4>>2]=a;a=kd(a,4);J[b+12>>2]=a;return a?b:0}function K6a(a){a=a|0;var b=0;J[a+4>>2]=1;J[a>>2]=347840;J[a>>2]=351884;b=a+12|0;J[b>>2]=0;J[b+4>>2]=0;J[a+8>>2]=b;return a|0}function Gc(a){var b=0,c=0;a:{b=a+8|0;if(J[b>>2]){c=b;b=J[b>>2]-1|0;J[c>>2]=b;if((b|0)!=-1)break a}kc[J[J[a>>2]+16>>2]](a)}}function y4(a){a=a|0;var b=0;J[a>>2]=351668;a:{if(K[a+12|0])break a;b=J[a+8>>2];if(!b)break a;uc(b)}J[a+8>>2]=0;return a|0}function tg(a,b,c){a=a|0;b=b|0;c= +c|0;if(!(J[a+12>>2]>(b|0)&(b|0)>=0)){J[c>>2]=5;return c|0}return Pe(J[a+4>>2]+(b<<4)|0,c)|0}function lD(a){a=a|0;var b=0;J[a>>2]=351848;a:{if(K[a+16|0])break a;b=J[a+8>>2];if(!b)break a;uc(b);J[a+8>>2]=0}return a|0}function fwa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+36>>2]=c;J[a+32>>2]=b;if(J[a+40>>2])xe(a+44|0,0,4);if(J[a+52>>2])xe(a+56|0,0,4)}function cWa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=Yc(c);if(!A0(a,b,d))return 0;return!dd(((a-J[a+1040>>2]|0)+b|0)+16|0,c,d)|0}function Wlb(a){a=a|0;var b=0;J[a+140>>2]= +0;J[a+112>>2]=0;b=J[a+12>>2];U6(a+28|0,b);U6(a- -64|0,b);J[a+12>>2]=0;J[a+16>>2]=0}function Rxa(a){a=a|0;J[a>>2]=2423916;Hd(a+124|0);Hd(a+100|0);J[a>>2]=2423832;wc(a+24|0);wc(a+16|0);wc(a+8|0);return nd(a)|0}function HVa(a,b){a=a|0;b=b|0;var c=0;J[a+4>>2]=0;c=J[b>>2];J[a>>2]=c;Bh(a,c);xc(J[a+4>>2],J[b+4>>2],J[a>>2]+1|0);return a|0}function FW(a,b,c){var d=0;d=J[a>>2];if(d){uc(d);J[a>>2]=0}a:{if(!b)break a;d=a;a=Dc(c);J[d>>2]=a;if(!a)break a;Ue(a,b,c)}}function DR(a,b,c,d,e,f){a=kc[J[J[a+8>>2]>>2]](a+ +8|0)|0;a=mz(c,d,a,a+168|0,f,e,0)-a|0;if((a|0)<=167)J[b>>2]=((a|0)/12|0)%7}function CBb(a){a=a|0;var b=0,c=0,d=0;a=J[a+52>>2];c=a,d=(kc[J[J[a>>2]+20>>2]](a,2)|0)-2|0,b=J[J[a>>2]+24>>2],kc[b](c|0,d|0)}function BWa(a){a=a|0;var b=0;b=J[a+244>>2];if(b){J[a+248>>2]=b;uc(b)}b=J[a+232>>2];if(b){J[a+236>>2]=b;uc(b)}return Ch(a)|0}function AR(a,b,c,d,e,f){a=kc[J[J[a+8>>2]>>2]](a+8|0)|0;a=kz(c,d,a,a+168|0,f,e,0)-a|0;if((a|0)<=167)J[b>>2]=((a|0)/12|0)%7}function A4(a){a=a|0;var b=0;J[a>>2]=351284;a:{if(K[a+ +16|0])break a;b=J[a+8>>2];if(!b)break a;uc(b);J[a+8>>2]=0}return a|0}function zfb(a,b){a=a|0;b=b|0;var c=0;c=b;b=J[a+496>>2]!=0;J[c>>2]=K[a+504|0]<<2|(J[a+500>>2]?b|2:b)|K[a+505|0]<<7;return 0}function pdb(a){a=a|0;var b=0;a=2772312;while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((a|0)!=2771664)continue;break}}function gwa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+12>>2]=c;J[a+8>>2]=b;if(J[a+40>>2])xe(a+44|0,0,4);if(J[a+52>>2])xe(a+56|0,0,4)}function g8(a,b){var c=0,d=0;a:{if(!a)break a;c=J[a+28>>2];d=J[a+ +24>>2];if(d)kc[d|0](a);if(b)break a;kc[J[c+8>>2]](c,a)}}function bn(a){var b=0;a:{a=J[a+68>>2];if(!a)break a;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break a;kc[J[J[a>>2]+8>>2]](a);Gc(a)}}function _jb(a){a=a|0;var b=0;kc[J[J[a>>2]+8>>2]](a);b=J[a+4>>2];if(b)kc[J[b+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0;ya(1);B()}function Xva(a){a=a|0;J[a>>2]=2425552;hd(a+92|0);hd(a+80|0);hd(a+68|0);J[a>>2]=2425292;hd(a+56|0);hd(a+44|0);return nd(a)|0}function OAb(a,b){a=a|0;b=b|0;H[a+312|0]=1;I[a+2240>>1]=L[b+28>>1];I[a+2242>> +1]=L[b+30>>1];I[a+2244>>1]=L[b+32>>1];return 0}function Jdb(a){a=a|0;var b=0;a=2771656;while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((a|0)!=2771008)continue;break}}function Hta(a){a=a|0;var b=0;b=J[a+36>>2];if(b)kc[J[J[b>>2]+4>>2]](b);J[a+24>>2]=0;J[a+28>>2]=0;J[a+32>>2]=0;J[a+36>>2]=0}function tob(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=hp(J[a>>2],c,242532);if(!a)return 64;J[d>>2]=a;J[e>>2]=0;return 0}function sob(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=hp(J[a>>2],c,242631);if(!a)return 64; +J[d>>2]=a;J[e>>2]=0;return 0}function sWa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+8>>2]=b;J[a>>2]=2181644;J[a+16>>2]=d;J[a+12>>2]=c;J[a+4>>2]=b;return a|0}function jf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!(!b|J[a>>2]!=9))return wl(b,J[a+8>>2],J[a+12>>2],c,d)|0;return Pe(a,c)|0}function je(a){var b=0;a:{a=J[a+4>>2];if(!a)break a;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break a;kc[J[J[a>>2]+8>>2]](a);Gc(a)}}function eU(a){var b=0;a:{a=J[a+8>>2];if(!a)break a;b=J[a+4>>2];J[a+4>>2]=b-1;if(b)break a;kc[J[J[a>>2]+8>> +2]](a);Gc(a)}}function eBa(a,b){a=a|0;b=b|0;var c=0,d=0;c=At(J[b+156>>2]);if((c|0)>0){d=si();kc[J[J[d>>2]+48>>2]](d,b,Q(Q(a|0)/Q(c|0)))}}function a$(a,b,c){O[a+600>>3]=O[a+504>>3]*b+O[a+520>>3]*c+O[a+600>>3];O[a+608>>3]=O[a+512>>3]*b+O[a+528>>3]*c+O[a+608>>3]}function VS(a,b,c,d,e,f,g,h,i){J[a>>2]=b;J[a+4>>2]=c;J[a+8>>2]=d;J[a+12>>2]=e&65535|(i>>>16&32768|(e&2147418112)>>>16)<<16}function Tgb(a,b){a=a|0;b=b|0;var c=0;b=J[J[a>>2]+132>>2];c=K[b+104|0];J[a+16>>2]=c;J[a+20>>2]=(K[b+105|0]-c|0)+1;return 0} +function Qgb(a){a=a|0;var b=0;a=2771E3;while(1){b=a-12|0;if(H[a-1|0]<0)uc(J[b>>2]);a=b;if((a|0)!=2770352)continue;break}}function $Q(){J[699737]=0;J[699736]=2639640;J[699736]=2634480;H[2798956]=0;J[699738]=0;J[699736]=2633020;J[699738]=2633072}function z4(a,b,c){a=a|0;b=b|0;c=c|0;H[a+13|0]=255;J[a+8>>2]=b;J[a+4>>2]=1;J[a>>2]=351668;H[a+12|0]=(b|0)!=0&c;return a|0}function yka(a){a=a|0;var b=0;if((kc[J[J[a>>2]+36>>2]](a)|0)==-1)return-1;b=a;a=J[a+12>>2];J[b+12>>2]=a+4;return J[a>>2]}function qYa(a, +b){a=a|0;b=b|0;J[a+4>>2]=b;J[a>>2]=2342900;J[a>>2]=837560;J[a+16>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function mL(a,b){if(b){mL(a,J[b>>2]);mL(a,J[b+4>>2]);if(H[b+39|0]<0)uc(J[b+28>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function kw(a){a=a|0;var b=0;b=J[a+36>>2]-8|0;J[a+36>>2]=b;if(J[a+32>>2]==(b|0)){O[a+48>>3]=1;return}O[a+48>>3]=O[b-8>>3]}function i_a(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:{d=J[a+272>>2];if(!d)break a;d=J[d+48>>2];if(!d)break a;kc[d|0](a,b,c)}}function h_a(a,b,c){a=a|0;b=b|0; +c=c|0;var d=0;a:{d=J[a+272>>2];if(!d)break a;d=J[d+52>>2];if(!d)break a;kc[d|0](a,b,c)}}function dj(a,b){if(b){dj(a,J[b>>2]);dj(a,J[b+4>>2]);if(H[b+39|0]<0)uc(J[b+28>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function bU(a,b){a=a|0;b=+b;var c=0,d=0,e=0;c=J[a+24>>2];d=c+1|0;J[a+24>>2]=d;e=+(d|0);O[a+16>>3]=O[a+16>>3]/e*+(c|0)+b/e}function ZF(a,b,c){c=J[c>>2];while(1){a:{if((a|0)!=(b|0)){if((c|0)!=J[a>>2])break a}else a=b;return a}a=a+4|0;continue}}function U2a(a,b){a=a|0;b=b|0;var c=0;c=J[a+8>>2];if(c>>> +0>2]){J[a+8>>2]=c+1;return K[c|0]}J[b>>2]=8;return 65535}function RKa(a){a=a|0;a=J[J[a+16>>2]+40>>2];if(!a)return 0;a=J[a>>2];if(a)a=J[J[a+24>>2]+16>>2]+1|0;else a=0;return a|0}function Jv(a,b){a=a|0;b=b|0;var c=0;c=J[b+8>>2];b=J[b+4>>2];if((c|0)==(b|0)){J[a>>2]=0;H[a+11|0]=0;return}TL(a,b,c-b>>2)}function EAb(a,b){a=a|0;b=b|0;return caa(a,L[b+28>>1],L[b+30>>1],K[b+32|0],J[b+36>>2],J[b+40>>2],J[b+44>>2],J[b+48>>2])|0}function $f(a,b){var c=0;a:{if(!a|!J[a+20>>2])break a;c=J[b>>2];if(!c)break a; +a=J[a+28>>2];kc[J[a+8>>2]](a,c)}J[b>>2]=0}function yO(a,b){a=a|0;b=b|0;var c=0;c=J[b>>2];if(K[b+32|0])return Ce(a,c,0,0)|0;return Ce(a,c,J[b+36>>2],J[b+40>>2])|0}function ptb(a,b){a=a|0;b=b|0;var c=0;c=J[a+428>>2];H[c+8|0]=K[b+32|0];H[c+9|0]=K[b+33|0];return Ce(a,J[b>>2],2,c+8|0)|0}function pob(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];J[b+20>>2]=J[a+20>>2];J[b+24>>2]=J[a+24>>2];return K7(c,a+28|0,b+28|0)|0}function p7a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;H[a+16|0]=d;J[a+12>>2]=c;J[a+8>>2]=b;J[a+4>>2]=1;J[a>> +2]=351284;return a|0}function jaa(a){var b=0;b=L[a+2326>>1];a:{if(b){b=ph(a,b);break a}b=J[a+528>>2]}b=Zh(a,b,0);if(!b)H[a+498|0]=0;return b}function g4a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=J[a+4>>2];if(a)e=d,f=ge(b,1,c,a),J[e>>2]=f;return(a|0)!=0|0}function cv(a){var b=0;a:{if(!a)break a;a=z9(a);if(!a)break a;Ac(J[a+40>>2],0,P(J[a+12>>2],J[a+4>>2])<<2);b=a}return b}function bS(a){var b=0;b=J[a+12>>2];if((b|0)==J[a+16>>2])return kc[J[J[a>>2]+40>>2]](a)|0;J[a+12>>2]=b+4;return J[b>>2]}function Tk(a){var b= +0,c=0;if(!a)return 0;if(K[a|0])while(1){b=b+1|0;c=K[a+1|0];a=a+1|0;if(c)continue;break}return b}function O6a(a){a=a|0;var b=0;J[a>>2]=351848;a:{if(K[a+16|0])break a;b=J[a+8>>2];if(!b)break a;uc(b);J[a+8>>2]=0}uc(a)}function Kka(a){a=a|0;var b=0;if((kc[J[J[a>>2]+36>>2]](a)|0)==-1)return-1;b=a;a=J[a+12>>2];J[b+12>>2]=a+1;return K[a|0]}function $5a(a,b){a=a|0;b=b|0;J[a+136>>2]=J[b>>2];b=J[a+8>>2];if(b){a=J[a+136>>2];if((a|0)!=J[b+216>>2])J[b+216>>2]=a}}function zya(a,b){a=a|0;b=b|0;var c=0;if((b|0)> +0)while(1){id(a+36|0);a=a+56|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function y_a(a){a=a|0;var b=0;b=O1(a);a:{if(b)break a;b=0;a=Wo(a,0);if(!a)break a;b=O1(a);kc[J[663199]](a)}return b|0}function vea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;d=c+21|0;e=c+32|0;lQ(c+12|0,d,e,b);dG(a,d,J[c+12>>2]);fc=e}function tea(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;d=c+21|0;e=c+32|0;kQ(c+12|0,d,e,b);dG(a,d,J[c+12>>2]);fc=e}function rm(a,b){var c=0;c=J[698634];b=J[b>>2];if(b)J[698634]=(b|0)==-1?2794392: +b;J[a>>2]=(c|0)==2794392?-1:c;return a}function ph(a,b){a=J[a+688>>2];if(a)while(1){if(L[a+28>>1]==(b|0))return a;a=J[a+8>>2];if(a)continue;break}return 0}function pB(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function mMa(a){a=a|0;var b=0;a:{if(!a)break a;a=P_(2,J[a+672>>2],J[a+668>>2]);if(!a)break a;b=Ac(a,0,236)}return b|0}function jS(a){var b=0;b=J[a+12>>2];if((b|0)==J[a+16>>2])return kc[J[J[a>>2]+40>>2]](a)|0;J[a+12>>2]=b+1;return K[b| +0]}function aG(a,b,c){c=K[c|0];while(1){a:{if((a|0)!=(b|0)){if((c|0)!=K[a|0])break a}else a=b;return a}a=a+1|0;continue}}function a3a(a){a=a|0;var b=0;b=J[a+24>>2];a:{if(K[a+28|0]&16){a=J[b+216>>2];if(a)break a}a=J[b+12>>2]+4|0}return a|0}function Qxa(a){a=a|0;J[a>>2]=2423916;Hd(a+124|0);Hd(a+100|0);J[a>>2]=2423832;wc(a+24|0);wc(a+16|0);wc(a+8|0);uc(nd(a))}function O3a(a){a=a|0;var b=0,c=0;b=J[a+4>>2];c=K[b|0]|K[b+1|0]<<8|(K[b+2|0]<<16|K[b+3|0]<<24);J[a+4>>2]=b+4;return c|0}function Ms(a,b,c){var d= +0;d=fc-16|0;fc=d;if(!(K[a|0]&32|(!b|c&8192))){J[d+4>>2]=39197;J[d>>2]=b;Mz(a,4487,d)}fc=d+16|0}function I7(a){a=a|0;var b=0,c=0;if(a){b=J[J[a>>2]>>2];c=J[J[a+4>>2]+12>>2];if(c)kc[c|0](a);if(a)kc[J[b+8>>2]](b,a)}}function FI(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function Bv(a,b){var c=0,d=0;c=fc-16|0;fc=c;xG(c,a,b,1);d=yz(J[c>>2],J[c+4>>2],J[c+8>>2],J[c+12>>2]);fc=c+16|0;return d}function Beb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=K[b| +0];H[a+680|0]=b;d=b?O[c>>3]:1;O[a+672>>3]=d;O[J[a+16>>2]+2904>>3]=d}function AWa(a){a=a|0;var b=0;b=J[a+244>>2];if(b){J[a+248>>2]=b;uc(b)}b=J[a+232>>2];if(b){J[a+236>>2]=b;uc(b)}uc(Ch(a))}function jYa(a){a=a|0;var b=0;b=J[a+12>>2];if(b>>>0>2]){J[a+12>>2]=b+1;a=K[J[a+16>>2]+b|0]}else a=-1;return a|0}function jQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;d=c+21|0;e=c+32|0;lQ(c+12|0,d,e,b);FF(a,d,J[c+12>>2]);fc=e}function iQ(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=fc-32|0;fc=c;d=c+21|0;e=c+32| +0;kQ(c+12|0,d,e,b);FF(a,d,J[c+12>>2]);fc=e}function gCa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){Cm(a+8|0);a=a+44|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function eQa(a){a=a|0;var b=0,c=0;c=-1;b=J[a+60>>2];if(!(!b|M[a+64>>2]<=b>>>0)){J[a+60>>2]=b+1;c=K[b|0]^255}return c|0}function dha(){J[699763]=0;J[699762]=2639640;J[699762]=2634480;J[699764]=46;J[699765]=44;J[699762]=2634192;Ze(2799064)}function bCa(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){wc(a+8|0);a=a+16|0;c=b>>>0>1;b=b-1|0;if(c)continue; +break}}function _Na(a,b){a=a|0;b=b|0;var c=0;c=a+40|0;J[a+300>>2]=c;J[a+296>>2]=c;b=J[a+28>>2]+b|0;J[a+28>>2]=b;J[a+304>>2]=b}function Xnb(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];a=J[a+4>>2];Gq(b,c>>6,a>>6);J[b+212>>2]=a<<2;J[b+208>>2]=c<<2;return 0}function XLa(a){a=a|0;var b=0;J[a>>2]=2345172;if(J[a+112>>2])pg(J[a+108>>2]);b=J[a+116>>2];if(b)uc(f_(b));return a|0}function Wva(a){a=a|0;J[a>>2]=2425552;hd(a+92|0);hd(a+80|0);hd(a+68|0);J[a>>2]=2425292;hd(a+56|0);hd(a+44|0);uc(nd(a))}function UH(a,b){a=a| +0;b=b|0;var c=0;if((b|0)>0)while(1){wc(a+16|0);a=a+28|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function RW(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){Cm(a+16|0);a=a+56|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function Fz(a){var b=0;b=Va(-100,a|0,0)|0;if((b|0)==-31)b=mb(a|0)|0;if(b>>>0>=4294963201){J[698583]=0-b;b=-1}return b}function F8a(a){a=a|0;var b=0;J[a>>2]=349384;Jd(a+280|0);b=J[a+268>>2];if(b){J[a+272>>2]=b;uc(b)}Se(a+88|0);return a|0}function Cga(a){a=a|0;var b=0;b=J[a>>2];if(J[b>>2]){dR(b); +b=J[a>>2]+16|0;a=J[a>>2];IQ(b,J[a>>2],J[a+8>>2]-J[a>>2]>>2)}}function zL(a){a:{if(a){J[699344]=0;$(3044,a|0);a=J[699344];J[699344]=0;if((a|0)==1)break a}return}ea(0)|0;Bc();B()}function xsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1934772034){Jc(a,2050,0,0);return 2050}H[b+33|0]=K[c+33|0];return 0}function jsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1162757196){Jc(a,2050,0,0);return 2050}H[b+32|0]=K[c+32|0];return 0}function g7(a,b){a=a|0;b=b|0;a=J[a+4>>2]|J[a>>2]<<16;b=J[b+4>>2]|J[b>>2]<<16;return(a>>> +0>b>>>0?1:a>>>0>>0?-1:0)|0}function cEa(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!a)break a;if((ae(b,1,c,J[a+180>>2])|0)==(c|0))break a;Ld(a,58061);B()}}function bX(a,b,c){di(a,1229209940,b,c);b=J[a+272>>2];J[a+224>>2]=J[a+268>>2];J[a+228>>2]=b;J[a+200>>2]=J[a+200>>2]|4}function ZBb(a,b){a=a|0;b=b|0;a=fc-16|0;fc=a;rd(198367,0);rd(199597,0);J[a>>2]=201113;rd(199996,a);fc=a+16|0;return 0}function Kob(a,b){a=a|0;b=b|0;a:{a=J[a>>2];b=J[b>>2];if(K[a|0]!=K[b|0])break a;if(Ic(a,b))break a;return 1}return 0}function Jjb(a){a= +a|0;var b=0,c=0;b=J[a+868>>2];if(b){c=J[a+100>>2];$f(J[a+104>>2],b+12|0);if(b)kc[J[c+8>>2]](c,b)}}function Ijb(a){a=a|0;var b=0,c=0;b=J[a+872>>2];if(b){c=J[a+100>>2];$f(J[a+104>>2],b+16|0);if(b)kc[J[c+8>>2]](c,b)}}function GKa(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(!a)break a;if((ge(b,1,c,J[a+180>>2])|0)==(c|0))break a;Ld(a,58073);B()}}function BBb(a){a=a|0;var b=0;a=J[a+52>>2];b=kc[J[J[a>>2]+20>>2]](a,2)|0;if((b|0)>0)kc[J[J[a>>2]+20>>2]](a,b-2|0)|0}function zob(a){a=a|0;var b=0,c=0;b=J[a>>2];if(b){c=J[a+ +28>>2];kc[J[c+8>>2]](c,b)}J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0}function lo(a){a=a|0;var b=0;J[a>>2]=47672;b=J[a+4>>2];if(!(!b|!K[a+12|0])){uc(b);J[a+4>>2]=0;J[a+8>>2]=0}return a|0}function gkb(a,b){a=a|0;b=b|0;var c=0;c=kc[J[a+516>>2]](a,1751474532,b,0)|0;if(!c)c=Te(b,325888,a+160|0);return c|0}function bkb(a,b){a=a|0;b=b|0;var c=0;c=kc[J[a+516>>2]](a,1886352244,b,0)|0;if(!c)c=Te(b,326384,a+476|0);return c|0}function a0a(a){a=a|0;var b=0;a=J[a+4>>2];hx(J[a+4>>2]);J[a+4>>2]=0;b=J[a+8>>2];if(b)uc(b); +J[a+8>>2]=0;J[a+12>>2]=0}function Xjb(a,b){a=a|0;b=b|0;var c=0;c=kc[J[a+516>>2]](a,1346587732,b,0)|0;if(!c)c=Te(b,326512,a+568|0);return c|0}function Wjb(a,b){a=a|0;b=b|0;var c=0;c=kc[J[a+516>>2]](a,1651008868,b,0)|0;if(!c)c=Te(b,325888,a+160|0);return c|0}function Ox(a,b){a=J[a+4>>2];if(M[a>>2]>b>>>0)a=K[J[J[a+16>>2]+(b>>>6&67108860)>>2]+(b&255)|0]==4;else a=0;return a}function IN(a){a=a|0;var b=0,c=0;b=J[J[a>>2]+100>>2];c=J[a+20>>2];if(c)kc[J[b+8>>2]](b,c);J[a+16>>2]=0;J[a+20>>2]=0}function Fgb(a, +b){a=a|0;b=b|0;var c=0;c=O[b>>3];O[a+608>>3]=c;b=J[a+16>>2];if(b){CD(b,c,6);Rx(J[a+16>>2],6)}return 0}function Dgb(a,b){a=a|0;b=b|0;var c=0;c=O[b>>3];O[a+600>>3]=c;b=J[a+16>>2];if(b){DD(b,c,6);Rx(J[a+16>>2],6)}return 0}function z6(a){a=a|0;var b=0,c=0;b=J[a+28>>2];c=J[a>>2];if(c)kc[J[b+8>>2]](b,c);J[a>>2]=0;J[a+4>>2]=0;J[a+24>>2]=0}function sda(a){a=a|0;var b=0;b=J[a>>2];J[b+20>>2]=123;kc[J[b+4>>2]](a,-1);J[a+804>>2]=2;J[a+800>>2]=97705;return 1}function rh(a){a=a|0;var b=0;J[a>>2]=2426484;b=J[a+ +12>>2];if(b){H[b|0]=0;uc(J[a+12>>2])}J[a+12>>2]=0;return nd(a)|0}function lob(a,b){a=a|0;b=b|0;var c=0;b=b+20|0;c=W7(J[a>>2],I[a+22>>1],I[a+20>>1],b);if(!c)V7(a+20|0,b);return c|0}function jG(a,b,c){var d=0;d=fc-16|0;fc=d;J[d+12>>2]=b;J[d+8>>2]=c;J[a>>2]=J[d+12>>2];J[a+4>>2]=J[d+8>>2];fc=d+16|0}function iya(a,b){a=a|0;b=b|0;J[a+20>>2]=-1;J[a+12>>2]=-1;J[a+16>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=b;return a|0}function iNa(a){a=a|0;var b=0;b=J[a+4>>2];kc[J[J[b>>2]+20>>2]](b);J[a+144>>2]=0;b=a+8|0;J[a+ +136>>2]=b;J[a+140>>2]=b}function hqa(a){a=a|0;var b=0;J[a>>2]=2439636;b=J[a+12>>2];if(b){if(H[b+2811|0]<0)uc(J[b+2800>>2]);uc(wU(b))}uc(a)}function hj(a,b){a=a|0;b=b|0;var c=0,d=0;J[a>>2]=b;if(!b){J[a+4>>2]=0;return a|0}c=a,d=Yc(b),J[c+4>>2]=d;return a|0}function gO(a,b){var c=0,d=0;c=fc-16|0;fc=c;if(a){d=J[a+36>>2];J[c+12>>2]=d;if(d)np(c+12|0);J[a+36>>2]=b}fc=c+16|0}function ez(a,b){var c=0;c=fc-16|0;fc=c;J[c+12>>2]=J[a>>2];J[c+12>>2]=J[c+12>>2]+(b<<2);fc=c+16|0;return J[c+12>>2]}function cR(a){var b= +0;b=J[a>>2];J[a>>2]=0;if(b){a=J[b+4>>2]-1|0;J[b+4>>2]=a;if((a|0)==-1)kc[J[J[b>>2]+8>>2]](b)}}function Zsa(a){a=a|0;J[a>>2]=2433388;Hd(a+120|0);Hd(a+96|0);Hd(a+72|0);hd(a+40|0);hd(a+28|0);hd(a+16|0);return a|0}function Yn(a,b){var c=0;c=J[a+84>>2];if((c|0)<=0)return 0;return J[a+80>>2]+P((b|0)<(c|0)?(b|0)>0?b:0:c-1|0,96)|0}function YEa(a,b,c){a=a|0;b=b|0;c=c|0;b=kc[J[J[a>>2]+32>>2]](a,b,c,J[a+12>>2])|0;J[a+12>>2]=b+J[a+12>>2];return b|0}function Xoa(a,b){a=a|0;b=b|0;var c=0;a=J[a+12>>2];c=xc(a+204| +0,b,80);Pu(a+284|0,b+80|0);lH(c,a+648|0);H[a+2E3|0]=1}function ST(a){a=a|0;var b=0;b=1;if(!(a-1424>>>0<880|a-64256>>>0<768))b=a-65136>>>0<144|a-67584>>>0<176;return b|0}function SNa(a,b){a=a|0;b=b|0;var c=0;c=J[a+28>>2]+b|0;J[a+28>>2]=c;J[a+32>>2]=J[a+32>>2]-b;J[a+40>>2]=J[a+24>>2]+c}function OYa(a,b){a=a|0;b=b|0;b=fc-16|0;fc=b;a=J[a+104>>2];J[b+12>>2]=2;kc[J[J[a>>2]+308>>2]](a,b+12|0)|0;fc=b+16|0}function O5a(a,b,c){a=a|0;b=b|0;c=c|0;if(K[b|0]){J[a+160>>2]=3;return}if(K[c|0]){J[a+160>>2]=4;return}J[a+ +160>>2]=0}function Iqa(a,b){a=a|0;b=b|0;var c=0;c=O[b>>3];a=J[a+12>>2];if(c!=O[a+784>>3]){H[a+928|0]=1;O[a+784>>3]=c}return 0}function Eoa(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return tU(J[a+12>>2],b,c,d,e,f,g,h)|0}function EZa(a){a=a|0;var b=0;b=fc-16|0;fc=b;a=J[a+104>>2];J[b+12>>2]=1;kc[J[J[a>>2]+312>>2]](a,b+12|0)|0;fc=b+16|0}function De(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=415588;b=J[a+4>>2];if(b){pg(b);J[a+4>>2]=0}return a|0}function A4a(a,b,c){a=a|0;b= +b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+4>>2]=0;H[d+15|0]=0;V3(a+72|0,d+4|0,b,c);fc=d+16|0}function ws(a,b){b=b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24);H[a|0]=b;H[a+1|0]=b>>>8;H[a+2|0]=b>>>16;H[a+3|0]=b>>>24}function uq(a){a=a|0;var b=0;J[a>>2]=769768;b=vc(16);J[b+4>>2]=0;J[b+8>>2]=0;J[b>>2]=769860;J[a+4>>2]=b;return a|0}function rtb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[a+44>>2])a=0;else a=(J[a+56>>2]+P(J[a+52>>2],c)|0)+P(b,3)|0;return a|0}function mD(a,b,c){var d=0;d=J[a+84>>2];if((d|0)>0)J[(J[a+80>>2]+P((b| +0)<(d|0)?(b|0)>0?b:0:d-1|0,96)|0)+60>>2]=c}function iY(){var a=0,b=0;a=Ge(1,44);a:{if(a){J[a+16>>2]=0;b=Ge(1,8);J[a+36>>2]=b;if(b)break a;uc(a)}a=0}return a}function hk(a,b,c){J[699344]=0;ga(6737,b|0,c|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)return;ea(0)|0;Bc();B()}function d_(a,b){Zp(a,b,32767,-1);if(J[a+644>>2]){Bd(a,J[a+648>>2]);J[a+644>>2]=0;J[a+648>>2]=0}if(b)Ac(b,0,236)}function SAb(a,b){a=a|0;b=b|0;var c=0;if(K[b+28|0])b=c;else{c=1;b=J[b+32>>2]}J[a+2192>>2]=b;H[a+308|0]=c;return 0}function Q0(a){var b= +0;b=fc-16|0;fc=b;H[b+12|0]=0;a:{if(!a)break a;if((ge(b+12|0,1,4,a)|0)!=4)break a}fc=b+16|0}function Ik(a,b,c){J[699344]=0;ga(6749,b|0,c|0,a|0)|0;a=J[699344];J[699344]=0;if((a|0)!=1)return;ea(0)|0;Bc();B()}function Dxa(a,b){a=a|0;b=b|0;J[a+92>>2]=J[b>>2];J[a+96>>2]=J[b+4>>2];J[a+100>>2]=J[b+8>>2];J[a+104>>2]=J[b+12>>2]}function pz(a,b){a:{J[699344]=0;ca(6763,a|0,b|0,1);a=J[699344];J[699344]=0;if((a|0)!=1)break a;ea(0)|0;Bc();B()}}function ld(a){var b=0;b=J[a>>2];J[699344]=0;Mc(b);b=J[699344];J[699344]= +0;if((b|0)!=1)return a;ea(0)|0;Bc();B()}function kZa(a){a=a|0;var b=0;b=J[a+8>>2];if((b|0)>2]){J[a+8>>2]=b+1;a=K[J[a>>2]+b|0]}else a=-1;return a|0}function js(a){var b=0,c=0;b=J[a+32>>2];if(M[a+36>>2]>b+1>>>0){c=K[b|0]|K[b+1|0]<<8;b=b+2|0}J[a+32>>2]=b;return c}function bs(a){a=a|0;a=J[a>>2];if(R(O[a>>3]*O[a+24>>3]-O[a+16>>3]*O[a+8>>3])<=1E-4)a=2;else{xq(a);a=0}return a|0}function WLa(a){a=a|0;var b=0;J[a>>2]=2345172;if(J[a+112>>2])pg(J[a+108>>2]);b=J[a+116>>2];if(b)uc(f_(b));uc(a)}function R0a(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;kc[J[b+8>>2]](J[b>>2],0,55295);kc[J[b+8>>2]](J[b>>2],57344,1114111)}function M2(a){var b=0,c=0;b=fc-48|0;fc=b;a:{if(a){c=b+4|0;O2(c,a);a=xL(0,c);break a}a=xL(0,0)}fc=b+48|0;return a}function Faa(a){var b=0;b=xx(a+2340|0,212840,56);if(b){Jc(a,5,b,0);return 5}H[a+2420|0]=1;J[a+2352>>2]=0;return 0}function E8a(a){a=a|0;var b=0;J[a>>2]=349384;Jd(a+280|0);b=J[a+268>>2];if(b){J[a+272>>2]=b;uc(b)}Se(a+88|0);uc(a)}function yLa(a,b){a=a|0;b=b|0;var c=0;c=J[a+16>>2];J[(c?c+4| +0:a+12|0)>>2]=b;J[a+16>>2]=b;J[b+4>>2]=0;J[b+8>>2]=a}function oua(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xe(a+28|0,c,1);if(c)xc(J[a+24>>2],b,c);Rj(a+16|0,d);J[a+20>>2]=10}function ji(a){a=a|0;var b=0;if(!a)return 736960;b=J[693263];if(b)return kc[b|0](J[693264],a)|0;return Dc(a)|0}function gD(a){a=a|0;var b=0;b=J[657299];J[a>>2]=b;J[J[b-12>>2]+a>>2]=J[657302];Ws(a+4|0);bg(a+104|0);return a|0}function fjb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;b=b<<2;d=J[b+J[a+388>>2]>>2];c=Cd(c,ND(a));J[b+J[a+388>>2]>>2]=c+d} +function fD(a){a=a|0;var b=0;b=J[657260];J[a>>2]=b;J[J[b-12>>2]+a>>2]=J[657263];Ws(a+8|0);bg(a+108|0);return a|0}function epa(a,b){a=a|0;b=b|0;var c=0;c=J[a+12>>2];a=J[b>>2];a=(a|0)>0?a:0;J[c+120>>2]=(a|0)>=255?255:a;return 0}function eca(a){a=a|0;var b=0;a:{if(!J[a+20>>2])break a;b=J[a>>2];if(!b)break a;uc(b);J[a>>2]=0}uc(a);return 0}function bT(a){var b=0;a=Cv(a,589824,0);if((a|0)>=0){b=kd(1,2072);if(!b){Ma(a|0)|0;return 0}J[b+8>>2]=a}return b}function _qb(a){a=a|0;var b=0;a:{b=a?J[a+180>>2]:0; +if(b)if(kc[J[J[b>>2]+32>>2]](b)|0)break a;Ld(a,45535);B()}}function QAb(a,b){a=a|0;b=b|0;var c=0;if(K[b+28|0])b=c;else{c=1;b=K[b+29|0]}H[a+2228|0]=b;H[a+310|0]=c;return 0}function Jya(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){a=id(a)+16|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function DPa(a){a=a|0;var b=0;J[a>>2]=2319304;b=J[a+4>>2];if(b)uc(Zc(b));b=J[a+8>>2];if(b)uc(Zc(b));return a|0}function tqa(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;dp(J[a+12>>2]+920|0,b,c,d,e,f,g);return 0} +function t1a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;kc[J[b+8>>2]](J[b>>2],0,127);Xk(J[J[J[a+8>>2]>>2]+24>>2],b,c,5,d)}function sza(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)while(1){a=wc(a)+8|0;c=b>>>0>1;b=b-1|0;if(c)continue;break}}function pua(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xe(a+28|0,c,1);if(c)xc(J[a+24>>2],b,c);J[a+20>>2]=d;vd(a+16|0,0)}function ppa(a,b){a=a|0;b=b|0;var c=0;c=J[a+12>>2];a=J[b>>2];a=(a|0)>0?a:0;J[c+92>>2]=(a|0)>=255?255:a;return 0}function ml(a){a:{a=J[a+4>>2]&74;if(a){if((a|0)==64)return 8; +if((a|0)!=8)break a;return 16}return 0}return 10}function kpa(a,b){a=a|0;b=b|0;var c=0;c=J[a+12>>2];a=J[b>>2];a=(a|0)>0?a:0;J[c+96>>2]=(a|0)>=255?255:a;return 0}function j_a(a,b){a=a|0;b=b|0;var c=0;a:{c=J[a+272>>2];if(!c)break a;c=J[c+36>>2];if(!c)break a;kc[c|0](a,b)}}function iZ(a,b){a=a|0;b=b|0;if(!(!a|!b)){J[a+164>>2]=J[b+4>>2];J[a+160>>2]=J[b>>2];J[a+212>>2]=J[b+8248>>2]&2}}function fqb(a,b){a=a|0;b=b|0;J[a+24>>2]=J[b+20>>2];J[a+4>>2]=J[b>>2];J[a+28>>2]=J[b+24>>2];O8(a,b,0);O8(a,b,1)}function St(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;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function QBa(a){a=a|0;var b=0,c=0;c=a+92|0;while(1){b=J[c>>2];if(!(b&1|b&16|b&8))continue;break}return OH(a)|0}function P6a(a){a=a|0;J[a+4>>2]=1;J[a>>2]=347804;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=351848;H[a+16|0]=0;return a|0}function Opa(a,b){a=a|0;b=b|0;var c=0;c=J[a+12>>2];a=J[b>>2];a=(a|0)>0?a:0;J[c+16>>2]=(a|0)>=255?255:a;return 0}function Nt(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; +if(!J[J[a+12>>2]+44>>2])return 1;return 0}function Fib(a,b,c){a=a|0;b=b|0;c=c|0;c=MD(a,b,c,1);if(!c)J[a+8>>2]=J[a+8>>2]&-32769|((b|0)!=0)<<15;return c|0}function FTa(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+28>>2];J[c+592>>2]=J[b+8>>2];a=J[a+8>>2];kc[J[J[a>>2]+168>>2]](a,c)}function AY(a,b,c,d,e,f){var g=0;if(!(!a|!J[a+72>>2]))g=kc[J[a+28>>2]](J[a+44>>2],b,c,d,e,f,a+48|0)|0;return g}function zma(a){a=a|0;J[a>>2]=2450216;if(H[a+83|0]<0)uc(J[a+72>>2]);if(H[a+71|0]<0)uc(J[a+60>>2]);return a|0}function yV(a){a= +a|0;var b=0;J[a>>2]=2426484;b=J[a+12>>2];if(b){H[b|0]=0;uc(J[a+12>>2])}J[a+12>>2]=0;uc(nd(a))}function xs(a){a=K[a|0]|K[a+1|0]<<8|(K[a+2|0]<<16|K[a+3|0]<<24);return a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24)}function oI(a){a=a|0;var b=0;J[a>>2]=2383728;b=J[a+4>>2];if(b){uc(b);J[a+4>>2]=0}b=J[a+8>>2];if(b)uc(b);uc(a)}function fz(a,b){var c=0;c=fc-16|0;fc=c;J[c+12>>2]=J[a>>2];J[c+12>>2]=J[c+12>>2]+b;fc=c+16|0;return J[c+12>>2]}function Z6a(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=7;J[a>>2]=351732;J[a+ +16>>2]=0;J[a+20>>2]=0;return a|0}function Mj(a,b,c){if(!c)return J[a+4>>2]==J[b+4>>2];if((a|0)==(b|0))return 1;return!Ic(J[a+4>>2],J[b+4>>2])}function ym(a,b){a=a|0;b=b|0;var c=0;c=J[a+4>>2];if(J[a+8>>2]-c>>2>>>0<=b>>>0){my(a+4|0);B()}return(b<<2)+c|0}function sGa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a;a=K[b+11|0];c=a<<24>>24<0;lw(d,c?J[b>>2]:b,1,c?J[b+4>>2]:a)}function rAb(a,b){a=a|0;b=b|0;return X9(a,L[b+28>>1],K[b+30|0],J[b+32>>2],J[b+36>>2],J[b+40>>2],J[b+44>>2])|0}function pS(a,b,c,d,e,f){a=a| +0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0}function pQ(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if(b){J[a>>2]=J[c>>2];b=b-1|0;a=a+4|0;continue}break}return a|0}function oka(a,b){a=a|0;b=b|0;b=P(J[a+588>>2],b);J[a+604>>2]=b+J[a+604>>2];J[a+608>>2]=J[a+608>>2]-b;return 1}function fha(){J[699757]=0;J[699756]=2639640;J[699756]=2634480;I[1399516]=11310;J[699756]=2634152;Ze(2799036)}function cfb(a){a=a|0;var b=0;b=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;Nx(a); +b=0}return b|0}function _eb(a){a=a|0;var b=0;b=1;a:{if(!J[a+16>>2])break a;a=J[a+20>>2];if(!a)break a;vD(a);b=0}return b|0}function _4a(a){a=a|0;var b=0;a=J[a+188>>2];a:{if(!a)break a;a=ho(a,2);if(!a)break a;b=L[a+8>>1]}return b|0}function NQ(a,b){J[699344]=0;ca(6763,a|0,b<<2,4);a=J[699344];J[699344]=0;if((a|0)!=1)return;ea(0)|0;Bc();B()}function NAb(a,b){a=a|0;b=b|0;var c=0;c=b;b=J[b+32>>2];J[c+56>>2]=b;if(!(b|K[a+460|0]))H[a+460|0]=1;return 0}function KAb(a,b){a=a|0;b=b|0;return haa(a,L[b+28>>1], +L[b+30>>1],L[b+32>>1],H[b+34|0],L[b+36>>1],K[b+38|0])|0}function Chb(a){a=a|0;var b=0;b=J[a+440>>2];if(J[a+84>>2])kc[J[J[a+480>>2]+8>>2]](a);J[b+12>>2]=J[b+12>>2]+1}function yR(a,b,c,d,e){b=wn(b,c,d,e,4);if(!(K[d|0]&4))J[a>>2]=((b|0)<69?b+2E3|0:b>>>0<100?b+1900|0:b)-1900}function uMa(a){a=a|0;var b=0;b=J[a+40>>2];if(b>>>0>2]){J[a+40>>2]=b+1;a=K[b|0]}else a=-1;return a|0}function og(a,b,c){if(c)while(1){if(J[a>>2]==(b|0))return a;a=a+4|0;c=c-1|0;if(c)continue;break}return 0}function m7a(a){a= +a|0;var b=0;J[a>>2]=351308;b=J[a+8>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}return a|0}function hB(){var a=0,b=0;a=Ge(1,12);if(a){J[a+4>>2]=10;b=Ge(10,4);J[a+8>>2]=b;if(b)return a;uc(a)}return 0}function fCb(a){a=a|0;var b=Q(0);b=Q(N[a+344>>2]+Q(.5));if(b=Q(0))return~~b>>>0|0;return 0}function bDa(a){a=a|0;J[a>>2]=2401268;Md(a+108|0);Md(a+80|0);Md(a+52|0);Hd(a+28|0);id(a+12|0);return nd(a)|0}function KVa(a,b){a=a|0;b=b|0;var c=0;c=Yc(b);J[a>>2]=c;J[a+4>>2]=0;Bh(a,c);xc(J[a+4>> +2],b,c+1|0);return a|0}function HPa(a){a=a|0;var b=0;J[a>>2]=2319256;b=J[a+4>>2];if(b)uc(b);b=J[a+8>>2];if(b)uc(Zc(b));return a|0}function Gka(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)>=0)a=(J[J[a+8>>2]+((c&255)<<2)>>2]&b)!=0;else a=0;return a|0}function Ei(a){var b=0;if(K[a+11|0]>>>7|0)a=J[a>>2];b=fc-16|0;fc=b;J[b+12>>2]=a;fc=b+16|0;return J[b+12>>2]}function Dkb(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c+12>>2]=0;OD(a,b,c+12|0);fc=c+16|0;return J[c+12>>2]}function BR(a,b,c,d,e){b=xn(b,c,d,e,4);if(!(K[d| +0]&4))J[a>>2]=((b|0)<69?b+2E3|0:b>>>0<100?b+1900|0:b)-1900}function yk(a){a=a|0;J[a>>2]=340552;if(H[a+27|0]<0)uc(J[a+16>>2]);if(H[a+15|0]<0)uc(J[a+4>>2]);return a|0}function wQ(a,b,c){a=a|0;b=b|0;c=c|0;while(1){if(b){H[a|0]=K[c|0];b=b-1|0;a=a+1|0;continue}break}return a|0}function tv(a,b,c){var d=0;d=fc-16|0;fc=d;kl(a,c);J[d+12>>2]=0;J[(c<<2)+b>>2]=J[d+12>>2];fc=d+16|0;return a}function oba(a,b){a=a|0;b=b|0;var c=0;if(!(1<>>0>20){b=0;c=0}else c=1;J[a+68>>2]=b;return c|0}function dO(a, +b){a:{if(!b)break a;a=Ff(a,b);if(!a)break a;Cf(a,0,0,a?J[a>>2]:-1,a?J[a+4>>2]:-1,10,0,0,0)}}function Neb(a,b){a=a|0;b=b|0;var c=0;c=1;if(!(!J[a+16>>2]|!J[a+20>>2])){J[a+636>>2]=J[b>>2];c=0}return c|0}function CPa(a){a=a|0;var b=0;J[a>>2]=2319304;b=J[a+4>>2];if(b)uc(Zc(b));b=J[a+8>>2];if(b)uc(Zc(b));uc(a)}function Bja(a){a=a|0;var b=0;b=J[698634];if(a)J[698634]=(a|0)==-1?2794392:a;return((b|0)==2794392?-1:b)|0}function w0a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(e>>>0<=2)a=Ev(b,c,d,e)?-1:0;else a= +-1;return a|0}function ul(a){var b=0;b=fc-16|0;fc=b;if(a){a=sG(b+12|0,16,a);a=a?0:J[b+12>>2]}else a=0;fc=b+16|0;return a}function mka(a,b,c){a=a|0;b=b|0;c=c|0;b=ZR(a+4|0,b,c|16);a=J[J[a>>2]-12>>2]+a|0;if(b){iS(a);return}fr(a,4)}function ila(a){a=a|0;a=J[a+4>>2];if(!a)return 1;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];return a>>>4&1}function cB(a){var b=0;b=fc-16|0;fc=b;if(a){a=sG(b+12|0,32,a);a=a?0:J[b+12>>2]}else a=0;fc=b+16|0;return a}function _r(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(b?a: +0)){J[c>>2]=0;J[d>>2]=0;return}wq(a,b,c,d,e)}function Wra(a){a=a|0;J[a>>2]=2436744;Md(a+68|0);wc(a+60|0);id(a+44|0);Md(a+16|0);wc(a+8|0);return nd(a)|0}function Rka(a){a=a|0;a=J[a+4>>2];if(!a)return-1;if(J[a+76>>2]<0)a=J[a>>2];else a=J[a>>2];return a>>>5&1}function Pob(a){a=a|0;var b=0;b=J[a+32>>2];if(!b)return 3;cm(a,J[J[a+16>>2]>>2]);J[b+184>>2]=513;return 0}function Fdb(a){a=a|0;var b=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!J[a+4>>2])kc[J[J[a>>2]+4>>2]](a);return b|0}function Eva(a,b,c,d){a=a|0;b=b| +0;c=c|0;d=d|0;b=J[c>>2];if(b){kc[J[J[b>>2]+28>>2]](a,b,1);return}J[a>>2]=0}function Bva(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=J[c>>2];if(b){kc[J[J[b>>2]+24>>2]](a,b,2);return}J[a>>2]=0}function zqb(a,b,c){a=a|0;b=b|0;c=c|0;if(!(J[J[J[a+16>>2]+16>>2]+40>>2]?J[a+20>>2]:1))X0(J[693464],b,c)}function yo(a){if(H[a+35|0]<0)uc(J[a+24>>2]);if(H[a+23|0]<0)uc(J[a+12>>2]);if(H[a+11|0]<0)uc(J[a>>2])}function yma(a){a=a|0;J[a>>2]=2450216;if(H[a+83|0]<0)uc(J[a+72>>2]);if(H[a+71|0]<0)uc(J[a+60>>2]);uc(a)}function xva(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=zn(c,b);if((a|0)>=0){c=a+c|0;H[c|0]=0}H[c|0]=0;return c|0}function pBb(a,b){a=a|0;b=b|0;var c=0;c=J[a+4>>2];if(c){J[a+12>>2]=0;J[c+20>>2]=J[c+12>>2]+b;J[a+8>>2]=b}}function nka(a,b,c){a=a|0;b=b|0;c=c|0;b=ZR(a+8|0,b,c|8);a=J[J[a>>2]-12>>2]+a|0;if(b){iS(a);return}fr(a,4)}function mr(a){var b=0;a=IG(a);b=jc;if((b|0)>=0&a>>>0>=2147483648|(b|0)>0){J[698583]=61;return-1}return a}function l4a(a,b){a=a|0;b=b|0;var c=0,d=0;d=a;a=K[b+11|0];c=a<<24>>24<0;_m(d,c?J[b>>2]:b,c?J[b+ +4>>2]:a,0)}function kl(a,b){if(K[a+11|0]>>>7|0){J[a+4>>2]=b;return}H[a+11|0]=K[a+11|0]&128|b;H[a+11|0]=K[a+11|0]&127}function jXa(a,b){a=a|0;b=b|0;if(J[a+16>>2]){Fe(b,1);a=J[a+16>>2];kc[J[J[a>>2]+8>>2]](a,b);return}Fe(b,0)}function ZQ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;J[e>>2]=c;J[h>>2]=f;return 3}function UTa(a,b,c){a=a|0;b=b|0;c=c|0;b=Mm(J[a+28>>2]);J[a+28>>2]=b;a=J[a+8>>2];kc[J[J[a>>2]+68>>2]](a,b)}function Mz(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+12>> +2]=c;a=vG(a,b,c);fc=d+16|0;return a|0}function Lua(a){a=a|0;var b=0;b=fc-16|0;fc=b;a=kc[J[J[a>>2]+44>>2]](a,0,b+12|0,10)|0;fc=b+16|0;return a|0}function Lta(a){a=a|0;var b=0,c=0;b=1;c=J[a+4>>2];if(!(!c|!K[a+8|0])){b=pg(c);J[a+4>>2]=0;b=!b}return b|0}function L6(a,b){a=a|0;b=b|0;a=J[J[a>>2]+4>>2];b=J[J[b>>2]+4>>2];return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)|0}function ECb(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c>>2]=J[a+12>>2];md(b,210300,c);fc=c+16|0;return 0}function Df(a,b,c,d){if(!a)return;if(b)J[b>> +2]=J[a>>2];if(c)J[c>>2]=J[a+4>>2];if(d)J[d>>2]=J[a+8>>2]}function AQ(a){if(!J[a+136>>2])J[a+136>>2]=J[J[698634]>>2]?2467168:2467144;if(!J[a+72>>2])J[a+72>>2]=1}function zCa(a){a=a|0;var b=0;J[a>>2]=45696;b=J[a+4>>2];if(!(!b|!K[a+8|0])){pg(b);J[a+4>>2]=0}return a|0}function yob(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[d>>2]=0;if(!b)return 81;return ks(b,333319,e)|0}function yNa(a){a=a|0;var b=0;b=J[a+4>>2];kc[J[J[b>>2]+20>>2]](b);J[a+52>>2]=0;J[a+44>>2]=0;J[a+48>>2]=0}function wob(a,b,c,d,e){a=a| +0;b=b|0;c=c|0;d=d|0;e=e|0;J[d>>2]=0;if(!b)return 81;return ks(b,333312,e)|0}function ska(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return kc[J[J[a>>2]+16>>2]](a,b,c,d,e,f)|0}function k7a(a){a=a|0;var b=0;J[a>>2]=351308;b=J[a+8>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}uc(a)}function dz(){var a=0;J[699344]=0;a=J[699344];J[699344]=0;if((a|0)!=1)return J[657389];ea(0)|0;Bc();B()}function cz(){var a=0;J[699344]=0;a=J[699344];J[699344]=0;if((a|0)!=1)return J[657776];ea(0)|0;Bc();B()}function aMa(a, +b){a=a|0;b=b|0;a=J[J[a>>2]+40>>2];b=J[J[b>>2]+40>>2];return((a|0)<(b|0)?-1:(a|0)>(b|0))|0}function Hob(a){a=a|0;a=J[a>>2];return P(P(P(a&255,31)+(a>>>8&255)|0,31)+(a>>>16&255)|0,31)+(a>>>24|0)|0}function Dta(a,b){a=a|0;b=b|0;if((b|0)<=0){a=wj(a);b=a>>>0>8192?1:8192/((a>>>0<=1?1:a)>>>0)|0}return b|0}function lsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1296387652){Jc(a,2050,0,0);a=2050}else a=0;return a|0}function lda(a){a=a|0;var b=0;b=J[a+828>>2];J[b+604>>2]=J[a+780>>2];J[b+608>>2]=J[b+600>>2]-J[a+784>> +2]}function gob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;a=he(a,P(b,c),d+12|0);fc=d+16|0;return a|0}function dQa(a){a=a|0;var b=0,c=0;c=-1;b=J[a+60>>2];if(!(!b|M[a+64>>2]<=b>>>0))c=K[b|0]^255;return c|0}function aDa(a){a=a|0;J[a>>2]=2401268;Md(a+108|0);Md(a+80|0);Md(a+52|0);Hd(a+28|0);id(a+12|0);uc(nd(a))}function Vkb(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c+12>>2]=b;a=G6(a,c+12|0,0);fc=c+16|0;return a|0}function U$a(a,b){a=a|0;b=b|0;b=gx(J[J[b+4>>2]+4>>2]);if(!b){J[a>>2]=0;H[a+11|0]=0; +return}Ll(a,b,Yc(b))}function Rk(a){var b=0;if(a){b=J[a>>2];if(b)Rk(b);b=J[a+4>>2];if(b)kc[J[663199]](b);kc[J[663199]](a)}}function R5a(a,b){a=a|0;b=b|0;b=J[b+8>>2];if(!b){J[a>>2]=0;H[a+11|0]=0;return}kc[J[J[b>>2]+44>>2]](a,b)}function Pt(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(!J[J[a+16>>2]+44>>2])return 1;return 0}function Ot(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(!J[J[a+12>>2]+44>>2])return 1;return 0}function Orb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1246971216){Jc(a,2050, +0,0);a=2050}else a=0;return a|0}function Ndb(a){a=a|0;J[a>>2]=340552;if(H[a+27|0]<0)uc(J[a+16>>2]);if(H[a+15|0]<0)uc(J[a+4>>2]);uc(a)}function Lrb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1229999687){Jc(a,2050,0,0);a=2050}else a=0;return a|0}function Lpb(a,b){a=a|0;b=b|0;b=J[a>>2];J[a+16>>2]=J[J[b+140>>2]+52>>2];J[a+20>>2]=J[b+144>>2];return 0}function Jrb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1229606471){Jc(a,2050,0,0);a=2050}else a=0;return a|0}function GUa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=Ac(a, +0,256),e=(K[J[b>>2]+c|0]<<6)+-8192|0,J[d>>2]=e}function GPa(a){a=a|0;var b=0;J[a>>2]=2319256;b=J[a+4>>2];if(b)uc(b);b=J[a+8>>2];if(b)uc(Zc(b));uc(a)}function Bsb(a,b,c){a=a|0;b=b|0;c=c|0;if(J[c>>2]!=1229278788){Jc(a,2050,0,0);a=2050}else a=0;return a|0}function BY(a,b,c){var d=0;if(!(!J[a+72>>2]|(!a|!b)))d=kc[J[a+4>>2]](J[a+44>>2],b,c,a+48|0)|0;return d}function uoa(a){a=a|0;a=J[a+12>>2];a:{if(J[a+2696>>2]==512){dA(a+1976|0);break a}sM(a+2776|0)}return 0}function uga(a,b,c){a=a|0;b=b|0;c=c|0;if(c>>> +0<=127)a=(J[(c<<2)+2633072>>2]&b)!=0;else a=0;return a|0}function oJa(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;return bZ(J[a>>2],b,c,d,e,f,g)|0}function cT(a){if(!(H[2796876]&1)){ec(2794336,2794340,2794344);H[2796876]=1}a=Yb(a|0)|0;jc=gc;return a}function TIa(a,b,c){a=a|0;b=b|0;c=c|0;if((b|0)<0){jc=-1;return-1}J[c+8>>2]=J[c+8>>2]+a;jc=b;return a|0}function OWa(a){a=a|0;if(H[a+367|0]<0)uc(J[a+356>>2]);if(H[a+351|0]<0)uc(J[a+340>>2]);return Tm(a)|0}function O8a(a,b,c,d){a=a|0;b=b|0; +c=c|0;d=d|0;a=J[a+268>>2]+(b<<3)|0;J[c>>2]=J[a>>2];N[d>>2]=N[a+4>>2]}function DSa(a){a=a|0;var b=0;b=J[a+168>>2];if(!b)return 0;J[b+24>>2]=J[b+24>>2]+1;return J[a+168>>2]}function CZ(a,b){a=a|0;b=b|0;if(!J[J[a+16>>2]+44>>2])return 1;J[b>>2]=0;J[b+4>>2]=1079115776;return 0}function BZ(a,b){a=a|0;b=b|0;if(!J[J[a+12>>2]+44>>2])return 1;J[b>>2]=0;J[b+4>>2]=1079115776;return 0}function z1a(a){a=a|0;var b=0;b=J[a+8>>2];if(b){Yr(J[b>>2]);if(!K[a+34|0])Nf(J[a+8>>2]);J[a+8>>2]=0}}function neb(a,b,c){a=a|0; +b=+b;c=+c;var d=0;a=J[a+16>>2];d=J[a+44>>2];O[d+40>>3]=c;O[d+32>>3]=b;Mu(a)}function _db(a){a=a|0;var b=0;b=fc-16|0;fc=b;J[b+12>>2]=1;kc[J[J[a>>2]+348>>2]](a,b+12|0)|0;fc=b+16|0}function __a(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+8>>2];if(!a)break a;b=J[a+40>>2]==1}return b|0}function Z_a(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+8>>2];if(!a)break a;b=J[a+44>>2]!=0}return b|0}function Xqb(a){a=a|0;var b=0;a:{if(!a)break a;b=J[692584];if(!b)break a;kc[J[J[b>>2]+40>>2]](b,a)}}function X_a(a){a=a|0;var b= +0;a:{if(!a)break a;a=J[a+8>>2];if(!a)break a;b=J[a+48>>2]!=0}return b|0}function Vza(a){a=a|0;var b=0;b=J[a+8>>2];if(!b)return 0;tW(b,1);return(J[J[a+8>>2]+148>>2]&2)>>>1|0}function Vra(a){a=a|0;J[a>>2]=2436744;Md(a+68|0);wc(a+60|0);id(a+44|0);Md(a+16|0);wc(a+8|0);uc(nd(a))}function Srb(a){a=a|0;var b=0;b=J[a+4>>2];if(!(!b|!K[a+12|0])){uc(b);J[a+4>>2]=0;J[a+8>>2]=0}return 1}function L$a(a,b){a=a|0;b=b|0;J[a>>2]=0;b=J[b>>2];J[a>>2]=b;if(b)kc[J[J[b>>2]+8>>2]](b)|0;return a|0}function Ftb(a,b){a=a|0; +b=b|0;var c=0;c=J[a+428>>2];H[c+8|0]=K[b+32|0];return Ce(a,J[b>>2],1,c+8|0)|0}function yY(a,b){var c=0;if(!(!J[a+72>>2]|(!a|!b)))c=kc[J[a+16>>2]](J[a+44>>2],b,a+48|0)|0;return c}function yS(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a;a=b-a>>3;if(a)a=31-S(a)|0;else a=0;pG(d,b,c,a<<1)}function rVa(a,b){a=a|0;b=b|0;J[a>>2]=b;J[a+12>>2]=0;J[a+16>>2]=1;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}function or(a){if(J[a+76>>2]<0)a=J[a+60>>2];else a=J[a+60>>2];if((a|0)<0){J[698583]=8;a=-1}return a}function oP(a){var b=0, +c=0;if(a)while(1){b=b+1|0;c=a>>>0>1;a=a>>>1|0;if(c)continue;break}return b}function j4(a){var b=0;b=J[a>>2];J[a>>2]=0;if(b){if(!(!K[a+8|0]|H[b+27|0]>=0))uc(J[b+16>>2]);uc(b)}}function fG(a){a=a|0;if((a|0)!=0&(a|0)!=2467144&(a|0)!=2467168&(a|0)!=2797392&(a|0)!=2797416)uc(a)}function bMa(a,b){a=a|0;b=b|0;var c=0,d=0;c=O[J[a>>2]+24>>3];d=O[J[b>>2]+24>>3];return(cd)|0}function Zqb(a,b){a=a|0;b=b|0;var c=0;if(!J[692584]){c=EM();J[692584]=c;kc[J[J[c>>2]+36>>2]](c,a,b)}}function Zob(a,b){a=a|0;b= +b|0;a=J[a+712>>2];H[b|0]=0;if(!(!a|J[a+1504>>2]==65535))H[b|0]=1;return 0}function Pd(){var a=0;a=Hk(4);J[a>>2]=2641388;J[a>>2]=2641348;J[a>>2]=2641368;xa(a|0,2641476,32);B()}function IQ(a,b,c){var d=0;d=fc-16|0;fc=d;a:{if((a|0)==(b|0)){H[b+120|0]=0;break a}NQ(b,c)}fc=d+16|0}function Et(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;lw(a,b,c,d);return a|0}function x9(a,b){if(!a)return 0;if(!b){if(a)J[a+16>>2]=J[a+16>>2]+1;return a}return fO(a,b,b,b,b)}function vv(a,b,c){var d=0; +d=fc-16|0;fc=d;kl(a,c);H[d+15|0]=0;H[b+c|0]=K[d+15|0];fc=d+16|0;return a}function rj(a){var b=0;b=J[a>>2];J[a>>2]=b-1;if((b|0)<=1){b=J[J[a+8>>2]>>2];if(b)kc[b|0](a);uc(a)}}function qN(a,b,c){if((b|0)>0){a=kc[J[a+4>>2]](a,b)|0;J[c>>2]=!a<<6;return a}J[c>>2]=b?6:0;return 0}function mkb(a,b){a=a|0;b=b|0;var c=0;c=J[J[a+12>>2]+48>>2];if(!c)return 150;return kc[c|0](a,b)|0}function iAb(a){a=a|0;var b=0;b=J[a+12>>2];kc[J[J[a>>2]+8>>2]](a);nf(b+2568|0,J[J[a>>2]+20>>2]);B()}function Xpa(a,b){a=a|0;b=b|0; +var c=0;a=J[a+12>>2];c=O[b>>3];O[a+2712>>3]=c;O[a+1984>>3]=c;return 0}function WAb(a,b){a=a|0;b=b|0;H[a+306|0]=1;J[a+1160>>2]=J[b+28>>2];xc(a+1164|0,b+32|0,768);return 0}function Vpa(a,b){a=a|0;b=b|0;var c=0;a=J[a+12>>2];c=O[b>>3];O[a+1976>>3]=c;O[a+2704>>3]=c;return 0}function UAb(a,b){a=a|0;b=b|0;H[a+307|0]=1;J[a+1932>>2]=J[b+28>>2];xc(a+1936|0,b+32|0,256);return 0}function R3(a){var b=0;b=J[a+4>>2];if(b)uc(b);b=J[a+16>>2];if(b)uc(b);b=J[a>>2];if(b)uc(b);uc(a)}function Nf(a){a=a|0;var b=0;if((a| +0)!=736960){b=J[693265];if(b){kc[b|0](J[693264],a);return}uc(a)}}function FAb(a,b){a=a|0;b=b|0;return daa(a,L[b+28>>1],L[b+30>>1],K[b+32|0],J[b+36>>2],J[b+40>>2])|0}function DS(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a;a=b-a>>2;if(a)a=31-S(a)|0;else a=0;qG(d,b,c,a<<1)}function C_a(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+36>>2];if(!a)break a;b=J[a+28>>2]}return b|0}function B_a(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+36>>2];if(!a)break a;b=J[a+32>>2]}return b|0}function yRa(a){a=a|0;var b=0;J[a>>2]=2218144; +b=J[a+12>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function wQa(a){a=a|0;J[a+24>>2]=0;J[a+28>>2]=0;J[a+40>>2]=-1;J[a+32>>2]=0;J[a+36>>2]=0;return a|0}function uib(a,b,c){a=a|0;b=b|0;c=c|0;if(Ic(b,241377))a=12;else{J[c>>2]=J[a+64>>2];a=0}return a|0}function rea(a,b){a=a|0;b=b|0;a=J[a+12>>2];Uc(J[a+628>>2],90047,90305,0);nf(J[a+584>>2]+4|0,1);B()}function pGa(a,b){a=a|0;b=b|0;var c=0;c=J[a>>2];if(K[a+8|0])c=J[c>>2];return J[(J[b>>2]<<2)+c>>2]}function oZ(a){var b=0;if(a){b=J[a+4>>2];if(b)kc[b|0](J[a>> +2]);uc(J[a+32>>2]);J[a+32>>2]=0;uc(a)}}function mea(a,b){a=a|0;b=b|0;a=J[a+12>>2];Uc(J[a+628>>2],90047,90305,0);nf(J[a+584>>2]+4|0,1);B()}function jpb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return kc[J[J[a+548>>2]+40>>2]](a,b,c,d,e)|0}function fva(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;J[d+12>>2]=c;zV(a,b,d+12|0);fc=d+16|0}function cSa(a){a=a|0;var b=0;J[a>>2]=2217936;b=J[a+16>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function b$a(a){a=a|0;J[J[a+388>>2]+12>>2]=0;kc[J[J[a+404>>2]+4>>2]](a); +kc[J[J[a+404>>2]+8>>2]](a)}function Rp(a){var b=0;b=K[a+3|0];H[a+3|0]=K[a|0];H[a|0]=b;b=K[a+2|0];H[a+2|0]=K[a+1|0];H[a+1|0]=b}function Pma(a,b){a=a|0;b=b|0;J[a+528>>2]=0;J[a+516>>2]=571;J[a+512>>2]=0;J[a+524>>2]=571;return 1}function P5a(a,b){a=a|0;b=b|0;a=J[a+8>>2];if(!a)return 0;return kc[J[J[a>>2]+92>>2]](a,J[b>>2])|0}function Jla(a){a=a|0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=2463920;J[a+12>>2]=0;J[a+16>>2]=0;return a|0}function D_a(a){a=a|0;var b=0;a:{if(!a)break a;a=J[a+36>>2];if(!a)break a;b=J[a+ +4>>2]}return b|0}function Bwa(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+8>>2]=0;J[a>>2]=2424768;J[a+4>>2]=0;return a|0}function Bp(a){J[699344]=0;cQ(a-24|0);a=J[699344];J[699344]=0;if((a|0)!=1)return;ea(0)|0;Bc();B()}function $qa(a){a=a|0;var b=0;J[a>>2]=2438952;b=J[a+12>>2];if(b){uc(WU(b));J[a+12>>2]=0}return a|0}function xaa(a){a=a|0;xc(J[a+644>>2],J[a+636>>2]+J[a+616>>2]|0,J[a+604>>2]);H[a+649|0]=0;return 0}function wf(a){var b=0;b=fc-16|0;fc=b;a=gf(a,b+12|0,1);fc=b+16|0;return((a|0)==1?K[b+12|0]: +0)&255}function tAa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+12>>2];return kc[J[J[a>>2]+20>>2]](a,b,c,0)|0}function qhb(a){a=a|0;var b=0;b=wh(J[a+4>>2],240878);if(!b)return 11;J[a+28>>2]=J[b>>2];return 0}function q7a(a,b){a=a|0;b=b|0;var c=0;c=J[b>>2];if(c)kc[J[J[c>>2]+8>>2]](c);J[a>>2]=b;return a|0}function pO(a,b){if(b){pO(a,J[b>>2]);pO(a,J[b+4>>2]);a=J[b+20>>2];if(a){J[b+24>>2]=a;uc(a)}uc(b)}}function oRa(a){a=a|0;var b=0;J[a>>2]=2218216;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function oO(a, +b){if(b){oO(a,J[b>>2]);oO(a,J[b+4>>2]);a=J[b+20>>2];if(a){J[b+24>>2]=a;uc(a)}uc(b)}}function o$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b>>2];a=(a|0)>=65536?65536:a;J[c>>2]=(a|0)>0?a:0}function mJa(a,b,c){a=a|0;b=b|0;c=c|0;if(!a){fa(2356672,2354795,3219,2371294);B()}$Y(J[a>>2],b,c)}function lNa(a){a=a|0;var b=0;J[a>>2]=2343648;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function kRa(a){a=a|0;var b=0;J[a>>2]=2218236;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function jq(a,b,c,d){var e= +0;a:{if(!a)break a;a=J[a+44>>2];if(!a)break a;e=Bf(a,c,d,b)}return e}function h_(a,b){a=a|0;b=b|0;var c=0,d=0;c=O[J[a>>2]+8>>3];d=O[J[b>>2]+8>>3];return(cd)|0}function aVa(a){a=a|0;var b=0;J[a>>2]=2213336;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function Qoa(a,b){a=a|0;b=b|0;var c=0;c=O[b>>3];a=J[a+12>>2];H[a+2233|0]=1;O[a+472>>3]=c;return 0}function Q5(a){a=a|0;var b=0;b=J[a+4>>2]-1|0;J[a+4>>2]=b;if(!b)kc[J[J[a>>2]+4>>2]](a);return b|0}function NEa(a,b,c,d){a=a|0;b=b|0;c=c|0;d= +d|0;a=J[a+16>>2];return kc[J[J[a>>2]+20>>2]](a,b,c,d)|0}function MWa(a){a=a|0;if(H[a+367|0]<0)uc(J[a+356>>2]);if(H[a+351|0]<0)uc(J[a+340>>2]);uc(Tm(a))}function MVa(a){a=a|0;var b=0;J[a+4>>2]=8;b=Gd(8,4);J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=b;return a|0}function LDa(a){a=a|0;var b=0;b=J[a+20>>2];if(!b)return a+36|0;return(J[b+8>>2]?a+20|0:a+36|0)|0}function INa(a){a=a|0;var b=0;J[a>>2]=2343348;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function IMa(a){a=a|0;var b=0;J[a>>2]=2344572;b=J[a+4>>2]; +if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function Cj(a){var b=0;a:{if(!J[a+24>>2])break a;b=J[a+20>>2];if(!b)break a;uc(b);J[a+20>>2]=0}}function CNa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!a|(c|0)!=156)a=d;else J[a+156>>2]=b;return a|0}function BNa(a){a=a|0;var b=0;J[a>>2]=2343448;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function $Oa(a){a=a|0;var b=0,c=0;if(!J[a+88>>2])b=a,c=B_(a+32|0,a+48|0,a,J[a>>2]),J[b+88>>2]=c}function yHa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;kc[J[J[b>>2]+16>>2]](a,b,J[c+8>> +2],J[c+12>>2],0,d)}function uJ(a,b,c,d){var e=0;e=J[a+448>>2];if(e)Mc(e);O[a+456>>3]=d;J[a+452>>2]=c;J[a+448>>2]=b}function s3a(){var a=0;a=J[693262];if(a){Vh(a);J[693262]=0}J[693260]=0;Ac(2772968,0,72);return 1}function rrb(a){a=a|0;var b=0;b=J[a+20>>2];a=J[a+12>>2];return b+P(J[a+4>>2]-J[a>>2]>>2,20480)|0}function rKa(a){a=a|0;var b=0;b=1;if(!(!a|!K[a+398|0])){J[a+208>>2]=J[a+208>>2]|2;b=7}return b|0}function qCa(a){a=a|0;J[a>>2]=2401596;id(a+40|0);wc(a+32|0);wc(a+24|0);wc(a+12|0);return nd(a)| +0}function c0a(a){a=a|0;var b=0;J[a>>2]=769768;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);return a|0}function aEb(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;J[c>>2]=J[a+12>>2];md(b,207405,c);fc=c+16|0}function _P(a){var b=0;a:{a=J[a>>2]-12|0;b=J[a+8>>2]-1|0;J[a+8>>2]=b;if((b|0)>=0)break a;uc(a)}}function _Aa(a,b){a=a|0;b=b|0;a=a+148|0;b=J[a>>2]&-4097|(b?4096:0);if((b|0)!=J[a>>2])J[a>>2]=b}function ZAa(a,b){a=a|0;b=b|0;a=a+148|0;b=J[a>>2]&-2049|(b?2048:0);if((b|0)!=J[a>>2])J[a>>2]=b}function Z8a(a){a=a| +0;var b=0;b=vc(12);J[b+8>>2]=J[a+8>>2];J[b>>2]=349344;J[b+4>>2]=0;return b|0}function Tva(a){a=a|0;var b=0;b=J[a+4>>2];if(!b)J[a+4>>2]=-32767;if(!b)kc[J[J[a>>2]+4>>2]](a)}function Tda(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(Mj(a,J[b+8>>2],f))yF(b,c,d,e)}function TFa(a){a=a|0;a=J[a+4>>2];if(!a)return 0;a=J[a+12>>2];if(a)a=OH(a);else a=0;return a|0}function Si(a){var b=0;b=J[a+104>>2];a:{if(!b)break a;b=J[b>>2];if(!b)break a;kc[b|0](a)}uc(a)}function LO(a){var b=0;a:{if(!J[a+964>>2])break a; +if(!Py(a,0,0))break a;b=J[a+964>>2]}return b}function ICb(a,b,c){a=a|0;b=b|0;c=c|0;return((Ap(c,J[a+20>>2],J[a+16>>2])|0)!=J[a+16>>2]?-1:0)|0}function Bd(a,b){a=a|0;b=b|0;var c=0;if(!(!a|!b)){c=J[a+676>>2];if(c){kc[c|0](a,b);return}uc(b)}}function BDa(a){a=a|0;J[a>>2]=2398124;wc(a+44|0);wc(a+36|0);wc(a+28|0);wc(a+20|0);return nd(a)|0}function AOa(a,b){a=a|0;b=b|0;if(b){a=J[b>>2];if(a)uc(Zc(a));a=J[b+4>>2];if(a)uc(Zc(a));uc(b)}}function Foa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return uU(J[a+ +12>>2],b,c,d,e,f)|0}function wo(a,b){var c=0,d=0;c=J[a>>2]>2];d=J[(c?a:b)>>2];J[b>>2]=J[(c?b:a)>>2];J[a>>2]=d}function w7(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[J[a+12>>2]+56>>2]+12>>2]](J[a+52>>2],b,c)|0}function sPa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(a){J[a+676>>2]=d;J[a+672>>2]=c;J[a+668>>2]=b}}function rNa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(a){J[a+164>>2]=d;J[a+160>>2]=c;J[a+168>>2]=b}}function oAa(a){a=a|0;a=JA(a);H[a+16|0]=0;J[a+8>>2]=0;J[a+12>>2]=-1;J[a>>2]=2416580;return a|0}function np(a){var b= +0;a:{if(!a)break a;b=J[a>>2];if(!b)break a;uc(J[b>>2]);uc(b);J[a>>2]=0}}function bAa(a,b){a=a|0;b=b|0;var c=0;c=vc(12);J[c>>2]=0;J[c+4>>2]=0;J[c+8>>2]=J[b>>2];vf(a,c)}function _Q(a){a=a|0;var b=0;J[a>>2]=2633020;b=J[a+8>>2];if(!(!b|!K[a+12|0]))uc(b);return a|0}function Wxa(a){a=a|0;var b=0;J[a>>2]=2423592;b=J[a+4>>2];if(!(!b|(b|0)==2394486))uc(b);uc(a)}function WAa(a,b){a=a|0;b=b|0;a=a+148|0;b=J[a>>2]&-129|(b?128:0);if((b|0)!=J[a>>2])J[a>>2]=b}function VDb(a,b){a=a|0;b=b|0;a=J[a+4>>2];b=J[b+4>>2]; +return(a>>>0>b>>>0?1:a>>>0>>0?-1:0)|0}function Tf(a,b,c){if(!(J[a+12>>2]>(b|0)&(b|0)>=0)){J[c>>2]=0;return 0}return K[J[a+8>>2]+b|0]}function Slb(a,b){a=a|0;b=b|0;var c=0;J[(!a|J[a>>2]!=1381173770?c:J[a+4>>2])+16>>2]=b;return 1}function RN(a,b){var c=0;if(!(!a|(b|0)<0|J[a+4>>2]<=(b|0)))c=J[J[a+12>>2]+(b<<2)>>2];return c}function Lqa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+4>>2];if(!a)return 0;return ae(b,c,d,a)|0}function Ld(a,b){var c=0;a:{if(!a)break a;c=J[a+160>>2];if(!c)break a;kc[c|0](a,b)}D_(a); +B()}function Dlb(a,b,c){a=a|0;b=b|0;c=c|0;c=J[a+104>>2];I[a+144>>1]=0-c;J[a+140>>2]=0-P(I[b>>1],c)}function xRa(a){a=a|0;var b=0;J[a>>2]=2218144;b=J[a+12>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function tMa(a){a=a|0;var b=0;b=J[a+40>>2];if(b>>>0>2])a=K[b|0];else a=-1;return a|0}function oS(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a+8>>2]=-1;J[a+12>>2]=-1;J[a>>2]=0;J[a+4>>2]=0}function oC(a,b,c){var d=0;a:{if(!a)break a;a=J[a+40>>2];if(!a)break a;d=Un(a,b,c)}return d}function lvb(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;xc(g,e,P(d,6));return 0}function lhb(a){a=a|0;if(zN(J[J[a>>2]+504>>2]+108|0,J[a+44>>2])){$7(J[a+44>>2]);J[a+44>>2]=0}}function bSa(a){a=a|0;var b=0;J[a>>2]=2217936;b=J[a+16>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function bBb(a,b){a=a|0;b=b|0;var c=0;c=J[a+20>>2];if(c){J[a+28>>2]=0;hh(c,b,0);J[a+24>>2]=b}}function b3(a,b){a=a|0;b=b|0;a:{if(b>>>0<=1){J[a+48>>2]=0;if((b|0)==1)break a}J[a+52>>2]=1}}function Ngb(a){a=a|0;var b=0;J[a>>2]=340456;b=J[a+28>>2];if(b){uc(b); +J[a+28>>2]=0}return a|0}function Lvb(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;xc(g,e,P(d,3));return 0}function wya(a){a=a|0;xe(a+28|0,0,1);J[a+20>>2]=0;xe(a+40|0,0,1);xe(a+52|0,0,4);J[a+60>>2]=0}function ue(a){var b=0;b=fc-16|0;fc=b;a=gf(a,b+12|0,1);fc=b+16|0;return(a|0)==1&K[b+12|0]!=0}function tRa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[c+8>>2]=0;J[c+12>>2]=1;J[c>>2]=0;J[c+4>>2]=0}function slb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=0;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function qJa(a, +b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return qw(J[a>>2],b,c,d,e,f)|0}function oMa(a){a=a|0;var b=0;b=kc[J[J[a>>2]+32>>2]](a)|0;J[a+44>>2]=J[a+44>>2]+1;return b|0}function nlb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=2;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function nRa(a){a=a|0;var b=0;J[a>>2]=2218216;b=J[a+8>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function mAb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+152>>2];if(!a)return 0;return kc[a|0](P(b,c))|0}function kob(a,b,c){a=a|0;b=b|0;c=c|0;if(b)kp(a+20|0, +b);if(c)Xh(a+20|0,J[c>>2],J[c+4>>2])}function kNa(a){a=a|0;var b=0;J[a>>2]=2343648;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function ilb(a,b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=4;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function fka(a,b){a=a|0;b=b|0;var c=0;c=fc-16|0;fc=c;fc=c+16|0;return(M[b>>2]>2]?b:a)|0}function eqb(a,b,c){a=a|0;b=b|0;c=c|0;if(b)J[b>>2]=J[a+10056>>2];if(c)J[c>>2]=J[a+252>>2]}function dnb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vh(a,J[a+8>>2]);return Wu(a,J[a+8>>2],b,c,d)|0}function dlb(a, +b){a=a|0;b=b|0;a=J[a+16>>2];J[b+4>>2]=6;J[b>>2]=K[a+5|0]|K[a+4|0]<<8;return 0}function bf(a){var b=0,c=0;c=a;while(1){b=c;c=b+4|0;if(J[b>>2])continue;break}return b-a>>2}function aR(a,b){var c=0;c=a+8|0;a=J[c>>2];return J[a+(b<<2)>>2]!=0&J[c+4>>2]-a>>2>>>0>b>>>0}function _Ua(a){a=a|0;var b=0;J[a>>2]=2213336;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function Z5a(a,b){a=a|0;b=b|0;O[a+128>>3]=O[b>>3];b=J[a+8>>2];if(b)O[b+144>>3]=O[a+128>>3]}function Nmb(a){a=a|0;var b=0,c=0;b=J[a>>2];c=J[a+4>>2]; +if(c)kc[J[b+8>>2]](b,c);J[a+4>>2]=0}function HNa(a){a=a|0;var b=0;J[a>>2]=2343348;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function HMa(a){a=a|0;var b=0;J[a>>2]=2344572;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function ANa(a){a=a|0;var b=0;J[a>>2]=2343448;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function zgb(a,b){a=a|0;b=b|0;if(!b)return 1;O[b>>3]=O[a+624>>3]*25.4/O[a+608>>3];return 0}function waa(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;xc(g,e,d<<1);return 0}function vra(a, +b,c){a=a|0;b=b|0;c=c|0;if(c&1){fa(77349,76157,715,83396);B()}jt(b,(c|0)/2|0)}function uqb(a){a=a|0;a:{if(H[a+11|0]<0){J[a+4>>2]=0;a=J[a>>2];break a}H[a+11|0]=0}H[a|0]=0}function uj(a){a=a|0;var b=0;J[a>>2]=2463920;b=J[a+4>>2];if(b)uc(b);J[a+4>>2]=0;return a|0}function uaa(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;xc(g,e,d<<2);return 0}function qi(a){a=a|0;var b=0;J[a>>2]=2463820;b=J[a+4>>2];if(b){J[a+8>>2]=b;uc(b)}return a|0}function qda(a){a=a|0;var b=0;b=J[a+828>>2];J[a+800>>2]=J[b+ +596>>2];J[a+804>>2]=J[b+608>>2]}function pCa(a){a=a|0;J[a>>2]=2401596;id(a+40|0);wc(a+32|0);wc(a+24|0);wc(a+12|0);uc(nd(a))}function oAb(a){a=a|0;var b=0;b=a;a=J[a>>2];kc[J[a+12>>2]](b,J[a+288>>2]);nf(a+132|0,1);B()}function jda(a){a=a|0;var b=0;b=J[a+828>>2];J[a+780>>2]=J[b+596>>2];J[a+784>>2]=J[b+600>>2]}function ira(a,b,c){a=a|0;b=b|0;c=c|0;if(c&3){fa(78601,76157,731,83434);B()}Pp(b,(c|0)/4|0)}function fvb(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;xc(g,e,d<<3);return 0}function dBb(a, +b){a=a|0;b=b|0;var c=0;c=J[a+20>>2];if(c){hh(c,b,1);J[a+24>>2]=J[a+24>>2]+b}}function b0a(a){a=a|0;var b=0;J[a>>2]=769768;b=J[a+4>>2];if(b)kc[J[J[b>>2]+4>>2]](b);uc(a)}function ara(a,b,c){a=a|0;b=b|0;c=c|0;if(c&7){fa(79025,76157,739,83453);B()}oH(b,(c|0)/8|0)}function _i(a){a=a|0;var b=0;a:{if(J[a+20>>2])break a;b=J[a+36>>2];if(!b)break a;Fo(a,b)}}function Y4a(a){a=a|0;J[a>>2]=352516;uc(J[a+8>>2]);uc(J[a+12>>2]);uc(J[a+28>>2]);return a|0}function Pz(a){a=a|0;a=Ma(a|0)|0;a=(a|0)!=27?a:0;if(a){J[698583]= +a;a=-1}else a=0;return a|0}function MO(a){var b=0;H[a+2420|0]=0;b=Jl(a+2340|0);if(b){Jc(a,5,b,0);a=5}else a=0;return a}function Jda(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=kc[a|0](b,c,d,e)|0;gc=jc;return a|0}function FNa(a){a=a|0;var b=0;b=J[a+4>>2];kc[J[J[b>>2]+20>>2]](b);J[a+8>>2]=-1;J[a+12>>2]=0}function D_(a){var b=0;a:{if(!a)break a;b=J[a+156>>2];if(!b)break a;kc[b|0](a,1)}ra();B()}function Bgb(a,b){a=a|0;b=b|0;if(!b)return 1;O[b>>3]=O[a+616>>3]*25.4/O[a+600>>3];return 0}function ADa(a){a= +a|0;J[a>>2]=2398124;wc(a+44|0);wc(a+36|0);wc(a+28|0);wc(a+20|0);uc(nd(a))}function $j(a,b){a=a|0;b=b|0;return(K[a+494|0]?b:b<<24|(b&65280)<<8|(b>>>8&65280|b>>>24))|0}function xQa(a,b){a=a|0;b=b|0;J[a+4>>2]=b;b=Gd(b,1);J[a>>2]=b;Ac(b,0,J[a+4>>2]);return a|0}function ri(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=J[a+4>>2];if(d)Ac(J[J[a>>2]>>2],c,P(b,d))}function qdb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=xh(b,c,d);J[J[a>>2]>>2]=b;return(b|0)!=0|0}function lla(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=(b|0)/(c|0)|0;J[a>> +2]=d;J[a+4>>2]=b-P(c,d)}function gK(a,b){if(b){gK(a,J[b>>2]);gK(a,J[b+4>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function ft(a,b){if(b){ft(a,J[b>>2]);ft(a,J[b+4>>2]);if(H[b+31|0]<0)uc(J[b+20>>2]);uc(b)}}function fna(a){a=a|0;J[a>>2]=2443736;Ml(a+16|0,J[a+20>>2]);pr(a+4|0,J[a+8>>2]);return a|0}function fK(a,b){if(b){fK(a,J[b>>2]);fK(a,J[b+4>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function aB(a,b){if(b){aB(a,J[b>>2]);aB(a,J[b+4>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function V8(a,b,c){a=a|0;b= +b|0;c=c|0;if(b)J[b>>2]=J[a+7928>>2];if(c)J[c>>2]=J[a+252>>2]}function Uz(a,b){if(b){Uz(a,J[b>>2]);Uz(a,J[b+4>>2]);if(H[b+31|0]<0)uc(J[b+20>>2]);uc(b)}}function Uv(a,b){if(b){Uv(a,J[b>>2]);Uv(a,J[b+4>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function Nu(a,b){if(b){Nu(a,J[b>>2]);Nu(a,J[b+4>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function Mpb(a,b){a=a|0;b=b|0;a=J[a+4>>2];b=J[b+4>>2];return(a>>>0>>0?-1:a>>>0>b>>>0)|0}function Ml(a,b){if(b){Ml(a,J[b>>2]);Ml(a,J[b+4>>2]);if(H[b+31|0]<0)uc(J[b+20>> +2]);uc(b)}}function LTa(a,b,c){a=a|0;b=b|0;c=c|0;O[J[a+28>>2]+576>>3]=J[b>>2]==1?+J[b+8>>2]:O[b+8>>3]}function Hx(a,b){if(b){Hx(a,J[b>>2]);Hx(a,J[b+4>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function Gx(a,b){if(b){Gx(a,J[b>>2]);Gx(a,J[b+4>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function Du(a,b){if(b){Du(a,J[b>>2]);Du(a,J[b+4>>2]);if(H[b+27|0]<0)uc(J[b+16>>2]);uc(b)}}function C3(a){a=a|0;var b=0;J[a+8>>2]=0;J[a+12>>2]=0;b=J[a+4>>2];if(b){pg(b);J[a+4>>2]=0}}function uAb(a,b){a=a|0;b=b|0;return Z9(a, +K[b+28|0],J[b+32>>2],b+36|0,b+804|0,b+1060|0)|0}function u8a(a){a=a|0;var b=0;b=J[a+472>>2];J[b+92>>2]=J[a+316>>2];J[b+96>>2]=J[a+116>>2]}function tkb(a){a=a|0;if(a>>>0<=127)a=K[(a>>>3|0)+325280|0]&1<<(a&7);else a=0;return a|0}function rGa(a){a=a|0;var b=0;b=J[a>>2];if(K[a+8|0]){if(!b)return 0;b=J[b>>2]}return b|0}function cD(a,b){a=a|0;b=b|0;if(!b)return 0;if(J[b>>2]<=0)a=t3(a,b);else a=0;return a|0}function bOa(a){a=a|0;var b=0;b=a+40|0;J[a+296>>2]=b;J[a+300>>2]=b;J[a+304>>2]=J[a+28>>2]}function Wi(a, +b,c,d){var e=0;e=fc-16|0;fc=e;J[e+12>>2]=d;a=tm(a,b,c,d);fc=e+16|0;return a}function Tv(a){var b=0;b=J[a+28>>2];if(b){J[a+32>>2]=b;uc(b)}if(H[a+11|0]<0)uc(J[a>>2])}function Pib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b+12>>2]+(c<<3)|0;J[a+4>>2]=J[a+4>>2]+d}function OM(a){a=a|0;var b=0;b=J[a+4>>2];if(b)kc[J[b+40>>2]](a);J[a+20>>2]=0;J[a+4>>2]=0}function L0(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=g|0;h=h|0;i=i|0;return 0}function zfa(a){a=a|0;a=2798248;while(1){a=df(a-12|0);if((a|0)!=2798080)continue; +break}}function zEb(a,b){var c=0,d=0;c=b&31;d=(-1>>>c&a)<>>a}function ww(a,b){var c=0;c=fc-96|0;fc=c;if(!a){D_(0);B()}q_(J[a+348>>2],c,b);Ld(a,c);B()}function wfa(a){a=a|0;a=2798544;while(1){a=jd(a-12|0);if((a|0)!=2798256)continue;break}}function ufa(a){a=a|0;a=2798848;while(1){a=df(a-12|0);if((a|0)!=2798560)continue;break}}function sfa(a){a=a|0;a=2798888;while(1){a=jd(a-12|0);if((a|0)!=2798864)continue;break}}function qfa(a){a=a|0;a=2798920;while(1){a=df(a-12|0); +if((a|0)!=2798896)continue;break}}function ojb(a){a=a|0;J[a+116>>2]=-1;J[a+304>>2]=-1;J[a+308>>2]=-1;H[a+112|0]=0;return 0}function hT(a,b){b=b&3;return K[(b^1)+a|0]<<16|K[a+b|0]<<24|K[(b^2)+a|0]<<8|K[(b^3)+a|0]}function glb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return kc[J[J[a>>2]+12>>2]](a,b,c,d,0,0)|0}function eEb(a,b){a=a|0;b=b|0;var c=0;c=a;a=br(J[b+12>>2]);J[c+12>>2]=a;return(a?0:-1)|0}function bsb(a){a=a|0;var b=0;J[a>>2]=47672;b=J[a+4>>2];if(!(!b|!K[a+12|0]))uc(b);uc(a)}function _Ra(a,b,c,d){a= +a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];kc[J[J[a>>2]+20>>2]](a,b,c,d)}function YRa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];kc[J[J[a>>2]+24>>2]](a,b,c,d)}function WRa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];kc[J[J[a>>2]+36>>2]](a,b,c,d)}function Ovb(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;xc(g,e,d);return 0}function JSa(a){a=a|0;var b=0;b=J[a+1444>>2];J[b+24>>2]=J[b+24>>2]+1;return J[a+1444>>2]}function DKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0} +function CKa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function Bfa(a){a=a|0;a=2798072;while(1){a=jd(a-12|0);if((a|0)!=2797904)continue;break}}function $Ra(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[a+16>>2];kc[J[J[a>>2]+16>>2]](a,b,c,d)}function wP(a){var b=0;b=J[a>>2];J[a>>2]=b-1;if((b|0)<=1){kc[J[J[a+4>>2]>>2]](a);uc(a)}}function uAa(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+12>>2];return kc[J[J[a>>2]+12>>2]](a,b,c)|0}function lQ(a,b,c,d){if(!((b|0)==(c|0)|(d|0)>=0)){H[b|0]=45; +d=0-d|0;b=b+1|0}fQ(a,b,c,d)}function jva(a){a=a|0;var b=0;J[a>>2]=45696;b=J[a+4>>2];if(!(!b|!K[a+8|0]))pg(b);uc(a)}function gya(a,b){a=a|0;b=b|0;J[a>>2]=b;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function Py(a,b,c){var d=0;if(!((c|b)<0|J[a+20>>2]<=(c|0)))d=J[a+16>>2]>(b|0);return d}function PEa(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+16>>2];return kc[J[J[a>>2]+12>>2]](a,b,c)|0}function Ojb(a){a=a|0;$f(J[a+104>>2],a+788|0);J[a+800>>2]=0;J[a+792>>2]=0;J[a+796>>2]=0}function OO(a){a=a|0;a=xf(a,3);J[a+ +976>>2]=0;J[a>>2]=47628;Ac(a+496|0,0,464);return a|0}function Khb(a,b){a=a|0;b=b|0;var c=0,d=0;c=a,d=kc[J[b+52>>2]](b,0,0,0)|0,J[c+544>>2]=d}function Exa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+100>>2]=J[a+92>>2]+b;J[a+104>>2]=J[a+96>>2]+c}function EG(a,b){a=ob(-100,a|0,b|0)|0;if(a>>>0>=4294963201){J[698583]=0-a;a=-1}return a}function yv(){var a=0;a=Hk(4);J[a>>2]=2641388;J[a>>2]=2641756;xa(a|0,2641804,6762);B()}function yn(a,b){a=J[a>>2];b=ag(b);if(!aR(a,b)){yv();B()}return J[J[a+8>>2]+(b<<2)>>2]}function sBa(a, +b){a=a|0;b=b|0;if(!pd(b,2386759,-1))return 1;return!pd(b,2387577,-1)|0}function qqb(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return 0}function ot(a){var b=0,c=0;c=a;b=J[a+100>>2];a=J[a+60>>2];return rV(c,a>>>0>b>>>0?b:a)}function eda(a,b){a=a|0;b=b|0;J[a+556>>2]=675;J[a+548>>2]=675;J[a+540>>2]=675;return 1}function b6(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;pN(c,J[J[a+424>>2]+(b<<2)>>2],d);return 0}function b1(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if((a|0)==1)d2(J[b+352>>2],c, +d)}function aq(a,b,c){a=a|0;b=b|0;c=c|0;return jf((J[a+4>>2]+(b<<5)|0)+8|0,J[a>>2],c,0)|0}function X4a(a){a=a|0;J[a>>2]=352516;uc(J[a+8>>2]);uc(J[a+12>>2]);uc(J[a+28>>2]);uc(a)}function Rha(a,b,c){a=a|0;b=b|0;c=c|0;c=jS(J[b>>2])<<24;J[a+4>>2]=J[b>>2];H[a|0]=c>>24}function Qpb(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+132>>2];J[c>>2]=J[a+136>>2];return 0}function QEa(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+16>>2];return kc[J[J[a>>2]+8>>2]](a,b,c)|0}function PG(a,b){a=a|0;b=b|0;if((a|0)!=(b|0))L9(a+4|0,J[b+4>>2], +J[b+8>>2]);return a|0}function Mja(a,b){a=a|0;b=b|0;var c=0;c=a;a=J[b+28>>2];J[c>>2]=a;J[a+4>>2]=J[a+4>>2]+1}function Lnb(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+176>>2];J[c>>2]=J[a+180>>2];return 0}function Aob(a,b){a=a|0;b=b|0;a=I[a>>1];b=I[b>>1];return((a|0)<(b|0)?-1:(a|0)>(b|0))|0}function A0a(a,b){a=a|0;b=b|0;if(J[b+76>>2]<0)a=J[b>>2];else a=J[b>>2];return a>>>5&1}function xPa(a){a=a|0;var b=0;J[a>>2]=2319376;b=J[a+12>>2];if(b)uc(Zc(b));return a|0}function mfa(a){a=a|0;if(!K[2797800]){gs(2797788, +2634268);H[2797800]=1}return 2797788}function l9a(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ao(J[b>>2],c,d,0,e,J[a+112>>2])}function ifa(a){a=a|0;if(!K[2797832]){gs(2797820,2634304);H[2797832]=1}return 2797820}function fga(a,b){a=a|0;b=b|0;if((b|0)>=0)b=J[dz()+((b&255)<<2)>>2];return b<<24>>24}function ena(a){a=a|0;J[a>>2]=2443736;Ml(a+16|0,J[a+20>>2]);pr(a+4|0,J[a+8>>2]);uc(a)}function efa(a){a=a|0;if(!K[2797864]){gs(2797852,2634340);H[2797864]=1}return 2797852}function dga(a,b){a=a|0;b=b|0;if((b| +0)>=0)b=J[cz()+((b&255)<<2)>>2];return b<<24>>24}function cma(a){a=a|0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;J[a>>2]=2463820;return a|0}function bUa(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+8>>2];kc[J[J[b>>2]+264>>2]](b,J[a+28>>2])}function aca(a){a=a|0;var b=0;b=Pz(J[a>>2]);if(H[a+4|0]&1)QS(a+8|0);uc(a);return b|0}function Zg(a,b,c){var d=0;d=fc-16|0;fc=d;J[d+12>>2]=c;a=HS(a,b,c);fc=d+16|0;return a}function Sib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=J[b+12>>2]+(c<<3)|0;J[a>>2]=J[a>>2]+d}function PL(a,b,c,d,e){if(J[e>> +2]<=0)wi(J[a+4>>2],b,c,a+16|0,J[a+20>>2],a+24|0,d,e)}function Oua(a){a=a|0;J[a+8>>2]=0;J[a+12>>2]=0;J[a+4>>2]=0;J[a>>2]=2426580;return a|0}function Jm(a){if(J[a+12>>2]){J[a+40>>2]=0;while(1){if(J[a+24>>2]>0)continue;break}}}function Dwa(a){a=a|0;var b=0;J[a>>2]=2424768;b=J[a+20>>2];if(b)uc(b);return nd(a)|0}function Bpb(a,b){a=a|0;b=b|0;return kc[J[J[J[J[a>>2]+712>>2]+3084>>2]+12>>2]](a,b)|0}function $ea(a){a=a|0;if(!K[2797896]){gs(2797884,2634424);H[2797896]=1}return 2797884}function zPa(a){a=a| +0;var b=0;J[a>>2]=2319352;b=J[a+4>>2];if(b)uc(Zc(b));return a|0}function yfa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Uc(J[a+628>>2],97440,90410,0);return 0}function web(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;kc[J[J[a+452>>2]+4>>2]](a,0,0,0,b,c,d)}function wVa(a){a=a|0;var b=0;J[a>>2]=2196536;b=J[a+4>>2];if(b)uc(Zc(b));return a|0}function vPa(a){a=a|0;var b=0;J[a>>2]=2319400;b=J[a+4>>2];if(b)uc(Zc(b));return a|0}function oxa(a){a=a|0;return(M[a+32>>2]>=3?2424224:J[a+48>>2]==-1?2390543:2424256)|0}function oPa(a){a= +a|0;var b=0;J[a>>2]=2319472;b=J[a+4>>2];if(b)uc(Zc(b));return a|0}function j4a(a){a=a|0;J[a+12>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a>>2]=415588;return a|0}function ika(a,b){a=a|0;b=b|0;a=J[a+4>>2];if(!a)return 0;return(bi(b,a)|0)==(b|0)|0}function hf(a,b,c){var d=0;d=J[a+172>>2];if(d){kc[d|0](a,b,c);return}Ld(a,57703);B()}function eMa(a,b){a=a|0;b=b|0;return J[J[J[a>>2]+36>>2]>>2]-J[J[J[b>>2]+36>>2]>>2]|0}function e4a(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(a)ae(b,1,c,a);return(a|0)!=0|0}function dxa(a){a= +a|0;return(M[a+32>>2]>=3?2424336:J[a+48>>2]==-1?2390543:2424368)|0}function Zia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return kc[J[J[a>>2]+32>>2]](a,b,c,d)|0}function ZFa(a){a=a|0;var b=0;J[a>>2]=2385168;b=J[a+4>>2];if(b)uc(FX(b));return a|0}function SF(){var a=0;a=Hk(4);J[a>>2]=2641388;J[a>>2]=2641348;xa(a|0,2641464,32);B()}function Roa(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+4>>2];if(!a)return 0;return!hh(a,b,c)|0}function Jia(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return kc[J[J[a>>2]+48>>2]](a,b,c,d)|0}function IWa(a){a= +a|0;var b=0;b=J[a+312>>2];if(b){J[a+316>>2]=b;uc(b)}return Ch(a)|0}function GWa(a){a=a|0;var b=0;b=J[a+232>>2];if(b){J[a+236>>2]=b;uc(b)}return Ch(a)|0}function EWa(a){a=a|0;var b=0;b=J[a+264>>2];if(b){J[a+268>>2]=b;uc(b)}return Ch(a)|0}function Dg(a,b,c){var d=0;d=J[a+176>>2];if(d){kc[d|0](a,b,c);return}Ld(a,57731);B()}function Cpb(a,b){a=a|0;b=b|0;return kc[J[J[J[J[a>>2]+712>>2]+3084>>2]+8>>2]](a,b)|0}function BPa(a){a=a|0;var b=0;J[a>>2]=2319328;b=J[a+4>>2];if(b)uc(Zc(b));return a|0}function xY(a){if(a){kc[J[(J[a+ +72>>2]?20:16)+a>>2]](J[a+44>>2]);J[a+44>>2]=0;uc(a)}}function vJa(a,b){a=a|0;b=b|0;iZ(J[a>>2],b);H[a+124|0]=0;J[a+128>>2]=J[b+8248>>2]&1}function pna(a){a=a|0;return+(O[a+96>>3]*O[a+40>>3]*.35277777777777775/O[a+104>>3])}function pI(a){Wp(a+24|0,J[a+28>>2]);nw(a+12|0,J[a+16>>2]);Wp(a,J[a+4>>2]);return a}function oxb(a,b,c){a=a|0;b=b|0;c=c|0;return K[(J[a+964>>2]+P(J[a+16>>2],c)|0)+b|0]}function nta(a,b){a=a|0;b=b|0;if((b|0)<0)return J[a+36>>2];J[a+36>>2]=b;return b|0}function kfa(a){a=a|0;if(!K[2797816]){_j(2797804, +20833);H[2797816]=1}return 2797804}function gza(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=Hm(a- -64|0,c),e=b,J[d+24>>2]=e}function gfa(a){a=a|0;if(!K[2797848]){_j(2797836,19961);H[2797848]=1}return 2797836}function eBb(a){a=a|0;C3(a+4|0);J[a+28>>2]=0;J[a+32>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}function QS(a){a=Va(-100,a|0,0)|0;if(a>>>0>=4294963201){J[698583]=0-a;a=-1}return a}function NK(a){var b=0;b=fc-96|0;fc=b;a=nr(or(a),b);fc=b+96|0;return a?0:J[b+24>>2]}function Leb(a){a=a|0;H[a+8|0]=1;J[J[J[a+20>>2]+ +4>>2]+28>>2]=J[a+16>>2]+56;return 0}function Gsb(a,b,c){a=a|0;b=b|0;c=c|0;return K[(J[a+960>>2]+P(J[a+16>>2],c)|0)+b|0]}function GOa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+8>>2]=-1;J[a+4>>2]=c;J[a>>2]=b;return a|0}function Bqb(a){a=a|0;var b=0;b=J[a+8>>2];if(b){kc[J[J[b>>2]+4>>2]](b);J[a+8>>2]=0}}function BHa(a){a=a|0;J[a>>2]=2381648;if(H[a+43|0]<0)uc(J[a+32>>2]);return ai(a)|0}function BA(a){a=a|0;J[a>>2]=2423832;wc(a+24|0);wc(a+16|0);wc(a+8|0);return nd(a)|0}function vSa(a){a=a|0;a=vc(12);J[a>>2]=2217624; +J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function uEa(a,b,c){a=a|0;b=b|0;c=c|0;rX(a,b,J[a+76>>2],c);J[a+76>>2]=J[a+76>>2]+c}function tSa(a){a=a|0;a=vc(12);J[a>>2]=2217728;J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function pfa(a){a=a|0;if(!K[2797784]){_j(2797772,1588);H[2797784]=1}return 2797772}function oSa(a){a=a|0;a=vc(12);J[a>>2]=2217832;J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function kAa(a,b){a=a|0;b=b|0;if(J[b+8>>2]){nW(a,b,b+8|0);return}J[a>>2]=0;vd(a,0)}function jAa(a,b){a=a|0;b=b|0;if(J[b+8>>2]){lW(a,b, +b+8|0);return}J[a>>2]=0;vd(a,0)}function dwa(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=fc-16|0;fc=d;FH(a,b,d,c);fc=d+16|0}function bfa(a){a=a|0;if(!K[2797880]){_j(2797868,5877);H[2797880]=1}return 2797868}function KKa(a,b){a=a|0;b=b|0;if(!J[J[a+16>>2]+44>>2])return 1;J[b>>2]=1;return 0}function JKa(a,b){a=a|0;b=b|0;if(!J[J[a+12>>2]+44>>2])return 1;J[b>>2]=1;return 0}function zv(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=J[b>>2];J[a+4>>2]=J[c>>2];return a|0}function rda(a){a=a|0;var b=0;b=J[a+916>>2];J[a+800>>2]=J[a+ +912>>2];J[a+804>>2]=b}function pMa(a){a=a|0;var b=0;b=kc[J[J[a>>2]+32>>2]](a)|0;J[a+8>>2]=-1;return b|0}function mda(a){a=a|0;var b=0;b=J[a+916>>2];J[a+780>>2]=J[a+912>>2];J[a+784>>2]=b}function jPa(a){a=a|0;if(!J[a+4>>2])return 0;return(J[a+8>>2]?1:J[a+12>>2]!=0)|0}function dua(a){a=a|0;var b=0;b=J[a+32>>2];a=J[a+28>>2];return((a|0)<(b|0)?b:a)|0}function Wp(a,b){if(b){Wp(a,J[b>>2]);Wp(a,J[b+4>>2]);Rc(b+28|0);Rc(b+16|0);uc(b)}}function Sgb(a,b){a=a|0;b=b|0;b=b-J[a+16>>2]|0;return(b>>>0>2]? +b+1|0:0)|0}function y7a(a){a=a|0;a=J[a>>2];return+(O[a>>3]*O[a+24>>3]-O[a+16>>3]*O[a+8>>3])}function wja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=fc-16|0;fc=b;KR(a,c,d);fc=b+16|0}function wPa(a){a=a|0;var b=0;J[a>>2]=2319376;b=J[a+12>>2];if(b)uc(Zc(b));uc(a)}function rd(a,b){var c=0;c=fc-16|0;fc=c;J[c+12>>2]=b;vG(J[655074],a,b);fc=c+16|0}function qDb(a){a=a|0;var b=0;b=J[a+28>>2];if(b)uc(b);a=J[a+32>>2];if(a)uc(a)}function lba(){var a=0;a=Dc(12);if(a){J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0}return a}function kSa(a, +b){a=a|0;b=b|0;J[b+8>>2]=0;J[b+12>>2]=65536;J[b>>2]=0;J[b+4>>2]=0}function jEb(a){a=a|0;var b=0;b=J[a+16>>2];if(b)uc(b);a=J[a+28>>2];if(a)uc(a)}function h2a(a){a=a|0;return((J[a+52>>2]&-268435456)==268435456?730786:731386)|0}function gi(a){var b=0;b=fc-16|0;fc=b;J[b>>2]=a;md(J[655074],780797,b);ya(1);B()}function aqa(a,b){a=a|0;b=b|0;return(J[b>>2]-7>>>0>1?1:K[J[a+12>>2]+2812|0]^1)|0}function _qa(a){a=a|0;var b=0;J[a>>2]=2438952;b=J[a+12>>2];if(b)uc(WU(b));uc(a)}function Zga(){J[699779]=0;J[699778]= +2639640;J[699778]=2634480;J[699778]=2637324}function Xla(a,b){a=a|0;b=b|0;zT(a+4|0,J[a+8>>2],J[b+4>>2],J[b+8>>2]);return a|0}function X2(a){a=a|0;var b=0;b=J[a+8>>2];if(b){if(!K[a+34|0])Nf(b);J[a+8>>2]=0}}function Uga(){J[699787]=0;J[699786]=2639640;J[699786]=2634480;J[699786]=2637820}function Sga(){J[699789]=0;J[699788]=2639640;J[699788]=2634480;J[699788]=2637984}function Rva(a){a=a|0;if(a>>>0<=255)a=(a<<24>>24)-65>>>0<26;else a=1;return a|0}function Qva(a){a=a|0;if(a>>>0<=255){a=a<<24>>24;a=a-97>>> +0<26?a&95:a}return a|0}function Qga(){J[699791]=0;J[699790]=2639640;J[699790]=2634480;J[699790]=2638148}function PNa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Cc(7,-1,807514,0);return 0}function Oga(){J[699793]=0;J[699792]=2639640;J[699792]=2634480;J[699792]=2638312}function Nva(a){a=a|0;if(a>>>0<=255)a=(a<<24>>24)-97>>>0<26;else a=1;return a|0}function Mva(a){a=a|0;if(a>>>0<=255){a=a<<24>>24;a=a-65>>>0<26?a|32:a}return a|0}function Mu(a){a=a|0;var b=0;b=a+56|0;Dj(b,a+44|0);Yk(b,a+48|0,1);Yk(b,a+52| +0,0)}function ILa(a,b){a=a|0;b=b|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]=0;return NI(a,b)|0}function Gga(){J[699811]=0;J[699810]=2639640;J[699810]=2634480;J[699810]=2638476}function Cwa(a){a=a|0;var b=0;J[a>>2]=2424768;b=J[a+20>>2];if(b)uc(b);uc(nd(a))}function yPa(a){a=a|0;var b=0;J[a>>2]=2319352;b=J[a+4>>2];if(b)uc(Zc(b));uc(a)}function wqb(a){a=a|0;var b=0;b=J[a+4>>2];a=K[a+11|0];return(a<<24>>24<0?b:a)|0}function wla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=eT(J[a+60>>2],b,c,d);return a|0}function vVa(a){a= +a|0;var b=0;J[a>>2]=2196536;b=J[a+4>>2];if(b)uc(Zc(b));uc(a)}function uRa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[c+8>>2]=0;J[c>>2]=0;J[c+4>>2]=0}function uPa(a){a=a|0;var b=0;J[a>>2]=2319400;b=J[a+4>>2];if(b)uc(Zc(b));uc(a)}function nPa(a){a=a|0;var b=0;J[a>>2]=2319472;b=J[a+4>>2];if(b)uc(Zc(b));uc(a)}function eab(a){a=a|0;var b=0;b=J[a+472>>2];J[b+36>>2]=0;J[b+44>>2]=J[a+116>>2]}function dw(a){a=a|0;var b=0,c=0;b=J[a+628>>2];c=J[a+644>>2];MW(a);kc[c|0](b)|0}function _8a(a,b){a=a|0;b=b|0;J[a+8>>2]=b; +J[a>>2]=349344;J[a+4>>2]=0;return a|0}function YFa(a){a=a|0;var b=0;J[a>>2]=2385168;b=J[a+4>>2];if(b)uc(FX(b));uc(a)}function X0(a,b,c){a=a|0;b=b|0;c=c|0;Y0(a,0);if(b){J[a+460>>2]=c;J[a+456>>2]=b}}function SIa(a,b,c){a=a|0;b=b|0;c=c|0;if((b|0)<0)return 0;J[c+8>>2]=a;return 1}function Rt(a,b,c){a=a|0;b=b|0;c=c|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function Qt(a,b,c){a=a|0;b=b|0;c=c|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function PRa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[b>>2]=0;J[b+4>>2]=0; +O[c>>3]=d|0}function Jha(a,b,c){a=a|0;b=b|0;c=c|0;c=bS(J[b>>2]);J[a+4>>2]=J[b>>2];J[a>>2]=c}function Ilb(a){a=a|0;kc[J[J[J[a+12>>2]+56>>2]+8>>2]](J[a+52>>2],0,0);return 0}function HWa(a){a=a|0;var b=0;b=J[a+312>>2];if(b){J[a+316>>2]=b;uc(b)}uc(Ch(a))}function H8(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a>>2]+12>>2]](a,b,1,c,0,0)|0}function H2a(a){a=a|0;a=J[a+28>>2]&15;return(a?(a|0)==1?731417:731867:730754)|0}function G4a(a){a=a|0;J[a>>2]=352872;jD(a+72|0);Fx(a+28|0);Ix(a+8|0);return a|0}function Fma(a){a= +a|0;a=a+240|0;return J[ym(a,(J[a+8>>2]-J[a+4>>2]>>2)-1|0)>>2]}function FWa(a){a=a|0;var b=0;b=J[a+232>>2];if(b){J[a+236>>2]=b;uc(b)}uc(Ch(a))}function CWa(a){a=a|0;var b=0;b=J[a+264>>2];if(b){J[a+268>>2]=b;uc(b)}uc(Ch(a))}function APa(a){a=a|0;var b=0;J[a>>2]=2319328;b=J[a+4>>2];if(b)uc(Zc(b));uc(a)}function qpb(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a+548>>2]+12>>2]](a,b,c)|0}function opb(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a+548>>2]+20>>2]](a,b,c)|0}function npb(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a+ +548>>2]+24>>2]](a,b,c)|0}function lr(a,b){var c=0;c=fc-16|0;fc=c;J[c+12>>2]=b;uG(2743880,a,b);fc=c+16|0}function lpb(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a+548>>2]+32>>2]](a,b,c)|0}function kpb(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a+548>>2]+36>>2]](a,b,c)|0}function ejb(a,b,c){a=a|0;b=b|0;c=c|0;c=Cd(c,ND(a));J[J[a+388>>2]+(b<<2)>>2]=c}function bjb(a,b,c){a=a|0;b=b|0;c=c|0;a=J[a+388>>2]+(b<<2)|0;J[a>>2]=J[a>>2]+c}function aUa(a,b,c){a=a|0;b=b|0;c=c|0;b=J[a+40>>2];if((b|0)>0)J[a+40>>2]=b-1}function T0a(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;kc[J[b+8>>2]](J[b>>2],0,1114111)}function Sta(a,b){a=a|0;b=b|0;a=J[(b>>4<<2)+a>>2];if(a)J[a+((b&15)<<2)>>2]=0}function NV(a){a=a|0;J[a>>2]=2423832;wc(a+24|0);wc(a+16|0);wc(a+8|0);uc(nd(a))}function Kz(a,b){var c=0;c=fc-16|0;fc=c;J[c+12>>2]=b;tG(2743880,a,b);fc=c+16|0}function K$(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;J[a+12>>2]=0;return a|0}function DIa(a){a=a|0;J[a>>2]=2376076;if(H[a+15|0]<0)uc(J[a+4>>2]);return a|0}function AHa(a){a=a|0;J[a>>2]=2381648;if(H[a+ +43|0]<0)uc(J[a+32>>2]);uc(ai(a))}function $da(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Mj(a,J[b+8>>2],0))AF(b,c,d)}function w2(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(Mr(a)|0)==1|0}function vk(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(N1(a)|0)==1|0}function vW(a){a=a|0;if(!pd(a,2416320,-1))return 1;return!pd(a,2416325,-1)|0}function uW(a){a=a|0;if(!pd(a,2416359,-1))return 1;return!pd(a,2416153,-1)|0}function rpb(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a+548>>2]+8>>2]](a,b,c)|0}function qs(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;return 0}function kBb(a,b){a=a|0;b=b|0;return(K[a+494|0]?b:b<<8|(b&65280)>>>8)<<16>>16}function gj(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(IK(a)|0)==1|0}function X8a(a){a=a|0;J[a>>2]=349364;if(H[a+19|0]<0)uc(J[a+8>>2]);return a|0}function Th(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0;return(Mr(a)|0)!=0|0}function Mqb(a,b){a=a|0;b=b|0;a=J[a+16>>2];return kc[J[J[a>>2]+64>>2]](a,b)|0}function Mi(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return 0; +return(JK(a)|0)==1|0}function LVa(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;Bh(a,0);H[J[a+4>>2]]=0;return a|0}function xP(a){a=(a>>8)-1|0;if(a>>>0>=5){ra();B()}return J[(a<<2)+206720>>2]}function x6a(a,b){a=a|0;b=b|0;var c=0;c=a;a=J[b>>2];J[c+36>>2]=(a|0)<=0?-1:a}function ulb(a,b){a=a|0;b=b|0;return(b>>>0<=255?K[(J[a+16>>2]+b|0)+6|0]:0)|0}function t5a(a){a=a|0;a=J[a+188>>2];if(!a)return 0;return(K[a+8|0]&4)>>>2|0}function qEa(a,b){a=a|0;b=b|0;if(a){J[a+280>>2]=b;J[a+204>>2]=J[a+204>>2]|2}}function jea(a,b,c){a= +a|0;b=b|0;c=c|0;return J[b>>2]==(c|0)&J[b+4>>2]==(a|0)}function jd(a){if(K[a+11|0]>>>7|0)pz(J[a>>2],J[a+8>>2]&2147483647);return a}function df(a){if(K[a+11|0]>>>7|0)uv(J[a>>2],J[a+8>>2]&2147483647);return a}function _xa(a,b){a=a|0;b=b|0;return J[J[a+12>>2]+((b>>>0)%M[a+8>>2]<<2)>>2]}function Zy(a,b){var c=0;c=a;a=(b>>>0)/1E6|0;return BF(Cp(c,a),b-P(a,1E6)|0)}function VUa(a,b){a=a|0;b=b|0;a=J[a+4>>2];return kc[J[J[a>>2]+64>>2]](a,b)|0}function Mba(a){a=a-20529|0;if(a>>>0>=6){ra();B()}return J[(a<< +2)+207836>>2]}function JIa(a){a=a|0;a=J[J[a+4>>2]+12>>2];if(!a)return 0;return J[a+36>>2]}function Hpb(a,b){a=a|0;b=b|0;return(b>>>0<=255?L[J[a+16>>2]+(b<<1)>>1]:0)|0}function CF(a,b){var c=0;c=a;a=(b>>>0)/100|0;return Cp(Cp(c,a),b-P(a,100)|0)}function BS(a,b,c,d,e){wo(a,b);wo(d,e);vz(c,d,e);wo(b,e);vz(a,c,d);vz(b,c,d)}function BF(a,b){var c=0;c=a;a=(b>>>0)/1E4|0;return CF(Cp(c,a),b-P(a,1E4)|0)}function $p(a,b,c){a=a|0;b=b|0;c=c|0;return Pe((J[a+4>>2]+(b<<5)|0)+8|0,c)|0}function qP(a){a=a-20529|0; +if(a>>>0>=6){ra();B()}return J[(a<<2)+207812>>2]}function pga(a,b){a=a|0;b=b|0;if(b>>>0<=127)b=J[dz()+(b<<2)>>2];return b|0}function p_(a,b){a=a|0;b=b|0;a=J[a+4>>2];return kc[J[J[a>>2]+64>>2]](a,0)|0}function nr(a,b){if((a|0)<0){J[698583]=8;return-1}return lT(a,39197,b,4096)}function nga(a,b){a=a|0;b=b|0;if(b>>>0<=127)b=J[cz()+(b<<2)>>2];return b|0}function mqa(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;SU(a,c,d,e,f)}function iwb(a){a=a|0;var b=0;b=J[a+4>>2];return(b?J[a+44>>2]?b+40|0:0:0)| +0}function hpb(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a+552>>2]>>2]](a,b,c)|0}function eob(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lN(J[a+12>>2],b,c,d)|0}function Uo(a,b){a=a|0;b=b|0;a=J[a+4>>2];return kc[J[J[a>>2]+64>>2]](a,1)|0}function Pdb(a){a=a|0;var b=0;J[a>>2]=340456;b=J[a+28>>2];if(b)uc(b);uc(a)}function Ev(a,b,c,d){if(J[a+76>>2]<0)return mT(a,b,c,d);return mT(a,b,c,d)}function D8(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a>>2]+16>>2]](a,b,1,c)|0}function Csa(a,b){a=a|0;b=b|0;var c=0,d=0;c=b, +d=vj(a,0,11,a+60|0),J[c>>2]=d}function Ahb(a){a=a|0;a=J[a+140>>2];if(!a)return 0;return a+(K[a|0]==47)|0}function xAb(a,b){a=a|0;b=b|0;return _9(a,K[b+28|0],K[b+29|0],K[b+30|0])|0}function vka(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a>>2]+12>>2]](a,b,c)|0}function sqb(a){a=a|0;var b=0;J[a>>2]=231660;b=J[a+4>>2];if(b)uc(b);uc(a)}function rmb(a,b){a=a|0;b=b|0;return kc[J[J[J[a>>2]+488>>2]+12>>2]](a,b)|0}function md(a,b,c){var d=0;d=fc-16|0;fc=d;J[d+12>>2]=c;uG(a,b,c);fc=d+16|0}function heb(a){a=a|0; +a=J[a+16>>2];if(!a)return 0;return K[a+2896|0]!=0|0}function ftb(a,b){a=a|0;b=b|0;return Ce(a,J[b>>2],J[b+32>>2],J[b+36>>2])|0}function ed(a,b,c){var d=0;d=fc-16|0;fc=d;J[d+12>>2]=c;WJ(a,b,c);fc=d+16|0}function Yi(a,b,c){var d=0;d=fc-16|0;fc=d;J[d+12>>2]=c;tG(a,b,c);fc=d+16|0}function T2a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;kc[J[b+8>>2]](J[b>>2],0,255)}function Rda(a){a=a|0;if(!a)return 0;return(pm(a,2640868,2641012)|0)!=0|0}function P2a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;kc[J[b+8>>2]](J[b>>2],0,127)} +function OCa(a){a=a|0;J[a>>2]=2401368;wc(a+20|0);wc(a+12|0);return nd(a)|0}function OC(a){if(H[a+23|0]<0)uc(J[a+12>>2]);if(H[a+11|0]<0)uc(J[a>>2])}function L6a(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=J[a+8>>2];J[c>>2]=J[a+12>>2]}function Egb(a,b){a=a|0;b=b|0;if(!b)return 1;O[b>>3]=O[a+608>>3];return 0}function E4a(a){a=a|0;J[a>>2]=352872;jD(a+72|0);Fx(a+28|0);Ix(a+8|0);uc(a)}function Cgb(a,b){a=a|0;b=b|0;if(!b)return 1;O[b>>3]=O[a+600>>3];return 0}function Akb(a,b){a=a|0;b=b|0;return kc[J[J[J[a>>2]+544>> +2]+12>>2]](a,b)|0}function ACa(a){a=a|0;J[a>>2]=2402056;Md(a+44|0);id(a+28|0);return nd(a)|0}function xSa(a){a=a|0;J[a>>2]=2217624;J[a+4>>2]=15;J[a+8>>2]=0;return a|0}function xA(a){a=a|0;J[a>>2]=2425292;hd(a+56|0);hd(a+44|0);return nd(a)|0}function wBa(a){a=a|0;J[a>>2]=2413904;Hd(a+36|0);Md(a+8|0);return nd(a)|0}function smb(a,b){a=a|0;b=b|0;return kc[J[J[J[a>>2]+488>>2]+8>>2]](a,b)|0}function eS(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a>>2]+48>>2]](a,b,c)|0}function e8(a,b,c){a=a|0;b=b|0;c=c|0;return kc[J[J[a>> +2]+20>>2]](a,b,c)|0}function djb(a,b){a=a|0;b=b|0;return Wc(J[J[a+388>>2]+(b<<2)>>2],ND(a))|0}function Q0a(a,b,c){a=a|0;b=b|0;c=c|0;return xu(a,J[b>>2],J[b+52>>2],c)|0}function NLa(a,b){a=a|0;b=b|0;if(J[a+144>>2])kc[J[J[a>>2]+204>>2]](a,b)}function Klb(a){a=a|0;return(a>>>0<=390?I[(a<<1)+266368>>1]+262144|0:0)|0}function Iza(a){a=a|0;J[a>>2]=2417352;wc(a+36|0);Md(a+8|0);return nd(a)|0}function It(a){var b=0;if(a){b=J[a+12>>2];if(b){uc(b);J[a+12>>2]=0}uc(a)}}function FKa(a,b,c,d,e){a=a|0;b=b|0;c=c| +0;d=d|0;e=e|0;return!J[a+16>>2]|0}function EKa(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return!J[a+12>>2]|0}function Dya(a){a=a|0;J[a>>2]=2418984;id(a+44|0);wc(a+8|0);return nd(a)|0}function Dmb(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0;J[a+28>>2]=0}function CIa(a){a=a|0;J[a>>2]=2376076;if(H[a+15|0]<0)uc(J[a+4>>2]);uc(a)}function Bkb(a,b){a=a|0;b=b|0;return kc[J[J[J[a>>2]+544>>2]+8>>2]](a,b)|0}function pJa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return dZ(J[a>>2],b,c,d)|0}function oR(a,b){var c=0; +c=J[b>>2];J[b>>2]=0;zh(a,c);J[a+4>>2]=J[b+4>>2]}function nf(a,b){a=a|0;b=b|0;if(!J[699344]){J[699344]=a;J[699345]=b}bc()}function gnb(a,b){a=a|0;b=b|0;vh(a,J[a+8>>2]);return am(a,J[a+8>>2],b)|0}function Yxa(a,b){a=a|0;b=b|0;var c=0;c=J[b+24>>2];J[a+4>>2]=b;J[a>>2]=c}function Wla(a){a=a|0;J[a+84>>2]=131088;I[a+98>>1]=L[a+90>>1]==32844?1:3}function W8a(a){a=a|0;J[a>>2]=349364;if(H[a+19|0]<0)uc(J[a+8>>2]);uc(a)}function Llb(a){a=a|0;return I[((a>>>0<=257?a:0)<<1)+265840>>1]+262144|0}function Kf(a){var b= +0;b=J[a+20>>2];if(b)uc(b);a=J[a+8>>2];if(a)uc(a)}function ze(a,b){a=a|0;b=b|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function ye(a,b){a=a|0;b=b|0;if(!J[J[a+12>>2]+44>>2])return 1;return 0}function wv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;J[e>>2]=c;return 3}function tq(a){a=a|0;a=J[J[a+4>>2]+4>>2];if(!a)return-1;return M1(a)|0}function bob(a){a=a|0;pg(J[a+12>>2]);J[a+12>>2]=0;J[a>>2]=0;J[a+4>>2]=0}function Zza(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;eW(a,b,5565,c,d,e)}function R5(a){a=a|0;var b= +0;b=a;a=J[a+4>>2]+1|0;J[b+4>>2]=a;return a|0}function Keb(a){a=a|0;H[a+8|0]=0;J[J[J[a+20>>2]+4>>2]+28>>2]=0;return 0}function Ipb(a,b){a=a|0;b=b|0;J[a+16>>2]=J[J[a>>2]+712>>2]+668;return 0}function Ija(a){a=a|0;J[a+16>>2]=J[a+16>>2]|1;if(H[a+20|0]&1){Na();B()}}function IKa(a){a=a|0;a=J[a+16>>2];return(!J[a+44>>2]|J[a+48>>2]?1:0)|0}function Hja(a){a=a|0;J[a+16>>2]=J[a+16>>2]|4;if(K[a+20|0]&4){Na();B()}}function HKa(a){a=a|0;a=J[a+12>>2];return(!J[a+44>>2]|J[a+48>>2]?1:0)|0}function $g(a){a=a|0;a=J[J[a+ +4>>2]+4>>2];if(!a)return-1;return Vm(a)|0}function $ba(a){a=a|0;return(J[a+32>>2]+J[a+12>>2]|0)+(J[a+44>>2]<<2)|0}function ueb(a,b){a=a|0;b=b|0;a=J[a+16>>2];if(a)J[a+2944>>2]=J[b>>2]}function rK(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h}function oeb(a,b){a=a|0;b=b|0;a=J[a+16>>2];if(a)O[a+2920>>3]=O[b>>3]}function nw(a,b){if(b){nw(a,J[b>>2]);nw(a,J[b+4>>2]);Rc(b+16|0);uc(b)}}function ki(a,b){if(b){ki(a,J[b>>2]);ki(a,J[b+4>>2]);Cj(b+96|0);uc(b)}}function iMa(a,b){a=a|0;b=b|0;return J[J[a>> +2]+4>>2]-J[J[b>>2]+4>>2]|0}function fW(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;eW(a,b,5556,c,d,e)}function cda(a,b){a=a|0;b=b|0;J[a+548>>2]=676;J[a+540>>2]=676;return 1}function b5a(a){a=a|0;a=J[a+188>>2];if(!a)return 0;return H[a+12|0]&1}function apa(a,b){a=a|0;b=b|0;Uc(J[a+628>>2],J[a>>2],71432,0);return 0}function SCb(a,b,c){a=a|0;b=b|0;c=c|0;return Dba(a+12|0,c,J[a+4>>2])|0}function JG(a,b){var c=0;c=a;a=Yc(a);return(ae(c,1,a,b)|0)!=(a|0)?-1:0}function Dp(a,b){a=a|0;b=b|0;H[a|0]=2;H[a+1|0]=3; +H[a+2|0]=0;H[a+3|0]=4}function zQa(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}function yCa(a){a=a|0;J[a>>2]=2402056;Md(a+44|0);id(a+28|0);uc(nd(a))}function xga(a){a=a|0;var b=0;b=J[699410]+1|0;J[699410]=b;J[a+4>>2]=b}function wua(a,b){a=a|0;b=b|0;if(J[a>>2]!=(b|0))J[a>>2]=b;return a|0}function wha(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;XF(a,f)}function rE(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return 0}function hwa(a){a=a|0;J[a>>2]=2425292;hd(a+56|0);hd(a+44|0); +uc(nd(a))}function _J(a,b){a=a|0;b=b|0;a=vc(8);J[b>>2]=a;J[a>>2]=-1;J[a+4>>2]=0}function WGa(a){a=a|0;J[a>>2]=2383504;Rc(a+20|0);Rc(a+4|0);return a|0}function Tka(a,b){a=a|0;b=b|0;if(!J[699344]){J[699344]=a;J[699345]=b}}function SLa(a,b){a=a|0;b=b|0;a=J[a+116>>2];J[a+128>>2]=J[a+128>>2]+b}function NCa(a){a=a|0;J[a>>2]=2401368;wc(a+20|0);wc(a+12|0);uc(nd(a))}function FCb(a,b,c){a=a|0;b=b|0;c=c|0;return(Kh(c,J[a+12>>2])?-1:0)|0}function ESa(a){a=a|0;a=J[a+164>>2];if(!a)return 0;return J[a+12>>2]}function Bsa(a, +b,c){a=a|0;b=b|0;c=c|0;return vj(a,-262143,262142,c)|0}function z3a(a){a=a|0;H[a+8|0]=0;J[a+4>>2]=40;J[a>>2]=a+9;return a|0}function ypa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]- -64>>3];return 0}function xpa(a,b){a=a|0;b=b|0;O[J[a+12>>2]- -64>>3]=O[b>>3];return 0}function vBa(a){a=a|0;J[a>>2]=2413904;Hd(a+36|0);Md(a+8|0);uc(nd(a))}function tAb(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,1316);return 0}function sdb(a){a=a|0;var b=0;b=vc(4);J[b>>2]=0;J[a>>2]=b;return a|0}function ppb(a,b){a=a|0;b=b|0;return kc[J[J[a+ +548>>2]+16>>2]](a,b)|0}function nOa(a,b){a=a|0;b=b|0;J[a+4>>2]=b;J[a>>2]=2342900;return a|0}function mpb(a,b){a=a|0;b=b|0;return kc[J[J[a+548>>2]+28>>2]](a,b)|0}function ipb(a){a=a|0;var b=0;b=J[a+548>>2];if(b)kc[J[b+44>>2]](a)}function ioa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+1996>>2];return 0}function ieb(a,b){a=a|0;b=b|0;a=J[a+16>>2];if(a)H[a+2896|0]=K[b|0]}function hoa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+1996>>2]=J[b>>2];return 0}function gqa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+2004>>2]=J[b>>2];return 0} +function cfa(a,b){a=a|0;b=b|0;Uc(J[a+628>>2],97425,90410,0);return 0}function bca(a,b,c){a=a|0;b=b|0;c=c|0;return eT(J[a>>2],b,b>>31,c)|0}function azb(a){a=a|0;a=J[a+24>>2];J[a+4>>2]=4096;J[a>>2]=J[a+52>>2]}function Ypa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+2712>>3];return 0}function Wpa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+2704>>3];return 0}function Wnb(a,b){a=a|0;b=b|0;hN(b,J[a>>2]<<2,J[a+4>>2]<<2);return 0}function VU(a,b){a=a|0;b=b|0;J[b>>2]=0;J[b+4>>2]=1079508992;return 0}function Upa(a,b){a= +a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+2720>>3];return 0}function Tpa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+2728>>3];return 0}function Qcb(a){a=a|0;var b=0;b=J[a>>2];J[b+20>>2]=47;kc[J[b>>2]](a)}function PN(a,b){a=a|0;b=b|0;a=Hk(4);J[a>>2]=b;xa(a|0,2641108,0);B()}function Jsb(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,1320);return 0}function Iba(a){a=a|0;var b=0;b=J[a+24>>2];if(b){uc(b);J[a+24>>2]=0}}function Hza(a){a=a|0;J[a>>2]=2417352;wc(a+36|0);Md(a+8|0);uc(nd(a))}function Cya(a){a=a|0;J[a>>2]=2418984;id(a+ +44|0);wc(a+8|0);uc(nd(a))}function Bra(a){a=a|0;var b=0;b=a;a=J[a>>2]+1|0;J[b>>2]=a;return a|0}function Ara(a){a=a|0;var b=0;b=a;a=J[a>>2]-1|0;J[b>>2]=a;return a|0}function $Ga(a,b,c){a=a|0;b=b|0;c=c|0;J[a+16>>2]=b;lw(a+20|0,c,1,-1)}function zra(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=0;J[a+4>>2]=J[685894]}function vqa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+932>>2]=J[b>>2];return 0}function t_a(a,b){a=a|0;b=b|0;return(a>>>0>>0?-1:(a|0)!=(b|0))|0}function rMa(a){a=a|0;a=J[a+24>>2];return kc[J[J[a>>2]+12>>2]](a)| +0}function rB(a){a=a|0;uc(J[a+144>>2]);uc(J[a+272>>2]);uc(a);return 0}function qMa(a){a=a|0;a=J[a+24>>2];return kc[J[J[a>>2]+52>>2]](a)|0}function pAb(a,b){a=a|0;b=b|0;return faa(a,J[b+28>>2],J[b+32>>2])|0}function jr(a,b){return b?a<<24|(a&65280)<<8|(a>>>8&65280|a>>>24):a}function iga(a,b,c){a=a|0;b=b|0;c=c|0;return(b>>>0<128?b:c)<<24>>24}function iCb(a,b){a=a|0;b=b|0;rd(209004,0);kF(b,J[655074]);return 0}function hpa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+124>>2];return 0}function gpa(a,b){a=a|0; +b=b|0;J[J[a+12>>2]+124>>2]=J[b>>2];return 0}function gEb(a){a=a|0;return(Yc(J[a+16>>2])+(J[a+24>>2]<<1)|0)+83|0}function fpa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+120>>2];return 0}function dpa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+184>>3];return 0}function cpa(a,b){a=a|0;b=b|0;O[J[a+12>>2]+184>>3]=O[b>>3];return 0}function _Ab(a){a=a|0;return J[a+32>>2]-(J[a+24>>2]+J[a+28>>2]|0)|0}function Zsb(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,808);return 0}function Zoa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+ +100>>2];return 0}function Xsb(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,564);return 0}function XVa(a,b){a=a|0;b=b|0;return J[(J[a+28>>2]+P(b,20)|0)+4>>2]}function VAb(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,800);return 0}function U6a(a,b){a=a|0;b=b|0;J[a+4>>2]=b;J[a>>2]=351748;return a|0}function TAb(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,288);return 0}function Soa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+472>>3];return 0}function Rsb(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,548);return 0}function OVa(a){a= +a|0;a=J[a+20>>2];if(!a)return 0;return J[a+4>>2]}function OEa(a){a=a|0;a=J[a+16>>2];return kc[J[J[a>>2]+16>>2]](a)|0}function Noa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+492>>2];return 0}function Moa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+492>>2]=J[b>>2];return 0}function Lqb(a){a=a|0;a=J[a+16>>2];return kc[J[J[a>>2]+60>>2]](a)|0}function Loa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+496>>3];return 0}function LR(a,b,c){a=a|0;b=b|0;c=c|0;return bt(0,a,b,c?c:2797444)|0}function Koa(a,b){a=a|0;b=b|0;O[J[a+12>>2]+496>> +3]=O[b>>3];return 0}function Jqa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+784>>3];return 0}function Joa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+504>>2];return 0}function Ioa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+504>>2]=J[b>>2];return 0}function Hua(a,b){a=a|0;b=b|0;return ur(b,J[a+12>>2]+J[a+8>>2]|0)|0}function Gta(a){a=a|0;a=J[a+12>>2];if(!a)return 0;return J[a+4>>2]}function Fta(a){a=a|0;a=J[a+12>>2];if(!a)return 0;return J[a+8>>2]}function Fqa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+804>>2];return 0}function Eqa(a, +b){a=a|0;b=b|0;J[J[a+12>>2]+804>>2]=J[b>>2];return 0}function Ena(a,b){a=a|0;b=b|0;return(J[b+4>>2]==2442448?a+12|0:0)|0}function Dqa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+808>>3];return 0}function Cqa(a,b){a=a|0;b=b|0;O[J[a+12>>2]+808>>3]=O[b>>3];return 0}function Bqa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+816>>2];return 0}function Aqa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+816>>2]=J[b>>2];return 0}function zpa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+56>>2]=J[b>>2];return 0}function yea(a,b,c,d){a=a|0;b=b|0;c=c|0;d= +d|0;return mQ(a,b,c,d)|0}function y0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ae(c,1,d,b)|0}function x0a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ge(c,1,d,b)|0}function vMa(a){a=a|0;return(J[a+296>>2]+(J[a+304>>2]-a|0)|0)-40|0}function uta(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;J[a+8>>2]=0;return a|0}function upa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+80>>2];return 0}function tpa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+80>>2]=J[b>>2];return 0}function to(a,b,c){a=a|0;b=b|0;c=c|0;b=OQ(c);J[a+4>>2]=c;J[a>>2]=b}function spa(a, +b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+84>>2];return 0}function rpa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+84>>2]=J[b>>2];return 0}function qpa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+92>>2];return 0}function qW(a){a=a|0;a=J[a+12>>2];return kc[J[J[a>>2]+16>>2]](a)|0}function qHa(a){a=a|0;a=J[J[a>>2]-12>>2]+a|0;bg(a+12|0);return a|0}function pqb(a,b){a=a|0;b=b|0;a=BQ(a,b);J[a>>2]=2641672;return a|0}function opa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+88>>2];return 0}function oea(a,b){a=a|0;b=b|0;a=CQ(a,b);J[a>>2]= +2641564;return a|0}function nqa(a){a=a|0;var b=0,c=0;b=a,c=vc(1),J[b>>2]=c;return a|0}function npa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+88>>2]=J[b>>2];return 0}function nea(a,b){a=a|0;b=b|0;a=CQ(a,b);J[a>>2]=2641672;return a|0}function mpa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+96>>2];return 0}function mBb(a){a=a|0;return J[a+16>>2]-(J[a+8>>2]+J[a+12>>2]|0)|0}function lna(a){a=a|0;J[a+8>>2]=0;J[a+4>>2]=a;J[a>>2]=a;return a|0}function l1a(a){a=a|0;return(K[J[a+8>>2]+74|0]==1?730697:731362)|0}function k0(a, +b,c){a=a|0;b=b|0;c=c|0;return Rm(a,J[a+32>>2],b,c)|0}function jBb(a){a=a|0;a=J[a+4>>2];if(!a)return 0;return J[a+4>>2]}function iqb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return T8(d,b,c,d)|0}function gYa(a){a=a|0;a=J[a+4>>2];return kc[J[J[a>>2]+52>>2]](a)|0}function fra(a,b){a=a|0;b=b|0;a=_U(a,b);J[a>>2]=2438692;return a|0}function fYa(a){a=a|0;a=J[a+4>>2];return kc[J[J[a>>2]+68>>2]](a)|0}function dYa(a){a=a|0;a=J[a+4>>2];return kc[J[J[a>>2]+72>>2]](a)|0}function cYa(a){a=a|0;a=J[a+4>>2];return kc[J[J[a>> +2]+76>>2]](a)|0}function bk(a,b){a=a|0;b=b|0;if(!J[a+4>>2])xc(a+52|0,b+52|0,908)}function _ab(a,b){a=a|0;b=b|0;a=BQ(a,b);J[a>>2]=2641620;return a|0}function Uqa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+24>>2];return 0}function Tqa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+24>>2]=J[b>>2];return 0}function Sqa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+28>>2];return 0}function Rqa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+28>>2]=J[b>>2];return 0}function Rpa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+12>>2];return 0}function Qsb(a,b){a= +a|0;b=b|0;if(b)kc[J[a+156>>2]](b,60);return 0}function Qqa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+36>>2];return 0}function Qpa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+12>>2]=J[b>>2];return 0}function Pqa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+36>>2]=J[b>>2];return 0}function Ppa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+16>>2];return 0}function Npa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+24>>3];return 0}function Mpa(a,b){a=a|0;b=b|0;O[J[a+12>>2]+24>>3]=O[b>>3];return 0}function JLa(a){a=a|0;J[a+8>>2]=0;J[a>>2]=0;J[a+4>>2]= +0;return a|0}function H7a(a,b){a=a|0;b=b|0;return(J[b+4>>2]==351028?a+12|0:0)|0}function DVa(a,b){a=a|0;b=b|0;return J[J[J[a+32>>2]>>2]+(b<<2)>>2]}function Cpa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+48>>3];return 0}function Bpa(a,b){a=a|0;b=b|0;O[J[a+12>>2]+48>>3]=O[b>>3];return 0}function Apa(a,b){a=a|0;b=b|0;J[b>>2]=J[J[a+12>>2]+56>>2];return 0}function uGa(a){a=a|0;J[a>>2]=0;J[a+4>>2]=0;H[a+8|0]=0;return a|0}function sYa(a){a=a|0;a=J[a+172>>2];if(!a)return 0;return K[a|0]}function reb(a,b){a=a| +0;b=b|0;xc(a+220|0,b,80);Pu(a+300|0,b+80|0)}function irb(a){a=a|0;return(J[a+4>>2]?J[a+16>>2]>J[a+8>>2]:-1)|0}function gCb(a,b,c){a=a|0;b=b|0;c=c|0;J[a+396>>2]=c;J[a+392>>2]=b}function ZU(a,b){a=a|0;b=b|0;a=tH(a,b);J[a>>2]=2438660;return a|0}function ZE(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,44);return 0}function Yqa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]+8>>3];return 0}function YE(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,52);return 0}function Xqa(a,b){a=a|0;b=b|0;O[J[a+12>>2]+8>>3]=O[b>>3];return 0} +function Wy(a,b,c,d,e){b=Vb(a|0,b|0,c|0,d|0,e|0)|0;jc=gc;return b}function Wea(a){a=a|0;var b=0,c=0;b=a,c=gh(),J[b>>2]=c;return a|0}function Tq(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,36);return 0}function Sq(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,48);return 0}function PO(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,64);return 0}function P9(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,68);return 0}function Oma(a){a=a|0;ft(2794164,J[698542]);ft(2794152,J[698539])}function O9(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>> +2]](b,56);return 0}function NO(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,28);return 0}function Igb(a){a=a|0;if(!J[a+12>>2])kc[J[J[a>>2]+468>>2]](a,0)}function IG(a){if(J[a+76>>2]<0){a=kT(a);return a}a=kT(a);return a}function Ggb(a,b){a=a|0;b=b|0;if(!b)return 1;J[b>>2]=16;return 0}function GCb(a,b,c){a=a|0;b=b|0;c=c|0;return(Wg(c,a+12|0)?-1:0)|0}function EI(a,b,c){a=a|0;b=b|0;c=c|0;return!J[J[a+16>>2]+44>>2]|0}function DI(a,b,c){a=a|0;b=b|0;c=c|0;return!J[J[a+12>>2]+44>>2]|0}function Bs(a,b){a=a|0;b= +b|0;if(b)kc[J[a+156>>2]](b,32);return 0}function As(a,b){a=a|0;b=b|0;if(b)kc[J[a+156>>2]](b,40);return 0}function Aka(a,b,c){a=a|0;b=b|0;c=c|0;return UR(a,(b<<2)+a|0,c)|0}function sja(a,b){a=a|0;b=b|0;return kc[J[J[a>>2]+12>>2]](a,b)|0}function nla(a,b){a=a|0;b=b|0;return a-48>>>0<10|(a|32)-97>>>0<6}function Xob(a){a=a|0;return(a>>>0<=255?L[(a<<1)+255568>>1]:0)|0}function Xia(a){a=a|0;a=J[a+4>>2];if(!a)return-1;return ih(a)|0}function VGa(a){a=a|0;J[a>>2]=2383504;Rc(a+20|0);Rc(a+4|0);uc(a)}function Ugb(a, +b){a=a|0;b=b|0;xc(b,J[a+132>>2]+4|0,156);return 0}function Rja(a,b){a=a|0;b=b|0;return kc[J[J[a>>2]+44>>2]](a,b)|0}function Lpa(a,b){a=a|0;b=b|0;H[b|0]=K[J[a+12>>2]+32|0];return 0}function Lna(a){a=a|0;a=J[a+4>>2];if(!a)return 0;return mr(a)|0}function Kpa(a,b){a=a|0;b=b|0;H[J[a+12>>2]+32|0]=K[b|0];return 0}function Jpa(a,b){a=a|0;b=b|0;H[b|0]=K[J[a+12>>2]+33|0];return 0}function Ipa(a,b){a=a|0;b=b|0;H[J[a+12>>2]+33|0]=K[b|0];return 0}function Gpa(a,b){a=a|0;b=b|0;H[b|0]=K[J[a+12>>2]+34|0];return 0} +function Fpa(a,b){a=a|0;b=b|0;H[J[a+12>>2]+34|0]=K[b|0];return 0}function Fna(a){a=a|0;a=J[a+12>>2];if(a)kc[J[J[a>>2]+4>>2]](a)}function Fla(a){a=a|0;a=J[a+4>>2];if(!a)return 0;return!Zi(a)|0}function Epa(a,b){a=a|0;b=b|0;H[b|0]=K[J[a+12>>2]+35|0];return 0}function Dpa(a,b){a=a|0;b=b|0;H[J[a+12>>2]+35|0]=K[b|0];return 0}function DK(a,b){var c=0;if(!(!a|!b))c=lu(a,b,Tk(b),1);return c}function Brb(a,b){a=a|0;b=b|0;if(b)H[a+12|0]=0;return J[a+4>>2]}function ALa(a,b){a=a|0;b=b|0;return Ec(J[a+48>>2], +796941,b,0)|0}function A7(a){a=a|0;var b=0;b=J[a>>2];if(a)kc[J[b+8>>2]](b,a)}function $ib(a,b,c){a=a|0;b=b|0;c=c|0;J[J[a+388>>2]+(b<<2)>>2]=c}function zn(a,b){a=a|0;b=b|0;if(!a)return 0;return Az(a,b,0)|0}function peb(a,b){a=a|0;b=b|0;a=J[a+16>>2];if(a)H[a+2912|0]=b}function p2a(a,b,c){a=a|0;b=b|0;c=c|0;J[a+48>>2]=0;J[a+52>>2]=1}function p0a(a,b){a=a|0;b=b|0;if(!b)return-1;return J[b+16>>2]}function oB(a){a=a|0;if(!J[J[a+16>>2]+44>>2])return 1;return 0}function nB(a){a=a|0;if(!J[J[a+12>>2]+44>>2])return 1; +return 0}function mya(a){a=a|0;J[a>>2]=2419252;hd(a+12|0);return nd(a)|0}function lAb(a,b){a=a|0;b=b|0;a=J[a+156>>2];if(a)kc[a|0](b,1)}function jsa(a){a=a|0;J[a>>2]=2434832;hd(a+20|0);return nd(a)|0}function deb(a){a=a|0;IM(a,1);IM(a,0);uc(J[a+4>>2]);J[a+4>>2]=0}function cta(a,b,c){a=a|0;b=b|0;c=c|0;J[a+76>>2]=c;J[a+72>>2]=b}function arb(a,b){a=a|0;b=b|0;Ad(J[a+168>>2],b,255);nf(a,1);B()}function Wqa(a,b){a=a|0;b=b|0;O[b>>3]=O[J[a+12>>2]>>3];return 0}function WE(a){var b=0;b=J[a+964>>2];if(b){uc(b); +J[a+964>>2]=0}}function Vqa(a,b){a=a|0;b=b|0;O[J[a+12>>2]>>3]=O[b>>3];return 0}function QR(a,b){a=a|0;b=b|0;return kc[J[J[a>>2]+28>>2]](a,b)|0}function MCa(a){a=a|0;J[a>>2]=2401528;id(a+12|0);return nd(a)|0}function Jh(a){var b=0;b=J[J[a>>2]+4>>2];if(b)kc[b|0](a);uc(a)}function Jd(a){var b=0;b=J[a>>2];if(b){uc(b);J[a>>2]=0}return a}function IA(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[a>>2]=0;vd(a,0)}function vhb(a,b,c){a=a|0;b=b|0;c=c|0;if(c)J[c>>2]=b;return 0}function uqa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+ +932>>2]=-1;return 0}function tDa(a){a=a|0;J[a>>2]=2400772;wc(a+8|0);return nd(a)|0}function qWa(a){a=a|0;J[a>>2]=2193088;pg(J[a+4>>2]);return a|0}function nAa(a,b){a=a|0;b=b|0;Rj(a+8|0,b);vt(si(),J[a+8>>2],a)}function k$(a,b){a=a|0;b=b|0;J[b+8>>2]=0;J[b>>2]=0;J[b+4>>2]=0}function jJa(a,b,c){a=a|0;b=b|0;c=c|0;return UY(J[a>>2],b,c)|0}function hrb(a){a=a|0;if(a)J[a+16>>2]=J[a+16>>2]+1;return a|0}function amb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return 1}function ZDa(a){a=a|0;J[a>>2]=2397884;id(a+ +8|0);return nd(a)|0}function Tua(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return nk(b,c)|0}function OQ(a){if(a>>>0>1073741823){Pd();B()}return SR(a<<2,4)}function Kkb(a,b){a=a|0;b=b|0;J[b>>2]=-1;J[b+4>>2]=14;return 0}function FDb(a,b){a=a|0;b=b|0;J[a+336>>2]=J[a+44>>2]>(b|0)?b:0}function $nb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return fe(d,c)|0}function toa(a,b){a=a|0;b=b|0;return vU(J[a+12>>2],J[b>>2])|0}function tmb(a,b){a=a|0;b=b|0;return J[J[a+424>>2]+(b<<2)>>2]}function pHa(a){a=a|0;a=J[J[a>>2]-12>>2]+a| +0;bg(a+12|0);uc(a)}function hUa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+40>>2]=J[a+40>>2]+1}function dG(a,b,c){var d=0;d=fc-16|0;fc=d;_R(a,b,c);fc=d+16|0}function br(a){var b=0;b=Dc(Yc(a)+1|0);if(b)of(b,a);return b}function bB(a){a=a|0;var b=0;b=J[a>>2];if(b){uc(b);J[a>>2]=0}}function _ib(a,b){a=a|0;b=b|0;return J[J[a+388>>2]+(b<<2)>>2]}function YVa(a,b){a=a|0;b=b|0;return J[J[a+28>>2]+P(b,20)>>2]}function RVa(a){a=a|0;if(!J[a+80>>2])u0(a);return J[a+20>>2]}function QVa(a){a=a|0;if(!J[a+80>>2])u0(a);return J[a+ +24>>2]}function Kda(a,b){a=a|0;b=b|0;a=kc[a|0](b)|0;gc=jc;return a|0}function Hnb(a,b){a=a|0;b=b|0;J[a+16>>2]=J[a>>2]+296;return 0}function CDb(a,b){a=a|0;b=b|0;return(zi(b,J[a+20>>2])?-1:0)|0}function Aib(a,b){a=a|0;b=b|0;J[J[a+8>>2]+308>>2]=-1;return 0}function $8(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return 0}function xmb(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0;J[a+24>>2]=0}function uH(a){while(1){if(J[a>>2])continue;break}J[a>>2]=1}function nfa(a){a=a|0;Uc(J[a+628>>2],97456,90410,0);return 0}function Zea(a){a= +a|0;Uc(J[a+628>>2],97408,90410,0);return 0}function Vfa(a){a=a|0;le(J[a+628>>2],97088,89441,0);return 1}function Uta(a){a=a|0;J[a>>2]=2427256;_v(a+508|0);return a|0}function RCb(a,b,c){a=a|0;b=b|0;c=c|0;Cba(a+12|0,c);return 0}function Qza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xc(a,b,P(c,3))}function NN(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0}function Gdb(a){a=a|0;J[a+4>>2]=J[a+4>>2]+1;return J[a+4>>2]}function CS(a,b,c,d){wo(a,c);wo(b,d);wo(a,b);wo(c,d);wo(b,c)}function zza(a){a=a|0;return(J[a+ +68>>2]-J[a- -64>>2]|0)+1|0}function uy(a,b){if(b){uy(a,J[b>>2]);uy(a,J[b+4>>2]);uc(b)}}function s9a(a){a=a|0;J[a>>2]=349096;Se(a+128|0);return a|0}function qr(a,b){if(b){qr(a,J[b>>2]);qr(a,J[b+4>>2]);uc(b)}}function nS(a,b,c){a=a|0;b=b|0;c=c|0;return UR(a,a+b|0,c)|0}function lea(a,b,c){a=a|0;b=b|0;c=c|0;J[a+4>>2]=b;J[a>>2]=c}function kgb(a,b){a=a|0;b=b|0;O[b>>3]=O[a- -64>>3];return 0}function jgb(a,b){a=a|0;b=b|0;O[a- -64>>3]=O[b>>3];return 0}function hu(a,b){if(b){hu(a,J[b>>2]);hu(a,J[b+4>>2]);uc(b)}} +function gB(a){var b=0;if(a){b=J[a+8>>2];if(b)uc(b);uc(a)}}function dla(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;jc=0;return 0}function d0a(a){a=a|0;J[a+4>>2]=1;J[a>>2]=769744;return a|0}function SUa(a,b){a=a|0;b=b|0;return J[J[a+4>>2]+(b<<5)>>2]}function R4(a){var b=0;b=J[a>>2];J[a>>2]=0;if(b)uc(N4(b))}function Lba(){var a=0;a=Dc(52);if(a)J[a+48>>2]=0;return a}function L5(a){var b=0;b=vc(4);J[a>>2]=b;J[b>>2]=0;return a}function Ht(a,b){if(b){Ht(a,J[b>>2]);Ht(a,J[b+4>>2]);uc(b)}}function Hdb(a){a=a|0;J[a+ +4>>2]=1;J[a>>2]=347752;return a|0}function Cdb(a){a=a|0;J[a+4>>2]=1;J[a>>2]=348228;return a|0}function C9a(a){a=a|0;J[a>>2]=348916;Se(a+116|0);return a|0}function $fa(a,b,c){a=a|0;b=b|0;c=c|0;return((b|0)<0?c:b)|0}function zKa(a,b){a=a|0;b=b|0;return!J[J[a+16>>2]+44>>2]|0}function z9a(a){a=a|0;J[a>>2]=348992;Se(a+92|0);return a|0}function yhb(a,b){a=a|0;b=b|0;I[b>>1]=L[a+312>>1];return 0}function yKa(a,b){a=a|0;b=b|0;return!J[J[a+12>>2]+44>>2]|0}function xfb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+508>>2];return 0} +function wfb(a,b){a=a|0;b=b|0;J[a+508>>2]=J[b>>2];return 0}function vfb(a,b){a=a|0;b=b|0;O[b>>3]=O[a+512>>3];return 0}function v9a(a){a=a|0;J[a>>2]=349044;Se(a+92|0);return a|0}function usa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xc(a,b,c<<4)}function ukb(a){a=a|0;return a-48>>>0<10|(a&-33)-65>>>0<26}function ufb(a,b){a=a|0;b=b|0;O[a+512>>3]=O[b>>3];return 0}function rfb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+520>>2];return 0}function qfb(a,b){a=a|0;b=b|0;J[a+520>>2]=J[b>>2];return 0}function p9a(a){a=a|0;J[a>>2]= +349152;Se(a+92|0);return a|0}function mza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xc(a,b,c<<1)}function mCa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xc(a,b,c<<2)}function lza(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xc(a,b,c<<3)}function lya(a){a=a|0;J[a>>2]=2419252;hd(a+12|0);uc(nd(a))}function kr(a,b,c){a=a|0;b=b|0;c=c|0;return kc[c|0](a,b)|0}function isa(a){a=a|0;J[a>>2]=2434832;hd(a+20|0);uc(nd(a))}function bgb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+100>>2];return 0}function agb(a,b){a=a|0;b=b|0;J[a+100>>2]=J[b>>2];return 0} +function _fb(a,b){a=a|0;b=b|0;J[a+108>>2]=J[b>>2];return 0}function Zfb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+104>>2];return 0}function Yfb(a,b){a=a|0;b=b|0;J[a+104>>2]=J[b>>2];return 0}function Xfb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+112>>2];return 0}function Wfb(a,b){a=a|0;b=b|0;J[a+112>>2]=J[b>>2];return 0}function Tfb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+116>>2];return 0}function Rfb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+140>>2];return 0}function RQ(a){a=a|0;J[a>>2]=2634152;jd(a+12|0);return a|0}function Qfb(a,b){a=a|0;b=b|0; +J[a+140>>2]=J[b>>2];return 0}function QQ(a){a=a|0;J[a>>2]=2634192;jd(a+16|0);return a|0}function Pfb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+136>>2];return 0}function Ofb(a,b){a=a|0;b=b|0;J[a+136>>2]=J[b>>2];return 0}function Oeb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+636>>2];return 0}function Mfb(a,b){a=a|0;b=b|0;O[b>>3]=O[a+200>>3];return 0}function Lfb(a,b){a=a|0;b=b|0;O[a+200>>3]=O[b>>3];return 0}function LCa(a){a=a|0;J[a>>2]=2401528;id(a+12|0);uc(nd(a))}function K2a(a){a=a|0;return(K[a+28|0]&15?732738:732325)|0} +function Hkb(a){a=a|0;a=J[a>>2];J[a+20>>2]=0;J[a+108>>2]=0}function D2a(a){a=a|0;return(K[a+28|0]&15?733362:733062)|0}function Bfb(a,b){a=a|0;b=b|0;O[b>>3]=O[a+488>>3];return 0}function Afb(a,b){a=a|0;b=b|0;O[a+488>>3]=O[b>>3];return 0}function $fb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+108>>2];return 0}function yua(a,b,c){a=a|0;b=b|0;c=c|0;kc[b|0](c);return 0}function ygb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+28>>2];return 0}function xgb(a,b){a=a|0;b=b|0;J[a+28>>2]=J[b>>2];return 0}function wgb(a,b){a=a|0;b=b|0;J[b>> +2]=J[a+32>>2];return 0}function wF(a){a=a|0;J[a>>2]=2641516;_P(a+4|0);return a|0}function vgb(a,b){a=a|0;b=b|0;J[a+32>>2]=J[b>>2];return 0}function vX(a){a=a|0;a=J[a+16>>2];kc[J[J[a>>2]+24>>2]](a)}function ugb(a,b){a=a|0;b=b|0;O[b>>3]=O[a+40>>3];return 0}function tl(a,b,c,d,e,f,g,h){return uY(a,b,c,d,e,f,g,h,1)}function tgb(a,b){a=a|0;b=b|0;O[a+40>>3]=O[b>>3];return 0}function sDa(a){a=a|0;J[a>>2]=2400772;wc(a+8|0);uc(nd(a))}function oda(a){a=a|0;J[a+916>>2]=J[a+916>>2]-J[a+784>>2]}function oWa(a){a= +a|0;J[a>>2]=2193088;pg(J[a+4>>2]);uc(a)}function maa(a){Zh(a,J[a+532>>2],0);H[a+498|0]=0;return 0}function mOa(a){a=a|0;a=J[a+4>>2];kc[J[J[a>>2]+24>>2]](a)}function k3a(a){a=a|0;if(!a)return 0;return K[a|0]==47|0}function igb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+72>>2];return 0}function hgb(a,b){a=a|0;b=b|0;J[a+72>>2]=J[b>>2];return 0}function hYa(a,b,c){a=a|0;b=b|0;c=c|0;J[b>>2]=8;J[c>>2]=2}function ggb(a,b){a=a|0;b=b|0;O[b>>3]=O[a+80>>3];return 0}function fgb(a,b){a=a|0;b=b|0;O[a+80>>3]=O[b>>3];return 0} +function f0a(a,b,c){a=a|0;b=b|0;c=c|0;return Dc(P(b,c))|0}function dgb(a,b){a=a|0;b=b|0;J[b>>2]=J[a+96>>2];return 0}function cgb(a,b){a=a|0;b=b|0;J[a+96>>2]=J[b>>2];return 0}function ava(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;wV(a,b,c,d)}function YDa(a){a=a|0;J[a>>2]=2397884;id(a+8|0);uc(nd(a))}function Owa(a){a=a|0;return(K[a+56|0]?2423762:2423658)|0}function Mdb(a){a=a|0;J[a>>2]=340624;If(a+8|0);return a|0}function Jt(a,b,c,d,e,f,g,h){return uY(a,b,c,d,e,f,g,h,0)}function Gwa(a){a=a|0;return(K[a+64|0]? +2423767:2423663)|0}function Glb(a){a=a|0;J[a+140>>2]=J[a+140>>2]+I[a+144>>1]}function DOa(a){a=a|0;return(J[a+52>>2]&J[a+56>>2])==-1|0}function DDb(a,b){a=a|0;b=b|0;return(Ti(b,a+20|0)?-1:0)|0}function Azb(a){a=a|0;a=J[a+24>>2];H[(a?a-20|0:0)+56|0]=1}function $P(a){a=a|0;J[a>>2]=2641496;_P(a+4|0);return a|0}function $5(a,b){a=a|0;b=b|0;I[b>>1]=L[a+164>>1];return 0}function yga(a,b){a=a|0;b=b|0;return aR(J[a>>2],ag(b))|0}function omb(a){a=a|0;a=a<<13^a;a=a>>>17^a;return a<<5^a}function eCb(a,b){a= +a|0;b=Q(b);N[a+344>>2]=b>Q(0)?b:Q(0)}function bea(a,b,c){a=a|0;b=b|0;c=c|0;return Mj(a,b,0)|0}function Zca(a){a=a|0;a=J[a+584>>2];if(a)uc(a);return 1}function Rx(a,b){a=a|0;b=b|0;J[a+40>>2]=b;K5(a);return 0}function Njb(a,b,c){a=a|0;b=b|0;c=c|0;return yN(a,b,c)|0}function Km(a){var b=0,c=0;b=a,c=ig(0,0,0),J[b+384>>2]=c}function H3a(a){a=a|0;return H[J[J[a+24>>2]+12>>2]+70|0]}function Ge(a,b){var c=0;if(!(!a|!b))c=kd(a,b);return c}function zja(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;dG(a,c,d)}function yDa(a, +b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xc(a,b,c)}function vRa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[c>>2]=0}function sgb(a,b){a=a|0;b=b|0;H[b|0]=K[a+48|0];return 0}function rgb(a,b){a=a|0;b=b|0;H[a+48|0]=K[b|0];return 0}function qgb(a,b){a=a|0;b=b|0;H[b|0]=K[a+49|0];return 0}function q8a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[d>>2]=0}function prb(a){a=a|0;return(J[a+4>>2]?J[a+16>>2]:-1)|0}function pgb(a,b){a=a|0;b=b|0;H[a+49|0]=K[b|0];return 0}function ogb(a,b){a=a|0;b=b|0;H[b|0]=K[a+50|0];return 0}function ngb(a, +b){a=a|0;b=b|0;H[a+50|0]=K[b|0];return 0}function mgb(a,b){a=a|0;b=b|0;H[b|0]=K[a+51|0];return 0}function lgb(a,b){a=a|0;b=b|0;H[a+51|0]=K[b|0];return 0}function lOa(a,b,c){a=a|0;b=b|0;c=c|0;Cc(7,-1,807066,0)}function krb(a){a=a|0;return(J[a+4>>2]?J[a+8>>2]:-1)|0}function jOa(a){a=a|0;a=J[a>>2];kc[J[J[a>>2]+20>>2]](a)}function iPa(a){a=a|0;return J[a+12>>2]!=0|J[a+4>>2]>=0}function iOa(a){a=a|0;a=J[a>>2];kc[J[J[a>>2]+24>>2]](a)}function i8a(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;J[d>>2]=c}function hLa(a, +b){a=a|0;b=b|0;return!Dd(J[a+20>>2],b)|0}function gea(a){a=a|0;if(a){a=a-24|0;J[a>>2]=J[a>>2]+1}}function fPa(a){a=a|0;return J[(J[a>>2]<<2)+2735600>>2]}function _5(a,b){a=a|0;b=b|0;xc(b,a+168|0,196);return 0}function Zc(a){var b=0;b=J[a+4>>2];if(b)uc(b);return a}function Yla(a,b){a=a|0;b=b|0;return J[a+4>>2]+(b<<2)|0}function Yja(a){a=a|0;return fD(J[J[a>>2]-12>>2]+a|0)|0}function Wja(a){a=a|0;return gD(J[J[a>>2]-12>>2]+a|0)|0}function Vxa(a){a=a|0;a=J[a+4>>2];return(a?a:2389698)|0}function Tta(a){a= +a|0;J[a>>2]=2427256;_v(a+508|0);uc(a)}function Sza(a,b){a=a|0;b=b|0;return!pd(b,2403210,-1)|0}function Phb(a,b){a=a|0;b=b|0;J[b+376>>2]=J[b+376>>2]|1}function P8a(a){a=a|0;return J[a+272>>2]-J[a+268>>2]>>3}function OBa(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;JW(a,b,d)}function LNa(a,b,c){a=a|0;b=b|0;c=c|0;Cc(7,-1,807934,0)}function Jnb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 12}function Iob(a,b){a=a|0;b=b|0;return J[a>>2]==J[b>>2]|0}function Gla(a){a=a|0;J[a+16>>2]=0;J[a+12>>2]=J[a+4>>2]}function Gba(){var a= +0;a=Dc(4);if(a)J[a>>2]=0;return a}function EQ(a,b,c,d){a=Cz(a,b,c,0,-2147483648);return a}function By(a,b){a=a|0;b=b|0;return Ce(a,J[b>>2],0,0)|0}function $db(a){a=a|0;kc[J[J[a>>2]+348>>2]](a,340796)|0}function $Ca(a,b){a=a|0;b=b|0;if((b|0)>0)Ac(a,0,b<<2)}function xKa(a){a=a|0;if(a)J[a+208>>2]=J[a+208>>2]|1}function v8(a){a=a|0;a=J[a+156>>2];if(a)J[a+36>>2]=0}function r9a(a){a=a|0;J[a>>2]=349096;Se(a+128|0);uc(a)}function mS(a){a=a|0;return sz(J[J[a>>2]-12>>2]+a|0)|0}function kPa(a){a=a|0;return(J[a+ +4>>2]|J[a+8>>2])!=0|0}function k8(a,b){a=a|0;b=b|0;if(b)kc[J[a+8>>2]](a,b)}function hS(a){a=a|0;return rz(J[J[a>>2]-12>>2]+a|0)|0}function e1a(a){a=a|0;a=J[a+8>>2];return(a?a+26|0:0)|0}function a2a(a){a=a|0;a=J[a+8>>2];return(a?a+69|0:0)|0}function _$a(a,b){a=a|0;b=b|0;return z2(J[a+4>>2],b)|0}function Vs(a,b){var c=0;c=TR(b);J[a+4>>2]=b;J[a>>2]=c}function VNa(a){a=a|0;J[a+40>>2]=J[a+24>>2]+J[a+28>>2]}function RA(a,b,c){a=a|0;b=b|0;c=c|0;J[a>>2]=0;vd(a,0)}function PB(a,b){a=a|0;b=b|0;return E_(J[a+ +12>>2],b)|0}function JR(a,b){a=a|0;b=b|0;kc[J[J[b>>2]+24>>2]](a,b)}function IR(a,b){a=a|0;b=b|0;kc[J[J[b>>2]+28>>2]](a,b)}function FR(a,b){a=a|0;b=b|0;kc[J[J[b>>2]+20>>2]](a,b)}function B9a(a){a=a|0;J[a>>2]=348916;Se(a+116|0);uc(a)}function y9a(a){a=a|0;J[a>>2]=348992;Se(a+92|0);uc(a)}function whb(a,b){a=a|0;b=b|0;if(b)H[b|0]=1;return 0}function vqb(a){a=a|0;return(H[a+11|0]<0?J[a>>2]:a)|0}function u9a(a){a=a|0;J[a>>2]=349044;Se(a+92|0);uc(a)}function t3a(a){a=a|0;Vh(J[a+4>>2]);Nf(J[a>>2]);Nf(a)} +function rs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0}function rqb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0}function rBb(a,b){a=a|0;b=b|0;J[a+12>>2]=J[a+12>>2]+b}function oqa(a){a=a|0;if(H[2794147]<0)uc(J[698534])}function o9a(a){a=a|0;J[a>>2]=349152;Se(a+92|0);uc(a)}function o4a(a){a=a|0;if(H[2772767]<0)uc(J[693189])}function nv(a){var b=0;b=J[a+48>>2];if(b)uc(b);uc(a)}function no(a){var b=0;b=J[a+12>>2];if(b)uc(b);uc(a)}function kS(a){a=a|0;return kc[J[J[a>>2]+24>>2]](a)|0}function jE(a){a=a|0; +return kc[J[J[a>>2]+28>>2]](a)|0}function eg(a,b){a=Dz(a,b);return K[a|0]==(b&255)?a:0}function d5(a){a=a|0;return kc[J[J[a>>2]+12>>2]](a)|0}function aF(a){var b=0;b=J[a+16>>2];if(b)uc(b);uc(a)}function Vla(a){a=a|0;if(H[2794211]<0)uc(J[698550])}function Ula(a){a=a|0;if(H[2794223]<0)uc(J[698553])}function Tla(a){a=a|0;if(H[2794235]<0)uc(J[698556])}function Sla(a){a=a|0;if(H[2794247]<0)uc(J[698559])}function Rla(a){a=a|0;if(H[2794259]<0)uc(J[698562])}function Qla(a){a=a|0;if(H[2794271]<0)uc(J[698565])} +function Pla(a){a=a|0;if(H[2794283]<0)uc(J[698568])}function Nla(a){a=a|0;if(H[2794295]<0)uc(J[698571])}function Mla(a){a=a|0;if(H[2794307]<0)uc(J[698574])}function Lla(a){a=a|0;if(H[2794319]<0)uc(J[698577])}function Kla(a){a=a|0;if(H[2794331]<0)uc(J[698580])}function GR(a){a=a|0;return kc[J[J[a>>2]+16>>2]](a)|0}function $ma(a){a=a|0;if(H[a+31|0]<0)uc(J[a+20>>2])}function wAb(a,b){a=a|0;b=b|0;H[a+2252|0]=1;return 0}function vAb(a,b){a=a|0;b=b|0;H[a+2252|0]=2;return 0}function v4a(a,b,c){a=a|0;b=b| +0;c=c|0;Z3(a+72|0,b,c)}function uEb(a){if(a)return 31-S(a-1^a)|0;return 32}function sMa(a){a=a|0;return J[a+40>>2]-J[a+24>>2]|0}function iKa(a,b,c){a=a|0;b=b|0;c=c|0;jc=-1;return-1}function cqa(a,b){a=a|0;b=b|0;J[J[a+12>>2]+676>>2]=b}function cjb(a){a=a|0;return Wc(L[a+256>>1],ND(a))|0}function Yma(a){a=a|0;return(a|0)==8195|(a&-129)==32}function Ldb(a){a=a|0;J[a>>2]=340624;If(a+8|0);uc(a)}function Kfb(a,b){a=a|0;b=b|0;Dj(b,a+120|0);return 0}function Jfb(a,b){a=a|0;b=b|0;Dj(a+120|0,b);return 0}function $Ab(a){a= +a|0;return J[a+28>>2]+J[a+24>>2]|0}function xlb(a,b){a=a|0;b=b|0;return bm(324464,b)|0}function wlb(a,b){a=a|0;b=b|0;J[a+16>>2]=b;return 0}function wCb(a,b){a=a|0;b=b|0;J[a+84>>2]=2;return 0}function tib(a,b){a=a|0;b=b|0;return bm(329056,b)|0}function rqa(a){a=a|0;Hu(J[a+12>>2]+920|0);return 0}function rQ(a,b){a=a|0;b=b|0;return NF(a,b,Yc(b))|0}function phb(a,b){a=a|0;b=b|0;return bm(333136,b)|0}function nBb(a){a=a|0;return J[a+12>>2]+J[a+8>>2]|0}function kB(a,b,c){return kc[J[a+40>>2]](a,b,0,c)| +0}function jrb(a){a=a|0;return!J[a+4>>2]|K[a+24|0]!=0}function joa(a){a=a|0;Hu(J[a+12>>2]+648|0);return 0}function Zpb(a,b){a=a|0;b=b|0;return bm(252048,b)|0}function Zla(a){a=a|0;return J[a+8>>2]-J[a+4>>2]>>2}function ZP(){var a=0;a=_b(2344,0)|0;jc=gc;return a}function Wpb(a,b){a=a|0;b=b|0;return bm(252304,b)|0}function Rya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Cm(a)}function Rv(a){a=a|0;kc[J[J[a+16>>2]>>2]](a+16|0)|0}function Rlb(a,b){a=a|0;b=b|0;return bm(324352,b)|0}function Qnb(a,b){a=a|0;b=b|0;return bm(260208, +b)|0}function OF(a,b){a=a|0;b=b|0;return uQ(a,b,Yc(b))|0}function Jhb(a,b){a=a|0;b=b|0;return bm(331024,b)|0}function I7a(a){a=a|0;a=J[a+12>>2];if(a)uc(N4(a))}function HF(a,b){a=a|0;b=b|0;return oQ(a,b,bf(b))|0}function Bnb(a,b){a=a|0;b=b|0;return bm(260848,b)|0}function $gb(a,b){a=a|0;b=b|0;return bm(334032,b)|0}function zTa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+36>>2]=2}function wKa(a,b){a=a|0;b=b|0;return yZ(a-4|0,b)|0}function vUa(a){a=a|0;return xc(vc(1576),a,1576)|0}function ov(a){var b=0;b=J[a>>2]; +if(b)uc(b);uc(a)}function ola(a,b){a=a|0;b=b|0;return a-48>>>0<10|0}function G1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,11)}function F1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,16)}function E1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,17)}function D1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,18)}function BKa(a,b){a=a|0;b=b|0;return AZ(a-4|0,b)|0}function BD(a,b){a=a|0;b=b|0;Dj(a+52|0,b);return 0}function B1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,19)}function ATa(a,b,c){a=a|0;b=b|0;c=c|0;J[a+36>>2]=1}function AM(a,b){a=a|0;b= +b|0;Dj(a+48|0,b);return 0}function tha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797448))}function sha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797456))}function rdb(a){a=a|0;Fd(J[a>>2]);J[J[a>>2]>>2]=0}function pha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797652))}function oha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797644))}function nl(a,b){a=a|0;b=b|0;return RR(a)^RR(b)^1}function nha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797660))}function lha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797668))}function kha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797676))}function jha(a,b){a=a|0;b= +b|0;ng(a,b,ag(2797692))}function iha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797684))}function hha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797700))}function h0(a,b){a=a|0;b=b|0;return Pe(a+8|0,b)|0}function gpb(a){a=a|0;kc[J[J[a+552>>2]+28>>2]](a)}function gk(a,b){a=a|0;b=b|0;return PR(a)^PR(b)^1}function eha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797708))}function cha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797716))}function bha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797464))}function aha(a,b){a=a|0;b=b|0;ng(a,b,ag(2797472))}function _ga(a,b){a=a|0;b=b| +0;ng(a,b,ag(2797488))}function Zqa(a,b){a=a|0;b=b|0;J[b>>2]=18;return 0}function Yga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797528))}function YLa(a,b,c){a=a|0;b=b|0;c=c|0;ae(b,1,c,a)}function Xga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797536))}function Wga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797544))}function Vga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797552))}function Tga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797560))}function Rga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797568))}function R1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,1)}function Pga(a,b){a=a|0;b=b|0; +ng(a,b,ag(2797576))}function Nga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797584))}function Mga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797496))}function M1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,2)}function Lxb(a){a=a|0;return P(P(a,85)&255,257)|0}function Lga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797504))}function L1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,3)}function K1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,4)}function Jxb(a){a=a|0;return P(P(a,17)&255,257)|0}function Jga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797512))}function J1a(a,b,c){a=a|0;b=b|0; +c=c|0;Kl(a,b,c,5)}function Ig(a,b,c){return Cz(a,b,c,-2147483648,0)}function I1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,6)}function Hga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797520))}function H1a(a,b,c){a=a|0;b=b|0;c=c|0;Kl(a,b,c,8)}function Fga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797592))}function Ega(a,b){a=a|0;b=b|0;ng(a,b,ag(2797600))}function $ga(a,b){a=a|0;b=b|0;ng(a,b,ag(2797480))}function zZ(a,b){a=a|0;b=b|0;return M[b>>2]>11|0}function xi(a,b,c,d){Xk(a,b,c,K[a+200|0]==219,d)}function xUa(a,b){a=a|0;b=b|0;J[a+12>> +2]=J[b>>2]}function wOa(a){a=a|0;Cc(7,-1,776523,0);return-1}function kYa(a){a=a|0;if(J[a+16>>2])bB(a+16|0)}function ina(a){a=a|0;J[a>>2]=2443504;return a|0}function hCa(a,b){a=a|0;b=b|0;return P(b,44)+a|0}function bna(a){a=a|0;J[a>>2]=2443812;return a|0}function bEa(a,b){a=a|0;b=b|0;return P(b,68)+a|0}function _pa(a,b){a=a|0;b=b|0;J[b>>2]=8;return 0}function Yib(a,b,c){a=a|0;b=b|0;c=c|0;return b|0}function Ydb(a){a=a|0;return+O[J[a+16>>2]+16>>3]}function Xza(a,b){a=a|0;b=b|0;J[a+12>>2]=(b|0)%4}function Xib(a, +b,c){a=a|0;b=b|0;c=c|0;return c|0}function XKa(a){a=a|0;return J[J[a+16>>2]+36>>2]}function Whb(a,b){a=a|0;b=b|0;return Y5(a,0,0)|0}function WS(a,b){a=zG(a,b)+a|0;return K[a|0]?a:0}function Ona(a){a=a|0;J[a>>2]=2441796;return a|0}function Nya(a,b){a=a|0;b=b|0;return P(b,24)+a|0}function Mra(a,b){a=a|0;b=b|0;return P(b,20)+a|0}function Mna(a){a=a|0;J[a>>2]=2441916;return a|0}function Lkb(a,b){a=a|0;b=b|0;J[b>>2]=0;return 0}function KNa(a){a=a|0;Cc(7,-1,808335,0);return 0}function Jna(a){a=a|0;J[a>> +2]=2442036;return a|0}function Hna(a){a=a|0;J[a>>2]=2442156;return a|0}function Dna(a){a=a|0;J[a>>2]=2442544;return a|0}function zt(a,b){a=a|0;b=b|0;return P(b,28)+a|0}function vDb(a){a=a|0;a=J[a+28>>2];if(a)uc(a)}function tz(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function tfb(a,b){a=a|0;b=b|0;J[a+4>>2]=J[b>>2]}function rFa(a){a=a|0;J[a+24>>2]=0;J[a+16>>2]=0}function pEb(a){a=a|0;return(J[a+12>>2]<<1)+4|0}function n0a(a,b){a=a|0;b=b|0;return J[b+12>>2]}function mua(a,b){a=a|0;b=b|0;J[a>>2]=0;vd(a,b)} +function iw(a,b){a=a|0;b=b|0;return P(b,12)+a|0}function gla(a){a=a|0;J[698644]=a-1;J[698645]=0}function gX(a,b){a=a|0;b=b|0;return P(b,40)+a|0}function fr(a,b){a=a|0;b=b|0;nz(a,J[a+16>>2]|b)}function eDb(a){a=a|0;a=J[a+52>>2];if(a)uc(a)}function d2a(a,b){a=a|0;b=b|0;J[a+8>>2]=J[b>>2]}function ch(a,b){if(!b)return 0;return fe(a,b)}function bEb(a){a=a|0;return Yc(J[a+12>>2])+1|0}function Zdb(a){a=a|0;return+O[J[a+16>>2]+8>>3]}function Y8a(a,b){a=a|0;b=b|0;J[b>>2]=J[a+8>>2]}function Xba(a){a=a|0;a= +J[a+16>>2];if(a)uc(a)}function Wba(a){a=a|0;a=J[a+12>>2];if(a)uc(a)}function VFa(a){a=a|0;return J[J[a+4>>2]+16>>2]}function TF(a,b,c,d){a=Cz(a,b,c,-1,-1);return a}function Rza(a,b){a=a|0;b=b|0;return P(b,3)+a|0}function Rh(a){J[a>>2]=0;H[J[a+4>>2]]=0;Bh(a,0)}function QH(a,b){a=a|0;b=b|0;return P(b,56)+a|0}function Mq(a,b){if(!(!a|!b))xE(J[a+16>>2],b)}function L5a(a,b){a=a|0;b=b|0;H[a+164|0]=K[b|0]}function JNa(a,b){a=a|0;b=b|0;Cc(7,-1,808771,0)}function Inb(a,b,c){a=a|0;b=b|0;c=c|0;return 12}function Hba(a){a= +a|0;a=J[a+24>>2];if(a)uc(a)}function H8a(a){a=a|0;return J[J[a+8>>2]+12>>2]}function G8a(a){a=a|0;return J[J[a+8>>2]+16>>2]}function EVa(a){a=a|0;return J[J[a+32>>2]+8>>2]}function r7a(a){a=a|0;a=fc-16|0;fc=a;fc=a+16|0}function r0a(a,b){a=a|0;b=b|0;return K2(a,b)|0}function pi(a,b,c){if(!(K[a|0]&32))Lz(b,c,a)}function nza(a,b){a=a|0;b=b|0;return(b<<1)+a|0}function lBb(a,b){a=a|0;b=b|0;H[a+40|0]=K[b|0]}function jF(a){a=a|0;a=J[a+20>>2];if(a)uc(a)}function gT(a){a=a|0;if(!(a&1))uc(a);return 0}function YCa(a, +b){a=a|0;b=b|0;return(b<<5)+a|0}function Xja(a){a=a|0;WR(J[J[a>>2]-12>>2]+a|0)}function X_(a,b){xc(J[a>>2],J[b>>2],J[a+4>>2])}function Vja(a){a=a|0;VR(J[J[a>>2]-12>>2]+a|0)}function EH(a,b){a=a|0;b=b|0;J[a>>2]=0;vd(a,0)}function C8(a){a=a|0;J[a+16>>2]=0;J[a+20>>2]=0}function BV(a,b){a=a|0;b=b|0;AV(a,b,5632,5633)}function $n(a,b){J[a>>2]=349612;return j5(a,b)}function yla(a){a=a|0;return Ma(J[a+60>>2])|0}function xEb(a,b,c,d){a=tEb(a,b,c,d);return a}function vG(a,b,c){return wG(a,b,c,6733,6734)}function pva(a){a= +a|0;return fg(J[a+12>>2])|0}function lS(a){a=a|0;nG(J[J[a>>2]-12>>2]+a|0)}function gtb(a){a=a|0;return J[a+960>>2]!=0|0}function gS(a){a=a|0;lG(J[J[a>>2]-12>>2]+a|0)}function aW(a,b){a=a|0;b=b|0;return(b<<3)+a|0}function Zpa(a){a=a|0;return Zz(J[a+12>>2])|0}function Y_(a,b,c){return L$(J[a+428>>2],b,c)}function YN(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function Tg(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function Syb(a){a=a|0;return J[a+964>>2]!=0|0}function Pwa(a){a=a|0;return(K[a+56|0]?4:1)|0}function PH(a, +b){a=a|0;b=b|0;return(b<<4)+a|0}function Oxb(a){a=a|0;return P(0-a&255,257)|0}function Ky(a,b,c){a=a|0;b=b|0;c=c|0;return-1}function Hwa(a){a=a|0;return(K[a+64|0]?5:3)|0}function CAb(a,b){a=a|0;b=b|0;return baa(a)|0}function A7a(a){a=a|0;return+O[J[a>>2]+24>>3]}function $W(a,b){a=a|0;b=b|0;return(b<<2)+a|0}function zjb(a){a=a|0;J[a+64>>2]=40;return 0}function zMa(a){a=a|0;return J[J[a+8>>2]>>2]}function z0a(a,b){a=a|0;b=b|0;return pg(b)|0}function wga(a){a=a|0;kc[J[J[a>>2]+4>>2]](a)}function u0a(a, +b){a=a|0;b=b|0;return IG(b)|0}function tka(a){a=a|0;return yn(a,2797472)|0}function sHa(a){a=a|0;bg(a+4|0);return a-8|0}function s4a(a,b){a=a|0;b=b|0;return Dc(b)|0}function lib(a){a=a|0;J[J[a+156>>2]+36>>2]=0}function kaa(a){H[a+1124|0]=0;up(a);return 0}function feb(a){a=a|0;return J[a+16>>2]+56|0}function eeb(a){a=a|0;return J[a+16>>2]+52|0}function dpb(a){a=a|0;return J[a+8>>2]>>>9&1}function aeb(a){a=a|0;return J[a+16>>2]+44|0}function Xw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0}function UDa(a){a=a|0; +if(a)Zi(J[a+180>>2])}function KIa(a){a=a|0;return J[J[a+4>>2]>>2]}function Jbb(a){a=a|0;J[J[a+480>>2]+28>>2]=1}function G2(a,b,c){return zx(a,b,8,15,8,0,c)}function Cja(){return(J[J[698634]>>2]?4:1)|0}function $La(a){a=a|0;return J[J[a>>2]+8>>2]}function zAa(a,b){a=a|0;b=b|0;J[a+132>>2]=b}function xWa(a){a=a|0;gK(2773824,J[693457])}function vWa(a){a=a|0;fK(2773836,J[693460])}function uHa(a){a=a|0;bg(a+12|0);return a|0}function tYa(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d}function t6a(a,b){a=a|0;b=b|0;J[a+172>> +2]=b}function pqa(a){a=a|0;Ml(2794124,J[698532])}function mG(a){a=a|0;return yn(a,2797652)|0}function kG(a){a=a|0;return yn(a,2797644)|0}function hna(a){a=a|0;J[a>>2]=2443504;uc(a)}function hPa(a){a=a|0;return J[a+8>>2]!=5|0}function ef(a){if(!a)return 0;return Dc(a)}function e0a(a){a=a|0;Ml(2773408,J[693353])}function dr(a){a=a|0;bS(J[a>>2]);return a|0}function cG(a){a=a|0;return yn(a,2797708)|0}function bZa(a,b){a=a|0;b=b|0;J[a+164>>2]=b}function ana(a){a=a|0;J[a>>2]=2443812;uc(a)}function YR(a){a= +a|0;return yn(a,2797660)|0}function Xs(a){a=a|0;jS(J[a>>2]);return a|0}function VBb(a,b){a=a|0;b=b|0;J[a+332>>2]=b}function U4a(a){a=a|0;Ml(2772720,J[693181])}function QZa(a,b){a=a|0;b=b|0;J[a+468>>2]=b}function O$a(a){a=a|0;Ml(2773420,J[693356])}function Nna(a){a=a|0;J[a>>2]=2441796;uc(a)}function Nma(a){a=a|0;Uz(2794180,J[698546])}function Nfb(a){a=a|0;J[J[a+456>>2]>>2]=298}function N8a(a){a=a|0;return Q(N[a+284>>2])}function Kna(a){a=a|0;J[a>>2]=2441916;uc(a)}function Ina(a){a=a|0;J[a>>2]=2442036; +uc(a)}function HRa(a,b){a=a|0;b=b|0;J[b>>2]=65536}function Gna(a){a=a|0;J[a>>2]=2442156;uc(a)}function Ffa(a,b){a=a|0;b=b|0;gs(a,2634224)}function Dfa(a,b){a=a|0;b=b|0;gs(a,2634244)}function Cna(a){a=a|0;J[a>>2]=2442544;uc(a)}function BQa(a,b){a=a|0;b=b|0;J[a+336>>2]=b}function AQa(a,b){a=a|0;b=b|0;J[a+408>>2]=b}function $F(a){a=a|0;return yn(a,2797716)|0}function zDa(a,b){a=a|0;b=b|0;return a+b|0}function z4a(a,b){a=a|0;b=b|0;X3(a+72|0,b)}function yAa(a,b){a=a|0;b=b|0;H[a+136|0]=b}function wBb(a, +b){a=a|0;b=b|0;H[a+493|0]=b}function lJa(a){a=a|0;return YY(J[a>>2])|0}function keb(a,b){a=a|0;b=b|0;Ux(b,a+88|0)}function kJa(a){a=a|0;return ZY(J[a>>2])|0}function job(a,b){a=a|0;b=b|0;Hq(a+20|0,b)}function jeb(a,b){a=a|0;b=b|0;Ux(a+88|0,b)}function jCa(a,b){a=a|0;b=b|0;J[a+84>>2]=b}function frb(a,b){a=a|0;b=b|0;J[a+16>>2]=b}function Vq(a){a=a|0;return J[a+4>>2]!=0|0}function M$a(a){a=a|0;J[a>>2]=0;return a|0}function Jfa(a,b){a=a|0;b=b|0;XF(a,b+12|0)}function JBb(a,b){a=a|0;b=b|0;H[a+492|0]=b} +function J5a(a,b){a=a|0;b=b|0;J[a+20>>2]=b}function Ifa(a,b){a=a|0;b=b|0;XF(a,b+16|0)}function Bl(a,b){vm(J[a>>2],J[a+8>>2],4,b)}function B7a(a){a=a|0;return+O[J[a>>2]>>3]}function yUa(a){a=a|0;return J[a+2984>>2]}function wD(a,b){a=a|0;b=b|0;Dj(a+20|0,b)}function vKa(a){a=a|0;H[a+8|0]=1;return 0}function uUa(a){a=a|0;return J[a+1568>>2]}function uKa(a){a=a|0;H[a+8|0]=0;return 0}function sz(a){a=a|0;bg(a+8|0);return a|0}function sUa(a){a=a|0;return J[a+1064>>2]}function rz(a){a=a|0;bg(a+4|0);return a| +0}function rHa(a){a=a|0;bg(a+4|0);uc(a-8|0)}function qUa(a){a=a|0;return J[a+1576>>2]}function jX(a,b){a=a|0;b=b|0;Eo(a,b+12|0)}function iCa(a,b){a=a|0;b=b|0;H[a+88|0]=b}function hh(a,b,c){return Ev(a,b,b>>31,c)}function aE(a,b,c,d){return d8(a,b,c,d,1)}function VK(a,b,c,d){return sx(a,b,c,0,d)}function IQa(a){a=a|0;return J[a+128>>2]}function Hka(a){a=a|0;return!J[a+16>>2]|0}function Gfa(a,b){a=a|0;b=b|0;_j(a,13368)}function Efa(a,b){a=a|0;b=b|0;_j(a,13688)}function AG(a,b){of(Yc(a)+a|0,b);return a} +function zxb(a){a=a|0;return a<<12&61440}function y$a(a){a=a|0;return PC(a-8|0)|0}function rDb(a){a=a|0;return J[a+368>>2]}function r6a(a){a=a|0;return J[a+172>>2]}function qob(a){a=a|0;J7(J[a>>2],a+28|0)}function pk(a,b){return Pw(J[a+24>>2],b)}function p5a(a){a=a|0;return J[a+256>>2]}function oGa(a){a=a|0;return!J[a+4>>2]|0}function o5a(a){a=a|0;return J[a+260>>2]}function njb(a){a=a|0;r6(a);H[a+112|0]=0}function n5a(a){a=a|0;return J[a+264>>2]}function m5a(a){a=a|0;return J[a+268>>2]}function bLa(a){a= +a|0;return qB(a-4|0)|0}function Zib(a){a=a|0;return L[a+256>>1]}function Rxb(a){a=a|0;return(a<<1|a)&255}function Qxb(a){a=a|0;return P(a,15)&255}function Mxb(a){a=a|0;return P(a,85)&255}function Lwa(a){a=a|0;return J[a+100>>2]}function Kxb(a){a=a|0;return P(a,17)&255}function Kwa(a){a=a|0;return J[a+104>>2]}function KLa(a){a=a|0;return J[a+216>>2]}function I5a(a){a=a|0;return+O[a+128>>3]}function GQa(a){a=a|0;return J[a+132>>2]}function G5a(a){a=a|0;return J[a+140>>2]}function FQa(a){a=a|0;return J[a+ +376>>2]}function F5a(a){a=a|0;return J[a+144>>2]}function Exb(a){a=a|0;return a<<15&32768}function Ewa(a){a=a|0;return J[a+124>>2]}function EQa(a){a=a|0;return J[a+380>>2]}function E5a(a){a=a|0;return J[a+148>>2]}function D5a(a){a=a|0;return J[a+152>>2]}function Bz(a,b,c){return Cz(a,b,c,-1,0)}function Bxb(a){a=a|0;return a<<14&49152}function $na(a){a=a|0;return+O[a+424>>3]}function yba(a){a=a|0;return J[a+52>>2]}function xOa(a){a=a|0;return J[a+60>>2]}function vR(a,b){a=a|0;b=b|0;ER(a,1,45)}function uR(a, +b){a=a|0;b=b|0;YF(a,1,45)}function uG(a,b,c){return wG(a,b,c,0,0)}function qCb(a){a=a|0;return J[a+44>>2]}function n4(a){a=a|0;return J[a+168>>2]}function lP(a){a=a|0;return J[a+364>>2]}function l4(a){a=a|0;return J[a+136>>2]}function hCb(a){a=a|0;return L[a+26>>1]}function dv(a,b,c){return Nq(255,a,b,c)}function bCb(a){a=a|0;return K[a+348|0]}function a7a(a){a=a|0;return+O[a+48>>3]}function ZVa(a){a=a|0;return J[a+32>>2]}function YAa(a,b){a=a|0;b=b|0;yW(a,b,1)}function WK(a,b,c){return sx(a,b,0, +0,c)}function TCb(a){a=a|0;return J[a+68>>2]}function Nxb(a){a=a|0;return P(a,5)&255}function Nwa(a){a=a|0;return J[a+92>>2]}function Mwa(a){a=a|0;return J[a+96>>2]}function J3(a,b){a=a|0;b=+b;O[a+8>>3]=b}function Ixb(a){a=a|0;return P(a,257)|0}function IS(a,b,c){tm(a,2147483647,b,c)}function DB(a,b){a=a|0;b=b|0;return b|0}function ABb(a){a=a|0;return K[a+492|0]}function tHa(a){a=a|0;bg(a+12|0);uc(a)}function rD(a){a=a|0;return J[a+24>>2]}function pe(a,b){J[a+168>>2]=b;PN(a,1)}function ol(a,b){return lT(-100, +a,b,0)}function ln(a){a=a|0;return J[a+12>>2]}function iP(a){a=a|0;return J[a+20>>2]}function gz(a){a=a|0;return 2147483647}function XZa(a){a=a|0;kc[J[663199]](a)}function T9(a){a=a|0;return J[a+48>>2]}function SB(a,b){a=a|0;b=b|0;J[b>>2]=0}function Qya(a,b,c){a=a|0;b=b|0;c=Q(c)}function Jo(a){a=a|0;return J[a+16>>2]}function Ji(a){Ac(J[a>>2],0,J[a+4>>2])}function Gob(a,b){a=a|0;b=b|0;return 7}function EF(a,b){a=a|0;b=b|0;GF(a,b,0)}function Dm(a){return hV(a,J[a+72>>2])}function CB(a){a=a|0;return J[a+ +28>>2]}function xp(a){a=a|0;return J[a+4>>2]}function tKa(a,b){a=a|0;b=+b;return 1}function nF(a,b){a=a|0;b=b|0;ra();B()}function mv(a,b){a=a|0;b=b|0;return-1}function inb(a){a=a|0;vh(a,J[a+8>>2])}function iA(a){a=J[a>>2];if(a)uc(a)}function hA(a,b){a=a|0;b=b|0;return 1}function fV(){Xi(2395279);J[698530]=0}function dQ(a,b){a=a|0;b=b|0;ra();B()}function Un(a,b,c){return Bf(a,b,c,0)}function QD(a){a=a|0;return kd(1,a)|0}function Ly(a){a=a|0;return J[a+8>>2]}function Lfa(a){a=a|0;return H[a+8|0]}function Le(a, +b){a=a|0;b=b|0;return 0}function Kfa(a){a=a|0;return H[a+9|0]}function Hxb(a){a=a|0;return a<<1&254}function Gxb(a){a=a|0;return a<<3&248}function Fxb(a){a=a|0;return a<<7&128}function Dxb(a){a=a|0;return a<<2&252}function Cxb(a){a=a|0;return a<<6&192}function Axb(a){a=a|0;return a<<4&240}function AJ(a,b){return Pw(J[a>>2],b)}function $Wa(a,b){a=a|0;b=b|0;Uw(a,b)}function xz(a,b,c){wo(b,c);vz(a,b,c)}function wS(a,b,c,d,e){vS(a,b,c,d,e)}function uYa(a,b,c){a=a|0;b=b|0;c=+c}function rjb(a){a=a|0;ve(J[a+ +24>>2])}function li(a,b,c){a=a|0;b=b|0;c=c|0}function kta(a){a=a|0;return J[a>>2]}function k_(a,b){a=a|0;b=b|0;Bd(a,b)}function ceb(a){a=a|0;Mu(J[a+16>>2])}function ala(a){a=a|0;return $s(a)|0}function Vlb(a){a=a|0;return a+100|0}function Ulb(a){a=a|0;return a+112|0}function Tlb(a){a=a|0;return a+140|0}function Sja(a){a=a|0;return vc(a)|0}function R6a(a){a=a|0;qE(334636);B()}function Pxb(a){a=a|0;return 0-a&255}function Iwa(a){a=a|0;return 2390543}function Fwa(a){a=a|0;return 2423668}function ylb(a, +b){a=a|0;b=b|0;uc(a)}function yX(a){a=a|0;return nd(a)|0}function yOa(a){a=a|0;return a+16|0}function x$a(a){a=a|0;uc(PC(a-8|0))}function tG(a,b,c){wG(a,b,c,6733,0)}function qj(a){a=a|0;$k(226909);B()}function qR(a){return yn(a,2797536)}function pR(a){return yn(a,2797528)}function pD(a){a=a|0;$k(334796);B()}function onb(a){a=a|0;$k(46373);B()}function nj(a){a=a|0;$k(340424);B()}function mdb(a){a=a|0;return a+52|0}function mR(a){return yn(a,2797552)}function m5(a){a=a|0;$k(340800);B()}function lR(a){return yn(a, +2797544)}function h8(a,b,c){return dd(a,b,c)}function fu(a){a=a|0;$k(853771);B()}function e2(a,b){return Bf(a,b,0,0)}function bC(a){a=a|0;qE(853714);B()}function Yw(a){a=a|0;$k(819714);B()}function V1(a,b){return kx(a,b,0,1)}function V0a(a){a=a|0;return 735088}function R$(a){a=a|0;return ih(a)|0}function OR(a){a=a|0;return wF(a)|0}function Iaa(a){a=a|0;return a+72|0}function Fg(a){a=a|0;$k(334636);B()}function D4a(a){a=a|0;return a+28|0}function $Ka(a){a=a|0;uc(qB(a-4|0))}function uT(a){Pz(J[a+8>> +2]);uc(a)}function ll(a,b){a=a|0;b=b|0;Ze(a)}function as(a){a=a|0;qE(12956);B()}function _d(a){a=a|0;$k(12956);B()}function YZa(a){a=a|0;if(a)a2(a)}function Pda(a){a=a|0;return 17767}function Oda(a){a=a|0;return 11058}function C7(a,b){a=a|0;b=b|0;uc(b)}function yxb(a){a=a|0;return a<<8}function ofa(a){a=a|0;jd(2797772)}function o7a(a){a=a|0;A4(a);uc(a)}function my(a){a=a|0;qE(4758);B()}function lfa(a){a=a|0;df(2797788)}function kxa(a){a=a|0;wc(2775588)}function jka(a){a=a|0;Ws(a);uc(a)}function jfa(a){a= +a|0;jd(2797804)}function i4a(a){a=a|0;De(a);uc(a)}function hfa(a){a=a|0;df(2797820)}function gga(a){a=a|0;_Q(a);uc(a)}function ffa(a){a=a|0;jd(2797836)}function eh(a){a=a|0;$k(4758);B()}function dfa(a){a=a|0;df(2797852)}function b7a(a){a=a|0;y4(a);uc(a)}function afa(a){a=a|0;jd(2797868)}function _la(a){a=a|0;qi(a);uc(a)}function _ea(a){a=a|0;df(2797884)}function Yfa(a){a=a|0;iR(a);uc(a)}function X6a(a){a=a|0;v4(a);uc(a)}function TBb(a){a=a|0;J[a+4>>2]=2}function Qja(a){a=a|0;return 9589}function Qda(a){a= +a|0;return 6596}function Nfa(a){a=a|0;RQ(a);uc(a)}function Nda(a){a=a|0;return 2161}function Mka(a){a=a|0;uz(a);uc(a)}function Mfa(a){a=a|0;QQ(a);uc(a)}function Mc(a){a=a|0;if(a)uc(a)}function Lja(a){a=a|0;gG(a);uc(a)}function Kxa(a){a=a|0;wc(2775540)}function Jza(a){a=a|0;id(2774960)}function Jxa(a){a=a|0;wc(2775552)}function Ila(a){a=a|0;uj(a);uc(a)}function Hxa(a){a=a|0;wc(2775564)}function Gxa(a){a=a|0;wc(2775576)}function GCa(a){a=a|0;wc(2774908)}function FM(a){a=a|0;return a+8|0}function FCa(a){a= +a|0;wc(2774920)}function E7a(a){a=a|0;If(a);uc(a)}function Dka(a){a=a|0;ai(a);uc(a)}function B8a(a){a=a|0;ij(a);uc(a)}function B8(a){a=a|0;J[a+16>>2]=0}function Aga(a){a=a|0;bR(a);uc(a)}function $ua(a){a=a|0;Md(2794088)}function xS(a,b,c,d){tS(a,b,c,d)}function kQ(a,b,c,d){fQ(a,b,c,d)}function hd(a){uc(J[J[a>>2]>>2])}function hG(a){a=a|0;wF(a);uc(a)}function Xy(a){a=a|0;$P(a);uc(a)}function z5a(a){a=a|0;uc(h4(a))}function z$a(a){a=a|0;uc(PC(a))}function y6a(a){a=a|0;uc(Fx(a))}function wza(a){a=a| +0;uc(bW(a))}function wma(a){a=a|0;uc(OT(a))}function vXa(a){a=a|0;uc(eu(a))}function uBa(a){a=a|0;uc(EW(a))}function tn(a,b,c){cd(a,b,c<<2)}function tFa(a){a=a|0;uc(gI(a))}function tBa(a){a=a|0;uc(DW(a))}function t4a(a){a=a|0;uc(jD(a))}function rsa(a){a=a|0;uc(gV(a))}function rma(a){a=a|0;uc(LT(a))}function po(a){return Xg(a,0,0)}function pQa(a){a=a|0;uc(T_(a))}function nEa(a){a=a|0;uc(nX(a))}function mBa(a){a=a|0;Gm(CW(a))}function lEb(a){a=a|0;return 12}function kma(a){a=a|0;uc(ET(a))}function kFa(a){a= +a|0;uc(zX(a))}function iza(a){a=a|0;uc(_V(a))}function iLa(a){a=a|0;uc(FZ(a))}function hz(a){a=a|0;return 127}function hQa(a){a=a|0;uc(S_(a))}function aLa(a){a=a|0;uc(qB(a))}function Yh(a,b){return fe(a,b)}function YMa(a){a=a|0;uc(n_(a))}function Uma(a){a=a|0;uc(_T(a))}function UBa(a){a=a|0;Gm(LW(a))}function Qn(a,b){return jk(a,b)}function QMa(a){a=a|0;uc(j_(a))}function QIa(a){a=a|0;uc(fY(a))}function PVa(a){a=a|0;uc(s0(a))}function N$a(a){a=a|0;uc(v2(a))}function Mgb(a){a=a|0;uc(T5(a))}function MSa(a){a= +a|0;uc(s$(a))}function LWa(a){a=a|0;uc(B0(a))}function Kdb(a){a=a|0;uc(M5(a))}function KEa(a){a=a|0;uc(uX(a))}function I6a(a){a=a|0;uc(Ix(a))}function HZa(a){a=a|0;uc(eC(a))}function Gg(a){a=a|0;return a|0}function GSa(a){a=a|0;uc(r$(a))}function FUa(a){a=a|0;uc(D$(a))}function Edb(){return J[693078]}function EOa(a){a=a|0;uc(u_(a))}function Dob(a){a=a|0;uc(ip(a))}function DLa(a){a=a|0;uc(MZ(a))}function Bmb(a){a=a|0;uc(f7(a))}function yf(a,b){Js(a,b,bf(b))}function qS(){return(ac()|0)>0}function nG(a){a= +a|0;uc(sz(a))}function lK(a){a=a|0;uc(Ch(a))}function lG(a){a=a|0;uc(rz(a))}function dea(){dQ(29451,0);B()}function d2(a,b,c){su(a,b,c,0)}function _H(a){a=a|0;uc(nd(a))}function WR(a){a=a|0;uc(fD(a))}function VR(a){a=a|0;uc(gD(a))}function PQ(a){a=a|0;uc(UF(a))}function Mw(a){a=a|0;return 10}function H0(a){a=a|0;uc(Tm(a))}function zla(){return 2794332}function we(a){a=a|0;return 1}function tJ(a){a=a|0;return 5}function sZ(){$k(2183713);B()}function sJ(a){a=a|0;return 6}function rJ(a){a=a|0;return 7} +function qg(a){return Bv(a,0)}function qJ(a){a=a|0;return 8}function i2(a){return qx(a,0)}function fB(){return Ge(1,36)}function cp(a){a=a|0;return 4}function cC(a){a=a|0;return 9}function _p(a){a=a|0;return 3}function Zn(a){a=a|0;return 2}function Xd(a){a=a|0;return 0}function TR(a){return SR(a,1)}function Qba(a,b){xc(b,a,104)}function Lw(a){a=a|0;return-1}function Gja(){return 2629556}function Fja(){return 2631104}function Dv(a){return Kp(1,a)}function wz(a,b,c){oG(a,b,c)}function un(a,b,c){cd(a, +b,c)}function dR(a){HQ(a,J[a>>2])}function _B(a,b,c){hh(a,b,c)}function Ue(a,b,c){xc(a,b,c)}function Td(a,b){a=a|0;b=b|0}function Sg(a,b,c){Ac(a,b,c)}function geb(a){a=a|0;fs(a)}function Qna(){$k(4758);B()}function Ska(a){a=a|0;gc=a}function Re(a,b){Ac(a,0,b)}function Mda(){return fc|0}function Lda(a){a=a|0;fc=a}function $d(a){a=a|0;uc(a)}function dA(a){An(a+88|0)}function C1(a){Xo(a,3345)}function zf(a,b){OF(a,b)}function uv(a,b){NQ(a,b)}function Wh(a){a=a|0;B()}function WIa(){return 0}function Uxa(){Na(); +B()}function iS(a){nz(a,0)}function Ie(a){zh(a,0)}function bg(a){gG(a)}function Jf(a){a=a|0}function qha(){$Q()}function _8(){}e=K;p(q);var kc=c([null,Dqb,zBb,h4a,vc,xf,xp,fya,nqb,sEb,tp,yBb,ywa,yca,uF,Ve,yrb,B3,UDb,OE,VDa,C3,eCb,cBa,mqb,Jj,ko,Sja,g4a,jkb,ln,_j,Gg,_ab,$P,S_a,bJa,m9a,rB,A3,$3a,B3,e4a,c4a,b4a,cPa,Z4,k4,OO,$D,bN,lFa,Grb,Brb,krb,Dza,Vea,$d,Dda,mf,Bq,oAb,Jf,Qjb,Xzb,Lzb,Azb,uzb,lzb,azb,OM,Dib,vib,Xq,fCb,bCb,X5,ghb,Bi,nn,lP,Yq,Pq,AO,iP,yba,Ygb,aib,nf,ys,$d,sl,of,OM,g0a,Jo,B$a,v$a,J$a,u$a, +rDb,t$a,o$a,$$a,OP,hda,Vq,Iaa,mF,HQa,Ad,mMa,jQa,AKa,brb,rNa,arb,yQa,zO,S9,Rq,iwb,cZ,gl,xKa,rKa,jP,Syb,mm,vQa,yh,rQa,MEa,yEa,KDa,$qb,_qb,hCb,qEa,qCb,mP,hI,fI,CX,xO,T9,Hg,BO,fl,cFa,GEa,kn,VEa,bk,Ysb,nyb,vp,UE,KO,FO,HP,TCb,gtb,btb,rtb,jn,oxb,Gsb,yy,Oy,lla,Qq,Su,Gy,Ij,Mwb,cyb,dw,H8,D8,Dpb,Xd,jE,Tg,li,e8,H8,we,D8,wBb,rF,xp,$ba,R7,a9,O7,FDb,LP,xob,Unb,Hy,gCb,ABb,kBb,z7,ck,iN,JBb,onb,Pd,p7,VBb,oba,xy,$j,Uq,prb,pP,Maa,qmb,we,we,lmb,kmb,imb,amb,Xd,Slb,Nlb,QD,ylb,we,olb,glb,e8,jE,zCa,jva,Lta,csa,Lqa,Roa,Lna, +Qma,Fla,ila,Rka,ika,Xia,Nha,kga,ko,ko,ko,ko,ko,ko,ko,ko,ko,HAb,zAb,lo,bsb,Srb,Arb,zrb,wrb,Vq,jrb,irb,grb,erb,crb,Tg,gqb,$pb,ip,Dob,f7,Bmb,li,li,Hkb,zkb,pkb,ikb,_jb,yjb,qjb,jjb,ajb,Rib,Chb,rhb,Nfb,S5,sfb,kfb,$eb,Qeb,Feb,web,deb,IM,Qdb,Idb,Bdb,wdb,ndb,H5,C5,cdb,Qx,Qcb,Jf,Kcb,ucb,jcb,_bb,Zbb,Tbb,Jbb,Bbb,ibb,Zab,Jf,Qab,Gab,eab,W9a,M9a,H9a,x9a,Jf,l9a,a9a,T8a,J8a,D8a,C8a,u8a,q8a,i8a,e8a,b8a,X7a,T7a,K7a,G7a,C7a,z7a,F3a,L3a,R3a,Z3a,f4a,m4a,q4a,w3a,q3a,m3a,h3a,e3a,V2a,N2a,F2a,w2a,n2a,c2a,V1a,N1a,C1a,r1a,k1a, +$0a,S0a,O0a,K0a,C0a,v0a,s0a,A3a,w7a,t7a,l7a,c7a,Y6a,Q6a,J6a,B6a,s6a,i6a,_5a,H5a,A5a,e5a,W4a,N4a,J4a,F4a,Xd,u4a,g$a,b$a,Y_a,Jf,K_a,E_a,x_a,w_a,v_a,u_a,q_a,p_a,o_a,k_a,f_a,e_a,b_a,WZa,Jf,VZa,UZa,TZa,SZa,RZa,PZa,KZa,FZa,AZa,pZa,GUa,PUa,TUa,$Ua,cVa,dVa,hVa,nUa,gUa,YTa,OTa,DTa,tTa,jTa,_Sa,USa,SSa,LSa,BSa,wSa,rSa,iSa,ZRa,ORa,DRa,sRa,lRa,dRa,XQa,PQa,lVa,LQa,KQa,wUa,hZa,YYa,M0,IYa,xYa,nYa,eYa,_Xa,XXa,AXa,sXa,lXa,bXa,TWa,NWa,DWa,uWa,pWa,GVa,FVa,AVa,g0,tVa,oVa,r4a,q0a,j0a,P_,CNa,ra,sPa,wMa,sg,aNa,k_,xx,fd, +Bd,Yt,GKa,EGa,vGa,qGa,kGa,dGa,UDa,cEa,QAa,GAa,li,ara,vra,mra,ira,Yza,Nza,Cza,tza,kza,eza,Wya,Oya,yya,sya,kya,eya,bya,Xxa,Sxa,Ixa,xxa,mxa,bxa,Jwa,xwa,pwa,iwa,ewa,_va,Sva,Pva,Hva,zva,sva,iva,bva,Wua,Nua,Eua,xua,li,Tg,UU,lpa,wpa,Hpa,hA,we,tsa,Dta,Jf,apa,Spa,bqa,lqa,Ima,li,oma,lma,ema,ama,Wla,Ola,Ela,Bla,ula,tla,sla,rla,qla,mla,kla,hla,fla,ela,cla,bla,$ka,Yka,Vka,Uka,Qka,Pka,Oka,Nka,Jka,uka,oka,hka,Kja,Dja,vja,_ja,rja,kja,cja,Wia,Qia,Iia,Eia,via,gha,gia,aia,Wha,Aha,jga,aga,Vfa,Ofa,Hfa,yfa,nfa,cfa,Zea, +Xea,Uea,Qea,Dea,uea,Jf,rea,mea,eea,Jf,Pgb,Hda,Gda,Fda,Eda,Cda,Bda,Ada,zda,yda,xda,wda,vda,uda,pda,Jf,tda,sda,rda,qda,ida,oda,nda,mda,lda,kda,jda,Vx,pL,V$a,h$a,OM,gda,fda,dda,bda,$ca,_ca,NP,Zca,Yca,Wca,Vca,Uca,Tca,Rca,Qca,Pca,Oca,Nca,Lca,Kca,Jca,Ica,Hca,Gca,Fca,Eca,Dca,Cca,Bca,Aca,zca,xca,wca,vca,uca,tca,sca,rca,qca,pca,oca,nca,mca,lca,kca,jca,ica,zka,Xca,ada,cda,eda,Ida,tga,Gha,rha,Uja,nia,Pma,Mca,vma,RDb,SDb,TDb,PDb,ODb,QDb,MDb,LDb,NDb,JDb,IDb,KDb,GDb,EDb,HDb,iDb,zba,tba,_Bb,YBb,ZBb,WBb,UBb,XBb, +rv,VDb,hca,gca,fca,eca,dca,cca,bca,aca,_ba,Zba,Xba,nF,rEb,qEb,pEb,oEb,nEb,mEb,lEb,kEb,jEb,nF,iEb,hEb,gEb,fEb,Wba,eEb,dEb,cEb,bEb,aEb,Vba,nF,$Db,_Db,ZDb,Uba,Vba,nF,YDb,XDb,WDb,Uba,DDb,CDb,BDb,ADb,zDb,yDb,Iba,xDb,wDb,vDb,uDb,tDb,sDb,qDb,pDb,mv,oDb,Hba,nDb,mv,mDb,Iba,lDb,kDb,jDb,hDb,gDb,fDb,eDb,dDb,cDb,bDb,Jf,aDb,$Cb,_Cb,Jf,ZCb,YCb,XCb,WCb,VCb,UCb,jF,SCb,RCb,QCb,Hba,PCb,OCb,NCb,Xba,MCb,LCb,KCb,JCb,Ky,jF,Bba,ICb,Aba,jF,Bba,HCb,Aba,GCb,FCb,ECb,DCb,CCb,BCb,jF,ACb,zCb,yCb,Wba,xCb,wCb,vCb,uCb,tCb,sCb,rCb, +pCb,oCb,nCb,mCb,lCb,kCb,jCb,Le,Le,iCb,dCb,cCb,aCb,$Bb,hBb,Saa,Raa,Qaa,Oaa,xBb,TBb,SBb,RBb,Waa,QBb,PBb,OBb,NBb,MBb,LBb,KBb,IBb,HBb,GBb,FBb,EBb,DBb,CBb,BBb,vBb,uBb,tBb,sBb,iBb,qBb,rBb,pBb,oBb,nBb,mBb,jBb,gBb,fBb,Tg,eBb,ZAb,cBb,dBb,bBb,aBb,$Ab,_Ab,iP,Kaa,$E,Ovb,Nvb,Mvb,waa,mvb,vaa,Lvb,Kvb,Jvb,lvb,kvb,jvb,waa,Ivb,vaa,Hvb,Gvb,uaa,ivb,taa,hvb,gvb,uaa,Fvb,taa,Evb,Dvb,fvb,evb,dvb,cvb,bvb,Dxb,Cxb,Bxb,Axb,zxb,yxb,Nxb,Mxb,Lxb,Kxb,Jxb,Ixb,wxb,xxb,uxb,vxb,txb,rxb,sxb,qxb,nxb,pxb,mxb,lxb,jxb,kxb,ixb,hxb,fxb,gxb, +exb,cxb,dxb,axb,bxb,$wb,qzb,rzb,Eaa,Eaa,YAb,XAb,WAb,VAb,UAb,TAb,SAb,Tq,RAb,PO,QAb,Bs,PAb,Haa,OAb,Tq,NAb,MAb,Gaa,Tq,LAb,PO,KAb,As,JAb,Sq,IAb,As,GAb,PO,FAb,ZE,EAb,YE,DAb,Tq,Le,As,CAb,NO,BAb,AAb,yAb,Sq,xAb,Bs,wAb,NO,vAb,NO,uAb,tAb,sAb,Sq,rAb,qAb,pAb,nAb,lAb,mAb,Jc,Jf,iAb,Jf,kAb,Xd,Jf,hib,rib,Lgb,Agb,jAb,_wb,Zyb,Daa,Zwb,Yyb,Caa,Ywb,Xyb,Baa,Xwb,zaa,Aaa,Wwb,Wyb,xzb,Vwb,Vyb,wzb,Uwb,Uyb,vzb,Twb,Tyb,Daa,Swb,Ryb,Caa,Rwb,Qyb,Baa,Qwb,zaa,Aaa,Pwb,Pyb,tzb,Owb,Oyb,szb,xaa,Nyb,xaa,Myb,izb,dzb,hzb,czb,gzb,bzb,fzb, +$yb,ezb,_yb,Ezb,Fzb,Czb,Dzb,Bzb,yzb,zzb,Nzb,Ozb,Kzb,Jzb,Izb,Hzb,Gzb,Pzb,hAb,cAb,gAb,fAb,eAb,dAb,bAb,aAb,$zb,_zb,Zzb,Yzb,Vzb,Tzb,Wzb,Uzb,Szb,Rzb,Qzb,eyb,oyb,myb,lyb,dyb,$xb,kyb,jyb,byb,_xb,Yxb,iyb,gyb,hyb,fyb,Uxb,Vxb,Sxb,Lyb,Kyb,Jyb,Iyb,Hyb,Gyb,Fyb,Dyb,Eyb,Byb,Ayb,Cyb,zyb,yyb,vyb,xyb,uyb,wyb,tyb,Nwb,Lwb,Kwb,Jwb,Iwb,Hwb,Gwb,Fwb,Ewb,Dwb,Cwb,Bwb,Awb,zwb,ywb,xwb,wwb,vwb,uwb,twb,swb,rwb,qwb,pwb,owb,nwb,mwb,lwb,kwb,jwb,Of,pzb,ozb,nzb,mzb,hwb,gwb,fwb,ewb,dwb,kzb,jzb,Vub,Wub,$ub,avb,Zub,_ub,Xub,Yub,etb,cwb, +bwb,awb,Cvb,Bvb,Avb,$vb,_vb,Zvb,zvb,yvb,xvb,Yvb,Xvb,Wvb,Vvb,Uvb,wvb,vvb,uvb,tvb,svb,Tvb,Svb,Rvb,Qvb,Pvb,rvb,qvb,pvb,ovb,nvb,Hxb,Gxb,Fxb,Exb,Rxb,Qxb,Pxb,Oxb,mo,Haa,Wtb,ftb,Crb,sp,ZE,tub,ztb,dsb,LE,O9,xub,Dtb,hsb,LE,O9,qub,wtb,$rb,zy,YE,wub,Ctb,gsb,Oq,Hsb,Ztb,jtb,Frb,NE,P9,yub,Etb,isb,zy,YE,dub,ntb,Nrb,mo,Nsb,uub,Atb,esb,mo,Isb,_tb,ktb,Irb,ME,Tq,zub,Ftb,jsb,$sb,Msb,sub,ytb,csb,sp,vO,Sub,yO,Csb,fv,Bs,Rub,By,Bsb,Oq,Sq,Uub,Vtb,Esb,fv,Bs,$tb,By,Jrb,fv,Bs,bub,By,Lrb,sp,vO,gub,yO,Qrb,sp,vO,fub,yO,Prb,Oq, +Sq,hub,otb,Rrb,fv,Bs,eub,By,Orb,Q9,Psb,Aub,Gtb,ksb,zy,YE,Xtb,htb,Drb,fv,Bs,Bub,By,lsb,Q9,Qsb,Cub,Htb,msb,Oq,Sq,rub,xtb,asb,mo,Fsb,Ytb,itb,Erb,zy,Osb,vub,Btb,fsb,dtb,Zsb,Tub,Utb,Dsb,_sb,Jsb,aub,ltb,Krb,ME,Tq,cub,mtb,Mrb,sp,Lsb,nub,ttb,Yrb,mo,N9,mub,R9,Xrb,mo,As,pub,vtb,_rb,sp,ZE,oub,utb,Zrb,sp,ZE,Iub,Mtb,ssb,NE,P9,Oub,Rtb,ysb,sp,Ksb,lub,qtb,Wrb,ME,Tq,kub,ptb,Vrb,mo,As,Pub,Stb,zsb,atb,Rsb,Eub,Jtb,osb,LE,Wsb,Nub,Qtb,wsb,NE,Tsb,Jub,Ntb,tsb,mo,N9,jub,R9,Urb,Oq,Sq,iub,U9,Trb,Oq,Sq,Hub,U9,rsb,mo,As,Gub, +Ltb,qsb,LE,Ssb,Fub,Ktb,psb,ME,Tq,W9,Mub,xsb,Oq,Vsb,Lub,Ptb,vsb,mo,As,Dub,Itb,nsb,ctb,Xsb,Qub,Ttb,Asb,zy,Usb,Kub,Otb,usb,syb,ryb,qyb,pyb,ayb,Zxb,Xxb,Wxb,Fd,IE,j4a,qj,Hj,qj,drb,nO,mrb,rrb,xrb,qrb,ty,lrb,orb,vrb,HE,trb,GE,eO,hrb,qp,urb,L9,FE,pp,EE,srb,Ff,Cf,Bk,nrb,Dc,uc,Ll,Sx,Sqb,cLa,_Fa,RIa,RKa,SKa,_m,cra,Cqb,MKa,Lf,Gf,Edb,cqa,gqa,fqa,dqa,_r,lf,tqb,sqb,my,pqb,aqb,Upb,Opb,Npb,Mpb,$8,Epb,Mob,Lob,Kob,Job,Iob,Hob,Aob,zob,k8,gob,fob,eob,dob,cob,bob,aob,$nb,s4a,C7,_8,Eob,_8,PN,Snb,Rnb,Smb,Rmb,Qmb,Pmb,g7, +tmb,jmb,gmb,fmb,emb,dmb,cmb,bmb,$M,$lb,_lb,Zlb,Ylb,Xlb,Plb,Glb,Flb,Elb,Dlb,Jf,Clb,Blb,li,Alb,zlb,Dkb,ukb,tkb,L6,L6,z6,z6,Ejb,Djb,Cjb,Bjb,Ajb,vjb,ujb,tjb,sjb,rjb,xib,kjb,fjb,ejb,djb,cjb,bjb,$ib,_ib,Zib,Yib,Xib,Wib,Vib,Uib,Tib,Sib,Qib,Pib,Oib,Nib,Mib,Lib,Kib,Jib,Iib,Hib,Gib,Aib,qib,gib,g7,V5,oqb,X8,V8,U8,T8,lqb,kqb,hqb,fqb,eqb,dqb,cqb,jqb,X8,V8,U8,iqb,bqb,_pb,Jf,Zpb,Ypb,Xpb,Wpb,Vpb,JN,Tpb,Spb,Rpb,Qpb,Ppb,Lpb,C8,Kpb,Jpb,Ipb,B8,Hpb,Gpb,Fpb,IN,Cpb,Bpb,HN,Jf,Apb,zpb,ypb,xpb,wpb,vpb,v8,upb,u8,tpb,spb,t8, +rpb,qpb,ppb,opb,npb,mpb,lpb,kpb,jpb,ipb,hpb,gpb,fpb,epb,dpb,cpb,bpb,apb,$ob,_ob,Zob,Yob,Cob,Bob,Xob,r8,Wob,Vob,p8,Uob,Tob,Sob,Rob,Qob,Pob,Oob,Nob,yob,wob,uN,vob,uob,tob,sob,tN,sN,rob,qob,pob,oob,nob,mob,lob,kob,job,iob,B7,li,Tg,_nb,A7,Znb,Ynb,y7,x7,w7,Xnb,Wnb,Vnb,Tnb,Xd,Jf,Qnb,Pnb,VD,Onb,Nnb,Mnb,Lnb,Knb,Jnb,Inb,Hnb,B8,Gnb,Fnb,Enb,C8,Dnb,Cnb,Bnb,Anb,znb,ynb,xnb,wnb,vnb,unb,r7,tnb,snb,rnb,qnb,pnb,nnb,mnb,lnb,knb,jnb,Jf,inb,fN,hnb,gnb,fnb,enb,dnb,Dq,cnb,m7,bnb,anb,cN,$mb,cN,l7,_mb,Zmb,Ymb,Xmb,i7,Wmb, +Vmb,Umb,Tmb,Omb,Nmb,Mmb,Emb,Dmb,Cmb,Amb,zmb,ymb,xmb,wmb,vmb,umb,IN,smb,rmb,Lmb,cN,l7,Kmb,Jmb,Imb,Hmb,i7,Gmb,Fmb,pmb,omb,nmb,mmb,Vlb,Ulb,Tlb,hmb,Wlb,R6,Qlb,Olb,Mlb,Llb,Klb,Rlb,B7,li,Tg,Jlb,A7,Ilb,Hlb,y7,x7,w7,nkb,lkb,kkb,hkb,xlb,ykb,gkb,fkb,ekb,dkb,ckb,bkb,akb,$jb,Zjb,Yjb,Xjb,Wjb,Vjb,OD,Ujb,Tjb,Sjb,Rjb,Pjb,Ojb,Njb,Mjb,Ljb,Kjb,Jjb,Ijb,x6,Hjb,Gjb,Fjb,en,skb,wlb,ulb,tlb,vlb,slb,qlb,plb,rlb,nlb,mlb,klb,jlb,llb,ilb,flb,elb,hlb,dlb,blb,alb,clb,$kb,Zkb,Ykb,_kb,Xkb,H6,Vkb,Ukb,Wkb,Tkb,H6,Rkb,Qkb,Skb,Pkb,Nkb, +Okb,Le,Lkb,Jkb,Ikb,Gkb,Fkb,Ekb,Mkb,Kkb,Ckb,IN,Bkb,Akb,xkb,wkb,vkb,rkb,qkb,okb,ZM,mkb,zjb,Jf,xjb,wjb,pjb,ojb,njb,mjb,ljb,u8,ijb,hjb,gjb,Fib,Eib,Qu,RM,Cib,u6,Bib,s6,zib,yib,t6,KD,wib,uib,HN,Jf,tib,sib,pib,oib,nib,mib,lib,kib,jib,iib,fib,eib,lP,b6,dib,a6,$5,we,_5,cib,bib,$hb,Z5,Y5,_hb,Zhb,Yhb,Xhb,Whb,Vhb,Uhb,Xx,Thb,Shb,Rhb,Qhb,Phb,Ohb,Nhb,Mhb,Lhb,Khb,HN,Jf,Jhb,Ihb,Hhb,Ghb,Fhb,Ehb,v8,Dhb,Bhb,Ahb,zhb,yhb,xhb,whb,vhb,uhb,thb,shb,Td,qhb,Jf,phb,ohb,nhb,mhb,lhb,khb,jhb,ihb,hhb,fhb,b6,ehb,lP,a6,$5,we,_5,dhb, +chb,bhb,ahb,$gb,_gb,Zgb,Xgb,Wgb,Vgb,Ugb,Tgb,Sgb,Rgb,_8a,U8a,l5,L8a,M8a,JM,Js,dp,w6a,lBb,frb,tfb,d2a,xUa,Txb,F7a,Jo,xp,Ly,ln,yi,Sca,Hdb,L4,BD,Mu,mdb,cs,odb,k5,AM,DD,CD,Rx,yeb,wk,xeb,h5,Mx,nj,ds,qD,Lx,Sdb,Tdb,Rdb,nj,nj,nj,Qgb,Ogb,Jdb,A6a,H4a,DM,mj,P6a,Ye,jQ,Iea,I4,G5,fdb,xp,H8a,G8a,uD,Jo,Yk,wD,jdb,J3,J3,XL,ldb,N3,$r,M3,kdb,idb,hdb,gdb,$cb,p4a,_cb,Zcb,Ycb,Xcb,Wcb,Vcb,Ucb,Tcb,Scb,Dj,bs,N8a,x5,P8a,O8a,bdb,adb,Rcb,Pcb,Ocb,Yj,_n,Nx,F5,ce,edb,Zj,Y8a,ddb,z4,Ku,p7a,n7a,K4,Tx,Ncb,Mcb,Pu,Lcb,qT,gla,S9a,R9a,Q9a, +P9a,O9a,N9a,L9a,K9a,I9a,m5,G9a,nj,nj,nj,F9a,E9a,gcb,fcb,ecb,dcb,ccb,bcb,acb,$bb,Ybb,Xbb,Wbb,Vbb,Ubb,Sbb,Rbb,Qbb,Pbb,Obb,Nbb,Mbb,Lbb,Kbb,Ibb,Hbb,Gbb,Fbb,Ebb,Dbb,Cbb,Abb,zbb,ybb,xbb,wbb,vbb,ubb,tbb,sbb,rbb,qbb,pbb,obb,nbb,mbb,lbb,kbb,jbb,hbb,gbb,fbb,ebb,dbb,cbb,bbb,abb,$ab,Yab,Xab,Wab,Vab,Uab,Tab,Sab,Rab,Pab,Oab,Nab,Mab,Lab,Kab,Jab,Iab,Hab,Fab,Eab,Dab,Cab,Bab,Aab,zab,yab,xab,wab,vab,uab,tab,sab,rab,qab,pab,oab,nab,mab,lab,kab,jab,iab,hab,gab,fab,dab,cab,bab,aab,$9a,_9a,Z9a,Y9a,X9a,V9a,U9a,T9a,O5,h9a, +g9a,f9a,e9a,d9a,c9a,b9a,$8a,pdb,R8a,S8a,M4,Qe,Fg,hD,VL,A8a,z8a,t8a,Fg,yS,h8a,f8a,Fg,g8a,c5,Fg,c8a,a8a,$7a,_7a,Z7a,Y7a,W7a,lM,vD,i5,Fg,S7a,R7a,Fg,Q7a,DS,O7a,N7a,M7a,L7a,Q4,V7a,U7a,P7a,X4,j8a,f5,d8a,Fg,l8a,k8a,Mzb,aaa,x7a,v7a,u7a,T5,Mgb,R5,Q5,Ggb,Xd,Egb,Fgb,Cgb,Dgb,Bgb,zgb,ygb,xgb,wgb,vgb,ugb,tgb,sgb,rgb,qgb,pgb,ogb,ngb,mgb,lgb,kgb,jgb,igb,hgb,ggb,fgb,egb,dgb,cgb,bgb,agb,$fb,_fb,Zfb,Yfb,Xfb,Wfb,Vfb,Ufb,Tfb,Sfb,Rfb,Qfb,Pfb,Ofb,Kfb,Jfb,Mfb,Lfb,Ifb,Hfb,Gfb,Ffb,Efb,Dfb,Cfb,Bfb,Afb,zfb,yfb,xfb,wfb,vfb,ufb, +rfb,qfb,pfb,ofb,nfb,mfb,teb,lfb,jfb,ifb,hfb,gfb,ffb,efb,dfb,cfb,bfb,afb,_eb,Zeb,Yeb,Xeb,Web,Veb,Ueb,Teb,qs,seb,qs,Seb,Reb,Peb,Oeb,Neb,Meb,Tg,Tg,Leb,Keb,hA,YN,hA,hA,Ceb,reb,ueb,Kgb,Jgb,Igb,ln,qeb,Hgb,peb,oeb,zeb,veb,Jeb,neb,meb,leb,keb,jeb,Beb,ieb,heb,Aeb,geb,Ieb,Heb,feb,eeb,ceb,beb,aeb,$db,_db,Zdb,Ydb,Geb,Eeb,Deb,Xdb,Wdb,Vdb,Udb,Ngb,Pdb,bo,Odb,yk,Ndb,Mdb,Ldb,Gdb,Fdb,FM,M5,Kdb,Gg,$d,Wh,dea,Wh,Wh,Wh,Wh,Wh,Ddb,Wh,Wh,Adb,zdb,ydb,xdb,vdb,udb,tdb,w5,J9a,D9a,C9a,B9a,A9a,z9a,y9a,w9a,v9a,u9a,t9a,s9a,r9a,q9a, +p9a,o9a,n9a,k9a,j9a,i9a,Gg,$d,Gg,$d,Z8a,X8a,W8a,V8a,F8a,E8a,Q8a,vM,K8a,I8a,y8a,x8a,w8a,v8a,ij,B8a,p8a,o8a,n8a,m8a,Gg,$d,I7a,H7a,$d,If,E7a,Gg,$d,Jf,Jf,A4,o7a,m7a,k7a,j7a,i7a,Zn,we,h7a,Wh,g7a,f7a,we,e7a,d7a,Xd,Xd,y4,b7a,v4,X6a,Gg,$d,Jcb,Icb,NN,Hcb,Gcb,Fcb,Ecb,Dcb,Ccb,Bcb,Acb,zcb,ycb,xcb,wcb,vcb,tcb,scb,rcb,qcb,pcb,ocb,ncb,mcb,lcb,kcb,icb,hcb,i4,vea,rQ,NF,C6a,E6a,PF,Fu,o4,kN,Gob,z6a,jN,u4,$L,e4,D3,f4,lD,O6a,N6a,M6a,L6a,Ix,I6a,H6a,G6a,F6a,Fx,y6a,x6a,J5a,D6a,v6a,u6a,r6a,n4,Ly,I5a,Z5a,l4,$5a,G5a,F5a,E5a, +D5a,C5a,Jf,t6a,q6a,p6a,o6a,n6a,m6a,l6a,k6a,j6a,h6a,f6a,c6a,b6a,m4,m4,Y5a,X5a,W5a,V5a,U5a,T5a,S5a,R5a,O5a,Q5a,P5a,N5a,M5a,d6a,L5a,e6a,g6a,a6a,ey,K5a,Eu,Zu,lp,H7,ho,hob,I7,Fob,vN,B5a,h5a,h4,z5a,v5a,u5a,t5a,p5a,o5a,n5a,m5a,i5a,b5a,a5a,r5a,q5a,$4a,s5a,y5a,x5a,w5a,l5a,k5a,j5a,_4a,Z4a,g5a,f5a,d5a,c5a,Y4a,X4a,V4a,S6a,T4a,_d,oQ,R4a,eM,sn,X3a,k4a,Ye,P4a,O4a,pD,as,sv,eh,Y7,OF,_c,yd,zg,k8,nqa,mqa,U5,Q4a,_3,$3,V3a,Z3,O3a,P3a,V3,S4a,K6a,Cdb,W3,Y3,W3a,uQ,U4a,M4a,G4a,E4a,D4a,Iaa,FM,C4a,B4a,A4a,z4a,w4a,v4a,y4a,x4a, +jD,t4a,FM,K4a,L4a,I4a,n4a,Jja,lka,nka,mka,Eka,kka,nz,HF,wq,jla,Pz,_d,o4a,De,i4a,BG,U3a,y3,D3a,E3a,C3a,p3a,o3a,B3a,Jf,Nf,z3a,j3a,S2,hj,xu,t3a,x3a,k3a,i3a,v3a,u3a,y3a,P0a,n3a,Vh,s3a,r3a,l3a,Q0a,ji,g3a,f3a,d3a,LL,f3,c3a,b3a,a3a,$2a,_2a,Z2a,Y2a,X2a,W2a,U2a,T2a,S2a,R2a,Q2a,P2a,O2a,d3,c3,JL,M2a,L2a,K2a,R0a,d3,c3,HL,E2a,G2a,D2a,J2a,b3,IL,I2a,H2a,A2a,z2a,C2a,B2a,y2a,x2a,T0a,Bx,a3,v2a,u2a,t2a,GL,$2,s2a,r2a,q2a,p2a,b3,o2a,m2a,l2a,k2a,j2a,i2a,h2a,g2a,f2a,e2a,FL,b2a,a2a,$1a,_1a,Z1a,Y1a,X1a,W1a,U1a,T1a,S1a,R1a, +Z2,Q1a,P1a,O1a,M1a,L1a,K1a,J1a,I1a,H1a,G1a,F1a,E1a,D1a,B1a,A1a,z1a,y1a,x1a,w1a,v1a,u1a,t1a,s1a,X2,q1a,p1a,o1a,n1a,m1a,l1a,j1a,i1a,X2,h1a,g1a,f1a,e1a,d1a,c1a,b1a,a1a,_0a,Z0a,Y0a,U2,Td,X0a,W0a,V0a,U0a,E0a,L0a,UC,G0a,D0a,z3,F0a,P2,B0a,T3a,r0a,J3a,Q3a,S3a,J2,_3a,L2,A0a,z0a,w0a,u0a,y0a,x0a,t0a,p0a,Le,o0a,n0a,m0a,l0a,k0a,f0a,C7,F2,i0a,h0a,tQ,Fea,iqa,kqa,HK,Mr,Vm,Nr,ou,gx,hx,e0a,Gg,$d,R5,Q5,c0a,b0a,Q$a,P$a,d0a,w$a,JK,nu,IK,I$a,Fu,F$a,L$a,M$a,C$a,O$a,v2,N$a,PC,z$a,y$a,x$a,e$a,d$a,c$a,a$a,Mz,li,q$a,p$a,o2, +n$a,m$a,l$a,s$a,r$a,k$a,j$a,i$a,A_a,z_a,y_a,we,Tg,Tg,N_a,O_a,F_a,$_a,H_a,JC,W_a,X_a,Z_a,__a,T_a,U_a,cL,G_a,L_a,M_a,P_a,Q_a,Td,R_a,V_a,I_a,J_a,s_a,r_a,li,t_a,f$a,n_a,m_a,l_a,j_a,i_a,h_a,g_a,fe,ff,Xd,D_a,C_a,B_a,sC,FK,d_a,G1,c_a,a_a,$Za,_Za,ZZa,Le,YZa,XZa,b1,JVa,KVa,HVa,LVa,MVa,Y0,ILa,Ob,Nb,ala,_h,NZa,s7a,r7a,Jf,q7a,JZa,CZa,Ku,MZa,Ec,N3a,yc,W0,jf,wWa,OSa,nZa,OZa,uK,lZa,x0,kZa,bWa,ISa,WVa,DSa,ZVa,YVa,XVa,Al,So,gVa,JSa,mZa,Mta,V0,VSa,ZYa,XYa,Om,_f,RB,au,j$,zJ,WYa,VYa,Dw,UYa,TYa,SYa,HD,GM,N5,HM,OQa,rYa, +IZa,Hea,qK,IF,TL,KYa,Z6a,W6a,V6a,U6a,kOa,jOa,r_,EYa,Ly,Jo,QQa,RQa,iOa,xSa,TQa,hOa,rD,SQa,Ku,bB,nOa,fJ,U$,V$,bj,Zr,Pe,Sc,bYa,I0a,aYa,bC,IVa,EVa,DVa,j0,oK,nK,mj,ZXa,Ye,tg,YXa,J0,TPa,MOa,WXa,Z$a,Y$a,y2,Mi,T$a,VXa,gj,$g,W$a,Th,UXa,R$a,fu,TXa,LF,KF,Cea,I0,$p,h0,pK,k0,RXa,SUa,zVa,QXa,Ke,fu,aq,CVa,BVa,KXa,yVa,NXa,MXa,GXa,eh,gu,Dd,sd,Jla,OG,Cla,xo,Dla,G0,SXa,PXa,OXa,LXa,JXa,IXa,fu,tXa,rXa,$Xa,fu,pXa,oXa,uVa,f0,b0,Ye,xWa,tWa,Fu,vWa,Mc,sWa,aWa,NVa,UVa,Bh,JLa,ASa,Ln,qVa,nVa,NOa,POa,OOa,IPa,Gd,iVa,GOa,R$,jE, +NJ,R$,bVa,RUa,QUa,OUa,NUa,HUa,MQa,WSa,vw,NQa,Mm,TSa,RSa,jE,Sm,QSa,Cc,NSa,VVa,RVa,QVa,t0,OVa,rD,Id,fPa,PB,FQa,EQa,jVa,PSa,CQa,fVa,du,Kd,Qh,kVa,DQa,N$,Wd,cq,p$,zSa,f$,$Qa,d$,gPa,RZ,eVa,K$,K$,GLa,FLa,QZ,ELa,pVa,_J,cj,Pk,wQa,xQa,iQa,kQa,uQa,qQa,FMa,$Pa,rVa,SPa,RPa,QPa,PPa,OPa,NPa,MPa,LPa,KPa,JPa,mPa,UUa,HLa,bPa,lPa,sVa,dPa,ePa,BLa,mVa,gOa,FOa,rOa,qOa,pOa,bQa,qYa,c_,hMa,aMa,kMa,jMa,iMa,xl,Ut,Lk,gMa,cMa,h_,bMa,h_,YLa,_La,UPa,CLa,sKa,NN,Le,w4,qs,w4,$6a,_6a,rqb,JQa,AQa,LZa,QZa,BQa,X0,Zw,mB,qKa,xVa,BI,LOa, +K0,pKa,KOa,bZa,JOa,DM,ALa,nKa,mKa,hQ,GF,rg,wl,oKa,zd,$Oa,lKa,aPa,IOa,I_,Nea,kKa,i_,ZLa,HOa,LLa,$La,vZ,g_,dMa,Lea,xXa,mXa,aC,uXa,nXa,Y3a,Pm,Ok,HXa,zXa,wXa,EXa,CXa,BXa,DXa,yXa,FXa,jKa,qXa,eC,HZa,Xd,we,we,Xd,we,we,Xd,_Oa,vYa,GZa,EZa,ZOa,YOa,XOa,DZa,BZa,oZa,rK,zZa,Td,yZa,xZa,wZa,vZa,Td,Td,Td,uZa,tZa,sZa,rZa,qZa,Td,Td,Td,Td,Td,jZa,Td,Td,Td,Td,Td,Td,Td,uYa,Td,Td,iZa,gZa,fZa,cZa,_Ya,P0,RYa,P0,OYa,NYa,li,Td,LYa,MYa,L0,Td,PYa,Td,Xw,Td,Tg,JYa,HYa,GYa,FYa,DYa,CYa,BYa,tYa,rK,Td,li,AYa,Td,zYa,yYa,wYa,Td,we,we, +we,we,we,Xd,we,we,Xd,sYa,eZa,dZa,aZa,$Ya,QYa,pYa,oYa,lYa,cC,Xd,mYa,kYa,jYa,iYa,wOa,vOa,uOa,tOa,gYa,lOa,rs,Uo,fYa,dYa,cYa,Xd,hYa,xp,QWa,PWa,dXa,OWa,MWa,cXa,B0,LWa,aXa,Tm,H0,$Wa,H0,Uw,Ch,lK,_Wa,KWa,JWa,ZWa,IWa,HWa,YWa,GWa,FWa,XWa,EWa,CWa,WWa,BWa,AWa,VWa,zWa,yWa,UWa,lK,SWa,lK,To,eu,vXa,jK,RWa,E0,jXa,D0,C0,eXa,E0,kXa,iK,hK,iXa,iK,hK,hXa,iK,hK,gXa,D0,C0,fXa,dq,rWa,qWa,oWa,nWa,mWa,lWa,kWa,jWa,iWa,Gg,$d,hWa,gWa,fWa,eWa,dWa,cWa,$Va,_Va,TVa,SVa,s0,PVa,wVa,vVa,we,Xd,Xd,Xd,Xd,Xd,Xd,Xd,Xd,Xd,Xd,Xd,Gg,$d,Xd,we, +$d,we,$d,we,$d,we,$d,we,$d,we,$d,we,$d,we,$d,we,$d,we,aVa,_Ua,ZUa,Mw,YUa,mOa,XUa,WUa,sOa,VUa,Gg,li,Gg,$d,AUa,Lw,MUa,we,LUa,KUa,zUa,Xd,JUa,yUa,$d,vUa,Zn,IUa,uUa,D$,FUa,tUa,_p,EUa,sUa,DUa,CUa,rUa,cp,BUa,qUa,CJ,Wh,Xd,Xd,s$,MSa,KSa,HSa,r$,GSa,we,ESa,FSa,CSa,Gg,$d,vSa,Xd,o$,n$,m$,we,SB,ySa,Xd,$d,uSa,we,o$,n$,m$,we,SB,$d,tSa,Zn,sSa,zJ,l$,_p,k$,$d,qSa,_p,pSa,l$,_p,k$,$d,oSa,cp,nSa,mSa,lSa,cp,kSa,$d,jSa,tJ,hSa,gSa,fSa,_p,eSa,dSa,cSa,bSa,aSa,sJ,$Ra,_Ra,YRa,ln,XRa,WRa,VRa,URa,TRa,rJ,SRa,RRa,QRa,we,SB,PRa,NRa, +MRa,LRa,qJ,KRa,JRa,IRa,we,HRa,rD,GRa,FRa,ERa,cC,CRa,BRa,ARa,ln,zRa,n4,yRa,xRa,wRa,Mw,vRa,uRa,tRa,Xd,Td,rRa,qRa,pRa,oRa,nRa,mRa,kRa,Wh,jRa,iRa,hRa,gRa,fRa,eRa,cRa,bRa,aRa,_Qa,ZQa,YQa,WQa,VQa,UQa,tQa,sQa,Xd,T_,pQa,we,oQa,nQa,Zn,mQa,lQa,_p,S_,hQa,gQa,qJ,fQa,eQa,dQa,cQa,rs,Uo,aQa,_Pa,ZPa,cC,YPa,XPa,WPa,rs,Uo,VPa,HPa,GPa,kPa,Xd,FPa,EPa,jPa,we,DPa,CPa,Vq,Zn,BPa,APa,Vq,_p,zPa,yPa,Vq,cp,xPa,wPa,iPa,tJ,vPa,uPa,Vq,sJ,tPa,rPa,Vq,rJ,qPa,pPa,hPa,qJ,oPa,nPa,Vq,cC,u_,EOa,DOa,COa,BOa,AOa,zOa,Ly,ln,yOa,T9,yba,xOa, +oOa,Wh,Jf,DB,Gg,Gg,Jo,Xd,Xd,Gg,Wh,fOa,eOa,dOa,Xd,bOa,yMa,xMa,aOa,vMa,$Na,cOa,CB,_Na,ZNa,YNa,XNa,Mw,VNa,Jf,uMa,tMa,UNa,sMa,TNa,WNa,CB,SNa,RNa,QNa,rMa,we,Jf,ONa,NNa,MNa,qMa,LNa,PNa,KNa,JNa,INa,HNa,GNa,we,FNa,pMa,ENa,DNa,p_,BNa,ANa,zNa,Zn,yNa,oMa,xNa,wNa,p_,vNa,uNa,tNa,_p,nNa,sNa,qNa,pNa,oNa,mNa,Uo,lNa,kNa,jNa,cp,iNa,nMa,lMa,hNa,gNa,Uo,fNa,eNa,dNa,tJ,cNa,bNa,$Ma,_Ma,ZMa,Uo,n_,YMa,XMa,sJ,WMa,VMa,UMa,TMa,SMa,RMa,Uo,j_,QMa,PMa,rJ,OMa,NMa,MMa,LMa,KMa,JMa,Uo,IMa,HMa,GMa,Mw,Jf,Lw,Lw,Tg,rs,Le,EMa,DMa,CMa,Mw, +BMa,AMa,zMa,rs,Uo,XLa,WLa,we,we,Xd,Xd,Xd,we,VLa,ULa,Td,TZ,WOa,rK,Td,Td,Td,Td,Td,Td,Td,Td,Td,Td,Td,Td,TZ,Td,PLa,OLa,NLa,QOa,Tg,Td,Td,Td,Td,Td,li,Td,TLa,li,L0,Td,Td,SLa,RLa,QLa,Tg,rs,Td,VOa,UOa,TOa,SOa,ROa,zQa,Td,li,NN,Td,MLa,KLa,fMa,eMa,MZ,DLa,zLa,Wh,Xd,Xd,Xd,Xd,Xd,Xd,Le,Xd,ln,xp,yLa,xLa,we,wLa,vLa,uLa,tLa,we,sLa,rLa,qLa,we,pLa,oLa,nLa,we,mLa,lLa,kLa,we,jLa,FZ,iLa,we,hLa,gLa,fLa,eLa,we,dLa,qB,aLa,ZKa,YKa,_Ka,XKa,Xd,WKa,VKa,UKa,TKa,QKa,era,dra,PKa,OKa,NKa,KKa,IKa,ze,ze,ze,ze,CZ,CZ,ze,ze,ze,ze,ze,ze, +ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,Rt,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,Pt,FKa,DKa,ze,ze,ze,ze,ze,AZ,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,ze,Pt,St,Pt,pB,pB,zKa,ze,Rt,Rt,Rt,St,Rt,St,oB,oB,ze,oB,Rt,Pt,St,Pt,pB,Pt,St,St,St,oB,ze,ze,EI,EI,EI,zZ,yZ,bLa,$Ka,JKa,HKa,ye,ye,ye,ye,BZ,BZ,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,Qt,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,Ot,EKa,CKa,ye,BKa,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,ye,Ot,Ot,Nt,FI,FI,yKa, +ye,Qt,Qt,Qt,Nt,Qt,Nt,nB,nB,ye,nB,Qt,Ot,Ot,Nt,FI,Ot,Nt,Nt,Nt,nB,ye,ye,DI,DI,DI,vKa,uKa,zZ,wKa,tKa,Td,Td,Ac,pUa,oUa,mUa,lUa,kUa,jUa,iUa,hUa,fUa,eUa,dUa,cUa,A$,bUa,aUa,$Ta,_Ta,ZTa,XTa,WTa,VTa,UTa,TTa,STa,RTa,QTa,PTa,NTa,MTa,LTa,KTa,JTa,ITa,HTa,GTa,FTa,ETa,CTa,BTa,ATa,zTa,yTa,xTa,wTa,vTa,uTa,y$,sTa,rTa,qTa,pTa,oTa,nTa,mTa,lTa,kTa,iTa,hTa,gTa,fTa,eTa,dTa,IJ,cTa,bTa,aTa,$Sa,ZSa,YSa,XSa,Tg,iKa,Ky,Ky,lB,hKa,gKa,fKa,eKa,dKa,cKa,bKa,Td,YN,aKa,$Ja,_Ja,ZJa,YJa,tJa,YY,ZY,$Y,YN,XY,iZ,xI,gZ,Le,dZ,UY,VY,bZ,qw,Lt, +lJa,kJa,mJa,uJa,wJa,Le,pJa,jJa,nJa,oJa,vJa,KY,qJa,rJa,sJa,_Ia,ZIa,YIa,XIa,$d,VIa,UIa,TIa,SIa,XJa,WJa,VJa,UJa,TJa,SJa,RJa,QJa,PJa,OJa,NJa,MJa,LJa,KJa,JJa,IJa,HJa,GJa,FJa,EJa,DJa,CJa,BJa,AJa,zJa,yJa,xJa,iJa,hJa,gJa,fJa,eJa,dJa,cJa,aJa,$Ia,sI,N0a,aIa,M0a,d4a,a4a,K$a,_$a,VC,R2,K3a,H0a,xr,J0a,Q2,Gea,fY,QIa,NIa,MIa,LIa,KIa,we,PIa,OIa,JIa,IIa,HIa,GIa,FIa,EIa,DIa,CIa,Xd,BIa,AIa,zIa,yIa,xIa,wIa,vIa,uIa,tIa,sIa,Xd,rIa,qIa,pIa,oIa,we,nIa,mIa,lIa,kIa,jIa,iIa,hIa,Td,gIa,fIa,eIa,dIa,cIa,Jea,$Ha,x2,HGa,bIa,a0a, +_Ha,KGa,ZHa,YHa,QC,U$a,PGa,XHa,w2,X$a,THa,WHa,VHa,rI,jHa,Ye,S$a,JF,XX,tGa,uGa,Qd,dg,GGa,nGa,lGa,SHa,RHa,QHa,QGa,jGa,PHa,CGa,rGa,xGa,OHa,eGa,hGa,kw,HX,NHa,lw,oGa,pGa,bGa,fGa,$Fa,mGa,RGa,iGa,vk,JGa,Ft,IGa,MHa,LGa,sGa,gs,M3a,OGa,aGa,a7a,XGa,YGa,gGa,xp,FGa,NGa,LHa,KHa,R6a,WA,yq,KX,JHa,mj,Kea,IHa,HHa,$Ga,MX,UHa,cGa,dHa,Cka,FHa,Na,ta,BGa,GHa,eh,rka,UX,EHa,DHa,CHa,sz,nG,mS,lS,BHa,AHa,Td,tz,zHa,yHa,Xd,Xd,Bka,xHa,yka,wHa,xka,vHa,ZA,oHa,nHa,mHa,lHa,kHa,uHa,tHa,sHa,rHa,qHa,pHa,rz,lG,hS,gS,uq,iHa,hHa,gHa,Im, +fHa,DGa,eHa,cHa,tq,yGa,wGa,zGa,qI,eD,dD,Gg,$d,bHa,Xd,WGa,VGa,aHa,we,UGa,oI,_Ga,oI,ZGa,oI,Le,xea,Aea,MGa,DM,LX,SGa,TGa,AGa,eh,Et,JX,kI,jI,my,QX,PX,OX,NFa,vd,Ara,Tva,l4a,rl,fra,mk,MFa,Rj,QBa,aCa,Bra,_Ba,WEa,YBa,KBa,Vza,Xza,LFa,KFa,lAa,Hya,hAa,Eya,qt,H$a,D$a,iW,hW,fW,jW,dW,_i,Qc,OV,JFa,kW,kAa,sdb,qdb,CM,pB,rdb,jAa,Zza,LKa,A$a,G$a,E$a,HFa,LA,OH,PCa,IFa,Jo,Wza,Eo,Pxa,Mxa,Nxa,Oxa,zea,zFa,yFa,xFa,li,li,UA,sh,Cra,vFa,uFa,nFa,BH,AX,lt,wFa,mFa,Vxa,tA,bFa,TEa,zua,dI,gya,WIa,RA,vf,tX,JEa,Do,Bm,LEa,IEa,ql,_xa, +EEa,dya,xj,lk,QA,CEa,HEa,Ho,tt,Co,DEa,Cm,sH,rX,PA,kta,Uxa,zEa,AEa,aI,wEa,qX,vEa,jEa,sEa,pEa,pd,FEa,sX,oEa,wua,OA,Up,BEa,mEa,lEa,kEa,tV,hua,RDa,QDa,Sp,jra,ZU,ODa,NDa,Qj,Gua,CH,$v,uV,Bua,cI,Bt,sFa,Ct,iya,Fm,rf,Hm,dFa,jFa,wX,Gn,MDa,Zxa,PDa,DDa,Hm,iX,Yxa,Xua,ava,CDa,Dua,wDa,vDa,Hm,qDa,rDa,Fn,lDa,LDa,kDa,EDa,YH,jDa,pX,At,AH,IDa,rA,QCa,nDa,xX,Aua,ZH,iDa,DH,dva,fDa,gDa,hra,lX,hDa,Kk,TCa,jw,SCa,Zua,DA,JCa,En,VW,Cua,DCa,HCa,GCa,FCa,ICa,WW,$xa,BCa,gw,CCa,ECa,Zwa,hya,cxa,nxa,KCa,wCa,tCa,Lxa,uCa,rCa,vCa,ZBa, +JA,NW,XBa,kh,si,WBa,$Ba,JDa,UCa,RCa,TBa,xDa,uDa,KW,PAa,Bza,xza,kA,SAa,zW,JW,SBa,Pj,tEa,RBa,mX,KAa,LAa,IW,jza,VBa,dza,fEa,fza,MBa,oBa,vt,GDa,FDa,yza,HDa,gza,PBa,Vua,LBa,wt,oAa,nAa,tW,uEa,JBa,iAa,zwa,Awa,xW,aua,uta,AFa,DFa,ew,rAa,xEa,jX,HW,IBa,GW,aX,oX,rEa,CBa,AW,wr,kCa,EAa,pDa,zza,BBa,oDa,JAa,IAa,BAa,SDa,Jo,mDa,Dt,NH,eDa,Pza,Oza,gua,hza,pBa,rBa,nBa,qBa,kBa,aBa,QV,fBa,eBa,dBa,jBa,bBa,Fsa,gta,dta,$sa,YAa,XAa,msa,Kta,Gta,Fta,WAa,ZAa,_Aa,VAa,oza,UAa,Aza,wW,TAa,vW,uW,PV,yW,lBa,yua,gBa,rza,RAa,OAa,MAa,sW, +Mza,HAa,FAa,NAa,BW,vm,sAa,ti,oW,nW,mW,lW,mAa,CAa,ata,ok,fAa,rwa,eAa,GV,FV,dwa,Vva,uwa,vwa,swa,Bwa,Yva,cAa,RV,lA,bAa,oya,qwa,twa,JV,cya,st,uya,owa,nwa,aAa,dAa,_za,Zva,gwa,fwa,mwa,cwa,gW,$va,nya,$za,DAa,sCa,zA,lwa,kwa,jwa,yA,Kza,Jza,Ura,Sra,Ora,Nra,REa,aw,cW,Bo,Gza,Fza,vV,Eza,Uua,Fua,_ua,Yua,lCa,Hm,ew,Tp,Em,ZV,cza,Iya,xCa,UV,WV,VV,Gya,SEa,Fya,bw,wya,qya,ri,rya,wA,LH,tya,xe,Fo,pya,JH,Kc,Txa,Dn,Kxa,Jxa,Hxa,Gxa,yxa,zxa,kxa,Vwa,jya,Rwa,wwa,Rva,Qva,Ova,Nva,Mva,Jva,vA,Gva,Dva,uA,ZS,Mp,tva,uva,rva,fva,wV, +cva,Lva,$ua,aya,eva,xV,zn,Iva,Kva,Oua,BV,rua,Ao,nk,ur,vua,sua,qua,pA,zo,Rta,nV,$ta,Qta,cua,Sta,oV,mA,bua,Pta,Ota,fta,eta,Hsa,jta,_sa,Gsa,ita,vya,KH,GA,Xsa,Lsa,Jsa,hta,Wsa,Psa,ut,bta,ssa,qsa,psa,cta,osa,nsa,lua,kua,hsa,_ra,Yra,Xra,Zra,Rra,Qra,fsa,Tra,Pra,wH,Hm,Hra,Fra,Xv,Ira,Dra,ZFa,YFa,XFa,WFa,Jf,VFa,Zn,UFa,Td,TFa,SFa,RFa,QFa,PFa,OFa,Ed,VA,GFa,iI,FFa,EFa,CFa,BFa,iI,gI,Wh,gFa,fFa,ln,eFa,pFa,oFa,tFa,qFa,rFa,zX,kFa,hFa,iFa,aFa,$Ea,YEa,_Ea,ln,XEa,Jf,Jo,ZEa,bI,UEa,QEa,PEa,OEa,NEa,vX,uX,KEa,nX,nEa,eEa, +dEa,iEa,hEa,iP,gEa,iw,Td,$H,Td,bEa,aEa,$Da,_Da,ZDa,YDa,iw,XDa,WDa,TDa,yX,_H,yX,_H,BDa,ADa,zDa,Td,yDa,Td,zt,WH,VH,UH,gX,fX,eX,cX,tDa,sDa,dDa,cDa,bDa,aDa,$W,$Ca,_Ca,ZCa,zt,TH,SH,RH,YCa,XCa,WCa,VCa,OCa,NCa,MCa,LCa,qCa,pCa,ACa,yCa,oCa,nCa,$W,Td,mCa,Td,hCa,gCa,fCa,eCa,QH,RW,QW,PW,PH,dCa,cCa,bCa,LW,UBa,xBa,OBa,FBa,EBa,Tg,Tg,Td,Td,li,GBa,Xw,Qya,HBa,zBa,ABa,yBa,DBa,jCa,iCa,NBa,wBa,vBa,zt,TH,SH,RH,EW,uBa,DW,tBa,zt,WH,VH,UH,CW,mBa,AAa,Rya,IA,IA,iBa,hBa,zAa,yAa,$Aa,xAa,wAa,vAa,uAa,qW,tAa,qAa,pAa,Uza,Tza,Sza, +gAa,Xw,Rza,Td,Qza,Td,nd,_H,Iza,Hza,zt,TH,SH,RH,bW,wza,aW,vza,uza,sza,QH,RW,QW,PW,qza,pza,nza,Td,mza,Td,aW,Td,lza,Td,vr,$V,_V,iza,bza,aza,$ya,_ya,Zya,Yya,Xya,Vya,Uya,Tya,Sya,$V,sBa,Pya,YV,YV,Nya,Td,Mya,Td,zt,WH,VH,UH,iw,Td,$H,Td,PH,Lya,Kya,Jya,iw,Td,$H,Td,Dya,Cya,QH,Bya,Aya,zya,SV,xya,mya,lya,Wxa,BA,Wh,Xd,Fxa,Rxa,Qxa,Qwa,Hwa,Gwa,Uwa,jxa,ixa,hxa,vxa,txa,uxa,sxa,rxa,qxa,pxa,wxa,oxa,lxa,NV,LV,Zn,Fwa,Swa,$wa,_wa,Ewa,IQa,GQa,l4,Twa,gxa,fxa,exa,dxa,axa,NV,LV,Pwa,Owa,Wwa,Bxa,Axa,Nwa,Mwa,Lwa,Kwa,Ywa,Exa,Dxa, +Xwa,Iwa,Cxa,Dwa,Cwa,xA,hwa,bwa,awa,Xva,Wva,Uva,rh,yV,Cva,yva,Xd,we,wva,vva,Bva,qva,pva,ova,nva,mva,xva,lva,Xw,Xw,Td,EH,kva,Ava,rh,Wh,Xd,yV,Fva,gva,we,Rua,Qua,Eva,Mua,Lua,Kua,Jua,Iua,Tua,Hua,Pua,Sua,uua,tua,pua,oua,nua,mua,jua,iua,fua,eua,dua,vX,Uta,Tta,Vta,_ta,Zta,EH,IA,qta,pta,rta,sta,Wta,Yta,ota,lta,Xta,CB,nta,mta,Gg,Wh,Zv,Wh,EH,IA,Jta,Ita,DB,Eta,Cta,zta,yta,Ata,Bta,xta,vta,Hta,CB,wta,zH,tta,$d,Nta,jV,Asa,zsa,ysa,yH,Esa,Dsa,Ysa,Csa,Vsa,Usa,Tsa,Rsa,Osa,Nsa,Msa,Ksa,Isa,Bsa,Zsa,Wh,Ssa,Qsa,iw,xsa,wsa, +vsa,PH,Td,usa,Td,lsa,ksa,jsa,isa,gV,rsa,gsa,eV,esa,dsa,qW,bsa,asa,$ra,eV,Wra,Vra,Mra,Lra,Kra,Jra,gX,fX,eX,cX,Gra,Era,vH,bV,vH,bV,Lza,$U,ura,_U,wra,tra,xra,yra,sra,sA,zra,gra,rra,hva,Io,qra,pra,ora,nra,lra,rl,tH,kra,VA,VA,VA,iI,bra,jQ,mj,Ye,$qa,_qa,Zqa,Xd,Yqa,Xqa,Wqa,Vqa,VU,VU,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Tg,Uqa,Tqa,Sqa,Rqa,Qqa,Pqa,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,Le,rE,$8,rs,Oqa,Nqa,Mqa,Kqa,Jqa,Iqa,Hqa,Gqa,Fqa,Eqa,Dqa,Cqa,Bqa,Aqa,zqa,yqa,xqa,wqa,vqa,uqa, +Tg,Tg,Tg,qs,Tg,qs,Xd,Xd,Le,Xd,Tg,rE,rE,qs,qqb,rE,qs,tqa,sqa,rqa,Le,Le,Tg,Tg,Tg,XU,qqa,cD,H3a,G3a,RL,Yr,jqa,I3a,pla,iT,gT,pqa,oqa,Bna,JT,eqa,$G,nma,tea,Ala,Ana,zna,pH,hqa,_pa,Zpa,Ypa,Xpa,Wpa,Vpa,Upa,Tpa,Rpa,Qpa,Ppa,Opa,Npa,Mpa,Lpa,Kpa,Jpa,Ipa,Gpa,Fpa,Epa,Dpa,Cpa,Bpa,Apa,zpa,ypa,xpa,vpa,upa,tpa,spa,rpa,qpa,ppa,opa,npa,mpa,kpa,jpa,ipa,Zoa,Yoa,hpa,gpa,fpa,epa,Le,Le,dpa,cpa,bpa,$oa,_oa,Woa,Voa,Uoa,Toa,Soa,Qoa,Poa,Ooa,Noa,Moa,Loa,Koa,Joa,Ioa,Hoa,Foa,Goa,Eoa,Doa,Coa,Boa,Aoa,zoa,yoa,xoa,woa,voa,uoa,toa,soa, +roa,qoa,ooa,poa,noa,moa,loa,koa,qs,joa,ioa,hoa,goa,Tg,Tg,aqa,$pa,Xoa,foa,uM,PU,OU,NU,eoa,eh,Kx,coa,J7a,doa,HU,Jx,An,MU,Yna,y7a,Xna,tma,KU,qma,Gg,Wna,lH,FD,hU,boa,eA,Ux,QT,Yla,B7a,A7a,nU,kU,mna,pna,cA,Zla,$na,ym,nH,Lma,Kma,Vna,xna,una,kna,Jma,ST,ona,bU,eA,$l,cma,eh,pma,KT,jma,eA,Mma,bA,Sv,Una,Yw,TG,ym,RT,hH,Tna,Sv,eh,XG,Jv,Sv,Tz,gma,lU,Mv,aU,Sma,Sna,MT,eh,ima,Qna,eh,Pna,Rna,Q4,Ona,Nna,Rv,Le,$d,Mna,Kna,Rv,$d,Jna,Ina,Rv,$d,Hna,Gna,Rv,$d,$d,Fna,Ena,$d,Dna,Cna,Rv,$d,lna,_ma,qna,vna,Zna,s8a,r8a,Zz,Xz,dU, +uU,tU,Gg,$d,Gg,$d,wna,yna,tna,sna,rna,jna,aoa,ina,hna,gna,$d,ln,Jo,iQ,D7a,Hrb,ZG,stb,fna,ena,dna,cna,bna,ana,$ma,$d,_na,Zma,Wma,nna,Xma,yT,PG,WG,Tma,Oma,OG,Nma,Ema,Dma,QG,T6a,Sz,Xla,Hma,_T,Uma,Vma,YT,WT,$T,Rma,Cma,zma,yma,Jf,Bma,Ama,bma,UT,OT,wma,xma,NT,uma,Tc,Oj,jh,Gla,Op,LT,rma,sma,Fma,Yma,Gma,hma,TT,bA,UG,ET,kma,mma,CT,BT,dma,fma,$la,zT,qi,_la,Vla,Ula,Tla,Sla,Rla,Qla,Pla,Nla,Mla,Lla,Kla,uj,Ila,Hla,wla,vla,xla,yla,kr,Xd,dla,_ka,Zka,Xka,Wka,nS,rD,Fka,kS,fr,Ija,Hka,nl,gr,fS,Xs,Hja,Aka,kG,qka,kS,fr, +Mja,tka,ska,tz,YR,yga,pg,zv,Gg,Tja,uz,Mka,Td,tz,pS,oS,Xd,Xd,Lka,Lw,Kka,mv,Ika,mv,sz,nG,mS,lS,rz,lG,hS,gS,ai,Dka,pS,oS,Lw,mv,mv,Ws,jka,Zja,cka,bka,aka,$ja,gka,eka,dka,fD,WR,Yja,Xja,gD,VR,Wja,Vja,Jf,Nja,Oja,OR,Gg,$d,Qja,lea,kea,jea,Pja,hG,xp,gG,Lja,mG,cG,JR,IR,mz,SF,sja,zv,pka,Jp,pja,Nh,GR,FR,nja,lja,HR,HR,gja,lz,eja,Zia,d5,bja,$ia,gh,Yia,Bja,$F,JR,IR,kz,gk,wka,QR,dr,Ip,GR,FR,jz,Jia,d5,Fia,QR,Ep,eS,zia,yia,Rs,zv,PS,nla,ola,$R,sia,Rja,xv,eS,mia,Qs,zv,eG,Rea,wF,tz,Jf,Tha,wR,Sha,Gka,Rha,Mea,sR,Qha,rR, +zv,Oha,Lha,Kha,vka,Jha,nR,rR,Hha,Eha,Dha,zha,yha,fG,uha,tha,sha,qha,pha,oha,nha,mha,lha,kha,jha,iha,hha,fha,eha,dha,cha,bha,aha,$ga,_ga,Zga,Yga,Xga,Wga,Vga,Uga,Tga,Sga,Rga,Qga,Pga,Oga,Nga,Mga,Lga,Kga,Jga,Iga,Hga,Gga,Fga,Ega,Dga,fR,Cga,SB,xga,Bga,Wea,Yea,GQ,zga,vga,Gja,Fja,Eja,Az,MR,bt,Sfa,Rfa,Cja,LR,Bfa,zfa,wfa,ufa,sfa,qfa,ofa,lfa,jfa,hfa,ffa,dfa,afa,_ea,fka,Td,bR,Aga,wga,_Q,gga,fga,ega,dga,cga,DB,bga,$fa,_fa,iR,Yfa,Xfa,Wfa,Ufa,Tfa,Xd,Qfa,Pfa,RQ,Nfa,Lfa,Kfa,Jfa,Gfa,Efa,QQ,Mfa,Ly,ln,Ifa,Ffa,Dfa,Gg, +$d,$d,uga,sga,rga,qga,pga,oga,nga,mga,DB,lga,iga,hga,$d,ZQ,ZQ,wv,we,we,Zfa,we,$d,XQ,WQ,wv,Xd,Xd,VQ,cp,$d,XQ,WQ,wv,Xd,Xd,VQ,cp,$d,UQ,TQ,wv,Xd,Xd,SQ,cp,$d,UQ,TQ,wv,Xd,Xd,SQ,cp,Gg,$d,Aja,zja,yja,Gg,$d,xja,wja,uja,$d,tja,qja,oja,mja,jja,ija,hja,fja,dja,aja,_ia,$d,Via,Uia,Tia,Sia,Ria,Pia,Oia,Nia,Mia,Lia,Kia,$d,Hia,Gia,Dia,Cia,Bia,Aia,xia,wia,$d,uia,tia,ria,qia,pia,oia,lia,kia,Gg,$d,Zn,jia,iia,hia,fia,eia,dia,Cfa,xfa,tfa,gfa,bfa,pfa,kfa,Gg,$d,Zn,cia,bia,$ha,_ha,Zha,Yha,Afa,vfa,rfa,efa,$ea,mfa,ifa,UF,PQ, +Xha,UF,PQ,Vha,$d,hz,hz,ll,ll,ll,vR,Xd,Dp,Dp,$d,hz,hz,ll,ll,ll,vR,Xd,Dp,Dp,$d,gz,gz,ll,ll,ll,uR,Xd,Dp,Dp,$d,gz,gz,ll,ll,ll,uR,Xd,Dp,Dp,$d,Uha,Pha,$d,Mha,Iha,$d,Fha,Cha,$d,Bha,xha,$d,Ky,wha,Td,$d,Ky,vha,Td,Wh,Xd,Xd,Xd,$d,Tea,RF,Pea,Oea,wQ,pQ,to,Eea,qea,Bea,yea,yea,wea,EF,sea,pea,nea,oea,nS,hea,iea,Sea,OR,hG,cea,cQ,dQ,Gg,$d,Jf,Jf,bea,$d,aea,Tda,Wda,$da,$d,Uda,Xda,_da,$d,Vda,Yda,Zda,$d,Pda,$d,Oda,$d,Qda,Xy,xp,hG,Xy,Xy,Xy,$d,Nda]);function lc(){return G.byteLength/65536|0}function qc(rc){rc=rc|0;var mc= +lc()|0;var nc=mc+rc|0;if(mc=65536,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+INITIAL_MEMORY+"! (STACK_SIZE="+65536+")");if(Module["wasmMemory"])wasmMemory= +Module["wasmMemory"];else wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":2147483648/65536});updateMemoryViews();INITIAL_MEMORY=wasmMemory.buffer.byteLength;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[function(){window["AscViewer"]&&window["AscViewer"]["onLoadModule"]&&window["AscViewer"]["onLoadModule"]()}];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length)addOnPreRun(Module["preRun"].shift())}callRuntimeCallbacks(__ATPRERUN__)} +function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length)addOnPostRun(Module["postRun"].shift())}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}if(!Math.imul||Math.imul(4294967295,5)!==-5)Math.imul= +function(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};if(!Math.fround){var froundBuffer=new Float32Array(1);Math.fround=function(x){froundBuffer[0]=x;return froundBuffer[0]}}if(!Math.clz32)Math.clz32=function(x){var n=32;var y=x>>16;if(y){n-=16;x=y}y=x>>8;if(y){n-=8;x=y}y=x>>4;if(y){n-=4;x=y}y=x>>2;if(y){n-=2;x=y}y=x>>1;if(y)return n-2;return n-x};if(!Math.trunc)Math.trunc=function(x){return x<0?Math.ceil(x):Math.floor(x)};var runDependencies=0; +var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"])Module["monitorRunDependencies"](runDependencies)}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"])Module["monitorRunDependencies"](runDependencies);if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled; +dependenciesFulfilled=null;callback()}}}function abort(what){if(Module["onAbort"])Module["onAbort"](what);what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);throw e;}var dataURIPrefix="data:application/octet-stream;base64,";var isDataURI=function(filename){return filename.startsWith(dataURIPrefix)};var wasmBinaryFile;wasmBinaryFile="drawingfile.wasm";if(!isDataURI(wasmBinaryFile))wasmBinaryFile=locateFile(wasmBinaryFile); +function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);var binary=tryParseAsDataURI(file);if(binary)return binary;if(readBinary)return readBinary(file);throw"both async and sync fetching of the wasm failed";}function getBinaryPromise2(binaryFile){if(!wasmBinary&&!isDataURI(binaryFile)&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER))if(typeof fetch=="function")return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"])throw"failed to load wasm binary file at '"+ +binaryFile+"'";return response["arrayBuffer"]()}).catch(function(){return getBinarySync(binaryFile)});return Promise.resolve().then(function(){return getBinarySync(binaryFile)})}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(function(binary){return WebAssembly.instantiate(binary,imports)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(binary, +binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(binaryFile)&&typeof fetch=="function")return fetch(binaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(binaryFile,imports,callback)})});return instantiateArrayBuffer(binaryFile, +imports,callback)}function createWasm(){var info={"a":wasmImports};function receiveInstance(instance,module){wasmExports=instance.exports;wasmTable=wasmExports["kb"];addOnInit(wasmExports["jb"]);removeRunDependency("wasm-instantiate");return wasmExports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}if(Module["instantiateWasm"])try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err("Module.instantiateWasm callback failed with error: "+ +e);return false}instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult);return{}}var tempDouble;function js_get_stream_id(data,status){return self.AscViewer.CheckStreamId(data,status)}function js_free_id(data){self.AscViewer.Free(data);return 1}function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}var callRuntimeCallbacks=function(callbacks){while(callbacks.length>0)callbacks.shift()(Module)};var noExitRuntime= +Module["noExitRuntime"]||true;var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;var UTF8ArrayToString=function(heapOrArray,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder)return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr));var str="";while(idx>10,56320|ch&1023)}}return str};var UTF8ToString=function(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""};var ___assert_fail=function(condition,filename,line,func){abort("Assertion failed: "+ +UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])};var exceptionCaught=[];var uncaughtExceptionCount=0;var ___cxa_begin_catch=function(ptr){var info=new ExceptionInfo(ptr);if(!info.get_caught()){info.set_caught(true);uncaughtExceptionCount--}info.set_rethrown(false);exceptionCaught.push(info);___cxa_increment_exception_refcount(info.excPtr);return info.get_exception_ptr()};var exceptionLast=0;var ___cxa_end_catch= +function(){_setThrew(0,0);var info=exceptionCaught.pop();___cxa_decrement_exception_refcount(info.excPtr);exceptionLast=0};function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-24;this.set_type=function(type){HEAPU32[this.ptr+4>>2]=type};this.get_type=function(){return HEAPU32[this.ptr+4>>2]};this.set_destructor=function(destructor){HEAPU32[this.ptr+8>>2]=destructor};this.get_destructor=function(){return HEAPU32[this.ptr+8>>2]};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ +12>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+12>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+13>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+13>>0]!=0};this.init=function(type,destructor){this.set_adjusted_ptr(0);this.set_type(type);this.set_destructor(destructor)};this.set_adjusted_ptr=function(adjustedPtr){HEAPU32[this.ptr+16>>2]=adjustedPtr};this.get_adjusted_ptr=function(){return HEAPU32[this.ptr+16>>2]};this.get_exception_ptr= +function(){var isPointer=___cxa_is_pointer_type(this.get_type());if(isPointer)return HEAPU32[this.excPtr>>2];var adjusted=this.get_adjusted_ptr();if(adjusted!==0)return adjusted;return this.excPtr}}var ___resumeException=function(ptr){if(!exceptionLast)exceptionLast=ptr;throw exceptionLast;};var findMatchingCatch=function(args){var thrown=exceptionLast;if(!thrown){setTempRet0(0);return 0}var info=new ExceptionInfo(thrown);info.set_adjusted_ptr(thrown);var thrownType=info.get_type();if(!thrownType){setTempRet0(0); +return thrown}for(var arg in args){var caughtType=args[arg];if(caughtType===0||caughtType===thrownType)break;var adjusted_ptr_addr=info.ptr+16;if(___cxa_can_catch(caughtType,thrownType,adjusted_ptr_addr)){setTempRet0(caughtType);return thrown}}setTempRet0(thrownType);return thrown};var ___cxa_find_matching_catch_2=function(){return findMatchingCatch([])};var ___cxa_find_matching_catch_3=function(arg0){return findMatchingCatch([arg0])};var ___cxa_rethrow=function(){var info=exceptionCaught.pop();if(!info)abort("no exception to throw"); +var ptr=info.excPtr;if(!info.get_rethrown()){exceptionCaught.push(info);info.set_rethrown(true);info.set_caught(false);uncaughtExceptionCount++}exceptionLast=ptr;throw exceptionLast;};var ___cxa_throw=function(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;uncaughtExceptionCount++;throw exceptionLast;};var ___cxa_uncaught_exceptions=function(){return uncaughtExceptionCount};var SYSCALLS={varargs:undefined,get:function(){var ret=HEAP32[+SYSCALLS.varargs>> +2];SYSCALLS.varargs+=4;return ret},getp:function(){return SYSCALLS.get()},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret}};function ___syscall_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;return 0}var ___syscall_fstat64=function(fd,buf){};var lengthBytesUTF8=function(str){var len=0;for(var i=0;i=55296&&c<=57343){len+=4;++i}else len+=3}return len};var stringToUTF8Array=function(str,heap,outIdx, +maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}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}}heap[outIdx]=0;return outIdx-startIdx};var stringToUTF8=function(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)};var ___syscall_getcwd=function(buf,size){};var ___syscall_getdents64=function(fd,dirp,count){};function ___syscall_ioctl(fd,op,varargs){SYSCALLS.varargs=varargs;return 0}var ___syscall_lstat64=function(path,buf){}; +var ___syscall_mkdirat=function(dirfd,path,mode){};var ___syscall_newfstatat=function(dirfd,path,buf,flags){};function ___syscall_openat(dirfd,path,flags,varargs){SYSCALLS.varargs=varargs}var ___syscall_readlinkat=function(dirfd,path,buf,bufsize){};var ___syscall_rmdir=function(path){};var ___syscall_stat64=function(path,buf){};var ___syscall_unlinkat=function(dirfd,path,flags){};var ___syscall_utimensat=function(dirfd,path,times,flags){};var nowIsMonotonic=true;var __emscripten_get_now_is_monotonic= +function(){return nowIsMonotonic};var __emscripten_throw_longjmp=function(){throw Infinity;};var isLeapYear=function(year){return year%4===0&&(year%100!==0||year%400===0)};var MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335];var MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334];var ydayFromDate=function(date){var leap=isLeapYear(date.getFullYear());var monthDaysCumulative=leap?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE;var yday=monthDaysCumulative[date.getMonth()]+ +date.getDate()-1;return yday};var convertI32PairToI53Checked=function(lo,hi){return hi+2097152>>>0<4194305-!!lo?(lo>>>0)+hi*4294967296:NaN};var __mktime_js=function(tmPtr){var ret=function(){var date=new Date(HEAP32[tmPtr+20>>2]+1900,HEAP32[tmPtr+16>>2],HEAP32[tmPtr+12>>2],HEAP32[tmPtr+8>>2],HEAP32[tmPtr+4>>2],HEAP32[tmPtr>>2],0);var dst=HEAP32[tmPtr+32>>2];var guessedOffset=date.getTimezoneOffset();var start=new Date(date.getFullYear(),0,1);var summerOffset=(new Date(date.getFullYear(),6,1)).getTimezoneOffset(); +var winterOffset=start.getTimezoneOffset();var dstOffset=Math.min(winterOffset,summerOffset);if(dst<0)HEAP32[tmPtr+32>>2]=Number(summerOffset!=winterOffset&&dstOffset==guessedOffset);else if(dst>0!=(dstOffset==guessedOffset)){var nonDstOffset=Math.max(winterOffset,summerOffset);var trueOffset=dst>0?dstOffset:nonDstOffset;date.setTime(date.getTime()+(trueOffset-guessedOffset)*6E4)}HEAP32[tmPtr+24>>2]=date.getDay();var yday=ydayFromDate(date)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr>>2]=date.getSeconds(); +HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getYear();return date.getTime()/1E3}();return setTempRet0((tempDouble=ret,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),ret>>>0};function __mmap_js(len,prot,flags,fd,offset_low,offset_high,allocated,addr){var offset=convertI32PairToI53Checked(offset_low, +offset_high);return-52}function __munmap_js(addr,len,prot,flags,fd,offset_low,offset_high){var offset=convertI32PairToI53Checked(offset_low,offset_high)}var stringToNewUTF8=function(str){var size=lengthBytesUTF8(str)+1;var ret=_malloc(size);if(ret)stringToUTF8(str,ret,size);return ret};var __tzset_js=function(timezone,daylight,tzname){var currentYear=(new Date).getFullYear();var winter=new Date(currentYear,0,1);var summer=new Date(currentYear,6,1);var winterOffset=winter.getTimezoneOffset();var summerOffset= +summer.getTimezoneOffset();var stdTimezoneOffset=Math.max(winterOffset,summerOffset);HEAPU32[timezone>>2]=stdTimezoneOffset*60;HEAP32[daylight>>2]=Number(winterOffset!=summerOffset);function extractZone(date){var match=date.toTimeString().match(/\(([A-Za-z ]+)\)$/);return match?match[1]:"GMT"}var winterName=extractZone(winter);var summerName=extractZone(summer);var winterNamePtr=stringToNewUTF8(winterName);var summerNamePtr=stringToNewUTF8(summerName);if(summerOffset> +2]=winterNamePtr;HEAPU32[tzname+4>>2]=summerNamePtr}else{HEAPU32[tzname>>2]=summerNamePtr;HEAPU32[tzname+4>>2]=winterNamePtr}};var _abort=function(){abort("")};var _emscripten_date_now=function(){return Date.now()};var _emscripten_get_now;_emscripten_get_now=function(){return performance.now()};var _emscripten_memcpy_js=Uint8Array.prototype.copyWithin?function(dest,src,num){return HEAPU8.copyWithin(dest,src,src+num)}:function(dest,src,num){return HEAPU8.set(HEAPU8.subarray(src,src+num),dest)};var getHeapMax= +function(){return 2147483648};var growMemory=function(size){var b=wasmMemory.buffer;var pages=(size-b.byteLength+65535)/65536;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=function(requestedSize){var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize)return false;var alignUp=function(x,multiple){return x+(multiple-x%multiple)%multiple};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,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement)return true}return false};var ENV={};var getExecutableName=function(){return thisProgram||"./this.program"};var getEnvStrings=function(){if(!getEnvStrings.strings){var lang=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"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 stringToAscii=function(str,buffer){for(var i=0;i>0]=str.charCodeAt(i);HEAP8[buffer>>0]=0};var _environ_get=function(__environ,environ_buf){var bufSize= +0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAPU32[__environ+i*4>>2]=ptr;stringToAscii(string,ptr);bufSize+=string.length+1});return 0};var _environ_sizes_get=function(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAPU32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){return bufSize+=string.length+1});HEAPU32[penviron_buf_size>>2]=bufSize;return 0};var runtimeKeepaliveCounter=0;var keepRuntimeAlive=function(){return noExitRuntime|| +runtimeKeepaliveCounter>0};var _proc_exit=function(code){EXITSTATUS=code;if(!keepRuntimeAlive()){if(Module["onExit"])Module["onExit"](code);ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=function(status,implicit){EXITSTATUS=status;_proc_exit(status)};var _exit=exitJS;var _fd_close=function(fd){return 52};var _fd_read=function(fd,iov,iovcnt,pnum){return 52};function _fd_seek(fd,offset_low,offset_high,whence,newOffset){var offset=convertI32PairToI53Checked(offset_low,offset_high);return 70} +var printCharBuffers=[null,[],[]];var printChar=function(stream,curr){var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else buffer.push(curr)};var _fd_write=function(fd,iov,iovcnt,pnum){var num=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j>2]=num;return 0};var _llvm_eh_typeid_for=function(type){return type};var arraySum= +function(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]);return sum};var MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];var MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];var addDays=function(date,days){var newDate=new Date(date.getTime());while(days>0){var leap=isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth- +newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11)newDate.setMonth(currentMonth+1);else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate};function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array} +var writeArrayToMemory=function(array,buffer){HEAP8.set(array,buffer)};var _strftime=function(s,maxsize,format,tm){var tm_zone=HEAPU32[tm+40>>2];var date={tm_sec:HEAP32[tm>>2],tm_min:HEAP32[tm+4>>2],tm_hour:HEAP32[tm+8>>2],tm_mday:HEAP32[tm+12>>2],tm_mon:HEAP32[tm+16>>2],tm_year:HEAP32[tm+20>>2],tm_wday:HEAP32[tm+24>>2],tm_yday:HEAP32[tm+28>>2],tm_isdst:HEAP32[tm+32>>2],tm_gmtoff:HEAP32[tm+36>>2],tm_zone:tm_zone?UTF8ToString(tm_zone):""};var pattern=UTF8ToString(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y", +"%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var rule in EXPANSION_RULES_1)pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_1[rule]);var WEEKDAYS=["Sunday","Monday","Tuesday","Wednesday", +"Thursday","Friday","Saturday"];var MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];function leadingSomething(value,digits,character){var str=typeof value=="number"?value.toString():value||"";while(str.length0?1:0}var compare;if((compare= +sgn(date1.getFullYear()-date2.getFullYear()))===0)if((compare=sgn(date1.getMonth()-date2.getMonth()))===0)compare=sgn(date1.getDate()-date2.getDate());return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()- +1,11,31);case 6:return new Date(janFourth.getFullYear()-1,11,30)}}function getWeekBasedYear(date){var thisDate=addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0){if(compareByDay(firstWeekStartNextYear, +thisDate)<=0)return thisDate.getFullYear()+1;return thisDate.getFullYear()}return thisDate.getFullYear()-1}var EXPANSION_RULES_2={"%a":function(date){return WEEKDAYS[date.tm_wday].substring(0,3)},"%A":function(date){return WEEKDAYS[date.tm_wday]},"%b":function(date){return MONTHS[date.tm_mon].substring(0,3)},"%B":function(date){return MONTHS[date.tm_mon]},"%C":function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)},"%d":function(date){return leadingNulls(date.tm_mday,2)},"%e":function(date){return leadingSomething(date.tm_mday, +2," ")},"%g":function(date){return getWeekBasedYear(date).toString().substring(2)},"%G":function(date){return getWeekBasedYear(date)},"%H":function(date){return leadingNulls(date.tm_hour,2)},"%I":function(date){var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)},"%j":function(date){return leadingNulls(date.tm_mday+arraySum(isLeapYear(date.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,date.tm_mon-1),3)},"%m":function(date){return leadingNulls(date.tm_mon+ +1,2)},"%M":function(date){return leadingNulls(date.tm_min,2)},"%n":function(){return"\n"},"%p":function(date){if(date.tm_hour>=0&&date.tm_hour<12)return"AM";return"PM"},"%S":function(date){return leadingNulls(date.tm_sec,2)},"%t":function(){return"\t"},"%u":function(date){return date.tm_wday||7},"%U":function(date){var days=date.tm_yday+7-date.tm_wday;return leadingNulls(Math.floor(days/7),2)},"%V":function(date){var val=Math.floor((date.tm_yday+7-(date.tm_wday+6)%7)/7);if((date.tm_wday+371-date.tm_yday- +2)%7<=2)val++;if(!val){val=52;var dec31=(date.tm_wday+7-date.tm_yday-1)%7;if(dec31==4||dec31==5&&isLeapYear(date.tm_year%400-1))val++}else if(val==53){var jan1=(date.tm_wday+371-date.tm_yday)%7;if(jan1!=4&&(jan1!=3||!isLeapYear(date.tm_year)))val=1}return leadingNulls(val,2)},"%w":function(date){return date.tm_wday},"%W":function(date){var days=date.tm_yday+7-(date.tm_wday+6)%7;return leadingNulls(Math.floor(days/7),2)},"%y":function(date){return(date.tm_year+1900).toString().substring(2)},"%Y":function(date){return date.tm_year+ +1900},"%z":function(date){var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)},"%Z":function(date){return date.tm_zone},"%%":function(){return"%"}};pattern=pattern.replace(/%%/g,"\x00\x00");for(var rule in EXPANSION_RULES_2)if(pattern.includes(rule))pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date));pattern=pattern.replace(/\0\0/g,"%");var bytes=intArrayFromString(pattern,false);if(bytes.length> +maxsize)return 0;writeArrayToMemory(bytes,s);return bytes.length-1};var _strftime_l=function(s,maxsize,format,tm,loc){return _strftime(s,maxsize,format,tm)};var wasmTableMirror=[];var wasmTable;var getWasmTableEntry=function(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func};var wasmImports={j:___assert_fail,s:___cxa_begin_catch,x:___cxa_end_catch,b:___cxa_find_matching_catch_2, +i:___cxa_find_matching_catch_3,R:___cxa_rethrow,B:___cxa_throw,eb:___cxa_uncaught_exceptions,f:___resumeException,da:___syscall_fcntl64,za:___syscall_fstat64,va:___syscall_getcwd,ra:___syscall_getdents64,Ca:___syscall_ioctl,wa:___syscall_lstat64,sa:___syscall_mkdirat,xa:___syscall_newfstatat,$:___syscall_openat,_:___syscall_readlinkat,qa:___syscall_rmdir,ya:___syscall_stat64,Z:___syscall_unlinkat,hb:___syscall_utimensat,Aa:__emscripten_get_now_is_monotonic,fb:__emscripten_throw_longjmp,ab:__mktime_js, +_a:__mmap_js,$a:__munmap_js,ib:__tzset_js,v:_abort,ba:_emscripten_date_now,aa:_emscripten_get_now,Ba:_emscripten_memcpy_js,gb:_emscripten_resize_heap,ta:_environ_get,ua:_environ_sizes_get,C:_exit,Q:_fd_close,ca:_fd_read,bb:_fd_seek,V:_fd_write,u:invoke_di,na:invoke_didd,S:invoke_dii,H:invoke_diii,Ta:invoke_diiiiiiiii,Ga:invoke_fif,pa:invoke_fiii,t:invoke_i,Ua:invoke_idddiii,c:invoke_ii,A:invoke_iidd,E:invoke_iidddddd,Ma:invoke_iiddiii,e:invoke_iii,ja:invoke_iiiddddd,Oa:invoke_iiiddiii,T:invoke_iiiff, +Pa:invoke_iiiffff,k:invoke_iiii,l:invoke_iiiii,fa:invoke_iiiiid,Xa:invoke_iiiiifi,r:invoke_iiiiii,W:invoke_iiiiiiddiiiii,n:invoke_iiiiiii,z:invoke_iiiiiiii,D:invoke_iiiiiiiii,K:invoke_iiiiiiiiidddd,M:invoke_iiiiiiiiii,X:invoke_iiiiiiiiiii,J:invoke_iiiiiiiiiiii,la:invoke_iiiiiiiiiiiiiiiiiiiiiiiiiii,cb:invoke_ji,Za:invoke_jiiii,o:invoke_v,Ia:invoke_vdii,d:invoke_vi,P:invoke_vid,Y:invoke_vidd,ma:invoke_viddd,Va:invoke_vidddddddd,Wa:invoke_viddi,oa:invoke_vidi,Qa:invoke_viffffi,h:invoke_vii,F:invoke_viid, +La:invoke_viidddd,Ka:invoke_viiddddddi,Da:invoke_viiddiiiii,Ha:invoke_viif,g:invoke_viii,Ja:invoke_viiid,G:invoke_viiiddiii,Ea:invoke_viiiddiiiii,ia:invoke_viiiddiiiiii,ha:invoke_viiidi,Na:invoke_viiidiiiddddd,m:invoke_viiii,I:invoke_viiiid,ea:invoke_viiiidii,q:invoke_viiiii,ga:invoke_viiiiid,ka:invoke_viiiiiff,p:invoke_viiiiii,y:invoke_viiiiiii,L:invoke_viiiiiiii,N:invoke_viiiiiiiii,O:invoke_viiiiiiiiii,Fa:invoke_viiiiiiiiiiii,Ya:invoke_viiiiiiiiiiiiii,U:invoke_viiiiiiiiiiiiiii,Ra:js_free_id,Sa:js_get_stream_id, +w:_llvm_eh_typeid_for,a:wasmMemory,db:_strftime_l};var wasmExports=createWasm();var ___wasm_call_ctors=function(){return(___wasm_call_ctors=wasmExports["jb"])()};var ___cxa_free_exception=function(a0){return(___cxa_free_exception=wasmExports["__cxa_free_exception"])(a0)};var _malloc=Module["_malloc"]=function(a0){return(_malloc=Module["_malloc"]=wasmExports["lb"])(a0)};var _free=Module["_free"]=function(a0){return(_free=Module["_free"]=wasmExports["mb"])(a0)};var setTempRet0=function(a0){return(setTempRet0= +wasmExports["nb"])(a0)};var ___errno_location=function(){return(___errno_location=wasmExports["ob"])()};var _InitializeFontsBin=Module["_InitializeFontsBin"]=function(a0,a1){return(_InitializeFontsBin=Module["_InitializeFontsBin"]=wasmExports["pb"])(a0,a1)};var _InitializeFontsBase64=Module["_InitializeFontsBase64"]=function(a0,a1){return(_InitializeFontsBase64=Module["_InitializeFontsBase64"]=wasmExports["qb"])(a0,a1)};var _InitializeFontsRanges=Module["_InitializeFontsRanges"]=function(a0){return(_InitializeFontsRanges= +Module["_InitializeFontsRanges"]=wasmExports["rb"])(a0)};var _SetFontBinary=Module["_SetFontBinary"]=function(a0,a1,a2){return(_SetFontBinary=Module["_SetFontBinary"]=wasmExports["sb"])(a0,a1,a2)};var _IsFontBinaryExist=Module["_IsFontBinaryExist"]=function(a0){return(_IsFontBinaryExist=Module["_IsFontBinaryExist"]=wasmExports["tb"])(a0)};var _GetType=Module["_GetType"]=function(a0,a1){return(_GetType=Module["_GetType"]=wasmExports["ub"])(a0,a1)};var _Open=Module["_Open"]=function(a0,a1,a2){return(_Open= +Module["_Open"]=wasmExports["vb"])(a0,a1,a2)};var _GetErrorCode=Module["_GetErrorCode"]=function(a0){return(_GetErrorCode=Module["_GetErrorCode"]=wasmExports["wb"])(a0)};var _Close=Module["_Close"]=function(a0){return(_Close=Module["_Close"]=wasmExports["xb"])(a0)};var _GetInfo=Module["_GetInfo"]=function(a0){return(_GetInfo=Module["_GetInfo"]=wasmExports["yb"])(a0)};var _GetPixmap=Module["_GetPixmap"]=function(a0,a1,a2,a3,a4){return(_GetPixmap=Module["_GetPixmap"]=wasmExports["zb"])(a0,a1,a2,a3, +a4)};var _GetGlyphs=Module["_GetGlyphs"]=function(a0,a1){return(_GetGlyphs=Module["_GetGlyphs"]=wasmExports["Ab"])(a0,a1)};var _GetLinks=Module["_GetLinks"]=function(a0,a1){return(_GetLinks=Module["_GetLinks"]=wasmExports["Bb"])(a0,a1)};var _GetStructure=Module["_GetStructure"]=function(a0){return(_GetStructure=Module["_GetStructure"]=wasmExports["Cb"])(a0)};var _GetInteractiveFormsInfo=Module["_GetInteractiveFormsInfo"]=function(a0){return(_GetInteractiveFormsInfo=Module["_GetInteractiveFormsInfo"]= +wasmExports["Db"])(a0)};var _GetInteractiveFormsFonts=Module["_GetInteractiveFormsFonts"]=function(a0,a1){return(_GetInteractiveFormsFonts=Module["_GetInteractiveFormsFonts"]=wasmExports["Eb"])(a0,a1)};var _GetInteractiveFormsAP=Module["_GetInteractiveFormsAP"]=function(a0,a1,a2,a3,a4,a5,a6,a7){return(_GetInteractiveFormsAP=Module["_GetInteractiveFormsAP"]=wasmExports["Fb"])(a0,a1,a2,a3,a4,a5,a6,a7)};var _GetButtonIcons=Module["_GetButtonIcons"]=function(a0,a1,a2,a3,a4,a5){return(_GetButtonIcons= +Module["_GetButtonIcons"]=wasmExports["Gb"])(a0,a1,a2,a3,a4,a5)};var _GetAnnotationsInfo=Module["_GetAnnotationsInfo"]=function(a0,a1){return(_GetAnnotationsInfo=Module["_GetAnnotationsInfo"]=wasmExports["Hb"])(a0,a1)};var _GetAnnotationsAP=Module["_GetAnnotationsAP"]=function(a0,a1,a2,a3,a4,a5,a6){return(_GetAnnotationsAP=Module["_GetAnnotationsAP"]=wasmExports["Ib"])(a0,a1,a2,a3,a4,a5,a6)};var _GetFontBinary=Module["_GetFontBinary"]=function(a0,a1){return(_GetFontBinary=Module["_GetFontBinary"]= +wasmExports["Jb"])(a0,a1)};var _DestroyTextInfo=Module["_DestroyTextInfo"]=function(a0){return(_DestroyTextInfo=Module["_DestroyTextInfo"]=wasmExports["Kb"])(a0)};var _IsNeedCMap=Module["_IsNeedCMap"]=function(a0){return(_IsNeedCMap=Module["_IsNeedCMap"]=wasmExports["Lb"])(a0)};var _SetCMapData=Module["_SetCMapData"]=function(a0,a1,a2){return(_SetCMapData=Module["_SetCMapData"]=wasmExports["Mb"])(a0,a1,a2)};var _ScanPage=Module["_ScanPage"]=function(a0,a1,a2){return(_ScanPage=Module["_ScanPage"]= +wasmExports["Nb"])(a0,a1,a2)};var _GetImageBase64=Module["_GetImageBase64"]=function(a0,a1){return(_GetImageBase64=Module["_GetImageBase64"]=wasmExports["Ob"])(a0,a1)};var _GetImageBase64Len=Module["_GetImageBase64Len"]=function(a0){return(_GetImageBase64Len=Module["_GetImageBase64Len"]=wasmExports["Pb"])(a0)};var _GetImageBase64Ptr=Module["_GetImageBase64Ptr"]=function(a0){return(_GetImageBase64Ptr=Module["_GetImageBase64Ptr"]=wasmExports["Qb"])(a0)};var _GetImageBase64Free=Module["_GetImageBase64Free"]= +function(a0){return(_GetImageBase64Free=Module["_GetImageBase64Free"]=wasmExports["Rb"])(a0)};var _setThrew=function(a0,a1){return(_setThrew=wasmExports["Sb"])(a0,a1)};var stackSave=function(){return(stackSave=wasmExports["Tb"])()};var stackRestore=function(a0){return(stackRestore=wasmExports["Ub"])(a0)};var ___cxa_decrement_exception_refcount=function(a0){return(___cxa_decrement_exception_refcount=wasmExports["Vb"])(a0)};var ___cxa_increment_exception_refcount=function(a0){return(___cxa_increment_exception_refcount= +wasmExports["Wb"])(a0)};var ___cxa_can_catch=function(a0,a1,a2){return(___cxa_can_catch=wasmExports["Xb"])(a0,a1,a2)};var ___cxa_is_pointer_type=function(a0){return(___cxa_is_pointer_type=wasmExports["Yb"])(a0)};var dynCall_ji=Module["dynCall_ji"]=function(a0,a1){return(dynCall_ji=Module["dynCall_ji"]=wasmExports["Zb"])(a0,a1)};var dynCall_jiiii=Module["dynCall_jiiii"]=function(a0,a1,a2,a3,a4){return(dynCall_jiiii=Module["dynCall_jiiii"]=wasmExports["_b"])(a0,a1,a2,a3,a4)};var ___start_em_js=Module["___start_em_js"]= +2744040;var ___stop_em_js=Module["___stop_em_js"]=2744209;function invoke_iii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp); +if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(index,a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e; +_setThrew(1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!== +e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(index,a1){var sp=stackSave();try{getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp); +if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6, +a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(index){var sp=stackSave();try{getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6, +a7,a8,a9){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(index){var sp=stackSave();try{return getWasmTableEntry(index)()}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiifi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(index, +a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddi(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidi(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidddddd(index, +a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vid(index,a1,a2){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidd(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiii(index,a1,a2, +a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidd(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1, +0)}}function invoke_idddiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_didd(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_diiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp); +if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiddiii(index,a1,a2,a3,a4,a5,a6,a7,a8){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiidddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddd(index,a1,a2,a3,a4){var sp= +stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiiiiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiii(index, +a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiddiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viffffi(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1, +a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiff(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiffff(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiff(index,a1,a2,a3,a4){var sp=stackSave(); +try{return getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiddiii(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiidiiiddddd(index,a1,a2,a3, +a4,a5,a6,a7,a8,a9,a10,a11,a12){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_dii(index,a1,a2){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiddiii(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e; +_setThrew(1,0)}}function invoke_iiiddddd(index,a1,a2,a3,a4,a5,a6,a7){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiddiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){var sp= +stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_di(index,a1){var sp=stackSave();try{return getWasmTableEntry(index)(a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viidddd(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiddddddi(index, a1,a2,a3,a4,a5,a6,a7,a8,a9){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiid(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiidi(index,a1,a2,a3,a4,a5){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1, 0)}}function invoke_viiid(index,a1,a2,a3,a4){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_vdii(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiid(index,a1,a2,a3,a4,a5,a6){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiid(index, a1,a2,a3,a4,a5){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3,a4,a5)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_diii(index,a1,a2,a3){var sp=stackSave();try{return getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viif(index,a1,a2,a3){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_fif(index,a1,a2){var sp= @@ -20920,67 +22085,70 @@ if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiidii(index,a1,a2,a3,a4,a5 a2,a3)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15){var sp=stackSave();try{getWasmTableEntry(index)(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15)}catch(e){stackRestore(sp);if(e!==e+ 0)throw e;_setThrew(1,0)}}function invoke_ji(index,a1){var sp=stackSave();try{return dynCall_ji(index,a1)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return dynCall_jiiii(index,a1,a2,a3,a4)}catch(e){stackRestore(sp);if(e!==e+0)throw e;_setThrew(1,0)}}var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(){if(runDependencies>0)return;preRun(); if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else doRun()}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0)Module["preInit"].pop()()}run(); -self.drawingFile=null;function CBinaryReader(data,start,size){this.data=data;this.pos=start;this.limit=start+size}CBinaryReader.prototype.readByte=function(){var val=this.data[this.pos];this.pos+=1;return val};CBinaryReader.prototype.readInt=function(){var val=this.data[this.pos]|this.data[this.pos+1]<<8|this.data[this.pos+2]<<16|this.data[this.pos+3]<<24;this.pos+=4;return val};CBinaryReader.prototype.readDouble=function(){return this.readInt()/100};CBinaryReader.prototype.readDouble2=function(){return this.readInt()/ +function CBinaryReader(data,start,size){this.data=data;this.pos=start;this.limit=start+size}CBinaryReader.prototype.readByte=function(){var val=this.data[this.pos];this.pos+=1;return val};CBinaryReader.prototype.readInt=function(){var val=this.data[this.pos]|this.data[this.pos+1]<<8|this.data[this.pos+2]<<16|this.data[this.pos+3]<<24;this.pos+=4;return val};CBinaryReader.prototype.readDouble=function(){return this.readInt()/100};CBinaryReader.prototype.readDouble2=function(){return this.readInt()/ 1E4};CBinaryReader.prototype.readString=function(){var len=this.readInt();var val=String.prototype.fromUtf8(this.data,this.pos,len);this.pos+=len;return val};CBinaryReader.prototype.readData=function(){var len=this.readInt();var val=this.data.slice(this.pos,this.pos+len);this.pos+=len;return val};CBinaryReader.prototype.isValid=function(){return this.pos2147483647?value-4294967296:value;this.buffer[this.dataSize++]=val&255;this.buffer[this.dataSize++]=val>>>8&255;this.buffer[this.dataSize++]= val>>>16&255;this.buffer[this.dataSize++]=val>>>24&255};CBinaryWriter.prototype.writeString=function(value){var valueUtf8=value.toUtf8();this.checkAlloc(valueUtf8.length);this.buffer.set(valueUtf8,this.dataSize);this.dataSize+=valueUtf8.length};var UpdateFontsSource={Undefined:0,Page:1,Annotation:2,Forms:4};function CFile(){this.nativeFile=0;this.stream=-1;this.stream_size=0;this.type=-1;this.pages=[];this.info=null;this._isNeedPassword=false;this.fontPageIndex=-1;this.fontPageUpdateType=UpdateFontsSource.Undefined; -this.fontStreams={};this.scannedImages={}}CFile.prototype["loadFromData"]=function(arrayBuffer){var data=new Uint8Array(arrayBuffer);var _stream=Module["_malloc"](data.length);Module["HEAP8"].set(data,_stream);this.nativeFile=Module["_Open"](_stream,data.length,0);var error=Module["_GetErrorCode"](this.nativeFile);this.stream=_stream;this.stream_size=data.length;this.type=Module["_GetType"](_stream,data.length);self.drawingFile=this;if(!error)this.getInfo();this._isNeedPassword=4===error?true:false; -return error};CFile.prototype["loadFromDataWithPassword"]=function(password){if(0!=this.nativeFile)Module["_Close"](this.nativeFile);var passBuffer=password.toUtf8();var passPointer=Module["_malloc"](passBuffer.length);Module["HEAP8"].set(passBuffer,passPointer);this.nativeFile=Module["_Open"](this.stream,this.stream_size,passPointer);Module["_free"](passPointer);var error=Module["_GetErrorCode"](this.nativeFile);this.type=Module["_GetType"](this.stream,this.stream_size);self.drawingFile=this;if(!error)this.getInfo(); -this._isNeedPassword=4===error?true:false;return error};CFile.prototype["getFileAsBase64"]=function(){if(0>=this.stream)return"";return new Uint8Array(Module["HEAP8"].buffer,this.stream,this.stream_size)};CFile.prototype["isNeedPassword"]=function(){return this._isNeedPassword};CFile.prototype["isNeedCMap"]=function(){if(!this.nativeFile)return false;var isNeed=Module["_IsNeedCMap"](this.nativeFile);return isNeed===1?true:false};CFile.prototype["setCMap"]=function(memoryBuffer){if(!this.nativeFile)return; -var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["_SetCMapData"](this.nativeFile,pointer,memoryBuffer.length)};CFile.prototype["getInfo"]=function(){if(!this.nativeFile)return false;var _info=Module["_GetInfo"](this.nativeFile);if(_info==0)return false;var lenArray=new Int32Array(Module["HEAP8"].buffer,_info,4);if(lenArray==null)return false;var len=lenArray[0];len-=4;if(len<=0)return false;var buffer=new Uint8Array(Module["HEAP8"].buffer,_info+4,len); -var reader=new CBinaryReader(buffer,0,len);this.StartID=reader.readInt();var _pages=reader.readInt();for(var i=0;i<_pages;i++){var rec={};rec["W"]=reader.readInt();rec["H"]=reader.readInt();rec["Dpi"]=reader.readInt();rec["Rotate"]=reader.readInt();rec["originIndex"]=i;rec.fonts=[];rec.fontsUpdateType=UpdateFontsSource.Undefined;rec.text=null;this.pages.push(rec)}var json_info=reader.readString();try{this.info=JSON.parse(json_info)}catch(err$0){}Module["_free"](_info);return this.pages.length>0}; -CFile.prototype["close"]=function(){Module["_Close"](this.nativeFile);this.nativeFile=0;this.pages=[];this.info=null;this.StartID=null;if(this.stream>0)Module["_free"](this.stream);this.stream=-1;self.drawingFile=null};CFile.prototype["getPages"]=function(){return this.pages};CFile.prototype["openForms"]=function(){};CFile.prototype["getDocumentInfo"]=function(){return this.info};CFile.prototype["getStartID"]=function(){return this.StartID};function getOriginPage(pages,originIndex){for(var i=0;i< -pages.length;++i)if(pages[i]["originIndex"]==originIndex)return pages[i];return null}CFile.prototype["getPagePixmap"]=function(pageIndex,width,height,backgroundColor){var page=getOriginPage(this.pages,pageIndex);if(!page||page.fonts.length>0)return null;this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Page);var retValue=Module["_GetPixmap"](this.nativeFile,pageIndex,width,height,backgroundColor===undefined?16777215:backgroundColor);this.unlockPageNumForFontsLoader();if(page.fonts.length> -0){Module["_free"](retValue);retValue=null}return retValue};CFile.prototype["getGlyphs"]=function(pageIndex){var page=getOriginPage(this.pages,pageIndex);if(!page||page.fonts.length>0)return null;this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Page);var retValue=Module["_GetGlyphs"](this.nativeFile,pageIndex);this.unlockPageNumForFontsLoader();if(page.fonts.length>0)retValue=null;if(null==retValue)return null;var lenArray=new Int32Array(Module["HEAP8"].buffer,retValue,5);var len=lenArray[0]; -len-=20;if(this.onUpdateStatistics)this.onUpdateStatistics(lenArray[1],lenArray[2],lenArray[3],lenArray[4]);if(len<=0)return[];var textCommandsSrc=new Uint8Array(Module["HEAP8"].buffer,retValue+20,len);var textCommands=new Uint8Array(len);textCommands.set(textCommandsSrc);textCommandsSrc=null;return textCommands};CFile.prototype["destroyTextInfo"]=function(){Module["_DestroyTextInfo"]()};CFile.prototype["getLinks"]=function(pageIndex){var res=[];var ext=Module["_GetLinks"](this.nativeFile,pageIndex); -if(ext==0)return res;var lenArray=new Int32Array(Module["HEAP8"].buffer,ext,4);if(lenArray==null)return res;var len=lenArray[0];len-=4;if(len<=0)return res;var buffer=new Uint8Array(Module["HEAP8"].buffer,ext+4,len);var reader=new CBinaryReader(buffer,0,len);while(reader.isValid()){var rec={};rec["link"]=reader.readString();rec["dest"]=reader.readDouble();rec["x"]=reader.readDouble();rec["y"]=reader.readDouble();rec["w"]=reader.readDouble();rec["h"]=reader.readDouble();res.push(rec)}Module["_free"](ext); -return res};function readAction(reader,rec){var SType=reader.readByte();rec["S"]=SType;if(SType==14)rec["JS"]=reader.readString();else if(SType==1){rec["page"]=reader.readInt();rec["kind"]=reader.readByte();switch(rec["kind"]){case 0:case 2:case 3:case 6:case 7:{var nFlag=reader.readByte();if(nFlag&1<<0)rec["left"]=reader.readDouble();if(nFlag&1<<1)rec["top"]=reader.readDouble();if(nFlag&1<<2)rec["zoom"]=reader.readDouble();break}case 4:{rec["left"]=reader.readDouble();rec["bottom"]=reader.readDouble(); -rec["right"]=reader.readDouble();rec["top"]=reader.readDouble();break}case 1:case 5:default:break}}else if(SType==10)rec["N"]=reader.readString();else if(SType==6)rec["URI"]=reader.readString();else if(SType==9){rec["H"]=reader.readByte();var m=reader.readInt();rec["T"]=[];for(var j=0;j>1&1;var bPrint=rec["annotflag"]>>2&1;rec["noZoom"]=rec["annotflag"]>>3&1;rec["noRotate"]=rec["annotflag"]>>4&1;var bNoView=rec["annotflag"]>>5&1;rec["locked"]=rec["annotflag"]>>7&1;rec["ToggleNoView"]=rec["annotflag"]>>8&1;rec["lockedC"]=rec["annotflag"]>>9&1;rec["display"]=0;if(bHidden)rec["display"]= -1;else if(bPrint)if(bNoView)rec["display"]=3;else rec["display"]=0;else if(bNoView)rec["display"]=0;else rec["display"]=2;rec["page"]=reader.readInt();rec["rect"]={};rec["rect"]["x1"]=reader.readDouble2();rec["rect"]["y1"]=reader.readDouble2();rec["rect"]["x2"]=reader.readDouble2();rec["rect"]["y2"]=reader.readDouble2();var flags=reader.readInt();if(flags&1<<0)rec["UniqueName"]=reader.readString();if(flags&1<<1)rec["Contents"]=reader.readString();if(flags&1<<2){rec["BE"]={};rec["BE"]["S"]=reader.readByte(); -rec["BE"]["I"]=reader.readDouble()}if(flags&1<<3){var n=reader.readInt();rec["C"]=[];for(var i=0;i>6&1}function readAnnotAP(reader,AP){AP["i"]=reader.readInt();AP["x"]= -reader.readInt();AP["y"]=reader.readInt();AP["w"]=reader.readInt();AP["h"]=reader.readInt();var n=reader.readInt();for(var i=0;i0)res["CO"]=[];for(var i=0;i0)res["Parents"]=[];for(var i$5=0;i$5>0&1;rec$11["required"]=rec$11["flag"]>>1&1;rec$11["noexport"]=rec$11["flag"]>>2&1;var flags$13=reader.readInt();if(flags$13&1<<0)rec$11["userName"]=reader.readString();if(flags$13&1<<1)rec$11["defaultStyle"]=reader.readString();if(flags$13&1<<2)rec$11["font"]["actual"]= -reader.readString();if(flags$13&1<<3)rec$11["highlight"]=reader.readByte();if(flags$13&1<<4)rec$11["font"]["key"]=reader.readString();if(flags$13&1<<5){var n$14=reader.readInt();rec$11["BC"]=[];for(var i$15=0;i$150)rec$11["AA"]={};for(var i$18=0;i$18>4&1}}else if(rec$11["type"]== -29||rec$11["type"]==28){if(flags$13&1<<9)rec$11["value"]=reader.readString();rec$11["style"]=reader.readByte();if(flags$13&1<<14)rec$11["ExportValue"]=reader.readString();rec$11["NoToggleToOff"]=rec$11["flag"]>>14&1;rec$11["radiosInUnison"]=rec$11["flag"]>>25&1}else if(rec$11["type"]==30){if(flags$13&1<<9)rec$11["value"]=reader.readString();if(flags$13&1<<10)rec$11["maxLen"]=reader.readInt();if(rec$11["flag"]&1<<25)rec$11["richValue"]=reader.readString();rec$11["multiline"]=rec$11["flag"]>>12&1;rec$11["password"]= -rec$11["flag"]>>13&1;rec$11["fileSelect"]=rec$11["flag"]>>20&1;rec$11["doNotSpellCheck"]=rec$11["flag"]>>22&1;rec$11["doNotScroll"]=rec$11["flag"]>>23&1;rec$11["comb"]=rec$11["flag"]>>24&1;rec$11["richText"]=rec$11["flag"]>>25&1}else if(rec$11["type"]==31||rec$11["type"]==32){if(flags$13&1<<9)rec$11["value"]=reader.readString();if(flags$13&1<<10){var n$19=reader.readInt();rec$11["opt"]=[];for(var i$20=0;i$20>18&1;rec$11["multipleSelection"]=rec$11["flag"]>>21&1;rec$11["doNotSpellCheck"]=rec$11["flag"]>>22&1;rec$11["commitOnSelChange"]= -rec$11["flag"]>>26&1}else if(rec$11["type"]==33)rec$11["Sig"]=flags$13>>9&1;res["Fields"].push(rec$11)}Module["_free"](ext);return res};CFile.prototype["getInteractiveFormsEmbeddedFonts"]=function(){return getWidgetFonts(this.nativeFile,1)};CFile.prototype["getInteractiveFormsStandardFonts"]=function(){return getWidgetFonts(this.nativeFile,2)};CFile.prototype["getInteractiveFormsAP"]=function(pageIndex,width,height,backgroundColor,nWidget,sView,sButtonView){var nView=-1;if(sView)if(sView=="N")nView= -0;else if(sView=="D")nView=1;else if(sView=="R")nView=2;var nButtonView=-1;if(sButtonView)nButtonView=sButtonView=="Off"?0:1;var res=[];this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Forms);var ext=Module["_GetInteractiveFormsAP"](this.nativeFile,width,height,backgroundColor===undefined?16777215:backgroundColor,pageIndex,nWidget===undefined?-1:nWidget,nView,nButtonView);this.unlockPageNumForFontsLoader();if(ext==0)return res;var lenArray=new Int32Array(Module["HEAP8"].buffer,ext,4);if(lenArray== -null)return res;var len=lenArray[0];len-=4;if(len<=0)return res;var buffer=new Uint8Array(Module["HEAP8"].buffer,ext+4,len);var reader=new CBinaryReader(buffer,0,len);while(reader.isValid()){var AP={};readAnnotAP(reader,AP);res.push(AP)}Module["_free"](ext);return res};CFile.prototype["getButtonIcons"]=function(pageIndex,width,height,backgroundColor,bBase64,nWidget,sIconView){var nView=-1;if(sIconView)if(sIconView=="I")nView=0;else if(sIconView=="RI")nView=1;else if(sIconView=="IX")nView=2;var res= -{};var ext=Module["_GetButtonIcons"](this.nativeFile,backgroundColor===undefined?16777215:backgroundColor,pageIndex,bBase64?1:0,nWidget===undefined?-1:nWidget,nView);if(ext==0)return res;var lenArray=new Int32Array(Module["HEAP8"].buffer,ext,4);if(lenArray==null)return res;var len=lenArray[0];len-=4;if(len<=0)return res;var buffer=new Uint8Array(Module["HEAP8"].buffer,ext+4,len);var reader=new CBinaryReader(buffer,0,len);res["MK"]=[];res["View"]=[];while(reader.isValid()){var MK={};MK["i"]=reader.readInt(); -var n=reader.readInt();for(var i=0;i>0&1;oFont["italic"]=nFontFlag>>1&1;oFont["strikethrough"]=nFontFlag>> -3&1;oFont["underlined"]=nFontFlag>>4&1;if(nFontFlag&1<<5)oFont["vertical"]=reader.readDouble();if(nFontFlag&1<<6)oFont["actual"]=reader.readString();oFont["size"]=reader.readDouble();oFont["color"]=[];oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["name"]=reader.readString();oFont["text"]=reader.readString();rec["RC"].push(oFont)}}if(flags&1<<4)rec["CreationDate"]=reader.readString();if(flags&1<<5)rec["RefTo"]=reader.readInt(); -if(flags&1<<6)rec["RefToReason"]=reader.readByte();if(flags&1<<7)rec["Subj"]=reader.readString()}if(rec["Type"]==0){if(rec["C"]){rec["IC"]=rec["C"];delete rec["C"]}rec["Open"]=flags>>15&1;if(flags&1<<16)rec["Icon"]=reader.readByte();if(flags&1<<17)rec["StateModel"]=reader.readByte();if(flags&1<<18)rec["State"]=reader.readByte()}else if(rec["Type"]==3){rec["L"]=[];for(var i$25=0;i$25<4;++i$25)rec["L"].push(reader.readDouble());if(flags&1<<15){rec["LE"]=[];rec["LE"].push(reader.readByte());rec["LE"].push(reader.readByte())}if(flags& -1<<16){var n$26=reader.readInt();rec["IC"]=[];for(var i$27=0;i$27>19&1;if(flags&1<<20)rec["IT"]=reader.readByte();if(flags&1<<21)rec["LLO"]=reader.readDouble();if(flags&1<<22)rec["CP"]=reader.readByte();if(flags&1<<23){rec["CO"]=[];rec["CO"].push(reader.readDouble());rec["CO"].push(reader.readDouble())}}else if(rec["Type"]==14){var n$28=reader.readInt(); -rec["InkList"]=[];for(var i$29=0;i$297&&rec["Type"]<12){var n$30=reader.readInt();rec["QuadPoints"]=[];for(var i$31=0;i$310&&drawingFile.onRepaintPages)drawingFile.onRepaintPages(pagesRepaint_Page);if(pagesRepaint_Annotation.length>0&&drawingFile.onRepaintAnnotations)drawingFile.onRepaintAnnotations(pagesRepaint_Annotation); -if(pagesRepaint_Forms.length>0&&drawingFile.onRepaintForms)drawingFile.onRepaintForms(pagesRepaint_Forms);delete _t.externalCallback};if(2!==file.LoadFontAsync)file.LoadFontAsync(baseFontsPath,null)}}var memoryBuffer=fileId.toUtf8();var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["HEAP8"][status]=fileStatus==0?1:0;return pointer};function fontToMemory(file,isCheck){var idBuffer=file.GetID().toUtf8();var idPointer=Module["_malloc"](idBuffer.length); -Module["HEAP8"].set(idBuffer,idPointer);if(isCheck){var nExist=Module["_IsFontBinaryExist"](idPointer);if(nExist!=0){Module["_free"](idPointer);return}}var stream_index=file.GetStreamIndex();var stream=AscFonts.getFontStream(stream_index);var streamPointer=Module["_malloc"](stream.size);Module["HEAP8"].set(stream.data,streamPointer);Module["_SetFontBinary"](idPointer,streamPointer,stream.size);Module["_free"](streamPointer);Module["_free"](idPointer)}})(window,undefined); +this.fontStreams={};this.scannedImages={}}function CWasmPointer(){this.ptr=0}CWasmPointer.prototype.free=function(){Module["_free"](this.ptr);this.ptr=0};CWasmPointer.prototype.getReader=function(){if(!this.ptr)return null;var lenArr=new Int32Array(Module["HEAP8"].buffer,this.ptr,1);if(!lenArr){this.free();return null}var len=lenArr[0];if(len<=4){this.free();return null}len-=4;var buffer=new Uint8Array(Module["HEAP8"].buffer,this.ptr+4,len);return new CBinaryReader(buffer,0,len)};var g_module_pointer= +new CWasmPointer;CFile.prototype._free=function(ptr){Module["_free"](ptr)};CFile.prototype._getUint8Array=function(ptr,len){return new Uint8Array(Module["HEAP8"].buffer,ptr,len)};CFile.prototype._getUint8ClampedArray=function(ptr,len){return new Uint8ClampedArray(Module["HEAP8"].buffer,ptr,len)};CFile.prototype._openFile=function(buffer,password){if(buffer){var data=new Uint8Array(buffer);this.stream_size=data.length;this.stream=Module["_malloc"](this.stream_size);Module["HEAP8"].set(data,this.stream)}var passwordPtr= +0;if(password){var passwordBuf=password.toUtf8();passwordPtr=Module["_malloc"](passwordBuf.length);Module["HEAP8"].set(passwordBuf,passwordPtr)}this.nativeFile=Module["_Open"](this.stream,this.stream_size,passwordPtr);if(passwordPtr)Module["_free"](passwordPtr);return this.nativeFile>0?true:false};CFile.prototype._closeFile=function(){Module["_Close"](this.nativeFile)};CFile.prototype._getType=function(){return Module["_GetType"](this.stream,this.stream_size)};CFile.prototype._getError=function(){return Module["_GetErrorCode"](this.nativeFile)}; +CFile.prototype._isNeedCMap=function(){var isNeed=Module["_IsNeedCMap"](this.nativeFile);return isNeed===1?true:false};CFile.prototype._setCMap=function(memoryBuffer){var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["_SetCMapData"](this.nativeFile,pointer,memoryBuffer.length)};CFile.prototype._getFontByID=function(ID){if(ID===undefined)return null;var idBuffer=ID.toUtf8();var idPointer=Module["_malloc"](idBuffer.length);Module["HEAP8"].set(idBuffer, +idPointer);g_module_pointer.ptr=Module["_GetFontBinary"](this.nativeFile,idPointer);Module["_free"](idPointer);var reader=g_module_pointer.getReader();if(!reader)return null;var nFontLength=reader.readInt();var np1=reader.readInt();var np2=reader.readInt();var pFontPointer=np2<<32|np1;var res=new Uint8Array(Module["HEAP8"].buffer,pFontPointer,nFontLength);g_module_pointer.free();return res};CFile.prototype._getInteractiveFormsFonts=function(type){g_module_pointer.ptr=Module["_GetInteractiveFormsFonts"](this.nativeFile, +type);return g_module_pointer};CFile.prototype._getInfo=function(){g_module_pointer.ptr=Module["_GetInfo"](this.nativeFile);return g_module_pointer};CFile.prototype._getStructure=function(){g_module_pointer.ptr=Module["_GetStructure"](this.nativeFile);return g_module_pointer};CFile.prototype._getLinks=function(pageIndex){g_module_pointer.ptr=Module["_GetLinks"](this.nativeFile,pageIndex);return g_module_pointer};CFile.prototype._getInteractiveFormsInfo=function(){g_module_pointer.ptr=Module["_GetInteractiveFormsInfo"](this.nativeFile); +return g_module_pointer};CFile.prototype._getAnnotationsInfo=function(pageIndex){g_module_pointer.ptr=Module["_GetAnnotationsInfo"](this.nativeFile,pageIndex===undefined?-1:pageIndex);return g_module_pointer};CFile.prototype._getButtonIcons=function(backgroundColor,pageIndex,isBase64,nWidget,nView){g_module_pointer.ptr=Module["_GetButtonIcons"](this.nativeFile,backgroundColor===undefined?16777215:backgroundColor,pageIndex,isBase64?1:0,nWidget===undefined?-1:nWidget,nView);return g_module_pointer}; +CFile.prototype._getAnnotationsAP=function(width,height,backgroundColor,pageIndex,nAnnot,nView){g_module_pointer.ptr=Module["_GetAnnotationsAP"](this.nativeFile,width,height,backgroundColor===undefined?16777215:backgroundColor,pageIndex,nAnnot===undefined?-1:nAnnot,nView);return g_module_pointer};CFile.prototype._getInteractiveFormsAP=function(width,height,backgroundColor,pageIndex,nWidget,nView,nButtonView){g_module_pointer.ptr=Module["_GetInteractiveFormsAP"](this.nativeFile,width,height,backgroundColor=== +undefined?16777215:backgroundColor,pageIndex,nWidget===undefined?-1:nWidget,nView,nButtonView);return g_module_pointer};CFile.prototype._scanPage=function(page,mode){g_module_pointer.ptr=Module["_ScanPage"](this.nativeFile,page,mode===undefined?0:mode);return g_module_pointer};CFile.prototype._getImageBase64=function(rId){var strPtr=Module["_GetImageBase64"](this.nativeFile,rId);if(0==strPtr)return"error";var len=Module["_GetImageBase64Len"](strPtr);var ptr=Module["_GetImageBase64Ptr"](strPtr);var buffer= +new Uint8Array(Module["HEAP8"].buffer,ptr,len);var result=String.prototype.fromUtf8(buffer,0,len);Module["_GetImageBase64Free"](strPtr);return result};CFile.prototype._getGlyphs=function(pageIndex){var ptr=Module["_GetGlyphs"](this.nativeFile,pageIndex);if(!ptr)return null;var ptrArray=new Int32Array(Module["HEAP8"].buffer,ptr,5);var len=ptrArray[0];len-=20;var res={};res.info=[ptrArray[1],ptrArray[2],ptrArray[3],ptrArray[4]];if(len>0){var textCommandsSrc=new Uint8Array(Module["HEAP8"].buffer,ptr+ +20,len);res.result=new Uint8Array(len);res.result.set(textCommandsSrc)}else res.result=[];return res};CFile.prototype._destroyTextInfo=function(){Module["_DestroyTextInfo"]()};CFile.prototype._getPixmap=function(pageIndex,width,height,backgroundColor){return Module["_GetPixmap"](this.nativeFile,pageIndex,width,height,backgroundColor===undefined?16777215:backgroundColor)};CFile.prototype._InitializeFonts=function(basePath){if(undefined!==basePath&&""!==basePath)baseFontsPath=basePath;if(!window["g_fonts_selection_bin"])return; +var memoryBuffer=window["g_fonts_selection_bin"].toUtf8();var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["_InitializeFontsBase64"](pointer,memoryBuffer.length);Module["_free"](pointer);delete window["g_fonts_selection_bin"];var rangesBuffer=new CBinaryWriter;var ranges=AscFonts.getSymbolRanges();var rangesCount=ranges.length;rangesBuffer.writeUint(rangesCount);for(var i=0;i0&&drawingFile.onRepaintPages)drawingFile.onRepaintPages(pagesRepaint_Page);if(pagesRepaint_Annotation.length>0&&drawingFile.onRepaintAnnotations)drawingFile.onRepaintAnnotations(pagesRepaint_Annotation);if(pagesRepaint_Forms.length>0&&drawingFile.onRepaintForms)drawingFile.onRepaintForms(pagesRepaint_Forms);delete _t.externalCallback};if(2!==file.LoadFontAsync)file.LoadFontAsync(baseFontsPath,null)}}var memoryBuffer= +fileId.toUtf8();var pointer=Module["_malloc"](memoryBuffer.length);Module.HEAP8.set(memoryBuffer,pointer);Module["HEAP8"][status]=fileStatus==0?1:0;return pointer};CFile.prototype.lockPageNumForFontsLoader=function(pageIndex,type){this.fontPageIndex=pageIndex;this.fontPageUpdateType=type};CFile.prototype.unlockPageNumForFontsLoader=function(){this.fontPageIndex=-1;drawingFile.fontPageUpdateType=UpdateFontsSource.Undefined};CFile.prototype.getOriginPage=function(originIndex){for(var i=0;i0)this._free(this.stream); +this.stream=-1;self.drawingFile=null};CFile.prototype["getFileBinary"]=function(){if(0>=this.stream)return"";return new Uint8Array(Module["HEAP8"].buffer,this.stream,this.stream_size)};CFile.prototype["isNeedPassword"]=function(){return this._isNeedPassword};CFile.prototype.getInfo=function(){if(!this.nativeFile)return false;var ptr=this._getInfo();var reader=ptr.getReader();if(!reader)return false;this.StartID=reader.readInt();var _pages=reader.readInt();for(var i=0;i<_pages;i++){var rec={};rec["W"]= +reader.readInt();rec["H"]=reader.readInt();rec["Dpi"]=reader.readInt();rec["Rotate"]=reader.readInt();rec["originIndex"]=i;rec.fonts=[];rec.fontsUpdateType=UpdateFontsSource.Undefined;rec.text=null;this.pages.push(rec)}var json_info=reader.readString();try{this.info=JSON.parse(json_info)}catch(err$1){}ptr.free();return this.pages.length>0};CFile.prototype["getStructure"]=function(){var ptr=this._getStructure();var reader=ptr.getReader();if(!reader)return[];var res=[];while(reader.isValid()){var rec= +{};rec["page"]=reader.readInt();rec["level"]=reader.readInt();rec["y"]=reader.readDouble();rec["description"]=reader.readString();res.push(rec)}ptr.free();return res};CFile.prototype["getLinks"]=function(pageIndex){var ptr=this._getLinks(pageIndex);var reader=ptr.getReader();if(!reader)return[];var res=[];while(reader.isValid()){var rec={};rec["link"]=reader.readString();rec["dest"]=reader.readDouble();rec["x"]=reader.readDouble();rec["y"]=reader.readDouble();rec["w"]=reader.readDouble();rec["h"]= +reader.readDouble();res.push(rec)}ptr.free();return res};CFile.prototype["getGlyphs"]=function(pageIndex){var i=this.getOriginPage(pageIndex);if(i<0)return null;var page=this.pages[i];if(!page||page.fonts.length>0)return null;this.lockPageNumForFontsLoader(i,UpdateFontsSource.Page);var res=this._getGlyphs(pageIndex);this.unlockPageNumForFontsLoader();if(page.fonts.length>0){res=null;return null}if(res&&this.onUpdateStatistics)this.onUpdateStatistics(res.info[0],res.info[1],res.info[2],res.info[3]); +return res.result||null};CFile.prototype["destroyTextInfo"]=function(){this._destroyTextInfo()};CFile.prototype.getWidgetFonts=function(type){var ptr=this._getInteractiveFormsFonts(type);var reader=ptr.getReader();if(!reader)return[];var res=[];while(reader.isValid()){var n=reader.readInt();for(var i=0;i>1&1;var bPrint=rec["annotflag"]>>2&1;rec["noZoom"]= +rec["annotflag"]>>3&1;rec["noRotate"]=rec["annotflag"]>>4&1;var bNoView=rec["annotflag"]>>5&1;rec["locked"]=rec["annotflag"]>>7&1;rec["ToggleNoView"]=rec["annotflag"]>>8&1;rec["lockedC"]=rec["annotflag"]>>9&1;rec["display"]=0;if(bHidden)rec["display"]=1;else if(bPrint)if(bNoView)rec["display"]=3;else rec["display"]=0;else if(bNoView)rec["display"]=0;else rec["display"]=2;rec["page"]=reader.readInt();rec["rect"]={};rec["rect"]["x1"]=reader.readDouble2();rec["rect"]["y1"]=reader.readDouble2();rec["rect"]["x2"]= +reader.readDouble2();rec["rect"]["y2"]=reader.readDouble2();var flags=reader.readInt();if(flags&1<<0)rec["UniqueName"]=reader.readString();if(flags&1<<1)rec["Contents"]=reader.readString();if(flags&1<<2){rec["BE"]={};rec["BE"]["S"]=reader.readByte();rec["BE"]["I"]=reader.readDouble()}if(flags&1<<3){var n=reader.readInt();rec["C"]=[];for(var i=0;i>6&1;if(flags&1<<7)rec["OUserID"]=reader.readString()}function readAnnotAP(reader,AP){AP["i"]=reader.readInt();AP["x"]=reader.readInt();AP["y"]=reader.readInt();AP["w"]=reader.readInt();AP["h"]=reader.readInt();var n=reader.readInt();for(var i=0;i0)res["CO"]=[];for(var i=0;i0)res["Parents"]= +[];for(var i$6=0;i$6>0&1;rec$12["required"]=rec$12["flag"]>>1&1;rec$12["noexport"]=rec$12["flag"]>>2&1;var flags$14=reader.readInt();if(flags$14&1<<0)rec$12["userName"]=reader.readString();if(flags$14&1<<1)rec$12["defaultStyle"]=reader.readString();if(flags$14&1<<2)rec$12["font"]["actual"]=reader.readString();if(flags$14&1<<3)rec$12["highlight"]=reader.readByte(); +if(flags$14&1<<4)rec$12["font"]["key"]=reader.readString();if(flags$14&1<<5){var n$15=reader.readInt();rec$12["BC"]=[];for(var i$16=0;i$160)rec$12["AA"]={};for(var i$19=0;i$19>4&1}}else if(rec$12["type"]==29||rec$12["type"]==28){if(flags$14&1<<9)rec$12["value"]=reader.readString(); +rec$12["style"]=reader.readByte();if(flags$14&1<<14)rec$12["ExportValue"]=reader.readString();rec$12["NoToggleToOff"]=rec$12["flag"]>>14&1;rec$12["radiosInUnison"]=rec$12["flag"]>>25&1}else if(rec$12["type"]==30){if(flags$14&1<<9)rec$12["value"]=reader.readString();if(flags$14&1<<10)rec$12["maxLen"]=reader.readInt();if(rec$12["flag"]&1<<25)rec$12["richValue"]=reader.readString();rec$12["multiline"]=rec$12["flag"]>>12&1;rec$12["password"]=rec$12["flag"]>>13&1;rec$12["fileSelect"]=rec$12["flag"]>>20& +1;rec$12["doNotSpellCheck"]=rec$12["flag"]>>22&1;rec$12["doNotScroll"]=rec$12["flag"]>>23&1;rec$12["comb"]=rec$12["flag"]>>24&1;rec$12["richText"]=rec$12["flag"]>>25&1}else if(rec$12["type"]==31||rec$12["type"]==32){if(flags$14&1<<9)rec$12["value"]=reader.readString();if(flags$14&1<<10){var n$20=reader.readInt();rec$12["opt"]=[];for(var i$21=0;i$21>18&1;rec$12["multipleSelection"]=rec$12["flag"]>>21&1;rec$12["doNotSpellCheck"]=rec$12["flag"]>>22&1;rec$12["commitOnSelChange"]=rec$12["flag"]>>26&1}else if(rec$12["type"]== +33)rec$12["Sig"]=flags$14>>9&1;res["Fields"].push(rec$12)}ptr.free();return res};CFile.prototype["getInteractiveFormsAP"]=function(pageIndex,width,height,backgroundColor,nWidget,sView,sButtonView){var nView=-1;if(sView)if(sView=="N")nView=0;else if(sView=="D")nView=1;else if(sView=="R")nView=2;var nButtonView=-1;if(sButtonView)nButtonView=sButtonView=="Off"?0:1;this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Forms);var ptr=this._getInteractiveFormsAP(width,height,backgroundColor,pageIndex, +nWidget,nView,nButtonView);var reader=ptr.getReader();this.unlockPageNumForFontsLoader();if(!reader)return[];var res=[];while(reader.isValid()){var AP={};readAnnotAP(reader,AP);res.push(AP)}ptr.free();return res};CFile.prototype["getButtonIcons"]=function(pageIndex,width,height,backgroundColor,bBase64,nWidget,sIconView){var nView=-1;if(sIconView)if(sIconView=="I")nView=0;else if(sIconView=="RI")nView=1;else if(sIconView=="IX")nView=2;var ptr=this._getButtonIcons(backgroundColor,pageIndex,bBase64, +nWidget,nView);var reader=ptr.getReader();if(!reader)return{};var res={};res["MK"]=[];res["View"]=[];while(reader.isValid()){var MK={};MK["i"]=reader.readInt();var n=reader.readInt();for(var i=0;i>0&1;oFont["italic"]=nFontFlag>>1&1;oFont["strikethrough"]=nFontFlag>>3&1;oFont["underlined"]=nFontFlag>>4&1;if(nFontFlag&1<<5)oFont["vertical"]=reader.readDouble();if(nFontFlag&1<<6)oFont["actual"]=reader.readString(); +oFont["size"]=reader.readDouble();oFont["color"]=[];oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["name"]=reader.readString();oFont["text"]=reader.readString();rec["RC"].push(oFont)}}if(flags&1<<4)rec["CreationDate"]=reader.readString();if(flags&1<<5)rec["RefTo"]=reader.readInt();if(flags&1<<6)rec["RefToReason"]=reader.readByte();if(flags&1<<7)rec["Subj"]=reader.readString()}if(rec["Type"]==0){if(rec["C"]){rec["IC"]= +rec["C"];delete rec["C"]}rec["Open"]=flags>>15&1;if(flags&1<<16)rec["Icon"]=reader.readByte();if(flags&1<<17)rec["StateModel"]=reader.readByte();if(flags&1<<18)rec["State"]=reader.readByte()}else if(rec["Type"]==3){rec["L"]=[];for(var i$26=0;i$26<4;++i$26)rec["L"].push(reader.readDouble());if(flags&1<<15){rec["LE"]=[];rec["LE"].push(reader.readByte());rec["LE"].push(reader.readByte())}if(flags&1<<16){var n$27=reader.readInt();rec["IC"]=[];for(var i$28=0;i$28>19&1;if(flags&1<<20)rec["IT"]=reader.readByte();if(flags&1<<21)rec["LLO"]=reader.readDouble();if(flags&1<<22)rec["CP"]=reader.readByte();if(flags&1<<23){rec["CO"]=[];rec["CO"].push(reader.readDouble());rec["CO"].push(reader.readDouble())}}else if(rec["Type"]==14){var n$29=reader.readInt();rec["InkList"]=[];for(var i$30=0;i$307&&rec["Type"]<12){var n$31=reader.readInt();rec["QuadPoints"]=[];for(var i$32=0;i$320)return null;this.lockPageNumForFontsLoader(i,UpdateFontsSource.Page);var ptr=this._getPixmap(pageIndex,width,height,backgroundColor);this.unlockPageNumForFontsLoader();if(page.fonts.length>0){this._free(ptr);ptr=null}return ptr};function addToArrayAsDictionary(arr,value){var isFound=false;for(var i=0,len=arr.length;i=pageIndex)pages[j]+=1}};CFile.prototype["removePage"]=function(pageIndex){var result=this.pages.splice(pageIndex,1);if(this.fontStreams)for(var i in this.fontStreams){var pages=this.fontStreams[i].pages;for(var j=0;jpageIndex)pages[j]-= +1;else if(pages[j]==pageIndex)pages.splice(j,1)}return result};self["AscViewer"]["Free"]=function(pointer){CFile.prototype._free(pointer)};self["AscViewer"]["InitializeFonts"]=function(basePath){return CFile.prototype._InitializeFonts(basePath)};self["AscViewer"]["CheckStreamId"]=function(data,status){return CFile.prototype._CheckStreamId(data,status)};self["AscViewer"]["CDrawingFile"]=CFile;self.drawingFile=null})(window,undefined); diff --git a/pdf/src/engine/drawingfile_native.js b/pdf/src/engine/drawingfile_native.js new file mode 100644 index 0000000000..c632571331 --- /dev/null +++ b/pdf/src/engine/drawingfile_native.js @@ -0,0 +1,93 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + (function(window,undefined){function CBinaryReader(data,start,size){this.data=data;this.pos=start;this.limit=start+size}CBinaryReader.prototype.readByte=function(){var val=this.data[this.pos];this.pos+=1;return val};CBinaryReader.prototype.readInt=function(){var val=this.data[this.pos]|this.data[this.pos+1]<<8|this.data[this.pos+2]<<16|this.data[this.pos+3]<<24;this.pos+=4;return val};CBinaryReader.prototype.readDouble=function(){return this.readInt()/100};CBinaryReader.prototype.readDouble2=function(){return this.readInt()/ +1E4};CBinaryReader.prototype.readString=function(){var len=this.readInt();var val=String.prototype.fromUtf8(this.data,this.pos,len);this.pos+=len;return val};CBinaryReader.prototype.readData=function(){var len=this.readInt();var val=this.data.slice(this.pos,this.pos+len);this.pos+=len;return val};CBinaryReader.prototype.isValid=function(){return this.pos2147483647?value-4294967296:value;this.buffer[this.dataSize++]=val&255;this.buffer[this.dataSize++]=val>>>8&255;this.buffer[this.dataSize++]= +val>>>16&255;this.buffer[this.dataSize++]=val>>>24&255};CBinaryWriter.prototype.writeString=function(value){var valueUtf8=value.toUtf8();this.checkAlloc(valueUtf8.length);this.buffer.set(valueUtf8,this.dataSize);this.dataSize+=valueUtf8.length};var UpdateFontsSource={Undefined:0,Page:1,Annotation:2,Forms:4};function CFile(){this.nativeFile=0;this.stream=-1;this.stream_size=0;this.type=-1;this.pages=[];this.info=null;this._isNeedPassword=false;this.fontPageIndex=-1;this.fontPageUpdateType=UpdateFontsSource.Undefined; +this.fontStreams={};this.scannedImages={}}(function(){if(undefined!==String.prototype.fromUtf8&&undefined!==String.prototype.toUtf8)return;var STRING_UTF8_BUFFER_LENGTH=1024;var STRING_UTF8_BUFFER=new ArrayBuffer(STRING_UTF8_BUFFER_LENGTH);String.prototype.fromUtf8=function(buffer,start,len){if(undefined===start)start=0;if(undefined===len)len=buffer.length-start;var result="";var index=start;var end=start+len;while(index>10,56320|ch&1023)}}return result};String.prototype.toUtf8=function(isNoEndNull,isUseBuffer){var inputLen=this.length;var testLen=6*inputLen+1;var tmpStrings=isUseBuffer&&testLen=55296&&code<=57343&&index>6;outputData[outputIndex++]=128|code&63}else if(code<65536){outputData[outputIndex++]=224| +code>>12;outputData[outputIndex++]=128|code>>6&63;outputData[outputIndex++]=128|code&63}else if(code<2097151){outputData[outputIndex++]=240|code>>18;outputData[outputIndex++]=128|code>>12&63;outputData[outputIndex++]=128|code>>6&63;outputData[outputIndex++]=128|code&63}else if(code<67108863){outputData[outputIndex++]=248|code>>24;outputData[outputIndex++]=128|code>>18&63;outputData[outputIndex++]=128|code>>12&63;outputData[outputIndex++]=128|code>>6&63;outputData[outputIndex++]=128|code&63}else if(code< +2147483647){outputData[outputIndex++]=252|code>>30;outputData[outputIndex++]=128|code>>24&63;outputData[outputIndex++]=128|code>>18&63;outputData[outputIndex++]=128|code>>12&63;outputData[outputIndex++]=128|code>>6&63;outputData[outputIndex++]=128|code&63}}if(isNoEndNull!==true)outputData[outputIndex++]=0;return new Uint8Array(tmpStrings,0,outputIndex)};function StringPointer(pointer,len){this.ptr=pointer;this.length=len}StringPointer.prototype.free=function(){if(0!==this.ptr)Module["_free"](this.ptr)}; +String.prototype.toUtf8Pointer=function(isNoEndNull){var tmp=this.toUtf8(isNoEndNull,true);var pointer=Module["_malloc"](tmp.length);if(0==pointer)return null;Module["HEAP8"].set(tmp,pointer);return new StringPointer(pointer,tmp.length)}})();function CNativePointer(){this.ptr=null}CNativePointer.prototype.free=function(){if(this.ptr)g_native_drawing_file["FreeWasmData"](this.ptr);this.ptr=null};CNativePointer.prototype.getReader=function(){if(!this.ptr)return null;return new CBinaryReader(this.ptr, +0,this.ptr.length)};var g_module_pointer=new CNativePointer;CFile.prototype._free=function(ptr){};CFile.prototype._getUint8Array=function(ptr,len){};CFile.prototype._getUint8ClampedArray=function(ptr,len){};CFile.prototype._openFile=function(buffer,password){var res=false;if(!buffer)res=-1!==g_native_drawing_file["GetType"]();if(res)this.nativeFile=1;return res};CFile.prototype._closeFile=function(){g_native_drawing_file["CloseFile"]();this.nativeFile=0};CFile.prototype._getType=function(){return g_native_drawing_file["GetType"]()}; +CFile.prototype._getError=function(){return g_native_drawing_file["GetErrorCode"]()};CFile.prototype._isNeedCMap=function(){return g_native_drawing_file["IsNeedCMap"]()};CFile.prototype._setCMap=function(memoryBuffer){};CFile.prototype._getFontByID=function(ID){return g_native_drawing_file["GetFontBinary"](ID)};CFile.prototype._getInteractiveFormsFonts=function(type){g_module_pointer.ptr=g_native_drawing_file["GetInteractiveFormsFonts"](type);return g_module_pointer};CFile.prototype._getInfo=function(){g_module_pointer.ptr= +g_native_drawing_file["GetInfo"]();return g_module_pointer};CFile.prototype._getStructure=function(){g_module_pointer.ptr=g_native_drawing_file["GetStructure"]();return g_module_pointer};CFile.prototype._getLinks=function(pageIndex){g_module_pointer.ptr=g_native_drawing_file["GetLinks"](pageIndex);return g_module_pointer};CFile.prototype._getInteractiveFormsInfo=function(){g_module_pointer.ptr=g_native_drawing_file["GetInteractiveFormsInfo"]();return g_module_pointer};CFile.prototype._getAnnotationsInfo= +function(pageIndex){g_module_pointer.ptr=g_native_drawing_file["GetAnnotationsInfo"](pageIndex===undefined?-1:pageIndex);return g_module_pointer};CFile.prototype._getButtonIcons=function(backgroundColor,pageIndex,isBase64,nWidget,nView){g_module_pointer.ptr=g_native_drawing_file["GetButtonIcons"](backgroundColor===undefined?16777215:backgroundColor,pageIndex,isBase64?1:0,nWidget===undefined?-1:nWidget,nView);return g_module_pointer};CFile.prototype._getAnnotationsAP=function(width,height,backgroundColor, +pageIndex,nAnnot,nView){g_module_pointer.ptr=g_native_drawing_file["GetAnnotationsAP"](width,height,backgroundColor===undefined?16777215:backgroundColor,pageIndex,nAnnot===undefined?-1:nAnnot,nView);return g_module_pointer};CFile.prototype._getInteractiveFormsAP=function(width,height,backgroundColor,pageIndex,nWidget,nView,nButtonView){g_module_pointer.ptr=g_native_drawing_file["GetInteractiveFormsAP"](width,height,backgroundColor===undefined?16777215:backgroundColor,pageIndex,nWidget===undefined? +-1:nWidget,nView,nButtonView);return g_module_pointer};CFile.prototype._scanPage=function(page,mode){g_module_pointer.ptr=g_native_drawing_file["ScanPage"](page,mode===undefined?0:mode);return g_module_pointer};CFile.prototype._getImageBase64=function(rId){return g_native_drawing_file["GetImageBase64"](rId)};CFile.prototype._getGlyphs=function(pageIndex){var res={};res.info=[0,0,0,0];res.result=[];return res};CFile.prototype._destroyTextInfo=function(){g_native_drawing_file["DestroyTextInfo"](rId)}; +CFile.prototype._getPixmap=function(pageIndex,width,height,backgroundColor){return null};CFile.prototype._InitializeFonts=function(basePath){};CFile.prototype._CheckStreamId=function(data,status){};CFile.prototype.lockPageNumForFontsLoader=function(pageIndex,type){this.fontPageIndex=pageIndex;this.fontPageUpdateType=type};CFile.prototype.unlockPageNumForFontsLoader=function(){this.fontPageIndex=-1;drawingFile.fontPageUpdateType=UpdateFontsSource.Undefined};CFile.prototype.getOriginPage=function(originIndex){for(var i= +0;i0)this._free(this.stream);this.stream=-1;self.drawingFile=null};CFile.prototype["getFileBinary"]=function(){if(0>=this.stream)return"";return new Uint8Array(Module["HEAP8"].buffer,this.stream,this.stream_size)};CFile.prototype["isNeedPassword"]=function(){return this._isNeedPassword};CFile.prototype.getInfo=function(){if(!this.nativeFile)return false;var ptr=this._getInfo();var reader=ptr.getReader();if(!reader)return false;this.StartID=reader.readInt(); +var _pages=reader.readInt();for(var i=0;i<_pages;i++){var rec={};rec["W"]=reader.readInt();rec["H"]=reader.readInt();rec["Dpi"]=reader.readInt();rec["Rotate"]=reader.readInt();rec["originIndex"]=i;rec.fonts=[];rec.fontsUpdateType=UpdateFontsSource.Undefined;rec.text=null;this.pages.push(rec)}var json_info=reader.readString();try{this.info=JSON.parse(json_info)}catch(err){}ptr.free();return this.pages.length>0};CFile.prototype["getStructure"]=function(){var ptr=this._getStructure();var reader=ptr.getReader(); +if(!reader)return[];var res=[];while(reader.isValid()){var rec={};rec["page"]=reader.readInt();rec["level"]=reader.readInt();rec["y"]=reader.readDouble();rec["description"]=reader.readString();res.push(rec)}ptr.free();return res};CFile.prototype["getLinks"]=function(pageIndex){var ptr=this._getLinks(pageIndex);var reader=ptr.getReader();if(!reader)return[];var res=[];while(reader.isValid()){var rec={};rec["link"]=reader.readString();rec["dest"]=reader.readDouble();rec["x"]=reader.readDouble();rec["y"]= +reader.readDouble();rec["w"]=reader.readDouble();rec["h"]=reader.readDouble();res.push(rec)}ptr.free();return res};CFile.prototype["getGlyphs"]=function(pageIndex){var i=this.getOriginPage(pageIndex);if(i<0)return null;var page=this.pages[i];if(!page||page.fonts.length>0)return null;this.lockPageNumForFontsLoader(i,UpdateFontsSource.Page);var res=this._getGlyphs(pageIndex);this.unlockPageNumForFontsLoader();if(page.fonts.length>0){res=null;return null}if(res&&this.onUpdateStatistics)this.onUpdateStatistics(res.info[0], +res.info[1],res.info[2],res.info[3]);return res.result||null};CFile.prototype["destroyTextInfo"]=function(){this._destroyTextInfo()};CFile.prototype.getWidgetFonts=function(type){var ptr=this._getInteractiveFormsFonts(type);var reader=ptr.getReader();if(!reader)return[];var res=[];while(reader.isValid()){var n=reader.readInt();for(var i=0;i>1&1;var bPrint=rec["annotflag"]>>2&1;rec["noZoom"]= +rec["annotflag"]>>3&1;rec["noRotate"]=rec["annotflag"]>>4&1;var bNoView=rec["annotflag"]>>5&1;rec["locked"]=rec["annotflag"]>>7&1;rec["ToggleNoView"]=rec["annotflag"]>>8&1;rec["lockedC"]=rec["annotflag"]>>9&1;rec["display"]=0;if(bHidden)rec["display"]=1;else if(bPrint)if(bNoView)rec["display"]=3;else rec["display"]=0;else if(bNoView)rec["display"]=0;else rec["display"]=2;rec["page"]=reader.readInt();rec["rect"]={};rec["rect"]["x1"]=reader.readDouble2();rec["rect"]["y1"]=reader.readDouble2();rec["rect"]["x2"]= +reader.readDouble2();rec["rect"]["y2"]=reader.readDouble2();var flags=reader.readInt();if(flags&1<<0)rec["UniqueName"]=reader.readString();if(flags&1<<1)rec["Contents"]=reader.readString();if(flags&1<<2){rec["BE"]={};rec["BE"]["S"]=reader.readByte();rec["BE"]["I"]=reader.readDouble()}if(flags&1<<3){var n=reader.readInt();rec["C"]=[];for(var i=0;i>6&1;if(flags&1<<7)rec["OUserID"]=reader.readString()}function readAnnotAP(reader,AP){AP["i"]=reader.readInt();AP["x"]=reader.readInt();AP["y"]=reader.readInt();AP["w"]=reader.readInt();AP["h"]=reader.readInt();var n=reader.readInt();for(var i=0;i0)res["CO"]=[];for(var i=0;i0)res["Parents"]= +[];for(var i$4=0;i$4>0&1;rec$10["required"]=rec$10["flag"]>>1&1;rec$10["noexport"]=rec$10["flag"]>>2&1;var flags$12=reader.readInt();if(flags$12&1<<0)rec$10["userName"]=reader.readString();if(flags$12&1<<1)rec$10["defaultStyle"]=reader.readString();if(flags$12&1<<2)rec$10["font"]["actual"]=reader.readString();if(flags$12&1<<3)rec$10["highlight"]=reader.readByte(); +if(flags$12&1<<4)rec$10["font"]["key"]=reader.readString();if(flags$12&1<<5){var n$13=reader.readInt();rec$10["BC"]=[];for(var i$14=0;i$140)rec$10["AA"]={};for(var i$17=0;i$17>4&1}}else if(rec$10["type"]==29||rec$10["type"]==28){if(flags$12&1<<9)rec$10["value"]=reader.readString(); +rec$10["style"]=reader.readByte();if(flags$12&1<<14)rec$10["ExportValue"]=reader.readString();rec$10["NoToggleToOff"]=rec$10["flag"]>>14&1;rec$10["radiosInUnison"]=rec$10["flag"]>>25&1}else if(rec$10["type"]==30){if(flags$12&1<<9)rec$10["value"]=reader.readString();if(flags$12&1<<10)rec$10["maxLen"]=reader.readInt();if(rec$10["flag"]&1<<25)rec$10["richValue"]=reader.readString();rec$10["multiline"]=rec$10["flag"]>>12&1;rec$10["password"]=rec$10["flag"]>>13&1;rec$10["fileSelect"]=rec$10["flag"]>>20& +1;rec$10["doNotSpellCheck"]=rec$10["flag"]>>22&1;rec$10["doNotScroll"]=rec$10["flag"]>>23&1;rec$10["comb"]=rec$10["flag"]>>24&1;rec$10["richText"]=rec$10["flag"]>>25&1}else if(rec$10["type"]==31||rec$10["type"]==32){if(flags$12&1<<9)rec$10["value"]=reader.readString();if(flags$12&1<<10){var n$18=reader.readInt();rec$10["opt"]=[];for(var i$19=0;i$19>18&1;rec$10["multipleSelection"]=rec$10["flag"]>>21&1;rec$10["doNotSpellCheck"]=rec$10["flag"]>>22&1;rec$10["commitOnSelChange"]=rec$10["flag"]>>26&1}else if(rec$10["type"]== +33)rec$10["Sig"]=flags$12>>9&1;res["Fields"].push(rec$10)}ptr.free();return res};CFile.prototype["getInteractiveFormsAP"]=function(pageIndex,width,height,backgroundColor,nWidget,sView,sButtonView){var nView=-1;if(sView)if(sView=="N")nView=0;else if(sView=="D")nView=1;else if(sView=="R")nView=2;var nButtonView=-1;if(sButtonView)nButtonView=sButtonView=="Off"?0:1;this.lockPageNumForFontsLoader(pageIndex,UpdateFontsSource.Forms);var ptr=this._getInteractiveFormsAP(width,height,backgroundColor,pageIndex, +nWidget,nView,nButtonView);var reader=ptr.getReader();this.unlockPageNumForFontsLoader();if(!reader)return[];var res=[];while(reader.isValid()){var AP={};readAnnotAP(reader,AP);res.push(AP)}ptr.free();return res};CFile.prototype["getButtonIcons"]=function(pageIndex,width,height,backgroundColor,bBase64,nWidget,sIconView){var nView=-1;if(sIconView)if(sIconView=="I")nView=0;else if(sIconView=="RI")nView=1;else if(sIconView=="IX")nView=2;var ptr=this._getButtonIcons(backgroundColor,pageIndex,bBase64, +nWidget,nView);var reader=ptr.getReader();if(!reader)return{};var res={};res["MK"]=[];res["View"]=[];while(reader.isValid()){var MK={};MK["i"]=reader.readInt();var n=reader.readInt();for(var i=0;i>0&1;oFont["italic"]=nFontFlag>>1&1;oFont["strikethrough"]=nFontFlag>>3&1;oFont["underlined"]=nFontFlag>>4&1;if(nFontFlag&1<<5)oFont["vertical"]=reader.readDouble();if(nFontFlag&1<<6)oFont["actual"]=reader.readString(); +oFont["size"]=reader.readDouble();oFont["color"]=[];oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["color"].push(reader.readDouble2());oFont["name"]=reader.readString();oFont["text"]=reader.readString();rec["RC"].push(oFont)}}if(flags&1<<4)rec["CreationDate"]=reader.readString();if(flags&1<<5)rec["RefTo"]=reader.readInt();if(flags&1<<6)rec["RefToReason"]=reader.readByte();if(flags&1<<7)rec["Subj"]=reader.readString()}if(rec["Type"]==0){if(rec["C"]){rec["IC"]= +rec["C"];delete rec["C"]}rec["Open"]=flags>>15&1;if(flags&1<<16)rec["Icon"]=reader.readByte();if(flags&1<<17)rec["StateModel"]=reader.readByte();if(flags&1<<18)rec["State"]=reader.readByte()}else if(rec["Type"]==3){rec["L"]=[];for(var i$24=0;i$24<4;++i$24)rec["L"].push(reader.readDouble());if(flags&1<<15){rec["LE"]=[];rec["LE"].push(reader.readByte());rec["LE"].push(reader.readByte())}if(flags&1<<16){var n$25=reader.readInt();rec["IC"]=[];for(var i$26=0;i$26>19&1;if(flags&1<<20)rec["IT"]=reader.readByte();if(flags&1<<21)rec["LLO"]=reader.readDouble();if(flags&1<<22)rec["CP"]=reader.readByte();if(flags&1<<23){rec["CO"]=[];rec["CO"].push(reader.readDouble());rec["CO"].push(reader.readDouble())}}else if(rec["Type"]==14){var n$27=reader.readInt();rec["InkList"]=[];for(var i$28=0;i$287&&rec["Type"]<12){var n$29=reader.readInt();rec["QuadPoints"]=[];for(var i$30=0;i$300)return null;this.lockPageNumForFontsLoader(i,UpdateFontsSource.Page);var ptr=this._getPixmap(pageIndex,width,height,backgroundColor);this.unlockPageNumForFontsLoader();if(page.fonts.length>0){this._free(ptr);ptr=null}return ptr};function addToArrayAsDictionary(arr,value){var isFound=false;for(var i=0,len=arr.length;i=pageIndex)pages[j]+=1}};CFile.prototype["removePage"]=function(pageIndex){var result=this.pages.splice(pageIndex,1);if(this.fontStreams)for(var i in this.fontStreams){var pages=this.fontStreams[i].pages;for(var j=0;jpageIndex)pages[j]-= +1;else if(pages[j]==pageIndex)pages.splice(j,1)}return result};self["AscViewer"]["Free"]=function(pointer){CFile.prototype._free(pointer)};self["AscViewer"]["InitializeFonts"]=function(basePath){return CFile.prototype._InitializeFonts(basePath)};self["AscViewer"]["CheckStreamId"]=function(data,status){return CFile.prototype._CheckStreamId(data,status)};self["AscViewer"]["CDrawingFile"]=CFile;self.drawingFile=null})(window,undefined); diff --git a/pdf/src/engine/viewer.js b/pdf/src/engine/viewer.js index 339216d9b9..dcce955adb 100644 --- a/pdf/src/engine/viewer.js +++ b/pdf/src/engine/viewer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/pdf/src/file.js b/pdf/src/file.js index cf70c624fc..09901daaf0 100644 --- a/pdf/src/file.js +++ b/pdf/src/file.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -150,6 +150,7 @@ this.isUse3d = false; this.cacheManager = null; this.logging = true; + this.type = -1; this.Selection = { Page1 : 0, @@ -183,11 +184,15 @@ }; CFile.prototype.getFileBinary = function() { - return this.nativeFile ? this.nativeFile["getFileAsBase64"]() : null; + return this.nativeFile ? this.nativeFile["getFileBinary"]() : null; }; - CFile.prototype.memory = function() + CFile.prototype.getUint8Array = function(ptr, len) { - return this.nativeFile ? this.nativeFile["memory"]() : null; + return this.nativeFile ? this.nativeFile["getUint8Array"](ptr, len) : null; + }; + CFile.prototype.getUint8ClampedArray = function(ptr, len) + { + return this.nativeFile ? this.nativeFile["getUint8ClampedArray"](ptr, len) : null; }; CFile.prototype.free = function(pointer) { @@ -261,6 +266,12 @@ image.requestHeight = requestH; return image; }; + CFile.prototype.addPage = function(pageIndex, pageObj) { + return this.nativeFile["addPage"](pageIndex, pageObj); + }; + CFile.prototype.removePage = function(pageIndex) { + return this.nativeFile["removePage"](pageIndex); + }; CFile.prototype.getPageWidth = function(nPage) { return this.pages[nPage].W; }; @@ -274,7 +285,7 @@ CFile.prototype.getText = function(pageIndex) { - return this.nativeFile ? this.nativeFile["getGlyphs"](pageIndex) : []; + return this.nativeFile && undefined != pageIndex ? this.nativeFile["getGlyphs"](pageIndex) : []; }; CFile.prototype.destroyText = function() @@ -320,7 +331,7 @@ } var ctx = canvas.getContext("2d"); - var mappedBuffer = new Uint8ClampedArray(this.memory().buffer, pixels, 4 * width * height); + var mappedBuffer = this.getUint8ClampedArray(pixels, 4 * width * height); var imageData = null; if (supportImageDataConstructor) { @@ -405,7 +416,7 @@ void main() {\n\ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); - gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, width, height, 0, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array(this.memory().buffer, pixels, 4 * width * height)); + gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, width, height, 0, gl.RGBA, gl.UNSIGNED_BYTE, this.getUint8Array(pixels, 4 * width * height)); if (gl.getError() != gl.NONE) throw new Error('FAIL: creating webgl image texture failed'); @@ -616,31 +627,30 @@ void main() {\n\ this.onUpdateOverlay(); if (this.viewer.Api.isMarkerFormat) { - let oDoc = this.viewer.getPDFDoc(); - let oColor = oDoc.GetMarkerColor(this.viewer.Api.curMarkerType); - oDoc.CreateNewHistoryPoint(); - switch (this.viewer.Api.curMarkerType) { - case AscPDF.ANNOTATIONS_TYPES.Highlight: - this.viewer.Api.SetHighlight(oColor.r, oColor.g, oColor.b, oColor.a); - break; - case AscPDF.ANNOTATIONS_TYPES.Underline: - this.viewer.Api.SetUnderline(oColor.r, oColor.g, oColor.b, oColor.a); - break; - case AscPDF.ANNOTATIONS_TYPES.Strikeout: - this.viewer.Api.SetStrikeout(oColor.r, oColor.g, oColor.b, oColor.a); - break; - } - - if (AscCommon.History.Is_LastPointEmpty()) - AscCommon.History.Remove_LastPoint(); - oDoc.TurnOffHistory(); + let oDoc = this.viewer.getPDFDoc(); + let oViewer = this.viewer; + let oColor = oDoc.GetMarkerColor(oViewer.Api.curMarkerType); + + oDoc.DoAction(function() { + switch (oViewer.Api.curMarkerType) { + case AscPDF.ANNOTATIONS_TYPES.Highlight: + oViewer.Api.SetHighlight(oColor.r, oColor.g, oColor.b, oColor.a); + break; + case AscPDF.ANNOTATIONS_TYPES.Underline: + oViewer.Api.SetUnderline(oColor.r, oColor.g, oColor.b, oColor.a); + break; + case AscPDF.ANNOTATIONS_TYPES.Strikeout: + oViewer.Api.SetStrikeout(oColor.r, oColor.g, oColor.b, oColor.a); + break; + } + }, AscDFH.historydescription_Pdf_AddHighlightAnnot); } }; CFile.prototype.getPageTextStream = function(pageIndex) { var textCommands = this.pages[pageIndex].text; - if (!textCommands) + if (!textCommands || 0 === textCommands.length) return null; return new TextStreamReader(textCommands, textCommands.length); @@ -652,6 +662,13 @@ void main() {\n\ if (!stream) return { Line : -1, Glyph : -1 }; + if (this.type === 2) + { + let k = 72 / 96; + x *= k; + y *= k; + } + // textline parameters var _line = -1; var _glyph = -1; @@ -1753,7 +1770,7 @@ void main() {\n\ { var stream = this.getPageTextStream(pageIndex); if (!stream) - return; + return ""; var ret = ""; @@ -2815,6 +2832,8 @@ void main() {\n\ var error = file.nativeFile["loadFromData"](data); if (0 === error) { + file.type = file.nativeFile["getType"](); + file.nativeFile["onRepaintPages"] = function(pages) { file.onRepaintPages && file.onRepaintPages(pages); }; @@ -2860,6 +2879,8 @@ void main() {\n\ var error = file.nativeFile["loadFromDataWithPassword"](password); if (0 === error) { + file.type = file.nativeFile["getType"](); + file.nativeFile["onRepaintPages"] = function(pages) { file.onRepaintPages && file.onRepaintPages(pages); }; @@ -2878,7 +2899,8 @@ void main() {\n\ page.originRotate = page["Rotate"]; page.Rotate = page["Rotate"]; } - + file.originalPagesCount = file.pages.length; + //file.cacheManager = new AscCommon.CCacheManager(); } }; diff --git a/pdf/src/forms/apiFunctions.js b/pdf/src/forms/apiFunctions.js index 1a925ad838..ecb3264f26 100644 --- a/pdf/src/forms/apiFunctions.js +++ b/pdf/src/forms/apiFunctions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -156,7 +156,7 @@ let nSelEnd = oDoc.event["selEnd"]; function isValidNumber(str) { - return !isNaN(str) && isFinite(str); + return !isNaN(str) && isFinite(str) && false == /\s/.test(str); } let sNewValue = sValue.slice(0, nSelStart) + sChange + sValue.slice(nSelEnd); diff --git a/pdf/src/forms/apiGlogalObjects.js b/pdf/src/forms/apiGlogalObjects.js index dec638fc93..0c568bf238 100644 --- a/pdf/src/forms/apiGlogalObjects.js +++ b/pdf/src/forms/apiGlogalObjects.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/pdf/src/forms/base/base.js b/pdf/src/forms/base/base.js index 0584741d1a..25df866fa8 100644 --- a/pdf/src/forms/base/base.js +++ b/pdf/src/forms/base/base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -133,14 +133,12 @@ this._fillColor = undefined; this._bgColor = undefined; // prop for old versions (fillColor) this._hidden = false; // This property has been superseded by the display property and its use is discouraged. - this._lineWidth = undefined; // In older versions of this specification, this property was borderWidth + this._lineWidth = undefined; // In older versions of this specification, this property was borderWidth this._borderWidth = undefined; this._name = sName; // partial field name this._page = nPage; // integer | array this._print = true; // This property has been superseded by the display property and its use is discouraged. this._readonly = false; - this._rect = aRect; // scaled rect - this._origRect = []; // orig rect as in file this._required = false; // for all except button this._rotation = 0; this._strokeColor = null; // In older versions of this specification, this property was borderColor. The use of borderColor is now discouraged, @@ -152,9 +150,9 @@ this._textFont = undefined; // исходный this._textFontActual = undefined; // фактический используемый this._fgColor = undefined; - this._textSize = 10; // 0 == max text size // to do - this._fontStyle = 0; // информация о стиле шрифта (bold, italic) - this._userName = ""; // It is intended to be used as tooltip text whenever the cursor enters a field. + this._textSize = 10; + this._fontStyle = 0; // информация о стиле шрифта (bold, italic) + this._userName = ""; // It is intended to be used as tooltip text whenever the cursor enters a field. //It can also be used as a user-friendly name, instead of the field name, when generating error messages. this._parent = null; @@ -162,30 +160,15 @@ // internal this._id = AscCommon.g_oIdCounter.Get_NewId(); - - this._isWidget = aRect && aRect.length == 4 ? true : false; + AscCommon.g_oTableId.Add(this, this._id); - this.contentRect = { - X: 0, - Y: 0, - W: 0, - H: 0, - Page: nPage - } - this._formRect = { - X: 0, - Y: 0, - W: 0, - H: 0, - Page: nPage - } + this._isWidget = aRect && aRect.length == 4 ? true : false; - this._oldContentPos = {X: 0, Y: 0, XLimit: 0, YLimit: 0}; this._curShiftView = { // смещение, когда мы скролим, т.е. активное смещение x: 0, y: 0 } - this._originShiftView = { // смещение, когда значение формы применено (т.е. форма не активна) + this._oldShiftView = { // смещение, когда значение формы применено (т.е. форма не активна) x: 0, y: 0 } @@ -206,15 +189,14 @@ rollover: null } - editor.getDocumentRenderer().ImageMap = {}; - editor.getDocumentRenderer().InitDocument = function() {return}; - this._partialName = sName; this.api = this.GetFormApi(); this["api"] = this.api; this.compositeInput = null; this.compositeReplaceCount = 0; + + this.SetRect(aRect); } CBaseField.prototype.IsAnnot = function() { @@ -225,12 +207,26 @@ }; CBaseField.prototype.IsDrawing = function() { return false; - }; + }; + CBaseField.prototype.IsPdfObject = function() { + return true; + }; CBaseField.prototype.SetApIdx = function(nIdx) { - this.GetDocument().UpdateApIdx(nIdx); this._apIdx = nIdx; }; CBaseField.prototype.GetApIdx = function() { + if (-1 == this._apIdx) { + if (undefined == this.GetId()) { + return -1; + } + else { + let nApIdx = Number(this.GetId().replace("_", "")); + if (!isNaN(nApIdx)) { + return nApIdx; + } + } + } + return this._apIdx; }; @@ -252,6 +248,7 @@ CBaseField.prototype.checkFonts = function() { return this._doc && 1 === this._doc.defaultFontsLoaded; }; + CBaseField.prototype.getAllRasterImages = function(images) {}; /** * Invokes only on open forms. * @memberof CBaseField @@ -379,10 +376,17 @@ }; CBaseField.prototype.getFormRelRect = function() { - return this.contentRect; + return this.contentClipRect; }; CBaseField.prototype.getFormRect = function() { - return this._formRect; + let aOrigRect = this.GetOrigRect(); + + return { + X : aOrigRect[0] * g_dKoef_pt_to_mm, + Y : aOrigRect[1] * g_dKoef_pt_to_mm, + W : (aOrigRect[2] - aOrigRect[0]) * g_dKoef_pt_to_mm, + H : (aOrigRect[3] - aOrigRect[1]) * g_dKoef_pt_to_mm + } }; CBaseField.prototype.GetFullName = function() { @@ -714,57 +718,46 @@ /** * Does the actions setted for specifed trigger type. * @memberof CBaseField - * @param {number} nType - trigger type (FORMS_TRIGGERS_TYPES) * @typeofeditors ["PDF"] * @returns {canvas} */ - CBaseField.prototype.AddActionsToQueue = function(nType) { + CBaseField.prototype.AddActionsToQueue = function() { + let oThis = this; let oDoc = this.GetDocument(); let oActionsQueue = oDoc.GetActionsQueue(); - let oTrigger = this.GetTrigger(nType); - - if (oTrigger && oTrigger.Actions.length > 0) { - oActionsQueue.AddActions(oTrigger.Actions); - oActionsQueue.Start(); - } - }; - - CBaseField.prototype.CalculateContentRect = function() { - if (!this.content) - return; - let aRect = this.GetRect(); - let Y = aRect[1]; - let nHeight = ((aRect[3]) - (aRect[1])); - let oMargins = this.GetMarginsFromBorders(false, false); - - this.contentRect.X = this.content.X; - this.contentRect.Y = (Y + oMargins.top) * g_dKoef_pix_to_mm; - this.contentRect.W = this.content.XLimit - this.content.X; - this.contentRect.H = (nHeight - oMargins.top - oMargins.bottom) * g_dKoef_pix_to_mm; + Object.values(arguments).forEach(function(type) { + let oTrigger = oThis.GetTrigger(type); + + if (oTrigger && oTrigger.Actions.length > 0 && false == AscCommon.History.UndoRedoInProgress) { + oActionsQueue.AddActions(oTrigger.Actions); + } + }) + + oActionsQueue.Start(); }; CBaseField.prototype.DrawHighlight = function(oCtx) { if (this.IsHidden() == true) return; - let oViewer = editor.getDocumentRenderer(); - let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom * (96 / oViewer.file.pages[this.GetPage()].Dpi); + let oViewer = Asc.editor.getDocumentRenderer(); + let nPage = this.GetPage(); + let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom * oViewer.getDrawingPageScale(nPage); let aBgColor = this.GetBackgroundColor(); let xCenter = oViewer.width >> 1; - if (oViewer.documentWidth > oViewer.width) - { + if (oViewer.documentWidth > oViewer.width) { xCenter = (oViewer.documentWidth >> 1) - (oViewer.scrollX) >> 0; } let yPos = oViewer.scrollY >> 0; - let page = oViewer.drawingPages[this.GetPage()]; + let page = oViewer.drawingPages[nPage]; let w = (page.W * AscCommon.AscBrowser.retinaPixelRatio) >> 0; let h = (page.H * AscCommon.AscBrowser.retinaPixelRatio) >> 0; let indLeft = ((xCenter * AscCommon.AscBrowser.retinaPixelRatio) >> 0) - (w >> 1); let indTop = ((page.Y - yPos) * AscCommon.AscBrowser.retinaPixelRatio) >> 0; - let isLandscape = oViewer.isLandscapePage(this.GetPage()); + let isLandscape = oViewer.isLandscapePage(nPage); if (isLandscape) { indLeft = indLeft + (w - h) / 2; } @@ -822,7 +815,7 @@ if (aBgColor && aBgColor.length != 0) oBgRGBColor = AscPDF.MakeColorMoreGray(oBgRGBColor, 50); - let nLineWidth = this._lineWidth != undefined ? this._lineWidth : 1; + let nLineWidth = this.GetBorderWidth() != undefined ? this.GetBorderWidth() : 1; if (nLineWidth == 0) { return; @@ -1223,25 +1216,6 @@ CBaseField.prototype.DrawSelected = function() { return; - /* - let oViewer = editor.getDocumentRenderer(); - let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom; - - let X = this._pagePos.x * nScale; - let Y = this._pagePos.y * nScale; - let nWidth = this._pagePos.w * nScale; - let nHeight = this._pagePos.h * nScale; - - oCtx.globalAlpha = 1; - oCtx.setLineDash([]); - oCtx.strokeStyle = "rgb(0, 0, 0)"; - oCtx.lineWidth = Math.max(nScale, 1); - - oCtx.beginPath(); - oCtx.rect(X, Y, nWidth, nHeight); - oCtx.stroke(); - oCtx.closePath(); - */ }; CBaseField.prototype.Get_Id = function() { @@ -1263,6 +1237,7 @@ CBaseField.prototype.IsNeedRecalc = function() { return this._needRecalc; }; + CBaseField.prototype.Refresh_RecalcData = function(){}; CBaseField.prototype.SetWasChanged = function(isChanged) { let oViewer = editor.getDocumentRenderer(); @@ -1405,7 +1380,10 @@ return false; }; CBaseField.prototype.SetDisplay = function(nType) { + AscCommon.History.Add(new CChangesPDFFormDisplay(this, this._display, nType)); + this._display = nType; + this.SetWasChanged(true); this.AddToRedraw(); }; @@ -1439,7 +1417,6 @@ let defValue = this.GetDefaultValue() || ""; if (this.GetValue() != defValue) { this.SetValue(defValue); - this.SetApiValue(defValue); this.SetWasChanged(true); this.SetNeedRecalc(true); } @@ -1534,13 +1511,13 @@ * @typedef {"MouseUp" | "MouseDown" | "MouseEnter" | "MouseExit" | "OnFocus" | "OnBlur" | "Keystroke" | "Validate" | "Calculate" | "Format"} cTrigger * For a list box, use the Keystroke trigger for the Selection Change event. */ - CBaseField.prototype.RevertContentViewToOriginal = function() { + CBaseField.prototype.RevertContentView = function() { this.content.ResetShiftView(); - this._curShiftView.x = this._originShiftView.x; - this._curShiftView.y = this._originShiftView.y; + this._curShiftView.x = this._oldShiftView.x; + this._curShiftView.y = this._oldShiftView.y; this._bAutoShiftContentView = false; - this.content.ShiftView(this._originShiftView.x, this._originShiftView.y); + this.content.ShiftView(this._oldShiftView.x, this._oldShiftView.y); if (this._scrollInfo) { let nMaxShiftY = this._scrollInfo.scroll.maxScrollY; @@ -1553,13 +1530,12 @@ return this._isWidget; }; CBaseField.prototype.IsNeedRevertShiftView = function() { - if (this._curShiftView.y != this._originShiftView.y || - this._curShiftView.x != this._originShiftView.x) + if (this._curShiftView.y != this._oldShiftView.y || + this._curShiftView.x != this._oldShiftView.x) return true; }; - CBaseField.prototype.GetBordersWidth = function(bScaled) { - let oViewer = editor.getDocumentRenderer(); - let nLineWidth = bScaled == true ? 1.25 * (this._lineWidth ? this._lineWidth : 1) * AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom : 1.25 * (this._lineWidth ? this._lineWidth : 1); + CBaseField.prototype.GetBordersWidth = function() { + let nLineWidth = this._lineWidth != undefined ? this._lineWidth : 1; if (nLineWidth == 0 || this._borderStyle == undefined) { return { @@ -1596,34 +1572,33 @@ } } }; - CBaseField.prototype.GetMarginsFromBorders = function(bScaled, bMM) { - let oBorders = this.GetBordersWidth(bScaled); - let nKoeff = bMM == true ? g_dKoef_pix_to_mm : 1; + CBaseField.prototype.GetMarginsFromBorders = function() { + let oBorders = this.GetBordersWidth(); switch (this._borderStyle) { case BORDER_TYPES.solid: case BORDER_TYPES.dashed: case BORDER_TYPES.underline: return { - left: oBorders.bottom * nKoeff, - top: oBorders.bottom * nKoeff, - right: oBorders.bottom * nKoeff, - bottom: oBorders.bottom * nKoeff + left: oBorders.bottom, + top: oBorders.bottom, + right: oBorders.bottom, + bottom: oBorders.bottom } case BORDER_TYPES.inset: case BORDER_TYPES.beveled: return { - left: oBorders.bottom * nKoeff, - top: oBorders.bottom * nKoeff, - right: oBorders.bottom * nKoeff, - bottom: oBorders.bottom * nKoeff + left: oBorders.bottom, + top: oBorders.bottom, + right: oBorders.bottom, + bottom: oBorders.bottom } default: return { - left: oBorders.bottom * nKoeff, - top: oBorders.bottom * nKoeff, - right: oBorders.bottom * nKoeff, - bottom: oBorders.bottom * nKoeff + left: oBorders.bottom, + top: oBorders.bottom, + right: oBorders.bottom, + bottom: oBorders.bottom } }; }; @@ -1733,7 +1708,7 @@ let supportImageDataConstructor = (AscCommon.AscBrowser.isIE && !AscCommon.AscBrowser.isIeEdge) ? false : true; let ctx = canvas.getContext("2d"); - let mappedBuffer = new Uint8ClampedArray(oFile.memory().buffer, oApInfoTmp["retValue"], 4 * nWidth * nHeight); + let mappedBuffer = oFile.getUint8ClampedArray(oApInfoTmp["retValue"], 4 * nWidth * nHeight); let imageData = null; if (supportImageDataConstructor) @@ -1982,11 +1957,15 @@ CBaseField.prototype.GetTextSize = function() { return this._textSize; }; + CBaseField.prototype.SetRect = function(aOrigRect) { + this._origRect = aOrigRect; + this.SetWasChanged(true); + }; CBaseField.prototype.GetOrigRect = function() { return this._origRect; }; CBaseField.prototype.GetRect = function() { - return this._rect; + return this.GetOrigRect(); }; // common triggers @@ -2033,9 +2012,6 @@ return this._page; }; CBaseField.prototype["getPagePos"] = function() { - if (!this._pagePos) - return null; - let aOrigRect = this.GetOrigRect(); return { "x" : aOrigRect[0], @@ -2326,6 +2302,25 @@ memory.WriteLong(nFlags); memory.Seek(nEndPos); }; + CBaseField.prototype.WriteRenderToBinary = function(memory) { + // пока только для text, combobox + if (false == [AscPDF.FIELD_TYPES.text, AscPDF.FIELD_TYPES.combobox, AscPDF.FIELD_TYPES.listbox].includes(this.GetType())) { + return; + } + + // тут будет длина комманд + let nStartPos = memory.GetCurPosition(); + memory.Skip(4); + + let oContentToDraw = this.GetTrigger(AscPDF.FORMS_TRIGGERS_TYPES.Format) ? this.contentFormat : this.content; + oContentToDraw.Draw(0, memory.docRenderer); + + // запись длины комманд + let nEndPos = memory.GetCurPosition(); + memory.Seek(nStartPos); + memory.WriteLong(nEndPos - nStartPos); + memory.Seek(nEndPos); + }; // for format diff --git a/pdf/src/forms/base/basecheckbox.js b/pdf/src/forms/base/basecheckbox.js index e39524c0ec..542e96acd7 100644 --- a/pdf/src/forms/base/basecheckbox.js +++ b/pdf/src/forms/base/basecheckbox.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -113,7 +113,7 @@ let nWidth = aOrigRect[2] - aOrigRect[0]; let nHeight = aOrigRect[3] - aOrigRect[1]; - let oMargins = this.GetMarginsFromBorders(false, false); + let oMargins = this.GetMarginsFromBorders(); let oRGB = this.GetRGBColor(this._textColor); oGraphicsPDF.SetGlobalAlpha(1); @@ -323,7 +323,7 @@ let supportImageDataConstructor = (AscCommon.AscBrowser.isIE && !AscCommon.AscBrowser.isIeEdge) ? false : true; let ctx = canvas.getContext("2d"); - let mappedBuffer = new Uint8ClampedArray(oFile.memory().buffer, nRetValue, 4 * nWidth * nHeight); + let mappedBuffer = oFile.getUint8ClampedArray(nRetValue, 4 * nWidth * nHeight); let imageData = null; if (supportImageDataConstructor) @@ -365,9 +365,11 @@ else callbackAfterFocus.bind(this)(); - this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); - if (false == isInFocus) { - this.onFocus(); + if (isInFocus) { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); + } + else { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown, AscPDF.FORMS_TRIGGERS_TYPES.OnFocus); } }; CBaseCheckBoxField.prototype.GetFontSizeAP = function() { @@ -393,42 +395,48 @@ }; CBaseCheckBoxField.prototype.onMouseUp = function() { let oDoc = this.GetDocument(); + let oViewer = oDoc.Viewer; - oDoc.CreateNewHistoryPoint({objects: [this]}); - if (this.IsChecked()) { - if (this._noToggleToOff == false) { - this.SetChecked(false); - this.SetApiValue("Off"); - } - } - else { - let oParent = this.GetParent(); - let aOpt = oParent ? oParent.GetOptions() : undefined; - let aKids = oParent ? oParent.GetKids() : undefined; - this.SetChecked(true); - if (aOpt && aKids) { - this.SetApiValue(String(aKids.indexOf(this))); + let oThis = this; + + oDoc.DoAction(function() { + let bCommit = false; + if (oThis.IsChecked()) { + if (oThis.IsNoToggleToOff() == false) { + oThis.SetChecked(false); + oThis.SetApiValue("Off"); + bCommit = true; + } } else { - this.SetApiValue(this.GetExportValue()); + let oParent = oThis.GetParent(); + let aOpt = oParent ? oParent.GetOptions() : undefined; + let aKids = oParent ? oParent.GetKids() : undefined; + oThis.SetChecked(true); + if (aOpt && aKids) { + oThis.SetApiValue(String(aKids.indexOf(oThis))); + } + else { + oThis.SetApiValue(oThis.GetExportValue()); + } + + bCommit = true; } - } + + if (bCommit) { + oThis.SetNeedCommit(true); + oThis.Commit2(); + } + }, AscDFH.historydescription_Pdf_ClickCheckbox); - if (AscCommon.History.Is_LastPointEmpty()) - AscCommon.History.Remove_LastPoint(); - else { - this.SetNeedCommit(true); - this.Commit2(); - } - this.DrawUnpressed(); - let oOverlay = editor.getDocumentRenderer().overlay; + let oOverlay = oViewer.overlay; oOverlay.max_x = 0; oOverlay.max_y = 0; oOverlay.ClearAll = true; - editor.getDocumentRenderer().onUpdateOverlay(); + oViewer.onUpdateOverlay(); this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseUp); }; /** diff --git a/pdf/src/forms/base/baselist.js b/pdf/src/forms/base/baselist.js index a36cc83e69..484ef004e9 100644 --- a/pdf/src/forms/base/baselist.js +++ b/pdf/src/forms/base/baselist.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/pdf/src/forms/checkbox.js b/pdf/src/forms/checkbox.js index 736aaa62aa..1c5ac09de3 100644 --- a/pdf/src/forms/checkbox.js +++ b/pdf/src/forms/checkbox.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -84,11 +84,6 @@ // to do }; - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - if (!window["AscPDF"]) window["AscPDF"] = {}; diff --git a/pdf/src/forms/combobox.js b/pdf/src/forms/combobox.js index db28aac221..ff50f4ce92 100644 --- a/pdf/src/forms/combobox.js +++ b/pdf/src/forms/combobox.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -69,7 +69,7 @@ if (oDoc.activeForm == this) this.CheckFormViewWindow(); - oGraphicsWord.AddClipRect(this.contentRect.X, this.contentRect.Y, this.contentRect.W, this.contentRect.H); + oGraphicsWord.AddClipRect(this.contentClipRect.X, this.contentClipRect.Y, this.contentClipRect.W, this.contentClipRect.H); oContentToDraw.Draw(0, oGraphicsWord); // redraw target cursor if field is selected if (oDoc.activeForm == this && oContentToDraw.IsSelectionUse() == false && this.IsCanEditText()) @@ -82,63 +82,19 @@ if (this.IsNeedRecalc() == false) return; - let oViewer = editor.getDocumentRenderer(); - let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom; - let aRect = this.GetRect(); - - let X = aRect[0]; - let Y = aRect[1]; - let nWidth = (aRect[2] - aRect[0]); - let nHeight = (aRect[3] - aRect[1]); - - let oMargins = this.GetMarginsFromBorders(false, false); - - let contentX = (X + 2 * oMargins.left) * g_dKoef_pix_to_mm; - let contentY = (Y + oMargins.top) * g_dKoef_pix_to_mm; - // let contentXLimit = (X + nWidth - 2 * oMargins.left - (18 / nScale)) * g_dKoef_pix_to_mm; // 18 / nScale --> Размер маркера комбобокса - let contentXLimit = (X + nWidth - 2 * oMargins.left - (18 / nScale)) * g_dKoef_pix_to_mm; // 18 / nScale --> Размер маркера комбобокса - - let bNewRecalc = false; // будет использовано только один раз при первом пересчете и случае autofit + if (this.IsNeedCheckAlign()) { + this.CheckAlignInternal(); + } + if (this.GetTextSize() == 0) { - if (!this._pagePos) { - bNewRecalc = true; + if (null == this.getFormRelRect()) { + this.CalculateContentClipRect(); } this.ProcessAutoFitContent(this.content); this.ProcessAutoFitContent(this.contentFormat); } - // save pos in page. - this._pagePos = { - x: X, - y: Y, - w: nWidth, - h: nHeight - }; - - let nContentH = this.GetTextHeight(this.content); - let nContentHFormat = this.GetTextHeight(this.contentFormat); - - contentY = Y * g_dKoef_pix_to_mm + (nHeight * g_dKoef_pix_to_mm - nContentH) / 2; - let contentYFormat = Y * g_dKoef_pix_to_mm + (nHeight * g_dKoef_pix_to_mm - nContentHFormat) / 2; - - this._formRect.X = X * g_dKoef_pix_to_mm; - this._formRect.Y = Y * g_dKoef_pix_to_mm; - this._formRect.W = nWidth * g_dKoef_pix_to_mm; - this._formRect.H = nHeight * g_dKoef_pix_to_mm; - - if (contentX != this._oldContentPos.X || contentY != this._oldContentPos.Y || - contentXLimit != this._oldContentPos.XLimit || contentYFormat != this._oldContentPos.YFormat) { - this.content.X = this.contentFormat.X = this._oldContentPos.X = contentX; - this.content.Y = this._oldContentPos.Y = contentY; - this.contentFormat.Y= this._oldContentPos.YFormat = contentYFormat; - this.content.XLimit = this.contentFormat.XLimit = this._oldContentPos.XLimit = contentXLimit; - this.content.YLimit = this.contentFormat.YLimit = this._oldContentPos.YLimit = 20000; - - this.CalculateContentRect(); - this.content.Recalculate_Page(0, true); - this.contentFormat.Recalculate_Page(0, true); - } - else if (this.IsNeedRecalc()) { + if (false == this.RecalculateContentRect()) { this.contentFormat.Content.forEach(function(element) { element.Recalculate_Page(0); }); @@ -147,16 +103,74 @@ }); } - bNewRecalc && this.Recalculate(); this.SetNeedRecalc(false); }; + CComboBoxField.prototype.RecalculateContentRect = function() { + let aOrigRect = this.GetOrigRect(); + let X = aOrigRect[0]; + let Y = aOrigRect[1]; + let nWidth = (aOrigRect[2] - aOrigRect[0]); + let nHeight = (aOrigRect[3] - aOrigRect[1]); + + let oMargins = this.GetMarginsFromBorders(); + + let contentX = (X + 2 * oMargins.left) * g_dKoef_pt_to_mm; + let contentY = (Y + oMargins.top) * g_dKoef_pt_to_mm; + let contentXLimit = (X + nWidth - 2 * oMargins.left) * g_dKoef_pt_to_mm; + + let nContentH = this.GetTextHeight(this.content); + let nContentHFormat = this.GetTextHeight(this.contentFormat); + + contentY = Y * g_dKoef_pt_to_mm + (nHeight * g_dKoef_pt_to_mm - nContentH) / 2; + let contentYFormat = Y * g_dKoef_pt_to_mm + (nHeight * g_dKoef_pt_to_mm - nContentHFormat) / 2; + + if (contentX != this.content.X || contentY != this.content.Y || + contentXLimit != this.content.XLimit || contentYFormat != this.contentFormat.YFormat) { + this.content.X = this.contentFormat.X = contentX; + this.content.Y = contentY; + this.contentFormat.Y= contentYFormat; + this.content.XLimit = this.contentFormat.XLimit = contentXLimit; + this.content.YLimit = this.contentFormat.YLimit = 20000; + + this.CalculateContentClipRect(); + this.content.Recalculate_Page(0, true); + this.contentFormat.Recalculate_Page(0, true); + + return true; + } + + return false; + }; + CComboBoxField.prototype.CalculateContentClipRect = function() { + if (!this.content) + return; + + let aRect = this.GetOrigRect(); + let X = aRect[0]; + let Y = aRect[1]; + let nWidth = aRect[2] - aRect[0]; + let nHeight = aRect[3] - aRect[1]; + let oMargins = this.GetMarginsFromBorders(); + + let contentX = (X + 2 * oMargins.left) * g_dKoef_pt_to_mm; + let contentXLimit = (X + nWidth - 2 * oMargins.left) * g_dKoef_pt_to_mm; + + this.contentClipRect = { + X: contentX, + Y: (Y + oMargins.top) * g_dKoef_pt_to_mm, + W: contentXLimit - contentX, + H: (nHeight - oMargins.top - oMargins.bottom) * g_dKoef_pt_to_mm, + Page: this.GetPage() + } + }; CComboBoxField.prototype.DrawMarker = function(oCtx) { if (this.IsHidden()) return; let oViewer = editor.getDocumentRenderer(); - let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom * (96 / oViewer.file.pages[this.GetPage()].Dpi); + let nPage = this.GetPage(); + let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom * oViewer.getDrawingPageScale(nPage); let aOrigRect = this.GetOrigRect(); let xCenter = oViewer.width >> 1; @@ -165,13 +179,13 @@ xCenter = (oViewer.documentWidth >> 1) - (oViewer.scrollX) >> 0; } let yPos = oViewer.scrollY >> 0; - let page = oViewer.drawingPages[this.GetPage()]; + let page = oViewer.drawingPages[nPage]; let w = (page.W * AscCommon.AscBrowser.retinaPixelRatio) >> 0; let h = (page.H * AscCommon.AscBrowser.retinaPixelRatio) >> 0; let indLeft = ((xCenter * AscCommon.AscBrowser.retinaPixelRatio) >> 0) - (w >> 1); let indTop = ((page.Y - yPos) * AscCommon.AscBrowser.retinaPixelRatio) >> 0; - let isLandscape = oViewer.isLandscapePage(this.GetPage()); + let isLandscape = oViewer.isLandscapePage(nPage); if (isLandscape) { indLeft = indLeft + (w - h) / 2; } @@ -181,12 +195,12 @@ let nWidth = (aOrigRect[2] - aOrigRect[0]) * nScale; let nHeight = (aOrigRect[3] - aOrigRect[1]) * nScale; - let oMargins = this.GetBordersWidth(true); + let oMargins = this.GetBordersWidth(); let nMarkWidth = 18; - let nMarkX = (X + nWidth) - oMargins.left - nMarkWidth; - let nMarkHeight = nHeight - 2 * oMargins.top - 2; - let nMarkY = Y + oMargins.top + 1; + let nMarkX = (X + nWidth) - oMargins.left * nScale - nMarkWidth; + let nMarkHeight = nHeight - 2 * oMargins.top * nScale; + let nMarkY = Y + oMargins.top * nScale; // marker rect oCtx.setLineDash([]); @@ -246,7 +260,7 @@ function callbackAfterFocus(x, y, e) { oDoc.SetLocalHistory(); - if (false == e.shiftKey) { + if (false == e.ShiftKey) { oDoc.SelectionSetStart(x, y, e); } else { @@ -280,9 +294,11 @@ else callbackAfterFocus.bind(this, x, y, e)(); - this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); - if (false == isInFocus) { - this.onFocus(); + if (isInFocus) { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); + } + else { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown, AscPDF.FORMS_TRIGGERS_TYPES.OnFocus); } }; @@ -295,9 +311,6 @@ if (this.GetCurIdxs() == nIdx) return; - let oDoc = this.GetDocument(); - oDoc.CreateNewHistoryPoint({objects: [this]}); - let oPara = this.content.GetElement(0); let oRun = oPara.GetElement(0); @@ -315,11 +328,14 @@ this.content.MoveCursorToStartPos(); if (!Asc.editor.getDocumentRenderer().IsOpenFormsInProgress) - this.CheckAlignInternal(); + this.SetNeedCheckAlign(true); }; CComboBoxField.prototype.SetCurIdxs = function(aIdxs) { if (this.IsWidget()) { - this.SelectOption(aIdxs[0]); + if (undefined !== aIdxs[0]) { + this.SelectOption(aIdxs[0]); + } + if (editor.getDocumentRenderer().IsOpenFormsInProgress) this.SetApiCurIdxs(aIdxs); } @@ -380,7 +396,8 @@ CComboBoxField.prototype.SyncField = function() { let aFields = this.GetDocument().GetAllWidgets(this.GetFullName()); - TurnOffHistory(); + let oDoc = this.GetDocument(); + oDoc.StartNoHistoryMode(); for (let i = 0; i < aFields.length; i++) { if (aFields[i] != this) { @@ -402,6 +419,8 @@ break; } } + + oDoc.EndNoHistoryMode(); }; CComboBoxField.prototype.EnterText = function(aChars) { if (!this.DoKeystrokeAction(aChars)) @@ -413,7 +432,6 @@ return false; this.UpdateSelectionByEvent(); - doc.CreateNewHistoryPoint({objects : [this]}); this.content.EnterText(aChars); @@ -431,8 +449,6 @@ if (!newValue.length && !oldValue.length) return false; - doc.CreateNewHistoryPoint({objects : [this]}); - let result = this.content.CorrectEnterText(oldValue, newValue, function(run, inRunPos, codePoint){return true;}); this.SetNeedRecalc(true); @@ -449,29 +465,41 @@ let oDoc = this.GetDocument(); let aFields = oDoc.GetAllWidgets(this.GetFullName()); - oDoc.SetGlobalHistory(); + oDoc.StartNoHistoryMode(); if (this.DoFormatAction() == false) { this.UndoNotAppliedChanges(); if (this.IsChanged() == false) this.SetDrawFromStream(true); + oDoc.EndNoHistoryMode(); return; } + oDoc.EndNoHistoryMode(); + + let aCurIdxs = this.GetCurIdxs(); + let aApiIdxs = this.GetApiCurIdxs(); + + let isChanged = false; + for (let i = 0; i < aCurIdxs.length; i++) { + if (aCurIdxs[i] === undefined || aApiIdxs[i] === undefined || aCurIdxs[i] !== aApiIdxs[i]) { + isChanged = true; + break; + } + } - if (this.GetApiValue() != this.GetValue()) { - oDoc.CreateNewHistoryPoint({objects: [this]}); - AscCommon.History.Add(new CChangesPDFFormValue(this, this.GetApiValue(), this.GetValue())); + if (isChanged) { + AscCommon.History.Add(new CChangesPDFListFormCurIdxs(this, this.GetApiCurIdxs(), aCurIdxs)); this.SetApiValue(this.GetValue()); this.SetApiCurIdxs(this.GetCurIdxs()); } - TurnOffHistory(); + oDoc.StartNoHistoryMode(); if (aFields.length == 1) this.SetNeedCommit(false); - let sValue = this.GetValue(); - this.UpdateDisplayValue(sValue); + let sDisplayValue = this.content.getAllText(); + this.UpdateDisplayValue(sDisplayValue); for (let i = 0; i < aFields.length; i++) { if (aFields[i].IsChanged() == false) @@ -489,7 +517,7 @@ if (aFields[i] == this) continue; - aFields[i].UpdateDisplayValue(sValue); + aFields[i].UpdateDisplayValue(sDisplayValue); aFields[i].SetNeedRecalc(true); } @@ -505,11 +533,13 @@ // когда выравнивание посередине или справа, то после того // как ширина контента будет больше чем размер формы, выравнивание становится слева, пока текста вновь не станет меньше чем размер формы aFields.forEach(function(field) { - field.CheckAlignInternal(); + field.SetNeedCheckAlign(true); }); this.SetNeedCommit(false); this.needValidate = true; + + oDoc.EndNoHistoryMode(); }; CComboBoxField.prototype.InsertChars = function(aChars) { this.content.EnterText(aChars); @@ -685,15 +715,6 @@ } } - // форматируемое значение - let oFormatTrigger = this.GetTrigger(AscPDF.FORMS_TRIGGERS_TYPES.Format); - let oActionRunScript = oFormatTrigger ? oFormatTrigger.GetActions()[0] : null; - if (oActionRunScript) { - memory.widgetFlags |= (1 << 12); - let sFormatValue = this.contentFormat.getAllText(); - memory.WriteString(sFormatValue); - } - if (value != null && Array.isArray(value) == true) { // флаг что значение - это массив memory.fieldDataFlags |= (1 << 13); @@ -716,6 +737,9 @@ } } + memory.fieldDataFlags |= (1 << 15); + this.WriteRenderToBinary(memory); + // top index if (this.IsEditable()) { @@ -745,12 +769,6 @@ return true; }; - - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - if (!window["AscPDF"]) window["AscPDF"] = {}; @@ -778,6 +796,8 @@ CComboBoxField.prototype.onMouseUp = AscPDF.CTextField.prototype.onMouseUp; CComboBoxField.prototype.OnContentChange = AscPDF.CTextField.prototype.OnContentChange; CComboBoxField.prototype.UpdateSelectionByEvent = AscPDF.CTextField.prototype.UpdateSelectionByEvent; + CComboBoxField.prototype.SetNeedCheckAlign = AscPDF.CTextField.prototype.SetNeedCheckAlign; + CComboBoxField.prototype.IsNeedCheckAlign = AscPDF.CTextField.prototype.IsNeedCheckAlign; window["AscPDF"].CComboBoxField = CComboBoxField; })(); diff --git a/pdf/src/forms/formActions.js b/pdf/src/forms/formActions.js index 76869386bc..c9a51d4aa0 100644 --- a/pdf/src/forms/formActions.js +++ b/pdf/src/forms/formActions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -276,9 +276,11 @@ oActionsQueue.SetCurAction(this); // если onFocus но форма не активна, то скипаем дейсвтие - if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) + if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) { oActionsQueue.Continue(); - + return; + } + if (this.page >= oViewer.pagesInfo.countTextPages) { oActionsQueue.Continue(); return; @@ -297,7 +299,7 @@ let oPos = oTr.TransformPoint(xOffset, yOffset); oViewer.disabledPaintOnScroll = true; // вырубаем отрисовку на скроле - oViewer.navigateToPage(this.page, oViewer.scrollY + oPos.y, oViewer.scrollX + oPos.x); + oViewer.scrollToXY(oViewer.scrollY + oPos.y, oViewer.scrollX + oPos.x); oViewer.disabledPaintOnScroll = false; oViewer.needRedraw = true; // в конце Actions выполним отрисовку } @@ -400,8 +402,10 @@ oActionsQueue.SetCurAction(this); // если onFocus но форма не активна, то скипаем дейсвтие - if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) + if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) { oActionsQueue.Continue(); + return; + } switch (this.nameType) { case ACTION_NAMED_TYPES.FirstPage: @@ -444,8 +448,10 @@ oActionsQueue.SetCurAction(this); // если onFocus но форма не активна, то скипаем дейсвтие - if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) + if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) { oActionsQueue.Continue(); + return; + } editor.sendEvent("asc_onOpenLinkPdfForm", this.uri, this.OpenLink.bind(this), oActionsQueue.Continue.bind(oActionsQueue)); }; @@ -473,15 +479,16 @@ CActionHideShow.prototype.constructor = CActionHideShow; CActionHideShow.prototype.Do = function() { - let oViewer = editor.getDocumentRenderer(); let oDoc = this.field.GetDocument(); let oActionsQueue = oDoc.GetActionsQueue(); oActionsQueue.SetCurAction(this); // если onFocus но форма не активна, то скипаем дейсвтие - if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) + if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) { oActionsQueue.Continue(); + return; + } oDoc.HideShowForms(this.hidden, this.names); }; @@ -516,8 +523,10 @@ oActionsQueue.SetCurAction(this); // если onFocus но форма не активна, то скипаем дейсвтие - if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) + if (this.triggerType == FORMS_TRIGGERS_TYPES.OnFocus && this.field != oDoc.activeForm) { oActionsQueue.Continue(); + return; + } oDoc.ResetForms(this.names, this.bAllExcept); }; diff --git a/pdf/src/forms/listbox.js b/pdf/src/forms/listbox.js index 97c4a617a9..20c09dc5ed 100644 --- a/pdf/src/forms/listbox.js +++ b/pdf/src/forms/listbox.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -70,14 +70,15 @@ this.Recalculate(); this.DrawBackground(oGraphicsPDF); - if (this._bAutoShiftContentView) + if (this._bAutoShiftContentView || this._bShiftByTopIndex) { this.CheckFormViewWindow(); + } else { this.content.ResetShiftView(); this.content.ShiftView(this._curShiftView.x, this._curShiftView.y); } - oGraphicsWord.AddClipRect(this.contentRect.X, this.contentRect.Y, this.contentRect.W, this.contentRect.H); + oGraphicsWord.AddClipRect(this.contentClipRect.X, this.contentClipRect.Y, this.contentClipRect.W, this.contentClipRect.H); this.content.Draw(0, oGraphicsWord); oGraphicsWord.RemoveLastClip(); @@ -87,55 +88,69 @@ if (this.IsNeedRecalc() == false) return; - let aRect = this.GetRect(); + if (!this.RecalculateContentRect()) { + this.content.Content.forEach(function(element) { + element.Recalculate_Page(0); + }); + } - let X = aRect[0]; - let Y = aRect[1]; - let nWidth = (aRect[2] - aRect[0]); - let nHeight = (aRect[3] - aRect[1]); + this.SetNeedRecalc(false); + }; + CListBoxField.prototype.RecalculateContentRect = function() { + let aOrigRect = this.GetOrigRect(); - // save pos in page. - this._pagePos = { - x: X, - y: Y, - w: nWidth, - h: nHeight - }; + let X = aOrigRect[0]; + let Y = aOrigRect[1]; + let nWidth = (aOrigRect[2] - aOrigRect[0]); - let oMargins = this.GetMarginsFromBorders(false, false); + let oMargins = this.GetMarginsFromBorders(); - let contentX = (X + oMargins.left) * g_dKoef_pix_to_mm; - let contentY = (Y + oMargins.top) * g_dKoef_pix_to_mm; - let contentXLimit = (X + nWidth - oMargins.left) * g_dKoef_pix_to_mm; - - this._formRect.X = X * g_dKoef_pix_to_mm; - this._formRect.Y = Y * g_dKoef_pix_to_mm; - this._formRect.W = nWidth * g_dKoef_pix_to_mm; - this._formRect.H = nHeight * g_dKoef_pix_to_mm; - - this.content.Content.forEach(function(para) { - para.Pr.Ind.FirstLine = oMargins.left * g_dKoef_pix_to_mm; - para.RecalcCompiledPr(true); - }); + let contentX = (X + oMargins.left) * g_dKoef_pt_to_mm; + let contentY = (Y + oMargins.top) * g_dKoef_pt_to_mm; + let contentXLimit = (X + nWidth - oMargins.left) * g_dKoef_pt_to_mm; - if (contentX != this._oldContentPos.X || contentY != this._oldContentPos.Y || - contentXLimit != this._oldContentPos.XLimit) { - this.content.X = this._oldContentPos.X = contentX; - this.content.Y = this._oldContentPos.Y = contentY; - this.content.XLimit = this._oldContentPos.XLimit = contentXLimit; - this.content.YLimit = this._oldContentPos.YLimit = 20000; - this.CalculateContentRect(); - this.content.Recalculate_Page(0, true); - } - else if (this.IsNeedRecalc()) { - this.content.Content.forEach(function(element) { - element.Recalculate_Page(0); + if (contentX != this.content.X || contentY != this.content.Y || + contentXLimit != this.content.XLimit) { + this.content.X = contentX; + this.content.Y = contentY; + this.content.XLimit = contentXLimit; + this.content.YLimit = 20000; + + this.content.Content.forEach(function(para) { + para.Pr.Ind.FirstLine = oMargins.left * g_dKoef_pt_to_mm; + para.RecalcCompiledPr(true); }); + + this.CalculateContentClipRect(); + this.content.Recalculate_Page(0, true); + + return true; } - this.SetNeedRecalc(false); + return false; }; + CListBoxField.prototype.CalculateContentClipRect = function() { + if (!this.content) + return; + let aRect = this.GetOrigRect(); + let X = aRect[0]; + let Y = aRect[1]; + let nWidth = aRect[2] - aRect[0]; + let nHeight = aRect[3] - aRect[1]; + let oMargins = this.GetMarginsFromBorders(); + + let contentX = (X + oMargins.left) * g_dKoef_pt_to_mm; + let contentXLimit = (X + nWidth - oMargins.left) * g_dKoef_pt_to_mm; + + this.contentClipRect = { + X: contentX, + Y: (Y + oMargins.top) * g_dKoef_pt_to_mm, + W: contentXLimit - contentX, + H: (nHeight - oMargins.top - oMargins.bottom) * g_dKoef_pt_to_mm, + Page: this.GetPage() + } + }; /** * Synchronizes this field with fields with the same name. * @memberof CListBoxField @@ -144,7 +159,8 @@ CListBoxField.prototype.SyncField = function() { let aFields = this.GetDocument().GetAllWidgets(this.GetFullName()); - TurnOffHistory(); + let oDoc = this.GetDocument(); + oDoc.StartNoHistoryMode(); for (let i = 0; i < aFields.length; i++) { if (aFields[i] != this) { @@ -166,6 +182,8 @@ break; } } + + oDoc.EndNoHistoryMode(); }; /** * Applies value of this field to all field with the same name. @@ -177,27 +195,31 @@ let aFields = oDoc.GetAllWidgets(this.GetFullName()); let oThis = this; - let oThisBounds = this.getFormRelRect(); - let aCurIdxs = this.GetCurIdxs(); + let aCurIdxs = this.GetCurIdxs(); + let aApiIdxs = this.GetApiCurIdxs(); + + this.ScrollVerticalEnd(true); + let isChanged = false; + for (let i = 0; i < aCurIdxs.length; i++) { + if (aCurIdxs[i] === undefined || aApiIdxs[i] === undefined || aCurIdxs[i] !== aApiIdxs[i]) { + isChanged = true; + break; + } + } - if (this.GetApiValue() != this.GetValue()) { - oDoc.CreateNewHistoryPoint({objects: [this]}); - AscCommon.History.Add(new CChangesPDFFormValue(this, this.GetApiValue(), this.GetValue())); + if (isChanged) { AscCommon.History.Add(new CChangesPDFListFormCurIdxs(this, this.GetApiCurIdxs(), aCurIdxs)); - - if (oDoc.isUndoRedoInProgress) { - // из истории выставляем curIdxs для родительского поля. Это выставление не меняет выделение параграфов. - // Поэтому вызываем SetCurIdxs - this._bAutoShiftContentView = true; - aCurIdxs = this.GetApiCurIdxs(); - this.SetCurIdxs(aCurIdxs); + this._bAutoShiftContentView = true; + + if (false == AscCommon.History.UndoRedoInProgress) { + this._bUpdateTopIndex = true; } this.SetApiValue(this.GetValue()); this.SetApiCurIdxs(aCurIdxs); } - TurnOffHistory(); + oDoc.StartNoHistoryMode(); aFields.forEach(function(field) { field.SetWasChanged(true); @@ -212,20 +234,31 @@ if (oThis == field) return; - field._bAutoShiftContentView = false; field.SetCurIdxs(aCurIdxs); - - let oFieldBounds = field.getFormRelRect(); - if (Math.abs(oFieldBounds.H - oThisBounds.H) > 0.001) { - field._bAutoShiftContentView = true; - } - else { - field._curShiftView.x = oThis._curShiftView.x; - field._curShiftView.y = oThis._curShiftView.y; - field._originShiftView.x = oThis._originShiftView.x; - field._originShiftView.y = oThis._originShiftView.y; - } + field._bAutoShiftContentView = true; }); + + oDoc.EndNoHistoryMode(); + }; + CListBoxField.prototype.UpdateTopIndex = function() { + let oParaBounds = this.content.GetElement(0).GetPageBounds(0); + let nHeightPerPara = oParaBounds.Bottom - oParaBounds.Top; + let nTopIndex = -this._curShiftView.y / nHeightPerPara; // количество смещений в параграфах + + AscCommon.History.Add(new CChangesPDListTopIndex(this, this.GetTopIndex(), nTopIndex)); + this._topIdx = nTopIndex; + }; + CListBoxField.prototype.GetTopIndex = function() { + return this._topIdx; + }; + CListBoxField.prototype.SetTopIndex = function(nTopIndex) { + // Обновляем _topIdx и добавляем изменение в историю + AscCommon.History.Add(new CChangesPDListTopIndex(this, this.GetTopIndex(), nTopIndex)); + this._topIdx = nTopIndex; + this._bAutoShiftContentView = false; + this._bShiftByTopIndex = true; + + this.AddToRedraw(); }; CListBoxField.prototype.SetMultipleSelection = function(bValue) { @@ -252,6 +285,8 @@ let oPara = this.content.GetElement(nIdx); let oApiPara; + AscCommon.History.StartNoHistoryMode(); + this.content.Set_CurrentElement(nIdx); if (isSingleSelect) { this.content.Content.forEach(function(para) { @@ -269,6 +304,8 @@ oApiPara.Paragraph.RecalcCompiledPr(true); } + AscCommon.History.EndNoHistoryMode(); + this.SetNeedRecalc(true); this.SetNeedCommit(true); this.AddToRedraw(); @@ -441,7 +478,7 @@ } if (this.IsMultipleSelection() == true) { - if (e.ctrlKey == true) { + if (e.CtrlKey == true) { if (oShd && oShd.IsNil() == false) { this.UnselectOption(nPos); } @@ -472,9 +509,11 @@ else callbackAfterFocus.bind(this, x, y, e)(); - this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); - if (false == isInFocus) { - this.onFocus(); + if (isInFocus) { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); + } + else { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown, AscPDF.FORMS_TRIGGERS_TYPES.OnFocus); } }; CListBoxField.prototype.MoveSelectDown = function() { @@ -662,8 +701,13 @@ this._scrollInfo.scrollCoeff = nScrollCoeff; this.AddToRedraw(); }; - CListBoxField.prototype.ScrollVerticalEnd = function() { - let nHeightPerPara = this.content.GetElement(1).Y - this.content.GetElement(0).Y; + CListBoxField.prototype.ScrollVerticalEnd = function(isOnCommit) { + if (!this._scrollInfo) { + return; + } + + let oParaBounds = this.content.GetElement(0).GetPageBounds(0); + let nHeightPerPara = oParaBounds.Bottom - oParaBounds.Top; let nShiftCount = this._curShiftView.y / nHeightPerPara; // количество смещений в длинах параграфов if (Math.abs(Math.round(nShiftCount) - nShiftCount) <= 0.001) return; @@ -673,6 +717,11 @@ this._bAutoShiftContentView = false; this._scrollInfo.scrollCoeff = Math.abs(this._curShiftView.y / nMaxShiftY); + if (isOnCommit) { + this.content.ResetShiftView(); + this.content.ShiftView(this._curShiftView.x, this._curShiftView.y); + } + this.AddToRedraw(); }; CListBoxField.prototype.GetScrollInfo = function() { @@ -683,6 +732,25 @@ }; CListBoxField.prototype.CheckFormViewWindow = function() { + if (this._bShiftByTopIndex) { + let oParaBounds = this.content.GetElement(0).GetPageBounds(0); + let nHeightPerPara = oParaBounds.Bottom - oParaBounds.Top; + + // Устанавливаем _curShiftView.y по заданному nTopIndex + this._curShiftView.y = -this.GetTopIndex() * nHeightPerPara; + + this.content.ResetShiftView(); + this.content.ShiftView(this._curShiftView.x, this._curShiftView.y); + this._oldShiftView = { + x: this._curShiftView.x, + y: this._curShiftView.y + } + + this._bShiftByTopIndex = false; + this._bAutoShiftContentView = false; + return; + } + let curIdx = this.GetCurIdxs(); let nFirstSelectedPara = 0; @@ -721,23 +789,28 @@ if (Math.abs(nDx) > 0.001 || Math.abs(nDy)) { this.content.ShiftView(nDx, nDy); - this._originShiftView = { + this._oldShiftView = { x: this.content.ShiftViewX, y: this.content.ShiftViewY } - this._curShiftView.x = this._originShiftView.x; - this._curShiftView.y = this._originShiftView.y; + this._curShiftView.x = this._oldShiftView.x; + this._curShiftView.y = this._oldShiftView.y; } else { - this._originShiftView.x = this._curShiftView.x; - this._originShiftView.y = this._curShiftView.y; + this._oldShiftView.x = this._curShiftView.x; + this._oldShiftView.y = this._curShiftView.y; } if (nDy == 0) { let nCurMarginBottom = this._internalMargins.bottom != undefined ? this._internalMargins.bottom : (oFormBounds.Y + oFormBounds.H) - (oParagraph.Y + oCurParaHeight); this._internalMargins.bottom = Math.min(nCurMarginBottom, (oFormBounds.Y + oFormBounds.H) - (oParagraph.Y + oCurParaHeight)); } + + if (this._bUpdateTopIndex) { + this.UpdateTopIndex(); + this._bUpdateTopIndex = false; + } }; /** * Gets real form value (can be not commited). @@ -799,10 +872,13 @@ this.UnselectOption(aCurIdxs[i]); } - this.SelectOption(aIdxs[0], true); - for (let i = 1; i < aIdxs.length; i++) { - this.SelectOption(aIdxs[i]); + if (aIdxs.length !== 0) { + this.SelectOption(aIdxs[0], true); + for (let i = 1; i < aIdxs.length; i++) { + this.SelectOption(aIdxs[i]); + } } + if (editor.getDocumentRenderer().IsOpenFormsInProgress) this.SetApiCurIdxs(aIdxs); } @@ -828,7 +904,7 @@ * @returns {boolean} */ CListBoxField.prototype.IsParaOutOfForm = function(oPara) { - if (!this._pagePos) + if (null == this.getFormRelRect()) this.Recalculate(); else oPara.Recalculate_Page(0); @@ -912,6 +988,9 @@ } } + memory.fieldDataFlags |= (1 << 15); + this.WriteRenderToBinary(memory); + // // top index // @@ -938,11 +1017,6 @@ memory.Seek(nEndPos); }; - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - function getPdfAlignType(nPdfAlign) { switch (nPdfAlign) { case align_Left: return AscPDF.ALIGN_TYPE.left; diff --git a/pdf/src/forms/pushbutton.js b/pdf/src/forms/pushbutton.js index 46e9beeae2..aa060afbdc 100644 --- a/pdf/src/forms/pushbutton.js +++ b/pdf/src/forms/pushbutton.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -83,15 +83,15 @@ this._pressed = false; this._hovered = false; - // internal - TurnOffHistory(); - this.content = new AscPDF.CTextBoxContent(this, oDoc); + oDoc.StartNoHistoryMode(); + this.content = new AscPDF.CTextBoxContent(this, oDoc); this.content.SetAlign(AscPDF.ALIGN_TYPE.center); + oDoc.EndNoHistoryMode(); - this._imgData = { - normal: null, - mouseDown: null, - rollover: null, + this._imgData = { + normal: undefined, + mouseDown: undefined, + rollover: undefined, // регистрируем что картинки изменились, нужно при записи, чтобы не писать исходные картинки снова changedInfo: { @@ -104,6 +104,9 @@ this._captionRun = null; this._downCaptionRun = null; this._rollOverCaptionRun = null; + + this._needUpdateImage = true; + this._rasterId = null; } CPushButtonField.prototype = Object.create(AscPDF.CBaseField.prototype); CPushButtonField.prototype.constructor = CPushButtonField; @@ -129,37 +132,37 @@ return; } - oDoc.CreateNewHistoryPoint({objects: [this]}); - - aFields.forEach(function(field) { - if (field.GetHeaderPosition() == position["textOnly"]) - return; - - field.SetWasChanged(true); - field.DoInitialRecalc(); - field.SetNeedRecalc(true); - field.SetImageData(oImgData, nAPType); - - let sTargetSrc; - if (nAPType != AscPDF.APPEARANCE_TYPE.rollover && nAPType != AscPDF.APPEARANCE_TYPE.mouseDown) { - sTargetSrc = oImgData.src; - } - - field.SetImage(Object.assign({}, oImgData, {src: sTargetSrc})); - }); - - if (editor.getDocumentRenderer().IsOpenFormsInProgress == false) { + oDoc.DoAction(function() { aFields.forEach(function(field) { if (field.GetHeaderPosition() == position["textOnly"]) return; - + + field.SetWasChanged(true); + field.DoInitialRecalc(); field.SetNeedRecalc(true); + field.SetImageRasterId(AscFormat.checkRasterImageId(oImgData.src), nAPType); + + let sTargetSrc; + if (nAPType != AscPDF.APPEARANCE_TYPE.rollover && nAPType != AscPDF.APPEARANCE_TYPE.mouseDown) { + sTargetSrc = oImgData.src; + } + + field.SetImage(sTargetSrc); }); - let oDoc = this.GetDocument(); - let oActionsQueue = oDoc.GetActionsQueue(); - oActionsQueue.Continue(); - } + if (oViewer.IsOpenFormsInProgress == false) { + aFields.forEach(function(field) { + if (field.GetHeaderPosition() == position["textOnly"]) + return; + + field.SetNeedRecalc(true); + }); + + let oDoc = this.GetDocument(); + let oActionsQueue = oDoc.GetActionsQueue(); + oActionsQueue.Continue(); + } + }, AscDFH.historydescription_Pdf_FieldImportImage, this); }; CPushButtonField.prototype.IsImageChanged = function(nAPType) { switch (nAPType) { @@ -175,50 +178,73 @@ CPushButtonField.prototype.GetImageRasterId = function(nAPType) { switch (nAPType) { case AscPDF.APPEARANCE_TYPE.rollover: - return this._imgData.rollover ? this._imgData.rollover.src : ""; + return this._imgData.rollover; case AscPDF.APPEARANCE_TYPE.mouseDown: - return this._imgData.mouseDown ? this._imgData.mouseDown.src : ""; + return this._imgData.mouseDown; case AscPDF.APPEARANCE_TYPE.normal: default: - return this._imgData.normal ? this._imgData.normal.src : ""; + return this._imgData.normal; } }; /** * Sets image only for this pushbutton (without commiting). Needs for history. * @memberof CPushButtonField - * @param {number} nType - BUTTON_HIGHLIGHT_TYPES + * @param {number} nAPType - appearence type * @typeofeditors ["PDF"] */ - CPushButtonField.prototype.AddImage2 = function(oImgData, nAPType) { - if (!oImgData) { - return; - } - const oHTMLImg = oImgData.Image; - if (!oHTMLImg || oHTMLImg.width === 0 || oHTMLImg.height === 0) { - return; - } - - this.SetImageData(oImgData, nAPType); - this.SetImage(oImgData); + CPushButtonField.prototype.AddImage2 = function(sRasterId, nAPType) { + this.SetImageRasterId(sRasterId, nAPType); + this.SetImage(sRasterId); }; /** - * Sets image without any changes. + * Sets image without any history changes. * @memberof CPushButtonField + * @param {string} rasterId * @typeofeditors ["PDF"] */ - CPushButtonField.prototype.SetImage = function(oImgData) { - if (!oImgData) { + CPushButtonField.prototype.SetImage = function(rasterId) { + if (this._rasterId === rasterId && this.GetDrawing()) + return; + + this._needUpdateImage = true; + this._rasterId = rasterId; + + this._UpdateImage(); + }; + CPushButtonField.prototype._UpdateImage = function() { + if (!this._needUpdateImage) + return; + + this._needUpdateImage = !this._SetImage(); + }; + CPushButtonField.prototype._SetImage = function() { + let sRasterId = this._rasterId; + + if (!this.DoInitialRecalc()) { + this.AddToRedraw(); return; } - const oHTMLImg = oImgData.Image; - if (!oHTMLImg || oHTMLImg.width === 0 || oHTMLImg.height === 0) { - return; + + if (!sRasterId) + return this._RemoveImage(); + + let oImgData = null; + + if (sRasterId) { + oImgData = Asc.editor.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(sRasterId)]; } + + if (!oImgData || oImgData.Status === AscFonts.ImageLoadStatus.Loading) + return false; + + this._RemoveImage(); + + let oHTMLImg = oImgData.Image; - this.RemoveImage(); + AscCommon.History.StartNoHistoryMode(); - const dImgW = Math.max((oHTMLImg.width * AscCommon.g_dKoef_pix_to_mm), 1); - const dImgH = Math.max((oHTMLImg.height * AscCommon.g_dKoef_pix_to_mm), 1); + const dImgW = Math.max((oHTMLImg.width * g_dKoef_pix_to_mm), 1); + const dImgH = Math.max((oHTMLImg.height * g_dKoef_pix_to_mm), 1); const oRect = this.IsButtonFitBounds() ? this.getFormRect() : this.getFormRelRect(); let nContentW = 0; let nContentH = 0; @@ -298,7 +324,7 @@ oDrawing.Set_DrawingType(drawing_Inline); let oImgShape = new AscFormat.CImageShape(); - AscFormat.fillImage(oImgShape, oImgData.src, 0, 0, dDrawingW, dDrawingH); + AscFormat.fillImage(oImgShape, sRasterId, 0, 0, dDrawingW, dDrawingH); oImgShape.setParent(oDrawing); oDrawing.Set_GraphicObject(oImgShape); @@ -366,8 +392,13 @@ let oIconPos = this.GetIconPosition(); this.SetIconPosition(oIconPos.X, oIconPos.Y); + + AscCommon.History.EndNoHistoryMode(); + return true; }; - CPushButtonField.prototype.RemoveImage = function() { + CPushButtonField.prototype._RemoveImage = function() { + AscCommon.History.StartNoHistoryMode(); + let oExistDrawing = this.GetDrawing(); if (oExistDrawing) { oExistDrawing.PreDelete(); @@ -381,8 +412,15 @@ oFirstRun.RemoveFromContent(oFirstRun.GetElementsCount() - 1, 1); } } + + AscCommon.History.EndNoHistoryMode(); + + return true; }; - + CPushButtonField.prototype.getAllRasterImages = function(images) { + if (this._rasterId) + images.push(this._rasterId); + }; /** * Defines how a button reacts when a user clicks it. The four highlight modes supported are: * none — No visual indication that the button has been clicked. @@ -531,6 +569,7 @@ let oCaptionRun; let oPara = this.content.GetElement(0); + AscCommon.History.StartNoHistoryMode(); switch (this._buttonPosition) { case position["textIconV"]: case position["textOnly"]: @@ -571,6 +610,7 @@ this.SetCaptionRun(oCaptionRun); break; } + AscCommon.History.EndNoHistoryMode(); break; case 1: this._downCaption = cCaption; @@ -586,6 +626,8 @@ CPushButtonField.prototype.Draw = function(oGraphicsPDF, oGraphicsWord) { if (this.IsHidden() == true) return; + + this._UpdateImage(); this.CheckImageOnce(); this.Recalculate(); @@ -686,35 +728,38 @@ } }; - CPushButtonField.prototype.SetImageData = function(oImgData, nAPType) { - let oPrevImgData; + CPushButtonField.prototype.SetImageRasterId = function(sRasterId, nAPType) { + let sPrevRasterId; let oViewer = Asc.editor.getDocumentRenderer(); let oDoc = this.GetDocument(); + if (undefined == nAPType) { + nAPType = AscPDF.APPEARANCE_TYPE.normal; + } + switch (nAPType) { case AscPDF.APPEARANCE_TYPE.rollover: - oPrevImgData = this._imgData.rollover; - this._imgData.rollover = oImgData; + sPrevRasterId = this._imgData.rollover; + this._imgData.rollover = sRasterId; this._imgData.changedInfo.rollover = true; break; case AscPDF.APPEARANCE_TYPE.mouseDown: - oPrevImgData = this._imgData.mouseDown; - this._imgData.mouseDown = oImgData; + sPrevRasterId = this._imgData.mouseDown; + this._imgData.mouseDown = sRasterId; this._imgData.changedInfo.mouseDown = true; break; case AscPDF.APPEARANCE_TYPE.normal: - default: - oPrevImgData = this._imgData.normal; - this._imgData.normal = oImgData; + sPrevRasterId = this._imgData.normal; + this._imgData.normal = sRasterId; this._imgData.changedInfo.normal = true; break; } if (oViewer.IsOpenFormsInProgress == false && oDoc.History.UndoRedoInProgress == false) { - oDoc.History.TurnOn(); - oDoc.History.Add(new CChangesPDFPushbuttonImage(this, [oPrevImgData, nAPType], [oImgData, nAPType])); - oDoc.TurnOffHistory(); + oDoc.History.Add(new CChangesPDFPushbuttonImage(this, sPrevRasterId, sRasterId, nAPType)); } + + this.SetWasChanged(true); }; CPushButtonField.prototype.DrawPressed = function() { this.SetPressed(true); @@ -725,35 +770,30 @@ } let sTargetCaption; - let oTargetImgData; + let sTargetImgRasterId; let sMouseDownCaption = this.GetCaption(CAPTION_TYPES.mouseDown); let sNormalCaption = this.GetCaption(CAPTION_TYPES.normal); let oCaptionRun = this.GetCaptionRun(); if (this._imgData.mouseDown || sMouseDownCaption) { sTargetCaption = sMouseDownCaption; - oTargetImgData = this._imgData.mouseDown; + sTargetImgRasterId = this._imgData.mouseDown; } else if (this._imgData.normal || sNormalCaption) { sTargetCaption = sNormalCaption; - oTargetImgData = this._imgData.normal; + sTargetImgRasterId = this._imgData.normal; } - if (oTargetImgData || sTargetCaption) { - + if (sTargetImgRasterId || sTargetCaption) { + AscCommon.History.StartNoHistoryMode(); if (oCaptionRun && sTargetCaption) { oCaptionRun.ClearContent(); oCaptionRun.AddText(sTargetCaption); } - if (oTargetImgData) { - this.SetImage(oTargetImgData); - } - else { - this.RemoveImage(); - } - + this.SetImage(sTargetImgRasterId); this.SetNeedRecalc(true); + AscCommon.History.EndNoHistoryMode(); } if (this.GetHighlight() == AscPDF.BUTTON_HIGHLIGHT_TYPES.push) { @@ -769,25 +809,21 @@ } if (this._imgData.mouseDown || this.GetCaption(CAPTION_TYPES.normal) || this.GetCaption(CAPTION_TYPES.rollover)) { - let oTargetImgData = this.IsHovered() && this.GetCaption(CAPTION_TYPES.rollover) ? this._imgData.rollover : this._imgData.normal; + let sTargetImgRasterId = this.IsHovered() && this.GetCaption(CAPTION_TYPES.rollover) ? this._imgData.rollover : this._imgData.normal; let sTargetCaption = this.IsHovered() && this.GetCaption(CAPTION_TYPES.rollover) ? this.GetCaption(CAPTION_TYPES.rollover) : this.GetCaption(CAPTION_TYPES.normal); let oCaptionRun = this.GetCaptionRun(); let sDefaultCaption = this.GetCaption(CAPTION_TYPES.normal); + AscCommon.History.StartNoHistoryMode(); if (oCaptionRun && sDefaultCaption && sTargetCaption) { oCaptionRun.ClearContent(); oCaptionRun.AddText(sTargetCaption); } - if (oTargetImgData) { - this.SetImage(oTargetImgData); - } - else { - this.RemoveImage(); - } - + this.SetImage(sTargetImgRasterId); this.SetNeedRecalc(true); + AscCommon.History.EndNoHistoryMode(); } if (this.GetHighlight() == AscPDF.BUTTON_HIGHLIGHT_TYPES.push) { @@ -827,6 +863,8 @@ let sRolloverCaption = this.GetCaption(CAPTION_TYPES.rollover); if (this._imgData.rollover || sRolloverCaption) { + AscCommon.History.StartNoHistoryMode(); + // сначала добавляем текст, т.к. учитывается его размер при добавлении картинки if (sRolloverCaption) { let oCaptionRun = this.GetCaptionRun(); @@ -834,14 +872,9 @@ oCaptionRun.AddText(sRolloverCaption); } - if (this._imgData.rollover) { - this.SetImage(this._imgData.rollover); - } - else { - this.RemoveImage(); - } - + this.SetImage(this._imgData.rollover); this.SetNeedRecalc(true); + AscCommon.History.EndNoHistoryMode(); } }; CPushButtonField.prototype.OnEndRollover = function() { @@ -858,7 +891,9 @@ } if (this._imgData.rollover || this.GetCaption(CAPTION_TYPES.rollover)) { - let oCaptionRun = this.GetCaptionRun(); + AscCommon.History.StartNoHistoryMode(); + + let oCaptionRun = this.GetCaptionRun(); let sRolloverCaption = this.GetCaption(CAPTION_TYPES.rollover); let sDefaultCaption = this.GetCaption(CAPTION_TYPES.normal); if (sDefaultCaption && sRolloverCaption) { @@ -866,14 +901,10 @@ oCaptionRun.AddText(sDefaultCaption); } - if (this._imgData.normal) { - this.SetImage(this._imgData.normal); - } - else { - this.RemoveImage(); - } - + this.SetImage(this._imgData.normal); this.SetNeedRecalc(true); + + AscCommon.History.EndNoHistoryMode(); } }; CPushButtonField.prototype.DrawBackground = function(oGraphicsPDF) { @@ -912,54 +943,81 @@ CPushButtonField.prototype.CheckImageOnce = function() { // на открытии не заполняли контент формы, но если внешнего вида нет, тогда рисуем сами, нужно заполнить форму контентом let oDrawing = this.GetDrawing(); - if (!oDrawing && !this.IsNeedDrawFromStream() && !this._pagePos) { + if (!oDrawing && !this.IsNeedDrawFromStream()) { this.DoInitialRecalc(); - let oImgData = this._imgData.normal; - if (oImgData) - this.SetImage(oImgData); + let sImgRasterId = this._imgData.normal; + if (sImgRasterId) + this.SetImage(sImgRasterId); this.imageChecked = true; } }; - CPushButtonField.prototype.CalculateContentRect = function() { + CPushButtonField.prototype.CalculateContentClipRect = function() { if (!this.content) return; - let aRect = this.GetRect(); + let aRect = this.GetOrigRect(); + let X = aRect[0]; let Y = aRect[1]; - let nHeight = ((aRect[3]) - (aRect[1])); - let oMargins = this.GetMarginsFromBorders(false, false); + let nWidth = aRect[2] - aRect[0]; + let nHeight = aRect[3] - aRect[1]; + let oMargins = this.GetMarginsFromBorders(); - this.contentRect.X = this.content.X; - this.contentRect.Y = (Y + 2 * oMargins.top) * g_dKoef_pix_to_mm; - this.contentRect.W = this.content.XLimit - this.content.X; - this.contentRect.H = (nHeight - 2 * oMargins.top - 2 * oMargins.bottom) * g_dKoef_pix_to_mm; + let contentX; + let contentXLimit; + + if (this.IsButtonFitBounds() == false) { + contentX = (X + 2 * oMargins.left) * g_dKoef_pt_to_mm; + contentXLimit = (X + nWidth - 2 * oMargins.left) * g_dKoef_pt_to_mm; + } + else { + contentX = (X) * g_dKoef_pt_to_mm; + contentXLimit = (X + nWidth) * g_dKoef_pt_to_mm; + } + + this.contentClipRect = { + X: contentX, + Y: (Y + 2 * oMargins.top) * g_dKoef_pt_to_mm, + W: contentXLimit - contentX, + H: (nHeight - 2 * oMargins.top - 2 * oMargins.bottom) * g_dKoef_pt_to_mm, + Page: this.GetPage() + }; }; CPushButtonField.prototype.DoInitialRecalc = function() { - if (!this._pagePos) { - this.Recalculate(); + if (null == this.contentClipRect) { + if (this.GetDocument().checkFieldFont(this)) { + this.Recalculate(); + return true; + } + + return false; } + + return true; }; CPushButtonField.prototype.Recalculate = function() { if (this.IsNeedRecalc() == false) return; - let aRect = this.GetRect(); + this.CheckTextFont(); + this.CheckTextColor(); - let X = aRect[0]; - let Y = aRect[1]; - let nWidth = (aRect[2] - aRect[0]); - let nHeight = (aRect[3] - aRect[1]); - - // save pos in page. - this._pagePos = { - x: X, - y: Y, - w: nWidth, - h: nHeight - }; + if (false == this.RecalculateContentRect()) { + this.Internal_CorrectContentPos(); + this.content.Recalculate_Page(0, false); + } - let oMargins = this.GetMarginsFromBorders(false, false); + this.SetNeedRecalc(false); + }; + CPushButtonField.prototype.RecalculateContentRect = function() { + let aOrigRect = this.GetOrigRect(); + + let X = aOrigRect[0]; + let Y = aOrigRect[1]; + let nWidth = (aOrigRect[2] - aOrigRect[0]); + let nHeight = (aOrigRect[3] - aOrigRect[1]); + + let oMargins = this.GetMarginsFromBorders(); let contentX; let contentY; @@ -967,106 +1025,102 @@ let contentYLimit; if (this.IsButtonFitBounds() == false) { - contentX = (X + 2 * oMargins.left) * g_dKoef_pix_to_mm; - contentY = (Y + 2 * oMargins.top) * g_dKoef_pix_to_mm; - contentXLimit = (X + nWidth - 2 * oMargins.left) * g_dKoef_pix_to_mm; - contentYLimit = (Y + nHeight - 2 * oMargins.bottom) * g_dKoef_pix_to_mm; + contentX = (X + 2 * oMargins.left) * g_dKoef_pt_to_mm; + contentY = (Y + 2 * oMargins.top) * g_dKoef_pt_to_mm; + contentXLimit = (X + nWidth - 2 * oMargins.left) * g_dKoef_pt_to_mm; + contentYLimit = (Y + nHeight - 2 * oMargins.bottom) * g_dKoef_pt_to_mm; } else { - contentX = (X) * g_dKoef_pix_to_mm; - contentY = (Y) * g_dKoef_pix_to_mm; - contentXLimit = (X + nWidth) * g_dKoef_pix_to_mm; - contentYLimit = (Y + nHeight) * g_dKoef_pix_to_mm; + contentX = (X) * g_dKoef_pt_to_mm; + contentY = (Y) * g_dKoef_pt_to_mm; + contentXLimit = (X + nWidth) * g_dKoef_pt_to_mm; + contentYLimit = (Y + nHeight) * g_dKoef_pt_to_mm; } if (this.IsPressed() && this.IsHovered() && this.GetHighlight() == AscPDF.BUTTON_HIGHLIGHT_TYPES.push) { if (this._buttonFitBounds == true) { - contentX += oMargins.left * g_dKoef_pix_to_mm; - contentY += oMargins.top * g_dKoef_pix_to_mm; + contentX += oMargins.left * g_dKoef_pt_to_mm; + contentY += oMargins.top * g_dKoef_pt_to_mm; } else { switch (this.GetBorderStyle()) { case AscPDF.BORDER_TYPES.solid: case AscPDF.BORDER_TYPES.dashed: case AscPDF.BORDER_TYPES.underline: - contentX += oMargins.left * g_dKoef_pix_to_mm; - contentY += oMargins.top * g_dKoef_pix_to_mm; - contentXLimit += oMargins.left * g_dKoef_pix_to_mm; - contentYLimit += oMargins.top * g_dKoef_pix_to_mm; + contentX += oMargins.left * g_dKoef_pt_to_mm; + contentY += oMargins.top * g_dKoef_pt_to_mm; + contentXLimit += oMargins.left * g_dKoef_pt_to_mm; + contentYLimit += oMargins.top * g_dKoef_pt_to_mm; break; case AscPDF.BORDER_TYPES.beveled: case AscPDF.BORDER_TYPES.inset: - contentX += oMargins.left * g_dKoef_pix_to_mm / 2; - contentY += oMargins.top * g_dKoef_pix_to_mm / 2; - contentXLimit += oMargins.left * g_dKoef_pix_to_mm / 2; - contentYLimit += oMargins.top * g_dKoef_pix_to_mm / 2; + contentX += oMargins.left * g_dKoef_pt_to_mm / 2; + contentY += oMargins.top * g_dKoef_pt_to_mm / 2; + contentXLimit += oMargins.left * g_dKoef_pt_to_mm / 2; + contentYLimit += oMargins.top * g_dKoef_pt_to_mm / 2; break; } } } - this._formRect.X = X * g_dKoef_pix_to_mm; - this._formRect.Y = Y * g_dKoef_pix_to_mm; - this._formRect.W = nWidth * g_dKoef_pix_to_mm; - this._formRect.H = nHeight * g_dKoef_pix_to_mm; - - this.CheckTextFont(); - this.CheckTextColor(); - - if (contentX != this._oldContentPos.X || contentY != this._oldContentPos.Y || - contentXLimit != this._oldContentPos.XLimit) { - this.content.X = this._oldContentPos.X = contentX; - this.content.Y = this._oldContentPos.Y = contentY; - this.content.XLimit = this._oldContentPos.XLimit = contentXLimit; - this.content.YLimit = this._oldContentPos.YLimit = 20000; + if (contentX != this.content.X || contentY != this.content.Y || + contentXLimit != this.content.XLimit) { + this.content.X = contentX; + this.content.Y = contentY; + this.content.XLimit = contentXLimit; + this.content.YLimit = 20000; - this.CalculateContentRect(); + this.CalculateContentClipRect(); this.Internal_CorrectContentPos(); this.content.Recalculate_Page(0, true); - } - else if (this.IsNeedRecalc()) { - this.Internal_CorrectContentPos(); - this.content.Recalculate_Page(0, false); - } - - this.SetNeedRecalc(false); - }; - CPushButtonField.prototype.CheckTextColor = function() { - let oCaptionRun = this.GetCaptionRun(); - if (oCaptionRun == null) - return; - - let aColor = this.GetTextColor(); - let oRGBColor = this.GetRGBColor(aColor); - let oCaptionColor = oCaptionRun.Get_Color(); - if (oRGBColor.r != oCaptionColor.r || oRGBColor.g != oCaptionColor.g || oRGBColor.b != oCaptionColor.b) { - this._textColor = aColor; - - let oRGB = this.GetRGBColor(aColor); - if (this.content) { - let oPara = oCaptionRun.Paragraph; - let oApiPara = editor.private_CreateApiParagraph(oPara); - oApiPara.SetColor(oRGB.r, oRGB.g, oRGB.b, false); - oPara.RecalcCompiledPr(true); - } + return true; } - }; - CPushButtonField.prototype.CheckTextFont = function() { - let oCaptionRun = this.GetCaptionRun(); - if (oCaptionRun == null) - return; - let sFont = this.GetTextFontActual(); - if (oCaptionRun.Pr.GetFontFamily() != sFont) { - if (this.content) { - this.content.SetFont(sFont); - - let oStyle = this.GetFontStyle(); - this.content.SetBold(oStyle.bold); - this.content.SetItalic(oStyle.italic); - } - } + return false; + }; + CPushButtonField.prototype.CheckTextColor = function() { + let oCaptionRun = this.GetCaptionRun(); + if (oCaptionRun == null) + return; + + AscCommon.ExecuteNoHistory(function(){ + let aColor = this.GetTextColor(); + let oRGB = this.GetRGBColor(aColor); + let oCaptionColor = oCaptionRun.Get_Color(); + + if (oRGB.r === oCaptionColor.r + && oRGB.g === oCaptionColor.g + && oRGB.b === oCaptionColor.b) + return; + + this._textColor = aColor; + + if (!this.content) + return; + + let oPara = oCaptionRun.Paragraph; + let oApiPara = editor.private_CreateApiParagraph(oPara); + + oApiPara.SetColor(oRGB.r, oRGB.g, oRGB.b, false); + oPara.RecalcCompiledPr(true); + }, undefined, this); + }; + CPushButtonField.prototype.CheckTextFont = function() { + let oCaptionRun = this.GetCaptionRun(); + if (oCaptionRun == null) + return; + + AscCommon.ExecuteNoHistory(function(){ + let sFont = this.GetTextFontActual(); + if (oCaptionRun.Pr.GetFontFamily() === sFont || !this.content) + return; + + this.content.SetFont(sFont); + let oStyle = this.GetFontStyle(); + this.content.SetBold(oStyle.bold); + this.content.SetItalic(oStyle.italic); + }, undefined, this); }; CPushButtonField.prototype.GetCaptionRun = function() { return this._captionRun; @@ -1225,9 +1279,11 @@ else callbackAfterFocus.bind(this)(); - this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); - if (false == isInFocus) { - this.onFocus(); + if (isInFocus) { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); + } + else { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown, AscPDF.FORMS_TRIGGERS_TYPES.OnFocus); } }; CPushButtonField.prototype.onMouseUp = function() { @@ -1249,22 +1305,24 @@ this.OnEndRollover(); }; CPushButtonField.prototype.buttonImportIcon = function() { - let Api = editor; - let oThis = this; + let Api = editor; + let oThis = this; + let oDoc = this.GetDocument(); + let oActionsQueue = oDoc.GetActionsQueue(); - let oActionsQueue = this.GetDocument().GetActionsQueue(); - if (oActionsQueue instanceof AscPDF.CActionRunScript) - oActionsQueue.bContinueAfterEval = false; + if (oActionsQueue.curAction) { + oActionsQueue.curAction.bContinueAfterEval = false; + } Api.oSaveObjectForAddImage = this; + + AscCommon.global_mouseEvent.LockMouse(); if (window["AscDesktopEditor"] && window["AscDesktopEditor"]["IsLocalFile"]()) { window["AscDesktopEditor"]["OpenFilenameDialog"]("images", false, function(_file) { var file = _file; if (Array.isArray(file)) file = file[0]; if (!file) { - let oDoc = oThis.GetDocument(); - let oActionsQueue = oDoc.GetActionsQueue(); oActionsQueue.Continue(); return; } @@ -1274,23 +1332,23 @@ }); } else { - AscCommon.ShowImageFileDialog(Api.documentId, Api.documentUserId, undefined, Api.documentShardKey, Api.documentWopiSrc, function(error, files) - { + AscCommon.ShowImageFileDialog(Api.documentId, Api.documentUserId, undefined, Api.documentShardKey, Api.documentWopiSrc, Api.documentUserSessionId, function(error, files) { if (error.canceled == true) { - let oDoc = oThis.GetDocument(); - let oActionsQueue = oDoc.GetActionsQueue(); oActionsQueue.Continue(); } - else + else { Api._uploadCallback(error, files, oThis); + } - }, function(error) - { - if (c_oAscError.ID.No !== error) - { + AscCommon.global_mouseEvent.UnLockMouse(); + + }, function(error) { + if (c_oAscError.ID.No !== error) { Api.sendEvent("asc_onError", error, c_oAscError.Level.NoCritical); } + Api.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.UploadImage); + AscCommon.global_mouseEvent.UnLockMouse(); }); } }; @@ -1409,6 +1467,8 @@ this._buttonPosition = position["textOnly"]; + AscCommon.History.StartNoHistoryMode(); + let oPara; if (this.content.Content.length == 2) { for (let i = 0; i < this.content.Content.length; i++) { @@ -1432,6 +1492,8 @@ } } + AscCommon.History.EndNoHistoryMode(); + this.SetWasChanged(true); this.SetNeedRecalc(true); }; @@ -1442,6 +1504,8 @@ this._buttonPosition = position["iconOnly"]; this._buttonCaption = undefined; + AscCommon.History.StartNoHistoryMode(); + let oPara; if (this.content.Content.length == 2) { for (let i = 0; i < this.content.Content.length; i++) { @@ -1481,12 +1545,17 @@ oPara.CorrectContent(); } + AscCommon.History.EndNoHistoryMode(); this.SetNeedRecalc(true); }; CPushButtonField.prototype.SetIconTextV = function() { if (this._buttonPosition == position["iconTextV"]) return; + this._buttonPosition = position["iconTextV"]; + + AscCommon.History.StartNoHistoryMode(); + let oPara1; let oPara2; if (this.content.Content.length == 2) { @@ -1538,13 +1607,17 @@ } } + AscCommon.History.EndNoHistoryMode(); this.SetNeedRecalc(true); - this._buttonPosition = position["iconTextV"]; }; CPushButtonField.prototype.SetTextIconV = function() { if (this._buttonPosition == position["textIconV"]) return; + this._buttonPosition = position["textIconV"]; + + AscCommon.History.StartNoHistoryMode(); + let oPara1; let oPara2; if (this.content.Content.length == 2) { @@ -1596,13 +1669,17 @@ } } + AscCommon.History.EndNoHistoryMode(); this.SetNeedRecalc(true); - this._buttonPosition = position["textIconV"]; }; CPushButtonField.prototype.SetIconTextH = function() { if (this._buttonPosition == position["iconTextH"]) return; + this._buttonPosition = position["iconTextH"]; + + AscCommon.History.StartNoHistoryMode(); + let oPara; if (this.content.Content.length == 2) { for (let i = 0; i < this.content.Content.length; i++) { @@ -1649,13 +1726,17 @@ oPara.Add_ToContent(oPara.Content.length - 1, oTmpRun); } + AscCommon.History.EndNoHistoryMode(); this.SetNeedRecalc(true); - this._buttonPosition = position["iconTextH"]; }; CPushButtonField.prototype.SetTextIconH = function() { if (this._buttonPosition == position["textIconH"]) return; + this._buttonPosition = position["textIconH"]; + + AscCommon.History.StartNoHistoryMode(); + let oPara; if (this.content.Content.length == 2) { for (let i = 0; i < this.content.Content.length; i++) { @@ -1702,13 +1783,17 @@ this.SetCaptionRun(oTmpRun); } + AscCommon.History.EndNoHistoryMode(); this.SetNeedRecalc(true); - this._buttonPosition = position["textIconH"]; }; CPushButtonField.prototype.SetOverlay = function() { if (this._buttonPosition == position["overlay"]) return; + this._buttonPosition = position["overlay"]; + + AscCommon.History.StartNoHistoryMode(); + let oPara; if (this.content.Content.length == 2) { for (let i = 0; i < this.content.Content.length; i++) { @@ -1749,12 +1834,12 @@ if (this._buttonCaption) { oCaptionRun = oPara.GetElement(0); - this.SetCaptionRun(oTmpRun); - oTmpRun.AddText(this._buttonCaption); + this.SetCaptionRun(oCaptionRun); + oCaptionRun.AddText(this._buttonCaption); } + AscCommon.History.EndNoHistoryMode(); this.SetNeedRecalc(true); - this._buttonPosition = position["overlay"]; }; /** @@ -1765,7 +1850,8 @@ CPushButtonField.prototype.SyncField = function() { let aFields = this.GetDocument().GetAllWidgets(this.GetFullName()); - TurnOffHistory(); + let oDoc = this.GetDocument(); + oDoc.StartNoHistoryMode(); for (let i = 0; i < aFields.length; i++) { if (aFields[i] != this) { @@ -1801,6 +1887,8 @@ break; } } + + oDoc.EndNoHistoryMode(); }; /** * Applies value of this field to all field with the same name. @@ -1808,10 +1896,11 @@ * @typeofeditors ["PDF"] */ CPushButtonField.prototype.Commit = function() { + let oDoc = this.GetDocument(); let aFields = this.GetDocument().GetAllWidgets(this.GetFullName()); let oThisPara = this.content.GetElement(0); - TurnOffHistory(); + oDoc.StartNoHistoryMode(); if (aFields.length == 1) this.SetNeedCommit(false); @@ -1834,6 +1923,8 @@ aFields[i].SetNeedRecalc(true); } + + oDoc.EndNoHistoryMode(); }; CPushButtonField.prototype.Reset = function() { @@ -1969,11 +2060,6 @@ }; } - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - if (!window["AscPDF"]) window["AscPDF"] = {}; diff --git a/pdf/src/forms/radiobutton.js b/pdf/src/forms/radiobutton.js index 8aa5287db9..6252dbde16 100644 --- a/pdf/src/forms/radiobutton.js +++ b/pdf/src/forms/radiobutton.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/pdf/src/forms/signature.js b/pdf/src/forms/signature.js index c8c8702ef8..d7e1be99dd 100644 --- a/pdf/src/forms/signature.js +++ b/pdf/src/forms/signature.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -120,11 +120,6 @@ }; } - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - - window["AscPDF"].CSignatureField = CSignatureField; + window["AscPDF"].CSignatureField = CSignatureField; })(); diff --git a/pdf/src/forms/text.js b/pdf/src/forms/text.js index 0ea1c19ac5..83654aa5b0 100644 --- a/pdf/src/forms/text.js +++ b/pdf/src/forms/text.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2019 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -57,12 +57,12 @@ this._useDisplayValue = true; // internal - TurnOffHistory(); + oDoc.StartNoHistoryMode(); this.content = new AscPDF.CTextBoxContent(this, oDoc); - // content for formatting value // Note: draw this content instead of main if form has a "format" action this.contentFormat = new AscPDF.CTextBoxContent(this, oDoc, true); + oDoc.EndNoHistoryMode(); this._scrollInfo = null; this._markRect = {}; @@ -203,11 +203,26 @@ CTextField.prototype.UpdateDisplayValue = function(displayValue) { let oDoc = this.GetDocument(); let isOnOpen = oDoc.Viewer.IsOpenFormsInProgress; + let _t = this; + + oDoc.StartNoHistoryMode(); - if (isOnOpen == false && this.GetType() == AscPDF.FIELD_TYPES.text) { - let nCharLimit = this.GetCharLimit(); - if (nCharLimit !== 0) - displayValue = displayValue.slice(0, nCharLimit); + AscFonts.FontPickerByCharacter.getFontsByString(displayValue); + if (!oDoc.checkFieldFont(this, function() { + _t.UpdateDisplayValue(displayValue); + })) { + return; + } + + if (isOnOpen == false && this.GetType() == AscPDF.FIELD_TYPES.text && typeof(displayValue) == "string") { + let aChars = displayValue.codePointsArray(); + let nCharsCount = AscWord.GraphemesCounter.GetCount(aChars, this.content.GetCalculatedTextPr()); + let nCharLimit = this.GetCharLimit(); + + if (0 !== nCharLimit && nCharsCount > nCharLimit) + aChars.length = nCharLimit; + + displayValue = String.fromCharCode.apply(null, aChars); } if (displayValue === this._displayValue && this._useDisplayValue == true) @@ -215,10 +230,7 @@ this._displayValue = displayValue; this._useDisplayValue = true; - let _t = this; - - AscFonts.FontPickerByCharacter.getFontsByString(displayValue); - + if (isOnOpen == true) { if (_t._displayValue !== displayValue) return; @@ -235,6 +247,7 @@ _t.content.MoveCursorToStartPos(); } + oDoc.EndNoHistoryMode(); }; CTextField.prototype.GetCalcOrderIndex = function() { return this.GetDocument().GetCalculateInfo().ids.indexOf(this.GetApIdx()); @@ -297,6 +310,7 @@ }; CTextField.prototype.OnContentChange = function() { this._useDisplayValue = false; + this.SetNeedRecalc(true); }; CTextField.prototype.Draw = function(oGraphicsPDF, oGraphicsWord) { @@ -319,7 +333,7 @@ if (this._bAutoShiftContentView && oDoc.activeForm == this) this.CheckFormViewWindow(); - oGraphicsWord.AddClipRect(this.contentRect.X, this.contentRect.Y, this.contentRect.W, this.contentRect.H); + oGraphicsWord.AddClipRect(this.contentClipRect.X, this.contentClipRect.Y, this.contentClipRect.W, this.contentClipRect.H); oContentToDraw.Draw(0, oGraphicsWord); oGraphicsWord.RemoveLastClip(); @@ -333,7 +347,8 @@ return; let oViewer = editor.getDocumentRenderer(); - let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom * (96 / oViewer.file.pages[this.GetPage()].Dpi); + let nPage = this.GetPage(); + let nScale = AscCommon.AscBrowser.retinaPixelRatio * oViewer.zoom * oViewer.getDrawingPageScale(nPage); let aOrigRect = this.GetOrigRect(); let xCenter = oViewer.width >> 1; @@ -342,13 +357,13 @@ xCenter = (oViewer.documentWidth >> 1) - (oViewer.scrollX) >> 0; } let yPos = oViewer.scrollY >> 0; - let page = oViewer.drawingPages[this.GetPage()]; + let page = oViewer.drawingPages[nPage]; let w = (page.W * AscCommon.AscBrowser.retinaPixelRatio) >> 0; let h = (page.H * AscCommon.AscBrowser.retinaPixelRatio) >> 0; let indLeft = ((xCenter * AscCommon.AscBrowser.retinaPixelRatio) >> 0) - (w >> 1); let indTop = ((page.Y - yPos) * AscCommon.AscBrowser.retinaPixelRatio) >> 0; - let isLandscape = oViewer.isLandscapePage(this.GetPage()); + let isLandscape = oViewer.isLandscapePage(nPage); if (isLandscape) { indLeft = indLeft + (w - h) / 2; } @@ -358,12 +373,12 @@ let nWidth = (aOrigRect[2] - aOrigRect[0]) * nScale; let nHeight = (aOrigRect[3] - aOrigRect[1]) * nScale; - let oMargins = this.GetBordersWidth(true); + let oMargins = this.GetBordersWidth(); let nMarkWidth = 18; - let nMarkX = (X + nWidth) - oMargins.left - nMarkWidth; - let nMarkHeight = nHeight - 2 * oMargins.top - 2; - let nMarkY = Y + oMargins.top + 1; + let nMarkX = (X + nWidth) - oMargins.left * nScale - nMarkWidth; + let nMarkHeight = nHeight - 2 * oMargins.top * nScale; + let nMarkY = Y + oMargins.top * nScale; // marker rect oCtx.setLineDash([]); @@ -525,94 +540,98 @@ if (this.IsNeedRecalc() == false) return; - this.RecalcMeasureContent(); - let aRect = this.GetRect(); - - let X = aRect[0]; - let Y = aRect[1]; - let nWidth = ((aRect[2]) - (aRect[0])); - let nHeight = ((aRect[3]) - (aRect[1])); - - let oMargins = this.GetMarginsFromBorders(false, false); - - let contentX = this.IsComb() ? (X + oMargins.left) * g_dKoef_pix_to_mm : (X + 2 * oMargins.left) * g_dKoef_pix_to_mm; - let contentY = (Y + (this.IsMultiline() ? (2.5 * oMargins.top) : (2 * oMargins.top))) * g_dKoef_pix_to_mm; - let contentXLimit = this.IsComb() ? (X + nWidth - oMargins.left) * g_dKoef_pix_to_mm : (X + nWidth - 2 * oMargins.left) * g_dKoef_pix_to_mm; - - if ((this.borderStyle == "solid" || this.borderStyle == "dashed") && - this._comb == true && this._charLimit > 1) { - contentX = (X) * g_dKoef_pix_to_mm; - contentXLimit = (X + nWidth) * g_dKoef_pix_to_mm; + if (this.IsNeedCheckAlign()) { + this.CheckAlignInternal(); } + + this.RecalcMeasureContent(); - let bNewRecalc = false; // будет использовано только один раз при первом пересчете и случае autofit if (this.GetTextSize() == 0) { - if (!this._pagePos) { - bNewRecalc = true; + if (null == this.getFormRelRect()) { + this.CalculateContentClipRect(); } this.ProcessAutoFitContent(this.content); this.ProcessAutoFitContent(this.contentFormat); } - // save pos in page. - this._pagePos = { - x: X, - y: Y, - w: nWidth, - h: nHeight - }; + if (false == this.RecalculateContentRect()) { + this.contentFormat.Content.forEach(function(element) { + element.Recalculate_Page(0); + }); + this.content.Content.forEach(function(element) { + element.Recalculate_Page(0); + }); + } + this.SetNeedRecalc(false); + }; + CTextField.prototype.RecalculateContentRect = function() { + let aOrigRect = this.GetOrigRect(); + + let X = aOrigRect[0]; + let Y = aOrigRect[1]; + let nWidth = ((aOrigRect[2]) - (aOrigRect[0])); + let nHeight = ((aOrigRect[3]) - (aOrigRect[1])); + + let oMargins = this.GetMarginsFromBorders(); + + let contentX = (this.IsComb() ? (X + oMargins.left) : (X + 2 * oMargins.left)) * g_dKoef_pt_to_mm; + let contentY = (Y + (this.IsMultiline() ? (2.5 * oMargins.top) : (2 * oMargins.top))) * g_dKoef_pt_to_mm; + let contentXLimit = (this.IsComb() ? (X + nWidth - oMargins.left) : (X + nWidth - 2 * oMargins.left)) * g_dKoef_pt_to_mm; + + if ((this.borderStyle == "solid" || this.borderStyle == "dashed") && + this._comb == true && this._charLimit > 1) { + contentX = (X) * g_dKoef_pt_to_mm; + contentXLimit = (X + nWidth) * g_dKoef_pt_to_mm; + } + let contentYFormat = contentY; if (this.IsMultiline() == false) { let nContentH = this.GetTextHeight(this.content); let nContentHFormat = this.GetTextHeight(this.contentFormat); - contentY = Y * g_dKoef_pix_to_mm + (nHeight * g_dKoef_pix_to_mm - nContentH) / 2; - contentYFormat = Y * g_dKoef_pix_to_mm + (nHeight * g_dKoef_pix_to_mm - nContentHFormat) / 2; + contentY = Y * g_dKoef_pt_to_mm + (nHeight * g_dKoef_pt_to_mm - nContentH) / 2; + contentYFormat = Y * g_dKoef_pt_to_mm + (nHeight * g_dKoef_pt_to_mm - nContentHFormat) / 2; } - this._formRect.X = X * g_dKoef_pix_to_mm; - this._formRect.Y = Y * g_dKoef_pix_to_mm; - this._formRect.W = nWidth * g_dKoef_pix_to_mm; - this._formRect.H = nHeight * g_dKoef_pix_to_mm; - - if (contentX != this._oldContentPos.X || contentY != this._oldContentPos.Y || - contentXLimit != this._oldContentPos.XLimit || contentYFormat != this._oldContentPos.YFormat) { - this.content.X = this.contentFormat.X = this._oldContentPos.X = contentX; - this.content.Y = this._oldContentPos.Y = contentY; - this.contentFormat.Y= this._oldContentPos.YFormat = contentYFormat; - this.content.XLimit = this.contentFormat.XLimit = this._oldContentPos.XLimit = contentXLimit; - this.content.YLimit = this.contentFormat.YLimit = this._oldContentPos.YLimit = 20000; + if (contentX != this.content.X || contentY != this.content.Y || + contentXLimit != this.content.XLimit || contentYFormat != this.contentFormat.YFormat) { + this.content.X = this.contentFormat.X = contentX; + this.content.Y = contentY; + this.contentFormat.Y= contentYFormat; + this.content.XLimit = this.contentFormat.XLimit = contentXLimit; + this.content.YLimit = this.contentFormat.YLimit = 20000; - this.CalculateContentRect(); + this.CalculateContentClipRect(); this.content.Recalculate_Page(0, true); this.contentFormat.Recalculate_Page(0, true); - } - else if (this.IsNeedRecalc()) { - this.contentFormat.Content.forEach(function(element) { - element.Recalculate_Page(0); - }); - this.content.Content.forEach(function(element) { - element.Recalculate_Page(0); - }); + + return true; } - bNewRecalc && this.Recalculate(); - this.SetNeedRecalc(false); + return false; }; - CTextField.prototype.CalculateContentRect = function() { + CTextField.prototype.CalculateContentClipRect = function() { if (!this.content) return; - let aRect = this.GetRect(); + let aRect = this.GetOrigRect(); + let X = aRect[0]; let Y = aRect[1]; - let nHeight = ((aRect[3]) - (aRect[1])); - let oMargins = this.GetMarginsFromBorders(false, false); + let nWidth = aRect[2] - aRect[0]; + let nHeight = aRect[3] - aRect[1]; + let oMargins = this.GetMarginsFromBorders(); - this.contentRect.X = this.content.X; - this.contentRect.Y = (Y + (this.IsMultiline() ? (2.5 * oMargins.top) : (2 * oMargins.top))) * g_dKoef_pix_to_mm; - this.contentRect.W = this.content.XLimit - this.content.X; - this.contentRect.H = (nHeight - (this.IsMultiline() ? 2.5 * oMargins.top : 2 * oMargins.top) - oMargins.bottom) * g_dKoef_pix_to_mm; + let contentX = (this.IsComb() ? (X + oMargins.left) : (X + 2 * oMargins.left)) * g_dKoef_pt_to_mm; + let contentXLimit = (this.IsComb() ? (X + nWidth - oMargins.left) : (X + nWidth - 2 * oMargins.left)) * g_dKoef_pt_to_mm; + + this.contentClipRect = { + X: contentX, + Y: (Y + (this.IsMultiline() ? (2.5 * oMargins.top) : (oMargins.top))) * g_dKoef_pt_to_mm, + W: contentXLimit - contentX, + H: (nHeight - (this.IsMultiline() ? 2.5 * oMargins.top : oMargins.top) - oMargins.bottom) * g_dKoef_pt_to_mm, + Page: this.GetPage() + } }; CTextField.prototype.onMouseDown = function(x, y, e) { let oViewer = editor.getDocumentRenderer(); @@ -627,7 +646,7 @@ function callbackAfterFocus(x, y, e) { this.SetInForm(true); oDoc.SetLocalHistory(); - if (false == e.shiftKey) { + if (false == e.ShiftKey) { oDoc.SelectionSetStart(x, y, e); } else { @@ -662,9 +681,11 @@ else callbackAfterFocus.bind(this, x, y, e)(); - this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); - if (false == isInFocus) { - this.onFocus(); + if (isInFocus) { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown); + } + else { + this.AddActionsToQueue(AscPDF.FORMS_TRIGGERS_TYPES.MouseDown, AscPDF.FORMS_TRIGGERS_TYPES.OnFocus); } }; CTextField.prototype.onMouseUp = function(x, y, e) { @@ -679,8 +700,7 @@ if (this.content.IsSelectionEmpty()) { this.content.RemoveSelection(); if (false == oDoc.GetActionsQueue().IsInProgress()) { - oDrDoc.TargetStart(); - oDrDoc.showTarget(true); + oDrDoc.TargetStart(true); } } @@ -695,19 +715,6 @@ this._scrollInfo.scrollCoeff = nScrollCoeff; this.AddToRedraw(); }; - CTextField.prototype.ScrollVerticalEnd = function() { - let nHeightPerPara = this.content.GetElement(1).Y - this.content.GetElement(0).Y; - let nShiftCount = this._curShiftView.y / nHeightPerPara; // количество смещений в длинах параграфов - if (Math.abs(Math.round(nShiftCount) - nShiftCount) <= 0.001) - return; - - let nMaxShiftY = this._scrollInfo.scroll.maxScrollY; - this._curShiftView.y = Math.round(nShiftCount) * nHeightPerPara; - this._bAutoShiftContentView = false; - this._scrollInfo.scrollCoeff = Math.abs(this._curShiftView.y / nMaxShiftY); - - this.AddToRedraw(); - }; CTextField.prototype.GetScrollInfo = function() { return this._scrollInfo; }; @@ -845,11 +852,6 @@ oScroll.scrollVCurrentY = false == bInvertScroll ? oScroll.maxScrollY * nScrollCoeff : oScroll.maxScrollY - (oScroll.maxScrollY * nScrollCoeff); } - oScroll.bind("mouseup", function(evt) { - if (oThis.GetType() == AscPDF.FIELD_TYPES.listbox) - oThis.ScrollVerticalEnd(); - }); - if (oScrollInfo == null) { this.SetScrollInfo({ scroll: oScroll, @@ -948,7 +950,8 @@ let selectedCount = this.content.GetSelectedText(true, {NewLine: true}).length; let maxToAdd = this.getRemainCharCount(selectedCount); - if (-1 !== maxToAdd && aChars.length > maxToAdd) + let nCharsCount = AscWord.GraphemesCounter.GetCount(aChars, this.content.GetCalculatedTextPr()); + if (-1 !== maxToAdd && nCharsCount > maxToAdd) aChars.length = maxToAdd; if (!this.DoKeystrokeAction(aChars)) @@ -956,11 +959,9 @@ let doc = this.GetDocument(); aChars = AscWord.CTextFormFormat.prototype.GetBuffer(doc.event["change"]); - if (0 === aChars.length) + if (0 === nCharsCount) return false; - doc.CreateNewHistoryPoint({objects: [this]}); - if (!this.content.EnterText(aChars)) return false; @@ -971,6 +972,7 @@ if (this.IsDoNotScroll()) { let isOutOfForm = this.IsTextOutOfForm(this.content); if ((this.IsMultiline() && isOutOfForm.ver) || (isOutOfForm.hor && this.IsMultiline() == false)) { + AscCommon.History.ForbidUnionPoint(); AscCommon.History.Undo(); AscCommon.History.Clear_Redo(); } @@ -982,7 +984,8 @@ CTextField.prototype.CorrectEnterText = function(oldValue, newValue) { let maxToAdd = this.getRemainCharCount(oldValue.length); - if (-1 !== maxToAdd && newValue.length > maxToAdd) + let nCharsCount = AscWord.GraphemesCounter.GetCount(newValue, this.content.GetCalculatedTextPr()); + if (-1 !== maxToAdd && nCharsCount > maxToAdd) newValue.length = maxToAdd; if (!this.DoKeystrokeAction(newValue)) @@ -991,8 +994,6 @@ let doc = this.GetDocument(); newValue = AscWord.CTextFormFormat.prototype.GetBuffer(doc.event["change"]); - doc.CreateNewHistoryPoint({objects: [this]}); - if (!this.content.CorrectEnterText(oldValue, newValue, function(run, inRunPos, codePoint){return true;})) return false; @@ -1003,6 +1004,7 @@ if (this.IsDoNotScroll()) { let isOutOfForm = this.IsTextOutOfForm(this.content); if ((this.IsMultiline() && isOutOfForm.ver) || (isOutOfForm.hor && this.IsMultiline() == false)) { + AscCommon.History.ForbidUnionPoint(); AscCommon.History.Undo(); AscCommon.History.Clear_Redo(); } @@ -1011,6 +1013,8 @@ return true; }; CTextField.prototype.CheckAlignInternal = function() { + this.SetNeedCheckAlign(false); + // если выравнивание по центру или справа, то оно должно переключаться на left если ширина контента выходит за пределы формы // вызывается на момент коммита формы if ([AscPDF.ALIGN_TYPE.center, AscPDF.ALIGN_TYPE.right].includes(this.GetAlign())) { @@ -1018,26 +1022,28 @@ if (this.IsTextOutOfForm(this.content).hor) { if (this.content.GetAlign() != AscPDF.ALIGN_TYPE.left) { this.content.SetAlign(AscPDF.ALIGN_TYPE.left); - this.SetNeedRecalc(true); } } else if (this.content.GetAlign() != this.GetAlign()) { this.content.SetAlign(this.GetAlign()); - this.SetNeedRecalc(true); } if (this.IsTextOutOfForm(this.contentFormat).hor) { if (this.contentFormat.GetAlign() != AscPDF.ALIGN_TYPE.left) { this.contentFormat.SetAlign(AscPDF.ALIGN_TYPE.left); - this.SetNeedRecalc(true); } } else if (this.contentFormat.GetAlign() != this.GetAlign()) { this.contentFormat.SetAlign(this.GetAlign()); - this.SetNeedRecalc(true); } } }; + CTextField.prototype.SetNeedCheckAlign = function(bCheck) { + this._needCheckAlign = bCheck; + }; + CTextField.prototype.IsNeedCheckAlign = function() { + return this._needCheckAlign; + }; CTextField.prototype.InsertChars = function(aChars) { this.content.EnterText(aChars); }; @@ -1059,7 +1065,7 @@ * @returns {object} - {hor: {boolean}, ver: {boolean}} */ CTextField.prototype.IsTextOutOfForm = function(oContent) { - if (!this._pagePos) + if (null == this.getFormRelRect()) this.Recalculate(); else oContent.GetElement(0).Recalculate_Page(0); @@ -1092,25 +1098,26 @@ CTextField.prototype.Commit = function() { let oDoc = this.GetDocument(); let aFields = this.GetDocument().GetAllWidgets(this.GetFullName()); - - oDoc.SetGlobalHistory(); + + oDoc.StartNoHistoryMode(); if (this.DoFormatAction() == false) { this.UndoNotAppliedChanges(); if (this.IsChanged() == false) this.SetDrawFromStream(true); + oDoc.EndNoHistoryMode(); return; } + oDoc.EndNoHistoryMode(); if (this.GetApiValue() != this.GetValue()) { - oDoc.CreateNewHistoryPoint({objects: [this]}); AscCommon.History.Add(new CChangesPDFFormValue(this, this.GetApiValue(), this.GetValue())); - + this.RevertContentView(); this.SetApiValue(this.GetValue()); } - TurnOffHistory(); - + oDoc.StartNoHistoryMode(); + if (aFields.length == 1) this.SetNeedCommit(false); @@ -1154,11 +1161,13 @@ // когда выравнивание посередине или справа, то после того // как ширина контента будет больше чем размер формы, выравнивание становится слева, пока текста вновь не станет меньше чем размер формы aFields.forEach(function(field) { - field.CheckAlignInternal(); + field.SetNeedCheckAlign(true); }); this.SetNeedCommit(false); this.needValidate = true; + + oDoc.EndNoHistoryMode(); }; CTextField.prototype.SetAlign = function(nAlignType) { this._alignment = nAlignType; @@ -1178,7 +1187,7 @@ let oFormatTrigger = this.GetTrigger(AscPDF.FORMS_TRIGGERS_TYPES.Format); let oActionRunScript = oFormatTrigger ? oFormatTrigger.GetActions()[0] : null; - let isCanFormat = oDoc.isUndoRedoInProgress != true ? this.DoKeystrokeAction(null, false, true) : true; + let isCanFormat = AscCommon.History.UndoRedoInProgress != true ? this.DoKeystrokeAction(null, false, true) : true; if (!isCanFormat) { let oWarningInfo = oDoc.GetWarningInfo(); if (!oWarningInfo) { @@ -1322,8 +1331,6 @@ return false; let oDoc = this.GetDocument(); - oDoc.CreateNewHistoryPoint({objects : [this]}); - this.UpdateSelectionByEvent(); if (this.content.IsSelectionUse()) @@ -1332,9 +1339,7 @@ // скрипт keystroke мог поменять change значение, поэтому this.InsertChars(AscWord.CTextFormFormat.prototype.GetBuffer(oDoc.event["change"].toString())); - if (AscCommon.History.Is_LastPointEmpty()) - AscCommon.History.Remove_LastPoint(); - else { + if (false == AscCommon.History.Is_LastPointEmpty()) { this._bAutoShiftContentView = true && this.IsDoNotScroll() == false; this.SetNeedRecalc(true); this.SetNeedCommit(true); @@ -1360,7 +1365,8 @@ CTextField.prototype.SyncField = function() { let aFields = this.GetDocument().GetAllWidgets(this.GetFullName()); - TurnOffHistory(); + let oDoc = this.GetDocument(); + oDoc.StartNoHistoryMode(); for (let i = 0; i < aFields.length; i++) { if (aFields[i] != this) { @@ -1589,14 +1595,8 @@ memory.WriteLong(nCharLimit); } - // форматируемое значение - let oFormatTrigger = this.GetTrigger(AscPDF.FORMS_TRIGGERS_TYPES.Format); - let oActionRunScript = oFormatTrigger ? oFormatTrigger.GetActions()[0] : null; - if (oActionRunScript) { - memory.fieldDataFlags |= (1 << 12); - let sFormatValue = this.contentFormat.getAllText(); - memory.WriteString(sFormatValue); - } + memory.fieldDataFlags |= (1 << 13); + this.WriteRenderToBinary(memory); // // rich value @@ -1677,11 +1677,6 @@ return element; } - function TurnOffHistory() { - if (AscCommon.History.IsOn() == true) - AscCommon.History.TurnOff(); - } - if (!window["AscPDF"]) window["AscPDF"] = {}; diff --git a/pdf/src/forms/textBoxContent.js b/pdf/src/forms/textBoxContent.js index b42043308f..5d3415d2a4 100644 --- a/pdf/src/forms/textBoxContent.js +++ b/pdf/src/forms/textBoxContent.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -43,6 +43,12 @@ CS : {Name : AscPDF.DEFAULT_FIELD_FONT, Index : -1} } }); + STYLES.Default.ParaPr.Merge({ + KeepLines : false, + KeepNext : false, + WidowControl : false, + PageBreakBefore : false + }); /** * Class for working with rich text @@ -139,8 +145,17 @@ run.ClearContent(); if (codePoints) { - if (this.ParentPDF && this.ParentPDF.IsComb && this.ParentPDF.IsComb() && codePoints.length > this.ParentPDF.GetCharLimit()) { - codePoints.length = this.ParentPDF.GetCharLimit(); + if (this.ParentPDF && this.ParentPDF.GetCharLimit && 0 !== this.ParentPDF.GetCharLimit()) { + let oDoc = this.ParentPDF.GetDocument(); + let isOnOpen = oDoc.Viewer.IsOpenFormsInProgress; + let nCharLimit = this.ParentPDF.GetCharLimit(); + + if (false == isOnOpen) { + let nCharsCount = AscWord.GraphemesCounter.GetCount(codePoints, this.GetCalculatedTextPr()); + + if (nCharsCount > nCharLimit) + codePoints.length = nCharLimit; + } } for (let index = 0, inRunIndex = 0, count = codePoints.length; index < count; ++index) { @@ -151,6 +166,49 @@ this.MoveCursorToEndPos(); } }; + CTextBoxContent.prototype.EnterText = function(value) { + let oParentPDF = this.ParentPDF; + let isAllowLineBreak = oParentPDF.IsForm() && oParentPDF.GetType() == AscPDF.FIELD_TYPES.text && oParentPDF.IsMultiline(); + + if (undefined === value + || null === value + || (Array.isArray(value) && !value.length)) + return false; + + let codePoints = typeof(value) === "string" ? value.codePointsArray() : value; + + if (Array.isArray(codePoints)) { + for (let index = 0, count = codePoints.length; index < count; ++index) { + let codePoint = codePoints[index]; + addToParagraph.call(this, codePoint); + } + } + else { + addToParagraph.call(this, codePoints); + } + + function addToParagraph(codePoint) { + if ((10 === codePoint || 13 === codePoint)) { + if (isAllowLineBreak) { + this.AddToParagraph(new AscWord.CRunBreak(AscWord.break_Line)); + } + else { + this.AddToParagraph(new AscWord.CRunSpace(32)); + } + } + else if (9 === codePoint) { + this.AddToParagraph(new AscWord.CRunSpace(32)); + } + else if (AscCommon.IsSpace(codePoint)) { + this.AddToParagraph(new AscWord.CRunSpace(codePoint)); + } + else { + this.AddToParagraph(new AscWord.CRunText(codePoint)); + } + } + + return true; + }; CTextBoxContent.prototype.getAllText = function() { let paragraph = this.GetElement(0); if (!paragraph || !paragraph.IsParagraph()) @@ -213,6 +271,4 @@ window['AscPDF'].getPdfTypeAlignByInternal = getPdfTypeAlignByInternal; window['AscPDF'].CTextBoxContent = CTextBoxContent; - })(window); - diff --git a/pdf/src/graphics.js b/pdf/src/graphics.js index 8132340d6f..19fab3bfd2 100644 --- a/pdf/src/graphics.js +++ b/pdf/src/graphics.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/pdf/src/history/annotsChanges.js b/pdf/src/history/annotsChanges.js index 22893f5a00..3e33b8f4d4 100644 --- a/pdf/src/history/annotsChanges.js +++ b/pdf/src/history/annotsChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -32,74 +32,392 @@ "use strict"; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Rect] = CChangesPDFAnnotRect; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_RD] = CChangesPDFAnnotRD; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Vertices] = CChangesPDFAnnotVertices; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Contents] = CChangesPDFAnnotContents; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Pos] = CChangesPDFAnnotPos; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Page] = CChangesPDFAnnotPage; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Replies] = CChangesPDFAnnotReplies; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Comment_Data] = CChangesPDFCommentData; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Ink_Points] = CChangesPDFInkPoints; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Ink_FlipV] = CChangesPDFInkFlipV; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Ink_FlipH] = CChangesPDFInkFlipH; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Line_Points] = CChangesPDFLinePoints; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_FreeText_CL] = CChangesFreeTextCallout; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_FreeText_RC] = CChangesPDFFreeTextRC; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Rect] = CChangesPDFAnnotRect; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_RD] = CChangesPDFAnnotRD; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Vertices] = CChangesPDFAnnotVertices; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Contents] = CChangesPDFAnnotContents; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Pos] = CChangesPDFAnnotPos; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Page] = CChangesPDFAnnotPage; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Creation_Date] = CChangesPDFAnnotCreationDate; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Mod_Date] = CChangesPDFAnnotModDate; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Author] = CChangesPDFAnnotAuthor; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Display] = CChangesPDFAnnotDisplay; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Intent] = CChangesPDFAnnotIntent; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Name] = CChangesPDFAnnotName; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_File_Idx] = CChangesPDFAnnotApIdx; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Stroke] = CChangesPDFAnnotStroke; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Fill] = CChangesPDFAnnotFill; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_StrokeWidth] = CChangesPDFAnnotStrokeWidth; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Opacity] = CChangesPDFAnnotOpacity; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Comment_Data] = CChangesPDFCommentData; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Ink_Points] = CChangesPDFInkPoints; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Annot_Quads] = CChangesPDFAnnotQuads; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Ink_FlipV] = CChangesPDFInkFlipV; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Ink_FlipH] = CChangesPDFInkFlipH; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Line_Points] = CChangesPDFLinePoints; +AscDFH.changesFactory[AscDFH.historyitem_type_Pdf_Annot_FreeText_CL] = CChangesFreeTextCallout; +AscDFH.changesFactory[AscDFH.historyitem_type_Pdf_Annot_FreeText_RC] = CChangesPDFFreeTextRC; +AscDFH.changesFactory[AscDFH.historyitem_type_Pdf_Annot_FreeText_Align] = CChangesPDFFreeTextAlign; +AscDFH.changesFactory[AscDFH.historyitem_type_Pdf_Annot_FreeText_Rotate] = CChangesPDFFreeTextRotate; +function CChangesAnnotArrayOfDoubleProperty(Class, Old, New) { + AscDFH.CChangesBaseProperty.call(this, Class, Old, New); +} +CChangesAnnotArrayOfDoubleProperty.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesAnnotArrayOfDoubleProperty.prototype.constructor = CChangesAnnotArrayOfDoubleProperty; + +CChangesAnnotArrayOfDoubleProperty.prototype.WriteToBinary = function(Writer) +{ + let nFlags = 0; + + if (undefined === this.New) + nFlags |= 1; + + if (undefined === this.Old) + nFlags |= 2; + + Writer.WriteLong(nFlags); + + if (undefined !== this.New) { + var nNewCount = this.New.length; + Writer.WriteLong(nNewCount); + for (var nIndex = 0; nIndex < nNewCount; ++nIndex) + Writer.WriteDouble(this.New[nIndex]); + } + + if (undefined !== this.Old) { + var nOldCount = this.Old.length; + Writer.WriteLong(nOldCount); + for (var nIndex = 0; nIndex < nOldCount; ++nIndex) + Writer.WriteDouble(this.Old[nIndex]); + } +}; +CChangesAnnotArrayOfDoubleProperty.prototype.ReadFromBinary = function(Reader) +{ + // Long : Count of the columns in the new grid + // Array of double : widths of columns in the new grid + // Long : Count of the columns in the old grid + // Array of double : widths of columns in the old grid + + let nFlags = Reader.GetLong(); + + if (!(nFlags & 1)) { + let nCount = Reader.GetLong(); + this.New = []; + for (var nIndex = 0; nIndex < nCount; ++nIndex) + this.New[nIndex] = Reader.GetDouble(); + } + + if (!(nFlags & 2)) { + let nCount = Reader.GetLong(); + this.Old = []; + for (var nIndex = 0; nIndex < nCount; ++nIndex) + this.Old[nIndex] = Reader.GetDouble(); + } +}; + +CChangesAnnotArrayOfDoubleProperty.prototype.Load = function(){ + this.Redo(); + this.RefreshRecalcData(); +}; + +window['AscDFH'].CChangesAnnotArrayOfDoubleProperty = CChangesAnnotArrayOfDoubleProperty; + /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesBaseObjectProperty} */ function CChangesPDFCommentData(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseObjectProperty.call(this, Class, Old, New, Color); } -CChangesPDFCommentData.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFCommentData.prototype = Object.create(AscDFH.CChangesBaseObjectProperty.prototype); CChangesPDFCommentData.prototype.constructor = CChangesPDFCommentData; CChangesPDFCommentData.prototype.Type = AscDFH.historyitem_Pdf_Comment_Data; CChangesPDFCommentData.prototype.private_SetValue = function(Value) { let oComment = this.Class; oComment.EditCommentData(Value); - let AscCommentData = oComment.GetAscCommentData(); - let CommentData = new AscCommon.CCommentData(); - CommentData.Read_FromAscCommentData(AscCommentData); - - editor.sync_ChangeCommentData(oComment.GetId(), CommentData); }; - +CChangesPDFCommentData.prototype.private_CreateObject = function() +{ + return new AscCommon.CCommentData(); +}; /** * @constructor - * @extends {AscDFH.CChangesBaseContentChange} + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} */ -function CChangesPDFInkPoints(Class, Pos, Items, Color) -{ - AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, true); +function CChangesPDFInkPoints(Class, Pos, Items, isAdd) { + AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, isAdd); } + CChangesPDFInkPoints.prototype = Object.create(AscDFH.CChangesBaseContentChange.prototype); CChangesPDFInkPoints.prototype.constructor = CChangesPDFInkPoints; CChangesPDFInkPoints.prototype.Type = AscDFH.historyitem_Pdf_Ink_Points; -CChangesPDFInkPoints.prototype.Undo = function() + +window['AscDFH'].CChangesPDFInkPoints = CChangesPDFInkPoints; + +CChangesPDFInkPoints.prototype.WriteToBinary = function (writer) { + writer.WriteBool(this.IsAdd()); + writer.WriteLong(this.Pos); + + // write points array + let nCount = this.Items.length; + writer.WriteLong(nCount); + for (let nIndex = 0; nIndex < nCount; ++nIndex) + writer.WriteDouble(this.Items[nIndex]); +}; +CChangesPDFInkPoints.prototype.ReadFromBinary = function (reader) { + reader.Seek2(reader.GetCurPos() - 4); + this.Type = reader.GetLong(); + this.Add = reader.GetBool(); + this.Pos = reader.GetLong(); + + // read points array + let nCount = reader.GetLong(); + this.Items = []; + for (var nIndex = 0; nIndex < nCount; ++nIndex) + this.Items[nIndex] = reader.GetDouble(); +}; +CChangesPDFInkPoints.prototype.private_GetChangedArray = function () { + return this.Class._gestures; +}; +CChangesPDFInkPoints.prototype.private_GetContentChanges = function () { + if (this.Class && this.Class.getContentChangesByType) { + return this.Class.getContentChangesByType(this.Type); + } + return null; +}; +CChangesPDFInkPoints.prototype.private_InsertInArrayLoad = function () { + if (this.Items.length <= 0) + return; + + let aChangedArray = this.private_GetChangedArray(); + if (null !== aChangedArray) { + aChangedArray.splice(this.Pos, 0, this.Items); + } +}; +CChangesPDFInkPoints.prototype.private_RemoveInArrayLoad = function () { + + var aChangedArray = this.private_GetChangedArray(); + if (null !== aChangedArray) { + aChangedArray.splice(this.Pos, 1); + } +}; +CChangesPDFInkPoints.prototype.private_InsertInArrayUndoRedo = function () { + var aChangedArray = this.private_GetChangedArray(); + if (null !== aChangedArray) { + aChangedArray.splice(this.Pos, 0, this.Items); + } +}; +CChangesPDFInkPoints.prototype.private_RemoveInArrayUndoRedo = function () { + + var aChangedArray = this.private_GetChangedArray(); + if (null !== aChangedArray) { + aChangedArray.splice(this.Pos, 1); + } +}; +CChangesPDFInkPoints.prototype.Load = function () { + if (this.IsAdd()) { + this.private_InsertInArrayLoad(); + } + else { + this.private_RemoveInArrayLoad(); + } + this.RefreshRecalcData(); +}; +CChangesPDFInkPoints.prototype.Undo = function () { + if (this.IsAdd()) { + this.private_RemoveInArrayUndoRedo(); + } + else { + this.private_InsertInArrayUndoRedo(); + } +}; +CChangesPDFInkPoints.prototype.Redo = function () { + if (this.IsAdd()) { + this.private_InsertInArrayUndoRedo(); + } + else { + this.private_RemoveInArrayUndoRedo(); + } +}; +CChangesPDFInkPoints.prototype.IsContentChange = function () { + return false; +}; +CChangesPDFInkPoints.prototype.Copy = function() { - this.Class.RemoveLastAddedPath(); + var oChanges = new this.constructor(this.Class, this.Type, this.Pos, this.Items, this.Add); + + oChanges.UseArray = this.UseArray; + + for (var nIndex = 0, nCount = this.PosArray.length; nIndex < nCount; ++nIndex) + oChanges.PosArray[nIndex] = this.PosArray[nIndex]; + + return oChanges; }; -CChangesPDFInkPoints.prototype.Redo = function() +CChangesPDFInkPoints.prototype.ConvertToSimpleChanges = function() { - this.Class.AddPath(this.Items); + let arrSimpleActions = this.ConvertToSimpleActions(); + let arrChanges = []; + for (let nIndex = 0, nCount = arrSimpleActions.length; nIndex < nCount; ++nIndex) + { + let oAction = arrSimpleActions[nIndex]; + let oChange = new this.constructor(this.Class, this.Type, oAction.Pos, [oAction.Item], oAction.Add); + arrChanges.push(oChange); + } + return arrChanges; +}; +CChangesPDFInkPoints.prototype.CreateReverseChange = function(){ + var oRet = this.private_CreateReverseChange(this.constructor); + oRet.Type = this.Type; + oRet.Pos = this.Pos; + return oRet; }; /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} + */ +function CChangesPDFAnnotQuads(Class, Pos, Items, isAdd) { + AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, isAdd); +} + +CChangesPDFAnnotQuads.prototype = Object.create(AscDFH.CChangesBaseContentChange.prototype); +CChangesPDFAnnotQuads.prototype.constructor = CChangesPDFAnnotQuads; +CChangesPDFAnnotQuads.prototype.Type = AscDFH.historyitem_Pdf_Annot_Quads; + +window['AscDFH'].CChangesPDFAnnotQuads = CChangesPDFAnnotQuads; + +CChangesPDFAnnotQuads.prototype.WriteToBinary = function (writer) { + writer.WriteBool(this.IsAdd()); + writer.WriteLong(this.Pos); + + // write points array + let nCount = this.Items.length; + writer.WriteLong(nCount); + for (let nIndex = 0; nIndex < nCount; ++nIndex) + writer.WriteDouble(this.Items[nIndex]); +}; +CChangesPDFAnnotQuads.prototype.ReadFromBinary = function (reader) { + reader.Seek2(reader.GetCurPos() - 4); + this.Type = reader.GetLong(); + this.Add = reader.GetBool(); + this.Pos = reader.GetLong(); + + // read points array + let nCount = reader.GetLong(); + this.Items = []; + for (var nIndex = 0; nIndex < nCount; ++nIndex) + this.Items[nIndex] = reader.GetDouble(); +}; +CChangesPDFAnnotQuads.prototype.private_GetChangedArray = function () { + return this.Class._quads; +}; +CChangesPDFAnnotQuads.prototype.private_GetContentChanges = function () { + if (this.Class && this.Class.getContentChangesByType) { + return this.Class.getContentChangesByType(this.Type); + } + return null; +}; +CChangesPDFAnnotQuads.prototype.private_InsertInArrayLoad = function () { + if (this.Items.length <= 0) + return; + + let aChangedArray = this.private_GetChangedArray(); + if (null !== aChangedArray) { + aChangedArray.splice(this.Pos, 0, this.Items); + } +}; +CChangesPDFAnnotQuads.prototype.private_RemoveInArrayLoad = function () { + + var aChangedArray = this.private_GetChangedArray(); + if (null !== aChangedArray) { + aChangedArray.splice(this.Pos, 1); + } +}; +CChangesPDFAnnotQuads.prototype.private_InsertInArrayUndoRedo = function () { + var aChangedArray = this.private_GetChangedArray(); + if (null !== aChangedArray) { + aChangedArray.splice(this.Pos, 0, this.Items); + } +}; +CChangesPDFAnnotQuads.prototype.private_RemoveInArrayUndoRedo = function () { + + var aChangedArray = this.private_GetChangedArray(); + if (null !== aChangedArray) { + aChangedArray.splice(this.Pos, 1); + } +}; +CChangesPDFAnnotQuads.prototype.Load = function () { + if (this.IsAdd()) { + this.private_InsertInArrayLoad(); + } + else { + this.private_RemoveInArrayLoad(); + } + this.RefreshRecalcData(); +}; +CChangesPDFAnnotQuads.prototype.Undo = function () { + if (this.IsAdd()) { + this.private_RemoveInArrayUndoRedo(); + } + else { + this.private_InsertInArrayUndoRedo(); + } +}; +CChangesPDFAnnotQuads.prototype.Redo = function () { + if (this.IsAdd()) { + this.private_InsertInArrayUndoRedo(); + } + else { + this.private_RemoveInArrayUndoRedo(); + } +}; +CChangesPDFAnnotQuads.prototype.IsContentChange = function () { + return false; +}; +CChangesPDFAnnotQuads.prototype.Copy = function() +{ + var oChanges = new this.constructor(this.Class, this.Type, this.Pos, this.Items, this.Add); + + oChanges.UseArray = this.UseArray; + + for (var nIndex = 0, nCount = this.PosArray.length; nIndex < nCount; ++nIndex) + oChanges.PosArray[nIndex] = this.PosArray[nIndex]; + + return oChanges; +}; +CChangesPDFAnnotQuads.prototype.ConvertToSimpleChanges = function() +{ + let arrSimpleActions = this.ConvertToSimpleActions(); + let arrChanges = []; + for (let nIndex = 0, nCount = arrSimpleActions.length; nIndex < nCount; ++nIndex) + { + let oAction = arrSimpleActions[nIndex]; + let oChange = new this.constructor(this.Class, this.Type, oAction.Pos, [oAction.Item], oAction.Add); + arrChanges.push(oChange); + } + return arrChanges; +}; +CChangesPDFAnnotQuads.prototype.CreateReverseChange = function(){ + var oRet = this.private_CreateReverseChange(this.constructor); + oRet.Type = this.Type; + oRet.Pos = this.Pos; + return oRet; +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseBoolProperty} */ function CChangesPDFInkFlipV(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseBoolProperty.call(this, Class, Old, New, Color); } -CChangesPDFInkFlipV.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFInkFlipV.prototype = Object.create(AscDFH.CChangesBaseBoolProperty.prototype); CChangesPDFInkFlipV.prototype.constructor = CChangesPDFInkFlipV; CChangesPDFInkFlipV.prototype.Type = AscDFH.historyitem_Pdf_Ink_FlipV; CChangesPDFInkFlipV.prototype.private_SetValue = function(Value) @@ -110,13 +428,13 @@ CChangesPDFInkFlipV.prototype.private_SetValue = function(Value) /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesBaseBoolProperty} */ function CChangesPDFInkFlipH(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseBoolProperty.call(this, Class, Old, New, Color); } -CChangesPDFInkFlipH.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFInkFlipH.prototype = Object.create(AscDFH.CChangesBaseBoolProperty.prototype); CChangesPDFInkFlipH.prototype.constructor = CChangesPDFInkFlipH; CChangesPDFInkFlipH.prototype.Type = AscDFH.historyitem_Pdf_Ink_FlipH; CChangesPDFInkFlipH.prototype.private_SetValue = function(Value) @@ -127,13 +445,13 @@ CChangesPDFInkFlipH.prototype.private_SetValue = function(Value) /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} */ function CChangesPDFAnnotRect(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesAnnotArrayOfDoubleProperty.call(this, Class, Old, New, Color); } -CChangesPDFAnnotRect.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFAnnotRect.prototype = Object.create(AscDFH.CChangesAnnotArrayOfDoubleProperty.prototype); CChangesPDFAnnotRect.prototype.constructor = CChangesPDFAnnotRect; CChangesPDFAnnotRect.prototype.Type = AscDFH.historyitem_Pdf_Annot_Rect; CChangesPDFAnnotRect.prototype.private_SetValue = function(Value) @@ -144,13 +462,81 @@ CChangesPDFAnnotRect.prototype.private_SetValue = function(Value) /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} + */ +function CChangesPDFAnnotStroke(Class, Old, New, Color) +{ + AscDFH.CChangesAnnotArrayOfDoubleProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotStroke.prototype = Object.create(AscDFH.CChangesAnnotArrayOfDoubleProperty.prototype); +CChangesPDFAnnotStroke.prototype.constructor = CChangesPDFAnnotStroke; +CChangesPDFAnnotStroke.prototype.Type = AscDFH.historyitem_Pdf_Annot_Stroke; +CChangesPDFAnnotStroke.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetStrokeColor(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} + */ +function CChangesPDFAnnotFill(Class, Old, New, Color) +{ + AscDFH.CChangesAnnotArrayOfDoubleProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotFill.prototype = Object.create(AscDFH.CChangesAnnotArrayOfDoubleProperty.prototype); +CChangesPDFAnnotFill.prototype.constructor = CChangesPDFAnnotFill; +CChangesPDFAnnotFill.prototype.Type = AscDFH.historyitem_Pdf_Annot_Fill; +CChangesPDFAnnotFill.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetFillColor(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseDoubleProperty} + */ +function CChangesPDFAnnotStrokeWidth(Class, Old, New, Color) +{ + AscDFH.CChangesBaseDoubleProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotStrokeWidth.prototype = Object.create(AscDFH.CChangesBaseDoubleProperty.prototype); +CChangesPDFAnnotStrokeWidth.prototype.constructor = CChangesPDFAnnotStrokeWidth; +CChangesPDFAnnotStrokeWidth.prototype.Type = AscDFH.historyitem_Pdf_Annot_StrokeWidth; +CChangesPDFAnnotStrokeWidth.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetWidth(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseDoubleProperty} + */ +function CChangesPDFAnnotOpacity(Class, Old, New, Color) +{ + AscDFH.CChangesBaseDoubleProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotOpacity.prototype = Object.create(AscDFH.CChangesBaseDoubleProperty.prototype); +CChangesPDFAnnotOpacity.prototype.constructor = CChangesPDFAnnotOpacity; +CChangesPDFAnnotOpacity.prototype.Type = AscDFH.historyitem_Pdf_Annot_Opacity; +CChangesPDFAnnotOpacity.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetOpacity(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} */ function CChangesPDFAnnotRD(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesAnnotArrayOfDoubleProperty.call(this, Class, Old, New, Color); } -CChangesPDFAnnotRD.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFAnnotRD.prototype = Object.create(AscDFH.CChangesAnnotArrayOfDoubleProperty.prototype); CChangesPDFAnnotRD.prototype.constructor = CChangesPDFAnnotRD; CChangesPDFAnnotRD.prototype.Type = AscDFH.historyitem_Pdf_Annot_RD; CChangesPDFAnnotRD.prototype.private_SetValue = function(Value) @@ -161,15 +547,15 @@ CChangesPDFAnnotRD.prototype.private_SetValue = function(Value) /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} */ function CChangesFreeTextCallout(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesAnnotArrayOfDoubleProperty.call(this, Class, Old, New, Color); } -CChangesFreeTextCallout.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesFreeTextCallout.prototype = Object.create(AscDFH.CChangesAnnotArrayOfDoubleProperty.prototype); CChangesFreeTextCallout.prototype.constructor = CChangesFreeTextCallout; -CChangesFreeTextCallout.prototype.Type = AscDFH.historyitem_Pdf_FreeText_CL; +CChangesFreeTextCallout.prototype.Type = AscDFH.historyitem_type_Pdf_Annot_FreeText_CL; CChangesFreeTextCallout.prototype.private_SetValue = function(Value) { let oAnnot = this.Class; @@ -186,24 +572,150 @@ function CChangesPDFFreeTextRC(Class, Old, New, Color) } CChangesPDFFreeTextRC.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); CChangesPDFFreeTextRC.prototype.constructor = CChangesPDFFreeTextRC; -CChangesPDFFreeTextRC.prototype.Type = AscDFH.historyitem_Pdf_FreeText_RC; +CChangesPDFFreeTextRC.prototype.Type = AscDFH.historyitem_type_Pdf_Annot_FreeText_RC; CChangesPDFFreeTextRC.prototype.private_SetValue = function(Value) { let oAnnot = this.Class; oAnnot.SetRichContents(Value); }; +CChangesPDFFreeTextRC.prototype.WriteToBinary = function(Writer) +{ + let aRCNew = this.New; + let aRCOld = this.Old; + + function writeRC(aRC) { + Writer.WriteLong(aRC.length); + for (let i = 0; i < aRC.length; i++) { + Writer.WriteByte(aRC[i]["alignment"]); + let nFontStylePos = Writer.GetCurPosition(); + Writer.Skip(4); + + // font style + let nStyle = 0; + if (aRC[i]["bold"]) { + nStyle |= (1 << 0); + } + if (aRC[i]["italic"]) { + nStyle |= (1 << 1); + } + if (aRC[i]["strikethrough"]) { + nStyle |= (1 << 3); + } + if (aRC[i]["underlined"]) { + nStyle |= (1 << 4); + } + if (undefined !== aRC[i]["vertical"]) { + nStyle |= (1 << 5); + Writer.WriteDouble(aRC[i]["vertical"]); + } + if (aRC[i]["actual"]) { + nStyle |= (1 << 6); + Writer.WriteString2(aRC[i]["actual"]); + } + // запись флагов настроек шрифта + let nEndPos = Writer.GetCurPosition(); + Writer.Seek(nFontStylePos); + Writer.WriteLong(nStyle); + Writer.Seek(nEndPos); + + Writer.WriteDouble(aRC[i]["size"]); + aRC[i]["color"].forEach(function(component) { + Writer.WriteDouble(component); + }); + + Writer.WriteString2(aRC[i]["name"] || ""); + Writer.WriteString2(aRC[i]["text"] || ""); + } + } + + writeRC(aRCNew); + writeRC(aRCOld); +}; +CChangesPDFFreeTextRC.prototype.ReadFromBinary = function(Reader) { + function readRC() { + let aRC = []; + let length = Reader.GetLong(); + + for (let i = 0; i < length; i++) { + let rcItem = {}; + + rcItem["alignment"] = Reader.GetByte(); + let nStyle = Reader.GetLong(); + + // обработка флагов стиля шрифта + rcItem["bold"] = !!(nStyle & (1 << 0)); + rcItem["italic"] = !!(nStyle & (1 << 1)); + rcItem["strikethrough"] = !!(nStyle & (1 << 3)); + rcItem["underlined"] = !!(nStyle & (1 << 4)); + rcItem["vertical"] = (nStyle & (1 << 5)) ? Reader.GetDouble() : null; + rcItem["actual"] = (nStyle & (1 << 6)) ? Reader.GetString2() : null; + + rcItem["size"] = Reader.GetDouble(); + + rcItem["color"] = []; + for (let j = 0; j < 3; j++) { // Предполагается, что цвет состоит из 3 компонентов (например, RGB) + rcItem["color"].push(Reader.GetDouble()); + } + + rcItem["name"] = Reader.GetString2(); + rcItem["text"] = Reader.GetString2(); + + aRC.push(rcItem); + } + + return aRC; + } + + this.New = readRC(); + this.Old = readRC(); +}; + /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesBaseLongProperty} + */ +function CChangesPDFFreeTextAlign(Class, Old, New, Color) +{ + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); +} +CChangesPDFFreeTextAlign.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); +CChangesPDFFreeTextAlign.prototype.constructor = CChangesPDFFreeTextAlign; +CChangesPDFFreeTextAlign.prototype.Type = AscDFH.historyitem_type_Pdf_Annot_FreeText_Align; +CChangesPDFFreeTextAlign.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetAlign(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseLongProperty} + */ +function CChangesPDFFreeTextRotate(Class, Old, New, Color) +{ + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); +} +CChangesPDFFreeTextRotate.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); +CChangesPDFFreeTextRotate.prototype.constructor = CChangesPDFFreeTextRotate; +CChangesPDFFreeTextRotate.prototype.Type = AscDFH.historyitem_type_Pdf_Annot_FreeText_Rotate; +CChangesPDFFreeTextRotate.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetRotate(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} */ function CChangesPDFAnnotVertices(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesAnnotArrayOfDoubleProperty.call(this, Class, Old, New, Color); } -CChangesPDFAnnotVertices.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFAnnotVertices.prototype = Object.create(AscDFH.CChangesAnnotArrayOfDoubleProperty.prototype); CChangesPDFAnnotVertices.prototype.constructor = CChangesPDFAnnotVertices; -CChangesPDFAnnotVertices.prototype.Type = AscDFH.historyitem_Pdf_Annot_Rect; +CChangesPDFAnnotVertices.prototype.Type = AscDFH.historyitem_Pdf_Annot_Vertices; CChangesPDFAnnotVertices.prototype.private_SetValue = function(Value) { let oAnnot = this.Class; @@ -212,13 +724,13 @@ CChangesPDFAnnotVertices.prototype.private_SetValue = function(Value) /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} */ function CChangesPDFAnnotPos(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesAnnotArrayOfDoubleProperty.call(this, Class, Old, New, Color); } -CChangesPDFAnnotPos.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFAnnotPos.prototype = Object.create(AscDFH.CChangesAnnotArrayOfDoubleProperty.prototype); CChangesPDFAnnotPos.prototype.constructor = CChangesPDFAnnotPos; CChangesPDFAnnotPos.prototype.Type = AscDFH.historyitem_Pdf_Annot_Pos; CChangesPDFAnnotPos.prototype.private_SetValue = function(Value) @@ -229,13 +741,13 @@ CChangesPDFAnnotPos.prototype.private_SetValue = function(Value) /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesBaseStringProperty} */ function CChangesPDFAnnotContents(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseStringProperty.call(this, Class, Old, New, Color); } -CChangesPDFAnnotContents.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFAnnotContents.prototype = Object.create(AscDFH.CChangesBaseStringProperty.prototype); CChangesPDFAnnotContents.prototype.constructor = CChangesPDFAnnotContents; CChangesPDFAnnotContents.prototype.Type = AscDFH.historyitem_Pdf_Annot_Contents; CChangesPDFAnnotContents.prototype.private_SetValue = function(Value) @@ -246,30 +758,149 @@ CChangesPDFAnnotContents.prototype.private_SetValue = function(Value) /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesBaseStringProperty} */ -function CChangesPDFAnnotReplies(Class, Old, New, Color) +function CChangesPDFAnnotCreationDate(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseStringProperty.call(this, Class, Old, New, Color); } -CChangesPDFAnnotReplies.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); -CChangesPDFAnnotReplies.prototype.constructor = CChangesPDFAnnotReplies; -CChangesPDFAnnotReplies.prototype.Type = AscDFH.historyitem_Pdf_Annot_Replies; -CChangesPDFAnnotReplies.prototype.private_SetValue = function(Value) +CChangesPDFAnnotCreationDate.prototype = Object.create(AscDFH.CChangesBaseStringProperty.prototype); +CChangesPDFAnnotCreationDate.prototype.constructor = CChangesPDFAnnotCreationDate; +CChangesPDFAnnotCreationDate.prototype.Type = AscDFH.historyitem_Pdf_Annot_Creation_Date; +CChangesPDFAnnotCreationDate.prototype.private_SetValue = function(Value) { let oAnnot = this.Class; - oAnnot.SetReplies(Value); + oAnnot.SetCreationDate(Value); }; /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesBaseStringProperty} + */ +function CChangesPDFAnnotModDate(Class, Old, New, Color) +{ + AscDFH.CChangesBaseStringProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotModDate.prototype = Object.create(AscDFH.CChangesBaseStringProperty.prototype); +CChangesPDFAnnotModDate.prototype.constructor = CChangesPDFAnnotModDate; +CChangesPDFAnnotModDate.prototype.Type = AscDFH.historyitem_Pdf_Annot_Mod_Date; +CChangesPDFAnnotModDate.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetModDate(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseStringProperty} + */ +function CChangesPDFAnnotAuthor(Class, Old, New, Color) +{ + AscDFH.CChangesBaseStringProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotAuthor.prototype = Object.create(AscDFH.CChangesBaseStringProperty.prototype); +CChangesPDFAnnotAuthor.prototype.constructor = CChangesPDFAnnotAuthor; +CChangesPDFAnnotAuthor.prototype.Type = AscDFH.historyitem_Pdf_Annot_Author; +CChangesPDFAnnotAuthor.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetAuthor(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseLongProperty} + */ +function CChangesPDFAnnotDisplay(Class, Old, New, Color) +{ + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotDisplay.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); +CChangesPDFAnnotDisplay.prototype.constructor = CChangesPDFAnnotDisplay; +CChangesPDFAnnotDisplay.prototype.Type = AscDFH.historyitem_Pdf_Annot_Display; +CChangesPDFAnnotDisplay.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetDisplay(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseLongProperty} + */ +function CChangesPDFAnnotIntent(Class, Old, New, Color) +{ + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotIntent.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); +CChangesPDFAnnotIntent.prototype.constructor = CChangesPDFAnnotIntent; +CChangesPDFAnnotIntent.prototype.Type = AscDFH.historyitem_Pdf_Annot_Intent; +CChangesPDFAnnotIntent.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetIntent(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseBoolProperty} + */ +function CChangesPDFAnnotWasChanged(Class, Old, New, Color) +{ + AscDFH.CChangesBaseBoolProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotWasChanged.prototype = Object.create(AscDFH.CChangesBaseBoolProperty.prototype); +CChangesPDFAnnotWasChanged.prototype.constructor = CChangesPDFAnnotWasChanged; +CChangesPDFAnnotWasChanged.prototype.Type = AscDFH.historyitem_Pdf_Annot_WasChanged; +CChangesPDFAnnotWasChanged.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetWasChanged(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseStringProperty} + */ +function CChangesPDFAnnotName(Class, Old, New, Color) +{ + AscDFH.CChangesBaseStringProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotName.prototype = Object.create(AscDFH.CChangesBaseStringProperty.prototype); +CChangesPDFAnnotName.prototype.constructor = CChangesPDFAnnotName; +CChangesPDFAnnotName.prototype.Type = AscDFH.historyitem_Pdf_Annot_Name; +CChangesPDFAnnotName.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetName(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseLongProperty} + */ +function CChangesPDFAnnotApIdx(Class, Old, New, Color) +{ + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); +} +CChangesPDFAnnotApIdx.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); +CChangesPDFAnnotApIdx.prototype.constructor = CChangesPDFAnnotApIdx; +CChangesPDFAnnotApIdx.prototype.Type = AscDFH.historyitem_Pdf_Annot_File_Idx; +CChangesPDFAnnotApIdx.prototype.private_SetValue = function(Value) +{ + let oAnnot = this.Class; + oAnnot.SetApIdx(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseLongProperty} */ function CChangesPDFAnnotPage(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); } -CChangesPDFAnnotPage.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFAnnotPage.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); CChangesPDFAnnotPage.prototype.constructor = CChangesPDFAnnotPage; CChangesPDFAnnotPage.prototype.Type = AscDFH.historyitem_Pdf_Annot_Page; CChangesPDFAnnotPage.prototype.private_SetValue = function(Value) @@ -280,15 +911,15 @@ CChangesPDFAnnotPage.prototype.private_SetValue = function(Value) /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesAnnotArrayOfDoubleProperty} */ function CChangesPDFLinePoints(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesAnnotArrayOfDoubleProperty.call(this, Class, Old, New, Color); } -CChangesPDFLinePoints.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFLinePoints.prototype = Object.create(AscDFH.CChangesAnnotArrayOfDoubleProperty.prototype); CChangesPDFLinePoints.prototype.constructor = CChangesPDFLinePoints; -CChangesPDFLinePoints.prototype.Type = AscDFH.historyitem_Pdf_Line_Geometry; +CChangesPDFLinePoints.prototype.Type = AscDFH.historyitem_Pdf_Line_Points; CChangesPDFLinePoints.prototype.private_SetValue = function(Value) { let oAnnot = this.Class; diff --git a/pdf/src/history/documentChanges.js b/pdf/src/history/documentChanges.js index 20acae6e5c..0301369e0c 100644 --- a/pdf/src/history/documentChanges.js +++ b/pdf/src/history/documentChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -33,204 +33,607 @@ "use strict"; -AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_AddItem] = CChangesPDFDocumentAddItem; -AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_RemoveItem] = CChangesPDFDocumentRemoveItem; +// Update the changes factory mappings +AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_AnnotsContent] = CChangesPDFDocumentAnnotsContent; +AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_FieldsContent] = CChangesPDFDocumentFieldsContent; +AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_DrawingsContent] = CChangesPDFDocumentDrawingsContent; AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_AddPage] = CChangesPDFDocumentAddPage; AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_RemovePage] = CChangesPDFDocumentRemovePage; AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_RotatePage] = CChangesPDFDocumentRotatePage; AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_RecognizePage] = CChangesPDFDocumentRecognizePage; -AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_ChangePosInTree] = CChangesPDFDocumentChangePosInTree; +AscDFH.changesFactory[AscDFH.historyitem_PDF_Document_SetDocument] = CChangesPDFDocumentSetDocument; /** * @constructor - * @extends {AscDFH.CChangesBaseContentChange} + * @extends {AscDFH.CChangesDrawingsContent} */ -function CChangesPDFDocumentAddItem(Class, Pos, Items) +function CChangesPDFDocumentAnnotsContent(Class, Pos, Items, bAdd) { - AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, true); + AscDFH.CChangesDrawingsContent.call(this, Class, this.Type, Pos, Items, bAdd); } -CChangesPDFDocumentAddItem.prototype = Object.create(AscDFH.CChangesBaseContentChange.prototype); -CChangesPDFDocumentAddItem.prototype.constructor = CChangesPDFDocumentAddItem; -CChangesPDFDocumentAddItem.prototype.Type = AscDFH.historyitem_PDF_Document_AddItem; - -CChangesPDFDocumentAddItem.prototype.Undo = function() -{ - let oDocument = this.Class; - let oDrDoc = oDocument.GetDrawingDocument(); - let oViewer = Asc.editor.getDocumentRenderer(); - - for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) - { - let nPos = true !== this.UseArray ? this.Pos : this.PosArray[nIndex]; - let oItem = this.Items[nIndex]; +CChangesPDFDocumentAnnotsContent.prototype = Object.create(AscDFH.CChangesDrawingsContent.prototype); +CChangesPDFDocumentAnnotsContent.prototype.constructor = CChangesPDFDocumentAnnotsContent; +CChangesPDFDocumentAnnotsContent.prototype.Type = AscDFH.historyitem_PDF_Document_AnnotsContent; +CChangesPDFDocumentAnnotsContent.prototype.IsContentChange = function(){ + return true; +}; - if (oItem.IsAnnot()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); +CChangesPDFDocumentAnnotsContent.prototype.ReadFromBinary = function (reader) { + this.PageId = reader.GetString2(); + AscDFH.CChangesDrawingsContent.prototype.ReadFromBinary.call(this, reader); +}; +CChangesPDFDocumentAnnotsContent.prototype.WriteToBinary = function (writer) { + let oViewer = Asc.editor.getDocumentRenderer(); + if (!this.PageId) { + let nPage = this.Items[0].GetPage(); + this.PageId = oViewer.pagesInfo.pages[nPage].GetId(); + } + writer.WriteString2(this.PageId); + + AscDFH.CChangesDrawingsContent.prototype.WriteToBinary.call(this, writer); +}; - oDocument.annots.splice(nPos, 1); - this.PosInPage = oViewer.pagesInfo.pages[nPage].annots.indexOf(oItem); - oViewer.pagesInfo.pages[nPage].annots.splice(this.PosInPage, 1); - if (oItem.IsComment()) - editor.sync_RemoveComment(oItem.GetId()); - - oViewer.DrawingObjects.resetSelection(); - } - else if (oItem.IsDrawing()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); - - oDocument.drawings.splice(nPos, 1); - this.PosInPage = oViewer.pagesInfo.pages[nPage].drawings.indexOf(oItem); - oViewer.pagesInfo.pages[nPage].drawings.splice(this.PosInPage, 1); - oViewer.DrawingObjects.resetSelection(); - } - } - - oDocument.SetMouseDownObject(null); - oDrDoc.TargetEnd(); +CChangesPDFDocumentAnnotsContent.prototype.Undo = function() +{ + let oDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + + if (this.IsAdd()) { + // Undo addition by removing items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsAnnot()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.annots.splice(oDocument.annots.indexOf(oItem), 1); + oViewer.pagesInfo.pages[nPage].annots.splice(this.Pos, 1); + if (oItem.IsComment()) + editor.sync_RemoveComment(oItem.GetId()); + oViewer.DrawingObjects.resetSelection(); + oItem.AddToRedraw(); + } + } + } else { + // Undo removal by adding items back + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsAnnot()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.annots.push(oItem); + oViewer.pagesInfo.pages[nPage].annots.splice(this.Pos, 0, oItem); + if (oItem.IsComment()) + editor.sendEvent("asc_onAddComment", oItem.GetId(), oItem.GetAscCommentData()); + oItem.SetDisplay(oDocument.IsAnnotsHidden() ? window["AscPDF"].Api.Objects.display["hidden"] : window["AscPDF"].Api.Objects.display["visible"]); + oViewer.DrawingObjects.resetSelection(); + oItem.AddToRedraw(); + } + } + } + + oDocument.SetMouseDownObject(null); + oDocument.private_UpdateTargetForCollaboration(true); }; -CChangesPDFDocumentAddItem.prototype.Redo = function() +CChangesPDFDocumentAnnotsContent.prototype.Redo = function() { - let oDocument = this.Class; - let oDrDoc = oDocument.GetDrawingDocument(); - let oViewer = Asc.editor.getDocumentRenderer(); - - for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) - { - let nPos = true !== this.UseArray ? this.Pos : this.PosArray[nIndex]; - let oItem = this.Items[nIndex]; - - if (oItem.IsAnnot()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); - - oDocument.annots.splice(nPos, 0, oItem); - oViewer.pagesInfo.pages[nPage].annots.splice(this.PosInPage, 0, oItem); - if (oItem.IsComment()) - editor.sendEvent("asc_onAddComment", oItem.GetId(), oItem.GetAscCommentData()); - - oItem.SetDisplay(oDocument.IsAnnotsHidden() ? window["AscPDF"].Api.Objects.display["hidden"] : window["AscPDF"].Api.Objects.display["visible"]); + let oDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + + if (this.IsAdd()) { + // Redo addition by adding items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsAnnot()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.annots.push(oItem); + oViewer.pagesInfo.pages[nPage].annots.splice(this.Pos, 0, oItem); + if (oItem.IsComment()) + editor.sendEvent("asc_onAddComment", oItem.GetId(), oItem.GetAscCommentData()); + oItem.SetDisplay(oDocument.IsAnnotsHidden() ? window["AscPDF"].Api.Objects.display["hidden"] : window["AscPDF"].Api.Objects.display["visible"]); + oViewer.DrawingObjects.resetSelection(); + oItem.AddToRedraw(); + } + } + } else { + // Redo removal by removing items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsAnnot()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.annots.splice(oDocument.annots.indexOf(oItem), 1); + oViewer.pagesInfo.pages[nPage].annots.splice(this.Pos, 1); + if (oItem.IsComment()) + editor.sync_RemoveComment(oItem.GetId()); + } + } + } + + oDocument.SetMouseDownObject(null); + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentAnnotsContent.prototype.private_InsertInArrayLoad = function() +{ + if (this.Items.length <= 0) + return; + + let oDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + let oContentChanges = this.private_GetContentChanges(); + let oPage = AscCommon.g_oTableId.Get_ById(this.PageId); + + for (let i = 0; i < this.Items.length; ++i) { + let oItem = this.Items[i]; + + // Adjust position based on content changes + let nPos = oContentChanges.Check(AscCommon.contentchanges_Add, true !== this.UseArray ? this.Pos + i : this.PosArray[i]); + if (nPos === false) continue; + + // Ensure position is within bounds + nPos = Math.min(nPos, oDocument.annots.length); + + if (oPage) { + // Insert into document annots array + oDocument.annots.splice(nPos, 0, oItem); + + // Insert into viewer annots array + let annotsArray = oPage.annots; + nPos = Math.min(nPos, annotsArray.length); + annotsArray.splice(nPos, 0, oItem); + oItem.AddToRedraw(); + oItem.SetDisplay(oDocument.IsAnnotsHidden() ? window["AscPDF"].Api.Objects.display["hidden"] : window["AscPDF"].Api.Objects.display["visible"]); + if (oItem.IsComment()) { + Asc.editor.sendEvent("asc_onAddComment", oItem.GetId(), oItem.GetAscCommentData()); + } + } + + oViewer.DrawingObjects.resetSelection(); + } + + oDocument.SetMouseDownObject(null); + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentAnnotsContent.prototype.private_RemoveInArrayLoad = function() +{ + if (this.Items.length <= 0) + return; + + let oDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + let oContentChanges = this.private_GetContentChanges(); + let oPage = AscCommon.g_oTableId.Get_ById(this.PageId); + + // Remove items in reverse order to maintain indices + for (let i = this.Items.length - 1; i >= 0; --i) { + let oItem = this.Items[i]; + + // Adjust position based on content changes + let nPos = oContentChanges.Check(AscCommon.contentchanges_Remove, true !== this.UseArray ? this.Pos + i : this.PosArray[i]); + if (nPos === false) continue; + + // Remove from viewer annots array + if (oPage) { + oItem.AddToRedraw(); + // Remove from document annots array + let indexInAnnots = oDocument.annots.indexOf(oItem); + if (indexInAnnots !== -1) + oDocument.annots.splice(indexInAnnots, 1); + + let annotsArray = oPage.annots; + let indexInPageAnnots = annotsArray.indexOf(oItem); + if (indexInPageAnnots !== -1) + annotsArray.splice(indexInPageAnnots, 1); + } + + if (oItem.IsComment()) { + Asc.editor.sync_RemoveComment(oItem.GetId()); + } + + oViewer.DrawingObjects.resetSelection(); + } + + oDocument.SetMouseDownObject(null); + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentAnnotsContent.prototype.private_GetContentChanges = function() { + return this.Class.annotsContentChanges; +}; +CChangesPDFDocumentAnnotsContent.prototype.GetContentChangesClass = function() { + return this.private_GetContentChanges(); +}; - oViewer.DrawingObjects.resetSelection(); - } - else if (oItem.IsDrawing()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); +// Similarly, implement classes for Fields and Drawings - oDocument.drawings.splice(nPos, 0, oItem); - oViewer.pagesInfo.pages[nPage].drawings.splice(this.PosInPage, 0, oItem); +/** + * @constructor + * @extends {AscDFH.CChangesDrawingsContent} + */ +function CChangesPDFDocumentFieldsContent(Class, Pos, Items, bAdd) +{ + AscDFH.CChangesDrawingsContent.call(this, Class, this.Type, Pos, Items, bAdd); +} +CChangesPDFDocumentFieldsContent.prototype = Object.create(AscDFH.CChangesDrawingsContent.prototype); +CChangesPDFDocumentFieldsContent.prototype.constructor = CChangesPDFDocumentFieldsContent; +CChangesPDFDocumentFieldsContent.prototype.Type = AscDFH.historyitem_PDF_Document_FieldsContent; +CChangesPDFDocumentFieldsContent.prototype.IsContentChange = function(){ + return true; +}; - oViewer.DrawingObjects.resetSelection(); - } - } +CChangesPDFDocumentFieldsContent.prototype.ReadFromBinary = function (reader) { + this.PageId = reader.GetString2(); + AscDFH.CChangesDrawingsContent.prototype.ReadFromBinary.call(this, reader); +}; +CChangesPDFDocumentFieldsContent.prototype.WriteToBinary = function (writer) { + let oViewer = Asc.editor.getDocumentRenderer(); + if (!this.PageId) { + let nPage = this.Items[0].GetPage(); + this.PageId = oViewer.pagesInfo.pages[nPage].GetId(); + } + writer.WriteString2(this.PageId); + + AscDFH.CChangesDrawingsContent.prototype.WriteToBinary.call(this, writer); +}; - oDocument.SetMouseDownObject(null); - oDrDoc.TargetEnd(); +CChangesPDFDocumentFieldsContent.prototype.Undo = function() +{ + let oDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + + if (this.IsAdd()) { + // Undo addition by removing items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsForm()) { + if (oItem.IsWidget()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.widgets.splice(oDocument.widgets.indexOf(oItem), 1); + oViewer.pagesInfo.pages[nPage].fields.splice(this.Pos, 1); + } else { + oDocument.widgetsParents.splice(oDocument.widgetsParents.indexOf(oItem), 1); + } + } + } + } else { + // Undo removal by adding items back + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsForm()) { + if (oItem.IsWidget()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.widgets.push(oItem); + oViewer.pagesInfo.pages[nPage].fields.splice(this.Pos, 0, oItem); + } else { + oDocument.widgetsParents.push(oItem); + } + } + } + } + + oDocument.mouseDownAnnot = null; + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentFieldsContent.prototype.Redo = function() +{ + let oDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + + if (this.IsAdd()) { + // Redo addition by adding items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsForm()) { + if (oItem.IsWidget()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.widgets.push(oItem); + oViewer.pagesInfo.pages[nPage].fields.splice(this.Pos, 0, oItem); + } else { + oDocument.widgetsParents.push(oItem); + } + } + } + } else { + // Redo removal by removing items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsForm()) { + if (oItem.IsWidget()) { + oDocument.RemoveForm(oItem); + } else { + oDocument.widgetsParents.splice(oDocument.widgetsParents.indexOf(oItem), 1); + } + } + } + } + + oDocument.mouseDownAnnot = null; + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentFieldsContent.prototype.private_InsertInArrayLoad = function() +{ + if (this.Items.length <= 0) + return; + + let oDocument = this.Class; + let oContentChanges = this.private_GetContentChanges(); + let oPage = AscCommon.g_oTableId.Get_ById(this.PageId); + + for (let i = 0; i < this.Items.length; ++i) { + let oItem = this.Items[i]; + + // Adjust position based on content changes + let nPos = oContentChanges.Check(AscCommon.contentchanges_Add, true !== this.UseArray ? this.Pos + i : this.PosArray[i]); + if (nPos === false) continue; + + if (oItem.IsForm()) { + if (oItem.IsWidget()) { + // Insert into document widgets array + nPos = Math.min(nPos, oDocument.widgets.length); + if (oPage) { + oDocument.widgets.splice(nPos, 0, oItem); + // Insert into viewer fields array + let fieldsArray = oPage.fields; + nPos = Math.min(nPos, fieldsArray.length); + fieldsArray.splice(nPos, 0, oItem); + } + + oItem.AddToRedraw(); + } else { + nPos = Math.min(nPos, oDocument.widgetsParents.length); + oDocument.widgetsParents.splice(nPos, 0, oItem); + } + } + } + + oDocument.mouseDownAnnot = null; + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentFieldsContent.prototype.private_RemoveInArrayLoad = function() +{ + if (this.Items.length <= 0) + return; + + let oDocument = this.Class; + let oContentChanges = this.private_GetContentChanges(); + let oPage = AscCommon.g_oTableId.Get_ById(this.PageId); + + // Remove items in reverse order to maintain indices + for (let i = this.Items.length - 1; i >= 0; --i) { + let oItem = this.Items[i]; + + // Adjust position based on content changes + let nPos = oContentChanges.Check(AscCommon.contentchanges_Remove, true !== this.UseArray ? this.Pos + i : this.PosArray[i]); + if (nPos === false) continue; + + if (oItem.IsForm()) { + if (oItem.IsWidget()) { + if (oPage) { + oItem.AddToRedraw(); + + // Remove from document widgets array + let indexInWidgets = oDocument.widgets.indexOf(oItem); + if (indexInWidgets !== -1) + oDocument.widgets.splice(indexInWidgets, 1); + + // Remove from viewer fields array + let fieldsArray = oPage.fields; + let indexInFields = fieldsArray.indexOf(oItem); + if (indexInFields !== -1) + fieldsArray.splice(indexInFields, 1); + } + } + else { + let indexInParents = oDocument.widgetsParents.indexOf(oItem); + if (indexInParents !== -1) + oDocument.widgetsParents.splice(indexInParents, 1); + } + } + } + + oDocument.mouseDownAnnot = null; + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentFieldsContent.prototype.private_GetContentChanges = function() { + return this.Class.fieldsContentChanges; +}; +CChangesPDFDocumentFieldsContent.prototype.GetContentChangesClass = function() { + return this.private_GetContentChanges(); }; /** * @constructor - * @extends {AscDFH.CChangesBaseContentChange} + * @extends {AscDFH.CChangesDrawingsContent} */ -function CChangesPDFDocumentRemoveItem(Class, Pos, Items) +function CChangesPDFDocumentDrawingsContent(Class, Pos, Items, bAdd) { - AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, true); + AscDFH.CChangesDrawingsContent.call(this, Class, this.Type, Pos, Items, bAdd); } -CChangesPDFDocumentRemoveItem.prototype = Object.create(AscDFH.CChangesBaseContentChange.prototype); -CChangesPDFDocumentRemoveItem.prototype.constructor = CChangesPDFDocumentRemoveItem; -CChangesPDFDocumentRemoveItem.prototype.Type = AscDFH.historyitem_PDF_Document_RemoveItem; +CChangesPDFDocumentDrawingsContent.prototype = Object.create(AscDFH.CChangesDrawingsContent.prototype); +CChangesPDFDocumentDrawingsContent.prototype.constructor = CChangesPDFDocumentDrawingsContent; +CChangesPDFDocumentDrawingsContent.prototype.Type = AscDFH.historyitem_PDF_Document_DrawingsContent; +CChangesPDFDocumentDrawingsContent.prototype.IsContentChange = function(){ + return true; +}; -CChangesPDFDocumentRemoveItem.prototype.Undo = function() +CChangesPDFDocumentDrawingsContent.prototype.ReadFromBinary = function (reader) { + this.PageId = reader.GetString2(); + AscDFH.CChangesDrawingsContent.prototype.ReadFromBinary.call(this, reader); +}; +CChangesPDFDocumentDrawingsContent.prototype.WriteToBinary = function (writer) { + let oViewer = Asc.editor.getDocumentRenderer(); + if (!this.PageId) { + let nPage = this.Items[0].GetPage(); + this.PageId = oViewer.pagesInfo.pages[nPage].GetId(); + } + writer.WriteString2(this.PageId); + + AscDFH.CChangesDrawingsContent.prototype.WriteToBinary.call(this, writer); +}; +CChangesPDFDocumentDrawingsContent.prototype.Undo = function() +{ + let oDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + + if (this.IsAdd()) { + // Undo addition by removing items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsDrawing()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.drawings.splice(oDocument.drawings.indexOf(oItem), 1); + oViewer.pagesInfo.pages[nPage].drawings.splice(this.Pos, 1); + oViewer.DrawingObjects.resetSelection(); + oItem.AddToRedraw(); + } + } + } else { + // Undo removal by adding items back + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsDrawing()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.drawings.push(oItem); + oViewer.pagesInfo.pages[nPage].drawings.splice(this.Pos, 0, oItem); + oViewer.DrawingObjects.resetSelection(); + oItem.AddToRedraw(); + } + } + } + + oDocument.SetMouseDownObject(null); + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentDrawingsContent.prototype.Redo = function() { - let oDocument = this.Class; - let oViewer = editor.getDocumentRenderer(); + let oDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + + if (this.IsAdd()) { + // Redo addition by adding items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsDrawing()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.drawings.push(oItem); + oViewer.pagesInfo.pages[nPage].drawings.splice(this.Pos, 0, oItem); + oViewer.DrawingObjects.resetSelection(); + oItem.AddToRedraw(); + } + } + } else { + // Redo removal by removing items + for (let nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let oItem = this.Items[nIndex]; + if (oItem.IsDrawing()) { + let nPage = oItem.GetPage(); + oItem.AddToRedraw(); + oDocument.drawings.splice(oDocument.drawings.indexOf(oItem), 1); + oViewer.pagesInfo.pages[nPage].drawings.splice(this.Pos, 1); + oViewer.DrawingObjects.resetSelection(); + oItem.AddToRedraw(); + } + } + } + + oDocument.SetMouseDownObject(null); + oDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentDrawingsContent.prototype.private_InsertInArrayLoad = function() +{ + if (this.Items.length <= 0) + return; - for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + let pdfDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + let drawingChanges = pdfDocument.drawingsContentChanges; + let oPage = AscCommon.g_oTableId.Get_ById(this.PageId); + + for (let i = 0; i < this.Items.length; ++i) { - let nPos = this.Pos[0]; - let nPosInPage = this.Pos[1]; - - let oItem = this.Items[nIndex]; - - if (oItem.IsForm()) { - if (oItem.IsWidget()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); - - oDocument.widgets.splice(nPos, 0, oItem); - oViewer.pagesInfo.pages[nPage].fields.splice(nPosInPage, 0, oItem); - } - else { - oDocument.widgetsParents.push(oItem); - } - } - else if (oItem.IsAnnot()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); - - oDocument.annots.splice(nPos, 0, oItem); - oViewer.pagesInfo.pages[nPage].annots.splice(nPosInPage, 0, oItem); - if (oItem.GetReply(0) != null || oItem.GetType() != AscPDF.ANNOTATIONS_TYPES.FreeText && oItem.GetContents()) - editor.sendEvent("asc_onAddComment", oItem.GetId(), oItem.GetAscCommentData()); - - oItem.SetDisplay(oDocument.IsAnnotsHidden() ? window["AscPDF"].Api.Objects.display["hidden"] : window["AscPDF"].Api.Objects.display["visible"]); - } - else if (oItem.IsDrawing()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); - - oDocument.drawings.splice(nPos, 0, oItem); - oViewer.pagesInfo.pages[nPage].drawings.splice(nPosInPage, 0, oItem); + let oItem = this.Items[i]; + + // Adjust position based on content changes + let nPos = drawingChanges.Check(AscCommon.contentchanges_Add, true !== this.UseArray ? this.Pos + i : this.PosArray[i]); + if (nPos === false) continue; + nPos = Math.min(nPos, pdfDocument.drawings.length); + + if (oPage) + { + pdfDocument.drawings.splice(nPos, 0, oItem); + let drawingsArray = oPage.drawings; + + nPos = Math.min(nPos, drawingsArray.length); + drawingsArray.splice(nPos, 0, oItem); } + + oViewer.DrawingObjects.resetSelection(); + oItem.AddToRedraw(); } - - oDocument.mouseDownAnnot = null; + + pdfDocument.SetMouseDownObject(null); + pdfDocument.private_UpdateTargetForCollaboration(true); }; -CChangesPDFDocumentRemoveItem.prototype.Redo = function() +CChangesPDFDocumentDrawingsContent.prototype.private_RemoveInArrayLoad = function() { - var oDocument = this.Class; - let oViewer = editor.getDocumentRenderer(); + if (this.Items.length <= 0) + return; - for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + let pdfDocument = this.Class; + let oViewer = Asc.editor.getDocumentRenderer(); + let drawingChanges = pdfDocument.drawingsContentChanges; + let oPage = AscCommon.g_oTableId.Get_ById(this.PageId); + + // Remove items in reverse order to maintain indices + for (let i = this.Items.length - 1; i >= 0; --i) { - let nPos = this.Pos[0]; - let nPosInPage = this.Pos[1]; - - let oItem = this.Items[nIndex]; - - if (oItem.IsForm()) { - if (oItem.IsWidget()) { - oDocument.RemoveForm(oItem); - } - else { - let nIdx = oDocument.widgetsParents.indexOf(oItem); - if (nIdx != -1) { - oDocument.widgetsParents.splice(nIdx, oItem); - } - } - } - else if (oItem.IsAnnot()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); - - oDocument.annots.splice(nPos, 1); - oViewer.pagesInfo.pages[nPage].annots.splice(nPosInPage, 1); - if (oItem.GetReply(0) != null || oItem.GetType() != AscPDF.ANNOTATIONS_TYPES.FreeText && oItem.GetContents()) - editor.sync_RemoveComment(oItem.GetId()); - } - else if (oItem.IsDrawing()) { - let nPage = oItem.GetPage(); - oItem.AddToRedraw(); - - oDocument.drawings.splice(nPos, 1); - oViewer.pagesInfo.pages[nPage].drawings.splice(nPosInPage, 1); + let oItem = this.Items[i]; + + let nPos = drawingChanges.Check(AscCommon.contentchanges_Remove, true !== this.UseArray ? this.Pos + i : this.PosArray[i]); + if (nPos === false) continue; + + if (oPage) + { + let indexInDrawings = pdfDocument.drawings.indexOf(oItem); + if (indexInDrawings !== -1) + pdfDocument.drawings.splice(indexInDrawings, 1); + + let drawingsArray = oPage.drawings; + let indexInDrawingsArray = drawingsArray.indexOf(oItem); + if (indexInDrawingsArray !== -1) + drawingsArray.splice(indexInDrawingsArray, 1); } + + oItem.AddToRedraw(); + oViewer.DrawingObjects.resetSelection(); } - oDocument.mouseDownAnnot = null; + pdfDocument.SetMouseDownObject(null); + pdfDocument.private_UpdateTargetForCollaboration(true); +}; +CChangesPDFDocumentDrawingsContent.prototype.private_GetContentChanges = function() { + return this.Class.drawingsContentChanges; +}; +CChangesPDFDocumentDrawingsContent.prototype.GetContentChangesClass = function() { + return this.private_GetContentChanges(); }; - /** * @constructor @@ -246,7 +649,7 @@ CChangesPDFDocumentAddPage.prototype.Type = AscDFH.historyitem_PDF_Document_AddP CChangesPDFDocumentAddPage.prototype.Undo = function() { - let oDocument = this.Class; + let oDocument = this.Class; let oDrDoc = oDocument.GetDrawingDocument(); for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) @@ -273,6 +676,35 @@ CChangesPDFDocumentAddPage.prototype.Redo = function() oDocument.SetMouseDownObject(null); oDrDoc.TargetEnd(); }; +CChangesPDFDocumentAddPage.prototype.Load = function() +{ + let pdfDocument = this.Class; + let pageChanges = pdfDocument.pagesContentChanges; + for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let nPos = true !== this.UseArray ? this.Pos : this.PosArray[nIndex]; + nPos = pageChanges.Check(AscCommon.contentchanges_Add, nPos); + pdfDocument.AddPage(nPos, this.Items[nIndex]); + } +}; +CChangesPDFDocumentAddPage.prototype.private_WriteItem = function(Writer, oPage) +{ + Writer.WriteString2(oPage.Id); + Writer.WriteLong(oPage.Rotate); + Writer.WriteLong(oPage.Dpi); + Writer.WriteLong(oPage.W); + Writer.WriteLong(oPage.H); +}; +CChangesPDFDocumentAddPage.prototype.private_ReadItem = function(Reader) +{ + return { + Id: Reader.GetString2(), + Rotate: Reader.GetLong(), + Dpi: Reader.GetLong(), + W: Reader.GetLong(), + H: Reader.GetLong() + }; +}; /** * @constructor @@ -280,7 +712,7 @@ CChangesPDFDocumentAddPage.prototype.Redo = function() */ function CChangesPDFDocumentRemovePage(Class, Pos, Items) { - AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, true); + AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, false); } CChangesPDFDocumentRemovePage.prototype = Object.create(AscDFH.CChangesBaseContentChange.prototype); CChangesPDFDocumentRemovePage.prototype.constructor = CChangesPDFDocumentRemovePage; @@ -315,80 +747,197 @@ CChangesPDFDocumentRemovePage.prototype.Redo = function() oDocument.SetMouseDownObject(null); oDrDoc.TargetEnd(); }; +CChangesPDFDocumentRemovePage.prototype.Load = function() +{ + let pdfDocument = this.Class; + let pageChanges = pdfDocument.pagesContentChanges; + for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) + { + let nPos = true !== this.UseArray ? this.Pos : this.PosArray[nIndex]; + nPos = pageChanges.Check(AscCommon.contentchanges_Remove, nPos); + if (false === nPos) + continue; + + pdfDocument.RemovePage(nPos); + } +}; +CChangesPDFDocumentRemovePage.prototype.private_WriteItem = function(Writer, oPage) +{ + Writer.WriteString2(oPage.Id); + Writer.WriteLong(oPage.Rotate); + Writer.WriteLong(oPage.Dpi); + Writer.WriteLong(oPage.W); + Writer.WriteLong(oPage.H); +}; +CChangesPDFDocumentRemovePage.prototype.private_ReadItem = function(Reader) +{ + return { + Id: Reader.GetString2(), + Rotate: Reader.GetLong(), + Dpi: Reader.GetLong(), + W: Reader.GetLong(), + H: Reader.GetLong() + }; +}; /** * @constructor * @extends {AscDFH.CChangesBaseProperty} */ -function CChangesPDFDocumentRotatePage(Class, Old, New, Color) +function CChangesPDFDocumentRotatePage(Class, PageId, Old, New) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseProperty.call(this, Class, Old, New); + this.PageId = PageId; } CChangesPDFDocumentRotatePage.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); CChangesPDFDocumentRotatePage.prototype.constructor = CChangesPDFDocumentRotatePage; CChangesPDFDocumentRotatePage.prototype.Type = AscDFH.historyitem_PDF_Document_RotatePage; CChangesPDFDocumentRotatePage.prototype.private_SetValue = function(Value) { - let oDoc = this.Class; - oDoc.SetPageRotate(Value[0], Value[1]); + let oDoc = this.Class; + let oFile = oDoc.Viewer.file; + let sPageId = this.PageId; + let nPageIdx = oDoc.Viewer.pagesInfo.pages.findIndex(function(pageInfo) { + return pageInfo.Id == sPageId; + }); + + if (-1 !== nPageIdx) { + oFile.pages[nPageIdx].Rotate = Value; + + // sticky note всегда неповернуты + oDoc.Viewer.pagesInfo.pages[nPageIdx].annots.forEach(function(annot) { + if (annot.IsComment()) { + annot.AddToRedraw(); + } + }); + + oDoc.Viewer.resize(true); + oDoc.Viewer.paint(); + } +}; +CChangesPDFDocumentRotatePage.prototype.WriteToBinary = function(Writer) +{ + let nFlags = 0; + + if (undefined === this.PageId) + nFlags |= 1; + + if (undefined === this.New) + nFlags |= 2; + + if (undefined === this.Old) + nFlags |= 4; + + Writer.WriteLong(nFlags); + + if (undefined !== this.PageId) + Writer.WriteString2(this.PageId); + + if (undefined !== this.New) + Writer.WriteLong(this.New); + + if (undefined !== this.Old) + Writer.WriteLong(this.Old); +}; +CChangesPDFDocumentRotatePage.prototype.ReadFromBinary = function(Reader) +{ + let nFlags = Reader.GetLong(); + + if (nFlags & 1) + this.PageId = undefined; + else + this.PageId = Reader.GetString2(); + + if (nFlags & 2) + this.New = undefined; + else + this.New = Reader.GetLong(); + + if (nFlags & 4) + this.Old = undefined; + else + this.Old = Reader.GetLong(); }; /** * @constructor * @extends {AscDFH.CChangesBaseProperty} */ -function CChangesPDFDocumentRecognizePage(Class, Old, New, Color) +function CChangesPDFDocumentRecognizePage(Class, PageId, Old, New) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseProperty.call(this, Class, Old, New); + this.PageId = PageId; } CChangesPDFDocumentRecognizePage.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); CChangesPDFDocumentRecognizePage.prototype.constructor = CChangesPDFDocumentRecognizePage; CChangesPDFDocumentRecognizePage.prototype.Type = AscDFH.historyitem_PDF_Document_RecognizePage; -CChangesPDFDocumentRecognizePage.prototype.private_SetValue = function(Value) +CChangesPDFDocumentRecognizePage.prototype.WriteToBinary = function(Writer) +{ + let nFlags = 0; + + if (undefined !== this.PageId) + nFlags |= 1; + + if (true === this.New) + nFlags |= 2; + + if (true === this.Old) + nFlags |= 4; + + Writer.WriteLong(nFlags); + if (undefined !== this.PageId) + Writer.WriteString2(this.PageId); +}; +CChangesPDFDocumentRecognizePage.prototype.ReadFromBinary = function(Reader) +{ + let nFlags = Reader.GetLong(); + + if (nFlags & 1) + this.PageId = Reader.GetString2(); + else + this.PageId = undefined; + + this.New = !!(nFlags & 2); + this.Old = !!(nFlags & 4); +}; +CChangesPDFDocumentRecognizePage.prototype.private_SetValue = function(bRecognize) { let oDoc = this.Class; let oFile = oDoc.Viewer.file; - - oFile.pages[Value[0]].isConvertedToShapes = Value[1]; + + let sPageId = this.PageId; + let nPageIdx = oDoc.Viewer.pagesInfo.pages.findIndex(function(pageInfo) { + return pageInfo.Id == sPageId; + }); + + if (-1 !== nPageIdx) { + oFile.pages[nPageIdx].isConvertedToShapes = bRecognize; + if (oDoc.Viewer.drawingPages[nPageIdx]) { + delete oDoc.Viewer.drawingPages[nPageIdx].Image; + } + + oDoc.Viewer.paint(function() { + let oThumbnails = oDoc.Viewer.thumbnails; + oThumbnails && oThumbnails._repaintPage(nPageIdx); + }); + } }; /** * @constructor - * @extends {AscDFH.CChangesBaseContentChange} + * @extends {AscDFH.CChangesBaseStringProperty} */ -function CChangesPDFDocumentChangePosInTree(Class, Pos, Items) +function CChangesPDFDocumentSetDocument(Class, Old, New) { - AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, true); + let oldId = Old && Old.Get_Id ? Old.Get_Id() : undefined; + let newId = New && New.Get_Id ? New.Get_Id() : undefined; + AscDFH.CChangesBaseStringProperty.call(this, Class, oldId, newId); } -CChangesPDFDocumentChangePosInTree.prototype = Object.create(AscDFH.CChangesBaseContentChange.prototype); -CChangesPDFDocumentChangePosInTree.prototype.constructor = CChangesPDFDocumentChangePosInTree; -CChangesPDFDocumentChangePosInTree.prototype.Type = AscDFH.historyitem_PDF_Document_ChangePosInTree; - -CChangesPDFDocumentChangePosInTree.prototype.Undo = function() +CChangesPDFDocumentSetDocument.prototype = Object.create(AscDFH.CChangesBaseStringProperty.prototype); +CChangesPDFDocumentSetDocument.prototype.constructor = CChangesPDFDocumentSetDocument; +CChangesPDFDocumentSetDocument.prototype.Type = AscDFH.historyitem_PDF_Document_SetDocument; +CChangesPDFDocumentSetDocument.prototype.private_SetValue = function(value) { - let oDocument = this.Class; - let oDrDoc = oDocument.GetDrawingDocument(); - - for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) - { - let nOldPos = this.Pos[0]; - oDocument.ChangeObjectPosInPageTree(this.Items[0], nOldPos); - } - - oDocument.SetMouseDownObject(null); - oDrDoc.TargetEnd(); -}; -CChangesPDFDocumentChangePosInTree.prototype.Redo = function() -{ - let oDocument = this.Class; - let oDrDoc = oDocument.GetDrawingDocument(); - - for (var nIndex = 0, nCount = this.Items.length; nIndex < nCount; ++nIndex) - { - let nNewPos = this.Pos[1]; - oDocument.ChangeObjectPosInPageTree(this.Items[0], nNewPos); - } - - oDocument.SetMouseDownObject(null); - oDrDoc.TargetEnd(); + let doc = AscCommon.g_oTableId.Get_ById(value); + this.Class.SetDocument(doc); }; diff --git a/pdf/src/history/drawingsChanges.js b/pdf/src/history/drawingsChanges.js index 347636e4e3..311484b6dd 100644 --- a/pdf/src/history/drawingsChanges.js +++ b/pdf/src/history/drawingsChanges.js @@ -32,41 +32,21 @@ "use strict"; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Drawing_Page] = CChangesPDFDrawingPage; -AscDFH.changesFactory[AscDFH.historyitem_Pdf_Drawing_Rot] = CChangesPDFDrawingRot; - +AscDFH.changesFactory[AscDFH.historyitem_type_Pdf_Drawing_Page] = CChangesPDFDrawingPage; /** * @constructor - * @extends {AscDFH.CChangesBaseProperty} + * @extends {AscDFH.CChangesBaseLongProperty} */ function CChangesPDFDrawingPage(Class, Old, New, Color) { - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); } -CChangesPDFDrawingPage.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); +CChangesPDFDrawingPage.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); CChangesPDFDrawingPage.prototype.constructor = CChangesPDFDrawingPage; -CChangesPDFDrawingPage.prototype.Type = AscDFH.historyitem_Pdf_Drawing_Page; +CChangesPDFDrawingPage.prototype.Type = AscDFH.historyitem_type_Pdf_Drawing_Page; CChangesPDFDrawingPage.prototype.private_SetValue = function(Value) { let oDrawing = this.Class; oDrawing.SetPage(Value, true); }; - -/** - * @constructor - * @extends {AscDFH.CChangesBaseProperty} - */ -function CChangesPDFDrawingRot(Class, Old, New, Color) -{ - AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); -} -CChangesPDFDrawingRot.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); -CChangesPDFDrawingRot.prototype.constructor = CChangesPDFDrawingRot; -CChangesPDFDrawingRot.prototype.Type = AscDFH.historyitem_Pdf_Drawing_Rot; -CChangesPDFDrawingRot.prototype.private_SetValue = function(Value) -{ - let oDrawing = this.Class; - oDrawing.SetRot(Value); -}; - diff --git a/pdf/src/history/formsChanges.js b/pdf/src/history/formsChanges.js index 5cab0b0d5b..0f78c47af0 100644 --- a/pdf/src/history/formsChanges.js +++ b/pdf/src/history/formsChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -35,7 +35,11 @@ AscDFH.changesFactory[AscDFH.historyitem_Pdf_Form_Value] = CChangesPDFFormValue; AscDFH.changesFactory[AscDFH.historyitem_Pdf_Form_Add_Kid] = CChangesPDFFormAddKid; AscDFH.changesFactory[AscDFH.historyitem_Pdf_Form_Remove_Kid] = CChangesPDFFormRemoveKid; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_Form_Change_Display] = CChangesPDFFormDisplay; + AscDFH.changesFactory[AscDFH.historyitem_Pdf_List_Form_Cur_Idxs] = CChangesPDFListFormCurIdxs; +AscDFH.changesFactory[AscDFH.historyitem_Pdf_List_Form_Top_Idx] = CChangesPDListTopIndex; + AscDFH.changesFactory[AscDFH.historyitem_Pdf_Pushbutton_Image] = CChangesPDFPushbuttonImage; /** @@ -51,19 +55,85 @@ CChangesPDFFormValue.prototype.constructor = CChangesPDFFormValue; CChangesPDFFormValue.prototype.Type = AscDFH.historyitem_Pdf_Form_Value; CChangesPDFFormValue.prototype.private_SetValue = function(Value) { - var oField = this.Class; + let oField = this.Class; oField.SetValue(Value); + oField.Commit(); +}; + +CChangesPDFFormValue.prototype.WriteToBinary = function(Writer) +{ + // Long : Flag + // 1-bit : Подсвечивать ли данные изменения + // 2-bit : IsUndefined New + // 3-bit : IsUndefined Old + // string : New + // string : Old + + var nFlags = 0; + + if (false !== this.Color) + nFlags |= 1; + + if (undefined === this.New) + nFlags |= 2; + + if (undefined === this.Old) + nFlags |= 4; + + if (Array.isArray(this.New) || Array.isArray(this.Old)) + nFlags |= 8; + + Writer.WriteLong(nFlags); + + if (undefined !== this.New) { + Writer.WriteString2(Array.isArray(this.New) ? JSON.stringify(this.New) : this.New); + } + + if (undefined !== this.Old) { + Writer.WriteString2(Array.isArray(this.Old) ? JSON.stringify(this.Old) : this.Old); + } +}; +CChangesPDFFormValue.prototype.ReadFromBinary = function(Reader) +{ + // Long : Flag + // 1-bit : Подсвечивать ли данные изменения + // 2-bit : IsUndefined New + // 3-bit : IsUndefined Old + // string : New + // string : Old + + + var nFlags = Reader.GetLong(); + + let isArrayValue = false; + if (nFlags & 8) + isArrayValue = true; + + if (nFlags & 1) + this.Color = true; + else + this.Color = false; + + if (nFlags & 2) + this.New = undefined; + else + this.New = isArrayValue ? JSON.parse(Reader.GetString2()) : Reader.GetString2(); + + if (nFlags & 4) + this.Old = undefined; + else + this.Old = isArrayValue ? JSON.parse(Reader.GetString2()) : Reader.GetString2(); }; /** * @constructor - * @extends {AscDFH.CChangesBaseContentChange} + * @extends {AscDFH.CChangesDrawingsContent} */ function CChangesPDFFormAddKid(Class, Pos, Items) { - AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, true); + AscDFH.CChangesDrawingsContent.call(this, Class, this.Type, Pos, Items, true); } -CChangesPDFFormAddKid.prototype = Object.create(AscDFH.CChangesBaseContentChange.prototype); +CChangesPDFFormAddKid.prototype = Object.create(AscDFH.CChangesDrawingsContent.prototype); CChangesPDFFormAddKid.prototype.constructor = CChangesPDFFormAddKid; CChangesPDFFormAddKid.prototype.Type = AscDFH.historyitem_Pdf_Form_Add_Kid; @@ -104,13 +174,13 @@ CChangesPDFFormAddKid.prototype.Redo = function() /** * @constructor - * @extends {AscDFH.CChangesBaseContentChange} + * @extends {AscDFH.CChangesDrawingsContent} */ function CChangesPDFFormRemoveKid(Class, Pos, Items) { - AscDFH.CChangesBaseContentChange.call(this, Class, Pos, Items, true); + AscDFH.CChangesDrawingsContent.call(this, Class, this.Type, Pos, Items, false); } -CChangesPDFFormRemoveKid.prototype = Object.create(AscDFH.CChangesBaseContentChange.prototype); +CChangesPDFFormRemoveKid.prototype = Object.create(AscDFH.CChangesDrawingsContent.prototype); CChangesPDFFormRemoveKid.prototype.constructor = CChangesPDFFormRemoveKid; CChangesPDFFormRemoveKid.prototype.Type = AscDFH.historyitem_Pdf_Form_Remove_Kid; @@ -151,34 +221,196 @@ CChangesPDFFormRemoveKid.prototype.Redo = function() /** * @constructor - * @extends {AscDFH.CChangesBaseStringProperty} + * @extends {AscDFH.CChangesBaseLongProperty} + */ +function CChangesPDFFormDisplay(Class, Old, New, Color) +{ + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); +} +CChangesPDFFormDisplay.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); +CChangesPDFFormDisplay.prototype.constructor = CChangesPDFFormDisplay; +CChangesPDFFormDisplay.prototype.Type = AscDFH.historyitem_Pdf_Form_Change_Display; +CChangesPDFFormDisplay.prototype.private_SetValue = function(Value) +{ + let oField = this.Class; + oField.SetDisplay(Value); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseProperty} */ function CChangesPDFListFormCurIdxs(Class, Old, New, Color) { - AscDFH.CChangesBaseStringProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseProperty.call(this, Class, Old, New, Color); } -CChangesPDFListFormCurIdxs.prototype = Object.create(AscDFH.CChangesBaseStringProperty.prototype); +CChangesPDFListFormCurIdxs.prototype = Object.create(AscDFH.CChangesBaseProperty.prototype); CChangesPDFListFormCurIdxs.prototype.constructor = CChangesPDFListFormCurIdxs; CChangesPDFListFormCurIdxs.prototype.Type = AscDFH.historyitem_Pdf_List_Form_Cur_Idxs; CChangesPDFListFormCurIdxs.prototype.private_SetValue = function(Value) { var oField = this.Class; - oField.SetApiCurIdxs(Value); + oField.SetCurIdxs(Value); + oField.Commit(); +}; + +CChangesPDFListFormCurIdxs.prototype.WriteToBinary = function(Writer) +{ + // Long : Flag + // 1-bit : Подсвечивать ли данные изменения + // 2-bit : IsUndefined New + // 3-bit : IsUndefined Old + // string : New + // string : Old + + let nFlags = 0; + + if (false !== this.Color) + nFlags |= 1; + + if (undefined === this.New) + nFlags |= 2; + + if (undefined === this.Old) + nFlags |= 4; + + Writer.WriteLong(nFlags); + + if (undefined !== this.New) { + Writer.WriteString2(JSON.stringify(this.New)); + } + + if (undefined !== this.Old) { + Writer.WriteString2(JSON.stringify(this.Old)); + } +}; +CChangesPDFListFormCurIdxs.prototype.ReadFromBinary = function(Reader) +{ + // Long : Flag + // 1-bit : Подсвечивать ли данные изменения + // 2-bit : IsUndefined New + // 3-bit : IsUndefined Old + // string : New + // string : Old + + let nFlags = Reader.GetLong(); + + if (nFlags & 1) + this.Color = true; + else + this.Color = false; + + if (nFlags & 2) + this.New = undefined; + else + this.New = JSON.parse(Reader.GetString2()); + + if (nFlags & 4) + this.Old = undefined; + else + this.Old = JSON.parse(Reader.GetString2()); +}; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseLongProperty} + */ +function CChangesPDListTopIndex(Class, Old, New, Color) +{ + AscDFH.CChangesBaseLongProperty.call(this, Class, Old, New, Color); +} +CChangesPDListTopIndex.prototype = Object.create(AscDFH.CChangesBaseLongProperty.prototype); +CChangesPDListTopIndex.prototype.constructor = CChangesPDListTopIndex; +CChangesPDListTopIndex.prototype.Type = AscDFH.historyitem_Pdf_List_Form_Top_Idx; +CChangesPDListTopIndex.prototype.private_SetValue = function(Value) +{ + let oField = this.Class; + oField.SetTopIndex(Value); }; /** * @constructor * @extends {AscDFH.CChangesBaseStringProperty} */ -function CChangesPDFPushbuttonImage(Class, Old, New, Color) +function CChangesPDFPushbuttonImage(Class, sOldRasterId, sNewRasterId, nAPType, Color) { - AscDFH.CChangesBaseStringProperty.call(this, Class, Old, New, Color); + AscDFH.CChangesBaseStringProperty.call(this, Class, sOldRasterId, sNewRasterId, Color); + this.APType = nAPType; } CChangesPDFPushbuttonImage.prototype = Object.create(AscDFH.CChangesBaseStringProperty.prototype); CChangesPDFPushbuttonImage.prototype.constructor = CChangesPDFPushbuttonImage; CChangesPDFPushbuttonImage.prototype.Type = AscDFH.historyitem_Pdf_Pushbutton_Image; CChangesPDFPushbuttonImage.prototype.private_SetValue = function(Value) { - var oField = this.Class; - oField.AddImage2(Value[0], Value[1]); + let oButtonField = this.Class; + if (this.FromLoad && typeof Value === "string" && Value.length > 0) { + AscCommon.CollaborativeEditing.Add_NewImage(Value); + AscCommon.CollaborativeEditing.m_aEndLoadCallbacks.push(oButtonField.AddImage2.bind(oButtonField, Value, this.APType)); + } + else { + oButtonField.AddImage2(Value, this.APType); + } +}; + +CChangesPDFPushbuttonImage.prototype.WriteToBinary = function(Writer) +{ + let nFlags = 0; + + if (false !== this.Color) + nFlags |= 1; + + if (undefined === this.APType) + nFlags |= 2; + + if (undefined === this.New) + nFlags |= 4; + + if (undefined === this.Old) + nFlags |= 8; + + + Writer.WriteLong(nFlags); + + if (undefined !== this.APType) + Writer.WriteLong(this.APType); + + if (undefined !== this.New) + Writer.WriteString2(this.New); + + if (undefined !== this.Old) + Writer.WriteString2(this.Old); +}; +CChangesPDFPushbuttonImage.prototype.ReadFromBinary = function(Reader) +{ + this.FromLoad = true; + + // Long : Flag + // 1-bit : Подсвечивать ли данные изменения + // 2-bit : IsUndefined New + // 3-bit : IsUndefined Old + // long : New + // long : Old + + + var nFlags = Reader.GetLong(); + + if (nFlags & 1) + this.Color = true; + else + this.Color = false; + + if (nFlags & 2) + this.APType = undefined; + else + this.APType = Reader.GetLong(); + + if (nFlags & 4) + this.New = undefined; + else + this.New = Reader.GetString2(); + + if (nFlags & 8) + this.Old = undefined; + else + this.Old = Reader.GetString2(); }; diff --git a/pdf/src/history/history.js b/pdf/src/history/history.js index f34cbb5e0b..1d70522e56 100644 --- a/pdf/src/history/history.js +++ b/pdf/src/history/history.js @@ -59,16 +59,17 @@ this.Points[this.Index].Additional.Pdf = aObj; } }; - History.prototype.GetPdfConvertTextPoint = function() { - if (this.Index !== -1) { - return !!this.Points[this.Index].Additional.PdfConvertText; - } - }; - History.prototype.SetPdfConvertTextPoint = function(oConvertInfo) { - if (this.Index !== -1) { - this.Points[this.Index].Additional.PdfConvertText = oConvertInfo; - } - }; + History.prototype.CanAddChanges = function() { + return !this.UndoRedoInProgress && AscCommon.CHistory.prototype.CanAddChanges.call(this); + }; + History.prototype.StartNoHistoryMode = function() { + this.TurnOff(); + AscCommon.g_oTableId.TurnOff(); + }; + History.prototype.EndNoHistoryMode = function() { + this.TurnOn(); + AscCommon.g_oTableId.TurnOn(); + }; History.prototype.Add = function(_Class, Data) { if (!this.CanAddChanges()) return; @@ -86,11 +87,6 @@ }; History.prototype.CheckUnionLastPoints = function() { - // Не объединяем точки в истории, когда отключается пересчет. - // TODO: Неправильно изменяется RecalcIndex - if (this.Document && null == this.Document.Viewer.scheduledRepaintTimer) - return false; - // Не объединяем точки во время Undo/Redo if (this.Index < this.Points.length - 1) return false; @@ -104,6 +100,11 @@ var Point1 = this.Points[this.Points.length - 2]; var Point2 = this.Points[this.Points.length - 1]; + // запрет на объединение + if (Point1.forbidUnion || Point2.forbidUnion) { + return false; + } + // Не объединяем слова больше 63 элементов if (Point1.Items.length > 63 && AscDFH.historydescription_Document_AddLetterUnion === Point1.Description) return false; @@ -201,6 +202,30 @@ return true; }; + History.prototype.ForbidUnionPoint = function(nIndex) { + if (!nIndex) { + nIndex = this.Points.length - 1; + } + + if (this.Points[nIndex]) { + this.Points[nIndex].forbidUnion = true; + } + }; + History.prototype.private_IsContentChange = function(Class, Data) { + if (Data.IsContentChange) + return Data.IsContentChange(); + + return AscCommon.CHistory.prototype.private_IsContentChange.call(this, Class, Data); + }; + History.prototype.private_UpdateContentChangesOnUndo = function(Item) + { + if (!this.private_IsContentChange(Item.Class, Item.Data)) + return; + + let contentChanges = Item.Data.GetContentChangesClass(); + if (contentChanges) + contentChanges.RemoveByHistoryItem(Item); + }; //----------------------------------------------------------export-------------------------------------------------- window['AscPDF'] = window['AscPDF'] || {}; diff --git a/pdf/src/thumbnails.js b/pdf/src/thumbnails.js index a770d4dbee..9d7c8fdecb 100644 --- a/pdf/src/thumbnails.js +++ b/pdf/src/thumbnails.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -235,7 +235,9 @@ var pH = (drPage.page.height * zoom) >> 0; if (isLandscape) { - [pW, pH] = [pH, pW]; + let tmp = pW; + pW = pH; + pH = tmp; } var curPageHeight = pH + PageStyle.numberFontOffset + PageStyle.numberFontHeight; @@ -478,6 +480,11 @@ // очередь задач - нужно ли перерисоваться и/или перерисовать страницу CDocument.prototype.checkTasks = function(isViewerTask) { + let pdfDoc = this.viewer.getPDFDoc(); + + if (pdfDoc.fontLoader.isWorking() || AscCommon.CollaborativeEditing.waitingImagesForLoad) + return true; + var isNeedTasks = false; if (!this.isEnabled) return isNeedTasks; @@ -506,6 +513,9 @@ if (needPage) { + if (!this.viewer._checkFontsOnPages(needPage.num, needPage.num)) + return true; + isNeedTasks = true; let isLandscape = this.viewer.isLandscapePage(needPage.num); let angle = this.viewer.getPageRotate(needPage.num); diff --git a/pdf/src/viewer.js b/pdf/src/viewer.js index 37b00d25cb..a53559491a 100644 --- a/pdf/src/viewer.js +++ b/pdf/src/viewer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -103,6 +103,12 @@ // страницы на экране в приоритете. function CPageInfo() { + this.Id = null; + if ((AscCommon.g_oIdCounter.m_bLoad || AscCommon.History.CanAddChanges())) { + this.Id = AscCommon.g_oIdCounter.Get_NewId(); + AscCommon.g_oTableId.Add(this, this.Id); + } + this.isPainted = false; this.links = null; this.fields = []; @@ -112,6 +118,8 @@ this.needRedrawDrawings = true; this.needRedrawAnnots = true; } + AscFormat.InitClass(CPageInfo, AscFormat.CBaseNoIdObject, AscDFH.historyitem_type_Pdf_Page); + CPageInfo.prototype.constructor = CPageInfo; function CDocumentPagesInfo() { @@ -234,6 +242,7 @@ this.doc.DrawingDocument = this.drawingDocument; Asc.editor.WordControl.m_oLogicDocument = this.doc; Asc.editor.WordControl.m_oDrawingDocument.m_oLogicDocument = this.doc; + this.touchManager = null; this.isXP = ((AscCommon.AscBrowser.userAgent.indexOf("windowsxp") > -1) || (AscCommon.AscBrowser.userAgent.indexOf("chrome/49") > -1)) ? true : false; if (!this.isXP && AscCommon.AscBrowser.isIE && !AscCommon.AscBrowser.isIeEdge) @@ -584,12 +593,13 @@ if (this.startVisiblePage < 0 || this.endVisiblePage < 0) return false; + let oThumbnails = this.thumbnails; for (var i = 0, len = pages.length; i < len; i++) { if (pages[i] >= this.startVisiblePage && pages[i] <= this.endVisiblePage) { - delete this.pagesInfo.pages[pages[i]].Image; - break; + delete this.drawingPages[pages[i]].Image; + oThumbnails && oThumbnails._repaintPage(i); } } @@ -764,7 +774,7 @@ _t.startTimer(); } - if (_t.isStarted && _t.pageDetector && _t.IsOpenFormsInProgress == false) { + if (_t.isStarted && _t.pageDetector && !oDoc.fontLoader.isWorking() && _t.IsOpenFormsInProgress == false) { _t.sendEvent("onFileOpened"); _t.sendEvent("onPagesCount", _t.file.pages.length); @@ -803,6 +813,8 @@ if (this.drawingPages[0]) { this.navigateToPage(0, 0, this.scrollMaxX / 2); } + + this.doc.TurnOnHistory(); }; this.open = function(data, password) @@ -829,8 +841,7 @@ if (this.file && this.file.isNeedPassword()) { window["AscViewer"].setFilePassword(this.file, password); - this.Api.currentPassword = password; - this.Api.currentPasswordOld = this.Api.currentPassword; + this.Api.asc_setCurrentPassword(password); } } else @@ -869,15 +880,18 @@ this.Api.sendEvent("asc_onDocumentPassword", "" !== this.savedPassword); } + this.afterOpen(); + }; + + this.afterOpen = function() + { this.pagesInfo.setCount(this.file.pages.length); let oDoc = this.getPDFDoc(); - oDoc.GetDrawingDocument().m_lPagesCount = this.file.pages.length; - + oDoc.GetDrawingDocument().m_lPagesCount = this.file.pages.length; + for (let i = 0; i < this.file.pages.length; i++) { this.DrawingObjects.mergeDrawings(i); } - - this.checkLoadCMap(); let standardFonts = this.file.nativeFile["getInteractiveFormsStandardFonts"](); let embeddedFonts = this.file.nativeFile["getInteractiveFormsEmbeddedFonts"](); @@ -895,7 +909,9 @@ g_fontApplication.GetFontInfo = g_fontApplication.GetFontInfoWithEmbed; g_fontApplication.LoadFont = g_fontApplication.LoadFontWithEmbed; - + + this.checkLoadCMap(); + AscCommon.g_oIdCounter.Set_Load(false); // to do возможно не тут стоит выключать флаг if (this.file && !this.file.isNeedPassword() && !this.file.isValid()) @@ -903,6 +919,7 @@ this.Api.WordControl.m_oOverlayApi = this.overlay; }; + this.close = function() { if (!this.file || !this.file.isValid()) @@ -1436,8 +1453,7 @@ } this.IsOpenAnnotsInProgress = false; - - oDoc.UpdateApIdx(nMaxIdx); + oDoc.UpdateMaxApIdx(nMaxIdx); }; this.setZoom = function(value, isDisablePaint) { @@ -1619,17 +1635,31 @@ let oDoc = this.getPDFDoc(); let oActiveObj = oDoc.GetActiveObject(); + let nPage = oActiveObj ? oActiveObj.GetPage() : undefined; + this.checkVisiblePages(); // выход из активного объекта если сместились на другую страницу - if (this.disabledPaintOnScroll == false && oActiveObj && this.pageDetector.pages.map(function(item) { - return item.num; - }).includes(oActiveObj.GetPage()) == false) { + if (oActiveObj && !(nPage >= this.startVisiblePage && nPage <= this.endVisiblePage)) { oDoc.BlurActiveObject(); } this.m_oScrollVerApi.scrollToY(posY); this.m_oScrollHorApi.scrollToX(posX); }; + this.scrollToXY = function(posY, posX) { + let oDoc = this.getPDFDoc(); + let oActiveObj = oDoc.GetActiveObject(); + let nPage = oActiveObj ? oActiveObj.GetPage() : undefined; + + this.m_oScrollVerApi.scrollToY(posY); + this.m_oScrollVerApi.scrollToX(posX); + + this.checkVisiblePages(); + // выход из активного объекта если сместились на другую страницу + if (oActiveObj && !(nPage >= this.startVisiblePage && nPage <= this.endVisiblePage)) { + oDoc.BlurActiveObject(); + } + }; this.navigateToLink = function(link) { @@ -1642,7 +1672,7 @@ let oTr = this.getPDFDoc().pagesTransform[nPage].invert; let oPos = oTr.TransformPoint(0, link["dest"]); - this.navigateToPage(nPage, this.scrollY + oPos.y, this.scrollX + oPos.x); + this.scrollToXY(this.scrollY + oPos.y, this.scrollX + oPos.x); } else { @@ -1790,19 +1820,15 @@ } return null; }; - this.getPageFieldByMouse = function(bGetHidden) + this.getPageFieldByCoords = function(x, y, pageIndex, bGetHidden) { - var pageObject = this.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); - if (!pageObject) - return null; - - var pageFields = this.pagesInfo.pages[pageObject.index]; + var pageFields = this.pagesInfo.pages[pageIndex]; if (pageFields.fields) { for (var i = 0, len = pageFields.fields.length; i < len; i++) { - if (pageObject.x >= pageFields.fields[i]._origRect[0] && pageObject.x <= pageFields.fields[i]._origRect[2] && - pageObject.y >= pageFields.fields[i]._origRect[1] && pageObject.y <= pageFields.fields[i]._origRect[3]) { + if (x >= pageFields.fields[i]._origRect[0] && x <= pageFields.fields[i]._origRect[2] && + y >= pageFields.fields[i]._origRect[1] && y <= pageFields.fields[i]._origRect[3]) { if (bGetHidden) { return pageFields.fields[i]; } @@ -1814,6 +1840,14 @@ } return null; }; + this.getPageFieldByMouse = function(bGetHidden) + { + var pageObject = this.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); + if (!pageObject) + return null; + + return this.getPageFieldByCoords(pageObject.x, pageObject.y, pageObject.index, bGetHidden); + }; this.getPageAnnotByMouse = function(bGetHidden) { let oDoc = this.getPDFDoc(); @@ -1830,17 +1864,18 @@ // если есть заселекченная shape base аннотация под мышкой, залезающая на другую страницу if (oDoc.mouseDownAnnot) { + let oController = oDoc.GetController(); let oActiveAnnot = oDoc.mouseDownAnnot; + if (oActiveAnnot.IsShapeBased()) { let nAnnotPage = oActiveAnnot.GetPage(); - if (pageObjectMM.index != nAnnotPage) { - let oPt = AscPDF.ConvertCoordsToAnotherPage(pageObjectMM.x, pageObjectMM.y, pageObjectMM.index, nAnnotPage); + let oPt = pageObjectMM.index != nAnnotPage ? AscPDF.ConvertCoordsToAnotherPage(pageObjectMM.x, pageObjectMM.y, pageObjectMM.index, nAnnotPage) : pageObjectMM; + let oGeomEditSelection = oController.selection.geometrySelection ? oController.selection.geometrySelection : null; - if (oActiveAnnot == oDoc.GetShapeBasedAnnotById(this.DrawingObjects.getGraphicInfoUnderCursor(nAnnotPage, oPt.x, oPt.y).objectId)) { - if (oActiveAnnot.hitToHandles(oPt.x, oPt.y) != -1) { - return oActiveAnnot; - } + if (oActiveAnnot == oDoc.GetShapeBasedAnnotById(this.DrawingObjects.getGraphicInfoUnderCursor(nAnnotPage, oPt.x, oPt.y).objectId)) { + if (oActiveAnnot.hitToHandles(oPt.x, oPt.y) != -1 || (oGeomEditSelection && oGeomEditSelection.hitToGeometryEdit(oPt.x, oPt.y))) { + return oActiveAnnot; } } } @@ -1945,6 +1980,19 @@ this.onMouseDown = function(e) { + Asc.editor.checkLastWork(); + + if (oThis.touchManager && oThis.touchManager.checkTouchEvent(e)) + { + oThis.touchManager.startTouchingInProcess(); + let res = oThis.touchManager.mainOnTouchStart(e); + oThis.touchManager.stopTouchingInProcess(); + return res; + } + + if (oThis.touchManager) + oThis.touchManager.checkMouseFocus(e); + oThis.isFocusOnThumbnails = false; AscCommon.stopEvent(e); @@ -1952,38 +2000,29 @@ oDoc.HideComments(); var mouseButton = AscCommon.getMouseButton(e || {}); - - e.CtrlKey = e.ctrlKey; - e.ShiftKey = e.shiftKey; - e.Button = mouseButton; + AscCommon.check_MouseDownEvent(e, true); if (mouseButton !== 0) { if (2 === mouseButton) { - var posX = e.pageX || e.clientX; - var posY = e.pageY || e.clientY; - - var x = posX - oThis.x; - var y = posY - oThis.y; + var x = AscCommon.global_mouseEvent.X - oThis.x; + var y = AscCommon.global_mouseEvent.Y - oThis.y; var isInSelection = false; if (oThis.overlay.m_oContext) { - var pixX = AscCommon.AscBrowser.convertToRetinaValue(x, true); - var pixY = AscCommon.AscBrowser.convertToRetinaValue(y, true); - - if (pixX >= 0 && pixY >= 0 && pixX < oThis.canvasOverlay.width && pixY < oThis.canvasOverlay.height) + let pageCoords = oThis.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); + let isSelectionUse = oThis.file.isSelectionUse(); + let selection = oThis.file.getSelection(); + let pageSelQuads = pageCoords ? selection.quads.find(function(pageQuads) { + return pageQuads.page == pageCoords.index; + }) : null; + + if (oThis.canSelectPageText() && pageCoords && isSelectionUse && AscPDF.IsInQuads(pageSelQuads.quads, pageCoords.x, pageCoords.y)) { - var pixelOnOverlay = oThis.overlay.m_oContext.getImageData(pixX, pixY, 1, 1); - if (Math.abs(pixelOnOverlay.data[0] - 51) < 10 && - Math.abs(pixelOnOverlay.data[1] - 102) < 10 && - Math.abs(pixelOnOverlay.data[2] - 204) < 10 && - oThis.canSelectPageText()) - { - isInSelection = true; - } + isInSelection = true; } } @@ -2002,7 +2041,7 @@ else { oThis.removeSelection(); - oDoc.OnMouseDown(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, e); + oDoc.OnMouseDown(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, AscCommon.global_mouseEvent); oThis.Api.sync_ContextMenuCallback({ Type: Asc.c_oAscPdfContextMenuTypes.Common, X_abs: x, @@ -2018,15 +2057,13 @@ if (!oThis.file || !oThis.file.isValid()) return; - AscCommon.check_MouseDownEvent(e, true); global_mouseEvent.LockMouse(); oThis.mouseDownCoords.X = AscCommon.global_mouseEvent.X; oThis.mouseDownCoords.Y = AscCommon.global_mouseEvent.Y; oThis.isMouseMoveBetweenDownUp = false; - e.ClickCount = global_mouseEvent.ClickCount; - oDoc.OnMouseDown(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, e); + oDoc.OnMouseDown(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, AscCommon.global_mouseEvent); }; this.onMouseDownEpsilon = function(e) @@ -2049,7 +2086,7 @@ } var pageObjectLogic = this.getPageByCoords2(oThis.mouseDownCoords.X, oThis.mouseDownCoords.Y); - if (e.shiftKey) { + if (e.ShiftKey) { this.file.Selection.IsSelection = true; this.file.onMouseMove(pageObjectLogic.index, pageObjectLogic.x, pageObjectLogic.y); } @@ -2065,6 +2102,16 @@ this.onMouseUp = function(e) { + Asc.editor.checkLastWork(); + + if (oThis.touchManager && oThis.touchManager.checkTouchEvent(e)) + { + oThis.touchManager.startTouchingInProcess(); + let res = oThis.touchManager.mainOnTouchEnd(e); + oThis.touchManager.stopTouchingInProcess(); + return res; + } + oThis.isFocusOnThumbnails = false; //if (e && e.preventDefault) // e.preventDefault(); @@ -2098,9 +2145,7 @@ AscCommon.check_MouseUpEvent(e); let oDoc = oThis.getPDFDoc(); - e.Type = AscCommon.g_mouse_event_type_up; - e.ClickCount = global_mouseEvent.ClickCount; - oDoc.OnMouseUp(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, e); + oDoc.OnMouseUp(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, AscCommon.global_mouseEvent); if (oThis.canSelectPageText()) { @@ -2133,12 +2178,21 @@ this.onMouseMove = function(e) { + Asc.editor.checkLastWork(); + + if (oThis.touchManager && oThis.touchManager.checkTouchEvent(e)) + { + oThis.touchManager.startTouchingInProcess(); + let res = oThis.touchManager.mainOnTouchMove(e); + oThis.touchManager.stopTouchingInProcess(); + return res; + } + if (!oThis.file || !oThis.file.isValid()) return; let oDoc = oThis.getPDFDoc(); AscCommon.check_MouseMoveEvent(e); - e.IsLocked = oThis.isMouseDown; if (e && e.preventDefault) e.preventDefault(); @@ -2173,7 +2227,7 @@ else { if (false == editor.isEmbedVersion) - oDoc.OnMouseMove(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, e); + oDoc.OnMouseMove(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, AscCommon.global_mouseEvent); } return; } @@ -2207,12 +2261,12 @@ else { if (false == editor.isEmbedVersion) - oDoc.OnMouseMove(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, e); + oDoc.OnMouseMove(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, AscCommon.global_mouseEvent); } } else { - oThis.getPDFDoc().OnMouseMove(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, e); + oThis.getPDFDoc().OnMouseMove(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y, AscCommon.global_mouseEvent); } } return false; @@ -2509,6 +2563,8 @@ this.onUpdateOverlay = function() { + Asc.editor.checkLastWork(); + if (!this.overlay || this.scheduledRepaintTimer != null) return; @@ -2639,6 +2695,14 @@ } ctx.globalAlpha = 1.0; + + for (let i = this.startVisiblePage; i <= this.endVisiblePage; i++) + { + oDrDoc.AutoShapesTrack.SetCurrentPage(i, true); + ctx.globalAlpha = 1.0; + oDoc.Draw_ForeingSelection(i); + oDoc.CollaborativeEditing.Update_ForeignSelectedObjectsLabelsPositions(i); + } }; this.checkVisiblePages = function() @@ -2694,12 +2758,15 @@ oDrDoc.m_lDrawingEnd = lEndPage; this.startVisiblePage = lStartPage; this.endVisiblePage = lEndPage; + + this.updatePageDetector(); }; this._paint = function() { let oDoc = this.getPDFDoc(); - - if (oDoc.fontLoader.isWorking() || this.IsOpenFormsInProgress) { + Asc.editor.checkLastWork(); + + if (oDoc.fontLoader.isWorking() || this.IsOpenFormsInProgress || AscCommon.CollaborativeEditing.waitingImagesForLoad) { this.paint(); return; } @@ -2733,8 +2800,6 @@ ctx.strokeStyle = AscCommon.GlobalSkin.PageOutline; ctx.lineWidth = lineW; - this.pageDetector = new CCurrentPageDetector(this.canvas.width, this.canvas.height); - let isStretchPaint = this.isStretchPaint(); if (this.isClearPages) isStretchPaint = false; @@ -2751,35 +2816,43 @@ let x = ((xCenter * AscCommon.AscBrowser.retinaPixelRatio) >> 0) - (w >> 1); let y = ((page.Y - yPos) * AscCommon.AscBrowser.retinaPixelRatio) >> 0; + let needNewPage = this.isClearPages || !page.Image || (page.Image && ((page.Image.requestWidth !== w) || (page.Image.requestHeight !== h))); + if (!isStretchPaint) { + let isClearAttack = this.isClearPages; + if (page.Image && page.createdInStretchMode === true) + { + isClearAttack = true; + delete page.createdInStretchMode; + } + if (!this.file.cacheManager) { - if (this.isClearPages || (page.Image && ((page.Image.requestWidth !== w) || (page.Image.requestHeight !== h)))) + if (isClearAttack || (page.Image && ((page.Image.requestWidth !== w) || (page.Image.requestHeight !== h)))) delete page.Image; } else { - if (this.isClearPages || (page.Image && ((page.Image.requestWidth < w) || (page.Image.requestHeight < h)))) + if (isClearAttack || (page.Image && ((page.Image.requestWidth < w) || (page.Image.requestHeight < h)))) { if (this.file.cacheManager) this.file.cacheManager.unlock(page.Image); delete page.Image; } - } } let pageColor = this.Api.getPageBackgroundColor(); let oImageToDraw = null; + let bRedrawAnnotsOnMainLayer = false; if (!this.file.pages[i].isConvertedToShapes) { if (!page.Image && !isStretchPaint) { - page.Image = this.file.getPage(i, w, h, undefined, (pageColor.R << 16) | (pageColor.G << 8) | pageColor.B); + page.Image = this.file.getPage(i, w, h, undefined, (pageColor.R << 16) | (pageColor.G << 8) | pageColor.B); if (this.bCachedMarkupAnnnots) { - this._drawMarkupAnnotsOnCtx(i, page.Image.getContext("2d")); - oImageToDraw = page.Image; + bRedrawAnnotsOnMainLayer = true; } // нельзя кэшировать с вотермарком - так как есть поворот @@ -2787,58 +2860,76 @@ // this.Api.watermarkDraw.Draw(page.Image.getContext("2d"), w, h); } } - else { - page.Image = null; + + if (null == page.Image) { + page.Image = document.createElement('canvas'); + page.Image.width = w; + page.Image.height = h; + page.Image.requestWidth = w; + page.Image.requestHeight = h; + let tmpPageCtx = page.Image.getContext('2d'); + tmpPageCtx.fillStyle = "rgba(" + pageColor.R + "," + pageColor.G + "," + pageColor.B + ",1)"; + tmpPageCtx.fillRect(0, 0, w, h); + + if (isStretchPaint) + page.createdInStretchMode = true; + } + + if (bRedrawAnnotsOnMainLayer) { + let ctx = page.Image.getContext("2d"); + this._drawDrawingsOnCtx(i, ctx); + this._drawMarkupAnnotsOnCtx(i, ctx); + oImageToDraw = page.Image; } - + if (!this.bCachedMarkupAnnnots) { - let markupCanvas = page.TmpImage ? page.TmpImage : document.createElement('canvas'); - let markupContext = markupCanvas.getContext('2d'); - - page.TmpImage = markupCanvas; - if (page.Image) { - markupCanvas.width = page.Image.width; - markupCanvas.height = page.Image.height; - } - else { - markupCanvas.width = w; - markupCanvas.height = h; - } + let pageInfo = this.pagesInfo.pages[i]; + let aMarkups = pageInfo.annots.filter(function(annot) { + return annot.IsTextMarkup(); + }); - if (page.Image) { - markupContext.drawImage(page.Image, 0, 0); + let hasMarkups = aMarkups.length != 0; + let hasDrawings = pageInfo.drawings.length != 0; + + if (false == hasDrawings && false == hasMarkups) { + oImageToDraw = page.Image; } else { - markupContext.fillStyle = "rgba(" + pageColor.R + "," + pageColor.G + "," + pageColor.B + ",1)"; - markupContext.fillRect(0, 0, w, h); - } + let tmpPageImage = page.TmpImage ? page.TmpImage : document.createElement('canvas'); + let tmpPageCtx = tmpPageImage.getContext('2d'); + + if (!page.TmpImage) { + page.TmpImage = tmpPageImage; + } - this._drawMarkupAnnotsOnCtx(i, markupContext); - oImageToDraw = markupCanvas; - } + if (pageInfo.needRedrawDrawings || pageInfo.needRedrawMarkups || (needNewPage && !isStretchPaint)) { + if (page.Image) { + tmpPageImage.width = page.Image.width; + tmpPageImage.height = page.Image.height; + } + else { + tmpPageImage.width = w; + tmpPageImage.height = h; + } + + tmpPageCtx.drawImage(page.Image, 0, 0); + + this._drawDrawingsOnCtx(i, tmpPageCtx); + this._drawMarkupAnnotsOnCtx(i, tmpPageCtx); - if (oImageToDraw) - { - this.blitPageToCtx(ctx, oImageToDraw, i); - this.pagesInfo.setPainted(i); - } - else - { - let pageColor = this.Api.getPageBackgroundColor(); - ctx.fillStyle = "rgba(" + pageColor.R + "," + pageColor.G + "," + pageColor.B + ",1)"; - ctx.fillRect(x, y, w, h); + pageInfo.needRedrawDrawings = false; + pageInfo.needRedrawMarkups = false; + } + + oImageToDraw = tmpPageImage; + } } + + this.blitPageToCtx(ctx, oImageToDraw, i); + this.pagesInfo.setPainted(i); if (this.Api.watermarkDraw) this.Api.watermarkDraw.Draw(ctx, x, y, w, h); - - if (this.isLandscapePage(i)) { - let x = ((xCenter * AscCommon.AscBrowser.retinaPixelRatio) >> 0) - (h >> 1); - this.pageDetector.addPage(i, x, y, h, w); - } - else { - this.pageDetector.addPage(i, x, y, w, h); - } } this.isClearPages = false; @@ -2852,7 +2943,6 @@ oDoc.BlurActiveObject(); } - this._paintDrawings(); this._paintAnnots(); this._paintForms(); this._paintFormsHighlight(); @@ -2862,6 +2952,34 @@ // Обязательно делаем в конце, т.к. во время отрисовки происходит пересчет this._checkTargetUpdate(); }; + this.updatePageDetector = function() { + this.pageDetector = new CCurrentPageDetector(this.canvas.width, this.canvas.height); + + let yPos = this.scrollY >> 0; + let xCenter = this.width >> 1; + if (this.documentWidth > this.width) + xCenter = (this.documentWidth >> 1) - (this.scrollX) >> 0; + + for (let i = this.startVisiblePage; i <= this.endVisiblePage; i++) + { + let page = this.drawingPages[i]; + if (!page) + break; + + let w = AscCommon.AscBrowser.convertToRetinaValue(page.W, true); + let h = AscCommon.AscBrowser.convertToRetinaValue(page.H, true); + let x = ((xCenter * AscCommon.AscBrowser.retinaPixelRatio) >> 0) - (w >> 1); + let y = ((page.Y - yPos) * AscCommon.AscBrowser.retinaPixelRatio) >> 0; + + if (this.isLandscapePage(i)) { + let x = ((xCenter * AscCommon.AscBrowser.retinaPixelRatio) >> 0) - (h >> 1); + this.pageDetector.addPage(i, x, y, h, w); + } + else { + this.pageDetector.addPage(i, x, y, w, h); + } + } + }; this.isStretchPaint = function() { return this.Api.WordControl.NoneRepaintPages; }; @@ -2876,6 +2994,8 @@ pdfDocument.CheckTargetUpdate(drawingDocument.UpdateTargetCheck); drawingDocument.UpdateTargetCheck = false; drawingDocument.UpdateTargetFromPaint = false; + pdfDocument.CollaborativeEditing.Update_ForeignCursorsPositions(); + drawingDocument.Collaborative_TargetsUpdate(true); drawingDocument.CheckTargetShow(); drawingDocument.CheckTrackTable(); }; @@ -2934,16 +3054,14 @@ const landscapeAngles = [90, -90, 270, -270]; return landscapeAngles.includes(angle); }; - this.Get_PageLimits = function() { - let W = this.width; - let H = this.height; - let scaleCoef = this.zoom * AscCommon.AscBrowser.retinaPixelRatio; + this.Get_PageLimits = function(nPage) { + let oPage = this.file.pages[nPage]; return { X: 0, Y: 0, - XLimit: W * g_dKoef_pix_to_mm / scaleCoef, - YLimit: H * g_dKoef_pix_to_mm / scaleCoef + XLimit: oPage.W * g_dKoef_pt_to_mm, + YLimit: oPage.H * g_dKoef_pt_to_mm } }; this.SelectNextForm = function() @@ -2985,9 +3103,9 @@ var isCommands = false; for (var i = this.startVisiblePage; i <= this.endVisiblePage; i++) { - if (null == this.file.pages[i].text) + if (null === this.file.pages[i].text) { - this.file.pages[i].text = this.file.getText(i); + this.file.pages[i].text = this.file.getText(this.file.pages[i].originIndex); isCommands = true; } } @@ -3002,9 +3120,8 @@ this.pagesInfo.countTextPages++; continue; } - - this.file.pages[this.pagesInfo.countTextPages].text = this.file.getText(this.pagesInfo.countTextPages); - if (null != this.file.pages[this.pagesInfo.countTextPages].text) + this.file.pages[this.pagesInfo.countTextPages].text = this.file.getText(this.file.pages[this.pagesInfo.countTextPages].originIndex); + if (null !== this.file.pages[this.pagesInfo.countTextPages].text) { this.pagesInfo.countTextPages++; isCommands = true; @@ -3037,30 +3154,30 @@ if (this.startVisiblePage < 0 || this.endVisiblePage < 0 || !this.pageDetector) return null; - let x = xInp - this.x; - let y = yInp - this.y; - - var pageCoords = null; - var pageIndex = 0; - for (pageIndex = this.startVisiblePage; pageIndex <= this.endVisiblePage; pageIndex++) - { - pageCoords = this.pageDetector.pages[pageIndex - this.startVisiblePage]; - if (y >= pageCoords.y / AscCommon.AscBrowser.retinaPixelRatio && y <= (pageCoords.y + pageCoords.h) / AscCommon.AscBrowser.retinaPixelRatio) - break; - } - if (pageIndex > this.endVisiblePage) - pageIndex = this.endVisiblePage; + let x = xInp - this.x; + let y = yInp - this.y; + + var pageCoords = null; + var pageIndex = 0; + for (pageIndex = this.startVisiblePage; pageIndex <= this.endVisiblePage; pageIndex++) + { + pageCoords = this.pageDetector.pages[pageIndex - this.startVisiblePage]; + if (y >= pageCoords.y / AscCommon.AscBrowser.retinaPixelRatio && y <= (pageCoords.y + pageCoords.h) / AscCommon.AscBrowser.retinaPixelRatio) + break; + } + if (pageIndex > this.endVisiblePage) + pageIndex = this.endVisiblePage; - let oDoc = this.getPDFDoc(); + let oDoc = this.getPDFDoc(); - let _x = oDoc.pagesTransform[pageIndex].normal.TransformPointX(x, y); - let _y = oDoc.pagesTransform[pageIndex].normal.TransformPointY(x, y); + let _x = oDoc.pagesTransform[pageIndex].normal.TransformPointX(x, y); + let _y = oDoc.pagesTransform[pageIndex].normal.TransformPointY(x, y); - return { - index : pageIndex, - x : _x, - y : _y - }; + return { + index : pageIndex, + x : _x, + y : _y + }; }; this.getPageByCoords2 = function(xInp, yInp) @@ -3084,10 +3201,8 @@ let oDoc = this.getPDFDoc(); - let pixToMM = (25.4 / this.file.pages[pageIndex].Dpi); - - let _x = oDoc.pagesTransform[pageIndex].normal.TransformPointX(x, y) * pixToMM; - let _y = oDoc.pagesTransform[pageIndex].normal.TransformPointY(x, y) * pixToMM; + let _x = oDoc.pagesTransform[pageIndex].normal.TransformPointX(x, y) * g_dKoef_pt_to_mm; + let _y = oDoc.pagesTransform[pageIndex].normal.TransformPointY(x, y) * g_dKoef_pt_to_mm; return { index : pageIndex, @@ -3095,39 +3210,6 @@ y : _y }; }; - this.getPageByCoords3 = function(xInp, yInp) - { - if (this.startVisiblePage < 0 || this.endVisiblePage < 0) - return null; - - var x = xInp * AscCommon.AscBrowser.retinaPixelRatio; - var y = yInp * AscCommon.AscBrowser.retinaPixelRatio; - - let pageIndex = this.endVisiblePage; - let page = this.pageDetector.pages[pageIndex - this.startVisiblePage]; - for (var i = this.startVisiblePage; i <= this.endVisiblePage; i++) - { - let _page = this.pageDetector.pages[i - this.startVisiblePage]; - if (!_page) - continue; - - if (_page.y + _page.h + this.betweenPages * AscCommon.AscBrowser.retinaPixelRatio > y) - { - pageIndex = i; - page = _page; - break; - } - } - - if (!page) - return null; - - return { - index : pageIndex, - x : this.file.pages[pageIndex].W * (x - page.x) / page.w, - y : this.file.pages[pageIndex].H * (y - page.y) / page.h - }; - }; this.getViewportPosition = function() { @@ -3142,14 +3224,14 @@ let oDoc = Asc.editor.getPDFDoc(); let oFile = Asc.editor.getDocumentRenderer().file; - let oTr = oDoc.pagesTransform[pageIndex].normal.CreateDublicate(); + let oTr = oDoc.GetPageTransform(pageIndex, true).normal; let inchC = (25.4 / oFile.pages[pageIndex].Dpi); AscCommon.global_MatrixTransformer.ScaleAppend(oTr, inchC, inchC); oTr.Invert(); let oPt = oTr.TransformPoint(x, y); - return ( {x : oPt.x, y : oPt.y, w : oDoc.GetPageWidthMM(pageIndex), h: oDoc.GetPageHeightMM(pageIndex)} ); + return ( {x : oPt.x, y : oPt.y, w : oDoc.GetPageWidthMM(pageIndex) / inchC , h: oDoc.GetPageHeightMM(pageIndex) / inchC} ); }; this.getPageLikeDetector = function(pageIndex) @@ -3300,17 +3382,33 @@ { var bRetValue = false; let oDoc = this.getPDFDoc(); + let oDrDoc = oDoc.GetDrawingDocument(); if (e.KeyCode === 8) // BackSpace { - oDoc.Remove(-1, e.CtrlKey == true); + oDoc.DoAction(function() { + oDoc.Remove(-1, e.CtrlKey == true); + }, AscDFH.historydescription_Document_BackSpaceButton); } else if (e.KeyCode === 9) // Tab { window.event.preventDefault(); + let oActiveObj = oDoc.GetActiveObject(); if (oActiveObj && oActiveObj.IsDrawing()) { - oDoc.AddToParagraph(new AscWord.CRunTab()); + if (oActiveObj.IsGraphicFrame()) { + oActiveObj.MoveCursorToCell(e.ShiftKey ? false : true); + if (false == AscCommon.History.Is_LastPointEmpty()) { + oActiveObj.SetNeedRecalc(true); + } + + oDrDoc.TargetStart(true); + oDoc.SetNeedUpdateTarget(true); + this._checkTargetUpdate(); + } + else { + oDoc.AddToParagraph(new AscWord.CRunTab()); + } } else { if (true == e.ShiftKey) @@ -3473,7 +3571,9 @@ } else if (e.KeyCode === 46) // Delete { - oDoc.Remove(1, e.CtrlKey == true); + oDoc.DoAction(function() { + oDoc.Remove(1, e.CtrlKey == true); + }, AscDFH.historydescription_Document_DeleteButton); } else if ( e.KeyCode == 65 && true === e.CtrlKey ) // Ctrl + A { @@ -3486,7 +3586,7 @@ } else if ( e.KeyCode == 83 && true === e.CtrlKey ) // Ctrl + S + ... { - // nothing + this.Api.asc_Save(false); bRetValue = true; } else if ( e.KeyCode == 89 && true === e.CtrlKey ) // Ctrl + Y @@ -3584,7 +3684,10 @@ let value = this.file.pages[pageNum].Rotate; return (undefined === value) ? 0 : value; }; - + this.getDrawingPageScale = function(pageNum) + { + return 96 / this.file.pages[pageNum].Dpi; + }; this.setOffsetTop = function(offset) { this.offsetTop = offset; @@ -3703,11 +3806,9 @@ } let oThis = this; - oDoc.checkFonts(Object.keys(fontMap), function() { + return oDoc.checkFonts(Object.keys(fontMap), function() { oThis.scheduleRepaint(); }); - - return !oDoc.fontLoader.isWorking(); }; CHtmlPage.prototype._paintAnnots = function() { @@ -3771,37 +3872,32 @@ }; CHtmlPage.prototype._drawMarkupAnnotsOnCtx = function(nPage, ctx) { - let aAnnots = this.pagesInfo.pages[nPage].annots != null ? this.pagesInfo.pages[nPage].annots : null; - if (!aAnnots) + let aAnnots = this.pagesInfo.pages[nPage].annots.filter(function(annot) { + return annot.IsTextMarkup(); + }); + + if (aAnnots.length == 0) return; let page = this.drawingPages[nPage]; if (!page) return; - // if (this.pagesInfo.pages[nPage].needRedrawMarkups) - if (true) - { - let widthPx = ctx.canvas.width; - let heightPx = ctx.canvas.height; - - let oGraphicsPDF = new AscPDF.CPDFGraphics(); - oGraphicsPDF.Init(ctx, widthPx, heightPx, this.file.getPageWidth(nPage) , this.file.getPageHeight(nPage)); - oGraphicsPDF.SetCurPage(nPage); - - if (this.pagesInfo.pages[nPage].annots != null) { - this.pagesInfo.pages[nPage].annots.forEach(function(annot) { - if (annot.IsTextMarkup()) { - if (false == annot.IsNeedDrawFromStream()) - annot.Draw(oGraphicsPDF); - else - annot.DrawFromStream(oGraphicsPDF); - } - }); + let widthPx = ctx.canvas.width; + let heightPx = ctx.canvas.height; + + let oGraphicsPDF = new AscPDF.CPDFGraphics(); + oGraphicsPDF.Init(ctx, widthPx, heightPx, this.file.getPageWidth(nPage) , this.file.getPageHeight(nPage)); + oGraphicsPDF.SetCurPage(nPage); + + aAnnots.forEach(function(annot) { + if (false == annot.IsNeedDrawFromStream()) { + annot.Draw(oGraphicsPDF); } - - this.pagesInfo.pages[nPage].needRedrawMarkups = false; - } + else { + annot.DrawFromStream(oGraphicsPDF); + } + }); }; CHtmlPage.prototype._paintDrawings = function() { const ctx = this.canvas.getContext('2d'); @@ -4029,11 +4125,41 @@ let ctx = image.getContext('2d'); - this._drawMarkupAnnotsOnCtx(nPage, ctx); this._drawDrawingsOnCtx(nPage, ctx, true); + this._drawMarkupAnnotsOnCtx(nPage, ctx); this._drawAnnotsOnCtx(nPage, ctx, true); this._drawFieldsOnCtx(nPage, ctx, true); + return ctx.canvas; + }; + CHtmlPage.prototype.GetPrintPage = function(nPage, nWidthPx, nHeightPx) { + let oFile = this.file; + let image = !oFile.pages[nPage].isConvertedToShapes ? this.file.getPage(nPage, nWidthPx, nHeightPx, undefined, 0xFFFFFF) : null; + + if (!image) { + let pageColor = this.Api.getPageBackgroundColor(); + + image = document.createElement('canvas'); + + let ctx = image.getContext('2d'); + + image.width = nWidthPx; + image.height = nHeightPx; + + ctx.fillStyle = "rgba(" + pageColor.R + "," + pageColor.G + "," + pageColor.B + ",1)"; + ctx.fillRect(0, 0, nWidthPx, nHeightPx); + } + + image.requestWidth = nWidthPx; + image.requestHeight = nHeightPx; + + let ctx = image.getContext('2d'); + + this._drawDrawingsOnCtx(nPage, ctx); + this._drawMarkupAnnotsOnCtx(nPage, ctx); + this._drawAnnotsOnCtx(nPage, ctx); + this._drawFieldsOnCtx(nPage, ctx); + return ctx.canvas; }; CHtmlPage.prototype._drawAnnotsOnCtx = function(nPage, ctx, isThumbnails) { @@ -4047,7 +4173,7 @@ oGraphicsPDF.SetCurPage(nPage); let oGraphicsWord = new AscCommon.CGraphics(); - oGraphicsWord.init(ctx, widthPx, heightPx, oDoc.GetPageWidthMM(nPage) , oDoc.GetPageHeightMM(nPage)); + oGraphicsWord.init(ctx, widthPx, heightPx, oDoc.GetPageWidthMM(nPage), oDoc.GetPageHeightMM(nPage)); oGraphicsWord.m_oFontManager = AscCommon.g_fontManager; oGraphicsWord.setEndGlobalAlphaColor(255, 255, 255); oGraphicsWord.transform(1, 0, 0, 1, 0, 0); @@ -4089,6 +4215,11 @@ } }; CHtmlPage.prototype._drawDrawingsOnCtx = function(nPage, ctx, isThumbnails) { + let aDrawings = this.pagesInfo.pages[nPage].drawings; + if (aDrawings.length == 0) { + return; + } + let oDoc = this.getPDFDoc(); let widthPx = ctx.canvas.width; let heightPx = ctx.canvas.height; @@ -4100,7 +4231,6 @@ oGraphicsWord.setEndGlobalAlphaColor(255, 255, 255); oGraphicsWord.transform(1, 0, 0, 1, 0, 0); - let aDrawings = this.pagesInfo.pages[nPage].drawings; aDrawings.forEach(function(drawing) { drawing.Draw(oGraphicsWord); }); @@ -4122,6 +4252,10 @@ let oControl = editor.WordControl.m_oBody.Controls.find(function(control) { return control.HtmlElement.id == "id_main"; }); + + if (!oControl) + oControl = {}; + oControl.HtmlElement = document.getElementById("id_main"); this.id_main = oControl.HtmlElement; @@ -4135,6 +4269,7 @@ this.canvasForms = document.getElementById("id_forms"); this.Api.WordControl.m_oDrawingDocument.TargetHtmlElement = document.getElementById('id_target_cursor'); + this.Api.WordControl.m_oDrawingDocument.m_oWordControl.m_oMainView = oControl; this.overlay = new AscCommon.COverlay(); this.overlay.m_oControl = { HtmlElement : this.canvasOverlay }; @@ -4148,6 +4283,9 @@ }; CHtmlPage.prototype.resize = function(isDisablePaint) { + if (window["NATIVE_EDITOR_ENJINE"]) + return; + AscCommon.AscBrowser.checkZoom(); let oThis = this; @@ -4158,7 +4296,7 @@ oEditorPage.checkBodySize(); oEditorPage.m_oBody.Resize(oEditorPage.Width * g_dKoef_pix_to_mm, oEditorPage.Height * g_dKoef_pix_to_mm, this); - var rect = this.canvas.getBoundingClientRect(); + var rect = AscCommon.UI.getBoundingClientRect(this.canvas); this.x = rect.left; this.y = rect.top; @@ -4263,7 +4401,7 @@ if (this.scrollY >= this.scrollMaxY) this.scrollY = this.scrollMaxY; - if (this.zoomCoordinate && this.isDocumentContentReady) + if (this.zoomCoordinate && this.isDocumentContentReady && Asc.editor.isDocumentLoadComplete) { var newPoint = this.ConvertCoordsToCursor(this.zoomCoordinate.x, this.zoomCoordinate.y, this.zoomCoordinate.index); // oldsize используется чтобы при смене ориентации экрана был небольшой скролл @@ -4309,20 +4447,13 @@ this.isRepaint = true; } }; - CHtmlPage.prototype.InitDocRenderer = function(oMemory) { - this.m_oDocRenderer = new AscCommon.CDocumentRenderer(); - this.m_oDocRenderer.InitPicker(AscCommon.g_oTextMeasurer.m_oManager); - this.m_oDocRenderer.Memory = oMemory; - - return this.m_oDocRenderer; - }; - CHtmlPage.prototype.InitAnnotsRenderer = function(oMemory, nPage) { + CHtmlPage.prototype.InitDocRenderer = function(oMemory, nPage) { let oDoc = this.getPDFDoc(); let oRenderer = new AscCommon.CDocumentRenderer(); oRenderer.InitPicker(AscCommon.g_oTextMeasurer.m_oManager); oRenderer.Memory = oMemory; - oMemory.AnnotsRenderer = oRenderer; + oMemory.docRenderer = oRenderer; oMemory.context = new AscCommon.XmlWriterContext(AscCommon.c_oEditorId.Presentation); oMemory.context.docType = AscFormat.XMLWRITER_DOC_TYPE_PPTX; @@ -4357,6 +4488,8 @@ // по информации аннотаций определим какие были удалены let oDoc = this.getPDFDoc(); + oDoc.BlurActiveObject(); + let aAnnotsInfo = oFile.nativeFile["getAnnotationsInfo"](); let aDeleted = []; aAnnotsInfo.forEach(function(oInfo) { @@ -4382,20 +4515,29 @@ // add - 1 // delete - 2 - function writePageInfo(nPage, oPageInfo, nRotAngle, bClearPage, nType) { + function writePageInfo(nType, curIndex, originIndex) { if (!oMemory) { oMemory = new AscCommon.CMemory(true); oMemory.Init(memoryInitSize); oMemory.images = []; + + // compiled changes signature + oMemory.WriteByte("%".charCodeAt(0)); + oMemory.WriteByte("P".charCodeAt(0)); + oMemory.WriteByte("D".charCodeAt(0)); + oMemory.WriteByte("F".charCodeAt(0)); } let nStartPos = oMemory.GetCurPosition(); oMemory.Skip(4); oMemory.WriteByte(nType); - oMemory.WriteLong(nPage); + oMemory.WriteLong(originIndex != undefined ? originIndex : curIndex); if (nType == 0 || nType == 1) { + let nRotAngle = this.getPageRotate(curIndex); + let bClearPage = !!oFile.pages[curIndex].isConvertedToShapes; + oMemory.WriteByte(AscCommon.CommandType.ctPageRotate); oMemory.WriteLong(8); oMemory.WriteLong(nRotAngle); @@ -4410,10 +4552,10 @@ // add page if (nType == 1) { oMemory.WriteByte(AscCommon.CommandType.ctPageWidth); - oMemory.WriteDouble(oFile.pages[nPage].W); + oMemory.WriteDouble(oFile.pages[curIndex].W); oMemory.WriteByte(AscCommon.CommandType.ctPageHeight); - oMemory.WriteDouble(oFile.pages[nPage].H); + oMemory.WriteDouble(oFile.pages[curIndex].H); } } @@ -4426,11 +4568,12 @@ oMemory.Seek(nEndPos); return; } + + let oPageInfo = aPagesInfo[curIndex]; + let oRenderer = this.InitDocRenderer(oMemory, curIndex); // annots if (oPageInfo.annots) { - this.InitAnnotsRenderer(oMemory, nPage); - for (let nAnnot = 0; nAnnot < oPageInfo.annots.length; nAnnot++) { oPageInfo.annots[nAnnot].IsChanged() && oPageInfo.annots[nAnnot].WriteToBinary(oMemory); oPageInfo.annots[nAnnot].GetReplies().forEach(function(reply) { @@ -4439,11 +4582,11 @@ } } - if (aDeleted[nPage]) { - for (let j = 0; j < aDeleted[nPage].length; j++) { + if (aDeleted[originIndex]) { + for (let j = 0; j < aDeleted[originIndex].length; j++) { oMemory.WriteByte(AscCommon.CommandType.ctAnnotFieldDelete); oMemory.WriteLong(8); - oMemory.WriteLong(aDeleted[nPage][j]); + oMemory.WriteLong(aDeleted[originIndex][j]); } } @@ -4457,47 +4600,23 @@ // drawings if (oPageInfo.drawings && oPageInfo.drawings.length != 0) { - let oRenderer = this.InitDocRenderer(oMemory); - // let jsZlibToSave = new AscCommon.ZLib(); - // jsZlibToSave.create(); - oMemory.context = new AscCommon.XmlWriterContext(AscCommon.c_oEditorId.Presentation); - // let oFilePart = new AscCommon.openXml.OpenXmlPackage(jsZlibToSave, oMemory.context); - // oFilePart.addPart(AscCommon.openXml.Types.image); - for (let nDr = 0; nDr < oPageInfo.drawings.length; nDr++) { let oDrawing = oPageInfo.drawings[nDr]; if (oDrawing.IsGraphicFrame()) { let sTableStyleId = oDrawing.graphicObject.GetTableStyle(); if (sTableStyleId) { - let sStyleGUID = oDoc.globalTableStyles.Get(sTableStyleId).GetStyleId(); - - if (sTableStyleId != undefined) { - oMemory.context.tableStylesIdToGuid[sTableStyleId] = sStyleGUID; + let oStyle = oDoc.globalTableStyles.Get(sTableStyleId); + if (oStyle) { + let sStyleGUID = oStyle.GetStyleId(); + if (sTableStyleId != undefined) { + oMemory.context.tableStylesIdToGuid[sTableStyleId] = sStyleGUID; + } } } } } - - oMemory.context.docType = AscFormat.XMLWRITER_DOC_TYPE_PPTX; - - // graphics - oRenderer.m_arrayPages[oRenderer.m_arrayPages.length] = new AscCommon.CMetafile(oDoc.GetPageWidthMM(nPage), oDoc.GetPageHeightMM(nPage)); - oRenderer.m_lPagesCount = oRenderer.m_arrayPages.length; - oRenderer.m_arrayPages[oRenderer.m_lPagesCount - 1].Memory = oRenderer.Memory; - oRenderer.m_arrayPages[oRenderer.m_lPagesCount - 1].StartOffset = oRenderer.Memory.pos; - oRenderer.m_arrayPages[oRenderer.m_lPagesCount - 1].VectorMemoryForPrint = oRenderer.VectorMemoryForPrint; - oRenderer.m_arrayPages[oRenderer.m_lPagesCount - 1].FontPicker = oRenderer.FontPicker; - - if (oRenderer.FontPicker) - oRenderer.m_arrayPages[oRenderer.m_lPagesCount - 1].FontPicker.Metafile = oRenderer.m_arrayPages[oRenderer.m_lPagesCount - 1]; - - var _page = oRenderer.m_arrayPages[oRenderer.m_lPagesCount - 1]; - oRenderer.m_oPen = _page.m_oPen; - oRenderer.m_oBrush = _page.m_oBrush; - oRenderer.m_oTransform = _page.m_oTransform; - for (let nShape = 0; nShape < oPageInfo.drawings.length; nShape++) { let oTextShape = oPageInfo.drawings[nShape]; @@ -4572,7 +4691,7 @@ return operations; } - function checkNeedEditPage(nPage) { + function checkNeedEditOrigPage(nPage) { let aDrawings = aPagesInfo[nPage].drawings; let aAnnots = aPagesInfo[nPage].annots; let aForms = aPagesInfo[nPage].fields; @@ -4586,9 +4705,8 @@ // сначала edit исходных страниц for (let i = 0; i < aPagesInfo.length; i++) { - if (checkNeedEditPage(i)) { - let needClearPage = oFile.pages[i].isConvertedToShapes; - writePageInfo.call(this, oFile.pages[i].originIndex, aPagesInfo[i], this.getPageRotate(i), needClearPage, 0); + if (checkNeedEditOrigPage(i)) { + writePageInfo.call(this, 0, i, oFile.pages[i].originIndex); } } @@ -4597,11 +4715,7 @@ // пишем по порядку for (let i = 0; i < aOrder.length; i++) { - let nPage = aOrder[i][0]; - let nType = aOrder[i][1]; - - let needClearPage = oFile.pages[nPage].isConvertedToShapes; - writePageInfo.call(this, nPage, aPagesInfo[nPage], this.getPageRotate(nPage), needClearPage, nType); + writePageInfo.call(this, aOrder[i][1], aOrder[i][0], undefined); } if (oMemory) { diff --git a/pdf/test/base.js b/pdf/test/base.js index 53da343512..47874c88ff 100644 --- a/pdf/test/base.js +++ b/pdf/test/base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/pdf/test/bookmarks.js b/pdf/test/bookmarks.js index 4afcc94c6b..e5a15a8b2c 100644 --- a/pdf/test/bookmarks.js +++ b/pdf/test/bookmarks.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/Drawing/DrawingDocument.js b/slide/Drawing/DrawingDocument.js index 4527f2e753..823ef98979 100644 --- a/slide/Drawing/DrawingDocument.js +++ b/slide/Drawing/DrawingDocument.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -51,6 +51,11 @@ var FOCUS_OBJECT_MAIN = 1; var FOCUS_OBJECT_NOTES = 2; var FOCUS_OBJECT_ANIM_PANE = 3; +AscCommon.FOCUS_OBJECT_THUMBNAILS = FOCUS_OBJECT_THUMBNAILS; +AscCommon.FOCUS_OBJECT_MAIN = FOCUS_OBJECT_MAIN; +AscCommon.FOCUS_OBJECT_NOTES = FOCUS_OBJECT_NOTES; +AscCommon.FOCUS_OBJECT_ANIM_PANE = FOCUS_OBJECT_ANIM_PANE; + var COMMENT_WIDTH = 18; var COMMENT_HEIGHT = 16; @@ -764,6 +769,9 @@ function CDrawingDocument() // transitions this.TransitionSlide = new CTransitionAnimation(null); + //all images on start + this.LoadingImages = []; + // notes this.isDrawingNotes = false; @@ -1154,6 +1162,21 @@ function CDrawingDocument() oThis.TargetHtmlElement.style.display = isShow ? "block" : "none"; }; + this.isDrawTargetGlass = function() + { + let isActive = true; + let api = oThis.m_oWordControl.m_oApi; + + if (api.isBlurEditor) + isActive = false; + else if (api.isViewMode || api.isRestrictionView()) + isActive = false; + if (-1 === this.m_lTimerTargetId) + isActive = false; + + return isActive; + }; + this.TargetShow = function() { this.TargetShowNeedFlag = true; @@ -1884,67 +1907,36 @@ function CDrawingDocument() this.CheckGuiControlColors = function(bIsAttack) { - var _slide = null; - var _layout = null; - var _master = null; - - // потом реализовать проверку на то, что нужно ли посылать - if (-1 != this.SlideCurrent) - { - _slide = this.m_oWordControl.m_oLogicDocument.Slides[this.SlideCurrent]; - if(!_slide){ - return; - } - if( this.m_oWordControl.m_oLogicDocument.FocusOnNotes){ - if(!_slide.notes){ - return; - } - _master = _slide.notes.Master; - } - else{ - _layout = _slide.Layout; - _master = _layout.Master; - } - } - else if ((0 < this.m_oWordControl.m_oLogicDocument.slideMasters.length) && - (0 < this.m_oWordControl.m_oLogicDocument.slideMasters[0].sldLayoutLst.length)) - { - _layout = this.m_oWordControl.m_oLogicDocument.slideMasters[0].sldLayoutLst[0]; - _master = this.m_oWordControl.m_oLogicDocument.slideMasters[0]; - } - else - { - return; - } + let oPresentation = this.m_oWordControl.m_oLogicDocument; + let oTheme = oPresentation.Get_Theme(); + let oClrMap = oPresentation.Get_ColorMap(); + if(!oTheme || !oClrMap) return; - var arr_colors = new Array(10); + let arr_colors = new Array(10); - var _theme = _master.Theme; - var rgba = {R : 0, G : 0, B : 0, A : 255}; + let rgba = {R : 0, G : 0, B : 0, A : 255}; // bg1,tx1,bg2,tx2,accent1 - accent6 - var array_colors_types = [6, 15, 7, 16, 0, 1, 2, 3, 4, 5]; - var _count = array_colors_types.length; - - var color = new AscFormat.CUniColor(); + let array_colors_types = [6, 15, 7, 16, 0, 1, 2, 3, 4, 5]; + let _count = array_colors_types.length; + let color = new AscFormat.CUniColor(); color.color = new AscFormat.CSchemeColor(); - for (var i = 0; i < _count; ++i) + for (let i = 0; i < _count; ++i) { color.color.id = array_colors_types[i]; - color.Calculate(_theme, _slide, _layout, _master, rgba); - - var _rgba = color.RGBA; + color.Calculate(oTheme, null, null, null, rgba, oClrMap); + let _rgba = color.RGBA; arr_colors[i] = new Asc.asc_CColor(_rgba.R, _rgba.G, _rgba.B); arr_colors[i].setColorSchemeId(color.color.id); } // теперь проверим - var bIsSend = false; + let bIsSend = false; if (this.GuiControlColorsMap != null) { - for (var i = 0; i < _count; ++i) + for (let i = 0; i < _count; ++i) { - var _color1 = this.GuiControlColorsMap[i]; - var _color2 = arr_colors[i]; + let _color1 = this.GuiControlColorsMap[i]; + let _color2 = arr_colors[i]; if ((_color1.r != _color2.r) || (_color1.g != _color2.g) || (_color1.b != _color2.b)) { @@ -1961,7 +1953,7 @@ function CDrawingDocument() if (bIsSend || (bIsAttack === true)) { - for (var i = 0; i < _count; ++i) + for (let i = 0; i < _count; ++i) { this.GuiControlColorsMap[i] = arr_colors[i]; } @@ -2022,35 +2014,27 @@ function CDrawingDocument() this.m_oWordControl.m_oApi.sync_SendThemeColors(_ret_array, standart_colors); }; - this.DrawImageTextureFillShape = function(url) + this.DrawGuiImage = function (oTexture, oCtx, sUrl, sLastDrawingUrl) { - if (this.GuiCanvasFillTexture == null) - { - this.InitGuiCanvasShape(this.GuiCanvasFillTextureParentId); - } - if (this.GuiCanvasFillTexture == null || this.GuiCanvasFillTextureCtx == null || url == this.LastDrawingUrl) - return; + let _width = oTexture.width; + let _height = oTexture.height; - this.LastDrawingUrl = url; - var _width = this.GuiCanvasFillTexture.width; - var _height = this.GuiCanvasFillTexture.height; + oCtx.clearRect(0, 0, _width, _height); - this.GuiCanvasFillTextureCtx.clearRect(0, 0, _width, _height); - - if (null == this.LastDrawingUrl) + if (!sLastDrawingUrl) return; - var _img = this.m_oWordControl.m_oApi.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(this.LastDrawingUrl)]; + let _img = Asc.editor.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(sUrl)]; if (_img != undefined && _img.Image != null && _img.Status != ImageLoadStatus.Loading) { - var _x = 0; - var _y = 0; - var _w = Math.max(_img.Image.width, 1); - var _h = Math.max(_img.Image.height, 1); + let _x = 0; + let _y = 0; + let _w = Math.max(_img.Image.width, 1); + let _h = Math.max(_img.Image.height, 1); - var dAspect1 = _width / _height; - var dAspect2 = _w / _h; + let dAspect1 = _width / _height; + let dAspect2 = _w / _h; _w = _width; _h = _height; @@ -2065,30 +2049,57 @@ function CDrawingDocument() _y = (_height - _h) / 2; } - this.GuiCanvasFillTextureCtx.drawImage(_img.Image, _x, _y, _w, _h); + oCtx.drawImage(_img.Image, _x, _y, _w, _h); } else { - this.GuiCanvasFillTextureCtx.lineWidth = 1; + if(_img.Status === ImageLoadStatus.Loading) + { + + } + else + { + oCtx.lineWidth = 1; + + oCtx.beginPath(); + oCtx.moveTo(0, 0); + oCtx.lineTo(_width, _height); + oCtx.moveTo(_width, 0); + oCtx.lineTo(0, _height); + oCtx.strokeStyle = "#FF0000"; + oCtx.stroke(); - this.GuiCanvasFillTextureCtx.beginPath(); - this.GuiCanvasFillTextureCtx.moveTo(0, 0); - this.GuiCanvasFillTextureCtx.lineTo(_width, _height); - this.GuiCanvasFillTextureCtx.moveTo(_width, 0); - this.GuiCanvasFillTextureCtx.lineTo(0, _height); - this.GuiCanvasFillTextureCtx.strokeStyle = "#FF0000"; - this.GuiCanvasFillTextureCtx.stroke(); + oCtx.beginPath(); + oCtx.moveTo(0, 0); + oCtx.lineTo(_width, 0); + oCtx.lineTo(_width, _height); + oCtx.lineTo(0, _height); + oCtx.closePath(); - this.GuiCanvasFillTextureCtx.beginPath(); - this.GuiCanvasFillTextureCtx.moveTo(0, 0); - this.GuiCanvasFillTextureCtx.lineTo(_width, 0); - this.GuiCanvasFillTextureCtx.lineTo(_width, _height); - this.GuiCanvasFillTextureCtx.lineTo(0, _height); - this.GuiCanvasFillTextureCtx.closePath(); + oCtx.strokeStyle = "#000000"; + oCtx.stroke(); + oCtx.beginPath(); + } + } + }; + + this.DrawImageTextureFillShape = function(url) + { + if (this.GuiCanvasFillTexture == null) + { + this.InitGuiCanvasShape(this.GuiCanvasFillTextureParentId); + } + + if (this.GuiCanvasFillTexture == null || this.GuiCanvasFillTextureCtx == null || url == this.LastDrawingUrl) + return; - this.GuiCanvasFillTextureCtx.strokeStyle = "#000000"; - this.GuiCanvasFillTextureCtx.stroke(); - this.GuiCanvasFillTextureCtx.beginPath(); + this.LastDrawingUrl = url; + this.DrawGuiImage(this.GuiCanvasFillTexture, this.GuiCanvasFillTextureCtx, url, this.LastDrawingUrl); + if(url) + { + let _img = Asc.editor.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(url)]; + if (!(_img && _img.Image && _img.Status !== ImageLoadStatus.Loading)) + this.LastDrawingUrl = ""; } }; @@ -2103,62 +2114,12 @@ function CDrawingDocument() return; this.LastDrawingUrlSlide = url; - var _width = this.GuiCanvasFillTextureSlide.width; - var _height = this.GuiCanvasFillTextureSlide.height; - - this.GuiCanvasFillTextureCtxSlide.clearRect(0, 0, _width, _height); - - if (null == this.LastDrawingUrlSlide) - return; - - var _img = this.m_oWordControl.m_oApi.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(this.LastDrawingUrlSlide)]; - if (_img != undefined && _img.Image != null && _img.Status != ImageLoadStatus.Loading) + this.DrawGuiImage(this.GuiCanvasFillTextureSlide, this.GuiCanvasFillTextureCtxSlide, url, this.LastDrawingUrlSlide); + if(url) { - var _x = 0; - var _y = 0; - var _w = Math.max(_img.Image.width, 1); - var _h = Math.max(_img.Image.height, 1); - - var dAspect1 = _width / _height; - var dAspect2 = _w / _h; - - _w = _width; - _h = _height; - if (dAspect1 >= dAspect2) - { - _w = dAspect2 * _height; - _x = (_width - _w) / 2; - } - else - { - _h = _w / dAspect2; - _y = (_height - _h) / 2; - } - - this.GuiCanvasFillTextureCtxSlide.drawImage(_img.Image, _x, _y, _w, _h); - } - else - { - this.GuiCanvasFillTextureCtxSlide.lineWidth = 1; - - this.GuiCanvasFillTextureCtxSlide.beginPath(); - this.GuiCanvasFillTextureCtxSlide.moveTo(0, 0); - this.GuiCanvasFillTextureCtxSlide.lineTo(_width, _height); - this.GuiCanvasFillTextureCtxSlide.moveTo(_width, 0); - this.GuiCanvasFillTextureCtxSlide.lineTo(0, _height); - this.GuiCanvasFillTextureCtxSlide.strokeStyle = "#FF0000"; - this.GuiCanvasFillTextureCtxSlide.stroke(); - - this.GuiCanvasFillTextureCtxSlide.beginPath(); - this.GuiCanvasFillTextureCtxSlide.moveTo(0, 0); - this.GuiCanvasFillTextureCtxSlide.lineTo(_width, 0); - this.GuiCanvasFillTextureCtxSlide.lineTo(_width, _height); - this.GuiCanvasFillTextureCtxSlide.lineTo(0, _height); - this.GuiCanvasFillTextureCtxSlide.closePath(); - - this.GuiCanvasFillTextureCtxSlide.strokeStyle = "#000000"; - this.GuiCanvasFillTextureCtxSlide.stroke(); - this.GuiCanvasFillTextureCtxSlide.beginPath(); + let _img = Asc.editor.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(url)]; + if (!(_img && _img.Image && _img.Status !== ImageLoadStatus.Loading)) + this.LastDrawingUrlSlide = ""; } }; @@ -2173,62 +2134,13 @@ function CDrawingDocument() return; this.LastDrawingUrlTextArt = url; - var _width = this.GuiCanvasFillTextureTextArt.width; - var _height = this.GuiCanvasFillTextureTextArt.height; - - this.GuiCanvasFillTextureCtxTextArt.clearRect(0, 0, _width, _height); - - if (null == this.LastDrawingUrlTextArt) - return; - var _img = this.m_oWordControl.m_oApi.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(this.LastDrawingUrlTextArt)]; - if (_img != undefined && _img.Image != null && _img.Status != ImageLoadStatus.Loading) + this.DrawGuiImage(this.GuiCanvasFillTextureTextArt, this.GuiCanvasFillTextureCtxTextArt, url, this.LastDrawingUrlTextArt); + if(url) { - var _x = 0; - var _y = 0; - var _w = Math.max(_img.Image.width, 1); - var _h = Math.max(_img.Image.height, 1); - - var dAspect1 = _width / _height; - var dAspect2 = _w / _h; - - _w = _width; - _h = _height; - if (dAspect1 >= dAspect2) - { - _w = dAspect2 * _height; - _x = (_width - _w) / 2; - } - else - { - _h = _w / dAspect2; - _y = (_height - _h) / 2; - } - - this.GuiCanvasFillTextureCtxTextArt.drawImage(_img.Image, _x, _y, _w, _h); - } - else - { - this.GuiCanvasFillTextureCtxTextArt.lineWidth = 1; - - this.GuiCanvasFillTextureCtxTextArt.beginPath(); - this.GuiCanvasFillTextureCtxTextArt.moveTo(0, 0); - this.GuiCanvasFillTextureCtxTextArt.lineTo(_width, _height); - this.GuiCanvasFillTextureCtxTextArt.moveTo(_width, 0); - this.GuiCanvasFillTextureCtxTextArt.lineTo(0, _height); - this.GuiCanvasFillTextureCtxTextArt.strokeStyle = "#FF0000"; - this.GuiCanvasFillTextureCtxTextArt.stroke(); - - this.GuiCanvasFillTextureCtxTextArt.beginPath(); - this.GuiCanvasFillTextureCtxTextArt.moveTo(0, 0); - this.GuiCanvasFillTextureCtxTextArt.lineTo(_width, 0); - this.GuiCanvasFillTextureCtxTextArt.lineTo(_width, _height); - this.GuiCanvasFillTextureCtxTextArt.lineTo(0, _height); - this.GuiCanvasFillTextureCtxTextArt.closePath(); - - this.GuiCanvasFillTextureCtxTextArt.strokeStyle = "#000000"; - this.GuiCanvasFillTextureCtxTextArt.stroke(); - this.GuiCanvasFillTextureCtxTextArt.beginPath(); + let _img = Asc.editor.ImageLoader.map_image_index[AscCommon.getFullImageSrc2(url)]; + if (!(_img && _img.Image && _img.Status !== ImageLoadStatus.Loading)) + this.LastDrawingUrlTextArt = ""; } }; @@ -3410,7 +3322,7 @@ function CDrawingDocument() this.isButtonsDisabled = function() { - return Asc.editor.isEyedropperStarted() || Asc.editor.isDrawInkMode() || Asc.editor.isMasterMode(); + return Asc.editor.isEyedropperStarted() || Asc.editor.isDrawInkMode(); }; this.checkMouseUp_Drawing = function (pos) @@ -3443,6 +3355,66 @@ function CDrawingDocument() return this.m_oWordControl.Thumbnails.GetCurSld(); }; + + this.OnStartImagesLoading = function(aImages) + { + this.LoadingImages = [].concat(aImages); + }; + this.CheckRasterImageOnScreen = function (src) + { + const oPresentation = oThis.m_oWordControl.m_oLogicDocument; + let oCurSlide = oPresentation.GetCurrentSlide(); + if(!oCurSlide) + return; + let bRedraw = false; + let sCheckImage = AscCommon.getFullImageSrc2(src); + let nCurIdx = oPresentation.GetSlideIndex(oCurSlide); + if(oCurSlide.checkImageDraw(sCheckImage)) + { + this.OnRecalculateSlide(nCurIdx); + bRedraw = true; + } + //check visible thumbnails + let oWordControl = oThis.m_oWordControl; + let oThumbnails = oWordControl.Thumbnails; + let nStart = oThumbnails.m_lDrawingFirst; + let nEnd = oThumbnails.m_lDrawingEnd; + for(let nIdx = nStart; nIdx <= nEnd; ++nIdx) + { + if(nIdx !== nCurIdx) + { + let oSlide = oPresentation.GetSlide(nIdx); + if(oSlide && oSlide.checkImageDraw(sCheckImage)) + { + this.OnRecalculateSlide(nIdx); + bRedraw = true; + } + } + } + if(bRedraw) + { + this.OnEndRecalculate(); + } + + for(let nImg = 0; nImg < this.LoadingImages.length; ++nImg) + { + if(this.LoadingImages[nImg] === sCheckImage) + { + this.LoadingImages.splice(nImg, 1); + break; + } + } + + if(this.LoadingImages.length === 0) + { + oWordControl.CheckLayouts(true); + oPresentation.SendThemesThumbnails(); + this.DrawImageTextureFillShape(this.LastDrawingUrl); + this.DrawImageTextureFillSlide(this.LastDrawingUrlSlide); + this.DrawImageTextureFillTextArt(this.LastDrawingUrlTextArt); + } + }; + } function CThPage() @@ -4326,9 +4298,11 @@ function CThumbnailsManager() this.initEvents = function() { var control = this.m_oWordControl.m_oThumbnails.HtmlElement; - control.onmousedown = this.onMouseDown; - control.onmousemove = this.onMouseMove; - control.onmouseup = this.onMouseUp; + + AscCommon.addMouseEvent(control, "down", this.onMouseDown); + AscCommon.addMouseEvent(control, "move", this.onMouseMove); + AscCommon.addMouseEvent(control, "up", this.onMouseUp); + control.onmouseout = this.onMouseLeave; control.onmousewheel = this.onMouseWhell; @@ -4336,35 +4310,8 @@ function CThumbnailsManager() { control.addEventListener("DOMMouseScroll", this.onMouseWhell, false); } - - this.initEventsMobileAdvances(); }; - this.initEventsMobileAdvances = function() - { - if (this.m_oWordControl.m_oApi.isMobileVersion) - return; - - var control = this.m_oWordControl.m_oThumbnails.HtmlElement; - control["ontouchstart"] = function(e) - { - oThis.onMouseDown(e.touches[0]); - return false; - }; - control["ontouchmove"] = function(e) - { - oThis.onMouseMove(e.touches[0]); - return false; - }; - control["ontouchend"] = function(e) - { - oThis.onMouseUp(e.changedTouches[0]); - return false; - }; - }; - - - this.GetPageByPos = function(oPos) { return this.thumbnails.GetPage(oPos); @@ -4438,6 +4385,15 @@ function CThumbnailsManager() // events this.onMouseDown = function(e) { + let mobileTouchManager = oThis.m_oWordControl ? oThis.m_oWordControl.MobileTouchManagerThumbnails : null; + if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e)) + { + mobileTouchManager.startTouchingInProcess(); + let res = mobileTouchManager.mainOnTouchStart(e); + mobileTouchManager.stopTouchingInProcess(); + return res; + } + if (oThis.m_oWordControl) { oThis.m_oWordControl.m_oApi.checkInterfaceElementBlur(); @@ -4646,6 +4602,15 @@ function CThumbnailsManager() this.onMouseMove = function(e) { + let mobileTouchManager = oThis.m_oWordControl ? oThis.m_oWordControl.MobileTouchManagerThumbnails : null; + if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e)) + { + mobileTouchManager.startTouchingInProcess(); + let res = mobileTouchManager.mainOnTouchMove(e); + mobileTouchManager.stopTouchingInProcess(); + return res; + } + if (oThis.m_oWordControl) oThis.m_oWordControl.m_oApi.checkLastWork(); @@ -4747,6 +4712,15 @@ function CThumbnailsManager() this.onMouseUp = function(e, bIsWindow) { + let mobileTouchManager = oThis.m_oWordControl ? oThis.m_oWordControl.MobileTouchManagerThumbnails : null; + if (mobileTouchManager && mobileTouchManager.checkTouchEvent(e)) + { + mobileTouchManager.startTouchingInProcess(); + let res = mobileTouchManager.mainOnTouchEnd(e); + mobileTouchManager.stopTouchingInProcess(); + return res; + } + if (oThis.m_oWordControl) oThis.m_oWordControl.m_oApi.checkLastWork(); @@ -4798,7 +4772,7 @@ function CThumbnailsManager() // это трек oThis.MouseDownTrack.SetPosition(oThis.ConvertCoords2(global_mouseEvent.X, global_mouseEvent.Y)); - if (-1 !== oThis.MouseDownTrack.GetPosition() && !oThis.MouseDownTrack.IsSamePos()) + if (-1 !== oThis.MouseDownTrack.GetPosition() && (!oThis.MouseDownTrack.IsSamePos() || AscCommon.global_mouseEvent.CtrlKey)) { // вызвать функцию апи для смены слайдов местами var _array = oThis.GetSelectedArray(); @@ -5911,9 +5885,10 @@ function CThumbnailsManager() this.getSpecialPasteButtonCoords = function(sSlideId) { + if(!sSlideId) return null; let nSlideIdx = null; let oPresentation = this.m_oWordControl.m_oLogicDocument; - let aSlides = oPresentation.Slides; + let aSlides = oPresentation.GetAllSlides(); for (let nSld = 0; nSld < aSlides.length; ++nSld) { if (aSlides[nSld].Get_Id() === sSlideId) @@ -5922,6 +5897,10 @@ function CThumbnailsManager() break; } } + if(nSlideIdx === null) + { + return null; + } let oRect = this.GetThumbnailPagePosition(nSlideIdx); if (!oRect) { @@ -6228,9 +6207,11 @@ function CThumbnailsManager() { let sSelectedIdx = this.GetSelectedArray(); let oMenuPos; + let bIsSlideSelect = false; if(bPosBySelect) { oMenuPos = this.GetThumbnailPagePosition(Math.min.apply(Math, sSelectedIdx)); + bIsSlideSelect = sSelectedIdx.length > 0; } else { @@ -6240,6 +6221,9 @@ function CThumbnailsManager() X: global_mouseEvent.X - ((oThCtrlPos.L * g_dKoef_mm_to_pix) >> 0) - oEditorCtrl.X, Y: global_mouseEvent.Y - ((oThCtrlPos.T * g_dKoef_mm_to_pix) >> 0) - oEditorCtrl.Y }; + + let pos = this.ConvertCoords(global_mouseEvent.X, global_mouseEvent.Y); + bIsSlideSelect = pos.Page !== -1; } if (oMenuPos) { @@ -6261,7 +6245,7 @@ function CThumbnailsManager() Type: nType, X_abs: oMenuPos.X, Y_abs: oMenuPos.Y, - IsSlideSelect: true, + IsSlideSelect: bIsSlideSelect, IsSlideHidden: this.IsSlideHidden(sSelectedIdx) }; editor.sync_ContextMenuCallback(new AscCommonSlide.CContextMenuData(oData)); @@ -6410,6 +6394,10 @@ function CSlideDrawer() if (4 * _need_pix_width * _need_pix_height < this.CONST_MAX_SLIDE_CACHE_SIZE) this.IsCached = true; + // See bug 68871 + if (this.m_oWordControl.m_oApi.isMobileVersion) + this.IsCached = false; + if (this.IsCached) { // кэш используется. теперь нужно решить, нужно ли создать картинку, или управимся и старой diff --git a/slide/Drawing/HtmlPage.js b/slide/Drawing/HtmlPage.js index d6bf201ed8..05bf6d4224 100644 --- a/slide/Drawing/HtmlPage.js +++ b/slide/Drawing/HtmlPage.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -212,6 +212,7 @@ function CEditorPage(api) this.m_oMasterDrawer.DrawingDocument = this.m_oDrawingDocument; this.AllLayouts = []; + this.LastMaster = null; this.m_oDrawingDocument.m_oWordControl = this; this.m_oDrawingDocument.TransitionSlide.HtmlPage = this; @@ -291,7 +292,9 @@ function CEditorPage(api) this.DrawingFreeze = false; this.NoneRepaintPages = false; - this.paintMessageLoop = new AscCommon.PaintMessageLoop(40); + this.paintMessageLoop = new AscCommon.PaintMessageLoop(40, api); + + this.MouseHandObject = null; this.m_oApi = api; var oThis = this; @@ -307,7 +310,7 @@ function CEditorPage(api) if (!element) return; - var pos = element.getBoundingClientRect(); + var pos = AscCommon.UI.getBoundingClientRect(element); if (pos) { if (undefined !== pos.x) @@ -602,6 +605,11 @@ function CEditorPage(api) this.m_oOverlay.Anchor = (g_anchor_left | g_anchor_top | g_anchor_right | g_anchor_bottom); this.m_oMainView.AddControl(this.m_oOverlay); + if (!this.m_oApi.isReporterMode) + { + this.setMouseMode(this.m_oApi.mouseMode); + } + if (this.m_oApi.isReporterMode) { var _documentParent = document.createElement("div"); @@ -901,15 +909,6 @@ function CEditorPage(api) this.m_oDrawingDocument.TargetHtmlElement = document.getElementById('id_target_cursor'); - if (this.m_oApi.isMobileVersion) - { - this.MobileTouchManager = new AscCommon.CMobileTouchManager( { eventsElement : "slides_mobile_element" } ); - this.MobileTouchManager.Init(this.m_oApi); - - this.MobileTouchManagerThumbnails = new AscCommon.CMobileTouchManagerThumbnails( { eventsElement : "slides_mobile_element" } ); - this.MobileTouchManagerThumbnails.Init(this.m_oApi); - } - if (this.IsNotesSupported()) { this.m_oNotes.HtmlElement.style.backgroundColor = GlobalSkin.BackgroundColor; @@ -1510,85 +1509,19 @@ function CEditorPage(api) document.addEventListener && document.addEventListener("transitioncancel", function() { _t.OnResize(false); }, false); } - this.initEventsMobileAdvances(); - this.Thumbnails.initEvents(); }; - this.initEventsMobileAdvances = function() + this.initEventsMobile = function() { - if (!this.m_oApi.isMobileVersion) + if (this.m_oApi.isUseOldMobileVersion()) { - this.m_oEditor.HtmlElement["ontouchstart"] = function (e) - { - oThis.onMouseDown(e.touches[0]); - return false; - }; - this.m_oEditor.HtmlElement["ontouchmove"] = function (e) - { - oThis.onMouseMove(e.touches[0]); - return false; - }; - this.m_oEditor.HtmlElement["ontouchend"] = function (e) - { - oThis.onMouseUp(e.changedTouches[0]); - return false; - }; - - this.m_oOverlay.HtmlElement["ontouchstart"] = function (e) - { - oThis.onMouseDown(e.touches[0]); - return false; - }; - this.m_oOverlay.HtmlElement["ontouchmove"] = function (e) - { - oThis.onMouseMove(e.touches[0]); - return false; - }; - this.m_oOverlay.HtmlElement["ontouchend"] = function (e) - { - oThis.onMouseUp(e.changedTouches[0]); - return false; - }; - - this.m_oTopRuler_horRuler.HtmlElement["ontouchstart"] = function (e) - { - oThis.horRulerMouseDown(e.touches[0]); - return false; - }; - this.m_oTopRuler_horRuler.HtmlElement["ontouchmove"] = function (e) - { - oThis.horRulerMouseMove(e.touches[0]); - return false; - }; - this.m_oTopRuler_horRuler.HtmlElement["ontouchend"] = function (e) - { - oThis.horRulerMouseUp(e.changedTouches[0]); - return false; - }; + this.MobileTouchManager = new AscCommon.CMobileTouchManager( { eventsElement : "slides_mobile_element" } ); + this.MobileTouchManager.Init(this.m_oApi); - this.m_oLeftRuler_vertRuler.HtmlElement["ontouchstart"] = function (e) - { - oThis.verRulerMouseDown(e.touches[0]); - return false; - }; - this.m_oLeftRuler_vertRuler.HtmlElement["ontouchmove"] = function (e) - { - oThis.verRulerMouseMove(e.touches[0]); - return false; - }; - this.m_oLeftRuler_vertRuler.HtmlElement["ontouchend"] = function (e) - { - oThis.verRulerMouseUp(e.changedTouches[0]); - return false; - }; - } - }; + this.MobileTouchManagerThumbnails = new AscCommon.CMobileTouchManagerThumbnails( { eventsElement : "slides_mobile_element" } ); + this.MobileTouchManagerThumbnails.Init(this.m_oApi); - this.initEventsMobile = function() - { - if (this.m_oApi.isMobileVersion) - { this.m_oThumbnailsContainer.HtmlElement.style.zIndex = "11"; this.TextBoxBackground = CreateControl(AscCommon.g_inputContext.HtmlArea.id); @@ -1620,6 +1553,16 @@ function CEditorPage(api) }; } } + else + { + this.MobileTouchManager = new AscCommon.CMobileTouchManager( { eventsElement : "slides_mobile_element", desktopMode : true } ); + this.MobileTouchManager.Init(this.m_oApi); + + this.MobileTouchManager.addClickElement([this.m_oEditor.HtmlElement, this.m_oOverlay.HtmlElement]); + + this.MobileTouchManagerThumbnails = new AscCommon.CMobileTouchManagerThumbnails( { eventsElement : "slides_mobile_element", desktopMode : true } ); + this.MobileTouchManagerThumbnails.Init(this.m_oApi); + } }; // buttons @@ -1710,10 +1653,15 @@ function CEditorPage(api) if (false === oThis.m_oApi.bInit_word_control) return; - var oWordControl = oThis; - if (0 < oWordControl.m_oDrawingDocument.SlideCurrent) + let oWordControl = oThis; + let nCurrentSlide = oWordControl.m_oDrawingDocument.SlideCurrent; + if (oWordControl.DemonstrationManager.Mode) { - oWordControl.GoToPage(oWordControl.m_oDrawingDocument.SlideCurrent - 1); + nCurrentSlide = oWordControl.DemonstrationManager.SlideNum; + } + if (0 < nCurrentSlide) + { + oWordControl.GoToPage(nCurrentSlide - 1); } else { @@ -1725,12 +1673,17 @@ function CEditorPage(api) if (false === oThis.m_oApi.bInit_word_control) return; - var oWordControl = oThis; - + let oWordControl = oThis; + let nCurrentSlide = oWordControl.m_oDrawingDocument.SlideCurrent; let SlidesCount = this.GetSlidesCount(); - if ((SlidesCount - 1) > oWordControl.m_oDrawingDocument.SlideCurrent) + if (oWordControl.DemonstrationManager.Mode) { - oWordControl.GoToPage(oWordControl.m_oDrawingDocument.SlideCurrent + 1); + nCurrentSlide = oWordControl.DemonstrationManager.SlideNum; + SlidesCount = oWordControl.m_oLogicDocument.Slides.length; + } + if ((SlidesCount - 1) > nCurrentSlide) + { + oWordControl.GoToPage(nCurrentSlide + 1); } else if (SlidesCount > 0) { @@ -3310,8 +3263,41 @@ function CEditorPage(api) return oThis.m_oNotesApi.onMouseUp(e); }; + this.setMouseMode = function(mouseMode) + { + switch (mouseMode) + { + case "hand": + { + this.MouseHandObject = { + check : function(_this, _pos) { + return true; + } + }; + break; + } + case "select": + default: + { + this.MouseHandObject = null; + } + + } + }; + this.onMouseDown = function(e) { + if (oThis.MobileTouchManager && oThis.MobileTouchManager.checkTouchEvent(e)) + { + oThis.MobileTouchManager.startTouchingInProcess(); + let res = oThis.MobileTouchManager.mainOnTouchStart(e); + oThis.MobileTouchManager.stopTouchingInProcess(); + return res; + } + + if (oThis.MobileTouchManager) + oThis.MobileTouchManager.checkMouseFocus(e); + oThis.m_oApi.checkInterfaceElementBlur(); oThis.m_oApi.checkLastWork(); @@ -3374,6 +3360,21 @@ function CEditorPage(api) if (pos.Page == -1) return; + if (oWordControl.MouseHandObject) + { + if (oWordControl.MouseHandObject.check(oWordControl, pos)) + { + oWordControl.MouseHandObject.X = global_mouseEvent.X; + oWordControl.MouseHandObject.Y = global_mouseEvent.Y; + oWordControl.MouseHandObject.Active = true; + oWordControl.MouseHandObject.ScrollX = oWordControl.m_dScrollX; + oWordControl.MouseHandObject.ScrollY = oWordControl.m_dScrollY; + oWordControl.m_oDrawingDocument.SetCursorType(AscCommon.Cursors.Grabbing); + AscCommon.stopEvent(e); + return; + } + } + var ret = oWordControl.m_oDrawingDocument.checkMouseDown_Drawing(pos); if (ret === true) { @@ -3412,6 +3413,14 @@ function CEditorPage(api) this.onMouseMove = function(e) { + if (oThis.MobileTouchManager && oThis.MobileTouchManager.checkTouchEvent(e)) + { + oThis.MobileTouchManager.startTouchingInProcess(); + let res = oThis.MobileTouchManager.mainOnTouchMove(e); + oThis.MobileTouchManager.stopTouchingInProcess(); + return res; + } + oThis.m_oApi.checkLastWork(); if (false === oThis.m_oApi.bInit_word_control) @@ -3432,6 +3441,52 @@ function CEditorPage(api) AscCommon.check_MouseMoveEvent(e); var pos = oWordControl.m_oDrawingDocument.ConvertCoordsFromCursor2(global_mouseEvent.X, global_mouseEvent.Y); + + if (oWordControl.MouseHandObject) + { + if (oWordControl.MouseHandObject.Active) + { + oWordControl.m_oDrawingDocument.SetCursorType(AscCommon.Cursors.Grabbing); + + var scrollX = global_mouseEvent.X - oWordControl.MouseHandObject.X; + var scrollY = global_mouseEvent.Y - oWordControl.MouseHandObject.Y; + + if (oWordControl.m_bIsHorScrollVisible) + { + let scrollPosX = oWordControl.MouseHandObject.ScrollX - scrollX; + if (scrollPosX < 0) + scrollPosX = 0; + if (scrollPosX > oWordControl.m_dScrollX_max) + scrollPosX = oWordControl.m_dScrollX_max; + oWordControl.m_oScrollHorApi.scrollToX(scrollPosX); + } + + let scrollPosY = oWordControl.MouseHandObject.ScrollY - scrollY; + if (scrollPosY < oWordControl.SlideScrollMIN) + scrollPosY = oWordControl.SlideScrollMIN; + if (scrollPosY > oWordControl.SlideScrollMAX) + scrollPosY = oWordControl.SlideScrollMAX; + oWordControl.m_oScrollVerApi.scrollToY(scrollPosY); + return; + } + else if (!global_mouseEvent.IsLocked) + { + if (oWordControl.MouseHandObject.check(oWordControl, pos)) + { + oThis.m_oApi.sync_MouseMoveStartCallback(); + oThis.m_oApi.sync_MouseMoveCallback(new AscCommon.CMouseMoveData()); + oThis.m_oApi.sync_MouseMoveEndCallback(); + + oWordControl.m_oDrawingDocument.SetCursorType(AscCommon.Cursors.Grab); + + oWordControl.StartUpdateOverlay(); + oWordControl.OnUpdateOverlay(); + oWordControl.EndUpdateOverlay(); + return; + } + } + } + if (pos.Page == -1) return; @@ -3509,6 +3564,14 @@ function CEditorPage(api) }; this.onMouseUp = function(e, bIsWindow) { + if (oThis.MobileTouchManager && oThis.MobileTouchManager.checkTouchEvent(e)) + { + oThis.MobileTouchManager.startTouchingInProcess(); + let res = oThis.MobileTouchManager.mainOnTouchEnd(e); + oThis.MobileTouchManager.stopTouchingInProcess(); + return res; + } + oThis.m_oApi.checkLastWork(); if (false === oThis.m_oApi.bInit_word_control) @@ -3529,6 +3592,14 @@ function CEditorPage(api) AscCommon.check_MouseUpEvent(e); + if (oWordControl.MouseHandObject && oWordControl.MouseHandObject.Active) + { + oWordControl.MouseHandObject.Active = false; + oWordControl.m_oDrawingDocument.SetCursorType(AscCommon.Cursors.Grab); + oWordControl.m_bIsMouseLock = false; + return; + } + if (oWordControl.m_oDrawingDocument.IsEmptyPresentation) return; @@ -3610,6 +3681,12 @@ function CEditorPage(api) clearInterval(oWordControl.m_oTimerScrollSelect); oWordControl.m_oTimerScrollSelect = -1; } + + if (oWordControl.MouseHandObject && oWordControl.MouseHandObject.Active) + { + oWordControl.MouseHandObject.Active = false; + oWordControl.m_oDrawingDocument.SetCursorType(AscCommon.Cursors.Grab); + } }; this.onMouseUpExternal = function(x, y) @@ -3635,6 +3712,14 @@ function CEditorPage(api) global_mouseEvent.IsPressed = false; + if (oWordControl.MouseHandObject && oWordControl.MouseHandObject.Active) + { + oWordControl.MouseHandObject.Active = false; + oWordControl.m_oDrawingDocument.SetCursorType(AscCommon.Cursors.Grab); + oWordControl.m_bIsMouseLock = false; + return; + } + if (oWordControl.m_oDrawingDocument.IsEmptyPresentation) return; @@ -3750,9 +3835,18 @@ function CEditorPage(api) oThis.m_nVerticalSlideChangeOnScrollEnabled = true; - if (0 != deltaX) + let isSupportDirections2 = false; + if (!isSupportDirections2) + { + if (Math.abs(deltaY) >= Math.abs(deltaX)) + deltaX = 0; + else + deltaY = 0; + } + + if (0 !== deltaX) oThis.m_oScrollHorApi.scrollBy(deltaX, 0, false); - else if (0 != deltaY) + if (0 !== deltaY) oThis.m_oScrollVerApi.scrollBy(0, deltaY, false); oThis.m_nVerticalSlideChangeOnScrollEnabled = false; @@ -4189,6 +4283,12 @@ function CEditorPage(api) drDoc.DrawHorVerAnchor(); + if (this.MobileTouchManager) + { + let targetElement = (this.m_oDrawingDocument && this.m_oDrawingDocument.isDrawTargetGlass()) ? this.m_oDrawingDocument.TargetHtmlElement : null; + this.MobileTouchManager.CheckGlass(overlay, this.m_oEditor.HtmlElement, targetElement); + } + return true; }; @@ -4429,11 +4529,9 @@ function CEditorPage(api) if(window["NATIVE_EDITOR_ENJINE"] === true){ return; } - let master = null; if (this.m_oLogicDocument.IsEmpty()) return; - master = this.m_oLogicDocument.getLayoutsMasterSlide(); let aAllLayouts = this.m_oLogicDocument.GetAllLayouts(); @@ -4480,11 +4578,9 @@ function CEditorPage(api) arr[i].Index = i; let oLt = this.AllLayouts[i]; - let __type = oLt.type; - if (__type !== undefined && __type != null) - arr[i].Type = __type; + arr[i].Type = oLt.getType(); + arr[i].Name = oLt.getName(); - arr[i].Name = oLt.cSld.name; oLtDrawer.WidthMM = this.m_oLogicDocument.GetWidthMM(); oLtDrawer.HeightMM = this.m_oLogicDocument.GetHeightMM(); oLt.ImageBase64 = oLtDrawer.GetThumbnail(oLt); @@ -4497,12 +4593,17 @@ function CEditorPage(api) } this.m_oApi.sendEvent("asc_onUpdateLayout", arr); - let oMaster = this.m_oLogicDocument.GetCurrentMaster(); + } + + let oMaster = this.m_oLogicDocument.GetCurrentMaster(); + if(this.LastMaster !== oMaster) + { if(oMaster) { this.m_oApi.sendEvent("asc_onUpdateThemeIndex", oMaster.getThemeIndex()); this.m_oApi.sendColorThemes(oMaster.Theme); } + this.LastMaster = oMaster; } this.m_oDrawingDocument.CheckGuiControlColors(bIsAttack); }; @@ -4739,8 +4840,7 @@ function CEditorPage(api) if (AscCommon.g_inputContext) AscCommon.g_inputContext.onResize("id_main_parent"); - if (this.m_oApi.isMobileVersion) - this.initEventsMobile(); + this.initEventsMobile(); if (this.m_oApi.isReporterMode) AscCommon.g_inputContext.HtmlArea.style.display = "none"; @@ -5055,6 +5155,7 @@ function CEditorPage(api) this.setNotesEnable(true); this.setAnimPaneEnable(true); this.m_oApi.hideMediaControl(); + this.m_oApi.asc_hideComments(); this.m_oLogicDocument.Recalculate({Drawings:{All:true, Map:{}}}); this.m_oLogicDocument.Document_UpdateInterfaceState(); break; @@ -5074,6 +5175,7 @@ function CEditorPage(api) this.setNotesEnable(false); this.setAnimPaneEnable(false); this.m_oApi.hideMediaControl(); + this.m_oApi.asc_hideComments(); this.m_oLogicDocument.Document_UpdateInterfaceState(); break; } diff --git a/slide/Drawing/MorphTransition.js b/slide/Drawing/MorphTransition.js index 87e413b35d..d8405a9190 100644 --- a/slide/Drawing/MorphTransition.js +++ b/slide/Drawing/MorphTransition.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1168,7 +1168,7 @@ if(!oFadeTexture) { return; } - oFadeTexture.draw(oGraphics, null); + oFadeTexture.drawWithoutSaveState(oGraphics, null); }; function CMorphedAppearObject(oTexturesCache, oDrawing, nRelH, bNoText) { @@ -1228,7 +1228,7 @@ oDrawing.txBody = null; } let sId = oDrawing.GetId(); - let sFormatId = sId; GetDrawingFormatId(oDrawing); + let sFormatId = sId; let oAnimParams = oAnimPlayer.getDrawingParams(sFormatId, true); let oTexture, oBounds, dOpacity; if(!oAnimParams) { @@ -1281,7 +1281,10 @@ this.texture = oTexture1.createTexture(nTextureWidth, nTextureHeight); } const oDrawCanvas = this.texture.canvas; - let oCtx = oDrawCanvas.getContext("2d"); + if(!this.texture.context) { + this.texture.context = oDrawCanvas.getContext("2d"); + } + let oCtx = this.texture.context; oCtx.clearRect(0, 0, oDrawCanvas.width, oDrawCanvas.height); let sOldOperation = oCtx.globalCompositeOperation; oCtx.globalCompositeOperation = "lighter"; @@ -1744,9 +1747,8 @@ return aRet; }; CSlideMorphEffect.prototype.morph = function(t) { - let dTime_ = t*t*t - 2*t*t + 2*t; for(let nIdx = 0; nIdx < this.morphObjects.length; ++nIdx) { - this.morphObjects[nIdx].morph(dTime_); + this.morphObjects[nIdx].morph(t); } this.morphObjects.sort(function (a, b) { return a.relHeight - b.relHeight; diff --git a/slide/Drawing/ThemeLoader.js b/slide/Drawing/ThemeLoader.js index 4e3473856b..27de222920 100644 --- a/slide/Drawing/ThemeLoader.js +++ b/slide/Drawing/ThemeLoader.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -114,7 +114,7 @@ function CThemeLoader() // применяется тема из стандартных. if (null != theme_load_info) { - if (indexTheme >= 0 && theme_load_info.Master.sldLayoutLst.length === 0) + if (indexTheme >= 0) { // мега схема. нужно переоткрыть бинарник, чтобы все открылось с историей this.IsReloadBinaryThemeEditorNow = true; @@ -255,7 +255,7 @@ function CThemeLoader() this.Api.ImageLoader.LoadDocumentImages(this.themes_info_editor[this.CurrentLoadThemeIndex].ImageMap); }; - this.asyncImagesStartLoaded = function() + this.asyncImagesStartLoaded = function(aImages) { // началась загрузка картинок }; diff --git a/slide/Drawing/Transitions.js b/slide/Drawing/Transitions.js index 8063569ba1..607fc4574d 100644 --- a/slide/Drawing/Transitions.js +++ b/slide/Drawing/Transitions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -463,9 +463,7 @@ function CTransitionAnimation(htmlpage) _ctx2.clearRect(oThis.Rect.x, oThis.Rect.y, oThis.Rect.w, oThis.Rect.h); } - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + let _part = oThis._getPart(); if (oThis.Param == c_oAscSlideTransitionParams.Fade_Smoothly) { @@ -648,9 +646,8 @@ function CTransitionAnimation(htmlpage) var _xSrcO = 0; var _ySrcO = 0; - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + + let _part = oThis._getPart(); var _offX = (_wDst * (1 - _part)) >> 0; var _offY = (_hDst * (1 - _part)) >> 0; @@ -791,9 +788,8 @@ function CTransitionAnimation(htmlpage) var _wDst = oThis.Rect.w; var _hDst = oThis.Rect.h; - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + + let _part = oThis._getPart(); var _ctx2 = null; if (oThis.DemonstrationObject == null) @@ -1315,9 +1311,8 @@ function CTransitionAnimation(htmlpage) var _wDst = oThis.Rect.w; var _hDst = oThis.Rect.h; - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + + let _part = oThis._getPart(); var _ctx2 = null; if (oThis.DemonstrationObject == null) @@ -1703,9 +1698,8 @@ function CTransitionAnimation(htmlpage) var _xSrc = 0; var _ySrc = 0; - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + + let _part = oThis._getPart(); var _offX = (_wDst * _part) >> 0; var _offY = (_hDst * _part) >> 0; @@ -1855,9 +1849,8 @@ function CTransitionAnimation(htmlpage) var _xSrc = 0; var _ySrc = 0; - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + + let _part = oThis._getPart(); var _offX = (_wDst * (1 - _part)) >> 0; var _offY = (_hDst * (1 - _part)) >> 0; @@ -2004,9 +1997,8 @@ function CTransitionAnimation(htmlpage) var _wDst = oThis.Rect.w; var _hDst = oThis.Rect.h; - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + + let _part = oThis._getPart(); var _anglePart1 = Math.atan(_wDst / _hDst); var _anglePart2 = Math.PI / 2 - _anglePart1; @@ -2437,9 +2429,8 @@ function CTransitionAnimation(htmlpage) var _wDst = oThis.Rect.w; var _hDst = oThis.Rect.h; - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + + let _part = oThis._getPart(); switch (oThis.Param) { @@ -2680,9 +2671,8 @@ function CTransitionAnimation(htmlpage) - var _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; - if (oThis.IsBackward) - _part = 1 - _part; + + let _part = oThis._getPart(); if(!oThis.Morph) @@ -2715,6 +2705,21 @@ function CTransitionAnimation(htmlpage) oThis.TimerId = __nextFrame(oThis._startMorph); }; + + this._easeFunction = function(t) + { + let dT = (1 - t); + return 1 - dT*dT*dT; + }; + + this._getPart = function() + { + let _part = (oThis.CurrentTime - oThis.StartTime) / oThis.Duration; + _part = oThis._easeFunction(_part); + if (oThis.IsBackward) + _part = 1 - _part; + return _part; + }; } function CDemonstrationManager(htmlpage) @@ -2933,6 +2938,24 @@ function CDemonstrationManager(htmlpage) this.waitReporterObject = null; }; + this.wrapKeyboard = function() + { + if (this.HtmlPage.m_oApi.isReporterMode) + return; + + var _t = this; + this._funcWrapKeyboard = function(e) { + if (document.activeElement === document.body) + _t.onKeyDown(e); + }; + window.addEventListener("keydown", this._funcWrapKeyboard, false); + }; + this.unwrapKeyboard = function() + { + if (this._funcWrapKeyboard) + window.removeEventListener("keydown", this._funcWrapKeyboard); + }; + this.Start = function(main_div_id, start_slide_num, is_play_mode, is_no_fullscreen) { this.StartSlideNum = start_slide_num; @@ -2968,6 +2991,8 @@ function CDemonstrationManager(htmlpage) this.Canvas.onmouseup = this.onMouseUp; this.Canvas.onmouseleave = this.onMouseLeave; + this.wrapKeyboard(); + this.Canvas.onmousewheel = this.onMouseWhell; if (this.Canvas.addEventListener) this.Canvas.addEventListener("DOMMouseScroll", this.onMouseWhell, false); @@ -2981,7 +3006,7 @@ function CDemonstrationManager(htmlpage) this.SlideIndexes[0] = -1; this.SlideIndexes[1] = -1; - this.GoToSlideShortcutStack = []; + this.GoToSlideShortcutStack = []; this.StartSlide(true, true); }; @@ -3081,6 +3106,15 @@ function CDemonstrationManager(htmlpage) oSlide.getAnimationPlayer().pause(); } }; + this.IsPausedAnimation = function(nSlideNum) + { + var oSlide = this.GetSlide(nSlideNum); + if(oSlide) + { + return oSlide.getAnimationPlayer().isPaused(); + } + return false; + }; this.OnAnimMainSeqFinished = function(nSlideNum) { @@ -3191,8 +3225,9 @@ function CDemonstrationManager(htmlpage) this.DemonstrationDiv.appendChild(oThis.Overlay); } - oThis.Transition.Type = _transition.TransitionType; - oThis.Transition.Param = _transition.TransitionOption; + let oTypeAndOption = _transition.getTypeAndOption(); + oThis.Transition.Type = oTypeAndOption.Type; + oThis.Transition.Param = oTypeAndOption.Option; oThis.Transition.Duration = _transition.TransitionDuration; oThis.PrepareTransition(is_first, is_backward); @@ -3369,6 +3404,7 @@ function CDemonstrationManager(htmlpage) var ctx1 = this.HtmlPage.m_oEditor.HtmlElement.getContext('2d'); ctx1.setTransform(1, 0, 0, 1, 0, 0); + this.unwrapKeyboard(); this.HtmlPage.m_oApi.sync_endDemonstration(); if (true) @@ -3650,19 +3686,20 @@ function CDemonstrationManager(htmlpage) this.Play = function(isNoSendFormReporter) { this.IsPlayMode = true; - if (-1 == this.CheckSlideDuration) + if(this.IsPausedAnimation(this.SlideNum) || -1 !== this.CheckSlideDuration) { - this.NextSlide(isNoSendFormReporter); + this.StartAnimation(this.SlideNum); } else { - this.StartAnimation(this.SlideNum); + this.NextSlide(isNoSendFormReporter); } }; this.Pause = function() { this.IsPlayMode = false; + this.StopTransition(); this.PauseAnimation(this.SlideNum); }; diff --git a/slide/Drawing/anim-pane.js b/slide/Drawing/anim-pane.js index 008699144a..fd9ba701c6 100644 --- a/slide/Drawing/anim-pane.js +++ b/slide/Drawing/anim-pane.js @@ -358,16 +358,6 @@ this.parentControl.onChildUpdate(oBounds); } }; - CControl.prototype.getCursorInfo = function (e, x, y) { - if (!this.hit(x, y)) { - return null; - } else { - return { - cursorType: "default", - tooltip: this.getTooltipText() - } - } - }; CControl.prototype.checkUpdateRect = function (oUpdateRect) { var oBounds = this.getBounds(); if (oUpdateRect && oBounds) { @@ -1593,7 +1583,7 @@ let nOpacity; if (this.isStickedToPointer) { - nOpacity = oSkin.AnimPaneTimelineScrollerOpacityActive; + nOpacity = 0.5;//oSkin.AnimPaneTimelineScrollerOpacityActive; } else if (this.isScrollerHovered) { nOpacity = oSkin.AnimPaneTimelineScrollerOpacityHovered; } else { @@ -1717,22 +1707,25 @@ } } - // Get index of active demo effect (in array of all raw demo effects) - let activeDemoEffectIndex; - for (let nEffect = 0; nEffect < rawDemoEffects.length; nEffect++) { - if (rawDemoEffects[nEffect].originalNode === activeDemoEffect.originalNode) { - activeDemoEffectIndex = nEffect; - break; + if(activeDemoEffect) { + // Get index of active demo effect (in array of all raw demo effects) + let activeDemoEffectIndex; + for (let nEffect = 0; nEffect < rawDemoEffects.length; nEffect++) { + if (rawDemoEffects[nEffect].originalNode === activeDemoEffect.originalNode) { + activeDemoEffectIndex = nEffect; + break; + } } - } - // Get group of active raw demo effects and their corresponding demo effects - const activeRawDemoEffects = rawDemoEffects[activeDemoEffectIndex].getTimeNodeWithLvl(2).getAllAnimEffects(); - const activeDemoEffects = activeRawDemoEffects.map(function (rawEffect) { - return rawEffect.originalDemoNode; - }); + // Get group of active raw demo effects and their corresponding demo effects + const activeRawDemoEffects = rawDemoEffects[activeDemoEffectIndex].getTimeNodeWithLvl(2).getAllAnimEffects(); + const activeDemoEffects = activeRawDemoEffects.map(function (rawEffect) { + return rawEffect.originalDemoNode; + }); - return activeDemoEffects; + return activeDemoEffects; + } + return []; }; CTimeline.prototype.getNewTmpScrollOffset = function (elapsedTicks, correction) { const leftLimit = 0; @@ -2266,49 +2259,20 @@ this.indexLabel = this.addControl(new CLabel(this, this.effect.getIndexInSequence() + "", INDEX_LABEL_FONTSIZE, false, AscCommon.align_Center)) } - const images = getIconsForLoad(); - // [clickEffectIcon, afterEffectIcon, entrEffectIcon, emphEffectIcon, exitEffectIcon, pathEffectIcon]; - // Event type image - let eventImg = {}; - if (this.effect.isClickEffect()) { - eventImg.src = images[0]; - eventImg.width = 11 * AscCommon.g_dKoef_pix_to_mm; - eventImg.height = 16 * AscCommon.g_dKoef_pix_to_mm; - } - if (this.effect.isAfterEffect()) { - eventImg.src = images[1]; - eventImg.width = 16 * AscCommon.g_dKoef_pix_to_mm; - eventImg.height = 16 * AscCommon.g_dKoef_pix_to_mm; - } + const eventImg = this.getEventImage(); this.eventTypeImage = this.addControl(new CImageControl(this, eventImg.src, eventImg.width, eventImg.height)); // Effect type image - let effectImg = {}; - if (this.effect.cTn.presetClass === AscFormat.PRESET_CLASS_ENTR) { - effectImg.src = images[2]; - effectImg.width = 20 * AscCommon.g_dKoef_pix_to_mm; - effectImg.height = 20 * AscCommon.g_dKoef_pix_to_mm; - } - if (this.effect.cTn.presetClass === AscFormat.PRESET_CLASS_EMPH) { - effectImg.src = images[3]; - effectImg.width = 20 * AscCommon.g_dKoef_pix_to_mm; - effectImg.height = 20 * AscCommon.g_dKoef_pix_to_mm; - } - if (this.effect.cTn.presetClass === AscFormat.PRESET_CLASS_EXIT) { - effectImg.src = images[4]; - effectImg.width = 20 * AscCommon.g_dKoef_pix_to_mm; - effectImg.height = 20 * AscCommon.g_dKoef_pix_to_mm; - } - if (this.effect.cTn.presetClass === AscFormat.PRESET_CLASS_PATH) { - effectImg.src = images[5]; - effectImg.width = 20 * AscCommon.g_dKoef_pix_to_mm; - effectImg.height = 20 * AscCommon.g_dKoef_pix_to_mm; - } + const effectImg = this.getEffectImage(); this.effectTypeImage = this.addControl(new CImageControl(this, effectImg.src, effectImg.width, effectImg.height)); this.effectLabel = this.addControl(new CLabel(this, this.getEffectLabelText(), EFFECT_LABEL_FONTSIZE, false, AscCommon.align_Left)); - this.contextMenuButton = this.addControl(new CButton(this, null, null, showContextMenu)); + this.contextMenuButton = this.addControl(new CButton(this, function (e, x, y) { + if (this.hit(x, y) && (e.Button === AscCommon.g_mouse_button_left)) { + this.pressedFlag = true; + } + }, null, showContextMenu)); this.contextMenuButton.icon = this.contextMenuButton.addControl(new CImageControl( this.contextMenuButton, AscCommon.GlobalSkin.type == 'light' ? menuButtonIcon_dark : menuButtonIcon_light, @@ -2338,7 +2302,10 @@ function showContextMenu(e, x, y) { if (this.hit(x, y) && !this.isHidden()) { - this.sendContextMenuEvent(); + if (this.pressedFlag) { + this.sendContextMenuEvent(); + this.pressedFlag = false; + } } } @@ -2401,6 +2368,7 @@ if (this.indexLabel) this.indexLabel.setLayout(0, 0, INDEX_LABEL_WIDTH, ANIM_ITEM_HEIGHT) this.eventTypeImage.setLayout(INDEX_LABEL_WIDTH, 0, EVENT_TYPE_ICON_SIZE, EVENT_TYPE_ICON_SIZE); + this.effectTypeImage.src = this.getEffectImage().src; this.effectTypeImage.setLayout(this.eventTypeImage.getRight(), 0, EFFECT_TYPE_ICON_SIZE, EFFECT_TYPE_ICON_SIZE); const zeroPos = COMMON_LEFT_MARGIN + SCALE_BUTTON_LEFT_MARGIN + SCALE_BUTTON_WIDTH + TIMELINE_SCROLL_LEFT_MARGIN + TIMELINE_SCROLL_BUTTON_SIZE; @@ -2412,9 +2380,47 @@ const menuBtnLeft = this.getRight() - MENU_BUTTON_SIZE - menuBtnGap; this.contextMenuButton.setLayout(menuBtnLeft, menuBtnGap, MENU_BUTTON_SIZE, MENU_BUTTON_SIZE); + this.contextMenuButton.icon.src = AscCommon.GlobalSkin.type == 'light' ? menuButtonIcon_dark : menuButtonIcon_light; this.contextMenuButton.icon.setLayout(0, 0, MENU_BUTTON_SIZE, MENU_BUTTON_SIZE); }; - + CAnimItem.prototype.getEventImage = function () { + let eventImg = {}; + if (this.effect.isClickEffect()) { + eventImg.src = clickEffectIcon; + eventImg.width = 11 * AscCommon.g_dKoef_pix_to_mm; + eventImg.height = 16 * AscCommon.g_dKoef_pix_to_mm; + } + if (this.effect.isAfterEffect()) { + eventImg.src = afterEffectIcon; + eventImg.width = 16 * AscCommon.g_dKoef_pix_to_mm; + eventImg.height = 16 * AscCommon.g_dKoef_pix_to_mm; + } + return eventImg; + }; + CAnimItem.prototype.getEffectImage = function () { + let effectImg = {}; + if (this.effect.cTn.presetClass === AscFormat.PRESET_CLASS_ENTR) { + effectImg.src = entrEffectIcon; + effectImg.width = 20 * AscCommon.g_dKoef_pix_to_mm; + effectImg.height = 20 * AscCommon.g_dKoef_pix_to_mm; + } + if (this.effect.cTn.presetClass === AscFormat.PRESET_CLASS_EMPH) { + effectImg.src = emphEffectIcon; + effectImg.width = 20 * AscCommon.g_dKoef_pix_to_mm; + effectImg.height = 20 * AscCommon.g_dKoef_pix_to_mm; + } + if (this.effect.cTn.presetClass === AscFormat.PRESET_CLASS_EXIT) { + effectImg.src = exitEffectIcon; + effectImg.width = 20 * AscCommon.g_dKoef_pix_to_mm; + effectImg.height = 20 * AscCommon.g_dKoef_pix_to_mm; + } + if (this.effect.cTn.presetClass === AscFormat.PRESET_CLASS_PATH) { + effectImg.src = AscCommon.GlobalSkin.type === 'light' ? pathEffectIcon_dark : pathEffectIcon_light; + effectImg.width = 20 * AscCommon.g_dKoef_pix_to_mm; + effectImg.height = 20 * AscCommon.g_dKoef_pix_to_mm; + } + return effectImg; + }; CAnimItem.prototype.updateSelectState = function (event) { const oThis = this; const seqList = Asc.editor.WordControl.m_oAnimPaneApi.list.Control.seqList; @@ -2444,14 +2450,31 @@ animPane.sentMouseMoveData = mouseMoveData; } CAnimItem.prototype.getNewCursorType = function (x, y) { + const isVerticalDrag = null !== editor.WordControl.m_oAnimPaneApi.list.Control.seqList.nPressedSlot; + if (isVerticalDrag) { + return 'grabbing'; + } + + let draggingAnimItem; + editor.WordControl.m_oAnimPaneApi.list.Control.seqList.forEachAnimItem(function (animItem) { + if (animItem.hitResult) { + draggingAnimItem = animItem; + } + }); + + const hitRes = draggingAnimItem + ? draggingAnimItem.hitResult + : (this.hitResult || this.hitInEffectBar(x, y)); + const cursorTypes = { 'left': 'col-resize', 'right': 'col-resize', 'partition': 'col-resize', 'center': 'ew-resize' }; - const hitRes = this.hitResult || this.hitInEffectBar(x, y); - const cursorType = hitRes ? cursorTypes[hitRes.type] : 'default'; + const cursorType = hitRes + ? cursorTypes[hitRes.type] + : this.contextMenuButton.hit(x, y) ? 'default' : 'ns-resize'; return cursorType; }; CAnimItem.prototype.getMouseMoveData = function (x, y) { @@ -2463,7 +2486,8 @@ mouseMoveData.X_abs = coords.X; mouseMoveData.Y_abs = coords.Y; - if (!this.contextMenuButton.hit(x, y)) { + const isVerticalDrag = null !== editor.WordControl.m_oAnimPaneApi.list.Control.seqList.nPressedSlot; + if (!this.contextMenuButton.hit(x, y) && !isVerticalDrag) { mouseMoveData.Type = Asc.c_oAscMouseMoveDataTypes.EffectInfo; const tooltipInfo = this.getInfoForTooltip(x, y); if (typeof tooltipInfo === 'string') { @@ -2766,9 +2790,13 @@ let oFillColor = new AscFormat.CShapeColor(oFillColorRGBA.R, oFillColorRGBA.G, oFillColorRGBA.B); let oOutlineColor = new AscFormat.CShapeColor(oOutlineColorRGBA.R, oOutlineColorRGBA.G, oOutlineColorRGBA.B); - // change brightness of CShapeColor - oFillColor = this.isCurrentlyPlaying ? oFillColor.getColorData(-0.1) : oFillColor; - oOutlineColor = this.isCurrentlyPlaying ? oOutlineColor.getColorData(-0.1) : oOutlineColor; + // change brightness of CShapeColor during demo preview + if (Asc.editor.asc_IsStartedAnimationPreview()) { + if (!this.isCurrentlyPlaying) { + oFillColor = oFillColor.getColorData(0.4); + oOutlineColor = oOutlineColor.getColorData(0.4); + } + } graphics.b_color1(oFillColor.r, oFillColor.g, oFillColor.b, 255); graphics.p_color(oOutlineColor.r, oOutlineColor.g, oOutlineColor.b, 255); @@ -2939,7 +2967,6 @@ Asc.editor.WordControl.m_oLogicDocument.SetAnimationProperties(effectCopy, false); }; - CAnimItem.prototype.onMouseDown = function (e, x, y) { if (this.onMouseDownCallback && this.onMouseDownCallback.call(this, e, x, y)) { return true; @@ -3072,7 +3099,8 @@ const entrEffectIcon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMCAxLjAwMDAyQzkuNzExNjQgMC45OTgxNDIgOS40MjIyNSAxLjE2Mjk3IDkuMzE0NTQgMS40OTQ0OUw3LjM3MDc5IDcuNTIzNDZDNy4yOTE4MyA3Ljc2NjQ3IDcuMDkxMzIgNy45NDQ4IDYuODQ5NjkgOEgxLjcxN0MxLjAyMzc1IDggMC43MzU1MTYgOC44ODcxIDEuMjk2MzYgOS4yOTQ1OEw1LjgyNzIyIDEyLjQ4NzlDNS43ODMzMiAxMi42NjA5IDUuNzMxNzEgMTIuODQwMyA1LjY3MTI5IDEzLjAyNjJMNC4wMzcyOCAxOC4wNTUyQzMuODIzMDUgMTguNzE0NSA0LjU3NzY3IDE5LjI2MjggNS4xMzg1MiAxOC44NTUzTDEwIDE1LjQyODlMMTQuODYxNSAxOC44NTUzQzE1LjQyMjMgMTkuMjYyOCAxNi4xNzY5IDE4LjcxNDUgMTUuOTYyNyAxOC4wNTUyTDE0LjMyODcgMTMuMDI2MkMxNC4yNjgzIDEyLjg0MDMgMTQuMjE2NyAxMi42NjA5IDE0LjE3MjggMTIuNDg3OUwxOC43MDM2IDkuMjk0NThDMTkuMjY0NSA4Ljg4NzEgMTguOTc2MiA4IDE4LjI4MyA4SDEzLjE1MDNDMTIuOTA4NyA3Ljk0NDggMTIuNzA4MiA3Ljc2NjQ3IDEyLjYyOTIgNy41MjM0NkwxMC42ODU1IDEuNDk0NDlDMTAuNTc3NyAxLjE2Mjk3IDEwLjI4ODQgMC45OTgxNDIgMTAgMS4wMDAwMlpNMTAgMi42MDAzMUM5LjMwMDY2IDQuNzM5NDYgNy44MTc1MSA5LjAwMDAxIDcuODE3NTEgOS4wMDAwMUgyLjYwMDFMNy4wMDAxIDEyLjFDNi42MTQ0OSAxMy40NDk2IDYuMTcxNzMgMTQuNzQ0OCA1LjcyMjY5IDE2LjA1ODRDNS41NDg0NSAxNi41NjgxIDUuMzczMjYgMTcuMDgwNSA1LjIwMDEgMTcuNkwxMCAxNC4yMzIyTDE0Ljc5OTkgMTcuNkMxNC42MjY3IDE3LjA4MDYgMTQuNDUxNiAxNi41NjgxIDE0LjI3NzMgMTYuMDU4NUMxMy44MjgzIDE0Ljc0NDkgMTMuMzg1NSAxMy40NDk2IDEyLjk5OTkgMTIuMUwxNy4zOTk5IDkuMDAwMDFIMTIuMTgyNUMxMi4xODI1IDkuMDAwMDEgMTAuNjk5MyA0LjczOTQ2IDEwIDIuNjAwMzFaIiBmaWxsPSIjMEU4QTI2Ii8+CjxwYXRoIG9wYWNpdHk9IjAuNSIgZD0iTTcuODE3NTEgOS4wMDAyOUM3LjgxNzUxIDkuMDAwMjkgOS4zMDA2NiA0LjczOTc0IDEwIDIuNjAwNTlDMTAuNjk5MyA0LjczOTc0IDEyLjE4MjUgOS4wMDAyOSAxMi4xODI1IDkuMDAwMjlIMTcuMzk5OUwxMi45OTk5IDEyLjEwMDNDMTMuMzg1NSAxMy40NDk5IDEzLjgyODMgMTQuNzQ1MSAxNC4yNzczIDE2LjA1ODdDMTQuNDUxNiAxNi41NjgzIDE0LjYyNjcgMTcuMDgwOCAxNC43OTk5IDE3LjYwMDNMMTAgMTQuMjMyNUw1LjIwMDEgMTcuNjAwM0M1LjM3MzI2IDE3LjA4MDggNS41NDg0NCAxNi41NjgzIDUuNzIyNjggMTYuMDU4N0M2LjE3MTczIDE0Ljc0NTEgNi42MTQ0OSAxMy40NDk5IDcuMDAwMSAxMi4xMDAzTDIuNjAwMSA5LjAwMDI5SDcuODE3NTFaIiBmaWxsPSIjMEU4QTI2Ii8+CjxyZWN0IHg9IjMiIHk9IjIiIHdpZHRoPSI0IiBoZWlnaHQ9IjEiIGZpbGw9IiMwRThBMjYiLz4KPHJlY3QgeD0iMSIgeT0iNSIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iIzBFOEEyNiIvPgo8cmVjdCB4PSIxIiB5PSIxMiIgd2lkdGg9IjMiIGhlaWdodD0iMSIgZmlsbD0iIzBFOEEyNiIvPgo8cmVjdCB4PSIxIiB5PSIxNSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzBFOEEyNiIvPgo8L3N2Zz4K'; const emphEffectIcon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMCAxLjAwMDAyQzkuNzExNjQgMC45OTgxNDIgOS40MjIyNSAxLjE2Mjk3IDkuMzE0NTQgMS40OTQ0OUw3LjM3MDc5IDcuNTIzNDZDNy4yOTE4MyA3Ljc2NjQ3IDcuMDkxMzIgNy45NDQ4IDYuODQ5NjkgOEgxLjcxN0MxLjAyMzc1IDggMC43MzU1MTYgOC44ODcxIDEuMjk2MzYgOS4yOTQ1OEw1LjgyNzIyIDEyLjQ4NzlDNS43ODMzMiAxMi42NjA5IDUuNzMxNzEgMTIuODQwMyA1LjY3MTI5IDEzLjAyNjJMNC4wMzcyOCAxOC4wNTUyQzMuODIzMDUgMTguNzE0NSA0LjU3NzY3IDE5LjI2MjggNS4xMzg1MiAxOC44NTUzTDEwIDE1LjQyODlMMTQuODYxNSAxOC44NTUzQzE1LjQyMjMgMTkuMjYyOCAxNi4xNzY5IDE4LjcxNDUgMTUuOTYyNyAxOC4wNTUyTDE0LjMyODcgMTMuMDI2MkMxNC4yNjgzIDEyLjg0MDMgMTQuMjE2NyAxMi42NjA5IDE0LjE3MjggMTIuNDg3OUwxOC43MDM2IDkuMjk0NThDMTkuMjY0NSA4Ljg4NzEgMTguOTc2MiA4IDE4LjI4MyA4SDEzLjE1MDNDMTIuOTA4NyA3Ljk0NDggMTIuNzA4MiA3Ljc2NjQ3IDEyLjYyOTIgNy41MjM0NkwxMC42ODU1IDEuNDk0NDlDMTAuNTc3NyAxLjE2Mjk3IDEwLjI4ODQgMC45OTgxNDIgMTAgMS4wMDAwMlpNMTAgMi42MDAzMUM5LjMwMDY2IDQuNzM5NDYgNy44MTc1MSA5LjAwMDAxIDcuODE3NTEgOS4wMDAwMUgyLjYwMDFMNy4wMDAxIDEyLjFDNi42MTQ0OSAxMy40NDk2IDYuMTcxNzMgMTQuNzQ0OCA1LjcyMjY5IDE2LjA1ODRDNS41NDg0NSAxNi41NjgxIDUuMzczMjYgMTcuMDgwNSA1LjIwMDEgMTcuNkwxMCAxNC4yMzIyTDE0Ljc5OTkgMTcuNkMxNC42MjY3IDE3LjA4MDYgMTQuNDUxNiAxNi41NjgxIDE0LjI3NzMgMTYuMDU4NUMxMy44MjgzIDE0Ljc0NDkgMTMuMzg1NSAxMy40NDk2IDEyLjk5OTkgMTIuMUwxNy4zOTk5IDkuMDAwMDFIMTIuMTgyNUMxMi4xODI1IDkuMDAwMDEgMTAuNjk5MyA0LjczOTQ2IDEwIDIuNjAwMzFaIiBmaWxsPSIjRkY4RTAwIi8+CjxwYXRoIG9wYWNpdHk9IjAuNSIgZD0iTTcuODE3NTEgOS4wMDAyOUM3LjgxNzUxIDkuMDAwMjkgOS4zMDA2NiA0LjczOTc0IDEwIDIuNjAwNTlDMTAuNjk5MyA0LjczOTc0IDEyLjE4MjUgOS4wMDAyOSAxMi4xODI1IDkuMDAwMjlIMTcuMzk5OUwxMi45OTk5IDEyLjEwMDNDMTMuMzg1NSAxMy40NDk5IDEzLjgyODMgMTQuNzQ1MSAxNC4yNzczIDE2LjA1ODdDMTQuNDUxNiAxNi41NjgzIDE0LjYyNjcgMTcuMDgwOCAxNC43OTk5IDE3LjYwMDNMMTAgMTQuMjMyNUw1LjIwMDEgMTcuNjAwM0M1LjM3MzI2IDE3LjA4MDggNS41NDg0NCAxNi41NjgzIDUuNzIyNjggMTYuMDU4N0M2LjE3MTczIDE0Ljc0NTEgNi42MTQ0OSAxMy40NDk5IDcuMDAwMSAxMi4xMDAzTDIuNjAwMSA5LjAwMDI5SDcuODE3NTFaIiBmaWxsPSIjRkY4RTAwIi8+CjxwYXRoIGQ9Ik01Ljg5NDU4IDYuMTkzMzZMMi4zOTQ1OCAxLjY5MzM2TDEuNjA1MjIgMi4zMDczTDUuMTA1MjIgNi44MDczTDUuODk0NTggNi4xOTMzNloiIGZpbGw9IiNGRjhFMDAiLz4KPHBhdGggZD0iTTEuODUzNTkgMTUuODUzOUw0LjM1MzU5IDEzLjM1MzlMMy42NDY0OCAxMi42NDY4TDEuMTQ2NDggMTUuMTQ2OEwxLjg1MzU5IDE1Ljg1MzlaIiBmaWxsPSIjRkY4RTAwIi8+CjxwYXRoIGQ9Ik0xNC4xNDY0IDYuMTkzMzZMMTcuNjQ2NCAxLjY5MzM2TDE4LjQzNTggMi4zMDczTDE0LjkzNTggNi44MDczTDE0LjE0NjQgNi4xOTMzNloiIGZpbGw9IiNGRjhFMDAiLz4KPHBhdGggZD0iTTE4LjE4NzQgMTUuODUzOUwxNS42ODc0IDEzLjM1MzlMMTYuMzk0NSAxMi42NDY4TDE4Ljg5NDUgMTUuMTQ2OEwxOC4xODc0IDE1Ljg1MzlaIiBmaWxsPSIjRkY4RTAwIi8+Cjwvc3ZnPgo='; const exitEffectIcon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMCAxLjAwMDAyQzkuNzExNjQgMC45OTgxNDIgOS40MjIyNSAxLjE2Mjk3IDkuMzE0NTQgMS40OTQ0OUw3LjM3MDc5IDcuNTIzNDZDNy4yOTE4MyA3Ljc2NjQ3IDcuMDkxMzIgNy45NDQ4IDYuODQ5NjkgOEgxLjcxN0MxLjAyMzc1IDggMC43MzU1MTYgOC44ODcxIDEuMjk2MzYgOS4yOTQ1OEw1LjgyNzIyIDEyLjQ4NzlDNS43ODMzMiAxMi42NjA5IDUuNzMxNzEgMTIuODQwMyA1LjY3MTI5IDEzLjAyNjJMNC4wMzcyOCAxOC4wNTUyQzMuODIzMDUgMTguNzE0NSA0LjU3NzY3IDE5LjI2MjggNS4xMzg1MiAxOC44NTUzTDEwIDE1LjQyODlMMTQuODYxNSAxOC44NTUzQzE1LjQyMjMgMTkuMjYyOCAxNi4xNzY5IDE4LjcxNDUgMTUuOTYyNyAxOC4wNTUyTDE0LjMyODcgMTMuMDI2MkMxNC4yNjgzIDEyLjg0MDMgMTQuMjE2NyAxMi42NjA5IDE0LjE3MjggMTIuNDg3OUwxOC43MDM2IDkuMjk0NThDMTkuMjY0NSA4Ljg4NzEgMTguOTc2MiA4IDE4LjI4MyA4SDEzLjE1MDNDMTIuOTA4NyA3Ljk0NDggMTIuNzA4MiA3Ljc2NjQ3IDEyLjYyOTIgNy41MjM0NkwxMC42ODU1IDEuNDk0NDlDMTAuNTc3NyAxLjE2Mjk3IDEwLjI4ODQgMC45OTgxNDIgMTAgMS4wMDAwMlpNMTAgMi42MDAzMUM5LjMwMDY2IDQuNzM5NDYgNy44MTc1MSA5LjAwMDAxIDcuODE3NTEgOS4wMDAwMUgyLjYwMDFMNy4wMDAxIDEyLjFDNi42MTQ0OSAxMy40NDk2IDYuMTcxNzMgMTQuNzQ0OCA1LjcyMjY5IDE2LjA1ODRDNS41NDg0NSAxNi41NjgxIDUuMzczMjYgMTcuMDgwNSA1LjIwMDEgMTcuNkwxMCAxNC4yMzIyTDE0Ljc5OTkgMTcuNkMxNC42MjY3IDE3LjA4MDYgMTQuNDUxNiAxNi41NjgxIDE0LjI3NzMgMTYuMDU4NUMxMy44MjgzIDE0Ljc0NDkgMTMuMzg1NSAxMy40NDk2IDEyLjk5OTkgMTIuMUwxNy4zOTk5IDkuMDAwMDFIMTIuMTgyNUMxMi4xODI1IDkuMDAwMDEgMTAuNjk5MyA0LjczOTQ2IDEwIDIuNjAwMzFaIiBmaWxsPSIjRjIzRDNEIi8+CjxwYXRoIG9wYWNpdHk9IjAuNSIgZD0iTTcuODE3NTEgOS4wMDAyOUM3LjgxNzUxIDkuMDAwMjkgOS4zMDA2NiA0LjczOTc0IDEwIDIuNjAwNTlDMTAuNjk5MyA0LjczOTc0IDEyLjE4MjUgOS4wMDAyOSAxMi4xODI1IDkuMDAwMjlIMTcuMzk5OUwxMi45OTk5IDEyLjEwMDNDMTMuMzg1NSAxMy40NDk5IDEzLjgyODMgMTQuNzQ1MSAxNC4yNzczIDE2LjA1ODdDMTQuNDUxNiAxNi41NjgzIDE0LjYyNjcgMTcuMDgwOCAxNC43OTk5IDE3LjYwMDNMMTAgMTQuMjMyNUw1LjIwMDEgMTcuNjAwM0M1LjM3MzI2IDE3LjA4MDggNS41NDg0NCAxNi41NjgzIDUuNzIyNjggMTYuMDU4N0M2LjE3MTczIDE0Ljc0NTEgNi42MTQ0OSAxMy40NDk5IDcuMDAwMSAxMi4xMDAzTDIuNjAwMSA5LjAwMDI5SDcuODE3NTFaIiBmaWxsPSIjRjIzRDNEIi8+CjxwYXRoIGQ9Ik0xMyAySDE3VjNIMTNWMloiIGZpbGw9IiNGMjNEM0QiLz4KPHBhdGggZD0iTTE1IDZWNUgxOVY2SDE1WiIgZmlsbD0iI0YyM0QzRCIvPgo8cGF0aCBkPSJNMTkgMTJIMTZWMTNIMTlWMTJaIiBmaWxsPSIjRjIzRDNEIi8+CjxwYXRoIGQ9Ik0xNyAxNUgxOVYxNkgxN1YxNVoiIGZpbGw9IiNGMjNEM0QiLz4KPC9zdmc+Cg=='; - const pathEffectIcon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuOTk2NzUgMS41MDAwMUw5Ljk5Njc1IDEuNTAwMDVMMTAuMDAzMiAxLjUwMDAxQzEwLjA1MjUgMS40OTk2OSAxMC4wOTcgMS41MTM4IDEwLjEzMDQgMS41MzY0QzEwLjE2MDUgMS41NTY3NSAxMC4xOTA1IDEuNTg5NjEgMTAuMjA5OCAxLjY0ODU4QzEwLjIwOTggMS42NDg3MiAxMC4yMDk5IDEuNjQ4ODYgMTAuMjA5OSAxLjY0ODk5TDEyLjE1MzMgNy42NzY4OUwxMi4xNTM3IDcuNjc3OTdDMTIuMjg3OSA4LjA5MDk3IDEyLjYyODYgOC4zOTM2OSAxMy4wMzg5IDguNDg3NDRMMTMuMDkzOSA4LjVIMTMuMTUwM0gxOC4yODNDMTguNDkxIDguNSAxOC41NzggOC43NjUwNCAxOC40MTE5IDguODg4NTFMMTMuODg0NyAxMi4wNzkzTDEzLjYwMzUgMTIuMjc3NEwxMy42ODgxIDEyLjYxMDlDMTMuNzM0OCAxMi43OTQ2IDEzLjc4OTQgMTIuOTg0NSAxMy44NTMyIDEzLjE4MDhMMTUuNDg3MiAxOC4yMDk3QzE1LjU1MTcgMTguNDA4NCAxNS4zMjQ0IDE4LjU3MzYgMTUuMTU1NCAxOC40NTA4TDE1LjE1NTQgMTguNDUwOEwxNS4xNDk1IDE4LjQ0NjZMMTAuMjg4IDE1LjAyMDJMMTAgMTQuODE3Mkw5LjcxMTk1IDE1LjAyMDJMNC44NTA0NyAxOC40NDY2TDQuODUwNDQgMTguNDQ2Nkw0Ljg0NDYyIDE4LjQ1MDhDNC42NzU2NCAxOC41NzM2IDQuNDQ4MjYgMTguNDA4NCA0LjUxMjgxIDE4LjIwOTdMNi4xNDY4MiAxMy4xODA4QzYuMjEwNTggMTIuOTg0NSA2LjI2NTI0IDEyLjc5NDYgNi4zMTE4NiAxMi42MTA5TDYuMzk2NDcgMTIuMjc3NEw2LjExNTI2IDEyLjA3OTNMMS41ODgxNSA4Ljg4ODUzQzEuNDIyIDguNzY1MDYgMS41MDg5OSA4LjUgMS43MTcgOC41SDYuODQ5NjlINi45MDYwOEw2Ljk2MTA1IDguNDg3NDRDNy4zNzE0MyA4LjM5MzY5IDcuNzEyMTMgOC4wOTA5NyA3Ljg0NjMyIDcuNjc3OTdMNy44NDY2NyA3LjY3Njg5TDkuNzkwMDcgMS42NDg5OUM5Ljc5MDExIDEuNjQ4ODYgOS43OTAxNSAxLjY0ODcyIDkuNzkwMiAxLjY0ODU5QzkuODA5NDUgMS41ODk2MSA5LjgzOTU0IDEuNTU2NzYgOS44Njk2MyAxLjUzNjRDOS45MDMwNSAxLjUxMzggOS45NDc1NCAxLjQ5OTY5IDkuOTk2NzUgMS41MDAwMVoiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS1vcGFjaXR5PSIwLjgiLz4KPHBhdGggZD0iTTEyIDNDMTIgNC4xMDQ1NyAxMS4xMDQ2IDUgMTAgNUM4Ljg5NTQzIDUgOCA0LjEwNDU3IDggM0M4IDEuODk1NDMgOC44OTU0MyAxIDEwIDFDMTEuMTA0NiAxIDEyIDEuODk1NDMgMTIgM1oiIGZpbGw9IiMwRThBMjYiLz4KPHBhdGggZD0iTTkgN0M5IDguMTA0NTcgOC4xMDQ1NyA5IDcgOUM1Ljg5NTQzIDkgNSA4LjEwNDU3IDUgN0M1IDUuODk1NDMgNS44OTU0MyA1IDcgNUM4LjEwNDU3IDUgOSA1Ljg5NTQzIDkgN1oiIGZpbGw9IiNGMjNEM0QiLz4KPC9zdmc+Cg=='; + const pathEffectIcon_light = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuOTk2NzUgMS41MDAwMUw5Ljk5Njc1IDEuNTAwMDVMMTAuMDAzMiAxLjUwMDAxQzEwLjA1MjUgMS40OTk2OSAxMC4wOTcgMS41MTM4IDEwLjEzMDQgMS41MzY0QzEwLjE2MDUgMS41NTY3NSAxMC4xOTA1IDEuNTg5NjEgMTAuMjA5OCAxLjY0ODU4QzEwLjIwOTggMS42NDg3MiAxMC4yMDk5IDEuNjQ4ODYgMTAuMjA5OSAxLjY0ODk5TDEyLjE1MzMgNy42NzY4OUwxMi4xNTM3IDcuNjc3OTdDMTIuMjg3OSA4LjA5MDk3IDEyLjYyODYgOC4zOTM2OSAxMy4wMzg5IDguNDg3NDRMMTMuMDkzOSA4LjVIMTMuMTUwM0gxOC4yODNDMTguNDkxIDguNSAxOC41NzggOC43NjUwNCAxOC40MTE5IDguODg4NTFMMTMuODg0NyAxMi4wNzkzTDEzLjYwMzUgMTIuMjc3NEwxMy42ODgxIDEyLjYxMDlDMTMuNzM0OCAxMi43OTQ2IDEzLjc4OTQgMTIuOTg0NSAxMy44NTMyIDEzLjE4MDhMMTUuNDg3MiAxOC4yMDk3QzE1LjU1MTcgMTguNDA4NCAxNS4zMjQ0IDE4LjU3MzYgMTUuMTU1NCAxOC40NTA4TDE1LjE1NTQgMTguNDUwOEwxNS4xNDk1IDE4LjQ0NjZMMTAuMjg4IDE1LjAyMDJMMTAgMTQuODE3Mkw5LjcxMTk1IDE1LjAyMDJMNC44NTA0NyAxOC40NDY2TDQuODUwNDQgMTguNDQ2Nkw0Ljg0NDYyIDE4LjQ1MDhDNC42NzU2NCAxOC41NzM2IDQuNDQ4MjYgMTguNDA4NCA0LjUxMjgxIDE4LjIwOTdMNi4xNDY4MiAxMy4xODA4QzYuMjEwNTggMTIuOTg0NSA2LjI2NTI0IDEyLjc5NDYgNi4zMTE4NiAxMi42MTA5TDYuMzk2NDcgMTIuMjc3NEw2LjExNTI2IDEyLjA3OTNMMS41ODgxNSA4Ljg4ODUzQzEuNDIyIDguNzY1MDYgMS41MDg5OSA4LjUgMS43MTcgOC41SDYuODQ5NjlINi45MDYwOEw2Ljk2MTA1IDguNDg3NDRDNy4zNzE0MyA4LjM5MzY5IDcuNzEyMTMgOC4wOTA5NyA3Ljg0NjMyIDcuNjc3OTdMNy44NDY2NyA3LjY3Njg5TDkuNzkwMDcgMS42NDg5OUM5Ljc5MDExIDEuNjQ4ODYgOS43OTAxNSAxLjY0ODcyIDkuNzkwMiAxLjY0ODU5QzkuODA5NDUgMS41ODk2MSA5LjgzOTU0IDEuNTU2NzYgOS44Njk2MyAxLjUzNjRDOS45MDMwNSAxLjUxMzggOS45NDc1NCAxLjQ5OTY5IDkuOTk2NzUgMS41MDAwMVoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjgiLz4KPHBhdGggZD0iTTEyIDNDMTIgNC4xMDQ1NyAxMS4xMDQ2IDUgMTAgNUM4Ljg5NTQzIDUgOCA0LjEwNDU3IDggM0M4IDEuODk1NDMgOC44OTU0MyAxIDEwIDFDMTEuMTA0NiAxIDEyIDEuODk1NDMgMTIgM1oiIGZpbGw9IiMzQUJENTkiLz4KPHBhdGggZD0iTTkgN0M5IDguMTA0NTcgOC4xMDQ1NyA5IDcgOUM1Ljg5NTQzIDkgNSA4LjEwNDU3IDUgN0M1IDUuODk1NDMgNS44OTU0MyA1IDcgNUM4LjEwNDU3IDUgOSA1Ljg5NTQzIDkgN1oiIGZpbGw9IiNGNTJDMkMiLz4KPC9zdmc+Cg=='; + const pathEffectIcon_dark = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuOTk2NzUgMS41MDAwMUw5Ljk5Njc1IDEuNTAwMDVMMTAuMDAzMiAxLjUwMDAxQzEwLjA1MjUgMS40OTk2OSAxMC4wOTcgMS41MTM4IDEwLjEzMDQgMS41MzY0QzEwLjE2MDUgMS41NTY3NSAxMC4xOTA1IDEuNTg5NjEgMTAuMjA5OCAxLjY0ODU4QzEwLjIwOTggMS42NDg3MiAxMC4yMDk5IDEuNjQ4ODYgMTAuMjA5OSAxLjY0ODk5TDEyLjE1MzMgNy42NzY4OUwxMi4xNTM3IDcuNjc3OTdDMTIuMjg3OSA4LjA5MDk3IDEyLjYyODYgOC4zOTM2OSAxMy4wMzg5IDguNDg3NDRMMTMuMDkzOSA4LjVIMTMuMTUwM0gxOC4yODNDMTguNDkxIDguNSAxOC41NzggOC43NjUwNCAxOC40MTE5IDguODg4NTFMMTMuODg0NyAxMi4wNzkzTDEzLjYwMzUgMTIuMjc3NEwxMy42ODgxIDEyLjYxMDlDMTMuNzM0OCAxMi43OTQ2IDEzLjc4OTQgMTIuOTg0NSAxMy44NTMyIDEzLjE4MDhMMTUuNDg3MiAxOC4yMDk3QzE1LjU1MTcgMTguNDA4NCAxNS4zMjQ0IDE4LjU3MzYgMTUuMTU1NCAxOC40NTA4TDE1LjE1NTQgMTguNDUwOEwxNS4xNDk1IDE4LjQ0NjZMMTAuMjg4IDE1LjAyMDJMMTAgMTQuODE3Mkw5LjcxMTk1IDE1LjAyMDJMNC44NTA0NyAxOC40NDY2TDQuODUwNDQgMTguNDQ2Nkw0Ljg0NDYyIDE4LjQ1MDhDNC42NzU2NCAxOC41NzM2IDQuNDQ4MjYgMTguNDA4NCA0LjUxMjgxIDE4LjIwOTdMNi4xNDY4MiAxMy4xODA4QzYuMjEwNTggMTIuOTg0NSA2LjI2NTI0IDEyLjc5NDYgNi4zMTE4NiAxMi42MTA5TDYuMzk2NDcgMTIuMjc3NEw2LjExNTI2IDEyLjA3OTNMMS41ODgxNSA4Ljg4ODUzQzEuNDIyIDguNzY1MDYgMS41MDg5OSA4LjUgMS43MTcgOC41SDYuODQ5NjlINi45MDYwOEw2Ljk2MTA1IDguNDg3NDRDNy4zNzE0MyA4LjM5MzY5IDcuNzEyMTMgOC4wOTA5NyA3Ljg0NjMyIDcuNjc3OTdMNy44NDY2NyA3LjY3Njg5TDkuNzkwMDcgMS42NDg5OUM5Ljc5MDExIDEuNjQ4ODYgOS43OTAxNSAxLjY0ODcyIDkuNzkwMiAxLjY0ODU5QzkuODA5NDUgMS41ODk2MSA5LjgzOTU0IDEuNTU2NzYgOS44Njk2MyAxLjUzNjRDOS45MDMwNSAxLjUxMzggOS45NDc1NCAxLjQ5OTY5IDkuOTk2NzUgMS41MDAwMVoiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS1vcGFjaXR5PSIwLjgiLz4KPHBhdGggZD0iTTEyIDNDMTIgNC4xMDQ1NyAxMS4xMDQ2IDUgMTAgNUM4Ljg5NTQzIDUgOCA0LjEwNDU3IDggM0M4IDEuODk1NDMgOC44OTU0MyAxIDEwIDFDMTEuMTA0NiAxIDEyIDEuODk1NDMgMTIgM1oiIGZpbGw9IiMwRThBMjYiLz4KPHBhdGggZD0iTTkgN0M5IDguMTA0NTcgOC4xMDQ1NyA5IDcgOUM1Ljg5NTQzIDkgNSA4LjEwNDU3IDUgN0M1IDUuODk1NDMgNS44OTU0MyA1IDcgNUM4LjEwNDU3IDUgOSA1Ljg5NTQzIDkgN1oiIGZpbGw9IiNGMjNEM0QiLz4KPC9zdmc+Cg=='; const arrowUpIcon_dark = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEyIDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNS45OTk5NiAwLjI5Mjg1NUw1LjY0NjQxIDAuNjQ2NDA4TDAuMTQ2NDA4IDYuMTQ2NDFMMC44NTM1MTYgNi44NTM1MUw1Ljk5OTk2IDEuNzA3MDdMMTEuMTQ2NCA2Ljg1MzUyTDExLjg1MzUgNi4xNDY0MUw2LjM1MzUyIDAuNjQ2NDA5TDUuOTk5OTYgMC4yOTI4NTVaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K'; const arrowUpIcon_light = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEyIDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNS45OTk5NiAwLjI5Mjg1NUw1LjY0NjQxIDAuNjQ2NDA4TDAuMTQ2NDA4IDYuMTQ2NDFMMC44NTM1MTYgNi44NTM1MUw1Ljk5OTk2IDEuNzA3MDdMMTEuMTQ2NCA2Ljg1MzUyTDExLjg1MzUgNi4xNDY0MUw2LjM1MzUyIDAuNjQ2NDA5TDUuOTk5OTYgMC4yOTI4NTVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K'; @@ -3099,7 +3127,8 @@ const getIconsForLoad = function () { return [ clickEffectIcon, afterEffectIcon, - entrEffectIcon, emphEffectIcon, exitEffectIcon, pathEffectIcon, + entrEffectIcon, emphEffectIcon, exitEffectIcon, + pathEffectIcon_dark, pathEffectIcon_light, playIcon_dark, playIcon_light, stopIcon_dark, stopIcon_light, arrowUpIcon_dark, arrowUpIcon_light, diff --git a/slide/Drawing/mobileTouchManager.js b/slide/Drawing/mobileTouchManager.js index 3d22d9ab8e..de95b437c3 100644 --- a/slide/Drawing/mobileTouchManager.js +++ b/slide/Drawing/mobileTouchManager.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -59,6 +59,21 @@ { return this.DrawingDocument.ConvertCoordsFromCursor2(x, y); }; + CMobileDelegateEditorPresentation.prototype.GetElementOffset = function() + { + var _xOffset = this.HtmlPage.X; + var _yOffset = this.HtmlPage.Y; + + if (true === this.HtmlPage.m_bIsRuler) + { + _xOffset += (5 * AscCommon.g_dKoef_mm_to_pix); + _yOffset += (7 * AscCommon.g_dKoef_mm_to_pix); + } + + let mainViewOffset = parseInt(this.HtmlPage.m_oMainParent.HtmlElement.style.left); + + return { X : _xOffset + mainViewOffset, Y : _yOffset }; + }; CMobileDelegateEditorPresentation.prototype.GetZoomFit = function() { var HtmlPage = this.HtmlPage; @@ -372,7 +387,7 @@ this.iScroll = new window.IScrollMobile(_element, { scrollbars: true, - mouseWheel: true, + mouseWheel: !this.isDesktopMode, interactiveScrollbars: true, shrinkScrollbars: 'scale', fadeScrollbars: true, @@ -381,7 +396,8 @@ bounce : false, eventsElement : this.eventsElement, click : false, - useLongTap : true + useLongTap : true, + transparentIndicators : this.isDesktopMode }); this.delegate.Init(); @@ -417,15 +433,30 @@ if (_matrix && global_MatrixTransformer.IsIdentity(_matrix)) _matrix = null; - if (!this.CheckSelectTrack()) + let touchesCount = e.touches ? e.touches.length : this.getPointerCount(); + let isLockedTouch = false; + + if (touchesCount > 1) { - if (!this.CheckTableTrack()) + if (AscCommon.MobileTouchMode.None !== this.Mode && + AscCommon.MobileTouchMode.Scroll !== this.Mode) { - bIsKoefPixToMM = this.CheckObjectTrack(); + isLockedTouch = true; + } + } + + if (!isLockedTouch) + { + if (!this.CheckSelectTrack()) + { + if (!this.CheckTableTrack()) + { + bIsKoefPixToMM = this.CheckObjectTrack(); + } } } - if ((e.touches && 2 == e.touches.length) || (2 == this.getPointerCount())) + if (!isLockedTouch && (2 === touchesCount)) { this.Mode = AscCommon.MobileTouchMode.Zoom; } @@ -803,10 +834,13 @@ { if (!this.MoveAfterDown) { - global_mouseEvent.Button = 0; - this.delegate.Drawing_OnMouseDown(_e); - this.delegate.Drawing_OnMouseUp(_e); - this.Api.sendEvent("asc_onTapEvent", e); + if (!this.checkDesktopModeContextMenuEnd()) + { + global_mouseEvent.Button = 0; + this.delegate.Drawing_OnMouseDown(_e); + this.delegate.Drawing_OnMouseUp(_e); + this.Api.sendEvent("asc_onTapEvent", e); + } var typeMenu = this.delegate.GetContextMenuType(); if (typeMenu == AscCommon.MobileTouchContextMenuType.Target || @@ -965,7 +999,10 @@ this.checkPointerMultiTouchRemove(e); if (this.Api.isViewMode || isPreventDefault) - AscCommon.stopEvent(e);//AscCommon.g_inputContext.preventVirtualKeyboard(e); + { + AscCommon.stopEvent(e); + AscCommon.g_inputContext.preventVirtualKeyboard(e); + } if (AscCommon.g_inputContext.isHardCheckKeyboard) isPreventDefault ? AscCommon.g_inputContext.preventVirtualKeyboard_Hard() : AscCommon.g_inputContext.enableVirtualKeyboard_Hard(); @@ -973,6 +1010,9 @@ if (true !== this.iScroll.isAnimating) this.CheckContextMenuTouchEnd(isCheckContextMenuMode, isCheckContextMenuSelect, isCheckContextMenuCursor, isCheckContextMenuTableRuler); + if (!isPreventDefault && this.Api.isMobileVersion && !this.Api.isUseOldMobileVersion()) + this.showKeyboard(); + return false; }; @@ -981,7 +1021,9 @@ if (AscCommon.g_inputContext && AscCommon.g_inputContext.externalChangeFocus()) return; - if (!this.Api.asc_IsFocus()) + this.removeHandlersOnClick(); + + if (!this.Api.asc_IsFocus() && !this.Api.isMobileVersion) this.Api.asc_enableKeyEvents(true); var oWordControl = this.Api.WordControl; @@ -1009,8 +1051,14 @@ oWordControl.IsUpdateOverlayOnlyEndReturn = true; oWordControl.StartUpdateOverlay(); var ret = this.onTouchEnd(e); + + if (this.isGlassDrawed) + oWordControl.OnUpdateOverlay(); + oWordControl.IsUpdateOverlayOnlyEndReturn = false; oWordControl.EndUpdateOverlay(); + + this.checkDesktopModeContextMenuEnd(e); return ret; }; @@ -1165,14 +1213,15 @@ this.iScroll = new window.IScrollMobile(_element, { scrollbars: true, - mouseWheel: true, + mouseWheel: !this.isDesktopMode, interactiveScrollbars: true, shrinkScrollbars: 'scale', fadeScrollbars: true, scrollX : true, scroller_id : this.iScrollElement, eventsElement : this.eventsElement, - bounce : true + bounce : true, + transparentIndicators : this.isDesktopMode }); this.delegate.Init(); @@ -1309,7 +1358,9 @@ }; CMobileTouchManagerThumbnails.prototype.mainOnTouchEnd = function(e) { - return this.onTouchEnd(e); + let res = this.onTouchEnd(e); + this.checkDesktopModeContextMenuEnd(e); + return res; }; //--------------------------------------------------------export---------------------------------------------------- diff --git a/slide/Editor/CollaborativeEditing.js b/slide/Editor/CollaborativeEditing.js index a7c61378af..5f65e77928 100644 --- a/slide/Editor/CollaborativeEditing.js +++ b/slide/Editor/CollaborativeEditing.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -689,4 +689,4 @@ CCollaborativeEditing.prototype.private_UpdateForeignCursor = function(CursorInf //--------------------------------------------------------export---------------------------------------------------- window['AscCommon'] = window['AscCommon'] || {}; -window['AscCommon'].CollaborativeEditing = new CCollaborativeEditing(); +window['AscCommon'].SlideCollaborativeEditing = CCollaborativeEditing; diff --git a/slide/Editor/DrawingObjectsController.js b/slide/Editor/DrawingObjectsController.js index 3b02ef6c2d..9e272526b0 100644 --- a/slide/Editor/DrawingObjectsController.js +++ b/slide/Editor/DrawingObjectsController.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/Editor/Format/ChartSpacePrototype.js b/slide/Editor/Format/ChartSpacePrototype.js index 9847281b16..0de72815d9 100644 --- a/slide/Editor/Format/ChartSpacePrototype.js +++ b/slide/Editor/Format/ChartSpacePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -37,7 +37,6 @@ var CShape = AscFormat.CShape; var CChartSpace = AscFormat.CChartSpace; var CreateUnifillSolidFillSchemeColor = AscFormat.CreateUnifillSolidFillSchemeColor; -CChartSpace.prototype.getDrawingObjectsController = CShape.prototype.getDrawingObjectsController; CChartSpace.prototype.handleUpdateTheme = CShape.prototype.handleUpdateTheme; CChartSpace.prototype.getIsSingleBody = CShape.prototype.getIsSingleBody; CChartSpace.prototype.getSlideIndex = CShape.prototype.getSlideIndex; @@ -53,42 +52,6 @@ CChartSpace.prototype.recalculateTransform = function() }; -CChartSpace.prototype.recalculatePlotAreaChartBrush = function() -{ - if(this.chart && this.chart.plotArea) - { - var plot_area = this.chart.plotArea; - var default_brush; - var tint = 0.20000; - if(this.style >=1 && this.style <=32) - { - if(this.bPreview) - { - default_brush = CreateUnifillSolidFillSchemeColor(6, tint); - } - else - { - default_brush = AscFormat.CreateNoFillUniFill(); - } - } - else if(this.style >=33 && this.style <= 34) - default_brush = CreateUnifillSolidFillSchemeColor(8, 0.20000); - else if(this.style >=35 && this.style <=40) - default_brush = CreateUnifillSolidFillSchemeColor(this.style - 35, 0 + tint); - else - default_brush = CreateUnifillSolidFillSchemeColor(8, 0.95000); - - if(plot_area.spPr && plot_area.spPr.Fill) - { - default_brush.merge(plot_area.spPr.Fill); - } - var parents = this.getParentObjects(); - default_brush.calculate(parents.theme, parents.slide, parents.layout, parents.master, {R: 0, G: 0, B: 0, A: 255}, this.clrMapOvr); - plot_area.brush = default_brush; - } -}; - - CChartSpace.prototype.recalculateChartBrush = function() { var default_brush; diff --git a/slide/Editor/Format/Comments.js b/slide/Editor/Format/Comments.js index 898bd40ddd..44f983170c 100644 --- a/slide/Editor/Format/Comments.js +++ b/slide/Editor/Format/Comments.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/Editor/Format/GroupPrototype.js b/slide/Editor/Format/GroupPrototype.js index 1dae4fd918..8b25ecdd98 100644 --- a/slide/Editor/Format/GroupPrototype.js +++ b/slide/Editor/Format/GroupPrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -110,8 +110,6 @@ CGroupShape.prototype.recalcBounds = function() this.recalcInfo.recalculateBounds = true; }; -CGroupShape.prototype.getDrawingObjectsController = CShape.prototype.getDrawingObjectsController; - CGroupShape.prototype.addToRecalculate = CShape.prototype.addToRecalculate; CGroupShape.prototype.convertPixToMM = CShape.prototype.convertPixToMM; CGroupShape.prototype.getHierarchy = CShape.prototype.getHierarchy; diff --git a/slide/Editor/Format/ImagePrototype.js b/slide/Editor/Format/ImagePrototype.js index 6e6f2c9224..a11fa14be6 100644 --- a/slide/Editor/Format/ImagePrototype.js +++ b/slide/Editor/Format/ImagePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -43,7 +43,6 @@ CImageShape.prototype.getParentObjects = CShape.prototype.getParentObjects; CImageShape.prototype.recalculateTransform = CShape.prototype.recalculateTransform; CImageShape.prototype.recalculateBounds = CShape.prototype.recalculateBounds; CImageShape.prototype.getRotateAngle = CShape.prototype.getRotateAngle; -CImageShape.prototype.getDrawingObjectsController = CShape.prototype.getDrawingObjectsController; CImageShape.prototype.handleUpdateTheme = CShape.prototype.handleUpdateTheme; CImageShape.prototype.getIsSingleBody = CShape.prototype.getIsSingleBody; CImageShape.prototype.getSlideIndex = CShape.prototype.getSlideIndex; diff --git a/slide/Editor/Format/Layout.js b/slide/Editor/Format/Layout.js index 68901258b2..12c9316571 100644 --- a/slide/Editor/Format/Layout.js +++ b/slide/Editor/Format/Layout.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -190,9 +190,77 @@ SlideLayout.prototype.sendGraphicObjectProps = function() SlideLayout.prototype.getDrawingsForController = function(){ return this.cSld.spTree; }; - SlideLayout.prototype.getTheme = function(){ - return this.Master && this.Master.Theme || null; + return this.Master && this.Master.getTheme(); +}; + +SlideLayout.prototype.getName = function () { + if (isNotEmptyString(this.cSld.Name)) + return this.cSld.Name; + + function isNotEmptyString(str) { + return typeof str === 'string' && str.length > 0; + } + + const typeNamesMap = { + 0: 'Blank', // blank + 1: 'Chart', // chart + 2: 'Chart and Text', // chartAndTx + 3: 'Clip Art and Text', // clipArtAndTx + 4: 'Clip Art and Vertical Text', // clipArtAndVertTx + 5: 'Custom', // cust + 6: 'Diagram', // dgm + 7: 'Four Objects', // fourObj + 8: 'Media and Text', // mediaAndTx + 9: 'Title and Object', // obj + 10: 'Object and Two Object', // objAndTwoObj + 11: 'Object and Text', // objAndTx + 12: 'Object', // objOnly + 13: 'Object over Tex', // objOverTx + 14: 'Title, Object, and Caption', // objTx + 15: 'Picture and Caption', // picTx + 16: 'Section Header', // secHead + 17: 'Table', // tbl + 18: 'Title', // title + 19: 'Title Only', // titleOnly + 20: 'Two Column Text', // twoColTx + 21: 'Two Objects', // twoObj + 22: 'Two Objects and Object', // twoObjAndObj + 23: 'Two Objects and Text', // twoObjAndTx + 24: 'Two Objects over Text', // twoObjOverTx + 25: 'Two Text and Two Objects', // twoTxTwoObj + 26: 'Text', // tx + 27: 'Text and Chart', // txAndChart + 28: 'Text and Clip Art', // txAndClipArt + 29: 'Text and Media', // txAndMedia + 30: 'Text and Object', // txAndObj + 31: 'Text and Two Objects', // txAndTwoObj + 32: 'Text over Object', // txOverObj + 33: 'Vertical Title and Text', // vertTitleAndTx + 34: 'Vertical Title and Text Over Chart', // vertTitleAndTxOverChart + 35: 'Vertical Text', // vertTx + }; + + const type = this.getType(); + for (let key in c_oAscSlideLayoutType) { + if (c_oAscSlideLayoutType[key] === type) { + return typeNamesMap[type]; + } + } + return 'Text'; +}; +SlideLayout.prototype.getType = function () { + return AscFormat.isRealNumber(this.type) + ? this.type + : (this.calculateType(), this.calculatedType); +} +SlideLayout.prototype.getColorMap = function() { + if(this.Master) { + if(this.Master.clrMap) { + return this.Master.clrMap; + } + } + return AscFormat.GetDefaultColorMap(); }; SlideLayout.prototype.getMaster = function(){ return this.getParentObjects().master; @@ -372,6 +440,8 @@ SlideLayout.prototype.getMaster = function(){ SlideLayout.prototype.Reassign_ImageUrls = Slide.prototype.Reassign_ImageUrls; SlideLayout.prototype.checkDrawingUniNvPr = Slide.prototype.checkDrawingUniNvPr; SlideLayout.prototype.handleAllContents = Slide.prototype.handleAllContents; + SlideLayout.prototype.getAllRasterImagesForDraw = Slide.prototype.getAllRasterImagesForDraw; + SlideLayout.prototype.checkImageDraw = Slide.prototype.checkImageDraw; SlideLayout.prototype.recalculateBackground = function() { @@ -442,13 +512,13 @@ SlideLayout.prototype.getMaster = function(){ if(slide) { if(AscFormat.isRealNumber(slide.num) && slide.num !== this.lastRecalcSlideIndex) { this.lastRecalcSlideIndex = slide.num; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } else { if(-1 !== this.lastRecalcSlideIndex){ this.lastRecalcSlideIndex = -1; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } @@ -468,13 +538,13 @@ SlideLayout.prototype.getMaster = function(){ if(slide) { if(AscFormat.isRealNumber(slide.num) && slide.num !== this.lastRecalcSlideIndex) { this.lastRecalcSlideIndex = slide.num; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } else { if(-1 !== this.lastRecalcSlideIndex){ this.lastRecalcSlideIndex = -1; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } @@ -490,14 +560,14 @@ SlideLayout.prototype.getMaster = function(){ if(slide){ if(AscFormat.isRealNumber(slide.num) && slide.num !== this.lastRecalcSlideIndex){ this.lastRecalcSlideIndex = slide.num; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } else { if(-1 !== this.lastRecalcSlideIndex){ this.lastRecalcSlideIndex = -1; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } @@ -822,6 +892,9 @@ SlideLayout.prototype.getMaster = function(){ SlideLayout.prototype.getPlaceholdersControls = function () { return AscCommonSlide.Slide.prototype.getPlaceholdersControls.call(this); }; + SlideLayout.prototype.getDrawingObjects = function() { + return AscCommonSlide.Slide.prototype.getDrawingObjects.call(this); + }; SlideLayout.prototype.showChartSettings = function () { return AscCommonSlide.Slide.prototype.showChartSettings.call(this); }; diff --git a/slide/Editor/Format/Notes.js b/slide/Editor/Format/Notes.js index 581993845d..b3384b1799 100644 --- a/slide/Editor/Format/Notes.js +++ b/slide/Editor/Format/Notes.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/Editor/Format/NotesMaster.js b/slide/Editor/Format/NotesMaster.js index 1d06279531..509b758c82 100644 --- a/slide/Editor/Format/NotesMaster.js +++ b/slide/Editor/Format/NotesMaster.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/Editor/Format/Presentation.js b/slide/Editor/Format/Presentation.js index 33294df042..f5034508c9 100644 --- a/slide/Editor/Format/Presentation.js +++ b/slide/Editor/Format/Presentation.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -545,7 +545,7 @@ function CPresentation(DrawingDocument) { this.History.Set_LogicDocument(this); if (this.CollaborativeEditing) - this.CollaborativeEditing.m_oLogicDocument = this; + this.CollaborativeEditing.SetLogicDocument(this); } //------------------------------------------------------------------------ @@ -557,7 +557,7 @@ function CPresentation(DrawingDocument) { //Props this.App = null; this.Core = null; - this.CustomProperties = null; + this.CustomProperties = new AscCommon.CCustomProperties();; this.StartPage = 0; // Для совместимости с CDocumentContent this.CurPage = 0; @@ -639,7 +639,7 @@ function CPresentation(DrawingDocument) { this.CompositeInput = null; - this.Spelling = new AscCommonWord.CDocumentSpellChecker(); + this.Spelling = new AscWord.CDocumentSpellChecker(); this.Sections = [];//array of CPrSection @@ -985,11 +985,16 @@ CPresentation.prototype.SetLanguage = function (NewLangId) { }; CPresentation.prototype.GetDefaultLanguage = function () { - var oTextPr = null; + let oTextPr = null; if (this.defaultTextStyle && this.defaultTextStyle.levels[9]) { oTextPr = this.defaultTextStyle.levels[9].DefaultRunPr; } - return oTextPr && oTextPr.Lang.Val ? oTextPr.Lang.Val : 1033; + const lcid_EnUS = 1033; + let nLang = lcid_EnUS; + if(oTextPr && oTextPr.Lang && AscFormat.isRealNumber(oTextPr.Lang.Val)) { + nLang = oTextPr.Lang.Val; + } + return nLang; }; CPresentation.prototype.collectHFProps = function (oSlide) { @@ -1020,9 +1025,12 @@ CPresentation.prototype.collectHFProps = function (oSlide) { oContent = oDTShape.getDocContent(); if (oContent && oContent.CalculateAllFields) { oDateTime = new AscCommonSlide.CAscDateTime(); - oContent.SetApplyToAll(true); - sText = oContent.GetSelectedText(false, {NewLine: true, NewParagraph: true}); - oContent.SetApplyToAll(false); + sText = ""; + if(oSlideHF.get_ShowDateTime()) { + oContent.SetApplyToAll(true); + sText = oContent.GetSelectedText(false, {NewLine: true, NewParagraph: true}); + oContent.SetApplyToAll(false); + } oDateTime.put_CustomDateTime(sText); oContent.CalculateAllFields(); oField = oContent.GetFieldByType2('datetime'); @@ -1138,10 +1146,11 @@ CPresentation.prototype.getHFProperties = function () { if (oProps.Slide) { oProps.Slide.slide = oSlide; } - if (oSlide) { - oProps.put_Notes(this.collectHFProps(oSlide.notes)); + let oNotes = this.GetCurrentNotes(); + if (oNotes) { + oProps.put_Notes(this.collectHFProps(oNotes)); if (oProps.Notes) { - oProps.Notes.notes = oSlide.notes; + oProps.Notes.notes = oNotes; } } return oProps; @@ -1152,21 +1161,146 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { if (bAll && this.Document_Is_SelectionLocked(AscCommon.changestype_HdrFtr)) { return; } - if(this.IsMasterMode()) { - bAll = true; - } - History.Create_NewPoint(AscDFH.historydescription_Presentation_SetHF); + this.StartAction(AscDFH.historydescription_Presentation_SetHF); let oSlideProps = oProps.get_Slide(); let oNotesProps = oProps.get_Notes(); - let i, j, oSlide, oMaster, oParents, oHF, oLayout, oSp, - sText, oContent, oDateTime, sDateTime, sCustomDateTime, oFld, oParagraph, bRemoveOnTitle, nLang, aSelectedSlides, nSlideIndex; + let i, j, oSlide, oMaster, oParents, oLayout, oSp, + sText, oContent, oDateTime, sDateTime, sCustomDateTime, bRemoveOnTitle, nLang, aSelectedSlides, nSlideIndex; let oNotes; let oNotesMaster; let nLayout; let bRecalculate = false; + const nDefaultLang = this.GetDefaultLanguage(); + const oPresentation = this; + function fAddTextToPhInSlideLikeObject(oSlideLikeObject, nPhType, sText) { + if(typeof sText === "string") { + let oSp = oSlideLikeObject.getMatchingShape(nPhType, null, false, {}); + let oContent = oSp && oSp.getDocContent && oSp.getDocContent(); + if (oContent) { + AscFormat.CheckContentTextAndAdd(oContent, sText); + } + } + } + function fAddFooterToSlideLikeObject(oSlideLikeObject, sFooterText) { + fAddTextToPhInSlideLikeObject(oSlideLikeObject, AscFormat.phType_ftr, sFooterText); + } + function fAddHeaderToSlideLikeObject(oSlideLikeObject, sHeaderText) { + fAddTextToPhInSlideLikeObject(oSlideLikeObject, AscFormat.phType_hdr, sHeaderText); + } + function fAddDateTimeToSlideLikeObject(oSlideLikeObject, sDateTimeFieldType, sCustomDateTime, nLang) { + let oSp = oSlideLikeObject.getMatchingShape(AscFormat.phType_dt, null, false, {}); + if (oSp) { + let oContent = oSp.getDocContent && oSp.getDocContent(); + if (oContent) { + if (sDateTimeFieldType) { + oContent.ClearContent(true); + let oParagraph = oContent.Content[0]; + let oFld = new AscCommonWord.CPresentationField(oParagraph); + oFld.SetGuid(AscCommon.CreateGUID()); + oFld.SetFieldType(sDateTimeFieldType); + if(AscFormat.isRealNumber(nLang)) { + oFld.Set_Lang_Val(nLang); + } + else { + oFld.Set_Lang_Val(nDefaultLang); + } + if (typeof sCustomDateTime === "string") { + oFld.CanAddToContent = true; + oFld.AddText(sCustomDateTime); + oFld.CanAddToContent = false; + } + oParagraph.Internal_Content_Add(0, oFld); + } else { + AscFormat.CheckContentTextAndAdd(oContent, sCustomDateTime); + } + } + } + } + function fCopyPlaceholderToLikeObject(oSlide, oTemplate, nPhType) { + let oSp = oTemplate.getMatchingShape(nPhType, null, false, {}); + if (oSp) { + oSp = oSp.copy(undefined); + oSp.clearLang(); + oSlide.addToSpTreeToPos(undefined, oSp); + oSp.setParent(oSlide); + } + } + function fApplyPropsToSlide(oSlide, oSlideProps) { + if(!oSlide) return; + let oParents = oSlide.getParentObjects(); + let oLayout = oParents.layout; + let bRemoveOnTitle = oLayout.type === AscFormat.nSldLtTTitle && oPresentation.showSpecialPlsOnTitleSld === false; + let oSp, sText, oDateTime, sDateTime, sCustomDateTime; + if (oSlideProps.get_ShowSlideNum() && !bRemoveOnTitle) { + if (!oSlide.getMatchingShape(AscFormat.phType_sldNum, null, false, {})) { + fCopyPlaceholderToLikeObject(oSlide, oLayout, AscFormat.phType_sldNum); + } + } else { + oSp = oSlide.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); + if (oSp) { + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); + } + } + + if (oSlideProps.get_ShowFooter() && !bRemoveOnTitle) { + sText = oSlideProps.get_Footer(); + oSp = oSlide.getMatchingShape(AscFormat.phType_ftr, null, false, {}); + if (!oSp) { + fCopyPlaceholderToLikeObject(oSlide, oLayout, AscFormat.phType_ftr); + } + fAddFooterToSlideLikeObject(oSlide, sText); + } else { + oSp = oSlide.getMatchingShape(AscFormat.phType_ftr, null, false, {}); + if (oSp) { + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); + } + } + + if (oSlideProps.get_ShowHeader() && !bRemoveOnTitle) { + sText = oSlideProps.get_Header(); + oSp = oSlide.getMatchingShape(AscFormat.phType_hdr, null, false, {}); + if (!oSp) { + fCopyPlaceholderToLikeObject(oSlide, oLayout, AscFormat.phType_hdr); + } + fAddHeaderToSlideLikeObject(oSlide, sText); + } else { + oSp = oSlide.getMatchingShape(AscFormat.phType_hdr, null, false, {}); + if (oSp) { + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); + } + } + + if (oSlideProps.get_ShowDateTime() && !bRemoveOnTitle) { + oDateTime = oSlideProps.get_DateTime(); + sDateTime = ""; + sCustomDateTime = ""; + if (oDateTime) { + sDateTime = oDateTime.get_DateTime(); + sCustomDateTime = oDateTime.get_CustomDateTime(); + if (sDateTime) { + sCustomDateTime = oDateTime.get_DateTimeExamples()[sDateTime]; + } + } + oSp = oSlide.getMatchingShape(AscFormat.phType_dt, null, false, {}); + if (!oSp) { + fCopyPlaceholderToLikeObject(oSlide, oLayout, AscFormat.phType_dt); + } + fAddDateTimeToSlideLikeObject(oSlide, sDateTime, sCustomDateTime, oDateTime.get_Lang()); + } else { + oSp = oSlide.getMatchingShape(AscFormat.phType_dt, null, false, {}); + if (oSp) { + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); + } + } + } + if (oSlideProps) { - var bShowOnTitleSlide = oSlideProps.get_ShowOnTitleSlide(); + let bShowOnTitleSlide = oSlideProps.get_ShowOnTitleSlide(); if (bShowOnTitleSlide) { if (this.showSpecialPlsOnTitleSld !== null) { this.setShowSpecialPlsOnTitleSld(null); @@ -1176,425 +1310,277 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { this.setShowSpecialPlsOnTitleSld(false); } } - if (bAll) { - var oMastersMap = {}; - for (i = 0; i < this.Slides.length; ++i) { - oSlide = this.Slides[i]; - oParents = oSlide.getParentObjects(); - oMaster = oParents.master; - oLayout = oParents.layout; - bRemoveOnTitle = oLayout.type === AscFormat.nSldLtTTitle && this.showSpecialPlsOnTitleSld === false; - if (oMaster) { + if(this.IsMasterMode()) { + if(bAll) { + for(let nMaster = 0; nMaster < this.slideMasters.length; ++nMaster) { + oMaster = this.slideMasters[nMaster]; if (!oMaster.hf) { oMaster.setHF(new AscFormat.HF()); } - oHF = oMaster.hf; - if (oSlideProps.get_ShowSlideNum()) { - if (oHF.sldNum !== null) { - oHF.setSldNum(null); - } - oSp = oSlide.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); - if (!bRemoveOnTitle) { - if (!oSp) { - oSp = oLayout.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); - if (oSp) { - oSp = oSp.copy(undefined); - oSp.clearLang(); - oSlide.addToSpTreeToPos(undefined, oSp); - oSp.setParent(oSlide); - } + oMaster.hf.applySettings(oSlideProps); + if (oSlideProps.get_ShowFooter()) { + sText = oSlideProps.get_Footer(); + if (typeof sText === "string") { + for (j = 0; j < oMaster.sldLayoutLst.length; ++j) { + fAddFooterToSlideLikeObject(oMaster.sldLayoutLst[j], sText); } - } else { - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); + fAddFooterToSlideLikeObject(oMaster, sText); + } + } + if (oSlideProps.get_ShowHeader()) { + sText = oSlideProps.get_Header(); + if (typeof sText === "string") { + for (j = 0; j < oMaster.sldLayoutLst.length; ++j) { + fAddHeaderToSlideLikeObject(oMaster.sldLayoutLst[j], sText); } + fAddHeaderToSlideLikeObject(oMaster, sText); } - } else { - if (oHF.sldNum !== false) { - oHF.setSldNum(false); + } + if (oSlideProps.get_ShowDateTime()) { + oDateTime = oSlideProps.get_DateTime(); + + sDateTime = ""; + sCustomDateTime = ""; + nLang = nDefaultLang; + if (oDateTime) { + sDateTime = oDateTime.get_DateTime(); + sCustomDateTime = oDateTime.get_CustomDateTime(); + nLang = oDateTime.get_Lang(); + if (typeof sDateTime === "string" || typeof sCustomDateTime === "string") { + if (sDateTime) { + sCustomDateTime = oDateTime.get_DateTimeExamples()[sDateTime]; + } + for (j = 0; j < oMaster.sldLayoutLst.length; ++j) { + fAddDateTimeToSlideLikeObject(oMaster.sldLayoutLst[j], sDateTime, sCustomDateTime, nLang); + } + fAddDateTimeToSlideLikeObject(oMaster, sDateTime, sCustomDateTime, nLang); + } } - oSp = oSlide.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); + } + for (nLayout = 0; nLayout < oMaster.sldLayoutLst.length; ++nLayout) { + oLayout = oMaster.sldLayoutLst[nLayout]; + if (oLayout.hf) { + oLayout.setHF(null); } } - + } + for(let nSlide = 0; nSlide < this.Slides.length; ++nSlide) { + fApplyPropsToSlide(this.Slides[nSlide], oSlideProps); + } + } + else { + let aSelected = this.GetSelectedSlideObjects(); + let oDependentSlides = {}; + for(let nIdx = 0; nIdx < aSelected.length; ++nIdx) { + let oSlideLikeObject = aSelected[nIdx]; + if (!oSlideLikeObject.hf) { + oSlideLikeObject.setHF(new AscFormat.HF()); + } + oSlideLikeObject.hf.applySettings(oSlideProps); if (oSlideProps.get_ShowFooter()) { - if (oHF.ftr !== null) { - oHF.setFtr(null); - } sText = oSlideProps.get_Footer(); - if (!oMastersMap[oMaster.Get_Id()]) { - if (typeof sText === "string") { - for (j = 0; j < oMaster.sldLayoutLst.length; ++j) { - oSp = oMaster.sldLayoutLst[j].getMatchingShape(AscFormat.phType_ftr, null, false, {}); - oContent = oSp && oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - AscFormat.CheckContentTextAndAdd(oContent, sText); - } - } - oSp = oMaster.getMatchingShape(AscFormat.phType_ftr, null, false, {}); - oContent = oSp && oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - AscFormat.CheckContentTextAndAdd(oContent, sText); + if (typeof sText === "string") { + fAddFooterToSlideLikeObject(oSlideLikeObject, sText); + } + } + if (oSlideProps.get_ShowHeader()) { + sText = oSlideProps.get_Header(); + if (typeof sText === "string") { + fAddHeaderToSlideLikeObject(oSlideLikeObject, sText); + } + } + if (oSlideProps.get_ShowDateTime()) { + oDateTime = oSlideProps.get_DateTime(); + sDateTime = ""; + sCustomDateTime = ""; + if (oDateTime) { + sDateTime = oDateTime.get_DateTime(); + sCustomDateTime = oDateTime.get_CustomDateTime(); + if (typeof sDateTime === "string" || typeof sCustomDateTime === "string") { + if (sDateTime) { + sCustomDateTime = oDateTime.get_DateTimeExamples()[sDateTime]; } + fAddDateTimeToSlideLikeObject(oSlideLikeObject, sDateTime, sCustomDateTime, oDateTime.get_Lang()); } } - oSp = oSlide.getMatchingShape(AscFormat.phType_ftr, null, false, {}); - if (!bRemoveOnTitle) { - if (!oSp) { - oSp = oLayout.getMatchingShape(AscFormat.phType_ftr, null, false, {}); - if (oSp) { - oSp = oSp.copy(undefined); - oSp.clearLang(); - oSlide.addToSpTreeToPos(undefined, oSp); - oSp.setParent(oSlide); + } + for(let nSlide = 0; nSlide < this.Slides.length; ++nSlide) { + let oSlide = this.Slides[nSlide]; + let oParentObjects = oSlide.getParentObjects(); + if(oParentObjects.layout === oSlideLikeObject || oParentObjects.master === oSlideLikeObject) { + oDependentSlides[oSlide.Id] = oSlide; + } + } + } + for(let sId in oDependentSlides) { + if(oDependentSlides.hasOwnProperty(sId)) { + let oSlide = oDependentSlides[sId]; + fApplyPropsToSlide(oSlide, oSlideProps); + } + } + } + } + else { + if (bAll) { + var oMastersMap = {}; + for (i = 0; i < this.Slides.length; ++i) { + oSlide = this.Slides[i]; + oParents = oSlide.getParentObjects(); + oMaster = oParents.master; + oLayout = oParents.layout; + bRemoveOnTitle = oLayout.type === AscFormat.nSldLtTTitle && this.showSpecialPlsOnTitleSld === false; + if (oMaster) { + if (!oMaster.hf) { + oMaster.setHF(new AscFormat.HF()); + } + oMaster.hf.applySettings(oSlideProps); + if (oSlideProps.get_ShowSlideNum()) { + oSp = oSlide.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); + if (!bRemoveOnTitle) { + if (!oSp) { + fCopyPlaceholderToLikeObject(oSlide, oLayout, AscFormat.phType_sldNum); } } else { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent && typeof sText === "string") { - AscFormat.CheckContentTextAndAdd(oContent, sText); + if (oSp) { + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); } } } else { + oSp = oSlide.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); if (oSp) { oSlide.removeFromSpTreeById(oSp.Get_Id()); oSp.setBDeleted(true); } } - } else { - if (oHF.ftr !== false) { - oHF.setFtr(false); - } - oSp = oSlide.getMatchingShape(AscFormat.phType_ftr, null, false, {}); - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); - } - } - if (oSlideProps.get_ShowHeader()) { - if (oHF.hdr !== null) { - oHF.setHdr(null); - } - sText = oSlideProps.get_Header(); - if (!oMastersMap[oMaster.Get_Id()]) { - if (typeof sText === "string") { - for (j = 0; j < oMaster.sldLayoutLst.length; ++j) { - oSp = oMaster.sldLayoutLst[j].getMatchingShape(AscFormat.phType_hdr, null, false, {}); - oContent = oSp && oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - AscFormat.CheckContentTextAndAdd(oContent, sText); + if (oSlideProps.get_ShowFooter()) { + sText = oSlideProps.get_Footer(); + if (!oMastersMap[oMaster.Get_Id()]) { + if (typeof sText === "string") { + for (j = 0; j < oMaster.sldLayoutLst.length; ++j) { + fAddFooterToSlideLikeObject(oMaster.sldLayoutLst[j], sText); } - } - oSp = oMaster.getMatchingShape(AscFormat.phType_hdr, null, false, {}); - oContent = oSp && oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - AscFormat.CheckContentTextAndAdd(oContent, sText); + fAddFooterToSlideLikeObject(oMaster, sText); } } - } - - - oSp = oSlide.getMatchingShape(AscFormat.phType_hdr, null, false, {}); - if (!bRemoveOnTitle) { - if (!oSp) { - oSp = oLayout.getMatchingShape(AscFormat.phType_hdr, null, false, {}); - if (oSp) { - oSp = oSp.copy(undefined); - oSp.clearLang(); - oSlide.addToSpTreeToPos(undefined, oSp); - oSp.setParent(oSlide); + oSp = oSlide.getMatchingShape(AscFormat.phType_ftr, null, false, {}); + if (!bRemoveOnTitle) { + if (!oSp) { + fCopyPlaceholderToLikeObject(oSlide, oLayout, AscFormat.phType_ftr); + } else { + fAddFooterToSlideLikeObject(oSlide, sText); } } else { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent && typeof sText === "string") { - AscFormat.CheckContentTextAndAdd(oContent, sText); + if (oSp) { + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); } } } else { + oSp = oSlide.getMatchingShape(AscFormat.phType_ftr, null, false, {}); if (oSp) { oSlide.removeFromSpTreeById(oSp.Get_Id()); oSp.setBDeleted(true); } } - } else { - if (oHF.hdr !== false) { - oHF.setHdr(false); - } - oSp = oSlide.getMatchingShape(AscFormat.phType_hdr, null, false, {}); - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); - } - } - - if (oSlideProps.get_ShowDateTime()) { - if (oHF.dt !== null) { - oHF.setDt(null); - } - oDateTime = oSlideProps.get_DateTime(); - - sDateTime = ""; - sCustomDateTime = ""; - nLang = 1033; - if (oDateTime) { - sDateTime = oDateTime.get_DateTime(); - sCustomDateTime = oDateTime.get_CustomDateTime(); - nLang = oDateTime.get_Lang(); - if (!AscFormat.isRealNumber(nLang)) { - nLang = 1033; - } + if (oSlideProps.get_ShowHeader()) { + sText = oSlideProps.get_Header(); if (!oMastersMap[oMaster.Get_Id()]) { - if (typeof sDateTime === "string" || typeof sCustomDateTime === "string") { - if (sDateTime) { - sCustomDateTime = oDateTime.get_DateTimeExamples()[sDateTime]; - } + if (typeof sText === "string") { for (j = 0; j < oMaster.sldLayoutLst.length; ++j) { - oSp = oMaster.sldLayoutLst[j].getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (oSp) { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - if (sDateTime) { - oContent.ClearContent(true); - oParagraph = oContent.Content[0]; - oFld = new AscCommonWord.CPresentationField(oParagraph); - oFld.SetGuid(AscCommon.CreateGUID()); - oFld.SetFieldType(sDateTime); - oFld.Set_Lang_Val(nLang); - if (typeof sCustomDateTime === "string") { - oFld.CanAddToContent = true; - oFld.AddText(sCustomDateTime); - oFld.CanAddToContent = false; - } - oParagraph.Internal_Content_Add(0, oFld); - } else { - AscFormat.CheckContentTextAndAdd(oContent, sCustomDateTime); - } - } - } - } - oSp = oMaster.getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (oSp) { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - if (sDateTime) { - oContent.ClearContent(true); - oParagraph = oContent.Content[0]; - oFld = new AscCommonWord.CPresentationField(oParagraph); - oFld.SetGuid(AscCommon.CreateGUID()); - oFld.SetFieldType(sDateTime); - oFld.Set_Lang_Val(nLang); - if (typeof sCustomDateTime === "string") { - oFld.CanAddToContent = true; - oFld.AddText(sCustomDateTime); - oFld.CanAddToContent = false; - } - oParagraph.Internal_Content_Add(0, oFld); - } else { - AscFormat.CheckContentTextAndAdd(oContent, sCustomDateTime); - } - } + fAddHeaderToSlideLikeObject(oMaster.sldLayoutLst[j], sText); } + fAddHeaderToSlideLikeObject(oMaster, sText); } } - } - oSp = oSlide.getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (!bRemoveOnTitle) { - if (!oSp) { - oSp = oLayout.getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (oSp) { - oSp = oSp.copy(undefined); - oSp.clearLang(); - oSlide.addToSpTreeToPos(undefined, oSp); - oSp.setParent(oSlide); + + + oSp = oSlide.getMatchingShape(AscFormat.phType_hdr, null, false, {}); + if (!bRemoveOnTitle) { + if (!oSp) { + fCopyPlaceholderToLikeObject(oSlide, oLayout, AscFormat.phType_hdr); + } else { + fAddHeaderToSlideLikeObject(oSlide, sText); } } else { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - if (sDateTime) { - oContent.ClearContent(true); - oParagraph = oContent.Content[0]; - oFld = new AscCommonWord.CPresentationField(oParagraph); - oFld.SetGuid(AscCommon.CreateGUID()); - oFld.SetFieldType(sDateTime); - oFld.Set_Lang_Val(nLang); - if (typeof sCustomDateTime === "string") { - oFld.CanAddToContent = true; - oFld.AddText(sCustomDateTime); - oFld.CanAddToContent = false; - } - oParagraph.Internal_Content_Add(0, oFld); - } else { - AscFormat.CheckContentTextAndAdd(oContent, sCustomDateTime); - } + if (oSp) { + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); } } } else { + oSp = oSlide.getMatchingShape(AscFormat.phType_hdr, null, false, {}); if (oSp) { oSlide.removeFromSpTreeById(oSp.Get_Id()); oSp.setBDeleted(true); } } - } else { - if (oHF.dt !== false) { - oHF.setDt(false); - } - oSp = oSlide.getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); - } - } - - if (!oMastersMap[oMaster.Get_Id()]) { - for (nLayout = 0; nLayout < oMaster.sldLayoutLst.length; ++nLayout) { - oLayout = oMaster.sldLayoutLst[nLayout]; - if (oLayout.hf) { - oLayout.setHF(null); - } - } - } - oMastersMap[oMaster.Get_Id()] = oMaster; - } - } - } else { - aSelectedSlides = this.GetSelectedSlides(); - for (nSlideIndex = 0; nSlideIndex < aSelectedSlides.length; ++nSlideIndex) { - oSlide = this.GetSlide(aSelectedSlides[nSlideIndex]); - if (oSlide) { - oParents = oSlide.getParentObjects(); - oLayout = oParents.layout; - bRemoveOnTitle = oLayout.type === AscFormat.nSldLtTTitle && this.showSpecialPlsOnTitleSld === false; - if (oSlideProps.get_ShowSlideNum() && !bRemoveOnTitle) { - if (!oSlide.getMatchingShape(AscFormat.phType_sldNum, null, false, {})) { - oSp = oLayout.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); - if (oSp) { - oSp = oSp.copy(undefined); - oSp.clearLang(); - oSlide.addToSpTreeToPos(undefined, oSp); - oSp.setParent(oSlide); - } - } - } else { - oSp = oSlide.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); - } - } - if (oSlideProps.get_ShowFooter() && !bRemoveOnTitle) { - sText = oSlideProps.get_Footer(); - oSp = oSlide.getMatchingShape(AscFormat.phType_ftr, null, false, {}); - if (!oSp) { - oSp = oLayout.getMatchingShape(AscFormat.phType_ftr, null, false, {}); - if (oSp) { - oSp = oSp.copy(undefined); - oSp.clearLang(); - oSlide.addToSpTreeToPos(undefined, oSp); - oSp.setParent(oSlide); + if (oSlideProps.get_ShowDateTime()) { + oDateTime = oSlideProps.get_DateTime(); + + sDateTime = ""; + sCustomDateTime = ""; + nLang = nDefaultLang; + if (oDateTime) { + sDateTime = oDateTime.get_DateTime(); + sCustomDateTime = oDateTime.get_CustomDateTime(); + nLang = oDateTime.get_Lang(); + if (!oMastersMap[oMaster.Get_Id()]) { + if (typeof sDateTime === "string" || typeof sCustomDateTime === "string") { + if (sDateTime) { + sCustomDateTime = oDateTime.get_DateTimeExamples()[sDateTime]; + } + for (j = 0; j < oMaster.sldLayoutLst.length; ++j) { + fAddDateTimeToSlideLikeObject(oMaster.sldLayoutLst[j], sDateTime, sCustomDateTime, nLang); + } + fAddDateTimeToSlideLikeObject(oMaster, sDateTime, sCustomDateTime, nLang); + oSp = oMaster.getMatchingShape(AscFormat.phType_dt, null, false, {}); + } + } } - } - if (oSp) { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent && typeof sText === "string") { - AscFormat.CheckContentTextAndAdd(oContent, sText); + oSp = oSlide.getMatchingShape(AscFormat.phType_dt, null, false, {}); + if (!bRemoveOnTitle) { + if (!oSp) { + fCopyPlaceholderToLikeObject(oSlide, oLayout, AscFormat.phType_dt); + } else { + fAddDateTimeToSlideLikeObject(oSlide, sDateTime, sCustomDateTime, oDateTime.get_Lang()); + } + } else { + if (oSp) { + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); + } } - } - } else { - oSp = oSlide.getMatchingShape(AscFormat.phType_ftr, null, false, {}); - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); - } - } - - if (oSlideProps.get_ShowHeader() && !bRemoveOnTitle) { - sText = oSlideProps.get_Header(); - oSp = oSlide.getMatchingShape(AscFormat.phType_hdr, null, false, {}); - if (!oSp) { - oSp = oLayout.getMatchingShape(AscFormat.phType_hdr, null, false, {}); + } else { + oSp = oSlide.getMatchingShape(AscFormat.phType_dt, null, false, {}); if (oSp) { - oSp = oSp.copy(undefined); - oSp.clearLang(); - oSlide.addToSpTreeToPos(undefined, oSp); - oSp.setParent(oSlide); - } - } - if (oSp) { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent && typeof sText === "string") { - AscFormat.CheckContentTextAndAdd(oContent, sText); + oSlide.removeFromSpTreeById(oSp.Get_Id()); + oSp.setBDeleted(true); } } - } else { - oSp = oSlide.getMatchingShape(AscFormat.phType_hdr, null, false, {}); - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); - } - } - if (oSlideProps.get_ShowDateTime() && !bRemoveOnTitle) { - oDateTime = oSlideProps.get_DateTime(); - sDateTime = ""; - sCustomDateTime = ""; - nLang = 1033; - if (oDateTime) { - sDateTime = oDateTime.get_DateTime(); - sCustomDateTime = oDateTime.get_CustomDateTime(); - if (sDateTime) { - sCustomDateTime = oDateTime.get_DateTimeExamples()[sDateTime]; - } - nLang = oDateTime.get_Lang(); - if (!AscFormat.isRealNumber(nLang)) { - nLang = 1033; - } - } - oSp = oSlide.getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (!oSp) { - oSp = oLayout.getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (oSp) { - oSp = oSp.copy(undefined); - oSp.clearLang(); - oSlide.addToSpTreeToPos(undefined, oSp); - oSp.setParent(oSlide); - } - } - if (oSp) { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - if (sDateTime) { - oContent.ClearContent(true); - oParagraph = oContent.Content[0]; - oFld = new AscCommonWord.CPresentationField(oParagraph); - oFld.SetGuid(AscCommon.CreateGUID()); - oFld.SetFieldType(sDateTime); - oFld.Set_Lang_Val(nLang); - if (typeof sCustomDateTime === "string") { - oFld.CanAddToContent = true; - oFld.AddText(sCustomDateTime); - oFld.CanAddToContent = false; - } - oParagraph.Internal_Content_Add(0, oFld); - } else { - AscFormat.CheckContentTextAndAdd(oContent, sCustomDateTime); + if (!oMastersMap[oMaster.Get_Id()]) { + for (nLayout = 0; nLayout < oMaster.sldLayoutLst.length; ++nLayout) { + oLayout = oMaster.sldLayoutLst[nLayout]; + if (oLayout.hf) { + oLayout.setHF(null); } } } - } else { - oSp = oSlide.getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (oSp) { - oSlide.removeFromSpTreeById(oSp.Get_Id()); - oSp.setBDeleted(true); - } + oMastersMap[oMaster.Get_Id()] = oMaster; } } } + else { + aSelectedSlides = this.GetSelectedSlides(); + for (nSlideIndex = 0; nSlideIndex < aSelectedSlides.length; ++nSlideIndex) { + oSlide = this.GetSlide(aSelectedSlides[nSlideIndex]); + fApplyPropsToSlide(oSlide, oSlideProps); + } + } } bRecalculate = true; } @@ -1614,11 +1600,8 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { if (!oNotesMaster.hf) { oNotesMaster.setHF(new AscFormat.HF()); } - oHF = oNotesMaster.hf; + oNotesMaster.hf.applySettings(oNotesProps); if (oNotesProps.get_ShowSlideNum()) { - if (oHF.sldNum !== null) { - oHF.setSldNum(null); - } oSp = oNotes.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); if (!oSp) { oSp = oNotesMaster.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); @@ -1630,9 +1613,6 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { } } } else { - if (oHF.sldNum !== false) { - oHF.setSldNum(false); - } oSp = oNotes.getMatchingShape(AscFormat.phType_sldNum, null, false, {}); if (oSp) { oNotes.removeFromSpTreeById(oSp.Get_Id()); @@ -1641,9 +1621,6 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { } if (oNotesProps.get_ShowFooter()) { - if (oHF.ftr !== null) { - oHF.setFtr(null); - } sText = oNotesProps.get_Footer(); if (!oNotesMastersMap[oNotesMaster.Get_Id()]) { if (typeof sText === "string") { @@ -1670,9 +1647,6 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { } } } else { - if (oHF.ftr !== false) { - oHF.setFtr(false); - } oSp = oNotes.getMatchingShape(AscFormat.phType_ftr, null, false, {}); if (oSp) { oNotes.removeFromSpTreeById(oSp.Get_Id()); @@ -1681,18 +1655,9 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { } if (oNotesProps.get_ShowHeader()) { - if (oHF.hdr !== null) { - oHF.setHdr(null); - } sText = oNotesProps.get_Header(); if (!oNotesMastersMap[oNotesMaster.Get_Id()]) { - if (typeof sText === "string") { - oSp = oNotesMaster.getMatchingShape(AscFormat.phType_hdr, null, false, {}); - oContent = oSp && oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - AscFormat.CheckContentTextAndAdd(oContent, sText); - } - } + fAddHeaderToSlideLikeObject(oNotesMaster, sText); } @@ -1706,15 +1671,9 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { oSp.setParent(oNotes); } } else { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent && typeof sText === "string") { - AscFormat.CheckContentTextAndAdd(oContent, sText); - } + fAddHeaderToSlideLikeObject(oNotes, sText); } } else { - if (oHF.hdr !== false) { - oHF.setHdr(false); - } oSp = oNotes.getMatchingShape(AscFormat.phType_hdr, null, false, {}); if (oSp) { oNotes.removeFromSpTreeById(oSp.Get_Id()); @@ -1724,48 +1683,21 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { if (oNotesProps.get_ShowDateTime()) { - if (oHF.dt !== null) { - oHF.setDt(null); - } oDateTime = oNotesProps.get_DateTime(); sDateTime = ""; sCustomDateTime = ""; - nLang = 1033; + nLang = nDefaultLang; if (oDateTime) { sDateTime = oDateTime.get_DateTime(); sCustomDateTime = oDateTime.get_CustomDateTime(); nLang = oDateTime.get_Lang(); - if (!AscFormat.isRealNumber(nLang)) { - nLang = 1033; - } if (!oNotesMastersMap[oNotesMaster.Get_Id()]) { if (typeof sDateTime === "string" || typeof sCustomDateTime === "string") { if (sDateTime) { sCustomDateTime = oDateTime.get_DateTimeExamples()[sDateTime]; } - oSp = oNotesMaster.getMatchingShape(AscFormat.phType_dt, null, false, {}); - if (oSp) { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - if (sDateTime) { - oContent.ClearContent(true); - oParagraph = oContent.Content[0]; - oFld = new AscCommonWord.CPresentationField(oParagraph); - oFld.SetGuid(AscCommon.CreateGUID()); - oFld.SetFieldType(sDateTime); - oFld.Set_Lang_Val(nLang); - if (typeof sCustomDateTime === "string") { - oFld.CanAddToContent = true; - oFld.AddText(sCustomDateTime); - oFld.CanAddToContent = false; - } - oParagraph.Internal_Content_Add(0, oFld); - } else { - AscFormat.CheckContentTextAndAdd(oContent, sCustomDateTime); - } - } - } + fAddDateTimeToSlideLikeObject(oNotesMaster, sDateTime, sCustomDateTime, nLang); } } } @@ -1780,30 +1712,9 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { oSp.setParent(oNotes); } } else { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - if (sDateTime) { - oContent.ClearContent(true); - oParagraph = oContent.Content[0]; - oFld = new AscCommonWord.CPresentationField(oParagraph); - oFld.SetGuid(AscCommon.CreateGUID()); - oFld.SetFieldType(sDateTime); - oFld.Set_Lang_Val(nLang); - if (typeof sCustomDateTime === "string") { - oFld.CanAddToContent = true; - oFld.AddText(sCustomDateTime); - oFld.CanAddToContent = false; - } - oParagraph.Internal_Content_Add(0, oFld); - } else { - AscFormat.CheckContentTextAndAdd(oContent, sCustomDateTime); - } - } + fAddDateTimeToSlideLikeObject(oNotes, sDateTime, sCustomDateTime, nLang); } } else { - if (oHF.dt !== false) { - oHF.setDt(false); - } oSp = oNotes.getMatchingShape(AscFormat.phType_dt, null, false, {}); if (oSp) { oNotes.removeFromSpTreeById(oSp.Get_Id()); @@ -1883,12 +1794,7 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { oSp.setParent(oNotes); } } - if (oSp) { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent && typeof sText === "string") { - AscFormat.CheckContentTextAndAdd(oContent, sText); - } - } + fAddHeaderToSlideLikeObject(oNotes, sText); } else { oSp = oNotes.getMatchingShape(AscFormat.phType_hdr, null, false, {}); if (oSp) { @@ -1901,7 +1807,7 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { oDateTime = oNotesProps.get_DateTime(); sDateTime = ""; sCustomDateTime = ""; - nLang = 1033; + nLang = nDefaultLang; if (oDateTime) { sDateTime = oDateTime.get_DateTime(); sCustomDateTime = oDateTime.get_CustomDateTime(); @@ -1910,7 +1816,7 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { } nLang = oDateTime.get_Lang(); if (!AscFormat.isRealNumber(nLang)) { - nLang = 1033; + nLang = nDefaultLang; } } oSp = oNotes.getMatchingShape(AscFormat.phType_dt, null, false, {}); @@ -1923,27 +1829,7 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { oSp.setParent(oNotes); } } - if (oSp) { - oContent = oSp.getDocContent && oSp.getDocContent(); - if (oContent) { - if (sDateTime) { - oContent.ClearContent(true); - oParagraph = oContent.Content[0]; - oFld = new AscCommonWord.CPresentationField(oParagraph); - oFld.SetGuid(AscCommon.CreateGUID()); - oFld.SetFieldType(sDateTime); - oFld.Set_Lang_Val(nLang); - if (typeof sCustomDateTime === "string") { - oFld.CanAddToContent = true; - oFld.AddText(sCustomDateTime); - oFld.CanAddToContent = false; - } - oParagraph.Internal_Content_Add(0, oFld); - } else { - AscFormat.CheckContentTextAndAdd(oContent, sCustomDateTime); - } - } - } + fAddDateTimeToSlideLikeObject(oNotes, sDateTime, sCustomDateTime, nLang); } else { oSp = oNotes.getMatchingShape(AscFormat.phType_dt, null, false, {}); if (oSp) { @@ -1962,6 +1848,7 @@ CPresentation.prototype.setHFProperties = function (oProps, bAll) { this.Document_UpdateInterfaceState(); this.Document_UpdateRulersState(); } + this.FinalizeAction(true); }; @@ -2019,7 +1906,7 @@ CPresentation.prototype.addDateTime = function (oPr) { var sFieldType = oPr.get_DateTime(); var nLang = oPr.get_Lang(); if (!AscFormat.isRealNumber(nLang)) { - nLang = 1033; + nLang = this.GetDefaultLanguage(); } if (typeof sFieldType === "string" && sFieldType.length > 0) { oFld = new AscCommonWord.CPresentationField(oParagraph); @@ -2191,6 +2078,13 @@ CPresentation.prototype.GetSlideIndex = function (oSlide) { } return -1; }; +CPresentation.prototype.GetThumbnailsCount = function() { + + if (this.Api.WordControl.Thumbnails) { + return this.Api.WordControl.Thumbnails.m_arrPages.length; + } + return this.GetSlidesCount(); +}; CPresentation.prototype.GetSlideNumber = function (nIdx) { if(!this.IsMasterMode()) { return nIdx + this.getFirstSlideNumber(); @@ -2223,10 +2117,22 @@ CPresentation.prototype.GetCurrentMaster = function () { let oParents = oSlide.getParentObjects(); return oParents.master; }; +CPresentation.prototype.GetCurrentNotes = function () { + let oCurSlide = this.GetCurrentSlide(); + if(!oCurSlide) return null; + if(!this.IsMasterMode()) { + return oCurSlide.notes; + } + else { + let oSlide = this.Slides[0]; + if(!oSlide) return null; + return oSlide.notes; + } +}; CPresentation.prototype.GetCurrentController = function () { var oCurSlide = this.GetCurrentSlide(); if (oCurSlide) { - if (this.FocusOnNotes) { + if (this.IsFocusOnNotes()) { return oCurSlide.notes && oCurSlide.notes.graphicObjects; } else { return oCurSlide.graphicObjects; @@ -2262,7 +2168,7 @@ CPresentation.prototype.Get_TargetDocContent = function () { CPresentation.prototype.Begin_CompositeInput = function () { let oCurSlide = this.GetCurrentSlide(); - if (!this.FocusOnNotes && oCurSlide && oCurSlide.graphicObjects.selectedObjects.length === 0) { + if (!this.IsFocusOnNotes() && oCurSlide && oCurSlide.graphicObjects.selectedObjects.length === 0) { var oTitle = oCurSlide.getMatchingShape(AscFormat.phType_title, null); if (oTitle) { var oDocContent = oTitle.getDocContent(); @@ -2555,6 +2461,14 @@ CPresentation.prototype.removeSlideMaster = function (pos, count) { History.Add(new AscDFH.CChangesDrawingsContent(this, AscDFH.historyitem_Presentation_RemoveSlideMaster, pos, this.slideMasters.slice(pos, pos + count), false)); this.slideMasters.splice(pos, count); }; +CPresentation.prototype.removeSlideMasterObject = function (oMaster) { + for(let nMaster = 0; nMaster < this.slideMasters.length; ++nMaster) { + if(this.slideMasters[nMaster] === oMaster) { + this.removeSlideMaster(nMaster, 1); + return; + } + } +}; CPresentation.prototype.Get_Id = function () { return this.Id; @@ -2576,12 +2490,14 @@ CPresentation.prototype.AddNewMasterSlide = function () { }; CPresentation.prototype.AddNewLayout = function () { if(!this.IsMasterMode) return; + this.StartAction(0); let oMaster = this.GetCurrentMaster(); if(oMaster) { let oLayout = oMaster.addNewLayout(); this.Recalculate(); this.DrawingDocument.m_oWordControl.GoToPage(this.GetSlideIndex(oLayout)); } + this.FinalizeAction(true); }; CPresentation.prototype.LoadEmptyDocument = function () { @@ -2878,13 +2794,35 @@ CPresentation.prototype.Recalculate = function (RecalcData) { else { oDrawingObject.recalculate(); if (oDrawingObject instanceof AscCommonSlide.MasterSlide) { + b_check_layout = true; + bAttack = true; isUpdateThemes = true; + bRedrawAllSlides = true; if(oDrawingObject.needRecalc()) { for (let nIdx = 0; nIdx < this.Slides.length; ++nIdx) { let oCalcSlide = this.Slides[nIdx]; if (oCalcSlide.Layout.Master === oDrawingObject) { oCalcSlide.checkSlideTheme(); oCalcSlide.recalculate(); + let nIdx = this.GetSlideIndex(oCalcSlide); + if(nIdx !== -1) { + if (redrawSlideIndexMap[nIdx] !== true) { + redrawSlideIndexMap[nIdx] = true; + aToRedrawSlides.push(nIdx); + } + } + } + } + for(let nLt = 0; nLt < oDrawingObject.sldLayoutLst.length; ++nLt) { + let oLt = oDrawingObject.sldLayoutLst[nLt]; + oLt.checkSlideTheme(); + oLt.recalculate(); + let nIdx = this.GetSlideIndex(oLt); + if(nIdx !== -1) { + if (redrawSlideIndexMap[nIdx] !== true) { + redrawSlideIndexMap[nIdx] = true; + aToRedrawSlides.push(nIdx); + } } } } @@ -2923,6 +2861,8 @@ CPresentation.prototype.Recalculate = function (RecalcData) { } } if (oDrawingObject instanceof AscCommonSlide.SlideLayout) { + b_check_layout = true; + bAttack = true; let nIdx = this.GetSlideIndex(oDrawingObject); if(nIdx !== -1) { if (redrawSlideIndexMap[nIdx] !== true) { @@ -2955,14 +2895,31 @@ CPresentation.prototype.Recalculate = function (RecalcData) { } } } - if(oDrawingObject.isDrawing && oDrawingObject.isPlaceholder()) { - if(parent instanceof AscCommonSlide.SlideLayout || parent instanceof AscCommonSlide.MasterSlide) { - oPlaceholders[oDrawingObject.Id] = oDrawingObject; - bPlaceholders = true; + if(oDrawingObject.isDrawing ) { + if(oDrawingObject.isPlaceholder()) { + if(parent instanceof AscCommonSlide.SlideLayout || parent instanceof AscCommonSlide.MasterSlide) { + oPlaceholders[oDrawingObject.Id] = oDrawingObject; + bPlaceholders = true; + if(parent instanceof AscCommonSlide.MasterSlide) { + oMasterPlaceholders[oDrawingObject.Id] = oDrawingObject; + bMasterPlaceholders = true; + oMasters[parent.Id] = parent; + } + } + } + else { if(parent instanceof AscCommonSlide.MasterSlide) { - oMasterPlaceholders[oDrawingObject.Id] = oDrawingObject; - bMasterPlaceholders = true; - oMasters[parent.Id] = parent; + for(let nSld = 0; nSld < aAllSlides.length; ++nSld) { + if (redrawSlideIndexMap[nSld] !== true) { + let oSld = aAllSlides[nSld]; + let oMS = oSld.getMaster(); + if(oMS === parent) { + + redrawSlideIndexMap[nSld] = true; + aToRedrawSlides.push(nSld); + } + } + } } } } @@ -3038,10 +2995,22 @@ CPresentation.prototype.Recalculate = function (RecalcData) { this.DrawingDocument.Notes_OnRecalculate(this.CurPage, oCurSlide.NotesWidth, oCurSlide.getNotesHeight()); } } - if (bEndRecalc || this.GetSlidesCount() === 0) { + let nSlidesCount = this.GetSlidesCount(); + if (bEndRecalc || nSlidesCount === 0 || nSlidesCount !== this.GetThumbnailsCount()) { this.DrawingDocument.OnEndRecalculate(); } } + + if (isUpdateThemes || this.bNeedUpdateThemes) { + this.SendThemesThumbnails(); + this.bNeedUpdateThemes = false; + let oMaster = this.GetCurrentMaster(); + if(oMaster) + { + this.Api.sendEvent("asc_onUpdateThemeIndex", oMaster.getThemeIndex()); + this.Api.sendColorThemes(oMaster.Theme); + } + } if (!oCurSlide) { this.DrawingDocument.m_oWordControl.GoToPage(-1); if (b_check_layout) { @@ -3073,10 +3042,6 @@ CPresentation.prototype.Recalculate = function (RecalcData) { this.DrawingDocument.placeholders.update(oCurSlide.getPlaceholdersControls()); } this.MathTrackHandler.Update(); - if (isUpdateThemes || this.bNeedUpdateThemes) { - this.SendThemesThumbnails(); - this.bNeedUpdateThemes = false; - } }; CPresentation.prototype.private_RecalculateFastRunRange = function (arrChanges, nStartIndex, nEndIndex) { @@ -3108,7 +3073,7 @@ CPresentation.prototype.private_RecalculateFastRunRange = function (arrChanges, if (-1 !== nRes) { var oCurSlide = this.GetCurrentSlide(); if (oCurSlide) { - if (!this.FocusOnNotes) { + if (!this.IsFocusOnNotes()) { this.DrawingDocument.OnRecalculateSlide(this.CurPage); this.DrawingDocument.OnEndRecalculate(); } else { @@ -3405,7 +3370,6 @@ CPresentation.prototype.GetTargetPosition = function () { return oPosition; }; - // Отрисовка содержимого Документа CPresentation.prototype.Draw = function (nPageIndex, pGraphics) { if (!pGraphics.isBoundsChecker()) { @@ -3519,7 +3483,7 @@ CPresentation.prototype.GetSearchElementId = function (isNext) { } } else if (oController.selectedObjects.length === 0) { start_index = 0; - if (this.FocusOnNotes) { + if (this.IsFocusOnNotes()) { start_index = sp_tree.length; bSkipCurNotes = true; } @@ -3977,7 +3941,7 @@ CPresentation.prototype.CheckNotesShow = function () { if (this.Api) { var bIsShow = this.Api.getIsNotesShow(); if (!bIsShow) { - if (this.FocusOnNotes) { + if (this.IsFocusOnNotes()) { this.FocusOnNotes = false; this.Document_UpdateInterfaceState(); this.Document_UpdateSelectionState(); @@ -4158,7 +4122,7 @@ CPresentation.prototype.AddToParagraph = function (ParaItem, bRecalculate, noUpd var oMathShape = null; if (ParaItem.Type === para_Math) { var oController = oSlide.graphicObjects; - if (!this.FocusOnNotes && !(oController.selection.textSelection || (oController.selection.groupSelection && oController.selection.groupSelection.selection.textSelection))) { + if (!this.IsFocusOnNotes() && !(oController.selection.textSelection || (oController.selection.groupSelection && oController.selection.groupSelection.selection.textSelection))) { oController.resetSelection(); oMathShape = oController.createTextArt(0, false, null, ""); oMathShape.addToDrawingObjects(); @@ -4167,7 +4131,7 @@ CPresentation.prototype.AddToParagraph = function (ParaItem, bRecalculate, noUpd oMathShape.txBody.content.MoveCursorToStartPos(false); } } - if (this.FocusOnNotes) { + if (this.IsFocusOnNotes()) { var oCurSlide = this.GetCurrentSlide(); if (oCurSlide.notes) { oCurSlide.notes.graphicObjects.paragraphAdd(ParaItem, false); @@ -4280,7 +4244,7 @@ CPresentation.prototype.GetAllSlideIndexes = function () { }; CPresentation.prototype.RemoveCurrentComment = function (isMine) { - if (!this.FocusOnNotes) { + if (!this.IsFocusOnNotes()) { var oCurSlide = this.GetCurrentSlide(); if (oCurSlide && oCurSlide.slideComments) { var oSelectedComment = oCurSlide.slideComments.getSelectedComment(); @@ -4323,7 +4287,7 @@ CPresentation.prototype.SendRemoveCommentEvent = function () { if (!this.Api) { return false; } - if (!this.FocusOnNotes) { + if (!this.IsFocusOnNotes()) { var oCurSlide = this.GetCurrentSlide(); if (oCurSlide && oCurSlide.slideComments) { var oSelectedComment = oCurSlide.slideComments.getSelectedComment(); @@ -4718,9 +4682,12 @@ CPresentation.prototype.setVert = function (align) { }; CPresentation.prototype.Get_Styles = function () { - var styles = new CStyles(); + var styles = AscWord.DEFAULT_STYLES; return {styles: styles, lastId: styles.Get_Default_Paragraph()} }; +CPresentation.prototype.GetStyles = function () { + return this.Get_Styles(); +}; CPresentation.prototype.IsTableCellContent = function (isReturnCell) { if (true === isReturnCell) @@ -4735,11 +4702,21 @@ CPresentation.prototype.Check_AutoFit = function () { CPresentation.prototype.Get_Theme = function () { - return this.slideMasters[0].Theme; + let oCurSlide = this.GetCurrentSlide(); + if(!oCurSlide) return this.slideMasters[0] && this.slideMasters[0].Theme; + if(this.IsFocusOnNotes()) { + return oCurSlide.notes.getTheme(); + } + return oCurSlide.getTheme(); }; CPresentation.prototype.Get_ColorMap = function () { - return AscFormat.GetDefaultColorMap(); + let oCurSlide = this.GetCurrentSlide(); + if(!oCurSlide) return AscFormat.GetDefaultColorMap(); + if(this.IsFocusOnNotes()) { + return oCurSlide.notes.getColorMap(); + } + return oCurSlide.getColorMap(); }; CPresentation.prototype.Get_PageFields = function () { @@ -4798,7 +4775,7 @@ CPresentation.prototype.SetTableProps = function (Props) { if (oController) { oController.setTableProps(Props); - if (!this.FocusOnNotes) { + if (!this.IsFocusOnNotes()) { oController.updateConnectors(false); } this.Recalculate(); @@ -5370,7 +5347,7 @@ CPresentation.prototype.OnKeyDown = function (e) { if (e.CtrlKey) { if (oController) { var bChangeSelect = false; - if (!this.FocusOnNotes) { + if (!this.IsFocusOnNotes()) { var aDrawings = oController.getDrawingArray(); for (var i = aDrawings.length - 1; i > -1; --i) { if (aDrawings[i].selected) { @@ -5480,7 +5457,7 @@ CPresentation.prototype.OnKeyDown = function (e) { { const bCancelEyedropper = this.CancelEyedropper(); const bCancelInkDrawer = this.CancelInkDrawer(); - if (oController && !this.FocusOnNotes) { + if (oController && !this.IsFocusOnNotes()) { if(!bCancelEyedropper && !bCancelInkDrawer) { var oDrawingObjects = oController; if (oDrawingObjects.isTrackingDrawings()) { @@ -5662,7 +5639,7 @@ CPresentation.prototype.OnKeyDown = function (e) { bRetValue = keydownresult_PreventAll; } else if (e.KeyCode === 37) // Left Arrow { - if (this.Slides.length > 1 && !this.FocusOnNotes && !e.CtrlKey && this.DrawingDocument.SlideCurrent > 0) { + if (this.Slides.length > 1 && !this.IsFocusOnNotes() && !e.CtrlKey && this.DrawingDocument.SlideCurrent > 0) { if (this.GetCurrentSlideController().selectedObjects.length === 0) this.DrawingDocument.m_oWordControl.GoToPage(this.DrawingDocument.SlideCurrent - 1); } @@ -5688,7 +5665,7 @@ CPresentation.prototype.OnKeyDown = function (e) { bRetValue = keydownresult_PreventAll; } else if (e.KeyCode === 38) // Top Arrow { - if (this.Slides.length > 1 && !this.FocusOnNotes && !e.CtrlKey && this.DrawingDocument.SlideCurrent > 0) { + if (this.Slides.length > 1 && !this.IsFocusOnNotes() && !e.CtrlKey && this.DrawingDocument.SlideCurrent > 0) { if (this.GetCurrentSlideController().selectedObjects.length === 0) this.DrawingDocument.m_oWordControl.GoToPage(this.DrawingDocument.SlideCurrent - 1); } @@ -5700,7 +5677,7 @@ CPresentation.prototype.OnKeyDown = function (e) { // if ( true != e.ShiftKey ) // this.DrawingDocument.TargetStart(); - if (this.Slides.length > 1 && !this.FocusOnNotes && !e.CtrlKey && this.DrawingDocument.SlideCurrent < (this.Slides.length - 1)) { + if (this.Slides.length > 1 && !this.IsFocusOnNotes() && !e.CtrlKey && this.DrawingDocument.SlideCurrent < (this.Slides.length - 1)) { if (this.GetCurrentSlideController().selectedObjects.length === 0) this.DrawingDocument.m_oWordControl.GoToPage(this.DrawingDocument.SlideCurrent + 1); } @@ -5730,7 +5707,7 @@ CPresentation.prototype.OnKeyDown = function (e) { //if ( true != e.ShiftKey ) // this.DrawingDocument.TargetStart(); - if (this.Slides.length > 1 && !this.FocusOnNotes && !e.CtrlKey && this.DrawingDocument.SlideCurrent < (this.Slides.length - 1)) { + if (this.Slides.length > 1 && !this.IsFocusOnNotes() && !e.CtrlKey && this.DrawingDocument.SlideCurrent < (this.Slides.length - 1)) { if (this.GetCurrentSlideController().selectedObjects.length === 0) this.DrawingDocument.m_oWordControl.GoToPage(this.DrawingDocument.SlideCurrent + 1); } @@ -5837,7 +5814,7 @@ CPresentation.prototype.EnterText = function (value) { if (this.StopAnimationPreview()) { return false; } - if (!this.FocusOnNotes && oCurSlide.graphicObjects.selectedObjects.length === 0) { + if (!this.IsFocusOnNotes() && oCurSlide.graphicObjects.selectedObjects.length === 0) { let oTitle = oCurSlide.getMatchingShape(AscFormat.phType_title, null); if (oTitle) { let oDocContent = oTitle.getDocContent && oTitle.getDocContent(); @@ -5850,7 +5827,7 @@ CPresentation.prototype.EnterText = function (value) { return false; } } - if (this.FocusOnNotes && !oCurSlide.notesShape) { + if (this.IsFocusOnNotes() && !oCurSlide.notesShape) { return false; } let bRetValue = false; @@ -6294,7 +6271,12 @@ CPresentation.prototype.CanDragAndDrop = function () { }; CPresentation.prototype.IsFocusOnNotes = function () { - return this.FocusOnNotes; + + if(!this.IsMasterMode() && this.FocusOnNotes) { + let oCurSlide = this.GetCurrentSlide(); + return !!oCurSlide.notes; + } + return false; }; CPresentation.prototype.IsFocusOnThumbnails = function () { @@ -6362,7 +6344,7 @@ CPresentation.prototype.Notes_OnMouseDown = function (e, X, Y) { }; CPresentation.prototype.Notes_OnMouseUp = function (e, X, Y) { - if (!this.FocusOnNotes) { + if (!this.IsFocusOnNotes()) { return; } var oCurSlide = this.GetCurrentSlide(); @@ -6535,7 +6517,7 @@ CPresentation.prototype.ApplyTableFunction = function (Function, bBefore, bAll, this.RemoveTable(); return result; } - if (!this.FocusOnNotes) { + if (!this.IsFocusOnNotes()) { oController.updateConnectors(false); } this.Recalculate(); @@ -8183,7 +8165,7 @@ CPresentation.prototype.InsertContent2 = function (aContents, nIndex) { if (oContent.Drawings.length > 0) { if (bEndFormatting) { oSourceContent = aContents[1]; - if (oCurSlide && !this.FocusOnNotes && oSourceContent) { + if (oCurSlide && !this.IsFocusOnNotes() && oSourceContent) { AscFormat.checkDrawingsTransformBeforePaste(oContent, oSourceContent, oCurSlide); } } @@ -8267,6 +8249,7 @@ CPresentation.prototype.InsertContent2 = function (aContents, nIndex) { }; CPresentation.prototype.InsertContent = function (Content) { + let bInsert = false; let selected_slides = this.GetSelectedSlides(), i; let oThumbnails = this.Api.WordControl.Thumbnails; @@ -8276,18 +8259,19 @@ CPresentation.prototype.InsertContent = function (Content) { } let oCurSlide = this.GetCurrentSlide(); if (Content.SlideObjects.length > 0) { - let las_slide_index = selected_slides.length > 0 ? selected_slides[selected_slides.length - 1] : -1; - - this.needSelectPages.length = 0; - for (i = 0; i < Content.SlideObjects.length; ++i) { - this.insertSlide(las_slide_index + i + 1, Content.SlideObjects[i]); - this.needSelectPages.push(las_slide_index + i + 1); + if(!this.IsMasterMode()) { + let las_slide_index = selected_slides.length > 0 ? selected_slides[selected_slides.length - 1] : -1; + this.needSelectPages.length = 0; + for (i = 0; i < Content.SlideObjects.length; ++i) { + this.insertSlide(las_slide_index + i + 1, Content.SlideObjects[i]); + this.needSelectPages.push(las_slide_index + i + 1); + } + this.CurPage = las_slide_index + 1; + this.bGoToPage = true; + this.bNeedUpdateTh = true; + this.FocusOnNotes = false; + this.CheckEmptyPlaceholderNotes(); } - this.CurPage = las_slide_index + 1; - this.bGoToPage = true; - this.bNeedUpdateTh = true; - this.FocusOnNotes = false; - this.CheckEmptyPlaceholderNotes(); bInsert = true; nNeedFocusType = FOCUS_OBJECT_THUMBNAILS; } else { @@ -8304,7 +8288,7 @@ CPresentation.prototype.InsertContent = function (Content) { Content.Drawings[0].Drawing.isTable()) { oIsSingleTable = Content.Drawings[0].Drawing.graphicObject; } - if (this.FocusOnNotes && oIsSingleTable) { + if (this.IsFocusOnNotes() && oIsSingleTable) { let oContent = AscFormat.ExecuteNoHistory( function () { let oTable = Content.Drawings[0].Drawing.graphicObject; @@ -8385,6 +8369,7 @@ CPresentation.prototype.InsertContent = function (Content) { let oSlidePh, oLayoutPlaceholder; let nType, nIdx; + oSp.generateSmartArtDrawingPart(); if (oSp.isPlaceholder() && !this.IsMasterMode()) { let oInfo = {}; nType = oSp.getPlaceholderType(); @@ -8578,6 +8563,7 @@ CPresentation.prototype.SendThemesThumbnails = function () { aThemeInfo[aDocumentThemes.length - 1] = theme_load_info; } this.Api.sync_InitEditorThemes(this.Api.ThemeLoader.Themes.EditorThemes, aDocumentThemes); + this.Api.sendEvent("asc_onUpdateThemeIndex", 0); }; CPresentation.prototype.Check_CursorMoveRight = function () { @@ -8914,7 +8900,7 @@ CPresentation.prototype.addNextSlideAction = function (layoutIndex) { var new_slide, layout, i, _ph_type, sp, hf, bIsSpecialPh, aLayouts, bRemoveOnTitle; var cur_slide = this.GetCurrentSlide(); if (cur_slide) { - aLayouts = cur_slide.Layout.Master.sldLayoutLst; + aLayouts = this.GetAllLayouts(); if (AscFormat.isRealNumber(layoutIndex) && aLayouts[layoutIndex]) { layout = aLayouts[layoutIndex]; } else { @@ -8924,63 +8910,42 @@ CPresentation.prototype.addNextSlideAction = function (layoutIndex) { layout = cur_slide.Layout; } } - hf = layout.hf || layout.Master.hf; - new_slide = new Slide(this, layout, this.CurPage + 1); - new_slide.setNotes(AscCommonSlide.CreateNotes()); - new_slide.notes.setNotesMaster(this.notesMasters[0]); - new_slide.notes.setSlide(new_slide); - bRemoveOnTitle = layout.type === AscFormat.nSldLtTTitle && this.showSpecialPlsOnTitleSld === false; - for (i = 0; i < layout.cSld.spTree.length; ++i) { - if (layout.cSld.spTree[i].isPlaceholder()) { - _ph_type = layout.cSld.spTree[i].getPlaceholderType(); - bIsSpecialPh = _ph_type === AscFormat.phType_dt || _ph_type === AscFormat.phType_ftr || _ph_type === AscFormat.phType_hdr || _ph_type === AscFormat.phType_sldNum; - if (!bIsSpecialPh || hf && !bRemoveOnTitle && ((_ph_type === AscFormat.phType_dt && (hf.dt !== false)) || - (_ph_type === AscFormat.phType_ftr && (hf.ftr !== false)) || - (_ph_type === AscFormat.phType_hdr && (hf.hdr !== false)) || - (_ph_type === AscFormat.phType_sldNum && (hf.sldNum !== false)))) { - sp = layout.cSld.spTree[i].copy(undefined); - sp.setParent(new_slide); - !bIsSpecialPh && sp.clearContent && sp.clearContent(); - new_slide.addToSpTreeToPos(new_slide.cSld.spTree.length, sp); - } - } - } - new_slide.setSlideNum(this.CurPage + 1); - new_slide.setSlideSize(this.GetWidthMM(), this.GetHeightMM()); - this.insertSlide(this.CurPage + 1, new_slide); - - for (i = this.CurPage + 2; i < this.Slides.length; ++i) { - this.Slides[i].setSlideNum(i); - } } else { - - var master = this.getDefaultMasterSlide(); - layout = AscFormat.isRealNumber(layoutIndex) ? (master.sldLayoutLst[layoutIndex] ? master.sldLayoutLst[layoutIndex] : master.sldLayoutLst[0]) : master.sldLayoutLst[0]; - hf = layout.Master.hf; - - new_slide = new Slide(this, layout, this.CurPage + 1); - new_slide.setNotes(AscCommonSlide.CreateNotes()); - new_slide.notes.setNotesMaster(this.notesMasters[0]); - new_slide.notes.setSlide(new_slide); - for (i = 0; i < layout.cSld.spTree.length; ++i) { - if (layout.cSld.spTree[i].isPlaceholder()) { - _ph_type = layout.cSld.spTree[i].getPlaceholderType(); - bIsSpecialPh = _ph_type === AscFormat.phType_dt || _ph_type === AscFormat.phType_ftr || _ph_type === AscFormat.phType_hdr || _ph_type === AscFormat.phType_sldNum; - if (!bIsSpecialPh || hf && ((_ph_type === AscFormat.phType_dt && (hf.dt !== false)) || - (_ph_type === AscFormat.phType_ftr && (hf.ftr !== false)) || - (_ph_type === AscFormat.phType_hdr && (hf.hdr !== false)) || - (_ph_type === AscFormat.phType_sldNum && (hf.sldNum !== false)))) { - sp = layout.cSld.spTree[i].copy(undefined); - sp.setParent(new_slide); - !bIsSpecialPh && sp.clearContent && sp.clearContent(); - new_slide.addToSpTreeToPos(new_slide.cSld.spTree.length, sp); - } + aLayouts = this.GetAllLayouts(); + if(AscFormat.isRealNumber(layoutIndex)) { + layout = aLayouts[layoutIndex]; + } + else { + layout = aLayouts[0]; + } + } + hf = layout.hf || layout.Master.hf; + new_slide = new Slide(this, layout, this.CurPage + 1); + new_slide.setNotes(AscCommonSlide.CreateNotes()); + new_slide.notes.setNotesMaster(this.notesMasters[0]); + new_slide.notes.setSlide(new_slide); + bRemoveOnTitle = layout.type === AscFormat.nSldLtTTitle && this.showSpecialPlsOnTitleSld === false; + layout.cSld.forEachSp(function(oSp) { + if (oSp.isPlaceholder()) { + _ph_type = oSp.getPlaceholderType(); + bIsSpecialPh = _ph_type === AscFormat.phType_dt || _ph_type === AscFormat.phType_ftr || _ph_type === AscFormat.phType_hdr || _ph_type === AscFormat.phType_sldNum; + if (!bIsSpecialPh || hf && !bRemoveOnTitle && ((_ph_type === AscFormat.phType_dt && (hf.dt !== false)) || + (_ph_type === AscFormat.phType_ftr && (hf.ftr !== false)) || + (_ph_type === AscFormat.phType_hdr && (hf.hdr !== false)) || + (_ph_type === AscFormat.phType_sldNum && (hf.sldNum !== false)))) { + sp = oSp.copy(undefined); + sp.setParent(new_slide); + !bIsSpecialPh && sp.clearContent && sp.clearContent(); + new_slide.addToSpTreeToPos(new_slide.cSld.spTree.length, sp); } } - new_slide.setSlideNum(this.CurPage + 1); - new_slide.setSlideSize(this.GetWidthMM(), this.GetHeightMM()); - this.insertSlide(this.CurPage + 1, new_slide); + }); + new_slide.setSlideNum(this.CurPage + 1); + new_slide.setSlideSize(this.GetWidthMM(), this.GetHeightMM()); + this.insertSlide(this.CurPage + 1, new_slide); + for (i = this.CurPage + 2; i < this.Slides.length; ++i) { + this.Slides[i].setSlideNum(i); } }; CPresentation.prototype.getDefaultMasterSlide = function () { @@ -9017,7 +8982,6 @@ CPresentation.prototype.DublicateMaster = function () { let oSlide = aSelectedSlides[nIdx]; if(oSlide.isMaster()) { let oMaster = oSlide.createDuplicate(); - oMaster.setTheme(oSlide.Theme.createDuplicate()); aCopyMasters.push(oMaster); oLastMaster = oSlide; } @@ -9089,39 +9053,124 @@ CPresentation.prototype.shiftSlides = function (pos, array, bCopy) { if(this.CheckIsMixedSelection(array)) { return this.CurPage; } + if(array.length < 1) return this.CurPage; + + let oSlideLikeObject = this.GetSlide([array[0]]); + if(oSlideLikeObject.isLayout() && pos === 0) return; + let bCopyOnMove = (bCopy === true || AscCommon.global_mouseEvent.CtrlKey); History.Create_NewPoint(AscDFH.historydescription_Presentation_ShiftSlides); array.sort(AscCommon.fSortAscending); - var deleted = [], i; - - if (!(bCopy === true || AscCommon.global_mouseEvent.CtrlKey)) { - for (i = array.length - 1; i > -1; --i) { - deleted.push(this.removeSlide(array[i], true)); + let aNewSelected = []; + if(this.IsMasterMode()) { + let aToInsert = []; + if(bCopyOnMove) { + for(let nIdx = 0; nIdx < array.length; ++nIdx) { + let nIndexInSlides = array[nIdx]; + oSlideLikeObject = this.GetSlide(nIndexInSlides); + aToInsert.push(oSlideLikeObject.createDuplicate({}, false)); + } } - - for (i = 0; i < array.length; ++i) { - if (array[i] < pos) - --pos; - else - break; + else { + for(let nIdx = array.length - 1; nIdx > -1; --nIdx) { + let nIndexInSlides = array[nIdx]; + oSlideLikeObject = this.GetSlide(nIndexInSlides); + aToInsert.splice(0, 0, oSlideLikeObject); + if(oSlideLikeObject.isMaster()) { + this.removeSlideMasterObject(oSlideLikeObject); + } + else { + oSlideLikeObject.Master.removeLayout(oSlideLikeObject); + } + if (nIndexInSlides < pos) { + --pos; + } + } } - } else { - for (i = array.length - 1; i > -1; --i) { - var oIdMap = {}; - var oSlideCopy = this.GetSlide([array[i]]).createDuplicate(oIdMap, false); - AscFormat.fResetConnectorsIds(oSlideCopy.cSld.spTree, oIdMap); - deleted.push(oSlideCopy); + let oPrevSlideLikeObj = this.GetSlide(pos - 1); + let oPrevMaster; + if(oPrevSlideLikeObj) { + if(oPrevSlideLikeObj.isMaster()) { + oPrevMaster = oPrevSlideLikeObj; + } + else { + oPrevMaster = oPrevSlideLikeObj.Master; + } + } + if(oSlideLikeObject.isMaster()) { + let nInsertPos = null; + if(!oPrevSlideLikeObj) { + nInsertPos = 0; + } + else { + if(oPrevMaster) { + for(let nIdx = 0; nIdx < this.slideMasters.length; ++nIdx) { + if(this.slideMasters[nIdx] === oPrevMaster) { + nInsertPos = nIdx + 1; + break; + } + } + } + } + if(nInsertPos !== null) { + for(let nIdx = 0; nIdx < aToInsert.length; ++nIdx) { + this.addSlideMaster(nInsertPos + nIdx, aToInsert[nIdx]); + aNewSelected.push(this.GetSlideIndex(aToInsert[nIdx])); + } + } + } + else { + if(oPrevMaster) { + let nInsertPos = null; + let oMaster = null; + if(oPrevSlideLikeObj.isMaster()) { + nInsertPos = 0; + oMaster = oPrevSlideLikeObj; + } + else { + oMaster = oPrevSlideLikeObj.Master; + for(let nIdx = 0; nIdx < oMaster.sldLayoutLst.length; ++nIdx) { + if(oMaster.sldLayoutLst[nIdx] === oPrevSlideLikeObj) { + nInsertPos = nIdx + 1; + break; + } + } + } + if(oMaster !== null && nInsertPos !== null) { + let aNewSelected = []; + for(let nIdx = 0; nIdx < aToInsert.length; ++nIdx) { + oMaster.addToSldLayoutLstToPos(nInsertPos + nIdx, aToInsert[nIdx]); + aNewSelected.push(this.GetSlideIndex(aToInsert[nIdx])); + } + } + } } } + else { + let deleted = [], i; + if (!bCopyOnMove) { + for (i = array.length - 1; i > -1; --i) { + deleted.push(this.removeSlide(array[i], true)); + } - var _selectedPage = this.CurPage; - var _newSelectedPage = pos; - deleted.reverse(); - let aNewSelected = []; - for (i = 0; i < deleted.length; ++i) { - this.insertSlideObjectToPos(pos + i, deleted[i]); - aNewSelected.push(pos + i); - } - if(!this.IsMasterMode()) { + for (i = 0; i < array.length; ++i) { + if (array[i] < pos) + --pos; + else + break; + } + } else { + for (i = array.length - 1; i > -1; --i) { + let oIdMap = {}; + let oSlideCopy = this.GetSlide([array[i]]).createDuplicate(oIdMap, false); + AscFormat.fResetConnectorsIds(oSlideCopy.cSld.spTree, oIdMap); + deleted.push(oSlideCopy); + } + } + deleted.reverse(); + for (i = 0; i < deleted.length; ++i) { + this.insertSlideObjectToPos(pos + i, deleted[i]); + aNewSelected.push(pos + i); + } for (i = 0; i < this.Slides.length; ++i) { this.Slides[i].changeNum(i); } @@ -9129,15 +9178,13 @@ CPresentation.prototype.shiftSlides = function (pos, array, bCopy) { this.Recalculate(); this.Document_UpdateUndoRedoState(); this.DrawingDocument.OnEndRecalculate(); - this.DrawingDocument.m_oWordControl.GoToPage(pos); - - - let oThumbnails = this.Api.WordControl.Thumbnails; - if (oThumbnails) { - oThumbnails.SelectSlides(aNewSelected); + if(aNewSelected.length > 0) { + this.DrawingDocument.m_oWordControl.GoToPage(aNewSelected[0]); + let oThumbnails = this.Api.WordControl.Thumbnails; + if (oThumbnails) { + oThumbnails.SelectSlides(aNewSelected); + } } - - return _newSelectedPage; }; CPresentation.prototype.deleteMaster = function() { if(!this.IsMasterMode()) { @@ -9232,7 +9279,6 @@ CPresentation.prototype.GetCurrentTheme = function() { } return this.slideMasters[0] || null; }; - CPresentation.prototype.changeLayout = function (_array, layout_index) { if(this.IsMasterMode()) return; let aLayouts = this.GetAllLayouts(); @@ -9424,11 +9470,36 @@ CPresentation.prototype.changeTheme = function (themeInfo, arrInd) { for (i = 0; i < arr_ind.length; ++i) { slides_array.push(this.Slides[arr_ind[i]]); } + let oReplacedMasters = {}; + let aReplacedMasters = []; for (i = 0; i < slides_array.length; ++i) { + let oSlide = slides_array[i]; + let oOldMaster = oSlide.getMaster(); + if(oOldMaster) { + if(!oReplacedMasters[oOldMaster.Id]) { + oReplacedMasters[oOldMaster.Id] = oOldMaster; + aReplacedMasters.push(oOldMaster); + } + } this.ChangeSlideSlideMaster(slides_array[i], _new_master); } + + for(let nMaster = 0; nMaster < aReplacedMasters.length; ++nMaster) { + let oMaster = aReplacedMasters[nMaster]; + let bFound = false; + for(let nSlide = 0; nSlide < this.Slides.length; ++nSlide) { + if(this.Slides[nSlide].getMaster() === oMaster) { + bFound = true; + break; + } + } + if(!bFound) { + this.removeSlideMasterObject(oMaster); + } + } + History.Add(new AscDFH.CChangesDrawingChangeTheme(this, AscDFH.historyitem_Presentation_ChangeTheme, arr_ind)); - ///this.resetStateCurSlide(); + this.Recalculate(); if(this.IsMasterMode()) { let nIdx = this.GetSlideIndex(themeInfo.Master); @@ -9784,7 +9855,7 @@ CPresentation.prototype.Document_Is_SelectionLocked = function (CheckType, Addit var cur_slide = this.GetCurrentSlide(); var slide_id; - if (this.FocusOnNotes && cur_slide.notes) { + if (this.IsFocusOnNotes() && cur_slide.notes) { slide_id = cur_slide.notes.Get_Id(); } else { slide_id = cur_slide.deleteLock.Get_Id(); @@ -9946,6 +10017,17 @@ CPresentation.prototype.Document_Is_SelectionLocked = function (CheckType, Addit }); } } + if (CheckType === AscCommon.changestype_CustomPr) { + if (this.CustomProperties) { + this.CustomProperties.Lock.Check( + { + "type": c_oAscLockTypeElemPresentation.Object, + "val": this.CustomProperties.Get_Id(), + "guid": this.CustomProperties.Get_Id(), + "objId": this.CustomProperties.Get_Id() + }); + } + } if (CheckType === AscCommon.changestype_SlideTransition) { @@ -10332,7 +10414,7 @@ CPresentation.prototype.AddShapeOnCurrentPage = function (sPreset) { CPresentation.prototype.CanEditGeometry = function () { - if (this.FocusOnNotes) { + if (this.IsFocusOnNotes()) { return false; } var oController = this.GetCurrentController(); @@ -10340,7 +10422,7 @@ CPresentation.prototype.CanEditGeometry = function () { }; CPresentation.prototype.StartEditGeometry = function () { - if (this.FocusOnNotes) { + if (this.IsFocusOnNotes()) { return; } var oController = this.GetCurrentController(); @@ -10364,7 +10446,7 @@ CPresentation.prototype.Can_CopyCut = function () { }; CPresentation.prototype.AddToLayout = function () { - if (this.FocusOnNotes) { + if (this.IsFocusOnNotes()) { return; } var oSlide = this.GetCurrentSlide(); @@ -10624,6 +10706,7 @@ CPresentation.prototype.SetLayoutFooter = function (bVal) { let oSp = oCurSlide.getMatchingShape(nType, null, false, {}); if(!bVal) { if(oSp) { + oCurSlide.graphicObjects.deselectObject(oSp); oCurSlide.removeFromSpTreeById(oSp.Get_Id()); } } @@ -11181,6 +11264,30 @@ CPresentation.prototype.getLockApplyBackgroundToAll = function() { return false; }; +CPresentation.prototype.AddCustomProperty = function(name, type, value) { + if(this.Document_Is_SelectionLocked(AscCommon.changestype_CustomPr, null)) + return; + this.StartAction(AscDFH.historydescription_CustomProperties_Add); + this.CustomProperties.AddProperty(name, type, value); + this.FinalizeAction(true); +}; + +CPresentation.prototype.ModifyCustomProperty = function(idx, name, type, value) { + if(this.Document_Is_SelectionLocked(AscCommon.changestype_CustomPr, null)) + return; + this.StartAction(AscDFH.historydescription_CustomProperties_Modify); + this.CustomProperties.ModifyProperty(idx, name, type, value); + this.FinalizeAction(true); +}; + +CPresentation.prototype.RemoveCustomProperty = function(idx) { + if(this.Document_Is_SelectionLocked(AscCommon.changestype_CustomPr, null)) + return; + this.StartAction(AscDFH.historydescription_CustomProperties_Remove); + this.CustomProperties.RemoveProperty(idx); + this.FinalizeAction(true); +}; + function collectSelectedObjects(aSpTree, aCollectArray, bRecursive, oIdMap, bSourceFormatting) { var oSp; var oPr = new AscFormat.CCopyObjectProperties(); diff --git a/slide/Editor/Format/ShapePrototype.js b/slide/Editor/Format/ShapePrototype.js index c855dfec4c..dbb948e79c 100644 --- a/slide/Editor/Format/ShapePrototype.js +++ b/slide/Editor/Format/ShapePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -603,10 +603,29 @@ CShape.prototype.getIsSingleBody = function(x, y) return true; }; -CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex){ +CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex, bNoTextSelection){ if(this.parent && this.parent.graphicObjects){ var drawing_objects = this.parent.graphicObjects; - this.SetControllerTextSelection(drawing_objects, 0); + + if(bNoTextSelection !== true) + { + this.SetControllerTextSelection(drawing_objects, 0); + } + else + { + let oSelector; + if (this.group) + { + let main_group = this.group.getMainGroup(); + oSelector = main_group; + } + else + { + oSelector = drawing_objects; + } + oSelector.resetSelection(); + oSelector.selectObject(this, 0); + } var nSlideNum; if(this.parent instanceof AscCommonSlide.CNotes){ editor.WordControl.m_oLogicDocument.FocusOnNotes = true; @@ -629,6 +648,10 @@ CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex){ editor.WordControl.m_oLogicDocument.FocusOnNotes = true; } } + if (bUpdate && editor.WordControl.m_oLogicDocument) { + editor.WordControl.m_oLogicDocument.Document_UpdateSelectionState(); + editor.WordControl.m_oLogicDocument.Document_UpdateInterfaceState(); + } } }; diff --git a/slide/Editor/Format/Slide.js b/slide/Editor/Format/Slide.js index 300c29281e..291eb21c33 100644 --- a/slide/Editor/Format/Slide.js +++ b/slide/Editor/Format/Slide.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -728,15 +728,17 @@ AscFormat.InitClass(Slide, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_ } else { if (bNeedResetTransform) { if (shape.spPr && shape.spPr.xfrm && shape.spPr.xfrm.isNotNull()) { - if (shape.getObjectType() !== AscDFH.historyitem_type_GraphicFrame) { + if (shape.getObjectType() !== AscDFH.historyitem_type_GraphicFrame + && shape.getObjectType() !== AscDFH.historyitem_type_SmartArt + && shape.getObjectType() !== AscDFH.historyitem_type_ChartSpace) { shape.spPr.setXfrm(null); } else { - if (oNotNullPH) { - if (!shape.spPr && oNotNullPH.spPr) { + if (oNotNullPH && oNotNullPH.spPr && oNotNullPH.spPr.xfrm) { + if (!shape.spPr) { shape.setSpPr(oNotNullPH.spPr.createDuplicate()); shape.spPr.setParent(shape); } - if (!shape.spPr.xfrm && oNotNullPH.spPr && oNotNullPH.spPr.xfrm) { + else { shape.spPr.setXfrm(oNotNullPH.spPr.xfrm.createDuplicate()); } } @@ -933,8 +935,39 @@ AscFormat.InitClass(Slide, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_ Slide.prototype.removeFromSpTreeByPos = function(pos){ if(pos > -1 && pos < this.cSld.spTree.length){ var oSp = this.cSld.spTree[pos]; - History.Add(new AscDFH.CChangesDrawingsContentPresentation(this, AscDFH.historyitem_SlideRemoveFromSpTree, pos, [oSp], false)); - this.cSld.spTree.splice(pos, 1); + if(oSp.isPlaceholder() || this.isMaster() || this.isLayout()) { + let oMap = {}; + oMap[oSp.Id] = oSp; + let oPres = Asc.editor.private_GetLogicDocument(); + let aSlides = oPres.Slides; + if(this.isMaster()) { + for(let nLt = 0; nLt < this.sldLayoutLst.length; ++nLt) { + let oLt = this.sldLayoutLst[nLt]; + oLt.cSld.forEachSp(function (oSp) { + oSp.checkOnDeletePlaceholder(oMap); + }); + } + for(let nSld = 0; nSld < aSlides.length; ++nSld) { + let oSld = aSlides[nSld]; + if(oSld.getMaster() === this) { + oSld.cSld.forEachSp(function (oSp) { + oSp.checkOnDeletePlaceholder(oMap); + }); + } + } + } + if(this.isLayout()) { + for(let nSld = 0; nSld < aSlides.length; ++nSld) { + let oSld = aSlides[nSld]; + if(oSld.Layout === this) { + oSld.cSld.forEachSp(function (oSp) { + oSp.checkOnDeletePlaceholder(oMap); + }); + } + } + } + } + this.shapeRemove(pos, 1); if(this.timing && !AscCommon.IsChangingDrawingZIndex) { this.checkNeedCopyTimingBeforeEdit(); this.timing.onRemoveObject(oSp.Get_Id()); @@ -942,7 +975,10 @@ AscFormat.InitClass(Slide, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_ if(this.collaborativeMarks) { this.collaborativeMarks.Update_OnRemove(pos, 1); } + + return oSp; } + return null; }; Slide.prototype.removeFromSpTreeById = function(id) @@ -1067,6 +1103,50 @@ AscFormat.InitClass(Slide, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_ }); }; + + Slide.prototype.getAllRasterImagesForDraw = function(images) { + let aImages = images; + if(!aImages) { + aImages = []; + } + + if(this.recalcInfo.recalculateBackground) + { + this.recalculateBackground(); + this.recalcInfo.recalculateBackground = false; + } + if(this.backgroundFill) { + let sImageId = this.backgroundFill.checkRasterImageId(); + if(sImageId) { + aImages.push(sImageId); + } + } + this.cSld.forEachSp(function(oSp) { + oSp.getAllRasterImages(aImages); + }); + if(this.Layout) { + if(this.needLayoutSpDraw()) { + this.Layout.getAllRasterImagesForDraw(aImages); + } + if(this.Layout.Master) { + if(this.needMasterSpDraw()) { + this.Layout.Master.getAllRasterImagesForDraw(aImages); + } + } + } + return aImages; + }; + Slide.prototype.checkImageDraw = function(sImageSrc) { + const aImages = this.getAllRasterImagesForDraw(); + for(let nIdx = 0; nIdx < aImages.length; ++nIdx) { + let sImage = aImages[nIdx]; + if(AscCommon.getFullImageSrc2(sImage) === sImageSrc) { + return true; + } + } + return false; + }; + Slide.prototype.changeSize = function(width, height) { var kw = width/this.Width, kh = height/this.Height; @@ -1643,7 +1723,7 @@ AscFormat.InitClass(Slide, AscFormat.CBaseFormatObject, AscDFH.historyitem_type_ return false; }; Slide.prototype.getTheme = function(){ - return this.Layout && this.Layout.Master && this.Layout.Master.Theme || null; + return this.Layout && this.Layout.getTheme() || null; }; Slide.prototype.getMaster = function(){ return this.getParentObjects().master; diff --git a/slide/Editor/Format/SlideMaster.js b/slide/Editor/Format/SlideMaster.js index 81bcc51914..727535484c 100644 --- a/slide/Editor/Format/SlideMaster.js +++ b/slide/Editor/Format/SlideMaster.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -166,6 +166,9 @@ MasterSlide.prototype.getDrawingDocument = function() { MasterSlide.prototype.getTheme = function(){ return this.Theme || null; }; +MasterSlide.prototype.getColorMap = function() { + return AscFormat.GetDefaultColorMap(); +}; MasterSlide.prototype.getMaster = function(){ return this.getParentObjects().master; }; @@ -245,13 +248,13 @@ MasterSlide.prototype.drawNoPlaceholders = function(graphics, slide) { if(slide) { if(AscFormat.isRealNumber(slide.num) && slide.num !== this.lastRecalcSlideIndex) { this.lastRecalcSlideIndex = slide.num; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } else { if(-1 !== this.lastRecalcSlideIndex){ this.lastRecalcSlideIndex = -1; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } @@ -268,13 +271,13 @@ MasterSlide.prototype.drawNoPlaceholdersShapesOnly = function(graphics, slide) { if(slide) { if(AscFormat.isRealNumber(slide.num) && slide.num !== this.lastRecalcSlideIndex) { this.lastRecalcSlideIndex = slide.num; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } else { if(-1 !== this.lastRecalcSlideIndex){ this.lastRecalcSlideIndex = -1; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } @@ -290,13 +293,13 @@ MasterSlide.prototype.draw = function (graphics, slide) { if(slide) { if(AscFormat.isRealNumber(slide.num) && slide.num !== this.lastRecalcSlideIndex) { this.lastRecalcSlideIndex = slide.num; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } else { if(-1 !== this.lastRecalcSlideIndex){ this.lastRecalcSlideIndex = -1; - this.cSld.refreshAllContentsFields(); + this.cSld.refreshAllContentsFields(true); } } @@ -379,6 +382,8 @@ MasterSlide.prototype.getMatchingLayout = function (type, matchingName, cSldName return this.sldLayoutLst[0]; }; MasterSlide.prototype.handleAllContents = Slide.prototype.handleAllContents; +MasterSlide.prototype.getAllRasterImagesForDraw = Slide.prototype.getAllRasterImagesForDraw; +MasterSlide.prototype.checkImageDraw = Slide.prototype.checkImageDraw; MasterSlide.prototype.getMatchingShape = Slide.prototype.getMatchingShape; MasterSlide.prototype.recalculate = function () { if (!this.Theme) return; @@ -704,6 +709,9 @@ MasterSlide.prototype.createDuplicate = function (IdMap) { for(let nIdx = 0; nIdx < this.sldLayoutLst.length; ++nIdx) { copy.addToSldLayoutLstToPos(nIdx, this.sldLayoutLst[nIdx].createDuplicate(IdMap)); } + if(this.Theme) { + copy.setTheme(this.Theme.createDuplicate()); + } return copy; }; MasterSlide.prototype.Clear_ContentChanges = function() @@ -728,6 +736,9 @@ MasterSlide.prototype.copySelectedObjects = function () { MasterSlide.prototype.getPlaceholdersControls = function () { return AscCommonSlide.Slide.prototype.getPlaceholdersControls.call(this); }; +MasterSlide.prototype.getDrawingObjects = function() { + return AscCommonSlide.Slide.prototype.getDrawingObjects.call(this); +}; MasterSlide.prototype.getParentObjects = function () { return { presentation: Asc.editor.private_GetLogicDocument(), diff --git a/slide/Editor/Format/StylesPrototype.js b/slide/Editor/Format/StylesPrototype.js index b6f130f047..d280ec3228 100644 --- a/slide/Editor/Format/StylesPrototype.js +++ b/slide/Editor/Format/StylesPrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/Editor/Format/TextBodyPrototype.js b/slide/Editor/Format/TextBodyPrototype.js index 5982de5226..c3525c87e6 100644 --- a/slide/Editor/Format/TextBodyPrototype.js +++ b/slide/Editor/Format/TextBodyPrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/Editor/Format/Timing.js b/slide/Editor/Format/Timing.js index 0cecc0b367..4dea1743c8 100644 --- a/slide/Editor/Format/Timing.js +++ b/slide/Editor/Format/Timing.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -668,8 +668,15 @@ var aChildren = this.getChildrenTimeNodes(); var oThis = this; - if (oEndSync) { - oEndSync.fillTrigger(oPlayer, oTrigger); + if(oPlayer instanceof CDemoAnimPlayer) { + oTrigger.addTrigger(function () { + for (var nChild = 0; nChild < aChildren.length; ++nChild) { + if (!aChildren[nChild].isAtEnd() && (!aChildren[nChild].repeatCount || !aChildren[nChild].repeatCount.isIndefinite())) { + return false; + } + } + return true; + }); } else { oTrigger.addTrigger(function () { @@ -684,6 +691,10 @@ return true; }); } + + if (oEndSync) { + oEndSync.fillTrigger(oPlayer, oTrigger); + } return oTrigger; } } @@ -2701,13 +2712,14 @@ ? this.getLastFiniteEffect(aEffectsForDemo) : this.getLastFiniteEffect(oEffectCopy.originalNode.getTimeNodeWithLvl(2).getAllAnimEffects()); - if (lastFiniteEffect === oEffectCopy) { + if (lastFiniteEffect === oEffectCopy || aEffectCopies.length === 1) { oEffectCopy.cTn.changeRepeatCount(1000); } else { - const oEndSync = new CCond(); - oEndSync.setEvt(COND_EVNT_ON_END); - oEndSync.setTn(lastFiniteEffect.copyNode.getAttributesObject().id); - oEffectCopy.cTn.setEndSync(oEndSync); + oEffectCopy.cTn.setEndCondLst(new CCondLst()); + const oCond = new CCond(); + oCond.setEvt(COND_EVNT_ON_END); + oCond.setTn(lastFiniteEffect.copyNode.getAttributesObject().id); + oEffectCopy.cTn.endCondLst.push(oCond); } } @@ -3415,6 +3427,12 @@ for (let nSp = 0; nSp < aSpTree.length; ++nSp) { let oSp = aSpTree[nSp]; if (oSp.getFormatIdString() === this.spid) { + if(!isDrawingOnSlide(oSp)) { + if (this.parent) { + this.parent.onRemoveChild(this); + } + return; + } this.setSpid(oSp.Id); return; } @@ -3480,6 +3498,12 @@ for (let nSp = 0; nSp < aSpTree.length; ++nSp) { let oSp = aSpTree[nSp]; if ((oSp.getObjectType && oSp.getObjectType() === AscDFH.historyitem_type_ChartSpace) && oSp.getFormatIdString() === this.spid) { + if(!isDrawingOnSlide(oSp)) { + if (this.parent) { + this.parent.onRemoveChild(this); + } + return; + } this.setSpid(oSp.Id); return; } @@ -3967,6 +3991,12 @@ for (let nSp = 0; nSp < aSpTree.length; ++nSp) { let oSp = aSpTree[nSp]; if (oSp.getFormatIdString() === this.dgmId) { + if(!isDrawingOnSlide(oSp)) { + if (this.parent) { + this.parent.onRemoveChild(this); + } + return; + } this.setDgmId(oSp.Id); return; } @@ -6055,7 +6085,7 @@ if(!oSp) { return false; } - if(!oSp.IsUseInDocument()) { + if(!isDrawingOnSlide(oSp)) { return false; } return true; @@ -6137,6 +6167,20 @@ oClass.txEl = value; }; + function isDrawingOnSlide(oDrawing) { + if(!oDrawing) return false; + let oSlide = oDrawing.parent; + if(!oSlide) return false; + let aSpTree = oSlide.cSld && oSlide.cSld.spTree; + if(!Array.isArray(aSpTree)) return false; + for(let nSp = 0; nSp < aSpTree.length; ++nSp) { + if(aSpTree[nSp] === oDrawing) { + return true; + } + } + return false; + } + function CSpTgt() { CObjectTarget.call(this); this.bg = null; @@ -6170,7 +6214,8 @@ }; CSpTgt.prototype.assignConnection = function (oObjectsMap) { if (this.spid !== null) { - if (AscCommon.isRealObject(oObjectsMap[this.spid])) { + let oSp = oObjectsMap[this.spid]; + if (AscCommon.isRealObject(oSp) && isDrawingOnSlide(oSp)) { this.setSpid(oObjectsMap[this.spid].Id); } else { if (this.parent) { @@ -6192,6 +6237,12 @@ for (let nSp = 0; nSp < aSpTree.length; ++nSp) { let oSp = aSpTree[nSp]; if (oSp.getFormatIdString() === this.spid) { + if(!isDrawingOnSlide(oSp)) { + if (this.parent) { + this.parent.onRemoveChild(this); + } + return; + } this.setSpid(oSp.Id); return; } @@ -10254,33 +10305,31 @@ if(this.canvas.width === 0 || this.canvas.height === 0) { return; } - var bNoTransform = false; + oGraphics.SaveGrState(); + this.drawWithoutSaveState(oGraphics, oTransform); + oGraphics.RestoreGrState(); + oGraphics.FreeFont && oGraphics.FreeFont(); + }; + CBaseAnimTexture.prototype.drawWithIntegerGrid = function (oGraphics) { + oGraphics.SetIntegerGrid(true); + let nDx = oGraphics.m_oCoordTransform.tx; + let nDy = oGraphics.m_oCoordTransform.ty; + oGraphics.m_oContext.drawImage(this.canvas, (nDx + this.x + 0.5) >> 0, (nDy + this.y + 0.5) >> 0, this.canvas.width, this.canvas.height); + }; + CBaseAnimTexture.prototype.drawWithoutIntegerGrid = function (oGraphics, oTransform) { + oGraphics.SetIntegerGrid(false); + oGraphics.transform3(oTransform, false); + oGraphics.drawImage2(this.canvas, 0, 0, this.canvas.width / this.scale, this.canvas.height / this.scale); + }; + CBaseAnimTexture.prototype.drawWithoutSaveState = function(oGraphics, oTransform) { + if(this.canvas.width === 0 || this.canvas.height === 0) { + return; + } if (!oTransform) { - bNoTransform = true; - } else { - // if(oTransform.IsIdentity2()) { - // var fDelta = 2; - // if(AscFormat.fApproxEqual(oTransform.tx*this.scale, this.x, fDelta) && - // AscFormat.fApproxEqual(oTransform.ty*this.scale, this.y, fDelta)) { - // bNoTransform = true; - // } - // } - } - if (bNoTransform) { - oGraphics.SaveGrState(); - oGraphics.SetIntegerGrid(true); - var nDx = oGraphics.m_oCoordTransform.tx; - var nDy = oGraphics.m_oCoordTransform.ty; - oGraphics.m_oContext.drawImage(this.canvas, (nDx + this.x + 0.5) >> 0, (nDy + this.y + 0.5) >> 0, this.canvas.width, this.canvas.height); - oGraphics.RestoreGrState(); - oGraphics.FreeFont && oGraphics.FreeFont(); - } else { - oGraphics.SaveGrState(); - oGraphics.SetIntegerGrid(false); - oGraphics.transform3(oTransform, false); - oGraphics.drawImage2(this.canvas, 0, 0, this.canvas.width / this.scale, this.canvas.height / this.scale); - oGraphics.RestoreGrState(); - oGraphics.FreeFont && oGraphics.FreeFont(); + this.drawWithIntegerGrid(oGraphics); + } + else { + this.drawWithoutIntegerGrid(oGraphics, oTransform); } }; CBaseAnimTexture.prototype.beforeRelease = function() { @@ -13536,6 +13585,9 @@ MoveAnimationDrawObject.prototype.canGroup = function () { return false; }; + MoveAnimationDrawObject.prototype.canResize = function () { + return true; + }; MoveAnimationDrawObject.prototype.draw = function (oGraphics) { if (oGraphics.IsThumbnail === true || oGraphics.IsDemonstrationMode === true || diff --git a/slide/Editor/Format/ViewPr.js b/slide/Editor/Format/ViewPr.js index d290363fe5..f076e71390 100644 --- a/slide/Editor/Format/ViewPr.js +++ b/slide/Editor/Format/ViewPr.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/Local/api.js b/slide/Local/api.js index dffb8b9ff0..1144fdbe52 100644 --- a/slide/Local/api.js +++ b/slide/Local/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/api.js b/slide/api.js index 05c5ad4e08..b7e4eb67ee 100644 --- a/slide/api.js +++ b/slide/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -648,6 +648,8 @@ this.isOnlyDemonstration = false; + this.mouseMode = "select"; + this.presentationViewMode = Asc.c_oAscPresentationViewMode.normal; @@ -1056,31 +1058,33 @@ } }; }; - + asc_docs_api.prototype.startCollaborationEditing = function() + { + AscCommon.CollaborativeEditing.Start_CollaborationEditing(); + this.asc_setDrawCollaborationMarks(true); + if (this.WordControl && this.WordControl.m_oDrawingDocument) { - AscCommon.CollaborativeEditing.Start_CollaborationEditing(); - this.asc_setDrawCollaborationMarks(true); - if (this.WordControl && this.WordControl.m_oDrawingDocument) - { - this.WordControl.m_oDrawingDocument.Start_CollaborationEditing(); - } - }; + this.WordControl.m_oDrawingDocument.Start_CollaborationEditing(); + } + }; asc_docs_api.prototype.endCollaborationEditing = function() - { - AscCommon.CollaborativeEditing.End_CollaborationEditing(); + { + AscCommon.CollaborativeEditing.End_CollaborationEditing(); if (this.WordControl && this.WordControl.m_oLogicDocument && false !== this.WordControl.m_oLogicDocument.DrawingDocument.IsLockObjectsEnable) - { + { this.WordControl.m_oLogicDocument.DrawingDocument.IsLockObjectsEnable = false; this.WordControl.m_oLogicDocument.DrawingDocument.FirePaint(); - } - }; + } + }; asc_docs_api.prototype.isMasterMode = function() { return this.presentationViewMode === Asc.c_oAscPresentationViewMode.masterSlide && !this.isSlideShow(); }; - + asc_docs_api.prototype.asc_IsMasterMode = function() { + return this.isMasterMode(); + }; asc_docs_api.prototype.asc_AddMasterSlide = function() { if(!this.isMasterMode()) return; @@ -1192,6 +1196,7 @@ AscCommon.pptx_content_loader.ImageMapChecker = {}; this.WordControl.m_oDrawingDocument.CloseFile(); + this.sendEvent("asc_onCloseFile"); }; asc_docs_api.prototype.asc_SetFastCollaborative = function(isOn) { @@ -1876,12 +1881,12 @@ background-repeat: no-repeat;\ let oContentCustomPr = oCustomPrPart.getDocumentContent(); if(oContentCustomPr) { let oCustomPrReader = new StaxParser(oContentCustomPr, oCustomPrPart, xmlParserContext); - this.WordControl.m_oLogicDocument.CustomPr = new AscCommon.CCustomProperties(); this.WordControl.m_oLogicDocument.CustomPr.fromXml(oCustomPrReader, true); } } var context = reader.context; this.WordControl.m_oLogicDocument.ImageMap = context.loadDataLinks(); + context.GenerateSmartArts(); jsZlib.close(); return true; }; @@ -2145,11 +2150,6 @@ background-repeat: no-repeat;\ }; asc_docs_api.prototype.Copy = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Copy"); - return true; - } return AscCommon.g_clipboardBase.Button_Copy(); }; asc_docs_api.prototype.Update_ParaTab = function(Default_Tab, ParaTabs) @@ -2158,21 +2158,10 @@ background-repeat: no-repeat;\ }; asc_docs_api.prototype.Cut = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Cut"); - return true; - } return AscCommon.g_clipboardBase.Button_Cut(); }; asc_docs_api.prototype.Paste = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Paste"); - return true; - } - if (!this.WordControl.m_oLogicDocument) return false; @@ -2471,10 +2460,6 @@ background-repeat: no-repeat;\ { window["AscDesktopEditor"]["OnSave"](); } - if (t.disconnectOnSave) { - t.CoAuthoringApi.disconnect(t.disconnectOnSave.code, t.disconnectOnSave.reason); - t.disconnectOnSave = null; - } if (t.canUnlockDocument) { t._unlockDocument(); @@ -2503,7 +2488,7 @@ background-repeat: no-repeat;\ } }; asc_docs_api.prototype._autoSaveInner = function () { - if (this.WordControl.DemonstrationManager && this.WordControl.DemonstrationManager.Mode) { + if (this.isSlideShow()) { return; } @@ -2542,7 +2527,7 @@ background-repeat: no-repeat;\ } }; asc_docs_api.prototype._saveCheck = function() { - return !this.isLongAction() && !(this.WordControl.DemonstrationManager && this.WordControl.DemonstrationManager.Mode); + return !this.isLongAction() && !(this.isSlideShow()); }; asc_docs_api.prototype._haveOtherChanges = function () { return AscCommon.CollaborativeEditing.Have_OtherChanges(); @@ -4533,7 +4518,7 @@ background-repeat: no-repeat;\ oSlide.addToSpTreeToPos(oSlide.cSld.spTree.length, oSmartArt); } oSmartArt.checkDrawingBaseCoords(); - oSmartArt.fitFontSize(); + oSmartArt.generateDrawingPart(); oController.checkChartTextSelection(); oController.resetSelection(); oSmartArt.select(oController, 0); @@ -6049,6 +6034,23 @@ background-repeat: no-repeat;\ } }; + asc_docs_api.prototype.IsAsyncOpenDocumentImages = function() + { + return !this.isReporterMode && !this.asc_IsStartDemonstrationOnOpen(); + }; + asc_docs_api.prototype.asyncImagesDocumentStartLoaded = function(aImages) + { + let oDrawingDocument = this.WordControl.m_oDrawingDocument; + if(oDrawingDocument && oDrawingDocument.OnStartImagesLoading) + { + oDrawingDocument.OnStartImagesLoading(aImages); + } + }; + asc_docs_api.prototype.asyncImageEndLoadedBackground = function(_image) + { + this.WordControl.m_oDrawingDocument.CheckRasterImageOnScreen(_image.src); + }; + asc_docs_api.prototype._openDocumentEndCallback = function() { if (this.isDocumentLoadComplete || !this.ServerImagesWaitComplete || !this.ServerIdWaitComplete || @@ -6093,6 +6095,7 @@ background-repeat: no-repeat;\ } } this.WordControl.m_oLogicDocument.Recalculate({Drawings : {All : true, Map : {}}}); + AscCommon.History.private_ClearRecalcData(); var presentation = this.WordControl.m_oLogicDocument; presentation.DrawingDocument.OnEndRecalculate(); @@ -6801,6 +6804,25 @@ background-repeat: no-repeat;\ this.sendEvent("asc_onThumbnailsShow", bIsShow); }; + asc_docs_api.prototype.getTextInputOffset = function() + { + let ret = { + X : 0, + Y : 0 + }; + let wordControl = this.WordControl; + if (wordControl && wordControl.Thumbnails) + { + if (wordControl.m_bIsRuler && + wordControl.Thumbnails.FocusObjType === AscCommon.FOCUS_OBJECT_MAIN) + { + ret.X += ((5 * AscCommon.g_dKoef_mm_to_pix) >> 0); + ret.Y += ((7 * AscCommon.g_dKoef_mm_to_pix) >> 0); + } + } + return ret; + }; + asc_docs_api.prototype.getIsAnimPaneShow = function() { return this.WordControl.IsAnimPaneShown(); @@ -7604,7 +7626,7 @@ background-repeat: no-repeat;\ if (!bIsReporter) { - this.cancelEyedropper(); + this.turnOffSpecialModes(); } if (bIsReporter) @@ -8122,8 +8144,9 @@ background-repeat: no-repeat;\ var _transition = this.WordControl.m_oLogicDocument.Slides[_cur].transition; var _tr = this.WordControl.m_oDrawingDocument.TransitionSlide; - _tr.Type = _transition.TransitionType; - _tr.Param = _transition.TransitionOption; + let oTypeAndOption = _transition.getTypeAndOption(); + _tr.Type = oTypeAndOption.Type; + _tr.Param = oTypeAndOption.Option; _tr.Duration = _transition.TransitionDuration; _tr.Start(true, endCallback); @@ -8389,7 +8412,14 @@ background-repeat: no-repeat;\ this.openFileCryptCallback(this.openFileCryptBinary); } }; - + asc_docs_api.prototype.initCollaborativeEditing = function() + { + if (AscCommon.CollaborativeEditing) + return; + + AscCommon.CollaborativeEditing = new AscCommon.SlideCollaborativeEditing(); + }; + asc_docs_api.prototype._downloadAs = function(actionType, options, oAdditionalData, dataContainer, downloadType) { var t = this; @@ -8522,11 +8552,15 @@ background-repeat: no-repeat;\ { return this.asc_canPaste(); }; - asc_docs_api.prototype.onEndBuilderScript = function() + asc_docs_api.prototype._onEndBuilderScript = function(callback) { this.asc_Recalculate(); let logicDocument = this.getLogicDocument(); logicDocument.FinalizeAction(); + + if (callback) + callback(true) + return true; }; @@ -9292,10 +9326,50 @@ background-repeat: no-repeat;\ if(!this.WordControl) { return; } + window['AscCommon'].g_specialPasteHelper.SpecialPasteButton_Hide(true); this.WordControl.UpdateViewMode(); }; + + asc_docs_api.prototype.getCustomProperties = function() { + let oPresentation = this.private_GetLogicDocument(); + if(!oPresentation) + return null; + return oPresentation.CustomProperties; + }; + + asc_docs_api.prototype.addCustomProperty = function(name, type, value) + { + let oLogicDocument = this.private_GetLogicDocument(); + if(!oLogicDocument) + return; + oLogicDocument.AddCustomProperty(name, type, value); + }; + + asc_docs_api.prototype.modifyCustomProperty = function(idx, name, type, value) + { + let oLogicDocument = this.private_GetLogicDocument(); + if(!oLogicDocument) + return; + oLogicDocument.ModifyCustomProperty(idx, name, type, value); + }; + + asc_docs_api.prototype.removeCustomProperty = function(idx) + { + let oLogicDocument = this.private_GetLogicDocument(); + if(!oLogicDocument) + return; + oLogicDocument.RemoveCustomProperty(idx); + }; + + asc_docs_api.prototype.asc_setViewerTargetType = function(mode) + { + this.mouseMode = mode; + if (this.WordControl) + this.WordControl.setMouseMode(mode); + }; + //-------------------------------------------------------------export--------------------------------------------------- window['Asc'] = window['Asc'] || {}; window['AscCommonSlide'] = window['AscCommonSlide'] || {}; @@ -9856,7 +9930,10 @@ background-repeat: no-repeat;\ asc_docs_api.prototype["asc_DuplicateLayout"] = asc_docs_api.prototype.asc_DuplicateLayout; asc_docs_api.prototype["asc_CanDeleteMaster"] = asc_docs_api.prototype.asc_CanDeleteMaster; asc_docs_api.prototype["asc_CanDeleteLayout"] = asc_docs_api.prototype.asc_CanDeleteLayout; + asc_docs_api.prototype["asc_IsMasterMode"] = asc_docs_api.prototype.asc_IsMasterMode; + asc_docs_api.prototype["asc_setViewerTargetType"] = asc_docs_api.prototype.asc_setViewerTargetType; + window['Asc']['asc_CCommentData'] = window['Asc'].asc_CCommentData = asc_CCommentData; asc_CCommentData.prototype['asc_getText'] = asc_CCommentData.prototype.asc_getText; @@ -9999,4 +10076,6 @@ background-repeat: no-repeat;\ CSearchResult.prototype['get_Navigator'] = CSearchResult.prototype.get_Navigator; CSearchResult.prototype['put_Navigator'] = CSearchResult.prototype.put_Navigator; CSearchResult.prototype['put_Text'] = CSearchResult.prototype.put_Text; + + AscCommon['SlideEditorApi'] = AscCommon.SlideEditorApi = asc_docs_api; })(window, window.document); diff --git a/slide/apiBuilder.js b/slide/apiBuilder.js index 210b00076e..fd4c3e0156 100644 --- a/slide/apiBuilder.js +++ b/slide/apiBuilder.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -142,16 +142,6 @@ ApiImage.prototype = Object.create(ApiDrawing.prototype); ApiImage.prototype.constructor = ApiImage; - /** - * Class representing a chart. - * @constructor - */ - function ApiChart(oChart){ - ApiDrawing.call(this, oChart); - this.Chart = oChart; - } - ApiChart.prototype = Object.create(ApiDrawing.prototype); - ApiChart.prototype.constructor = ApiChart; /** * Class representing a group of drawings. @@ -178,7 +168,7 @@ * Class representing a table. * @param oGraphicFrame * @constructor - * */ + */ function ApiTable(oGraphicFrame){ this.Table = oGraphicFrame.graphicObject; ApiDrawing.call(this, oGraphicFrame); @@ -214,113 +204,127 @@ /** * Twentieths of a point (equivalent to 1/1440th of an inch). * @typedef {number} twips - */ + * @see office-js-api/Examples/Enumerations/twips.js + */ /** * 240ths of a line. * @typedef {number} line240 - */ + * @see office-js-api/Examples/Enumerations/line240.js + */ /** * Half-points (2 half-points = 1 point). * @typedef {number} hps - */ + * @see office-js-api/Examples/Enumerations/hps.js + */ /** * A numeric value from 0 to 255. * @typedef {number} byte - */ + * @see office-js-api/Examples/Enumerations/byte.js + */ /** * 60000th of a degree (5400000 = 90 degrees). * @typedef {number} PositiveFixedAngle - * */ + * @see office-js-api/Examples/Enumerations/PositiveFixedAngle.js + */ /** * A border type. * @typedef {("none" | "single")} BorderType - */ + * @see office-js-api/Examples/Enumerations/BorderType.js + */ /** * Types of custom tab. * @typedef {("clear" | "left" | "right" | "center")} TabJc - */ + * @see office-js-api/Examples/Enumerations/TabJc.js + */ /** * Eighths of a point (24 eighths of a point = 3 points). * @typedef {number} pt_8 - */ + * @see office-js-api/Examples/Enumerations/pt_8.js + */ /** * A point. * @typedef {number} pt - */ + * @see office-js-api/Examples/Enumerations/pt.js + */ /** * English measure unit. 1 mm = 36000 EMUs, 1 inch = 914400 EMUs. * @typedef {number} EMU - */ + * @see office-js-api/Examples/Enumerations/EMU.js + */ /** * This type specifies the preset shape geometry that will be used for a shape. * @typedef {("accentBorderCallout1" | "accentBorderCallout2" | "accentBorderCallout3" | "accentCallout1" | "accentCallout2" | "accentCallout3" | "actionButtonBackPrevious" | "actionButtonBeginning" | "actionButtonBlank" | "actionButtonDocument" | "actionButtonEnd" | "actionButtonForwardNext" | "actionButtonHelp" | "actionButtonHome" | "actionButtonInformation" | "actionButtonMovie" | "actionButtonReturn" | "actionButtonSound" | "arc" | "bentArrow" | "bentConnector2" | "bentConnector3" | "bentConnector4" | "bentConnector5" | "bentUpArrow" | "bevel" | "blockArc" | "borderCallout1" | "borderCallout2" | "borderCallout3" | "bracePair" | "bracketPair" | "callout1" | "callout2" | "callout3" | "can" | "chartPlus" | "chartStar" | "chartX" | "chevron" | "chord" | "circularArrow" | "cloud" | "cloudCallout" | "corner" | "cornerTabs" | "cube" | "curvedConnector2" | "curvedConnector3" | "curvedConnector4" | "curvedConnector5" | "curvedDownArrow" | "curvedLeftArrow" | "curvedRightArrow" | "curvedUpArrow" | "decagon" | "diagStripe" | "diamond" | "dodecagon" | "donut" | "doubleWave" | "downArrow" | "downArrowCallout" | "ellipse" | "ellipseRibbon" | "ellipseRibbon2" | "flowChartAlternateProcess" | "flowChartCollate" | "flowChartConnector" | "flowChartDecision" | "flowChartDelay" | "flowChartDisplay" | "flowChartDocument" | "flowChartExtract" | "flowChartInputOutput" | "flowChartInternalStorage" | "flowChartMagneticDisk" | "flowChartMagneticDrum" | "flowChartMagneticTape" | "flowChartManualInput" | "flowChartManualOperation" | "flowChartMerge" | "flowChartMultidocument" | "flowChartOfflineStorage" | "flowChartOffpageConnector" | "flowChartOnlineStorage" | "flowChartOr" | "flowChartPredefinedProcess" | "flowChartPreparation" | "flowChartProcess" | "flowChartPunchedCard" | "flowChartPunchedTape" | "flowChartSort" | "flowChartSummingJunction" | "flowChartTerminator" | "foldedCorner" | "frame" | "funnel" | "gear6" | "gear9" | "halfFrame" | "heart" | "heptagon" | "hexagon" | "homePlate" | "horizontalScroll" | "irregularSeal1" | "irregularSeal2" | "leftArrow" | "leftArrowCallout" | "leftBrace" | "leftBracket" | "leftCircularArrow" | "leftRightArrow" | "leftRightArrowCallout" | "leftRightCircularArrow" | "leftRightRibbon" | "leftRightUpArrow" | "leftUpArrow" | "lightningBolt" | "line" | "lineInv" | "mathDivide" | "mathEqual" | "mathMinus" | "mathMultiply" | "mathNotEqual" | "mathPlus" | "moon" | "nonIsoscelesTrapezoid" | "noSmoking" | "notchedRightArrow" | "octagon" | "parallelogram" | "pentagon" | "pie" | "pieWedge" | "plaque" | "plaqueTabs" | "plus" | "quadArrow" | "quadArrowCallout" | "rect" | "ribbon" | "ribbon2" | "rightArrow" | "rightArrowCallout" | "rightBrace" | "rightBracket" | "round1Rect" | "round2DiagRect" | "round2SameRect" | "roundRect" | "rtTriangle" | "smileyFace" | "snip1Rect" | "snip2DiagRect" | "snip2SameRect" | "snipRoundRect" | "squareTabs" | "star10" | "star12" | "star16" | "star24" | "star32" | "star4" | "star5" | "star6" | "star7" | "star8" | "straightConnector1" | "stripedRightArrow" | "sun" | "swooshArrow" | "teardrop" | "trapezoid" | "triangle" | "upArrowCallout" | "upDownArrow" | "upDownArrow" | "upDownArrowCallout" | "uturnArrow" | "verticalScroll" | "wave" | "wedgeEllipseCallout" | "wedgeRectCallout" | "wedgeRoundRectCallout")} ShapeType - */ + * @see office-js-api/Examples/Enumerations/ShapeType.js + */ /** * A bullet type which will be added to the paragraph in spreadsheet or presentation. * @typedef {("None" | "ArabicPeriod" | "ArabicParenR" | "RomanUcPeriod" | "RomanLcPeriod" | "AlphaLcParenR" | "AlphaLcPeriod" | "AlphaUcParenR" | "AlphaUcPeriod")} BulletType - */ - + * @see office-js-api/Examples/Enumerations/BulletType.js + */ - /** - * This type specifies the available chart types which can be used to create a new chart. - * @typedef {("bar" | "barStacked" | "barStackedPercent" | "bar3D" | "barStacked3D" | "barStackedPercent3D" | "barStackedPercent3DPerspective" | "horizontalBar" | "horizontalBarStacked" | "horizontalBarStackedPercent" | "horizontalBar3D" | "horizontalBarStacked3D" | "horizontalBarStackedPercent3D" | "lineNormal" | "lineStacked" | "lineStackedPercent" | "line3D" | "pie" | "pie3D" | "doughnut" | "scatter" | "stock" | "area" | "areaStacked" | "areaStackedPercent")} ChartType - */ /** * The available text vertical alignment (used to align text in a shape with a placement for text inside it). * @typedef {("top" | "center" | "bottom")} VerticalTextAlign - * */ + * @see office-js-api/Examples/Enumerations/VerticalTextAlign.js + */ /** * The available color scheme identifiers. * @typedef {("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "bg1" | "bg2" | "dk1" | "dk2" | "lt1" | "lt2" | "tx1" | "tx2")} SchemeColorId - * */ + * @see office-js-api/Examples/Enumerations/SchemeColorId.js + */ /** * The available preset color names. * @typedef {("aliceBlue" | "antiqueWhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedAlmond" | "blue" | "blueViolet" | "brown" | "burlyWood" | "cadetBlue" | "chartreuse" | "chocolate" | "coral" | "cornflowerBlue" | "cornsilk" | "crimson" | "cyan" | "darkBlue" | "darkCyan" | "darkGoldenrod" | "darkGray" | "darkGreen" | "darkGrey" | "darkKhaki" | "darkMagenta" | "darkOliveGreen" | "darkOrange" | "darkOrchid" | "darkRed" | "darkSalmon" | "darkSeaGreen" | "darkSlateBlue" | "darkSlateGray" | "darkSlateGrey" | "darkTurquoise" | "darkViolet" | "deepPink" | "deepSkyBlue" | "dimGray" | "dimGrey" | "dkBlue" | "dkCyan" | "dkGoldenrod" | "dkGray" | "dkGreen" | "dkGrey" | "dkKhaki" | "dkMagenta" | "dkOliveGreen" | "dkOrange" | "dkOrchid" | "dkRed" | "dkSalmon" | "dkSeaGreen" | "dkSlateBlue" | "dkSlateGray" | "dkSlateGrey" | "dkTurquoise" | "dkViolet" | "dodgerBlue" | "firebrick" | "floralWhite" | "forestGreen" | "fuchsia" | "gainsboro" | "ghostWhite" | "gold" | "goldenrod" | "gray" | "green" | "greenYellow" | "grey" | "honeydew" | "hotPink" | "indianRed" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderBlush" | "lawnGreen" | "lemonChiffon" | "lightBlue" | "lightCoral" | "lightCyan" | "lightGoldenrodYellow" | "lightGray" | "lightGreen" | "lightGrey" | "lightPink" | "lightSalmon" | "lightSeaGreen" | "lightSkyBlue" | "lightSlateGray" | "lightSlateGrey" | "lightSteelBlue" | "lightYellow" | "lime" | "limeGreen" | "linen" | "ltBlue" | "ltCoral" | "ltCyan" | "ltGoldenrodYellow" | "ltGray" | "ltGreen" | "ltGrey" | "ltPink" | "ltSalmon" | "ltSeaGreen" | "ltSkyBlue" | "ltSlateGray" | "ltSlateGrey" | "ltSteelBlue" | "ltYellow" | "magenta" | "maroon" | "medAquamarine" | "medBlue" | "mediumAquamarine" | "mediumBlue" | "mediumOrchid" | "mediumPurple" | "mediumSeaGreen" | "mediumSlateBlue" | "mediumSpringGreen" | "mediumTurquoise" | "mediumVioletRed" | "medOrchid" | "medPurple" | "medSeaGreen" | "medSlateBlue" | "medSpringGreen" | "medTurquoise" | "medVioletRed" | "midnightBlue" | "mintCream" | "mistyRose" | "moccasin" | "navajoWhite" | "navy" | "oldLace" | "olive" | "oliveDrab" | "orange" | "orangeRed" | "orchid" | "paleGoldenrod" | "paleGreen" | "paleTurquoise" | "paleVioletRed" | "papayaWhip" | "peachPuff" | "peru" | "pink" | "plum" | "powderBlue" | "purple" | "red" | "rosyBrown" | "royalBlue" | "saddleBrown" | "salmon" | "sandyBrown" | "seaGreen" | "seaShell" | "sienna" | "silver" | "skyBlue" | "slateBlue" | "slateGray" | "slateGrey" | "snow" | "springGreen" | "steelBlue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whiteSmoke" | "yellow" | "yellowGreen")} PresetColor - * */ + * @see office-js-api/Examples/Enumerations/PresetColor.js + */ /** * Possible values for the position of chart tick labels (either horizontal or vertical). - * * "none" - not display the selected tick labels. - * * "nextTo" - set the position of the selected tick labels next to the main label. - * * "low" - set the position of the selected tick labels in the part of the chart with lower values. - * * "high" - set the position of the selected tick labels in the part of the chart with higher values. + * "none" - not display the selected tick labels. + * "nextTo" - set the position of the selected tick labels next to the main label. + * "low" - set the position of the selected tick labels in the part of the chart with lower values. + * "high" - set the position of the selected tick labels in the part of the chart with higher values. * @typedef {("none" | "nextTo" | "low" | "high")} TickLabelPosition - * **/ + * @see office-js-api/Examples/Enumerations/TickLabelPosition.js + */ /** * The type of a fill which uses an image as a background. - * * "tile" - if the image is smaller than the shape which is filled, the image will be tiled all over the created shape surface. - * * "stretch" - if the image is smaller than the shape which is filled, the image will be stretched to fit the created shape surface. + * "tile" - if the image is smaller than the shape which is filled, the image will be tiled all over the created shape surface. + * "stretch" - if the image is smaller than the shape which is filled, the image will be stretched to fit the created shape surface. * @typedef {"tile" | "stretch"} BlipFillType - * */ + * @see office-js-api/Examples/Enumerations/BlipFillType.js + */ /** * The available preset patterns which can be used for the fill. * @typedef {"cross" | "dashDnDiag" | "dashHorz" | "dashUpDiag" | "dashVert" | "diagBrick" | "diagCross" | "divot" | "dkDnDiag" | "dkHorz" | "dkUpDiag" | "dkVert" | "dnDiag" | "dotDmnd" | "dotGrid" | "horz" | "horzBrick" | "lgCheck" | "lgConfetti" | "lgGrid" | "ltDnDiag" | "ltHorz" | "ltUpDiag" | "ltVert" | "narHorz" | "narVert" | "openDmnd" | "pct10" | "pct20" | "pct25" | "pct30" | "pct40" | "pct5" | "pct50" | "pct60" | "pct70" | "pct75" | "pct80" | "pct90" | "plaid" | "shingle" | "smCheck" | "smConfetti" | "smGrid" | "solidDmnd" | "sphere" | "trellis" | "upDiag" | "vert" | "wave" | "wdDnDiag" | "wdUpDiag" | "weave" | "zigZag"} PatternType - * */ + * @see office-js-api/Examples/Enumerations/PatternType.js + */ /** * The available types of tick mark appearance. * @typedef {("cross" | "in" | "none" | "out")} TickMark - * */ + * @see office-js-api/Examples/Enumerations/TickMark.js + */ /** * Text transform type. @@ -330,11 +334,13 @@ * | "textDoubleWave1" | "textFadeDown" | "textFadeLeft" | "textFadeRight" | "textFadeUp" | "textInflate" | "textInflateBottom" | "textInflateTop" * | "textPlain" | "textRingInside" | "textRingOutside" | "textSlantDown" | "textSlantUp" | "textStop" | "textTriangle" | "textTriangleInverted" * | "textWave1" | "textWave2" | "textWave4" | "textNoShape")} TextTransform - * */ + * @see office-js-api/Examples/Enumerations/TextTransform.js + */ /** * Axis position in the chart. * @typedef {("top" | "bottom" | "right" | "left")} AxisPos + * @see office-js-api/Examples/Enumerations/AxisPos.js */ /** @@ -343,6 +349,16 @@ * "0.00E+00" | "# ?/?" | "# ??/??" | "m/d/yyyy" | "d-mmm-yy" | "d-mmm" | "mmm-yy" | "h:mm AM/PM" | * "h:mm:ss AM/PM" | "h:mm" | "h:mm:ss" | "m/d/yyyy h:mm" | "#,##0_);(#,##0)" | "#,##0_);[Red](#,##0)" | * "#,##0.00_);(#,##0.00)" | "#,##0.00_);[Red](#,##0.00)" | "mm:ss" | "[h]:mm:ss" | "mm:ss.0" | "##0.0E+0" | "@")} NumFormat + * @see office-js-api/Examples/Enumerations/NumFormat.js + */ + + /** + * @typedef {("body" | "chart" | "clipArt" | "ctrTitle" | "diagram" | "date" | "footer" | "header" | "media" | "object" | "picture" | "sldImage" | "sldNumber" | "subTitle" | "table" | "title")} PlaceholderType - Available placeholder types. + */ + + /** + * Any valid drawing element. + * @typedef {(ApiShape | ApiImage | ApiGroup | ApiOleObject | ApiTable )} Drawing */ //------------------------------------------------------------------------------------------------------------------ @@ -354,14 +370,16 @@ /** * The 1000th of a percent (100000 = 100%). * @typedef {number} PositivePercentage - * */ + * @see office-js-api/Examples/Enumerations/PositivePercentage.js + */ /** * Returns the main presentation. * @typeofeditors ["CPE"] * @memberof Api * @returns {ApiPresentation} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/GetPresentation.js + */ Api.prototype.GetPresentation = function(){ if(this.WordControl && this.WordControl.m_oLogicDocument){ return new ApiPresentation(this.WordControl.m_oLogicDocument); @@ -375,7 +393,8 @@ * @memberof Api * @param {ApiTheme} [oTheme = ApiPresentation.GetMaster(0).GetTheme()] - The presentation theme object. * @returns {?ApiMaster} - returns null if presentation theme doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateMaster.js + */ Api.prototype.CreateMaster = function(oTheme){ if (!oTheme || !oTheme.GetClassType || oTheme.GetClassType() !== "theme") { @@ -399,7 +418,8 @@ * @memberof Api * @param {ApiMaster} [oMaster = null] - Parent slide master. * @returns {ApiLayout} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateLayout.js + */ Api.prototype.CreateLayout = function(oMaster){ var oLayout = new ApiLayout(new AscCommonSlide.SlideLayout()); @@ -415,7 +435,8 @@ * @memberof Api * @param {string} sType - The placeholder type ("body", "chart", "clipArt", "ctrTitle", "diagram", "date", "footer", "header", "media", "object", "picture", "sldImage", "sldNumber", "subTitle", "table", "title"). * @returns {ApiPlaceholder} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreatePlaceholder.js + */ Api.prototype.CreatePlaceholder = function(sType){ if (typeof(sType) !== "string") @@ -437,7 +458,8 @@ * @param {ApiThemeFormatScheme} oFormatScheme - Theme format scheme. Required parameter. * @param {ApiThemeFontScheme} oFontScheme - Theme font scheme. Required parameter. * @returns {ApiTheme | null} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateTheme.js + */ Api.prototype.CreateTheme = function(sName, oMaster, oClrScheme, oFormatScheme, oFontScheme){ if (typeof(sName) !== "string") sName = ""; @@ -483,7 +505,8 @@ * The array should contain a sequence of colors: 2 dark, 2 light, 6 primary, a color for a hyperlink and a color for the followed hyperlink. * @param {string} sName - Theme color scheme name. * @returns {?ApiThemeColorScheme} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateThemeColorScheme.js + */ Api.prototype.CreateThemeColorScheme = function(arrColors, sName){ if (typeof(sName) !== "string") sName = "New theme's color scheme"; @@ -517,7 +540,8 @@ * @param {ApiStroke[]} arrLine - This array contains the line styles. It should be consist of subtle, moderate and intense lines. * @param {string} sName - Theme format scheme name. * @returns {?ApiThemeFormatScheme} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateThemeFormatScheme.js + */ Api.prototype.CreateThemeFormatScheme = function(arrFill, arrBgFill, arrLine, sName){ if (typeof(sName) !== "string") @@ -553,7 +577,8 @@ * @param {string} mnCs - The minor theme font applied to the complex script text. * @param {string} sName - Theme font scheme name. * @returns {ApiThemeFontScheme} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateThemeFontScheme.js + */ Api.prototype.CreateThemeFontScheme = function(mjLatin, mjEa, mjCs, mnLatin, mnEa, mnCs, sName){ if (typeof(sName) !== "string") @@ -584,7 +609,8 @@ * @typeofeditors ["CPE"] * @memberof Api * @returns {ApiSlide} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateSlide.js + */ Api.prototype.CreateSlide = function(){ var oPresentation = private_GetPresentation(); var oSlide = new AscCommonSlide.Slide(oPresentation, oPresentation.slideMasters[0].sldLayoutLst[0], 0); @@ -603,7 +629,8 @@ * @param {EMU} nWidth - The image width in English measure units. * @param {EMU} nHeight - The image height in English measure units. * @returns {ApiImage} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateImage.js + */ Api.prototype.CreateImage = function(sImageSrc, nWidth, nHeight){ var oImage = AscFormat.DrawingObjectsController.prototype.createImage(sImageSrc, 0, 0, nWidth/36000, nHeight/36000); oImage.setParent(private_GetCurrentSlide()); @@ -620,6 +647,7 @@ * @param {string} sData - The OLE object string data. * @param {string} sAppId - The application ID associated with the current OLE object. * @returns {ApiOleObject} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateOleObject.js */ Api.prototype.CreateOleObject = function(sImageSrc, nWidth, nHeight, sData, sAppId) { @@ -646,7 +674,8 @@ * @param {ApiFill} [oFill = Api.CreateNoFill()] - The color or pattern used to fill the shape. * @param {ApiStroke} [oStroke = Api.CreateStroke(0, Api.CreateNoFill())] - The stroke used to create the element shadow. * @returns {ApiShape} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateShape.js + */ Api.prototype.CreateShape = function(sType, nWidth, nHeight, oFill, oStroke){ var oCurrentSlide = private_GetCurrentSlide(); sType = sType || "rect"; @@ -673,21 +702,24 @@ * @param {NumFormat[] | String[]} aNumFormats - Numeric formats which will be applied to the series (can be custom formats). * The default numeric format is "General". * @returns {ApiChart} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateChart.js + */ Api.prototype.CreateChart = function(sType, aSeries, aSeriesNames, aCatNames, nWidth, nHeight, nStyleIndex, aNumFormats) { var oChartSpace = AscFormat.builder_CreateChart(nWidth/36000, nHeight/36000, sType, aCatNames, aSeriesNames, aSeries, nStyleIndex, aNumFormats); oChartSpace.setParent(private_GetCurrentSlide()); - return new ApiChart(oChartSpace); + return Asc.editor.private_CreateApiChart(oChartSpace); }; /** * Creates a group of drawings. * @memberof Api + * @typeofeditors ["CPE"] * @param {Array} aDrawings - The array of drawings. * @returns {ApiGroup} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateGroup.js + */ Api.prototype.CreateGroup = function(aDrawings){ var oSlide = private_GetCurrentSlide(); if(oSlide){ @@ -702,10 +734,13 @@ /** * Creates a table. + * @memberof Api + * @typeofeditors ["CPE"] * @param nCols - Number of columns. * @param nRows - Number of rows. * @returns {?ApiTable} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateTable.js + */ Api.prototype.CreateTable = function(nCols, nRows){ var oPresentation = private_GetPresentation(); var oSlide = private_GetCurrentSlide(); @@ -726,7 +761,8 @@ * @memberof Api * @typeofeditors ["CPE"] * @returns {ApiParagraph} - */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateParagraph.js + */ Api.prototype.CreateParagraph = function() { return this.private_CreateApiParagraph(new AscWord.Paragraph(null, true)); @@ -736,71 +772,12 @@ * Saves changes to the specified document. * @typeofeditors ["CPE"] * @memberof Api + * @see office-js-api/Examples/{Editor}/Api/Methods/Save.js */ Api.prototype.Save = function () { this.SaveAfterMacros = true; }; - Api.prototype.private_checkDrawingUniNvPr = function(oDrawing) - { - var nv_sp_pr; - var drawing = oDrawing.Drawing; - - if (drawing) - { - switch (drawing.getObjectType()) - { - case AscDFH.historyitem_type_ChartSpace: - case AscDFH.historyitem_type_GraphicFrame: - { - if(!drawing.nvGraphicFramePr) - { - nv_sp_pr = new AscFormat.UniNvPr(); - nv_sp_pr.cNvPr.setId(++this.maxId); - drawing.setNvSpPr(nv_sp_pr); - } - break; - } - case AscDFH.historyitem_type_GroupShape: - { - if(!drawing.nvGrpSpPr) - { - nv_sp_pr = new AscFormat.UniNvPr(); - nv_sp_pr.cNvPr.setId(++this.maxId); - drawing.setNvSpPr(nv_sp_pr); - } - for(var i = 0; i < drawing.spTree.length; ++i) - { - this.checkDrawingUniNvPr(drawing.spTree[i]); - } - break; - } - case AscDFH.historyitem_type_ImageShape: - case AscDFH.historyitem_type_OleObject: - { - if(!drawing.nvPicPr) - { - nv_sp_pr = new AscFormat.UniNvPr(); - nv_sp_pr.cNvPr.setId(++this.maxId); - drawing.setNvSpPr(nv_sp_pr); - } - break; - } - case AscDFH.historyitem_type_Shape: - case AscDFH.historyitem_type_Cnx: - { - if(!drawing.nvSpPr) - { - nv_sp_pr = new AscFormat.UniNvPr(); - nv_sp_pr.cNvPr.setId(++this.maxId); - drawing.setNvSpPr(nv_sp_pr); - } - break; - } - } - } - }; - /** * Checks for duplicate placeholders and sets indexes. * Called when a placeholder is added to a shape. @@ -859,6 +836,7 @@ * @param {EMU} [nIndLeft=ApiPresentation.GetWidth() / 2] - The Text Art left side indentation value measured in English measure units. * @param {EMU} [nIndTop=ApiPresentation.GetHeight() / 2] - The Text Art top side indentation value measured in English measure units. * @returns {ApiDrawing} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateWordArt.js */ Api.prototype.CreateWordArt = function(oTextPr, sText, sTransform, oFill, oStroke, nRotAngle, nWidth, nHeight, nIndLeft, nIndTop) { var oPres = private_GetPresentation(); @@ -886,6 +864,7 @@ * @memberof Api * @param {JSON} sMessage - The JSON object to convert. * @typeofeditors ["CPE"] + * @see office-js-api/Examples/{Editor}/Api/Methods/FromJSON.js */ Api.prototype.FromJSON = function(sMessage) { @@ -972,7 +951,7 @@ oResult = new ApiShape(oReader.GraphicObjFromJSON(oParsedObj)); break; case "chartSpace": - oResult = new ApiChart(oReader.GraphicObjFromJSON(oParsedObj)); + oResult = this.private_CreateApiChart(oReader.GraphicObjFromJSON(oParsedObj)); break; case "textPr": oResult = this.private_CreateApiTextPr(oReader.TextPrDrawingFromJSON(oParsedObj)); @@ -1039,6 +1018,7 @@ * @typeofeditors ["CPE"] * @param {string} eventName - The event name. * @param {function} callback - Function to be called when the event fires. + * @see office-js-api/Examples/{Editor}/Api/Methods/attachEvent.js */ Api.prototype["attachEvent"] = Api.prototype.attachEvent; @@ -1048,6 +1028,7 @@ * @memberof Api * @typeofeditors ["CPE"] * @param {string} eventName - The event name. + * @see office-js-api/Examples/{Editor}/Api/Methods/detachEvent.js */ Api.prototype["detachEvent"] = Api.prototype.detachEvent; @@ -1061,7 +1042,8 @@ * Returns a type of the ApiPresentation class. * @typeofeditors ["CPE"] * @returns {"presentation"} - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetClassType.js + */ ApiPresentation.prototype.GetClassType = function() { return "presentation"; @@ -1072,7 +1054,8 @@ * @typeofeditors ["CPE"] * @memberof ApiPresentation * @returns {number} - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetCurSlideIndex.js + */ ApiPresentation.prototype.GetCurSlideIndex = function(){ if(this.Presentation){ return this.Presentation.CurPage; @@ -1084,9 +1067,11 @@ /** * Returns a slide by its position in the presentation. * @memberof ApiPresentation + * @typeofeditors ["CPE"] * @param {number} nIndex - The slide number (position) in the presentation. * @returns {?ApiSlide} - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetSlideByIndex.js + */ ApiPresentation.prototype.GetSlideByIndex = function(nIndex){ if(this.Presentation && this.Presentation.Slides[nIndex]){ return new ApiSlide(this.Presentation.Slides[nIndex]); @@ -1099,7 +1084,8 @@ * @typeofeditors ["CPE"] * @memberof ApiPresentation * @returns {?ApiSlide} - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetCurrentSlide.js + */ ApiPresentation.prototype.GetCurrentSlide = function () { return this.GetSlideByIndex(this.GetCurSlideIndex()); }; @@ -1110,7 +1096,8 @@ * @typeofeditors ["CPE"] * @memberof ApiPresentation * @param {ApiSlide} oSlide - The slide created using the {@link Api#CreateSlide} method. - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/AddSlide.js + */ ApiPresentation.prototype.AddSlide = function(oSlide) { if(this.Presentation){ oSlide.Slide.setSlideNum(this.Presentation.Slides.length); @@ -1126,7 +1113,8 @@ * @memberof ApiPresentation * @param {EMU} nWidth - The presentation width in English measure units. * @param {EMU} nHeight - The presentation height in English measure units. - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/SetSizes.js + */ ApiPresentation.prototype.SetSizes = function(nWidth, nHeight) { if(this.Presentation){ this.Presentation.internalChangeSizes(nWidth, nHeight); @@ -1137,7 +1125,8 @@ * Creates a new history point. * @typeofeditors ["CPE"] * @memberof ApiPresentation - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/CreateNewHistoryPoint.js + */ ApiPresentation.prototype.CreateNewHistoryPoint = function() { this.Presentation.Create_NewHistoryPoint(AscDFH.historydescription_Document_ApiBuilder); @@ -1151,7 +1140,8 @@ * @param {string} sImageUrl - The image source where the image to be inserted should be taken from (currently, only internet URL or Base64 encoded images are supported). * @param {EMU} Width - The image width in English measure units. * @param {EMU} Height - The image height in English measure units. - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/ReplaceCurrentImage.js + */ ApiPresentation.prototype.ReplaceCurrentImage = function(sImageUrl, Width, Height) { let oPr = this.Presentation; @@ -1170,6 +1160,7 @@ * @param {string} sLangId - The possible value for this parameter is a language identifier as defined by * RFC 4646/BCP 47. Example: "en-CA". * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/SetLanguage.js */ ApiPresentation.prototype.SetLanguage = function(sLangId) { @@ -1184,7 +1175,8 @@ * Returns a number of slides. * @typeofeditors ["CPE"] * @returns {number} - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetSlidesCount.js + */ ApiPresentation.prototype.GetSlidesCount = function() { return this.Presentation.GetSlidesCount(); @@ -1194,7 +1186,8 @@ * Returns a number of slide masters. * @typeofeditors ["CPE"] * @returns {number} - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetMastersCount.js + */ ApiPresentation.prototype.GetMastersCount = function() { return this.Presentation.slideMasters.length; @@ -1205,7 +1198,8 @@ * @typeofeditors ["CPE"] * @param {number} nPos - Slide master position in the presentation * @returns {ApiMaster | null} - returns null if position is invalid. - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetMaster.js + */ ApiPresentation.prototype.GetMaster = function(nPos) { if (nPos < 0 || nPos >= this.Presentation.slideMasters.length) @@ -1220,7 +1214,8 @@ * @param {number} [nPos = ApiPresentation.GetMastersCount()] * @param {ApiMaster} oApiMaster - The slide master to be added. * @returns {boolean} - return false if position is invalid or oApiMaster doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/AddMaster.js + */ ApiPresentation.prototype.AddMaster = function(nPos, oApiMaster) { if (oApiMaster && oApiMaster.GetClassType && oApiMaster.GetClassType() === "master") @@ -1241,7 +1236,8 @@ * @typeofeditors ["CPE"] * @param {ApiTheme} oApiTheme - The presentation theme. * @returns {boolean} - returns false if param isn't theme or presentation doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/ApplyTheme.js + */ ApiPresentation.prototype.ApplyTheme = function(oApiTheme){ if (this.Presentation && oApiTheme.GetClassType && oApiTheme.GetClassType() === "theme") { @@ -1259,6 +1255,7 @@ * @param {Number} [nCount=ApiPresentation.GetSlidesCount()] - The number of slides to delete. * @typeofeditors ["CPE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/RemoveSlides.js */ ApiPresentation.prototype.RemoveSlides = function(nStart, nCount) { @@ -1284,7 +1281,8 @@ * @typeofeditors ["CPE"] * @memberof ApiPresentation * @returns {EMU} - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetWidth.js + */ ApiPresentation.prototype.GetWidth = function() { if(this.Presentation){ return this.Presentation.GetWidthEMU(); @@ -1296,7 +1294,8 @@ * @typeofeditors ["CPE"] * @memberof ApiPresentation * @returns {EMU} - */ + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetHeight.js + */ ApiPresentation.prototype.GetHeight = function() { if(this.Presentation){ return this.Presentation.GetHeightEMU(); @@ -1309,6 +1308,7 @@ * @typeofeditors ["CPE"] * @param {bool} [bWriteTableStyles=false] - Specifies whether to write used table styles to the JSON object (true) or not (false). * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/ToJSON.js */ ApiPresentation.prototype.ToJSON = function(bWriteTableStyles){ let oWriter = new AscJsonConverter.WriterToJSON(); @@ -1328,6 +1328,7 @@ * @param {bool} [bWriteAllMasLayouts=false] - Specifies if all child layouts from the slide master will be written to the JSON object or not. * @param {bool} [bWriteTableStyles=false] - Specifies whether to write used table styles to the JSON object (true) or not (false). * @returns {JSON[]} + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/SlidesToJSON.js */ ApiPresentation.prototype.SlidesToJSON = function(nStart, nEnd, bWriteLayout, bWriteMaster, bWriteAllMasLayouts, bWriteTableStyles){ let oWriter = new AscJsonConverter.WriterToJSON(); @@ -1346,26 +1347,12 @@ return JSON.stringify(oResult); }; - ApiPresentation.prototype.GetInfoOle = function(){ - for (var nSlide = 0; nSlide < this.Presentation.Slides.length; nSlide++) - { - var oSlide = this.Presentation.Slides[nSlide]; - for (var nDrawing = 0; nDrawing < oSlide.cSld.spTree.length; nDrawing++) - { - var oDrawing = oSlide.cSld.spTree[nDrawing]; - - if (oDrawing instanceof AscFormat.COleObject) - return {slide: nSlide, drawing: nDrawing} - } - } - }; - - /** * Returns all comments from the current presentation. * @memberof ApiPresentation * @typeofeditors ["CPE"] * @returns {ApiComment[]} + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetAllComments.js */ ApiPresentation.prototype.GetAllComments = function() { @@ -1377,6 +1364,90 @@ return aApiComments; }; + /** + * Returns the document information: + * Application - the application the document has been created with. + * CreatedRaw - the date and time when the file was created. + * Created - the parsed date and time when the file was created. + * LastModifiedRaw - the date and time when the file was last modified. + * LastModified - the parsed date and time when the file was last modified. + * LastModifiedBy - the name of the user who has made the latest change to the document. + * Autrors - the persons who has created the file. + * Title - this property allows you to simplify your documents classification. + * Tags - this property allows you to simplify your documents classification. + * Subject - this property allows you to simplify your documents classification. + * Comment - this property allows you to simplify your documents classification. + * @memberof ApiPresentation + * @typeofeditors ["CPE"] + * @returns {object} + * @see office-js-api/Examples/{Editor}/ApiPresentation/Methods/GetDocumentInfo.js + */ + ApiPresentation.prototype.GetDocumentInfo = function() + { + const oDocInfo = { + Application: '', + CreatedRaw: null, + Created: '', + LastModifiedRaw: null, + LastModified: '', + LastModifiedBy: '', + Autrors: [], + Title: '', + Tags: '', + Subject: '', + Comment: '' + }; + const api = this.Presentation.Api; + + let props = (api) ? api.asc_getAppProps() : null; + oDocInfo.Application = (props.asc_getApplication() || '') + (props.asc_getAppVersion() ? ' ' : '') + (props.asc_getAppVersion() || ''); + + let langCode = 1033; // en-US + let langName = 'en-us'; + if (api.asc_getLocale) { + let locale = api.asc_getLocale(); + if (locale) + langName = locale.replace('_', '-').toLowerCase(); + } else if (this.Presentation.GetDefaultLanguage && window['Common']) { + langCode = this.Presentation.GetDefaultLanguage(); + langName = window['Common']['util']['LanguageInfo']['getLocalLanguageName'](langCode)[0].toLowerCase(); + + } + + props = api.asc_getCoreProps(); + oDocInfo.CreatedRaw = props.asc_getCreated(); + oDocInfo.LastModifiedRaw = props.asc_getModified(); + + try { + if (oDocInfo.CreatedRaw) + oDocInfo.Created = (oDocInfo.CreatedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' +oDocInfo. CreatedRaw.toLocaleString(langName, {timeStyle: 'short'})); + + if (oDocInfo.LastModifiedRaw) + oDocInfo.LastModified = (oDocInfo.LastModifiedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.LastModifiedRaw.toLocaleString(langName, {timeStyle: 'short'})); + } catch (e) { + langName = 'en'; + if (oDocInfo.CreatedRaw) + oDocInfo.Created = (oDocInfo.CreatedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.CreatedRaw.toLocaleString(langName, {timeStyle: 'short'})); + + if (oDocInfo.LastModifiedRaw) + oDocInfo.LastModified = (oDocInfo.LastModifiedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.LastModifiedRaw.toLocaleString(langName, {timeStyle: 'short'})); + } + + const LastModifiedBy = props.asc_getLastModifiedBy(); + oDocInfo.LastModifiedBy = AscCommon.UserInfoParser.getParsedName(LastModifiedBy); + + oDocInfo.Title = (props.asc_getTitle() || ''); + oDocInfo.Tags = (props.asc_getKeywords() || ''); + oDocInfo.Subject = (props.asc_getSubject() || ''); + oDocInfo.Comment = (props.asc_getDescription() || ''); + + const authors = props.asc_getCreator(); + if (authors) + oDocInfo.Autrors = authors.split(/\s*[,;]\s*/); + + return oDocInfo; + }; + //------------------------------------------------------------------------------------------------------------------ // // ApiMaster @@ -1387,7 +1458,8 @@ * Returns the type of the ApiMaster class. * @typeofeditors ["CPE"] * @returns {"master"} - */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetClassType.js + */ ApiMaster.prototype.GetClassType = function() { return "master"; @@ -1398,7 +1470,8 @@ * @typeofeditors ["CPE"] * @param {number} nPos - Layout position. * @returns {ApiLayout | null} - returns null if position is invalid. - */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetLayout.js + */ ApiMaster.prototype.GetLayout = function(nPos) { if (nPos < 0 || nPos > this.Master.sldLayoutLst.length) @@ -1413,7 +1486,8 @@ * @param {number} [nPos = ApiMaster.GetLayoutsCount()] - Position where a layout will be added. * @param {ApiLayout} oLayout - A layout to be added. * @returns {boolean} - returns false if oLayout isn't a layout. - */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/AddLayout.js + */ ApiMaster.prototype.AddLayout = function(nPos, oLayout) { if (nPos < 0 || nPos > this.Master.sldLayoutLst.length) @@ -1433,7 +1507,8 @@ * @param {number} nPos - Position from which a layout will be deleted. * @param {number} [nCount = 1] - Number of layouts to delete. * @returns {boolean} - return false if position is invalid. - */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/RemoveLayout.js + */ ApiMaster.prototype.RemoveLayout = function(nPos, nCount) { if (this.Master && this.Master.sldLayoutLst.length > 0) @@ -1455,7 +1530,8 @@ * Returns a number of layout objects. * @typeofeditors ["CPE"] * @returns {number} - */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetLayoutsCount.js + */ ApiMaster.prototype.GetLayoutsCount = function() { return this.Master.sldLayoutLst.length; @@ -1467,7 +1543,8 @@ * @memberof ApiMaster * @param {ApiDrawing} oDrawing - The object which will be added to the current slide master. * @returns {boolean} - returns false if slide master doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/AddObject.js + */ ApiMaster.prototype.AddObject = function(oDrawing) { if (this.Master) @@ -1489,7 +1566,8 @@ * @param {number} nPos - Position from which the object will be deleted. * @param {number} [nCount = 1] - Number of objects to delete. * @returns {boolean} - returns false if master doesn't exist or position is invalid or master hasn't objects. - */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/RemoveObject.js + */ ApiMaster.prototype.RemoveObject = function(nPos, nCount) { if (this.Master && this.Master.cSld.spTree.length > 0) @@ -1514,7 +1592,8 @@ * @typeofeditors ["CPE"] * @param {ApiFill} oApiFill - The color or pattern used to fill the presentation slide master background. * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/SetBackground.js + */ ApiMaster.prototype.SetBackground = function(oApiFill){ if(oApiFill && oApiFill.GetClassType && oApiFill.GetClassType() === "fill" && this.Master){ var bg = new AscFormat.CBg(); @@ -1530,7 +1609,8 @@ * Clears the slide master background. * @typeofeditors ["CPE"] * @returns {boolean} - return false if slide master doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/ClearBackground.js + */ ApiMaster.prototype.ClearBackground = function(){ if (!this.Master) return false; @@ -1549,7 +1629,8 @@ * @typeofeditors ["CPE"] * @returns {ApiMaster | null} - returns new ApiMaster object that represents the copy of slide master. * Returns null if slide doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/Copy.js + */ ApiMaster.prototype.Copy = function(){ if (!this.Master) return null; @@ -1564,7 +1645,8 @@ * @param {number} [nPos = ApiPresentation.GetMastersCount()] - Position where the new slide master will be added. * @returns {ApiMaster | null} - returns new ApiMaster object that represents the copy of slide master. * Returns null if slide master doesn't exist or is not in the presentation. - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/Duplicate.js + */ ApiMaster.prototype.Duplicate = function(nPos){ if (!this.Master) return null; @@ -1584,7 +1666,8 @@ * Deletes the specified object from the parent if it exists. * @typeofeditors ["CPE"] * @returns {boolean} - return false if master doesn't exist or is not in the presentation. - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/Delete.js + */ ApiMaster.prototype.Delete = function(){ if (this.Master && this.Master.presentation) { @@ -1605,7 +1688,8 @@ * Returns a theme of the slide master. * @typeofeditors ["CPE"] * @returns {ApiTheme | null} - returns null if theme doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetTheme.js + */ ApiMaster.prototype.GetTheme = function(){ if (this.Master && this.Master.Theme) { @@ -1626,7 +1710,8 @@ * @typeofeditors ["CPE"] * @param {ApiTheme} oTheme - Presentation theme. * @returns {boolean} - return false if oTheme isn't a theme or slide master doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/SetTheme.js + */ ApiMaster.prototype.SetTheme = function(oTheme){ if (this.Master && oTheme && oTheme.GetClassType && oTheme.GetClassType() === "theme") { @@ -1641,98 +1726,67 @@ /** * Returns an array with all the drawing objects from the slide master. * @typeofeditors ["CPE"] - * @returns {ApiDrawing[]} - * */ + * @returns {Drawing[]} + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetAllDrawings.js + */ ApiMaster.prototype.GetAllDrawings = function(){ - var apiDrawingObjects = []; - if (this.Master) - { - var drawingObjects = this.Master.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - apiDrawingObjects.push(new ApiDrawing(drawingObjects[nObject])); + if (!this.Master) { + return []; } - - return apiDrawingObjects; + + let drawingObjects = this.Master.cSld.spTree; + return private_GetApiDrawings(drawingObjects); }; /** * Returns an array with all the shape objects from the slide master. * @typeofeditors ["CPE"] * @returns {ApiShape[]} - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetAllShapes.js + */ ApiMaster.prototype.GetAllShapes = function(){ - var apiShapes = []; - if (this.Master) - { - var drawingObjects = this.Master.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CShape) - apiShapes.push(new ApiShape(drawingObjects[nObject])); - } - } - - return apiShapes; + if(!this.Master) { + return []; + } + return private_GetAllDrawingsWithType(this.Master.cSld.spTree, AscDFH.historyitem_type_Shape, + function (oDrawing) {return new ApiShape(oDrawing);}); + }; /** * Returns an array with all the image objects from the slide master. * @typeofeditors ["CPE"] * @returns {ApiImage[]} - * */ + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetAllImages.js + */ ApiMaster.prototype.GetAllImages = function(){ - var apiImages = []; - if (this.Master) - { - var drawingObjects = this.Master.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CImageShape) - apiImages.push(new ApiImage(drawingObjects[nObject])); - } - } - - return apiImages; + if(!this.Master) return []; + return private_GetAllDrawingsWithType(this.Master.cSld.spTree, AscDFH.historyitem_type_ImageShape, + function (oDrawing) {return new ApiImage(oDrawing);}); }; /** * Returns an array with all the chart objects from the slide master. * @typeofeditors ["CPE"] * @returns {ApiChart[]} - * */ - ApiMaster.prototype.GetAllCharts = function(){ - var apiCharts = []; - if (this.Master) - { - var drawingObjects = this.Master.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CChartSpace) - apiCharts.push(new ApiChart(drawingObjects[nObject])); - } - } - - return apiCharts; + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetAllCharts.js + */ + ApiMaster.prototype.GetAllCharts = function() { + if(!this.Master) return []; + return private_GetAllDrawingsWithType(this.Master.cSld.spTree, AscDFH.historyitem_type_ChartSpace, + function (oDrawing) {return private_GetApi().private_CreateApiChart(oDrawing);}); }; /** * Returns an array with all the OLE objects from the slide master. * @typeofeditors ["CPE"] * @returns {ApiOleObject[]} - * */ - ApiMaster.prototype.GetAllOleObjects = function(){ - var apiOle = []; - if (this.Master) - { - var drawingObjects = this.Master.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.COleObject) - apiOle.push(new ApiOleObject(drawingObjects[nObject])); - } - } - - return apiOle; + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetAllOleObjects.js + */ + ApiMaster.prototype.GetAllOleObjects = function() { + if(!this.Master) return []; + return private_GetAllDrawingsWithType(this.Master.cSld.spTree, AscDFH.historyitem_type_OleObject, + function (oDrawing) {return new ApiOleObject(oDrawing);}); }; /** * Converts the ApiMaster object into the JSON object. @@ -1740,6 +1794,7 @@ * @typeofeditors ["CPE"] * @param {bool} [bWriteTableStyles=false] - Specifies whether to write used table styles to the JSON object (true) or not (false). * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/ToJSON.js */ ApiMaster.prototype.ToJSON = function(bWriteTableStyles){ let oWriter = new AscJsonConverter.WriterToJSON(); @@ -1749,6 +1804,24 @@ return JSON.stringify(oResult); }; + /** + * Returns an array of drawings by the specified placeholder type. + * @memberof ApiMaster + * @typeofeditors ["CPE"] + * @param {PlaceholderType} sType - The placeholder type. + * @returns {Drawing[]} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiMaster/Methods/GetDrawingsByPlaceholderType.js + */ + ApiMaster.prototype.GetDrawingsByPlaceholderType = function(sType) { + let aDrawings = this.GetAllDrawings(); + + let nType = private_GetPlaceholderInnerType(sType); + return aDrawings.filter(function(drawing) { + return drawing.Drawing.getPlaceholderType() == nType; + }); + }; + //------------------------------------------------------------------------------------------------------------------ // // ApiLayout @@ -1759,7 +1832,8 @@ * Returns the type of the ApiLayout class. * @typeofeditors ["CPE"] * @returns {"layout"} - */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/GetClassType.js + */ ApiLayout.prototype.GetClassType = function() { return "layout"; @@ -1770,7 +1844,8 @@ * @typeofeditors ["CPE"] * @param {string} sName - Layout name to be set. * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/SetName.js + */ ApiLayout.prototype.SetName = function(sName) { if (typeof(sName) !== "string") @@ -1787,7 +1862,8 @@ * @memberof ApiLayout * @param {ApiDrawing} oDrawing - The object which will be added to the current slide layout. * @returns {boolean} - returns false if slide layout doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/AddObject.js + */ ApiLayout.prototype.AddObject = function(oDrawing) { if (this.Layout) @@ -1809,7 +1885,8 @@ * @param {number} nPos - Position from which the object will be deleted. * @param {number} [nCount = 1] - The number of elements to delete. * @returns {boolean} - returns false if layout doesn't exist or position is invalid or layout hasn't objects. - */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/RemoveObject.js + */ ApiLayout.prototype.RemoveObject = function(nPos, nCount) { if (this.Layout && this.Layout.cSld.spTree.length > 0) @@ -1833,7 +1910,8 @@ * @typeofeditors ["CPE"] * @param {ApiFill} oApiFill - The color or pattern used to fill the presentation slide layout background.\ * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/SetBackground.js + */ ApiLayout.prototype.SetBackground = function(oApiFill){ if(oApiFill && oApiFill.GetClassType && oApiFill.GetClassType() === "fill" && this.Layout){ var bg = new AscFormat.CBg(); @@ -1849,7 +1927,8 @@ * Clears the slide layout background. * @typeofeditors ["CPE"] * @returns {boolean} - return false if slide layout doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/ClearBackground.js + */ ApiLayout.prototype.ClearBackground = function(){ if (!this.Layout) return false; @@ -1867,7 +1946,8 @@ * Sets the master background as the background of the layout. * @typeofeditors ["CPE"] * @returns {boolean} - returns false if master is null or master hasn't background. - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/FollowMasterBackground.js + */ ApiLayout.prototype.FollowMasterBackground = function(){ if (!this.Layout) return false; @@ -1889,7 +1969,8 @@ * @typeofeditors ["CPE"] * @returns {ApiLayout | null} - returns new ApiLayout object that represents the copy of slide layout. * Returns null if slide layout doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/Copy.js + */ ApiLayout.prototype.Copy = function(){ if (!this.Layout) return null; @@ -1902,7 +1983,8 @@ * Deletes the specified object from the parent slide master if it exists. * @typeofeditors ["CPE"] * @returns {boolean} - return false if parent slide master doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/Delete.js + */ ApiLayout.prototype.Delete = function(){ if (this.Layout && this.Layout.Master) { @@ -1924,7 +2006,8 @@ * @param {number} [nPos = ApiMaster.GetLayoutsCount()] - Position where the new slide layout will be added. * @returns {ApiLayout | null} - returns new ApiLayout object that represents the copy of slide layout. * Returns null if slide layout doesn't exist or is not in the slide master. - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/Duplicate.js + */ ApiLayout.prototype.Duplicate = function(nPos){ if (this.Layout && this.Layout.Master) { @@ -1946,7 +2029,8 @@ * @typeofeditors ["CPE"] * @param {number} nPos - Position where the specified slide layout will be moved to. * @returns {boolean} - returns false if layout or parent slide master doesn't exist or position is invalid. - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/MoveTo.js + */ ApiLayout.prototype.MoveTo = function(nPos){ if (!this.Layout || !this.Layout.Master) return false; @@ -1966,105 +2050,78 @@ /** * Returns an array with all the drawing objects from the slide layout. * @typeofeditors ["CPE"] - * @returns {ApiDrawing[]} - * */ + * @returns {Drawing[]} + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/GetAllDrawings.js + */ ApiLayout.prototype.GetAllDrawings = function(){ - var apiDrawingObjects = []; - if (this.Layout) - { - var drawingObjects = this.Layout.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - apiDrawingObjects.push(new ApiDrawing(drawingObjects[nObject])); + if (!this.Layout) { + return []; } - - return apiDrawingObjects; + + let drawingObjects = this.Layout.cSld.spTree; + return private_GetApiDrawings(drawingObjects); }; /** * Returns an array with all the shape objects from the slide layout. * @typeofeditors ["CPE"] * @returns {ApiShape[]} - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/GetAllShapes.js + */ ApiLayout.prototype.GetAllShapes = function(){ - var apiShapes = []; - if (this.Layout) - { - var drawingObjects = this.Layout.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CShape) - apiShapes.push(new ApiShape(drawingObjects[nObject])); - } - } - - return apiShapes; + if(!this.Layout) { + return []; + } + return private_GetAllDrawingsWithType(this.Layout.cSld.spTree, AscDFH.historyitem_type_Shape, + function (oDrawing) {return new ApiShape(oDrawing);}); }; /** * Returns an array with all the image objects from the slide layout. * @typeofeditors ["CPE"] * @returns {ApiImage[]} - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/GetAllImages.js + */ ApiLayout.prototype.GetAllImages = function(){ - var apiImages = []; - if (this.Layout) - { - var drawingObjects = this.Layout.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CImageShape) - apiImages.push(new ApiImage(drawingObjects[nObject])); - } - } - - return apiImages; + if(!this.Layout) { + return []; + } + return private_GetAllDrawingsWithType(this.Layout.cSld.spTree, AscDFH.historyitem_type_ImageShape, + function (oDrawing) {return new ApiImage(oDrawing);}); }; /** * Returns an array with all the chart objects from the slide layout. * @typeofeditors ["CPE"] * @returns {ApiChart[]} - * */ - ApiLayout.prototype.GetAllCharts = function(){ - var apiCharts = []; - if (this.Layout) - { - var drawingObjects = this.Layout.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CChartSpace) - apiCharts.push(new ApiChart(drawingObjects[nObject])); - } - } - - return apiCharts; + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/GetAllCharts.js + */ + ApiLayout.prototype.GetAllCharts = function() { + if(!this.Layout) { + return []; + } + return private_GetAllDrawingsWithType(this.Layout.cSld.spTree, AscDFH.historyitem_type_ChartSpace, + function (oDrawing) {return private_GetApi().private_CreateApiChart(oDrawing);}); }; /** * Returns an array with all the OLE objects from the slide layout. * @typeofeditors ["CPE"] * @returns {ApiOleObject[]} - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/GetAllOleObjects.js + */ ApiLayout.prototype.GetAllOleObjects = function(){ - var apiOle = []; - if (this.Layout) - { - var drawingObjects = this.Layout.cSld.spTree; - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.COleObject) - apiOle.push(new ApiOleObject(drawingObjects[nObject])); - } - } - - return apiOle; + if(!this.Layout) return []; + return private_GetAllDrawingsWithType(this.Layout.cSld.spTree, AscDFH.historyitem_type_OleObject, + function (oDrawing) {return new ApiOleObject(oDrawing);}); }; /** * Returns the parent slide master of the current layout. * @typeofeditors ["CPE"] * @returns {?ApiMaster} - returns null if parent slide master doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/GetMaster.js + */ ApiLayout.prototype.GetMaster = function(){ if (this.Layout && this.Layout.Master) return new ApiMaster(this.Layout.Master); @@ -2078,6 +2135,7 @@ * @param {bool} [bWriteMaster=false] - Specifies if the slide master will be written to the JSON object or not. * @param {bool} [bWriteTableStyles=false] - Specifies whether to write used table styles to the JSON object (true) or not (false). * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/ToJSON.js */ ApiLayout.prototype.ToJSON = function(bWriteMaster, bWriteTableStyles){ let oWriter = new AscJsonConverter.WriterToJSON(); @@ -2087,6 +2145,24 @@ return JSON.stringify(oResult); }; + /** + * Returns an array of drawings by the specified placeholder type. + * @memberof ApiLayout + * @typeofeditors ["CPE"] + * @param {PlaceholderType} sType - The placeholder type. + * @returns {Drawing[]} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiLayout/Methods/GetDrawingsByPlaceholderType.js + */ + ApiLayout.prototype.GetDrawingsByPlaceholderType = function(sType) { + let aDrawings = this.GetAllDrawings(); + + let nType = private_GetPlaceholderInnerType(sType); + return aDrawings.filter(function(drawing) { + return drawing.Drawing.getPlaceholderType() == nType; + }); + }; + //------------------------------------------------------------------------------------------------------------------ // // ApiPlaceholder @@ -2097,77 +2173,85 @@ * Returns the type of the ApiPlaceholder class. * @typeofeditors ["CPE"] * @returns {"placeholder"} - */ + * @see office-js-api/Examples/{Editor}/ApiPlaceholder/Methods/GetClassType.js + */ ApiPlaceholder.prototype.GetClassType = function() { return "placeholder"; }; + /** * Sets the placeholder type. * @typeofeditors ["CPE"] - * @param {string} sType - Placeholder type ("body", "chart", "clipArt", "ctrTitle", "diagram", "date", "footer", "header", "media", "object", "picture", "sldImage", "sldNumber", "subTitle", "table", "title"). + * @param {PlaceholderType} sType - Placeholder type * @returns {boolean} - returns false if placeholder type doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiPlaceholder/Methods/SetType.js + */ ApiPlaceholder.prototype.SetType = function(sType) { - var nType; - switch (sType) - { - case "body": - nType = 0; - break; - case "chart": - nType = 1; - break; - case "clipArt": - nType = 2; - break; - case "ctrTitle": - nType = 3; - break; - case "diagram": - nType = 4; - break; - case "date": - nType = 5; - break; - case "footer": - nType = 6; - break; - case "header": - nType = 7; - break; - case "media": - nType = 8; - break; - case "object": - nType = 9; - break; - case "picture": - nType = 10; - break; - case "sldImage": - nType = 11; - break; - case "sldNumber": - nType = 12; - break; - case "subTitle": - nType = 13; - break; - case "table": - nType = 14; - break; - case "title": - nType = 15; - break; - default: - nType = 0; + this.Placeholder.setType(private_GetPlaceholderInnerType(sType)); + }; + + /** + * Returns the placeholder type. + * @typeofeditors ["CPE"] + * @returns {PlaceholderType} - Returns the placeholder type. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPlaceholder/Methods/GetType.js + */ + ApiPlaceholder.prototype.GetType = function() + { + return private_GetPlaceholderStrType(this.Placeholder.getType()); + }; + + Object.defineProperty(ApiPlaceholder.prototype, "Type", { + get: function () { + return this.GetType(); + }, + set: function (sType) { + this.SetType(sType); + } + }); + + /** + * Sets the placeholder index. + * @typeofeditors ["CPE"] + * @param {number} nIdx - The placeholder index. + * @returns {boolean} - Returns false if the placeholder index wasn't set. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPlaceholder/Methods/SetIndex.js + */ + ApiPlaceholder.prototype.SetIndex = function(nIdx) + { + if (typeof(nIdx) != 'number' || nIdx < 0) { + return false; } - this.Placeholder.setType(nType); + nIdx >>= 0; + this.Placeholder.setIdx(nIdx); + }; + + /** + * Retuns the placeholder index. + * @typeofeditors ["CPE"] + * @returns {number | undefined} - Returns the placeholder index. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiPlaceholder/Methods/GetIndex.js + */ + ApiPlaceholder.prototype.GetIndex = function() + { + return this.Placeholder.getIdx(); }; + Object.defineProperty(ApiPlaceholder.prototype, "Index", { + get: function () { + return this.GetIndex(); + }, + set: function (nIndex) { + this.SetIndex(nIndex); + } + }); + //------------------------------------------------------------------------------------------------------------------ // // ApiTheme @@ -2178,7 +2262,8 @@ * Returns the type of the ApiTheme class. * @typeofeditors ["CPE"] * @returns {"theme"} - */ + * @see office-js-api/Examples/{Editor}/ApiTheme/Methods/GetClassType.js + */ ApiTheme.prototype.GetClassType = function() { return "theme"; @@ -2188,7 +2273,8 @@ * Returns the slide master of the current theme. * @typeofeditors ["CPE"] * @returns {ApiMaster | null} - returns null if slide master doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiTheme/Methods/GetMaster.js + */ ApiTheme.prototype.GetMaster = function() { if (this.ThemeInfo && this.ThemeInfo.Master) @@ -2202,7 +2288,8 @@ * @typeofeditors ["CPE"] * @param {ApiThemeColorScheme} oApiColorScheme - Theme color scheme. * @returns {boolean} - return false if color scheme doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiTheme/Methods/SetColorScheme.js + */ ApiTheme.prototype.SetColorScheme = function(oApiColorScheme) { if (oApiColorScheme && oApiColorScheme.GetClassType && oApiColorScheme.GetClassType() === "themeColorScheme") @@ -2218,7 +2305,8 @@ * Returns the color scheme of the current theme. * @typeofeditors ["CPE"] * @returns {?ApiThemeColorScheme} - */ + * @see office-js-api/Examples/{Editor}/ApiTheme/Methods/GetColorScheme.js + */ ApiTheme.prototype.GetColorScheme = function() { if (this.ThemeInfo && this.ThemeInfo.Theme && this.ThemeInfo.Theme.themeElements) @@ -2234,7 +2322,8 @@ * @typeofeditors ["CPE"] * @param {ApiThemeFormatScheme} oApiFormatScheme - Theme format scheme. * @returns {boolean} - return false if format scheme doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiTheme/Methods/SetFormatScheme.js + */ ApiTheme.prototype.SetFormatScheme = function(oApiFormatScheme) { if (oApiFormatScheme && oApiFormatScheme.GetClassType && oApiFormatScheme.GetClassType() === "themeFormatScheme") @@ -2250,7 +2339,8 @@ * Returns the format scheme of the current theme. * @typeofeditors ["CPE"] * @returns {?ApiThemeFormatScheme} - */ + * @see office-js-api/Examples/{Editor}/ApiTheme/Methods/GetFormatScheme.js + */ ApiTheme.prototype.GetFormatScheme = function() { if (this.ThemeInfo && this.ThemeInfo.Theme && this.ThemeInfo.Theme.themeElements) @@ -2266,7 +2356,8 @@ * @typeofeditors ["CPE"] * @param {ApiThemeFontScheme} oApiFontScheme - Theme font scheme. * @returns {boolean} - return false if font scheme doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiTheme/Methods/SetFontScheme.js + */ ApiTheme.prototype.SetFontScheme = function(oApiFontScheme) { if (oApiFontScheme && oApiFontScheme.GetClassType && oApiFontScheme.GetClassType() === "themeFontScheme") @@ -2282,7 +2373,8 @@ * Returns the font scheme of the current theme. * @typeofeditors ["CPE"] * @returns {?ApiThemeFontScheme} - */ + * @see office-js-api/Examples/{Editor}/ApiTheme/Methods/GetFontScheme.js + */ ApiTheme.prototype.GetFontScheme = function() { if (this.ThemeInfo && this.ThemeInfo.Theme && this.ThemeInfo.Theme.themeElements) @@ -2303,7 +2395,8 @@ * Returns the type of the ApiThemeColorScheme class. * @typeofeditors ["CPE"] * @returns {"themeColorScheme"} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeColorScheme/Methods/GetClassType.js + */ ApiThemeColorScheme.prototype.GetClassType = function() { return "themeColorScheme"; @@ -2314,7 +2407,8 @@ * @typeofeditors ["CPE"] * @param {string} sName - Theme color scheme name. * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeColorScheme/Methods/SetSchemeName.js + */ ApiThemeColorScheme.prototype.SetSchemeName = function(sName) { if (typeof(sName) !== "string") @@ -2329,7 +2423,8 @@ * @param {number} nPos - Color position in the color scheme which will be changed. * @param {ApiUniColor | ApiRGBColor} oColor - New color of the theme color scheme. * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeColorScheme/Methods/ChangeColor.js + */ ApiThemeColorScheme.prototype.ChangeColor = function(nPos, oColor) { if (nPos < 0 || nPos > 12 || (oColor.GetClassType() !== "rgbColor" && oColor.GetClassType() !== "uniColor")) @@ -2347,7 +2442,8 @@ * Creates a copy of the current theme color scheme. * @typeofeditors ["CPE"] * @returns {ApiThemeColorScheme} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeColorScheme/Methods/Copy.js + */ ApiThemeColorScheme.prototype.Copy = function() { return new ApiThemeColorScheme(this.ColorScheme.createDuplicate()); @@ -2358,6 +2454,7 @@ * @memberof ApiThemeColorScheme * @typeofeditors ["CPE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiThemeColorScheme/Methods/ToJSON.js */ ApiThemeColorScheme.prototype.ToJSON = function(){ var oWriter = new AscJsonConverter.WriterToJSON(); @@ -2374,7 +2471,8 @@ * Returns the type of the ApiThemeFormatScheme class. * @typeofeditors ["CPE"] * @returns {"themeFormatScheme"} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFormatScheme/Methods/GetClassType.js + */ ApiThemeFormatScheme.prototype.GetClassType = function() { return "themeFormatScheme"; @@ -2385,7 +2483,8 @@ * @typeofeditors ["CPE"] * @param {string} sName - Theme format scheme name. * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFormatScheme/Methods/SetSchemeName.js + */ ApiThemeFormatScheme.prototype.SetSchemeName = function(sName) { if (typeof(sName) !== "string") @@ -2399,7 +2498,8 @@ * @typeofeditors ["CPE"] * @param {ApiFill[]} arrFill - The array of fill styles must contain 3 elements - subtle, moderate and intense fills. * If an array is empty or NoFill elements are in the array, it will be filled with the Api.CreateNoFill() elements. - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFormatScheme/Methods/ChangeFillStyles.js + */ ApiThemeFormatScheme.prototype.ChangeFillStyles = function(arrFill) { if (!arrFill) @@ -2421,7 +2521,8 @@ * @typeofeditors ["CPE"] * @param {ApiFill[]} arrBgFill - The array of background fill styles must contains 3 elements - subtle, moderate and intense fills. * If an array is empty or NoFill elements are in the array, it will be filled with the Api.CreateNoFill() elements. - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFormatScheme/Methods/ChangeBgFillStyles.js + */ ApiThemeFormatScheme.prototype.ChangeBgFillStyles = function(arrBgFill) { if (!arrBgFill) @@ -2443,7 +2544,8 @@ * @typeofeditors ["CPE"] * @param {ApiStroke[]} arrLine - The array of line styles must contain 3 elements - subtle, moderate and intense fills. * If an array is empty or ApiStroke elements are with no fill, it will be filled with the Api.CreateStroke(0, Api.CreateNoFill()) elements. - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFormatScheme/Methods/ChangeLineStyles.js + */ ApiThemeFormatScheme.prototype.ChangeLineStyles = function(arrLine) { if (!arrLine) @@ -2460,37 +2562,39 @@ } }; - /** - * **Need to do** - * Sets the effect styles to the current theme format scheme. - * @typeofeditors ["CPE"] - * @param {?Array} arrEffect - The array of effect styles must contain 3 elements - subtle, moderate and intense fills. - * If an array is empty or NoFill elements are in the array, it will be filled with the Api.CreateStroke(0, Api.CreateNoFill()) elements. - * @returns {boolean} - */ - ApiThemeFormatScheme.prototype.ChangeEffectStyles = function(arrEffect) - { - // if (!arrEffect) - // arrEffect = []; + // /** + // * **Need to do** + // * Sets the effect styles to the current theme format scheme. + // * @typeofeditors ["CPE"] + // * @param {?Array} arrEffect - The array of effect styles must contain 3 elements - subtle, moderate and intense fills. + // * If an array is empty or NoFill elements are in the array, it will be filled with the Api.CreateStroke(0, Api.CreateNoFill()) elements. + // * @returns {boolean} + // * @see office-js-api/Examples/{Editor}/ApiThemeFormatScheme/Methods/ChangeEffectStyles.js + // */ + // ApiThemeFormatScheme.prototype.ChangeEffectStyles = function(arrEffect) + // { + // // if (!arrEffect) + // // arrEffect = []; - // this.FormatScheme.effectStyleLst = []; + // // this.FormatScheme.effectStyleLst = []; - // for (var nFill = 0; nFill < 3; nFill++) - // { - // if (arrEffect[nFill] && arrEffect[nFill].GetClassType() === "stroke") - // this.FormatScheme.addEffectToStyleLst(arrEffect[nFill].UniFill); - // else - // this.FormatScheme.addEffectToStyleLst(editor.CreateNoFill().UniFill); - // } + // // for (var nFill = 0; nFill < 3; nFill++) + // // { + // // if (arrEffect[nFill] && arrEffect[nFill].GetClassType() === "stroke") + // // this.FormatScheme.addEffectToStyleLst(arrEffect[nFill].UniFill); + // // else + // // this.FormatScheme.addEffectToStyleLst(editor.CreateNoFill().UniFill); + // // } - // return true; - }; + // // return true; + // }; /** * Creates a copy of the current theme format scheme. * @typeofeditors ["CPE"] * @returns {ApiThemeFormatScheme} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFormatScheme/Methods/Copy.js + */ ApiThemeFormatScheme.prototype.Copy = function() { return new ApiThemeFormatScheme(this.FormatScheme.createDuplicate()); @@ -2501,6 +2605,7 @@ * @memberof ApiThemeFormatScheme * @typeofeditors ["CPE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiThemeFormatScheme/Methods/ToJSON.js */ ApiThemeFormatScheme.prototype.ToJSON = function(){ var oWriter = new AscJsonConverter.WriterToJSON(); @@ -2517,7 +2622,8 @@ * Returns the type of the ApiThemeFontScheme class. * @typeofeditors ["CPE"] * @returns {"themeFontScheme"} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFontScheme/Methods/GetClassType.js + */ ApiThemeFontScheme.prototype.GetClassType = function() { return "themeFontScheme"; @@ -2528,7 +2634,8 @@ * @typeofeditors ["CPE"] * @param {string} sName - Theme font scheme name. * @returns {boolean} - returns false if font scheme doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFontScheme/Methods/SetSchemeName.js + */ ApiThemeFontScheme.prototype.SetSchemeName = function(sName) { if (typeof(sName) !== "string") @@ -2553,7 +2660,8 @@ * @param {string} mnLatin - The minor theme font applied to the latin text. * @param {string} mnEa - The minor theme font applied to the east asian text. * @param {string} mnCs - The minor theme font applied to the complex script text. - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFontScheme/Methods/SetFonts.js + */ ApiThemeFontScheme.prototype.SetFonts = function(mjLatin, mjEa, mjCs, mnLatin, mnEa, mnCs){ var oMajorFontCollection = this.FontScheme.majorFont; @@ -2578,7 +2686,8 @@ * Creates a copy of the current theme font scheme. * @typeofeditors ["CPE"] * @returns {ApiThemeFontScheme} - */ + * @see office-js-api/Examples/{Editor}/ApiThemeFontScheme/Methods/Copy.js + */ ApiThemeFontScheme.prototype.Copy = function() { return new ApiThemeFontScheme(this.FontScheme.createDuplicate()); @@ -2589,6 +2698,7 @@ * @memberof ApiThemeFontScheme * @typeofeditors ["CPE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiThemeFontScheme/Methods/ToJSON.js */ ApiThemeFontScheme.prototype.ToJSON = function(){ var oWriter = new AscJsonConverter.WriterToJSON(); @@ -2605,7 +2715,8 @@ * Returns the type of the ApiSlide class. * @typeofeditors ["CPE"] * @returns {"slide"} - */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetClassType.js + */ ApiSlide.prototype.GetClassType = function() { return "slide"; @@ -2615,7 +2726,8 @@ * Removes all the objects from the current slide. * @typeofeditors ["CPE"] * @memberof ApiSlide - */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/RemoveAllObjects.js + */ ApiSlide.prototype.RemoveAllObjects = function(){ if(this.Slide){ var spTree = this.Slide.cSld.spTree; @@ -2631,7 +2743,8 @@ * @memberof ApiSlide * @param {ApiDrawing} oDrawing - The object which will be added to the current presentation slide. * @returns {boolean} - returns false if slide doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/AddObject.js + */ ApiSlide.prototype.AddObject = function(oDrawing){ if(this.Slide){ oDrawing.Drawing.setParent(this.Slide); @@ -2651,7 +2764,8 @@ * @param {number} nPos - Position from which the object will be deleted. * @param {number} [nCount = 1] - The number of elements to delete. * @returns {boolean} - returns false if slide doesn't exist or position is invalid or slide hasn't objects. - */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/RemoveObject.js + */ ApiSlide.prototype.RemoveObject = function(nPos, nCount) { if (this.Slide && this.Slide.cSld.spTree.length > 0) @@ -2675,7 +2789,8 @@ * @typeofeditors ["CPE"] * @param {ApiFill} oApiFill - The color or pattern used to fill the presentation slide background. * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/SetBackground.js + */ ApiSlide.prototype.SetBackground = function(oApiFill){ if(oApiFill && oApiFill.GetClassType && oApiFill.GetClassType() === "fill" && this.Slide){ var bg = new AscFormat.CBg(); @@ -2694,7 +2809,8 @@ * @memberOf ApiSlide * @typeofeditors ["CPE"] * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetVisible.js + */ ApiSlide.prototype.GetVisible = function(){ if(this.Slide){ return this.Slide.isVisible(); @@ -2708,7 +2824,8 @@ * @typeofeditors ["CPE"] * @param {boolean} value - Slide visibility. * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/SetVisible.js + */ ApiSlide.prototype.SetVisible = function(value){ if(this.Slide){ this.Slide.setShow(value); @@ -2721,7 +2838,8 @@ * Returns the slide width in English measure units. * @typeofeditors ["CPE"] * @returns {EMU} - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetWidth.js + */ ApiSlide.prototype.GetWidth = function(){ if(this.Slide){ return this.Slide.Width*36000; @@ -2733,7 +2851,8 @@ * Returns the slide height in English measure units. * @typeofeditors ["CPE"] * @returns {EMU} - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetHeight.js + */ ApiSlide.prototype.GetHeight = function(){ if(this.Slide){ return this.Slide.Height*36000; @@ -2747,7 +2866,8 @@ * @typeofeditors ["CPE"] * @param {ApiLayout} oLayout - Layout to be applied. * @returns {boolean} - returns false if slide doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/ApplyLayout.js + */ ApiSlide.prototype.ApplyLayout = function(oLayout){ if (!this.Slide || !oLayout || !oLayout.Layout.Master) return false; @@ -2760,7 +2880,8 @@ * Deletes the current slide from the presentation. * @typeofeditors ["CPE"] * @returns {boolean} - returns false if slide doesn't exist or is not in the presentation. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/Delete.js + */ ApiSlide.prototype.Delete = function(){ if (!this.Slide) return false; @@ -2782,7 +2903,8 @@ * @typeofeditors ["CPE"] * @returns {ApiSlide | null} - returns new ApiSlide object that represents the duplicate slide. * Returns null if slide doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/Copy.js + */ ApiSlide.prototype.Copy = function(){ if (!this.Slide) return null; @@ -2797,7 +2919,8 @@ * @param {number} [nPos = ApiPresentation.GetSlidesCount()] - Position where the new slide will be added. * @returns {ApiSlide | null} - returns new ApiSlide object that represents the duplicate slide. * Returns null if slide doesn't exist or is not in the presentation. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/Duplicate.js + */ ApiSlide.prototype.Duplicate = function(nPos){ if (!this.Slide) return null; @@ -2818,7 +2941,8 @@ * @typeofeditors ["CPE"] * @param {number} nPos - Position where the current slide will be moved to. * @returns {boolean} - returns false if slide doesn't exist or position is invalid or slide is not in the presentation. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/MoveTo.js + */ ApiSlide.prototype.MoveTo = function(nPos){ var oPresentation = editor.GetPresentation().Presentation; @@ -2841,7 +2965,8 @@ * Returns a position of the current slide in the presentation. * @typeofeditors ["CPE"] * @returns {number} - returns -1 if slide doesn't exist or is not in the presentation. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetSlideIndex.js + */ ApiSlide.prototype.GetSlideIndex = function (){ if (!this.Slide) return -1; @@ -2863,7 +2988,8 @@ * Clears the slide background. * @typeofeditors ["CPE"] * @returns {boolean} - return false if slide doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/ClearBackground.js + */ ApiSlide.prototype.ClearBackground = function(){ if (!this.Slide) return false; @@ -2882,7 +3008,8 @@ * Sets the layout background as the background of the slide. * @typeofeditors ["CPE"] * @returns {boolean} - returns false if layout is null or layout hasn't background or slide doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/FollowLayoutBackground.js + */ ApiSlide.prototype.FollowLayoutBackground = function(){ if (!this.Slide) return false; @@ -2903,7 +3030,8 @@ * Sets the master background as the background of the slide. * @typeofeditors ["CPE"] * @returns {boolean} - returns false if master is null or master hasn't background or slide doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/FollowMasterBackground.js + */ ApiSlide.prototype.FollowMasterBackground = function(){ if (!this.Slide) return false; @@ -2924,7 +3052,8 @@ * @typeofeditors ["CPE"] * @param {ApiTheme} oApiTheme - Presentation theme. * @returns {boolean} - returns false if master is null or master hasn't background. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/ApplyTheme.js + */ ApiSlide.prototype.ApplyTheme = function(oApiTheme){ if (!this.Slide || !oApiTheme || !oApiTheme.GetClassType || oApiTheme.GetClassType() !== "theme") return false; @@ -3032,7 +3161,8 @@ * Returns a layout of the current slide. * @typeofeditors ["CPE"] * @returns {ApiLayout | null} - returns null if slide or layout doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetLayout.js + */ ApiSlide.prototype.GetLayout = function(){ if (this.Slide && this.Slide.Layout) return new ApiLayout(this.Slide.Layout); @@ -3044,7 +3174,8 @@ * Returns a theme of the current slide. * @typeofeditors ["CPE"] * @returns {ApiTheme} - returns null if slide or layout or master or theme doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetTheme.js + */ ApiSlide.prototype.GetTheme = function(){ if (this.Slide && this.Slide.Layout && this.Slide.Layout.Master && this.Slide.Layout.Master.Theme) { @@ -3062,98 +3193,71 @@ /** * Returns an array with all the drawing objects from the slide. * @typeofeditors ["CPE"] - * @returns {ApiDrawing[]} - * */ + * @returns {Drawing[]} + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetAllDrawings.js + */ ApiSlide.prototype.GetAllDrawings = function(){ - var apiDrawingObjects = []; - if (this.Slide) - { - var drawingObjects = this.Slide.getDrawingObjects(); - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - apiDrawingObjects.push(new ApiDrawing(drawingObjects[nObject])); + if (!this.Slide) { + return []; } - - return apiDrawingObjects; + + let drawingObjects = this.Slide.getDrawingObjects(); + return private_GetApiDrawings(drawingObjects); }; /** * Returns an array with all the shape objects from the slide. * @typeofeditors ["CPE"] * @returns {ApiShape[]} - * */ + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetAllShapes.js + */ ApiSlide.prototype.GetAllShapes = function(){ - var apiShapes = []; - if (this.Slide) - { - var drawingObjects = this.Slide.getDrawingObjects(); - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CShape) - apiShapes.push(new ApiShape(drawingObjects[nObject])); - } - } - - return apiShapes; + + if(!this.Slide) { + return []; + } + return private_GetAllDrawingsWithType(this.Slide.cSld.spTree, AscDFH.historyitem_type_Shape, + function (oDrawing) {return new ApiShape(oDrawing);}); }; /** * Returns an array with all the image objects from the slide. * @typeofeditors ["CPE"] * @returns {ApiImage[]} - * */ - ApiSlide.prototype.GetAllImages = function(){ - var apiImages = []; - if (this.Slide) - { - var drawingObjects = this.Slide.getDrawingObjects(); - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CImageShape) - apiImages.push(new ApiImage(drawingObjects[nObject])); - } - } - - return apiImages; + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetAllImages.js + */ + ApiSlide.prototype.GetAllImages = function() { + if(!this.Slide) { + return []; + } + return private_GetAllDrawingsWithType(this.Slide.cSld.spTree, AscDFH.historyitem_type_ImageShape, + function (oDrawing) {return new ApiImage(oDrawing);}); }; /** * Returns an array with all the chart objects from the slide. * @typeofeditors ["CPE"] * @returns {ApiChart[]} - * */ - ApiSlide.prototype.GetAllCharts = function(){ - var apiCharts = []; - if (this.Slide) - { - var drawingObjects = this.Slide.getDrawingObjects(); - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.CChartSpace) - apiCharts.push(new ApiChart(drawingObjects[nObject])); - } - } - - return apiCharts; + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetAllCharts.js + */ + ApiSlide.prototype.GetAllCharts = function() { + if(!this.Slide) { + return []; + } + return private_GetAllDrawingsWithType(this.Slide.cSld.spTree, AscDFH.historyitem_type_ChartSpace, + function (oDrawing) {return private_GetApi().private_CreateApiChart(oDrawing);}); }; /** * Returns an array with all the OLE objects from the slide. * @typeofeditors ["CPE"] * @returns {ApiOleObject[]} - * */ - ApiSlide.prototype.GetAllOleObjects = function(){ - var apiOle = []; - if (this.Slide) - { - var drawingObjects = this.Slide.getDrawingObjects(); - for (var nObject = 0; nObject < drawingObjects.length; nObject++) - { - if (drawingObjects[nObject] instanceof AscFormat.COleObject) - apiOle.push(new ApiOleObject(drawingObjects[nObject])); - } - } - - return apiOle; + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetAllOleObjects.js + */ + ApiSlide.prototype.GetAllOleObjects = function() { + if(!this.Slide) return []; + return private_GetAllDrawingsWithType(this.Slide.cSld.spTree, AscDFH.historyitem_type_OleObject, + function (oDrawing) {return new ApiOleObject(oDrawing);}); }; /** @@ -3165,6 +3269,7 @@ * @param {bool} [bWriteAllMasLayouts=false] - Specifies if all child layouts from the slide master will be written to the JSON object or not. * @param {bool} [bWriteTableStyles=false] - Specifies whether to write used table styles to the JSON object (true) or not (false). * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/ToJSON.js */ ApiSlide.prototype.ToJSON = function(bWriteLayout, bWriteMaster, bWriteAllMasLayouts, bWriteTableStyles){ let oWriter = new AscJsonConverter.WriterToJSON(); @@ -3174,6 +3279,24 @@ return JSON.stringify(oResult); }; + /** + * Returns an array of drawings by the specified placeholder type. + * @memberof ApiSlide + * @typeofeditors ["CPE"] + * @param {PlaceholderType} sType - The placeholder type. + * @returns {Drawing[]} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiSlide/Methods/GetDrawingsByPlaceholderType.js + */ + ApiSlide.prototype.GetDrawingsByPlaceholderType = function(sType) { + let aDrawings = this.GetAllDrawings(); + + let nType = private_GetPlaceholderInnerType(sType); + return aDrawings.filter(function(drawing) { + return drawing.Drawing.getPlaceholderType() == nType; + }); + }; + //------------------------------------------------------------------------------------------------------------------ // // ApiDrawing @@ -3182,17 +3305,21 @@ /** * Returns the type of the ApiDrawing class. + * @typeofeditors ["CPE"] * @returns {"drawing"} - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetClassType.js + */ ApiDrawing.prototype.GetClassType = function() { return "drawing"; }; /** * Sets the size of the object (image, shape, chart) bounding box. + * @typeofeditors ["CPE"] * @param {EMU} nWidth - The object width measured in English measure units. * @param {EMU} nHeight - The object height measured in English measure units. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetSize.js + */ ApiDrawing.prototype.SetSize = function(nWidth, nHeight) { var fWidth = private_EMU2MM(nWidth); @@ -3206,9 +3333,11 @@ /** * Sets the position of the drawing on the slide. + * @typeofeditors ["CPE"] * @param {EMU} nPosX - The distance from the left side of the slide to the left side of the drawing measured in English measure units. * @param {EMU} nPosY - The distance from the top side of the slide to the upper side of the drawing measured in English measure units. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetPosition.js + */ ApiDrawing.prototype.SetPosition = function(nPosX, nPosY) { var fPosX = private_EMU2MM(nPosX); @@ -3224,7 +3353,8 @@ * Returns the drawing parent object. * @typeofeditors ["CPE"] * @returns {ApiSlide | ApiLayout | ApiMaster | null} - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetParent.js + */ ApiDrawing.prototype.GetParent = function() { if (this.Drawing && this.Drawing.parent) @@ -3247,7 +3377,8 @@ * Returns the drawing parent slide. * @typeofeditors ["CPE"] * @returns {ApiSlide | null} - return null if parent ins't a slide. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetParentSlide.js + */ ApiDrawing.prototype.GetParentSlide = function() { if (this.Drawing && this.Drawing.parent && this.Drawing.parent.getObjectType() === AscDFH.historyitem_type_Slide) @@ -3262,7 +3393,8 @@ * Returns the drawing parent slide layout. * @typeofeditors ["CPE"] * @returns {ApiLayout | null} - return null if parent ins't a slide layout. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetParentLayout.js + */ ApiDrawing.prototype.GetParentLayout = function() { if (this.Drawing && this.Drawing.parent && this.Drawing.parent.getObjectType() === AscDFH.historyitem_type_SlideLayout) @@ -3277,7 +3409,8 @@ * Returns the drawing parent slide master. * @typeofeditors ["CPE"] * @returns {ApiMaster | null} - return null if parent ins't a slide master. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetParentMaster.js + */ ApiDrawing.prototype.GetParentMaster = function() { if (this.Drawing && this.Drawing.parent && this.Drawing.parent.getObjectType() === AscDFH.historyitem_type_SlideMaster) @@ -3292,7 +3425,8 @@ * Creates a copy of the specified drawing object. * @typeofeditors ["CPE"] * @returns {ApiDrawing} - return null if drawing doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/Copy.js + */ ApiDrawing.prototype.Copy = function() { if (this.Drawing) @@ -3305,7 +3439,8 @@ * Deletes the specified drawing object from the parent. * @typeofeditors ["CPE"] * @returns {boolean} - false if drawing doesn't exist or drawing hasn't a parent. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/Delete.js + */ ApiDrawing.prototype.Delete = function() { var oParent = this.GetParent(); @@ -3330,7 +3465,8 @@ * @typeofeditors ["CPE"] * @param {ApiPlaceholder} oPlaceholder - Placeholder object. * @returns {boolean} - returns false if parameter isn't a placeholder. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetPlaceholder.js + */ ApiDrawing.prototype.SetPlaceholder = function(oPlaceholder) { if (!this.Drawing || !oPlaceholder || !oPlaceholder.GetClassType || oPlaceholder.GetClassType() !== "placeholder") @@ -3341,7 +3477,8 @@ var drawingParent = this.GetParent(); var allDrawingsInParent = null; - editor.private_checkDrawingUniNvPr(this); + + this.Drawing.checkDrawingUniNvPr(); switch (this.Drawing.getObjectType()) { @@ -3386,14 +3523,15 @@ * Returns a placeholder from the current drawing object. * @typeofeditors ["CPE"] * @returns {ApiPlaceholder | null} - returns null if placeholder doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetPlaceholder.js + */ ApiDrawing.prototype.GetPlaceholder = function() { var oPh = null; if (this.Drawing) { - editor.private_checkDrawingUniNvPr(this); + this.Drawing.checkDrawingUniNvPr(); switch (this.Drawing.getObjectType()) { case AscDFH.historyitem_type_ChartSpace: @@ -3425,6 +3563,7 @@ * @memberof ApiDrawing * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {EMU} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetWidth.js */ ApiDrawing.prototype.GetWidth = function() { @@ -3435,6 +3574,7 @@ * @memberof ApiDrawing * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {EMU} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetHeight.js */ ApiDrawing.prototype.GetHeight = function() { @@ -3444,10 +3584,10 @@ /** * Returns the lock value for the specified lock type of the current drawing. * @typeofeditors ["CPE"] - * @param {"noGrp" | "noUngrp" | "noSelect" | "noRot" | "noChangeAspect" | "noMove" | "noResize" | "noEditPoints" | "noAdjustHandles" - * | "noChangeArrowheads" | "noChangeShapeType" | "noDrilldown" | "noTextEdit" | "noCrop" | "txBox"} sType - Lock type in the string format. + * @param {DrawingLockType} sType - Lock type in the string format. * @returns {bool} - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetLockValue.js + */ ApiDrawing.prototype.GetLockValue = function(sType) { var nLockType = private_GetDrawingLockType(sType); @@ -3464,11 +3604,11 @@ /** * Sets the lock value to the specified lock type of the current drawing. * @typeofeditors ["CPE"] - * @param {"noGrp" | "noUngrp" | "noSelect" | "noRot" | "noChangeAspect" | "noMove" | "noResize" | "noEditPoints" | "noAdjustHandles" - * | "noChangeArrowheads" | "noChangeShapeType" | "noDrilldown" | "noTextEdit" | "noCrop" | "txBox"} sType - Lock type in the string format. + * @param {DrawingLockType} sType - Lock type in the string format. * @param {bool} bValue - Specifies if the specified lock is applied to the current drawing. * @returns {bool} - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetLockValue.js + */ ApiDrawing.prototype.SetLockValue = function(sType, bValue) { var nLockType = private_GetDrawingLockType(sType); @@ -3490,6 +3630,7 @@ * @memberof ApiDrawing * @typeofeditors ["CPE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/ToJSON.js */ ApiDrawing.prototype.ToJSON = function() { @@ -3497,6 +3638,22 @@ return JSON.stringify(oWriter.SerGraphicObject(this.Drawing)); }; + /** + * Selects the current graphic object. + * @memberof ApiDrawing + * @typeofeditors ["CPE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/Select.js + */ + ApiDrawing.prototype.Select = function() { + let oDrawing = this.Drawing; + if(!oDrawing) return; + oDrawing.Set_CurrentElement(true, 0, true); + let oController = oDrawing.getDrawingObjectsController(); + oController.updateSelectionState(); + oController.updateOverlay(); + }; + //------------------------------------------------------------------------------------------------------------------ // // ApiImage @@ -3505,8 +3662,10 @@ /** * Returns the type of the ApiImage class. + * @typeofeditors ["CPE"] * @returns {"image"} - */ + * @see office-js-api/Examples/{Editor}/ApiImage/Methods/GetClassType.js + */ ApiImage.prototype.GetClassType = function() { return "image"; @@ -3522,7 +3681,8 @@ * Returns the type of the ApiShape class. * @typeofeditors ["CPE"] * @returns {"shape"} - */ + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetClassType.js + */ ApiShape.prototype.GetClassType = function() { return "shape"; @@ -3534,7 +3694,8 @@ * Returns the shape inner contents where a paragraph or text runs can be inserted. * @typeofeditors ["CPE"] * @returns {?ApiDocumentContent} - */ + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetDocContent.js + */ ApiShape.prototype.GetDocContent = function() { var oApi = private_GetApi(); @@ -3549,7 +3710,8 @@ * Returns the shape inner contents where a paragraph or text runs can be inserted. * @typeofeditors ["CPE"] * @returns {?ApiDocumentContent} - */ + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetContent.js + */ ApiShape.prototype.GetContent = function() { var oApi = private_GetApi(); @@ -3564,7 +3726,8 @@ * Sets the vertical alignment to the shape content where a paragraph or text runs can be inserted. * @typeofeditors ["CPE"] * @param {VerticalTextAlign} VerticalAlign - The type of the vertical alignment for the shape inner contents. - */ + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/SetVerticalTextAlign.js + */ ApiShape.prototype.SetVerticalTextAlign = function(VerticalAlign) { if(this.Shape) @@ -3595,573 +3758,8 @@ // ApiChart // //------------------------------------------------------------------------------------------------------------------ - /** - * Returns the type of the ApiChart class. - * @typeofeditors ["CPE"] - * @returns {"chart"} - */ - ApiChart.prototype.GetClassType = function() - { - return "chart"; - }; - - /** - * Specifies the chart title. - * @typeofeditors ["CPE"] - * @param {string} sTitle - The title which will be displayed for the current chart. - * @param {pt} nFontSize - The text size value measured in points. - * @param {?bool} bIsBold - Specifies if the chart title is written in bold font or not. - */ - ApiChart.prototype.SetTitle = function (sTitle, nFontSize, bIsBold) - { - AscFormat.builder_SetChartTitle(this.Chart, sTitle, nFontSize, bIsBold); - }; - - /** - * Specifies the chart horizontal axis title. - * @typeofeditors ["CPE"] - * @param {string} sTitle - The title which will be displayed for the horizontal axis of the current chart. - * @param {pt} nFontSize - The text size value measured in points. - * @param {?bool} bIsBold - Specifies if the horizontal axis title is written in bold font or not. - * */ - ApiChart.prototype.SetHorAxisTitle = function (sTitle, nFontSize, bIsBold) - { - AscFormat.builder_SetChartHorAxisTitle(this.Chart, sTitle, nFontSize, bIsBold); - }; - - /** - * Specifies the chart vertical axis title. - * @typeofeditors ["CPE"] - * @param {string} sTitle - The title which will be displayed for the vertical axis of the current chart. - * @param {pt} nFontSize - The text size value measured in points. - * @param {?bool} bIsBold - Specifies if the vertical axis title is written in bold font or not. - * */ - ApiChart.prototype.SetVerAxisTitle = function (sTitle, nFontSize, bIsBold) - { - AscFormat.builder_SetChartVertAxisTitle(this.Chart, sTitle, nFontSize, bIsBold); - }; - - /** - * Specifies the chart legend position. - * @typeofeditors ["CPE"] - * @param {"left" | "top" | "right" | "bottom" | "none"} sLegendPos - The position of the chart legend inside the chart window. - * */ - ApiChart.prototype.SetLegendPos = function(sLegendPos) - { - AscFormat.builder_SetChartLegendPos(this.Chart, sLegendPos); - }; - - /** - * Specifies the chart legend font size. - * @param {pt} nFontSize - The text size value measured in points. - * */ - ApiChart.prototype.SetLegendFontSize = function(nFontSize) - { - AscFormat.builder_SetLegendFontSize(this.Chart, nFontSize); - }; - - /** - * Specifies the vertical axis orientation. - * @param {boolean} bIsMinMax - The true value will set the normal data direction for the vertical axis - * (from minimum to maximum). The false value will set the inverted data direction for the vertical axis (from maximum to minimum). - * */ - ApiChart.prototype.SetVerAxisOrientation = function(bIsMinMax){ - AscFormat.builder_SetChartVertAxisOrientation(this.Chart, bIsMinMax); - }; - - /** - * Specifies the horizontal axis orientation. - * @param {boolean} bIsMinMax - The true value will set the normal data direction for the horizontal axis - * (from minimum to maximum). The false value will set the inverted data direction for the horizontal axis (from maximum to minimum). - * */ - ApiChart.prototype.SetHorAxisOrientation = function(bIsMinMax){ - AscFormat.builder_SetChartHorAxisOrientation(this.Chart, bIsMinMax); - }; - - /** - * Specifies which chart data labels are shown for the chart. - * @typeofeditors ["CPE"] - * @param {boolean} bShowSerName - Whether to show or hide the source table column names used for the data which the chart will be build from. - * @param {boolean} bShowCatName - Whether to show or hide the source table row names used for the data which the chart will be build from. - * @param {boolean} bShowVal - Whether to show or hide the chart data values. - * @param {boolean} bShowPercent - Whether to show or hide the percent for the data values (works with stacked chart types). - * */ - ApiChart.prototype.SetShowDataLabels = function(bShowSerName, bShowCatName, bShowVal, bShowPercent) - { - AscFormat.builder_SetShowDataLabels(this.Chart, bShowSerName, bShowCatName, bShowVal, bShowPercent); - }; - - /** - * Spicifies the show options for the chart data labels. - * @param {number} nSeriesIndex - The series index from the array of the data used to build the chart from. - * @param {number} nPointIndex - The point index from this series. - * @param {boolean} bShowSerName - Whether to show or hide the source table column names used for the data which the chart will be build from. - * @param {boolean} bShowCatName - Whether to show or hide the source table row names used for the data which the chart will be build from. - * @param {boolean} bShowVal - Whether to show or hide the chart data values. - * @param {boolean} bShowPercent - Whether to show or hide the percent for the data values (works with stacked chart types). - * */ - ApiChart.prototype.SetShowPointDataLabel = function(nSeriesIndex, nPointIndex, bShowSerName, bShowCatName, bShowVal, bShowPercent) - { - AscFormat.builder_SetShowPointDataLabel(this.Chart, nSeriesIndex, nPointIndex, bShowSerName, bShowCatName, bShowVal, bShowPercent); - }; - - /** - * Spicifies tick label position for the vertical axis. - * @param {TickLabelPosition} sTickLabelPosition - The position type of the chart vertical tick labels. - * */ - ApiChart.prototype.SetVertAxisTickLabelPosition = function(sTickLabelPosition) - { - AscFormat.builder_SetChartVertAxisTickLablePosition(this.Chart, sTickLabelPosition); - }; - /** - * Spicifies tick label position for the horizontal axis. - * @param {TickLabelPosition} sTickLabelPosition - The position type of the chart horizontal tick labels. - * */ - ApiChart.prototype.SetHorAxisTickLabelPosition = function(sTickLabelPosition) - { - AscFormat.builder_SetChartHorAxisTickLablePosition(this.Chart, sTickLabelPosition); - }; - - - - - /** - * Specifies the major tick mark for the horizontal axis. - * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ - - ApiChart.prototype.SetHorAxisMajorTickMark = function(sTickMark){ - AscFormat.builder_SetChartHorAxisMajorTickMark(this.Chart, sTickMark); - }; - /** - * Specifies the minor tick mark for the horizontal axis. - * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ - - ApiChart.prototype.SetHorAxisMinorTickMark = function(sTickMark){ - AscFormat.builder_SetChartHorAxisMinorTickMark(this.Chart, sTickMark); - }; - - /** - * Specifies the major tick mark for the vertical axis. - * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ - - ApiChart.prototype.SetVertAxisMajorTickMark = function(sTickMark){ - AscFormat.builder_SetChartVerAxisMajorTickMark(this.Chart, sTickMark); - }; - - /** - * Specifies the minor tick mark for the vertical axis. - * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ - ApiChart.prototype.SetVertAxisMinorTickMark = function(sTickMark){ - AscFormat.builder_SetChartVerAxisMinorTickMark(this.Chart, sTickMark); - }; - - - - - /** - * Specifies the visual properties for the major vertical gridlines. - * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ - ApiChart.prototype.SetMajorVerticalGridlines = function(oStroke) - { - AscFormat.builder_SetVerAxisMajorGridlines(this.Chart, oStroke ? oStroke.Ln : null); - }; - - /** - * Specifies the visual properties for the minor vertical gridlines. - * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ - ApiChart.prototype.SetMinorVerticalGridlines = function(oStroke) - { - AscFormat.builder_SetVerAxisMinorGridlines(this.Chart, oStroke ? oStroke.Ln : null); - }; - - - /** - * Specifies the visual properties for the major horizontal gridlines. - * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ - ApiChart.prototype.SetMajorHorizontalGridlines = function(oStroke) - { - AscFormat.builder_SetHorAxisMajorGridlines(this.Chart, oStroke ? oStroke.Ln : null); - }; - - /** - * Specifies the visual properties for the minor horizontal gridlines. - * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ - ApiChart.prototype.SetMinorHorizontalGridlines = function(oStroke) - { - AscFormat.builder_SetHorAxisMinorGridlines(this.Chart, oStroke ? oStroke.Ln : null); - }; - - - /** - * Specifies font size for the labels of the horizontal axis. - * @param {pt} nFontSize - The text size value measured in points. - */ - ApiChart.prototype.SetHorAxisLablesFontSize = function(nFontSize){ - AscFormat.builder_SetHorAxisFontSize(this.Chart, nFontSize); - }; - - /** - * Specifies font size for the labels of the vertical axis. - * @param {pt} nFontSize - The text size value measured in points. - */ - ApiChart.prototype.SetVertAxisLablesFontSize = function(nFontSize){ - AscFormat.builder_SetVerAxisFontSize(this.Chart, nFontSize); - }; - - /** - * Removes the specified series from the current chart. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {number} nSeria - The index of the chart series. - * @returns {boolean} - */ - ApiChart.prototype.RemoveSeria = function(nSeria) - { - return this.Chart.RemoveSeria(nSeria); - }; - - /** - * Sets values to the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE"] - * @param {number[]} aValues - The array of the data which will be set to the specified chart series. - * @param {number} nSeria - The index of the chart series. - * @returns {boolean} - */ - ApiChart.prototype.SetSeriaValues = function(aValues, nSeria) - { - return this.Chart.SetValuesToDataPoints(aValues, nSeria); - }; - - /** - * Sets the x-axis values to all chart series. It is used with the scatter charts only. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE"] - * @param {string[]} aValues - The array of the data which will be set to the x-axis data points. - * @returns {boolean} - */ - ApiChart.prototype.SetXValues = function(aValues) - { - if (this.Chart.isScatterChartType()) - return this.Chart.SetXValuesToDataPoints(aValues); - return false; - }; - - /** - * Sets a name to the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE"] - * @param {string} sName - The name which will be set to the specified chart series. - * @param {number} nSeria - The index of the chart series. - * @returns {boolean} - */ - ApiChart.prototype.SetSeriaName = function(sName, nSeria) - { - return this.Chart.SetSeriaName(sName, nSeria); - }; - - /** - * Sets a name to the specified chart category. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE"] - * @param {string} sName - The name which will be set to the specified chart category. - * @param {number} nCategory - The index of the chart category. - * @returns {boolean} - */ - ApiChart.prototype.SetCategoryName = function(sName, nCategory) - { - return this.Chart.SetCatName(sName, nCategory); - }; - - /** - * Sets a style to the current chart by style ID. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param nStyleId - One of the styles available in the editor. - * @returns {boolean} - */ - ApiChart.prototype.ApplyChartStyle = function(nStyleId) - { - if (typeof(nStyleId) !== "number" || nStyleId < 0) - return false; - - var nChartType = this.Chart.getChartType(); - var aStyle = AscCommon.g_oChartStyles[nChartType] && AscCommon.g_oChartStyles[nChartType][nStyleId]; - - if (aStyle) - { - this.Chart.applyChartStyleByIds(aStyle); - return true; - } - - return false; - }; - - /** - * Sets the fill to the chart plot area. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the plot area. - * @returns {boolean} - */ - ApiChart.prototype.SetPlotAreaFill = function(oFill) - { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - this.Chart.SetPlotAreaFill(oFill.UniFill); - return true; - }; - - /** - * Sets the outline to the chart plot area. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the plot area outline. - * @returns {boolean} - */ - ApiChart.prototype.SetPlotAreaOutLine = function(oStroke) - { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - this.Chart.SetPlotAreaOutLine(oStroke.Ln); - return true; - }; - - /** - * Sets the fill to the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the series. - * @param {number} nSeries - The index of the chart series. - * @param {boolean} [bAll=false] - Specifies if the fill will be applied to all series. - * @returns {boolean} - */ - ApiChart.prototype.SetSeriesFill = function(oFill, nSeries, bAll) - { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - return this.Chart.SetSeriesFill(oFill.UniFill, nSeries, bAll); - }; - - /** - * Sets the outline to the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the series outline. - * @param {number} nSeries - The index of the chart series. - * @param {boolean} [bAll=false] - Specifies if the outline will be applied to all series. - * @returns {boolean} - */ - ApiChart.prototype.SetSeriesOutLine = function(oStroke, nSeries, bAll) - { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetSeriesOutLine(oStroke.Ln, nSeries, bAll); - }; - - /** - * Sets the fill to the data point in the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the data point. - * @param {number} nSeries - The index of the chart series. - * @param {number} nDataPoint - The index of the data point in the specified chart series. - * @param {boolean} [bAllSeries=false] - Specifies if the fill will be applied to the specified data point in all series. - * @returns {boolean} - */ - ApiChart.prototype.SetDataPointFill = function(oFill, nSeries, nDataPoint, bAllSeries) - { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - return this.Chart.SetDataPointFill(oFill.UniFill, nSeries, nDataPoint, bAllSeries); - }; - - /** - * Sets the outline to the data point in the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the data point outline. - * @param {number} nSeries - The index of the chart series. - * @param {number} nDataPoint - The index of the data point in the specified chart series. - * @param {boolean} bAllSeries - Specifies if the outline will be applied to the specified data point in all series. - * @returns {boolean} - */ - ApiChart.prototype.SetDataPointOutLine = function(oStroke, nSeries, nDataPoint, bAllSeries) - { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetDataPointOutLine(oStroke.Ln, nSeries, nDataPoint, bAllSeries); - }; - - /** - * Sets the fill to the marker in the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the marker. - * @param {number} nSeries - The index of the chart series. - * @param {number} nMarker - The index of the marker in the specified chart series. - * @param {boolean} [bAllMarkers=false] - Specifies if the fill will be applied to all markers in the specified chart series. - * @returns {boolean} - */ - ApiChart.prototype.SetMarkerFill = function(oFill, nSeries, nMarker, bAllMarkers) - { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - return this.Chart.SetMarkerFill(oFill.UniFill, nSeries, nMarker, bAllMarkers); - }; - - /** - * Sets the outline to the marker in the specified chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the marker outline. - * @param {number} nSeries - The index of the chart series. - * @param {number} nMarker - The index of the marker in the specified chart series. - * @param {boolean} [bAllMarkers=false] - Specifies if the outline will be applied to all markers in the specified chart series. - * @returns {boolean} - */ - ApiChart.prototype.SetMarkerOutLine = function(oStroke, nSeries, nMarker, bAllMarkers) - { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetMarkerOutLine(oStroke.Ln, nSeries, nMarker, bAllMarkers); - }; - - /** - * Sets the fill to the chart title. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the title. - * @returns {boolean} - */ - ApiChart.prototype.SetTitleFill = function(oFill) - { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - return this.Chart.SetTitleFill(oFill.UniFill); - }; - - /** - * Sets the outline to the chart title. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the title outline. - * @returns {boolean} - */ - ApiChart.prototype.SetTitleOutLine = function(oStroke) - { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetTitleOutLine(oStroke.Ln); - }; - - /** - * Sets the fill to the chart legend. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiFill} oFill - The fill type used to fill the legend. - * @returns {boolean} - */ - ApiChart.prototype.SetLegendFill = function(oFill) - { - if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") - return false; - - return this.Chart.SetLegendFill(oFill.UniFill); - }; - - /** - * Sets the outline to the chart legend. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {ApiStroke} oStroke - The stroke used to create the legend outline. - * @returns {boolean} - */ - ApiChart.prototype.SetLegendOutLine = function(oStroke) - { - if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") - return false; - - return this.Chart.SetLegendOutLine(oStroke.Ln); - }; - /** - * Sets the specified numeric format to the axis values. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE", "CSE"] - * @param {NumFormat | String} sFormat - Numeric format (can be custom format). - * @param {AxisPos} - Axis position. - * @returns {boolean} - */ - ApiChart.prototype.SetAxieNumFormat = function(sFormat, sAxiePos) - { - var nAxiePos = -1; - switch (sAxiePos) - { - case "bottom": - nAxiePos = AscFormat.AX_POS_B; - break; - case "left": - nAxiePos = AscFormat.AX_POS_L; - break; - case "right": - nAxiePos = AscFormat.AX_POS_R; - break; - case "top": - nAxiePos = AscFormat.AX_POS_T; - break; - default: - return false; - } - - return this.Chart.SetAxieNumFormat(sFormat, nAxiePos); - }; - - /** - * Sets the specified numeric format to the chart series. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE"] - * @param {NumFormat | String} sFormat - Numeric format (can be custom format). - * @param {Number} nSeria - Series index. - * @returns {boolean} - */ - ApiChart.prototype.SetSeriaNumFormat = function(sFormat, nSeria) - { - return this.Chart.SetSeriaNumFormat(sFormat, nSeria); - }; - /** - * Sets the specified numeric format to the chart data point. - * @memberof ApiChart - * @typeofeditors ["CDE", "CPE"] - * @param {NumFormat | String} sFormat - Numeric format (can be custom format). - * @param {Number} nSeria - Series index. - * @param {number} nDataPoint - The index of the data point in the specified chart series. - * @param {boolean} bAllSeries - Specifies if the numeric format will be applied to the specified data point in all series. - * @returns {boolean} - */ - ApiChart.prototype.SetDataPointNumFormat = function(sFormat, nSeria, nDataPoint, bAllSeries) - { - return this.Chart.SetDataPointNumFormat(sFormat, nSeria, nDataPoint, bAllSeries); - }; //------------------------------------------------------------------------------------------------------------------ // @@ -4174,6 +3772,7 @@ * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {"oleObject"} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetClassType.js */ ApiOleObject.prototype.GetClassType = function() { @@ -4186,6 +3785,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {string} sData - The OLE object string data. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/SetData.js */ ApiOleObject.prototype.SetData = function(sData) { @@ -4201,6 +3801,7 @@ * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetData.js */ ApiOleObject.prototype.GetData = function() { @@ -4216,6 +3817,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {string} sAppId - The application ID associated with the current OLE object. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/SetApplicationId.js */ ApiOleObject.prototype.SetApplicationId = function(sAppId) { @@ -4231,6 +3833,7 @@ * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetApplicationId.js */ ApiOleObject.prototype.GetApplicationId = function() { @@ -4247,8 +3850,10 @@ //------------------------------------------------------------------------------------------------------------------ /** * Returns the type of the ApiTable object. + * @typeofeditors ["CPE"] * @returns {"table"} - * */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetClassType.js + */ ApiTable.prototype.GetClassType = function(){ return "table"; }; @@ -4256,9 +3861,11 @@ /** * Returns a row by its index. + * @typeofeditors ["CPE"] * @param nIndex {number} - The row index (position) in the table. * @returns {?ApiTableRow} - * */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetRow.js + */ ApiTable.prototype.GetRow = function(nIndex){ if(!this.Drawing){ return null; @@ -4273,9 +3880,11 @@ /** * Merges an array of cells. If merge is successful, it will return merged cell, otherwise "null". * Warning: The number of cells in any row and the number of rows in the current table may be changed. + * @typeofeditors ["CPE"] * @param {ApiTableCell[]} aCells - The array of cells. * @returns {?ApiTableCell} - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/MergeCells.js + */ ApiTable.prototype.MergeCells = function(aCells) { this.private_PrepareTableForActions(); @@ -4342,6 +3951,7 @@ * * The default setting is to apply the row and column banding formatting, but not the first row, last row, first * column, or last column formatting. + * @typeofeditors ["CPE"] * @param {boolean} isFirstColumn - Specifies that the first column conditional formatting shall be applied to the * table. * @param {boolean} isFirstRow - Specifies that the first row conditional formatting shall be applied to the table. @@ -4352,7 +3962,8 @@ * to the table. * @param {boolean} isVerBand - Specifies that the vertical banding conditional formatting shall not be applied to * the table. - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetTableLook.js + */ ApiTable.prototype.SetTableLook = function(isFirstColumn, isFirstRow, isLastColumn, isLastRow, isHorBand, isVerBand) { var oTableLook = new AscCommon.CTableLook(private_GetBoolean(isFirstColumn), @@ -4365,11 +3976,13 @@ }; /** * Adds a new row to the current table. + * @typeofeditors ["CPE"] * @param {ApiTableCell} [oCell] - If not specified, a new row will be added to the end of the table. * @param {boolean} [isBefore=false] - Adds a new row before or after the specified cell. If no cell is specified, * then this parameter will be ignored. * @returns {ApiTableRow} - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddRow.js + */ ApiTable.prototype.AddRow = function(oCell, isBefore) { this.private_PrepareTableForActions(); @@ -4395,10 +4008,12 @@ }; /** * Adds a new column to the end of the current table. + * @typeofeditors ["CPE"] * @param {ApiTableCell} [oCell] - If not specified, a new column will be added to the end of the table. * @param {boolean} [isBefore=false] - Add a new column before or after the specified cell. If no cell is specified, * then this parameter will be ignored. - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddColumn.js + */ ApiTable.prototype.AddColumn = function(oCell, isBefore) { this.private_PrepareTableForActions(); @@ -4420,9 +4035,11 @@ }; /** * Removes a table row with the specified cell. + * @typeofeditors ["CPE"] * @param {ApiTableCell} oCell - The table cell from the row which will be removed. * @returns {boolean} - defines if the table is empty after removing or not. - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/RemoveRow.js + */ ApiTable.prototype.RemoveRow = function(oCell) { if (!(oCell instanceof ApiTableCell) || this.Table !== oCell.Cell.Row.Table) @@ -4434,9 +4051,11 @@ }; /** * Removes a table column with the specified cell. + * @typeofeditors ["CPE"] * @param {ApiTableCell} oCell - The table cell from the column which will be removed. * @returns {boolean} - defines if the table is empty after removing or not. - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/RemoveColumn.js + */ ApiTable.prototype.RemoveColumn = function(oCell) { if (!(oCell instanceof ApiTableCell) || this.Table !== oCell.Cell.Row.Table) @@ -4454,6 +4073,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetShd.js */ ApiTable.prototype.SetShd = function(sType, r, g, b) { @@ -4502,6 +4122,7 @@ * @typeofeditors ["CPE"] * @param {bool} [bWriteTableStyles=false] - Specifies whether to write used table styles to the JSON object (true) or not (false). * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/ToJSON.js */ ApiTable.prototype.ToJSON = function(bWriteTableStyles) { @@ -4519,25 +4140,31 @@ //------------------------------------------------------------------------------------------------------------------ /** * Returns the type of the ApiTableRow class. + * @typeofeditors ["CPE"] * @returns {"tableRow"} - */ + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetClassType.js + */ ApiTableRow.prototype.GetClassType = function() { return "tableRow"; }; /** * Returns a number of cells in the current row. + * @typeofeditors ["CPE"] * @returns {number} - */ + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetCellsCount.js + */ ApiTableRow.prototype.GetCellsCount = function() { return this.Row.Content.length; }; /** * Returns a cell by its position in the current row. + * @typeofeditors ["CPE"] * @param {number} nPos - The cell position in the table row. * @returns {ApiTableCell} - */ + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetCell.js + */ ApiTableRow.prototype.GetCell = function(nPos) { if (nPos < 0 || nPos >= this.Row.Content.length) @@ -4549,8 +4176,10 @@ /** * Sets the height to the current table row. + * @typeofeditors ["CPE"] * @param {EMU} [nValue] - The row height in English measure units. - */ + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/SetHeight.js + */ ApiTableRow.prototype.SetHeight = function(nValue) { var fMaxTopMargin = 0, fMaxBottomMargin = 0, fMaxTopBorder = 0, fMaxBottomBorder = 0; @@ -4585,8 +4214,10 @@ /** * Returns the type of the ApiTableCell class. + * @typeofeditors ["CPE"] * @returns {"tableCell"} - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetClassType.js + */ ApiTableCell.prototype.GetClassType = function() { return "tableCell"; @@ -4594,8 +4225,10 @@ /** * Returns the current cell content. + * @typeofeditors ["CPE"] * @returns {ApiDocumentContent} - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetContent.js + */ ApiTableCell.prototype.GetContent = function(){ var oApi = private_GetApi(); return oApi.private_CreateApiDocContent(this.Cell.Content); @@ -4610,6 +4243,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetShd.js */ ApiTableCell.prototype.SetShd = function(sType, r, g, b) { @@ -4656,9 +4290,11 @@ /** * Specifies an amount of space which shall be left between the bottom extent of the cell contents and the border * of a specific individual table cell within a table. + * @typeofeditors ["CPE"] * @param {?twips} nValue - If this value is null, then default table cell bottom margin shall be used, * otherwise override the table cell bottom margin with specified value for the current cell. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellMarginBottom.js + */ ApiTableCell.prototype.SetCellMarginBottom = function(nValue) { var oPr = this.Cell.Pr.Copy(); @@ -4682,9 +4318,11 @@ /** * Specifies an amount of space which shall be left between the left extent of the current cell contents and the * left edge border of a specific individual table cell within a table. + * @typeofeditors ["CPE"] * @param {?twips} nValue - If this value is null, then default table cell left margin shall be used, * otherwise override the table cell left margin with specified value for the current cell. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellMarginLeft.js + */ ApiTableCell.prototype.SetCellMarginLeft = function(nValue) { var oPr = this.Cell.Pr.Copy(); @@ -4708,9 +4346,11 @@ /** * Specifies an amount of space which shall be left between the right extent of the current cell contents and the * right edge border of a specific individual table cell within a table. + * @typeofeditors ["CPE"] * @param {?twips} nValue - If this value is null, then default table cell right margin shall be used, * otherwise override the table cell right margin with specified value for the current cell. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellMarginRight.js + */ ApiTableCell.prototype.SetCellMarginRight = function(nValue) { var oPr = this.Cell.Pr.Copy(); @@ -4734,9 +4374,11 @@ /** * Specifies an amount of space which shall be left between the top extent of the current cell contents and the * top edge border of a specific individual table cell within a table. + * @typeofeditors ["CPE"] * @param {?twips} nValue - If this value is null, then default table cell top margin shall be used, * otherwise override the table cell top margin with specified value for the current cell. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellMarginTop.js + */ ApiTableCell.prototype.SetCellMarginTop = function(nValue) { var oPr = this.Cell.Pr.Copy(); @@ -4759,9 +4401,11 @@ }; /** * Sets the border which shall be displayed at the bottom of the current table cell. + * @typeofeditors ["CPE"] * @param {mm} fSize - The width of the current border. * @param {ApiFill} oApiFill - The color or pattern used to fill the current border. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellBorderBottom.js + */ ApiTableCell.prototype.SetCellBorderBottom = function(fSize, oApiFill) { var oBorder = new CDocumentBorder(); @@ -4776,9 +4420,11 @@ /** * Sets the border which shall be displayed at the left of the current table cell. + * @typeofeditors ["CPE"] * @param {mm} fSize - The width of the current border. * @param {ApiFill} oApiFill - The color or pattern used to fill the current border. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellBorderLeft.js + */ ApiTableCell.prototype.SetCellBorderLeft = function(fSize, oApiFill) { var oBorder = new CDocumentBorder(); @@ -4793,9 +4439,11 @@ /** * Sets the border which shall be displayed at the right of the current table cell. + * @typeofeditors ["CPE"] * @param {mm} fSize - The width of the current border. * @param {ApiFill} oApiFill - The color or pattern used to fill the current border. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellBorderRight.js + */ ApiTableCell.prototype.SetCellBorderRight = function(fSize, oApiFill) { var oBorder = new CDocumentBorder(); @@ -4810,9 +4458,11 @@ /** * Sets the border which shall be displayed at the top of the current table cell. + * @typeofeditors ["CPE"] * @param {mm} fSize - The width of the current border. * @param {ApiFill} oApiFill - The color or pattern used to fill the current border. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellBorderTop.js + */ ApiTableCell.prototype.SetCellBorderTop = function(fSize, oApiFill) { var oBorder = new CDocumentBorder(); @@ -4827,8 +4477,10 @@ /** * Specifies the vertical alignment for text within the current table cell. + * @typeofeditors ["CPE"] * @param {("top" | "center" | "bottom")} sType - The type of the vertical alignment. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetVerticalAlign.js + */ ApiTableCell.prototype.SetVerticalAlign = function(sType) { var oPr = this.Cell.Pr.Copy(); @@ -4842,8 +4494,10 @@ }; /** * Specifies the direction of the text flow for the current table cell. + * @typeofeditors ["CPE"] * @param {("lrtb" | "tbrl" | "btlr")} sType - The type of the text flow direction. - */ + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetTextDirection.js + */ ApiTableCell.prototype.SetTextDirection = function(sType) { var oPr = this.Cell.Pr.Copy(); @@ -4900,6 +4554,7 @@ ApiPresentation.prototype["GetWidth"] = ApiPresentation.prototype.GetWidth; ApiPresentation.prototype["GetHeight"] = ApiPresentation.prototype.GetHeight; ApiPresentation.prototype["GetAllComments"] = ApiPresentation.prototype.GetAllComments; + ApiPresentation.prototype["GetDocumentInfo"] = ApiPresentation.prototype.GetDocumentInfo; ApiPresentation.prototype["SlidesToJSON"] = ApiPresentation.prototype.SlidesToJSON; ApiPresentation.prototype["ToJSON"] = ApiPresentation.prototype.ToJSON; @@ -4924,6 +4579,7 @@ ApiMaster.prototype["GetAllCharts"] = ApiMaster.prototype.GetAllCharts; ApiMaster.prototype["GetAllOleObjects"] = ApiMaster.prototype.GetAllOleObjects; ApiMaster.prototype["ToJSON"] = ApiMaster.prototype.ToJSON; + ApiMaster.prototype["GetDrawingsByPlaceholderType"] = ApiMaster.prototype.GetDrawingsByPlaceholderType; ApiLayout.prototype["GetClassType"] = ApiLayout.prototype.GetClassType; @@ -4944,9 +4600,13 @@ ApiLayout.prototype["GetAllOleObjects"] = ApiLayout.prototype.GetAllOleObjects; ApiLayout.prototype["GetMaster"] = ApiLayout.prototype.GetMaster; ApiLayout.prototype["ToJSON"] = ApiLayout.prototype.ToJSON; + ApiLayout.prototype["GetDrawingsByPlaceholderType"] = ApiLayout.prototype.GetDrawingsByPlaceholderType; ApiPlaceholder.prototype["GetClassType"] = ApiPlaceholder.prototype.GetClassType; ApiPlaceholder.prototype["SetType"] = ApiPlaceholder.prototype.SetType; + ApiPlaceholder.prototype["GetType"] = ApiPlaceholder.prototype.GetType; + ApiPlaceholder.prototype["SetIndex"] = ApiPlaceholder.prototype.SetIndex; + ApiPlaceholder.prototype["GetIndex"] = ApiPlaceholder.prototype.GetIndex; ApiTheme.prototype["GetClassType"] = ApiTheme.prototype.GetClassType; ApiTheme.prototype["GetMaster"] = ApiTheme.prototype.GetMaster; @@ -5004,6 +4664,7 @@ ApiSlide.prototype["GetAllCharts"] = ApiSlide.prototype.GetAllCharts; ApiSlide.prototype["GetAllOleObjects"] = ApiSlide.prototype.GetAllOleObjects; ApiSlide.prototype["ToJSON"] = ApiSlide.prototype.ToJSON; + ApiSlide.prototype["GetDrawingsByPlaceholderType"] = ApiSlide.prototype.GetDrawingsByPlaceholderType; ApiDrawing.prototype["GetClassType"] = ApiDrawing.prototype.GetClassType; @@ -5021,65 +4682,38 @@ ApiDrawing.prototype["GetHeight"] = ApiDrawing.prototype.GetHeight; ApiDrawing.prototype["GetLockValue"] = ApiDrawing.prototype.GetLockValue; ApiDrawing.prototype["SetLockValue"] = ApiDrawing.prototype.SetLockValue; + ApiDrawing.prototype["Select"] = ApiDrawing.prototype.Select; ApiDrawing.prototype["ToJSON"] = ApiDrawing.prototype.ToJSON; + + let ApiChart = AscBuilder.ApiChart; + ApiChart.prototype["SetSize"] = ApiChart.prototype.SetSize = ApiDrawing.prototype.SetSize; + ApiChart.prototype["SetPosition"] = ApiChart.prototype.SetPosition = ApiDrawing.prototype.SetPosition; + ApiChart.prototype["GetParent"] = ApiChart.prototype.GetParent = ApiDrawing.prototype.GetParent; + ApiChart.prototype["GetParentSlide"] = ApiChart.prototype.GetParentSlide = ApiDrawing.prototype.GetParentSlide; + ApiChart.prototype["GetParentLayout"] = ApiChart.prototype.GetParentLayout = ApiDrawing.prototype.GetParentLayout; + ApiChart.prototype["GetParentMaster"] = ApiChart.prototype.GetParentMaster = ApiDrawing.prototype.GetParentMaster; + ApiChart.prototype["Delete"] = ApiChart.prototype.Delete = ApiDrawing.prototype.Delete; + ApiChart.prototype["SetPlaceholder"] = ApiChart.prototype.SetPlaceholder = ApiDrawing.prototype.SetPlaceholder; + ApiChart.prototype["GetPlaceholder"] = ApiChart.prototype.GetPlaceholder = ApiDrawing.prototype.GetPlaceholder; + ApiChart.prototype["GetWidth"] = ApiChart.prototype.GetWidth = ApiDrawing.prototype.GetWidth; + ApiChart.prototype["GetHeight"] = ApiChart.prototype.GetHeight = ApiDrawing.prototype.GetHeight; + ApiChart.prototype["GetLockValue"] = ApiChart.prototype.GetLockValue = ApiDrawing.prototype.GetLockValue; + ApiChart.prototype["SetLockValue"] = ApiChart.prototype.SetLockValue = ApiDrawing.prototype.SetLockValue; + ApiImage.prototype["GetClassType"] = ApiImage.prototype.GetClassType; ApiShape.prototype["GetClassType"] = ApiShape.prototype.GetClassType; ApiShape.prototype["GetDocContent"] = ApiShape.prototype.GetDocContent; ApiShape.prototype["GetContent"] = ApiShape.prototype.GetContent; ApiShape.prototype["SetVerticalTextAlign"] = ApiShape.prototype.SetVerticalTextAlign; - - ApiChart.prototype["GetClassType"] = ApiChart.prototype.GetClassType; - ApiChart.prototype["SetTitle"] = ApiChart.prototype.SetTitle; - ApiChart.prototype["SetHorAxisTitle"] = ApiChart.prototype.SetHorAxisTitle; - ApiChart.prototype["SetVerAxisTitle"] = ApiChart.prototype.SetVerAxisTitle; - ApiChart.prototype["SetVerAxisOrientation"] = ApiChart.prototype.SetVerAxisOrientation; - ApiChart.prototype["SetHorAxisOrientation"] = ApiChart.prototype.SetHorAxisOrientation; - ApiChart.prototype["SetLegendPos"] = ApiChart.prototype.SetLegendPos; - ApiChart.prototype["SetLegendFontSize"] = ApiChart.prototype.SetLegendFontSize; - ApiChart.prototype["SetShowDataLabels"] = ApiChart.prototype.SetShowDataLabels; - ApiChart.prototype["SetShowPointDataLabel"] = ApiChart.prototype.SetShowPointDataLabel; - ApiChart.prototype["SetVertAxisTickLabelPosition"] = ApiChart.prototype.SetVertAxisTickLabelPosition; - ApiChart.prototype["SetHorAxisTickLabelPosition"] = ApiChart.prototype.SetHorAxisTickLabelPosition; - - ApiChart.prototype["SetHorAxisMajorTickMark"] = ApiChart.prototype.SetHorAxisMajorTickMark; - ApiChart.prototype["SetHorAxisMinorTickMark"] = ApiChart.prototype.SetHorAxisMinorTickMark; - ApiChart.prototype["SetVertAxisMajorTickMark"] = ApiChart.prototype.SetVertAxisMajorTickMark; - ApiChart.prototype["SetVertAxisMinorTickMark"] = ApiChart.prototype.SetVertAxisMinorTickMark; - ApiChart.prototype["SetMajorVerticalGridlines"] = ApiChart.prototype.SetMajorVerticalGridlines; - ApiChart.prototype["SetMinorVerticalGridlines"] = ApiChart.prototype.SetMinorVerticalGridlines; - ApiChart.prototype["SetMajorHorizontalGridlines"] = ApiChart.prototype.SetMajorHorizontalGridlines; - ApiChart.prototype["SetMinorHorizontalGridlines"] = ApiChart.prototype.SetMinorHorizontalGridlines; - ApiChart.prototype["SetHorAxisLablesFontSize"] = ApiChart.prototype.SetHorAxisLablesFontSize; - ApiChart.prototype["SetVertAxisLablesFontSize"] = ApiChart.prototype.SetVertAxisLablesFontSize; - ApiChart.prototype["RemoveSeria"] = ApiChart.prototype.RemoveSeria; - ApiChart.prototype["SetSeriaValues"] = ApiChart.prototype.SetSeriaValues; - ApiChart.prototype["SetXValues"] = ApiChart.prototype.SetXValues; - ApiChart.prototype["SetSeriaName"] = ApiChart.prototype.SetSeriaName; - ApiChart.prototype["SetCategoryName"] = ApiChart.prototype.SetCategoryName; - ApiChart.prototype["ApplyChartStyle"] = ApiChart.prototype.ApplyChartStyle; - ApiChart.prototype["SetPlotAreaFill"] = ApiChart.prototype.SetPlotAreaFill; - ApiChart.prototype["SetPlotAreaOutLine"] = ApiChart.prototype.SetPlotAreaOutLine; - ApiChart.prototype["SetSeriesFill"] = ApiChart.prototype.SetSeriesFill; - ApiChart.prototype["SetSeriesOutLine"] = ApiChart.prototype.SetSeriesOutLine; - ApiChart.prototype["SetDataPointFill"] = ApiChart.prototype.SetDataPointFill; - ApiChart.prototype["SetDataPointOutLine"] = ApiChart.prototype.SetDataPointOutLine; - ApiChart.prototype["SetMarkerFill"] = ApiChart.prototype.SetMarkerFill; - ApiChart.prototype["SetMarkerOutLine"] = ApiChart.prototype.SetMarkerOutLine; - ApiChart.prototype["SetTitleFill"] = ApiChart.prototype.SetTitleFill; - ApiChart.prototype["SetTitleOutLine"] = ApiChart.prototype.SetTitleOutLine; - ApiChart.prototype["SetLegendFill"] = ApiChart.prototype.SetLegendFill; - ApiChart.prototype["SetLegendOutLine"] = ApiChart.prototype.SetLegendOutLine; - ApiChart.prototype["SetAxieNumFormat"] = ApiChart.prototype.SetAxieNumFormat; - ApiChart.prototype["SetSeriaNumFormat"] = ApiChart.prototype.SetSeriaNumFormat; - ApiChart.prototype["SetDataPointNumFormat"] = ApiChart.prototype.SetDataPointNumFormat; + ApiOleObject.prototype["GetClassType"] = ApiOleObject.prototype.GetClassType; - ApiOleObject.prototype["SetData"] = ApiOleObject.prototype.SetData; - ApiOleObject.prototype["GetData"] = ApiOleObject.prototype.GetData; + ApiOleObject.prototype["SetData"] = ApiOleObject.prototype.SetData; + ApiOleObject.prototype["GetData"] = ApiOleObject.prototype.GetData; ApiOleObject.prototype["SetApplicationId"] = ApiOleObject.prototype.SetApplicationId; ApiOleObject.prototype["GetApplicationId"] = ApiOleObject.prototype.GetApplicationId; @@ -5139,13 +4773,7 @@ } function private_GetDrawingDocument(){ - if(editor && editor.WordControl){ - return editor.WordControl.m_oDrawingDocument; - } - if(Asc["editor"] && Asc["editor"].wbModel) { - return Asc["editor"].wbModel.DrawingDocument; - } - return null; + return Asc.editor.getDrawingDocument(); } function private_GetPresentation(){ @@ -5218,7 +4846,6 @@ { return mm * 36000.0; } - function private_GetDrawingLockType(sType) { @@ -5275,6 +4902,163 @@ return nLockType; } + function private_GetPlaceholderInnerType(sType) { + let nType; + switch (sType) + { + case "body": + nType = 0; + break; + case "chart": + nType = 1; + break; + case "clipArt": + nType = 2; + break; + case "ctrTitle": + nType = 3; + break; + case "diagram": + nType = 4; + break; + case "date": + nType = 5; + break; + case "footer": + nType = 6; + break; + case "header": + nType = 7; + break; + case "media": + nType = 8; + break; + case "object": + nType = 9; + break; + case "picture": + nType = 10; + break; + case "sldImage": + nType = 11; + break; + case "sldNumber": + nType = 12; + break; + case "subTitle": + nType = 13; + break; + case "table": + nType = 14; + break; + case "title": + nType = 15; + break; + default: + nType = 0; + } + + return nType; + } + + function private_GetPlaceholderStrType(nType) { + let sType; + + switch (nType) + { + case 0: + sType = "body"; + break; + case 1: + sType = "chart"; + break; + case 2: + sType = "clipArt"; + break; + case 3: + sType = "ctrTitle"; + break; + case 4: + sType = "diagram"; + break; + case 5: + sType = "date"; + break; + case 6: + sType = "footer"; + break; + case 7: + sType = "header"; + break; + case 8: + sType = "media"; + break; + case 9: + sType = "object"; + break; + case 10: + sType = "picture"; + break; + case 11: + sType = "sldImage"; + break; + case 12: + sType = "sldNumber"; + break; + case 13: + sType = "subTitle"; + break; + case 14: + sType = "table"; + break; + case 15: + sType = "title"; + break; + default: + sType = "unknown"; + } + + return sType; + } + + function private_GetApiDrawing(drawing) { + switch (drawing.getObjectType()) { + case AscDFH.historyitem_type_Shape: + return new ApiShape(drawing); + case AscDFH.historyitem_type_ImageShape: + return new ApiImage(drawing); + case AscDFH.historyitem_type_GroupShape: + return new ApiGroup(drawing); + case AscDFH.historyitem_type_OleObject: + return new ApiOleObject(drawing); + case AscDFH.historyitem_type_GraphicFrame: + return new ApiTable(drawing); + case AscDFH.historyitem_type_ChartSpace: + return new ApiChart(drawing); + } + return null; + } + + function private_GetApiDrawings(drawingObjects) { + return drawingObjects.map(function(drawing) { + return private_GetApiDrawing(drawing); + }).filter(function(apiDrawing) { + return !!apiDrawing; + }); + } + + function private_GetAllDrawingsWithType(aDrawings, nObjectType, fCreateBuilderWrapper) { + let aWrappers = []; + for(let nIdx = 0; nIdx < aDrawings.length; ++nIdx) { + let oDrawing = aDrawings[nIdx]; + if(oDrawing.getObjectType() === nObjectType) { + aWrappers.push(fCreateBuilderWrapper(oDrawing)); + } + } + return aWrappers; + } + })(window, null); + diff --git a/slide/apiCommon.js b/slide/apiCommon.js index 4ca5907920..3f16be506e 100644 --- a/slide/apiCommon.js +++ b/slide/apiCommon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -153,7 +153,92 @@ CAscSlideTransition.prototype.setDefaultParams = function() this.SlideAdvanceDuration = 10000; this.ShowLoop = true; }; - +CAscSlideTransition.prototype.getTypeAndOption = function() +{ + let oResult = {Type: null, Option: null}; + if(this.TransitionType === c_oAscSlideTransitionTypes.Random) + { + let aTypes = [ + Asc.c_oAscSlideTransitionTypes.Fade, + Asc.c_oAscSlideTransitionTypes.Push, + Asc.c_oAscSlideTransitionTypes.Wipe, + Asc.c_oAscSlideTransitionTypes.Split, + Asc.c_oAscSlideTransitionTypes.UnCover, + Asc.c_oAscSlideTransitionTypes.Cover, + Asc.c_oAscSlideTransitionTypes.Clock, + Asc.c_oAscSlideTransitionTypes.Zoom, + Asc.c_oAscSlideTransitionTypes.Morph + ]; + let nType = AscCommon.getArrayRandomElement(aTypes); + let nOption = null; + switch (nType) { + case Asc.c_oAscSlideTransitionTypes.Fade: { + nOption = AscCommon.getArrayRandomElement([ + c_oAscSlideTransitionParams.Fade_Smoothly, + c_oAscSlideTransitionParams.Fade_Through_Black + ]); + break; + } + case Asc.c_oAscSlideTransitionTypes.Push: + case Asc.c_oAscSlideTransitionTypes.Wipe: + case Asc.c_oAscSlideTransitionTypes.UnCover: + case Asc.c_oAscSlideTransitionTypes.Cover: { + nOption = AscCommon.getArrayRandomElement([ + c_oAscSlideTransitionParams.Param_Left, + c_oAscSlideTransitionParams.Param_Top, + c_oAscSlideTransitionParams.Param_Right, + c_oAscSlideTransitionParams.Param_Bottom, + c_oAscSlideTransitionParams.Param_TopLeft, + c_oAscSlideTransitionParams.Param_TopRight, + c_oAscSlideTransitionParams.Param_BottomLeft, + c_oAscSlideTransitionParams.Param_BottomRight + ]); + break; + } + case Asc.c_oAscSlideTransitionTypes.Split: { + nOption = AscCommon.getArrayRandomElement([ + c_oAscSlideTransitionParams.Split_VerticalIn, + c_oAscSlideTransitionParams.Split_VerticalOut, + c_oAscSlideTransitionParams.Split_HorizontalIn, + c_oAscSlideTransitionParams.Split_HorizontalIn + ]); + break; + } + case Asc.c_oAscSlideTransitionTypes.Clock: { + nOption = AscCommon.getArrayRandomElement([ + c_oAscSlideTransitionParams.Clock_Clockwise, + c_oAscSlideTransitionParams.Clock_Counterclockwise, + c_oAscSlideTransitionParams.Clock_Wedge + ]); + break; + } + case Asc.c_oAscSlideTransitionTypes.Zoom: { + nOption = AscCommon.getArrayRandomElement([ + c_oAscSlideTransitionParams.Zoom_In, + c_oAscSlideTransitionParams.Zoom_Out, + c_oAscSlideTransitionParams.Zoom_AndRotate + ]); + break; + } + case Asc.c_oAscSlideTransitionTypes.Morph: { + nOption = AscCommon.getArrayRandomElement([ + c_oAscSlideTransitionParams.Morph_Objects, + c_oAscSlideTransitionParams.Morph_Words, + c_oAscSlideTransitionParams.Morph_Letters + ]); + break; + } + } + oResult.Type = nType; + oResult.Option = nOption; + } + else + { + oResult.Type = this.TransitionType; + oResult.Option = this.TransitionOption; + } + return oResult; +}; CAscSlideTransition.prototype.Write_ToBinary = function(w) { @@ -415,6 +500,10 @@ CAscSlideTransition.prototype.parseXmlParameters = function (_type, _paramNames, } } } + else if("p:random" === _type) + { + this.TransitionType = c_oAscSlideTransitionTypes.Random; + } else if ("p:none" !== _type) { this.TransitionType = c_oAscSlideTransitionTypes.Fade; @@ -737,6 +826,11 @@ CAscSlideTransition.prototype.fillXmlParams = function (aAttrNames, aAttrValues) } break; } + case c_oAscSlideTransitionTypes.Random: + { + sNodeName = "p:random"; + break; + } default: break; } diff --git a/slide/apiDefines.js b/slide/apiDefines.js index acdfcbcf53..bd72fc6234 100644 --- a/slide/apiDefines.js +++ b/slide/apiDefines.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -113,7 +113,8 @@ var c_oAscSlideTransitionTypes = { Cover : 6, Clock : 7, Zoom : 8, - Morph : 9 + Morph : 9, + Random : 10 }; /** @enum {number} */ @@ -560,6 +561,7 @@ prot['Cover'] = c_oAscSlideTransitionTypes.Cover; prot['Clock'] = c_oAscSlideTransitionTypes.Clock; prot['Zoom'] = c_oAscSlideTransitionTypes.Zoom; prot['Morph'] = c_oAscSlideTransitionTypes.Morph; +prot['Random'] = c_oAscSlideTransitionTypes.Random; prot = window['Asc']['c_oAscSlideTransitionParams'] = c_oAscSlideTransitionParams; prot['Fade_Smoothly'] = c_oAscSlideTransitionParams.Fade_Smoothly; diff --git a/slide/api_plugins.js b/slide/api_plugins.js index c73572f976..2a45068cd6 100644 --- a/slide/api_plugins.js +++ b/slide/api_plugins.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -52,6 +52,7 @@ * @property {string} Time - The time when the comment was posted (in milliseconds). * @property {boolean} Solved - Specifies if the comment is resolved (**true**) or not (**false**). * @property {CommentData[]} Replies - An array containing the comment replies represented as the *CommentData* object. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/CommentData.js */ /** @@ -62,6 +63,7 @@ * @param {CommentData} oCommentData - An object which contains the comment data. * @return {string | null} - The comment ID in the string format or null if the comment cannot be added. * @since 7.3.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddComment.js */ Api.prototype["pluginMethod_AddComment"] = function(oCommentData) { @@ -88,6 +90,7 @@ * @param {CommentData} oCommentData - An object which contains the new comment data. * @return {boolean} * @since 7.3.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ChangeComment.js */ Api.prototype["pluginMethod_ChangeComment"] = function(sId, oCommentData) { @@ -111,6 +114,7 @@ * @typeofeditors ["CPE"] * @alias RemoveComments * @since 7.3.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveComments.js */ Api.prototype["pluginMethod_RemoveComments"] = function(arrIds) { @@ -130,6 +134,7 @@ * @alias GetAllComments * @returns {comment[]} - An array of comment objects containing the comment data. * @since 8.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetAllComments.js */ Api.prototype["pluginMethod_GetAllComments"] = function() { @@ -155,6 +160,7 @@ * @typeofeditors ["CPE"] * @alias StartSlideShow * @since 8.0.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/StartSlideShow.js */ Api.prototype["pluginMethod_StartSlideShow"] = function() { @@ -167,6 +173,7 @@ * @typeofeditors ["CPE"] * @alias PauseSlideShow * @since 8.0.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/PauseSlideShow.js */ Api.prototype["pluginMethod_PauseSlideShow"] = function() { @@ -179,6 +186,7 @@ * @typeofeditors ["CPE"] * @alias ResumeSlideShow * @since 8.0.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ResumeSlideShow.js */ Api.prototype["pluginMethod_ResumeSlideShow"] = function() { @@ -193,6 +201,7 @@ * @typeofeditors ["CPE"] * @alias EndSlideShow * @since 8.0.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/EndSlideShow.js */ Api.prototype["pluginMethod_EndSlideShow"] = function() { @@ -205,6 +214,7 @@ * @typeofeditors ["CPE"] * @alias GoToNextSlideInSlideShow * @since 8.0.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GoToNextSlideInSlideShow.js */ Api.prototype["pluginMethod_GoToNextSlideInSlideShow"] = function() { @@ -217,6 +227,7 @@ * @typeofeditors ["CPE"] * @alias GoToPreviousSlideInSlideShow * @since 8.0.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GoToPreviousSlideInSlideShow.js */ Api.prototype["pluginMethod_GoToPreviousSlideInSlideShow"] = function() { @@ -230,6 +241,7 @@ * @alias GoToSlideInSlideShow * @param {number} nSlideIndex - The slide index. * @since 8.0.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GoToSlideInSlideShow.js */ Api.prototype["pluginMethod_GoToSlideInSlideShow"] = function(nSlideIndex) { @@ -237,3 +249,5 @@ }; })(window); + + diff --git a/slide/document/editor.js b/slide/document/editor.js index 3912fafeb4..00131828d4 100644 --- a/slide/document/editor.js +++ b/slide/document/editor.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/document/fonts/fonts.js b/slide/document/fonts/fonts.js index 24b7ca8f44..5b37c906c6 100644 --- a/slide/document/fonts/fonts.js +++ b/slide/document/fonts/fonts.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/slide/fromToJSON.js b/slide/fromToJSON.js index ebf214b7ef..12994afbf3 100644 --- a/slide/fromToJSON.js +++ b/slide/fromToJSON.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/shortcuts/events.js b/tests/cell/shortcuts/events.js index 34d8c47569..0e39f2eaa9 100644 --- a/tests/cell/shortcuts/events.js +++ b/tests/cell/shortcuts/events.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/cell/shortcuts/measurer.js b/tests/cell/shortcuts/measurer.js index 5ea7389908..4a711cbcd9 100644 --- a/tests/cell/shortcuts/measurer.js +++ b/tests/cell/shortcuts/measurer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/cell/shortcuts/shortcuts.js b/tests/cell/shortcuts/shortcuts.js index ce1b201a43..2cf0673a5a 100644 --- a/tests/cell/shortcuts/shortcuts.js +++ b/tests/cell/shortcuts/shortcuts.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/cell/shortcuts/workbook.js b/tests/cell/shortcuts/workbook.js index 82a6152c7e..ae6c40963d 100644 --- a/tests/cell/shortcuts/workbook.js +++ b/tests/cell/shortcuts/workbook.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/cell/spreadsheet-calculation/CellFormatTests.js b/tests/cell/spreadsheet-calculation/CellFormatTests.js index 048048518d..667afd67d6 100644 --- a/tests/cell/spreadsheet-calculation/CellFormatTests.js +++ b/tests/cell/spreadsheet-calculation/CellFormatTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/CellSettingsTests.js b/tests/cell/spreadsheet-calculation/CellSettingsTests.js index db44172772..641398d8fe 100644 --- a/tests/cell/spreadsheet-calculation/CellSettingsTests.js +++ b/tests/cell/spreadsheet-calculation/CellSettingsTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/ChartsDrawTest.js b/tests/cell/spreadsheet-calculation/ChartsDrawTest.js index 4a9cfbc9b8..12a6cf3b15 100644 --- a/tests/cell/spreadsheet-calculation/ChartsDrawTest.js +++ b/tests/cell/spreadsheet-calculation/ChartsDrawTest.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -128,10 +128,9 @@ $(function () { "line3D", "pie", "pie3D", "doughnut", "scatter", "stock", "area", "areaStacked", "areaStackedPercent"]; var gMapPaths = { - "bar": "15,0,3.1750000000000003,66.29583333333333,1,96.29583333333335,66.29583333333333,1,96.29583333333335,3.1749999999999985,1,3.1750000000000003,3.1749999999999985,1,3.1750000000000003,66.29583333333333,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,42,0,3.439583333333333,66.56041666666668,1,96.5604166666667,66.56041666666668,0,3.439583333333333,56.04027777777778,1,96.5604166666667,56.04027777777778,0,3.439583333333333,45.520138888888894,1,96.5604166666667,45.520138888888894,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,24.479861111111116,1,96.5604166666667,24.479861111111116,0,3.439583333333333,13.959722222222226,1,96.5604166666667,13.959722222222226,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,180,0,3.439583333333333,56.04027777777778,1,96.5604166666667,56.04027777777778,0,3.439583333333333,58.14430555555557,1,96.5604166666667,58.14430555555557,0,3.439583333333333,60.24833333333335,1,96.5604166666667,60.24833333333335,0,3.439583333333333,62.352361111111115,1,96.5604166666667,62.352361111111115,0,3.439583333333333,64.4563888888889,1,96.5604166666667,64.4563888888889,0,3.439583333333333,45.520138888888894,1,96.5604166666667,45.520138888888894,0,3.439583333333333,47.624166666666675,1,96.5604166666667,47.624166666666675,0,3.439583333333333,49.72819444444446,1,96.5604166666667,49.72819444444446,0,3.439583333333333,51.83222222222223,1,96.5604166666667,51.83222222222223,0,3.439583333333333,53.93625,1,96.5604166666667,53.93625,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,37.10402777777778,1,96.5604166666667,37.10402777777778,0,3.439583333333333,39.20805555555556,1,96.5604166666667,39.20805555555556,0,3.439583333333333,41.312083333333334,1,96.5604166666667,41.312083333333334,0,3.439583333333333,43.41611111111111,1,96.5604166666667,43.41611111111111,0,3.439583333333333,24.479861111111116,1,96.5604166666667,24.479861111111116,0,3.439583333333333,26.583888888888893,1,96.5604166666667,26.583888888888893,0,3.439583333333333,28.68791666666667,1,96.5604166666667,28.68791666666667,0,3.439583333333333,30.79194444444445,1,96.5604166666667,30.79194444444445,0,3.439583333333333,32.89597222222223,1,96.5604166666667,32.89597222222223,0,3.439583333333333,13.959722222222226,1,96.5604166666667,13.959722222222226,0,3.439583333333333,16.063750000000002,1,96.5604166666667,16.063750000000002,0,3.439583333333333,18.16777777777778,1,96.5604166666667,18.16777777777778,0,3.439583333333333,20.271805555555563,1,96.5604166666667,20.271805555555563,0,3.439583333333333,22.375833333333336,1,96.5604166666667,22.375833333333336,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,0,3.439583333333333,5.543611111111109,1,96.5604166666667,5.543611111111109,0,3.439583333333333,7.647638888888886,1,96.5604166666667,7.647638888888886,0,3.439583333333333,9.751666666666665,1,96.5604166666667,9.751666666666665,0,3.439583333333333,11.855694444444444,1,96.5604166666667,11.855694444444444,15,0,10.091071428571432,66.56041666666668,1,10.091071428571432,24.479861111111116,1,18.95972222222223,24.479861111111116,1,18.95972222222223,66.56041666666668,1,10.091071428571432,66.56041666666668,15,0,41.131349206349206,66.56041666666668,1,41.131349206349206,16.063750000000002,1,50,16.063750000000002,1,50,66.56041666666668,1,41.131349206349206,66.56041666666668,15,0,72.171626984127,66.56041666666668,1,72.171626984127,7.647638888888893,1,81.04027777777779,7.647638888888893,1,81.04027777777779,66.56041666666668,1,72.171626984127,66.56041666666668,15,0,18.95972222222223,66.56041666666668,1,18.95972222222223,13.95972222222223,1,27.828373015873026,13.95972222222223,1,27.828373015873026,66.56041666666668,1,18.95972222222223,66.56041666666668,15,0,50,66.56041666666668,1,50,11.855694444444444,1,58.8686507936508,11.855694444444444,1,58.8686507936508,66.56041666666668,1,50,66.56041666666668,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", - "barStacked": "15,0,3.1750000000000003,66.29583333333333,1,96.29583333333335,66.29583333333333,1,96.29583333333335,3.1749999999999985,1,3.1750000000000003,3.1749999999999985,1,3.1750000000000003,66.29583333333333,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,42,0,3.439583333333333,66.56041666666668,1,96.5604166666667,66.56041666666668,0,3.439583333333333,56.04027777777778,1,96.5604166666667,56.04027777777778,0,3.439583333333333,45.520138888888894,1,96.5604166666667,45.520138888888894,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,24.479861111111116,1,96.5604166666667,24.479861111111116,0,3.439583333333333,13.959722222222226,1,96.5604166666667,13.959722222222226,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,180,0,3.439583333333333,56.04027777777778,1,96.5604166666667,56.04027777777778,0,3.439583333333333,58.14430555555557,1,96.5604166666667,58.14430555555557,0,3.439583333333333,60.24833333333335,1,96.5604166666667,60.24833333333335,0,3.439583333333333,62.352361111111115,1,96.5604166666667,62.352361111111115,0,3.439583333333333,64.4563888888889,1,96.5604166666667,64.4563888888889,0,3.439583333333333,45.520138888888894,1,96.5604166666667,45.520138888888894,0,3.439583333333333,47.624166666666675,1,96.5604166666667,47.624166666666675,0,3.439583333333333,49.72819444444446,1,96.5604166666667,49.72819444444446,0,3.439583333333333,51.83222222222223,1,96.5604166666667,51.83222222222223,0,3.439583333333333,53.93625,1,96.5604166666667,53.93625,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,37.10402777777778,1,96.5604166666667,37.10402777777778,0,3.439583333333333,39.20805555555556,1,96.5604166666667,39.20805555555556,0,3.439583333333333,41.312083333333334,1,96.5604166666667,41.312083333333334,0,3.439583333333333,43.41611111111111,1,96.5604166666667,43.41611111111111,0,3.439583333333333,24.479861111111116,1,96.5604166666667,24.479861111111116,0,3.439583333333333,26.583888888888893,1,96.5604166666667,26.583888888888893,0,3.439583333333333,28.68791666666667,1,96.5604166666667,28.68791666666667,0,3.439583333333333,30.79194444444445,1,96.5604166666667,30.79194444444445,0,3.439583333333333,32.89597222222223,1,96.5604166666667,32.89597222222223,0,3.439583333333333,13.959722222222226,1,96.5604166666667,13.959722222222226,0,3.439583333333333,16.063750000000002,1,96.5604166666667,16.063750000000002,0,3.439583333333333,18.16777777777778,1,96.5604166666667,18.16777777777778,0,3.439583333333333,20.271805555555563,1,96.5604166666667,20.271805555555563,0,3.439583333333333,22.375833333333336,1,96.5604166666667,22.375833333333336,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,0,3.439583333333333,5.543611111111109,1,96.5604166666667,5.543611111111109,0,3.439583333333333,7.647638888888886,1,96.5604166666667,7.647638888888886,0,3.439583333333333,9.751666666666665,1,96.5604166666667,9.751666666666665,0,3.439583333333333,11.855694444444444,1,96.5604166666667,11.855694444444444,15,0,12.751666666666669,66.56041666666668,1,12.751666666666669,45.520138888888894,1,25.167777777777783,45.520138888888894,1,25.167777777777783,66.56041666666668,1,12.751666666666669,66.56041666666668,15,0,43.79194444444445,66.56041666666668,1,43.79194444444445,41.31208333333334,1,56.20805555555556,41.31208333333334,1,56.20805555555556,66.56041666666668,1,43.79194444444445,66.56041666666668,15,0,74.83222222222224,66.56041666666668,1,74.83222222222224,37.10402777777778,1,87.24833333333335,37.10402777777778,1,87.24833333333335,66.56041666666668,1,74.83222222222224,66.56041666666668,15,0,12.751666666666669,45.520138888888894,1,12.751666666666669,19.21979166666667,1,25.167777777777783,19.21979166666667,1,25.167777777777783,45.520138888888894,1,12.751666666666669,45.520138888888894,15,0,43.79194444444445,41.31208333333334,1,43.79194444444445,13.959722222222226,1,56.20805555555556,13.959722222222226,1,56.20805555555556,41.31208333333334,1,43.79194444444445,41.31208333333334,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", - "barStackedPercent": "15,0,3.1750000000000003,66.29583333333333,1,96.29583333333335,66.29583333333333,1,96.29583333333335,3.1749999999999985,1,3.1750000000000003,3.1749999999999985,1,3.1750000000000003,66.29583333333333,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,66,0,3.439583333333333,66.56041666666668,1,96.5604166666667,66.56041666666668,0,3.439583333333333,60.24833333333334,1,96.5604166666667,60.24833333333334,0,3.439583333333333,53.93625,1,96.5604166666667,53.93625,0,3.439583333333333,47.62416666666667,1,96.5604166666667,47.62416666666667,0,3.439583333333333,41.31208333333334,1,96.5604166666667,41.31208333333334,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,28.68791666666667,1,96.5604166666667,28.68791666666667,0,3.439583333333333,22.375833333333333,1,96.5604166666667,22.375833333333333,0,3.439583333333333,16.06375,1,96.5604166666667,16.06375,0,3.439583333333333,9.751666666666667,1,96.5604166666667,9.751666666666667,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,300,0,3.439583333333333,60.24833333333334,1,96.5604166666667,60.24833333333334,0,3.439583333333333,61.51075,1,96.5604166666667,61.51075,0,3.439583333333333,62.77316666666667,1,96.5604166666667,62.77316666666667,0,3.439583333333333,64.03558333333334,1,96.5604166666667,64.03558333333334,0,3.439583333333333,65.298,1,96.5604166666667,65.298,0,3.439583333333333,53.93625,1,96.5604166666667,53.93625,0,3.439583333333333,55.198666666666675,1,96.5604166666667,55.198666666666675,0,3.439583333333333,56.46108333333334,1,96.5604166666667,56.46108333333334,0,3.439583333333333,57.7235,1,96.5604166666667,57.7235,0,3.439583333333333,58.985916666666675,1,96.5604166666667,58.985916666666675,0,3.439583333333333,47.62416666666667,1,96.5604166666667,47.62416666666667,0,3.439583333333333,48.88658333333334,1,96.5604166666667,48.88658333333334,0,3.439583333333333,50.148999999999994,1,96.5604166666667,50.148999999999994,0,3.439583333333333,51.41141666666667,1,96.5604166666667,51.41141666666667,0,3.439583333333333,52.67383333333334,1,96.5604166666667,52.67383333333334,0,3.439583333333333,41.31208333333334,1,96.5604166666667,41.31208333333334,0,3.439583333333333,42.57450000000001,1,96.5604166666667,42.57450000000001,0,3.439583333333333,43.83691666666667,1,96.5604166666667,43.83691666666667,0,3.439583333333333,45.09933333333334,1,96.5604166666667,45.09933333333334,0,3.439583333333333,46.36175000000001,1,96.5604166666667,46.36175000000001,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,36.26241666666667,1,96.5604166666667,36.26241666666667,0,3.439583333333333,37.52483333333333,1,96.5604166666667,37.52483333333333,0,3.439583333333333,38.78725,1,96.5604166666667,38.78725,0,3.439583333333333,40.04966666666667,1,96.5604166666667,40.04966666666667,0,3.439583333333333,28.68791666666667,1,96.5604166666667,28.68791666666667,0,3.439583333333333,29.95033333333333,1,96.5604166666667,29.95033333333333,0,3.439583333333333,31.212750000000003,1,96.5604166666667,31.212750000000003,0,3.439583333333333,32.47516666666667,1,96.5604166666667,32.47516666666667,0,3.439583333333333,33.737583333333326,1,96.5604166666667,33.737583333333326,0,3.439583333333333,22.375833333333333,1,96.5604166666667,22.375833333333333,0,3.439583333333333,23.63825,1,96.5604166666667,23.63825,0,3.439583333333333,24.90066666666667,1,96.5604166666667,24.90066666666667,0,3.439583333333333,26.16308333333333,1,96.5604166666667,26.16308333333333,0,3.439583333333333,27.425500000000003,1,96.5604166666667,27.425500000000003,0,3.439583333333333,16.06375,1,96.5604166666667,16.06375,0,3.439583333333333,17.326166666666666,1,96.5604166666667,17.326166666666666,0,3.439583333333333,18.588583333333332,1,96.5604166666667,18.588583333333332,0,3.439583333333333,19.851000000000003,1,96.5604166666667,19.851000000000003,0,3.439583333333333,21.113416666666666,1,96.5604166666667,21.113416666666666,0,3.439583333333333,9.751666666666667,1,96.5604166666667,9.751666666666667,0,3.439583333333333,11.014083333333332,1,96.5604166666667,11.014083333333332,0,3.439583333333333,12.276499999999997,1,96.5604166666667,12.276499999999997,0,3.439583333333333,13.538916666666667,1,96.5604166666667,13.538916666666667,0,3.439583333333333,14.801333333333332,1,96.5604166666667,14.801333333333332,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,0,3.439583333333333,4.701999999999999,1,96.5604166666667,4.701999999999999,0,3.439583333333333,5.964416666666666,1,96.5604166666667,5.964416666666666,0,3.439583333333333,7.226833333333332,1,96.5604166666667,7.226833333333332,0,3.439583333333333,8.489249999999998,1,96.5604166666667,8.489249999999998,15,0,12.751666666666669,66.56041666666668,1,12.751666666666669,38.50671296296297,1,25.167777777777783,38.50671296296297,1,25.167777777777783,66.56041666666668,1,12.751666666666669,66.56041666666668,15,0,43.79194444444445,66.56041666666668,1,43.79194444444445,36.26241666666667,1,56.20805555555556,36.26241666666667,1,56.20805555555556,66.56041666666668,1,43.79194444444445,66.56041666666668,15,0,74.83222222222224,66.56041666666668,1,74.83222222222224,3.439583333333333,1,87.24833333333335,3.439583333333333,1,87.24833333333335,66.56041666666668,1,74.83222222222224,66.56041666666668,15,0,12.751666666666669,38.50671296296297,1,12.751666666666669,3.439583333333333,1,25.167777777777783,3.439583333333333,1,25.167777777777783,38.50671296296297,1,12.751666666666669,38.50671296296297,15,0,43.79194444444445,36.26241666666667,1,43.79194444444445,3.439583333333333,1,56.20805555555556,3.439583333333333,1,56.20805555555556,36.26241666666667,1,43.79194444444445,36.26241666666667,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", - "barStacked3D": "15,0,13.828511365401235,58.533493220018336,1,94.95101892367906,58.533493220018336,1,94.95101892367906,3.9988432008701813,1,13.828511365401235,3.9988432008701813,0,13.828511365401235,58.533493220018336,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,54,0,4.8144909438577885,65.76666666666667,1,14.0630014978644,58.7679833524815,1,95.18550905614221,58.7679833524815,0,4.8144909438577885,54.85973666283704,1,14.0630014978644,47.86105334865187,1,95.18550905614221,47.86105334865187,0,4.8144909438577885,43.95280665900739,1,14.0630014978644,36.954123344822236,1,95.18550905614221,36.954123344822236,0,4.8144909438577885,33.045876655177764,1,14.0630014978644,26.047193340992607,1,95.18550905614221,26.047193340992607,0,4.8144909438577885,22.138946651348128,1,14.0630014978644,15.140263337162965,1,95.18550905614221,15.140263337162965,0,4.8144909438577885,11.232016647518504,1,14.0630014978644,4.233333333333337,1,95.18550905614221,4.233333333333337,234,0,4.8144909438577885,65.76666666666667,1,14.0630014978644,58.7679833524815,1,95.18550905614221,58.7679833524815,0,4.8144909438577885,54.85973666283704,1,14.0630014978644,47.86105334865187,1,95.18550905614221,47.86105334865187,0,4.8144909438577885,57.04112266360296,1,14.0630014978644,50.042439349417805,1,95.18550905614221,50.042439349417805,0,4.8144909438577885,59.22250866436889,1,14.0630014978644,52.223825350183716,1,95.18550905614221,52.223825350183716,0,4.8144909438577885,61.403894665134814,1,14.0630014978644,54.40521135094965,1,95.18550905614221,54.40521135094965,0,4.8144909438577885,63.58528066590074,1,14.0630014978644,56.586597351715575,1,95.18550905614221,56.586597351715575,0,4.8144909438577885,43.95280665900739,1,14.0630014978644,36.954123344822236,1,95.18550905614221,36.954123344822236,0,4.8144909438577885,46.134192659773326,1,14.0630014978644,39.13550934558817,1,95.18550905614221,39.13550934558817,0,4.8144909438577885,48.31557866053926,1,14.0630014978644,41.3168953463541,1,95.18550905614221,41.3168953463541,0,4.8144909438577885,50.49696466130517,1,14.0630014978644,43.49828134712001,1,95.18550905614221,43.49828134712001,0,4.8144909438577885,52.67835066207111,1,14.0630014978644,45.67966734788595,1,95.18550905614221,45.67966734788595,0,4.8144909438577885,33.045876655177764,1,14.0630014978644,26.047193340992607,1,95.18550905614221,26.047193340992607,0,4.8144909438577885,35.22726265594368,1,14.0630014978644,28.22857934175853,1,95.18550905614221,28.22857934175853,0,4.8144909438577885,37.40864865670962,1,14.0630014978644,30.409965342524455,1,95.18550905614221,30.409965342524455,0,4.8144909438577885,39.59003465747554,1,14.0630014978644,32.591351343290384,1,95.18550905614221,32.591351343290384,0,4.8144909438577885,41.77142065824147,1,14.0630014978644,34.77273734405631,1,95.18550905614221,34.77273734405631,0,4.8144909438577885,22.138946651348128,1,14.0630014978644,15.140263337162965,1,95.18550905614221,15.140263337162965,0,4.8144909438577885,24.320332652114057,1,14.0630014978644,17.3216493379289,1,95.18550905614221,17.3216493379289,0,4.8144909438577885,26.50171865287998,1,14.0630014978644,19.503035338694822,1,95.18550905614221,19.503035338694822,0,4.8144909438577885,28.683104653645906,1,14.0630014978644,21.684421339460744,1,95.18550905614221,21.684421339460744,0,4.8144909438577885,30.864490654411835,1,14.0630014978644,23.86580734022667,1,95.18550905614221,23.86580734022667,0,4.8144909438577885,11.232016647518504,1,14.0630014978644,4.233333333333337,1,95.18550905614221,4.233333333333337,0,4.8144909438577885,13.413402648284427,1,14.0630014978644,6.414719334099262,1,95.18550905614221,6.414719334099262,0,4.8144909438577885,15.59478864905035,1,14.0630014978644,8.596105334865193,1,95.18550905614221,8.596105334865193,0,4.8144909438577885,17.77617464981628,1,14.0630014978644,10.777491335631117,1,95.18550905614221,10.777491335631117,0,4.8144909438577885,19.95756065058221,1,14.0630014978644,12.958877336397043,1,95.18550905614221,12.958877336397043,15,0,4.8144909438577885,65.76666666666667,1,14.0630014978644,58.7679833524815,1,95.18550905614221,58.7679833524815,1,85.9369985021356,65.76666666666667,1,4.8144909438577885,65.76666666666667,15,0,4.8144909438577885,65.76666666666667,1,4.8144909438577885,11.232016647518504,1,14.0630014978644,4.233333333333337,1,14.0630014978644,58.7679833524815,1,4.8144909438577885,65.76666666666667,15,0,14.0630014978644,58.7679833524815,1,14.0630014978644,4.233333333333337,1,95.18550905614221,4.233333333333337,1,95.18550905614221,58.7679833524815,1,14.0630014978644,58.7679833524815,15,0,15.701294865887546,63.667061672411116,1,15.701294865887546,41.85320166475186,1,26.51762920699126,41.85320166475186,1,26.51762920699126,63.667061672411116,1,15.701294865887546,63.667061672411116,15,0,15.701294865887546,63.667061672411116,1,19.400699087490192,60.86758834673705,1,30.2170334285939,60.86758834673705,1,26.51762920699126,63.667061672411116,1,15.701294865887546,63.667061672411116,15,0,15.701294865887546,63.667061672411116,1,15.701294865887546,41.85320166475186,1,19.400699087490192,39.05372833907779,1,19.400699087490192,60.86758834673705,1,15.701294865887546,63.667061672411116,15,0,26.51762920699126,63.667061672411116,1,26.51762920699126,41.85320166475186,1,30.2170334285939,39.05372833907779,1,30.2170334285939,60.86758834673705,1,26.51762920699126,63.667061672411116,15,0,15.701294865887546,41.85320166475186,1,19.400699087490192,39.05372833907779,1,30.2170334285939,39.05372833907779,1,26.51762920699126,41.85320166475186,1,15.701294865887546,41.85320166475186,15,0,19.400699087490192,60.86758834673705,1,19.400699087490192,39.05372833907779,1,30.2170334285939,39.05372833907779,1,30.2170334285939,60.86758834673705,1,19.400699087490192,60.86758834673705,15,0,15.701294865887546,63.667061672411116,1,15.701294865887546,41.85320166475186,1,26.51762920699126,41.85320166475186,1,26.51762920699126,63.667061672411116,1,15.701294865887546,63.667061672411116,15,0,15.701294865887546,63.667061672411116,1,19.400699087490192,60.86758834673705,1,30.2170334285939,60.86758834673705,1,26.51762920699126,63.667061672411116,1,15.701294865887546,63.667061672411116,15,0,15.701294865887546,63.667061672411116,1,15.701294865887546,41.85320166475186,1,19.400699087490192,39.05372833907779,1,19.400699087490192,60.86758834673705,1,15.701294865887546,63.667061672411116,15,0,26.51762920699126,63.667061672411116,1,26.51762920699126,41.85320166475186,1,30.2170334285939,39.05372833907779,1,30.2170334285939,60.86758834673705,1,26.51762920699126,63.667061672411116,15,0,15.701294865887546,41.85320166475186,1,19.400699087490192,39.05372833907779,1,30.2170334285939,39.05372833907779,1,26.51762920699126,41.85320166475186,1,15.701294865887546,41.85320166475186,15,0,19.400699087490192,60.86758834673705,1,19.400699087490192,39.05372833907779,1,30.2170334285939,39.05372833907779,1,30.2170334285939,60.86758834673705,1,19.400699087490192,60.86758834673705,15,0,42.74213071864682,63.667061672411116,1,42.74213071864682,37.49042966322,1,53.558465059750525,37.49042966322,1,53.558465059750525,63.667061672411116,1,42.74213071864682,63.667061672411116,15,0,42.74213071864682,63.667061672411116,1,46.441534940249454,60.86758834673705,1,57.257869281353166,60.86758834673705,1,53.558465059750525,63.667061672411116,1,42.74213071864682,63.667061672411116,15,0,42.74213071864682,63.667061672411116,1,42.74213071864682,37.49042966322,1,46.441534940249454,34.690956337545934,1,46.441534940249454,60.86758834673705,1,42.74213071864682,63.667061672411116,15,0,53.558465059750525,63.667061672411116,1,53.558465059750525,37.49042966322,1,57.257869281353166,34.690956337545934,1,57.257869281353166,60.86758834673705,1,53.558465059750525,63.667061672411116,15,0,42.74213071864682,37.49042966322,1,46.441534940249454,34.690956337545934,1,57.257869281353166,34.690956337545934,1,53.558465059750525,37.49042966322,1,42.74213071864682,37.49042966322,15,0,46.441534940249454,60.86758834673705,1,46.441534940249454,34.690956337545934,1,57.257869281353166,34.690956337545934,1,57.257869281353166,60.86758834673705,1,46.441534940249454,60.86758834673705,15,0,42.74213071864682,63.667061672411116,1,42.74213071864682,37.49042966322,1,53.558465059750525,37.49042966322,1,53.558465059750525,63.667061672411116,1,42.74213071864682,63.667061672411116,15,0,42.74213071864682,63.667061672411116,1,46.441534940249454,60.86758834673705,1,57.257869281353166,60.86758834673705,1,53.558465059750525,63.667061672411116,1,42.74213071864682,63.667061672411116,15,0,42.74213071864682,63.667061672411116,1,42.74213071864682,37.49042966322,1,46.441534940249454,34.690956337545934,1,46.441534940249454,60.86758834673705,1,42.74213071864682,63.667061672411116,15,0,53.558465059750525,63.667061672411116,1,53.558465059750525,37.49042966322,1,57.257869281353166,34.690956337545934,1,57.257869281353166,60.86758834673705,1,53.558465059750525,63.667061672411116,15,0,42.74213071864682,37.49042966322,1,46.441534940249454,34.690956337545934,1,57.257869281353166,34.690956337545934,1,53.558465059750525,37.49042966322,1,42.74213071864682,37.49042966322,15,0,46.441534940249454,60.86758834673705,1,46.441534940249454,34.690956337545934,1,57.257869281353166,34.690956337545934,1,57.257869281353166,60.86758834673705,1,46.441534940249454,60.86758834673705,15,0,69.7829665714061,63.667061672411116,1,69.7829665714061,33.12765766168814,1,80.59930091250982,33.12765766168814,1,80.59930091250982,63.667061672411116,1,69.7829665714061,63.667061672411116,15,0,69.7829665714061,63.667061672411116,1,73.48237079300874,60.86758834673705,1,84.29870513411248,60.86758834673705,1,80.59930091250982,63.667061672411116,1,69.7829665714061,63.667061672411116,15,0,69.7829665714061,63.667061672411116,1,69.7829665714061,33.12765766168814,1,73.48237079300874,30.328184336014075,1,73.48237079300874,60.86758834673705,1,69.7829665714061,63.667061672411116,15,0,80.59930091250982,63.667061672411116,1,80.59930091250982,33.12765766168814,1,84.29870513411248,30.328184336014075,1,84.29870513411248,60.86758834673705,1,80.59930091250982,63.667061672411116,15,0,69.7829665714061,33.12765766168814,1,73.48237079300874,30.328184336014075,1,84.29870513411248,30.328184336014075,1,80.59930091250982,33.12765766168814,1,69.7829665714061,33.12765766168814,15,0,73.48237079300874,60.86758834673705,1,73.48237079300874,30.328184336014075,1,84.29870513411248,30.328184336014075,1,84.29870513411248,60.86758834673705,1,73.48237079300874,60.86758834673705,15,0,69.7829665714061,63.667061672411116,1,69.7829665714061,33.12765766168814,1,80.59930091250982,33.12765766168814,1,80.59930091250982,63.667061672411116,1,69.7829665714061,63.667061672411116,15,0,69.7829665714061,63.667061672411116,1,73.48237079300874,60.86758834673705,1,84.29870513411248,60.86758834673705,1,80.59930091250982,63.667061672411116,1,69.7829665714061,63.667061672411116,15,0,69.7829665714061,63.667061672411116,1,69.7829665714061,33.12765766168814,1,73.48237079300874,30.328184336014075,1,73.48237079300874,60.86758834673705,1,69.7829665714061,63.667061672411116,15,0,80.59930091250982,63.667061672411116,1,80.59930091250982,33.12765766168814,1,84.29870513411248,30.328184336014075,1,84.29870513411248,60.86758834673705,1,80.59930091250982,63.667061672411116,15,0,69.7829665714061,33.12765766168814,1,73.48237079300874,30.328184336014075,1,84.29870513411248,30.328184336014075,1,80.59930091250982,33.12765766168814,1,69.7829665714061,33.12765766168814,15,0,73.48237079300874,60.86758834673705,1,73.48237079300874,30.328184336014075,1,84.29870513411248,30.328184336014075,1,84.29870513411248,60.86758834673705,1,73.48237079300874,60.86758834673705,15,0,15.701294865887546,41.85320166475186,1,15.701294865887546,14.585876655177765,1,26.51762920699126,14.585876655177765,1,26.51762920699126,41.85320166475186,1,15.701294865887546,41.85320166475186,15,0,15.701294865887546,41.85320166475186,1,19.400699087490192,39.05372833907779,1,30.2170334285939,39.05372833907779,1,26.51762920699126,41.85320166475186,1,15.701294865887546,41.85320166475186,15,0,15.701294865887546,41.85320166475186,1,15.701294865887546,14.585876655177765,1,19.400699087490192,11.7864033295037,1,19.400699087490192,39.05372833907779,1,15.701294865887546,41.85320166475186,15,0,26.51762920699126,41.85320166475186,1,26.51762920699126,14.585876655177765,1,30.2170334285939,11.7864033295037,1,30.2170334285939,39.05372833907779,1,26.51762920699126,41.85320166475186,15,0,15.701294865887546,14.585876655177765,1,19.400699087490192,11.7864033295037,1,30.2170334285939,11.7864033295037,1,26.51762920699126,14.585876655177765,1,15.701294865887546,14.585876655177765,15,0,19.400699087490192,39.05372833907779,1,19.400699087490192,11.7864033295037,1,30.2170334285939,11.7864033295037,1,30.2170334285939,39.05372833907779,1,19.400699087490192,39.05372833907779,15,0,15.701294865887546,41.85320166475186,1,15.701294865887546,14.585876655177765,1,26.51762920699126,14.585876655177765,1,26.51762920699126,41.85320166475186,1,15.701294865887546,41.85320166475186,15,0,15.701294865887546,41.85320166475186,1,19.400699087490192,39.05372833907779,1,30.2170334285939,39.05372833907779,1,26.51762920699126,41.85320166475186,1,15.701294865887546,41.85320166475186,15,0,15.701294865887546,41.85320166475186,1,15.701294865887546,14.585876655177765,1,19.400699087490192,11.7864033295037,1,19.400699087490192,39.05372833907779,1,15.701294865887546,41.85320166475186,15,0,26.51762920699126,41.85320166475186,1,26.51762920699126,14.585876655177765,1,30.2170334285939,11.7864033295037,1,30.2170334285939,39.05372833907779,1,26.51762920699126,41.85320166475186,15,0,15.701294865887546,14.585876655177765,1,19.400699087490192,11.7864033295037,1,30.2170334285939,11.7864033295037,1,26.51762920699126,14.585876655177765,1,15.701294865887546,14.585876655177765,15,0,19.400699087490192,39.05372833907779,1,19.400699087490192,11.7864033295037,1,30.2170334285939,11.7864033295037,1,30.2170334285939,39.05372833907779,1,19.400699087490192,39.05372833907779,15,0,42.74213071864682,37.49042966322,1,42.74213071864682,9.132411653262949,1,53.558465059750525,9.132411653262949,1,53.558465059750525,37.49042966322,1,42.74213071864682,37.49042966322,15,0,42.74213071864682,37.49042966322,1,46.441534940249454,34.690956337545934,1,57.257869281353166,34.690956337545934,1,53.558465059750525,37.49042966322,1,42.74213071864682,37.49042966322,15,0,42.74213071864682,37.49042966322,1,42.74213071864682,9.132411653262949,1,46.441534940249454,6.3329383275888835,1,46.441534940249454,34.690956337545934,1,42.74213071864682,37.49042966322,15,0,53.558465059750525,37.49042966322,1,53.558465059750525,9.132411653262949,1,57.257869281353166,6.3329383275888835,1,57.257869281353166,34.690956337545934,1,53.558465059750525,37.49042966322,15,0,42.74213071864682,9.132411653262949,1,46.441534940249454,6.3329383275888835,1,57.257869281353166,6.3329383275888835,1,53.558465059750525,9.132411653262949,1,42.74213071864682,9.132411653262949,15,0,46.441534940249454,34.690956337545934,1,46.441534940249454,6.3329383275888835,1,57.257869281353166,6.3329383275888835,1,57.257869281353166,34.690956337545934,1,46.441534940249454,34.690956337545934,15,0,42.74213071864682,37.49042966322,1,42.74213071864682,9.132411653262949,1,53.558465059750525,9.132411653262949,1,53.558465059750525,37.49042966322,1,42.74213071864682,37.49042966322,15,0,42.74213071864682,37.49042966322,1,46.441534940249454,34.690956337545934,1,57.257869281353166,34.690956337545934,1,53.558465059750525,37.49042966322,1,42.74213071864682,37.49042966322,15,0,42.74213071864682,37.49042966322,1,42.74213071864682,9.132411653262949,1,46.441534940249454,6.3329383275888835,1,46.441534940249454,34.690956337545934,1,42.74213071864682,37.49042966322,15,0,53.558465059750525,37.49042966322,1,53.558465059750525,9.132411653262949,1,57.257869281353166,6.3329383275888835,1,57.257869281353166,34.690956337545934,1,53.558465059750525,37.49042966322,15,0,42.74213071864682,9.132411653262949,1,46.441534940249454,6.3329383275888835,1,57.257869281353166,6.3329383275888835,1,53.558465059750525,9.132411653262949,1,42.74213071864682,9.132411653262949,15,0,46.441534940249454,34.690956337545934,1,46.441534940249454,6.3329383275888835,1,57.257869281353166,6.3329383275888835,1,57.257869281353166,34.690956337545934,1,46.441534940249454,34.690956337545934,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", + "bar": "15,0,3.1750000000000003,66.29583333333333,1,96.29583333333335,66.29583333333333,1,96.29583333333335,3.1749999999999985,1,3.1750000000000003,3.1749999999999985,1,3.1750000000000003,66.29583333333333,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,42,0,3.439583333333333,66.56041666666668,1,96.5604166666667,66.56041666666668,0,3.439583333333333,56.04027777777778,1,96.5604166666667,56.04027777777778,0,3.439583333333333,45.520138888888894,1,96.5604166666667,45.520138888888894,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,24.479861111111116,1,96.5604166666667,24.479861111111116,0,3.439583333333333,13.959722222222226,1,96.5604166666667,13.959722222222226,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,180,0,3.439583333333333,56.04027777777778,1,96.5604166666667,56.04027777777778,0,3.439583333333333,58.14430555555557,1,96.5604166666667,58.14430555555557,0,3.439583333333333,60.24833333333335,1,96.5604166666667,60.24833333333335,0,3.439583333333333,62.352361111111115,1,96.5604166666667,62.352361111111115,0,3.439583333333333,64.4563888888889,1,96.5604166666667,64.4563888888889,0,3.439583333333333,45.520138888888894,1,96.5604166666667,45.520138888888894,0,3.439583333333333,47.624166666666675,1,96.5604166666667,47.624166666666675,0,3.439583333333333,49.72819444444446,1,96.5604166666667,49.72819444444446,0,3.439583333333333,51.83222222222223,1,96.5604166666667,51.83222222222223,0,3.439583333333333,53.93625,1,96.5604166666667,53.93625,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,37.10402777777778,1,96.5604166666667,37.10402777777778,0,3.439583333333333,39.20805555555556,1,96.5604166666667,39.20805555555556,0,3.439583333333333,41.312083333333334,1,96.5604166666667,41.312083333333334,0,3.439583333333333,43.41611111111111,1,96.5604166666667,43.41611111111111,0,3.439583333333333,24.479861111111116,1,96.5604166666667,24.479861111111116,0,3.439583333333333,26.583888888888893,1,96.5604166666667,26.583888888888893,0,3.439583333333333,28.68791666666667,1,96.5604166666667,28.68791666666667,0,3.439583333333333,30.79194444444445,1,96.5604166666667,30.79194444444445,0,3.439583333333333,32.89597222222223,1,96.5604166666667,32.89597222222223,0,3.439583333333333,13.959722222222226,1,96.5604166666667,13.959722222222226,0,3.439583333333333,16.063750000000002,1,96.5604166666667,16.063750000000002,0,3.439583333333333,18.16777777777778,1,96.5604166666667,18.16777777777778,0,3.439583333333333,20.271805555555563,1,96.5604166666667,20.271805555555563,0,3.439583333333333,22.375833333333336,1,96.5604166666667,22.375833333333336,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,0,3.439583333333333,5.543611111111109,1,96.5604166666667,5.543611111111109,0,3.439583333333333,7.647638888888886,1,96.5604166666667,7.647638888888886,0,3.439583333333333,9.751666666666665,1,96.5604166666667,9.751666666666665,0,3.439583333333333,11.855694444444444,1,96.5604166666667,11.855694444444444,15,0,10.091071428571432,66.56041666666668,1,10.091071428571432,24.479861111111116,1,18.95972222222223,24.479861111111116,1,18.95972222222223,66.56041666666668,1,10.091071428571432,66.56041666666668,15,0,41.131349206349206,66.56041666666668,1,41.131349206349206,16.06375,1,50,16.06375,1,50,66.56041666666668,1,41.131349206349206,66.56041666666668,15,0,72.171626984127,66.56041666666668,1,72.171626984127,7.647638888888893,1,81.0402777777778,7.647638888888893,1,81.0402777777778,66.56041666666668,1,72.171626984127,66.56041666666668,15,0,18.95972222222223,66.56041666666668,1,18.95972222222223,13.959722222222226,1,27.82837301587303,13.959722222222226,1,27.82837301587303,66.56041666666668,1,18.95972222222223,66.56041666666668,15,0,50,66.56041666666668,1,50,11.85569444444444,1,58.86865079365081,11.85569444444444,1,58.86865079365081,66.56041666666668,1,50,66.56041666666668,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", + "barStacked": "15,0,3.1750000000000003,66.29583333333333,1,96.29583333333335,66.29583333333333,1,96.29583333333335,3.1749999999999985,1,3.1750000000000003,3.1749999999999985,1,3.1750000000000003,66.29583333333333,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,42,0,3.439583333333333,66.56041666666668,1,96.5604166666667,66.56041666666668,0,3.439583333333333,56.04027777777778,1,96.5604166666667,56.04027777777778,0,3.439583333333333,45.520138888888894,1,96.5604166666667,45.520138888888894,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,24.479861111111116,1,96.5604166666667,24.479861111111116,0,3.439583333333333,13.959722222222226,1,96.5604166666667,13.959722222222226,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,180,0,3.439583333333333,56.04027777777778,1,96.5604166666667,56.04027777777778,0,3.439583333333333,58.14430555555557,1,96.5604166666667,58.14430555555557,0,3.439583333333333,60.24833333333335,1,96.5604166666667,60.24833333333335,0,3.439583333333333,62.352361111111115,1,96.5604166666667,62.352361111111115,0,3.439583333333333,64.4563888888889,1,96.5604166666667,64.4563888888889,0,3.439583333333333,45.520138888888894,1,96.5604166666667,45.520138888888894,0,3.439583333333333,47.624166666666675,1,96.5604166666667,47.624166666666675,0,3.439583333333333,49.72819444444446,1,96.5604166666667,49.72819444444446,0,3.439583333333333,51.83222222222223,1,96.5604166666667,51.83222222222223,0,3.439583333333333,53.93625,1,96.5604166666667,53.93625,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,37.10402777777778,1,96.5604166666667,37.10402777777778,0,3.439583333333333,39.20805555555556,1,96.5604166666667,39.20805555555556,0,3.439583333333333,41.312083333333334,1,96.5604166666667,41.312083333333334,0,3.439583333333333,43.41611111111111,1,96.5604166666667,43.41611111111111,0,3.439583333333333,24.479861111111116,1,96.5604166666667,24.479861111111116,0,3.439583333333333,26.583888888888893,1,96.5604166666667,26.583888888888893,0,3.439583333333333,28.68791666666667,1,96.5604166666667,28.68791666666667,0,3.439583333333333,30.79194444444445,1,96.5604166666667,30.79194444444445,0,3.439583333333333,32.89597222222223,1,96.5604166666667,32.89597222222223,0,3.439583333333333,13.959722222222226,1,96.5604166666667,13.959722222222226,0,3.439583333333333,16.063750000000002,1,96.5604166666667,16.063750000000002,0,3.439583333333333,18.16777777777778,1,96.5604166666667,18.16777777777778,0,3.439583333333333,20.271805555555563,1,96.5604166666667,20.271805555555563,0,3.439583333333333,22.375833333333336,1,96.5604166666667,22.375833333333336,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,0,3.439583333333333,5.543611111111109,1,96.5604166666667,5.543611111111109,0,3.439583333333333,7.647638888888886,1,96.5604166666667,7.647638888888886,0,3.439583333333333,9.751666666666665,1,96.5604166666667,9.751666666666665,0,3.439583333333333,11.855694444444444,1,96.5604166666667,11.855694444444444,15,0,12.751666666666669,66.56041666666668,1,12.751666666666669,45.520138888888894,1,25.167777777777783,45.520138888888894,1,25.167777777777783,66.56041666666668,1,12.751666666666669,66.56041666666668,15,0,43.79194444444445,66.56041666666668,1,43.79194444444445,41.31208333333334,1,56.20805555555556,41.31208333333334,1,56.20805555555556,66.56041666666668,1,43.79194444444445,66.56041666666668,15,0,74.83222222222224,66.56041666666668,1,74.83222222222224,37.10402777777777,1,87.24833333333336,37.10402777777777,1,87.24833333333336,66.56041666666668,1,74.83222222222224,66.56041666666668,15,0,12.751666666666669,45.520138888888894,1,12.751666666666669,19.21979166666667,1,25.167777777777783,19.21979166666667,1,25.167777777777783,45.520138888888894,1,12.751666666666669,45.520138888888894,15,0,43.79194444444445,41.31208333333334,1,43.79194444444445,13.959722222222222,1,56.20805555555556,13.959722222222222,1,56.20805555555556,41.31208333333334,1,43.79194444444445,41.31208333333334,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", + "barStackedPercent": "15,0,3.1750000000000003,66.29583333333333,1,96.29583333333335,66.29583333333333,1,96.29583333333335,3.1749999999999985,1,3.1750000000000003,3.1749999999999985,1,3.1750000000000003,66.29583333333333,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,66,0,3.439583333333333,66.56041666666668,1,96.5604166666667,66.56041666666668,0,3.439583333333333,60.24833333333334,1,96.5604166666667,60.24833333333334,0,3.439583333333333,53.93625,1,96.5604166666667,53.93625,0,3.439583333333333,47.62416666666667,1,96.5604166666667,47.62416666666667,0,3.439583333333333,41.31208333333334,1,96.5604166666667,41.31208333333334,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,28.68791666666667,1,96.5604166666667,28.68791666666667,0,3.439583333333333,22.375833333333333,1,96.5604166666667,22.375833333333333,0,3.439583333333333,16.06375,1,96.5604166666667,16.06375,0,3.439583333333333,9.751666666666667,1,96.5604166666667,9.751666666666667,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,300,0,3.439583333333333,60.24833333333334,1,96.5604166666667,60.24833333333334,0,3.439583333333333,61.51075,1,96.5604166666667,61.51075,0,3.439583333333333,62.77316666666667,1,96.5604166666667,62.77316666666667,0,3.439583333333333,64.03558333333334,1,96.5604166666667,64.03558333333334,0,3.439583333333333,65.298,1,96.5604166666667,65.298,0,3.439583333333333,53.93625,1,96.5604166666667,53.93625,0,3.439583333333333,55.198666666666675,1,96.5604166666667,55.198666666666675,0,3.439583333333333,56.46108333333334,1,96.5604166666667,56.46108333333334,0,3.439583333333333,57.7235,1,96.5604166666667,57.7235,0,3.439583333333333,58.985916666666675,1,96.5604166666667,58.985916666666675,0,3.439583333333333,47.62416666666667,1,96.5604166666667,47.62416666666667,0,3.439583333333333,48.88658333333334,1,96.5604166666667,48.88658333333334,0,3.439583333333333,50.148999999999994,1,96.5604166666667,50.148999999999994,0,3.439583333333333,51.41141666666667,1,96.5604166666667,51.41141666666667,0,3.439583333333333,52.67383333333334,1,96.5604166666667,52.67383333333334,0,3.439583333333333,41.31208333333334,1,96.5604166666667,41.31208333333334,0,3.439583333333333,42.57450000000001,1,96.5604166666667,42.57450000000001,0,3.439583333333333,43.83691666666667,1,96.5604166666667,43.83691666666667,0,3.439583333333333,45.09933333333334,1,96.5604166666667,45.09933333333334,0,3.439583333333333,46.36175000000001,1,96.5604166666667,46.36175000000001,0,3.439583333333333,35,1,96.5604166666667,35,0,3.439583333333333,36.26241666666667,1,96.5604166666667,36.26241666666667,0,3.439583333333333,37.52483333333333,1,96.5604166666667,37.52483333333333,0,3.439583333333333,38.78725,1,96.5604166666667,38.78725,0,3.439583333333333,40.04966666666667,1,96.5604166666667,40.04966666666667,0,3.439583333333333,28.68791666666667,1,96.5604166666667,28.68791666666667,0,3.439583333333333,29.95033333333333,1,96.5604166666667,29.95033333333333,0,3.439583333333333,31.212750000000003,1,96.5604166666667,31.212750000000003,0,3.439583333333333,32.47516666666667,1,96.5604166666667,32.47516666666667,0,3.439583333333333,33.737583333333326,1,96.5604166666667,33.737583333333326,0,3.439583333333333,22.375833333333333,1,96.5604166666667,22.375833333333333,0,3.439583333333333,23.63825,1,96.5604166666667,23.63825,0,3.439583333333333,24.90066666666667,1,96.5604166666667,24.90066666666667,0,3.439583333333333,26.16308333333333,1,96.5604166666667,26.16308333333333,0,3.439583333333333,27.425500000000003,1,96.5604166666667,27.425500000000003,0,3.439583333333333,16.06375,1,96.5604166666667,16.06375,0,3.439583333333333,17.326166666666666,1,96.5604166666667,17.326166666666666,0,3.439583333333333,18.588583333333332,1,96.5604166666667,18.588583333333332,0,3.439583333333333,19.851000000000003,1,96.5604166666667,19.851000000000003,0,3.439583333333333,21.113416666666666,1,96.5604166666667,21.113416666666666,0,3.439583333333333,9.751666666666667,1,96.5604166666667,9.751666666666667,0,3.439583333333333,11.014083333333332,1,96.5604166666667,11.014083333333332,0,3.439583333333333,12.276499999999997,1,96.5604166666667,12.276499999999997,0,3.439583333333333,13.538916666666667,1,96.5604166666667,13.538916666666667,0,3.439583333333333,14.801333333333332,1,96.5604166666667,14.801333333333332,0,3.439583333333333,3.439583333333332,1,96.5604166666667,3.439583333333332,0,3.439583333333333,4.701999999999999,1,96.5604166666667,4.701999999999999,0,3.439583333333333,5.964416666666666,1,96.5604166666667,5.964416666666666,0,3.439583333333333,7.226833333333332,1,96.5604166666667,7.226833333333332,0,3.439583333333333,8.489249999999998,1,96.5604166666667,8.489249999999998,15,0,12.751666666666669,66.56041666666668,1,12.751666666666669,38.506712962962965,1,25.167777777777783,38.506712962962965,1,25.167777777777783,66.56041666666668,1,12.751666666666669,66.56041666666668,15,0,43.79194444444445,66.56041666666668,1,43.79194444444445,36.26241666666667,1,56.20805555555556,36.26241666666667,1,56.20805555555556,66.56041666666668,1,43.79194444444445,66.56041666666668,15,0,74.83222222222224,66.56041666666668,1,74.83222222222224,3.439583333333332,1,87.24833333333336,3.439583333333332,1,87.24833333333336,66.56041666666668,1,74.83222222222224,66.56041666666668,15,0,12.751666666666669,38.50671296296297,1,12.751666666666669,3.439583333333339,1,25.167777777777783,3.439583333333339,1,25.167777777777783,38.50671296296297,1,12.751666666666669,38.50671296296297,15,0,43.79194444444445,36.26241666666667,1,43.79194444444445,3.439583333333332,1,56.20805555555556,3.439583333333332,1,56.20805555555556,36.26241666666667,1,43.79194444444445,36.26241666666667,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", "barStackedPercent3D": "15,0,13.828511365401235,58.533493220018336,1,94.95101892367906,58.533493220018336,1,94.95101892367906,3.9988432008701813,1,13.828511365401235,3.9988432008701813,0,13.828511365401235,58.533493220018336,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,99,0,4.8144909438577885,65.76666666666667,1,14.0630014978644,58.7679833524815,1,95.18550905614221,58.7679833524815,0,4.8144909438577885,60.31320166475185,1,14.0630014978644,53.31451835056669,1,95.18550905614221,53.31451835056669,0,4.8144909438577885,54.85973666283704,1,14.0630014978644,47.86105334865187,1,95.18550905614221,47.86105334865187,0,4.8144909438577885,49.406271660922215,1,14.0630014978644,42.40758834673706,1,95.18550905614221,42.40758834673706,0,4.8144909438577885,43.95280665900739,1,14.0630014978644,36.954123344822236,1,95.18550905614221,36.954123344822236,0,4.8144909438577885,38.49934165709258,1,14.0630014978644,31.500658342907425,1,95.18550905614221,31.500658342907425,0,4.8144909438577885,33.045876655177764,1,14.0630014978644,26.047193340992607,1,95.18550905614221,26.047193340992607,0,4.8144909438577885,27.59241165326295,1,14.0630014978644,20.59372833907779,1,95.18550905614221,20.59372833907779,0,4.8144909438577885,22.138946651348128,1,14.0630014978644,15.140263337162965,1,95.18550905614221,15.140263337162965,0,4.8144909438577885,16.68548164943331,1,14.0630014978644,9.68679833524815,1,95.18550905614221,9.68679833524815,0,4.8144909438577885,11.232016647518504,1,14.0630014978644,4.233333333333337,1,95.18550905614221,4.233333333333337,459,0,4.8144909438577885,65.76666666666667,1,14.0630014978644,58.7679833524815,1,95.18550905614221,58.7679833524815,0,4.8144909438577885,60.31320166475185,1,14.0630014978644,53.31451835056669,1,95.18550905614221,53.31451835056669,0,4.8144909438577885,61.403894665134814,1,14.0630014978644,54.40521135094965,1,95.18550905614221,54.40521135094965,0,4.8144909438577885,62.49458766551778,1,14.0630014978644,55.49590435133262,1,95.18550905614221,55.49590435133262,0,4.8144909438577885,63.58528066590074,1,14.0630014978644,56.586597351715575,1,95.18550905614221,56.586597351715575,0,4.8144909438577885,64.67597366628371,1,14.0630014978644,57.677290352098545,1,95.18550905614221,57.677290352098545,0,4.8144909438577885,54.85973666283704,1,14.0630014978644,47.86105334865187,1,95.18550905614221,47.86105334865187,0,4.8144909438577885,55.95042966322,1,14.0630014978644,48.95174634903484,1,95.18550905614221,48.95174634903484,0,4.8144909438577885,57.04112266360296,1,14.0630014978644,50.042439349417805,1,95.18550905614221,50.042439349417805,0,4.8144909438577885,58.131815663985925,1,14.0630014978644,51.13313234980076,1,95.18550905614221,51.13313234980076,0,4.8144909438577885,59.22250866436889,1,14.0630014978644,52.22382535018372,1,95.18550905614221,52.22382535018372,0,4.8144909438577885,49.406271660922215,1,14.0630014978644,42.40758834673706,1,95.18550905614221,42.40758834673706,0,4.8144909438577885,50.49696466130517,1,14.0630014978644,43.49828134712001,1,95.18550905614221,43.49828134712001,0,4.8144909438577885,51.587657661688134,1,14.0630014978644,44.588974347502976,1,95.18550905614221,44.588974347502976,0,4.8144909438577885,52.67835066207111,1,14.0630014978644,45.679667347885946,1,95.18550905614221,45.679667347885946,0,4.8144909438577885,53.76904366245407,1,14.0630014978644,46.77036034826891,1,95.18550905614221,46.77036034826891,0,4.8144909438577885,43.95280665900739,1,14.0630014978644,36.954123344822236,1,95.18550905614221,36.954123344822236,0,4.8144909438577885,45.04349965939037,1,14.0630014978644,38.04481634520521,1,95.18550905614221,38.04481634520521,0,4.8144909438577885,46.134192659773326,1,14.0630014978644,39.13550934558817,1,95.18550905614221,39.13550934558817,0,4.8144909438577885,47.22488566015629,1,14.0630014978644,40.22620234597113,1,95.18550905614221,40.22620234597113,0,4.8144909438577885,48.315578660539266,1,14.0630014978644,41.31689534635411,1,95.18550905614221,41.31689534635411,0,4.8144909438577885,38.49934165709258,1,14.0630014978644,31.500658342907425,1,95.18550905614221,31.500658342907425,0,4.8144909438577885,39.59003465747554,1,14.0630014978644,32.591351343290384,1,95.18550905614221,32.591351343290384,0,4.8144909438577885,40.680727657858505,1,14.0630014978644,33.68204434367335,1,95.18550905614221,33.68204434367335,0,4.8144909438577885,41.771420658241475,1,14.0630014978644,34.77273734405632,1,95.18550905614221,34.77273734405632,0,4.8144909438577885,42.86211365862444,1,14.0630014978644,35.86343034443928,1,95.18550905614221,35.86343034443928,0,4.8144909438577885,33.045876655177764,1,14.0630014978644,26.047193340992607,1,95.18550905614221,26.047193340992607,0,4.8144909438577885,34.13656965556073,1,14.0630014978644,27.137886341375562,1,95.18550905614221,27.137886341375562,0,4.8144909438577885,35.22726265594369,1,14.0630014978644,28.22857934175853,1,95.18550905614221,28.22857934175853,0,4.8144909438577885,36.31795565632665,1,14.0630014978644,29.319272342141492,1,95.18550905614221,29.319272342141492,0,4.8144909438577885,37.40864865670962,1,14.0630014978644,30.409965342524455,1,95.18550905614221,30.409965342524455,0,4.8144909438577885,27.59241165326295,1,14.0630014978644,20.59372833907779,1,95.18550905614221,20.59372833907779,0,4.8144909438577885,28.683104653645913,1,14.0630014978644,21.68442133946075,1,95.18550905614221,21.68442133946075,0,4.8144909438577885,29.77379765402888,1,14.0630014978644,22.775114339843718,1,95.18550905614221,22.775114339843718,0,4.8144909438577885,30.864490654411846,1,14.0630014978644,23.865807340226677,1,95.18550905614221,23.865807340226677,0,4.8144909438577885,31.95518365479481,1,14.0630014978644,24.956500340609644,1,95.18550905614221,24.956500340609644,0,4.8144909438577885,22.138946651348128,1,14.0630014978644,15.140263337162965,1,95.18550905614221,15.140263337162965,0,4.8144909438577885,23.22963965173109,1,14.0630014978644,16.23095633754593,1,95.18550905614221,16.23095633754593,0,4.8144909438577885,24.320332652114057,1,14.0630014978644,17.3216493379289,1,95.18550905614221,17.3216493379289,0,4.8144909438577885,25.411025652497027,1,14.0630014978644,18.412342338311863,1,95.18550905614221,18.412342338311863,0,4.8144909438577885,26.50171865287998,1,14.0630014978644,19.503035338694822,1,95.18550905614221,19.503035338694822,0,4.8144909438577885,16.68548164943331,1,14.0630014978644,9.68679833524815,1,95.18550905614221,9.68679833524815,0,4.8144909438577885,17.776174649816273,1,14.0630014978644,10.777491335631117,1,95.18550905614221,10.777491335631117,0,4.8144909438577885,18.86686765019924,1,14.0630014978644,11.868184336014075,1,95.18550905614221,11.868184336014075,0,4.8144909438577885,19.95756065058221,1,14.0630014978644,12.958877336397043,1,95.18550905614221,12.958877336397043,0,4.8144909438577885,21.048253650965165,1,14.0630014978644,14.049570336780008,1,95.18550905614221,14.049570336780008,0,4.8144909438577885,11.232016647518504,1,14.0630014978644,4.233333333333337,1,95.18550905614221,4.233333333333337,0,4.8144909438577885,12.322709647901462,1,14.0630014978644,5.324026333716303,1,95.18550905614221,5.324026333716303,0,4.8144909438577885,13.413402648284427,1,14.0630014978644,6.414719334099262,1,95.18550905614221,6.414719334099262,0,4.8144909438577885,14.504095648667391,1,14.0630014978644,7.5054123344822266,1,95.18550905614221,7.5054123344822266,0,4.8144909438577885,15.59478864905036,1,14.0630014978644,8.596105334865193,1,95.18550905614221,8.596105334865193,15,0,4.8144909438577885,65.76666666666667,1,14.0630014978644,58.7679833524815,1,95.18550905614221,58.7679833524815,1,85.9369985021356,65.76666666666667,1,4.8144909438577885,65.76666666666667,15,0,4.8144909438577885,65.76666666666667,1,4.8144909438577885,11.232016647518504,1,14.0630014978644,4.233333333333337,1,14.0630014978644,58.7679833524815,1,4.8144909438577885,65.76666666666667,15,0,14.0630014978644,58.7679833524815,1,14.0630014978644,4.233333333333337,1,95.18550905614221,4.233333333333337,1,95.18550905614221,58.7679833524815,1,14.0630014978644,58.7679833524815,15,0,15.701294865887546,63.667061672411116,1,15.701294865887546,39.429439441678596,1,26.51762920699126,39.429439441678596,1,26.51762920699126,63.667061672411116,1,15.701294865887546,63.667061672411116,15,0,15.701294865887546,63.667061672411116,1,19.400699087490192,60.86758834673705,1,30.2170334285939,60.86758834673705,1,26.51762920699126,63.667061672411116,1,15.701294865887546,63.667061672411116,15,0,15.701294865887546,63.667061672411116,1,15.701294865887546,39.429439441678596,1,19.400699087490192,36.62996611600453,1,19.400699087490192,60.86758834673705,1,15.701294865887546,63.667061672411116,15,0,26.51762920699126,63.667061672411116,1,26.51762920699126,39.429439441678596,1,30.2170334285939,36.62996611600453,1,30.2170334285939,60.86758834673705,1,26.51762920699126,63.667061672411116,15,0,15.701294865887546,39.429439441678596,1,19.400699087490192,36.62996611600453,1,30.2170334285939,36.62996611600453,1,26.51762920699126,39.429439441678596,1,15.701294865887546,39.429439441678596,15,0,19.400699087490192,60.86758834673705,1,19.400699087490192,36.62996611600453,1,30.2170334285939,36.62996611600453,1,30.2170334285939,60.86758834673705,1,19.400699087490192,60.86758834673705,15,0,15.701294865887546,63.667061672411116,1,15.701294865887546,39.429439441678596,1,26.51762920699126,39.429439441678596,1,26.51762920699126,63.667061672411116,1,15.701294865887546,63.667061672411116,15,0,15.701294865887546,63.667061672411116,1,19.400699087490192,60.86758834673705,1,30.2170334285939,60.86758834673705,1,26.51762920699126,63.667061672411116,1,15.701294865887546,63.667061672411116,15,0,15.701294865887546,63.667061672411116,1,15.701294865887546,39.429439441678596,1,19.400699087490192,36.62996611600453,1,19.400699087490192,60.86758834673705,1,15.701294865887546,63.667061672411116,15,0,26.51762920699126,63.667061672411116,1,26.51762920699126,39.429439441678596,1,30.2170334285939,36.62996611600453,1,30.2170334285939,60.86758834673705,1,26.51762920699126,63.667061672411116,15,0,15.701294865887546,39.429439441678596,1,19.400699087490192,36.62996611600453,1,30.2170334285939,36.62996611600453,1,26.51762920699126,39.429439441678596,1,15.701294865887546,39.429439441678596,15,0,19.400699087490192,60.86758834673705,1,19.400699087490192,36.62996611600453,1,30.2170334285939,36.62996611600453,1,30.2170334285939,60.86758834673705,1,19.400699087490192,60.86758834673705,15,0,42.74213071864682,63.667061672411116,1,42.74213071864682,37.490429663220006,1,53.558465059750525,37.490429663220006,1,53.558465059750525,63.667061672411116,1,42.74213071864682,63.667061672411116,15,0,42.74213071864682,63.667061672411116,1,46.441534940249454,60.86758834673705,1,57.257869281353166,60.86758834673705,1,53.558465059750525,63.667061672411116,1,42.74213071864682,63.667061672411116,15,0,42.74213071864682,63.667061672411116,1,42.74213071864682,37.490429663220006,1,46.441534940249454,34.69095633754594,1,46.441534940249454,60.86758834673705,1,42.74213071864682,63.667061672411116,15,0,53.558465059750525,63.667061672411116,1,53.558465059750525,37.490429663220006,1,57.257869281353166,34.69095633754594,1,57.257869281353166,60.86758834673705,1,53.558465059750525,63.667061672411116,15,0,42.74213071864682,37.490429663220006,1,46.441534940249454,34.69095633754594,1,57.257869281353166,34.69095633754594,1,53.558465059750525,37.490429663220006,1,42.74213071864682,37.490429663220006,15,0,46.441534940249454,60.86758834673705,1,46.441534940249454,34.69095633754594,1,57.257869281353166,34.69095633754594,1,57.257869281353166,60.86758834673705,1,46.441534940249454,60.86758834673705,15,0,42.74213071864682,63.667061672411116,1,42.74213071864682,37.490429663220006,1,53.558465059750525,37.490429663220006,1,53.558465059750525,63.667061672411116,1,42.74213071864682,63.667061672411116,15,0,42.74213071864682,63.667061672411116,1,46.441534940249454,60.86758834673705,1,57.257869281353166,60.86758834673705,1,53.558465059750525,63.667061672411116,1,42.74213071864682,63.667061672411116,15,0,42.74213071864682,63.667061672411116,1,42.74213071864682,37.490429663220006,1,46.441534940249454,34.69095633754594,1,46.441534940249454,60.86758834673705,1,42.74213071864682,63.667061672411116,15,0,53.558465059750525,63.667061672411116,1,53.558465059750525,37.490429663220006,1,57.257869281353166,34.69095633754594,1,57.257869281353166,60.86758834673705,1,53.558465059750525,63.667061672411116,15,0,42.74213071864682,37.490429663220006,1,46.441534940249454,34.69095633754594,1,57.257869281353166,34.69095633754594,1,53.558465059750525,37.490429663220006,1,42.74213071864682,37.490429663220006,15,0,46.441534940249454,60.86758834673705,1,46.441534940249454,34.69095633754594,1,57.257869281353166,34.69095633754594,1,57.257869281353166,60.86758834673705,1,46.441534940249454,60.86758834673705,15,0,69.7829665714061,63.667061672411116,1,69.7829665714061,9.132411653262949,1,80.59930091250982,9.132411653262949,1,80.59930091250982,63.667061672411116,1,69.7829665714061,63.667061672411116,15,0,69.7829665714061,63.667061672411116,1,73.48237079300874,60.86758834673705,1,84.29870513411248,60.86758834673705,1,80.59930091250982,63.667061672411116,1,69.7829665714061,63.667061672411116,15,0,69.7829665714061,63.667061672411116,1,69.7829665714061,9.132411653262949,1,73.48237079300874,6.3329383275888835,1,73.48237079300874,60.86758834673705,1,69.7829665714061,63.667061672411116,15,0,80.59930091250982,63.667061672411116,1,80.59930091250982,9.132411653262949,1,84.29870513411248,6.3329383275888835,1,84.29870513411248,60.86758834673705,1,80.59930091250982,63.667061672411116,15,0,69.7829665714061,9.132411653262949,1,73.48237079300874,6.3329383275888835,1,84.29870513411248,6.3329383275888835,1,80.59930091250982,9.132411653262949,1,69.7829665714061,9.132411653262949,15,0,73.48237079300874,60.86758834673705,1,73.48237079300874,6.3329383275888835,1,84.29870513411248,6.3329383275888835,1,84.29870513411248,60.86758834673705,1,73.48237079300874,60.86758834673705,15,0,69.7829665714061,63.667061672411116,1,69.7829665714061,9.132411653262949,1,80.59930091250982,9.132411653262949,1,80.59930091250982,63.667061672411116,1,69.7829665714061,63.667061672411116,15,0,69.7829665714061,63.667061672411116,1,73.48237079300874,60.86758834673705,1,84.29870513411248,60.86758834673705,1,80.59930091250982,63.667061672411116,1,69.7829665714061,63.667061672411116,15,0,69.7829665714061,63.667061672411116,1,69.7829665714061,9.132411653262949,1,73.48237079300874,6.3329383275888835,1,73.48237079300874,60.86758834673705,1,69.7829665714061,63.667061672411116,15,0,80.59930091250982,63.667061672411116,1,80.59930091250982,9.132411653262949,1,84.29870513411248,6.3329383275888835,1,84.29870513411248,60.86758834673705,1,80.59930091250982,63.667061672411116,15,0,69.7829665714061,9.132411653262949,1,73.48237079300874,6.3329383275888835,1,84.29870513411248,6.3329383275888835,1,80.59930091250982,9.132411653262949,1,69.7829665714061,9.132411653262949,15,0,73.48237079300874,60.86758834673705,1,73.48237079300874,6.3329383275888835,1,84.29870513411248,6.3329383275888835,1,84.29870513411248,60.86758834673705,1,73.48237079300874,60.86758834673705,15,0,15.701294865887546,39.429439441678596,1,15.701294865887546,9.132411653262949,1,26.51762920699126,9.132411653262949,1,26.51762920699126,39.429439441678596,1,15.701294865887546,39.429439441678596,15,0,15.701294865887546,39.429439441678596,1,19.400699087490192,36.62996611600453,1,30.2170334285939,36.62996611600453,1,26.51762920699126,39.429439441678596,1,15.701294865887546,39.429439441678596,15,0,15.701294865887546,39.429439441678596,1,15.701294865887546,9.132411653262949,1,19.400699087490192,6.3329383275888835,1,19.400699087490192,36.62996611600453,1,15.701294865887546,39.429439441678596,15,0,26.51762920699126,39.429439441678596,1,26.51762920699126,9.132411653262949,1,30.2170334285939,6.3329383275888835,1,30.2170334285939,36.62996611600453,1,26.51762920699126,39.429439441678596,15,0,15.701294865887546,9.132411653262949,1,19.400699087490192,6.3329383275888835,1,30.2170334285939,6.3329383275888835,1,26.51762920699126,9.132411653262949,1,15.701294865887546,9.132411653262949,15,0,19.400699087490192,36.62996611600453,1,19.400699087490192,6.3329383275888835,1,30.2170334285939,6.3329383275888835,1,30.2170334285939,36.62996611600453,1,19.400699087490192,36.62996611600453,15,0,15.701294865887546,39.429439441678596,1,15.701294865887546,9.132411653262949,1,26.51762920699126,9.132411653262949,1,26.51762920699126,39.429439441678596,1,15.701294865887546,39.429439441678596,15,0,15.701294865887546,39.429439441678596,1,19.400699087490192,36.62996611600453,1,30.2170334285939,36.62996611600453,1,26.51762920699126,39.429439441678596,1,15.701294865887546,39.429439441678596,15,0,15.701294865887546,39.429439441678596,1,15.701294865887546,9.132411653262949,1,19.400699087490192,6.3329383275888835,1,19.400699087490192,36.62996611600453,1,15.701294865887546,39.429439441678596,15,0,26.51762920699126,39.429439441678596,1,26.51762920699126,9.132411653262949,1,30.2170334285939,6.3329383275888835,1,30.2170334285939,36.62996611600453,1,26.51762920699126,39.429439441678596,15,0,15.701294865887546,9.132411653262949,1,19.400699087490192,6.3329383275888835,1,30.2170334285939,6.3329383275888835,1,26.51762920699126,9.132411653262949,1,15.701294865887546,9.132411653262949,15,0,19.400699087490192,36.62996611600453,1,19.400699087490192,6.3329383275888835,1,30.2170334285939,6.3329383275888835,1,30.2170334285939,36.62996611600453,1,19.400699087490192,36.62996611600453,15,0,42.74213071864682,37.490429663220006,1,42.74213071864682,9.132411653262949,1,53.558465059750525,9.132411653262949,1,53.558465059750525,37.490429663220006,1,42.74213071864682,37.490429663220006,15,0,42.74213071864682,37.490429663220006,1,46.441534940249454,34.69095633754594,1,57.257869281353166,34.69095633754594,1,53.558465059750525,37.490429663220006,1,42.74213071864682,37.490429663220006,15,0,42.74213071864682,37.490429663220006,1,42.74213071864682,9.132411653262949,1,46.441534940249454,6.3329383275888835,1,46.441534940249454,34.69095633754594,1,42.74213071864682,37.490429663220006,15,0,53.558465059750525,37.490429663220006,1,53.558465059750525,9.132411653262949,1,57.257869281353166,6.3329383275888835,1,57.257869281353166,34.69095633754594,1,53.558465059750525,37.490429663220006,15,0,42.74213071864682,9.132411653262949,1,46.441534940249454,6.3329383275888835,1,57.257869281353166,6.3329383275888835,1,53.558465059750525,9.132411653262949,1,42.74213071864682,9.132411653262949,15,0,46.441534940249454,34.69095633754594,1,46.441534940249454,6.3329383275888835,1,57.257869281353166,6.3329383275888835,1,57.257869281353166,34.69095633754594,1,46.441534940249454,34.69095633754594,15,0,42.74213071864682,37.490429663220006,1,42.74213071864682,9.132411653262949,1,53.558465059750525,9.132411653262949,1,53.558465059750525,37.490429663220006,1,42.74213071864682,37.490429663220006,15,0,42.74213071864682,37.490429663220006,1,46.441534940249454,34.69095633754594,1,57.257869281353166,34.69095633754594,1,53.558465059750525,37.490429663220006,1,42.74213071864682,37.490429663220006,15,0,42.74213071864682,37.490429663220006,1,42.74213071864682,9.132411653262949,1,46.441534940249454,6.3329383275888835,1,46.441534940249454,34.69095633754594,1,42.74213071864682,37.490429663220006,15,0,53.558465059750525,37.490429663220006,1,53.558465059750525,9.132411653262949,1,57.257869281353166,6.3329383275888835,1,57.257869281353166,34.69095633754594,1,53.558465059750525,37.490429663220006,15,0,42.74213071864682,9.132411653262949,1,46.441534940249454,6.3329383275888835,1,57.257869281353166,6.3329383275888835,1,53.558465059750525,9.132411653262949,1,42.74213071864682,9.132411653262949,15,0,46.441534940249454,34.69095633754594,1,46.441534940249454,6.3329383275888835,1,57.257869281353166,6.3329383275888835,1,57.257869281353166,34.69095633754594,1,46.441534940249454,34.69095633754594,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", "barStackedPercent3DPerspective": "15,0,21.013480335383846,45.12844427176431,1,95.55121028230624,45.12844427176431,1,95.55121028230624,11.723091156440482,1,21.013480335383846,11.723091156440482,0,21.013480335383846,45.12844427176431,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,63,0,4.233333333333333,58.13327125398591,1,21.22893671974426,45.27208186133791,1,95.76666666666668,45.27208186133791,0,4.233333333333333,52.56571240143195,1,21.22893671974426,39.70452300878394,1,95.76666666666668,39.70452300878394,0,4.233333333333333,46.99815354887799,1,21.22893671974426,34.13696415622997,1,95.76666666666668,34.13696415622997,0,4.233333333333333,41.430594696324015,1,21.22893671974426,28.569405303675996,1,95.76666666666668,28.569405303675996,0,4.233333333333333,35.86303584377004,1,21.22893671974426,23.00184645112203,1,95.76666666666668,23.00184645112203,0,4.233333333333333,30.295476991216074,1,21.22893671974426,17.434287598568062,1,95.76666666666668,17.434287598568062,0,4.233333333333333,24.72791813866211,1,21.22893671974426,11.866728746014084,1,95.76666666666668,11.866728746014084,279,0,4.233333333333333,58.13327125398591,1,21.22893671974426,45.27208186133791,1,95.76666666666668,45.27208186133791,0,4.233333333333333,52.56571240143195,1,21.22893671974426,39.70452300878394,1,95.76666666666668,39.70452300878394,0,4.233333333333333,53.679224171942735,1,21.22893671974426,40.818034779294734,1,95.76666666666668,40.818034779294734,0,4.233333333333333,54.79273594245353,1,21.22893671974426,41.93154654980553,1,95.76666666666668,41.93154654980553,0,4.233333333333333,55.90624771296434,1,21.22893671974426,43.045058320316315,1,95.76666666666668,43.045058320316315,0,4.233333333333333,57.01975948347513,1,21.22893671974426,44.15857009082711,1,95.76666666666668,44.15857009082711,0,4.233333333333333,46.99815354887799,1,21.22893671974426,34.13696415622997,1,95.76666666666668,34.13696415622997,0,4.233333333333333,48.11166531938878,1,21.22893671974426,35.25047592674076,1,95.76666666666668,35.25047592674076,0,4.233333333333333,49.22517708989957,1,21.22893671974426,36.36398769725155,1,95.76666666666668,36.36398769725155,0,4.233333333333333,50.33868886041036,1,21.22893671974426,37.47749946776236,1,95.76666666666668,37.47749946776236,0,4.233333333333333,51.452200630921155,1,21.22893671974426,38.59101123827314,1,95.76666666666668,38.59101123827314,0,4.233333333333333,41.430594696324015,1,21.22893671974426,28.569405303675996,1,95.76666666666668,28.569405303675996,0,4.233333333333333,42.544106466834805,1,21.22893671974426,29.68291707418679,1,95.76666666666668,29.68291707418679,0,4.233333333333333,43.6576182373456,1,21.22893671974426,30.796428844697584,1,95.76666666666668,30.796428844697584,0,4.233333333333333,44.771130007856385,1,21.22893671974426,31.909940615208377,1,95.76666666666668,31.909940615208377,0,4.233333333333333,45.884641778367175,1,21.22893671974426,33.02345238571917,1,95.76666666666668,33.02345238571917,0,4.233333333333333,35.86303584377004,1,21.22893671974426,23.00184645112203,1,95.76666666666668,23.00184645112203,0,4.233333333333333,36.97654761428084,1,21.22893671974426,24.11535822163282,1,95.76666666666668,24.11535822163282,0,4.233333333333333,38.09005938479163,1,21.22893671974426,25.22886999214362,1,95.76666666666668,25.22886999214362,0,4.233333333333333,39.203571155302434,1,21.22893671974426,26.34238176265441,1,95.76666666666668,26.34238176265441,0,4.233333333333333,40.31708292581322,1,21.22893671974426,27.455893533165206,1,95.76666666666668,27.455893533165206,0,4.233333333333333,30.295476991216074,1,21.22893671974426,17.434287598568062,1,95.76666666666668,17.434287598568062,0,4.233333333333333,31.408988761726867,1,21.22893671974426,18.54779936907886,1,95.76666666666668,18.54779936907886,0,4.233333333333333,32.522500532237665,1,21.22893671974426,19.66131113958965,1,95.76666666666668,19.66131113958965,0,4.233333333333333,33.63601230274846,1,21.22893671974426,20.77482291010045,1,95.76666666666668,20.77482291010045,0,4.233333333333333,34.74952407325926,1,21.22893671974426,21.888334680611234,1,95.76666666666668,21.888334680611234,0,4.233333333333333,24.72791813866211,1,21.22893671974426,11.866728746014084,1,95.76666666666668,11.866728746014084,0,4.233333333333333,25.841429909172902,1,21.22893671974426,12.980240516524882,1,95.76666666666668,12.980240516524882,0,4.233333333333333,26.954941679683692,1,21.22893671974426,14.093752287035672,1,95.76666666666668,14.093752287035672,0,4.233333333333333,28.06845345019448,1,21.22893671974426,15.20726405754647,1,95.76666666666668,15.20726405754647,0,4.233333333333333,29.18196522070528,1,21.22893671974426,16.320775828057265,1,95.76666666666668,16.320775828057265,15,0,4.233333333333333,58.13327125398591,1,21.22893671974426,45.27208186133791,1,95.76666666666668,45.27208186133791,1,78.77106328025575,58.13327125398591,1,4.233333333333333,58.13327125398591,15,0,4.233333333333333,58.13327125398591,1,4.233333333333333,24.72791813866211,1,21.22893671974426,11.866728746014084,1,21.22893671974426,45.27208186133791,1,4.233333333333333,58.13327125398591,15,0,21.22893671974426,45.27208186133791,1,21.22893671974426,11.866728746014084,1,95.76666666666668,11.866728746014084,1,95.76666666666668,45.27208186133791,1,21.22893671974426,45.27208186133791,15,0,14.236446835987218,56.20409284508871,1,14.236446835987218,33.933857434872834,1,24.1748108289102,33.933857434872834,1,24.1748108289102,56.20409284508871,1,14.236446835987218,56.20409284508871,15,0,14.236446835987218,56.20409284508871,1,17.635567513269404,53.63185496655912,1,27.573931506192384,53.63185496655912,1,24.1748108289102,56.20409284508871,1,14.236446835987218,56.20409284508871,15,0,14.236446835987218,56.20409284508871,1,14.236446835987218,33.933857434872834,1,17.635567513269404,31.361619556343232,1,17.635567513269404,53.63185496655912,1,14.236446835987218,56.20409284508871,15,0,24.1748108289102,56.20409284508871,1,24.1748108289102,33.933857434872834,1,27.573931506192384,31.361619556343232,1,27.573931506192384,53.63185496655912,1,24.1748108289102,56.20409284508871,15,0,14.236446835987218,33.933857434872834,1,17.635567513269404,31.361619556343232,1,27.573931506192384,31.361619556343232,1,24.1748108289102,33.933857434872834,1,14.236446835987218,33.933857434872834,15,0,17.635567513269404,53.63185496655912,1,17.635567513269404,31.361619556343232,1,27.573931506192384,31.361619556343232,1,27.573931506192384,53.63185496655912,1,17.635567513269404,53.63185496655912,15,0,14.236446835987218,56.20409284508871,1,14.236446835987218,33.933857434872834,1,24.1748108289102,33.933857434872834,1,24.1748108289102,56.20409284508871,1,14.236446835987218,56.20409284508871,15,0,14.236446835987218,56.20409284508871,1,17.635567513269404,53.63185496655912,1,27.573931506192384,53.63185496655912,1,24.1748108289102,56.20409284508871,1,14.236446835987218,56.20409284508871,15,0,14.236446835987218,56.20409284508871,1,14.236446835987218,33.933857434872834,1,17.635567513269404,31.361619556343232,1,17.635567513269404,53.63185496655912,1,14.236446835987218,56.20409284508871,15,0,24.1748108289102,56.20409284508871,1,24.1748108289102,33.933857434872834,1,27.573931506192384,31.361619556343232,1,27.573931506192384,53.63185496655912,1,24.1748108289102,56.20409284508871,15,0,14.236446835987218,33.933857434872834,1,17.635567513269404,31.361619556343232,1,27.573931506192384,31.361619556343232,1,24.1748108289102,33.933857434872834,1,14.236446835987218,33.933857434872834,15,0,17.635567513269404,53.63185496655912,1,17.635567513269404,31.361619556343232,1,27.573931506192384,31.361619556343232,1,27.573931506192384,53.63185496655912,1,17.635567513269404,53.63185496655912,15,0,39.08235681829468,56.20409284508871,1,39.08235681829468,29.479810352829663,1,49.020720811217664,29.479810352829663,1,49.020720811217664,56.20409284508871,1,39.08235681829468,56.20409284508871,15,0,39.08235681829468,56.20409284508871,1,42.48147749557686,53.63185496655912,1,52.41984148849984,53.63185496655912,1,49.020720811217664,56.20409284508871,1,39.08235681829468,56.20409284508871,15,0,39.08235681829468,56.20409284508871,1,39.08235681829468,29.479810352829663,1,42.48147749557686,26.90757247430006,1,42.48147749557686,53.63185496655912,1,39.08235681829468,56.20409284508871,15,0,49.020720811217664,56.20409284508871,1,49.020720811217664,29.479810352829663,1,52.41984148849984,26.90757247430006,1,52.41984148849984,53.63185496655912,1,49.020720811217664,56.20409284508871,15,0,39.08235681829468,29.479810352829663,1,42.48147749557686,26.90757247430006,1,52.41984148849984,26.90757247430006,1,49.020720811217664,29.479810352829663,1,39.08235681829468,29.479810352829663,15,0,42.48147749557686,53.63185496655912,1,42.48147749557686,26.90757247430006,1,52.41984148849984,26.90757247430006,1,52.41984148849984,53.63185496655912,1,42.48147749557686,53.63185496655912,15,0,39.08235681829468,56.20409284508871,1,39.08235681829468,29.479810352829663,1,49.020720811217664,29.479810352829663,1,49.020720811217664,56.20409284508871,1,39.08235681829468,56.20409284508871,15,0,39.08235681829468,56.20409284508871,1,42.48147749557686,53.63185496655912,1,52.41984148849984,53.63185496655912,1,49.020720811217664,56.20409284508871,1,39.08235681829468,56.20409284508871,15,0,39.08235681829468,56.20409284508871,1,39.08235681829468,29.479810352829663,1,42.48147749557686,26.90757247430006,1,42.48147749557686,53.63185496655912,1,39.08235681829468,56.20409284508871,15,0,49.020720811217664,56.20409284508871,1,49.020720811217664,29.479810352829663,1,52.41984148849984,26.90757247430006,1,52.41984148849984,53.63185496655912,1,49.020720811217664,56.20409284508871,15,0,39.08235681829468,29.479810352829663,1,42.48147749557686,26.90757247430006,1,52.41984148849984,26.90757247430006,1,49.020720811217664,29.479810352829663,1,39.08235681829468,29.479810352829663,15,0,42.48147749557686,53.63185496655912,1,42.48147749557686,26.90757247430006,1,52.41984148849984,26.90757247430006,1,52.41984148849984,53.63185496655912,1,42.48147749557686,53.63185496655912,15,0,63.92826680060216,56.20409284508871,1,63.92826680060216,25.025763270786484,1,73.86663079352513,25.025763270786484,1,73.86663079352513,56.20409284508871,1,63.92826680060216,56.20409284508871,15,0,63.92826680060216,56.20409284508871,1,67.32738747788434,53.63185496655912,1,77.26575147080733,53.63185496655912,1,73.86663079352513,56.20409284508871,1,63.92826680060216,56.20409284508871,15,0,63.92826680060216,56.20409284508871,1,63.92826680060216,25.025763270786484,1,67.32738747788434,22.453525392256882,1,67.32738747788434,53.63185496655912,1,63.92826680060216,56.20409284508871,15,0,73.86663079352513,56.20409284508871,1,73.86663079352513,25.025763270786484,1,77.26575147080733,22.453525392256882,1,77.26575147080733,53.63185496655912,1,73.86663079352513,56.20409284508871,15,0,63.92826680060216,25.025763270786484,1,67.32738747788434,22.453525392256882,1,77.26575147080733,22.453525392256882,1,73.86663079352513,25.025763270786484,1,63.92826680060216,25.025763270786484,15,0,67.32738747788434,53.63185496655912,1,67.32738747788434,22.453525392256882,1,77.26575147080733,22.453525392256882,1,77.26575147080733,53.63185496655912,1,67.32738747788434,53.63185496655912,15,0,63.92826680060216,56.20409284508871,1,63.92826680060216,25.025763270786484,1,73.86663079352513,25.025763270786484,1,73.86663079352513,56.20409284508871,1,63.92826680060216,56.20409284508871,15,0,63.92826680060216,56.20409284508871,1,67.32738747788434,53.63185496655912,1,77.26575147080733,53.63185496655912,1,73.86663079352513,56.20409284508871,1,63.92826680060216,56.20409284508871,15,0,63.92826680060216,56.20409284508871,1,63.92826680060216,25.025763270786484,1,67.32738747788434,22.453525392256882,1,67.32738747788434,53.63185496655912,1,63.92826680060216,56.20409284508871,15,0,73.86663079352513,56.20409284508871,1,73.86663079352513,25.025763270786484,1,77.26575147080733,22.453525392256882,1,77.26575147080733,53.63185496655912,1,73.86663079352513,56.20409284508871,15,0,63.92826680060216,25.025763270786484,1,67.32738747788434,22.453525392256882,1,77.26575147080733,22.453525392256882,1,73.86663079352513,25.025763270786484,1,63.92826680060216,25.025763270786484,15,0,67.32738747788434,53.63185496655912,1,67.32738747788434,22.453525392256882,1,77.26575147080733,22.453525392256882,1,77.26575147080733,53.63185496655912,1,67.32738747788434,53.63185496655912,15,0,22.734248529192683,49.7734981487647,1,22.734248529192683,21.935703885994865,1,32.67261252211567,21.935703885994865,1,32.67261252211567,49.7734981487647,1,22.734248529192683,49.7734981487647,15,0,22.734248529192683,49.7734981487647,1,26.133369206474867,47.2012602702351,1,36.071733199397855,47.2012602702351,1,32.67261252211567,49.7734981487647,1,22.734248529192683,49.7734981487647,15,0,22.734248529192683,49.7734981487647,1,22.734248529192683,21.935703885994865,1,26.133369206474867,19.363466007465263,1,26.133369206474867,47.2012602702351,1,22.734248529192683,49.7734981487647,15,0,32.67261252211567,49.7734981487647,1,32.67261252211567,21.935703885994865,1,36.071733199397855,19.363466007465263,1,36.071733199397855,47.2012602702351,1,32.67261252211567,49.7734981487647,15,0,22.734248529192683,21.935703885994865,1,26.133369206474867,19.363466007465263,1,36.071733199397855,19.363466007465263,1,32.67261252211567,21.935703885994865,1,22.734248529192683,21.935703885994865,15,0,26.133369206474867,47.2012602702351,1,26.133369206474867,19.363466007465263,1,36.071733199397855,19.363466007465263,1,36.071733199397855,47.2012602702351,1,26.133369206474867,47.2012602702351,15,0,22.734248529192683,49.7734981487647,1,22.734248529192683,21.935703885994865,1,32.67261252211567,21.935703885994865,1,32.67261252211567,49.7734981487647,1,22.734248529192683,49.7734981487647,15,0,22.734248529192683,49.7734981487647,1,26.133369206474867,47.2012602702351,1,36.071733199397855,47.2012602702351,1,32.67261252211567,49.7734981487647,1,22.734248529192683,49.7734981487647,15,0,22.734248529192683,49.7734981487647,1,22.734248529192683,21.935703885994865,1,26.133369206474867,19.363466007465263,1,26.133369206474867,47.2012602702351,1,22.734248529192683,49.7734981487647,15,0,32.67261252211567,49.7734981487647,1,32.67261252211567,21.935703885994865,1,36.071733199397855,19.363466007465263,1,36.071733199397855,47.2012602702351,1,32.67261252211567,49.7734981487647,15,0,22.734248529192683,21.935703885994865,1,26.133369206474867,19.363466007465263,1,36.071733199397855,19.363466007465263,1,32.67261252211567,21.935703885994865,1,22.734248529192683,21.935703885994865,15,0,26.133369206474867,47.2012602702351,1,26.133369206474867,19.363466007465263,1,36.071733199397855,19.363466007465263,1,36.071733199397855,47.2012602702351,1,26.133369206474867,47.2012602702351,15,0,47.580158511500144,49.7734981487647,1,47.580158511500144,20.82219211548407,1,57.51852250442313,20.82219211548407,1,57.51852250442313,49.7734981487647,1,47.580158511500144,49.7734981487647,15,0,47.580158511500144,49.7734981487647,1,50.97927918878233,47.2012602702351,1,60.91764318170531,47.2012602702351,1,57.51852250442313,49.7734981487647,1,47.580158511500144,49.7734981487647,15,0,47.580158511500144,49.7734981487647,1,47.580158511500144,20.82219211548407,1,50.97927918878233,18.24995423695447,1,50.97927918878233,47.2012602702351,1,47.580158511500144,49.7734981487647,15,0,57.51852250442313,49.7734981487647,1,57.51852250442313,20.82219211548407,1,60.91764318170531,18.24995423695447,1,60.91764318170531,47.2012602702351,1,57.51852250442313,49.7734981487647,15,0,47.580158511500144,20.82219211548407,1,50.97927918878233,18.24995423695447,1,60.91764318170531,18.24995423695447,1,57.51852250442313,20.82219211548407,1,47.580158511500144,20.82219211548407,15,0,50.97927918878233,47.2012602702351,1,50.97927918878233,18.24995423695447,1,60.91764318170531,18.24995423695447,1,60.91764318170531,47.2012602702351,1,50.97927918878233,47.2012602702351,15,0,47.580158511500144,49.7734981487647,1,47.580158511500144,20.82219211548407,1,57.51852250442313,20.82219211548407,1,57.51852250442313,49.7734981487647,1,47.580158511500144,49.7734981487647,15,0,47.580158511500144,49.7734981487647,1,50.97927918878233,47.2012602702351,1,60.91764318170531,47.2012602702351,1,57.51852250442313,49.7734981487647,1,47.580158511500144,49.7734981487647,15,0,47.580158511500144,49.7734981487647,1,47.580158511500144,20.82219211548407,1,50.97927918878233,18.24995423695447,1,50.97927918878233,47.2012602702351,1,47.580158511500144,49.7734981487647,15,0,57.51852250442313,49.7734981487647,1,57.51852250442313,20.82219211548407,1,60.91764318170531,18.24995423695447,1,60.91764318170531,47.2012602702351,1,57.51852250442313,49.7734981487647,15,0,47.580158511500144,20.82219211548407,1,50.97927918878233,18.24995423695447,1,60.91764318170531,18.24995423695447,1,57.51852250442313,20.82219211548407,1,47.580158511500144,20.82219211548407,15,0,50.97927918878233,47.2012602702351,1,50.97927918878233,18.24995423695447,1,60.91764318170531,18.24995423695447,1,60.91764318170531,47.2012602702351,1,50.97927918878233,47.2012602702351,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", "horizontalBar": "15,0,4.233333333333333,65.2375,1,95.23750000000001,65.2375,1,95.23750000000001,4.23333333333333,1,4.233333333333333,4.23333333333333,1,4.233333333333333,65.2375,15,0,0,0,1,0,70,1,100,70,1,100,0,1,0,0,42,0,4.497916666666668,4.497916666666663,1,4.497916666666668,65.50208333333333,0,19.66527777777778,4.497916666666663,1,19.66527777777778,65.50208333333333,0,34.83263888888889,4.497916666666663,1,34.83263888888889,65.50208333333333,0,50,4.497916666666663,1,50,65.50208333333333,0,65.1673611111111,4.497916666666663,1,65.1673611111111,65.50208333333333,0,80.33472222222224,4.497916666666663,1,80.33472222222224,65.50208333333333,0,95.50208333333333,4.497916666666663,1,95.50208333333333,65.50208333333333,222,0,4.497916666666668,4.497916666666663,1,4.497916666666668,65.50208333333333,0,7.5313888888888885,4.497916666666663,1,7.5313888888888885,65.50208333333333,0,10.564861111111112,4.497916666666663,1,10.564861111111112,65.50208333333333,0,13.598333333333333,4.497916666666663,1,13.598333333333333,65.50208333333333,0,16.631805555555555,4.497916666666663,1,16.631805555555555,65.50208333333333,0,19.66527777777778,4.497916666666663,1,19.66527777777778,65.50208333333333,0,19.66527777777778,4.497916666666663,1,19.66527777777778,65.50208333333333,0,22.69875,4.497916666666663,1,22.69875,65.50208333333333,0,25.732222222222223,4.497916666666663,1,25.732222222222223,65.50208333333333,0,28.765694444444446,4.497916666666663,1,28.765694444444446,65.50208333333333,0,31.799166666666665,4.497916666666663,1,31.799166666666665,65.50208333333333,0,34.83263888888889,4.497916666666663,1,34.83263888888889,65.50208333333333,0,34.83263888888889,4.497916666666663,1,34.83263888888889,65.50208333333333,0,37.86611111111112,4.497916666666663,1,37.86611111111112,65.50208333333333,0,40.89958333333334,4.497916666666663,1,40.89958333333334,65.50208333333333,0,43.933055555555555,4.497916666666663,1,43.933055555555555,65.50208333333333,0,46.966527777777785,4.497916666666663,1,46.966527777777785,65.50208333333333,0,50,4.497916666666663,1,50,65.50208333333333,0,50,4.497916666666663,1,50,65.50208333333333,0,53.03347222222222,4.497916666666663,1,53.03347222222222,65.50208333333333,0,56.066944444444445,4.497916666666663,1,56.066944444444445,65.50208333333333,0,59.100416666666675,4.497916666666663,1,59.100416666666675,65.50208333333333,0,62.1338888888889,4.497916666666663,1,62.1338888888889,65.50208333333333,0,65.1673611111111,4.497916666666663,1,65.1673611111111,65.50208333333333,0,65.1673611111111,4.497916666666663,1,65.1673611111111,65.50208333333333,0,68.20083333333332,4.497916666666663,1,68.20083333333332,65.50208333333333,0,71.23430555555558,4.497916666666663,1,71.23430555555558,65.50208333333333,0,74.2677777777778,4.497916666666663,1,74.2677777777778,65.50208333333333,0,77.30125000000001,4.497916666666663,1,77.30125000000001,65.50208333333333,0,80.33472222222223,4.497916666666663,1,80.33472222222223,65.50208333333333,0,80.33472222222224,4.497916666666663,1,80.33472222222224,65.50208333333333,0,83.36819444444447,4.497916666666663,1,83.36819444444447,65.50208333333333,0,86.4016666666667,4.497916666666663,1,86.4016666666667,65.50208333333333,0,89.4351388888889,4.497916666666663,1,89.4351388888889,65.50208333333333,0,92.46861111111112,4.497916666666663,1,92.46861111111112,65.50208333333333,0,95.50208333333333,4.497916666666663,1,95.50208333333333,65.50208333333333,0,95.50208333333333,4.497916666666663,1,95.50208333333333,65.50208333333333,15,0,4.497916666666668,61.144642857142856,1,4.497916666666668,55.334722222222226,1,65.1673611111111,55.334722222222226,1,65.1673611111111,61.144642857142856,1,4.497916666666668,61.144642857142856,15,0,4.497916666666668,40.80992063492064,1,4.497916666666668,34.99999999999999,1,77.30125000000001,34.99999999999999,1,77.30125000000001,40.80992063492064,1,4.497916666666668,40.80992063492064,15,0,4.497916666666668,20.47519841269841,1,4.497916666666668,14.66527777777778,1,89.43513888888889,14.66527777777778,1,89.43513888888889,20.47519841269841,1,4.497916666666668,20.47519841269841,15,0,4.497916666666668,55.33472222222222,1,4.497916666666668,49.524801587301575,1,80.33472222222224,49.524801587301575,1,80.33472222222224,55.33472222222222,1,4.497916666666668,55.33472222222222,15,0,4.497916666666668,34.99999999999999,1,4.497916666666668,29.190079365079363,1,83.36819444444444,29.190079365079363,1,83.36819444444444,34.99999999999999,1,4.497916666666668,34.99999999999999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", @@ -1604,6 +1603,15 @@ $(function () { }) } + const areSameStrings = function (result, check) { + for(let i=0; i< result.length; i++){ + if(result[i] !== check[i]){ + return false + } + } + return true + } + const areSame = function (result, check){ for(let i=0; i< result.length; i++){ if(!isEqual(result[i], check[i])){ @@ -2912,7 +2920,7 @@ $(function () { lineBuilder.setCalcSlope(equationStorage.calcSlope); cutPoint = 3; resultStartCatVals = [1]; - resultsStartValVals = [6]; + resultsStartValVals = [1.5974]; resultsCatVals = [3.5, 4.128138791741785, 5.175036777978095, 6]; resultsValVals = [4224.146163889106, 8992.794563642741, 16940.541896565468, 125367.1738292479]; lineCoords = lineBuilder.drawWithApproximatedBezier(0.01, 1.56, cutPoint); @@ -3056,7 +3064,7 @@ $(function () { lineBuilder.setCalcSlope(equationStorage.calcSlope); cutPoint = 3; resultStartCatVals = [1]; - resultsStartValVals = [6]; + resultsStartValVals = [5.00007]; resultsCatVals = [3.5, 4.925624950443996, 5.573636291554903, 6]; resultsValVals = [1581.1388300841957, 6771.4211390038145, 9130.640370330913, 500000.00000000064]; lineCoords = lineBuilder.drawWithApproximatedBezier(0.01, 1.56, cutPoint); @@ -3140,7 +3148,7 @@ $(function () { }) } - function testLineBuilderApproximatedBezier () { + function testLineBuilderApproximatedBezierBoundary () { QUnit.test("Test: Line Builder boundaries calculation", function (assert) { let chartletiables = [0.6000000000000014, 0.8285714285714283] @@ -3945,6 +3953,2586 @@ $(function () { }) } + function testHistogramHandleAggregation () { + QUnit.test("Test: Histogram aggregation calculations", function (assert) { + + let chartsDrawer = new AscFormat.CChartsDrawer(); + let cachedData = {aggregation : {}}; + let axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + let numArr = [{val: 7}, {val: 9}]; + let strArr = [{val: "c"}, {val: "#"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [['c', '#'], [7, 9]]; + let keys = Object.keys(cachedData.aggregation); + let values = Object.values(cachedData.aggregation); + + assert.ok(areSameStrings(result[0], keys), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + keys); + assert.ok(areSame(result[1], values), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + values); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + strArr = [{val: "c"}, {val: "#"}, {val: "f"}, {val: "c"}, {val: "c"}, {val: "c"}, {val: "c"}, {val: "f"}, {val: "f"}, {val: "d"}, {val: "f"}, {val: "d"}, {val: "d"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [['c', '#', 'f', 'd'], [247, 9, 381, 451]]; + keys = Object.keys(cachedData.aggregation); + values = Object.values(cachedData.aggregation); + + assert.ok(areSameStrings(result[0], keys), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + keys); + assert.ok(areSame(result[1], values), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + values); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7},]; + strArr = []; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [[''], [7]]; + keys = Object.keys(cachedData.aggregation); + values = Object.values(cachedData.aggregation); + + assert.ok(areSameStrings(result[0], keys), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + keys); + assert.ok(areSame(result[1], values), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + values); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + strArr = [{val: "7"}, {val: "7"}, {val: "31"}, {val: "31"}, {val: "47"}, {val: "75"}, {val: "87"}, {val: "115"}, {val: "116"}, {val: "119"}, {val: "119"}, {val: "155"}, {val: "177"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [['7', '31', '47', '75', '87', '115', '116', '119', '155', '177'], [16, 62, 47, 75, 87, 115, 116, 238, 155, 177]]; + keys = Object.keys(cachedData.aggregation); + values = Object.values(cachedData.aggregation); + + assert.ok(areSameStrings(result[0], keys), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + keys); + assert.ok(areSame(result[1], values), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + values); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 0}, {val: 9}, {val: 31}, {val: 0}]; + strArr = [{val: "c"}, {val: "#"}, {val: "f"}, {val: "c"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [['c', '#', 'f'], [0, 9, 31]]; + keys = Object.keys(cachedData.aggregation); + values = Object.values(cachedData.aggregation); + + assert.ok(areSameStrings(result[0], keys), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + keys); + assert.ok(areSame(result[1], values), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + values); + + }) + } + + function testHistogramHandleAggregationMinAndMax () { + QUnit.test("Test: Histogram aggregation min and max calculations", function (assert) { + + let chartsDrawer = new AscFormat.CChartsDrawer(); + let cachedData = {aggregation : {}}; + let axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + let numArr = [{val: 7}, {val: 9}]; + let strArr = [{val: "c"}, {val: "#"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [7, 9]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + strArr = [{val: "c"}, {val: "#"}, {val: "f"}, {val: "c"}, {val: "c"}, {val: "c"}, {val: "c"}, {val: "f"}, {val: "f"}, {val: "d"}, {val: "f"}, {val: "d"}, {val: "d"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [7, 451]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7},]; + strArr = []; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [7, 7]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + strArr = [{val: "7"}, {val: "7"}, {val: "31"}, {val: "31"}, {val: "47"}, {val: "75"}, {val: "87"}, {val: "115"}, {val: "116"}, {val: "119"}, {val: "119"}, {val: "155"}, {val: "177"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [7, 238]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 0}, {val: 9}, {val: 31}, {val: 0}]; + strArr = [{val: "c"}, {val: "#"}, {val: "f"}, {val: "c"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [0, 31]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + }) + } + + + function testHistogramHandleBinning () { + + // this function compares each object inside the arrays + // if there is an object different for each array + // this function will return the index, the true object, and its incorrect prediction + function checkArraysOfObjects (arr, predicted) { + if (!arr || !predicted) { + return; + } + if (arr.length !== predicted.length) { + return ['arrays are different', 'arrays are different', 'arrays are different']; + } + for (let i = 0; i < arr.length; i++) { + const st1 = !isEqual(arr[i].min, predicted[i].min); + const st2 = !isEqual(arr[i].max, predicted[i].max); + const st3 = !isEqual(arr[i].occurrence, predicted[i].occurrence); + if (st1 || st2 || st3) { + return [i, arr[i], predicted[i]]; + } + } + return false; + } + + + QUnit.test("Test: Histogram binning calculations", function (assert) { + + let chartsDrawer = new AscFormat.CChartsDrawer(); + let cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + let axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + let numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + let result = [{min : 7, max : 89, occurrence: 7}, {min : 89, max : 171, occurrence: 5}, {min : 171, max : 253, occurrence: 1}]; + let isProblematic = checkArraysOfObjects(result, cachedData.results); + let message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 119, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 78, occurrence: 6}, {min : 78, max : 149, occurrence: 5}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 116, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 78, occurrence: 6}, {min : 78, max : 149, occurrence: 3}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 87, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 63, occurrence: 5}, {min : 63, max : 119, occurrence: 2}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 47, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 41, occurrence: 4}, {min : 41, max : 75, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 39, occurrence: 3}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 10.9, occurrence: 2}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 8}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: 26}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 33, occurrence: 4}, {min : 33, max : 59, occurrence: 1}, {min : 59, max : 85, occurrence: 1}, {min : 85, max : 111, occurrence: 1}, {min : 111, max : 137, occurrence: 4}, {min : 137, max : 163, occurrence: 1}, {min : 163, max : 189, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: 5}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 2}, {min : 12, max : 17, occurrence: 0}, {min : 17, max : 22, occurrence: 0}, {min : 22, max : 27, occurrence: 0}, {min : 27, max : 32, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: 10}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 17, occurrence: 1}, {min : 17, max : 27, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: 1, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 177, occurrence: 13}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: 3, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 7.666666667, occurrence: 1}, {min : 7.666666667, max : 8.3333333333, occurrence: 0}, {min : 8.3333333333, max : 9, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:31, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 31, max : 31, occurrence: 1}, {min : 31, max : 31, occurrence: 0}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.1, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.1, occurrence: 1}, {min : 7.1, max : 89.1, occurrence: 6}, {min : 89.1, max : 171.1, occurrence: 5}, {min : 171.1, max : 253.1, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 25, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 119, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 25, occurrence: 2}, {min : 25, max : 96, occurrence: 5}, {min : 96, max : 167, occurrence: 4}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 78, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 116, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 78, occurrence: 6}, {min : 78, max : 149, occurrence: 3}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 86.9999, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 87, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 86.9999, occurrence: 6}, {min : 86.9999, max : 142.9999, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 47, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 41, occurrence: 4}, {min : 41, max : 75, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 30, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 30, occurrence: 2}, {min : 30, max : 62, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.4, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7.5, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7.5}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.4, occurrence: 1}, {min : 7.4, max : 8.38, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 6.99999, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 8}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.5, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.5, occurrence: 1}, {min : 7.5, max : 11.4, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 8, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 8, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 8}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 8, occurrence: 2}, {min : 8, max : 10, occurrence: 0}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 176.99, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 89, occurrence: 7}, {min : 89, max : 171, occurrence: 5}, {min : 171, max : 176.99, occurrence: 0}, {min : 176.99, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 116, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 119, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 78, occurrence: 6}, {min : 78, max : 116, occurrence: 3}, {min : 116, max : null, occurrence: 2}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 78, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 116, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 78, occurrence: 6}, {min : 78, max : null, occurrence: 3}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 87, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 7, occurrence: 1}, {min : 7, max : null, occurrence: 6}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 47, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 47, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 41, occurrence: 4}, {min : 41, max : 75, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 8, occurrence: 1}, {min : 8, max : null, occurrence: 2}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8.9, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 8.9, occurrence: 1}, {min : 8.9, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7.111111, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7.111111, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 8}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 8, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 8}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 9, occurrence: 2}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 176.99, underflow: 7.1, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.1, occurrence: 1}, {min : 7.1, max : 89.1, occurrence: 6}, {min : 89.1, max : 171.1, occurrence: 5}, {min : 171.1, max : 176.99, occurrence: 0}, {min : 176.99, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 116, underflow: 25, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 119, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 25, occurrence: 2}, {min : 25, max : 96, occurrence: 5}, {min : 96, max : 116, occurrence: 2}, {min : 116, max : null, occurrence: 2}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 78, underflow: 78, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 116, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 78, occurrence: 6}, {min : 78, max : 78, occurrence: 0}, {min : 78, max : null, occurrence: 3}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7, underflow: 86.999, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 87, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 86.999, occurrence: 6}, {min : 86.999, max : 142.999, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 47, underflow: 7, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 47, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 41, occurrence: 4}, {min : 41, max : 75, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8, underflow: 30, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 30, occurrence: 2}, {min : 30, max : 62, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8.9, underflow: 7.4, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.4, occurrence: 1}, {min : 7.4, max : 8.9, occurrence: 0}, {min : 8.9, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 6.999, underflow: 7.1111, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7.0, underflow: 7.1111, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 8}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.1, binCount: null, binSize: 40}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.1, occurrence: 1}, {min : 7.1, max : 47.1, occurrence: 4}, {min : 47.1, max : 87.1, occurrence: 2}, {min : 87.1, max : 127.1, occurrence: 4}, {min : 127.1, max : 167.1, occurrence: 1}, {min : 167.1, max : 207.1, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 20, binCount: null, binSize: 15}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 20, occurrence: 2}, {min : 20, max : 35, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 18, binCount: null, binSize: 110}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 18, occurrence: 2}, {min : 18, max : 128, occurrence: 0}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7, binCount: null, binSize: 50}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 57, occurrence: 5}, {min : 57, max : 107, occurrence: 2}, {min : 107, max : 157, occurrence: 5}, {min : 157, max : 207, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 169.9, underflow: null, binCount: null, binSize: 40}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 47, occurrence: 5}, {min : 47, max : 87, occurrence: 2}, {min : 87, max : 127, occurrence: 4}, {min : 127, max : 167, occurrence: 1}, {min : 167, max : 169.9, occurrence: 0}, {min : 169.9, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 20, underflow: null, binCount: null, binSize: 8}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 15, occurrence: 2}, {min : 15, max : 20, occurrence: 0}, {min : 20, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7, underflow: null, binCount: null, binSize: 15}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 7, occurrence: 1}, {min : 7, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 177, underflow: null, binCount: null, binSize: 50}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 57, occurrence: 5}, {min : 57, max : 107, occurrence: 2}, {min : 107, max : 157, occurrence: 5}, {min : 157, max : 207, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 176.9, underflow: 7.9, binCount: null, binSize: 70}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.9, occurrence: 1}, {min : 7.9, max : 77.9, occurrence: 5}, {min : 77.9, max : 147.9, occurrence: 5}, {min : 147.9, max : 176.9, occurrence: 1}, {min : 176.9, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 20, underflow: 20, binCount: null, binSize: 10}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 20, occurrence: 2}, {min : 20, max : 20, occurrence: 0}, {min : 20, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 29, occurrence: 2}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 177, underflow: 7, binCount: null, binSize: 50}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 57, occurrence: 5}, {min : 57, max : 107, occurrence: 2}, {min : 107, max : 157, occurrence: 5}, {min : 157, max : 207, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.1, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.1, occurrence: 1}, {min : 7.1, max : 177, occurrence: 12}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.1, binCount: 1, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.1, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 18, binCount: 3, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 18, occurrence: 2}, {min : 18, max : 18, occurrence: 0}, {min : 18, max : 18, occurrence: 0}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 176.9, underflow: null, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 176.9, occurrence: 12}, {min : 176.9, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 30.9, underflow: null, binCount: 1, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 30.9, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7, underflow: null, binCount: 3, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 7, occurrence: 1}, {min : 7, max : 7, occurrence: 0}, {min : 7, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 169.9, underflow: 7.1, binCount: 1, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 7.1, occurrence: 1}, {min : 169.9, max : null, occurrence: 12}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 28, underflow: 28, binCount: 3, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 28, occurrence: 2}, {min : 28, max : 28, occurrence: 0}, {min : 28, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 17.5, underflow: 8.5, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 8.5, occurrence: 1}, {min : 17.5, max : null, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: 10, underflow: 8, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 8, occurrence: 1}, {min : 10, max : null, occurrence: 2}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + }) + } + + function testHistogramHandleAggregationMinAndMax () { + QUnit.test("Test: Histogram aggregation min and max calculations", function (assert) { + + let chartsDrawer = new AscFormat.CChartsDrawer(); + let cachedData = {aggregation : {}}; + let axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + let numArr = [{val: 7}, {val: 9}]; + let strArr = [{val: "c"}, {val: "#"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [7, 9]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + strArr = [{val: "c"}, {val: "#"}, {val: "f"}, {val: "c"}, {val: "c"}, {val: "c"}, {val: "c"}, {val: "f"}, {val: "f"}, {val: "d"}, {val: "f"}, {val: "d"}, {val: "d"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [7, 451]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7},]; + strArr = []; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [7, 7]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + strArr = [{val: "7"}, {val: "7"}, {val: "31"}, {val: "31"}, {val: "47"}, {val: "75"}, {val: "87"}, {val: "115"}, {val: "116"}, {val: "119"}, {val: "119"}, {val: "155"}, {val: "177"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [7, 238]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + cachedData = {aggregation : {}}; + axisProperties = { + cat : {max: null, min:null, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 0}, {val: 9}, {val: 31}, {val: 0}]; + strArr = [{val: "c"}, {val: "#"}, {val: "f"}, {val: "c"}]; + chartsDrawer._chartExHandleAggregation(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, strArr, axisProperties); + result = [0, 31]; + + assert.ok(isEqual(result[0], axisProperties.val.min), "Histogram; aggregation keys calculated incorrectly:" + result[0] + ', got:' + axisProperties.val.min); + assert.ok(isEqual(result[1], axisProperties.val.max), "Histogram; aggregation values calculated incorrectly:" + result[1] + ', got:' + axisProperties.val.max); + + }) + } + + + function testHistogramHandleBinningMinAndMaxAndScale () { + + // this function compares each object inside the arrays + // if there is an object different for each array + // this function will return the index, the true object, and its incorrect prediction + function checkArraysOfObjects (arr, predicted) { + if (!arr || !predicted) { + return; + } + if (arr.length !== predicted.length) { + return ['arrays are different', 'arrays are different', 'arrays are different']; + } + for (let i = 0; i < arr.length; i++) { + const st1 = !isEqual(arr[i].min, predicted[i].min); + const st2 = !isEqual(arr[i].max, predicted[i].max); + const st3 = !isEqual(arr[i].occurrence, predicted[i].occurrence); + if (st1 || st2 || st3) { + return [i, arr[i], predicted[i]]; + } + } + return false; + } + + + QUnit.test("Test: Histogram binning min and max and scale", function (assert) { + + let chartsDrawer = new AscFormat.CChartsDrawer(); + let cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + let axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + let numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + let resultMax = 7; + let resultMin = 1; + let resultScale = [7, 89, 171, 253]; + let test1 = axisProperties.val.max === resultMax; + let test2 = axisProperties.val.min === resultMin; + let test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 119, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [7, 78, 149]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 116, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [7, 78, 149]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 87, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 5; + resultMin = 1; + resultScale = [7, 63, 119]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 47, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 4; + resultMin = 1; + resultScale = [7, 41, 75]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 3; + resultMin = 1; + resultScale = [7, 39]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [7, 10.9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7, 12]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 8; + resultMin = 1; + resultScale = [7, 12]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: 26}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 4; + resultMin = 1; + resultScale = [7, 33, 59, 85, 111, 137, 163, 189]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: 5}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [7, 12, 17, 22, 27, 32]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: 10}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7, 17, 27]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: 1, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 13; + resultMin = 1; + resultScale = [7, 177]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: 3, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7, 7.666666667, 8.333333333, 9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:31, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [31, 31, 31]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.1, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [7.1, 89.1, 171.1, 253.1]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 25, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 119, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 5; + resultMin = 1; + resultScale = [25, 96, 167]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 78, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 116, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [78, 149]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 86.9999, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 87, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [86.9999, 142.9999]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 47, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 41, occurrence: 4}, {min : 41, max : 75, occurrence: 1}]; + isProblematic = checkArraysOfObjects(result, cachedData.results); + message = isProblematic ? "Histogram; binning ranges calculated incorrectly at index: " + isProblematic[0] + ", Expected value were: " + JSON.stringify(isProblematic[1]) + ', got:' + JSON.stringify(isProblematic[2]) : 'test passed'; + assert.ok(!isProblematic, message); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 30, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [30, 62]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.4, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7.5, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7.5}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7.4, 8.38]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 6.99999, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 12, occurrence: 1}]; + resultMax = 1; + resultMin = 1; + resultScale = [7, 12]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 8; + resultMin = 1; + resultScale = [7, 12]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.5, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7.5, 11.4]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 8, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 8, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 8}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [8, 10]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 176.99, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 7; + resultMin = 1; + resultScale = [7, 89, 171, 176.99]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 116, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 119, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [7, 78, 116]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 78, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 116, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [7, 78]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 87, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [7, 7]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 47, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 47, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 4; + resultMin = 1; + resultScale = [7, 41, 75]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [7, 8]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8.9, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7, 8.9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7.111111, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7, 12]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7.111111, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 8; + resultMin = 1; + resultScale = [7, 12]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 8, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 8}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [7, 9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 176.99, underflow: 7.1, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [7.1, 89.1, 171.1, 176.99]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 116, underflow: 25, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 119, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 5; + resultMin = 1; + resultScale = [25, 96, 116]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 78, underflow: 78, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 116, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [78, 78]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7, underflow: 86.999, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 87, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 6; + resultMin = 1; + resultScale = [86.999, 142.999]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 47, underflow: 7, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 47, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 4; + resultMin = 1; + resultScale = [7, 41, 75]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8, underflow: 30, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [30, 62]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 8.9, underflow: 7.4, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 9, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7.4, 8.9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 6.999, underflow: 7.1111, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7, 12]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7.0, underflow: 7.1111, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 7, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}, {val: 7}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 8; + resultMin = 1; + resultScale = [7, 12]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.1, binCount: null, binSize: 40}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 4; + resultMin = 1; + resultScale = [7.1, 47.1, 87.1, 127.1, 167.1, 207.1]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 20, binCount: null, binSize: 15}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [20, 35]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 18, binCount: null, binSize: 110}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [18, 128]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7, binCount: null, binSize: 50}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 5; + resultMin = 1; + resultScale = [7, 57, 107, 157, 207]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 169.9, underflow: null, binCount: null, binSize: 40}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 5; + resultMin = 1; + resultScale = [7, 47, 87, 127, 167, 169.9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 20, underflow: null, binCount: null, binSize: 8}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : 7, max : 15, occurrence: 2}, {min : 15, max : 20, occurrence: 0}, {min : 20, max : null, occurrence: 1}]; + resultMax = 2; + resultMin = 1; + resultScale = [7, 15, 20]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7, underflow: null, binCount: null, binSize: 15}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7, 7]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 177, underflow: null, binCount: null, binSize: 50}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 5; + resultMin = 1; + resultScale = [7, 57, 107, 157, 207]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 176.9, underflow: 7.9, binCount: null, binSize: 70}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 5; + resultMin = 1; + resultScale = [7.9, 77.9, 147.9, 176.9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 20, underflow: 20, binCount: null, binSize: 10}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [20, 20]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: null, binCount: null, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [7, 29]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 177, underflow: 7, binCount: null, binSize: 50}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 5; + resultMin = 1; + resultScale = [7, 57, 107, 157, 207]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.1, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 12; + resultMin = 1; + resultScale = [7.1, 177]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 7.1, binCount: 1, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7.1]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: null, underflow: 18, binCount: 3, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [18, 18, 18]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 176.9, underflow: null, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 12; + resultMin = 1; + resultScale = [7, 176.9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 30.9, underflow: null, binCount: 1, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 7, underflow: null, binCount: 3, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [7, 7, 7]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 169.9, underflow: 7.1, binCount: 1, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 177, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}, {val: 31}, {val: 47}, {val: 75}, {val: 87}, {val: 115}, {val: 116}, {val: 119}, {val: 119}, {val: 155}, {val: 177}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 12; + resultMin = 1; + resultScale = [7.1, 169.9]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 28, underflow: 28, binCount: 3, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 31, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 2; + resultMin = 1; + resultScale = [28, 28]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 17.5, underflow: 8.5, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 18}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + resultMax = 1; + resultMin = 1; + resultScale = [8.5, 17.5]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + + cachedData = { + binning : { intervalClosed : 1, overflow: 10, underflow: 8, binCount: 2, binSize: null}, + results: []}; + axisProperties = { + cat : {max: 18, min:7, scale : []}, + val : {max: null, min:null, scale : []}, + }; + numArr = [{val: 7}, {val: 9}, {val: 31}]; + chartsDrawer._chartExHandleBinning(AscFormat.SERIES_LAYOUT_CLUSTERED_COLUMN, cachedData, numArr, axisProperties); + result = [{min : null, max : 8, occurrence: 1}, {min : 10, max : null, occurrence: 2}]; + resultMax = 2; + resultMin = 1; + resultScale = [8, 10]; + test1 = axisProperties.val.max === resultMax; + test2 = axisProperties.val.min === resultMin; + test3 = areSame(axisProperties.cat.scale, resultScale); + assert.ok(test1, test1 ? 'test passed' : "Histogram; binning val max calculated incorrectly: " + resultMax + ", got: " + axisProperties.val.max); + assert.ok(test2, test2 ? 'test passed' : "Histogram; binning val min calculated incorrectly: " + resultMin + ", got: " + axisProperties.val.min); + assert.ok(test3, test3 ? 'test passed' : "Histogram; binning cat scale calculated incorrectly: " + resultScale + ", got: " + axisProperties.cat.scale); + }) + } + + function testRoundValue () { + QUnit.test("Test: RoundValues function", function (assert) { + + let chartsDrawer = new AscFormat.CChartsDrawer(); + let val = 105.965; + let predicted = chartsDrawer._roundValue(val); + result = 105.965; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 105.965000000002; + predicted = chartsDrawer._roundValue(val); + result = 105.965; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 105.965000000002; + predicted = chartsDrawer._roundValue(val, true, 2); + result = 106; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 106.82; + predicted = chartsDrawer._roundValue(val, true, 2); + result = 107; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 106.823; + predicted = chartsDrawer._roundValue(val, false, 2); + result = 106.82; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 1.452369; + predicted = chartsDrawer._roundValue(val, true, 1); + result = 1.5; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 10536.236958; + predicted = chartsDrawer._roundValue(val, true, 1); + result = 11000; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 0.5623695865465845; + predicted = chartsDrawer._roundValue(val); + result = 0.5623695865; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 15262.1262653592; + predicted = chartsDrawer._roundValue(val); + result = 15262.126256359; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = 15262.1262653592; + predicted = chartsDrawer._roundValue(val / 0); + result = 1; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = -105.965000000002; + predicted = chartsDrawer._roundValue(val); + result = -105.965; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = -105.965000000002; + predicted = chartsDrawer._roundValue(val, true, 2); + result = -106; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + val = -106.82; + predicted = chartsDrawer._roundValue(val, true, 2); + result = -107; + + assert.ok(isEqual(result, predicted), "RoundValues calculated incorrectly:" + result + ', got:' + predicted); + + }) + } + QUnit.module("ChartsDraw"); function startTests() { @@ -3960,5 +6548,11 @@ $(function () { testDispR() testIntercept(); testLineBuilderApproximatedBezier(); + testLineBuilderApproximatedBezierBoundary(); + testHistogramHandleAggregation(); + testHistogramHandleAggregationMinAndMax(); + testHistogramHandleBinning(); + testHistogramHandleBinningMinAndMaxAndScale(); + testRoundValue(); } }); diff --git a/tests/cell/spreadsheet-calculation/CopyPasteTests.js b/tests/cell/spreadsheet-calculation/CopyPasteTests.js index ca368b3137..2ea0b890ac 100644 --- a/tests/cell/spreadsheet-calculation/CopyPasteTests.js +++ b/tests/cell/spreadsheet-calculation/CopyPasteTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -59,6 +59,10 @@ $(function () { }; AscCommonExcel.WorksheetView.prototype.getZoom = function () { }; + AscCommonExcel.WorksheetView.prototype._getPPIY = function () { + }; + AscCommonExcel.WorksheetView.prototype._getPPIX = function () { + }; AscCommon.baseEditorsApi.prototype._onEndLoadSdk = function () { }; Asc.ReadDefTableStyles = function(){}; diff --git a/tests/cell/spreadsheet-calculation/ExternalReference.html b/tests/cell/spreadsheet-calculation/ExternalReference.html new file mode 100644 index 0000000000..3b4a096cbd --- /dev/null +++ b/tests/cell/spreadsheet-calculation/ExternalReference.html @@ -0,0 +1,31 @@ + + + + + + Unit Tests + + + + + + + + + + + + + +

      External reference tests

      +

      +
      +

      +
        +
        test markup, will be hidden
        + + diff --git a/tests/cell/spreadsheet-calculation/ExternalReference.js b/tests/cell/spreadsheet-calculation/ExternalReference.js new file mode 100644 index 0000000000..70ca1a05e5 --- /dev/null +++ b/tests/cell/spreadsheet-calculation/ExternalReference.js @@ -0,0 +1,1047 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + + +$(function () { + + var cDate = Asc.cDate; + + function toFixed(n) { + return n;//.toFixed( AscCommonExcel.cExcelSignificantDigits ) - 0; + } + + function difBetween(a, b) { + return Math.abs(a - b) < dif + } + + function _getPMT(fZins, fZzr, fBw, fZw, nF) { + var fRmz; + if (fZins == 0.0) { + fRmz = (fBw + fZw) / fZzr; + } else { + var fTerm = Math.pow(1.0 + fZins, fZzr); + if (nF > 0) { + fRmz = (fZw * fZins / (fTerm - 1.0) + fBw * fZins / (1.0 - 1.0 / fTerm)) / (1.0 + fZins); + } else { + fRmz = fZw * fZins / (fTerm - 1.0) + fBw * fZins / (1.0 - 1.0 / fTerm); + } + } + + return -fRmz; + } + + function _getFV(fZins, fZzr, fRmz, fBw, nF) { + var fZw; + if (fZins == 0.0) { + fZw = fBw + fRmz * fZzr; + } else { + var fTerm = Math.pow(1.0 + fZins, fZzr); + if (nF > 0) { + fZw = fBw * fTerm + fRmz * (1.0 + fZins) * (fTerm - 1.0) / fZins; + } else { + fZw = fBw * fTerm + fRmz * (fTerm - 1.0) / fZins; + } + } + + return -fZw; + } + + function _getDDB(cost, salvage, life, period, factor) { + var ddb, ipmt, oldCost, newCost; + ipmt = factor / life; + if (ipmt >= 1) { + ipmt = 1; + if (period == 1) { + oldCost = cost; + } else { + oldCost = 0; + } + } else { + oldCost = cost * Math.pow(1 - ipmt, period - 1); + } + newCost = cost * Math.pow(1 - ipmt, period); + + if (newCost < salvage) { + ddb = oldCost - salvage; + } else { + ddb = oldCost - newCost; + } + if (ddb < 0) { + ddb = 0; + } + return ddb; + } + + function _getIPMT(rate, per, pv, type, pmt) { + var ipmt; + + if (per == 1) { + if (type > 0) { + ipmt = 0; + } else { + ipmt = -pv; + } + } else { + if (type > 0) { + ipmt = _getFV(rate, per - 2, pmt, pv, 1) - pmt; + } else { + ipmt = _getFV(rate, per - 1, pmt, pv, 0); + } + } + return ipmt * rate + } + + function _diffDate(d1, d2, mode) { + var date1 = d1.getDate(), month1 = d1.getMonth(), year1 = d1.getFullYear(), date2 = d2.getDate(), month2 = d2.getMonth(), year2 = d2.getFullYear(); + + switch (mode) { + case 0: + return Math.abs(GetDiffDate360(date1, month1, year1, date2, month2, year2, true)); + case 1: + var yc = Math.abs(year2 - year1), sd = year1 > year2 ? d2 : d1, yearAverage = sd.isLeapYear() ? 366 : 365, dayDiff = Math.abs(d2 - d1); + for (var i = 0; i < yc; i++) { + sd.addYears(1); + yearAverage += sd.isLeapYear() ? 366 : 365; + } + yearAverage /= (yc + 1); + dayDiff /= c_msPerDay; + return dayDiff; + case 2: + var dayDiff = Math.abs(d2 - d1); + dayDiff /= c_msPerDay; + return dayDiff; + case 3: + var dayDiff = Math.abs(d2 - d1); + dayDiff /= c_msPerDay; + return dayDiff; + case 4: + return Math.abs(GetDiffDate360(date1, month1, year1, date2, month2, year2, false)); + default: + return "#NUM!"; + } + } + + function _yearFrac(d1, d2, mode) { + var date1 = d1.getDate(), month1 = d1.getMonth() + 1, year1 = d1.getFullYear(), date2 = d2.getDate(), month2 = d2.getMonth() + 1, year2 = d2.getFullYear(); + + switch (mode) { + case 0: + return Math.abs(GetDiffDate360(date1, month1, year1, date2, month2, year2, true)) / 360; + case 1: + var yc = /*Math.abs*/(year2 - year1), sd = year1 > year2 ? new cDate(d2) : new cDate(d1), yearAverage = sd.isLeapYear() ? 366 : 365, + dayDiff = /*Math.abs*/(d2 - d1); + for (var i = 0; i < yc; i++) { + sd.addYears(1); + yearAverage += sd.isLeapYear() ? 366 : 365; + } + yearAverage /= (yc + 1); + dayDiff /= (yearAverage * c_msPerDay); + return dayDiff; + case 2: + var dayDiff = Math.abs(d2 - d1); + dayDiff /= (360 * c_msPerDay); + return dayDiff; + case 3: + var dayDiff = Math.abs(d2 - d1); + dayDiff /= (365 * c_msPerDay); + return dayDiff; + case 4: + return Math.abs(GetDiffDate360(date1, month1, year1, date2, month2, year2, false)) / 360; + default: + return "#NUM!"; + } + } + + function _lcl_GetCouppcd(settl, matur, freq) { + matur.setFullYear(settl.getFullYear()); + if (matur < settl) { + matur.addYears(1); + } + while (matur > settl) { + matur.addMonths(-12 / freq); + } + } + + function _lcl_GetCoupncd(settl, matur, freq) { + matur.setFullYear(settl.getFullYear()); + if (matur > settl) { + matur.addYears(-1); + } + while (matur <= settl) { + matur.addMonths(12 / freq); + } + } + + function _getcoupdaybs(settl, matur, frequency, basis) { + _lcl_GetCouppcd(settl, matur, frequency); + return _diffDate(settl, matur, basis); + } + + function _getcoupdays(settl, matur, frequency, basis) { + _lcl_GetCouppcd(settl, matur, frequency); + var n = new cDate(matur); + n.addMonths(12 / frequency); + return _diffDate(matur, n, basis); + } + + function _getdiffdate(d1, d2, nMode) { + var bNeg = d1 > d2; + + if (bNeg) { + var n = d2; + d2 = d1; + d1 = n; + } + + var nRet, pOptDaysIn1stYear; + + var nD1 = d1.getDate(), nM1 = d1.getMonth(), nY1 = d1.getFullYear(), nD2 = d2.getDate(), nM2 = d2.getMonth(), nY2 = d2.getFullYear(); + + switch (nMode) { + case 0: // 0=USA (NASD) 30/360 + case 4: // 4=Europe 30/360 + { + var bLeap = d1.isLeapYear(); + var nDays, nMonths/*, nYears*/; + + nMonths = nM2 - nM1; + nDays = nD2 - nD1; + + nMonths += (nY2 - nY1) * 12; + + nRet = nMonths * 30 + nDays; + if (nMode == 0 && nM1 == 2 && nM2 != 2 && nY1 == nY2) { + nRet -= bLeap ? 1 : 2; + } + + pOptDaysIn1stYear = 360; + } + break; + case 1: // 1=exact/exact + pOptDaysIn1stYear = d1.isLeapYear() ? 366 : 365; + nRet = d2 - d1; + break; + case 2: // 2=exact/360 + nRet = d2 - d1; + pOptDaysIn1stYear = 360; + break; + case 3: //3=exact/365 + nRet = d2 - d1; + pOptDaysIn1stYear = 365; + break; + } + + return (bNeg ? -nRet : nRet) / c_msPerDay / pOptDaysIn1stYear; + } + + function _getprice(nSettle, nMat, fRate, fYield, fRedemp, nFreq, nBase) { + + var fdays = AscCommonExcel.getcoupdays(new cDate(nSettle), new cDate(nMat), nFreq, nBase), + fdaybs = AscCommonExcel.getcoupdaybs(new cDate(nSettle), new cDate(nMat), nFreq, nBase), fnum = AscCommonExcel.getcoupnum(new cDate(nSettle), (nMat), nFreq, nBase), + fdaysnc = (fdays - fdaybs) / fdays, fT1 = 100 * fRate / nFreq, fT2 = 1 + fYield / nFreq, res = fRedemp / (Math.pow(1 + fYield / nFreq, fnum - 1 + fdaysnc)); + + /*var fRet = fRedemp / ( Math.pow( 1.0 + fYield / nFreq, fnum - 1.0 + fdaysnc ) ); + fRet -= 100.0 * fRate / nFreq * fdaybs / fdays; + + var fT1 = 100.0 * fRate / nFreq; + var fT2 = 1.0 + fYield / nFreq; + + for( var fK = 0.0 ; fK < fnum ; fK++ ){ + fRet += fT1 / Math.pow( fT2, fK + fdaysnc ); + } + + return fRet;*/ + + if (fnum == 1) { + return (fRedemp + fT1) / (1 + fdaysnc * fYield / nFreq) - 100 * fRate / nFreq * fdaybs / fdays; + } + + res -= 100 * fRate / nFreq * fdaybs / fdays; + + for (var i = 0; i < fnum; i++) { + res += fT1 / Math.pow(fT2, i + fdaysnc); + } + + return res; + } + + function _getYield(nSettle, nMat, fCoup, fPrice, fRedemp, nFreq, nBase) { + var fRate = fCoup, fPriceN = 0.0, fYield1 = 0.0, fYield2 = 1.0; + var fPrice1 = _getprice(nSettle, nMat, fRate, fYield1, fRedemp, nFreq, nBase); + var fPrice2 = _getprice(nSettle, nMat, fRate, fYield2, fRedemp, nFreq, nBase); + var fYieldN = (fYield2 - fYield1) * 0.5; + + for (var nIter = 0; nIter < 100 && fPriceN != fPrice; nIter++) { + fPriceN = _getprice(nSettle, nMat, fRate, fYieldN, fRedemp, nFreq, nBase); + + if (fPrice == fPrice1) { + return fYield1; + } else if (fPrice == fPrice2) { + return fYield2; + } else if (fPrice == fPriceN) { + return fYieldN; + } else if (fPrice < fPrice2) { + fYield2 *= 2.0; + fPrice2 = _getprice(nSettle, nMat, fRate, fYield2, fRedemp, nFreq, nBase); + + fYieldN = (fYield2 - fYield1) * 0.5; + } else { + if (fPrice < fPriceN) { + fYield1 = fYieldN; + fPrice1 = fPriceN; + } else { + fYield2 = fYieldN; + fPrice2 = fPriceN; + } + + fYieldN = fYield2 - (fYield2 - fYield1) * ((fPrice - fPrice2) / (fPrice1 - fPrice2)); + } + } + + if (Math.abs(fPrice - fPriceN) > fPrice / 100.0) { + return "#NUM!"; + } // result not precise enough + + return fYieldN; + } + + function _getyieldmat(nSettle, nMat, nIssue, fRate, fPrice, nBase) { + + var fIssMat = _yearFrac(nIssue, nMat, nBase); + var fIssSet = _yearFrac(nIssue, nSettle, nBase); + var fSetMat = _yearFrac(nSettle, nMat, nBase); + + var y = 1.0 + fIssMat * fRate; + y /= fPrice / 100.0 + fIssSet * fRate; + y--; + y /= fSetMat; + + return y; + + } + + function _coupnum(settlement, maturity, frequency, basis) { + + basis = (basis !== undefined ? basis : 0); + + var n = new cDate(maturity); + _lcl_GetCouppcd(settlement, n, frequency); + var nMonths = (maturity.getFullYear() - n.getFullYear()) * 12 + maturity.getMonth() - n.getMonth(); + return nMonths * frequency / 12; + + } + + function _duration(settlement, maturity, coupon, yld, frequency, basis) { + var dbc = AscCommonExcel.getcoupdaybs(new cDate(settlement), new cDate(maturity), frequency, basis), + coupD = AscCommonExcel.getcoupdays(new cDate(settlement), new cDate(maturity), frequency, basis), + numCoup = AscCommonExcel.getcoupnum(new cDate(settlement), new cDate(maturity), frequency); + + if (settlement >= maturity || basis < 0 || basis > 4 || (frequency != 1 && frequency != 2 && frequency != 4) || yld < 0 || coupon < 0) { + return "#NUM!"; + } + + var duration = 0, p = 0; + + var dsc = coupD - dbc; + var diff = dsc / coupD - 1; + yld = yld / frequency + 1; + + + coupon *= 100 / frequency; + + for (var index = 1; index <= numCoup; index++) { + var di = index + diff; + + var yldPOW = Math.pow(yld, di); + + duration += di * coupon / yldPOW; + + p += coupon / yldPOW; + } + + duration += (diff + numCoup) * 100 / Math.pow(yld, diff + numCoup); + p += 100 / Math.pow(yld, diff + numCoup); + + return duration / p / frequency; + } + + function numDivFact(num, fact) { + var res = num / Math.fact(fact); + res = res.toString(); + return res; + } + + function testArrayFormula(assert, func, dNotSupportAreaArg) { + + var getValue = function (ref) { + oParser = new parserFormula(func + "(" + ref + ")", "A2", ws); + assert.ok(oParser.parse()); + return oParser.calculate().getValue(); + }; + + //***array-formula*** + ws.getRange2("A100").setValue("1"); + ws.getRange2("B100").setValue("3"); + ws.getRange2("C100").setValue("-4"); + ws.getRange2("A101").setValue("2"); + ws.getRange2("B101").setValue("4"); + ws.getRange2("C101").setValue("5"); + + + oParser = new parserFormula(func + "(A100:C101)", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:H107").bbox); + assert.ok(oParser.parse()); + var array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), getValue("A100")); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), getValue("B100")); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), getValue("C100")); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), getValue("A101")); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), getValue("B101")); + assert.strictEqual(array.getElementRowCol(1, 2).getValue(), getValue("C101")); + } else { + if (!dNotSupportAreaArg) { + assert.strictEqual(false, true); + } + consoleLog("func: " + func + " don't return area array"); + } + + oParser = new parserFormula(func + "({1,2,-3})", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:H107").bbox); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), getValue(1)); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), getValue(2)); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), getValue(-3)); + } + + //returnOnlyValue - те функции, на вход которых всегда должны подаваться массивы и которые возвращают единственное значение + function testArrayFormula2(assert, func, minArgCount, maxArgCount, dNotSupportAreaArg, returnOnlyValue) { + + var getValue = function (ref, countArg) { + var argStr = "("; + for (var j = 1; j <= countArg; j++) { + argStr += ref; + if (i !== j) { + argStr += ","; + } else { + argStr += ")"; + } + } + oParser = new parserFormula(func + argStr, "A2", ws); + assert.ok(oParser.parse()); + return oParser.calculate().getValue(); + }; + + + //***array-formula*** + ws.getRange2("A100").setValue("1"); + ws.getRange2("B100").setValue("3"); + ws.getRange2("C100").setValue("-4"); + ws.getRange2("A101").setValue("2"); + ws.getRange2("B101").setValue("4"); + ws.getRange2("C101").setValue("5"); + + //формируем массив значений + var randomArray = []; + var randomStrArray = "{"; + var maxArg = 4; + for (var i = 1; i <= maxArg; i++) { + var randVal = Math.random(); + randomArray.push(randVal); + randomStrArray += randVal; + if (i !== maxArg) { + randomStrArray += ","; + } else { + randomStrArray += "}"; + } + } + + for (var i = minArgCount; i <= maxArgCount; i++) { + var argStrArr = "("; + var randomArgStrArr = "("; + for (var j = 1; j <= i; j++) { + argStrArr += "A100:C101"; + randomArgStrArr += randomStrArray; + if (i !== j) { + argStrArr += ","; + randomArgStrArr += ","; + } else { + argStrArr += ")"; + randomArgStrArr += ")"; + } + } + + oParser = new parserFormula(func + argStrArr, "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:H107").bbox); + assert.ok(oParser.parse()); + var array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), getValue("A100", i)); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), getValue("B100", i)); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), getValue("C100", i)); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), getValue("A101", i)); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), getValue("B101", i)); + assert.strictEqual(array.getElementRowCol(1, 2).getValue(), getValue("C101", i)); + } else { + if (!(dNotSupportAreaArg || returnOnlyValue)) { + assert.strictEqual(false, true); + } + consoleLog("func: " + func + " don't return area array"); + } + + oParser = new parserFormula(func + randomArgStrArr, "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:H107").bbox); + assert.ok(oParser.parse()); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), getValue(randomArray[0], i)); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), getValue(randomArray[1], i)); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), getValue(randomArray[2], i)); + } else { + if (!returnOnlyValue) { + assert.strictEqual(false, true); + } + consoleLog("func: " + func + " don't return array"); + } + } + } + + function testArrayFormulaEqualsValues(assert, str, formula, isNotLowerCase) { + //***array-formula*** + ws.getRange2("A1").setValue("1"); + ws.getRange2("B1").setValue("3.123"); + ws.getRange2("C1").setValue("-4"); + ws.getRange2("A2").setValue("2"); + ws.getRange2("B2").setValue("4"); + ws.getRange2("C2").setValue("5"); + + oParser = new parserFormula(formula, "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E6:H8").bbox); + assert.ok(oParser.parse()); + var array = oParser.calculate(); + + var splitStr = str.split(";"); + + for (var i = 0; i < splitStr.length; i++) { + var subSplitStr = splitStr[i].split(","); + for (var j = 0; j < subSplitStr.length; j++) { + var valMs = subSplitStr[j]; + var element; + if (array.getElementRowCol) { + var row = 1 === array.array.length ? 0 : i; + var col = 1 === array.array[0].length ? 0 : j; + if (array.array[row] && array.array[row][col]) { + element = array.getElementRowCol(row, col); + } else { + element = new window['AscCommonExcel'].cError(window['AscCommonExcel'].cErrorType.not_available); + } + } else { + element = array; + } + var ourVal = element && undefined != element.value ? element.value.toString() : "#N/A"; + if (!isNotLowerCase) { + valMs = valMs.toLowerCase(); + ourVal = ourVal.toLowerCase(); + } + assert.strictEqual(valMs, ourVal, "formula: " + formula + " i: " + i + " j: " + j) + } + } + } + + function _getValue(from, row, col) { + var res; + if (from.type === AscCommonExcel.cElementType.array) { + res = from.getElementRowCol(row !== undefined ? row : 0, col !== undefined ? col : 0).getValue(); + } else if (from.type === AscCommonExcel.cElementType.cellsRange || from.type === AscCommonExcel.cElementType.cellsRange3D) { + res = from.getValueByRowCol(row !== undefined ? row : 0, col !== undefined ? col : 0).getValue(); + } else if (from.type === AscCommonExcel.cElementType.cell || from.type === AscCommonExcel.cElementType.cell3D) { + res = from.getValue().getValue(); + } else { + res = from.getValue(); + } + return res; + } + + function consoleLog(val) { + //console.log(val); + } + + var newFormulaParser = false; + + var c_msPerDay = AscCommonExcel.c_msPerDay; + var parserFormula = AscCommonExcel.parserFormula; + var GetDiffDate360 = AscCommonExcel.GetDiffDate360; + var fSortAscending = AscCommon.fSortAscending; + var g_oIdCounter = AscCommon.g_oIdCounter; + + var oParser, wb, ws, dif = 1e-9, sData = AscCommon.getEmpty(), tmp, array; + if (AscCommon.c_oSerFormat.Signature === sData.substring(0, AscCommon.c_oSerFormat.Signature.length)) { + + Asc.spreadsheet_api.prototype._init = function() { + this.isLoadFullApi = true; + }; + + + let api = new Asc.spreadsheet_api({ + 'id-view': 'editor_sdk' + }); + + let docInfo = new Asc.asc_CDocInfo(); + docInfo.asc_putTitle("TeSt.xlsx"); + api.DocInfo = docInfo; + + + window["Asc"]["editor"] = api; + + AscCommon.g_oTableId.init(); + wb = new AscCommonExcel.Workbook(new AscCommonExcel.asc_CHandlersList(), api); + AscCommon.History.init(wb); + wb.maxDigitWidth = 7; + wb.paddingPlusBorder = 5; + + api.wbModel = wb; + + if (this.User) { + g_oIdCounter.Set_UserId(this.User.asc_getId()); + } + + AscCommonExcel.g_oUndoRedoCell = new AscCommonExcel.UndoRedoCell(wb); + AscCommonExcel.g_oUndoRedoWorksheet = new AscCommonExcel.UndoRedoWoorksheet(wb); + AscCommonExcel.g_oUndoRedoWorkbook = new AscCommonExcel.UndoRedoWorkbook(wb); + AscCommonExcel.g_oUndoRedoCol = new AscCommonExcel.UndoRedoRowCol(wb, false); + AscCommonExcel.g_oUndoRedoRow = new AscCommonExcel.UndoRedoRowCol(wb, true); + AscCommonExcel.g_oUndoRedoComment = new AscCommonExcel.UndoRedoComment(wb); + AscCommonExcel.g_oUndoRedoAutoFilters = new AscCommonExcel.UndoRedoAutoFilters(wb); + AscCommonExcel.g_DefNameWorksheet = new AscCommonExcel.Worksheet(wb, -1); + g_oIdCounter.Set_Load(false); + + var oBinaryFileReader = new AscCommonExcel.BinaryFileReader(); + oBinaryFileReader.Read(sData, wb); + ws = wb.getWorksheet(wb.getActive()); + AscCommonExcel.getFormulasInfo(); + } + + wb.dependencyFormulas.lockRecal(); + + QUnit.module("External reference"); + + QUnit.test("Test: \"test relative reference from absolute\"", function (assert) { + //by test external reference + //use when insert external link from clipboard + + let path1 = "C:/test1/testInside/testinside12/testInsied21/test1.xlsx"; + let path2 = "C:/test1/testInside/testInsied11/testinsied22/test2.xlsx"; + let need = "/test1/testInside/testinside12/testInsied21/test1.xlsx"; + let real = AscCommonExcel.buildRelativePath(path1, path2); + assert.strictEqual(need, real); + + // "/root/from1.xlsx" + path1 = "C:/root/test.xlsx"; + path2 = "C:/root/inside/inside2/inseide3/inside4/test.xlsx"; + need = "/root/test.xlsx"; + real = AscCommonExcel.buildRelativePath(path1, path2); + assert.strictEqual(need, real); + + // "inside/inside2/inseide3/inside4/from2.xlsx" + path1 = "C:/root/inside/inside2/inseide3/inside4/test.xlsx"; + path2 = "C:/root/test.xlsx"; + need = "inside/inside2/inseide3/inside4/test.xlsx"; + real = AscCommonExcel.buildRelativePath(path1, path2); + assert.strictEqual(need, real); + + + path1 = "D:/root/inside/inside2/inseide3/inside4/test.xlsx"; + path2 = "C:/root/test.xlsx"; + need = "file:///D:\\root\\inside\\inside2\\inseide3\\inside4\\test.xlsx"; + real = AscCommonExcel.buildRelativePath(path1, path2); + assert.strictEqual(need, real); + }); + + let initReference = function (eR, sheetName, range, val, needUpdateExternalWs) { + range = AscCommonExcel.g_oRangeCache.getAscRange(range); + let externalSheetDataSet = eR.getSheetDataSetByName(sheetName); + for (let i = range.r1; i <= range.r2; i++) { + let row = externalSheetDataSet.getRow(i + 1, true); + for (let j = range.c1; j <= range.c2; j++) { + let cell = row.getCell(j, true); + cell.CellValue = val[i][j]; + } + } + if (needUpdateExternalWs) { + //update temporary worksheet from external reference structure + eR.initWorksheetFromSheetDataSet(sheetName); + } + }; + + let initDefinedName = function (eR, sheetName, range, name) { + let RealDefNameWorksheet = AscCommonExcel.g_DefNameWorksheet; + AscCommonExcel.g_DefNameWorksheet = eR.worksheets[sheetName]; + wb.dependencyFormulas.initOpen(); + let _obj = { + value: name, + ws: {sName: sheetName} + }; + eR.initDefinedName(_obj); + AscCommonExcel.g_DefNameWorksheet = RealDefNameWorksheet; + }; + + let createExternalWorksheet = function (name) { + let externalWs = new AscCommonExcel.Worksheet(wb); + externalWs.sName = name; + return externalWs; + }; + + QUnit.test("Test: \"External reference test: importRange function\"", function (assert) { + + let tempLink = '"http://localhost/editor?fileName=new%20(51).xlsx"'; + let parseResult = new AscCommonExcel.ParseResult([]); + oParser = new parserFormula('IMPORTRANGE(' + tempLink + ',"Sheet1!A1")', 'A2', ws); + assert.ok(oParser.parse(null, null, parseResult), 'IMPORTRANGE(' + tempLink + ',"Sheet1!A1")'); + let res = oParser.calculate().getValue(); + assert.strictEqual(res, "#REF!", 'IMPORTRANGE_1'); + + assert.strictEqual(wb.externalReferences.length, 0, 'IMPORTRANGE_1_external_reference_length_before_add'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_after_add'); + + res = oParser.calculate(); + let dimension = res.getDimensions(); + assert.strictEqual(dimension.row, 0, 'IMPORTRANGE_1_after_add_references_row_count'); + + initReference(wb.externalReferences[0], "Sheet1", "A1", [[1000]]); + res = oParser.calculate(); + assert.strictEqual(res.getElementRowCol(0, 0).getValue(), 1000, 'IMPORTRANGE_1_AFTER_INIT'); + + assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_before_add_clone_2'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_after_add_clone_2'); + + //check remove on setValue + ws.getRange2("A2").setValue('=importrange(\"http://localhost/editor?fileName=new%20(51).xlsx\",\"Sheet1!A1\"'); + assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_before_add_clone_3'); + + ws.getRange2("A2").setValue('=importrange(\"http://localhost/editor?fileName=new%20(51).xlsx\",\"Sheet1!A2\"'); + assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_after_remove_value'); + + ws.getRange2("A2").setValue("1"); + assert.strictEqual(wb.externalReferences.length, 0, 'IMPORTRANGE_1_external_reference_length_after_remove_value'); + }); + + QUnit.test("Test: \"add/remove external reference\"", function (assert) { + // 1.Ref + //'[new.xlsx]Sheet1'!A1 + let tempLink = '[new.xlsx]'; + let parseResult = new AscCommonExcel.ParseResult([]); + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 1, 0); + + oParser = new parserFormula("SUM(" + "'" + tempLink + "Sheet1" + "'" + "!A1)", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "SUM(" + "'" + tempLink + "Sheet1" + "'" + "!A1)"); + assert.strictEqual(oParser.calculate().getValue(), "#NAME?", '#NAME!'); + + assert.strictEqual(wb.externalReferences.length, 0, 'SUM_1_external_reference_length_before_add'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 1, 'SUM_1_external_reference_length_after_add'); + + oParser.isParsed = false; + assert.ok(oParser.parse(true, null, parseResult), "SUM(" + "'" + tempLink + "Sheet1" + "'" + "!A1)"); + assert.strictEqual(oParser.calculate().getValue(), "#REF!", 'result after add reference'); + + //update external reference structure + initReference(wb.externalReferences[0], "Sheet1", "A1", [["1000"]], true); + assert.strictEqual(oParser.calculate().getValue(), 1000, 'EXTERNAL_1_AFTER_INIT'); + + //create new ws and put date + let externalWs = createExternalWorksheet("Sheet1"); + externalWs.getRange2("A1").setValue("2000"); + //such as update from portal + wb.externalReferences[0].updateData([externalWs]); + assert.strictEqual(oParser.calculate().getValue(), 2000, 'EXTERNAL_2_AFTER_UPDATE'); + + //remove external reference + wb.removeExternalReferences([wb.externalReferences[0].getAscLink()]); + assert.strictEqual(wb.externalReferences.length, 0, 'external_reference_length_after_delete'); + + // 2.Area + //'[new.xlsx]Sheet1'!A1:A2 + parseResult = new AscCommonExcel.ParseResult([]); + oParser = new parserFormula("SUM(" + "'" + tempLink + "Sheet1" + "'" + "!A1:A2)", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "SUM(" + "'" + tempLink + "Sheet1" + "'" + "!A1:A2)"); + assert.strictEqual(oParser.calculate().getValue(), "#NAME?", '#NAME!'); + + assert.strictEqual(wb.externalReferences.length, 0, 'SUM_2_external_reference_length_before_add'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 1, 'SUM_2_external_reference_length_after_add'); + + oParser.isParsed = false; + assert.ok(oParser.parse(true, null, parseResult), "SUM(" + "'" + tempLink + "Sheet1" + "'" + "!A1:A2)"); + assert.strictEqual(oParser.calculate().getValue(), 0, 'result after add area'); + + //update external reference structure + initReference(wb.externalReferences[0], "Sheet1", "A1:A2", [["1000"],["2000"]], true); + assert.strictEqual(oParser.calculate().getValue(), 3000, 'EXTERNAL_AREA_1_AFTER_INIT'); + + //create new ws and put date + externalWs = createExternalWorksheet("Sheet1"); + externalWs.getRange2("A1").setValue("2000"); + externalWs.getRange2("A2").setValue("4000"); + //such as update from portal + wb.externalReferences[0].updateData([externalWs]); + assert.strictEqual(oParser.calculate().getValue(), 6000, 'EXTERNAL_AREA_2_AFTER_UPDATE'); + + //remove external reference + wb.removeExternalReferences([wb.externalReferences[0].getAscLink()]); + assert.strictEqual(wb.externalReferences.length, 0, 'external_area_length_after_delete'); + + // 3. Name + //'[new.xlsx]Sheet1'!test + oParser = new parserFormula("SUM(" + "'" + tempLink + "Sheet1" + "'" + "!test)", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "SUM(" + "'" + tempLink + "Sheet1" + "'" + "!test)"); + assert.strictEqual(oParser.calculate().getValue(), "#NAME?", '#NAME!'); + + assert.strictEqual(wb.externalReferences.length, 0, 'SUM_2_external_reference_length_before_add'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 1, 'SUM_2_external_reference_length_after_add'); + + //update external reference structure + let externalWb = wb.externalReferences[0].getWb(); + let exWs = wb.externalReferences[0].worksheets["Sheet1"]; + externalWb.insertWorksheet(0, exWs); + //on parse name3d use g_DefNameWorksheet + let RealDefNameWorksheet = AscCommonExcel.g_DefNameWorksheet; + AscCommonExcel.g_DefNameWorksheet = exWs; + let oDefName = new Asc.asc_CDefName("test", "Sheet1!" + "$A$1:$A$2"); + externalWb.editDefinesNames(null, oDefName); + AscCommonExcel.g_DefNameWorksheet = RealDefNameWorksheet; + + + oParser.isParsed = false; + oParser.outStack = []; + assert.ok(oParser.parse(true, null, parseResult), "SUM(" + "'" + tempLink + "Sheet1" + "'" + "!test)"); + assert.strictEqual(oParser.calculate().getValue(), 0, 'result after add name'); + + initDefinedName(wb.externalReferences[0], "Sheet1", "A1:A2", "test"); + initReference(wb.externalReferences[0], "Sheet1", "A1:A2", [["1000"],["2000"]], true); + assert.strictEqual(oParser.calculate().getValue(), 3000, 'EXTERNAL_NAME_1_AFTER_INIT'); + + //create new ws and put date + externalWs = createExternalWorksheet("Sheet1"); + externalWs.getRange2("A1").setValue("2000"); + externalWs.getRange2("A2").setValue("4000"); + //such as update from portal + wb.externalReferences[0].updateData([externalWs]); + assert.strictEqual(oParser.calculate().getValue(), 6000, 'EXTERNAL_NAME_2_AFTER_UPDATE'); + + //remove external reference + wb.removeExternalReferences([wb.externalReferences[0].getAscLink()]); + assert.strictEqual(wb.externalReferences.length, 0, 'external_name_length_after_delete'); + + // 4. Multiple reference in one string + //'[new.xlsx]Sheet1'!A1+'[new2.xlsx]Sheet1'!A1 + let secondLink = '[new2.xlsx]'; + oParser = new parserFormula("SUM(" + "'" + tempLink + "Sheet1" + "'" + "!A1+" + "'" + secondLink + "Sheet22" + "'" + "!A1" +")", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "SUM(" + "'" + tempLink + "Sheet1" + "'" + "!test)"); + assert.strictEqual(oParser.calculate().getValue(), "#NAME?", '#NAME!'); + + assert.strictEqual(wb.externalReferences.length, 0, 'SUM_2_external_reference_length_before_add'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 2, 'SUM_2_external_reference_length_after_add'); + + //remove two external reference + wb.removeExternalReferences([wb.externalReferences[0].getAscLink()]); + wb.removeExternalReferences([wb.externalReferences[0].getAscLink()]); + assert.strictEqual(wb.externalReferences.length, 0, 'external_name_length_after_delete'); + }); + + QUnit.test("Test: \"parse external reference tests\"", function (assert) { + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 1, 0); + let parseResult = new AscCommonExcel.ParseResult([]); + oParser = new parserFormula("'[book.xlsx]Sheet 1'!A1", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "'[book.xlsx]Sheet 1'!A1"); + + oParser = new parserFormula("'[book.xlsx]Sheet1'!A1", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "'[book.xlsx]Sheet 1'!A1"); + }); + + QUnit.test("Test: \"Change external reference tests\"", function (assert) { + let fLink = '[new.xlsx]'; + let sLink = '[new(1).xlsx]'; + let parseResult = new AscCommonExcel.ParseResult([]); + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 1, 0); + + oParser = new parserFormula("'" + fLink + "Sheet1" + "'" + "!A1", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "'" + fLink + "Sheet1" + "'" + "!A1"); + assert.strictEqual(oParser.calculate().getValue(), "#NAME?", '#NAME!'); + + assert.strictEqual(wb.externalReferences.length, 0, 'Reference length before add the first link'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 1, 'Reference length before add the second link'); + + oParser.isParsed = false; + assert.ok(oParser.parse(true, null, parseResult), "'" + fLink + "Sheet1" + "'" + "!A1"); + assert.strictEqual(oParser.calculate().getValue().getValue(), "#REF!", 'result after add reference'); + + //update external reference structure + initReference(wb.externalReferences[0], "Sheet1", "A1", [["1000"]], true); + assert.strictEqual(oParser.calculate().getValue().getValue(), 1000, 'EXTERNAL_AFTER_INIT'); + + let externalWs = createExternalWorksheet("Sheet1"); + externalWs.getRange2("A1").setValue("2000"); + wb.externalReferences[0].updateData([externalWs]); + assert.strictEqual(oParser.calculate().getValue().getValue(), 2000, 'EXTERNAL_AFTER_UPDATE'); + + // add the second link + oParser = new parserFormula("'" + sLink + "Sheet1" + "'" + "!A1", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "'" + sLink + "Sheet1" + "'" + "!A1"); + assert.strictEqual(oParser.calculate().getValue(), "#NAME?", '#NAME!'); + + assert.strictEqual(wb.externalReferences.length, 1, 'Reference length before add the second link'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 2, 'Reference length after add the second link'); + + oParser.isParsed = false; + assert.ok(oParser.parse(true, null, parseResult), "'" + sLink + "Sheet1" + "'" + "!A1"); + assert.strictEqual(oParser.calculate().getValue().getValue(), "#REF!", 'result after add reference'); + + initReference(wb.externalReferences[1], "Sheet1", "A1", [["1111"]], true); + assert.strictEqual(oParser.calculate().getValue().getValue(), 1111, 'EXTERNAL_AFTER_INIT'); + + let secondExternalWs = createExternalWorksheet("Sheet1"); + secondExternalWs.getRange2("A1").setValue("2222"); + wb.externalReferences[1].updateData([secondExternalWs]); + assert.strictEqual(oParser.calculate().getValue().getValue(), 2222, 'EXTERNAL_AFTER_UPDATE'); + + + ws.getRange2("A100").setValue("='[new.xlsx]Sheet1'!A1"); + assert.strictEqual(wb.externalReferences.length, 2, 'Amount of references before changing a cell'); + ws.getRange2("A100").setValue("1"); + assert.strictEqual(wb.externalReferences.length, 1, 'Amount of references after changing a cell with the reference'); + + }); + + QUnit.test("Test: \"Access to external reference tests\"", function (assert) { + // for bug 69792 + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 1, 0); + let parseResult = new AscCommonExcel.ParseResult([]); + oParser = new parserFormula("'[book.xlsx]Sheet 1'!A1", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "'[book.xlsx]Sheet 1'!A1"); + + oParser = new parserFormula("'[book.xlsx]Sheet1'!A1", cellWithFormula, ws); + assert.ok(oParser.parse(true, null, parseResult), "'[book.xlsx]Sheet1'!A1"); + + // set extrefs to 0 + wb.externalReferences.length = 0; + + assert.strictEqual(wb.externalReferences.length, 0, 'External reference length before add'); + wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); + assert.strictEqual(wb.externalReferences.length, 1, 'External reference length after add'); + + oParser = new parserFormula("'[book.xlsx]Sheet2'!A1", cellWithFormula, ws); + // todo fix bug 71020 breaks this check + // assert.strictEqual(oParser.parse(true, null, parseResult), false, "Trying to access not existed sheet in existed externalRef"); + + assert.strictEqual(wb.externalReferences.length, 1); + + //remove external reference + wb.removeExternalReferences([wb.externalReferences[0].getAscLink()]); + assert.strictEqual(wb.externalReferences.length, 0); + }); + + // Mocks for API Testing + Asc.spreadsheet_api.prototype._init = function () { + this._loadModules(); + }; + Asc.spreadsheet_api.prototype._loadFonts = function (fonts, callback) { + callback(); + }; + AscCommonExcel.WorkbookView.prototype._calcMaxDigitWidth = function () { + }; + AscCommonExcel.WorkbookView.prototype._init = function () { + }; + AscCommonExcel.WorkbookView.prototype._isLockedUserProtectedRange = function (callback) { + callback(true); + }; + AscCommonExcel.WorkbookView.prototype._onWSSelectionChanged = function () { + }; + AscCommonExcel.WorkbookView.prototype.showWorksheet = function () { + }; + AscCommonExcel.WorkbookView.prototype.recalculateDrawingObjects = function () { + }; + AscCommonExcel.WorkbookView.prototype.restoreFocus = function () { + }; + AscCommonExcel.WorksheetView.prototype._init = function () { + }; + AscCommonExcel.WorksheetView.prototype.updateRanges = function () { + }; + AscCommonExcel.WorksheetView.prototype._autoFitColumnsWidth = function () { + }; + AscCommonExcel.WorksheetView.prototype.cleanSelection = function () { + }; + AscCommonExcel.WorksheetView.prototype._drawSelection = function () { + }; + AscCommonExcel.WorksheetView.prototype._scrollToRange = function () { + }; + AscCommonExcel.WorksheetView.prototype.draw = function () { + }; + AscCommonExcel.WorksheetView.prototype._prepareDrawingObjects = function () { + }; + AscCommonExcel.WorksheetView.prototype._initCellsArea = function () { + }; + AscCommonExcel.WorksheetView.prototype.getZoom = function () { + }; + AscCommonExcel.WorksheetView.prototype._prepareCellTextMetricsCache = function () { + }; + + AscCommon.baseEditorsApi.prototype._onEndLoadSdk = function () { + }; + AscCommonExcel.WorksheetView.prototype._isLockedCells = function (oFromRange, subType, callback) { + callback(true); + return true; + }; + AscCommonExcel.WorksheetView.prototype._isLockedAll = function (callback) { + callback(true); + }; + AscCommonExcel.WorksheetView.prototype._isLockedFrozenPane = function (callback) { + callback(true); + }; + AscCommonExcel.WorksheetView.prototype._updateVisibleColsCount = function () { + }; + AscCommonExcel.WorksheetView.prototype._calcActiveCellOffset = function () { + }; + + AscCommon.baseEditorsApi.prototype._onEndLoadSdk = function () { + }; + Asc.ReadDefTableStyles = function () { + }; + + wb.dependencyFormulas.unlockRecal(); +}); diff --git a/tests/cell/spreadsheet-calculation/FormulaTests.js b/tests/cell/spreadsheet-calculation/FormulaTests.js index 45318ff833..0e06d1ae6d 100644 --- a/tests/cell/spreadsheet-calculation/FormulaTests.js +++ b/tests/cell/spreadsheet-calculation/FormulaTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -623,6 +623,7 @@ $(function () { window["Asc"]["editor"] = api; + AscCommon.g_oTableId.init(api); wb = new AscCommonExcel.Workbook(new AscCommonExcel.asc_CHandlersList(), api); AscCommon.History.init(wb); wb.maxDigitWidth = 7; @@ -630,7 +631,6 @@ $(function () { api.wbModel = wb; - AscCommon.g_oTableId.init(); if (this.User) { g_oIdCounter.Set_UserId(this.User.asc_getId()); } @@ -654,6 +654,721 @@ $(function () { wb.dependencyFormulas.lockRecal(); QUnit.module("Formula"); + QUnit.test('Iterative calculation', function (assert) { + const g_cCalcRecursion = AscCommonExcel.g_cCalcRecursion; + g_cCalcRecursion.initCalcProperties(wb.calcPr); + g_cCalcRecursion.setIsEnabledRecursion(true); + g_cCalcRecursion.setMaxIterations(10); + let nExpectedCellIndex, oFactCellIndex, oCell, bCaFromSelectedCell; + // Init necessary functions + const selectCell = function (sRange, oWs) { + let oSelectCell = oWs ? oWs.getRange2(sRange) : ws.getRange2(sRange); + let oCell = null; + + oSelectCell._foreach2(function (cell) { + oCell = cell; + }) + + return oCell; + }; + const getStartCellForIterCalc = function (oCell) { + oCell.initStartCellForIterCalc(); + + return g_cCalcRecursion.getStartCellIndex(); + }; + const getCaFromSelectedCell = function (sRange, oWs) { + const oSelectedCell = selectCell(sRange, oWs); + const oSelectedCellFormula = oSelectedCell.getFormulaParsed(); + + return oSelectedCellFormula.ca; + }; + // -- Check recursion formula with iteration limit + // - Case: Sequence chain - A1000: A1000+B1000 -> B1000: B1000+C1000 -> C1: 1 + // Fill cells + ws.getRange2("A1000").setValue("=A1000+B1000"); + ws.getRange2("B1000").setValue("=B1000+C1000"); + ws.getRange2("C1000").setValue("1"); + assert.strictEqual(ws.getRange2("A1000").getValue(), "45", "Test: Sequence chain = A1000: A1000+B1000, B1000: B1000+C1000, C1000: 1. A1000 - 45"); + assert.strictEqual(ws.getRange2("B1000").getValue(), "10", "Test: Sequence chain = A1000: A1000+B1000, B1000: B1000+C1000, C1000: 1. B1000 - 10"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1000"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain = A1000: A1000+B1000, B1000: B1000+C1000, C1000: 1. isFormulaRecursion test. A1000 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("B1000"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain = A1000: A1000+B1000, B1000: B1000+C1000, C1000: 1. isFormulaRecursion test. B1000 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Loop chain - D1000: F1000/E1000 <-> F1000: E1000+D1000 + ws.getRange2("E1000").setValue("1"); + ws.getRange2("D1000").setValue("=F1000/E1000"); + ws.getRange2("F1000").setValue("=E1000+D1000"); + assert.strictEqual(ws.getRange2("D1000").getValue(), "9", "Test: Loop chain - D1000: F1000/E1000 <-> F1000: E1000+D1000. D1000 - 9"); + assert.strictEqual(ws.getRange2("F1000").getValue(), "10", "Test: Loop chain - D1000: F1000/E1000 <-> F1000: E1000+D1000. F1000 - 10"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("D1000"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Loop chain - D1000: F1000/E1000 <-> F1000: E1000+D1000. isFormulaRecursion test. D1000 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("F1000"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Loop chain - D1000: F1000/E1000 <-> F1000: E1000+D1000. isFormulaRecursion test. F1000 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: 3D Loop chain - D1001: Sheet2!A1000/E1001 <-> Sheet2!A1000: Sheet1!D1001+Sheet1!E1001 + let ws2 = wb.createWorksheet(0, "Sheet2"); + ws.getRange2("E1001").setValue("1"); + ws.getRange2("D1001").setValue("=Sheet2!D1001/E1001"); + ws2.getRange2("D1001").setValue("=Sheet1!D1001+Sheet1!E1001"); + assert.strictEqual(ws.getRange2("D1001").getValue(), "9", "Test: 3D Loop chain - D1001: Sheet2!A1000/E1001 <-> Sheet2!A1000: Sheet1!D1001+Sheet1!E1001. D1001 - 9"); + assert.strictEqual(ws2.getRange2("D1001").getValue(), "10", "Test: 3D Loop chain - D1001: Sheet2!A1000/E1001 <-> Sheet2!A1000: Sheet1!D1001+Sheet1!E1001. Sheet2!A1000 - 10"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("D1001"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: 3D Loop chain - D1001: Sheet2!A1000/E1001 <-> Sheet2!A1000: Sheet1!D1001+Sheet1!E1001. isFormulaRecursion test. D1001 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("D1001", ws2); + assert.strictEqual(bCaFromSelectedCell, true, "Test: 3D Loop chain - D1001: Sheet2!A1000/E1001 <-> Sheet2!A1000: Sheet1!D1001+Sheet1!E1001. isFormulaRecursion test. Sheet2!A1000 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Loop cell - A1001: A1001+1 + ws.getRange2("A1001").setValue("=A1001+1"); + assert.strictEqual(ws.getRange2("A1001").getValue(), "10", "Test: Loop cell - A1001: A1001+1. A1001 - 10"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1001"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Loop cell - A1001: A1001+1. isFormulaRecursion test. A1001 - flag ca: true"); + bCaFromSelectedCell = null; + // - Negative case sequence chain without loop cell. + ws.getRange2("A1002").setValue("=1+B1002"); + ws.getRange2("B1002").setValue("=1+C1002"); + ws.getRange2("C1002").setValue("1"); + assert.strictEqual(ws.getRange2("A1002").getValue(), "3", "Test: Negative case sequence chain without loop cell - A1002: 1+B1002. A1002 - 3"); + assert.strictEqual(ws.getRange2("B1002").getValue(), "2", "Test: Negative case sequence chain without loop cell - B1002: 1+C1002. B1002 - 2"); + assert.strictEqual(ws.getRange2("C1002").getValue(), "1", "Test: Negative case sequence chain without loop cell - C1002: 1. C1002 - 1"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1002"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Negative case sequence chain without loop cell - A1002: 1+B1002. isFormulaRecursion test. A1002 - flag ca: false"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("B1002"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Negative case sequence chain without loop cell - A1002: 1+B1002. isFormulaRecursion test. B1002 - flag ca: false"); + bCaFromSelectedCell = null; + // - Negative case cell without any chain. + ws.getRange2("A1003").setValue("=1+2"); + assert.strictEqual(ws.getRange2("A1003").getValue(), "3", "Test: Negative case cell without any chain - A1003: 1+2. A1003 - 3"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1003"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Negative case cell without any chain - A1003: 1+2. isFormulaRecursion test. A1003 - flag ca: false"); + bCaFromSelectedCell = null; + ws.getRange2("A1004").setValue("1"); + ws.getRange2("B1004").setValue("2"); + ws.getRange2("C1004").setValue("=A1004+B1004"); + assert.strictEqual(ws.getRange2("C1004").getValue(), "3", "Test: Negative case cell without any chain - C1004: A1004+B1004. C1004 - 3"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("C1004"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Negative case cell without any chain - C1004: A1004+B1004. isFormulaRecursion test. C1004 - flag ca: false"); + bCaFromSelectedCell = null; + // - Case: Sequence chain - A1005: A1005+B1005, B1005: 1. Deep level of recursion - 0 + ws.getRange2("A1005").setValue("=A1005+B1005"); + ws.getRange2("B1005").setValue("1"); + assert.strictEqual(ws.getRange2("A1005").getValue(), "10", "Test: Sequence chain - A1005: A1005+B1005, B1005: 1"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1005"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1005: A1005+B1005, B1005: 1. isFormulaRecursion test. A1005 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. Deep level of recursion - 10, Max iteration 10 + ws.getRange2("A1006").setValue("=A1006+B1006"); + ws.getRange2("B1006").setValue("=B1006+C1006"); + ws.getRange2("C1006").setValue("=C1006+D1006"); + ws.getRange2("D1006").setValue("=D1006+E1006"); + ws.getRange2("E1006").setValue("=E1006+F1006"); + ws.getRange2("F1006").setValue("=F1006+G1006"); + ws.getRange2("G1006").setValue("=G1006+H1006"); + ws.getRange2("H1006").setValue("=H1006+I1006"); + ws.getRange2("I1006").setValue("=I1006+J1006"); + ws.getRange2("J1006").setValue("1"); + assert.strictEqual(ws.getRange2("A1006").getValue(), "10", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. A1006 - 10"); + assert.strictEqual(ws.getRange2("B1006").getValue(), "45", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. B1006 - 45"); + assert.strictEqual(ws.getRange2("C1006").getValue(), "120", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. C1006 - 120"); + assert.strictEqual(ws.getRange2("D1006").getValue(), "210", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. D1006 - 210"); + assert.strictEqual(ws.getRange2("E1006").getValue(), "252", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. E1006 - 252"); + assert.strictEqual(ws.getRange2("F1006").getValue(), "210", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. F1006 - 210"); + assert.strictEqual(ws.getRange2("G1006").getValue(), "120", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. G1006 - 120"); + assert.strictEqual(ws.getRange2("H1006").getValue(), "45", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. H1006 - 45"); + assert.strictEqual(ws.getRange2("I1006").getValue(), "10", "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. I1006 - 10"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. A1006 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("B1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. B1006 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("C1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. C1006 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("D1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. D1006 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("E1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. E1006 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("F1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. F1006 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("G1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. G1006 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("H1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. H1006 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("I1006"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1006: A1006+B1006, B1006: B1006+C1006, C1006: C1006+D1006 ... J1006: 1. isFormulaRecursion test. I1006 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... T1007: 1. Deep level of recursion - 20, Max iteration 10 + ws.getRange2("A1007").setValue("=A1007+B1007"); + ws.getRange2("B1007").setValue("=B1007+C1007"); + ws.getRange2("C1007").setValue("=C1007+D1007"); + ws.getRange2("D1007").setValue("=D1007+E1007"); + ws.getRange2("E1007").setValue("=E1007+F1007"); + ws.getRange2("F1007").setValue("=F1007+G1007"); + ws.getRange2("G1007").setValue("=G1007+H1007"); + ws.getRange2("H1007").setValue("=H1007+I1007"); + ws.getRange2("I1007").setValue("=I1007+J1007"); + ws.getRange2("J1007").setValue("=J1007+K1007"); + ws.getRange2("K1007").setValue("=K1007+L1007"); + ws.getRange2("L1007").setValue("=L1007+Q1007"); + ws.getRange2("Q1007").setValue("=Q1007+R1007"); + ws.getRange2("R1007").setValue("=R1007+S1007"); + ws.getRange2("S1007").setValue("=S1007+T1007"); + ws.getRange2("T1007").setValue("=T1007+U1007"); + ws.getRange2("U1007").setValue("=U1007+V1007"); + ws.getRange2("V1007").setValue("=V1007+W1007"); + ws.getRange2("W1007").setValue("=W1007+X1007"); + ws.getRange2("X1007").setValue("1"); + assert.strictEqual(ws.getRange2("A1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. A1007 - 0"); + assert.strictEqual(ws.getRange2("B1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. B1007 - 0"); + assert.strictEqual(ws.getRange2("C1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. C1007 - 0"); + assert.strictEqual(ws.getRange2("D1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. D1007 - 0"); + assert.strictEqual(ws.getRange2("E1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. E1007 - 0"); + assert.strictEqual(ws.getRange2("F1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. F1007 - 0"); + assert.strictEqual(ws.getRange2("G1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. G1007 - 0"); + assert.strictEqual(ws.getRange2("H1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. H1007 - 0"); + assert.strictEqual(ws.getRange2("I1007").getValue(), "0", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. I1007 - 0"); + assert.strictEqual(ws.getRange2("J1007").getValue(), "1", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. J1007 - 1"); + assert.strictEqual(ws.getRange2("K1007").getValue(), "10", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. K1007 - 10"); + assert.strictEqual(ws.getRange2("L1007").getValue(), "45", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. L1007 - 45"); + assert.strictEqual(ws.getRange2("Q1007").getValue(), "120", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. Q1007 - 120"); + assert.strictEqual(ws.getRange2("R1007").getValue(), "210", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. R1007 - 210"); + assert.strictEqual(ws.getRange2("S1007").getValue(), "252", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. S1007 - 252"); + assert.strictEqual(ws.getRange2("T1007").getValue(), "210", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. T1007 - 210"); + assert.strictEqual(ws.getRange2("U1007").getValue(), "120", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. U1007 - 120"); + assert.strictEqual(ws.getRange2("V1007").getValue(), "45", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. V1007 - 45"); + assert.strictEqual(ws.getRange2("W1007").getValue(), "10", "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. W1007 - 10"); + // Check work isFormulaRecursion function + bCaFromSelectedCell = getCaFromSelectedCell("A1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. A1007 - flag ca: true"); + bCaFromSelectedCell = null + bCaFromSelectedCell = getCaFromSelectedCell("B1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. B1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("C1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. C1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("D1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. D1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("E1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. E1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("F1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. F1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("G1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. G1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("H1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. H1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("I1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. I1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("J1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. J1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("K1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. K1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("L1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. L1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("Q1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. Q1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("R1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. R1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("S1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. S1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("T1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. T1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("U1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. U1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("V1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. V1007 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("W1007"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain - A1007: A1007+B1007, B1007: B1007+C1007, C1007: C1007+D1007 ... X1007: 1. isFormulaRecursion test. W1007 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1 + ws.getRange2("A1011").setValue("=A1011+A1012"); + ws.getRange2("A1012").setValue("=A1012+A1013"); + ws.getRange2("A1013").setValue("=A1013+A1014"); + ws.getRange2("A1014").setValue("=A1014+A1015"); + ws.getRange2("A1015").setValue("1"); + assert.strictEqual(ws.getRange2("A1011").getValue(), "210", "Test: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1. A1011 - 1"); + assert.strictEqual(ws.getRange2("A1012").getValue(), "120", "Test: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1. A1012 - 120"); + assert.strictEqual(ws.getRange2("A1013").getValue(), "45", "Test: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1. A1013 - 45"); + assert.strictEqual(ws.getRange2("A1014").getValue(), "10", "Test: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1. A1014 - 10"); + // Check work isRecursionFormula function + bCaFromSelectedCell = getCaFromSelectedCell("A1011"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1. isFormulaRecursion test. A1011 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("A1012"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1. isFormulaRecursion test. A1012 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("A1013"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1. isFormulaRecursion test. A1013 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("A1014"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Vertical sequence chain - A1011: A1011+A1012, A1012: A1012+A1013, A1013: A1013+A1014, A1014: A1014+A1015, A1015: 1. isFormulaRecursion test. A1014 - flag ca: true"); + bCaFromSelectedCell = null; + // Remove created sheets. + wb.removeWorksheet(0); + // - Case: 3D sequence chain - A1016: A1016+Sheet2!A1000, Sheet2!A1000: Sheet2!A1000+Sheet3!A1000, Sheet3!A1000: 1 + ws2 = wb.createWorksheet(0, "Sheet2"); + let ws3 = wb.createWorksheet(1, "Sheet3"); + ws.getRange2("A1016").setValue("=A1016+Sheet2!A1000"); + ws2.getRange2("A1000").setValue("=A1000+Sheet3!A1000"); + ws3.getRange2("A1000").setValue("1"); + assert.strictEqual(ws.getRange2("A1016").getValue(), "45", "Test: 3D sequence chain - A1012: A1012+Sheet2!A1000, Sheet2!A1000: Sheet2!A1000+Sheet3!A1000, Sheet3!A1000: 1. A1012 - 45"); + assert.strictEqual(ws2.getRange2("A1000").getValue(), "10", "Test: 3D sequence chain - A1012: A1012+Sheet2!A1000, Sheet2!A1000: Sheet2!A1000+Sheet3!A1000, Sheet3!A1000: 1. Sheet2!A1000 - 10"); + assert.strictEqual(ws3.getRange2("A1000").getValue(), "1", "Test: 3D sequence chain - A1012: A1012+Sheet2!A1000, Sheet2!A1000: Sheet2!A1000+Sheet3!A1000, Sheet3!A1000: 1. Sheet3!A1000 - 1"); + // Check work isRecursionFormula function + bCaFromSelectedCell = getCaFromSelectedCell("A1016"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: 3D sequence chain - A1016: A1016+Sheet2!A1000, Sheet2!A1000: Sheet2!A1000+Sheet3!A1000, Sheet3!A1000: 1. isFormulaRecursion test. A1016 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("A1000", ws2); + assert.strictEqual(bCaFromSelectedCell, true, "Test: 3D sequence chain - A1016: A1016+Sheet2!A1000, Sheet2!A1000: Sheet2!A1000+Sheet3!A1000, Sheet3!A1000: 1. isFormulaRecursion test. Sheet2!A1000 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: 3D sequence chain B1012: B1012+Sheet2!B1012, Sheet2!B1012: Sheet2!B1012+Sheet3!B1012, Sheet3!B1012: 1 + ws.getRange2("B1012").setValue("=B1012+Sheet2!B1012"); + ws2.getRange2("B1012").setValue("=B1012+Sheet3!B1012"); + ws3.getRange2("B1012").setValue("1"); + assert.strictEqual(ws.getRange2("B1012").getValue(), "45", "Test: 3D sequence chain - B1012: B1012+Sheet2!B1012, Sheet2!B1012: Sheet2!B1012+Sheet3!B1012, Sheet3!B1012: 1. B1012 - 45"); + assert.strictEqual(ws2.getRange2("B1012").getValue(), "10", "Test: 3D sequence chain - B1012: B1012+Sheet2!B1012, Sheet2!B1012: Sheet2!B1012+Sheet3!B1012, Sheet3!B1012: 1. Sheet2!B1012 - 10"); + assert.strictEqual(ws3.getRange2("B1012").getValue(), "1", "Test: 3D sequence chain - B1012: B1012+Sheet2!B1012, Sheet2!B1012: Sheet2!B1012+Sheet3!B1012, Sheet3!B1012: 1. Sheet3!B1012 - 1"); + // Check work isRecursionFormula function + bCaFromSelectedCell = getCaFromSelectedCell("B1012"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: 3D sequence chain - B1012: B1012+Sheet2!B1012, Sheet2!B1012: Sheet2!B1012+Sheet3!B1012, Sheet3!B1012: 1. isFormulaRecursion test. B1012 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("B1012", ws2); + assert.strictEqual(bCaFromSelectedCell, true, "Test: 3D sequence chain - B1012: B1012+Sheet2!B1012, Sheet2!B1012: Sheet2!B1012+Sheet3!B1012, Sheet3!B1012: 1. isFormulaRecursion test. Sheet2!B1012 - flag ca: true"); + bCaFromSelectedCell = null; + // Remove created sheets. + wb.removeWorksheet(0); + wb.removeWorksheet(0); + // - Case: DefName loop cell - X: X+1 + let oDefName = new Asc.asc_CDefName("x", ws.getName() + "!$A$1017"); + wb.editDefinesNames(null, oDefName); + ws.getRange2("A1017").setValue("=x+1") + assert.strictEqual(ws.getRange2("A1017").getValue(), "10", "Test: DefName loop cell - X: X+1. X - 10"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1017"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: DefName loop cell - X: X+1. isFormulaRecursion test. A1017(X) - flag ca: true"); + bCaFromSelectedCell = null; + // Clean define name + wb.delDefinesNames(oDefName); + oDefName = null; + // - Case: DefName sequence chain - X: X+Y, Y: Y+Z, Z: 1 + let oDefNameX = new Asc.asc_CDefName("x", ws.getName() + "!$A$1018"); + let oDefNameY = new Asc.asc_CDefName("y", ws.getName() + "!$B$1018"); + let oDefNameZ = new Asc.asc_CDefName("z", ws.getName() + "!$C$1018"); + wb.editDefinesNames(null, oDefNameX); + wb.editDefinesNames(null, oDefNameY); + wb.editDefinesNames(null,oDefNameZ); + ws.getRange2("A1018").setValue("=x+y"); + ws.getRange2("B1018").setValue("=y+z"); + ws.getRange2("C1018").setValue("1"); + assert.strictEqual(ws.getRange2("A1018").getValue(), "45", "Test: DefName sequence chain - X: X+Y, Y: Y+Z, Z: 1. X - 45"); + assert.strictEqual(ws.getRange2("B1018").getValue(), "10", "Test: DefName sequence chain - X: X+Y, Y: Y+Z, Z: 1. Y - 10"); + assert.strictEqual(ws.getRange2("C1018").getValue(), "1", "Test: DefName sequence chain - X: X+Y, Y: Y+Z, Z: 1. Z - 1"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1018"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: DefName sequence chain - X: X+Y, Y: Y+Z, Z: 1. isFormulaRecursion test. A1018(X) - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("B1018"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: DefName sequence chain - X: X+Y, Y: Y+Z, Z: 1. isFormulaRecursion test. B1018(Y) - flag ca: true"); + bCaFromSelectedCell = null; + // Clean define name + wb.delDefinesNames(oDefNameX); + wb.delDefinesNames(oDefNameY); + wb.delDefinesNames(oDefNameZ); + oDefNameX = null; + oDefNameY = null; + oDefNameZ = null; + // - Case: Area recursive formula SUM(A1019:D1019) + ws.getRange2("A1019").setValue("1"); + ws.getRange2("B1019").setValue("2"); + ws.getRange2("C1019").setValue("3"); + ws.getRange2("D1019").setValue("=SUM(A1019:D1019)"); + assert.strictEqual(ws.getRange2("D1019").getValue(), "60", "Test: Area recursive formula SUM(A1019:D1019). D1019 - 60"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("D1019"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Area recursive formula SUM(A1019:D1019). isFormulaRecursion test. D1019 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Area recursive formula SUM(D1020, A1020:C1020) + ws.getRange2("A1020").setValue("1"); + ws.getRange2("B1020").setValue("2"); + ws.getRange2("C1020").setValue("3"); + ws.getRange2("D1020").setValue("=SUM(D1020, A1020:C1020)"); + assert.strictEqual(ws.getRange2("D1020").getValue(), "60", "Test: Area recursive formula SUM(D1020, A1020:C1020). D1020 - 60"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("D1020"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Area recursive formula SUM(D1020, A1020:C1020). isFormulaRecursion test. D1020 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: 3D Area recursive formula SUM(A1021, Sheet2!A1000:C1000) + ws2 = wb.createWorksheet(0, "Sheet2"); + ws2.getRange2("A1000").setValue("1"); + ws2.getRange2("B1000").setValue("2"); + ws2.getRange2("C1000").setValue("3"); + ws.getRange2("A1021").setValue("=SUM(A1021, Sheet2!A1000:C1000)"); + assert.strictEqual(ws.getRange2("A1021").getValue(), "60", "Test: 3D Area recursive formula SUM(A1021, Sheet2!A1000:C1000). A1021 - 60"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1021"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: 3D Area recursive formula SUM(A1021, Sheet2!A1000:C1000). isFormulaRecursion test. A1021 - flag ca: true"); + bCaFromSelectedCell = null; + // Remove created sheets. + wb.removeWorksheet(0); + // - Case: DefName Area recursive formula SUM(Range) + let oDefNameRange = new Asc.asc_CDefName("Range", ws.getName() + "!$A$1022:$D$1022"); + wb.editDefinesNames(null, oDefNameRange); + ws.getRange2("A1022").setValue("1"); + ws.getRange2("B1022").setValue("2"); + ws.getRange2("C1022").setValue("3"); + ws.getRange2("D1022").setValue("=SUM(Range)"); + assert.strictEqual(ws.getRange2("D1022").getValue(), "60", "Test: DefName Area recursive formula SUM(Range). D1022 - 60"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("D1022"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: DefName Area recursive formula SUM(Range). isFormulaRecursion test. D1022 - flag ca: true"); + bCaFromSelectedCell = null; + // Clean define name + wb.delDefinesNames(oDefNameRange); + oDefNameRange = null; + // - Case: DefName Area 3D recursive formula SUM(А1000,Range3D) + ws2 = wb.createWorksheet(0, "Sheet2"); + let oDefNameRange3D = new Asc.asc_CDefName("Range3D", ws.getName() + "!$A$1023:$C$1023"); + wb.editDefinesNames(null, oDefNameRange3D); + ws.getRange2("A1023").setValue("1"); + ws.getRange2("B1023").setValue("2"); + ws.getRange2("C1023").setValue("3"); + ws2.getRange2("A1000").setValue("=SUM(A1000, Range3D)"); + assert.strictEqual(ws2.getRange2("A1000").getValue(), "60", "Test: DefName Area 3D recursive formula SUM(А1000,Range3D). Sheet2!A1000 - 60"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1000", ws2); + assert.strictEqual(bCaFromSelectedCell, true, "Test: DefName Area 3D recursive formula SUM(А1000,Range3D). isFormulaRecursion test. Sheet2!A1000 - flag ca: true"); + bCaFromSelectedCell = null; + // Clean define name + wb.delDefinesNames(oDefNameRange3D); + oDefNameRange3D = null; + // Remove created sheets. + wb.removeWorksheet(0); + // - Case: Chain recursive formula without outStack link. A1024: A1024+1, B1024: A1024+B1024, C1024: B1024+C1024 + ws.getRange2("A1024").setValue("=A1024+1"); + ws.getRange2("B1024").setValue("=A1024+B1024"); + ws.getRange2("C1024").setValue("=B1024+C1024"); + assert.strictEqual(ws.getRange2("A1024").getValue(), "30", "Test: Chain recursive formula without outStack link. A1024 - 30"); + assert.strictEqual(ws.getRange2("B1024").getValue(), "410", "Test: Chain recursive formula without outStack link. B1024 - 410"); + assert.strictEqual(ws.getRange2("C1024").getValue(), "2870", "Test: Chain recursive formula without outStack link. C1024 - 2870"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("C1024"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Chain recursive formula without outStack link. isFormulaRecursion test. C1024 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("B1024"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Chain recursive formula without outStack link. isFormulaRecursion test. B1024 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("A1024"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Chain recursive formula without outStack link. isFormulaRecursion test. A1024 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Not recursive formula A1025: SUM(B1025:C1025) + ws.getRange2("A1025").setValue("=SUM(B1025:C1025)"); + ws.getRange2("B1025").setValue("1"); + ws.getRange2("C1025").setValue("2"); + assert.strictEqual(ws.getRange2("A1025").getValue(), "3", "Test: Not recursive formula A1025 - 3"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1025"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Not recursive formula A1025. isFormulaRecursion test. A1025 - flag ca: false"); + bCaFromSelectedCell = null; + // - Case: Area recursive formula SUM(Y:Z) + ws.getRange2("Y1000").setValue("1"); + ws.getRange2("Z1000").setValue("2"); + ws.getRange2("Y1001").setValue("=SUM(Y:Z)"); + assert.strictEqual(ws.getRange2("Y1001").getValue(), "30", "Test: Area recursive formula SUM(Y:Z). Y1001 - 30"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("Y1001"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Area recursive formula SUM(Y:Z). isFormulaRecursion test. Y1001 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Def name area recursive formula SUM(All) + let oDefNameAll = new Asc.asc_CDefName("All", ws.getName() + "!$Z:$Z"); + wb.editDefinesNames(null, oDefNameAll); + ws.getRange2("Z1000").setValue("1"); + ws.getRange2("Z1001").setValue("2"); + ws.getRange2("Z1002").setValue("=SUM(All)"); + assert.strictEqual(ws.getRange2("Z1002").getValue(), "30", "Test: Def name area recursive formula SUM(All). Z1002 - 30"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("Z1002"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Def name area recursive formula SUM(All). isFormulaRecursion test. Z1002 - flag ca: true"); + bCaFromSelectedCell = null; + // Clean define name + wb.delDefinesNames(oDefNameAll); + oDefNameAll = null; + // - Case: Def name area non-recursive formula SUM(XAll) + let oDefNameABAll = new Asc.asc_CDefName("ABAll", ws.getName() + "!$AB:$AB"); + wb.editDefinesNames(null, oDefNameABAll); + ws.getRange2("AB1000").setValue("1"); + ws.getRange2("AB1001").setValue("2"); + ws.getRange2("A1026").setValue("=SUM(ABAll)"); + assert.strictEqual(ws.getRange2("A1026").getValue(), "3", "Test: Def name area non-recursive formula SUM(ABAll). A1026 - 3"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1026"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Def name area non-recursive formula SUM(ABAll). isFormulaRecursion test. A1026 - flag ca: false"); + bCaFromSelectedCell = null; + // Clean define name + wb.delDefinesNames(oDefNameABAll); + oDefNameABAll = null; + // - Case: Cross recursive chain formula. B1027: B1027+B1028, B1028: B1028+B1029, A1028: A1028+B1028, C1028: B1028+C1028, B1029: 1 + ws.getRange2("B1027").setValue("=B1027+B1028"); + ws.getRange2("B1028").setValue("=B1028+B1029"); + ws.getRange2("A1028").setValue("=A1028+B1028"); + ws.getRange2("C1028").setValue("=B1028+C1028"); + ws.getRange2("B1029").setValue("1"); + assert.strictEqual(ws.getRange2("B1027").getValue(), "45", "Test: Cross recursive chain formula. B1027 - 45"); + assert.strictEqual(ws.getRange2("B1028").getValue(), "10", "Test: Cross recursive chain formula. B1028 - 10"); + assert.strictEqual(ws.getRange2("A1028").getValue(), "45", "Test: Cross recursive chain formula. A1028 - 45"); + assert.strictEqual(ws.getRange2("C1028").getValue(), "55", "Test: Cross recursive chain formula. C1028 - 55"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("B1027"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Cross recursive chain formula. isFormulaRecursion test. B1027 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("B1028"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Cross recursive chain formula. isFormulaRecursion test. B1028 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("A1028"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Cross recursive chain formula. isFormulaRecursion test. A1028 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("C1028"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Cross recursive chain formula. isFormulaRecursion test. C1028 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Recrusive cell with IF formula, with empty cell ("") + ws.getRange2("A1030").setValue(""); + ws.getRange2("B1030").setValue("=IF(A1030<>\"\",IF(B1030<>\"\",B1030,NOW()),\"\")"); + assert.strictEqual(ws.getRange2("B1030").getValue(), "", "Test: Recrusive cell with IF formula, with empty cell (\"\"). B1030 - \"\""); + ws.getRange2("A1030").setValue("Test"); + let date = new cDate(); + let excelDate = date.getExcelDate(); + assert.strictEqual(Math.floor(ws.getRange2("B1030").getValue()), excelDate, "Test: Recrusive cell with IF formula, with empty cell (\"\"). B1030 - " + excelDate); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("B1030"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Recrusive cell with IF formula, with empty cell (\"\"). isFormulaRecursion test. B1030 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Recursive convergent formula with IF formula + ws.getRange2("A1031").setValue("=IF(A1031=0,-5,A1031-(A1031^3-4*A1031^2-4*A1031+5)/(3*A1031^2-8*A1031-4))"); + assert.strictEqual(ws.getRange2("A1031").getValue(), "-1.4012223386412388", "Test: Recursive convergent formula with IF formula. A1031 - -1.04122233864124"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("A1031"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Recursive convergent formula with IF formula. isFormulaRecursion test. A1031 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Recursive cell chain formula: J1031->R1031->K1031->J1031. Bug-42873, Comment #2 + ws.getRange2("A1031").setValue("1000"); + ws.getRange2("B1031").setValue("0.36"); + ws.getRange2("C1031").setValue("23"); + ws.getRange2("D1031").setValue("8"); + ws.getRange2("E1031").setValue("27"); + ws.getRange2("F1031").setValue("=IF(C1031*D1031*E1031/5B1031,C1031*D1031*E1031/5000))"); + ws.getRange2("G1031").setValue("8"); + ws.getRange2("H1031").setValue("6.5"); + ws.getRange2("I1031").setValue("25"); + ws.getRange2("J1031").setValue("=IF(F1031<1,R1031*4%,IF(F1031>1,R1031*5%,IF(F1031>3,R1031*5.5%)))"); + ws.getRange2("K1031").setValue("=(A1031+I1031+J1031)*100/(100-G1031-H1031)"); + ws.getRange2("L1031").setValue("=R1031*100/69.9"); + ws.getRange2("Q1031").setValue("=L1031*1.07"); + ws.getRange2("R1031").setValue("=K1031*100/94.7"); + assert.strictEqual(ws.getRange2("J1031").getValue(), "53.268529249844036", "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031. Bug-42873, Comment #2. J1031 - 53.26854488596814"); + assert.strictEqual(ws.getRange2("K1031").getValue(), "1261.1327827483556", "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031. Bug-42873, Comment #2. K1031 - 1261.1328010362201"); + assert.strictEqual(ws.getRange2("L1031").getValue(), "1905.1696763189466", "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031. Bug-42873, Comment #2. L1031 - 1905.1697026454983"); + assert.strictEqual(ws.getRange2("Q1031").getValue(), "2038.531553661273", "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031. Bug-42873, Comment #2. Q1031 - 2038.5315818306833"); + assert.strictEqual(ws.getRange2("R1031").getValue(), "1331.7136037469436", "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031. Bug-42873, Comment #2. R1031 - 1331.7136230583105"); + // Check work isFormulaRecursive function + bCaFromSelectedCell = getCaFromSelectedCell("J1031"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031, Bug-42873, Comment #2. isFormulaRecursion test. J1031 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("K1031"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031, Bug-42873, Comment #2. isFormulaRecursion test. K1031 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("L1031"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031, Bug-42873, Comment #2. isFormulaRecursion test. L1031 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("Q1031"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031, Bug-42873, Comment #2. isFormulaRecursion test. Q1031 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("R1031"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Recursive cell chain formula: J1031->R1031->K1031->J1031, Bug-42873, Comment #2. isFormulaRecursion test. R1031 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: Sequence-loop chain. D1033 <-> D1034, D1034 <-> D1035 etc. + ws.getRange2("A1032").setValue("0"); // P + ws.getRange2("A1033").setValue("10"); // deltaY + ws.getRange2("A1034").setValue("1"); // X + ws.getRange2("B1032").setValue("10"); // mu + ws.getRange2("C1032").setValue("10"); // u start + ws.getRange2("D1032").setValue("=C1032"); // u + ws.getRange2("B1033").setValue("10"); // mu + ws.getRange2("C1033").setValue("-10");// u start + ws.getRange2("D1033").setValue("=IF($A$1034=0, C1033, -(($A$1032*$A$1033*$A$1033-(D1034-D1032)*(B1034-B1032)/4)/B1033-(D1034+D1032))/2)"); // u + ws.getRange2("B1034").setValue("10"); // mu + ws.getRange2("C1034").setValue("-10"); // u start + ws.getRange2("D1034").setValue("=IF($A$1034=0, C1034, -(($A$1032*$A$1033*$A$1033-(D1035-D1033)*(B1035-B1033)/4)/B1034-(D1035+D1033))/2)"); // u + ws.getRange2("B1035").setValue("10"); // mu + ws.getRange2("C1035").setValue("-10"); // u start + ws.getRange2("D1035").setValue("=IF($A$1034=0, C1035, -(($A$1032*$A$1033*$A$1033-(D1036-D1034)*(B1036-B1034)/4)/B1035-(D1036+D1034))/2)"); // u + ws.getRange2("B1036").setValue("10"); // mu + ws.getRange2("C1036").setValue("0"); // u start + ws.getRange2('D1036').setValue("=C1035"); // u + assert.strictEqual(ws.getRange2("D1033").getValue(), "7.499457849531321", "Test: Sequence-loop chain. D1033 <-> D1034, D1034 <-> D1035 etc. D1033 - 7.499728735325547"); + assert.strictEqual(ws.getRange2("D1034").getValue(), "4.999457849531321", "Test: Sequence-loop chain. D1033 <-> D1034, D1034 <-> D1035 etc. D1034 - 4.999728735325547"); + assert.strictEqual(ws.getRange2("D1035").getValue(), "2.4997289247656607", "Test: Sequence-loop chain. D1033 <-> D1034, D1034 <-> D1035 etc. D1035 - 2.4998643676627736"); + // Check work isFormulaRecursion function + bCaFromSelectedCell = getCaFromSelectedCell("D1033"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence-loop chain. D1033 <-> D1034, D1034 <-> D1035 etc. isFormulaRecursion test. D1033 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("D1034"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence-loop chain. D1033 <-> D1034, D1034 <-> D1035 etc. isFormulaRecursion test. D1034 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("D1035"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence-loop chain. D1033 <-> D1034, D1034 <-> D1035 etc. isFormulaRecursion test. D1035 - flag ca: true"); + bCaFromSelectedCell = null; + // Case: Convergent formula calucaltes only once time. + g_cCalcRecursion.setMaxIterations(15); + ws.getRange2("A1040").setValue("=A1041+A1043"); + ws.getRange2("A1041").setValue("25150"); + ws.getRange2("A1042").setValue("0.2"); + ws.getRange2("A1043").setValue("=A1040*A1042"); + assert.strictEqual(ws.getRange2("A1040").getValue(), "31437.49935616", "Test: Convergent formula calculates only once time. First calculate. A1040 - 31437.49987"); + assert.strictEqual(ws.getRange2("A1043").getValue(), "6287.499871232", "Test: Convergent formula calculates only once time. First calculate. A1041 - 6287.499974246401"); + ws.getRange2("A1041").setValue("25150"); + assert.strictEqual(ws.getRange2("A1040").getValue(), "31437.49935616", "Test: Convergent formula calculates only once time. Recalculate. A1040 - 31437.49987"); + assert.strictEqual(ws.getRange2("A1043").getValue(), "6287.499871232", "Test: Convergent formula calculates only once time. Recalculate. A1041 - 6287.499974246401"); + // Check work isFormulaRecursion function + bCaFromSelectedCell = getCaFromSelectedCell("A1040"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Convergent formula calculates only once time. isFormulaRecursion test. A1040 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("A1043"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Convergent formula calculates only once time. isFormulaRecursion test. A1043 - flag ca: true"); + bCaFromSelectedCell = null; + // - Case: With disabled iterative calculation. + g_cCalcRecursion.setIsEnabledRecursion(false); + ws.getRange2("A1037").setValue("=A1037+1"); + ws.getRange2("A1038").setValue("=A1038+B1038"); + ws.getRange2("B1038").setValue("=B1038+C1038"); + ws.getRange2("C1038").setValue("1"); + assert.strictEqual(ws.getRange2("A1037").getValue(), "0", "Test: Loop cell with disabled iterative calculation. A1037 - 0"); + assert.strictEqual(ws.getRange2("A1038").getValue(), "0", "Test: Sequence chain with disabled iterative calculation. A1038 - 0"); + assert.strictEqual(ws.getRange2("B1038").getValue(), "0", "Test: Sequence chain with disabled iterative calculation. B1038 - 0"); + // Check work isFormulaRecursion function + bCaFromSelectedCell = getCaFromSelectedCell("A1037"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Loop cell with disabled iterative calculation. A1037 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("A1038"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain with disabled iterative calculation. A1038 - flag ca: true"); + bCaFromSelectedCell = null; + bCaFromSelectedCell = getCaFromSelectedCell("B1038"); + assert.strictEqual(bCaFromSelectedCell, true, "Test: Sequence chain with disabled iterative calculation. B1038 - flag ca: true"); + bCaFromSelectedCell = null; + // Case: Exception formulas that ignores rules of recursion recognition + ws.getRange2("A1039").setValue("=ROW(A1039)"); + assert.strictEqual(ws.getRange2("A1039").getValue(), "1039", "Test: Exception formulas that ignores rules of recursion recognition. A1039 - 1039. Formula - ROW"); + bCaFromSelectedCell = getCaFromSelectedCell("A1039"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Exception formulas that ignores rules of recursion recognition. A1039 - flag ca: false"); + bCaFromSelectedCell = null; + ws.getRange2("B1039").setValue("=COLUMN(B1039)"); + assert.strictEqual(ws.getRange2("B1039").getValue(), "2", "Test: Exception formulas that ignores rules of recursion recognition. B1039 - 2. Formula - COLUMN"); + bCaFromSelectedCell = getCaFromSelectedCell("B1039"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Exception formulas that ignores rules of recursion recognition. B1039 - flag ca: false"); + bCaFromSelectedCell = null; + ws.getRange2("C1039").setValue("=ISFORMULA(C1039)"); + assert.strictEqual(ws.getRange2("C1039").getValue(), "TRUE", "Test: Exception formulas that ignores rules of recursion recognition. C1039 - TRUE. Formula - ISFORMULA"); + bCaFromSelectedCell = getCaFromSelectedCell("C1039"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Exception formulas that ignores rules of recursion recognition. C1039 - flag ca: false"); + bCaFromSelectedCell = null; + ws.getRange2("D1039").setValue("=SHEETS(D1039)"); + assert.strictEqual(ws.getRange2("D1039").getValue(), "1", "Test: Exception formulas that ignores rules of recursion recognition. D1039 - 1. Formula - SHEETS"); + bCaFromSelectedCell = getCaFromSelectedCell("D1039"); + assert.strictEqual(bCaFromSelectedCell, false, "Test: Exception formulas that ignores rules of recursion recognition. D1039 - flag ca: false"); + bCaFromSelectedCell = null; + // -- Test changeLinkedCell method. + oCell = selectCell("A1000"); + let oCellNeedEnableRecalc = selectCell("B1000"); + assert.strictEqual(oCellNeedEnableRecalc.getIsDirty(), false, "Test: changeLinkedCell. Before: Cell B1000 isDirty - false"); + oCell.changeLinkedCell(function(oCell) { + if (oCell.isFormula && !oCell.getIsDirty()) { + oCell.setIsDirty(true); + } + }, true); + oCellNeedEnableRecalc = selectCell("B1000"); + assert.strictEqual(oCellNeedEnableRecalc.getIsDirty(), true, "Test: changeLinkedCell. After: Cell B1000 isDirty - true"); + // -- Test initStartCellForIterCalc method + // - Case: Sequence chain A1000 -> B1000 -> C1000 + nExpectedCellIndex = AscCommonExcel.getCellIndex(999, 0); + oCell = selectCell("C1000"); + oFactCellIndex = getStartCellForIterCalc(oCell); + assert.strictEqual(oFactCellIndex.cellId, nExpectedCellIndex, `Test: initStartCellForIterCalc. Sequence chain - A1000 -> B1000 -> C1000. Selected cell: C1000. Start cell index: ${oFactCellIndex.cellId}`); + g_cCalcRecursion.setStartCellIndex(null); + oCell = selectCell("B1000"); + oFactCellIndex = getStartCellForIterCalc(oCell); + assert.strictEqual(oFactCellIndex.cellId, nExpectedCellIndex, `Test: initStartCellForIterCalc. Sequence chain - A1000 -> B1000 -> C1000. Selected cell: B1000. Start cell index: ${oFactCellIndex.cellId}`); + g_cCalcRecursion.setStartCellIndex(null); + oCell = selectCell("A1000"); + oFactCellIndex = getStartCellForIterCalc(oCell); + assert.strictEqual(oFactCellIndex.cellId, nExpectedCellIndex, `Test: initStartCellForIterCalc. Sequence chain - A1000 -> B1000 -> C1000. Selected cell: A1000. Start cell: ${oFactCellIndex.cellId}`); + g_cCalcRecursion.setStartCellIndex(null); + // - Case: Loop chain D1000 <-> F1000 + oCell = selectCell("D1000"); + oFactCellIndex = getStartCellForIterCalc(oCell); + nExpectedCellIndex = AscCommonExcel.getCellIndex(999, 3); + assert.strictEqual(oFactCellIndex.cellId, nExpectedCellIndex, `Test: initStartCellForIterCalc. Loop chain - D1000 <-> F1000. Selected cell: D1000. Start cell: ${oFactCellIndex.cellId}`); + g_cCalcRecursion.setStartCellIndex(null); + oCell = selectCell("F1000"); + oFactCellIndex = getStartCellForIterCalc(oCell); + nExpectedCellIndex = AscCommonExcel.getCellIndex(999, 3); + assert.strictEqual(oFactCellIndex.cellId, nExpectedCellIndex, `Test: initStartCellForIterCalc. Loop chain - D1000 <-> F1000. Selected cell: F1000. Start cell: ${oFactCellIndex.cellId}`); + g_cCalcRecursion.setStartCellIndex(null); + // - Case: Loop cell + oCell = selectCell("A1001"); + oFactCellIndex = getStartCellForIterCalc(oCell); + nExpectedCellIndex = AscCommonExcel.getCellIndex(1000, 0); + assert.strictEqual(oFactCellIndex.cellId, nExpectedCellIndex, `Test: initStartCellForIterCalc. Loop cell - A1001. Selected cell: A1001. Start cell: ${oFactCellIndex.cellId}`); + g_cCalcRecursion.setStartCellIndex(null); + // - Negative case: sequence chain without loop cell. + oCell = selectCell("C1002"); + oFactCellIndex = getStartCellForIterCalc(oCell); + assert.strictEqual(oFactCellIndex, null, `Test: initStartCellForIterCalc. Negative case sequence chain without loop cell. Selected cell: C1002. Start cell: ${oFactCellIndex}`); + oCell = selectCell("B1002"); + oFactCellIndex = getStartCellForIterCalc(oCell); + assert.strictEqual(oFactCellIndex, null, `Test: initStartCellForIterCalc. Negative case sequence chain without loop cell. Selected cell: B1002. Start cell: ${oFactCellIndex}`); + oCell = selectCell("A1002"); + oFactCellIndex = getStartCellForIterCalc(oCell); + assert.strictEqual(oFactCellIndex, null, `Test: initStartCellForIterCalc. Negative case sequence chain without loop cell. Selected cell: A1002. Start cell: ${oFactCellIndex}`); + // - Negative case: cell without any chain. + oCell = selectCell("A1003"); + oFactCellIndex = getStartCellForIterCalc(oCell); + assert.strictEqual(oFactCellIndex, null, `Test: initStartCellForIterCalc. Negative case cell without any chain. Selected cell: A1003. Start cell: ${oFactCellIndex}`); + oCell = selectCell("C1004"); + oFactCellIndex = getStartCellForIterCalc(oCell); + assert.strictEqual(oFactCellIndex, null, `Test: initStartCellForIterCalc. Negative case cell without any chain. Selected cell: C1004. Start cell: ${oFactCellIndex}`); + }); QUnit.test("Test: \"ABS\"", function (assert) { ws.getRange2("A22").setValue("-4"); @@ -712,7 +1427,8 @@ $(function () { ws.getRange2("A7").setValue("1"); ws.getRange2("A8").setValue("2"); ws.getRange2("A9").setValue("3"); - oParser = new parserFormula('A7:A9', null, ws); + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 0, 9); + oParser = new parserFormula('A7:A9', cellWithFormula, ws); assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().cross(new Asc.Range(0, 5, 0, 5), ws.getId()).getValue(), "#VALUE!"); assert.strictEqual(oParser.calculate().cross(new Asc.Range(0, 6, 0, 6), ws.getId()).getValue(), 1); @@ -723,7 +1439,7 @@ $(function () { }); QUnit.test("Test: \"Defined names cycle\"", function (assert) { - + AscCommonExcel.g_cCalcRecursion.setIsEnabledRecursion(false); var newNameQ = new Asc.asc_CDefName("q", "SUM('" + ws.getName() + "'!A2)"); wb.editDefinesNames(null, newNameQ); ws.getRange2("Q1").setValue("=q"); @@ -735,7 +1451,7 @@ $(function () { var newNameW = new Asc.asc_CDefName("w", "'" + ws.getName() + "'!A1"); wb.editDefinesNames(null, newNameW); ws.getRange2("Q4").setValue("=w"); - assert.strictEqual(ws.getRange2("Q4").getValueWithFormat(), "#REF!"); + assert.strictEqual(ws.getRange2("Q4").getValueWithFormat(), "#NUM!"); //clean up ws.getRange2("Q1:Q4").cleanAll(); wb.delDefinesNames(newNameW); @@ -1583,6 +2299,457 @@ $(function () { assert.strictEqual(array.getElementRowCol(2, 2).getValue(), "#N/A", "Array 4x3. [2,2]"); } + ws.getRange2("A200").setValue("1"); + ws.getRange2("A201").setValue("3"); + ws.getRange2("B200").setValue("3"); + ws.getRange2("B201").setValue("4"); + ws.getRange2("D200").setValue("1"); + ws.getRange2("D201").setValue("2"); + ws.getRange2("D202").setValue("3"); + ws.getRange2("D203").setValue("4"); + ws.getRange2("D204").setValue("5"); + ws.getRange2("D205").setValue("6"); + ws.getRange2("D206:D300").setValue(""); + + // for bug 54877 + oParser = new parserFormula("A200:B201*D200:D203", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "A200:B201*D200:D203. Result - array 4x2"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 1, "Array 4x2. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 6, "Array 4x2. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "#N/A", "Array 4x2. [2,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 3, "Array 4x2. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), 8, "Array 4x2. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "#N/A", "Array 4x2. [2,1]"); + } + + oParser = new parserFormula("A200:B201*D200:D300", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "A200:B201*D200:D300. Result - array 100x2"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 1, "Array 100x2. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 6, "Array 100x2. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "#N/A", "Array 100x2. [2,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 3, "Array 100x2. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), 8, "Array 100x2. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "#N/A", "Array 100x2. [2,1]"); + } + + oParser = new parserFormula("D200:D300*2", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "D200:D300*2. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 4, "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 6, "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), 8, "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), 10, "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), 12, "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), 0, "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), 0, "Array 100x1. [7,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + oParser = new parserFormula("2*D200:D300", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "2*D200:D300. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 4, "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 6, "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), 8, "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), 10, "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), 12, "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), 0, "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), 0, "Array 100x1. [7,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + // conditional check and & operator + // < + oParser = new parserFormula("D200:D300<2", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "D200:D300<2. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "TRUE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "FALSE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "FALSE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "FALSE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "FALSE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "FALSE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "TRUE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "TRUE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "TRUE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + + oParser = new parserFormula("2 + oParser = new parserFormula("D200:D300>2", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "D200:D300>2. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "FALSE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "FALSE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "TRUE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "TRUE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "TRUE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "TRUE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "FALSE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "FALSE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "FALSE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + oParser = new parserFormula("2>D200:D300", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "2>D200:D300. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "TRUE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "FALSE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "FALSE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "FALSE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "FALSE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "FALSE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "TRUE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "TRUE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "TRUE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + // >= + oParser = new parserFormula("D200:D300>=2", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "D200:D300>=2. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "FALSE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "TRUE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "TRUE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "TRUE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "TRUE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "TRUE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "FALSE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "FALSE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "FALSE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + oParser = new parserFormula("2>=D200:D300", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "2>=D200:D300. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "TRUE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "TRUE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "FALSE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "FALSE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "FALSE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "FALSE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "TRUE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "TRUE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "TRUE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + // = + oParser = new parserFormula("D200:D300=2", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "D200:D300=2. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "FALSE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "TRUE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "FALSE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "FALSE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "FALSE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "FALSE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "FALSE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "FALSE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "FALSE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + oParser = new parserFormula("2=D200:D300", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "2=D200:D300. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "FALSE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "TRUE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "FALSE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "FALSE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "FALSE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "FALSE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "FALSE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "FALSE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "FALSE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + // <> + oParser = new parserFormula("D200:D300<>2", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "D200:D300<>2. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "TRUE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "FALSE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "TRUE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "TRUE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "TRUE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "TRUE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "TRUE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "TRUE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "TRUE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + oParser = new parserFormula("2<>D200:D300", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E200:H210").bbox); + assert.ok(oParser.parse(), "2<>D200:D300. Result - array 100x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "TRUE", "Array 100x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "FALSE", "Array 100x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "TRUE", "Array 100x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "TRUE", "Array 100x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "TRUE", "Array 100x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "TRUE", "Array 100x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "TRUE", "Array 100x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "TRUE", "Array 100x1. [7,0]"); + assert.strictEqual(array.getElementRowCol(8, 0).getValue(), "TRUE", "Array 100x1. [8,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 100x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 100x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 100x1. [2,1]"); + } + + // & + ws.getRange2("D204").setValue("A"); + ws.getRange2("D205").setValue("B"); + ws.getRange2("D206:D210").setValue(""); + ws.getRange2("E204").setValue("A"); + ws.getRange2("E205").setValue("B"); + ws.getRange2("E206").setValue("C"); + ws.getRange2("E207").setValue("D"); + ws.getRange2("E208:E210").setValue(""); + + oParser = new parserFormula("D204:D210&E204:E210", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E300:H310").bbox); + assert.ok(oParser.parse(), "D204:D210&E204:E210. Result - array 7x1"); + array = oParser.calculate(); + if (AscCommonExcel.cElementType.array === array.type) { + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "AA", "Array 7x1. [0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "BB", "Array 7x1. [1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "C", "Array 7x1. [2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "D", "Array 7x1. [3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "", "Array 7x1. [4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "", "Array 7x1. [5,0]"); + assert.strictEqual(array.getElementRowCol(6, 0).getValue(), "", "Array 7x1. [6,0]"); + assert.strictEqual(array.getElementRowCol(7, 0).getValue(), "", "Array 7x1. [7,0]"); + + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Array 7x1. [0,1]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "", "Array 7x1. [1,1]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Array 7x1. [2,1]"); + } + + }); + + QUnit.test("Test: \"Concatenation operator test\"", function (assert) { + let array, defName; + ws.getRange2("A200").setValue("1"); + ws.getRange2("A201").setValue("2"); + ws.getRange2("A202").setValue("3"); + ws.getRange2("A203").setValue("4"); + ws.getRange2("A204").setValue("5"); + ws.getRange2("B200").setValue("A"); + ws.getRange2("B201").setValue("B"); + ws.getRange2("B202").setValue("C"); + ws.getRange2("B203").setValue("D"); + ws.getRange2("B204").setValue("E"); + + wb.dependencyFormulas.addDefName("def_nums", "Sheet1!$A$200:$A$204"); + wb.dependencyFormulas.addDefName("def_strings", "Sheet1!$B$200:$B$204"); + wb.dependencyFormulas.addDefName("def_strings", "Sheet1!$B$200:$B$204"); + + defName = new AscCommonExcel.DefName(wb, "n_1", '{1,2,3}', null, null, Asc.c_oAscDefNameType.none); + wb.dependencyFormulas._addDefName(defName); + wb.dependencyFormulas.defNames.wb["n_1"].setRef(defName.ref, true, true, true); + + defName = new AscCommonExcel.DefName(wb, "n_2", '{"str1","str2","str3"}', null, null, Asc.c_oAscDefNameType.none); + wb.dependencyFormulas._addDefName(defName); + wb.dependencyFormulas.defNames.wb["n_2"].setRef(defName.ref, true, true, true); + + defName = new AscCommonExcel.DefName(wb, "n_if", 'IF(0,n_2,n_1&n_2)', null, null, Asc.c_oAscDefNameType.none); + wb.dependencyFormulas._addDefName(defName); + wb.dependencyFormulas.defNames.wb["n_if"].setRef(defName.ref, true, true, true); + + // wb.dependencyFormulas.addDefNameOpen(defName.Name, defName.Ref, defName.LocalSheetId, defName.Hidden, _type); + + // INDEX + oParser = new parserFormula('INDEX(n_if,2)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "2str2"); + + oParser = new parserFormula('INDEX(A200:A204&A200:A204,2)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "22"); + + oParser = new parserFormula('INDEX(def_nums&def_nums,2)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "22"); + + oParser = new parserFormula('INDEX(B200:B204&B200:B204,2)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "BB"); + + oParser = new parserFormula('INDEX(def_strings&def_strings,2)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "BB"); + + // other formulas + oParser = new parserFormula('COLUMNS(A200:A204&A200:A204)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 1); + + oParser = new parserFormula('COLUMNS(1+A200:A204&A200:A204)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 1); + + oParser = new parserFormula('COLUMNS(def_nums&def_nums)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 1); + + oParser = new parserFormula('COLUMNS(def_strings&def_strings)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 1); + + oParser = new parserFormula('ROWS(A200:A204&A200:A204)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 5); + + oParser = new parserFormula('ROWS(1+A200:A204&A200:A204)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 5); + + oParser = new parserFormula('ROWS(def_nums&def_nums)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 5); + + oParser = new parserFormula('ROWS(def_strings&def_strings)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 5); + + oParser = new parserFormula('CONCAT(A200:A204,A200:A204&A200:A204)', "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "123451122334455"); + + // remove all created earlier defNames + wb.dependencyFormulas._foreachDefName(function(defName) { + wb.dependencyFormulas.removeDefName(undefined, defName.name); + }); }); QUnit.test("Test: \"ACOS\"", function (assert) { @@ -2910,11 +4077,11 @@ $(function () { oParser = new parserFormula("CHOOSE(2,A2,A3,A4,A5)", "A1", ws); assert.ok(oParser.parse(), "CHOOSE(2,A2,A3,A4,A5)"); - assert.strictEqual(oParser.calculate().getValue(), "2nd", "CHOOSE(2,A2,A3,A4,A5)"); + assert.strictEqual(oParser.calculate().getValue().getValue(), "2nd", "CHOOSE(2,A2,A3,A4,A5)"); oParser = new parserFormula("CHOOSE(4,B2,B3,B4,B5)", "A1", ws); assert.ok(oParser.parse(), "CHOOSE(4,B2,B3,B4,B5)"); - assert.strictEqual(oParser.calculate().getValue(), "Bolts", "CHOOSE(4,B2,B3,B4,B5))"); + assert.strictEqual(oParser.calculate().getValue().getValue(), "Bolts", "CHOOSE(4,B2,B3,B4,B5))"); oParser = new parserFormula('CHOOSE(3,"Wide",115,"world",8)', "A1", ws); assert.ok(oParser.parse()); @@ -2948,7 +4115,7 @@ $(function () { oParser = new parserFormula('CHOOSE(1,B2,2,3)', "A1", ws); assert.ok(oParser.parse(), 'CHOOSE(1,B2,2,3)'); - assert.strictEqual(oParser.calculate().getValue(), "#N/A", 'Result of CHOOSE(1,B2,2,3)'); + assert.strictEqual(oParser.calculate().getValue().getValue(), "#N/A", 'Result of CHOOSE(1,B2,2,3)'); oParser = new parserFormula('CHOOSE(B3,B2,2,3)', "A1", ws); assert.ok(oParser.parse(), 'CHOOSE(B3,B2,2,3)'); @@ -3005,22 +4172,22 @@ $(function () { array = oParser.calculate(); assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-1", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[0,0]'); assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "HIS0361", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "CBT-2", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "HIS0362", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "CBT-3", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "HIS0363", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[2,1]'); bbox = ws.getRange2("G2").bbox; cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); oParser = new parserFormula('CHOOSE({1,2},C1:C3,E1:E3)', cellWithFormula, ws); assert.ok(oParser.parse(), 'CHOOSE({1,2},C1:C3,E1:E3)'); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-2", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[0,0]'); - assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "HIS0362", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[0,1]'); - - bbox = ws.getRange2("G3").bbox; - cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); - oParser = new parserFormula('CHOOSE({1,2},C1:C3,E1:E3)', cellWithFormula, ws); - assert.ok(oParser.parse(), 'CHOOSE({1,2},C1:C3,E1:E3)'); - array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-3", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[0,0]'); - assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "HIS0363", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[0,1]'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-1", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "HIS0361", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "CBT-2", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "HIS0362", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "CBT-3", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "HIS0363", 'Result of CHOOSE({1,2},C1:C3,E1:E3)[2,1]'); bbox = ws.getRange2("G3").bbox; cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); @@ -3028,31 +4195,157 @@ $(function () { assert.ok(oParser.parse(), 'CHOOSE({"",2},C1:C3,E1:E3)'); array = oParser.calculate(); assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "#VALUE!", 'Result of CHOOSE({"",2},C1:C3,E1:E3)[0,0]'); - assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "HIS0363", 'Result of CHOOSE({"",2},C1:C3,E1:E3)[0,1]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "HIS0361", 'Result of CHOOSE({"",2},C1:C3,E1:E3)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "#VALUE!", 'Result of CHOOSE({"",2},C1:C3,E1:E3)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "HIS0362", 'Result of CHOOSE({"",2},C1:C3,E1:E3)[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "#VALUE!", 'Result of CHOOSE({"",2},C1:C3,E1:E3)[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "HIS0363", 'Result of CHOOSE({"",2},C1:C3,E1:E3)[2,1]'); bbox = ws.getRange2("G3").bbox; cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); oParser = new parserFormula('CHOOSE({1,1.1},C1:C3,E1:E3)', cellWithFormula, ws); assert.ok(oParser.parse(), 'CHOOSE({1,1.1},C1:C3,E1:E3)'); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-3", 'Result of CHOOSE({1,1.1},C1:C3,E1:E3)[0,0]'); - assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "CBT-3", 'Result of CHOOSE({1,1.1},C1:C3,E1:E3)[0,1]'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-1", 'Result of CHOOSE({1,1.1},C1:C3,E1:E3)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "CBT-1", 'Result of CHOOSE({1,1.1},C1:C3,E1:E3)[0,1]'); bbox = ws.getRange2("G3").bbox; cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); oParser = new parserFormula('CHOOSE({1,1.9},C1:C3,E1:E3)', cellWithFormula, ws); assert.ok(oParser.parse(), 'CHOOSE({1,1.9},C1:C3,E1:E3)'); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-3", 'Result of CHOOSE({1,1.9},C1:C3,E1:E3)[0,0]'); - assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "CBT-3", 'Result of CHOOSE({1,1.9},C1:C3,E1:E3)[0,1]'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-1", 'Result of CHOOSE({1,1.9},C1:C3,E1:E3)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "CBT-1", 'Result of CHOOSE({1,1.9},C1:C3,E1:E3)[0,1]'); bbox = ws.getRange2("G3").bbox; cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); oParser = new parserFormula('CHOOSE({1,2.1},C1:C3,E1:E3)', cellWithFormula, ws); assert.ok(oParser.parse(), 'CHOOSE({1,2.1},C1:C3,E1:E3)'); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-3", 'Result of CHOOSE({1,2.1},C1:C3,E1:E3)[0,0]'); - assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "HIS0363", 'Result of CHOOSE({1,2.1},C1:C3,E1:E3)[0,1]'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "CBT-1", 'Result of CHOOSE({1,2.1},C1:C3,E1:E3)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "HIS0361", 'Result of CHOOSE({1,2.1},C1:C3,E1:E3)[0,1]'); + + // for bug 67639 + let arraySize; + ws.getRange2("A102").setValue("23"); + ws.getRange2("A103").setValue("45"); + ws.getRange2("A104").setValue("12"); + ws.getRange2("A105").setValue("10"); + ws.getRange2("B102").setValue("1"); + ws.getRange2("B103").setValue("2"); + ws.getRange2("B104").setValue("3"); + ws.getRange2("C102").setValue("2"); + ws.getRange2("C103").setValue("1"); + ws.getRange2("E102").setValue("ds"); + ws.getRange2("E103").setValue("fasf"); + ws.getRange2("E104").setValue("gas"); + ws.getRange2("F102").setValue("123das"); + ws.getRange2("F103").setValue("jkl"); + ws.getRange2("F104").setValue("zcasd"); + + oParser = new parserFormula('SUM(A102:CHOOSE(2,A103,A104,A105))', "A1", ws); + assert.ok(oParser.parse(), 'SUM(A102:CHOOSE(2,A103,A104,A105))'); + assert.strictEqual(oParser.calculate().getValue(), 80, 'Result of SUM(A102:CHOOSE(2,A103,A104,A105))'); + + oParser = new parserFormula('SIN(A102:CHOOSE(2,A103,A104,A105))', "A1", ws); + assert.ok(oParser.parse(), 'SIN(A102:CHOOSE(2,A103,A104,A105))'); + oParser.setArrayFormulaRef(ws.getRange2("E200:F210").bbox); + array = oParser.calculate(); + arraySize = array.getDimensions(); + assert.ok(arraySize.row === 3 && arraySize.col === 1, 'Array size in SIN(A102:CHOOSE(2,A103,A104,A105))'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue().toFixed(2), "-0.85", 'Result of SIN(A102:CHOOSE(2,A103,A104,A105))[0,0]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue().toFixed(2), "0.85", 'Result of SIN(A102:CHOOSE(2,A103,A104,A105))[1,0]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue().toFixed(2), "-0.54", 'Result of SIN(A102:CHOOSE(2,A103,A104,A105))[2,0]'); + + oParser = new parserFormula('CHOOSE({1,2},A102:A104,B102:B103)', "A1", ws); + assert.ok(oParser.parse(), 'CHOOSE({1,2},A102:A104,B102:B103)'); + array = oParser.calculate(); + arraySize = array.getDimensions(); + assert.ok(arraySize.row === 3 && arraySize.col === 2, 'Array size in CHOOSE({1,2},A102:A104,B102:B103'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 23, 'Result of CHOOSE({1,2},A102:A104,B102:B103[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 1, 'Result of CHOOSE({1,2},A102:A104,B102:B103[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 45, 'Result of CHOOSE({1,2},A102:A104,B102:B103[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), 2, 'Result of CHOOSE({1,2},A102:A104,B102:B103[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 12, 'Result of CHOOSE({1,2},A102:A104,B102:B103[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "#N/A", 'Result of CHOOSE({1,2},A102:A104,B102:B103[2,1]'); + + oParser = new parserFormula('CHOOSE(B102:C102,A102:A104,B102:B103)', "A1", ws); + assert.ok(oParser.parse(), 'CHOOSE(B102:C102,A102:A104,B102:B103)'); + array = oParser.calculate(); + arraySize = array.getDimensions(); + assert.ok(arraySize.row === 3 && arraySize.col === 2, 'Array size in CHOOSE(B102:C102,A102:A104,B102:B103)'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 23, 'Result of CHOOSE(B102:C102,A102:A104,B102:B103[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 1, 'Result of CHOOSE({B102:C102,A102:A104,B102:B103[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 45, 'Result of CHOOSE(B102:C102,A102:A104,B102:B103[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), 2, 'Result of CHOOSE(B102:C102,A102:A104,B102:B103[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 12, 'Result of CHOOSE(B102:C102,A102:A104,B102:B103[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "#N/A", 'Result of CHOOSE(B102:C102,A102:A104,B102:B103[2,1]'); + + oParser = new parserFormula('CHOOSE(B102:C102,A102:B104,9)', "A1", ws); + assert.ok(oParser.parse(), 'CHOOSE(B102:C102,A102:B104,9)'); + array = oParser.calculate(); + arraySize = array.getDimensions(); + assert.ok(arraySize.row === 3 && arraySize.col === 2, 'Array size in CHOOSE(B102:C102,A102:B104,9)'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 23, 'Result of CHOOSE(B102:C102,A102:B104,9)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 9, 'Result of CHOOSE(B102:C102,A102:B104,9)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 45, 'Result of CHOOSE(B102:C102,A102:B104,9)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), 9, 'Result of CHOOSE(B102:C102,A102:B104,9)[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 12, 'Result of CHOOSE(B102:C102,A102:B104,9)[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), 9, 'Result of CHOOSE(B102:C102,A102:B104,9)[2,1]'); + + oParser = new parserFormula('CHOOSE(B102:C102,9,A102:B104)', "A1", ws); + assert.ok(oParser.parse(), 'CHOOSE(B102:C102,9,A102:B104)'); + array = oParser.calculate(); + arraySize = array.getDimensions(); + assert.ok(arraySize.row === 3 && arraySize.col === 2, 'Array size in CHOOSE(B102:C102,9,A102:B104)'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 9, 'Result of CHOOSE(B102:C102,9,A102:B104)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 1, 'Result of CHOOSE(B102:C102,9,A102:B104)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 9, 'Result of CHOOSE(B102:C102,9,A102:B104)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), 2, 'Result of CHOOSE(B102:C102,9,A102:B104)[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 9, 'Result of CHOOSE(B102:C102,9,A102:B104)[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), 3, 'Result of CHOOSE(B102:C102,9,A102:B104)[2,1]'); + + oParser = new parserFormula('CHOOSE(B102:B103,A102:A105,E102:F104)', "A1", ws); + assert.ok(oParser.parse(), 'CHOOSE(B102:B103,A102:A105,E102:F104)'); + array = oParser.calculate(); + arraySize = array.getDimensions(); + assert.ok(arraySize.row === 4 && arraySize.col === 2, 'Array size in CHOOSE(B102:B103,A102:A105,E102:F104)'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 23, 'Result of CHOOSE(B102:B103,A102:A105,E102:F104)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 23, 'Result of CHOOSE(B102:B103,A102:A105,E102:F104)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "fasf", 'Result of CHOOSE(B102:B103,A102:A105,E102:F104)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "jkl", 'Result of CHOOSE(B102:B103,A102:A105,E102:F104)[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "#N/A", 'Result of CHOOSE(B102:B103,A102:A105,E102:F104)[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "#N/A", 'Result of CHOOSE(B102:B103,A102:A105,E102:F104)[2,1]'); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "#N/A", 'Result of CHOOSE(B102:B103,A102:A105,E102:F104)[3,0]'); + assert.strictEqual(array.getElementRowCol(3, 1).getValue(), "#N/A", 'Result of CHOOSE(B102:B103,A102:A105,E102:F104)[3,1]'); + + oParser = new parserFormula('CHOOSE({1;2},A102:A105,E102:F104)', "A1", ws); + assert.ok(oParser.parse(), 'CHOOSE({1;2},A102:A105,E102:F104)'); + array = oParser.calculate(); + arraySize = array.getDimensions(); + assert.ok(arraySize.row === 4 && arraySize.col === 2, 'Array size in CHOOSE({1;2},A102:A105,E102:F104'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 23, 'Result of CHOOSE({1;2},A102:A105,E102:F104)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 23, 'Result of CHOOSE({1;2},A102:A105,E102:F104)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "fasf", 'Result of CHOOSE({1;2},A102:A105,E102:F104)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "jkl", 'Result of CHOOSE({1;2},A102:A105,E102:F104)[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "#N/A", 'Result of CHOOSE({1;2},A102:A105,E102:F104)[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "#N/A", 'Result of CHOOSE({1;2},A102:A105,E102:F104)[2,1]'); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "#N/A", 'Result of CHOOSE({1;2},A102:A105,E102:F104)[3,0]'); + assert.strictEqual(array.getElementRowCol(3, 1).getValue(), "#N/A", 'Result of CHOOSE({1;2},A102:A105,E102:F104)[3,1]'); + + oParser = new parserFormula('CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)', "A1", ws); + assert.ok(oParser.parse(), 'CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)'); + array = oParser.calculate(); + arraySize = array.getDimensions(); + assert.ok(arraySize.row === 4 && arraySize.col === 2, 'Array size in CHOOSE({1;2},A102:A105,E102:F104'); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "ds", 'Result of CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "123das", 'Result of CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 45, 'Result of CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), 45, 'Result of CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)[1,1]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 12, 'Result of CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)[2,0]'); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), 12, 'Result of CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)[2,1]'); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "#N/A", 'Result of CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)[3,0]'); + assert.strictEqual(array.getElementRowCol(3, 1).getValue(), "#N/A", 'Result of CHOOSE({2,2;1,1;1,1},A102:A105,E102:F104)[3,1]'); //функция возвращает ref //testArrayFormula2(assert, "CHOOSE", 2, 9); @@ -4534,6 +5827,15 @@ $(function () { assert.strictEqual(array.getElementRowCol(2, 1).getValue(), 1.32); assert.strictEqual(array.getElementRowCol(2, 2).getValue(), 3.33); + // for bug 71525 + oParser = new parserFormula('ROUNDUP(8.175,3)', "A1", ws); + assert.ok(oParser.parse(), "ROUNDUP(8.175,3)"); + assert.strictEqual(oParser.calculate().getValue(), 8.175, "Result of ROUNDUP(8.175,3)"); + + oParser = new parserFormula('ROUNDUP(8.17529,5)', "A1", ws); + assert.ok(oParser.parse(), "ROUNDUP(8.17529,5)"); + assert.strictEqual(oParser.calculate().getValue(), 8.17529, "Result of ROUNDUP(8.17529,5)"); + }); @@ -6458,6 +7760,46 @@ $(function () { assert.ok(oParser.parse(), 'EOMONTH(#NUM!,#N/A)'); assert.strictEqual(oParser.calculate().getValue(), "#NUM!", 'Result of EOMONTH(#NUM!,#N/A)'); + ws.getRange2("A100").setValue("44227.50069"); + ws.getRange2("A101").setValue("44227.49861"); + ws.getRange2("A102").setValue("44227.00069"); + + oParser = new parserFormula("EOMONTH(A100,0)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A100,0)'); + assert.strictEqual(oParser.calculate().getValue(), 44227, 'Result of EOMONTH(A100,0)'); + + oParser = new parserFormula("EOMONTH(A100,1.5)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A100,1.5)'); + assert.strictEqual(oParser.calculate().getValue(), 44255, 'Result of EOMONTH(A100,1.5)'); + + oParser = new parserFormula("EOMONTH(A100,-1.6)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A100,-1.6)'); + assert.strictEqual(oParser.calculate().getValue(), 44196, 'Result of EOMONTH(A100,-1.6)'); + + oParser = new parserFormula("EOMONTH(A101,0)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A100,0)'); + assert.strictEqual(oParser.calculate().getValue(), 44227, 'Result of EOMONTH(A100,0)'); + + oParser = new parserFormula("EOMONTH(A101,1.5)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A101,1.5)'); + assert.strictEqual(oParser.calculate().getValue(), 44255, 'Result of EOMONTH(A101,1.5)'); + + oParser = new parserFormula("EOMONTH(A101,-1.6)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A101,-1.6)'); + assert.strictEqual(oParser.calculate().getValue(), 44196, 'Result of EOMONTH(A102,-1.6)'); + + oParser = new parserFormula("EOMONTH(A102,0)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A102,0)'); + assert.strictEqual(oParser.calculate().getValue(), 44227, 'Result of EOMONTH(A102,0)'); + + oParser = new parserFormula("EOMONTH(A102,1.5)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A102,1.5)'); + assert.strictEqual(oParser.calculate().getValue(), 44255, 'Result of EOMONTH(A102,1.5)'); + + oParser = new parserFormula("EOMONTH(A102,-1.6)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(A102,-1.6)'); + assert.strictEqual(oParser.calculate().getValue(), 44196, 'Result of EOMONTH(A102,-1.6)'); + // set 1904 mode ws.workbook.setDate1904(true, true); @@ -6502,6 +7844,10 @@ $(function () { assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue(), 35853); + oParser = new parserFormula("EOMONTH(0,1)", "A2", ws); + assert.ok(oParser.parse(), 'EOMONTH(0,1)'); + assert.strictEqual(oParser.calculate().getValue(), 59, 'Result of EOMONTH(0,1)'); + // base mode ws.workbook.setDate1904(false, true); @@ -7514,6 +8860,7 @@ $(function () { ws.getRange2("C8").setValue("Tom"); ws.getRange2("C9").setValue("Sarah"); + ws.getRange2("D:E").cleanAll(); oParser = new parserFormula("SUMIFS(A2:A9, B2:B9, \"=A*\", C2:C9, \"Tom\")", "A10", ws); assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue(), 20); @@ -7529,6 +8876,35 @@ $(function () { oParser = new parserFormula("SUMIFS(C:D,E:E,$H2)", "A11", ws); assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue(), "#VALUE!"); + + // for bug 58684 + let calculateResult = new AscCommonExcel.CalculateResult(true); + + oParser = new parserFormula("SUMIFS({1,2,3},A2:A9,A2)", "A11", ws); + assert.ok(oParser.parse(), 'SUMIFS({1,2,3},A2:A9,A2) - wrong argument type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of SUMIFS({1,2,3},A2:A9,A2) - wrong argument type check'); + + oParser = new parserFormula("SUMIFS(MONTH(A2:A9),A2:A9,A2)", "A11", ws); + assert.ok(oParser.parse(), 'SUMIFS(MONTH(A2:A9),A2:A9,A2) - wrong argument type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of SUMIFS(MONTH(A2:A9),A2:A9,A2) - wrong argument type check'); + + oParser = new parserFormula("SUMIFS(A2:A9,{1,2,3},A2)", "A11", ws); + assert.ok(oParser.parse(), 'SUMIFS(A2:A9,{1,2,3},A2) - wrong argument type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of SUMIFS(A2:A9,{1,2,3},A2) - wrong argument type check'); + + oParser = new parserFormula("SUMIFS(A2:A9,A2:A9*2,A2)", "A11", ws); + assert.ok(oParser.parse(), 'SUMIFS(A2:A9,A2:A9*2,A2) - wrong argument type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of SUMIFS(A2:A9,A2:A9*2,A2) - wrong argument type check'); + + oParser = new parserFormula("SUMIFS(A2:A9,A2:A9,A2,{1,2,3},A2)", "A11", ws); + assert.ok(oParser.parse(), 'SUMIFS(A2:A9,A2:A9,A2,{1,2,3},A2) - wrong argument type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of SUMIFS(A2:A9,A2:A9,A2,{1,2,3},A2) - wrong argument type check'); + + oParser = new parserFormula("SUMIFS(A2:A9,A2:A9,A2,A2:A9*2,A2)", "A11", ws); + assert.ok(oParser.parse(), 'SUMIFS(A2:A9,A2:A9,A2,A2:A9*2,A2) - wrong argument type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of SUMIFS(A2:A9,A2:A9,A2,A2:A9*2,A2) - wrong argument type check'); + + }); QUnit.test("Test: \"MAXIFS\"", function (assert) { @@ -9528,6 +10904,41 @@ $(function () { oParser = new parserFormula("TOROW(1,A1:A3,A1:A3)", "A1", ws); assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getElementRowCol(0, 0).getValue(), 1); + + // for bug 69719 + let sheetName = ws.getName(); + + ws.getRange2("C1").setValue("test3"); + ws.getRange2("D1").setValue("test4"); + ws.getRange2("E1").setValue("test5"); + + oParser = new parserFormula("TOROW("+sheetName+"!A1:A3)", "A1", ws); + assert.ok(oParser.parse(), "TOROW("+sheetName+"!A1:A3)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of TOROW("+sheetName+"!A1:A3)[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "", "Result of TOROW("+sheetName+"!A1:A3)[0,1]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), "test", "Result of TOROW("+sheetName+"!A1:A3)[0,2]"); + + oParser = new parserFormula("TOROW("+sheetName+"!A1:E1)", "A1", ws); + assert.ok(oParser.parse(), "TOROW("+sheetName+"!A1:E1)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of TOROW("+sheetName+"!A1:E1)[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "test2", "Result of TOROW("+sheetName+"!A1:E1)[0,1]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), "test3", "Result of TOROW("+sheetName+"!A1:E1)[0,2]"); + assert.strictEqual(array.getElementRowCol(0, 3).getValue(), "test4", "Result of TOROW("+sheetName+"!A1:E1)[0,3]"); + assert.strictEqual(array.getElementRowCol(0, 4).getValue(), "test5", "Result of TOROW("+sheetName+"!A1:E1)[0,4]"); + + oParser = new parserFormula("TOROW("+sheetName+"!A1:B3)", "A1", ws); + assert.ok(oParser.parse(), "TOROW("+sheetName+"!A1:B3)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of TOROW("+sheetName+"!A1:B3)[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "test2", "Result of TOROW("+sheetName+"!A1:B3)[0,1]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), "", "Result of TOROW("+sheetName+"!A1:B3)[0,2]"); + assert.strictEqual(array.getElementRowCol(0, 3).getValue(), "#N/A", "Result of TOROW("+sheetName+"!A1:B3)[0,3]"); + assert.strictEqual(array.getElementRowCol(0, 4).getValue(), "test", "Result of TOROW("+sheetName+"!A1:B3)[0,4]"); + assert.strictEqual(array.getElementRowCol(0, 5).getValue(), "", "Result of TOROW("+sheetName+"!A1:B3)[0,5]"); + + }); QUnit.test("Test: \"TOCOL\"", function (assert) { @@ -9632,6 +11043,41 @@ $(function () { oParser = new parserFormula("TOCOL(1,A1:A3,A1:A3)", "A1", ws); assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getElementRowCol(0, 0).getValue(), 1); + + // for bug 69719 + let sheetName = ws.getName(); + + ws.getRange2("C1").setValue("test3"); + ws.getRange2("D1").setValue("test4"); + ws.getRange2("E1").setValue("test5"); + + oParser = new parserFormula("TOCOL("+sheetName+"!A1:A3)", "A1", ws); + assert.ok(oParser.parse(), "TOCOL("+sheetName+"!A1:A3)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of TOCOL("+sheetName+"!A1:A3)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "", "Result of TOCOL("+sheetName+"!A1:A3)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "test", "Result of TOCOL("+sheetName+"!A1:A3)[2,0]"); + + oParser = new parserFormula("TOCOL("+sheetName+"!A1:E1)", "A1", ws); + assert.ok(oParser.parse(), "TOCOL("+sheetName+"!A1:E1)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of TOCOL("+sheetName+"!A1:E1)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "test2", "Result of TOCOL("+sheetName+"!A1:E1)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "test3", "Result of TOCOL("+sheetName+"!A1:E1)[2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "test4", "Result of TOCOL("+sheetName+"!A1:E1)[3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "test5", "Result of TOCOL("+sheetName+"!A1:E1)[4,0]"); + + oParser = new parserFormula("TOCOL("+sheetName+"!A1:B3)", "A1", ws); + assert.ok(oParser.parse(), "TOCOL("+sheetName+"!A1:E1)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of TOCOL("+sheetName+"!A1:B3)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "test2", "Result of TOCOL("+sheetName+"!A1:B3)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "", "Result of TOCOL("+sheetName+"!A1:B3)[2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "#N/A", "Result of TOCOL("+sheetName+"!A1:B3)[3,0]"); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), "test", "Result of TOCOL("+sheetName+"!A1:B3)[4,0]"); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), "", "Result of TOCOL("+sheetName+"!A1:B3)[5,0]"); + + // assert.strictEqual(oParser.calculate().getElementRowCol(0, 0).getValue(), 1); }); QUnit.test("Test: \"WRAPROWS\"", function (assert) { @@ -10257,6 +11703,153 @@ $(function () { assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,12)'); assert.strictEqual(oParser.calculate().getValue(), 3, 'Result of WORKDAY.INTL(1,1,12)'); + ws.getRange2("A10").setValue("1"); + ws.getRange2("A11").setValue("2"); + ws.getRange2("A12").setValue("3"); + ws.getRange2("B10").setValue("2"); + ws.getRange2("B11").setValue("2"); + ws.getRange2("B12").setValue("2"); + ws.getRange2("C10").setValue("3"); + ws.getRange2("C11").setValue("3"); + ws.getRange2("C12").setValue("3"); + + // first argument + oParser = new parserFormula('WORKDAY.INTL(A10:A12,1)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(A10:A12,1)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of WORKDAY.INTL(A10:A12,1)'); + + oParser = new parserFormula('WORKDAY.INTL({1;2;3},1)', "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL({1;2;3},1)'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of WORKDAY.INTL({1;2;3},1)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 3, "Result of WORKDAY.INTL({1;2;3},1)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 4, "Result of WORKDAY.INTL({1;2;3},1)[2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "", "Result of WORKDAY.INTL({1;2;3},1)[3,0]"); + + oParser = new parserFormula('WORKDAY.INTL(A10:C10,1)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(A10:C10,1)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of WORKDAY.INTL(A10:C10,1)'); + + oParser = new parserFormula('WORKDAY.INTL({1,2,3},1)', "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL({1,2,3},1)'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of WORKDAY.INTL({1,2,3},1)[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 3, "Result of WORKDAY.INTL({1,2,3},1)[1,0]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), 4, "Result of WORKDAY.INTL({1,2,3},1)[2,0]"); + assert.strictEqual(array.getElementRowCol(0, 3).getValue(), "", "Result of WORKDAY.INTL({1,2,3},1)[3,0]"); + + // second argument + oParser = new parserFormula('WORKDAY.INTL(1,A10:A12)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,A10:A12)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of WORKDAY.INTL(1,A10:A12)'); + + oParser = new parserFormula('WORKDAY.INTL(1,{1;2;3})', "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,{1;2;3})'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of WORKDAY.INTL(1,{1;2;3})[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 3, "Result of WORKDAY.INTL(1,{1;2;3})[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 4, "Result of WORKDAY.INTL(1,{1;2;3})[2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "", "Result of WORKDAY.INTL(1,{1;2;3})[3,0]"); + + oParser = new parserFormula('WORKDAY.INTL(1,A10:C10)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,A10:C10)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of WORKDAY.INTL(1,A10:C10)'); + + oParser = new parserFormula('WORKDAY.INTL(1,{1,2,3})', "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,{1,2,3})'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of WORKDAY.INTL(1,{1,2,3})[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 3, "Result of WORKDAY.INTL(1,{1,2,3})[0,1]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), 4, "Result of WORKDAY.INTL(1,{1,2,3})[0,2]"); + assert.strictEqual(array.getElementRowCol(0, 3).getValue(), "", "Result of WORKDAY.INTL(1,{1,2,3})[0,3]"); + + // third arugument + oParser = new parserFormula('WORKDAY.INTL(1,1,A10:A12)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,A10:A12)'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of WORKDAY.INTL(1,1,A10:A12)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 3, "Result of WORKDAY.INTL(1,1,A10:A12)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 4, "Result of WORKDAY.INTL(1,1,A10:A12)[2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "", "Result of WORKDAY.INTL(1,1,A10:A12)[3,0]"); + + oParser = new parserFormula('WORKDAY.INTL(1,1,{1;2;3})', "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,{1;2;3})'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of WORKDAY.INTL(1,1,{1;2;3})[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 3, "Result of WORKDAY.INTL(1,1,{1;2;3})[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 4, "Result of WORKDAY.INTL(1,1,{1;2;3})[2,0]"); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), "", "Result of WORKDAY.INTL(1,1,{1;2;3})[3,0]"); + + oParser = new parserFormula('WORKDAY.INTL(1,1,A10:C10)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,A10:C10)'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of WORKDAY.INTL(1,1,A10:C10)[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 3, "Result of WORKDAY.INTL(1,1,A10:C10)[0,1]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), 4, "Result of WORKDAY.INTL(1,1,A10:C10)[0,2]"); + assert.strictEqual(array.getElementRowCol(0, 3).getValue(), "", "Result of WORKDAY.INTL(1,1,A10:C10)[0,3]"); + + oParser = new parserFormula('WORKDAY.INTL(1,1,{1,2,3})', "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,{1,2,3})'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 2, "Result of WORKDAY.INTL(1,1,{1,2,3})[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 3, "Result of WORKDAY.INTL(1,1,{1,2,3})[0,1]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), 4, "Result of WORKDAY.INTL(1,1,{1,2,3})[0,2]"); + assert.strictEqual(array.getElementRowCol(0, 3).getValue(), "", "Result of WORKDAY.INTL(1,1,{1,2,3})[0,3]"); + + // fourth argument + oParser = new parserFormula('WORKDAY.INTL(1,1,1,A10:A12)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,1,A10:A12)'); + assert.strictEqual(oParser.calculate().getValue(), 4, 'Result of WORKDAY.INTL(1,1,1,A10:A12)'); + + oParser = new parserFormula('WORKDAY.INTL(1,1,1,{1;2;3})', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,1,{1;2;3})'); + assert.strictEqual(oParser.calculate().getValue(), 4, 'Result of WORKDAY.INTL(1,1,1,{1;2;3})'); + + oParser = new parserFormula('WORKDAY.INTL(1,1,1,A10:C10)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,1,A10:C10)'); + assert.strictEqual(oParser.calculate().getValue(), 4, 'Result of WORKDAY.INTL(1,1,1,A10:C10)'); + + oParser = new parserFormula('WORKDAY.INTL(1,1,1,{1,2,3})', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(1,1,1,{1,2,3})'); + assert.strictEqual(oParser.calculate().getValue(), 4, 'Result of WORKDAY.INTL(1,1,1,{1,2,3})'); + + + oParser = new parserFormula('WORKDAY.INTL(A10:C11,A10:C11,A10:C11)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(A10:C11,A10:C11,A10:C11)'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "#VALUE!", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "#VALUE!", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[0,1]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), "#VALUE!", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[0,2]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "#VALUE!", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[1,0]"); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "#VALUE!", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[1,1]"); + assert.strictEqual(array.getElementRowCol(1, 2).getValue(), "#VALUE!", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[1,2]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[2,0]"); + assert.strictEqual(array.getElementRowCol(2, 1).getValue(), "", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[2,1]"); + assert.strictEqual(array.getElementRowCol(2, 2).getValue(), "", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:C11)[2,2]"); + + oParser = new parserFormula('WORKDAY.INTL(A10:C11,A10:C11,A10:A10)', "A2", ws); + oParser.setArrayFormulaRef(ws.getRange2("E10:E12").bbox); + assert.ok(oParser.parse(), 'WORKDAY.INTL(A10:C11,A10:C11,A10:A10)'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "#VALUE!", "Result of WORKDAY.INTL(A10:C11,A10:C11,A10:A10)[0,0]"); + }); QUnit.test("Test: \"TIME\"", function (assert) { @@ -13116,7 +14709,6 @@ $(function () { oParser = new parserFormula("COUNTIF(C102:C1002,2)/1000", "A1", ws); assert.ok(oParser.parse()); res = Math.round(oParser.calculate().getValue() * 100); - console.log(res); assert.ok(res >= 20 && res <= 29, "Spreading percentages for number 2 in COUNTIF(C102:C1002,2)/1000"); oParser = new parserFormula("COUNTIF(C102:C1002,3)/1000", "A1", ws); @@ -14643,15 +16235,176 @@ $(function () { QUnit.test("Test: \"AVERAGEIF\"", function (assert) { + ws.getRange2("F2:F3").setValue(""); + ws.getRange2("E2").setValue("10"); ws.getRange2("E3").setValue("20"); ws.getRange2("E4").setValue("28"); ws.getRange2("E5").setValue("30"); + ws.getRange2("E6").setValue("1"); + ws.getRange2("E7").setValue("0"); oParser = new parserFormula("AVERAGEIF(E2:E5,\">15\")", "A1", ws); assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue(), 26); + oParser = new parserFormula("AVERAGEIF(E2:E5,20)", "A1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 20); + + oParser = new parserFormula("AVERAGEIF(E2:E7,30)", "A1", ws); + assert.ok(oParser.parse(), "AVERAGEIF(E2:E7,30)"); + assert.strictEqual(oParser.calculate().getValue(), 30, "Result of AVERAGEIF(E2:E7,30)"); + + oParser = new parserFormula('AVERAGEIF(E2:E7,"1")', "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(E2:E7,"1")'); + assert.strictEqual(oParser.calculate().getValue(), 1, 'Result of AVERAGEIF(E2:E7,"1")'); + + oParser = new parserFormula('AVERAGEIF(E2:E7,"1s")', "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(E2:E7,"1s")'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF(E2:E7,"1s")'); + + oParser = new parserFormula("AVERAGEIF(E2:E7,TRUE)", "A1", ws); + assert.ok(oParser.parse(), "AVERAGEIF(E2:E7,TRUE)"); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", "Result of AVERAGEIF(E2:E7,TRUE)"); + + oParser = new parserFormula("AVERAGEIF(E2:E7,FALSE)", "A1", ws); + assert.ok(oParser.parse(), "AVERAGEIF(E2:E7,FALSE)"); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", "Result of AVERAGEIF(E2:E7,FALSE)"); + + let sheetName = ws.getName(); + oParser = new parserFormula("AVERAGEIF(E2:E3,\"<>0\")", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(E2:E3,\"<>0\")'); + assert.strictEqual(oParser.calculate().getValue(), 15, 'Result of AVERAGEIF(E2:E3,\"<>0\")'); + + oParser = new parserFormula("AVERAGEIF(E2:E3,\"<>0\",E4:E5)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(E2:E3,\"<>0\",E4:E5)'); + assert.strictEqual(oParser.calculate().getValue(), 29, 'Result of AVERAGEIF(E2:E3,\"<>0\",E4:E5)'); + + oParser = new parserFormula("AVERAGEIF("+sheetName+"!E2:E3,\"<>0\")", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF('+sheetName+'!E2:E3,\"<>0\")'); + assert.strictEqual(oParser.calculate().getValue(), 15, 'Result of AVERAGEIF('+sheetName+'!E2:E3,\"<>0\")'); + + oParser = new parserFormula("AVERAGEIF("+sheetName+"!E2:E3,\"<>0\", "+sheetName+"!E4:E5)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF('+sheetName+'!E2:E3,\"<>0\",'+sheetName+'!E4:E5)")'); + assert.strictEqual(oParser.calculate().getValue(), 29, 'Result of AVERAGEIF('+sheetName+'!E2:E3,\"<>0\",'+sheetName+'!E4:E5)")'); + + // empty range check + oParser = new parserFormula("AVERAGEIF(F2:F3,\"<>0\")", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(F2:F3,\"<>0\") - empty range in the first argument'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF(F2:F3,\"<>0\")'); + + oParser = new parserFormula("AVERAGEIF(F2:F3,\"<>0\",F2:F3)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(F2:F3,\"<>0\",F2:F3) - empty range in the first and third args'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF(F2:F3,\"<>0\",F2:F3)'); + + oParser = new parserFormula("AVERAGEIF(F2:F3,\"<>0\",E2:E3)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(F2:F3,\"<>0\",E2:E3) - empty range in the first argument, normal range in third arg'); + assert.strictEqual(oParser.calculate().getValue(), 15, 'Result of AVERAGEIF(F2:F3,\"<>0\",E2:E3)'); + + oParser = new parserFormula("AVERAGEIF(E2:E3,\"<>0\",F2:F3)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(E2:E3,\"<>0\",F2:F3) - normal range in the first arg, empty range in third arg'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF(E2:E3,\"<>0\",F2:F3)'); + + oParser = new parserFormula("AVERAGEIF("+sheetName+"!F2:F3,\"<>0\")", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF('+sheetName+'!F2:F3,\"<>0\") - empty 3D range in the first argument'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF('+sheetName+'!F2:F3,\"<>0\")'); + + oParser = new parserFormula("AVERAGEIF("+sheetName+"!F2:F3,\"<>0\","+sheetName+"!E2:E3)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF('+sheetName+'!F2:F3,\"<>0\",'+sheetName+'!E2:E3) - empty 3D range in the first arg, normal 3Drange in third arg'); + assert.strictEqual(oParser.calculate().getValue(), 15, 'Result of AVERAGEIF('+sheetName+'!F2:F3,\"<>0\",'+sheetName+'!E2:E3)'); + + // type check + ws.getRange2("G1").setValue("str1"); + ws.getRange2("G2").setValue("str2"); + ws.getRange2("I1").setValue("TRUE"); + ws.getRange2("I2").setValue("FALSE"); + + oParser = new parserFormula("AVERAGEIF(G1,\"<>0\")", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(G1,\"<>0\") - string in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF(G1,\"<>0\")'); + + oParser = new parserFormula("AVERAGEIF(G1,\"<>0\",E2)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(G1,\"<>0\",E2) - string in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), 10, 'Result of AVERAGEIF(G1,\"<>0\",E2)'); + + oParser = new parserFormula("AVERAGEIF(G1,\"<>0\",E2:E3)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(G1,\"<>0\",E2:E3) - string in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), 10, 'Result of AVERAGEIF(G1,\"<>0\",E2:E3)'); + + oParser = new parserFormula("AVERAGEIF(E2:E3,\"<>0\",G1)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(E2:E3,\"<>0\",G1) - string in the third arg'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF(E2:E3,\"<>0\",G1)'); + + + oParser = new parserFormula("AVERAGEIF(I1,\"<>0\")", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(I1,\"<>0\") - bool in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF(I1,\"<>0\")'); + + oParser = new parserFormula("AVERAGEIF(I2,\"<>0\")", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(I2,\"<>0\") - bool in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AVERAGEIF(I2,\"<>0\")'); + + oParser = new parserFormula("AVERAGEIF(I1,\"<>0\",E2)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(I1,\"<>0\",E2) - bool in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), 10, 'Result of AVERAGEIF(I1,\"<>0\",E2)'); + + oParser = new parserFormula("AVERAGEIF(I1,\"<>0\",E2:E3)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(I1,\"<>0\",E2:E3) - bool in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), 10, 'Result of AVERAGEIF(I1,\"<>0\",E2:E3)'); + + oParser = new parserFormula("AVERAGEIF(I2,\"<>0\",E2)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(I2,\"<>0\",E2) - bool in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), 10, 'Result of AVERAGEIF(I2,\"<>0\",E2)'); + + oParser = new parserFormula("AVERAGEIF(I2,\"<>0\",E2:E3)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(I2,\"<>0\",E2:E3) - bool in the first arg'); + assert.strictEqual(oParser.calculate().getValue(), 10, 'Result of AVERAGEIF(I2,\"<>0\",E2:E3)'); + + /* exact types for arg0, arg2 check */ + let calculateResult = new AscCommonExcel.CalculateResult(true); + + oParser = new parserFormula("AVERAGEIF({1,2,3},A2:A9,A2)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF({1,2,3},A2:A9,A2) - arg0 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF({1,2,3},A2:A9,A2)'); + + oParser = new parserFormula("AVERAGEIF(12,A2:A9,A2)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(12,A2:A9,A2) - arg0 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF(12,A2:A9,A2)'); + + oParser = new parserFormula('AVERAGEIF("str",A2:A9,A2)', "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF("str",A2:A9,A2) - arg0 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF("str",A2:A9,A2)'); + + oParser = new parserFormula('AVERAGEIF(TRUE,A2:A9,A2)', "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(TRUE,A2:A9,A2) - arg0 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF(TRUE,A2:A9,A2)'); + + oParser = new parserFormula('AVERAGEIF(#N/A,A2:A9,A2)', "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(#N/A,A2:A9,A2) - arg0 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF(#N/A,A2:A9,A2)'); + + oParser = new parserFormula("AVERAGEIF(A2,A2:A9,{1,2,3})", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(A2,A2:A9,{1,2,3}) - arg2 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF(A2,A2:A9,{1,2,3})'); + + oParser = new parserFormula("AVERAGEIF(A2,A2:A9,12)", "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(A2,A2:A9,12) - arg2 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF(A2,A2:A9,12)'); + + oParser = new parserFormula('AVERAGEIF(A2,A2:A9,"str")', "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(A2,A2:A9,"str") - arg2 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF(A2,A2:A9,"str")'); + + oParser = new parserFormula('AVERAGEIF(A2,A2:A9,TRUE)', "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(A2,A2:A9,TRUE) - arg2 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF(A2,A2:A9,TRUE)'); + + oParser = new parserFormula('AVERAGEIF(A2,A2:A9,#N/A)', "A1", ws); + assert.ok(oParser.parse(), 'AVERAGEIF(A2,A2:A9,#N/A) - arg2 exact type check'); + assert.strictEqual(oParser.calculate(null, null, null, null, calculateResult).getValue(), "#NULL!", 'Result of AVERAGEIF(A2,A2:A9,#N/A)'); + + testArrayFormula2(assert, "AVERAGEIF", 2, 3, null, true); }); @@ -14812,9 +16565,71 @@ $(function () { assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue(), 64); - }); - - QUnit.test("Test: \"AND\"", function (assert) { + // for bug 38994 + ws.getRange2("B101").setValue(""); + ws.getRange2("B102").setValue("0"); + ws.getRange2("B103").setValue("0"); + ws.getRange2("B104").setValue("1"); + ws.getRange2("B105").setValue("0"); + ws.getRange2("B106").setValue("0"); + ws.getRange2("B107").setValue("1"); + + ws.getRange2("C101").setValue("#DIV/0!"); + ws.getRange2("C102").setValue("#DIV/0!"); + ws.getRange2("C103").setValue("#DIV/0!"); + ws.getRange2("C104").setValue("3"); + ws.getRange2("C105").setValue("#DIV/0!"); + ws.getRange2("C106").setValue("#DIV/0!"); + ws.getRange2("C107").setValue("37"); + + ws.getRange2("D101").setValue(""); + ws.getRange2("D102").setValue("1"); + ws.getRange2("D103").setValue("2"); + ws.getRange2("D104").setValue("3"); + ws.getRange2("D105").setValue("4"); + ws.getRange2("D106").setValue("5"); + ws.getRange2("D107").setValue("999"); + + oParser = new parserFormula("AGGREGATE(15,6,ROW(B101:B107),1)", "A1", ws); + assert.ok(oParser.parse(), 'AGGREGATE(15,6,ROW(B101:B107),1)'); + assert.strictEqual(oParser.calculate().getValue(), 101, 'Result of AGGREGATE(15,6,ROW(B101:B107),1)'); + + oParser = new parserFormula("AGGREGATE(15,6,ROW(B101:B107)/(B102:B107=1),1)", "A1", ws); + assert.ok(oParser.parse(), 'AGGREGATE(15,6,ROW(B101:B107)/(B102:B107=1),1)'); + assert.strictEqual(oParser.calculate().getValue(), 103, 'Result of AGGREGATE(15,6,ROW(B101:B107)/(B102:B107=1),1)'); + + oParser = new parserFormula("AGGREGATE(15,6,C101:C107,1)", "A1", ws); + assert.ok(oParser.parse(), 'AGGREGATE(15,6,C101:C107,1)'); + assert.strictEqual(oParser.calculate().getValue(), 3, 'Result of AGGREGATE(15,6,C101:C107,1)'); + + // cross test + let bbox = ws.getRange2("G101").bbox; + let cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula('AGGREGATE(15,D101:D107,C101:C107,1)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'AGGREGATE(15,D101:D107,C101:C107,1)'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of AGGREGATE(15,D101:D107,C101:C107,1)'); + + bbox = ws.getRange2("G103").bbox; + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula('AGGREGATE(15,D101:D107,C101:C107,1)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'AGGREGATE(15,D101:D107,C101:C107,1)'); + assert.strictEqual(oParser.calculate().getValue(), 3, 'Result of AGGREGATE(15,D101:D107,C101:C107,1)'); + + bbox = ws.getRange2("G104").bbox; + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula('AGGREGATE(15,D101:D107,C101:C107,1)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'AGGREGATE(15,D101:D107,C101:C107,1)'); + assert.strictEqual(oParser.calculate().getValue(), 3, 'Result of AGGREGATE(15,D101:D107,C101:C107,1)'); + + bbox = ws.getRange2("G107").bbox; + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula('AGGREGATE(15,D101:D107,C101:C107,1)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'AGGREGATE(15,D101:D107,C101:C107,1)'); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", 'Result of AGGREGATE(15,D101:D107,C101:C107,1)'); + + }); + + QUnit.test("Test: \"AND\"", function (assert) { ws.getRange2("A2").setValue("50"); ws.getRange2("A3").setValue("100"); @@ -15161,7 +16976,129 @@ $(function () { assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue(), "#VALUE!"); + // bool, ref, num, string, err + ws.getRange2("A88").setValue("#DIV/0!"); + ws.getRange2("A89").setValue("#NUM!"); + ws.getRange2("A90").setValue("TRUE"); + ws.getRange2("A91").setValue("TRUE"); + ws.getRange2("A92").setValue("FALSE"); + ws.getRange2("A93").setValue("FALSE"); + ws.getRange2("A94").setValue("1"); + ws.getRange2("A95").setValue("0"); + ws.getRange2("A96").setValue("1s"); + ws.getRange2("A97").setValue("1"); + ws.getRange2("A97").setNumFormat("@"); + ws.getRange2("A98").setValue(""); + ws.getRange2("A99").setValue("0"); + + oParser = new parserFormula('COUNTIFS(A90:A99,TRUE)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,A90)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,FALSE)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,A92)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,1)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,A94)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,A97)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,0)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,A95)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,"")', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 1); + + oParser = new parserFormula('COUNTIFS(A90:A99,A98)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('COUNTIFS(A90:A99,A88)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 0); + + oParser = new parserFormula('COUNTIFS(A90:A99,#DIV/0!)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 0); + + oParser = new parserFormula('COUNTIFS(A90:A99,#NUM!)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 0); + + oParser = new parserFormula('COUNTIFS(A90:A99,A89)', "E1", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 0); + + // arg0 = #DIV/0! + oParser = new parserFormula('COUNTIFS(A88,A88:A99)', "E1", ws); + oParser.setArrayFormulaRef(ws.getRange2("AD6:AF8").bbox); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getElementRowCol(0,0).getValue(), 1, 'Result of COUNTIFS(A88,A88:A99)[0,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(1,0).getValue(), 0, 'Result of COUNTIFS(A88,A88:A99)[1,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(2,0).getValue(), 0, 'Result of COUNTIFS(A88,A88:A99)[2,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(3,0).getValue(), 0, 'Result of COUNTIFS(A88,A88:A99)[3,0]'); + + // arg0 = TRUE + oParser = new parserFormula('COUNTIFS(A90,A88:A99)', "E1", ws); + oParser.setArrayFormulaRef(ws.getRange2("AD6:AF8").bbox); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getElementRowCol(0,0).getValue(), 0, 'Result of COUNTIFS(A90,A88:A99)[0,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(1,0).getValue(), 0, 'Result of COUNTIFS(A90,A88:A99)[1,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(2,0).getValue(), 1, 'Result of COUNTIFS(A90,A88:A99)[2,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(3,0).getValue(), 1, 'Result of COUNTIFS(A90,A88:A99)[3,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(4,0).getValue(), 0, 'Result of COUNTIFS(A90,A88:A99)[4,0]'); + + // arg0 = 0 + oParser = new parserFormula('COUNTIFS(A95,A88:A99)', "E1", ws); + oParser.setArrayFormulaRef(ws.getRange2("AD6:AF8").bbox); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getElementRowCol(4,0).getValue(), 0, 'Result of COUNTIFS(A95,A88:A99)[4,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(5,0).getValue(), 0, 'Result of COUNTIFS(A95,A88:A99)[5,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(6,0).getValue(), 0, 'Result of COUNTIFS(A95,A88:A99)[6,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(7,0).getValue(), 1, 'Result of COUNTIFS(A95,A88:A99)[7,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(8,0).getValue(), 0, 'Result of COUNTIFS(A95,A88:A99)[8,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(9,0).getValue(), 0, 'Result of COUNTIFS(A95,A88:A99)[9,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(10,0).getValue(), 1, 'Result of COUNTIFS(A95,A88:A99)[10,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(11,0).getValue(), 1, 'Result of COUNTIFS(A95,A88:A99)[11,0]'); + + // arg0 = cEmpty + oParser = new parserFormula('COUNTIFS(A98,A88:A99)', "E1", ws); + oParser.setArrayFormulaRef(ws.getRange2("AD6:AF8").bbox); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getElementRowCol(4,0).getValue(), 0, 'Result of COUNTIFS(A98,A88:A99)[4,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(5,0).getValue(), 0, 'Result of COUNTIFS(A98,A88:A99)[5,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(6,0).getValue(), 0, 'Result of COUNTIFS(A98,A88:A99)[6,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(7,0).getValue(), 0, 'Result of COUNTIFS(A98,A88:A99)[7,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(8,0).getValue(), 0, 'Result of COUNTIFS(A98,A88:A99)[8,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(9,0).getValue(), 0, 'Result of COUNTIFS(A98,A88:A99)[9,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(10,0).getValue(), 0, 'Result of COUNTIFS(A98,A88:A99)[10,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(11,0).getValue(), 0, 'Result of COUNTIFS(A98,A88:A99)[11,0]'); + + // bug 58497 + ws.getRange2("A100:Z300").cleanAll(); ws.getRange2("A101").setValue("str1"); ws.getRange2("A102").setValue("str2"); ws.getRange2("A103").setValue(""); @@ -15169,19 +17106,23 @@ $(function () { oParser = new parserFormula('COUNTIFS(A101:A104,A101:A104)', "E1", ws); assert.ok(oParser.parse(), "COUNTIFS(A101:A104,A101:A104)"); - assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", "Result of COUNTIFS(A101:A104,A101:A104)"); // 1 + // without setArrayFormulaRef executed as .cross and as result and as a result, #VALUE comes into the second argument + assert.strictEqual(oParser.calculate().getValue(), 0, "Result of COUNTIFS(A101:A104,A101:A104)"); oParser = new parserFormula('COUNTIFS(A101:A104,A101:A104&"")', "E1", ws); assert.ok(oParser.parse(), 'COUNTIFS(A101:A104,A101:A104&"")'); - assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of COUNTIFS(A101:A104,A101:A104&"")'); // 1 + assert.strictEqual(oParser.calculate().getElementRowCol(0,0).getValue(), 1, 'Result of COUNTIFS(A101:A104,A101:A104&"")[0,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(1,0).getValue(), 1, 'Result of COUNTIFS(A101:A104,A101:A104&"")[1,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(2,0).getValue(), 2, 'Result of COUNTIFS(A101:A104,A101:A104&"")[2,0]'); + assert.strictEqual(oParser.calculate().getElementRowCol(3,0).getValue(), 2, 'Result of COUNTIFS(A101:A104,A101:A104&"")[3,0]'); oParser = new parserFormula('COUNTIFS(A101:A104,A101:A104)', "E1", ws); oParser.setArrayFormulaRef(ws.getRange2("AD6:AF8").bbox); assert.ok(oParser.parse(), "COUNTIFS(A101:A104,A101:A104)"); assert.strictEqual(oParser.calculate().getElementRowCol(0,0).getValue(), 1, "Result of COUNTIFS(A101:A104,A101:A104)[0,0]"); assert.strictEqual(oParser.calculate().getElementRowCol(1,0).getValue(), 1, "Result of COUNTIFS(A101:A104,A101:A104)[1,0]"); - assert.strictEqual(oParser.calculate().getElementRowCol(2,0).getValue(), 2, "Result of COUNTIFS(A101:A104,A101:A104)[2,0]"); // 0 - assert.strictEqual(oParser.calculate().getElementRowCol(3,0).getValue(), 2, "Result of COUNTIFS(A101:A104,A101:A104)[3,0]"); // 0 + assert.strictEqual(oParser.calculate().getElementRowCol(2,0).getValue(), 0, "Result of COUNTIFS(A101:A104,A101:A104)[2,0]"); + assert.strictEqual(oParser.calculate().getElementRowCol(3,0).getValue(), 0, "Result of COUNTIFS(A101:A104,A101:A104)[3,0]"); oParser = new parserFormula('COUNTIFS(A101:A104,A101:A104&"")', "E1", ws); oParser.setArrayFormulaRef(ws.getRange2("AD6:AF8").bbox); @@ -15746,20 +17687,21 @@ $(function () { ws.getRange2("A1").setValue("5.6"); ws.getRange2("A2").setValue("8.2"); ws.getRange2("A3").setValue("9.2"); + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 0, 3); // A4 - oParser = new parserFormula("DEVSQ(5.6,8.2,9.2)", "A1", ws); + oParser = new parserFormula("DEVSQ(5.6,8.2,9.2)", cellWithFormula, ws); assert.ok(oParser.parse()); assert.strictEqual(difBetween(oParser.calculate().getValue(), 6.906666666666665), true); - oParser = new parserFormula("DEVSQ({5.6,8.2,9.2})", "A1", ws); + oParser = new parserFormula("DEVSQ({5.6,8.2,9.2})", cellWithFormula, ws); assert.ok(oParser.parse()); assert.strictEqual(difBetween(oParser.calculate().getValue(), 6.906666666666665), true); - oParser = new parserFormula("DEVSQ(5.6,8.2,\"9.2\")", "A1", ws); + oParser = new parserFormula("DEVSQ(5.6,8.2,\"9.2\")", cellWithFormula, ws); assert.ok(oParser.parse()); assert.strictEqual(difBetween(oParser.calculate().getValue(), 3.379999999999999), true); - oParser = new parserFormula("DEVSQ(" + ws.getName() + "!A1:A3)", "A1", ws); + oParser = new parserFormula("DEVSQ(" + ws.getName() + "!A1:A3)", cellWithFormula, ws); assert.ok(oParser.parse()); assert.strictEqual(difBetween(oParser.calculate().getValue(), 6.906666666666665), true); @@ -16302,56 +18244,57 @@ $(function () { ws2.getRange2("A2").setValue("2"); ws2.getRange2("B1").setValue("3"); ws2.getRange2("B2").setValue("4"); + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 0, 2); - oParser = new parserFormula("FORECAST(1,A1:A2,B1:B2)", "A1", ws); + oParser = new parserFormula("FORECAST(1,A1:A2,B1:B2)", cellWithFormula, ws); assert.ok(oParser.parse(), "FORECAST(1,A1:A2,B1:B2)"); assert.strictEqual(oParser.calculate().getValue(), -1, "Result of FORECAST(1,A1:A2,B1:B2)"); // for bug 65245 - oParser = new parserFormula("FORECAST(1,Sheet2!A1:A2,Sheet2!B1:B2)", "A1", ws); + oParser = new parserFormula("FORECAST(1,Sheet2!A1:A2,Sheet2!B1:B2)", cellWithFormula, ws); assert.ok(oParser.parse(), "FORECAST(1,Sheet2!A1:A2,Sheet2!B1:B2). Bug 65245 test"); assert.strictEqual(oParser.calculate().getValue(), -1, "Result of FORECAST(1,Sheet2!A1:A2,Sheet2!B1:B2)"); // errors - oParser = new parserFormula("FORECAST(#N/A,A1:A2,B1:B2)", "A1", ws); + oParser = new parserFormula("FORECAST(#N/A,A1:A2,B1:B2)", cellWithFormula, ws); assert.ok(oParser.parse(), "FORECAST(#N/A,A1:A2,B1:B2)"); assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST(#N/A,A1:A2,B1:B2)"); - oParser = new parserFormula("FORECAST(1,#NUM!,#N/A)", "A1", ws); + oParser = new parserFormula("FORECAST(1,#NUM!,#N/A)", cellWithFormula, ws); assert.ok(oParser.parse(), "FORECAST(1,#NUM!,#N/A)"); assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of FORECAST(1,#NUM!,#N/A)"); - oParser = new parserFormula("FORECAST(1,A1:A2,#NUM!)", "A1", ws); + oParser = new parserFormula("FORECAST(1,A1:A2,#NUM!)", cellWithFormula, ws); assert.ok(oParser.parse(), "FORECAST(1,A1:A2,#NUM!)"); assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of FORECAST(1,A1:A2,#NUM!)"); // strings - oParser = new parserFormula('FORECAST("1",A1:A2,B1:B2)', "A1", ws); + oParser = new parserFormula('FORECAST("1",A1:A2,B1:B2)', cellWithFormula, ws); assert.ok(oParser.parse(), 'FORECAST("1",A1:A2,B1:B2)'); assert.strictEqual(oParser.calculate().getValue(), -1, 'Result of FORECAST("1",A1:A2,B1:B2)'); - oParser = new parserFormula('FORECAST("1s",A1:A2,B1:B2)', "A1", ws); + oParser = new parserFormula('FORECAST("1s",A1:A2,B1:B2)', cellWithFormula, ws); assert.ok(oParser.parse(), 'FORECAST("1s",A1:A2,B1:B2)'); assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of FORECAST("1s",A1:A2,B1:B2)'); - oParser = new parserFormula('FORECAST(1,{1,"2"},{1,2})', "A1", ws); + oParser = new parserFormula('FORECAST(1,{1,"2"},{1,2})', cellWithFormula, ws); assert.ok(oParser.parse(), 'FORECAST(1,{1,"2"},{1,2})'); assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of FORECAST(1,{1,"2"},{1,2})'); - oParser = new parserFormula('FORECAST(1,{1,2},{"1",2})', "A1", ws); + oParser = new parserFormula('FORECAST(1,{1,2},{"1",2})', cellWithFormula, ws); assert.ok(oParser.parse(), 'FORECAST(1,{1,2},{"1",2})'); assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of FORECAST(1,{1,2},{"1",2})'); // bools - oParser = new parserFormula('FORECAST(FALSE,A1:A2,B1:B2)', "A1", ws); + oParser = new parserFormula('FORECAST(FALSE,A1:A2,B1:B2)', cellWithFormula, ws); assert.ok(oParser.parse(), 'FORECAST(FALSE,A1:A2,B1:B2)'); assert.strictEqual(oParser.calculate().getValue(), -2, 'Result of FORECAST(FALSE,A1:A2,B1:B2)'); - oParser = new parserFormula('FORECAST(TRUE,A1:A2,B1:B2)', "A1", ws); + oParser = new parserFormula('FORECAST(TRUE,A1:A2,B1:B2)', cellWithFormula, ws); assert.ok(oParser.parse(), 'FORECAST(TRUE,A1:A2,B1:B2)'); assert.strictEqual(oParser.calculate().getValue(), -1, 'Result of FORECAST(TRUE,A1:A2,B1:B2)'); - oParser = new parserFormula('FORECAST(TRUE,{TRUE,2},{TRUE,2})', "A1", ws); + oParser = new parserFormula('FORECAST(TRUE,{TRUE,2},{TRUE,2})', cellWithFormula, ws); assert.ok(oParser.parse(), 'FORECAST(TRUE,{TRUE,2},{TRUE,2})'); assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of FORECAST(TRUE,{TRUE,2},{TRUE,2})'); @@ -16605,6 +18548,184 @@ $(function () { assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue().toFixed(8) - 0, 4123263.96483545); + let sheetName = ws.getName(); + ws.getRange2("A100:A102").setValue(""); + ws.getRange2("B100").setValue("1"); + ws.getRange2("B101").setValue("2"); + ws.getRange2("B102").setValue("3"); + ws.getRange2("C100").setValue("1"); + ws.getRange2("C101").setValue("2"); + ws.getRange2("C102").setValue("3"); + + ws.getRange2("D100").setValue("123"); + ws.getRange2("D101").setValue("123s"); + + oParser = new parserFormula("FORECAST.ETS(B100:B102,B100:B102,B100:B102)", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:F106").bbox); + assert.ok(oParser.parse(), "FORECAST.ETS(B100:B102,B100:B102,B100:B102)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 1, "Result of FORECAST.ETS(B100:B102,B100:B102,B100:B102)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 2, "Result of FORECAST.ETS(B100:B102,B100:B102,B100:B102)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 3, "Result of FORECAST.ETS(B100:B102,B100:B102,B100:B102)[2,0]"); + + oParser = new parserFormula("FORECAST.ETS("+sheetName+"!B100:B102,B100:B102,B100:B102)", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:F106").bbox); + assert.ok(oParser.parse(), "FORECAST.ETS("+sheetName+"!B100:B102,B100:B102,B100:B102)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 1, "Result of FORECAST.ETS("+sheetName+"!B100:B102,B100:B102,B100:B102)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 2, "Result of FORECAST.ETS("+sheetName+"!B100:B102,B100:B102,B100:B102)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 3, "Result of FORECAST.ETS("+sheetName+"!B100:B102,B100:B102,B100:B102)[2,0]"); + + oParser = new parserFormula("FORECAST.ETS({1,2,3},B100:B102,B100:B102)", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:F106").bbox); + assert.ok(oParser.parse(), "FORECAST.ETS({1,2,3},B100:B102,B100:B102)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 1, "Result of FORECAST.ETS({1,2,3},B100:B102,B100:B102)[0,0]"); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 2, "Result of FORECAST.ETS({1,2,3},B100:B102,B100:B102)[0,1]"); + assert.strictEqual(array.getElementRowCol(0, 2).getValue(), 3, "Result of FORECAST.ETS({1,2,3},B100:B102,B100:B102)[0,2]"); + + oParser = new parserFormula("FORECAST.ETS({1;2;3},B100:B102,B100:B102)", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:F106").bbox); + assert.ok(oParser.parse(), "FORECAST.ETS({1;2;3},B100:B102,B100:B102)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 1, "Result of FORECAST.ETS({1;2;3},B100:B102,B100:B102)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 2, "Result of FORECAST.ETS({1;2;3},B100:B102,B100:B102)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 3, "Result of FORECAST.ETS({1;2;3},B100:B102,B100:B102)[2,0]"); + + oParser = new parserFormula("FORECAST.ETS(123,{1;2;3},B100:B102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(123,{1;2;3},B100:B102)"); + assert.strictEqual(oParser.calculate().getValue(), 123, "Result of FORECAST.ETS(123,{1;2;3},B100:B102)"); + + oParser = new parserFormula("FORECAST.ETS(123,{1;2;3},{1;2;3})", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(123,{1;2;3},{1;2;3})"); + assert.strictEqual(oParser.calculate().getValue(), 123, "Result of FORECAST.ETS(123,{1;2;3},{1;2;3})"); + + oParser = new parserFormula("FORECAST.ETS(123,A100:A102,A100:A102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(123,A100:A102,A100:A102) - empty array in 2 and 3 arguments"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST.ETS(123,A100:A102,A100:A102) - empty array in 2 and 3 arguments"); + + oParser = new parserFormula("FORECAST.ETS(123,A100:A102,B100:B102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(123,A100:A102,B100:B102) - empty array in 2 argument"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST.ETS(123,A100:A102,B100:B102) - empty array in 2 argument"); + + oParser = new parserFormula("FORECAST.ETS(123,B100:B102,A100:A102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(123,B100:B102,A100:A102) - empty array in 3 argument"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of FORECAST.ETS(123,B100:B102,A100:A102) - empty array in 3 argument"); // in the editor returns #N/A + + oParser = new parserFormula("FORECAST.ETS(123,B100:B102,C100:C102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(123,B100:B102,C100:C102)"); + assert.strictEqual(oParser.calculate().getValue(), 123, "Result of FORECAST.ETS(123,B100:B102,C100:C102)"); + + // base type checks + oParser = new parserFormula('FORECAST.ETS("123",B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS("123",B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), 123, 'Result of FORECAST.ETS("123",B100:B102,C100:C102)'); + + oParser = new parserFormula('FORECAST.ETS(D100,B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS(D100,B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), 123, 'Result of FORECAST.ETS(D100,B100:B102,C100:C102)'); + + oParser = new parserFormula('FORECAST.ETS("123s",B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS("123s",B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of FORECAST.ETS("123s",B100:B102,C100:C102)'); + + oParser = new parserFormula('FORECAST.ETS(D101,B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS(D101,B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of FORECAST.ETS(D101,B100:B102,C100:C102)'); + + oParser = new parserFormula("FORECAST.ETS(#N/A,B100:B102,C100:C102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(#N/A,B100:B102,C100:C102)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST.ETS(#N/A,B100:B102,C100:C102)"); + + oParser = new parserFormula("FORECAST.ETS(123,#N/A,C100:C102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(123,#N/A,C100:C102)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST.ETS(123,#N/A,C100:C102)"); + + oParser = new parserFormula("FORECAST.ETS(123,B100:B102,#N/A)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(123,B100:B102,#N/A)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST.ETS(123,B100:B102,#N/A)"); + + oParser = new parserFormula("FORECAST.ETS(#N/A,#NUM!,C100:C102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS(#N/A,#NUM!,C100:C102)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST.ETS(#N/A,#NUM!,C100:C102)"); + + }); + + QUnit.test("Test: \"FORECAST.ETS.CONFINT\"", function (assert) { + putDataForForecastEts(); + + ws.getRange2("A100:A102").setValue(""); + ws.getRange2("B100").setValue("1"); + ws.getRange2("B101").setValue("2"); + ws.getRange2("B102").setValue("3"); + ws.getRange2("C100").setValue("1"); + ws.getRange2("C101").setValue("2"); + ws.getRange2("C102").setValue("3"); + + ws.getRange2("D100").setValue("123"); + ws.getRange2("D101").setValue("123s"); + + oParser = new parserFormula("FORECAST.ETS.CONFINT(123,A100:A102,A100:A102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS.CONFINT(123,A100:A102,A100:A102) - empty array in 2 and 3 arguments"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST.ETS.CONFINT(123,A100:A102,A100:A102) - empty array in 2 and 3 arguments"); // #DIV/0! + + oParser = new parserFormula("FORECAST.ETS.CONFINT(123,A100:A102,B100:B102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS.CONFINT(123,A100:A102,B100:B102) - empty array in 2 argument"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of FORECAST.ETS.CONFINT(123,A100:A102,B100:B102) - empty array in 2 argument"); // #DIV/0! + + oParser = new parserFormula("FORECAST.ETS.CONFINT(123,B100:B102,A100:A102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS.CONFINT(123,B100:B102,A100:A102) - empty array in 3 argument"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT(123,B100:B102,A100:A102) - empty array in 3 argument"); // #DIV/0! + + oParser = new parserFormula("FORECAST.ETS.CONFINT(B100:B102,B100:B102,B100:B102)", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:F106").bbox); + assert.ok(oParser.parse(), "FORECAST.ETS.CONFINT(B100:B102,B100:B102,B100:B102)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT(B100:B102,B100:B102,B100:B102)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT(B100:B102,B100:B102,B100:B102)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT(B100:B102,B100:B102,B100:B102)[2,0]"); + + oParser = new parserFormula("FORECAST.ETS.CONFINT({1;2;3},B100:B102,B100:B102)", "A1", ws); + oParser.setArrayFormulaRef(ws.getRange2("E106:F106").bbox); + assert.ok(oParser.parse(), "FORECAST.ETS.CONFINT({1;2;3},B100:B102,B100:B102)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT({1;2;3},B100:B102,B100:B102)[0,0]"); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT({1;2;3},B100:B102,B100:B102)[1,0]"); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT({1;2;3},B100:B102,B100:B102)[2,0]"); + + // base type checks + oParser = new parserFormula("FORECAST.ETS.CONFINT(123,B100:B102,C100:C102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS.CONFINT(123,B100:B102,C100:C102)"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT(123,B100:B102,C100:C102)"); // 0 + + oParser = new parserFormula("FORECAST.ETS.CONFINT(0,B100:B102,C100:C102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS.CONFINT(0,B100:B102,C100:C102)"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT(0,B100:B102,C100:C102)"); + + oParser = new parserFormula("FORECAST.ETS.CONFINT(-1,B100:B102,C100:C102)", "A1", ws); + assert.ok(oParser.parse(), "FORECAST.ETS.CONFINT(-1,B100:B102,C100:C102)"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of FORECAST.ETS.CONFINT(-1,B100:B102,C100:C102)"); + + oParser = new parserFormula('FORECAST.ETS.CONFINT("123s",B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS.CONFINT("123s",B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of FORECAST.ETS.CONFINT("123s",B100:B102,C100:C102)'); + + oParser = new parserFormula('FORECAST.ETS.CONFINT(D101,B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS.CONFINT(D101,B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of FORECAST.ETS.CONFINT(D101,B100:B102,C100:C102)'); + + oParser = new parserFormula('FORECAST.ETS.CONFINT(FALSE,B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS.CONFINT(FALSE,B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", 'Result of FORECAST.ETS.CONFINT(FALSE,B100:B102,C100:C102)'); + + oParser = new parserFormula('FORECAST.ETS.CONFINT(TRUE,B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS.CONFINT(TRUE,B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", 'Result of FORECAST.ETS.CONFINT(TRUE,B100:B102,C100:C102)'); + + oParser = new parserFormula('FORECAST.ETS.CONFINT(#N/A,B100:B102,C100:C102)', "A1", ws); + assert.ok(oParser.parse(), 'FORECAST.ETS.CONFINT(#N/A,B100:B102,C100:C102)'); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", 'Result of FORECAST.ETS.CONFINT(#N/A,B100:B102,C100:C102)'); + }); QUnit.test("Test: \"FORECAST.ETS.SEASONALITY\"", function (assert) { @@ -19034,6 +21155,7 @@ $(function () { */ QUnit.test("Test: \"HLOOKUP\"", function (assert) { + let array; ws.getRange2("A401").setValue("Axles"); ws.getRange2("B401").setValue("Bearings"); ws.getRange2("C401").setValue("Bolts"); @@ -19068,38 +21190,53 @@ $(function () { assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue(), "c"); - - /*oParser = new parserFormula( "HLOOKUP(1,{1,2,3;2,3,4},2)", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), 2 ); + + oParser = new parserFormula( "HLOOKUP(1,{1,2,3;2,3,4},2)", "A2", ws ); + assert.ok( oParser.parse() , "Parse HLOOKUP(1,{1,2,3;2,3,4},2)"); + assert.strictEqual( oParser.calculate().getValue(), 2 , "Result of HLOOKUP(1,{1,2,3;2,3,4},2)"); oParser = new parserFormula( "HLOOKUP(1,{1,2,3;2,3,4},3,1)", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), "#REF!" ); + assert.ok( oParser.parse() , "Parse HLOOKUP(1,{1,2,3;2,3,4},3,1)"); + assert.strictEqual( oParser.calculate().getValue(), "#REF!" , "Result of HLOOKUP(1,{1,2,3;2,3,4},3,1)"); oParser = new parserFormula( "HLOOKUP(1,{1,2,3;2,3,4},3,0)", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), "#REF!" ); + assert.ok( oParser.parse() , "Parse HLOOKUP(1,{1,2,3;2,3,4},3,0)"); + assert.strictEqual( oParser.calculate().getValue(), "#REF!" , "Result of HLOOKUP(1,{1,2,3;2,3,4},3,0)"); oParser = new parserFormula( "HLOOKUP({2,3,4},{1,2,3;2,3,4},2)", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), 3 ); + assert.ok( oParser.parse() , "Parse HLOOKUP({2,3,4},{1,2,3;2,3,4},2)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 3, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},2)[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 4, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},2)[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 4, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},2)[0,2]"); oParser = new parserFormula( "HLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), "#REF!" ); + assert.ok( oParser.parse() , "Parse HLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), "#REF!", "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), "#REF!", "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), "#REF!", "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})[0,2]"); oParser = new parserFormula( "HLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), 2 ); + assert.ok( oParser.parse() , "Parse HLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 3, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 3, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})[0,2]"); oParser = new parserFormula( "HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), 2 ); + assert.ok( oParser.parse() , "Parse HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 3, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 3, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,2]"); oParser = new parserFormula( "HLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), 3 ); + assert.ok( oParser.parse() , "Parse HLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 3, "Result of HLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 3, "Result of HLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 3, "Result of HLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,2]"); oParser = new parserFormula( "HLOOKUP(4,{1,2,3;2,3,4;6,7,8},2)", "A2", ws ); assert.ok( oParser.parse() ); @@ -19114,13 +21251,75 @@ $(function () { assert.strictEqual( oParser.calculate().getValue(), "#REF!" ); oParser = new parserFormula( "HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)", "A2", ws ); - assert.ok( oParser.parse() ); - assert.strictEqual( oParser.calculate().getValue(), 2 );*/ + assert.ok( oParser.parse() , "Parse HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 3, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 3, "Result of HLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)[0,2]"); + + ws.getRange2("A100").setValue("2"); + ws.getRange2("B100").setValue("4"); + ws.getRange2("C100").setValue("40"); + ws.getRange2("A101").setValue("1"); + ws.getRange2("B101").setValue("2"); + ws.getRange2("C101").setValue("3"); + + ws.getRange2("E100").setValue("1"); + ws.getRange2("E101").setValue("1"); + ws.getRange2("E102").setValue("1"); + ws.getRange2("F100").setValue("2"); + ws.getRange2("F101").setValue("1"); + ws.getRange2("G100").setValue("3"); + ws.getRange2("G101").setValue("1"); + + // TODO: review tests with ranges after adding dynamic arrays + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 0, 0); + oParser = new parserFormula( "HLOOKUP(A100:C100,A100:C100,1)", cellWithFormula, ws ); + assert.ok( oParser.parse() , "Parse HLOOKUP(A100:C100,A100:C100,1)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), 2, "Result of HLOOKUP(A100:C100,A100:C100,1)"); + + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 0, 4); + oParser = new parserFormula("HLOOKUP(5,A100:C100,E100:G100)", cellWithFormula, ws); + assert.ok(oParser.parse(), "Parse HLOOKUP(5,A100:C100,E100:G100)"); + assert.strictEqual(oParser.calculate().getValue(), 4, "Result of HLOOKUP(5,A100:C100,E100:G100)"); + + oParser = new parserFormula( "HLOOKUP(5,A100:C100,E101:G101)", cellWithFormula, ws ); + assert.ok( oParser.parse() , "Parse HLOOKUP(5,A100:C100,E101:G101)"); + assert.strictEqual(oParser.calculate().getValue(), 4, "Result of HLOOKUP(5,A100:C100,E101:G101)"); + + oParser = new parserFormula( "HLOOKUP(5,A100:C100,E100:E102)", "A2", ws ); + assert.ok( oParser.parse() , "Parse HLOOKUP(5,A100:C100,E100:E102)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of HLOOKUP(5,A100:C100,E100:E102)"); + + oParser = new parserFormula( "HLOOKUP(A100:C100,A100:C100,F100)", "A2", ws ); + assert.ok( oParser.parse() , "Parse HLOOKUP(A100:C100,A100:C100,F100)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#REF!", "Result of HLOOKUP(A100:C100,A100:C100,F100)"); + + oParser = new parserFormula( "HLOOKUP(A100:C100+{0,1},A100:C100,E100:G102,FALSE)", "A2", ws ); + assert.ok( oParser.parse() , "Parse HLOOKUP(A100:C100+{0,1},A100:C100,E100:G101,FALSE)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of HLOOKUP(A100:C100+{0,1},A100:C100,E100:G101,FALSE)[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), "#N/A", "Result of HLOOKUP(A100:C100+{0,1},A100:C100,E100:G101,FALSE)[0,1]"); + + oParser = new parserFormula( "HLOOKUP(A100:C100,A100:C101,2)", "A2", ws ); + assert.ok( oParser.parse() , "Parse HLOOKUP(A100:C100,A100:C101,2)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), 1, "Result of HLOOKUP(A100:C100,A100:C101,2)"); + oParser = new parserFormula( "HLOOKUP(A100:C101,A100:C100,E100)", "A2", ws ); + assert.ok( oParser.parse() , "Parse HLOOKUP(A100:C101,A100:C100,E100)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of HLOOKUP(A100:C101,A100:C100,E100)"); + + }); QUnit.test("Test: \"VLOOKUP\"", function (assert) { + let array; ws.getRange2("A501").setValue("Density"); ws.getRange2("B501").setValue("Bearings"); ws.getRange2("C501").setValue("Bolts"); @@ -19180,24 +21379,46 @@ $(function () { assert.strictEqual(oParser.calculate().getValue(), 3); oParser = new parserFormula("VLOOKUP({2,3,4},{1,2,3;2,3,4},2)", "A2", ws); - assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 3); + assert.ok(oParser.parse(), "Parse VLOOKUP({2,3,4},{1,2,3;2,3,4},2)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 3, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},2)[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 3, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},2)[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 3, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},2)[0,2]"); + + oParser = new parserFormula("VLOOKUP({2,3,4},{1,2,3;2,3,4},2,FALSE)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP({2,3,4},{1,2,3;2,3,4},2,FALSE)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 3, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},2,FALSE)[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), "#N/A", "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},2,FALSE)[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), "#N/A", "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},2,FALSE)[0,2]"); oParser = new parserFormula("VLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})", "A2", ws); - assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#REF!"); + assert.ok(oParser.parse(), "Parse VLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), "#REF!", "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), "#REF!", "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), "#REF!", "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},{4,5,6})[0,2]"); oParser = new parserFormula("VLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})", "A2", ws); - assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 2); + assert.ok(oParser.parse(), "Parse VLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4},{1,5,6})[0,2]"); oParser = new parserFormula("VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})", "A2", ws); - assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 2); + assert.ok(oParser.parse(), "Parse VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,2]"); oParser = new parserFormula("VLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})", "A2", ws); - assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 2); + assert.ok(oParser.parse(), "Parse VLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of VLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 2, "Result of VLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 2, "Result of VLOOKUP({5,3,4},{1,2,3;2,3,4;6,7,8},{1,5,6})[0,2]"); oParser = new parserFormula("VLOOKUP(4,{1,2,3;2,3,4;6,7,8},2)", "A2", ws); assert.ok(oParser.parse()); @@ -19212,8 +21433,111 @@ $(function () { assert.strictEqual(oParser.calculate().getValue(), "#REF!"); oParser = new parserFormula("VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)", "A2", ws); - assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 2); + assert.ok(oParser.parse(), "Parse VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 2, "Result of VLOOKUP({2,3,4},{1,2,3;2,3,4;6,7,8},1)[0,2]"); + + // arg0 and arg2 array|range tests + ws.getRange2("A100").setValue("2"); + ws.getRange2("A101").setValue("4"); + ws.getRange2("A102").setValue("40"); + ws.getRange2("B100").setValue("1"); + ws.getRange2("B101").setValue("2"); + ws.getRange2("B102").setValue("3"); + ws.getRange2("E100").setValue("1"); + ws.getRange2("E101").setValue("1"); + ws.getRange2("F100").setValue("2"); + ws.getRange2("F101").setValue("1"); + ws.getRange2("G100").setValue("3"); + ws.getRange2("G101").setValue("1"); + + oParser = new parserFormula("VLOOKUP(5,A100:B102,E100:G100)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(5,A100:B102,E100:G100)"); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", "Result of VLOOKUP(5,A100:B102,E1:G1)"); + + oParser = new parserFormula("VLOOKUP(5,A100:B102,{1,2,3})", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(5,A100:B102,{1,2,3})"); + assert.strictEqual(oParser.calculate().getValue(), "#REF!", "Result of VLOOKUP(5,A100:B102,{1,2,3})"); + + + oParser = new parserFormula("VLOOKUP(5,A100:B102,E101:G101)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(5,A100:B102,E101:G101)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of VLOOKUP(5,A100:B102,E101:G101)[0,0]"); + // TODO: review tests with ranges after adding dynamic arrays + + oParser = new parserFormula("VLOOKUP(5,A100:B102,{1,1,1})", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(5,A100:B102,{1,1,1})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 4, "Result of VLOOKUP(5,A100:B102,{1,1,1})[0,0]"); + assert.strictEqual(array.getElementRowCol(0,1).getValue(), 4, "Result of VLOOKUP(5,A100:B102,{1,1,1})[0,1]"); + assert.strictEqual(array.getElementRowCol(0,2).getValue(), 4, "Result of VLOOKUP(5,A100:B102,{1,1,1})[0,2]"); + + + oParser = new parserFormula("VLOOKUP(A100:A102,A100:B102,E100)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(A100:A102,A100:B102,E100)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of VLOOKUP(A100:A102,A100:B102,E100)[0,0]"); + + + oParser = new parserFormula("VLOOKUP({2;4;40},A100:B102,E100)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP({2;4;40},A100:B102,E100)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of VLOOKUP({2;4;40},A100:B102,E100)[0,0]"); + assert.strictEqual(array.getElementRowCol(1,0).getValue(), 4, "Result of VLOOKUP({2;4;40},A100:B102,E100)[1,0]"); + assert.strictEqual(array.getElementRowCol(2,0).getValue(), 40, "Result of VLOOKUP({2;4;40},A100:B102,E100)[2,0]"); + + + oParser = new parserFormula("VLOOKUP(A100:A102,A100:B102,F100)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(A100:A102,A100:B102,F100)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of VLOOKUP(A100:A102,A100:B102,F100)[0,0]"); + + oParser = new parserFormula("VLOOKUP({2;4;40},A100:B102,F100)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP({2;4;40},A100:B102,F100)"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 1, "Result of VLOOKUP({2;4;40},A100:B102,F100)[0,0]"); + assert.strictEqual(array.getElementRowCol(1,0).getValue(), 2, "Result of VLOOKUP({2;4;40},A100:B102,F100)[1,0]"); + assert.strictEqual(array.getElementRowCol(2,0).getValue(), 3, "Result of VLOOKUP({2;4;40},A100:B102,F100)[2,0]"); + + + oParser = new parserFormula("VLOOKUP(A100:A102,A100:B102,E100:G100)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(A100:A102,A100:B102,E100:G100)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of VLOOKUP(A100:A102,A100:B102,E100:G100)"); + + oParser = new parserFormula("VLOOKUP({2;4;40},A100:B102,{1,2,3})", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP({2;4;40},A100:B102,{1,2,3})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of VLOOKUP({2;4;40},A100:B102,{1,2,3})[0,0]"); + assert.strictEqual(array.getElementRowCol(1,0).getValue(), 4, "Result of VLOOKUP({2;4;40},A100:B102,{1,2,3})[1,0]"); + assert.strictEqual(array.getElementRowCol(2,0).getValue(), 40, "Result of VLOOKUP({2;4;40},A100:B102,{1,2,3})[2,0]"); + + + oParser = new parserFormula("VLOOKUP(A100:A102,A100:B102,E100:G101)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(A100:A102,A100:B102,E100:G101)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of VLOOKUP(A100:A102,A100:B102,E100:G101)[0,0]"); + + oParser = new parserFormula("VLOOKUP({2;4;40},A100:B102,{1,2,3;1,1,1})", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP({2;4;40},A100:B102,{1,2,3;1,1,1})"); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 2, "Result of VLOOKUP({2;4;40},A100:B102,{1,2,3;1,1,1})[0,0]"); + assert.strictEqual(array.getElementRowCol(1,0).getValue(), 4, "Result of VLOOKUP({2;4;40},A100:B102,{1,2,3;1,1,1})[1,0]"); + assert.strictEqual(array.getElementRowCol(2,0).getValue(), 40, "Result of VLOOKUP({2;4;40},A100:B102,{1,2,3;1,1,1})[2,0]"); + + + oParser = new parserFormula("VLOOKUP(A100:A101,A100:B102,F100:G101)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(A100:A101,A100:B102,F100:G101)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of VLOOKUP(A100:A101,A100:B102,F100:G101)[0,0]"); + + oParser = new parserFormula("VLOOKUP(A100:A102,A100:B102,G100:G101)", "A2", ws); + assert.ok(oParser.parse(), "Parse VLOOKUP(A100:A102,A100:B102,G100:G101)"); + array = oParser.calculate(); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of VLOOKUP(A100:A102,A100:B102,G100:G101)[0,0]"); oParser = new parserFormula('VLOOKUP(,A502:C510,2)', "A2", ws); assert.ok(oParser.parse()); @@ -19465,6 +21789,25 @@ $(function () { assert.ok(oParser.parse(), 'VLOOKUP(A116,A101:A116,1)'); assert.strictEqual(oParser.calculate().getValue(), "Ke", 'Result of VLOOKUP(A116,A101:A116,1)'); + // for bug 67099 + ws.getRange2("M101:M134").setValue("W"); + ws.getRange2("M127").setValue("1"); + ws.getRange2("M128").setValue("2"); + ws.getRange2("M129").setValue("3"); + ws.getRange2("M130").setValue("4"); + ws.getRange2("M131").setValue("5"); + ws.getRange2("M132").setValue("6"); + ws.getRange2("M133").setValue("7"); + ws.getRange2("M134").setValue("8"); + ws.getRange2("N129").setValue("Looked result(3)"); + + oParser = new parserFormula('VLOOKUP(3,M101:N134,2)', "A2", ws); + assert.ok(oParser.parse(), 'VLOOKUP(3,M101:N134,2)'); + assert.strictEqual(oParser.calculate().getValue(), "Looked result(3)", 'Result of VLOOKUP(3,M101:N134,2)'); + + oParser = new parserFormula('VLOOKUP(M129,M101:N134,2)', "A2", ws); + assert.ok(oParser.parse(), 'VLOOKUP(M129,M101:N134,2)'); + assert.strictEqual(oParser.calculate().getValue(), "Looked result(3)", 'Result of VLOOKUP(M129,M101:N134,2)'); }); @@ -19577,46 +21920,46 @@ $(function () { assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue(), "#N/A"); + // TODO: review tests with ranges after adding dynamic arrays oParser = new parserFormula("LOOKUP(A102:A102,A102:A105,B102:B105)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(A102:A102,A102:A105,B102:B105)"); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0,0).getValue().getValue(), "a", "Result of LOOKUP(A102:A102,A102:A105,B102:B105)"); + assert.strictEqual(array.getValue().getValue(), "a", "Result of LOOKUP(A102:A102,A102:A105,B102:B105)"); oParser = new parserFormula("LOOKUP(A102:A103,A102:A105,B102:B105)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(A102:A103,A102:A105,B102:B105)"); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0,0).getValue().getValue(), "a", "Result of LOOKUP(A102:A103,A102:A105,B102:B105)"); - assert.strictEqual(array.getElementRowCol(1,0).getValue(), "#N/A", "Result of LOOKUP(A102:A103,A102:A105,B102:B105)"); + assert.strictEqual(array.getValue(), "#VALUE!", "Result of LOOKUP(A102:A103,A102:A105,B102:B105)"); oParser = new parserFormula("LOOKUP(A102:A102,A102:A105,TRUE)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(A102:A102,A102:A105,TRUE)"); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0,0).getValue(), "TRUE", "Result of LOOKUP(A102:A102,A102:A105,TRUE)"); + assert.strictEqual(array.getValue(), "TRUE", "Result of LOOKUP(A102:A102,A102:A105,TRUE)"); oParser = new parserFormula("LOOKUP(A102:A102,A102:A105,1)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(A102:A102,A102:A105,1)"); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0,0).getValue(), 1, "Result of LOOKUP(A102:A102,A102:A105,1)"); + assert.strictEqual(array.getValue(), 1, "Result of LOOKUP(A102:A102,A102:A105,1)"); oParser = new parserFormula("LOOKUP(A102:A102,A102:A105,a)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(A102:A102,A102:A105,a)"); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0,0).getValue(), "#NAME?", "Result of LOOKUP(A102:A102,A102:A105,a)"); + assert.strictEqual(array.getValue(), "#NAME?", "Result of LOOKUP(A102:A102,A102:A105,a)"); oParser = new parserFormula("LOOKUP(A102:A102,A102:A105,A102:A102)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(A102:A102,A102:A105,A102:A102)"); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0,0).getValue(), 1, "Result of LOOKUP(A102:A102,A102:A105,A102:A102)"); + assert.strictEqual(array.getValue(), 1, "Result of LOOKUP(A102:A102,A102:A105,A102:A102)"); oParser = new parserFormula("LOOKUP(A102:A102,A102:A105,A103:A103)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(A102:A102,A102:A105,A103:A103)"); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0,0).getValue(), "", "Result of LOOKUP(A102:A102,A102:A105,A103:A103)"); + assert.strictEqual(array.getValue(), "", "Result of LOOKUP(A102:A102,A102:A105,A103:A103)"); oParser = new parserFormula("LOOKUP(A102:A102,A102:A105,A104:A104)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(A102:A102,A102:A105,A104:A104)"); array = oParser.calculate(); - assert.strictEqual(array.getElementRowCol(0,0).getValue(), 3, "Result of LOOKUP(A102:A102,A102:A105,A104:A104)"); + assert.strictEqual(array.getValue(), 3, "Result of LOOKUP(A102:A102,A102:A105,A104:A104)"); oParser = new parserFormula("LOOKUP(A102,A102:A105,)", "A2", ws); assert.ok(oParser.parse(), "LOOKUP(1,A102:A105,)"); @@ -20351,6 +22694,7 @@ $(function () { QUnit.test("Test: \"MATCH\"", function (assert) { + AscCommonExcel.bIsSupportDynamicArrays = false; ws.getRange2("A551").setValue("28"); ws.getRange2("A552").setValue("29"); @@ -20372,35 +22716,35 @@ $(function () { oParser = new parserFormula("MATCH(30,A551:A555,-1)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#N/A"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "MATCH_1"); oParser = new parserFormula("MATCH(30,A551:A555,1)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 2); + assert.strictEqual(oParser.calculate().getValue(), 2, "MATCH_2"); oParser = new parserFormula("MATCH(30,A551:A555,0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#N/A"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "MATCH_3"); oParser = new parserFormula("MATCH(30,B551:B555)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#N/A"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "MATCH_4"); oParser = new parserFormula("MATCH(30,B551:B555,-1)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 3); + assert.strictEqual(oParser.calculate().getValue(), 3, "MATCH_5"); oParser = new parserFormula("MATCH(30,B551:B555,0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#N/A"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "MATCH_6"); oParser = new parserFormula("MATCH(31,C551:C555,0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 3); + assert.strictEqual(oParser.calculate().getValue(), 3, "MATCH_7"); oParser = new parserFormula("MATCH(\"b\",{\"a\";\"b\";\"c\"},0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 2); + assert.strictEqual(oParser.calculate().getValue(), 2, "MATCH_8"); ws.getRange2("F3").setValue(""); @@ -20419,35 +22763,35 @@ $(function () { oParser = new parserFormula("MATCH(F3,F106:F114,0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#N/A"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "MATCH_9"); oParser = new parserFormula("MATCH(F3,F106:F117,0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 10); + assert.strictEqual(oParser.calculate().getValue(), 10, "MATCH_10"); oParser = new parserFormula("MATCH(0,F106:F114,0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#N/A"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "MATCH_11"); oParser = new parserFormula("MATCH(0,F106:F117,0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 10); + assert.strictEqual(oParser.calculate().getValue(), 10, "MATCH_12"); oParser = new parserFormula("MATCH(6,F106:F117,0)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 9); + assert.strictEqual(oParser.calculate().getValue(), 9, "MATCH_13"); oParser = new parserFormula("MATCH(6,F106:F117,1)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 5); + assert.strictEqual(oParser.calculate().getValue(), 5, "MATCH_14"); oParser = new parserFormula("MATCH(6,F106:F117,-1)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#N/A"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "MATCH_15"); oParser = new parserFormula("MATCH({6,2,3},F106:F117,1)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 5); + assert.strictEqual(oParser.calculate().getValue(), 5, "MATCH_16"); // bug 62332 ws.getRange2("B200").setValue("P/N"); @@ -20466,24 +22810,25 @@ $(function () { ws.getRange2("C305").setValue("#N/A"); ws.getRange2("C306").setValue(""); + let bbox = ws.getRange2("D200").bbox; let cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); oParser = new parserFormula("MATCH(B200:B206,C300:C306,0)", cellWithFormula, ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 1); + assert.strictEqual(oParser.calculate().getValue(), 1, "MATCH_17"); bbox = ws.getRange2("D201").bbox; cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); oParser = new parserFormula("MATCH(B200:B206,C300:C306,0)", cellWithFormula, ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 2); + assert.strictEqual(oParser.calculate().getValue(), 2, "MATCH_18"); bbox = ws.getRange2("D202").bbox; cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); oParser = new parserFormula("MATCH(B200:B206,C300:C306,0)", cellWithFormula, ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), 3); - + assert.strictEqual(oParser.calculate().getValue(), 3, "MATCH_19"); + oParser = new parserFormula("MATCH(B200:B206,C300:C306,0)", "D202", ws); oParser.setArrayFormulaRef(ws.getRange2("A100").bbox); assert.ok(oParser.parse()); @@ -21380,6 +23725,7 @@ $(function () { }); QUnit.test("Test: \"INDEX\"", function (assert) { + let array; ws.getRange2("A651").setValue("1"); ws.getRange2("A652").setValue("2"); @@ -21409,7 +23755,7 @@ $(function () { oParser = new parserFormula("INDEX(\"Apples\",2,2)", "A2", ws); assert.ok(oParser.parse()); - assert.strictEqual(oParser.calculate().getValue(), "#VALUE!"); + assert.strictEqual(oParser.calculate().getValue(), "#REF!"); oParser = new parserFormula("INDEX({\"Apples\",\"Lemons\"},,2)", "A2", ws); assert.ok(oParser.parse()); @@ -21505,6 +23851,114 @@ $(function () { oParser = new parserFormula("INDEX(A651:A655,A651,0)", "A2", ws); assert.ok(oParser.parse()); assert.strictEqual(oParser.calculate().getValue().getValue(), 1); + + // val from arr + oParser = new parserFormula('INDEX({"",1,2,3,4,5},1)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), ""); + + oParser = new parserFormula('INDEX({"",1,2,3,4,5},2)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 1); + + oParser = new parserFormula('INDEX({"",1,2,3,4,5},5)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 4); + + oParser = new parserFormula('INDEX({1,2,3,4,5},,1)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 1); + + oParser = new parserFormula('INDEX({1,2,3,4,5},,2)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 2); + + oParser = new parserFormula('INDEX({1,2,3,4,5},,10)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "#REF!"); + + oParser = new parserFormula('INDEX({"";1;2;3;4;5},1)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), ""); + + oParser = new parserFormula('INDEX({"";1;2;3;4;5},5)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), 4); + + // arr + oParser = new parserFormula('INDEX({"";1;2;3;4;5},,1)', "A2", ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "", 'Result of INDEX({"";1;2;3;4;5},,1)[0,0]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 1, 'Result of INDEX({"";1;2;3;4;5},,1)[1,0]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 2, 'Result of INDEX({"";1;2;3;4;5},,1)[2,0]'); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), 3, 'Result of INDEX({"";1;2;3;4;5},,1)[3,0]'); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), 4, 'Result of INDEX({"";1;2;3;4;5},,1)[4,0]'); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), 5, 'Result of INDEX({"";1;2;3;4;5},,1)[5,0]'); + + oParser = new parserFormula('INDEX({"";1;2;3;4;5},,)', "A2", ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "", 'Result of INDEX({"";1;2;3;4;5},,)[0,0]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 1, 'Result of INDEX({"";1;2;3;4;5},,)[1,0]'); + assert.strictEqual(array.getElementRowCol(2, 0).getValue(), 2, 'Result of INDEX({"";1;2;3;4;5},,)[2,0]'); + assert.strictEqual(array.getElementRowCol(3, 0).getValue(), 3, 'Result of INDEX({"";1;2;3;4;5},,)[3,0]'); + assert.strictEqual(array.getElementRowCol(4, 0).getValue(), 4, 'Result of INDEX({"";1;2;3;4;5},,)[4,0]'); + assert.strictEqual(array.getElementRowCol(5, 0).getValue(), 5, 'Result of INDEX({"";1;2;3;4;5},,)[5,0]'); + + oParser = new parserFormula('INDEX({"";1;2;3;4;5},,55)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "#REF!"); + + // arr two dimensional + oParser = new parserFormula('INDEX({"Apples","Lemons";"Apple","Lemon"},,)', "A2", ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "Apples", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},,)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "Lemons", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},,)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "Apple", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},,)[1,0]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), "Lemon", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},,)[1,1]'); + + oParser = new parserFormula('INDEX({"Apples","Lemons";"Apple","Lemon"},1,)', "A2", ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "Apples", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},1,)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "Lemons", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},1,)[0,1]'); + + oParser = new parserFormula('INDEX({"Apples","Lemons";"Apple","Lemon"},2,)', "A2", ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "Apple", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},2,)[0,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), "Lemon", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},2,)[0,1]'); + + oParser = new parserFormula('INDEX({"Apples","Lemons";"Apple","Lemon"},,1)', "A2", ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), "Apples", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},,1)[0,0]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), "Apple", 'Result of INDEX({"Apples","Lemons";"Apple","Lemon"},,1)[1,0]'); + + oParser = new parserFormula('INDEX({"Apples","Lemons";"Apple","Lemon"},3,2)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "#REF!"); + + ws.getRange2("A100").setValue("1") + ws.getRange2("B100").setValue("2") + ws.getRange2("A101").setValue("3") + ws.getRange2("B101").setValue("4") + + // the behavior with array and range is different in these case(when arg2 is ommited) + oParser = new parserFormula('INDEX({1,2;3,4},)', "A2", ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0, 0).getValue(), 1, 'Result of INDEX({1,2;3,4},)[0,0]'); + assert.strictEqual(array.getElementRowCol(1, 0).getValue(), 3, 'Result of INDEX({1,2;3,4},)[1,0]'); + assert.strictEqual(array.getElementRowCol(0, 1).getValue(), 2, 'Result of INDEX({1,2;3,4},)[0,1]'); + assert.strictEqual(array.getElementRowCol(1, 1).getValue(), 4, 'Result of INDEX({1,2;3,4},)[1,1]'); + + oParser = new parserFormula('INDEX(A100:B101,)', "A2", ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue(), "#REF!"); + }); QUnit.test("Test: \"INDIRECT\"", function (assert) { @@ -22845,6 +25299,26 @@ $(function () { assert.ok(oParser.parse(), "ACCRINT(DATE(2000,9,1),DATE(2014,3,1),DATE(2014,2,1),0.05,100,2,1,FALSE)"); assert.strictEqual(oParser.calculate().getValue().toFixed(2) - 0, 2.07, "Result of ACCRINT(DATE(2000,9,1),DATE(2014,3,1),DATE(2014,2,1),0.05,100,2,1,FALSE)"); + oParser = new parserFormula("ACCRINT(DATE(2008,4,5),DATE(2008,8,31),DATE(2008,5,1),0.1,1000,2,0,TRUE)", "A2", ws); + assert.ok(oParser.parse(), "ACCRINT(DATE(2008,4,5),DATE(2008,8,31),DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + assert.strictEqual(oParser.calculate().getValue().toFixed(2) - 0, 7.22, "Result of ACCRINT(DATE(2008,4,5),DATE(2008,8,31),DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + + oParser = new parserFormula("ACCRINT(DATE(2008,4,5),1,DATE(2008,5,1),0.1,1000,2,0,TRUE)", "A2", ws); + assert.ok(oParser.parse(), "ACCRINT(DATE(2008,4,5),1,DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + assert.strictEqual(oParser.calculate().getValue().toFixed(2) - 0, 7.22, "Result of ACCRINT(DATE(2008,4,5),1,DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + + oParser = new parserFormula("ACCRINT(DATE(2008,4,5),500,DATE(2008,5,1),0.1,1000,2,0,TRUE)", "A2", ws); + assert.ok(oParser.parse(), "ACCRINT(DATE(2008,4,5),500,DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + assert.strictEqual(oParser.calculate().getValue().toFixed(2) - 0, 7.22, "Result of ACCRINT(DATE(2008,4,5),500,DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + + oParser = new parserFormula("ACCRINT(DATE(2008,4,5),50000,DATE(2008,5,1),0.1,1000,2,0,TRUE)", "A2", ws); + assert.ok(oParser.parse(), "ACCRINT(DATE(2008,4,5),50000,DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + assert.strictEqual(oParser.calculate().getValue().toFixed(2) - 0, 7.22, "Result of ACCRINT(DATE(2008,4,5),50000,DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + + oParser = new parserFormula("ACCRINT(DATE(2008,4,5),DATE(9999,12,31)+1,DATE(2008,5,1),0.1,1000,2,0,TRUE)", "A2", ws); + assert.ok(oParser.parse(), "ACCRINT(DATE(2008,4,5),DATE(9999,12,31)+1,DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of ACCRINT(DATE(2008,4,5),DATE(9999,12,31)+1,DATE(2008,5,1),0.1,1000,2,0,TRUE)"); + testArrayFormula2(assert, "ACCRINT", 6, 8, true); }); @@ -24563,6 +27037,94 @@ $(function () { assert.ok(oParser.parse()); assert.ok(difBetween(oParser.calculate().getValue(), 0.0024114950175866895)); + ws.getRange2("A200").setValue("-10000"); + ws.getRange2("A201").setValue("2750"); + ws.getRange2("A202").setValue("4250"); + ws.getRange2("A203").setValue("3250"); + ws.getRange2("A204").setValue("2750"); + ws.getRange2("B200").setValue("1111"); + ws.getRange2("B201").setValue("1113"); + ws.getRange2("B202").setValue("1213"); + ws.getRange2("B203").setValue("1313"); + ws.getRange2("B204").setValue("1399"); + + ws.getRange2("A100:A104").setValue(""); + ws.getRange2("B100:B104").setValue(""); + + oParser = new parserFormula("XIRR(A100:A104,B100:B104)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(A100:A104,B100:B104)"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of XIRR(A100:A104,B100:B104) - empty cellRanges check"); + + oParser = new parserFormula("XIRR(A100:A104,B200:B204)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(A100:A104,B200:B204)"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of XIRR(A100:A104,B200:B204) - first argument is empty cellRange"); + + oParser = new parserFormula("XIRR(A200:A204,B100:B104)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(A200:A204,B100:B104)"); + assert.strictEqual(oParser.calculate().getValue(), "#NUM!", "Result of XIRR(A200:A204,B100:B104) - second argument is empty cellRange"); + + oParser = new parserFormula("XIRR(A200:A204,B200:B204)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(A200:A204,B200:B204)"); + assert.strictEqual(oParser.calculate().getValue().toFixed(2), "1.03", "Result of XIRR(A200:A204,B200:B204)"); + + oParser = new parserFormula("XIRR(,)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(,)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of XIRR(,)"); + + oParser = new parserFormula("XIRR(12,)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(12,)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of XIRR(12,)"); + + oParser = new parserFormula("XIRR(,12)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(,12)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of XIRR(,12)"); + + oParser = new parserFormula("XIRR(,,)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(,,)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of XIRR(,,)"); + + oParser = new parserFormula("XIRR(12,,)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(12,,)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of XIRR(12,,)"); + + oParser = new parserFormula("XIRR(,,12)", "A2", ws); + assert.ok(oParser.parse(), "XIRR(,,12)"); + assert.strictEqual(oParser.calculate().getValue(), "#N/A", "Result of XIRR(,,12)"); + + oParser = new parserFormula('XIRR("str",12)', "A2", ws); + assert.ok(oParser.parse(), 'XIRR("str",12)'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of XIRR("str",12)'); + + oParser = new parserFormula('XIRR(12,"str")', "A2", ws); + assert.ok(oParser.parse(), 'XIRR(12,"str")'); + assert.strictEqual(oParser.calculate().getValue(), "#VALUE!", 'Result of XIRR(12,"str")'); + + oParser = new parserFormula('XIRR(#DIV/0!,)', "A2", ws); + assert.ok(oParser.parse(), 'XIRR(#DIV/0!,)'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of XIRR(#DIV/0!,)'); + + oParser = new parserFormula('XIRR(A200:A204,#DIV/0!)', "A2", ws); + assert.ok(oParser.parse(), 'XIRR(A200:A204,#DIV/0!)'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of XIRR(A200:A204,#DIV/0!)'); + + oParser = new parserFormula('XIRR(A200:A204,A200:A204,#DIV/0!)', "A2", ws); + assert.ok(oParser.parse(), 'XIRR(A200:A204,A200:A204,#DIV/0!)'); + assert.strictEqual(oParser.calculate().getValue(), "#DIV/0!", 'Result of XIRR(A200:A204,A200:A204,#DIV/0!)'); + + let wsName = ws.getName(); + oParser = new parserFormula('XIRR('+ wsName + '!A200:A204,'+ wsName + '!B200:B204)', "A2", ws); + assert.ok(oParser.parse(), 'XIRR(SheetName!A200:A204,SheetName!B200:B204)'); + assert.strictEqual(oParser.calculate().getValue().toFixed(2), "1.03", 'Result of XIRR(SheetName!A200:A204,SheetName!B200:B204)'); + + oParser = new parserFormula('XIRR(A200:A204,'+ wsName + '!B200:B204)', "A2", ws); + assert.ok(oParser.parse(), 'XIRR(A200:A204,SheetName!B200:B204)'); + assert.strictEqual(oParser.calculate().getValue().toFixed(2), "1.03", 'Result of XIRR(A200:A204,SheetName!B200:B204)'); + + oParser = new parserFormula('XIRR('+ wsName + '!A200:A204,B200:B204)', "A2", ws); + assert.ok(oParser.parse(), 'XIRR(SheetName!A200:A204,B200:B204)'); + assert.strictEqual(oParser.calculate().getValue().toFixed(2), "1.03", 'Result of XIRR(SheetName!A200:A204,B200:B204)'); + + ws.getRange2("A200:B204").cleanAll(); }); QUnit.test("Test: \"VDB\"", function (assert) { @@ -25252,7 +27814,7 @@ $(function () { }); QUnit.test("Test: \"ODDFYIELD\"", function (assert) { - + ws.getRange2("A10:Z100").cleanAll(); oParser = new parserFormula("ODDFYIELD(DATE(1990,6,1),DATE(1995,12,31),DATE(1990,1,1),DATE(1990,12,31),6%,790,100,1,1)", "A2", ws); assert.ok(oParser.parse()); assert.ok(oParser.assemble() == "ODDFYIELD(DATE(1990,6,1),DATE(1995,12,31),DATE(1990,1,1),DATE(1990,12,31),6%,790,100,1,1)"); @@ -25268,6 +27830,21 @@ $(function () { assert.ok(oParser.assemble() == "ODDFYIELD(DATE(2008,12,11),DATE(2021,4,1),DATE(2008,10,15),DATE(2009,4,1),6%,100,100,4,1)"); assert.ok(difBetween(oParser.calculate().getValue(), 0.0599769985558904)); + // for bug 21211 + ws.getRange2("A12").setValue("November 11, 2008"); + ws.getRange2("A13").setValue("March 1, 2021"); + ws.getRange2("A14").setValue("October 15, 2008"); + ws.getRange2("A15").setValue("March 1, 2009"); + ws.getRange2("A16").setValue("5.75%"); + ws.getRange2("A17").setValue("84.50"); + ws.getRange2("A18").setValue("100"); + ws.getRange2("A19").setValue("2"); + ws.getRange2("A20").setValue("0"); + + oParser = new parserFormula("ODDFYIELD(A12, A13, A14, A15, A16, A17, A18, A19, A20)", "A2", ws); + assert.ok(oParser.parse(), 'ODDFYIELD(A12, A13, A14, A15, A16, A17, A18, A19, A20)'); + assert.ok(oParser.calculate().getValue(), 0.08, 'Result of ODDFYIELD(A12, A13, A14, A15, A16, A17, A18, A19, A20)'); + testArrayFormula2(assert, "ODDFYIELD", 8, 9, true); }); @@ -27502,6 +30079,7 @@ $(function () { }); QUnit.test("Test: \"FIND\"", function (assert) { + ws.getRange2("A101:F101").cleanAll(); ws.getRange2("A101").setValue("Miriam McGovern"); oParser = new parserFormula('FIND("M",A101)', "A2", ws); @@ -27520,6 +30098,34 @@ $(function () { assert.ok(oParser.parse(), 'FIND("T",TRUE)'); assert.strictEqual(oParser.calculate().getValue(), 3, 'FIND("T",TRUE)'); + // for bug 68343 + ws.getRange2("B101").setValue("31° 57' 14.6\" S BT 3 18° 54' 20.3\" E"); + oParser = new parserFormula('FIND(""" S",B101,1)', "A2", ws); + assert.ok(oParser.parse(), 'FIND(""" S",B101,1)'); + assert.strictEqual(oParser.calculate().getValue(), 13, 'FIND(""" S",B101,1)'); + + oParser = new parserFormula('FIND(" S",B101,1)', "A2", ws); + assert.ok(oParser.parse(), 'FIND(" S",B101,1)'); + assert.strictEqual(oParser.calculate().getValue(), 14, 'FIND(" S",B101,1)'); + + ws.getRange2("C101").setValue("6\" S"); + oParser = new parserFormula('FIND(""" S",C101,1)', "A2", ws); + assert.ok(oParser.parse(), 'FIND(""" S",C101,1)'); + assert.strictEqual(oParser.calculate().getValue(), 2, 'FIND(""" S",C101,1)'); + + oParser = new parserFormula('FIND(" S",C101,1)', "A2", ws); + assert.ok(oParser.parse(), 'FIND(" S",C101,1)'); + assert.strictEqual(oParser.calculate().getValue(), 3, 'FIND(" S",C101,1)'); + + ws.getRange2("D101").setValue("testtest \" String\"abcdString"); + oParser = new parserFormula('FIND(""" String",D101,1)', "A2", ws); + assert.ok(oParser.parse(), 'FIND(""" String",D101,1)'); + assert.strictEqual(oParser.calculate().getValue(), 10, 'FIND(""" String",D101,1)'); + + oParser = new parserFormula('FIND(" String",D101,1)', "A2", ws); + assert.ok(oParser.parse(), 'FIND(" String",D101,1)'); + assert.strictEqual(oParser.calculate().getValue(), 11, 'FIND(" String",D101,1)'); + testArrayFormula2(assert, "FIND", 2, 3); }); @@ -28907,6 +31513,35 @@ $(function () { array = oParser.calculate(); assert.strictEqual(array.getValue(), 12, 'Result of FILTER(12,TRUE,#N/A)'); + ws.getRange2("A100:Z200").cleanAll(); + ws.getRange2("A100:A200").setValue("10"); + ws.getRange2("A100").setValue("1"); + ws.getRange2("A102").setValue("2"); + ws.getRange2("A105").setValue("3"); + ws.getRange2("A110").setValue("4"); + ws.getRange2("B100:B150").setValue("Str"); + ws.getRange2("B100").setValue("Test"); + ws.getRange2("B102").setValue("Test"); + ws.getRange2("B105").setValue("Test"); + ws.getRange2("B110").setValue("Test"); + + // for bug 64954 + oParser = new parserFormula('FILTER(A:A,B:B="Test")', "A2", ws); + assert.ok(oParser.parse(), 'FILTER(A:A,B:B="Test")'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), 1, 'Result of FILTER(A:A,B:B="Test")'); + assert.strictEqual(array.getElementRowCol(1,0).getValue(), 2, 'Result of FILTER(A:A,B:B="Test")'); + assert.strictEqual(array.getElementRowCol(2,0).getValue(), 3, 'Result of FILTER(A:A,B:B="Test")'); + assert.strictEqual(array.getElementRowCol(3,0).getValue(), 4, 'Result of FILTER(A:A,B:B="Test")'); + + oParser = new parserFormula('FILTER(A:A<3,B:B="Test")', "A2", ws); + assert.ok(oParser.parse(), 'FILTER(A:A<3,B:B="Test")'); + array = oParser.calculate(); + assert.strictEqual(array.getElementRowCol(0,0).getValue(), "TRUE", 'Result of FILTER(A:A<3,B:B="Test")'); + assert.strictEqual(array.getElementRowCol(1,0).getValue(), "TRUE", 'Result of FILTER(A:A<3,B:B="Test")'); + assert.strictEqual(array.getElementRowCol(2,0).getValue(), "FALSE", 'Result of FILTER(A:A<3,B:B="Test")'); + assert.strictEqual(array.getElementRowCol(3,0).getValue(), "FALSE", 'Result of FILTER(A:A<3,B:B="Test")'); + }); QUnit.test("Test: \"ARRAYTOTEXT\"", function (assert) { @@ -30954,38 +33589,6 @@ $(function () { assert.strictEqual(oParser.calculate().getValue(), 3, _f); }); - QUnit.test("Test: \"test relative reference from absolute\"", function (assert) { - //by test external reference - //use when insert external link from clipboard - - let path1 = "C:/test1/testInside/testinside12/testInsied21/test1.xlsx"; - let path2 = "C:/test1/testInside/testInsied11/testinsied22/test2.xlsx"; - let need = "/test1/testInside/testinside12/testInsied21/test1.xlsx"; - let real = AscCommonExcel.buildRelativePath(path1, path2); - assert.strictEqual(need, real); - - // "/root/from1.xlsx" - path1 = "C:/root/test.xlsx"; - path2 = "C:/root/inside/inside2/inseide3/inside4/test.xlsx"; - need = "/root/test.xlsx"; - real = AscCommonExcel.buildRelativePath(path1, path2); - assert.strictEqual(need, real); - - // "inside/inside2/inseide3/inside4/from2.xlsx" - path1 = "C:/root/inside/inside2/inseide3/inside4/test.xlsx"; - path2 = "C:/root/test.xlsx"; - need = "inside/inside2/inseide3/inside4/test.xlsx"; - real = AscCommonExcel.buildRelativePath(path1, path2); - assert.strictEqual(need, real); - - - path1 = "D:/root/inside/inside2/inseide3/inside4/test.xlsx"; - path2 = "C:/root/test.xlsx"; - need = "file:///D:\\root\\inside\\inside2\\inseide3\\inside4\\test.xlsx"; - real = AscCommonExcel.buildRelativePath(path1, path2); - assert.strictEqual(need, real); - }); - QUnit.test("Test: \"GetAllFormulas test\"", function (assert) { wb.dependencyFormulas.unlockRecal(); let formulaRange, formulas; @@ -31029,52 +33632,355 @@ $(function () { ws.getRange2("A1:Z10000").cleanAll(); }); - QUnit.test("Test: \"External reference test: importRange function\"", function (assert) { - - let initReference = function (eR, sheetName, range, val) { - range = AscCommonExcel.g_oRangeCache.getAscRange(range); - let externalSheetDataSet = eR.getSheetDataSetByName(sheetName); - for (let i = range.r1; i <= range.r2; i++) { - let row = externalSheetDataSet.getRow(i + 1, true); - for (let j = range.c1; j <= range.c2; j++) { - let cell = row.getCell(j, true); - cell.CellValue = val[i][j]; - } - } - }; - - let tempLink = '"http://localhost/editor?fileName=new%20(51).xlsx"'; - let parseResult = new AscCommonExcel.ParseResult([]); - oParser = new parserFormula('IMPORTRANGE(' + tempLink + ',"Sheet1!A1")', 'A2', ws); - assert.ok(oParser.parse(null, null, parseResult), 'IMPORTRANGE(' + tempLink + ',"Sheet1!A1")'); - let res = oParser.calculate().getValue(); - assert.strictEqual(res, "#REF!", 'IMPORTRANGE_1'); + QUnit.test("Test: \"Dynamic array test\"", function (assert) { + let bboxParent, cellWithFormula, formulaInfo, resultRow, resultCol, applyByArray, array; + + // wb.dependencyFormulas.unlockRecal(); - assert.strictEqual(wb.externalReferences.length, 0, 'IMPORTRANGE_1_external_reference_length_before_add'); - wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); - assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_after_add'); + ws.getRange2("A1:Z10").cleanAll(); + ws.getRange2("A1").setValue("1"); + ws.getRange2("A2").setValue("2"); + ws.getRange2("A3").setValue("3"); + ws.getRange2("B1").setValue("4"); + ws.getRange2("B2").setValue("str"); + ws.getRange2("B3").setValue("6"); + ws.getRange2("C1").setValue("1"); + ws.getRange2("C2").setValue(); + ws.getRange2("C3").setValue("1"); + + // let parent = AscCommonExcel.g_oRangeCache.getAscRange("D1"); + bboxParent = ws.getRange2("D1").bbox; + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bboxParent.r1, bboxParent.c1); + + ws.getRange2("C3").setValue("=SIN(A1:A3)", null, null, bboxParent); + + // TODO: review tests with ranges after adding dynamic arrays and add findRefByOutStack formula to use in tests + oParser = new parserFormula('A1:A3', cellWithFormula, ws); + assert.ok(oParser.parse(), 'A1:A3'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =A1:A3 array formula'); + assert.strictEqual(resultRow, false, 'Rows in =A1:A3'); + assert.strictEqual(resultCol, false, 'Cols in =A1:A3'); - res = oParser.calculate(); - let dimension = res.getDimensions(); - assert.strictEqual(dimension.row, 0, 'IMPORTRANGE_1_after_add_references_row_count'); + + oParser = new parserFormula('{1;2;3}', cellWithFormula, ws); + assert.ok(oParser.parse(), '{1;2;3}'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is ={1;2;3} array formula'); + assert.strictEqual(resultRow, 3, 'Rows in ={1;2;3}'); + assert.strictEqual(resultCol, 1, 'Cols in ={1;2;3}'); + + oParser = new parserFormula('A1:C1', cellWithFormula, ws); + assert.ok(oParser.parse(), 'A1:C1'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =A1:C1 array formula'); + assert.strictEqual(resultRow, false, 'Rows in =A1:C1'); + assert.strictEqual(resultCol, false, 'Cols in =A1:C1'); + + oParser = new parserFormula('{1,2,3}', cellWithFormula, ws); + assert.ok(oParser.parse(), '{1,2,3}'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is ={1,2,3} array formula'); + assert.strictEqual(resultRow, 1, 'Rows in ={1,2,3}'); + assert.strictEqual(resultCol, 3, 'Cols in ={1,2,3}'); + + oParser = new parserFormula('A1:C3', cellWithFormula, ws); + assert.ok(oParser.parse(), 'A1:C3'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =A1:C3 array formula'); + assert.strictEqual(resultRow, false, 'Rows in =A1:C3'); + assert.strictEqual(resultCol, false, 'Cols in =A1:C3'); + + oParser = new parserFormula('{1,2;3,4}', cellWithFormula, ws); + assert.ok(oParser.parse(), '{1,2;3,4}'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is ={1,2;3,4} array formula'); + assert.strictEqual(resultRow, 2, 'Rows in ={1,2;3,4}'); + assert.strictEqual(resultCol, 2, 'Cols in ={1,2;3,4}'); + + oParser = new parserFormula('SIN(A1:A3)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN(A1:A3)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =SIN(A1:A3) array formula'); + assert.strictEqual(resultRow, 3, 'Rows in =SIN(A1:A3)'); + assert.strictEqual(resultCol, 1, 'Cols in =SIN(A1:A3)'); + + oParser = new parserFormula('SIN({1;2;3})', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN({1;2;3})'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =SIN({1;2;3}) array formula'); + assert.strictEqual(resultRow, 3, 'Rows in =SIN({1;2;3})'); + assert.strictEqual(resultCol, 1, 'Cols in =SIN({1;2;3})'); + + oParser = new parserFormula('SIN(A1:C1)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN(A1:C1)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =SIN(A1:C1) array formula'); + assert.strictEqual(resultRow, 1, 'Rows in =SIN(A1:C1)'); + assert.strictEqual(resultCol, 3, 'Cols in =SIN(A1:C1)'); + + oParser = new parserFormula('SIN({1,2,3})', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN({1,2,3})'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =SIN({1,2,3}) array formula'); + assert.strictEqual(resultRow, 1, 'Rows in =SIN({1,2,3})'); + assert.strictEqual(resultCol, 3, 'Cols in =SIN({1,2,3})'); + + oParser = new parserFormula('SIN(A1:C3)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN(A1:C3)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =SIN(A1:C3) array formula'); + assert.strictEqual(resultRow, 3, 'Rows in =SIN(A1:C3)'); + assert.strictEqual(resultCol, 3, 'Cols in =SIN(A1:C3)'); + + oParser = new parserFormula('SIN({1,2;3,4})', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN({1,2;3,4})'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =SIN({1,2;3,4}) array formula'); + assert.strictEqual(resultRow, 2, 'Rows in =SIN({1,2;3,4})'); + assert.strictEqual(resultCol, 2, 'Cols in =SIN({1,2;3,4})'); + + oParser = new parserFormula('A:A', cellWithFormula, ws); + assert.ok(oParser.parse(), 'A:A'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =A:A array formula'); + assert.strictEqual(resultRow, false /*AscCommon.gc_nMaxRow*/, 'Rows in =A:A from D1'); + assert.strictEqual(resultCol, false, 'Cols in =A:A from D1'); + + oParser = new parserFormula('A1:XFD1', cellWithFormula, ws); + assert.ok(oParser.parse(), 'A1:XFD1'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =A1:XFD1 array formula'); + assert.strictEqual(resultRow, false, 'Rows in =A1:XFD1 from D1'); + assert.strictEqual(resultCol, false /*AscCommon.gc_nMaxCol - 3*/, 'Cols in =A1:XFD1 from D1'); + - initReference(wb.externalReferences[0], "Sheet1", "A1", [[1000]]); - res = oParser.calculate(); - assert.strictEqual(res.getElementRowCol(0, 0).getValue(), 1000, 'IMPORTRANGE_1_AFTER_INIT'); + oParser = new parserFormula('SIN(A1)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN(A1)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =SIN(A1) array formula'); + assert.strictEqual(resultRow, false, 'Rows in =SIN(A1)'); + assert.strictEqual(resultCol, false, 'Cols in =SIN(A1)'); + - assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_before_add_clone_2'); - wb.addExternalReferencesAfterParseFormulas(parseResult.externalReferenesNeedAdd); - assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_after_add_clone_2'); + oParser = new parserFormula('SUM(A1:A3)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SUM(A1:A3)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =SUM(A1:A3) array formula'); + assert.strictEqual(resultRow, false, 'Rows in =SUM(A1:A3)'); + assert.strictEqual(resultCol, false, 'Cols in =SUM(A1:A3)'); + + + oParser = new parserFormula('SUM(A1:A3+A1:A3)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SUM(A1:A3+A1:A3)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =SUM(A1:A3+A1:A3) array formula'); + assert.strictEqual(resultRow, false, 'Rows in =SUM(A1:A3+A1:A3)'); + assert.strictEqual(resultCol, false, 'Cols in =SUM(A1:A3+A1:A3)'); + + oParser = new parserFormula('SUM(A1:A3+A1:A3)+A1:A3', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SUM(A1:A3+A1:A3)+A1:A3'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =SUM(A1:A3+A1:A3)+A1:A3 array formula'); + assert.strictEqual(resultRow, 3, 'Rows in =SUM(A1:A3+A1:A3)+A1:A3'); + assert.strictEqual(resultCol, 1, 'Cols in =SUM(A1:A3+A1:A3)+A1:A3'); + + + oParser = new parserFormula('SUM(SIN(A1:A3)+A1:A3)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SUM(SIN(A1:A3)+A1:A3)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =SUM(SIN(A1:A3)+A1:A3) array formula'); + assert.strictEqual(resultRow, false, 'Rows in =SUM(SIN(A1:A3)+A1:A3)'); + assert.strictEqual(resultCol, false, 'Cols in =SUM(SIN(A1:A3)+A1:A3)'); + + + oParser = new parserFormula('SUM(SIN(SUM(A1:A3)))', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SUM(SIN(SUM(A1:A3)))'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =SUM(SIN(SUM(A1:A3))) array formula'); + assert.strictEqual(resultRow, false, 'Rows in =SUM(SIN(SUM(A1:A3)))'); + assert.strictEqual(resultCol, false, 'Cols in =SUM(SIN(SUM(A1:A3)))'); + + + oParser = new parserFormula('SIN(SUM(SIN(A1:A3)))', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN(SUM(SIN(A1:A3)))'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, false, 'Is =SIN(SUM(SIN(A1:A3))) array formula'); + assert.strictEqual(resultRow, false, 'Rows in =SIN(SUM(SIN(A1:A3)))'); + assert.strictEqual(resultCol, false, 'Cols in =SIN(SUM(SIN(A1:A3)))'); + + + oParser = new parserFormula('COS(SIN(A1)*SUM(A1:A3)+A1:A3)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'COS(SIN(A1)*SUM(A1:A3)+A1:A3)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =COS(SIN(A1)*SUM(A1:A3)+A1:A3) array formula'); + assert.strictEqual(resultRow, 3, 'Rows in =COS(SIN(A1)*SUM(A1:A3)+A1:A3)'); + assert.strictEqual(resultCol, 1, 'Cols in =COS(SIN(A1)*SUM(A1:A3)+A1:A3)'); + + + oParser = new parserFormula('SIN(A1+A1:A3)', cellWithFormula, ws); + assert.ok(oParser.parse(), 'SIN(A1+A1:A3)'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is =SIN(A1+A1:A3) array formula'); + assert.strictEqual(resultRow, 3, 'Rows in =SIN(A1+A1:A3)'); + assert.strictEqual(resultCol, 1, 'Cols in =SIN(A1+A1:A3)'); + + + oParser = new parserFormula('{1,2}*{3;4}', cellWithFormula, ws); + assert.ok(oParser.parse(), '{1,2}*{3;4}'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is ={1,2}*{3;4} array formula'); + assert.strictEqual(resultRow, 2, 'Rows in ={1,2}*{3;4}'); + assert.strictEqual(resultCol, 2, 'Cols in ={1,2}*{3;4}'); + + oParser = new parserFormula('{2}*{2}', cellWithFormula, ws); + assert.ok(oParser.parse(), '{2}*{2}'); + formulaInfo = ws.getRefDynamicInfo(oParser); + resultRow = formulaInfo && formulaInfo.dynamicRange.getHeight(); + resultCol = formulaInfo && formulaInfo.dynamicRange.getWidth(); + applyByArray = formulaInfo && formulaInfo.applyByArray; + assert.strictEqual(applyByArray, true, 'Is ={2}*{2} array formula'); + assert.strictEqual(resultRow, 1, 'Rows in ={1,2}*{3;4}'); + assert.strictEqual(resultCol, 1, 'Cols in ={1,2}*{3;4}'); + + // #N/A check + ws.getRange2("A100:Z110").cleanAll(); + + bboxParent = ws.getRange2("D100").bbox; + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bboxParent.r1, bboxParent.c1); + oParser = new parserFormula('A100:B101', cellWithFormula, ws); + oParser.setArrayFormulaRef(ws.getRange2("D100:E104").bbox); + assert.ok(oParser.parse(), 'A100:B101'); + array = oParser.calculate(); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1).getValue(), "", "Result of =A100:B101 [0,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 1).getValue(), "", "Result of =A100:B101 [0,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [0,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [0,3]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1).getValue(), "", "Result of =A100:B101 [1,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 1).getValue(), "", "Result of =A100:B101 [1,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [1,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [1,3]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1).getValue(), "#N/A", "Result of =A100:B101 [2,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 1).getValue(), "#N/A", "Result of =A100:B101 [2,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [2,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [2,3]"); - //check remove on setValue - ws.getRange2("A2").setValue('=importrange(\"http://localhost/editor?fileName=new%20(51).xlsx\",\"Sheet1!A1\"'); - assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_before_add_clone_3'); + + ws.getRange2("A100").setValue("1"); - ws.getRange2("A2").setValue('=importrange(\"http://localhost/editor?fileName=new%20(51).xlsx\",\"Sheet1!A2\"'); - assert.strictEqual(wb.externalReferences.length, 1, 'IMPORTRANGE_1_external_reference_length_after_remove_value'); + bboxParent = ws.getRange2("I100").bbox; + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bboxParent.r1, bboxParent.c1); + oParser = new parserFormula('A100:B101', cellWithFormula, ws); + oParser.setArrayFormulaRef(ws.getRange2("I100:J104").bbox); + assert.ok(oParser.parse(), 'A100:B101'); + array = oParser.calculate(); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1).getValue(), 1, "Result of =A100:B101 [0,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 1).getValue(), "", "Result of =A100:B101 [0,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [0,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [0,3]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1).getValue(), "", "Result of =A100:B101 [1,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 1).getValue(), "", "Result of =A100:B101 [1,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [1,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [1,3]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1).getValue(), "#N/A", "Result of =A100:B101 [2,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 1).getValue(), "#N/A", "Result of =A100:B101 [2,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [2,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [2,3]"); - ws.getRange2("A2").setValue("1"); - assert.strictEqual(wb.externalReferences.length, 0, 'IMPORTRANGE_1_external_reference_length_after_remove_value'); + + ws.getRange2("B101").setValue("#N/A"); + + bboxParent = ws.getRange2("M100").bbox; + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bboxParent.r1, bboxParent.c1); + oParser = new parserFormula('A100:B101', cellWithFormula, ws); + oParser.setArrayFormulaRef(ws.getRange2("M100:O104").bbox); + assert.ok(oParser.parse(), 'A100:B101'); + array = oParser.calculate(); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1).getValue(), 1, "Result of =A100:B101 [0,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 1).getValue(), "", "Result of =A100:B101 [0,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [0,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [0,3]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1).getValue(), "", "Result of =A100:B101 [1,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 1).getValue(), "#N/A", "Result of =A100:B101 [1,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [1,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 1, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [1,3]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1).getValue(), "#N/A", "Result of =A100:B101 [2,0]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 1).getValue(), "#N/A", "Result of =A100:B101 [2,1]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 2).getValue(), "#N/A", "Result of =A100:B101 [2,2]"); + assert.strictEqual(oParser.simplifyRefType(array, ws, bboxParent.r1 + 2, bboxParent.c1 + 3).getValue(), "#N/A", "Result of =A100:B101 [2,3]"); + }); function calcCustomFunction (innerFunc, jsDoc, oDoc, fCompare) { @@ -32546,5 +35452,116 @@ $(function () { }); + // Mocks for API Testing + Asc.spreadsheet_api.prototype._init = function () { + this._loadModules(); + }; + Asc.spreadsheet_api.prototype._loadFonts = function (fonts, callback) { + callback(); + }; + AscCommonExcel.WorkbookView.prototype._calcMaxDigitWidth = function () { + }; + AscCommonExcel.WorkbookView.prototype._init = function () { + }; + AscCommonExcel.WorkbookView.prototype._isLockedUserProtectedRange = function (callback) { + callback(true); + }; + AscCommonExcel.WorkbookView.prototype._onWSSelectionChanged = function () { + }; + AscCommonExcel.WorkbookView.prototype.showWorksheet = function () { + }; + AscCommonExcel.WorkbookView.prototype.recalculateDrawingObjects = function () { + }; + AscCommonExcel.WorkbookView.prototype.restoreFocus = function () { + }; + AscCommonExcel.WorksheetView.prototype._init = function () { + }; + AscCommonExcel.WorksheetView.prototype.updateRanges = function () { + }; + AscCommonExcel.WorksheetView.prototype._autoFitColumnsWidth = function () { + }; + AscCommonExcel.WorksheetView.prototype.cleanSelection = function () { + }; + AscCommonExcel.WorksheetView.prototype._drawSelection = function () { + }; + AscCommonExcel.WorksheetView.prototype._scrollToRange = function () { + }; + AscCommonExcel.WorksheetView.prototype.draw = function () { + }; + AscCommonExcel.WorksheetView.prototype._prepareDrawingObjects = function () { + }; + AscCommonExcel.WorksheetView.prototype._initCellsArea = function () { + }; + AscCommonExcel.WorksheetView.prototype.getZoom = function () { + }; + AscCommonExcel.WorksheetView.prototype._prepareCellTextMetricsCache = function () { + }; + + AscCommon.baseEditorsApi.prototype._onEndLoadSdk = function () { + }; + AscCommonExcel.WorksheetView.prototype._isLockedCells = function (oFromRange, subType, callback) { + callback(true); + return true; + }; + AscCommonExcel.WorksheetView.prototype._isLockedAll = function (callback) { + callback(true); + }; + AscCommonExcel.WorksheetView.prototype._isLockedFrozenPane = function (callback) { + callback(true); + }; + AscCommonExcel.WorksheetView.prototype._updateVisibleColsCount = function () { + }; + AscCommonExcel.WorksheetView.prototype._calcActiveCellOffset = function () { + }; + + AscCommon.baseEditorsApi.prototype._onEndLoadSdk = function () { + }; + Asc.ReadDefTableStyles = function () { + }; + + QUnit.test("Test: API Calculation option", function (assert) { + // Init api + let api = new Asc.spreadsheet_api({ + 'id-view': 'editor_sdk' + }); + window["Asc"]["editor"] = api; + AscCommon.g_oTableId.init(); + api._onEndLoadSdk(); + api.isOpenOOXInBrowser = false; + api._openDocument(AscCommon.getEmpty()); + api.collaborativeEditing = new AscCommonExcel.CCollaborativeEditing({}); + api.wb = new AscCommonExcel.WorkbookView(api.wbModel, api.controller, api.handlers, api.HtmlElement, + api.topLineEditorElement, api, api.collaborativeEditing, api.fontRenderingMode); + // Test api: GetCalcSettings + let oCalcSettings = api.asc_GetCalcSettings(); + assert.ok(oCalcSettings, "API: GetCalcSettings: Calculation setting object is created"); + assert.strictEqual(oCalcSettings.bIterativeCalc, false, '"Enable iterative calculation" is "false" as default value'); + assert.strictEqual(oCalcSettings.nMaxIterations, 100, '"Maximum Iterations" is "100" as default value'); + assert.strictEqual(oCalcSettings.nMaxChange, 0.001, '"Maximum Change" is "0.001" as default value'); + // Test api: UpdateCalcSettings + // Update CalcSettings for api test, need to check changes for: CalcSetting, CalcPr, and CalcRecursion + oCalcSettings.asc_setIterativeCalc(true); + oCalcSettings.asc_setMaxIterations(15); + + api.asc_UpdateCalcSettings(oCalcSettings); + // Check CalcPr + let oCalcPr = api.wbModel.calcPr; + assert.strictEqual(oCalcPr.iterate, true, 'API: UpdateCalcSettings. oCalcPr check: "iterate" is "true"'); + assert.strictEqual(oCalcPr.iterateCount, 15, 'API: UpdateCalcSettings. oCalcPr check: "iterateCount" is "10"'); + assert.strictEqual(oCalcPr.iterateDelta, null, 'API: UpdateCalcSettings. oCalcPr check: "iterateDelta" is "null"'); + // Check CalcRecursion + let g_cCalcRecursion = AscCommonExcel.g_cCalcRecursion; + assert.strictEqual(g_cCalcRecursion.bIsEnabledRecursion, true, 'API: UpdateCalcSettings. CalcRecursion check: "bIsEnabledRecursion" is "true"'); + assert.strictEqual(g_cCalcRecursion.nMaxIterations, 15, 'API: UpdateCalcSettings. CalcRecursion check: "nMaxIterations" is "15"'); + assert.strictEqual(g_cCalcRecursion.nRelativeError, 0.001, 'API: UpdateCalcSettings. CalcRecursion check: "nRelativeError" is "0.001"'); + // Case: UpdateCalcSettings update Maximum Change + oCalcSettings.asc_setMaxChange(0.00001); + api.asc_UpdateCalcSettings(oCalcSettings); + // Check CalcPr + assert.strictEqual(oCalcPr.iterateDelta, 0.00001, 'API: UpdateCalcSettings. oCalcPr check: "iterateDelta" is "0.00001"'); + // Check CalcRecursion + assert.strictEqual(g_cCalcRecursion.nRelativeError, 0.00001, 'API: UpdateCalcSettings. CalcRecursion check: "nRelativeError" is "0.00001"'); + }); + wb.dependencyFormulas.unlockRecal(); }); diff --git a/tests/cell/spreadsheet-calculation/FormulaTrace.js b/tests/cell/spreadsheet-calculation/FormulaTrace.js index 6544edc870..134f6e27c8 100644 --- a/tests/cell/spreadsheet-calculation/FormulaTrace.js +++ b/tests/cell/spreadsheet-calculation/FormulaTrace.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -171,6 +171,7 @@ $(function() { let A1Index = AscCommonExcel.getCellIndex(ws.getRange2("A1").bbox.r1, ws.getRange2("A1").bbox.c1), C10Index = AscCommonExcel.getCellIndex(ws.getRange2("C10").bbox.r1, ws.getRange2("C10").bbox.c1); + // ws.getRange2("D3:D5").setValue("=Table1", undefined, undefined, bbox); ws.getRange2("A10").setValue("=A1:A2"); ws.getRange2("A11").setValue("=A1:A2"); let A10Index = AscCommonExcel.getCellIndex(ws.getRange2("A10").bbox.r1, ws.getRange2("A10").bbox.c1), @@ -206,7 +207,7 @@ $(function() { assert.strictEqual(traceManager._getDependents(A1Index, B101Index), 1, "A1->B101"); assert.strictEqual(traceManager._getDependents(A1Index, B102Index), 1, "A1->B102"); assert.strictEqual(traceManager._getDependents(A1Index, C101Index), 1, "A1->C101"); - assert.strictEqual(traceManager._getDependents(A1Index, C102Index), 1, "A1->C10"); + assert.strictEqual(traceManager._getDependents(A1Index, C102Index), 1, "A1->C102"); assert.strictEqual(traceManager._getDependents(C101Index, E200Index), undefined, "C101->E200 === undefined"); assert.strictEqual(traceManager._getDependents(C101Index, E201Index), undefined, "C101->E201 === undefined"); assert.strictEqual(traceManager._getDependents(E200Index, H200Index), undefined, "E200->H200 === undefined"); @@ -448,7 +449,7 @@ $(function() { // clear traces api.asc_RemoveTraceArrows(Asc.c_oAscRemoveArrowsType.all); - // dependents tests + /* dependents tests */ // change selection to C1 ws.selectionRange.ranges = [ws.getRange2("C1").getBBox0()]; @@ -484,7 +485,7 @@ $(function() { assert.strictEqual(traceManager._getDependents(C1Index, A4Index), 1, "C1->A4"); assert.strictEqual(traceManager._getDependents(C1Index, B3Index), 1, "C1->B3"); assert.strictEqual(traceManager._getDependents(C1Index, B4Index), 1, "C1->B4"); - assert.strictEqual(traceManager._getDependents(C1Index, A1Index), undefined, "C1->A1 === undefined"); + // assert.strictEqual(traceManager._getDependents(C1Index, A1Index), undefined, "C1->A1 === undefined"); // todo add back .cross() for dependencies SINGLE(A1:A10)|SINGLE(A1:D10) assert.strictEqual(traceManager._getDependents(C1Index, F7Index), 1, "C1->F7"); assert.strictEqual(traceManager._getDependents(C1Index, F9Index), 1, "C1->F9"); assert.strictEqual(traceManager._getDependents(C1Index, G9Index), 1, "C1->G9"); @@ -499,7 +500,7 @@ $(function() { assert.strictEqual(traceManager._getDependents(D1Index, A4Index), 1, "D1->A4"); assert.strictEqual(traceManager._getDependents(D1Index, B3Index), 1, "D1->B3"); assert.strictEqual(traceManager._getDependents(D1Index, B4Index), 1, "D1->B4"); - assert.strictEqual(traceManager._getDependents(D1Index, A1Index), undefined, "D1->A1 === undefined"); + // assert.strictEqual(traceManager._getDependents(D1Index, A1Index), undefined, "D1->A1 === undefined"); // todo add back .cross() for dependencies SINGLE(A1:A10)|SINGLE(A1:D10) assert.strictEqual(traceManager._getDependents(D1Index, F7Index), undefined, "D1->F7 === undefined"); assert.strictEqual(traceManager._getDependents(D1Index, F9Index), 1, "D1->F9"); assert.strictEqual(traceManager._getDependents(D1Index, G9Index), 1, "D1->G9"); @@ -514,12 +515,101 @@ $(function() { assert.strictEqual(traceManager._getDependents(D2Index, A4Index), 1, "D1->A4"); assert.strictEqual(traceManager._getDependents(D2Index, B3Index), 1, "D1->B3"); assert.strictEqual(traceManager._getDependents(D2Index, B4Index), 1, "D1->B4"); - assert.strictEqual(traceManager._getDependents(D2Index, A1Index), undefined, "D1->A1 === undefined"); + // assert.strictEqual(traceManager._getDependents(D2Index, A1Index), undefined, "D1->A1 === undefined"); // todo add back .cross() for dependencies SINGLE(A1:A10)|SINGLE(A1:D10) assert.strictEqual(traceManager._getDependents(D2Index, F7Index), undefined, "D1->F7 === undefined"); assert.strictEqual(traceManager._getDependents(D2Index, F9Index), undefined, "D1->F9 === undefined"); assert.strictEqual(traceManager._getDependents(D2Index, G9Index), undefined, "D1->G9 === undefined"); + // clear traces + api.asc_RemoveTraceArrows(Asc.c_oAscRemoveArrowsType.all); + + // defname in formulas + // todo in future versions add a separation between the range in the formula and the range in SINGLE + wb.dependencyFormulas.addDefName("OneCell", "Sheet1!$C$1"); + wb.dependencyFormulas.addDefName("TwoCellInARow", "Sheet1!$C$1:$D$1"); + // wb.dependencyFormulas.defNames.wb[name] + + let I3Index = AscCommonExcel.getCellIndex(ws.getRange2("I3").bbox.r1, ws.getRange2("I3").bbox.c1), + I4Index = AscCommonExcel.getCellIndex(ws.getRange2("I4").bbox.r1, ws.getRange2("I4").bbox.c1), + I5Index = AscCommonExcel.getCellIndex(ws.getRange2("I5").bbox.r1, ws.getRange2("I5").bbox.c1), + I6Index = AscCommonExcel.getCellIndex(ws.getRange2("I6").bbox.r1, ws.getRange2("I6").bbox.c1); + bbox = ws.getRange2("I3").bbox; + ws.getRange2("I3").setValue("=IF(1,OneCell,0)", undefined, undefined, bbox); + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula("IF(1,OneCell,0)", cellWithFormula, ws); + oParser.setArrayFormulaRef(bbox); + oParser.parse(); + + ws.getRange2("I4").setValue("=IF(1,OneCell,0)"); + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula("IF(1,OneCell,0)", cellWithFormula, ws); + oParser.parse(); + + bbox = ws.getRange2("I5").bbox; + ws.getRange2("I5").setValue("=IF(0,OneCell,0)", undefined, undefined, bbox); + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula("IF(0,OneCell,0)", cellWithFormula, ws); + oParser.setArrayFormulaRef(bbox); + oParser.parse(); + + ws.getRange2("I6").setValue("=IF(0,OneCell,0)"); + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula("IF(0,OneCell,0)", cellWithFormula, ws); + oParser.parse(); + + // change selection to C1 + ws.selectionRange.ranges = [ws.getRange2("C1").getBBox0()]; + ws.selectionRange.setActiveCell(ws.getRange2("C1").getBBox0().r1, ws.getRange2("C1").getBBox0().c1); + assert.ok(1, "Trace dependents from C1. Defname in formula test."); + api.asc_TraceDependents(); + assert.strictEqual(traceManager._getDependents(C1Index, I3Index), 1, "C1->I3"); + assert.strictEqual(traceManager._getDependents(C1Index, I4Index), 1, "C1->I4"); + assert.strictEqual(traceManager._getDependents(C1Index, I5Index), 1, "C1->I5"); + assert.strictEqual(traceManager._getDependents(C1Index, I6Index), 1, "C1->I6"); + + + // clear traces + api.asc_RemoveTraceArrows(Asc.c_oAscRemoveArrowsType.all); + + let K3Index = AscCommonExcel.getCellIndex(ws.getRange2("K3").bbox.r1, ws.getRange2("K3").bbox.c1), + K4Index = AscCommonExcel.getCellIndex(ws.getRange2("K4").bbox.r1, ws.getRange2("K4").bbox.c1), + K5Index = AscCommonExcel.getCellIndex(ws.getRange2("K5").bbox.r1, ws.getRange2("K5").bbox.c1), + K6Index = AscCommonExcel.getCellIndex(ws.getRange2("K6").bbox.r1, ws.getRange2("K6").bbox.c1); + bbox = ws.getRange2("K3").bbox; + ws.getRange2("K3").setValue("=IF(1,TwoCellInARow,0)", undefined, undefined, bbox); + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula("IF(1,TwoCellInARow,0)", cellWithFormula, ws); + oParser.setArrayFormulaRef(bbox); + oParser.parse(); + + ws.getRange2("K4").setValue("=IF(1,TwoCellInARow,0)"); + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula("IF(1,TwoCellInARow,0)", cellWithFormula, ws); + oParser.parse(); + + bbox = ws.getRange2("K5").bbox; + ws.getRange2("K5").setValue("=IF(0,TwoCellInARow,0)", undefined, undefined, bbox); + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula("IF(0,TwoCellInARow,0)", cellWithFormula, ws); + oParser.setArrayFormulaRef(bbox); + oParser.parse(); + + ws.getRange2("K6").setValue("=IF(0,TwoCellInARow,0)"); + cellWithFormula = new window['AscCommonExcel'].CCellWithFormula(ws, bbox.r1, bbox.c1); + oParser = new parserFormula("IF(0,TwoCellInARow,0)", cellWithFormula, ws); + oParser.parse(); + + assert.ok(1, "Trace dependents from C1. Defname in formula test 2."); + api.asc_TraceDependents(); + assert.strictEqual(traceManager._getDependents(C1Index, K3Index), 1, "C1->K3"); + assert.strictEqual(traceManager._getDependents(C1Index, K4Index), 1, "C1->K4"); + assert.strictEqual(traceManager._getDependents(C1Index, K5Index), 1, "C1->K5"); + assert.strictEqual(traceManager._getDependents(C1Index, K6Index), 1, "C1->K6"); + + + // clear traces + api.asc_RemoveTraceArrows(Asc.c_oAscRemoveArrowsType.all); }); QUnit.test("Test: \"Areas tests\"", function (assert) { let bbox; @@ -1058,7 +1148,7 @@ $(function() { oParser = new parserFormula("B3", cellWithFormula, ws); sharedRef = bbox.clone(); oParser.setShared(sharedRef, cellWithFormula); - oParser.parse(); // ? + oParser.parse(); oParser.calculate(); // set parser formula to the cell @@ -1070,7 +1160,6 @@ $(function() { // let parsed = cell.getFormulaParsed(); // parsed.buildDependencies(); }); - // console.log(ws.getRange2("C1").getFormula()); ws.selectionRange.ranges = [ws.getRange2("B3").getBBox0()]; ws.selectionRange.setActiveCell(ws.getRange2("B3").getBBox0().r1, ws.getRange2("B3").getBBox0().c1); @@ -1152,8 +1241,8 @@ $(function() { api.asc_TraceDependents(); assert.strictEqual(traceManager._getDependents(A3Index, D2Index), undefined, "A3->D2 === undefined"); assert.strictEqual(traceManager._getDependents(A3Index, D3Index), 1, "A3->D3"); - assert.strictEqual(traceManager._getDependents(A3Index, D4Index), 1, "A3->D4"); - assert.strictEqual(traceManager._getDependents(A3Index, D5Index), 1, "A3->D5"); + assert.strictEqual(traceManager._getDependents(A3Index, D4Index), 1, "A3->D4"); // ? + assert.strictEqual(traceManager._getDependents(A3Index, D5Index), 1, "A3->D5"); // ? assert.strictEqual(traceManager._getDependents(A3Index, A8Index), undefined, "A3->A8 === undefined"); assert.ok(1, "Remove last dependents from A3"); @@ -2323,6 +2412,39 @@ $(function() { // // asc_Paste -> false // // asc_PasteData -> true* // }); + QUnit.test("Test: \"Recursive formulas\"", function (assert) { + // Case #1: Precedent trace for formula - =A100+1. A dot or line shouldn't be traced + ws.getRange2("A100").setValue("=A100+1"); + let A100Index = AscCommonExcel.getCellIndex(ws.getRange2("A100").bbox.r1, ws.getRange2("A100").bbox.c1); + ws.selectionRange.ranges = [ws.getRange2("A100").getBBox0()]; + ws.selectionRange.setActiveCell(ws.getRange2("A100").getBBox0().r1, ws.getRange2("C1").getBBox0().c1); + + api.asc_TracePrecedents(); + assert.strictEqual(traceManager._getPrecedents(A100Index, A100Index), undefined, "Precedent trace. Formula A100+1. A100. Dot shouldn't be show"); + + // clear traces + api.asc_RemoveTraceArrows(Asc.c_oAscRemoveArrowsType.all); + // Case #2: Dependent trace for formula - =A100+1. A dot or line shouldn't be traced + api.asc_TraceDependents(); + assert.strictEqual(traceManager._getDependents(A100Index, A100Index), undefined, "Dependent trace. Formula A100+1. A100. Dot shouldn't be show"); + // Case #3: Precedent trace for formula - A100: A100+B100, B100: B100+C100. A100<-B100. Arrow without dot in A100 cell. + ws.getRange2("A100").setValue("=A100+B100"); + ws.getRange2("B100").setValue("=B100+C100"); + A100Index = AscCommonExcel.getCellIndex(ws.getRange2("A100").bbox.r1, ws.getRange2("A100").bbox.c1); + let B100Index = AscCommonExcel.getCellIndex(ws.getRange2("B100").bbox.r1, ws.getRange2("B100").bbox.c1); + ws.selectionRange.ranges = [ws.getRange2("A100").getBBox0()]; + ws.selectionRange.setActiveCell(ws.getRange2("A100").getBBox0().r1, ws.getRange2("C1").getBBox0().c1); + + api.asc_TracePrecedents(); + assert.strictEqual(traceManager._getPrecedents(A100Index, B100Index), 1, "Precedent trace. Formula: A100: A100+B100, B100: B100+C100. A100<-B100. Arrow to A100 without dot in A100 cell."); + assert.strictEqual(traceManager._getPrecedents(A100Index, A100Index), undefined, "Precedent trace. Formula: A100: A100+B100, B100: B100+C100. A100. Dot shouldn't be show"); + + // clear traces + api.asc_RemoveTraceArrows(Asc.c_oAscRemoveArrowsType.all); + // Case #4: Dependent trace for formula - A100: A100+B100, B100: B100+C100. A100->B100. Arrow without dot in B100 cell. + api.asc_TraceDependents(); + assert.strictEqual(traceManager._getDependents(A100Index, A100Index), undefined, "Dependent trace. Formula: A100: A100+B100, B100: B100+C100. A100. Dot shouldn't be show"); + }); } QUnit.module("FormulaTrace"); diff --git a/tests/cell/spreadsheet-calculation/GoalSeekTests.js b/tests/cell/spreadsheet-calculation/GoalSeekTests.js index 5465241c95..c7b34eaff8 100644 --- a/tests/cell/spreadsheet-calculation/GoalSeekTests.js +++ b/tests/cell/spreadsheet-calculation/GoalSeekTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -50,12 +50,12 @@ $(function () { window["Asc"]["editor"] = api; + AscCommon.g_oTableId.init(); wb = new AscCommonExcel.Workbook(new AscCommonExcel.asc_CHandlersList(), api); AscCommon.History.init(wb); wb.maxDigitWidth = 7; wb.paddingPlusBorder = 5; - AscCommon.g_oTableId.init(); if (this.User) { g_oIdCounter.Set_UserId(this.User.asc_getId()); } @@ -317,7 +317,8 @@ $(function () { ['8', '25', '-2'], ['0', '2', '123', '1', '-1233'], ['0', '-10', '123', '1', '-1233'], - ['0', '200000', '123', '1', '-1233'] + ['0', '200000', '123', '1', '-1233'], + ['1', '2'] ]; // Fill data let oRange = ws.getRange4(0, 0); @@ -547,8 +548,12 @@ $(function () { [nResult, nChangingVal] = getResult(nExpectedVal, ws.getRange4(44, 1), 'A45+B45-C45+D45+E45', 'F45'); assert.strictEqual(Math.round(nResult), nExpectedVal, `Case: Find second parameter with 200000 as changed value for a+b-c+d+e. Result formula: ${nResult}`); assert.strictEqual(Math.round(nChangingVal), 101355, `Case: Find second parameter with 200000 as changed value for a+b-c+d+e. Result ChangingVal: ${nChangingVal}`); + nExpectedVal = 5.5; + [nResult, nChangingVal] = getResult(nExpectedVal, ws.getRange4(45, 0), 'A46*B46', 'D46'); + assert.strictEqual(nResult, nExpectedVal, `Case: Find first parameter with 1 as changed value for formula a*b. Result formula: ${nResult}`); + assert.strictEqual(nChangingVal, 2.75, `Case: Find first parameter with 1 as changed value for formula a*b. Result ChangingVal: ${nChangingVal}`); // Clear data - clearData(0,0, 3, 44); + clearData(0,0, 3, 45); }); QUnit.test('Financials calculation', function (assert) { const aTestData = [ diff --git a/tests/cell/spreadsheet-calculation/NumFormatParse.js b/tests/cell/spreadsheet-calculation/NumFormatParse.js index 8aeaaf22fb..6524fa1e96 100644 --- a/tests/cell/spreadsheet-calculation/NumFormatParse.js +++ b/tests/cell/spreadsheet-calculation/NumFormatParse.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/PivotTests.js b/tests/cell/spreadsheet-calculation/PivotTests.js index a83043fb14..b5067fb2cc 100644 --- a/tests/cell/spreadsheet-calculation/PivotTests.js +++ b/tests/cell/spreadsheet-calculation/PivotTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/PivotTests2.js b/tests/cell/spreadsheet-calculation/PivotTests2.js index cde7a4640b..2cb618aa8d 100644 --- a/tests/cell/spreadsheet-calculation/PivotTests2.js +++ b/tests/cell/spreadsheet-calculation/PivotTests2.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -646,5 +646,28 @@ $(function() { }); } }); + QUnit.test('Test: Api pivot builder', function (assert) { + const file = Asc.pivotBuilder; + const wb = openDocument(file); + ws = wb.getWorksheetByName('Test'); + const pivot = wb.getWorksheetByName('Test').getPivotTable(2, 3); + + let range = pivot.asc_getColumnRange(); + assert.deepEqual([range.bbox.r1, range.bbox.r2, range.bbox.c1, range.bbox.c2], [2, 3, 1, 3], 'column range'); + + range = pivot.asc_getRowRange(); + assert.deepEqual([range.bbox.r1, range.bbox.r2, range.bbox.c1, range.bbox.c2], [3, 12, 0, 0], 'row range'); + + range = pivot.asc_getDataBodyRange(); + assert.deepEqual([range.bbox.r1, range.bbox.r2, range.bbox.c1,range.bbox.c2], [4, 12, 1, 3], 'data range'); + + let getDataToGetPivotData = pivot.asc_getDataToGetPivotData(['East', 'Boy', 'Fancy']); + let params = pivot.getGetPivotParamsByActiveCell({row: 5, col: 1}) + assert.deepEqual(getDataToGetPivotData, { + dataFieldName: 'Sum of Price', + optParams: params.optParams + }, 'getGetPivotParamsByActiveCell'); + + }); } }); diff --git a/tests/cell/spreadsheet-calculation/PivotTests2Files.js b/tests/cell/spreadsheet-calculation/PivotTests2Files.js index 814a3d44b2..efb0568dc2 100644 --- a/tests/cell/spreadsheet-calculation/PivotTests2Files.js +++ b/tests/cell/spreadsheet-calculation/PivotTests2Files.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -68,6 +68,10 @@ $(function() { window['Asc']['GetPivotData2'] = { 'Editor.bin':"WExTWTt2MTA7MDsIBmY6AAAHvDoAAAFOOwAAAlQ+AAADw0AAAATtQAAAAG1HAAAKSmEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkQEAABECAAAAAAAAAAAAAAAAAAAAAAcOAQAAAAEAAAAPAAAAAAAHDggAAAAAAAAAEgAAAAAABw4JAAAAAAAAABcAAAAAAAARAwAAAAAAAAAAAAAAAAAAAAAHDgEAAAAAAAAACAAAAAAABw4DAAAAAAAAAAwAAAAAAAcOBQAAAAAAAAAaAAAAAAAHDgYAAAAAAAAAGwAAAAAACUYIAAAAAAAAAIXrUbgexWBAAAAAAAAAAAAAAAYAEwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA0ACwAQgA1ACkACz8JAAAAAAAAABcAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABCADQALABCADQAKQAAEQQAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAABAAAAAAAAcOAQAAAAAAAAAOAAAAAAAHDgIAAAAAAAAAHAAAAAAABw4DAAAAAAAAAA4AAAAAAAcOBAAAAAAAAAAcAAAAAAAJRggAAAAAAAAASOF6FK4XYEAAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADUALABHADQAKQALPwkAAAAAAAAAFwAAAAAAAAAAAAAGABMAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEAMwAsAEMANAApAAARBQAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAABwAAAAAABRIBAAAAAgAAAAAAAAAAAEJAAAAFEgIAAAACAAAA4XoUrkdhQUAAAAUSAwAAAAIAAABxPQrXo5BCQAAABRIEAAAAAgAAAOtRuB6F60FAAAAFEgUAAAACAAAAuB6F61FIUkAAAAUSBgAAAAIAAABmZmZmZqZRQAAACWoIAAAAAAAAAIXrUbgexWBAAAAAAAAAAAAAAAYAJQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA2ACwAIgBUAG8AdABhAGwAIABTAHUAbQAgAG8AZgAgAFAAcgBpAGMAZQAiACkACz8JAAAAAAAAABcAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABCADYALABBADYAKQAAEQYAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAAA0AAAAAAAUSAQAAAAIAAABxPQrXoxBCQAAABRICAAAAAgAAANejcD0KF0FAAAAFEgMAAAACAAAAZmZmZmbmOEAAAAUSBAAAAAIAAAD2KFyPwvU3QAAABRIFAAAAAgAAAKRwPQrXg05AAAAFEgYAAAACAAAAUrgehesRTUAAAAloCAAAAAAAAABI4XoUrhdgQAAAAAAAAAAAAAAGACQAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANwAsACIAVABvAHQAYQBsACAAUwB1AG0AIABvAGYAIABDAG8AcwB0ACIAKQALPwkAAAAAAAAAFwAAAAAAAAAAAAAGABMAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEIANwAsAEYANQApAAARBwAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAAEQAAAAAABRIBAAAAAgAAALgehetRCFJAAAAFEgIAAAACAAAAXI/C9Sg8UUAAAAUSAwAAAAIAAACkcD0K1wNPQAAABRIEAAAAAgAAAGZmZmZm5k1AAAAFEgUAAAACAAAAhetRuB7FYEAAAAUSBgAAAAIAAABI4XoUrhdgQAAACV4IAAAAAAAAAIXrUbgexWBAAAAAAAAAAAAAAAYAHwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA4ACwAIgBTAHUAbQAgAG8AZgAgAFAAcgBpAGMAZQAiACkACz8JAAAAAAAAABcAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABCADgALABEADQAKQAAEQgAAAAAAAAAAAAAAAAAAAAACVwIAAAAAAAAAEjhehSuF2BAAAAAAAAAAAAAAAYAHgAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAzACwAIgBTAHUAbQAgAG8AZgAgAEMAbwBzAHQAIgApAAs/CQAAAAAAAAAXAAAAAAAAAAAAAAYAEwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQwAzACwAQQA3ACkAABEJAAAAAAAAAAAAAAAAAAAAAAs/CQAAAAAAAAAXAAAAAAAAAAAAAAYAEwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQwA0ACwARQA5ACkAkgEAkQEAABECAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAAOAAAAAAAHDgIAAAABAAAAAQAAAAAAABEDAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAAAAAAAAAAHDgEAAAABAAAAAgAAAAAABw4CAAAAAAAAAAgAAAAAAAcOAwAAAAAAAAAMAAAAAAAHDgQAAAAAAAAAEQAAAAAABw4GAAAAAAAAABcAAAAAAAARBAAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAABwAAAAAABw4BAAAAAAAAAAsAAAAAAAUSAgAAAAIAAAAAAAAAAAAqQAAABRIDAAAAAgAAAHsUrkfheitAAAAFEgQAAAACAAAAPgrXo3C9OkAAAAs/BgAAAAAAAAAXAAAAAAAAAAAAAAYAEwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAzACwAQQA1ACkAABEFAAAAAAAAAAAAAAAAAAAAAAcOAQAAAAAAAAAKAAAAAAAFEgIAAAACAAAA7FG4HoXrJ0AAAAUSAwAAAAIAAAA9CtejcD0oQAAABRIEAAAAAgAAABSuR+F6FDhAAAALPwYAAAAAAAAAFwAAAAAAAAAAAAAGABMAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANAAsAEEAOAApAAARBgAAAAAAAAAAAAAAAAAAAAAHDgEAAAAAAAAACQAAAAAABRICAAAAAgAAABSuR+F6FCZAAAAFEgMAAAACAAAACtejcD2KJkAAAAUSBAAAAAIAAACPwvUoXE82QAAAABEHAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAAAAAANAAAAAAAHDgEAAAAAAAAACwAAAAAABRICAAAAAgAAAAAAAAAAgDdAAAAFEgMAAAACAAAA16NwPQrXKkAAAAUSBAAAAAIAAAD2KFyPwnVCQAAAABEIAAAAAAAAAAAAAAAAAAAAAAcOAQAAAAAAAAAKAAAAAAAFEgIAAAACAAAAw/UoXI9CKUAAAAUSAwAAAAIAAAD2KFyPwvUmQAAABRIEAAAAAgAAAFyPwvUoHDhAAAAAEQkAAAAAAAAAAAAAAAAAAAAABw4AAAAAAAAAABEAAAAAAAUSAgAAAAIAAAC4HoXrUQhSQAAABRIDAAAAAgAAAKRwPQrXA09AAAAFEgQAAAACAAAAhetRuB7FYEAAAAARCwAAAAAAAAAAAAAAAAAAAAAHDgAAAAABAAAADgAAAAAABw4BAAAAAQAAAA8AAAAAAAARDAAAAAAAAAAAAAAAAAAAAAAHDgAAAAABAAAAEAAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAAMAAAAAAAHDgMAAAAAAAAAEQAAAAAAAQoFAAAAAQAAAAAABw4GAAAAAAAAABcAAAAAAAARDQAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAABwAAAAAAAQoBAAAAAgAAAAAAAQoCAAAAAgAAAAAAAQoDAAAAAgAAAAAAC0MGAAAAAAAAABcAAAAAAAAAAAAABgAVAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADEAMgAsAEEAMQA0ACkAABEOAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAALAAAAAAAFEgEAAAACAAAAAAAAAAAAKkAAAAUSAgAAAAIAAAB7FK5H4XorQAAABRIDAAAAAgAAAD4K16NwvTpAAAALQwYAAAAAAAAAFwAAAAAAAAAAAAAGABUAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEAMQAzACwAQQAxADgAKQAAEQ8AAAAAAAAAAAAAAAAAAAAABw4AAAAABAAAAAoAAAAAAAUSAQAAAAIAAADsUbgehesnQAAABRICAAAAAgAAAD0K16NwPShAAAAFEgMAAAACAAAAFK5H4XoUOEAAAAAREAAAAAAAAAAAAAAAAAAAAAAHDgAAAAAEAAAACQAAAAAABRIBAAAAAgAAABSuR+F6FCZAAAAFEgIAAAACAAAACtejcD2KJkAAAAUSAwAAAAIAAACPwvUoXE82QAAAABERAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAANAAAAAAABCgEAAAACAAAAAAABCgIAAAACAAAAAAABCgMAAAACAAAAAAAAERIAAAAAAAAAAAAAAAAAAAAABw4AAAAABAAAAAsAAAAAAAUSAQAAAAIAAAAAAAAAAIA3QAAABRICAAAAAgAAANejcD0K1ypAAAAFEgMAAAACAAAA9ihcj8J1QkAAAAAREwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAEAAAACgAAAAAABRIBAAAAAgAAAMP1KFyPQilAAAAFEgIAAAACAAAA9ihcj8L1JkAAAAUSAwAAAAIAAABcj8L1KBw4QAAAABEUAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAARAAAAAAAFEgEAAAACAAAAuB6F61EIUkAAAAUSAgAAAAIAAACkcD0K1wNPQAAABRIDAAAAAgAAAIXrUbgexWBAAAAAERYAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAA4AAAAAAAcOAQAAAAEAAAAPAAAAAAAHDgcAAAAAAAAAEgAAAAAAABEXAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAAQAAAAAAAHDgEAAAAAAAAACAAAAAAABw4CAAAAAAAAAAwAAAAAAAcOAwAAAAAAAAARAAAAAAABCgQAAAABAAAAAAAJSgcAAAAAAAAAuB6F61FIUkAAAAAAAAAAAAAABgAVAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADIAMwAsAEEAMgA5ACkAABEYAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAAHAAAAAAABCgEAAAACAAAAAAABCgIAAAACAAAAAAABCgMAAAACAAAAAAAJSgcAAAAAAAAApHA9CteDTkAAAAAAAAAAAAAABgAVAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADIAMwAsAEEAMwAwACkAABEZAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAALAAAAAAAFEgEAAAACAAAAAAAAAAAAKkAAAAUSAgAAAAIAAAB7FK5H4XorQAAABRIDAAAAAgAAAD4K16NwvTpAAAAAERoAAAAAAAAAAAAAAAAAAAAABw4AAAAABAAAAAoAAAAAAAUSAQAAAAIAAADsUbgehesnQAAABRICAAAAAgAAAD0K16NwPShAAAAFEgMAAAACAAAAFK5H4XoUOEAAAAARGwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAEAAAACQAAAAAABRIBAAAAAgAAABSuR+F6FCZAAAAFEgIAAAACAAAACtejcD2KJkAAAAUSAwAAAAIAAACPwvUoXE82QAAAABEcAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAAYAAAAAAAFEgEAAAACAAAAAAAAAAAAQkAAAAUSAgAAAAIAAABwPQrXo5BCQAAABRIDAAAAAgAAALgehetRSFJAAAAAER0AAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAAA0AAAAAAAEKAQAAAAIAAAAAAAEKAgAAAAIAAAAAAAEKAwAAAAIAAAAAAAARHgAAAAAAAAAAAAAAAAAAAAAHDgAAAAAEAAAACwAAAAAABRIBAAAAAgAAAAAAAAAAgDdAAAAFEgIAAAACAAAA16NwPQrXKkAAAAUSAwAAAAIAAAD2KFyPwnVCQAAAABEfAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAAKAAAAAAAFEgEAAAACAAAAw/UoXI9CKUAAAAUSAgAAAAIAAAD2KFyPwvUmQAAABRIDAAAAAgAAAFyPwvUoHDhAAAAAESAAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAABkAAAAAAAUSAQAAAAIAAABxPQrXoxBCQAAABRICAAAAAgAAAGZmZmZm5jhAAAAFEgMAAAACAAAApHA9CteDTkAAAAARIQAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAAEQAAAAAABRIBAAAAAgAAALgehetRCFJAAAAFEgIAAAACAAAApHA9CtcDT0AAAAUSAwAAAAIAAACF61G4HsVgQAAAABEjAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAAOAAAAAAAHDgEAAAABAAAADwAAAAAAABEkAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAAQAAAAAAAHDgEAAAAAAAAACAAAAAAABw4CAAAAAAAAAAwAAAAAAAcOBgAAAAAAAAAXAAAAAAAHDgcAAAAAAAAAEgAAAAAAABElAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAAHAAAAAAABCgEAAAACAAAAAAABCgIAAAACAAAAAAALQwYAAAAAAAAAFwAAAAAAAAAAAAAGABUAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEAMwA3ACwAQQAzADgAKQAJlgEHAAAAAAAAAHA9CtejkEJAAAAAAAAAAAAAAAYAOwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAIgBQAHIAaQBjAGUAIgAsACQAQQAkADMANgAsACIAUgBlAGcAaQBvAG4AIgAsACIARQBhAHMAdAAiACwAIgBHAGUAbgBkAGUAcgAiACwAIgBHAGkAcgBsACIAKQAAESYAAAAAAAAAAAAAAAAAAAAABw4AAAAABAAAAAsAAAAAAAUSAQAAAAIAAAAAAAAAAAAqQAAABRICAAAAAgAAAHsUrkfheitAAAALQwYAAAAAAAAAFwAAAAAAAAAAAAAGABUAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEAMwA3ACwAQQA0ADMAKQAJlAEHAAAAAAAAAHE9CtejEEJAAAAAAAAAAAAAAAYAOgAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAIgBQAHIAaQBjAGUAIgAsACQAQQAkADMANgAsACIAUgBlAGcAaQBvAG4AIgAsACIAVwBlAHMAdAAiACwAIgBHAGUAbgBkAGUAcgAiACwAIgBCAG8AeQAiACkAABEnAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAAKAAAAAAAFEgEAAAACAAAA7FG4HoXrJ0AAAAUSAgAAAAIAAAA9CtejcD0oQAAAABEoAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAAJAAAAAAAFEgEAAAACAAAAFK5H4XoUJkAAAAUSAgAAAAIAAAAK16NwPYomQAAAABEpAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAAYAAAAAAAFEgEAAAACAAAAAAAAAAAAQkAAAAUSAgAAAAIAAABwPQrXo5BCQAAAABEqAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAANAAAAAAABCgEAAAACAAAAAAABCgIAAAACAAAAAAAAESsAAAAAAAAAAAAAAAAAAAAABw4AAAAABAAAAAsAAAAAAAUSAQAAAAIAAAAAAAAAAIA3QAAABRICAAAAAgAAANejcD0K1ypAAAAAESwAAAAAAAAAAAAAAAAAAAAABw4AAAAABAAAAAoAAAAAAAUSAQAAAAIAAADD9Shcj0IpQAAABRICAAAAAgAAAPYoXI/C9SZAAAAAES0AAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAABkAAAAAAAUSAQAAAAIAAABxPQrXoxBCQAAABRICAAAAAgAAAGZmZmZm5jhAAAAAES8AAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAA4AAAAAAAcOAQAAAAEAAAAPAAAAAAAHDgYAAAAAAAAAFwAAAAAABw4HAAAAAAAAABIAAAAAAAARMAAAAAAAAAAAAAAAAAAAAAAHDgAAAAABAAAAEAAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAAMAAAAAAAHDgMAAAAAAAAAEQAAAAAAC0MGAAAAAAAAABcAAAAAAAAAAAAABgAVAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADQAOAAsAEIANAA5ACkACUoHAAAAAAAAALgehetRSFJAAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA0ADgALABBADUAMAApAAARMQAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAABwAAAAAABRIBAAAAAgAAAAAAAAAAAEJAAAAFEgIAAAACAAAAcT0K16OQQkAAAAUSAwAAAAIAAAC4HoXrUUhSQAAAC0MGAAAAAAAAABcAAAAAAAAAAAAABgAVAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADQAOQAsAEMANAA5ACkACUoHAAAAAAAAAKRwPQrXg05AAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA0ADkALABBADUAMQApAAARMgAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAADQAAAAAABRIBAAAAAgAAAHE9CtejEEJAAAAFEgIAAAACAAAAZmZmZmbmOEAAAAUSAwAAAAIAAACkcD0K14NOQAAAC0MGAAAAAAAAABcAAAAAAAAAAAAABgAVAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADUAMAAsAEQANAA5ACkAABE1AAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAAOAAAAAAAHDgEAAAABAAAADwAAAAAABw4GAAAAAAAAABcAAAAAAAcOBwAAAAAAAAASAAAAAAAAETYAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAABAAAAAAAAcOAQAAAAAAAAAIAAAAAAAHDgIAAAAAAAAADAAAAAAAAQoEAAAAAQAAAAAAAQoFAAAAAQAAAAAAC0MGAAAAAAAAABcAAAAAAAAAAAAABgAVAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADUANAAsAEEANQA2ACkACUoHAAAAAAAAALgehetRCFJAAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA1ADQALABCADUANQApAAARNwAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAABwAAAAAABRIBAAAAAgAAAAAAAAAAAEJAAAAFEgIAAAACAAAAcT0K16OQQkAAAAtDBgAAAAAAAAAXAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA1ADUALABBADUANwApAAlKBwAAAAAAAACkcD0K1wNPQAAAAAAAAAAAAAAGABUAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANQA1ACwAQwA1ADUAKQAAETgAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAAA0AAAAAAAUSAQAAAAIAAABxPQrXoxBCQAAABRICAAAAAgAAAGZmZmZm5jhAAAALQwYAAAAAAAAAFwAAAAAAAAAAAAAGABUAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANQA2ACwAQQA1ADgAKQAAETkAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAABEAAAAAAAUSAQAAAAIAAAC4HoXrUQhSQAAABRICAAAAAgAAAKRwPQrXA09AAACSAQCRAQAAEQEAAAAAAAAAAAAAAAAAAAAABw4GAAAAAAAAABIAAAAAAAcOBwAAAAAAAAATAAAAAAAHDggAAAAAAAAAFwAAAAAAABECAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAAOAAAAAAAHDgEAAAABAAAADwAAAAAACUYGAAAAAAAAAIXrUbgexWBAAAAAAAAAAAAAAAYAEwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAzACwAQwAzACkACz8HAAAAAAAAACoAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABCADMALABEADUAKQALPwgAAAAAAAAAFwAAAAAAAAAAAAAGABMAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEAOAAsAEUANQApAAARAwAAAAAAAAAAAAAAAAAAAAAHDgAAAAABAAAAEAAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAAMAAAAAAAHDgMAAAAAAAAAEQAAAAAACVIGAAAAAAAAAKRwPQrXA09AAAAAAAAAAAAAAAcYEwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA0ACwAQwA0ACkAAgAAAEcANAAAAAAACz8HAAAAAAAAACoAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABCADQALABCADYAKQAAEQQAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAAAcAAAAAAAUSAQAAAAIAAAAAAAAAAABCQAAABRICAAAAAgAAAHE9CtejkEJAAAAFEgMAAAACAAAAuB6F61FIUkAAAAlIBgAAAAAAAACF61G4HsVgQAAAAAAAAAAAAAAGABQAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANQAsACAARAA0ACkACz8HAAAAAAAAACoAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABCADUALABEADcAKQAAEQUAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAAA0AAAAAAAUSAQAAAAIAAABxPQrXoxBCQAAABRICAAAAAgAAAGZmZmZm5jhAAAAFEgMAAAACAAAApHA9CteDTkAAAAlGBgAAAAAAAAC4HoXrUUhSQAAAAAAAAAAAAAAGABMAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANgAsAEEANQApAAs/BwAAAAAAAAAqAAAAAAAAAAAAAAYAEwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQgA1ACwAQgAzACkAABEGAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAARAAAAAAAFEgEAAAACAAAAuB6F61EIUkAAAAUSAgAAAAIAAACkcD0K1wNPQAAABRIDAAAAAgAAAIXrUbgexWBAAAAJRgYAAAAAAAAAhetRuB7FYEAAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADcALABBADcAKQALPwcAAAAAAAAAKgAAAAAAAAAAAAAGABMAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEIANgAsAEEANAApAAARBwAAAAAAAAAAAAAAAAAAAAAJRgYAAAAAAAAAhetRuB7FYEAAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABCADMALABBADMAKQALPwcAAAAAAAAAKgAAAAAAAAAAAAAGABMAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEIANwAsAEEAOQApAAARCAAAAAAAAAAAAAAAAAAAAAAFEgAAAAAAAAAAAAAAAADAXkAAAAUSAQAAAAAAAAAAAAAAABB0QAAACUYGAAAAAAAAAIXrUbgexWBAAAAAAAAAAAAAAAYAEwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAzACwAQQAyACkACz8HAAAAAAAAACoAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADUALABCADkAKQAAEQkAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAABQAAAAAAAcOAQAAAAAAAAAIAAAAAAAJRgYAAAAAAAAAhetRuB7FYEAAAAAAAAAAAAAABgATAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADMALAAiACIAKQALQQcAAAAAAAAAKgAAAAAAAAAAAAAGABQAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANgAsAEEAMQAwACkAABEKAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAAVAAAAAAAJTgYAAAAAAAAAuB6F61FIUkAAAAAAAAAAAAAABgAXAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADQALAAiAEUAYQBzAHQAIgApAAtRBwAAAAAAAAAqAAAAAAAAAAAAAAYAHAAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA3ACwAIgBCAEEARAAgAFYAQQBMAFUARQAiACkAABELAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAAWAAAAAAAJTgYAAAAAAAAApHA9CteDTkAAAAAAAAAAAAAABgAXAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADUALAAiAFcAZQBzAHQAIgApAAARDAAAAAAAAAAAAAAAAAAAAAAJTAYAAAAAAAAAuB6F61EIUkAAAAAAAAAAAAAABgAWAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADYALAAiAEIAbwB5ACIAKQAAEQ0AAAAAAAAAAAAAAAAAAAAACU4GAAAAAAAAAKRwPQrXA09AAAAAAAAAAAAAAAYAFwAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA3ACwAIgBHAGkAcgBsACIAKQAAEQ4AAAAAAAAAAAAAAAAAAAAACVwGAAAAAAAAAIXrUbgexWBAAAAAAAAAAAAAAAYAHgAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAzACwAIgBHAHIAYQBuAGQAIABUAG8AdABhAGwAIgApAAARDwAAAAAAAAAAAAAAAAAAAAAHDgAAAAABAAAADgAAAAAABw4BAAAAAQAAAA8AAAAAAAlGBgAAAAAAAACF61G4HsVgQAAAAAAAAAAAAAAGABMAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANAAsAEMAMwApAAAREAAAAAAAAAAAAAAAAAAAAAAHDgAAAAABAAAAEAAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAAMAAAAAAAHDgMAAAAAAAAAEQAAAAAAAQoEAAAAAQAAAAAAAQoFAAAAAQAAAAAACUgGAAAAAQAAALgehetRCFJAAAAAAAAAAAAAAAYAFAAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQA1ACwAQgAxADAAKQAAEREAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAAAcAAAAAAAUSAQAAAAIAAAAAAAAAAABCQAAABRICAAAAAgAAAHA9CtejkEJAAAAFEgMAAAACAAAAuB6F61FIUkAAAAlIBgAAAAAAAAC4HoXrUQhSQAAAAAAAAAAAAAAGABQAAABHAEUAVABQAEkAVgBPAFQARABBAFQAQQAoAEEANgAsAEEAMQAxACkAABESAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAALAAAAAAAFEgEAAAACAAAAAAAAAAAAKkAAAAUSAgAAAAIAAAB7FK5H4XorQAAABRIDAAAAAgAAAD4K16NwvTpAAAAJSAYAAAAAAAAAuB6F61EIUkAAAAAAAAAAAAAABgAUAAAARwBFAFQAUABJAFYATwBUAEQAQQBUAEEAKABBADcALABBADEAMgApAAAREwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAEAAAACgAAAAAABRIBAAAAAgAAAOxRuB6F6ydAAAAFEgIAAAACAAAAPQrXo3A9KEAAAAUSAwAAAAIAAAAUrkfhehQ4QAAAABEUAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAAJAAAAAAAFEgEAAAACAAAAFK5H4XoUJkAAAAUSAgAAAAIAAAAK16NwPYomQAAABRIDAAAAAgAAAI/C9ShcTzZAAAAHDgYAAAAAAAAAEgAAAAAABw4IAAAAAAAAABcAAAAAAAARFQAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAADQAAAAAABRIBAAAAAgAAAHE9CtejEEJAAAAFEgIAAAACAAAAZmZmZmbmOEAAAAUSAwAAAAIAAACkcD0K14NOQAAACUoGAAAAAAAAALgehetRCFJAAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAxADYALABCADEANwApAAtDCAAAAAAAAAAXAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAxADYALABBADEAOQApAAARFgAAAAAAAAAAAAAAAAAAAAAHDgAAAAAEAAAACwAAAAAABRIBAAAAAgAAAAAAAAAAgDdAAAAFEgIAAAACAAAA16NwPQrXKkAAAAUSAwAAAAIAAAD2KFyPwnVCQAAACUoGAAAAAAAAAKRwPQrXA09AAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAxADcALABDADEANwApAAtDCAAAAAAAAAAXAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAxADcALABBADIAMAApAAARFwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAEAAAACgAAAAAABRIBAAAAAgAAAMP1KFyPQilAAAAFEgIAAAACAAAA9ihcj8L1JkAAAAUSAwAAAAIAAABcj8L1KBw4QAAACUoGAAAAAAAAAKRwPQrXg05AAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAxADgALABBADIAMgApAAtDCAAAAAAAAAAXAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAyADAALABBADIAMwApAAARGAAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAAEQAAAAAABRIBAAAAAgAAALgehetRCFJAAAAFEgIAAAACAAAApHA9CtcDT0AAAAUSAwAAAAIAAACF61G4HsVgQAAACUoGAAAAAAAAALgehetRSFJAAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAxADkALABBADEAOAApAAtDCAAAAAAAAAAXAAAAAAAAAAAAAAYAFQAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAyADEALABBADIANAApAAARHAAAAAAAAAAAAAAAAAAAAAAHDgYAAAAAAAAAEgAAAAAAABEdAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAAOAAAAAAAHDgEAAAABAAAADwAAAAAACUgGAAAAAAAAAHE9CtejkEJAAAAAAAAAAAAAAAYAFAAAAEcARQBUAFAASQBWAE8AVABEAEEAVABBACgAQQAzADAALAAxADAAKQAAER4AAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAABAAAAAAAAUSAQAAAAAAAAAAAAAAAAAkQAAABRICAAAAAAAAAAAAAAAAACZAAAAFEgMAAAAAAAAAAAAAAAAAKEAAAAUSBAAAAAAAAAAAAAAAAAAuQAAABw4FAAAAAAAAABEAAAAAAAEKBgAAAAEAAAAAAAEKBwAAAAEAAAAAAAEKCAAAAAEAAAAAAAARHwAAAAAAAAAAAAAAAAAAAAAHDgAAAAADAAAABwAAAAAABRIBAAAAAgAAAHE9CtejkEJAAAABCgIAAAACAAAAAAAFEgMAAAACAAAAAAAAAAAAQkAAAAEKBAAAAAIAAAAAAAUSBQAAAAIAAAC4HoXrUUhSQAAAABEgAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAMAAAANAAAAAAABCgEAAAACAAAAAAAFEgIAAAACAAAAcT0K16MQQkAAAAEKAwAAAAIAAAAAAAUSBAAAAAIAAABmZmZmZuY4QAAABRIFAAAAAgAAAKRwPQrXg05AAAAAESEAAAAAAAAAAAAAAAAAAAAABw4AAAAAAwAAABEAAAAAAAUSAQAAAAIAAABxPQrXo5BCQAAABRICAAAAAgAAAHE9CtejEEJAAAAFEgMAAAACAAAAAAAAAAAAQkAAAAUSBAAAAAIAAABmZmZmZuY4QAAABRIFAAAAAgAAAIXrUbgexWBAAACSAQCRAQAAEQEAAAAAAAAAAAAAAAAAAAAABw4AAAAAAAAAAAAAAAAAAAcOAQAAAAAAAAABAAAAAAAHDgIAAAAAAAAAAgAAAAAABw4DAAAAAgAAAAMAAAAAAAcOBAAAAAAAAAAEAAAAAAAHDgUAAAAAAAAABQAAAAAABw4GAAAAAAAAAAYAAAAAAAARAgAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAABwAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAAJAAAAAAAFEgMAAAACAAAAAAAAAAAA8D8AAAUSBAAAAAAAAAAAAAAAAAAoQAAABRIFAAAAAAAAABSuR+F6FCZAAAAFEgYAAAAAAAAA16NwPQrXJEAAAAARAwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAABwAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAALAAAAAAAFEgMAAAACAAAAAAAAAAAAAEAAAAUSBAAAAAAAAAAAAAAAAAAoQAAABRIFAAAAAAAAAAAAAAAAACpAAAAFEgYAAAAAAAAAMzMzMzMzKUAAAAARBAAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAABwAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAAKAAAAAAAFEgMAAAACAAAAAAAAAAAA8D8AAAUSBAAAAAAAAAAAAAAAAAAoQAAABRIFAAAAAAAAAOxRuB6F6ydAAAAFEgYAAAAAAAAAexSuR+F6J0AAAAARBQAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAABwAAAAAABw4BAAAAAAAAAAwAAAAAAAcOAgAAAAAAAAAJAAAAAAAFEgMAAAACAAAAAAAAAAAAAEAAAAUSBAAAAAAAAAAAAAAAAAAkQAAABRIFAAAAAAAAAArXo3A9iiZAAAAFEgYAAAAAAAAAH4XrUbgeJUAAAAARBgAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAABwAAAAAABw4BAAAAAAAAAAwAAAAAAAcOAgAAAAAAAAAKAAAAAAAFEgMAAAACAAAAAAAAAAAA8D8AAAUSBAAAAAAAAAAAAAAAAAAkQAAABRIFAAAAAAAAAD0K16NwPShAAAAFEgYAAAAAAAAAZmZmZmbmJ0AAAAARBwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAABwAAAAAABw4BAAAAAAAAAAwAAAAAAAcOAgAAAAAAAAALAAAAAAAFEgMAAAACAAAAAAAAAAAAAEAAAAUSBAAAAAAAAAAAAAAAAAAkQAAABRIFAAAAAAAAAHsUrkfheitAAAAFEgYAAAAAAAAAKVyPwvWoKkAAAAARCAAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAADQAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAALAAAAAAAFEgMAAAACAAAAAAAAAAAA8D8AAAUSBAAAAAAAAAAAAAAAAAAmQAAABRIFAAAAAAAAAOF6FK5H4SZAAAAFEgYAAAAAAAAA4XoUrkfhJUAAAAARCQAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAADQAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAAKAAAAAAAFEgMAAAACAAAAAAAAAAAAAEAAAAUSBAAAAAAAAAAAAAAAAAAmQAAABRIFAAAAAAAAAMP1KFyPQilAAAAFEgYAAAAAAAAA9ihcj8J1J0AAAAARCgAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAADQAAAAAABw4BAAAAAAAAAAgAAAAAAAcOAgAAAAAAAAALAAAAAAAFEgMAAAACAAAAAAAAAAAA8D8AAAUSBAAAAAAAAAAAAAAAAAAmQAAABRIFAAAAAAAAAB+F61G4HihAAAAFEgYAAAAAAAAAhetRuB4FJ0AAAAARCwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAADQAAAAAABw4BAAAAAAAAAAwAAAAAAAcOAgAAAAAAAAALAAAAAAAFEgMAAAACAAAAAAAAAAAAAEAAAAUSBAAAAAAAAAAAAAAAAAAuQAAABRIFAAAAAAAAANejcD0K1ypAAAAFEgYAAAAAAAAAFK5H4XqUKkAAAAARDAAAAAAAAAAAAAAAAAAAAAAHDgAAAAAAAAAADQAAAAAABw4BAAAAAAAAAAwAAAAAAAcOAgAAAAAAAAAKAAAAAAAFEgMAAAACAAAAAAAAAAAA8D8AAAUSBAAAAAAAAAAAAAAAAAAuQAAABRIFAAAAAAAAAPYoXI/C9SZAAAAFEgYAAAAAAAAA16NwPQpXJUAAAJIBAAFRAAAA+gEPAAAATQBpAGMAcgBvAHMAbwBmAHQAIABFAHgAYwBlAGwAAwAAAAAEBwAAADEANgAuADAAMwAwADAADAANAA4ADwD7AAcAAAD6EgAAAAD7Ao0AAAD6AQgAAABTAGEAbgBEAGkAZQBnAG8AAggAAABTAGEAbgBEAGkAZQBnAG8ABBQAAAAyADAAMgAzAC0AMAA2AC0AMgAzAFQAMQA2ADoAMAA4ADoAMgAxAFoABRQAAAAyADAAMgA0AC0AMAAzAC0AMgA1AFQAMQA0ADoANAAzADoANQAxAFoA+wACAAAA+vsCAwAAABEAAAADDAAAAFIAZQBnAGkAbwBuAAARAAAAAwwAAABHAGUAbgBkAGUAcgAADwAAAAMKAAAAUwB0AHkAbABlAAAXAAAAAxIAAABTAGgAaQBwACAAZABhAHQAZQAADwAAAAMKAAAAVQBuAGkAdABzAAAPAAAAAwoAAABQAHIAaQBjAGUAAA0AAAADCAAAAEMAbwBzAHQAAA0AAAADCAAAAEUAYQBzAHQAAAsAAAADBgAAAEIAbwB5AAALAAAAAwYAAABUAGUAZQAADQAAAAMIAAAARwBvAGwAZgAADwAAAAMKAAAARgBhAG4AYwB5AAANAAAAAwgAAABHAGkAcgBsAAANAAAAAwgAAABXAGUAcwB0AAAdAAAAAxgAAABTAHUAbQAgAG8AZgAgAFAAcgBpAGMAZQAAHwAAAAMaAAAAQwBvAGwAdQBtAG4AIABMAGEAYgBlAGwAcwAAGQAAAAMUAAAAUgBvAHcAIABMAGEAYgBlAGwAcwAAGwAAAAMWAAAARwByAGEAbgBkACAAVABvAHQAYQBsAAAhAAAAAxwAAABDAG8AcgByAGUAYwB0ACAAdgBhAGwAdQBlAHMAABkAAAADFAAAAE4ALwBBACAARQByAHIAbwByAHMAAAsAAAADBgAAAEIAYQBkAAAXAAAAAxIAAABCAG8AeQAgAFQAbwB0AGEAbAAAIwAAAAMeAAAAQgBvAHkAIABUAG8AdABhAGwAIABUAG8AdABhAGwAABkAAAADFAAAAFIARQBGACAARQByAHIAbwByAHMAABkAAAADFAAAAEUAYQBzAHQAIABUAG8AdABhAGwAABkAAAADFAAAAFcAZQBzAHQAIABUAG8AdABhAGwAACkAAAADJAAAAFQAbwB0AGEAbAAgAFMAdQBtACAAbwBmACAAUAByAGkAYwBlAAAnAAAAAyIAAABUAG8AdABhAGwAIABTAHUAbQAgAG8AZgAgAEMAbwBzAHQAABsAAAADFgAAAFMAdQBtACAAbwBmACAAQwBvAHMAdABrAgAAAB4AAAABGQAAAAAAAAAAAQAAAAACAAAAAAQAAAAABQAAAAAEIAAAAAULAAAAAAYAAAACAQAAABEFCwAAAAAGAAAAAgEAAAAIBi8AAAAHKgAAAAEGAwAAAAIBAQQGDgAAAEMAYQBsAGkAYgByAGkACQEBBgUAAAAAAAAmQA4dAAAAAxgAAAAGBAAAAAAHBAAAAAAIBAAAAAAJBAAAAAAC0wAAAAMeAAAABgQAAAAABwQAAAAACAQAAAAACQQAAAAADAQAAAAAAyEAAAAGBAAAAAAHBAAAAAAIBAAAAAAJBAAAAAAKAQEMBAAAAAADIQAAAAQBAQYEAAAAAAcEAAAAAAgEAAAAAAkEAAAAAAwEAAAAAAMqAAAAAAEBBgQAAAAABwQAAAAACAQAAAAACQQAAAAADAQAAAAADQYDAAAAAAEGAzAAAAAAAQEGBAAAAAAHBAAAAAAIBAAAAAAJBAAAAAAMBAAAAAANBgkAAAAAAQYBBAEAAAAPKAAAABAjAAAAAAQAAAAAAAAABAwAAABOAG8AcgBtAGEAbAAFBAAAAAAAAAAKAAAAAAxOAAAAACIAAABUAGEAYgBsAGUAUwB0AHkAbABlAE0AZQBkAGkAdQBtADIAASIAAABQAGkAdgBvAHQAUwB0AHkAbABlAEwAaQBnAGgAdAAxADYAETcAAAAAMgAAAPoAEQAAAFMAbABpAGMAZQByAFMAdAB5AGwAZQBMAGkAZwBoAHQAMQD7AAQAAAAAAAAAEy8AAAAAKgAAAFQAaQBtAGUAUwBsAGkAYwBlAHIAUwB0AHkAbABlAEwAaQBnAGgAdAAxACYAAAAAAAAAAAEFAAAAAgAAAAAPCQAAAAAEAAAAJcMCABEEAAAAeABsAHwGAAAA6gEAAAEaAAAAAAYOAAAARwBlAG4AZQByAGEAbAABBKIAAAACIwEAAAMcAAAAAAEBAgQBAAAAAwQBAAAABQUAAAAAAEgqQAYBAQMcAAAAAAEBAgQCAAAAAwQCAAAABQUAAAAAAEkwQAYBAQMcAAAAAAEBAgQDAAAAAwQDAAAABQUAAAAAAAAYQAYBAQMcAAAAAAEBAgQEAAAAAwQEAAAABQUAAAAAAAAIQAYBAQMcAAAAAAEBAgQFAAAAAwQFAAAABQUAAAAAAAAUQAYBAQMcAAAAAAEBAgQGAAAAAwQGAAAABQUAAAAAAJImQAYBAQMcAAAAAAEBAgQHAAAAAwQHAAAABQUAAAAAALYvQAYBAQMZAAAAAgQIAAAAAwQIAAAABQUAAAAAAJIoQAYBAQMZAAAAAgQJAAAAAwQJAAAABQUAAAAAAAAoQAYBAQQMAAAAQQAyADoASQAzADQAFi8AAAAXKgAAAAoBAAAAAQ4EAAAAAAAAABQWAAAAAAYAAABJADEANwACBgAAAEkAMQA3AAsKAAAAAQUAAAAAAAAuQA48AAAAAAVH4XoUrscxQAEFzMzMzMwMM0ACBUfhehSuxzFAAwXMzMzMzAwzQAQFexSuR+F6HkAFBXsUrkfheh5ACQkAAAAjBAAAADwgAAAArAEAAAE6AAAAAAYuAAAAUwB1AGIAdABvAHQAYQBsAHMAIAArACAARwByAGEAbgBkAFQAbwB0AGEAbABzAAEEowAAAALAAAAAAxwAAAAAAQECBAEAAAADBAEAAAAFBQAAAAAASCpABgEBAxwAAAAAAQECBAIAAAADBAIAAAAFBQAAAAAASTBABgEBAxwAAAAAAQECBAMAAAADBAMAAAAFBQAAAAAAABhABgEBAxwAAAAAAQECBAUAAAADBAQAAAAFBQAAAAAAkiZABgEBAxkAAAACBAcAAAADBAcAAAAFBQAAAAAA2ixABgEBAxkAAAACBAgAAAADBAgAAAAFBQAAAAAASC5ABgEBBAwAAABBADMAOgBIADUAOAAWNAAAABcvAAAACwYAAABBADMANwAOBAAAAAAAAAAUFgAAAAAGAAAASAAyADQAAgYAAABIADIANAALCgAAAAEFAAAAAAAALkAOPAAAAAAFR+F6FK7HMUABBczMzMzMDDNAAgVH4XoUrscxQAMFzMzMzMwMM0AEBXsUrkfheh5ABQV7FK5H4XoeQAkJAAAAIwQAAABsCQAAAOYBAAABIAAAAAAGFAAAAEQAYQB0AGEARgBpAGUAbABkAHMAAQSkAAAAAiMBAAADHAAAAAABAQIEAQAAAAMEAQAAAAUFAAAAAABIKkAGAQEDHAAAAAABAQIEAgAAAAMEAgAAAAUFAAAAAABJMEAGAQEDHAAAAAABAQIEAwAAAAMEAwAAAAUFAAAAAADaJkAGAQEDHAAAAAABAQIEBAAAAAMEBAAAAAUFAAAAAAAAKEAGAQEDHAAAAAABAQIEBQAAAAMEBQAAAAUFAAAAAADaJkAGAQEDHAAAAAABAQIEBgAAAAMEBgAAAAUFAAAAAAAAMUAGAQEDHAAAAAABAQIEBwAAAAMEBwAAAAUFAAAAAABtMEAGAQEDGQAAAAIECQAAAAMECQAAAAUFAAAAAABJMkAGAQEDGQAAAAIECgAAAAMECgAAAAUFAAAAAABJMUAGAQEEDAAAAEEAMwA6AEoAMQAwABYlAAAAFyAAAAAOBAAAAAAAAAAUEgAAAAAEAAAASQA2AAIEAAAASQA2AAsKAAAAAQUAAAAAAAAuQA48AAAAAAVH4XoUrscxQAEFzMzMzMwMM0ACBUfhehSuxzFAAwXMzMzMzAwzQAQFexSuR+F6HkAFBXsUrkfheh5ACQkAAAAjBAAAAIsCAAAA7AAAAAEYAAAAAAYMAAAAUwBoAGUAZQB0ADEAAQQBAAAAAh4AAAADGQAAAAIEBAAAAAMEBAAAAAUFAAAAAACSLkAGAQEEDAAAAEEAMgA6AEcAMQAzABYtAAAAFygAAAAOBAAAAAAAAAAUGgAAAAAEAAAAQQAyAAIMAAAAQQAyADoARwAxADMACwoAAAABBQAAAAAAAC5ADjwAAAAABUfhehSuxzFAAQXMzMzMzAwzQAIFR+F6FK7HMUADBczMzMzMDDNABAV7FK5H4XoeQAUFexSuR+F6HkAPBgAAAAEBCQABAQkJAAAAIwQAAACMMwAA2RkAAAXUGQAAFM8ZAAD6AAwAAABPAGYAZgBpAGMAZQAgAFQAaABlAG0AZQD7AKIZAAAAFQEAAPoABgAAAE8AZgBmAGkAYwBlAPsADQAAAAEIAAAA+gBEAXICxPsBDQAAAAEIAAAA+gDtAX0CMfsCDQAAAAEIAAAA+gClAaUCpfsDDQAAAAEIAAAA+gD/AcACAPsEDQAAAAEIAAAA+gBbAZsC1fsFDQAAAAEIAAAA+gBwAa0CR/sIJgAAAAQhAAAA+gAKAAAAdwBpAG4AZABvAHcAVABlAHgAdAABAAIAAwD7CQ0AAAABCAAAAPoARAFUAmr7Cg0AAAABCAAAAPoAlQFPAnL7Cw0AAAABCAAAAPoABQFjAsH7DB4AAAAEGQAAAPoABgAAAHcAaQBuAGQAbwB3AAH/Av8D//sNDQAAAAEIAAAA+gDnAeYC5vsBuREAAPoABgAAAE8AZgBmAGkAYwBlAPsA/wgAAABOAAAA+gEUAAAAMAAyADAARgAwADMAMAAyADAAMgAwADIAMAA0ADAAMwAwADIAMAA0AAMNAAAAQwBhAGwAaQBiAHIAaQAgAEwAaQBnAGgAdAD7AREAAAD6AwUAAABBAHIAaQBhAGwA+wIRAAAA+gMFAAAAQQByAGkAYQBsAPsDewgAAC8AAAAAKgAAAPoABAAAAEoAcABhAG4AAQsAAAA4brQwtzDDMK8wIABMAGkAZwBoAHQA+wAeAAAA+gAEAAAASABhAG4AZwABBQAAANG5QMcgAOCsFbX7ACQAAAD6AAQAAABIAGEAbgBzAAEIAAAASXu/fiAATABpAGcAaAB0APsAHAAAAPoABAAAAEgAYQBuAHQAAQQAAACwZTB9DmbUmvsAMgAAAPoABAAAAEEAcgBhAGIAAQ8AAABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgD7ADIAAAD6AAQAAABIAGUAYgByAAEPAAAAVABpAG0AZQBzACAATgBlAHcAIABSAG8AbQBhAG4A+wAgAAAA+gAEAAAAVABoAGEAaQABBgAAAFQAYQBoAG8AbQBhAPsAHgAAAPoABAAAAEUAdABoAGkAAQUAAABOAHkAYQBsAGEA+wAgAAAA+gAEAAAAQgBlAG4AZwABBgAAAFYAcgBpAG4AZABhAPsAIAAAAPoABAAAAEcAdQBqAHIAAQYAAABTAGgAcgB1AHQAaQD7ACYAAAD6AAQAAABLAGgAbQByAAEJAAAATQBvAG8AbABCAG8AcgBhAG4A+wAeAAAA+gAEAAAASwBuAGQAYQABBQAAAFQAdQBuAGcAYQD7AB4AAAD6AAQAAABHAHUAcgB1AAEFAAAAUgBhAGEAdgBpAPsAJAAAAPoABAAAAEMAYQBuAHMAAQgAAABFAHUAcABoAGUAbQBpAGEA+wA8AAAA+gAEAAAAQwBoAGUAcgABFAAAAFAAbABhAG4AdABhAGcAZQBuAGUAdAAgAEMAaABlAHIAbwBrAGUAZQD7ADgAAAD6AAQAAABZAGkAaQBpAAESAAAATQBpAGMAcgBvAHMAbwBmAHQAIABZAGkAIABCAGEAaQB0AGkA+wA4AAAA+gAEAAAAVABpAGIAdAABEgAAAE0AaQBjAHIAbwBzAG8AZgB0ACAASABpAG0AYQBsAGEAeQBhAPsAIgAAAPoABAAAAFQAaABhAGEAAQcAAABNAFYAIABCAG8AbABpAPsAIAAAAPoABAAAAEQAZQB2AGEAAQYAAABNAGEAbgBnAGEAbAD7ACIAAAD6AAQAAABUAGUAbAB1AAEHAAAARwBhAHUAdABhAG0AaQD7AB4AAAD6AAQAAABUAGEAbQBsAAEFAAAATABhAHQAaABhAPsANgAAAPoABAAAAFMAeQByAGMAAREAAABFAHMAdAByAGEAbgBnAGUAbABvACAARQBkAGUAcwBzAGEA+wAiAAAA+gAEAAAATwByAHkAYQABBwAAAEsAYQBsAGkAbgBnAGEA+wAiAAAA+gAEAAAATQBsAHkAbQABBwAAAEsAYQByAHQAaQBrAGEA+wAmAAAA+gAEAAAATABhAG8AbwABCQAAAEQAbwBrAEMAaABhAG0AcABhAPsALAAAAPoABAAAAFMAaQBuAGgAAQwAAABJAHMAawBvAG8AbABhACAAUABvAHQAYQD7ADIAAAD6AAQAAABNAG8AbgBnAAEPAAAATQBvAG4AZwBvAGwAaQBhAG4AIABCAGEAaQB0AGkA+wAyAAAA+gAEAAAAVgBpAGUAdAABDwAAAFQAaQBtAGUAcwAgAE4AZQB3ACAAUgBvAG0AYQBuAPsANAAAAPoABAAAAFUAaQBnAGgAARAAAABNAGkAYwByAG8AcwBvAGYAdAAgAFUAaQBnAGgAdQByAPsAIgAAAPoABAAAAEcAZQBvAHIAAQcAAABTAHkAbABmAGEAZQBuAPsAHgAAAPoABAAAAEEAcgBtAG4AAQUAAABBAHIAaQBhAGwA+wAuAAAA+gAEAAAAQgB1AGcAaQABDQAAAEwAZQBlAGwAYQB3AGEAZABlAGUAIABVAEkA+wA4AAAA+gAEAAAAQgBvAHAAbwABEgAAAE0AaQBjAHIAbwBzAG8AZgB0ACAASgBoAGUAbgBnAEgAZQBpAPsALgAAAPoABAAAAEoAYQB2AGEAAQ0AAABKAGEAdgBhAG4AZQBzAGUAIABUAGUAeAB0APsAJAAAAPoABAAAAEwAaQBzAHUAAQgAAABTAGUAZwBvAGUAIABVAEkA+wAsAAAA+gAEAAAATQB5AG0AcgABDAAAAE0AeQBhAG4AbQBhAHIAIABUAGUAeAB0APsAIAAAAPoABAAAAE4AawBvAG8AAQYAAABFAGIAcgBpAG0AYQD7ACgAAAD6AAQAAABPAGwAYwBrAAEKAAAATgBpAHIAbQBhAGwAYQAgAFUASQD7ACAAAAD6AAQAAABPAHMAbQBhAAEGAAAARQBiAHIAaQBtAGEA+wAiAAAA+gAEAAAAUABoAGEAZwABBwAAAFAAaABhAGcAcwBwAGEA+wA2AAAA+gAEAAAAUwB5AHIAbgABEQAAAEUAcwB0AHIAYQBuAGcAZQBsAG8AIABFAGQAZQBzAHMAYQD7ADYAAAD6AAQAAABTAHkAcgBqAAERAAAARQBzAHQAcgBhAG4AZwBlAGwAbwAgAEUAZABlAHMAcwBhAPsANgAAAPoABAAAAFMAeQByAGUAAREAAABFAHMAdAByAGEAbgBnAGUAbABvACAARQBkAGUAcwBzAGEA+wAoAAAA+gAEAAAAUwBvAHIAYQABCgAAAE4AaQByAG0AYQBsAGEAIABVAEkA+wA0AAAA+gAEAAAAVABhAGwAZQABEAAAAE0AaQBjAHIAbwBzAG8AZgB0ACAAVABhAGkAIABMAGUA+wA+AAAA+gAEAAAAVABhAGwAdQABFQAAAE0AaQBjAHIAbwBzAG8AZgB0ACAATgBlAHcAIABUAGEAaQAgAEwAdQBlAPsAIAAAAPoABAAAAFQAZgBuAGcAAQYAAABFAGIAcgBpAG0AYQD7AZ0IAAAAQgAAAPoBFAAAADAAMgAwAEYAMAA1ADAAMgAwADIAMAAyADAANAAwADMAMAAyADAANAADBwAAAEMAYQBsAGkAYgByAGkA+wERAAAA+gMFAAAAQQByAGkAYQBsAPsCEQAAAPoDBQAAAEEAcgBpAGEAbAD7AyUIAAAvAAAAAB4AAAD6AAQAAABKAHAAYQBuAAEFAAAAOG60MLcwwzCvMPsAHgAAAPoABAAAAEgAYQBuAGcAAQUAAADRuUDHIADgrBW1+wAYAAAA+gAEAAAASABhAG4AcwABAgAAAEl7v377ABwAAAD6AAQAAABIAGEAbgB0AAEEAAAAsGUwfQ5m1Jr7AB4AAAD6AAQAAABBAHIAYQBiAAEFAAAAQQByAGkAYQBsAPsAHgAAAPoABAAAAEgAZQBiAHIAAQUAAABBAHIAaQBhAGwA+wAgAAAA+gAEAAAAVABoAGEAaQABBgAAAFQAYQBoAG8AbQBhAPsAHgAAAPoABAAAAEUAdABoAGkAAQUAAABOAHkAYQBsAGEA+wAgAAAA+gAEAAAAQgBlAG4AZwABBgAAAFYAcgBpAG4AZABhAPsAIAAAAPoABAAAAEcAdQBqAHIAAQYAAABTAGgAcgB1AHQAaQD7ACQAAAD6AAQAAABLAGgAbQByAAEIAAAARABhAHUAbgBQAGUAbgBoAPsAHgAAAPoABAAAAEsAbgBkAGEAAQUAAABUAHUAbgBnAGEA+wAeAAAA+gAEAAAARwB1AHIAdQABBQAAAFIAYQBhAHYAaQD7ACQAAAD6AAQAAABDAGEAbgBzAAEIAAAARQB1AHAAaABlAG0AaQBhAPsAPAAAAPoABAAAAEMAaABlAHIAARQAAABQAGwAYQBuAHQAYQBnAGUAbgBlAHQAIABDAGgAZQByAG8AawBlAGUA+wA4AAAA+gAEAAAAWQBpAGkAaQABEgAAAE0AaQBjAHIAbwBzAG8AZgB0ACAAWQBpACAAQgBhAGkAdABpAPsAOAAAAPoABAAAAFQAaQBiAHQAARIAAABNAGkAYwByAG8AcwBvAGYAdAAgAEgAaQBtAGEAbABhAHkAYQD7ACIAAAD6AAQAAABUAGgAYQBhAAEHAAAATQBWACAAQgBvAGwAaQD7ACAAAAD6AAQAAABEAGUAdgBhAAEGAAAATQBhAG4AZwBhAGwA+wAiAAAA+gAEAAAAVABlAGwAdQABBwAAAEcAYQB1AHQAYQBtAGkA+wAeAAAA+gAEAAAAVABhAG0AbAABBQAAAEwAYQB0AGgAYQD7ADYAAAD6AAQAAABTAHkAcgBjAAERAAAARQBzAHQAcgBhAG4AZwBlAGwAbwAgAEUAZABlAHMAcwBhAPsAIgAAAPoABAAAAE8AcgB5AGEAAQcAAABLAGEAbABpAG4AZwBhAPsAIgAAAPoABAAAAE0AbAB5AG0AAQcAAABLAGEAcgB0AGkAawBhAPsAJgAAAPoABAAAAEwAYQBvAG8AAQkAAABEAG8AawBDAGgAYQBtAHAAYQD7ACwAAAD6AAQAAABTAGkAbgBoAAEMAAAASQBzAGsAbwBvAGwAYQAgAFAAbwB0AGEA+wAyAAAA+gAEAAAATQBvAG4AZwABDwAAAE0AbwBuAGcAbwBsAGkAYQBuACAAQgBhAGkAdABpAPsAHgAAAPoABAAAAFYAaQBlAHQAAQUAAABBAHIAaQBhAGwA+wA0AAAA+gAEAAAAVQBpAGcAaAABEAAAAE0AaQBjAHIAbwBzAG8AZgB0ACAAVQBpAGcAaAB1AHIA+wAiAAAA+gAEAAAARwBlAG8AcgABBwAAAFMAeQBsAGYAYQBlAG4A+wAeAAAA+gAEAAAAQQByAG0AbgABBQAAAEEAcgBpAGEAbAD7AC4AAAD6AAQAAABCAHUAZwBpAAENAAAATABlAGUAbABhAHcAYQBkAGUAZQAgAFUASQD7ADgAAAD6AAQAAABCAG8AcABvAAESAAAATQBpAGMAcgBvAHMAbwBmAHQAIABKAGgAZQBuAGcASABlAGkA+wAuAAAA+gAEAAAASgBhAHYAYQABDQAAAEoAYQB2AGEAbgBlAHMAZQAgAFQAZQB4AHQA+wAkAAAA+gAEAAAATABpAHMAdQABCAAAAFMAZQBnAG8AZQAgAFUASQD7ACwAAAD6AAQAAABNAHkAbQByAAEMAAAATQB5AGEAbgBtAGEAcgAgAFQAZQB4AHQA+wAgAAAA+gAEAAAATgBrAG8AbwABBgAAAEUAYgByAGkAbQBhAPsAKAAAAPoABAAAAE8AbABjAGsAAQoAAABOAGkAcgBtAGEAbABhACAAVQBJAPsAIAAAAPoABAAAAE8AcwBtAGEAAQYAAABFAGIAcgBpAG0AYQD7ACIAAAD6AAQAAABQAGgAYQBnAAEHAAAAUABoAGEAZwBzAHAAYQD7ADYAAAD6AAQAAABTAHkAcgBuAAERAAAARQBzAHQAcgBhAG4AZwBlAGwAbwAgAEUAZABlAHMAcwBhAPsANgAAAPoABAAAAFMAeQByAGoAAREAAABFAHMAdAByAGEAbgBnAGUAbABvACAARQBkAGUAcwBzAGEA+wA2AAAA+gAEAAAAUwB5AHIAZQABEQAAAEUAcwB0AHIAYQBuAGcAZQBsAG8AIABFAGQAZQBzAHMAYQD7ACgAAAD6AAQAAABTAG8AcgBhAAEKAAAATgBpAHIAbQBhAGwAYQAgAFUASQD7ADQAAAD6AAQAAABUAGEAbABlAAEQAAAATQBpAGMAcgBvAHMAbwBmAHQAIABUAGEAaQAgAEwAZQD7AD4AAAD6AAQAAABUAGEAbAB1AAEVAAAATQBpAGMAcgBvAHMAbwBmAHQAIABOAGUAdwAgAFQAYQBpACAATAB1AGUA+wAgAAAA+gAEAAAAVABmAG4AZwABBgAAAEUAYgByAGkAbQBhAPsCxQYAAPoABgAAAE8AZgBmAGkAYwBlAPsAdgMAAAMAAAAAEwAAAAMOAAAAAAkAAAADBAAAAPoADvsApgEAAAShAQAA+gEB+wCKAQAAAwAAAAB9AAAA+gAAAAAA+wBxAAAAA2wAAAD6AA77AGMAAAADAAAAARwAAAD6AAgAAABhADoAbAB1AG0ATQBvAGQAAbCtAQD7ARwAAAD6AAgAAABhADoAcwBhAHQATQBvAGQAASiaAQD7ARgAAAD6AAYAAABhADoAdABpAG4AdAABuAUBAPsAfQAAAPoAUMMAAPsAcQAAAANsAAAA+gAO+wBjAAAAAwAAAAEcAAAA+gAIAAAAYQA6AGwAdQBtAE0AbwBkAAEomgEA+wEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAFYkgEA+wEYAAAA+gAGAAAAYQA6AHQAaQBuAHQAASgdAQD7AH0AAAD6AKCGAQD7AHEAAAADbAAAAPoADvsAYwAAAAMAAAABHAAAAPoACAAAAGEAOgBsAHUAbQBNAG8AZAABKJoBAPsBHAAAAPoACAAAAGEAOgBzAGEAdABNAG8AZAAByKkBAPsBGAAAAPoABgAAAGEAOgB0AGkAbgB0AAFoPAEA+wEJAAAA+gDAZVIAAQD7AKoBAAAEpQEAAPoBAfsAjgEAAAMAAAAAfQAAAPoAAAAAAPsAcQAAAANsAAAA+gAO+wBjAAAAAwAAAAEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAFYkgEA+wEcAAAA+gAIAAAAYQA6AGwAdQBtAE0AbwBkAAFwjgEA+wEYAAAA+gAGAAAAYQA6AHQAaQBuAHQAATBvAQD7AH8AAAD6AFDDAAD7AHMAAAADbgAAAPoADvsAZQAAAAMAAAABHAAAAPoACAAAAGEAOgBzAGEAdABNAG8AZAABsK0BAPsBHAAAAPoACAAAAGEAOgBsAHUAbQBNAG8AZAABoIYBAPsBGgAAAPoABwAAAGEAOgBzAGgAYQBkAGUAAaCGAQD7AH8AAAD6AKCGAQD7AHMAAAADbgAAAPoADvsAZQAAAAMAAAABHAAAAPoACAAAAGEAOgBsAHUAbQBNAG8AZAABuIIBAPsBHAAAAPoACAAAAGEAOgBzAGEAdABNAG8AZAABwNQBAPsBGgAAAPoABwAAAGEAOgBzAGgAYQBkAGUAAbAwAQD7AQkAAAD6AMBlUgABAPsB0AAAAAMAAAAAPwAAAPoAAAEAAgEDzhgAAPsAEwAAAAMOAAAAAAkAAAADBAAAAPoADvsBBAAAAPoABvsCDAAAAPoAAwAAAAEANQwA+wA/AAAA+gAAAQACAQOcMQAA+wATAAAAAw4AAAAACQAAAAMEAAAA+gAO+wEEAAAA+gAG+wIMAAAA+gADAAAAAQA1DAD7AD8AAAD6AAABAAIBA2pKAAD7ABMAAAADDgAAAAAJAAAAAwQAAAD6AA77AQQAAAD6AAb7AgwAAAD6AAMAAAABADUMAPsCEwAAAAMAAAAAAAAAAAAAAAAAAAAAAAADRQIAAAMAAAAAEwAAAAMOAAAAAAkAAAADBAAAAPoADvsAWgAAAANVAAAAAFAAAAADSwAAAPoADvsAQgAAAAIAAAABGAAAAPoABgAAAGEAOgB0AGkAbgB0AAEYcwEA+wEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAEQmAIA+wDFAQAABMABAAD6AQH7AKkBAAADAAAAAJwAAAD6AAAAAAD7AJAAAAADiwAAAPoADvsAggAAAAQAAAABGAAAAPoABgAAAGEAOgB0AGkAbgB0AAFIawEA+wEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAHwSQIA+wEaAAAA+gAHAAAAYQA6AHMAaABhAGQAZQAB0H4BAPsBHAAAAPoACAAAAGEAOgBsAHUAbQBNAG8AZAABcI4BAPsAnAAAAPoAUMMAAPsAkAAAAAOLAAAA+gAO+wCCAAAABAAAAAEYAAAA+gAGAAAAYQA6AHQAaQBuAHQAAdB+AQD7ARwAAAD6AAgAAABhADoAcwBhAHQATQBvAGQAAdD7AQD7ARoAAAD6AAcAAABhADoAcwBoAGEAZABlAAGQXwEA+wEcAAAA+gAIAAAAYQA6AGwAdQBtAE0AbwBkAAFYkgEA+wBeAAAA+gCghgEA+wBSAAAAA00AAAD6AA77AEQAAAACAAAAARoAAAD6AAcAAABhADoAcwBoAGEAZABlAAEY9gAA+wEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAHA1AEA+wEJAAAA+gDAZVIAAQD7BAQAAAAAAAAAAAAAAA==", 'Editor.xlsx':"UEsDBBQABgAIAAAAIQBzoivs8gEAAPENAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADMl89y2jAQxu+d6Tt4dO1gQdqmaQeTA22PbaYhDyCkBWuQJY20ofD2XQtCOx0HQuxMfPF/fd9v5dWOdny9qUy2hhC1swUb5UOWgZVOabss2N3s++CKZRGFVcI4CwXbQmTXk7dvxrOth5jRaBsLViL6L5xHWUIlYu48WHqzcKESSLdhyb2QK7EEfjEcXnLpLILFAdYabDL+CgtxbzD7tqHHO5K5tiyb7r6rrQomvDdaCiRQvrbqP5OBWyy0BOXkfUXSefQBhIolAFYm90GTY7gFRAosMt7oGcDE80z3UeU0MoHFUvv4jkJ/xKF+83hU+3E/6XcErSC7EQF/iIpi5xvDf7uwmju3yo+LnDs1aYrySmj7wH3EP30ceTqNOgap40vCZ3Jc9ITjfU84PrwSh9drh1NBJYD/vaSVra2u12zX6dLkcSJzGgl/gXRBxZfD2xucYEOqnMDTsT1KkjlhGHFrIHZdTJLoKedSBFC3SDV52TnAv9pPSYeZmNM07DI2Xb9IIiTlZ+F0Xd3SGng+TtdFriVO17WuJc7HjpdTS5zLfuF86hfOVb9wPvcLZzR8LR4pjJyWtB/tGOCge6wOU/9wE5yP1KIEOB/goR+oRw88CUFADYeOoGlnfXCk/qZ1xFA3UApUgzdPDdvkDwAAAP//AwBQSwMEFAAGAAgAAAAhALVVMCP0AAAATAIAAAsACAJfcmVscy8ucmVscyCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACskk1PwzAMhu9I/IfI99XdkBBCS3dBSLshVH6ASdwPtY2jJBvdvyccEFQagwNHf71+/Mrb3TyN6sgh9uI0rIsSFDsjtnethpf6cXUHKiZylkZxrOHEEXbV9dX2mUdKeSh2vY8qq7iooUvJ3yNG0/FEsRDPLlcaCROlHIYWPZmBWsZNWd5i+K4B1UJT7a2GsLc3oOqTz5t/15am6Q0/iDlM7NKZFchzYmfZrnzIbCH1+RpVU2g5abBinnI6InlfZGzA80SbvxP9fC1OnMhSIjQS+DLPR8cloPV/WrQ08cudecQ3CcOryPDJgosfqN4BAAD//wMAUEsDBBQABgAIAAAAIQCuTZN6pgMAAMcIAAAPAAAAeGwvd29ya2Jvb2sueG1srFVdb+I4FH1faf9DlNdVGjvEgUSFERAyW2lmVbWdzgvSyCSGWCRx1nEKVTX/fa/NVyijUaezCGz8dXzuvedeX3/YloX1xGTDRTW08RWyLValIuPVamh/eUicgW01ilYZLUTFhvYza+wPoz//uN4IuV4IsbYAoGqGdq5UHbluk+aspM2VqFkFK0shS6pgKFduU0tGsyZnTJWF6yEUuCXllb1DiORbMMRyyVMWi7QtWaV2IJIVVAH9Jud1c0Ar07fAlVSu29pJRVkDxIIXXD0bUNsq0+hmVQlJFwWYvcXE2kr4BvDDCBrvcBMsXVxV8lSKRizVFUC7O9IX9mPkYnzmgu2lD96G5LuSPXEdwyMrGbyTVXDECk5gGP02GgZpGa1E4Lx3opEjN88eXS95wR530rVoXf9DSx2pwrYK2qhZxhXLhnYfhmLDziZkW09aXsCq5xGvb7ujo5xvpZWxJW0L9QBCPsBDZgRB6BG9E4QxLhSTFVVsKioFOtzb9buaM9jTXIDCrTv2b8slg8QCfYGt0NI0oovmlqrcamUxtKfR/EsD5s/vaRVzthLzmDVrJeq5AnPnHX3Sy2T4BYXSVJvtgt07brv/r30AFGV0UOGtkhb8v4k/QSTu6RPEBaKf7dP2BhyPe9+qVEb42wtBs3BGesjBxCOOP4gnzmRAPIeE3hSF4ThGePAdjJFBlAraqnwfcg09tH3yg6XPdHtYwShqeXai8YL2H0f3r5rD2ndtsC5uj5xtmpM49NDafuVVJjZD28EeGPV8PtyYxa88UzmoK0Q+bNnN/c34KgfGmAz0JCSBZja0XxCY6SUkdsYzf+r4fh87YzLznAQnSeIF2B97sWHkdiiZMgrUTG9VRvofWcUkBf2bSePlAMqUjPQ18ibD2qzugft2oYSiRWP9ZX2UUOQfzOgMoNcB8F4DxFTRhLMig7rbudTvnOldXKofANzd39ntG6kdjEtpkUJC6s5YM8DIC/WOmj8JNaXw1oALTgPYCVNmawfTZK17doRt1adGja6hh1ziEATso3Efhb6DZj2twtBzBn7Pc6Z+7M1IfxbPJkSrUD920f9R8k1KR4dXVFuZU6keJE3X8PbeseWENpA2JmYu8OySnZDBBPWAog8acXwcImcyCXyHxEmP9HE8nZHkRFa7b/nOgjtwzWlGVQvFSNchM450m+xnj5PL3cRejWcVJrqLddz2p3+2MXk0EvjhPTs/6NZEzz14b/QfAAAA//8DAFBLAwQUAAYACAAAACEAnwCXJTQBAACNBQAAGgAIAXhsL19yZWxzL3dvcmtib29rLnhtbC5yZWxzIKIEASigAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvJTPboMwDMbvk/YOKPcRoF33R4UeWk3qdeseIAqGRIUkSrJuvP08pJUiVekFcUGynXzfL7bMevPTNtEJrJNa5SSNExKB4rqUqs7J5+Ht4ZlEzjNVskYryEkHjmyK+7v1OzTM4yUnpHERqiiXE+G9eaXUcQEtc7E2oLBSadsyj6GtqWH8yGqgWZKsqL3UIMVIM9qXObH7Ev0PnUHn29q6qiSHneZfLSh/xYI6wSyUH97i8xwKM1uDz8koHSMxoddhFlPCfGt7dALADyDnlENUrCxCME+TdsZ3DY52aEkfh+yzmXuRhWDSmWHSEMxqShiPqwTDXPqQ9t8gw+OUDEaetN8y3OodVFLJv70fkIYqvXYwiLmceW7L0NxepoThrOFbweRFo86pfwg6+okWvwAAAP//AwBQSwMEFAAGAAgAAAAhAMLj2hWSBwAA6CAAABgAAAB4bC93b3Jrc2hlZXRzL3NoZWV0MS54bWycWuuPozYQ/16p/wOlX1qJBWxeyWqzFYSEjdTH6bp395klZIMuCSmwj1PV/71j87QxCdzqbknsn8cz4/G82Lvf3o8H6TXO8iQ9LWSk6rIUn6J0m5yeF/Knx/XNTJbyIjxtw0N6ihfytziXf7v/8Ye7tzT7mu/juJCAwilfyPuiON9qWh7t42OYq+k5PsHMLs2OYQFfs2ctP2dxuKWLjgcN67qtHcPkJJcUbrMxNNLdLoliP41ejvGpKIlk8SEsgP98n5zzmtoxGkPuGGZfX843UXo8A4mn5JAU3yhRWTpGt5vnU5qFTweQ+x2ZYSS9Z/APw3+j3oaO93Y6JlGW5umuUIGyVvLcF3+uzbUwaij15R9FBplaFr8m5ABbUvj7WEJWQwu3xIzvJGY3xIi6stuXZLuQ/52vZoblOfqN45voxvQM78ZzHOtmZaw9y3HXs5WD/pPv77YJnDCRSsri3UJ28e3GMGXt/o4a0Ockfss7n6UifPo7PsRREcMmSJaIfT6l6VcC3MCQDiRzCiAkw6hIXuNlfDgs5A1ywMb/obuQz7CF1uzR/Vzvt6Y2/SGTtvEufDkUH9O3hzh53hewsQWSElO53X7z4zwCG4WtVWwRqlF6ABLwWzom5LKBjYXvJbPJttjDJ0NFpm4DWnqK82KdEIqyFL3kRXr8UmEqSiUNOCVKA55v1byt4pmFrClU4HgoFXhWVOzRHJjVWnhWa4HKSO5BTrovPKu14yUHDulaeNaSo+mSw8lTKvCsqVjqzLJMe+aM5wV8JKUCz5oK7vBy4fzm1Up4NitFB66VtkPN0g+L8P4uS98k8Bhw8Pk5JP4X3QIRse2B0RFsAGCwqBxuwus9mt1pr2DdUTX5wEzO2clNdxIbzaQGXDSswLmPZsUlYGrcLUMmu6cngFgsJDBAlN19sHr8sPn816PvPrq/uIayNH6903ZUSMNUkc0JCnRh07i/1DMU36qX/vyn5nJKGFzozpRVu/Djav2TWENwR8ZriIA5DXGSeABp1Mcd57I7hzAric9MOpxSTaIZSngfZvFWLv1vQPhJqB9l9W0qS7NWmo1VvbUOanQP5V4idZuKZwvVzZgVXMPxSiPghVweVGnnnHReicD0DhicQpfMpKMiQ+/8cIL5XbADnpubDyyBcVqK5DfaQiLrBKoD1mkpvnNdXeAPx6uLgFl18VJ4JaTW12WVLLtgbKqcF/G70zbkmrzGbIHGbMVtrpZAyw9Ac1BfXuMImNvMmBeJ/WMdqEvAnL54+yohpb4c3LOKZXdecF387rzIQAJHoCRHcRvTEFoVUB3QEui3MchhLZEqYHSYmQldq3vZK8MOAxyCcPPrdg/Bb/w5zssQ2Ilk1Fd55biBEecSyXg/zrj4YpwBjsQSuZbijZAIQS02XiSKZm0T61xEJZihgBHApEhIWb4oZEVS4N5dsCykXz84BBnuBDEJmhOTPy2g2JfEVORVmBeNNCJfQlgZODJHkT3Xlz67v39aNTSG7wuakpe5FM0JxYXsADB9oSxF/gKFQsMQ61QZP4empGcBoPu72aCD9FurQca7sZtNyXQCRDMOLo0DhQdJdmhFY1ILdrcpKUIAJZrQzoMMuhzSY1qE7aacL2V3nRRpURn7SgOrMnA+4RVh+IwXMCLbHkx5WZYnBTtaFl/JQAlmMAVlJns5KDvLhdFVszmpm0nxsu6NBM2I6GJ4re9hwzCrkSmBzUUEfTm9rCAD+SU7Cwkmnnd+uLP2GbQowwSA6Ja6CNVu95LokyImIuiFzBQOnN/1KkwpO59ILrlZ1eHM32cA2AZAN/vu+UNRTIZUATVB+YLseFJopWhOdj60VphKdqTO+dKCBYDr5GsyBgDJs95WdIzJ4knxkqJZ3rms3KsgDes6dzBLHoC5y+ozAIxVg4/IBDDYedgws0PdBTwpolL0lcqmwowsbRi0oLZh5kXFDQD6lxXZioea1F1QL2wI3YGcBBa7qE0kh/sOeFJrhqKvXPUKU+oOGyrnupbMPLQ1zZ61l92dRvlz/n4DBYG6HGXZqktQPm3IxkPqAu+A24T0grom9Wlw2ahhPGPPO5SY6oph1eYq32VFpLmDJtfO8RkAmB/qXTFREoVmIHLjEAVWuSF0B/SFdVjcVtAX9DWpRUO629eK6AozXEUzAFEZzQCEdTQgBAY2hys1a6Jnv6uzIYSHFIZAYW0xfUFhU0JvgMtCste2ZZuvkyKaQdDX2q8CTK//KqwZdaXNvYzhLhrL/6SoZpRVIBNV+OYoYGgLmLuLy3qcu0B+Pc45olU9zsm+Jjy0MY1vojYc1vnrQ29k0x1hlTEp1hkEfTkrrSCVt73S2Fw26Jp3n13PaXrVw68ZPJu5soJ2AxNUSBdfX7hGGTO63d1eu7LCYPqWjNQNy2aEWINhX2nq9tavmPX9wL9m5i8U4PDysu1zXJe1jBiMrHyrkVIkr4CoZFdPtRuDruuBRbONpBWzs0gnTLxj29ylAZRvWMtXWefwOf4jzJ6TUy4d4h1cKl2FujIrX6nSz0V6pqPknVxawNvQ+tse/qIghmPWVVDVLk2L+gt5i9v8jcL9/wAAAP//AwBQSwMEFAAGAAgAAAAhAFgcMVXpCAAAgywAABgAAAB4bC93b3Jrc2hlZXRzL3NoZWV0Mi54bWycWm1vo0gS/r7S/gcfux/uJAdDA36JkqwMOM5Id7rRaG73M7FxgsY2XiDJjE7336+6aXBXNw30RjOxQz1UV1dX11P9cvfb99Nx8p4WZZaf7y3XdqxJet7l++z8cm/95+vjzdKalFVy3ifH/JzeWz/S0vrt4eef7j7y4lv5mqbVBDScy3vrtaout7NZuXtNT0lp55f0DJJDXpySCv4sXmblpUiTPXvpdJwRx5nPTkl2tmoNt8UYHfnhkO3SON+9ndJzVSsp0mNSgf3la3YpG22n3Rh1p6T49na52eWnC6h4zo5Z9YMptSan3e2nl3NeJM9H6Pd31092k+8F/CPw32uaYc+Vlk7ZrsjL/FDZoHlW26x2fzVbzZJdq0nt/yg1rj8r0veMDuBVFflrJrlBq4tclXl/Udm8VUbdVdy+Zft767+xG22ix3BxE6423o0frJyblRMEN4+h4zpBHAdkGf7PerjbZzDCtFeTIj3cW2vv9ilYWrOHOxZAv2fpRyl8n1T55Z/poYrS45GCF9aERuhznn+j0E/QsgNKy/SY7misTBL4eE9r+BPxIcr/ZO3Q79DIrG1F/N60+Mii+nMx2aeH5O1Yfck/ntLs5bWCKRRAX2mw3O5/xGm5gyiFpm0SUK27/Agq4PfklNHpBlGWfGefH9m+eoVvnu36zhzQk+e0rB4zqtGa7N7KKj/9wTFcU60DxonpgM9Gx9wmy8ANTLTAADEt8Mm1zEdbAL5j74LNjQWuuQUwYEwLHTjeT9/2SbBYutQbPR6ADMXehM/mzaD1ovrerB4ENr5xUiUPd0X+MYHJB30vLwlNZe4tWNE9iDB6FLumYDY0MEAlBNb7g+vfzd4hWHYcEnVAWsQM2mwbpsE3umEKxg07uN1QRRDJMkC0Zi+xLBZlrvTiBgkX+M2tKCRed1dhJMd3FcCtmVJjoShzXal/tJV7i9TDcrWEjVyMhfZCGraNKCdzkDvCj+SQbW1GCi0dHrabr58//f7vr/H66/rva2+6Dv5xNzvQ0Pjly+bxb90OgWk22iEhgK/hJg17RDW1nXbt1VwaWCQntjK2opz4tiMFxrZuvKur/nS9HNFVmFPjuwrgtqsraXipIqGnjjSCsSQnUuxsRDkhtncNHzQtaeUzeloC+Do0UsiFSCgHK22m6Q3x7EAaNlEM7ODLU1KUe3N7dZWjzqxMnA9gfZxRTa33iT2X5xeSu7YvxdFGlEOcCZMXGexCJTre/RR9NVka8IjpamxeQOzLNiPAnNiOBNgggOuB2dfphc0GHjYwm6L7aSR0OzDXIMGNG1GY20FQUtIIKUZHFRESyvkkxlJpSB7bxmlVRBl1i/A6/nCNuJKhGbFreYRDCKupqB2R8iRWnmzpE1DZlQxdMl27/oh0SAtFg0ipaQkRsJRJQqZRx3uRJFWIL0aAQeajaJ0LgPvcMYzgmrDfmqHvLeQCufbhGE79KgtGGKDSYIwAmAfxXBPpDJJwf7no1pwj2i6xWsghrekyrUUyQOa1GAF6iM0VmW3Y9JphxEQg58+QaaSR18zmSHkSi0+wJ0VuGjan5o/+iYA4RuHUyEUcpZJqjAA9rEpEkho0naEHAphjeBSo9BphgMqvMQL0ECyBdWWbf4Ztp2icSl25Jmcae2g2QoAOmo0RoI9mich0w8YPr9ZCplGiYqkWe6KYa5VxLWxQOLO9hKZuHDZNXa0JpQVjxpBq1JIwEiokjKVyIcxMpX1upi3d/FCXMgTyOVk1lLaALQrN6o4u1A1CqqY00adKRDWLsTavsCbETBMrT57gSXcnPKfpxBx2OnWdEElpePzqZVNvOiJo6SWVlpEkVXkZAXp4GUehET0RlZ5cmVo5Rk+tGNBBrQjQQ63EiJ8YGmdVmVo5RE+tMkChVgTooVZixGUMjZMqkRazIcfUtntSfR5h6QJW9SvhR15LInTPPPaMaI2hJWqQV8AcIxQIypNYfIJi2TNiKoaWWFaulDmmdqq66I6QvGPVHSNAT4HgicvBwWTC0AMFAsfoCwQM6CgQEKCnQPCMOJahpViW4i/kmCaWgUfEvTU5MSI02CnN6hjJexK6J64Zh8egJmTE9DItMY19hQ4CdBU6CNBX6HhGbMTQA/sJXRjNfgI9RRnP5wwtNS7vJ1CMtpRBQrmU2SKpsD/AaqQn/K6mNPOMiIWh+3cPOERMa81+XLuvQTGahbK3mK49zUKZd2upljLW5wKOQK3pr+tfvfnU+pK+0KO/qbVJygo+tul5nxb0S1Ycrabg8fTcgHOtEYF5IxZjHNO9Gx9JUqX62VJAj/t8r3urhbtvNd59f8B5m+i+MP9x9d5cm6vwSY4RcfoUPZDuOUZfdWEAqrqwaUYk6tfLvb79Cg7RF1UyQCiqsGVGHOnX26FiflZqJo7R1ExYOnJe+EZkyNADJRHHCLlDfII9ZMRgfs1gvUsSjtEWQEiOCyBsmdGKz+/YxFROL9H5XMcGCFfSxp1wwIBNM2JOv16jobCSyxeOGVm+IDQqX7CZRpzk1/QCs/O6DyGvGLowUle2FNNqUMgUSV0NmfpGTMHQA8UBxWiLAyRU9jmwVDmZ1nOIv5yGfru3gQ9qaw4B1epuAry2DtrdhJ6lVGDECAzdX3JwiCa3YSnktr4KO0Zo3In6TIYCNOTrr6ZRv+Pg5Q7HrcBx7ohtmMCIrxh6IOFyzMjpi9Adqw8kx6sP7rt6knadEQXONNb5DiWHwCjxM/RA9d+FkZMDxeiTA5LqkkNgxAsMPZAcKEabHJBQudnQqm9q8kflyZZr6BwtuN8QzPvKTHhZjfTAn4ZBewUEnzrjQTYiqkAlKuVujLjfqGwZcQV8GgykiC1FazJAEIBfFr1+mXf5JZhGV7/gxTH2i9HqM6i3MHuPqThmbAZA90SU/Yct1aZzzRxcM+YEFG40GqywGXrgEIZj6j523HWIEKDL/fXVx/pq3CV5Sf+VFC/ZuZwc4XolvcoI3S7qu47sO1y8ZE9hfj7nFVxTbP56hcu+KZyoOzYMyiHPq+YPer2yvT788H8AAAD//wMAUEsDBBQABgAIAAAAIQCNh1nIYgQAACYPAAAYAAAAeGwvd29ya3NoZWV0cy9zaGVldDMueG1spFddb+pGEH2v1P/gui+tZPz9iYArgzEl0lWjW3r77Jg1WLG91GsgUdX/fmdtbOzFoeYWJVmTmT0zO+fMMkw+vaUJd0I5iXE25RVR5jmUhXgbZ7sp/+fGH9k8R4og2wYJztCUf0eE/zT78YfJGeevZI9QwQFCRqb8vigOY0ki4R6lARHxAWVgiXCeBgW8zXcSOeQo2Jab0kRSZdmU0iDO+AphnA/BwFEUh8jD4TFFWVGB5CgJCsif7OMDqdHScAhcGuSvx8MoxOkBIF7iJC7eS1CeS8PxepfhPHhJ4Nxvih6E3FsOPyr8anWY8v83kdI4zDHBUSECslTlfHt8R3KkIGyQbs8/CEbRpRydYkrgFUr9vpQUo8FSr2Dad4KZDRgtVz4+xtsp/49h2YZhy97ImS/Uke747sjVHG+keAvZ1nXP1xTvX3422cbAMD0Vl6Noyrva+EmReWk2KQX0NUZn0nrmqB5fMH6lhjXEkQGCoASFVBlcAMsJLVCSTPm1CZL+uwSFRwCUGsT2c43ulwp+zrktioJjUnzB599QvNsX0C4GnIsKY7x99xAJQZEQWFQNihriBCDgL5fGtLVAUcFbuZ7jbbGHJ01UdNkEb+4FkcKPKSLPhUdS4PSvi88FqcIATkoMWGsMU1RtQzEeQQEyShRYaxRF1FXgRXkgF/2CAmuNAmkNPAgcuUwB1v+RAvBYosBao1iDUwDPcjOs11o+XAXnggJrjWK3GLnDJWj5Igh4aNK/u1eqJFWq1QuKYDbJ8ZmDawOYJIeAXsLKmOL2axLESJ3n1LtUGuiNQJecZooxkU6g/fDisgaXq9HuGp/aRlVrjBIk02QEqnggI/BuwjHRvLZNUbup+G2janaNq47RYk6ow8Gj2Wq5eV5//X3juRv3F1cX5savEykqS6LposIgPlWI6HbrHLbq9dafvyz9n/rLAnofXhaXejNEMRnNweVKlN4946JtVNm63tu5vLdzbfSUzhBWzfkV1RYtJpenCrGndK4mLIaUjl7agzXuUu+yL5rqMAKYVx5qqX+NKeuiY9RFi7F7HbslKprcel1bouy3ZcfZEG3Nab0YZL/tbMEHBAO26thl0WhjOUzR4dPtVuSmwG9wESTcH8eUwxH3nMM8xd+VPcSEMvbJ3hRcc4Ds4Y59gDvq3eWOrcK8cqnJu1//RccZuprthLZd1UWn20XLjlkTHZaxtt2EAZplrG03bPjIZ24iq4ckiyFpgUlx5aivvyDKBxxZgt/caneuJjrnD+8v6s1wxDZY5VJxZKk3Sl607aYtsuL1Onb1pq7Ltt1wRIZVv21Wei7zVcehp6Rru4cYW+CH9w1E+IATW/CG3HkwVQznZO305Ks1+f63hCBaf7oLTXCtAW1OR4/h+dJp/qOAurB07gWsJvZqBjoEO/Q5yHdxRrgEReUEDt2QVyO6LNLOwAc6l1t00sYFTNf1uz18H0UwE8kiDDURxkX9hn4raL7hzr4BAAD//wMAUEsDBBQABgAIAAAAIQANqnKCQgQAAM8PAAAYAAAAeGwvd29ya3NoZWV0cy9zaGVldDQueG1snJfbbuM2EIbvC/QdBN2bEnVybNheJD41FwWK7m57zci0LUQSVYp2ki367h3qSNJWYC+QxDF/znA+zZAazr68Z6l1prxMWD63MXJti+Yx2yX5YW5//7YZPdhWKUi+IynL6dz+oKX9ZfHrL7M3xl/LI6XCAg95ObePQhRTxynjI81IiVhBc1D2jGdEwFd+cMqCU7KrjLLU8Vw3cjKS5HbtYcpv8cH2+ySmKxafMpqL2gmnKREQf3lMirL1lsW3uMsIfz0Vo5hlBbh4SdJEfFRObSuLp8+HnHHykgL3Ow5IbL1z+PHg12+XqcYvVsqSmLOS7QUCz04d8yX+xJk4JO48XfLf5AYHDqfnRCawd+X9XEg47Hx5vTP/J51FnTP5uPj0lOzm9r9RuPSflo/+KJoE41HgR+7ocR2GIxx4XuCuNusIb/6zF7NdAhmWVBan+7n96E232LedxawqoL8S+lYq/1uyHl8Ye5XCM6zjgouSpjSWlWER+DjTJU1T6QlK+h/DqdN5Xcz6/9sVNlUV/8GtHd2TUyr+ZG+/0eRwFLBlQmCTxTHdfaxoGUNVwuLIC2WoMUvBBfy1sgS2VwBVRd6rz7dkJ47SGnkPIQ4jmG/Fp1Kw7O9GkfZO7aCKbUUEWcw4e7OgUCRCQeS2w9PxUACwspwreSGmEh7IeeHOnLP022hPqoZ1balqnq6tZABVGJ1nX5+xVq0DXduoWqhrW1WLOs0B8I4eyul2epjcxTg26FXtwaBXtYlBLwOQ9PKJGk9t7dejxgPbNMNwwhoPY9soLgp6Gw0XyuZ2XJg8iKtqJq6qYYNpJSNoeQ2wdXCdtxk2qmLbzkYDqYVtcDsrTB5kVTWTVdWwsSNWMoKh3IbXWZthjCY9VbX1tp0y7rOu5Ta6hxcmD/KqGjZytFRFs5ZlBEO5jWpe4xFtmmGMPGNDbVsDFA7kFw6r2/MLkwd5Ve2CVxPNBMsQhhI8vg7cDHvIXGnbKJD6/hzTEiz7p5tPapg8CKxqF8CaaO5eGcJQhh+uAzfDPlLqtq7oTvH7ra0BT+4BhskdMDbOiidVNLewZmgCyxCGMjypgQ2TTTuMAvN4bhQXTQa2MIae+fYUy9nDyJpqMuumZllXYQylGcTqXWVit+MeisyTujNB44FMY3wXOMz+BFxVL8A1UzPbVRhD6QbxOngz7iHXPLM7ExT2S2klju9qv+TsT8A11Ty4ddsL8rYLk4jmexlMK3Kjv9q0477ab9R7u5e8/i2hk9/VekG//hm5pl6Qa+pFsX/WgcGy18m7HiwwKkzeLCoTF0X9K60mr28DdfddkAP9nfBDkpdWSvdVpw+vE15fBVwk3zuskP3/GNqIFyagn2+/HeHuS6EddxHEvmdMtF+gz5d+v1JxKqyCFJR/TX7AlRNOMcYTuE9Ul9u5XTAuOEkErDeVNyn+vMPVJaG7ii/+BwAA//8DAFBLAwQUAAYACAAAACEA4Xc8U6kDAAAJCQAAHgAAAHhsL3Bpdm90VGFibGVzL3Bpdm90VGFibGUxLnhtbMRWS2/bOBC+L7D/geBd0cOS/IDlQrYrNECwCJq0PTMSZRNLkQJFJTYW/e87pGT52aDtpRfbHA6/mfnm5fmHXcXRK1UNkyLB/p2HERW5LJjYJPjLc+ZMMGo0EQXhUtAE72mDPyz+/mtes1epn8kLp2taMsE0ACAAE02Ct1rXM9dt8i2tSHMnayrgppSqIhqOauM2taKkaLaU6oq7gefFbkWYwB3CrMp/BqQi6t+2dnJZ1USzF8aZ3lssjKp8dr8RUhn/ErxTB+CdugKuWK5kI0t9B0CuLEuW0yv//NBV9JUZlgBKzVpWJPi/aRR4wWQVO/F6GjjhMgqcZRiETjgO/GU8DZdpNP6OkSAVOPE4EDbCKCfAzT1g+BiRuub7f9rqhaqsoyjBkAYrXkpV3BBnUugr3UeiNVXiSp5ythEVvfHiGyv09hNlm+0RDRwqiCYrUpuMJvgr4S3kHLU1iGnx9VAqMZDMxGdaKtpsDc3DDYTXNjRttexc0baWAJdpWj0qJvQz05xCnYAshzq4gGWiAGctB7LVnJmyA83+9xqcs+eq5ZrVnGaM8iJjHGIHSA8v5lzmUA9QjoqWCU5H3iwbhRiVTDX6E5QdVZ/lm8WwIoNoBUGvYwQryY2Gu+gK3RppUC5b49kYjNj6t2JEdgwsm0+AgXbZyreUw3Pji4l5eDfqBWhnLgHb3JqDNWQPgF7QkkBs5t61z+H7aO3M8p8xdUbKabjnF0dagMz3aIlOaDkyAbQEpxydETYabn6NMFPaNmk2/Sf0vRfTCfvNYq7k23k1+OB+aYpwSKs76Fj1+6saWMx3NrtQAfATvfYV4MKJIYhoo2DiAuxBywBalMU8l/wd86GtmkHHqp+Zt1y/Z773x1Jv/ekFlvEfOwgmewcHioeyNwQN0n4aPrUVkiWCcZBTaDsOozDC6IU0XT/b7jcnA9o3i3tE7pvArp8nvef0XpTydM5a4YMZbD4MKpNnaM2u97u5Y0RQlpci0HrSitVmOsEM7rUuRQ+k0fC4rczKNIzTnX5otP1GrWJmNcTBxyxa+060SmE15NORM/mYhc56mUUrLwpH03UAq8EuzNnOD39vLXlTd9otTsiSH85uLuUtK2g3xQ9jr7cKxF5s6pu7kO5yerqjTeVCwKfRjsNxGvtx6PiTKHVCb71yJmkaOZnnR34Q+d46Co/R1gUMx5+xfPkvwY+7VuwnJCd7WAqmTQDxZuzw4OCscdnmqIO4+Oey+B8AAP//AwBQSwMEFAAGAAgAAAAhAMEXEL5OBwAAxiAAABMAAAB4bC90aGVtZS90aGVtZTEueG1s7FnNixs3FL8X+j8Mc3f8NeOPJd7gz2yT3SRknZQctbbsUVYzMpK8GxMCJTn1UiikpZdCbz2U0kADDb30jwkktOkf0SfN2COt5SSbbEpadg2LR/69p6f3nn5683Tx0r2YekeYC8KSll++UPI9nIzYmCTTln9rOCg0fE9IlIwRZQlu+Qss/Evbn35yEW3JCMfYA/lEbKGWH0k52yoWxQiGkbjAZjiB3yaMx0jCI58Wxxwdg96YFiulUq0YI5L4XoJiUHt9MiEj7A2VSn97qbxP4TGRQg2MKN9XqrElobHjw7JCiIXoUu4dIdryYZ4xOx7ie9L3KBISfmj5Jf3nF7cvFtFWJkTlBllDbqD/MrlMYHxY0XPy6cFq0iAIg1p7pV8DqFzH9ev9Wr+20qcBaDSClaa22DrrlW6QYQ1Q+tWhu1fvVcsW3tBfXbO5HaqPhdegVH+whh8MuuBFC69BKT5cw4edZqdn69egFF9bw9dL7V5Qt/RrUERJcriGLoW1ane52hVkwuiOE94Mg0G9kinPUZANq+xSU0xYIjflWozuMj4AgAJSJEniycUMT9AIsriLKDngxNsl0wgSb4YSJmC4VCkNSlX4rz6B/qYjirYwMqSVXWCJWBtS9nhixMlMtvwroNU3IC+ePXv+8Onzh789f/To+cNfsrm1KktuByVTU+7Vj1///f0X3l+//vDq8Tfp1CfxwsS//PnLl7//8Tr1sOLcFS++ffLy6ZMX333150+PHdrbHB2Y8CGJsfCu4WPvJothgQ778QE/ncQwQsSSQBHodqjuy8gCXlsg6sJ1sO3C2xxYxgW8PL9r2bof8bkkjpmvRrEF3GOMdhh3OuCqmsvw8HCeTN2T87mJu4nQkWvuLkqsAPfnM6BX4lLZjbBl5g2KEommOMHSU7+xQ4wdq7tDiOXXPTLiTLCJ9O4Qr4OI0yVDcmAlUi60Q2KIy8JlIITa8s3eba/DqGvVPXxkI2FbIOowfoip5cbLaC5R7FI5RDE1Hb6LZOQycn/BRyauLyREeoop8/pjLIRL5jqH9RpBvwoM4w77Hl3ENpJLcujSuYsYM5E9dtiNUDxz2kySyMR+Jg4hRZF3g0kXfI/ZO0Q9QxxQsjHctwm2wv1mIrgF5GqalCeI+mXOHbG8jJm9Hxd0grCLZdo8tti1zYkzOzrzqZXauxhTdIzGGHu3PnNY0GEzy+e50VciYJUd7EqsK8jOVfWcYAFlkqpr1ilylwgrZffxlG2wZ29xgngWKIkR36T5GkTdSl045ZxUep2ODk3gNQLlH+SL0ynXBegwkru/SeuNCFlnl3oW7nxdcCt+b7PHYF/ePe2+BBl8ahkg9rf2zRBRa4I8YYYICgwX3YKIFf5cRJ2rWmzulJvYmzYPAxRGVr0Tk+SNxc+Jsif8d8oedwFzBgWPW/H7lDqbKGXnRIGzCfcfLGt6aJ7cwHCSrHPWeVVzXtX4//uqZtNePq9lzmuZ81rG9fb1QWqZvHyByibv8uieT7yx5TMhlO7LBcW7Qnd9BLzRjAcwqNtRuie5agHOIviaNZgs3JQjLeNxJj8nMtqP0AxaQ2XdwJyKTPVUeDMmoGOkh3UrFZ/QrftO83iPjdNOZ7msupqpCwWS+XgpXI1Dl0qm6Fo9796t1Ot+6FR3WZcGKNnTGGFMZhtRdRhRXw5CFF5nhF7ZmVjRdFjRUOqXoVpGceUKMG0VFXjl9uBFveWHQdpBhmYclOdjFae0mbyMrgrOmUZ6kzOpmQFQYi8zII90U9m6cXlqdWmqvUWkLSOMdLONMNIwghfhLDvNlvtZxrqZh9QyT7liuRtyM+qNDxFrRSInuIEmJlPQxDtu+bVqCLcqIzRr+RPoGMPXeAa5I9RbF6JTuHYZSZ5u+HdhlhkXsodElDpck07KBjGRmHuUxC1fLX+VDTTRHKJtK1eAED5a45pAKx+bcRB0O8h4MsEjaYbdGFGeTh+B4VOucP6qxd8drCTZHMK9H42PvQM65zcRpFhYLysHjomAi4Ny6s0xgZuwFZHl+XfiYMpo17yK0jmUjiM6i1B2ophknsI1ia7M0U8rHxhP2ZrBoesuPJiqA/a9T903H9XKcwZp5memxSrq1HST6Yc75A2r8kPUsiqlbv1OLXKuay65DhLVeUq84dR9iwPBMC2fzDJNWbxOw4qzs1HbtDMsCAxP1Db4bXVGOD3xric/yJ3MWnVALOtKnfj6yty81WYHd4E8enB/OKdS6FBCb5cjKPrSG8iUNmCL3JNZjQjfvDknLf9+KWwH3UrYLZQaYb8QVINSoRG2q4V2GFbL/bBc6nUqD+BgkVFcDtPr+gFcYdBFdmmvx9cu7uPlLc2FEYuLTF/MF7Xh+uK+XNl8ce8RIJ37tcqgWW12aoVmtT0oBL1Oo9Ds1jqFXq1b7w163bDRHDzwvSMNDtrVblDrNwq1crdbCGolZX6jWagHlUo7qLcb/aD9ICtjYOUpfWS+APdqu7b/AQAA//8DAFBLAwQUAAYACAAAACEA+VE7WAADAAD5BwAADQAAAHhsL3N0eWxlcy54bWysVVtvmzAUfp+0/2D5nXJpyJIIqJqmSJW2alI7aa8OmMSqL8g2Gem0/75jIAlVp61r+wL2wf7O5fvOIbloBUc7qg1TMsXhWYARlYUqmdyk+Nt97s0wMpbIknAlaYr31OCL7OOHxNg9p3dbSi0CCGlSvLW2Xvi+KbZUEHOmairhS6W0IBa2euObWlNSGndJcD8KgqkvCJO4R1iI4iUgguiHpvYKJWpi2ZpxZvcdFkaiWNxspNJkzSHUNpyQArXhVEeo1QcnnfWZH8EKrYyq7Bng+qqqWEGfhzv35z4pTkiA/DqkMPaD6EnurX4l0sTXdMccfThLKiWtQYVqpAUyIVBXgsWDVD9k7j45Y38qS8wj2hEOlhD7WVIorjSyQB1UrrNIImh/4opwttbMHauIYHzfm6Pu3pZoAxrooKJg4mydAoa7ggEfzui72IaXASDG+THSyAUFhiwBSi3VMocNGtb3+xpCkqC+HqY794/TG032YRSPLvidwyxZK12C2k81OpiyhNPKQqCabbbubVUNz7WyFhSRJSUjGyUJd6n0IMcFpFNQzu9cR3yvnmC3FZKNyIW9KVMMveWKcFhCIsOyx+s3Dn+M1mOPYGMo1v/DorY64r/hNqrZTtllA0Vx48IV+C1opK75/rYRa6rzbk68F+YlZxspaN8GWQIC7rdoqzR7BBKc8h3hnUTa6h3SeLlLxGQ5hObYdt47yoHkkZKe6OioCOTaMsW3rlocGnxgFa0bxi2Tf9AQYJbtSZWBy9i6Cdnp9egFxFnSijTc3h8/pvi0/kJL1ojoeOqrE0IHkeLT+rNrnnDqfNDWfjbQ8fBGjWYp/nm9/DRfXeeRNwuWM29yTmNvHi9XXjy5Wq5W+TyIgqtfozn9hind/VaA1HCyMBxmuR6SHVK8O9lSPNr04XeagLDHsc+jaXAZh4GXnwehN5mSmTebnsdeHofRajpZXsd5PIo9fuU0D/ww7P8LLvh4YZmgnMkDVweGxlYgCbZ/ScI/MOGf/tnZbwAAAP//AwBQSwMEFAAGAAgAAAAhADmjpWlCAQAAYwMAABQAAAB4bC9zaGFyZWRTdHJpbmdzLnhtbHxTy04CMRTdm/gPTfdSZKFiZoYIgdkYY3jEdZ25ME3a3rG9g/L3FjEmtIPLnkfPfbTZ5MtotgfnFdqc3w6GnIGtsFZ2l/PNenHzwJknaWup0ULOD+D5pLi+yrwnFrzW57whah+F8FUDRvoBtmADs0VnJIWj2wnfOpC1bwDIaDEaDu+EkcpyVmFnKeTejznrrProYHZCRmNeZF4VGRVL2IXiMkFFJo7ICS3B1uBidEUHDQnYqJbVkhJiYxX5WP3qVJUoZ+gpFs5lik3xEMvWkNxWot7GsoW0VeItldOx8A3S2FVnGG7ZhdJ1Zyx7lu+gk2aX+HmBKV1YOlsjyaSCGToHFbG91B0kV76IJzZ3Dl3CTGUdNxPm1Z/xR/TTy/niQshxK/2e4+D6mZ8u2X9DPFP0PYZf8zklwicpvgEAAP//AwBQSwMEFAAGAAgAAAAhABq1Yki7AwAAXgkAAB4AAAB4bC9waXZvdFRhYmxlcy9waXZvdFRhYmxlMi54bWzEVltvozgUfl9p/gPyO+USoCEKGVEImkrVqpp2Z59dMIk1BiNjWqLV/Pc9NpSQy2i78zIvSXx8/J3bd87J+nNfMeOViJbyOkLOjY0MUue8oPUuQn89Z+YSGa3EdYEZr0mEDqRFnzef/lg39JXLZ/zCSEpKWlMJAAaA1W2E9lI2K8tq8z2pcHvDG1LDTclFhSUcxc5qG0Fw0e4JkRWzXNsOrArTGg0Iqyr/CEiFxfeuMXNeNVjSF8qoPGgsZFT56n5Xc6H8i1Av3oF7cQFc0VzwlpfyBoAsXpY0Jxf+OZ4lyCtVWQIosepoEaF/tn6yDLdBYgaOHZqeYydm6N8tzK2X3SZuGMZ3i/QHMmpcgROPU8JcZOQYcnMPGA4ycNOww59d9UJENqQoQlAGLb7jorgizngtL3QfsZRE1BfymNFdXZErL/6mhdx/IXS3P6KBQwWWOMGNqmiEvmHWQc2NrgExKb69UyWAJNP6KykFafcqzdPNApRbEneSD65IzSXApZJUj4LW8plKRoAnIMuBB2ewtC7AWZ0D3klGFe1Ac/ydgnP6XHVM0oaRjBJWZJRB7ABpo82a8Rz4AHQUpIxQ7ASr1PWRUVLRyi9AOyK+8jeNoUUKUQugLpMg4UxpWJuB6NpIa+S8U57dghHNfy02cE/BsvoEGGiXPX+LGTxXvqiYp3eLUWD06hKw1a06aEP6AOgFKTHEpu4t/Ry+j9Z+Yhn8/U2W/yNmbxbzMUyI2Z0n4JiN/5eAWa5PSjUvwumFIrcumybAB9/P8t9u1oK/nfLBhRhLRcOpsNNJR2lNL/Tj+zknlio/m3Wvqw0/DZhQDsguBcbrSBQL9I96SjxYUWJ4+BO9CwNnepD4nYBBP7Ot/NbObtY5Z6cxKx+nKHVhrUlHq59EqZk/C+rSzWvmAXA0P1Vt6iVlf5KOI/apqwxeGjBjcgK9zGC+Qt+/4HYYEnqkqJMCHTvQOiKPnaV32pM8MHJfl3w+vLXwQU1LB6afog5wfxgowzBTImjEcxFoPUlBGzXyYLCPWueiB9xKeNxVag+r3iC9fGil/jY6QWHfhIG7zfzUMf0kdk0vDxfmcpt5ZnqX+Ynte4swdWHf6C286h3v13adHVrhsI2hSo63urrp97Qgw2p4n6WjVUjs2fq/umBJn5P54lfshIDn0d56t3HgBJ7pLP3Y9Ow0MZdx7JuZ7fiO6zt26nvHaJsCJu5HLJ//9XCCobvHscvwATaNagJAvBo7PHh3VrmsazRAnP0d2vwLAAD//wMAUEsDBBQABgAIAAAAIQAbD+MkggMAAHkIAAAeAAAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTMueG1svFbfb6M4EH4/6f4Hy+8USCAkUciKhqCtVK2qtrv77IJJrDM2MqYlOu3/vmNDaDbJnqrT6V4aPB5/8+ubma4+dRVHr1Q1TIoY+zceRlTksmBiF+Ovz5kzx6jRRBSES0FjfKAN/rT+849VzV6lfiYvnKa0ZIJpAEAAJpoY77Wul67b5HtakeZG1lTATSlVRTQc1c5takVJ0ewp1RV3J543cyvCBO4RllX+EZCKqL/a2sllVRPNXhhn+mCxMKry5d1OSGX8i3GnjsCdugCuWK5kI0t9A0CuLEuW0wv//MBV9JWZLAGUWrasiPHft0kYzTfe3PFnUeQEi9vESWbbrRPOo23mp34aTqMfGAlSgRMPY8J8jHICubkDDPgmdc0PX9rqhaqsT1GMoQxWfCtVcUWcSaEvdB+I1lSJC3nC2U5U9MqL76zQ+8+U7fbvaOBQQTTZkNpUNMbfCG+h5qitQUyLb0eqzCDJTDzSUtFmb9I83kxBuaFJq2XvirZcAlymafWgmNDPTHMKPDGJAB6cwTJRgLM2B7LVnBnagebwnYJz9ly1XLOa04xRXmSMQ+wA6eH1issc+AB0VLSMcTJdphFGJVON/gyko+pRvlkEKzJ4VjAZdIxgI7nRcNc9za2JBuWyNX5FYMKy34oR6RjYNX8BBpplL98SDs+NJybi8d10EKDOXAK2uTUHa8geAL2gJYHIzL1rn8Pvu7XfWAZ//1fLJ0H+kqPT6D94YchmE2lL8kHgk4w065WSb79WyIdMl4YWY6rdUceq313UZb3qbMahKvCJXoequHBiCMqyUzADAfaoZQAtynqVS/4P5m1x3VHHqv8H5gFwMD8mcCSaCX+UDtPnqa2QLBG0X06B6BxGT4jRC2n6/rHdZk4GdKCn+4480M6O+yd94PROlPJ0rlnhvRkkPgwGU0Vohr7b+j43ImDpuQi0nrRitZkGMPMGrXPRPWk0PG4rs6JMZ9BO3zfa/qJWMRjFi9lkm4Wp74SbZOIE+WLqzLdZ4KS3WbjxwmC6SCcwiu2CWnZ+8O/WgLdwF/2iAib4wfLqEtyzgvZT8zhoBquQ2LPNeHX30C6npzvR8BICPo02CqJk5s8Cx5+HiRN46caZJ0noZJ4f+pPQ99IweI+2LmAcfcTy+Vb2Z32jDTOJkwMMYdMEgHg1dnhwdNa4bGvUQ5z9p7D+CQAA//8DAFBLAwQUAAYACAAAACEAT5auTNcDAADnCQAAHgAAAHhsL3Bpdm90VGFibGVzL3Bpdm90VGFibGU0LnhtbMRW227jNhB9L9B/IPiuSFQk32B7oVg2NkDQBpt095mWKJsoRQoUlTgo+u8dUrIiXxZZLBboSxyOhmduZ2Y4/3QoBXphuuZKLjC5CTBiMlM5l7sF/ut5400wqg2VORVKsgV+YzX+tPz9t3nFX5R5plvBUlZwyQ0AIACT9QLvjalmvl9ne1bS+kZVTMKXQumSGjjqnV9XmtG83jNmSuGHQTDyS8olbhFmZfYjICXVfzeVl6myooZvueDmzWFhVGaz+51U2vq3wAd9BD7oC+CSZ1rVqjA3AOSrouAZu/CPRL5mL9xmCaD0rOH5Av8zJmEaT0dTbzSe3npRSlLvLhmn3niyjqO7dRyQdfovRpKW4MRjn7AIo4xCbu4Bg2BEq0q8/dGUW6Y3bYoWGMrgxHdK51fEGyXNhe4jNYZpeSFPBN/Jkl258Y3nZv+Z8d3+HQ0cyqmhK1rZii7wVyoaqDlqKhCz/OuRKiNIMpdfWKFZvbdp7r/cgnLNksao1hXjuAS43LDyUXNpnrkRDHgCsgx4cAbLZQ7OuhyoxghuaQea3f8pOOfOZSMMrwTbcCbyDRcQO0AGeDkXKgM+AB01KxY4IeEsDQGg4Lo2n4F2TH9Rrw7DiSyiE4SdjhWslLAa/rIlujNSo0w11rMxGHH8d2JEDxws278AA+2yV6+JgOtQxJwVFPx8arZGGepky7nNQ48VApYVoIO9APaOB2fcd7rLuf9u7jumweH/y/RPRH07iNoFeow6HKbA5eOjFHyQ7pMKflSbU2XbB67Cjiu/2M6govVyrtXrKcUsLQrL7J4X/cmlyO9vuMv3Q0pNbHKX8wNE48MvRzD0CMguBeilI/mpnhW3Vux1uPgdvQsDZ3rQKjsNu2Ng2/rtnF3OMyVOY7Y+9lG29O91nPpJlI5Cg6Au3bxmHgA78311+1a09ntpN7WfmhKpAsHYyhiMBwEjO8ZoS+t27rgmtycL2jWw/47c9apbk0/mTbB7WajhPnDCBzuACQxUSzFopnZGtfPRiqC1z0Wg9WQ0r+wUhTHTaZ2LHmht4HJT2tVuG4sdzENt3C9qNIcVNh2F602cEi9eJaEXZbDHJutN5KV3m3gVxNHtNA1hhbnFPjuQ6OfWZzD1p+2ChyqRaHb18bDnOWu3zXE8d1YhsWcviqs7mx0yNnxLWHZCwMNox9E4GZFR5JFJnHhRkK68SZLE3iYgMQljEqRx9B5tlcPA/hHL568ZMmq7u5v+gr7B8rJNAIhXYycjtJZ2iebHTVHDq8puDlfeXvinfFbV4Esfog3UVbY1fPYuW/4HAAD//wMAUEsDBBQABgAIAAAAIQBEoRB94QMAAHQKAAAeAAAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTUueG1szFZbb6M4FH5faf8D8jsFEshNISNKgqZStVtNuzPPDpjEWmMj27REq/3ve2wIzW00o2oe9qENPpjvfOd+lp/aijmvRCoqeIyCOx85hOeioHwXo79eMneGHKUxLzATnMToQBT6tPr9t2VNX4V+wVtG1qSknGoAcACMqxjtta4XnqfyPamwuhM14fCmFLLCGo5y56laElyoPSG6Yt7I9ydehSlHHcKiyn8GpMLy76Z2c1HVWNMtZVQfLBZyqnzxsONCGn4xauURuJVXwBXNpVCi1HcA5ImypDm54heEniSv1HgJoOSioUWM/gnTyWY+8303us9SN4yisZuk2dRNw/l0PA/DeRqG/yKH4wpIPA0OGyMnx+CbB8AIkIPrmh3+aKotkVnnohhBGKz4XsjihjgTXF/dfcJaE8mv5AmjO16RG198o4XefyZ0t39HA0IF1jjFtYlojL5i1kDMnaYGMSm+HlNlAk6m/AspJVF74+bhDZjXKJI0WnRUtM0lwKWaVE+Scv1CNSOQJyDLIQ8uYCkvgKz1gQ1tfva8BnL2XdUwTWtGMkpYkVEGtgOkj1ZLJnLIB0hHScoYJePFJgB/llQq/Rmyjsgv4s0qtyIDaAWj/o4RpILFaIS8VZfnVodyctEYYlPQYdPfih3cUlBs/gMMWGTSsecsGs2oKRvQr/biLWEAC88FKTHQf262WmhsZaulcc+gYwQ6jMBpzQfA43gIzMGzd+H3ncZ3KIEh/zdKv9BL4xMvWcccvWRDd+a/H7nsg2E7y5CPxv4cxJSfzayuQD6WTr+K10mGqdVSirfzUjBpWpoCHPJ0ONkQeMMX9uOH0xSfmOCtli1QNX8ePFMH+nMA8tZ5NQ83xR2wuX1674cQULg7CYPMoPe4hp2ltFrmgp1bZlgMtnRMhjv2+pktNhFP7Li24JZ6AOzVDzEfGoDRP0j7EfLcVI4oHeihOYFmxWB+RMjZYtU1QdtazMmA9m3De0fuO4Sd2c/6wMgDL8XpcLLCRzMNAujupl9BqXYds2vWRgQN5VIEt561pLVp6X2jg1uXokesNIibyuwZJrKk1Y9K21+nkRTm6Xwy2mTROnCjNBm5YT4fu7NNFrrr+yxK/Sgcz9cjmKd2y1i0QfixWe7PvXm3bUCUgnBxc5PZ04J0o+84LHqt4NiL9ebmAkHanJwuNibjwOBTa6fhNJkEk9ANZlHihv46dWdJErmZH0TBKAr8dWS2h15vXcCY+BnNl6tVMOlquJ85DB9gKpkiAMSbtgcTZ8PNRC+O80nBimfmlQ3vIPyTv4j65M1gojHURrZTfLEkrv4DAAD//wMAUEsDBBQABgAIAAAAIQAwxZ/ipAMAANgIAAAeAAAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTcueG1svFZLb9s4EL4vsP+B4F3Rw5JfsFwoVrQNECyCJtueGYmyiaVIgaISG0X/e4eULCuOW6Q99GKbw+E3r29mvPqwrzh6pqphUsTYv/IwoiKXBRPbGP/3mDlzjBpNREG4FDTGB9rgD+u//1rV7FnqR/LEaUpLJpgGAARgoonxTut66bpNvqMVaa5kTQXclFJVRMNRbd2mVpQUzY5SXXE38LypWxEmcIewrPL3gFRE/d/WTi6rmmj2xDjTB4uFUZUvb7dCKuNfjPfqCLxXb4ArlivZyFJfAZAry5Ll9I1/fugq+sxMlgBKLVtWxPhrkMyug5ub1Mm8TeCEmec7yWSaOdebxAunmyQJFuk3jASpwIn7IWEzjHICubkFDB8jUtf88G9bPVGVdSmKMZTBiq+lKi6IMyn0G917ojVV4o084WwrKnrhxRdW6N1Hyra7Exo4VBBNNqQ2FY3xZ8JbqDlqaxDT4vORKlNIMhOfaKloszNpHm4moNzQpNWyc0VbLgGuki//KKDSo9SEA00gSKZpda+Y0I9McwoyUMuBGmeWmCjAf/tCtpozw0TQ7H+n4K89Vy3XrOY0Y5QXGeOQDmtmveIyB4oAQxUtY5yE82UaAUDJVKM/AhOp+iRfLIYVGUQrCHodI9hIbjTcdcd9a6RBuWyNZzM8FiOyZ2DZfAIMdNBOviQcnnugZmIe3k16AdqbS8A2t+ZgDdkDoBe0JBCbuXftc/i2DWid+IFl8PePWv5xkOEoyFNcEGQwjvgU/q9FPLL7qjbjrL++MAS3mbMVf+f7UcKb9Qq4/JoAPsRYGt4NlXQHHat+Oy57YDKyXu1tQbuf6LkvugsX5q19sF7lkv/Ekk2nO+hY9VeWLMF+YokhyPbWtCW4dPTHAPbmh1wNlDWRDtJ+uD20FZIlglbOKbQMh8kWYfREmq4XbeeakwHtie6ekHsC223yoA+c3opSjsemFd6ZOeXD3DEFg7bq+rabGUYEfD8XgdaDVqw2kwWmTa91LrojjYbHbWU2oGEk3eu7Rttv1CoGk34xDW6yKPWdaJPApM8XE2d+k4VOep1FGy8KJ4s0gElv999y74e/t2W8hbvo9iCUwg+XF3fsjhW0G8rHkdVbhcSeLd6Lq43uczpeuYaCEPA42lk4S6b+NHT8eZQ4oZdunHmSRLDm/MgPIt9Lo/AUbV3AYHuP5fOl70+7nuqnGycHGOiGhYB4MXZ4cHTWuGxr1EGc/RFZfwcAAP//AwBQSwMEFAAGAAgAAAAhAN6lCefoAwAAGAoAAB4AAAB4bC9waXZvdFRhYmxlcy9waXZvdFRhYmxlOC54bWzMVktv2zgQvhfY/yDwrkiyJfkB24VsR22AYDdovO2ZliibWIoUSCqxUfS/75BSZPnRoi32sBdbHA6/mfk4D87eH0rmvBCpqOBzFNz5yCE8Eznluzn6e5O6Y+QojXmOmeBkjo5EofeLP97NKvoi9AZvGVmTgnKqAcABMK7maK91NfU8le1JidWdqAiHnULIEmtYyp2nKklwrvaE6JJ5A9+PvRJTjhqEaZn9DEiJ5T915WairLCmW8qoPlos5JTZ9GHHhTT+zdFBvgEf5BVwSTMplCj0HQB5oihoRq78C0JPkhdqWAIoOa1pPkdfB/56ORz5gRsk6cQNR+vEHcfL2E3vozCMwyBMlstvyOG4BCeeOsJi5GQYuHkAjAA5uKrY8c+63BKZNhTNEVyDFS+FzG+IU8H1le4T1ppIfiVPGN3xktw48YXmev+R0N3+hAYO5VjjFa7Mjc7RZ8xquHOnrkBM8s9vqQJBlJR/IoUkam9o7naGoKxIUmvRuKJtLgGuFK8fJKTSRmjMIE0gyEywSxHVpHySlOsN1YyAGpzMIFsujFOeQ0gWRNSaUZOcoNl+ryEEuy5rpmnFSEoJy1PKgCFreTFjIoOsgaSVpJijZBhPVyEEVVCp9EdITiI/iVeLYUUG0QoGrY4RrAQzGt6iKQdrREFQtfFshPpiBx8oWDa/AANFVW+14WEjKhuE2ovXhAGcD8cMBx3OsBU4B7MJtsyuWVjDdgHWclJgiNXse/Y4/NsatU59xxPw/3/iyS9yEvY4OdEAnAz6BJ3Y+jWCfnA3Z1f9o0s8VzQlZS/CJtR/hN+7X7WYQXWd598AOCpM2neJ060sS153wh5+6OfcxPC7mB1sNsGnA30zANm1wHlpE9ED/ZOeETdWrLjHfw8EPr9z/Mruhd453tmmCcvGsphBdzmnxITQkWDzxut0rPoZCYbAPgmX7pqzraXufruqNaY6aTsCnuvSEYUD3S0j0EUY9P8IOVusmvZk+4BZGdC21r0TclvDduY+6yMjD7wQ/eFihY+mmwfQyExDgapqWlnTRo0ISv5SBFrPWtLKNFvoya3WpegRKw2H69K8E0yVkYN+VNr+O7WkMA8n8eA+jdaBG62SgRtmk6E7vk9Dd71Mo5UfhcPJegDz0L4Spocg/L1Z7E+8SfNagAsJwunNl8ie5qQZXW9dvLUKxF48T24+AMghI/2HiUlICLgf7SgcJXEQh24wjhI39Ncrd5wkkZv6QRQMosBfR+Ep2iqH3v4zli+fRkHc1Hnb4Bk+wowzpQiIN2MPYue5HS7qLw7zBR5oZjS8ZZQNwwRjb68Bv3jILf4FAAD//wMAUEsDBBQABgAIAAAAIQAIr+hn4QMAAB0KAAAeAAAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTkueG1szFZLb+M2EL4X6H8geFf0sOTEhu2FYkXYAEEbbNLtmZYomyhFCiSVOFj0v3dIKbL82GC36KEXyxwOv3nw48wsPu1rjl6o0kyKJQ6vAoyoKGTJxHaJ/3jOvRuMtCGiJFwKusRvVONPq19/WTTsRZpnsuE0oxUTzAAAAjChl3hnTDP3fV3saE30lWyogJ1KqpoYWKqtrxtFSal3lJqa+1EQTP2aMIE7hHld/AhITdRfbeMVsm6IYRvGmXlzWBjVxfx+K6Sy/i3xXr0D79UZcM0KJbWszBUA+bKqWEHP/AtjX9EXZrMEUGresnKJv83iPItvr9feLM1SL06zmZdGSe7dTWb5JIiCbBKFf2MkSA1OPA4JSzAqCOTmHjBCjEjT8Lff2npDVd6laInhGpz4VqrygjiXwpzpPhJjqBJn8pSzrajphRN/stLsPlO23R3QwKGSGLImjb3RJf5KeAt3jtoGxLT8+k6VKSSZiS+0UlTvbJqHnQkoa5q2RnauGMclwGWG1o+KCfPMDKfAE5AVwIMTWCZKcNblQLaGM0s70Oz/Z+CcW9ctN6zhNGeUlznjEDtABni14LIAPgAdFa2WOI0m82wSY1Qxpc1noB1VX+Srw3Aii+gEUa9jBWvJrYa/6ojujGhUyNZ6dg1GHP+dGJE9A8v2F2DgubQbIw3hz7JxQeidfE05wFnfbA4GnEkvQHu7Cbbsrl04w24B1kpaEYjV7vvuOHwP1r/jCfj/P/HkJ3MSj3JySAPkJBon6JCtn0vQB3dzdNUfXeKxon0sjgaOUP8R/uh+9Wqh5Osx/yLIUWVpPxBnWLks+cMJd/h+zLnQsXC12Ds6AeUQlMQQAM8F6KVnos/GelbcmXHi0QWMQODvd46f2T3RO8Y739wq6EYjf22wLsLVopD8OFE2riE1jk3+oOPUj1LjnuOHMYBvZ+YBsDc/UGF44Nb+IO37wFNbI1khKIQFhYLDoQlAQ9gQ3VUyVzLsyoL2ZcE/IPfP3TXeJ/PG6b2o5LjDOOGDLekhlGhbe+ABdlWvq7hWBNXhVARaT0axxtZl6D691qnogWgDh9vaDgv2QdK9edDGfVGrmG2K0+guT7LQS9Zp5MXFbOLd3OWxl93myTpI4sksi6ApulFhvg/jf9eQg5k/60YGuLAwnl8cR3aspF3/ei/4vVVI7MmMcnEKoPuCjqcTS10IeBztdXydTsNp7IU3CYwAQbb2btI08fIgTMIoCYMsiQ/RNiW0gR+xfDofhdOuJPS9gJM3aIf2EQDixdjDKXrq+5D+XUArginNdpF3RrkwbDDu9jrwk2lu9Q8AAAD//wMAUEsDBBQABgAIAAAAIQAnGRletQMAADUJAAAfAAAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTEwLnhtbLxWXW+jOBR9X2n+g+V3CgRIkyhkRELZqVSNqml39tkFk1hjbGRMm2g0/32uDaE0SUfVPuxLEl9fn3vud5af9xVHz1Q1TIoY+1ceRlTksmBiG+N/HjNnhlGjiSgIl4LG+EAb/Hn16a9lzZ6lfiRPnKa0ZIJpAEAAJpoY77SuF67b5DtakeZK1lTATSlVRTQc1dZtakVJ0ewo1RV3J543dSvCBO4QFlX+EZCKqB9t7eSyqolmT4wzfbBYGFX54nYrpDL8YrxXR+C9OgOuWK5kI0t9BUCuLEuW0zN+fugq+sxMlABKLVpWxPhnchMGwWwaOOswSJ0wW0fOerYOnHm68VPPv4n8yfwXRoJUQOJ+CNgco5xAbG4Bw8eI1DU/fG2rJ6qyLkQxhjRY8Vqq4oI4k0Kf6d4TrakSZ/KEs62o6IUX/7JC775Qtt29ogGhgmiyIbXJaIy/E95CzlFbg5gW34+lMoUgM/GNloo2OxPm4SYA5YYmrZYdFW1rCXCZptW9YkI/Ms0p1AnIcqiDE1gmCiBrYyBbzZkpO9Dsf6dAzp6rlmtWc5oxyouMcfAdID28WnKZQz1AOSpaxjgJFn9DEZdMNfoLFB1V3+SLRbAig2cFQHsQbCQ3Gu6qK3NrokG5bA2vazBhq9+KEdkzsGs+AQaaZSdfEg7PDRPj8fAu6AVoby4B29yagzVkD4Be0JKAZ+betc/h+9XaO5aB7/9qeeTkmxiNvf/ghSk2G0ibkneB/6Q2ik+zWir58jZfPsS9NEUyBN4ddKz67VmWVsu9jT/kCH6i5z5HLpwYgiRtFUxEgD1qGUCLslrmkr81Pxmbt6keyDgTm+bhiX39hs3U1ExnZ2CEYIaZbjKfZ+zGgo+9uOTPyMnBTh8QF9j2rg45GUrc+DpI+7n30FZIlggaP6fQYhyGXoTRE2m6zrV9bk4GtG+MdyA2stE9AkyfPyK4r9z6lrGr6kEfOL0VpRzPZCu8M0PQB1hTgdDI3aToZpQRQYedikDrQStWm0kG87rXOhXdkUbD47Yy69Wkm+71XaPtN2oVZPHnfDq5yaLUd6JNMnHCfB44s5ssdNJ1Fm28KAzm6QTWiF2ui70f/rcV5s3debdkoUb8cHFxge9YQbuJfxySvVVIzclWv7g36T6n431uigYcHnt7HV4nU38aOv4sSpzQSzfOLEkiJ/N82JeR76VR+OptXcAo/Yjl038U/rQbC/085eQAC8T0CyBe9B0eHMkayjZHHcTJv5zVbwAAAP//AwBQSwMEFAAGAAgAAAAhAFHy0xKjAwAA2AgAAB4AAAB4bC9waXZvdFRhYmxlcy9waXZvdFRhYmxlNi54bWy8Vktv4zYQvhfofxB4V/SI5BcsLyQr6gYIimCT7p4ZibKJUqRAUYmMRf97h5QsK7Z3ke2hF9scDr95fTPj9aeuYtYrkQ0VPELejYsswnNRUL6L0F/Pmb1AVqMwLzATnEToQBr0afP7b+uavgr1jF8YSUlJOVUAYAEYbyK0V6peOU6T70mFmxtREw43pZAVVnCUO6epJcFFsydEVczxXXfmVJhy1COsqvwjIBWWf7e1nYuqxoq+UEbVwWAhq8pX9zsupPYvQp08AnfyAriiuRSNKNUNADmiLGlOLvzzAkeSV6qzBFBy1dIiQt+T1PcXSbKwE9/z7SCcJ/Yy9u9sP124SZbczRPX/QdZHFfgxOOYMEhpjiE394DhIQvXNTv82VYvRGZ9iiIEZTDiRMjiijgTXF3oPmKliOQX8pjRHa/IlRffaKH2nwnd7U9o4FCBFd7iWlc0Ql8xa6HmVluDmBRfj1SZQZIp/0JKSZq9TvN4cwvKDYlbJXpXlOES4OaC/SGBSs9CYQY0gSCpItWjpFw9U8UIyLQaUOPMEuUF+G9eiFYxqpkImsPvFPw156plitaMZJSwIqMM0mHMbNZM5EARYKgkZYTiMFhtQyhDSWWjPgMTifwi3gyGEWlEI/AHHS3YCqY1nE3PfWOkgaBa7dkcTcUW7ihY1p8AAx20F28xg+cuqOmYx3e3g8Dq9CVg61t9MIbMAdALUmKITd875jl8mwY0TvzAMvj7v1r+cZDBJMhTXBCkP434FP6vRTyx+64206y/v9AEN5kzFf/g+0nCm81airf3BPAgxlLzbqykM+oY9fuLsm/WnSkoFB1+Wq9D0R04UQtysNPNArBHLQ1oUDZraKWfmDc5dkYdo/7OvK8L8hPz+u1gaczVSFkd6SgdhttTW1mitKCVcwItw2Cyhch6wU3fi6Zz9UmDDkR3TsgDgc02eVIHRu55KaZj0wgf9JzyYO7ogkFb9X3bzwwtAr6fi0DrSUla68kC02bQOhc94EbB47bSG1AzknTqoVHm22olhUm/nPl3WZh6driNYdLny1t7cZcFdppk4dYNg9tl6sOkN/tv1XnBf9sy7tJZ9nsQauMFq6s7dk8L0g/l48garEJizxbv1dVGupxMV66mIAQ8jXYezOOZNwtsbxHGduCmW3sRx6GduV7o+aHnpmFwirYuYLB9xPL50vdmfU8N043hAwx0zXdAvBo7PDg6q102Neohzv6IbP4FAAD//wMAUEsDBBQABgAIAAAAIQCZrDVJ0QAAAGICAAAjAAAAeGwvd29ya3NoZWV0cy9fcmVscy9zaGVldDEueG1sLnJlbHPEks+KwjAQh+8LvkOY+yZtBZHFtJdlwavUBxjTaRu2TUImK/r2m4tQQfTobf4w3+87zK65zJM4U2TrnYZSFiDIGd9ZN2g4tj+fWxCc0HU4eUcarsTQ1KuP3YEmTPmIRxtYZIpjDWNK4UspNiPNyNIHcnnT+zhjym0cVEDziwOpqig2Ki4ZUN8xxb7TEPfdGkR7DTn5Ndv3vTX07c3fTC49iFDBnn1q8TRRpmIcKGmQcjHmRb2W2R3UY63qbVrVM63ybVrlTUvdfUb9DwAA//8DAFBLAwQUAAYACAAAACEAm22SiOQAAAAnBAAAIwAAAHhsL3dvcmtzaGVldHMvX3JlbHMvc2hlZXQyLnhtbC5yZWxzxNO7bsMgFIDhvVLfAZ294NzctArOEkXKGjkPQPGxjWoD4tAoefuyVHKkyB3ZuIj/fAu7/W0c2BUDGWclLHgBDK12jbGdhEt9fNsCo6hsowZnUcIdCfbV68vujIOK6RH1xhNLFUsS+hj9pxCkexwVcefRppvWhVHFtA2d8Ep/qw7FsihKEaYNqB6a7NRICKdmBay++zT5/7ZrW6Px4PTPiDY+GSG8ubpYq68BU1WFDqMEzifHNFmXPNlBPGcts7E2c6xFNtZ6jlVmY33MsTbZWNs51job6/2PJR6+d/ULAAD//wMAUEsDBBQABgAIAAAAIQAmrmhpvwAAADUBAAAjAAAAeGwvd29ya3NoZWV0cy9fcmVscy9zaGVldDMueG1sLnJlbHOEj8EKwjAQRO+C/xD2btJ6EJGmvYjgVeoHrOm2DbZJyEbRvzfHCoK32R32zU7VvOZJPCmy9U5DKQsQ5IzvrBs0XNvTZg+CE7oOJ+9Iw5sYmnq9qi40YcpHPNrAIlMcaxhTCgel2Iw0I0sfyGWn93HGlMc4qIDmjgOpbVHsVFwyoP5iinOnIZ67EkT7Djn5P9v3vTV09OYxk0s/IlSwT59avE2UqRgHShqkXKx5octC5udB1ZX6Klt/AAAA//8DAFBLAwQUAAYACAAAACEAO20yS8EAAABCAQAAIwAAAHhsL3dvcmtzaGVldHMvX3JlbHMvc2hlZXQ0LnhtbC5yZWxzhI/BisIwFEX3A/5DeHuT1oUMQ1M3IrhV5wNi+toG25eQ9xT9e7McZcDl5XDP5Tab+zypG2YOkSzUugKF5GMXaLDwe9otv0GxOOrcFAktPJBh0y6+mgNOTkqJx5BYFQuxhVEk/RjDfsTZsY4JqZA+5tlJiXkwyfmLG9Csqmpt8l8HtC9Ote8s5H1Xgzo9Uln+7I59Hzxuo7/OSPLPhEk5kGA+okg5yEXt8oBiQet39p5rfQ4Epm3My/P2CQAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGUyLnhtbC5yZWxzhI/BCsIwDIbvgu9QcrfdPIjIOg+K4FX0AUKXbcUtLW0VfXvrbQPBY8if789X7V/jIJ4UonWsoZQFCGLjGsudhtv1tNqCiAm5wcExaXhThH29XFQXGjDlo9hbH0WmcNTQp+R3SkXT04hROk+cN60LI6Y8hk55NHfsSK2LYqPClAH1jCnOjYZwbkoQ17fPzf/Zrm2toaMzj5E4/ahQ3j5dOmB+70itZfsVyHwMHSUNUk4CP7OlzDqg6krN9OsPAAAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGUzLnhtbC5yZWxzhI/BCsIwDIbvgu9QcrfdPIjIOg+K4FX0AUKXbcUtLW0VfXvrbQPBY8if789X7V/jIJ4UonWsoZQFCGLjGsudhtv1tNqCiAm5wcExaXhThH29XFQXGjDlo9hbH0WmcNTQp+R3SkXT04hROk+cN60LI6Y8hk55NHfsSK2LYqPClAH1jCnOjYZwbkoQ17fPzf/Zrm2toaMzj5E4/ahQ3j5dOmB+70itZfsVyHwMHSUNUk4CP7OlzDqg6krN9OsPAAAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGU0LnhtbC5yZWxzhI/BCsIwDIbvgu9QcrfdPIjIOg+K4FX0AUKXbcUtLW0VfXvrbQPBY8if789X7V/jIJ4UonWsoZQFCGLjGsudhtv1tNqCiAm5wcExaXhThH29XFQXGjDlo9hbH0WmcNTQp+R3SkXT04hROk+cN60LI6Y8hk55NHfsSK2LYqPClAH1jCnOjYZwbkoQ17fPzf/Zrm2toaMzj5E4/ahQ3j5dOmB+70itZfsVyHwMHSUNUk4CP7OlzDqg6krN9OsPAAAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGU1LnhtbC5yZWxzhI/BCsIwDIbvgu9QcrfdPIjIOg+K4FX0AUKXbcUtLW0VfXvrbQPBY8if789X7V/jIJ4UonWsoZQFCGLjGsudhtv1tNqCiAm5wcExaXhThH29XFQXGjDlo9hbH0WmcNTQp+R3SkXT04hROk+cN60LI6Y8hk55NHfsSK2LYqPClAH1jCnOjYZwbkoQ17fPzf/Zrm2toaMzj5E4/ahQ3j5dOmB+70itZfsVyHwMHSUNUk4CP7OlzDqg6krN9OsPAAAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGUxLnhtbC5yZWxzhI/BCsIwDIbvgu9QcrfdPIjIOg+K4FX0AUKXbcUtLW0VfXvrbQPBY8if789X7V/jIJ4UonWsoZQFCGLjGsudhtv1tNqCiAm5wcExaXhThH29XFQXGjDlo9hbH0WmcNTQp+R3SkXT04hROk+cN60LI6Y8hk55NHfsSK2LYqPClAH1jCnOjYZwbkoQ17fPzf/Zrm2toaMzj5E4/ahQ3j5dOmB+70itZfsVyHwMHSUNUk4CP7OlzDqg6krN9OsPAAAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGU3LnhtbC5yZWxzhI/BCsIwDIbvgu9QcrfdPIjIOg+K4FX0AUKXbcUtLW0VfXvrbQPBY8if789X7V/jIJ4UonWsoZQFCGLjGsudhtv1tNqCiAm5wcExaXhThH29XFQXGjDlo9hbH0WmcNTQp+R3SkXT04hROk+cN60LI6Y8hk55NHfsSK2LYqPClAH1jCnOjYZwbkoQ17fPzf/Zrm2toaMzj5E4/ahQ3j5dOmB+70itZfsVyHwMHSUNUk4CP7OlzDqg6krN9OsPAAAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGU4LnhtbC5yZWxzhI/BCsIwDIbvgu9QcrfdPIjIOg+K4FX0AUKXbcUtLW0VfXvrbQPBY8if789X7V/jIJ4UonWsoZQFCGLjGsudhtv1tNqCiAm5wcExaXhThH29XFQXGjDlo9hbH0WmcNTQp+R3SkXT04hROk+cN60LI6Y8hk55NHfsSK2LYqPClAH1jCnOjYZwbkoQ17fPzf/Zrm2toaMzj5E4/ahQ3j5dOmB+70itZfsVyHwMHSUNUk4CP7OlzDqg6krN9OsPAAAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGU5LnhtbC5yZWxzhI/BCsIwDIbvgu9QcrfdPIjIOg+K4FX0AUKXbcUtLW0VfXvrbQPBY8if789X7V/jIJ4UonWsoZQFCGLjGsudhtv1tNqCiAm5wcExaXhThH29XFQXGjDlo9hbH0WmcNTQp+R3SkXT04hROk+cN60LI6Y8hk55NHfsSK2LYqPClAH1jCnOjYZwbkoQ17fPzf/Zrm2toaMzj5E4/ahQ3j5dOmB+70itZfsVyHwMHSUNUk4CP7OlzDqg6krN9OsPAAAA//8DAFBLAwQUAAYACAAAACEACkEM6sQAAABHAQAAKgAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGUxMC54bWwucmVsc4SPwQrCMAyG74LvUHK33TyIyDoPiuBV9AFCl23FLS1tFX17620DwWPIn+/PV+1f4yCeFKJ1rKGUBQhi4xrLnYbb9bTagogJucHBMWl4U4R9vVxUFxow5aPYWx9FpnDU0Kfkd0pF09OIUTpPnDetCyOmPIZOeTR37Eiti2KjwpQB9Ywpzo2GcG5KENe3z83/2a5traGjM4+ROP2oUN4+XTpgfu9IrWX7Fch8DB0lDVJOAj+zpcw6oOpKzfTrDwAAAP//AwBQSwMEFAAGAAgAAAAhAApBDOrEAAAARwEAACkAAAB4bC9waXZvdFRhYmxlcy9fcmVscy9waXZvdFRhYmxlNi54bWwucmVsc4SPwQrCMAyG74LvUHK33TyIyDoPiuBV9AFCl23FLS1tFX17620DwWPIn+/PV+1f4yCeFKJ1rKGUBQhi4xrLnYbb9bTagogJucHBMWl4U4R9vVxUFxow5aPYWx9FpnDU0Kfkd0pF09OIUTpPnDetCyOmPIZOeTR37Eiti2KjwpQB9Ywpzo2GcG5KENe3z83/2a5traGjM4+ROP2oUN4+XTpgfu9IrWX7Fch8DB0lDVJOAj+zpcw6oOpKzfTrDwAAAP//AwBQSwMEFAAGAAgAAAAhADLELiGuAQAAeAMAABAACAFkb2NQcm9wcy9hcHAueG1sIKIEASigAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnFNNa+MwEL0v9D8YXUsjpxvKEmSVkn4ddtlA3PasyuNYVJaMNDHJ/vod29Rx2p56m4/H05s3I3G9r23SQojGu4zNZylLwGlfGLfN2FN+f/GLJRGVK5T1DjJ2gMiu5dkPsQ6+gYAGYkIULmasQmyWnEddQa3ijNqOOqUPtUJKw5b7sjQabr3e1eCQX6bpFYc9giuguGhGQjYwLlv8LmnhdacvPueHhgRLcdM01miFNKX8Y3Tw0ZeY3O01WMGnTUHqNqB3weBBpoJPU7HRysKKiGWpbATBjwXxCKozba1MiFK0uGxBow9JNP/ItkuWvKoInZyMtSoY5ZBkdbAh6WPbRAzyxYe3WAFgFJwAQ7EPp9hpbBZy0QMoOAV2BIMQapxKzA1aiH/LtQr4heLFVHGvYdA7yHkAB0GRd0eBY7TZvaJHMig5Tx4CnU7eZ19ibxWqewO2OJn1SNXZMP9kQ+8sDfRhhJWvG+UO1Bij38a9xacm9/QQvG/ttCg2lQpQ0KLHrY4F8UgLC7YjWVXKbaF4x3xudDf2PHwkOb+apT9TOp9JTfDjl5H/AQAA//8DAFBLAwQUAAYACAAAACEAPS9UNOkCAADkBwAAJwAAAHhsL3Bpdm90Q2FjaGUvcGl2b3RDYWNoZURlZmluaXRpb24xLnhtbLRVW2/aMBR+n7T/EOU9hCQOEARUhEuFtE1TabtnkxzAamwj22FBU//7ThKg2eg6+tCXxJfj7/uOz8WDm4Jn1h6UZlIMba/Vti0QiUyZ2Azth/u507MtbahIaSYFDO0DaPtm9PnTYMf20kxosoUprJlgBgEsBBN6aG+N2fVdV+Mmp7oldyBwZy0VpwanauPqnQKa6i2A4Znrt9sdl1Mm7Bqhr67BkOs1S2Aqk5yDMDWIgoyWSvSW7fQJjSfXwHGqnvKdk0i+Q4gVy5g5VKC2xZP+YiOkoqsMr6BQJ+DiUidniZJark0Lgdxa4oW3HnEV7Fl557al+iwd2mqRejiGtQK8lTQ+DO0lFVMGG9lYnlKDAkgYdINWGIShT3o94nfwZIL3aSB9PEWy0zjVXORM3NUkpTPnnaA0T6RKJzIXBhMBIQvVz0tpv0hn6o27QeyE40nskGg6dSIvIM501unFsRcFcew/26NBUmbDUuYqAcscdqj0p1RPVZBx9zw+WqCvQ3vs9289JK+M0OUyITzbHQ3cBtgRec4gS7WV1Aq7J8Jq2RKUI98dbKo7FTmfc7NA8W0001uqIF0Y4OfTfrls7Yf2jGpT8lWTH1BP3MaJk5SKpqnkSHkLIgXMiOspY3k4M94ylVXuvoNxaQ4ZXEEYnHy8BzgTzqlIGvQyW7+bHkvLSjHZ3pYgDNazXgJnX1kB6T3mA3YGbC+JPG4ZVTWZxtK3nK8Aa6rM56PVQhjYHNcwdx9plmOc0YDT4jjxX/LlX0F6wP6E7eCtGH2sXnTyRbAXlv5VdUYwRqLMQ6/yoh62S4fqYVUL9TB8b6C+K2yPH+p0IyD4cpA/fAxaXfL/wEwkVtxHxqUhsd0i/l8Sg+BCYt146l4zGkBhvmhT/a1cMWyGXT8cz/zxzIlI5DmktwIn9mPikFkcdcl8ErR75Pn8QHjk4um56oVoR25Uv4ijQeGR/muvbdklUV/9rVS6r5mNfgMAAP//AwBQSwMEFAAGAAgAAAAhAOIrf3vBAAAAMwEAADIAAAB4bC9waXZvdENhY2hlL19yZWxzL3Bpdm90Q2FjaGVEZWZpbml0aW9uMS54bWwucmVsc4SPwWrDMBBE74X+g9h7LTuHUIrlHBICuQbnAxZpbYvYWqFVQvz30TGhhR6HYd7MtLvHMqs7JfEcDDRVDYqCZefDaODSH7++QUnG4HDmQAZWEth1nx/tmWbMJSSTj6IKJYiBKef4o7XYiRaUiiOF4gycFsxFplFHtFccSW/qeqvTKwO6N6Y6OQPp5BpQ/RpL8/9sHgZv6cD2tlDIf1To6O+c91jmnclyclLgmEbKBn5ZTVWmg+5a/Xa1ewIAAP//AwBQSwMEFAAGAAgAAAAhAFX91neqAQAAQgUAACQAAAB4bC9waXZvdENhY2hlL3Bpdm90Q2FjaGVSZWNvcmRzMS54bWyslE1vgyAYx+9L9h0M94JY+xptD1uW7LpsH4BSWskEDNCm/fZDbCdW1/Swm/Dgz/8LMVufRBkdmTZcyRxgGIOISaq2XO5z8PX5NpqDyFgit6RUkuXgzAxYr56fsooflX0htGAfjCq9NZEjSZODwtpqiZBxE0EMVBWTbrJTWhDrlnqPTKUZ2ZqCMStKlMTxFAnCJWgIS/0IQ+12nLJXRQ+CSdtANCuJdT5MwStzpQn6CE4Q/X2oRlSJyiE2vOT27KEgEnT5vpdKk03p/J/0FXzq6xScamXUzkIHQo3EnlucIs2OvA4cRFQdpHW5Y7DK9Co7RcccxAANP8l6irvTZs/1ltb7zSqGaVKvkCPeg3qUf8Ufbz/eYMYtMYHTR4Aec0/lwmOummde87DKIZutylY5xjCZhdYnd5S20CGlATSBODiB4WLyt/0WOpRnAB3DxvAlXTj2AYf2b0z7QgLAb/MdbWmn+UUv0yFoC2gzDaCu7qB8DGf/oTSBcaf9iRc2bP9+poG28eWqXzNNFrdF3aB8pkPtdwyn8/BKTf0Fq5Wi3l9v9QMAAP//AwBQSwMEFAAGAAgAAAAhAK4L/Ym7AQAALBUAACcAAAB4bC9wcmludGVyU2V0dGluZ3MvcHJpbnRlclNldHRpbmdzMS5iaW7slM1K41AUx/9p/KjOYiwIbmYxFFdiGUvjx05L0zqVxoSmFTezKDZCoCYlTZEZGUHmLcQHmeUsXfoAs3YlPoAb/d/YIs4UKeJGODecez7uuefm/rgcCz4OECFEj3KIGJ/h0PcRJHbMqIqYqGDU0Cb0qb9w5vUvGjTM4PyDkW7T+oj9VIp6P6VzLsIYuft1QW2wTekURel7ju2q++wYs7rbzOISi/pyZvPbyelLp00mi5NJrTf8VSn1jggM39U4v3zJJNdq7KjcOfzGCVawwVdeoc5zLiKHMtZQYCxHMbHOL8ecAuNlWiv0Dfp56hK9AlYT7ycr1suuWauhGfiR11OW0+p6kev/8FA0YEe+F8St2A8DOHa9US9WG6h7vbDTT2I07a6y8iiFnTCywrb3aP1/s+UMsGeY1vDuF7Pd7Cem3VB0yp1mp43rY+vX7fTXhT+rZ1eM1QZrSD/VU7nKXxpo5W9R9pQ/B94/ZJ/p4whe0lma7Dce+4yDFq0ejrkeoc3kfzNtrgVj5pZY4zu67Fwud6jzVCeLGZMhBISAEBACQkAICAEhIASEgBAQAkJACAiBcQg8AAAA//8DAFBLAwQUAAYACAAAACEA8eoc7HoBAADfBQAAEAAAAHhsL2NhbGNDaGFpbi54bWxsVM1OwzAMviPxDlXuLGu6joHW7YBEEs7wAFEX1kptOjUVgrcnQnNmYZ+mfbG/Hzvp/vg9DsWXn2M/hUaUq7UofGinUx/Ojfh4f33YiSIuLpzcMAXfiB8fxfFwf7dv3dC+dK4PRWIIsRHdslyepYxt50cXV9PFh3TyOc2jW9Lf+SzjZfbuFDvvl3GQar3eyjERiMO+LeZGvJVJvE8mthtRDOlXSDh5ygcZSr6utRlKbf+hRwptKVQTyFJFSxUtpbeUy5TllV/lRJZ61TWwVblM1+AWYyBxwwxTZ2pap2uwgvlg7AjbQH6sQesMV1cxvRUMD2kwdZqpMwpmhbwoJlvJYbRXcyO9Lgi5ywq3pensBGMVWa5Wii6c4bMMn1WUz3J8jCwDQXxkuIT1YAzWgzG4jjfM5BeKMEpnODaYOupkIEYTtooaaSrDZM/3AYfiBsL10g1q5hlrZiCamS8zEJo0X0zkl4a39PulK3iZf50yf5oPvwAAAP//AwBQSwMEFAAGAAgAAAAhACMYc0pHAQAAYQIAABEACAFkb2NQcm9wcy9jb3JlLnhtbCCiBAEooAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHySXWvDIBSG7wf7D8H7xHy0pUiSwlZ6tcKgGRu7Ez1NZdGIuqX99zNJ22V07FLf18fHg/nqKJvgC4wVrSpQEsUoAMVaLlRdoJdqEy5RYB1VnDatggKdwKJVeX+XM01Ya+DZtBqME2ADT1KWMF2gg3OaYGzZASS1kW8oH+5bI6nzS1NjTdkHrQGncbzAEhzl1FHcA0N9JaIzkrMrUn+aZgBwhqEBCcpZnEQJ/uk6MNL+eWBIJk0p3En7N511p2zOxvDaPlpxLXZdF3XZoOH9E/y2fdoNTw2F6mfFAJU5Z4QZoK415Y6qtYC6zfFksx9gQ63b+lnvBfCH06R3m3neoD9CgQdeiIz6l+Q1e1xXG1SmcZqF8SJMsypZkHhJ0uS9v/rX+V5w3JBngf+JszDOwnReJTMyy8h8SrwAyhzffIryGwAA//8DAFBLAQItABQABgAIAAAAIQBzoivs8gEAAPENAAATAAAAAAAAAAAAAAAAAAAAAABbQ29udGVudF9UeXBlc10ueG1sUEsBAi0AFAAGAAgAAAAhALVVMCP0AAAATAIAAAsAAAAAAAAAAAAAAAAAKwQAAF9yZWxzLy5yZWxzUEsBAi0AFAAGAAgAAAAhAK5Nk3qmAwAAxwgAAA8AAAAAAAAAAAAAAAAAUAcAAHhsL3dvcmtib29rLnhtbFBLAQItABQABgAIAAAAIQCfAJclNAEAAI0FAAAaAAAAAAAAAAAAAAAAACMLAAB4bC9fcmVscy93b3JrYm9vay54bWwucmVsc1BLAQItABQABgAIAAAAIQDC49oVkgcAAOggAAAYAAAAAAAAAAAAAAAAAJcNAAB4bC93b3Jrc2hlZXRzL3NoZWV0MS54bWxQSwECLQAUAAYACAAAACEAWBwxVekIAACDLAAAGAAAAAAAAAAAAAAAAABfFQAAeGwvd29ya3NoZWV0cy9zaGVldDIueG1sUEsBAi0AFAAGAAgAAAAhAI2HWchiBAAAJg8AABgAAAAAAAAAAAAAAAAAfh4AAHhsL3dvcmtzaGVldHMvc2hlZXQzLnhtbFBLAQItABQABgAIAAAAIQANqnKCQgQAAM8PAAAYAAAAAAAAAAAAAAAAABYjAAB4bC93b3Jrc2hlZXRzL3NoZWV0NC54bWxQSwECLQAUAAYACAAAACEA4Xc8U6kDAAAJCQAAHgAAAAAAAAAAAAAAAACOJwAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTEueG1sUEsBAi0AFAAGAAgAAAAhAMEXEL5OBwAAxiAAABMAAAAAAAAAAAAAAAAAcysAAHhsL3RoZW1lL3RoZW1lMS54bWxQSwECLQAUAAYACAAAACEA+VE7WAADAAD5BwAADQAAAAAAAAAAAAAAAADyMgAAeGwvc3R5bGVzLnhtbFBLAQItABQABgAIAAAAIQA5o6VpQgEAAGMDAAAUAAAAAAAAAAAAAAAAAB02AAB4bC9zaGFyZWRTdHJpbmdzLnhtbFBLAQItABQABgAIAAAAIQAatWJIuwMAAF4JAAAeAAAAAAAAAAAAAAAAAJE3AAB4bC9waXZvdFRhYmxlcy9waXZvdFRhYmxlMi54bWxQSwECLQAUAAYACAAAACEAGw/jJIIDAAB5CAAAHgAAAAAAAAAAAAAAAACIOwAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTMueG1sUEsBAi0AFAAGAAgAAAAhAE+WrkzXAwAA5wkAAB4AAAAAAAAAAAAAAAAARj8AAHhsL3Bpdm90VGFibGVzL3Bpdm90VGFibGU0LnhtbFBLAQItABQABgAIAAAAIQBEoRB94QMAAHQKAAAeAAAAAAAAAAAAAAAAAFlDAAB4bC9waXZvdFRhYmxlcy9waXZvdFRhYmxlNS54bWxQSwECLQAUAAYACAAAACEAMMWf4qQDAADYCAAAHgAAAAAAAAAAAAAAAAB2RwAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTcueG1sUEsBAi0AFAAGAAgAAAAhAN6lCefoAwAAGAoAAB4AAAAAAAAAAAAAAAAAVksAAHhsL3Bpdm90VGFibGVzL3Bpdm90VGFibGU4LnhtbFBLAQItABQABgAIAAAAIQAIr+hn4QMAAB0KAAAeAAAAAAAAAAAAAAAAAHpPAAB4bC9waXZvdFRhYmxlcy9waXZvdFRhYmxlOS54bWxQSwECLQAUAAYACAAAACEAJxkZXrUDAAA1CQAAHwAAAAAAAAAAAAAAAACXUwAAeGwvcGl2b3RUYWJsZXMvcGl2b3RUYWJsZTEwLnhtbFBLAQItABQABgAIAAAAIQBR8tMSowMAANgIAAAeAAAAAAAAAAAAAAAAAIlXAAB4bC9waXZvdFRhYmxlcy9waXZvdFRhYmxlNi54bWxQSwECLQAUAAYACAAAACEAmaw1SdEAAABiAgAAIwAAAAAAAAAAAAAAAABoWwAAeGwvd29ya3NoZWV0cy9fcmVscy9zaGVldDEueG1sLnJlbHNQSwECLQAUAAYACAAAACEAm22SiOQAAAAnBAAAIwAAAAAAAAAAAAAAAAB6XAAAeGwvd29ya3NoZWV0cy9fcmVscy9zaGVldDIueG1sLnJlbHNQSwECLQAUAAYACAAAACEAJq5oab8AAAA1AQAAIwAAAAAAAAAAAAAAAACfXQAAeGwvd29ya3NoZWV0cy9fcmVscy9zaGVldDMueG1sLnJlbHNQSwECLQAUAAYACAAAACEAO20yS8EAAABCAQAAIwAAAAAAAAAAAAAAAACfXgAAeGwvd29ya3NoZWV0cy9fcmVscy9zaGVldDQueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAAAAAAAAAAAAAAChXwAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTIueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAAAAAAAAAAAAAACsYAAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTMueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAAAAAAAAAAAAAAC3YQAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTQueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAAAAAAAAAAAAAADCYgAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTUueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAAAAAAAAAAAAAADNYwAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTEueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAAAAAAAAAAAAAADYZAAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTcueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAAAAAAAAAAAAAADjZQAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTgueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKQAAAAAAAAAAAAAAAADuZgAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTkueG1sLnJlbHNQSwECLQAUAAYACAAAACEACkEM6sQAAABHAQAAKgAAAAAAAAAAAAAAAAD5ZwAAeGwvcGl2b3RUYWJsZXMvX3JlbHMvcGl2b3RUYWJsZTEwLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAApBDOrEAAAARwEAACkAAAAAAAAAAAAAAAAABWkAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGU2LnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhADLELiGuAQAAeAMAABAAAAAAAAAAAAAAAAAAEGoAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAPS9UNOkCAADkBwAAJwAAAAAAAAAAAAAAAAD0bAAAeGwvcGl2b3RDYWNoZS9waXZvdENhY2hlRGVmaW5pdGlvbjEueG1sUEsBAi0AFAAGAAgAAAAhAOIrf3vBAAAAMwEAADIAAAAAAAAAAAAAAAAAInAAAHhsL3Bpdm90Q2FjaGUvX3JlbHMvcGl2b3RDYWNoZURlZmluaXRpb24xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAFX91neqAQAAQgUAACQAAAAAAAAAAAAAAAAAM3EAAHhsL3Bpdm90Q2FjaGUvcGl2b3RDYWNoZVJlY29yZHMxLnhtbFBLAQItABQABgAIAAAAIQCuC/2JuwEAACwVAAAnAAAAAAAAAAAAAAAAAB9zAAB4bC9wcmludGVyU2V0dGluZ3MvcHJpbnRlclNldHRpbmdzMS5iaW5QSwECLQAUAAYACAAAACEA8eoc7HoBAADfBQAAEAAAAAAAAAAAAAAAAAAfdQAAeGwvY2FsY0NoYWluLnhtbFBLAQItABQABgAIAAAAIQAjGHNKRwEAAGECAAARAAAAAAAAAAAAAAAAAMd2AABkb2NQcm9wcy9jb3JlLnhtbFBLBQYAAAAAKgAqAJAMAABFeQAAAAA=" + }, + window['Asc']['pivotBuilder'] = { + 'Editor.bin':"WExTWTt2MTA7MDsIBjARAAAHhhEAAAEYEgAAArITAAADeRYAAATfIwAAADQmAAAKEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkQEAABEBAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAEAAAANAAAAAAAHDgEAAAABAAAADgAAAAAABw4CAAAAAQAAAAAAAAAAAAcOAwAAAAEAAAABAAAAAAAHDgQAAAABAAAAAgAAAAAABw4FAAAAAQAAAAMAAAAAAAcOBgAAAAEAAAAEAAAAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQIAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAUAAAAAAAcOAQAAAAEAAAAGAAAAAAAHDgIAAAABAAAABwAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAKEAAAAUSBQAAAAEAAAAUrkfhehQmQAAABRIGAAAAAQAAANejcD0K1yRAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQMAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAUAAAAAAAcOAQAAAAEAAAAGAAAAAAAHDgIAAAABAAAACAAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAKEAAAAUSBQAAAAEAAAAAAAAAAAAqQAAABRIGAAAAAQAAADMzMzMzMylAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQQAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAUAAAAAAAcOAQAAAAEAAAAGAAAAAAAHDgIAAAABAAAACQAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAKEAAAAUSBQAAAAEAAADsUbgehesnQAAABRIGAAAAAQAAAHsUrkfheidAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQUAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAUAAAAAAAcOAQAAAAEAAAAKAAAAAAAHDgIAAAABAAAABwAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAJEAAAAUSBQAAAAEAAAAK16NwPYomQAAABRIGAAAAAQAAAB+F61G4HiVAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQYAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAUAAAAAAAcOAQAAAAEAAAAKAAAAAAAHDgIAAAABAAAACAAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAJEAAAAUSBQAAAAEAAAA9CtejcD0oQAAABRIGAAAAAQAAAGZmZmZm5idAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQcAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAUAAAAAAAcOAQAAAAEAAAAKAAAAAAAHDgIAAAABAAAACQAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAJEAAAAUSBQAAAAEAAAB7FK5H4XorQAAABRIGAAAAAQAAAClcj8L1qCpAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQgAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAsAAAAAAAcOAQAAAAEAAAAGAAAAAAAHDgIAAAABAAAABwAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAJkAAAAUSBQAAAAEAAADhehSuR+EmQAAABRIGAAAAAQAAAOF6FK5H4SVAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQkAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAsAAAAAAAcOAQAAAAEAAAAGAAAAAAAHDgIAAAABAAAACAAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAJkAAAAUSBQAAAAEAAADD9Shcj0IpQAAABRIGAAAAAQAAAPYoXI/CdSdAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQoAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAsAAAAAAAcOAQAAAAEAAAAGAAAAAAAHDgIAAAABAAAACQAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAAJkAAAAUSBQAAAAEAAAAfhetRuB4oQAAABRIGAAAAAQAAAIXrUbgeBSdAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQsAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAsAAAAAAAcOAQAAAAEAAAAKAAAAAAAHDgIAAAABAAAABwAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAALkAAAAUSBQAAAAEAAADXo3A9CtcqQAAABRIGAAAAAQAAABSuR+F6lCpAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAAAAEQwAAAAAAAAAAAAAAAAAAAAABw4AAAAAAQAAAAsAAAAAAAcOAQAAAAEAAAAKAAAAAAAHDgIAAAABAAAACAAAAAAABRIDAAAAAQAAAAAAAADgveJAAAAFEgQAAAABAAAAAAAAAAAALkAAAAUSBQAAAAEAAAD2KFyPwvUmQAAABRIGAAAAAQAAANejcD0KVyVAAAABCggAAAABAAAAAAABCgkAAAABAAAAAAABCgoAAAABAAAAAAABCgsAAAABAAAAAAABCgwAAAABAAAAAAABCg0AAAABAAAAAAABCg4AAAABAAAAAACSAQCRAQAAEQIAAAAAAAAAAAAAAAAAAAAABw4AAAAAAgAAABEAAAAAAAcOAQAAAAIAAAAQAAAAAAAAEQMAAAAAAAAAAAAAAAAAAAAABw4AAAAAAgAAAA8AAAAAAAcOAQAAAAAAAAAGAAAAAAAHDgIAAAAAAAAACgAAAAAABw4DAAAAAAAAAAwAAAAAAAARBAAAAAAAAAAAAAAAAAAAAAAHDgAAAAAEAAAABQAAAAAABRIBAAAAAwAAAAAAAAAAAEJAAAAFEgIAAAADAAAAcD0K16OQQkAAAAUSAwAAAAMAAAC4HoXrUUhSQAAAABEFAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAUAAAAJAAAAAAAFEgEAAAADAAAA7FG4HoXrJ0AAAAUSAgAAAAMAAAB7FK5H4XorQAAABRIDAAAAAwAAADQzMzMzszlAAAAAEQYAAAAAAAAAAAAAAAAAAAAABw4AAAAABQAAAAgAAAAAAAUSAQAAAAMAAAAAAAAAAAAqQAAABRICAAAAAwAAAD0K16NwPShAAAAFEgMAAAADAAAAHoXrUbgeOUAAAAARBwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAFAAAABwAAAAAABRIBAAAAAwAAABSuR+F6FCZAAAAFEgIAAAADAAAACtejcD2KJkAAAAUSAwAAAAMAAACPwvUoXE82QAAAABEIAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAALAAAAAAAFEgEAAAADAAAAcT0K16MQQkAAAAUSAgAAAAMAAABmZmZmZuY4QAAABRIDAAAAAwAAAKRwPQrXg05AAAAAEQkAAAAAAAAAAAAAAAAAAAAABw4AAAAABQAAAAkAAAAAAAUSAQAAAAMAAAAfhetRuB4oQAAAAQoCAAAAAwAAAAAABRIDAAAAAwAAAB+F61G4HihAAAAAEQoAAAAAAAAAAAAAAAAAAAAABw4AAAAABQAAAAgAAAAAAAUSAQAAAAMAAADD9Shcj0IpQAAABRICAAAAAwAAAPYoXI/C9SZAAAAFEgMAAAADAAAAXI/C9SgcOEAAAAARCwAAAAAAAAAAAAAAAAAAAAAHDgAAAAAFAAAABwAAAAAABRIBAAAAAwAAAOF6FK5H4SZAAAAFEgIAAAADAAAA16NwPQrXKkAAAAUSAwAAAAMAAABcj8L1KNw4QAAAABEMAAAAAAAAAAAAAAAAAAAAAAcOAAAAAAQAAAAMAAAAAAAFEgEAAAADAAAAuR6F61EIUkAAAAUSAgAAAAMAAACkcD0K1wNPQAAABRIDAAAAAwAAAIXrUbgexWBAAACSAQABUQAAAPoBDwAAAE0AaQBjAHIAbwBzAG8AZgB0ACAARQB4AGMAZQBsAAMAAAAABAcAAAAxADYALgAwADMAMAAwAAwADQAOAA8A+wAHAAAA+hIAAAAA+wKNAAAA+gEIAAAAUwBhAG4ARABpAGUAZwBvAAIIAAAAUwBhAG4ARABpAGUAZwBvAAQUAAAAMgAwADIAMwAtADAANgAtADIAMwBUADEANgA6ADAAOAA6ADIAMQBaAAUUAAAAMgAwADIANAAtADAAOAAtADAANQBUADEANgA6ADQANgA6ADIAMwBaAPsAAgAAAPr7lgEAAAAPAAAAAwoAAABTAHQAeQBsAGUAABcAAAADEgAAAFMAaABpAHAAIABkAGEAdABlAAAPAAAAAwoAAABVAG4AaQB0AHMAAA8AAAADCgAAAFAAcgBpAGMAZQAADQAAAAMIAAAAQwBvAHMAdAAADQAAAAMIAAAARQBhAHMAdAAACwAAAAMGAAAAQgBvAHkAAAsAAAADBgAAAFQAZQBlAAANAAAAAwgAAABHAG8AbABmAAAPAAAAAwoAAABGAGEAbgBjAHkAAA0AAAADCAAAAEcAaQByAGwAAA0AAAADCAAAAFcAZQBzAHQAABsAAAADFgAAAEcAcgBhAG4AZAAgAFQAbwB0AGEAbAAAEQAAAAMMAAAAUgBlAGcAaQBvAG4AABEAAAADDAAAAEcAZQBuAGQAZQByAAAZAAAAAxQAAABSAG8AdwAgAEwAYQBiAGUAbABzAAAfAAAAAxoAAABDAG8AbAB1AG0AbgAgAEwAYQBiAGUAbABzAAAdAAAAAxgAAABTAHUAbQAgAG8AZgAgAFAAcgBpAGMAZQDDAgAAAB4AAAABGQAAAAAAAAAAAQAAAAACAAAAAAQAAAAABQAAAAAEIAAAAAULAAAAAAYAAAACAQAAABEFCwAAAAAGAAAAAgEAAAAIBmEAAAAHKgAAAAEGAwAAAAIBAQQGDgAAAEMAYQBsAGkAYgByAGkACQEBBgUAAAAAAAAmQActAAAAAQYGAAAAAAQAAAD/BAYOAAAAQwBhAGwAaQBiAHIAaQAJAQEGBQAAAAAAACZADh0AAAADGAAAAAYEAAAAAAcEAAAAAAgEAAAAAAkEAAAAAAL5AAAAAx4AAAAGBAAAAAAHBAAAAAAIBAAAAAAJBAAAAAAMBAAAAAADIQAAAAMBAQYEAAAAAAcEAAAAAAgEAQAAAAkEAAAAAAwEAAAAAAMhAAAABgQAAAAABwQAAAAACAQAAAAACQQAAAAACgEBDAQAAAAAAyEAAAAEAQEGBAAAAAAHBAAAAAAIBAAAAAAJBAAAAAAMBAAAAAADKgAAAAABAQYEAAAAAAcEAAAAAAgEAAAAAAkEAAAAAAwEAAAAAA0GAwAAAAABBgMwAAAAAAEBBgQAAAAABwQAAAAACAQAAAAACQQAAAAADAQAAAAADQYJAAAAAAEGAQQBAAAADygAAAAQIwAAAAAEAAAAAAAAAAQMAAAATgBvAHIAbQBhAGwABQQAAAAAAAAACgAAAAAMTgAAAAAiAAAAVABhAGIAbABlAFMAdAB5AGwAZQBNAGUAZABpAHUAbQAyAAEiAAAAUABpAHYAbwB0AFMAdAB5AGwAZQBMAGkAZwBoAHQAMQA2ABE3AAAAADIAAAD6ABEAAABTAGwAaQBjAGUAcgBTAHQAeQBsAGUATABpAGcAaAB0ADEA+wAEAAAAAAAAABMvAAAAACoAAABUAGkAbQBlAFMAbABpAGMAZQByAFMAdAB5AGwAZQBMAGkAZwBoAHQAMQBiDQAAAAAAAAABBQAAAAIAAAAADwkAAAAABAAAACXDAgAMNw0AAAAyDQAA+gAOAAAAdgBiAGEAUAByAG8AagBlAGMAdAAuAGIAaQBuAPsACg0AAIMGAAA8AEkAbgBmAG8AcgBtAGEAdABpAG8AbgAgAE4AYQBtAGUAPQAiAFYAQgBBAFAAcgBvAGoAZQBjAHQAIgAgAEwAYwBpAGQAPQAiADEAMAAzADMAIgAgAEMAbwBuAHMAdABhAG4AdABzAD0AIgAiAC8APgA8AFIAZQBmAGUAcgBlAG4AYwBlAHMAPgA8AFIAZQBmAGUAcgBlAG4AYwBlACAATgBhAG0AZQA9ACIAcwB0AGQAbwBsAGUAIgA+ADwAUgBlAGcAaQBzAHQAZQByAGUAZAAgAHYAYQBsAD0AIgAqAFwARwB7ADAAMAAwADIAMAA0ADMAMAAtADAAMAAwADAALQAwADAAMAAwAC0AQwAwADAAMAAtADAAMAAwADAAMAAwADAAMAAwADAANAA2AH0AIwAyAC4AMAAjADAAIwBDADoAXABXAGkAbgBkAG8AdwBzAFwAUwB5AHMAVwBPAFcANgA0AFwAcwB0AGQAbwBsAGUAMgAuAHQAbABiACMATwBMAEUAIABBAHUAdABvAG0AYQB0AGkAbwBuACIALwA+ADwALwBSAGUAZgBlAHIAZQBuAGMAZQA+ADwAUgBlAGYAZQByAGUAbgBjAGUAIABOAGEAbQBlAD0AIgBPAGYAZgBpAGMAZQAiAD4APABSAGUAZwBpAHMAdABlAHIAZQBkACAAdgBhAGwAPQAiACoAXABHAHsAMgBEAEYAOABEADAANABDAC0ANQBCAEYAQQAtADEAMAAxAEIALQBCAEQARQA1AC0AMAAwAEEAQQAwADAANAA0AEQARQA1ADIAfQAjADIALgAwACMAMAAjAEMAOgBcAFAAcgBvAGcAcgBhAG0AIABGAGkAbABlAHMAIAAoAHgAOAA2ACkAXABDAG8AbQBtAG8AbgAgAEYAaQBsAGUAcwBcAE0AaQBjAHIAbwBzAG8AZgB0ACAAUwBoAGEAcgBlAGQAXABPAEYARgBJAEMARQAxADYAXABNAFMATwAuAEQATABMACMATQBpAGMAcgBvAHMAbwBmAHQAIABPAGYAZgBpAGMAZQAgADEANgAuADAAIABPAGIAagBlAGMAdAAgAEwAaQBiAHIAYQByAHkAIgAvAD4APAAvAFIAZQBmAGUAcgBlAG4AYwBlAD4APAAvAFIAZQBmAGUAcgBlAG4AYwBlAHMAPgA8AE0AbwBkAHUAbABlAHMAPgA8AE0AbwBkAHUAbABlACAATgBhAG0AZQA9ACIATQBvAGQAdQBsAGUAMQAiACAAVAB5AHAAZQA9ACIAUAByAG8AYwBlAGQAdQByAGEAbAAiACAAUgBlAGEAZABPAG4AbAB5AD0AIgAwACIAIABQAHIAaQB2AGEAdABlAD0AIgAwACIAPgA8AFMAbwB1AHIAYwBlAEMAbwBkAGUAPgBBAHQAdAByAGkAYgB1AHQAZQAgAFYAQgBfAE4AYQBtAGUAIAA9ACAAJgBxAHUAbwB0ADsATQBvAGQAdQBsAGUAMQAmAHEAdQBvAHQAOwANAAoAUwB1AGIAIABNAGEAYwByAG8AcwAxACgAKQANAAoAIAAgACAAIABTAGUAdAAgAHAAdgB0AEYAaQBlAGwAZAAgAD0AIABXAG8AcgBrAHMAaABlAGUAdABzACgAJgBxAHUAbwB0ADsAUwBoAGUAZQB0ADIAJgBxAHUAbwB0ADsAKQAuAFAAaQB2AG8AdABUAGEAYgBsAGUAcwAoADEAKQAuAFAAaQB2AG8AdABGAGkAZQBsAGQAcwAoACYAcQB1AG8AdAA7AFIAZQBnAGkAbwBuACYAcQB1AG8AdAA7ACkADQAKACAAIAAgACAAcAB2AHQARgBpAGUAbABkAC4ATABhAHkAbwB1AHQAUwB1AGIAdABvAHQAYQBsAEwAbwBjAGEAdABpAG8AbgAgAD0AIAB4AGwAQQB0AEIAbwB0AHQAbwBtAA0ACgAgACAAIAAgAHAAdgB0AEYAaQBlAGwAZAAuAFMAdQBiAHQAbwB0AGEAbABOAGEAbQBlACAAPQAgACYAcQB1AG8AdAA7AEIARQBCAFIAQQAmAHEAdQBvAHQAOwANAAoARQBuAGQAIABTAHUAYgANAAoADQAKAA0ACgANAAoAPAAvAFMAbwB1AHIAYwBlAEMAbwBkAGUAPgA8AC8ATQBvAGQAdQBsAGUAPgA8AE0AbwBkAHUAbABlACAATgBhAG0AZQA9ACIAVABoAGkAcwBXAG8AcgBrAGIAbwBvAGsAIgAgAFQAeQBwAGUAPQAiAEMAbABhAHMAcwAiACAAUgBlAGEAZABPAG4AbAB5AD0AIgAwACIAIABQAHIAaQB2AGEAdABlAD0AIgAwACIAPgA8AFMAbwB1AHIAYwBlAEMAbwBkAGUAPgBBAHQAdAByAGkAYgB1AHQAZQAgAFYAQgBfAE4AYQBtAGUAIAA9ACAAJgBxAHUAbwB0ADsAVABoAGkAcwBXAG8AcgBrAGIAbwBvAGsAJgBxAHUAbwB0ADsADQAKAEEAdAB0AHIAaQBiAHUAdABlACAAVgBCAF8AQgBhAHMAZQAgAD0AIAAmAHEAdQBvAHQAOwAwAHsAMAAwADAAMgAwADgAMQA5AC0AMAAwADAAMAAtADAAMAAwADAALQBDADAAMAAwAC0AMAAwADAAMAAwADAAMAAwADAAMAA0ADYAfQAmAHEAdQBvAHQAOwANAAoAQQB0AHQAcgBpAGIAdQB0AGUAIABWAEIAXwBHAGwAbwBiAGEAbABOAGEAbQBlAFMAcABhAGMAZQAgAD0AIABGAGEAbABzAGUADQAKAEEAdAB0AHIAaQBiAHUAdABlACAAVgBCAF8AQwByAGUAYQB0AGEAYgBsAGUAIAA9ACAARgBhAGwAcwBlAA0ACgBBAHQAdAByAGkAYgB1AHQAZQAgAFYAQgBfAFAAcgBlAGQAZQBjAGwAYQByAGUAZABJAGQAIAA9ACAAVAByAHUAZQANAAoAQQB0AHQAcgBpAGIAdQB0AGUAIABWAEIAXwBFAHgAcABvAHMAZQBkACAAPQAgAFQAcgB1AGUADQAKAEEAdAB0AHIAaQBiAHUAdABlACAAVgBCAF8AVABlAG0AcABsAGEAdABlAEQAZQByAGkAdgBlAGQAIAA9ACAARgBhAGwAcwBlAA0ACgBBAHQAdAByAGkAYgB1AHQAZQAgAFYAQgBfAEMAdQBzAHQAbwBtAGkAegBhAGIAbABlACAAPQAgAFQAcgB1AGUADQAKADwALwBTAG8AdQByAGMAZQBDAG8AZABlAD4APAAvAE0AbwBkAHUAbABlAD4APABNAG8AZAB1AGwAZQAgAE4AYQBtAGUAPQAiAFMAaABlAGUAdAAyACIAIABUAHkAcABlAD0AIgBDAGwAYQBzAHMAIgAgAFIAZQBhAGQATwBuAGwAeQA9ACIAMAAiACAAUAByAGkAdgBhAHQAZQA9ACIAMAAiAD4APABTAG8AdQByAGMAZQBDAG8AZABlAD4AQQB0AHQAcgBpAGIAdQB0AGUAIABWAEIAXwBOAGEAbQBlACAAPQAgACYAcQB1AG8AdAA7AFMAaABlAGUAdAAyACYAcQB1AG8AdAA7AA0ACgBBAHQAdAByAGkAYgB1AHQAZQAgAFYAQgBfAEIAYQBzAGUAIAA9ACAAJgBxAHUAbwB0ADsAMAB7ADAAMAAwADIAMAA4ADIAMAAtADAAMAAwADAALQAwADAAMAAwAC0AQwAwADAAMAAtADAAMAAwADAAMAAwADAAMAAwADAANAA2AH0AJgBxAHUAbwB0ADsADQAKAEEAdAB0AHIAaQBiAHUAdABlACAAVgBCAF8ARwBsAG8AYgBhAGwATgBhAG0AZQBTAHAAYQBjAGUAIAA9ACAARgBhAGwAcwBlAA0ACgBBAHQAdAByAGkAYgB1AHQAZQAgAFYAQgBfAEMAcgBlAGEAdABhAGIAbABlACAAPQAgAEYAYQBsAHMAZQANAAoAQQB0AHQAcgBpAGIAdQB0AGUAIABWAEIAXwBQAHIAZQBkAGUAYwBsAGEAcgBlAGQASQBkACAAPQAgAFQAcgB1AGUADQAKAEEAdAB0AHIAaQBiAHUAdABlACAAVgBCAF8ARQB4AHAAbwBzAGUAZAAgAD0AIABUAHIAdQBlAA0ACgBBAHQAdAByAGkAYgB1AHQAZQAgAFYAQgBfAFQAZQBtAHAAbABhAHQAZQBEAGUAcgBpAHYAZQBkACAAPQAgAEYAYQBsAHMAZQANAAoAQQB0AHQAcgBpAGIAdQB0AGUAIABWAEIAXwBDAHUAcwB0AG8AbQBpAHoAYQBiAGwAZQAgAD0AIABUAHIAdQBlAA0ACgA8AC8AUwBvAHUAcgBjAGUAQwBvAGQAZQA+ADwALwBNAG8AZAB1AGwAZQA+ADwALwBNAG8AZAB1AGwAZQBzAD4AEQQAAAB4AGwAUQIAAABFAQAAARQAAAAABggAAABUAGUAcwB0AAEEsQAAAAKEAAAAAxwAAAAAAQECBAEAAAADBAEAAAAFBQAAAAAASCpABgEBAxwAAAAAAQECBAIAAAADBAIAAAAFBQAAAAAASTBABgEBAxwAAAAAAQECBAMAAAADBAMAAAAFBQAAAAAAABhABgEBAxwAAAAAAQECBAQAAAADBAQAAAAFBQAAAAAAkiZABgEBBAwAAABBADMAOgBEADEAMwAWLwAAABcqAAAACgEAAAABDgQAAAAAAAAAFBYAAAAABgAAAEgAMgAzAAIGAAAASAAyADMACwoAAAABBQAAAAAAAC5ADjwAAAAABUfhehSuxzFAAQXMzMzMzAwzQAIFR+F6FK7HMUADBczMzMzMDDNABAV7FK5H4XoeQAUFexSuR+F6HkAJCQAAACMEAAAAVQ0AAAACAQAAARgAAAAABgwAAABTAGgAZQBlAHQAMQABBAEAAAACHgAAAAMZAAAAAgQEAAAAAwQEAAAABQUAAAAAAJIuQAYBAQQMAAAAQQAyADoATwAxADMAFi0AAAAXKAAAAA4EAAAAAAAAABQaAAAAAAQAAABBADIAAgwAAABBADIAOgBHADEAMwALCgAAAAEFAAAAAAAALkAOPAAAAAAFR+F6FK7HMUABBczMzMzMDDNAAgVH4XoUrscxQAMFzMzMzMwMM0AEBXsUrkfheh5ABQV7FK5H4XoeQA8GAAAAAQEJAAEBCQkAAAAjBAAAAIsCAAAYEQAAAAAMAAAAUwBoAGUAZQB0ADIA2RkAAAXUGQAAFM8ZAAD6AAwAAABPAGYAZgBpAGMAZQAgAFQAaABlAG0AZQD7AKIZAAAAFQEAAPoABgAAAE8AZgBmAGkAYwBlAPsADQAAAAEIAAAA+gBEAXICxPsBDQAAAAEIAAAA+gDtAX0CMfsCDQAAAAEIAAAA+gClAaUCpfsDDQAAAAEIAAAA+gD/AcACAPsEDQAAAAEIAAAA+gBbAZsC1fsFDQAAAAEIAAAA+gBwAa0CR/sIJgAAAAQhAAAA+gAKAAAAdwBpAG4AZABvAHcAVABlAHgAdAABAAIAAwD7CQ0AAAABCAAAAPoARAFUAmr7Cg0AAAABCAAAAPoAlQFPAnL7Cw0AAAABCAAAAPoABQFjAsH7DB4AAAAEGQAAAPoABgAAAHcAaQBuAGQAbwB3AAH/Av8D//sNDQAAAAEIAAAA+gDnAeYC5vsBuREAAPoABgAAAE8AZgBmAGkAYwBlAPsA/wgAAABOAAAA+gEUAAAAMAAyADAARgAwADMAMAAyADAAMgAwADIAMAA0ADAAMwAwADIAMAA0AAMNAAAAQwBhAGwAaQBiAHIAaQAgAEwAaQBnAGgAdAD7AREAAAD6AwUAAABBAHIAaQBhAGwA+wIRAAAA+gMFAAAAQQByAGkAYQBsAPsDewgAAC8AAAAAKgAAAPoABAAAAEoAcABhAG4AAQsAAAA4brQwtzDDMK8wIABMAGkAZwBoAHQA+wAeAAAA+gAEAAAASABhAG4AZwABBQAAANG5QMcgAOCsFbX7ACQAAAD6AAQAAABIAGEAbgBzAAEIAAAASXu/fiAATABpAGcAaAB0APsAHAAAAPoABAAAAEgAYQBuAHQAAQQAAACwZTB9DmbUmvsAMgAAAPoABAAAAEEAcgBhAGIAAQ8AAABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgD7ADIAAAD6AAQAAABIAGUAYgByAAEPAAAAVABpAG0AZQBzACAATgBlAHcAIABSAG8AbQBhAG4A+wAgAAAA+gAEAAAAVABoAGEAaQABBgAAAFQAYQBoAG8AbQBhAPsAHgAAAPoABAAAAEUAdABoAGkAAQUAAABOAHkAYQBsAGEA+wAgAAAA+gAEAAAAQgBlAG4AZwABBgAAAFYAcgBpAG4AZABhAPsAIAAAAPoABAAAAEcAdQBqAHIAAQYAAABTAGgAcgB1AHQAaQD7ACYAAAD6AAQAAABLAGgAbQByAAEJAAAATQBvAG8AbABCAG8AcgBhAG4A+wAeAAAA+gAEAAAASwBuAGQAYQABBQAAAFQAdQBuAGcAYQD7AB4AAAD6AAQAAABHAHUAcgB1AAEFAAAAUgBhAGEAdgBpAPsAJAAAAPoABAAAAEMAYQBuAHMAAQgAAABFAHUAcABoAGUAbQBpAGEA+wA8AAAA+gAEAAAAQwBoAGUAcgABFAAAAFAAbABhAG4AdABhAGcAZQBuAGUAdAAgAEMAaABlAHIAbwBrAGUAZQD7ADgAAAD6AAQAAABZAGkAaQBpAAESAAAATQBpAGMAcgBvAHMAbwBmAHQAIABZAGkAIABCAGEAaQB0AGkA+wA4AAAA+gAEAAAAVABpAGIAdAABEgAAAE0AaQBjAHIAbwBzAG8AZgB0ACAASABpAG0AYQBsAGEAeQBhAPsAIgAAAPoABAAAAFQAaABhAGEAAQcAAABNAFYAIABCAG8AbABpAPsAIAAAAPoABAAAAEQAZQB2AGEAAQYAAABNAGEAbgBnAGEAbAD7ACIAAAD6AAQAAABUAGUAbAB1AAEHAAAARwBhAHUAdABhAG0AaQD7AB4AAAD6AAQAAABUAGEAbQBsAAEFAAAATABhAHQAaABhAPsANgAAAPoABAAAAFMAeQByAGMAAREAAABFAHMAdAByAGEAbgBnAGUAbABvACAARQBkAGUAcwBzAGEA+wAiAAAA+gAEAAAATwByAHkAYQABBwAAAEsAYQBsAGkAbgBnAGEA+wAiAAAA+gAEAAAATQBsAHkAbQABBwAAAEsAYQByAHQAaQBrAGEA+wAmAAAA+gAEAAAATABhAG8AbwABCQAAAEQAbwBrAEMAaABhAG0AcABhAPsALAAAAPoABAAAAFMAaQBuAGgAAQwAAABJAHMAawBvAG8AbABhACAAUABvAHQAYQD7ADIAAAD6AAQAAABNAG8AbgBnAAEPAAAATQBvAG4AZwBvAGwAaQBhAG4AIABCAGEAaQB0AGkA+wAyAAAA+gAEAAAAVgBpAGUAdAABDwAAAFQAaQBtAGUAcwAgAE4AZQB3ACAAUgBvAG0AYQBuAPsANAAAAPoABAAAAFUAaQBnAGgAARAAAABNAGkAYwByAG8AcwBvAGYAdAAgAFUAaQBnAGgAdQByAPsAIgAAAPoABAAAAEcAZQBvAHIAAQcAAABTAHkAbABmAGEAZQBuAPsAHgAAAPoABAAAAEEAcgBtAG4AAQUAAABBAHIAaQBhAGwA+wAuAAAA+gAEAAAAQgB1AGcAaQABDQAAAEwAZQBlAGwAYQB3AGEAZABlAGUAIABVAEkA+wA4AAAA+gAEAAAAQgBvAHAAbwABEgAAAE0AaQBjAHIAbwBzAG8AZgB0ACAASgBoAGUAbgBnAEgAZQBpAPsALgAAAPoABAAAAEoAYQB2AGEAAQ0AAABKAGEAdgBhAG4AZQBzAGUAIABUAGUAeAB0APsAJAAAAPoABAAAAEwAaQBzAHUAAQgAAABTAGUAZwBvAGUAIABVAEkA+wAsAAAA+gAEAAAATQB5AG0AcgABDAAAAE0AeQBhAG4AbQBhAHIAIABUAGUAeAB0APsAIAAAAPoABAAAAE4AawBvAG8AAQYAAABFAGIAcgBpAG0AYQD7ACgAAAD6AAQAAABPAGwAYwBrAAEKAAAATgBpAHIAbQBhAGwAYQAgAFUASQD7ACAAAAD6AAQAAABPAHMAbQBhAAEGAAAARQBiAHIAaQBtAGEA+wAiAAAA+gAEAAAAUABoAGEAZwABBwAAAFAAaABhAGcAcwBwAGEA+wA2AAAA+gAEAAAAUwB5AHIAbgABEQAAAEUAcwB0AHIAYQBuAGcAZQBsAG8AIABFAGQAZQBzAHMAYQD7ADYAAAD6AAQAAABTAHkAcgBqAAERAAAARQBzAHQAcgBhAG4AZwBlAGwAbwAgAEUAZABlAHMAcwBhAPsANgAAAPoABAAAAFMAeQByAGUAAREAAABFAHMAdAByAGEAbgBnAGUAbABvACAARQBkAGUAcwBzAGEA+wAoAAAA+gAEAAAAUwBvAHIAYQABCgAAAE4AaQByAG0AYQBsAGEAIABVAEkA+wA0AAAA+gAEAAAAVABhAGwAZQABEAAAAE0AaQBjAHIAbwBzAG8AZgB0ACAAVABhAGkAIABMAGUA+wA+AAAA+gAEAAAAVABhAGwAdQABFQAAAE0AaQBjAHIAbwBzAG8AZgB0ACAATgBlAHcAIABUAGEAaQAgAEwAdQBlAPsAIAAAAPoABAAAAFQAZgBuAGcAAQYAAABFAGIAcgBpAG0AYQD7AZ0IAAAAQgAAAPoBFAAAADAAMgAwAEYAMAA1ADAAMgAwADIAMAAyADAANAAwADMAMAAyADAANAADBwAAAEMAYQBsAGkAYgByAGkA+wERAAAA+gMFAAAAQQByAGkAYQBsAPsCEQAAAPoDBQAAAEEAcgBpAGEAbAD7AyUIAAAvAAAAAB4AAAD6AAQAAABKAHAAYQBuAAEFAAAAOG60MLcwwzCvMPsAHgAAAPoABAAAAEgAYQBuAGcAAQUAAADRuUDHIADgrBW1+wAYAAAA+gAEAAAASABhAG4AcwABAgAAAEl7v377ABwAAAD6AAQAAABIAGEAbgB0AAEEAAAAsGUwfQ5m1Jr7AB4AAAD6AAQAAABBAHIAYQBiAAEFAAAAQQByAGkAYQBsAPsAHgAAAPoABAAAAEgAZQBiAHIAAQUAAABBAHIAaQBhAGwA+wAgAAAA+gAEAAAAVABoAGEAaQABBgAAAFQAYQBoAG8AbQBhAPsAHgAAAPoABAAAAEUAdABoAGkAAQUAAABOAHkAYQBsAGEA+wAgAAAA+gAEAAAAQgBlAG4AZwABBgAAAFYAcgBpAG4AZABhAPsAIAAAAPoABAAAAEcAdQBqAHIAAQYAAABTAGgAcgB1AHQAaQD7ACQAAAD6AAQAAABLAGgAbQByAAEIAAAARABhAHUAbgBQAGUAbgBoAPsAHgAAAPoABAAAAEsAbgBkAGEAAQUAAABUAHUAbgBnAGEA+wAeAAAA+gAEAAAARwB1AHIAdQABBQAAAFIAYQBhAHYAaQD7ACQAAAD6AAQAAABDAGEAbgBzAAEIAAAARQB1AHAAaABlAG0AaQBhAPsAPAAAAPoABAAAAEMAaABlAHIAARQAAABQAGwAYQBuAHQAYQBnAGUAbgBlAHQAIABDAGgAZQByAG8AawBlAGUA+wA4AAAA+gAEAAAAWQBpAGkAaQABEgAAAE0AaQBjAHIAbwBzAG8AZgB0ACAAWQBpACAAQgBhAGkAdABpAPsAOAAAAPoABAAAAFQAaQBiAHQAARIAAABNAGkAYwByAG8AcwBvAGYAdAAgAEgAaQBtAGEAbABhAHkAYQD7ACIAAAD6AAQAAABUAGgAYQBhAAEHAAAATQBWACAAQgBvAGwAaQD7ACAAAAD6AAQAAABEAGUAdgBhAAEGAAAATQBhAG4AZwBhAGwA+wAiAAAA+gAEAAAAVABlAGwAdQABBwAAAEcAYQB1AHQAYQBtAGkA+wAeAAAA+gAEAAAAVABhAG0AbAABBQAAAEwAYQB0AGgAYQD7ADYAAAD6AAQAAABTAHkAcgBjAAERAAAARQBzAHQAcgBhAG4AZwBlAGwAbwAgAEUAZABlAHMAcwBhAPsAIgAAAPoABAAAAE8AcgB5AGEAAQcAAABLAGEAbABpAG4AZwBhAPsAIgAAAPoABAAAAE0AbAB5AG0AAQcAAABLAGEAcgB0AGkAawBhAPsAJgAAAPoABAAAAEwAYQBvAG8AAQkAAABEAG8AawBDAGgAYQBtAHAAYQD7ACwAAAD6AAQAAABTAGkAbgBoAAEMAAAASQBzAGsAbwBvAGwAYQAgAFAAbwB0AGEA+wAyAAAA+gAEAAAATQBvAG4AZwABDwAAAE0AbwBuAGcAbwBsAGkAYQBuACAAQgBhAGkAdABpAPsAHgAAAPoABAAAAFYAaQBlAHQAAQUAAABBAHIAaQBhAGwA+wA0AAAA+gAEAAAAVQBpAGcAaAABEAAAAE0AaQBjAHIAbwBzAG8AZgB0ACAAVQBpAGcAaAB1AHIA+wAiAAAA+gAEAAAARwBlAG8AcgABBwAAAFMAeQBsAGYAYQBlAG4A+wAeAAAA+gAEAAAAQQByAG0AbgABBQAAAEEAcgBpAGEAbAD7AC4AAAD6AAQAAABCAHUAZwBpAAENAAAATABlAGUAbABhAHcAYQBkAGUAZQAgAFUASQD7ADgAAAD6AAQAAABCAG8AcABvAAESAAAATQBpAGMAcgBvAHMAbwBmAHQAIABKAGgAZQBuAGcASABlAGkA+wAuAAAA+gAEAAAASgBhAHYAYQABDQAAAEoAYQB2AGEAbgBlAHMAZQAgAFQAZQB4AHQA+wAkAAAA+gAEAAAATABpAHMAdQABCAAAAFMAZQBnAG8AZQAgAFUASQD7ACwAAAD6AAQAAABNAHkAbQByAAEMAAAATQB5AGEAbgBtAGEAcgAgAFQAZQB4AHQA+wAgAAAA+gAEAAAATgBrAG8AbwABBgAAAEUAYgByAGkAbQBhAPsAKAAAAPoABAAAAE8AbABjAGsAAQoAAABOAGkAcgBtAGEAbABhACAAVQBJAPsAIAAAAPoABAAAAE8AcwBtAGEAAQYAAABFAGIAcgBpAG0AYQD7ACIAAAD6AAQAAABQAGgAYQBnAAEHAAAAUABoAGEAZwBzAHAAYQD7ADYAAAD6AAQAAABTAHkAcgBuAAERAAAARQBzAHQAcgBhAG4AZwBlAGwAbwAgAEUAZABlAHMAcwBhAPsANgAAAPoABAAAAFMAeQByAGoAAREAAABFAHMAdAByAGEAbgBnAGUAbABvACAARQBkAGUAcwBzAGEA+wA2AAAA+gAEAAAAUwB5AHIAZQABEQAAAEUAcwB0AHIAYQBuAGcAZQBsAG8AIABFAGQAZQBzAHMAYQD7ACgAAAD6AAQAAABTAG8AcgBhAAEKAAAATgBpAHIAbQBhAGwAYQAgAFUASQD7ADQAAAD6AAQAAABUAGEAbABlAAEQAAAATQBpAGMAcgBvAHMAbwBmAHQAIABUAGEAaQAgAEwAZQD7AD4AAAD6AAQAAABUAGEAbAB1AAEVAAAATQBpAGMAcgBvAHMAbwBmAHQAIABOAGUAdwAgAFQAYQBpACAATAB1AGUA+wAgAAAA+gAEAAAAVABmAG4AZwABBgAAAEUAYgByAGkAbQBhAPsCxQYAAPoABgAAAE8AZgBmAGkAYwBlAPsAdgMAAAMAAAAAEwAAAAMOAAAAAAkAAAADBAAAAPoADvsApgEAAAShAQAA+gEB+wCKAQAAAwAAAAB9AAAA+gAAAAAA+wBxAAAAA2wAAAD6AA77AGMAAAADAAAAARwAAAD6AAgAAABhADoAbAB1AG0ATQBvAGQAAbCtAQD7ARwAAAD6AAgAAABhADoAcwBhAHQATQBvAGQAASiaAQD7ARgAAAD6AAYAAABhADoAdABpAG4AdAABuAUBAPsAfQAAAPoAUMMAAPsAcQAAAANsAAAA+gAO+wBjAAAAAwAAAAEcAAAA+gAIAAAAYQA6AGwAdQBtAE0AbwBkAAEomgEA+wEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAFYkgEA+wEYAAAA+gAGAAAAYQA6AHQAaQBuAHQAASgdAQD7AH0AAAD6AKCGAQD7AHEAAAADbAAAAPoADvsAYwAAAAMAAAABHAAAAPoACAAAAGEAOgBsAHUAbQBNAG8AZAABKJoBAPsBHAAAAPoACAAAAGEAOgBzAGEAdABNAG8AZAAByKkBAPsBGAAAAPoABgAAAGEAOgB0AGkAbgB0AAFoPAEA+wEJAAAA+gDAZVIAAQD7AKoBAAAEpQEAAPoBAfsAjgEAAAMAAAAAfQAAAPoAAAAAAPsAcQAAAANsAAAA+gAO+wBjAAAAAwAAAAEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAFYkgEA+wEcAAAA+gAIAAAAYQA6AGwAdQBtAE0AbwBkAAFwjgEA+wEYAAAA+gAGAAAAYQA6AHQAaQBuAHQAATBvAQD7AH8AAAD6AFDDAAD7AHMAAAADbgAAAPoADvsAZQAAAAMAAAABHAAAAPoACAAAAGEAOgBzAGEAdABNAG8AZAABsK0BAPsBHAAAAPoACAAAAGEAOgBsAHUAbQBNAG8AZAABoIYBAPsBGgAAAPoABwAAAGEAOgBzAGgAYQBkAGUAAaCGAQD7AH8AAAD6AKCGAQD7AHMAAAADbgAAAPoADvsAZQAAAAMAAAABHAAAAPoACAAAAGEAOgBsAHUAbQBNAG8AZAABuIIBAPsBHAAAAPoACAAAAGEAOgBzAGEAdABNAG8AZAABwNQBAPsBGgAAAPoABwAAAGEAOgBzAGgAYQBkAGUAAbAwAQD7AQkAAAD6AMBlUgABAPsB0AAAAAMAAAAAPwAAAPoAAAEAAgEDzhgAAPsAEwAAAAMOAAAAAAkAAAADBAAAAPoADvsBBAAAAPoABvsCDAAAAPoAAwAAAAEANQwA+wA/AAAA+gAAAQACAQOcMQAA+wATAAAAAw4AAAAACQAAAAMEAAAA+gAO+wEEAAAA+gAG+wIMAAAA+gADAAAAAQA1DAD7AD8AAAD6AAABAAIBA2pKAAD7ABMAAAADDgAAAAAJAAAAAwQAAAD6AA77AQQAAAD6AAb7AgwAAAD6AAMAAAABADUMAPsCEwAAAAMAAAAAAAAAAAAAAAAAAAAAAAADRQIAAAMAAAAAEwAAAAMOAAAAAAkAAAADBAAAAPoADvsAWgAAAANVAAAAAFAAAAADSwAAAPoADvsAQgAAAAIAAAABGAAAAPoABgAAAGEAOgB0AGkAbgB0AAEYcwEA+wEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAEQmAIA+wDFAQAABMABAAD6AQH7AKkBAAADAAAAAJwAAAD6AAAAAAD7AJAAAAADiwAAAPoADvsAggAAAAQAAAABGAAAAPoABgAAAGEAOgB0AGkAbgB0AAFIawEA+wEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAHwSQIA+wEaAAAA+gAHAAAAYQA6AHMAaABhAGQAZQAB0H4BAPsBHAAAAPoACAAAAGEAOgBsAHUAbQBNAG8AZAABcI4BAPsAnAAAAPoAUMMAAPsAkAAAAAOLAAAA+gAO+wCCAAAABAAAAAEYAAAA+gAGAAAAYQA6AHQAaQBuAHQAAdB+AQD7ARwAAAD6AAgAAABhADoAcwBhAHQATQBvAGQAAdD7AQD7ARoAAAD6AAcAAABhADoAcwBoAGEAZABlAAGQXwEA+wEcAAAA+gAIAAAAYQA6AGwAdQBtAE0AbwBkAAFYkgEA+wBeAAAA+gCghgEA+wBSAAAAA00AAAD6AA77AEQAAAACAAAAARoAAAD6AAcAAABhADoAcwBoAGEAZABlAAEY9gAA+wEcAAAA+gAIAAAAYQA6AHMAYQB0AE0AbwBkAAHA1AEA+wEJAAAA+gDAZVIAAQD7BAQAAAAAAAAAAAAAAA==", + 'Editor.xlsx':"UEsDBBQAAAAAAAAAIQDKnc8nnwcAAJ8HAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjxUeXBlcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9jb250ZW50LXR5cGVzIj48RGVmYXVsdCBFeHRlbnNpb249ImJpbiIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC5zcHJlYWRzaGVldG1sLnByaW50ZXJTZXR0aW5ncyIvPjxEZWZhdWx0IEV4dGVuc2lvbj0icmVscyIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1wYWNrYWdlLnJlbGF0aW9uc2hpcHMreG1sIi8+PERlZmF1bHQgRXh0ZW5zaW9uPSJ4bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi94bWwiLz48T3ZlcnJpZGUgUGFydE5hbWU9Ii94bC93b3JrYm9vay54bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQubXMtZXhjZWwuc2hlZXQubWFjcm9FbmFibGVkLm1haW4reG1sIi8+PE92ZXJyaWRlIFBhcnROYW1lPSIveGwvd29ya3NoZWV0cy9zaGVldDEueG1sIiBDb250ZW50VHlwZT0iYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LnNwcmVhZHNoZWV0bWwud29ya3NoZWV0K3htbCIvPjxPdmVycmlkZSBQYXJ0TmFtZT0iL3hsL3dvcmtzaGVldHMvc2hlZXQyLnhtbCIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC5zcHJlYWRzaGVldG1sLndvcmtzaGVldCt4bWwiLz48T3ZlcnJpZGUgUGFydE5hbWU9Ii94bC9waXZvdENhY2hlL3Bpdm90Q2FjaGVEZWZpbml0aW9uMS54bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtb2ZmaWNlZG9jdW1lbnQuc3ByZWFkc2hlZXRtbC5waXZvdENhY2hlRGVmaW5pdGlvbit4bWwiLz48T3ZlcnJpZGUgUGFydE5hbWU9Ii94bC9waXZvdENhY2hlL3Bpdm90Q2FjaGVSZWNvcmRzMS54bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtb2ZmaWNlZG9jdW1lbnQuc3ByZWFkc2hlZXRtbC5waXZvdENhY2hlUmVjb3Jkcyt4bWwiLz48T3ZlcnJpZGUgUGFydE5hbWU9Ii94bC90aGVtZS90aGVtZTEueG1sIiBDb250ZW50VHlwZT0iYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LnRoZW1lK3htbCIvPjxPdmVycmlkZSBQYXJ0TmFtZT0iL3hsL3N0eWxlcy54bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtb2ZmaWNlZG9jdW1lbnQuc3ByZWFkc2hlZXRtbC5zdHlsZXMreG1sIi8+PE92ZXJyaWRlIFBhcnROYW1lPSIveGwvc2hhcmVkU3RyaW5ncy54bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtb2ZmaWNlZG9jdW1lbnQuc3ByZWFkc2hlZXRtbC5zaGFyZWRTdHJpbmdzK3htbCIvPjxPdmVycmlkZSBQYXJ0TmFtZT0iL3hsL3Bpdm90VGFibGVzL3Bpdm90VGFibGUxLnhtbCIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC5zcHJlYWRzaGVldG1sLnBpdm90VGFibGUreG1sIi8+PE92ZXJyaWRlIFBhcnROYW1lPSIveGwvdmJhUHJvamVjdC5iaW4iIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQubXMtb2ZmaWNlLnZiYVByb2plY3QiLz48T3ZlcnJpZGUgUGFydE5hbWU9Ii9kb2NQcm9wcy9jb3JlLnhtbCIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1wYWNrYWdlLmNvcmUtcHJvcGVydGllcyt4bWwiLz48T3ZlcnJpZGUgUGFydE5hbWU9Ii9kb2NQcm9wcy9hcHAueG1sIiBDb250ZW50VHlwZT0iYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LmV4dGVuZGVkLXByb3BlcnRpZXMreG1sIi8+PC9UeXBlcz5QSwMEFAAAAAgAAAAhALY+S+F/AQAAKgMAABAAAABkb2NQcm9wcy9hcHAueG1snZJBT+MwEIXvSPyHyHfqtCCEKscIFRCHXW2lpuzZOJPGwrEtzxC1++vXSdWQLoeVuL2ZeXr5Mh5xv29t1kFE413B5rOcZeC0r4zbFWxbPl/dsQxJuUpZ76BgB0B2Ly8vxDr6AJEMYJYiHBasIQpLzlE30CqcpbFLk9rHVlEq4477ujYaHr3+aMERX+T5LYc9gaugugpjIDsmLjv6bmjldc+Hr+UhpDwpHkKwRitKfyl/Gh09+pqyp70GK/h0KFLQBvRHNHSQueDTUmy0srBKwbJWFkHwz4Z4AdUvba1MRCk6WnagyccMzZ+0tgXL3hRCj1OwTkWjHLGj7VgM2gakKH/7+I4NAKHgY3OQU+9Umxu5GAxJnBv5CJL0OWJpyAL+qtcq0v+IBwY2YSwBaUo3qk0PPv8CfkL456Mr3wbl0mb5qH4Y947bUPpHRXDa83lTbBoVoUpPM77D2BAvCTja3r9qlNtBdfJ8HfRX8Xo8fTm/neXXeT4cw6kn+OeRy79QSwMEFAAAAAgAAAAhACbdW0w6AQAAYQIAABEAAABkb2NQcm9wcy9jb3JlLnhtbH2S0WqDMBSG7wd7B8m9JmonJaiFrfRqhUE7NnYXklMbpklIstm+/dS11rKyy+T/zpdzDskXh6YOvsE6qVWB4oigABTXQqqqQK/bVThHgfNMCVZrBQU6gkOL8v4u54ZybeHFagPWS3BBZ1KOclOgvfeGYuz4Hhrmoo5QXbjTtmG+O9oKG8Y/WQU4ISTDDXgmmGe4F4ZmNKKTUvBRab5sPQgEx1BDA8o7HEcxvrAebONuFgzJhGykPxq4iZ7DkT44OYJt20ZtOqBd/zF+Xz9vhlFDqfpdcUBlLjjlFpjXttwwtZRQ6RxPLvsF1sz5dbfrnQTxeJxwf7P8NNhvPYiga4j+tn9O3tKn5XaFyoQkaUiyMEm3cUbJnCbxR//0Vf1F2Jwe+d84C8k8JA+9cZbRJJ0Yz4Jy6Pv6U5Q/UEsDBBQAAAAIAAAAIQC4WXGw/QAAADMCAAAUAAAAeGwvc2hhcmVkU3RyaW5ncy54bWx1kUFLxEAMhe+C/2GYuztdYWWRtgsWtxcP4u7ieWzTdmAmqZNU7b+3oqcOHvO99xJ4yQ9fwasPiOwIC73dZFoBNtQ67At9OR9v9lqxWGytJ4RCz8D6UF5f5cyilixyoQeR8d4YbgYIljc0Ai5KRzFYWcbYGx4j2JYHAAne3GbZnQnWoVYNTSiF3u20mtC9T1D9gu1elzm7MpfyJLOH3EiZmx/wBwc3qtZKIlzQCa/hc3RN4qyIZc0ebcoeaF6jMyTbavLdmh0tNkm2dtGv2SukZ+u4lK7OJDaxv0C/fCsJALYQEy99qif7Bj4ppSI/BfxHPE1BUadWxZnl6eU3UEsDBBQAAAAIAAAAIQBD1tZK+AIAAMYIAAANAAAAeGwvc3R5bGVzLnhtbL1W32/aMBB+n7T/wfJ76iQlDBChKqWRKnXVpDJpryZxwKp/RI7ThU7733dOAgR1XSfajRf7znffffZ9jple1FKgR2ZKrlWMgzMfI6ZSnXG1jvHXZeKNMCotVRkVWrEYb1mJL2YfP0xLuxXsfsOYRQChyhhvrC0mhJTphklanumCKVjJtZHUgmnWpCwMo1npkqQgoe8PiaRc4RZhItO/AZHUPFSFl2pZUMtXXHC7bbAwkunkZq20oSsBVOtgQFNUB0MTotrsijTeZ3UkT40udW7PAJfoPOcpe053TMaEpgckQD4NKYiIHx7tvTYnIg2IYY/ctQ/PprlWtkSprpSNcQjYbrOTB6W/q8QtQYe7qNm0fEKPVIAnwGQ2TbXQBlmozFwQeBSVrI24ooKvDHfOnEoutq07bPI21JSggdbjD5yv2UCXKzn0wzlJW/Xl2ma9inGS+M3v3xFohhKAuBC9o2odsyloyjKjEjBQN19uCzgTBfJvYZq4V6LXhm6DMOolNAPUXWmTwXXbVXb9aF2zqWC5hQTD1xs3Wl0Qt2gttH82zThda0WFg9xldBOATZkQ9+5KfsuPsOscqUom0t5kMYbL7Xa/mwKhbtrCtIbD76O12D3Y4UmwqM73+C9lB69nI1oUYuvE3Mn0DUxQwR+1nVdwwOod0Bpmd5VcMZM036v3wrwUfK0k27WU7ky00YY/AZrTuRNP07s6/68lEVcZ23ejqU46wfRUeaTJvRe5Kx7jO3daokdhVXFhufqNHgEzqw9SbFat+9wfVwGMjOW0Ena5X4zxYf6ZZbyS4T7qixNCF3WY37qLGAxdDVbb29I2I6oMj/GP6/mn8eI6Cb2RPx95g3MWeeNovvCiwdV8sUjGfuhf/ew9Om94cpp3ApoaDCalgCjTbbYjf3/wxbhntPSb8wPafe7jcOhfRoHvJed+4A2GdOSNhueRl0RBuBgO5tdREvW4Ryc+TT4JggP5aGK5ZIIrdkx/2fdCk8D8wybIrhPk8Adk9gtQSwMEFAAAAAgAAAAhAJYLfMaVFwAAAEgAABEAAAB4bC92YmFQcm9qZWN0LmJpbu07DXhb1XXnPcm2rNip4pjgOCkI21AnxO6TLMt2iltLshQH5Ni1TX6K21i2XmwR2U+VnmIHSKIESkMHawp8a2jXLKz7vlFK17TQQrtBA2MdTfdB2GAFuo2y0jVd/+g3tsE6rJ1z7316kvyDMS0t37jK8bnv3HvP/T/3nHNvzj6x6gd3fqX2BSgK7wcLzGbLoTSPJglgwQEgA4fZbDZrkLPvhLdVeA1hBc5bNYIVoQSB5rwMwYZQjmBHqECoQqhEWInwLoTVCKvE/F+E+DwRX4P4QoQahLUItQjrENYjvBvhAr58wIlQJ8rM/m6H4f9tGAANfzrORRCmECdhf7EoWDSswRVj8Kp4nbwnEwekHT9+TrLQRwOnbQc/+N5QjYXBhhLJqN+yQJ5jW3m9Rv35ab3Y+yikIQ4quJZRvwMlYP54LrVcVAzWbvwNwgD0I3Yvr36J9ivt26XWT/XcI0aBEMlwGrvF9j/JCGpy/v6nPUz7n+QCyQKSISQDaP+fD4vvf5IPTgSSGyQD6oEviYsRLkF4D0IjwgaEjQiXImxCaEJoRngvgoJAc0ayowWxB6EVwYvQhtAu0jYLfBniTqCzDeADCF0ItPb8CAGEboQgQghhC0IPwlaEy0X5MNB6AdiG0IfQj/BBhAGEQYQhhCuB1jTADoSdCLsQPoRwFcKw4PMRoHkHGEGIIIwijCFEEVSRZxzxBEIM4WqEvQhxhEmEKQQNIYHwUYQkQgpBR0gj7EOYRphBoN18DcK1CNchHEA4iHAIIUPzv0YC60sYCeOMP0WDLvOFtAtn/3M068AXyUOa55uUYmyyr2NcYovIWHbZrBWWvgEKAy0l4kzLrwxMNUKSbOKLOiO/HhtefW/QYGDSjMY+L76V37mmcpK12Gs32lmbG8ja8Dwx26Kpi5e9fW4++TIPGLH2XOyyXIznM0aNL4HjhKXjVr6zKId8vVMmbMMvRcyAUYPRT4rTrqedvaKqQRa0keI8xvd12Z68uSEpREvgBrY+GMXK8Svi2yG+GxFP4Ap5QPr91UKpfTW/5+2jjdZlnc3SlmzI0qmezTrFFqV0kmrVeXSSkl0yT7cKOs0lYYPPy7NmfsITIv+Ls2Z+Y/4dAu/EPGdlLqWfyitP64zodDo8mkevyWv3fXl0g2+NEGynBH5A4NOIRyycH53lVC5h4fyw3Zolr90Ji8nvuChvrEubsR4FrhHYKXCjwIrA7QJ3CdwjcD/i00XtOSva82LROJ7Na4/B/5jAxwU+KfBdAp8SmE4Pq+BPYUTwod1GYtiB/UtY+fwaOo7Tyuctf3yNA8NWxM8BhXQjGP1tF/u2S+AegfsF3inwiMATAicEnhE4I/BRK0mpAuUuJ6eKw0J0I9jyeNhE62GRMvxg+o/pb2AjpQZUWIZRKdgjfhtxyX4IlZJ2POg7UDFpQ5oHJIfI5kJcj3/dIFUVkVrwNw9xj1lYEcS25RTmRA81ZumFq4oKKxgr4jiKWtjz8CbC7BkJh73usA1VUXHmH7ZZFVS6SNBQvAKVTqeIk/o5g3Er5pdxN7LJy5TnNsZCcQp4nGHJP7K2M6oG5nY6KXCXwEclc9uwbyj87hfpj4nvYwKPGNtApD8gvu8qytco0p8R368Upb8k8GmBfwCF+Z8pooPg5xC4XWBFYOMYchZhI1+PwF1FeKfAE0XYoCcEnilKN47lY0X0x4x+G+0zxHRRutHuCSgU5zXGeIn0lwQ2xNIrRXz75cL0c5J5DOSndwk8IpOh8jPZCUflRjgna3uc/Wy8RPpJxD9HbbgUBtTxmDZ1Dw48fQ1OqKruboBNsoSqTzP7m8G/zciH9UsmHboE/EH/gA8495dlc/3tNI4XkB48BT5dT8ZG0zqozu3+3dsikxjpdNb1ami7xlVXXaV9ENKjzt7IWFLLpFyNGyrtTmQ0qOrOxD495Iip8Sic2qElYW+KGpZqtNYNSivddRua+yG2T9OHIqPxhJpqdFnXyyPQM3CadabO+pmSWzPN4ch+DevWQNf0SDysjVVEdLTSRmbiPv20X9N1bdJyqNR1fcmlJV/j/bn3WHAq6oR1lXZLoUQuDskrM8AtEQOw3wev4wYKszTLRU6OxfbGXCTrydp8oYSnbxCuyjvLOP6C+D4s8JMCvyqwS+SLCfywEPq/EnitqHirwJ8S+FmBO+yiHoFfFXitMJp2CXyTwPcAt+iw6X2bPdnVcHHjUBZXhTWa3TzBIjPZEhkaLFD5DB45tplsZRTXhy2anf1MdbaU/Bz+l2fLEFut2dltG6wwk41mW6uzUDX78AQ7gi7GlGyAzPBqpm4jm6NYZ6MYs1+N0F8Hi/NZsWKx9TzG/s6geRdFqEb6y7MyUauY7XkIFgh8/ihkBBh18GEyvSP0xXWBBjgs0oDZAa9lzVDEfmqRqnk/0H6VSDY+JXP7FcS++T7i9wr1iNuvJ0KUUo8fJLvns1/nacASw9LsV9tiLHgT6O9S7NcKyP5GQr7/qWVZHX/j/q8OhHERH8L1GYMU7EDpgsIJdQfyR+5dcv21IEu0do1BX0qZ9yH8RCyNQaxfxZ++LO8bSSg55ydbav1XIOziGw5HnXtAd+MMDKCCczkEIcA8SUsLtcsYf/LNfa6Kx5e/crh9Mii8DBIMOnKxnL+h2I8gwTZUGK9FoJ8boR11xg5oEhSlIBaYQ8v/eVClPsB8lVSHJDE7JcPvERwg2ifNvZmiuOGPoO8eKBQBjblxMk+u4hGebzwWoxfXv9CYSsxi4XbEm9agjYHJl0Biik4tqFEMTeBuRD1h76imOfaiXmG/2R9JSfLNyrWKoriV/nZXRxM4FIstUAbVcpXUoCge74HDlddtiWujkbh01jGYiIxJt4YicWtKrYgGkmpEt6F2cd6F/Uk1ekwdi0egdGsUvmIbSqYr/cGZhIYZq9cPqZOJOER0tVtNxvZZ5Kpb/ekUahax0mus3ZaFdieT/zRTYdzQLwI3W6/B+CDCnxfI//47lib/Z+8bqXzqust774lsq3tp8hf3O21cLTvNmYXmNAGh+fYzD6t9scCt29efit77o11v2/Ng+eE3JQ/cRVJgufLgFPzm5IF8PedDfs5EXum5fCoYnyMnNzIln0qdBK4FzS6Sn74TBQuqsI3FdS1Gp4XVk8epS+h2uqzL888c3aG9NXLnrgXlDppLXWgvkcA557dGUrLOBM5pt9LuVprAabWtDKC8Wc/ljXzAkDcXSY8a8sYWN+SNQzfkjTNqyJtV8EVD3tg0Q95AXMib0n1yg5A3FbHF5E1xkLxfzUhshCVQNsrysXJIVJf2WOCIDNEfWq1gRwV7u9/Xn9SuVo+O6SV0S9UlV19dKts7ZXuZnJSqbSWlVeVyFRv+26FCvvwy2b4GpGQmpUe1uPp+eS0qSDpEUTHK0D1lJeosF8sfAcvG4S04SBkUy54WHCTbu63WANjllVIVDhJ4D9S7m5V6BeoDm4d3xKaw/HRqeHB/aoezb4fXM2xR3c2gRpLbI/G0GorFdTWZGp9VUJUhk5EsxtRf/qcClRmcPrTitsdSsdG4yhP6v62AnSWgCunfvS+S3B3SkleHFXAUUnOsDv1SgQrBqicWjapTnP6M06xicEKbjk2Nb53yzcRS1U1YBVmwofTUGNqibQMKlIiMM/HB9OTB1QqU5QgBLT2lH81g8wWpOxkZH9IGtOkrNyrwLkHklqw/HpnaG45Nqe5HsHI03BN4RoUjo2pcTX17DXKF3tT4dr828/y9Cqws7JBIGbvf7A412xePb9XVydQhbNSagsoG06OG2RzRsR8DXQrYcs3m1vPXPmAMJ9F8OqeWn8vvoE8f0hJnWqh1Ist3/2FO60TK43+b1zpRP2419YJbFJBpb47ggr2IHWv5guA9Mu1em0xX6pfK5Euzy0tVEWtlEnLrmYi5QCaneQmziiR2HZu/Y3J/5pKLKcOwBU8HN3TjqduOf0nKB1D+t6LOHEKtuQm1R3JA+jHmx/QgpvDTwYc/fip4BN2Np0M9/m1GTvWYUo+cNmMN/Wh3aGiPJCECk+BEvjH2GiCF8UaYwdxe2ID5AphrEn8aGqX5uYahF+NjjEsKYQ97TUF2RQRpKm7bYdTrQ/jbijyC2FovKzOI1GZsWxh/9fPy6GPuY6Kr+EXlmrHdRB+Fq5E2xnKFMccoa33x2w0LDqGMv1KUKWip4LSSclSFUI3xNQjr5SiWTi5R1s0XbOxMLTyNXi98GGGzcHXl25/KMuqn9w/EipwvS61/D8K+srn1v1XvP24AfodPodDqm2b3+28kVC+j/huBv1GgoMdH6/vCQSf40ihxUECt16ZgBKTrg3179nTHxm4I4irMQOwpGDsS/LPMqs9kpMNBcHeH2rsVD27FVn/I1+RSMi5/k7872JoJPuXzZQKeTIn7aDBzHMaTkUknni2gppyNM+3eDZnhgDY5qU1ZymG4NzaW1FK42nXn4EQkiVtluC8U2hrAPeId7h3sa+6uCYfrP+64vt/p8jqbFWff6OFHneHTsdFkJLkfVUep7l1HvmeB1UcsD2m2tSgr7b1aNH06rrq2wEqpFE4djUJa/qoLassdn3A7bOszFagb+aUjLn/y8ysALvDLQalkk7/W882L/LZLS/zSWn8KLaDUDuAW0N4t1VDTVTp0WkeryAo7Mk7mo3j6tKSdlmofX+F+bsUTDY+2Wp5oOBGq89f/TYPk+yx3/G4575F1g131ate0Du6rMr4tZe5tZU+s+9LZdf32O76zzvHIBb33auXfL7ntio1floDfldF8SGw+ecwIUu7hg4QGRRnC3B/zxEmFnlTUSg5KRSALjCUOooFykDxxRxCuB/7u5GMCf1zgmxB/AuEPEG5GuAXhDxE+KdLfCW/vMCYcrORJLxdrzDBLN4gl2PDo9OqVt1uuOL7uxJ6RfS81S1COS2stwg+txrokXnje2Hw5v+/Dwi9PKYZtQ3EJvpBLAfiGSJHtc62dJxdJe1WkWYUaMzf4FngOeJF1fvoHS+anI3uZDgsSLShZsLRMD+GYmBBSgrKQ4cm3fsGXy8Lbn7MBxnTkYPmltdCnsBpzkdGGmjrmMqSmITSFzOQkQ2waUjM6jKwJ2ppdiIJtzd3hMM6cbOG1YuX2rZI5/lbsEc3RRwVtlRi/wtOXGrm6yPFBT74/sHAjzXbh0REbU4eTmqYP8zgK9ODOQDDcHNwZpPGhsQ7OjKlxat3+vGsvSayfOwVtg5jFrjmtU4qGEFetfCFvHRk7hq3DTB1uSLmb8bQzZoeTqPo78h5RGGvpYUErF4ulf0714bOvNP3PVescD/4I7obufxmoQr7B5c4gP/aMUy8cNhrJB4+NkTW/kXyH3iloHWLljhQ0Mrdu6U4wReuwsgIq8nxOGFtR83eRL7PtS7u5nO3o/HOH1somaaPQw00vjQf1ldCb8NLQw4Fm5FQPHW+pHs597QZuwza4xFeQfRna+HZ2J5HGknHk4UecYrypPrqnQHUJEviLM2oEa4qx9qQKZuCSeUaunb2jeDMj58J2dizLgnk9G2OYpdFr8OECOrdYgrCT2S9hrJ/iwQWsliDWSKXiy7JZ/grmW20tb8onyK0+pWDMdmALpphLZZqtnUFsB91C9SF4sdxwzuVCI0nldYyNYvk+bH2QrYA06GwtmvOfHzy52X/Hfv3t2a+mRkB/uQdzKXqPcdqQNC1Om+/FwkOaBVYW/W+BapjvYRc9DSnOmc3S42lDLAPZHvRyZaHLT2I8VMS4Bcg/s3CZbPaEuJmglzHQyl7ZVRTcbxLb7fOwvVQuzJfN0lUJhR5i9SXGit7P8NdSS1cu3wkUapY5ZvA7HuueBer/pzPrP3jjtkeE/frCzUSjLbNtKvut8z870nf4yb/+0H/d+P4bDXpCPPa9z/on59KlT3+X6LS4nq76zi3Hmz8W/NTkaw/++OhLXzfyEzZedY2INlD5e6OfuuPAi6deNcoTNl5rHZWNxyfXSPvBIp1jTsdRkDPVQP9lYSvK5vvAKr6Gkmm1xMr0z8ylClisqCb/978qUGJFzdHl/aRDRFvcTxtRrye0inKiNnXvVxWwUhHvl+pFrO0vMGazCgXfZT9fgVIr1zBvG1HAbjW1/4e+RWlcsTsvrUCZVRgWo6tM3/Xu4L5IPB3R1ZpnMccNNubiFYrczioFKqz55kfDi8SSmxvnanNx909qTa8y5eUvv57Ejq4Q1H7j6ZeaumvarN4XjXLn/CX1ph85oMXTk8Jpv/YO6q5R/+q1pkd7d7e6J5KO61c/guysuVpLniVnPvId0lh1r51QYFWmwHVtJjZW4qBDKB5JqV9LGA0w7xmI/qces7UD2jRv1Yl4rhJGuP8F0/EfiKuRpC8eF/cc/4aDXUpefr828+kB082+RdW7I3qk8WM4sRCMpPRbwRyBAXVPUk1NsDY232fy5vcHyJxdIaS8FyLvgiT9jOGoF0POrlwCajy++TbzUoMRX7zC7BjdK/RHxtXUPXfmJrXl380J9vzUjLf+zIx7f15rtuDKRBTX0d//75ybmRz3X91tdjEcS+khLTmZxkF+fiTHse0XeUuJBogPuOOgSR3U0skxlS4ZPBlzOfjG9Ng+rP/T15n9HIhMjavPVZhFWSY2HA/eb1LNtfn5L5grlq9CxqLyhFkPrgFGq34M+2nMol+L7mfUP+4075gKEu62mpxZVYzqviZatEV4d6tr2dVQhK2a++Nzr4Z4yjdHzNHvVuOqrj4wgy3N3ap1jMy5OxtU9UPHjAU15+7skTZzgXYnY/H4kHbqfLq4wn6y5rGbpy6paOwY9YiT2oycYvh1yaRoB+vroXcreMQkp0t3U5apaTbTzrg5UTQjqdpb5vRTcLs7Ya4b3HS5ZbHrk+bo8allnC/eZvYiEEnQVZhjxpzBfi0VI9q6fzZL9yVj6pTObs3Om86/NeMXiGfuzr81M8TAVTeZk03XgjmpdfsOk/NMnJY+I5+pyyfnerH2NnEPSJd95TfNdw9IKbfcnLdfxU1b6nE6VIyVOTV+5RNm2408X5ycM91GkidIc8uvL3nzU8+5zKHOT6j+dd7OSCeTOFrUr64aQ7oKwccEkxB9N34xPxHoCVyaGQ6ktjuZOcFV9hKAFRVQ+ESOPB9VRW4hoj07l1Yiw66iJ7h0UlPu7xXlLqV3PEBelhjsYwboEJoDo8JAmZtKxgsZmFGRWs1aqbKUNJo3Y8Icw1pKjTYc5Yj14Jl5euCYefk7j/66NXRT9vEH2s5bS74VS/HLH6L945WTP421toQfUDf0rrz/RwGireouzEc+P3Jj5Y4/w/nSBUbAwZVIqTEabFiQyG6FnXU2bxokeqzXzWykcRwaDQaY3UoOnNpFJtBNOST637ZhLLkf08li9ePARbCmvczymsJ8ZZiL+AxgPIFA9myYTYAqpoA6RI4jw71YCVC21m5O6qC8Ah4TPcOOr6A3xQFW3xSz8YpbhvzY85BtzGblLagRS4165sN642hv6pg2ifUbS5FaOC5GCr+lTUV9o5EYZVa5znw3YYzl+2fkOc+J574/p9uRAyKfHcz35/kqMID5Ht2gYZ/KDZ/zLuFl40ii/6m7wDNmofzN+X/o+frdIo9kuaL3Jl6xLu/VqRno/pWUdnrkbozM6wXaij9e/L8FvKFQPDNvdXg717+1u7Pu2jalI+Bv8Qeb/K0ef5OnQ+lu8nsCSpMr5A15ve5AKNTuPVBXaeeLtVOs2Up7tzaWnsQzpzN/tb73kh5FhLwcfKEWpJGu2FlnWkZYQY8aTwS0KV2d0alhCpK245GF539Am0ygIoBqS4u7s66lo8XtdiMXzBDo3dJZ1+5qb+lwdbR1tOYDpnb3+zvrXG2uVqXN36L4u0M+JahwwNQtgc46X7cv5O92dwRa/cGAl8BD/5+m0n5Vj5bSncEZXZ2Kqknn1qk92ocr7bkeuDqvbWlvcXd7PUpTINSBo+UKhJrag56WJgW5BzpcLkVp9R14HwrN9+X3GzmzgyERGVM/bAyqq7PFvcnp6djkdHlavZucXq9rk7PSnj+wncomZ+5foNLOh3ReqquYuuD8/x9QSwMEFAAAAAgAAAAhAEi8MxN8AwAAmggAAA8AAAB4bC93b3JrYm9vay54bWytVdtu4zYQfS/QfxD0zkikbrYQZ6GLjQbYFkGSTV4MLBiJtghLokrSsYMg/96hbPnS5CFN17ApzXB45nDmkL78tm1q65lJxUU7sfGFa1usLUTJ2+XE/nE/QyPbUpq2Ja1Fyyb2C1P2t6vff7vcCLl6EmJlAUCrJnaldRc7jioq1lB1ITrWwsxCyIZqMOXSUZ1ktFQVY7qpHeK6odNQ3to7hFh+BkMsFrxguSjWDWv1DkSymmqgryreqQGtKT4D11C5WneoEE0HEE+85vqlB7Wtpoivl62Q9KmGbW9xYG0lfEP4YRcGMmSCqXepGl5IocRCXwD0nvS7/WPXwfisBNv3Nfgckg9FeOamh0eo8ItY4QErPIJh93+jYfcIR76IFhzQiH11ueA1e9hJ16Jd9xdtTKdq26qp0tOSa1ZO7AhMsWFnDrnu0jWvwSAkIOAAwbPd8tcg9LMEBxgFSZAin4wS5GXYRVEUjKPQHxPfDd9s5+pwAG7kyfL7iqvH/YRtlWxB17W+hy0OROGMheGYBAYBJJbUmsmWapaJVoOif5F6e+ysElBE65b9veaSqV7EMAMjLWL6pG6orqy1rCd2Fs9/KOA3v6NtztlSzHOmVlp0cw2Fm58onb4n9h+0TguzbefAbff+7xoARRkPfb7R0oL36/w79PSOPkONQUfl/gK4hhZi72dbyBj/fM1CkoajKIJeEYz8UT5GaZJ6iCQZnmY48zwcvdnmEMeFoGtd7XtioCe2H3ww9SfdDjPYjde8PNJ4dfcf9MEwfHqlGDE8cLZRR9EY09o+8rYUm4mNMIFNvZybm9565KWuQKdj1z/4/mB8WQFjHIyME46TYWYYZe6YzIIcJVM/Q74fYZQEU4JmeDabkRD7Ccl7Rs4Jpb5Jw9NqdzKGtsO9bzx9iSNzaGKTQ16X2CCcRt+Zd3wafxJN+nxDkoLWhTkw8OgDR9glYxPR8WehMwqaUqcGRMLYh/onoF4PeraGbfV3pfsniJpDNbDvJpE79pE79QKQw5igke8RlPk5mQbRNJ+mwduvvMX7sxWf3gsVlfpe0mIFf6e3bJFSxUx1DHngeUo2DUap6wFFH5qFfDx2UZqGPgrymRdEOM+mwexI1tRv8UW+I6dfzahew61gSPd2bMbZ3ntw7sP2jT5LEN/mZiOfCJw99Dv+MM+uDs7QPWeo3tU/UEsDBBQAAAAAAAAAIQC1VTAjTAIAAEwCAAALAAAAX3JlbHMvLnJlbHM8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgc3RhbmRhbG9uZT0ieWVzIj8+DQo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj48UmVsYXRpb25zaGlwIElkPSJySWQzIiBUeXBlPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvb2ZmaWNlRG9jdW1lbnQvMjAwNi9yZWxhdGlvbnNoaXBzL2V4dGVuZGVkLXByb3BlcnRpZXMiIFRhcmdldD0iZG9jUHJvcHMvYXBwLnhtbCIvPjxSZWxhdGlvbnNoaXAgSWQ9InJJZDIiIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvcmVsYXRpb25zaGlwcy9tZXRhZGF0YS9jb3JlLXByb3BlcnRpZXMiIFRhcmdldD0iZG9jUHJvcHMvY29yZS54bWwiLz48UmVsYXRpb25zaGlwIElkPSJySWQxIiBUeXBlPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvb2ZmaWNlRG9jdW1lbnQvMjAwNi9yZWxhdGlvbnNoaXBzL29mZmljZURvY3VtZW50IiBUYXJnZXQ9InhsL3dvcmtib29rLnhtbCIvPjwvUmVsYXRpb25zaGlwcz5QSwMEFAAAAAgAAAAhAM1PCnOxAgAAqQcAACcAAAB4bC9waXZvdENhY2hlL3Bpdm90Q2FjaGVEZWZpbml0aW9uMS54bWzFlV1v2jAUhu8n7T9Evg/5wCkEARUQqJC2aSptd22SA1iN7ch2GGjqf99J+Gi6Vms7aZuQSHzO8fs+TuyT/uVO5M4WtOFKDkjQ8okDMlUZl+sBub2ZuV3iGMtkxnIlYUD2YMjl8OOHfsG3yk5YuoEEVlxyiwIOikkzIBtri57nGUwKZlqqAImZldKCWRzqtWcKDSwzGwArci/0/QtPMC7JQaGn36KhViueQqLSUoC0BxENOatIzIYX5qQm0rfICabvy8JNlShQYslzbve1KHFE2puvpdJsmeMj2OmT8O45p+CpVkatbAuFjojPVhtQBN3y6pkTR/d4NiB6ngV4DysNWJeN9wOyYDLhsFaNcMIsAtAo8uNWFNNuGERhp9OJiJOig4Xs7vQmLxqzmkHB5fUhXi3mnGlX5anS2USV0uJGQJid7pUV2o9pMpvGnWTsjoI4dCkdX7ijqDty6SxMglmStGnSfSDDflrthoUqdQqO3RdI+l3p+3rZmD3fHysQb0BGYe8qQPM6gUuuLgHxhn2vIXZUnnHIM+OkB8IOaYYdyQT6XcO6fqayFDNh5wjvYxmuVUM2tyDOs8Mq7GwHZMqMrfzqwTc4DLzGjBNKbfOC5RXIDPR7LMdqf3a84jp/r+PC7nN4g2H7ZHgD8Gio8tV5MGMy3b/bHo+Wk+Fm+z2CtHiezQIE/8x3kN3gfjBV3WPK6rrJNEJfSrEEPFPBY2guLayPMdy7dywvkaHdxR8G2O5JwHuN/Rb7lPmP3IHfhA6i14m/amwgf5W4QYftnz4BbLc69HXGicJj848Q/RYNf0FsP3/xjQHuZ9jZT8bWV6fUHDtaJ4xG03A0dWMaBy7tLsEdh2Pq0uk47tDZpO136cO5ywf0z9q8H3vx4bM27KNI76VPZkWOXIf/mtJ7qWz4E1BLAwQUAAAACAAAACEAtVA9d4QBAAB5BQAAJAAAAHhsL3Bpdm90Q2FjaGUvcGl2b3RDYWNoZVJlY29yZHMxLnhtbI2Uy27CMBBF95X6D5H3xHZIwkMEFq0qdVu1H2CMQ6zGdmQbBH9f80hxgICVzUxGOrpzMspssRN1tGXacCULgGMEIiapWnG5LsDP98dgDCJjiVyRWklWgD0zYDF/fZk1fKvsG6EV+2JU6ZWJHEmaAlTWNlMIjZsIYmLVMOkmpdKCWNfqNTSNZmRlKsasqGGCUA4F4RKcCFMdwlBlySl7V3QjmLQniGY1sW4PU/HGtDRBQ3CC6N9NM6BKNA6x5DW3+yMURIJOP9dSabKs3f473YJ3tzkFp1oZVdrYgc4Rb7bFqQu65QfhIKJqI63zjsF8puezXbQtAALwfiUP1XDsnv8OJ5fSfbz00qE4Pc6gfkzGAWT/bZyHUJOgvJPc70ZpPxk/N4F8VjLyTWQPMuPnJpC//tUGWQi514ZHHp73b7vh8JqM73jutYH9lGnnLiY3nu+Re21g30buD+JRUOZeGx0y6txGhvvJAbeR+WZT/7LjZBJC7rWRdTyPfc/5qCXDm5/l/A9QSwMEFAAAAAgAAAAhACoU1HB1AwAAbgkAAB4AAAB4bC9waXZvdFRhYmxlcy9waXZvdFRhYmxlMS54bWzFVktv4zYQvhfofyB4V/Sw5NiG7YViWVgDQRFs0u2ZkSibKEUKFJXYKPa/75B6WIm9aJpLL7H4ceabJ2ey/HIsOXqhqmZSrLB/42FERSZzJvYr/OdT6swwqjUROeFS0BU+0Rp/Wf/+27JiL1I/kWdOE1owwTQQICAT9QoftK4WrltnB1qS+kZWVMBNIVVJNBzV3q0rRUleHyjVJXcDz5u6JWECtwyLMvsISUnU303lZLKsiGbPjDN9slwYldlitxdSGf9W+Kh64qO6IC5ZpmQtC30DRK4sCpbRC//80FX0hZksAZVaNCxf4X+iuyCeRF7gBNu71An9JHHmE+/WSaPtdhZMZ9vIm/3ASJASnHiitcYoI2B2B8p+iBGpKn76oymfqUrbuFbY6+A7qfIrcCqFvgAfiNZUiQs85mwvSnpF4y+W68NXyvaH852PUU402ZBK22b4TngD1UZNBTDNv/dNYtLLxDdaKFofTIKHmwkI1zRutGxJte0i4GWalg+KCf3ENKetrQwy/I6WiRyctV7KRnNmGs4fvhNwzp7LhmtWcZoyyvOUcYjdhrZecpkR24iKFiscTxaJDz4VTNX6K9STqm/y1VJYyBBaIBgBG8mNhLtuO9zaqFEmG+PYLR7DiBwZGDZ/gQbeyUG+xpy3rpiQB71JB6CjuXTPB384gFROCwKhGci16vB7tvYLy+Dv/2T5X2IOR5aD65bf+PTf3BjZdT92YXrbftkG+KD+yDw4o+Tr234IIMbCqvWhDCcbsjtoWOXdOD9zk5/18miDhU+kjGPXAPTSJe0SDgb413Kf4zP12CsY/CMKt49hvcwkf5sKf5yKln2QseK7i7Yc+Xbp1TXzPct6ORTzjf0B7UbuY1MiWSCYPBmFJ25KH2H0TGraNYLXngxpX/Az83q04x71idOdKGTH/GBuLHhvZqg/bTsKnkQ7Z+qhyeB9vodA6lErVtF2IHdS76F7UmuAm1J0eaFHfV9r+4saxWD/zKfBNo0S34k2ceCE2XzizLZp6CR3abTxonAyT4Ifw+rzw8/tPm/uztvtDKXww8XVzX9gOW0XRj9iO6vlx4zSY0bH/wiYUkCg42hvw9t46k9Dx59FsRN6ycaZxXHkpJ4f+UHke0kUnqOtcv7JVT9tH303jDg5wf4xoQPj1dhBoXfW7WvkXhNc/wRQSwMEFAAAAAgAAAAhAK4L/YmOAQAALBUAACcAAAB4bC9wcmludGVyU2V0dGluZ3MvcHJpbnRlclNldHRpbmdzMS5iaW7tlL9Kw1AUxr80/qk6qCC4OEhxEostjX82LU3VSmNC05YuDsVGCGhS0oioKIhvIT6Io2NHH8DZSXwAF/1SKyqKVEc5v3Du+c53b264STgGXOwggI8WYxchpmGxduF1dEg3cnSs4TuUPnXgDtaEOq9AwRAuR7R4g2oUtViMuRZTOWahfXv331A+5Fg3P5P1gv3pMXphq5JAGzPq3PjK9snZT3v2d0flp0XCv+Y3377NsI3yZqTHcI0TpLDMv3yNOc0xiyTyWESGXpKhY4lXkmsy9PNUKdYa6zRzjlUGC53qlDuW8rZeLKLiuYHTipRVbzqB7R47yGowA9fxwnro+h4ss1QuZQtllJyWv3fQ8SjNZqTSyPl7fmD4DedVfT3H3DhQ1XTj7exXw83EFPMDQ2U8KWZcuz80Lh4HNyZvFs5v6RW7c4i/7/NWz3ZzVK8yqq8viOf32WcOsA+n01kq7DcO+4yFOlULh5wP0MDXlSbnvB7X5ugfoUll04lmok4W0hMEQRAEQRAEQRAEQeiFF1BLAwQUAAAACAAAACEAwRcQvpIGAADGIAAAEwAAAHhsL3RoZW1lL3RoZW1lMS54bWztWc1v2zYUvw/Y/yDo7kq2JX8EdQpbtvuVNEHjduiRlmmLMSUaJJXEKAoM7WmXAQO6YZcBu+0wDCuwAit22R8ToMXW/RF7kr9Em2qTNi06LA5gk9TvPf743uPji3j12klIjSPMBWFRwyxesU0DRz4bkGjUMO/1uoWaaQiJogGiLMINc4qFeW3788+uoi0Z4BAbIB+JLdQwAyknW5YlfBhG4gqb4AieDRkPkYQuH1kDjo5Bb0itkm1XrBCRyDQiFILaveGQ+NjoJSrN7YXyDoWvSIpkwKf8wE9nzEqk2MG4mPyIqfAoN44QbZgwz4Ad9/CJNA2KhIQHDdNOP6a1fdVaClGZI5uR66afudxcYDAupXJ81F8KOo7rVJpL/aWZ/k1cp9qpdCpLfSkA+T6stKjRWS15zhybAc2aGt3tartcVPAZ/eUNfNNN/hR8eYV3NvDdrreyYQY0a7obeLdVb7VV/e4KX9nAV+1m26kq+BQUUBKNN9C2Wyl7i9UuIUNGb2jhddfpVktz+AplZaJrJh/JvFgL0SHjXQCkzkWSRIacTvAQ+YDzECV9TowdMgog8CYoYgKG7ZLdtcvwnfw5aSv1KNrCKCM9G/LFxlDCxxA+JxPZMG+BVjMDefnixenj56ePfz998uT08a/zuTflbqBolJV7/dM3//zwpfH3bz++fvqtHi+y+Fe/fPXqjz/fpF4qtL579ur5s5fff/3Xz0818CZH/Sy8R0IsjDv42LjLQligZgLc5+eT6AWIKBIoAKQG2JGBArwzRVSHa2HVhPc5ZAod8Hp8qHA9CHgsiQZ4OwgV4C5jtMW4djm3k7myy4mjkX5yHmdxdxE60s3trTm4E08g5IlOpRdgheY+BW+jEY6wNJJnbIyxRuwBIYpdd4nPmWBDaTwgRgsRrUl6pC/1QjdICH6Z6giCqxXb7N43Wozq1LfxkYqEbYGoTiWmihmvo1iiUMsYhTSL3EEy0JE8mHJfMbiQ4OkRpszoDLAQOpk9PlXo3oYMo3f7Lp2GKpJLMtYhdxBjWWSbjb0AhRMtZxIFWexNMYYQRcY+k1oSTN0hSR/8gKJcd98nWJ5vW9+DDKQPkORJzHVbAjN1P07pEGGd8iYPleza5EQbHa14pIT2DsYUHaMBxsa9mzo8mzA96VsBZJUbWGebW0iN1aQfYQFlUlLXaBxLhBKyB3jEcvjsTtcSzxRFIeJ5mu+M1ZDpwCmnTaV71B8rqZTwZNPqSeyJEJ1J636AlLBK+kIfr1MenXePgczhO8jgc8tAYj+zbXqIYn3A9BAUGLp0CyKxXiTZTqlYrJUbqpt25QZrrd4JSfTW4met7HE/TtnzwQqeiy918lLKeoGTh/sPljVtFEf7GE6Sy6rmsqr5P1Y1eXv5spa5rGUua5mPVsusyhcr+5Yn1RLmvvIZEkoP5JTiHZEWPgL2/qALg2knFVq+YZoE0JxPp+BGHKVtgzP5BZHBQYAmME0xnWEk5qpHwpgwAaWTmas7Lb3icJcNZqPF4uKlJggguRqH0msxDoWanI1Wqqu3d0v1aW8ksgTcVOnZSWQmU0mUNSSq5bORKNoXxaKuYVErvomFlfEKHE4GSt6Hu86MEYQbhPQg8dNMfuHdC/d0njHVZZc0y6s7F+ZphUQm3FQSmTAM4PBYH75gX9freleXtDSqtQ/ha2szN9BI7RnHsOfKLqjx0aRhDuGfJmiGE9AnkkyF6ChqmL6cG/pdMsuEC9lGIpjB0kez9YdEYm5QEkKsZ91AoxW3Yqlqf7rk6vanZzlr3cl4OMS+zBlZdeHZTIn26XuCkw6LgfRBMDg2+jTmdxEYyq0WEwMOiJBLaw4IzwT3yopr6Wq+FZXLltUWRXQSoPmJkk3mM3jaXtLJrCNlur4qS2fC/qh7Eafu24XWkmbOAVLNzWIf7pDPsCrrWbnaXFev2W8+Jd7/QMhQq+mplfXU8s6OCywIMtNVcuxWyvXme54G61FrZerKtLdxq836hxD5bahWYyrF7OXYCZTf3uI+cpYJ0tFFdjmRRsxJw3xou03HK7lewa65nYJTduxCzW2WC03XLRc7btFut0qPwCgyCIvubO4u/LNPp/NL+3R84+I+XJTaV3wWWiytg61UOL24L5byL+4NApZ5WCl16+V6q1Kol5vdgtNu1Qp1r9IqtCtetd1te26t3n1kGkcp2GmWPafSqRUqRc8rOBU7oV+rF6pOqdR0qs1ax2k+mtsaVr74XZg35bX9L1BLAwQUAAAACAAAACEAgPZ5XoYDAADODAAAGAAAAHhsL3dvcmtzaGVldHMvc2hlZXQxLnhtbJ1XXZOiOBR936r9DxTvAkn4UEud6mnsmnnYqq39fI4YlWogbBLt7tra/76XgBiizshYfgTuybnn3hwgLj69l4VzYkLmvFq6yAtch1UZ3+bVfun++cfLZOo6UtFqSwtesaX7waT7afXzT4s3Ll7lgTHlAEMll+5BqXru+zI7sJJKj9esgsiOi5IqOBR7X9aC0a2eVBY+DoLYL2leuS3DXDzCwXe7PGMpz44lq1RLIlhBFeiXh7yWZ7Yye4SupOL1WE8yXtZAscmLXH1oUtcps/nXfcUF3RRQ9zsKaea8C3hj+JBzGn3+KlOZZ4JLvlMeMHear8uf+TOfZj3Tdf0P0aAQGnDKmwW8UOEf5Ip6LnwhIz9IFvdkTbvE/Jhvl+6/cRw9ozBaTzBZryfhUxpNntZRNAkIidCaBEkcfv7PXS22OaxwM9kRbLd0n8g8RcT1Vwud4a+cvUlj7Ci6+Z0VLFMMkiDXafy54fy1CX6FUwFQSg1oKCn8nNgzK4ql+wWDPPmPztKMIYXf85rjc74XbaBfhbNlO3os1G/87QvL9wcFiSOotLHEfPuRMpmBRyG1h6OGNeOF1N9OmVdaZEnfW7H5Vh1gRDwUBjGgnQ2T6iVXOpodpeLl3x2mY2o5cMeBLxyxh6cRisawkI6F9Czxw3PDbm54UYAeVuC3LdFdTamiq4Xgb47QSmRNm9sKmof3WgoqGuxTA9YtgICEs6cVShb+qaHvIJ9vQOIe4kPSPnM4JnN4TRtZmUMjGA9jz2YMBcNgOgji22KjMWIjLdaktbW2CKJjxBY7CCYewjPjZTGlJjgBV5Pb+uMx+mPNGRn6Z5b+2MgKLpzZJQzixEtCS7UZx5GXBObrTgnJmBKSqxKmVgnJQKKlfxDEnuGKVn8y1I+QuUTJbf3TMfqnV/rtC206XILAavGzFcfW/NSMY+wRdFv1bIzq2ZXxEbJkzwbOB7/eXvm2BhOMQ89yYWqGY2jBHeOgYEwNGv1t93eQ3h6Bbf8e4J+lfmPKUCsapRV91+YdpE8c2z0eApAXWgzpAACrgO44BeFR0vF3Hd5BLspsiw8BxAvty3QAAOnTe10f9RRE5Nrm2NZOzPsyHvoc2XWY4Bh79nWQDgCIwBrYhfjGk72me/YLFfu8kk7Bdlo+3LBEu3HSY8VrPWr2DVzBXuF8dICNJRPNEaTcca7OB80eov8nsvofUEsDBBQAAAAIAAAAIQAOUn3u2wQAAHwXAAAYAAAAeGwvd29ya3NoZWV0cy9zaGVldDIueG1snZhbk6pGFIXfU5X/QPEuyF0s9dRcjsaDQCqTyzODrVIDNgGcS1L572lw9MjaOoyn5qKsvVg0fN0NzejLa5ZKz6woE74dy5rSlyW2jfky2a7H8h+/T3sDWSqraLuMUr5lY/mNlfKXyc8/jV548VRuGKskkbAtx/KmqvKhqpbxhmVRqfCcbUVlxYssqsRmsVbLvGDRstkpS1W937fVLEq28j5hWHwmg69WSczuebzL2LbahxQsjSrR/nKT5OUhLYs/E5dFxdMu78U8y0XEY5Im1VsTKktZPJyvt7yIHlNx3q+aGcXSayF+dfFnHA7T6ORIWRIXvOSrShHJ722mp++qrhrFxyR6/p+K0UxxAZ6TGuD3KP0Hs6xjlv49zPjBMPsYVl+uYrhLlmP5X9u6M27vboye7ZpOzzTsfu/mq2X1NFPXzf799KutTf+TJ6Mm6NdCEp2RBVEmGDzUii6rk9EyEfTrYKlgq7F8ow9DzagLzU5/JuylPPku1X31kfOnemMu2tCv41nK4rrXSJH4eGZ3LE3rJNHd/z6Ezvah6jHp9PvhCNOmO4mGLtkq2qXVb/zlF5asN5UYTpY477qDDJdv96yMRY8VB1d0q06NeVo2/6UsEUPPFD0uem0+X5Jltan3VvSBpVm28Evxrqx49td7pWnVPqBpw31URZNRwV8k0YnqU8ijekhqw8stEIeuzc0J14mSKJRCfZ5oxkh9rvPfLbdnLGbbckct/bbj/kxI2/GVOvS2Y0od0NQZdUBL5weH+i58Q8FDYYGCj0KAQngiqALLkY1xFRuDnI0FaKjDBjLU4QCZg6O5ngPxA1xO6xoiaRXF7QMu96xV7ysm7D83EAcKHgoLFHwUAhRC4wIO8yocZicO6kAc1DEAHGYHDvMjHK0iDo72ngo0bW4iChQ8FBYo+CgEKITmBRTWVSisThTUgSiowwUUVgcK6yMUVntkuHD4GdQdnKgsxIGCh8ICBR+FAIXQuoDDvgqH3YmDOjS4Q9xRC85UdgeP0zrGT+329dYhfNbeWbFweNjIAwUPhQUKPgoBCqF9gYdzFQ+nkwd1EB7UglOV08HD+YhHq6grOH5mDowfOIO5gzxQ8FBYoOCjEKAQOhd4DK7iMejkQR2EB7XgfDXo4DH4iEeraJD5aAZ1A8LnA+SBgofCAgUfhQCFcHCBh3sVD5debXgavaUWvH9QB85XbgcPt9XFgUe7qJjIo1XvKy7eP1zkgYKHwgIFH4UAhdC9wEPrXwWksXcQOeNBJGcsOGcdLZegtAyESrsqHqLwIQt2VxwcJ0fDEQxRPKIsiOITJSBKeKq08WjX4dE+gYd6CB5qwSnsaLmIR/sQj9bG08enLthdsTTEoxE8qHhEWRDFJ0pAlPBUaeO5bg2vnVlcEzxnPHiHOePBKe1oucjn1KBZyKdVNch6cIYG3UU+ZAFPFI8oC6L4RAmIEmqXlvHadet4jS7CKZ8zHsKHesj01rWabxkoH1jPmwPkAwt620E+ZEVPFI8oC6L4RAmIEmpkXa+evA7LozXzo2KdbEspZasGinicK/bv5prvFc+bb4LgI68qnh22NixasqLeEodYcV4dNtR97gOrdrmURzkrHpJ/WPP8wYtEoG/eRI/lnBdVESWVON6wfu1ZzJf7Zh7fm0/+B1BLAwQUAAAACAAAACEAywJWCywBAABoBAAAGgAAAHhsL19yZWxzL3dvcmtib29rLnhtbC5yZWxzvZTBTsMwDIbvSLxDlTvNVmBMaO0OTEi7IRgPkKVuG9bGVWwKe3vCQOsqdRWHilNkO/7/T7aSxfKzKoMGHBm0sZiGExGA1Zgam8fidfN4NRcBsbKpKtFCLPZAYplcXiyeoVTsm6gwNQVexVIsCub6XkrSBVSKQqzB+kqGrlLsQ5fLWumdykFGk8lMulMNkXQ0g3UaC7dOr0Ww2dfwF23MMqNhhfq9Ass9FrI2DfKD8hIryIw13xWvr1wOHIu22ntxGno/Ifsx785gVkY7JMw41Fj9EvaRNVv15PANNLc8bS7cGnvOORpzQB/odlQAnFAcUyQPRzQ0huk/wwzuZDYmDBXKQfrCzr8MaoE66SGY21FheF/CKcUhHrK/GdOefS+07ofwJ3nch+z8D8kXUEsDBBQAAAAIAAAAIQDiK397uQAAADMBAAAyAAAAeGwvcGl2b3RDYWNoZS9fcmVscy9waXZvdENhY2hlRGVmaW5pdGlvbjEueG1sLnJlbHONz7FqwzAQBuC90HcQt9eyM4RSLGdICGQNzgMc0tkWsXVCp4T47aMxoR06Hj//93Pt7rHM6k5JPAcDTVWDomDZ+TAauPTHr29QkjE4nDmQgZUEdt3nR3umGXMpyeSjqKIEMTDlHH+0FjvRglJxpFCSgdOCuZxp1BHtFUfSm7re6vRqQPdmqpMzkE6uAdWvkf5j8zB4Swe2t4VC/mNCR3/nvMdCnMlyclJwTCNlA7+ipio86K7Vb692T1BLAwQUAAAACAAAACEACkEM6rwAAABHAQAAKQAAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGUxLnhtbC5yZWxzjc/BCsIwDAbgu+A7lNxtNw8iss6DIngVfYDQZVtxS0tbRd/eetvAg8fw//lCqv1rHMSTQrSONZSyAEFsXGO503C7nlZbEDEhNzg4Jg1virCvl4vqQgOmvBR766PICkcNfUp+p1Q0PY0YpfPEOWldGDHlMXTKo7ljR2pdFBsVpgbUM1OcGw3h3JQgrm9P/9iuba2hozOPkTj9OKG8fbp0wEwcqbVsv0n2MXSUNEg5KfzsljKfBFVXavZ+/QFQSwMEFAAAAAgAAAAhAMihuPq2AAAANAEAACMAAAB4bC93b3Jrc2hlZXRzL19yZWxzL3NoZWV0MS54bWwucmVsc43PwQ6CMAwG4LuJ77D07gYejDEMLsaEq8EHqKPAImzLNom8vTtC4sFj279f06L6TCObyQdtjYScZ8DIKNtq00t4NLfDGViIaFocrSEJCwWoyv2uuNOIMS2FQbvAkmKChCFGdxEiqIEmDNw6MmnSWT9hTKXvhUP1wp7EMctOwq8NKDcmq1sJvm5zYM3i6B/bdp1WdLXqPZGJP04Ip2cbG3yOlFT0PUUJnK/a60jOkw+iLMTm1/ILUEsDBBQAAAAIAAAAIQA7bTJLuwAAAEIBAAAjAAAAeGwvd29ya3NoZWV0cy9fcmVscy9zaGVldDIueG1sLnJlbHONz8GKwjAQBuD7gu8Q5m7SepBlaepFBK/qPkBMp22wnYTMKPr25rjKHjz+/Mw3/M3mPk/qhplDJAu1rkAh+dgFGiz8nnbLb1Asjjo3RUILD2TYtIuv5oCTk3LEY0isikJsYRRJP8awH3F2rGNCKk0f8+ykxDyY5PzFDWhWVbU2+a8B7Yup9p2FvO9qUKdHwk/s2PfB4zb664wk/7wwKQcSzEcUKQO50C4PKBa0fu/ec63PgcC0jXlZ3j4BUEsBAgAAFAAAAAAAAAAhAMqdzyefBwAAnwcAABMAAAAAAAAAAAAAAAAAAAAAAFtDb250ZW50X1R5cGVzXS54bWxQSwECAAAUAAAACAAAACEAtj5L4X8BAAAqAwAAEAAAAAAAAAABAAAAAADQBwAAZG9jUHJvcHMvYXBwLnhtbFBLAQIAABQAAAAIAAAAIQAm3VtMOgEAAGECAAARAAAAAAAAAAEAAAAAAH0JAABkb2NQcm9wcy9jb3JlLnhtbFBLAQIAABQAAAAIAAAAIQC4WXGw/QAAADMCAAAUAAAAAAAAAAEAAAAAAOYKAAB4bC9zaGFyZWRTdHJpbmdzLnhtbFBLAQIAABQAAAAIAAAAIQBD1tZK+AIAAMYIAAANAAAAAAAAAAEAAAAAABUMAAB4bC9zdHlsZXMueG1sUEsBAgAAFAAAAAgAAAAhAJYLfMaVFwAAAEgAABEAAAAAAAAAAAAAAAAAOA8AAHhsL3ZiYVByb2plY3QuYmluUEsBAgAAFAAAAAgAAAAhAEi8MxN8AwAAmggAAA8AAAAAAAAAAQAAAAAA/CYAAHhsL3dvcmtib29rLnhtbFBLAQIAABQAAAAAAAAAIQC1VTAjTAIAAEwCAAALAAAAAAAAAAAAAAAAAKUqAABfcmVscy8ucmVsc1BLAQIAABQAAAAIAAAAIQDNTwpzsQIAAKkHAAAnAAAAAAAAAAEAAAAAABotAAB4bC9waXZvdENhY2hlL3Bpdm90Q2FjaGVEZWZpbml0aW9uMS54bWxQSwECAAAUAAAACAAAACEAtVA9d4QBAAB5BQAAJAAAAAAAAAABAAAAAAAQMAAAeGwvcGl2b3RDYWNoZS9waXZvdENhY2hlUmVjb3JkczEueG1sUEsBAgAAFAAAAAgAAAAhACoU1HB1AwAAbgkAAB4AAAAAAAAAAQAAAAAA1jEAAHhsL3Bpdm90VGFibGVzL3Bpdm90VGFibGUxLnhtbFBLAQIAABQAAAAIAAAAIQCuC/2JjgEAACwVAAAnAAAAAAAAAAAAAAAAAIc1AAB4bC9wcmludGVyU2V0dGluZ3MvcHJpbnRlclNldHRpbmdzMS5iaW5QSwECAAAUAAAACAAAACEAwRcQvpIGAADGIAAAEwAAAAAAAAABAAAAAABaNwAAeGwvdGhlbWUvdGhlbWUxLnhtbFBLAQIAABQAAAAIAAAAIQCA9nlehgMAAM4MAAAYAAAAAAAAAAEAAAAAAB0+AAB4bC93b3Jrc2hlZXRzL3NoZWV0MS54bWxQSwECAAAUAAAACAAAACEADlJ97tsEAAB8FwAAGAAAAAAAAAABAAAAAADZQQAAeGwvd29ya3NoZWV0cy9zaGVldDIueG1sUEsBAgAAFAAAAAgAAAAhAMsCVgssAQAAaAQAABoAAAAAAAAAAQAAAAAA6kYAAHhsL19yZWxzL3dvcmtib29rLnhtbC5yZWxzUEsBAgAAFAAAAAgAAAAhAOIrf3u5AAAAMwEAADIAAAAAAAAAAQAAAAAATkgAAHhsL3Bpdm90Q2FjaGUvX3JlbHMvcGl2b3RDYWNoZURlZmluaXRpb24xLnhtbC5yZWxzUEsBAgAAFAAAAAgAAAAhAApBDOq8AAAARwEAACkAAAAAAAAAAQAAAAAAV0kAAHhsL3Bpdm90VGFibGVzL19yZWxzL3Bpdm90VGFibGUxLnhtbC5yZWxzUEsBAgAAFAAAAAgAAAAhAMihuPq2AAAANAEAACMAAAAAAAAAAQAAAAAAWkoAAHhsL3dvcmtzaGVldHMvX3JlbHMvc2hlZXQxLnhtbC5yZWxzUEsBAgAAFAAAAAgAAAAhADttMku7AAAAQgEAACMAAAAAAAAAAQAAAAAAUUsAAHhsL3dvcmtzaGVldHMvX3JlbHMvc2hlZXQyLnhtbC5yZWxzUEsFBgAAAAAUABQApgUAAE1MAAAAAA==" } }); diff --git a/tests/cell/spreadsheet-calculation/PrintTests.js b/tests/cell/spreadsheet-calculation/PrintTests.js index 79ecd50ca7..92936a3d1c 100644 --- a/tests/cell/spreadsheet-calculation/PrintTests.js +++ b/tests/cell/spreadsheet-calculation/PrintTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/ProtectTests.html b/tests/cell/spreadsheet-calculation/ProtectTests.html new file mode 100644 index 0000000000..7825e02515 --- /dev/null +++ b/tests/cell/spreadsheet-calculation/ProtectTests.html @@ -0,0 +1,33 @@ + + + + + + Unit Tests + + + + + + + + + + + + + +

        Protect tests

        +

        +
        +

        +
          +
          test markup, will be hidden
          +
          + + diff --git a/tests/cell/spreadsheet-calculation/ProtectTests.js b/tests/cell/spreadsheet-calculation/ProtectTests.js new file mode 100644 index 0000000000..1ff1269fc1 --- /dev/null +++ b/tests/cell/spreadsheet-calculation/ProtectTests.js @@ -0,0 +1,171 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +QUnit.config.autostart = false; +$(function () { + + Asc.spreadsheet_api.prototype._init = function () { + this._loadModules(); + }; + Asc.spreadsheet_api.prototype._loadFonts = function (fonts, callback) { + callback(); + }; + Asc.spreadsheet_api.prototype.onEndLoadFile = function (fonts, callback) { + openDocument(); + }; + AscCommonExcel.WorkbookView.prototype._calcMaxDigitWidth = function () { + }; + AscCommonExcel.WorkbookView.prototype._init = function () { + }; + AscCommonExcel.WorkbookView.prototype._isLockedUserProtectedRange = function (callback) { + callback(true); + }; + AscCommonExcel.WorkbookView.prototype._onWSSelectionChanged = function () { + }; + AscCommonExcel.WorkbookView.prototype.showWorksheet = function () { + }; + AscCommonExcel.WorkbookView.prototype.recalculateDrawingObjects = function () { + }; + AscCommonExcel.WorkbookView.prototype.restoreFocus = function () { + }; + AscCommonExcel.WorksheetView.prototype._init = function () { + }; + AscCommonExcel.WorksheetView.prototype.updateRanges = function () { + }; + AscCommonExcel.WorksheetView.prototype._autoFitColumnsWidth = function () { + }; + AscCommonExcel.WorksheetView.prototype.cleanSelection = function () { + }; + AscCommonExcel.WorksheetView.prototype._drawSelection = function () { + }; + AscCommonExcel.WorksheetView.prototype._scrollToRange = function () { + }; + AscCommonExcel.WorksheetView.prototype.draw = function () { + }; + AscCommonExcel.WorksheetView.prototype._prepareDrawingObjects = function () { + }; + AscCommonExcel.WorksheetView.prototype._initCellsArea = function () { + }; + AscCommonExcel.WorksheetView.prototype.getZoom = function () { + }; + AscCommonExcel.WorksheetView.prototype._prepareCellTextMetricsCache = function () { + }; + + AscCommon.baseEditorsApi.prototype._onEndLoadSdk = function () { + }; + AscCommonExcel.WorksheetView.prototype._isLockedCells = function (range, subType, callback) { + callback(true); + return true; + }; + AscCommonExcel.WorksheetView.prototype._isLockedAll = function (callback) { + callback(true); + }; + AscCommonExcel.WorksheetView.prototype._isLockedFrozenPane = function (callback) { + callback(true); + }; + AscCommonExcel.WorksheetView.prototype._updateVisibleColsCount = function () { + }; + AscCommonExcel.WorksheetView.prototype._calcActiveCellOffset = function () { + }; + + var api = new Asc.spreadsheet_api({ + 'id-view': 'editor_sdk' + }); + api.FontLoader = { + LoadDocumentFonts: function () { + setTimeout(startTests, 0) + } + }; + window["Asc"]["editor"] = api; + + var wb, ws, wsview; + + function openDocument() { + AscCommon.g_oTableId.init(); + api._onEndLoadSdk(); + api.isOpenOOXInBrowser = false; + api._openDocument(AscCommon.getEmpty()); + api._openOnClient(); + api.collaborativeEditing = new AscCommonExcel.CCollaborativeEditing({}); + api.wb = new AscCommonExcel.WorkbookView(api.wbModel, api.controller, api.handlers, api.HtmlElement, + api.topLineEditorElement, api, api.collaborativeEditing, api.fontRenderingMode); + + wb = api.wbModel; + wb.handlers.add("getSelectionState", function () { + return null; + }); + + wsview = api.wb.getWorksheet(); + wsview.objectRender = {}; + wsview.objectRender.updateDrawingObject = function () { + }; + wsview.objectRender.updateSizeDrawingObjects = function () { + }; + wsview.objectRender.selectedGraphicObjectsExists = function () { + }; + wsview.handlers = {}; + wsview.handlers.trigger = function () { + }; + ws = api.wbModel.aWorksheets[0]; + } + + function testValidTitle() { + QUnit.test("Test: check valid title name", function (assert) { + let checkRes = api.asc_checkProtectedRangeName("test"); + assert.strictEqual(checkRes, Asc.c_oAscDefinedNameReason.OK, "check valid name_1"); + checkRes = api.asc_checkProtectedRangeName("test1"); + assert.strictEqual(checkRes, Asc.c_oAscDefinedNameReason.OK, "check valid name_2"); + checkRes = api.asc_checkProtectedRangeName("test_1"); + assert.strictEqual(checkRes, Asc.c_oAscDefinedNameReason.OK, "check valid name_3"); + checkRes = api.asc_checkProtectedRangeName("test_ 1"); + assert.strictEqual(checkRes, Asc.c_oAscDefinedNameReason.OK, "check valid name_4"); + checkRes = api.asc_checkProtectedRangeName("test _ 1"); + assert.strictEqual(checkRes, Asc.c_oAscDefinedNameReason.OK, "check valid name_4"); + + checkRes = api.asc_checkProtectedRangeName("test!"); + assert.strictEqual(checkRes, Asc.c_oAscDefinedNameReason.WrongName, "check valid name_5"); + checkRes = api.asc_checkProtectedRangeName("1test"); + assert.strictEqual(checkRes, Asc.c_oAscDefinedNameReason.WrongName, "check valid name_6"); + + checkRes = api.asc_checkProtectedRangeName("t test"); + assert.strictEqual(checkRes, Asc.c_oAscDefinedNameReason.OK, "check valid name_8"); + }); + } + + QUnit.module("ProtectTests"); + + function startTests() { + QUnit.start(); + + testValidTitle(); + } +}); diff --git a/tests/cell/spreadsheet-calculation/SerialTests.js b/tests/cell/spreadsheet-calculation/SerialTests.js index e7ff286de9..0403ce866e 100644 --- a/tests/cell/spreadsheet-calculation/SerialTests.js +++ b/tests/cell/spreadsheet-calculation/SerialTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/SheetMemoryTest.js b/tests/cell/spreadsheet-calculation/SheetMemoryTest.js index c17c210741..1f7e04bf9a 100644 --- a/tests/cell/spreadsheet-calculation/SheetMemoryTest.js +++ b/tests/cell/spreadsheet-calculation/SheetMemoryTest.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -428,5 +428,104 @@ $(function () { assert.strictEqual(sheetMemory.getUint8(12, 0), 0); }); + testForeachNoEmpty("Test: SweepLineRowIterator step" + 1, 1, 1); + testForeachNoEmpty("Test: SweepLineRowIterator step" + 2, 1, 1); + QUnit.module("SheetMemory"); + function testForeachNoEmpty(name, offset, stepRow) { + QUnit.test(name, function (assert) { + // console.profile('testForeachNoEmpty'); + + // let rowsTest = offset + 2 + stepRow; + // let colsTest = 2; + // let dataTest = [0,2,3,4,0,0,0,0]; + // testCellsByCol(dataTest, rowsTest + 1, colsTest, offset, stepRow, assert); + + let rows = offset + 3 + stepRow;//stepRow rows are needed to properly clean + let cols = 3; + let baseLen = (rows - stepRow) * cols;//last row for correct cleaning + let base = [...Array(baseLen + 1).keys()].slice(1); + let data = new Array(rows * cols); + data.fill(0); + let iterations = Math.pow(2, baseLen); + for (let i = 0; i < iterations; ++i) { + for (let j = 0; j < baseLen; ++j) { + let bit = ((i >> j) % 2 !== 0); + data[j] = bit ? base[j] : 0; + } + testCellsByCol(data, rows, cols, offset, stepRow, assert); + } + + // console.profileEnd('testForeachNoEmpty'); + + assert.ok(true); + }); + } + + function testCellsByCol(data, rows, cols, offset, stepRow, assert) { + let res = ''; + let testData = getTestDataFromArray(data, rows, cols, offset, stepRow); + let r1 = offset; + + let sweepLine = new AscCommonExcel.SweepLineRowIterator(); + sweepLine.init(testData.cellsByCol, r1, 0, cols); + for (let i = r1; i < rows; i += stepRow) { + sweepLine.setRow(i); + while (sweepLine.nextCol()) { + res += `${i}-${sweepLine.col}-${sweepLine.colData.getUint8(i, 0)};`; + } + } + //many asserts processes very slow + if (res !== testData.expected) { + assert.strictEqual(res, testData.expected, JSON.stringify(data)); + } + if (sweepLine.colDatas.length !== sweepLine.colDatasIndex) { + assert.strictEqual(sweepLine.colDatas.length, sweepLine.colDatasIndex, "colDatas"); + } + if (sweepLine.toInsert.length !== sweepLine.toInsertIndex) { + assert.strictEqual(sweepLine.toInsert.length, sweepLine.toInsertIndex, "toInsert"); + } + if (sweepLine.toDelete.length !== sweepLine.toDeleteIndex) { + assert.strictEqual(sweepLine.toDelete.length, sweepLine.toDeleteIndex, "toDelete"); + } + if (sweepLine.r1.length !== sweepLine.r1Index) { + assert.strictEqual(sweepLine.r1.length, sweepLine.r1Index, "r1"); + } + if (sweepLine.r2.length !== sweepLine.r2Index) { + assert.strictEqual(sweepLine.r2.length, sweepLine.r2Index, "r2"); + } + } + + function getTestDataFromArray(data, rows, cols, offset, stepRow) { + let expected = ""; + let cellsByCol = Array.from(Array(cols), () => { + return new SheetMemory(2, rows); + }); + let dataLen = data.length; + for (let i = 0; i < dataLen; ++i) { + if (data[i] > 0) { + let row = Math.trunc(i / cols); + let col = i % cols; + let sheetMemory = cellsByCol[col]; + sheetMemory.checkIndex(row); + sheetMemory.setUint8(row, 0, data[i]); + } + } + for (let i = 0; i < cellsByCol.length; ++i) { + if (cellsByCol[i].getAllocatedCount() === 0) { + delete cellsByCol[i]; + } + } + for (let i = offset * cols; i < dataLen; ++i) { + let row = Math.trunc(i / cols); + let col = i % cols; + if(row % stepRow === 0) { + let sheetMemory = cellsByCol[col]; + if (sheetMemory && sheetMemory.hasIndex(row)) { + expected += `${row}-${col}-${data[i]};`; + } + } + } + return {cellsByCol, expected} + } }); diff --git a/tests/cell/spreadsheet-calculation/SheetStructureTests.js b/tests/cell/spreadsheet-calculation/SheetStructureTests.js index 4a9c41b4ba..e51653e912 100644 --- a/tests/cell/spreadsheet-calculation/SheetStructureTests.js +++ b/tests/cell/spreadsheet-calculation/SheetStructureTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -172,6 +172,7 @@ $(function () { }; const clearData = function (c1, r1, c2, r2) { ws.autoFilters.deleteAutoFilter(getRange(0,0,0,0)); + ws.TableParts = []; ws.removeRows(r1, r2, false); ws.removeCols(c1, c2); }; @@ -2459,51 +2460,6 @@ $(function () { }); - QUnit.test('Conditional formatting: test apply to', function (assert) { - - let tableOptions = new AscCommonExcel.AddFormatTableOptions(); - tableOptions.range = "A1:B3"; - api.asc_addAutoFilter("TableStyleMedium2", tableOptions); - - let cf = new AscCommonExcel.CConditionalFormattingRule(); - cf.asc_setType(Asc.c_oAscCFType.cellIs); - cf.asc_setLocation("A5"); - - api.asc_setCF([cf]); - - wsView.setSelection(new Asc.Range(0, 4, 0, 4)); - let modelCf = api.asc_getCF(Asc.c_oAscSelectionForCFType.selection, 0); - let cfLocation; - if (modelCf) { - modelCf = modelCf[0] && modelCf[0][0]; - cfLocation = modelCf.asc_getLocation(); - } - - let ref = cfLocation && cfLocation[1]; - assert.strictEqual(ref, "=$A$5", "compare location conditional formatting in cell"); - - - cf = new AscCommonExcel.CConditionalFormattingRule(); - cf.asc_setType(Asc.c_oAscCFType.cellIs); - cf.asc_setLocation("=Table1[Column1]"); - - api.asc_setCF([cf]); - - wsView.setSelection(new Asc.Range(0, 1, 0, 1)); - modelCf = api.asc_getCF(Asc.c_oAscSelectionForCFType.selection, 0); - - if (modelCf) { - modelCf = modelCf[0] && modelCf[0][0]; - cfLocation = modelCf.asc_getLocation(); - } - - ref = cfLocation && cfLocation[1]; - assert.strictEqual(ref, "=$A$2:$A$4", "compare location conditional formatting in table"); - - - clearData(0, 6, 0, 6); - }); - QUnit.test('Table selection for formula', function (assert) { let tableOptions = new AscCommonExcel.AddFormatTableOptions(); @@ -2615,22 +2571,21 @@ $(function () { activeCell = new AscCommon.CellBase(101, 4); handleSelectionRange = new Asc.Range(0, 101, 2, 101); sTableData = table.getSelectionString(activeCell, handleSelectionRange); - + assert.strictEqual(sTableData, tableName + "[@]", "check intersection all row"); //Table5[@[Column1]:[Column2]] activeCell = new AscCommon.CellBase(101, 4); handleSelectionRange = new Asc.Range(0, 101, 1, 101); sTableData = table.getSelectionString(activeCell, handleSelectionRange); - + assert.strictEqual(sTableData, tableName + "[@[Column1]:[Column2]]", "check intersection column1:column2 row"); - //Table5[@Column1] activeCell = new AscCommon.CellBase(101, 4); handleSelectionRange = new Asc.Range(0, 101, 0, 101); sTableData = table.getSelectionString(activeCell, handleSelectionRange); - + assert.strictEqual(sTableData, tableName + "[@Column1]", "check intersection column1 row"); //Table5[#Headers] @@ -2640,6 +2595,432 @@ $(function () { assert.strictEqual(sTableData, tableName + "[#Headers]", "check selection Headers"); + // Table5[[#Headers],[#Data]] + activeCell = new AscCommon.CellBase(99, 4); + handleSelectionRange = new Asc.Range(0, 99, 2, 103); + sTableData = table.getSelectionString(activeCell, handleSelectionRange); + + assert.strictEqual(sTableData, tableName + "[[#Headers],[#Data]]", "check selection Headers Data"); + + + clearData(0, 99, 0, 105); + }); + + QUnit.test('Table values/values for edit tests', function (assert) { + /*This test checks whether the string is parsed and changed correctly when working with tables */ + let array; + ws.getRange2("A100:C103").setValue("1"); + + let tableOptions = new AscCommonExcel.AddFormatTableOptions(); + tableOptions.range = "A100:C103"; + api.asc_addAutoFilter("TableStyleMedium2", tableOptions); // create table in A100:C103 range + + let tables = wsView.model.autoFilters.getTablesIntersectionRange(new Asc.Range(0, 100, 0, 100)); + assert.strictEqual(tables.length, 1, "compare tables length"); + + let table = tables[0]; + let tableName = table.DisplayName; // due to the fact that other tables are used in file, get the name of the one we need by this way + wsView.af_changeFormatTableInfo(tableName, Asc.c_oAscChangeTableStyleInfo.rowTotal, true); + + // calc res check + let cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 5); + let oParser = new AscCommonExcel.parserFormula(tableName + "[@]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[@][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[@][0,1]'); + assert.strictEqual(array.getValueByRowCol(0, 2).getValue(), 1, 'Result of Table[@][0,2]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 5); + resCell.setValue("=" + tableName +"[@]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@]", "Value for edit in cell after Table[@] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[#This Row]", "Formula in cell after Table[@] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 10); + oParser = new AscCommonExcel.parserFormula(tableName + "[#This Row]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[#This Row][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[#This Row][0,1]'); + assert.strictEqual(array.getValueByRowCol(0, 2).getValue(), 1, 'Result of Table[#This Row][0,2]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 10); + resCell.setValue("=" + tableName +"[#This Row]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@]", "Value for edit in cell after Table[#This Row] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[#This Row]", "Formula in cell after Table[#This Row] is typed"); + + // =Table[[#This Row]] => =Table[@] + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 15); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#This Row]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[[#This Row]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[[#This Row]][0,1]'); + assert.strictEqual(array.getValueByRowCol(0, 2).getValue(), 1, 'Result of Table[[#This Row]][0,2]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 15); + resCell.setValue("=" + tableName +"[[#This Row]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@]", "Value for edit in cell after Table[@] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[#This Row]", "Formula in cell after Table[@] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 20); + oParser = new AscCommonExcel.parserFormula(tableName + "[@Column1]", cellWithFormula, ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue().getValue(), 1, 'Result of Table[@Column1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 20); + resCell.setValue("=" + tableName +"[@Column1]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@Column1]", "Value for edit in cell after Table[@Column1] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#This Row],[Column1]]", "Formula in cell after Table[@Column1] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 25); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#This Row],[Column1]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue().getValue(), 1, 'Result of Table[[#This Row],[Column1]]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 25); + resCell.setValue("=" + tableName +"[[#This Row],[Column1]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@Column1]", "Value for edit in cell after Table[[#This Row],[Column1]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#This Row],[Column1]]", "Formula in cell after Table[[#This Row],[Column1]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 30); + oParser = new AscCommonExcel.parserFormula(tableName + "[@[Column1]:[Column2]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[@[Column1]:[Column2]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[@[Column1]:[Column2]][0,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 30); + resCell.setValue("=" + tableName +"[@[Column1]:[Column2]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@[Column1]:[Column2]]", "Value for edit in cell after Table[@[Column1]:[Column2]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#This Row],[Column1]:[Column2]]", "Formula in cell after Table[@[Column1]:[Column2]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 35); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#This Row],[Column1]:[Column2]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[[#This Row],[Column1]:[Column2]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[[#This Row],[Column1]:[Column2]][0,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 35); + resCell.setValue("=" + tableName +"[[#This Row],[Column1]:[Column2]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@[Column1]:[Column2]]", "Value for edit in cell after Table[[#This Row],[Column1]:[Column2]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#This Row],[Column1]:[Column2]]", "Formula in cell after Table[[#This Row],[Column1]:[Column2]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 40); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#This Row],[Column1]:[Column2]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[[#This Row],[Column1]:[Column2]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[[#This Row],[Column1]:[Column2]][0,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 40); + resCell.setValue("=" + tableName +"[[#This Row],[Column1]:[Column2]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@[Column1]:[Column2]]", "Value for edit in cell after Table[[#This Row],[Column1]:[Column2]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#This Row],[Column1]:[Column2]]", "Formula in cell after Table[[#This Row],[Column1]:[Column2]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 45); + oParser = new AscCommonExcel.parserFormula(tableName + "[@[Column1]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue().getValue(), 1, 'Result of Table[@[Column1]]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 45); + resCell.setValue("=" + tableName +"[@[Column1]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[@Column1]", "Value for edit in cell after Table[@[Column1]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#This Row],[Column1]]", "Formula in cell after Table[@[Column1]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 50); + oParser = new AscCommonExcel.parserFormula(tableName + "[#Headers]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), "Column1", 'Result of Table[#Headers][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), "Column2", 'Result of Table[#Headers][0,1]'); + assert.strictEqual(array.getValueByRowCol(0, 2).getValue(), "Column3", 'Result of Table[#Headers][0,2]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 50); + resCell.setValue("=" + tableName +"[#Headers]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[#Headers]", "Value for edit in cell after Table[#Headers] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[#Headers]", "Formula in cell after Table[#Headers] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 55); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#Headers]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), "Column1", 'Result of Table[[#Headers]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), "Column2", 'Result of Table[[#Headers]][0,1]'); + assert.strictEqual(array.getValueByRowCol(0, 2).getValue(), "Column3", 'Result of Table[[#Headers]][0,2]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 55); + resCell.setValue("=" + tableName +"[[#Headers]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[#Headers]", "Value for edit in cell after Table[[#Headers]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[#Headers]", "Formula in cell after Table[[#Headers]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 60); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#Headers],[Column2]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + assert.strictEqual(oParser.calculate().getValue().getValue(), "Column2", 'Result of Table[[#Headers],[Column2]]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 60); + resCell.setValue("=" + tableName +"[[#Headers],[Column2]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[[#Headers],[Column2]]", "Value for edit in cell after Table[[#Headers],[Column2]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#Headers],[Column2]]", "Formula in cell after Table[[#Headers],[Column2]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 65); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#Headers],[Column2]:[Column3]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), "Column2", 'Result of Table[[#Headers],[Column2]:[Column3]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), "Column3", 'Result of Table[[#Headers],[Column2]:[Column3]][0,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 65); + resCell.setValue("=" + tableName +"[[#Headers],[Column2]:[Column3]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[[#Headers],[Column2]:[Column3]]", "Value for edit in cell after Table[[#Headers],[Column2]:[Column3]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#Headers],[Column2]:[Column3]]", "Formula in cell after Table[[#Headers],[Column2]:[Column3]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 70); + oParser = new AscCommonExcel.parserFormula(tableName + "[#All]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), "Column1", 'Result of Table[#All][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), "Column2", 'Result of Table[#All][0,1]'); + assert.strictEqual(array.getValueByRowCol(1, 0).getValue(), 1, 'Result of Table[#All][1,0]'); + assert.strictEqual(array.getValueByRowCol(1, 1).getValue(), 1, 'Result of Table[#All][1,1]'); + assert.strictEqual(array.getValueByRowCol(3, 0).getValue(), 1, 'Result of Table[#All][3,0]'); + assert.strictEqual(array.getValueByRowCol(3, 1).getValue(), 1, 'Result of Table[#All][3,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 70); + resCell.setValue("=" + tableName +"[#All]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName, "Value for edit in cell after Table[#All] is typed"); + assert.strictEqual(resCell.getFormula(), tableName, "Formula in cell after Table[#All] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 75); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#All]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), "Column1", 'Result of Table[[#All]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), "Column2", 'Result of Table[[#All]][0,1]'); + assert.strictEqual(array.getValueByRowCol(1, 0).getValue(), 1, 'Result of Table[[#All]][1,0]'); + assert.strictEqual(array.getValueByRowCol(1, 1).getValue(), 1, 'Result of Table[[#All]][1,1]'); + assert.strictEqual(array.getValueByRowCol(3, 0).getValue(), 1, 'Result of Table[[#All]][3,0]'); + assert.strictEqual(array.getValueByRowCol(3, 1).getValue(), 1, 'Result of Table[[#All]][3,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 75); + resCell.setValue("=" + tableName +"[[#All]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[#All]", "Value for edit in cell after Table[[#All]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[#All]", "Formula in cell after Table[[#All]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 80); + oParser = new AscCommonExcel.parserFormula(tableName + "[#Data]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[#Data][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[#Data][0,1]'); + assert.strictEqual(array.getValueByRowCol(1, 0).getValue(), 1, 'Result of Table[#Data][1,0]'); + assert.strictEqual(array.getValueByRowCol(1, 1).getValue(), 1, 'Result of Table[#Data][1,1]'); + assert.strictEqual(array.getValueByRowCol(2, 0).getValue(), 1, 'Result of Table[#Data][2,0]'); + assert.strictEqual(array.getValueByRowCol(2, 1).getValue(), 1, 'Result of Table[#Data][2,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 80); + resCell.setValue("=" + tableName +"[#Data]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName, "Value for edit in cell after Table[#Data] is typed"); + assert.strictEqual(resCell.getFormula(), tableName, "Formula in cell after Table[#Data] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 85); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#Data]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[[#Data]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[[#Data]][0,1]'); + assert.strictEqual(array.getValueByRowCol(1, 0).getValue(), 1, 'Result of Table[[#Data]][1,0]'); + assert.strictEqual(array.getValueByRowCol(1, 1).getValue(), 1, 'Result of Table[[#Data]][1,1]'); + assert.strictEqual(array.getValueByRowCol(2, 0).getValue(), 1, 'Result of Table[[#Data]][2,0]'); + assert.strictEqual(array.getValueByRowCol(2, 1).getValue(), 1, 'Result of Table[[#Data]][2,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 85); + resCell.setValue("=" + tableName +"[[#Data]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[#Data]", "Value for edit in cell after Table[[#Data]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[#Data]", "Formula in cell after Table[[#Data]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 90); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#Totals]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), "Summary", 'Result of Table[[#Totals]][0,0]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 90); + resCell.setValue("=" + tableName +"[[#Totals]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[#Totals]", "Value for edit in cell after Table[#Totals]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[#Totals]", "Formula in cell after Table[[#Totals]] is typed"); + + + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 95); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#Data],[#Totals]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), 1, 'Result of Table[[#Data],[#Totals]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), 1, 'Result of Table[[#Data],[#Totals]][0,1]'); + assert.strictEqual(array.getValueByRowCol(1, 0).getValue(), 1, 'Result of Table[[#Data],[#Totals]][1,0]'); + assert.strictEqual(array.getValueByRowCol(1, 1).getValue(), 1, 'Result of Table[[#Data],[#Totals]][1,1]'); + assert.strictEqual(array.getValueByRowCol(2, 0).getValue(), 1, 'Result of Table[[#Data],[#Totals]][2,0]'); + assert.strictEqual(array.getValueByRowCol(2, 1).getValue(), 1, 'Result of Table[[#Data],[#Totals]][2,1]'); + assert.strictEqual(array.getValueByRowCol(4, 0).getValue(), "Summary", 'Result of Table[[#Data],[#Totals]][4,0]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 95); + resCell.setValue("=" + tableName +"[[#Data],[#Totals]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[[#Data],[#Totals]]", "Value for edit in cell after Table[[#Data],[#Totals]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#Data],[#Totals]]", "Formula in cell after Table[[#Data],[#Totals]] is typed"); + + + // =Table3[[#This Row],[#Data]] + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 100); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#This Row],[#Data]]", cellWithFormula, ws); + // assert.ok(oParser.parse()); // false + array = oParser.calculate(); + assert.strictEqual(oParser.calculate().getValue(), "#NAME?", 'Result of Table[[#This Row],[#Data]]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 100); + resCell.setValue("=" + tableName +"[[#This Row],[#Data]]"); + + assert.strictEqual(resCell.getValueForEdit(), "", "Value for edit in cell after Table[[#This Row],[#Data]] is typed"); + assert.strictEqual(resCell.getFormula(), "", "Formula in cell after Table[[#This Row],[#Data]] is typed"); + + + // =Table3[[#This Row],[#All]] + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 105); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#This Row],[#All]]", cellWithFormula, ws); + // assert.ok(oParser.parse()); // false + array = oParser.calculate(); + assert.strictEqual(oParser.calculate().getValue(), "#NAME?", 'Result of Table[[#This Row],[#All]]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 105); + resCell.setValue("=" + tableName +"[[#This Row],[#All]]"); + + assert.strictEqual(resCell.getValueForEdit(), "", "Value for edit in cell after Table[[#This Row],[#All]] is typed"); + assert.strictEqual(resCell.getFormula(), "", "Formula in cell after Table[[#This Row],[#All]] is typed"); + + + // =Table3[[#Headers],[#Data]] + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 90); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#Headers],[#Data]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), "Column1", 'Result of Table[[#Headers],[#Data]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), "Column2", 'Result of Table[[#Headers],[#Data]][0,1]'); + assert.strictEqual(array.getValueByRowCol(0, 2).getValue(), "Column3", 'Result of Table[[#Headers],[#Data]][0,2]'); + assert.strictEqual(array.getValueByRowCol(1, 0).getValue(), 1, 'Result of Table[[#Headers],[#Data]][1,0]'); + assert.strictEqual(array.getValueByRowCol(1, 1).getValue(), 1, 'Result of Table[[#Headers],[#Data]][1,1]'); + assert.strictEqual(array.getValueByRowCol(2, 0).getValue(), 1, 'Result of Table[[#Headers],[#Data]][2,0]'); + assert.strictEqual(array.getValueByRowCol(2, 1).getValue(), 1, 'Result of Table[[#Headers],[#Data]][2,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 90); + resCell.setValue("=" + tableName +"[[#Headers],[#Data]]"); + + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[[#Headers],[#Data]]", "Value for edit in cell after Table[[#Headers],[#Data]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#Headers],[#Data]]", "Formula in cell after Table[[#Headers],[#Data]] is typed"); + + // todo + // This entry is swapped in ms(Data is swapped with Headers) and is written as: =Table[[#Headers],[#Data]] and exactly the same is written to the file + // Our editor does not have such functionality, but it does not affect the final result of the calculation + // The only difference is that the string in the cell will differ from ms + // calc res check + cellWithFormula = new AscCommonExcel.CCellWithFormula(ws, 101, 95); + oParser = new AscCommonExcel.parserFormula(tableName + "[[#Data],[#Headers]]", cellWithFormula, ws); + assert.ok(oParser.parse()); + array = oParser.calculate(); + assert.strictEqual(array.getValueByRowCol(0, 0).getValue(), "Column1", 'Result of Table[[#Data],[#Headers]][0,0]'); + assert.strictEqual(array.getValueByRowCol(0, 1).getValue(), "Column2", 'Result of Table[[#Data],[#Headers]][0,1]'); + assert.strictEqual(array.getValueByRowCol(0, 2).getValue(), "Column3", 'Result of Table[[#Data],[#Headers]][0,2]'); + assert.strictEqual(array.getValueByRowCol(1, 0).getValue(), 1, 'Result of Table[[#Data],[#Headers]][1,0]'); + assert.strictEqual(array.getValueByRowCol(1, 1).getValue(), 1, 'Result of Table[[#Data],[#Headers]][1,1]'); + assert.strictEqual(array.getValueByRowCol(2, 0).getValue(), 1, 'Result of Table[[#Data],[#Headers]][2,0]'); + assert.strictEqual(array.getValueByRowCol(2, 1).getValue(), 1, 'Result of Table[[#Data],[#Headers]][2,1]'); + + // value for edit and formula in cell check + resCell = ws.getRange4(101, 95); + resCell.setValue("=" + tableName +"[[#Data],[#Headers]]"); + + //"=" + tableName + "[[#Headers],[#Data]]" + assert.strictEqual(resCell.getValueForEdit(), "=" + tableName + "[[#Data],[#Headers]]", "Value for edit in cell after Table[[#Data],[#Headers]] is typed"); + assert.strictEqual(resCell.getFormula(), tableName + "[[#Data],[#Headers]]", "Formula in cell after Table[[#Data],[#Headers]] is typed"); + clearData(0, 99, 0, 105); }); @@ -3034,7 +3415,174 @@ $(function () { assert.strictEqual(resCell.getValueWithFormat(), "1", "Value after B20:E20 autosum"); assert.strictEqual(resCell.getValueForEdit(), "=SUM(B20:D20)", "Formula after B20:E20 autosum"); assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "B20:E20", "Selection after B20:E20 autosum"); + + // for bug 37318 + ws.getRange2("A20:A22").cleanAll(); + ws.getRange2("A20:A22").setValue("1"); + fillRange = ws.getRange2("A20:A22"); + fillRange.setNumFormat("m/d/yyyy"); // change to the short date format + // wsView.setSelectionInfo("format", "m/d/yyyy"); + + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + resCell = ws.getRange2("A23"); + assert.strictEqual(resCell.getValueWithFormat(), "", "Value after A20:A22(only dates in range) autosum"); + assert.strictEqual(resCell.getValueForEdit(), "", "Formula after A20:A22(only dates in range) autosum"); + assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "A20:A22", "Selection after A20:A22(only dates in range) autosum"); + + + // number + fillRange = ws.getRange2("A20:A22"); + fillRange.setNumFormat("0.00"); // change to the number format + + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + resCell = ws.getRange2("A23"); + assert.strictEqual(resCell.getValueWithFormat(), "3", "Value after A20:A22(only number in range) autosum"); + assert.strictEqual(resCell.getValueForEdit(), "=SUM(A20:A22)", "Formula after A20:A22(only number in range) autosum"); + assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "A20:A23", "Selection after A20:A22(only number in range) autosum"); + + + // fraction + fillRange = ws.getRange2("A20:A22"); + fillRange.setNumFormat("# ?/?"); // change to the fraction format + ws.getRange2("A23").cleanAll(); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + resCell = ws.getRange2("A23"); + assert.strictEqual(resCell.getValueWithFormat(), "3", "Value after A20:A22(only fraction in range) autosum"); + assert.strictEqual(resCell.getValueForEdit(), "=SUM(A20:A22)", "Formula after A20:A22(only fraction in range) autosum"); + assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "A20:A23", "Selection after A20:A22(only fraction in range) autosum"); + + + // scientific + fillRange = ws.getRange2("A20:A22"); + fillRange.setNumFormat("0.00E+00"); // change to the scientific format + ws.getRange2("A23").cleanAll(); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + resCell = ws.getRange2("A23"); + assert.strictEqual(resCell.getValueWithFormat(), "3", "Value after A20:A22(only scientific in range) autosum"); + assert.strictEqual(resCell.getValueForEdit(), "=SUM(A20:A22)", "Formula after A20:A22(only scientific in range) autosum"); + assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "A20:A23", "Selection after A20:A22(only scientific in range) autosum"); + + + // accounting + fillRange = ws.getRange2("A20:A22"); + fillRange.setNumFormat("_([$$-409]* #,##0.00_);_([$$-409]* \\(#,##0.00\\);_([$$-409]* \"-\"??_);_(@_)"); // change to the accounting format + ws.getRange2("A23").cleanAll(); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + resCell = ws.getRange2("A23"); + assert.strictEqual(resCell.getValueWithFormat(), "3", "Value after A20:A22(only accounting in range) autosum"); + assert.strictEqual(resCell.getValueForEdit(), "=SUM(A20:A22)", "Formula after A20:A22(only accounting in range) autosum"); + assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "A20:A23", "Selection after A20:A22(only accounting in range) autosum"); + + + // percentage + fillRange = ws.getRange2("A20:A22"); + fillRange.setNumFormat("0.00%"); // change to the percentage format + ws.getRange2("A23").cleanAll(); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + resCell = ws.getRange2("A23"); + assert.strictEqual(resCell.getValueWithFormat(), "3", "Value after A20:A22(only percents in range) autosum"); + assert.strictEqual(resCell.getValueForEdit(), "=SUM(A20:A22)", "Formula after A20:A22(only percents in range) autosum"); + assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "A20:A23", "Selection after A20:A22(only percents in range) autosum"); + + + // l.date + fillRange = ws.getRange2("A20:A22"); + fillRange.setNumFormat("[$-F800]dddd\,\ mmmm\ d\,\ yyyy"); // change to the long date format + ws.getRange2("A23").cleanAll(); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + resCell = ws.getRange2("A23"); + assert.strictEqual(resCell.getValueWithFormat(), "", "Value after A20:A22(only dates in range) autosum"); + assert.strictEqual(resCell.getValueForEdit(), "", "Formula after A20:A22(only dates in range) autosum"); + assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "A20:A22", "Selection after A20:A22(only dates in range) autosum"); + + + // text + fillRange = ws.getRange2("A20:A22"); + fillRange.setNumFormat("@"); // change to the text format + ws.getRange2("A23").cleanAll(); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + resCell = ws.getRange2("A23"); + assert.strictEqual(resCell.getValueWithFormat(), "", "Value after A20:A22(only text in range) autosum"); + assert.strictEqual(resCell.getValueForEdit(), "", "Formula after A20:A22(only text in range) autosum"); + assert.strictEqual(wsView.model.selectionRange.getLast().getName(), "A20:A22", "Selection after A20:A22(only text in range) autosum"); + + /* activeCell tests */ + /* if the data type does not allow the formula to be executed, the active cell is moved to the end of the select */ + let activeCell, supposedActiveCell; + + ws.getRange2("A1:Z100").cleanAll(); + ws.getRange2("B10").setValue("111"); + ws.getRange2("B20:B22").setValue("ds"); + fillRange = ws.getRange2("B20:B22"); + fillRange.setNumFormat("@"); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + activeCell = ws.selectionRange.activeCell; + supposedActiveCell = ws.getCell2("B22"); + assert.strictEqual(activeCell.col === supposedActiveCell.bbox.c1 && activeCell.row === supposedActiveCell.bbox.r1, true, "Active cell test. B20:B22(only text in range) autosum"); + + + ws.getRange2("B10").cleanAll(); + ws.getRange2("A20:A21").setValue("111"); + fillRange = ws.getRange2("B20:B22"); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + activeCell = ws.selectionRange.activeCell; + supposedActiveCell = ws.getCell2("B22"); + assert.strictEqual(activeCell.col === supposedActiveCell.bbox.c1 && activeCell.row === supposedActiveCell.bbox.r1, true, "Active cell test. B20:B22(only text in range) autosum"); + + + ws.getRange2("A22").setValue("111"); + fillRange = ws.getRange2("B20:B22"); + wsView.setSelection(fillRange.bbox); + wsView._initRowsCount(); + wsView._initColsCount(); + autoCompleteRes = wsView.autoCompleteFormula("SUM"); + + activeCell = ws.selectionRange.activeCell; + supposedActiveCell = ws.getCell2("B22"); + assert.strictEqual(activeCell.col === supposedActiveCell.bbox.c1 && activeCell.row === supposedActiveCell.bbox.r1, true, "Active cell test. B20:B22(only text in range) autosum"); + + ws.getRange2("A1:Z100").cleanAll(); }); QUnit.test('sortRangeTest', function (assert) { @@ -3419,7 +3967,560 @@ $(function () { compareData(assert, range.bbox, expectedRes.reverse(), "Desc check_sort_18"); }); - + QUnit.test("Autofill - format Date, Date & Time and Time.", function (assert) { + function getAutofillCase(aFrom, aTo, nFillHandleArea, sDescription, expectedData) { + const [c1From, c2From, r1From, r2From] = aFrom; + const [c1To, c2To, r1To, r2To] = aTo; + const nHandleDirection = r1To === r2To ? 0 : 1; // 0 - Horizontal, 1 - Vertical + const autoFillAssert = nFillHandleArea === 3 ? autofillData : reverseAutofillData; + let autoFillRange; + + if (nHandleDirection === 0) { + let autofillC1 = nFillHandleArea === 3 ? c2From + 1 : c1From - 1; + autoFillRange = getRange(autofillC1, r1To, c2To, r2To); + } else { + let autofillR1 = nFillHandleArea === 3 ? r2From + 1 : r1From - 1; + autoFillRange = getRange(c1To, autofillR1, c2To, r2To); + } + ws.selectionRange.ranges = [getRange(c1From, r1From, c2From, r2From)]; + wsView = getAutoFillRange(wsView, c1To, r1To, c2To, r2To, nHandleDirection, nFillHandleArea); + let undoRes = nHandleDirection === 0 ? [undoData] : undoData; + let expectedRes = nHandleDirection === 0 ? [expectedData] : expectedData; + checkUndoRedo(function (_desc) { + autoFillAssert(assert, autoFillRange, undoRes, _desc); + }, function (_desc) { + autoFillAssert(assert, autoFillRange, expectedRes, _desc); + }, sDescription); + } + + ws.getRange2('A1:Z100').cleanAll(); + // Case #1: Format Date. Asc sequence. Vertical. Selected 2 cell + let testData = [ + ['12/12/2000', '12/12/2000'], + ['12/13/2000', '12/14/2000'] + ]; + let range = ws.getRange4(0,0); + range.fillData(testData); + let undoData = [[''], [''], [''], ['']]; + + // nFillHandleArea: 1 - Reverse, 3 - asc sequence, 2 - Reverse 1 elem. + // aFrom, aTo: [c1,c2,r1,r2] + getAutofillCase([0, 0, 0, 1], [0, 0, 2, 5], 3, 'Format Date. Asc sequence. Vertical. Selected 2 cell', [['36874'], ['36875'], ['36876'], ['36877']]); + getAutofillCase([1, 1, 0, 1], [1, 1, 2, 5], 3, 'Format Date. Asc sequence. Vertical. Selected 2 cell, even step.', [['36876'], ['36878'], ['36880'], ['36882']]); + // Case #2: Format Date. Reverse sequence. Vertical. Selected 2 cell + undoData = [[''],[''],['36873'], ['36872']]; + range = ws.getRange4(4, 0); + range.fillData(testData); + + getAutofillCase([0, 0, 4, 5], [0, 0, 3, 0], 1, 'Format Date. Reverse sequence. Vertical. Selected 2 cell', [['36871'], ['36870'], ['36869'], ['36868']]); + undoData = [[''],[''],['36874'], ['36872']]; + getAutofillCase([1, 1, 4, 5], [1, 1, 3, 0], 1, 'Format Date. Reverse sequence. Vertical. Selected 2 cell, even step', [['36870'], ['36868'], ['36866'], ['36864']]); + // Case #3: Format Date. Asc sequence. Horizontal. Selected 1 cell + clearData(0, 0, 1, 5); + testData = [ + ['12/12/2000'] + ]; + undoData = ['', '', '', '']; + range = ws.getRange4(0, 0); + range.fillData(testData); + + getAutofillCase([0, 0, 0, 0], [1, 4, 0, 0], 3, 'Format Date. Asc sequence. Horizontal. Selected 1 cell', ['36873', '36874', '36875', '36876']); + // Case #4: Format Date. Reverse sequence. Horizontal. Selected 1 cell + undoData = ['', '', '', '36872']; + range = ws.getRange4(0, 4); + range.fillData(testData); + + getAutofillCase([4, 4, 0, 0], [3, 0, 0, 0], 1, 'Format Date. Reverse sequence. Horizontal. Selected 1 cell', ['36871', '36870', '36869', '36868']); + // Case #5: Format Date. Asc sequence. Vertical. Selected 3 cells. Negative case - 12/12/2000, 12/13/2000, 12/12/2000. + testData = [ + ['12/12/2000'], + ['12/13/2000'], + ['12/12/2000'] + ]; + undoData = [[''], [''], [''], ['']]; + range = ws.getRange4(0, 0); + range.fillData(testData); + + getAutofillCase([0, 0, 0, 2], [0, 0, 3, 6], 3, 'Format Date. Asc sequence. Vertical. Selected 3 cells. Negative case - 12/12/2000, 12/13/2000, 12/12/2000.', [['36872'], ['36873'], ['36872'], ['36872']]); + // Case #6: Format Date. Reverse sequence. Vertical. Selected 3 cells. Negative case - 12/12/2000, 12/13/2000, 12/12/2000. + undoData = [[''], ['36872'], ['36873'], ['36872']]; + range = ws.getRange4(4, 0); + range.fillData(testData); + + getAutofillCase([0, 0, 4, 6], [0, 0, 3, 0], 1, 'Format Date. Reverse sequence. Vertical. Selected 3 cells. Negative case - 12/12/2000, 12/13/2000, 12/12/2000.', [['36872'], ['36873'], ['36872'], ['36872']]); + // Case #7: Format Date. Asc sequence. Horizontal. Selected 4 cells. Negative case - 12/12/2000, 12/13/2000, 12/14/2000, 12/16/2000. + clearData(0, 0, 0, 6); + testData = [ + ['12/12/2000', '12/13/2000', '12/14/2000', '12/16/2000'] + ]; + undoData = ['', '', '', '', '']; + range = ws.getRange4(0, 0); + range.fillData(testData); + + getAutofillCase([0, 3, 0, 0], [4, 8, 0, 0], 3, 'Format Date. Asc sequence. Horizontal. Selected 4 cells. Negative case - 12/12/2000, 12/13/2000, 12/14/2000, 12/16/2000.', ['36872', '36873', '36874', '36876', '36872']); + // Case #8: Format Date. Reverse sequence. Horizontal. Selected 4 cells. Negative case - 12/12/2000, 12/13/2000, 12/14/2000, 12/16/2000. + undoData = ['', '36876', '36874', '36873', '36872']; + range = ws.getRange4(0, 5); + range.fillData(testData); + + getAutofillCase([5, 8, 0, 0], [4, 0, 0, 0], 1, 'Format Date. Reverse sequence. Horizontal. Selected 4 cells. Negative case - 12/12/2000, 12/13/2000, 12/14/2000, 12/16/2000.', ['36876', '36874', '36873', '36872', '36876']); + // Case #9: Format Date. Asc sequence. Vertical. Selected 1 cell. Non integer value in Date format. + ws.getRange2('A1:I1').cleanAll(); + ws.getRange2('A1').setValue('12/12/2000'); + ws._getCell(0, 0,function(cell) { + cell.setValueNumberInternal(36872.5); + }); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 0], [0, 0, 1, 4], 3, 'Format Date. Asc sequence. Vertical. Selected 1 cell. Non integer value in Date format.', [['36873'], ['36874'], ['36875'], ['36876']]); + // Case #10: Format Date. Reverse sequence. Horizontal. Selected 2 cells. Non integer value in Date format. + ws.getRange2('E1').setValue('12/12/2000'); + ws.getRange2('F1').setValue('12/13/2000'); + ws._getCell(0, 4, function (cell) { + cell.setValueNumberInternal(36872.5); + }); + ws._getCell(0, 5, function (cell) { + cell.setValueNumberInternal(36873.6); + }); + undoData = ['', '', '', '36872.5']; + + getAutofillCase([4, 5, 0, 0], [3, 0, 0, 0], 1, 'Format Date. Reverse sequence. Horizontal. Selected 2 cells. Non integer value in Date format.', ['36871', '36870', '36869', '36868']); + // Case #11: Format Date. Asc sequence. Vertical. Selected 2 cells. Step 0. + ws.getRange2('A1:F9').cleanAll(); + testData = [ + ['12/12/2000'], + ['12/12/2000'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 1], [0, 0, 2, 5], 3, 'Format Date. Asc sequence. Vertical. Selected 2 cells. Step 0.', [['36872'], ['36872'], ['36872'], ['36872']]); + // Case #12: Format Date & Time. Asc sequence. Vertical. Selected 2 cells. Step - time. + ws.getRange2('A1:A6').cleanAll(); + testData = [ + ['12/12/2000 12:00'], + ['12/12/2000 13:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 1], [0, 0, 2, 5], 3, 'Format Date & Time. Asc sequence. Vertical. Selected 2 cells. Step - time.', [['36872.583333333336'], ['36872.62500000001'], ['36872.66666666668'], ['36872.70833333335']]); + // Case #13: Format Date & Time. Reverse sequence. Vertical. Selected 2 cells. Step - time. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], [''], ['36872.541666666664'], ['36872.5']]; + + getAutofillCase([0, 0, 4, 5], [0, 0, 3, 0], 1, 'Format Date & Time. Reverse sequence. Vertical. Selected 2 cells. Step - time.', [['36872.45833333334'], ['36872.416666666686'], ['36872.37500000003'], ['36872.33333333337']]); + // Case #14: Format Date & Time. Asc sequence. Horizontal. Selected 1 cell. + ws.getRange2('A1:A6').cleanAll(); + testData = [ + ['12/12/2000 13:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = ['', '', '', '']; + + getAutofillCase([0, 0, 0, 0], [1, 4, 0, 0], 3, 'Format Date & Time. Asc sequence. Horizontal. Selected 1 cell.', ['36873.541666666664', '36874.541666666664', '36875.541666666664', '36876.541666666664']); + // Case #15: Format Date & Time. Reverse sequence. Horizontal. Selected 1 cell. + range = ws.getRange4(0, 4); + range.fillData(testData); + undoData = ['', '', '', '36872.541666666664']; + + getAutofillCase([4, 4, 0, 0], [3, 0, 0, 0], 1, 'Format Date & Time. Reverse sequence. Horizontal. Selected 1 cell.', ['36871.541666666664', '36870.541666666664', '36869.541666666664', '36868.541666666664']); + // Case #16: Format Date & Time. Asc sequence. Vertical. Selected 2 cells. Diff days, same time. + ws.getRange2('A1:F1').cleanAll(); + testData = [ + ['12/12/2000 14:00'], + ['12/14/2000 14:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 1], [0, 0, 2, 5], 3, 'Format Date & Time. Asc sequence. Vertical. Selected 2 cells. Diff days, same time.', [['36876.583333333336'], ['36878.583333333336'], ['36880.583333333336'], ['36882.583333333336']]); + // Case #17: Format Date & Time. Reverse sequence. Vertical. Selected 2 cells. Diff days, same time. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], [''], ['36874.583333333336'], ['36872.583333333336']]; + + getAutofillCase([0, 0, 4, 5], [0, 0, 3, 0], 1, 'Format Date & Time. Reverse sequence. Vertical. Selected 2 cells. Diff days, same time.', [['36870.583333333336'], ['36868.583333333336'], ['36866.583333333336'], ['36864.583333333336']]); + // Case #18: Format Date & Time. Asc sequence. Vertical. Selected 2 cells. Step - time & day. + testData = [ + ['12/12/2000 12:00'], + ['12/14/2000 13:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], ['36872.583333333336'], ['36874.583333333336']]; + + getAutofillCase([0, 0, 0, 1], [0, 0, 2, 5], 3, 'Format Date & Time. Asc sequence. Vertical. Selected 2 cells. Step - time & day.', [['36876.583333333336'], ['36878.62500000001'], ['36880.66666666668'], ['36882.70833333335']]); + // Case #19: Format Date & Time. Reverse sequence. Vertical. Selected 2 cells. Step - time & day. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], [''], ['36874.541666666664'], ['36872.5']]; + + getAutofillCase([0, 0, 4, 5], [0, 0, 3, 0], 1, 'Format Date & Time. Reverse sequence. Vertical. Selected 2 cells. Step - time & day.', [['36870.45833333334'], ['36868.416666666686'], ['36866.37500000003'], ['36864.33333333337']]); + // Case #20: Format Date & Time. Asc sequence. Horizontal. Negative case. Same day, time - 12:00, 13:00, 12:00. + ws.getRange2('A1:A6').cleanAll(); + testData = [ + ['12/12/2000 12:00', '12/12/2000 13:00', '12/12/2000 12:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = ['', '', '', '']; + + getAutofillCase([0, 2, 0, 0], [3, 6, 0, 0], 3, 'Format Date & Time. Asc sequence. Horizontal. Negative case: Same day, time - 12:00, 13:00, 12:00.', ['36872.5', '36872.5', '36872.5', '36872.5']); + // Case #21: Format Date & Time. Reverse sequence. Horizontal. Negative case. Same day, time - 12:00, 13:00, 12:00. + range = ws.getRange4(0, 4); + range.fillData(testData); + undoData = ['', '36872.5', '36872.541666666664', '36872.5']; + + getAutofillCase([4, 6, 0, 0], [3, 0, 0, 0], 1, 'Format Date & Time. Reverse sequence. Horizontal. Negative case: Same day, time - 12:00, 13:00, 12:00.', ['36872.5', '36872.5', '36872.5', '36872.5']); + // Case #22: Format Date & Time. Asc sequence. Horizontal. Negative case. Same day, time - 13:00, 14:00, 16:00. + testData = [ + ['12/12/2000 13:00', '12/12/2000 14:00', '12/12/2000 16:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = ['', '36872.5', '36872.541666666664', '36872.5']; + + getAutofillCase([0, 2, 0, 0], [3, 6, 0, 0], 3, 'Format Date & Time. Asc sequence. Horizontal. Negative case: Same day, time - 13:00, 14:00, 16:00.', ['36872.541666666664', '36872.541666666664', '36872.541666666664', '36872.541666666664']); + // Case #23: Format Date & Time. Reverse sequence. Horizontal. Negative case. Same day, time - 13:00, 14:00, 16:00. + range = ws.getRange4(0, 4); + range.fillData(testData); + undoData = ['', '36872.666666666664', '36872.583333333336', '36872.541666666664']; + + getAutofillCase([4, 6, 0, 0], [3, 0, 0, 0], 1, 'Format Date & Time. Reverse sequence. Horizontal. Negative case: Same day, time - 13:00, 14:00, 16:00.', ['36872.541666666664', '36872.541666666664', '36872.541666666664', '36872.541666666664']); + // Case #24: Format Date & Time. Asc sequence. Vertical. Negative case. Diff days, same time. + ws.getRange2('A1:F1').cleanAll(); + testData = [ + ['12/12/2000 12:00'], + ['12/13/2000 12:00'], + ['12/12/2000 12:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 2], [0, 0, 3, 6], 3, 'Format Date & Time. Asc sequence. Vertical. Negative case: Diff days, same time.', [['36872.5'], ['36873.5'], ['36872.5'], ['36872.5']]); + // Case #25: Format Date & Time. Reverse sequence. Vertical. Negative case. Diff days, same time. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], ['36872.5'], ['36873.5'], ['36872.5']]; + + getAutofillCase([0, 0, 4, 6], [0, 0, 3, 0], 1, 'Format Date & Time. Reverse sequence. Vertical. Negative case: Diff days, same time.', [['36872.5'], ['36873.5'], ['36872.5'], ['36872.5']]); + // Case #26: Format Date & Time. Asc sequence. Vertical. Negative case. Diff days & time. + testData = [ + ['12/12/2000 12:00'], + ['12/13/2000 13:00'], + ['12/15/2000 14:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], ['36872.5'], ['36873.5'], ['36872.5']]; + + getAutofillCase([0, 0, 0, 2], [0, 0, 3, 6], 3, 'Format Date & Time. Asc sequence. Vertical. Negative case: Diff days & time.', [['36872.5'], ['36873.541666666664'], ['36875.583333333336'], ['36872.5']]); + // Case #27: Format Date & Time. Reverse sequence. Vertical. Negative case. Diff days & time. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], ['36875.583333333336'], ['36873.541666666664'], ['36872.5']]; + + getAutofillCase([0, 0, 4, 6], [0, 0, 3, 0], 1, 'Format Date & Time. Reverse sequence. Vertical. Negative case: Diff days & time.', [['36875.583333333336'], ['36873.541666666664'], ['36872.5'], ['36875.583333333336']]); + // Case #28: Mixed format. Asc sequence. Horizontal. Same day, diff time. + ws.getRange2('A1:G7').cleanAll(); + testData = [ + ['12/12/2000', '12/12/2000 12:00', '12/12/2000 13:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = ['', '', '', '']; + + getAutofillCase([0, 2, 0, 0], [3, 6, 0, 0], 3, 'Mixed format. Asc sequence. Horizontal. Same day, diff time.', ['36872.5', '36872.5', '36872.5', '36872.5']); + // Case #29: Mixed format. Reverse sequence. Horizontal. Same day, diff time. First cell with Date format + range = ws.getRange4(0, 4); + range.fillData(testData); + undoData = ['', '36872.541666666664', '36872.5', '36872']; + + getAutofillCase([4, 6, 0, 0], [3, 0, 0, 0], 1, 'Mixed format. Reverse sequence. Horizontal. Same day, diff time. First Date', ['36872.5', '36872.5', '36872.5', '36872.5']); + // Case #30: Mixed format. Asc sequence. Horizontal. Same day, diff time. First cell with Date & Time format + testData = [ + ['12/12/2000 12:00', '12/12/2000', '12/12/2000 13:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = ['', '36872', '36872.5', '36872.541666666664']; + + getAutofillCase([0, 2, 0, 0], [3, 6, 0, 0], 3, 'Mixed format. Asc sequence. Horizontal. Same day, diff time. First Date & Time', ['36872.5', '36872.5', '36872.5', '36872.5']); + // Case #31: Mixed format. Reverse sequence. Horizontal. Same day, diff time. First cell with Date & Time format + ws.getRange2('A1:F1').cleanAll(); + range = ws.getRange4(0, 4); + range.fillData(testData); + undoData = ['', '', '', '']; + + getAutofillCase([4, 6, 0, 0], [3, 0, 0, 0], 1, 'Mixed format. Reverse sequence. Horizontal. Same day, diff time. First Date & Time', ['36872.5', '36872.5', '36872.5', '36872.5']); + // Case #32: Mixed format. Asc sequence. Vertical. Diff day, same time. First Date format. + ws.getRange2('A1:F1').cleanAll(); + testData = [ + ['12/12/2000'], + ['12/13/2000 12:00'], + ['12/14/2000 12:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 2], [0, 0, 3, 6], 3, 'Mixed format. Asc sequence. Vertical. Diff day, same time. First Date', [['36875.5'], ['36876.5'], ['36877.5'], ['36878.5']]); + // Case #33: Mixed format. Reverse sequence. Vertical. Diff day, same time. First Date format. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], ['36874.5'], ['36873.5'], ['36872']]; + + getAutofillCase([0, 0, 4, 6], [0, 0, 3, 0], 1, 'Mixed format. Reverse sequence. Vertical. Diff day, same time. First Date', [['36871.5'], ['36870.5'], ['36869.5'], ['36868.5']]); + // Case #34: Mixed format. Asc sequence. Vertical. Diff day, same time. First Date & Time format. + ws.getRange2('A1:A8').cleanAll(); + testData = [ + ['12/12/2000 12:00'], + ['12/14/2000 12:00'], + ['12/16/2000'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 2], [0, 0, 3, 6], 3, 'Mixed format. Asc sequence. Vertical. Diff day, same time. First Date & Time', [['36878.5'], ['36880.5'], ['36882.5'], ['36884.5']]); + // Case #35: Mixed format. Reverse sequence. Vertical. Diff day, same time. First Date & Time format. + ws.getRange2('A1:A8').cleanAll(); + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 4, 6], [0, 0, 3, 0], 1, 'Mixed format. Reverse sequence. Vertical. Diff day, same time. First Date & Time', [['36870.5'], ['36868.5'], ['36866.5'], ['36864.5']]); + // Case #36: Mixed format. Asc sequence. Vertical. Negative case: 12/12/2000, 12/13/2000, 12/12/2000 12:00. First Date format. + ws.getRange2('A1:A8').cleanAll(); + testData = [ + ['12/12/2000'], + ['12/13/2000 12:00'], + ['12/12/2000 13:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 2], [0, 0, 3, 6], 3, 'Mixed format. Asc sequence. Vertical. Negative case. First Date', [['36872'], ['36873.5'], ['36872.541666666664'], ['36872']]); + // Case #37: Mixed format. Reverse sequence. Vertical. Negative case: 12/12/2000, 12/13/2000 12:00, 12/12/2000 13:00. First Date format. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], ['36872.541666666664'], ['36873.5'], ['36872']]; + + getAutofillCase([0, 0, 4, 6], [0, 0, 3, 0], 1, 'Mixed format. Reverse sequence. Vertical. Negative case. First Date', [['36872.541666666664'], ['36873.5'], ['36872'], ['36872.541666666664']]); + // Case #38: Mixed format. Asc sequence. Vertical. Negative case: 12/12/2000 12:00, 12/13/2000, 12/15/2000 13:00. First Date & Time format. + ws.getRange2('A1:A8').cleanAll(); + testData = [ + ['12/12/2000 12:00'], + ['12/13/2000'], + ['12/15/2000 13:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 2], [0, 0, 3, 6], 3, 'Mixed format. Asc sequence. Vertical. Negative case. First Date & Time', [['36872.5'], ['36873'], ['36875.541666666664'], ['36872.5']]); + // Case #39: Mixed format. Reverse sequence. Vertical. Negative case: 12/12/2000 12:00, 12/13/2000, 12/15/2000 13:00. First Date & Time format. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], ['36875.541666666664'], ['36873'], ['36872.5']]; + + getAutofillCase([0, 0, 4, 6], [0, 0, 3, 0], 1, 'Mixed format. Reverse sequence. Vertical. Negative case. First Date & Time', [['36875.541666666664'], ['36873'], ['36872.5'], ['36875.541666666664']]); + // Case #40: 1900 year. Asc sequence. Horizontal. One selected cell. Date format. + ws.getRange2('A1:A8').cleanAll(); + testData = [ + ['01/01/1900'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = ['', '', '', '']; + + getAutofillCase([0, 0, 0, 0], [1, 4, 0, 0], 3, '1900 year. Asc sequence. Horizontal. One selected cell. Date format', ['2', '3', '4', '5']); + // Case #41: 1900 year. Reverse sequence. Horizontal. One selected cell. Date format. + range = ws.getRange4(0, 4); + range.fillData(testData); + undoData = ['', '', '', '1']; + + getAutofillCase([4, 4, 0, 0], [3, 0, 0, 0], 1, '1900 year. Reverse sequence. Horizontal. One selected cell. Date format', ['0', '1', '1', '1']); + // Case #42: 1900 year. Asc sequence. Horizontal. Date format. + testData = [ + ['01/01/1900', '01/03/1900'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = ['', '', '1', '']; + + getAutofillCase([0, 1, 0, 0], [2, 5, 0, 0], 3, '1900 year. Asc sequence. Horizontal. Date format', ['5', '7', '9', '11']); + // Case #43: 1900 year. Reverse sequence. Horizontal. Date format. + range = ws.getRange4(0, 4); + range.fillData(testData); + undoData = ['', '', '3', '1']; + + getAutofillCase([4, 5, 0, 0], [3, 0, 0, 0], 1, '1900 year. Reverse sequence. Horizontal. Date format', ['3', '1', '3', '1']); + // Case #44: 1900 year. Asc sequence. Vertical. One selected cell. Date & Time format. + ws.getRange2('A1:F1').cleanAll(); + testData = [ + ['01/01/1900 12:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 0], [0, 0, 1, 4], 3, '1900 year. Asc sequence. Vertical. One selected cell. Date & Time format', [['2.5'], ['3.5'], ['4.5'], ['5.5']]); + // Case #45: 1900 year. Reverse sequence. Vertical. One selected cell. Date & Time format. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['1.5']]; + + getAutofillCase([0, 0, 4, 4], [0, 0, 3, 0], 1, '1900 year. Reverse sequence. Vertical. One selected cell. Date & Time format', [['0.5'], ['1.5'], ['1.5'], ['1.5']]); + // Case #46: 1900 year. Asc sequence. Vertical. Date & Time format. + testData = [ + ['01/01/1900 1:00'], + ['01/01/1900 12:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], ['1.5'], ['']]; + + getAutofillCase([0, 0, 0, 1], [0, 0, 2, 5], 3, '1900 year. Asc sequence. Vertical. Date & Time format', [['1.958333333333333'], ['2.416666666666666'], ['2.874999999999999'], ['3.333333333333332']]); + // Case #47: 1900 year. Reverse sequence. Vertical. Date & Time format. + range = ws.getRange4(4, 0); + range.fillData(testData); + undoData = [[''], [''], ['1.5'], ['1.0416666666666667']]; + + getAutofillCase([0, 0, 4, 5], [0, 0, 3, 0], 1, '1900 year. Reverse sequence. Vertical. Date & Time format', [['0.5833333333333333'], ['0.12499999999999978'], ['-0.3333333333333337'], ['-0.7916666666666672']]); + // Case #48: 1900 year. Asc sequence. Horizontal. Mixed format. + ws.getRange2('A1:A8').cleanAll(); + testData = [ + ['01/01/1900', '01/02/1900 12:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = ['', '', '', '']; + + getAutofillCase([0, 1, 0, 0], [2, 5, 0, 0], 3, '1900 year. Asc sequence. Horizontal. Mixed format', ['3.5', '4.5', '5.5', '6.5']); + // Case #49: 1900 year. Reverse sequence. Horizontal. Mixed format. + range = ws.getRange4(0, 4); + range.fillData(testData); + undoData = ['', '', '2.5', '1']; + + getAutofillCase([4, 5, 0, 0], [3, 0, 0, 0], 1, '1900 year. Reverse sequence. Horizontal. Mixed format', ['0.5', '1', '2.5', '1']); + // Case #50: Time format. Asc sequence. Vertical. One selected cell. + ws.getRange2('A1:F1').cleanAll(); + testData = [ + ['12:00:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 0], [0, 0, 1, 4], 3, 'Time format. Asc sequence. Vertical. One selected cell', [['0.5416666666666666'], ['0.5833333333333334'], ['0.625'], ['0.6666666666666666']]); + // Case #51: Time format. Reverse sequence. Vertical. One selected cell. + testData = [['0:00:00']] + range = ws.getRange4(24, 0); + range.fillData(testData); + undoData = [[''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], + [''], [''], [''], [''], [''], [''], [''], [''], ['0.5']]; + let expectedData = [['0.9583333333333334'], ['0.9166666666666666'], ['0.875'], ['0.8333333333333334'], ['0.7916666666666667'], + ['0.75'], ['0.7083333333333334'], ['0.6666666666666667'], ['0.625'], ['0.5833333333333334'], ['0.5416666666666667'], + ['0.5'], ['0.45833333333333337'], ['0.41666666666666674'], ['0.375'], ['0.33333333333333337'], ['0.29166666666666674'], + ['0.25'], ['0.20833333333333337'], ['0.16666666666666674'], ['0.125'], ['0.08333333333333337'], ['0.04166666666666674'], ['0']]; + + getAutofillCase([0, 0, 24, 24], [0, 0, 23, 0], 1, 'Time format. Reverse sequence. Vertical. One selected cell', expectedData); + // Case #52: Time format. Asc sequence. Vertical. Multiple selected cells. + testData = [ + ['12:00:00'], + ['14:00:00'] + ]; + range = ws.getRange4(0, 0); + range.fillData(testData); + undoData = [[''], [''], [''], [''], [''], ['']]; + + getAutofillCase([0, 0, 0, 1], [0, 0, 2, 7], 3, 'Time format. Asc sequence. Vertical. Multiple selected cells', [['0.6666666666666666'], ['0.7499999999999999'], ['0.8333333333333331'], ['0.9166666666666664'], ['0.9999999999999997'], ['1.083333333333333']]); + // Case #53: Time format. Reverse sequence. Vertical. Multiple selected cells. + testData = [ + ['23:00:00'], + ['0:00:00'] + ]; + range = ws.getRange4(23, 0); + range.fillData(testData); + undoData = [[''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], + [''], [''], [''], [''], ['0.5833333333333334'], ['0.5']]; + expectedData = [ + ['1.9166666666666667'], ['2.875'], ['3.8333333333333335'], ['4.791666666666667'], ['5.75'], + ['6.708333333333334'], ['7.666666666666667'], ['8.625'], ['9.583333333333334'], ['10.541666666666668'], ['11.5'], + ['12.458333333333334'], ['13.416666666666668'], ['14.375'], ['15.333333333333334'], ['16.291666666666668'], + ['17.25'], ['18.208333333333336'], ['19.166666666666668'], ['20.125'], ['21.083333333333336'], ['22.041666666666668'], ['23'] + ]; + + getAutofillCase([0, 0, 23, 24], [0, 0, 22, 0], 1, 'Time format. Reverse sequence. Vertical. Multiple selected cells', expectedData); + // Case #54: Time format. Asc sequence. Horizontal. Multiple selected cells. Start from 1. + ws.getRange2('A1').setValue('0:00:00'); + ws.getRange2('B1').setValue('1:00:00'); + ws._getCell(0, 0, function (cell) { + cell.setValueNumberInternal(1); + }); + ws._getCell(0, 1, function (cell) { + cell.setValueNumberInternal(1.04166666666667); + }); + undoData = ['', '', '', '']; + + getAutofillCase([0, 1, 0, 0], [2, 5, 0, 0], 3, 'Time format. Asc sequence. Horizontal. Multiple selected cells. Start from 1.', ['1.0833333333333401', '1.1250000000000102', '1.1666666666666803', '1.2083333333333504']); + // Case #55: Time format. Reverse sequence. Horizontal. Multiple selected cells. Start from 1. + ws.getRange2('A1:Z30').cleanAll(); + ws.getRange2('Y1').setValue('23:00:00'); + ws.getRange2('Z1').setValue('00:00:00'); + ws._getCell(0, 24, function (cell) { + cell.setValueNumberInternal(0.958333333333333); + }); + ws._getCell(0, 25, function (cell) { + cell.setValueNumberInternal(1); + }); + undoData = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']; + expectedData = ['0.9166666666666661', '0.8749999999999991', '0.8333333333333321', '0.7916666666666652', '0.7499999999999982', '0.7083333333333313', '0.6666666666666643', + '0.6249999999999973', '0.5833333333333304', '0.5416666666666634', '0.49999999999999645', '0.4583333333333295', '0.4166666666666625', '0.37499999999999556', '0.3333333333333286', + '0.29166666666666163', '0.24999999999999467', '0.2083333333333277', '0.16666666666666075', '0.12499999999999378', '0.08333333333332682', '0.04166666666665986', '1', '0.958333333333333']; + + getAutofillCase([24, 25, 0, 0], [23, 0, 0, 0], 1, 'Time format. Reverse sequence. Horizontal. Multiple selected cells. Start from 1.', expectedData); + // Case #56: Time format. Asc sequence. Vertical. Multiple selected cells. Start from 36872.5. + ws.getRange2('A1:Z1').cleanAll(); + ws.getRange2('A1').setValue('12:00:00'); + ws.getRange2('A2').setValue('13:00:00'); + ws._getCell(0, 0, function (cell) { + cell.setValueNumberInternal(36872.5); + }); + ws._getCell(1, 0, function (cell) { + cell.setValueNumberInternal(36873.5416666667); + }); + undoData = [[''], [''], [''], [''], [''], [''], [''], [''], [''], [''], ['']]; + expectedData = [['36872.5833333334'], ['36872.6250000001'], ['36872.6666666668'], ['36872.7083333335'], ['36872.750000000204'], ['36872.791666666904'], ['36872.833333333605'], + ['36872.875000000306'], ['36872.916666667006'], ['36872.95833333371'], ['36873.00000000041']]; + + getAutofillCase([0, 0, 0, 1], [0, 0, 2, 12], 3, 'Time format. Asc sequence. Vertical. Multiple selected cells. Start from 36872.5.', expectedData); + // Case #57: Time format. Reverse sequence. Vertical. Multiple selected cells. Start from 36872.5. + ws.getRange2('A14').setValue('12:00:00'); + ws.getRange2('A15').setValue('13:00:00'); + ws._getCell(13, 0, function (cell) { + cell.setValueNumberInternal(36872.5); + }); + ws._getCell(14, 0, function (cell) { + cell.setValueNumberInternal(36873.5416666667); + }); + undoData = [[''], [''], [''], [''], [''], [''], [''], [''], [''], [''], [''], ['36873.5416666667'], ['36872.5']]; + expectedData = [['36872.4583333333'], ['36872.4166666666'], ['36872.3749999999'], ['36872.3333333332'], ['36872.2916666665'], + ['36872.249999999796'], ['36872.208333333096'], ['36872.166666666395'], ['36872.124999999694'], ['36872.083333332994'], ['36872.04166666629'], + ['36871.99999999959'], ['36871.95833333289']]; + + getAutofillCase([0, 0, 13, 14], [0, 0, 12, 0], 1, 'Time format. Reverse sequence. Vertical. Multiple selected cells. Start from 36872.5.', expectedData); + ws.getRange2('A1:A20').cleanAll(); + }); QUnit.module("Sheet structure"); }); diff --git a/tests/cell/spreadsheet-calculation/SheetViewTests.js b/tests/cell/spreadsheet-calculation/SheetViewTests.js index f934fb1608..f0d438bac0 100644 --- a/tests/cell/spreadsheet-calculation/SheetViewTests.js +++ b/tests/cell/spreadsheet-calculation/SheetViewTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/UserProtectedRangesTest.js b/tests/cell/spreadsheet-calculation/UserProtectedRangesTest.js index 66c8c4d312..11411baba0 100644 --- a/tests/cell/spreadsheet-calculation/UserProtectedRangesTest.js +++ b/tests/cell/spreadsheet-calculation/UserProtectedRangesTest.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/cell/spreadsheet-calculation/autoFilterTests.js b/tests/cell/spreadsheet-calculation/autoFilterTests.js index 19a3088829..2a66936837 100644 --- a/tests/cell/spreadsheet-calculation/autoFilterTests.js +++ b/tests/cell/spreadsheet-calculation/autoFilterTests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/benchmark-range-iterator.js b/tests/cell/spreadsheet-calculation/benchmark-range-iterator.js index 0bd1086319..50314f4fbd 100644 --- a/tests/cell/spreadsheet-calculation/benchmark-range-iterator.js +++ b/tests/cell/spreadsheet-calculation/benchmark-range-iterator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/conditionalFormattingTests.html b/tests/cell/spreadsheet-calculation/conditionalFormattingTests.html new file mode 100644 index 0000000000..bb3f6a98a2 --- /dev/null +++ b/tests/cell/spreadsheet-calculation/conditionalFormattingTests.html @@ -0,0 +1,32 @@ + + + + + + Unit Tests + + + + + + + + + + + + + +

          Conditional formatting tests

          +

          +
          +

          +
            +
            test markup, will be hidden
            + + diff --git a/tests/cell/spreadsheet-calculation/conditionalFormattingTests.js b/tests/cell/spreadsheet-calculation/conditionalFormattingTests.js new file mode 100644 index 0000000000..52298094b2 --- /dev/null +++ b/tests/cell/spreadsheet-calculation/conditionalFormattingTests.js @@ -0,0 +1,303 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +$(function () { + + Asc.spreadsheet_api.prototype._init = function () { + this._loadModules(); + }; + Asc.spreadsheet_api.prototype._loadFonts = function (fonts, callback) { + callback(); + }; + Asc.spreadsheet_api.prototype.onEndLoadFile = function (fonts, callback) { + openDocument(); + }; + AscCommonExcel.WorkbookView.prototype._calcMaxDigitWidth = function () { + }; + AscCommonExcel.WorkbookView.prototype._init = function () { + }; + AscCommonExcel.WorkbookView.prototype._isLockedUserProtectedRange = function (callback) { + callback(true); + }; + AscCommonExcel.WorkbookView.prototype._onWSSelectionChanged = function () { + }; + AscCommonExcel.WorkbookView.prototype.showWorksheet = function () { + }; + AscCommonExcel.WorkbookView.prototype.recalculateDrawingObjects = function () { + }; + AscCommonExcel.WorkbookView.prototype.restoreFocus = function () { + }; + AscCommonExcel.WorksheetView.prototype._init = function () { + }; + AscCommonExcel.WorksheetView.prototype.updateRanges = function () { + }; + AscCommonExcel.WorksheetView.prototype._autoFitColumnsWidth = function () { + }; + AscCommonExcel.WorksheetView.prototype.cleanSelection = function () { + }; + AscCommonExcel.WorksheetView.prototype._drawSelection = function () { + }; + AscCommonExcel.WorksheetView.prototype._scrollToRange = function () { + }; + AscCommonExcel.WorksheetView.prototype.draw = function () { + }; + AscCommonExcel.WorksheetView.prototype._prepareDrawingObjects = function () { + }; + AscCommonExcel.WorksheetView.prototype._initCellsArea = function () { + }; + AscCommonExcel.WorksheetView.prototype.getZoom = function () { + }; + AscCommonExcel.WorksheetView.prototype._prepareCellTextMetricsCache = function () { + }; + AscCommonExcel.WorksheetView.prototype._getCellCache = function (col, row) { + let _cell = null; + this.model.getRange3(row, col, row, col)._foreachNoEmpty(function(cell, row, col) { + if (cell && !cell.isEmptyTextString()) { + _cell = {cellType: cell.getType()} + } + }, null, true); + return _cell; + }; + + AscCommon.baseEditorsApi.prototype._onEndLoadSdk = function () { + }; + AscCommonExcel.WorksheetView.prototype._isLockedCells = function (range, subType, callback) { + callback(true); + return true; + }; + AscCommonExcel.WorksheetView.prototype._isLockedAll = function (callback) { + callback(true); + }; + AscCommonExcel.WorksheetView.prototype._isLockedFrozenPane = function (callback) { + callback(true); + }; + AscCommonExcel.WorksheetView.prototype._updateVisibleColsCount = function () { + }; + AscCommonExcel.WorksheetView.prototype._calcActiveCellOffset = function () { + }; + + AscCommon.baseEditorsApi.prototype._onEndLoadSdk = function () { + }; + Asc.ReadDefTableStyles = function(){}; + + function openDocument(){ + AscCommon.g_oTableId.init(); + api._onEndLoadSdk(); + api.isOpenOOXInBrowser = false; + api._openDocument(AscCommon.getEmpty()); + api._openOnClient(); + } + + var api = new Asc.spreadsheet_api({ + 'id-view': 'editor_sdk' + }); + api.FontLoader = { + LoadDocumentFonts: function() {} + }; + window["Asc"]["editor"] = api; + AscCommon.g_oTableId.init(); + api._onEndLoadSdk(); + api.isOpenOOXInBrowser = false; + api._openDocument(AscCommon.getEmpty()); + api._openOnClient(); + api.collaborativeEditing = new AscCommonExcel.CCollaborativeEditing({}); + api.wb = new AscCommonExcel.WorkbookView(api.wbModel, api.controller, api.handlers, api.HtmlElement, + api.topLineEditorElement, api, api.collaborativeEditing, api.fontRenderingMode); + var wb = api.wbModel; + wb.handlers.add("getSelectionState", function () { + return null; + }); + wb.handlers.add("getLockDefNameManagerStatus", function () { + return true; + }); + wb.handlers.add("asc_onConfirmAction", function (test1, callback) { + callback(true); + }); + api.wb.cellCommentator = new AscCommonExcel.CCellCommentator({ + model: api.wbModel.aWorksheets[0], + collaborativeEditing: null, + draw: function() { + }, + handlers: { + trigger: function() { + return false; + } + } + }); + + AscCommonExcel.CCellCommentator.prototype.isLockedComment = function (oComment, callbackFunc) { + callbackFunc(true); + }; + AscCommonExcel.CCellCommentator.prototype.drawCommentCells = function () { + }; + AscCommonExcel.CCellCommentator.prototype.ascCvtRatio = function () { + }; + + var wsView = api.wb.getWorksheet(0); + wsView.handlers = api.handlers; + wsView.objectRender = new AscFormat.DrawingObjects(); + var ws = api.wbModel.aWorksheets[0]; + + var getRange = function (c1, r1, c2, r2) { + return new window["Asc"].Range(c1, r1, c2, r2); + }; + const clearData = function (c1, r1, c2, r2) { + ws.autoFilters.deleteAutoFilter(getRange(0,0,0,0)); + ws.removeRows(r1, r2, false); + ws.removeCols(c1, c2); + }; + + function checkUndoRedo(fBefore, fAfter, desc) { + fAfter("after_" + desc); + AscCommon.History.Undo(); + fBefore("undo_" + desc); + AscCommon.History.Redo(); + fAfter("redo_" + desc); + AscCommon.History.Undo(); + } + + let getRgbColor = function(clr){ + var color = (typeof(clr) == 'object') ? clr.color : clr; + + color=color.replace(/#/,''); + if(color.length==3) color=color.replace(/(.)/g,'$1$1'); + color=parseInt(color,16); + var c = new Asc.asc_CColor(); + c.put_type( (typeof(clr) == 'object' && clr.effectId !== undefined)? Asc.c_oAscColor.COLOR_TYPE_SCHEME : Asc.c_oAscColor.COLOR_TYPE_SRGB); + c.put_r(color>>16); + c.put_g((color&0xff00)>>8); + c.put_b(color&0xff); + c.put_a(0xff); + if (clr.effectId !== undefined) + c.put_value(clr.effectId); + return c; + }; + + function compareAscColorAndRgbColor (ascColor, rgbColor) { + return ascColor.get_r() === rgbColor.getR() && ascColor.get_g() === rgbColor.getG() && ascColor.get_b() === rgbColor.getB(); + }; + + QUnit.test('Conditional formatting: test apply to', function (assert) { + + let tableOptions = new AscCommonExcel.AddFormatTableOptions(); + tableOptions.range = "A1:B3"; + api.asc_addAutoFilter("TableStyleMedium2", tableOptions); + + let cf = new AscCommonExcel.CConditionalFormattingRule(); + cf.asc_setType(Asc.c_oAscCFType.cellIs); + cf.asc_setLocation("A5"); + + api.asc_setCF([cf]); + + wsView.setSelection(new Asc.Range(0, 4, 0, 4)); + let modelCf = api.asc_getCF(Asc.c_oAscSelectionForCFType.selection, 0); + let cfLocation; + if (modelCf) { + modelCf = modelCf[0] && modelCf[0][0]; + cfLocation = modelCf.asc_getLocation(); + } + + let ref = cfLocation && cfLocation[1]; + assert.strictEqual(ref, "=$A$5", "compare location conditional formatting in cell"); + + + cf = new AscCommonExcel.CConditionalFormattingRule(); + cf.asc_setType(Asc.c_oAscCFType.cellIs); + cf.asc_setLocation("=Table1[Column1]"); + + api.asc_setCF([cf]); + + wsView.setSelection(new Asc.Range(0, 1, 0, 1)); + modelCf = api.asc_getCF(Asc.c_oAscSelectionForCFType.selection, 0); + + if (modelCf) { + modelCf = modelCf[0] && modelCf[0][0]; + cfLocation = modelCf.asc_getLocation(); + } + + ref = cfLocation && cfLocation[1]; + assert.strictEqual(ref, "=$A$2:$A$4", "compare location conditional formatting in table"); + + + clearData(0, 6, 0, 6); + }); + + + QUnit.test("Test: \"simple tests\"", function (assert) { + let testData = [ + ["100"] + ]; + + let range = ws.getRange4(0, 0); + range.fillData(testData); + + + let newRule = new AscCommonExcel.CConditionalFormattingRule(); + newRule.asc_setType(Asc.c_oAscCFType.cellIs); + let xfs = new Asc.asc_CellXfs(); + let fontColor = getRgbColor("9C0006"); + let fillColor = getRgbColor("FFC7CE"); + xfs.asc_setFontColor(fontColor); + xfs.asc_setFillColor(fillColor); + newRule.asc_setDxf(xfs); + newRule.asc_setOperator(AscCommonExcel.ECfOperator.Operator_greaterThan); + newRule.asc_setValue1("99"); + newRule.asc_setLocation("$A$1"); + + api.asc_setCF([newRule]); + ws.setDirtyConditionalFormatting(new AscCommonExcel.MultiplyRange([new Asc.Range(0, 0, AscCommon.gc_nMaxCol0, AscCommon.gc_nMaxRow0)])); + + wsView.setSelection(new Asc.Range(0, 0, 0, 0)); + let modelCf = api.asc_getCF(Asc.c_oAscSelectionForCFType.selection, 0); + + let cfLocation; + if (modelCf) { + modelCf = modelCf[0] && modelCf[0][0]; + cfLocation = modelCf.asc_getLocation(); + } + + let ref = cfLocation && cfLocation[1]; + assert.strictEqual(ref, "=$A$1", "compare location conditional formatting"); + + + let compiledStyle = ws.getCompiledStyle(0, 0); + let rgbColor = compiledStyle.fill.bg(); + assert.strictEqual(compareAscColorAndRgbColor(fillColor, rgbColor), true, "compare fill color _1"); + + + //Clearing data of sheet + clearData(0, 0, 1, 8); + }); + + + QUnit.module("Conditional formatting"); +}); diff --git a/tests/cell/spreadsheet-calculation/open-oox-in-browser.js b/tests/cell/spreadsheet-calculation/open-oox-in-browser.js index 47c4a40e37..57c8df8f53 100644 --- a/tests/cell/spreadsheet-calculation/open-oox-in-browser.js +++ b/tests/cell/spreadsheet-calculation/open-oox-in-browser.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/stax-reader.js b/tests/cell/spreadsheet-calculation/stax-reader.js index 1a57b58880..5fc1ec701b 100644 --- a/tests/cell/spreadsheet-calculation/stax-reader.js +++ b/tests/cell/spreadsheet-calculation/stax-reader.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/tests.js b/tests/cell/spreadsheet-calculation/tests.js index 9ae7dd1b01..a7baf2fa18 100644 --- a/tests/cell/spreadsheet-calculation/tests.js +++ b/tests/cell/spreadsheet-calculation/tests.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/cell/spreadsheet-calculation/testsForFWB.html.js b/tests/cell/spreadsheet-calculation/testsForFWB.html.js index 921486634a..d4e5d0d36a 100644 --- a/tests/cell/spreadsheet-calculation/testsForFWB.html.js +++ b/tests/cell/spreadsheet-calculation/testsForFWB.html.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/common/api/api.js b/tests/common/api/api.js index 24e7d6c013..2e94418c9a 100644 --- a/tests/common/api/api.js +++ b/tests/common/api/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Math/.math-test/node.js b/tests/common/charts/chartEx-serialize-files-many.js similarity index 98% rename from word/Math/.math-test/node.js rename to tests/common/charts/chartEx-serialize-files-many.js index cd5d81abd0..ef4edb9f27 100644 --- a/word/Math/.math-test/node.js +++ b/tests/common/charts/chartEx-serialize-files-many.js @@ -29,4 +29,4 @@ * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode * */ -global.window = {}; + diff --git a/tests/common/charts/chartEx-serialize-files.js b/tests/common/charts/chartEx-serialize-files.js new file mode 100644 index 0000000000..58b7901141 --- /dev/null +++ b/tests/common/charts/chartEx-serialize-files.js @@ -0,0 +1,464 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + + // $(function() { + // window['Asc'] = window['Asc'] || {}; + + + // } +window['Asc'].document1Base64 = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPGN4OmNoYXJ0U3BhY2UgeG1sbnM6YT0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL2RyYXdpbmdtbC8yMDA2L21haW4iIHhtbG5zOnI9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMiIHhtbG5zOmN4PSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL29mZmljZS9kcmF3aW5nLzIwMTQvY2hhcnRleCI+CiAgICA8Y3g6Y2hhcnREYXRhPgogICAgICAgIDxjeDpleHRlcm5hbERhdGEgaWQ9InN0cmluZyIgYXV0b1VwZGF0ZT0iMSIgLz4KICAgICAgICA8Y3g6ZGF0YSBpZD0iMjkxOSI+CiAgICAgICAgICAgIDxjeDpudW1EaW0gdHlwZT0iY29sb3JWYWwiPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI4MTY5IiBmb3JtYXRDb2RlPSJzdHJpbmciPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjUyNjMiPjQzNDAxODAwMDAwMDAwLjI8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjY4NzYiPjQ2ODE1MDAwMDAwMDAuMjQ8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjgxMSI+LTMxMjg3NTk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjQ1MzMiIGZvcm1hdENvZGU9InN0cmluZyIgbmFtZT0ic3RyaW5nIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIzMDQiPi0xMTg5OTU5OTk5OTk5OS44PC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIzNDMxIj40NTc0NTUwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI1MDUxIj4yMTU5NzIwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICA8L2N4Om51bURpbT4KICAgICAgICAgICAgPGN4Om51bURpbSB0eXBlPSJzaXplIj4KICAgICAgICAgICAgICAgIDxjeDpmIGRpcj0iY29sIj5zdHJpbmc8L2N4OmY+CiAgICAgICAgICAgICAgICA8Y3g6bmY+c3RyaW5nPC9jeDpuZj4KICAgICAgICAgICAgPC9jeDpudW1EaW0+CiAgICAgICAgICAgIDxjeDpzdHJEaW0gdHlwZT0iZW50aXR5SWQiPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI4OTU0IiBuYW1lPSJzdHJpbmciPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjE3MDEiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNjQ0MSI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI4MjY4Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjIxOTIiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICA8L2N4Omx2bD4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iMTAwMDAiPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjgwOTUiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMTAwOSI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI3MjkxIj5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgIDwvY3g6c3RyRGltPgogICAgICAgICAgICA8Y3g6c3RyRGltIHR5cGU9ImNhdCI+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjY3MTAiIG5hbWU9InN0cmluZyI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNzkzNiI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI3NjQ1Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjkzNzUiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMjk1MCI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI1MjI4Ij4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI4MjA2Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgIDwvY3g6c3RyRGltPgogICAgICAgICAgICA8Y3g6ZXh0THN0PgogICAgICAgICAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICAgICAgPC9jeDpleHRMc3Q+CiAgICAgICAgPC9jeDpkYXRhPgogICAgICAgIDxjeDpkYXRhIGlkPSIxMDcwIj4KICAgICAgICAgICAgPGN4Om51bURpbSB0eXBlPSJ5Ij4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iMzYwOSIgbmFtZT0ic3RyaW5nIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI5NTg2Ij40ODg4MTIwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIzODcxIj4yMjc0MDAwMDAwMDAwLjIzPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIyODAzIj42NTc2MDAwMDAwMDAuMjM1PC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICA8L2N4Om51bURpbT4KICAgICAgICAgICAgPGN4OnN0ckRpbSB0eXBlPSJjb2xvclN0ciI+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9Ijc0MjMiIG5hbWU9InN0cmluZyIgLz4KICAgICAgICAgICAgPC9jeDpzdHJEaW0+CiAgICAgICAgICAgIDxjeDpzdHJEaW0gdHlwZT0iZW50aXR5SWQiPgogICAgICAgICAgICAgICAgPGN4OmYgZGlyPSJjb2wiPnN0cmluZzwvY3g6Zj4KICAgICAgICAgICAgICAgIDxjeDpuZiBkaXI9ImNvbCI+c3RyaW5nPC9jeDpuZj4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iNTY4MSI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNzc3Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjUxMzAiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMTU1OCI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI4MTM3Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjY0MjUiIG5hbWU9InN0cmluZyI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iOTk0NSI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIzMDE2Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjY0NSI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI0NjU3IiBuYW1lPSJzdHJpbmciIC8+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjIzMDIiIG5hbWU9InN0cmluZyI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMTk4Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjM4ODgiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICA8L2N4Omx2bD4KICAgICAgICAgICAgPC9jeDpzdHJEaW0+CiAgICAgICAgICAgIDxjeDpzdHJEaW0gdHlwZT0iY2F0Ij4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iMTY5Ij4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI1ODc4Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9Ijc3MjIiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMzI0MiI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI0MjA0Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9Ijk3NDkiPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjEzMjMiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICA8L2N4Omx2bD4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iODk3MyI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNzg1MCI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI1MTQwIj5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjM1MjQiPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjEyMTIiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMTk0OSI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI0OTY1Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjU4MTMiIG5hbWU9InN0cmluZyI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNzg0MSI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICA8L2N4OnN0ckRpbT4KICAgICAgICAgICAgPGN4Om51bURpbSB0eXBlPSJzaXplIj4KICAgICAgICAgICAgICAgIDxjeDpmPnN0cmluZzwvY3g6Zj4KICAgICAgICAgICAgICAgIDxjeDpuZj5zdHJpbmc8L2N4Om5mPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSIyNjQ4IiBmb3JtYXRDb2RlPSJzdHJpbmciIG5hbWU9InN0cmluZyI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNjM3OCI+LTE4MDI4Nzk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjM2OTAiPi0yNTU0Njg5OTk5OTk5OS44PC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICA8L2N4Om51bURpbT4KICAgICAgICAgICAgPGN4OmV4dExzdD4KICAgICAgICAgICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgIDwvY3g6ZXh0THN0PgogICAgICAgIDwvY3g6ZGF0YT4KICAgICAgICA8Y3g6ZGF0YSBpZD0iODM3MiI+CiAgICAgICAgICAgIDxjeDpzdHJEaW0gdHlwZT0iY29sb3JTdHIiPgogICAgICAgICAgICAgICAgPGN4OmY+c3RyaW5nPC9jeDpmPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI5OTA3IiAvPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSIyMCI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iODY2MiI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSIzMjUwIiBuYW1lPSJzdHJpbmciPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjU0MTIiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNTIyNSI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIxNjI5Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjYzNDIiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICA8L2N4Omx2bD4KICAgICAgICAgICAgPC9jeDpzdHJEaW0+CiAgICAgICAgICAgIDxjeDpzdHJEaW0gdHlwZT0iZW50aXR5SWQiPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSIxOTIzIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI1MzQ5Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjUxMDAiIG5hbWU9InN0cmluZyIgLz4KICAgICAgICAgICAgPC9jeDpzdHJEaW0+CiAgICAgICAgICAgIDxjeDpudW1EaW0gdHlwZT0ieSI+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjU2OTQiIG5hbWU9InN0cmluZyIgLz4KICAgICAgICAgICAgPC9jeDpudW1EaW0+CiAgICAgICAgICAgIDxjeDpleHRMc3Q+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgIDwvY3g6ZXh0THN0PgogICAgICAgIDwvY3g6ZGF0YT4KICAgICAgICA8Y3g6ZGF0YSBpZD0iODM5OCI+CiAgICAgICAgICAgIDxjeDpzdHJEaW0gdHlwZT0iZW50aXR5SWQiPgogICAgICAgICAgICAgICAgPGN4OmYgZGlyPSJjb2wiPnN0cmluZzwvY3g6Zj4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iNDIxOCIgbmFtZT0ic3RyaW5nIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI5MTI2Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjI5OTEiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNjgwNSI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIzNDI3Ij5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgIDwvY3g6c3RyRGltPgogICAgICAgICAgICA8Y3g6bnVtRGltIHR5cGU9ImNvbG9yVmFsIj4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iMjcwOSIgbmFtZT0ic3RyaW5nIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI2MTU1Ij44ODg5MTAwMDAwMDAwLjIzPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI5MDgxIiBuYW1lPSJzdHJpbmciIC8+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjEwMjUiIG5hbWU9InN0cmluZyI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iODY0NSI+LTI2MDM2Njk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjM3NzUiPjkyNzQ2MDAwMDAwMDAuMjM8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjY2MzUiPi00MTkwMDk5OTk5OTk5OS44PC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI1MzMyIj40OTUyMjEwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSIxNTkyIiBmb3JtYXRDb2RlPSJzdHJpbmciPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjM2MyI+LTE2NzkxODk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjM0MSI+MTcyMzQwMDAwMDAwMC4yMzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNTczNCI+MzU5MjE2MDAwMDAwMDAuMjwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMjI0MyI+LTM4MzcyOTk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjE1NzMiIGZvcm1hdENvZGU9InN0cmluZyIgbmFtZT0ic3RyaW5nIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIxNzUyIj4tMzc2Mzc2OTk5OTk5OTkuODwvY3g6cHQ+CiAgICAgICAgICAgICAgICA8L2N4Omx2bD4KICAgICAgICAgICAgPC9jeDpudW1EaW0+CiAgICAgICAgICAgIDxjeDpudW1EaW0gdHlwZT0iY29sb3JWYWwiPgogICAgICAgICAgICAgICAgPGN4OmYgZGlyPSJyb3ciPnN0cmluZzwvY3g6Zj4KICAgICAgICAgICAgICAgIDxjeDpuZiBkaXI9ImNvbCI+c3RyaW5nPC9jeDpuZj4KICAgICAgICAgICAgPC9jeDpudW1EaW0+CiAgICAgICAgICAgIDxjeDpleHRMc3Q+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICA8L2N4OmV4dExzdD4KICAgICAgICA8L2N4OmRhdGE+CiAgICAgICAgPGN4OmRhdGEgaWQ9IjQ2NDEiPgogICAgICAgICAgICA8Y3g6bnVtRGltIHR5cGU9ImNvbG9yVmFsIj4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iOTIzNiIgbmFtZT0ic3RyaW5nIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIxNjAzIj40NjU5NzIwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI0NDMyIj4tNjk5Njk5OTk5OTk5OS43NjwvY3g6cHQ+CiAgICAgICAgICAgICAgICA8L2N4Omx2bD4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iOTIzNSI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iODY1MyI+LTQ1MjYxOTk5OTk5OTkuNzY8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjY2NjgiPi00MDU2MDg5OTk5OTk5OS44PC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI5OTI3Ij4xODg4NjcwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI1MTUiPjM4MjQyODAwMDAwMDAwLjI8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgIDwvY3g6bnVtRGltPgogICAgICAgICAgICA8Y3g6c3RyRGltIHR5cGU9ImVudGl0eUlkIj4KICAgICAgICAgICAgICAgIDxjeDpmIGRpcj0icm93Ij5zdHJpbmc8L2N4OmY+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjgzMjIiPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjUzNTgiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNDI1MCI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICA8L2N4OnN0ckRpbT4KICAgICAgICAgICAgPGN4Om51bURpbSB0eXBlPSJzaXplIj4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iODM4OSIgbmFtZT0ic3RyaW5nIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI1ODg2Ij4tNDM3Mzg2OTk5OTk5OTkuODwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMTgyOCI+LTQ1ODgxNzk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9Ijg4MzgiPjE1NDMyMzAwMDAwMDAwLjI8L2N4OnB0PgogICAgICAgICAgICAgICAgPC9jeDpsdmw+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjIzNjIiPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjQ1MyI+NDYxNzYwMDAwMDAwMC4yNDwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNTM0MiI+LTI0MjgyMzk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjE3MCI+LTMzMzExMDk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9Ijc0OSI+MjI2MDM1MDAwMDAwMDAuMjwvY3g6cHQ+CiAgICAgICAgICAgICAgICA8L2N4Omx2bD4KICAgICAgICAgICAgPC9jeDpudW1EaW0+CiAgICAgICAgICAgIDxjeDpudW1EaW0gdHlwZT0ic2l6ZSI+CiAgICAgICAgICAgICAgICA8Y3g6bHZsIHB0Q291bnQ9IjY4NTQiIGZvcm1hdENvZGU9InN0cmluZyI+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNTkxIj4xNDE4NjIwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI2NTYyIj40MzIzMTYwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIzMjA4Ij4tMzkxOTk5OTk5OTk5OTkuODwvY3g6cHQ+CiAgICAgICAgICAgICAgICA8L2N4Omx2bD4KICAgICAgICAgICAgICAgIDxjeDpsdmwgcHRDb3VudD0iNzkxMCIgbmFtZT0ic3RyaW5nIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI3ODM3Ij4tMjA3NDU5OTk5OTk5OTkuODwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iNDAxNyI+MzcwODg2MDAwMDAwMDAuMjwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMjMwMyI+LTM4MjA5NDk5OTk5OTk5Ljg8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9IjU2NjMiPi0yODAyMzQ5OTk5OTk5OS44PC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI2NzIwIiAvPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSIyMDkiPgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9Ijk2OTAiPi0yNTYyNjE5OTk5OTk5OS44PC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI5MDYzIj40NjEyNDgwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSIxNTUyIj4zNzM4ODYwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI0MDM1Ij4zODk5OTcwMDAwMDAwMC4yPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI2MDE4IiBmb3JtYXRDb2RlPSJzdHJpbmciIG5hbWU9InN0cmluZyIgLz4KICAgICAgICAgICAgPC9jeDpudW1EaW0+CiAgICAgICAgICAgIDxjeDpzdHJEaW0gdHlwZT0iZW50aXR5SWQiPgogICAgICAgICAgICAgICAgPGN4OmY+c3RyaW5nPC9jeDpmPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI4MSIgbmFtZT0ic3RyaW5nIiAvPgogICAgICAgICAgICAgICAgPGN4Omx2bCBwdENvdW50PSI0OTM2Ij4KICAgICAgICAgICAgICAgICAgICA8Y3g6cHQgaWR4PSI3MTYwIj5zdHJpbmc8L2N4OnB0PgogICAgICAgICAgICAgICAgICAgIDxjeDpwdCBpZHg9Ijk0NzEiPnN0cmluZzwvY3g6cHQ+CiAgICAgICAgICAgICAgICAgICAgPGN4OnB0IGlkeD0iMTA1NCI+c3RyaW5nPC9jeDpwdD4KICAgICAgICAgICAgICAgIDwvY3g6bHZsPgogICAgICAgICAgICA8L2N4OnN0ckRpbT4KICAgICAgICAgICAgPGN4OmV4dExzdCAvPgogICAgICAgIDwvY3g6ZGF0YT4KICAgICAgICA8Y3g6ZXh0THN0PgogICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICA8L2N4OmV4dExzdD4KICAgIDwvY3g6Y2hhcnREYXRhPgogICAgPGN4OmNoYXJ0PgogICAgICAgIDxjeDp0aXRsZSBwb3M9InIiIGFsaWduPSJtaW4iIG92ZXJsYXk9IjEiPgogICAgICAgICAgICA8Y3g6dHg+CiAgICAgICAgICAgICAgICA8Y3g6cmljaD4KICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgICAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICAgICAgICAgIDwvY3g6cmljaD4KICAgICAgICAgICAgPC9jeDp0eD4KICAgICAgICAgICAgPGN4OnNwUHI+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICA8L2N4OnNwUHI+CiAgICAgICAgICAgIDxjeDp0eFByPgogICAgICAgICAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICAgICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgICAgIDwvY3g6dHhQcj4KICAgICAgICAgICAgPGN4OmV4dExzdD4KICAgICAgICAgICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgICAgIDwvY3g6ZXh0THN0PgogICAgICAgIDwvY3g6dGl0bGU+CiAgICAgICAgPGN4OnBsb3RBcmVhPgogICAgICAgICAgICA8Y3g6cGxvdEFyZWFSZWdpb24+CiAgICAgICAgICAgICAgICA8Y3g6cGxvdFN1cmZhY2UgLz4KICAgICAgICAgICAgICAgIDxjeDpleHRMc3Q+CiAgICAgICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICAgICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgICAgICAgICA8L2N4OmV4dExzdD4KICAgICAgICAgICAgPC9jeDpwbG90QXJlYVJlZ2lvbj4KICAgICAgICAgICAgPGN4OmF4aXMgaWQ9IjM5OTEiIGhpZGRlbj0iMCI+CiAgICAgICAgICAgICAgICA8Y3g6Y2F0U2NhbGluZyBnYXBXaWR0aD0iIiAvPgogICAgICAgICAgICAgICAgPGN4OnRpdGxlPgogICAgICAgICAgICAgICAgICAgIDxjeDp0eD4KICAgICAgICAgICAgICAgICAgICAgICAgPGN4OnJpY2g+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICAgICAgICAgICAgICA8L2N4OnJpY2g+CiAgICAgICAgICAgICAgICAgICAgPC9jeDp0eD4KICAgICAgICAgICAgICAgICAgICA8Y3g6dHhQciAvPgogICAgICAgICAgICAgICAgPC9jeDp0aXRsZT4KICAgICAgICAgICAgICAgIDxjeDp1bml0cyB1bml0PSJodW5kcmVkVGhvdXNhbmRzIj4KICAgICAgICAgICAgICAgICAgICA8Y3g6dW5pdHNMYWJlbD4KICAgICAgICAgICAgICAgICAgICAgICAgPGN4OnR4PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGN4OnJpY2ggLz4KICAgICAgICAgICAgICAgICAgICAgICAgPC9jeDp0eD4KICAgICAgICAgICAgICAgICAgICAgICAgPGN4OnR4UHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICAgICAgICAgICAgICA8L2N4OnR4UHI+CiAgICAgICAgICAgICAgICAgICAgPC9jeDp1bml0c0xhYmVsPgogICAgICAgICAgICAgICAgPC9jeDp1bml0cz4KICAgICAgICAgICAgICAgIDxjeDptYWpvckdyaWRsaW5lcyAvPgogICAgICAgICAgICAgICAgPGN4OnR4UHIgLz4KICAgICAgICAgICAgICAgIDxjeDpleHRMc3QgLz4KICAgICAgICAgICAgPC9jeDpheGlzPgogICAgICAgICAgICA8Y3g6YXhpcyBpZD0iMTk2MyI+CiAgICAgICAgICAgICAgICA8Y3g6dmFsU2NhbGluZyBtYXg9IjIwODA0MDAwMDAwMDAwLjIiIC8+CiAgICAgICAgICAgICAgICA8Y3g6bWFqb3JHcmlkbGluZXM+CiAgICAgICAgICAgICAgICAgICAgPGN4OmV4dExzdCAvPgogICAgICAgICAgICAgICAgPC9jeDptYWpvckdyaWRsaW5lcz4KICAgICAgICAgICAgICAgIDxjeDptaW5vckdyaWRsaW5lcz4KICAgICAgICAgICAgICAgICAgICA8Y3g6c3BQciAvPgogICAgICAgICAgICAgICAgICAgIDxjeDpleHRMc3Q+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICAgICAgICAgICAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICAgICAgICAgICAgICA8L2N4OmV4dExzdD4KICAgICAgICAgICAgICAgIDwvY3g6bWlub3JHcmlkbGluZXM+CiAgICAgICAgICAgICAgICA8Y3g6bWlub3JUaWNrTWFya3M+CiAgICAgICAgICAgICAgICAgICAgPGN4OmV4dExzdD4KICAgICAgICAgICAgICAgICAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICAgICAgICAgICAgICA8L2N4OmV4dExzdD4KICAgICAgICAgICAgICAgIDwvY3g6bWlub3JUaWNrTWFya3M+CiAgICAgICAgICAgICAgICA8Y3g6dGlja0xhYmVscz4KICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0THN0PgogICAgICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICAgICAgICAgIDwvY3g6ZXh0THN0PgogICAgICAgICAgICAgICAgPC9jeDp0aWNrTGFiZWxzPgogICAgICAgICAgICAgICAgPGN4Om51bUZtdCBmb3JtYXRDb2RlPSJzdHJpbmciIC8+CiAgICAgICAgICAgICAgICA8Y3g6c3BQcj4KICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICAgICAgICAgICAgICA8Y3g6ZXh0IC8+CiAgICAgICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICAgICAgPC9jeDpzcFByPgogICAgICAgICAgICAgICAgPGN4OnR4UHIgLz4KICAgICAgICAgICAgPC9jeDpheGlzPgogICAgICAgICAgICA8Y3g6YXhpcyBpZD0iMzkyNiI+CiAgICAgICAgICAgICAgICA8Y3g6Y2F0U2NhbGluZyAvPgogICAgICAgICAgICAgICAgPGN4Om1ham9yR3JpZGxpbmVzPgogICAgICAgICAgICAgICAgICAgIDxjeDpleHRMc3Q+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICAgICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICAgICAgICAgIDwvY3g6ZXh0THN0PgogICAgICAgICAgICAgICAgPC9jeDptYWpvckdyaWRsaW5lcz4KICAgICAgICAgICAgICAgIDxjeDp0aWNrTGFiZWxzPgogICAgICAgICAgICAgICAgICAgIDxjeDpleHRMc3QgLz4KICAgICAgICAgICAgICAgIDwvY3g6dGlja0xhYmVscz4KICAgICAgICAgICAgPC9jeDpheGlzPgogICAgICAgICAgICA8Y3g6c3BQciAvPgogICAgICAgICAgICA8Y3g6ZXh0THN0PgogICAgICAgICAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICAgICAgPC9jeDpleHRMc3Q+CiAgICAgICAgPC9jeDpwbG90QXJlYT4KICAgICAgICA8Y3g6bGVnZW5kIHBvcz0ibCIgYWxpZ249ImN0ciIgb3ZlcmxheT0idHJ1ZSI+CiAgICAgICAgICAgIDxjeDpzcFByPgogICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICA8L2N4OnNwUHI+CiAgICAgICAgICAgIDxjeDp0eFByPgogICAgICAgICAgICAgICAgPGN4OmV4dCAvPgogICAgICAgICAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICAgICAgICAgIDxjeDpleHQgLz4KICAgICAgICAgICAgPC9jeDp0eFByPgogICAgICAgICAgICA8Y3g6ZXh0THN0PgogICAgICAgICAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICAgICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICA8L2N4OmV4dExzdD4KICAgICAgICA8L2N4OmxlZ2VuZD4KICAgICAgICA8Y3g6ZXh0THN0PgogICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgIDwvY3g6ZXh0THN0PgogICAgPC9jeDpjaGFydD4KICAgIDxjeDpzcFByPgogICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICA8L2N4OnNwUHI+CiAgICA8Y3g6dHhQcj4KICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgPC9jeDp0eFByPgogICAgPGN4OmNsck1hcE92cj4KICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICA8L2N4OmNsck1hcE92cj4KICAgIDxjeDpwcmludFNldHRpbmdzPgogICAgICAgIDxjeDpoZWFkZXJGb290ZXIgYWxpZ25XaXRoTWFyZ2lucz0iMSIgZGlmZmVyZW50T2RkRXZlbj0iMCIgZGlmZmVyZW50Rmlyc3Q9InRydWUiPgogICAgICAgICAgICA8Y3g6b2RkSGVhZGVyPnN0cmluZzwvY3g6b2RkSGVhZGVyPgogICAgICAgICAgICA8Y3g6b2RkRm9vdGVyPnN0cmluZzwvY3g6b2RkRm9vdGVyPgogICAgICAgICAgICA8Y3g6ZXZlbkhlYWRlcj5zdHJpbmc8L2N4OmV2ZW5IZWFkZXI+CiAgICAgICAgICAgIDxjeDpldmVuRm9vdGVyPnN0cmluZzwvY3g6ZXZlbkZvb3Rlcj4KICAgICAgICAgICAgPGN4OmZpcnN0SGVhZGVyPnN0cmluZzwvY3g6Zmlyc3RIZWFkZXI+CiAgICAgICAgICAgIDxjeDpmaXJzdEZvb3Rlcj5zdHJpbmc8L2N4OmZpcnN0Rm9vdGVyPgogICAgICAgIDwvY3g6aGVhZGVyRm9vdGVyPgogICAgICAgIDxjeDpwYWdlTWFyZ2lucyBsPSI2MjM2MzAwMDAwMDAwLjI0IiByPSItMTQ1MDkyOTk5OTk5OTkuOCIgdD0iMTUxOTIwMDAwMDAwMDAuMiIgYj0iMzk3MDgzMDAwMDAwMDAuMiIgaGVhZGVyPSIxNjIwODEwMDAwMDAwMC4yIiBmb290ZXI9IjI4NTAzNDAwMDAwMDAwLjIiIC8+CiAgICAgICAgPGN4OnBhZ2VTZXR1cCBwYXBlclNpemU9IjEiIGZpcnN0UGFnZU51bWJlcj0iMSIgb3JpZW50YXRpb249ImRlZmF1bHQiIGJsYWNrQW5kV2hpdGU9ImZhbHNlIiBkcmFmdD0idHJ1ZSIgdXNlRmlyc3RQYWdlTnVtYmVyPSIxIiBob3Jpem9udGFsRHBpPSI2MDAiIHZlcnRpY2FsRHBpPSI2MDAiIGNvcGllcz0iMSIgLz4KICAgIDwvY3g6cHJpbnRTZXR0aW5ncz4KICAgIDxjeDpleHRMc3Q+CiAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgICAgICA8Y3g6ZXh0IHVyaT0ic3RyaW5nIiAvPgogICAgICAgIDxjeDpleHQgdXJpPSJzdHJpbmciIC8+CiAgICAgICAgPGN4OmV4dCB1cmk9InN0cmluZyIgLz4KICAgIDwvY3g6ZXh0THN0Pgo8L2N4OmNoYXJ0U3BhY2U+"; +window['Asc'].document1Xml = '' + +'' + +'\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t43401800000000.2' + +'\t\t\t\t\t4681500000000.24' + +'\t\t\t\t\t-31287599999999.8' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t-11899599999999.8' + +'\t\t\t\t\t45745500000000.2' + +'\t\t\t\t\t21597200000000.2' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\tstring' + +'\t\t\t\tstring' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t48881200000000.2' + +'\t\t\t\t\t2274000000000.23' + +'\t\t\t\t\t657600000000.235' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\tstring' + +'\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\tstring' + +'\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t\t-18028799999999.8' + +'\t\t\t\t\t-25546899999999.8' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t8889100000000.23' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t-26036699999999.8' + +'\t\t\t\t\t9274600000000.23' + +'\t\t\t\t\t-41900999999999.8' + +'\t\t\t\t\t49522100000000.2' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t-16791899999999.8' + +'\t\t\t\t\t1723400000000.23' + +'\t\t\t\t\t35921600000000.2' + +'\t\t\t\t\t-38372999999999.8' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t-37637699999999.8' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\tstring' + +'\t\t\t\tstring' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t46597200000000.2' + +'\t\t\t\t\t-6996999999999.76' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t-4526199999999.76' + +'\t\t\t\t\t-40560899999999.8' + +'\t\t\t\t\t18886700000000.2' + +'\t\t\t\t\t38242800000000.2' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t-43738699999999.8' + +'\t\t\t\t\t-45881799999999.8' + +'\t\t\t\t\t15432300000000.2' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t4617600000000.24' + +'\t\t\t\t\t-24282399999999.8' + +'\t\t\t\t\t-33311099999999.8' + +'\t\t\t\t\t22603500000000.2' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t14186200000000.2' + +'\t\t\t\t\t43231600000000.2' + +'\t\t\t\t\t-39199999999999.8' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t-20745999999999.8' + +'\t\t\t\t\t37088600000000.2' + +'\t\t\t\t\t-38209499999999.8' + +'\t\t\t\t\t-28023499999999.8' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t-25626199999999.8' + +'\t\t\t\t\t46124800000000.2' + +'\t\t\t\t\t37388600000000.2' + +'\t\t\t\t\t38999700000000.2' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t\tstring' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t' + +'\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t\t' + +'\t\t\t\t\t\t' + +'\t\t\t\t\t\t' + +'\t\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t\t\t' + +'\t\t\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t\t' + +'\t\t' + +'\t' + +'\t' + +'\t\t' + +'\t\t' + +'\t\t' + +'\t\t' + +'\t' + +'\t' + +'\t\t' + +'\t' + +'\t' + +'\t\t' + +'\t\t' + +'\t' + +'\t' + +'\t\t' + +'\t\t\tstring' + +'\t\t\tstring' + +'\t\t\tstring' + +'\t\t\tstring' + +'\t\t\tstring' + +'\t\t\tstring' + +'\t\t' + +'\t\t' + +'\t\t' + +'\t' + +'\t' + +'\t\t' + +'\t\t' + +'\t\t' + +'\t\t' + +'\t' + +''; + + window['Asc'].documentXmlGenerated2 = "" + + ""; diff --git a/tests/common/charts/chartEx-serialize.html b/tests/common/charts/chartEx-serialize.html new file mode 100644 index 0000000000..14756c2fbc --- /dev/null +++ b/tests/common/charts/chartEx-serialize.html @@ -0,0 +1,46 @@ + + + + + + Unit Tests + + + + + + + + + + + + + + + + + + +

            tests

            +

            +
            +

            +
              +
              test markup, will be hidden
              +
              + + \ No newline at end of file diff --git a/tests/common/charts/chartEx-serialize.js b/tests/common/charts/chartEx-serialize.js new file mode 100644 index 0000000000..503210ac41 --- /dev/null +++ b/tests/common/charts/chartEx-serialize.js @@ -0,0 +1,660 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +QUnit.config.autostart = false; +$(function() { + const api = new Asc.asc_docs_api({ + 'id-view': 'editor_sdk' + }); + AscCommon.g_oTableId.init(); + let memory = new AscCommon.CMemory(); + // memory.SetXmlAttributeQuote(0x27); + + testFileSerizlizeUseParseCompare.skip = function testFileSkip(fileName, base64, ignoreFolders, ignoreFiles, ignoredTags, ignoredAttributes, downloadFile) { + this(fileName, base64, ignoreFolders, ignoreFiles, ignoredTags, ignoredAttributes, downloadFile, true); + } + + // If test fails with error + // TypeError: Cannot read properties of null (reading 'toXml') + // then something with api saveDocumentToZip + // try to reload sax-serialize page and select one module + + //todo events + setTimeout(startTests, 3000); + + function startTests() { + api.InitEditor(); + + QUnit.start(); + + QUnit.module("Test main functions"); + + // QUnit.test("Test api.OpenDocumentFromZip", function (assert) + // { + // const api = new Asc.asc_docs_api({'id-view': 'editor_sdk'}); + // api.InitEditor(); + // // get Uint8Array + // let vsdx = AscCommon.Base64.decode(Asc.exampleVsdx); + // const openRes = api.OpenDocumentFromZip(vsdx); + // assert.strictEqual(openRes, true, "Check OpenDocumentFromZip"); + // }); + + // QUnit.test("Check api.saveDocumentToZip", function (assert) + // { + // // Read and parse vsdx file + // const api = new Asc.asc_docs_api({'id-view': 'editor_sdk'}); + // api.InitEditor(); + // let vsdx = AscCommon.Base64.decode(Asc.exampleVsdx); + // const openRes = api.OpenDocumentFromZip(vsdx); + + // // Creating .vsdx from api and get Uint8Array to data variable + // api.saveDocumentToZip(api.Document, AscCommon.c_oEditorId.Draw, function (data) { + // if (data) { + // assert.strictEqual(Boolean(data), true, "saveDocumentToZip returned data"); + // } + // }); + // }); + + // QUnit.test("Compare files count", function (assert) + // { + // // Read and parse vsdx file + // const api = new Asc.asc_docs_api({'id-view': 'editor_sdk'}); + // api.InitEditor(); + // let vsdx = AscCommon.Base64.decode(Asc.exampleVsdx); + // const openRes = api.OpenDocumentFromZip(vsdx); + + // // Creating .vsdx and get Uint8Array to data variable + // api.saveDocumentToZip(api.Document, AscCommon.c_oEditorId.Draw, function (data) { + // if (data) { + // // Read and parse vsdx file + // const api2 = new Asc.asc_docs_api({'id-view': 'editor_sdk'}); + // api2.InitEditor(); + + // let jsZlib = new AscCommon.ZLib(); + // jsZlib.open(data); + + // assert.strictEqual(jsZlib.files.length, 23, "Parsed vsdx contains 23 xml files like initial vsdx. Files Count correctly."); + + // const openRes2 = api2.OpenDocumentFromZip(data); + + // } else { + // return false; + // } + // }); + // }); + + // File contents (strings) before and after parse are the same but + + // Exceptions: + // comments, schema tags - schema namespace, schema location, + // hidden characters: /n/t, + // quotes: double or single, + // xml declaration: UTF and utf, + // attributes order (order set like in MS but in generated file with XMLSpy and Liquid studio they are different), + // ignoring long fractional numbers eg 3.1415926535897900073734945 cuts to 3.14159265358979, + // tag auto-generated_for_wildcard, + // files SolutionXML, SolutionsXML, Validation + // and attributes and tags with any type + + // in: + // + // + // + // + // + // line drop doesn't exist in this situation in real file. And Cell handles only one line drop + // because it is considered as text content. + + // Only .xml check no .rels check or embeddings + // let ignoreFiles = ["to prepare file check.txt", "theme1.xml"]; + let ignoreQuotes = true; + + QUnit.module("Test xml serialize use strings compare Altova generated"); + + testXmlFilesArchieve(Asc.document1Base64, ignoreQuotes); + + // QUnit.module("Test xml serialize use strings compare real file"); + + // testXmlFilesArchieve(Asc.timelineDiagrammVisioSpecificXmlOnly, ignoreFiles, ignoreQuotes); + + // QUnit.module("Test file serialize use parse compare"); + + // let ignoredFolders = ["docProps"]; + + // ignoredFolders = ignoredFolders.concat(["media", "embeddings"]); + + // let ignoredFiles = ["theme[N].xml", "page[N].xml.rels", "recordset[N].xml", "recordsets.xml.rels", "master[N].xml.rels"]; + + // let ignoredTagsExistence = ["Shapes"]; + + // let ignoredAttributes = ["xsi:schemaLocation", "xmlns:xsi", "xmlns", "xmlns:r", "xml:space"]; + + // testFileSerizlizeUseParseCompare("Example vsdx", Asc.exampleVsdx, ignoredFolders, ignoredFiles, ignoredTagsExistence, ignoredAttributes, false); + // testFileSerizlizeUseParseCompare("Basic ShapesA_start", Asc.BasicShapesA_start, ignoredFolders, ignoredFiles, ignoredTagsExistence, ignoredAttributes, false); + // testFileSerizlizeUseParseCompare("generatedVsdx2schema", Asc.generatedVsdx2schema, ignoredFolders, ignoredFiles, ignoredTagsExistence, ignoredAttributes, false); + // testFileSerizlizeUseParseCompare("Timeline_diagram_start", Asc.Timeline_diagram_start, ignoredFolders, ignoredFiles, ignoredTagsExistence, ignoredAttributes, false); + // testFileSerizlizeUseParseCompare("rows_test", Asc.rows_test, ignoredFolders, ignoredFiles, ignoredTagsExistence, ignoredAttributes, false); + + // // Some errors still there in module below + // QUnit.module("Comparing many files use parse compare"); + + // for (let key in Asc) { + // if (key.startsWith('test_file')) { + // let fileBase64 = Asc[key]; + // testFileSerizlizeUseParseCompare(key, fileBase64, ignoredFolders, ignoredFiles, ignoredTagsExistence, ignoredAttributes, false); + // } + // } + } + + function testXmlFilesArchieve(base64zip, ignoreQuotes) { + let generatedXmlFiles = AscCommon.Base64.decode(base64zip); + + let doRemoveLineBreaks = false; + let fileContent = AscCommon.UTF8ArrayToString(generatedXmlFiles, 0, generatedXmlFiles.length); + + let testName = "Compare " + "1xml"; + + let rootTagNameMatchResult = fileContent.match(/<(\w+:)?(\w+)/); + if (rootTagNameMatchResult) { + let rootTagName = rootTagNameMatchResult[2]; + let rootTagNameCapitalized = rootTagName.charAt(0).toUpperCase() + rootTagName.slice(1); + let componentClassName = "C" + rootTagNameCapitalized; + let componentClass = AscFormat[componentClassName]; + if (componentClass) { + let componentObject = new componentClass(api); + QUnit.test(testName, function (assert) { + testFileSerializeUseStringsCompare(assert, componentObject, fileContent, ignoreQuotes, doRemoveLineBreaks); + }); + } else { + QUnit.test(testName, function (assert) + { + QUnit.assert.ok(componentClass, "Class for parse not found"); + }); + } + } else { + QUnit.test(testName, function (assert) + { + QUnit.assert.ok(false, "rootTagNameMatchResult is false"); + }); + } + } + + function testFileSerizlizeUseParseCompare(fileName, base64, ignoreFolders, ignoreFiles, ignoredTagsExistence, ignoredAttributes, downloadFile, skip) { + let testFunction = skip ? QUnit.test.skip : QUnit.test; + testFunction('File ' + fileName, function (assert) + { + // Read and parse vsdx file + const api = new Asc.asc_docs_api({'id-view': 'editor_sdk'}); + api.InitEditor(); + let vsdxOriginal = AscCommon.Base64.decode(base64); + // parse + const openResOriginal = api.OpenDocumentFromZip(vsdxOriginal); + + let jsZlibOriginal = new AscCommon.ZLib(); + jsZlibOriginal.open(vsdxOriginal); + let originalFiles = jsZlibOriginal.files; + + // serialize + api.saveDocumentToZip(api.Document, AscCommon.c_oEditorId.Draw, function (data) { + if (data) { + if(downloadFile) { + AscCommon.DownloadFileFromBytes(data, fileName, AscCommon.openXml.GetMimeType("vsdx")); + } + + // Read and parse custom vsdx file + // TODO try to parse again custom file + // const api2 = new Asc.asc_docs_api({'id-view': 'editor_sdk'}); + // api2.InitEditor(); + // const openResCustom = api2.OpenDocumentFromZip(data); + + let jsZlibCustom = new AscCommon.ZLib(); + jsZlibCustom.open(data); + let customFiles = jsZlibCustom.files; + + let exceptionsMessage = format('Ignoring:\nFolders: %s\nFiles: %s\nTags: %s\nAttributes: %s', + ignoreFolders.join(', '), ignoreFiles.join(', '), ignoredTagsExistence.join(', '), ignoredAttributes.join(', ')); + // \n doesnt work in success assert to split + exceptionsMessage.split('\n').forEach(function(line) { return assert.ok(true, line);}) + + originalFiles = originalFiles.filter(function (path) { + let folderIgnored = pathCheckFolderPresence(path, ignoreFolders); + let fileIgnored = isFilePathIgnored(path, ignoreFiles); + return !folderIgnored && !fileIgnored; + }); + customFiles = customFiles.filter(function (path) { + let folderIgnored = pathCheckFolderPresence(path, ignoreFolders); + let fileIgnored = isFilePathIgnored(path, ignoreFiles); + return !folderIgnored && !fileIgnored; + }); + + assert.strictEqual(customFiles.length, originalFiles.length, "Parsed vsdx contains as many xml files as initial vsdx"); + + originalFiles = originalFiles.sort( function(a, b) { return a.localeCompare(b);}); + customFiles = customFiles.sort( function(a, b) { return a.localeCompare(b);}); + + assert.deepEqual(customFiles, originalFiles, 'Original vsdx has the same file structire as custom vsdx'); + + let docOriginal = new AscCommon.openXml.OpenXmlPackage(jsZlibOriginal, null); + let docCustom = new AscCommon.openXml.OpenXmlPackage(jsZlibCustom, null); + for (let i = 0; i < originalFiles.length; i++) { + let path = originalFiles[i]; + if (originalFiles[i].includes('/')) { + path = "/" + path; + } + + let contentOriginal = docOriginal.getPartByUri(path).getDocumentContent(); + + let contentCustom; + try { + contentCustom = docCustom.getPartByUri(path).getDocumentContent(); + } catch (exception) { + // check if TypeError + if (exception.name === "TypeError") { + assert.strictEqual("Cant read file", "File read", format( + "Checking %s failed. Cant read custom file, check files count and file structure checks.", + path)); + continue; + } + } + contentOriginal = contentOriginal.trim(); + contentCustom = contentCustom.trim(); + + // global js API DOMParser + const domParser = new DOMParser(); + let fileDomOriginal = domParser.parseFromString(contentOriginal, "application/xml"); + let fileDomCustom = domParser.parseFromString(contentCustom, "application/xml"); + + let compareResult = compareDOMs(fileDomOriginal, fileDomCustom); + + let compareResultIgnoredTags = getCompareResultIgnoredTagsExistence(compareResult, ignoredTagsExistence); + let compareResultIgnoredAttributes = getCompareResultIgnoredAttributes(compareResultIgnoredTags, ignoredAttributes); + + let differences = compareResultIgnoredAttributes.filter(function (compareObject) { + let attrDifs = compareObject.differencesInAttributes; + let wrongAttributes = attrDifs.wrongValuesAttributePairs.length || + attrDifs.extraAttributes.length || attrDifs.missingAttributes.length; + return compareObject.missingElements.length || compareObject.extraElements.length || wrongAttributes; + }); + + let message = ''; + if (differences.length === 0) { + message = format('Checking %s was successful. Files are equal.', path); + } else { + let differencesString = differencesToString(differences); + message = format('Checking %s was not successful.\nDifferences:\n%s', path, differencesString); + } + + assert.strictEqual(differences.length, 0, message); + } + } else { + return false; + } + }); + }); + } + function addLineBreaks(xmlString) { + // bad line breaks + for (let i = 0; i < 2; i++) { + xmlString = xmlString.replaceAll(/(<\w.+?)<(\w)/g, '$1\n<$2'); + } + xmlString = xmlString.replaceAll('>\n str2.length ? str1 : str2; + return `Strings have different lengths. First difference found at position ${minLength}: ${longerStr[minLength]}`; + } + + return "No difference found"; + } + + function testFileSerializeUseStringsCompare(assert, serializeObj, expecteedXml, ignoreQuotes, doRemoveLineBreaks) { + //fromXml + let context = new AscCommon.XmlParserContext(); + let zip = new AscCommon.ZLib(); + let rels = new AscCommon.openXml.OpenXmlPackage(zip, null); + let reader = new StaxParser(expecteedXml, rels, context); + serializeObj.fromXml(reader); + + //toXml + memory.Seek(0); + memory.context = new AscCommon.XmlWriterContext(); + memory.context.clearCurrentPartDataMaps(); + context.document = serializeObj; + let filePart = new AscCommon.openXml.OpenXmlPackage(zip, memory); + let data = filePart.getXmlBytes(this, serializeObj, memory); + let content = AscCommon.UTF8ArrayToString(data, 0, data.length); + + //compare + let expectedContent = expecteedXml.replace(/\t/g,''); + let resultContent = content; + //todo flag in memeory? + resultContent = resultContent.replace(/"/g,'"'); + if (ignoreQuotes) { + resultContent = resultContent.replaceAll("\"", "'"); + expectedContent = expectedContent.replaceAll("\"", "'"); + } + if (doRemoveLineBreaks) { + resultContent = removeLineBreaks(resultContent); + resultContent = addLineBreaks(resultContent); + expectedContent = removeLineBreaks(expectedContent); + expectedContent = addLineBreaks(expectedContent); + } + let message = `Comparing ${serializeObj.constructor.name} xml stings. ${findFirstDifference(resultContent, expectedContent)}`; + assert.strictEqual(resultContent, expectedContent, message); + } + + function getCompareResultIgnoredTagsExistence(compareResult, ignoredTags) { + return compareResult.map(function (compareObject) { + let newMissingElements = compareObject.missingElements.filter(function (missingElement) { + return !ignoredTags.includes(missingElement.nodeName); + }); + let newExtraElements = compareObject.extraElements.filter(function (extraElement) { + return !ignoredTags.includes(extraElement.nodeName); + }); + return { + tagsCompared: compareObject.tagsCompared, + missingElements: newMissingElements, + equalElements: compareObject.equalElements, + extraElements: newExtraElements, + differencesInAttributes : compareObject.differencesInAttributes + } + }); + } + + function getCompareResultIgnoredAttributes(compareResult, ignoredAttributes) { + return compareResult.map(function (compareObject) { + let attrDifs = compareObject.differencesInAttributes; + let newMissingAttributes = attrDifs.missingAttributes.filter(function (missingAttribute) { + return !ignoredAttributes.includes(missingAttribute.name); + }); + attrDifs.missingAttributes = newMissingAttributes; + + let newExtraAttributes = attrDifs.extraAttributes.filter(function (extraAttribute) { + return !ignoredAttributes.includes(extraAttribute.name); + }); + attrDifs.extraAttributes = newExtraAttributes; + + let newWrongValuesAttributePairs = attrDifs.wrongValuesAttributePairs.filter(function (wrongValuesAttributePair) { + return !ignoredAttributes.includes(wrongValuesAttributePair[1].name); //[1] is equal to [0] here + }); + attrDifs.wrongValuesAttributePairs = newWrongValuesAttributePairs; + + return { + tagsCompared: compareObject.tagsCompared, + missingElements: compareObject.missingElements, + equalElements: compareObject.equalElements, + extraElements: compareObject.extraElements, + differencesInAttributes : compareObject.differencesInAttributes // changed implicitly + } + }); + } + + function isFilePathIgnored(path, ignoreFiles) { + let fileName = path.split('/').pop(); + let matchedAny = false; + ignoreFiles.forEach(function checkPattern(pattern) { + const regexPattern = pattern.replace('[N]', '\\d+'); + const regex = new RegExp(`^${regexPattern}$`, 'i'); + matchedAny = matchedAny || regex.test(fileName); + }); + return matchedAny; + } + + function pathCheckFolderPresence(path, folders) { + let foldersUsed = path.split('/').slice(0, -1); + let isIgnored = foldersUsed.some(function (folder) { + return folders.includes(folder); + }) + return isIgnored; + } + + function format () { + var args = [].slice.call(arguments); + var initial = args.shift(); + + function replacer (text, replacement) { + return text.replace('%s', replacement); + } + return args.reduce(replacer, initial); + } + + function compareDOMs(originalNode, customNode, result) { + if (typeof result === 'undefined') { + result = []; + } + if (originalNode.children.length !== 0) { // Check if it's an element node + let originalElement = originalNode; + let customElement = customNode; + + let differencesInChildren = compareTagsFlat(originalElement, customElement); + let differencesInAttributes = compareAttributes(originalElement, customElement); + result.push({ + tagsCompared : originalNode.nodeName, + missingElements : differencesInChildren.missingElements, + equalElements : differencesInChildren.equalElements, + extraElements : differencesInChildren.extraElements, + differencesInAttributes : differencesInAttributes + }); + + let equalElements = differencesInChildren.equalElements; + // recursive cals + for (let i = 0; i < equalElements.length; i++) { + result = result.concat(compareDOMs(equalElements[i][0], equalElements[i][1])); + } + } else { + // let differencesInValues = { + // originalValue: originalNode.value, + // customValue: customNode.value, + // compareResult: originalNode.value === customNode.value + // } + // ... + } + + return result; + } + + function compareAttributes(originalElement, customElement) { + let originalAttributes; + let customAttributes; + if (originalElement.attributes) { + originalAttributes = Array.from(originalElement.attributes); + originalAttributes.sort(function (a, b) {return a.name.localeCompare(b);}) + } else { + originalAttributes = []; + } + if (customElement.attributes) { + customAttributes = Array.from(customElement.attributes); + customAttributes.sort(function (a, b) {return a.name.localeCompare(b);}) + } else { + customAttributes = []; + } + + const missingAttributes = []; + const extraAttributes = []; + const wrongValuesAttributePairs = []; + const correctAttributePairs = []; + + // Iterate through the children of originalElement and check if they are missing in customElement + originalAttributes.forEach(function (originalAttribute) { + const foundIndex = customAttributes.findIndex(function(customAttribute) { + return customAttribute.name === originalAttribute.name; + }); + + if (foundIndex === -1) { + missingAttributes.push(originalAttribute); + } else { + // Remove the found child from customElement to handle duplicates + const removedChild = customAttributes.splice(foundIndex, 1)[0]; + if (originalAttribute.value === removedChild.value) { + correctAttributePairs.push([originalAttribute, removedChild]); + } else { + wrongValuesAttributePairs.push([originalAttribute, removedChild]); + } + } + }); + + // Find extra elements present in customElement but not in originalElement + // may be some() check can be omitted + customAttributes.forEach(function (customAttribute) { + if (!originalAttributes.some(function (originalAttribute) {return originalAttribute.name === customAttribute.name;})) { + extraAttributes.push(customAttribute); + } + }); + + return { + missingAttributes, + extraAttributes, + wrongValuesAttributePairs, + correctAttributePairs + }; + } + + function compareTagsFlat(originalElement, customElement) { + // indifferent of children.length there may be extra nodes missing nodes and nodes with equal nodeNames + // eg + // Orig Custom Orig Custom + // A D D A A C + // B E E B B D + // C C + // Mis ABC Extra DE Mis DE Extra ABC Mis AB Extra CD + + // A D D A A A + // B B C B B B + // C C + // Mis AC Extra D Equ B Mis D Extra AB Equ C Equ AB + + // B B + // B + // Mis B (second) Extra - Equ B (first). So in that case we recursively comprate two first B + // TODO: Not checking each B values or attributes. This is a flaw. + // Bcs if 2-nd B in original and 1-st B in custom are absolutely equal then original B 1-rst is missing + // But result is 2-nd B in orig is missing and orig 1-st B is not equal to custom 1-st B + + let originalElementChildren = Array.from(originalElement.children); + let customElementChildren = Array.from(customElement.children); + + const missingElements = []; + const equalElements = []; + const extraElements = []; + + // Iterate through the children of originalElement and check if they are missing in customElement + originalElementChildren.forEach(function (originalChild) { + const foundIndex = customElementChildren.findIndex(function(customChild) { + return customChild.nodeName === originalChild.nodeName; + }); + + if (foundIndex === -1) { + missingElements.push(originalChild); + } else { + // Remove the found child from customElement to handle duplicates + const removedChild = customElementChildren.splice(foundIndex, 1)[0]; + equalElements.push([originalChild, removedChild]); + } + }); + + // Find extra elements present in customElement but not in originalElement + customElementChildren.forEach(function (customChild) { + if (!originalElementChildren.some(function (originalChild) {return originalChild.nodeName === customChild.nodeName;})) { + extraElements.push(customChild); + } + }); + + return { + missingElements: missingElements, + equalElements: equalElements, + extraElements: extraElements + }; + } + + function differencesToString(differences) { + return differences.map(function (differenceObject) { + return differenceToString(differenceObject); + }).join('\n'); + } + + function differenceToString(difference) { + let result = ''; + result += format('\nComparing elements <%s>.', difference.tagsCompared); + + if (difference.missingElements.length) { + let missingElements = difference.missingElements.map(function (el) { + return format('<%s>', el.nodeName); + } ); + result += format('\nMissing in custom: %s.\n', missingElements.join(', ')); + } + + if (difference.extraElements.length) { + let extraElements = difference.extraElements.map(function (el) { + return format('<%s>', el.nodeName); + }); + result += format('\nExtra in custom: %s.\n', extraElements.join(', ')); + } + + if (difference.differencesInAttributes.missingAttributes.length) { + let badAttributesElements = difference.differencesInAttributes.missingAttributes.map(function (el) { + return format('%s', el.name); + }); + result += format('\nMissing attributes in custom: %s.\n', badAttributesElements.join(', ')); + } + if (difference.differencesInAttributes.extraAttributes.length) { + let badAttributesElements = difference.differencesInAttributes.extraAttributes.map(function (el) { + return format('%s', el.name); + }); + result += format('\nExtra attributes in custom: %s.\n', badAttributesElements.join(', ')); + } + if (difference.differencesInAttributes.wrongValuesAttributePairs.length) { + let badAttributesElements = difference.differencesInAttributes.wrongValuesAttributePairs.map(function (el) { + return format('%s: %s !== %s', el[0].name, el[0].value, el[1].value); + }); + result += format('\nWrong values in custom attributes:\n%s.\n', badAttributesElements.join('\n')); + } + return result; + } + +}); diff --git a/tests/common/color-mods/color-mods.js b/tests/common/color-mods/color-mods.js index cce077cef8..e2e0ea054d 100644 --- a/tests/common/color-mods/color-mods.js +++ b/tests/common/color-mods/color-mods.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/oform/xml/oformXml.js b/tests/oform/xml/oformXml.js index 0b3ee4f94f..d94335c434 100644 --- a/tests/oform/xml/oformXml.js +++ b/tests/oform/xml/oformXml.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/oform/xml/xmlCommon.js b/tests/oform/xml/xmlCommon.js index 3d59c518af..d32b94ed5d 100644 --- a/tests/oform/xml/xmlCommon.js +++ b/tests/oform/xml/xmlCommon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/pdf/common/common.js b/tests/pdf/common/common.js index aad144a7cf..648e8c5a4f 100644 --- a/tests/pdf/common/common.js +++ b/tests/pdf/common/common.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/pdf/forms/actions.js b/tests/pdf/forms/actions.js index 0c1621a069..3b5355f80c 100644 --- a/tests/pdf/forms/actions.js +++ b/tests/pdf/forms/actions.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -41,7 +41,6 @@ $(function () function CreateTextForm(name) { let oField = pdfDoc.AddField(name, AscPDF.FIELD_TYPES.text, 0, [20, 20, 50, 20]); - oField.SetApIdx(pdfDoc.GetMaxApIdx() + 1); return oField; } function EnterTextToForm(form, text) @@ -61,7 +60,6 @@ $(function () QUnit.test("Test calculate action", function (assert) { - pdfDoc.UpdateApIdx(0); let textForm1 = CreateTextForm("TextForm1"); let textForm2 = CreateTextForm("TextForm2"); let textForm3 = CreateTextForm("TextForm3"); diff --git a/tests/runAll.js b/tests/runAll.js index c30c6e32ef..c308679cb6 100644 --- a/tests/runAll.js +++ b/tests/runAll.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -38,9 +38,11 @@ const allTests = [ 'cell/spreadsheet-calculation/CopyPasteTests.html', 'cell/spreadsheet-calculation/AutoFilterTests.html', 'word/unit-tests/paragraphContentPos.html', + 'word/unit-tests/deleted-text-recovery.html', 'word/content-control/block-level/cursorAndSelection.html', 'word/content-control/inline-level/checkbox.html', 'word/content-control/inline-level/cursorAndSelection.html', + 'word/content-control/inline-level/date-time.html', 'word/document-calculation/floating-position/drawing.html', 'word/document-calculation/paragraph.html', 'word/document-calculation/table/correctBadTable.html', @@ -55,13 +57,17 @@ const allTests = [ 'word/numbering/numberingCalculation.html', 'word/numbering/numberingAutocorrect.html', 'word/api/api.html', + 'word/api/cross-ref.html', 'word/api/textInput.html', 'word/styles/displayStyle.html', 'word/styles/paraPr.html', 'word/styles/styleApplicator.html', + 'word/text-autocorrection/as-you-type.html', 'word/plugins/pluginsApi.html', + 'word/revisions/document-content.html', 'word/revisions/paragraph.html', 'word/merge-documents/mergeDocuments.html', + 'word/math-autocorrection/math-autocorrection.html', 'cell/shortcuts/shortcuts.html', 'slide/shortcuts/shortcuts.html', diff --git a/tests/slide/common/common.js b/tests/slide/common/common.js index 666d4e27d2..0c3f76e4ab 100644 --- a/tests/slide/common/common.js +++ b/tests/slide/common/common.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2022 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -61,6 +61,9 @@ const AscTest = window.AscTest || {}; TurnOff : function(){}, TurnOn : function(){}, init : function () {}, + IsOn : function() { + return true; + } }; AscCommon.g_oIdCounter.m_bLoad = false; diff --git a/tests/slide/common/demonstrationManager.js b/tests/slide/common/demonstrationManager.js index 13886032f7..77d5a0f4ca 100644 --- a/tests/slide/common/demonstrationManager.js +++ b/tests/slide/common/demonstrationManager.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/slide/common/editor.js b/tests/slide/common/editor.js index a6494eb0f6..b2094b7988 100644 --- a/tests/slide/common/editor.js +++ b/tests/slide/common/editor.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2022 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -129,11 +129,13 @@ if(!oPresentation) return 0; return oPresentation.GetSlidesCount(); }; + editor.initCollaborativeEditing = AscCommon.SlideEditorApi.prototype.initCollaborativeEditing.bind(editor); //--------------------------------------------------------export---------------------------------------------------- AscTest.DrawingDocument = editor.WordControl.m_oDrawingDocument; AscTest.Editor = editor; window.editor = editor; Asc.editor = editor; + editor.initCollaborativeEditing(); })(window); diff --git a/tests/slide/common/measurer.js b/tests/slide/common/measurer.js index eec02dff19..223f9527e9 100644 --- a/tests/slide/common/measurer.js +++ b/tests/slide/common/measurer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2022 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/slide/common/presentation.js b/tests/slide/common/presentation.js index f1b8a2a615..c284d43622 100644 --- a/tests/slide/common/presentation.js +++ b/tests/slide/common/presentation.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/slide/common/thumbnails.js b/tests/slide/common/thumbnails.js index 0b49b6cf1b..1ee9737b5f 100644 --- a/tests/slide/common/thumbnails.js +++ b/tests/slide/common/thumbnails.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/slide/shortcuts/events.js b/tests/slide/shortcuts/events.js index 98fd10f152..a81fcee1e7 100644 --- a/tests/slide/shortcuts/events.js +++ b/tests/slide/shortcuts/events.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/slide/shortcuts/shortcuts.js b/tests/slide/shortcuts/shortcuts.js index 712defb050..33b3839815 100644 --- a/tests/slide/shortcuts/shortcuts.js +++ b/tests/slide/shortcuts/shortcuts.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/api/api.js b/tests/word/api/api.js index ae4851e429..82bbb257a6 100644 --- a/tests/word/api/api.js +++ b/tests/word/api/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/api/cross-ref.html b/tests/word/api/cross-ref.html new file mode 100644 index 0000000000..63ac9e59fd --- /dev/null +++ b/tests/word/api/cross-ref.html @@ -0,0 +1,35 @@ + + + + + + Api test + + + + + + + + + + + + + + + + + +

              Test adding and working with cross-references

              +

              +
              +

              +
                +
                test markup, will be hidden
                + + diff --git a/tests/word/api/cross-ref.js b/tests/word/api/cross-ref.js new file mode 100644 index 0000000000..c2a45b00aa --- /dev/null +++ b/tests/word/api/cross-ref.js @@ -0,0 +1,91 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +$(function () { + + let logicDocument = AscTest.CreateLogicDocument(); + let styleManager = logicDocument.GetStyleManager(); + + QUnit.module("Test adding and working with cross-references"); + + QUnit.test("Test adding cross-ref to a block-level sdt", function (assert) + { + AscTest.ClearDocument(); + + let cc = AscTest.CreateBlockLvlSdt(); + logicDocument.PushToContent(cc); + + let docContent = cc.GetContent(); + docContent.ClearContent(false); + let headingParagraph = AscTest.CreateParagraph(); + docContent.AddToContent(0, headingParagraph); + + let styleId = styleManager.GetDefaultHeading(0); + headingParagraph.SetParagraphStyle(styleManager.Get(styleId).GetName()); + AscTest.AddTextToParagraph(headingParagraph, "HeadingText"); + + assert.strictEqual(AscTest.GetParagraphText(headingParagraph), "HeadingText", "Check paragraph text"); + + let p = AscTest.CreateParagraph(); + logicDocument.PushToContent(p); + AscTest.MoveCursorToParagraph(p); + + logicDocument.AddRefToParagraph(headingParagraph, 0, true, false, undefined); + assert.strictEqual(AscTest.GetParagraphText(p), "HeadingText", "Check text after adding ref to a block-level sdt"); + assert.strictEqual(headingParagraph.GetBookmarkRefToParagraph(), "_Ref1", "Check bookmark name"); + + // Check bug 69293. Adding a cross-ref to a locked block-level sdt + + AscTest.ClearDocument(); + + cc = AscTest.CreateBlockLvlSdt(); + logicDocument.PushToContent(cc); + + docContent = cc.GetContent(); + docContent.ClearContent(false); + headingParagraph = AscTest.CreateParagraph(); + docContent.AddToContent(0, headingParagraph); + + headingParagraph.SetParagraphStyle(styleManager.Get(styleId).GetName()); + AscTest.AddTextToParagraph(headingParagraph, "HeadingText"); + + cc.SetContentControlLock(Asc.c_oAscSdtLockType.SdtContentLocked); + + p = AscTest.CreateParagraph(); + logicDocument.PushToContent(p); + AscTest.MoveCursorToParagraph(p); + + logicDocument.AddRefToParagraph(headingParagraph, 0, true, false, undefined); + assert.strictEqual(AscTest.GetParagraphText(p), "HeadingText", "Check text after adding ref to a locked block-level sdt"); + assert.strictEqual(headingParagraph.GetBookmarkRefToParagraph(), "_Ref1", "Check bookmark name"); + }); +}); diff --git a/tests/word/api/textInput.js b/tests/word/api/textInput.js index 68ed443549..0e6055e89f 100644 --- a/tests/word/api/textInput.js +++ b/tests/word/api/textInput.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/common/common.js b/tests/word/common/common.js index e22c4364b3..9a999bcf93 100644 --- a/tests/word/common/common.js +++ b/tests/word/common/common.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -71,7 +71,11 @@ var AscTest = AscTest || {}; return this.Get_ById(id); }, TurnOff : function(){}, - TurnOn : function(){} + TurnOn : function(){}, + IsOn : function() + { + return true + } }; AscCommon.g_oIdCounter.m_bLoad = false; diff --git a/tests/word/common/document.js b/tests/word/common/document.js index 4aacea9b9c..2735a90b57 100644 --- a/tests/word/common/document.js +++ b/tests/word/common/document.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -147,6 +147,10 @@ math.Root.AddToContent(0, run); return math; } + function CreateBlockLevelSdt() + { + return new AscWord.CBlockLevelSdt() + } function CreateDefaultHeader(sectPr) { if (!sectPr || !logicDocument) @@ -177,6 +181,32 @@ }); return result; } + function GetBlockLevelSdtText(cc) + { + let result = ""; + cc.CheckRunContent(function(run) + { + result += run.GetText(); + }); + return result; + } + function GetBlockLevelSdtReviewText(cc) + { + let result = []; + cc.CheckRunContent(function(run) + { + let text = run.GetText(); + if (!text || !text.length) + return; + + let reviewType = run.GetReviewType(); + if (result.length && reviewType === result[result.length - 1][0]) + result[result.length - 1][1] += text; + else + result.push([reviewType, text]); + }); + return result; + } function RemoveTableBorders(table) { function CreateNoneBorder() @@ -215,6 +245,34 @@ logicDocument.SetLocalTrackRevisions(turnOn); } + function AcceptAllRevisionChanges() + { + if (!logicDocument) + return; + + logicDocument.AcceptAllRevisionChanges(); + } + function RejectAllRevisionChanges() + { + if (!logicDocument) + return; + + logicDocument.RejectAllRevisionChanges(); + } + function AcceptRevisionChangesBySelection() + { + if (!logicDocument) + return; + + logicDocument.AcceptRevisionChangesBySelection(); + } + function RejectRevisionChangesBySelection() + { + if (!logicDocument) + return; + + logicDocument.RejectRevisionChangesBySelection(); + } function PressKey(keyCode, isCtrl, isShift, isAlt) { if (!logicDocument) @@ -295,6 +353,12 @@ p.RemoveFromContent(0, p.GetElementsCount()); } + function AddTextToParagraph(p, text) + { + let run = CreateRun(); + p.AddToContentToEnd(run); + run.AddText(text); + } function EnterText(text) { if (!logicDocument) @@ -459,49 +523,57 @@ } //--------------------------------------------------------export---------------------------------------------------- - AscTest.CreateLogicDocument = CreateLogicDocument; - AscTest.GetLogicDocument = CreateLogicDocument; - AscTest.CreateParagraph = CreateParagraph; - AscTest.CreateRun = CreateRun; - AscTest.CreateTable = CreateTable; - AscTest.CreateImage = CreateImage; - AscTest.CreateStyle = CreateStyle; - AscTest.CreateParagraphStyle = CreateParagraphStyle; - AscTest.CreateRunStyle = CreateRunStyle; - AscTest.CreateMath = CreateMath; - AscTest.CreateDefaultHeader = CreateDefaultHeader; - AscTest.GetParagraphText = GetParagraphText; - AscTest.GetParagraphReviewText = GetParagraphReviewText; - AscTest.RemoveTableBorders = RemoveTableBorders; - AscTest.SetFillingFormMode = SetFillingFormMode; - AscTest.SetEditingMode = SetEditingMode; - AscTest.SetTrackRevisions = SetTrackRevisions; - AscTest.PressKey = PressKey; - AscTest.MoveCursorLeft = MoveCursorLeft; - AscTest.MoveCursorRight = MoveCursorRight; - AscTest.Recalculate = Recalculate; - AscTest.ClickMouseButton = ClickMouseButton; - AscTest.ClearDocument = ClearDocument; - AscTest.ClearParagraph = ClearParagraph; - AscTest.EnterText = EnterText; - AscTest.CorrectEnterText = CorrectEnterText; - AscTest.BeginCompositeInput = BeginCompositeInput; - AscTest.ReplaceCompositeInput = ReplaceCompositeInput; - AscTest.EndCompositeInput = EndCompositeInput; - AscTest.EnterTextCompositeInput = EnterTextCompositeInput; - AscTest.Key = Key; - AscTest.MoveCursorToParagraph = MoveCursorToParagraph; - AscTest.AddNumbering = AddNumbering; - AscTest.SetParagraphNumberingLvl = SetParagraphNumberingLvl; - AscTest.SelectDocumentRange = SelectDocumentRange; - AscTest.GetFinalSection = GetFinalSection; - AscTest.SetCompatibilityMode = SetCompatibilityMode; - AscTest.StartCollaboration = StartCollaboration; - AscTest.SyncCollaboration = SyncCollaboration; - AscTest.EndCollaboration = EndCollaboration; - AscTest.SelectParagraphRange = SelectParagraphRange; - AscTest.StartTextSpeaker = StartTextSpeaker; - AscTest.StopTextSpeaker = StopTextSpeaker; + AscTest.CreateLogicDocument = CreateLogicDocument; + AscTest.GetLogicDocument = CreateLogicDocument; + AscTest.CreateParagraph = CreateParagraph; + AscTest.CreateRun = CreateRun; + AscTest.CreateTable = CreateTable; + AscTest.CreateImage = CreateImage; + AscTest.CreateStyle = CreateStyle; + AscTest.CreateParagraphStyle = CreateParagraphStyle; + AscTest.CreateRunStyle = CreateRunStyle; + AscTest.CreateMath = CreateMath; + AscTest.CreateBlockLvlSdt = CreateBlockLevelSdt; + AscTest.CreateDefaultHeader = CreateDefaultHeader; + AscTest.GetParagraphText = GetParagraphText; + AscTest.GetParagraphReviewText = GetParagraphReviewText; + AscTest.GetBlockLevelSdtText = GetBlockLevelSdtText; + AscTest.GetBlockLevelSdtReviewText = GetBlockLevelSdtReviewText; + AscTest.RemoveTableBorders = RemoveTableBorders; + AscTest.SetFillingFormMode = SetFillingFormMode; + AscTest.SetEditingMode = SetEditingMode; + AscTest.SetTrackRevisions = SetTrackRevisions; + AscTest.AcceptAllRevisionChanges = AcceptAllRevisionChanges; + AscTest.RejectAllRevisionChanges = RejectAllRevisionChanges; + AscTest.AcceptRevisionChangesBySelection = AcceptRevisionChangesBySelection; + AscTest.RejectRevisionChangesBySelection = RejectRevisionChangesBySelection; + AscTest.PressKey = PressKey; + AscTest.MoveCursorLeft = MoveCursorLeft; + AscTest.MoveCursorRight = MoveCursorRight; + AscTest.Recalculate = Recalculate; + AscTest.ClickMouseButton = ClickMouseButton; + AscTest.ClearDocument = ClearDocument; + AscTest.ClearParagraph = ClearParagraph; + AscTest.AddTextToParagraph = AddTextToParagraph; + AscTest.EnterText = EnterText; + AscTest.CorrectEnterText = CorrectEnterText; + AscTest.BeginCompositeInput = BeginCompositeInput; + AscTest.ReplaceCompositeInput = ReplaceCompositeInput; + AscTest.EndCompositeInput = EndCompositeInput; + AscTest.EnterTextCompositeInput = EnterTextCompositeInput; + AscTest.Key = Key; + AscTest.MoveCursorToParagraph = MoveCursorToParagraph; + AscTest.AddNumbering = AddNumbering; + AscTest.SetParagraphNumberingLvl = SetParagraphNumberingLvl; + AscTest.SelectDocumentRange = SelectDocumentRange; + AscTest.GetFinalSection = GetFinalSection; + AscTest.SetCompatibilityMode = SetCompatibilityMode; + AscTest.StartCollaboration = StartCollaboration; + AscTest.SyncCollaboration = SyncCollaboration; + AscTest.EndCollaboration = EndCollaboration; + AscTest.SelectParagraphRange = SelectParagraphRange; + AscTest.StartTextSpeaker = StartTextSpeaker; + AscTest.StopTextSpeaker = StopTextSpeaker; })(window); diff --git a/tests/word/common/editor.js b/tests/word/common/editor.js index f71ad062dd..bd1a4776e6 100644 --- a/tests/word/common/editor.js +++ b/tests/word/common/editor.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -67,7 +67,9 @@ SelectClear : function() {}, Start_CollaborationEditing : function() {}, End_CollaborationEditing : function() {}, - ConvertCoordsToCursorWR : function() {return {X : 0, Y : 0};} + ConvertCoordsToCursorWR : function() {return {X : 0, Y : 0};}, + Set_RulerState_Table : function() {}, + scrollToTarget : function() {} }; drawingDocument.CanvasHit = document.createElement('canvas'); @@ -157,6 +159,7 @@ editor.asc_removeSpaceAfterParagraph = AscCommon.DocumentEditorApi.prototype.asc_removeSpaceAfterParagraph.bind(editor); editor.asc_haveSpaceBeforeParagraph = AscCommon.DocumentEditorApi.prototype.asc_haveSpaceBeforeParagraph.bind(editor); editor.asc_haveSpaceAfterParagraph = AscCommon.DocumentEditorApi.prototype.asc_haveSpaceAfterParagraph.bind(editor); + editor.initCollaborativeEditing = AscCommon.DocumentEditorApi.prototype.initCollaborativeEditing.bind(editor); //--------------------------------------------------------export---------------------------------------------------- AscTest.DrawingDocument = drawingDocument; @@ -165,4 +168,6 @@ window.editor = editor; Asc['editor'] = Asc.editor = editor; + // TODO: Заменить на вызов onEndLoadSdk + editor.initCollaborativeEditing(); })(window); diff --git a/tests/word/common/measurer.js b/tests/word/common/measurer.js index e32936c4be..7832d5be34 100644 --- a/tests/word/common/measurer.js +++ b/tests/word/common/measurer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/content-control/block-level/cursorAndSelection.js b/tests/word/content-control/block-level/cursorAndSelection.js index 7f4d77c149..e8006100cf 100644 --- a/tests/word/content-control/block-level/cursorAndSelection.js +++ b/tests/word/content-control/block-level/cursorAndSelection.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/content-control/inline-level/cursorAndSelection.js b/tests/word/content-control/inline-level/cursorAndSelection.js index 1904156e9b..3dbb753037 100644 --- a/tests/word/content-control/inline-level/cursorAndSelection.js +++ b/tests/word/content-control/inline-level/cursorAndSelection.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/content-control/inline-level/date-time.html b/tests/word/content-control/inline-level/date-time.html new file mode 100644 index 0000000000..b424b44b0f --- /dev/null +++ b/tests/word/content-control/inline-level/date-time.html @@ -0,0 +1,39 @@ + + + + + + Date-time content control test + + + + + + + + + + + + + + + + + + +

                Test the date-time content control

                +

                +
                +

                +
                  +
                  test markup, will be hidden
                  + + diff --git a/tests/word/content-control/inline-level/date-time.js b/tests/word/content-control/inline-level/date-time.js new file mode 100644 index 0000000000..01649fff04 --- /dev/null +++ b/tests/word/content-control/inline-level/date-time.js @@ -0,0 +1,75 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +$(function () +{ + const logicDocument = AscTest.CreateLogicDocument() + + QUnit.test("Test temporary content control", function (assert) + { + let dateTime, p; + function initDocument() + { + AscTest.ClearDocument(); + p = AscTest.CreateParagraph(); + logicDocument.AddToContent(0, p); + AscTest.MoveCursorToParagraph(p); + + dateTime = logicDocument.AddContentControlDatePicker(); + dateTime.SetContentControlTemporary(true); + } + + initDocument(); + assert.strictEqual(dateTime.IsUseInDocument(), true, "Check if date-time is added to the document"); + assert.strictEqual(AscTest.GetParagraphText(p), "Enter a date"); + dateTime.MoveCursorToContentControl(); + AscTest.EnterText("123"); + assert.strictEqual(dateTime.IsUseInDocument(), false, "Check if date-time is in the document after adding text"); + assert.strictEqual(AscTest.GetParagraphText(p), "123"); + + initDocument(); + + let dateTimePr = new AscWord.CSdtDatePickerPr(); + let date = new Date(); + date.setFullYear(2024, 6, 24); + dateTimePr.SetDateFormat("mm/dd/yyyy"); + dateTimePr.SetFullDate(date); + + dateTime.SelectContentControl(); + dateTime.ApplyDatePickerPr(dateTimePr, true); + assert.strictEqual(dateTime.IsUseInDocument(), false, "Check if date-time is in the document"); + assert.strictEqual(AscTest.GetParagraphText(p), "07/24/2024"); + }); + +}); diff --git a/tests/word/document-calculation/floating-position/drawing.js b/tests/word/document-calculation/floating-position/drawing.js index 44263efdc7..5ed0268f2d 100644 --- a/tests/word/document-calculation/floating-position/drawing.js +++ b/tests/word/document-calculation/floating-position/drawing.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/document-calculation/keep-next.js b/tests/word/document-calculation/keep-next.js index b573ed14e6..1f4cb20c73 100644 --- a/tests/word/document-calculation/keep-next.js +++ b/tests/word/document-calculation/keep-next.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/document-calculation/paragraph/paragraphLines.js b/tests/word/document-calculation/paragraph/paragraphLines.js index 5aa84095e7..2dfdd77cbe 100644 --- a/tests/word/document-calculation/paragraph/paragraphLines.js +++ b/tests/word/document-calculation/paragraph/paragraphLines.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/document-calculation/paragraph/paragraphSpacing.js b/tests/word/document-calculation/paragraph/paragraphSpacing.js index f9c1a77d15..bdd22eebff 100644 --- a/tests/word/document-calculation/paragraph/paragraphSpacing.js +++ b/tests/word/document-calculation/paragraph/paragraphSpacing.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/document-calculation/paragraph/tabs.js b/tests/word/document-calculation/paragraph/tabs.js index 1f54c9f714..81a2966996 100644 --- a/tests/word/document-calculation/paragraph/tabs.js +++ b/tests/word/document-calculation/paragraph/tabs.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/document-calculation/table/correctBadTable.js b/tests/word/document-calculation/table/correctBadTable.js index e429feb185..c5e17a9354 100644 --- a/tests/word/document-calculation/table/correctBadTable.js +++ b/tests/word/document-calculation/table/correctBadTable.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/document-calculation/table/flowTablePosition.js b/tests/word/document-calculation/table/flowTablePosition.js index c20909ddd4..9ced6a2823 100644 --- a/tests/word/document-calculation/table/flowTablePosition.js +++ b/tests/word/document-calculation/table/flowTablePosition.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/document-calculation/table/pageBreak.js b/tests/word/document-calculation/table/pageBreak.js index 4e159ed644..a8916a981a 100644 --- a/tests/word/document-calculation/table/pageBreak.js +++ b/tests/word/document-calculation/table/pageBreak.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/document-calculation/table/table-header.js b/tests/word/document-calculation/table/table-header.js index 95c2ba1bf6..2f079cc9b4 100644 --- a/tests/word/document-calculation/table/table-header.js +++ b/tests/word/document-calculation/table/table-header.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/document-calculation/text-hyphenator/hyphenation-service.js b/tests/word/document-calculation/text-hyphenator/hyphenation-service.js index 1a0a7070e3..fee144a4bf 100644 --- a/tests/word/document-calculation/text-hyphenator/hyphenation-service.js +++ b/tests/word/document-calculation/text-hyphenator/hyphenation-service.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/document-calculation/text-hyphenator/text-hyphenator.js b/tests/word/document-calculation/text-hyphenator/text-hyphenator.js index 471855c268..e809877f3a 100644 --- a/tests/word/document-calculation/text-hyphenator/text-hyphenator.js +++ b/tests/word/document-calculation/text-hyphenator/text-hyphenator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/document-calculation/textShaper/textShaper.js b/tests/word/document-calculation/textShaper/textShaper.js index d758f11851..5f33f3e19f 100644 --- a/tests/word/document-calculation/textShaper/textShaper.js +++ b/tests/word/document-calculation/textShaper/textShaper.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/forms/complexForm.js b/tests/word/forms/complexForm.js index ec4d7d6858..79885c30e6 100644 --- a/tests/word/forms/complexForm.js +++ b/tests/word/forms/complexForm.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/forms/forms.js b/tests/word/forms/forms.js index b901fd644f..45533f1d21 100644 --- a/tests/word/forms/forms.js +++ b/tests/word/forms/forms.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/image-smartart-placeholder/smartartImagePlaceholders.js b/tests/word/image-smartart-placeholder/smartartImagePlaceholders.js index e4eaf04ad8..abe6b7bc0d 100644 --- a/tests/word/image-smartart-placeholder/smartartImagePlaceholders.js +++ b/tests/word/image-smartart-placeholder/smartartImagePlaceholders.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/math-autocorrection/common.js b/tests/word/math-autocorrection/common.js index 14a221dbdf..5472ea28d0 100644 --- a/tests/word/math-autocorrection/common.js +++ b/tests/word/math-autocorrection/common.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/math-autocorrection/math-autocorrection.js b/tests/word/math-autocorrection/math-autocorrection.js index 853044f37f..0d82f242d7 100644 --- a/tests/word/math-autocorrection/math-autocorrection.js +++ b/tests/word/math-autocorrection/math-autocorrection.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -32,13 +32,14 @@ $(function () { - let Root, MathContent, logicDocument; + let Root, MathContent, logicDocument, p1; function Init() { logicDocument = AscTest.CreateLogicDocument(); + logicDocument.Start_SilentMode(); logicDocument.RemoveFromContent(0, logicDocument.GetElementsCount(), false); - let p1 = new AscWord.Paragraph(); + p1 = new AscWord.Paragraph(); logicDocument.AddToContent(0, p1); MathContent = new ParaMath(); @@ -48,16 +49,15 @@ $(function () { p1.AddToContent(0, MathContent); Root = MathContent.Root; - } - + }; Init(); function Clear() { Root.Remove_FromContent(0, Root.Content.length); Root.Correct_Content(); - } - - function AddText(str) { + }; + function AddText(str) + { let one = str.getUnicodeIterator(); while (one.isInside()) { @@ -65,29 +65,38 @@ $(function () { MathContent.Add(oElement); one.next(); } - } - - function Test(str, intCurPos, arrResult, isLaTeX, strNameOfTest) + }; + function Test(str, arrResult, isLaTeX, strNameOfTest, isConvertAfter, isGetIntDifferentForm) { let nameOfTest = strNameOfTest ? strNameOfTest + " \'" + str + "\'" : str; - QUnit.test(nameOfTest, function (assert) + + QUnit.test(nameOfTest, function (assert) { - if (isLaTeX) { + if (isLaTeX) logicDocument.SetMathInputType(1); - } else { + else logicDocument.SetMathInputType(0); - } - function AutoTest(isLaTeX, str, intCurPos, arrResultContent) - { + function AutoTest(isLaTeX, str, arrResultContent) + { let CurPos = Root.CurPos; + + if (isConvertAfter === true || isLaTeX) + AscMath.SetAutoConvertation(false); + AddText(str); + if (isConvertAfter || isLaTeX) + MathContent.ConvertView(false, isLaTeX ? Asc.c_oAscMathInputType.LaTeX : Asc.c_oAscMathInputType.Unicode); + for (let i = CurPos; i < Root.Content.length; i++) { let CurrentContent = Root.Content[i]; let CheckContent = arrResultContent[i]; + if (CheckContent === undefined) + break; + assert.strictEqual( CurrentContent.constructor.name, CheckContent[0], @@ -95,23 +104,19 @@ $(function () { Root.Content[i].constructor.name ); - let TextContent = CurrentContent.GetTextOfElement(logicDocument.MathInputType); - assert.strictEqual(TextContent, CheckContent[1], "Text of Content[" + i + "]: '" + CheckContent[1] + "'"); - - if (CurrentContent.constructor.name === "ParaRun" && i === intCurPos) { - assert.strictEqual(CurrentContent.IsCursorAtEnd(), true, "Cursor at the end of ParaRun"); - } + let TextContent = CurrentContent.GetTextOfElement(isGetIntDifferentForm ? !logicDocument.MathInputType : logicDocument.MathInputType); + assert.strictEqual(TextContent.GetText(), CheckContent[1], "Text of Content[" + i + "]: '" + CheckContent[1] + "'"); } - assert.strictEqual(Root.CurPos, intCurPos, "Check cursor position: " + intCurPos); + if (isConvertAfter === true) + AscMath.SetAutoConvertation(true); } - Clear() - AutoTest(isLaTeX, str, intCurPos, arrResult); + Clear(); + AutoTest(isLaTeX, str, arrResult); }) - } - + }; function MultiLineTest(arrStr, arrCurPos, arrResult, arrCurPosMove) { QUnit.test("MultiLineTest \'" + arrStr.flat(2).join("") + "\'", function (assert) { @@ -156,399 +161,1642 @@ $(function () { AutoTest(str, intCurPos, arrCurResult, CurPosMove); } }) - } - - Test("(", 0, [["ParaRun", "("]], false); - Test("[", 0, [["ParaRun", "["]], false); - Test("{", 0, [["ParaRun", "{"]], false); - - Test("( ", 0, [["ParaRun", "( "]], false); - Test("[ ", 0, [["ParaRun", "[ "]], false); - Test("{ ", 0, [["ParaRun", "{ "]], false); - - Test("(((", 0, [["ParaRun", "((("]], false); - Test("[[[", 0, [["ParaRun", "[[["]], false); - Test("{{{", 0, [["ParaRun", "{{{"]], false); - - Test("((( ", 0, [["ParaRun", "((( "]], false); - Test("[[[ ", 0, [["ParaRun", "[[[ "]], false); - Test("{{{ ", 0, [["ParaRun", "{{{ "]], false); - - Test("(((1", 0, [["ParaRun", "(((1"]], false); - Test("[[[1", 0, [["ParaRun", "[[[1"]], false); - Test("{{{1", 0, [["ParaRun", "{{{1"]], false); - - Test("(((1 ", 0, [["ParaRun", "(((1 "]], false); - Test("[[[1 ", 0, [["ParaRun", "[[[1 "]], false); - Test("{{{1 ", 0, [["ParaRun", "{{{1 "]], false); - - Test("1(((1", 0, [["ParaRun", "1(((1"]], false); - Test("1[[[1", 0, [["ParaRun", "1[[[1"]], false); - Test("1{{{1", 0, [["ParaRun", "1{{{1"]], false); - - Test("1(((1 ", 0, [["ParaRun", "1(((1 "]], false); - Test("1[[[1 ", 0, [["ParaRun", "1[[[1 "]], false); - Test("1{{{1 ", 0, [["ParaRun", "1{{{1 "]], false); - - Test("1(((1+", 0, [["ParaRun", "1(((1+"]], false); - Test("1[[[1+", 0, [["ParaRun", "1[[[1+"]], false); - Test("1{{{1+", 0, [["ParaRun", "1{{{1+"]], false); - Test("1(((1+=", 0, [["ParaRun", "1(((1+="]], false); - Test("1[[[1+=", 0, [["ParaRun", "1[[[1+="]], false); - Test("1{{{1+=", 0, [["ParaRun", "1{{{1+="]], false); - - Test("1(((1+ ", 0, [["ParaRun", "1(((1+ "]], false); - Test("1[[[1+ ", 0, [["ParaRun", "1[[[1+ "]], false); - Test("1{{{1+ ", 0, [["ParaRun", "1{{{1+ "]], false); - Test("1(((1+= ", 0, [["ParaRun", "1(((1+= "]], false); - Test("1[[[1+= ", 0, [["ParaRun", "1[[[1+= "]], false); - Test("1{{{1+= ", 0, [["ParaRun", "1{{{1+= "]], false); - - Test(")", 0, [["ParaRun", ")"]], false); - Test("]", 0, [["ParaRun", "]"]], false); - Test("}", 0, [["ParaRun", "}"]], false); - - Test(") ", 0, [["ParaRun", ") "]], false); - Test("] ", 0, [["ParaRun", "] "]], false); - Test("} ", 0, [["ParaRun", "} "]], false); - - Test(")))", 0, [["ParaRun", ")))"]], false); - Test("]]]", 0, [["ParaRun", "]]]"]], false); - Test("}}}", 0, [["ParaRun", "}}}"]], false); - - Test("))) ", 0, [["ParaRun", "))) "]], false); - Test("]]] ", 0, [["ParaRun", "]]] "]], false); - Test("}}} ", 0, [["ParaRun", "}}} "]], false); - - Test(")))1", 0, [["ParaRun", ")))1"]], false); - Test("]]]1", 0, [["ParaRun", "]]]1"]], false); - Test("}}}1", 0, [["ParaRun", "}}}1"]], false); - - Test(")))1 ", 0, [["ParaRun", ")))1 "]], false); - Test("]]]1 ", 0, [["ParaRun", "]]]1 "]], false); - Test("}}}1 ", 0, [["ParaRun", "}}}1 "]], false); - - Test("1)))1", 0, [["ParaRun", "1)))1"]], false); - Test("1]]]1", 0, [["ParaRun", "1]]]1"]], false); - Test("1}}}1", 0, [["ParaRun", "1}}}1"]], false); - - Test("1)))1 ", 0, [["ParaRun", "1)))1 "]], false); - Test("1]]]1 ", 0, [["ParaRun", "1]]]1 "]], false); - Test("1}}}1 ", 0, [["ParaRun", "1}}}1 "]], false); - - Test("1)))1+", 0, [["ParaRun", "1)))1+"]], false); - Test("1]]]1+", 0, [["ParaRun", "1]]]1+"]], false); - Test("1}}}1+", 0, [["ParaRun", "1}}}1+"]], false); - Test("1)))1+=", 0, [["ParaRun", "1)))1+="]], false); - Test("1]]]1+=", 0, [["ParaRun", "1]]]1+="]], false); - Test("1}}}1+=", 0, [["ParaRun", "1}}}1+="]], false); - - Test("1)))1+ ", 0, [["ParaRun", "1)))1+ "]], false); - Test("1]]]1+ ", 0, [["ParaRun", "1]]]1+ "]], false); - Test("1}}}1+ ", 0, [["ParaRun", "1}}}1+ "]], false); - Test("1)))1+= ", 0, [["ParaRun", "1)))1+= "]], false); - Test("1]]]1+= ", 0, [["ParaRun", "1]]]1+= "]], false); - Test("1}}}1+= ", 0, [["ParaRun", "1}}}1+= "]], false); - - Test("() ", 2, [["ParaRun", ""], ["CDelimiter", "()"], ["ParaRun", ""]], false); - Test("{} ", 2, [["ParaRun", ""], ["CDelimiter", "{}"], ["ParaRun", ""]], false); - Test("[] ", 2, [["ParaRun", ""], ["CDelimiter", "[]"], ["ParaRun", ""]], false); - Test("|| ", 2, [["ParaRun", ""], ["CDelimiter", "||"], ["ParaRun", ""]], false); - - Test("()+", 2, [["ParaRun", ""], ["CDelimiter", "()"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("{}+", 2, [["ParaRun", ""], ["CDelimiter", "{}"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("[]+", 2, [["ParaRun", ""], ["CDelimiter", "[]"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("||+", 2, [["ParaRun", ""], ["CDelimiter", "||"], ["ParaRun", "+"], ["ParaRun", ""]], false); - - Test("(1+2)+", 3, [["ParaRun", ""], ["CDelimiter", "(1+2)"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("{1+2}+", 3, [["ParaRun", ""], ["CDelimiter", "{1+2}"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("[1+2]+", 3, [["ParaRun", ""], ["CDelimiter", "[1+2]"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("|1+2|+", 3, [["ParaRun", ""], ["CDelimiter", "|1+2|"], ["ParaRun", "+"], ["ParaRun", ""]], false); - - Test("1/2 )", 2, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", ")"]], false); - Test("1/2 }", 2, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", "}"]], false); - Test("1/2 ]", 2, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", "]"]], false); - Test("1/2 |", 2, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", "|"]], false); - - Test("(1/2 ", 2, [["ParaRun", "("], ["CFraction", "〖1/2〗"], ["ParaRun", ""]], false); - Test("{1/2 ", 2, [["ParaRun", "{"], ["CFraction", "〖1/2〗"], ["ParaRun", ""]], false); - Test("[1/2 ", 2, [["ParaRun", "["], ["CFraction", "〖1/2〗"], ["ParaRun", ""]], false); - Test("|1/2 ", 2, [["ParaRun", "|"], ["CFraction", "〖1/2〗"], ["ParaRun", ""]], false); - - Test("(1/2 )+", 2, [["ParaRun", ""], ["CDelimiter", "(〖1/2〗)"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("{1/2 }+", 2, [["ParaRun", ""], ["CDelimiter", "{〖1/2〗}"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("[1/2 ]+", 2, [["ParaRun", ""], ["CDelimiter", "[〖1/2〗]"], ["ParaRun", "+"], ["ParaRun", ""]], false); - Test("|1/2 |+", 2, [["ParaRun", ""], ["CDelimiter", "|〖1/2〗|"], ["ParaRun", "+"], ["ParaRun", ""]], false); - - Test("(1/2)", 2, [["ParaRun", "("], ["CFraction", "〖1/2〗"], ["ParaRun", ")"]], false); - - Test("2_1", 0, [["ParaRun", "2_1"]], false); - Test("2_1 ", 2, [["ParaRun", ""], ["CDegree", "2_(1)"], ["ParaRun", ""]], false); - Test("\\int", 0, [["ParaRun", "\\int"]], false); - Test("\\int _x^y\\of 1/2 ", 2, [["ParaRun", ""], ["CDelimiter", "〖∫^y_x▒〖〖1/2〗〗〗"], ["ParaRun", ""]], false); - Test("1/2 ", 2, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", ""]], false); - Test("1/2 +", 2, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", "+"]], false); - Test("1/2=", 2, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", "="]], false); - Test("1/2+1/2=x/y ", 6, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", "+"], ["CFraction", "〖1/2〗"], ["ParaRun", "="], ["CFraction", "〖x/y〗"], ["ParaRun", ""]], false); - // - // MultiLineTest( - // ["1/2", " "], - // [0, 2], - // [ - // [ - // ["ParaRun", "1/2"] - // ], - // [ - // ["ParaRun", ""], - // ["CFraction", "〖1/2〗"], - // ["ParaRun", ""] - // ], - // ], - // [] - // ); - // - // MultiLineTest( - // ["1/2 ", "+", "x/y", " "], - // [2, 2, 2, 4], - // [ - // [ - // ["ParaRun", ""], - // ["CFraction", "〖1/2〗"], - // ["ParaRun", ""] - // ], - // [ - // ["ParaRun", ""], - // ["CDelimiter", "〖1/2〗"], - // ["ParaRun", "+"] - // ], - // [ - // ["ParaRun", ""], - // ["CDelimiter", "〖1/2〗"], - // ["ParaRun", "+x/y"] - // ], - // [ - // ["ParaRun", ""], - // ["CDelimiter", "〖1/2〗"], - // ["ParaRun", "+"], - // ["CFraction", "〖x/y〗"], - // ["ParaRun", ""], - // ], - // ], - // [] - // ); - // - // Test("1/2 ", 2, [["ParaRun", ""], ["CFraction", "〖1/2〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("1/3.1416 ", 2, [["ParaRun", ""], ["CFraction", "〖1/(3.1416)〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x/y ", 2, [["ParaRun", ""], ["CFraction", "〖x/y〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x/2 ", 2, [["ParaRun", ""], ["CFraction", "〖x/2〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x/(1+2) ", 2, [["ParaRun", ""], ["CFraction", "〖x/(1+2)〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x/((1+2)) ", 2, [["ParaRun", ""], ["CFraction", "〖x/(1+2)〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x/[1+2] ", 2, [["ParaRun", ""], ["CDelimiter", "〖x/([1+2])〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x/{1+2} ", 2, [["ParaRun", ""], ["CFraction", "〖x/({1+2})〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x/[1+2} ", 2, [["ParaRun", ""], ["CFraction", "〖x/([1+2})〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("(1_i)/32 ", 2, [["ParaRun", ""], ["CFraction", "〖(1_(i))/(32)〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("(1_i)/32 ", 2, [["ParaRun", ""], ["CFraction", "〖(1_(i))/(32)〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("\\sdiv ", 0, [["ParaRun", "⁄"]], false, "Check fraction symbol"); - // Test("1\\sdiv 2 ", 2, [["ParaRun", ""], ["CFraction", "〖1∕2〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x\\sdiv y ", 2, [["ParaRun", ""], ["CFraction", "〖x∕y〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x\\sdiv (y+1_i) ", 2, [["ParaRun", ""], ["CFraction", "〖x∕(y+1_(i))〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("\\ndiv ", 0, [["ParaRun", "⊘"]], false, "Check fraction symbol"); - // Test("1\\ndiv 2 ", 2, [["ParaRun", ""], ["CFraction", "〖1⊘2〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x\\ndiv y ", 2, [["ParaRun", ""], ["CFraction", "〖x⊘y〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x\\ndiv (y+1_i) ", 2, [["ParaRun", ""], ["CFraction", "〖x⊘(y+1_(i))〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("\\atop ", 0, [["ParaRun", "¦"]], false, "Check fraction symbol"); - // Test("1\\atop 2 ", 2, [["ParaRun", ""], ["CFraction", "〖1¦2〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x\\atop y ", 2, [["ParaRun", ""], ["CFraction", "〖x¦y〗"], ["ParaRun", ""]], false, "Check fraction"); - // Test("x\\atop (y+1_i) ", 2, [["ParaRun", ""], ["CFraction", "〖x¦(y+1_(i))〗"], ["ParaRun", ""]], false, "Check fraction"); - // - Test("x_y ", 2, [["ParaRun", ""], ["CDegree", "x_(y)"], ["ParaRun", ""]], false, "Check degree"); - Test("_ ", 1, [["ParaRun", "_"], ["ParaRun", " "]], false, "Check degree"); - Test("x_1 ", 2, [["ParaRun", ""], ["CDegree", "x_(1)"], ["ParaRun", ""]], false, "Check degree"); - Test("1_x ", 2, [["ParaRun", ""], ["CDegree", "1_(x)"], ["ParaRun", ""]], false, "Check degree"); - Test("x_(1+2) ", 2, [["ParaRun", ""], ["CDegree", "x_(1+2)"], ["ParaRun", ""]], false, "Check degree"); - Test("x_[1+2] ", 2, [["ParaRun", ""], ["CDegree", "x_([1+2])"], ["ParaRun", ""]], false, "Check degree"); - Test("x_[1+2} ", 2, [["ParaRun", ""], ["CDegree", "x_([1+2})"], ["ParaRun", ""]], false, "Check degree"); - Test("x_1/2 ", 2, [["ParaRun", ""], ["CFraction", "〖(x_(1))/2〗"], ["ParaRun", ""]], false, "Check degree"); - - Test("^ ", 1, [["ParaRun", "^"], ["ParaRun", " "]], false, "Check index"); - Test("x^y ", 2, [["ParaRun", ""], ["CDegree", "x^(y)"], ["ParaRun", ""]], false, "Check index"); - Test("x^1 ", 2, [["ParaRun", ""], ["CDegree", "x^(1)"], ["ParaRun", ""]], false, "Check index"); - Test("1^x ", 2, [["ParaRun", ""], ["CDegree", "1^(x)"], ["ParaRun", ""]], false, "Check index"); - Test("x^(1+2) ", 2, [["ParaRun", ""], ["CDegree", "x^(1+2)"], ["ParaRun", ""]], false, "Check index"); - Test("x^[1+2] ", 2, [["ParaRun", ""], ["CDegree", "x^([1+2])"], ["ParaRun", ""]], false, "Check index"); - Test("x^[1+2} ", 2, [["ParaRun", ""], ["CDegree", "x^([1+2})"], ["ParaRun", ""]], false, "Check index"); - Test("x^1/2 ", 2, [["ParaRun", ""], ["CFraction", "〖(x^(1))/2〗"], ["ParaRun", ""]], false, "Check index"); - - Test("x^y_1 ", 2, [["ParaRun", ""], ["CDegreeSubSup", "x_(1)^(y)"], ["ParaRun", ""]], false, "Check index degree"); - Test("x^1_i ", 2, [["ParaRun", ""], ["CDegreeSubSup", "x_(i)^(1)"], ["ParaRun", ""]], false, "Check index degree"); - Test("1^x_y ", 2, [["ParaRun", ""], ["CDegreeSubSup", "1_(y)^(x)"], ["ParaRun", ""]], false, "Check index degree"); - Test("x^(1+2)_(g/2) ", 2, [["ParaRun", ""], ["CDegreeSubSup", "x_(〖g/2〗)^(1+2)"], ["ParaRun", ""]], false, "Check index degree"); - Test("x^[1+2]_[g_i] ", 2, [["ParaRun", ""], ["CDegreeSubSup", "x_([g_(i)])^([1+2])"], ["ParaRun", ""]], false, "Check index degree"); - Test("x^[1+2}_[6+1} ", 2, [["ParaRun", ""], ["CDegreeSubSup", "x_([6+1})^([1+2})"], ["ParaRun", ""]], false, "Check index degree"); - Test("x^1/2_1/2 ", 2, [["ParaRun", ""], ["CFraction", "〖(x^(1))/(〖(2_(1))/2〗)〗"], ["ParaRun", ""]], false, "Check index degree"); - - Test("𝑊^3𝛽_𝛿1𝜌1𝜎2 ", 2, [["ParaRun", ""], ["CDegreeSubSup", "𝑊_(𝛿1𝜌1𝜎2)^(3𝛽)"], ["ParaRun", ""]], false, "Check index degree with Unicode symbols"); - - Test("(_1^f)f ", 2, [["ParaRun", ""], ["CDegreeSubSup", "(_(1)^(f))f"], ["ParaRun", ""]], false, "Check prescript index degree"); - Test("(_(1/2)^y)f ", 2, [["ParaRun", ""], ["CDegreeSubSup", "(_(〖1/2〗)^(y))f"], ["ParaRun", ""]], false, "Check prescript index degree"); - Test("(_(1/2)^[x_i])x/y ", 2, [["ParaRun", ""], ["CDegreeSubSup", "(_(〖1/2〗)^([x_(i)]))〖x/y〗"], ["ParaRun", ""]], false, "Check prescript index degree"); - - Test("\\sqrt ", 0, [["ParaRun", "√"]], false, "Check"); - Test("\\sqrt (2&1+2) ", 2, [["ParaRun", ""], ["CRadical", "〖√(2&1+2)〗"], ["ParaRun", ""]], false, "Check radical"); - Test("\\sqrt (1+2) ", 2, [["ParaRun", ""], ["CRadical", "〖√(1+2)〗"], ["ParaRun", ""]], false, "Check radical"); - Test("√1 ", 2, [["ParaRun", ""], ["CRadical", "〖√1〗"], ["ParaRun", ""]], false, "Check radical"); - - Test("\\cbrt ", 0, [["ParaRun", "∛"]], false, "Check"); - Test("\\cbrt (1+2) ", 2, [["ParaRun", ""], ["CRadical", "〖∛(1+2)〗"], ["ParaRun", ""]], false, "Check radical"); - Test("\\cbrt 1/2 ", 2, [["ParaRun", ""], ["CFraction", "〖(〖∛1〗)/2〗"], ["ParaRun", ""]], false, "Check radical"); - Test("∛1 ", 2, [["ParaRun", ""], ["CRadical", "〖∛1〗"], ["ParaRun", ""]], false, "Check radical"); - Test("∛(1) ", 2, [["ParaRun", ""], ["CRadical", "〖∛1〗"], ["ParaRun", ""]], false, "Check radical"); - - Test("\\qdrt ", 0, [["ParaRun", "∜"]], false, "Check"); - Test("\\qdrt (1+2) ", 2, [["ParaRun", ""], ["CRadical", "〖∜(1+2)〗"], ["ParaRun", ""]], false, "Check radical"); - Test("\\qdrt 1/2 ", 2, [["ParaRun", ""], ["CDelimiter", "〖(〖∜1〗)/2〗"], ["ParaRun", ""]], false, "Check radical"); - Test("∜1 ", 2, [["ParaRun", ""], ["CRadical", "〖∜1〗"], ["ParaRun", ""]], false, "Check radical"); - Test("∜(1) ", 2, [["ParaRun", ""], ["CRadical", "〖∜1〗"], ["ParaRun", ""]], false, "Check radical"); - - Test("\\rect ", 0, [["ParaRun", "▭"]], false, "Check box literal"); - Test("\\rect 1/2 ", 2, [["ParaRun", ""], ["CFraction", "〖(▭1)/2〗"], ["ParaRun", ""]], false, "Check box"); - Test("\\rect (1/2) ", 2, [["ParaRun", ""], ["CBorderBox", "▭(〖1/2〗)"], ["ParaRun", ""]], false, "Check box"); - Test("▭(𝐸 = 𝑚𝑐^2) ", 2, [["ParaRun", ""], ["CBorderBox", "▭(𝐸=〖𝑚〗^(2))"], ["ParaRun", ""]], false, "Check box"); - - Test("\\int ", 0, [["ParaRun", "∫"]], false, "Check large operators"); - Test("\\int ", 2, [["ParaRun", ""], ["CNary", "〖∫〗"], ["ParaRun", ""]], false, "Check large operators"); - Test("\\int _x ", 2, [["ParaRun", ""], ["CNary", "〖∫_x〗"], ["ParaRun", ""]], false, "Check large operators"); - Test("\\int ^x ", 2, [["ParaRun", ""], ["CNary", "〖∫^x〗"], ["ParaRun", ""]], false, "Check large operators"); - Test("\\int ^(x+1) ", 2, [["ParaRun", ""], ["CNary", "〖∫^(x+1)〗"], ["ParaRun", ""]], false, "Check large operators"); - Test("\\int ^(x+1) ", 2, [["ParaRun", ""], ["CNary", "〖∫^(x+1)〗"], ["ParaRun", ""]],false, "Check large operators"); - Test("\\int ^(x+1)_(1_i) ", 2, [["ParaRun", ""], ["CNary", "〖∫^(x+1)_(1_(i))〗"], ["ParaRun", ""]], false, "Check large operators"); - - Test("\\int \\of x ", 2, [["ParaRun", ""], ["CNary", "〖∫▒x〗"], ["ParaRun", ""]], false, "Check large operators"); - Test("\\int _x\\of 1/2 ", 2, [["ParaRun", ""], ["CDelimiter", "〖∫_x▒〖〖1/2〗〗〗"], ["ParaRun", ""]], false, "Check large operators"); - Test("\\int ^x\\of 1/2 ", 2, [["ParaRun", ""], ["CDelimiter", "〖∫^x▒〖〖1/2〗〗〗"], ["ParaRun", ""]], false, "Check large operators"); - Test("\\int _(x+1)\\of 1/2 ", 2, [["ParaRun", ""], ["CNary", "〖∫_(x+1)▒〖〖1/2〗〗〗"], ["ParaRun", ""]], false, "Check large operators"); - Test("\\prod ^(x+1)\\of 1/2 ", 2, [["ParaRun", ""], ["CNary", "〖∏^(x+1)▒〖〖1/2〗〗〗"], ["ParaRun", ""]],false, "Check large operators"); - Test("∫^(x+1)_(1_i)\\of 1/2 ", 2, [["ParaRun", ""], ["CNary", "〖∫^(x+1)_(1_(i))▒〖〖1/2〗〗〗"], ["ParaRun", ""]], false, "Check large operators"); - - Test("(1+ ", 0, [["ParaRun", "(1+ "]], false, "Check brackets"); - Test("(1+2) ", 2, [["ParaRun", ""], ["CDelimiter", "(1+2)"], ["ParaRun", ""]], false, "Check brackets"); - Test("[1+2] ", 2, [["ParaRun", ""], ["CDelimiter", "[1+2]"], ["ParaRun", ""]], false, "Check brackets"); - Test("{1+2} ", 2, [["ParaRun", ""], ["CDelimiter", "{1+2}"], ["ParaRun", ""]], false, "Check brackets"); - - Test(")123 ", 0, [["ParaRun", ")123 "]], false, "Check brackets"); - Test(")12) ", 0, [["ParaRun", ")12) "]], false, "Check brackets"); - Test(")12] ", 0, [["ParaRun", ")12] "]], false, "Check brackets"); - Test(")12} ", 0, [["ParaRun", ")12} "]], false, "Check brackets"); - - Test("(1+2] ", 2, [["ParaRun", ""], ["CDelimiter", "(1+2]"], ["ParaRun", ""]], false, "Check brackets"); - Test("|1+2] ", 2, [["ParaRun", ""], ["CDelimiter", "|1+2]"], ["ParaRun", ""]], false, "Check brackets"); - Test("{1+2] ", 2, [["ParaRun", ""], ["CDelimiter", "{1+2]"], ["ParaRun", ""]], false, "Check brackets"); - - Test("|1+2| |1+2| ", 4, [["ParaRun", ""], ["CDelimiter", "|1+2|"], ["ParaRun", ""], ["CDelimiter", "|1+2|"], ["ParaRun", ""]], false, "Check brackets"); - - Test("sin ", 1, [["ParaRun", ""], ["CMathFunc", "sin "], ["ParaRun", ""]], false, "Check functions"); - Test("cos ", 1, [["ParaRun", ""], ["CMathFunc", "cos "], ["ParaRun", ""]], false, "Check functions"); - Test("tan ", 1, [["ParaRun", ""], ["CMathFunc", "tan "], ["ParaRun", ""]], false, "Check functions"); - Test("csc ", 1, [["ParaRun", ""], ["CMathFunc", "csc "], ["ParaRun", ""]], false, "Check functions"); - Test("sec ", 1, [["ParaRun", ""], ["CMathFunc", "sec "], ["ParaRun", ""]], false, "Check functions"); - Test("cot ", 1, [["ParaRun", ""], ["CMathFunc", "cot "], ["ParaRun", ""]], false, "Check functions"); - - Test("sin a", 1, [["ParaRun", ""], ["CMathFunc", "〖sin a〗"], ["ParaRun", ""]], false, "Check functions"); - Test("cos a", 1, [["ParaRun", ""], ["CMathFunc", "〖cos a〗"], ["ParaRun", ""]], false, "Check functions"); - Test("tan a", 1, [["ParaRun", ""], ["CMathFunc", "〖tan a〗"], ["ParaRun", ""]], false, "Check functions"); - Test("csc a", 1, [["ParaRun", ""], ["CMathFunc", "〖csc a〗"], ["ParaRun", ""]], false, "Check functions"); - Test("sec a", 1, [["ParaRun", ""], ["CMathFunc", "〖sec a〗"], ["ParaRun", ""]], false, "Check functions"); - Test("cot a", 1, [["ParaRun", ""], ["CMathFunc", "〖cot a〗"], ["ParaRun", ""]], false, "Check functions"); - - Test("sin(1+2_i) ", 2, [["ParaRun", ""], ["CMathFunc", "〖sin 〖 1+2_(i)〗〗"], ["ParaRun", ""]], false, "Check functions"); - Test("cos(1+2_i) ", 2, [["ParaRun", ""], ["CMathFunc", "〖cos 〖 1+2_(i)〗〗"], ["ParaRun", ""]], false, "Check functions"); - Test("tan(1+2_i) ", 2, [["ParaRun", ""], ["CMathFunc", "〖tan 〖 1+2_(i)〗〗"], ["ParaRun", ""]], false, "Check functions"); - Test("csc(1+2_i) ", 2, [["ParaRun", ""], ["CMathFunc", "〖csc 〖 1+2_(i)〗〗"], ["ParaRun", ""]], false, "Check functions"); - Test("sec(1+2_i) ", 2, [["ParaRun", ""], ["CMathFunc", "〖sec 〖 1+2_(i)〗〗"], ["ParaRun", ""]], false, "Check functions"); - Test("cot(1+2_i) ", 2, [["ParaRun", ""], ["CMathFunc", "〖cot 〖 1+2_(i)〗〗"], ["ParaRun", ""]], false, "Check functions"); - - Test("log ", 1, [["ParaRun", ""], ["CMathFunc", "log "], ["ParaRun", ""]], false, "Check functions"); - Test("log a ", 1, [["ParaRun", ""], ["CMathFunc", "〖log a 〗"], ["ParaRun", ""]], false, "Check functions"); - Test("log(a+2) ", 2, [["ParaRun", ""], ["CDelimiter", "〖log 〖 a+2〗〗"], ["ParaRun", ""]], false, "Check functions"); - Test("lim ", 1, [["ParaRun", ""], ["CMathFunc", "lim "], ["ParaRun", ""]], false, "Check functions"); - Test("lim_a ", 1, [["ParaRun", ""], ["CMathFunc", "lim┬a "], ["ParaRun", ""]], false, "Check functions"); - Test("lim^a ", 1, [["ParaRun", ""], ["CMathFunc", "lim┴a "], ["ParaRun", ""]], false, "Check functions"); - - Test("min ", 1, [["ParaRun", ""], ["CMathFunc", "min "], ["ParaRun", ""]], false, "Check functions"); - Test("min_a ", 1, [["ParaRun", ""], ["CMathFunc", "min┬a "], ["ParaRun", ""]], false, "Check functions"); - Test("min^a ", 1, [["ParaRun", ""], ["CMathFunc", "min┴a "], ["ParaRun", ""]], false, "Check functions"); - - Test("max ", 1, [["ParaRun", ""], ["CMathFunc", "max "], ["ParaRun", ""]], false, "Check functions"); - Test("max_a ", 1, [["ParaRun", ""], ["CMathFunc", "max┬a "], ["ParaRun", ""]], false, "Check functions"); - Test("max^a ", 1, [["ParaRun", ""], ["CMathFunc", "max┴a "], ["ParaRun", ""]], false, "Check functions"); - - Test("ln ", 1, [["ParaRun", ""], ["CMathFunc", "ln "], ["ParaRun", ""]], false, "Check functions"); - Test("ln_a ", 1, [["ParaRun", ""], ["CMathFunc", "〖ln〗_(a) "], ["ParaRun", ""]], false, "Check functions"); - Test("ln^a ", 1, [["ParaRun", ""], ["CMathFunc", "〖ln〗^(a) "], ["ParaRun", ""]], false, "Check functions"); - - Test("■ ", 0, [["ParaRun", "■ "]], false, "Check matrix"); - Test("■(1&2@3&4) ", 2, [["ParaRun", ""], ["CMathMatrix", "■(1&2@3&4)"], ["ParaRun", ""]], false, "Check matrix"); - Test("■(1&2) ", 2, [["ParaRun", ""], ["CMathMatrix", "■(1&2)"], ["ParaRun", ""]], false, "Check matrix"); - Test("■(&1&2@3&4) ", 2, [["ParaRun", ""], ["CMathMatrix", "■(&1&2@3&4&)"], ["ParaRun", ""]], false, "Check matrix"); - - Test("(1\\mid 2\\mid 3) ", 2, [["ParaRun", ""], ["CDelimiter", "(1∣2∣3)"], ["ParaRun", ""]], false, "Check fraction"); - Test("[1\\mid 2\\mid 3) ", 2, [["ParaRun", ""], ["CDelimiter", "[1∣2∣3)"], ["ParaRun", ""]], false, "Check fraction"); - Test("|1\\mid 2\\mid 3) ", 2, [["ParaRun", ""], ["CDelimiter", "|1∣2∣3)"], ["ParaRun", ""]], false, "Check fraction"); - Test("{1\\mid 2\\mid 3) ", 2, [["ParaRun", ""], ["CDelimiter", "{1∣2∣3)"], ["ParaRun", ""]], false, "Check fraction"); - Test("(1\\mid 2\\mid 3] ", 2, [["ParaRun", ""], ["CDelimiter", "(1∣2∣3]"], ["ParaRun", ""]], false, "Check fraction"); - Test("(1\\mid 2\\mid 3} ", 2, [["ParaRun", ""], ["CDelimiter", "(1∣2∣3}"], ["ParaRun", ""]], false, "Check fraction"); - Test("(1\\mid 2\\mid 3| ", 2, [["ParaRun", ""], ["CDelimiter", "(1∣2∣3|"], ["ParaRun", ""]], false, "Check fraction"); - Test("|1\\mid 2\\mid 3| ", 2, [["ParaRun", ""], ["CDelimiter", "|1∣2∣3|"], ["ParaRun", ""]], false, "Check fraction"); - Test("{1\\mid 2\\mid 3} ", 2, [["ParaRun", ""], ["CDelimiter", "{1∣2∣3}"], ["ParaRun", ""]], false, "Check fraction"); - Test("[1\\mid 2\\mid 3] ", 2, [["ParaRun", ""], ["CDelimiter", "[1∣2∣3]"], ["ParaRun", ""]], false, "Check fraction"); - - Test("e\\tilde ", 2, [["ParaRun", ""], ["CAccent", "ẽ"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\hat ", 2, [["ParaRun", ""], ["CAccent", "ê"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\breve ", 2, [["ParaRun", ""], ["CAccent", "ĕ"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\dot ", 2, [["ParaRun", ""], ["CAccent", "ė"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\ddot ", 2, [["ParaRun", ""], ["CAccent", "ë"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\dddot ", 2, [["ParaRun", ""], ["CAccent", "e⃛"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\prime ", 2, [["ParaRun", ""], ["CAccent", "e′"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\pprime ", 2, [["ParaRun", ""], ["CAccent", "e″"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\check ", 2, [["ParaRun", ""], ["CAccent", "ě"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\acute ", 2, [["ParaRun", ""], ["CAccent", "é"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\grave ", 2, [["ParaRun", ""], ["CAccent", "è"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\bar ", 2, [["ParaRun", ""], ["CAccent", "e̅"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\Bar ", 2, [["ParaRun", ""], ["CAccent", "e̿"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\ubar ", 2, [["ParaRun", ""], ["CAccent", "e̲"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\Ubar ", 2, [["ParaRun", ""], ["CAccent", "e̳"], ["ParaRun", ""]], false, "Check diacritics"); - Test("e\\vec ", 2, [["ParaRun", ""], ["CAccent", "e⃗"], ["ParaRun", ""]], false, "Check diacritics"); - - Test("\\alpha ", 0, [["ParaRun", "α"]], true, "Check LaTeX words"); - Test("\\Alpha ", 0, [["ParaRun", "Α"]], true, "Check LaTeX words"); - Test("\\beta ", 0, [["ParaRun", "β"]], true, "Check LaTeX words"); - Test("\\Beta ", 0, [["ParaRun", "Β"]], true, "Check LaTeX words"); - Test("\\gamma ", 0, [["ParaRun", "γ"]], true, "Check LaTeX words"); - Test("\\Gamma ", 0, [["ParaRun", "Γ"]], true, "Check LaTeX words"); - Test("\\pi ", 0, [["ParaRun", "π"]], true, "Check LaTeX words"); - Test("\\Pi ", 0, [["ParaRun", "Π"]], true, "Check LaTeX words"); - Test("\\phi ", 0, [["ParaRun", "ϕ"]], true, "Check LaTeX words"); - Test("\\varphi ", 0, [["ParaRun", "φ"]], true, "Check LaTeX words"); - Test("\\mu ", 0, [["ParaRun", "μ"]], true, "Check LaTeX words"); - Test("\\Phi ", 0, [["ParaRun", "Φ"]], true, "Check LaTeX words"); - - Test("\\cos(2\\theta ) ", 2, [["ParaRun", ""], ["CMathFunc", "\\cos { (2θ)}"], ["ParaRun", ""]], true, "Check LaTeX function"); - Test("\\lim_{x\\to \\infty }\\exp(x) ", 2, [["ParaRun", ""], ["CMathFunc", "\\lim_{x→∞} { \\exp { (x)}}"], ["ParaRun", ""]], true, "Check LaTeX function"); - - Test("k^{n+1} ", 2, [["ParaRun", ""], ["CDegree", "k^{n+1}"], ["ParaRun", ""]], true, "Check LaTeX degree"); - Test("n^2 ", 2, [["ParaRun", ""], ["CDegree", "n^{2}"], ["ParaRun", ""]], true, "Check LaTeX degree"); - Test("n^{2} ", 2, [["ParaRun", ""], ["CDegree", "n^{2}"], ["ParaRun", ""]], true, "Check LaTeX degree"); - Test("n^(2) ", 2, [["ParaRun", ""], ["CDegree", "n^{(2)}"], ["ParaRun", ""]], true, "Check LaTeX degree"); - - Test("k_{n+1} ", 2, [["ParaRun", ""], ["CDegree", "k_{n+1}"], ["ParaRun", ""]], true, "Check LaTeX degree"); - Test("n_2 ", 2, [["ParaRun", ""], ["CDegree", "n_{2}"], ["ParaRun", ""]], true, "Check LaTeX degree"); - Test("n_{2} ", 2, [["ParaRun", ""], ["CDegree", "n_{2}"], ["ParaRun", ""]], true, "Check LaTeX degree"); - Test("n_(2) ", 2, [["ParaRun", ""], ["CDegree", "n_{(2)}"], ["ParaRun", ""]], true, "Check LaTeX degree"); - - Test("\\frac{12}{x} ", 2, [["ParaRun", ""], ["CFraction", "\\cos { (2θ)}"], ["ParaRun", ""]], true, "Check LaTeX fraction"); - Test("\\frac12b ", 2, [["ParaRun", ""], ["CFraction", "\\cos { (2θ)}"], ["ParaRun", ""]], true, "Check LaTeX fraction"); - Test("\\binom{12}{x} ", 2, [["ParaRun", ""], ["CFraction", "\\cos { (2θ)}"], ["ParaRun", ""]], true, "Check LaTeX fraction"); + }; + + + QUnit.testStart(function (){ + AscTest.ClearDocument(); + AscCommon.History.Clear(); + Clear(); + Init(); + }) + + QUnit.module( "Unicode", function () + { + QUnit.module( "Auto-convert rules", function () + { + Test("4^2^2^2 ", [["ParaRun", "4^2^"], ["CDegree", "2^2"], ["ParaRun", ""]], false, "Check degree autocorrection rule"); + Test("4^2^2^2+", [["ParaRun", ""], ["CDegree", "4^(2^(2^2))"], ["ParaRun", "+"]], false, "Check degree autocorrection rule"); + + Test("4┴2┴2┴2 ", [["ParaRun", "4┴2┴"], ["CLimit", "2┴2"], ["ParaRun", ""]], false, "Check Unicode AboveBelow"); + Test("4┴2┴2┴2+", [["ParaRun", ""], ["CLimit", "4┴(2┴(2┴2))"], ["ParaRun", "+"]], false, "Check Unicode AboveBelow"); + }) + + QUnit.module( "AboveBelow", function () + { + QUnit.module( "auto-convert"); + Test("4┴2 +2", [["ParaRun", ""], ["CLimit", "4┴2"], ["ParaRun", "+2"]], false, "Check Unicode AboveBelow"); + Test("base┴ex *xz", [["ParaRun", ""], ["CLimit", "base┴ex"], ["ParaRun", "*xz"]], false, "Check Unicode AboveBelow"); + Test("2┴ex -p", [["ParaRun", ""], ["CLimit", "2┴ex"], ["ParaRun", "-p"]], false, "Check Unicode AboveBelow"); + Test("base┬2 *x", [["ParaRun", ""], ["CLimit", "base┬2"], ["ParaRun", "*x"]], false, "Check Unicode AboveBelow"); + Test("4┬2 +x/y ", [["ParaRun", ""], ["CLimit", "4┬2"], ["ParaRun", "+"], ["CFraction", "x/y"]], false, "Check Unicode AboveBelow"); + Test("base┬x *y^2 ", [["ParaRun", ""], ["CLimit", "base┬x"], ["ParaRun", "*"], ["CDegree", "y^2"]], false, "Check Unicode AboveBelow"); + Test("2┬ex -x_i ", [["ParaRun", ""], ["CLimit", "2┬ex"], ["ParaRun", "-"], ["CDegree", "x_i"]], false, "Check Unicode AboveBelow"); + Test("2┬(ex+2) +(2+1) ", [["ParaRun", ""], ["CLimit", "2┬(ex+2)"], ["ParaRun", "+"], ["CDelimiter", "(2+1)"]], false, "Check Unicode AboveBelow"); + Test("2┬(ex+2+x/2)^2 -1", [["ParaRun", ""], ["CLimit", "2┬((ex+2+x/2)^2)"], ["ParaRun", "-1"]], false, "Check Unicode AboveBelow"); + Test("(2+x)┬ex ", [["ParaRun", ""], ["CLimit", "(2+x)┬ex"]], false, "Check Unicode AboveBelow"); + Test("(2+y)┬(ex+2+x/2) ", [["ParaRun", ""], ["CLimit", "(2+y)┬(ex+2+x/2)"]], false, "Check Unicode AboveBelow"); + Test("(2+y^2)┬(ex_3+2+x/2) ", [["ParaRun", ""], ["CLimit", "(2+y^2)┬(ex_3+2+x/2)"]], false, "Check Unicode AboveBelow"); + + QUnit.module("convert"); + Test("4┴2+2", [["ParaRun", ""], ["CLimit", "4┴2"], ["ParaRun", "+2"]], false, "Check Unicode AboveBelow",true); + Test("base┴ex*xz", [["ParaRun", ""], ["CLimit", "base┴ex"], ["ParaRun", "*xz"]], false, "Check Unicode AboveBelow", true); + Test("2┴ex-p", [["ParaRun", ""], ["CLimit", "2┴ex"], ["ParaRun", "-p"]], false, "Check Unicode AboveBelow", true); + Test("base┬2*x", [["ParaRun", ""], ["CLimit", "base┬2"], ["ParaRun", "*x"]], false, "Check Unicode AboveBelow", true); + Test("4┬2+x/y", [["ParaRun", ""], ["CLimit", "4┬2"], ["ParaRun", "+"], ["CFraction", "x/y"]], false, "Check Unicode AboveBelow", true); + Test("base┬x*y^2", [["ParaRun", ""], ["CLimit", "base┬x"], ["ParaRun", "*"], ["CDegree", "y^2"]], false, "Check Unicode AboveBelow", true); + Test("2┬ex-x_i", [["ParaRun", ""], ["CLimit", "2┬ex"], ["ParaRun", "-"], ["CDegree", "x_i"]], false, "Check Unicode AboveBelow", true); + Test("2┬(ex+2)+(2+1)", [["ParaRun", ""], ["CLimit", "2┬(ex+2)"], ["ParaRun", "+"], ["CDelimiter", "(2+1)"]], false, "Check Unicode AboveBelow", true); + Test("2┬(ex+2+x/2)^2-1", [["ParaRun", ""], ["CLimit", "2┬((ex+2+x/2)^2)"], ["ParaRun", "-1"]], false, "Check Unicode AboveBelow", true); + Test("(2+x)┬ex", [["ParaRun", ""], ["CLimit", "(2+x)┬ex"]], false, "Check Unicode AboveBelow", true); + Test("(2+y)┬(ex+2+x/2)", [["ParaRun", ""], ["CLimit", "(2+y)┬(ex+2+x/2)"]], false, "Check Unicode AboveBelow", true); + Test("(2+y^2)┬(ex_3+2+x/2)", [["ParaRun", ""], ["CLimit", "(2+y^2)┬(ex_3+2+x/2)"]], false, "Check Unicode AboveBelow", true); + + Test("base┴2+2", [["ParaRun", ""], ["CLimit", "base┴2"], ["ParaRun", "+2"]], false, "Check diacritics"); + Test("base┴2┴x+2", [["ParaRun", ""], ["CLimit", "base┴(2┴x)"], ["ParaRun", "+2"]], false, "Check diacritics"); + Test("base┴2┴(x/y+6)+2", [["ParaRun", ""], ["CLimit", "base┴(2┴(x/y+6))"], ["ParaRun", "+2"]], false, "Check diacritics"); + + Test("x^23┴2/y", [["ParaRun", ""], ["CLimit", "(x^23)┴2"], ["ParaRun", "/y"]], false, "Start autocorrection by divide"); + Test("(x^23)┴2/y", [["ParaRun", ""], ["CLimit", "(x^23)┴2"], ["ParaRun", "/y"]], false, "Start autocorrection by divide"); + }) + + QUnit.module( "Box and Rect", function () + { + QUnit.module("auto-convert"); + Test("□(1+2) ", [["ParaRun", ""], ["CBox", "□(1+2)"]], false, "Check Unicode Box"); + Test("□1 ", [["ParaRun", ""], ["CBox", "□1"]], false, "Check Unicode Box"); + Test("□ ", [["ParaRun", ""], ["CBox", "□"]], false, "Check Unicode Box"); + Test("□1/2 ", [["ParaRun", ""], ["CFraction", "□1/2"]], false, "Check Unicode Box"); + Test("▭(1+2) ", [["ParaRun", ""], ["CBorderBox", "▭(1+2)"]], false, "Check Unicode Box"); + Test("▭1 ", [["ParaRun", ""], ["CBorderBox", "▭1"]], false, "Check Unicode Box"); + Test("▭ ", [["ParaRun", ""], ["CBorderBox", "▭"]], false, "Check Unicode Box"); + Test("▭1/2 ", [["ParaRun", ""], ["CFraction", "▭1/2"]], false, "Check Unicode Box"); + + QUnit.module("convert"); + Test("□(1+2)", [["ParaRun", ""], ["CBox", "□(1+2)"]], false, "Check Unicode Box", true); + Test("□1", [["ParaRun", ""], ["CBox", "□1"]], false, "Check Unicode Box", true); + Test("□", [["ParaRun", ""], ["CBox", "□"]], false, "Check Unicode Box", true); + Test("□1/2", [["ParaRun", ""], ["CFraction", "□1/2"]], false, "Check Unicode Box", true); + Test("▭(1+2)", [["ParaRun", ""], ["CBorderBox", "▭(1+2)"]], false, "Check Unicode Box", true); + Test("▭1", [["ParaRun", ""], ["CBorderBox", "▭1"]], false, "Check Unicode Box", true); + Test("▭", [["ParaRun", ""], ["CBorderBox", "▭"]], false, "Check Unicode Box", true); + Test("▭1/2", [["ParaRun", ""], ["CFraction", "▭1/2"]], false, "Check Unicode Box", true); + + Test("\\rect ", [["ParaRun", "▭"]], false, "Check box literal"); + Test("\\rect 1/2 ", [["ParaRun", ""], ["CFraction", "▭1/2"], ["ParaRun", ""]], false, "Check box"); + Test("\\rect (1/2) ", [["ParaRun", ""], ["CBorderBox", "▭(1/2)"], ["ParaRun", ""]], false, "Check box"); + Test("\\rect (E=mc^2) ", [["ParaRun", ""], ["CBorderBox", "▭(E=mc^2)"], ["ParaRun", ""]], false, "Check box"); + }) + + QUnit.module( "Underbar", function () + { + QUnit.module("auto-convert"); + Test("▁(1+2) ", [["ParaRun", ""], ["CBar", "▁(1+2)"]], false, "Check Unicode underbar"); + Test("▁1 ", [["ParaRun", ""], ["CBar", "▁1"]], false, "Check Unicode underbar"); + Test("▁1/2 ", [["ParaRun", ""], ["CFraction", "▁1/2"]], false, "Check Unicode underbar"); + + QUnit.module( "convert"); + Test("▁(1+2)", [["ParaRun", ""], ["CBar", "▁(1+2)"]], false, "Check Unicode underbar", true); + Test("▁1", [["ParaRun", ""], ["CBar", "▁1"]], false, "Check Unicode underbar", true); + Test("▁1/2", [["ParaRun", ""], ["CFraction", "▁1/2"]], false, "Check Unicode underbar", true); + }) + + QUnit.module( "Brackets", function () + { + QUnit.module( "auto-convert Brackets"); + Test(`(1+2) +2`, [["ParaRun", ""], ["CDelimiter", "(1+2)"], ["ParaRun", "+2"]], false, "Check Unicode bracket", false); + Test(`{1+2} -X`, [["ParaRun", ""], ["CDelimiter", "{1+2}"], ["ParaRun", "-X"]], false, "Check Unicode bracket", false); + Test(`[1+2] *i`, [["ParaRun", ""], ["CDelimiter", "[1+2]"], ["ParaRun", "*i"]], false, "Check Unicode bracket", false); + Test(`|1+2| -89/2 `, [["ParaRun", ""], ["CDelimiter", "|1+2|"], ["ParaRun", "-"], ["CFraction", "89/2"]], false, "Check Unicode bracket", false); + Test(`|1+2| -〖89/2〗 `, [["ParaRun", ""], ["CDelimiter", "|1+2|"], ["ParaRun", "-"], ["CFraction", "89/2"]], false, "Check Unicode bracket", false); + Test(`⌈1+2⌉ -〖89/2〗 `, [["ParaRun", ""], ["CDelimiter", "⌈1+2⌉"], ["ParaRun", "-"], ["CFraction", "89/2"]], false, "Check Unicode bracket", false); + Test(`⌊1+2⌋ -〖89/2〗 `, [["ParaRun", ""], ["CDelimiter", "⌊1+2⌋"], ["ParaRun", "-"], ["CFraction", "89/2"]], false, "Check Unicode bracket", false); + Test(`〖89/2〗/2 `, [["ParaRun", ""], ["CFraction", "(89/2)/2"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`√〖89/2〗 `, [["ParaRun", ""], ["CRadical", "√(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`〖89/2〗_2 `, [["ParaRun", ""], ["CDegree", "(89/2)_2"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`〖89/2〗^2 `, [["ParaRun", ""], ["CDegree", "(89/2)^2"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`2_〖89/2〗 `, [["ParaRun", ""], ["CDegree", "2_(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`2^〖89/2〗 `, [["ParaRun", ""], ["CDegree", "2^(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`2_〖89/2〗_2 `, [["ParaRun", "2_"], ["CDegree", "(89/2)_2"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`2^〖89/2〗^2 `, [["ParaRun", "2^"], ["CDegree", "(89/2)^2"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`2┴〖89/2〗 `, [["ParaRun", ""], ["CLimit", "2┴(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`2┴〖89/2〗┴2 `, [["ParaRun", "2┴"], ["CLimit", "(89/2)┴2"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`2┬〖89/2〗 `, [["ParaRun", ""], ["CLimit", "2┬(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`2┬〖89/2〗┬2 `, [["ParaRun", "2┬"], ["CLimit", "(89/2)┬2"], ["ParaRun", ""]], false, "Check Unicode bracket", false); + Test(`├]a+b┤[ `, [["ParaRun", ""], ["CDelimiter", "├]a+b┤["], ["ParaRun", ""]], false, "Check Unicode bracket", false); + + Test("(", [["ParaRun", "("]], false); + Test("[", [["ParaRun", "["]], false); + Test("{", [["ParaRun", "{"]], false); + + Test("( ", [["ParaRun", "( "]], false); + Test("[ ", [["ParaRun", "[ "]], false); + Test("{ ", [["ParaRun", "{ "]], false); + + Test("(((", [["ParaRun", "((("]], false); + Test("[[[", [["ParaRun", "[[["]], false); + Test("{{{", [["ParaRun", "{{{"]], false); + + Test("((( ", [["ParaRun", "((( "]], false); + Test("[[[ ", [["ParaRun", "[[[ "]], false); + Test("{{{ ", [["ParaRun", "{{{ "]], false); + + Test("(((1", [["ParaRun", "(((1"]], false); + Test("[[[1", [["ParaRun", "[[[1"]], false); + Test("{{{1", [["ParaRun", "{{{1"]], false); + + Test("(((1 ", [["ParaRun", "(((1 "]], false); + Test("[[[1 ", [["ParaRun", "[[[1 "]], false); + Test("{{{1 ", [["ParaRun", "{{{1 "]], false); + + Test("1(((1", [["ParaRun", "1(((1"]], false); + Test("1[[[1", [["ParaRun", "1[[[1"]], false); + Test("1{{{1", [["ParaRun", "1{{{1"]], false); + + Test("1(((1 ", [["ParaRun", "1(((1 "]], false); + Test("1[[[1 ", [["ParaRun", "1[[[1 "]], false); + Test("1{{{1 ", [["ParaRun", "1{{{1 "]], false); + + Test("1(((1+", [["ParaRun", "1(((1+"]], false); + Test("1[[[1+", [["ParaRun", "1[[[1+"]], false); + Test("1{{{1+", [["ParaRun", "1{{{1+"]], false); + Test("1(((1+=", [["ParaRun", "1(((1+="]], false); + Test("1[[[1+=", [["ParaRun", "1[[[1+="]], false); + Test("1{{{1+=", [["ParaRun", "1{{{1+="]], false); + + Test("1(((1+ ", [["ParaRun", "1(((1+ "]], false); + Test("1[[[1+ ", [["ParaRun", "1[[[1+ "]], false); + Test("1{{{1+ ", [["ParaRun", "1{{{1+ "]], false); + Test("1(((1+= ", [["ParaRun", "1(((1+= "]], false); + Test("1[[[1+= ", [["ParaRun", "1[[[1+= "]], false); + Test("1{{{1+= ", [["ParaRun", "1{{{1+= "]], false); + + Test(")", [["ParaRun", ")"]], false); + Test("]", [["ParaRun", "]"]], false); + Test("}", [["ParaRun", "}"]], false); + + Test(") ", [["ParaRun", ") "]], false); + Test("] ", [["ParaRun", "] "]], false); + Test("} ", [["ParaRun", "} "]], false); + + Test(")))", [["ParaRun", ")))"]], false); + Test("]]]", [["ParaRun", "]]]"]], false); + Test("}}}", [["ParaRun", "}}}"]], false); + + Test("))) ", [["ParaRun", "))) "]], false); + Test("]]] ", [["ParaRun", "]]] "]], false); + Test("}}} ", [["ParaRun", "}}} "]], false); + + Test(")))1", [["ParaRun", ")))1"]], false); + Test("]]]1", [["ParaRun", "]]]1"]], false); + Test("}}}1", [["ParaRun", "}}}1"]], false); + + Test(")))1 ", [["ParaRun", ")))1 "]], false); + Test("]]]1 ", [["ParaRun", "]]]1 "]], false); + Test("}}}1 ", [["ParaRun", "}}}1 "]], false); + + Test("1)))1", [["ParaRun", "1)))1"]], false); + Test("1]]]1", [["ParaRun", "1]]]1"]], false); + Test("1}}}1", [["ParaRun", "1}}}1"]], false); + + Test("1)))1 ", [["ParaRun", "1)))1 "]], false); + Test("1]]]1 ", [["ParaRun", "1]]]1 "]], false); + Test("1}}}1 ", [["ParaRun", "1}}}1 "]], false); + + Test("1)))1+", [["ParaRun", "1)))1+"]], false); + Test("1]]]1+", [["ParaRun", "1]]]1+"]], false); + Test("1}}}1+", [["ParaRun", "1}}}1+"]], false); + Test("1)))1+=", [["ParaRun", "1)))1+="]], false); + Test("1]]]1+=", [["ParaRun", "1]]]1+="]], false); + Test("1}}}1+=", [["ParaRun", "1}}}1+="]], false); + + Test("1)))1+ ", [["ParaRun", "1)))1+ "]], false); + Test("1]]]1+ ", [["ParaRun", "1]]]1+ "]], false); + Test("1}}}1+ ", [["ParaRun", "1}}}1+ "]], false); + Test("1)))1+= ", [["ParaRun", "1)))1+= "]], false); + Test("1]]]1+= ", [["ParaRun", "1]]]1+= "]], false); + Test("1}}}1+= ", [["ParaRun", "1}}}1+= "]], false); + + Test("() ", [["ParaRun", ""], ["CDelimiter", "()"], ["ParaRun", ""]], false); + Test("{} ", [["ParaRun", ""], ["CDelimiter", "{}"], ["ParaRun", ""]], false); + Test("[] ", [["ParaRun", ""], ["CDelimiter", "[]"], ["ParaRun", ""]], false); + Test("|| ", [["ParaRun", ""], ["CDelimiter", "||"], ["ParaRun", ""]], false); + + Test("()+", [["ParaRun", ""], ["CDelimiter", "()"], ["ParaRun", "+"]], false); + Test("{}+", [["ParaRun", ""], ["CDelimiter", "{}"], ["ParaRun", "+"]], false); + Test("[]+", [["ParaRun", ""], ["CDelimiter", "[]"], ["ParaRun", "+"]], false); + Test("||+", [["ParaRun", ""], ["CDelimiter", "||"], ["ParaRun", "+"]], false); + + Test("|z}+", [["ParaRun", ""], ["CDelimiter", "|z}"], ["ParaRun", "+"]], false); + Test("(c|+", [["ParaRun", ""], ["CDelimiter", "(c|"], ["ParaRun", "+"]], false); + + Test("(1+2)+", [["ParaRun", ""], ["CDelimiter", "(1+2)"], ["ParaRun", "+"]], false); + Test("{1+2}+", [["ParaRun", ""], ["CDelimiter", "{1+2}"], ["ParaRun", "+"]], false); + Test("[1+2]+", [["ParaRun", ""], ["CDelimiter", "[1+2]"], ["ParaRun", "+"]], false); + Test("|1+2|+", [["ParaRun", ""], ["CDelimiter", "|1+2|"], ["ParaRun", "+"]], false); + + Test("(1/2 ", [["ParaRun", "("], ["CFraction", "1/2"]], false); + Test("{1/2 ", [["ParaRun", "{"], ["CFraction", "1/2"]], false); + Test("[1/2 ", [["ParaRun", "["], ["CFraction", "1/2"]], false); + Test("|1/2 ", [["ParaRun", "|"], ["CFraction", "1/2"]], false); + + Test("(1/2)",[["ParaRun", "("], ["CFraction", "1/2"], ["ParaRun", ")"]], false); + + Test("(1\\mid 2\\mid 3) ", [["ParaRun", ""], ["CDelimiter", "(1∣2∣3)"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("[1\\mid 2\\mid 3) ", [["ParaRun", ""], ["CDelimiter", "[1∣2∣3)"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("|1\\mid 2\\mid 3) ", [["ParaRun", ""], ["CDelimiter", "|1∣2∣3)"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("{1\\mid 2\\mid 3) ", [["ParaRun", ""], ["CDelimiter", "{1∣2∣3)"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("(1\\mid 2\\mid 3] ", [["ParaRun", ""], ["CDelimiter", "(1∣2∣3]"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("(1\\mid 2\\mid 3} ", [["ParaRun", ""], ["CDelimiter", "(1∣2∣3}"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("(1\\mid 2\\mid 3| ", [["ParaRun", ""], ["CDelimiter", "(1∣2∣3|"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("|1\\mid 2\\mid 3| ", [["ParaRun", ""], ["CDelimiter", "|1∣2∣3|"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("{1\\mid 2\\mid 3} ", [["ParaRun", ""], ["CDelimiter", "{1∣2∣3}"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + Test("[1\\mid 2\\mid 3] ", [["ParaRun", ""], ["CDelimiter", "[1∣2∣3]"], ["ParaRun", ""]], false, "Check Unicode bracket with mid"); + + Test("(1+ ", [["ParaRun", "(1+ "]], false, "Check brackets"); + Test("(1+2) ", [["ParaRun", ""], ["CDelimiter", "(1+2)"], ["ParaRun", ""]], false, "Check brackets"); + Test("[1+2] ", [["ParaRun", ""], ["CDelimiter", "[1+2]"], ["ParaRun", ""]], false, "Check brackets"); + Test("{1+2} ", [["ParaRun", ""], ["CDelimiter", "{1+2}"], ["ParaRun", ""]], false, "Check brackets"); + + Test(")123 ", [["ParaRun", ")123 "]], false, "Check brackets"); + Test(")12) ", [["ParaRun", ")12) "]], false, "Check brackets"); + Test(")12] ", [["ParaRun", ")12] "]], false, "Check brackets"); + Test(")12} ", [["ParaRun", ")12} "]], false, "Check brackets"); + + Test("(1+2] ", [["ParaRun", ""], ["CDelimiter", "(1+2]"], ["ParaRun", ""]], false, "Check brackets"); + Test("|1+2] ", [["ParaRun", ""], ["CDelimiter", "|1+2]"], ["ParaRun", ""]], false, "Check brackets"); + Test("{1+2] ", [["ParaRun", ""], ["CDelimiter", "{1+2]"], ["ParaRun", ""]], false, "Check brackets"); + + QUnit.module( " convert Brackets"); + Test(`(1+2)+2`, [["ParaRun", ""], ["CDelimiter", "(1+2)"], ["ParaRun", "+2"]], false, "Check Unicode bracket", true); + Test(`{1+2}-X`, [["ParaRun", ""], ["CDelimiter", "{1+2}"], ["ParaRun", "-X"]], false, "Check Unicode bracket", true); + Test(`[1+2]*i`, [["ParaRun", ""], ["CDelimiter", "[1+2]"], ["ParaRun", "*i"]], false, "Check Unicode bracket", true); + Test(`|1+2|-89/2`, [["ParaRun", ""], ["CDelimiter", "|1+2|"], ["ParaRun", "-"], ["CFraction", "89/2"]], false, "Check Unicode bracket", true); + Test(`|1+2|-〖89/2〗`, [["ParaRun", ""], ["CDelimiter", "|1+2|"], ["ParaRun", "-"], ["CFraction", "89/2"]], false, "Check Unicode bracket", true); + Test(`⌈1+2⌉-〖89/2〗`, [["ParaRun", ""], ["CDelimiter", "⌈1+2⌉"], ["ParaRun", "-"], ["CFraction", "89/2"]], false, "Check Unicode bracket", true); + Test(`⌊1+2⌋-〖89/2〗`, [["ParaRun", ""], ["CDelimiter", "⌊1+2⌋"], ["ParaRun", "-"], ["CFraction", "89/2"]], false, "Check Unicode bracket", true); + Test(`〖89/2〗/2`, [["ParaRun", ""], ["CFraction", "(89/2)/2"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`√〖89/2〗`, [["ParaRun", ""], ["CRadical", "√(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`〖89/2〗_2`, [["ParaRun", ""], ["CDegree", "(89/2)_2"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`〖89/2〗^2`, [["ParaRun", ""], ["CDegree", "(89/2)^2"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`2_〖89/2〗`, [["ParaRun", ""], ["CDegree", "2_(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`2^〖89/2〗`, [["ParaRun", ""], ["CDegree", "2^(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`2_〖89/2〗_2`, [["ParaRun", ""], ["CDegree", "2_((89/2)_2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`2^〖89/2〗^2`, [["ParaRun", ""], ["CDegree", "2^((89/2)^2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true ); + Test(`2┴〖89/2〗`, [["ParaRun", ""], ["CLimit", "2┴(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`2┴〖89/2〗┴2`, [["ParaRun", ""], ["CLimit", "2┴((89/2)┴2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`2┬〖89/2〗`, [["ParaRun", ""], ["CLimit", "2┬(89/2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`2┬〖89/2〗┬2`, [["ParaRun", ""], ["CLimit", "2┬((89/2)┬2)"], ["ParaRun", ""]], false, "Check Unicode bracket", true); + Test(`├]a+b┤[`, [["ParaRun", ""], ["CDelimiter", "├]a+b┤["], ["ParaRun", ""]], false, "Check Unicode bracket", true); + + Test(`〖1∣2〗`, [["ParaRun", ""], ["CDelimiter", "〖1∣2〗"], ["ParaRun", ""]], false, "Check special bracket with some contents", true); + Test(`\\left(1\\right)`, [["ParaRun", ""], ["CDelimiter", "(1)"], ["ParaRun", ""]], false, "Is convert \\left and \\right without autocorrection", true); + Test(`\\open(1\\close)`, [["ParaRun", ""], ["CDelimiter", "(1)"], ["ParaRun", ""]], false, "Is convert \\left and \\right without autocorrection", true); + }) + + QUnit.module( "Complex", function () + { + QUnit.module( " convert Complex"); + //Test(`(a + b)^n =∑_(k=0)^n▒(n¦k) a^k b^(n-k) `, [["ParaRun", ""], ["CDegree", "(a + b)^n"], ["ParaRun", "="], ["CNary", "∑^n_(k=0)▒(n¦k)"], ["ParaRun", ""], ["CDegree", "a^k"], ["CDegree", "b^(n-k)"]], false, "Check Complex content", true); + Test(`∑_2^2▒(n/23)`, [["ParaRun", ""], ["CNary", "∑_2^2▒(n/23)"], ["ParaRun", ""]], false, "Check Complex content", true); + //Test(`(x+⋯+x)^(k "times")`, [["ParaRun", ""], ["CDegree", "(x+⋯+x)^(k \"times\")"], ["ParaRun", ""]], false, "Check Complex content", true); + //Test(`𝐸 = 𝑚𝑐^2`, [["ParaRun", "𝐸 = "], ["CDegree", "𝑚𝑐^2"], ["ParaRun", ""]], false, "Check Complex content", true); + Test(`∫_0^a▒xⅆx/(x^2+a^2)`, [["ParaRun", ""], ["CNary", "∫_0^a▒〖xⅆx/(x^2+a^2)〗"], ["ParaRun", ""]], false, "Check Complex content", true); + //Test(`lim┬(n→∞) a_n`, [["ParaRun", ""], ["CLimit", "lim┬(n→∞)⁡a_n"], ["ParaRun", ""]], false, "Check Complex content", true); + //Test(`ⅈ²=-1`, [["ParaRun", ""], ["CDegree", "ⅈ²=-1"], ["ParaRun", ""]], false, "Check Complex content", true); + //Test(`E = m⁢c²`, [["ParaRun", "E ="], ["CDegree", "〖 m⁢c〗^2"], ["ParaRun", ""]], false, "Check Complex content", true); + //Test(`a²⋅b²=c²`, [["ParaRun", ""], ["CDegree", "a^2"], ["ParaRun", "⋅"], ["CDegree", "b^2"], ["ParaRun", "="], ["CDegree", "c^2"]], false, "Check Complex content", true); + //Test(`f̂(ξ)=∫_-∞^∞▒f(x)ⅇ^-2πⅈxξ ⅆx`,[["ParaRun", ""], ["CAccent", "f̂"], ["CDelimiter", "(ξ)"], ["ParaRun", "="], ["CNary", "∫▒〖ⅇ^ⅈxξ ⅆx〗"], ["ParaRun", ""]], false, "Check Complex content", true); + //Test(`(𝑎 + 𝑏)┴→`, [["ParaRun", ""], ["CLimit", "(𝑎 + 𝑏)┴→"], ["ParaRun", ""]], false, "Check Complex content", true); + //Test(`𝑎┴→`, [["ParaRun", ""], ["CLimit", "𝑎┴→"], ["ParaRun", ""]], false, "Check Complex content", true); + }) + + QUnit.module( "Fractions", function () + { + QUnit.module( " convert fractions"); + Test(`1/2`, [["ParaRun", ""], ["CFraction", "1/2"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`x+5/2`, [["ParaRun", "x+"], ["CFraction", "5/2"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`x+5/x+2`, [["ParaRun", "x+"], ["CFraction", "5/x"], ["ParaRun", "+2"]], false, "Check fraction content", true); + Test(`1∕2`, [["ParaRun", ""], ["CFraction", "1∕2"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`(x+5)/2`, [["ParaRun", ""], ["CFraction", "(x+5)/2"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`x/(2+1)`, [["ParaRun", ""], ["CFraction", "x/(2+1)"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`(x-5)/(2+1)`, [["ParaRun", ""], ["CFraction", "(x-5)/(2+1)"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`1+3/2/3`, [["ParaRun", "1+"], ["CFraction", "3/(2/3)"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`(𝛼_2^3)/(𝛽_2^3+𝛾_2^3)`, [["ParaRun", ""], ["CFraction", "(𝛼_2^3)/(𝛽_2^3+𝛾_2^3)"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`(a/(b+c))/(d/e+f)`, [["ParaRun", ""], ["CFraction", "(a/(b+c))/(d/e+f)"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`(a/(c/(z/x)))`, [["ParaRun", ""], ["CDelimiter", "(a/(c/(z/x)))"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`1¦2`, [["ParaRun", ""], ["CFraction", "1¦2"], ["ParaRun", ""]], false, "Check fraction content", true); + Test(`(1¦2)`, [["ParaRun", ""], ["CDelimiter", "(1¦2)"], ["ParaRun", ""]], false, "Check fraction content", true); + Test("(sin⁡θ)/(cos⁡θ) ", [["ParaRun", ""], ["CFraction", "(sin⁡θ)/(cos⁡θ)"], ["ParaRun", ""]], false, "Check functions"); + Test("(1/2)/", [["ParaRun", ""], ["CDelimiter", "(1/2)"], ["ParaRun", "/"]], false, "Check devide"); + }) + + QUnit.module( "Horizontal brackets", function () + { + QUnit.module( " convert hbrackets"); + Test(`⏞(x+⋯+x)`, [["ParaRun", ""], ["CGroupCharacter", "⏞(x+⋯+x)"], ["ParaRun", ""]], false, "Check hbrack content", true); + Test(`⏞(x+⋯+x)^2`, [["ParaRun", ""], ["CLimit", "⏞(x+⋯+x)┴2"], ["ParaRun", ""]], false, "Check hbrack content", true); + Test(`⏞(x+⋯+x)_2`, [["ParaRun", ""], ["CLimit", "⏞(x+⋯+x)┬2"], ["ParaRun", ""]], false, "Check hbrack content", true); + Test(`⏞(x+⋯+x)_2^Y`, [["ParaRun", ""], ["CLimit", "⏞(x+⋯+x)┬(2^Y)"], ["ParaRun", ""]], false, "Check hbrack content", true); + Test(`⏞(x+⋯+x)_2^2`, [["ParaRun", ""], ["CLimit", "⏞(x+⋯+x)┬(2^2)"], ["ParaRun", ""]], false, "Check hbrack content", true); + }) + + QUnit.module( "Autocorrection", function () + { + Test("\\above", [["ParaRun", "\\above"]], false, "Check literal", true) + Test("\\acute", [["ParaRun", "\\acute"]], false, "Check literal", true) + Test("\\aleph", [["ParaRun", "\\aleph"]], false, "Check literal", true) + Test("\\alpha", [["ParaRun", "\\alpha"]], false, "Check literal", true) + Test("\\amalg", [["ParaRun", "\\amalg"]], false, "Check literal", true) + Test("\\angle", [["ParaRun", "\\angle"]], false, "Check literal", true) + Test("\\aoint", [["ParaRun", "\\aoint"]], false, "Check literal", true) + Test("\\approx", [["ParaRun", "\\approx"]], false, "Check literal", true) + Test("\\asmash", [["ParaRun", "\\asmash"]], false, "Check literal", true) + Test("\\ast", [["ParaRun", "\\ast"]], false, "Check literal", true) + Test("\\asymp", [["ParaRun", "\\asymp"]], false, "Check literal", true) + Test("\\atop", [["ParaRun", "\\atop"]], false, "Check literal", true) + Test("\\Bar", [["ParaRun", "\\Bar"]], false, "Check literal", true) + Test("\\bar", [["ParaRun", "\\bar"]], false, "Check literal", true) + Test("\\because", [["ParaRun", "\\because"]], false, "Check literal", true) + Test("\\begin", [["ParaRun", "\\begin"]], false, "Check literal", true) + Test("\\below", [["ParaRun", "\\below"]], false, "Check literal", true) + Test("\\beta", [["ParaRun", "\\beta"]], false, "Check literal", true) + Test("\\beth", [["ParaRun", "\\beth"]], false, "Check literal", true) + Test("\\bot", [["ParaRun", "\\bot"]], false, "Check literal", true) + Test("\\bigcap", [["ParaRun", "\\bigcap"]], false, "Check literal", true) + Test("\\bigcup", [["ParaRun", "\\bigcup"]], false, "Check literal", true) + Test("\\bigodot", [["ParaRun", "\\bigodot"]], false, "Check literal", true) + Test("\\bigoplus", [["ParaRun", "\\bigoplus"]], false, "Check literal", true) + Test("\\bigotimes", [["ParaRun", "\\bigotimes"]], false, "Check literal", true) + Test("\\bigsqcup", [["ParaRun", "\\bigsqcup"]], false, "Check literal", true) + Test("\\biguplus", [["ParaRun", "\\biguplus"]], false, "Check literal", true) + Test("\\bigvee", [["ParaRun", "\\bigvee"]], false, "Check literal", true) + Test("\\bigwedge", [["ParaRun", "\\bigwedge"]], false, "Check literal", true) + Test("\\bowtie", [["ParaRun", "\\bowtie"]], false, "Check literal", true) + Test("\\box", [["ParaRun", "\\box"]], false, "Check literal", true) + Test("\\bra", [["ParaRun", "\\bra"]], false, "Check literal", true) + Test("\\breve", [["ParaRun", "\\breve"]], false, "Check literal", true) + Test("\\bullet", [["ParaRun", "\\bullet"]], false, "Check literal", true) + Test("\\boxdot", [["ParaRun", "\\boxdot"]], false, "Check literal", true) + Test("\\boxminus", [["ParaRun", "\\boxminus"]], false, "Check literal", true) + Test("\\boxplus", [["ParaRun", "\\boxplus"]], false, "Check literal", true) + Test("\\cap", [["ParaRun", "\\cap"]], false, "Check literal", true) + Test("\\cbrt", [["ParaRun", "\\cbrt"]], false, "Check literal", true) + Test("\\cdots", [["ParaRun", "\\cdots"]], false, "Check literal", true) + Test("\\cdot", [["ParaRun", "\\cdot"]], false, "Check literal", true) + Test("\\check", [["ParaRun", "\\check"]], false, "Check literal", true) + Test("\\chi", [["ParaRun", "\\chi"]], false, "Check literal", true) + Test("\\circ", [["ParaRun", "\\circ"]], false, "Check literal", true) + Test("\\close", [["ParaRun", "\\close"]], false, "Check literal", true) + Test("\\clubsuit", [["ParaRun", "\\clubsuit"]], false, "Check literal", true) + Test("\\coint", [["ParaRun", "\\coint"]], false, "Check literal", true) + Test("\\cong", [["ParaRun", "\\cong"]], false, "Check literal", true) + Test("\\contain", [["ParaRun", "\\contain"]], false, "Check literal", true) + Test("\\cup", [["ParaRun", "\\cup"]], false, "Check literal", true) + Test("\\daleth", [["ParaRun", "\\daleth"]], false, "Check literal", true) + Test("\\dashv", [["ParaRun", "\\dashv"]], false, "Check literal", true) + Test("\\dd", [["ParaRun", "\\dd"]], false, "Check literal", true) + Test("\\ddddot", [["ParaRun", "\\ddddot"]], false, "Check literal", true) + Test("\\dddot", [["ParaRun", "\\dddot"]], false, "Check literal", true) + Test("\\ddot", [["ParaRun", "\\ddot"]], false, "Check literal", true) + Test("\\ddots", [["ParaRun", "\\ddots"]], false, "Check literal", true) + Test("\\degree", [["ParaRun", "\\degree"]], false, "Check literal", true) + Test("\\Delta", [["ParaRun", "\\Delta"]], false, "Check literal", true) + Test("\\delta", [["ParaRun", "\\delta"]], false, "Check literal", true) + Test("\\diamond", [["ParaRun", "\\diamond"]], false, "Check literal", true) + Test("\\diamondsuit", [["ParaRun", "\\diamondsuit"]], false, "Check literal", true) + Test("\\div", [["ParaRun", "\\div"]], false, "Check literal", true) + Test("\\dot", [["ParaRun", "\\dot"]], false, "Check literal", true) + Test("\\doteq", [["ParaRun", "\\doteq"]], false, "Check literal", true) + Test("\\dots", [["ParaRun", "\\dots"]], false, "Check literal", true) + Test("\\downarrow", [["ParaRun", "\\downarrow"]], false, "Check literal", true) + Test("\\dsmash", [["ParaRun", "\\dsmash"]], false, "Check literal", true) + Test("\\degc", [["ParaRun", "\\degc"]], false, "Check literal", true) + Test("\\degf", [["ParaRun", "\\degf"]], false, "Check literal", true) + Test("\\ee", [["ParaRun", "\\ee"]], false, "Check literal", true) + Test("\\ell", [["ParaRun", "\\ell"]], false, "Check literal", true) + Test("\\emptyset", [["ParaRun", "\\emptyset"]], false, "Check literal", true) + Test("\\emsp", [["ParaRun", "\\emsp"]], false, "Check literal", true) + Test("\\end", [["ParaRun", "\\end"]], false, "Check literal", true) + Test("\\ensp", [["ParaRun", "\\ensp"]], false, "Check literal", true) + Test("\\epsilon", [["ParaRun", "\\epsilon"]], false, "Check literal", true) + Test("\\eqarray", [["ParaRun", "\\eqarray"]], false, "Check literal", true) + Test("\\eqno", [["ParaRun", "\\eqno"]], false, "Check literal", true) + Test("\\equiv", [["ParaRun", "\\equiv"]], false, "Check literal", true) + Test("\\eta", [["ParaRun", "\\eta"]], false, "Check literal", true) + Test("\\exists", [["ParaRun", "\\exists"]], false, "Check literal", true) + Test("\\forall", [["ParaRun", "\\forall"]], false, "Check literal", true) + Test("\\funcapply", [["ParaRun", "\\funcapply"]], false, "Check literal", true) + Test("\\frown", [["ParaRun", "\\frown"]], false, "Check literal", true) + Test("\\Gamma", [["ParaRun", "\\Gamma"]], false, "Check literal", true) + Test("\\gamma", [["ParaRun", "\\gamma"]], false, "Check literal", true) + Test("\\ge", [["ParaRun", "\\ge"]], false, "Check literal", true) + Test("\\geq", [["ParaRun", "\\geq"]], false, "Check literal", true) + Test("\\gets", [["ParaRun", "\\gets"]], false, "Check literal", true) + Test("\\gg", [["ParaRun", "\\gg"]], false, "Check literal", true) + Test("\\gimel", [["ParaRun", "\\gimel"]], false, "Check literal", true) + Test("\\grave", [["ParaRun", "\\grave"]], false, "Check literal", true) + Test("\\hairsp", [["ParaRun", "\\hairsp"]], false, "Check literal", true) + Test("\\hat", [["ParaRun", "\\hat"]], false, "Check literal", true) + Test("\\hbar", [["ParaRun", "\\hbar"]], false, "Check literal", true) + Test("\\heartsuit", [["ParaRun", "\\heartsuit"]], false, "Check literal", true) + Test("\\hookleftarrow", [["ParaRun", "\\hookleftarrow"]], false, "Check literal", true) + Test("\\hphantom", [["ParaRun", "\\hphantom"]], false, "Check literal", true) + Test("\\hsmash", [["ParaRun", "\\hsmash"]], false, "Check literal", true) + Test("\\hvec", [["ParaRun", "\\hvec"]], false, "Check literal", true) + Test("\\Im", [["ParaRun", "\\Im"]], false, "Check literal", true) + Test("\\iiiint", [["ParaRun", "\\iiiint"]], false, "Check literal", true) + Test("\\iiint", [["ParaRun", "\\iiint"]], false, "Check literal", true) + Test("\\iint", [["ParaRun", "\\iint"]], false, "Check literal", true) + Test("\\ii", [["ParaRun", "\\ii"]], false, "Check literal", true) + Test("\\int", [["ParaRun", "\\int"]], false, "Check literal", true) + Test("\\imath", [["ParaRun", "\\imath"]], false, "Check literal", true) + Test("\\inc", [["ParaRun", "\\inc"]], false, "Check literal", true) + Test("\\infty", [["ParaRun", "\\infty"]], false, "Check literal", true) + Test("\\in", [["ParaRun", "\\in"]], false, "Check literal", true) + Test("\\iota", [["ParaRun", "\\iota"]], false, "Check literal", true) + Test("\\jj", [["ParaRun", "\\jj"]], false, "Check literal", true) + Test("\\jmath", [["ParaRun", "\\jmath"]], false, "Check literal", true) + Test("\\kappa", [["ParaRun", "\\kappa"]], false, "Check literal", true) + Test("\\ket", [["ParaRun", "\\ket"]], false, "Check literal", true) + Test("\\Longleftrightarrow", [["ParaRun", "\\Longleftrightarrow"]], false, "Check literal", true) + Test("\\Longrightarrow", [["ParaRun", "\\Longrightarrow"]], false, "Check literal", true) + Test("\\Lambda", [["ParaRun", "\\Lambda"]], false, "Check literal", true) + Test("\\lambda", [["ParaRun", "\\lambda"]], false, "Check literal", true) + Test("\\langle", [["ParaRun", "\\langle"]], false, "Check literal", true) + Test("\\lbrack", [["ParaRun", "\\lbrack"]], false, "Check literal", true) + Test("\\ldiv", [["ParaRun", "\\ldiv"]], false, "Check literal", true) + Test("\\ldots", [["ParaRun", "\\ldots"]], false, "Check literal", true) + Test("\\le", [["ParaRun", "\\le"]], false, "Check literal", true) + Test("\\Leftarrow", [["ParaRun", "\\Leftarrow"]], false, "Check literal", true) + Test("\\leftarrow", [["ParaRun", "\\leftarrow"]], false, "Check literal", true) + Test("\\leftharpoondown", [["ParaRun", "\\leftharpoondown"]], false, "Check literal", true) + Test("\\leftharpoonup", [["ParaRun", "\\leftharpoonup"]], false, "Check literal", true) + Test("\\Leftrightarrow", [["ParaRun", "\\Leftrightarrow"]], false, "Check literal", true) + Test("\\leftrightarrow", [["ParaRun", "\\leftrightarrow"]], false, "Check literal", true) + Test("\\leq", [["ParaRun", "\\leq"]], false, "Check literal", true) + Test("\\lfloor", [["ParaRun", "\\lfloor"]], false, "Check literal", true) + Test("\\ll", [["ParaRun", "\\ll"]], false, "Check literal", true) + Test("\\Longleftarrow", [["ParaRun", "\\Longleftarrow"]], false, "Check literal", true) + Test("\\longleftarrow", [["ParaRun", "\\longleftarrow"]], false, "Check literal", true) + Test("\\longleftrightarrow", [["ParaRun", "\\longleftrightarrow"]], false, "Check literal", true) + Test("\\longrightarrow", [["ParaRun", "\\longrightarrow"]], false, "Check literal", true) + Test("\\lmoust", [["ParaRun", "\\lmoust"]], false, "Check literal", true) + Test("\\mapsto", [["ParaRun", "\\mapsto"]], false, "Check literal", true) + Test("\\matrix", [["ParaRun", "\\matrix"]], false, "Check literal", true) + Test("\\medsp", [["ParaRun", "\\medsp"]], false, "Check literal", true) + Test("\\mid", [["ParaRun", "\\mid"]], false, "Check literal", true) + Test("\\models", [["ParaRun", "\\models"]], false, "Check literal", true) + Test("\\mp", [["ParaRun", "\\mp"]], false, "Check literal", true) + Test("\\mu", [["ParaRun", "\\mu"]], false, "Check literal", true) + Test("\\nabla", [["ParaRun", "\\nabla"]], false, "Check literal", true) + Test("\\naryand", [["ParaRun", "\\naryand"]], false, "Check literal", true) + Test("\\nbsp", [["ParaRun", "\\nbsp"]], false, "Check literal", true) + Test("\\ndiv", [["ParaRun", "\\ndiv"]], false, "Check literal", true) + Test("\\ne", [["ParaRun", "\\ne"]], false, "Check literal", true) + Test("\\nearrow", [["ParaRun", "\\nearrow"]], false, "Check literal", true) + Test("\\neg", [["ParaRun", "\\neg"]], false, "Check literal", true) + Test("\\neq", [["ParaRun", "\\neq"]], false, "Check literal", true) + Test("\\ni", [["ParaRun", "\\ni"]], false, "Check literal", true) + Test("\\norm", [["ParaRun", "\\norm"]], false, "Check literal", true) + Test("\\nu", [["ParaRun", "\\nu"]], false, "Check literal", true) + Test("\\nwarrow", [["ParaRun", "\\nwarrow"]], false, "Check literal", true) + Test("\\Omega", [["ParaRun", "\\Omega"]], false, "Check literal", true) + Test("\\odot", [["ParaRun", "\\odot"]], false, "Check literal", true) + Test("\\of", [["ParaRun", "\\of"]], false, "Check literal", true) + Test("\\oiiint", [["ParaRun", "\\oiiint"]], false, "Check literal", true) + Test("\\oiint", [["ParaRun", "\\oiint"]], false, "Check literal", true) + Test("\\oint", [["ParaRun", "\\oint"]], false, "Check literal", true) + Test("\\omega", [["ParaRun", "\\omega"]], false, "Check literal", true) + Test("\\ominus", [["ParaRun", "\\ominus"]], false, "Check literal", true) + Test("\\open", [["ParaRun", "\\open"]], false, "Check literal", true) + Test("\\oplus", [["ParaRun", "\\oplus"]], false, "Check literal", true) + Test("\\oslash", [["ParaRun", "\\oslash"]], false, "Check literal", true) + Test("\\otimes", [["ParaRun", "\\otimes"]], false, "Check literal", true) + Test("\\over", [["ParaRun", "\\over"]], false, "Check literal", true) + Test("\\overbar", [["ParaRun", "\\overbar"]], false, "Check literal", true) + Test("\\overbrace", [["ParaRun", "\\overbrace"]], false, "Check literal", true) + Test("\\overbracket", [["ParaRun", "\\overbracket"]], false, "Check literal", true) + Test("\\overparen", [["ParaRun", "\\overparen"]], false, "Check literal", true) + Test("\\overshell", [["ParaRun", "\\overshell"]], false, "Check literal", true) + Test("\\over", [["ParaRun", "\\over"]], false, "Check literal", true) + Test("\\Pi", [["ParaRun", "\\Pi"]], false, "Check literal", true) + Test("\\Phi", [["ParaRun", "\\Phi"]], false, "Check literal", true) + Test("\\Psi", [["ParaRun", "\\Psi"]], false, "Check literal", true) + Test("\\parallel", [["ParaRun", "\\parallel"]], false, "Check literal", true) + Test("\\partial", [["ParaRun", "\\partial"]], false, "Check literal", true) + Test("\\perp", [["ParaRun", "\\perp"]], false, "Check literal", true) + Test("\\phantom", [["ParaRun", "\\phantom"]], false, "Check literal", true) + Test("\\phi", [["ParaRun", "\\phi"]], false, "Check literal", true) + Test("\\pi", [["ParaRun", "\\pi"]], false, "Check literal", true) + Test("\\pm", [["ParaRun", "\\pm"]], false, "Check literal", true) + Test("\\pppprime", [["ParaRun", "\\pppprime"]], false, "Check literal", true) + Test("\\ppprime", [["ParaRun", "\\ppprime"]], false, "Check literal", true) + Test("\\pprime", [["ParaRun", "\\pprime"]], false, "Check literal", true) + Test("\\prcue", [["ParaRun", "\\prcue"]], false, "Check literal", true) + Test("\\prec", [["ParaRun", "\\prec"]], false, "Check literal", true) + Test("\\preceq", [["ParaRun", "\\preceq"]], false, "Check literal", true) + Test("\\preccurlyeq", [["ParaRun", "\\preccurlyeq"]], false, "Check literal", true) + Test("\\prime", [["ParaRun", "\\prime"]], false, "Check literal", true) + Test("\\propto", [["ParaRun", "\\propto"]], false, "Check literal", true) + Test("\\psi", [["ParaRun", "\\psi"]], false, "Check literal", true) + Test("\\qdrt", [["ParaRun", "\\qdrt"]], false, "Check literal", true) + Test("\\Re", [["ParaRun", "\\Re"]], false, "Check literal", true) + Test("\\Rightarrow", [["ParaRun", "\\Rightarrow"]], false, "Check literal", true) + Test("\\rangle", [["ParaRun", "\\rangle"]], false, "Check literal", true) + Test("\\ratio", [["ParaRun", "\\ratio"]], false, "Check literal", true) + Test("\\rbrace", [["ParaRun", "\\rbrace"]], false, "Check literal", true) + Test("\\rbrack", [["ParaRun", "\\rbrack"]], false, "Check literal", true) + Test("\\rceil", [["ParaRun", "\\rceil"]], false, "Check literal", true) + Test("\\rddots", [["ParaRun", "\\rddots"]], false, "Check literal", true) + Test("\\rect", [["ParaRun", "\\rect"]], false, "Check literal", true) + Test("\\rfloor", [["ParaRun", "\\rfloor"]], false, "Check literal", true) + Test("\\rho", [["ParaRun", "\\rho"]], false, "Check literal", true) + Test("\\right", [["ParaRun", "\\right"]], false, "Check literal", true) + Test("\\rightarrow", [["ParaRun", "\\rightarrow"]], false, "Check literal", true) + Test("\\rightharpoondown", [["ParaRun", "\\rightharpoondown"]], false, "Check literal", true) + Test("\\rightharpoonup", [["ParaRun", "\\rightharpoonup"]], false, "Check literal", true) + Test("\\rmoust", [["ParaRun", "\\rmoust"]], false, "Check literal", true) + Test("\\rrect", [["ParaRun", "\\rrect"]], false, "Check literal", true) + Test("\\root", [["ParaRun", "\\root"]], false, "Check literal", true) + Test("\\Sigma", [["ParaRun", "\\Sigma"]], false, "Check literal", true) + Test("\\sdiv", [["ParaRun", "\\sdiv"]], false, "Check literal", true) + Test("\\searrow", [["ParaRun", "\\searrow"]], false, "Check literal", true) + Test("\\setminus", [["ParaRun", "\\setminus"]], false, "Check literal", true) + Test("\\sigma", [["ParaRun", "\\sigma"]], false, "Check literal", true) + Test("\\sim", [["ParaRun", "\\sim"]], false, "Check literal", true) + Test("\\simeq", [["ParaRun", "\\simeq"]], false, "Check literal", true) + Test("\\smash", [["ParaRun", "\\smash"]], false, "Check literal", true) + Test("\\smile", [["ParaRun", "\\smile"]], false, "Check literal", true) + Test("\\spadesuit", [["ParaRun", "\\spadesuit"]], false, "Check literal", true) + Test("\\sqcap", [["ParaRun", "\\sqcap"]], false, "Check literal", true) + Test("\\sqcup", [["ParaRun", "\\sqcup"]], false, "Check literal", true) + Test("\\sqrt", [["ParaRun", "\\sqrt"]], false, "Check literal", true) + Test("\\sqsubseteq", [["ParaRun", "\\sqsubseteq"]], false, "Check literal", true) + Test("\\sqsuperseteq", [["ParaRun", "\\sqsuperseteq"]], false, "Check literal", true) + Test("\\star", [["ParaRun", "\\star"]], false, "Check literal", true) + Test("\\subset", [["ParaRun", "\\subset"]], false, "Check literal", true) + Test("\\subseteq", [["ParaRun", "\\subseteq"]], false, "Check literal", true) + Test("\\succeq", [["ParaRun", "\\succeq"]], false, "Check literal", true) + Test("\\succ", [["ParaRun", "\\succ"]], false, "Check literal", true) + Test("\\sum", [["ParaRun", "\\sum"]], false, "Check literal", true) + Test("\\superset", [["ParaRun", "\\superset"]], false, "Check literal", true) + Test("\\superseteq", [["ParaRun", "\\superseteq"]], false, "Check literal", true) + Test("\\swarrow", [["ParaRun", "\\swarrow"]], false, "Check literal", true) + }) + + QUnit.module( "Degree", function () + { + QUnit.module( "convert"); + Test("2^2 + 2", [["ParaRun", ""], ["CDegree", "2^2"], ["ParaRun", "+ 2"]], false, "Check scripts", true) + Test("x^2+2", [["ParaRun", ""], ["CDegree", "x^2"], ["ParaRun", "+2"]], false, "Check scripts", true) + Test("x^(256+34)*y", [["ParaRun", ""], ["CDegree", "x^(256+34)"], ["ParaRun", "*y"]], false, "Check scripts", true) + Test("(x+34)^(256+34)-y/x",[["ParaRun", ""], ["CDegree", "(x+34)^(256+34)"], ["ParaRun", "-"], ["CFraction", "y/x"]], false, "Check scripts", true) + + Test("2_1", [["ParaRun", "2_1"]], false); + Test("2_1 ", [["ParaRun", ""], ["CDegree", "2_1"], ["ParaRun", ""]], false); + Test("\\int", [["ParaRun", "\\int"]], false); + Test("\\int _x^y\\of 1/2 ", [["ParaRun", "∫_x^y▒"], ["CFraction", "1/2"], ["ParaRun", ""]], false); + Test("1/2 ", [["ParaRun", ""], ["CFraction", "1/2"], ["ParaRun", ""]], false); + Test("1/2 +", [["ParaRun", ""], ["CFraction", "1/2"], ["ParaRun", "+"]], false); + Test("1/2=", [["ParaRun", ""], ["CFraction", "1/2"], ["ParaRun", "="]], false); + Test("1/2+1/2=x/y ", [["ParaRun", ""], ["CFraction", "1/2"], ["ParaRun", "+"], ["CFraction", "1/2"], ["ParaRun", "="], ["CFraction", "x/y"], ["ParaRun", ""]], false); + + Test("x_y ", [["ParaRun", ""], ["CDegree", "x_y"], ["ParaRun", ""]], false, "Check degree"); + Test("x_ ", [["ParaRun", ""], ["CDegree", "x_"], ["ParaRun", ""]], false, "Check degree"); + Test("_ ", [["ParaRun", ""], ["CDegree", "_"]], false, "Check degree"); + Test("x_1 ", [["ParaRun", ""], ["CDegree", "x_1"], ["ParaRun", ""]], false, "Check degree"); + Test("1_x ", [["ParaRun", ""], ["CDegree", "1_x"], ["ParaRun", ""]], false, "Check degree"); + Test("x_(1+2) ", [["ParaRun", ""], ["CDegree", "x_(1+2)"], ["ParaRun", ""]], false, "Check degree"); + Test("x_[1+2] ", [["ParaRun", ""], ["CDegree", "x_[1+2]"], ["ParaRun", ""]], false, "Check degree"); + Test("x_[1+2} ", [["ParaRun", ""], ["CDegree", "x_[1+2}"], ["ParaRun", ""]], false, "Check degree"); + Test("x_1/2", [["ParaRun", ""], ["CDegree", "x_1"], ["ParaRun", "/2"]], false, "Check degree"); + Test("x_1/2 ", [["ParaRun", ""], ["CFraction", "(x_1)/2"], ["ParaRun", ""]], false, "Check degree"); + + QUnit.module( "autocorrect"); + Test("^ ", [["ParaRun", ""], ["CDegree", "^"]], false, "Check index"); + Test("x^y ", [["ParaRun", ""], ["CDegree", "x^y"], ["ParaRun", ""]], false, "Check index"); + Test("x^1 ", [["ParaRun", ""], ["CDegree", "x^1"], ["ParaRun", ""]], false, "Check index"); + Test("1^x ", [["ParaRun", ""], ["CDegree", "1^x"], ["ParaRun", ""]], false, "Check index"); + Test("x^(1+2) ", [["ParaRun", ""], ["CDegree", "x^(1+2)"], ["ParaRun", ""]], false, "Check index"); + Test("x^[1+2] ", [["ParaRun", ""], ["CDegree", "x^[1+2]"], ["ParaRun", ""]], false, "Check index"); + Test("x^[1+2} ", [["ParaRun", ""], ["CDegree", "x^[1+2}"], ["ParaRun", ""]], false, "Check index"); + Test("x^1/2", [["ParaRun", ""], ["CDegree", "x^1"], ["ParaRun", "/2"]], false, "Check index"); + Test("x^1/2 ", [["ParaRun", ""], ["CFraction", "(x^1)/2"], ["ParaRun", ""]], false, "Check index"); + + Test("x^y_1 ", [["ParaRun", ""], ["CDegreeSubSup", "x_1^y"], ["ParaRun", ""]], false, "Check index degree"); + Test("x^1_i ", [["ParaRun", ""], ["CDegreeSubSup", "x_i^1"], ["ParaRun", ""]], false, "Check index degree"); + Test("1^x_y ", [["ParaRun", ""], ["CDegreeSubSup", "1_y^x"], ["ParaRun", ""]], false, "Check index degree"); + Test("x^[1+2]_[g_i] ", [["ParaRun", ""], ["CDegreeSubSup", "x_[g_i]^[1+2]"], ["ParaRun", ""]], false, "Check index degree"); + Test("x^[1+2}_[6+1} ", [["ParaRun", ""], ["CDegreeSubSup", "x_[6+1}^[1+2}"], ["ParaRun", ""]], false, "Check index degree"); + //Test("x^1/2_1/2 ", [["ParaRun", ""], ["CFraction", "x^1/(2_1/2)"], ["ParaRun", ""]], false, "Check index degree"); + Test("𝑊^3𝛽_𝛿1𝜌1𝜎2 ", [["ParaRun", ""], ["CDegreeSubSup", "𝑊_𝛿1𝜌1𝜎2^3𝛽"], ["ParaRun", ""]], false, "Check index degree with Unicode symbols"); + + QUnit.module( "pre-script"); + Test("(_1^f)f ", [["ParaRun", ""], ["CDegreeSubSup", "(_1^f)f"], ["ParaRun", ""]], false, "Check prescript index degree"); + Test("_1^f x ", [["ParaRun", ""], ["CDegreeSubSup", "(_1^f)x"], ["ParaRun", ""]], false, "Check prescript index degree"); + Test("(_(1/2)^y)f ", [["ParaRun", ""], ["CDegreeSubSup", "(_(1/2)^y)f"], ["ParaRun", ""]], false, "Check prescript index degree"); + Test("(_(1/2)^[x_i])x ", [["ParaRun", ""], ["CDegreeSubSup", "(_(1/2)^[x_i])x"], ["ParaRun", ""]], false, "Check prescript index degree"); + }) + + QUnit.module( "Radicals", function () + { + QUnit.module( " convert radicals"); + Test("√5", [["ParaRun", ""], ["CRadical", "√5"],["ParaRun", ""]], false, "Check special", true) + Test("√a", [["ParaRun", ""], ["CRadical", "√a"],["ParaRun", ""]], false, "Check special", true) + Test("√a/2", [["ParaRun", ""], ["CFraction", "√a/2"],["ParaRun", ""]], false, "Check special", true) + Test("√(2&a-4)", [["ParaRun", ""], ["CRadical", "√(2&a-4)"],["ParaRun", ""]], false, "Check special", true) + Test("∛5", [["ParaRun", ""], ["CRadical", "∛5"],["ParaRun", ""]], false, "Check special", true) + Test("∛a", [["ParaRun", ""], ["CRadical", "∛a"],["ParaRun", ""]], false, "Check special", true) + Test("∛a/2", [["ParaRun", ""], ["CFraction", "∛a/2"],["ParaRun", ""]], false, "Check special", true) + Test("∛(a-4)", [["ParaRun", ""], ["CRadical", "∛(a-4)"],["ParaRun", ""]], false, "Check special", true) + Test("∜5", [["ParaRun", ""], ["CRadical", "∜5"],["ParaRun", ""]], false, "Check special", true) + Test("∜a", [["ParaRun", ""], ["CRadical", "∜a"],["ParaRun", ""]], false, "Check special", true) + Test("∜a/2", [["ParaRun", ""], ["CFraction", "∜a/2"],["ParaRun", ""]], false, "Check special", true) + Test("∜(a-4)", [["ParaRun", ""], ["CRadical", "∜(a-4)"],["ParaRun", ""]], false, "Check special", true) + Test("√(10&a/4)", [["ParaRun", ""], ["CRadical", "√(10&a/4)"],["ParaRun", ""]], false, "Check special", true) + Test("√(10^2&a/4+2)", [["ParaRun", ""], ["CRadical", "√(10^2&a/4+2)"],["ParaRun", ""]], false, "Check special", true) + Test("√5^2", [["ParaRun", ""], ["CRadical", "√(5^2)"],["ParaRun", ""]], false, "Check special", true) + Test("√5_2", [["ParaRun", ""], ["CRadical", "√(5_2)"],["ParaRun", ""]], false, "Check special", true) + Test("√5^2_x", [["ParaRun", ""], ["CRadical", "√(5_x^2)"],["ParaRun", ""]], false, "Check special", true) + Test("√5_2^x", [["ParaRun", ""], ["CRadical", "√(5_2^x)"],["ParaRun", ""]], false, "Check special", true) + Test("(_5^2)√5", [["ParaRun", ""], ["CDegreeSubSup", "(_5^2)√5"],["ParaRun", ""]], false, "Check special", true) + Test("√5┴exp1", [["ParaRun", ""], ["CRadical", "√(5┴exp1)"],["ParaRun", ""]], false, "Check special", true) + Test("√5┬exp1", [["ParaRun", ""], ["CRadical", "√(5┬exp1)"],["ParaRun", ""]], false, "Check special", true) + Test("(√5┬exp1]", [["ParaRun", ""], ["CDelimiter", "(√(5┬exp1)]"],["ParaRun", ""]], false, "Check special", true) + //Test("□√5", [["ParaRun", ""], ["CBox", "□(√5)"],["ParaRun", ""]], false, "Check special", true) + //Test("▭√5", [["ParaRun", ""], ["CRect", "▭(√5)"],["ParaRun", ""]], false, "Check special", true) + //Test("▁√5", [["ParaRun", ""], ["CBar", "▁(√5)"],["ParaRun", ""]], false, "Check special", true) + //Test(`¯√5`, [["ParaRun", ""], ["CBar", "¯(√5)"],["ParaRun", ""]], false, "Check special", true) + Test("∑_√5^√5", [["ParaRun", ""], ["CNary", "∑_√(5^√5)"],["ParaRun", ""]], false, "Check special", true) + + Test("\\sqrt ", [["ParaRun", "√"]], false, "Check"); + Test("\\sqrt (2&1+2) ", [["ParaRun", ""], ["CRadical", "√(2&1+2)"], ["ParaRun", ""]], false, "Check radical"); + Test("\\sqrt (1+2) ", [["ParaRun", ""], ["CRadical", "√(1+2)"], ["ParaRun", ""]], false, "Check radical"); + Test("√1 ", [["ParaRun", ""], ["CRadical", "√1"], ["ParaRun", ""]], false, "Check radical"); + + Test("\\cbrt ", [["ParaRun", "∛"]], false, "Check"); + Test("\\cbrt (1+2) ", [["ParaRun", ""], ["CRadical", "∛(1+2)"], ["ParaRun", ""]], false, "Check radical"); + Test("\\cbrt 1/2 ", [["ParaRun", ""], ["CFraction", "∛1/2"], ["ParaRun", ""]], false, "Check radical"); + Test("∛1 ", [["ParaRun", ""], ["CRadical", "∛1"], ["ParaRun", ""]], false, "Check radical"); + Test("∛(1) ", [["ParaRun", ""], ["CRadical", "∛1"], ["ParaRun", ""]], false, "Check radical"); + + Test("\\qdrt ", [["ParaRun", "∜"]], false, "Check"); + Test("\\qdrt (1+2) ", [["ParaRun", ""], ["CRadical", "∜(1+2)"], ["ParaRun", ""]], false, "Check radical"); + Test("\\qdrt 1/2 ", [["ParaRun", ""], ["CFraction", "∜1/2"], ["ParaRun", ""]], false, "Check radical"); + Test("∜1 ", [["ParaRun", ""], ["CRadical", "∜1"], ["ParaRun", ""]], false, "Check radical"); + Test("∜(1) ", [["ParaRun", ""], ["CRadical", "∜1"], ["ParaRun", ""]], false, "Check radical"); + }) + + QUnit.module( "Other", function () + { + QUnit.module( " convert operators"); + Test("×", [["ParaRun", "×"]], false, "Check literal", true) + Test("⋅", [["ParaRun", "⋅"]], false, "Check literal") + Test("∈", [["ParaRun", "∈"]], false, "Check literal") + Test("∋", [["ParaRun", "∋"]], false, "Check literal") + Test("∼", [["ParaRun", "∼"]], false, "Check literal") + Test("≃", [["ParaRun", "≃"]], false, "Check literal") + Test("≅", [["ParaRun", "≅"]], false, "Check literal") + Test("≈", [["ParaRun", "≈"]], false, "Check literal") + Test("≍", [["ParaRun", "≍"]], false, "Check literal") + Test("≡", [["ParaRun", "≡"]], false, "Check literal") + Test("≤", [["ParaRun", "≤"]], false, "Check literal") + Test("≥", [["ParaRun", "≥"]], false, "Check literal") + Test("≶", [["ParaRun", "≶"]], false, "Check literal") + Test("≷", [["ParaRun", "≷"]], false, "Check literal") + Test("≽", [["ParaRun", "≽"]], false, "Check literal") + Test("≺", [["ParaRun", "≺"]], false, "Check literal") + Test("≻", [["ParaRun", "≻"]], false, "Check literal") + Test("≼", [["ParaRun", "≼"]], false, "Check literal") + Test("⊂", [["ParaRun", "⊂"]], false, "Check literal") + Test("⊃", [["ParaRun", "⊃"]], false, "Check literal") + Test("⊆", [["ParaRun", "⊆"]], false, "Check literal") + Test("⊇", [["ParaRun", "⊇"]], false, "Check literal") + Test("⊑", [["ParaRun", "⊑"]], false, "Check literal") + Test("⊒", [["ParaRun", "⊒"]], false, "Check literal") + Test("+", [["ParaRun", "+"]], false, "Check literal") + Test("-", [["ParaRun", "-"]], false, "Check literal") + Test("=", [["ParaRun", "="]], false, "Check literal") + Test("*", [["ParaRun", "*"]], false, "Check literal") + Test("∃", [["ParaRun", "∃"]], false, "Check literal") + Test("∀", [["ParaRun", "∀"]], false, "Check literal") + Test("¬", [["ParaRun", "¬"]], false, "Check literal") + Test("∧", [["ParaRun", "∧"]], false, "Check literal") + Test("∨", [["ParaRun", "∨"]], false, "Check literal") + Test("⇒", [["ParaRun", "⇒"]], false, "Check literal") + Test("⇔", [["ParaRun", "⇔"]], false, "Check literal") + Test("⊕", [["ParaRun", "⊕"]], false, "Check literal") + Test("⊤", [["ParaRun", "⊤"]], false, "Check literal") + Test("⊥", [["ParaRun", "⊥"]], false, "Check literal") + Test("⊢", [["ParaRun", "⊢"]], false, "Check literal") + Test("⨯", [["ParaRun", "⨯"]], false, "Check literal") + Test("⟕", [["ParaRun", "⟕"]], false, "Check literal") + Test("⟖", [["ParaRun", "⟖"]], false, "Check literal") + Test("⟗", [["ParaRun", "⟗"]], false, "Check literal") + Test("⋉", [["ParaRun", "⋉"]], false, "Check literal") + Test("⋊", [["ParaRun", "⋊"]], false, "Check literal") + Test("▷", [["ParaRun", "▷"]], false, "Check literal") + Test("÷", [["ParaRun", "÷"]], false, "Check literal") + Test("⁡", [["ParaRun", "⁡"]], false, "Check literal") + Test("⁢", [["ParaRun", "⁢"]], false, "Check literal") + Test("⁣", [["ParaRun", "⁣"]], false, "Check literal") + Test("⁤", [["ParaRun", "⁤"]], false, "Check literal") + Test("​", [["ParaRun", "​"]], false, "Check literal") + Test(" ", [["ParaRun", " "]], false, "Check literal") + Test("  ", [["ParaRun", "  "]], false, "Check literal") + Test(" ", [["ParaRun", " "]], false, "Check literal") + Test(" ", [["ParaRun", " "]], false, "Check literal") + Test(" ", [["ParaRun", " "]], false, "Check literal") + Test("  ", [["ParaRun", "  "]], false, "Check literal") + Test(" ", [["ParaRun", " "]], false, "Check literal") + Test(" ", [["ParaRun", " "]], false, "Check literal") + Test(" ", [["ParaRun", " "]], false, "Check literal") + Test(" ", [["ParaRun", " "]], false, "Check literal") + Test(`a`, [["ParaRun", "a"]], false, "Check literal") + Test(`abcdef`, [["ParaRun", "abcdef"]], false, "Check literal") + Test(`1`, [["ParaRun", "1"]], false, "Check literal") + Test(`1234`, [["ParaRun", "1234"]], false, "Check literal") + Test(`1+2`, [["ParaRun", "1+2"]], false, "Check literal") + Test(`1+2+3`, [["ParaRun", "1+2+3"]], false, "Check literal") + Test(`ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσΤτΥυΦφΧχΨψΩω`, [["ParaRun", "ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσΤτΥυΦφΧχΨψΩω"]], false, "Check literal") + Test("abc123def", [["ParaRun", "abc123def"]], false, "Check literal") + Test("abc+123+def", [["ParaRun", "abc+123+def"]], false, "Check literal") + Test("𝐀𝐁𝐂𝐨𝐹", [["ParaRun", "𝐀𝐁𝐂𝐨𝐹"]], false, "Check literal") + Test(" 𝐀𝐁𝐂𝐨𝐹 ", [["ParaRun", " 𝐀𝐁𝐂𝐨𝐹 "]], false, "Check literal") + Test(" 𝐀𝐁𝐂𝐨𝐹 ", [["ParaRun", " 𝐀𝐁𝐂𝐨𝐹 "]], false, "Check literal") + Test(`1+fbnd+(3+𝐀𝐁𝐂𝐨𝐹)+c+5`, [["ParaRun", "1+fbnd+"], ["CDelimiter", "(3+𝐀𝐁𝐂𝐨𝐹)"], ["ParaRun", "+c+5"]], false, "Check literal") + Test(`1/3.1416 `, [["ParaRun", ""], ["CFraction", "1/3.1416"],["ParaRun", ""]], false, "Check literal") + Test("1\\above 2 ", [["ParaRun", ""], ["CLimit", "1┴2"]], false, "Check literal") + Test("1\\acute 2 ", [["ParaRun", ""], ["CAccent", "1́"], ["ParaRun", "2"]], false, "Check literal") + + //QUnit.module( " convert operators"); + // Test("2⁰¹²³⁴⁵⁶⁷⁸⁹", 1, [], false, "Check special") + // Test("2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹", 1, [], false, "Check special") + // Test("2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45", 1, [], false, "Check special") + // Test("x⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45", 1, [], false, "Check special") + // Test("2₂₃₄₊₍₆₇₋₀₌₆₇₎56", 1, [], false, "Check special") + // Test("z₂₃₄₊₍₆₇₋₀₌₆₇₎56", 1, [], false, "Check special") + // Test("2⁰¹²³⁴⁵⁶⁷⁸⁹₂₃₄₊₍₆₇₋₀₌₆₇₎", 1, [], false, "Check special") + // Test("2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎", 1, [], false, "Check special") + // Test("2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎+45", 1, [], false, "Check special") + // Test("x⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎+45", 1, [], false, "Check special") + // Test("2₂₃₄₊₍₆₇₋₀₌₆₇₎⁰¹²³⁴⁵⁶⁷⁸⁹", 1, [], false, "Check special") + // Test("2₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹", 1, [], false, "Check special") + // Test("2₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45", 1, [], false, "Check special") + // Test("x₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45", 1, [], false, "Check special") + }) + + QUnit.module( "Nary", function () + { + Test("\\int ", [["ParaRun", "∫"]], false, "Check large operators"); + Test("\\int ", [["ParaRun", ""], ["CNary", "∫"], ["ParaRun", ""]], false, "Check large operators"); + Test("\\int _x ", [["ParaRun", ""], ["CNary", "∫_x"], ["ParaRun", ""]], false, "Check large operators"); + Test("\\int ^x ", [["ParaRun", ""], ["CNary", "∫^x"], ["ParaRun", ""]], false, "Check large operators"); + Test("\\int ^(x+1) ", [["ParaRun", ""], ["CNary", "∫^(x+1)"], ["ParaRun", ""]], false, "Check large operators"); + Test("\\int ^(x+1) ", [["ParaRun", ""], ["CNary", "∫^(x+1)"], ["ParaRun", ""]],false, "Check large operators"); + Test("\\int ^(x+1)_(1_i) ", [["ParaRun", ""], ["CNary", "∫_(1_i)^(x+1)"], ["ParaRun", ""]], false, "Check large operators"); + + Test("\\int \\of x ", [["ParaRun", ""], ["CNary", "∫▒x"], ["ParaRun", ""]], false, "Check large operators"); + Test("\\int _x\\of 1/2 ", [["ParaRun", ""], ["CNary", "∫_x▒〖1/2〗"], ["ParaRun", ""]], false, "Check large operators"); + Test("\\int ^x\\of 1/2 ", [["ParaRun", ""], ["CNary", "∫^x▒〖1/2〗"], ["ParaRun", ""]], false, "Check large operators"); + Test("\\int _(x+1)\\of 1/2 ", [["ParaRun", ""], ["CNary", "∫_(x+1)▒〖1/2〗"], ["ParaRun", ""]], false, "Check large operators"); + Test("\\prod ^(x+1)\\of 1/2 ", [["ParaRun", ""], ["CNary", "∏^(x+1)▒〖1/2〗"], ["ParaRun", ""]],false, "Check large operators"); + Test("∫^(x+1)_(1_i)\\of 1/2 ", [["ParaRun", ""], ["CNary", "∫_(1_i)^(x+1)▒〖1/2〗"], ["ParaRun", ""]], false, "Check large operators"); + }) + + QUnit.module( "Functions", function () + { + Test("sin ", [["ParaRun", ""], ["CMathFunc", "sin⁡"]], false, "Check functions"); + Test("cos ", [["ParaRun", ""], ["CMathFunc", "cos⁡"]], false, "Check functions"); + Test("tan ", [["ParaRun", ""], ["CMathFunc", "tan⁡"]], false, "Check functions"); + Test("csc ", [["ParaRun", ""], ["CMathFunc", "csc⁡"]], false, "Check functions"); + Test("sec ", [["ParaRun", ""], ["CMathFunc", "sec⁡"]], false, "Check functions"); + Test("cot ", [["ParaRun", ""], ["CMathFunc", "cot⁡"]], false, "Check functions"); + + Test("sin", [["ParaRun", "sin"]], false, "Check functions"); + Test("cos", [["ParaRun", "cos"]], false, "Check functions"); + Test("tan", [["ParaRun", "tan"]], false, "Check functions"); + Test("csc", [["ParaRun", "csc"]], false, "Check functions"); + Test("sec", [["ParaRun", "sec"]], false, "Check functions"); + Test("cot", [["ParaRun", "cot"]], false, "Check functions"); + + Test("sin a", [["ParaRun", ""], ["CMathFunc", "sin⁡a"], ["ParaRun", ""]], false, "Check functions"); + Test("cos a", [["ParaRun", ""], ["CMathFunc", "cos⁡a"], ["ParaRun", ""]], false, "Check functions"); + Test("tan a", [["ParaRun", ""], ["CMathFunc", "tan⁡a"], ["ParaRun", ""]], false, "Check functions"); + Test("csc a", [["ParaRun", ""], ["CMathFunc", "csc⁡a"], ["ParaRun", ""]], false, "Check functions"); + Test("sec a", [["ParaRun", ""], ["CMathFunc", "sec⁡a"], ["ParaRun", ""]], false, "Check functions"); + Test("cot a", [["ParaRun", ""], ["CMathFunc", "cot⁡a"], ["ParaRun", ""]], false, "Check functions"); + + Test("sin⁡(1+2_i)", [["ParaRun", ""], ["CMathFunc", "sin⁡(1+2_i)"], ["ParaRun", ""]], false, "Check functions", true); + Test("cos⁡(1+2_i)", [["ParaRun", ""], ["CMathFunc", "cos⁡(1+2_i)"], ["ParaRun", ""]], false, "Check functions", true); + Test("tan⁡(1+2_i)", [["ParaRun", ""], ["CMathFunc", "tan⁡(1+2_i)"], ["ParaRun", ""]], false, "Check functions", true); + Test("csc⁡(1+2_i)", [["ParaRun", ""], ["CMathFunc", "csc⁡(1+2_i)"], ["ParaRun", ""]], false, "Check functions", true); + Test("sec⁡(1+2_i)", [["ParaRun", ""], ["CMathFunc", "sec⁡(1+2_i)"], ["ParaRun", ""]], false, "Check functions", true); + Test("cot⁡(1+2_i)", [["ParaRun", ""], ["CMathFunc", "cot⁡(1+2_i)"], ["ParaRun", ""]], false, "Check functions", true); + + // Test("lim_a ", [["ParaRun", ""], ["CMathFunc", "lim_a⁡"], ["ParaRun", ""]], false, "In one session we must save what type of token used for limit _ or ┬"); + // Test("lim┬a ", [["ParaRun", ""], ["CMathFunc", "lim┬a⁡"], ["ParaRun", ""]], false, "In one session we must save what type of token used for limit _ or ┬"); + + Test("log ", [["ParaRun", ""], ["CMathFunc", "log⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("log⁡a ", [["ParaRun", ""], ["CMathFunc", "log⁡a"], ["ParaRun", ""]], false, "Check functions"); + Test("log⁡(a+2) ", [["ParaRun", ""], ["CMathFunc", "log⁡(a+2)"], ["ParaRun", ""]], false, "Check functions"); + + Test("lim ", [["ParaRun", ""], ["CMathFunc", "lim⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("lim_a ", [["ParaRun", ""], ["CMathFunc", "lim┬a⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("lim^a ", [["ParaRun", ""], ["CMathFunc", "lim┴a⁡"], ["ParaRun", ""]], false, "Check functions"); + + Test("min ", [["ParaRun", ""], ["CMathFunc", "min⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("min_a ", [["ParaRun", ""], ["CMathFunc", "min┬a⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("min^a ", [["ParaRun", ""], ["CMathFunc", "min┴a⁡"], ["ParaRun", ""]], false, "Check functions"); + + Test("max ", [["ParaRun", ""], ["CMathFunc", "max⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("max_a ", [["ParaRun", ""], ["CMathFunc", "max┬a⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("max^a ", [["ParaRun", ""], ["CMathFunc", "max┴a⁡"], ["ParaRun", ""]], false, "Check functions"); + + Test("ln ", [["ParaRun", ""], ["CMathFunc", "ln⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("ln_a ", [["ParaRun", ""], ["CMathFunc", "ln┬a⁡"], ["ParaRun", ""]], false, "Check functions"); + Test("ln^a ", [["ParaRun", ""], ["CMathFunc", "ln┴a⁡"], ["ParaRun", ""]], false, "Check functions"); + }) + + QUnit.module( "Matrix", function () + { + Test("■ ", [["ParaRun", "■ "]], false, "Check matrix"); + Test("■(1&2@3&4) ", [["ParaRun", ""], ["CMathMatrix", "■(1&2@3&4)"], ["ParaRun", ""]], false, "Check matrix"); + Test("■(1&2) ", [["ParaRun", ""], ["CMathMatrix", "■(1&2)"], ["ParaRun", ""]], false, "Check matrix"); + Test("■(&2&3@4&5) ", [["ParaRun", ""], ["CMathMatrix", "■(&2&3@4&5&)"], ["ParaRun", ""]], false, "Check matrix"); + }) + + QUnit.module( "Accents", function () + { + Test("e\\tilde ", [["ParaRun", ""], ["CAccent", "ẽ"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\hat ", [["ParaRun", ""], ["CAccent", "ê"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\breve ", [["ParaRun", ""], ["CAccent", "ĕ"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\dot ", [["ParaRun", ""], ["CAccent", "ė"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\ddot ", [["ParaRun", ""], ["CAccent", "ë"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\dddot ", [["ParaRun", ""], ["CAccent", "e⃛"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\prime ", [["ParaRun", ""], ["CDegree", "e^′"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\pprime ", [["ParaRun", ""], ["CDegree", "e^″"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\check ", [["ParaRun", ""], ["CAccent", "ě"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\acute ", [["ParaRun", ""], ["CAccent", "é"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\grave ", [["ParaRun", ""], ["CAccent", "è"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\bar ", [["ParaRun", ""], ["CAccent", "e̅"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\Bar ", [["ParaRun", ""], ["CAccent", "e̿"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\ubar ", [["ParaRun", ""], ["CAccent", "e̲"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\Ubar ", [["ParaRun", ""], ["CAccent", "e̳"], ["ParaRun", ""]], false, "Check diacritics"); + Test("e\\vec ", [["ParaRun", ""], ["CAccent", "e⃗"], ["ParaRun", ""]], false, "Check diacritics"); + }) + + QUnit.test('Binomial auto-correction', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('\\binomial '); + assert.ok(true, "Add text '\\binomial'"); + + let strBinomial = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strBinomial, '(a+b)^n=∑_(k=0)^n ▒(n¦k)a^k b^(n-k)', 'Check text of binomial'); + + AddText(' '); + assert.ok(true, "Add space and trigger auto-correction"); + + let r = MathContent.Root; + let arr = ['ParaRun', 'CDelimiter', 'ParaRun', 'CDegree', 'ParaRun', 'CDegree', 'ParaRun']; + + for (let i = 0; i < r.Content.length; i++) + { + assert.strictEqual(r.Content[i].constructor.name, arr[i], r.Content[i].constructor.name + "is " + arr[i]); + } + + AddText(' '); + assert.ok(true, "Add space and trigger auto-correction second time"); + + let nary = r.Content[1]; + assert.strictEqual(nary.constructor.name, 'CNary', 'Result is one Nary'); + + MathContent.ConvertView(true, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to linear view"); + let str = MathContent.Root.GetTextOfElement().GetText(); + assert.strictEqual(str, '(a+b)^n=∑_(k=0)^n▒〖(n¦k) a^k b^(n-k)〗', 'Check linear form is "(a+b)^n=∑_(k=0)^n▒〖(n¦k) a^k b^(n-k)〗"'); + }) + + QUnit.module( "Bugs", function () + { + QUnit.test('Check correct word while input rBrackets', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('(1->\\infty)'); + assert.ok(true, "Add text '(1->\\infty)'"); + + MathContent.ConvertView(true, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to linear view"); + + let strBinomial = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strBinomial, '(1→∞)', 'Check \\infty'); + }) + + QUnit.test('Check absolute brackets inside normal brackets', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('(x|y|z)'); + assert.ok(true, "Add text '(x|y|z)'"); + + MathContent.ConvertView(false, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to professional view"); + + let oWrapDelimiter = MathContent.Root.Content[1]; + let oDelContent = oWrapDelimiter.Content[0]; + let oFirstParaRun = oDelContent.Content[0]; + let oInnerDel = oDelContent.Content[1]; + let oSecondParaRun = oDelContent.Content[2]; + + assert.strictEqual(oFirstParaRun.GetTextOfElement(0).GetText(), 'x', 'Check first text is x'); + assert.strictEqual(oInnerDel.GetTextOfElement(0).GetText(), '|y|', 'Check del is |y|'); + assert.strictEqual(oSecondParaRun.GetTextOfElement(0).GetText(), 'z', 'Check second text is z'); + + let strBinomial = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strBinomial, '(x|y|z)', 'Check'); + }) + + QUnit.test('Check Dirac notion', function (assert) + { + // in future find better algorithm + // + // "...Another case where we treat | as a close delimiter is if it is followed by a space + // (U+0020). This handles the important case of the bra vector ⟨ | in Dirac notation..." + // + // now we don't need to add spaces to handle these brackets correctly + + Clear(); + logicDocument.SetMathInputType(0); + + AscMath.SetAutoConvertation(false); + AddText('p=∑_ψ▒〖P_ψ |ψ⟩ ⟨ψ|〗'); + assert.ok(true, "Add text 'p=∑_ψ▒〖P_ψ |ψ⟩ ⟨ψ|〗'"); + + MathContent.ConvertView(false, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to professional view"); + + let strBinomial = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strBinomial, 'p=∑_ψ▒〖P_ψ |ψ⟩ ⟨ψ|〗', 'Check'); + + MathContent.ConvertView(true, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to professional view"); + + strBinomial = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strBinomial, 'p=∑_ψ▒〖P_ψ |ψ⟩ ⟨ψ|〗', 'Check'); + + AscMath.SetAutoConvertation(true); + }) + + QUnit.test('Check eqarray', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('{█(a, n odd@|a|, n even)┤'); + assert.ok(true, "Add text '{█(a, n odd@|a|, n even)┤'"); + + MathContent.ConvertView(false, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to linear view"); + + let strBinomial = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strBinomial, '{█(a, n odd@|a|, n even)┤', 'Check'); + }) + + QUnit.test('Check eqarray frac', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('█(1@█(@█(@█(@))))/2'); + assert.ok(true, "Add text '█(1@█(@█(@█(@))))/2'"); + + MathContent.ConvertView(false, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to linear view"); + + let strBinomial = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strBinomial, '█(1@█(@█(@█(@))))/2', 'Check'); + }) + + QUnit.test('Check review info convert math; bug #67505', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('(1+2)'); + assert.ok(true, "Add text '(1+2)'"); + + let r = MathContent.Root.Content[0]; // (1 + let r2 = r.Split2(2, MathContent.Root, 0); // + + let r3 = r2.Split2(1, MathContent.Root, 1); // 2) + + let reviewInfo = r2.ReviewInfo; + + reviewInfo.UserId = "this.UserId"; + reviewInfo.UserName = "this.UserName"; + reviewInfo.DateTime = new Date().toDateString(); + r2.SetReviewType(reviewtype_Add); + + assert.ok(true, "Split run and set ReviewType for '+' === reviewtype_Add"); + + MathContent.ConvertView(false, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to professional view"); + + let rOne = MathContent.Root.Content[1].Content[0].Content[0]; + assert.strictEqual(rOne.ReviewType, 0, 'Is "1" is reviewtype_Common'); + + let rPlus = MathContent.Root.Content[1].Content[0].Content[1]; + assert.strictEqual(rPlus.ReviewType, 2, 'Is "+" is reviewtype_Add'); + assert.strictEqual(rPlus.ReviewInfo, reviewInfo, 'reviewInfo'); + + MathContent.ConvertView(true, Asc.c_oAscMathInputType.Unicode); + assert.ok(true, "Convert to linear view"); + + let nRPlus = MathContent.Root.Content[1]; + assert.strictEqual(nRPlus.ReviewType, 2, 'Is "+" is reviewtype_Add'); + assert.strictEqual(nRPlus.ReviewInfo, reviewInfo, 'Check reviewInfo'); + }) + + QUnit.test('Bug 64357', function (assert) + { + Clear(); + + logicDocument.SetMathInputType(0); + let matrix = MathContent.Root.Add_Matrix(new CTextPr(), 1, 2, false, []); + let oContent = matrix.getContentElement(0, 0); + assert.ok(true, "Add matrix for example"); + + let r = new ParaRun(matrix.Paragraph, true); + r.AddMathPlaceholder(); + oContent.Add_Element(r); + oContent.Select_Element(r); + matrix.Paragraph.Select_Math(MathContent); + assert.ok(true, "Select content inside matrix content"); + + logicDocument.TurnOff_Recalculate(); + logicDocument.ConvertMathView(true); + logicDocument.TurnOn_Recalculate(); + + assert.ok(true, "Convert to linear view"); + + let isNotMatrix = !(MathContent.Root.Content[1] instanceof CMathMatrix); + assert.strictEqual(isNotMatrix, true, 'We must get not Matrix'); + }) + + QUnit.test('Save manual break', function (assert) + { + Clear(); + assert.ok(true, "Set Unicode mode"); + + logicDocument.SetMathInputType(0); + AddText("1/2+x_2 "); + assert.ok(true, "Add '1/2+x_2' and convert it"); + + AscTest.MoveCursorLeft(false, false, 6); + assert.ok(true, "Move cursor to start of '+'"); + + let oBase = new CMathMenuBase(); + oBase.insert_ManualBreak(); + logicDocument.Set_MathProps(oBase); + assert.ok(true, "Add manual break"); + + assert.strictEqual(MathContent.Root.Content[2].MathPrp.brk !== undefined, true, 'Check brk in "+" ParaRun'); + + logicDocument.ConvertMathView(true); + assert.ok(true, "Convert to linear view"); + + assert.strictEqual(MathContent.Root.Content[1].MathPrp.brk !== undefined, true, 'Check brk in "+" ParaRun'); + + logicDocument.ConvertMathView(false); + assert.ok(true, "Convert to professional view"); + assert.strictEqual(MathContent.Root.Content[2].MathPrp.brk !== undefined, true, 'Check brk in "+" ParaRun'); + }) + + QUnit.test('Check complex content in math func', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + + AddText('cos \\theta '); + + assert.ok(true, "Convert to linear view"); + + let strFunc = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strFunc, 'cos⁡〖 θ〗', 'Check complex math func content'); + }) + }) + }) + + QUnit.module("Cursor", function () + { + QUnit.test('Check cursor position after convert empty math func (cos, sin..)', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + + AddText('cos '); + + let cont = MathContent.Root; + let func = cont.Content[1]; + let arg = func.getArgument(); + + assert.strictEqual(cont.CurPos, 1, 'Cursor inside function'); + assert.strictEqual(func.CurPos, 1, 'Cursor in func argument'); + assert.strictEqual(arg.CurPos, 0, 'Cursor selected first paraRun in func argument'); + }) + QUnit.test('Check cursor position after convert empty big nary', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + + AddText('\\int '); + + let cont = MathContent.Root; + let func = cont.Content[1]; + let arg = func.getBase(); + + assert.strictEqual(cont.CurPos, 1, 'Cursor inside nary'); + assert.strictEqual(func.CurPos, 2, 'Cursor in nary base'); + assert.strictEqual(arg.CurPos, 0, 'Cursor selected first paraRun in func argument'); + }) + + QUnit.test('Check two spaces after nary (for example) not trigger auto-correction', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + + AddText('∫ '); + logicDocument.Document_Undo(); + AddText(' '); + + let cont = MathContent.Root + assert.strictEqual(cont.Content.length, 1, 'check only one content'); + let run = cont.Content[0]; + assert.strictEqual(run instanceof ParaRun, true, 'check run'); + }) + QUnit.test('Check cursor position after convert math func with content (cos, sin..)', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('cos\\funcapply(1+2) '); + + let cont = MathContent.Root; + + assert.strictEqual(cont.CurPos, 2, 'Cursor after function'); + }) + + QUnit.test('Add nary from menu', function (assert) + { + if (p1.Content.length > 0) + p1.Content.splice(0, p1.Content.length); + + p1.AddToContentToEnd(AscTest.CreateRun()) + p1.AddToContentToEnd(AscTest.CreateRun()) + p1.CorrectContent(true); + + AscTest.MoveCursorToParagraph(p1, true); + + logicDocument.SetMathInputType(0); + logicDocument.AddParaMath(67108864); // nary without content + + MathContent = logicDocument.GetCurrentMath(); + assert.ok(true, "Add nary without content ∫"); + + let strNary = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strNary, '∫', 'Check'); + }) + + QUnit.test('Add linear fraction and convert to linear to proff', function (assert) + { + if (p1.Content.length > 0) + p1.Content.splice(0, p1.Content.length); + + p1.AddToContentToEnd(AscTest.CreateRun()) + p1.AddToContentToEnd(AscTest.CreateRun()) + p1.CorrectContent(true); + + AscTest.MoveCursorToParagraph(p1, true); + + logicDocument.SetMathInputType(0); + logicDocument.AddParaMath(16777218); + MathContent = logicDocument.GetCurrentMath(); + assert.ok(true, "Add linear fraction without content []/[]"); + AscTest.MoveCursorLeft(false, false, 1); + AddText('y'); + AscTest.MoveCursorLeft(false, false, 3); + AddText('x'); + assert.ok(true, "Add content to numerator and denominator"); + + let cont = MathContent.Root + let frac = cont.Content[1]; + let isLinear = frac.Pr.type === LINEAR_FRACTION; + assert.strictEqual(isLinear, true, 'Check is linear fraction'); + + logicDocument.ConvertMathView(true); + assert.ok(true, "Convert in linear form"); + + let strLinearFrac = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strLinearFrac, 'x∕y', 'Check'); + + logicDocument.ConvertMathView(false); + assert.ok(true, "Convert in professional form"); + + isLinear = frac.Pr.type === LINEAR_FRACTION; + assert.strictEqual(isLinear, true, 'Check is linear fraction'); + }) + + QUnit.test('Check spaces degradation while convert math', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('1/2 1/2 1/2 '); + assert.ok(true, "Add 1/2 1/2 1/2 fraction"); + logicDocument.ConvertMathView(true); assert.ok(true, "Convert to linear form"); + logicDocument.ConvertMathView(false); assert.ok(true, "Convert to professional form"); + logicDocument.ConvertMathView(true);assert.ok(true, "Convert to linear form"); + logicDocument.ConvertMathView(false); assert.ok(true, "Convert to professional form"); + logicDocument.ConvertMathView(true);assert.ok(true, "Convert to linear form"); + logicDocument.ConvertMathView(false); assert.ok(true, "Convert to professional form"); + + let strNary = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strNary, '1/2 1/2 1/2', 'Check text'); + }) + + QUnit.test('Function autocorrection with _ and ^', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('cos_'); + + let strFunc = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual('⁡', strFunc[3], 'Check \\funcapply'); + assert.strictEqual(MathContent.Root.Content[0].MathPrp.sty === 3, true, 'Check normal style'); + }) + + QUnit.test('Limit function autocorrection with _ and ^', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('lim_'); + + let strFunc = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual('⁡', strFunc[3], 'Check \\funcapply'); + }) + + QUnit.test('Check processing of fractions', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('1/2/3/4/5/6/7/8 '); + assert.ok(true, "Add 1/2/3/4/5/6/7/8 fraction"); + let strFrac = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strFrac, '((((((1/2)/3)/4)/5)/6)/7)/8', 'Check'); + }) + + QUnit.test('Check processing of fractions 2', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText('1/2 //3 '); + assert.ok(true, "Add 1/2 //3 fraction"); + let strFrac = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strFrac, '((1/2)/)/3', 'Check'); + }) + + QUnit.test('Check space eating while auto-convert between-correction', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AddText(' 1/2 '); + assert.ok(true, "Add ' 1/2 ' fraction with space before"); + let strFrac = MathContent.GetTextOfElement(0).GetText(); + assert.strictEqual(strFrac, '1/2', 'Check is space ate'); + }) + + QUnit.test('Check cursor pos after del content inside math func argument', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + + AddText('cos '); + + let cont = MathContent.Root; + let func = cont.Content[1]; + + AddText('2_x '); + + AscTest.PressKey(8); + AscTest.PressKey(8); + + assert.strictEqual(func.CurPos, 1, 'Cursor inside func argument'); + }) + + QUnit.test('Check degree pos after convert inside math content', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + AscMath.SetAutoConvertation(false); + AddText('1/ '); + MathContent.ConvertView(false, Asc.c_oAscMathInputType.Unicode); + AscMath.SetAutoConvertation(true); + + let cont = MathContent.Root; + let frac = cont.Content[1]; + let den = frac.getDenominator(); + + den.SelectThisElement(1); + den.SelectAll(1); + + AddText('2_x '); + + assert.strictEqual(den.CurPos, 2, 'Cursor after degree'); + }) + + QUnit.test('Undo for empty math content placeholder', function (assert) + { + Clear(); + logicDocument.SetMathInputType(0); + + let delimiter = MathContent.Root.Add_DelimiterEx(new CTextPr(), 1, [null], null, null); + let oDelimiterContent = delimiter.getElementMathContent(0); + assert.ok(true, "Add empty bracket block ()"); + + MathContent.Root.Correct_Content(true); + oDelimiterContent.SelectThisElement(1); + oDelimiterContent.SelectAll(1); + assert.ok(true, "Select empty placeholder inside bracket block"); + + AscTest.EnterText("1"); + assert.ok(true, "Enter '1'"); + + logicDocument.Document_Undo(); + assert.ok(true, "Undo"); + let r = oDelimiterContent.getElem(0); + + let strR = r.GetTextOfElement().GetText(); + assert.strictEqual(strR, '', 'Inside bracket block empty string: \"'+ strR + '\"'); + assert.strictEqual(r.IsPlaceholder(), true, 'only placeholder'); + }) + }) + + QUnit.module( "LaTeX", function () + { + Test("\\theta", [["ParaRun", "\\theta"]], true, "Check LaTeX words"); + Test("\\theta", [["ParaRun", "θ"]], true, "Check LaTeX words", undefined, true); + Test("\\pm", [["ParaRun", "\\pm"]], true, "Check LaTeX words"); + Test("\\pm", [["ParaRun", "±"]], true, "Check LaTeX words", undefined, true); + Test("\\infty", [["ParaRun", "∞"]], true, "Check LaTeX words", undefined, true); + Test("\\infty", [["ParaRun", "\\infty"]], true, "Check LaTeX words"); + Test("\\sum_{\\begin{matrix}0\\lei\\lem\\\\0 e.Get_Text())}; - arrParentContent.push(oContentObject); - } -}; +AscCommonWord.CDocument.prototype.Document_UpdateRulersState = function () {}; + +let oCurrentTestDocument; AscCommonWord.CDocument.prototype.getTestObject = function () { + oCurrentTestDocument = this; const oContentObject = {type: 'document', content: []}; this.Content.forEach(function (oItem) { @@ -89,6 +84,142 @@ AscCommonWord.CDocument.prototype.getTestObject = function () } return oContentObject; }; +AscCommon.ParaComment.prototype.getTestObject = function (arrParentContent) +{ + let oComment = oMainComments.Get_ById(this.GetCommentId()); + if (oComment) + { + const oContentObject = {type: 'comment', text: oComment.Data.Get_Text(), quoteText: oComment.Data.Get_QuoteText(), arrAnswers: oComment.Data.m_aReplies.map((e) => e.Get_Text())}; + arrParentContent.push(oContentObject); + } +}; +AscCommonWord.CTextPr.prototype.getTestObject = function () { + const oRes = {}; + if (this.Bold !== undefined) { + oRes.Bold = this.Bold; + } + if (this.Italic !== undefined) { + oRes.Italic = this.Italic; + } + if (this.Strikeout !== undefined) { + oRes.Strikeout = this.Strikeout; + } + if (this.Underline !== undefined) { + oRes.Underline = this.Underline; + } + if (this.FontSize !== undefined) { + oRes.FontSize = this.FontSize; + } + if (this.VertAlign !== undefined) { + oRes.VertAlign = this.VertAlign; + } + if (this.RStyle !== undefined) { + oRes.RStyle = this.RStyle; + } + if (this.Spacing !== undefined) { + oRes.Spacing = this.Spacing; + } + if (this.DStrikeout !== undefined) { + oRes.DStrikeout = this.DStrikeout; + } + if (this.Caps !== undefined) { + oRes.Caps = this.Caps; + } + if (this.SmallCaps !== undefined) { + oRes.SmallCaps = this.SmallCaps; + } + if (this.Position !== undefined) { + oRes.Position = this.Position; + } + if (this.BoldCS !== undefined) { + oRes.BoldCS = this.BoldCS; + } + if (this.ItalicCS !== undefined) { + oRes.ItalicCS = this.ItalicCS; + } + if (this.FontSizeCS !== undefined) { + oRes.FontSizeCS = this.FontSizeCS; + } + if (this.CS !== undefined) { + oRes.CS = this.CS; + } + if (this.RTL !== undefined) { + oRes.RTL = this.RTL; + } + if (this.FontScale !== undefined) { + oRes.FontScale = this.FontScale; + } + if (this.FontSizeOrig !== undefined) { + oRes.FontSizeOrig = this.FontSizeOrig; + } + if (this.FontSizeCSOrig !== undefined) { + oRes.FontSizeCSOrig = this.FontSizeCSOrig; + } + return oRes; +}; +AscCommonWord.CTextPr.prototype.isEqualTestObject = function (oTestObject) { + if (this.Bold !== oTestObject.Bold) { + return false; + } + if (this.Italic !== oTestObject.Italic) { + return false; + } + if (this.Strikeout !== oTestObject.Strikeout) { + return false; + } + if (this.Underline !== oTestObject.Underline) { + return false; + } + if (this.FontSize !== oTestObject.FontSize) { + return false; + } + if (this.VertAlign !== oTestObject.VertAlign) { + return false; + } + if (this.RStyle !== oTestObject.RStyle) { + return false; + } + if (this.Spacing !== oTestObject.Spacing) { + return false; + } + if (this.DStrikeout !== oTestObject.DStrikeout) { + return false; + } + if (this.Caps !== oTestObject.Caps) { + return false; + } + if (this.SmallCaps !== oTestObject.SmallCaps) { + return false; + } + if (this.Position !== oTestObject.Position) { + return false; + } + if (this.BoldCS !== oTestObject.BoldCS) { + return false; + } + if (this.ItalicCS !== oTestObject.ItalicCS) { + return false; + } + if (this.FontSizeCS !== oTestObject.FontSizeCS) { + return false; + } + if (this.CS !== oTestObject.CS) { + return false; + } + if (this.RTL !== oTestObject.RTL) { + return false; + } + if (this.FontScale !== oTestObject.FontScale) { + return false; + } + if (this.FontSizeOrig !== oTestObject.FontSizeOrig) { + return false; + } + if (this.FontSizeCSOrig !== oTestObject.FontSizeCSOrig) { + return false; + } + return true; +}; AscCommonWord.CHeaderFooter.prototype.getTestObject = function (arrParentContent) { @@ -247,10 +378,10 @@ Paragraph.prototype.getTestObject = function (arrParentContent) }; AscCommonWord.CParagraphBookmark.prototype.getTestObject = function (arrParentContent) { + const oStartBookmark = oCurrentTestDocument.BookmarksManager.GetBookmarkById(this.GetBookmarkId())[0]; const oContentObject = { type : 'bookmark', - id : this.GetBookmarkId(), - name : this.GetBookmarkName(), + name : oStartBookmark.GetBookmarkName(), start: this.IsStart() }; arrParentContent.push(oContentObject) @@ -277,7 +408,8 @@ ParaRun.prototype.getTestObject = function (oParentContent) let oCurrentTextInfo = oParentContent[oParentContent.length - 1]; const needCreateNewText = (oParentContent.length === 0 || oCurrentTextInfo.mainReviewType !== nMainReviewType || oCurrentTextInfo.mainUserName !== sMainUserName || oCurrentTextInfo.mainDateTime !== nMainDateTime || - oCurrentTextInfo.additionalReviewType !== nAdditionalReviewType || oCurrentTextInfo.additionalUserName !== sAdditionalUserName || oCurrentTextInfo.additionalDateTime !== nAdditionalDateTime); + oCurrentTextInfo.additionalReviewType !== nAdditionalReviewType || oCurrentTextInfo.additionalUserName !== sAdditionalUserName || oCurrentTextInfo.additionalDateTime !== nAdditionalDateTime || + !this.Pr.isEqualTestObject(oCurrentTextInfo.textPr)); if (needCreateNewText || this.IsParaEndRun()) { oCurrentTextInfo = { @@ -287,7 +419,8 @@ ParaRun.prototype.getTestObject = function (oParentContent) additionalReviewType: nAdditionalReviewType, additionalDateTime : nAdditionalDateTime, additionalUserName : sAdditionalUserName, - text : '' + text : '', + textPr : this.Pr.getTestObject() }; oParentContent.push(oCurrentTextInfo); } @@ -406,7 +539,7 @@ function createTestDocument(oDocument, arrParagraphsTextInfo) } let arrStartCommentsInfo; let arrEndCommentsInfo; - if (oParagraphTextInfo[j].options && oParagraphTextInfo[j].options.comments) + if (oParagraphTextInfo[j].options.comments) { arrStartCommentsInfo = oParagraphTextInfo[j].options.comments.start; arrEndCommentsInfo = oParagraphTextInfo[j].options.comments.end; @@ -424,7 +557,8 @@ function createTestDocument(oDocument, arrParagraphsTextInfo) oParaComment.SetCommentId(oComment.GetId()); const oStartParaComment = mapParaComments[oStartCommentInfo.id]; oStartParaComment.SetCommentId(oComment.GetId()); - + oComment.SetRangeMark(oParaComment); + oComment.SetRangeMark(oStartParaComment); } else { @@ -454,6 +588,11 @@ function createTestDocument(oDocument, arrParagraphsTextInfo) oParaRun.SetReviewTypeWithInfo(oParagraphTextInfo[j].reviewType, oParagraphTextInfo[j].reviewInfo); oParagraph.AddToContentToEnd(oParaRun); } + if (oParagraphTextInfo[j].options.textPr) { + const oTextPr = new AscCommonWord.CTextPr(); + oTextPr.Set_FromObject(oParagraphTextInfo[j].options.textPr); + oParaRun.SetPr(oTextPr); + } if (arrEndBookmarkInfo) { for (let k = 0; k < arrEndBookmarkInfo.length; k += 1) @@ -476,6 +615,8 @@ function createTestDocument(oDocument, arrParagraphsTextInfo) oParaComment.SetCommentId(oComment.GetId()); const oStartParaComment = mapParaComments[oEndCommentInfo.id]; oStartParaComment.SetCommentId(oComment.GetId()); + oComment.SetRangeMark(oParaComment); + oComment.SetRangeMark(oStartParaComment); } else @@ -509,7 +650,7 @@ function createParagraphInfo(sText, oMainReviewInfoOptions, oAdditionalReviewInf text : sText, reviewType: reviewtype_Common, bookmark : oBookmarkInfo, - options : oOptions, + options : oOptions || {}, }; let oMainReviewInfo; if (oMainReviewInfoOptions) @@ -564,3 +705,264 @@ function createFindingReviewInfo(nReviewType) { return new CCreatingReviewInfo('Valdemar', nReviewType, 3000000); } +// +// asc_docs_api.prototype.getTest = function() +// { +// function getPr(oPr) { +// const oRes = {}; +// if (oPr.Bold !== undefined) { +// oRes.Bold = oPr.Bold; +// } +// if (oPr.Italic !== undefined) { +// oRes.Italic = oPr.Italic; +// } +// if (oPr.Strikeout !== undefined) { +// oRes.Strikeout = oPr.Strikeout; +// } +// if (oPr.Underline !== undefined) { +// oRes.Underline = oPr.Underline; +// } +// if (oPr.FontSize !== undefined) { +// oRes.FontSize = oPr.FontSize; +// } +// if (oPr.VertAlign !== undefined) { +// oRes.VertAlign = oPr.VertAlign; +// } +// if (oPr.RStyle !== undefined) { +// oRes.RStyle = oPr.RStyle; +// } +// if (oPr.Spacing !== undefined) { +// oRes.Spacing = oPr.Spacing; +// } +// if (oPr.DStrikeout !== undefined) { +// oRes.DStrikeout = oPr.DStrikeout; +// } +// if (oPr.Caps !== undefined) { +// oRes.Caps = oPr.Caps; +// } +// if (oPr.SmallCaps !== undefined) { +// oRes.SmallCaps = oPr.SmallCaps; +// } +// if (oPr.Position !== undefined) { +// oRes.Position = oPr.Position; +// } +// if (oPr.BoldCS !== undefined) { +// oRes.BoldCS = oPr.BoldCS; +// } +// if (oPr.ItalicCS !== undefined) { +// oRes.ItalicCS = oPr.ItalicCS; +// } +// if (oPr.FontSizeCS !== undefined) { +// oRes.FontSizeCS = oPr.FontSizeCS; +// } +// if (oPr.CS !== undefined) { +// oRes.CS = oPr.CS; +// } +// if (oPr.RTL !== undefined) { +// oRes.RTL = oPr.RTL; +// } +// if (oPr.FontScale !== undefined) { +// oRes.FontScale = oPr.FontScale; +// } +// if (oPr.FontSizeOrig !== undefined) { +// oRes.FontSizeOrig = oPr.FontSizeOrig; +// } +// if (oPr.FontSizeCSOrig !== undefined) { +// oRes.FontSizeCSOrig = oPr.FontSizeCSOrig; +// } +// return oRes; +// } +// function getReview(oRun) { +// const bPrevAdded = oRun.ReviewInfo && oRun.ReviewInfo.GetPrevAdded(); +// const nMainReviewInfo = oRun.GetReviewType(); +// +// const oRes = {}; +// if (nMainReviewInfo !== reviewtype_Common) { +// oRes.mainReviewType = nMainReviewInfo; +// } +// +// if (bPrevAdded) { +// oRes.additionalReviewType = reviewtype_Add; +// } +// return oRes; +// } +// +// function compareReviewDiff(rev1, rev2) { +// if (rev1.mainReviewType !== rev2.mainReviewType) { +// return false; +// } +// if (rev1.additionalReviewType !== rev2.additionalReviewType) { +// return false; +// } +// return true; +// } +// +// function compareTextPrDiff(oPr1, oPr2) { +// if (oPr1.Bold !== oPr2.Bold) { +// return false; +// } +// if (oPr1.Italic !== oPr2.Italic) { +// return false; +// } +// if (oPr1.Strikeout !== oPr2.Strikeout) { +// return false; +// } +// if (oPr1.Underline !== oPr2.Underline) { +// return false; +// } +// if (oPr1.FontSize !== oPr2.FontSize) { +// return false; +// } +// if (oPr1.VertAlign !== oPr2.VertAlign) { +// return false; +// } +// if (oPr1.RStyle !== oPr2.RStyle) { +// return false; +// } +// if (oPr1.Spacing !== oPr2.Spacing) { +// return false; +// } +// if (oPr1.DStrikeout !== oPr2.DStrikeout) { +// return false; +// } +// if (oPr1.Caps !== oPr2.Caps) { +// return false; +// } +// if (oPr1.SmallCaps !== oPr2.SmallCaps) { +// return false; +// } +// if (oPr1.Position !== oPr2.Position) { +// return false; +// } +// if (oPr1.BoldCS !== oPr2.BoldCS) { +// return false; +// } +// if (oPr1.ItalicCS !== oPr2.ItalicCS) { +// return false; +// } +// if (oPr1.FontSizeCS !== oPr2.FontSizeCS) { +// return false; +// } +// if (oPr1.CS !== oPr2.CS) { +// return false; +// } +// if (oPr1.RTL !== oPr2.RTL) { +// return false; +// } +// if (oPr1.FontScale !== oPr2.FontScale) { +// return false; +// } +// if (oPr1.FontSizeOrig !== oPr2.FontSizeOrig) { +// return false; +// } +// if (oPr1.FontSizeCSOrig !== oPr2.FontSizeCSOrig) { +// return false; +// } +// return true; +// } +// +// const oLogicDocument = this.private_GetLogicDocument(); +// const arrTests = []; +// for (let i = 0; i < oLogicDocument.Content.length; i += 1) { +// const oParagraph = oLogicDocument.Content[i]; +// let arrBookmarks = []; +// let arrComments = []; +// let test; +// let paragraphTest = []; +// arrTests.push(paragraphTest); +// for (let j = 0; j < oParagraph.Content.length; j += 1) { +// const oRunElement = oParagraph.Content[j]; +// if (oRunElement instanceof AscCommon.ParaComment) { +// const isStart = oRunElement.IsCommentStart(); +// const comment = oLogicDocument.Comments.GetById(oRunElement.CommentId); +// const data = !isStart ? `, data:{text: "${comment.Data.m_sText}", quoteText: "${comment.Data.m_sQuoteText}", arrAnswers: ${comment.Data.m_aReplies.length ? `[${comment.Data.m_aReplies.map((e) => '"' + e.Get_Text() + '"')}]` : "null"}}`: ""; +// arrComments.push(`{start: ${isStart}, id: ${comment.Id}${data}}`); +// } else if (oRunElement instanceof AscCommonWord.CParagraphBookmark) { +// arrBookmarks.push(`{id: ${oRunElement.GetBookmarkId()}${oRunElement.IsStart() ? ", name: " + '"' + oRunElement.GetBookmarkName() + '"' : ""}}`); +// } else if (oRunElement instanceof AscCommonWord.ParaRun && oRunElement.Content.length) { +// const prChange = getPr(oRunElement.Pr); +// const revChange = getReview(oRunElement); +// if (test) { +// const prChange = getPr(oRunElement.Pr); +// const revChange = getReview(oRunElement); +// if (!compareReviewDiff(revChange, test.revChange) || !compareTextPrDiff(prChange, test.prChange) || arrBookmarks.length || arrComments.length) { +// test = { +// bookmarks: arrBookmarks, +// comments: arrComments, +// text: oRunElement.GetText(), +// revChange: revChange, +// prChange: prChange +// }; +// arrComments = []; +// arrBookmarks = []; +// paragraphTest.push(test); +// } else { +// test.text += oRunElement.GetText(); +// } +// } else { +// test = { +// bookmarks: arrBookmarks, +// comments: arrComments, +// text: oRunElement.GetText(), +// revChange: revChange, +// prChange: prChange +// }; +// paragraphTest.push(test); +// arrComments = []; +// arrBookmarks = []; +// } +// } +// } +// if (arrBookmarks.length || arrComments.length) { +// paragraphTest.push({bookmarks: arrBookmarks, comments: arrComments}); +// arrComments = []; +// arrBookmarks = []; +// } +// } +// +// +// let result = []; +// for (let i = 0; i < arrTests.length; i++) { +// const paragraphTest = arrTests[i]; +// const paragraphResult = []; +// for (let j = 0; j < paragraphTest.length; j++) { +// const runInfo = paragraphTest[j]; +// const stext = runInfo.text ? '"' + runInfo.text + '"' : "undefined"; +// let review = "undefined"; +// let addReview = "undefined" +// if (runInfo.revChange) { +// if (runInfo.revChange.mainReviewType === reviewtype_Add) { +// review = "new CCreatingReviewInfo('Mark Potato', reviewtype_Add, 1000)"; +// } else if (runInfo.revChange.mainReviewType === reviewtype_Remove) { +// review = "new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000)"; +// } +// if (runInfo.revChange.additionalReviewType === reviewtype_Add) { +// addReview = "new CCreatingReviewInfo('Mark Potato', reviewtype_Add, 1000)"; +// } +// } +// let bookmarks = "undefined"; +// if (runInfo.bookmarks && runInfo.bookmarks.length) { +// bookmarks = `{start: [${runInfo.bookmarks.join(", ")}]}`; +// } +// let comments = ""; +// if (runInfo.comments && runInfo.comments.length) { +// comments = `comments: {start: [${runInfo.comments.join(", ")}]},`; +// } +// let textpr = ""; +// if (runInfo.prChange) { +// for (let sName in runInfo.prChange) { +// if (!textpr) { +// textpr = "textPr: {" +// } +// textpr += `${sName}: ${runInfo.prChange[sName]},` +// } +// if (textpr) { +// textpr += "}" +// } +// } +// paragraphResult.push(`createParagraphInfo(${stext}, ${review}, ${addReview}, ${bookmarks}, {${comments}${textpr}})`) +// } +// result.push("[" + paragraphResult.join(", ") + "]") +// } +// console.log(result.join(", ")) +// }; diff --git a/tests/word/merge-documents/mergeDocuments.js b/tests/word/merge-documents/mergeDocuments.js index ad3582f02a..5ad4e58142 100644 --- a/tests/word/merge-documents/mergeDocuments.js +++ b/tests/word/merge-documents/mergeDocuments.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -354,8 +354,8 @@ const arrTestObjectsInfo = [ revisedDocument : [ [ createParagraphInfo('Hello', null, null, { - start: [{id: '1', name: 's1'}, {id: '2', name: 's2'}], - end : [{id: '1'}, {id: '2'}] + start: [{id: 1, name: 's1'}, {id: 2, name: 's2'}], + end : [{id: 1}, {id: 2}] }), createParagraphInfo(' Hello Hello') ] ] @@ -365,16 +365,16 @@ const arrTestObjectsInfo = [ originalDocument: [ [ createParagraphInfo('Hello', null, null, { - start: [{id: '1', name: 's1'}], - end : [{id: '1'}] + start: [{id: 1, name: 's1'}], + end : [{id: 1}] }), createParagraphInfo(' Hello Hello') ] ], revisedDocument : [ [ createParagraphInfo('Hel', null, null, { - start: [{id: '1', name: 's1'}], - end : [{id: '1'}] + start: [{id: 1, name: 's1'}], + end : [{id: 1}] }), createParagraphInfo('lo Hello Hello') ] ] @@ -389,53 +389,53 @@ const arrTestObjectsInfo = [ revisedDocument : [ [ createParagraphInfo('П', null, null, { - start: [{id: '1', name: 's1'}, {id: '2', name: 's8'}, { + start: [{id: 1, name: 's1'}, {id: 2, name: 's8'}, { id : '3', name : 's3', start: true }] }), - createParagraphInfo('ри', null, null, {start: [{id: '4', name: 's11'}]}), - createParagraphInfo('ве', null, null, {start: [{id: '5', name: 's2'}], end: [{id: '4'}]}), + createParagraphInfo('ри', null, null, {start: [{id: 4, name: 's11'}]}), + createParagraphInfo('ве', null, null, {start: [{id: 5, name: 's2'}], end: [{id: 4}]}), createParagraphInfo('т '), - createParagraphInfo('пр', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: '1'}]}), + createParagraphInfo('пр', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: 1}]}), createParagraphInfo('и', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { end: [{ id : '7', name: 's7' - }, {id: '5'}] + }, {id: 5}] }), createParagraphInfo('в', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null), createParagraphInfo('ет', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { start: [{ - id : '8', + id : 8, name: 's4' }] }), createParagraphInfo(' '), createParagraphInfo('п', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { start: [{ - id : '9', + id : 9, name: 's6' }] }), createParagraphInfo('ри', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { start: [{ - id : '11', + id : 11, name: 's5' }], - end : [{id: '11'}] + end : [{id: 11}] }), - createParagraphInfo('в', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: '7'}]}), + createParagraphInfo('в', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: 7}]}), createParagraphInfo('ет', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { end: [{ - id : '12', + id : 12, name: 's9' - }, {id: '13', name: 's10'}, {id: '2'}] + }, {id: 13, name: 's10'}, {id: 2}] }), - createParagraphInfo(' ', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: '12'}]}), - createParagraphInfo('прив', null, null, {end: [{id: '14', name: 's12'}, {id: '9'}, {id: '14'}]}), - createParagraphInfo('ет', null, null, {end: [{id: '3'}, {id: '8'}, {id: '13'}]}) + createParagraphInfo(' ', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: 12}]}), + createParagraphInfo('прив', null, null, {end: [{id: 14, name: 's12'}, {id: 9}, {id: 14}]}), + createParagraphInfo('ет', null, null, {end: [{id: 3}, {id: 8}, {id: 13}]}) ] ] }, @@ -449,7 +449,7 @@ const arrTestObjectsInfo = [ revisedDocument : [ [ createParagraphInfo('Hello He'), - createParagraphInfo('llo Hel', null, null, {start: [{id: '1', name: 's1'}], end: [{id: '1'}]}), + createParagraphInfo('llo Hel', null, null, {start: [{id: 1, name: 's1'}], end: [{id: 1}]}), createParagraphInfo('lo') ] ] @@ -463,7 +463,7 @@ const arrTestObjectsInfo = [ ], revisedDocument : [ [ - createParagraphInfo('Hello', null, null, {start: [{id: '1', name: 's1'}], end: [{id: '1'}]}), + createParagraphInfo('Hello', null, null, {start: [{id: 1, name: 's1'}], end: [{id: 1}]}), createParagraphInfo(' Hello') ] ] @@ -478,7 +478,7 @@ const arrTestObjectsInfo = [ revisedDocument : [ [ createParagraphInfo('Hello hello '), - createParagraphInfo('hello hello', null, null, {start: [{id: '1', name: 's1'}, {id: '1'}]}) + createParagraphInfo('hello hello', null, null, {start: [{id: 1, name: 's1'}, {id: 1}]}) ] ] }, @@ -875,7 +875,7 @@ const arrTestObjectsInfo = [ [createParagraphInfo('Привет привет привет привет')] ], revisedDocument : [ - [createParagraphInfo('Привет ', undefined, undefined, {start: [{id: '6', name: 's6'}, {id: '1', name: 's1'}]}), createParagraphInfo('п', undefined, undefined, {start: [{id: '3', name: 's3'}]}, {comments:{start:[{start: true, id: 0}, {start: true, id: 1}]}}), createParagraphInfo('ри', undefined, undefined, {start: [{id: '7', name: 's7'}]}), createParagraphInfo('в', undefined, undefined, {start: [{id: '2', name: 's2'}]}), createParagraphInfo('е', undefined, undefined, {start: [{id: '3'}, {id: '5', name: 's5'}]}), createParagraphInfo('т', undefined, undefined, {start: [{id: '1'}]}), createParagraphInfo(' ', undefined, undefined, undefined, {comments:{start:[{start: false, id: 0, data:{text: '4', quoteText: 'привет', arrAnswers: ['53']}}]}}), createParagraphInfo('пр', undefined, undefined, {start: [{id: '4', name: 's4'}]}), createParagraphInfo('ивет', undefined, undefined, undefined, {comments:{start:[{start: true, id: 2}]}}), createParagraphInfo(' п', undefined, undefined, {start: [{id: '7'}, {id: '4'}, {id: '2'}]}), createParagraphInfo('рив', undefined, undefined, {start: [{id: '5'}]}), createParagraphInfo('ет', undefined, undefined, undefined, {comments:{start:[{start: false, id: 2, data:{text: '43212', quoteText: 'ивет прив', arrAnswers: null}}]}}), createParagraphInfo(undefined, undefined, undefined, {start: [{id: '6'}]}, {comments:{start:[{start: false, id: 1, data:{text: '123', quoteText: 'привет привет привет', arrAnswers: ['432']}}]}})] + [createParagraphInfo('Привет ', undefined, undefined, {start: [{id: 6, name: 's6'}, {id: 1, name: 's1'}]}), createParagraphInfo('п', undefined, undefined, {start: [{id: 3, name: 's3'}]}, {comments:{start:[{start: true, id: 0}, {start: true, id: 1}]}}), createParagraphInfo('ри', undefined, undefined, {start: [{id: 7, name: 's7'}]}), createParagraphInfo('в', undefined, undefined, {start: [{id: 2, name: 's2'}]}), createParagraphInfo('е', undefined, undefined, {start: [{id: 3}, {id: 5, name: 's5'}]}), createParagraphInfo('т', undefined, undefined, {start: [{id: 1}]}), createParagraphInfo(' ', undefined, undefined, undefined, {comments:{start:[{start: false, id: 0, data:{text: '4', quoteText: 'привет', arrAnswers: ['53']}}]}}), createParagraphInfo('пр', undefined, undefined, {start: [{id: 4, name: 's4'}]}), createParagraphInfo('ивет', undefined, undefined, undefined, {comments:{start:[{start: true, id: 2}]}}), createParagraphInfo(' п', undefined, undefined, {start: [{id: 7}, {id: 4}, {id: 2}]}), createParagraphInfo('рив', undefined, undefined, {start: [{id: 5}]}), createParagraphInfo('ет', undefined, undefined, undefined, {comments:{start:[{start: false, id: 2, data:{text: '43212', quoteText: 'ивет прив', arrAnswers: null}}]}}), createParagraphInfo(undefined, undefined, undefined, {start: [{id: 6}]}, {comments:{start:[{start: false, id: 1, data:{text: '123', quoteText: 'привет привет привет', arrAnswers: ['432']}}]}})] ] }, ///////////////////////// -> 36 <- ///////////////////////////// @@ -884,7 +884,7 @@ const arrTestObjectsInfo = [ [createParagraphInfo('Привет привет привет')] ], revisedDocument : [ - [createParagraphInfo('Привет', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: '1', name: 's1'}]}, {comments:{start:[{start: true, id: 0}]}}), createParagraphInfo(' ', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: '3', name: 's3'}]}), createParagraphInfo('при', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: '2', name: 's2'}]}, {comments:{start:[{start: true, id: 1}]}}), createParagraphInfo('вет', new CCreatingReviewInfo('Mark Potato', reviewtype_Add, 1000), undefined, {start: [{id: '3'}]}), createParagraphInfo(' приве', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, {comments:{start:[{start: false, id: 1, data:{text: '123', quoteText: 'привет', arrAnswers: null}}]}}), createParagraphInfo('т', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: '2'}]}), createParagraphInfo(undefined, undefined, undefined, {start: [{id: '1'}]}, {comments:{start:[{start: false, id: 0, data:{text: '123', quoteText: 'Привет привет привет', arrAnswers: null}}]}})] + [createParagraphInfo('Привет', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: 1, name: 's1'}]}, {comments:{start:[{start: true, id: 0}]}}), createParagraphInfo(' ', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: 3, name: 's3'}]}), createParagraphInfo('при', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: 2, name: 's2'}]}, {comments:{start:[{start: true, id: 1}]}}), createParagraphInfo('вет', new CCreatingReviewInfo('Mark Potato', reviewtype_Add, 1000), undefined, {start: [{id: 3}]}), createParagraphInfo(' приве', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, {comments:{start:[{start: false, id: 1, data:{text: '123', quoteText: 'привет', arrAnswers: null}}]}}), createParagraphInfo('т', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: 2}]}), createParagraphInfo(undefined, undefined, undefined, {start: [{id: 1}]}, {comments:{start:[{start: false, id: 0, data:{text: '123', quoteText: 'Привет привет привет', arrAnswers: null}}]}})] ] }, ///////////////////////// -> 37 <- ///////////////////////////// @@ -941,6 +941,7 @@ const arrTestObjectsInfo = [ [createParagraphInfo("3.这是一个测试段落,这是一个测试段落,这是一个测试段落,这是一个测试段落")] ], }, + ///////////////////////// -> 41 <- ///////////////////////////// { originalDocument: [ [createParagraphInfo("1.这是一个测试段落,这是一个测试段落,这是一个测试段落,这是一个测试段落")], @@ -964,6 +965,486 @@ const arrTestObjectsInfo = [ [createParagraphInfo("2. 这是一个测试段落,这是一个测试段落"), createParagraphInfo(",这是一个测试段落", new CCreatingReviewInfo("Mark Potato", reviewtype_Remove, 1000)), createParagraphInfo(",这是一个测试段落")], [createParagraphInfo("3.这是一个测试段落,这是一个测试段落,这是一个测试段落,这是一个测试段落")] ] + }, + ///////////////////////// -> 42 <- ///////////////////////////// + { + originalDocument: [ + [ + createParagraphInfo("Приве", undefined, undefined, undefined, {textPr: {VertAlign: AscCommon.vertalign_SubScript}}), + createParagraphInfo("т "), + createParagraphInfo("прив", undefined, undefined, undefined, {textPr: {Underline: true}}), + createParagraphInfo("ет пр"), + createParagraphInfo("иве", undefined, undefined, undefined, {textPr: {Bold: true}}), + createParagraphInfo("т") + ] + ], + revisedDocument: [ + [ + createParagraphInfo("П", undefined, undefined, undefined,{textPr: {VertAlign: AscCommon.vertalign_SubScript}}), + createParagraphInfo("риве", undefined, undefined, undefined,{textPr: {VertAlign: AscCommon.vertalign_SuperScript}}), + createParagraphInfo("т "), + createParagraphInfo("прив", undefined, undefined, undefined,{textPr: {Underline: true}}), + createParagraphInfo("ет "), + createParagraphInfo("пр", undefined, undefined, undefined,{textPr: {Underline: true}}), + createParagraphInfo("и", undefined, undefined, undefined,{textPr: {Bold: true}}), + createParagraphInfo("ве", undefined, undefined, undefined,{textPr: {Bold: true, Italic: true}}), + createParagraphInfo("т", undefined, undefined, undefined,{textPr: {Italic: true}}) + ] + ] + }, + { + originalDocument: [ + [ + createParagraphInfo("пр"), + createParagraphInfo("иве", undefined, undefined, undefined, {textPr: {VertAlign: AscFormat.vertalign_SuperScript}}), + createParagraphInfo("т п"), + createParagraphInfo("риве",undefined, undefined, undefined, {textPr: {Strikeout: true}}), + createParagraphInfo("т п"), + createParagraphInfo("ривет",undefined, undefined, undefined, {textPr: {Bold: true}}), + ] + ], + revisedDocument: [ + [ + createParagraphInfo("пр"), + createParagraphInfo("иве", undefined, undefined, undefined, {textPr: {VertAlign: AscFormat.vertalign_SuperScript}}), + createParagraphInfo("т п"), + createParagraphInfo("риве", undefined, undefined, undefined, {textPr: {Strikeout: true}}), + createParagraphInfo("т привет п"), + createParagraphInfo("ривет", undefined, undefined, undefined, {textPr: {Bold: true}}) + ] + ] + }, + { + originalDocument: [ + [ + createParagraphInfo("привет "), + createParagraphInfo("при", undefined, undefined, undefined, {textPr: {Bold: true}}), + createParagraphInfo("вет привет") + ] + ], + revisedDocument: [ + [ + createParagraphInfo("привет привет привет") + ] + ] + }, + { + originalDocument: [ + [createParagraphInfo("прив"), createParagraphInfo("ет ", undefined, undefined, { + start: [{ + id : 0, + name: "s2" + }] + }, {textPr: {VertAlign: 1,}}), createParagraphInfo("при", undefined, undefined, undefined, { + textPr: { + Bold : true, + VertAlign: AscCommon.vertalign_SubScript, + BoldCS : true, + } + }), createParagraphInfo("в", undefined, undefined, {start: [{id: 0}]}, { + textPr: { + Bold : true, + Italic : true, + VertAlign: AscCommon.vertalign_SubScript, + BoldCS : true, + ItalicCS : true, + } + }), createParagraphInfo("е", undefined, undefined, { + start: [{ + id : 1, + name: "s1" + }] + }, { + comments: {start: [{start: true, id: 0}]}, + textPr : {Bold: true, Italic: true, BoldCS: true, ItalicCS: true,} + }), createParagraphInfo("т", undefined, undefined, undefined, { + textPr: { + Bold : true, + BoldCS: true, + } + }), createParagraphInfo(" ", undefined, undefined, undefined, { + textPr: { + Bold : true, + FontSize : 12, + BoldCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("п", undefined, undefined, undefined, { + comments: { + start: [{ + start: false, + id : 0, + data : { + text : "1", + quoteText : "ет ", + arrAnswers: null + } + }] + }, + textPr : { + Bold : true, + Underline : true, + FontSize : 12, + BoldCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("рив", undefined, undefined, undefined, { + textPr: { + Bold : true, + Underline: true, + BoldCS : true, + } + }), createParagraphInfo("ет привет", undefined, undefined, {start: [{id: 1}]}, {textPr: {Underline: true,}}), createParagraphInfo()]], + revisedDocument: [ + [createParagraphInfo("пр", undefined, undefined, {start: [{id: 0, name: "s4"}]}, { + comments : { + start: [{ + start: true, + id : 0 + }] + }, textPr: {VertAlign: 2,} + }), createParagraphInfo("и", undefined, undefined, { + start: [{ + id : 2, + name: "s7" + }] + }, {textPr: {VertAlign: 2,}}), createParagraphInfo("в"), createParagraphInfo("ет ", undefined, undefined, { + start: [{ + id : 3, + name: "s2" + }, {id: 4, name: "s3"}, {id: 5, name: "s5"}, {id: 0}] + }, {textPr: {VertAlign: 1,}}), createParagraphInfo("при", undefined, undefined, undefined, { + textPr: { + Bold : true, + FontSize : 14, + VertAlign : 1, + BoldCS : true, + FontSizeCS: 14, + } + }), createParagraphInfo("в", undefined, undefined, {start: [{id: 3}]}, { + textPr: { + Bold : true, + Italic : true, + FontSize : 14, + VertAlign : 1, + BoldCS : true, + ItalicCS : true, + FontSizeCS: 14, + } + }), createParagraphInfo("е", undefined, undefined, { + start: [{ + id : 6, + name: "s1" + }, {id: 2}, {id: 4}] + }, { + comments: {start: [{start: true, id: 1}]}, + textPr : {Bold: true, Italic: true, BoldCS: true, ItalicCS: true,} + }), createParagraphInfo("т", undefined, undefined, undefined, { + textPr: { + Bold : true, + BoldCS: true, + } + }), createParagraphInfo(" ", undefined, undefined, undefined, { + textPr: { + Bold : true, + FontSize : 12, + BoldCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("п", undefined, undefined, undefined, { + comments: { + start: [{ + start: false, + id : 1, + data : { + text : "1", + quoteText : "ет ", + arrAnswers: null + } + }, {start: true, id: 2}] + }, + textPr : { + Bold : true, + FontSize : 12, + BoldCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("рив", undefined, undefined, {start: [{id: 9, name: "s6"}]}, { + textPr: { + Bold : true, + BoldCS: true, + } + }), createParagraphInfo("ет ", undefined, undefined, {start: [{id: 5}, {id: 6}]}, {textPr: {Underline: true,}}), createParagraphInfo("п", undefined, undefined, {start: [{id: 9}]}, { + comments: { + start: [{ + start: false, + id : 0, + data : { + text : "3", + quoteText : "привет привет привет ", + arrAnswers: null + } + }] + }, + textPr : {Underline: true,} + }), createParagraphInfo("рив", undefined, undefined, undefined, { + textPr: { + Underline : true, + FontSize : 12, + FontSizeCS: 12, + } + }), createParagraphInfo("ет", undefined, undefined, undefined, {textPr: {Underline: true,}}), createParagraphInfo(undefined, undefined, undefined, undefined, { + comments: { + start: [{ + start: false, + id : 2, + data : { + text : "2", + quoteText : "привет привет", + arrAnswers: null + } + }] + }, + })] + ] + }, + { + originalDocument: [ + [createParagraphInfo("пр", undefined, undefined, undefined, {}), createParagraphInfo("и", undefined, undefined, undefined, { + textPr: { + Bold : true, + Underline: true, + BoldCS : true, + } + }), createParagraphInfo("в", undefined, undefined, {start: [{id: 0, name: "s2"}]}, { + textPr: { + Bold : true, + Underline: true, + BoldCS : true, + } + }), createParagraphInfo("ет ", undefined, undefined, undefined, { + textPr: { + Bold : true, + BoldCS: true, + } + }), createParagraphInfo("пр", undefined, undefined, undefined, { + comments: { + start: [{ + start: true, + id : 0 + }] + }, + }), createParagraphInfo("и", undefined, undefined, undefined, {textPr: {VertAlign: 2,}}), createParagraphInfo("вет", undefined, undefined, { + start: [{ + id : 2, + name: "s1" + }, {id: 0}] + }, { + comments: {start: [{start: true, id: 1}]}, + textPr : {VertAlign: 1,} + }), createParagraphInfo(" ", undefined, undefined, {start: [{id: 2}]}, {}), createParagraphInfo("прив", undefined, undefined, undefined, { + textPr: { + Italic : true, + Strikeout: true, + ItalicCS : true, + } + }), createParagraphInfo("е", undefined, undefined, undefined, { + comments: { + start: [{ + start: false, + id : 1, + data : { + text : "1", + quoteText : "вет прив", + arrAnswers: null + } + }] + }, + textPr : { + Italic : true, + Strikeout: true, + ItalicCS : true, + } + }), createParagraphInfo("т ", undefined, undefined, undefined, {textPr: {Strikeout: true,}}), createParagraphInfo("привет", undefined, undefined, undefined, { + comments: { + start: [{ + start: false, + id : 0, + data : { + text : "2", + quoteText : "привет привет ", + arrAnswers: null + } + }] + }, + textPr : { + Strikeout: true, + VertAlign: 1, + } + }), createParagraphInfo(undefined, undefined, undefined, undefined, {})] + ], + revisedDocument: [ + [createParagraphInfo("пр", undefined, undefined, { + start: [{id: 0, name: "s6"}, { + id : 1, + name: "s3" + }] + }, { + comments: { + start: [{ + start: true, + id : 0 + }] + }, + }), createParagraphInfo("и", undefined, undefined, undefined, { + comments: { + start: [{ + start: true, + id : 1 + }, {start: true, id: 2}] + }, + textPr : { + Bold : true, + Underline: true, + BoldCS : true, + } + }), createParagraphInfo("в", undefined, undefined, {start: [{id: 5, name: "s2"}]}, { + textPr: { + Bold : true, + Underline: true, + BoldCS : true, + } + }), createParagraphInfo("ет", undefined, undefined, undefined, { + textPr: { + Bold : true, + BoldCS: true, + } + }), createParagraphInfo(" ", undefined, undefined, undefined, { + textPr: { + Bold : true, + FontSize : 12, + BoldCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("пр", undefined, undefined, { + start: [{ + id : 6, + name: "s7" + }, {id: 0}] + }, { + comments: {start: [{start: true, id: 3}]}, + textPr : {Strikeout: true, VertAlign: 1,} + }), createParagraphInfo("и", undefined, undefined, undefined, { + comments : { + start: [{ + start: false, + id : 1, + data : { + text : "5", + quoteText : "ивет пр", + arrAnswers: null + } + }] + }, textPr: {Strikeout: true, VertAlign: 2,} + }), createParagraphInfo("вет", undefined, undefined, { + start: [{ + id : 8, + name: "s1" + }, {id: 1}, {id: 5}, {id: 6}] + }, { + comments: {start: [{start: true, id: 4}]}, + textPr : {VertAlign: 1,} + }), createParagraphInfo(" ", undefined, undefined, {start: [{id: 8}]}, {}), createParagraphInfo("пр", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, { + textPr: { + Italic : true, + Strikeout: true, + VertAlign: 1, + ItalicCS : true, + } + }), createParagraphInfo("и", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, { + start: [{ + id : 11, + name: "s5" + }] + }, { + textPr: { + Italic : true, + Strikeout : true, + FontSize : 12, + VertAlign : 1, + ItalicCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("в", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, { + comments: { + start: [{ + start: false, + id : 2, + data : { + text : "4", + quoteText : "ивет привет при", + arrAnswers: null + } + }] + }, + textPr : { + Italic : true, + Strikeout : true, + FontSize : 12, + ItalicCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("е", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, { + comments: { + start: [{ + start: false, + id : 4, + data : { + text : "1", + quoteText : "вет прив", + arrAnswers: null + } + }] + }, + textPr : { + Italic : true, + Strikeout: true, + ItalicCS : true, + } + }), createParagraphInfo("т ", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, {textPr: {Strikeout: true,}}), createParagraphInfo("при", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, { + start: [{ + id : 12, + name: "s4" + }] + }, { + comments : { + start: [{ + start: false, + id : 3, + data : {text: "2", quoteText: "привет привет ", arrAnswers: null} + }, {start: false, id: 0, data: {text: "3", quoteText: "привет привет привет ", arrAnswers: null}}] + }, textPr: {Strikeout: true, VertAlign: 1,} + }), createParagraphInfo("вет", undefined, undefined, undefined, { + textPr: { + Strikeout: true, + VertAlign: 1, + } + }), createParagraphInfo(undefined, undefined, undefined, {start: [{id: 11}, {id: 12}]}, {})] + ] + }, + { + originalDocument: [ + [ + createParagraphInfo("привет привет") + ] + ], + revisedDocument: [ + [ + createParagraphInfo("привет hello"), + createParagraphInfo(" при", undefined, undefined, undefined, {textPr: {Bold: true}}), + createParagraphInfo("вет") + ] + ] } ]; @@ -1268,8 +1749,8 @@ const arrAnswers = [ finalDocument: [ [ createParagraphInfo('Hello', null, null, { - start: [{id: '1', name: 's1'}, {id: '2', name: 's2'}], - end : [{id: '1'}, {id: '2'}] + start: [{id: 1, name: 's1'}, {id: 2, name: 's2'}], + end : [{id: 1}, {id: 2}] }), createParagraphInfo(' Hello Hello') ] ] @@ -1279,8 +1760,8 @@ const arrAnswers = [ finalDocument: [ [ createParagraphInfo('Hello', null, null, { - start: [{id: '1', name: 's1'}], - end : [{id: '1'}] + start: [{id: 1, name: 's1'}], + end : [{id: 1}] }), createParagraphInfo(' Hello Hello') ] ] @@ -1289,57 +1770,57 @@ const arrAnswers = [ { finalDocument: [[ createParagraphInfo('П', null, null, { - start: [{id: '2', name: 's1'}, {id: '6', name: 's8'}, { - id: '10', name: 's3' + start: [{id: 2, name: 's1'}, {id: 6, name: 's8'}, { + id: 10, name: 's3' }] }), createParagraphInfo('ри', null, null, { start: [{ - id: '1', name: 's11' + id: 1, name: 's11' }] }), createParagraphInfo('ве', null, null, { - start: [{id: '3', name: 's2'}], end: [{id: '1'}] + start: [{id: 3, name: 's2'}], end: [{id: 1}] }), createParagraphInfo('т '), - createParagraphInfo('пр', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: '2'}]}), createParagraphInfo('и', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { + createParagraphInfo('пр', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: 2}]}), createParagraphInfo('и', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { end: [{ - id: '5', name: 's7' - }, {id: '3'}] + id: 5, name: 's7' + }, {id: 3}] }), createParagraphInfo('в', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null), createParagraphInfo('ет', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { start: [{ - id: '11', name: 's4' + id: 11, name: 's4' }] }), createParagraphInfo(' ', new CCreatingReviewInfo('Valdemar', reviewtype_Add, 3000000)), createParagraphInfo('п', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { start: [{ - id: '8', name: 's6' + id: 8, name: 's6' }] }), createParagraphInfo('ри', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { - start: [{id: '4', name: 's5'}], end: [{id: '4'}] + start: [{id: 4, name: 's5'}], end: [{id: 4}] }), - createParagraphInfo('в', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: '5'}]}), + createParagraphInfo('в', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: 5}]}), createParagraphInfo('ет', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, { - end: [{id: '6'}, {id: '7', name: 's9'}, {id: '12', name: 's10'}] - }), createParagraphInfo(' ', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: '7'}]}), + end: [{id: 6}, {id: 7, name: 's9'}, {id: 12, name: 's10'}] + }), createParagraphInfo(' ', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), null, {end: [{id: 7}]}), createParagraphInfo('прив', null, null, { end: [{ - id: '9', name: 's12' - }, {id: '8'}, {id: '9'}] + id: 9, name: 's12' + }, {id: 8}, {id: 9}] }), - createParagraphInfo('ет', null, null, {end: [{id: '10'}, {id: '11'}, {id: '12'}]})]] + createParagraphInfo('ет', null, null, {end: [{id: 10}, {id: 11}, {id: 12}]})]] }, /////////////////////////////////// -> 20 <- //////////////////////////////////////////// { finalDocument: [ [ createParagraphInfo('Hello ', createFindingReviewInfo(reviewtype_Add)), - createParagraphInfo('He', null, null, {end: [{id: '1', name: 's1'}]}), - createParagraphInfo('llo Hel', null, null, {end: [{id: '1'}]}), + createParagraphInfo('He', null, null, {end: [{id: 1, name: 's1'}]}), + createParagraphInfo('llo Hel', null, null, {end: [{id: 1}]}), createParagraphInfo('lo') ] ] @@ -1349,7 +1830,7 @@ const arrAnswers = [ finalDocument: [ [ createParagraphInfo('Hello ', createFindingReviewInfo(reviewtype_Remove)), - createParagraphInfo('Hello', null, null, {start: [{id: '1', name: 's1'}], end: [{id: '1'}]}), + createParagraphInfo('Hello', null, null, {start: [{id: 1, name: 's1'}], end: [{id: 1}]}), createParagraphInfo(' Hello') ] ] @@ -1361,7 +1842,7 @@ const arrAnswers = [ createParagraphInfo('Hello'), createParagraphInfo(' hello', createFindingReviewInfo(reviewtype_Add)), createParagraphInfo(' '), - createParagraphInfo('hello hello', null, null, {start: [{id: '1', name: 's1'}, {id: '1'}]}) + createParagraphInfo('hello hello', null, null, {start: [{id: 1, name: 's1'}, {id: 1}]}) ] ] }, @@ -1377,8 +1858,8 @@ const arrAnswers = [ }, {start: true, id: 2}], end : [{ id : 2, - data: {text: '1234'} - }, {id: 1, data: {text: '123'}}] + data: {text: '1234', quoteText: "hello"} + }, {id: 1, data: {text: '123', quoteText: "hello"}}] } }) @@ -1400,7 +1881,7 @@ const arrAnswers = [ start: [{ start: false, id : 0, - data : {text: '123'} + data : {text: '123', quoteText: "привет"} }] } }), createParagraphInfo('привет', undefined, undefined, undefined, { @@ -1415,7 +1896,7 @@ const arrAnswers = [ start: [{ start: false, id : 1, - data : {text: '123'} + data : {text: '123', quoteText: "привет"} }] } })] @@ -1595,7 +2076,7 @@ const arrAnswers = [ id : 0, data : { text: '123', - quoteText: 'привет ой' + quoteText: 'привет ойпривет' } }] } @@ -1702,12 +2183,12 @@ const arrAnswers = [ finalDocument: [ [createParagraphInfo('Привет ', undefined, undefined, { start: [{ - id : '7', + id : 7, name: 's6' - },{id: '2', name: 's1'}] + },{id: 2, name: 's1'}] }), createParagraphInfo('п', undefined, undefined, { start: [{ - id : '1', + id : 1, name: 's3' }] }, { @@ -1719,20 +2200,20 @@ const arrAnswers = [ } }), createParagraphInfo('ри', undefined, undefined, { start: [{ - id : '3', + id : 3, name: 's7' }] }), createParagraphInfo('в', undefined, undefined, { start: [{ - id : '5', + id : 5, name: 's2' }] }), createParagraphInfo('е', undefined, undefined, { - start: [{id: '1'}, { - id : '6', + start: [{id: 1}, { + id : 6, name: 's5' }] - }), createParagraphInfo('т', undefined, undefined, {start: [{id: '2'}]}), createParagraphInfo(' ', undefined, undefined, undefined, { + }), createParagraphInfo('т', undefined, undefined, {start: [{id: 2}]}), createParagraphInfo(' ', undefined, undefined, undefined, { comments: { start: [{ start: false, @@ -1746,7 +2227,7 @@ const arrAnswers = [ } }), createParagraphInfo('пр', undefined, undefined, { start: [{ - id : '4', + id : 4, name: 's4' }] }), createParagraphInfo('ивет', undefined, undefined, undefined, { @@ -1756,7 +2237,7 @@ const arrAnswers = [ id : 2 }] } - }), createParagraphInfo(' ', undefined, undefined, {start: [{id: '3'}, {id: '4'}, {id: '5'}]}), createParagraphInfo('п', undefined, undefined), createParagraphInfo('рив', undefined, undefined, {start: [{id: '6'}]}), createParagraphInfo('ет', undefined, undefined, undefined, { + }), createParagraphInfo(' ', undefined, undefined, {start: [{id: 3}, {id: 4}, {id: 5}]}), createParagraphInfo('п', undefined, undefined), createParagraphInfo('рив', undefined, undefined, {start: [{id: 6}]}), createParagraphInfo('ет', undefined, undefined, undefined, { comments: { start: [{ start: false, @@ -1768,7 +2249,7 @@ const arrAnswers = [ } }] } - }), createParagraphInfo(undefined, undefined, undefined, {start: [{id: '7'}]}, { + }), createParagraphInfo(undefined, undefined, undefined, {start: [{id: 7}]}, { comments: { start: [{ start: false, @@ -1786,7 +2267,7 @@ const arrAnswers = [ /////////////////////////////////// -> 36 <- //////////////////////////////////////////// { finalDocument: [ - [createParagraphInfo('Привет', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: '3', name: 's1'}]}, {comments:{start:[{start: true, id: 0}]}}), createParagraphInfo(' ', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: '1', name: 's3'}]}), createParagraphInfo('при', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: '2', name: 's2'}]}, {comments:{start:[{start: true, id: 1}]}}), createParagraphInfo('вет', new CCreatingReviewInfo('Mark Potato', reviewtype_Add, 1000), undefined, {start: [{id: '1'}]}), createParagraphInfo(' приве', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, {comments:{start:[{start: false, id: 1, data:{text: '123', quoteText: 'привет', arrAnswers: null}}]}}), createParagraphInfo('т', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: '2'}]}), createParagraphInfo(undefined, undefined, undefined, {start: [{id: '3'}]}, {comments:{start:[{start: false, id: 0, data:{text: '123', quoteText: 'Привет привет привет', arrAnswers: null}}]}})] + [createParagraphInfo('Привет', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: 3, name: 's1'}]}, {comments:{start:[{start: true, id: 0}]}}), createParagraphInfo(' ', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: 1, name: 's3'}]}), createParagraphInfo('при', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: 2, name: 's2'}]}, {comments:{start:[{start: true, id: 1}]}}), createParagraphInfo('вет', new CCreatingReviewInfo('Mark Potato', reviewtype_Add, 1000), undefined, {start: [{id: 1}]}), createParagraphInfo(' приве', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, {comments:{start:[{start: false, id: 1, data:{text: '123', quoteText: 'привет', arrAnswers: null}}]}}), createParagraphInfo('т', new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, {start: [{id: 2}]}), createParagraphInfo(undefined, undefined, undefined, {start: [{id: 3}]}, {comments:{start:[{start: false, id: 0, data:{text: '123', quoteText: 'Привет привет привет', arrAnswers: null}}]}})] ] }, /////////////////////////////////// -> 37 <- //////////////////////////////////////////// @@ -1888,6 +2369,7 @@ const arrAnswers = [ createParagraphInfo("》的规定,达成如下协议,并由双方共同恪守。")] ] }, + /////////////////////////////////// -> 40 <- //////////////////////////////////////////// { finalDocument: [ [createParagraphInfo("1.这是一个测试段落,这是一个测试段落,这是一个测试段落,这是一个测试段落")], @@ -1899,7 +2381,8 @@ const arrAnswers = [ end: [ {id: 1, data: { - text: "comment" + text: "comment", + quoteText: ",这是一个测试段落" } } ] @@ -1907,7 +2390,7 @@ const arrAnswers = [ [createParagraphInfo("3.这是一个测试段落,这是一个测试段落,这是一个测试段落,这是一个测试段落")] ] }, - /////////////////////////////////// -> 40 <- //////////////////////////////////////////// + /////////////////////////////////// -> 41 <- //////////////////////////////////////////// { finalDocument: [ [createParagraphInfo("1.这是一个测试段落,这是一个测试段落,这是一个测试段落,这是一个测试段落")], @@ -1919,13 +2402,329 @@ const arrAnswers = [ end: [ {id: 1, data: { - text: "comment" + text: "comment", + quoteText: ",这是一个测试段落" } } ] }}), createParagraphInfo(",这是一个测试段落")], [createParagraphInfo("3.这是一个测试段落,这是一个测试段落,这是一个测试段落,这是一个测试段落")] ] + }, + /////////////////////////////////// -> 42 <- //////////////////////////////////////////// + { + finalDocument: [ + [ + createParagraphInfo("П", undefined, undefined, undefined,{textPr: {VertAlign: AscCommon.vertalign_SubScript}}), + createParagraphInfo("риве", undefined, undefined, undefined,{textPr: {VertAlign: AscCommon.vertalign_SuperScript}}), + createParagraphInfo("т "), + createParagraphInfo("прив", undefined, undefined, undefined,{textPr: {Underline: true}}), + createParagraphInfo("ет "), + createParagraphInfo("пр", undefined, undefined, undefined,{textPr: {Underline: true}}), + createParagraphInfo("и", undefined, undefined, undefined,{textPr: {Bold: true}}), + createParagraphInfo("ве", undefined, undefined, undefined,{textPr: {Bold: true, Italic: true}}), + createParagraphInfo("т", undefined, undefined, undefined,{textPr: {Italic: true}}) + ] + ] + }, + /////////////////////////////////// -> 43 <- //////////////////////////////////////////// + { + finalDocument: [ + [ + createParagraphInfo("пр", new CCreatingReviewInfo("Valdemar", reviewtype_Add, 3000000)), + createParagraphInfo("иве", new CCreatingReviewInfo("Valdemar", reviewtype_Add, 3000000), undefined, undefined, {textPr: {VertAlign: AscFormat.vertalign_SuperScript}}), + createParagraphInfo("т ", new CCreatingReviewInfo("Valdemar", reviewtype_Add, 3000000)), + createParagraphInfo("п"), + createParagraphInfo("риве", undefined, undefined, undefined, {textPr: {Strikeout: true}}), + createParagraphInfo("т привет п"), + createParagraphInfo("ривет", undefined, undefined, undefined, {textPr: {Bold: true}}) + ] + ] + }, + { + finalDocument: [ + [ + createParagraphInfo("привет привет привет") + ] + ] + }, + { + finalDocument: [ + [createParagraphInfo("пр", undefined, undefined, {start: [{id: 0, name: "s4"}]}, { + comments : { + start: [{ + start: true, + id : 0 + }] + }, textPr: {VertAlign: 2,} + }), createParagraphInfo("и", undefined, undefined, { + start: [{ + id : 2, + name: "s7" + }] + }, {textPr: {VertAlign: 2,}}), createParagraphInfo("в"), createParagraphInfo("ет ", undefined, undefined, { + start: [{ + id : 3, + name: "s2" + }, {id: 4, name: "s3"}, {id: 5, name: "s5"}, {id: 0}] + }, {textPr: {VertAlign: 1,}}), createParagraphInfo("при", undefined, undefined, undefined, { + textPr: { + Bold : true, + FontSize : 14, + VertAlign : 1, + BoldCS : true, + FontSizeCS: 14, + } + }), createParagraphInfo("в", undefined, undefined, {start: [{id: 3}], end: [{ + id : 6, + name: "s1" + }]}, { + textPr: { + Bold : true, + Italic : true, + FontSize : 14, + VertAlign : 1, + BoldCS : true, + ItalicCS : true, + FontSizeCS: 14, + } + }), createParagraphInfo("е", undefined, undefined, { + start: [{id: 2}, {id: 4}] + }, { + comments: {start: [{start: true, id: 1}]}, + textPr : {Bold: true, Italic: true, BoldCS: true, ItalicCS: true,} + }), createParagraphInfo("т", undefined, undefined, undefined, { + textPr: { + Bold : true, + BoldCS: true, + } + }), createParagraphInfo(" ", undefined, undefined, undefined, { + textPr: { + Bold : true, + FontSize : 12, + BoldCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("п", undefined, undefined, undefined, { + comments: { + start: [{ + start: false, + id : 1, + data : { + text : "1", + quoteText : "ет ", + arrAnswers: null + } + }, {start: true, id: 2}] + }, + textPr : { + Bold : true, + FontSize : 12, + BoldCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("рив", undefined, undefined, {start: [{id: 9, name: "s6"}]}, { + textPr: { + Bold : true, + BoldCS: true, + } + }), createParagraphInfo("ет ", undefined, undefined, {start: [{id: 6}, {id: 5}]}, {textPr: {Underline: true,}}), createParagraphInfo("п", undefined, undefined, {start: [{id: 9}]}, { + comments: { + start: [{ + start: false, + id : 0, + data : { + text : "3", + quoteText : "привет привет привет ", + arrAnswers: null + } + }] + }, + textPr : {Underline: true,} + }), createParagraphInfo("рив", undefined, undefined, undefined, { + textPr: { + Underline : true, + FontSize : 12, + FontSizeCS: 12, + } + }), createParagraphInfo("ет", undefined, undefined, undefined, {textPr: {Underline: true,}}), createParagraphInfo(undefined, undefined, undefined, undefined, { + comments: { + start: [{ + start: false, + id : 2, + data : { + text : "2", + quoteText : "привет привет", + arrAnswers: null + } + }] + }, + })] + ] + }, + { + finalDocument: [ + [createParagraphInfo("пр", undefined, undefined, { + start: [{id: 0, name: "s6"}, { + id : 1, + name: "s3" + }] + }, { + comments: { + start: [{ + start: true, + id : 0 + }] + }, + }), createParagraphInfo("и", undefined, undefined, undefined, { + comments: { + start: [{ + start: true, + id : 1 + }, {start: true, id: 2}] + }, + textPr : { + Bold : true, + Underline: true, + BoldCS : true, + } + }), createParagraphInfo("в", undefined, undefined, {start: [{id: 5, name: "s2"}]}, { + textPr: { + Bold : true, + Underline: true, + BoldCS : true, + } + }), createParagraphInfo("ет", undefined, undefined, undefined, { + textPr: { + Bold : true, + BoldCS: true, + } + }), createParagraphInfo(" ", undefined, undefined, { + end: [{id: 0}] + }, { + textPr: { + Bold : true, + FontSize : 12, + BoldCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("пр", undefined, undefined, { + start: [{ + id : 6, + name: "s7" + }] + }, { + comments: {start: [{start: true, id: 3}]}, + textPr : {Strikeout: true, VertAlign: 1,} + }), createParagraphInfo("и", undefined, undefined, { + end: [{ + id : 8, + name: "s1" + }, {id: 5}] + }, { + comments : { + start: [{ + start: false, + id : 1, + data : { + text : "5", + quoteText : "ивет пр", + arrAnswers: null + } + }] + }, textPr: {Strikeout: true, VertAlign: 2,} + }), createParagraphInfo("вет", undefined, undefined, { + start: [{id: 1}, {id: 6}] + }, { + comments: {start: [{start: true, id: 4}]}, + textPr : {VertAlign: 1,} + }), createParagraphInfo(" ", undefined, undefined, {start: [{id: 8}]}, {}), createParagraphInfo("пр", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, { + textPr: { + Italic : true, + Strikeout: true, + VertAlign: 1, + ItalicCS : true, + } + }), createParagraphInfo("и", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, { + start: [{ + id : 11, + name: "s5" + }] + }, { + textPr: { + Italic : true, + Strikeout : true, + FontSize : 12, + VertAlign : 1, + ItalicCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("в", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, { + comments: { + start: [{ + start: false, + id : 2, + data : { + text : "4", + quoteText : "ивет привет при", + arrAnswers: null + } + }] + }, + textPr : { + Italic : true, + Strikeout : true, + FontSize : 12, + ItalicCS : true, + FontSizeCS: 12, + } + }), createParagraphInfo("е", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, { + comments: { + start: [{ + start: false, + id : 4, + data : { + text : "1", + quoteText : "вет прив", + arrAnswers: null + } + }] + }, + textPr : { + Italic : true, + Strikeout: true, + ItalicCS : true, + } + }), createParagraphInfo("т ", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, undefined, {textPr: {Strikeout: true,}}), createParagraphInfo("при", new CCreatingReviewInfo('Mark Potato', reviewtype_Remove, 1000), undefined, { + start: [{ + id : 12, + name: "s4" + }] + }, { + comments : { + start: [{ + start: false, + id : 3, + data : {text: "2", quoteText: "привет привет ", arrAnswers: null} + }, {start: false, id: 0, data: {text: "3", quoteText: "привет привет привет ", arrAnswers: null}}] + }, textPr: {Strikeout: true, VertAlign: 1,} + }), createParagraphInfo("вет", undefined, undefined, undefined, { + textPr: { + Strikeout: true, + VertAlign: 1, + } + }), createParagraphInfo(undefined, undefined, undefined, {start: [{id: 11}, {id: 12}]}, {})] + ] + }, + { + finalDocument: [ + [ + createParagraphInfo("привет"), + createParagraphInfo(" hello", new CCreatingReviewInfo("Valdemar", reviewtype_Add, 3000000)), + createParagraphInfo(" при", undefined, undefined, undefined, {textPr: {Bold: true}}), + createParagraphInfo("вет") + ] + ] } ]; diff --git a/tests/word/numbering/numberingApplicator.js b/tests/word/numbering/numberingApplicator.js index b47db4e7a4..bb6dbd0447 100644 --- a/tests/word/numbering/numberingApplicator.js +++ b/tests/word/numbering/numberingApplicator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -298,4 +298,52 @@ $(function () CheckParagraph(6, "1."); CheckParagraph(7, "a)"); }); + + QUnit.test("Applying numbering by selecting to paragraphs with left indentation", function (assert) + { + // Check situation from bug 71056 + + function CheckParagraph(paraIndex, text) + { + let p = logicDocument.GetElement(paraIndex); + assert.strictEqual(p.GetNumberingText(false), text, "Check numbering text for paragraph " + paraIndex); + } + + function GenerateDocument() + { + AscTest.ClearDocument(); + + for (let i = 0; i < 4; ++i) + { + let p = AscTest.CreateParagraph(); + p.SetParagraphIndent({Left : 5, FirstLine : 15}); + logicDocument.PushToContent(p); + let run = new AscWord.CRun(); + p.AddToContent(0, run); + run.AddText("Paragraph " + i); + } + assert.strictEqual(logicDocument.GetElementsCount(), 4, "Check number of paragraphs"); + } + + GenerateDocument(); + logicDocument.SelectAll(); + logicDocument.SetParagraphNumbering(AscWord.GetNumberingObjectByDeprecatedTypes(1, 2)); + AscTest.Recalculate(); + + CheckParagraph(0, "1)"); + CheckParagraph(1, "2)"); + CheckParagraph(2, "3)"); + CheckParagraph(3, "4)"); + + GenerateDocument(); + logicDocument.GetElement(0).SetParagraphIndent({Left : 5, FirstLine : 25}); + logicDocument.SelectAll(); + logicDocument.SetParagraphNumbering(AscWord.GetNumberingObjectByDeprecatedTypes(1, 2)); + AscTest.Recalculate(); + + CheckParagraph(0, "i."); + CheckParagraph(1, "b."); + CheckParagraph(2, "c."); + CheckParagraph(3, "d."); + }); }); diff --git a/tests/word/numbering/numberingAutocorrect.js b/tests/word/numbering/numberingAutocorrect.js index 6a7b55ced5..9a4e4516b4 100644 --- a/tests/word/numbering/numberingAutocorrect.js +++ b/tests/word/numbering/numberingAutocorrect.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -130,7 +130,7 @@ $(function () { AscTest.ClearDocument(); let num = CreateNum(subtype); - let numPr = new AscWord.CNumPr(num.GetId(), 0); + let numPr = new AscWord.NumPr(num.GetId(), 0); for (let i = 0; i < 4; i += 1) { const p = AscTest.CreateParagraph(); diff --git a/tests/word/numbering/numberingCalculation.js b/tests/word/numbering/numberingCalculation.js index adf50723e4..a9339547b9 100644 --- a/tests/word/numbering/numberingCalculation.js +++ b/tests/word/numbering/numberingCalculation.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -177,7 +177,7 @@ $(function () p2.SetParagraphStyle(style.GetName()); let num = CreateNum(); - let numPr = new AscWord.CNumPr(num.GetId(), 0); + let numPr = new AscWord.NumPr(num.GetId(), 0); let collection = logicDocument.GetNumberingCollection(); let paraArray = collection.GetAllParagraphsByNumbering(numPr); diff --git a/tests/word/plugins/pluginsApi.js b/tests/word/plugins/pluginsApi.js index 1f3f8a432b..e8914fa9c1 100644 --- a/tests/word/plugins/pluginsApi.js +++ b/tests/word/plugins/pluginsApi.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/revisions/document-content.html b/tests/word/revisions/document-content.html new file mode 100644 index 0000000000..a07b43acb6 --- /dev/null +++ b/tests/word/revisions/document-content.html @@ -0,0 +1,36 @@ + + + + + + Test the paragraph review + + + + + + + + + + + + + + + + + +

                  Test the revisions on the document content level

                  +

                  +
                  +

                  +
                    +
                    test markup, will be hidden
                    + + diff --git a/tests/word/revisions/document-content.js b/tests/word/revisions/document-content.js new file mode 100644 index 0000000000..0642d18d7c --- /dev/null +++ b/tests/word/revisions/document-content.js @@ -0,0 +1,351 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +$(function () +{ + let logicDocument = AscTest.CreateLogicDocument(); + + QUnit.module("Test the revisions on the document content level"); + + AscTest.PressEnter = function() + { + logicDocument.AddNewParagraph(); + }; + + QUnit.test("Test adding a new paragraph if track revisions is on", function (assert) + { + let isTrack = false; + + let p1, p2, p3, p4; + function initTestDocument() + { + AscTest.SetTrackRevisions(false); + AscTest.ClearDocument(); + + p1 = AscTest.CreateParagraph(); + p2 = AscTest.CreateParagraph(); + p3 = AscTest.CreateParagraph(); + p4 = AscTest.CreateParagraph(); + logicDocument.PushToContent(p1); + logicDocument.PushToContent(p2); + logicDocument.PushToContent(p3); + logicDocument.PushToContent(p4); + + AscTest.MoveCursorToParagraph(p1); + AscTest.EnterText("Test"); + AscTest.MoveCursorToParagraph(p2); + AscTest.EnterText("Text text"); + AscTest.MoveCursorToParagraph(p3); + AscTest.EnterText("Test text"); + + p2.SetReviewType(reviewtype_Add); + p3.SetReviewType(reviewtype_Remove); + AscTest.SetTrackRevisions(isTrack); + } + + function testReviewTypes(types) + { + assert.strictEqual(logicDocument.GetElementsCount(), types.length, "Check number of paragraphs"); + if (types.length !== logicDocument.GetElementsCount()) + return; + + for (let i = 0; i < types.length; ++i) + { + assert.strictEqual(logicDocument.GetElement(i).GetReviewType(), types[i], "Check review type for " + (i) + " paragraph"); + } + } + + function testAddingNewParagraph(paraIndex, types) + { + // Предполагаем, что параграф не пустой (как минимум 3 символа), проверяем добавление параграфа + // когда курсор стоит в начале/середине/конце + initTestDocument(); + let p = logicDocument.GetElement(paraIndex); + AscTest.MoveCursorToParagraph(p, true); + AscTest.PressEnter(); + testReviewTypes(types); + + initTestDocument(); + p = logicDocument.GetElement(paraIndex) + AscTest.MoveCursorToParagraph(p, true); + AscTest.MoveCursorRight(false, false, 2); + AscTest.PressEnter(); + testReviewTypes(types); + + initTestDocument(); + p = logicDocument.GetElement(paraIndex) + AscTest.MoveCursorToParagraph(p, false); + AscTest.PressEnter(); + testReviewTypes(types); + } + + + initTestDocument(); + testReviewTypes([ + reviewtype_Common, + reviewtype_Add, + reviewtype_Remove, + reviewtype_Common + ]); + + AscTest.SetTrackRevisions(false); + + testAddingNewParagraph(0, + [ + reviewtype_Common, + reviewtype_Common, + reviewtype_Add, + reviewtype_Remove, + reviewtype_Common + ] + ); + + testAddingNewParagraph(1, + [ + reviewtype_Common, + reviewtype_Common, + reviewtype_Add, + reviewtype_Remove, + reviewtype_Common + ] + ); + + testAddingNewParagraph(2, + [ + reviewtype_Common, + reviewtype_Add, + reviewtype_Common, + reviewtype_Remove, + reviewtype_Common + ] + ); + + AscTest.SetTrackRevisions(true); + isTrack = true; + + testAddingNewParagraph(0, + [ + reviewtype_Add, + reviewtype_Common, + reviewtype_Add, + reviewtype_Remove, + reviewtype_Common + ] + ); + + testAddingNewParagraph(1, + [ + reviewtype_Common, + reviewtype_Add, + reviewtype_Add, + reviewtype_Remove, + reviewtype_Common + ] + ); + + testAddingNewParagraph(2, + [ + reviewtype_Common, + reviewtype_Add, + reviewtype_Add, + reviewtype_Remove, + reviewtype_Common + ] + ); + + AscTest.SetTrackRevisions(false); + }); + + QUnit.testStart(function() + { + AscTest.ClearDocument(); + AscTest.SetTrackRevisions(false); + }); + + QUnit.module("Remove/replace text in a block-level sdt"); + QUnit.test("Check replacing text in a block-level content control (bug 67071)", function(assert) + { + let p = AscTest.CreateParagraph(); + let cc = AscTest.CreateBlockLvlSdt(); + + logicDocument.AddToContent(0, p); + logicDocument.AddToContent(0, cc); + + p = cc.GetElement(0); + + cc.SelectContentControl(); + AscTest.EnterText("Text"); + + cc.SelectContentControl(); + + AscTest.SetTrackRevisions(true); + + AscTest.EnterText("123"); + assert.deepEqual( + AscTest.GetParagraphReviewText(p), + [ + [reviewtype_Remove, "Text"], + [reviewtype_Add, "123"], + ], + "Select text. Enter text over selection" + ); + + AscTest.AcceptAllRevisionChanges(); + assert.strictEqual(cc.IsUseInDocument(), true, "Check if content control is still present in the document"); + assert.deepEqual( + AscTest.GetBlockLevelSdtReviewText(cc), + [ + [reviewtype_Common, "123"] + ], + "Check content control text after accepting all changes" + ); + }); + QUnit.test("Check accepting all changes when entire content of a block-level sdt was deleted", function(assert) + { + let p = AscTest.CreateParagraph(); + let cc = AscTest.CreateBlockLvlSdt(); + + logicDocument.AddToContent(0, p); + logicDocument.AddToContent(0, cc); + + p = cc.GetElement(0); + + cc.SelectContentControl(); + AscTest.EnterText("Text"); + + AscTest.SetTrackRevisions(true); + + cc.SelectContentControl(); + logicDocument.Remove(-1); + + assert.deepEqual( + AscTest.GetParagraphReviewText(p), + [ + [reviewtype_Remove, "Text"], + ], + "Select text. Enter text over selection" + ); + + AscTest.AcceptAllRevisionChanges(); + assert.strictEqual(cc.IsUseInDocument(), false, "Check if content control is still present in the document"); + assert.strictEqual(logicDocument.GetElementsCount(), 1, "Check the number of elements in the document"); + }); + QUnit.test("Check accepting changes in the special case when entire document was deleted (including a block-level sdt) (bug 69615)", function(assert) + { + function test(bySelection) + { + AscTest.ClearDocument(); + AscTest.SetTrackRevisions(false); + + let pAfter = AscTest.CreateParagraph(); + let pBefore = AscTest.CreateParagraph(); + let cc = AscTest.CreateBlockLvlSdt(); + + logicDocument.AddToContent(0, pAfter); + logicDocument.AddToContent(0, cc); + logicDocument.AddToContent(0, pBefore); + + AscTest.AddTextToParagraph(pAfter, "After"); + AscTest.AddTextToParagraph(pBefore, "Before"); + + p = cc.GetElement(0); + + cc.SelectContentControl(); + AscTest.EnterText("Inside content control"); + + AscTest.SetTrackRevisions(true); + + logicDocument.SelectAll(); + logicDocument.Remove(-1); + + if (bySelection) + { + logicDocument.SelectAll(); + AscTest.AcceptRevisionChangesBySelection(); + } + else + { + AscTest.AcceptAllRevisionChanges(); + } + + assert.true(true, bySelection ? "BySelection" : "All"); + + assert.strictEqual(cc.IsUseInDocument(), false, "Check if content control is still present in the document"); + assert.strictEqual(logicDocument.GetElementsCount(), 1, "Check the number of elements in the document"); + assert.strictEqual(logicDocument.GetElement(0).IsParagraph() && logicDocument.GetElement(0).IsEmpty(), true, "Check if the last element in the document is an empty paragraph"); + } + + test(false); + test(true); + }); + QUnit.test("Check rejecting changes in the special case when entire document was added (including a block-level sdt)", function(assert) + { + function test(bySelection) + { + AscTest.ClearDocument(); + AscTest.SetTrackRevisions(true); + + let pAfter = AscTest.CreateParagraph(); + let pBefore = AscTest.CreateParagraph(); + let cc = AscTest.CreateBlockLvlSdt(); + + logicDocument.AddToContent(0, pAfter); + logicDocument.AddToContent(0, cc); + logicDocument.AddToContent(0, pBefore); + + AscTest.AddTextToParagraph(pAfter, "After"); + AscTest.AddTextToParagraph(pBefore, "Before"); + + p = cc.GetElement(0); + + cc.SelectContentControl(); + AscTest.EnterText("Inside content control"); + + logicDocument.SelectAll(); + + if (bySelection) + AscTest.RejectRevisionChangesBySelection(); + else + AscTest.RejectAllRevisionChanges(); + + assert.true(true, bySelection ? "BySelection" : "All"); + + assert.strictEqual(cc.IsUseInDocument(), false, "Check if content control is still present in the document"); + assert.strictEqual(logicDocument.GetElementsCount(), 1, "Check the number of elements in the document"); + assert.strictEqual(logicDocument.GetElement(0).IsParagraph() && logicDocument.GetElement(0).IsEmpty(), true, "Check if the last element in the document is an empty paragraph"); + } + + test(false); + test(true); + }); + +}); diff --git a/tests/word/revisions/paragraph.js b/tests/word/revisions/paragraph.js index ef74fcedb0..176726a1ad 100644 --- a/tests/word/revisions/paragraph.js +++ b/tests/word/revisions/paragraph.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/shortcuts/events.js b/tests/word/shortcuts/events.js index 2091480748..6823abaeca 100644 --- a/tests/word/shortcuts/events.js +++ b/tests/word/shortcuts/events.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/shortcuts/shortcuts.js b/tests/word/shortcuts/shortcuts.js index 132e5eb348..32ee50ed6b 100644 --- a/tests/word/shortcuts/shortcuts.js +++ b/tests/word/shortcuts/shortcuts.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/tests/word/styles/displayStyle.js b/tests/word/styles/displayStyle.js index ede1a7714b..205e41eeb6 100644 --- a/tests/word/styles/displayStyle.js +++ b/tests/word/styles/displayStyle.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/styles/paraPr.js b/tests/word/styles/paraPr.js index 07b3339985..501e2bc554 100644 --- a/tests/word/styles/paraPr.js +++ b/tests/word/styles/paraPr.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/styles/styleApplicator.js b/tests/word/styles/styleApplicator.js index f6c356bd93..63352ad429 100644 --- a/tests/word/styles/styleApplicator.js +++ b/tests/word/styles/styleApplicator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/tests/word/text-autocorrection/as-you-type.html b/tests/word/text-autocorrection/as-you-type.html new file mode 100644 index 0000000000..cba00765cb --- /dev/null +++ b/tests/word/text-autocorrection/as-you-type.html @@ -0,0 +1,36 @@ + + + + + + Test 'as you type' autocorrections + + + + + + + + + + + + + + + + + +

                    Test 'as you type' autocorrections

                    +

                    +
                    +

                    +
                      +
                      test markup, will be hidden
                      + + diff --git a/tests/word/text-autocorrection/as-you-type.js b/tests/word/text-autocorrection/as-you-type.js new file mode 100644 index 0000000000..d9145778de --- /dev/null +++ b/tests/word/text-autocorrection/as-you-type.js @@ -0,0 +1,116 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +$(function () +{ + AscCommon.CFirstLetterExceptions.prototype.GetMaxLen = function() + { + return 7; + } + + let logicDocument = AscTest.CreateLogicDocument(); + let p; + + QUnit.module("Test 'as you type' autocorrections"); + + QUnit.testStart(function() + { + AscTest.ClearDocument(); + }); + + function enterAndCheckText(assert, text, checkText) + { + p = AscTest.CreateParagraph(); + logicDocument.AddToContent(0, p); + AscTest.MoveCursorToParagraph(p, true); + AscTest.EnterText(text); + AscTest.PressKey(AscTest.Key.space); + assert.strictEqual(AscTest.GetParagraphText(p), checkText + " ", text + " -> " + checkText); + } + + QUnit.test("Test: capitalize first letter of the sentence", function (assert) + { + logicDocument.SetAutoCorrectFirstLetterOfSentences(true); + enterAndCheckText(assert, "hello", "Hello"); + enterAndCheckText(assert, "привет", "Привет"); + enterAndCheckText(assert, "გამარჯობა", "გამარჯობა"); // bug 69089 + enterAndCheckText(assert, "Hello world! hello", "Hello world! Hello"); + enterAndCheckText(assert, "Hello world! hello world", "Hello world! hello world"); + }); + + QUnit.test("Test: capitalize first letter of the sentence in table and capitalize first letter of table cell", function (assert) + { + let table = AscTest.CreateTable(3, 3); + logicDocument.AddToContent(0, table); + let dc = table.GetRow(0).GetCell(0).GetContent(); + let p; + + function enterAndCheckTextToCell(assert, text, checkText) + { + dc.ClearContent(false); + p = AscTest.CreateParagraph(); + dc.AddToContent(0, p); + AscTest.MoveCursorToParagraph(p, true); + AscTest.EnterText(text); + AscTest.PressKey(AscTest.Key.space); + assert.strictEqual(AscTest.GetParagraphText(p), checkText + " ", text + " -> " + checkText); + } + + logicDocument.SetAutoCorrectFirstLetterOfCells(false); + logicDocument.SetAutoCorrectFirstLetterOfSentences(false); + enterAndCheckTextToCell(assert, "hello", "hello"); + enterAndCheckTextToCell(assert, "привет", "привет"); + enterAndCheckTextToCell(assert, "Hello world! hello", "Hello world! hello"); + enterAndCheckTextToCell(assert, "Hello world! hello world", "Hello world! hello world"); + + logicDocument.SetAutoCorrectFirstLetterOfCells(true); + logicDocument.SetAutoCorrectFirstLetterOfSentences(true); + enterAndCheckTextToCell(assert, "hello", "Hello"); + enterAndCheckTextToCell(assert, "привет", "Привет"); + enterAndCheckTextToCell(assert, "Hello world! hello", "Hello world! Hello"); + enterAndCheckTextToCell(assert, "Hello world! hello world", "Hello world! hello world"); + + logicDocument.SetAutoCorrectFirstLetterOfCells(false); + logicDocument.SetAutoCorrectFirstLetterOfSentences(true); + enterAndCheckTextToCell(assert, "hello", "hello"); + enterAndCheckTextToCell(assert, "привет", "привет"); + enterAndCheckTextToCell(assert, "Hello world! hello", "Hello world! Hello"); + enterAndCheckTextToCell(assert, "Hello world! hello world", "Hello world! hello world"); + + logicDocument.SetAutoCorrectFirstLetterOfCells(true); + logicDocument.SetAutoCorrectFirstLetterOfSentences(false); + enterAndCheckTextToCell(assert, "hello", "Hello"); + enterAndCheckTextToCell(assert, "привет", "Привет"); + enterAndCheckTextToCell(assert, "Hello world! hello", "Hello world! hello"); + enterAndCheckTextToCell(assert, "Hello world! hello world", "Hello world! hello world"); + }); +}); diff --git a/tests/word/unit-tests/deleted-text-recovery.html b/tests/word/unit-tests/deleted-text-recovery.html new file mode 100644 index 0000000000..cbd2ccf8e6 --- /dev/null +++ b/tests/word/unit-tests/deleted-text-recovery.html @@ -0,0 +1,36 @@ + + + + + + Deleted Text Recovery Test + + + + + + + + + + + + + + + + + +

                      Deleted Text Recovery Test

                      +

                      +
                      +

                      +
                        +
                        test markup, will be hidden
                        + + diff --git a/tests/word/unit-tests/deleted-text-recovery.js b/tests/word/unit-tests/deleted-text-recovery.js new file mode 100644 index 0000000000..08d4c6e518 --- /dev/null +++ b/tests/word/unit-tests/deleted-text-recovery.js @@ -0,0 +1,739 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2023 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +$(function () { + let logicDocument = AscTest.CreateLogicDocument(); + logicDocument.SetBoldText = function () + { + let oTextPr = logicDocument.GetCalculatedTextPr(); + if (oTextPr) + { + if (!logicDocument.IsSelectionLocked(AscCommon.changestype_Paragraph_TextProperties)) + { + logicDocument.StartAction(AscDFH.historydescription_Document_SetTextBoldHotKey); + logicDocument.AddToParagraph(new ParaTextPr({Bold : oTextPr.Bold !== true})); + logicDocument.UpdateInterface(); + logicDocument.FinalizeAction(); + } + } + } + + let versionHistory = logicDocument.Api.VersionHistory = new Asc.asc_CVersionHistory(); + versionHistory.asc_SetUserId(0); + versionHistory.asc_SetUserName("AnonymousUser"); + versionHistory.asc_SetDateOfRevision(new Date().getTime()); + + let oCurDelRecover = null; + let oCollaborativeHistory = null; + let arr = []; + let arrPoints = []; + function AddParagraph(pos) + { + let p = AscTest.CreateParagraph(); + logicDocument.AddToContent(pos, p); + return p; + } + function CreateRun(text) + { + let r = AscTest.CreateRun(); + r.AddText(text); + return r; + } + function DelLast(nCount, isShift) + { + if (isShift) + { + AscTest.MoveCursorLeft(true, false, nCount); + AscTest.PressKey(AscTest.Key.backspace); + } + else + { + for (let i = 0; i < nCount; i++) + AscTest.PressKey(AscTest.Key.backspace); + } + + } + + function Init(nPos, isMove) + { + UpdateChanges(nPos, isMove); + logicDocument.CollaborativeEditing.CoHistory.InitTextRecover(); + + oCollaborativeHistory = logicDocument.CollaborativeEditing.CoHistory; + oCurDelRecover = AscCommon.CollaborativeEditing.CoHistory.textRecovery; + } + + function UpdateChanges (nPoint, isMove) + { + let arr = []; + let nLengthOfPoints = AscCommon.History.Points.length - 1; + + if (nPoint !== undefined) + { + for (let i = nLengthOfPoints; i >= nPoint; i--) + { + if (isMove) + arr.push(new AscCommon.CChangesTableIdDescription()); + AscCommon.History.GetChangesFromPoint(i, arr); + } + + arr = arr.reverse(); + } + else + { + for (let i = 0; i <= nLengthOfPoints; i++) + { + if (isMove) + arr.push(new AscCommon.CChangesTableIdDescription()); + AscCommon.History.GetChangesFromPoint(i, arr); + } + } + + AscCommon.CollaborativeEditing.CoHistory.Changes = arr; + } + + function ShowDelText() + { + oCurDelRecover.RecoverDeletedText(); + } + + function UndoDelText() + { + oCurDelRecover.UndoRecoveredText(); + } + + function MoveToPoint(nPos) + { + logicDocument.CollaborativeEditing.CoHistory.NavigationRevisionHistoryByStep(nPos); + } + + function Prev() + { + logicDocument.CollaborativeEditing.CoHistory.NavigationRevisionHistoryByStep(logicDocument.CollaborativeEditing.CoHistory.GetGlobalPointIndex() - 1); + } + + function Next() + { + logicDocument.CollaborativeEditing.CoHistory.NavigationRevisionHistoryByStep(logicDocument.CollaborativeEditing.CoHistory.GetGlobalPointIndex() + 1); + } + + function CheckRuns(assert, paragraph, arr) + { + for (let i = 0; i < paragraph.Content.length - 1; i++) + { + if (!arr[i]) + return; + + let name = arr[i][1] === reviewtype_Common ? "reviewtype_Common" : "reviewtype_Remove"; + let str ="\"" + arr[i][0] + "\"" + " is " + name + let oCurrentRun = paragraph.Content[i]; + assert.strictEqual(oCurrentRun.ReviewType, arr[i][1], str); + } + } + + QUnit.testStart(function (){ + AscCommon.History.Clear(); + AscTest.ClearDocument(); + AscCommon.CollaborativeEditing.CoHistory.textRecovery = null; + AscCommon.CollaborativeEditing.Clear(); + arrPoints = []; + }) + + QUnit.module("Unit-tests for recover deleted text"); + + QUnit.test("Delete one letter", function (assert) + { + let strStartText = "abc"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with 'abc' text."); + + DelLast(1); + assert.ok(true, "Delete one last letter"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "ab", "Text in run is 'ab'"); + + Init(); + ShowDelText() + assert.ok(true, "Recover deleted text"); + let recoverRun = p.Content[1]; + assert.strictEqual(recoverRun.ReviewType, reviewtype_Remove, "New ParaRun ReviewType is delete"); + assert.strictEqual(run.ReviewType, reviewtype_Common, "Old ParaRun ReviewType is common"); + + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "abc", "Text in run is 'abc'"); + + CheckRuns(assert, p, [ + ["ab", reviewtype_Common], + ["c", reviewtype_Remove], + ]); + }); + + QUnit.test("Delete letter block (with selection)", function (assert) + { + let strStartText = "Hello World"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with '" + strStartText+"' text."); + + DelLast(6, true); + assert.ok(true, "Delete ' World'"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello", "Text in run is 'Hello'"); + + Init(); + ShowDelText() + assert.ok(true, "Recover deleted text"); + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "Hello World", "Text in run is 'Hello World'"); + + CheckRuns(assert, p, [ + ["Hello", reviewtype_Common], + [" World", reviewtype_Remove], + ]); + }); + + QUnit.test("Delete many letter as one block", function (assert) + { + let strStartText = "Hello World"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with '" + strStartText+"' text."); + + AscTest.MoveCursorLeft(false, false, 6); + DelLast(4); + assert.ok(true, "Delete 'llo'"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "H World", "Text in run is 'H World'"); + + Init(); + ShowDelText() + assert.ok(true, "Recover deleted text"); + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "Hello World", "Text in run is 'Hello World'"); + + CheckRuns(assert, p, [ + ["He", reviewtype_Common], + ["llo", reviewtype_Remove], + [" World", reviewtype_Common], + ]); + }); + + QUnit.test("Delete letter blocks (from left to right)", function (assert) + { + let strStartText = "Hello World"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with '" + strStartText+"' text."); + + AscTest.MoveCursorLeft(false, false, 8); + DelLast(2); + assert.ok(true, "Delete 'el'"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hlo World", "Text in run is 'Hlo World'"); + + AscTest.MoveCursorRight(false, false, 6); + DelLast(2); + assert.ok(true, "Delete 'or'"); + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hlo Wld", "Text in run is 'Hlo Wld'"); + + Init(); + ShowDelText() + assert.ok(true, "Recover deleted text"); + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "Hello World", "Text in run is 'Hello World'"); + + CheckRuns(assert, p, [ + ["H", reviewtype_Common], + ["el", reviewtype_Remove], + ["lo W", reviewtype_Common], + ["or", reviewtype_Remove], + ["ld", reviewtype_Common], + ]); + }); + + QUnit.test("Delete letter blocks (from right to left)", function (assert) + { + let strStartText = "Hello World"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with '" + strStartText+"' text."); + AscTest.MoveCursorToParagraph(p, false); + + AscTest.MoveCursorLeft(false, false, 2); + AscTest.MoveCursorLeft(true, false, 2); + DelLast(1); + assert.ok(true, "Delete 'or'"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello Wld", "Text in run is 'Hello Wld'"); + + AscTest.MoveCursorLeft(false, false, 4); + AscTest.MoveCursorLeft(true, false, 2); + DelLast(1); + assert.ok(true, "Delete 'el'"); + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hlo Wld", "Text in run is 'Hlo Wld'"); + + Init(); + ShowDelText() + assert.ok(true, "Recover deleted text"); + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "Hello World", "Text in run is 'Hello World'"); + + CheckRuns(assert, p, [ + ["H", reviewtype_Common], + ["el", reviewtype_Remove], + ["lo W", reviewtype_Common], + ["or", reviewtype_Remove], + ["ld", reviewtype_Common], + ]); + }); + + QUnit.test("Delete paragraph", function (assert) + { + let strOne = "One"; + let strTwo = "Two"; + let p = AddParagraph(0); + let p2 = AddParagraph(1); + let run = CreateRun(strOne); + let run2 = CreateRun(strTwo); + p.AddToContentToEnd(run); + p2.AddToContentToEnd(run2); + + AscTest.MoveCursorToParagraph(p2, false); + + DelLast(4); + assert.ok(true, "Delete 'Two'"); + + let strDeletedText = AscTest.GetParagraphText(p2); + assert.strictEqual(strDeletedText, "", "Text in document is ''"); + + Init(); + ShowDelText() + assert.ok(true, "Recover deleted text"); + let strResultText = AscTest.GetParagraphText(p2); + assert.strictEqual(strResultText, "Two", "Text in run is 'One'"); + + CheckRuns(assert, p, [ + ["One", reviewtype_Common], + ]); + + CheckRuns(assert, p2, [ + ["Two", reviewtype_Remove], + ]); + }); + + + + QUnit.test("Going back and forth through history - one letter", function (assert) + { + let strStartText = "abc"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with 'abc' text."); + + DelLast(1); + assert.ok(true, "Delete one last letter"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "ab", "Text in run is 'ab'"); + + Init(); + Prev(); + assert.ok(true, "Prev in history"); + + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "abc", "Text in run is 'abc'"); + + Next(); + assert.ok(true, "Next in history"); + + let strResultText2 = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText2, "ab", "Text in run is 'ab'"); + }); + + QUnit.test("Going back and forth through history - letter block", function (assert) + { + let strStartText = "Hello World"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with '" + strStartText+"' text."); + + DelLast(6); + assert.ok(true, "Delete ' World'"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello", "Text in run is 'Hello'"); + + Init(); + Prev(); + assert.ok(true, "Prev in history"); + + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "Hello World", "Text in run is 'Hello World'"); + + Next(); + assert.ok(true, "Next in history"); + + let strResultText2 = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText2, "Hello", "Text in run is 'Hello'"); + }); + + QUnit.test("Going back and forth through history - letter blocks (deleted from left to right)", function (assert) + { + let strStartText = "Hello World"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with '" + strStartText+"' text."); + + AscTest.MoveCursorLeft(false, false, 8); + DelLast(2); + assert.ok(true, "Delete 'el'"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hlo World", "Text in run is 'Hlo World'"); + + AscTest.MoveCursorRight(false, false, 6); + DelLast(2); + assert.ok(true, "Delete 'or'"); + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hlo Wld", "Text in run is 'Hlo Wld'"); + + Init(); + Prev(); + assert.ok(true, "Prev in history"); + + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "Hello World", "Text in run is 'Hello World'"); + + Next(); + assert.ok(true, "Next in history"); + + let strResultText2 = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText2, "Hlo Wld", "Text in run is 'Hlo Wld'"); + + }); + + QUnit.test("Going back and forth through history - letter blocks (from right to left)", function (assert) + { + let strStartText = "Hello World"; + let p = AddParagraph(0); + let run = CreateRun(strStartText); + p.AddToContentToEnd(run); + assert.ok(true, "Create run with '" + strStartText+"' text."); + AscTest.MoveCursorToParagraph(p, false); + + AscTest.MoveCursorLeft(false, false, 2); + AscTest.MoveCursorLeft(true, false, 2); + DelLast(1); + assert.ok(true, "Delete 'or'"); + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello Wld", "Text in run is 'Hello Wld'"); + + AscTest.MoveCursorLeft(false, false, 4); + AscTest.MoveCursorLeft(true, false, 2); + DelLast(1); + assert.ok(true, "Delete 'el'"); + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hlo Wld", "Text in run is 'Hlo Wld'"); + + Init(); + Prev(); + assert.ok(true, "Prev in history"); + + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "Hello World", "Text in run is 'Hello World'"); + + Next(); + assert.ok(true, "Next in history"); + + let strResultText2 = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText2, "Hlo Wld", "Text in run is 'Hlo Wld'"); + }); + + QUnit.test("Going back and forth through history - paragraph", function (assert) + { + let strOne = "One"; + let p = AddParagraph(0); + let run = CreateRun(strOne); + p.AddToContentToEnd(run); + + DelLast(5); + assert.ok(true, "Delete 'One'"); + + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "", "Text in document is ''"); + + Init(); + Prev(); + assert.ok(true, "Prev in history"); + + let strResultText = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText, "One", "Text in run is 'One'"); + + Next(); + assert.ok(true, "Next in history"); + + let strResultText2 = AscTest.GetParagraphText(p); + assert.strictEqual(strResultText2, "", "Text in run is ''"); + }); + + QUnit.test("Complex 1", function (assert) + { + logicDocument.AddToContent(0, AscTest.CreateParagraph()); + + AscTest.EnterText("Hello hello"); + assert.ok(true, "Input 'Hello hello' in first paragraph"); + + AscTest.PressKey(13); + assert.ok(true, "Press Enter for create second paragraph"); + + AscTest.EnterText("Hello world 123"); + assert.ok(true, "Input 'Hello world 123' in second paragraph"); + + AscTest.MoveCursorLeft(false, false, 3); + assert.ok(true, "Move cursor to start pos of '123'"); + + AscTest.MoveCursorLeft(true, false, 5); + assert.ok(true, "Select 'world'"); + + DelLast(1, true); + assert.ok(true, "Delete 'world'"); + + let p = logicDocument.Content[0]; + let p2 = logicDocument.Content[1]; + + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello hello", "Text in first paragraph 'Hello hello'"); + + let strDeletedText2 = AscTest.GetParagraphText(p2); + assert.strictEqual(strDeletedText2, "Hello 123", "Text in second paragraph 'Hello 123'"); + + Init(3); + + ShowDelText(); + assert.ok(true, "Show del text"); + + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello hello", "Text in run is 'Hello hello'"); + + strDeletedText2 = AscTest.GetParagraphText(p2); + assert.strictEqual(strDeletedText2, "Hello world 123", "Text in run is 'Hello world 123'"); + + CheckRuns(assert, p2, [ + ["Hello ", reviewtype_Common], + ["world ", reviewtype_Remove], + ["123", reviewtype_Common], + ]); + + UndoDelText(); + assert.ok(true, "Undo show del text"); + + CheckRuns(assert, p2, [ + ["Hello 123", reviewtype_Common], + ]); + }); + + QUnit.test("Complex 2", function (assert) + { + logicDocument.AddToContent(0, AscTest.CreateParagraph()); + + AscTest.EnterText("Hello hello"); + assert.ok(true, "Input 'Hello hello' in first paragraph"); + + AscTest.MoveCursorLeft(false, false, 2); + DelLast(3, false); + assert.ok(true, "Delete from first paragraph 'hel'"); + + let p = logicDocument.Content[0]; + + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello lo", "Text in first paragraph 'Hello hello'"); + + Init(1); + ShowDelText(); + + assert.ok(true, "Show del text"); + + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello hello", "Text in run is 'Hello hello'"); + + CheckRuns(assert, p, [ + ["Hello ", reviewtype_Common], + ["hel", reviewtype_Remove], + ["lo", reviewtype_Common], + ]); + + UndoDelText(); + assert.ok(true, "Undo show del text"); + + CheckRuns(assert, p, [ + ["Hello lo", reviewtype_Common], + ]); + }); + QUnit.test("Complex 3", function (assert) + { + logicDocument.AddToContent(0, AscTest.CreateParagraph()); + + AscTest.EnterText("Hello"); + AscTest.EnterText(" hello"); + + assert.ok(true, "Input 'Hello hello' in first paragraph"); + + let p = logicDocument.Content[0]; + + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello hello", "Text in first paragraph 'Hello hello'"); + + Init(undefined, true); + Prev(); + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello", "Text in run is 'Hello'"); + + CheckRuns(assert, p, [ + ["Hello ", reviewtype_Common], + ]); + }); + QUnit.test("Complex 4", function (assert) + { + logicDocument.AddToContent(0, AscTest.CreateParagraph()); + + AscTest.EnterText("Hello3"); + DelLast(1, false); + AscTest.EnterText(" word"); + DelLast(5, false); + AscTest.EnterText(" world"); + + assert.ok(true, "* 𝐛𝐨𝐥𝐝 𝐭𝐞𝐱𝐭 𝐢𝐬 𝐝𝐞𝐥𝐞𝐭𝐞𝐝"); + assert.ok(true, "Input 'Hello𝟑 𝐰𝐨𝐫𝐝 world'"); + + let p = logicDocument.Content[0]; + + let strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello world", "Input 'Hello𝟑 𝐰𝐨𝐫𝐝 world'"); + + Init(undefined, true); + + MoveToPoint(8) + assert.ok(true, "Move to point 9"); + + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello", "Input 'Hello'"); + + MoveToPoint(3) + assert.ok(true, "Move to point 4"); + + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello word", "Input 'Hello word'"); + + MoveToPoint(1) + assert.ok(true, "Move to point 2"); + + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello3", "Input 'Hello3'"); + + MoveToPoint(8) + assert.ok(true, "Move to point 9"); + + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello", "Input 'Hello'"); + + MoveToPoint(3) + assert.ok(true, "Move to point 4"); + + strDeletedText = AscTest.GetParagraphText(p); + assert.strictEqual(strDeletedText, "Hello word", "Input 'Hello word'"); + }); + + QUnit.test("Split run", function (assert) + { + logicDocument.AddToContent(0, AscTest.CreateParagraph()); + + AscTest.EnterText("Hello how are you"); + let p = logicDocument.Content[0]; + AscTest.SelectParagraphRange(p,3, 11); + + logicDocument.SetBoldText(); + + let r0 = logicDocument.Content[0].Content[0]; + let r1 = logicDocument.Content[0].Content[1]; + let r2 = logicDocument.Content[0].Content[2]; + + assert.strictEqual(r0.Pr.Bold, undefined, "Check \"Hel\" not bold"); + assert.strictEqual(r1.Pr.Bold, true, "Check \"lo how a\" is bold"); + assert.strictEqual(r2.Pr.Bold, undefined, "Check \"re you\" not bold"); + + AscTest.SelectParagraphRange(p,5, 9); + DelLast(1, false); + + assert.strictEqual(p.GetText(), "Hello are you ", "Text is \"Hello are you\""); + + Init(2); + ShowDelText(); + assert.ok(true, 'Show del text'); + + CheckRuns(assert, p, [ + ["Hel", reviewtype_Common], + ["lo", reviewtype_Common], + [" how", reviewtype_Remove], + [" a", reviewtype_Common], + ["re you", reviewtype_Common], + ]); + }); + + QUnit.test("Check is not show del text in context of one revision", function (assert) + { + logicDocument.AddToContent(0, AscTest.CreateParagraph()); + + AscTest.EnterText("Hello"); + DelLast(5, false); + AscTest.EnterText("World"); + let p = logicDocument.Content[0]; + + assert.strictEqual(p.GetText(), "World ", "Text is \"World\""); + + Init(0); + ShowDelText(); + assert.ok(true, 'Show del text'); + assert.strictEqual(p.GetText(), "World ", "Text is \"World\", 'Hello' not show"); + + CheckRuns(assert, p, [ + ["World", reviewtype_Common], + ]); + }); +}); diff --git a/tests/word/unit-tests/paragraphContentPos.html b/tests/word/unit-tests/paragraphContentPos.html index 8b2a765eda..982fb36cad 100644 --- a/tests/word/unit-tests/paragraphContentPos.html +++ b/tests/word/unit-tests/paragraphContentPos.html @@ -1,23 +1,24 @@ - - - Document calculation tests - - - - - - - - + + + + + + - - + + +

                        Test forms

                        diff --git a/tests/word/unit-tests/paragraphContentPos.js b/tests/word/unit-tests/paragraphContentPos.js index 11f5cbc1e1..cfa46eeb04 100644 --- a/tests/word/unit-tests/paragraphContentPos.js +++ b/tests/word/unit-tests/paragraphContentPos.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/um b/um new file mode 100644 index 0000000000..f3a100d171 --- /dev/null +++ b/um @@ -0,0 +1,405 @@ +diff --git a/common/Charts/ChartsDrawer.js b/common/Charts/ChartsDrawer.js +index a3b387aae1..74913c7411 100644 +--- a/common/Charts/ChartsDrawer.js ++++ b/common/Charts/ChartsDrawer.js +@@ -189,7 +189,9 @@ CChartsDrawer.prototype = + //CHARTS + if (!chartSpace.bEmptySeries) { + for(var i in this.charts) { +- this.charts[i].recalculate(); ++ if (this.charts.hasOwnProperty(i) && this.charts[i]) { ++ this.charts[i].recalculate(); ++ } + } + } +  +@@ -318,7 +320,9 @@ CChartsDrawer.prototype = +  + if (chartSpace.chart.plotArea.isForChartEx) { + for (i in t.charts) { +- t.charts[i].draw(); ++ if (t.charts.hasOwnProperty(i) && t.charts[i]) { ++ t.charts[i].draw(); ++ } + } + } else { + //для начала нужно отсортировать +@@ -616,6 +620,7 @@ CChartsDrawer.prototype = +  + if (!this.cChartSpace.bEmptySeries) { + var type = obj.getObjectType(); ++ console.log(type); + switch (type) { + case AscDFH.historyitem_type_DLbl: { + pos = this._calculatePositionDlbl(obj); +@@ -625,7 +630,7 @@ CChartsDrawer.prototype = + var parentType = obj.parent ? obj.parent.getObjectType() : null; + if (parentType === AscDFH.historyitem_type_Chart) { + pos = this._calculatePositionTitle(obj); +- } else if (parentType === AscDFH.historyitem_type_ValAx || parentType === AscDFH.historyitem_type_CatAx || parentType === AscDFH.historyitem_type_DateAx) { ++ } else if (parentType === AscDFH.historyitem_type_ValAx || parentType === AscDFH.historyitem_type_CatAx || parentType === AscDFH.historyitem_type_DateAx || parentType === AscDFH.historyitem_type_Axis) { + pos = this._calculatePositionAxisTitle(obj.parent); + } + break; +@@ -2491,13 +2496,6 @@ CChartsDrawer.prototype = + valAxis.max = axisProperties.val.max; + valAxis.scale = axisProperties.val.scale.length > 0 ? axisProperties.val.scale : this._roundValues(this._getAxisValues2(valAxis, this.cChartSpace, false, false)); +  +- // Exchange cross axes  +- catAxis.crossAx = valAxis; +- valAxis.crossAx = catAxis; +- +- // Differentiate between axes  +- catAxis.axPos = window['AscFormat'].AX_POS_B; +- valAxis.axPos = window['AscFormat'].AX_POS_L; + }, +  + _chartExSetAxisMinAndMax: function (axis, num) { +@@ -4615,11 +4613,11 @@ CChartsDrawer.prototype = + if (!this.cChartSpace || !this.calcProp) { + return null; + } +- var pathId = this.cChartSpace.AllocPath(); +- var path = this.cChartSpace.GetPath(pathId); ++ const pathId = this.cChartSpace.AllocPath(); ++ const path = this.cChartSpace.GetPath(pathId); +  +- var pathH = this.calcProp.pathH; +- var pathW = this.calcProp.pathW; ++ const pathH = this.calcProp.pathH; ++ const pathW = this.calcProp.pathW; +  + if (!isPxToMmConverted) { + const pxToMm = this.calcProp.pxToMM; +@@ -5049,9 +5047,10 @@ CChartsDrawer.prototype = +  + getVerticalGridLines: function (axis, isCatAxis) { + var gridLines, minorGridLines; ++ const isForChartEx = this.cChartSpace && this.cChartSpace.chart && this.cChartSpace.chart.plotArea && this.cChartSpace.chart.plotArea.isForChartEx ? true : false; +  + var crossBetween = this.cChartSpace.getValAxisCrossType(); +- if(null === crossBetween && isCatAxis) { ++ if(null === crossBetween && (isCatAxis || isForChartEx)) { + crossBetween = axis.crossAx ? axis.crossAx.crossBetween : null; + } +  +@@ -5067,15 +5066,14 @@ CChartsDrawer.prototype = + if(!axis.majorGridlines && !axis.minorGridlines) { + return; + } +- +- var minorLinesCount = isCatAxis ? 2 : 5; ++ var minorLinesCount = isCatAxis || isForChartEx ? 2 : 5; +  + var posAxis = this.calcProp.chartGutter._left / this.calcProp.pxToMM; + var stepX = points[1] ? Math.abs((points[1].pos - points[0].pos)) : (Math.abs(points[0].pos - posAxis) * 2); + var minorStep = (stepX * this.calcProp.pxToMM) / minorLinesCount; + var posX, crossDiff; +  +- if (crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN && isCatAxis) { ++ if (crossBetween === AscFormat.CROSS_BETWEEN_BETWEEN && (isCatAxis || isForChartEx)) { + crossDiff = points[1] ? Math.abs((points[1].pos - points[0].pos) / 2) : Math.abs(points[0].pos - posAxis); + } +  +@@ -5083,7 +5081,7 @@ CChartsDrawer.prototype = + var path = this.cChartSpace.GetPath(pathId); + var i; + for (i = 0; i < points.length; i++) { +- if(isCatAxis && points[i].val < 0) { ++ if((isCatAxis && points[i].val < 0) && !isForChartEx) { + continue; + } +  +@@ -5114,7 +5112,7 @@ CChartsDrawer.prototype = + var pathIdMinor = this.cChartSpace.AllocPath(); + var pathMinor = this.cChartSpace.GetPath(pathIdMinor); + for (i = 0; i < points.length; i++) { +- if(isCatAxis && points[i].val < 0) { ++ if((isCatAxis && points[i].val < 0) && !isForChartEx) { + continue; + } +  +@@ -7633,7 +7631,10 @@ drawHistogramChart.prototype = { + // two different ways of storing information, object and array, therefore convert object into array + const sections = isAggregation ? Object.values(cachedData.aggregation) : cachedData.results;  + if (sections) { +- const initialBarWidth = (this.chartProp.trueWidth)/ sections.length; ++ // 1 px gap for each section length ++ const gapWidth = 1; ++ // const gapNumbers = sections.length - 1; ++ const initialBarWidth = (this.chartProp.trueWidth) / sections.length; + const barWidth = (initialBarWidth / (1 + coeff)); + const margin = (initialBarWidth - barWidth) / 2; +  +@@ -7642,11 +7643,12 @@ drawHistogramChart.prototype = { + // aggregation object does not have field occurrence; + const val = isAggregation ? sections[i] : sections[i].occurrence; + const startY = this.cChartDrawer.getYPosition(val, valAxis, true); ++ const bW = i === 0 ? barWidth : barWidth - gapWidth; + if (this.chartProp && this.chartProp.pxToMM ) { + const height = valStart - (startY * this.chartProp.pxToMM); +- this.paths[i] = this.cChartDrawer._calculateRect(start, valStart, barWidth, height); ++ this.paths[i] = this.cChartDrawer._calculateRect(start, valStart, bW, height); + }  +- start += (barWidth + margin + margin); ++ start += (bW + margin + margin + gapWidth); + } + } +  +@@ -7817,25 +7819,52 @@ drawWaterfallChart.prototype = { + let valStart = this.cChartSpace.chart.plotArea.axId ? this.cChartSpace.chart.plotArea.axId[0].posY * this.chartProp.pxToMM : this.chartProp.trueHeight + this.chartProp.chartGutter._top; + if (AscFormat.isRealNumber(valStart)) { + const coeff = catAxis.scaling.gapWidth; +- const initialBarWidth = (this.chartProp.trueWidth)/ data.length; ++ // 1 px gap for each section length ++ const gapWidth = 1; ++ const gapNumbers = data.length - 1; ++ const initialBarWidth = (this.chartProp.trueWidth - (gapWidth * gapNumbers))/ data.length; + const barWidth = (initialBarWidth / (1 + coeff)); + const margin = (initialBarWidth - barWidth) / 2; ++ + let sum = 0; +- let start = (catStart + margin); ++ let start = (catStart + margin);  + for (let i = 0; i < data.length; i++) { + sum += data[i].val; +- const startY = this.cChartDrawer.getYPosition(sum, valAxis, true) * this.chartProp.pxToMM; ++ const valPos = this.cChartDrawer.getYPosition(sum, valAxis, true) * this.chartProp.pxToMM; // calc roof of the current bar ++ const next = start + (barWidth + margin + gapWidth + margin); // calc end of the current barr + if (this.chartProp && this.chartProp.pxToMM ) { +- const height = valStart - startY; +- this.paths[i] = this.cChartDrawer._calculateRect(start, valStart, barWidth, height); ++ const height = valStart - valPos; ++ this.paths[i] = []; ++ this.paths[i].push(this.cChartDrawer._calculateRect(start, valStart, barWidth, height)); ++ //dont need last connectorLine ++ if (i !== data.length - 1 && margin !== 0) { ++ this.paths[i].push(this._calculateConnectorLine(valPos, start + barWidth, next)) ++ } + } +- valStart = startY;  +- start += (barWidth + margin + margin); ++ valStart = valPos; // go up in y direction ++ start = next; // go right in x direction + } + } + } + }, +  ++ _calculateConnectorLine: function (y, x1, x2) { ++ if (!this.cChartSpace || !this.chartProp) { ++ return null; ++ } ++ const pathId = this.cChartSpace.AllocPath(); ++ const path = this.cChartSpace.GetPath(pathId); ++ ++ const pathH = this.chartProp.pathH; ++ const pathW = this.chartProp.pathW; ++ const pxToMm = this.chartProp.pxToMM; ++ ++ path.moveTo((x1 / pxToMm) * pathW, (y / pxToMm) * pathH); ++ path.lnTo((x2 / pxToMm) * pathW, (y / pxToMm) * pathH); ++ ++ return pathId; ++ }, ++ + draw: function () { + if (!this.cChartDrawer || !this.cChartDrawer.calcProp || !this.cChartDrawer.cShapeDrawer || !this.cChartDrawer.cShapeDrawer.Graphics || !this.cChartDrawer.calcProp.chartGutter) { + return; +@@ -7888,10 +7917,12 @@ drawWaterfallChart.prototype = { + let oSeries = series[0]; + if(oSeries) { + for (let i in this.paths) { +- let nPtIdx = parseInt(i); +- let pen = oSeries.getPtPen(nPtIdx); +- let brush = oSeries.getPtBrush(nPtIdx); +- this.cChartDrawer.drawPath(this.paths[i], pen, brush); ++ for (let j in this.paths[i]) { ++ let nPtIdx = parseInt(i); ++ let pen = (j === 0 ) ? oSeries.getPtPen(nPtIdx) : this.cChartSpace.chart.plotArea.axId[1].compiledMajorGridLines; ++ let brush = oSeries.getPtBrush(nPtIdx); ++ this.cChartDrawer.drawPath(this.paths[i][j], pen, brush); ++ } + } + } +  +diff --git a/common/Drawings/Format/ChartEx.js b/common/Drawings/Format/ChartEx.js +index d89caa5d80..905898aaee 100644 +--- a/common/Drawings/Format/ChartEx.js ++++ b/common/Drawings/Format/ChartEx.js +@@ -268,6 +268,10 @@ function (window, undefined) { + this.setParentToChild(pr); + }; +  ++ CAxis.prototype.setAxPos = function (pos) { ++ this.axPos = pos ? window['AscFormat'].AX_POS_L : window['AscFormat'].AX_POS_B; ++ } ++ + // AxisUnits + drawingsChangesMap[AscDFH.historyitem_AxisUnits_SetUnitsLabel] = function (oClass, value) { + oClass.unitsLabel = value; +@@ -2946,6 +2950,10 @@ function (window, undefined) { + } + return null; + }; ++ CSeries.prototype.getValPts = function () { ++ const numLit = this.getValLit(); ++ return numLit ? numLit.pts : []; ++ }; + CSeries.prototype.getCatLit = function (type) { + let oSeriesData = this.getData(); + if(!oSeriesData) { +diff --git a/common/Drawings/Format/ChartSpace.js b/common/Drawings/Format/ChartSpace.js +index 76db98a8ac..0add210264 100644 +--- a/common/Drawings/Format/ChartSpace.js ++++ b/common/Drawings/Format/ChartSpace.js +@@ -4149,7 +4149,7 @@ function(window, undefined) { + const cachedData = this.chart.plotArea.plotAreaRegion.cachedData; + const results = obtainResults(cachedData); + //seria.dataLabels.visibility optional +- if (seria && seria.dataLabels) { ++ if (cachedData && seria && seria.dataLabels) { + const default_lbl = new AscFormat.CDLbl(); + const nDefaultPosition = seria.dataLabels.pos ? seria.dataLabels.pos : AscFormat.DATA_LABEL_POS_OUT_END; + default_lbl.initDefault(nDefaultPosition); +@@ -4185,6 +4185,18 @@ function(window, undefined) { + CChartSpace.prototype.calculateLabelsPositions = function (b_recalc_labels, b_recalc_legend) { + let layout; + let aDLbls = this.recalcInfo.dataLbls; ++ ++ // TODO after new succefull implementation of new type remove option here ++ const isForChartEx = this.chart && this.chart.plotArea && this.chart.plotArea.isForChartEx ? true : false; ++ const type = this.chart && this.chart.plotArea && this.chart.plotArea.plotAreaRegion && this.chart.plotArea.plotAreaRegion.series && this.chart.plotArea.plotAreaRegion.series[0] ? this.chart.plotArea.plotAreaRegion.series[0].layoutId : null; ++ if (isForChartEx && type !== AscFormat.SERIES_LAYOUT_BOX_WHISKER && !type) { ++ return ; ++ } ++ if (isForChartEx && (type === AscFormat.SERIES_LAYOUT_BOX_WHISKER || type === AscFormat.SERIES_LAYOUT_FUNNEL || type === AscFormat.SERIES_LAYOUT_PARETO_LINE || type === AscFormat.SERIES_LAYOUT_REGION_MAP || type === AscFormat.SERIES_LAYOUT_SUNBURST || type === AscFormat.SERIES_LAYOUT_TREEMAP)) { ++ return ; ++ } ++ //---------------------------------- ++  + if (!aDLbls || aDLbls.length === 0) { + this.calculateChartExLabelsPositions(); + } +@@ -4367,7 +4379,7 @@ function(window, undefined) { + if (!this.chart || !this.chart.plotArea) { + return []; + } +- if (oAxis.Id === this.chart.plotArea.axId[1].Id) { ++ if (this.chart.plotArea.axId.length > 1 && oAxis.Id === this.chart.plotArea.axId[1].Id) { + // for the val axis, regularly get labels + aStrings = this.getLabelsForAxis(oAxis, true); + } else { +@@ -4736,6 +4748,7 @@ function(window, undefined) { + if(this.chart.plotArea.layout && this.chart.plotArea.layout.layoutTarget === AscFormat.LAYOUT_TARGET_INNER) { + bWithoutLabels = true; + } ++  + let bCorrected = false; + let fL = oRect.x, fT = oRect.y, fR = oRect.x + oRect.w, fB = oRect.y + oRect.h; + const isChartEX = this.chart && this.chart.plotArea && this.chart.plotArea.isForChartEx ? true : false; +@@ -4754,6 +4767,9 @@ function(window, undefined) { + this.calculateAxisGrid(oCrossAxis, oRect); + oCalcMap[oCrossAxis.Id] = true; + } ++ if (!oCrossAxis) { ++ return; ++ } + let fCrossValue; + // posY seeks the zero position on the diagram + let posY = null; +@@ -5143,6 +5159,16 @@ function(window, undefined) { + this.cachedCanvas = null; + this.plotAreaRect = null; + this.bEmptySeries = this.checkEmptySeries(); ++ // TODO after new succefull implementation of new type remove option here ++ const isForChartEx = this.chart && this.chart.plotArea && this.chart.plotArea.isForChartEx ? true : false; ++ const type = this.chart && this.chart.plotArea && this.chart.plotArea.plotAreaRegion && this.chart.plotArea.plotAreaRegion.series && this.chart.plotArea.plotAreaRegion.series[0] ? this.chart.plotArea.plotAreaRegion.series[0].layoutId : null; ++ if (isForChartEx && type !== AscFormat.SERIES_LAYOUT_BOX_WHISKER && !type) { ++ return ; ++ } ++ if (isForChartEx && (type === AscFormat.SERIES_LAYOUT_BOX_WHISKER || type === AscFormat.SERIES_LAYOUT_FUNNEL || type === AscFormat.SERIES_LAYOUT_PARETO_LINE || type === AscFormat.SERIES_LAYOUT_REGION_MAP || type === AscFormat.SERIES_LAYOUT_SUNBURST || type === AscFormat.SERIES_LAYOUT_TREEMAP)) { ++ return ; ++ } ++ //---------------------------------- + if (this.chart && this.chart.plotArea) { + var oPlotArea = this.chart.plotArea; + for (i = 0; i < oPlotArea.axId.length; ++i) { +@@ -5771,7 +5797,8 @@ function(window, undefined) { + if (AscFormat.isRealNumber(legend.legendPos)) { + legend_pos = legend.legendPos; + } +- var aCharts = this.chart.plotArea.charts; ++ const isChartEx = this.chart && this.chart.plotArea && this.chart.plotArea.isForChartEx ? true : false; ++ var aCharts = isChartEx ? [this.chart.plotArea.plotAreaRegion] : this.chart.plotArea.charts; + var oTypedChart; + //Order series for the legend + var aOrderedSeries = []; +@@ -5853,7 +5880,8 @@ function(window, undefined) { + entry = legend.findLegendEntryByIndex(i); + if(entry && entry.bDelete) + continue; +- arr_str_labels.push(ser.getSeriesName()); ++ const label = ser.getSeriesName ? ser.getSeriesName() : ''; ++ arr_str_labels.push(label); + } + else { + entry = legend.findLegendEntryByIndex(i); +@@ -5884,7 +5912,7 @@ function(window, undefined) { +  + calc_entry.calcMarkerUnion = new AscFormat.CUnionMarker(); + union_marker = calc_entry.calcMarkerUnion; +- var pts = ser.getNumPts(); ++ var pts = isChartEx ? ser.getValPts() : ser.getNumPts(); + var nSerType = ser.getObjectType(); + if(nSerType === AscDFH.historyitem_type_BarSeries || + nSerType === AscDFH.historyitem_type_BubbleSeries || +@@ -6084,6 +6112,9 @@ function(window, undefined) { + } else { + marker_size = 0.2 * max_font_size; + for (i = 0; i < calc_entryes.length; ++i) { ++ if (!calc_entryes[i].calcMarkerUnion || !calc_entryes[i].calcMarkerUnion.marker || !calc_entryes[i].calcMarkerUnion.marker.spPr || !calc_entryes[i].calcMarkerUnion.marker.spPr.geometry) { ++ continue; ++ } + calc_entryes[i].calcMarkerUnion.marker.spPr.geometry.Recalculate(marker_size, marker_size); + } + distance_to_text = marker_size * 0.7; +@@ -8458,6 +8489,16 @@ function(window, undefined) { + if (this.chartObj) { + this.chartObj.draw(this, graphics); + } ++ // TODO after new succefull implementation of new type remove option here ++ const isForChartEx = this.chart && this.chart.plotArea && this.chart.plotArea.isForChartEx ? true : false; ++ const type = this.chart && this.chart.plotArea && this.chart.plotArea.plotAreaRegion && this.chart.plotArea.plotAreaRegion.series && this.chart.plotArea.plotAreaRegion.series[0] ? this.chart.plotArea.plotAreaRegion.series[0].layoutId : null; ++ if (isForChartEx && type !== AscFormat.SERIES_LAYOUT_BOX_WHISKER && !type) { ++ return ; ++ } ++ if (isForChartEx && (type === AscFormat.SERIES_LAYOUT_BOX_WHISKER || type === AscFormat.SERIES_LAYOUT_FUNNEL || type === AscFormat.SERIES_LAYOUT_PARETO_LINE || type === AscFormat.SERIES_LAYOUT_REGION_MAP || type === AscFormat.SERIES_LAYOUT_SUNBURST || type === AscFormat.SERIES_LAYOUT_TREEMAP)) { ++ return ; ++ } ++ //---------------------------------- + if (this.chart && !this.bEmptySeries) { + if (this.chart.plotArea) { + // var oChartSize = this.getChartSizes(); +diff --git a/common/SerializeChart.js b/common/SerializeChart.js +index 56ddebb127..c757e73eb6 100644 +--- a/common/SerializeChart.js ++++ b/common/SerializeChart.js +@@ -13507,6 +13507,17 @@ BinaryChartReader.prototype.ReadCT_ChartEx = function (type, length, val) { + res = this.bcr.Read1(length, function (t, l) { + return oThis.ReadCT_ChartExPlotArea(t, l, oNewVal); + }); ++ if (oNewVal && oNewVal.axId && Array.isArray(oNewVal.axId)) { ++ for (let i = 0; i < oNewVal.axId.length; i++) { ++ const axis = oNewVal.axId[i]; ++ axis.setAxPos(i); ++ } ++ if (oNewVal.axId.length === 2) { ++ oNewVal.axId[0].crossAx = oNewVal.axId[1]; ++ oNewVal.axId[1].crossAx = oNewVal.axId[0]; ++ oNewVal.axId[1].crossBetween = 0; ++ } ++ } + val.setPlotArea(oNewVal); + } + else if (c_oserct_chartExChartTITLE === type) diff --git a/vendor/easysax.js b/vendor/easysax.js index 86a38731ae..58ca1dbd58 100644 --- a/vendor/easysax.js +++ b/vendor/easysax.js @@ -1414,6 +1414,9 @@ StaxParser.prototype.GetDoubleOrNaN = function (val, def) { if(val === "NaN") { return NaN; } + if (val === "INF") { + return Infinity; + } return this.GetDouble(val, def); }; StaxParser.prototype.GetValueBool = function () { @@ -1621,6 +1624,7 @@ function XmlParserContext(){ this.DrawingDocument = null; this.imageMap = {}; this.curChart = null; + this.smartarts = []; //docx this.commentDataById = {}; this.oReadResult = new AscCommonWord.DocReadResult(); @@ -1824,6 +1828,15 @@ XmlParserContext.prototype.loadDataLinks = function() { } return oImageMap; }; +XmlParserContext.prototype.GenerateSmartArts = function() { + while (this.smartarts.length) { + const smartart = this.smartarts.pop(); + smartart.generateDrawingPart(); + } +}; +XmlParserContext.prototype.ClearSmartArts = function() { + this.smartarts.length = 0; +}; function XmlWriterContext(editorId){ //common this.editorId = editorId; diff --git a/vendor/iscroll.js b/vendor/iscroll.js index 51add23170..b861b920b1 100644 --- a/vendor/iscroll.js +++ b/vendor/iscroll.js @@ -320,7 +320,9 @@ function IScroll (el, options) { HWCompositing: true, useTransition: true, useTransform: true, - bindToWrapper: typeof window.onmousedown === "undefined" + bindToWrapper: typeof window.onmousedown === "undefined", + + transparentIndicators: false }; for ( var i in options ) { @@ -1084,6 +1086,11 @@ IScroll.prototype = { indicators = indicators.concat(this.options.indicators); } + if (this.options.transparentIndicators) { + for (var i = 0; i < indicators.length; i++) + indicators[i].transparent = true; + } + for ( var i = indicators.length; i--; ) { this.indicators.push( new Indicator(this, indicators[i]) ); } @@ -1846,13 +1853,25 @@ function Indicator (scroller, options) { shrink: false, fade: false, speedRatioX: 0, - speedRatioY: 0 + speedRatioY: 0, + transparent: false }; for ( var i in options ) { this.options[i] = options[i]; } + if (this.options.transparent) { + this.options.interactive = false; + this.options.fade = false; + this.options.disableTouch = true; + this.options.disablePointer = true; + this.options.disableMouse = true; + + this.wrapperStyle.display = "none"; + this.indicatorStyle.display = "none"; + } + this.sizeRatioX = 1; this.sizeRatioY = 1; this.maxPosX = 0; @@ -2068,12 +2087,14 @@ Indicator.prototype = { refresh: function () { this.transitionTime(); - if ( this.options.listenX && !this.options.listenY ) { - this.indicatorStyle.display = this.scroller.hasHorizontalScroll ? 'block' : 'none'; - } else if ( this.options.listenY && !this.options.listenX ) { - this.indicatorStyle.display = this.scroller.hasVerticalScroll ? 'block' : 'none'; - } else { - this.indicatorStyle.display = this.scroller.hasHorizontalScroll || this.scroller.hasVerticalScroll ? 'block' : 'none'; + if (!this.options.transparent) { + if (this.options.listenX && !this.options.listenY) { + this.indicatorStyle.display = this.scroller.hasHorizontalScroll ? 'block' : 'none'; + } else if (this.options.listenY && !this.options.listenX) { + this.indicatorStyle.display = this.scroller.hasVerticalScroll ? 'block' : 'none'; + } else { + this.indicatorStyle.display = this.scroller.hasHorizontalScroll || this.scroller.hasVerticalScroll ? 'block' : 'none'; + } } if ( this.scroller.hasHorizontalScroll && this.scroller.hasVerticalScroll ) { diff --git a/word/Drawing/DrawingDocument.js b/word/Drawing/DrawingDocument.js index 3f85ab6a1b..1466e6b1ee 100644 --- a/word/Drawing/DrawingDocument.js +++ b/word/Drawing/DrawingDocument.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -221,17 +221,20 @@ function CTableOutlineDr() this.TrackOffsetX = 0; this.TrackOffsetY = 0; + let drDoc = word_control.m_oDrawingDocument; + let isTouchMode = word_control.MobileTouchManager ? word_control.MobileTouchManager.isTouchMode() : false; + if (!this.TableMatrix || global_MatrixTransformer.IsIdentity(this.TableMatrix)) { - if (word_control.MobileTouchManager) + if (isTouchMode) { var _move_point = word_control.MobileTouchManager.TableMovePoint; if (_move_point == null || pos.Page != _table_track.PageNum) return false; - var _pos1 = word_control.m_oDrawingDocument.ConvertCoordsToCursorWR(pos.X, pos.Y, pos.Page); - var _pos2 = word_control.m_oDrawingDocument.ConvertCoordsToCursorWR(_move_point.X, _move_point.Y, pos.Page); + var _pos1 = drDoc.ConvertCoordsToCursorWR(pos.X, pos.Y, pos.Page); + var _pos2 = drDoc.ConvertCoordsToCursorWR(_move_point.X, _move_point.Y, pos.Page); var _eps = word_control.MobileTouchManager.TrackTargetEps; @@ -369,7 +372,7 @@ function CTableOutlineDr() } else { - if (word_control.MobileTouchManager) + if (isTouchMode) { var _invert = global_MatrixTransformer.Invert(this.TableMatrix); var _posx = _invert.TransformPointX(pos.X, pos.Y); @@ -809,7 +812,7 @@ function CTableOutlineDr() if (null == this.TableOutline) return; - if (word_control.MobileTouchManager) + if (word_control.MobileTouchManager && word_control.MobileTouchManager.isTouchMode()) return; var _table_track = this.TableOutline; @@ -2256,6 +2259,9 @@ function CDrawingDocument() } this.MoveTargetInInputContext(); + + if (this.m_oWordControl.MobileTouchManager) + this.m_oWordControl.MobileTouchManager.CheckGlassUpdate(); }; this.MoveTargetInInputContext = function () @@ -2547,6 +2553,23 @@ function CDrawingDocument() } }; + this.isDrawTargetGlass = function() + { + let isActive = true; + let api = oThis.m_oWordControl.m_oApi; + + if (!oThis.m_oWordControl.IsFocus) + isActive = false; + else if (oThis.m_oWordControl.m_oApi.isBlurEditor) + isActive = false; + else if (api.isViewMode || (api.isRestrictionView() && !api.isRestrictionForms())) + isActive = false; + if (-1 === this.m_lTimerTargetId) + isActive = false; + + return isActive; + }; + this.TargetShow = function () { this.TargetShowNeedFlag = true; @@ -2689,15 +2712,7 @@ function CDrawingDocument() // regenerate styles if (null == this.m_oWordControl.m_oApi._gui_styles) - { - if (window["NATIVE_EDITOR_ENJINE"] === true) - { - if (!this.m_oWordControl.m_oApi.asc_checkNeedCallback("asc_onInitEditorStyles")) - return; - } - var StylesPainter = new CStylesPainter(); - StylesPainter.GenerateStyles(this.m_oWordControl.m_oApi, this.m_oWordControl.m_oLogicDocument.Get_Styles().Style); - } + this.m_oWordControl.m_oApi.GenerateStyles(); }; this.DrawImageTextureFillShape = function (url) @@ -3083,17 +3098,7 @@ function CDrawingDocument() drawingCanvas = this.GuiCanvasFillTOC; } - // draw! - var wPx = AscBrowser.convertToRetinaValue(widthPx, true); - var hPx = AscBrowser.convertToRetinaValue(heightPx, true); - var wMm = wPx * g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; - var hMm = hPx * g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; - - var wPxOffset = AscBrowser.convertToRetinaValue(8, true); - var wMmOffset = wPxOffset * g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; - - drawingCanvas.style.width = widthPx + "px"; - drawingCanvas.width = wPx; + let api = this.m_oWordControl.m_oApi; History.TurnOff(); @@ -3106,206 +3111,21 @@ function CDrawingDocument() oLogicDocument.SetLocalTrackRevisions(false); } - var _oldTurn = editor.isViewMode; - editor.isViewMode = true; - - var ctx = drawingCanvas.getContext('2d'); - - var old_marks = this.m_oWordControl.m_oApi.ShowParaMarks; - this.m_oWordControl.m_oApi.ShowParaMarks = false; - - // content - var oStyles = oLogicDocument.GetStyles(); - - var oHeader = new CHeaderFooter(oLogicDocument.HdrFtr, oLogicDocument, this, AscCommon.hdrftr_Header); - var oDocumentContent = oHeader.GetContent(); - - var nOutlineStart = props.get_OutlineStart(); - var nOutlineEnd = props.get_OutlineEnd(); - var nStylesType = props.get_StylesType(); - var isShowPageNum = props.get_ShowPageNumbers(); - var isRightTab = props.get_RightAlignTab(); - var nTabLeader = props.get_TabLeader(); - - if (undefined === nTabLeader || null === nTabLeader) - nTabLeader = Asc.c_oAscTabLeader.Dot; - - - var arrLevels = []; - var arrStylesToDelete = []; - - var nStyle, nStylesCount, nAddStyle, nAddStyleCount; - var nLvl, sName, sStyleId, oStyle, isAddStyle; - for (nStyle = 0, nStylesCount = props.get_StylesCount(); nStyle < nStylesCount; ++nStyle) - { - nLvl = props.get_StyleLevel(nStyle) - 1; - sName = props.get_StyleName(nStyle); - - if (!arrLevels[nLvl]) - { - sStyleId = null; - if (Asc.c_oAscTOCStylesType.Current === nStylesType) - { - sStyleId = oStyles.GetDefaultTOC(nLvl); - } - else - { - oStyle = new CStyle("", null, null, styletype_Paragraph, true); - oStyle.CreateTOC(nLvl, nStylesType); - sStyleId = oStyle.GetId(); - oStyles.Add(oStyle); - arrStylesToDelete.push(oStyle.GetId()); - } - arrLevels[nLvl] = { - Styles : [], - StyleId : sStyleId - }; - } - - isAddStyle = true; - for (nAddStyle = 0, nAddStyleCount = arrLevels[nLvl].Styles.length; nAddStyle < nAddStyleCount; ++nAddStyle) - { - if (arrLevels[nLvl].Styles[nAddStyle] === sName) - { - isAddStyle = false; - break; - } - } - - if (isAddStyle) - arrLevels[nLvl].Styles.push(sName); - } - - if (-1 !== nOutlineEnd && -1 !== nOutlineStart) - { - for (var _nLvl = nOutlineStart; _nLvl <= nOutlineEnd; ++_nLvl) - { - sName = "Heading " + _nLvl; - nLvl = _nLvl - 1; - - if (!arrLevels[nLvl]) - { - sStyleId = null; - if (Asc.c_oAscTOCStylesType.Current === nStylesType) - { - sStyleId = oStyles.GetDefaultTOC(nLvl); - } - else - { - oStyle = new CStyle("", null, null, styletype_Paragraph, true); - oStyle.CreateTOC(nLvl, nStylesType); - sStyleId = oStyle.GetId(); - oStyles.Add(oStyle); - arrStylesToDelete.push(oStyle.GetId()); - } - - arrLevels[nLvl] = { - Styles : [], - StyleId : sStyleId - }; - } - - isAddStyle = true; - for (nAddStyle = 0, nAddStyleCount = arrLevels[nLvl].Styles.length; nAddStyle < nAddStyleCount; ++nAddStyle) - { - if (arrLevels[nLvl].Styles[nAddStyle] === sName) - { - isAddStyle = false; - break; - } - } - - if (isAddStyle) - arrLevels[nLvl].Styles.push(sName); - } - } - - - - var oParaIndex = 0; - var nPageIndex = 1; - - - for (nLvl = 0; nLvl <= 8; ++nLvl) - { - if (!arrLevels[nLvl]) - continue; - - sStyleId = arrLevels[nLvl].StyleId; - for (nStyle = 0, nStylesCount = arrLevels[nLvl].Styles.length; nStyle < nStylesCount; ++nStyle) - { - var sStyleName = AscCommon.translateManager.getValue(arrLevels[nLvl].Styles[nStyle]); - - var oParagraph = new AscWord.Paragraph(oDocumentContent, false); - oDocumentContent.AddToContent(oParaIndex++, oParagraph); - oParagraph.SetParagraphStyleById(sStyleId); - - var oRun = new ParaRun(oParagraph, false); - oParagraph.AddToContent(0, oRun); - oRun.AddText(sStyleName); - - if (isShowPageNum) - { - if (isRightTab) - { - var oParaTabs = new CParaTabs(); - oParaTabs.Add(new CParaTab(tab_Right, wMm - 2 - wMmOffset, nTabLeader)); - oParagraph.SetParagraphTabs(oParaTabs); - - oRun.AddToContent(-1, new AscWord.CRunTab()); - } - else - { - oRun.AddToContent(-1, new AscWord.CRunSpace()); - } - - oRun.AddText("" + nPageIndex); - - nPageIndex += 2; - } - } - } - - oDocumentContent.Reset(1, 0, 1000, 10000); - oDocumentContent.Recalculate_Page(0, true); - - for (nStyle = 0, nStylesCount = arrStylesToDelete.length; nStyle < nStylesCount; ++nStyle) - { - oStyles.Remove(arrStylesToDelete[nStyle]); - } - - var nContentHeight = oDocumentContent.GetSummaryHeight(); - var nContentHeightPx = (AscCommon.AscBrowser.retinaPixelRatio * nContentHeight / g_dKoef_pix_to_mm) >> 0; + var _oldTurn = api.isViewMode; + api.isViewMode = true; - if (nContentHeightPx > hPx) - { - hPx = nContentHeightPx; - hMm = nContentHeight; - } + var old_marks = api.ShowParaMarks; + api.ShowParaMarks = false; - drawingCanvas.style.height = AscBrowser.convertToRetinaValue(hPx, false) + "px"; - drawingCanvas.height = hPx; + DrawCustomTocPreview(api, drawingCanvas, props, widthPx, heightPx); - var ctx = drawingCanvas.getContext('2d'); - - ctx.fillStyle = "#FFFFFF"; - ctx.fillRect(0, 0, wPx, hPx); - - var graphics = new AscCommon.CGraphics(); - graphics.init(ctx, wPx, hPx, wMm, hMm); - graphics.m_oFontManager = AscCommon.g_fontManager; - graphics.m_oCoordTransform.tx = graphics.m_oCoordTransform.ty = wPxOffset; - graphics.transform(1, 0, 0, 1, 0, 0); - oDocumentContent.Draw(0, graphics); - - this.m_oWordControl.m_oApi.ShowParaMarks = old_marks; + api.ShowParaMarks = old_marks; + api.isViewMode = _oldTurn; History.TurnOn(); if (false !== bTrackRevisions) oLogicDocument.SetLocalTrackRevisions(bTrackRevisions); - - editor.isViewMode = _oldTurn; }; this.GetTOC_Buttons = function(idDiv1, idDiv2, styleWidth) @@ -3344,23 +3164,12 @@ function CDrawingDocument() canvas2.scaleAttributeText = scaleAttributeText; var pixW = (undefined === styleWidth) ? 248 : styleWidth; - var pixW_natural = AscCommon.AscBrowser.convertToRetinaValue(pixW, true); - var pixH = 0; - var pixH_natural = 0; - - var mmW = pixW_natural * g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; - var mmH = pixH_natural * g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; - - var wPxOffset = AscBrowser.convertToRetinaValue(8, true); - var wMmOffset = wPxOffset * g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; - - var oLogicDocument = this.m_oWordControl.m_oLogicDocument; - var oStyles = oLogicDocument.GetStyles(); // off History.TurnOff(); var oldTrack = false; + var oLogicDocument = this.m_oWordControl.m_oLogicDocument; if (oLogicDocument.IsTrackRevisions()) { oldTrack = oLogicDocument.GetLocalTrackRevisions(); @@ -3373,138 +3182,9 @@ function CDrawingDocument() var oldMarks = this.m_oWordControl.m_oApi.ShowParaMarks; this.m_oWordControl.m_oApi.ShowParaMarks = false; - var props = [ - { - OutlineStart : 1, - OutlineEnd : 3, - Hyperlink : false, - StylesType : Asc.c_oAscTOCStylesType.Simple, - RightTab : true, - PageNumbers : true, - TabLeader : Asc.c_oAscTabLeader.Dot, - Pages : [2, 5, 15] - }, - { - OutlineStart : 1, - OutlineEnd : 3, - Hyperlink : true, - StylesType : Asc.c_oAscTOCStylesType.Web, - RightTab : true, - PageNumbers : false, - TabLeader : Asc.c_oAscTabLeader.None - } - ]; - for (var i = 0; i < 2; i++) { - // content - var oStyles = oLogicDocument.GetStyles(); - - var oHeader = new CHeaderFooter(oLogicDocument.HdrFtr, oLogicDocument, this, AscCommon.hdrftr_Header); - var oDocumentContent = oHeader.GetContent(); - - var arrLevels = []; - var arrStylesToDelete = []; - var prop = props[i]; - - for (var nCurrentLevel = prop.OutlineStart; nCurrentLevel <= prop.OutlineEnd; ++nCurrentLevel) - { - var sName = "Heading " + nCurrentLevel; - var nLvl = nCurrentLevel - 1; - - var oStyle = new CStyle("", null, null, styletype_Paragraph, true); - oStyle.CreateTOC(nLvl, prop.StylesType); - - oStyle.ParaPr.Spacing.Line = 1.2; - oStyle.ParaPr.Spacing.LineRule = linerule_Auto; - oStyle.ParaPr.Spacing.Before = 0; - oStyle.ParaPr.Spacing.After = 0; - oStyle.ParaPr.ContextualSpacing = true; - - oStyle.ParaPr.Ind.Left = 15 * (nCurrentLevel - 1) * g_dKoef_pt_to_mm; - - oStyle.TextPr.FontFamily = {Name: "Arial", Index: -1}; - oStyle.TextPr.FontSize = 10; - - oStyles.Add(oStyle); - - arrLevels[nLvl] = { - Styles : [sName], - StyleId : oStyle.GetId() - }; - - arrStylesToDelete.push(oStyle.GetId()); - } - - for (var nCurrentLevel = prop.OutlineStart; nCurrentLevel <= prop.OutlineEnd; ++nCurrentLevel) - { - var sStyleId = arrLevels[nCurrentLevel - 1].StyleId; - for (var nStyle = 0, nStylesCount = arrLevels[nCurrentLevel - 1].Styles.length; nStyle < nStylesCount; ++nStyle) - { - var sStyleName = AscCommon.translateManager.getValue(arrLevels[nCurrentLevel - 1].Styles[nStyle]); - - var oParagraph = new AscWord.Paragraph(oDocumentContent, false); - oDocumentContent.AddToContent(nCurrentLevel - 1, oParagraph); - oParagraph.SetParagraphStyleById(sStyleId); - - var oRun = new ParaRun(oParagraph, false); - oParagraph.AddToContent(0, oRun); - oRun.AddText(sStyleName); - - if (prop.PageNumbers) - { - if (prop.RightTab) - { - var oParaTabs = new CParaTabs(); - oParaTabs.Add(new CParaTab(tab_Right, mmW - 4 - wMmOffset, prop.TabLeader)); - oParagraph.SetParagraphTabs(oParaTabs); - - oRun.AddToContent(-1, new AscWord.CRunTab()); - } - else - { - oRun.AddToContent(-1, new AscWord.CRunSpace()); - } - - oRun.AddText("" + prop.Pages[nCurrentLevel - 1]); - } - } - } - - // удаляем последний параграф - oDocumentContent.Content.splice(3, 1); - oDocumentContent.Reset(1, 0, 1000, 10000); - oDocumentContent.Recalculate_Page(0, true); - - for (nStyle = 0, nStylesCount = arrStylesToDelete.length; nStyle < nStylesCount; ++nStyle) - { - oStyles.Remove(arrStylesToDelete[nStyle]); - } - - mmH = oDocumentContent.GetSummaryHeight() + (wMmOffset * 2); - pixH = mmH / g_dKoef_pix_to_mm; - pixH = ((pixH + 3) >> 2) << 2; - pixH_natural = AscCommon.AscBrowser.convertToRetinaValue(pixH, true); - - var canvas = (i === 0) ? canvas1 : canvas2; - - canvas.style.width = pixW + "px"; - canvas.style.height = pixH + "px"; - - canvas.width = pixW_natural; - canvas.height = pixH_natural; - - var ctx = canvas.getContext('2d'); - - ctx.fillStyle = "#FFFFFF"; - ctx.fillRect(0, 0, pixW_natural, pixH_natural); - - var graphics = new AscCommon.CGraphics(); - graphics.init(ctx, pixW_natural, pixH_natural, mmW, mmH); - graphics.m_oFontManager = AscCommon.g_fontManager; - graphics.m_oCoordTransform.tx = graphics.m_oCoordTransform.ty = wPxOffset; - graphics.transform(1, 0, 0, 1, 0, 0); - oDocumentContent.Draw(0, graphics); + DrawTocPreview(this.m_oWordControl.m_oApi, (i === 0) ? canvas1 : canvas2, i, pixW); } this.m_oWordControl.m_oApi.ShowParaMarks = oldMarks; @@ -4055,7 +3735,8 @@ function CDrawingDocument() // recalculate this.OnStartRecalculate = function (pageCount) { - if (!this.m_oWordControl.MobileTouchManager) + let isTouchMode = this.m_oWordControl.MobileTouchManager ? this.m_oWordControl.MobileTouchManager.isTouchMode() : false; + if (!isTouchMode) this.TableOutlineDr.TableOutline = null; if (this.m_oWordControl) @@ -4064,7 +3745,7 @@ function CDrawingDocument() this.m_lCountCalculatePages = pageCount; //console.log("start " + this.m_lCountCalculatePages); - if (this.m_oWordControl && this.m_oWordControl.MobileTouchManager) + if (isTouchMode) this.m_oWordControl.MobileTouchManager.ClearContextMenu(); this.m_bIsDocumentCalculating = true; @@ -5224,9 +4905,10 @@ function CDrawingDocument() this.StartTrackTable = function (obj, transform) { - if (this.m_oWordControl.MobileTouchManager) + let touchManager = this.m_oWordControl.MobileTouchManager; + if (touchManager && touchManager.isTouchMode()) { - if (!this.m_oWordControl.MobileTouchManager.TableStartTrack_Check) + if (!touchManager.TableStartTrack_Check) return; } @@ -6146,7 +5828,8 @@ function CDrawingDocument() this.m_oWordControl.UpdateHorRuler(); this.m_oWordControl.UpdateVerRuler(); - if (this.m_oWordControl.MobileTouchManager) + if (this.m_oWordControl.MobileTouchManager && + this.m_oWordControl.MobileTouchManager.isTouchMode()) { this.m_oWordControl.MobileTouchManager.TableStartTrack_Check = true; markup.Table.StartTrackTable(); @@ -6638,6 +6321,9 @@ function CDrawingDocument() this.m_oWordControl.m_oApi.ShowParaMarks = this.m_bOldShowMarks; this.printedDocument = null; } + + // TODO: Когда в интерфейсе появится флаг как писать заголовки послать его вторым параметром + renderer.AddHeadings(_this.m_oLogicDocument, true); if (noBase64) { return renderer.Memory.GetData(); @@ -6719,6 +6405,11 @@ function CDrawingDocument() this.UpdateTarget(this.m_dTargetX, this.m_dTargetY, this.m_lTargetPage); } }; + + this.scrollToTarget = function() + { + this.scrollToTargetOnRecalculate(-1, this.m_arrPages.length); + }; this.ChangePageAttack = function (pageIndex) { @@ -6887,9 +6578,7 @@ function CDrawingDocument() this.IsMobileVersion = function () { - if (this.m_oWordControl.MobileTouchManager) - return true; - return false; + return this.m_oWordControl.m_oApi.isMobileVersion; }; this.isButtonsDisabled = function() diff --git a/word/Drawing/DrawingDocumentInterface.js b/word/Drawing/DrawingDocumentInterface.js new file mode 100644 index 0000000000..c283dfd983 --- /dev/null +++ b/word/Drawing/DrawingDocumentInterface.js @@ -0,0 +1,405 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +function DrawTocPreview(api, canvas, index, pixW, scale) +{ + if (undefined === scale) + scale = AscCommon.AscBrowser.retinaPixelRatio; + + let prop = null; + if (0 === index) + { + prop = { + OutlineStart : 1, + OutlineEnd : 3, + Hyperlink : false, + StylesType : Asc.c_oAscTOCStylesType.Simple, + RightTab : true, + PageNumbers : true, + TabLeader : Asc.c_oAscTabLeader.Dot, + Pages : [2, 5, 15] + }; + } + else + { + prop = { + OutlineStart : 1, + OutlineEnd : 3, + Hyperlink : true, + StylesType : Asc.c_oAscTOCStylesType.Web, + RightTab : true, + PageNumbers : false, + TabLeader : Asc.c_oAscTabLeader.None + }; + } + + let mmW = pixW * g_dKoef_pix_to_mm; + + // content + let oLogicDocument = api.WordControl.m_oLogicDocument; + let oDrawindDocument = api.WordControl.m_oDrawingDocument; + let oStyles = oLogicDocument.GetStyles(); + let oHeader = new CHeaderFooter(oLogicDocument.HdrFtr, oLogicDocument, oDrawindDocument, AscCommon.hdrftr_Header); + let oDocumentContent = oHeader.GetContent(); + + let arrLevels = []; + let arrStylesToDelete = []; + + let wPxOffset = ((8 * scale) + 0.5) >> 0; + let wMmOffset = wPxOffset * g_dKoef_pix_to_mm / scale; + + for (let nCurrentLevel = prop.OutlineStart; nCurrentLevel <= prop.OutlineEnd; ++nCurrentLevel) + { + let sName = "Heading " + nCurrentLevel; + let nLvl = nCurrentLevel - 1; + + let oStyle = new CStyle("", null, null, styletype_Paragraph, true); + oStyle.CreateTOC(nLvl, prop.StylesType); + + oStyle.ParaPr.Spacing.Line = 1.2; + oStyle.ParaPr.Spacing.LineRule = linerule_Auto; + oStyle.ParaPr.Spacing.Before = 0; + oStyle.ParaPr.Spacing.After = 0; + oStyle.ParaPr.ContextualSpacing = true; + + oStyle.ParaPr.Ind.Left = 15 * (nCurrentLevel - 1) * g_dKoef_pt_to_mm; + + oStyle.TextPr.FontFamily = {Name: "Arial", Index: -1}; + oStyle.TextPr.FontSize = 10; + + oStyles.Add(oStyle); + + arrLevels[nLvl] = { + Styles : [sName], + StyleId : oStyle.GetId() + }; + + arrStylesToDelete.push(oStyle.GetId()); + } + + for (let nCurrentLevel = prop.OutlineStart; nCurrentLevel <= prop.OutlineEnd; ++nCurrentLevel) + { + var sStyleId = arrLevels[nCurrentLevel - 1].StyleId; + for (let nStyle = 0, nStylesCount = arrLevels[nCurrentLevel - 1].Styles.length; nStyle < nStylesCount; ++nStyle) + { + var sStyleName = AscCommon.translateManager.getValue(arrLevels[nCurrentLevel - 1].Styles[nStyle]); + + var oParagraph = new AscWord.Paragraph(oDocumentContent, false); + oDocumentContent.AddToContent(nCurrentLevel - 1, oParagraph); + oParagraph.SetParagraphStyleById(sStyleId); + + var oRun = new ParaRun(oParagraph, false); + oParagraph.AddToContent(0, oRun); + oRun.AddText(sStyleName); + + if (prop.PageNumbers) + { + if (prop.RightTab) + { + var oParaTabs = new CParaTabs(); + oParaTabs.Add(new CParaTab(tab_Right, mmW - 4 - wMmOffset, prop.TabLeader)); + oParagraph.SetParagraphTabs(oParaTabs); + + oRun.AddToContent(-1, new AscWord.CRunTab()); + } + else + { + oRun.AddToContent(-1, new AscWord.CRunSpace()); + } + + oRun.AddText("" + prop.Pages[nCurrentLevel - 1]); + } + } + } + + // удаляем последний параграф + oDocumentContent.Content.splice(3, 1); + oDocumentContent.Reset(1, 0, 1000, 10000); + oDocumentContent.Recalculate_Page(0, true); + + for (let nStyle = 0, nStylesCount = arrStylesToDelete.length; nStyle < nStylesCount; ++nStyle) + { + oStyles.Remove(arrStylesToDelete[nStyle]); + } + + let mmH = oDocumentContent.GetSummaryHeight() + (wMmOffset * 2); + let pixH = mmH / g_dKoef_pix_to_mm; + pixH = ((pixH + 3) >> 2) << 2; + let pixW_natural = ((pixW * scale) + 0.5) >> 0; + let pixH_natural = ((pixH * scale) + 0.5) >> 0; + + let graphics = null; + if (canvas.style !== undefined) + { + canvas.style.width = pixW + "px"; + canvas.style.height = pixH + "px"; + + canvas.width = pixW_natural; + canvas.height = pixH_natural; + + let ctx = canvas.getContext('2d'); + + ctx.fillStyle = "#FFFFFF"; + ctx.fillRect(0, 0, pixW_natural, pixH_natural); + + graphics = new AscCommon.CGraphics(); + graphics.init(ctx, pixW_natural, pixH_natural, mmW, mmH); + graphics.m_oFontManager = AscCommon.g_fontManager; + graphics.m_oCoordTransform.tx = graphics.m_oCoordTransform.ty = wPxOffset; + graphics.transform(1, 0, 0, 1, 0, 0); + } + else + { + graphics = new CNativeGraphics(canvas); + graphics.width = pixW_natural; + graphics.height = pixH_natural; + graphics.create(null, pixW_natural, pixH_natural, mmW, mmH); + graphics.CoordTransformOffset(wPxOffset, wPxOffset); + graphics.transform(1, 0, 0, 1, 0, 0); + } + + oDocumentContent.Draw(0, graphics); +} + +function DrawCustomTocPreview(api, canvas, props, widthPx, heightPx, scale) +{ + let oLogicDocument = api.WordControl.m_oLogicDocument; + let oDrawingDocument = api.WordControl.m_oDrawingDocument; + let oStyles = oLogicDocument.GetStyles(); + + let oHeader = new CHeaderFooter(oLogicDocument.HdrFtr, oLogicDocument, oDrawingDocument, AscCommon.hdrftr_Header); + let oDocumentContent = oHeader.GetContent(); + + let nOutlineStart = props.get_OutlineStart(); + let nOutlineEnd = props.get_OutlineEnd(); + let nStylesType = props.get_StylesType(); + let isShowPageNum = props.get_ShowPageNumbers(); + let isRightTab = props.get_RightAlignTab(); + let nTabLeader = props.get_TabLeader(); + + if (undefined === scale) + scale = AscCommon.AscBrowser.retinaPixelRatio; + + let wPx = ((widthPx * scale) + 0.5) >> 0; + let hPx = ((heightPx * scale) + 0.5) >> 0; + let wMm = wPx * g_dKoef_pix_to_mm / scale; + let hMm = hPx * g_dKoef_pix_to_mm / scale; + + let wPxOffset = ((8 * scale) + 0.5) >> 0; + let wMmOffset = wPxOffset * g_dKoef_pix_to_mm / scale; + + if (undefined === nTabLeader || null === nTabLeader) + nTabLeader = Asc.c_oAscTabLeader.Dot; + + let arrLevels = []; + let arrStylesToDelete = []; + + let nStyle, nStylesCount, nAddStyle, nAddStyleCount; + let nLvl, sName, sStyleId, oStyle, isAddStyle; + for (nStyle = 0, nStylesCount = props.get_StylesCount(); nStyle < nStylesCount; ++nStyle) + { + nLvl = props.get_StyleLevel(nStyle) - 1; + sName = props.get_StyleName(nStyle); + + if (!arrLevels[nLvl]) + { + sStyleId = null; + if (Asc.c_oAscTOCStylesType.Current === nStylesType) + { + sStyleId = oStyles.GetDefaultTOC(nLvl); + } + else + { + oStyle = new CStyle("", null, null, styletype_Paragraph, true); + oStyle.CreateTOC(nLvl, nStylesType); + sStyleId = oStyle.GetId(); + oStyles.Add(oStyle); + arrStylesToDelete.push(oStyle.GetId()); + } + arrLevels[nLvl] = { + Styles : [], + StyleId : sStyleId + }; + } + + isAddStyle = true; + for (nAddStyle = 0, nAddStyleCount = arrLevels[nLvl].Styles.length; nAddStyle < nAddStyleCount; ++nAddStyle) + { + if (arrLevels[nLvl].Styles[nAddStyle] === sName) + { + isAddStyle = false; + break; + } + } + + if (isAddStyle) + arrLevels[nLvl].Styles.push(sName); + } + + if (-1 !== nOutlineEnd && -1 !== nOutlineStart) + { + for (let _nLvl = nOutlineStart; _nLvl <= nOutlineEnd; ++_nLvl) + { + sName = "Heading " + _nLvl; + nLvl = _nLvl - 1; + + if (!arrLevels[nLvl]) + { + sStyleId = null; + if (Asc.c_oAscTOCStylesType.Current === nStylesType) + { + sStyleId = oStyles.GetDefaultTOC(nLvl); + } + else + { + oStyle = new CStyle("", null, null, styletype_Paragraph, true); + oStyle.CreateTOC(nLvl, nStylesType); + sStyleId = oStyle.GetId(); + oStyles.Add(oStyle); + arrStylesToDelete.push(oStyle.GetId()); + } + + arrLevels[nLvl] = { + Styles : [], + StyleId : sStyleId + }; + } + + isAddStyle = true; + for (nAddStyle = 0, nAddStyleCount = arrLevels[nLvl].Styles.length; nAddStyle < nAddStyleCount; ++nAddStyle) + { + if (arrLevels[nLvl].Styles[nAddStyle] === sName) + { + isAddStyle = false; + break; + } + } + + if (isAddStyle) + arrLevels[nLvl].Styles.push(sName); + } + } + + let oParaIndex = 0; + let nPageIndex = 1; + + for (nLvl = 0; nLvl <= 8; ++nLvl) + { + if (!arrLevels[nLvl]) + continue; + + sStyleId = arrLevels[nLvl].StyleId; + for (nStyle = 0, nStylesCount = arrLevels[nLvl].Styles.length; nStyle < nStylesCount; ++nStyle) + { + let sStyleName = AscCommon.translateManager.getValue(arrLevels[nLvl].Styles[nStyle]); + + let oParagraph = new AscWord.Paragraph(oDocumentContent, false); + oDocumentContent.AddToContent(oParaIndex++, oParagraph); + oParagraph.SetParagraphStyleById(sStyleId); + + let oRun = new ParaRun(oParagraph, false); + oParagraph.AddToContent(0, oRun); + oRun.AddText(sStyleName); + + if (isShowPageNum) + { + if (isRightTab) + { + var oParaTabs = new CParaTabs(); + oParaTabs.Add(new CParaTab(tab_Right, wMm - 2 - wMmOffset, nTabLeader)); + oParagraph.SetParagraphTabs(oParaTabs); + + oRun.AddToContent(-1, new AscWord.CRunTab()); + } + else + { + oRun.AddToContent(-1, new AscWord.CRunSpace()); + } + + oRun.AddText("" + nPageIndex); + + nPageIndex += 2; + } + } + } + + oDocumentContent.Reset(1, 0, 1000, 10000); + oDocumentContent.Recalculate_Page(0, true); + + for (nStyle = 0, nStylesCount = arrStylesToDelete.length; nStyle < nStylesCount; ++nStyle) + { + oStyles.Remove(arrStylesToDelete[nStyle]); + } + + var nContentHeight = oDocumentContent.GetSummaryHeight(); + var nContentHeightPx = (scale * nContentHeight / g_dKoef_pix_to_mm) >> 0; + + if (nContentHeightPx > hPx) + { + hPx = nContentHeightPx; + hMm = nContentHeight; + } + + let graphics = null; + if (canvas.style !== undefined) + { + canvas.style.width = widthPx + "px"; + canvas.width = wPx; + + canvas.style.height = (((hPx / scale) + 0.5) >> 0) + "px"; + canvas.height = hPx; + + let ctx = canvas.getContext('2d'); + + ctx.fillStyle = "#FFFFFF"; + ctx.fillRect(0, 0, wPx, hPx); + + graphics = new AscCommon.CGraphics(); + graphics.init(ctx, wPx, hPx, wMm, hMm); + graphics.m_oFontManager = AscCommon.g_fontManager; + graphics.m_oCoordTransform.tx = graphics.m_oCoordTransform.ty = wPxOffset; + graphics.transform(1, 0, 0, 1, 0, 0); + } + else + { + graphics = new CNativeGraphics(canvas); + graphics.width = wPx; + graphics.height = hPx; + graphics.create(null, wPx, hPx, wMm, hMm); + graphics.CoordTransformOffset(wPxOffset, wPxOffset); + graphics.transform(1, 0, 0, 1, 0, 0); + } + + oDocumentContent.Draw(0, graphics); +} diff --git a/word/Drawing/Graphics.js b/word/Drawing/Graphics.js index 30e95d1aa5..1d1a93d176 100644 --- a/word/Drawing/Graphics.js +++ b/word/Drawing/Graphics.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Drawing/GraphicsEvents.js b/word/Drawing/GraphicsEvents.js index 166faee78d..90f98b58ca 100644 --- a/word/Drawing/GraphicsEvents.js +++ b/word/Drawing/GraphicsEvents.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Drawing/HtmlPage.js b/word/Drawing/HtmlPage.js index 4f895a5155..220b222740 100644 --- a/word/Drawing/HtmlPage.js +++ b/word/Drawing/HtmlPage.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -207,7 +207,7 @@ function CEditorPage(api) this.IsInitControl = false; // paint loop - this.paintMessageLoop = new AscCommon.PaintMessageLoop(40); + this.paintMessageLoop = new AscCommon.PaintMessageLoop(40, api); this.m_oApi = api; var oThis = this; @@ -221,6 +221,12 @@ function CEditorPage(api) { this.X = off.left; this.Y = off.top; + + if (AscCommon.AscBrowser.isOffsetUsedZoom()) + { + this.X *= AscCommon.AscBrowser.zoom; + this.Y *= AscCommon.AscBrowser.zoom; + } } }; @@ -485,48 +491,11 @@ function CEditorPage(api) AscCommon.stopEvent(e); return false; }; - - this.initEventsMobileAdvances(); - }; - - this.initEventsMobileAdvances = function() - { - this.m_oTopRuler_horRuler.HtmlElement["ontouchstart"] = function(e) - { - oThis.horRulerMouseDown(e.touches[0]); - return false; - }; - this.m_oTopRuler_horRuler.HtmlElement["ontouchmove"] = function(e) - { - oThis.horRulerMouseMove(e.touches[0]); - return false; - }; - this.m_oTopRuler_horRuler.HtmlElement["ontouchend"] = function(e) - { - oThis.horRulerMouseUp(e.changedTouches[0]); - return false; - }; - - this.m_oLeftRuler_vertRuler.HtmlElement["ontouchstart"] = function(e) - { - oThis.verRulerMouseDown(e.touches[0]); - return false; - }; - this.m_oLeftRuler_vertRuler.HtmlElement["ontouchmove"] = function(e) - { - oThis.verRulerMouseMove(e.touches[0]); - return false; - }; - this.m_oLeftRuler_vertRuler.HtmlElement["ontouchend"] = function(e) - { - oThis.verRulerMouseUp(e.changedTouches[0]); - return false; - }; }; this.initEventsMobile = function() { - if (this.m_oApi.isMobileVersion) + if (this.m_oApi.isUseOldMobileVersion()) { this.MobileTouchManager = new AscCommon.CMobileTouchManager( { eventsElement : "word_mobile_element" } ); this.MobileTouchManager.Init(this.m_oApi); @@ -561,6 +530,14 @@ function CEditorPage(api) }; } } + else + { + this.MobileTouchManager = new AscCommon.CMobileTouchManager( { eventsElement : "word_mobile_element", desktopMode : true } ); + this.MobileTouchManager.Init(this.m_oApi); + this.MobileTouchManager.Resize(); + + this.MobileTouchManager.addClickElement([this.m_oEditor.HtmlElement, this.m_oOverlay.HtmlElement]); + } }; // mouse hand mode --- @@ -1744,6 +1721,17 @@ function CEditorPage(api) // events --- this.onMouseDown = function(e, isTouch) { + if (oThis.MobileTouchManager && oThis.MobileTouchManager.checkTouchEvent(e)) + { + oThis.MobileTouchManager.startTouchingInProcess(); + let res = oThis.MobileTouchManager.mainOnTouchStart(e); + oThis.MobileTouchManager.stopTouchingInProcess(); + return res; + } + + if (oThis.MobileTouchManager) + oThis.MobileTouchManager.checkMouseFocus(e); + oThis.m_oApi.checkInterfaceElementBlur(); oThis.m_oApi.checkLastWork(); @@ -1884,6 +1872,14 @@ function CEditorPage(api) this.onMouseMove = function(e, isTouch) { + if (oThis.MobileTouchManager && oThis.MobileTouchManager.checkTouchEvent(e)) + { + oThis.MobileTouchManager.startTouchingInProcess(); + let res = oThis.MobileTouchManager.mainOnTouchMove(e); + oThis.MobileTouchManager.stopTouchingInProcess(); + return res; + } + oThis.m_oApi.checkLastWork(); if (false === oThis.m_oApi.bInit_word_control || (AscCommon.isTouch && undefined === isTouch) || oThis.m_oApi.isLongAction()) @@ -1931,6 +1927,7 @@ function CEditorPage(api) oWordControl.m_oLogicDocument && oWordControl.m_oLogicDocument.UpdateCursorType(); oWordControl.StartUpdateOverlay(); + oWordControl.m_oDrawingDocument.contentControls.onPointerLeave(); oWordControl.OnUpdateOverlay(); oWordControl.EndUpdateOverlay(); return; @@ -2043,6 +2040,14 @@ function CEditorPage(api) this.onMouseUp = function(e, bIsWindow, isTouch) { + if (oThis.MobileTouchManager && oThis.MobileTouchManager.checkTouchEvent(e)) + { + oThis.MobileTouchManager.startTouchingInProcess(); + let res = oThis.MobileTouchManager.mainOnTouchEnd(e); + oThis.MobileTouchManager.stopTouchingInProcess(); + return res; + } + oThis.m_oApi.checkLastWork(); //console.log("up: " + isTouch + ", " + AscCommon.isTouch); @@ -2292,7 +2297,7 @@ function CEditorPage(api) // пошлем сначала моусдаун //oWordControl.m_oLogicDocument.OnMouseDown(global_mouseEvent, pos.X, pos.Y, pos.Page); } - if(!oThis.checkFinishEyedropper()) + if (!oThis.checkFinishEyedropper()) { if (bIsSendedToEditor) oWordControl.m_oLogicDocument.OnMouseUp(global_mouseEvent, pos.X, pos.Y, pos.Page); @@ -2302,8 +2307,12 @@ function CEditorPage(api) oWordControl.MouseDownDocumentCounter = 0; oWordControl.m_bIsMouseUpSend = false; - oWordControl.m_oLogicDocument.Document_UpdateInterfaceState(); - oWordControl.m_oLogicDocument.Document_UpdateRulersState(); + + if (bIsSendedToEditor) + { + oWordControl.m_oLogicDocument.Document_UpdateInterfaceState(); + oWordControl.m_oLogicDocument.Document_UpdateRulersState(); + } oWordControl.EndUpdateOverlay(); }; @@ -2380,9 +2389,18 @@ function CEditorPage(api) deltaX >>= 0; deltaY >>= 0; - if (0 != deltaX) + let isSupportDirections2 = false; + if (!isSupportDirections2) + { + if (Math.abs(deltaY) >= Math.abs(deltaX)) + deltaX = 0; + else + deltaY = 0; + } + + if (0 !== deltaX) oThis.m_oScrollHorApi.scrollBy(deltaX, 0, false); - else if (0 != deltaY) + if (0 !== deltaY) oThis.m_oScrollVerApi.scrollBy(0, deltaY, false); // здесь - имитируем моус мув --------------------------- @@ -3410,7 +3428,8 @@ function CEditorPage(api) } var _table_outline = drDoc.TableOutlineDr.TableOutline; - if (_table_outline != null && !this.MobileTouchManager) + let isTouchMode = this.MobileTouchManager ? this.MobileTouchManager.isTouchMode() : false; + if (_table_outline != null && !isTouchMode) { var _page = _table_outline.PageNum; if (_page >= drDoc.m_lDrawingFirst && _page <= drDoc.m_lDrawingEnd) @@ -3500,6 +3519,12 @@ function CEditorPage(api) { drDoc.m_oDocumentRenderer.onUpdateOverlay(); } + + if (this.MobileTouchManager) + { + let targetElement = (this.m_oDrawingDocument && this.m_oDrawingDocument.isDrawTargetGlass()) ? this.m_oDrawingDocument.TargetHtmlElement : null; + this.MobileTouchManager.CheckGlass(overlay, this.m_oEditor.HtmlElement, targetElement); + } }; this.OnScroll = function(isFromLA) @@ -3709,8 +3734,7 @@ function CEditorPage(api) if (AscCommon.g_inputContext) AscCommon.g_inputContext.onResize("id_main_view"); - if (this.m_oApi.isMobileVersion) - this.initEventsMobile(); + this.initEventsMobile(); } if (undefined !== this.m_oApi.startMobileOffset) diff --git a/word/Drawing/Rulers.js b/word/Drawing/Rulers.js index 4a0e91a18b..a600fa903d 100644 --- a/word/Drawing/Rulers.js +++ b/word/Drawing/Rulers.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -2270,6 +2270,8 @@ function CHorRuler() this.m_oWordControl.m_oLogicDocument.SetParagraphTabs(_arr); this.m_oWordControl.m_oLogicDocument.FinalizeAction(); } + this.m_oWordControl.m_oLogicDocument.UpdateSelection(); + this.m_oWordControl.m_oLogicDocument.UpdateInterface(); } this.SetPrProperties = function(isTemporary) @@ -2280,7 +2282,11 @@ function CHorRuler() let logicDocument = this.m_oWordControl.m_oLogicDocument; if (logicDocument.IsSelectionLocked(AscCommon.changestype_Paragraph_Properties)) + { + logicDocument.UpdateSelection(); + logicDocument.UpdateInterface(); return; + } isTemporary = isTemporary && logicDocument.IsDocumentEditor(); @@ -2311,8 +2317,8 @@ function CHorRuler() this.m_oWordControl.m_oLogicDocument.SetDocumentMargin( { Left : this.m_dMarginLeft, Right : this.m_dMarginRight }, true); this.m_oWordControl.m_oLogicDocument.FinalizeAction(); } - //oWordControl.m_oLogicDocument.SetParagraphIndent( { Left : this.m_dIndentLeft, Right : this.m_dIndentRight, - // FirstLine: (this.m_dIndentLeftFirst - this.m_dIndentLeft) } ); + this.m_oWordControl.m_oLogicDocument.UpdateSelection(); + this.m_oWordControl.m_oLogicDocument.UpdateInterface(); } this.SetTableProperties = function() @@ -2326,11 +2332,12 @@ function CHorRuler() if (this.m_oTableMarkup) this.m_oTableMarkup.CorrectFrom(); - this.m_oWordControl.m_oLogicDocument.UpdateInterface(); this.m_oWordControl.m_oLogicDocument.UpdateRulers(); this.m_oWordControl.m_oLogicDocument.FinalizeAction(); } - } + this.m_oWordControl.m_oLogicDocument.UpdateSelection(); + this.m_oWordControl.m_oLogicDocument.UpdateInterface(); + } this.SetColumnsProperties = function() { diff --git a/word/Drawing/ShapeDrawer.js b/word/Drawing/ShapeDrawer.js index fee9048efa..b9df537971 100644 --- a/word/Drawing/ShapeDrawer.js +++ b/word/Drawing/ShapeDrawer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Drawing/buttons.js b/word/Drawing/buttons.js index 68d77a5fa3..5a3cbdbedd 100644 --- a/word/Drawing/buttons.js +++ b/word/Drawing/buttons.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -348,7 +348,7 @@ }; } - AscCommon.CreateDrawingPlaceholder = function(id, buttons, page, rect, transform) + AscCommon.CreateDrawingPlaceholder = function(id, buttons, page, rect, transform, isDisabled) { var placeholder = new Placeholder(); placeholder.id = id; @@ -356,7 +356,7 @@ placeholder.anchor.page = page; placeholder.anchor.rect = rect; placeholder.anchor.transform = transform; - + placeholder.isDisabled = isDisabled; for (var i = 0; i < placeholder.buttons.length; i++) placeholder.states[i] = AscCommon.PlaceholderButtonState.None; @@ -388,6 +388,8 @@ rect : { x : 0, y : 0, w : 0, h : 0 }, transform : null }; + + this.isDisabled = false; } Placeholder.prototype.getCenterInPixels = function(pixelsRect, pageWidthMM, pageHeightMM) @@ -513,8 +515,9 @@ Placeholder.prototype.onPointerDown = function(x, y, pixelsRect, pageWidthMM, pageHeightMM) { - var pointMenu = { x : 0, y : 0 }; - var indexButton = this.isInside(x, y, pixelsRect, pageWidthMM, pageHeightMM, pointMenu); + if(this.isDisabled) return false; + let pointMenu = { x : 0, y : 0 }; + let indexButton = this.isInside(x, y, pixelsRect, pageWidthMM, pageHeightMM, pointMenu); if (-1 == indexButton) return false; @@ -569,6 +572,7 @@ Placeholder.prototype.onPointerMove = function(x, y, pixelsRect, pageWidthMM, pageHeightMM, checker) { + if(this.isDisabled) return false; var indexButton = this.isInside(x, y, pixelsRect, pageWidthMM, pageHeightMM); // может в кнопку-то и не попали, но состояние могло смениться => нужно перерисовать интерфейс @@ -1033,6 +1037,9 @@ }; } + var CONTENT_CONTROL_HEADER_MOVER_W = 15; + var CONTENT_CONTROL_TRACK_H = 20; + function CContentControlTrack(parent, obj, state, geom) { if (window["NATIVE_EDITOR_ENJINE"]) @@ -1204,13 +1211,13 @@ var rect = { X : this.Pos.X, - Y : this.Pos.Y - 20 / koefY, + Y : this.Pos.Y - CONTENT_CONTROL_TRACK_H / koefY, W : width / koefX, - H : 20 / koefY + H : CONTENT_CONTROL_TRACK_H / koefY }; if (!this.IsNoUseButtons()) - rect.X += 15 / koefX; + rect.X += CONTENT_CONTROL_HEADER_MOVER_W / koefX; return rect; }; @@ -1226,7 +1233,7 @@ X : this.Pos.X, Y : this.Pos.Y, W : 0, - H : 20 / koefY + H : CONTENT_CONTROL_TRACK_H / koefY }; rectEmpty.Y -= rectEmpty.H; return rectEmpty; @@ -1235,8 +1242,8 @@ var rect = { X : this.Pos.X, Y : this.Pos.Y, - W : 15 / koefX, - H : 20 / koefY + W : CONTENT_CONTROL_HEADER_MOVER_W / koefX, + H : CONTENT_CONTROL_TRACK_H / koefY }; if (this.formInfo && undefined !== this.formInfo.MoveRectH) @@ -1288,7 +1295,7 @@ var rect = { X : this.ComboRect.X, Y : this.ComboRect.Y, - W : 20 / koefX, + W : CONTENT_CONTROL_TRACK_H / koefX, H : (this.ComboRect.B - this.ComboRect.Y), Page : this.ComboRect.Page }; @@ -1522,6 +1529,17 @@ return new CContentControlTrack(this.parent, this.base, this.state, this.geom); }; + CContentControlTrack.prototype.isFormFullOneButtonHover = function() + { + if (!this.IsNoUseButtons() && + this.formInfo && + Asc.c_oAscContentControlSpecificType.Picture === this.type) + { + return true; + } + return false; + }; + // draw methods CContentControlTrack.prototype.SetColor = function(ctx) { @@ -1908,6 +1926,8 @@ if (_object.state == AscCommon.ContentControlTrack.In && !_object.isForm) { + let cctw = Math.round(CONTENT_CONTROL_TRACK_H * rPR); + // draw header if (_object.Pos.Page >= _pageStart && _object.Pos.Page <= _pageEnd) { @@ -1918,38 +1938,38 @@ _y = (((_drawingPage.top + _koefY * (_object.Pos.Y + _object.OffsetY)) * rPR) >> 0) + 0.5 * Math.round(rPR); if (_object.Name != "" || 0 != _object.Buttons.length) - _y -= Math.round(20 * rPR); + _y -= cctw; else - _x -= Math.round(15 * rPR); + _x -= Math.round(CONTENT_CONTROL_HEADER_MOVER_W * rPR); var widthName = 0; if (_object.Name != "") widthName = ((_object.CalculateNameRect(_koefX, _koefY).W * _koefX) * rPR) >> 0; - var widthHeader = (widthName + 20 * _object.Buttons.length * rPR) >> 0 ; + var widthHeader = (widthName + CONTENT_CONTROL_TRACK_H * _object.Buttons.length * rPR) >> 0 ; var xText = _x; if (_object.IsUseMoveRect()) { - widthHeader += Math.round(15 * rPR); - xText += Math.round(15 * rPR); + widthHeader += Math.round(CONTENT_CONTROL_HEADER_MOVER_W * rPR); + xText += Math.round(CONTENT_CONTROL_HEADER_MOVER_W * rPR); } if (0 != widthHeader) { // сразу чекаем весь хедер - overlay.CheckRect(_x, _y, widthHeader, Math.round(20 * rPR) ); + overlay.CheckRect(_x, _y, widthHeader, cctw); // рисуем подложку ctx.fillStyle = AscCommon.GlobalSkin.ContentControlsBack; - ctx.rect(_x, _y, widthHeader, Math.round(20 * rPR)); + ctx.rect(_x, _y, widthHeader, cctw); ctx.fill(); ctx.beginPath(); // draw mover in header if (_object.IsUseMoveRect()) { - ctx.rect(_x, _y, Math.round(15 * rPR), Math.round(20 * rPR)); + ctx.rect(_x, _y, Math.round(CONTENT_CONTROL_HEADER_MOVER_W * rPR), cctw); ctx.fillStyle = (1 == this.ContentControlObjectState) ? AscCommon.GlobalSkin.ContentControlsAnchorActive : AscCommon.GlobalSkin.ContentControlsBack; ctx.fill(); ctx.beginPath(); @@ -1987,7 +2007,7 @@ else ctx.fillStyle = AscCommon.GlobalSkin.ContentControlsBack; - ctx.rect(xText, _y, widthName, Math.round(20 * rPR)); + ctx.rect(xText, _y, widthName, cctw); ctx.fill(); ctx.beginPath(); @@ -1995,7 +2015,7 @@ ctx.font = Math.round(11 * rPR) + "px Helvetica, Arial, sans-serif"; let _textShift = ctx.direction === "rtl" ? _object.CalculateNameRectNatural() * rPR : 0; - _object.fillText(ctx, _object.Name, xText + Math.round(3 * rPR) + _textShift, _y + Math.round(20 * rPR) - Math.round(6 * rPR), _object.CalculateNameRectNatural() * rPR); + _object.fillText(ctx, _object.Name, xText + Math.round(3 * rPR) + _textShift, _y + cctw - Math.round(6 * rPR), _object.CalculateNameRectNatural() * rPR); if (_object.IsNameAdvanced() && !_object.IsNoUseButtons()) { @@ -2034,20 +2054,20 @@ if (isFill) { - ctx.rect(xText + widthName + 20 * nIndexB, _y, Math.round(20 * rPR), Math.round(20 * rPR)); + ctx.rect(xText + widthName + CONTENT_CONTROL_TRACK_H * nIndexB, _y, cctw, cctw); ctx.fill(); ctx.beginPath(); } var image = this.icons.getImage(_object.Buttons[nIndexB], nIndexB == _object.ActiveButtonIndex); if (image) - ctx.drawImage(image, (xText + widthName + rPR * 20 * nIndexB) >> 0, _y >> 0, Math.round(20 * rPR), Math.round(20 * rPR)); + ctx.drawImage(image, (xText + widthName + rPR * CONTENT_CONTROL_TRACK_H * nIndexB) >> 0, _y >> 0, cctw, cctw); } // рисуем единую обводку _object.SetColor(ctx); ctx.beginPath(); - ctx.rect(_x, _y, widthHeader, Math.round(20 * rPR)); + ctx.rect(_x, _y, widthHeader, cctw); ctx.stroke(); ctx.beginPath(); } @@ -2061,8 +2081,8 @@ var nIndexB = _object.Buttons.length; ctx.beginPath(); - ctx.rect(_x, _y, Math.round(20 * rPR), _b - _y); - overlay.CheckRect(_x, _y, Math.round(20 * rPR), _b - _y); + ctx.rect(_x, _y, cctw, _b - _y); + overlay.CheckRect(_x, _y, cctw, _b - _y); if (_object.ActiveButtonIndex == nIndexB) ctx.fillStyle = AscCommon.GlobalSkin.ContentControlsActive; else if (_object.HoverButtonIndex == nIndexB) @@ -2076,7 +2096,7 @@ var image = this.icons.getImage(AscCommon.CCButtonType.Combo, _object.Buttons.length == _object.ActiveButtonIndex); if (image && Math.round(7 * rPR) < (_b - _y)) - ctx.drawImage(image, _x + 0.5 * Math.round(rPR), _y + 1.5 * Math.round(rPR) + ((_b - _y - Math.round(20 * rPR)) >> 1), Math.round(20 * rPR), Math.round(20 * rPR)); + ctx.drawImage(image, _x + 0.5 * Math.round(rPR), _y + 1.5 * Math.round(rPR) + ((_b - _y - cctw) >> 1), cctw, cctw); } } else @@ -2091,9 +2111,9 @@ global_MatrixTransformer.MultiplyAppend(_ft, coords); ctx.transform(_ft.sx, _ft.shy, _ft.shx, _ft.sy, _ft.tx, _ft.ty); - var scaleX_15 = 15 / _koefX; - var scaleX_20 = 20 / _koefX; - var scaleY_20 = 20 / _koefY; + var scaleX_15 = CONTENT_CONTROL_HEADER_MOVER_W / _koefX; + var scaleX_20 = CONTENT_CONTROL_TRACK_H / _koefX; + var scaleY_20 = CONTENT_CONTROL_TRACK_H / _koefY; // check overlay bounds ---------- _x = _object.Pos.X - scaleX_15; @@ -2172,9 +2192,9 @@ var cy4 = _y + 10 / _koefY; var cx5 = _x + 5 / _koefX; - var cy5 = _y + 15 / _koefY; + var cy5 = _y + CONTENT_CONTROL_HEADER_MOVER_W / _koefY; var cx6 = _x + 10 / _koefX; - var cy6 = _y + 15 / _koefY; + var cy6 = _y + CONTENT_CONTROL_HEADER_MOVER_W / _koefY; var rad = 1.5 / _koefX; overlay.AddEllipse2(cx1, cy1, rad); @@ -2210,7 +2230,7 @@ ctx.fillStyle = (_object.ActiveButtonIndex == -1) ? AscCommon.GlobalSkin.ContentControlsTextActive : AscCommon.GlobalSkin.ContentControlsText; ctx.font = this.getFont(_koefY); let _textShift = ctx.direction === "rtl" ? _object.CalculateNameRectNatural() / _koefX : 0; - _object.fillText(ctx, _object.Name, xText + 3 / _koefX + _textShift, _y + (20 - 6) / _koefY, _object.CalculateNameRectNatural() / _koefX); + _object.fillText(ctx, _object.Name, xText + 3 / _koefX + _textShift, _y + (CONTENT_CONTROL_TRACK_H - 6) / _koefY, _object.CalculateNameRectNatural() / _koefX); if (_object.IsNameAdvanced() && !_object.IsNoUseButtons()) { @@ -2426,8 +2446,8 @@ var x, y, w, h; if (_object.formInfo) { - w = 20 / koefX; - h = 20 / koefY; + w = CONTENT_CONTROL_TRACK_H / koefX; + h = CONTENT_CONTROL_TRACK_H / koefY; x = _object.formInfo.bounds.x + (_object.formInfo.bounds.w - w) / 2; y = _object.formInfo.bounds.y + (_object.formInfo.bounds.h - h) / 2; @@ -2446,8 +2466,8 @@ return false; x = rectOrigin.X + rectOrigin.W; y = rectOrigin.Y; - w = 20 / koefX; - h = 20 / koefY; + w = CONTENT_CONTROL_TRACK_H / koefX; + h = CONTENT_CONTROL_TRACK_H / koefY; for (var indexB = 0; indexB < _object.Buttons.length; indexB++) { @@ -2580,11 +2600,21 @@ var x, y, w, h; if (_object.formInfo) { - w = 20 / koefX; - h = 20 / koefY; + if (_object.isFormFullOneButtonHover()) + { + x = _object.formInfo.bounds.x; + y = _object.formInfo.bounds.y; + w = _object.formInfo.bounds.w; + h = _object.formInfo.bounds.h; + } + else + { + w = CONTENT_CONTROL_TRACK_H / koefX; + h = CONTENT_CONTROL_TRACK_H / koefY; - x = _object.formInfo.bounds.x + (_object.formInfo.bounds.w - w) / 2; - y = _object.formInfo.bounds.y + (_object.formInfo.bounds.h - h) / 2; + x = _object.formInfo.bounds.x + (_object.formInfo.bounds.w - w) / 2; + y = _object.formInfo.bounds.y + (_object.formInfo.bounds.h - h) / 2; + } if (xPos > x && xPos < (x + w) && yPos > y && yPos < (y + h)) { @@ -2600,8 +2630,8 @@ return false; x = rectOrigin.X + rectOrigin.W; y = rectOrigin.Y; - w = 20 / koefX; - h = 20 / koefY; + w = CONTENT_CONTROL_TRACK_H / koefX; + h = CONTENT_CONTROL_TRACK_H / koefY; for (var indexB = 0; indexB < _object.Buttons.length; indexB++) { @@ -2685,7 +2715,7 @@ { _object.ActiveButtonIndex = indexB; - var xCC = rectCombo.X + _object.OffsetX + 20 / koefX; + var xCC = rectCombo.X + _object.OffsetX + CONTENT_CONTROL_TRACK_H / koefX; var yCC = rectCombo.Y + rectCombo.H + _object.OffsetY; if (_object.transform) { @@ -2714,6 +2744,21 @@ return false; }; + this.onPointerLeave = function() + { + var oWordControl = this.document.m_oWordControl; + var isChangeHover = false; + for (var i = 0; i < this.ContentControlObjects.length; i++) + { + if (-2 !== this.ContentControlObjects[i].HoverButtonIndex) + isChangeHover = true; + this.ContentControlObjects[i].HoverButtonIndex = -2; + } + + if (isChangeHover) + oWordControl.OnUpdateOverlay(); + }; + this.onPointerMove = function(pos, isWithoutCoords) { var oWordControl = this.document.m_oWordControl; @@ -2818,11 +2863,21 @@ var x, y, w, h; if (_object.formInfo) { - w = 20 / koefX; - h = 20 / koefY; + if (_object.isFormFullOneButtonHover()) + { + x = _object.formInfo.bounds.x; + y = _object.formInfo.bounds.y; + w = _object.formInfo.bounds.w; + h = _object.formInfo.bounds.h; + } + else + { + w = CONTENT_CONTROL_TRACK_H / koefX; + h = CONTENT_CONTROL_TRACK_H / koefY; - x = _object.formInfo.bounds.x + (_object.formInfo.bounds.w - w) / 2; - y = _object.formInfo.bounds.y + (_object.formInfo.bounds.h - h) / 2; + x = _object.formInfo.bounds.x + (_object.formInfo.bounds.w - w) / 2; + y = _object.formInfo.bounds.y + (_object.formInfo.bounds.h - h) / 2; + } if (xPos > x && xPos < (x + w) && yPos > y && yPos < (y + h)) { @@ -2836,8 +2891,8 @@ return false; x = rectOrigin.X + rectOrigin.W; y = rectOrigin.Y; - w = 20 / koefX; - h = 20 / koefY; + w = CONTENT_CONTROL_TRACK_H / koefX; + h = CONTENT_CONTROL_TRACK_H / koefY; for (var indexB = 0; indexB < _object.Buttons.length; indexB++) { @@ -3670,8 +3725,8 @@ _x4 = (drPage.left + koefX * (this.bounds.x + this.bounds.w + object.OffsetX)) * rPR; _y4 = (drPage.top + koefY * (this.bounds.y + this.bounds.h + object.OffsetY)) * rPR; - var imageW = AscCommon.AscBrowser.convertToRetinaValue(20, true); - var imageH = AscCommon.AscBrowser.convertToRetinaValue(20, true); + var imageW = AscCommon.AscBrowser.convertToRetinaValue(CONTENT_CONTROL_TRACK_H, true); + var imageH = AscCommon.AscBrowser.convertToRetinaValue(CONTENT_CONTROL_TRACK_H, true); var xPos = (_x1 + _x4 - imageW) >> 1; var yPos = (_y1 + _y4 - imageH) >> 1; @@ -3930,8 +3985,8 @@ var image = icons.getImage(AscCommon.CCButtonType.Combo, false); if (image) { - var imageW = 20 / koefX; // 1x scale! - var imageH = 20 / koefY; + var imageW = CONTENT_CONTROL_TRACK_H / koefX; // 1x scale! + var imageH = CONTENT_CONTROL_TRACK_H / koefY; var yPos = this.rectCombo.y + this.rectCombo.h - imageH - 0.5 * (lineH - imageH); var xPos = this.rectCombo.x + 0.5 * (this.rectCombo.w - imageW); @@ -3941,8 +3996,8 @@ if (this.isImage) { - var imageW = 20 / koefX; // 1x scale! - var imageH = 20 / koefY; + var imageW = CONTENT_CONTROL_TRACK_H / koefX; // 1x scale! + var imageH = CONTENT_CONTROL_TRACK_H / koefY; var xPos = this.bounds.x + (this.bounds.w - imageW) / 2; var yPos = this.bounds.y + (this.bounds.h - imageH) / 2; diff --git a/word/Drawing/cachemanager.js b/word/Drawing/cachemanager.js index 9096510505..dc5b41b55f 100644 --- a/word/Drawing/cachemanager.js +++ b/word/Drawing/cachemanager.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Drawing/documentrenderer.js b/word/Drawing/documentrenderer.js index 136f0f2e47..6d7a75b863 100644 --- a/word/Drawing/documentrenderer.js +++ b/word/Drawing/documentrenderer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Drawing/mobileTouchManager.js b/word/Drawing/mobileTouchManager.js index 149bd2ba13..8763023395 100644 --- a/word/Drawing/mobileTouchManager.js +++ b/word/Drawing/mobileTouchManager.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -62,7 +62,7 @@ this.iScroll = new window.IScrollMobile(_element, { scrollbars: true, - mouseWheel: true, + mouseWheel: !this.isDesktopMode, interactiveScrollbars: true, shrinkScrollbars: 'scale', fadeScrollbars: true, @@ -71,7 +71,8 @@ bounce : false, eventsElement : this.eventsElement, click : false, - useLongTap : true + useLongTap : true, + transparentIndicators : this.isDesktopMode }); this.delegate.Init(); @@ -129,15 +130,33 @@ if (_matrix && global_MatrixTransformer.IsIdentity(_matrix)) _matrix = null; - if (!this.CheckSelectTrack()) + let touchesCount = e.touches ? e.touches.length : this.getPointerCount(); + let isLockedTouch = false; + + if (touchesCount > 1) { - if (!this.CheckTableTrack()) + if (AscCommon.MobileTouchMode.None !== this.Mode && + AscCommon.MobileTouchMode.Scroll !== this.Mode) { - bIsKoefPixToMM = this.CheckObjectTrack(); + isLockedTouch = true; } } - if ((e.touches && 2 == e.touches.length) || (2 == this.getPointerCount())) + if (!isLockedTouch) + { + if (!this.CheckSelectTrack()) + { + if (!this.CheckTableTrack()) + { + bIsKoefPixToMM = this.CheckObjectTrack(); + } + } + } + + if (!isLockedTouch && this.delegate.IsLockedZoom()) + isLockedTouch = true; + + if (!isLockedTouch && (2 === touchesCount)) { this.Mode = AscCommon.MobileTouchMode.Zoom; } @@ -358,7 +377,8 @@ } else { - this.iScroll._move(e); + if (this.MoveAfterDown) + this.iScroll._move(e); AscCommon.stopEvent(e); } break; @@ -420,6 +440,12 @@ var DrawingDocument = this.delegate.DrawingDocument; var pos = DrawingDocument.ConvertCoordsFromCursorPage(global_mouseEvent.X, global_mouseEvent.Y, DrawingDocument.TableOutlineDr.CurrentPageIndex); + if (true === this.delegate.HtmlPage.m_bIsRuler) + { + pos.X -= 5; + pos.Y -= 7; + } + var _Transform = null; if (DrawingDocument.TableOutlineDr) _Transform = DrawingDocument.TableOutlineDr.TableMatrix; @@ -529,10 +555,13 @@ { if (!this.MoveAfterDown) { - global_mouseEvent.Button = 0; - this.delegate.Drawing_OnMouseDown(_e); - this.delegate.Drawing_OnMouseUp(_e); - this.Api.sendEvent("asc_onTapEvent", e); + if (!this.checkDesktopModeContextMenuEnd()) + { + global_mouseEvent.Button = 0; + this.delegate.Drawing_OnMouseDown(_e); + this.delegate.Drawing_OnMouseUp(_e); + this.Api.sendEvent("asc_onTapEvent", e); + } var typeMenu = this.delegate.GetContextMenuType(); if (typeMenu == AscCommon.MobileTouchContextMenuType.Target || @@ -555,7 +584,11 @@ // здесь нужно запускать отрисовку, если есть анимация зума this.delegate.HtmlPage.NoneRepaintPages = false; this.delegate.HtmlPage.m_bIsFullRepaint = true; - this.delegate.HtmlPage.OnScroll(); + + if (!this.Api.isPdfEditor()) + this.delegate.HtmlPage.OnScroll(); + else + this.Api.getDocumentRenderer().scheduleRepaint(); this.Mode = AscCommon.MobileTouchMode.None; isCheckContextMenuMode = false; @@ -601,17 +634,14 @@ this.Mode = AscCommon.MobileTouchMode.None; - var _xOffset = HtmlPage.X; - var _yOffset = HtmlPage.Y; + var pos = DrawingDocument.ConvertCoordsFromCursorPage(global_mouseEvent.X, global_mouseEvent.Y, DrawingDocument.TableOutlineDr.CurrentPageIndex); if (true === HtmlPage.m_bIsRuler) { - _xOffset += (5 * g_dKoef_mm_to_pix); - _yOffset += (7 * g_dKoef_mm_to_pix); + pos.X -= 5; + pos.Y -= 7; } - var pos = DrawingDocument.ConvertCoordsFromCursorPage(global_mouseEvent.X, global_mouseEvent.Y, DrawingDocument.TableOutlineDr.CurrentPageIndex); - var _Transform = null; if (DrawingDocument.TableOutlineDr) _Transform = DrawingDocument.TableOutlineDr.TableMatrix; @@ -694,7 +724,10 @@ this.checkPointerMultiTouchRemove(e); if (this.isViewMode() || isPreventDefault && !this.Api.getHandlerOnClick()) - AscCommon.stopEvent(e);//AscCommon.g_inputContext.preventVirtualKeyboard(e); + { + AscCommon.stopEvent(e); + AscCommon.g_inputContext.preventVirtualKeyboard(e); + } if (true !== this.iScroll.isAnimating) this.CheckContextMenuTouchEnd(isCheckContextMenuMode, isCheckContextMenuSelect, isCheckContextMenuCursor, isCheckContextMenuTableRuler); @@ -702,6 +735,9 @@ if (AscCommon.g_inputContext.isHardCheckKeyboard) isPreventDefault ? AscCommon.g_inputContext.preventVirtualKeyboard_Hard() : AscCommon.g_inputContext.enableVirtualKeyboard_Hard(); + if (!isPreventDefault && this.Api.isMobileVersion && !this.Api.isUseOldMobileVersion()) + this.showKeyboard(); + return false; }; @@ -710,7 +746,9 @@ if (AscCommon.g_inputContext && AscCommon.g_inputContext.externalChangeFocus()) return; - if (!this.Api.asc_IsFocus()) + this.removeHandlersOnClick(); + + if (!this.Api.asc_IsFocus() && !this.Api.isMobileVersion) this.Api.asc_enableKeyEvents(true); var oWordControl = this.Api.WordControl; @@ -738,8 +776,15 @@ oWordControl.IsUpdateOverlayOnlyEndReturn = true; oWordControl.StartUpdateOverlay(); var ret = this.onTouchEnd(e); + + if (this.isGlassDrawed) + oWordControl.OnUpdateOverlay(); + oWordControl.IsUpdateOverlayOnlyEndReturn = false; oWordControl.EndUpdateOverlay(); + + this.checkDesktopModeContextMenuEnd(e); + return ret; }; @@ -795,7 +840,7 @@ this.iScroll = new window.IScrollMobile(this.delegate.GetScrollerParent(), { scrollbars: true, - mouseWheel: true, + mouseWheel: !this.isDesktopMode, interactiveScrollbars: true, shrinkScrollbars: 'scale', fadeScrollbars: true, diff --git a/word/Drawing/printpreview.js b/word/Drawing/printpreview.js index 92e46c6899..a0ad415053 100644 --- a/word/Drawing/printpreview.js +++ b/word/Drawing/printpreview.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -97,6 +97,7 @@ g.IsNoDrawingEmptyPlaceholderText = true; g.IsNoDrawingEmptyPlaceholder = true; g.isPrintMode = true; + g.isSupportEditFeatures = function() { return false; }; return g; }; @@ -159,7 +160,9 @@ } else { - let file = this.api.WordControl.m_oDrawingDocument.m_oDocumentRenderer.file; + let viewer = this.api.WordControl.m_oDrawingDocument.m_oDocumentRenderer; + let file = viewer.file; + if (!file) return; @@ -183,7 +186,7 @@ h = height; } - this.pageImage = file.getPage(this.page, w, h, undefined, 0xFFFFFF); + this.pageImage = viewer.GetPrintPage(this.page, w, h); } break; diff --git a/word/Drawing/stylespainter.js b/word/Drawing/stylespainter.js index 73049bbd4a..77a8210a42 100644 --- a/word/Drawing/stylespainter.js +++ b/word/Drawing/stylespainter.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -38,27 +38,21 @@ var g_fontApplication = AscFonts.g_fontApplication; var CColor = AscCommon.CColor; var CAscMathCategory = AscCommon.CAscMathCategory; -var g_oTableId = AscCommon.g_oTableId; var g_oTextMeasurer = AscCommon.g_oTextMeasurer; var global_mouseEvent = AscCommon.global_mouseEvent; -var History = AscCommon.History; var global_MatrixTransformer = AscCommon.global_MatrixTransformer; var g_dKoef_pix_to_mm = AscCommon.g_dKoef_pix_to_mm; var g_dKoef_mm_to_pix = AscCommon.g_dKoef_mm_to_pix; function CStylesPainter() { - this.defaultStyles = null; - this.docStyles = null; - this.mergedStyles = null; this.STYLE_THUMBNAIL_WIDTH = GlobalSkin.STYLE_THUMBNAIL_WIDTH; this.STYLE_THUMBNAIL_HEIGHT = GlobalSkin.STYLE_THUMBNAIL_HEIGHT; - this.CurrentTranslate = null; + this.previewGenerator = new AscCommon.StylePreviewGenerator(this); } - CStylesPainter.prototype.CheckStylesNames = function(_api, ds) { var DocumentStyles = _api.WordControl.m_oLogicDocument.Get_Styles(); @@ -88,78 +82,17 @@ CStylesPainter.prototype.CheckStylesNames = function(_api, ds) } } }; - -CStylesPainter.prototype.GenerateStyles = function (_api, ds) +CStylesPainter.prototype.GenerateStyles = function(_api) { - var _oldX = this.STYLE_THUMBNAIL_WIDTH; - var _oldY = this.STYLE_THUMBNAIL_HEIGHT; - - this.STYLE_THUMBNAIL_WIDTH = AscCommon.AscBrowser.convertToRetinaValue(this.STYLE_THUMBNAIL_WIDTH, true); - this.STYLE_THUMBNAIL_HEIGHT = AscCommon.AscBrowser.convertToRetinaValue(this.STYLE_THUMBNAIL_HEIGHT, true); - - this.CurrentTranslate = _api.CurrentTranslate; - - this.GenerateDefaultStyles(_api, ds); - this.GenerateDocumentStyles(_api); - - // стили сформированы. осталось просто сформировать единый список - var _count_default = this.defaultStyles.length; - var _count_doc = 0; - if (null != this.docStyles) - _count_doc = this.docStyles.length; - - var aPriorityStyles = []; - var fAddToPriorityStyles = function (style) - { - var index = style.uiPriority; - if (null == index) - index = 0; - var aSubArray = aPriorityStyles[index]; - if (null == aSubArray) - { - aSubArray = []; - aPriorityStyles[index] = aSubArray; - } - aSubArray.push(style); - }; - var _map_document = {}; - - for (var i = 0; i < _count_doc; i++) - { - var style = this.docStyles[i]; - _map_document[style.Name] = 1; - fAddToPriorityStyles(style); - } - - for (var i = 0; i < _count_default; i++) - { - var style = this.defaultStyles[i]; - if (null == _map_document[style.Name]) - fAddToPriorityStyles(style); - } - - this.mergedStyles = []; - for (var index in aPriorityStyles) - { - var aSubArray = aPriorityStyles[index]; - aSubArray.sort(function (a, b) - { - if (a.Name < b.Name) - return -1; - else if (a.Name > b.Name) - return 1; - else - return 0; - }); - for (var i = 0, length = aSubArray.length; i < length; ++i) - { - this.mergedStyles.push(aSubArray[i]); - } - } - - this.STYLE_THUMBNAIL_WIDTH = _oldX; - this.STYLE_THUMBNAIL_HEIGHT = _oldY; - + if (this.previewGenerator.IsInProgress()) + this.previewGenerator.Stop(); + + this.previewGenerator.Begin(_api); +}; +CStylesPainter.prototype.OnEndGenerate = function(styles, _api) +{ + this.mergedStyles = styles; + // export this["STYLE_THUMBNAIL_WIDTH"] = this.STYLE_THUMBNAIL_WIDTH; this["STYLE_THUMBNAIL_HEIGHT"] = this.STYLE_THUMBNAIL_HEIGHT; @@ -167,326 +100,443 @@ CStylesPainter.prototype.GenerateStyles = function (_api, ds) // теперь просто отдаем евент наверх _api.sync_InitEditorStyles(this); }; - -CStylesPainter.prototype.GenerateDefaultStyles = function (_api, ds) +CStylesPainter.prototype.get_MergedStyles = function () { - var styles = ds; - - // добавили переводы => нельзя кэшировать - var _canvas = document.createElement('canvas'); - _canvas.width = this.STYLE_THUMBNAIL_WIDTH; - _canvas.height = this.STYLE_THUMBNAIL_HEIGHT; - var ctx = _canvas.getContext('2d'); - - ctx.fillStyle = "#FFFFFF"; - ctx.fillRect(0, 0, _canvas.width, _canvas.height); - - var koef = AscCommon.g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; - - var graphics = new AscCommon.CGraphics(); - graphics.init(ctx, _canvas.width, _canvas.height, _canvas.width * koef, _canvas.height * koef); - graphics.m_oFontManager = AscCommon.g_fontManager; - - var DocumentStyles = _api.WordControl.m_oLogicDocument.Get_Styles(); - this.defaultStyles = []; - for (var i in styles) - { - var style = styles[i]; - if (style.IsExpressStyle(DocumentStyles) && null === DocumentStyles.GetStyleIdByName(style.Name)) - { - this.drawStyle(_api, graphics, style, AscCommon.translateManager.getValue(style.Name)); - this.defaultStyles.push(new AscCommon.CStyleImage(style.Name, AscCommon.c_oAscStyleImage.Default, - _canvas.toDataURL("image/png"), style.uiPriority)); - } - } + return this.mergedStyles; }; -CStylesPainter.prototype.GenerateDocumentStyles = function(_api) +(function(window) { - if (!_api.WordControl.m_oLogicDocument) - return; - - var DocumentStyles = _api.WordControl.m_oLogicDocument.Get_Styles(); - var styles = DocumentStyles.Style; - - if (!styles) - return; - - var cur_index = 0; - - var _canvas = document.createElement('canvas'); - _canvas.width = this.STYLE_THUMBNAIL_WIDTH; - _canvas.height = this.STYLE_THUMBNAIL_HEIGHT; - var ctx = _canvas.getContext('2d'); - - if (window["flat_desine"] !== true) + /** + * @param stylePainter {AscCommonWord.CStylesPainter} + * @constructor + * @extends AscCommon.CActionOnTimerBase + */ + function StylePreviewGenerator(stylePainter) { - ctx.fillStyle = "#FFFFFF"; - ctx.fillRect(0, 0, _canvas.width, _canvas.height); + AscCommon.CActionOnTimerBase.call(this); + + this.stylePainter = stylePainter; + this.api = null; + this.styleManager = null; + + this.canvas = null; + this.graphics = null; + + this.STYLE_THUMBNAIL_WIDTH = GlobalSkin.STYLE_THUMBNAIL_WIDTH; + this.STYLE_THUMBNAIL_HEIGHT = GlobalSkin.STYLE_THUMBNAIL_HEIGHT; + + this.defaultStyles = []; + this.docStyles = []; + + this.CurrentTranslate = null; } - - var graphics = new AscCommon.CGraphics(); - var koef = AscCommon.g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; - graphics.init(ctx, _canvas.width, _canvas.height, _canvas.width * koef, _canvas.height * koef); - graphics.m_oFontManager = AscCommon.g_fontManager; - - this.docStyles = []; - for (var i in styles) + StylePreviewGenerator.prototype = Object.create(AscCommon.CActionOnTimerBase.prototype); + StylePreviewGenerator.prototype.OnBegin = function(_api) { - var style = styles[i]; - if (style.IsExpressStyle(DocumentStyles)) + this.api = _api; + if (!_api.WordControl.m_oLogicDocument) + return; + + this.styleManager = _api.WordControl.m_oLogicDocument.Get_Styles(); + if (!this.styleManager.Style) + return; + + this.styles = []; + for (let i in this.styleManager.Style) { - // как только меняется сериалайзер - меняется и код здесь. Да, не очень удобно, - // зато быстро делается - var formalStyle = i.toLowerCase().replace(/\s/g, ""); - var res = formalStyle.match(/^heading([1-9][0-9]*)$/); - var index = (res) ? res[1] - 1 : -1; - - var _dr_style = DocumentStyles.Get_Pr(i, styletype_Paragraph); - _dr_style.Name = style.Name; - _dr_style.Id = i; - - this.drawStyle(_api, graphics, _dr_style, - DocumentStyles.IsStyleDefaultByName(style.Name) ? AscCommon.translateManager.getValue(style.Name) : style.Name); - this.docStyles[cur_index] = new AscCommon.CStyleImage(style.Name, AscCommon.c_oAscStyleImage.Document, - _canvas.toDataURL("image/png"), style.uiPriority); - - // алгоритм смены имени - if (style.Default) + let style = this.styleManager.Style[i]; + if (style.IsExpressStyle(this.styleManager)) + this.styles.push(this.styleManager.Style[i]); + } + + this.styles.sort(function(st1, st2){ + let p1 = st1.GetUiPriority(); + let p2 = st2.GetUiPriority(); + if (null === p1 || undefined === p1) + return -1; + if (null === p2 || undefined === p2) + return 1; + + return p1 === p2 ? 0 : p1 < p2 ? 1 : -1; + }); + + this.stylePainter.docStyles = []; + this.index = 0; + + this.STYLE_THUMBNAIL_WIDTH = AscCommon.AscBrowser.convertToRetinaValue(this.stylePainter.STYLE_THUMBNAIL_WIDTH, true); + this.STYLE_THUMBNAIL_HEIGHT = AscCommon.AscBrowser.convertToRetinaValue(this.stylePainter.STYLE_THUMBNAIL_HEIGHT, true); + + this.CurrentTranslate = _api.CurrentTranslate; + + this.InitCanvas(); + + this.defaultStyles = []; + this.docStyles = []; + + this.GenerateDefaultStyles(); + }; + StylePreviewGenerator.prototype.OnEnd = function() + { + var _count_default = this.defaultStyles.length; + var _count_doc = 0; + if (null != this.docStyles) + _count_doc = this.docStyles.length; + + var aPriorityStyles = []; + var fAddToPriorityStyles = function (style) + { + var index = style.uiPriority; + if (null == index) + index = 0; + var aSubArray = aPriorityStyles[index]; + if (null == aSubArray) { - switch (style.Default) - { - case 1: - break; - case 2: - this.docStyles[cur_index].Name = "No List"; - break; - case 3: - this.docStyles[cur_index].Name = "Normal"; - break; - case 4: - this.docStyles[cur_index].Name = "Normal Table"; - break; - } + aSubArray = []; + aPriorityStyles[index] = aSubArray; } - else if (index != -1) + aSubArray.push(style); + }; + var _map_document = {}; + + for (var i = 0; i < _count_doc; i++) + { + var style = this.docStyles[i]; + _map_document[style.Name] = 1; + fAddToPriorityStyles(style); + } + + for (var i = 0; i < _count_default; i++) + { + var style = this.defaultStyles[i]; + if (null == _map_document[style.Name]) + fAddToPriorityStyles(style); + } + + let mergedStyles = []; + for (var index in aPriorityStyles) + { + var aSubArray = aPriorityStyles[index]; + aSubArray.sort(function (a, b) + { + if (a.Name < b.Name) + return -1; + else if (a.Name > b.Name) + return 1; + else + return 0; + }); + for (var i = 0, length = aSubArray.length; i < length; ++i) { - this.docStyles[cur_index].Name = "Heading ".concat(index + 1); + mergedStyles.push(aSubArray[i]); } - - cur_index++; } - } -}; - -CStylesPainter.prototype.drawStyle = function(_api, graphics, style, styleName) -{ - var ctx = graphics.m_oContext; - ctx.fillStyle = "#FFFFFF"; - ctx.fillRect(0, 0, this.STYLE_THUMBNAIL_WIDTH, this.STYLE_THUMBNAIL_HEIGHT); - - var font = { - FontFamily: {Name: "Times New Roman", Index: -1}, - Color: {r: 0, g: 0, b: 0}, - Bold: false, - Italic: false, - FontSize: 10 + + this.stylePainter.OnEndGenerate(mergedStyles, this.api); }; - - var textPr = style.TextPr; - if (textPr.FontFamily !== undefined) + StylePreviewGenerator.prototype.IsContinue = function() { - font.FontFamily.Name = textPr.FontFamily.Name; - font.FontFamily.Index = textPr.FontFamily.Index; - } - - if (textPr.Bold !== undefined) - font.Bold = textPr.Bold; - if (textPr.Italic !== undefined) - font.Italic = textPr.Italic; - - if (textPr.FontSize !== undefined) - font.FontSize = textPr.FontSize; - - graphics.SetFont(font); - - if (textPr.Color === undefined) - graphics.b_color1(0, 0, 0, 255); - else - graphics.b_color1(textPr.Color.r, textPr.Color.g, textPr.Color.b, 255); - - var dKoefToMM = AscCommon.g_dKoef_pix_to_mm; - dKoefToMM /= AscCommon.AscBrowser.retinaPixelRatio; - - if (window["flat_desine"] !== true) + return (this.index < this.styles.length); + }; + StylePreviewGenerator.prototype.DoAction = function() { - var y = 0; - var b = dKoefToMM * this.STYLE_THUMBNAIL_HEIGHT; - var w = dKoefToMM * this.STYLE_THUMBNAIL_WIDTH; - - graphics.transform(1, 0, 0, 1, 0, 0); - graphics.save(); - graphics._s(); - graphics._m(-0.5, y); - graphics._l(w, y); - graphics._l(w, b); - graphics._l(0, b); - graphics._z(); - graphics.clip(); - - graphics.t(this.CurrentTranslate.StylesText, 0.5, (y + b) / 2); - - ctx.setTransform(1, 0, 0, 1, 0, 0); - ctx.fillStyle = "#E8E8E8"; - - var _b = this.STYLE_THUMBNAIL_HEIGHT - 1.5; - var _x = 2; - var _w = this.STYLE_THUMBNAIL_WIDTH - 4; - var _h = (this.STYLE_THUMBNAIL_HEIGHT / 3) >> 0; - ctx.beginPath(); - ctx.moveTo(_x, _b - _h); - ctx.lineTo(_x + _w, _b - _h); - ctx.lineTo(_x + _w, _b); - ctx.lineTo(_x, _b); - ctx.closePath(); - ctx.fill(); - - ctx.lineWidth = 1; - ctx.strokeStyle = "#D8D8D8"; - ctx.beginPath(); - ctx.rect(0.5, 0.5, this.STYLE_THUMBNAIL_WIDTH - 1, this.STYLE_THUMBNAIL_HEIGHT - 1); - - ctx.stroke(); - - graphics.restore(); - } - else + let style = this.styles[this.index++]; + if (!style) + return; + + this.docStyles.push(this.GeneratePreview(style)); + }; + StylePreviewGenerator.prototype.OnEndTimer = function() { - g_oTableId.m_bTurnOff = true; - History.TurnOff(); - - var oldDefTabStop = AscCommonWord.Default_Tab_Stop; - AscCommonWord.Default_Tab_Stop = 1; - var isShowParaMarks = false; - if (_api) + // TODO: Добавить обработку, если сделаем постепенное заполнение + }; + StylePreviewGenerator.prototype.InitCanvas = function() + { + var _canvas = document.createElement('canvas'); + _canvas.width = this.STYLE_THUMBNAIL_WIDTH; + _canvas.height = this.STYLE_THUMBNAIL_HEIGHT; + var ctx = _canvas.getContext('2d'); + + if (window["flat_desine"] !== true) { - isShowParaMarks = _api.get_ShowParaMarks(); - _api.put_ShowParaMarks(false); + ctx.fillStyle = "#FFFFFF"; + ctx.fillRect(0, 0, _canvas.width, _canvas.height); } - - var hdr = new CHeaderFooter(editor.WordControl.m_oLogicDocument.HdrFtr, editor.WordControl.m_oLogicDocument, editor.WordControl.m_oDrawingDocument, AscCommon.hdrftr_Header); - var _dc = hdr.Content;//new CDocumentContent(editor.WordControl.m_oLogicDocument, editor.WordControl.m_oDrawingDocument, 0, 0, 0, 0, false, true, false); - - var par = new AscWord.Paragraph(_dc, false); - var run = new ParaRun(par, false); - run.AddText(styleName); - - _dc.Internal_Content_Add(0, par, false); - par.Add_ToContent(0, run); - par.Style_Add(style.Id, false); - par.Set_Align(AscCommon.align_Left); - par.Set_Tabs(new CParaTabs()); - - if (!textPr.Color || (255 === textPr.Color.r && 255 === textPr.Color.g && 255 === textPr.Color.b)) - run.Set_Color(new CDocumentColor(0, 0, 0, false)); - - var _brdL = style.ParaPr.Brd.Left; - if (undefined !== _brdL && null !== _brdL) + + var graphics = new AscCommon.CGraphics(); + var koef = AscCommon.g_dKoef_pix_to_mm / AscCommon.AscBrowser.retinaPixelRatio; + graphics.init(ctx, _canvas.width, _canvas.height, _canvas.width * koef, _canvas.height * koef); + graphics.m_oFontManager = AscCommon.g_fontManager; + + this.canvas = _canvas; + this.graphics = graphics; + }; + StylePreviewGenerator.prototype.GeneratePreview = function(style) + { + let uiPriority = style.GetUiPriority(); + let styleId = style.GetId(); + let styleName = style.GetName(); + + // как только меняется сериалайзер - меняется и код здесь. Да, не очень удобно, + // зато быстро делается + var formalStyle = styleId.toLowerCase().replace(/\s/g, ""); + var res = formalStyle.match(/^heading([1-9][0-9]*)$/); + var index = (res) ? res[1] - 1 : -1; + + if (style.Default) { - var brdL = new CDocumentBorder(); - brdL.Set_FromObject(_brdL); - brdL.Space = 0; - par.Set_Border(brdL, AscDFH.historyitem_Paragraph_Borders_Left); + switch (style.Default) + { + case 1: + break; + case 2: + styleName = "No List"; + break; + case 3: + styleName = "Normal"; + break; + case 4: + styleName = "Normal Table"; + break; + } } - - var _brdT = style.ParaPr.Brd.Top; - if (undefined !== _brdT && null !== _brdT) + else if (-1 !== index) { - var brd = new CDocumentBorder(); - brd.Set_FromObject(_brdT); - brd.Space = 0; - par.Set_Border(brd, AscDFH.historyitem_Paragraph_Borders_Top); + styleName = "Heading ".concat(index + 1); } - - var _brdB = style.ParaPr.Brd.Bottom; - if (undefined !== _brdB && null !== _brdB) + + var _dr_style = this.styleManager.Get_Pr(styleId, AscWord.styletype_Paragraph); + _dr_style.Name = styleName; + _dr_style.Id = styleId; + + this.drawStyle(this.api, this.graphics, _dr_style, this.styleManager.IsStyleDefaultByName(styleName) ? AscCommon.translateManager.getValue(styleName) : styleName); + return new AscCommon.CStyleImage(styleName, AscCommon.c_oAscStyleImage.Document, this.canvas.toDataURL("image/png"), uiPriority); + }; + StylePreviewGenerator.prototype.drawStyle = function(_api, graphics, style, styleName) + { + let logicDocument = _api.getLogicDocument(); + if (!logicDocument) + return; + + let isShowParaMarks = _api.get_ShowParaMarks(); + if (isShowParaMarks) + _api.put_ShowParaMarks(false); + + let oldTabStop = AscCommonWord.Default_Tab_Stop; + AscCommonWord.Default_Tab_Stop = 1; + + let _t = this; + AscCommon.executeNoRevisions(function() + { + AscCommon.ExecuteNoHistory(function() + { + _t._drawStyle(_api, graphics, style, styleName); + }, logicDocument); + }, logicDocument); + + AscCommonWord.Default_Tab_Stop = oldTabStop; + + if (isShowParaMarks) + _api.put_ShowParaMarks(isShowParaMarks); + }; + StylePreviewGenerator.prototype._drawStyle = function(_api, graphics, style, styleName) + { + var ctx = graphics.m_oContext; + ctx.fillStyle = "#FFFFFF"; + ctx.fillRect(0, 0, this.STYLE_THUMBNAIL_WIDTH, this.STYLE_THUMBNAIL_HEIGHT); + + var font = { + FontFamily: {Name: "Times New Roman", Index: -1}, + Color: {r: 0, g: 0, b: 0}, + Bold: false, + Italic: false, + FontSize: 10 + }; + + var textPr = style.TextPr; + if (textPr.FontFamily !== undefined) { - var brd = new CDocumentBorder(); - brd.Set_FromObject(_brdB); - brd.Space = 0; - par.Set_Border(brd, AscDFH.historyitem_Paragraph_Borders_Bottom); + font.FontFamily.Name = textPr.FontFamily.Name; + font.FontFamily.Index = textPr.FontFamily.Index; } - - var _brdR = style.ParaPr.Brd.Right; - if (undefined !== _brdR && null !== _brdR) + + if (textPr.Bold !== undefined) + font.Bold = textPr.Bold; + if (textPr.Italic !== undefined) + font.Italic = textPr.Italic; + + if (textPr.FontSize !== undefined) + font.FontSize = textPr.FontSize; + + graphics.SetFont(font); + + if (textPr.Color === undefined) + graphics.b_color1(0, 0, 0, 255); + else + graphics.b_color1(textPr.Color.r, textPr.Color.g, textPr.Color.b, 255); + + var dKoefToMM = AscCommon.g_dKoef_pix_to_mm; + dKoefToMM /= AscCommon.AscBrowser.retinaPixelRatio; + + if (window["flat_desine"] !== true) { - var brd = new CDocumentBorder(); - brd.Set_FromObject(_brdR); - brd.Space = 0; - par.Set_Border(brd, AscDFH.historyitem_Paragraph_Borders_Right); + var y = 0; + var b = dKoefToMM * this.STYLE_THUMBNAIL_HEIGHT; + var w = dKoefToMM * this.STYLE_THUMBNAIL_WIDTH; + + graphics.transform(1, 0, 0, 1, 0, 0); + graphics.save(); + graphics._s(); + graphics._m(-0.5, y); + graphics._l(w, y); + graphics._l(w, b); + graphics._l(0, b); + graphics._z(); + graphics.clip(); + + graphics.t(this.CurrentTranslate.StylesText, 0.5, (y + b) / 2); + + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.fillStyle = "#E8E8E8"; + + var _b = this.STYLE_THUMBNAIL_HEIGHT - 1.5; + var _x = 2; + var _w = this.STYLE_THUMBNAIL_WIDTH - 4; + var _h = (this.STYLE_THUMBNAIL_HEIGHT / 3) >> 0; + ctx.beginPath(); + ctx.moveTo(_x, _b - _h); + ctx.lineTo(_x + _w, _b - _h); + ctx.lineTo(_x + _w, _b); + ctx.lineTo(_x, _b); + ctx.closePath(); + ctx.fill(); + + ctx.lineWidth = 1; + ctx.strokeStyle = "#D8D8D8"; + ctx.beginPath(); + ctx.rect(0.5, 0.5, this.STYLE_THUMBNAIL_WIDTH - 1, this.STYLE_THUMBNAIL_HEIGHT - 1); + + ctx.stroke(); + + graphics.restore(); } - - var _ind = new CParaInd(); - _ind.FirstLine = 0; - _ind.Left = 0; - _ind.Right = 0; - par.Set_Ind(_ind, false); - - var _sp = new CParaSpacing(); - _sp.Line = 1; - _sp.LineRule = Asc.linerule_Auto; - _sp.Before = 0; - _sp.BeforeAutoSpacing = false; - _sp.After = 0; - _sp.AfterAutoSpacing = false; - par.Set_Spacing(_sp, false); - - _dc.Reset(0, 0, 10000, 10000); - _dc.Recalculate_Page(0, true); - - _dc.Reset(0, 0, par.Lines[0].Ranges[0].W + 0.001, 10000); - _dc.Recalculate_Page(0, true); - //par.Reset(0, 0, 10000, 10000, 0); - //par.Recalculate_Page(0); - - var y = 0; - var b = dKoefToMM * this.STYLE_THUMBNAIL_HEIGHT; - var w = dKoefToMM * this.STYLE_THUMBNAIL_WIDTH; - var off = 10 * dKoefToMM; - var off2 = 5 * dKoefToMM; - var off3 = 1 * dKoefToMM; - - graphics.transform(1, 0, 0, 1, 0, 0); - graphics.save(); - graphics._s(); - graphics._m(off2, y + off3); - graphics._l(w - off, y + off3); - graphics._l(w - off, b - off3); - graphics._l(off2, b - off3); - graphics._z(); - graphics.clip(); - - //graphics.t(style.Name, off + 0.5, y + 0.75 * (b - y)); - var baseline = par.Lines[0].Y; - par.Shift(0, off + 0.5, y + 0.75 * (b - y) - baseline); - par.Draw(0, graphics); - - graphics.restore(); - - if (_api) - _api.put_ShowParaMarks(isShowParaMarks); - - AscCommonWord.Default_Tab_Stop = oldDefTabStop; - - g_oTableId.m_bTurnOff = false; - History.TurnOn(); - } -}; - -CStylesPainter.prototype.get_MergedStyles = function () -{ - return this.mergedStyles; -}; + else + { + var hdr = new CHeaderFooter(editor.WordControl.m_oLogicDocument.HdrFtr, editor.WordControl.m_oLogicDocument, editor.WordControl.m_oDrawingDocument, AscCommon.hdrftr_Header); + var _dc = hdr.Content;//new CDocumentContent(editor.WordControl.m_oLogicDocument, editor.WordControl.m_oDrawingDocument, 0, 0, 0, 0, false, true, false); + + var par = new AscWord.Paragraph(_dc, false); + var run = new ParaRun(par, false); + run.AddText(styleName); + + _dc.Internal_Content_Add(0, par, false); + par.Add_ToContent(0, run); + par.Style_Add(style.Id, false); + par.Set_Align(AscCommon.align_Left); + par.Set_Tabs(new CParaTabs()); + + if (!textPr.Color || (255 === textPr.Color.r && 255 === textPr.Color.g && 255 === textPr.Color.b)) + run.Set_Color(new CDocumentColor(0, 0, 0, false)); + + var _brdL = style.ParaPr.Brd.Left; + if (undefined !== _brdL && null !== _brdL) + { + var brdL = new CDocumentBorder(); + brdL.Set_FromObject(_brdL); + brdL.Space = 0; + par.Set_Border(brdL, AscDFH.historyitem_Paragraph_Borders_Left); + } + + var _brdT = style.ParaPr.Brd.Top; + if (undefined !== _brdT && null !== _brdT) + { + var brd = new CDocumentBorder(); + brd.Set_FromObject(_brdT); + brd.Space = 0; + par.Set_Border(brd, AscDFH.historyitem_Paragraph_Borders_Top); + } + + var _brdB = style.ParaPr.Brd.Bottom; + if (undefined !== _brdB && null !== _brdB) + { + var brd = new CDocumentBorder(); + brd.Set_FromObject(_brdB); + brd.Space = 0; + par.Set_Border(brd, AscDFH.historyitem_Paragraph_Borders_Bottom); + } + + var _brdR = style.ParaPr.Brd.Right; + if (undefined !== _brdR && null !== _brdR) + { + var brd = new CDocumentBorder(); + brd.Set_FromObject(_brdR); + brd.Space = 0; + par.Set_Border(brd, AscDFH.historyitem_Paragraph_Borders_Right); + } + + var _ind = new CParaInd(); + _ind.FirstLine = 0; + _ind.Left = 0; + _ind.Right = 0; + par.Set_Ind(_ind, false); + + var _sp = new CParaSpacing(); + _sp.Line = 1; + _sp.LineRule = Asc.linerule_Auto; + _sp.Before = 0; + _sp.BeforeAutoSpacing = false; + _sp.After = 0; + _sp.AfterAutoSpacing = false; + par.Set_Spacing(_sp, false); + + _dc.Reset(0, 0, 10000, 10000); + _dc.Recalculate_Page(0, true); + + _dc.Reset(0, 0, par.Lines[0].Ranges[0].W + 0.001, 10000); + _dc.Recalculate_Page(0, true); + + var y = 0; + var b = dKoefToMM * this.STYLE_THUMBNAIL_HEIGHT; + var w = dKoefToMM * this.STYLE_THUMBNAIL_WIDTH; + var off = 10 * dKoefToMM; + var off2 = 5 * dKoefToMM; + var off3 = 1 * dKoefToMM; + + graphics.transform(1, 0, 0, 1, 0, 0); + graphics.save(); + graphics._s(); + graphics._m(off2, y + off3); + graphics._l(w - off, y + off3); + graphics._l(w - off, b - off3); + graphics._l(off2, b - off3); + graphics._z(); + graphics.clip(); + + //graphics.t(style.Name, off + 0.5, y + 0.75 * (b - y)); + var baseline = par.Lines[0].Y; + par.Shift(0, off + 0.5, y + 0.75 * (b - y) - baseline); + par.Draw(0, graphics); + + graphics.restore(); + } + }; + StylePreviewGenerator.prototype.GenerateDefaultStyles = function () + { + for (let i = 0; i < this.styles.length; ++i) + { + let style = this.styles[i]; + let styleName = style.GetName(); + if (null === this.styleManager.GetStyleIdByName(styleName)) + { + this.drawStyle(this.api, this.graphics, style, AscCommon.translateManager.getValue(styleName)); + this.defaultStyles.push(new AscCommon.CStyleImage(styleName, AscCommon.c_oAscStyleImage.Default, this.canvas.toDataURL("image/png"), style.uiPriority)); + } + } + }; + //--------------------------------------------------------export---------------------------------------------------- + window['AscCommon'] = window['AscCommon'] || {}; + window['AscCommon'].StylePreviewGenerator = StylePreviewGenerator; +})(window); window['AscCommonWord'].CStylesPainter = CStylesPainter; CStylesPainter.prototype['get_MergedStyles'] = CStylesPainter.prototype.get_MergedStyles; diff --git a/word/Drawing/translations.js b/word/Drawing/translations.js index 33baf18191..a1e57803e8 100644 --- a/word/Drawing/translations.js +++ b/word/Drawing/translations.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Bookmarks.js b/word/Editor/Bookmarks.js index b50539a441..212e8470d6 100644 --- a/word/Editor/Bookmarks.js +++ b/word/Editor/Bookmarks.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -67,14 +67,20 @@ CParagraphBookmark.prototype.GetId = function() }; CParagraphBookmark.prototype.Copy = function(Selected, oPr, isCopyReviewPr) { - let sId = this.BookmarkId; + let nId = this.BookmarkId; + let nComparisonId; if (oPr && oPr.Comparison) { - const sComparisonId = oPr.Comparison.oBookmarkManager.getId(this); - if (sComparisonId) - sId = sComparisonId; + nComparisonId = oPr.Comparison.oBookmarkManager.getId(this); + if (AscFormat.isRealNumber(nComparisonId)) + nId = nComparisonId; } - return new CParagraphBookmark(this.Start, sId, this.BookmarkName); + const oCopy = new CParagraphBookmark(this.Start, nId, this.BookmarkName); + + if (AscFormat.isRealNumber(nComparisonId)) + oPr.Comparison.oBookmarkManager.addToLink(oCopy.Id, nComparisonId); + + return oCopy; }; CParagraphBookmark.prototype.GetBookmarkId = function() { @@ -135,24 +141,10 @@ CParagraphBookmark.prototype.GoToBookmark = function() }; CParagraphBookmark.prototype.GetDestinationXY = function() { - var oParagraph = this.Paragraph; - if (!oParagraph) - return null; - - var oLogicDocument = oParagraph.LogicDocument; - if (!oLogicDocument) - return null; - - var oCurPos = oParagraph.Get_PosByElement(this); - if (!oCurPos) + if (!this.Paragraph) return null; - - var oState = oParagraph.SaveSelectionState(); - oParagraph.Set_ParaContentPos(oCurPos, false, -1, -1, true); // Корректировать позицию нужно обязательно - var oResult = oParagraph.GetCalculatedCurPosXY(); - oParagraph.LoadSelectionState(oState); - - return oResult; + + return this.Paragraph.GetStartPosXY(); }; CParagraphBookmark.prototype.RemoveBookmark = function() { @@ -327,12 +319,31 @@ CBookmarksManager.prototype.GetBookmarkById = function(Id) for (var nIndex = 0, nCount = this.Bookmarks.length; nIndex < nCount; ++nIndex) { - if (this.Bookmarks[nIndex].GetBookmarkId() === Id) + var oStart = this.Bookmarks[nIndex][0]; + if (oStart.GetBookmarkId() === Id) return this.Bookmarks[nIndex]; } return null; }; +CBookmarksManager.prototype.GetBookmarkStart = function(index) +{ + this.Update(); + + if (index < 0 || index > this.Bookmarks.length) + return null; + + return this.Bookmarks[index][0]; +}; +CBookmarksManager.prototype.GetBookmarkEnd = function(index) +{ + this.Update(); + + if (index < 0 || index > this.Bookmarks.length) + return null; + + return this.Bookmarks[index][1]; +}; CBookmarksManager.prototype.GetBookmarkByName = function(sName) { var _sName = sName.toLowerCase(); @@ -564,6 +575,7 @@ CBookmarksManager.prototype.SelectBookmark = function(sName) //--------------------------------------------------------export---------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CParagraphBookmark = CParagraphBookmark; +window['AscWord'].CParagraphBookmark = CParagraphBookmark; CBookmarksManager.prototype['asc_GetCount'] = CBookmarksManager.prototype.GetCount; CBookmarksManager.prototype['asc_GetName'] = CBookmarksManager.prototype.GetName; CBookmarksManager.prototype['asc_GetId'] = CBookmarksManager.prototype.GetId; diff --git a/word/Editor/ChangeCase.js b/word/Editor/ChangeCase.js index 5e9c3082d7..af64cf7254 100644 --- a/word/Editor/ChangeCase.js +++ b/word/Editor/ChangeCase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/CollaborativeEditing.js b/word/Editor/CollaborativeEditing.js index 22dd2c48ea..bc800b3367 100644 --- a/word/Editor/CollaborativeEditing.js +++ b/word/Editor/CollaborativeEditing.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -528,4 +528,3 @@ CWordCollaborativeEditing.prototype.private_UpdateForeignCursor = function(Curso //--------------------------------------------------------export---------------------------------------------------- window['AscCommon'] = window['AscCommon'] || {}; window['AscCommon'].CWordCollaborativeEditing = CWordCollaborativeEditing; -window['AscCommon'].CollaborativeEditing = new CWordCollaborativeEditing(); diff --git a/word/Editor/Comments.js b/word/Editor/Comments.js index e552d57c5b..4b1ef02b42 100644 --- a/word/Editor/Comments.js +++ b/word/Editor/Comments.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -257,6 +257,14 @@ function CCommentData() this.m_aReplies.push( oReply ); } }; + + this.Write_ToBinary = function (Writer) { + this.Write_ToBinary2(Writer); + }; + + this.Read_FromBinary = function (Reader) { + this.Read_FromBinary2(Reader); + }; } CCommentData.prototype.GetUserName = function() { @@ -725,6 +733,40 @@ function CCommentDrawingRect(X, Y, W, H, CommentId, InvertTransform) return null; }; + /** + * Выделяем текст в границах комментария + * @returns {boolean} Получилось ли выделить комментарий + */ + CComment.prototype.SelectCommentText = function () + { + const oStartMark = AscCommon.g_oTableId.Get_ById(this.GetRangeStart()); + const oEndMark = AscCommon.g_oTableId.Get_ById(this.GetRangeEnd()); + if (!oStartMark || !oEndMark) + return false; + + const oStartParagraph = oStartMark.GetParagraph(); + const oEndParagraph = oEndMark.GetParagraph(); + if (oStartParagraph && oEndParagraph && oEndParagraph.Parent && oStartParagraph.Parent) + { + const oStartTopDocument = oStartParagraph.Parent.GetTopDocumentContent(); + const oEndTopDocument = oEndParagraph.Parent.GetTopDocumentContent(); + if (oStartTopDocument === oEndTopDocument) + { + const oLogicDocument = this.private_GetLogicDocument(); + + oStartMark.MoveCursorToMark(); + const oStartPos = oStartTopDocument.GetContentPosition(false); + oEndMark.MoveCursorToMark(); + const oEndPos = oStartTopDocument.GetContentPosition(false); + + oStartTopDocument.SetSelectionByContentPositions(oStartPos, oEndPos); + oLogicDocument.UpdateSelection(); + oLogicDocument.UpdateInterface(); + return true; + } + } + return false; + }; // Для ситуаций, когда мы создаем сначала ParaComment и только потом Comment (например, во время открытия) let marksToCheck = []; @@ -1162,14 +1204,14 @@ function CCommentDrawingRect(X, Y, W, H, CommentId, InvertTransform) { for (var nIndex = 0, nCount = marksToCheck.length; nIndex < nCount; ++nIndex) { - var oMark = marksToCheck[nIndex]; - var sCommentId = oMark.GetCommentId(); - var oComment = this.Get_ById(sCommentId); - var oParagraph = oMark.GetParagraph(); - if (oComment && oParagraph) - { - oComment.SetRangeMark(oMark); - } + let mark = marksToCheck[nIndex]; + if (!mark.IsUseInDocument()) + continue; + + let commentId = mark.GetCommentId(); + let comment = this.Get_ById(commentId); + if (comment) + comment.SetRangeMark(mark); } marksToCheck.length = 0; @@ -1215,16 +1257,17 @@ ParaComment.prototype.GetId = function() }; ParaComment.prototype.Copy = function(Selected, oPr) { - var sId = this.CommentId; - if(oPr && oPr.Comparison) - { - const sComparisonCommentId = oPr.Comparison.copyComment(this.CommentId); - if (sComparisonCommentId !== null) - { - sId = sComparisonCommentId; - } - } - return new ParaComment(this.Start, sId); + if (oPr && oPr.Comparison) + { + const oCopyComment = oPr.Comparison.copyComment(this.CommentId); + if (oCopyComment) + { + const oCopy = new ParaComment(this.Start, oCopyComment.Get_Id()); + oCopyComment.SetRangeMark(oCopy); + return oCopy; + } + } + return new ParaComment(this.Start, this.CommentId); }; ParaComment.prototype.Recalculate_Range_Spaces = function(PRSA, CurLine, CurRange, CurPage) { @@ -1360,7 +1403,7 @@ ParaComment.prototype.IsUseInDocument = function() return false; return oParagraph.IsUseInDocument(); -} +}; ParaComment.prototype.RemoveMark = function() { var oParagraph = this.GetParagraph(); @@ -1375,7 +1418,7 @@ ParaComment.prototype.MoveCursorToMark = function() if (!oParagraph) return; - oParagraph.MoveCursorToCommentMark(this.CommentId); + oParagraph.MoveCursorToCommentMark(this); }; //--------------------------------------------------------export---------------------------------------------------- window['AscCommon'] = window['AscCommon'] || {}; diff --git a/word/Editor/CommentsChanges.js b/word/Editor/CommentsChanges.js index 10b6a5e11d..fd2636392e 100644 --- a/word/Editor/CommentsChanges.js +++ b/word/Editor/CommentsChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Common.js b/word/Editor/Common.js index 7eeff721b1..0334bd52d8 100644 --- a/word/Editor/Common.js +++ b/word/Editor/Common.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Comparison.js b/word/Editor/Comparison.js index abcc7dc049..4f04646131 100644 --- a/word/Editor/Comparison.js +++ b/word/Editor/Comparison.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -42,452 +42,279 @@ EXCLUDED_PUNCTUATION[160] = true; //EXCLUDED_PUNCTUATION[63] = true; - function insertLabelsAndContinue(oLabelChange, oTextIterator, oLabelIterator) - { - const bRet = oTextIterator.skipTo(oLabelChange.elementIndex, oLabelChange.innerElementIndex - oLabelChange.addingValue); - if (bRet) - { - const oRun = oTextIterator.splitCurrentRun(oTextIterator.runElementIndex + oLabelChange.addingValue); - oTextIterator.addToCollectBack(oRun); - for (let i = oLabelChange.labels.length - 1; i >= 0; i -= 1) - { - const oLabel = oLabelChange.labels[i]; - oTextIterator.parent.AddToContent(oTextIterator.runIndex + 1, oLabel); - } - if (oLabelChange.elementIndex === 0 && oLabelChange.innerElementIndex === 0) - { - const oElement = oTextIterator.getCurrentElement(); - const oFirstLabel = oLabelChange.labels[0]; - if (oFirstLabel) - { - oElement.lastSwitchElement = oFirstLabel; - } - else - { - changeFirstTextElement(oTextIterator, oRun); - } - } - oLabelIterator.next(); - if (oLabelIterator.check()) - { - return oLabelIterator.value(); - } - } - } - function applyEndChangeReview(oReviewChange, oTextIterator) - { - const bRet = oTextIterator.skipTo(oReviewChange.endElementIndex, oReviewChange.endInnerElementIndex - 1); - if (bRet) - { - oTextIterator.startCollectRuns(); - oTextIterator.addToCollectCurrentRun(); - oTextIterator.splitCurrentRun(oTextIterator.runElementIndex + 1); - } - } function changeFirstTextElement(oTextIterator, oRun) { const oElement = oTextIterator.getCurrentElement(); oElement.elements[0] = oRun.Content[0]; oElement.firstRun = oRun; } - function applyStartChangeReview(oReviewChange, oTextIterator, oChangesIterator, comparison, oNeedReviewWithUser) + + function CReviewChange(oReviewInfo) { - const bRet = oTextIterator.skipTo(oReviewChange.startElementIndex, oReviewChange.startInnerElementIndex); - if (bRet) + this.elementIndex = -1; + this.innerElementIndex = -1; + + this.reviewInfo = oReviewInfo; + this.reviewType = null; + this.moveReviewType = null + this.moveReviewMarkName = null; + + this.collectRuns = []; + this.isStart = false; + this.partner = null; + this.mapRuns = {}; + } + CReviewChange.prototype.apply = function (oTextIterator, comparison, oNeedReviewWithUser) { + if (this.isStart) { + this.applyStart(oTextIterator, comparison, oNeedReviewWithUser); + } else { + this.applyEnd(oTextIterator); + } + }; + CReviewChange.prototype.applyStart = function (oTextIterator, comparison, oNeedReviewWithUser) { + const bIsLast = oTextIterator.elements[this.elementIndex].elements.length === this.innerElementIndex; + oTextIterator.skipTo(this.elementIndex, bIsLast ? this.innerElementIndex - 1 : this.innerElementIndex); + const oRun = oTextIterator.splitCurrentRun(bIsLast); + const oPartner = this.partner; + oPartner.dropLastRun(); + oTextIterator.addToCollectBack(oRun); + if (this.elementIndex === 0 && this.innerElementIndex === 0) { - const oRun = oTextIterator.splitCurrentRun(); - oTextIterator.dropLastCollect(); - oTextIterator.addToCollectBack(oRun); - if (oReviewChange.startElementIndex === 0 && oReviewChange.startInnerElementIndex === 0) - { - changeFirstTextElement(oTextIterator, oRun); - } + changeFirstTextElement(oTextIterator, oRun); + } - const arrRuns = oTextIterator.endCollectRuns(); + oTextIterator.setCollectReviewRuns(null); + const arrRuns = oPartner.collectRuns; - const nPriorityReviewType = oReviewChange.reviewType; - const nPriorityMoveReviewType = oReviewChange.moveReviewType; - const sMoveReviewMarkName = oReviewChange.moveReviewMarkName; - const oReviewInfo = oReviewChange.reviewInfo; - const sReviewUserName = oReviewInfo.GetUserName(); - const sReviewDate = oReviewInfo.GetDateTime(); + const nPriorityReviewType = oPartner.reviewType; + const nPriorityMoveReviewType = oPartner.moveReviewType; + const sMoveReviewMarkName = oPartner.moveReviewMarkName; + const oReviewInfo = oPartner.reviewInfo; + const sReviewUserName = oReviewInfo.GetUserName(); + const sReviewDate = oReviewInfo.GetDateTime(); - if (!oNeedReviewWithUser[sReviewDate]) { - oNeedReviewWithUser[sReviewDate] = {}; - } + if (!oNeedReviewWithUser[sReviewDate]) { + oNeedReviewWithUser[sReviewDate] = {}; + } - if (!oNeedReviewWithUser[sReviewDate][sReviewUserName]) { - const oNeedReview = {reviewTypes: {}, moveReviewTypes: {}}; - oNeedReview.reviewTypes[reviewtype_Add] = []; - oNeedReview.reviewTypes[reviewtype_Remove] = []; - oNeedReview.moveReviewTypes[Asc.c_oAscRevisionsMove.MoveTo] = []; - oNeedReview.moveReviewTypes[Asc.c_oAscRevisionsMove.MoveFrom] = []; - oNeedReviewWithUser[sReviewDate][sReviewUserName] = oNeedReview; - } + if (!oNeedReviewWithUser[sReviewDate][sReviewUserName]) { + const oNeedReview = {reviewTypes: {}, moveReviewTypes: {}}; + oNeedReview.reviewTypes[reviewtype_Add] = []; + oNeedReview.reviewTypes[reviewtype_Remove] = []; + oNeedReview.moveReviewTypes[Asc.c_oAscRevisionsMove.MoveTo] = []; + oNeedReview.moveReviewTypes[Asc.c_oAscRevisionsMove.MoveFrom] = []; + oNeedReviewWithUser[sReviewDate][sReviewUserName] = oNeedReview; + } - if (AscFormat.isRealNumber(nPriorityReviewType)) { - for (let i = 0; i < arrRuns.length; i += 1) - { - oNeedReviewWithUser[sReviewDate][sReviewUserName].reviewTypes[nPriorityReviewType].push({element: arrRuns[i], reviewInfo: oReviewInfo}); - } - } - else if (AscFormat.isRealNumber(nPriorityMoveReviewType)) - { - for (let i = 0; i < arrRuns.length; i += 1) - { - comparison.oComparisonMoveMarkManager.addMoveMarkNameRunRelation(sMoveReviewMarkName, arrRuns[i]); - comparison.oComparisonMoveMarkManager.addRunMoveMarkNameRelation(sMoveReviewMarkName, arrRuns[i]); - oNeedReviewWithUser[sReviewDate][sReviewUserName].moveReviewTypes[nPriorityMoveReviewType].push({element: arrRuns[i], reviewInfo: oReviewInfo}); } - } - if (oChangesIterator.check()) + if (AscFormat.isRealNumber(nPriorityReviewType)) { + for (let i = 0; i < arrRuns.length; i += 1) { - oChangesIterator.next(); - return oChangesIterator.value(); + oNeedReviewWithUser[sReviewDate][sReviewUserName].reviewTypes[nPriorityReviewType].push({element: arrRuns[i], reviewInfo: oReviewInfo}); } } - } - function CLabelsIterator(arrElements, arrMainNodes, oCommentsManager, oCopyPr) - { - this.bookmarkIterator = new CBookmarkChangesIterator(arrElements, oCopyPr); - this.commentsIterator = new CCommentChangesIterator(arrElements, arrMainNodes, oCommentsManager, oCopyPr); - this._value = null; - this.checkValue(); - } - CLabelsIterator.prototype.nextComment = function () - { - this.commentsIterator.next(); - }; - CLabelsIterator.prototype.nextBookmark = function () - { - this.bookmarkIterator.next(); - } - CLabelsIterator.prototype.checkValue = function () - { - const oCurrentBookmark = this.bookmarkIterator.currentLabel; - const oCurrentComment = this.commentsIterator.currentLabel; - if (oCurrentBookmark && oCurrentComment) + else if (AscFormat.isRealNumber(nPriorityMoveReviewType)) { - if (oCurrentBookmark.elementIndex > oCurrentComment.elementIndex || oCurrentBookmark.elementIndex === oCurrentComment.elementIndex && oCurrentBookmark.innerElementIndex >= oCurrentComment.innerElementIndex) + for (let i = 0; i < arrRuns.length; i += 1) { - this._value = this.bookmarkIterator.value(); - } - else - { - this._value = this.commentsIterator.value(); - } + comparison.oComparisonMoveMarkManager.addMoveMarkNameRunRelation(sMoveReviewMarkName, arrRuns[i]); + comparison.oComparisonMoveMarkManager.addRunMoveMarkNameRelation(sMoveReviewMarkName, arrRuns[i]); + oNeedReviewWithUser[sReviewDate][sReviewUserName].moveReviewTypes[nPriorityMoveReviewType].push({element: arrRuns[i], reviewInfo: oReviewInfo}); } } - else if (oCurrentComment) - { - this._value = this.commentsIterator.value(); - } - else if (oCurrentBookmark) - { - this._value = this.bookmarkIterator.value(); - } - else - { - this._value = null; - } - } - CLabelsIterator.prototype.next = function () - { - const oNextBookmark = this.bookmarkIterator.currentLabel; - const oNextComment = this.commentsIterator.currentLabel; - if (oNextBookmark && oNextComment) - { - if (oNextBookmark.elementIndex > oNextComment.elementIndex || oNextBookmark.elementIndex === oNextComment.elementIndex && oNextBookmark.innerElementIndex >= oNextComment.innerElementIndex) - { - this.nextBookmark(); - } - else - { - this.nextComment(); - } + }; + CReviewChange.prototype.applyEnd = function (oTextIterator) { + const bIsLast = oTextIterator.elements[this.elementIndex].elements.length === this.innerElementIndex; + oTextIterator.skipTo(this.elementIndex, bIsLast ? this.innerElementIndex - 1 : this.innerElementIndex); + oTextIterator.setCollectReviewRuns(this); + oTextIterator.addToCollectCurrentRun(); + const oSplitRun = oTextIterator.splitCurrentRun(bIsLast); + oTextIterator.addToCollectTextPr(oSplitRun); + }; + CReviewChange.prototype.addRun = function (oRun) { + if (!this.mapRuns[oRun.Id]) { + this.mapRuns[oRun.Id] = true; + this.collectRuns.push(oRun); } - else if (oNextComment) - { - this.nextComment(); + }; + + CReviewChange.prototype.addRunBack = function (oRun) { + if (!this.mapRuns[oRun.Id]) { + this.mapRuns[oRun.Id] = true; + this.collectRuns.unshift(oRun); } - else if (oNextBookmark) - { - this.nextBookmark(); + }; + CReviewChange.prototype.dropLastRun = function () { + const oRun = this.collectRuns.pop(); + if (oRun) { + delete this.mapRuns[oRun.Id]; } - this.checkValue(); - } - CLabelsIterator.prototype.value = function () - { - return this._value; - } - CLabelsIterator.prototype.check = function () + }; + CReviewChange.prototype.setPosition = function (nElementIndex, nInnerElementIndex) { + this.elementIndex = nElementIndex; + this.innerElementIndex = nInnerElementIndex; + }; + CReviewChange.prototype.setMoveReviewType = function (nMoveReviewType, sMoveReviewMarkName) { - return this.bookmarkIterator.check() || this.commentsIterator.check(); + this.moveReviewType = nMoveReviewType; + this.moveReviewMarkName = sMoveReviewMarkName; } - function CReviewChange() - { - this.startElementIndex = -1; - this.startInnerElementIndex = -1; + CReviewChange.prototype.isSimilar = function (oOtherChange) { + if (this.reviewType !== oOtherChange.reviewType) { + return false; + } - this.endElementIndex = -1; - this.endInnerElementIndex = -1; + if (this.moveReviewType !== oOtherChange.moveReviewType) { + return false; + } - this.reviewInfo = null; + if (this.moveReviewMarkName !== oOtherChange.moveReviewMarkName) { + return false; + } - this.reviewType = null; + if (this.reviewInfo && !this.reviewInfo.IsEqual(oOtherChange.reviewInfo) || !this.reviewInfo && oOtherChange.reviewInfo) { + return false; + } - this.moveReviewType = null - this.moveReviewMarkName = null; - } - CReviewChange.prototype.setStart = function (nElementIndex, nInnerElementIndex) - { - this.startElementIndex = nElementIndex; - this.startInnerElementIndex = nInnerElementIndex; - } - CReviewChange.prototype.setEnd = function (nElementIndex, nInnerElementIndex) - { - this.endElementIndex = nElementIndex; - this.endInnerElementIndex = nInnerElementIndex; - } - CReviewChange.prototype.setMoveReviewType = function (nMoveReviewType, sMoveReviewMarkName) - { - this.moveReviewType = nMoveReviewType; - this.moveReviewMarkName = sMoveReviewMarkName; - } - CReviewChange.prototype.setReviewInfo = function (oReviewInfo) - { - this.reviewInfo = oReviewInfo; - } + return true; + }; + CReviewChange.prototype.setPartner = function (oPartner) { + this.partner = oPartner; + oPartner.partner = this; + }; CReviewChange.prototype.setReviewType = function (nReviewType) { this.reviewType = nReviewType; } - function CLabelChange(arrLabels, nElementIndex, nInnerElementIndex, nAddingValue) + function CLabelChange(arrLabels, nElementIndex, nInnerElementIndex) { this.labels = arrLabels; this.elementIndex = nElementIndex; this.innerElementIndex = nInnerElementIndex; - this.addingValue = nAddingValue; - } - - function CLabelBaseIterator(arrElements, oCopyPr) - { - this.elements = arrElements; - this.currentLabel = null; - this.elementIndex = arrElements.length - 1; - this.elementLabelIndexes = this.getInsertIndexes(); - this.innerLabelElementIndex = -1; - this.copyPr = oCopyPr; - this.next(); - } - CLabelBaseIterator.prototype.check = function () - { - return !!this.currentLabel; - } - CLabelBaseIterator.prototype.value = function () - { - return this.currentLabel; - } - CLabelBaseIterator.prototype.getInsertIndex = function () - { - return this.elementLabelIndexes[this.innerLabelElementIndex]; - } - CLabelBaseIterator.prototype.getAddingValue = function () - { - const nInsertIndex = this.getInsertIndex(); - return nInsertIndex === 0 ? 0 : 1; } - CLabelBaseIterator.prototype.next = function () - { - this.currentLabel = null; - this.innerLabelElementIndex += 1; - while (this.innerLabelElementIndex === this.elementLabelIndexes.length && this.elementIndex > 0) - { - this.elementIndex -= 1; - this.elementLabelIndexes = this.getInsertIndexes(); - this.innerLabelElementIndex = 0; - } - const oElement = this.getElement(); - if (oElement && this.innerLabelElementIndex < this.elementLabelIndexes.length) + CLabelChange.prototype.apply = function (oTextIterator, comparison, oNeedReviewWithUser) { + const bIsLast = oTextIterator.elements[this.elementIndex].elements.length === this.innerElementIndex; + oTextIterator.skipTo(this.elementIndex, bIsLast ? this.innerElementIndex - 1 : this.innerElementIndex); + const oRun = oTextIterator.splitCurrentRun(bIsLast); + oTextIterator.addToCollectBack(oRun); + for (let i = this.labels.length - 1; i >= 0; i -= 1) { - const nInsertIndex = this.getInsertIndex(); - this.currentLabel = new CLabelChange(this._getInsertElements(oElement, nInsertIndex), this.elementIndex, nInsertIndex, this.getAddingValue()); + const oLabel = this.labels[i]; + oTextIterator.parent.AddToContent(oTextIterator.runIndex + 1, oLabel); } - } - CLabelBaseIterator.prototype.getElement = function () - { - return this.elements[this.elementIndex]; - } - CLabelBaseIterator.prototype.getInsertElements = function () - { - - } - CLabelBaseIterator.prototype._getInsertElements = function (oElement, nInsertIndex) - { - const arrInsertElements = this.getInsertElements(oElement, nInsertIndex); - if (this.copyPr) + if (this.elementIndex === 0 && this.innerElementIndex === 0) { - const arrResult = []; - for (let i = 0; i < arrInsertElements.length; i += 1) + const oElement = oTextIterator.getCurrentElement(); + const oFirstLabel = this.labels[0]; + if (oFirstLabel) { - arrResult.push(arrInsertElements[i].Copy(false, this.copyPr)) + oElement.lastSwitchElement = oFirstLabel; + } + else + { + changeFirstTextElement(oTextIterator, oRun); } - return arrResult; } - return arrInsertElements; }; - CLabelBaseIterator.prototype.getInsertIndexes = function () - { + function CBookmarkChangesCollector(arrElements, copyPr) { + this.elements = arrElements; + this.copyPr = copyPr; } - function CBookmarkChangesIterator(arrElements, oCopyPr) - { - CLabelBaseIterator.call(this, arrElements, oCopyPr); + CBookmarkChangesCollector.prototype.getBookmarkChanges = function () { + const arrResult = []; + for (let i = this.elements.length - 1; i >= 0; i -= 1) { + const oElement = this.elements[i]; + const arrInsertIndexes = oElement.getBookmarkInsertIndexes(); + for (let j = 0; j < arrInsertIndexes.length; j += 1) { + const nInsertIndex = arrInsertIndexes[j]; + const arrElements = this.getBookmarkElements(oElement, nInsertIndex); + arrResult.push(new CLabelChange(arrElements, i, nInsertIndex)); + } + } + return arrResult; } - AscFormat.InitClassWithoutType(CBookmarkChangesIterator, CLabelBaseIterator); - CBookmarkChangesIterator.prototype.getInsertElements = function (oElement, nInsertIndex) - { - return oElement.bookmarks[nInsertIndex]; + CBookmarkChangesCollector.prototype.getBookmarkElements = function (oTextElement, nInsertIndex) { + const arrElements = oTextElement.bookmarks[nInsertIndex].slice(); + if (this.copyPr) { + for (let i = 0; i < arrElements.length; i += 1) { + arrElements[i] = arrElements[i].Copy(false, this.copyPr); + } + } + return arrElements; }; - CBookmarkChangesIterator.prototype.getInsertIndexes = function () - { - return this.getElement().getBookmarkInsertIndexes(); - } - function CCommentChangesIterator(arrElements, arrMainNodes, oCommentsManager, oCopyPr) - { - this.mainNodes = arrMainNodes; - this.oCommentManager = oCommentsManager; - CLabelBaseIterator.call(this, arrElements, oCopyPr); + function CCommentChangesCollector(arrMainElements, arrRevisedElements, copyPr, oCommentManager) { + this.mainElements = arrMainElements; + this.revisedElements = arrRevisedElements; + this.commentManager = oCommentManager; + this.copyPr = copyPr; } - AscFormat.InitClassWithoutType(CCommentChangesIterator, CLabelBaseIterator); - CCommentChangesIterator.prototype.getInsertElements = function (oElement, nInsertIndex) - { - this.checkComment(); + CCommentChangesCollector.prototype.getCommentChanges = function () { + const arrResult = []; + for (let i = this.mainElements.length - 1; i >= 0; i -= 1) { + const oMainElement = this.mainElements[i]; + const oRevisedElement = this.revisedElements[i]; + const arrInsertIndexes = oRevisedElement.getCommentInsertIndexes(); + for (let j = 0; j < arrInsertIndexes.length; j += 1) { + const nInsertIndex = arrInsertIndexes[j]; + const arrCommentElements = this.getCommentElements(oMainElement, oRevisedElement, nInsertIndex); + arrResult.push(new CLabelChange(arrCommentElements, i, nInsertIndex)); + } + } + return arrResult; + } + CCommentChangesCollector.prototype.getCommentElements = function (oMainElement, oRevisedElement, nInsertIndex) { + this.checkComments(oMainElement, oRevisedElement, nInsertIndex); const arrElements = []; - for (let i = 0; i < oElement.comments[nInsertIndex].length; i += 1) + for (let i = 0; i < oRevisedElement.comments[nInsertIndex].length; i += 1) { - const oParaComment = oElement.comments[nInsertIndex][i].element; + const oParaComment = oRevisedElement.comments[nInsertIndex][i].element; arrElements.push(oParaComment); if (oParaComment.IsCommentStart()) { const sCommentId = oParaComment.GetCommentId(); - const arrLaterMerge = this.oCommentManager.getMergeLater(sCommentId); + const arrLaterMerge = this.commentManager.getMergeLater(sCommentId); if (arrLaterMerge) { arrElements.push.apply(arrElements, arrLaterMerge); } } } + + if (this.copyPr) { + for (let i = 0; i < arrElements.length; i += 1) { + arrElements[i] = arrElements[i].Copy(false, this.copyPr); + } + } return arrElements; }; - CCommentChangesIterator.prototype.checkComment = function () - { - const nInsertIndex = this.getInsertIndex(); - const oRevisedElement = this.getElement(); - const arrRevisedComments = oRevisedElement.comments[nInsertIndex]; - const arrMainComments = this.getMainNode().element.comments[nInsertIndex]; - this.oCommentManager.checkComments(arrMainComments, arrRevisedComments, arrRevisedComments); - return false; - } - CCommentChangesIterator.prototype.getMainNode = function () - { - return this.mainNodes[this.elementIndex]; - } - CCommentChangesIterator.prototype.getInsertIndexes = function () - { - return this.getElement().getCommentInsertIndexes(); - } + CCommentChangesCollector.prototype.checkComments = function (oMainElement, oRevisedElement, nInsertIndex) { + const arrRevisedComments = oRevisedElement.comments[nInsertIndex]; + const arrMainComments = oMainElement.comments[nInsertIndex]; + this.commentManager.checkComments(arrMainComments, arrRevisedComments, arrRevisedComments); + }; - function CReviewChangesIterator(arrMainElements, arrRevisedElements) - { + function CReviewChangeCollector(arrMainElements, arrRevisedElements, oMoveMarkManager, oMainParagraph, oRevisedParagraph) { this.mainElements = arrMainElements; this.revisedElements = arrRevisedElements; - - this.currentChange = null; - this.nextChange = null; - this.elementIndex = null; - this.innerElementIndex = null; - - this.canNextElement = true; - this.init(); + this.moveMarkManager = oMoveMarkManager; + this.mainParagraph = oMainParagraph; + this.revisedParagraph = oRevisedParagraph; } - - CReviewChangesIterator.prototype.init = function () - { - this.elementIndex = this.mainElements.length - 1; - this.innerElementIndex = this.getMainElement().elements.length; - this.findFirstChange(); - }; - CReviewChangesIterator.prototype.check = function () - { - return !!this.currentChange; - }; - - CReviewChangesIterator.prototype.nextElement = function () - { - this.innerElementIndex -= 1; - if (this.innerElementIndex < 0) - { - this.elementIndex -= 1; - this.innerElementIndex = 0; - } - if (this.elementIndex === 0 && this.innerElementIndex === 0) - { - this.canNextElement = false; - } - }; - - CReviewChangesIterator.prototype.value = function () - { - return this.currentChange; - }; - CReviewChangesIterator.prototype.next = function () - { - this.currentChange = this.nextChange; - this.nextChange = null; - while (this.canNextElement) - { - this.nextElement(); - if (this.endCurrentAndFindNextChange()) - { - break; - } - } - }; - CReviewChangesIterator.prototype.getMainElement = function () - { - return this.mainElements[this.elementIndex]; - }; - CReviewChangesIterator.prototype.getRevisedElement = function () - { - return this.revisedElements[this.elementIndex]; - }; - CReviewChangesIterator.prototype.findFirstChange = function () - { - this.isFindFirstChange = true; - this.next(); - this.isFindFirstChange = false; - this.next(); - }; - CReviewChangesIterator.prototype.getPriorityChange = function () - { - const oRevisedElement = this.getRevisedElement(); - const oMainElement = this.getMainElement(); - const oMainReviewElement = oMainElement.reviewElementTypes[this.innerElementIndex]; - const oRevisedReviewElement = oRevisedElement.reviewElementTypes[this.innerElementIndex]; - - const nRevisedReviewType = oRevisedReviewElement.reviewType; - const nRevisedMoveReviewType = oRevisedReviewElement.moveReviewType; - const sRevisedNameMoveMark = oRevisedReviewElement.moveName; - const oRevisedReviewInfo = oRevisedReviewElement.reviewInfo; - const oRevisedPrevAdded = oRevisedReviewElement.prevAdded; - - const nMainReviewType = oMainReviewElement.reviewType; - const oMainPrevAdded = oMainReviewElement.prevAdded; - const nMainMoveReviewType = oMainReviewElement.moveReviewType; + CReviewChangeCollector.prototype.getPriorityChange = function (oRevisedRun, oMainRun) { + const oRevisedReviewInfo = oRevisedRun.GetReviewInfo(); + const nRevisedReviewType = oRevisedRun.GetReviewType(); + const nRevisedMoveReviewType = oRevisedRun.GetReviewMoveType(); + const sRevisedNameMoveMark = this.moveMarkManager.getMoveMarkNameByRun(oRevisedRun); + const oRevisedPrevAdded = oRevisedReviewInfo.GetPrevAdded(); + + const oMainReviewInfo = oMainRun.GetReviewInfo(); + const nMainReviewType = oMainRun.GetReviewType(); + const oMainPrevAdded = oMainReviewInfo.GetPrevAdded(); + const nMainMoveReviewType = oMainRun.GetReviewMoveType(); let nPriorityReviewType; let oPriorityReviewInfo; @@ -510,8 +337,7 @@ if ((AscFormat.isRealNumber(nPriorityReviewType) || AscFormat.isRealNumber(nPriorityMoveReviewType)) && oPriorityReviewInfo) { - const oChange = new CReviewChange(); - oChange.setReviewInfo(oPriorityReviewInfo); + const oChange = new CReviewChange(oPriorityReviewInfo); if (bIsMove) { oChange.setMoveReviewType(nPriorityMoveReviewType, sRevisedNameMoveMark); @@ -523,66 +349,340 @@ return oChange; } }; - CReviewChangesIterator.prototype.endCurrentAndFindNextChange = function () - { - const oPriorityChange = this.getPriorityChange(); - if (oPriorityChange) - { - if (this.updateCurrentChange(oPriorityChange)) - { - return false; - } - else - { - this.nextChange = oPriorityChange; - oPriorityChange.setStart(this.elementIndex, this.innerElementIndex); - oPriorityChange.setEnd(this.elementIndex, this.innerElementIndex + 1); - return true; + CReviewChangeCollector.prototype.getRevisedLastRunIndex = function () { + const oLastElement = this.revisedElements[this.revisedElements.length - 1]; + const oLastRun = oLastElement.lastRun; + return this.getLastRunIndex(oLastRun, oLastElement.elements[oLastElement.elements.length - 1], this.revisedParagraph); + }; + CReviewChangeCollector.prototype.getMainLastRunIndex = function () { + const oLastElement = this.mainElements[this.mainElements.length - 1]; + const oLastRun = oLastElement.lastRun; + return this.getLastRunIndex(oLastRun, oLastElement.elements[oLastElement.elements.length - 1], this.mainParagraph); + }; + CReviewChangeCollector.prototype.getLastRunIndex = function (oRun, oElement, oRunParagraph) { + const oContent = oRunParagraph.Content; + for (let i = oContent.length - 1; i >= 0; i -= 1) { + if (oContent[i] === oRun) { + for (let j = oRun.Content.length - 1; j >= 0; j -= 1) { + const oRunElement = oRun.Content[j]; + if (oRunElement === oElement) { + return {runIndex: i, elementIndex: j}; + } + } } } - return false; + return null; }; - CReviewChangesIterator.prototype.updateCurrentChange = function (oPriorityChange) - { - if (this.isFindFirstChange || !this.currentChange) - { - return false; + CReviewChangeCollector.prototype.getReviewChanges = function () { + const arrResult = []; + + let nElementIndex = this.revisedElements.length - 1; + let nInnerElementIndex = this.revisedElements[nElementIndex].elements.length - 1; + + const oRevisedContent = this.revisedParagraph.Content; + const oMainContent = this.mainParagraph.Content; + + const oLastRevisedRunInfo = this.getRevisedLastRunIndex(); + const oLastMainRunInfo = this.getMainLastRunIndex(); + if (!oLastMainRunInfo || !oLastRevisedRunInfo) { + return arrResult; } - const bIsMove = oPriorityChange.moveReviewType !== null; + let nRevisedRunIndex = oLastRevisedRunInfo.runIndex; + let nMainRunIndex = oLastMainRunInfo.runIndex; - const bCheckReviewType = bIsMove ? oPriorityChange.moveReviewType === this.currentChange.moveReviewType : oPriorityChange.reviewType === this.currentChange.reviewType; + let bSaveOldRevisedCount = true; + let bSaveOldMainCount = true; + let nRevisedElementsCount = oLastRevisedRunInfo.elementIndex + 1; + let nMainElementsCount = oLastMainRunInfo.elementIndex + 1; + while (nRevisedRunIndex >= 0 && nMainRunIndex >= 0) { + const oRevisedRun = oRevisedContent[nRevisedRunIndex]; + const oMainRun = oMainContent[nMainRunIndex]; - let bIsNextCheckElement = false; - if (this.innerElementIndex === this.getMainElement().elements.length - 1) - { - if ((this.currentChange.startElementIndex === this.elementIndex + 1) && - (this.currentChange.startInnerElementIndex === 0)) - { - bIsNextCheckElement = true; + if (!bSaveOldRevisedCount) { + nRevisedElementsCount = oRevisedRun.Content.length; + bSaveOldRevisedCount = true; + } + if (!bSaveOldMainCount) { + nMainElementsCount = oMainRun.Content.length; + bSaveOldMainCount = true; + } + if (nMainElementsCount !== 0 && nRevisedElementsCount !== 0) { + const oLastPrChange = arrResult[arrResult.length - 1]; + const oPriorityChange = this.getPriorityChange(oRevisedRun, oMainRun); + if (!oPriorityChange) { + if (oLastPrChange && !oLastPrChange.isStart) { + const oStartReviewChange = new CReviewChange(null); + oStartReviewChange.isStart = true; + oStartReviewChange.setPosition(nElementIndex, nInnerElementIndex + 1); + oStartReviewChange.setPartner(oLastPrChange); + arrResult.push(oStartReviewChange); + } + } else if (oLastPrChange) { + if (oLastPrChange.isStart) { + oPriorityChange.setPosition(nElementIndex, nInnerElementIndex + 1); + arrResult.push(oPriorityChange); + } else if (!oLastPrChange.isSimilar(oPriorityChange)) { + const oStartReviewChange = new CReviewChange(null); + oStartReviewChange.isStart = true; + oStartReviewChange.setPosition(nElementIndex, nInnerElementIndex + 1); + oStartReviewChange.setPartner(oLastPrChange); + arrResult.push(oStartReviewChange); + + oPriorityChange.setPosition(nElementIndex, nInnerElementIndex + 1); + arrResult.push(oPriorityChange); + } + } else { + oPriorityChange.setPosition(nElementIndex, nInnerElementIndex + 1); + arrResult.push(oPriorityChange); + } + } + + while (nRevisedElementsCount !== 0 && nMainElementsCount !== 0) { + const nMinCount = Math.min(nRevisedElementsCount, nMainElementsCount); + if (nInnerElementIndex + 1 > nMinCount) { + nInnerElementIndex -= nMinCount; + nRevisedElementsCount -= nMinCount; + nMainElementsCount -= nMinCount; + } else { + nRevisedElementsCount -= nInnerElementIndex + 1; + nMainElementsCount -= nInnerElementIndex + 1; + nElementIndex -= 1; + if (this.revisedElements[nElementIndex] && this.mainElements[nElementIndex]) { + nInnerElementIndex = this.revisedElements[nElementIndex].revisedElements.length - 1; + } + } + if (nElementIndex < 0) { + const oLastPrChange = arrResult[arrResult.length - 1]; + if (oLastPrChange && !oLastPrChange.isStart) { + const oStartReviewChange = new CReviewChange(null); + oStartReviewChange.isStart = true; + oStartReviewChange.setPosition(0, 0); + oStartReviewChange.setPartner(oLastPrChange); + arrResult.push(oStartReviewChange); + } + return arrResult; + } + } + if (nRevisedElementsCount === 0) { + do { + nRevisedRunIndex -= 1; + bSaveOldRevisedCount = false; + } while (!(oRevisedContent[nRevisedRunIndex] instanceof AscCommonWord.ParaRun) && nRevisedRunIndex >= 0) + } + if (nMainElementsCount === 0) { + do { + nMainRunIndex -= 1; + bSaveOldMainCount = false; + } while (!(oMainContent[nMainRunIndex] instanceof AscCommonWord.ParaRun) && nMainRunIndex >= 0) } } - else + return arrResult; + }; + + function CTextPrChange(isStart, elementIndex, innerElementIndex, textPr) { + this.isStart = !!isStart; + this.elementIndex = elementIndex; + this.innerElementIndex = innerElementIndex; + this.textPr = textPr; + this.partner = null; + this.collectRuns = []; + this.mapRuns = {}; + } + + CTextPrChange.prototype.apply = function (oTextIterator, comparison, oNeedReviewWithUser) { + if (this.isStart) { + this.applyStart(oTextIterator, comparison); + } else { + this.applyEnd(oTextIterator); + } + }; + CTextPrChange.prototype.applyStart = function (oTextIterator, oComparison) { + const bIsLast = oTextIterator.elements[this.elementIndex].elements.length === this.innerElementIndex; + oTextIterator.skipTo(this.elementIndex, bIsLast ? this.innerElementIndex - 1 : this.innerElementIndex); + const oPartner = this.partner; + const oSplitRun = oTextIterator.splitCurrentRun(bIsLast); + oPartner.dropLastRun(); + oTextIterator.addToCollectBack(oSplitRun); + if (this.elementIndex === 0 && this.innerElementIndex === 0) { - if ((this.currentChange.startElementIndex === this.elementIndex) && - (this.currentChange.startInnerElementIndex === this.innerElementIndex + 1)) - { - bIsNextCheckElement = true; + changeFirstTextElement(oTextIterator, oSplitRun); + } + oTextIterator.setCollectTextPrRuns(null); + const arrRuns = oPartner.collectRuns; + const oNewTextPr = oPartner.textPr; + + for (let i = 0; i < arrRuns.length; i += 1) { + const oRun = arrRuns[i]; + const oCopyTextPr = oNewTextPr.Copy(); + const oOldTextPr = oRun.GetTextPr(); + const oReviewInfo = new CReviewInfo(); + oComparison.setReviewInfo(oReviewInfo); + oCopyTextPr.SetPrChange(oOldTextPr, oReviewInfo); + oRun.SetPr(oCopyTextPr); + } + }; + CTextPrChange.prototype.applyEnd = function (oTextIterator) { + const bIsLast = oTextIterator.elements[this.elementIndex].elements.length === this.innerElementIndex; + oTextIterator.skipTo(this.elementIndex, bIsLast ? this.innerElementIndex - 1 : this.innerElementIndex); + + oTextIterator.setCollectTextPrRuns(this); + oTextIterator.addToCollectCurrentRun(); + const oSplitRun = oTextIterator.splitCurrentRun(bIsLast); + oTextIterator.addToCollectReviewChange(oSplitRun); + }; + CTextPrChange.prototype.setPartner = function (partner) { + this.partner = partner; + }; + + CTextPrChange.prototype.addRun = function (oRun) { + if (!this.mapRuns[oRun.Id]) { + this.mapRuns[oRun.Id] = true; + this.collectRuns.push(oRun); + } + }; + + CTextPrChange.prototype.addRunBack = function (oRun) { + if (!this.mapRuns[oRun.Id]) { + this.mapRuns[oRun.Id] = true; + this.collectRuns.unshift(oRun); + } + }; + CTextPrChange.prototype.dropLastRun = function () { + const oRun = this.collectRuns.pop(); + if (oRun) { + delete this.mapRuns[oRun.Id]; + } + }; + + function CTextPrChangeCollector(arrMainElements, arrRevisedElements, oMainParagraph, oRevisedParagraph, oCopyPr) { + this.elements = arrRevisedElements; + this.comparedElements = arrMainElements; + this.mainParagraph = oMainParagraph; + this.revisedParagraph = oRevisedParagraph; + this.copyPr = oCopyPr; + } + CTextPrChangeCollector.prototype.getRevisedLastRunIndex = function () { + const oLastElement = this.elements[this.elements.length - 1]; + const oLastRun = oLastElement.lastRun; + return this.getLastRunIndex(oLastRun, oLastElement.elements[oLastElement.elements.length - 1], this.revisedParagraph); + }; + CTextPrChangeCollector.prototype.getMainLastRunIndex = function () { + const oLastElement = this.comparedElements[this.comparedElements.length - 1]; + const oLastRun = oLastElement.lastRun; + return this.getLastRunIndex(oLastRun, oLastElement.elements[oLastElement.elements.length - 1], this.mainParagraph); + }; + CTextPrChangeCollector.prototype.getLastRunIndex = function (oRun, oElement, oRunParagraph) { + const oContent = oRunParagraph.Content; + for (let i = oContent.length - 1; i >= 0; i -= 1) { + if (oContent[i] === oRun) { + for (let j = oRun.Content.length - 1; j >= 0; j -= 1) { + const oRunElement = oRun.Content[j]; + if (oRunElement === oElement) { + return {runIndex: i, elementIndex: j}; + } + } } } - const oPriorityReviewInfo = oPriorityChange.reviewInfo; - const sReviewUserName = oPriorityReviewInfo.GetUserName(); - const nReviewDate = oPriorityReviewInfo.GetDateTime(); - if (bIsNextCheckElement - && bCheckReviewType - && this.currentChange.reviewInfo - && (this.currentChange.reviewInfo.GetUserName() === sReviewUserName ) - && this.currentChange.reviewInfo.GetDateTime() === nReviewDate) - { - this.currentChange.setStart(this.elementIndex, this.innerElementIndex); - return true; + return null; + }; + CTextPrChangeCollector.prototype.getTextPrChanges = function () { + const arrResult = []; + + let nElementIndex = this.elements.length - 1; + let nInnerElementIndex = this.elements[nElementIndex].elements.length - 1; + + const oRevisedContent = this.revisedParagraph.Content; + const oMainContent = this.mainParagraph.Content; + + const oLastRevisedRunInfo = this.getRevisedLastRunIndex(); + const oLastMainRunInfo = this.getMainLastRunIndex(); + if (!oLastMainRunInfo || !oLastRevisedRunInfo) { + return arrResult; } - return false; + + let nRevisedRunIndex = oLastRevisedRunInfo.runIndex; + let nMainRunIndex = oLastMainRunInfo.runIndex; + + let bSaveOldRevisedCount = true; + let bSaveOldMainCount = true; + let nRevisedElementsCount = oLastRevisedRunInfo.elementIndex + 1; + let nMainElementsCount = oLastMainRunInfo.elementIndex + 1; + while (nRevisedRunIndex >= 0 && nMainRunIndex >= 0) { + const oRevisedRun = oRevisedContent[nRevisedRunIndex]; + const oMainRun = oMainContent[nMainRunIndex]; + const oMainTextPr = oMainRun.Pr; + const oRevisedTextPr = oRevisedRun.Pr.Copy(undefined, this.copyPr); + + if (!bSaveOldRevisedCount) { + nRevisedElementsCount = oRevisedRun.Content.length; + bSaveOldRevisedCount = true; + } + if (!bSaveOldMainCount) { + nMainElementsCount = oMainRun.Content.length; + bSaveOldMainCount = true; + } + if (nMainElementsCount !== 0 && nRevisedElementsCount !== 0) { + const oLastPrChange = arrResult[arrResult.length - 1]; + if (oMainTextPr.Is_Equal(oRevisedTextPr)) { + if (oLastPrChange && !oLastPrChange.isStart) { + const oStartPrChange = new CTextPrChange(true, nElementIndex, nInnerElementIndex + 1); + oStartPrChange.setPartner(oLastPrChange); + arrResult.push(oStartPrChange); + } + } else if (oLastPrChange) { + if (oLastPrChange.isStart) { + arrResult.push(new CTextPrChange(false, nElementIndex, nInnerElementIndex + 1, oRevisedTextPr)); + } else if (!oLastPrChange.textPr.Is_Equal(oRevisedTextPr)) { + const oStartPrChange = new CTextPrChange(true, nElementIndex, nInnerElementIndex + 1); + oStartPrChange.setPartner(oLastPrChange); + arrResult.push(oStartPrChange); + arrResult.push(new CTextPrChange(false, nElementIndex, nInnerElementIndex + 1, oRevisedTextPr)); + } + } else { + arrResult.push(new CTextPrChange(false, nElementIndex, nInnerElementIndex + 1, oRevisedTextPr)); + } + + } + + while (nRevisedElementsCount !== 0 && nMainElementsCount !== 0) { + const nMinCount = Math.min(nRevisedElementsCount, nMainElementsCount); + if (nInnerElementIndex + 1 > nMinCount) { + nInnerElementIndex -= nMinCount; + nRevisedElementsCount -= nMinCount; + nMainElementsCount -= nMinCount; + } else { + nRevisedElementsCount -= nInnerElementIndex + 1; + nMainElementsCount -= nInnerElementIndex + 1; + nElementIndex -= 1; + if (this.elements[nElementIndex] && this.comparedElements[nElementIndex]) { + nInnerElementIndex = this.elements[nElementIndex].elements.length - 1; + } + } + if (nElementIndex < 0) { + const oLastPrChange = arrResult[arrResult.length - 1]; + if (oLastPrChange && !oLastPrChange.isStart) { + const oStartPrChange = new CTextPrChange(true, 0, 0); + oStartPrChange.setPartner(oLastPrChange); + arrResult.push(oStartPrChange); + } + return arrResult; + } + } + if (nRevisedElementsCount === 0) { + do { + nRevisedRunIndex -= 1; + bSaveOldRevisedCount = false; + } while (!(oRevisedContent[nRevisedRunIndex] instanceof AscCommonWord.ParaRun) && nRevisedRunIndex >= 0) + } + if (nMainElementsCount === 0) { + do { + nMainRunIndex -= 1; + bSaveOldMainCount = false; + } while (!(oMainContent[nMainRunIndex] instanceof AscCommonWord.ParaRun) && nMainRunIndex >= 0) + } + } + return arrResult; }; function CNode(oElement, oParent) @@ -601,64 +701,72 @@ oParent.addChildNode(this); } } - CNode.prototype.resolveTypesWithPartner = function (comparison, bNeedCopyLabel) - { - const oPartnerNode = this.partner; - const oOriginalTextElement = this.element; - if (oOriginalTextElement instanceof CTextElement && oPartnerNode) - { - const oRevisedTextElement = oPartnerNode.element; - const oNeedReviewWithUser = {}; - let oChangesIterator; - let oReviewChange; - if (comparison.needCheckReview) - { - oChangesIterator = new CReviewChangesIterator([oOriginalTextElement], [oRevisedTextElement]); - oReviewChange = oChangesIterator.value(); - } - let oCopyPr; - if (comparison.needCopyForResolveEqualWords) - { - oCopyPr = comparison.copyPr; - } - const oLabelsIterator = new CLabelsIterator([oRevisedTextElement], [this], comparison.oCommentManager, oCopyPr); - let oLabelChange = oLabelsIterator.value(bNeedCopyLabel); + function getChanges(arrOriginalTextElements, arrRevisedTextElements, comparison, oMainParent, oRevisedParent) { + const oTextPrChangeCollector = new CTextPrChangeCollector(arrOriginalTextElements, arrRevisedTextElements, oMainParent, oRevisedParent, comparison.copyPr); + const arrTextPrChanges = oTextPrChangeCollector.getTextPrChanges(); - const oTextIterator = new AscCommonWord.CTextElementRunIterator([oOriginalTextElement]); + let arrReviewChanges = []; + if (comparison.needCheckReview) { + const oReviewChangeCollector = new CReviewChangeCollector(arrOriginalTextElements, arrRevisedTextElements, comparison.oComparisonMoveMarkManager, oMainParent, oRevisedParent); + arrReviewChanges = oReviewChangeCollector.getReviewChanges(); + } - while (oLabelChange && oReviewChange) - { - if ((oReviewChange.endElementIndex > oLabelChange.elementIndex) || - (oReviewChange.endElementIndex === oLabelChange.elementIndex && oReviewChange.endInnerElementIndex >= oLabelChange.innerElementIndex)) - { - applyEndChangeReview(oReviewChange, oTextIterator); + let oCopyPr; + if (comparison.needCopyForResolveEqualWords) { + oCopyPr = comparison.copyPr; + } + const oCommentChangeCollector = new CCommentChangesCollector(arrOriginalTextElements, arrRevisedTextElements, oCopyPr, comparison.oCommentManager); + const arrCommentChanges = oCommentChangeCollector.getCommentChanges(); - while (oLabelChange && ((oReviewChange.startElementIndex < oLabelChange.elementIndex) || - (oReviewChange.startElementIndex === oLabelChange.elementIndex && oReviewChange.startInnerElementIndex < oLabelChange.innerElementIndex))){ - oLabelChange = insertLabelsAndContinue(oLabelChange, oTextIterator, oLabelsIterator); - } - oReviewChange = applyStartChangeReview(oReviewChange, oTextIterator, oChangesIterator, comparison, oNeedReviewWithUser); - } - else - { - while (oLabelChange && (oLabelChange.elementIndex > oReviewChange.endElementIndex || oLabelChange.elementIndex === oReviewChange.endElementIndex && oLabelChange.innerElementIndex > oReviewChange.endInnerElementIndex)) - { - oLabelChange = insertLabelsAndContinue(oLabelChange, oTextIterator, oLabelsIterator); - } - } - } + const oBookmarkChangeCollector = new CBookmarkChangesCollector(arrRevisedTextElements, oCopyPr); + const arrBookmarkChanges = oBookmarkChangeCollector.getBookmarkChanges(); - while (oLabelChange) - { - oLabelChange = insertLabelsAndContinue(oLabelChange, oTextIterator, oLabelsIterator); + const arrChanges = arrTextPrChanges.concat(arrReviewChanges, arrBookmarkChanges, arrCommentChanges); + return arrChanges.sort(function (a, b) { + if (a.elementIndex === b.elementIndex) { + if (b.innerElementIndex === a.innerElementIndex) { + return !!b.isStart - !!a.isStart; } - while (oReviewChange) - { - applyEndChangeReview(oReviewChange, oTextIterator); - oReviewChange = applyStartChangeReview(oReviewChange, oTextIterator, oChangesIterator, comparison, oNeedReviewWithUser); - } - comparison.applyResolveTypes(oNeedReviewWithUser); + return b.innerElementIndex - a.innerElementIndex; + } + return b.elementIndex - a.elementIndex; + }); + } + function resolveTypesWithPartner(arrNodes, comparison) { + const arrMainElements = []; + const arrRevisedElements = []; + for (let i = 0; i < arrNodes.length; i += 1) { + const oNode = arrNodes[i]; + const oMainElement = oNode.element; + const oRevisedElement = oNode.partner.element; + + arrMainElements.push(oMainElement); + arrRevisedElements.push(oRevisedElement); + } + if (!arrMainElements.length) { + return; + } + + const oFirstNode = arrNodes[0]; + const oRevisedParent = oFirstNode.partner.par.element; + const oMainParent = oFirstNode.par.element; + + + const oNeedReviewWithUser = {}; + const arrChanges = getChanges(arrMainElements, arrRevisedElements, comparison, oMainParent, oRevisedParent); + + const oTextIterator = new CRunCollector(arrMainElements); + + for (let i = 0; i < arrChanges.length; i += 1) { + const oChange = arrChanges[i]; + oChange.apply(oTextIterator, comparison, oNeedReviewWithUser); + } + comparison.applyResolveTypes(oNeedReviewWithUser); + } + CNode.prototype.resolveTypesWithPartner = function (comparison) { + if (this.partner && this.element instanceof CTextElement) { + resolveTypesWithPartner([this], comparison); } }; CNode.prototype.getElement = function() @@ -741,7 +849,7 @@ const oNode = oChange.insert[oChange.insert.length - 1]; const oLastText = oNode.element; const oEndOfInsertRun = oNode.getContentElement(); - const oParentParagraph = (this.partner && this.partner.element) || oEndOfInsertRun.Paragraph; + const oParentParagraph = (this.partner && this.partner.element) || oEndOfInsertRun.GetParent(); const applyingParagraph = this.getApplyParagraph(comparison); const arrEndBookmarks = oNode.getLastBookmarks(); if (arrEndBookmarks) @@ -856,7 +964,7 @@ const oLastElement = oLastNode.getContentElement(); const applyingParagraph = this.getApplyParagraph(comparison); - const oParentParagraph = (this.partner && this.partner.element) || oLastElement.Paragraph; + const oParentParagraph = (this.partner && this.partner.element) || oLastElement.GetParent(); let k = posOfLastInsertRun; let lastCheckRun; for(k -= 1; k > -1; --k) @@ -2529,6 +2637,7 @@ { oOriginalDocument.UpdateBookmarks(); } + oThis.updateCommentsQuoteText(); oOriginalDocument.Recalculate(); oOriginalDocument.UpdateInterface(); oOriginalDocument.FinalizeAction(); @@ -2566,31 +2675,51 @@ CDocumentComparison.prototype.applyResolveTypes = function () {}; - CDocumentComparison.prototype.applyChangesToParagraph = function(oNode) - { - oNode.changes.sort(function(c1, c2){return c2.anchor.index - c1.anchor.index}); - let nLastIndex = oNode.children.length - 1; - for(let i = 0; i < oNode.changes.length; ++i) - { - for (let j = nLastIndex; j >= oNode.changes[i].anchor.index; j -= 1) - { - oNode.children[j].resolveTypesWithPartner(this); - } - this.executeWithCheckInsertAndRemove(function () { - const aContentToInsert = oNode.getArrOfInsertsFromChanges(i, this); - //handle removed elements - oNode.applyInsertsToParagraph(this, aContentToInsert, i); - }.bind(this), oNode.changes[i]); + CDocumentComparison.prototype.applyChangesToParagraph = function(oNode) + { + oNode.changes.sort(function(c1, c2){return c2.anchor.index - c1.anchor.index}); + let nLastIndex = oNode.children.length - 1; + for(let i = 0; i < oNode.changes.length; ++i) + { + let arrResult = []; + for (let j = nLastIndex; j >= oNode.changes[i].anchor.index; j -= 1) + { + const oChild = oNode.children[j]; + if (oChild.partner && oChild.element instanceof CTextElement) { + arrResult.unshift(oChild); + } else if (arrResult.length) { + resolveTypesWithPartner(arrResult, this); + arrResult = []; + } + } + if (arrResult.length) { + resolveTypesWithPartner(arrResult, this); + } + this.executeWithCheckInsertAndRemove(function () { + const aContentToInsert = oNode.getArrOfInsertsFromChanges(i, this); + //handle removed elements + oNode.applyInsertsToParagraph(this, aContentToInsert, i); + }.bind(this), oNode.changes[i]); - nLastIndex = oNode.changes[i].anchor.index - 1; - } - for (let j = nLastIndex; j >= 0; j -= 1) - { - oNode.children[j].resolveTypesWithPartner(this); - } - this.applyChangesToChildrenOfParagraphNode(oNode); - this.applyChangesToSectPr(oNode); - }; + nLastIndex = oNode.changes[i].anchor.index - 1; + } + let arrResult = []; + for (let j = nLastIndex; j >= 0; j -= 1) + { + const oChild = oNode.children[j]; + if (oChild.partner && oChild.element instanceof CTextElement) { + arrResult.unshift(oChild); + } else if (arrResult.length) { + resolveTypesWithPartner(arrResult, this); + arrResult = []; + } + } + if (arrResult.length) { + resolveTypesWithPartner(arrResult, this); + } + this.applyChangesToChildrenOfParagraphNode(oNode); + this.applyChangesToSectPr(oNode); + }; CDocumentComparison.prototype.applyChangesToChildrenOfParagraphNode = function (oNode) { for(let i = 0; i < oNode.children.length; ++i) @@ -2772,8 +2901,40 @@ } } }; + CDocumentComparison.prototype.applyChangesToTablePr = function (oNode) { + if (oNode.partner) { + const oMainTable = oNode.element; + const oRevisedTable = oNode.partner.element; + + const oMainPr = oMainTable.Pr; + const oRevisedPr = oRevisedTable.Pr; + + const sMainStyleId = oMainTable.TableStyle; + const sRevisedStyleId = this.copyStyleById(oRevisedTable.TableStyle); + + const oMainTableLook = oMainTable.Get_TableLook(); + const oRevisedTableLook = oMainTable.Get_TableLook(); + if (oMainPr.Is_Equal(oRevisedPr) && sMainStyleId === sRevisedStyleId && (oMainTableLook && oMainTableLook.IsEqual(oRevisedTableLook) || oMainTableLook === oRevisedTableLook)) { + return; + } + if (sMainStyleId !== sRevisedStyleId) { + oMainTable.Set_TableStyle(sRevisedStyleId, true); + } + if (oRevisedTableLook) { + oMainTable.Set_TableLook(oRevisedTableLook.Copy()); + } else { + oMainTable.Set_TableLook(oRevisedTableLook); + } + const oNewPr = oRevisedPr.Copy(); + oNewPr.PrChange = oMainPr.Copy(); + oNewPr.ReviewInfo = new CReviewInfo(); + this.setReviewInfo(oNewPr.ReviewInfo); + oMainTable.Set_Pr(oNewPr); + } + } CDocumentComparison.prototype.applyChangesToTable = function(oNode) { + this.applyChangesToTablePr(oNode); this.applyChangesToTableSize(oNode); this.applyChangesToTableRows(oNode); }; @@ -2808,14 +2969,51 @@ } }; CDocumentComparison.prototype.checkRowReview = function(oRowNode) {}; + CDocumentComparison.prototype.addTablePrChange = function (oTablePr) { + oTablePr.PrChange = oTablePr.Copy(false); + oTablePr.ReviewInfo = new CReviewInfo(); + this.setReviewInfo(oTablePr.ReviewInfo); + }; + CDocumentComparison.prototype.applyChangesToTableCellPr = function (oNode) { + if (oNode.partner) { + const oMainCell = oNode.element.GetParent(); + const oRevisedCell = oNode.partner.element.GetParent(); + this.setTableElementChange(oMainCell, oRevisedCell); + } + }; + CDocumentComparison.prototype.applyChangesToTableRowPr = function (oNode) { + if (oNode.partner) { + const oMainRow = oNode.element; + const oRevisedRow = oNode.partner.element; + this.setTableElementChange(oMainRow, oRevisedRow); + } + }; + CDocumentComparison.prototype.setTableElementChange = function (oMainElement, oRevisedElement) { + const oMainPr = oMainElement.Pr; + const oRevisedPr = oRevisedElement.Pr; + + if (oMainPr.Is_Equal(oRevisedPr)) { + return; + } + const oNewPr = oRevisedPr.Copy(); + oNewPr.PrChange = oMainPr.Copy(); + oNewPr.ReviewInfo = new CReviewInfo(); + this.setReviewInfo(oNewPr.ReviewInfo); + oMainElement.Set_Pr(oNewPr); + const oTable = oMainElement.GetTable(); + oTable.AddPrChange(this.copyPr); + }; CDocumentComparison.prototype.applyChangesToTableRow = function(oNode) { this.checkRowReview(oNode); + this.applyChangesToTableRowPr(oNode); //TODO: handle cell inserts and removes for(let i = 0; i < oNode.children.length; ++i) { - this.applyChangesToDocContent(oNode.children[i]); + const oChild = oNode.children[i]; + this.applyChangesToTableCellPr(oChild); + this.applyChangesToDocContent(oChild); } }; CDocumentComparison.prototype.getCopyNumId = function (sNumId) @@ -2840,7 +3038,7 @@ } } } - return sCopyNumId; + return sCopyNumId === undefined ? sNumId : sCopyNumId; }; CDocumentComparison.prototype.copyStyleById = function(sId) { @@ -2910,7 +3108,6 @@ }; CDocumentComparison.prototype.copyComment = function(sId) { - let oCopyComment; if(!this.CommentsMap[sId]) { const oComment = this.revisedDocument.Comments.Get_ById(sId); @@ -2921,8 +3118,9 @@ { const oOldParent = oComment.Parent; oComment.Parent = oOrigComments; - oCopyComment = oComment.Copy(); + const oCopyComment = oComment.Copy(); this.CommentsMap[sId] = oCopyComment; + this.CommentsMap[oCopyComment.GetId()] = oCopyComment; if (this.oCommentManager.mapLink[sId]) { this.oCommentManager.addToLink(oCopyComment.GetId(), sId); @@ -2933,12 +3131,7 @@ } } } - oCopyComment = this.CommentsMap[sId] || null; - if(oCopyComment) - { - return oCopyComment.Get_Id(); - } - return null; + return this.CommentsMap[sId]; }; CDocumentComparison.prototype.getRevisedStyle = function(sStyleId) { @@ -3507,6 +3700,29 @@ return false; }; + CDocumentComparison.prototype.updateCommentsQuoteText = function () + { + const oLogicDocument = this.originalDocument; + const oSelectionState = oLogicDocument.SaveDocumentState(false); + const oComments = oLogicDocument.GetCommentsManager(); + for (let sId in oComments.m_arrCommentsById) + { + const oComment = oComments.m_arrCommentsById[sId]; + if (oComment.SelectCommentText()) + { + const oCommentData = oComment.GetData(); + const sSelectedText = oLogicDocument.GetSelectedText(false); + if (sSelectedText !== oCommentData.GetQuoteText()) + { + const oCopyData = oCommentData.Copy(); + oCopyData.Set_QuoteText(sSelectedText === "" ? null : sSelectedText); + oComment.SetData(oCopyData); + this.api.sync_ChangeCommentData(oComment.Id, oCopyData); + } + } + } + oLogicDocument.LoadDocumentState(oSelectionState); + }; window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CDocumentComparison = CDocumentComparison; @@ -3699,7 +3915,6 @@ this.mapNamesForMerge = {}; this.mapIdToBookmarkId = {}; this.needUpdateBookmarks = false; - this.IdName = {}; this.bookmarkStack = []; this.previousNode = null; } @@ -3722,29 +3937,31 @@ } for (let sName in this.mapNamesForMerge) { - if (this.mapNamesForMerge[sName]) - { - this.needUpdateBookmarks = true; - const oStartBookmark = this.mapNamesForMerge[sName][0]; - const oEndBookmark = this.mapNamesForMerge[sName][1]; - const nNewId = oMainDocument.BookmarksManager.GetNewBookmarkId(); - this.IdName[nNewId] = sName; - this.mapIdToBookmarkId[oStartBookmark.GetId()] = nNewId; - this.mapIdToBookmarkId[oEndBookmark.GetId()] = nNewId; - } + this.needUpdateBookmarks = true; + const oStartBookmark = this.mapNamesForMerge[sName][0]; + const oEndBookmark = this.mapNamesForMerge[sName][1]; + const nNewId = oMainDocument.BookmarksManager.GetNewBookmarkId(); + this.addToLink(oStartBookmark.GetId(), nNewId); + this.addToLink(oEndBookmark.GetId(), nNewId); } }; + CComparisonBookmarkManager.prototype.addToLink = function (sId, nBookmarkId) { + this.mapIdToBookmarkId[sId] = nBookmarkId; + }; CComparisonBookmarkManager.prototype.isSkip = function (oElement) { if (oElement instanceof AscCommonWord.CParagraphBookmark) { - return !this.mapIdToBookmarkId[oElement.GetId()] && !this.IdName[oElement.GetBookmarkId()]; + return !this.mapIdToBookmarkId[oElement.GetId()]; } return false; }; CComparisonBookmarkManager.prototype.getId = function (oBookmark) { - return this.mapIdToBookmarkId[oBookmark.GetId()]; + const sId = this.mapIdToBookmarkId[oBookmark.GetId()]; + if (sId) { + return parseInt(sId, 10); + } }; CComparisonBookmarkManager.prototype.addToStack = function (oBookmark, nInsertIndex) { @@ -3841,6 +4058,8 @@ const oComment = this.getAddedComment(oCopyData); const oStartParaComment = new AscCommon.ParaComment(true, oComment.GetId()); const oEndParaComment = new AscCommon.ParaComment(false, oComment.GetId()); + oComment.SetRangeStart(oStartParaComment.GetId()); + oComment.SetRangeEnd(oEndParaComment.GetId()); const oEndCommentElement = new CCommentElement(oComment, oEndParaComment); arrCommentElements.push(oEndCommentElement); this.addToMergeLater(oStartParaComment, sRevisedCommentId); @@ -3994,125 +4213,150 @@ this.comment = oParaComment; this.insertIndex = nInsertIndex; } + + function CRunCollector(arrElements) { + this.elements = arrElements; + this.runIndex = null; + this.runElementIndex = null; + this.elementIndex = null; + this.innerElementIndex = null; + this.parent = null; + this.collectTextPrChange = null; + this.collectReviewChange = null; - function CTextElementRunIterator(arrTextElements, bStartCollect) - { - this.textElements = arrTextElements; - this.textElementIndex = arrTextElements.length - 1; - this.innerElementIndex = this.getCurrentElement().elements.length - 1; - this.currentRun = this.getCurrentElement().lastRun; - this.parent = this.currentRun.GetParent(); - this.runIndex = this.currentRun.GetPosInParent(this.parent); - this.runElementIndex = this.currentRun.GetElementPosition(this.getRunTextElement()); - this.bNext = this.innerElementIndex !== -1; - this.isCollectRuns = !!bStartCollect; - this.collectRuns = this.isCollectRuns ? [this.currentRun] : []; + this.init(); } - CTextElementRunIterator.prototype.startCollectRuns = function () - { - this.isCollectRuns = true; + CRunCollector.prototype.init = function () { + this.elementIndex = this.elements.length - 1; + const oLastElement = this.elements[this.elementIndex]; + this.innerElementIndex = oLastElement.elements.length - 1; + const oLastRun = oLastElement.lastRun; + const oParent = oLastRun.GetParent(); + this.parent = oParent; + const oContent = oParent.Content; + for (let i = oContent.length - 1; i >= 0; i -= 1) { + const oRun = oContent[i]; + if (oRun === oLastRun) { + this.runIndex = i; + break; + } + } + const oLastRunElement = oLastElement.elements[this.innerElementIndex]; + for (let i = oLastRun.Content.length - 1; i >= 0; i -= 1) { + const oElement = oLastRun.Content[i]; + if (oElement === oLastRunElement) { + this.runElementIndex = i; + break; + } + } }; - CTextElementRunIterator.prototype.addToCollectCurrentRun = function () - { - if (this.isCollectRuns) - { - this.addToCollect(this.currentRun); + + CRunCollector.prototype.getCurrentElement = function () { + return this.elements[this.elementIndex]; + }; + + CRunCollector.prototype.skipTo = function (elementIndex, innerElementIndex) { + while (this.elementIndex > elementIndex) { + let countElements = this.innerElementIndex + 1; + while (countElements) { + if (this.runElementIndex + 1 > countElements) { + this.runElementIndex -= countElements; + countElements = 0; + } else { + countElements -= this.runElementIndex + 1; + this.nextRun(); + } + } + this.elementIndex -= 1; + const oElement = this.elements[this.elementIndex]; + if (oElement) { + this.innerElementIndex = oElement.elements.length - 1; + } + } + if (this.innerElementIndex > innerElementIndex) { + let countElements = this.innerElementIndex - innerElementIndex; + while (countElements) { + if (this.runElementIndex + 1 > countElements) { + this.runElementIndex -= countElements; + countElements = 0; + } else { + countElements -= this.runElementIndex + 1; + this.nextRun(); + } + } + this.innerElementIndex = innerElementIndex; } }; - CTextElementRunIterator.prototype.dropLastCollect = function () + CRunCollector.prototype.dropLastCollect = function () { - return this.collectRuns.pop(); + if (this.collectTextPrChange) { + this.collectTextPrChange.dropLastRun(); + } + if (this.collectReviewChange) { + this.collectReviewChange.dropLastRun(); + } }; - CTextElementRunIterator.prototype.addToCollect = function (oRun) - { - this.collectRuns.push(oRun); + CRunCollector.prototype.setCollectTextPrRuns = function (oChange) { + this.collectTextPrChange = oChange; }; - CTextElementRunIterator.prototype.addToCollectBack = function (oRun) - { - this.collectRuns.unshift(oRun); + CRunCollector.prototype.setCollectReviewRuns = function (oChange) { + this.collectReviewChange = oChange; + } + CRunCollector.prototype.addToCollectTextPr = function (oRun) { + if (this.collectTextPrChange) { + this.collectTextPrChange.addRun(oRun); + } }; - CTextElementRunIterator.prototype.endCollectRuns = function () - { - this.isCollectRuns = false; - const arrRet = this.collectRuns; - this.collectRuns = []; - return arrRet; + CRunCollector.prototype.addToCollectReviewChange = function (oRun) { + if (this.collectReviewChange) { + this.collectReviewChange.addRun(oRun); + } }; - CTextElementRunIterator.prototype.getCurrentElement = function () + CRunCollector.prototype.addToCollectBackTextPr = function (oRun) { - return this.textElements[this.textElementIndex]; + if (this.collectTextPrChange) { + this.collectTextPrChange.addRunBack(oRun); + } }; - CTextElementRunIterator.prototype.next = function () + CRunCollector.prototype.addToCollectBackReviewChange = function (oRun) { - if (this.currentRun === this.textElements[0].firstRun && this.innerElementIndex === 0) - { - this.bNext = false; - } - if (this.bNext) - { - if (this.runElementIndex === 0) - { - do - { - this.runIndex -= 1; - this.currentRun = this.parent.Content[this.runIndex]; - this.addToCollectCurrentRun(this.currentRun); - } while (!(this.currentRun instanceof AscWord.CRun) || this.currentRun.Content.length === 0); - this.runElementIndex = this.currentRun.Content.length; - } - - this.runElementIndex -= 1; - this.innerElementIndex -= 1; - if (this.innerElementIndex < 0) - { - this.textElementIndex -= 1; - this.innerElementIndex = this.getCurrentElement().elements.length - 1; - } + if (this.collectReviewChange) { + this.collectReviewChange.addRunBack(oRun); } }; - CTextElementRunIterator.prototype.splitCurrentRun = function (nSplitIndex) + CRunCollector.prototype.addToCollect = function (oRun) { - nSplitIndex = typeof nSplitIndex === 'number' ? nSplitIndex : this.runElementIndex; - - const oRun = this.getRun(); - return oRun.Split2(nSplitIndex, this.parent, this.runIndex); + this.addToCollectReviewChange(oRun); + this.addToCollectTextPr(oRun); }; - - CTextElementRunIterator.prototype.skipTo = function (nTextElementIndex, nInnerTextElementIndex) + CRunCollector.prototype.addToCollectBack = function (oRun) { - if (this.textElements.length - 1 < nTextElementIndex || nTextElementIndex < 0 || this.textElementIndex < nTextElementIndex) - return false; - while (this.textElementIndex !== nTextElementIndex) - { - if (!this.check()) - return false; - - this.next(); - } - if (this.textElements[nTextElementIndex].elements.length - 1 < nInnerTextElementIndex || nInnerTextElementIndex < 0 || this.innerElementIndex < nInnerTextElementIndex) - return false; - - while (nInnerTextElementIndex !== this.innerElementIndex) - { - if (!this.check()) - return false; - - this.next(); - } - return true; + this.addToCollectBackTextPr(oRun); + this.addToCollectBackReviewChange(oRun); }; - CTextElementRunIterator.prototype.check = function () + CRunCollector.prototype.addToCollectCurrentRun = function () { - return this.bNext; + this.addToCollect(this.getRun()); }; - CTextElementRunIterator.prototype.getRunTextElement = function () - { - return this.getCurrentElement().elements[this.innerElementIndex]; + CRunCollector.prototype.nextRun = function () { + do { + this.runIndex -= 1; + } while (!(this.getRun() instanceof AscCommonWord.ParaRun) && this.runIndex >= 0 || this.getRun().Content.length === 0) + const oCurRun = this.getRun(); + if (oCurRun) { + this.addToCollectCurrentRun(); + this.runElementIndex = oCurRun.Content.length - 1; + } + }; + CRunCollector.prototype.getRun = function () { + const oContent = this.parent.Content; + return oContent[this.runIndex]; }; - CTextElementRunIterator.prototype.getRun = function () + CRunCollector.prototype.splitCurrentRun = function (bAfter) { - return this.currentRun; + const oRun = this.getRun(); + return oRun.Split2(bAfter ? this.runElementIndex + 1 : this.runElementIndex, this.parent, this.runIndex); }; window['AscCommonWord']["CompareBinary"] = window['AscCommonWord'].CompareBinary = CompareBinary; @@ -4122,5 +4366,4 @@ window['AscCommonWord'].CNode = CNode; window['AscCommonWord'].CTextElement = CTextElement; window['AscCommonWord'].isBreakWordElement = isBreakWordElement; - window['AscCommonWord'].CTextElementRunIterator = CTextElementRunIterator; })(); diff --git a/word/Editor/Document.js b/word/Editor/Document.js index 6ed5821e54..66a93ea0aa 100644 --- a/word/Editor/Document.js +++ b/word/Editor/Document.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -411,6 +411,8 @@ function CDocumentRecalculateState() this.UseRecursion = true; this.Continue = false; // параметр сигнализирующий, о том что нужно продолжить пересчет (для нерекурсивного метода) + + this.ScrollToTarget = true; } function CDocumentRecalculateHdrFtrPageCountState() @@ -1468,6 +1470,16 @@ CSelectedElementsInfo.prototype.GetField = function() { return this.m_oField; }; +CSelectedElementsInfo.prototype.GetFormField = function() +{ + for (let i = this.m_arrComplexFields.length - 1; i >= 0; --i) + { + let complexField = this.m_arrComplexFields[i]; + if (complexField.IsFormField()) + return complexField; + } + return null; +}; CSelectedElementsInfo.prototype.SetTable = function() { this.m_bTable = true; @@ -1644,6 +1656,16 @@ CSelectedElementsInfo.prototype.GetComplexFields = function() { return this.m_arrComplexFields; }; +CSelectedElementsInfo.prototype.GetComplexFieldFormCheckBox = function() +{ + for (let i = 0; i < this.m_arrComplexFields.length; ++i) + { + let complexField = this.m_arrComplexFields[i]; + if (complexField.IsFormCheckBox()) + return complexField; + } + return null; +}; CSelectedElementsInfo.prototype.GetAllTablesOfFigures = function() { var aTOF = []; @@ -1784,6 +1806,22 @@ CSelectedElementsInfo.prototype.IsFixedFormShape = function() return this.FixedFormShape; }; +let ACTION_FLAGS = { + RECALCULATE : 0x0001, + SCROLL_TO_TARGET : 0x0002, + UPDATE_SELECTION : 0x0004, + UPDATE_INTERFACE : 0x0008, + UPDATE_RULERS : 0x0010, + UPDATE_UNDO_REDO : 0x0020, + UPDATE_TRACKS : 0x0040 +}; + +ACTION_FLAGS.UPDATEALL = ACTION_FLAGS.UPDATE_SELECTION | ACTION_FLAGS.UPDATE_INTERFACE | ACTION_FLAGS.UPDATE_RULERS | ACTION_FLAGS.UPDATE_UNDO_REDO | ACTION_FLAGS.UPDATE_TRACKS; +ACTION_FLAGS.UPDATEALL_RECALCULATE = ACTION_FLAGS.UPDATEALL | ACTION_FLAGS.RECALCULATE; +ACTION_FLAGS.UPDATEALL_RECALCULATE_NOSCROLL = ACTION_FLAGS.UPDATEALL | ACTION_FLAGS.RECALCULATE; + +AscWord.ACTION_FLAGS = ACTION_FLAGS; + /** * Основной класс для работы с документом в Word. * @param DrawingDocument @@ -1812,7 +1850,7 @@ function CDocument(DrawingDocument, isMainLogicDocument) this.History.Set_LogicDocument(this); if (this.CollaborativeEditing) - this.CollaborativeEditing.m_oLogicDocument = this; + this.CollaborativeEditing.SetLogicDocument(this); if (DrawingDocument) DrawingDocument.m_oLogicDocument = this; @@ -1824,7 +1862,7 @@ function CDocument(DrawingDocument, isMainLogicDocument) //Props this.App = null; this.Core = null; - this.CustomProperties = null; + this.CustomProperties = new AscCommon.CCustomProperties(); this.CustomXmls = []; // Сначала настраиваем размеры страницы и поля @@ -1922,6 +1960,7 @@ function CDocument(DrawingDocument, isMainLogicDocument) UpdateRulers : false, UpdateUndoRedo : false, UpdateStates : false, + ScrollToTarget : true, Redraw : { Start : undefined, End : undefined @@ -2016,7 +2055,7 @@ function CDocument(DrawingDocument, isMainLogicDocument) this.SearchEngine = new AscCommonWord.CDocumentSearch(this); // Параграфы, в которых есть ошибки в орфографии (объект с ключом - Id параграфа) - this.Spelling = new AscCommonWord.CDocumentSpellChecker(); + this.Spelling = new AscWord.CDocumentSpellChecker(); // Дополнительные настройки this.ForceHideCCTrack = false; // Насильно запрещаем отрисовку рамок у ContentControl @@ -2145,6 +2184,9 @@ function CDocument(DrawingDocument, isMainLogicDocument) // Класс, управляющий полями this.FieldsManager = new CDocumentFieldsManager(); + + if (typeof AscWord.PermRangesManager !== "undefined") + this.PermRangesManager = new AscWord.PermRangesManager(this); // Класс, управляющий закладками if (typeof CBookmarksManager !== "undefined") @@ -2556,12 +2598,15 @@ CDocument.prototype.GetColorMap = function() * Начинаем новое действие, связанное с изменением документа * @param {number} nDescription * @param {object} [oSelectionState=null] - начальное состояние селекта, до начала действия + * @param {number} [flags=null] */ -CDocument.prototype.StartAction = function(nDescription, oSelectionState) +CDocument.prototype.StartAction = function(nDescription, oSelectionState, flags) { this.sendEvent("asc_onUserActionStart"); - var isNewPoint = this.History.Create_NewPoint(nDescription, oSelectionState); + let isNewPoint = false; + if (!this.Action.Start || this.IsMultiplePointAction()) + isNewPoint = this.History.Create_NewPoint(nDescription, oSelectionState); if (true === this.Action.Start) { @@ -2582,9 +2627,21 @@ CDocument.prototype.StartAction = function(nDescription, oSelectionState) this.Action.UpdateRulers = false; this.Action.UpdateUndoRedo = false; this.Action.UpdateTracks = false; + this.Action.ScrollToTarget = true; this.Action.Redraw.Start = undefined; this.Action.Redraw.End = undefined; this.Action.Additional = {}; + + if (undefined !== flags && null !== flags) + { + this.Action.Recalculate = !!(flags & ACTION_FLAGS.RECALCULATE); + this.Action.UpdateSelection = !!(flags & ACTION_FLAGS.UPDATE_SELECTION); + this.Action.UpdateInterface = !!(flags & ACTION_FLAGS.UPDATE_INTERFACE); + this.Action.UpdateRulers = !!(flags & ACTION_FLAGS.UPDATE_RULERS); + this.Action.UpdateUndoRedo = !!(flags & ACTION_FLAGS.UPDATE_UNDO_REDO); + this.Action.UpdateTracks = !!(flags & ACTION_FLAGS.UPDATE_TRACKS); + this.Action.ScrollToTarget = !!(flags & ACTION_FLAGS.SCROLL_TO_TARGET); + } } }; /** @@ -2595,6 +2652,21 @@ CDocument.prototype.IsActionStarted = function() { return this.Action.Start; }; +CDocument.prototype.IsPostActionLockCheck = function() +{ + return this.Action.CheckLock; +}; +CDocument.prototype.IsMultiplePointAction = function () +{ + switch (this.Action.Description) + { + case AscDFH.historydescription_BuilderScript: + case AscDFH.historydescription_Document_InsertTextFromFile: + return false; + default: + return true; + } +}; /** * Сообщаем документу, что потребуется пересчет * @param {boolean} [isForceRecalculate = false] Запускать ли пересчет прямо сейчас @@ -2618,7 +2690,7 @@ CDocument.prototype.UpdateSelection = function(isRemoveEmptySelection) this.private_UpdateSelection(); this.RemoveEmptySelection = true; } - else if (this.Action.Start) + else if (this.Action.Start || this.Action.UndoRedo) { this.Action.UpdateSelection = true; } @@ -2629,7 +2701,7 @@ CDocument.prototype.UpdateSelection = function(isRemoveEmptySelection) }; CDocument.prototype.UpdatePlaceholders = function () { - if (this.Action.Start) + if (this.Action.Start || this.Action.UndoRedo) { this.Action.UpdatePlaceholders = true; } @@ -2647,7 +2719,7 @@ CDocument.prototype.UpdateInterface = function(bSaveCurRevisionChange, isExterna { if (undefined !== bSaveCurRevisionChange || true === isExternalTrigger) this.private_UpdateInterface(bSaveCurRevisionChange, isExternalTrigger); - else if (this.Action.Start) + else if (this.Action.Start || this.Action.UndoRedo) this.Action.UpdateInterface = true; else this.private_UpdateInterface(); @@ -2657,7 +2729,7 @@ CDocument.prototype.UpdateInterface = function(bSaveCurRevisionChange, isExterna */ CDocument.prototype.UpdateRulers = function() { - if (this.Action.Start) + if (this.Action.Start || this.Action.UndoRedo) this.Action.UpdateRulers = true; else this.private_UpdateRulers(); @@ -2667,7 +2739,7 @@ CDocument.prototype.UpdateRulers = function() */ CDocument.prototype.UpdateUndoRedo = function() { - if (this.Action.Start) + if (this.Action.Start || this.Action.UndoRedo) this.Action.UpdateUndoRedo = true; else this.private_UpdateUndoRedo(); @@ -2677,7 +2749,7 @@ CDocument.prototype.UpdateUndoRedo = function() */ CDocument.prototype.UpdateTracks = function() { - if (this.Action.Start) + if (this.Action.Start || this.Action.UndoRedo) this.Action.UpdateTracks = true; else this.private_UpdateDocumentTracks(); @@ -2765,6 +2837,7 @@ CDocument.prototype.FinalizeAction = function(checkEmptyAction) if (arrChanges.length) this.RecalculateByChanges(arrChanges); + this.History.ClearRedo(); actionCompleted = false; } @@ -2834,7 +2907,8 @@ CDocument.prototype.FinalizeAction = function(checkEmptyAction) this.Action.UpdateUndoRedo = false; this.Action.UpdateTracks = false; this.Action.UpdatePlaceholders = false; - + this.Action.ScrollToTarget = true; + this.Action.UpdateStates = false; this.sendEvent("asc_onUserActionEnd"); @@ -2877,14 +2951,49 @@ CDocument.prototype.FinalizeUndoRedoAction = function() if (this.Action.Additional.ContentControlChange) this.private_FinalizeContentControlChange(); + this.Comments.CheckMarks(); + this.PermRangesManager.updateMarks(); + this.Action.UndoRedo = false; this.Action.Additional = {}; + + // TODO: Перенести в общий метод + this.Action.UpdateStates = true; + + if (this.Action.UpdateInterface) + this.private_UpdateInterface(); + + if (this.Action.UpdateSelection) + this.private_UpdateSelection(); + + if (this.Action.UpdateRulers) + this.private_UpdateRulers(); + + if (this.Action.UpdateUndoRedo) + this.private_UpdateUndoRedo(); + + if (this.Action.UpdateTracks) + this.private_UpdateDocumentTracks(); + + if (this.Action.UpdatePlaceholders) + this.private_UpdatePlaceholders(); + + this.Action.UpdateSelection = false; + this.Action.UpdateInterface = false; + this.Action.UpdateRulers = false; + this.Action.UpdateUndoRedo = false; + this.Action.UpdateTracks = false; + this.Action.UpdatePlaceholders = false; + this.Action.ScrollToTarget = true; + + this.Action.UpdateStates = false; }; CDocument.prototype.private_CheckAdditionalOnFinalize = function() { this.Action.Additional.Start = true; this.Comments.CheckMarks(); + this.PermRangesManager.updateMarks(); if (this.Action.Additional.TrackMove) this.private_FinalizeRemoveTrackMove(); @@ -2916,6 +3025,9 @@ CDocument.prototype.private_CheckAdditionalOnFinalize = function() if (this.Action.Additional.ContentControlChange) this.private_FinalizeContentControlChange(); + if (this.Action.Additional.DeletedAnnotationMarks) + this.private_FinalizeDeletingAnnotationsMarks(); + if (this.OFormDocument) this.OFormDocument.onEndAction(); @@ -3135,6 +3247,53 @@ CDocument.prototype.private_FinalizeContentControlChange = function() this.Api.asc_OnChangeContentControl(this.Action.Additional.ContentControlChange[sId]); } }; +CDocument.prototype.private_FinalizeDeletingAnnotationsMarks = function() +{ + let docState = this.SaveDocumentState(); + + let permMarks = this.Action.Additional.DeletedAnnotationMarks.perm; + for (let rangeId in permMarks) + { + let info = permMarks[rangeId]; + if (info.start && info.end) + { + this.CollaborativeEditing.Remove_DocumentPosition(info.start.docPos); + this.CollaborativeEditing.Remove_DocumentPosition(info.end.docPos); + this.PermRangesManager.checkRange(rangeId); + continue; + } + + let docPos = info.start ? info.start.docPos : info.end.docPos; + let mark = info.start ? info.start.mark : info.end.mark; + + let actualMark = info.start ? this.PermRangesManager.getStartMark(rangeId) : this.PermRangesManager.getEndMark(rangeId); + if ((actualMark && actualMark !== mark) || mark.isUseInDocument()) + { + this.CollaborativeEditing.Remove_DocumentPosition(docPos); + this.PermRangesManager.checkRange(rangeId); + continue; + } + + this.CollaborativeEditing.Update_DocumentPosition(docPos); + let lastClass = docPos[docPos.length - 1].Class; + + if (lastClass instanceof AscWord.Paragraph || lastClass instanceof AscWord.ParagraphContentWithParagraphLikeContent) + { + let newPosition = Math.min(lastClass.GetElementsCount(), Math.max(docPos[docPos.length - 1].Position, 0)); + lastClass.AddToContent(newPosition, mark); + } + else + { + // TODO: Сделать ветку, если последний элемент Document/DocumentContent + // Ничего не делаем, отрезок должен удалиться на PermRangesManager.checkRange + } + + this.CollaborativeEditing.Remove_DocumentPosition(docPos); + this.PermRangesManager.checkRange(rangeId); + } + + this.LoadDocumentState(docState); +}; CDocument.prototype.private_FinalizeCheckFocusAndBlurCC = function() { @@ -3239,7 +3398,7 @@ CDocument.prototype.private_Recalculate = function(_RecalcData, isForceStrictRec this.private_ClearSearchOnRecalculate(); // Обновляем позицию курсора - this.NeedUpdateTarget = true; + this.NeedUpdateTarget = this.Action.Start ? this.Action.ScrollToTarget : true; // Увеличиваем номер пересчета this.RecalcId++; @@ -3266,6 +3425,9 @@ CDocument.prototype.private_Recalculate = function(_RecalcData, isForceStrictRec var RecalcData = History.Get_RecalcData(_RecalcData); History.Reset_RecalcIndex(); + + if (RecalcData.ResetCache) + this.Reset_RecalculateCache(); this.DrawingObjects.recalculate(RecalcData.Drawings); @@ -3502,6 +3664,7 @@ CDocument.prototype.private_Recalculate = function(_RecalcData, isForceStrictRec this.FullRecalc.StartTime = performance.now(); this.FullRecalc.TimerStartTime = this.FullRecalc.StartTime; this.FullRecalc.TimerStartPage = StartPage; + this.FullRecalc.ScrollToTarget = true; // Если у нас произошли какие-либо изменения с основной частью документа, тогда начинаем его пересчитывать сразу, @@ -4535,9 +4698,9 @@ CDocument.prototype.Recalculate_PageColumn = function() else this.CurPage = PageIndex; // TODO: переделать } - - if (docpostype_Content === this.GetDocPosType() && ((true !== this.Selection.Use && Index === this.CurPos.ContentPos + 1) || (true === this.Selection.Use && Index === (Math.max(this.Selection.EndPos, this.Selection.StartPos) + 1)))) - this.private_UpdateCursorXY(true, true); + + if (docpostype_Content === this.GetDocPosType() && ((true !== this.Selection.Use && Index === this.CurPos.ContentPos + 1) || (true === this.Selection.Use && Index === (Math.max(this.Selection.EndPos, this.Selection.StartPos) + 1)))) + this.UpdateCursorOnRecalculate(); } if (Index >= Count) @@ -5116,11 +5279,14 @@ CDocument.prototype.private_RecalculateFlowParagraph = function(RecalcIn if (FrameH + FrameY > Page_H) FrameY = Page_H - FrameH; - - // TODO: Пересмотреть, почему эти погрешности возникают - // Избавляемся от погрешности - FrameY += 0.001; - FrameH -= 0.002; + + // Начинаем рамку с позиции начала следующего твипса, чтобы не было пересечений с объектами, заканчивающимися + // на текущем твипсе + // TODO: Проверить, нужно ли уменьшать размер рамки на 2 твипса (ранее уменьшали на 0.002, когда исправляли проблему с пересечением объектов в обтекании) + let twFrameY = AscCommon.MMToTwips(AscCommon.CorrectMMToTwips(FrameY)); + + FrameY = AscCommon.TwipsToMM(twFrameY + 1); + FrameH -= AscCommon.TwipsToMM(2); if (FrameY < 0) FrameY = 0; @@ -5474,6 +5640,8 @@ CDocument.prototype.CheckViewPosition = function() return; } + this.FullRecalc.ScrollToTarget = false; + let anchorPos = this.ViewPosition.AnchorPos; let alignTop = this.ViewPosition.AlignTop; let distance = this.ViewPosition.Distance; @@ -5525,7 +5693,9 @@ CDocument.prototype.CheckViewPosition = function() else this.DrawingDocument.m_oWordControl.ScrollToAbsolutePosition(anchor.X, anchor.Y + distance, anchor.Page, true); + this.Api.asc_LockScrollToTarget(true); this.RecalculateCurPos(); + this.Api.asc_LockScrollToTarget(false); }; CDocument.prototype.RecalculateCurPos = function() { @@ -5561,6 +5731,10 @@ CDocument.prototype.Set_TargetPos = function(X, Y, PageNum) this.TargetPos.Y = Y; this.TargetPos.PageNum = PageNum; }; +CDocument.prototype.Get_TargetPos = function() +{ + return this.TargetPos; +}; /** * Запрос на перерисовку заданного отрезка страниц. * @param StartPage @@ -5613,10 +5787,13 @@ CDocument.prototype.Draw = function(nPageInd this.HdrFtr.Draw(nPageIndex, pGraphics); // Рисуем содержимое документа на данной странице - if (docpostype_HdrFtr === this.CurPos.Type) - pGraphics.put_GlobalAlpha(true, 0.4); - else if (!this.IsViewMode()) - pGraphics.End_GlobalAlpha(); + if (pGraphics.isSupportEditFeatures()) + { + if (docpostype_HdrFtr === this.CurPos.Type) + pGraphics.put_GlobalAlpha(true, 0.4); + else if (!this.IsViewMode()) + pGraphics.End_GlobalAlpha(); + } this.DrawingObjects.drawBehindDoc(nPageIndex, pGraphics); @@ -8048,7 +8225,7 @@ CDocument.prototype.CheckPosInSelection = function(X, Y, PageAbs, NearPos) */ CDocument.prototype.SelectAll = function() { - if (this.IsFillingFormMode()) + if (this.IsFillingFormMode() && this.Api.isTargetHandMode()) { var oSelectedElementsInfo = this.GetSelectedElementsInfo(); @@ -8284,15 +8461,11 @@ CDocument.prototype.OnEndTextDrag = function(NearPos, bCopy) arrParagraphs[0].AddTrackMoveMark(true, true, this.TrackMoveId); } } - - // Если надо удаляем выделенную часть (пересчет отключаем на время удаления) - if (true !== bCopy) - { - this.TurnOff_Recalculate(); - this.TurnOff_InterfaceEvents(); - this.Remove(1, false, false, true); - this.TurnOn_Recalculate(false); - this.TurnOn_InterfaceEvents(false); + + if (!bCopy) + { + // TODO: Проверить, зачем тут посылается isOnAddText=true. Когда выделены ячейки таблицы точно нужно посылать false + this.Remove(1, false, false, !this.IsTableCellSelection()); if (false === Para.IsUseInDocument()) { @@ -8614,6 +8787,21 @@ CDocument.prototype.IsInContentControl = function(X, Y, nPageAbs) return false; }; +/** + * Получаем элемент рана по заданной позиции + * @param x + * @param y + * @param pageAbs + * @returns {?AscWord.CRunElementBase} + */ +CDocument.prototype.GetRunElementByXY = function(x, y, pageAbs) +{ + let anchor = this.Get_NearestPos(pageAbs, x, y); + if (!anchor || !anchor.Paragraph) + return null; + + return anchor.Paragraph.GetRunElementByXY(x, y, anchor.Internal.Page); +}; CDocument.prototype.IsUseInDocument = function(Id) { if (!this.MainDocument) @@ -8770,6 +8958,9 @@ CDocument.prototype.OnKeyDown = function(e) } case Asc.c_oAscDocumentShortcutType.EditSelectAll: { + if (this.Api.isTargetHandMode() && !this.IsInFormField()) + this.Api.asc_setViewerTargetType("select"); + this.SelectAll(); bUpdateSelection = false; bRetValue = keydownresult_PreventAll; @@ -8963,7 +9154,7 @@ CDocument.prototype.OnKeyDown = function(e) } case Asc.c_oAscDocumentShortcutType.EditRedo: { - if (this.CanEdit() || this.IsEditCommentsMode() || this.IsFillingFormMode()) + if (!this.IsViewMode() && !this.IsViewModeInReview()) this.Document_Redo(); bRetValue = keydownresult_PreventAll; @@ -8971,7 +9162,7 @@ CDocument.prototype.OnKeyDown = function(e) } case Asc.c_oAscDocumentShortcutType.EditUndo: { - if ((this.CanEdit() || this.IsEditCommentsMode() || this.IsFillingFormMode()) && !this.IsViewModeInReview()) + if (!this.IsViewMode() && !this.IsViewModeInReview()) this.Document_Undo(); bRetValue = keydownresult_PreventAll; @@ -10169,6 +10360,21 @@ CDocument.prototype.CorrectEnterText = function(oldValue, newValue) return true; }; +CDocument.prototype.canEnterText = function() +{ + if (this.IsSelectionUse() && !this.IsTextSelectionUse()) + return false; + + if (this.Api.isViewMode) + return false; + + if (this.Api.isRestrictionComments() || this.Api.isRestrictionView()) + return this._checkPermRangeForCurrentSelection(); + else if (this.IsFillingFormMode()) + return this.IsInFormField(false, true); + + return this.CanEdit(); +}; CDocument.prototype.OnMouseDown = function(e, X, Y, PageIndex) { if (PageIndex < 0) @@ -10330,6 +10536,7 @@ CDocument.prototype.OnMouseDown = function(e, X, Y, PageIndex) var oSelectedContent = this.GetSelectedElementsInfo(); var oInlineSdt = oSelectedContent.GetInlineLevelSdt(); var oBlockSdt = oSelectedContent.GetBlockLevelSdt(); + let runElement = this.GetRunElementByXY(X, Y, this.CurPage); if ((oInlineSdt && oInlineSdt.IsCheckBox()) || (oBlockSdt && oBlockSdt.IsCheckBox())) { @@ -10338,7 +10545,11 @@ CDocument.prototype.OnMouseDown = function(e, X, Y, PageIndex) { this.CurPos.SetCC(oCC); oCC.SkipSpecialContentControlLock(true); - if (!this.IsSelectionLocked(AscCommon.changestype_Paragraph_Content, null, true, this.IsFillingFormMode() && this.CheckOFormUserMaster(oCC))) + if (!this.IsSelectionLocked(AscCommon.changestype_Paragraph_Content, { + Type : AscCommon.changestype_2_Element_and_Type, + Element : oCC, + CheckType : AscCommon.changestype_Paragraph_Content + }, true, this.IsFillingFormMode() && this.CheckOFormUserMaster(oCC))) { this.RemoveTextSelection(); this.StartAction(); @@ -10351,6 +10562,28 @@ CDocument.prototype.OnMouseDown = function(e, X, Y, PageIndex) } this.UpdateSelection(); } + else if (this.IsFillingFormMode() + && runElement + && runElement.Type === para_FieldChar + && runElement.IsFormField()) + { + let cfCheckBox = runElement.GetComplexField(); + if (cfCheckBox + && cfCheckBox.IsFormFieldEnabled() + && !this.IsSelectionLocked(AscCommon.changestype_Paragraph_Content, { + Type : AscCommon.changestype_2_ElementsArray_and_Type, + Elements : cfCheckBox.GetRelatedParagraphs(), + CheckType : AscCommon.changestype_Paragraph_Content + }, true, this.IsFillingFormMode())) + { + this.RemoveTextSelection(); + this.StartAction(); + cfCheckBox.ToggleFormCheckBox(); + this.Recalculate(); + this.UpdateTracks(); + this.FinalizeAction(); + } + } if (this.IsFillingFormMode() && (oBlockSdt || oInlineSdt)) { @@ -11178,6 +11411,7 @@ CDocument.prototype.Document_AddPageNum = function(AlignV, AlignH) if (PageIndex < 0) PageIndex = this.CurPage; + this.RemoveSelection(); this.Create_HdrFtrWidthPageNum(PageIndex, AlignV, AlignH); } else @@ -12448,36 +12682,65 @@ CDocument.prototype.Get_ColumnsProps = function() return ColumnsPr; }; - - +CDocument.prototype.GetWatermark = function() +{ + if (this.CurPage < this.Pages.length) + { + let pageInfo = this.Get_SectionPageNumInfo(this.CurPage); + let header = this.Get_SectionHdrFtr(this.CurPage, pageInfo.bFirst, pageInfo.bFirst.bEven).Header; + if (header) + return header.FindWatermark(); + + return null; + } + else + { + // Case when the document wasn't calculated + let sectPr = this.SectionsInfo.Get(0).SectPr; + let header = sectPr.Get_Header_Default(); + if (header) + return header.FindWatermark(); + + return null; + } +}; CDocument.prototype.GetWatermarkProps = function() { - var SectionPageInfo = this.Get_SectionPageNumInfo(this.CurPage); - var bFirst = SectionPageInfo.bFirst; - var bEven = SectionPageInfo.bEven; - var HdrFtr = this.Get_SectionHdrFtr(this.CurPage, false, false); - var Header = HdrFtr.Header; - var oProps; - if (null === Header) - { - oProps = new Asc.CAscWatermarkProperties(); - oProps.put_Type(Asc.c_oAscWatermarkType.None); - oProps.put_Api(this.Api); - return oProps; - } - var oWatermark = Header.FindWatermark(); - if(oWatermark) - { - oProps = oWatermark.GetWatermarkProps(); - oProps.put_Api(this.Api); - return oProps; - } - oProps = new Asc.CAscWatermarkProperties(); - oProps.put_Type(Asc.c_oAscWatermarkType.None); - oProps.put_Api(this.Api); - return oProps; + let watermark = this.GetWatermark(); + + let props = new Asc.CAscWatermarkProperties(); + props.put_Api(this.Api); + if (watermark) + props = watermark.GetWatermarkProps(); + else + props.put_Type(Asc.c_oAscWatermarkType.None); + + return props; +}; +CDocument.prototype.GetHeaderForWatermark = function() +{ + if (this.CurPage < this.Pages.length) + { + let pageInfo = this.Get_SectionPageNumInfo(this.CurPage); + let header = this.Get_SectionHdrFtr(this.CurPage, pageInfo.bFirst, pageInfo.bFirst.bEven).Header; + if (header) + return header; + + return this.Create_SectionHdrFtr(hdrftr_Header, this.CurPage); + } + else + { + // Case when the document wasn't calculated + let sectPr = this.SectionsInfo.Get(0).SectPr; + let header = sectPr.Get_Header_Default(); + if (header) + return header; + + header = new CHeaderFooter(this.HdrFtr, this, this.DrawingDocument, hdrftr_Header); + sectPr.Set_Header_Default(header); + return header; + } }; - CDocument.prototype.SetWatermarkProps = function(oProps) { if (!this.CanPerformAction()) @@ -12486,42 +12749,31 @@ CDocument.prototype.SetWatermarkProps = function(oProps) this.StartAction(AscDFH.historydescription_Document_AddWatermark); this.SetWatermarkPropsAction(oProps); this.Recalculate(); - this.Document_UpdateInterfaceState(); - this.Document_UpdateSelectionState(); - this.Document_UpdateRulersState(); + this.UpdateInterface(); + this.UpdateSelection(); + this.UpdateRulers(); this.FinalizeAction(true); }; CDocument.prototype.SetWatermarkPropsAction = function(oProps) { - const SectionPageInfo = this.Get_SectionPageNumInfo(this.CurPage); - const bFirst = SectionPageInfo.bFirst; - const bEven = SectionPageInfo.bEven; - const HdrFtr = this.Get_SectionHdrFtr(this.CurPage, bFirst, bEven); - let Header = HdrFtr.Header; - if(null === Header) - { - if(Asc.c_oAscWatermarkType.None === oProps.get_Type()) - { - this.FinalizeAction(true); - return; - } - Header = this.Create_SectionHdrFtr(hdrftr_Header, this.CurPage); - } - let oWatermark = Header.FindWatermark(); - if(oWatermark) - { - if(oWatermark.GraphicObj.selected) - { - this.RemoveSelection(true); - } - oWatermark.Remove_FromDocument(false); - } - oWatermark = this.DrawingObjects.createWatermark(oProps); - if(oWatermark) - { + let watermark = this.GetWatermark(); + if (watermark) + { + if (watermark.GraphicObj.selected) + this.RemoveSelection(true); + watermark.Remove_FromDocument(false); + } + + if (Asc.c_oAscWatermarkType.None === oProps.get_Type()) + return; + + let oWatermark = this.DrawingObjects.createWatermark(oProps); + if (oWatermark) + { + let header = this.GetHeaderForWatermark(); const oDocState = this.Get_SelectionState2(); - const oContent = Header.Content; + const oContent = header.GetContent(); let oWatermarkCC = null; const aAllContentControls = oContent.GetAllContentControls(); const nCount = aAllContentControls.length; @@ -12895,12 +13147,16 @@ CDocument.prototype.Refresh_RecalcData = function(oData) case AscDFH.historyitem_Document_MathSettings: case AscDFH.historyitem_Document_Settings_GutterAtTop: case AscDFH.historyitem_Document_Settings_MirrorMargins: + { + nChangePos = 0; + break; + } case AscDFH.historyitem_Document_Settings_AutoHyphenation: case AscDFH.historyitem_Document_Settings_ConsecutiveHyphenLimit: case AscDFH.historyitem_Document_Settings_DoNotHyphenateCaps: case AscDFH.historyitem_Document_Settings_HyphenationZone: { - nChangePos = 0; + this.History.RecalcData_Add({Type : AscDFH.historyitem_recalctype_FromStart}); break; } } @@ -13134,73 +13390,255 @@ CDocument.prototype.IsCursorInHyperlink = function(bCheckEnd) * Данная функция вызывается в основной функции проверки лока совместного редактирования, но есть действия, которые * не требуют проверки лока совместки, в таких случая перед выполнением действия надо вызывать эту проверку * @param [isIgnoreCanEditFlag=false] + * @param [checkType=undefined] + * @param [additionalData=undefined] * @returns {boolean} */ -CDocument.prototype.CanPerformAction = function(isIgnoreCanEditFlag) +CDocument.prototype.CanPerformAction = function(isIgnoreCanEditFlag, checkType, additionalData) { - return !((!this.CanEdit() && true !== isIgnoreCanEditFlag) || (true === this.CollaborativeEditing.Get_GlobalLock())); + return (this.IsPermRangeEditing(checkType, additionalData) || !((!this.CanEdit() && true !== isIgnoreCanEditFlag) || (true === this.CollaborativeEditing.Get_GlobalLock()))); }; -CDocument.prototype.Document_Is_SelectionLocked = function(CheckType, AdditionalData, DontLockInFastMode, isIgnoreCanEditFlag, fCallback) +/** + * Проверяем, что действие с заданным типом произойдет в разрешенной области + * @param changesType + * @param additionalData + * @returns {boolean} + */ +CDocument.prototype.IsPermRangeEditing = function(changesType, additionalData) { - if (!this.CanPerformAction(isIgnoreCanEditFlag)) - { - if (fCallback) - fCallback(true); - - return true; - } - - this.CollaborativeEditing.OnStart_CheckLock(); - - this.private_DocumentIsSelectionLocked(CheckType); - - if (AdditionalData) + if (this.Api.isViewMode || !(this.Api.isRestrictionComments() || this.Api.isRestrictionView())) + return false; + + if (AscCommon.changestype_None !== changesType) { - if (undefined !== AdditionalData.length) + if (AscCommon.changestype_Table_Properties === changesType || AscCommon.changestype_Table_RemoveCells === changesType) { - for (var nIndex = 0, nCount = AdditionalData.length; nIndex < nCount; ++nIndex) - { - this.private_IsSelectionLockedAdditional(AdditionalData[nIndex]); - } + let currentTable = this.GetCurrentTable(); + if (!currentTable || !currentTable.isWholeElementInPermRange()) + return false; + } + else if (AscCommon.changestype_Paragraph_Properties === changesType) + { + let selectedParagraphs = this.GetSelectedParagraphs(); + if (!this._checkPermRangeForCurrentSelection()) + return false; + + if (0 !== selectedParagraphs.length && !this._checkPermRangeForElement(selectedParagraphs[0])) + return false; + + if (selectedParagraphs.length > 1 && !this._checkPermRangeForElement(selectedParagraphs[selectedParagraphs.length - 1])) + return false; } else { - this.private_IsSelectionLockedAdditional(AdditionalData); + if (!this._checkChangesTypeForPermRangeForSelection(changesType)) + return false; + + if (!this._checkPermRangeForCurrentSelection()) + return false; } } - - var isLocked = this.CollaborativeEditing.OnEnd_CheckLock(DontLockInFastMode, fCallback); - - if (true === isLocked && !fCallback) - { - this.UpdateSelection(); - this.UpdateInterface(); - } - - return isLocked; -}; -CDocument.prototype.private_IsSelectionLockedAdditional = function(oAdditionalData) -{ - if (oAdditionalData) + + if (additionalData) { - if (AscCommon.changestype_2_InlineObjectMove === oAdditionalData.Type) + if (AscCommon.changestype_2_InlineObjectMove === additionalData.Type) { - var PageNum = oAdditionalData.PageNum; - var X = oAdditionalData.X; - var Y = oAdditionalData.Y; - - var NearestPara = this.Get_NearestPos(PageNum, X, Y).Paragraph; - NearestPara.Document_Is_SelectionLocked(AscCommon.changestype_Document_Content); + // TODO: Надо проверить не целиком параграф, а только то место, куда происходит вставка + let pageNum = additionalData.PageNum; + let x = additionalData.X; + let y = additionalData.Y; + let para = this.Get_NearestPos(pageNum, x, y).Paragraph; + return this._checkPermRangeForElement(para); } - else if (AscCommon.changestype_2_HdrFtr === oAdditionalData.Type) + else if (AscCommon.changestype_2_Element_and_Type === additionalData.Type) { - this.HdrFtr.Document_Is_SelectionLocked(AscCommon.changestype_HdrFtr); + return (this._checkChangesTypeForPermRange(additionalData.CheckType) + && this._checkPermRangeForElement(additionalData.Element)); } - else if (AscCommon.changestype_2_Comment === oAdditionalData.Type) + else if (AscCommon.changestype_2_ElementsArray_and_Type === additionalData.Type) { - this.Comments.Document_Is_SelectionLocked(oAdditionalData.Id); + if (!this._checkChangesTypeForPermRange(additionalData.CheckType)) + return false; + + for (let i = 0, count = additionalData.Elements.length; i < count; ++i) + { + if (!this._checkPermRangeForElement(additionalData.Elements[i])) + return false; + } + return true; } - else if (AscCommon.changestype_2_Element_and_Type === oAdditionalData.Type) + else if (AscCommon.changestype_2_Element_and_Type_Array === additionalData.Type) + { + for (let i = 0, count = Math.min(additionalData.Elements.length, additionalData.CheckTypes.length); i < count; ++i) + { + if (!this._checkChangesTypeForPermRange(additionalData.CheckTypes[i])) + return false; + + if (!this._checkPermRangeForElement(additionalData.Elements[i])) + return false; + } + return true; + } + else if (AscCommon.changestype_2_AdditionalTypes === additionalData.Type) + { + if (!this._checkPermRangeForCurrentSelection()) + return false; + + for (let i = 0, count = additionalData.Types.length; i < count; ++i) + { + if (!this._checkChangesTypeForPermRange(additionalData.Types[i])) + return false; + } + return true; + } + else + { + return false; + } + } + + return true; +}; +CDocument.prototype._checkActionForPermRange = function(changesType, additionalData) +{ + if (undefined === changesType || (AscCommon.changestype_None === changesType && undefined === additionalData)) + return false; + + if (AscCommon.changestype_None !== changesType && !this._checkChangesTypeForPermRange(changesType)) + return false; + + return (!additionalData || !this._checkChangesTypeForPermRange(additionalData.CheckType)) +}; +CDocument.prototype._checkChangesTypeForPermRange = function(changesType) +{ + // TODO: Пока запрещаем любые действия с автофигурами + // Разрешаем только действия, связанные с текущим выделением, либо выбранным элементом, любые глобальные изменения, + // например, изменения секции или настроек документа - запрещаем + return (AscCommon.changestype_Paragraph_Content === changesType + || AscCommon.changestype_Paragraph_Properties === changesType + || AscCommon.changestype_Paragraph_AddText === changesType + || AscCommon.changestype_Paragraph_TextProperties === changesType + || AscCommon.changestype_Document_Content === changesType + || AscCommon.changestype_Document_Content_Add === changesType + || AscCommon.changestype_Table_Properties === changesType + || AscCommon.changestype_Table_RemoveCells === changesType + || AscCommon.changestype_ContentControl_Remove === changesType + || AscCommon.changestype_ContentControl_Properties === changesType + || AscCommon.changestype_ContentControl_Add === changesType + || AscCommon.changestype_Remove === changesType + || AscCommon.changestype_Delete === changesType + || AscCommon.changestype_Text_Props === changesType); +}; +CDocument.prototype._checkChangesTypeForPermRangeForSelection = function(changesType) +{ + return (AscCommon.changestype_Paragraph_Content === changesType + || AscCommon.changestype_Paragraph_Properties === changesType + || AscCommon.changestype_Paragraph_AddText === changesType + || AscCommon.changestype_Paragraph_TextProperties === changesType + || AscCommon.changestype_Document_Content === changesType + || AscCommon.changestype_Document_Content_Add === changesType + || AscCommon.changestype_Remove === changesType + || AscCommon.changestype_Delete === changesType + || AscCommon.changestype_Text_Props === changesType); +}; +CDocument.prototype._checkPermRangeForCurrentSelection = function() +{ + // TODO: Пока запрещаем любые действия, связанные с выделением автофигур + if (this.IsTextSelectionUse()) + { + if (true !== this.Selection.Use || this.Controller !== this.LogicDocumentController) + return; + + // Надо проверить, что у нас начало и конец попали хотя бы в один общий промежуток + let startPos = this.GetContentPosition(true, true); + let endPos = this.GetContentPosition(true, false); + + let startRanges = this.GetPermRangesByContentPos(startPos); + let endRanges = this.GetPermRangesByContentPos(endPos); + return AscWord.PermRangesManager.isInPermRange(startRanges, endRanges); + } + else if (!this.IsSelectionUse()) + { + let currentPos = this.GetContentPosition(); + return this.GetPermRangesByContentPos(currentPos).length > 0; + } + + return false; +}; +CDocument.prototype._checkPermRangeForElement = function(element) +{ + if (!element + && !(element instanceof AscWord.Paragraph) + && !(element instanceof AscWord.Table) + && !(element instanceof AscWord.BlockLevelSdt)) + return false; + + return element.isWholeElementInPermRange(); +}; +CDocument.prototype.Document_Is_SelectionLocked = function(CheckType, AdditionalData, DontLockInFastMode, isIgnoreCanEditFlag, fCallback) +{ + if (this.IsActionStarted() && this.IsPostActionLockCheck()) + return false; + + if (!this.CanPerformAction(isIgnoreCanEditFlag, CheckType, AdditionalData)) + { + if (fCallback) + fCallback(true); + + return true; + } + + this.CollaborativeEditing.OnStart_CheckLock(); + + this.private_DocumentIsSelectionLocked(CheckType); + + if (AdditionalData) + { + if (undefined !== AdditionalData.length) + { + for (var nIndex = 0, nCount = AdditionalData.length; nIndex < nCount; ++nIndex) + { + this.private_IsSelectionLockedAdditional(AdditionalData[nIndex]); + } + } + else + { + this.private_IsSelectionLockedAdditional(AdditionalData); + } + } + + var isLocked = this.CollaborativeEditing.OnEnd_CheckLock(DontLockInFastMode, fCallback); + + if (true === isLocked && !fCallback) + { + this.UpdateSelection(); + this.UpdateInterface(); + } + + return isLocked; +}; +CDocument.prototype.private_IsSelectionLockedAdditional = function(oAdditionalData) +{ + if (oAdditionalData) + { + if (AscCommon.changestype_2_InlineObjectMove === oAdditionalData.Type) + { + var PageNum = oAdditionalData.PageNum; + var X = oAdditionalData.X; + var Y = oAdditionalData.Y; + + var NearestPara = this.Get_NearestPos(PageNum, X, Y).Paragraph; + NearestPara.Document_Is_SelectionLocked(AscCommon.changestype_Document_Content); + } + else if (AscCommon.changestype_2_HdrFtr === oAdditionalData.Type) + { + this.HdrFtr.Document_Is_SelectionLocked(AscCommon.changestype_HdrFtr); + } + else if (AscCommon.changestype_2_Comment === oAdditionalData.Type) + { + this.Comments.Document_Is_SelectionLocked(oAdditionalData.Id); + } + else if (AscCommon.changestype_2_Element_and_Type === oAdditionalData.Type) { oAdditionalData.Element.Document_Is_SelectionLocked(oAdditionalData.CheckType, false); } @@ -13308,6 +13746,13 @@ CDocument.prototype.private_DocumentIsSelectionLocked = function(CheckType) this.Core.Lock.Check(this.Core.Get_Id()); } } + else if(AscCommon.changestype_CustomPr === CheckType) + { + if(this.CustomProperties) + { + this.CustomProperties.Lock.Check(this.CustomProperties.Get_Id()); + } + } else if (AscCommon.changestype_DocumentProtection === CheckType) { if (this.Settings.DocumentProtection) @@ -13513,10 +13958,11 @@ CDocument.prototype.Set_SelectionState2 = function(State) //---------------------------------------------------------------------------------------------------------------------- CDocument.prototype.AddComment = function(CommentData, isForceGlobal) { + let Comment; if (true === isForceGlobal || true != this.CanAddComment()) { CommentData.Set_QuoteText(null); - var Comment = new AscCommon.CComment(this.Comments, CommentData); + Comment = new AscCommon.CComment(this.Comments, CommentData); this.Comments.Add(Comment); // Обновляем информацию для Undo/Redo @@ -13543,7 +13989,7 @@ CDocument.prototype.AddComment = function(CommentData, isForceGlobal) } CommentData.Set_QuoteText(QuotedText); - var Comment = new AscCommon.CComment(this.Comments, CommentData); + Comment = new AscCommon.CComment(this.Comments, CommentData); this.Comments.Add(Comment); this.Controller.AddComment(Comment); @@ -13574,7 +14020,7 @@ CDocument.prototype.EditComment = function(Id, CommentData) CDocument.prototype.RemoveComment = function(Id, bSendEvent, bRecalculate) { if (null === Id) - return; + return false; if (true === this.Comments.Remove_ById(Id)) { @@ -13587,7 +14033,11 @@ CDocument.prototype.RemoveComment = function(Id, bSendEvent, bRecalculate) if (true === bSendEvent) this.Api.sync_RemoveComment(Id); + + return true; } + + return false; }; CDocument.prototype.CanAddComment = function() { @@ -14365,6 +14815,20 @@ CDocument.prototype.private_UpdateCurPage = function() this.private_CheckCurPage(); }; +CDocument.prototype.UpdateCursorOnRecalculate = function() +{ + let isLockScroll = false; + if ((this.FullRecalc.Id && !this.FullRecalc.ScrollToTarget) || this.ViewPosition) + isLockScroll = true; + + if (isLockScroll) + this.Api.asc_LockScrollToTarget(true); + + this.private_UpdateCursorXY(true, true); + + if (isLockScroll) + this.Api.asc_LockScrollToTarget(false); +}; CDocument.prototype.private_UpdateCursorXY = function(bUpdateX, bUpdateY, isUpdateTarget) { if (undefined === isUpdateTarget) @@ -15029,7 +15493,7 @@ CDocument.prototype.GetAllNumberedParagraphs = function() var oLvl = oNum.GetLvl(nLvl); if(oLvl && oLvl.IsNumbered()) { - oProps.NumPr.push(new CNumPr(oNum.GetId(), nLvl)); + oProps.NumPr.push(new AscWord.NumPr(oNum.GetId(), nLvl)); } } } @@ -15328,7 +15792,9 @@ CDocument.prototype.private_StoreViewPositions = function(state) } // TODO: Решить проблему, когда видно больше 2 страниц и курсор находится на средней странице - if (-1 !== cursorPage + // Использовать положение курсора оказалось не всегда удачно, т.к. при многократном быстром расчете курсор может + // может попасть в поле экрана и тогда скролл потянется сразу за ним, что может быть неверным + if (false && -1 !== cursorPage && ((viewPort[0].Page === cursorPage && cursorY + cursorH > viewPort[0].Y) || (viewPort[1].Page === cursorPage && cursorY < viewPort[1].Y))) { @@ -15399,8 +15865,9 @@ CDocument.prototype.private_StoreViewPositions = function(state) _xyInfo = this.private_GetXYByDocumentPosition(_anchorPos); } - if (y >= y1) - _anchorPos = this.GetDocumentPositionByXY(pageIndex + 1, 0, 0); + // TODO: Если подбираем другую точку, то нужно у данной страницы запросить её позицию во view port (расстояние до верха экрана) + // if (y >= y1) + // _anchorPos = this.GetDocumentPositionByXY(pageIndex + 1, 0, 0); } if (_anchorPos) @@ -15417,7 +15884,7 @@ CDocument.prototype.private_StoreViewPositions = function(state) state.AnchorDistance = xyInfo.Y - viewPort[0].Y; } }; -CDocument.prototype.Load_DocumentStateAfterLoadChanges = function(State) +CDocument.prototype.Load_DocumentStateAfterLoadChanges = function(State, updateSelection) { this.CollaborativeEditing.UpdateDocumentPositionsByState(State); @@ -15475,16 +15942,19 @@ CDocument.prototype.Load_DocumentStateAfterLoadChanges = function(State) this.ViewPosition = null; } - this.UpdateSelection(); - + // TODO: По-хорошему, надо чтобы те места откуда вызывался данный метод сами обновляли состояние, если там оно нужно + // тогда не пришлось бы делать такие заглушки для мест, где это обновление мешает (например при перетаскивании + // линеек таблицы) + if (false !== updateSelection) + this.UpdateSelection(); }; CDocument.prototype.SaveDocumentState = function(isRemoveSelection) { return this.Save_DocumentStateBeforeLoadChanges(isRemoveSelection); }; -CDocument.prototype.LoadDocumentState = function(oState) +CDocument.prototype.LoadDocumentState = function(oState, updateSelection) { - return this.Load_DocumentStateAfterLoadChanges(oState); + return this.Load_DocumentStateAfterLoadChanges(oState, updateSelection); }; CDocument.prototype.SetContentSelection = function(StartDocPos, EndDocPos, Depth, StartFlag, EndFlag) { @@ -16596,10 +17066,8 @@ CDocument.prototype.setAutoHyphenation = function(isAuto) if (this.IsSelectionLocked(AscCommon.changestype_Document_SectPr)) return - this.StartAction(AscDFH.historydescription_Document_SetAutoHyphenation); + this.StartAction(AscDFH.historydescription_Document_SetAutoHyphenation, null, AscWord.ACTION_FLAGS.UPDATEALL_RECALCULATE_NOSCROLL); this.Settings.setAutoHyphenation(isAuto); - this.Recalculate(); - this.UpdateInterface(); this.FinalizeAction(); }; CDocument.prototype.setConsecutiveHyphenLimit = function(limit) @@ -16718,7 +17186,7 @@ CDocument.prototype.AddContentControlCheckBox = function(oPr) * Добавляем специальный контейнер для картинок * @returns {CInlineLevelSdt | CBlockLevelSdt} */ -CDocument.prototype.AddContentControlPicture = function() +CDocument.prototype.AddContentControlPicture = function(nW, nH) { this.RemoveTextSelection(); @@ -16727,7 +17195,7 @@ CDocument.prototype.AddContentControlPicture = function() return null; oCC.SetPlaceholderText(AscCommon.translateManager.getValue("Click to load image")); - oCC.ApplyPicturePr(true); + oCC.ApplyPicturePr(true, nW, nH); return oCC; }; /** @@ -17666,45 +18134,45 @@ CDocument.prototype.private_SelectRevisionChange = function(oChange, isSkipCompl }; CDocument.prototype.AcceptRevisionChange = function(oChange) { - if (oChange) + if (!oChange || !oChange.IsValid()) + return; + + var arrRelatedParas = this.TrackRevisionsManager.GetChangeRelatedParagraphs(oChange, true); + + if (this.TrackRevisionsManager.CompleteTrackChangesForElements(arrRelatedParas)) { - var arrRelatedParas = this.TrackRevisionsManager.GetChangeRelatedParagraphs(oChange, true); + this.Document_UpdateInterfaceState(); + this.Document_UpdateSelectionState(); + return; + } - if (this.TrackRevisionsManager.CompleteTrackChangesForElements(arrRelatedParas)) + if (false === this.Document_Is_SelectionLocked(AscCommon.changestype_None, { + Type : changestype_2_ElementsArray_and_Type, + Elements : arrRelatedParas, + CheckType : AscCommon.changestype_Paragraph_Properties + })) + { + this.StartAction(AscDFH.historydescription_Document_AcceptRevisionChange, null, AscWord.ACTION_FLAGS.UPDATEALL_RECALCULATE); + + var isTrackRevision = this.GetLocalTrackRevisions(); + if (false !== isTrackRevision) + this.SetLocalTrackRevisions(false); + + if (oChange.IsComplexChange()) { - this.Document_UpdateInterfaceState(); - this.Document_UpdateSelectionState(); - return; + if (oChange.IsMove()) + this.private_ProcessMoveReview(oChange, true); } - - if (false === this.Document_Is_SelectionLocked(AscCommon.changestype_None, { - Type : changestype_2_ElementsArray_and_Type, - Elements : arrRelatedParas, - CheckType : AscCommon.changestype_Paragraph_Properties - })) + else { - this.StartAction(AscDFH.historydescription_Document_AcceptRevisionChange); - - var isTrackRevision = this.GetLocalTrackRevisions(); - if (false !== isTrackRevision) - this.SetLocalTrackRevisions(false); - - if (oChange.IsComplexChange()) - { - if (oChange.IsMove()) - this.private_ProcessMoveReview(oChange, true); - } - else - { - this.private_SelectRevisionChange(oChange); - this.AcceptRevisionChanges(oChange.GetType(), false); - } + this.private_SelectRevisionChange(oChange); + this.AcceptRevisionChanges(oChange.GetType(), false); + } - if (false !== isTrackRevision) - this.SetLocalTrackRevisions(isTrackRevision); + if (false !== isTrackRevision) + this.SetLocalTrackRevisions(isTrackRevision); - this.FinalizeAction(); - } + this.FinalizeAction(); } }; CDocument.prototype.private_ProcessMoveReview = function(oChange, isAccept) @@ -17743,45 +18211,45 @@ CDocument.prototype.private_ProcessMoveReview = function(oChange, isAccept) }; CDocument.prototype.RejectRevisionChange = function(oChange) { - if (oChange) + if (!oChange || !oChange.IsValid()) + return; + + var arrRelatedParas = this.TrackRevisionsManager.GetChangeRelatedParagraphs(oChange, false); + + if (this.TrackRevisionsManager.CompleteTrackChangesForElements(arrRelatedParas)) { - var arrRelatedParas = this.TrackRevisionsManager.GetChangeRelatedParagraphs(oChange, false); - - if (this.TrackRevisionsManager.CompleteTrackChangesForElements(arrRelatedParas)) + this.Document_UpdateInterfaceState(); + this.Document_UpdateSelectionState(); + return; + } + + if (false === this.Document_Is_SelectionLocked(AscCommon.changestype_None, { + Type : changestype_2_ElementsArray_and_Type, + Elements : arrRelatedParas, + CheckType : AscCommon.changestype_Paragraph_Properties + })) + { + this.StartAction(AscDFH.historydescription_Document_RejectRevisionChange, null, AscWord.ACTION_FLAGS.UPDATEALL_RECALCULATE); + + var isTrackRevision = this.GetLocalTrackRevisions(); + if (false !== isTrackRevision) + this.SetLocalTrackRevisions(false); + + if (oChange.IsComplexChange()) { - this.Document_UpdateInterfaceState(); - this.Document_UpdateSelectionState(); - return; + if (oChange.IsMove()) + this.private_ProcessMoveReview(oChange, false); } - - if (false === this.Document_Is_SelectionLocked(AscCommon.changestype_None, { - Type : changestype_2_ElementsArray_and_Type, - Elements : arrRelatedParas, - CheckType : AscCommon.changestype_Paragraph_Properties - })) + else { - this.StartAction(AscDFH.historydescription_Document_RejectRevisionChange); - - var isTrackRevision = this.GetLocalTrackRevisions(); - if (false !== isTrackRevision) - this.SetLocalTrackRevisions(false); - - if (oChange.IsComplexChange()) - { - if (oChange.IsMove()) - this.private_ProcessMoveReview(oChange, false); - } - else - { - this.private_SelectRevisionChange(oChange); - this.RejectRevisionChanges(oChange.GetType(), false); - } - - if (false !== isTrackRevision) - this.SetLocalTrackRevisions(isTrackRevision); - - this.FinalizeAction(); + this.private_SelectRevisionChange(oChange); + this.RejectRevisionChanges(oChange.GetType(), false); } + + if (false !== isTrackRevision) + this.SetLocalTrackRevisions(isTrackRevision); + + this.FinalizeAction(); } }; CDocument.prototype.AcceptRevisionChangesBySelection = function() @@ -17925,13 +18393,20 @@ CDocument.prototype.AcceptAllRevisionChanges = function(isSkipCheckLock, isCheck if (false !== isTrackRevision) this.SetLocalTrackRevisions(false); - var LogicDocuments = this.TrackRevisionsManager.Get_AllChangesLogicDocuments(); - for (var LogicDocId in LogicDocuments) + let docContentArray = this.TrackRevisionsManager.Get_AllChangesLogicDocuments(); + for (let docContentId in docContentArray) { - var LogicDoc = AscCommon.g_oTableId.Get_ById(LogicDocId); - if (LogicDoc) + let docContent = AscCommon.g_oTableId.Get_ById(docContentId); + if (!docContent) + continue; + + docContent.AcceptRevisionChanges(undefined, true); + if (docContent.GetElementsCount() <= 0) { - LogicDoc.AcceptRevisionChanges(undefined, true); + if (docContent.IsBlockLevelSdtContent()) + docContent.GetParent().RemoveThisFromParent(); + else + docContent.ClearContent(true); } } @@ -17990,13 +18465,20 @@ CDocument.prototype.RejectAllRevisionChanges = function(isSkipCheckLock, isCheck }; CDocument.prototype.private_RejectAllRevisionChanges = function() { - var LogicDocuments = this.TrackRevisionsManager.Get_AllChangesLogicDocuments(); - for (var LogicDocId in LogicDocuments) + let docContentArray = this.TrackRevisionsManager.Get_AllChangesLogicDocuments(); + for (let docContentId in docContentArray) { - var LogicDoc = this.TableId.Get_ById(LogicDocId); - if (LogicDoc) + let docContent = AscCommon.g_oTableId.Get_ById(docContentId); + if (!docContent) + continue; + + docContent.RejectRevisionChanges(undefined, true); + if (docContent.GetElementsCount() <= 0) { - LogicDoc.RejectRevisionChanges(undefined, true); + if (docContent.IsBlockLevelSdtContent()) + docContent.GetParent().RemoveThisFromParent(); + else + docContent.ClearContent(true); } } }; @@ -18721,7 +19203,8 @@ CDocument.prototype.controller_AddNewParagraph = function(bRecalculate, bForceAd var ItemReviewType = Item.GetReviewType(); // Создаем новый параграф var NewParagraph = new AscWord.Paragraph(); - + + let firstPara, secondPara; if (Item.IsCursorAtBegin()) { // Продолжаем (в плане настроек) новый параграф @@ -18733,6 +19216,9 @@ CDocument.prototype.controller_AddNewParagraph = function(bRecalculate, bForceAd var nContentPos = this.CurPos.ContentPos; this.AddToContent(nContentPos, NewParagraph); this.CurPos.ContentPos = nContentPos + 1; + + firstPara = NewParagraph; + secondPara = Item; } else { @@ -18793,20 +19279,23 @@ CDocument.prototype.controller_AddNewParagraph = function(bRecalculate, bForceAd var nContentPos = this.CurPos.ContentPos + 1; this.AddToContent(nContentPos, NewParagraph); this.CurPos.ContentPos = nContentPos; + + firstPara = Item; + secondPara = NewParagraph; } - - if (true === this.IsTrackRevisions()) + + if (this.IsTrackRevisions()) { - Item.RemovePrChange(); - NewParagraph.SetReviewType(ItemReviewType); - Item.SetReviewType(reviewtype_Add); + firstPara.RemovePrChange(); + firstPara.SetReviewType(reviewtype_Add); + secondPara.SetReviewType(ItemReviewType); } else if (reviewtype_Common !== ItemReviewType) { - NewParagraph.SetReviewType(ItemReviewType); - Item.SetReviewType(reviewtype_Common); + firstPara.SetReviewType(reviewtype_Common); + secondPara.SetReviewType(ItemReviewType); } - NewParagraph.CheckSignatureLinesOnAdd(); + NewParagraph.CheckSignatureLinesOnAdd(); } if (isCheckAutoCorrect) @@ -19790,7 +20279,9 @@ CDocument.prototype.controller_MoveCursorUp = function(AddToSelect) }; CDocument.prototype.controller_MoveCursorDown = function(AddToSelect) { - if (true === this.IsSelectionUse() && true !== AddToSelect) + if (this.IsSelectionUse() + && !AddToSelect + && !this.IsTableCellSelection()) { var oCurParagraph = this.GetCurrentParagraph(true); this.MoveCursorRight(false, false); @@ -21590,6 +22081,27 @@ CDocument.prototype.controller_UpdateSelectionState = function() if (this.HandleOformSelectionInEditMode()) return; + let _t = this; + function isInCheckBox() + { + let selectedInfo = _t.GetSelectedElementsInfo(); + + let inlineCC = selectedInfo.GetInlineLevelSdt(); + if (inlineCC && inlineCC.IsCheckBox()) + return true; + + let blockCC = selectedInfo.GetBlockLevelSdt(); + if (blockCC && blockCC.IsCheckBox()) + return true; + + let simpleField = selectedInfo.GetField(); + if (simpleField && simpleField.IsFormCheckBox()) + return true; + + let formField = selectedInfo.GetFormField(); + return (formField && formField.IsFormCheckBox()); + } + if (true === this.Selection.Use) { // Выделение нумерации @@ -21610,11 +22122,12 @@ CDocument.prototype.controller_UpdateSelectionState = function() { if (false === this.IsSelectionEmpty() || !this.RemoveEmptySelection) { - if (true !== this.Selection.Start) + if (true !== this.Selection.Start && (!this.Action.UpdateStates || this.Action.ScrollToTarget)) { this.private_CheckCurPage(); this.RecalculateCurPos(); } + this.private_UpdateTracks(true, false); this.DrawingDocument.TargetEnd(); @@ -21636,12 +22149,8 @@ CDocument.prototype.controller_UpdateSelectionState = function() this.DrawingDocument.TargetStart(); this.DrawingDocument.TargetShow(); - if (this.IsFillingFormMode()) - { - var oContentControl = this.GetContentControl(); - if (oContentControl && oContentControl.IsCheckBox()) - this.DrawingDocument.TargetEnd(); - } + if (this.IsFillingFormMode() && isInCheckBox()) + this.DrawingDocument.TargetEnd(); } } } @@ -21654,13 +22163,9 @@ CDocument.prototype.controller_UpdateSelectionState = function() this.DrawingDocument.SelectEnabled(false); this.DrawingDocument.TargetShow(); - - if (this.IsFillingFormMode()) - { - var oContentControl = this.GetContentControl(); - if (oContentControl && oContentControl.IsCheckBox()) - this.DrawingDocument.TargetEnd(); - } + + if (this.IsFillingFormMode() && isInCheckBox()) + this.DrawingDocument.TargetEnd(); } }; CDocument.prototype.controller_GetSelectionState = function() @@ -22068,6 +22573,10 @@ CDocument.prototype.IsInFormField = function(isAllowComplexForm, isCheckCurrentU var oField = oSelectedInfo.GetField(); var oInlineSdt = oSelectedInfo.GetInlineLevelSdt(); var oBlockSdt = oSelectedInfo.GetBlockLevelSdt(); + let formField = oSelectedInfo.GetFormField(); + + if (oInlineSdt && oInlineSdt.IsContentControlEquation()) + return false; if (isCheckCurrentUser && oInlineSdt @@ -22077,7 +22586,10 @@ CDocument.prototype.IsInFormField = function(isAllowComplexForm, isCheckCurrentU // оInlineSdt отдает нам нижний уровень, если на нем у нас ComplexField, значит мы находимся внутри текста, // в такой ситуации мы отдаем, что ме не находимся в форме, чтобы запретить редактирование в этой части формы // Когда мы будем находится внутри простой формы, находящейся в сложной, то oInlineSdt вернет именно проостую форму - return !!(oBlockSdt || (oInlineSdt && (!oInlineSdt.IsComplexForm() || isAllowComplexForm)) || (oField && AscWord.fieldtype_FORMTEXT === oField.Get_FieldType())); + return !!(oBlockSdt + || (oInlineSdt && (!oInlineSdt.IsComplexForm() || isAllowComplexForm)) + || (oField && AscWord.fieldtype_FORMTEXT === oField.Get_FieldType()) + || formField); }; CDocument.prototype.IsFormFieldEditing = function() { @@ -22091,6 +22603,8 @@ CDocument.prototype.MoveToFillingForm = function(isNext) oForm.SelectContentControl(); else if ((oForm = oInfo.GetField()) instanceof ParaField) oForm.SelectThisElement(); + else if ((oForm = oInfo.GetFormField()) instanceof AscWord.ComplexField) + oForm.SelectFieldValue(); this.DrawingObjects.resetDrawStateBeforeAction(); var oRes = null; @@ -22227,6 +22741,12 @@ CDocument.prototype.MoveToFillingForm = function(isNext) { oRes.SelectThisElement(); } + else if (oRes instanceof AscWord.ComplexField) + { + oRes.SelectFieldValue(); + } + + this.DrawingDocument.scrollToTarget(); } }; CDocument.prototype.TurnComboBoxFormValue = function(oForm, isNext) @@ -22308,39 +22828,8 @@ CDocument.prototype.RemoveContentControl = function(Id) // TODO: По хорошему надо сделать метод у CStdBase и перенести реализации в соответствующие классы this.RemoveSelection(); - if (oContentControl.IsBlockLevel()) - { - if (!oContentControl.Parent) - return; - - var oDocContent = oContentControl.Parent; - oDocContent.Update_ContentIndexing(); - var nIndex = oContentControl.GetIndex(); - - var nCurPos = oDocContent.CurPos.ContentPos; - oDocContent.Remove_FromContent(nIndex, 1); - - if (nIndex === nCurPos) - { - if (nIndex >= oDocContent.GetElementsCount()) - { - oDocContent.MoveCursorToEndPos(); - } - else - { - oDocContent.CurPos.ContentPos = Math.max(0, Math.min(oDocContent.GetElementsCount() - 1, nIndex));; - oDocContent.Content[oDocContent.CurPos.ContentPos].MoveCursorToStartPos(); - } - } - else if (nIndex < nCurPos) - { - oDocContent.CurPos.ContentPos = Math.max(0, Math.min(oDocContent.GetElementsCount() - 1, nCurPos - 1)); - } - } - else if (oContentControl.IsInlineLevel()) - { + if (oContentControl.IsBlockLevel() || oContentControl.IsInlineLevel()) oContentControl.RemoveThisFromParent(true); - } }; CDocument.prototype.RemoveContentControlWrapper = function(Id) { @@ -22633,38 +23122,48 @@ CDocument.prototype.AddField = function(nType, oPr) return false; }; -CDocument.prototype.AddFieldWithInstruction = function(sInstruction, textPr) +CDocument.prototype.AddFieldWithInstruction = function(instructionLine, textPr) { var oParagraph = this.GetCurrentParagraph(false, false, {ReplacePlaceHolder : true}); if (!oParagraph) return null; - - var oBeginChar = new ParaFieldChar(fldchartype_Begin, this), - oSeparateChar = new ParaFieldChar(fldchartype_Separate, this), - oEndChar = new ParaFieldChar(fldchartype_End, this); - - var oRun = new ParaRun(); - oRun.AddToContent(-1, oBeginChar); - oRun.AddInstrText(sInstruction); - oRun.AddToContent(-1, oSeparateChar); - oRun.AddToContent(-1, oEndChar); - oParagraph.Add(oRun); - - oBeginChar.SetRun(oRun); - oSeparateChar.SetRun(oRun); - oEndChar.SetRun(oRun); - - var oComplexField = oBeginChar.GetComplexField(); - oComplexField.SetBeginChar(oBeginChar); - oComplexField.SetInstructionLine(sInstruction); - oComplexField.SetSeparateChar(oSeparateChar); - oComplexField.SetEndChar(oEndChar); - oComplexField.Update(false); + + return this.addFieldWithInstructionToParagraph(oParagraph, instructionLine, textPr); +}; +CDocument.prototype.addFieldWithInstructionToParagraph = function(paragraph, instructionLine, textPr, forceUpdate) +{ + let beginChar = new ParaFieldChar(fldchartype_Begin, this); + let separateChar = new ParaFieldChar(fldchartype_Separate, this); + let endChar = new ParaFieldChar(fldchartype_End, this); + + var run = new AscWord.Run(); + run.AddToContent(-1, beginChar); + run.AddInstrText(instructionLine); + run.AddToContent(-1, separateChar); + run.AddToContent(-1, endChar); + paragraph.Add(run); + + beginChar.SetRun(run); + separateChar.SetRun(run); + endChar.SetRun(run); + + let complexField = beginChar.GetComplexField(); + complexField.SetBeginChar(beginChar); + complexField.SetInstructionLine(instructionLine); + complexField.SetSeparateChar(separateChar); + complexField.SetEndChar(endChar); + if (!complexField.Update(false) && forceUpdate) + { + // TODO: Добавил эту ветку, потому что у нас после InsertContent пока не обновляются поля + let value = complexField.CalculateValue(); + let pos = run.GetElementPosition(endChar); + run.AddText(value, pos); + } if (textPr) - oRun.SetPr(textPr); + run.SetPr(textPr); - return oComplexField; + return complexField; }; CDocument.prototype.AddDateTime = function(oPr) { @@ -22735,18 +23234,15 @@ CDocument.prototype.private_FinalizeValidateComplexFields = function() }; CDocument.prototype.AddRefToParagraph = function(oParagraph, nType, bHyperlink, bAboveBelow, sSeparator) { - if(false === this.IsSelectionLocked(AscCommon.changestype_Document_Content, { - Type : changestype_2_ElementsArray_and_Type, - Elements : [oParagraph], - CheckType : changestype_Paragraph_Content - })) + // Мы не проверяем тут, что параграф, к которому добавляется ссылка залочен (в контроле или совместкой), + // т.к. это невидимое для пользователя действие, не меняющее вид параграфа + if (!this.IsSelectionLocked(AscCommon.changestype_Document_Content)) { this.StartAction(AscDFH.historydescription_Document_AddCrossRef); - var sBookmarkName = oParagraph.AddBookmarkForRef(); - if(sBookmarkName) - { - this.private_AddRefToBookmark(sBookmarkName, nType, bHyperlink, bAboveBelow, sSeparator); - } + let bookmarkName = oParagraph.AddBookmarkForRef(); + if (bookmarkName) + this.private_AddRefToBookmark(bookmarkName, nType, bHyperlink, bAboveBelow, sSeparator); + this.UpdateInterface(); this.UpdateSelection(); this.FinalizeAction(); @@ -22765,65 +23261,7 @@ CDocument.prototype.AddRefToBookmark = function(sBookmarkName, nType, bHyperlink }; CDocument.prototype.private_AddRefToBookmark = function(sBookmarkName, nType, bHyperlink, bAboveBelow, sSeparator) { - if(!(typeof sBookmarkName === "string" && sBookmarkName.length > 0)) - { - return; - } - var sInstr = ""; - var sSuffix = ""; - if(bHyperlink) - { - sSuffix += " \\h"; - } - if(bAboveBelow && nType !== Asc.c_oAscDocumentRefenceToType.AboveBelow) - { - sSuffix += " \\p"; - } - if(typeof sSeparator === "string" && sSeparator.length > 0) - { - sSuffix += " \\d " + sSeparator; - } - switch (nType) - { - case Asc.c_oAscDocumentRefenceToType.PageNum: - { - sInstr = " PAGEREF " + sBookmarkName; - sInstr += sSuffix; - break; - } - case Asc.c_oAscDocumentRefenceToType.Text: - case Asc.c_oAscDocumentRefenceToType.OnlyCaptionText: - case Asc.c_oAscDocumentRefenceToType.OnlyLabelAndNumber: - { - sInstr = " REF " + sBookmarkName + " "; - sInstr += sSuffix; - break; - } - case Asc.c_oAscDocumentRefenceToType.ParaNum: - { - sInstr = " REF " + sBookmarkName + " \\r "; - sInstr += sSuffix; - break; - } - case Asc.c_oAscDocumentRefenceToType.ParaNumNoContext: - { - sInstr = " REF " + sBookmarkName + " \\n "; - sInstr += sSuffix; - break; - } - case Asc.c_oAscDocumentRefenceToType.ParaNumFullContex: - { - sInstr = " REF " + sBookmarkName + " \\w "; - sInstr += sSuffix; - break; - } - case Asc.c_oAscDocumentRefenceToType.AboveBelow: - { - sInstr = " REF " + sBookmarkName + " \\p "; - sInstr += sSuffix; - break; - } - } + let sInstr = AscWord.getRefInstruction(sBookmarkName, nType, bHyperlink, bAboveBelow, sSeparator); var oComplexField = this.AddFieldWithInstruction(sInstr); if(nType === Asc.c_oAscDocumentRefenceToType.PageNum) { @@ -23430,6 +23868,23 @@ CDocument.prototype.UpdateFields = function(isBySelection) } }; +CDocument.prototype.GetPermRangesByContentPos = function(docPos) +{ + if (!docPos) + return []; + + let state = this.SaveDocumentState(); + + this.SetContentPosition(docPos, 0, 0); + + let result = []; + let currentParagraph = this.controller_GetCurrentParagraph(true, null); + if (currentParagraph) + result = currentParagraph.GetCurrentPermRanges(); + + this.LoadDocumentState(state, false); + return result; +}; /** * Получаем ссылку на класс, управляющий закладками * @returns {CBookmarksManager} @@ -23895,6 +24350,52 @@ CDocument.prototype.GetCurrentComplexField = function() return null; }; +/** + * Меняем инструкицю у заданного поля + * @param complexField {AscWord.CComplexField} + * @param newInstruction {string} + * @returns {boolean} + */ +CDocument.prototype.EditComplexFieldInstruction = function(complexField, newInstruction) +{ + if (!complexField || !(complexField instanceof AscWord.CComplexField)) + return false; + + if (complexField.GetInstructionLine() === newInstruction) + return false; + + let paras = complexField.GetRelatedParagraphs(); + if (this.IsSelectionLocked(AscCommon.changestype_None, { + Type : changestype_2_ElementsArray_and_Type, + Elements : paras, + CheckType : AscCommon.changestype_Paragraph_Content + })) + return false; + + this.StartAction(AscDFH.historydescription_Document_EditComplexFieldInstruction, null, AscWord.ACTION_FLAGS.UPDATEALL_RECALCULATE); + complexField.ChangeInstruction(newInstruction); + complexField.Update(); + this.FinalizeAction(); + return true; +}; +/** + * Добавляем сложное поле с заданной инструкцией в документ + * @param instruction {string} + * @returns {?AscWord.CComplexField} + */ +CDocument.prototype.AddComplexField = function(instruction) +{ + if (!instruction) + return null; + + if (this.IsSelectionLocked(AscCommon.changestype_Paragraph_Content)) + return null; + + this.StartAction(AscDFH.historydescription_Document_AddComplexField, null, AscWord.ACTION_FLAGS.UPDATEALL_RECALCULATE); + let complexField = this.AddFieldWithInstruction(instruction); + this.FinalizeAction(); + return complexField; +}; /** * Очищаем закэшированные списки, которые чаще всего используются */ @@ -23934,7 +24435,7 @@ CDocument.prototype.GetHyperlinkAnchors = function() /** * Получаем текущую выделенную нумерацию * @param [isCheckSelection=false] {boolean} - проверять ли по селекту - * @returns {?CNumPr} Если выделено несколько параграфов с одним NumId, но с разными уровнями, то Lvl = null + * @returns {?AscWord.NumPr} Если выделено несколько параграфов с одним NumId, но с разными уровнями, то Lvl = null */ CDocument.prototype.GetSelectedNum = function(isCheckSelection) { @@ -24003,7 +24504,7 @@ CDocument.prototype.ContinueNumbering = function() return false; var bFind = false; - var arrParagraphs = this.GetAllParagraphsByNumbering(new CNumPr(oNumPr.NumId, null)); + var arrParagraphs = this.GetAllParagraphsByNumbering(new AscWord.NumPr(oNumPr.NumId, null)); var arrParagraphsToChange = []; AscWord.sortByDocumentPosition(arrParagraphs); @@ -24079,7 +24580,7 @@ CDocument.prototype.RestartNumbering = function(nRestartValue) var bFind = false; var nPrevLvl = null; var isFirstParaOnLvl = false; - var arrParagraphs = this.GetAllParagraphsByNumbering(new CNumPr(oNumPr.NumId, null)); + var arrParagraphs = this.GetAllParagraphsByNumbering(new AscWord.NumPr(oNumPr.NumId, null)); var arrParagraphsToChange = []; var isRelated = this.Numbering.GetNum(oNumPr.NumId).IsHaveRelatedLvlText(); AscWord.sortByDocumentPosition(arrParagraphs); @@ -24648,12 +25149,17 @@ CDocument.prototype.AddCaption = function(oPr) if(this.DrawingObjects.selectedObjects.length === 1) { var oDrawing = this.DrawingObjects.selectedObjects[0].parent; - if(oDrawing.Is_Inline()) - { - let oDocContent = oDrawing.GetDocumentContent(); - NewParagraph = new AscWord.Paragraph(); - oDocContent.Internal_Content_Add(oPr.get_Before() ? oDrawing.Get_ParentParagraph().Index : (oDrawing.Get_ParentParagraph().Index + 1), NewParagraph, true); - } + if (oDrawing.IsInline()) + { + let parentPara = oDrawing.GetParagraph(); + let parentDocContent = parentPara ? parentPara.GetParent() : null; + let posInDocContent = parentPara ? parentPara.GetIndex() : -1; + if (parentDocContent && -1 !== posInDocContent) + { + NewParagraph = new AscWord.Paragraph(); + parentDocContent.AddToContent(oPr.get_Before() ? posInDocContent : posInDocContent + 1, NewParagraph, true); + } + } else { @@ -25558,6 +26064,30 @@ CDocument.prototype.AddParaMath = function(nType) this.UpdateSelection(); this.UpdateInterface(); }; +CDocument.prototype.OnDeleteAnnotationMark = function(mark) +{ + if (!this.Action.Start || this.Action.UndoRedo) + return; + + if (!this.Action.Additional.DeletedAnnotationMarks) + this.Action.Additional.DeletedAnnotationMarks = {perm : {}, comments : {}, bookmarks : {}}; + + if (mark.isPermMark()) + { + let permMarks = this.Action.Additional.DeletedAnnotationMarks.perm; + let rangeId = mark.getRangeId(); + if (!permMarks[rangeId]) + permMarks[rangeId] = {}; + + let docPos = mark.GetDocumentPositionFromObject(); + if (mark.isStart()) + permMarks[rangeId].start = {mark : mark, docPos : docPos}; + else + permMarks[rangeId].end = {mark : mark, docPos : docPos}; + + this.CollaborativeEditing.Add_DocumentPosition(docPos); + } +}; CDocument.prototype.OnChangeContentControl = function(oControl) { if (!this.Action.Start && !this.Action.UndoRedo) @@ -26520,7 +27050,7 @@ CDocument.prototype.private_ConvertTableToText = function(oTable, oProps) NewContent.content.push(oNewParagraph); break; default: - oText = new AscWord.CRunText(oProps.separator); + oText = AscWord.codePointToRunElement(oProps.separator); break; } if (oText) @@ -27199,8 +27729,9 @@ CDocument.prototype.ConvertMathView = function(isToLinear) { this.StartAction(AscDFH.historydescription_Document_ConvertMathView); let nInputType = this.Api.getMathInputType(); - - if (!this.IsTextSelectionUse()) + + // if an empty placeholder is selected, convert the entire math equation + if (!this.IsTextSelectionUse() || oMath.IsMathContentPlaceholder()) { this.RemoveTextSelection(); oMath.ConvertView(isToLinear, nInputType); @@ -27271,6 +27802,35 @@ CDocument.prototype.isPreventedPreDelete = function() return this.PreventPreDelete; }; +CDocument.prototype.AddCustomProperty = function(name, type, value) +{ + if(this.IsSelectionLocked(AscCommon.changestype_CustomPr, null)) + return; + + this.StartAction(AscDFH.historydescription_CustomProperties_Add); + this.CustomProperties.AddProperty(name, type, value); + this.FinalizeAction(true); +}; + +CDocument.prototype.ModifyCustomProperty = function(idx, name, type, value) +{ + if(this.IsSelectionLocked(AscCommon.changestype_CustomPr, null)) + return; + + this.StartAction(AscDFH.historydescription_CustomProperties_Modify); + this.CustomProperties.ModifyProperty(idx, name, type, value) + this.FinalizeAction(true); +}; +CDocument.prototype.RemoveCustomProperty = function(idx) +{ + if(this.IsSelectionLocked(AscCommon.changestype_CustomPr, null)) + return; + + this.StartAction(AscDFH.historydescription_CustomProperties_Remove); + this.CustomProperties.RemoveProperty(idx) + this.FinalizeAction(true); +}; + function CDocumentSelectionState() { this.Id = null; @@ -28194,7 +28754,7 @@ CDocumentNumberingInfoCounter.prototype.CheckNum = function(oNum) /** * Класс для рассчета значение номера для нумерации заданного параграфа * @param oPara {Paragraph} - * @param oNumPr {CNumPr} + * @param oNumPr {AscWord.NumPr} * @param oNumbering {AscWord.CNumbering} * @constructor */ @@ -28514,7 +29074,7 @@ CDocumentFootnotesRangeEngine.prototype.IsCheckEndnotes = function() /** * Класс для поиска подходящей нумерации в документе * @param oParagraph {Paragraph} - * @param oNumPr {CNumPr} + * @param oNumPr {AscWord.NumPr} * @param oNumbering {AscWord.CNumbering} */ function CDocumentNumberingContinueEngine(oParagraph, oNumPr, oNumbering) @@ -28555,7 +29115,7 @@ CDocumentNumberingContinueEngine.prototype.CheckParagraph = function(oParagraph) { if (oNumPr.Lvl > 0) { - this.SimilarNumPr = new CNumPr(oNumPr.NumId, this.NumPr.Lvl); + this.SimilarNumPr = new AscWord.NumPr(oNumPr.NumId, this.NumPr.Lvl); } else { @@ -28563,16 +29123,16 @@ CDocumentNumberingContinueEngine.prototype.CheckParagraph = function(oParagraph) var oLvl = this.Numbering.GetNum(this.NumPr.NumId).GetLvl(0); if (oCurLvl.IsSimilar(oLvl) || (oCurLvl.GetFormat() === oLvl.GetFormat() && Asc.c_oAscNumberingFormat.Bullet === oCurLvl.GetFormat())) - this.SimilarNumPr = new CNumPr(oNumPr.NumId, 0); + this.SimilarNumPr = new AscWord.NumPr(oNumPr.NumId, 0); } - this.LastNumPr = new CNumPr(oNumPr.NumId, this.NumPr.Lvl); + this.LastNumPr = new AscWord.NumPr(oNumPr.NumId, this.NumPr.Lvl); } } }; /** * Получаем подходящую нумерацию - * @returns {?CNumPr} + * @returns {?AscWord.NumPr} */ CDocumentNumberingContinueEngine.prototype.GetNumPr = function() { @@ -28690,3 +29250,4 @@ CDocumentSectionProps.prototype["get_GutterAtTop"] = CDocumentSectionProps.pr CDocumentSectionProps.prototype["put_GutterAtTop"] = CDocumentSectionProps.prototype.put_GutterAtTop; CDocumentSectionProps.prototype["get_MirrorMargins"] = CDocumentSectionProps.prototype.get_MirrorMargins; CDocumentSectionProps.prototype["put_MirrorMargins"] = CDocumentSectionProps.prototype.put_MirrorMargins; + diff --git a/word/Editor/DocumentChanges.js b/word/Editor/DocumentChanges.js index 80640dfbb8..32884361f6 100644 --- a/word/Editor/DocumentChanges.js +++ b/word/Editor/DocumentChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/DocumentContent.js b/word/Editor/DocumentContent.js index 06794e3642..5dcfdc2c26 100644 --- a/word/Editor/DocumentContent.js +++ b/word/Editor/DocumentContent.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -442,7 +442,7 @@ CDocumentContent.prototype.Get_Numbering = function() }; CDocumentContent.prototype.GetNumbering = function() { - if (this.LogicDocument) + if (this.LogicDocument && this.LogicDocument.GetNumbering) return this.LogicDocument.GetNumbering(); return AscCommonWord.DEFAULT_NUMBERING; @@ -456,10 +456,10 @@ CDocumentContent.prototype.GetStyles = function(nLvl) if (this.bPresentation && this.Parent) return this.Parent.Get_Styles(nLvl); - if (this.LogicDocument) + if (this.LogicDocument && this.LogicDocument.GetStyles) return this.LogicDocument.GetStyles(); - return AscCommonWord.DEFAULT_STYLES; + return AscWord.DEFAULT_STYLES; }; CDocumentContent.prototype.Get_TableStyleForPara = function() { @@ -765,7 +765,7 @@ CDocumentContent.prototype.Recalculate_Page = function(PageIndex, this.Pages[PageIndex] = new CDocumentPage(); this.Pages[PageIndex].Pos = StartIndex; - if (this.LogicDocument && oDocContentRI === this) + if (this.LogicDocument && this.LogicDocument.IsDocumentEditor() && oDocContentRI === this) this.LogicDocument.DrawingObjects.resetDrawingArrays(this.Get_AbsolutePage(PageIndex), oDocContentRI); } @@ -1161,11 +1161,14 @@ CDocumentContent.prototype.Recalculate_Page = function(PageIndex, if (FrameH + FrameY > Page_H) FrameY = Page_H - FrameH; - - // TODO: Пересмотреть, почему эти погрешности возникают - // Избавляемся от погрешности - FrameY += 0.001; - FrameH -= 0.002; + + // Начинаем рамку с позиции начала следующего твипса, чтобы не было пересечений с объектами, заканчивающимися + // на текущем твипсе + // TODO: Проверить, нужно ли уменьшать размер рамки на 2 твипса (ранее уменьшали на 0.002, когда исправляли проблему с пересечением объектов в обтекании) + let twFrameY = AscCommon.MMToTwips(AscCommon.CorrectMMToTwips(FrameY)); + + FrameY = AscCommon.TwipsToMM(twFrameY + 1); + FrameH -= AscCommon.TwipsToMM(2); if (FrameY < 0) FrameY = 0; @@ -1435,14 +1438,19 @@ CDocumentContent.prototype.Draw = function(nPageIndex, pGraphics.Start_Command(AscFormat.DRAW_COMMAND_CONTENT); var nPixelError = this.DrawingDocument && this.DrawingDocument.GetMMPerDot(1); - - var ClipInfo = this.ClipInfo[CurPage]; - if (ClipInfo) - { - var Bounds = this.Pages[CurPage].Bounds; - pGraphics.SaveGrState(); - pGraphics.AddClipRect(ClipInfo.X0, Bounds.Top - nPixelError, Math.abs(ClipInfo.X1 - ClipInfo.X0), Bounds.Bottom - Bounds.Top + nPixelError); - } + + let clipInfo = this.ClipInfo[CurPage]; + if (clipInfo) + { + let pageBounds = this.Pages[CurPage].Bounds; + pGraphics.SaveGrState(); + + let clipX0 = undefined !== clipInfo.X0 ? clipInfo.X0 : pageBounds.Left - nPixelError; + let clipX1 = undefined !== clipInfo.X1 ? clipInfo.X1 : pageBounds.Right; + let clipY0 = undefined !== clipInfo.Y0 ? clipInfo.Y0 : pageBounds.Top - nPixelError; + let clipY1 = undefined !== clipInfo.Y1 ? clipInfo.Y1 : pageBounds.Bottom; + pGraphics.AddClipRect(clipX0, clipY0, Math.abs(clipX1 - clipX0), Math.abs(clipY1 - clipY0)); + } var oPage = this.Pages[CurPage]; for (var nIndex = oPage.Pos; nIndex <= oPage.EndPos; ++nIndex) @@ -1484,11 +1492,9 @@ CDocumentContent.prototype.Draw = function(nPageIndex, pGraphics.RestoreGrState(); } - - if (ClipInfo) - { - pGraphics.RestoreGrState(); - } + + if (clipInfo) + pGraphics.RestoreGrState(); pGraphics.End_Command(); }; @@ -1542,16 +1548,13 @@ CDocumentContent.prototype.GetAllFloatElements = function(FloatObjs) return FloatObjs; }; -CDocumentContent.prototype.Shift = function(CurPage, Dx, Dy) +CDocumentContent.prototype.Shift = function(CurPage, Dx, Dy, keepClip) { this.Pages[CurPage].Shift(Dx, Dy); - if (this.ClipInfo[CurPage]) - { - this.ClipInfo[CurPage].X0 += Dx; - this.ClipInfo[CurPage].X1 += Dx; - } - + if (this.ClipInfo[CurPage] && true !== keepClip) + this.ClipInfo[CurPage].shift(Dx, Dy); + var StartPos = this.Pages[CurPage].Pos; var EndPos = this.Pages[CurPage].EndPos; for (var Index = StartPos; Index <= EndPos; Index++) @@ -1732,7 +1735,7 @@ CDocumentContent.prototype.Get_PageBounds = function(CurPage, Height, bForceChec for (var Index = 0; Index < Count; Index++) { var Obj = AllDrawingObjects[Index]; - if (PageAbs === Obj.Get_PageNum()) + if (PageAbs === Obj.GetPageNum()) { var ObjBounds = Obj.Get_Bounds(); if (true === Obj.Use_TextWrap()) @@ -2616,9 +2619,9 @@ CDocumentContent.prototype.MoveCursorToCell = function(bNext) } } }; -CDocumentContent.prototype.Set_ClipInfo = function(CurPage, X0, X1) +CDocumentContent.prototype.Set_ClipInfo = function(CurPage, X0, X1, Y0, Y1) { - this.ClipInfo[CurPage] = {X0 : X0, X1 : X1}; + this.ClipInfo[CurPage] = new AscWord.ClipRect(X0, X1, Y0, Y1); }; CDocumentContent.prototype.IsApplyToAll = function() { @@ -2700,7 +2703,8 @@ CDocumentContent.prototype.AddNewParagraph = function(bForceAdd) var ItemReviewType = Item.GetReviewType(); // Создаем новый параграф var NewParagraph = new AscWord.Paragraph(this, this.bPresentation === true); - + + let firstPara, secondPara; if (Item.IsCursorAtBegin()) { // Продолжаем (в плане настроек) новый параграф @@ -2712,6 +2716,9 @@ CDocumentContent.prototype.AddNewParagraph = function(bForceAdd) var nContentPos = this.CurPos.ContentPos; this.AddToContent(nContentPos, NewParagraph); this.CurPos.ContentPos = nContentPos + 1; + + firstPara = NewParagraph; + secondPara = Item; } else { @@ -2767,19 +2774,22 @@ CDocumentContent.prototype.AddNewParagraph = function(bForceAdd) var nContentPos = this.CurPos.ContentPos + 1; this.AddToContent(nContentPos, NewParagraph); this.CurPos.ContentPos = nContentPos; + + firstPara = Item; + secondPara = NewParagraph; + } + + if (this.IsTrackRevisions()) + { + firstPara.RemovePrChange(); + firstPara.SetReviewType(reviewtype_Add); + secondPara.SetReviewType(ItemReviewType); + } + else if (reviewtype_Common !== ItemReviewType) + { + firstPara.SetReviewType(reviewtype_Common); + secondPara.SetReviewType(ItemReviewType); } - - if (true === this.IsTrackRevisions()) - { - Item.RemovePrChange(); - NewParagraph.SetReviewType(ItemReviewType); - Item.SetReviewType(reviewtype_Add); - } - else if (reviewtype_Common !== ItemReviewType) - { - NewParagraph.SetReviewType(ItemReviewType); - Item.SetReviewType(reviewtype_Common); - } NewParagraph.CheckSignatureLinesOnAdd(); } @@ -6172,17 +6182,23 @@ CDocumentContent.prototype.RemoveSelection = function(bNoCheckDrawing) this.Selection.Flag = selectionflag_Common; } }; -CDocumentContent.prototype.DrawSelectionOnPage = function(PageIndex) +CDocumentContent.prototype.DrawSelectionOnPage = function(PageIndex, clipInfo) { var CurPage = PageIndex; if (CurPage < 0 || CurPage >= this.Pages.length) return; + + let pageClip = this.ClipInfo[CurPage]; + if (!clipInfo && pageClip) + clipInfo = pageClip.clone(); + else if (clipInfo) + clipInfo.intersect(pageClip); if (docpostype_DrawingObjects === this.CurPos.Type) { this.DrawingDocument.SetTextSelectionOutline(true); var PageAbs = CurPage + this.Get_StartPage_Absolute(); - this.LogicDocument.DrawingObjects.drawSelectionPage(PageAbs); + this.LogicDocument.DrawingObjects.drawSelectionPage(PageAbs, clipInfo); } else { @@ -6210,7 +6226,7 @@ CDocumentContent.prototype.DrawSelectionOnPage = function(PageIndex) for (var Index = Start; Index <= End; Index++) { var ElementPageIndex = this.private_GetElementPageIndex(Index, CurPage, 0, 1); - this.Content[Index].DrawSelectionOnPage(ElementPageIndex); + this.Content[Index].DrawSelectionOnPage(ElementPageIndex, clipInfo); } break; @@ -6226,7 +6242,7 @@ CDocumentContent.prototype.DrawSelectionOnPage = function(PageIndex) var oParagraph = this.Selection.Data.Paragraphs[nIndex]; var nParaPageAbs = oParagraph.GetNumberingPage(true); if (nParaPageAbs === nPageAbs) - oParagraph.DrawSelectionOnPage(oParagraph.GetNumberingPage(false)); + oParagraph.DrawSelectionOnPage(oParagraph.GetNumberingPage(false), clipInfo); } break; @@ -6259,7 +6275,11 @@ CDocumentContent.prototype.Selection_SetStart = function(X, Y, CurPage, MouseEve // Сначала проверим, не попали ли мы в один из "плавающих" объектов var bInText = null !== this.IsInText(X, Y, CurPage); var bTableBorder = null !== this.IsTableBorder(X, Y, CurPage); - var nInDrawing = this.LogicDocument && this.LogicDocument.DrawingObjects.IsInDrawingObject(X, Y, AbsPage, this); + var nInDrawing = -1; + if(this.LogicDocument && this.LogicDocument.IsDocumentEditor()) + { + nInDrawing = this.LogicDocument && this.LogicDocument.DrawingObjects.IsInDrawingObject(X, Y, AbsPage, this); + } if (this.Parent instanceof CHeaderFooter && ( nInDrawing === DRAWING_ARRAY_TYPE_BEFORE || nInDrawing === DRAWING_ARRAY_TYPE_INLINE || ( false === bTableBorder && false === bInText && nInDrawing >= 0 ) )) { @@ -7105,10 +7125,13 @@ CDocumentContent.prototype.Internal_GetContentPosByXY = function(X, Y, PageNum) PageNum = Math.max(0, Math.min(PageNum, this.Pages.length - 1)); - var oFlow = this.LogicDocument && this.LogicDocument.DrawingObjects.getTableByXY(X, Y, this.GetAbsolutePage(PageNum), this); - var nFlowPos = this.private_GetContentIndexByFlowObject(oFlow, X, Y); - if (-1 !== nFlowPos) - return nFlowPos; + if(this.LogicDocument && this.LogicDocument.IsDocumentEditor()) + { + var oFlow = this.LogicDocument.DrawingObjects.getTableByXY(X, Y, this.GetAbsolutePage(PageNum), this); + var nFlowPos = this.private_GetContentIndexByFlowObject(oFlow, X, Y); + if (-1 !== nFlowPos) + return nFlowPos; + } // Теперь проверим пустые параграфы с окончанием секций (в нашем случае это пустой параграф послей таблицы внутри таблицы) var SectCount = this.Pages[PageNum].EndSectionParas.length; @@ -7758,7 +7781,7 @@ CDocumentContent.prototype.Load_LinkData = function(LinkData) if ("undefined" != typeof(LinkData.Parent)) this.Parent = g_oTableId.Get_ById(LinkData.Parent); - if (this.Parent.getDrawingDocument) + if (this.Parent && this.Parent.getDrawingDocument) { this.DrawingDocument = this.Parent.getDrawingDocument(); for (var i = 0; i < this.Content.length; ++i) @@ -8424,6 +8447,9 @@ CDocumentContent.prototype.Get_LogicDocument = function() }; CDocumentContent.prototype.GetLogicDocument = function() { + if (!this.LogicDocument && this.Parent && this.Parent.GetLogicDocument) + this.LogicDocument = this.Parent.GetLogicDocument(); + return this.LogicDocument; }; CDocumentContent.prototype.RemoveTextSelection = function() @@ -9219,6 +9245,83 @@ CDocumentRecalculateObject.prototype = }; +(function() +{ + /** + * Class for holding clipping rectangle + * @param x0 + * @param x1 + * @param y0 + * @param y1 + * @constructor + */ + function ClipRect(x0, x1, y0, y1) + { + this.X0 = x0; + this.X1 = x1; + this.Y0 = y0; + this.Y1 = y1; + } + ClipRect.prototype.intersect = function(clipRect) + { + if (!clipRect) + return; + + if (undefined === this.X0 || null === this.X0) + this.X0 = clipRect.X0; + else if (undefined !== clipRect.X0 && null !== clipRect.X0) + this.X0 = Math.max(this.X0, clipRect.X0); + + if (undefined === this.X1 || null === this.X1) + this.X1 = clipRect.X1; + else if (undefined !== clipRect.X1 && null !== clipRect.X1) + this.X1 = Math.min(this.X1, clipRect.X1); + + if (undefined === this.Y0 || null === this.Y0) + this.Y0 = clipRect.Y0; + else if (undefined !== clipRect.Y0 && null !== clipRect.Y0) + this.Y0 = Math.max(this.Y0, clipRect.Y0); + + if (undefined === this.Y1 || null === this.Y1) + this.Y1 = clipRect.Y1; + else if (undefined !== clipRect.Y1 && null !== clipRect.Y1) + this.Y1 = Math.min(this.Y1, clipRect.Y1); + }; + ClipRect.prototype.shift = function(dx, dy) + { + if (undefined !== this.X0) + this.X0 += dx; + if (undefined !== this.X1) + this.X1 += dx; + if (undefined !== this.Y0) + this.Y0 += dy; + if (undefined !== this.Y1) + this.Y1 += dy; + }; + ClipRect.prototype.clone = function() + { + return new ClipRect(this.X0, this.X1, this.Y0, this.Y1); + }; + ClipRect.prototype.correctX0 = function(x) + { + return (undefined !== this.X0 && null !== this.X0 ? Math.max(this.X0, x) : x); + }; + ClipRect.prototype.correctX1 = function(x) + { + return (undefined !== this.X1 && null !== this.X1 ? Math.min(this.X1, x) : x); + }; + ClipRect.prototype.correctY0 = function(y) + { + return (undefined !== this.Y0 && null !== this.Y0 ? Math.max(this.Y0, y) : y); + }; + ClipRect.prototype.correctY1 = function(y) + { + return (undefined !== this.Y1 && null !== this.Y1 ? Math.min(this.Y1, y) : y); + }; + //--------------------------------------------------------export---------------------------------------------------- + AscWord.ClipRect = ClipRect; +})(); + //--------------------------------------------------------export---------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CDocumentContent = CDocumentContent; diff --git a/word/Editor/DocumentContentBase.js b/word/Editor/DocumentContentBase.js index b12c4755c9..83b1e6bbb9 100644 --- a/word/Editor/DocumentContentBase.js +++ b/word/Editor/DocumentContentBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -441,6 +441,8 @@ CDocumentContentBase.prototype.MoveCursorToNearestPos = function(oNearestPos) var oTopDocument = oParent.Is_TopDocument(true); if (oTopDocument) oTopDocument.RemoveSelection(); + else + this.RemoveSelection(); } oPara.Set_ParaContentPos(oNearestPos.ContentPos, true, -1, -1); @@ -813,13 +815,15 @@ CDocumentContentBase.prototype.private_Remove = function(Count, isRemoveWholeEle let isParagraphMarkRemove = this.Content[StartPos].IsParagraph() && this.Content[StartPos].IsSelectedOnlyParagraphMark(); this.CurPos.ContentPos = StartPos; - if (Count < 0 && this.Content[StartPos].IsTable() && true === this.Content[StartPos].IsCellSelection() && true !== bOnTextAdd) + if (this.Content[StartPos].IsTable() + && true === this.Content[StartPos].IsCellSelection() + && ((!bOnTextAdd && Count < 0) || isRemoveOnDrag)) { this.RemoveTableCells(); } else if (false === this.Content[StartPos].Remove(Count, isRemoveWholeElement, bRemoveOnlySelection, bOnTextAdd)) { - if (!bOnTextAdd && (isParagraphMarkRemove || ((isRemoveOnDrag || Count > 0 || StartPos < this.Content.length - 1) && this.Content[StartPos].IsEmpty()))) + if ((!bOnTextAdd || isRemoveOnDrag) && (isParagraphMarkRemove || ((isRemoveOnDrag || Count > 0 || StartPos < this.Content.length - 1) && this.Content[StartPos].IsEmpty()))) { // В ворде параграфы объединяются только когда у них все настройки совпадают. // (почему то при изменении и обратном изменении настроек параграфы перестают объединятся) @@ -1688,7 +1692,7 @@ CDocumentContentBase.prototype.GetAllParagraphs = function(oProps, arrParagraphs /** * Получаем массив всех параграфов с заданной нумерацией * NB: массив НЕ отсортирован по позиции в документе (для сортировки, если нужно, вызывать метод AscWord.sortByDocumentPosition) - * @param oNumPr {CNumPr | CNumPr[]} + * @param oNumPr {AscWord.NumPr | AscWord.NumPr[]} * @returns {Paragraph[]} */ CDocumentContentBase.prototype.GetAllParagraphsByNumbering = function(oNumPr) @@ -1724,7 +1728,7 @@ CDocumentContentBase.prototype.GetAllTables = function(oProps, arrTables) }; /** * Выделяем заданную нумерацию - * @param oNumPr {CNumPr} + * @param oNumPr {AscWord.NumPr} * @param oPara {Paragraph} - текущий парограф */ CDocumentContentBase.prototype.SelectNumbering = function(oNumPr, oPara) @@ -1783,7 +1787,7 @@ CDocumentContentBase.prototype.RemoveNumberingSelection = function() /** * Рассчитываем значение нумерованного списка для заданной нумерации * @param oPara {Paragraph} - * @param oNumPr {CNumPr} + * @param oNumPr {AscWord.NumPr} * @param [isUseReview=false] {boolean} * @returns {number[]} */ @@ -1937,8 +1941,15 @@ CDocumentContentBase.prototype.RemoveParagraphForReview = function(nPosition) { if (1 === this.Content.length) { - if (this.IsBlockLevelSdtContent()) - this.GetParent().ReplaceContentWithPlaceHolder(); + let parent = this.GetParent(); + if (parent && parent instanceof AscWord.CBlockLevelSdt) + { + // Если после принятия других изменений контент не пустой, то не удаляем ничего, + // но если он пустой и нужно было удалить последний параграф в нем, то удаляем его, + // чтобы при проверке выше удалялись блочные контролы с пустым содержимым + if (parent.IsEmpty()) + this.RemoveFromContent(0, 1, false); + } else this.RemoveFromContent(0, 1, true); } @@ -2095,6 +2106,11 @@ CDocumentContentBase.prototype.private_AcceptRevisionChanges = function(nType, b this.RemoveFromContent(nCurPos, 1, false); } } + else if (oElement.IsBlockLevelSdt()) + { + if (oElement.GetElementsCount() <= 0) + this.RemoveFromContent(nCurPos, 1, false); + } } } } @@ -2205,6 +2221,11 @@ CDocumentContentBase.prototype.private_RejectRevisionChanges = function(nType, b this.RemoveFromContent(nCurPos, 1, false); } } + else if (oElement.IsBlockLevelSdt()) + { + if (oElement.GetElementsCount() <= 0) + this.RemoveFromContent(nCurPos, 1, false); + } } } } @@ -2521,6 +2542,25 @@ CDocumentContentBase.prototype.OnContentChange = function() { this.GetLogicDocument().CheckShapeAutoFit(shape); } + else if (shape && shape.OnContentChange) { + shape.OnContentChange(); + } +}; +CDocumentContentBase.prototype.OnTextPrChange = function() +{ + if (this.Parent && this.Parent.OnTextPrChange) + this.Parent.OnTextPrChange(); + + let shape = this.Is_DrawingShape(true); + if (shape + && this.GetLogicDocument() + && this.GetLogicDocument().IsDocumentEditor()) + { + this.GetLogicDocument().CheckShapeAutoFit(shape); + } + else if (shape && shape.OnTextPrChange) { + shape.OnTextPrChange(); + } }; CDocumentContentBase.prototype.GetCalculatedTextPr = function() @@ -2591,6 +2631,8 @@ CDocumentContentBase.prototype.UpdateNumberingCollection = function(elements) }; CDocumentContentBase.prototype.private_RecalculateNumbering = function(elements) { + if(this.bPresentation) + return; this.UpdateNumberingCollection(elements); let logicDocument = this.GetLogicDocument(); diff --git a/word/Editor/DocumentContentChanges.js b/word/Editor/DocumentContentChanges.js index 1ac998c390..0e4f3a3b6f 100644 --- a/word/Editor/DocumentContentChanges.js +++ b/word/Editor/DocumentContentChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/DocumentContentElementBase.js b/word/Editor/DocumentContentElementBase.js index fd0e1007f0..ffe21e3a19 100644 --- a/word/Editor/DocumentContentElementBase.js +++ b/word/Editor/DocumentContentElementBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -133,6 +133,16 @@ CDocumentContentElementBase.prototype.GetPrevDocumentElement = function() return oPrev; }; +CDocumentContentElementBase.prototype.GetNextParagraphInDocument = function() +{ + let next = this.GetNextDocumentElement(); + return next ? next.GetFirstParagraph() : null; +}; +CDocumentContentElementBase.prototype.GetPrevParagraphInDocument = function() +{ + let prev = this.GetPrevDocumentElement(); + return prev ? prev.GetLastParagraph() : null; +}; CDocumentContentElementBase.prototype.GetParent = function() { return this.Parent; @@ -347,7 +357,7 @@ CDocumentContentElementBase.prototype.GetDirectTextPr = function() { return new CTextPr(); }; -CDocumentContentElementBase.prototype.DrawSelectionOnPage = function(CurPage) +CDocumentContentElementBase.prototype.DrawSelectionOnPage = function(CurPage, clipInfo) { }; CDocumentContentElementBase.prototype.StopSelection = function() @@ -1163,7 +1173,7 @@ CDocumentContentElementBase.prototype.GetOutlineParagraphs = function(arrOutline /** * Вплоть до заданного параграфа ищем последнюю похожую нумерацию * @param oContinueEngine {CDocumentNumberingContinueEngine} - * @returns {CNumPr | null} + * @returns {AscWord.NumPr | null} */ CDocumentContentElementBase.prototype.GetSimilarNumbering = function(oContinueEngine) { @@ -1332,7 +1342,7 @@ CDocumentContentElementBase.prototype.getDrawingDocument = function() return Asc.editor.getDrawingDocument(); }; /** - * @returns {?CDocumentSpellChecker} + * @returns {?AscWord.CDocumentSpellChecker} */ CDocumentContentElementBase.prototype.getSpelling = function() { @@ -1414,6 +1424,34 @@ CDocumentContentElementBase.prototype.isPreventedPreDelete = function() let logicDocument = this.GetLogicDocument(); return !logicDocument || !logicDocument.IsDocumentEditor() || logicDocument.isPreventedPreDelete(); }; +CDocumentContentElementBase.prototype.isWholeElementInPermRange = function() +{ + // TODO: В таблицах GetNextDocumentElement/GetPrevDocumentElement не работает, надо проверить не баг ли это + // по логике оба варианта должны выдавать одинаковый результат + + // let prevPara = this.GetPrevParagraphInDocument(); + // let nextPara = this.GetNextParagraphInDocument(); + // + // let startRanges = prevPara ? prevPara.GetEndInfo().GetPermRanges() : []; + // let endRanges = nextPara ? nextPara.GetEndInfoByPage(-1).GetPermRanges() : []; + + let startPara = this.GetFirstParagraph(); + let endPara = this.GetLastParagraph(); + + if (!startPara + || !endPara + || !startPara.IsRecalculated() + || !endPara.IsRecalculated()) + return false; + + let startInfo = startPara.GetEndInfoByPage(-1); + let endInfo = endPara.GetEndInfo(); + + let startRanges = startInfo ? startInfo.GetPermRanges() : []; + let endRanges = endInfo ? endInfo.GetPermRanges() : []; + + return AscWord.PermRangesManager.isInPermRange(startRanges, endRanges); +}; //--------------------------------------------------------export-------------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; diff --git a/word/Editor/DocumentControllerBase.js b/word/Editor/DocumentControllerBase.js index 935be67331..bcd9f272de 100644 --- a/word/Editor/DocumentControllerBase.js +++ b/word/Editor/DocumentControllerBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/DocumentOutline.js b/word/Editor/DocumentOutline.js index d5547b3157..28e448a9e6 100644 --- a/word/Editor/DocumentOutline.js +++ b/word/Editor/DocumentOutline.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -471,13 +471,28 @@ CDocumentOutline.prototype.IsEmptyItem = function(nIndex) { if (nIndex < 0 || nIndex >= this.Elements.length || !this.Elements[nIndex].Paragraph) return true; - + + let paragraph= this.Elements[nIndex].Paragraph; + if (paragraph.IsNumberedNumbering() && "" !== paragraph.GetNumberingText()) + return false; + return this.Elements[nIndex].Paragraph.IsEmpty(); }; CDocumentOutline.prototype.GetCurrentPosition = function() { return this.CurPos; }; +CDocumentOutline.prototype.GetDestinationXY = function(nIndex) +{ + if (nIndex < 0 || nIndex >= this.Elements.length) + return null; + + let paragraph = this.Elements[nIndex].Paragraph; + if (!paragraph) + return null; + + return paragraph.GetStartPosXY(); +}; //-------------------------------------------------------------export--------------------------------------------------- CDocumentOutline.prototype["get_ElementsCount"] = CDocumentOutline.prototype.GetElementsCount; diff --git a/word/Editor/DocumentProtection.js b/word/Editor/DocumentProtection.js index 3789fe927b..f8cd95609c 100644 --- a/word/Editor/DocumentProtection.js +++ b/word/Editor/DocumentProtection.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/DocumentSettings.js b/word/Editor/DocumentSettings.js index b50ca5e787..83b1c8f4b6 100644 --- a/word/Editor/DocumentSettings.js +++ b/word/Editor/DocumentSettings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/DrawingsController.js b/word/Editor/DrawingsController.js index ccfbe73de7..eac0fbd146 100644 --- a/word/Editor/DrawingsController.js +++ b/word/Editor/DrawingsController.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -577,6 +577,17 @@ CDrawingsController.prototype.GetSelectionState = function() CDrawingsController.prototype.SetSelectionState = function(State, StateIndex) { this.DrawingObjects.setSelectionState(State, StateIndex); + + let parentCC = this.private_GetParentContentControl(); + if (parentCC && parentCC.IsPicture() && parentCC.IsForm() && parentCC.GetParagraph()) + { + let parentShape = parentCC.GetParagraph().GetParentShape(); + if (parentShape) + { + let paraDrawing = parentShape.GetParaDrawing(); + this.DrawingObjects.selectById(paraDrawing.GetId(), paraDrawing.GetPageNum()); + } + } }; CDrawingsController.prototype.AddHyperlink = function(Props) { diff --git a/word/Editor/Endnotes.js b/word/Editor/Endnotes.js index 432f142171..bf2d1bd8b0 100644 --- a/word/Editor/Endnotes.js +++ b/word/Editor/Endnotes.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/EndnotesChanges.js b/word/Editor/EndnotesChanges.js index e9fc7851d9..86911320e6 100644 --- a/word/Editor/EndnotesChanges.js +++ b/word/Editor/EndnotesChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Field.js b/word/Editor/Field.js index e327fc22a2..8967d42ac1 100644 --- a/word/Editor/Field.js +++ b/word/Editor/Field.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -331,12 +331,13 @@ ParaField.prototype.GetAllFields = function(isUseSelection, arrFields) }; ParaField.prototype.GetAllSeqFieldsByType = function(sType, aFields) { - if(this.FieldType === AscWord.fieldtype_SEQ) + if (this.FieldType === AscWord.fieldtype_SEQ + && this.Arguments.length + && this.Arguments[0].toLowerCase + && sType.toLowerCase + && this.Arguments[0].toLowerCase() === sType.toLowerCase()) { - if(this.Arguments[0] === sType) - { - aFields.push(this); - } + aFields.push(this); } }; //---------------------------------------------------------------------------------------------------------------------- @@ -726,6 +727,10 @@ ParaField.prototype.IsAddin = function() { return this.CheckType(AscWord.fieldtype_ADDIN); }; +ParaField.prototype.IsFormCheckBox = function() +{ + return this.CheckType(AscWord.fieldtype_FORMCHECKBOX); +}; //---------------------------------------------------------------------------------------------------------------------- // Функции совместного редактирования //---------------------------------------------------------------------------------------------------------------------- diff --git a/word/Editor/FieldChanges.js b/word/Editor/FieldChanges.js index 9b1074f0d0..69c43ccf7e 100644 --- a/word/Editor/FieldChanges.js +++ b/word/Editor/FieldChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/FlowObjects.js b/word/Editor/FlowObjects.js index 0fab8f1c49..cde6c7aa8c 100644 --- a/word/Editor/FlowObjects.js +++ b/word/Editor/FlowObjects.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/FootEndNote.js b/word/Editor/FootEndNote.js index 3bac08b045..97b4977745 100644 --- a/word/Editor/FootEndNote.js +++ b/word/Editor/FootEndNote.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Footnotes.js b/word/Editor/Footnotes.js index 1cf947ba6b..da396df07f 100644 --- a/word/Editor/Footnotes.js +++ b/word/Editor/Footnotes.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -311,9 +311,7 @@ CFootnotesController.prototype.ContinueElementsFromPreviousColumn = function(nPa oFootnote.Reset(X, _Y, XLimit, _YLimit); oFootnote.Set_StartPage(nPageAbs, nColumnAbs, nColumnsCount); } - - oColumn.Elements.push(oFootnote); - + var nRelativePage = oFootnote.GetElementPageIndex(nPageAbs, nColumnAbs); var nRecalcResult = oFootnote.Recalculate_Page(nRelativePage, true); @@ -327,7 +325,9 @@ CFootnotesController.prototype.ContinueElementsFromPreviousColumn = function(nPa { // Такого не должно быть при расчете сносок } - + + oColumn.Elements.push(oFootnote); + var oBounds = oFootnote.Get_PageBounds(nRelativePage); _Y += oBounds.Bottom - oBounds.Top; oColumn.Height = _Y; @@ -442,7 +442,7 @@ CFootnotesController.prototype.RecalculateFootnotes = function(nPageAbs, nColumn break; } - oColumn.Height = Math.min(_YLimit, oColumn.Height); + oColumn.Height = Math.max(0, Math.min(_YLimit, oColumn.Height)); if (!isLowerY) oColumn.ReferenceY = Y; diff --git a/word/Editor/FootnotesChanges.js b/word/Editor/FootnotesChanges.js index c0376e95a3..749ef9bc51 100644 --- a/word/Editor/FootnotesChanges.js +++ b/word/Editor/FootnotesChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/FormFieldChanges.js b/word/Editor/FormFieldChanges.js index 6c839eb593..fdefa02d5d 100644 --- a/word/Editor/FormFieldChanges.js +++ b/word/Editor/FormFieldChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/GlossaryDocument.js b/word/Editor/GlossaryDocument.js index 27e7d853f4..febb4f7884 100644 --- a/word/Editor/GlossaryDocument.js +++ b/word/Editor/GlossaryDocument.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -33,14 +33,15 @@ "use strict"; var c_oAscDefaultPlaceholderName = { - Text : "DefaultPlaceholder_TEXT", - List : "DefaultPlaceholder_LIST", - DateTime : "DefaultPlaceholder_DATE", - Equation : "DefaultPlaceholder_EQUATION", - TextForm : "DefaultPlaceholder_TEXTFORM", - TextOform : "DefaultPlaceholder_TEXT_OFORM", - ListOform : "DefaultPlaceholder_LIST_OFORM", - DateOform : "DefaultPlaceholder_DATE_OFORM" + Text : "DefaultPlaceholder_TEXT", + List : "DefaultPlaceholder_LIST", + DateTime : "DefaultPlaceholder_DATE", + Equation : "DefaultPlaceholder_EQUATION", + TextForm : "DefaultPlaceholder_TEXTFORM", + TextOform : "DefaultPlaceholder_TEXT_OFORM", + ListOform : "DefaultPlaceholder_LIST_OFORM", + DateOform : "DefaultPlaceholder_DATE_OFORM", + SignatureOform : "DefaultPlaceholder_SIGNATURE_OFORM", }; /** @@ -60,14 +61,15 @@ function CGlossaryDocument(oLogicDocument) // Инициализировать нужно сразу, чтобы не было проблем с совместным редактированием this.DefaultPlaceholder = { - Text : this.private_CreateDefaultPlaceholder(c_oAscDefaultPlaceholderName.Text, AscCommon.translateManager.getValue("Your text here")), - List : this.private_CreateDefaultPlaceholder(c_oAscDefaultPlaceholderName.List, AscCommon.translateManager.getValue("Choose an item")), - DateTime : this.private_CreateDefaultPlaceholder(c_oAscDefaultPlaceholderName.DateTime, AscCommon.translateManager.getValue("Enter a date")), - Equation : this.private_CreateDefaultPlaceholder(c_oAscDefaultPlaceholderName.Equation, AscCommon.translateManager.getValue("Type equation here")), - TextForm : this.private_CreateDefaultTextFormPlaceholder(), - TextOform : this.private_CreateDefaultOformPlaceholder(c_oAscDefaultPlaceholderName.TextOform, AscCommon.translateManager.getValue("Your text here")), - ListOform : this.private_CreateDefaultOformPlaceholder(c_oAscDefaultPlaceholderName.ListOform, AscCommon.translateManager.getValue("Choose an item")), - DateOform : this.private_CreateDefaultOformPlaceholder(c_oAscDefaultPlaceholderName.DateOform, AscCommon.translateManager.getValue("Enter a date")), + Text : this.private_CreateDefaultPlaceholder(c_oAscDefaultPlaceholderName.Text, AscCommon.translateManager.getValue("Your text here")), + List : this.private_CreateDefaultPlaceholder(c_oAscDefaultPlaceholderName.List, AscCommon.translateManager.getValue("Choose an item")), + DateTime : this.private_CreateDefaultPlaceholder(c_oAscDefaultPlaceholderName.DateTime, AscCommon.translateManager.getValue("Enter a date")), + Equation : this.private_CreateDefaultPlaceholder(c_oAscDefaultPlaceholderName.Equation, AscCommon.translateManager.getValue("Type equation here")), + TextForm : this.private_CreateDefaultTextFormPlaceholder(), + TextOform : this.private_CreateDefaultOformPlaceholder(c_oAscDefaultPlaceholderName.TextOform, AscCommon.translateManager.getValue("Your text here")), + ListOform : this.private_CreateDefaultOformPlaceholder(c_oAscDefaultPlaceholderName.ListOform, AscCommon.translateManager.getValue("Choose an item")), + DateOform : this.private_CreateDefaultOformPlaceholder(c_oAscDefaultPlaceholderName.DateOform, AscCommon.translateManager.getValue("Enter a date")), + SignatureOform : this.private_CreateDefaultOformPlaceholder(c_oAscDefaultPlaceholderName.SignatureOform, AscCommon.translateManager.getValue("Signature")) }; // TODO: Реализовать работу нумерации, стилей, сносок, заданных в контентах по-нормальному @@ -230,6 +232,13 @@ CGlossaryDocument.prototype.GetDefaultPlaceholderDateOform = function() { return this.DefaultPlaceholder.DateOform; }; +/** + * @returns {CDocPart} + */ +CGlossaryDocument.prototype.GetDefaultPlaceholderSignatureOform = function() +{ + return this.DefaultPlaceholder.SignatureOform; +}; /** * @param sName * @param sText @@ -321,7 +330,8 @@ CGlossaryDocument.prototype.IsDefaultDocPart = function(oDocPart) || oDocPart === this.DefaultPlaceholder.TextForm || oDocPart === this.DefaultPlaceholder.TextOform || oDocPart === this.DefaultPlaceholder.ListOform - || oDocPart === this.DefaultPlaceholder.DateOform); + || oDocPart === this.DefaultPlaceholder.DateOform + || oDocPart === this.DefaultPlaceholder.SignatureOform); }; CGlossaryDocument.prototype.Refresh_RecalcData = function(Data) { @@ -359,6 +369,10 @@ CGlossaryDocument.prototype.GetDefaultPlaceholderDateOformDocPartId = function() { return c_oAscDefaultPlaceholderName.DateOform; }; +CGlossaryDocument.prototype.GetDefaultPlaceholderSignatureOformDocPartId = function() +{ + return c_oAscDefaultPlaceholderName.SignatureOform; +}; /** * Класс, представляющий дополнительное содержимое документа (например, для плейсхолдеров документа) diff --git a/word/Editor/GlossaryDocumentChanges.js b/word/Editor/GlossaryDocumentChanges.js index 4ce8d3d589..d007cb7fe6 100644 --- a/word/Editor/GlossaryDocumentChanges.js +++ b/word/Editor/GlossaryDocumentChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/GraphicObjects/DrawingStates.js b/word/Editor/GraphicObjects/DrawingStates.js index 3c07325c56..4a6f9a3996 100644 --- a/word/Editor/GraphicObjects/DrawingStates.js +++ b/word/Editor/GraphicObjects/DrawingStates.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -149,7 +149,7 @@ StartAddNewShape.prototype = } var oLogicDocument = this.drawingObjects.document; this.drawingObjects.resetTrackState(); - if (false == oLogicDocument instanceof AscPDF.CPDFDoc) { + if (false == Asc.editor.isPdfEditor()) { oLogicDocument.StartAction(AscDFH.historydescription_Document_AddNewShape); var bounds = oTrack.getBounds(); var shape = oTrack.getShape(true, this.drawingObjects.drawingDocument); @@ -192,23 +192,22 @@ StartAddNewShape.prototype = } else { - let oViewer = Asc.editor.getDocumentRenderer(); // рисование кистью if (Asc.editor.isInkDrawerOn()) { - oLogicDocument.CreateNewHistoryPoint(); - - // добавлем path если рисование не закончено - if (oLogicDocument.currInkInDrawingProcess && oLogicDocument.currInkInDrawingProcess.GetPage() == this.pageIndex) { - oLogicDocument.currInkInDrawingProcess.AddPath(oTrack.arrPoint); - } - else { - let nScaleY = oViewer.drawingPages[this.pageIndex].H / oViewer.file.pages[this.pageIndex].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[this.pageIndex].W / oViewer.file.pages[this.pageIndex].W / oViewer.zoom; - - var bounds = oTrack.getBounds(); - - let nLineW = oTrack.pen.w / 36000 * g_dKoef_mm_to_pix; - let aRect = [(bounds.min_x * g_dKoef_mm_to_pix - nLineW) / nScaleX, (bounds.min_y * g_dKoef_mm_to_pix - nLineW) / nScaleY, (bounds.max_x * g_dKoef_mm_to_pix + nLineW) / nScaleX, (bounds.max_y * g_dKoef_mm_to_pix + nLineW) / nScaleY]; + oLogicDocument.DoAction(function() { + // добавлем path если рисование не закончено (нужна доработка для ластика) + // if (oLogicDocument.currInkInDrawingProcess && oLogicDocument.currInkInDrawingProcess.GetPage() == this.pageIndex) { + // let aInkPath = []; + // for (let i = 0; i < oTrack.arrPoint.length; i++) { + // aInkPath.push(oTrack.arrPoint[i].x * g_dKoef_mm_to_pt); + // aInkPath.push(oTrack.arrPoint[i].y * g_dKoef_mm_to_pt); + // } + + // oLogicDocument.currInkInDrawingProcess.AddInkPath(aInkPath); + // } + let bounds = oTrack.getBounds(); + let nLineW = oTrack.pen.w / 36000 * g_dKoef_mm_to_pt; + let aRect = [(bounds.min_x * g_dKoef_mm_to_pt - nLineW), (bounds.min_y * g_dKoef_mm_to_pt - nLineW), (bounds.max_x * g_dKoef_mm_to_pt + nLineW), (bounds.max_y * g_dKoef_mm_to_pt + nLineW)]; let oInkAnnot = oLogicDocument.AddAnnot({ rect: aRect, @@ -219,33 +218,33 @@ StartAddNewShape.prototype = modDate: (new Date().getTime()).toString() }); - var shape = oInkAnnot.FillShapeByPoints(oTrack.arrPoint); - let oRGBPen = oTrack.pen.Fill.getRGBAColor(); + + let aInkPath = []; + for (let i = 0; i < oTrack.arrPoint.length; i++) { + aInkPath.push(oTrack.arrPoint[i].x * g_dKoef_mm_to_pt); + aInkPath.push(oTrack.arrPoint[i].y * g_dKoef_mm_to_pt); + } + + oInkAnnot.SetWidth(nLineW); + oInkAnnot.AddInkPath(aInkPath); oInkAnnot.SetStrokeColor([oRGBPen.R / 255, oRGBPen.G / 255, oRGBPen.B / 255]); - oInkAnnot.SetWidth(oTrack.pen.w / (36000 * g_dKoef_pt_to_mm)); oInkAnnot.SetOpacity(oTrack.pen.Fill.transparent / 255); - oInkAnnot.AddToRedraw(); - shape.recalculate(); - // запомнили добавленную Ink фигуру, к ней будем добавлять новые path пока рисование не закончится oLogicDocument.currInkInDrawingProcess = oInkAnnot; - } - - oLogicDocument.TurnOffHistory(); + }, AscDFH.historydescription_Pdf_AddAnnot, this); } else { - oLogicDocument.CreateNewHistoryPoint(); - - // добавление шейпов - let oShape = oTrack.getShape(false, this.drawingObjects.drawingDocument, oLogicDocument); - oLogicDocument.AddDrawing(oShape, this.pageIndex); - oLogicDocument.SetMouseDownObject(oShape); - oShape.select(oLogicDocument.GetController(), this.pageIndex); - - oLogicDocument.TurnOffHistory(); - bRet = true; + oLogicDocument.DoAction(function() { + // добавление шейпов + let oShape = oTrack.getShape(false, this.drawingObjects.drawingDocument, oLogicDocument); + oLogicDocument.AddDrawing(oShape, this.pageIndex); + oLogicDocument.SetMouseDownObject(oShape); + oShape.select(oLogicDocument.GetController(), this.pageIndex); + + bRet = true; + }, AscDFH.historydescription_Document_AddNewShape, this); } } } @@ -816,131 +815,114 @@ RotateState.prototype = let oViewer = Asc.editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); - oDoc.SetGlobalHistory(); - oDoc.CreateNewHistoryPoint({objects: aTracks.map(function(track) { - return track.originalObject; - })}); - - for (i = 0; i < aTracks.length; ++i) - { - var oTrack = aTracks[i]; - bounds = oTrack.getBounds(); - - oTrack.trackEnd(oTrack.originalObject.IsAnnot()); - - // для аннотаций свой расчет ректа и точек, потому что меняем саму геометрию при редактировании - if (oTrack.originalObject.IsAnnot() && (oTrack instanceof AscFormat.ResizeTrackShapeImage || oTrack instanceof AscFormat.EditShapeGeometryTrack)) { - let oAnnot = oTrack.originalObject; - let aRect = [bounds.posX * g_dKoef_mm_to_pix, bounds.posY * g_dKoef_mm_to_pix, (bounds.posX + bounds.extX) * g_dKoef_mm_to_pix, (bounds.posY + bounds.extY) * g_dKoef_mm_to_pix]; - - if (oTrack.originalFlipV != oTrack.resizedflipV) - oDoc.History.Add(new CChangesPDFInkFlipV(oAnnot, oTrack.originalFlipV, oTrack.resizedflipV)); - if (oTrack.originalFlipH != oTrack.resizedflipH) - oDoc.History.Add(new CChangesPDFInkFlipH(oAnnot, oTrack.originalFlipH, oTrack.resizedflipH)); - - if (oAnnot.IsLine()) { + oDoc.DoAction(function() { + for (i = 0; i < aTracks.length; ++i) + { + var oTrack = aTracks[i]; + bounds = oTrack.getBounds(); - let aPaths = oTrack.geometry.pathLst[0].ArrPathCommand; - - let nPage = oAnnot.GetPage(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - let aLinePoints = []; - let oTranform = oAnnot.transform; - // считаем новые точки linePoints (в оригинальных координатах - в пикселях, без скейлов) - aLinePoints.push(oTranform.TransformPointX(aPaths[0].X, 0) * g_dKoef_mm_to_pix / nScaleX) - aLinePoints.push(oTranform.TransformPointY(0, aPaths[0].Y) * g_dKoef_mm_to_pix / nScaleY) - aLinePoints.push(oTranform.TransformPointX(aPaths[1].X, 0) * g_dKoef_mm_to_pix / nScaleX) - aLinePoints.push(oTranform.TransformPointY(0, aPaths[1].Y) * g_dKoef_mm_to_pix / nScaleY) - - oAnnot.SetLinePoints(aLinePoints); - oAnnot.SetRect(oAnnot.GetMinShapeRect()); - } - else if (oAnnot.IsPolygon()) { - // меняем только редактируемую точку в массиве vertices - var pageObject = oViewer.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); - let aVertices = oAnnot.GetVertices().slice(); - - // если редактируется последняя точка, то надо отредактировать ещё начальную (только у Polygon, в случае если первая совпадает с последней) - let nStartPos = (oTrack.gmEditPtIdx + 1) * 2; - - let nFirstX = aVertices[0]; - let nFirstY = aVertices[1]; - let nLastX = aVertices[aVertices.length - 2]; - let nLastY = aVertices[aVertices.length - 1]; - - if (nStartPos == aVertices.length - 2 && nFirstX == nLastX && nFirstY == nLastY) { - aVertices.splice(0, 2, pageObject.x, pageObject.y); - } - - let nPage = oAnnot.GetPage(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - aVertices.splice(nStartPos, 2, pageObject.x, pageObject.y); - oAnnot.SetVertices(aVertices); - - // расширяем рект на ширину линии (или на радиус cloud бордера) - let nLineWidth = oAnnot.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; - if (oAnnot.GetBorderEffectStyle() === AscPDF.BORDER_EFFECT_STYLES.Cloud) { - aRect[0] -= oAnnot.GetBorderEffectIntensity() * 2 * g_dKoef_mm_to_pix * nScaleX; - aRect[1] -= oAnnot.GetBorderEffectIntensity() * 2 * g_dKoef_mm_to_pix * nScaleY; - aRect[2] += oAnnot.GetBorderEffectIntensity() * 2 * g_dKoef_mm_to_pix * nScaleX; - aRect[3] += oAnnot.GetBorderEffectIntensity() * 2 * g_dKoef_mm_to_pix * nScaleY; + oTrack.trackEnd(false); + + // для аннотаций свой расчет ректа и точек, потому что меняем саму геометрию при редактировании + if (oTrack.originalObject.IsAnnot() && (oTrack instanceof AscFormat.ResizeTrackShapeImage || oTrack instanceof AscFormat.EditShapeGeometryTrack)) { + let oAnnot = oTrack.originalObject; + let aRect = [bounds.posX * g_dKoef_mm_to_pt, bounds.posY * g_dKoef_mm_to_pt, (bounds.posX + bounds.extX) * g_dKoef_mm_to_pt, (bounds.posY + bounds.extY) * g_dKoef_mm_to_pt]; + + if (oTrack.originalFlipV != oTrack.resizedflipV) + oDoc.History.Add(new CChangesPDFInkFlipV(oAnnot, oTrack.originalFlipV, oTrack.resizedflipV)); + if (oTrack.originalFlipH != oTrack.resizedflipH) + oDoc.History.Add(new CChangesPDFInkFlipH(oAnnot, oTrack.originalFlipH, oTrack.resizedflipH)); + + if (oAnnot.IsLine()) { + + let aPaths = oTrack.geometry.pathLst[0].ArrPathCommand; + + let aLinePoints = []; + let oTranform = oAnnot.transform; + // считаем новые точки linePoints (в оригинальных координатах - в пикселях, без скейлов) + aLinePoints.push(oTranform.TransformPointX(aPaths[0].X, 0) * g_dKoef_mm_to_pt) + aLinePoints.push(oTranform.TransformPointY(0, aPaths[0].Y) * g_dKoef_mm_to_pt) + aLinePoints.push(oTranform.TransformPointX(aPaths[1].X, 0) * g_dKoef_mm_to_pt) + aLinePoints.push(oTranform.TransformPointY(0, aPaths[1].Y) * g_dKoef_mm_to_pt) + + oAnnot.SetLinePoints(aLinePoints); + oAnnot.SetRect(oAnnot.GetMinShapeRect()); + } + else if (oAnnot.IsPolygon()) { + // меняем только редактируемую точку в массиве vertices + var pageObject = oViewer.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); + let aVertices = oAnnot.GetVertices().slice(); + + // если редактируется последняя точка, то надо отредактировать ещё начальную (только у Polygon, в случае если первая совпадает с последней) + let nStartPos = (oTrack.gmEditPtIdx + 1) * 2; + + let nFirstX = aVertices[0]; + let nFirstY = aVertices[1]; + let nLastX = aVertices[aVertices.length - 2]; + let nLastY = aVertices[aVertices.length - 1]; + + if (nStartPos == aVertices.length - 2 && nFirstX == nLastX && nFirstY == nLastY) { + aVertices.splice(0, 2, pageObject.x, pageObject.y); + } + + aVertices.splice(nStartPos, 2, pageObject.x, pageObject.y); + oAnnot.SetVertices(aVertices); + + // расширяем рект на ширину линии (или на радиус cloud бордера) + let nLineWidth = oAnnot.GetWidth(); + if (oAnnot.GetBorderEffectStyle() === AscPDF.BORDER_EFFECT_STYLES.Cloud) { + aRect[0] -= oAnnot.GetBorderEffectIntensity() * 2 * g_dKoef_mm_to_pt; + aRect[1] -= oAnnot.GetBorderEffectIntensity() * 2 * g_dKoef_mm_to_pt; + aRect[2] += oAnnot.GetBorderEffectIntensity() * 2 * g_dKoef_mm_to_pt; + aRect[3] += oAnnot.GetBorderEffectIntensity() * 2 * g_dKoef_mm_to_pt; + } + else { + aRect[0] -= nLineWidth; + aRect[1] -= nLineWidth; + aRect[2] += nLineWidth; + aRect[3] += nLineWidth; + } + + oAnnot.SetRect(aRect); + } + else if (oAnnot.IsPolyLine()) { + // меняем только редактируемую точку в массиве vertices + var pageObject = oViewer.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); + let aVertices = oAnnot.GetVertices().slice(); + let nStartPos = oTrack.gmEditPtIdx * 2; + + aVertices.splice(nStartPos, 2, pageObject.x, pageObject.y); + oAnnot.SetVertices(aVertices); + + // расширяем рект на ширину линии + let nLineWidth = oAnnot.GetWidth(); + aRect[0] -= nLineWidth; + aRect[1] -= nLineWidth; + aRect[2] += nLineWidth; + aRect[3] += nLineWidth; + + // у polyline могут быть окончания линии, их тоже учитываем + let aResultRect = aRect; + if (oAnnot.IsPolyLine()) { + let aMinShapeRect = oAnnot.GetMinShapeRect(); + aResultRect = AscPDF.unionRectangles([aRect, aMinShapeRect]); + } + + oAnnot.SetRect(aResultRect); + } + else { + oAnnot.SetRect(aRect); + } } - else { - aRect[0] -= nLineWidth * nScaleX; - aRect[1] -= nLineWidth * nScaleY; - aRect[2] += nLineWidth * nScaleX; - aRect[3] += nLineWidth * nScaleY; + if (oTrack.originalObject.IsDrawing() && oTrack instanceof AscFormat.MoveShapeImageTrack) { + if (oTrack.pageIndex != oTrack.originalObject.GetPage()) { + oTrack.originalObject.SetPage(oTrack.pageIndex); + } } - - oAnnot.SetRect(aRect); - } - else if (oAnnot.IsPolyLine()) { - // меняем только редактируемую точку в массиве vertices - var pageObject = oViewer.getPageByCoords(AscCommon.global_mouseEvent.X, AscCommon.global_mouseEvent.Y); - let aVertices = oAnnot.GetVertices().slice(); - let nStartPos = oTrack.gmEditPtIdx * 2; - let nPage = oAnnot.GetPage(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; - - aVertices.splice(nStartPos, 2, pageObject.x, pageObject.y); - oAnnot.SetVertices(aVertices); - - // расширяем рект на ширину линии - let nLineWidth = oAnnot.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; - aRect[0] -= nLineWidth * nScaleX; - aRect[1] -= nLineWidth * nScaleY; - aRect[2] += nLineWidth * nScaleX; - aRect[3] += nLineWidth * nScaleY; - - // у polyline могут быть окончания линии, их тоже учитываем - let aResultRect = aRect; - if (oAnnot.IsPolyLine()) { - let aMinShapeRect = oAnnot.GetMinShapeRect(); - aResultRect = AscPDF.unionRectangles([aRect, aMinShapeRect]); - } - - oAnnot.SetRect(aResultRect); - } - else { - oAnnot.SetRect(aRect); - } - } - if (oTrack.originalObject.IsDrawing() && oTrack instanceof AscFormat.MoveShapeImageTrack) { - if (pageIndex != oTrack.originalObject.pageIndex) { - oTrack.originalObject.SetPage(pageIndex); + oTrack.originalObject.SetNeedRecalc(true); } - } - - oTrack.originalObject.SetNeedRecalc(true); - } - - oDoc.TurnOffHistory(); + }, AscDFH.historydescription_Document_RotateFlowDrawingNoCtrl, this); this.drawingObjects.changeCurrentState(new NullState(this.drawingObjects)); this.drawingObjects.clearTrackObjects(); @@ -970,11 +952,15 @@ RotateState.prototype = var i, j, page_index, para_drawing; for(i = 0; i < aTracks.length; ++i) { - aDrawings[i] = aTracks[i].originalObject.parent; - bounds = aTracks[i].getBounds(); + let oTrack = aTracks[i]; + let oDrawing = oTrack.originalObject; + let oParaDrawing = oDrawing.GetParaDrawing() + aDrawings[i] = oParaDrawing; + bounds = oTrack.getBounds(); aBounds.push(bounds); - page_index = AscFormat.isRealNumber(aTracks[i].pageIndex) ? aTracks[i].pageIndex : aTracks[i].originalObject.parent.pageIndex; - nearest_pos = this.drawingObjects.document.Get_NearestPos(page_index, bounds.min_x, bounds.min_y, true, aTracks[i].originalObject.parent); + page_index = AscFormat.isRealNumber(oTrack.pageIndex) ? oTrack.pageIndex : oParaDrawing.pageIndex; + nearest_pos = this.drawingObjects.document.Get_NearestPos(page_index, bounds.min_x, bounds.min_y, true, oParaDrawing); + nearest_pos.Paragraph.MoveCursorToAnchorPos(nearest_pos); aNearestPos.push(nearest_pos); aParentParagraphs.push(aDrawings[i].Get_ParentParagraph()); } @@ -1027,8 +1013,13 @@ RotateState.prototype = { para_drawing.AddToParagraph(aDrawings[i].Get_ParentParagraph()); } - this.drawingObjects.selectObject(para_drawing.GraphicObj, pageIndex); } + //ToDo: Do not Select drawing on ParaDrawing.prototype.AddToDocument + for(i = 0; i < aDrawingsToAdd.length; ++i) + { + para_drawing = aDrawingsToAdd[i]; + this.drawingObjects.selectObject(para_drawing.GraphicObj, pageIndex); + } this.drawingObjects.document.Recalculate(); this.drawingObjects.document.FinalizeAction(); } @@ -1692,7 +1683,7 @@ MoveInGroupState.prototype = { !isPdf && this.drawingObjects.document.StartAction(AscDFH.historydescription_Document_MoveInGroup); var i; - if(this instanceof MoveInGroupState && e.CtrlKey && !this.hasObjectInSmartArt) + if(this instanceof MoveInGroupState && e.CtrlKey && !this.hasObjectInSmartArt && !isPdf) { this.group.resetSelection(); for(i = 0; i < tracks.length; ++i) @@ -1755,9 +1746,6 @@ MoveInGroupState.prototype = else { let oViewer = Asc.editor.getDocumentRenderer(); let oDoc = oViewer.getPDFDoc(); - let nPage = this.group.GetPage(); - let nScaleY = oViewer.drawingPages[nPage].H / oViewer.file.pages[nPage].H / oViewer.zoom; - let nScaleX = oViewer.drawingPages[nPage].W / oViewer.file.pages[nPage].W / oViewer.zoom; let xMin; let yMin; @@ -1768,13 +1756,13 @@ MoveInGroupState.prototype = let oFreeTextRect = oFreeText.GetRect(); let aTextBoxRect = oFreeText.GetTextBoxRect(); let aCallout = oFreeText.GetCallout(); - let aNewCallout = aCallout ? aCallout.slice() : null; + let aNewCallout = aCallout.slice(); let aCurRD = oFreeText.GetRectangleDiff(); let aNewRD = []; let aNewRect = []; function findBoundingRectangle(points) { - if (!points) { + if (!points || points.length == 0) { return null; } @@ -1794,60 +1782,76 @@ MoveInGroupState.prototype = } let oTrack = tracks[0]; + if (!oTrack) { + return; + } + if (this.majorObject.getPresetGeom() == "line") { // если изменяли callout if (this.handleNum == 0) { // x1, y1 точка callout let oXY = oTrack.correctXYForPdfFreeText(x, y); - aNewCallout[0 * 2] = oXY.x * g_dKoef_mm_to_pix / nScaleX; - aNewCallout[0 * 2 + 1] = oXY.y * g_dKoef_mm_to_pix / nScaleY; + aNewCallout[0 * 2] = oXY.x * g_dKoef_mm_to_pt; + aNewCallout[0 * 2 + 1] = oXY.y * g_dKoef_mm_to_pt; } else if (this.handleNum === 4) { // x2, y2 точка callout let oXY = oTrack.correctXYForPdfFreeText(x, y); - aNewCallout[1 * 2] = oXY.x * g_dKoef_mm_to_pix / nScaleX; - aNewCallout[1 * 2 + 1] = oXY.y * g_dKoef_mm_to_pix / nScaleY; + aNewCallout[1 * 2] = oXY.x * g_dKoef_mm_to_pt; + aNewCallout[1 * 2 + 1] = oXY.y * g_dKoef_mm_to_pt; + } + + let aNewTextBoxRect = aTextBoxRect.slice(); + // расширяем рект на ширину линии (или на радиус cloud бордера) + let nLineWidth = oFreeText.GetWidth(); + if (oFreeText.GetBorderEffectStyle() === AscPDF.BORDER_EFFECT_STYLES.Cloud) { + aNewTextBoxRect[0] -= oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pt; + aNewTextBoxRect[1] -= oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pt; + aNewTextBoxRect[2] += oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pt; + aNewTextBoxRect[3] += oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pt; + } + else { + aNewTextBoxRect[0] -= nLineWidth; + aNewTextBoxRect[1] -= nLineWidth; + aNewTextBoxRect[2] += nLineWidth; + aNewTextBoxRect[3] += nLineWidth; } // находим рект стрелки, учитывая окончание линии let aArrowRect = oFreeText.GetArrowRect([aNewCallout[2], aNewCallout[3], aNewCallout[0], aNewCallout[1]]) - aNewRect = AscPDF.unionRectangles([aArrowRect, aTextBoxRect, findBoundingRectangle(aNewCallout)]).map(function(measure, idx) { - return idx % 2 ? measure * nScaleY : measure * nScaleX; - }); + aNewRect = AscPDF.unionRectangles([aArrowRect, aNewTextBoxRect, findBoundingRectangle(aNewCallout)]); // пересчитываем RD. aNewRD = [ - aCurRD[0] + (oFreeTextRect[0] - aNewRect[0]) / nScaleX, - aCurRD[1] + (oFreeTextRect[1] - aNewRect[1]) / nScaleY, - aCurRD[2] + (aNewRect[2] - oFreeTextRect[2]) / nScaleX, - aCurRD[3] + (aNewRect[3] - oFreeTextRect[3]) / nScaleY + aCurRD[0] + (oFreeTextRect[0] - aNewRect[0]), + aCurRD[1] + (oFreeTextRect[1] - aNewRect[1]), + aCurRD[2] + (aNewRect[2] - oFreeTextRect[2]), + aCurRD[3] + (aNewRect[3] - oFreeTextRect[3]) ]; } else { // находим координаты textbox - xMin = oTrack.transform.TransformPointX(0, 0) * g_dKoef_mm_to_pix; - yMin = oTrack.transform.TransformPointY(0, 0) * g_dKoef_mm_to_pix; + xMin = oTrack.transform.TransformPointX(0, 0) * g_dKoef_mm_to_pt; + yMin = oTrack.transform.TransformPointY(0, 0) * g_dKoef_mm_to_pt; if (oTrack.resizedExtX) { - xMax = (oTrack.transform.TransformPointX(0, 0) + oTrack.resizedExtX) * g_dKoef_mm_to_pix; + xMax = (oTrack.transform.TransformPointX(0, 0) + oTrack.resizedExtX) * g_dKoef_mm_to_pt; } else { - xMax = (oTrack.transform.TransformPointX(0, 0) + oTrack.originalShape.extX) * g_dKoef_mm_to_pix; + xMax = (oTrack.transform.TransformPointX(0, 0) + oTrack.originalShape.extX) * g_dKoef_mm_to_pt; } if (oTrack.resizedExtY) { - yMax = (oTrack.transform.TransformPointY(0, 0) + oTrack.resizedExtY) * g_dKoef_mm_to_pix; + yMax = (oTrack.transform.TransformPointY(0, 0) + oTrack.resizedExtY) * g_dKoef_mm_to_pt; } else { - yMax = (oTrack.transform.TransformPointY(0, 0) + oTrack.originalShape.extY) * g_dKoef_mm_to_pix; + yMax = (oTrack.transform.TransformPointY(0, 0) + oTrack.originalShape.extY) * g_dKoef_mm_to_pt; } // находим точку выхода callout для нового ректа textbox - let nCalloutExitPos = oFreeText.GetCalloutExitPos([xMin, yMin, xMax, yMax].map(function(measure, idx) { - return idx % 2 ? measure / nScaleY : measure / nScaleX; - })); + let nCalloutExitPos = oFreeText.GetCalloutExitPos([xMin, yMin, xMax, yMax]); // значит стрелка внутри textbox, нужно скорректировать координаты textbox if (nCalloutExitPos == undefined) { - let x = aNewCallout[0 * 2] * nScaleX; - let y = aNewCallout[0 * 2 + 1] * nScaleY; + let x = aNewCallout[0 * 2]; + let y = aNewCallout[0 * 2 + 1]; // Проверяем, находится ли точка внутри прямоугольника if (x > xMin && x < xMax && y > yMin && y < yMax) { @@ -1887,89 +1891,88 @@ MoveInGroupState.prototype = } } - nCalloutExitPos = oFreeText.GetCalloutExitPos([xMin, yMin, xMax, yMax].map(function(measure, idx) { - return idx % 2 ? measure / nScaleY : measure / nScaleX; - })); + nCalloutExitPos = oFreeText.GetCalloutExitPos([xMin, yMin, xMax, yMax]); } // пересчитываем callout switch (nCalloutExitPos) { case AscPDF.CALLOUT_EXIT_POS.left: { // точка выхода (x3, y3) - aNewCallout[2 * 2] = xMin / nScaleX; - aNewCallout[2 * 2 + 1] = (yMin + (yMax - yMin) / 2) / nScaleY; + aNewCallout[2 * 2] = xMin; + aNewCallout[2 * 2 + 1] = (yMin + (yMax - yMin) / 2); // точка начала стрелки - aNewCallout[2 * 1] = xMin / nScaleX - oFreeText.defaultPerpLength; - aNewCallout[2 * 1 + 1] = (yMin + (yMax - yMin) / 2) / nScaleY; + aNewCallout[2 * 1] = xMin - oFreeText.defaultPerpLength; + aNewCallout[2 * 1 + 1] = (yMin + (yMax - yMin) / 2); break; } case AscPDF.CALLOUT_EXIT_POS.top: { - aNewCallout[2 * 2] = (xMin + (xMax - xMin) / 2) / nScaleX; - aNewCallout[2 * 2 + 1] = yMin / nScaleY; + aNewCallout[2 * 2] = (xMin + (xMax - xMin) / 2); + aNewCallout[2 * 2 + 1] = yMin; - aNewCallout[2 * 1] = (xMin + (xMax - xMin) / 2) / nScaleX; - aNewCallout[2 * 1 + 1] = yMin / nScaleY - oFreeText.defaultPerpLength; + aNewCallout[2 * 1] = (xMin + (xMax - xMin) / 2); + aNewCallout[2 * 1 + 1] = yMin - oFreeText.defaultPerpLength; break; } case AscPDF.CALLOUT_EXIT_POS.right: { - aNewCallout[2 * 2] = xMax / nScaleX; - aNewCallout[2 * 2 + 1] = (yMin + (yMax - yMin) / 2) / nScaleY; + aNewCallout[2 * 2] = xMax; + aNewCallout[2 * 2 + 1] = (yMin + (yMax - yMin) / 2); - aNewCallout[2 * 1] = xMax / nScaleX + oFreeText.defaultPerpLength; - aNewCallout[2 * 1 + 1] = (yMin + (yMax - yMin) / 2) / nScaleY; + aNewCallout[2 * 1] = xMax + oFreeText.defaultPerpLength; + aNewCallout[2 * 1 + 1] = (yMin + (yMax - yMin) / 2); break; } case AscPDF.CALLOUT_EXIT_POS.bottom: { - aNewCallout[2 * 2] = (xMin + (xMax - xMin) / 2) / nScaleX; - aNewCallout[2 * 2 + 1] = yMax / nScaleY; + aNewCallout[2 * 2] = (xMin + (xMax - xMin) / 2); + aNewCallout[2 * 2 + 1] = yMax; - aNewCallout[2 * 1] = (xMin + (xMax - xMin) / 2) / nScaleX; - aNewCallout[2 * 1 + 1] = yMax / nScaleY + oFreeText.defaultPerpLength; + aNewCallout[2 * 1] = (xMin + (xMax - xMin) / 2); + aNewCallout[2 * 1 + 1] = yMax + oFreeText.defaultPerpLength; break; } } - let aNewTextBoxRect = [xMin / nScaleX, yMin / nScaleY, xMax / nScaleX, yMax / nScaleY]; + let aNewTextBoxRect = [xMin, yMin, xMax, yMax]; // расширяем рект на ширину линии (или на радиус cloud бордера) - let nLineWidth = oFreeText.GetWidth() * g_dKoef_pt_to_mm * g_dKoef_mm_to_pix; + let nLineWidth = oFreeText.GetWidth(); if (oFreeText.GetBorderEffectStyle() === AscPDF.BORDER_EFFECT_STYLES.Cloud) { - aNewTextBoxRect[0] -= oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pix * nScaleX; - aNewTextBoxRect[1] -= oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pix * nScaleY; - aNewTextBoxRect[2] += oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pix * nScaleX; - aNewTextBoxRect[3] += oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pix * nScaleY; + aNewTextBoxRect[0] -= oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pt; + aNewTextBoxRect[1] -= oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pt; + aNewTextBoxRect[2] += oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pt; + aNewTextBoxRect[3] += oFreeText.GetBorderEffectIntensity() * 1.5 * g_dKoef_mm_to_pt; } else { - aNewTextBoxRect[0] -= nLineWidth * nScaleX; - aNewTextBoxRect[1] -= nLineWidth * nScaleY; - aNewTextBoxRect[2] += nLineWidth * nScaleX; - aNewTextBoxRect[3] += nLineWidth * nScaleY; + aNewTextBoxRect[0] -= nLineWidth; + aNewTextBoxRect[1] -= nLineWidth; + aNewTextBoxRect[2] += nLineWidth; + aNewTextBoxRect[3] += nLineWidth; } // находим рект стрелки, учитывая окончание линии - let aArrowRect = aNewCallout ? oFreeText.GetArrowRect([aNewCallout[2], aNewCallout[3], aNewCallout[0], aNewCallout[1]]) : null; + let aArrowRect = aNewCallout.length ? oFreeText.GetArrowRect([aNewCallout[2], aNewCallout[3], aNewCallout[0], aNewCallout[1]]) : null; // находим результирующий rect аннотации - aNewRect = AscPDF.unionRectangles([aArrowRect, aNewTextBoxRect, findBoundingRectangle(aNewCallout)]).map(function(measure, idx) { - return idx % 2 ? measure * nScaleY : measure * nScaleX; - }); + aNewRect = AscPDF.unionRectangles([aArrowRect, aNewTextBoxRect, findBoundingRectangle(aNewCallout)]); // пересчитываем RD. aNewRD = [ - (xMin - aNewRect[0]) / nScaleX, - (yMin - aNewRect[1]) / nScaleY, - (aNewRect[2] - xMax) / nScaleX, - (aNewRect[3] - yMax) / nScaleY + (xMin - aNewRect[0]), + (yMin - aNewRect[1]), + (aNewRect[2] - xMax), + (aNewRect[3] - yMax) ]; } - oDoc.CreateNewHistoryPoint(); - oFreeText.SetCallout(aNewCallout); - oFreeText.SetRectangleDiff(aNewRD); - oFreeText.SetRect(aNewRect); - oFreeText.onAfterMove(); - oViewer.DrawingObjects.drawingObjects.length = 0; - oDoc.TurnOffHistory(); + oDoc.DoAction(function() { + if (aNewCallout.length != 0) { + oFreeText.SetCallout(aNewCallout); + } + + oFreeText.SetRectangleDiff(aNewRD); + oFreeText.SetRect(aNewRect); + oFreeText.onAfterMove(); + oViewer.DrawingObjects.drawingObjects.length = 0; + }, AscDFH.historydescription_Pdf_FreeTextGeom, this); } } if (isPdf) { diff --git a/word/Editor/GraphicObjects/Format/ChartSpacePrototype.js b/word/Editor/GraphicObjects/Format/ChartSpacePrototype.js index d7e89909ad..e8b6adb106 100644 --- a/word/Editor/GraphicObjects/Format/ChartSpacePrototype.js +++ b/word/Editor/GraphicObjects/Format/ChartSpacePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -522,7 +522,6 @@ CChartSpace.prototype.updateTransformMatrix = function() this.checkShapeChildTransform(oParentTransform); }; CChartSpace.prototype.getArrayWrapIntervals = CShape.prototype.getArrayWrapIntervals; -CChartSpace.prototype.getDrawingObjectsController = CShape.prototype.getDrawingObjectsController; //CChartSpace.prototype.Refresh_RecalcData = function(data) //{ // this.addToRecalculate(); diff --git a/word/Editor/GraphicObjects/Format/GroupPrototype.js b/word/Editor/GraphicObjects/Format/GroupPrototype.js index ebcd94af15..194b1c622e 100644 --- a/word/Editor/GraphicObjects/Format/GroupPrototype.js +++ b/word/Editor/GraphicObjects/Format/GroupPrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/GraphicObjects/Format/ImagePrototype.js b/word/Editor/GraphicObjects/Format/ImagePrototype.js index c27ec289fe..1338ea8c0a 100644 --- a/word/Editor/GraphicObjects/Format/ImagePrototype.js +++ b/word/Editor/GraphicObjects/Format/ImagePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/GraphicObjects/Format/ShapePrototype.js b/word/Editor/GraphicObjects/Format/ShapePrototype.js index 32adc58d1a..a9bf6b741c 100644 --- a/word/Editor/GraphicObjects/Format/ShapePrototype.js +++ b/word/Editor/GraphicObjects/Format/ShapePrototype.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1227,7 +1227,7 @@ CShape.prototype.setStartPage = function(pageIndex, bNoResetSelectPage, bCheckCo { return true; } - else if (para_FieldChar === oItem.Type && oItem.IsSeparate()) + else if (para_FieldChar === oItem.Type && oItem.IsEnd()) { var oComplexField = oItem.GetComplexField(); if (oComplexField) diff --git a/word/Editor/GraphicObjects/GraphicObjects.js b/word/Editor/GraphicObjects/GraphicObjects.js index f9e84ccceb..3c276b7d3b 100644 --- a/word/Editor/GraphicObjects/GraphicObjects.js +++ b/word/Editor/GraphicObjects/GraphicObjects.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -3294,8 +3294,8 @@ CGraphicObjects.prototype = { // Обновляем позицию курсора, чтобы проскроллиться к заданной позиции var oDrawingDocument = oLogicDocument.GetDrawingDocument(); - oDrawingDocument.m_oWordControl.ScrollToPosition(oParaDrawing.GraphicObj.x, oParaDrawing.GraphicObj.y, oParaDrawing.PageNum, oParaDrawing.GraphicObj.extY); - + oDrawingDocument.m_oWordControl.ScrollToPosition(oParaDrawing.GraphicObj.transform.tx, oParaDrawing.GraphicObj.transform.ty, oParaDrawing.PageNum, oParaDrawing.GraphicObj.extY); + return { X : oParaDrawing.GraphicObj.x, Y : oParaDrawing.GraphicObj.y, diff --git a/word/Editor/GraphicObjects/GraphicPage.js b/word/Editor/GraphicObjects/GraphicPage.js index fec17ee1cc..14b56fd567 100644 --- a/word/Editor/GraphicObjects/GraphicPage.js +++ b/word/Editor/GraphicObjects/GraphicPage.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/GraphicObjects/WrapManager.js b/word/Editor/GraphicObjects/WrapManager.js index 06fad53af5..ae6da29299 100644 --- a/word/Editor/GraphicObjects/WrapManager.js +++ b/word/Editor/GraphicObjects/WrapManager.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/HeaderFooter.js b/word/Editor/HeaderFooter.js index db971fa856..469b7c20cd 100644 --- a/word/Editor/HeaderFooter.js +++ b/word/Editor/HeaderFooter.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1017,14 +1017,14 @@ CHeaderFooter.prototype = { return this.Content.RemoveSelection(bNoCheckDrawing); }, - + DrawSelectionOnPage : function(CurPage) - { - if (CurPage !== this.GetPage()) - return; - - return this.Content.DrawSelectionOnPage(0, true, true); - }, + { + if (CurPage !== this.GetPage()) + return; + + return this.Content.DrawSelectionOnPage(0); + }, Selection_SetStart : function(X,Y, PageIndex, MouseEvent) { diff --git a/word/Editor/HeaderFooterController.js b/word/Editor/HeaderFooterController.js index 340ff83a68..dbb96ec0d4 100644 --- a/word/Editor/HeaderFooterController.js +++ b/word/Editor/HeaderFooterController.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/History.js b/word/Editor/History.js index e1fe29a92c..7831bae984 100644 --- a/word/Editor/History.js +++ b/word/Editor/History.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -72,6 +72,7 @@ NotesEnd : false, NotesEndPage : 0, LineNumbers : false, + ResetCache : false, Update : true }; @@ -607,6 +608,20 @@ CHistory.prototype = this.RecalculateData.NotesEndPage = Data.PageNum; break; } + case AscDFH.historyitem_recalctype_FromStart: + { + this.RecalculateData.Inline.Pos = 0; + this.RecalculateData.Inline.PageNum = 0; + this.RecalculateData.Flow = []; + this.RecalculateData.HdrFtr = []; + this.RecalculateData.Drawings.All = true; + this.RecalculateData.Drawings.Map = {}; + this.RecalculateData.Tables = []; + this.RecalculateData.NumPr = []; + this.RecalculateData.NotesEnd = false; + this.RecalculateData.NotesEndPage = 0; + this.RecalculateData.ResetCache = true; + } } }, @@ -680,7 +695,7 @@ CHistory.prototype = this.RecalculateData.Update = false; for (var NumId in this.RecalculateData.NumPr) { - var NumPr = new CNumPr(); + var NumPr = new AscWord.NumPr(); NumPr.NumId = NumId; for (var Lvl = 0; Lvl < 9; ++Lvl) { @@ -1176,6 +1191,7 @@ CHistory.prototype.private_UpdateContentChangesOnRedo = function(Item) }; CHistory.prototype.private_IsContentChange = function(Class, Data) { + // TODO: Заменить на проверку через change.IsContentChange var bPresentation = !(typeof CPresentation === "undefined"); var bSlide = !(typeof Slide === "undefined"); if ( ( Class instanceof CDocument && ( AscDFH.historyitem_Document_AddItem === Data.Type || AscDFH.historyitem_Document_RemoveItem === Data.Type ) ) || @@ -1324,6 +1340,7 @@ CHistory.prototype.private_ClearRecalcData = function() ChangedStyles : {}, ChangedNums : {}, LineNumbers : false, + ResetCache : false, AllParagraphs : null }; }; @@ -1353,6 +1370,7 @@ CHistory.prototype.private_ClearRecalcData = function() ChangedStyles : {}, ChangedNums : {}, LineNumbers : false, + ResetCache : false, AllParagraphs : null }; @@ -1512,15 +1530,47 @@ CHistory.prototype.private_PostProcessingRecalcData = function() if ((AscDFH.historydescription_Document_AddLetter === oPoint.Description || AscDFH.historydescription_Document_AddLetterUnion === oPoint.Description || AscDFH.historydescription_Document_SpaceButton === oPoint.Description - || AscDFH.historydescription_Presentation_ParagraphAdd === oPoint.Description) + || AscDFH.historydescription_Presentation_ParagraphAdd === oPoint.Description + || AscDFH.historydescription_Document_PasteHotKey === oPoint.Description) && nItemsCount > 0) { - var oChange = oPoint.Items[nItemsCount - 1].Data; - if (!oChange || !oChange.IsContentChange()) - return false; - - var nChangeItemsCount = oChange.GetItemsCount(); - return (nChangeItemsCount > 0 && AscDFH.historyitem_ParaRun_AddItem === oChange.GetType() && oChange.GetItem(nChangeItemsCount - 1) === oLastElement); + if (AscDFH.historydescription_Document_PasteHotKey === oPoint.Description) + { + // Последний добавленный элемент во время вставки был до AscDFH.historyitem_ParaRun_OnStartSplit + let splitCounter = 0; + for (let changeIndex = oPoint.Items.length - 1; changeIndex >= 0; --changeIndex) + { + let change = oPoint.Items[changeIndex].Data; + if (!change) + continue; + + if (AscDFH.historyitem_ParaRun_OnEndSplit === change.GetType()) + { + ++splitCounter; + continue; + } + else if (AscDFH.historyitem_ParaRun_OnStartSplit === change.GetType()) + { + --splitCounter; + continue; + } + + if (splitCounter > 0 || !change.IsContentChange() || AscDFH.historyitem_ParaRun_AddItem !== change.GetType()) + continue; + + let nChangeItemsCount = change.GetItemsCount(); + return (nChangeItemsCount > 0 && change.GetItem(nChangeItemsCount - 1) === oLastElement); + } + } + else + { + var oChange = oPoint.Items[nItemsCount - 1].Data; + if (!oChange || !oChange.IsContentChange()) + return false; + + let nChangeItemsCount = oChange.GetItemsCount(); + return (nChangeItemsCount > 0 && AscDFH.historyitem_ParaRun_AddItem === oChange.GetType() && oChange.GetItem(nChangeItemsCount - 1) === oLastElement); + } } return false; diff --git a/word/Editor/Hyperlink.js b/word/Editor/Hyperlink.js index f6c09225bb..ff9f3f8368 100644 --- a/word/Editor/Hyperlink.js +++ b/word/Editor/Hyperlink.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/HyperlinkChanges.js b/word/Editor/HyperlinkChanges.js index 6d769dc99c..583b6a16af 100644 --- a/word/Editor/HyperlinkChanges.js +++ b/word/Editor/HyperlinkChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/InsertDocumentFile.js b/word/Editor/InsertDocumentFile.js new file mode 100644 index 0000000000..95b788140a --- /dev/null +++ b/word/Editor/InsertDocumentFile.js @@ -0,0 +1,259 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +(function (undefined) { + function CInsertDocumentManager(api) { + this.api = api; + this.convertedFiles = []; + } + CInsertDocumentManager.prototype.closeConvertedFiles = function () { + for (let i = 0; i < this.convertedFiles.length; i++) { + this.convertedFiles[i]["close"](); + } + }; + CInsertDocumentManager.prototype.insertDocuments_local = function (files) { + const oThis = this; + const api = this.api; + const fPromises = []; + for (let i = 0; i < files.length; i += 1) { + const fPromise = function () { + return new Promise(function (resolve) { + window["AscDesktopEditor"]["convertFile"](files[i], Asc.c_oAscFileType.CANVAS_WORD, function (file) { + if (file) { + oThis.convertedFiles.push(file); + const stream = file["get"](); + const imageMap = file["getImages"](); + if (stream) { + resolve({stream: new Uint8Array(stream), imageMap: imageMap}); + } else { + resolve(null); + } + } else { + resolve(null); + } + }); + }); + }; + fPromises.push(fPromise); + } + const promiseIterator = new AscCommon.CPromiseGetterIterator(fPromises); + promiseIterator.forAllSuccessValues(function (streamInfos) { + const filterStreams = streamInfos.filter(function (streamInfo) { + return !!streamInfo; + }); + if (filterStreams.length === streamInfos.length) { + oThis.insertDocuments(streamInfos); + } else { + api.sendEvent("asc_onError", Asc.c_oAscError.ID.UplDocumentExt, Asc.c_oAscError.Level.NoCritical); + oThis.endLongAction(); + } + }); + }; + CInsertDocumentManager.prototype.startLongAction = function () { + this.api.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.SlowOperation); + }; + CInsertDocumentManager.prototype.endLongAction = function () { + this.closeConvertedFiles(); + this.api.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.SlowOperation); + }; + CInsertDocumentManager.prototype.insertTextFromFile_local = function () { + const oThis = this; + window["AscDesktopEditor"]["OpenFilenameDialog"]("word", true, function (files) { + oThis.startLongAction(); + if (!Array.isArray(files)) { + files = [files]; + } + + const preparingFiles = files.filter(function (file) { + return !!file; + }); + + oThis.insertDocuments_local(preparingFiles); + }); + }; + + CInsertDocumentManager.prototype.checkLocked = function () { + const logicDocument = this.getLogicDocument(); + return logicDocument.IsSelectionLocked(AscCommon.changestype_Paragraph_Content, null, true, logicDocument.IsFormFieldEditing()); + }; + CInsertDocumentManager.prototype.startAction = function () { + const logicDocument = this.getLogicDocument(); + logicDocument.StartAction(AscDFH.historydescription_Document_InsertTextFromFile); + }; + CInsertDocumentManager.prototype.finalizeAction = function () { + const logicDocument = this.getLogicDocument(); + + logicDocument.Recalculate(); + logicDocument.UpdateSelection(); + logicDocument.UpdateInterface(); + logicDocument.UpdateRulers(); + logicDocument.UpdateTracks(); + logicDocument.FinalizeAction(); + }; + + CInsertDocumentManager.prototype.checkSelectionBeforePaste = function () { + const logicDocument = this.getLogicDocument(); + if (logicDocument.IsTableCellSelection()) { + logicDocument.MoveCursorLeft(false, false); + } + }; + + CInsertDocumentManager.prototype.insertDocuments = function (streamInfos) { + if (this.checkLocked() || !streamInfos.length) { + this.endLongAction(); + return; + } + + this.startAction(); + + this.checkSelectionBeforePaste(); + + const fPromises = []; + const oThis = this; + const api = this.api; + const insertDocumentUrlsData = {imageMap: null, documents: [], convertCallback: function (_api, url) {}, endCallback: function (_api) {}}; + for (let i = 0; i < streamInfos.length; i++) { + const stream = streamInfos[i].stream; + const imageMap = streamInfos[i].imageMap; + fPromises.push(function () { + api.insertDocumentUrlsData = insertDocumentUrlsData; + insertDocumentUrlsData.imageMap = imageMap; + return new Promise(function (resolve) { + oThis.pasteData(stream, resolve); + }); + }); + } + + const promiseFunctionIterator = new AscCommon.CPromiseGetterIterator(fPromises); + promiseFunctionIterator.forAllSuccessValues(function () { + oThis.finalizeAction(); + api.endInsertDocumentUrls(); + oThis.endLongAction(); + }); + }; + CInsertDocumentManager.prototype.convertDocuments = function (resultDocuments, isUseDirectUrlError) { + if (!resultDocuments.length) { + this.endLongAction(); + return; + } + + const oThis = this; + const streamInfos = []; + this.api._ConvertDocuments(resultDocuments.slice(), !!isUseDirectUrlError, function (stream, imageMap) { + streamInfos.push({stream: stream, imageMap: imageMap}); + }, function (api) { + if (streamInfos.length === resultDocuments.length) { + oThis.insertDocuments(streamInfos); + } else { + oThis.endLongAction(); + } + }); + }; + CInsertDocumentManager.prototype.insertTextFromFile = function () { + const oThis = this; + const api = oThis.api; + + if (api.isLocalMode()) { + this.insertTextFromFile_local(); + return; + } + + + AscCommon.ShowDocumentFileDialog(function (error, files) { + if (Asc.c_oAscError.ID.No !== error) { + api.sendEvent("asc_onError", error, Asc.c_oAscError.Level.NoCritical); + return; + } + oThis.startLongAction(); + const promises = []; + for (let i = 0; i < files.length; i += 1) { + promises.push(new Promise(function (resolve, reject) { + const format = AscCommon.GetFileExtension(files[i].name); + const reader = new FileReader(); + reader.onload = function () { + const fileData = {data: new Uint8Array(reader.result), format: format}; + resolve(fileData); + }; + reader.onerror = function () { + reject(null); + }; + reader.readAsArrayBuffer(files[i]); + })); + } + Promise.all(promises).then(oThis.convertDocuments.bind(oThis)).catch(function () { + api.sendEvent("asc_onError", Asc.c_oAscError.ID.Unknown, Asc.c_oAscError.Level.NoCritical); + oThis.endLongAction(); + }); + }, true); + }; + + CInsertDocumentManager.prototype.insertTextFromUrl = function (url, token) { + this.startLongAction(); + if (this.api.isLocalMode()) { + this.insertTextFromUrl_local(url, token); + return; + } + this.convertDocuments([{url: url, format: "docx", token: token}], true); + + }; + CInsertDocumentManager.prototype.insertTextFromUrl_local = function (url, token) { + const oThis = this; + const api = this.api; + const urls = [url]; + window["AscDesktopEditor"]["DownloadFiles"](urls, [], function (files) { + const preparingFiles = []; + for (let i = 0; i < urls.length; i += 1) { + const tmp = files[urls[i]]; + if (tmp) { + preparingFiles.push(tmp); + } else { + api.sendEvent("asc_onError", Asc.c_oAscError.ID.DirectUrl, Asc.c_oAscError.Level.NoCritical); + oThis.endLongAction(); + return; + } + } + oThis.insertDocuments_local(preparingFiles); + }); + }; + + CInsertDocumentManager.prototype.getLogicDocument = function () { + return this.api.WordControl.m_oLogicDocument; + }; + + CInsertDocumentManager.prototype.pasteData = function (stream, resolve) { + this.api.asc_PasteData(AscCommon.c_oAscClipboardDataFormat.Internal, stream, undefined, undefined, undefined, function () {resolve();}, false, function () {resolve();}); + }; + + AscCommonWord.CInsertDocumentManager = CInsertDocumentManager; +})(); diff --git a/word/Editor/Layout/Base.js b/word/Editor/Layout/Base.js index b2dc0fea0b..e1e2d207e0 100644 --- a/word/Editor/Layout/Base.js +++ b/word/Editor/Layout/Base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Layout/PrintView.js b/word/Editor/Layout/PrintView.js index 4909674f19..7494fd5af6 100644 --- a/word/Editor/Layout/PrintView.js +++ b/word/Editor/Layout/PrintView.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Layout/ReadView.js b/word/Editor/Layout/ReadView.js index 9a20b95307..e57e55b599 100644 --- a/word/Editor/Layout/ReadView.js +++ b/word/Editor/Layout/ReadView.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/LogicDocumentController.js b/word/Editor/LogicDocumentController.js index 1763c04add..44741b90d6 100644 --- a/word/Editor/LogicDocumentController.js +++ b/word/Editor/LogicDocumentController.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Math.js b/word/Editor/Math.js index 4692b0ad3d..c8463e962f 100644 --- a/word/Editor/Math.js +++ b/word/Editor/Math.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -693,8 +693,7 @@ ParaMath.prototype.GetDirectTextPr = function() */ ParaMath.prototype.Add = function(Item) { - var LogicDocument = (this.Paragraph ? this.Paragraph.LogicDocument : undefined); - var TrackRevisions = (LogicDocument && true === LogicDocument.IsTrackRevisions() ? true : false); + let logicDocument = this.GetLogicDocument(); var Type = Item.Type; var oSelectedContent = this.GetSelectContent(); @@ -715,19 +714,11 @@ ParaMath.prototype.Add = function(Item) if(oContent.bRoot == false && Run.IsPlaceholder()) { - var CtrRunPr = oContent.Get_ParentCtrRunPr(false); // ctrPrp (не копия) - - var isLocalTrack = false; - if (TrackRevisions) + AscCommon.executeNoRevisions(function() { - isLocalTrack = LogicDocument.GetLocalTrackRevisions(); - LogicDocument.SetLocalTrackRevisions(false); - } - - Run.Apply_TextPr(CtrRunPr, undefined, true); - - if (false !== isLocalTrack) - LogicDocument.SetLocalTrackRevisions(isLocalTrack); + var CtrRunPr = oContent.Get_ParentCtrRunPr(false); // ctrPrp (не копия) + Run.Apply_TextPr(CtrRunPr, undefined, true); + }, logicDocument, this); } if(Item.Value == 38) @@ -770,29 +761,22 @@ ParaMath.prototype.Add = function(Item) // Выставляем позицию в начало этого рана oContent.CurPos = StartPos + 1; RightRun.MoveCursorToStartPos(); - - var lng = oContent.Content.length; - oContent.Load_FromMenu(Item.Menu, this.Paragraph, null, Item.GetText()); - oContent.Correct_ContentCurPos(); - - var lng2 = oContent.Content.length; - - TextPr.RFonts.SetAll("Cambria Math", -1); - - var isLocalTrack = false; - if (TrackRevisions) + + // TODO: Need to refactor this code. Applying TextPr should be done in LoadFromMenu method + // or LoadFromMenu should return an array of added objects + let lng = oContent.Content.length; + oContent.Load_FromMenu(Item.Menu, this.Paragraph, TextPr, Item.GetText()); + oContent.Correct_ContentCurPos(); + + AscCommon.executeNoRevisions(function() { - isLocalTrack = LogicDocument.GetLocalTrackRevisions(); - LogicDocument.SetLocalTrackRevisions(false); - } - - if(bPlh) - oContent.Apply_TextPr(TextPr, undefined, true); - else - oContent.Apply_TextPr(TextPr, undefined, false, StartPos + 1, StartPos + lng2 - lng); - - if (false !== isLocalTrack) - LogicDocument.SetLocalTrackRevisions(isLocalTrack); + let lng2 = oContent.Content.length; + TextPr.RFonts.SetAll("Cambria Math", -1); + if (bPlh) + oContent.Apply_TextPr(TextPr, undefined, true); + else if (lng2 > lng) + oContent.Apply_TextPr(TextPr, undefined, false, StartPos + 1, StartPos + lng2 - lng); + }, logicDocument, this); } if ((para_Text === Type || para_Space === Type) && null !== NewElement) @@ -952,7 +936,7 @@ ParaMath.prototype.Remove = function(Direction, bOnAddText) this.Root.Remove_FromContent(0, 1); return true; } - else if ((true === oElement.IsPlaceholder() && !bOnAddText) || (false === oElement.Remove(Direction) && true !== this.bSelectionUse)) + else if ((true === oElement.IsPlaceholder() && !bOnAddText) || (false === oElement.IsPlaceholder() && false === oElement.Remove(Direction) && true !== this.bSelectionUse)) { if ((Direction > 0 && oContent.Content.length - 1 === nStartPos) || (Direction < 0 && 0 === nStartPos)) { @@ -1141,6 +1125,13 @@ ParaMath.prototype.Remove = function(Direction, bOnAddText) } oContent.Correct_Content(); oContent.Correct_ContentPos(Direction); + + // если в контенте остался только плейсхолдер, то нам нужно выделить его + if (oContent.IsPlaceholder()) + { + oContent.SelectThisElement(1); + oContent.SelectAll(1); + } } }; @@ -1301,14 +1292,13 @@ ParaMath.prototype.GetSelectedText = function(bAll, bClearText, oPr) ParaMath.prototype.GetText = function(isLaTeX) { - var res = ""; - if (this.Root && this.Root.GetTextContent) { - var textContent = this.Root.GetTextContent(false, isLaTeX); - if (textContent && textContent.str) { - res = textContent.str; - } - } - return res; + let oMathText = this.GetTextOfElement(isLaTeX); + return oMathText.GetText(); +}; + +ParaMath.prototype.GetTextOfElement = function (isLaTeX, isDefaultText) +{ + return this.Root.GetTextOfElement(isLaTeX, isDefaultText); }; ParaMath.prototype.GetSelectDirection = function() @@ -3181,47 +3171,34 @@ ParaMath.prototype.CalculateTextToTable = function(oEngine) }; ParaMath.prototype.ConvertFromLaTeX = function() { - AscMath.SetIsLaTeXGetParaRun(false); - var strLaTeX = this.GetText(true); - AscMath.SetIsLaTeXGetParaRun(true); - - this.Root.Remove_Content(0, this.Root.Content.length); - this.Root.Correct_Content(true); - AscMath.ConvertLaTeXToTokensList(strLaTeX, this.Root); - this.Root.CorrectAllMathWords(true); - this.Root.ConvertAllSpecialWords(true); + let oLaTeX = this.GetTextOfElement(true, true); + this.Root.Remove_Content(0, this.Root.Content.length); + this.Root.CurPos = 0; + AscMath.ConvertLaTeXToTokensList(oLaTeX, this.Root); this.Root.Correct_Content(true); + this.Root.CurPos++; }; ParaMath.prototype.ConvertToLaTeX = function() { - var strLatex = this.GetText(true); + let oLaTeXContent = this.GetTextOfElement(true); this.Root.Remove_Content(0,this.Root.Content.length); - this.Root.Add_Text(strLatex, this.Paragraph); - this.Root.CurPos = this.Root.Content.length - 1; + this.Root.AddDataFromFlatMathTextAndStyles(oLaTeXContent.Flat()); }; ParaMath.prototype.ConvertFromUnicodeMath = function() { - this.Root.CorrectAllMathWords(false); - this.Root.ConvertAllSpecialWords(false); - var strUnicode = this.GetText(); - if (strUnicode[strUnicode.length - 1] === " ") - { - strUnicode = strUnicode.slice(0, -1) - } - this.Root.Remove_Content(0,this.Root.Content.length); - this.Root.Correct_Content(true); - AscMath.CUnicodeConverter(strUnicode, this.Root); + let oUnicode = this.GetTextOfElement(false); + this.Root.Remove_Content(0, this.Root.Content.length); + this.Root.CurPos = 0; + AscMath.CUnicodeConverter(oUnicode, this.Root); this.Root.Correct_Content(true); + this.Root.CurPos++; }; ParaMath.prototype.ConvertToUnicodeMath = function() { - var strUnicode = this.GetText(); - if (strUnicode[strUnicode.length - 1] === " ") - { - strUnicode = strUnicode.slice(0, -1) - } + let oUnicodeContent = this.GetTextOfElement(false); this.Root.Remove_Content(0,this.Root.Content.length); - this.Root.Add_Text(strUnicode, this.Paragraph); + this.Root.AddDataFromFlatMathTextAndStyles(oUnicodeContent.Flat()); + this.Paragraph.updateTrackRevisions(); }; ParaMath.prototype.ConvertView = function(isToLinear, nInputType) { @@ -3280,12 +3257,6 @@ ParaMath.prototype._convertViewBySelection = function(isToLinear, nInputType) isToLinear ); }; -ParaMath.prototype.SplitSelectedContent = function() -{ - var oSelection = this.GetSelectContent(); - var oContent = oSelection.Content; - oContent.SplitSelectedContent(); -}; ParaMath.prototype.CheckSpelling = function(oCollector, nDepth) { if (oCollector.IsExceedLimit()) @@ -3325,7 +3296,10 @@ ParaMath.prototype.IsContentControlEquation = function() && parent.IsContentControlEquation() && parent.IsPlaceHolder()); }; - +ParaMath.prototype.ProcessingOldEquationConvert = function() +{ + this.Root.ProcessingOldEquationConvert(); +}; function MatGetKoeffArgSize(FontSize, ArgSize) { diff --git a/word/Editor/MathChanges.js b/word/Editor/MathChanges.js index 27ab5c02a8..da7c709eb2 100644 --- a/word/Editor/MathChanges.js +++ b/word/Editor/MathChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -39,6 +39,7 @@ AscDFH.changesFactory[AscDFH.historyitem_MathContent_AddItem] = CChangesMathContentAddItem; AscDFH.changesFactory[AscDFH.historyitem_MathContent_RemoveItem] = CChangesMathContentRemoveItem; AscDFH.changesFactory[AscDFH.historyitem_MathContent_ArgSize] = CChangesMathContentArgSize; +AscDFH.changesFactory[AscDFH.historyitem_MathContent_TextPr] = CChangesMathContentTextPr; AscDFH.changesFactory[AscDFH.historyitem_MathPara_Jc] = CChangesMathParaJc; AscDFH.changesFactory[AscDFH.historyitem_MathBase_AddItems] = CChangesMathBaseAddItems; AscDFH.changesFactory[AscDFH.historyitem_MathBase_RemoveItems] = CChangesMathBaseRemoveItems; @@ -344,6 +345,255 @@ CChangesMathContentRemoveItem.prototype.CreateReverseChange = function() { return this.private_CreateReverseChange(CChangesMathContentAddItem); }; + +/** + * @constructor + * @extends {AscDFH.CChangesBaseObjectProperty} + */ +function CChangesMathContentTextPr(Class, Old, New, Color) +{ + AscDFH.CChangesBaseObjectProperty.call(this, Class, Old, New, Color); +} +CChangesMathContentTextPr.prototype = Object.create(AscDFH.CChangesBaseObjectProperty.prototype); +CChangesMathContentTextPr.prototype.constructor = CChangesMathContentTextPr; +CChangesMathContentTextPr.prototype.Type = AscDFH.historyitem_MathContent_TextPr; +CChangesMathContentTextPr.prototype.private_CreateObject = function() +{ + return new CTextPr(); +}; +CChangesMathContentTextPr.prototype.private_IsCreateEmptyObject = function() +{ + return true; +}; +CChangesMathContentTextPr.prototype.private_SetValue = function(Value) +{ + var oCMathContent = this.Class; + oCMathContent.CtrPrp = Value; +}; +CChangesMathContentTextPr.prototype.Load = function(Color) +{ + this.Redo(); +}; +CChangesMathContentTextPr.prototype.Merge = function(oChange) +{ + if (this.Class !== oChange.Class) + return true; + + if (this.Type === oChange.Type) + return false; + + if (!this.New) + this.New = new CTextPr(); + + switch (oChange.Type) + { + case AscDFH.historyitem_ParaRun_Bold: + { + this.New.Bold = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Italic: + { + this.New.Italic = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Strikeout: + { + this.New.Strikeout = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Underline: + { + this.New.Underline = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_FontSize: + { + this.New.FontSize = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Color: + { + this.New.Color = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_VertAlign: + { + this.New.VertAlign = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_HighLight: + { + this.New.HighLight = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_HighlightColor: + { + this.New.HighlightColor = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_RStyle: + { + this.New.RStyle = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Spacing: + { + this.New.Spacing = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_DStrikeout: + { + this.New.DStrikeout = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Caps: + { + this.New.Caps = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_SmallCaps: + { + this.New.SmallCaps = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Position: + { + this.New.Position = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_RFonts: + { + this.New.RFonts = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Lang: + { + this.New.Lang = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_RFonts_Ascii: + { + if (!this.New.RFonts) + this.New.RFonts = new CRFonts(); + + this.New.RFonts.Ascii = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_RFonts_HAnsi: + { + if (!this.New.RFonts) + this.New.RFonts = new CRFonts(); + + this.New.RFonts.HAnsi = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_RFonts_CS: + { + if (!this.New.RFonts) + this.New.RFonts = new CRFonts(); + + this.New.RFonts.CS = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_RFonts_EastAsia: + { + if (!this.New.RFonts) + this.New.RFonts = new CRFonts(); + + this.New.RFonts.EastAsia = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_RFonts_Hint: + { + if (!this.New.RFonts) + this.New.RFonts = new CRFonts(); + + this.New.RFonts.Hint = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Lang_Bidi: + { + if (!this.New.Lang) + this.New.Lang = new CLang(); + + this.New.Lang.Bidi = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Lang_EastAsia: + { + if (!this.New.Lang) + this.New.Lang = new CLang(); + + this.New.Lang.EastAsia = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Lang_Val: + { + if (!this.New.Lang) + this.New.Lang = new CLang(); + + this.New.Lang.Val = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Unifill: + { + this.New.Unifill = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Shd: + { + this.New.Shd = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_PrChange: + { + this.New.PrChange = oChange.New.PrChange; + this.New.ReviewInfo = oChange.New.ReviewInfo; + break; + } + case AscDFH.historyitem_ParaRun_TextFill: + { + this.New.TextFill = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_TextOutline: + { + this.New.TextOutline = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_PrReviewInfo: + { + this.New.ReviewInfo = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_BoldCS: + { + this.New.BoldCS = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_ItalicCS: + { + this.New.ItalicCS = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_FontSizeCS: + { + this.New.FontSizeCS = oChange.New; + break; + } + case AscDFH.historyitem_ParaRun_Ligatures: + { + this.New.Ligatures = oChange.New; + break + } + } + + return true; +}; + + + /** * Изменение настроек ArgSize в классе CMathContent * @constructor diff --git a/word/Editor/Merge.js b/word/Editor/Merge.js index ed10b343eb..b578b58a45 100644 --- a/word/Editor/Merge.js +++ b/word/Editor/Merge.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -87,7 +87,7 @@ arrToRemove = arrToRemove.reverse(); } nInsertPosition = arrToRemove[0].GetPosInParent(); - comparison.resolveConflicts(arrToInsert, arrToRemove, arrToRemove[0].Paragraph, nInsertPosition); + comparison.resolveConflicts(arrToInsert, arrToRemove, this.getApplyParagraph(comparison), nInsertPosition); } } @@ -373,8 +373,10 @@ for (let i = oNode.children.length - 1; i >= 0; i -= 1) { const oChildNode = oNode.children[i]; if (i !== oNode.children.length - 1) { - oChildNode.tryUpdateNode(this); - oChildNode.resolveTypesWithPartner(this); + if (oChildNode.partner && oChildNode.element instanceof CTextElement) { + oChildNode.tryUpdateNode(this); + oChildNode.resolveTypesWithPartner(this); + } } if (currentChangeId < oNode.changes.length && oNode.changes[currentChangeId].anchor.index === i) { const aContentToInsert = oNode.getArrOfInsertsFromChanges(currentChangeId, this); @@ -496,6 +498,7 @@ const oPartnerNode = this.partner; if (oPartnerNode) { + let oSplitRun; const oOriginalTextElement = this.element; const oPartnerTextElement = oPartnerNode.element; if (oPartnerTextElement.elements.length > oOriginalTextElement.elements.length) { @@ -506,7 +509,8 @@ const bIsWordBeginWithText = oPartnerTextElement.isWordBeginWith(oOriginalTextElement); const bIsWordEndWithText = oPartnerTextElement.isWordEndWith(oOriginalTextElement); - const oParagraph = oOriginalTextElement.lastRun.Paragraph; + const oParent = oOriginalTextElement.lastRun.GetParent(); + const oMainMockParagraph = this.par.element; if (bIsWordBeginWithText) { for (let i = 0; i < oOriginalTextElement.elements.length; i += 1) { oNewOriginalTextElement.addToElements(oOriginalTextElement.elements[i], oOriginalTextElement.reviewElementTypes[i]); @@ -535,14 +539,16 @@ } else { nLastPartnerElementPosition = oCurrentRun.GetElementPosition(oPartnerTextElement.elements[oPartnerTextElement.elements.length - 1]); } - oCurrentRun.Split2(nLastPartnerElementPosition + 1); + oSplitRun = oCurrentRun.Split2(nLastPartnerElementPosition + 1); + oMockParagraph.Add_ToContent(nCurrentRunPosition + 1, oSplitRun); const arrContentForInsert = []; while (nAmountOfAddingElements) { const oReviewInfo = comparison.getCompareReviewInfo(oCurrentRun); for (let i = oCurrentRun.Content.length - 1; i >= 0; i -= 1) { nAmountOfAddingElements -= 1; - if (nAmountOfAddingElements === 0) { + if (nAmountOfAddingElements === 0 && i !== 0) { oCurrentRun = oCurrentRun.Split2(i); + oMockParagraph.Add_ToContent(nCurrentRunPosition + 1, oCurrentRun); break; } } @@ -556,29 +562,34 @@ } let nLastOriginalElementPosition; let nLastRunPosition; + let nMockRunPosition; if (bIsWordBeginWithText) { nLastRunPosition = oOriginalTextElement.lastRun.GetPosInParent(); + nMockRunPosition = oOriginalTextElement.lastRun.GetPosInParent(oMainMockParagraph); oNewOriginalTextElement.lastRun = arrContentForInsert[0]; - nLastOriginalElementPosition = oParagraph.Content[nLastRunPosition].GetElementPosition(oOriginalTextElement.elements[oOriginalTextElement.elements.length - 1]); - oParagraph.Content[nLastRunPosition].Split2(nLastOriginalElementPosition + 1, oParagraph, nLastRunPosition) + nLastOriginalElementPosition = oParent.Content[nLastRunPosition].GetElementPosition(oOriginalTextElement.elements[oOriginalTextElement.elements.length - 1]); + oSplitRun = oParent.Content[nLastRunPosition].Split2(nLastOriginalElementPosition + 1, oParent, nLastRunPosition) + oMainMockParagraph.Add_ToContent(nLastRunPosition + 1, oSplitRun); } else { nLastRunPosition = oOriginalTextElement.firstRun.GetPosInParent(); + nMockRunPosition = oOriginalTextElement.firstRun.GetPosInParent(oMainMockParagraph); nPreviousRunPosition = nLastRunPosition + arrContentForInsert.length; - nLastOriginalElementPosition = oParagraph.Content[nLastRunPosition].GetElementPosition(oOriginalTextElement.elements[0]); - oParagraph.Content[nLastRunPosition].Split2(nLastOriginalElementPosition/* + 1*/, oParagraph, nLastRunPosition); + nLastOriginalElementPosition = oParent.Content[nLastRunPosition].GetElementPosition(oOriginalTextElement.elements[0]); + oSplitRun = oParent.Content[nLastRunPosition].Split2(nLastOriginalElementPosition, oParent, nLastRunPosition); + oMainMockParagraph.Add_ToContent(nMockRunPosition + 1, oSplitRun); oNewOriginalTextElement.firstRun = arrContentForInsert[0]; } - //oParagraph.Content[nLastRunPosition].Split2(nLastOriginalElementPosition + 1, oParagraph, nLastRunPosition) for (let i = 0; i < arrContentForInsert.length; i += 1) { - oParagraph.Add_ToContent(nLastRunPosition + 1, arrContentForInsert[i]); + oParent.Add_ToContent(nLastRunPosition + 1, arrContentForInsert[i]); + oMainMockParagraph.Add_ToContent(nMockRunPosition + 1, arrContentForInsert[i]); } } if (bIsWordEndWithText && !bIsWordBeginWithText) { let nElementsAmount = oOriginalTextElement.elements.length; let nCurrentRunPosition = nPreviousRunPosition + 1; - let oCurrentRun = oParagraph.Content[nCurrentRunPosition]; + let oCurrentRun = oParent.Content[nCurrentRunPosition]; while (nElementsAmount) { const oReviewInfo = comparison.getCompareReviewInfo(oCurrentRun); oNewOriginalTextElement.lastRun = oCurrentRun; @@ -591,7 +602,7 @@ } } nCurrentRunPosition += 1; - oCurrentRun = oParagraph.Content[nCurrentRunPosition]; + oCurrentRun = oParent.Content[nCurrentRunPosition]; } } } else if (oPartnerTextElement.elements.length < oOriginalTextElement.elements.length) { @@ -674,6 +685,9 @@ function CMockParagraph() { this.Content = []; } + CMockParagraph.prototype.Add_ToContent = function (position, element) { + this.Content.splice(position, 0, element); + }; function CMockMinHash() { this.count = 0; @@ -832,9 +846,9 @@ if (oInsertInfo.isParaEnd) { oRun.AddAfterParaEnd(oInsertParaMove); } else { - const oParagraph = oRun.Paragraph; - const nPosition = oRun.GetPosInParent(oParagraph); - oParagraph.AddToContent(nPosition, oInsertParaMove); + const oParent = oRun.GetParent(); + const nPosition = oRun.GetPosInParent(oParent); + oParent.AddToContent(nPosition, oInsertParaMove); } } } @@ -907,6 +921,7 @@ comparison.oBookmarkManager = this.oBookmarkManager; comparison.oComparisonMoveMarkManager = this.oComparisonMoveMarkManager; comparison.CommentsMap = this.CommentsMap; + comparison.StylesMap = this.StylesMap; const originalDocument = new CMockDocument(); const revisedDocument = new CMockDocument(); const originalParagraph = new CMockParagraph(); @@ -1048,6 +1063,7 @@ { oOriginalDocument.UpdateBookmarks(); } + this.comparison.updateCommentsQuoteText(); oOriginalDocument.Recalculate(); oOriginalDocument.UpdateInterface(); oOriginalDocument.FinalizeAction(); diff --git a/word/Editor/Numbering/AbstractNum.js b/word/Editor/Numbering/AbstractNum.js index 65251a88a5..e3ac86e551 100644 --- a/word/Editor/Numbering/AbstractNum.js +++ b/word/Editor/Numbering/AbstractNum.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -340,7 +340,7 @@ CAbstractNum.prototype.Refresh_RecalcData = function(Data) var oNum = oNumbering.Num[sId]; if (this.Id === oNum.GetAbstractNumId()) { - arrNumPr.push(new CNumPr(oNum.GetId(), Data.Index)); + arrNumPr.push(new AscWord.NumPr(oNum.GetId(), Data.Index)); } } diff --git a/word/Editor/Numbering/AbstractNumChanges.js b/word/Editor/Numbering/AbstractNumChanges.js index ec3c8489ce..ead21bdee9 100644 --- a/word/Editor/Numbering/AbstractNumChanges.js +++ b/word/Editor/Numbering/AbstractNumChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Numbering/Num.js b/word/Editor/Numbering/Num.js index f261e73b94..411cc29568 100644 --- a/word/Editor/Numbering/Num.js +++ b/word/Editor/Numbering/Num.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -515,9 +515,9 @@ CNum.prototype.GetLvlByStyle = function(sStyleId) * @param nLvl {number} 0..8 * @param nNumShift {number} * @param [isForceArabic=false] {boolean} - * @param langForTextNumbering {number} + * @param oLangForTextNumbering {AscCommonWord.CLang} */ -CNum.prototype.private_GetNumberedLvlText = function(nLvl, nNumShift, isForceArabic, langForTextNumbering) +CNum.prototype.private_GetNumberedLvlText = function(nLvl, nNumShift, isForceArabic, oLangForTextNumbering) { var nFormat = this.GetLvl(nLvl).GetFormat(); if (true === isForceArabic @@ -525,7 +525,7 @@ CNum.prototype.private_GetNumberedLvlText = function(nLvl, nNumShift, isForceAra && nFormat !== Asc.c_oAscNumberingFormat.DecimalZero) nFormat = Asc.c_oAscNumberingFormat.Decimal; - return AscCommon.IntToNumberFormat(nNumShift, nFormat, langForTextNumbering); + return AscCommon.IntToNumberFormat(nNumShift, nFormat, {lang: oLangForTextNumbering}); }; /** * Функция отрисовки заданного уровня нумерации в заданной позиции @@ -732,9 +732,10 @@ CNum.prototype.GetAllFontNames = function(arrAllFonts) * @param nLvl {number} 0..8 * @param oNumInfo * @param bWithoutLastLvlText {?boolean} + * @param [oLang] {AscCommonWord.CLang} * @returns {string} */ -CNum.prototype.GetText = function(nLvl, oNumInfo, bWithoutLastLvlText) +CNum.prototype.GetText = function(nLvl, oNumInfo, bWithoutLastLvlText, oLang) { var oLvl = this.GetLvl(nLvl); var arrText = oLvl.GetLvlText(); @@ -757,7 +758,7 @@ CNum.prototype.GetText = function(nLvl, oNumInfo, bWithoutLastLvlText) { var nCurLvl = arrText[Index].Value; if (nCurLvl < oNumInfo.length) - sResult += this.private_GetNumberedLvlText(nCurLvl, oNumInfo[nCurLvl]); + sResult += this.private_GetNumberedLvlText(nCurLvl, oNumInfo[nCurLvl], false, oLang); break; } diff --git a/word/Editor/Numbering/NumChanges.js b/word/Editor/Numbering/NumChanges.js index b53c0e8161..2cb53e5364 100644 --- a/word/Editor/Numbering/NumChanges.js +++ b/word/Editor/Numbering/NumChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Numbering/NumInfo.js b/word/Editor/Numbering/NumInfo.js index 76370a8767..323e3b6490 100644 --- a/word/Editor/Numbering/NumInfo.js +++ b/word/Editor/Numbering/NumInfo.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/word/Editor/Numbering/Numbering.js b/word/Editor/Numbering/Numbering.js index 76913395f6..9675f205a3 100644 --- a/word/Editor/Numbering/Numbering.js +++ b/word/Editor/Numbering/Numbering.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -307,12 +307,13 @@ * @param nLvl {number} 0..8 * @param oNumInfo * @param bWithoutLastLvlText {?boolean} + * @param [oLang] {AscCommonWord.CLang} * @returns {string} */ - CNumbering.prototype.GetText = function(sNumId, nLvl, oNumInfo, bWithoutLastLvlText) + CNumbering.prototype.GetText = function(sNumId, nLvl, oNumInfo, bWithoutLastLvlText, oLang) { var oNum = this.GetNum(sNumId); - return oNum.GetText(nLvl, oNumInfo, bWithoutLastLvlText); + return oNum.GetText(nLvl, oNumInfo, bWithoutLastLvlText, oLang); }; /** * Проверяем, есть ли обьекты на которые можно ссылаться diff --git a/word/Editor/Numbering/NumberingApplicator.js b/word/Editor/Numbering/NumberingApplicator.js index ece2f80bf2..259ccbbacc 100644 --- a/word/Editor/Numbering/NumberingApplicator.js +++ b/word/Editor/Numbering/NumberingApplicator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -104,7 +104,7 @@ if (!numId) this.LastBulleted = null; else - this.LastBulleted = new AscWord.CNumPr(numId, ilvl); + this.LastBulleted = new AscWord.NumPr(numId, ilvl); }; CNumberingApplicator.prototype.GetLastNumbered = function() { @@ -115,7 +115,7 @@ if (!numId) this.LastNumbered = null; else - this.LastNumbered = new AscWord.CNumPr(numId, ilvl); + this.LastNumbered = new AscWord.NumPr(numId, ilvl); }; CNumberingApplicator.prototype.GetCurrentNumPr = function() { @@ -297,7 +297,7 @@ if (prevNumPr && numberingManager.CheckFormat(prevNumPr.NumId, prevNumPr.Lvl, Asc.c_oAscNumberingFormat.Decimal)) { numId = prevNumPr.NumId; - ilvl = prevNumPr.Lvl; + ilvl = undefined; } if (!numId) @@ -306,7 +306,7 @@ if (nextNumPr && numberingManager.CheckFormat(nextNumPr.NumId, nextNumPr.Lvl, Asc.c_oAscNumberingFormat.Decimal)) { numId = nextNumPr.NumId; - ilvl = nextNumPr.Lvl; + ilvl = undefined; } } @@ -360,8 +360,10 @@ } } - this.MergeTextPrFromCommonNum(numId, ilvl); - this.SetLastNumbered(numId, ilvl); + let _ilvl = undefined !== ilvl ? ilvl : 0; + + this.MergeTextPrFromCommonNum(numId, _ilvl); + this.SetLastNumbered(numId, _ilvl); this.ApplyNumPr(numId, ilvl); return true; }; @@ -506,21 +508,37 @@ if (!this.Paragraphs || !this.Paragraphs.length) return null; - let prevParagraph = this.Paragraphs[0]; + let prevParagraph = this.Paragraphs[0].GetPrevParagraph(); + while (prevParagraph) + { + if (prevParagraph.GetNumPr() || !prevParagraph.IsEmpty()) + break; + + prevParagraph = prevParagraph.GetPrevParagraph(); + } + return prevParagraph ? prevParagraph.GetNumPr() : null; }; CNumberingApplicator.prototype.GetNextNumPr = function() { if (!this.Paragraphs || !this.Paragraphs.length) return null; - - let nextParagraph = this.Paragraphs[this.Paragraphs.length - 1]; + + let nextParagraph = this.Paragraphs[this.Paragraphs.length - 1].GetNextParagraph(); + while (nextParagraph) + { + if (nextParagraph.GetNumPr() || !nextParagraph.IsEmpty()) + break; + + nextParagraph = nextParagraph.GetNextParagraph(); + } + return nextParagraph ? nextParagraph.GetNumPr() : null; }; CNumberingApplicator.prototype.CheckPrevNumPr = function(numId, ilvl) { if (this.Paragraphs.length !== 1 || this.Document.IsSelectionUse()) - return new AscWord.CNumPr(numId, ilvl); + return new AscWord.NumPr(numId, ilvl); var prevParagraph = this.Paragraphs[0].GetPrevParagraph(); while (prevParagraph) @@ -538,10 +556,10 @@ let currLvl = this.Numbering.GetNum(numId).GetLvl(ilvl); if (prevLvl.IsSimilar(currLvl)) - return new AscWord.CNumPr(prevNumPr.NumId, prevNumPr.Lvl); + return new AscWord.NumPr(prevNumPr.NumId, prevNumPr.Lvl); } - return new AscWord.CNumPr(numId, ilvl); + return new AscWord.NumPr(numId, ilvl); }; CNumberingApplicator.prototype.MergeTextPrFromCommonNum = function(numId, iLvl) { @@ -611,7 +629,7 @@ } } - return new AscWord.CNumPr(numId, ilvl); + return new AscWord.NumPr(numId, ilvl); }; CNumberingApplicator.prototype.GetCommonNumId = function() { @@ -657,15 +675,17 @@ }; CNumberingApplicator.prototype.ApplyNumPr = function(numId, ilvl) { + // TODO: Надо перенести сюда всю логику подбора уровня по отступам, а в классе параграфа делать простое выставление + let checkIndents = this.IsCheckIndents(); for (let index = 0, count = this.Paragraphs.length; index < count; ++index) { let paragraph = this.Paragraphs[index]; let oldNumPr = paragraph.GetNumPr(); if (oldNumPr) - paragraph.ApplyNumPr(numId, oldNumPr.Lvl); + paragraph.ApplyNumPr(numId, oldNumPr.Lvl, checkIndents); else - paragraph.ApplyNumPr(numId, ilvl); + paragraph.ApplyNumPr(numId, ilvl, checkIndents); } }; CNumberingApplicator.prototype.ApplyToHeadings = function(numId) @@ -726,6 +746,25 @@ newLvl.SetPStyle(oldLvl.GetPStyle()); }; + CNumberingApplicator.prototype.IsCheckIndents = function() + { + // TODO: Возможно, наоборот, надо тут false возвращать + if (this.Paragraphs.length <= 1) + return true; + + let paraPr = this.Paragraphs[0].Get_CompiledPr2(false).ParaPr; + let left = paraPr.Ind.Left; + let first = paraPr.Ind.FirstLine; + + for (let index = 1, count = this.Paragraphs.length; index < count; ++index) + { + let paraPr = this.Paragraphs[index].Get_CompiledPr2(false).ParaPr; + if (Math.abs(left - paraPr.Ind.Left) > 0.001 || Math.abs(first - paraPr.Ind.FirstLine) > 0.001) + return true; + } + + return false; + }; //---------------------------------------------------------export--------------------------------------------------- window["AscWord"].CNumberingApplicator = CNumberingApplicator; diff --git a/word/Editor/Numbering/NumberingCollection.js b/word/Editor/Numbering/NumberingCollection.js index c651b24e48..9bb99fa662 100644 --- a/word/Editor/Numbering/NumberingCollection.js +++ b/word/Editor/Numbering/NumberingCollection.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/word/Editor/Numbering/NumberingCommon.js b/word/Editor/Numbering/NumberingCommon.js index 6b4b575407..ea01b980d1 100644 --- a/word/Editor/Numbering/NumberingCommon.js +++ b/word/Editor/Numbering/NumberingCommon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -370,26 +370,6 @@ function Numbering_Number_To_Roman(Num, bLowerCase) 0x0646, 0x0647, 0x0648, 0x064A]; break; } - case Asc.c_oAscNumberingFormat.CardinalText: - { - arrCodesOfSymbols = [0x0020, 0x002D, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, - 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, - 0x0077, 0x0078, 0x0079, 0x007A, 0x00DF, 0x00E1, 0x00E4, 0x00E5, 0x00E9, 0x00EA, 0x00EB, 0x00ED, 0x00F3, - 0x00F6, 0x00FC, 0x0105, 0x0107, 0x010D, 0x0119, 0x011B, 0x012B, 0x0146, 0x0159, 0x015B, 0x0161, 0x0165, - 0x016B, 0x03AC, 0x03AD, 0x03AE, 0x03AF, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B9, 0x03BA, 0x03BB, - 0x03BC, 0x03BD, 0x03BE, 0x03BF, 0x03C0, 0x03C1, 0x03C2, 0x03C3, 0x03C4, 0x03C6, 0x03C7, 0x03CC, 0x03CD, - 0x03CE, 0x0430, 0x0432, 0x0434, 0x0435, 0x0438, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, 0x0440, - 0x0441, 0x0442, 0x0445, 0x0446, 0x0447, 0x0448, 0x044B, 0x044C, 0x044F, 0x0456, 0x002D, 0x0041, 0x0042, - 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F, - 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059, 0x005A, 0x00C1, 0x00C4, - 0x00C5, 0x00C9, 0x00CA, 0x00CB, 0x00CD, 0x00D3, 0x00D6, 0x00DC, 0x0104, 0x0106, 0x010C, 0x0118, 0x011A, - 0x012A, 0x0145, 0x0158, 0x015A, 0x0160, 0x0164, 0x016A, 0x0386, 0x0388, 0x0389, 0x038A, 0x038C, 0x038E, - 0x038F, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F, - 0x03A0, 0x03A1, 0x03A3, 0x03A4, 0x03A6, 0x03A7, 0x0406, 0x0410, 0x0412, 0x0414, 0x0415, 0x0418, 0x041A, - 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, 0x0420, 0x0421, 0x0422, 0x0425, 0x0426, 0x0427, 0x0428, 0x042B, - 0x042C, 0x042F]; - break; - } case Asc.c_oAscNumberingFormat.Chicago: { arrCodesOfSymbols = [0x002A, 0x00A7, 0x2020, 0x2021]; @@ -618,25 +598,29 @@ function Numbering_Number_To_Roman(Num, bLowerCase) 0x00B0, 0x00BA, 0x03BF, 0x0439]; break; } + case Asc.c_oAscNumberingFormat.DollarText: case Asc.c_oAscNumberingFormat.OrdinalText: + case Asc.c_oAscNumberingFormat.CardinalText: { - arrCodesOfSymbols = [0x0020, 0x002D, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, - 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, - 0x0077, 0x0078, 0x0079, 0x007A, 0x00DF, 0x00E1, 0x00E4, 0x00E5, 0x00E9, 0x00EA, 0x00EB, 0x00ED, 0x00F3, - 0x00F6, 0x00FC, 0x0105, 0x0107, 0x010D, 0x0119, 0x011B, 0x012B, 0x0146, 0x0159, 0x015B, 0x0161, 0x0165, - 0x016B, 0x03AC, 0x03AD, 0x03AE, 0x03AF, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B9, 0x03BA, 0x03BB, - 0x03BC, 0x03BD, 0x03BE, 0x03BF, 0x03C0, 0x03C1, 0x03C2, 0x03C3, 0x03C4, 0x03C6, 0x03C7, 0x03CC, 0x03CD, - 0x03CE, 0x0430, 0x0432, 0x0434, 0x0435, 0x0438, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, 0x0440, - 0x0441, 0x0442, 0x0445, 0x0446, 0x0447, 0x0448, 0x044B, 0x044C, 0x044F, 0x0456, 0x0041, 0x0042, 0x0043, - 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F, 0x0050, - 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059, 0x005A, 0x00C1, 0x00C4, 0x00C5, - 0x00C9, 0x00CA, 0x00CB, 0x00CD, 0x00D3, 0x00D6, 0x00DC, 0x0104, 0x0106, 0x010C, 0x0118, 0x011A, 0x012A, - 0x0145, 0x0158, 0x015A, 0x0160, 0x0164, 0x016A, 0x0386, 0x0388, 0x0389, 0x038A, 0x038C, 0x038E, 0x038F, - 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, 0x039E, 0x039F, 0x03A0, - 0x03A1, 0x03A3, 0x03A4, 0x03A6, 0x03A7, 0x0406, 0x0410, 0x0412, 0x0414, 0x0415, 0x0418, 0x041A, 0x041B, - 0x041C, 0x041D, 0x041E, 0x041F, 0x0420, 0x0421, 0x0422, 0x0425, 0x0426, 0x0427, 0x0428, 0x042B, 0x042C, - 0x042F, 0x00C8, 0x00D4, 0x00DD, 0x0397, 0x03A9, 0x0413, 0x0419, 0x0423, 0x042A, 0x00E8, 0x00F4, 0x00FD, - 0x03B7, 0x03C9, 0x0433, 0x0439, 0x0443, 0x044A]; + appendDecimal(); + arrCodesOfSymbols = [0x0020, 0x0027, 0x002D, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, + 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F, 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, + 0x0056, 0x0057, 0x0058, 0x0059, 0x005A, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, + 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, + 0x0076, 0x0077, 0x0078, 0x0079, 0x007A, 0x00C1, 0x00C4, 0x00C5, 0x00C8, 0x00C9, 0x00CA, 0x00CB, 0x00CD, + 0x00D3, 0x00D4, 0x00D6, 0x00DC, 0x00DD, 0x00DF, 0x00E1, 0x00E4, 0x00E5, 0x00E7, 0x00E8, 0x00E9, 0x00EA, + 0x00EB, 0x00ED, 0x00F3, 0x00F4, 0x00F6, 0x00FC, 0x00FD, 0x0104, 0x0105, 0x0106, 0x0107, 0x010C, 0x010D, + 0x0118, 0x0119, 0x011A, 0x011B, 0x012A, 0x012B, 0x0130, 0x0131, 0x0145, 0x0146, 0x0158, 0x0159, 0x015A, + 0x015B, 0x015F, 0x0160, 0x0161, 0x0164, 0x0165, 0x016A, 0x016B, 0x0386, 0x0388, 0x0389, 0x038A, 0x038C, + 0x038E, 0x038F, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0397, 0x0399, 0x039A, 0x039B, 0x039C, 0x039D, + 0x039E, 0x039F, 0x03A0, 0x03A1, 0x03A3, 0x03A4, 0x03A6, 0x03A7, 0x03A9, 0x03AC, 0x03AD, 0x03AE, 0x03AF, + 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B7, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF, + 0x03C0, 0x03C1, 0x03C2, 0x03C3, 0x03C4, 0x03C6, 0x03C7, 0x03C9, 0x03CC, 0x03CD, 0x03CE, 0x0406, 0x0408, + 0x0410, 0x0412, 0x0413, 0x0414, 0x0415, 0x0418, 0x0419, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, + 0x0420, 0x0421, 0x0422, 0x0423, 0x0425, 0x0426, 0x0427, 0x0428, 0x042A, 0x042B, 0x042C, 0x042F, 0x0430, + 0x0432, 0x0433, 0x0434, 0x0435, 0x0437, 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, + 0x0440, 0x0441, 0x0442, 0x0443, 0x0445, 0x0446, 0x0447, 0x0448, 0x044A, 0x044B, 0x044C, 0x044F, 0x0456, + 0x0458, 0x045B]; break; } case Asc.c_oAscNumberingFormat.RussianLower: @@ -668,11 +652,12 @@ function Numbering_Number_To_Roman(Num, bLowerCase) arrCodesOfSymbols = [0x25CB, 0x4E00, 0x4E03, 0x4E09, 0x4E5D, 0x4E8C, 0x4E94, 0x516B, 0x516D, 0x56DB]; break; } + case Asc.c_oAscNumberingFormat.BahtText: case Asc.c_oAscNumberingFormat.ThaiCounting: { - arrCodesOfSymbols = [0x0E2B, 0x0E19, 0x0E36, 0x0E48, 0x0E07, 0x0E2A, 0x0E2D, 0x0E32, 0x0E21, 0x0E35, 0x0E49, - 0x0E01, 0x0E40, 0x0E08, 0x0E47, 0x0E14, 0x0E41, 0x0E1B, 0x0E34, 0x0E1A, 0x0E22, 0x0E25, 0x0E37, 0x0E23, - 0x0E1E, 0x0E31]; + arrCodesOfSymbols = [0x0E01, 0x0E04, 0x0E07, 0x0E08, 0x0E14, 0x0E15, 0x0E16, 0x0E17, 0x0E19, 0x0E1A, 0x0E1B, + 0x0E1E, 0x0E21, 0x0E22, 0x0E23, 0x0E25, 0x0E27, 0x0E2A, 0x0E2B, 0x0E2D, 0x0E31, 0x0E32, 0x0E34, 0x0E35, + 0x0E36, 0x0E37, 0x0E40, 0x0E41, 0x0E47, 0x0E48, 0x0E49, 0x0E4C]; break; } case Asc.c_oAscNumberingFormat.ThaiLetters: @@ -701,14 +686,26 @@ function Numbering_Number_To_Roman(Num, bLowerCase) 0x03C7, 0x03C8, 0x03C9, 0x03E1, 0x002C]; break; } + case Asc.c_oAscNumberingFormat.CustomUpperTurkish: + { + arrCodesOfSymbols = [0x0041, 0x0042, 0x0043, 0x00c7, 0x0044, 0x0045, 0x0046, 0x0047, 0x011e, 0x0048, 0x0049, 0x0130, 0x004a, + 0x004b, 0x004c, 0x004d, 0x004e, 0x004f, 0x00d6, 0x0050, 0x0052, 0x0053, 0x015e, 0x0054, 0x0055, 0x00dc, 0x0056, + 0x0059, 0x005a]; + break; + } + case Asc.c_oAscNumberingFormat.CustomLowerTurkish: + { + arrCodesOfSymbols = [0x0061, 0x0062, 0x0063, 0x00e7, 0x0064, 0x0065, 0x0066, 0x0067, 0x011f, 0x0068, 0x0131, 0x0069, 0x006a, + 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, 0x00f6, 0x0070, 0x0072, 0x0073, 0x015f, 0x0074, 0x0075, 0x00fc, 0x0076, + 0x0079, 0x007a]; + break; + } case Asc.c_oAscNumberingFormat.CustomDecimalTwoZero: case Asc.c_oAscNumberingFormat.CustomDecimalThreeZero: case Asc.c_oAscNumberingFormat.CustomDecimalFourZero: case Asc.c_oAscNumberingFormat.Custom: - case Asc.c_oAscNumberingFormat.BahtText: case Asc.c_oAscNumberingFormat.Decimal: case Asc.c_oAscNumberingFormat.DecimalZero: - case Asc.c_oAscNumberingFormat.DollarText: case Asc.c_oAscNumberingFormat.DecimalHalfWidth: { appendDecimal(); diff --git a/word/Editor/Numbering/NumberingLvl.js b/word/Editor/Numbering/NumberingLvl.js index e1b22dba34..b1ba531fd9 100644 --- a/word/Editor/Numbering/NumberingLvl.js +++ b/word/Editor/Numbering/NumberingLvl.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1379,7 +1379,7 @@ CNumberingLvl.prototype.GetStringByLvlText = function (arrLvls, nLvl, nNum, oLan nFormat = arrLvls[nNumberingLvl].GetFormat(); nNum = arrLvls[nNumberingLvl].GetStart(); } - arrResult.push(AscCommon.IntToNumberFormat(nNum, nFormat, oLang)); + arrResult.push(AscCommon.IntToNumberFormat(nNum, nFormat, {lang: oLang})); } } } @@ -1566,27 +1566,32 @@ CNumberingLvl.prototype.IsNumbered = function() */ CNumberingLvl.prototype.GetRelatedLvlList = function() { - var arrLvls = []; + let relatedLvl = []; for (var nIndex = 0, nCount = this.LvlText.length; nIndex < nCount; ++nIndex) { - if (numbering_lvltext_Num === this.LvlText[nIndex].Type) + if (numbering_lvltext_Num !== this.LvlText[nIndex].Type) + continue; + + var nLvl = this.LvlText[nIndex].Value; + let insertIndex = 0; + for (let lvlCount = relatedLvl.length; insertIndex < lvlCount; ++insertIndex) { - var nLvl = this.LvlText[nIndex].Value; - - if (arrLvls.length <= 0) - arrLvls.push(nLvl); - - for (var nLvlIndex = 0, nLvlsCount = arrLvls.length; nLvlIndex < nLvlsCount; ++nLvlIndex) - { - if (arrLvls[nLvlIndex] === nLvl) - break; - else if (arrLvls[nLvlIndex] > nLvl) - arrLvls.splice(nLvlIndex, 0, nLvl); - } + if (relatedLvl[insertIndex] < nLvl) + continue; + + if (relatedLvl[insertIndex] === nLvl) + insertIndex = -1; + + break; } + + if (insertIndex === relatedLvl.length) + relatedLvl.push(nLvl); + else if (-1 !== insertIndex) + relatedLvl.splice(insertIndex, 0, nLvl); } - - return arrLvls; + + return relatedLvl; }; CNumberingLvl.prototype.SetFormat = function(nFormat) { diff --git a/word/Editor/Numbering/PresentationNumbering.js b/word/Editor/Numbering/PresentationNumbering.js index 15a417688f..38b0750824 100644 --- a/word/Editor/Numbering/PresentationNumbering.js +++ b/word/Editor/Numbering/PresentationNumbering.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph.js b/word/Editor/Paragraph.js index 7ea96d15c2..f5eec26f00 100644 --- a/word/Editor/Paragraph.js +++ b/word/Editor/Paragraph.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -150,7 +150,7 @@ function Paragraph(Parent, bFromPresentation) this.SearchResults = {}; - this.SpellChecker = new AscCommonWord.CParagraphSpellChecker(this); + this.SpellChecker = new AscWord.CParagraphSpellChecker(this); this.NearPosArray = []; @@ -546,7 +546,7 @@ Paragraph.prototype.GetAllParagraphs = function(Props, ParaArray) if (!oCurNumPr) return; - if (Props.NumPr instanceof CNumPr) + if (Props.NumPr instanceof AscWord.NumPr) { var oNumPr = Props.NumPr; if (oCurNumPr.NumId === oNumPr.NumId && (oCurNumPr.Lvl === oNumPr.Lvl || undefined === oNumPr.Lvl || null === oNumPr.Lvl)) @@ -611,6 +611,18 @@ Paragraph.prototype.GetAllParaMaths = function(arrParaMaths) return arrParaMaths; }; +Paragraph.prototype.GetAllPermRangeMarks = function(marks) +{ + if (!marks) + marks = []; + + for (let i = 0, count = this.Content.length; i < count; ++i) + { + this.Content[i].GetAllPermRangeMarks(marks); + } + + return marks; +}; Paragraph.prototype.GetAllSeqFieldsByType = function(sType, aFields) { @@ -1267,6 +1279,11 @@ Paragraph.prototype.OnContentChange = function() if (this.Parent && this.Parent.OnContentChange) this.Parent.OnContentChange(); }; +Paragraph.prototype.OnTextPrChange = function() +{ + if (this.Parent && this.Parent.OnTextPrChange) + this.Parent.OnTextPrChange(); +}; Paragraph.prototype.NeedHyphenateText = function() { this.RecalcInfo.NeedHyphenateText(); @@ -1363,13 +1380,23 @@ Paragraph.prototype.ConvertParaContentPosToRangePos = function(oContentPos) for (var nPos = 0; nPos < nCurPos; ++nPos) { if (this.Content[nPos] instanceof CParagraphContentWithContentBase) + { + if (nPos != 0 && this.Content[nPos] instanceof ParaRun) + nRangePos++; + nRangePos += this.Content[nPos].ConvertParaContentPosToRangePos(null); + } } if (this.Content[nCurPos]) { - if (this.Content[nPos] instanceof CParagraphContentWithContentBase) + if (this.Content[nCurPos] instanceof CParagraphContentWithContentBase) + { + if (nCurPos != 0 && this.Content[nCurPos] instanceof ParaRun) + nRangePos++; + nRangePos += this.Content[nCurPos].ConvertParaContentPosToRangePos(oContentPos, 1); + } } return nRangePos; @@ -1436,10 +1463,9 @@ Paragraph.prototype.CheckNotInlineObject = function(nMathPos, nDirection) } else { - if (undefined !== this.Get_CompiledPr2(false).ParaPr.Bullet) - { + let oBullet = this.Get_CompiledPr2(false).ParaPr.Bullet; + if (oBullet && !oBullet.isNone()) return false; - } } } @@ -1856,7 +1882,7 @@ Paragraph.prototype.GetNumberingText = function(bWithoutLvlText) var oNumbering = oParent.GetNumbering(); var oNumInfo = oParent.CalculateNumberingValues(this, oNumPr); - return oNumbering.GetText(oNumPr.NumId, oNumPr.Lvl, oNumInfo, bWithoutLvlText); + return oNumbering.GetText(oNumPr.NumId, oNumPr.Lvl, oNumInfo, bWithoutLvlText, this.GetNumberingTextPr().Lang); }; /** * Получаем рассчитанное значение нумерации для данного параграфа вместе с суффиксом @@ -2026,6 +2052,21 @@ Paragraph.prototype.RecalculateCurPos = function(bUpdateX, bUpdateY, isUpdateTar return oCurPosInfo; }; +Paragraph.prototype.GetStartPosXY = function() +{ + if (!this.IsRecalculated()) + return null; + + let curPos = this.Get_StartPos(); + if (!curPos) + return null; + + let state = this.SaveSelectionState(); + this.Set_ParaContentPos(curPos, false, -1, -1, true); // Обязательно корректируем позицию + let result = this.GetCalculatedCurPosXY(); + this.LoadSelectionState(state); + return result; +}; Paragraph.prototype.GetCalculatedCurPosXY = function() { return this.Internal_Recalculate_CurPos(false, false, true); @@ -2644,6 +2685,23 @@ Paragraph.prototype.drawRunHighlight = function(CurPage, pGraphics, Pr, drawStat pGraphics.df(); Element = aHigh.Get_Next(); } + + //---------------------------------------------------------------------------------------------------------- + // Рисуем выделение разрешенных областей + //---------------------------------------------------------------------------------------------------------- + let aPerm = PDSH.Perm; + Element = aPerm.Get_Next(); + while (null != Element) + { + if (!pGraphics.set_fillColor) + pGraphics.b_color1(Element.r, Element.g, Element.b, 255); + else + pGraphics.set_fillColor(Element.r, Element.g, Element.b); + + pGraphics.rect(Element.x0, Element.y0, Element.x1 - Element.x0, Element.y1 - Element.y0); + pGraphics.df(); + Element = aPerm.Get_Next(); + } //---------------------------------------------------------------------------------------------------------- // Рисуем комментарии @@ -3790,6 +3848,9 @@ Paragraph.prototype.private_DrawLineNumber = function(X, Y, oContext, nLineNumbe var nCountBy = oSectPr.GetLineNumbersCountBy(); var nDistance = oSectPr.GetLineNumbersDistance(); var nRestart = oSectPr.GetLineNumbersRestart(); + + if (undefined === nCountBy || nCountBy <= 0) + return; var _nLineNumber = this.LineNumbersInfo.StartNum + nStart + nCurLine; // nStart - 1 + nCurLine + 1 @@ -3816,7 +3877,7 @@ Paragraph.prototype.private_DrawLineNumber = function(X, Y, oContext, nLineNumbe _nLineNumber = nLinesCount + nStart + _nCurLine; // nStart - 1 + nCurLine + 1 } - if (nCountBy && nCountBy > 1 && 0 !== _nLineNumber % nCountBy) + if (nCountBy > 1 && 0 !== _nLineNumber % nCountBy) return; var nLineNumDistance = undefined === nDistance ? (this.ColumnsCount > 1 ? AscCommon.TwipsToMM(180) : AscCommon.TwipsToMM(360)) : AscCommon.TwipsToMM(nDistance); @@ -7846,7 +7907,9 @@ Paragraph.prototype.AddHyperlink = function(HyperProps) TextPr.RStyle = editor && editor.isDocumentEditor ? editor.WordControl.m_oLogicDocument.Get_Styles().GetDefaultHyperlink() : null; if (!this.bFromDocument) { - //TextPr.Unifill = AscFormat.CreateUniFillSchemeColorWidthTint(11, 0); + if (editor && editor.isPdfEditor()) + TextPr.Unifill = AscFormat.CreateUniFillSchemeColorWidthTint(11, 0); + TextPr.Underline = true; } Hyperlink.Apply_TextPr(TextPr, undefined, false); @@ -7902,8 +7965,9 @@ Paragraph.prototype.AddHyperlink = function(HyperProps) { HyperRun.Set_Pr(TextPr.Copy()); HyperRun.Set_Color(undefined); - //HyperRun.Set_Unifill(AscFormat.CreateUniFillSchemeColorWidthTint(11, 0)); HyperRun.SetUnderline(true); + if (editor && editor.isPdfEditor()) + HyperRun.Set_Unifill(AscFormat.CreateUniFillSchemeColorWidthTint(11, 0)); } // Заполняем ран гиперссылки текстом @@ -8552,7 +8616,33 @@ Paragraph.prototype.RemoveSelection = function() this.Selection.StartPos = 0; this.Selection.EndPos = 0; }; -Paragraph.prototype.DrawSelectionOnPage = function(CurPage) +(function() +{ + function drawSelectionOnPage(drawingDocument, clipInfo, page, x, y, w, h, draw2) + { + if (clipInfo) + { + let x0 = clipInfo.correctX0(x); + let x1 = clipInfo.correctX1(x + w) + let y0 = clipInfo.correctY0(y); + let y1 = clipInfo.correctY1(y + h); + x = x0; + w = Math.max(0, x1 - x0) + y = y0; + h = Math.max(0, y1 - y0); + } + + if (w < 0.001 || h < 0.001) + return; + + if (draw2) + drawingDocument.AddPageSelection2(page, x, y, w, h); + else + drawingDocument.AddPageSelection(page, x, y, w, h); + } + AscWord.drawSelectionOnPage = drawSelectionOnPage; +})(); +Paragraph.prototype.DrawSelectionOnPage = function(CurPage, clipInfo) { if (!this.IsRecalculated()) return; @@ -8674,14 +8764,12 @@ Paragraph.prototype.DrawSelectionOnPage = function(CurPage) { var oRect = arrRects[nIndex]; - if (oRect.W > 0.001 && oRect.H > 0.001) - drawingDocument.AddPageSelection(PageAbs, oRect.X, oRect.Y, oRect.W, oRect.H); + AscWord.drawSelectionOnPage(drawingDocument, clipInfo, PageAbs, oRect.X, oRect.Y, oRect.W, oRect.H); } } else { - if (_w > 0.001) - drawingDocument.AddPageSelection(PageAbs, _x, _y, _w, _h); + AscWord.drawSelectionOnPage(drawingDocument, clipInfo, PageAbs, _x, _y, _w, _h); } } } @@ -8739,11 +8827,11 @@ Paragraph.prototype.DrawSelectionOnPage = function(CurPage) } } - drawingDocument.AddPageSelection(PageAbs, SelectX, SelectY, SelectW, SelectH); - + AscWord.drawSelectionOnPage(drawingDocument, clipInfo, PageAbs, SelectX, SelectY, SelectW, SelectH); + if (selectionflag_NumberingCur === this.Selection.Flag && drawingDocument.AddPageSelection2) - drawingDocument.AddPageSelection2(PageAbs, SelectX, SelectY, SelectW2, SelectH); - + AscWord.drawSelectionOnPage(drawingDocument, clipInfo, PageAbs, SelectX, SelectY, SelectW2, SelectH, true); + break; } } @@ -9457,6 +9545,15 @@ Paragraph.prototype.CheckHitInParaEnd = function(X, Y, CurPage) var oContentPos = this.getSearchPosByXY(X, Y, CurPage, false, true).getInTextPos(); return (oContentPos.Get(0) === (this.Content.length - 1)); }; +Paragraph.prototype.GetRunElementByXY = function(x, y, curPage) +{ + let searchPos = this.getSearchPosByXY(x, y, curPage, false, true); + if (!searchPos.isInText()) + return null; + + let contentPos = searchPos.getInTextPos(); + return this.Get_RunElementByPos(contentPos); +}; /** * Задаем сохраненное значение нумерации для данного параграфа (используется при печати выделенного фрагмента) * @param arrNumInfo @@ -9797,8 +9894,9 @@ Paragraph.prototype.Remove_StartTabs = function(TabsCounter) * Применяем заданную нумерацию к данному параграфу (учитываем отступы, количество табов в начале параграфа и т.д.) * @param sNumId {string} * @param nLvl {number} 0..8 + * @param checkIndents {boolean} - Подбирать ли уровень по отступам */ -Paragraph.prototype.ApplyNumPr = function(sNumId, nLvl) +Paragraph.prototype.ApplyNumPr = function(sNumId, nLvl, checkIndents) { var ParaPr = this.Get_CompiledPr2(false).ParaPr; var NumPr_old = this.GetNumPr(); @@ -9866,7 +9964,7 @@ Paragraph.prototype.ApplyNumPr = function(sNumId, nLvl) // Если у параграфа не было никакой нумерации изначально if (undefined === NumPr_old) { - if (true === SelectedOneElement || false === SelectionUse) + if ((true === SelectedOneElement || false === SelectionUse) && undefined !== nLvl && null !== nLvl) { // Проверим сначала предыдущий элемент, если у него точно такая же нумерация, тогда копируем его сдвиги var Prev = this.Get_DocumentPrev(); @@ -9901,8 +9999,7 @@ Paragraph.prototype.ApplyNumPr = function(sNumId, nLvl) } } - this.Pr.NumPr = new CNumPr(); - this.Pr.NumPr.Set(sNumId, nLvl); + this.Pr.NumPr = new AscWord.NumPr(sNumId, nLvl); AscCommon.History.Add(new CChangesParagraphNumbering(this, NumPr_old, this.Pr.NumPr)); this.private_RefreshNumbering(NumPr_old); this.private_RefreshNumbering(this.Pr.NumPr); @@ -9912,24 +10009,30 @@ Paragraph.prototype.ApplyNumPr = function(sNumId, nLvl) // Если выделено несколько параграфов, тогда уже по сдвигу X определяем уровень данной нумерации var LvlFound = -1; - for (var LvlIndex = 0; LvlIndex < 9; ++LvlIndex) + if (false !== checkIndents) { - var oNumLvl = oNum.GetLvl(LvlIndex); - if (oNumLvl) + for (var LvlIndex = 0; LvlIndex < 9; ++LvlIndex) { - var oNumParaPr = oNumLvl.GetParaPr(); - - if (undefined != oNumParaPr.Ind && undefined != oNumParaPr.Ind.Left && X <= oNumParaPr.Ind.Left) + var oNumLvl = oNum.GetLvl(LvlIndex); + if (oNumLvl) { - LvlFound = LvlIndex; - break; + var oNumParaPr = oNumLvl.GetParaPr(); + + if (undefined != oNumParaPr.Ind && undefined != oNumParaPr.Ind.Left && X <= oNumParaPr.Ind.Left) + { + LvlFound = LvlIndex; + break; + } } } + if (-1 === LvlFound) + LvlFound = 0; } - - if (-1 === LvlFound) - LvlFound = 0; - + else + { + LvlFound = undefined !== nLvl ? nLvl : 0; + } + if (this.Pr.Ind && (undefined !== this.Pr.Ind || undefined !== this.Pr.Ind.Left)) { AscCommon.History.Add(new CChangesParagraphIndFirst(this, this.Pr.Ind.FirstLine, undefined)); @@ -9940,8 +10043,7 @@ Paragraph.prototype.ApplyNumPr = function(sNumId, nLvl) this.Pr.Ind.Left = undefined; } - this.Pr.NumPr = new CNumPr(); - this.Pr.NumPr.Set(sNumId, LvlFound); + this.Pr.NumPr = new AscWord.NumPr(sNumId, LvlFound); AscCommon.History.Add(new CChangesParagraphNumbering(this, NumPr_old, this.Pr.NumPr)); this.private_RefreshNumbering(NumPr_old); this.private_RefreshNumbering(this.Pr.NumPr); @@ -9953,9 +10055,11 @@ Paragraph.prototype.ApplyNumPr = function(sNumId, nLvl) } else { + if (undefined === nLvl || null === nLvl) + nLvl = NumPr_old.Lvl; + // просто меняем список, так чтобы он не двигался - this.Pr.NumPr = new CNumPr(); - this.Pr.NumPr.Set(sNumId, nLvl); + this.Pr.NumPr = new AscWord.NumPr(sNumId, nLvl); AscCommon.History.Add(new CChangesParagraphNumbering(this, NumPr_old, this.Pr.NumPr)); this.private_RefreshNumbering(NumPr_old); @@ -10018,7 +10122,7 @@ Paragraph.prototype.SetNumPr = function(sNumId, nLvl) this.private_AddPrChange(); - var oNewNumPr = new CNumPr(sNumId, nLvl); + var oNewNumPr = new AscWord.NumPr(sNumId, nLvl); AscCommon.History.Add(new CChangesParagraphNumbering(this, this.Pr.NumPr, oNewNumPr)); this.private_RefreshNumbering(oNewNumPr); @@ -10048,7 +10152,7 @@ Paragraph.prototype.IndDecNumberingLevel = function(isIncrease) this.private_AddPrChange(); - let change = new CChangesParagraphNumbering(this, this.Pr.NumPr, new CNumPr(numPr.NumId, newLvl)); + let change = new CChangesParagraphNumbering(this, this.Pr.NumPr, new AscWord.NumPr(numPr.NumId, newLvl)); AscCommon.History.Add(change); change.Redo(); @@ -10070,7 +10174,7 @@ Paragraph.prototype.IndDecNumberingLevel = function(isIncrease) }; /** * Получаем настройку нумерации у данного параграфа, если она есть - * @returns {?CNumPr} + * @returns {?AscWord.NumPr} */ Paragraph.prototype.GetNumPr = function() { @@ -10091,8 +10195,7 @@ Paragraph.prototype.RemoveNumPr = function() var NewNumPr = undefined; if (undefined != this.CompiledPr.Pr.ParaPr.StyleNumPr) { - NewNumPr = new CNumPr(); - NewNumPr.Set(0, 0); + NewNumPr = new AscWord.NumPr(0, 0); } this.private_AddPrChange(); @@ -10522,9 +10625,9 @@ Paragraph.prototype.Get_CompiledPr = function() } else if (null === PrevEl) { - if (true === this.Parent.IsTableCellContent() && true === Pr.ParaPr.ContextualSpacing) + if (true === this.IsTableCellContent() && true === Pr.ParaPr.ContextualSpacing) { - var Cell = this.Parent.IsTableCellContent(true); + var Cell = this.IsTableCellContent(true); if (Cell) { var PrevEl = Cell.GetLastElementInPrevCell(); @@ -10628,9 +10731,9 @@ Paragraph.prototype.Get_CompiledPr = function() } else { - if (true === this.Parent.IsTableCellContent() && true === Pr.ParaPr.ContextualSpacing) + if (true === this.IsTableCellContent() && true === Pr.ParaPr.ContextualSpacing) { - var Cell = this.Parent.IsTableCellContent(true); + var Cell = this.IsTableCellContent(true); if (Cell) { var NextEl = Cell.GetFirstElementInNextCell(); @@ -10640,7 +10743,7 @@ Paragraph.prototype.Get_CompiledPr = function() } } } - else if (true === this.Parent.IsTableCellContent() && true === Pr.ParaPr.Spacing.AfterAutoSpacing) + else if (true === this.IsTableCellContent() && true === Pr.ParaPr.Spacing.AfterAutoSpacing) { Pr.ParaPr.Spacing.After = 0; } @@ -11521,36 +11624,39 @@ Paragraph.prototype.Set_Shd = function(_Shd, bDeleteUndefined) }; Paragraph.prototype.Set_Tabs = function(Tabs) { - var _Tabs = new CParaTabs(); - - if (Tabs) + if (Tabs != this.Pr.Tabs) { - var StyleTabs = this.Get_CompiledPr2(false).ParaPr.StyleTabs; + var _Tabs = Tabs ? new CParaTabs() : Tabs; - // 1. Ищем табы, которые уже есть в стиле (такие добавлять не надо) - for (var Index = 0; Index < Tabs.Tabs.length; Index++) + if (Tabs) { - var Value = StyleTabs.Get_Value(Tabs.Tabs[Index].Pos); - if (-1 === Value) - _Tabs.Add(Tabs.Tabs[Index]); - } + var StyleTabs = this.Get_CompiledPr2(false).ParaPr.StyleTabs; - // 2. Ищем табы в стиле, которые нужно отменить - for (var Index = 0; Index < StyleTabs.Tabs.length; Index++) - { - var Value = _Tabs.Get_Value(StyleTabs.Tabs[Index].Pos); - if (tab_Clear != StyleTabs.Tabs[Index] && -1 === Value) - _Tabs.Add(new CParaTab(tab_Clear, StyleTabs.Tabs[Index].Pos)); + // 1. Ищем табы, которые уже есть в стиле (такие добавлять не надо) + for (var Index = 0; Index < Tabs.Tabs.length; Index++) + { + var Value = StyleTabs.Get_Value(Tabs.Tabs[Index].Pos); + if (-1 === Value) + _Tabs.Add(Tabs.Tabs[Index]); + } + + // 2. Ищем табы в стиле, которые нужно отменить + for (var Index = 0; Index < StyleTabs.Tabs.length; Index++) + { + var Value = _Tabs.Get_Value(StyleTabs.Tabs[Index].Pos); + if (tab_Clear != StyleTabs.Tabs[Index] && -1 === Value) + _Tabs.Add(new CParaTab(tab_Clear, StyleTabs.Tabs[Index].Pos)); + } } - } - this.private_AddPrChange(); - AscCommon.History.Add(new CChangesParagraphTabs(this, this.Pr.Tabs, _Tabs)); - this.Pr.Tabs = _Tabs; + this.private_AddPrChange(); + AscCommon.History.Add(new CChangesParagraphTabs(this, this.Pr.Tabs, _Tabs)); + this.Pr.Tabs = _Tabs; - // Надо пересчитать конечный стиль - this.CompiledPr.NeedRecalc = true; - this.private_UpdateTrackRevisionOnChangeParaPr(true); + // Надо пересчитать конечный стиль + this.CompiledPr.NeedRecalc = true; + this.private_UpdateTrackRevisionOnChangeParaPr(true); + } }; Paragraph.prototype.Set_ContextualSpacing = function(Value) { @@ -11966,8 +12072,20 @@ Paragraph.prototype.private_CorrectNearestPos = function(ContentPos, Anchor, Dra this.Set_ParaContentPos(ContentPos, false, -1, -1); } } + + // TODO: Пока сделаем так, чтобы картинка перемещался в заданный параграф. По-хорошему нужно найти ближайшую + // позицию за пределами формы или другого запрещенного элемента + let classes = this.GetClassesByPos(ContentPos); + for (let index = 0; index < classes.length; ++index) + { + if (classes[index] instanceof AscWord.CInlineLevelSdt && classes[index].IsForm()) + { + ContentPos = this.GetStartPos(); + break; + } + } } - + return ContentPos; }; Paragraph.prototype.Check_NearestPos = function(NearPos) @@ -12091,7 +12209,7 @@ Paragraph.prototype.Get_Layout = function(ContentPos, Drawing) var Bottom_Margin = Y_Bottom_Margin; var Page_H = Page_Height; - if (true === this.Parent.IsTableCellContent() && undefined != Drawing && true == Drawing.Use_TextWrap()) + if (true === this.IsTableCellContent() && undefined != Drawing && true == Drawing.Use_TextWrap()) { Top_Margin = 0; Bottom_Margin = 0; @@ -12099,7 +12217,7 @@ Paragraph.prototype.Get_Layout = function(ContentPos, Drawing) } var PageLimitsOrigin = this.Parent.Get_PageLimits(PageRel); - if (true === this.Parent.IsTableCellContent() && false === Drawing.IsLayoutInCell()) + if (true === this.IsTableCellContent() && false === Drawing.IsLayoutInCell()) { PageLimitsOrigin = LogicDocument.Get_PageLimits(PageAbs); var PageFieldsOrigin = LogicDocument.Get_PageFields(PageAbs, isInHdrFtr); @@ -12121,6 +12239,21 @@ Paragraph.prototype.Get_Layout = function(ContentPos, Drawing) return null; }; +Paragraph.prototype.GetLayout = function(contentPos, useWrap) +{ + let drawing = { + Use_TextWrap : function() + { + return useWrap; + }, + IsLayoutInCell : function() + { + return false; + } + }; + + return this.Get_Layout(contentPos, drawing); +}; Paragraph.prototype.Get_AnchorPos = function(Drawing) { var ContentPos = this.Get_DrawingObjectContentPos(Drawing.Get_Id()); @@ -12608,23 +12741,20 @@ Paragraph.prototype.PreDelete = function() // Кроме этого, если тут начинались или заканчивались комметарии, то их тоже // удаляем. + let logicDocument = this.GetLogicDocument(); for (var Index = 0; Index < this.Content.length; Index++) { var Item = this.Content[Index]; if (Item.PreDelete) Item.PreDelete(true); - - if(this.LogicDocument) + + if (logicDocument && logicDocument.IsDocumentEditor()) { - if (para_Comment === Item.Type && true === this.LogicDocument.RemoveCommentsOnPreDelete) - { - this.LogicDocument.RemoveComment(Item.CommentId, true, false); - } + if (para_Comment === Item.Type && true === logicDocument.RemoveCommentsOnPreDelete) + logicDocument.RemoveComment(Item.CommentId, true, false); else if (para_Bookmark === Item.Type) - { - this.LogicDocument.GetBookmarksManager().SetNeedUpdate(true); - } + logicDocument.GetBookmarksManager().SetNeedUpdate(true); } } @@ -13433,7 +13563,7 @@ Paragraph.prototype.Split = function(oNewParagraph, oContentPos, isNoDuplicate) var oLogicDocument = this.GetLogicDocument(); var oStyles = oLogicDocument && oLogicDocument.GetStyles ? oLogicDocument.GetStyles() : null; - if (oStyles && (TextPr.RStyle === oStyles.GetDefaultEndnoteReference() || TextPr.RStyle === oStyles.GetDefaultFootnoteReference())) + if (oStyles instanceof AscWord.CStyles && (TextPr.RStyle === oStyles.GetDefaultEndnoteReference() || TextPr.RStyle === oStyles.GetDefaultFootnoteReference())) { TextPr = TextPr.Copy(); TextPr.RStyle = undefined; @@ -13481,15 +13611,15 @@ Paragraph.prototype.Split = function(oNewParagraph, oContentPos, isNoDuplicate) // добавляем в начало нового параграфа. var NewContent = this.Content.slice(nCurPos + 1); - + + this.Internal_Content_Remove2(nCurPos + 1, this.Content.length - nCurPos - 1); + this.CheckParaEnd(); + // Очищаем новый параграф и добавляем в него Right элемент и NewContent oNewParagraph.Internal_Content_Remove2(0, oNewParagraph.Content.length); oNewParagraph.ConcatContent(NewContent); oNewParagraph.Internal_Content_Add(0, NewElement); oNewParagraph.CorrectContent(); - - this.Internal_Content_Remove2(nCurPos + 1, this.Content.length - nCurPos - 1); - this.CheckParaEnd(); } if (false !== localTrack) @@ -13615,7 +13745,7 @@ Paragraph.prototype.ConcatBefore = function(oPara, nSelection) let nCount = oPara.Content.length; for (let nPos = 0; nPos < nCount; ++nPos) { - this.AddToContent(nPos, oPara.Content[nPos].Copy()); + this.AddToContent(nPos, oPara.Content[nPos].Copy(false, {CopyReviewPr : true})); } // Класс нужно почистить, чтобы сообщить внутренним классам, что они больше не используются @@ -14343,12 +14473,12 @@ Paragraph.prototype.GetCommentMark = function(sId, isStart) return null; }; -Paragraph.prototype.MoveCursorToCommentMark = function(sId) +Paragraph.prototype.MoveCursorToCommentMark = function(oParaComment) { for (var nPos = 0, nCount = this.Content.length; nPos < nCount; ++nPos) { var oItem = this.Content[nPos]; - if (para_Comment === oItem.Type && sId === oItem.CommentId) + if (oItem === oParaComment) { if (oItem.IsCommentStart()) { @@ -14462,7 +14592,7 @@ Paragraph.prototype.GetCurrentComments = function(oComments) // SpellCheck //---------------------------------------------------------------------------------------------------------------------- /** - * @returns {AscCommonWord.CParagraphSpellChecker} + * @returns {AscWord.CParagraphSpellChecker} */ Paragraph.prototype.GetSpellChecker = function() { @@ -15269,7 +15399,7 @@ Paragraph.prototype.GetPrChangeNumPr = function() { var oNumPr = this.GetNumPr(); if (oNumPr) - oPrevNumPr = new CNumPr(oPrevNumPr.NumId, oNumPr.Lvl); + oPrevNumPr = new AscWord.NumPr(oPrevNumPr.NumId, oNumPr.Lvl); } return oPrevNumPr; @@ -15343,7 +15473,7 @@ Paragraph.prototype.SetNumPrToPrChange = function(numId, iLvl) let prChange = this.Pr.PrChange.Copy(); let reviewInfo = this.Pr.ReviewInfo ? this.Pr.ReviewInfo.Copy() : undefined; - prChange.NumPr = new AscWord.CNumPr(numId, iLvl); + prChange.NumPr = new AscWord.NumPr(numId, iLvl); this.SetPrChange(prChange, reviewInfo); }; @@ -16625,6 +16755,22 @@ Paragraph.prototype.AddContentControl = function(nContentControlType) return oContentControl; } }; +Paragraph.prototype.GetCurrentPermRanges = function() +{ + let permRanges = []; + + let endInfo = this.GetEndInfoByPage(-1); + if (endInfo) + permRanges = endInfo.GetPermRanges().slice(); + + let endPos = Math.min(this.CurPos.ContentPos, this.Content.length - 1); + for (let pos = 0; pos <= endPos; ++pos) + { + this.Content[pos].GetCurrentPermRanges(permRanges, pos === endPos); + } + + return permRanges; +}; Paragraph.prototype.GetCurrentComplexFields = function(bReturnFieldPos) { var arrComplexFields = []; @@ -16803,10 +16949,11 @@ Paragraph.prototype.GetComplexFieldsArrayByType = function(nType) }; Paragraph.prototype.AddBookmarkForTOC = function() { - if (!this.LogicDocument) - return; + let logicDocument = this.GetLogicDocument(); + if (!logicDocument || !logicDocument.IsDocumentEditor()) + return null; - var oBookmarksManager = this.LogicDocument.GetBookmarksManager(); + var oBookmarksManager = logicDocument.GetBookmarksManager(); var sId = oBookmarksManager.GetNewBookmarkId(); var sName = oBookmarksManager.GetNewBookmarkNameTOC(); @@ -16818,23 +16965,34 @@ Paragraph.prototype.AddBookmarkForTOC = function() return sName; }; +/** + * Проверяем, есть ли в параграфе уже закладка для ссылки на данный параграф + * @returns {string} + */ +Paragraph.prototype.GetBookmarkRefToParagraph = function() +{ + let startBookmarks = this.private_FindBookmarks(0, this.Content.length - 1); + if (startBookmarks.length <= 0) + return ""; + + let endBookmarks = this.private_FindBookmarks(this.Content.length - 2, 0); + let pair = this.private_FindPairBookmarks(startBookmarks, endBookmarks, "_Ref"); + if (pair) + return pair[0].GetBookmarkName(); + + return ""; +}; Paragraph.prototype.AddBookmarkForRef = function() { - if (!this.LogicDocument) + let logicDocument = this.GetLogicDocument(); + if (!logicDocument || !logicDocument.IsDocumentEditor()) return null; - - //check is ref bookmark in paragraph - var aStartBookmarks = this.private_FindBookmarks(0, this.Content.length - 1), aEndBookmarks; - if(aStartBookmarks.length > 0) - { - aEndBookmarks = this.private_FindBookmarks(this.Content.length - 2, 0); - var aPair = this.private_FindPairBookmarks(aStartBookmarks, aEndBookmarks, "_Ref"); - if(aPair) - { - return aPair[0].GetBookmarkName(); - } - } - var oBookmarksManager = this.LogicDocument.GetBookmarksManager(); + + let bookmark = this.GetBookmarkRefToParagraph(); + if (bookmark) + return bookmark; + + var oBookmarksManager = logicDocument.GetBookmarksManager(); var sId = oBookmarksManager.GetNewBookmarkId(); var sBookmarkName = oBookmarksManager.GetNewBookmarkNameRef(); this.Add_ToContent(0, new CParagraphBookmark(true, sId, sBookmarkName)); @@ -17027,6 +17185,7 @@ Paragraph.prototype.private_GetLastSEQPos = function(sCaption) }; Paragraph.prototype.CanAddRefAfterSEQ = function(sCaption) { + if (!this.LogicDocument) return false; var oSEQPos = this.private_GetLastSEQPos(sCaption); @@ -17322,9 +17481,12 @@ Paragraph.prototype.RemoveTabsForTOC = function() * Проверяем лежит ли данный параграф в таблице * @returns {boolean} */ -Paragraph.prototype.IsTableCellContent = function() +Paragraph.prototype.IsTableCellContent = function(bReturnCell) { - return (this.Parent && this.Parent.IsTableCellContent() ? true : false); + if (bReturnCell) + return (this.Parent ? this.Parent.IsTableCellContent(true) : null); + + return !!(this.Parent && this.Parent.IsTableCellContent()); }; /** * Проверяем является ли данный параграф последним в ячейке (возвращаем false, если параграф не лежит в таблице вообще) @@ -17983,24 +18145,24 @@ Paragraph.prototype.AddTrackMoveMark = function(isFrom, isStart, sMarkId) }; /** * Удаляем из параграфа заданный элемент, если он тут есть - * @param oElement + * @param element */ -Paragraph.prototype.RemoveElement = function(oElement) +Paragraph.prototype.RemoveElement = function(element) { - for (var nPos = 0, nCount = this.Content.length; nPos < nCount; ++nPos) + for (let i = 0, count = this.Content.length; i < count; ++i) { - var oItem = this.Content[nPos]; - if (oItem === oElement) + let item = this.Content[i]; + if (item === element) { - this.Internal_Content_Remove(nPos); - nPos--; - nCount--; + this.RemoveFromContent(i, 1); + return true; } - else if (oItem.RemoveElement) + else if (item.RemoveElement(element)) { - oItem.RemoveElement(oElement); + return true; } } + return false; }; /** * Пробегаемся по все ранам с заданной функцией @@ -18300,8 +18462,28 @@ Paragraph.prototype.Document_Is_SelectionLocked = function(CheckType) var arrContentControls = this.GetSelectedContentControls(); for (var nIndex = 0, nCount = arrContentControls.length; nIndex < nCount; ++nIndex) { - if (arrContentControls[nIndex].IsSelectionUse() === isSelectionUse) - arrContentControls[nIndex].Document_Is_SelectionLocked(CheckType); + let cc = arrContentControls[nIndex]; + let paraCC = cc.GetParagraph(); + if (!paraCC) + continue; + + if (paraCC !== this) + { + // Проверяем типы, при которых произойдет удаление элемента, содержащего данный контрол + if (CheckType !== AscCommon.changestype_Paragraph_AddText + && CheckType !== AscCommon.changestype_Remove + && CheckType !== AscCommon.changestype_Delete + && CheckType !== AscCommon.changestype_Document_Content + && CheckType !== AscCommon.changestype_Paragraph_Content) + continue; + + if (Asc.c_oAscSdtLockType.SdtLocked === cc.GetContentControlLock() || Asc.c_oAscSdtLockType.SdtContentLocked === cc.GetContentControlLock()) + AscCommon.CollaborativeEditing.Add_CheckLock(true); + } + else if (cc.IsSelectionUse() === isSelectionUse) + { + cc.Document_Is_SelectionLocked(CheckType); + } } // Проверка для специального случая, когда мы переносим текст из параграфа в него самого. В такой ситуации надо @@ -18916,6 +19098,7 @@ function CParagraphPageEndInfo() { this.Comments = []; // Массив незакрытых комментариев на данной странице this.ComplexFields = []; // Массив незакрытых полей на данной странице + this.PermRanges = []; // Массив незакрытых разрешенных областей this.RunRecalcInfo = null; this.RecalcId = -1; @@ -18924,16 +19107,18 @@ CParagraphPageEndInfo.prototype.Copy = function() { var oInfo = new CParagraphPageEndInfo(); - for (var nIndex = 0, nCount = this.Comments.length; nIndex < nCount; ++nIndex) + for (let nIndex = 0, nCount = this.Comments.length; nIndex < nCount; ++nIndex) { oInfo.Comments.push(this.Comments[nIndex]); } - for (var nIndex = 0, nCount = this.ComplexFields.length; nIndex < nCount; ++nIndex) + for (let nIndex = 0, nCount = this.ComplexFields.length; nIndex < nCount; ++nIndex) { if (this.ComplexFields[nIndex].ComplexField.IsUse()) oInfo.ComplexFields.push(this.ComplexFields[nIndex].Copy()); } + + oInfo.PermRanges = this.PermRanges.slice(); return oInfo; }; @@ -18941,6 +19126,7 @@ CParagraphPageEndInfo.prototype.SetFromPRSI = function(PRSI) { this.Comments = PRSI.Comments; this.ComplexFields = PRSI.ComplexFields; + this.PermRanges = PRSI.PermRanges; }; CParagraphPageEndInfo.prototype.GetComplexFields = function() { @@ -18955,23 +19141,35 @@ CParagraphPageEndInfo.prototype.GetComments = function() { return this.Comments; }; +CParagraphPageEndInfo.prototype.GetPermRanges = function() +{ + return this.PermRanges; +}; CParagraphPageEndInfo.prototype.IsEqual = function(oEndInfo) { - if (this.Comments.length !== oEndInfo.Comments.length || this.ComplexFields.length !== oEndInfo.ComplexFields.length) + if (this.Comments.length !== oEndInfo.Comments.length + || this.ComplexFields.length !== oEndInfo.ComplexFields.length + || this.PermRanges.length !== oEndInfo.PermRanges.length) return false; - for (var nIndex = 0, nCount = this.Comments.length; nIndex < nCount; ++nIndex) + for (let nIndex = 0, nCount = this.Comments.length; nIndex < nCount; ++nIndex) { if (this.Comments[nIndex] !== oEndInfo.Comments[nIndex]) return false; } - for (var nIndex = 0, nCount = this.ComplexFields.length; nIndex < nCount; ++nIndex) + for (let nIndex = 0, nCount = this.ComplexFields.length; nIndex < nCount; ++nIndex) { if (!this.ComplexFields[nIndex].IsEqual(oEndInfo.ComplexFields[nIndex])) return false; } - + + for (let index = 0, count = this.PermRanges.length; index < count; ++index) + { + if (this.PermRanges[index] !== oEndInfo.PermRanges[index]) + return false; + } + return true; }; CParagraphPageEndInfo.prototype.CheckRecalcId = function(recalcId) diff --git a/word/Editor/Paragraph/ComplexField.js b/word/Editor/Paragraph/ComplexField.js index 34a5824028..9534fc5714 100644 --- a/word/Editor/Paragraph/ComplexField.js +++ b/word/Editor/Paragraph/ComplexField.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -39,19 +39,22 @@ var fldchartype_End = 2; function ParaFieldChar(Type, LogicDocument) { AscWord.CRunElementBase.call(this); - + this.LogicDocument = LogicDocument; this.Use = true; this.CharType = undefined === Type ? fldchartype_Begin : Type; this.ComplexField = (this.CharType === fldchartype_Begin) ? new CComplexField(LogicDocument) : null; - this.fldData = null; + this.fldData = null; + this.ffData = null; this.Run = null; this.X = 0; this.Y = 0; this.PageAbs = 0; - this.numText = null; - this.textPr = null; + this.numText = null; + this.textPr = null; + this.checkBox = null; + this.hidden = false; } ParaFieldChar.prototype = Object.create(AscWord.CRunElementBase.prototype); ParaFieldChar.prototype.constructor = ParaFieldChar; @@ -69,7 +72,7 @@ ParaFieldChar.prototype.Init = function(Type, LogicDocument) }; ParaFieldChar.prototype.Copy = function() { - let oChar = new ParaFieldChar(this.CharType, this.LogicDocument) + let oChar = new ParaFieldChar(this.CharType, this.LogicDocument); let oComplexField = this.GetComplexField(); if (oComplexField && oComplexField.IsUpdate()) @@ -78,12 +81,13 @@ ParaFieldChar.prototype.Copy = function() oComplexField.ReplaceChar(oChar); } //todo fldData + oChar.ffData = this.ffData ? this.ffData.Copy() : null; return oChar; }; ParaFieldChar.prototype.Measure = function(Context, textPr, sectPr) { - if (!this.IsSeparate()) + if (!this.IsEnd()) return; this.textPr = textPr; @@ -94,14 +98,48 @@ ParaFieldChar.prototype.Measure = function(Context, textPr, sectPr) }; ParaFieldChar.prototype.Draw = function(x, y, context) { - if (!this.IsSeparate() || null === this.numText) + if (!this.IsVisual()) return; - let fontSize = this.textPr.FontSize * this.textPr.getFontCoef(); - for (let index = 0; index < this.graphemes.length; ++index) + if (this.numText) { - AscFonts.DrawGrapheme(this.graphemes[index], context, x, y, fontSize); - x += this.widths[index] * fontSize; + let fontSize = this.textPr.FontSize * this.textPr.getFontCoef(); + for (let index = 0; index < this.graphemes.length; ++index) + { + AscFonts.DrawGrapheme(this.graphemes[index], context, x, y, fontSize); + x += this.widths[index] * fontSize; + } + } + else if (this.checkBox) + { + let shift = 0.75 * g_dKoef_pt_to_mm; + let penW = 0.75 * g_dKoef_pt_to_mm; + + let w = this.GetWidth(); + + let y0 = y - 0.815 * w + shift; + let y1 = y + 0.185 * w - shift; + let x0 = x + shift; + let x1 = x + w - shift; + + context.drawHorLineExt(c_oAscLineDrawingRule.Top, y0, x0, x1, penW, 0, 0); + context.drawHorLineExt(c_oAscLineDrawingRule.Bottom, y1, x0, x1, penW, 0, 0); + context.drawVerLine(c_oAscLineDrawingRule.Left, x0, y0, y1, penW); + context.drawVerLine(c_oAscLineDrawingRule.Right, x1, y0, y1, penW); + + let ffData = this.ComplexField.GetBeginChar().GetFFData(); + if (ffData && ffData.isCheckBoxChecked()) + { + context.p_width(0.5 * g_dKoef_pt_to_mm * 1000); + let penW_2 = penW / 2; + context._m(x0 + penW_2, y0 + penW_2); + context._l(x1 - penW_2, y1 - penW_2); + context.ds(); + + context._m(x1 - penW_2, y0 + penW_2); + context._l(x0 + penW_2, y1 - penW_2); + context.ds(); + } } }; ParaFieldChar.prototype.IsBegin = function() @@ -132,18 +170,36 @@ ParaFieldChar.prototype.SetComplexField = function(oComplexField) { this.ComplexField = oComplexField; }; -ParaFieldChar.prototype.Write_ToBinary = function(Writer) +ParaFieldChar.prototype.Write_ToBinary = function(writer) { // Long : Type // Long : CharType - Writer.WriteLong(this.Type); - Writer.WriteLong(this.CharType); + writer.WriteLong(this.Type); + writer.WriteLong(this.CharType); + + if (this.ffData) + { + writer.WriteBool(true); + this.ffData.toBinary(writer); + } + else + { + writer.WriteBool(false); + } + //todo fldData }; -ParaFieldChar.prototype.Read_FromBinary = function(Reader) +ParaFieldChar.prototype.Read_FromBinary = function(reader) { // Long : CharType - this.Init(Reader.GetLong(), editor.WordControl.m_oLogicDocument); + + let charType = reader.GetLong(); + + this.Init(charType, editor.WordControl.m_oLogicDocument); + + if (reader.GetBool()) + this.ffData = AscWord.FFData.fromBinary(reader); + //todo fldData }; ParaFieldChar.prototype.SetParent = function(oParent) @@ -158,6 +214,10 @@ ParaFieldChar.prototype.GetRun = function() { return this.Run; }; +ParaFieldChar.prototype.GetParagraph = function() +{ + return this.Run ? this.Run.GetParagraph() : null; +}; ParaFieldChar.prototype.SetXY = function(X, Y) { this.X = X; @@ -199,9 +259,17 @@ ParaFieldChar.prototype.SetNumValue = function(value, numFormat) return; } - this.numText = AscCommon.IntToNumberFormat(value, numFormat); + this.numText = AscCommon.IntToNumberFormat(value, numFormat, {lang: this.textPr && this.textPr.Lang, isFromField: true, isSkipFractPart: true}); this.private_UpdateWidth(); }; +ParaFieldChar.prototype.SetHiddenValue = function(isHidden) +{ + this.hidden = isHidden; +}; +ParaFieldChar.prototype.IsHiddenValue = function() +{ + return this.hidden; +}; /** * Специальная функция для работы с полями FORUMULA в колонтитулах * @param value {number|string} @@ -217,6 +285,15 @@ ParaFieldChar.prototype.SetFormulaValue = function(value) this.numText = "" + value; this.private_UpdateWidth(); }; +ParaFieldChar.prototype.GetFFData = function() +{ + return this.ffData; +}; +ParaFieldChar.prototype.SetFormCheckBox = function() +{ + this.checkBox = true; + this.private_UpdateWidth(); +}; ParaFieldChar.prototype.GetNumFormat = function() { let numFormat = Asc.c_oAscNumberingFormat.Decimal; @@ -253,39 +330,63 @@ ParaFieldChar.prototype.UpdatePageCount = function(pageCount) }; ParaFieldChar.prototype.private_UpdateWidth = function() { - if (null === this.numText) - return; - - AscWord.stringShaper.Shape(this.numText.codePointsArray(), this.textPr); - - this.graphemes = AscWord.stringShaper.GetGraphemes(); - this.widths = AscWord.stringShaper.GetWidths(); - let totalWidth = 0; - for (let index = 0; index < this.widths.length; ++index) + + if (this.numText) { - totalWidth += this.widths[index]; + AscWord.stringShaper.Shape(this.numText.codePointsArray(), this.textPr); + + this.graphemes = AscWord.stringShaper.GetGraphemes(); + this.widths = AscWord.stringShaper.GetWidths(); + + for (let index = 0; index < this.widths.length; ++index) + { + totalWidth += this.widths[index]; + } + let fontSize = this.textPr.FontSize * this.textPr.getFontCoef(); + totalWidth = (totalWidth * fontSize * AscWord.TEXTWIDTH_DIVIDER) | 0; } - let fontSize = this.textPr.FontSize * this.textPr.getFontCoef(); - totalWidth = (totalWidth * fontSize * AscWord.TEXTWIDTH_DIVIDER) | 0; - + else if (this.checkBox) + { + let fontSize = this.textPr.FontSize * this.textPr.getFontCoef(); + let ffData = this.ComplexField.GetBeginChar().GetFFData(); + if (ffData && !ffData.isCheckBoxAutoSize()) + fontSize = ffData.getCheckBoxSize(); + + totalWidth = (1.15 * fontSize * g_dKoef_pt_to_mm * AscWord.TEXTWIDTH_DIVIDER) | 0; + + // Для совместимости при работе с RecalcObject + this.graphemes = []; + this.widths = []; + } + this.Width = totalWidth; this.WidthVisible = totalWidth; }; ParaFieldChar.prototype.IsNumValue = function() { - return (this.IsSeparate() && null !== this.numText); + return (this.IsEnd() && null !== this.numText); +}; +ParaFieldChar.prototype.IsVisual = function() +{ + return (this.IsEnd() && (null !== this.numText || null !== this.checkBox)); +}; +ParaFieldChar.prototype.IsFormField = function() +{ + return !!(this.checkBox); }; ParaFieldChar.prototype.IsNeedSaveRecalculateObject = function() { - return this.IsNumValue(); + return this.IsVisual(); }; ParaFieldChar.prototype.SaveRecalculateObject = function(isCopy) { - return new AscWord.PageNumRecalculateObject(this.Type, this.graphemes, this.widths, this.Width, isCopy); + return new FieldCharRecalculateObject(this.Type, this.numText, this.checkBox, this.graphemes, this.widths, this.Width, isCopy); }; ParaFieldChar.prototype.LoadRecalculateObject = function(recalcObj) { + this.numText = recalcObj.numText; + this.checkBox = recalcObj.checkBox; this.graphemes = recalcObj.graphemes; this.widths = recalcObj.widths; this.Width = recalcObj.width; @@ -295,6 +396,8 @@ ParaFieldChar.prototype.PrepareRecalculateObject = function() { this.graphemes = []; this.widths = []; + this.checkBox = null; + this.numText = null; }; ParaFieldChar.prototype.IsValid = function() { @@ -313,6 +416,31 @@ ParaFieldChar.prototype.PreDelete = function() if (this.LogicDocument && this.ComplexField) this.LogicDocument.ValidateComplexField(this.ComplexField); }; +ParaFieldChar.prototype.FindNextFillingForm = function(isNext, isCurrent, isStart) +{ + if (!this.ComplexField + || !this.ComplexField.IsFormField() + || !this.ComplexField.IsFormFieldEnabled()) + return null; + + if (isNext) + return (this.IsBegin() && (!isCurrent || isNext) ? this.ComplexField : null); + else + return (this.IsEnd() && (!isCurrent || isNext) ? this.ComplexField : null); +}; + +/** + * @constructor + */ +function FieldCharRecalculateObject(type, numText, checkBox, graphemes, widths, totalWidth, isCopy) +{ + this.type = type; + this.numText = numText; + this.checkBox = checkBox; + this.graphemes = graphemes && isCopy ? graphemes.slice() : graphemes; + this.widths = widths && isCopy ? widths.slice() : widths; + this.width = totalWidth; +} /** * Класс представляющий символ инструкции сложного поля @@ -501,14 +629,18 @@ CComplexField.prototype.Update = function(isCreateHistoryPoint, isNeedRecalculat this.private_UpdateInstruction(); if (!this.Instruction || !this.IsValid()) - return; + return false; + + // TODO: Нужно добавить разделитель, если его нет. Пока не обновляем такие поля + if (!this.HaveValuePart()) + return false; this.SelectFieldValue(); if (true === isCreateHistoryPoint) { if (true === this.LogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content)) - return; + return false; this.LogicDocument.StartAction(); } @@ -549,6 +681,8 @@ CComplexField.prototype.Update = function(isCreateHistoryPoint, isNeedRecalculat case AscWord.fieldtype_NOTEREF: this.private_UpdateNOTEREF(); break; + case AscWord.fieldtype_FORMCHECKBOX: + case AscWord.fieldtype_FORMTEXT: case AscWord.fieldtype_ADDIN: break; } @@ -561,6 +695,8 @@ CComplexField.prototype.Update = function(isCreateHistoryPoint, isNeedRecalculat { this.LogicDocument.FinalizeAction(); } + + return true; }; CComplexField.prototype.CalculateValue = function() { @@ -606,10 +742,11 @@ CComplexField.prototype.CalculateValue = function() case AscWord.fieldtype_NOTEREF: sResult = this.private_CalculateNOTEREF(); break; + case AscWord.fieldtype_FORMCHECKBOX: + case AscWord.fieldtype_FORMTEXT: case AscWord.fieldtype_ADDIN: sResult = ""; break; - } return sResult; @@ -756,14 +893,13 @@ CComplexField.prototype.private_UpdateTOC = function() var oStyles = this.LogicDocument.Get_Styles(); var arrOutline; - var sCaption = this.Instruction.GetCaption(); //flag c + var sCaption = this.Instruction.GetCaption(); //flag c var sCaptionOnlyText = this.Instruction.GetCaptionOnlyText();//flag a - var sResultCaption = sCaption; + var oBookmarksManager = this.LogicDocument.GetBookmarksManager(); - if(typeof sCaptionOnlyText === "string" && sCaptionOnlyText.length > 0) - { - sResultCaption = sCaptionOnlyText; - } + if (undefined === sCaption && undefined !== sCaptionOnlyText) + sCaption = sCaptionOnlyText; + var oOutlinePr = { OutlineStart : this.Instruction.GetHeadingRangeStart(), OutlineEnd : this.Instruction.GetHeadingRangeEnd(), @@ -771,7 +907,7 @@ CComplexField.prototype.private_UpdateTOC = function() }; var bTOF = false; var bSkipCaptionLbl = false; - if(sCaption !== undefined || sCaptionOnlyText !== undefined) + if (undefined !== sCaption) { bTOF = true; var aStyles = this.Instruction.GetStylesArray(); @@ -782,22 +918,16 @@ CComplexField.prototype.private_UpdateTOC = function() else { arrOutline = []; - if(sCaptionOnlyText !== undefined) - { + if (sCaptionOnlyText !== undefined) bSkipCaptionLbl = true; - } - if(typeof sResultCaption === "string" && sResultCaption.length > 0) + + var aParagraphs = this.LogicDocument.GetAllCaptionParagraphs(sCaption); + var oCurPara; + for (var nParagraph = 0; nParagraph < aParagraphs.length; ++nParagraph) { - var aParagraphs = this.LogicDocument.GetAllCaptionParagraphs(sResultCaption); - var oCurPara; - for(var nParagraph = 0; nParagraph < aParagraphs.length; ++nParagraph) - { - oCurPara = aParagraphs[nParagraph]; - if(!bSkipCaptionLbl || oCurPara.CanAddRefAfterSEQ(sResultCaption)) - { - arrOutline.push({Paragraph: oCurPara, Lvl: 0}); - } - } + oCurPara = aParagraphs[nParagraph]; + if (!bSkipCaptionLbl || oCurPara.CanAddRefAfterSEQ(sCaption)) + arrOutline.push({Paragraph : oCurPara, Lvl : 0}); } } } @@ -840,7 +970,7 @@ CComplexField.prototype.private_UpdateTOC = function() var oParaForCopy = oSrcParagraph; if(bSkipCaptionLbl) { - sBookmarkName = oSrcParagraph.AddBookmarkForCaption(sResultCaption, true, true); + sBookmarkName = oSrcParagraph.AddBookmarkForCaption(sCaption, true, true); if(!sBookmarkName) { sBookmarkName = oSrcParagraph.AddBookmarkForTOC(); @@ -1237,7 +1367,16 @@ CComplexField.prototype.private_UpdateREF = function() }; CComplexField.prototype.private_CalculateREF = function() { - var oSelectedContent = this.private_GetREFContent(); + let logicDocument = this.LogicDocument; + + let state = logicDocument ? logicDocument.SaveDocumentState() : null; + + let oSelectedContent = this.private_GetREFContent(); + oSelectedContent.GetText(null); + + if (state) + logicDocument.LoadDocumentState(state); + return oSelectedContent.GetText(null); }; CComplexField.prototype.private_GetMessageContent = function(sMessage, oTextPr) @@ -1482,20 +1621,31 @@ CComplexField.prototype.SelectFieldValue = function() var oDocument = this.GetTopDocumentContent(); if (!oDocument) return; - - oDocument.RemoveSelection(); - - var oRun = this.SeparateChar.GetRun(); - oRun.Make_ThisElementCurrent(false); - oRun.SetCursorPosition(oRun.GetElementPosition(this.SeparateChar) + 1); - var oStartPos = oDocument.GetContentPosition(false); - - oRun = this.EndChar.GetRun(); - oRun.Make_ThisElementCurrent(false); - oRun.SetCursorPosition(oRun.GetElementPosition(this.EndChar)); - var oEndPos = oDocument.GetContentPosition(false); - - oDocument.SetSelectionByContentPositions(oStartPos, oEndPos); + + if (!this.SeparateChar) + { + let endRun = this.EndChar.GetRun(); + endRun.Make_ThisElementCurrent(false); + endRun.SetCursorPosition(endRun.GetElementPosition(this.EndChar)); + let endPos = oDocument.GetContentPosition(false); + oDocument.SetSelectionByContentPositions(endPos, endPos); + } + else + { + oDocument.RemoveSelection(); + + var oRun = this.SeparateChar.GetRun(); + oRun.Make_ThisElementCurrent(false); + oRun.SetCursorPosition(oRun.GetElementPosition(this.SeparateChar) + 1); + var oStartPos = oDocument.GetContentPosition(false); + + oRun = this.EndChar.GetRun(); + oRun.Make_ThisElementCurrent(false); + oRun.SetCursorPosition(oRun.GetElementPosition(this.EndChar)); + var oEndPos = oDocument.GetContentPosition(false); + + oDocument.SetSelectionByContentPositions(oStartPos, oEndPos); + } }; CComplexField.prototype.SelectFieldCode = function() { @@ -1509,10 +1659,11 @@ CComplexField.prototype.SelectFieldCode = function() oRun.Make_ThisElementCurrent(false); oRun.SetCursorPosition(oRun.GetElementPosition(this.BeginChar) + 1); var oStartPos = oDocument.GetContentPosition(false); - - oRun = this.SeparateChar.GetRun(); + + let endChar = this.SeparateChar ? this.SeparateChar : this.EndChar; + oRun = endChar.GetRun(); oRun.Make_ThisElementCurrent(false); - oRun.SetCursorPosition(oRun.GetElementPosition(this.SeparateChar)); + oRun.SetCursorPosition(oRun.GetElementPosition(endChar)); var oEndPos = oDocument.GetContentPosition(false); oDocument.SetSelectionByContentPositions(oStartPos, oEndPos); @@ -1542,8 +1693,8 @@ CComplexField.prototype.GetFieldValueText = function() { let logicDocument = this.LogicDocument; var oDocument = this.GetTopDocumentContent(); - if (!oDocument) - return; + if (!oDocument || !this.SeparateChar) + return ""; let state = logicDocument ? logicDocument.SaveDocumentState() : null; oDocument.RemoveSelection(); @@ -1568,13 +1719,14 @@ CComplexField.prototype.GetFieldValueText = function() }; CComplexField.prototype.GetFieldValueTextPr = function(isCompiled) { + let fieldChar = this.SeparateChar ? this.SeparateChar : this.EndChar; if (isCompiled) { - let run = this.SeparateChar.GetRun(); + let run = fieldChar.GetRun(); let runParent = run.GetParent(); let runPos = run.private_GetPosInParent(runParent); - let inRunPos = run.GetElementPosition(this.SeparateChar); + let inRunPos = run.GetElementPosition(fieldChar); if (inRunPos >= run.GetElementsCount() - 1 && runParent && runParent.GetElement @@ -1594,9 +1746,9 @@ CComplexField.prototype.GetFieldValueTextPr = function(isCompiled) let state = logicDocument.SaveDocumentState(); - let run = this.SeparateChar.GetRun(); + let run = fieldChar.GetRun(); run.Make_ThisElementCurrent(false); - run.SetCursorPosition(run.GetElementPosition(this.SeparateChar) + 1); + run.SetCursorPosition(run.GetElementPosition(fieldChar) + 1); logicDocument.MoveCursorRight(true, false); let textPr = logicDocument.GetDirectTextPr(); @@ -1606,15 +1758,17 @@ CComplexField.prototype.GetFieldValueTextPr = function(isCompiled) }; CComplexField.prototype.GetTopDocumentContent = function() { - if (!this.BeginChar || !this.SeparateChar || !this.EndChar) + if (!this.BeginChar || !this.EndChar) return null; - - var oTopDocument = this.BeginChar.GetTopDocumentContent(); - - if (oTopDocument !== this.EndChar.GetTopDocumentContent() || oTopDocument !== this.SeparateChar.GetTopDocumentContent()) + + let topDocument = this.BeginChar.GetTopDocumentContent(); + if (topDocument !== this.EndChar.GetTopDocumentContent()) return null; - - return oTopDocument; + + if (this.SeparateChar && topDocument !== this.SeparateChar.GetTopDocumentContent()) + return null; + + return topDocument; }; CComplexField.prototype.IsUse = function() { @@ -1661,9 +1815,12 @@ CComplexField.prototype.IsValid = function() { return (this.IsUse() && this.BeginChar && this.BeginChar.IsValid() - && this.SeparateChar && this.SeparateChar.IsValid() && this.EndChar && this.EndChar.IsValid()); }; +CComplexField.prototype.HaveValuePart = function() +{ + return (this.SeparateChar && this.SeparateChar.IsValid()); +}; CComplexField.prototype.GetInstruction = function() { this.private_UpdateInstruction(); @@ -1696,16 +1853,25 @@ CComplexField.prototype.private_CheckNestedComplexFields = function() }; CComplexField.prototype.IsHidden = function() { + var oInstruction = this.GetInstruction(); + if (!oInstruction) + return false; + + if (this.SeparateChar && this.SeparateChar.IsHiddenValue()) + return true; + if (!this.BeginChar || !this.SeparateChar) return false; - - var oInstruction = this.GetInstruction(); - return (oInstruction && (AscWord.fieldtype_ASK === oInstruction.GetType() || (this.SeparateChar.IsNumValue() && (AscWord.fieldtype_NUMPAGES === oInstruction.GetType() || AscWord.fieldtype_PAGE === oInstruction.GetType() || AscWord.fieldtype_FORMULA === oInstruction.GetType())))); + + return (AscWord.fieldtype_ASK === oInstruction.GetType()); }; CComplexField.prototype.RemoveFieldWrap = function() { if (!this.IsValid()) return; + + if (!this.HaveValuePart()) + return this.RemoveField(); this.EndChar.RemoveThisFromDocument(); @@ -1838,15 +2004,171 @@ CComplexField.prototype.CheckType = function(type) if (!instruction) return false; + // TODO: По-хорошему надо сделать мап типов, которые могут идти без разделителя, и какие не могут return instruction.GetType() === type; }; CComplexField.prototype.IsAddin = function() { return this.CheckType(AscWord.fieldtype_ADDIN); }; +CComplexField.prototype.IsFormField = function() +{ + if (!this.IsValid()) + return false; + + let instruction = this.GetInstruction(); + if (!instruction) + return false; + + let type = instruction.GetType(); + return (AscWord.fieldtype_FORMCHECKBOX === type + || AscWord.fieldtype_FORMTEXT === type + || AscWord.fieldtype_FORMDROPDOWN === type); +}; +CComplexField.prototype.IsFormFieldEnabled = function() +{ + if (!this.IsFormField()) + return false; + + let ffData = this.BeginChar.GetFFData(); + return (!ffData || ffData.isEnabled()); +}; +CComplexField.prototype.IsFormCheckBox = function() +{ + return this.CheckType(AscWord.fieldtype_FORMCHECKBOX); +}; +CComplexField.prototype.ToggleFormCheckBox = function() +{ + if (!this.IsFormCheckBox()) + return; + + let beginChar = this.GetBeginChar(); + let run = beginChar.GetRun(); + if (!run) + return; + + let inRunPos= run.GetElementPosition(beginChar); + if (-1 === inRunPos) + return; + + let newChar = beginChar.Copy(); + let ffData = newChar.GetFFData(); + if (!ffData) + { + ffData = new AscWord.FFData(); + newChar.ffData = ffData; + } + + if (!ffData.checkBox) + ffData.initCheckBox(); + + ffData.checkBox.checked = !ffData.isCheckBoxChecked(); + + run.RemoveFromContent(inRunPos, 1); + run.AddToContent(inRunPos, newChar); + + this.ReplaceChar(newChar); +}; +/** + * Получаем список связанных параграфов с данным полем (параграфы содержащие метки поля, это не обязательно будут + * все параграфы между метками начала и конца) + * @ returns {Array[AscWord.Paragraph]} + */ +CComplexField.prototype.GetRelatedParagraphs = function() +{ + if (!this.IsValid()) + return []; + + let begPara = this.BeginChar.GetParagraph(); + if (!begPara) + return []; + + let result = [begPara]; + if (this.SeparateChar) + { + let sepPara = this.SeparateChar.GetParagraph(); + if (sepPara !== begPara) + result.push(sepPara); + } + + let endPara = this.EndChar.GetParagraph(); + if (-1 === result.indexOf(endPara)) + result.push(endPara); + + return result; +}; + +function getRefInstruction(sBookmarkName, nType, bHyperlink, bAboveBelow, sSeparator) +{ + if (!(typeof sBookmarkName === "string" && sBookmarkName.length > 0)) + { + return; + } + var sInstr = ""; + var sSuffix = ""; + if (bHyperlink) + { + sSuffix += " \\h"; + } + if (bAboveBelow && nType !== Asc.c_oAscDocumentRefenceToType.AboveBelow) + { + sSuffix += " \\p"; + } + if (typeof sSeparator === "string" && sSeparator.length > 0) + { + sSuffix += " \\d " + sSeparator; + } + + switch (nType) + { + case Asc.c_oAscDocumentRefenceToType.PageNum: + { + sInstr = " PAGEREF " + sBookmarkName; + sInstr += sSuffix; + break; + } + case Asc.c_oAscDocumentRefenceToType.Text: + case Asc.c_oAscDocumentRefenceToType.OnlyCaptionText: + case Asc.c_oAscDocumentRefenceToType.OnlyLabelAndNumber: + { + sInstr = " REF " + sBookmarkName + " "; + sInstr += sSuffix; + break; + } + case Asc.c_oAscDocumentRefenceToType.ParaNum: + { + sInstr = " REF " + sBookmarkName + " \\r "; + sInstr += sSuffix; + break; + } + case Asc.c_oAscDocumentRefenceToType.ParaNumNoContext: + { + sInstr = " REF " + sBookmarkName + " \\n "; + sInstr += sSuffix; + break; + } + case Asc.c_oAscDocumentRefenceToType.ParaNumFullContex: + { + sInstr = " REF " + sBookmarkName + " \\w "; + sInstr += sSuffix; + break; + } + case Asc.c_oAscDocumentRefenceToType.AboveBelow: + { + sInstr = " REF " + sBookmarkName + " \\p "; + sInstr += sSuffix; + break; + } + } + + return sInstr; +} + //--------------------------------------------------------export---------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CComplexField = CComplexField; window['AscWord'] = window['AscWord'] || {}; +window['AscWord'].getRefInstruction = getRefInstruction; window['AscWord'].CComplexField = CComplexField; +window['AscWord'].ComplexField = CComplexField; diff --git a/word/Editor/Paragraph/ComplexFieldInstruction.js b/word/Editor/Paragraph/ComplexFieldInstruction.js index 9a8b12c3e0..d121f18a96 100644 --- a/word/Editor/Paragraph/ComplexFieldInstruction.js +++ b/word/Editor/Paragraph/ComplexFieldInstruction.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -618,6 +618,10 @@ CFieldInstructionHYPERLINK.prototype.IsTopOfDocument = function() { return (this.GetBookmarkName() === "_top"); }; +CFieldInstructionHYPERLINK.prototype.IsUseInDocument = function() +{ + return !!(this.ComplexField && this.ComplexField.IsValid()); +}; /** * TIME field @@ -1434,6 +1438,10 @@ CFieldInstructionParser.prototype.private_Parse = function() { this.private_ReadFORMTEXT(); } + else if ("FORMCHECKBOX" === sBuffer) + { + this.private_ReadFORMCHECKBOX(); + } else if(sBuffer.indexOf("=") === 0) { this.private_ReadFORMULA(); @@ -1445,8 +1453,8 @@ CFieldInstructionParser.prototype.private_Parse = function() }; CFieldInstructionParser.prototype.private_ReadNext = function() { - var nLen = this.Line.length, - bWord = false; + let nLen = this.Line.length; + let bWord = false; this.Buffer = ""; @@ -1462,6 +1470,7 @@ CFieldInstructionParser.prototype.private_ReadNext = function() { // Кавычки this.Pos++; + bWord = true; while (this.Pos < nLen) { nCharCode = this.Line.charCodeAt(this.Pos); @@ -1470,9 +1479,7 @@ CFieldInstructionParser.prototype.private_ReadNext = function() this.Pos++; break; } - - bWord = true; - + if (34 === nCharCode && 92 === this.Line.charCodeAt(this.Pos - 1) && this.Buffer.length > 0) this.Buffer = this.Buffer.substring(0, this.Buffer.length - 1); @@ -1492,10 +1499,7 @@ CFieldInstructionParser.prototype.private_ReadNext = function() this.Pos++; } - if (bWord) - return true; - - return false; + return bWord; }; CFieldInstructionParser.prototype.private_ReadTillEnd = function() { @@ -1719,45 +1723,17 @@ CFieldInstructionParser.prototype.private_ReadTOC = function() this.Result.SetPageRefSkippedLvls(true, -1, -1); } } - else if('c' === sType) + else if ('c' === sType) { arrArguments = this.private_ReadArguments(); - if(arrArguments.length > 0) - { - var sCaption = arrArguments[0]; - if(typeof sCaption === "string" && sCaption.length > 0) - { - this.Result.SetCaption(sCaption); - } - else - { - this.Result.SetCaption(null); - } - } - else - { - this.Result.SetCaption(null); - } + if (arrArguments.length > 0 && (typeof arrArguments[0] === "string")) + this.Result.SetCaption(arrArguments[0]); } - else if('a' === sType) + else if ('a' === sType) { arrArguments = this.private_ReadArguments(); - if(arrArguments.length > 0) - { - var sCaptionOnlyText = arrArguments[0]; - if(typeof sCaptionOnlyText === "string" && sCaptionOnlyText.length > 0) - { - this.Result.SetCaptionOnlyText(sCaptionOnlyText); - } - else - { - this.Result.SetCaptionOnlyText(null); - } - } - else - { - this.Result.SetCaptionOnlyText(null); - } + if (arrArguments.length > 0 && (typeof arrArguments[0] === "string")) + this.Result.SetCaptionOnlyText(arrArguments[0]); } } } @@ -1795,6 +1771,7 @@ CFieldInstructionParser.prototype.private_ReadREF = function(sBookmarkName) this.Result.SetBookmarkName(arrArguments[0]); } } + while (this.private_ReadNext()) { if (this.private_IsSwitch()) @@ -1838,6 +1815,10 @@ CFieldInstructionParser.prototype.private_ReadREF = function(sBookmarkName) this.Result.SetIsPosition(true); } } + else if ("" === this.Result.GetBookmarkName()) + { + this.Result.SetBookmarkName(this.Buffer); + } } }; CFieldInstructionParser.prototype.private_ReadNOTEREF = function() @@ -2092,3 +2073,7 @@ CFieldInstructionParser.prototype.private_ReadFORMTEXT = function() { this.Result = new AscWord.CFieldInstructionFORMTEXT(); }; +CFieldInstructionParser.prototype.private_ReadFORMCHECKBOX = function() +{ + this.Result = new AscWord.CFieldInstructionFORMCHECKBOX(); +}; diff --git a/word/Editor/Paragraph/ComplexFields/Addin.js b/word/Editor/Paragraph/ComplexFields/Addin.js index 2386b73c42..1b7400e5d9 100644 --- a/word/Editor/Paragraph/ComplexFields/Addin.js +++ b/word/Editor/Paragraph/ComplexFields/Addin.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/ComplexFields/AddinData.js b/word/Editor/Paragraph/ComplexFields/AddinData.js index c67de08a32..88e915f6be 100644 --- a/word/Editor/Paragraph/ComplexFields/AddinData.js +++ b/word/Editor/Paragraph/ComplexFields/AddinData.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/ComplexFields/FormText.js b/word/Editor/Paragraph/ComplexFields/FormText.js index 793bc86416..b2d4a447cc 100644 --- a/word/Editor/Paragraph/ComplexFields/FormText.js +++ b/word/Editor/Paragraph/ComplexFields/FormText.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/word/Editor/Paragraph/ComplexFields/MergeField.js b/word/Editor/Paragraph/ComplexFields/MergeField.js index 916af599e9..4aa189647d 100644 --- a/word/Editor/Paragraph/ComplexFields/MergeField.js +++ b/word/Editor/Paragraph/ComplexFields/MergeField.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/word/Editor/Paragraph/ComplexFields/ffdata.js b/word/Editor/Paragraph/ComplexFields/ffdata.js new file mode 100644 index 0000000000..186e9437f9 --- /dev/null +++ b/word/Editor/Paragraph/ComplexFields/ffdata.js @@ -0,0 +1,503 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +(function(window) +{ + /** + * @constructor + */ + function FFData() + { + this.calcOnExit = undefined; // bool + this.checkBox = undefined; // CheckBox + this.ddList = undefined; // DDList + this.enabled = undefined; // bool + this.entryMacro = undefined; // string + this.exitMacro = undefined; // string + this.helpText = undefined; // FFDataText + this.label = undefined; // int + this.name = undefined; // string + this.statusText = undefined; // FFDataText + this.tabIndex = undefined; // int + this.textInput = undefined; // TextInput + } + FFData.prototype.Copy = function() + { + let ffData = new FFData(); + + ffData.calcOnExit = this.calcOnExit; + ffData.checkBox = this.checkBox ? this.checkBox.Copy() : undefined; + ffData.ddList = this.ddList ? this.ddList.Copy() : undefined; + ffData.enabled = this.enabled; + ffData.entryMacro = this.entryMacro; + ffData.exitMacro = this.exitMacro; + ffData.helpText = this.helpText ? this.helpText.Copy() : undefined; + ffData.label = this.label; + ffData.name = this.name; + ffData.statusText = this.statusText ? this.statusText.Copy() : undefined; + ffData.tabIndex = this.tabIndex; + ffData.textInput = this.textInput ? this.textInput.Copy() : undefined; + return ffData; + }; + FFData.prototype.initCheckBox = function() + { + this.checkBox = new CheckBox(); + return this.checkBox; + }; + FFData.prototype.initDDList = function() + { + this.ddList = new DDList(); + return this.ddList; + }; + FFData.prototype.initHelpText = function() + { + this.helpText = new FFDataText(); + return this.helpText; + }; + FFData.prototype.initStatusText = function() + { + this.statusText = new FFDataText(); + return this.statusText; + }; + FFData.prototype.initTextInput = function() + { + this.textInput = new TextInput(); + return this.textInput; + }; + FFData.prototype.isCheckBoxAutoSize = function() + { + return !this.checkBox || undefined === this.checkBox.size || this.checkBox.sizeAuto; + }; + FFData.prototype.getCheckBoxSize = function() + { + return this.checkBox && undefined !== this.checkBox.size ? this.checkBox.size / 2 : 10; + }; + FFData.prototype.isCheckBoxChecked = function() + { + if (!this.checkBox) + return false; + + if (undefined !== this.checkBox.checked) + return this.checkBox.checked; + + return !!(this.checkBox.default); + }; + FFData.prototype.isEnabled = function() + { + return (false !== this.enabled); + }; + FFData.prototype.toBinary = function(writer) + { + let startPos = writer.GetCurPosition(); + writer.Skip(4); + + let flags = 0; + if (undefined !== this.calcOnExit) + { + writer.WriteBool(this.calcOnExit); + flags |= 1; + } + + if (undefined !== this.checkBox) + { + this.checkBox.toBinary(writer); + flags |= 2; + } + + if (undefined !== this.ddList) + { + this.ddList.toBinary(writer); + flags |= 4; + } + + if (undefined !== this.enabled) + { + writer.WriteBool(this.enabled); + flags |= 8; + } + + if (undefined !== this.entryMacro) + { + writer.WriteString2(this.entryMacro); + flags |= 16; + } + + if (undefined !== this.exitMacro) + { + writer.WriteString2(this.exitMacro); + flags |= 32; + } + + if (undefined !== this.helpText) + { + this.helpText.toBinary(writer); + flags |= 64; + } + + if (undefined !== this.label) + { + writer.WriteLong(this.label); + flags |= 128; + } + + if (undefined !== this.name) + { + writer.WriteString2(this.name); + flags |= 256; + } + + if (undefined !== this.statusText) + { + this.statusText.toBinary(writer); + flags |= 512; + } + + if (undefined !== this.tabIndex) + { + writer.WriteLong(this.tabIndex); + flags |= 1024; + } + + if (undefined !== this.textInput) + { + this.textInput.toBinary(writer); + flags |= 2048; + } + + let endPos = writer.GetCurPosition(); + writer.Seek(startPos); + writer.WriteLong(flags); + writer.Seek(endPos); + }; + FFData.fromBinary = function(reader) + { + let ffData = new FFData(); + + let flags = reader.GetLong(); + + if (flags & 1) + ffData.calcOnExit = reader.GetBool(); + + if (flags & 2) + ffData.checkBox = CheckBox.fromBinary(reader); + + if (flags & 4) + ffData.ddList = DDList.fromBinary(reader); + + if (flags & 8) + ffData.enabled = reader.GetBool(); + + if (flags & 16) + ffData.entryMacro = reader.GetString2(); + + if (flags & 32) + ffData.exitMacro = reader.GetString2(); + + if (ffData & 64) + ffData.helpText = FFDataText.fromBinary(reader); + + if (ffData & 128) + ffData.label = reader.GetLong(); + + if (ffData & 256) + ffData.name = reader.GetString2(); + + if (ffData & 512) + ffData.statusText = FFDataText.fromBinary(reader); + + if (ffData & 1024) + ffData.tabIndex = reader.GetLong(); + + if (ffData & 2048) + ffData.textInput = TextInput.fromBinary(reader); + + return ffData; + }; + + /** + * ffData.checkBox + * @constructor + */ + function CheckBox() + { + this.checked = undefined; + this.default = undefined; + this.size = undefined; + this.sizeAuto = undefined; + } + CheckBox.prototype.Copy = function() + { + let cb = new CheckBox(); + + cb.checked = this.checked; + cb.default = this.default; + cb.size = this.size; + cb.sizeAuto = this.sizeAuto; + return cb; + }; + CheckBox.prototype.toBinary = function(writer) + { + let startPos = writer.GetCurPosition(); + writer.Skip(4); + + let flags = 0; + if (undefined !== this.checked) + { + writer.WriteBool(this.checked); + flags |= 1; + } + + if (undefined !== this.default) + { + writer.WriteBool(this.default); + flags |= 2; + } + if (undefined !== this.size) + { + writer.WriteLong(this.size); + flags |= 4; + } + + if (undefined !== this.sizeAuto) + { + writer.WriteBool(this.sizeAuto); + flags |= 8; + } + + let endPos = writer.GetCurPosition(); + writer.Seek(startPos); + writer.WriteLong(flags); + writer.Seek(endPos); + }; + CheckBox.fromBinary = function(reader) + { + let checkBox = new CheckBox(); + + let flags = reader.GetLong(); + if (flags & 1) + checkBox.checked = reader.GetBool(); + + if (flags & 2) + checkBox.default = reader.GetBool(); + + if (flags & 4) + checkBox.size = reader.GetLong(); + + if (flags & 8) + checkBox.sizeAuto = reader.GetBool(); + + return checkBox; + }; + + /** + * ffData.ddList + * @constructor + */ + function DDList() + { + this.default = undefined; + this.list = []; + this.result = undefined; + } + DDList.prototype.Copy = function() + { + let ddList = new DDList(); + + ddList.default = this.default; + ddList.result = this.result; + ddList.list = this.list.slice(); + return ddList; + }; + DDList.prototype.toBinary = function(writer) + { + let flags = 0; + if (undefined !== this.default) + flags |= 1; + if (undefined !== this.result) + flags |= 2; + writer.WriteLong(flags); + + if (undefined !== this.default) + writer.WriteLong(this.default); + + if (undefined !== this.result) + writer.WriteLong(this.result); + + writer.WriteLong(this.list.length); + for (let i = 0; i < this.list.length; ++i) + { + writer.WriteString2(this.list[i]); + } + }; + DDList.fromBinary = function(reader) + { + let ddList = new DDList(); + + let flags = reader.GetBool(); + if (flags & 1) + ddList.default = reader.GetLong(); + if (flags & 2) + ddList.result = reader.GetLong(); + + let count = reader.GetLong(); + for (let i = 0; i < count; ++i) + { + ddList.list.push(reader.GetString2()); + } + + return ddList; + }; + + /** + * ffData.helpText or ffData.statusText + * @constructor + */ + function FFDataText() + { + this.type = undefined; + this.val = undefined; + } + FFDataText.prototype.Copy = function() + { + let ht = new FFDataText(); + + ht.type = this.type; + ht.val = this.val; + return ht; + }; + FFDataText.prototype.toBinary = function(writer) + { + let flags = 0; + if (undefined !== this.type) + flags |= 1; + if (undefined !== this.val) + flags |= 2; + + writer.WriteByte(flags); + + if (undefined !== this.type) + writer.WriteByte(this.type); + if (undefined !== this.val) + writer.WriteString2(this.val); + }; + FFDataText.fromBinary = function(reader) + { + let text = new FFDataText(); + + let flags = reader.GetByte(); + if (flags & 1) + text.type = reader.GetByte(); + if (flags & 2) + text.val = reader.GetString2(); + + return text; + }; + + /** + * ffData.textInput + * @constructor + */ + function TextInput() + { + this.default = undefined; // string + this.format = undefined; // string + this.type = undefined; + this.maxLength = undefined; + } + TextInput.prototype.Copy = function() + { + let ti = new TextInput(); + + ti.default = this.default; + ti.format = this.format; + ti.type = this.type; + ti.maxLength = this.maxLength; + return ti; + }; + TextInput.prototype.toBinary = function(writer) + { + let startPos = writer.GetCurPosition(); + writer.Skip(4); + + let flags = 0; + if (undefined !== this.default) + { + writer.WriteString2(this.default); + flags |= 1; + } + + if (undefined !== this.format) + { + writer.WriteString2(this.format); + flags |= 2; + } + if (undefined !== this.type) + { + writer.WriteByte(this.type); + flags |= 4; + } + + if (undefined !== this.maxLength) + { + writer.WriteLong(this.maxLength); + flags |= 8; + } + + let endPos = writer.GetCurPosition(); + writer.Seek(startPos); + writer.WriteLong(flags); + writer.Seek(endPos); + }; + TextInput.fromBinary = function(reader) + { + let textInput = new TextInput(); + + let flags = reader.GetByte(); + if (flags & 1) + textInput.default = reader.GetString2(); + if (flags & 2) + textInput.format = reader.GetString2(); + if (flags & 4) + textInput.type = reader.GetByte(); + if (flags & 8) + textInput.maxLength = reader.GetLong(); + + return textInput; + }; + + //--------------------------------------------------------export---------------------------------------------------- + window['AscWord'].FFData = FFData; + +})(window); + diff --git a/word/Math/.math-test/RunLaTeXManualTest.js b/word/Editor/Paragraph/ComplexFields/formcheckbox.js similarity index 60% rename from word/Math/.math-test/RunLaTeXManualTest.js rename to word/Editor/Paragraph/ComplexFields/formcheckbox.js index 0ff29df6ed..9375005f58 100644 --- a/word/Math/.math-test/RunLaTeXManualTest.js +++ b/word/Editor/Paragraph/ComplexFields/formcheckbox.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -29,22 +29,36 @@ * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode * */ -import "./node.js"; -import "../NamesOfLiterals.js"; -import "../LaTeXParser.js"; -import { createRequire } from "module"; -const parser = window.AscMath.ConvertLaTeXToTokensList; -const require = createRequire(import.meta.url); -const fs = require("fs"); -const storeData = (data, path) => { - try { - fs.writeFileSync(path, JSON.stringify(data, ",", 1)); - } catch (err) { - console.error(err); +"use strict"; + +(function(window) +{ + /** + * @constructor + * @extends AscWord.FieldInstructionBase + */ + function CFieldInstructionFORMCHECKBOX() + { + AscWord.FieldInstructionBase.call(this); } -}; -const ast = parser(`\\frac{1}{2}`, undefined, true); -console.log(JSON.stringify(ast, ",", 1)); -storeData(ast, "./output.json"); -//todo "\\vec \\frac{k}{2} + CFieldInstructionFORMCHECKBOX.prototype = Object.create(AscWord.FieldInstructionBase.prototype); + CFieldInstructionFORMCHECKBOX.prototype.constructor = CFieldInstructionFORMCHECKBOX; + CFieldInstructionFORMCHECKBOX.prototype.Type = AscWord.fieldtype_FORMCHECKBOX; + + CFieldInstructionFORMCHECKBOX.prototype.IsEnabled = function() + { + return true; + }; + CFieldInstructionFORMCHECKBOX.prototype.IsChecked = function() + { + return false; + }; + CFieldInstructionFORMCHECKBOX.prototype.ToString = function() + { + return " FORMCHECKBOX "; + }; + //--------------------------------------------------------export---------------------------------------------------- + AscWord.CFieldInstructionFORMCHECKBOX = CFieldInstructionFORMCHECKBOX; + +})(window); diff --git a/word/Editor/Paragraph/ComplexFields/instruction-base.js b/word/Editor/Paragraph/ComplexFields/instruction-base.js index 7c03727a49..fea439861e 100644 --- a/word/Editor/Paragraph/ComplexFields/instruction-base.js +++ b/word/Editor/Paragraph/ComplexFields/instruction-base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/word/Editor/Paragraph/ComplexFields/ref.js b/word/Editor/Paragraph/ComplexFields/ref.js index ffc2d470bc..a9f042db28 100644 --- a/word/Editor/Paragraph/ComplexFields/ref.js +++ b/word/Editor/Paragraph/ComplexFields/ref.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions diff --git a/word/Editor/Paragraph/ComplexFields/types.js b/word/Editor/Paragraph/ComplexFields/types.js index 461c317e53..8588a88d75 100644 --- a/word/Editor/Paragraph/ComplexFields/types.js +++ b/word/Editor/Paragraph/ComplexFields/types.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -36,24 +36,26 @@ { window['AscWord'] = window['AscWord'] || {}; - window['AscWord'].fieldtype_UNKNOWN = 0x0000; - window['AscWord'].fieldtype_MERGEFIELD = 0x0001; - window['AscWord'].fieldtype_PAGENUM = 0x0002; - window['AscWord'].fieldtype_PAGECOUNT = 0x0003; - window['AscWord'].fieldtype_FORMTEXT = 0x0004; - window['AscWord'].fieldtype_TOC = 0x0005; - window['AscWord'].fieldtype_PAGEREF = 0x0006; - window['AscWord'].fieldtype_PAGE = window['AscWord'].fieldtype_PAGENUM; - window['AscWord'].fieldtype_NUMPAGES = window['AscWord'].fieldtype_PAGECOUNT; - window['AscWord'].fieldtype_ASK = 0x0007; - window['AscWord'].fieldtype_REF = 0x0008; - window['AscWord'].fieldtype_HYPERLINK = 0x0009; - window['AscWord'].fieldtype_TIME = 0x000A; - window['AscWord'].fieldtype_DATE = 0x000B; - window['AscWord'].fieldtype_FORMULA = 0x0010; - window['AscWord'].fieldtype_SEQ = 0x0011; - window['AscWord'].fieldtype_STYLEREF = 0x0012; - window['AscWord'].fieldtype_NOTEREF = 0x0013; - window['AscWord'].fieldtype_ADDIN = 0x0014; + window['AscWord'].fieldtype_UNKNOWN = 0x0000; + window['AscWord'].fieldtype_MERGEFIELD = 0x0001; + window['AscWord'].fieldtype_PAGENUM = 0x0002; + window['AscWord'].fieldtype_PAGECOUNT = 0x0003; + window['AscWord'].fieldtype_FORMTEXT = 0x0004; + window['AscWord'].fieldtype_TOC = 0x0005; + window['AscWord'].fieldtype_PAGEREF = 0x0006; + window['AscWord'].fieldtype_PAGE = window['AscWord'].fieldtype_PAGENUM; + window['AscWord'].fieldtype_NUMPAGES = window['AscWord'].fieldtype_PAGECOUNT; + window['AscWord'].fieldtype_ASK = 0x0007; + window['AscWord'].fieldtype_REF = 0x0008; + window['AscWord'].fieldtype_HYPERLINK = 0x0009; + window['AscWord'].fieldtype_TIME = 0x000A; + window['AscWord'].fieldtype_DATE = 0x000B; + window['AscWord'].fieldtype_FORMULA = 0x0010; + window['AscWord'].fieldtype_SEQ = 0x0011; + window['AscWord'].fieldtype_STYLEREF = 0x0012; + window['AscWord'].fieldtype_NOTEREF = 0x0013; + window['AscWord'].fieldtype_ADDIN = 0x0014; + window['AscWord'].fieldtype_FORMCHECKBOX = 0x0015; + window['AscWord'].fieldtype_FORMDROPDOWN = 0x0016; })(window); diff --git a/word/Editor/Paragraph/DisplayStyleCalculator.js b/word/Editor/Paragraph/DisplayStyleCalculator.js index 20a3cfb3e1..2b205634a8 100644 --- a/word/Editor/Paragraph/DisplayStyleCalculator.js +++ b/word/Editor/Paragraph/DisplayStyleCalculator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/FormulaParser.js b/word/Editor/Paragraph/FormulaParser.js index 991161fb36..b56010fdaa 100644 --- a/word/Editor/Paragraph/FormulaParser.js +++ b/word/Editor/Paragraph/FormulaParser.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -885,7 +885,7 @@ if(oDocument.BookmarksManager.SelectBookmark(this.bookmarkName)){ var oCurrentParagraph = oDocument.GetCurrentParagraph(); if(oCurrentParagraph.Parent){ - oCell = oCurrentParagraph.Parent.IsTableCellContent(true); + oCell = oCurrentParagraph.IsTableCellContent(true); if(oCell){ oRow = oCell.GetRow(); if(oRow){ diff --git a/word/Editor/Paragraph/GraphemesCounter.js b/word/Editor/Paragraph/GraphemesCounter.js index cee5dd0a1f..8bba26eb80 100644 --- a/word/Editor/Paragraph/GraphemesCounter.js +++ b/word/Editor/Paragraph/GraphemesCounter.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -51,6 +51,8 @@ CGraphemesCounter.prototype.constructor = CGraphemesCounter; CGraphemesCounter.prototype.GetCount = function(sString, oTextPr) { + this.Init(); + if (oTextPr) this.TextPr = oTextPr; else @@ -64,6 +66,8 @@ }; CGraphemesCounter.prototype.Trim = function(sString, nLen, oTextPr) { + this.Init(); + if (oTextPr) this.TextPr = oTextPr; else @@ -76,6 +80,10 @@ this.Shape(sString); return (typeof(sString) === "string" ? String.fromCodePoint.apply(String, this.TrimResult) : this.TrimResult); }; + CGraphemesCounter.prototype.Init = function() + { + this.ClearBuffer(); + }; CGraphemesCounter.prototype.Shape = function(sString) { if (typeof(sString) === "string") diff --git a/word/Editor/Paragraph/ParaDrawing.js b/word/Editor/Paragraph/ParaDrawing.js index b6ba634035..26a3893cd7 100644 --- a/word/Editor/Paragraph/ParaDrawing.js +++ b/word/Editor/Paragraph/ParaDrawing.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -256,6 +256,9 @@ ParaDrawing.prototype.GetSearchElementId = function(bNext, bCurrent) }; ParaDrawing.prototype.FindNextFillingForm = function(isNext, isCurrent) { + if (isCurrent && this.IsForm()) + return null; + if (AscCommon.isRealObject(this.GraphicObj) && typeof this.GraphicObj.FindNextFillingForm === "function") return this.GraphicObj.FindNextFillingForm(isNext, isCurrent); @@ -299,6 +302,10 @@ ParaDrawing.prototype.canRotate = function() { return AscCommon.isRealObject(this.GraphicObj) && typeof this.GraphicObj.canRotate == "function" && this.GraphicObj.canRotate(); }; +ParaDrawing.prototype.canResize = function() +{ + return AscCommon.isRealObject(this.GraphicObj) && typeof this.GraphicObj.canResize == "function" && this.GraphicObj.canResize(); +}; ParaDrawing.prototype.GetParagraph = function() { return this.Get_ParentParagraph(); @@ -309,6 +316,7 @@ ParaDrawing.prototype.GetRun = function() }; ParaDrawing.prototype.GetDocumentContent = function() { + // TODO: Check why do we need to skip BlockLevelSdt here. If it's not necessary then merge this method with GetParentDocumentContent const oParagraph = this.GetParagraph(); let oDocumentContent = (oParagraph ? oParagraph.GetParent() : null); if (oDocumentContent && oDocumentContent.IsBlockLevelSdtContent()) @@ -317,6 +325,11 @@ ParaDrawing.prototype.GetDocumentContent = function() } return oDocumentContent; }; +ParaDrawing.prototype.GetParentDocumentContent = function() +{ + let para = this.GetParagraph(); + return para ? para.GetParent() : null; +}; ParaDrawing.prototype.Get_Run = function() { var oParagraph = this.Get_ParentParagraph(); @@ -1838,8 +1851,14 @@ ParaDrawing.prototype.GetInnerForm = function() }; ParaDrawing.prototype.Use_TextWrap = function() { + if (this.IsInline()) + return false; + + // TODO: Проверить, возможно данную проверку можно заменить на Paragraph.IsInline() // Если автофигура привязана к параграфу с рамкой, обтекание не делается - if (this.IsInline() || !this.Parent || !this.Parent.Get_FramePr || (null !== this.Parent.Get_FramePr() && undefined !== this.Parent.Get_FramePr())) + if (!this.Parent + || !this.Parent.GetFramePr + || (this.Parent.GetFramePr() && !this.Parent.GetFramePr().IsInline())) return false; // здесь должна быть проверка, нужно ли использовать обтекание относительно данного объекта, @@ -2107,10 +2126,7 @@ ParaDrawing.prototype.AddToDocument = function(oAnchorPos, oRunPr, oRun, oPictur oSdt.ReplacePlaceHolderWithContent(); oSdt.AddToContent(0, oDrawingRun); oInsertParagraph.AddToContent(0, oSdt); - - let oFormPr = oPictureCC.GetFormPr(); - if (oFormPr) - oSdt.SetFormPr(oFormPr.Copy()); + oPictureCC.private_CopyPrTo(oSdt); } else { @@ -2453,17 +2469,23 @@ ParaDrawing.prototype.Load_LinkData = function() }; ParaDrawing.prototype.draw = function(graphics, PDSE) { - if (AscCommon.isRealObject(this.GraphicObj) && typeof this.GraphicObj.draw === "function") + let iO = AscCommon.isRealObject; + let iN = AscFormat.isRealNumber; + if (this.GraphicObj) { graphics.SaveGrState(); - var bInline = this.Is_Inline(); - if(bInline && AscCommon.isRealObject(PDSE) && AscFormat.isRealNumber(this.LineTop) && AscFormat.isRealNumber(this.LineBottom) && AscCommon.isRealObject(this.GraphicObj.bounds)) + let bInline = this.Is_Inline(); + let oBounds = this.GraphicObj.bounds; + let paragraph = this.GetParagraph(); + let paraPr = paragraph.GetCompiledParaPr(); + let spacing = paraPr.Spacing; + if(bInline && spacing.LineRule !== Asc.linerule_Exact && PDSE && iN(this.LineTop) && iN(this.LineBottom) && iO(oBounds)) { - var x, y, w, h; - var oEffectExtent = this.EffectExtent; + let x, y, w, h; + let oEffectExtent = this.EffectExtent; x = PDSE.X; y = this.LineTop; - w = this.GraphicObj.bounds.r - this.GraphicObj.bounds.l + AscFormat.getValOrDefault(oEffectExtent.R, 0) + AscFormat.getValOrDefault(oEffectExtent.L, 0); + w = oBounds.r - oBounds.l + AscFormat.getValOrDefault(oEffectExtent.R, 0) + AscFormat.getValOrDefault(oEffectExtent.L, 0); h = this.LineBottom - this.LineTop; graphics.AddClipRect(x, y, w, h); } @@ -2687,7 +2709,7 @@ ParaDrawing.prototype.setPageIndex = function(newPageIndex) } } }; -ParaDrawing.prototype.Get_PageNum = function() +ParaDrawing.prototype.GetPageNum = function() { return this.PageNum; }; @@ -3173,6 +3195,7 @@ ParaDrawing.prototype.ConvertToMath = function(isUpdatePos) // Коректируем формулу после конвертации this.ParaMath.Correct_AfterConvertFromEquation(); + this.ParaMath.ProcessingOldEquationConvert(); // Сначала удаляем Drawing из рана oRun.RemoveFromContent(nBotElementPos, 1); @@ -3276,9 +3299,14 @@ ParaDrawing.prototype.CheckDeletingLock = function() if (logicDocument && logicDocument.IsDocumentEditor()) { - // Если в форму зайти нельзя, то и не проверяем можно ли удалять её внутреннюю часть + // Если в форму зайти нельзя, то проверяем можно ли удалять её внутреннюю часть if (form && this.IsForm() && !form.CanPlaceCursorInside()) + { + if (Asc.c_oAscSdtLockType.SdtLocked === form.GetContentControlLock() || Asc.c_oAscSdtLockType.SdtContentLocked === form.GetContentControlLock()) + AscCommon.CollaborativeEditing.Add_CheckLock(true); + return; + } if (!this.LogicDocument.CanEdit() || this.LogicDocument.IsFillingFormMode()) { diff --git a/word/Editor/Paragraph/ParaDrawingChanges.js b/word/Editor/Paragraph/ParaDrawingChanges.js index c7c46b9790..302e84cebc 100644 --- a/word/Editor/Paragraph/ParaDrawingChanges.js +++ b/word/Editor/Paragraph/ParaDrawingChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/ParaRevisionMove.js b/word/Editor/Paragraph/ParaRevisionMove.js index 5ab80f7d26..cd94313784 100644 --- a/word/Editor/Paragraph/ParaRevisionMove.js +++ b/word/Editor/Paragraph/ParaRevisionMove.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/ParaTextPr.js b/word/Editor/Paragraph/ParaTextPr.js index 94a4454191..5431f32b23 100644 --- a/word/Editor/Paragraph/ParaTextPr.js +++ b/word/Editor/Paragraph/ParaTextPr.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/ParaTextPrChanges.js b/word/Editor/Paragraph/ParaTextPrChanges.js index 60c1e93a44..cfb08d4533 100644 --- a/word/Editor/Paragraph/ParaTextPrChanges.js +++ b/word/Editor/Paragraph/ParaTextPrChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/ParagraphContentPos.js b/word/Editor/Paragraph/ParagraphContentPos.js index 0c3cdda09a..0202d14ee8 100644 --- a/word/Editor/Paragraph/ParagraphContentPos.js +++ b/word/Editor/Paragraph/ParagraphContentPos.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/Run/FontCalculator.js b/word/Editor/Paragraph/Run/FontCalculator.js index 075a54e98c..833f2b17cd 100644 --- a/word/Editor/Paragraph/Run/FontCalculator.js +++ b/word/Editor/Paragraph/Run/FontCalculator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/Run/FontClassification.js b/word/Editor/Paragraph/Run/FontClassification.js index a58eac3d29..00fedb24a5 100644 --- a/word/Editor/Paragraph/Run/FontClassification.js +++ b/word/Editor/Paragraph/Run/FontClassification.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/Run/RunAutoCorrect.js b/word/Editor/Paragraph/Run/RunAutoCorrect.js index 70a55ecdf1..8a37e56ff8 100644 --- a/word/Editor/Paragraph/Run/RunAutoCorrect.js +++ b/word/Editor/Paragraph/Run/RunAutoCorrect.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -769,17 +769,13 @@ if (!this.AsYouType) return false; - - if (!oDocument.IsAutoCorrectFirstLetterOfSentences()) - return false; - - if (oRunElementsBefore.IsEnd() - && oParagraph.IsTableCellContent() - && !oDocument.IsAutoCorrectFirstLetterOfCells()) - { + + let isCellFistLetter = (oRunElementsBefore.IsEnd() && oParagraph.IsTableCellContent()); + + if ((isCellFistLetter && !oDocument.IsAutoCorrectFirstLetterOfCells()) + || (!isCellFistLetter && !oDocument.IsAutoCorrectFirstLetterOfSentences())) return false; - } - + if ("www" === sText || "http" === sText || "https" === sText) return false; @@ -872,13 +868,17 @@ var oItem = oRun.GetElement(nInRunPos); if (!oItem || oItem.Type !== para_Text) return false; + + let codePoint = oItem.GetCodePoint(); + if (AscCommon.IsGeorgianScript(codePoint)) + return false; if (this.private_IsDocumentLocked()) return false; oDocument.StartAction(AscDFH.historydescription_Document_AutoCorrectFirstLetterOfSentence); - var oNewItem = new AscWord.CRunText(String.fromCharCode(oItem.Value).toUpperCase().charCodeAt(0)); + var oNewItem = new AscWord.CRunText(String.fromCharCode(codePoint).toUpperCase().charCodeAt(0)); oRun.RemoveFromContent(nInRunPos, 1, true); oRun.AddToContent(nInRunPos, oNewItem, true); @@ -998,7 +998,7 @@ var oPrevNumLvl = oDocument.GetNumbering().GetNum(oPrevNumPr.NumId).GetLvl(oPrevNumPr.Lvl); if (oPrevNumLvl.IsSimilar(oNumLvl)) { - oNumPr = new CNumPr(oPrevNumPr.NumId, oPrevNumPr.Lvl); + oNumPr = new AscWord.NumPr(oPrevNumPr.NumId, oPrevNumPr.Lvl); } } @@ -1007,7 +1007,7 @@ var oNum = oDocument.GetNumbering().CreateNum(); oNum.CreateDefault(c_oAscMultiLevelNumbering.Bullet); oNum.SetLvl(oNumLvl, 0); - oNumPr = new CNumPr(oNum.GetId(), 0); + oNumPr = new AscWord.NumPr(oNum.GetId(), 0); } } } @@ -1073,7 +1073,7 @@ } if (isAdd) - oNumPr = new CNumPr(oPrevNumPr.NumId, nResultLvL); + oNumPr = new AscWord.NumPr(oPrevNumPr.NumId, nResultLvL); } else { @@ -1100,7 +1100,7 @@ oNum.SetLvl(newLvl, iLvl); } - oNumPr = new CNumPr(oNum.GetId(), arrResult.length - 1); + oNumPr = new AscWord.NumPr(oNum.GetId(), arrResult.length - 1); } } } diff --git a/word/Editor/Paragraph/Run/run-composite-input.js b/word/Editor/Paragraph/Run/run-composite-input.js index 22a08fde58..6215f07dbd 100644 --- a/word/Editor/Paragraph/Run/run-composite-input.js +++ b/word/Editor/Paragraph/Run/run-composite-input.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/Base.js b/word/Editor/Paragraph/RunContent/Base.js index c672974fce..70f3c77842 100644 --- a/word/Editor/Paragraph/RunContent/Base.js +++ b/word/Editor/Paragraph/RunContent/Base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/Break.js b/word/Editor/Paragraph/RunContent/Break.js index c87ac8cb36..818fdf97c1 100644 --- a/word/Editor/Paragraph/RunContent/Break.js +++ b/word/Editor/Paragraph/RunContent/Break.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/ContinuationSeparator.js b/word/Editor/Paragraph/RunContent/ContinuationSeparator.js index f83f33cc29..b1370ae40b 100644 --- a/word/Editor/Paragraph/RunContent/ContinuationSeparator.js +++ b/word/Editor/Paragraph/RunContent/ContinuationSeparator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/EndnoteRef.js b/word/Editor/Paragraph/RunContent/EndnoteRef.js index 302eb71b65..26404f1add 100644 --- a/word/Editor/Paragraph/RunContent/EndnoteRef.js +++ b/word/Editor/Paragraph/RunContent/EndnoteRef.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/EndnoteReference.js b/word/Editor/Paragraph/RunContent/EndnoteReference.js index f1923a9802..913a727163 100644 --- a/word/Editor/Paragraph/RunContent/EndnoteReference.js +++ b/word/Editor/Paragraph/RunContent/EndnoteReference.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/FootnoteRef.js b/word/Editor/Paragraph/RunContent/FootnoteRef.js index 989563fa34..99383bb6c2 100644 --- a/word/Editor/Paragraph/RunContent/FootnoteRef.js +++ b/word/Editor/Paragraph/RunContent/FootnoteRef.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/FootnoteReference.js b/word/Editor/Paragraph/RunContent/FootnoteReference.js index 6e1dc24a35..fcc025aa1c 100644 --- a/word/Editor/Paragraph/RunContent/FootnoteReference.js +++ b/word/Editor/Paragraph/RunContent/FootnoteReference.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/PageNum.js b/word/Editor/Paragraph/RunContent/PageNum.js index b48a8eba63..6732e619af 100644 --- a/word/Editor/Paragraph/RunContent/PageNum.js +++ b/word/Editor/Paragraph/RunContent/PageNum.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -175,15 +175,9 @@ function PageNumRecalculateObject(type, graphemes, widths, totalWidth, isCopy) { this.type = type; - this.graphemes = graphemes; - this.widths = widths; + this.graphemes = graphemes && isCopy ? graphemes.slice() : graphemes; + this.widths = widths && isCopy ? widths.slice() : widths; this.width = totalWidth; - - if (isCopy) - { - this.graphemes = graphemes.slice(); - this.widths = widths.slice(); - } } //--------------------------------------------------------export---------------------------------------------------- diff --git a/word/Editor/Paragraph/RunContent/PagesCount.js b/word/Editor/Paragraph/RunContent/PagesCount.js index fe8502bfcb..e7e62ca1c5 100644 --- a/word/Editor/Paragraph/RunContent/PagesCount.js +++ b/word/Editor/Paragraph/RunContent/PagesCount.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/ParagraphMark.js b/word/Editor/Paragraph/RunContent/ParagraphMark.js index 44f5396ead..ac335570dd 100644 --- a/word/Editor/Paragraph/RunContent/ParagraphMark.js +++ b/word/Editor/Paragraph/RunContent/ParagraphMark.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/Separator.js b/word/Editor/Paragraph/RunContent/Separator.js index e0ea2cd4c6..1741077fad 100644 --- a/word/Editor/Paragraph/RunContent/Separator.js +++ b/word/Editor/Paragraph/RunContent/Separator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/Space.js b/word/Editor/Paragraph/RunContent/Space.js index 8fc8a98298..b4bd947ad8 100644 --- a/word/Editor/Paragraph/RunContent/Space.js +++ b/word/Editor/Paragraph/RunContent/Space.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/Tab.js b/word/Editor/Paragraph/RunContent/Tab.js index b3ada09395..6c1237f458 100644 --- a/word/Editor/Paragraph/RunContent/Tab.js +++ b/word/Editor/Paragraph/RunContent/Tab.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/Text.js b/word/Editor/Paragraph/RunContent/Text.js index 768800a896..7af4f5c541 100644 --- a/word/Editor/Paragraph/RunContent/Text.js +++ b/word/Editor/Paragraph/RunContent/Text.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/RunContent/Types.js b/word/Editor/Paragraph/RunContent/Types.js index f6937ec14a..22fe96e18e 100644 --- a/word/Editor/Paragraph/RunContent/Types.js +++ b/word/Editor/Paragraph/RunContent/Types.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -79,6 +79,8 @@ var para_Bookmark = 0x0047; var para_RevisionMove = 0x0048; var para_EndnoteReference = 0x0049; // Ссылка на сноску var para_EndnoteRef = 0x004a; // Номер сноски (должен быть только внутри сноски) +var para_PermStart = 0x004b; +var para_PermEnd = 0x004c; (function(window) { diff --git a/word/Editor/Paragraph/TextHyphenator.js b/word/Editor/Paragraph/TextHyphenator.js index b30b625fed..d94ebca6ab 100644 --- a/word/Editor/Paragraph/TextHyphenator.js +++ b/word/Editor/Paragraph/TextHyphenator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -12,7 +12,7 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish * street, Riga, Latvia, EU, LV-1050. * * The interactive user interfaces in modified source and object code versions @@ -241,6 +241,7 @@ let history = this.document.GetHistory(); let recalcData = history.getRecalcDataByElements(paragraphs); this.document.RecalculateWithParams(recalcData); + this.document.NeedUpdateTarget = false; } }; //--------------------------------------------------------export---------------------------------------------------- diff --git a/word/Editor/Paragraph/TextShaper.js b/word/Editor/Paragraph/TextShaper.js index cc90cefd67..6a21a510d9 100644 --- a/word/Editor/Paragraph/TextShaper.js +++ b/word/Editor/Paragraph/TextShaper.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -67,6 +67,8 @@ this.Ligatures = Asc.LigaturesType.None; this.Spacing = 0; this.AscFont = false; + + this.ClearBuffer(); }; CParagraphTextShaper.prototype.GetCodePoint = function(oItem) { diff --git a/word/Editor/Paragraph/bidi-flow.js b/word/Editor/Paragraph/bidi-flow.js index f29530b541..e56eeca025 100644 --- a/word/Editor/Paragraph/bidi-flow.js +++ b/word/Editor/Paragraph/bidi-flow.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -61,6 +61,9 @@ }; BidiFlow.prototype.add = function(element, bidiType) { + if (bidiType === AscBidi.TYPE.B) + this.end(); + if (AscBidi.DIRECTION.R === this.direction) { if (bidiType & AscBidi.FLAG.STRONG && bidiType & AscBidi.FLAG.RTL) @@ -99,7 +102,7 @@ }; BidiFlow.prototype.end = function() { - if (AscBidi.DIRECTION.R === this.direction) + if (AscBidi.DIRECTION.R === this.direction || this.buffer.length) { this.flushLTR(); this.flushNeutralRTL(); diff --git a/word/Editor/Paragraph/draw-selection.js b/word/Editor/Paragraph/draw-selection.js index a559343ccb..11ae2d0cda 100644 --- a/word/Editor/Paragraph/draw-selection.js +++ b/word/Editor/Paragraph/draw-selection.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/draw/content-draw-state.js b/word/Editor/Paragraph/draw/content-draw-state.js index 099a1c466a..d9c8d8bc0b 100644 --- a/word/Editor/Paragraph/draw/content-draw-state.js +++ b/word/Editor/Paragraph/draw/content-draw-state.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -375,7 +375,7 @@ */ ParagraphContentDrawState.prototype.handleFieldChar = function(fieldChar) { - if (!fieldChar.IsNumValue()) + if (!fieldChar.IsVisual()) return; // Draw the auto-calculated pageNum in the header/footer diff --git a/word/Editor/Paragraph/draw/highlight-draw-state.js b/word/Editor/Paragraph/draw/highlight-draw-state.js index 0a64e801ee..6aaabaacf4 100644 --- a/word/Editor/Paragraph/draw/highlight-draw-state.js +++ b/word/Editor/Paragraph/draw/highlight-draw-state.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -40,6 +40,7 @@ const FLAG_COMPLEX_FIELD = 0x0010; const FLAG_COLLABORATION = 0x0020; const FLAG_SHD = 0x0040; + const FLAG_PERM_RANGE = 0x0080; /** * Class for storing the current draw state of paragraph highlight (text/paragraph/field/etc. background) @@ -67,12 +68,14 @@ this.MMFields = new CParaDrawingRangeLines(); this.CFields = new CParaDrawingRangeLines(); this.HyperCF = new CParaDrawingRangeLines(); + this.Perm = new CParaDrawingRangeLines(); this.DrawComments = true; this.DrawSolvedComments = true; this.haveCurrentComment = false; this.currentCommentId = null; this.comments = []; // current list of comments + this.permRanges = {}; this.hyperlinks = []; @@ -98,6 +101,8 @@ this.highlight = highlight_None; this.shdColor = null; this.shd = null; + + this.permColor = null; } ParagraphHighlightDrawState.prototype.init = function(paragraph, graphics) { @@ -113,6 +118,14 @@ this.DrawSolvedComments = commentManager && commentManager.isUseSolved(); this.DrawMMFields = logicDocument && logicDocument.IsDocumentEditor() && logicDocument.isHighlightMailMergeFields(); this.currentCommentId = commentManager ? commentManager.getCurrentCommentId() : -1; + + this.permColor = new AscWord.CDocumentColor(233, 233, 233, 255); + if (logicDocument && logicDocument.IsDocumentEditor()) + { + let docApi = logicDocument.GetApi(); + if (docApi.isRestrictionView() || docApi.isRestrictionComments()) + this.permColor = new AscWord.CDocumentColor(255, 254, 213, 255); + } }; ParagraphHighlightDrawState.prototype.resetPage = function(page) { @@ -124,6 +137,7 @@ this.comments = []; this.haveCurrentComment = false; + this.permRanges = []; let pageEndInfo = this.Paragraph.GetEndInfoByPage(page - 1); if (pageEndInfo) @@ -132,6 +146,11 @@ { this.addComment(pageEndInfo.Comments[index]); } + + for (let index = 0, count = pageEndInfo.PermRanges.length; index < count; ++index) + { + this.addPermRange(pageEndInfo.PermRanges[index]); + } } this.complexFields.resetPage(this.Paragraph, page); }; @@ -160,6 +179,7 @@ this.MMFields.Clear(); this.CFields.Clear(); this.HyperCF.Clear(); + this.Perm.Clear(); this.run = null; this.highlight = highlight_None; @@ -198,6 +218,26 @@ if (-1 !== index) this.comments.splice(index, 1); }; + ParagraphHighlightDrawState.prototype.addPermRange = function(rangeId) + { + this.permRanges.push(rangeId); + }; + ParagraphHighlightDrawState.prototype.removePermRange = function(rangeId) + { + if (!this.permRanges.length) + return; + + if (this.permRanges[this.permRanges.length - 1] === rangeId) + { + --this.permRanges.length; + } + else + { + let pos = this.permRanges.indexOf(rangeId); + if (-1 !== pos) + this.permRanges.splice(pos, 1); + } + }; ParagraphHighlightDrawState.prototype.increaseSearchCounter = function() { ++this.searchCounter; @@ -425,6 +465,9 @@ if ((flags & FLAG_COLLABORATION) && collColor) this.Coll.Add(startY, endY, startX, endX, 0, collColor.r, collColor.g, collColor.b); + + if (flags & FLAG_PERM_RANGE && this.permColor) + this.Perm.Add(startY, endY, startX, endX, 0, this.permColor.r, this.permColor.g, this.permColor.b); }; ParagraphHighlightDrawState.prototype.pushHyperlink = function(hyperlink) { @@ -462,6 +505,8 @@ flags |= FLAG_SEARCH; if (this.isComplexFieldHighlight()) flags |= FLAG_COMPLEX_FIELD; + if (this.permRanges.length > 0) + flags |= FLAG_PERM_RANGE; if (element.Type !== para_End) flags |= FLAG_SHD; @@ -525,7 +570,7 @@ } case para_FieldChar: { - if (element.IsNumValue()) + if (element.IsVisual()) { if (this.DrawComments && this.comments.length > 0) flags |= FLAG_COMMENT; @@ -536,6 +581,9 @@ flags |= FLAG_SEARCH; else if (this.DrawColl && isCollaboration) flags |= FLAG_COLLABORATION; + + if (element.IsFormField()) + flags |= FLAG_COMPLEX_FIELD; } break; } diff --git a/word/Editor/Paragraph/draw/line-draw-state.js b/word/Editor/Paragraph/draw/line-draw-state.js index 81ba538849..18a1fb7ec0 100644 --- a/word/Editor/Paragraph/draw/line-draw-state.js +++ b/word/Editor/Paragraph/draw/line-draw-state.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -239,7 +239,7 @@ this.addLines(startX, endX); break; case para_FieldChar: - if (element.IsNumValue()) + if (element.IsVisual()) this.addLines(startX, endX); break; } diff --git a/word/Editor/Paragraph/draw/paragraph-draw-state.js b/word/Editor/Paragraph/draw/paragraph-draw-state.js index f9f96e364a..d6f34036a4 100644 --- a/word/Editor/Paragraph/draw/paragraph-draw-state.js +++ b/word/Editor/Paragraph/draw/paragraph-draw-state.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/position-calculator.js b/word/Editor/Paragraph/position-calculator.js index 4f16f7484b..de7cd67e63 100644 --- a/word/Editor/Paragraph/position-calculator.js +++ b/word/Editor/Paragraph/position-calculator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Paragraph/search-position-by-coords.js b/word/Editor/Paragraph/search-position-by-coords.js index 19797ff044..d57100794a 100644 --- a/word/Editor/Paragraph/search-position-by-coords.js +++ b/word/Editor/Paragraph/search-position-by-coords.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -65,6 +65,8 @@ this.bidiFlow = new AscWord.BidiFlow(this); + this.checkEmptyRun = true; + // TODO: Unite with CRunWithPosition class this.pos = null; this.posInfo = { @@ -88,6 +90,11 @@ this.bidiFlow.begin(paragraph.isRtlDirection()); }; + ParagraphSearchPositionXY.prototype.reset = function() + { + this.bidiFlow.end(); + this.checkEmptyRun = true; + }; ParagraphSearchPositionXY.prototype.setDiff = function(diff) { this.diffX = Math.abs(diff); @@ -140,6 +147,8 @@ this.bidiFlow.end(); + this.checkRangeBounds(x, paraRange); + this.checkInText() if (this.diffX > MAX_DIFF - 1) @@ -150,30 +159,29 @@ }; ParagraphSearchPositionXY.prototype.handleRun = function(run) { - // For the case when we didn't find any run with content - if (this.diffX > MAX_DIFF - 1 && !this.posInfo.run) + if (!this.checkEmptyRun) + return; + + if (!run.IsEmpty()) { - this.posInfo.run = run; - this.posInfo.pos = run.GetElementsCount(); + this.checkEmptyRun = false; + return; } - + + let curX = this.curX; if (run.IsMathRun()) { - if (run.IsEmpty()) - { - let mathPos = run.ParaMath.GetLinePosition(this.line, this.range); - this.curX = mathPos.x + run.pos.x; - } - - let diff = this.x - this.curX; - if (!this.inTextX && (Math.abs(diff) < this.diffAbs + EPSILON && (this.centerMode || this.x > this.curX))) - { - this.setDiff(diff); - this.posInfo.run = run; - this.posInfo.pos = run.GetElementsCount(); - } + let mathPos = run.ParaMath.GetLinePosition(this.line, this.range); + curX = mathPos.x + run.pos.x; } + let diff = this.x - curX; + if (this.checkPosition(diff)) + { + this.setDiff(diff); + this.posInfo.run = run; + this.posInfo.pos = run.GetElementsCount(); + } }; ParagraphSearchPositionXY.prototype.handleParaMath = function(math) { @@ -208,6 +216,8 @@ } this.curX = curX + mathW; + + this.reset(); }; ParagraphSearchPositionXY.prototype.handleMathBase = function(base) { @@ -268,6 +278,7 @@ this.curY = targetBounds.Y; base.Content[targetPos].getParagraphContentPosByXY(this); + this.reset(); }; ParagraphSearchPositionXY.prototype.handleRunElement = function(element, run, inRunPos) { @@ -482,6 +493,47 @@ return (((diff <= 0 && Math.abs(diff) < this.diffX - EPSILON) || (diff > 0 && diff < this.diffX + EPSILON)) && (this.centerMode || this.x > this.curX)); } + ParagraphSearchPositionXY.prototype.checkRangeBounds = function(x, range) + { + if (this.stepEnd) + return; + + let para = this.paragraph; + if (para.isRtlDirection()) + { + if (x < range.XVisible) + { + this.setDiff(range.XVisible - x); + this.pos = para.Get_EndRangePos2(this.line, this.range); + this.inTextPos = this.pos.Copy(); + this.inTextX = false; + } + else if (x > range.XEndVisible) + { + this.setDiff(range.XEndVisible - x); + this.pos = para.Get_StartRangePos2(this.line, this.range); + this.inTextPos = this.pos.Copy(); + this.inTextX = false; + } + } + else + { + if (x < range.XVisible) + { + this.setDiff(range.XVisible - x); + this.pos = para.Get_StartRangePos2(this.line, this.range); + this.inTextPos = this.pos.Copy(); + this.inTextX = false; + } + else if (x > range.XEndVisible) + { + this.setDiff(range.XEndVisible - x); + this.pos = para.Get_EndRangePos2(this.line, this.range); + this.inTextPos = this.pos.Copy(); + this.inTextX = false; + } + } + }; ParagraphSearchPositionXY.prototype.checkInText = function() { this.inText = false; diff --git a/word/Editor/ParagraphChanges.js b/word/Editor/ParagraphChanges.js index 663cabed32..9da6f7f072 100644 --- a/word/Editor/ParagraphChanges.js +++ b/word/Editor/ParagraphChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -571,7 +571,7 @@ CChangesParagraphNumbering.prototype.constructor = CChangesParagraphNumbering; CChangesParagraphNumbering.prototype.Type = AscDFH.historyitem_Paragraph_Numbering; CChangesParagraphNumbering.prototype.private_CreateObject = function() { - return new CNumPr(); + return new AscWord.NumPr(); }; CChangesParagraphNumbering.prototype.private_SetValue = function(newNumPr) { diff --git a/word/Editor/ParagraphContent.js b/word/Editor/ParagraphContent.js index 4afcaab14a..8dbae2fa41 100644 --- a/word/Editor/ParagraphContent.js +++ b/word/Editor/ParagraphContent.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/ParagraphContentBase.js b/word/Editor/ParagraphContentBase.js index 845fbe10bb..1f5bde6c2b 100644 --- a/word/Editor/ParagraphContentBase.js +++ b/word/Editor/ParagraphContentBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -71,6 +71,9 @@ CParagraphContentBase.prototype.IsStopCursorOnEntryExit = function() CParagraphContentBase.prototype.PreDelete = function() { }; +CParagraphContentBase.prototype.GetCurrentPermRanges = function(permRanges, isCurrent) +{ +}; /** * Выствялем параграф, в котром лежит данный элемент * @param {Paragraph} oParagraph @@ -248,7 +251,7 @@ CParagraphContentBase.prototype.UpdateBookmarks = function(oManager) { }; /** - * @param oSpellCheckerEngine {CParagraphSpellCheckerCollector} + * @param oSpellCheckerEngine {AscWord.CParagraphSpellCheckerCollector} * @param nDepth {number} */ CParagraphContentBase.prototype.CheckSpelling = function(oSpellCheckerEngine, nDepth) @@ -846,6 +849,13 @@ CParagraphContentBase.prototype.IsStartFromNewLine = function() { return false; }; +/** + * Удаляем из параграфа заданный элемент, если он тут есть + * @param element + */ +CParagraphContentBase.prototype.RemoveElement = function(element) +{ +}; /** * Пробегаемся по все ранам с заданной функцией * @param fCheck - функция проверки содержимого рана @@ -959,6 +969,11 @@ CParagraphContentBase.prototype.createDuplicateForSmartArt = function(oPr) */ CParagraphContentBase.prototype.CalculateTextToTable = function(oEngine){}; +CParagraphContentBase.prototype.GetAllPermRangeMarks = function(marks) +{ + return []; +}; + /** * Это базовый класс для элементов содержимого(контент) параграфа, у которых есть свое содержимое. * @constructor @@ -1275,6 +1290,20 @@ CParagraphContentWithContentBase.prototype.OnContentChange = function() oParagraph.OnContentChange(); } }; +CParagraphContentWithContentBase.prototype.OnTextPrChange = function() +{ + let oParent = this.GetParent(); + if (oParent && oParent.OnTextPrChange) + { + oParent.OnTextPrChange(); + } + else + { + let oParagraph = this.GetParagraph(); + if (oParagraph) + oParagraph.OnTextPrChange(); + } +}; /** * Это базовый класс для элементов параграфа, которые сами по себе могут содержать элементы параграфа. @@ -2388,6 +2417,18 @@ CParagraphContentWithParagraphLikeContent.prototype.Get_Text = function(Text) this.Content[CurPos].Get_Text( Text ); } }; +CParagraphContentWithParagraphLikeContent.prototype.GetAllPermRangeMarks = function(marks) +{ + if (!marks) + marks = []; + + for (let i = 0, count = this.Content.length; i < count; ++i) + { + this.Content[i].GetAllPermRangeMarks(marks); + } + + return marks; +}; CParagraphContentWithParagraphLikeContent.prototype.GetAllParagraphs = function(Props, ParaArray) { var ContentLen = this.Content.length; @@ -3999,7 +4040,7 @@ CParagraphContentWithParagraphLikeContent.prototype.RestartSpellCheck = function } }; /** - * @param oSpellCheckerEngine {CParagraphSpellCheckerCollector} + * @param oSpellCheckerEngine {AscWord.CParagraphSpellCheckerCollector} * @param nDepth {number} */ CParagraphContentWithParagraphLikeContent.prototype.CheckSpelling = function(oSpellCheckerEngine, nDepth) @@ -4546,6 +4587,14 @@ CParagraphContentWithParagraphLikeContent.prototype.PreDelete = function() this.RemoveSelection(); }; +CParagraphContentWithParagraphLikeContent.prototype.GetCurrentPermRanges = function(permRanges, isCurrent) +{ + let endPos = isCurrent ? Math.min(this.State.ContentPos, this.Content.length - 1) : this.Content.length - 1; + for (let pos = 0; pos <= endPos; ++pos) + { + this.Content[pos].GetCurrentPermRanges(permRanges, isCurrent && pos === endPos); + } +}; CParagraphContentWithParagraphLikeContent.prototype.GetCurrentComplexFields = function(arrComplexFields, isCurrent, isFieldPos) { var nEndPos = isCurrent ? this.State.ContentPos : this.Content.length - 1; @@ -4614,6 +4663,23 @@ CParagraphContentWithParagraphLikeContent.prototype.CanAddComment = function() return true; }; +CParagraphContentWithParagraphLikeContent.prototype.RemoveElement = function(element) +{ + for (let i = 0, count = this.Content.length; i < count; ++i) + { + let item = this.Content[i]; + if (item === element) + { + this.RemoveFromContent(i, 1); + return true; + } + else if (item.RemoveElement(element)) + { + return true; + } + } + return false; +}; CParagraphContentWithParagraphLikeContent.prototype.CheckRunContent = function(fCheck, oStartPos, oEndPos, nDepth, oCurrentPos, isForward) { if (undefined === isForward) @@ -4951,3 +5017,6 @@ function private_ParagraphContentChangesCheckLock(lockData) lockData.lock(); } } +//--------------------------------------------------------export---------------------------------------------------- +AscWord.ParagraphContentBase = CParagraphContentBase; +AscWord.ParagraphContentWithParagraphLikeContent = CParagraphContentWithParagraphLikeContent; diff --git a/word/Editor/Paragraph_Recalculate.js b/word/Editor/Paragraph_Recalculate.js index 3892fbc0b4..336df4a087 100644 --- a/word/Editor/Paragraph_Recalculate.js +++ b/word/Editor/Paragraph_Recalculate.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -60,7 +60,7 @@ Paragraph.prototype.Recalculate_FastWholeParagraph = function() // TODO: Отключаем это ускорение в таблицах, т.к. в таблицах и так есть свое ускорение. Но можно и это ускорение // подключить, для этого надо проверять изменились ли MinMax ширины и набираем ли мы в строке заголовков. - var oCell = this.Parent.IsTableCellContent(true); + var oCell = this.IsTableCellContent(true); if (oCell && oCell.GetTable()) { if (tbllayout_AutoFit === oCell.GetTable().Get_CompiledPr(false).TablePr.TableLayout || oCell.IsInHeader(true)) @@ -225,7 +225,7 @@ Paragraph.prototype.RecalculateFastRunRange = function(oParaPos) // TODO: Отключаем это ускорение в таблицах, т.к. в таблицах и так есть свое ускорение. Но можно и это ускорение // подключить, для этого надо проверять изменились ли MinMax ширины и набираем ли мы в строке заголовков. - if ( undefined === this.Parent || true === this.Parent.IsTableCellContent() ) + if ( undefined === this.Parent || true === this.IsTableCellContent() ) return -1; //Не запускаемм быстрый пересчет, когда параграф находится в автофигуре с выставленным флагом подбора размера по размеру контента, @@ -1497,6 +1497,9 @@ Paragraph.prototype.private_RecalculateLinePosition = function(CurLine, CurPa Bottom = Bottom2; Bottom += this.Lines[CurLine].Metrics.LineGap; + + if (this.Lines[CurLine].Metrics.LineGap < 0) + Bottom2 += this.Lines[CurLine].Metrics.LineGap; // Если данная строка последняя, тогда подкорректируем нижнюю границу if ( true === PRS.End ) @@ -1519,7 +1522,7 @@ Paragraph.prototype.private_RecalculateLinePosition = function(CurLine, CurPa // TODO: Здесь нужно сделать корректировку YLimit с учетом сносок. Надо разобраться почему вообще здесь // используется this.YLimit вместо Page.YLimit - if (!this.Parent.IsCalculatingContinuousSectionBottomLine() && false === this.Parent.IsTableCellContent() && Bottom > this.YLimit && Bottom - this.YLimit <= ParaPr.Spacing.After) + if (!this.Parent.IsCalculatingContinuousSectionBottomLine() && false === this.IsTableCellContent() && Bottom > this.YLimit && Bottom - this.YLimit <= ParaPr.Spacing.After) Bottom = this.YLimit; } @@ -1557,7 +1560,7 @@ Paragraph.prototype.private_RecalculateLineBottomBound = function(CurLine, CurPa var Bottom2 = PRS.LineBottom2; // В ячейке перенос страницы происходит по нижней границе, т.е. с учетом Spacing.After и границы - if ( true === this.Parent.IsTableCellContent() ) + if ( true === this.IsTableCellContent() ) Bottom2 = PRS.LineBottom; // Переносим строку по PageBreak. Если в строке ничего нет кроме PageBreak, и это не конец параграфа, тогда нам не надо проверять высоту строки и обтекание. @@ -1599,7 +1602,7 @@ Paragraph.prototype.private_RecalculateLineBottomBound = function(CurLine, CurPa && (CurLine != this.Pages[CurPage].FirstLine || false === bNoFootnotes || (0 === RealCurPage && ((null != this.Get_DocumentPrev() && !this.Parent.IsElementStartOnNewPage(this.GetIndex())) - || (true === this.Parent.IsTableCellContent() && true !== this.Parent.IsTableFirstRowOnNewPage()) + || (true === this.IsTableCellContent() && true !== this.Parent.IsTableFirstRowOnNewPage()) || (true === this.Parent.IsBlockLevelSdtContent() && true !== this.Parent.IsBlockLevelSdtFirstOnNewPage())))) && false === BreakPageLineEmpty) { @@ -2079,6 +2082,8 @@ Paragraph.prototype.private_RecalculateLineAlign = function(CurLine, CurPa return PRSA.RecalcResult; } } + + Range.XEndVisible = PRSA.X; } return PRSA.RecalcResult; @@ -2427,7 +2432,7 @@ Paragraph.prototype.private_RecalculateMoveLineToNextPage = function(CurLine, Cu let compatibilityMode = PRS.getCompatibilityMode(); if (compatibilityMode <= AscCommon.document_compatibility_mode_Word14) { - if (null != this.Get_DocumentPrev() && true != this.Parent.IsTableCellContent() && 0 === CurPage) + if (null != this.Get_DocumentPrev() && !this.IsTableCellContent() && 0 === CurPage) { CurLine = 0; PRS.RunRecalcInfoBreak = null; @@ -2486,20 +2491,22 @@ Paragraph.prototype.private_CheckNeedBeforeSpacing = function(CurPage, Parent, P && this.LogicDocument.GetCompatibilityMode() <= AscCommon.document_compatibility_mode_Word14 && true === ParaPr.PageBreakBefore) return true; - - if (!(Parent instanceof CDocument)) + + let topDocument = this.GetTopDocumentContent(); + if (!(topDocument instanceof AscWord.Document) || this.IsTableCellContent()) { if (Parent instanceof AscFormat.CDrawingDocContent && 0 !== CurPage) return false; - + return true; } - // Если дошли до этого места, то тут все зависит от того на какой мы странице. Если на первой странице данной секции + // Если сюда дошли, значит мы либо на верхнем уровне, либо в блочном контроле, который лежит на верхнем уровне. + // Дальше все зависит от того на какой мы странице. Если на первой странице данной секции, // тогда добавляем расстояние, а если нет - нет. Но подсчет первой страницы здесь не совпадает с тем, как она // считается для нумерации. Если разрыв секции идет на текущей странице, то первой считается сразу данная страница. - var LogicDocument = Parent; + var LogicDocument = topDocument; var SectionIndex = LogicDocument.GetSectionIndexByElementIndex(this.Get_Index()); var FirstElement = LogicDocument.GetFirstElementInSection(SectionIndex); @@ -2987,24 +2994,26 @@ CParaLineMetrics.prototype.Reset = function() function CParaLineRange(X, XEnd) { - this.X = X; // Начальная позиция отрезка без учета прилегания содержимого - this.XVisible = 0; // Начальная позиция отрезка с учетом прилегания содержимого - this.XEnd = XEnd; // Предельное значение по X для данного отрезка - this.StartPos = 0; // Позиция в контенте параграфа, с которой начинается данный отрезок - this.EndPos = 0; // Позиция в контенте параграфа, на которой заканчиваетсяданный отрезок - this.W = 0; - this.Spaces = 0; // Количество пробелов в отрезке, без учета пробелов в конце отрезка - this.WEnd = 0; // Если есть знак конца параграфа в данном отрезке, то это его ширина - this.WBreak = 0; // Если в конце отрезка есть разрыв строки/колонки/страницы + this.X = X; // Начальная позиция отрезка без учета прилегания содержимого + this.XVisible = 0; // Начальная позиция отрезка с учетом прилегания содержимого + this.XEnd = XEnd; // Предельное значение по X для данного отрезка + this.XEndVisible = X; // Где фактически заканчивается содержимое в данном отрезке + this.StartPos = 0; // Позиция в контенте параграфа, с которой начинается данный отрезок + this.EndPos = 0; // Позиция в контенте параграфа, на которой заканчиваетсяданный отрезок + this.W = 0; + this.Spaces = 0; // Количество пробелов в отрезке, без учета пробелов в конце отрезка + this.WEnd = 0; // Если есть знак конца параграфа в данном отрезке, то это его ширина + this.WBreak = 0; // Если в конце отрезка есть разрыв строки/колонки/страницы } CParaLineRange.prototype = { Shift : function(Dx, Dy) { - this.X += Dx; - this.XEnd += Dx; - this.XVisible += Dx; + this.X += Dx; + this.XEnd += Dx; + this.XVisible += Dx; + this.XEndVisible += Dx; }, Copy : function() @@ -3014,6 +3023,7 @@ CParaLineRange.prototype = NewRange.X = this.X; NewRange.XVisible = this.XVisible; NewRange.XEnd = this.XEnd; + NewRange.XEndVisible = this.XEndVisible; NewRange.StartPos = this.StartPos; NewRange.EndPos = this.EndPos; NewRange.W = this.W; @@ -3368,7 +3378,7 @@ CParagraphRecalculateStateWrap.prototype.Reset_Page = function(Paragraph, CurPag this.TopDocument = Paragraph.Parent.GetTopDocumentContent(); this.PageAbs = Paragraph.Get_AbsolutePage(CurPage); this.ColumnAbs = Paragraph.Get_AbsoluteColumn(CurPage); - this.InTable = Paragraph.Parent.IsTableCellContent(); + this.InTable = Paragraph.IsTableCellContent(); this.SectPr = null; this.TopIndex = -1; @@ -4337,6 +4347,7 @@ function CParagraphRecalculateStateInfo() this.fast = false; this.Comments = []; this.ComplexFields = []; + this.PermRanges = []; } CParagraphRecalculateStateInfo.prototype = Object.create(ParagraphRecalculateStateBase.prototype); CParagraphRecalculateStateInfo.prototype.constructor = CParagraphRecalculateStateInfo; @@ -4348,34 +4359,28 @@ CParagraphRecalculateStateInfo.prototype.isFastRecalculation = function() { return this.fast; }; -CParagraphRecalculateStateInfo.prototype.Reset = function(PrevInfo) +CParagraphRecalculateStateInfo.prototype.Reset = function(prevInfo) { - if (null !== PrevInfo && undefined !== PrevInfo) - { - this.Comments = []; - this.ComplexFields = []; - - if (PrevInfo.Comments) - { - for (var nIndex = 0, nCount = PrevInfo.Comments.length; nIndex < nCount; ++nIndex) - { - this.Comments[nIndex] = PrevInfo.Comments[nIndex]; - } - } + this.Comments = []; + this.ComplexFields = []; + this.PermRanges = []; + + if (!prevInfo) + return; + + if (prevInfo.Comments) + this.Comments = prevInfo.Comments.slice(); - if (PrevInfo.ComplexFields) + if (prevInfo.ComplexFields) + { + for (let index = 0, count = prevInfo.ComplexFields.length; index < count; ++index) { - for (var nIndex = 0, nCount = PrevInfo.ComplexFields.length; nIndex < nCount; ++nIndex) - { - this.ComplexFields[nIndex] = PrevInfo.ComplexFields[nIndex].Copy(); - } + this.ComplexFields[index] = prevInfo.ComplexFields[index].Copy(); } } - else - { - this.Comments = []; - this.ComplexFields = []; - } + + if (prevInfo.PermRanges) + this.PermRanges = prevInfo.PermRanges.slice(); }; CParagraphRecalculateStateInfo.prototype.AddComment = function(Id) { @@ -4393,6 +4398,21 @@ CParagraphRecalculateStateInfo.prototype.RemoveComment = function(Id) } } }; +CParagraphRecalculateStateInfo.prototype.addPermRange = function(rangeId) +{ + this.PermRanges.push(rangeId); +}; +CParagraphRecalculateStateInfo.prototype.removePermRange = function(rangeId) +{ + let pos = this.PermRanges.indexOf(rangeId); + if (-1 === pos) + return; + + if (this.PermRanges.length - 1 === pos) + --this.PermRanges.length; + else + this.PermRanges.splice(pos, 1); +}; CParagraphRecalculateStateInfo.prototype.processFieldChar = function(oFieldChar) { if (!oFieldChar || !oFieldChar.IsUse()) diff --git a/word/Editor/PresentationField.js b/word/Editor/PresentationField.js index 22e0c4f118..990890e2b6 100644 --- a/word/Editor/PresentationField.js +++ b/word/Editor/PresentationField.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -243,6 +243,17 @@ } } } + else if("categoryname" === sFieldType) + { + if(this.Paragraph && this.Paragraph.Parent) + { + oStylesObject = this.Paragraph.Parent.Get_Styles(); + if(oStylesObject.shape && oStylesObject.shape.getCategoryName && oStylesObject.shape.getCategoryName()) + { + sStr = oStylesObject.shape.getCategoryName(); + } + } + } else if("percentage" === sFieldType) { if(this.Paragraph && this.Paragraph.Parent) diff --git a/word/Editor/Revisions/TrackRevisionsManager.js b/word/Editor/Revisions/TrackRevisionsManager.js index 5944e90c31..504b6e1013 100644 --- a/word/Editor/Revisions/TrackRevisionsManager.js +++ b/word/Editor/Revisions/TrackRevisionsManager.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -180,7 +180,8 @@ this.CheckArray.length = nIndex < 0 ? 0 : nIndex; - if (bNeedUpdate) + // TODO: Сделать нормальную проверку, что текущий параграф или текущее выделение попала в проверенные элементы + //if (bNeedUpdate) this.LogicDocument.UpdateInterface(); }; /** @@ -729,7 +730,7 @@ for (var ParaId in this.Changes) { - var Para = g_oTableId.Get_ById(ParaId); + var Para = AscCommon.g_oTableId.Get_ById(ParaId); if (Para && Para.Get_Parent()) { LogicDocuments[Para.Get_Parent().Get_Id()] = true; @@ -789,7 +790,7 @@ var ParagraphsArray = []; for (var ParaId in ParagraphsObject) { - var Para = g_oTableId.Get_ById(ParaId); + var Para = AscCommon.g_oTableId.Get_ById(ParaId); if (null !== Para) { ParagraphsArray.push(Para); diff --git a/word/Editor/RevisionsChange.js b/word/Editor/RevisionsChange.js index 8938f88d2c..e0d81248d4 100644 --- a/word/Editor/RevisionsChange.js +++ b/word/Editor/RevisionsChange.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -366,6 +366,10 @@ CRevisionsChange.prototype.GetWeight = function() return 0; }; +CRevisionsChange.prototype.IsValid = function() +{ + return !!(this.Element && this.Element.IsUseInDocument()); +}; //--------------------------------------------------------export-------------------------------------------------------- CRevisionsChange.prototype['get_UserId'] = CRevisionsChange.prototype.GetUserId; diff --git a/word/Editor/Run.js b/word/Editor/Run.js index d74f406143..6259eae584 100644 --- a/word/Editor/Run.js +++ b/word/Editor/Run.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -194,9 +194,8 @@ ParaRun.prototype.Copy = function(Selected, oPr) var isCopyReviewPr = oPr.CopyReviewPr; - var bMath = this.Type == para_Math_Run ? true : false; - - var NewRun = new ParaRun(this.Paragraph, bMath); + let isMathRun = this.IsMathRun(); + let NewRun = new AscWord.Run(undefined, isMathRun); NewRun.Set_Pr(this.Pr.Copy(isCopyReviewPr, oPr)); @@ -218,9 +217,9 @@ ParaRun.prototype.Copy = function(Selected, oPr) { NewRun.SetReviewType(reviewtype_Add); } - - if(true === bMath) - NewRun.Set_MathPr(this.MathPrp.Copy()); + + if (isMathRun) + NewRun.Set_MathPr(this.MathPrp.Copy()); @@ -528,65 +527,110 @@ ParaRun.prototype.GetText = function(oText) this.Get_Text(oText); return oText.Text; }; - -ParaRun.prototype.GetTextOfElement = function(isLaTeX, isSelected) +/** + * + * @param {MathTextAndStyles | boolean} oMathText + * @param {boolean} isSelectedText + * @constructor + */ +ParaRun.prototype.GetTextOfElement = function(oMathText, isSelectedText) { - let str = ""; - let strCurrentStyleGroup = ""; - let strCurrentTemp = ""; - - let startPos = isSelected ? Math.min(this.Selection.StartPos, this.Selection.EndPos) : 0; - let endPos = isSelected ? Math.max(this.Selection.StartPos, this.Selection.EndPos) : this.Content.length; + oMathText = new AscMath.MathTextAndStyles(oMathText); + let isLatex = oMathText.IsLaTeX(); + let nStartPos = (isSelectedText == true ? Math.min(this.Selection.StartPos, this.Selection.EndPos) : 0); + let nEndPos = (isSelectedText == true ? Math.max(this.Selection.StartPos, this.Selection.EndPos) : this.Content.length); + let isStrFont = false; + + // [Unicode] Investigate the mechanism for converting an escaped backslash. Information about separating it + // into a separate Run is not enough. - for (let i = startPos; i < endPos; i++) + for (let i = nStartPos; i < nEndPos; i++) { - if (this.Content[i]) - { - let strTemp = this.Content[i].GetTextOfElement(isLaTeX); + let oCurrentElement = this.Content[i]; + let strCurrentElement = oCurrentElement.GetTextOfElement().GetText(); - if (!isLaTeX) - { - str += strTemp; - continue; - } - let arrCurrentToken = window.AscMath.GetLaTeXFont[strTemp]; + if (this.Content.length === 1 && oCurrentElement.value === 11034) + return oMathText; - if (!arrCurrentToken) - { - let strSymbol = AscMath.SymbolsToLaTeX[strTemp]; - if (strSymbol) - strTemp = strSymbol + " "; + let oLast = oMathText.GetLastContent(); + let strLast = "" + if (oLast) + strLast = oLast.text[oLast.text.length - 1]; - if (strCurrentStyleGroup) - { - str += strCurrentStyleGroup + "{" + strCurrentTemp + "}"; - strCurrentStyleGroup = ""; - strCurrentTemp = ""; - } - str += strTemp; - continue; - } + // for LaTeX space processing while convert to professional mode + if (oMathText.IsDefaultText) + { + oMathText.AddText(new AscMath.MathText(strCurrentElement, this)); + continue; + } + + let arrFontContent = oMathText.IsLaTeX() + ? AscMath.GetLaTeXFont[strCurrentElement] + : undefined; + let strMathFontName = arrFontContent + ? AscMath.oStandardFont[arrFontContent[0]] + : undefined; + + if (!strMathFontName && isLatex) + { + let strTemp = AscMath.SymbolsToLaTeX[strCurrentElement]; + if (strTemp) + strCurrentElement = strTemp; + } - let arrClassToken = arrCurrentToken[0]; - let strNamesOfClassToken = window.AscMath.GetNamesTypeFontLaTeX(arrClassToken)[0]; - let strDefaultLetter = arrCurrentToken[1]; + if (strMathFontName) + { + if (!isStrFont) + oMathText.AddText(new AscMath.MathText(strMathFontName + "{", this)); - if (strCurrentStyleGroup === "") + isStrFont = true; + oMathText.AddText(new AscMath.MathText(arrFontContent[1], this)); + } + else if (isStrFont && !arrFontContent) + { + isStrFont = false; + oMathText.AddText(new AscMath.MathText('}', this)); + } + else + { + if (oMathText.IsLaTeX()) { - strCurrentStyleGroup = strNamesOfClassToken; - strCurrentTemp += strDefaultLetter; + if (strCurrentElement === " " && strLast !== "\\") //normal space + oMathText.AddText(new AscMath.MathText('\\ ', this)) + // else if (strCurrentElement === " ") + // oMathText.AddText(new AscMath.MathText("\\quad", this)); + // else if (strCurrentElement === " ") + // oMathText.AddText(new AscMath.MathText("\\:", this)); + // else if (strCurrentElement === " ") + // oMathText.AddText(new AscMath.MathText("\\;", this)); + else + { + oMathText.AddText(new AscMath.MathText(strCurrentElement, this)); + } } else { - strCurrentTemp += strDefaultLetter; + // in Word if slash in separate ParaRun -> slash interpreted as an escaped slash + // if (strCurrentElement === "/" && this.Content.length === 1 && strLast !== "\\") + // { + // let oEscSlash = new AscMath.MathText("\\/", this); + // let oAddData = oEscSlash.GetAdditionalData(); + // let oMathMetaData = oAddData.GetMathMetaData(); + // oMathMetaData.setIsEscapedSlash(); + // oMathText.AddText(oEscSlash, this); + // } + // else + // { + oMathText.AddText(new AscMath.MathText(strCurrentElement, this)); + //} } } } - if (strCurrentStyleGroup) - return str + strCurrentStyleGroup + "{" + strCurrentTemp + "}"; - else - return str; + if (isStrFont) + oMathText.AddText(new AscMath.MathText('}', this)); + + return oMathText; }; ParaRun.prototype.MathAutocorrection_GetBracketsOperatorsInfo = function (isLaTeX) { @@ -620,13 +664,13 @@ ParaRun.prototype.MathAutocorrection_GetBracketsOperatorsInfo = function (isLaTe } } - if (AscMath.MathLiterals.lBrackets.IsIncludes(strContent)) + if (AscMath.MathLiterals.lBrackets.SearchU(strContent)) intCount = -1; - else if (AscMath.MathLiterals.rBrackets.IsIncludes(strContent)) + else if (AscMath.MathLiterals.rBrackets.SearchU(strContent)) intCount = 1; - else if (AscMath.MathLiterals.lrBrackets.IsIncludes(strContent)) + else if (AscMath.MathLiterals.lrBrackets.SearchU(strContent)) intCount = 0; - else if (AscMath.MathLiterals.operators.IsIncludes(strContent)) + else if (AscMath.MathLiterals.operator.SearchU(strContent)) intCount = 2; if (intCount === null && isOpen) @@ -654,7 +698,7 @@ ParaRun.prototype.MathAutocorrection_GetOperatorInfo = function () { let strContent = String.fromCharCode(this.Content[intCounter].value); - if (AscMath.MathLiterals.operators.IsIncludes(strContent)) + if (AscMath.MathLiterals.operator.SearchU(strContent)) arrOperatorContent.push(intCounter); } @@ -683,7 +727,7 @@ ParaRun.prototype.MathAutocorrection_IsLastElement = function(type) let oLastElement = this.Content[this.Content.length - 1]; let strLastElement = String.fromCharCode(oLastElement.value); - return type.IsIncludes(strLastElement); + return type.SearchU(strLastElement); } ParaRun.prototype.MathAutoCorrection_DeleteLastSpace = function() @@ -770,12 +814,16 @@ ParaRun.prototype.IsStartFromNewLine = function() */ ParaRun.prototype.Add = function(oItem) { - var oRun = this.CheckRunBeforeAdd(oItem); + var oRun; + + if (!this.IsMathRun() && !(oItem instanceof CMathText)) + oRun = this.CheckRunBeforeAdd(oItem); + if (!oRun) oRun = this; - + oRun.private_AddItemToRun(oRun.State.ContentPos, oItem); - + var nFlags = 0; if (para_Run === oRun.Type && (nFlags = oItem.GetAutoCorrectFlags())) oRun.ProcessAutoCorrect(oRun.State.ContentPos - 1, nFlags); @@ -1142,7 +1190,7 @@ ParaRun.prototype.CheckRunBeforeAdd = function(oItem) oNewRun = this.private_CheckTrackRevisionsBeforeAdd(oNewRun); if (oNewRun) - oNewRun.Make_ThisElementCurrent(); + oNewRun.SetThisElementCurrentInParagraph(); return oNewRun; }; @@ -2347,7 +2395,7 @@ ParaRun.prototype.private_IsChangedLineMetrics = function(arrAddItems, arrRemIte || para_Math_Placeholder === nItemType || para_Math_BreakOperator === nItemType || (para_Drawing === nItemType && (true === oItem.Is_Inline() || true === this.GetParagraph().Parent.Is_DrawingShape())) - || (para_FieldChar === nItemType && oItem.IsNumValue())) + || (para_FieldChar === nItemType && oItem.IsVisual())) { var isAdd = false; @@ -2392,7 +2440,7 @@ ParaRun.prototype.private_IsChangedLineMetrics = function(arrAddItems, arrRemIte || para_Math_Placeholder === nItemType || para_Math_BreakOperator === nItemType || (para_Drawing === nItemType && (true === oItem.Is_Inline() || true === this.GetParagraph().Parent.Is_DrawingShape())) - || (para_FieldChar === nItemType && oItem.IsNumValue())) + || (para_FieldChar === nItemType && oItem.IsVisual())) { isUseMetricsBefore = true; break; @@ -2707,7 +2755,45 @@ ParaRun.prototype.SplitNoDuplicate = function(oContentPos, nDepth, oNewParagraph oNewParagraph.AddToContent(oNewParagraph.Content.length, oNewRun, false); }; +ParaRun.prototype.SplitForSpreadCollaborativeMark = function(CurPos) // переносим сами объекты, а не копии +{ + AscCommon.History.Add(new CChangesRunOnStartSplit(this, CurPos)); + AscCommon.CollaborativeEditing.OnStart_SplitRun(this, CurPos); + + let oParent = this.GetParent(); + var bMathRun = this.Type == para_Math_Run; + var NewRun = new ParaRun(this.Paragraph, false); + NewRun.SetReviewTypeWithInfo(this.ReviewType, this.ReviewInfo ? this.ReviewInfo.Copy() : undefined); + if(bMathRun) + NewRun.Set_MathPr(this.MathPrp.Copy()); + + // Копируем настройки + NewRun.SetPr(this.Pr.Copy(true)); + + for (let nIndex = CurPos, nNewIndex = 0, nCount = this.Content.length; nIndex < nCount; ++nIndex, ++nNewIndex) + { + let oNewItem = this.Content[nIndex]; + NewRun.AddToContent(nNewIndex, oNewItem, false); + if (para_FieldChar === this.Content[nIndex].Type) + { + let oComplexField = this.Content[nIndex].GetComplexField(); + if (oComplexField) + oComplexField.ReplaceChar(oNewItem); + } + } + + this.RemoveFromContent(CurPos, this.Content.length - CurPos, true); + + AscCommon.History.Add(new CChangesRunOnEndSplit(this, NewRun)); + AscCommon.CollaborativeEditing.OnEnd_SplitRun(NewRun); + + return NewRun; +}; +ParaRun.prototype.GetCollaborativeMarks = function () +{ + return this.CollaborativeMarks.Ranges; +} ParaRun.prototype.Check_NearestPos = function(ParaNearPos, Depth) { var RunNearPos = new CParagraphElementNearPos(); @@ -3100,7 +3186,7 @@ ParaRun.prototype.GetSelectedText = function(bAll, bClearText, oPr) if (oPr && true === oPr.NewLineParagraph) { var oParagraph = this.GetParagraph(); - if (oParagraph && null === oParagraph.Get_DocumentNext() && oParagraph.Parent.IsTableCellContent()) + if (oParagraph && null === oParagraph.Get_DocumentNext() && oParagraph.IsTableCellContent()) { if (!oParagraph.Parent.IsLastTableCellInRow(true)) Str += oPr.TableCellSeparator ? oPr.TableCellSeparator : '\t'; @@ -4016,10 +4102,18 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) } case para_Math_BreakOperator: { - var BrkLen = Item.Get_Width2()/AscWord.TEXTWIDTH_DIVIDER; + var BrkLen = Item.Get_Width2()/AscWord.TEXTWIDTH_DIVIDER; - var bCompareOper = Item.Is_CompareOperator(); - var bOperBefore = this.ParaMath.Is_BrkBinBefore() == true; + var oFirstContent = (PRS.Word === false && this.Content.length > 0) + ? this.Content[0] + : null; + var strFirstLetter = oFirstContent !== null + ? String.fromCharCode(oFirstContent.value) + : ""; + var isFirstOperator = PRS.Word === false && AscMath.MathLiterals.operator.SearchU(strFirstLetter); + + var bCompareOper = Item.Is_CompareOperator(); + var bOperBefore = isFirstOperator || this.ParaMath.Is_BrkBinBefore() == true; var bOperInEndContent = bOperBefore === false && bEndRunToContent === true && Pos == ContentLen - 1 && Word == true, // необходимо для того, чтобы у контентов мат объектов (к-ые могут разбиваться на строки) не было отметки Set_LineBreakPos, иначе скобка (или GapLeft), перед которой стоит break_Operator, перенесется на следующую строку (без текста !) bLowPriority = bCompareOper == false && bContainCompareOper == false; @@ -4290,7 +4384,7 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) // Добавляем разрыв страницы. Если это первая страница, тогда ставим разрыв страницы в начале параграфа, // если нет, тогда в начале текущей строки. - if (null != Para.Get_DocumentPrev() && true != Para.Parent.IsTableCellContent() && 0 === CurPage) + if (null != Para.Get_DocumentPrev() && true != Para.IsTableCellContent() && 0 === CurPage) { Para.Recalculate_Drawing_AddPageBreak(0, 0, true); PRS.RecalcResult = recalcresult_NextPage | recalcresultflags_Page; @@ -4602,13 +4696,37 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) PRS.ComplexFields.processFieldChar(Item); isHiddenCFPart = PRS.ComplexFields.isComplexFieldCode(); - - if (Item.IsSeparate() && !isHiddenCFPart) + + if (Item.IsSeparate()) + { + var oComplexField = Item.GetComplexField(); + var oHdrFtr = Para.Parent.IsHdrFtr(true); + if (oHdrFtr && !oComplexField && this.Paragraph) + { + // Т.к. Recalculate_Width запускается после Recalculate_Range, то возможен случай, когда у нас + // поля еще не собраны, но в колонтитулах они нам нужны уже собранные + this.Paragraph.ProcessComplexFields(); + oComplexField = Item.GetComplexField(); + } + + var oInstruction = oComplexField ? oComplexField.GetInstruction() : null; + + let isHiddenValue = !!(oHdrFtr + && oInstruction + && (AscWord.fieldtype_NUMPAGES === oInstruction.GetType() + || AscWord.fieldtype_PAGE === oInstruction.GetType() + || AscWord.fieldtype_FORMULA === oInstruction.GetType())); + + Item.SetHiddenValue(isHiddenValue); + } + else if (Item.IsEnd() && !isHiddenCFPart) { // Специальная ветка, для полей PAGE и NUMPAGES, находящихся в колонтитуле var oComplexField = Item.GetComplexField(); var oHdrFtr = Para.Parent.IsHdrFtr(true); + // TODO: Ранее обработка была на Separate и поле могло быть не собрано, теперь оно на End + // и такого просиходить не должно if (oHdrFtr && !oComplexField && this.Paragraph) { // Т.к. Recalculate_Width запускается после Recalculate_Range, то возможен случай, когда у нас @@ -4616,56 +4734,73 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) this.Paragraph.ProcessComplexFields(); oComplexField = Item.GetComplexField(); } - - if (oHdrFtr && oComplexField) + + let isVisualFieldChar = false; + var oInstruction = oComplexField ? oComplexField.GetInstruction() : null; + + if (oHdrFtr + && oInstruction + && (AscWord.fieldtype_NUMPAGES === oInstruction.GetType() + || AscWord.fieldtype_PAGE === oInstruction.GetType() + || AscWord.fieldtype_FORMULA === oInstruction.GetType())) { - var oParent = this.GetParent(); - var nRunPos = this.private_GetPosInParent(oParent); - - // Заглушка на случай, когда настройки текущего рана не совпадают с настройками рана, где расположен текст - if (Pos >= ContentLen - 1 && oParent && oParent.Content[nRunPos + 1] instanceof ParaRun) + if (AscWord.fieldtype_NUMPAGES === oInstruction.GetType()) { - var oNumValuePr = oParent.Content[nRunPos + 1].Get_CompiledPr(false); - g_oTextMeasurer.SetTextPr(oNumValuePr, this.Paragraph.Get_Theme()); - Item.Measure(g_oTextMeasurer, oNumValuePr); + oHdrFtr.Add_PageCountElement(Item); + + let logicDocument = Para.LogicDocument; + if (!Item.IsNumValue() && logicDocument && logicDocument.IsDocumentEditor()) + { + let numFormat = oInstruction.haveNumericFormat() ? oInstruction.getNumericFormat() : Asc.c_oAscNumberingFormat.Decimal; + Item.SetNumValue(logicDocument.Pages.length, numFormat); + } } - - var oInstruction = oComplexField.GetInstruction(); - if (oInstruction && (AscWord.fieldtype_NUMPAGES === oInstruction.GetType() || AscWord.fieldtype_PAGE === oInstruction.GetType() || AscWord.fieldtype_FORMULA === oInstruction.GetType())) + else if (AscWord.fieldtype_PAGE === oInstruction.GetType()) { - if (AscWord.fieldtype_NUMPAGES === oInstruction.GetType()) - { + let logicDocument = Para.LogicDocument; + let sectInfo = logicDocument.Get_SectionPageNumInfo2(Para.GetAbsolutePage(PRS.Page)); + let sectPr = logicDocument.GetSectionsInfo().Get(sectInfo.SectIndex).SectPr; + let numFormat = oInstruction.haveNumericFormat() ? oInstruction.getNumericFormat() : sectPr.GetPageNumFormat(); + Item.SetNumValue(sectInfo.CurPage, numFormat); + } + else + { + if (oComplexField.IsHaveNestedNUMPAGES()) oHdrFtr.Add_PageCountElement(Item); - - let logicDocument = Para.LogicDocument; - if (!Item.IsNumValue() && logicDocument && logicDocument.IsDocumentEditor()) - { - let numFormat = oInstruction.haveNumericFormat() ? oInstruction.getNumericFormat() : Asc.c_oAscNumberingFormat.Decimal; - Item.SetNumValue(logicDocument.Pages.length, numFormat); - } - } - else if (AscWord.fieldtype_PAGE === oInstruction.GetType()) - { - let logicDocument = Para.LogicDocument; - let sectInfo = logicDocument.Get_SectionPageNumInfo2(Para.GetAbsolutePage(PRS.Page)); - let sectPr = logicDocument.GetSectionsInfo().Get(sectInfo.SectIndex).SectPr; - let numFormat = oInstruction.haveNumericFormat() ? oInstruction.getNumericFormat() : sectPr.GetPageNumFormat(); - Item.SetNumValue(sectInfo.CurPage, numFormat); - } - else - { - if (oComplexField.IsHaveNestedNUMPAGES()) - oHdrFtr.Add_PageCountElement(Item); - - var sValue = oComplexField.CalculateValue(); - var nValue = parseInt(sValue); - if (isNaN(nValue)) - nValue = 0; - - Item.SetFormulaValue(nValue); - } + + var sValue = oComplexField.CalculateValue(); + var nValue = parseInt(sValue); + if (isNaN(nValue)) + nValue = 0; + + Item.SetFormulaValue(nValue); } - + isVisualFieldChar = true; + } + else if (oInstruction && AscWord.fieldtype_FORMCHECKBOX === oInstruction.GetType()) + { + isVisualFieldChar = true; + Item.SetFormCheckBox(true); + } + else + { + Item.SetNumValue(null); + } + + if (isVisualFieldChar) + { + var oParent = this.GetParent(); + var nRunPos = this.private_GetPosInParent(oParent); + + // Заглушка на случай, когда настройки текущего рана не совпадают с настройками рана, + // где расположено значение поля, либо начало поля + let numValueTextPr = this.Get_CompiledPr(false); + if (Pos <= 0 && oParent && nRunPos > 0 && oParent.Content[nRunPos - 1] instanceof AscWord.Run) + numValueTextPr = oParent.Content[nRunPos - 1].Get_CompiledPr(false); + + g_oTextMeasurer.SetTextPr(numValueTextPr, this.Paragraph.Get_Theme()); + Item.Measure(g_oTextMeasurer, numValueTextPr); + // Если до этого было слово, тогда не надо проверять убирается ли оно, но если стояли пробелы, // тогда мы их учитываем при проверке убирается ли данный элемент, и добавляем только если // данный элемент убирается @@ -4674,18 +4809,18 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) // Добавляем длину пробелов до слова + длина самого слова. Не надо проверять // убирается ли слово, мы это проверяем при добавленнии букв. X += SpaceLen + WordLen; - + Word = false; EmptyLine = false; TextOnLine = true; SpaceLen = 0; WordLen = 0; } - + // Если на строке начиналось какое-то слово, тогда данная строка уже не пустая if (true === StartWord) FirstItemOnLine = false; - + var PageNumWidth = Item.GetWidth(); if (X + SpaceLen + PageNumWidth > XEnd && ( false === FirstItemOnLine || false === Para.IsSingleRangeOnLine(ParaLine, ParaRange) )) { @@ -4697,18 +4832,14 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) { // Добавляем длину пробелов до слова и ширину данного элемента X += SpaceLen + PageNumWidth; - + FirstItemOnLine = false; EmptyLine = false; TextOnLine = true; } - + SpaceLen = 0; } - else - { - Item.SetNumValue(null); - } } break; @@ -4939,7 +5070,7 @@ ParaRun.prototype.Recalculate_LineMetrics = function(PRS, ParaPr, _CurLine, _Cur } case para_FieldChar: { - if (Item.IsNumValue()) + if (Item.IsVisual()) UpdateLineMetricsText = true; break; @@ -5173,7 +5304,7 @@ ParaRun.prototype.Recalculate_Range_Width = function(PRSC, _CurLine, _CurRange) isHiddenCFPart = PRSC.ComplexFields.isComplexFieldCode(); - if (Item.IsNumValue()) + if (Item.IsVisual()) { PRSC.Words++; PRSC.Range.W += PRSC.SpaceLen; @@ -5331,7 +5462,7 @@ ParaRun.prototype.Recalculate_Range_Spaces = function(PRSA, _CurLine, _CurRange, var X_Right_Margin = PageLimits.XLimit - PageFields.XLimit; var Y_Bottom_Margin = PageLimits.YLimit - PageFields.YLimit; - var isTableCellContent = Para.Parent.IsTableCellContent(); + var isTableCellContent = Para.IsTableCellContent(); var isUseWrap = Item.Use_TextWrap(); var isLayoutInCell = Item.IsLayoutInCell(); @@ -5458,7 +5589,7 @@ ParaRun.prototype.Recalculate_Range_Spaces = function(PRSA, _CurLine, _CurRange, if ( true === LDRecalcInfo.Can_RecalcObject() ) { // Обновляем позицию объекта - Item.Update_Position(PRSA.Paragraph, new CParagraphLayout( PRSA.X, PRSA.Y , PageAbs, PRSA.LastW, ColumnStartX, ColumnEndX, X_Left_Margin, X_Right_Margin, Page_Width, Top_Margin, Bottom_Margin, Page_H, PageFields.X, PageFields.Y, Para.Pages[CurPage].Y + Para.Lines[CurLine].Y - Para.Lines[CurLine].Metrics.Ascent, Para.Pages[_CurPage].Y), PageLimits, PageLimitsOrigin, _CurLine); + Item.Update_Position(PRSA.Paragraph, new CParagraphLayout( PRSA.X, PRSA.Y , PageAbs, PRSA.LastW, ColumnStartX, ColumnEndX, X_Left_Margin, X_Right_Margin, Page_Width, Top_Margin, Bottom_Margin, Page_H, PageFields.X, PageFields.Y, Para.Pages[CurPage].Y + Para.Lines[_CurLine].Y - Para.Lines[_CurLine].Metrics.Ascent, Para.Pages[_CurPage].Y), PageLimits, PageLimitsOrigin, _CurLine); if (PRSA.getCompatibilityMode() >= AscCommon.document_compatibility_mode_Word15 && 0 === CurPage @@ -5596,7 +5727,7 @@ ParaRun.prototype.Recalculate_Range_Spaces = function(PRSA, _CurLine, _CurRange, PRSA.ComplexFields.processFieldChar(Item); isHiddenCFPart = PRSA.ComplexFields.isComplexFieldCode(); - if (Item.IsNumValue()) + if (Item.IsVisual()) { PRSA.X += Item.GetWidthVisible(); PRSA.LastW = Item.GetWidthVisible(); @@ -6505,7 +6636,8 @@ ParaRun.prototype.getParagraphContentPosByXY = function(searchState) let rangePos = this.getRangePos(searchState.line, searchState.range); let startPos = rangePos[0]; let endPos = rangePos[1]; - if (startPos >= endPos) + + if (startPos > endPos) return; for (let pos = startPos; pos < endPos; ++pos) @@ -6566,8 +6698,7 @@ ParaRun.prototype.ConvertParaContentPosToRangePos = function(oContentPos, nDepth var nCurPos = oContentPos ? Math.max(0, Math.min(this.Content.length, oContentPos.Get(nDepth))) : this.Content.length; for (var nPos = 0; nPos < nCurPos; ++nPos) { - if (para_Text === this.Content[nPos].Type || para_Space === this.Content[nPos].Type || para_Tab === this.Content[nPos].Type) - nRangePos++; + nRangePos++; } return nRangePos; @@ -7479,6 +7610,7 @@ ParaRun.prototype.Recalc_CompiledPr = function(RecalcMeasure) // Если мы в формуле, тогда ее надо пересчитывать this.private_RecalcCtrPrp(); + this.OnTextPrChange(); }; ParaRun.prototype.RecalcMeasure = function() { @@ -7538,18 +7670,19 @@ ParaRun.prototype.Internal_Compile_Pr = function () // Получим настройки текста, для данного параграфа var TextPr = this.Paragraph.Get_CompiledPr2(false).TextPr.Copy(); + + let paraParent = this.Paragraph.GetParent(); + let Styles = paraParent && paraParent.Get_Styles() ? paraParent.Get_Styles() : null; // Мержим настройки стиля. // Одно исключение, когда задан стиль Hyperlink внутри класса Hyperlink внутри поля TOC, то стиль // мержить не надо и, более того, цвет и подчеркивание из прямых настроек тоже не используется. - if (undefined !== this.Pr.RStyle) + if (Styles + && this.Pr.RStyle + && (!this.IsStyleHyperlink() || !this.IsInHyperlinkInTOC())) { - if (!this.IsStyleHyperlink() || !this.IsInHyperlinkInTOC()) - { - var Styles = this.Paragraph.Parent.Get_Styles(); - var StyleTextPr = Styles.Get_Pr(this.Pr.RStyle, styletype_Character).TextPr; - TextPr.Merge(StyleTextPr); - } + var StyleTextPr = Styles.Get_Pr(this.Pr.RStyle, styletype_Character).TextPr; + TextPr.Merge(StyleTextPr); } if (this.Type === para_Math_Run) @@ -7564,10 +7697,9 @@ ParaRun.prototype.Internal_Compile_Pr = function () return TextPr; } - if (!this.IsNormalText()) // math text + if (!this.IsNormalText() && Styles) // math text { // выставим дефолтные текстовые настройки для математических Run - var Styles = this.Paragraph.Parent.Get_Styles(); var StyleId = this.Paragraph.Style_Get(); // скопируем текстовые настройки прежде чем подменим на пустые @@ -7793,6 +7925,8 @@ ParaRun.prototype.Apply_TextPr = function(TextPr, IncFontSize, ApplyToAll) this.Paragraph.TextPr.IncreaseDecreaseFontSize(IncFontSize); } } + + this.OnTextPrChange(); } else { @@ -7956,6 +8090,7 @@ ParaRun.prototype.Apply_TextPr = function(TextPr, IncFontSize, ApplyToAll) Result.push( CRun ); Result.push( RRun ); + this.OnTextPrChange(); return Result; } }; @@ -9318,12 +9453,25 @@ ParaRun.prototype.IsContainMathOperators = function () for (let i = 0; i < this.Content.length; i++) { let oCurrentMathText = this.Content[i]; - let isNamesOFLiteralsOperator = AscMath.MathLiterals.operators.IsIncludes(String.fromCharCode(oCurrentMathText.value)); + let strOperator = String.fromCharCode(oCurrentMathText.value); + let isNamesOFLiteralsOperator = AscMath.MathLiterals.operator.SearchU(strOperator); if (oCurrentMathText.IsBreakOperator() || isNamesOFLiteralsOperator) return true; } return false; }; +ParaRun.prototype.IsContainSpaces = function () +{ + for (let i = 0; i < this.Content.length; i++) + { + let oCurrentMathText = this.Content[i]; + let strSpace = String.fromCharCode(oCurrentMathText.value); + let isSpace = AscMath.MathLiterals.space.SearchU(strSpace); + if (isSpace) + return true; + } + return false; +} ParaRun.prototype.IsContainNormalText = function() { for (let i = 0; i < this.Content.length; i++) @@ -10223,6 +10371,27 @@ ParaRun.prototype.RemoveMathPlaceholder = function() // TODO: Расчет стилей разный для плейсхолдера и для текса (разобраться почему) this.Recalc_CompiledPr(); }; +ParaRun.prototype.ProcessingOldEquationConvert = function() +{ + for (let nPos = 0; nPos < this.Content.length; nPos++) + { + let oCurrentCMathText = this.Content[nPos]; + + if (oCurrentCMathText.value === 8202 || oCurrentCMathText.value === 8201) + { + this.Remove_FromContent(nPos, 1); + nPos--; + } + else if (oCurrentCMathText.value === 8203) + { + oCurrentCMathText.add("⥂".charCodeAt(0)); + } + else if (oCurrentCMathText.value === 8197) + { + oCurrentCMathText.add(" ".charCodeAt(0)); //3/MSP + } + } +} ParaRun.prototype.Set_MathPr = function(MPrp) { var OldValue = this.MathPrp; @@ -11050,8 +11219,12 @@ ParaRun.prototype.RemoveElement = function(oElement) for (var nIndex = 0, nCount = this.Content.length; nIndex < nCount; ++nIndex) { if (oElement === this.Content[nIndex]) - return this.RemoveFromContent(nIndex, 1, true); + { + this.RemoveFromContent(nIndex, 1, true); + return true; + } } + return false; }; ParaRun.prototype.GotoFootnoteRef = function(isNext, isCurrent, isStepOver, isStepFootnote, isStepEndnote) { @@ -11123,6 +11296,18 @@ ParaRun.prototype.GetFootnoteRefsInRange = function(arrFootnotes, _CurLine, _Cur arrFootnotes.push(this.Content[CurPos]); } }; +ParaRun.prototype.GetSelectedContentControls = function(arrContentControls) +{ + let startPos = (this.Selection.StartPos < this.Selection.EndPos ? this.Selection.StartPos : this.Selection.EndPos); + let endPos = (this.Selection.StartPos < this.Selection.EndPos ? this.Selection.EndPos : this.Selection.StartPos); + + for (let i = startPos; i < endPos; ++i) + { + let item = this.Content[i]; + if (item.IsDrawing()) + item.GetAllContentControls(arrContentControls); + } +}; ParaRun.prototype.GetAllContentControls = function(arrContentControls) { if (!arrContentControls) diff --git a/word/Editor/RunChanges.js b/word/Editor/RunChanges.js index 9f5f644dc6..2adac567d7 100644 --- a/word/Editor/RunChanges.js +++ b/word/Editor/RunChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Search/DocumentSearch.js b/word/Editor/Search/DocumentSearch.js index 45f9456477..9866c8002e 100644 --- a/word/Editor/Search/DocumentSearch.js +++ b/word/Editor/Search/DocumentSearch.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Search/ParagraphSearch.js b/word/Editor/Search/ParagraphSearch.js index 86e021af32..11c991b6fd 100644 --- a/word/Editor/Search/ParagraphSearch.js +++ b/word/Editor/Search/ParagraphSearch.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Search/Pattern.js b/word/Editor/Search/Pattern.js index ebbe5bfd82..b7a60b4d15 100644 --- a/word/Editor/Search/Pattern.js +++ b/word/Editor/Search/Pattern.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Search/SearchItem.js b/word/Editor/Search/SearchItem.js index 8781c9d115..a1bc9862ce 100644 --- a/word/Editor/Search/SearchItem.js +++ b/word/Editor/Search/SearchItem.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Sections.js b/word/Editor/Sections.js index d60fa07268..7a3d480355 100644 --- a/word/Editor/Sections.js +++ b/word/Editor/Sections.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1441,7 +1441,7 @@ CSectionPr.prototype.RemoveLineNumbers = function() }; CSectionPr.prototype.GetLineNumbersCountBy = function() { - return (this.LnNumType && undefined !== this.LnNumType.CountBy ? this.LnNumType.CountBy : 1); + return (this.LnNumType && undefined !== this.LnNumType.CountBy ? this.LnNumType.CountBy : 0); }; CSectionPr.prototype.GetLineNumbersStart = function() { @@ -1943,9 +1943,9 @@ CFootnotePr.prototype.ReadFromBinary = function(Reader) function CSectionLnNumType(nCountBy, nDistance, nStart, nRestartType) { // Если задан сам класс, но в нем не задан CountBy, считаем, что нумерация строк не задана. Поэтому - // по умолчанию задаем CountBy=1 + // по умолчанию задаем CountBy=0 - this.CountBy = undefined !== nCountBy ? nCountBy : 1; + this.CountBy = undefined !== nCountBy ? nCountBy : 0; this.Distance = undefined !== nDistance && null !== nDistance ? nDistance : undefined; // В твипсах this.Start = undefined !== nStart && 0 !== nStart ? nStart : undefined; this.Restart = undefined !== nRestartType && Asc.c_oAscLineNumberRestartType.NewPage !== nRestartType ? nRestartType : undefined; diff --git a/word/Editor/SectionsChanges.js b/word/Editor/SectionsChanges.js index 7b63bce519..aea2b267c5 100644 --- a/word/Editor/SectionsChanges.js +++ b/word/Editor/SectionsChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/SelectedContent.js b/word/Editor/SelectedContent.js index 5599108c09..c8e3befa1b 100644 --- a/word/Editor/SelectedContent.js +++ b/word/Editor/SelectedContent.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -52,6 +52,7 @@ this.Comments = []; this.CommentsMarks = {}; this.Maths = []; + this.PermRangeMarks = []; this.LogicDocument = null; @@ -91,6 +92,7 @@ this.DrawingObjects = []; this.Comments = []; this.Maths = []; + this.PermRangeMarks = []; this.MoveDrawing = false; @@ -104,6 +106,7 @@ this.private_CollectObjects(); this.private_CheckComments(oLogicDocument); this.private_CheckTrackMove(oLogicDocument); + this.private_CheckPermRangeMarks(oLogicDocument); }; CSelectedContent.prototype.SetNewCommentsGuid = function(isNew) { @@ -534,6 +537,7 @@ oParagraph.GetAllDrawingObjects(this.DrawingObjects); oParagraph.GetAllComments(this.Comments); oParagraph.GetAllMaths(this.Maths); + oParagraph.GetAllPermRangeMarks(this.PermRangeMarks); } if (oElement.IsParagraph() && nCount > 1) @@ -678,6 +682,17 @@ oLogicDocument.TrackMoveId = null; } }; + CSelectedContent.prototype.private_CheckPermRangeMarks = function(logicDocument) + { + // TODO: Пока мы удаляем все метки. В будущем надо сделать, что если скопированы начало и конец, то мы + // приписываем им новый id диапазона, а если скопировано только начала или конец, то удаляем такие метки + + for (let markIndex = 0, markCount = this.PermRangeMarks.length; markIndex < markCount; ++markIndex) + { + let mark = this.PermRangeMarks[markIndex]; + mark.removeMark(); + } + }; CSelectedContent.prototype.private_CreateNewCommentsGuid = function() { let oManager = this.LogicDocument.GetCommentsManager(); diff --git a/word/Editor/Serialize2.js b/word/Editor/Serialize2.js index 245d4d32f2..d7447794cb 100644 --- a/word/Editor/Serialize2.js +++ b/word/Editor/Serialize2.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -452,7 +452,10 @@ var c_oSerParType = { BookmarkEnd: 24, MRun: 25, AltChunk: 26, - DocParts: 27 + DocParts: 27, + PermStart: 28, + PermEnd: 29, + JsaProjectExternal: 30 }; var c_oSerGlossary = { DocPart: 0, @@ -488,7 +491,9 @@ var c_oSerDocTableType = { MoveFromRangeStart: 14, MoveFromRangeEnd: 15, MoveToRangeStart: 16, - MoveToRangeEnd: 17 + MoveToRangeEnd: 17, + PermStart: 18, + PermEnd: 19 }; var c_oSerRunType = { run:0, @@ -525,7 +530,8 @@ var c_oSerRunType = { delInstrText: 31, linebreakClearAll: 32, linebreakClearLeft: 33, - linebreakClearRight: 34 + linebreakClearRight: 34, + pptxDrawingAlternative: 0x99 }; var c_oSerImageType = { MediaId:0, @@ -572,7 +578,8 @@ var c_oSerImageType2 = { DistBEmu: 32, DistLEmu: 33, DistREmu: 34, - DistTEmu: 35 + DistTEmu: 35, + ChartEx: 36 }; var c_oSerEffectExtent = { Left: 0, @@ -698,6 +705,15 @@ var c_oSer_CommentsType = { UserData: 15 }; +var c_oSerPermission = { + Id : 0, + DisplacedByCustomXml : 1, + ColFirst : 2, + ColLast : 3, + Ed : 4, + EdGroup : 5 +}; + var c_oSer_StyleType = { Character: 1, Numbering: 2, @@ -952,7 +968,22 @@ var c_oSer_OMathContentType = { MoveFromRangeStart: 68, MoveFromRangeEnd: 69, MoveToRangeStart: 70, - MoveToRangeEnd: 71 + MoveToRangeEnd: 71, + AnnotationRef: 72, + CommentReference: 73, + ContentPart: 74, + Cr: 75, + EndnoteRef: 76, + EndnoteReference: 77, + FootnoteRef: 78, + FootnoteReference: 79, + LastRenderedPageBreak: 80, + NoBreakHyphen: 81, + SoftHyphen: 82, + Sym: 83, + Tab: 84, + PermStart: 85, + PermEnd: 86 }; var c_oSer_HyperlinkType = { Content: 0, @@ -1121,6 +1152,7 @@ var c_oSerSdt = { PictureFormPrRespectBorders : 63, PictureFormPrShiftX : 64, PictureFormPrShiftY : 65, + PictureFormPrSignature : 66, FormPrBorder : 70, FormPrShd : 71, @@ -1710,6 +1742,48 @@ function readBookmarkEnd(length, bcr, oReadResult, paragraphContent) { oReadResult.addBookmarkEnd(paragraphContent, bookmark, true); return res; } +function readPermStart(length, bcr, oReadResult, paragraphContent) { + if ((typeof AscWord === "undefined") || (typeof AscWord.ParagraphPermStart === "undefined")) + return c_oSerConstants.ReadUnknown; + + let permPr = {}; + let res = readPermPr(length, bcr, permPr); + let permStart = AscWord.ParagraphPermStart.fromObject(permPr); + oReadResult.addPermStart(paragraphContent, permStart); + return res; +} +function readPermEnd(length, bcr, oReadResult, paragraphContent) { + if ((typeof AscWord === "undefined") || (typeof AscWord.ParagraphPermEnd === "undefined")) + return c_oSerConstants.ReadUnknown; + + let permPr = {}; + let res = readPermPr(length, bcr, permPr); + let permEnd = AscWord.ParagraphPermEnd.fromObject(permPr); + oReadResult.addPermEnd(paragraphContent, permEnd); + return res; +} +function readPermPr(length, bcr, permPr) { + let stream = bcr.stream; + return bcr.Read1(length, function(type, length) { + if (c_oSerPermission.Id === type) + permPr.id = stream.GetString2LE(length); + else if (c_oSerPermission.DisplacedByCustomXml === type) + permPr.displacedByCustomXml = stream.GetUChar(); + else if (c_oSerPermission.ColFirst === type) + permPr.colFirst = stream.GetULongLE(); + else if (c_oSerPermission.ColLast === type) + permPr.colLast = stream.GetULongLE(); + else if (c_oSerPermission.Ed === type) + permPr.ed = stream.GetString2LE(length); + else if (c_oSerPermission.EdGroup === type) + permPr.edGrp = stream.GetUChar(); + else + return c_oSerConstants.ReadUnknown; + + return c_oSerConstants.ReadOk; + }); +} + function initMathRevisions(elem ,props, reader) { if(props.del) { elem.SetReviewTypeWithInfo(reviewtype_Remove, props.del, false); @@ -1870,7 +1944,7 @@ function BinaryFileWriter(doc, bMailMergeDocx, bMailMergeHtml, isCompatible, opt pptx_content_writer.BinaryFileWriter.ImportFromMemory(old); }}); } - if (this.Document.CustomProperties) { + if (this.Document.CustomProperties && this.Document.CustomProperties.hasProperties()) { this.WriteTable(c_oSerTableTypes.CustomProperties, {Write: function(){ var old = new AscCommon.CMemory(true); pptx_content_writer.BinaryFileWriter.ExportToMemory(old); @@ -5469,6 +5543,12 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa case para_RevisionMove: WiteMoveRange(this.bs, this.saveParams, item); break; + case para_PermStart: + case para_PermEnd: + this.bs.WriteItem(para_PermStart === item.Type ? c_oSerParType.PermStart : c_oSerParType.PermEnd, function() { + oThis.WritePermPr(item); + }); + break; } } if ((bLastRun && bUseSelection && !par.Selection_CheckParaEnd()) || (selectedAll != undefined && selectedAll === false) ) @@ -5679,6 +5759,13 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa this.bs.WriteItem(c_oSer_FldSimpleType.CharType, function() { oThis.memory.WriteByte(fldChar.CharType); }); + + if (fldChar.ffData) { + this.bs.WriteItem(c_oSer_FldSimpleType.FFData, function () { + oThis.WriteFFData(fldChar.ffData); + }); + } + if (null !== fldChar.fldData) { this.bs.WriteItem(c_oSer_FldSimpleType.PrivateData, function () { oThis.memory.WriteString3(fldChar.fldData); @@ -5701,141 +5788,167 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa //Content this.bs.WriteItem(c_oSer_FldSimpleType.Content, fWriteContent); }; - this.WriteFFData = function(oFFData) { + this.WriteFFData = function(ffData) { var oThis = this; - if (null != oFFData.CalcOnExit) { + if (undefined !== ffData.calcOnExit) { this.bs.WriteItem(c_oSerFFData.CalcOnExit, function() { - oThis.memory.WriteBool(oFFData.CalcOnExit); + oThis.memory.WriteBool(ffData.calcOnExit); }); } - if (null != oFFData.CheckBox) { + if (undefined !== ffData.checkBox) { this.bs.WriteItem(c_oSerFFData.CheckBox, function() { - oThis.WriteFFCheckBox(oFFData.CheckBox); + oThis.WriteFFCheckBox(ffData.checkBox); }); } - if (null != oFFData.DDList) { + if (undefined !== ffData.ddList) { this.bs.WriteItem(c_oSerFFData.DDList, function() { - oThis.WriteDDList(oFFData.DDList); + oThis.WriteFFDDList(ffData.ddList); }); } - if (null != oFFData.Enabled) { + if (undefined !== ffData.enabled) { this.bs.WriteItem(c_oSerFFData.Enabled, function() { - oThis.memory.WriteBool(oFFData.Enabled); + oThis.memory.WriteBool(ffData.enabled); }); } - if (null != oFFData.EntryMacro) { + if (undefined !== ffData.entryMacro) { this.memory.WriteByte(c_oSerFFData.EntryMacro); - this.memory.WriteString2(oFFData.EntryMacro); + this.memory.WriteString2(ffData.entryMacro); } - if (null != oFFData.ExitMacro) { + if (undefined !== ffData.exitMacro) { this.memory.WriteByte(c_oSerFFData.ExitMacro); - this.memory.WriteString2(oFFData.ExitMacro); + this.memory.WriteString2(ffData.exitMacro); } - if (null != oFFData.HelpText) { + if (undefined !== ffData.helpText) { this.bs.WriteItem(c_oSerFFData.HelpText, function() { - oThis.WriteFFHelpText(oFFData.HelpText); + oThis.WriteFFText(ffData.helpText); }); } - if (null != oFFData.Label) { + if (undefined !== ffData.label) { this.bs.WriteItem(c_oSerFFData.Label, function() { - oThis.memory.WriteLong(oFFData.Label); + oThis.memory.WriteLong(ffData.label); }); } - if (null != oFFData.Name) { + if (undefined !== ffData.name) { this.memory.WriteByte(c_oSerFFData.Name); - this.memory.WriteString2(oFFData.Name); + this.memory.WriteString2(ffData.name); } - if (null != oFFData.StatusText) { + if (undefined !== ffData.statusText) { this.bs.WriteItem(c_oSerFFData.StatusText, function() { - oThis.WriteFFHelpText(oFFData.StatusText); + oThis.WriteFFText(ffData.statusText); }); } - if (null != oFFData.TabIndex) { + if (undefined !== ffData.tabIndex) { this.bs.WriteItem(c_oSerFFData.TabIndex, function() { - oThis.memory.WriteLong(oFFData.TabIndex); + oThis.memory.WriteLong(ffData.tabIndex); }); } - if (null != oFFData.TabIndex) { - this.bs.WriteItem(c_oSerFFData.TabIndex, function() { - oThis.memory.WriteLong(oFFData.TabIndex); - }); - } - if (null != oFFData.TextInput) { + if (undefined !== ffData.textInput) { this.bs.WriteItem(c_oSerFFData.TextInput, function() { - oThis.WriteTextInput(oFFData.TextInput); + oThis.WriteFFTextInput(ffData.textInput); }); } }; - this.WriteFFCheckBox = function(oCheckBox) { + this.WriteFFCheckBox = function(checkBox) { var oThis = this; - if (null != oCheckBox.CBChecked) { + if (undefined !== checkBox.checked) { this.bs.WriteItem(c_oSerFFData.CBChecked, function() { - oThis.memory.WriteBool(oCheckBox.CBChecked); + oThis.memory.WriteBool(checkBox.checked); }); } - if (null != oCheckBox.CBDefault) { + if (undefined !== checkBox.default) { this.bs.WriteItem(c_oSerFFData.CBDefault, function() { - oThis.memory.WriteBool(oCheckBox.CBDefault); + oThis.memory.WriteBool(checkBox.default); }); } - if (null != oCheckBox.CBSize) { + if (undefined !== checkBox.size) { this.bs.WriteItem(c_oSerFFData.CBSize, function() { - oThis.memory.WriteLong(oCheckBox.CBSize); + oThis.memory.WriteLong(checkBox.size); }); } - if (null != oCheckBox.CBSizeAuto) { + if (undefined !== checkBox.sizeAuto) { this.bs.WriteItem(c_oSerFFData.CBSizeAuto, function() { - oThis.memory.WriteBool(oCheckBox.CBSizeAuto); + oThis.memory.WriteBool(checkBox.sizeAuto); }); } }; - this.WriteDDList = function(oDDList) { + this.WriteFFDDList = function(ddList) { var oThis = this; - if (null != oDDList.DLDefault) { + if (undefined !== ddList.default) { this.bs.WriteItem(c_oSerFFData.DLDefault, function() { - oThis.memory.WriteLong(oDDList.DLDefault); + oThis.memory.WriteLong(ddList.default); }); } - if (null != oDDList.DLResult) { + if (undefined !== ddList.result) { this.bs.WriteItem(c_oSerFFData.DLResult, function() { - oThis.memory.WriteLong(oDDList.DLResult); + oThis.memory.WriteLong(ddList.result); }); } - for (var i = 0; i < oDDList.DLListEntry.length; ++i) { + for (var i = 0; i < ddList.list.length; ++i) { this.memory.WriteByte(c_oSerFFData.DLListEntry); - this.memory.WriteString2(oDDList.DLListEntry[i]); + this.memory.WriteString2(ddList.list[i]); } }; - this.WriteFFHelpText = function(oHelpText) { + this.WriteFFText = function(ffText) { var oThis = this; - if (null != oHelpText.HTType) { + if (undefined !== ffText.type) { this.bs.WriteItem(c_oSerFFData.HTType, function() { - oThis.memory.WriteByte(oHelpText.HTType); + oThis.memory.WriteByte(ffText.type); }); } - if (null != oHelpText.HTVal) { + if (undefined !== ffText.val) { this.memory.WriteByte(c_oSerFFData.HTVal); - this.memory.WriteString2(oHelpText.HTVal); + this.memory.WriteString2(ffText.val); } }; - this.WriteTextInput = function(oTextInput) { + this.WriteFFTextInput = function(textInput) { var oThis = this; - if (null != oTextInput.TIDefault) { + if (undefined !== textInput.default) { this.memory.WriteByte(c_oSerFFData.TIDefault); - this.memory.WriteString2(oTextInput.TIDefault); + this.memory.WriteString2(textInput.default); } - if (null != oTextInput.TIFormat) { + if (undefined !== textInput.format) { this.memory.WriteByte(c_oSerFFData.TIFormat); - this.memory.WriteString2(oTextInput.TIFormat); + this.memory.WriteString2(textInput.format); } - if (null != oTextInput.TIMaxLength) { + if (undefined !== textInput.maxLength) { this.bs.WriteItem(c_oSerFFData.TIMaxLength, function() { - oThis.memory.WriteLong(oTextInput.TIMaxLength); + oThis.memory.WriteLong(textInput.maxLength); }); } - if (null != oTextInput.TIType) { + if (undefined !== textInput.type) { this.bs.WriteItem(c_oSerFFData.TIType, function() { - oThis.memory.WriteByte(oTextInput.TIType); + oThis.memory.WriteByte(textInput.type); + }); + } + }; + this.WritePermPr = function(permMark) { + let _t = this; + if (undefined !== permMark.getRangeId()) { + this.memory.WriteByte(c_oSerPermission.Id); + this.memory.WriteString2(permMark.getRangeId()); + } + if (undefined !== permMark.getColFirst()) { + this.bs.WriteItem(c_oSerPermission.ColFirst, function() { + _t.memory.WriteLong(permMark.getColFirst()); + }); + } + if (undefined !== permMark.getColLast()) { + this.bs.WriteItem(c_oSerPermission.ColLast, function() { + _t.memory.WriteLong(permMark.getColLast()); + }); + } + if (undefined !== permMark.getDisplacedByCustomXml()) { + this.bs.WriteItem(c_oSerPermission.DisplacedByCustomXml, function() { + _t.memory.WriteByte(permMark.getDisplacedByCustomXml()); + }); + } + if (undefined !== permMark.getEd()) { + this.memory.WriteByte(c_oSerPermission.Ed); + this.memory.WriteString2(permMark.getEd()); + } + if (undefined !== permMark.getEdGrp()) { + this.bs.WriteItem(c_oSerPermission.EdGroup, function() { + _t.memory.WriteByte(permMark.getEdGrp()); }); } }; @@ -6011,11 +6124,23 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa } if(null != img.GraphicObj.chart) { - this.memory.WriteByte(c_oSerImageType2.Chart2); - this.memory.WriteByte(c_oSerPropLenType.Variable); - - var oBinaryChartWriter = new AscCommon.BinaryChartWriter(this.memory); - this.bs.WriteItemWithLength(function () { oBinaryChartWriter.WriteCT_ChartSpace(img.GraphicObj); }); + if(img.GraphicObj.isChartEx()) + { + this.memory.WriteByte(c_oSerImageType2.ChartEx); + this.memory.WriteByte(c_oSerPropLenType.Variable); + + var oBinaryChartWriter = new AscCommon.BinaryChartWriter(this.memory); + this.bs.WriteItemWithLength(function () { oBinaryChartWriter.WriteCT_ChartExSpace(img.GraphicObj);}); + } + else + { + this.memory.WriteByte(c_oSerImageType2.Chart2); + this.memory.WriteByte(c_oSerPropLenType.Variable); + + var oBinaryChartWriter = new AscCommon.BinaryChartWriter(this.memory); + this.bs.WriteItemWithLength(function () { oBinaryChartWriter.WriteCT_ChartSpace(img.GraphicObj); }); + } + } else { this.WriteGraphicObj(img.GraphicObj); } @@ -6845,6 +6970,9 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa if (null != val.ShiftY) { oThis.bs.WriteItem(c_oSerSdt.PictureFormPrShiftY, function (){oThis.memory.WriteDouble2(val.ShiftY);}); } + if (null != val.Signature && false !== val.Signature) { + oThis.bs.WriteItem(c_oSerSdt.PictureFormPrSignature, function (){oThis.memory.WriteBool(val.Signature);}); + } }; this.WriteSdtComplexFormPr = function(complexFormPr) { @@ -7886,7 +8014,6 @@ function BinaryFileReader(doc, openParams) case c_oSerTableTypes.CustomProperties: this.stream.Seek2(mtiOffBits); fileStream = this.stream.ToFileStream(); - this.Document.CustomProperties = new AscCommon.CCustomProperties(); this.Document.CustomProperties.fromStream(fileStream); this.stream.FromFileStream(fileStream); break; @@ -8282,10 +8409,8 @@ function BinaryFileReader(doc, openParams) api.sync_AddComment( oNewComment.Id, oNewComment.Data ); } } - //remove bookmarks without end - this.oReadResult.deleteMarkupStartWithoutEnd(this.oReadResult.bookmarksStarted); - //todo crush - // this.oReadResult.deleteMarkupStartWithoutEnd(this.oReadResult.moveRanges); + + this.oReadResult.deleteMarkupStartWithoutEnd(); if (this.oReadResult.DocumentContent.length > 0) { this.Document.ReplaceContent(this.oReadResult.DocumentContent); @@ -8308,6 +8433,7 @@ function BinaryFileReader(doc, openParams) AscCommon.pptx_content_loader.Reader.ImageMapChecker = AscCommon.pptx_content_loader.ImageMapChecker; var context = opt_xmlParserContext; context.loadDataLinks(); + context.GenerateSmartArts(); } this.Document.On_EndLoad(); @@ -8320,6 +8446,7 @@ function BinaryFileReader(doc, openParams) api && api.asc_addRestriction(restrictionType); } } + pptx_content_loader.Reader.GenerateSmartArts(); //чтобы удалялся stream с бинарником pptx_content_loader.Clear(true); @@ -8398,13 +8525,13 @@ function BinaryFileReader(doc, openParams) var tryAddStyle = function (_stylePaste, _elem, _basedOnElems) { var isEqualName = null, isAlreadyContainsStyle; - + const isDefaultStyleName = oDocumentStyles.IsStyleDefaultByName(_stylePaste.style.GetName(true), true); for (var j in oDocumentStyles.Style) { var styleDoc = oDocumentStyles.Style[j]; - isAlreadyContainsStyle = styleDoc.isEqual(_stylePaste.style); + isAlreadyContainsStyle = styleDoc.isEqual(_stylePaste.style, isDefaultStyleName); //TODO пока закомментировал, поскольку всегда добавляем новый стиль - if (styleDoc.Name === _stylePaste.style.Name /*|| (styleDoc.Custom === false && stylePaste.style.Custom === false && styleDoc.Name.toLowerCase() === stylePaste.style.Name.toLowerCase())*/) { + if (styleDoc.GetName(isDefaultStyleName) === _stylePaste.style.GetName(isDefaultStyleName) /*|| (styleDoc.Custom === false && stylePaste.style.Custom === false && styleDoc.Name.toLowerCase() === stylePaste.style.Name.toLowerCase())*/) { isEqualName = j; } @@ -8521,17 +8648,17 @@ function BinaryFileReader(doc, openParams) bInBlock = true; //создаем список используемых шрифтов var AllFonts = {}; - - if(this.Document.Numbering) + + if (this.Document.Numbering) this.Document.Numbering.GetAllFontNames(AllFonts); - if(this.Document.Styles) - this.Document.Styles.Document_Get_AllFontNames(AllFonts); + if (this.Document.Styles) + this.Document.Styles.Document_Get_AllFontNames(AllFonts); + + for (var Index = 0, Count = aContent.length; Index < Count; Index++) + aContent[Index].Document_Get_AllFontNames(AllFonts); - for (var Index = 0, Count = aContent.length; Index < Count; Index++) - aContent[Index].Document_Get_AllFontNames(AllFonts); var aPrepeareFonts = []; - var oDocument = this.Document && this.Document.LogicDocument ? this.Document.LogicDocument : this.Document; var fontScheme; var m_oLogicDocument = editor.WordControl.m_oLogicDocument; @@ -8668,11 +8795,9 @@ function BinaryFileReader(doc, openParams) api.sync_AddComment( oNewComment.Id, oNewComment.Data ); } } - //remove bookmarks without end - this.oReadResult.deleteMarkupStartWithoutEnd(this.oReadResult.bookmarksStarted); - //todo crush - // this.oReadResult.deleteMarkupStartWithoutEnd(this.oReadResult.moveRanges); - + + this.oReadResult.deleteMarkupStartWithoutEnd(); + for (var i = 0, length = this.oReadResult.aTableCorrect.length; i < length; ++i) { var table = this.oReadResult.aTableCorrect[i]; table.ReIndexing(0); @@ -9132,8 +9257,7 @@ function Binary_pPrReader(doc, oReadResult, stream) this.oReadResult.styleLinks.push(new BinaryParagraphStyleUpdater(this.paragraph, ParaStyle, this.isPrChange)); break; case c_oSerProp_pPrType.numPr: - var numPr = new CNumPr(); - numPr.Set(undefined, undefined); + var numPr = new AscWord.NumPr(undefined, undefined); res = this.bcr.Read2(length, function(t, l){ return oThis.ReadNumPr(t, l, numPr); }); @@ -9234,6 +9358,10 @@ function Binary_pPrReader(doc, oReadResult, stream) { Border.Value = this.stream.GetUChar(); } + else if ( c_oSerBorderType.ValueType === type ) + { + Border.setValue(this.stream.GetULongLE()); + } else if( c_oSerBorderType.ColorTheme === type ) { var themeColor = {Auto: null, Color: null, Tint: null, Shade: null}; @@ -11255,8 +11383,13 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot }); } else if (c_oSerParType.JsaProject === type) { this.Document.DrawingDocument.m_oWordControl.m_oApi.macros.SetData(AscCommon.GetStringUtf8(this.stream, length)); - } else - res = c_oSerConstants.ReadUnknown; + } else if (c_oSerParType.PermStart === type) { + res = readPermStart(length, this.bcr, this.oReadResult, null); + } else if (c_oSerParType.PermEnd === type) { + res = readPermEnd(length, this.bcr, this.oReadResult, this.oReadResult.lastPar); + } else { + res = c_oSerConstants.ReadUnknown; + } return res; }; this.ReadDocParts = function (type, length, glossary) { @@ -11588,8 +11721,14 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot res = readMoveRangeStart(length, this.bcr, this.stream, this.oReadResult, paragraphContent, false); } else if ( c_oSerParType.MoveToRangeEnd === type && this.oReadResult.checkReadRevisions()) { res = readMoveRangeEnd(length, this.bcr, this.stream, this.oReadResult, paragraphContent); - } else - res = c_oSerConstants.ReadUnknown; + } else if (c_oSerParType.PermStart === type) { + res = readPermStart(length, this.bcr, this.oReadResult, paragraphContent); + } else if (c_oSerParType.PermEnd === type) { + res = readPermEnd(length, this.bcr, this.oReadResult, paragraphContent); + } else { + res = c_oSerConstants.ReadUnknown; + } + return res; }; this.AppendQuoteToCurrentComments = function(text) { @@ -11600,9 +11739,16 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot this.oCurComments[commentId] += text; }; this.ReadFldChar = function (type, length, paraField) { + let _t = this; var res = c_oSerConstants.ReadOk; if (c_oSer_FldSimpleType.CharType === type) { paraField.Init(this.stream.GetUChar(), paraField.LogicDocument); + } else if (c_oSer_FldSimpleType.FFData === type) { + let ffData = new AscWord.FFData(); + res = this.bcr.Read1(length, function (t, l) { + return _t.ReadFFData(t, l, ffData); + }); + paraField.ffData = ffData; } else if (c_oSer_FldSimpleType.PrivateData === type) { paraField.fldData = this.stream.GetString2LE(length); } else @@ -11648,106 +11794,102 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot res = c_oSerConstants.ReadUnknown; return res; } - this.ReadFFData = function(type, length, oFFData) { + this.ReadFFData = function(type, length, ffData) { var res = c_oSerConstants.ReadOk; var oThis = this; if (c_oSerFFData.CalcOnExit === type) { - oFFData.CalcOnExit = this.stream.GetBool(); + ffData.calcOnExit = this.stream.GetBool(); } else if (c_oSerFFData.CheckBox === type) { - oFFData.CheckBox = {}; + let checkBox = ffData.initCheckBox(); res = this.bcr.Read1(length, function(t, l) { - return oThis.ReadFFCheckBox(t, l, oFFData.CheckBox); + return oThis.ReadFFCheckBox(t, l, checkBox); }); } else if (c_oSerFFData.DDList === type) { - oFFData.DDList = {DLListEntry: []}; + let ddList = ffData.initDDList(); res = this.bcr.Read1(length, function(t, l) { - return oThis.ReadDDList(t, l, oFFData.DDList); + return oThis.ReadDDList(t, l, ddList); }); } else if (c_oSerFFData.Enabled === type) { - oFFData.Enabled = this.stream.GetBool(); + ffData.enabled = this.stream.GetBool(); } else if (c_oSerFFData.EntryMacro === type) { - oFFData.EntryMacro = this.stream.GetString2LE(length); + ffData.entryMacro = this.stream.GetString2LE(length); } else if (c_oSerFFData.ExitMacro === type) { - oFFData.ExitMacro = this.stream.GetString2LE(length); + ffData.exitMacro = this.stream.GetString2LE(length); } else if (c_oSerFFData.HelpText === type) { - oFFData.HelpText = {}; + let helpText = ffData.initHelpText(); res = this.bcr.Read1(length, function(t, l) { - return oThis.ReadFFHelpText(t, l, oFFData.HelpText); + return oThis.ReadFFHelpText(t, l, helpText); }); } else if (c_oSerFFData.Label === type) { - oFFData.Label = this.stream.GetLong(); + ffData.label = this.stream.GetLong(); } else if (c_oSerFFData.Name === type) { - oFFData.Name = this.stream.GetString2LE(length); + ffData.name = this.stream.GetString2LE(length); } else if (c_oSerFFData.StatusText === type) { - oFFData.StatusText = {}; + let statusText = ffData.initStatusText(); res = this.bcr.Read1(length, function(t, l) { - return oThis.ReadFFHelpText(t, l, oFFData.StatusText); + return oThis.ReadFFHelpText(t, l, statusText); }); } else if (c_oSerFFData.TabIndex === type) { - oFFData.TabIndex = this.stream.GetLong(); + ffData.tabIndex = this.stream.GetLong(); } else if (c_oSerFFData.TextInput === type) { - oFFData.TextInput = {}; + let textInput = ffData.initTextInput(); res = this.bcr.Read1(length, function(t, l) { - return oThis.ReadTextInput(t, l, oFFData.TextInput); + return oThis.ReadTextInput(t, l, textInput); }); } else { res = c_oSerConstants.ReadUnknown; } return res; }; - this.ReadFFCheckBox = function(type, length, oFFCheckBox) { + this.ReadFFCheckBox = function(type, length, ffCheckBox) { var res = c_oSerConstants.ReadOk; - var oThis = this; if (c_oSerFFData.CBChecked === type) { - oFFCheckBox.CBChecked = this.stream.GetBool(); + ffCheckBox.checked = this.stream.GetBool(); } else if (c_oSerFFData.CBDefault === type) { - oFFCheckBox.CBDefault = this.stream.GetBool(); + ffCheckBox.default = this.stream.GetBool(); } else if (c_oSerFFData.CBSize === type) { - oFFCheckBox.CBSize = this.stream.GetULongLE(); + ffCheckBox.size = this.stream.GetULongLE(); } else if (c_oSerFFData.CBSizeAuto === type) { - oFFCheckBox.CBSizeAuto = this.stream.GetBool(); + ffCheckBox.sizeAuto = this.stream.GetBool(); } else { res = c_oSerConstants.ReadUnknown; } return res; }; - this.ReadDDList = function(type, length, oDDList) { + this.ReadDDList = function(type, length, ddList) { var res = c_oSerConstants.ReadOk; - var oThis = this; if (c_oSerFFData.DLDefault === type) { - oDDList.DLDefault = this.stream.GetULongLE(); + ddList.default = this.stream.GetULongLE(); } else if (c_oSerFFData.DLResult === type) { - oDDList.DLResult = this.stream.GetULongLE(); + ddList.result = this.stream.GetULongLE(); } else if (c_oSerFFData.DLListEntry === type) { - oDDList.DLListEntry.push(this.stream.GetString2LE(length)); + ddList.list.push(this.stream.GetString2LE(length)); } else { res = c_oSerConstants.ReadUnknown; } return res; }; - this.ReadFFHelpText = function(type, length, oHelpText) { + this.ReadFFHelpText = function(type, length, ffText) { var res = c_oSerConstants.ReadOk; - var oThis = this; if (c_oSerFFData.HTType === type) { - oHelpText.HTType = this.stream.GetUChar(); + ffText.type = this.stream.GetUChar(); } else if (c_oSerFFData.HTVal === type) { - oHelpText.HTVal = this.stream.GetString2LE(length); + ffText.val = this.stream.GetString2LE(length); } else { res = c_oSerConstants.ReadUnknown; } return res; }; - this.ReadTextInput = function(type, length, oTextInput) { + this.ReadTextInput = function(type, length, textInput) { var res = c_oSerConstants.ReadOk; - var oThis = this; if (c_oSerFFData.TIDefault === type) { - oTextInput.TIDefault = this.stream.GetString2LE(length); + textInput.default = this.stream.GetString2LE(length); } else if (c_oSerFFData.TIFormat === type) { - oTextInput.TIFormat = this.stream.GetString2LE(length); + textInput.format = this.stream.GetString2LE(length); } else if (c_oSerFFData.TIMaxLength === type) { - oTextInput.TIMaxLength = this.stream.GetULongLE(); + textInput.maxLength = this.stream.GetULongLE(); } else if (c_oSerFFData.TIType === type) { - oTextInput.TIType = this.stream.GetUChar(); + textInput.type = this.stream.GetUChar(); } else { res = c_oSerConstants.ReadUnknown; } @@ -12113,6 +12255,17 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot GraphicObj.setXfrmByParent(); } } + if(GraphicObj && !GraphicObj.isSupported()) + { + let nPos = this.stream.cur; + var type = this.bcr.stream.GetUChar(); + this.stream.Seek2(nPos); + if(type === c_oSerRunType.pptxDrawingAlternative) + { + oParaDrawing.GraphicObj = null; + GraphicObj = null; + } + } oDrawing.content = oParaDrawing; } this.ReadObject = function (type, length, paragraph, oDrawing) @@ -12209,12 +12362,19 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot else res = c_oSerConstants.ReadUnknown; } - else if( c_oSerImageType2.Chart2 === type ) + else if( c_oSerImageType2.Chart2 === type || c_oSerImageType2.ChartEx === type) { res = c_oSerConstants.ReadUnknown; - var oNewChartSpace = new AscFormat.CChartSpace(); - var oBinaryChartReader = new AscCommon.BinaryChartReader(this.stream); - res = oBinaryChartReader.ExternalReadCT_ChartSpace(length, oNewChartSpace, this.Document); + let oNewChartSpace = new AscFormat.CChartSpace(); + let oBinaryChartReader = new AscCommon.BinaryChartReader(this.stream); + if(c_oSerImageType2.ChartEx === type) + { + res = oBinaryChartReader.ExternalReadCT_ChartExSpace(length, oNewChartSpace, this.Document); + } + else + { + res = oBinaryChartReader.ExternalReadCT_ChartSpace(length, oNewChartSpace, this.Document); + } if(oNewChartSpace.hasCharts()) { oNewChartSpace.setBDeleted(false); @@ -12763,8 +12923,13 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot res = readMoveRangeStart(length, this.bcr, this.stream, this.oReadResult, null, false); } else if (c_oSerDocTableType.MoveToRangeEnd === type && this.oReadResult.checkReadRevisions()) { res = readMoveRangeEnd(length, this.bcr, this.stream, this.oReadResult, this.oReadResult.lastPar, true); - } else - res = c_oSerConstants.ReadUnknown; + } else if (c_oSerDocTableType.PermStart === type) { + res = readPermStart(length, this.bcr, this.oReadResult, null); + } else if (c_oSerDocTableType.PermEnd === type) { + res = readPermEnd(length, this.bcr, this.oReadResult, this.oReadResult.lastPar); + } else { + res = c_oSerConstants.ReadUnknown; + } return res; }; this.Read_Row = function(type, length, Row) @@ -12816,8 +12981,13 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot res = readMoveRangeStart(length, this.bcr, this.stream, this.oReadResult, null, false); } else if (c_oSerDocTableType.MoveToRangeEnd === type && this.oReadResult.checkReadRevisions()) { res = readMoveRangeEnd(length, this.bcr, this.stream, this.oReadResult, this.oReadResult.lastPar, true); - } else - res = c_oSerConstants.ReadUnknown; + } else if (c_oSerDocTableType.PermStart === type) { + res = readPermStart(length, this.bcr, this.oReadResult, null); + } else if (c_oSerDocTableType.PermEnd === type) { + res = readPermEnd(length, this.bcr, this.oReadResult, this.oReadResult.lastPar); + } else { + res = c_oSerConstants.ReadUnknown; + } return res; }; this.ReadCell = function(type, length, cell) @@ -13224,6 +13394,8 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curNot val.ShiftX = this.stream.GetDoubleLE(); } else if (c_oSerSdt.PictureFormPrShiftY === type) { val.ShiftY = this.stream.GetDoubleLE(); + } else if (c_oSerSdt.PictureFormPrSignature === type) { + val.Signature = this.stream.GetBool(); } else { res = c_oSerConstants.ReadUnknown; } @@ -13748,8 +13920,13 @@ function Binary_oMathReader(stream, oReadResult, curNote, openParams) res = readMoveRangeStart(length, this.bcr, this.stream, this.oReadResult, paragraphContent, false); } else if (c_oSer_OMathContentType.MoveToRangeEnd === type && this.oReadResult.checkReadRevisions()) { res = readMoveRangeEnd(length, this.bcr, this.stream, this.oReadResult, paragraphContent); - } else - res = c_oSerConstants.ReadUnknown; + } else if (c_oSer_OMathContentType.PermStart === type) { + res = readPermStart(length, this.bcr, this.oReadResult, paragraphContent); + } else if (c_oSer_OMathContentType.PermEnd === type) { + res = readPermEnd(length, this.bcr, this.oReadResult, paragraphContent); + } else { + res = c_oSerConstants.ReadUnknown; + } if (oElem && bLast) oElem.Correct_Content(false); @@ -17233,6 +17410,7 @@ function DocReadResult(doc) { this.endnotes = {}; this.endnoteRefs = []; this.bookmarksStarted = {}; + this.permRangesStarted = {}; this.moveRanges = {}; this.Application; this.AppVersion; @@ -17252,7 +17430,7 @@ DocReadResult.prototype = { isDocumentPasting: function(){ var api = window["Asc"]["editor"] || editor; if(api) { - return this.bCopyPaste && AscCommon.c_oEditorId.Word === api.getEditorId(); + return !Asc.editor.isPdfEditor() && this.bCopyPaste && AscCommon.c_oEditorId.Word === api.getEditorId(); } return false; }, @@ -17312,6 +17490,39 @@ DocReadResult.prototype = { this.toNextPar.push({type: para_RevisionMove, elem: elem, id: id}); } }, + addPermStart: function(paragraphContent, elem, canAddToNext) { + let rangeId = elem.getRangeId(); + if (undefined === rangeId || null === rangeId) + return; + + if (this.bCopyPaste) + return; + + if (paragraphContent) + { + this.permRangesStarted[rangeId] = {parent : paragraphContent, elem : elem}; + paragraphContent.AddToContentToEnd(elem); + } + else if (canAddToNext) + { + this.toNextPar.push(elem); + } + }, + addPermEnd: function(paragraphContent, elem, canAddToNext) { + let rangeId = elem.getRangeId(); + if (!this.permRangesStarted[rangeId]) + return; + + if (paragraphContent) + { + delete this.permRangesStarted[rangeId]; + paragraphContent.AddToContentToEnd(elem); + } + else if (canAddToNext) + { + this.toNextPar.push(elem); + } + }, addToNextPar: function(par) { if (this.toNextPar.length > 0) { for (var i = 0; i < this.toNextPar.length; i++) { @@ -17331,13 +17542,26 @@ DocReadResult.prototype = { this.addMoveRangeEnd(par, elem.elem, elem.id, false); } break; + case para_PermStart: + this.addPermStart(par, elem.elem, false); + break; + case para_PermEnd: + this.addPermEnd(par, elem.elem, false); + break; } } this.toNextPar = []; } this.lastPar = par; }, - deleteMarkupStartWithoutEnd: function(elems) { + deleteMarkupStartWithoutEnd: function() { + this._deleteMarkupStartWithoutEnd(this.bookmarksStarted); + this._deleteMarkupStartWithoutEnd(this.permRangesStarted); + //todo crush + // this._deleteMarkupStartWithoutEnd(this.moveRanges); + }, + + _deleteMarkupStartWithoutEnd: function(elems) { for (var id in elems) { if (elems.hasOwnProperty(id)) { let elem = elems[id]; diff --git a/word/Editor/SpellChecker/DocumentSpellChecker.js b/word/Editor/SpellChecker/DocumentSpellChecker.js index 8a395b381e..ba933356c4 100644 --- a/word/Editor/SpellChecker/DocumentSpellChecker.js +++ b/word/Editor/SpellChecker/DocumentSpellChecker.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -271,8 +271,7 @@ }; //--------------------------------------------------------export---------------------------------------------------- - window['AscCommonWord'] = window['AscCommonWord'] || {}; - window['AscCommonWord'].CDocumentSpellChecker = CDocumentSpellChecker; + AscWord.CDocumentSpellChecker = CDocumentSpellChecker; })(window); diff --git a/word/Editor/SpellChecker/ParagraphCollector.js b/word/Editor/SpellChecker/ParagraphCollector.js index 5a09045988..684856adfa 100644 --- a/word/Editor/SpellChecker/ParagraphCollector.js +++ b/word/Editor/SpellChecker/ParagraphCollector.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -40,6 +40,20 @@ const CHECKED_LIMIT = 2000; + // Если значения совпадают - значит апостроф развернут в правильную сторону, если нет, то в значении лежит апостроф в нужном направлении + const APOSTROPHES = { + 0x0027 : 0x0027, + 0x02BC : 0x02BC, + 0x02BD : 0x02BC, + 0x2018 : 0x2019, + 0x2019 : 0x2019 + }; + + function isCorrectApostrophe(codePoint) + { + return APOSTROPHES[codePoint] === codePoint; + } + /** * Класс для проверки орфографии внутри параграфа @@ -62,6 +76,9 @@ this.endInRunPos = 0; this.Prefix = null; + + this.apostrophe = null; + this.lastApostrophe = null; // Защита от проверки орфографии в большом параграфе // TODO: Возможно стоить заменить проверку с количества пройденных элементов на время выполнения @@ -148,10 +165,13 @@ { if (this.bWord) { - this.SpellChecker.Add(this.startRun, this.startInRunPos, this.endRun, this.endInRunPos, this.sWord, this.CurLcid, this.GetPrefix(), 0); + this.SpellChecker.Add(this.startRun, this.startInRunPos, this.endRun, this.endInRunPos, this.sWord, this.CurLcid, this.GetPrefix(), 0, this.apostrophe); this.bWord = false; this.sWord = ""; + + this.apostrophe = null; + this.lastApostrophe = null; } }; /** @@ -176,18 +196,35 @@ } else { + if (this.lastApostrophe) + { + this.sWord += isCorrectApostrophe(this.lastApostrophe) ? String.fromCharCode(0x0027) : String.fromCharCode(0x0020); + this.apostrophe = APOSTROPHES[this.lastApostrophe]; + this.lastApostrophe = null; + } + this.sWord += oElement.GetCharForSpellCheck(oTextPr.Caps); this.endRun = run; this.endInRunPos = inRunPos + 1; } } + else if (this.bWord && this.IsApostrophe(oElement)) + { + if (this.lastApostrophe) + this.FlushWord(); + else + this.lastApostrophe = oElement.GetCodePoint(); + } else { if (this.bWord) { + this.SpellChecker.Add(this.startRun, this.startInRunPos, this.endRun, this.endInRunPos, this.sWord, this.CurLcid, this.GetPrefix(), oElement.IsDot() ? oElement.GetCharCode() : 0, this.apostrophe); this.bWord = false; - this.SpellChecker.Add(this.startRun, this.startInRunPos, this.endRun, this.endInRunPos, this.sWord, this.CurLcid, this.GetPrefix(), oElement.IsDot() ? oElement.GetCharCode() : 0); + this.sWord = ""; + this.apostrophe = null; + this.lastApostrophe = null; this.CheckPrefix(null); } else @@ -221,6 +258,13 @@ { return (oElement.IsText() && !this.IsPunctuation(oElement) && !NON_LETTER_SYMBOLS[oElement.GetCodePoint()]); }; + CParagraphSpellCheckerCollector.prototype.IsApostrophe = function(oElement) + { + if (!oElement.IsText()) + return false; + + return !!(APOSTROPHES[oElement.GetCodePoint()]); + }; /** * Метка начала элемента для проверки @@ -304,8 +348,7 @@ }; //--------------------------------------------------------export---------------------------------------------------- - window['AscCommonWord'] = window['AscCommonWord'] || {}; - window['AscCommonWord'].CParagraphSpellCheckerCollector = CParagraphSpellCheckerCollector; + AscWord.CParagraphSpellCheckerCollector = CParagraphSpellCheckerCollector; window['AscWord'] = window['AscWord'] || {}; window['AscWord'].SpellMarkStart = SpellMarkStart; diff --git a/word/Editor/SpellChecker/ParagraphSpellChecker.js b/word/Editor/SpellChecker/ParagraphSpellChecker.js index 110c9d6391..1ca141d51f 100644 --- a/word/Editor/SpellChecker/ParagraphSpellChecker.js +++ b/word/Editor/SpellChecker/ParagraphSpellChecker.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -157,7 +157,7 @@ } } }; - CParagraphSpellChecker.prototype.Add = function(startRun, startInRunPos, endRun, endInRunPos, Word, Lang, Prefix, Ending) + CParagraphSpellChecker.prototype.Add = function(startRun, startInRunPos, endRun, endInRunPos, Word, Lang, Prefix, Ending, apostrophe) { if (Word.length > 0) { @@ -170,7 +170,7 @@ if (!this.HaveDictionary(Lang) || !this.IsNeedCheckWord(Word)) return; - let oElement = new AscCommonWord.CParagraphSpellCheckerElement(startRun, startInRunPos, endRun, endInRunPos, Word, Lang, Prefix, Ending); + let oElement = new AscWord.CParagraphSpellCheckerElement(startRun, startInRunPos, endRun, endInRunPos, Word, Lang, Prefix, Ending, apostrophe); startRun.AddSpellCheckerElement(new AscWord.SpellMarkStart(oElement)); endRun.AddSpellCheckerElement(new AscWord.SpellMarkEnd(oElement)); this.Elements.push(oElement); @@ -339,7 +339,7 @@ /** * Получаем элемент проверки орфографии по номеру * @param nIndex - * @returns {AscCommonWord.CParagraphSpellCheckerElement} + * @returns {AscWord.CParagraphSpellCheckerElement} */ CParagraphSpellChecker.prototype.GetElement = function(nIndex) { @@ -347,7 +347,7 @@ }; /** * Приостанавливаем проверку орфографии, если параграф слишком большой - * @param {CParagraphSpellCheckerCollector} oCollector + * @param {AscWord.CParagraphSpellCheckerCollector} oCollector */ CParagraphSpellChecker.prototype.Pause = function(oCollector) { @@ -432,7 +432,7 @@ } else { - oCollector = new AscCommonWord.CParagraphSpellCheckerCollector(this, isForceFullCheck); + oCollector = new AscWord.CParagraphSpellCheckerCollector(this, isForceFullCheck); this.Elements = []; } @@ -548,7 +548,6 @@ //--------------------------------------------------------export---------------------------------------------------- - window['AscCommonWord'] = window['AscCommonWord'] || {}; - window['AscCommonWord'].CParagraphSpellChecker= CParagraphSpellChecker; + AscWord.CParagraphSpellChecker = CParagraphSpellChecker; })(window); diff --git a/word/Editor/SpellChecker/ParagraphSpellCheckerElement.js b/word/Editor/SpellChecker/ParagraphSpellCheckerElement.js index b49e1742e5..6598b50a8d 100644 --- a/word/Editor/SpellChecker/ParagraphSpellCheckerElement.js +++ b/word/Editor/SpellChecker/ParagraphSpellCheckerElement.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -38,18 +38,19 @@ * Отдельный элемент проверки орфографии внутри параграфа * @constructor */ - function CParagraphSpellCheckerElement(startRun, startInRunPos, endRun, endInRunPos, Word, Lang, Prefix, Ending) + function CParagraphSpellCheckerElement(startRun, startInRunPos, endRun, endInRunPos, Word, Lang, Prefix, Ending, apostrophe) { this.startRun = startRun; this.startInRunPos = startInRunPos; this.endRun = endRun; this.endInRunPos = endInRunPos; - this.Word = Word; - this.Lang = Lang; - this.Checked = null; // null - неизвестно, true - правильное слово, false - неправильное слово - this.CurPos = false; - this.Variants = null; + this.Word = Word; + this.Lang = Lang; + this.Checked = null; // null - неизвестно, true - правильное слово, false - неправильное слово + this.CurPos = false; + this.Variants = null; + this.apostrophe = apostrophe; // апостроф, который реально шел в слове (в this.Word мы все апострофы заменили на 0x0027) // В некоторых языках слова идут вместе со знаками пунктуации до или после, например, // -abwicklung и bwz. (в немецком языке) @@ -116,9 +117,26 @@ { return this.Variants; }; - CParagraphSpellCheckerElement.prototype.SetVariants = function(arrVariants) + CParagraphSpellCheckerElement.prototype.SetVariants = function(variants) { - this.Variants = arrVariants ? arrVariants : null; + if (!variants) + { + this.Variants = null; + return; + } + + if (!this.apostrophe) + { + this.Variants = variants; + return; + } + + let apostrophe = String.fromCodePoint(this.apostrophe); + this.Variants = []; + for (let i = 0; i < variants.length; ++i) + { + this.Variants.push(variants[i].replaceAll('\u0027', apostrophe)); + } }; CParagraphSpellCheckerElement.prototype.SetCorrect = function() { @@ -208,7 +226,6 @@ }; //--------------------------------------------------------export---------------------------------------------------- - window['AscCommonWord'] = window['AscCommonWord'] || {}; - window['AscCommonWord'].CParagraphSpellCheckerElement = CParagraphSpellCheckerElement; + AscWord.CParagraphSpellCheckerElement = CParagraphSpellCheckerElement; })(window); diff --git a/word/Editor/StructuredDocumentTags/BlockLevel.js b/word/Editor/StructuredDocumentTags/BlockLevel.js index dae4054ce9..63a0059de2 100644 --- a/word/Editor/StructuredDocumentTags/BlockLevel.js +++ b/word/Editor/StructuredDocumentTags/BlockLevel.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -333,9 +333,9 @@ CBlockLevelSdt.prototype.GetDirectTextPr = function() { return this.Content.GetDirectTextPr(); }; -CBlockLevelSdt.prototype.DrawSelectionOnPage = function(CurPage) +CBlockLevelSdt.prototype.DrawSelectionOnPage = function(CurPage, clipInfo) { - this.Content.DrawSelectionOnPage(CurPage); + this.Content.DrawSelectionOnPage(CurPage, clipInfo); }; CBlockLevelSdt.prototype.GetSelectionBounds = function() { @@ -536,14 +536,18 @@ CBlockLevelSdt.prototype.Remove = function(nCount, isRemoveWholeElement, bRemove { if (this.IsPlaceHolder()) { - let logicDocument = this.GetLogicDocument(); + let logicDocument = this.GetLogicDocument(); + let isRemoveOnDrag = logicDocument ? logicDocument.DragAndDropAction : false; - if (!this.CanBeDeleted() && !bOnAddText) + if (!this.CanBeDeleted() && (!bOnAddText || isRemoveOnDrag)) return true; if (bOnAddText || !(logicDocument && logicDocument.IsDocumentEditor() && logicDocument.IsFillingFormMode())) this.private_ReplacePlaceHolderWithContent(); + if (isRemoveOnDrag) + return false; + return !!bOnAddText; } @@ -2429,8 +2433,9 @@ CBlockLevelSdt.prototype.Document_Is_SelectionLocked = function(CheckType, bChec { return AscCommon.CollaborativeEditing.Add_CheckLock(false); } - - var isCheckContentControlLock = this.LogicDocument ? this.LogicDocument.IsCheckContentControlsLock() : true; + + let logicDocument = this.GetLogicDocument(); + var isCheckContentControlLock = logicDocument ? logicDocument.IsCheckContentControlsLock() : true; if (AscCommon.changestype_Paragraph_TextProperties === CheckType || ((AscCommon.changestype_Drawing_Props === CheckType || AscCommon.changestype_Image_Properties === CheckType) @@ -2471,9 +2476,9 @@ CBlockLevelSdt.prototype.Document_Is_SelectionLocked = function(CheckType, bChec var bSelectedOnlyThis = false; // Если это происходит на добавлении текста, тогда проверяем, что выделен только данный элемент - if (AscCommon.changestype_Remove !== CheckType && AscCommon.changestype_Delete !== CheckType) + if (logicDocument && AscCommon.changestype_Remove !== CheckType && AscCommon.changestype_Delete !== CheckType) { - var oInfo = this.LogicDocument.GetSelectedElementsInfo(); + var oInfo = logicDocument.GetSelectedElementsInfo(); bSelectedOnlyThis = oInfo.GetBlockLevelSdt() === this ? true : false; } @@ -2684,8 +2689,40 @@ CBlockLevelSdt.prototype.OnContentChange = function() if (this.Parent && this.Parent.OnContentChange) this.Parent.OnContentChange(); }; +CBlockLevelSdt.prototype.RemoveThisFromParent = function(updatePosition) +{ + let docContent = this.Parent; + if (!docContent) + return; + + let posInParent = this.GetIndex(); + + let curPos = docContent.CurPos.ContentPos; + docContent.RemoveFromContent(posInParent, 1); + + if (updatePosition) + { + if (posInParent === curPos) + { + if (posInParent >= docContent.GetElementsCount()) + { + docContent.MoveCursorToEndPos(); + } + else + { + docContent.CurPos.ContentPos = Math.max(0, Math.min(docContent.GetElementsCount() - 1, posInParent)); + docContent.Content[docContent.CurPos.ContentPos].MoveCursorToStartPos(); + } + } + else if (posInParent < curPos) + { + docContent.CurPos.ContentPos = Math.max(0, Math.min(docContent.GetElementsCount() - 1, curPos - 1)); + } + } +}; //--------------------------------------------------------export-------------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CBlockLevelSdt = CBlockLevelSdt; window['AscCommonWord'].type_BlockLevelSdt = type_BlockLevelSdt; window["AscWord"].CBlockLevelSdt = CBlockLevelSdt; +window["AscWord"].BlockLevelSdt = CBlockLevelSdt; diff --git a/word/Editor/StructuredDocumentTags/Custom/CheckBox.js b/word/Editor/StructuredDocumentTags/Custom/CheckBox.js index e38ca20c68..085649310c 100644 --- a/word/Editor/StructuredDocumentTags/Custom/CheckBox.js +++ b/word/Editor/StructuredDocumentTags/Custom/CheckBox.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/Custom/ComboBox.js b/word/Editor/StructuredDocumentTags/Custom/ComboBox.js index ff393aa197..74fd8f012b 100644 --- a/word/Editor/StructuredDocumentTags/Custom/ComboBox.js +++ b/word/Editor/StructuredDocumentTags/Custom/ComboBox.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/Custom/ComplexForm.js b/word/Editor/StructuredDocumentTags/Custom/ComplexForm.js index 727cc49333..b362d13db9 100644 --- a/word/Editor/StructuredDocumentTags/Custom/ComplexForm.js +++ b/word/Editor/StructuredDocumentTags/Custom/ComplexForm.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/Custom/DatePicker.js b/word/Editor/StructuredDocumentTags/Custom/DatePicker.js index 33585bdbce..897069862b 100644 --- a/word/Editor/StructuredDocumentTags/Custom/DatePicker.js +++ b/word/Editor/StructuredDocumentTags/Custom/DatePicker.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/Custom/Form.js b/word/Editor/StructuredDocumentTags/Custom/Form.js index c89b531966..a3fb7e5c51 100644 --- a/word/Editor/StructuredDocumentTags/Custom/Form.js +++ b/word/Editor/StructuredDocumentTags/Custom/Form.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/Custom/PictureForm.js b/word/Editor/StructuredDocumentTags/Custom/PictureForm.js index dfd6220ebd..522c85d312 100644 --- a/word/Editor/StructuredDocumentTags/Custom/PictureForm.js +++ b/word/Editor/StructuredDocumentTags/Custom/PictureForm.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -45,6 +45,7 @@ this.Borders = false; this.ShiftX = 0.5; // 0..1 this.ShiftY = 0.5; // 0..1 + this.Signature = false; } CSdtPictureFormPr.prototype.Copy = function() { @@ -55,6 +56,7 @@ oFormPr.Borders = this.Borders; oFormPr.ShiftX = this.ShiftX; oFormPr.ShiftY = this.ShiftY; + oFormPr.Signature = this.Signature; return oFormPr; }; @@ -65,7 +67,8 @@ && this.Proportions === oOther.Proportions && this.Borders === oOther.Borders && Math.abs(this.ShiftX - oOther.ShiftX) < 0.001 - && Math.abs(this.ShiftY - oOther.ShiftY) < 0.001); + && Math.abs(this.ShiftY - oOther.ShiftY) < 0.001 + && this.Signature === oOther.Signature); }; CSdtPictureFormPr.prototype.WriteToBinary = function(oWriter) { @@ -74,6 +77,7 @@ oWriter.WriteBool(this.Borders); oWriter.WriteDouble(this.ShiftX); oWriter.WriteDouble(this.ShiftY); + oWriter.WriteBool(this.Signature); }; CSdtPictureFormPr.prototype.ReadFromBinary = function(oReader) { @@ -82,6 +86,7 @@ this.Borders = oReader.GetBool(); this.ShiftX = oReader.GetDouble(); this.ShiftY = oReader.GetDouble(); + this.Signature = oReader.GetBool(); }; CSdtPictureFormPr.prototype.Write_ToBinary = function(oWriter) { @@ -131,6 +136,14 @@ { return this.ShiftY; }; + CSdtPictureFormPr.prototype.IsSignature = function() + { + return this.Signature; + }; + CSdtPictureFormPr.prototype.SetSignature = function(isSignature) + { + this.Signature = isSignature; + }; //--------------------------------------------------------export---------------------------------------------------- window['AscWord'] = window['AscWord'] || {}; window['AscWord'].CSdtPictureFormPr = CSdtPictureFormPr; diff --git a/word/Editor/StructuredDocumentTags/Custom/TextForm.js b/word/Editor/StructuredDocumentTags/Custom/TextForm.js index 3956ac522f..c9d81dbe5c 100644 --- a/word/Editor/StructuredDocumentTags/Custom/TextForm.js +++ b/word/Editor/StructuredDocumentTags/Custom/TextForm.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/Custom/TextFormFormat.js b/word/Editor/StructuredDocumentTags/Custom/TextFormFormat.js index 9a1136cfa7..f0515515b6 100644 --- a/word/Editor/StructuredDocumentTags/Custom/TextFormFormat.js +++ b/word/Editor/StructuredDocumentTags/Custom/TextFormFormat.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/Custom/TextFormMask.js b/word/Editor/StructuredDocumentTags/Custom/TextFormMask.js index 27bae0c973..1f14bc7daf 100644 --- a/word/Editor/StructuredDocumentTags/Custom/TextFormMask.js +++ b/word/Editor/StructuredDocumentTags/Custom/TextFormMask.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/FormKeyGenerator.js b/word/Editor/StructuredDocumentTags/FormKeyGenerator.js index 163d777557..4c6b8436d0 100644 --- a/word/Editor/StructuredDocumentTags/FormKeyGenerator.js +++ b/word/Editor/StructuredDocumentTags/FormKeyGenerator.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -47,20 +47,49 @@ CFormKeyGenerator.prototype.GetNewKey = function(form) { + let key = this.GenerateKey(form); if (form && form.IsRadioButton()) { - return this.GenerateRadioButtonKey(form); + while (!this.CheckRadioButtonGroup(key)) + { + key = this.GenerateKey(form); + } } else { - let key = this.GenerateKey(form); while (!this.CheckKey(key)) { key = this.GenerateKey(form); } - - return key; } + return key; + }; + CFormKeyGenerator.prototype.GetNewChoice = function(form) + { + if (!form || !form.IsRadioButton()) + return this.GetNewKey(form); + + let checkBoxPr = form.GetCheckBoxPr(); + return this.GetNewChoiceByGroupKey(checkBoxPr.GetGroupKey()); + }; + CFormKeyGenerator.prototype.GetNewChoiceByGroupKey = function(groupKey) + { + let buttons = this.FormManager.GetRadioButtons(groupKey); + let choiceKeys = {}; + for (let index = 0, count = buttons.length; index < count; ++index) + { + choiceKeys[buttons[index].GetFormKey()] = buttons; + } + + let choiceNum = buttons.length; + let newKey = "Choice" + choiceNum; + while (choiceKeys[newKey]) + { + choiceNum++; + newKey = "Choice" + choiceNum; + } + + return newKey; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Private area @@ -73,12 +102,24 @@ let forms = this.FormManager.GetAllFormsByKey(key); return (!forms.length); }; + CFormKeyGenerator.prototype.CheckRadioButtonGroup = function(groupKey) + { + if (!groupKey || "" === groupKey) + return true; + + let forms = this.FormManager.GetRadioButtons(groupKey); + return (!forms.length); + }; CFormKeyGenerator.prototype.GenerateKey = function(form) { let counter = this.GlobalCounter++; if (!form) return "Form" + counter; + else if (form.IsSignatureForm()) + return "Signature" + counter; + else if (form.IsRadioButton()) + return "Group " + counter; // Добавил пробел, потому что в UI с пробелом генерится, чтобы не было разницы else if (form.IsComplexForm()) return "Complex" + counter; else if (form.IsTextForm()) @@ -92,28 +133,6 @@ return "Form" + counter; }; - CFormKeyGenerator.prototype.GenerateRadioButtonKey = function(form) - { - let checkBoxPr = form.GetCheckBoxPr(); - - let groupKey = checkBoxPr.GetGroupKey(); - let buttons = this.FormManager.GetRadioButtons(groupKey); - let choiceKeys = {}; - for (let index = 0, count = buttons.length; index < count; ++index) - { - choiceKeys[buttons[index].GetFormKey()] = buttons; - } - - let choiceNum = buttons.length; - let newKey = "Choice" + choiceNum; - while (choiceKeys[newKey]) - { - choiceNum++; - newKey = "Choice" + choiceNum; - } - - return newKey; - }; //--------------------------------------------------------export---------------------------------------------------- window['AscWord'] = window['AscWord'] || {}; window['AscWord'].CFormKeyGenerator = CFormKeyGenerator; diff --git a/word/Editor/StructuredDocumentTags/FormToJson.js b/word/Editor/StructuredDocumentTags/FormToJson.js index 358cd76a16..0527f1ccbe 100644 --- a/word/Editor/StructuredDocumentTags/FormToJson.js +++ b/word/Editor/StructuredDocumentTags/FormToJson.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/FormsManager.js b/word/Editor/StructuredDocumentTags/FormsManager.js index d3672bf76a..b93f35e9c3 100644 --- a/word/Editor/StructuredDocumentTags/FormsManager.js +++ b/word/Editor/StructuredDocumentTags/FormsManager.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -396,12 +396,19 @@ if (form.IsRadioButton()) { - let key = form.GetRadioButtonGroupKey(); - if (key && "" !== key) - continue; + let groupKey = form.GetRadioButtonGroupKey(); + if (!groupKey || "" === groupKey) + { + groupKey = keyGenerator.GetNewKey(form); + form.SetRadioButtonGroupKey(groupKey); + } - key = keyGenerator.GetNewKey(form); - form.SetRadioButtonGroupKey(key); + let choice = form.GetFormKey(); + if (!choice || "" === choice) + { + choice = keyGenerator.GetNewChoice(form); + form.SetFormKey(choice); + } } else { @@ -663,5 +670,7 @@ window['AscWord'].CFormsManager = CFormsManager; window['AscWord'].registerForm = registerForm; window['AscWord'].unregisterForm = unregisterForm; + + })(window); diff --git a/word/Editor/StructuredDocumentTags/InlineLevel.js b/word/Editor/StructuredDocumentTags/InlineLevel.js index 50df572fd8..fcfa90226a 100644 --- a/word/Editor/StructuredDocumentTags/InlineLevel.js +++ b/word/Editor/StructuredDocumentTags/InlineLevel.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -175,7 +175,8 @@ CInlineLevelSdt.prototype.Copy = function(isUseSelection, oPr) if (nStartPos <= nEndPos) oContentControl.ClearContent(); - + + AscCommon.History.skipFormFillingLockCheck(true); for (var nCurPos = nStartPos; nCurPos <= nEndPos; ++nCurPos) { var oItem = this.Content[nCurPos]; @@ -185,6 +186,7 @@ CInlineLevelSdt.prototype.Copy = function(isUseSelection, oPr) else oContentControl.AddToContent(nCurPos - nStartPos, oItem.Copy(false, oPr)); } + AscCommon.History.skipFormFillingLockCheck(false); // ВАЖНО: настройки копируем после копирования содержимого, потому что есть специальные случаи, когда // содержимое дальше меняется в зависимости от настроек (например, для радио кнопок) @@ -846,12 +848,20 @@ CInlineLevelSdt.prototype.Get_RightPos = function(SearchPos, ContentPos, Depth, }; CInlineLevelSdt.prototype.Remove = function(nDirection, bOnAddText) { + let logicDocument = this.GetLogicDocument(); + let isRemoveOnDrag = logicDocument ? logicDocument.DragAndDropAction : false; + if (this.IsPlaceHolder()) { + if (isRemoveOnDrag && this.CanBeDeleted()) + { + this.RemoveThisFromParent(true); + return true; + } + if (!this.CanBeDeleted() && !bOnAddText) return true; - let logicDocument = this.GetLogicDocument(); if (!bOnAddText && !this.IsSelectionUse()) { this.SelectAll(1); @@ -876,8 +886,14 @@ CInlineLevelSdt.prototype.Remove = function(nDirection, bOnAddText) let result = CParagraphContentWithParagraphLikeContent.prototype.Remove.call(this, nDirection, bOnAddText); - let logicDocument = this.GetLogicDocument(); - if (!result + if (isRemoveOnDrag + && this.IsEmpty() + && this.CanBeDeleted()) + { + this.RemoveThisFromParent(true); + result = true; + } + else if (!result && this.IsEmpty() && !this.IsPlaceHolder() && logicDocument @@ -1202,7 +1218,21 @@ CInlineLevelSdt.prototype.SelectContentControl = function() && arrDrawings.length > 0 && (oLogicDocument = this.GetLogicDocument())) { - oLogicDocument.Select_DrawingObject(arrDrawings[0].GetId()); + let drawing = null; + if (this.IsFixedForm()) + { + let parentShape = this.GetParagraph().GetParentShape(); + if (parentShape) + drawing = parentShape.GetParaDrawing(); + } + else + { + drawing = arrDrawings[0]; + } + + if (drawing) + oLogicDocument.Select_DrawingObject(drawing.GetId()); + return; } @@ -1371,14 +1401,14 @@ CInlineLevelSdt.prototype.Apply_TextPr = function(TextPr, IncFontSize, ApplyToAl oNewTextPr.FontSizeCS = oCompiledTextPr.GetIncDecFontSizeCS(IncFontSize); var oTempTextPr = this.Pr.TextPr.Copy(); - oTempTextPr.Merge(oNewTextPr); + oTempTextPr.Apply(oNewTextPr); this.SetDefaultTextPr(oTempTextPr); } } else { var oTempTextPr = this.Pr.TextPr.Copy(); - oTempTextPr.Merge(TextPr); + oTempTextPr.Apply(TextPr); this.SetDefaultTextPr(oTempTextPr); } } @@ -2210,6 +2240,10 @@ CInlineLevelSdt.prototype.GetPictureFormPr = function() { return this.Pr.PictureFormPr; }; +CInlineLevelSdt.prototype.IsSignatureForm = function() +{ + return (this.IsForm() && this.IsPicture() && undefined !== this.Pr.PictureFormPr && this.Pr.PictureFormPr.IsSignature()); +}; /** * Проверяем является ли данный контейнер специальным для поля со списком * @returns {boolean} @@ -2321,7 +2355,7 @@ CInlineLevelSdt.prototype.SelectListItem = function(sValue) if (!this.IsPlaceHolder()) { this.SelectAll(); - this.Remove(); + this.Remove(1, true); this.RemoveSelection(); } else @@ -2425,6 +2459,10 @@ CInlineLevelSdt.prototype.private_UpdateDatePickerContent = function() { if (!this.Pr.Date) return; + + let isTemporary = this.Pr.Temporary; + if (isTemporary) + this.Pr.Temporary = false; if (this.IsPlaceHolder()) this.ReplacePlaceHolderWithContent(); @@ -2482,6 +2520,12 @@ CInlineLevelSdt.prototype.private_UpdateDatePickerContent = function() if (oRun) oRun.AddText(sText); + + if (isTemporary) + { + this.Pr.Temporary = true; + this.RemoveContentControlWrapper(); + } }; /** * Является ли данный контейнер специальной текстовой формой @@ -2977,7 +3021,7 @@ CInlineLevelSdt.prototype.IsFormFilled = function() return (sText !== ""); } } - else if (this.IsComboBox()) + else if (this.IsComboBox() || this.IsDatePicker()) { var sText = this.GetSelectedText(true); return (sText !== ""); @@ -3068,14 +3112,30 @@ CInlineLevelSdt.prototype.ConvertFormToFixed = function(nW, nH) || -1 === nPosInParent || oParagraph.IsInFixedForm()) return null; + + // TODO: Разобраться, почему мы посылаем useWrap=true, хотя по факту не true + let layout = oParagraph.GetLayout(this.GetStartPosInParagraph(), true); + if (!layout) + return null; + + let anchorPosition = new CAnchorPosition(); + layout.ParagraphLayout.X = X; + layout.ParagraphLayout.Y = Y + nH; + anchorPosition.Set(nW, nH, 0, {L :0, T : 0, R : 0, B : 0}, 0, layout.ParagraphLayout, layout.PageLimits); + anchorPosition.Calculate_X(true); + anchorPosition.Calculate_Y(true); + + let x = anchorPosition.Calculate_X_Value(Asc.c_oAscRelativeFromH.Page); + let y = anchorPosition.Calculate_Y_Value(Asc.c_oAscRelativeFromV.Page); let drawing = this.private_ConvertFormToFixed(nW, nH); - drawing.Set_PositionH(Asc.c_oAscRelativeFromH.Page, false, X, false); - drawing.Set_PositionV(Asc.c_oAscRelativeFromV.Page, false, Y, false); + drawing.Set_PositionH(Asc.c_oAscRelativeFromH.Page, false, x, false); + drawing.Set_PositionV(Asc.c_oAscRelativeFromV.Page, false, y, false); drawing.Set_Distance(0, 0, 0, 0); drawing.Set_DrawingType(drawing_Anchor); drawing.Set_WrappingType(WRAPPING_TYPE_NONE); drawing.Set_BehindDoc(false); + drawing.Set_LayoutInCell(false); var oRun = new ParaRun(oParagraph, false); oRun.AddToContent(0, drawing); @@ -3240,7 +3300,7 @@ CInlineLevelSdt.prototype.ConvertFormToInline = function() var nInRunPos = -1; for (var nPos = 0, nRunLen = oRun.GetElementsCount(); nPos < nRunLen; ++nPos) { - if (oRun.GetElement() === oParaDrawing) + if (oRun.GetElement(nPos) === oParaDrawing) { nInRunPos = nPos; break; @@ -3441,12 +3501,12 @@ CInlineLevelSdt.prototype.ProcessAutoFitContent = function(isFastRecalc) if (Math.abs(nNewFontSize - nFontSize) > 0.001) oRun.SetFontSize(nNewFontSize); }; -CInlineLevelSdt.prototype.UpdatePictureFormLayout = function() +CInlineLevelSdt.prototype.UpdatePictureFormLayout = function(nOriginW, nOriginH) { var oBounds = this.GetFixedFormBounds(); - this.private_UpdatePictureFormLayout(oBounds.W, oBounds.H); + this.private_UpdatePictureFormLayout(oBounds.W, oBounds.H, nOriginW, nOriginH); }; -CInlineLevelSdt.prototype.private_UpdatePictureFormLayout = function(nW, nH) +CInlineLevelSdt.prototype.private_UpdatePictureFormLayout = function(nW, nH, _nOriginW, _nOriginH) { var arrDrawings = this.GetAllDrawingObjects(); if (1 !== arrDrawings.length || nW < 0.001 || nH < 0.001) @@ -3469,16 +3529,25 @@ CInlineLevelSdt.prototype.private_UpdatePictureFormLayout = function(nW, nH) var oDrawingProps = oLogicDocument.GetDrawingObjects().getDrawingPropsFromArray([oDrawing.GraphicObj]); if (!oDrawingProps || !oDrawingProps.imageProps) return; - - var oProps = new Asc.asc_CImgProperty(); - oProps.ImageUrl = oDrawingProps.imageProps.ImageUrl; - - var oOriginSize = oProps.asc_getOriginSize(oLogicDocument.GetApi()); - if (!oOriginSize.asc_getIsCorrect()) - return; - - var nOriginW = oOriginSize.asc_getImageWidth(); - var nOriginH = oOriginSize.asc_getImageHeight(); + + let nOriginW = _nOriginW; + let nOriginH = _nOriginH; + if (undefined === nOriginW + || undefined === nOriginH + || nOriginW < 0.001 + || nOriginH < 0.001) + { + + var oProps = new Asc.asc_CImgProperty(); + oProps.ImageUrl = oDrawingProps.imageProps.ImageUrl; + + var oOriginSize = oProps.asc_getOriginSize(oLogicDocument.GetApi()); + if (!oOriginSize.asc_getIsCorrect()) + return; + + nOriginW = oOriginSize.asc_getImageWidth(); + nOriginH = oOriginSize.asc_getImageHeight(); + } var oPictureFormPr = this.GetPictureFormPr(); if (!oPictureFormPr || nOriginW < 0.001 || nOriginH < 0.001) diff --git a/word/Editor/StructuredDocumentTags/SdtBase.js b/word/Editor/StructuredDocumentTags/SdtBase.js index eef2e9ace9..868104e5c0 100644 --- a/word/Editor/StructuredDocumentTags/SdtBase.js +++ b/word/Editor/StructuredDocumentTags/SdtBase.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -327,6 +327,9 @@ CSdtBase.prototype.IsFixedForm = function() */ CSdtBase.prototype.IsFormRequired = function() { + if (this.IsSignatureForm()) + return true; + return (this.Pr.FormPr ? this.Pr.FormPr.GetRequired() : false); }; /** @@ -627,6 +630,10 @@ CSdtBase.prototype.IsPictureForm = function() { return false; }; +CSdtBase.prototype.IsSignatureForm = function() +{ + return false; +}; /** * Функция обновления картиночной формы */ @@ -1125,3 +1132,11 @@ CSdtBase.prototype.IsHideContentControlTrack = function() return Asc.c_oAscSdtAppearance.Hidden === this.GetAppearance(); }; +// TODO: Temporary for building purpose. Remove when actual class is added +(function() +{ + function DataBinding() + { + } + AscWord.DataBinding = DataBinding; +})(); diff --git a/word/Editor/StructuredDocumentTags/SdtPr.js b/word/Editor/StructuredDocumentTags/SdtPr.js index 0f842c30cb..c377b4c00c 100644 --- a/word/Editor/StructuredDocumentTags/SdtPr.js +++ b/word/Editor/StructuredDocumentTags/SdtPr.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -510,6 +510,9 @@ CContentControlPr.prototype.FillFromContentControl = function(oContentControl) this.FormPr.SetAscBorder(subFormPr.GetAscBorder()); this.FormPr.SetShd(subFormPr.GetShd()); } + + if (oContentControl.IsSignatureForm()) + this.FormPr.SetRequired(true); } }; CContentControlPr.prototype.SetToContentControl = function(oContentControl) @@ -917,6 +920,11 @@ CContentControlPr.prototype.GetNewKey = function() return keyGenerator.GetNewKey(this.CC); }; +CContentControlPr.prototype.IsSignature = function() +{ + let pictPr = this.GetPictureFormPr(); + return (pictPr && pictPr.IsSignature()); +}; //--------------------------------------------------------export-------------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; @@ -963,3 +971,4 @@ CContentControlPr.prototype['put_PictureFormPr'] = CContentControlPr.protot CContentControlPr.prototype['get_ComplexFormPr'] = CContentControlPr.prototype.GetComplexFormPr; CContentControlPr.prototype['put_ComplexFormPr'] = CContentControlPr.prototype.SetComplexFormPr; CContentControlPr.prototype['get_NewKey'] = CContentControlPr.prototype.GetNewKey; +CContentControlPr.prototype['is_Signature'] = CContentControlPr.prototype.IsSignature; diff --git a/word/Editor/StructuredDocumentTags/SdtPrChanges.js b/word/Editor/StructuredDocumentTags/SdtPrChanges.js index ae8a4a4a10..e2e237ad40 100644 --- a/word/Editor/StructuredDocumentTags/SdtPrChanges.js +++ b/word/Editor/StructuredDocumentTags/SdtPrChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StructuredDocumentTags/sdt-settings.js b/word/Editor/StructuredDocumentTags/sdt-settings.js index 966f840368..ce7c7383db 100644 --- a/word/Editor/StructuredDocumentTags/sdt-settings.js +++ b/word/Editor/StructuredDocumentTags/sdt-settings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Styles.js b/word/Editor/Styles.js index 2bd9d7b048..7d63864ccd 100644 --- a/word/Editor/Styles.js +++ b/word/Editor/Styles.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -81,9 +81,6 @@ var tblwidth_Pct = 0x03; var tbllayout_Fixed = 0x00; var tbllayout_AutoFit = 0x01; -var border_None = 0x0000; -var border_Single = 0x0001; - var vertalignjc_Top = 0x00; var vertalignjc_Center = 0x01; var vertalignjc_Bottom = 0x02; @@ -401,7 +398,7 @@ CStyle.prototype = var New = new CParaPr(); New.Set_FromObject(Value); - if (isHandleNumbering && Value.NumPr instanceof CNumPr && Value.NumPr.IsValid()) + if (isHandleNumbering && Value.NumPr instanceof AscWord.NumPr && Value.NumPr.IsValid()) { var oLogicDocument = private_GetWordLogicDocument(); if (oLogicDocument) @@ -414,7 +411,7 @@ CStyle.prototype = oNumLvl.SetPStyle(this.GetId()); oNum.SetLvl(oNumLvl, Value.NumPr.Lvl); - New.NumPr = new CNumPr(Value.NumPr.NumId, Value.NumPr.Lvl); + New.NumPr = new AscWord.NumPr(Value.NumPr.NumId, Value.NumPr.Lvl); } } } @@ -609,9 +606,9 @@ CStyle.prototype = this.Name = Value; }, - Get_Name : function() + Get_Name : function(isSimplify) { - return this.Name; + return isSimplify ? this.Name.toLowerCase().replace(/\s/g,"") : this.Name; }, Set_BasedOn : function(Value) @@ -5891,10 +5888,10 @@ CStyle.prototype = }, - isEqual: function(cStyles) + isEqual: function(cStyles, isSimplifyName) { var result = false; - if(this.BasedOn == cStyles.BasedOn && this.Name == cStyles.Name && this.Next == cStyles.Next && this.Type == cStyles.Type && this.hidden == cStyles.hidden) + if(this.BasedOn == cStyles.BasedOn && this.GetName(isSimplifyName) == cStyles.GetName(isSimplifyName) && this.Next == cStyles.Next && this.Type == cStyles.Type && this.hidden == cStyles.hidden) { if(this.qFormat == cStyles.qFormat && this.semiHidden == cStyles.semiHidden && this.uiPriority == cStyles.uiPriority && this.unhideWhenUsed == cStyles.unhideWhenUsed) { @@ -6484,7 +6481,7 @@ CStyle.prototype.SetNumPr = function(numId, iLvl) let paraPr = this.GetParaPr().Copy(); if (null !== numId) - paraPr.NumPr = new AscWord.CNumPr(numId, iLvl); + paraPr.NumPr = new AscWord.NumPr(numId, iLvl); else paraPr.NumPr = undefined; @@ -6574,9 +6571,9 @@ CStyle.prototype.GetUnhideWhenUsed = function() { return this.unhideWhenUsed; }; -CStyle.prototype.GetName = function() +CStyle.prototype.GetName = function(isSimplify) { - return this.Get_Name(); + return this.Get_Name(isSimplify); }; CStyle.prototype.GetBasedOn = function() { @@ -7263,7 +7260,7 @@ function CStyles(bCreateDefault) this.Style = []; - // TODO: Сейчас почти все стили параграфа и текста заданы в AscWord.DEFAULT_STYLES + // TODO: Сейчас почти все стили параграфа и текста заданы в AscWord.DEFAULT_STYLE_LIST // Стили таблиц нужно переделать также // Создаем стандартный стиль для таблиц @@ -7793,7 +7790,7 @@ function CStyles(bCreateDefault) this.Add( Style_Table_Bordered_Accent_6 ); - this.AddStylesFromObject(AscWord.DEFAULT_STYLES); + this.AddStylesFromObject(AscWord.DEFAULT_STYLE_LIST); this.UpdateDefaultStyleLinks(); for (var nLvl = 0; nLvl <= 8; ++nLvl) @@ -8608,14 +8605,15 @@ CStyles.prototype.GetRelatedStyles = function(styleId) * Получаем идентификатор стиля по его имени * @param {string} sName * @param {boolean} [isReturnParaDefault=false] Возвращать ли дефолтовый стиль для параграфа, если стиль не найден + * @param {boolean} [isOnlyCharChecking=false] Проверять ли имя стиля только по символам * @returns {?string} */ -CStyles.prototype.GetStyleIdByName = function(sName, isReturnParaDefault) +CStyles.prototype.GetStyleIdByName = function(sName, isReturnParaDefault, isSimplify) { for (var sId in this.Style) { var oStyle = this.Style[sId]; - if (sName === oStyle.GetName()) + if (sName === oStyle.GetName(isSimplify)) return sId; } @@ -8787,9 +8785,9 @@ CStyles.prototype.Remove_AllCustomStylesFromInterface = function() } } }; -CStyles.prototype.IsStyleDefaultByName = function(styleName) +CStyles.prototype.IsStyleDefaultByName = function(styleName, isSimplify) { - var styleId = this.GetStyleIdByName(styleName); + var styleId = this.GetStyleIdByName(styleName, false, isSimplify); if (!styleId) return false; @@ -9989,6 +9987,211 @@ CDocumentShd.prototype.ReadFromBinary = function(oReader) return this.Read_FromBinary(oReader); }; +AscWord.BorderType = { + // No Border + none : -1, + nil : 0, + + // Line Border + single : 1, + thick : 2, + double : 3, + dotted : 4, + dashed : 5, + dotDash : 6, + dotDotDash : 7, + triple : 8, + thinThickSmallGap : 9, + thickThinSmallGap : 10, + thinThickThinSmallGap : 11, + thinThickMediumGap : 12, + thickThinMediumGap : 13, + thinThickThinMediumGap : 14, + thinThickLargeGap : 15, + thickThinLargeGap : 16, + thinThickThinLargeGap : 17, + wave : 18, + doubleWave : 19, + dashSmallGap : 20, + dashDotStroked : 21, + threeDEmboss : 22, + threeDEngrave : 23, + outset : 24, + inset : 25, + + // ArtBorder + apples : 101, + archedScallops : 102, + babyPacifier : 103, + babyRattle : 104, + balloons3Colors : 105, + balloonsHotAir : 106, + basicBlackDashes : 107, + basicBlackDots : 108, + basicBlackSquares : 109, + basicThinLines : 110, + basicWhiteDashes : 111, + basicWhiteDots : 112, + basicWhiteSquares : 113, + basicWideInline : 114, + basicWideMidline : 115, + basicWideOutline : 116, + bats : 117, + birds : 118, + birdsFlight : 119, + cabins : 120, + cakeSlice : 121, + candyCorn : 122, + celticKnotwork : 123, + certificateBanner : 124, + chainLink : 125, + champagneBottle : 126, + checkedBarBlack : 127, + checkedBarColor : 128, + checkered : 129, + christmasTree : 130, + circlesLines : 131, + circlesRectangles : 132, + classicalWave : 133, + clocks : 134, + compass : 135, + confetti : 136, + confettiGrays : 137, + confettiOutline : 138, + confettiStreamers : 139, + confettiWhite : 140, + cornerTriangles : 141, + couponCutoutDashes : 142, + couponCutoutDots : 143, + crazyMaze : 144, + creaturesButterfly : 145, + creaturesFish : 146, + creaturesInsects : 147, + creaturesLadyBug : 148, + crossStitch : 149, + cup : 150, + custom : 151, + decoArch : 152, + decoArchColor : 153, + decoBlocks : 154, + diamondsGray : 155, + doubleD : 156, + doubleDiamonds : 157, + earth1 : 158, + earth2 : 159, + earth3 : 160, + eclipsingSquares1 : 161, + eclipsingSquares2 : 162, + eggsBlack : 163, + fans : 164, + film : 165, + firecrackers : 166, + flowersBlockPrint : 167, + flowersDaisies : 168, + flowersModern1 : 169, + flowersModern2 : 170, + flowersPansy : 171, + flowersRedRose : 172, + flowersRoses : 173, + flowersTeacup : 174, + flowersTiny : 175, + gems : 176, + gingerbreadMan : 177, + gradient : 178, + handmade1 : 179, + handmade2 : 180, + heartBalloon : 181, + heartGray : 182, + hearts : 183, + heebieJeebies : 184, + holly : 185, + houseFunky : 186, + hypnotic : 187, + iceCreamCones : 188, + lightBulb : 189, + lightning1 : 190, + lightning2 : 191, + mapleLeaf : 192, + mapleMuffins : 193, + mapPins : 194, + marquee : 195, + marqueeToothed : 196, + moons : 197, + mosaic : 198, + musicNotes : 199, + northwest : 200, + ovals : 201, + packages : 202, + palmsBlack : 203, + palmsColor : 204, + paperClips : 205, + papyrus : 206, + partyFavor : 207, + partyGlass : 208, + pencils : 209, + people : 210, + peopleHats : 211, + peopleWaving : 212, + poinsettias : 213, + postageStamp : 214, + pumpkin1 : 215, + pushPinNote1 : 216, + pushPinNote2 : 217, + pyramids : 218, + pyramidsAbove : 219, + quadrants : 220, + rings : 221, + safari : 222, + sawtooth : 223, + sawtoothGray : 224, + scaredCat : 225, + seattle : 226, + sharksTeeth : 227, + shadowedSquares : 228, + shapes1 : 229, + shapes2 : 230, + shorebirdTracks : 231, + skyrocket : 232, + snowflakeFancy : 233, + snowflakes : 234, + sombrero : 235, + southwest : 236, + stars : 237, + stars3d : 238, + starsBlack : 239, + starsShadowed : 240, + starsTop : 241, + sun : 242, + swirligig : 243, + tornPaper : 244, + tornPaperBlack : 245, + trees : 246, + triangle1 : 247, + triangle2 : 248, + triangleCircle1 : 249, + triangleCircle2 : 250, + triangleParty : 251, + triangles : 252, + twistedLines1 : 253, + twistedLines2 : 254, + vine : 255, + waveline : 256, + weavingAngles : 257, + weavingBraid : 258, + weavingRibbon : 259, + weavingStrips : 260, + whiteFlowers : 261, + woodwork : 262, + xIllusions : 263, + zanyTriangles : 264, + zigZag : 265, + zigZagStitch : 266 +}; + +// For compatibility +var border_None = AscWord.BorderType.none; +var border_Single = AscWord.BorderType.single; + function CDocumentBorder() { this.Color = new CDocumentColor(0, 0, 0); @@ -9996,7 +10199,7 @@ function CDocumentBorder() this.LineRef = undefined; this.Space = 0; // Это значение учитывается всегда, даже когда Value = none (поэтому важно, что по умолчанию 0) this.Size = 0.5 * g_dKoef_pt_to_mm; // Размер учитываем в зависимости от Value - this.Value = border_None; + this.Value = AscWord.BorderType.none; } CDocumentBorder.FromObject = function(obj) { @@ -10153,12 +10356,12 @@ CDocumentBorder.prototype = { // Double : Size // Long : Space - // Byte : Value + // Long : Value // Variable : Color Writer.WriteDouble( this.Size ); Writer.WriteLong( this.Space ); - Writer.WriteByte( this.Value ); + Writer.WriteLong( this.Value ); this.Color.Write_ToBinary( Writer ); if(this.Unifill) { @@ -10190,7 +10393,7 @@ CDocumentBorder.prototype = this.Size = Reader.GetDouble(); this.Space = Reader.GetLong(); - this.Value = Reader.GetByte(); + this.Value = Reader.GetLong(); this.Color.Read_FromBinary( Reader ); if(Reader.GetBool()) { @@ -10236,6 +10439,18 @@ CDocumentBorder.prototype.getSpaceInPoint = function(val) { return undefined !== this.Space ? Math.round(this.Space * g_dKoef_mm_to_pt) : undefined; }; +CDocumentBorder.prototype.setValue = function(value) +{ + // Пока мы работаем только с такими типами + if (value === AscWord.BorderType.nil || value === AscWord.BorderType.none) + this.Value = AscWord.BorderType.none; + else + this.Value = AscWord.BorderType.single; +}; +CDocumentBorder.prototype.getValue = function() +{ + return this.Value; +}; /** * Получаем рассчитанную толщину линии в зависимости от типа. * @returns {number} @@ -12051,7 +12266,7 @@ CRFonts.prototype.Merge = function(oRFonts) this.AsciiTheme = oRFonts.AsciiTheme; this.Ascii = undefined; } - else if (oRFonts.Ascii) + else if (oRFonts.Ascii && oRFonts.Ascii.Name) { this.Ascii = oRFonts.Ascii; this.AsciiTheme = undefined; @@ -12062,7 +12277,7 @@ CRFonts.prototype.Merge = function(oRFonts) this.EastAsiaTheme = oRFonts.EastAsiaTheme; this.EastAsia = undefined; } - else if (oRFonts.EastAsia) + else if (oRFonts.EastAsia && oRFonts.EastAsia.Name) { this.EastAsia = oRFonts.EastAsia; this.EastAsiaTheme = undefined; @@ -12073,7 +12288,7 @@ CRFonts.prototype.Merge = function(oRFonts) this.HAnsiTheme = oRFonts.HAnsiTheme; this.HAnsi = undefined; } - else if (oRFonts.HAnsi) + else if (oRFonts.HAnsi && oRFonts.HAnsi.Name) { this.HAnsi = oRFonts.HAnsi; this.HAnsiTheme = undefined; @@ -12084,7 +12299,7 @@ CRFonts.prototype.Merge = function(oRFonts) this.CSTheme = oRFonts.CSTheme; this.CS = undefined; } - else if (oRFonts.CS) + else if (oRFonts.CS && oRFonts.CS.Name) { this.CS = oRFonts.CS; this.CSTheme = undefined; @@ -12248,9 +12463,31 @@ CRFonts.prototype.Is_Equal = function(oRFonts) { return this.IsEqual(oRFonts); }; -CRFonts.prototype.Compare = function(oRFonts) +CRFonts.prototype.Compare = function(rFonts) { - return this.IsEqual(oRFonts); + if (!this.private_IsEqual(this.Ascii, rFonts.Ascii)) + this.Ascii = {Name : undefined, Index : -1}; + + if (!this.private_IsEqual(this.EastAsia, rFonts.EastAsia)) + this.EastAsia = {Name : undefined, Index : -1}; + + if (!this.private_IsEqual(this.HAnsi, rFonts.HAnsi)) + this.HAnsi = {Name : undefined, Index : -1}; + + if (!this.private_IsEqual(this.CS, rFonts.CS)) + this.CS = {Name : undefined, Index : -1}; + + if (this.AsciiTheme !== rFonts.AsciiTheme) + this.AsciiTheme = undefined; + + if (this.EastAsiaTheme !== rFonts.EastAsiaTheme) + this.EastAsiaTheme = undefined; + + if (this.HAnsiTheme !== rFonts.HAnsiTheme) + this.HAnsiTheme = undefined; + + if (this.CSTheme !== rFonts.CSTheme) + this.CSTheme = undefined; }; CRFonts.prototype.Write_ToBinary = function(oWriter) { @@ -12462,6 +12699,29 @@ CLang.prototype = this.Val = Reader.GetLong(); } }; +CLang.prototype.Clear = function() +{ + this.Bidi = undefined; + this.EastAsia = undefined; + this.Val = undefined; +}; +CLang.prototype.Apply = function(lang) +{ + if (null === lang.Bidi) + this.Bidi = undefined; + else if (undefined !== lang.Bidi) + this.Bidi = lang.Bidi; + + if (null === lang.EastAsia) + this.EastAsia = undefined; + else if (undefined !== lang.EastAsia) + this.EastAsia = lang.EastAsia; + + if (null === lang.Val) + this.Val = undefined; + else if (undefined !== lang.Val) + this.Val = lang.Val; +}; CLang.prototype.Is_Empty = function() { if (undefined !== this.Bidi @@ -12730,7 +12990,7 @@ CTextPr.prototype.Merge = function(TextPr) if (undefined != TextPr.Underline) this.Underline = TextPr.Underline; - if (undefined != TextPr.FontFamily) + if (undefined != TextPr.FontFamily && undefined !== TextPr.FontFamily.Name) { this.FontFamily = {}; this.FontFamily.Name = TextPr.FontFamily.Name; @@ -12808,10 +13068,10 @@ CTextPr.prototype.Merge = function(TextPr) if (TextPr.Shd) this.Shd = TextPr.Shd.Copy(); - if (undefined !== TextPr.Vanish) + if (undefined !== TextPr.Vanish && null !== TextPr.Vanish) this.Vanish = TextPr.Vanish; - if (undefined !== TextPr.Ligatures) + if (undefined !== TextPr.Ligatures && null !== TextPr.Ligatures) this.Ligatures = TextPr.Ligatures; if (TextPr.TextOutline) @@ -12830,6 +13090,174 @@ CTextPr.prototype.Merge = function(TextPr) this.FontScale = TextPr.FontScale; } }; +/** + * Накатываем на данные настройки те, которые пришли, причем если какое-то значение null, то это поле мы делаем undefined + * @param {CTextPr} textPr + */ +CTextPr.prototype.Apply = function(textPr) +{ + if (null === textPr.Bold) + this.Bold = undefined; + else if (undefined !== textPr.Bold) + this.Bold = textPr.Bold; + + if (null === textPr.BoldCS) + this.BoldCS = undefined; + else if (undefined !== textPr.BoldCS) + this.BoldCS = textPr.BoldCS; + + if (null === textPr.Italic) + this.Italic = undefined; + else if (undefined !== textPr.Italic) + this.Italic = textPr.Italic; + + if (null === textPr.ItalicCS) + this.ItalicCS = undefined; + else if (undefined !== textPr.ItalicCS) + this.ItalicCS = textPr.ItalicCS; + + if (null === textPr.Strikeout) + this.Strikeout = undefined; + else if (undefined !== textPr.Strikeout) + this.Strikeout = textPr.Strikeout; + + if (null === textPr.Underline) + this.Underline = undefined; + else if (undefined !== textPr.Underline) + this.Underline = textPr.Underline; + + if (null === textPr.FontFamily) + { + this.FontFamily = undefined; + } + else if (undefined !== textPr.FontFamily) + { + this.FontFamily = { + Name : textPr.FontFamily.Name, + Index : textPr.FontFamily.Index, + }; + } + + if (null === textPr.FontSize) + this.FontSize = undefined; + else if (undefined !== textPr.FontSize) + this.FontSize = textPr.FontSize; + + if (null === textPr.FontSizeCS) + this.FontSizeCS = undefined; + else if (undefined !== textPr.FontSizeCS) + this.FontSizeCS = textPr.FontSizeCS; + + if (null === textPr.Color) + this.Color = undefined; + else if (undefined !== textPr.Color) + this.Color = textPr.Color.Copy(); + + if (null === textPr.VertAlign) + this.VertAlign = undefined; + else if (undefined !== textPr.VertAlign) + this.VertAlign = textPr.VertAlign; + + if (null === textPr.HighLight) + this.HighLight = undefined; + else if (highlight_None === textPr.HighLight) + this.HighLight = highlight_None; + else if (undefined !== textPr.HighLight) + this.HighLight = textPr.HighLight.Copy(); + + if (null === textPr.RStyle) + this.RStyle = undefined; + else if (undefined !== textPr.RStyle) + this.RStyle = textPr.RStyle; + + if (null === textPr.Spacing) + this.Spacing = undefined; + else if (undefined !== textPr.Spacing) + this.Spacing = textPr.Spacing; + + if (null === textPr.DStrikeout) + this.DStrikeout = undefined; + else if (undefined !== textPr.DStrikeout) + this.DStrikeout = textPr.DStrikeout; + + if (null === textPr.SmallCaps) + this.SmallCaps = undefined; + else if (undefined !== textPr.SmallCaps) + this.SmallCaps = textPr.SmallCaps; + + if (null === textPr.Caps) + this.Caps = undefined; + else if (undefined !== textPr.Caps) + this.Caps = textPr.Caps; + + if (null === textPr.Position) + this.Position = undefined; + else if (undefined !== textPr.Position) + this.Position = textPr.Position; + + if (textPr.RFonts) + this.RFonts.Merge(textPr.RFonts); + + if (null === textPr.CS) + this.CS = undefined; + else if (undefined !== textPr.CS) + this.CS = textPr.CS; + + if (null === textPr.RTL) + this.RTL = undefined; + else if (undefined !== textPr.RTL) + this.RTL = textPr.RTL; + + if (null === textPr.Lang) + this.Lang.Clear(); + else if (textPr.Lang) + this.Lang.Apply(textPr.Lang); + + if (null === textPr.Unifill) + this.Unifill = undefined; + else if (textPr.Unifill) + this.Unifill = textPr.Unifill.createDuplicate(); + + if (null === textPr.FontRef) + this.FontRef = undefined; + else if (textPr.FontRef) + this.FontRef = textPr.FontRef.createDuplicate(); + + if (null === textPr.TextOutline) + this.TextOutline = undefined; + else if (textPr.TextOutline) + this.TextOutline = textPr.TextOutline.createDuplicate(); + + if (null === textPr.TextFill) + this.TextFill = undefined; + else if (textPr.TextFill) + this.TextFill = textPr.TextFill.createDuplicate(); + + if (null === textPr.HighlightColor) + this.HighlightColor = undefined; + else if (textPr.HighlightColor) + this.HighlightColor = textPr.HighlightColor.createDuplicate(); + + if (null === textPr.Shd) + this.Shd = undefined; + else if (undefined !== textPr.Shd) + this.Shd = textPr.Shd.Copy(); + + if (null === textPr.Vanish) + this.Vanish = undefined; + else if (undefined !== textPr.Vanish) + this.Vanish = textPr.Vanish; + + if (null === textPr.Ligatures) + this.Ligatures = undefined; + else if (undefined !== textPr.Ligatures) + this.Ligatures = textPr.Ligatures; + + if (null === textPr.FontScale) + this.FontScale = undefined; + else if (undefined !== textPr.FontScale) + this.FontScale = textPr.FontScale; +}; CTextPr.prototype.InitDefault = function(nCompatibilityMode) { this.Bold = false; @@ -15198,7 +15626,7 @@ CParaSpacing.prototype.SetLineTwips = function (val) { function CNumPr(numId, iLvl) { this.NumId = numId; - this.Lvl = undefined !== iLvl ? iLvl : 0; + this.Lvl = iLvl; } CNumPr.prototype = @@ -15272,10 +15700,7 @@ CNumPr.prototype = }; CNumPr.prototype.Copy = function() { - var oNumPr = new CNumPr(); - oNumPr.NumId = this.NumId; - oNumPr.Lvl = this.Lvl; - return oNumPr; + return new CNumPr(this.NumId, this.Lvl); }; CNumPr.prototype.IsValid = function() { @@ -15853,8 +16278,8 @@ CParaPr.prototype.createDuplicateForSmartArt = function (bCopyPrChange, oPr) { if (undefined != this.Spacing) ParaPr.Spacing = this.Spacing.Copy(); - if (undefined != this.Ind) // TODO: apply only changed ind - ParaPr.Ind = this.Ind.Copy(); + // if (undefined != this.Ind) // TODO: apply only changed ind + // ParaPr.Ind = this.Ind.Copy(); if (undefined != this.Tabs) ParaPr.Tabs = this.Tabs.Copy(); @@ -15891,27 +16316,30 @@ CParaPr.prototype.Merge = function(ParaPr) if (undefined != ParaPr.Shd && (!this.Shd || !ParaPr.Shd.IsNil())) this.Shd = ParaPr.Shd.Copy(); - - if (undefined != ParaPr.Brd.First) - this.Brd.First = ParaPr.Brd.First; - - if (undefined != ParaPr.Brd.Last) - this.Brd.Last = ParaPr.Brd.Last; - - if (undefined != ParaPr.Brd.Between) - this.Brd.Between = ParaPr.Brd.Between.Copy(); - - if (undefined != ParaPr.Brd.Bottom) - this.Brd.Bottom = ParaPr.Brd.Bottom.Copy(); - - if (undefined != ParaPr.Brd.Left) - this.Brd.Left = ParaPr.Brd.Left.Copy(); - - if (undefined != ParaPr.Brd.Right) - this.Brd.Right = ParaPr.Brd.Right.Copy(); - - if (undefined != ParaPr.Brd.Top) - this.Brd.Top = ParaPr.Brd.Top.Copy(); + + if (ParaPr.Brd) + { + if (undefined != ParaPr.Brd.First) + this.Brd.First = ParaPr.Brd.First; + + if (undefined != ParaPr.Brd.Last) + this.Brd.Last = ParaPr.Brd.Last; + + if (undefined != ParaPr.Brd.Between) + this.Brd.Between = ParaPr.Brd.Between.Copy(); + + if (undefined != ParaPr.Brd.Bottom) + this.Brd.Bottom = ParaPr.Brd.Bottom.Copy(); + + if (undefined != ParaPr.Brd.Left) + this.Brd.Left = ParaPr.Brd.Left.Copy(); + + if (undefined != ParaPr.Brd.Right) + this.Brd.Right = ParaPr.Brd.Right.Copy(); + + if (undefined != ParaPr.Brd.Top) + this.Brd.Top = ParaPr.Brd.Top.Copy(); + } if (undefined != ParaPr.WidowControl) this.WidowControl = ParaPr.WidowControl; @@ -16147,7 +16575,7 @@ CParaPr.prototype.Set_FromObject = function(ParaPr) if (undefined != ParaPr.NumPr) { - this.NumPr = new CNumPr(); + this.NumPr = new AscWord.NumPr(); this.NumPr.Set_FromObject(ParaPr.NumPr); } else @@ -16275,7 +16703,7 @@ CParaPr.prototype.Compare = function(ParaPr) // NumPr if (undefined != this.NumPr && undefined != ParaPr.NumPr && this.NumPr.NumId === ParaPr.NumPr.NumId) { - Result_ParaPr.NumPr = new CNumPr(); + Result_ParaPr.NumPr = new AscWord.NumPr(); Result_ParaPr.NumPr.NumId = ParaPr.NumPr.NumId; Result_ParaPr.NumPr.Lvl = Math.max(this.NumPr.Lvl, ParaPr.NumPr.Lvl); } @@ -16566,7 +16994,7 @@ CParaPr.prototype.Read_FromBinary = function(Reader) if (Flags & 32768) { - this.NumPr = new CNumPr(); + this.NumPr = new AscWord.NumPr(); this.NumPr.Read_FromBinary(Reader); } @@ -17106,7 +17534,7 @@ CParaPr.prototype.SetNumPr = function(sNumId, nLvl) if (undefined === sNumId) this.NumPr = undefined; else - this.NumPr = new CNumPr(sNumId, nLvl); + this.NumPr = new AscWord.NumPr(sNumId, nLvl); }; CParaPr.prototype.GetPStyle = function() { @@ -17338,6 +17766,7 @@ window["AscWord"].CTextPr = CTextPr; window["AscWord"].CParaPr = CParaPr; window["AscWord"].CStyle = CStyle; window["AscWord"].CNumPr = CNumPr; +window["AscWord"].NumPr = CNumPr; window["AscWord"].CBorder = CDocumentBorder; window["AscWord"].CShd = CDocumentShd; window["AscWord"].CStyles = CStyles; @@ -17375,7 +17804,7 @@ AscWord.WHITE_COLOR = new AscWord.CDocumentColor(255, 255, 255, false); var g_oDocumentDefaultFillColor = new CDocumentColor(255, 255, 255, true); var g_oDocumentDefaultStrokeColor = new CDocumentColor(0, 0, 0, true); -window["AscCommonWord"].DEFAULT_STYLES = new CStyles(false); +window["AscWord"].DEFAULT_STYLES = new CStyles(false); window["AscCommonWord"].g_oDocumentDefaultFillColor = g_oDocumentDefaultFillColor; window["AscCommonWord"].g_oDocumentDefaultStrokeColor = g_oDocumentDefaultStrokeColor; diff --git a/word/Editor/Styles/FixedFormDefaults.js b/word/Editor/Styles/FixedFormDefaults.js index 5a53421676..5b6fcf907b 100644 --- a/word/Editor/Styles/FixedFormDefaults.js +++ b/word/Editor/Styles/FixedFormDefaults.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -41,7 +41,7 @@ NONE_SHD.Value = Asc.c_oAscShd.Nil; // NumId=0 означает отсутствие нумерации - const NONE_NUM = new CNumPr(0, 0); + const NONE_NUM = new AscWord.NumPr(0, 0); const TEXTFORM_PR = new CParaPr(); const CHECKBOX_PR = new CParaPr(); diff --git a/word/Editor/Styles/default-styles.js b/word/Editor/Styles/default-styles.js index 2c0d551670..690cc372b2 100644 --- a/word/Editor/Styles/default-styles.js +++ b/word/Editor/Styles/default-styles.js @@ -46,7 +46,7 @@ return pt * g_dKoef_pt_to_mm; } - const DEFAULT_STYLES = [ + const DEFAULT_STYLE_LIST = [ { StyleId : "Normal", Default : true, @@ -846,11 +846,11 @@ Tabs : { Tabs : [ { - Value : Asc.c_oAscTabType.tab_Center, + Value : Asc.c_oAscTabType.Center, Pos : tw2mm(4844) }, { - Value : Asc.c_oAscTabType.tab_Right, + Value : Asc.c_oAscTabType.Right, Pos : tw2mm(9689) } ] @@ -882,11 +882,11 @@ Tabs : { Tabs : [ { - Value : Asc.c_oAscTabType.tab_Center, + Value : Asc.c_oAscTabType.Center, Pos : tw2mm(4844) }, { - Value : Asc.c_oAscTabType.tab_Right, + Value : Asc.c_oAscTabType.Right, Pos : tw2mm(9689) } ] @@ -1049,15 +1049,165 @@ Unifill : AscCommonWord.CreateThemeUnifill(EThemeColor.themecolorFollowedHyperlink, null, null), Underline : true } + }, + { + StyleId : "Toc1", + Type : AscWord.styletype_Paragraph, + Name : "toc 1", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + } + } + }, + { + StyleId : "Toc2", + Type : AscWord.styletype_Paragraph, + Name : "toc 2", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + }, + Ind : { + Left : tw2mm(220) + } + } + }, + { + StyleId : "Toc3", + Type : AscWord.styletype_Paragraph, + Name : "toc 3", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + }, + Ind : { + Left : tw2mm(440) + } + } + }, + { + StyleId : "Toc4", + Type : AscWord.styletype_Paragraph, + Name : "toc 4", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + }, + Ind : { + Left : tw2mm(660) + } + } + }, + { + StyleId : "Toc5", + Type : AscWord.styletype_Paragraph, + Name : "toc 5", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + }, + Ind : { + Left : tw2mm(880) + } + } + }, + { + StyleId : "Toc6", + Type : AscWord.styletype_Paragraph, + Name : "toc 6", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + }, + Ind : { + Left : tw2mm(1100) + } + } + }, + { + StyleId : "Toc7", + Type : AscWord.styletype_Paragraph, + Name : "toc 7", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + }, + Ind : { + Left : tw2mm(1320) + } + } + }, + { + StyleId : "Toc8", + Type : AscWord.styletype_Paragraph, + Name : "toc 8", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + }, + Ind : { + Left : tw2mm(1540) + } + } + }, + { + StyleId : "Toc9", + Type : AscWord.styletype_Paragraph, + Name : "toc 9", + BasedOn : "Normal", + Next : "Normal", + UiPriority : 39, + UnhideWhenUsed : true, + ParaPr : { + Spacing : { + After : tw2mm(100) + }, + Ind : { + Left : tw2mm(1760) + } + } } ]; function getDefaultStyleObject(styleName) { - for (let i = 0; i < DEFAULT_STYLES.length; ++i) + for (let i = 0; i < DEFAULT_STYLE_LIST.length; ++i) { - if (DEFAULT_STYLES[i].Name === styleName) - return DEFAULT_STYLES[i]; + if (DEFAULT_STYLE_LIST[i].Name === styleName) + return DEFAULT_STYLE_LIST[i]; } return null; @@ -1069,17 +1219,17 @@ */ function getDefaultStyleName(defaultStyleId) { - for (let i = 0; i < DEFAULT_STYLES.length; ++i) + for (let i = 0; i < DEFAULT_STYLE_LIST.length; ++i) { - if (DEFAULT_STYLES[i].StyleId === defaultStyleId) - return DEFAULT_STYLES[i].Name; + if (DEFAULT_STYLE_LIST[i].StyleId === defaultStyleId) + return DEFAULT_STYLE_LIST[i].Name; } return ""; } //--------------------------------------------------------export---------------------------------------------------- - AscWord.DEFAULT_STYLES = DEFAULT_STYLES; + AscWord.DEFAULT_STYLE_LIST = DEFAULT_STYLE_LIST; AscWord.DEFAULT_HEADING_FONT = DEFAULT_HEADING_FONT; AscWord.DEFAULT_FONT = DEFAULT_FONT; AscWord.getDefaultStyleObject = getDefaultStyleObject; diff --git a/word/Editor/Styles/style-cache.js b/word/Editor/Styles/style-cache.js index e53397e3da..3ccecb84f9 100644 --- a/word/Editor/Styles/style-cache.js +++ b/word/Editor/Styles/style-cache.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/StylesChanges.js b/word/Editor/StylesChanges.js index 13767ef1d0..232de74e35 100644 --- a/word/Editor/StylesChanges.js +++ b/word/Editor/StylesChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Table.js b/word/Editor/Table.js index f5d341993c..b5d5512bea 100644 --- a/word/Editor/Table.js +++ b/word/Editor/Table.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -105,15 +105,14 @@ function CTable(DrawingDocument, Parent, Inline, Rows, Cols, TableGrid, bPresent this.Lock.Set_Type(AscCommon.c_oAscLockTypes.kLockTypeMine, false); AscCommon.CollaborativeEditing.Add_Unlock2(this); } - - this.DrawingDocument = null; - this.LogicDocument = null; - - if ( undefined !== DrawingDocument && null !== DrawingDocument ) - { - this.DrawingDocument = DrawingDocument; - this.LogicDocument = this.DrawingDocument.m_oLogicDocument; - } + + this.DrawingDocument = DrawingDocument ? DrawingDocument : null; + this.LogicDocument = null; + + if (Parent && Parent.GetLogicDocument) + this.LogicDocument = Parent.GetLogicDocument(); + else if (this.DrawingDocument) + this.LogicDocument = this.DrawingDocument.m_oLogicDocument; this.CompiledPr = { @@ -251,6 +250,8 @@ function CTable(DrawingDocument, Parent, Inline, Rows, Cols, TableGrid, bPresent this.m_oContentChanges = new AscCommon.CContentChanges(); // список изменений(добавление/удаление элементов) // Добавляем данный класс в таблицу Id (обязательно в конце конструктора) AscCommon.g_oTableId.Add(this, this.Id); + + this.updateTrackRevisions(); } CTable.prototype = Object.create(CDocumentContentElementBase.prototype); @@ -2701,24 +2702,30 @@ CTable.prototype.GetAllParagraphs = function(Props, ParaArray) return ParaArray; }; -CTable.prototype.GetAllTables = function(oProps, arrTables) +CTable.prototype.GetAllTables = function(oProps, tables) { - if (!arrTables) - arrTables = []; - - arrTables.push(this); - - var Count = this.Content.length; - for (var nCurRow = 0, nRowsCount = this.GetRowsCount(); nCurRow < nRowsCount; ++nCurRow) + if (!tables) + tables = []; + + tables.push(this); + this.GetNestedTables(tables); + return tables; +}; +CTable.prototype.GetNestedTables = function(tables) +{ + if (!tables) + tables = []; + + for (let iRow = 0, rowCount = this.GetRowsCount(); iRow < rowCount; ++iRow) { - var oRow = this.GetRow(nCurRow); - for (var nCurCell = 0, nCellsCount = oRow.GetCellsCount(); nCurCell < nCellsCount; ++nCurCell) + let row = this.GetRow(iRow); + for (let iCell = 0, cellCount = row.GetCellsCount(); iCell < cellCount; ++iCell) { - oRow.GetCell(nCurCell).GetContent().GetAllTables(oProps, arrTables); + row.GetCell(iCell).GetContent().GetAllTables(undefined, tables); } } - - return arrTables; + + return tables; }; CTable.prototype.GetEndInfo = function() { @@ -3121,12 +3128,14 @@ CTable.prototype.private_CheckRangeOnReset = function() { let X = this.X; let XLimit = this.XLimit; - + + let compatibilityMode = this.LogicDocument && this.LogicDocument.GetCompatibilityMode ? this.LogicDocument.GetCompatibilityMode() : AscCommon.document_compatibility_mode_Current; if (this.LogicDocument && this.LogicDocument.IsDocumentEditor() && this.IsInline() && this.Parent - && this.Parent.CheckRange) + && this.Parent.CheckRange + && compatibilityMode <= AscCommon.document_compatibility_mode_Word14) { var arrRanges = this.Parent.CheckRange(X, this.Y, XLimit, this.Y + 0.001, this.Y, this.Y + 0.001, X, XLimit, this.private_GetRelativePageIndex(0)); if (arrRanges.length > 0) @@ -5639,7 +5648,13 @@ CTable.prototype.Selection_SetEnd = function(X, Y, CurPage, MouseEvent) var _Y_old = this.Markup.Rows[this.Selection.Data2.Index - 1].Y + this.Markup.Rows[this.Selection.Data2.Index - 1].H; var Dy = _Y - _Y_old; var NewH = this.Markup.Rows[this.Selection.Data2.Index - 1].H + Dy; - this.Content[RowIndex - 1].Set_Height(NewH, linerule_AtLeast); + + let row = this.GetRow(RowIndex - 1); + let hRule = row.GetHeight().HRule; + if (Asc.linerule_Auto === hRule) + hRule = Asc.linerule_AtLeast; + + row.SetHeight(NewH, hRule); } } } @@ -5756,7 +5771,7 @@ CTable.prototype.Selection_Stop = function() var Cell = this.Content[this.Selection.StartPos.Pos.Row].Get_Cell(this.Selection.StartPos.Pos.Cell); Cell.Content_Selection_Stop(); }; -CTable.prototype.DrawSelectionOnPage = function(CurPage) +CTable.prototype.DrawSelectionOnPage = function(CurPage, clipInfo) { if (false === this.Selection.Use) return; @@ -5818,7 +5833,18 @@ CTable.prototype.DrawSelectionOnPage = function(CurPage) } else { - this.DrawingDocument.AddPageSelection(PageAbs, X_start, this.RowsInfo[RowIndex].Y[CurPage] + this.RowsInfo[RowIndex].TopDy[CurPage] + CellMar.Top.W + Y_offset, X_end - X_start, Bounds.Bottom - Bounds.Top); + let rectY = this.RowsInfo[RowIndex].Y[CurPage] + this.RowsInfo[RowIndex].TopDy[CurPage] + CellMar.Top.W + Y_offset; + let rectH = Bounds.Bottom - Bounds.Top; + if (Cell.Temp + && Cell.Temp.UseClip + && undefined !== Cell.Temp.ClipTop + && undefined !== Cell.Temp.ClipBottom) + { + rectY = Math.max(rectY, Cell.Temp.ClipTop); + rectH = Math.min(rectH, Math.max(0, Cell.Temp.ClipBottom - rectY)); + } + + this.DrawingDocument.AddPageSelection(PageAbs, X_start, rectY, X_end - X_start, rectH); } } break; @@ -5827,7 +5853,7 @@ CTable.prototype.DrawSelectionOnPage = function(CurPage) { var Cell = this.Content[this.Selection.StartPos.Pos.Row].Get_Cell(this.Selection.StartPos.Pos.Cell); var Cell_PageRel = CurPage - Cell.Content.Get_StartPage_Relative(); - Cell.Content_DrawSelectionOnPage(Cell_PageRel); + Cell.Content_DrawSelectionOnPage(Cell_PageRel, clipInfo); break; } } @@ -6257,14 +6283,8 @@ CTable.prototype.Remove = function(Count, bOnlyText, bRemoveOnlySelection, bOnTe Cell.Content.SelectAll(); Cell.Content.Remove(Count, bOnlyText, bRemoveOnlySelection, true, false); + this.RemoveSelection(); this.CurCell = Cell; - - this.Selection.Use = false; - this.Selection.Start = false; - - this.Selection.StartPos.Pos = {Row : Cell.Row.Index, Cell : Cell.Index}; - this.Selection.EndPos.Pos = {Row : Cell.Row.Index, Cell : Cell.Index}; - this.Document_SetThisElementCurrent(true); } else @@ -7317,7 +7337,10 @@ CTable.prototype.MoveCursorToCell = function(bNext) oCheckAutoCorrectPara = null; } - + if(this.Parent && this.Parent.checkExtentsByDocContent) + { + this.Parent.checkExtentsByDocContent(); + } this.LogicDocument.Recalculate(); this.LogicDocument.FinalizeAction(); } @@ -10103,7 +10126,7 @@ CTable.prototype.RemoveTableRow = function(Ind) Rows_to_delete[0] = Ind; if (Rows_to_delete.length <= 0) - return; + return true; // Строки мы удаляем либо по 1, либо непрервным блоком. При удалении мы // смотрим на следующую строку после удаляемого блока и проверяем, если @@ -10142,7 +10165,6 @@ CTable.prototype.RemoveTableRow = function(Ind) if (isTrackRevisions) { - // Удаляем строки for (var nIndex = Rows_to_delete.length - 1; nIndex >= 0; --nIndex) { var oRow = this.GetRow(Rows_to_delete[nIndex]); @@ -10169,42 +10191,37 @@ CTable.prototype.RemoveTableRow = function(Ind) } else { - // Удаляем строки for (var Index = Rows_to_delete.length - 1; Index >= 0; Index--) { this.private_RemoveRow(Rows_to_delete[Index]); } } - - // Возвращаем курсор - this.DrawingDocument.TargetStart(); - this.DrawingDocument.TargetShow(); - - this.DrawingDocument.SelectEnabled(false); - + // При удалении последней строки, надо сообщить об этом родительскому классу if (this.Content.length <= 0) return false; - - // Перемещаем курсор в начало следующей строки - var CurRow = Math.min(Rows_to_delete[0], this.Content.length - 1); - var Row = this.Content[CurRow]; - this.CurCell = Row.Get_Cell(0); - this.CurCell.Content.MoveCursorToStartPos(); - - var PageNum = 0; - for (PageNum = 0; PageNum < this.Pages.length - 1; PageNum++) + + this.Recalc_CompiledPr2(); + + // Перемещаем курсор в начало следующей строки, либо в следующий параграф + let curRow = Rows_to_delete[0]; + if (curRow >= this.Content.length) { - if (CurRow <= this.Pages[PageNum + 1].FirstRow) - break; + let nextPara = this.GetNextParagraph(); + if (nextPara) + { + nextPara.MoveCursorToStartPos(); + nextPara.Document_SetThisElementCurrent(true); + return; + } + + curRow = this.Content.length - 1; } - - this.Markup.Internal.RowIndex = CurRow; - this.Markup.Internal.CellIndex = 0; - this.Markup.Internal.PageNum = PageNum; - - this.Recalc_CompiledPr2(); - + + this.CurCell = this.GetRow(curRow).GetCell(0); + this.CurCell.Content.MoveCursorToStartPos(); + this.Document_SetThisElementCurrent(true); + return true; }; /** @@ -10683,24 +10700,36 @@ CTable.prototype.AddTableColumn = function(bBefore, nCount) } this.Internal_CreateNewGrid(Rows_info); - - // Выделим новые строки + + // Выделим добавленные ячейки this.Selection.Use = true; this.Selection.Type = table_Selection_Cell; - - var arrSelectionData = []; + + let selectionData = []; for (var CurRow = 0; CurRow < this.Content.length; CurRow++) { var StartCell = ( true === bBefore ? Add_info[CurRow] : Add_info[CurRow] + 1 ); for (var Index = 0; Index < Count; Index++) { - arrSelectionData.push({Row : CurRow, Cell : StartCell + Index}); + selectionData.push({Row : CurRow, Cell : StartCell + Index}); } } - this.private_SetSelectionData(arrSelectionData); - + + if (selectionData.length) + { + this.private_SetSelectionData(selectionData); + let startPos = selectionData[0]; + let endPos = selectionData[selectionData.length - 1]; + + this.Selection.StartPos.Pos = {Row : startPos.Row, Cell : startPos.Cell}; + this.Selection.EndPos.Pos = {Row : endPos.Row, Cell : endPos.Cell}; + } + else + { + this.RemoveSelection(); + } + this.private_RecalculateGrid(); - this.Internal_Recalculate_1(); }; CTable.prototype.DrawTableCells = function(X1, Y1, X2, Y2, CurPageStart, CurPageEnd, drawMode) { @@ -14824,6 +14853,7 @@ CTable.prototype.private_RemoveRow = function(nIndex) this.private_CheckCurCell(); this.private_UpdateTableGrid(); this.OnContentChange(); + this.updateTrackRevisions(); }; CTable.prototype.private_AddRow = function(Index, CellsCount, bReIndexing, _NewRow) { @@ -14871,6 +14901,7 @@ CTable.prototype.private_AddRow = function(Index, CellsCount, bReIndexing, _NewR this.private_CheckCurCell(); this.private_UpdateTableGrid(); this.OnContentChange(); + this.updateTrackRevisions(); return NewRow; }; @@ -16597,8 +16628,15 @@ CTable.prototype.AcceptRevisionChanges = function(nType, bAll) var nCurRow = arrSelectedRows[nSelectedRowIndex]; var oRow = this.GetRow(nCurRow); - if (oRow.HavePrChange() && (undefined === nType || c_oAscRevisionsChangeType.TableRowPr === nType)) + + if (undefined === nType || c_oAscRevisionsChangeType.TableRowPr === nType) + { + for (let iCell = 0, nCells = oRow.GetCellsCount(); iCell < nCells; ++iCell) + { + oRow.GetCell(iCell).AcceptPrChange(); + } oRow.AcceptPrChange(); + } var nRowReviewType = oRow.GetReviewType(); if (reviewtype_Add === nRowReviewType && (undefined === nType || c_oAscRevisionsChangeType.RowsAdd === nType)) @@ -16709,8 +16747,14 @@ CTable.prototype.RejectRevisionChanges = function(nType, bAll) var nCurRow = arrSelectedRows[nSelectedRowIndex]; var oRow = this.GetRow(nCurRow); - if (oRow.HavePrChange() && (undefined === nType || c_oAscRevisionsChangeType.TableRowPr === nType)) + if (undefined === nType || c_oAscRevisionsChangeType.TableRowPr === nType) + { + for (let iCell = 0, nCells = oRow.GetCellsCount(); iCell < nCells; ++iCell) + { + oRow.GetCell(iCell).RejectPrChange(); + } oRow.RejectPrChange(); + } var nRowReviewType = oRow.GetReviewType(); if (reviewtype_Add === nRowReviewType && (undefined === nType || c_oAscRevisionsChangeType.RowsAdd === nType)) @@ -16824,7 +16868,10 @@ CTable.prototype.GetRevisionsChangeElement = function(oSearchEngine) while (oCell && vmerge_Restart !== oCell.GetVMerge()) { - oCell = this.private_GetPrevCell(nCurRow, nCurCell); + if (oSearchEngine.GetDirection() > 0) + oCell = this.private_GetNextCell(oCell.GetRow().GetIndex(), oCell.GetIndex()); + else + oCell = this.private_GetPrevCell(oCell.GetRow().GetIndex(), oCell.GetIndex()); } oCell.GetContent().GetRevisionsChangeElement(oSearchEngine); @@ -19020,11 +19067,18 @@ CTable.prototype.HavePrChange = function() { return this.Pr.HavePrChange(); }; -CTable.prototype.AddPrChange = function() +CTable.prototype.AddPrChange = function(oPr) { if (false === this.HavePrChange()) { - this.Pr.AddPrChange(); + if (oPr && oPr.Comparison) + { + oPr.Comparison.addTablePrChange(this.Pr); + } + else + { + this.Pr.AddPrChange(); + } AscCommon.History.Add(new CChangesTablePrChange(this, { PrChange : undefined, ReviewInfo : undefined @@ -19134,8 +19188,17 @@ CTable.prototype.CheckRevisionsChanges = function(oRevisionsManager) var nRowReviewType = oRow.GetReviewType(); var oRowReviewInfo = oRow.GetReviewInfo(); - if (!tablePrChange && oRow.HavePrChange() && oRow.Pr.ReviewInfo) - private_FlushTableRowPrChange(oRow.Pr.ReviewInfo, oRow.GetIndex(), oRow.GetIndex()); + if (!tablePrChange) + { + let rowReviewInfo = null; + if (oRow.HavePrChange() && oRow.Pr.ReviewInfo) + rowReviewInfo = oRow.Pr.ReviewInfo; + else if (oRow.HaveCellPrChange()) + rowReviewInfo = oRow.GetFirstCellReviewInfo(); + + if (rowReviewInfo) + private_FlushTableRowPrChange(rowReviewInfo, oRow.GetIndex(), oRow.GetIndex()); + } if (reviewtype_Common === nType) { diff --git a/word/Editor/Table/TableCell.js b/word/Editor/Table/TableCell.js index 03ae02869f..e84b95129a 100644 --- a/word/Editor/Table/TableCell.js +++ b/word/Editor/Table/TableCell.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -102,6 +102,10 @@ function CTableCell(Row, ColW) X_cell_end : 0, Y_cell_start : 0, Y_cell_end : 0, + + UseClip : false, + ClipTop : 0, + ClipBottom : 0, Y_VAlign_offset : [] // Сдвиг, который нужно сделать из-за VAlign (массив по страницам) }; @@ -1070,6 +1074,9 @@ CTableCell.prototype = ShiftCell : function(CurPage, dX, dY) { + // TODO: По логике нужно тут двигать this.Temp.ClipTop/ClipBottom, но при пересчете мы их проставляем заново, + // возможно сделать через флаг + if (true === this.IsVerticalText()) { this.Temp.X_start += dX; @@ -1090,9 +1097,9 @@ CTableCell.prototype = } }, - ShiftCellContent : function(nCurPage, nShiftX, nShiftY) + ShiftCellContent : function(nCurPage, nShiftX, nShiftY, keepClip) { - this.Content.Shift(nCurPage, nShiftX, nShiftY); + this.Content.Shift(nCurPage, nShiftX, nShiftY, keepClip); var arrDrawings = this.Content.GetAllDrawingObjects(); for (var nIndex = 0, nCount = arrDrawings.length; nIndex < nCount; ++nIndex) @@ -2764,6 +2771,10 @@ CTableCell.prototype.OnContentChange = function() if (table) table.OnContentChange(); }; +CTableCell.prototype.PreDelete = function() +{ + this.Content.PreDelete(); +}; function CTableCellRecalculateObject() diff --git a/word/Editor/Table/TableCellChanges.js b/word/Editor/Table/TableCellChanges.js index 40f16cab84..ac3230348a 100644 --- a/word/Editor/Table/TableCellChanges.js +++ b/word/Editor/Table/TableCellChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Table/TableChanges.js b/word/Editor/Table/TableChanges.js index 4265294f88..bb4ddbd513 100644 --- a/word/Editor/Table/TableChanges.js +++ b/word/Editor/Table/TableChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Table/TableDraw.js b/word/Editor/Table/TableDraw.js index 94321d11cd..fd39aebb03 100644 --- a/word/Editor/Table/TableDraw.js +++ b/word/Editor/Table/TableDraw.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Table/TableLook.js b/word/Editor/Table/TableLook.js index 628b29b065..82caf896b7 100644 --- a/word/Editor/Table/TableLook.js +++ b/word/Editor/Table/TableLook.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/Table/TableRecalculate.js b/word/Editor/Table/TableRecalculate.js index 6d11caa896..0d34767114 100644 --- a/word/Editor/Table/TableRecalculate.js +++ b/word/Editor/Table/TableRecalculate.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -2560,7 +2560,7 @@ CTable.prototype.private_RecalculatePage = function(CurPage) if (Asc.linerule_Exact === RowH.HRule) RowHValue -= nMaxTopBorder; - if (oFootnotes && (Asc.linerule_AtLeast === RowH.HRule || Asc.linerule_Exact == RowH.HRule)) + if (oFootnotes && (Asc.linerule_AtLeast === RowH.HRule || Asc.linerule_Exact === RowH.HRule)) { oFootnotes.PushCellLimit(Y + RowHValue); } @@ -2576,6 +2576,16 @@ CTable.prototype.private_RecalculatePage = function(CurPage) var VerticallCells = []; var bAllCellsVertical = true; var bFootnoteBreak = false; + + let Y_content_end_row = this.Pages[CurPage].YLimit - nFootnotesHeight; + if (null != CellSpacing) + { + if (this.Content.length - 1 === CurRow) + Y_content_end_row -= CellSpacing; + else + Y_content_end_row -= CellSpacing / 2; + } + for ( var CurCell = 0; CurCell < CellsCount; CurCell++ ) { var Cell = Row.Get_Cell( CurCell ); @@ -2597,17 +2607,10 @@ CTable.prototype.private_RecalculatePage = function(CurPage) var X_content_end = Page.X + CellMetrics.X_content_end; var Y_content_start = Y + CellMar.Top.W; - var Y_content_end = this.Pages[CurPage].YLimit - nFootnotesHeight; + var Y_content_end = Y_content_end_row; // TODO: При расчете YLimit для ячейки сделать учет толщины нижних // границ ячейки и таблицы - if ( null != CellSpacing ) - { - if ( this.Content.length - 1 === CurRow ) - Y_content_end -= CellSpacing; - else - Y_content_end -= CellSpacing / 2; - } var VMergeCount = this.Internal_GetVertMergeCount( CurRow, CurGridCol, GridSpan ); var BottomMargin = this.MaxBotMargin[CurRow + VMergeCount - 1]; @@ -2616,9 +2619,20 @@ CTable.prototype.private_RecalculatePage = function(CurPage) // Такие ячейки мы обсчитываем, если либо сейчас происходит переход на новую страницу, либо // это последняя ячейка в объединении. // Обсчет такик ячеек произошел ранее - - Cell.Temp.Y = Y_content_start; - + + let clipTop = undefined; + let clipBottom = undefined; + if (Asc.linerule_Exact === RowH.HRule) + { + clipTop = Y; + clipBottom = Y + RowHValue; + } + + Cell.Temp.Y = Y_content_start; + Cell.Temp.ClipTop = Y; + Cell.Temp.ClipBottom = Y + RowHValue; + Cell.Temp.ClipPage = CurPage; + // Сохраняем ссылку на исходную ячейку var oOriginCell = Cell; if ( VMergeCount > 1 ) @@ -2642,9 +2656,19 @@ CTable.prototype.private_RecalculatePage = function(CurPage) X_content_end = Page.X + oTempCellMetrics.X_content_end; Y_content_start = Cell.Temp.Y + CellMar.Top.W; + + // TODO: Клип пока выставляем для первой страницы ячейки, по логике надо просто выставлять клип на + // ячейку на текущей странице + if (undefined !== Cell.Temp.ClipTop && CurPage === Cell.Temp.ClipPage) + { + clipTop = Cell.Temp.ClipTop; + Cell.Temp.ClipBottom = clipBottom; + } } } - + + Cell.Temp.UseClip = false; + if (true === Cell.IsVerticalText()) { VerticallCells.push(Cell); @@ -2652,6 +2676,11 @@ CTable.prototype.private_RecalculatePage = function(CurPage) continue; } + // Для случая, когда смерженная вертикально ячейка идет в строке не с точной высотой, а заканчивается + // в строке с точной высотой строки + if (Asc.linerule_Exact === RowH.HRule) + Cell.Temp.UseClip = true; + if (null === CellSpacing) { let bottomBorder = this.private_ResolveBordersConflict(Cell.GetBottomBorder(), TableBorders.Bottom, false, true); @@ -2691,6 +2720,9 @@ CTable.prototype.private_RecalculatePage = function(CurPage) } } } + + if (Asc.linerule_Exact === RowH.HRule) + Y_content_end = Asc.NoYLimit; Cell.PagesCount = 1; Cell.Content.Reset(X_content_start, Y_content_start, X_content_end, Y_content_end); @@ -2699,13 +2731,15 @@ CTable.prototype.private_RecalculatePage = function(CurPage) // Какие-то ячейки в строке могут быть не разбиты на строки, а какие то разбиты. // Здесь контролируем этот момент, чтобы у тех, которые не разбиты не вызывать // Recalculate_Page от несуществующих страниц. + var CellPageIndex = CurPage - Cell.Content.Get_StartPage_Relative(); - Cell.Content.Set_ClipInfo(CellPageIndex, Page.X + CellMetrics.X_cell_start, Page.X + CellMetrics.X_cell_end); + Cell.Content.Set_ClipInfo(CellPageIndex, Page.X + CellMetrics.X_cell_start, Page.X + CellMetrics.X_cell_end, clipTop, clipBottom); if ( CellPageIndex < Cell.PagesCount ) { if ( true === bCanShift ) { Cell.ShiftCell(0, ShiftDx, ShiftDy); + Cell.Content.Set_ClipInfo(CellPageIndex, Page.X + CellMetrics.X_cell_start, Page.X + CellMetrics.X_cell_end, clipTop, clipBottom); Cell.Content.UpdateEndInfo(); } else @@ -2747,6 +2781,7 @@ CTable.prototype.private_RecalculatePage = function(CurPage) MaxBotValue_vmerge = CellContentBounds_Bottom; } } + var nCurFootnotesHeight = oFootnotes ? oFootnotes.GetHeight(nPageAbs, nColumnAbs) : 0; if (oFootnotes && nCurFootnotesHeight > nFootnotesHeight + 0.001) @@ -2783,8 +2818,11 @@ CTable.prototype.private_RecalculatePage = function(CurPage) if (bAllCellsVertical && Asc.linerule_Auto === RowH.HRule) this.TableRowsBottom[CurRow][CurPage] = Y + 4.5 + this.MaxBotMargin[CurRow] + MaxTopMargin; + if (Asc.linerule_Exact === RowH.HRule) + this.TableRowsBottom[CurRow][CurPage] = Y + RowHValue; + if ((Asc.linerule_AtLeast === RowH.HRule || Asc.linerule_Exact === RowH.HRule) - && AscCommon.MMToTwips(Y + RowHValue + rowMaxBotBorder, 1) >= AscCommon.MMToTwips(Y_content_end, -1) + && AscCommon.MMToTwips(Y + RowHValue + rowMaxBotBorder, 1) >= AscCommon.MMToTwips(Y_content_end_row, -1) && ((0 === CurRow && 0 === CurPage && null !== this.Get_DocumentPrev() && !this.Parent.IsFirstElementOnPage(this.private_GetRelativePageIndex(CurPage), this.GetIndex())) || CurRow !== FirstRow)) { @@ -2959,7 +2997,7 @@ CTable.prototype.private_RecalculatePage = function(CurPage) this.RowsInfo[CurRow - 1].H[CurPage] += Diff; } } - else + else if (Asc.linerule_Exact !== RowH.HRule) { if (undefined === this.TableRowsBottom[CurRow][CurPage] || this.TableRowsBottom[CurRow][CurPage] < CellContentBounds_Bottom) this.TableRowsBottom[CurRow][CurPage] = CellContentBounds_Bottom; @@ -3137,6 +3175,7 @@ CTable.prototype.private_RecalculatePage = function(CurPage) CurRow--; continue; } + if ( null != CellSpacing ) this.RowsInfo[CurRow].H[CurPage] = CellHeight; @@ -3263,7 +3302,7 @@ CTable.prototype.private_RecalculatePage = function(CurPage) else if (vertalignjc_Center === VAlign) Dy = (CellHeight - ContentHeight) / 2; - Cell.ShiftCellContent(CellPageIndex, 0, Dy); + Cell.ShiftCellContent(CellPageIndex, 0, Dy, true); } Cell.Temp.Y_VAlign_offset[CellPageIndex] = Dy; diff --git a/word/Editor/Table/TableRow.js b/word/Editor/Table/TableRow.js index 1b197f9f78..abb8cc2692 100644 --- a/word/Editor/Table/TableRow.js +++ b/word/Editor/Table/TableRow.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -225,18 +225,10 @@ CTableRow.prototype = PreDelete : function() { - var CellsCount = this.Get_CellsCount(); - for ( var CurCell = 0; CurCell < CellsCount; CurCell++ ) - { - var Cell = this.Get_Cell( CurCell ); - - var CellContent = Cell.Content.Content; - var ContentCount = CellContent.length; - for ( var Pos = 0; Pos < ContentCount; Pos++ ) - { - CellContent[Pos].PreDelete(); - } - } + for (let iCell = 0, cellCount = this.GetCellsCount(); iCell < cellCount; ++iCell) + { + this.GetCell(iCell).PreDelete(); + } }, //----------------------------------------------------------------------------------- // Работаем с стилем строки @@ -608,6 +600,8 @@ CTableRow.prototype = Remove_Cell : function(Index) { + this.Content[Index].PreDelete(); + AscCommon.History.Add(new CChangesTableRowRemoveCell(this, Index, [this.Content[Index]])); this.Content.splice(Index, 1); @@ -1171,6 +1165,25 @@ CTableRow.prototype.RejectPrChange = function() this.RemovePrChange(); } }; +CTableRow.prototype.HaveCellPrChange = function() +{ + for (let iCell = 0, nCells = this.GetCellsCount(); iCell < nCells; ++iCell) + { + if (this.GetCell(iCell).HavePrChange()) + return true; + } + return false; +}; +CTableRow.prototype.GetFirstCellReviewInfo = function() +{ + for (let iCell = 0, nCells = this.GetCellsCount(); iCell < nCells; ++iCell) + { + let reviewInfo = this.GetCell(iCell).Pr.ReviewInfo; + if (reviewInfo) + return reviewInfo; + } + return null; +}; CTableRow.prototype.private_CheckCurCell = function() { if (this.GetTable()) diff --git a/word/Editor/Table/TableRowChanges.js b/word/Editor/Table/TableRowChanges.js index bc65319f35..212bf336e9 100644 --- a/word/Editor/Table/TableRowChanges.js +++ b/word/Editor/Table/TableRowChanges.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Math/.math-test/runAutoTests.js b/word/Editor/annotations/annotation-mark-base.js similarity index 51% rename from word/Math/.math-test/runAutoTests.js rename to word/Editor/annotations/annotation-mark-base.js index 0ca312051b..b66ccacf36 100644 --- a/word/Math/.math-test/runAutoTests.js +++ b/word/Editor/annotations/annotation-mark-base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -29,5 +29,64 @@ * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode * */ -import "./RunLaTeXTest.js" -import "./RunUnicodeTests.js" + +"use strict"; + +(function() +{ + /** + * Base class for annotation marks like bookmarkStart/bookmarkEnd/permStart/permEnd/commentStart/commentEnd + * @constructor + */ + function AnnotationMarkBase() + { + } + + AnnotationMarkBase.prototype.isPermMark = function() + { + return false; + }; + AnnotationMarkBase.prototype.isCommentMark = function() + { + return false; + }; + AnnotationMarkBase.prototype.isBookmarkMark = function() + { + return false; + }; + AnnotationMarkBase.prototype.isStart = function() + { + return false; + }; + AnnotationMarkBase.prototype.isEnd = function() + { + return false; + }; + AnnotationMarkBase.prototype.isUseInDocument = function() + { + let paragraph = this.getParagraph(); + if (!paragraph) + return false; + + return (paragraph && paragraph.IsUseInDocument() && !!paragraph.Get_PosByElement(this)); + }; + AnnotationMarkBase.prototype.getParagraph = function() + { + return this.GetParagraph(); + }; + AnnotationMarkBase.prototype.removeMark = function() + { + let paragraph = this.getParagraph(); + if (!paragraph) + return false; + + return paragraph.RemoveElement(this); + }; + AnnotationMarkBase.prototype.getPositionInDocument = function() + { + return this.GetDocumentPositionFromObject(); + }; + //--------------------------------------------------------export---------------------------------------------------- + AscWord.AnnotationMarkBase = AnnotationMarkBase; +})(); + diff --git a/word/Editor/annotations/paragraph-perm.js b/word/Editor/annotations/paragraph-perm.js new file mode 100644 index 0000000000..e5b0089d26 --- /dev/null +++ b/word/Editor/annotations/paragraph-perm.js @@ -0,0 +1,335 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +(function() +{ + + /** + * @constructor + * @extends {CParagraphContentBase} + */ + function ParagraphPermBase() + { + CParagraphContentBase.call(this); + this.Id = AscCommon.g_oIdCounter.Get_NewId(); + AscCommon.g_oTableId.Add(this, this.Id); + } + + ParagraphPermBase.prototype = Object.create(CParagraphContentBase.prototype); + ParagraphPermBase.prototype.constructor = ParagraphPermBase; + Object.assign(ParagraphPermBase.prototype, AscWord.AnnotationMarkBase.prototype); + + ParagraphPermBase.prototype.Get_Id = function() + { + return this.Id; + }; + ParagraphPermBase.prototype.GetId = function() + { + return this.Id; + }; + ParagraphPermBase.prototype.Copy = function() + { + return new this.constructor(); + }; + ParagraphPermBase.prototype.PreDelete = function() + { + let logicDocument = this.GetLogicDocument(); + if (!logicDocument || !logicDocument.IsDocumentEditor()) + return; + + logicDocument.OnDeleteAnnotationMark(this); + }; + ParagraphPermBase.prototype.SetParagraph = function(p) + { + CParagraphContentBase.prototype.SetParagraph.call(this, p); + AscWord.registerPermRangeMark(this); + }; + ParagraphPermBase.prototype.GetAllPermRangeMarks = function(marks) + { + marks.push(this); + }; + /** + * Очень важно, что в режимах комментирования и просмотра, мы проход через данный элемент считаем как перемещение курсора, + * т.к. на этом завязано выделение текущего слова и применение настроек к текущему слову (оно должно применяться + * только к той части, что внутри разрешенного диапазона) + * @returns {boolean} + */ + ParagraphPermBase.prototype.IsStopCursorOnEntryExit = function() + { + let logicDocument = this.GetLogicDocument(); + if (!logicDocument || !logicDocument.IsDocumentEditor()) + return false; + + let api = logicDocument.GetApi(); + return api.isRestrictionComments() || api.isRestrictionView(); + }; + ParagraphPermBase.prototype.isPermMark = function() + { + return true; + }; + ParagraphPermBase.prototype.getRangeId = function() + { + return this.rangeId; + }; + ParagraphPermBase.prototype.getColFirst = function() + { + return this.colFirst; + }; + ParagraphPermBase.prototype.getColLast = function() + { + return this.colLast; + }; + ParagraphPermBase.prototype.getDisplacedByCustomXml = function() + { + return this.displacedByCustomXml; + }; + ParagraphPermBase.prototype.getEd = function() + { + return this.ed; + }; + ParagraphPermBase.prototype.getEdGrp = function() + { + return this.edGrp; + }; + //---------------------------------------------------------------------------------------------------------------------- + // Collaboration + //---------------------------------------------------------------------------------------------------------------------- + ParagraphPermBase.prototype.Refresh_RecalcData = function() + { + }; + + /** + * @param rangeId + * @param colFirst + * @param colLast + * @param displacedByCustomXml + * @param ed + * @param edGrp + * @constructor + * @extends {ParagraphPermBase} + */ + function ParagraphPermStart(rangeId, colFirst, colLast, displacedByCustomXml, ed, edGrp) + { + this.rangeId = rangeId; + this.colFirst = undefined !== colFirst && null !== colFirst ? colFirst : undefined; + this.colLast = undefined !== colLast && null !== colLast ? colLast : undefined; + this.displacedByCustomXml = undefined !== displacedByCustomXml && null !== displacedByCustomXml ? displacedByCustomXml : undefined; + this.ed = undefined !== ed && null !== ed ? ed : undefined; + this.edGrp = undefined !== edGrp && null !== edGrp ? edGrp : undefined; + + ParagraphPermBase.call(this); + + this.Type = para_PermStart; + } + ParagraphPermStart.prototype = Object.create(ParagraphPermBase.prototype); + ParagraphPermStart.prototype.constructor = ParagraphPermStart; + + ParagraphPermStart.fromObject = function(obj) + { + if (!obj) + obj = {}; + + return new ParagraphPermStart(obj.id, obj.colFirst, obj.colLast, obj.displacedByCustomXml, obj.ed, obj.edGrp); + }; + ParagraphPermStart.prototype.isStart = function() + { + return true; + }; + ParagraphPermStart.prototype.Draw_HighLights = function(PDSH) + { + PDSH.addPermRange(this.rangeId); + }; + ParagraphPermStart.prototype.Recalculate_PageEndInfo = function(PRSI, curLine, curRange) + { + PRSI.addPermRange(this.rangeId); + }; + ParagraphPermStart.prototype.RecalculateEndInfo = function(PRSI) + { + PRSI.addPermRange(this.rangeId); + }; + ParagraphPermStart.prototype.GetCurrentPermRanges = function(permRanges, isCurrent) + { + let pos = permRanges.indexOf(this.rangeId); + // TODO: Такого не должно быть + if (-1 !== pos) + return; + + permRanges.push(this.rangeId); + }; + ParagraphPermStart.prototype.Copy = function() + { + return new ParagraphPermStart(this.rangeId, this.colFirst, this.colLast, this.displacedByCustomXml, this.ed, this.edGrp); + }; + ParagraphPermStart.prototype.Write_ToBinary2 = function(writer) + { + writer.WriteLong(AscDFH.historyitem_type_ParagraphPermStart); + + writer.WriteString2("" + this.Id); + writer.WriteString2("" + this.rangeId); + + let startPos = writer.GetCurPosition(); + writer.Skip(4); + let flags = 0; + + if (undefined !== this.colFirst) + { + writer.WriteLong(this.colFirst); + flags |= 1; + } + + if (undefined !== this.colLast) + { + writer.WriteLong(this.colLast); + flags |= 2; + } + + if (undefined !== this.displacedByCustomXml) + { + writer.WriteByte(this.displacedByCustomXml); + flags |= 4; + } + + if (undefined !== this.ed) + { + writer.WriteString2(this.ed); + flags |= 8; + } + + if (undefined !== this.edGrp) + { + writer.WriteByte(this.edGrp); + flags |= 16; + } + + let endPos = writer.GetCurPosition(); + writer.Seek(startPos); + writer.WriteLong(flags); + writer.Seek(endPos); + }; + ParagraphPermStart.prototype.Read_FromBinary2 = function(reader) + { + this.Id = reader.GetString2(); + this.rangeId = reader.GetString2(); + + let flags = reader.GetLong(); + + if (flags & 1) + this.colFirst = reader.GetLong(); + + if (flags & 2) + this.colLast = reader.GetLong(); + + if (flags & 4) + this.displacedByCustomXml = reader.GetByte(); + + if (flags & 8) + this.ed = reader.GetString2(); + + if (flags & 16) + this.edGrp = reader.GetByte(); + }; + + /** + * @param rangeId + * @constructor + * @extends {ParagraphPermBase} + */ + function ParagraphPermEnd(rangeId) + { + this.rangeId = rangeId; + ParagraphPermBase.call(this); + + this.Type = para_PermEnd; + } + ParagraphPermEnd.prototype = Object.create(ParagraphPermBase.prototype); + ParagraphPermEnd.prototype.constructor = ParagraphPermEnd; + + ParagraphPermEnd.fromObject = function(obj) + { + if (!obj) + return null; + + return new ParagraphPermEnd(obj.id); + }; + ParagraphPermEnd.prototype.isEnd = function() + { + return true; + }; + ParagraphPermEnd.prototype.Draw_HighLights = function(PDSH) + { + PDSH.removePermRange(this.rangeId); + }; + ParagraphPermEnd.prototype.Recalculate_PageEndInfo = function(PRSI, curLine, curRange) + { + PRSI.removePermRange(this.rangeId); + }; + ParagraphPermEnd.prototype.RecalculateEndInfo = function(PRSI) + { + PRSI.removePermRange(this.rangeId); + }; + ParagraphPermEnd.prototype.GetCurrentPermRanges = function(permRanges, isCurrent) + { + let pos = permRanges.indexOf(this.rangeId); + + // TODO: Такого не должно быть + if (-1 === pos) + return; + + if (pos === permRanges.length - 1) + --permRanges.length; + else + permRanges.splice(pos, 1); + }; + ParagraphPermEnd.prototype.Copy = function() + { + return new ParagraphPermEnd(this.rangeId); + }; + ParagraphPermEnd.prototype.Write_ToBinary2 = function(writer) + { + writer.WriteLong(AscDFH.historyitem_type_ParagraphPermEnd); + + writer.WriteString2("" + this.Id); + writer.WriteString2("" + this.rangeId); + }; + ParagraphPermEnd.prototype.Read_FromBinary2 = function(reader) + { + this.Id = reader.GetString2(); + this.rangeId = reader.GetString2(); + }; + + //--------------------------------------------------------export---------------------------------------------------- + AscWord.ParagraphPermStart = ParagraphPermStart; + AscWord.ParagraphPermEnd = ParagraphPermEnd; +})(); + diff --git a/word/Editor/annotations/perm-ranges-manager.js b/word/Editor/annotations/perm-ranges-manager.js new file mode 100644 index 0000000000..2530770854 --- /dev/null +++ b/word/Editor/annotations/perm-ranges-manager.js @@ -0,0 +1,185 @@ +/* + * (c) Copyright Ascensio System SIA 2010-2024 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +"use strict"; + +(function() +{ + let marksToCheck = []; + + /** + * @param logicDocument {AscWord.Document} + * @constructor + */ + function PermRangesManager(logicDocument) + { + this.logicDocument = logicDocument + + this.ranges = {}; + } + + /** + * Статический метод, который проверяет попадаем ли целиком в разрешенный диапазон по заданным стартовому и + * конечному диапазонам + * @param startRanges + * @param endRanges + */ + PermRangesManager.isInPermRange = function(startRanges, endRanges) + { + // TODO: Пока мы просто проверяем само наличие диапазона, в будущем надо проверяеть пользователя + + if (endRanges.length < 0) + return false; + + for (let iRange = 0, rangeCount = endRanges.length; iRange < rangeCount; ++iRange) + { + if (-1 !== startRanges.indexOf(endRanges[iRange])) + return true; + } + + return false; + }; + PermRangesManager.prototype.addMark = function(mark) + { + let rangeId = mark.getRangeId(); + if (!this.ranges[rangeId]) + this.ranges[rangeId] = {}; + + if (mark.isStart()) + this.ranges[rangeId].start = mark; + else + this.ranges[rangeId].end = mark; + }; + PermRangesManager.prototype.getStartMark = function(rangeId) + { + this.updateMarks(); + + if (!this.ranges[rangeId] || !this.ranges[rangeId].start) + return null + + return this.ranges[rangeId].start; + }; + PermRangesManager.prototype.getEndMark = function(rangeId) + { + this.updateMarks(); + + if (!this.ranges[rangeId] || !this.ranges[rangeId].end) + return null; + + return this.ranges[rangeId].end; + }; + PermRangesManager.prototype.updateMarks = function() + { + for (let i = 0, count = marksToCheck.length; i < count; ++i) + { + let mark = marksToCheck[i]; + if (!mark.isUseInDocument()) + continue; + + this.addMark(mark); + } + + marksToCheck.length = 0; + }; + /** + * Проверяем заданный отрезок, если он невалидный или пустой, тогда удаляем его из документа + * @param {number} rangeId + */ + PermRangesManager.prototype.checkRange = function(rangeId) + { + this.updateMarks(); + + if (!this._isValidRange(rangeId) || this._isEmptyRange(rangeId)) + this.removeRange(rangeId); + }; + PermRangesManager.prototype.removeRange = function(rangeId) + { + if (!this.ranges[rangeId]) + return; + + if (this.ranges[rangeId].start) + this.ranges[rangeId].start.removeMark(); + + if (this.ranges[rangeId].end) + this.ranges[rangeId].end.removeMark(); + + delete this.ranges[rangeId]; + }; + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // Private area + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + PermRangesManager.prototype._isValidRange = function(rangeId) + { + if (!this.ranges[rangeId]) + return false; + + let start = this.ranges[rangeId].start; + let end = this.ranges[rangeId].end; + + if (!start || !end || !start.isUseInDocument() || !end.isUseInDocument()) + return false; + + let startPos = start.getPositionInDocument(); + let endPos = end.getPositionInDocument(); + + if (!startPos || !endPos) + return false; + + return AscWord.CompareDocumentPositions(startPos, endPos) <= 0; + }; + PermRangesManager.prototype._isEmptyRange = function(rangeId) + { + // Здесь мы считаем, что заданный отрезок валидный + + let state = this.logicDocument.SaveDocumentState(); + + let startPos = this.ranges[rangeId].start.getPositionInDocument(); + let endPos = this.ranges[rangeId].end.getPositionInDocument(); + + this.logicDocument.SetSelectionByContentPositions(startPos, endPos); + let result = this.logicDocument.IsSelectionEmpty(); + + this.logicDocument.LoadDocumentState(state); + + return result; + }; + + function registerPermRangeMark(mark) + { + marksToCheck.push(mark); + } + //--------------------------------------------------------export---------------------------------------------------- + AscWord.PermRangesManager = PermRangesManager; + AscWord.registerPermRangeMark = registerPermRangeMark; + +})(); + diff --git a/word/Editor/document-composite-input.js b/word/Editor/document-composite-input.js index 63db103dca..d2a9ccfe9d 100644 --- a/word/Editor/document-composite-input.js +++ b/word/Editor/document-composite-input.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Editor/document/document-background.js b/word/Editor/document/document-background.js index 9f9fbe4fdf..8a320cf1d6 100644 --- a/word/Editor/document/document-background.js +++ b/word/Editor/document/document-background.js @@ -75,7 +75,7 @@ DocumentBackground.prototype._getBrush = function() { let brush = null; - if (false)//this.shape) + if (this.shape) brush = this.shape.brush; else if (this.Unifill) brush = this.Unifill; diff --git a/word/Local/api.js b/word/Local/api.js index 6bb0460f04..d5ccb7c5a5 100644 --- a/word/Local/api.js +++ b/word/Local/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -151,6 +151,7 @@ AscCommon.baseEditorsApi.prototype.asc_setCurrentPassword = AscCommon.baseEditor return this.asc_setCurrentPasswordBase(password); }; +var isSupportSaveInPDF = true; // Since 8.2.0 Asc['asc_docs_api'].prototype.asc_Save = function (isNoUserSave, isSaveAs, isResaveAttack, options) { if (!isResaveAttack && !isSaveAs && !this.asc_isDocumentCanSave()) @@ -168,8 +169,13 @@ Asc['asc_docs_api'].prototype.asc_Save = function (isNoUserSave, isSaveAs, isRes { var _isNaturalSave = this.IsUserSave; this.canSave = false; + + let isSupportBuild = true; + + if (this.isPdfEditor()) + isSupportBuild = isSupportSaveInPDF; - if (!this.isPdfEditor()) + if (isSupportBuild) { var t = this; this.CoAuthoringApi.askSaveChanges(function(e) { @@ -236,7 +242,7 @@ window["DesktopOfflineAppDocumentStartSave"] = function(isSaveAs, password, isFo } } - if (editor.isUseNativeViewer && editor.isDocumentRenderer()) + if (!isSupportSaveInPDF && editor.isUseNativeViewer && editor.isDocumentRenderer()) { let changes = editor.WordControl.m_oDrawingDocument.m_oDocumentRenderer.Save(); if (changes) diff --git a/word/Local/documentrenderer.js b/word/Local/documentrenderer.js index 22856b8281..c334f1b376 100644 --- a/word/Local/documentrenderer.js +++ b/word/Local/documentrenderer.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Math/.math-test/LaTeXList/accents-tests.js b/word/Math/.math-test/LaTeXList/accents-tests.js deleted file mode 100644 index 89a7b37364..0000000000 --- a/word/Math/.math-test/LaTeXList/accents-tests.js +++ /dev/null @@ -1,285 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function accents(test) { - test( - "\\dot{a}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "a" - }, - "value": "̇" - } - }, - "Check \\dot{a}" - ); - test( - "\\ddot{b}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "b" - }, - "value": "̈" - } - }, - "Check \\ddot{b}" - ); - test( - "\\acute{c}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "c" - }, - "value": "́" - } - }, - "Check \\acute{c}" - ); - test( - "\\grave{d}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "d" - }, - "value": "̀" - } - }, - "Check \\grave{d}" - ); - test( - "\\check{e}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "e" - }, - "value": "̌" - } - }, - "Check \\check{e}" - ); - test( - "\\breve{f}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "f" - }, - "value": "̆" - } - }, - "Check \\breve{f}" - ); - test( - "\\tilde{g}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "g" - }, - "value": "̃" - } - }, - "Check \\tilde{g}" - ); - test( - "\\bar{h}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "h" - }, - "value": "̅" - } - }, - "Check \\bar{h}" - ); - test( - "\\widehat{j}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "j" - }, - "value": "̂" - } - }, - "Check \\widehat{j}" - ); - test( - "\\vec{k}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "CharLiteral", - "value": "k" - }, - "value": "⃗" - } - } - , - "Check \\vec{k}" - ); - //doesn't implement in word - // test( - // "\\not{l}", - // { - // "type": "LaTeXEquation", - // "body": { - // "type": "AccentLiteral", - // "base": { - // "type": "CharLiteral", - // "value": "l" - // }, - // "value": 824 - // } - // }, - // "Check \\not{l}" - // ); - test( - "\\vec \\frac{k}{2}", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "FractionLiteral", - "up": { - "type": "CharLiteral", - "value": "k" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - }, - "value": "⃗" - } - }, - "Check \\vec \\frac{k}{2}" - ); - // test( - // "\\not\\notl2", - // { - // "type": "LaTeXEquation", - // "body": [ - // { - // "type": "AccentLiteral", - // "base": { - // "type": "AccentLiteral", - // "base": { - // "type": "CharLiteral", - // "value": "l" - // }, - // "value": 824 - // }, - // "value": 824 - // }, - // { - // "type": "NumberLiteral", - // "value": "2" - // } - // ] - // }, - // "Check \\notl" - // ); - test( - "5''", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "NumberLiteral", - "value": "5" - }, - "value": "''" - } - }, - "Check 5''" - ); - test( - "\\frac{4}{5}''", - { - "type": "LaTeXEquation", - "body": { - "type": "AccentLiteral", - "base": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "4" - }, - "down": { - "type": "NumberLiteral", - "value": "5" - } - }, - "value": "''" - } - }, - "Check \\frac{4}{5}''" - ); -} -window["AscMath"].accents = accents; diff --git a/word/Math/.math-test/LaTeXList/brackets-test.js b/word/Math/.math-test/LaTeXList/brackets-test.js deleted file mode 100644 index fb67f6ac7a..0000000000 --- a/word/Math/.math-test/LaTeXList/brackets-test.js +++ /dev/null @@ -1,258 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function brackets (test) { - test( - "(a)[b]\\{c\\}|d|\\|e\\|\\langlef\\rangle\\lfloorg\\rfloor\\lceilh\\rceil\\ulcorneri\\urcorner/j\\backslash", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "BracketBlock", - "left": "(", - "right": ")", - "value": { - "type": "CharLiteral", - "value": "a" - } - }, - { - "type": "BracketBlock", - "left": "[", - "right": "]", - "value": { - "type": "CharLiteral", - "value": "b" - } - }, - { - "type": "BracketBlock", - "left": "\\{", - "right": "\\}", - "value": { - "type": "CharLiteral", - "value": "c" - } - }, - { - "type": "BracketBlock", - "left": "|", - "right": "|", - "value": { - "type": "CharLiteral", - "value": "d" - } - }, - { - "type": "BracketBlock", - "left": "\\|", - "right": "\\|", - "value": { - "type": "CharLiteral", - "value": "e" - } - }, - { - "type": "BracketBlock", - "left": "⟨", - "right": "⟩", - "value": { - "type": "CharLiteral", - "value": "f" - } - }, - { - "type": "BracketBlock", - "left": "⌊", - "right": "⌋", - "value": { - "type": "CharLiteral", - "value": "g" - } - }, - { - "type": "BracketBlock", - "left": "⌈", - "right": "⌉", - "value": { - "type": "CharLiteral", - "value": "h" - } - }, - { - "type": "BracketBlock", - "left": "┌", - "right": "┐", - "value": { - "type": "CharLiteral", - "value": "i" - } - }, - - //Word doesn't implement it brackets - // { - // "type": "BracketBlock", - // "left": "/", - // "right": "\\", - // "value": { - // "type": "CharLiteral", - // "value": "j" - // } - // } - ] - }, - "Check brackets (a)[b]\\{c\\}|d|\\|e\\|\\langlef\\rangle\\lfloorg\\rfloor\\lceilh\\rceil\\ulcorneri\\urcorner/j\\backslash" - ); - test( - "(2+1]", - { - "type": "LaTeXEquation", - "body": { - "type": "BracketBlock", - "left": "(", - "right": "]", - "value": [ - { - "type": "NumberLiteral", - "value": "2" - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - { - "type": "NumberLiteral", - "value": "1" - } - ] - } - }, - "Check (2+1]" - ); - //Word doesn't support \backslash bracket - // test( - // "\\{2+1\\backslash", - // { - // "type": "LaTeXEquation", - // "body": { - // "type": "BracketBlock", - // "left": "\\{", - // "right": "\\", - // "value": [ - // { - // "type": "NumberLiteral", - // "value": "2" - // }, - // { - // "type": "OperatorLiteral", - // "value": "+" - // }, - // { - // "type": "NumberLiteral", - // "value": "1" - // } - // ] - // } - // }, - // "Check \\{2+1\\backslash" - // ); - test( - "\\left.1+2\\right)", - { - "type": "LaTeXEquation", - "body": { - "type": "BracketBlock", - "left": ".", - "right": ")", - "value": [ - { - "type": "NumberLiteral", - "value": "1" - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - { - "type": "NumberLiteral", - "value": "2" - } - ] - } - }, - "Check \\left.1+2\\right)" - ); - test( - "|2|+\\{1\\}+|2|", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "BracketBlock", - "left": "|", - "right": "|", - "value": { - "type": "NumberLiteral", - "value": "2" - } - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - { - "type": "BracketBlock", - "left": "\\{", - "right": "\\}", - "value": { - "type": "NumberLiteral", - "value": "1" - } - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - { - "type": "BracketBlock", - "left": "|", - "right": "|", - "value": { - "type": "NumberLiteral", - "value": "2" - } - } - ] - }, - "Check |2|+\\{1\\}+|2|" - ); -} -window["AscMath"].brackets = brackets; diff --git a/word/Math/.math-test/LaTeXList/degree-tests.js b/word/Math/.math-test/LaTeXList/degree-tests.js deleted file mode 100644 index 3aaf1478f8..0000000000 --- a/word/Math/.math-test/LaTeXList/degree-tests.js +++ /dev/null @@ -1,605 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function degree(test) { - test( - "2^2", - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "2" - }, - "up": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check 2^2" - ); - test( - "a^b", - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "a" - }, - "up": { - "type": "CharLiteral", - "value": "b" - } - } - }, - "Check a^b" - ); - test( - "a^2", - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "a" - }, - "up": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check a^2" - ); - test( - "2^b", - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "2" - }, - "up": { - "type": "CharLiteral", - "value": "b" - } - } - }, - "Check 2^b" - ); - test( - "2_2", - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "2" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check 2_2" - ); - test( - "a_b", - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "a" - }, - "down": { - "type": "CharLiteral", - "value": "b" - } - } - }, - "Check a_b" - ); - test( - "a_2", - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "a" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check a_2" - ); - test( - "2_b", - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "2" - }, - "down": { - "type": "CharLiteral", - "value": "b" - } - } - }, - "Check 2_b" - ); - test( - `k_{n+1} = n^2 + k_n^2 - k_{n-1}`, - { - "type": "LaTeXEquation", - "body": [ - { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "k" - }, - "down": [ - { - "type": "CharLiteral", - "value": "n" - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - { - "type": "NumberLiteral", - "value": "1" - } - ] - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "n" - }, - "up": { - "type": "NumberLiteral", - "value": "2" - } - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "k" - }, - "up": { - "type": "NumberLiteral", - "value": "2" - }, - "down": { - "type": "CharLiteral", - "value": "n" - } - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "-" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "k" - }, - "down": [ - { - "type": "CharLiteral", - "value": "n" - }, - { - "type": "OperatorLiteral", - "value": "-" - }, - { - "type": "NumberLiteral", - "value": "1" - } - ] - } - ] - }, - "Check k_{n+1} = n^2 + k_n^2 - k_{n-1}" - ); - test( - `\\frac{1}{2}^{2}`, - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - }, - "up": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check \\frac{1}{2}^{2}" - ); - test( - `\\frac{1}{2}_2`, - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check \\frac{1}{2}_2" - ); - test( - `\\frac{1}{2}_2^y`, - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - }, - "up": { - "type": "CharLiteral", - "value": "y" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check \\frac{1}{2}_2^y" - ); - test( - `\\frac{1}{2}_{2}^{y}`, - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - }, - "up": { - "type": "CharLiteral", - "value": "y" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check \\frac{1}{2}_{2}^{y}" - ); - test( - `\\frac{1}{2}_1_2_3_4_5_6_7`, - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "2" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "3" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "4" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "5" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "6" - }, - "down": { - "type": "NumberLiteral", - "value": "7" - } - } - } - } - } - } - } - } - }, - "Check \\frac{1}{2}_1_2_3_4_5_6_7" - ); - test( - `\\frac{1}{2}^1^2^3^4^5^6^7`, - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "1" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "2" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "3" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "4" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "5" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "6" - }, - "up": { - "type": "NumberLiteral", - "value": "7" - } - } - } - } - } - } - } - } - }, - "Check \\frac{1}{2}^1^2^3^4^5^6^7" - ); - test( - `\\frac{1}{2}^1^2^3^4^5^6^7_x`, - { - "type": "LaTeXEquation", - "body": { - "type": "SubSupLiteral", - "value": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "1" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "2" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "3" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "4" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "5" - }, - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "6" - }, - "up": { - "type": "NumberLiteral", - "value": "7" - } - } - } - } - } - } - }, - "down": { - "type": "CharLiteral", - "value": "x" - } - } - }, - "Check \\frac{1}{2}^1^2^3^4^5^6^7_x" - ); -} - -window["AscMath"].degree = degree; diff --git a/word/Math/.math-test/LaTeXList/fraction.js b/word/Math/.math-test/LaTeXList/fraction.js deleted file mode 100644 index 309e0b7a02..0000000000 --- a/word/Math/.math-test/LaTeXList/fraction.js +++ /dev/null @@ -1,233 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function fraction(test) { - test( - `\\frac{1}{2}`, - { - "type": "LaTeXEquation", - "body": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check \\frac{1}{2}" - ); - test( - `\\frac{1+\\frac{x}{y}}{2}`, - { - "type": "LaTeXEquation", - "body": { - "type": "FractionLiteral", - "up": [ - { - "type": "NumberLiteral", - "value": "1" - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - { - "type": "FractionLiteral", - "up": { - "type": "CharLiteral", - "value": "x" - }, - "down": { - "type": "CharLiteral", - "value": "y" - } - } - ], - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check \\frac{1+\\frac{x}{y}}{2}" - ); - test( - `\\frac{1^x}{2_y}`, - { - "type": "LaTeXEquation", - "body": { - "type": "FractionLiteral", - "up": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "1" - }, - "up": { - "type": "CharLiteral", - "value": "x" - } - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "2" - }, - "down": { - "type": "CharLiteral", - "value": "y" - } - } - } - }, - "Check \\frac{1^x}{2_y}" - ); - test( - `\\sum^{2}_{x}4`, - { - "body": { - "down": { - "type": "CharLiteral", - "value": "x" - }, - "third": { - "type": "NumberLiteral", - "value": "4" - }, - "type": "SubSupLiteral", - "up": { - "type": "NumberLiteral", - "value": "2" - }, - "value": { - "type": "opNaryLiteral", - "value": "∑" - } - }, - "type": "LaTeXEquation" - }, - "Check \\sum^{2}_{x}4" - ); - test( - `\\int^2_x{4}`, - { - "body": { - "down": { - "type": "CharLiteral", - "value": "x" - }, - "third": { - "type": "NumberLiteral", - "value": "4" - }, - "type": "SubSupLiteral", - "up": { - "type": "NumberLiteral", - "value": "2" - }, - "value": { - "type": "opNaryLiteral", - "value": "∫" - } - }, - "type": "LaTeXEquation" - }, - "Check \\int^2_x{4}" - ); - test( - `\\binom{1}{2}`, - { - "type": "LaTeXEquation", - "body": { - "type": "BinomLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "Check \\binom{1}{2}" - ); - test( - `\\sum_{i=1}^{10} t_i`, - { - "body": { - "down": [ - { - "type": "CharLiteral", - "value": "i" - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "NumberLiteral", - "value": "1" - } - ], - "third": { - "down": { - "type": "CharLiteral", - "value": "i" - }, - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "t" - } - }, - "type": "SubSupLiteral", - "up": { - "type": "NumberLiteral", - "value": "10" - }, - "value": { - "type": "opNaryLiteral", - "value": "∑" - } - }, - "type": "LaTeXEquation" - }, - "Check \\sum_{i=1}^{10} t_i" - ); -} - -window["AscMath"].fraction = fraction; diff --git a/word/Math/.math-test/LaTeXList/numericFunctions-test.js b/word/Math/.math-test/LaTeXList/numericFunctions-test.js deleted file mode 100644 index b422716cf0..0000000000 --- a/word/Math/.math-test/LaTeXList/numericFunctions-test.js +++ /dev/null @@ -1,908 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function numeric(test) { - test( - "\\exp_a b = a^b, \\exp b = e^b, 10^m, \\exp_{a}^x {b}", - { - "body": [ - { - "down": { - "type": "CharLiteral", - "value": "a" - }, - "third": { - "type": "CharLiteral", - "value": "b" - }, - "type": "SubSupLiteral", - "value": { - "type": "opNaryLiteral", - "value": "\\exp" - } - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "up": { - "type": "CharLiteral", - "value": "b" - }, - "value": { - "type": "CharLiteral", - "value": "a" - } - }, - { - "type": "opDecimal", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "third": { - "type": "CharLiteral", - "value": "b" - }, - "type": "opNaryLiteral", - "value": "\\exp" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "up": { - "type": "CharLiteral", - "value": "b" - }, - "value": { - "type": "CharLiteral", - "value": "e" - } - }, - { - "type": "opDecimal", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "up": { - "type": "CharLiteral", - "value": "m" - }, - "value": { - "type": "NumberLiteral", - "value": "10" - } - }, - { - "type": "opDecimal", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "down": { - "type": "CharLiteral", - "value": "a" - }, - "third": { - "type": "CharLiteral", - "value": "b" - }, - "type": "SubSupLiteral", - "up": { - "type": "CharLiteral", - "value": "x" - }, - "value": { - "type": "opNaryLiteral", - "value": "\\exp" - } - } - ], - "type": "LaTeXEquation" - }, - "Check \\exp_a b = a^b, \\exp b = e^b, 10^m, \\exp_{a}^x {b}" - ); - test( - "\\ln c, \\lg d = \\log e, \\log_{10} f", - { - "body": [ - { - "third": { - "type": "CharLiteral", - "value": "c" - }, - "type": "opNaryLiteral", - "value": "\\ln" - }, - { - "type": "opDecimal", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "third": { - "type": "CharLiteral", - "value": "d" - }, - "type": "opNaryLiteral", - "value": "\\lg" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "third": { - "type": "CharLiteral", - "value": "e" - }, - "type": "opNaryLiteral", - "value": "\\log" - }, - { - "type": "opDecimal", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "down": { - "type": "NumberLiteral", - "value": "10" - }, - "third": { - "type": "CharLiteral", - "value": "f" - }, - "type": "SubSupLiteral", - "value": { - "type": "opNaryLiteral", - "value": "\\log" - } - } - ], - "type": "LaTeXEquation" - }, - "Check \\ln c, \\lg d = \\log e, \\log_{10} f" - ); - test( - "\\sin a, \\cos b, \\tan c, \\cot d, \\sec e, \\csc f, \\cos^2_{y}{b}", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "FunctionLiteral", - "value": "\\sin", - "third": { - "type": "CharLiteral", - "value": "a" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "FunctionLiteral", - "value": "\\cos", - "third": { - "type": "CharLiteral", - "value": "b" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "FunctionLiteral", - "value": "\\tan", - "third": { - "type": "CharLiteral", - "value": "c" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "FunctionLiteral", - "value": "\\cot", - "third": { - "type": "CharLiteral", - "value": "d" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "FunctionLiteral", - "value": "\\sec", - "third": { - "type": "CharLiteral", - "value": "e" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "FunctionLiteral", - "value": "\\csc", - "third": { - "type": "CharLiteral", - "value": "f" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "FunctionLiteral", - "value": "\\cos" - }, - "up": { - "type": "NumberLiteral", - "value": "2" - }, - "down": { - "type": "CharLiteral", - "value": "y" - }, - "third": { - "type": "CharLiteral", - "value": "b" - } - } - ] - }, - "Check \\sin a, \\cos b, \\tan c, \\cot d, \\sec e, \\csc f, \\cos^2_{y}{b}" - ); - test( - "\\arcsin h, \\arccos_x i, \\arctan^y_{x} {j}", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "FunctionLiteral", - "value": "\\arcsin", - "third": { - "type": "CharLiteral", - "value": "h" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "FunctionLiteral", - "value": "\\arccos" - }, - "down": { - "type": "CharLiteral", - "value": "x" - }, - "third": { - "type": "CharLiteral", - "value": "i" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "FunctionLiteral", - "value": "\\arctan" - }, - "up": { - "type": "CharLiteral", - "value": "y" - }, - "down": { - "type": "CharLiteral", - "value": "x" - }, - "third": { - "type": "CharLiteral", - "value": "j" - } - } - ] - }, - "Check \\arcsin h, \\arccos_x i, \\arctan^y_{x} {j}" - ); - test( - "\\sinhk, \\cosh {l}, \\tanh_x^y m, \\coth^{x}_y_1_2 {n}", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "FunctionLiteral", - "value": "\\sinh", - "third": { - "type": "CharLiteral", - "value": "k" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "FunctionLiteral", - "value": "\\cosh", - "third": { - "type": "CharLiteral", - "value": "l" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "FunctionLiteral", - "value": "\\tanh" - }, - "up": { - "type": "CharLiteral", - "value": "y" - }, - "down": { - "type": "CharLiteral", - "value": "x" - }, - "third": { - "type": "CharLiteral", - "value": "m" - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "FunctionLiteral", - "value": "\\coth" - }, - "up": { - "type": "CharLiteral", - "value": "x" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "y" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "NumberLiteral", - "value": "2" - } - } - }, - "third": { - "type": "CharLiteral", - "value": "n" - } - } - ] - }, - "Check \\sinhk, \\cosh {l}, \\tanh_x^y m, \\coth^{x}_y_1_2 {n}" - ); - test( - "\\left\\vert s \\right\\vert", - { - "type": "LaTeXEquation", - "body": { - "type": "BracketBlock", - "left": "∣", - "right": "∣", - "value": [ - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "s" - }, - { - "type": "SpaceLiteral", - "value": " " - } - ] - } - }, - "Check \\left\\vert s \\right\\vert" - ); - test( - "\\min(x,y), \\max(x,y)", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "FunctionLiteral", - "value": "\\min", - "third": { - "type": "BracketBlock", - "left": "(", - "right": ")", - "value": [ - { - "type": "CharLiteral", - "value": "x" - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "CharLiteral", - "value": "y" - } - ] - } - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "FunctionLiteral", - "value": "\\max", - "third": { - "type": "BracketBlock", - "left": "(", - "right": ")", - "value": [ - { - "type": "CharLiteral", - "value": "x" - }, - { - "type": "MathOperatorLiteral", - "value": "," - }, - { - "type": "CharLiteral", - "value": "y" - } - ] - } - } - ] - }, - "Check \\min(x,y), \\max(x,y)" - ); - test( - "0 \\leq \\lim_{n\\to \\infty}\\frac{n!}{(2n)!} \\leq \\lim_{n\\to \\infty} \\frac{n!}{(n!)^2} = \\lim_{k \\to \\infty, k = n!}\\frac{k}{k^2} = \\lim_{k \\to \\infty} \\frac{1}{k} = 0", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "NumberLiteral", - "value": "0" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "≤" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "opNaryLiteral", - "value": "\\lim" - }, - "down": [ - { - "type": "CharLiteral", - "value": "n→" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "∞" - } - ], - "third": { - "type": "FractionLiteral", - "up": { - "type": "CharLiteral", - "value": "n!" - }, - "down": [ - { - "type": "BracketBlock", - "left": "(", - "right": ")", - "value": [ - { - "type": "NumberLiteral", - "value": "2" - }, - { - "type": "CharLiteral", - "value": "n" - } - ] - }, - { - "type": "CharLiteral", - "value": "!" - } - ] - } - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "≤" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "opNaryLiteral", - "value": "\\lim" - }, - "down": [ - { - "type": "CharLiteral", - "value": "n→" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "∞" - } - ], - "third": { - "type": "FractionLiteral", - "up": { - "type": "CharLiteral", - "value": "n!" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "BracketBlock", - "left": "(", - "right": ")", - "value": { - "type": "CharLiteral", - "value": "n!" - } - }, - "up": { - "type": "NumberLiteral", - "value": "2" - } - } - } - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "opNaryLiteral", - "value": "\\lim" - }, - "down": [ - { - "type": "CharLiteral", - "value": "k" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "→" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "∞" - }, - { - "type": "opDecimal", - "value": "," - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "k" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "n!" - } - ], - "third": { - "type": "FractionLiteral", - "up": { - "type": "CharLiteral", - "value": "k" - }, - "down": { - "type": "SubSupLiteral", - "value": { - "type": "CharLiteral", - "value": "k" - }, - "up": { - "type": "NumberLiteral", - "value": "2" - } - } - } - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "SubSupLiteral", - "value": { - "type": "opNaryLiteral", - "value": "\\lim" - }, - "down": [ - { - "type": "CharLiteral", - "value": "k" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "→" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "CharLiteral", - "value": "∞" - } - ], - "third": { - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - }, - "down": { - "type": "CharLiteral", - "value": "k" - } - } - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "OperatorLiteral", - "value": "=" - }, - { - "type": "SpaceLiteral", - "value": " " - }, - { - "type": "NumberLiteral", - "value": "0" - } - ] - }, - "Check: 0 \\leq \\lim_{n\\to \\infty}\\frac{n!}{(2n)!} \\leq \\lim_{n\\to \\infty} \\frac{n!}{(n!)^2} = \\lim_{k \\to \\infty, k = n!}\\frac{k}{k^2} = \\lim_{k \\to \\infty} \\frac{1}{k} = 0" - ); -} -window["AscMath"].numericFunctions = numeric; diff --git a/word/Math/.math-test/LaTeXList/sqrt-tests.js b/word/Math/.math-test/LaTeXList/sqrt-tests.js deleted file mode 100644 index 8595760a23..0000000000 --- a/word/Math/.math-test/LaTeXList/sqrt-tests.js +++ /dev/null @@ -1,143 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function sqrt(test) { - test( - "\\sqrt5", - { - "body": { - "type": "SqrtLiteral", - "value": { - "type": "NumberLiteral", - "value": "5" - } - }, - "type": "LaTeXEquation" - }, - "Check \\sqrt5" - ); - test( - "\\sqrt\\frac{1}{2}", - { - "body": { - "type": "SqrtLiteral", - "value": { - "down": { - "type": "NumberLiteral", - "value": "2" - }, - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - } - } - }, - "type": "LaTeXEquation" - }, - "Check \\sqrt\\frac{1}{2}" - ); - test( - "\\sqrt[2^2]\\frac{1}{2}", - { - "body": { - "index": { - "type": "SubSupLiteral", - "up": { - "type": "NumberLiteral", - "value": "2" - }, - "value": { - "type": "NumberLiteral", - "value": "2" - } - }, - "type": "SqrtLiteral", - "value": { - "down": { - "type": "NumberLiteral", - "value": "2" - }, - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - } - } - }, - "type": "LaTeXEquation" - }, - "Check \\sqrt[2^2]\\frac{1}{2}" - ); - test( - "\\sqrt[2^2] {\\frac{1}{2}+3}", - { - "body": { - "index": { - "type": "SubSupLiteral", - "up": { - "type": "NumberLiteral", - "value": "2" - }, - "value": { - "type": "NumberLiteral", - "value": "2" - } - }, - "type": "SqrtLiteral", - "value": [ - { - "down": { - "type": "NumberLiteral", - "value": "2" - }, - "type": "FractionLiteral", - "up": { - "type": "NumberLiteral", - "value": "1" - } - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - { - "type": "NumberLiteral", - "value": "3" - } - ] - }, - "type": "LaTeXEquation" - }, - "Check \\sqrt[2^2] {\\frac{1}{2}+3}" - ); -} -window["AscMath"].sqrt = sqrt; diff --git a/word/Math/.math-test/LaTeXList/style-test.js b/word/Math/.math-test/LaTeXList/style-test.js deleted file mode 100644 index a1fefdad7e..0000000000 --- a/word/Math/.math-test/LaTeXList/style-test.js +++ /dev/null @@ -1,1019 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function style(test) { - test( - "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\double{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "CharLiteral", - "value": "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM" - }, - { - "type": "NumberLiteral", - "value": "1234567890" - }, - { - "type": "MathFontLiteral", - "fontValue": 12, - "value": [ - { - "type": "CharLiteral", - "value": "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM" - }, - { - "type": "NumberLiteral", - "value": "1234567890" - } - ] - }, - { - "type": "CharLiteral", - "value": "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM" - }, - { - "type": "NumberLiteral", - "value": "1234567890" - } - ] - }, - "Check ...\\double{...}..." - ); - test( - "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\fraktur{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - { - "type": "LaTeXEquation", - "body": [ - { - "type": "CharLiteral", - "value": "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM" - }, - { - "type": "NumberLiteral", - "value": "1234567890" - }, - { - "type": "MathFontLiteral", - "fontValue": 9, - "value": [ - { - "type": "CharLiteral", - "value": "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM" - }, - { - "type": "NumberLiteral", - "value": "1234567890" - } - ] - }, - { - "type": "CharLiteral", - "value": "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM" - }, - { - "type": "NumberLiteral", - "value": "1234567890" - } - ] - }, - "Check ...\\fraktur{...}..." - ); - test( - "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\script{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - { - body: [ - { - CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - }, - { - NumberLiteral: "1234567890", - }, - { - fontValue: 7, - type: "FontStyleLiteral", - value: [ - { - CharLiteral: - "𝓆𝓌ℯ𝓇𝓉𝓎𝓊𝒾ℴ𝓅𝒶𝓈𝒹𝒻ℊ𝒽𝒿𝓀𝓁𝓏𝓍𝒸𝓋𝒷𝓃𝓂𝒬𝒲ℰℛ𝒯𝒴𝒰ℐ𝒪𝒫𝒜𝒮𝒟ℱ𝒢ℋ𝒥𝒦ℒ𝒵𝒳𝒞𝒱ℬ𝒩ℳ", - }, - { - NumberLiteral: "1234567890", - }, - ], - }, - { - CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - }, - { - NumberLiteral: "1234567890", - }, - ], - type: "LaTeXEquation", - }, - "Check ...\\script{...}..." - ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\it{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 1, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝑞𝑤𝑒𝑟𝑡𝑦𝑢𝑖𝑜𝑝𝑎𝑠𝑑𝑓𝑔ℎ𝑗𝑘𝑙𝑧𝑥𝑐𝑣𝑏𝑛𝑚𝑄𝑊𝐸𝑅𝑇𝑌𝑈𝐼𝑂𝑃𝐴𝑆𝐷𝐹𝐺𝐻𝐽𝐾𝐿𝑍𝑋𝐶𝑉𝐵𝑁𝑀", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\it{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathbb{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 12, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝕢𝕨𝕖𝕣𝕥𝕪𝕦𝕚𝕠𝕡𝕒𝕤𝕕𝕗𝕘𝕙𝕛𝕜𝕝𝕫𝕩𝕔𝕧𝕓𝕟𝕞ℚ𝕎𝔼ℝ𝕋𝕐𝕌𝕀𝕆ℙ𝔸𝕊𝔻𝔽𝔾ℍ𝕁𝕂𝕃ℤ𝕏ℂ𝕍𝔹ℕ𝕄", - // }, - // { - // NumberLiteral: "𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡𝟘", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathbb{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathbf{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 0, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝐪𝐰𝐞𝐫𝐭𝐲𝐮𝐢𝐨𝐩𝐚𝐬𝐝𝐟𝐠𝐡𝐣𝐤𝐥𝐳𝐱𝐜𝐯𝐛𝐧𝐦𝐐𝐖𝐄𝐑𝐓𝐘𝐔𝐈𝐎𝐏𝐀𝐒𝐃𝐅𝐆𝐇𝐉𝐊𝐋𝐙𝐗𝐂𝐕𝐁𝐍𝐌", - // }, - // { - // NumberLiteral: "𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗𝟎", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathbf{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathcal{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 7, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝓆𝓌ℯ𝓇𝓉𝓎𝓊𝒾ℴ𝓅𝒶𝓈𝒹𝒻ℊ𝒽𝒿𝓀𝓁𝓏𝓍𝒸𝓋𝒷𝓃𝓂𝒬𝒲ℰℛ𝒯𝒴𝒰ℐ𝒪𝒫𝒜𝒮𝒟ℱ𝒢ℋ𝒥𝒦ℒ𝒵𝒳𝒞𝒱ℬ𝒩ℳ", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathcal{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathfrak{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 9, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝔮𝔴𝔢𝔯𝔱𝔶𝔲𝔦𝔬𝔭𝔞𝔰𝔡𝔣𝔤𝔥𝔧𝔨𝔩𝔷𝔵𝔠𝔳𝔟𝔫𝔪𝔔𝔚𝔈ℜ𝔗𝔜𝔘ℑ𝔒𝔓𝔄𝔖𝔇𝔉𝔊ℌ𝔍𝔎𝔏ℨ𝔛ℭ𝔙𝔅𝔑𝔐", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathfrak{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathit{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 1, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝑞𝑤𝑒𝑟𝑡𝑦𝑢𝑖𝑜𝑝𝑎𝑠𝑑𝑓𝑔ℎ𝑗𝑘𝑙𝑧𝑥𝑐𝑣𝑏𝑛𝑚𝑄𝑊𝐸𝑅𝑇𝑌𝑈𝐼𝑂𝑃𝐴𝑆𝐷𝐹𝐺𝐻𝐽𝐾𝐿𝑍𝑋𝐶𝑉𝐵𝑁𝑀", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathit{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathsf{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 3, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝗊𝗐𝖾𝗋𝗍𝗒𝗎𝗂𝗈𝗉𝖺𝗌𝖽𝖿𝗀𝗁𝗃𝗄𝗅𝗓𝗑𝖼𝗏𝖻𝗇𝗆𝖰𝖶𝖤𝖱𝖳𝖸𝖴𝖨𝖮𝖯𝖠𝖲𝖣𝖥𝖦𝖧𝖩𝖪𝖫𝖹𝖷𝖢𝖵𝖡𝖭𝖬", - // }, - // { - // NumberLiteral: "𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫𝟢", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathsf{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathtt{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 11, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝚚𝚠𝚎𝚛𝚝𝚢𝚞𝚒𝚘𝚙𝚊𝚜𝚍𝚏𝚐𝚑𝚓𝚔𝚕𝚣𝚡𝚌𝚟𝚋𝚗𝚖𝚀𝚆𝙴𝚁𝚃𝚈𝚄𝙸𝙾𝙿𝙰𝚂𝙳𝙵𝙶𝙷𝙹𝙺𝙻𝚉𝚇𝙲𝚅𝙱𝙽𝙼", - // }, - // { - // NumberLiteral: "𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿𝟶", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathtt{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mit{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 1, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝑞𝑤𝑒𝑟𝑡𝑦𝑢𝑖𝑜𝑝𝑎𝑠𝑑𝑓𝑔ℎ𝑗𝑘𝑙𝑧𝑥𝑐𝑣𝑏𝑛𝑚𝑄𝑊𝐸𝑅𝑇𝑌𝑈𝐼𝑂𝑃𝐴𝑆𝐷𝐹𝐺𝐻𝐽𝐾𝐿𝑍𝑋𝐶𝑉𝐵𝑁𝑀", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mit{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\oldstyle{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 7, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝓆𝓌ℯ𝓇𝓉𝓎𝓊𝒾ℴ𝓅𝒶𝓈𝒹𝒻ℊ𝒽𝒿𝓀𝓁𝓏𝓍𝒸𝓋𝒷𝓃𝓂𝒬𝒲ℰℛ𝒯𝒴𝒰ℐ𝒪𝒫𝒜𝒮𝒟ℱ𝒢ℋ𝒥𝒦ℒ𝒵𝒳𝒞𝒱ℬ𝒩ℳ", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\oldstyle{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\sf{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 3, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝗊𝗐𝖾𝗋𝗍𝗒𝗎𝗂𝗈𝗉𝖺𝗌𝖽𝖿𝗀𝗁𝗃𝗄𝗅𝗓𝗑𝖼𝗏𝖻𝗇𝗆𝖰𝖶𝖤𝖱𝖳𝖸𝖴𝖨𝖮𝖯𝖠𝖲𝖣𝖥𝖦𝖧𝖩𝖪𝖫𝖹𝖷𝖢𝖵𝖡𝖭𝖬", - // }, - // { - // NumberLiteral: "𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫𝟢", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\sf{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathbfit{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 2, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝒒𝒘𝒆𝒓𝒕𝒚𝒖𝒊𝒐𝒑𝒂𝒔𝒅𝒇𝒈𝒉𝒋𝒌𝒍𝒛𝒙𝒄𝒗𝒃𝒏𝒎𝑸𝑾𝑬𝑹𝑻𝒀𝑼𝑰𝑶𝑷𝑨𝑺𝑫𝑭𝑮𝑯𝑱𝑲𝑳𝒁𝑿𝑪𝑽𝑩𝑵𝑴", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathbfit{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathsfbfit{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 6, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝙦𝙬𝙚𝙧𝙩𝙮𝙪𝙞𝙤𝙥𝙖𝙨𝙙𝙛𝙜𝙝𝙟𝙠𝙡𝙯𝙭𝙘𝙫𝙗𝙣𝙢𝙌𝙒𝙀𝙍𝙏𝙔𝙐𝙄𝙊𝙋𝘼𝙎𝘿𝙁𝙂𝙃𝙅𝙆𝙇𝙕𝙓𝘾𝙑𝘽𝙉𝙈", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathsfbfit{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathsfbf{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 4, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝗾𝘄𝗲𝗿𝘁𝘆𝘂𝗶𝗼𝗽𝗮𝘀𝗱𝗳𝗴𝗵𝗷𝗸𝗹𝘇𝘅𝗰𝘃𝗯𝗻𝗺𝗤𝗪𝗘𝗥𝗧𝗬𝗨𝗜𝗢𝗣𝗔𝗦𝗗𝗙𝗚𝗛𝗝𝗞𝗟𝗭𝗫𝗖𝗩𝗕𝗡𝗠", - // }, - // { - // NumberLiteral: "𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵𝟬", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathsfbf{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathsfit{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 5, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝘲𝘸𝘦𝘳𝘵𝘺𝘶𝘪𝘰𝘱𝘢𝘴𝘥𝘧𝘨𝘩𝘫𝘬𝘭𝘻𝘹𝘤𝘷𝘣𝘯𝘮𝘘𝘞𝘌𝘙𝘛𝘠𝘜𝘐𝘖𝘗𝘈𝘚𝘋𝘍𝘎𝘏𝘑𝘒𝘓𝘡𝘟𝘊𝘝𝘉𝘕𝘔", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathsfit{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathbfcal{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 8, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝓺𝔀𝓮𝓻𝓽𝔂𝓾𝓲𝓸𝓹𝓪𝓼𝓭𝓯𝓰𝓱𝓳𝓴𝓵𝔃𝔁𝓬𝓿𝓫𝓷𝓶𝓠𝓦𝓔𝓡𝓣𝓨𝓤𝓘𝓞𝓟𝓐𝓢𝓓𝓕𝓖𝓗𝓙𝓚𝓛𝓩𝓧𝓒𝓥𝓑𝓝𝓜", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathbfcal{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\frak{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 9, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝔮𝔴𝔢𝔯𝔱𝔶𝔲𝔦𝔬𝔭𝔞𝔰𝔡𝔣𝔤𝔥𝔧𝔨𝔩𝔷𝔵𝔠𝔳𝔟𝔫𝔪𝔔𝔚𝔈ℜ𝔗𝔜𝔘ℑ𝔒𝔓𝔄𝔖𝔇𝔉𝔊ℌ𝔍𝔎𝔏ℨ𝔛ℭ𝔙𝔅𝔑𝔐", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\frak{...}..." - // ); - // test( - // "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890\\mathbffrak{qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890}qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890", - // { - // body: [ - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // { - // fontValue: 10, - // type: "FontStyleLiteral", - // value: [ - // { - // CharLiteral: - // "𝖖𝖜𝖊𝖗𝖙𝖞𝖚𝖎𝖔𝖕𝖆𝖘𝖉𝖋𝖌𝖍𝖏𝖐𝖑𝖟𝖝𝖈𝖛𝖇𝖓𝖒𝕼𝖂𝕰𝕽𝕿𝖄𝖀𝕴𝕺𝕻𝕬𝕾𝕯𝕱𝕲𝕳𝕵𝕶𝕷𝖅𝖃𝕮𝖁𝕭𝕹𝕸", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // }, - // { - // CharLiteral: "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", - // }, - // { - // NumberLiteral: "1234567890", - // }, - // ], - // type: "LaTeXEquation", - // }, - // "Check ...\\mathbffrak{...}..." - // ); - - test( - "\\doubleAB", - { - body: [ - { - fontValue: 12, - type: "FontStyleLiteral", - value: { - CharLiteral: "𝔸", - }, - }, - { - CharLiteral: "B", - }, - ], - type: "LaTeXEquation", - }, - "Check \\doubleA" - ); - test( - "\\frakturAB", - { - body: [ - { - fontValue: 9, - type: "FontStyleLiteral", - value: { - CharLiteral: "𝔄", - }, - }, - { - CharLiteral: "B", - }, - ], - type: "LaTeXEquation", - }, - "Check \\frakturA" - ); - test( - "\\fraktur AB", - { - body: [ - { - fontValue: 9, - type: "FontStyleLiteral", - value: { - CharLiteral: "𝔄", - }, - }, - { - CharLiteral: "B", - }, - ], - type: "LaTeXEquation", - }, - "Check \\frakturA" - ); - - test( - "\\dd", - { - body: { - CharLiteral: "𝑑", - }, - type: "LaTeXEquation", - }, - "Check \\dd" - ); - test( - "\\Dd", - { - body: { - CharLiteral: "𝐷", - }, - type: "LaTeXEquation", - }, - "Check \\Dd" - ); - test( - "\\ee", - { - body: { - CharLiteral: "𝑒", - }, - type: "LaTeXEquation", - }, - "Check \\ee" - ); - test( - "\\hbar", - { - body: { - CharLiteral: "ℏ", - }, - type: "LaTeXEquation", - }, - "Check \\hbar" - ); - test( - "\\ii", - { - body: { - CharLiteral: "𝑖", - }, - type: "LaTeXEquation", - }, - "Check \\ii" - ); - test( - "\\Im", - { - body: { - CharLiteral: "𝕴", - }, - type: "LaTeXEquation", - }, - "Check \\Im" - ); - test( - "\\imath", - { - body: { - CharLiteral: "𝚤", - }, - type: "LaTeXEquation", - }, - "Check \\imath" - ); - test( - "\\j", - { - body: { - CharLiteral: "𝐽𝑎𝑦", - }, - type: "LaTeXEquation", - }, - "Check \\j" - ); - test( - "\\jj", - { - body: { - CharLiteral: "𝑗", - }, - type: "LaTeXEquation", - }, - "Check \\jj" - ); - test( - "\\jmath", - { - body: { - CharLiteral: "𝐽", - }, - type: "LaTeXEquation", - }, - "Check \\jmath" - ); - test( - "\\partial", - { - body: { - CharLiteral: "∂", - }, - type: "LaTeXEquation", - }, - "Check \\partial" - ); - test( - "\\Re", - { - body: { - CharLiteral: "ℜ", - }, - type: "LaTeXEquation", - }, - "Check \\Re" - ); - test( - "\\wp", - { - body: { - CharLiteral: "℘", - }, - type: "LaTeXEquation", - }, - "Check \\wp" - ); - test( - "\\aleph", - { - body: { - CharLiteral: "ℵ", - }, - type: "LaTeXEquation", - }, - "Check \\aleph" - ); - test( - "\\bet", - { - body: { - CharLiteral: "ℶ", - }, - type: "LaTeXEquation", - }, - "Check \\bet" - ); - test( - "\\beth", - { - body: { - CharLiteral: "ℶ", - }, - type: "LaTeXEquation", - }, - "Check \\beth" - ); - test( - "\\gimel", - { - body: { - CharLiteral: "ℷ", - }, - type: "LaTeXEquation", - }, - "Check \\gimel" - ); - test( - "\\dalet", - { - body: { - CharLiteral: "ℸ", - }, - type: "LaTeXEquation", - }, - "Check \\dalet" - ); - test( - "\\daleth", - { - body: { - CharLiteral: "ℸ", - }, - type: "LaTeXEquation", - }, - "Check \\daleth" - ); - - test( - "\\alpha", - { - body: { - CharLiteral: "α", - }, - type: "LaTeXEquation", - }, - "Check \\alpha" - ); -} - -window["AscMath"].style = style; diff --git a/word/Math/.math-test/RunLaTeXTest.js b/word/Math/.math-test/RunLaTeXTest.js deleted file mode 100644 index e883f56290..0000000000 --- a/word/Math/.math-test/RunLaTeXTest.js +++ /dev/null @@ -1,80 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -import "./node.js"; -import "../NamesOfLiterals.js"; -import "../LaTeXParser.js"; -import "./LaTeXList/fraction.js"; -import "./LaTeXList/degree-tests.js"; -import "./LaTeXList/brackets-test.js"; -import "./LaTeXList/accents-tests.js"; -import "./LaTeXList/numericFunctions-test.js"; -import "./LaTeXList/sqrt-tests.js"; -import "./LaTeXList/style-test.js"; -import { assert } from "chai"; - -const parser = window.AscMath.ConvertLaTeXToTokensList; -const accent = window.AscMath.accents; -const fraction = window.AscMath.fraction; -const degree = window.AscMath.degree; -const brackets = window.AscMath.brackets; -const numericFunctions = window.AscMath.numericFunctions; -const sqrt = window.AscMath.sqrt; -const style = window.AscMath.style; - -describe("Сhecking the health of fractions", function () { - fraction(test); -}); -describe("Сhecking the health of degrees and indexes", function () { - degree(test); -}); -describe("Сhecking the health of brackets", function () { - brackets(test); -}); -describe("Сhecking accents", function () { - accent(test); -}); -describe("Сhecking standard numerical functions", function () { - numericFunctions(test); -}); -describe("Сhecking radical functions", function () { - sqrt(test); -}); -describe("Сhecking math fonts", function () { - style(test); -}); - -function test(program, expected, description = "Без описания") { - it(description, function () { - const ast = parser(program, undefined, true); - assert.deepEqual(ast, expected); - }); -} diff --git a/word/Math/.math-test/RunLaTeXTests.html b/word/Math/.math-test/RunLaTeXTests.html deleted file mode 100644 index 027f83df90..0000000000 --- a/word/Math/.math-test/RunLaTeXTests.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - Mocha Tests - - - - - - -
                        - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/word/Math/.math-test/RunUnicodeTests.html b/word/Math/.math-test/RunUnicodeTests.html deleted file mode 100644 index 3da491a27f..0000000000 --- a/word/Math/.math-test/RunUnicodeTests.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - Mocha Tests - - - - - - -
                        - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/word/Math/.math-test/RunUnicodeTests.js b/word/Math/.math-test/RunUnicodeTests.js deleted file mode 100644 index 0d4c893d49..0000000000 --- a/word/Math/.math-test/RunUnicodeTests.js +++ /dev/null @@ -1,191 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -import "./node.js"; -import "../NamesOfLiterals.js"; -import "../UnicodeParser.js"; -import "./UnicodeTestsList/sqrt-tests.js"; -import "./UnicodeTestsList/box-tests.js"; -import "./UnicodeTestsList/brackets-test.js"; -import "./UnicodeTestsList/fraction-test.js"; -import "./UnicodeTestsList/literal-tests.js"; -import "./UnicodeTestsList/aboveAndBelow-test.js"; -import "./UnicodeTestsList/complex-stuff.js"; -import "./UnicodeTestsList/hbrack-tests.js"; -import "./UnicodeTestsList/script-tests.js"; -import "./UnicodeTestsList/special_scripts-tests.js"; -import { assert } from "chai"; - -const parser = window.AscMath.CUnicodeConverter; - -const sqrt = window.AscMath.sqrt; -const box = window.AscMath.box; -const bracket = window.AscMath.bracket; -const fraction = window.AscMath.fraction; -const literal = window.AscMath.literal; -const aboveBelow = window.AscMath.aboveBelow; -const complex = window.AscMath.complex; -const hbrack = window.AscMath.hbrack; -const script = window.AscMath.script; -const special = window.AscMath.special; - -// const CUnicodeConverter = eval(text) -// const assert = require("chai").assert; -// -// // const arr = [ -// // "∑", -// // "⅀", -// // "⨊", -// // "∏", -// // "∐", -// // "⨋", -// // "∫", -// // "∬", -// // "∭", -// // "⨌", -// // "∮", -// // "∯", -// // "∰", -// // "∱", -// // "⨑", -// // "∲", -// // "∳", -// // "⨍", -// // "⨎", -// // "⨏", -// // "⨕", -// // "⨖", -// // "⨗", -// // "⨘", -// // "⨙", -// // "⨚", -// // "⨛", -// // "⨜", -// // "⨒", -// // "⨓", -// // "⨔", -// // "⋀", -// // "⋁", -// // "⋂", -// // "⋃", -// // "⨃", -// // "⨄", -// // "⨅", -// // "⨆", -// // "⨀", -// // "⨁", -// // "⨂", -// // "⨉", -// // "⫿", -// // "(", -// // "[", -// // "{", -// // "〈", -// // ")", -// // "]", -// // "}", -// // "〉", -// // "├", -// // "┤", -// // "┬", -// // "┴", -// // "▁", -// // "¯", -// // "▭", -// // "□", -// // "&", -// // "▒", -// // "^", -// // "_", -// // "¦", -// // "√", -// // "∛", -// // "∜", -// // "⊘", -// // "/", -// // ",", -// // ".", -// // "⏜", -// // "⏝", -// // "⎴", -// // "⎵", -// // "⏞", -// // "⏟", -// // "⏠", -// // "⏡", -// // "&", -// // "■", -// // ]; -// // -// // describe("Проверка литералов из операторов", function () { -// // arr.forEach((literal) => li_test("\\" + literal)); -// // }); -// -describe("Проверка работоспособности простых литералов", function () { - literal(test); -}); -describe("Проверка работоспособности деления", function () { - fraction(test); -}); -describe("Проверка работоспособности радикалов", function () { - sqrt(test); -}); -describe("Проверка работоспособности скриптов", function () { - script(test); -}); -describe("Проверка работоспособности below/above", function () { - aboveBelow(test); -}); -describe("Проверка работоспособности hBrack", function () { - hbrack(test); -}); -describe("Проверка работоспособности скобок", function () { - bracket(test); -}); -describe("Проверка работоспособности комплексных выражений", function () { - complex(test); -}); -describe("Проверка box", function () { - box(test); -}); -describe("Проверка special_scripts", function () { - special(test); -}); - -function test(program, expected, description = "Без описания") { - it(description, function () { - const ast = parser(program, undefined, true); - assert.deepEqual( - ast, - expected - ); - }); -} diff --git a/word/Math/.math-test/UnicodeTestsList/aboveAndBelow-test.js b/word/Math/.math-test/UnicodeTestsList/aboveAndBelow-test.js deleted file mode 100644 index 9dafc9e9bd..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/aboveAndBelow-test.js +++ /dev/null @@ -1,766 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function testsAboveBelow(test) { - test( - `base┴2+2`, - { - body: [ - { - base: { - type: "CharLiteral", - value: "base" - }, - down: undefined, - type: "expAbove", - up: [ - { - type: "NumberLiteral", - value: "2" - } - ] - }, - { - type: "OperatorLiteral", - value: "+" - }, - [ - { - type: "NumberLiteral", - value: "2" - } - ] - ], - type: "UnicodeEquation" - }, - "Check base┴2+2" - ); - test( - `base┴2┴x+2`, - { - "body": [ - { - "base": { - "type": "CharLiteral", - "value": "base" - }, - "down": undefined, - "type": "expAbove", - "up": { - "base": [ - { - "type": "NumberLiteral", - "value": "2" - } - ], - "down": undefined, - "type": "expAbove", - "up": { - "type": "CharLiteral", - "value": "x" - } - } - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - [ - { - "type": "NumberLiteral", - "value": "2" - } - ] - ], - "type": "UnicodeEquation" - }, - "Check base┴2┴x+2" - ); - test( - `base┴2┴(x/y+6)+2`, - { - "body": [ - { - "base": { - "type": "CharLiteral", - "value": "base" - }, - "down": undefined, - "type": "expAbove", - "up": { - "base": [ - { - "type": "NumberLiteral", - "value": "2" - } - ], - "down": undefined, - "type": "expAbove", - "up": { - "close": ")", - "exp": [ - { - "down": { - "type": "CharLiteral", - "value": "y" - }, - "type": "FractionLiteral", - "up": { - "type": "CharLiteral", - "value": "x" - } - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - [ - { - "type": "NumberLiteral", - "value": "6" - } - ] - ], - "open": "(", - "type": "expBracketLiteral" - } - } - }, - { - "type": "OperatorLiteral", - "value": "+" - }, - [ - { - "type": "NumberLiteral", - "value": "2" - } - ] - ], - "type": "UnicodeEquation" - }, - "Check base┴2┴(x/y+6)+2" - ); - test( - `x^23┴2/y`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "expSuperscript", - base: { - CharLiteral: "x", - }, - up: { - type: "soperandLiteral", - operand: { - type: "expAbove", - base: [ - { - NumberLiteral: "23", - }, - ], - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - opOver: "/", - down: { - CharLiteral: "y", - }, - }, - }, - "Check x^23┴2/y" - ); - test( - `(x^23)┴2/y`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "expAbove", - base: { - type: "expBracketLiteral", - exp: { - type: "expSuperscript", - base: { - CharLiteral: "x", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "23", - }, - }, - }, - open: "(", - close: ")", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - opOver: "/", - down: { - CharLiteral: "y", - }, - }, - }, - "Check (x^23)┴2/y" - ); - - test( - `4┴2+2`, - { - type: "UnicodeEquation", - body: [ - { - type: "expAbove", - base: [ - { - NumberLiteral: "4", - }, - ], - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - }, - "Check 4┴2+2" - ); - test( - `base┴exp*xz`, - { - type: "UnicodeEquation", - body: [ - { - type: "expAbove", - base: { - CharLiteral: "base", - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "exp", - }, - }, - }, - { - Operator: "*", - }, - { - CharLiteral: "xz", - }, - ], - }, - "Check base┴exp*xz" - ); - test( - `2┴exp-p`, - { - type: "UnicodeEquation", - body: [ - { - type: "expAbove", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "exp", - }, - }, - }, - { - Operator: "-", - }, - { - CharLiteral: "p", - }, - ], - }, - "Check 2┴exp-p" - ); - test( - `base┬2*x`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBelow", - base: { - CharLiteral: "base", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - Operator: "*", - }, - { - CharLiteral: "x", - }, - ], - }, - "Check base┬2*x" - ); - test( - `4┬2+x/y`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBelow", - base: [ - { - NumberLiteral: "4", - }, - ], - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - Operator: "+", - }, - { - type: "fractionLiteral", - up: { - CharLiteral: "x", - }, - opOver: "/", - down: { - CharLiteral: "y", - }, - }, - ], - }, - "Check 4┬2+x/y" - ); - test( - `base┬exp*x^2`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBelow", - base: { - CharLiteral: "base", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "exp", - }, - }, - }, - { - Operator: "*", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "x", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - ], - }, - "Check base┬exp*x^2" - ); - test( - `2┬exp-x_i`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBelow", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "exp", - }, - }, - }, - { - Operator: "-", - }, - { - type: "expSubscript", - base: { - CharLiteral: "x", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "i", - }, - }, - }, - ], - }, - "Check 2┬exp-x_i" - ); - test( - `2┬(exp+2)+(2+1)`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBelow", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "exp", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - }, - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - NumberLiteral: "1", - }, - ], - open: "(", - close: ")", - }, - ], - }, - "Check 2┬(exp+2)+(2+1)" - ); - test( - `2┬(exp+2+x/2)^2 - 1`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBelow", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - type: "expSuperscript", - base: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "exp", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - type: "fractionLiteral", - up: { - CharLiteral: "x", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - ], - open: "(", - close: ")", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "-", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - NumberLiteral: "1", - }, - ], - }, - "Check 2┬(exp+2+x/2)^2 - 1" - ); - test( - `(2+x)┬exp`, - { - type: "UnicodeEquation", - body: { - type: "expBelow", - base: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - CharLiteral: "x", - }, - ], - open: "(", - close: ")", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "exp", - }, - }, - }, - }, - "Check `(2+x)┬exp`" - ); - test( - `(2+y)┬(exp+2+x/2)`, - { - type: "UnicodeEquation", - body: { - type: "expBelow", - base: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - CharLiteral: "y", - }, - ], - open: "(", - close: ")", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "exp", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - type: "fractionLiteral", - up: { - CharLiteral: "x", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - ], - open: "(", - close: ")", - }, - }, - }, - }, - "Check `(2+y)┬(exp+2+x/2)`" - ); - test( - `(2+y^2)┬(exp_3+2+x/2)`, - { - type: "UnicodeEquation", - body: { - type: "expBelow", - base: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "y", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - ], - open: "(", - close: ")", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - type: "expSubscript", - base: { - CharLiteral: "exp", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "3", - }, - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - type: "fractionLiteral", - up: { - CharLiteral: "x", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - ], - open: "(", - close: ")", - }, - }, - }, - }, - "Check `(2+y^2)┬(exp_3+2+x/2)`" - ); -} -window["AscMath"].aboveBelow = testsAboveBelow; diff --git a/word/Math/.math-test/UnicodeTestsList/box-tests.js b/word/Math/.math-test/UnicodeTestsList/box-tests.js deleted file mode 100644 index 429a9450a8..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/box-tests.js +++ /dev/null @@ -1,314 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function boxTests(test) { - test( - `□(1+2)`, - { - type: "UnicodeEquation", - body: { - type: "boxLiteral", - value: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка box: □(1+2)" - ); - test( - `□(1+2)`, - { - type: "UnicodeEquation", - body: { - type: "boxLiteral", - value: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка box: □(1+2)" - ); - test( - `□1`, - { - type: "UnicodeEquation", - body: { - type: "boxLiteral", - value: { - NumberLiteral: "1", - }, - }, - }, - "Проверка box: □1" - ); - test( - `□1/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "boxLiteral", - value: { - NumberLiteral: "1", - }, - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Проверка box: □1/2" - ); - test( - `▭(1+2)`, - { - type: "UnicodeEquation", - body: { - type: "rectLiteral", - value: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка rect: ▭(1+2)" - ); - test( - `▭1`, - { - type: "UnicodeEquation", - body: { - type: "rectLiteral", - value: { - NumberLiteral: "1", - }, - }, - }, - "Проверка rect: ▭1" - ); - test( - `▭1/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "rectLiteral", - value: { - NumberLiteral: "1", - }, - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Проверка rect: ▭1/2" - ); - test( - `▁(1+2)`, - { - type: "UnicodeEquation", - body: { - type: "underbarLiteral", - value: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка underbar: ▁(1+2)" - ); - - test( - `▁1`, - { - type: "UnicodeEquation", - body: { - type: "underbarLiteral", - value: { - NumberLiteral: "1", - }, - }, - }, - "Проверка underbar: ▁1" - ); - test( - `▁1/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "underbarLiteral", - value: { - NumberLiteral: "1", - }, - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Проверка underbar: ▁1/2" - ); - test( - ` ̄(1+2)`.trim(), - { - type: "UnicodeEquation", - body: { - type: "overbarLiteral", - value: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка underbar: ̄(1+2)" - ); - - test( - ` ̄1`.trim(), - { - type: "UnicodeEquation", - body: { - type: "overbarLiteral", - value: { - NumberLiteral: "1", - }, - }, - }, - "Проверка underbar: ̄1" - ); - test( - `(1+2)̂`.trim(), - { - "type": "UnicodeEquation", - "body": { - "type": "DiacriticLiteral", - "base": { - "type": "expBracketLiteral", - "exp": [ - [ - { - "type": "NumberLiteral", - "value": "1" - } - ], - { - "type": "OperatorLiteral", - "value": "+" - }, - [ - { - "type": "NumberLiteral", - "value": "2" - } - ] - ], - "open": "(", - "close": ")" - }, - "value": "̂" - } - }, - "Проверка underbar: (1+2)̂" - ); -} - -window["AscMath"].box = boxTests; - diff --git a/word/Math/.math-test/UnicodeTestsList/brackets-test.js b/word/Math/.math-test/UnicodeTestsList/brackets-test.js deleted file mode 100644 index ed2dfc8e7d..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/brackets-test.js +++ /dev/null @@ -1,739 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function bracketsTests(test) { - test( - `(1+2)+2`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - }, - "Проверка скобок: (1+2)+2" - ); - test( - `{1+2}-X`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "{", - close: "}", - }, - { - Operator: "-", - }, - { - CharLiteral: "X", - }, - ], - }, - "Проверка скобок: {1+2}-X" - ); - test( - `[1+2]*i`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "[", - close: "]", - }, - { - Operator: "*", - }, - { - CharLiteral: "i", - }, - ], - }, - "Проверка скобок: [1+2]*i" - ); - test( - `|1+2|-89/2`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "|", - close: "|", - }, - { - Operator: "-", - }, - { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - ], - }, - "Проверка скобок: |1+2|-89/2" - ); - test( - `|1+2|-〖89/2〗`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "|", - close: "|", - }, - { - Operator: "-", - }, - { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - ], - }, - "Проверка скобок: |1+2|-〖89/2〗" - ); - test( - `⌈1+2⌉-〖89/2〗`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "⌈", - close: "⌉", - }, - { - Operator: "-", - }, - { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - ], - }, - "Проверка скобок: ⌈1+2⌉-〖89/2〗" - ); - test( - `⌊1+2⌋-〖89/2〗`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "⌊", - close: "⌋", - }, - { - Operator: "-", - }, - { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - ], - }, - "Проверка скобок: ⌊1+2⌋-〖89/2〗" - ); - test( - `〖89/2〗/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Проверка скобок:〖89/2〗/2" - ); - test( - `√〖89/2〗`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - }, - }, - "Проверка скобок:√〖89/2〗" - ); - test( - `〖89/2〗_2`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - "Проверка скобок:〖89/2〗_2" - ); - test( - `〖89/2〗^2`, - { - type: "UnicodeEquation", - body: { - type: "expSuperscript", - base: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - "Проверка скобок:〖89/2〗^2" - ); - test( - `2_〖89/2〗`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - }, - }, - }, - "Проверка скобок: 2_〖89/2〗" - ); - test( - `2^〖89/2〗`, - { - type: "UnicodeEquation", - body: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - }, - }, - }, - "Проверка скобок: 2^〖89/2〗" - ); - - test( - `2_〖89/2〗_2`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - type: "expSubscript", - base: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - }, - "Проверка скобок: 2_〖89/2〗_2" - ); - test( - `2^〖89/2〗^2`, - { - type: "UnicodeEquation", - body: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "expSuperscript", - base: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - }, - "Проверка скобок: 2^〖89/2〗^2" - ); - - test( - `2┴〖89/2〗`, - { - type: "UnicodeEquation", - body: { - type: "expAbove", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - }, - }, - }, - "Проверка скобок: 2┴〖89/2〗" - ); - test( - `2┴〖89/2〗┴2`, - { - type: "UnicodeEquation", - body: { - type: "expAbove", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "expAbove", - base: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - }, - "Проверка скобок: 2┴〖89/2〗┴2" - ); - test( - `2┬〖89/2〗`, - { - type: "UnicodeEquation", - body: { - type: "expBelow", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - }, - }, - }, - "Проверка скобок: 2┬〖89/2〗" - ); - test( - `2┬〖89/2〗┬2`, - { - type: "UnicodeEquation", - body: { - type: "expBelow", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - type: "expBelow", - base: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - NumberLiteral: "89", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - open: "〖", - close: "〗", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - }, - "Проверка скобок: 2┬〖89/2〗┬2" - ); - test( - "├]a+b┤[", - { - type: "UnicodeEquation", - body: { - type: "expBracketLiteral", - open: "]", - close: "[", - value: [ - { - type: "CharLiteral", - value: "a" - }, - { - type: "OperatorLiteral", - value: "+" - }, - { - type: "CharLiteral", - value: "b" - } - ] - } - }, - "Check: ├]a+b┤[" - ) -} - -window["AscMath"].bracket = bracketsTests; diff --git a/word/Math/.math-test/UnicodeTestsList/complex-stuff.js b/word/Math/.math-test/UnicodeTestsList/complex-stuff.js deleted file mode 100644 index e9a2953a6c..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/complex-stuff.js +++ /dev/null @@ -1,687 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function complexTest(test) { - test( - `(a + b)^n = ∑_(k=0)^n▒(n¦k) a^k b^(n-k),`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "a", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "+", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - CharLiteral: "b", - }, - ], - open: "(", - close: ")", - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "n", - }, - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "=", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "expSubsup", - base: { - type: "opNary", - value: "∑", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "k", - }, - { - Operator: "=", - }, - { - NumberLiteral: "0", - }, - ], - open: "(", - close: ")", - }, - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "n", - }, - }, - thirdSoperand: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: { - type: "binomLiteral", - numerator: { - CharLiteral: "n", - }, - operand: { - CharLiteral: "k", - }, - }, - open: "(", - close: ")", - }, - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "a", - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "k", - }, - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "b", - }, - up: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "n", - }, - { - Operator: "-", - }, - { - CharLiteral: "k", - }, - ], - open: "(", - close: ")", - }, - }, - }, - ], - }, - "Проверка простого литерала: (a + b)^n = ∑_(k=0)^n▒(n¦k) a^k b^(n-k)," - ); - test( - `∑_2^2▒(n/23)`, - { - type: "UnicodeEquation", - body: { - type: "expSubsup", - base: { - type: "opNary", - value: "∑", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - thirdSoperand: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - CharLiteral: "n", - }, - opOver: "/", - down: { - NumberLiteral: "23", - }, - }, - open: "(", - close: ")", - }, - }, - }, - }, - "Проверка простого литерала: ∑_2^2▒(n/23)" - ); - test( - `⏞(x+⋯+x)^(k "times")`, - { - type: "UnicodeEquation", - body: { - type: "hbrackLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - CharLiteral: "⋯", - }, - { - Operator: "+", - }, - { - CharLiteral: "x", - }, - ], - open: "(", - close: ")", - }, - up: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "k", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - CharLiteral: '"times"', - }, - ], - open: "(", - close: ")", - }, - }, - }, - }, - "Проверка простого литерала: ⏞(x+⋯+x)^(k 'times')" - ); - test( - `𝐸 = 𝑚𝑐^2`, - { - type: "UnicodeEquation", - body: [ - { - CharLiteral: "𝐸", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "=", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "𝑚𝑐", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - ], - }, - "Проверка простого литерала: 𝐸 = 𝑚𝑐^2" - ); - test( - `∫_0^a▒xⅆx/(x^2+a^2)`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "expSubsup", - base: { - type: "opNary", - value: "∫", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "0", - }, - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "a", - }, - }, - thirdSoperand: { - type: "soperandLiteral", - operand: { - CharLiteral: "xⅆx", - }, - }, - }, - opOver: "/", - down: { - type: "expBracketLiteral", - exp: [ - { - type: "expSuperscript", - base: { - CharLiteral: "x", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - Operator: "+", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "a", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка простого литерала: ∫_0^a▒xⅆx/(x^2+a^2)" - ); - test( - `lim┬(n→∞) a_n`, - { - type: "UnicodeEquation", - body: [ - { - type: "expBelow", - base: { - CharLiteral: "lim", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "n", - }, - { - Operator: "→", - }, - { - Operator: "∞", - }, - ], - open: "(", - close: ")", - }, - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "expSubscript", - base: { - CharLiteral: "a", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "n", - }, - }, - }, - ], - }, - "Проверка простого литерала: lim┬(n→∞) a_n" - ); - test( - `ⅈ²=-1`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: { - CharLiteral: "ⅈ", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - Operator: "=", - }, - { - Operator: "-", - }, - { - NumberLiteral: "1", - }, - ], - }, - "Проверка простого литерала: ⅈ²=-1" - ); - test( - `E = m⁢c²`, - { - type: "UnicodeEquation", - body: [ - { - CharLiteral: "E", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "=", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "m⁢c", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - ], - }, - "Проверка простого литерала: E = m⁢c²" - ); - test( - `a²⋅b²=c²`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: { - CharLiteral: "a", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - Operator: "⋅", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "b", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - Operator: "=", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "c", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - ], - }, - "Проверка простого литерала: a²⋅b²=c²" - ); - test( - `f̂(ξ)=∫_-∞^∞▒f(x)ⅇ^-2πⅈxξ ⅆx`, - { - type: "UnicodeEquation", - body: [ - [ - { - CharLiteral: "f̂", - }, - { - type: "expBracketLiteral", - exp: { - type: "anOther", - value: "ξ", - }, - open: "(", - close: ")", - }, - ], - { - Operator: "=", - }, - { - type: "expSubsup", - base: { - type: "opNary", - value: "∫", - }, - down: { - type: "soperandLiteral", - operand: "-∞", - }, - up: { - type: "soperandLiteral", - operand: "∞", - }, - thirdSoperand: { - type: "soperandLiteral", - operand: [ - { - CharLiteral: "f", - }, - { - type: "expBracketLiteral", - exp: { - CharLiteral: "x", - }, - open: "(", - close: ")", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "ⅇ", - }, - up: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "2", - }, - { - type: "anOther", - value: "π", - }, - { - CharLiteral: "ⅈxξ", - }, - ], - minus: true, - }, - }, - ], - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - CharLiteral: "ⅆx", - }, - ], - }, - "Проверка простого литерала: f̂(ξ)=∫_-∞^∞▒f(x)ⅇ^-2πⅈxξ ⅆx" - ); - test( - `(𝑎 + 𝑏)┴→`, - { - type: "UnicodeEquation", - body: { - type: "expAbove", - base: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "𝑎", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "+", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - CharLiteral: "𝑏", - }, - ], - open: "(", - close: ")", - }, - up: { - Operator: "→", - }, - }, - }, - "Проверка простого литерала: (𝑎 + 𝑏)┴→" - ); - test( - `𝑎┴→`, - { - type: "UnicodeEquation", - body: { - type: "expAbove", - base: { - CharLiteral: "𝑎", - }, - up: { - Operator: "→", - }, - }, - }, - "Проверка простого литерала: 𝑎┴→" - ); -} -window["AscMath"].complex = complexTest; diff --git a/word/Math/.math-test/UnicodeTestsList/fraction-test.js b/word/Math/.math-test/UnicodeTestsList/fraction-test.js deleted file mode 100644 index 972cd2ef0c..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/fraction-test.js +++ /dev/null @@ -1,515 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function fractionTests(test) { - test( - `1/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - NumberLiteral: "1", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Проверка работы базового деления: 1/2" - ); - test( - `x/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - CharLiteral: "x", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Проверка работы базового деления: x/2" - ); - test( - `x+5/2`, - { - type: "UnicodeEquation", - body: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - type: "fractionLiteral", - up: { - NumberLiteral: "5", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - ], - }, - "Проверка работы базового деления: x+5/2" - ); - test( - `x+5/x+2`, - { - type: "UnicodeEquation", - body: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - type: "fractionLiteral", - up: { - NumberLiteral: "5", - }, - opOver: "/", - down: { - CharLiteral: "x", - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - }, - "Проверка работы базового деления: x+5/x+2" - ); - test( - `1∕2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - NumberLiteral: "1", - }, - opOver: "∕", - down: { - NumberLiteral: "2", - }, - }, - }, - "Проверка работы базового деления: 1∕2" - ); - test( - `(x+5)/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - NumberLiteral: "5", - }, - ], - open: "(", - close: ")", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Проверка работы деления: (x+5)/2" - ); - test( - `x/(2+1)`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - CharLiteral: "x", - }, - opOver: "/", - down: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - NumberLiteral: "1", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка работы деления: x/(2+1)" - ); - test( - `(x-5)/(2+1)`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "-", - }, - { - NumberLiteral: "5", - }, - ], - open: "(", - close: ")", - }, - opOver: "/", - down: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "2", - }, - { - Operator: "+", - }, - { - NumberLiteral: "1", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка работы деления: (x-5)/(2+1)" - ); - test( - `1+3/2/3`, - { - type: "UnicodeEquation", - body: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - type: "fractionLiteral", - up: { - NumberLiteral: "3", - }, - opOver: "/", - down: { - type: "fractionLiteral", - up: { - NumberLiteral: "2", - }, - opOver: "/", - down: { - NumberLiteral: "3", - }, - }, - }, - ], - }, - "Проверка работы цепи деления: 1+3/2/3" - ); - test( - `(𝛼_2^3)/(𝛽_2^3+𝛾_2^3)`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "expBracketLiteral", - exp: { - type: "expSubsup", - base: { - type: "anOther", - value: "𝛼", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "3", - }, - }, - }, - open: "(", - close: ")", - }, - opOver: "/", - down: { - type: "expBracketLiteral", - exp: [ - { - type: "expSubsup", - base: { - type: "anOther", - value: "𝛽", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "3", - }, - }, - }, - { - Operator: "+", - }, - { - type: "expSubsup", - base: { - type: "anOther", - value: "𝛾", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "3", - }, - }, - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка работы деления: (𝛼_2^3)/(𝛽_2^3+𝛾_2^3)" - ); - - test( - `(a/(b+c))/(d/e + f)`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - CharLiteral: "a", - }, - opOver: "/", - down: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "b", - }, - { - Operator: "+", - }, - { - CharLiteral: "c", - }, - ], - open: "(", - close: ")", - }, - }, - open: "(", - close: ")", - }, - opOver: "/", - down: { - type: "expBracketLiteral", - exp: [ - { - type: "fractionLiteral", - up: { - CharLiteral: "d", - }, - opOver: "/", - down: { - CharLiteral: "e", - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "+", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - CharLiteral: "f", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка работы вложенного деления: (a/(b+c))/(d/e + f)" - ); - - test( - `(a/(c/(z/x)))`, - { - type: "UnicodeEquation", - body: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - CharLiteral: "a", - }, - opOver: "/", - down: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - CharLiteral: "c", - }, - opOver: "/", - down: { - type: "expBracketLiteral", - exp: { - type: "fractionLiteral", - up: { - CharLiteral: "z", - }, - opOver: "/", - down: { - CharLiteral: "x", - }, - }, - open: "(", - close: ")", - }, - }, - open: "(", - close: ")", - }, - }, - open: "(", - close: ")", - }, - }, - "Проверка работы деления: (a/(c/(z/x)))" - ); - - test( - `1¦2`, - { - type: "UnicodeEquation", - body: { - type: "binomLiteral", - numerator: { - NumberLiteral: "1", - }, - operand: { - NumberLiteral: "2", - }, - }, - }, - "Проверка работы деления: 1¦2" - ); - test( - `(1¦2)`, - { - type: "UnicodeEquation", - body: { - type: "expBracketLiteral", - exp: { - type: "binomLiteral", - numerator: { - NumberLiteral: "1", - }, - operand: { - NumberLiteral: "2", - }, - }, - open: "(", - close: ")", - }, - }, - "Проверка работы деления: (1¦2)" - ); -} -window["AscMath"].fraction = fractionTests; diff --git a/word/Math/.math-test/UnicodeTestsList/hbrack-tests.js b/word/Math/.math-test/UnicodeTestsList/hbrack-tests.js deleted file mode 100644 index 0cb590df2c..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/hbrack-tests.js +++ /dev/null @@ -1,238 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function hbrackTests(test) { - test( - `⏞(x+⋯+x)`, - { - type: "UnicodeEquation", - body: { - type: "hbrackLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - CharLiteral: "⋯", - }, - { - Operator: "+", - }, - { - CharLiteral: "x", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Проверка работы hBrack: ⏞(x+⋯+x)" - ); - - test( - `⏞(x+⋯+x)^2`, - { - type: "UnicodeEquation", - body: { - type: "hbrackLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - CharLiteral: "⋯", - }, - { - Operator: "+", - }, - { - CharLiteral: "x", - }, - ], - open: "(", - close: ")", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - "Проверка работы hBrack: ⏞(x+⋯+x)^2" - ); - test( - `⏞(x+⋯+x)_2`, - { - type: "UnicodeEquation", - body: { - type: "hbrackLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - CharLiteral: "⋯", - }, - { - Operator: "+", - }, - { - CharLiteral: "x", - }, - ], - open: "(", - close: ")", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - "Проверка работы hBrack: ⏞(x+⋯+x)_2" - ); - test( - `⏞(x+⋯+x)_2^Y`, - { - type: "UnicodeEquation", - body: { - type: "expSuperscript", - base: { - type: "hbrackLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - CharLiteral: "⋯", - }, - { - Operator: "+", - }, - { - CharLiteral: "x", - }, - ], - open: "(", - close: ")", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "Y", - }, - }, - }, - }, - "Проверка работы hBrack: ⏞(x+⋯+x)_2^Y" - ); - - test( - `⏞(x+⋯+x)_2^2`, - { - type: "UnicodeEquation", - body: { - type: "expSuperscript", - base: { - type: "hbrackLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - CharLiteral: "⋯", - }, - { - Operator: "+", - }, - { - CharLiteral: "x", - }, - ], - open: "(", - close: ")", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - "Проверка работы hBrack: ⏞(x+⋯+x)_2^2" // WORD воспринимает hBrack как обычный элемент! - ); -} -window["AscMath"].hbrack = hbrackTests; diff --git a/word/Math/.math-test/UnicodeTestsList/literal-tests.js b/word/Math/.math-test/UnicodeTestsList/literal-tests.js deleted file mode 100644 index 7555d3acd1..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/literal-tests.js +++ /dev/null @@ -1,3806 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function literalTests(test) { - - test( - "×", - { - type: "UnicodeEquation", - body: { - type: "OperatorLiteral", - value: "×" - } - }, - "Check operator: ×" - ); - test( - "⋅", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⋅" - } - }, - "Check operator: ⋅" - ); - test( - "∈", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "∈" - } - }, - "Check operator: ∈" - ); - test( - "∋", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "∋" - } - }, - "Check operator: ∋" - ); - test( - "∼", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "∼" - } - }, - "Check operator: ∼" - ); - test( - "≃", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≃" - } - }, - "Check operator: ≃" - ); - test( - "≅", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≅" - } - }, - "Check operator: ≅" - ); - test( - "≈", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≈" - } - }, - "Check operator: ≈" - ); - test( - "≍", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≍" - } - }, - "Check operator: ≍" - ); - test( - "≡", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≡" - } - }, - "Check operator: ≡" - ); - test( - "≤", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≤" - } - }, - "Check operator: ≤" - ); - test( - "≥", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≥" - } - }, - "Check operator: ≥" - ); - test( - "≶", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≶" - } - }, - "Check operator: ≶" - ); - test( - "≷", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≷" - } - }, - "Check operator: ≷" - ); - test( - "≽", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≽" - } - }, - "Check operator: ≽" - ); - test( - "≺", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≺" - } - }, - "Check operator: ≺" - ); - test( - "≻", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≻" - } - }, - "Check operator: ≻" - ); - test( - "≼", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "≼" - } - }, - "Check operator: ≼" - ); - test( - "⊂", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊂" - } - }, - "Check operator: ⊂" - ); - test( - "⊃", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊃" - } - }, - "Check operator: ⊃" - ); - test( - "⊆", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊆" - } - }, - "Check operator: ⊆" - ); - test( - "⊇", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊇" - } - }, - "Check operator: ⊇" - ); - test( - "⊑", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊑" - } - }, - "Check operator: ⊑" - ); - test( - "⊒", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊒" - } - }, - "Check operator: ⊒" - ); - test( - "+", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "+" - } - }, - "Check operator: +" - ); - test( - "-", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "-" - } - }, - "Check operator: -" - ); - test( - "=", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "=" - } - }, - "Check operator: =" - ); - test( - "*", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "*" - } - }, - "Check operator: *" - ); - - test( - "∃", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "∃" - } - }, - "Check logic operator: ∃" - ); - test( - "∀", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "∀" - } - }, - "Check logic operator: ∀" - ); - test( - "¬", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "¬" - } - }, - "Check logic operator: ¬" - ); - test( - "∧", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "∧" - } - }, - "Check logic operator: ∧" - ); - test( - "∨", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "∨" - } - }, - "Check logic operator: ∨" - ); - test( - "⇒", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⇒" - } - }, - "Check logic operator: ⇒" - ); - test( - "⇔", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⇔" - } - }, - "Check logic operator: ⇔" - ); - test( - "⊕", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊕" - } - }, - "Check logic operator: ⊕" - ); - test( - "⊤", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊤" - } - }, - "Check logic operator: ⊤" - ); - test( - "⊥", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊥" - } - }, - "Check logic operator: ⊥" - ); - test( - "⊢", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⊢" - } - }, - "Check logic operator: ⊢" - ); - - test( - "⨯", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⨯" - } - }, - "Check db operator: ⨯" - ); - test( - "⟕", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⟕" - } - }, - "Check db operator: ⟕" - ); - test( - "⟖", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⟖" - } - }, - "Check db operator: ⟖" - ); - test( - "⟗", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⟗" - } - }, - "Check db operator: ⟗" - ); - test( - "⋉", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⋉" - } - }, - "Check db operator: ⋉" - ); - test( - "⋊", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⋊" - } - }, - "Check db operator: ⋊" - ); - test( - "▷", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "▷" - } - }, - "Check db operator: ▷" - ); - test( - "÷", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "÷" - } - }, - "Check db operator: ÷" - ); - - test( - "⁡", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⁡" - } - }, - "Check invisible function application operator: ⁡" - ); - test( - "⁢", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⁢" - } - }, - "Check invisible times operator: ⁢" - ); - test( - "⁣", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⁣" - } - }, - "Check invisible separator operator: ⁣" - ); - test( - "⁤", - { - "type": "UnicodeEquation", - "body": { - "type": "OperatorLiteral", - "value": "⁤" - } - }, - "Check invisible plus operator: ⁤" - ); - test( - "​", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": "​" - } - }, - "Check zero-width space" - ); - test( - " ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": " ", - } - }, - "Check 1/18em space (very very thin math space)" - ); - test( - "  ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": "  ", - } - }, - "Check 2/18em space (very thin math space)" - ); - test( - " ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": " ", - } - }, - "Check 3/18em space (thin math space)" - ); - test( - " ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": " ", - } - }, - "Check 5/18em space (thick math space)" - ); - test( - " ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": " ", - } - }, - "Check 6/18em space (very thick math space)" - ); - test( - "  ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": "  ", - } - }, - "Check 7/18em space (very very thick math space)" - ); - test( - " ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": " ", - } - }, - "Check 9/18em space" - ); - test( - " ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": " ", - } - }, - "Check 1em space" - ); - test( - " ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": " ", - } - }, - "Check digit-width space" - ); - test( - " ", - { - "type": "UnicodeEquation", - "body": { - "type": "SpaceLiteral", - "value": " ", - } - }, - "Check space-with space (non-breaking space)" - ); - - test( - `a`, - { - "body": { - "data": "a", - "type": "CharLiteral", - }, - "type": "UnicodeEquation" - }, - "Check: a" - ); - test( - `abcdef`, - { - "body": { - "data": "abcdef", - "type": "CharLiteral", - }, - "type": "UnicodeEquation" - }, - "Check: abcdef" - ); - test( - `1`, - { - type: "UnicodeEquation", - body: [ - { - type: "NumberLiteral", - data: "1" - } - ] - }, - "Check: 1" - ); - test( - `1234`, - { - type: "UnicodeEquation", - body: [ - { - type: "NumberLiteral", - data: "1234" - } - ] - }, - "Check: 1234" - ); - test( - `1+2`, - { - type: "UnicodeEquation", - body: [ - [ - { - type: "NumberLiteral", - data: "1" - } - ], - { - type: "OperatorLiteral", - value: "+" - }, - [ - { - type: "NumberLiteral", - data: "2" - } - ] - ] - }, - "Check: 1+2" - ); - test( - `1+2+3`, - { - type: "UnicodeEquation", - body: [ - [ - { - type: "NumberLiteral", - data: "1" - } - ], - { - type: "OperatorLiteral", - value: "+" - }, - [ - { - type: "NumberLiteral", - data: "2" - } - ], - { - type: "OperatorLiteral", - value: "+" - }, - [ - { - type: "NumberLiteral", - data: "3" - } - ] - ] - }, - "Check: 1+2+3" - ); - - test( - `ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσΤτΥυΦφΧχΨψΩω`, - { - body: { - data: "ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσΤτΥυΦφΧχΨψΩω", - type: "OtherLiteral" - }, - type: "UnicodeEquation" - }, - "Check greek letters: ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσΤτΥυΦφΧχΨψΩω" - ); - test( - "abc123def", - { - type: "UnicodeEquation", - body: [ - [ - { - CharLiteral: "abc", - }, - { - NumberLiteral: "123", - }, - ], - { - CharLiteral: "def", - }, - ], - }, - "Проверка простого литерала: abc123def" - ); - test( - "abc+123+def", - { - type: "UnicodeEquation", - body: [ - { - CharLiteral: "abc", - }, - { - Operator: "+", - }, - { - NumberLiteral: "123", - }, - { - Operator: "+", - }, - { - CharLiteral: "def", - }, - ], - }, - "Проверка простого литерала: abc+123+def" - ); - test( - "𝐀𝐁𝐂𝐨𝐹", - { - type: "UnicodeEquation", - body: { - CharLiteral: "𝐀𝐁𝐂𝐨𝐹", - }, - }, - "Проверка простого литерала: 𝐀𝐁𝐂𝐨𝐹" - ); - - //spaces - test( - " 𝐀𝐁𝐂𝐨𝐹 ", - { - type: "UnicodeEquation", - body: [ - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - CharLiteral: "𝐀𝐁𝐂𝐨𝐹", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "SpaceLiteral", - value: " ", - }, - ], - }, - "Проверка простого литерала - пробелы: ' 𝐀𝐁𝐂𝐨𝐹 '" - ); - - //spaces & tabs - test( - " 𝐀𝐁𝐂𝐨𝐹 ", - { - type: "UnicodeEquation", - body: [ - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "SpaceLiteral", - value: "\t", - }, - { - CharLiteral: "𝐀𝐁𝐂𝐨𝐹", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "SpaceLiteral", - value: "\t", - }, - { - type: "SpaceLiteral", - value: " ", - }, - ], - }, - "Проверка простого литерала - пробелы и табуляция: ' 𝐀𝐁𝐂𝐨𝐹 '" - ); - - test( - `1+fbnd+(3+𝐀𝐁𝐂𝐨𝐹)+c+5`, - { - type: "UnicodeEquation", - body: [ - { - NumberLiteral: "1", - }, - { - Operator: "+", - }, - { - CharLiteral: "fbnd", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "3", - }, - { - Operator: "+", - }, - { - CharLiteral: "𝐀𝐁𝐂𝐨𝐹", - }, - ], - open: "(", - close: ")", - }, - { - Operator: "+", - }, - { - CharLiteral: "c", - }, - { - Operator: "+", - }, - { - NumberLiteral: "5", - }, - ], - }, - "Проверка простого литерала - пробелы и табуляция: '1+fbnd+(3+𝐀𝐁𝐂𝐨𝐹)+c+5'" - ); - - // test( - // `1/3.1416`, - // { - // type: "UnicodeEquation", - // body: { - // type: "expLiteral", - // value: [ - // { - // type: "fractionLiteral", - // numerator: { - // type: "numeratorLiteral", - // value: [ - // { - // type: "digitsLiteral", - // value: [ - // { - // type: "NumericLiteral", - // value: "1", - // }, - // ], - // }, - // ], - // }, - // opOver: { - // type: "opOver", - // value: "/", - // }, - // operand: [ - // { - // type: "numberLiteral", - // number: { - // type: "digitsLiteral", - // value: [ - // { - // type: "NumericLiteral", - // value: "3", - // }, - // ], - // }, - // decimal: ".", - // after: { - // type: "digitsLiteral", - // value: [ - // { - // type: "NumericLiteral", - // value: "1416", - // }, - // ], - // }, - // }, - // ], - // }, - // ], - // }, - // }, - // "Проверка простого литерала - пробелы и табуляция: '1/3.1416'" - // ); - - - test( - "1\\above2", - { - body: { - base: [ - { - data: "1", - type: "NumberLiteral" - } - ], - down: undefined, - type: "expAbove", - up: { - type: "soperandLiteral", - value: [ - { - data: "2", - type: "NumberLiteral" - } - ] - } - }, - type: "UnicodeEquation" - }, - "Check: 1\\above2" - ) - test( - "\\\\above", - { - "body": { - "type": "OperatorLiteral", - "value": "┴" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\above" - ) - test( - "1\\acute2", - { - "type": "UnicodeEquation", - "body": [ - { - "type": "atomLiteral", - "base": { - "type": "DiacriticBaseLiteral", - "data": [ - { - "type": "NumberLiteral", - "data": "1" - } - ], - "isAn": true - }, - "diacritic": { - "type": "DiacriticLiteral", - "value": "́" - } - }, - [ - { - "type": "NumberLiteral", - "data": "2" - } - ] - ] - }, - "Check: 1\\acute2" - ) - test( - "\\\\acute", - { - "body": { - "type": "OperatorLiteral", - "value": "́" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\acute" - ) - - test( - "\\\\aleph", - { - "body": { - "type": "OperatorLiteral", - "value": "ℵ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\aleph" - ) - test( - "\\\\alpha", - { - "body": { - "type": "OperatorLiteral", - "value": "α" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\alpha" - ) - test( - "\\\\amalg", - { - "body": { - "type": "OperatorLiteral", - "value": "∐" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\amalg" - ); - test( - "\\\\angle", - { - "body": { - "type": "OperatorLiteral", - "value": "∠" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\angle" - ) - test( - "\\\\aoint", - { - "body": { - "type": "OperatorLiteral", - "value": "∳" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\aoint" - ) - test( - "\\\\approx", - { - "body": { - "type": "OperatorLiteral", - "value": "≈" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\approx" - ) - test( - "\\\\asmash", - { - "body": { - "type": "OperatorLiteral", - "value": "⬆" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\asmash" - ) - test( - "\\\\ast", - { - "body": { - "type": "OperatorLiteral", - "value": "∗" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ast" - ) - test( - "\\\\asymp", - { - "body": { - "type": "OperatorLiteral", - "value": "≍" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\asymp" - ) - test( - "\\\\atop", - { - "body": { - "type": "OperatorLiteral", - "value": "¦" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\atop" - ) - - - test( - "\\\\Bar", - { - "body": { - "type": "OperatorLiteral", - "value": "̿" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Bar" - ) - test( - "\\\\bar", - { - "body": { - "type": "OperatorLiteral", - "value": "̅" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bar" - ) - test( - "\\\\because", - { - "body": { - "type": "OperatorLiteral", - "value": "∵" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\because" - ) - test( - "\\\\begin", - { - "body": { - "type": "OperatorLiteral", - "value": "〖" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\begin" - ) - test( - "\\\\below", - { - "body": { - "type": "OperatorLiteral", - "value": "┬" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\below" - ) - test( - "\\\\beta", - { - "body": { - "type": "OperatorLiteral", - "value": "β" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\beta" - ) - test( - "\\\\beth", - { - "body": { - "type": "OperatorLiteral", - "value": "ℶ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\beth" - ) - test( - "\\\\bot", - { - "body": { - "type": "OperatorLiteral", - "value": "⊥" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bot" - ) - - test( - "\\\\bigcap", - { - "body": { - "type": "OperatorLiteral", - "value": "⋂" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bigcap" - ) - test( - "\\\\bigcup", - { - "body": { - "type": "OperatorLiteral", - "value": "⋂" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bigcup" - ) - test( - "\\\\bigodot", - { - "body": { - "type": "OperatorLiteral", - "value": "⨀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bigodot" - ) - - test( - "\\\\bigoplus", - { - "body": { - "type": "OperatorLiteral", - "value": "⨁" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bigoplus" - ) - test( - "\\\\bigotimes", - { - "body": { - "type": "OperatorLiteral", - "value": "⨂" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bigotimes" - ) - test( - "\\\\bigsqcup", - { - "body": { - "type": "OperatorLiteral", - "value": "⨆" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bigsqcup" - ) - test( - "\\\\biguplus", - { - "body": { - "type": "OperatorLiteral", - "value": "⨄" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\biguplus" - ) - test( - "\\\\bigvee", - { - "body": { - "type": "OperatorLiteral", - "value": "⋁" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bigvee" - ) - test( - "\\\\bigwedge", - { - "body": { - "type": "OperatorLiteral", - "value": "⋀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bigwedge" - ) - test( - "\\\\bowtie", - { - "body": { - "type": "OperatorLiteral", - "value": "⋈" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bowtie" - ) - test( - "\\\\box", - { - "body": { - "type": "OperatorLiteral", - "value": "□" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\box" - ) - test( - "\\\\bra", - { - "body": { - "type": "OperatorLiteral", - "value": "⟨" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bra" - ) - test( - "\\\\breve", - { - "body": { - "type": "OperatorLiteral", - "value": "̆" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\breve" - ) - test( - "\\\\bullet", - { - "body": { - "type": "OperatorLiteral", - "value": "∙" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\bullet" - ) - test( - "\\\\boxdot", - { - "body": { - "type": "OperatorLiteral", - "value": "⊡" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\boxdot" - ) - test( - "\\\\boxminus", - { - "body": { - "type": "OperatorLiteral", - "value": "⊟" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\boxminus" - ) - test( - "\\\\boxplus", - { - "body": { - "type": "OperatorLiteral", - "value": "⊞" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\boxplus" - ) - test( - "\\\\cap", - { - "body": { - "type": "OperatorLiteral", - "value": "∩" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\cap" - ) - test( - "\\\\cbrt", - { - "body": { - "type": "OperatorLiteral", - "value": "∛" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\cbrt" - ) - test( - "\\\\cdots", - { - "body": { - "type": "OperatorLiteral", - "value": "⋯" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\cdots" - ) - test( - "\\\\cdot", - { - "body": { - "type": "OperatorLiteral", - "value": "⋅" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\cdot" - ) - test( - "\\\\check", - { - "body": { - "type": "OperatorLiteral", - "value": "̌" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\check" - ) - test( - "\\\\chi", - { - "body": { - "type": "OperatorLiteral", - "value": "χ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\chi" - ) - test( - "\\\\circ", - { - "body": { - "type": "OperatorLiteral", - "value": "∘" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\circ" - ) - test( - "\\\\close", - { - "body": { - "type": "OperatorLiteral", - "value": "┤" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\close" - ) - test( - "\\\\clubsuit", - { - "body": { - "type": "OperatorLiteral", - "value": "♣" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\clubsuit" - ) - test( - "\\\\coint", - { - "body": { - "type": "OperatorLiteral", - "value": "∲" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\coint" - ) - test( - "\\\\cong", - { - "body": { - "type": "OperatorLiteral", - "value": "≅" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\cong" - ) - test( - "\\\\contain", - { - "body": { - "type": "OperatorLiteral", - "value": "∋" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\contain" - ) - test( - "\\\\cup", - { - "body": { - "type": "OperatorLiteral", - "value": "∪" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\cup" - ) - - - test( - "\\\\daleth", - { - "body": { - "type": "OperatorLiteral", - "value": "ℸ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\daleth" - ) - test( - "\\\\dashv", - { - "body": { - "type": "OperatorLiteral", - "value": "⊣" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\dashv" - ) - test( - "\\\\dd", - { - "body": { - "type": "OperatorLiteral", - "value": "ⅆ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\dd" - ) - test( - "\\\\ddddot", - { - "body": { - "type": "OperatorLiteral", - "value": "⃜" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ddddot" - ) - test( - "\\\\dddot", - { - "body": { - "type": "OperatorLiteral", - "value": "⃛" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\dddot" - ) - test( - "\\\\ddot", - { - "body": { - "type": "OperatorLiteral", - "value": "̈" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ddot" - ) - test( - "\\\\ddots", - { - "body": { - "type": "OperatorLiteral", - "value": "⋱" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ddots" - ) - test( - "\\\\degree", - { - "body": { - "type": "OperatorLiteral", - "value": "°" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\degree" - ) - test( - "\\\\Delta", - { - "body": { - "type": "OperatorLiteral", - "value": "Δ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Delta" - ) - test( - "\\\\delta", - { - "body": { - "type": "OperatorLiteral", - "value": "δ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\delta" - ) - test( - "\\\\diamond", - { - "body": { - "type": "OperatorLiteral", - "value": "⋄" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\diamond" - ) - - test( - "\\\\diamondsuit", - { - "body": { - "type": "OperatorLiteral", - "value": "♢" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\diamondsuit" - ) - test( - "\\\\div", - { - "body": { - "type": "OperatorLiteral", - "value": "÷" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\div" - ) - test( - "\\\\dot", - { - "body": { - "type": "OperatorLiteral", - "value": "̇" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\dot" - ) - test( - "\\\\doteq", - { - "body": { - "type": "OperatorLiteral", - "value": "≐" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\doteq" - ) - test( - "\\\\dots", - { - "body": { - "type": "OperatorLiteral", - "value": "…" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\dots" - ) - test( - "\\\\downarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "↓" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\downarrow" - ) - test( - "\\\\dsmash", - { - "body": { - "type": "OperatorLiteral", - "value": "⬇" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\dsmash" - ) - - test( - "\\\\degc", - { - "body": { - "type": "OperatorLiteral", - "value": "℃" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\degc" - ) - test( - "\\\\degf", - { - "body": { - "type": "OperatorLiteral", - "value": "℉" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\degf" - ) - - - test( - "\\\\ee", - { - "body": { - "type": "OperatorLiteral", - "value": "ⅇ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ee" - ) - test( - "\\\\ell", - { - "body": { - "type": "OperatorLiteral", - "value": "ℓ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ell" - ) - test( - "\\\\emptyset", - { - "body": { - "type": "OperatorLiteral", - "value": "∅" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\emptyset" - ) - test( - "\\\\emsp", - { - "body": { - "type": "OperatorLiteral", - "value": " " - }, - "type": "UnicodeEquation" - }, - "Check: \\\\emsp" - ) - test( - "\\\\end", - { - "body": { - "type": "OperatorLiteral", - "value": "〗" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\end" - ) - test( - "\\\\ensp", - { - "body": { - "type": "OperatorLiteral", - "value": " " - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ensp" - ) - test( - "\\\\epsilon", - { - "body": { - "type": "OperatorLiteral", - "value": "ϵ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\epsilon" - ) - test( - "\\\\eqarray", - { - "body": { - "type": "OperatorLiteral", - "value": "█" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\eqarray" - ) - test( - "\\\\eqno", - { - "body": { - "type": "OperatorLiteral", - "value": "#" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\eqno" - ) - test( - "\\\\equiv", - { - "body": { - "type": "OperatorLiteral", - "value": "≡" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\equiv" - ) - test( - "\\\\eta", - { - "body": { - "type": "OperatorLiteral", - "value": "η" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\eta" - ) - test( - "\\\\exists", - { - "body": { - "type": "OperatorLiteral", - "value": "∃" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\exists" - ) - - - test( - "\\\\forall", - { - "body": { - "type": "OperatorLiteral", - "value": "∀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\forall" - ) - test( - "\\\\funcapply", - { - "body": { - "type": "OperatorLiteral", - "value": "⁡" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\funcapply" - ) - test( - "\\\\frown", - { - "body": { - "type": "OperatorLiteral", - "value": "⌑" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\frown" - ) - - test( - "\\\\Gamma", - { - "body": { - "type": "OperatorLiteral", - "value": "Γ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Gamma" - ) - test( - "\\\\gamma", - { - "body": { - "type": "OperatorLiteral", - "value": "γ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\gamma" - ) - test( - "\\\\ge", - { - "body": { - "type": "OperatorLiteral", - "value": "≥" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ge" - ) - test( - "\\\\geq", - { - "body": { - "type": "OperatorLiteral", - "value": "≥" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\geq" - ) - test( - "\\\\gets", - { - "body": { - "type": "OperatorLiteral", - "value": "←" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\gets" - ) - test( - "\\\\gg", - { - "body": { - "type": "OperatorLiteral", - "value": "≫" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\gg" - ) - test( - "\\\\gimel", - { - "body": { - "type": "OperatorLiteral", - "value": "ℷ" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\gimel" - ) - test( - "\\\\grave", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\grave" - ) - - test( - "\\\\hairsp", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\hairsp" - ) - test( - "\\\\hat", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\hat" - ) - test( - "\\\\hbar", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\hbar" - ) - test( - "\\\\heartsuit", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\heartsuit" - ) - test( - "\\\\hookleftarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\hookleftarrow" - ) - - test( - "\\\\hphantom", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\hphantom" - ) - - - test( - "\\\\hsmash", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\hsmash" - ) - test( - "\\\\hvec", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\hvec" - ) - - - test( - "\\\\Im", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Im" - ) - test( - "\\\\iiiint", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\iiiint" - ) - test( - "\\\\iiint", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\iiint" - ) - test( - "\\\\iint", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\iint" - ) - test( - "\\\\ii", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ii" - ) - test( - "\\\\int", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\int" - ) - test( - "\\\\imath", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\imath" - ) - test( - "\\\\inc", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\inc" - ) - test( - "\\\\infty", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\infty" - ) - test( - "\\\\in", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\in" - ) - test( - "\\\\iota", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\iota" - ) - test( - "\\\\jj", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\jj" - ) - test( - "\\\\jmath", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\jmath" - ) - test( - "\\\\kappa", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\kappa" - ) - test( - "\\\\ket", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ket" - ) - test( - "\\\\Longleftrightarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Longleftrightarrow" - ) - test( - "\\\\Longrightarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Longrightarrow" - ) - test( - "\\\\Lambda", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Lambda" - ) - - test( - "\\\\lambda", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\lambda" - ) - test( - "\\\\langle", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\langle" - ) - test( - "\\\\lbrack", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\lbrack" - ) - - test( - "\\\\ldiv", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ldiv" - ) - test( - "\\\\ldots", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ldots" - ) - test( - "\\\\le", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\le" - ) - test( - "\\\\Leftarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Leftarrow" - ) - test( - "\\\\leftarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\leftarrow" - ) - test( - "\\\\leftharpoondown", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\leftharpoondown" - ) - test( - "\\\\leftharpoonup", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\leftharpoonup" - ) - test( - "\\\\Leftrightarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Leftrightarrow" - ) - test( - "\\\\leftrightarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\leftrightarrow" - ) - test( - "\\\\leq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\leq" - ) - test( - "\\\\lfloor", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\lfloor" - ) - test( - "\\\\ll", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ll" - ) - test( - "\\\\Longleftarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Longleftarrow" - ) - test( - "\\\\longleftarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\longleftarrow" - ) - test( - "\\\\longleftrightarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\longleftrightarrow" - ) - test( - "\\\\longrightarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\longrightarrow" - ) - - test( - "\\\\lmoust", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\lmoust" - ) - - test( - "\\\\mapsto", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\mapsto" - ) - test( - "\\\\matrix", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\matrix" - ) - test( - "\\\\medsp", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\medsp" - ) - test( - "\\\\mid", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\mid" - ) - test( - "\\\\models", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\models" - ) - test( - "\\\\mp", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\mp" - ) - test( - "\\\\mu", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\mu" - ) - test( - "\\\\nabla", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\nabla" - ) - test( - "\\\\naryand", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\naryand" - ) - test( - "\\\\nbsp", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\nbsp" - ) - test( - "\\\\ndiv", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ndiv" - ) - test( - "\\\\ne", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ne" - ) - test( - "\\\\nearrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\nearrow" - ) - test( - "\\\\neg", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\neg" - ) - test( - "\\\\neq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\neq" - ) - test( - "\\\\ni", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ni" - ) - test( - "\\\\norm", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\norm" - ) - test( - "\\\\nu", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\nu" - ) - test( - "\\\\nwarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\nwarrow" - ) - - test( - "\\\\Omega", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Omega" - ) - test( - "\\\\odot", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\odot" - ) - test( - "\\\\of", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\of" - ) - test( - "\\\\oiiint", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\oiiint" - ) - test( - "\\\\oiint", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\oiint" - ) - test( - "\\\\oint", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\oint" - ) - test( - "\\\\omega", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\omega" - ) - test( - "\\\\ominus", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ominus" - ) - test( - "\\\\open", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\open" - ) - test( - "\\\\oplus", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\oplus" - ) - - test( - "\\\\oslash", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\oslash" - ) - test( - "\\\\otimes", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\otimes" - ) - test( - "\\\\over", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\over" - ) - test( - "\\\\overbar", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\overbar" - ) - test( - "\\\\overbrace", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\overbrace" - ) - test( - "\\\\overbracket", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\overbracket" - ) - test( - "\\\\overparen", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\overparen" - ) - test( - "\\\\overshell", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\overshell" - ) - test( - "\\\\over", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\over" - ) - test( - "\\\\Pi", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Pi" - ) - test( - "\\\\Phi", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Phi" - ) - test( - "\\\\Psi", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Psi" - ) - test( - "\\\\parallel", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\parallel" - ) - test( - "\\\\partial", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\partial" - ) - test( - "\\\\perp", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\perp" - ) - test( - "\\\\phantom", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\phantom" - ) - test( - "\\\\phi", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\phi" - ) - test( - "\\\\pi", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\pi" - ) - test( - "\\\\pm", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\pm" - ) - test( - "\\\\pppprime", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\pppprime" - ) - test( - "\\\\ppprime", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ppprime" - ) - test( - "\\\\pprime", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\pprime" - ) - test( - "\\\\prcue", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\prcue" - ) - test( - "\\\\prec", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\prec" - ) - test( - "\\\\preceq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\preceq" - ) - test( - "\\\\preccurlyeq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\preccurlyeq" - ) - test( - "\\\\prime", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\prime" - ) - test( - "\\\\propto", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\propto" - ) - test( - "\\\\psi", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\psi" - ) - test( - "\\\\qdrt", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\qdrt" - ) - test( - "\\\\Re", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Re" - ) - test( - "\\\\Rightarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Rightarrow" - ) - test( - "\\\\rangle", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rangle" - ) - test( - "\\\\ratio", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\ratio" - ) - test( - "\\\\rbrace", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rbrace" - ) - test( - "\\\\rbrack", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rbrack" - ) - test( - "\\\\rceil", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rceil" - ) - test( - "\\\\rddots", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rddots" - ) - test( - "\\\\rect", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rect" - ) - test( - "\\\\rfloor", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rfloor" - ) - test( - "\\\\rho", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rho" - ) - test( - "\\\\right", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\right" - ) - test( - "\\\\rightarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rightarrow" - ) - test( - "\\\\rightharpoondown", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rightharpoondown" - ) - test( - "\\\\rightharpoonup", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rightharpoonup" - ) - test( - "\\\\rmoust", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rmoust" - ) - test( - "\\\\rrect", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\rrect" - ) - test( - "\\\\root", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\root" - ) - test( - "\\\\Sigma", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\Sigma" - ) - test( - "\\\\sdiv", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sdiv" - ) - test( - "\\\\searrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\searrow" - ) - test( - "\\\\setminus", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\setminus" - ) - test( - "\\\\sigma", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sigma" - ) - test( - "\\\\sim", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sim" - ) - test( - "\\\\simeq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\simeq" - ) - test( - "\\\\smash", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\smash" - ) - test( - "\\\\smile", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\smile" - ) - test( - "\\\\spadesuit", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\spadesuit" - ) - test( - "\\\\sqcap", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sqcap" - ) - test( - "\\\\sqcup", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sqcup" - ) - test( - "\\\\sqrt", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sqrt" - ) - test( - "\\\\sqsubseteq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sqsubseteq" - ) - test( - "\\\\sqsuperseteq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sqsuperseteq" - ) - test( - "\\\\star", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\star" - ) - test( - "\\\\subset", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\subset" - ) - test( - "\\\\subseteq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\subseteq" - ) - test( - "\\\\succeq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\succeq" - ) - test( - "\\\\succ", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\succ" - ) - test( - "\\\\sum", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\sum" - ) - test( - "\\\\superset", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\superset" - ) - - test( - "\\\\superseteq", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\superseteq" - ) - test( - "\\\\swarrow", - { - "body": { - "type": "OperatorLiteral", - "value": "̀" - }, - "type": "UnicodeEquation" - }, - "Check: \\\\swarrow" - ) -} -window["AscMath"].literal = literalTests; diff --git a/word/Math/.math-test/UnicodeTestsList/script-tests.js b/word/Math/.math-test/UnicodeTestsList/script-tests.js deleted file mode 100644 index 4d4690d947..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/script-tests.js +++ /dev/null @@ -1,866 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function scriptTests(test) { - test( - `2^2 + 2`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "+", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - NumberLiteral: "2", - }, - ], - }, - "Check script/index 2^2 + 2" - ); - test( - `x^2+2`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: { - CharLiteral: "x", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - }, - "Check script/index x^2+2" - ); - test( - `x^(256+34)*y`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: { - CharLiteral: "x", - }, - up: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "256", - }, - { - Operator: "+", - }, - { - NumberLiteral: "34", - }, - ], - open: "(", - close: ")", - }, - }, - }, - { - Operator: "*", - }, - { - CharLiteral: "y", - }, - ], - }, - "Check script/index: x^(256+34)*y" - ); - test( - `(x+34)^(256+34)-y/x`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "x", - }, - { - Operator: "+", - }, - { - NumberLiteral: "34", - }, - ], - open: "(", - close: ")", - }, - up: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "256", - }, - { - Operator: "+", - }, - { - NumberLiteral: "34", - }, - ], - open: "(", - close: ")", - }, - }, - }, - { - Operator: "-", - }, - { - type: "fractionLiteral", - up: { - CharLiteral: "y", - }, - opOver: "/", - down: { - CharLiteral: "x", - }, - }, - ], - }, - "Check script/index: (x+34)^(256+34)-y/x" - ); - test( - `𝛿_(𝜇 + 𝜈)`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: { - type: "anOther", - value: "𝛿", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - type: "anOther", - value: "𝜇", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - Operator: "+", - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - type: "anOther", - value: "𝜈", - }, - ], - open: "(", - close: ")", - }, - }, - }, - }, - "Check script/index: 𝛿_(𝜇 + 𝜈)" - ); - test( - `a_b_c`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: { - CharLiteral: "a", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expSubscript", - base: { - CharLiteral: "b", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "c", - }, - }, - }, - }, - }, - }, - "Check script/index: a_b_c" - ); - test( - `1_2_3`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: [ - { - NumberLiteral: "1", - }, - ], - down: { - type: "soperandLiteral", - operand: { - type: "expSubscript", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "3", - }, - }, - }, - }, - }, - }, - "Check script/index: 1_2_3" - ); - - test( - `A^5b^i`, - { - type: "UnicodeEquation", - body: { - type: "expSuperscript", - base: { - CharLiteral: "A", - }, - up: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "5", - }, - { - type: "expSuperscript", - base: { - CharLiteral: "b", - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "i", - }, - }, - }, - ], - }, - }, - }, - "Check script/index: A^5b^i" - ); - test( - `a_b_c^2`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: { - CharLiteral: "a", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expSubsup", - base: { - CharLiteral: "b", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "c", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - }, - "Check script/index: a_b_c^2" - ); - - test( - `a_b_c^2^2^2^2^2^2`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: { - CharLiteral: "a", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expSubsup", - base: { - CharLiteral: "b", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "c", - }, - }, - up: { - type: "soperandLiteral", - operand: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "expSuperscript", - base: [ - { - NumberLiteral: - "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "expSuperscript", - base: [ - { - NumberLiteral: - "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: - "2", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - "Check script/index: a_b_c^2^2^2^2^2^2" - ); - - test( - `1_2_3^2`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: [ - { - NumberLiteral: "1", - }, - ], - down: { - type: "soperandLiteral", - operand: { - type: "expSubsup", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "3", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - }, - "Check script/index: 1_2_3^2" - ); - - test( - `a_(b_c)`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: { - CharLiteral: "a", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: { - type: "expSubscript", - base: { - CharLiteral: "b", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "c", - }, - }, - }, - open: "(", - close: ")", - }, - }, - }, - }, - "Check script/index: a_(b_c)" - ); - - test( - `a^b_c`, - { - type: "UnicodeEquation", - body: { - type: "expSubsup", - base: { - CharLiteral: "a", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "c", - }, - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "b", - }, - }, - }, - }, - "Check script/index: a^b_c" - ); - test( - `sin^2 x`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: { - CharLiteral: "sin", - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - { - type: "SpaceLiteral", - value: " ", - }, - { - CharLiteral: "x", - }, - ], - }, - "Check script/index: 'sin^2 x'" - ); - test( - `𝑊^3𝛽_𝛿_1𝜌_1𝜎_2`, - { - type: "UnicodeEquation", - body: { - type: "expSubsup", - base: { - CharLiteral: "𝑊", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expSubscript", - base: { - type: "anOther", - value: "𝛿", - }, - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "1", - }, - { - type: "expSubscript", - base: { - type: "anOther", - value: "𝜌", - }, - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "1", - }, - { - type: "expSubscript", - base: { - type: "anOther", - value: "𝜎", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - ], - }, - }, - ], - }, - }, - }, - up: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "3", - }, - { - type: "anOther", - value: "𝛽", - }, - ], - }, - }, - }, - "Check script/index: '𝑊^3𝛽_𝛿_1𝜌_1𝜎_2'" - ); - test( - `(_23^4)45`, - { - type: "UnicodeEquation", - body: { - type: "prescriptSubsup", - base: [ - { - NumberLiteral: "45", - }, - ], - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "23", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "4", - }, - }, - }, - }, - "Check script/index: '(_23^4)45'" - ); - test( - `(_x^y)45`, - { - type: "UnicodeEquation", - body: { - type: "prescriptSubsup", - base: [ - { - NumberLiteral: "45", - }, - ], - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "x", - }, - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "y", - }, - }, - }, - }, - "Check script/index: '(_x^y)45'" - ); - test( - `(_x^y)zyu`, - { - type: "UnicodeEquation", - body: { - type: "prescriptSubsup", - base: { - CharLiteral: "zyu", - }, - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "x", - }, - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "y", - }, - }, - }, - }, - "Check script/index: (_x^y)zyu" - ); - test( - `(_453^56)zyu`, - { - type: "UnicodeEquation", - body: { - type: "prescriptSubsup", - base: { - CharLiteral: "zyu", - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "453", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "56", - }, - }, - }, - }, - "Check script/index: (_453^56)zyu" - ); - test( - `(_(453+2)^56)zyu`, - { - type: "UnicodeEquation", - body: { - type: "prescriptSubsup", - base: { - CharLiteral: "zyu", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "453", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "56", - }, - }, - }, - }, - "Check script/index: '(_(453+2)^56)zyu'" - ); - test( - `(_(453+2)^(345432+y+x/z))zyu`, - { - type: "UnicodeEquation", - body: { - type: "prescriptSubsup", - base: { - CharLiteral: "zyu", - }, - down: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "453", - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - open: "(", - close: ")", - }, - }, - up: { - type: "soperandLiteral", - operand: { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "345432", - }, - { - Operator: "+", - }, - { - CharLiteral: "y", - }, - { - Operator: "+", - }, - { - type: "fractionLiteral", - up: { - CharLiteral: "x", - }, - opOver: "/", - down: { - CharLiteral: "z", - }, - }, - ], - open: "(", - close: ")", - }, - }, - }, - }, - "Check script/index: '(_(453+2)^(345432+y+x/z))zyu'" - ); -} -window["AscMath"].script = scriptTests; diff --git a/word/Math/.math-test/UnicodeTestsList/special_scripts-tests.js b/word/Math/.math-test/UnicodeTestsList/special_scripts-tests.js deleted file mode 100644 index bb94cdb415..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/special_scripts-tests.js +++ /dev/null @@ -1,1041 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function specialTest(test) { - test( - `2⁰¹²³⁴⁵⁶⁷⁸⁹`, - { - type: "UnicodeEquation", - body: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "0123456789", - }, - }, - }, - }, - "Проверка `2⁰¹²³⁴⁵⁶⁷⁸⁹`" - ); - test( - `2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹`, - { - type: "UnicodeEquation", - body: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - }, - "Проверка `2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹`" - ); - test( - `2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: [ - { - NumberLiteral: "2", - }, - ], - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "45", - }, - ], - }, - "Проверка `2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45`" - ); - test( - `x⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSuperscript", - base: { - CharLiteral: "x", - }, - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "45", - }, - ], - }, - "Проверка `x⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45`" - ); - - test( - `2₂₃₄₊₍₆₇₋₀₌₆₇₎56`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSubscript", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - }, - { - NumberLiteral: "56", - }, - ], - }, - "Проверка `2₂₃₄₊₍₆₇₋₀₌₆₇₎56`" - ); - test( - `z₂₃₄₊₍₆₇₋₀₌₆₇₎56`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSubscript", - base: { - CharLiteral: "z", - }, - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - }, - { - NumberLiteral: "56", - }, - ], - }, - "Проверка `z₂₃₄₊₍₆₇₋₀₌₆₇₎56`" - ); - - test( - `2⁰¹²³⁴⁵⁶⁷⁸⁹₂₃₄₊₍₆₇₋₀₌₆₇₎`, - { - type: "UnicodeEquation", - body: { - type: "expSubsup", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "0123456789", - }, - }, - }, - }, - "Проверка `2⁰¹²³⁴⁵⁶⁷⁸⁹₂₃₄₊₍₆₇₋₀₌₆₇₎`" - ); - test( - `2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎`, - { - type: "UnicodeEquation", - body: { - type: "expSubsup", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - }, - "Проверка `2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎`" - ); - test( - `2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎+45`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSubsup", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "45", - }, - ], - }, - "Проверка `2⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎+45`" - ); - test( - `x⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎+45`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSubsup", - base: { - CharLiteral: "x", - }, - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "45", - }, - ], - }, - "Проверка `x⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹₂₃₄₊₍₆₇₋₀₌₆₇₎+45`" - ); - - test( - `2₂₃₄₊₍₆₇₋₀₌₆₇₎⁰¹²³⁴⁵⁶⁷⁸⁹`, - { - type: "UnicodeEquation", - body: { - type: "expSubsup", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "0123456789", - }, - }, - }, - }, - "Проверка `2₂₃₄₊₍₆₇₋₀₌₆₇₎⁰¹²³⁴⁵⁶⁷⁸⁹`" - ); - test( - `2₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹`, - { - type: "UnicodeEquation", - body: { - type: "expSubsup", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - }, - "Проверка `2₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹`" - ); - test( - `2₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSubsup", - base: [ - { - NumberLiteral: "2", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "45", - }, - ], - }, - "Проверка `2₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45`" - ); - test( - `x₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45`, - { - type: "UnicodeEquation", - body: [ - { - type: "expSubsup", - base: { - CharLiteral: "x", - }, - down: { - type: "soperandLiteral", - operand: [ - { - NumberLiteral: "234", - }, - { - Operator: "+", - }, - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "67", - }, - { - Operator: "-", - }, - { - NumberLiteral: "0", - }, - { - Operator: "=", - }, - { - NumberLiteral: "67", - }, - ], - open: "(", - close: ")", - }, - ], - }, - up: { - type: "soperandLiteral", - operand: [ - [ - { - NumberLiteral: "4", - }, - { - CharLiteral: "in", - }, - ], - { - type: "expBracketLiteral", - exp: [ - { - NumberLiteral: "5", - }, - { - Operator: "-", - }, - { - NumberLiteral: "6", - }, - { - Operator: "+", - }, - { - NumberLiteral: "7", - }, - { - Operator: "=", - }, - { - NumberLiteral: "8", - }, - ], - open: "(", - close: ")", - }, - { - NumberLiteral: "9", - }, - ], - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "45", - }, - ], - }, - "Проверка `x₂₃₄₊₍₆₇₋₀₌₆₇₎⁴ⁱⁿ⁽⁵⁻⁶⁺⁷⁼⁸⁾⁹+45`" - ); -} -window["AscMath"].special = specialTest; diff --git a/word/Math/.math-test/UnicodeTestsList/sqrt-tests.js b/word/Math/.math-test/UnicodeTestsList/sqrt-tests.js deleted file mode 100644 index f0141f44fb..0000000000 --- a/word/Math/.math-test/UnicodeTestsList/sqrt-tests.js +++ /dev/null @@ -1,647 +0,0 @@ -/* - * (c) Copyright Ascensio System SIA 2010-2023 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ -function sqrtTests(test) { - test( - `√5`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - NumberLiteral: "5", - }, - }, - }, - "Check √5" - ); - test( - `√a`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - CharLiteral: "a", - }, - }, - }, - "Check √a" - ); - test( - `√a/2`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - type: "fractionLiteral", - up: { - CharLiteral: "a", - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - }, - "Check √a/2" - ); - test( - `√(2&a-4)`, - { - type: "UnicodeEquation", - body: { - type: "nthrtLiteral", - index: { - NumberLiteral: "2", - }, - content: [ - { - CharLiteral: "a", - }, - { - Operator: "-", - }, - { - NumberLiteral: "4", - }, - ], - }, - }, - "Check √(2&a-4)" - ); - test( - `∛5`, - { - type: "UnicodeEquation", - body: { - type: "cubertLiteral", - value: { - NumberLiteral: "5", - }, - }, - }, - "Check ∛5" - ); - test( - `∛a`, - { - type: "UnicodeEquation", - body: { - type: "cubertLiteral", - value: { - CharLiteral: "a", - }, - }, - }, - "Check ∛a" - ); - test( - `∛a/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "cubertLiteral", - value: { - CharLiteral: "a", - }, - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Check ∛a/2" - ); - test( - `∛(a-4)`, - { - type: "UnicodeEquation", - body: { - type: "cubertLiteral", - value: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "a", - }, - { - Operator: "-", - }, - { - NumberLiteral: "4", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Check ∛(a-4)" - ); - test( - `∜5`, - { - type: "UnicodeEquation", - body: { - type: "fourthrtLiteral", - value: { - NumberLiteral: "5", - }, - }, - }, - "Check ∜5" - ); - test( - `∜a`, - { - type: "UnicodeEquation", - body: { - type: "fourthrtLiteral", - value: { - CharLiteral: "a", - }, - }, - }, - "Check ∜a" - ); - test( - `∜a/2`, - { - type: "UnicodeEquation", - body: { - type: "fractionLiteral", - up: { - type: "fourthrtLiteral", - value: { - CharLiteral: "a", - }, - }, - opOver: "/", - down: { - NumberLiteral: "2", - }, - }, - }, - "Check ∜a/2" - ); - test( - `∜(a-4)`, - { - type: "UnicodeEquation", - body: { - type: "fourthrtLiteral", - value: { - type: "expBracketLiteral", - exp: [ - { - CharLiteral: "a", - }, - { - Operator: "-", - }, - { - NumberLiteral: "4", - }, - ], - open: "(", - close: ")", - }, - }, - }, - "Check ∜(a-4)" - ); - test( - `√(10&a/4)`, - { - type: "UnicodeEquation", - body: { - type: "nthrtLiteral", - index: { - NumberLiteral: "10", - }, - content: { - type: "fractionLiteral", - up: { - CharLiteral: "a", - }, - opOver: "/", - down: { - NumberLiteral: "4", - }, - }, - }, - }, - "Check √(10&a/4)" - ); - test( - `√(10^2&a/4+2)`, - { - type: "UnicodeEquation", - body: { - type: "nthrtLiteral", - index: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "10", - }, - ], - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - content: [ - { - type: "fractionLiteral", - up: { - CharLiteral: "a", - }, - opOver: "/", - down: { - NumberLiteral: "4", - }, - }, - { - Operator: "+", - }, - { - NumberLiteral: "2", - }, - ], - }, - }, - "Check √(10^2&a/4+2)" - ); - test( - `√5^2`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "5", - }, - ], - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - "Check √5^2" - ); - test( - `√5_2`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - type: "expSubscript", - base: [ - { - NumberLiteral: "5", - }, - ], - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - "Check √5_2" - ); - test( - `√5^2_x`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - type: "expSubsup", - base: [ - { - NumberLiteral: "5", - }, - ], - down: { - type: "soperandLiteral", - operand: { - CharLiteral: "x", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - }, - "Check √5^2_x" - ); - test( - `√5_2^x`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - type: "expSubsup", - base: [ - { - NumberLiteral: "5", - }, - ], - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - up: { - type: "soperandLiteral", - operand: { - CharLiteral: "x", - }, - }, - }, - }, - }, - "Check √5_2^x" - ); - test( - `(_5^2)√5`, - { - type: "UnicodeEquation", - body: { - type: "prescriptSubsup", - base: { - type: "sqrtLiteral", - value: { - NumberLiteral: "5", - }, - }, - down: { - type: "soperandLiteral", - operand: { - NumberLiteral: "5", - }, - }, - up: { - type: "soperandLiteral", - operand: { - NumberLiteral: "2", - }, - }, - }, - }, - "Check (_5^2)√5" - ); - test( - `√5┴exp1`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - type: "expAbove", - base: [ - { - NumberLiteral: "5", - }, - ], - up: { - type: "soperandLiteral", - operand: [ - { - CharLiteral: "exp", - }, - { - NumberLiteral: "1", - }, - ], - }, - }, - }, - }, - "Check √5┴exp1" - ); - test( - `√5┬exp1`, - { - type: "UnicodeEquation", - body: { - type: "sqrtLiteral", - value: { - type: "expBelow", - base: [ - { - NumberLiteral: "5", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - CharLiteral: "exp", - }, - { - NumberLiteral: "1", - }, - ], - }, - }, - }, - }, - "Check √5┬exp1" - ); - test( - `(√5┬exp1]`, - { - type: "UnicodeEquation", - body: { - type: "expBracketLiteral", - exp: { - type: "sqrtLiteral", - value: { - type: "expBelow", - base: [ - { - NumberLiteral: "5", - }, - ], - down: { - type: "soperandLiteral", - operand: [ - { - CharLiteral: "exp", - }, - { - NumberLiteral: "1", - }, - ], - }, - }, - }, - open: "(", - close: "]", - }, - }, - "Check (√5┬exp1]" - ); - test( - `□√5`, - { - type: "UnicodeEquation", - body: { - type: "boxLiteral", - value: { - type: "sqrtLiteral", - value: { - NumberLiteral: "5", - }, - }, - }, - }, - "Check □√5" - ); - test( - `▭√5`, - { - type: "UnicodeEquation", - body: { - type: "rectLiteral", - value: { - type: "sqrtLiteral", - value: { - NumberLiteral: "5", - }, - }, - }, - }, - "Check ▭√5" - ); - test( - `▁√5`, - { - type: "UnicodeEquation", - body: { - type: "underbarLiteral", - value: { - type: "sqrtLiteral", - value: { - NumberLiteral: "5", - }, - }, - }, - }, - "Check ▁√5" - ); - test( - ` ̄√5`.trim(), - { - type: "UnicodeEquation", - body: { - type: "overbarLiteral", - value: { - type: "sqrtLiteral", - value: { - NumberLiteral: "5", - }, - }, - }, - }, - "Check ̄√5" - ); - test( - `∑_√5^√5`, - { - type: "UnicodeEquation", - body: { - type: "expSubscript", - base: { - type: "opNary", - value: "∑", - }, - down: { - type: "soperandLiteral", - operand: { - type: "sqrtLiteral", - value: { - type: "expSuperscript", - base: [ - { - NumberLiteral: "5", - }, - ], - up: { - type: "soperandLiteral", - operand: { - type: "sqrtLiteral", - value: { - NumberLiteral: "5", - }, - }, - }, - }, - }, - }, - }, - }, - "Check ∑_√5^√5" - ); - // test( - // `\\root n+1\\of(b+c)+x`, - // {}, - // "Check \\root n+1\\of(b+c)+x" - // ); -} -window["AscMath"].sqrt = sqrtTests; diff --git a/word/Math/.math-test/package-lock.json b/word/Math/.math-test/package-lock.json deleted file mode 100644 index 05244f4dd8..0000000000 --- a/word/Math/.math-test/package-lock.json +++ /dev/null @@ -1,1151 +0,0 @@ -{ - "requires": true, - "lockfileVersion": 1, - "dependencies": { - "@types/eslint": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.2.tgz", - "integrity": "sha512-Z1nseZON+GEnFjJc04sv4NSALGjhFwy6K0HXt7qsn5ArfAKtb63dXNJHf+1YW6IpOIYRBGUbu3GwJdj8DGnCjA==", - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", - "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "@types/estree": { - "version": "0.0.51", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==" - }, - "@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" - }, - "@types/node": { - "version": "17.0.35", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.35.tgz", - "integrity": "sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg==" - }, - "@ungap/promise-all-settled": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", - "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==" - }, - "@webassemblyjs/ast": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", - "requires": { - "@webassemblyjs/helper-numbers": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1" - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==" - }, - "@webassemblyjs/helper-api-error": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==" - }, - "@webassemblyjs/helper-buffer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==" - }, - "@webassemblyjs/helper-numbers": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", - "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==" - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1" - } - }, - "@webassemblyjs/ieee754": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", - "requires": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "@webassemblyjs/leb128": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", - "requires": { - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/utf8": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==" - }, - "@webassemblyjs/wasm-edit": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/helper-wasm-section": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-opt": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "@webassemblyjs/wast-printer": "1.11.1" - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" - } - }, - "@webassemblyjs/wasm-opt": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1" - } - }, - "@webassemblyjs/wasm-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" - } - }, - "@webassemblyjs/wast-printer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@xtuc/long": "4.2.2" - } - }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "acorn": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", - "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==" - }, - "acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==" - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==" - }, - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==" - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==" - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "requires": { - "fill-range": "^7.0.1" - } - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==" - }, - "browserslist": { - "version": "4.20.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.3.tgz", - "integrity": "sha512-NBhymBQl1zM0Y5dQT/O+xiLP9/rzOIQdKM/eMJBAq7yBgaB6krIYLGejrwVYnSHZdqjscB1SPuAjHwxjvN6Wdg==", - "requires": { - "caniuse-lite": "^1.0.30001332", - "electron-to-chromium": "^1.4.118", - "escalade": "^3.1.1", - "node-releases": "^2.0.3", - "picocolors": "^1.0.0" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==" - }, - "caniuse-lite": { - "version": "1.0.30001342", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001342.tgz", - "integrity": "sha512-bn6sOCu7L7jcbBbyNhLg0qzXdJ/PMbybZTH/BA6Roet9wxYRm6Tr9D0s0uhLkOZ6MSG+QU6txUgdpr3MXIVqjA==" - }, - "chai": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", - "integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==", - "requires": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^3.0.1", - "get-func-name": "^2.0.0", - "loupe": "^2.3.1", - "pathval": "^1.1.1", - "type-detect": "^4.0.5" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=" - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - } - }, - "chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==" - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "debug": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", - "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", - "requires": { - "ms": "2.1.2" - }, - "dependencies": { - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - } - } - }, - "decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==" - }, - "deep-eql": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", - "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", - "requires": { - "type-detect": "^4.0.0" - } - }, - "diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==" - }, - "electron-to-chromium": { - "version": "1.4.137", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.137.tgz", - "integrity": "sha512-0Rcpald12O11BUogJagX3HsCN3FE83DSqWjgXoHo5a72KUKMSfI39XBgJpgNNxS9fuGzytaFjE06kZkiVFy2qA==" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "enhanced-resolve": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.9.3.tgz", - "integrity": "sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==", - "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - } - }, - "es-module-lexer": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==" - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "requires": { - "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" - } - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" - }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==" - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "optional": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" - }, - "get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=" - }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "dependencies": { - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "requires": { - "is-glob": "^4.0.1" - } - }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - }, - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" - }, - "is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==" - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" - }, - "jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - } - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==" - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=" - }, - "log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "requires": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - } - }, - "loupe": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", - "integrity": "sha512-OvKfgCC2Ndby6aSTREl5aCCPTNIzlDfQZvZxNUrBrihDhL3xcrYegTblhmEiCrg2kKQz4XsFIaemE5BF4ybSaQ==", - "requires": { - "get-func-name": "^2.0.0" - } - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "minimatch": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz", - "integrity": "sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "mocha": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-9.2.2.tgz", - "integrity": "sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==", - "requires": { - "@ungap/promise-all-settled": "1.1.2", - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.3", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "7.2.0", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "4.2.1", - "ms": "2.1.3", - "nanoid": "3.3.1", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "which": "2.0.2", - "workerpool": "6.2.0", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "nanoid": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz", - "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==" - }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "node-releases": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.4.tgz", - "integrity": "sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ==" - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "requires": { - "p-limit": "^3.0.2" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==" - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "requires": { - "picomatch": "^2.2.1" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", - "requires": { - "randombytes": "^2.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "requires": { - "has-flag": "^4.0.0" - } - }, - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==" - }, - "terser": { - "version": "5.13.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz", - "integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==", - "requires": { - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map": "~0.8.0-beta.0", - "source-map-support": "~0.5.20" - }, - "dependencies": { - "source-map": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", - "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", - "requires": { - "whatwg-url": "^7.0.0" - } - } - } - }, - "terser-webpack-plugin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1.tgz", - "integrity": "sha512-GvlZdT6wPQKbDNW/GDQzZFg/j4vKU96yl2q6mcUkzKOgW4gwf1Z8cZToUCrz31XHlPWH8MVb1r2tFtdDtTGJ7g==", - "requires": { - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1", - "terser": "^5.7.2" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "requires": { - "is-number": "^7.0.0" - } - }, - "tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", - "requires": { - "punycode": "^2.1.0" - } - }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { - "punycode": "^2.1.0" - } - }, - "watchpack": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz", - "integrity": "sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==", - "requires": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - } - }, - "webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" - }, - "webpack": { - "version": "5.72.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.72.1.tgz", - "integrity": "sha512-dXG5zXCLspQR4krZVR6QgajnZOjW2K/djHvdcRaDQvsjV9z9vaW6+ja5dZOYbqBBjF6kGXka/2ZyxNdc+8Jung==", - "requires": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^0.0.51", - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/wasm-edit": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "acorn": "^8.4.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.9.3", - "es-module-lexer": "^0.9.0", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.3.1", - "webpack-sources": "^3.2.3" - } - }, - "webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==" - }, - "whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", - "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "requires": { - "isexe": "^2.0.0" - } - }, - "workerpool": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.0.tgz", - "integrity": "sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==" - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" - }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - }, - "yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==" - }, - "yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "requires": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - } - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" - } - } -} diff --git a/word/Math/.math-test/package.json b/word/Math/.math-test/package.json deleted file mode 100644 index 8c2247afb6..0000000000 --- a/word/Math/.math-test/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "type": "module", - "dependencies": { - "chai": "^4.3.6", - "mocha": "^9.2.2", - "webpack": "^5.72.1" - }, - "scripts": { - "test": "mocha runAutoTests.js -R min --timeout 5000" - } -} diff --git a/word/Math/LaTeXParser.js b/word/Math/LaTeXParser.js index 0b99b49f96..7bf3964bb0 100644 --- a/word/Math/LaTeXParser.js +++ b/word/Math/LaTeXParser.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -32,81 +32,81 @@ "use strict"; (function (window) { - const num = 1;//needs for debug, default value: 0 - const MathLiterals = AscMath.MathLiterals; - - const oLiteralNames = window.AscMath.oNamesOfLiterals; - const ConvertTokens = window.AscMath.ConvertTokens; - const Tokenizer = window.AscMath.Tokenizer; - const LimitFunctions = window.AscMath.LimitFunctions; - const FunctionNames = window.AscMath.functionNames; - const GetTypeFont = window.AscMath.GetTypeFont; - const GetMathFontChar = window.AscMath.GetMathFontChar; - - function CLaTeXParser() { - this.oTokenizer = new Tokenizer(true); - this.intMathFontType = -1; - this.isReceiveOneTokenAtTime = false; - this.isNowMatrix = false; - this.EscapeSymbol = ""; + const Literals = AscMath.MathLiterals; + const Struc = AscMath.MathStructures; + const ConvertTokens = AscMath.ConvertTokens; + const Tokenizer = AscMath.Tokenizer; + const GetTypeFont = AscMath.GetTypeFont; + const GetMathFontChar = AscMath.GetMathFontChar; + + function CLaTeXParser() + { + this.oTokenizer = new Tokenizer(true); + this.intMathFontType = -1; + this.isReceiveOneTokenAtTime = false; + this.isNowMatrix = false; + this.EscapeSymbol = ""; } CLaTeXParser.prototype.IsNotEscapeSymbol = function () { return this.oLookahead.data !== this.EscapeSymbol; }; - CLaTeXParser.prototype.ReadTokensWhileEnd = function (arrTypeOfLiteral) + CLaTeXParser.prototype.ReadTokensWhileEnd = function (arrTypeOfLiteral, type) { let arrLiterals = []; + let strLiteral = ""; + let styles = []; + let isOne = this.isReceiveOneTokenAtTime; + let isSymbol; - if (isOne) + if (isOne && this.oLookahead.class === arrTypeOfLiteral.id) { - let strValue = this.EatToken(arrTypeOfLiteral[0]).data; - let oLiteral = { - type: arrTypeOfLiteral[num], - value: this.intMathFontType === -1 + let oItem = this.oLookahead; + let strValue = this.EatToken(arrTypeOfLiteral.id).data; + let oStyle = oItem.style; + type = Struc.char; + + strLiteral = this.intMathFontType === -1 ? strValue - : GetMathFontChar[strValue][this.intMathFontType], - }; - arrLiterals.push(oLiteral); + : GetMathFontChar[strValue][this.intMathFontType]; + + styles.push(oStyle); } else { - let strLiteral = ""; - while (this.oLookahead.class === arrTypeOfLiteral[0]) + while (this.oLookahead.class === arrTypeOfLiteral.id + && this.EscapeSymbol !== this.oLookahead.data + && (styles.length === 0 || styles[styles.length - 1].IsStyleEqual(this.oLookahead.style))) { - let strConvert = AscMath.AutoCorrection[this.oLookahead.data]; - if (strConvert) + let oCurrentItem = this.oLookahead; + let strCurrent = oCurrentItem.data; + let oStyle = oCurrentItem.style; + this.EatToken(arrTypeOfLiteral.id); + + if (GetMathFontChar[strCurrent] && GetMathFontChar[strCurrent][this.intMathFontType]) { - this.EatToken(this.oLookahead.class); - strLiteral += strConvert; - if (this.oLookahead.data === " ") - { - this.EatToken(this.oLookahead.class); - } + strLiteral += GetMathFontChar[strCurrent][this.intMathFontType]; + isSymbol = true; } else { - let oCurrentChar = this.EatToken(arrTypeOfLiteral[0]).data; - - if (this.intMathFontType === -1 - || !GetMathFontChar[oCurrentChar] - || !GetMathFontChar[oCurrentChar][this.intMathFontType]) - { - strLiteral += oCurrentChar; - } - else - { - strLiteral += GetMathFontChar[oCurrentChar][this.intMathFontType]; - } + strLiteral += strCurrent; } + + styles.push(oStyle); } - arrLiterals.push({ - type: arrTypeOfLiteral[num], - value: strLiteral, - }) } - return this.GetContentOfLiteral(arrLiterals); + + if (styles.length === 1) + styles = styles[0]; + + arrLiterals.push({type: isSymbol ? Struc.other : type, value: strLiteral, style: styles}); + + if (arrLiterals.length === 1) + return arrLiterals[0]; + + return arrLiterals }; CLaTeXParser.prototype.SaveState = function (oLookahead) { @@ -114,7 +114,9 @@ }; CLaTeXParser.prototype.RestoreState = function () { - this.oLookahead = this.oTokenizer.RestoreState(); + let oRestore = this.oTokenizer.RestoreState(); + if (oRestore) + this.oLookahead = oRestore; }; CLaTeXParser.prototype.Parse = function (string) { @@ -133,15 +135,10 @@ } else { - let strValue = this.oTokenizer.GetTextOfToken(this.oLookahead.index, true); - if (undefined === strValue) - { - strValue = this.EatToken(this.oLookahead.class).data - } - else - { - this.EatToken(this.oLookahead.class); - } + let oData = this.oLookahead; + this.EatToken(this.oLookahead.class); + let strValue = oData.data; + let oStyle = oData.style; if ("\\bmod" === strValue) // todo в новой версии конвертора добавить отдельный модуль для такого типа токенов { @@ -151,8 +148,9 @@ } arrExp.push({ - type: oLiteralNames.charLiteral[num], - value: strValue + type: Struc.char, + value: strValue, + style: oStyle, }) } } @@ -163,210 +161,336 @@ }; CLaTeXParser.prototype.GetCharLiteral = function () { - return this.ReadTokensWhileEnd(oLiteralNames.charLiteral) + return this.ReadTokensWhileEnd(Literals.char, Struc.char); }; + CLaTeXParser.prototype.GetOperandLiteral = function () + { + let oPr = this.oLookahead.style; + const strToken = this.EatToken(Literals.operand.id); + return { + type: Struc.char, + value: strToken.data, + style: oPr + }; + } CLaTeXParser.prototype.GetOtherLiteral = function () { - return this.ReadTokensWhileEnd(oLiteralNames.otherLiteral) + return this.ReadTokensWhileEnd(Literals.other, Struc.other); }; CLaTeXParser.prototype.GetSpaceLiteral = function () { - //todo LaTex skip all normal spaces - return this.ReadTokensWhileEnd(oLiteralNames.spaceLiteral); + // LaTex skip all normal spaces + while (this.oLookahead.data === " ") + { + this.EatToken(this.oLookahead.class); + } + + let oStyle = this.oLookahead.style; + + if (this.oLookahead.data === "\\ " + // || this.oLookahead.data === "\\quad" + // || this.oLookahead.data === "\\:" + // || this.oLookahead.data === "\\;" + ) + { + let strSpace = ""; + + if (this.oLookahead.data === "\\ ") + strSpace = " "; + // else if (this.oLookahead.data === "\\quad") + // strSpace = " "; + // else if (this.oLookahead.data === "\\:") + // strSpace = " "; + // else if (this.oLookahead.data === "\\;") + // strSpace = " "; + + this.EatToken(this.oLookahead.class) + + return { + type: Struc.char, + value: strSpace, + style: oStyle + } + } + + //this.ReadTokensWhileEnd(Literals.space, Struc.space); }; CLaTeXParser.prototype.GetNumberLiteral = function () { - return this.ReadTokensWhileEnd(oLiteralNames.numberLiteral); + return this.ReadTokensWhileEnd(Literals.number, Struc.number); }; CLaTeXParser.prototype.GetOperatorLiteral = function () { - const strToken = this.EatToken(oLiteralNames.operatorLiteral[0]); + let oPr = this.oLookahead.style; + const strToken = this.EatToken(Literals.operator.id); return { - type: oLiteralNames.operatorLiteral[num], + type: Struc.char, value: strToken.data, + style: oPr }; }; CLaTeXParser.prototype.IsAccentLiteral = function () { - return this.oLookahead.class === MathLiterals.accent.id; + return this.oLookahead.class === Literals.accent.id; }; CLaTeXParser.prototype.GetAccentLiteral = function (oBase) { let strAccent, - oResultAccent; - - //this.oLookahead.data = MathLiterals.accent.toSymbols[this.oLookahead.data]; + oResultAccent, + oPr; if (this.oLookahead.data === "'" || this.oLookahead.data === "''") { return this.GetSubSupLiteral(oBase); - // strAccent = this.EatToken(this.oLookahead.class).data; - // oResultAccent = { - // type: oLiteralNames.subSupLiteral[num], - // value: oBase, - // up: { - // type: oLiteralNames.charLiteral[num], - // value: strAccent, - // } - // }; } else { - strAccent = this.oLookahead.data; + oPr = this.oLookahead.style; + strAccent = this.oLookahead; this.EatToken(this.oLookahead.class); - if (MathLiterals.accent.toSymbols[strAccent]) - strAccent = MathLiterals.accent.toSymbols[strAccent]; - - if (this.IsGetBelowAboveLiteral()) - { - return this.GetBelowAboveLiteral({ - type: oLiteralNames.charLiteral[num], - value: strAccent, - }) - } + strAccent.value = AscMath.MathLiterals.accent.LaTeX[strAccent.data]; oBase = this.GetArguments(1); oBase = this.GetContentOfLiteral(oBase); - // \bar{\bar{}} - if (oBase && oBase.type === MathLiterals.accent.id && oBase.value === "̅" && strAccent === "̅") - { - oResultAccent = { - type: MathLiterals.accent.id, - base: oBase.base, - value: "̿", - } - } - else - { - oResultAccent = { - type: MathLiterals.accent.id, - base: oBase, - value: strAccent, - }; - } + oResultAccent = { + type: Struc.accent, + base: oBase, + value: strAccent, + style: oPr, + }; } return oResultAccent; }; CLaTeXParser.prototype.IsFractionLiteral = function () { - return ( - this.oLookahead.class === "\\frac" + return this.oLookahead.data === "\\frac" || this.oLookahead.data === "\\binom" - || this.oLookahead.class === "\\cfrac" - || this.oLookahead.class === "\\sfrac" - ); + || this.oLookahead.data === "\\cfrac" + || this.oLookahead.data === "\\sfrac"; }; + CLaTeXParser.prototype.GetFractionType = function (str) + { + switch (str) + { + case "\\frac" : return BAR_FRACTION; break; + case "\\over" : return BAR_FRACTION; break; + case "\\binom" : return NO_BAR_FRACTION; break; + case "\\atop" : return NO_BAR_FRACTION; break; + default : return SKEWED_FRACTION; break; + } + } CLaTeXParser.prototype.GetFractionLiteral = function () { - let intTypeFraction = AscMath.GetFractionType(this.oLookahead.data); + let strName = this.oLookahead.data; + let oFracStyle = this.oLookahead.style; + let type = this.GetFractionType(this.oLookahead.data); + this.EatToken(this.oLookahead.class); - const oResult = this.GetArguments(2); - return { - type: oLiteralNames.fractionLiteral[num], - up: oResult[0], - down: oResult[1], - fracType: intTypeFraction, + let oResult = this.GetArguments(2); + + let oFrac = { + type: Struc.frac, + up: oResult[0] || {}, + down: oResult[1] || {}, + fracType: type, + style: oFracStyle, }; + + if (strName === '\\binom') + { + return { + type: Struc.bracket_block, + left: "(", + right: ")", + value: [oFrac], + style: { + startStyle : oFracStyle, + endStyle : oFracStyle, + middle: oFracStyle, + }, + }; + } + + return oFrac }; - CLaTeXParser.prototype.IsExpBracket = function () + CLaTeXParser.prototype.IsOverLikeLiteral = function () { - return ( - this.oLookahead.class === oLiteralNames.opOpenBracket[0] || - this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0] || - this.oLookahead.data === "\\left" - ); - }; - CLaTeXParser.prototype.IsBracketLiteral = function () + return this.oLookahead.data === "\\over" + || this.oLookahead.data === "\\atop" + } + CLaTeXParser.prototype.GetOverLikeLiteral = function (oNum) { - return this.oLookahead.class === oLiteralNames.opOpenBracket[0] || - this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0] || - this.oLookahead.class === oLiteralNames.opCloseBracket[0]; + if (!oNum) + oNum = this.GetArguments(1); + + let oFracStyle = this.oLookahead.style; + let type = this.GetFractionType(this.oLookahead.data); + this.EatToken(this.oLookahead.class); + let oDen = this.GetArguments(1); + + return { + type: Struc.frac, + up: oNum || {}, + down: oDen || {}, + fracType: type, + style: oFracStyle, + }; } + CLaTeXParser.prototype.IsExpBracket = function () + { + return this.oLookahead.class === Literals.lrBrackets.id + || this.oLookahead.class === Literals.lBrackets.id + || this.oLookahead.data === "\\left"; + }; CLaTeXParser.prototype.GetBracketLiteral = function () { let arrBracketContent, strLeftSymbol, - strRightSymbol; + strRightSymbol, + startStyle, + middle_styles = [], + endStyle; + + let isRightAndLeft = false; + this.SaveState(this.oLookahead); if (this.oLookahead.data === "\\left") { + if (this.oLookahead.data === "\\left") + isRightAndLeft = true; + this.EatToken(this.oLookahead.class); - if (this.IsBracketLiteral() || this.oLookahead.data === ".") + if (this.oLookahead.data !== "\\left" + && this.oLookahead.class === Literals.lBrackets.id + || this.oLookahead.data === "." + || this.oLookahead.class === Literals.lrBrackets.id + || this.oLookahead.class === Literals.rBrackets.id) + { + startStyle = this.oLookahead.style; strLeftSymbol = this.EatToken(this.oLookahead.class).data; + } + else + { + this.RestoreState(); + let oData = this.oLookahead; + this.EatToken(this.oLookahead.class); + return { + type: Struc.char, + value: oData.data, + style: oData.style, + } + } - arrBracketContent = this.GetContentOfBracket(); + arrBracketContent = this.GetContentOfBracket("\\right", middle_styles); if (this.oLookahead.data === "\\right") { + if (this.oLookahead.data === "\\right" && isRightAndLeft) + isRightAndLeft = true; + else + isRightAndLeft = false; + this.EatToken(this.oLookahead.class); - if (this.IsBracketLiteral() || this.oLookahead.data === ".") { + if (this.oLookahead.data !== "\\right" + && this.oLookahead.class === Literals.rBrackets.id + || this.oLookahead.data === "." + || this.oLookahead.class === Literals.lrBrackets.id + || this.oLookahead.class === Literals.lBrackets.id) + { + endStyle = this.oLookahead.style; strRightSymbol = this.EatToken(this.oLookahead.class).data; } } } - else if (this.oLookahead.class === oLiteralNames.opOpenBracket[0] || this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0]) + else if (this.oLookahead.class === Literals.lBrackets.id || this.oLookahead.class === Literals.lrBrackets.id) { - strLeftSymbol = this.EatToken(this.oLookahead.class).data; + startStyle = this.oLookahead.style; + strLeftSymbol = this.EatToken(this.oLookahead.class).data; if (this.oLookahead.data === "_" || this.oLookahead.data === "^") - { - return this.GetPreScriptLiteral() + return this.GetPreScriptLiteral(); + + if (this.oLookahead.class === undefined) { + return { + type: Struc.char, + value: strLeftSymbol, + style: startStyle, + } } - if (strLeftSymbol === "|" || strLeftSymbol === "‖") + if (strLeftSymbol === "|" || strLeftSymbol === "‖" || strLeftSymbol === "\\|") { - this.SaveState(this.oLookahead); - arrBracketContent = this.GetContentOfBracket(strLeftSymbol) + arrBracketContent = this.GetContentOfBracket(strLeftSymbol, middle_styles); } else { - arrBracketContent = this.GetContentOfBracket() + arrBracketContent = this.GetContentOfBracket(undefined, middle_styles); } - // if (this.oLookahead.class === undefined) { - // this.RestoreState(); - // return { - // type: oLiteralNames.charLiteral[num], - // value: strLeftSymbol, - // } - // } - - if (this.oLookahead.class === oLiteralNames.opCloseBracket[0] || this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0]) + if (this.oLookahead.class === Literals.rBrackets.id || this.oLookahead.class === Literals.lrBrackets.id) { + endStyle = this.oLookahead.style; strRightSymbol = this.EatToken(this.oLookahead.class).data; } } + + if (strLeftSymbol === "{" && strRightSymbol === "}" && !isRightAndLeft) + return arrBracketContent; + return { - type: oLiteralNames.bracketBlockLiteral[num], + type: Struc.bracket_block, left: strLeftSymbol, right: strRightSymbol, value: arrBracketContent, + style: { + startStyle : startStyle, + endStyle : endStyle, + middle: middle_styles, + }, }; }; - CLaTeXParser.prototype.GetContentOfBracket = function (strLeftSymbol) + CLaTeXParser.prototype.GetContentOfBracket = function (strLeftSymbol, arrMiddleStyles) { let arrContent = []; let intCountOfBracketBlock = 1; - while (this.IsElementLiteral() || this.oLookahead.data === "∣" || this.oLookahead.data === "\\mid"|| this.oLookahead.data === "ⓜ") + while (this.IsElementLiteral() + || this.oLookahead.data === "∣" + || this.oLookahead.data === "\\mid" + || this.oLookahead.data === "ⓜ") { + if (strLeftSymbol && this.oLookahead.data === strLeftSymbol) + break; + + if (this.oLookahead.data === "\\right") + break; + if (this.IsElementLiteral()) { - let oToken = [this.GetExpressionLiteral(strLeftSymbol)]; + // normal space always skip in LaTeX brackets + this.SkipFreeSpace(); + + let oToken = [this.GetExpressionLiteral([strLeftSymbol])]; if ((oToken && !Array.isArray(oToken)) || Array.isArray(oToken) && oToken.length > 0) { arrContent.push(oToken) } + + // normal space always skip in LaTeX brackets + this.SkipFreeSpace(); } else { + arrMiddleStyles.push(this.oLookahead.style) this.EatToken(this.oLookahead.class); intCountOfBracketBlock++; + // normal space always skip in LaTeX brackets + this.SkipFreeSpace(); } } @@ -381,44 +505,48 @@ { return this.oLookahead.class !== null && this.IsNotEscapeSymbol() && ( this.IsFractionLiteral() || - this.oLookahead.class === oLiteralNames.numberLiteral[0] || - this.oLookahead.class === oLiteralNames.charLiteral[0] || - this.oLookahead.class === oLiteralNames.otherLiteral[0] || - this.oLookahead.class === oLiteralNames.spaceLiteral[0] || + this.oLookahead.class === Literals.number.id || + this.oLookahead.class === Literals.char.id || + this.oLookahead.class === Literals.space.id || this.IsSqrtLiteral() || this.IsExpBracket() || this.IsFuncLiteral() || this.oLookahead.class === "\\middle" || this.IsAccentLiteral() || this.IsPreScript() || - this.IsChangeMathFont() || + this.IsMathFontLiteral() || this.oLookahead.class === "{" || - this.oLookahead.class === oLiteralNames.operatorLiteral[0] || + this.oLookahead.class === Literals.operator.id || this.IsReactLiteral() || this.IsBoxLiteral() || - this.oLookahead.class === oLiteralNames.opDecimal[0] || + // this.oLookahead.class === oLiteralNames.opDecimal[0] || this.IsMatrixLiteral() || this.IsHBracket() || this.oLookahead.data === "\\below" || this.oLookahead.data === "\\above" || this.IsOverUnderBarLiteral() || this.IsTextLiteral() || - this.IsSpecialSymbol() + this.IsSpecialSymbol() || + this.oLookahead.class === Literals.other.id || + this.oLookahead.class === Literals.operand.id || + this.IsHorizontalArrowLiteral() || + this.oLookahead.class === Literals.punct.id ); }; CLaTeXParser.prototype.IsSpecialSymbol = function () { return this.oLookahead.data === "/" || this.oLookahead.data === "&" || - this.oLookahead.data === "@" || - this.oLookahead.data === "." || - this.oLookahead.data === "," + this.oLookahead.data === "@"; } CLaTeXParser.prototype.GetSpecialSymbol = function () { + let oData = this.oLookahead; + this.EatToken(this.oLookahead.class) return { - type: oLiteralNames.charLiteral[num], - value: this.EatToken(this.oLookahead.class).data + type: Struc.char, + value: oData.data, + style: oData.style, } } CLaTeXParser.prototype.GetElementLiteral = function () @@ -431,27 +559,39 @@ { return this.GetFractionLiteral(); } - else if (this.oLookahead.class === oLiteralNames.numberLiteral[0]) + else if (this.oLookahead.class === Literals.number.id) { return this.GetNumberLiteral(); } - else if (this.oLookahead.class === oLiteralNames.charLiteral[0]) + else if (this.oLookahead.class === Literals.operand.id) + { + return this.GetOperandLiteral(); + } + else if (this.oLookahead.class === Literals.char.id) { return this.GetCharLiteral(); } - else if (this.oLookahead.class === oLiteralNames.otherLiteral[0]) + else if (this.oLookahead.class === Literals.punct.id) { - return this.GetOtherLiteral(); + return this.ReadTokensWhileEnd(Literals.punct, Struc.char); } - else if (this.oLookahead.class === oLiteralNames.opDecimal[0]) + else if (this.IsHorizontalArrowLiteral()) { - let strDecimalLiteral = this.EatToken(this.oLookahead.class).data; - return { - type: oLiteralNames.opDecimal[num], - value: strDecimalLiteral - } + return this.GetHorizontalArrowLiteral(); } - else if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) + else if (this.oLookahead.class === Literals.char.id) + { + return this.GetOtherLiteral(); + } + // else if (this.oLookahead.class === oLiteralNames.opDecimal[0]) + // { + // let strDecimalLiteral = this.EatToken(this.oLookahead.class).data; + // return { + // type: oLiteralNames.opDecimal[num], + // value: strDecimalLiteral + // } + // } + else if (this.oLookahead.class === Literals.space.id) { return this.GetSpaceLiteral(); } @@ -483,18 +623,15 @@ { return this.GetPreScriptLiteral(); } - else if (this.IsChangeMathFont()) + else if (this.IsMathFontLiteral()) { return this.GetMathFontLiteral(); } - // else if (this.IsSymbolLiteral()) { - // return this.GetSymbolLiteral() - // } else if (this.oLookahead.data === "{") { return this.GetArguments(1)[0]; } - else if (this.oLookahead.class === oLiteralNames.operatorLiteral[0]) + else if (this.oLookahead.class ===Literals.operator.id) { return this.GetOperatorLiteral() } @@ -526,58 +663,83 @@ { this.EatToken(this.oLookahead.class); return { - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: "/", } } }; - CLaTeXParser.prototype.IsGetBelowAboveLiteral = function() + CLaTeXParser.prototype.IsHorizontalArrowLiteral = function() { - return this.oLookahead.data === "\\below" || this.oLookahead.data === "\\above"; + return this.oLookahead.class === Literals.horizontal.id; } - CLaTeXParser.prototype.GetBelowAboveLiteral = function(base) + CLaTeXParser.prototype.GetHorizontalArrowLiteral = function () { - let isBelow = true; - if (this.oLookahead.data === "\\above") - isBelow = false; + let oStyle = this.oLookahead.style; + let oData = this.EatToken(this.oLookahead.class); + oData.data = Literals.horizontal.LaTeX[oData.data]; - if (undefined === base) + if (this.IsGetBelowAboveLiteral()) { + let isBelow = this.oLookahead.data === "\\below" ? VJUST_TOP : VJUST_BOT; + this.EatToken(this.oLookahead.class); + let oContent = this.GetArguments(1); + return { - type: oLiteralNames.belowAboveLiteral[num], - base: {}, - value: {}, + type: Struc.group_character, + value: oContent, + hBrack: oData, + down: undefined, + up: undefined, + style: oStyle, isBelow: isBelow, } } - let strBaseContent = AscMath.AutoCorrection[base.value]; - if (strBaseContent) - { - base.value = strBaseContent; + return { + type: Struc.char, + value: oData.data, + style: oStyle, } + } + CLaTeXParser.prototype.IsGetBelowAboveLiteral = function() + { + return this.oLookahead.data === "\\below" || this.oLookahead.data === "\\above"; + } + CLaTeXParser.prototype.GetBelowAboveLiteral = function(base) + { + let oStyle = this.oLookahead.style; + let isBelow = false; + if (this.oLookahead.data === "\\above") + isBelow = true; this.EatToken(this.oLookahead.class); let oContent = this.GetArguments(1); - if(base && (base.type === oLiteralNames.functionLiteral[num] || base.type === oLiteralNames.functionWithLimitLiteral[num])) + if(base && base.type === Struc.func) { + this.SkipFreeSpace(); let third = this.GetArguments(1); return { - type: oLiteralNames.functionWithLimitLiteral[num], + type: Struc.func_lim, value: base.value, - up: !isBelow ? oContent : undefined, - down: isBelow ? oContent : undefined, + up: isBelow ? oContent : undefined, + down: !isBelow ? oContent : undefined, third: third, + style: base.style, } } + let strNewBaseValue = AscMath.ConvertWord(base.value, true); + if (strNewBaseValue) + base.value = strNewBaseValue; + return { - type: oLiteralNames.belowAboveLiteral[num], + type: Struc.limit, base: base, value: oContent, - isBelow: isBelow, - }; + isBelow: (isBelow === false) ? VJUST_TOP : VJUST_BOT, + style: oStyle, + } } CLaTeXParser.prototype.IsTextLiteral = function () { @@ -589,7 +751,7 @@ let oContent = this.GetTextArgument(); return { - type: oLiteralNames.textPlainLiteral[num], + type: Struc.char, value: oContent, } } @@ -610,136 +772,153 @@ } CLaTeXParser.prototype.IsFuncLiteral = function () { - return this.oLookahead.class === oLiteralNames.functionLiteral[0] || this.oLookahead.class === oLiteralNames.opNaryLiteral[0] + return this.oLookahead.class === Literals.func.id || this.oLookahead.class === Literals.nary.id }; CLaTeXParser.prototype.GetFuncLiteral = function () { - let oOutput; let oFuncContent = this.EatToken(this.oLookahead.class); - if (this.oLookahead.class === "\\limits") { + let oPr = oFuncContent.style; + + if (this.oLookahead.class === "\\limits") this.EatToken("\\limits"); - } if (this.oLookahead.data === " ") - { this.EatToken(this.oLookahead.class); - } let oThirdContent = !this.IsSubSup() && !this.IsGetBelowAboveLiteral() ? this.GetArguments(1) : undefined; - let name = oFuncContent.data[0] === "\\" ? oFuncContent.data.slice(1) : oFuncContent.data; - if (LimitFunctions.includes(name)) { - oOutput = { - type: oLiteralNames.functionWithLimitLiteral[num], - value: name, + let name = oFuncContent.data; + + if (oFuncContent.class === Literals.nary.id) + { + return { + type: Struc.nary, + value: Literals.nary.LaTeX[oFuncContent.data], + style: oPr, + third: oThirdContent } } - else if (oFuncContent.class === oLiteralNames.opNaryLiteral[0]) { - let str = MathLiterals.nary.toSymbols[oFuncContent.data]; - oOutput = { - type: oLiteralNames.opNaryLiteral[num], - value: str, + else if (!oThirdContent) + { + return { + type: Struc.func, + value: oFuncContent.data.slice(1), + style: oPr } } - else { - if (FunctionNames.includes(name)) { - oFuncContent.data = name; + else if (AscMath.MathLiterals.func.IsLaTeXIncludeNormal(name)) + { + return { + type: Struc.func, + value: { + type: Struc.char, + value: oFuncContent.data.slice(1), + style: oPr + }, + style: oPr, + third: oThirdContent } - oOutput = { - type: oLiteralNames.functionLiteral[num], - value: oFuncContent.data, - }; } - - if (oThirdContent) { - oOutput.third = oThirdContent; + else if (AscMath.MathLiterals.func.IsLaTeXIncludeLimit(name)) + { + return { + type: Struc.func_lim, + value: { + type: Struc.char, + value: oFuncContent.data.slice(1), + style: oPr + }, + style: oPr, + third: oThirdContent + } } - return oOutput; }; CLaTeXParser.prototype.IsReactLiteral = function () { - return this.oLookahead.class === oLiteralNames.rectLiteral[0] + return this.oLookahead.class === Literals.rect.id; }; CLaTeXParser.prototype.GetRectLiteral = function () { + let oCtrPr = this.oLookahead.style; this.EatToken(this.oLookahead.class); let oContent = this.GetArguments(1); return { - type: oLiteralNames.rectLiteral[num], + type: Struc.rect, value: oContent, + style: oCtrPr, } }; CLaTeXParser.prototype.IsOverUnderBarLiteral = function () { - return this.oLookahead.data === "▁" || this.oLookahead.data === "¯" + return this.oLookahead.data === "\\underline" || this.oLookahead.data === "\\overline" }; CLaTeXParser.prototype.GetUnderOverBarLiteral = function () { - let strUnderOverLine = this.EatToken(this.oLookahead.class).data; - let oOperand = this.GetArguments(1); + let oStyle = this.oLookahead.style; + let strUnderOverLine = this.EatToken(this.oLookahead.class); + let oOperand = this.GetArguments(1); + + strUnderOverLine.data = (strUnderOverLine.data === "\\underline") + ? "▁" + : "¯"; + return { - type: oLiteralNames.overBarLiteral[num], - overUnder: strUnderOverLine, + type: Struc.bar, + bar: strUnderOverLine, value: oOperand, + style: oStyle, }; }; CLaTeXParser.prototype.IsBoxLiteral = function () { - return this.oLookahead.class === oLiteralNames.boxLiteral[0]; + return this.oLookahead.class === Literals.box.id; } CLaTeXParser.prototype.GetBoxLiteral = function () { this.EatToken(this.oLookahead.class); let oContent = this.GetArguments(1); return { - type: oLiteralNames.boxLiteral[num], + type: Struc.box, value: oContent, } }; CLaTeXParser.prototype.GetBorderBoxLiteral = function () { - return this.oLookahead.class === oLiteralNames.borderBoxLiteral[0]; + return this.oLookahead.class === Literals.rect.id; } CLaTeXParser.prototype.IsGetBorderBoxLiteral = function () { this.EatToken(this.oLookahead.class); let oContent = this.GetArguments(1); return { - type: oLiteralNames.borderBoxLiteral[num], + type: Struc.rect, value: oContent, } } CLaTeXParser.prototype.IsHBracket = function () { - return this.oLookahead.class === oLiteralNames.hBracketLiteral[0]; + return this.oLookahead.class === Literals.hbrack.id; }; CLaTeXParser.prototype.GetHBracketLiteral = function () { - let oDown, oUp; - let hBrack = this.oLookahead.data; - this.EatToken(this.oLookahead.class); + let oHBracket = this.oLookahead, + oPr = this.oLookahead.style, + oDown, + oUp; + oHBracket.data = Literals.hbrack.LaTeX[oHBracket.data]; - switch (hBrack) - { - case "\\overbar": hBrack = "¯"; break; - case "\\overbrace": hBrack = "⏞"; break; - case "\\overbracket": hBrack = "⎴"; break; - case "\\overline": hBrack = "¯"; break; - case "\\underline": hBrack = "▁"; break; - case "\\overparen": hBrack = "⏜"; break; - case "\\overshell": hBrack = "⏠"; break; - case "\\underparen": hBrack = "⏝"; break; - case "\\underbrace": hBrack = "⏟"; break; - case "\\undershell": hBrack = "⏡"; break; - case "\\underbracket": hBrack = "⎵"; break; - } + let isBelow = Literals.hbrack.GetPos(oHBracket.data); + + this.EatToken(this.oLookahead.class); let oContent = this.GetArguments(1); - if (this.oLookahead.data === "_" || this.oLookahead.data === "^") + this.SkipFreeSpace(); + + if (this.IsSubSup()) { - if (this.oLookahead.class === "_") + if (this.oLookahead.data === "_") { this.EatToken(this.oLookahead.class); oDown = this.GetArguments(1); @@ -750,12 +929,15 @@ oUp = this.GetArguments(1); } } + return { - type: oLiteralNames.hBracketLiteral[num], + type: Struc.group_character, value: oContent, - hBrack: hBrack, + hBrack: oHBracket, down: oDown, up: oUp, + style: oPr, + isBelow: isBelow, } }; CLaTeXParser.prototype.GetWrapperElementLiteral = function () @@ -766,16 +948,24 @@ if (this.IsSubSup() || this.oLookahead.class === "\\limits") { - return this.GetSubSupLiteral(oWrapperContent); + while (this.IsSubSup()) + { + oWrapperContent = this.GetSubSupLiteral(oWrapperContent); + } + return oWrapperContent; + } + else if (this.oLookahead.class === Literals.accent.id) + { + return this.GetAccentLiteral(oWrapperContent); } else if (this.IsGetBelowAboveLiteral()) { return this.GetBelowAboveLiteral(oWrapperContent) } - - // else if (this.oLookahead.class === "\\over") { - // //TODO - // } + else if (this.IsOverLikeLiteral()) + { + return this.GetOverLikeLiteral(oWrapperContent); + } return oWrapperContent; } @@ -784,7 +974,7 @@ { let oWrapperContent = this.GetElementLiteral(); - if (this.oLookahead.class === MathLiterals.accent.id) + if (this.oLookahead.class === Literals.accent.id) { return this.GetAccentLiteral(oWrapperContent); } @@ -797,11 +987,16 @@ }; CLaTeXParser.prototype.IsSubSup = function () { - return (this.oLookahead.class === "^" || this.oLookahead.class === "_"); + return this.oLookahead.data === "^" || this.oLookahead.data === "_"; }; CLaTeXParser.prototype.GetSubSupLiteral = function (oBaseContent, isSingle) { - let isLimits, oDownContent, oUpContent, oThirdContent; + let isLimits, + oDownContent, + oUpContent, + oThirdContent, + oSubStyle, + oSupStyle; if (undefined === oBaseContent) { @@ -813,7 +1008,7 @@ isLimits = true; } - if (oBaseContent.type === oLiteralNames.bracketBlockLiteral[num] && oBaseContent.left === "{" && oBaseContent.right === "}") + if (oBaseContent && oBaseContent.type === Struc.bracket_block && oBaseContent.left === "{" && oBaseContent.right === "}") { oBaseContent = oBaseContent.value; } @@ -821,16 +1016,18 @@ if (this.oLookahead.data === "'" || this.oLookahead.data === "''") { oUpContent = { - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: this.EatToken(this.oLookahead.class).data } } - if (this.oLookahead.class === "_") + if (this.oLookahead.data === "_") { + oSubStyle = this.oLookahead.style; oDownContent = this.GetPartOfSupSup(); - if (this.oLookahead.class === "^" && isSingle !== true) + if (this.oLookahead.data === "^" && isSingle !== true) { + oSupStyle = this.oLookahead.style; oUpContent = this.GetPartOfSupSup(); } else if (oDownContent && oDownContent.down === undefined && oDownContent.base) @@ -838,11 +1035,13 @@ oDownContent = oDownContent.base; } } - else if (this.oLookahead.class === "^") + else if (this.oLookahead.data === "^") { + oSupStyle = this.oLookahead.style; oUpContent = this.GetPartOfSupSup(); - if (this.oLookahead.class === "_" && isSingle !== true) + if (this.oLookahead.data === "_" && isSingle !== true) { + oSubStyle = this.oLookahead.style; oDownContent = this.GetPartOfSupSup(); } else if (oUpContent && oUpContent.up === undefined && oUpContent.base && oUpContent.type !== "BelowAboveLiteral") @@ -851,30 +1050,22 @@ } } - if ( - oBaseContent && - (oBaseContent.type === oLiteralNames.functionLiteral[num] || - oBaseContent.type === oLiteralNames.opNaryLiteral[num] || - oBaseContent.type === oLiteralNames.functionWithLimitLiteral[num]) - ) { + if (oBaseContent && (oBaseContent.type === Struc.func || oBaseContent.type == Struc.func_lim || oBaseContent.type === Struc.nary)) + { + this.SkipOneSpace(); oThirdContent = this.GetArguments(1); } return { - type: oLiteralNames.subSupLiteral[num], + type: Struc.sub_sub, value: oBaseContent, up: oUpContent, down: oDownContent, third: oThirdContent, - isLimits: isLimits + isLimits: isLimits, + style: {supStyle: oSupStyle, subStyle: oSubStyle}, }; }; - CLaTeXParser.prototype.GetOneChar = function () - { - let char = this.oLookahead.data; - this.EatToken(this.oLookahead.class); - return char; - } CLaTeXParser.prototype.GetPartOfSupSup = function () { let oElement; @@ -884,17 +1075,24 @@ if (this.oLookahead.data === "'" || this.oLookahead.data === "''") { oElement = { - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: this.EatToken(this.oLookahead.class).data } } - else { - oElement = (this.oLookahead.data === "{") - ? this.GetArguments(1) - : this.GetOneChar(); + else + { + if (this.oLookahead.data === "{") + { + oElement = this.GetArguments(1); + + } + else + { + oElement = this.GetWrapperElement2(); + } } - if (this.oLookahead.class === strSymbol) { + if (this.oLookahead.data === strSymbol) { oElement = this.GetSubSupLiteral(oElement, true); } return oElement; @@ -910,15 +1108,15 @@ let oBaseContent; let oOutput; - if (this.oLookahead.class === "_") { + if (this.oLookahead.data === "_") { oDownContent = this.GetPartOfSupSup(); - if (this.oLookahead.class === "^") { + if (this.oLookahead.data === "^") { oUpContent = this.GetPartOfSupSup(); } } - else if (this.oLookahead.class === "^") { + else if (this.oLookahead.data === "^") { oUpContent = this.GetPartOfSupSup(); - if (this.oLookahead.class === "_") { + if (this.oLookahead.data === "_") { oDownContent = this.GetPartOfSupSup(); } } @@ -927,77 +1125,80 @@ this.EatToken(this.oLookahead.class) } + this.SkipFreeSpace(); oBaseContent = this.GetElementLiteral(); - oOutput = { - type: oLiteralNames.preScriptLiteral[num], - }; - if (oUpContent) { + oOutput = { type: Struc.pre_script }; + + if (oUpContent) oOutput.up = oUpContent; - } - if (oDownContent) { + + if (oDownContent) oOutput.down = oDownContent; - } - if (oBaseContent) { + + if (oBaseContent) oOutput.value = oBaseContent; - } + return oOutput; }; CLaTeXParser.prototype.IsSqrtLiteral = function () { - return this.oLookahead.class === oLiteralNames.sqrtLiteral[0]; + return this.oLookahead.class === Literals.radical.id; }; CLaTeXParser.prototype.GetSqrtLiteral = function () { - let oBaseContent, oIndexContent, oOutput; - this.EatToken(oLiteralNames.sqrtLiteral[0]); - if (this.oLookahead.data === "[") { + let oBaseContent, + oIndexContent, + oOutput, + oStyle = this.oLookahead.style; + + this.EatToken(Literals.radical.id); + if (this.oLookahead.data === "[") + { this.EatToken(this.oLookahead.class); - oIndexContent = this.GetExpressionLiteral("]"); - if (this.oLookahead.data === "]") { + oIndexContent = this.GetExpressionLiteral(["]"]); + if (this.oLookahead.data === "]") + { this.EatToken(this.oLookahead.class); } } oBaseContent = this.GetArguments(1); oOutput = { - type: oLiteralNames.sqrtLiteral[num], + type: Struc.radical, value: oBaseContent, + style: oStyle, }; - if (oIndexContent) { + + if (oIndexContent) oOutput.index = oIndexContent; - } return oOutput; }; - CLaTeXParser.prototype.IsChangeMathFont = function () + CLaTeXParser.prototype.IsMathFontLiteral = function () { - return this.oLookahead.class === oLiteralNames.mathFontLiteral[0] - }; + return this.oLookahead.class === Literals.font.id; + } CLaTeXParser.prototype.GetMathFontLiteral = function () { let intPrevType = this.intMathFontType; this.intMathFontType = GetTypeFont[this.oLookahead.data]; - this.EatToken(this.oLookahead.class); - if (this.oLookahead.data !== "{") { - this.isReceiveOneTokenAtTime = true; - } + this.EatToken(this.oLookahead.class); + let oOutput = this.GetArguments(1); - let oOutput = { - type: oLiteralNames.mathFontLiteral[num], - value: this.GetArguments(1) - }; - this.isReceiveOneTokenAtTime = false; this.intMathFontType = intPrevType; return oOutput; }; CLaTeXParser.prototype.IsMatrixLiteral = function () { - return ( - this.oLookahead.class === oLiteralNames.matrixLiteral[0] || - this.oLookahead.data === "█" || - this.oLookahead.data === "■" || - this.oLookahead.data === "\\substack" - ) + return this.oLookahead.class === Literals.matrix.id + || this.oLookahead.data === "\\substack" + && !this.IsEndMatrixLiteral() + }; + CLaTeXParser.prototype.IsEndMatrixLiteral = function () + { + return this.oLookahead.class === Literals.matrix.id + && Literals.matrix.LaTeX[this.oLookahead.data] === 2 + || this.oLookahead.data === "}"; }; CLaTeXParser.prototype.IsAlignBlockForArray = function () { @@ -1023,7 +1224,7 @@ return false; } - if (oAlignBlock.type === oLiteralNames.charLiteral[num]) + if (oAlignBlock.type === Struc.char) { let strAlignBlock = oAlignBlock.value.trim(); @@ -1034,12 +1235,14 @@ { this.RestoreState(); } - } + }; CLaTeXParser.prototype.GetMatrixLiteral = function () { let strMatrixType; + let isArray = this.oLookahead.data === "\\substack"; - switch (this.oLookahead.data) { + switch (this.oLookahead.data) + { case "\\begin{cases}": strMatrixType = "{"; break @@ -1066,6 +1269,7 @@ strMatrixType = "‖"; break; case "\\begin{array}": + case "\\begin{matrix}": case "\\begin{equation}": case "\\substack": case "■": @@ -1091,28 +1295,34 @@ //TODO align let align = this.IsAlignBlockForArray(); + this.SkipFreeSpace(); + while (this.oLookahead.data === "[") { this.GetArguments(1); } let arrMatrixContent = []; + let styles = {}; + styles.head = this.oLookahead.style; + styles.cols = {}; + styles.rows = {}; + let nRow = 0; - let nCounter = 0; - while (this.oLookahead.data !== "}" && this.oLookahead.class !== "endOfMatrix") + while (this.oLookahead.data !== "}" && !this.IsEndMatrixLiteral()) { - let oContent = this.GetRayOfMatrixLiteral(); - if (oContent === undefined) - { - oContent = []; - nCounter++; - } - arrMatrixContent.push(oContent); - } + let oContent = this.GetRayOfMatrixLiteral(styles.cols, styles.rows, nRow) - while(arrMatrixContent.length < 1) - { - arrMatrixContent.push([]); + if (oContent) + arrMatrixContent.push(oContent); + else if (oContent === false) + arrMatrixContent.push({}, {}); + else if (oContent === undefined) + arrMatrixContent.push({}); + else if (this.IsEndMatrixLiteral()) + arrMatrixContent.push({}, {}); + + nRow++; } let intMaxLengthOfMatrixRow = -Infinity; @@ -1121,21 +1331,15 @@ for (let i = 0; i < arrMatrixContent.length; i++) { let arrContent = arrMatrixContent[i]; - if (arrContent === undefined) - { - arrMatrixContent[i] = arrContent = []; - } intMaxLengthOfMatrixRow = arrContent.length; intIndexOfMaxMatrixRow = i; } for (let i = 0; i < arrMatrixContent.length; i++) { - - if (i !== intIndexOfMaxMatrixRow) { - + if (i !== intIndexOfMaxMatrixRow) + { let arrMatrix = arrMatrixContent[i]; - for (let j = arrMatrix.length; j < intMaxLengthOfMatrixRow; j++) { arrMatrix.push({}); @@ -1143,65 +1347,68 @@ } } - if (this.oLookahead.data === "}" || this.oLookahead.class === "endOfMatrix") + if (this.IsEndMatrixLiteral()) { this.EatToken(this.oLookahead.class) } this.isNowMatrix = false; - if (strMatrixType.length > 0) - { - return { - type: oLiteralNames.bracketBlockLiteral[num], - value: { - type: oLiteralNames.matrixLiteral[num], - value: arrMatrixContent, - }, - left: strMatrixType.length === 1 ? strMatrixType : strMatrixType[0], - right: strMatrixType.length === 1 ? strMatrixType : strMatrixType[1], - } - } - return { - type: oLiteralNames.matrixLiteral[num], - value: arrMatrixContent + type: isArray ? Struc.array : Struc.matrix, + value: arrMatrixContent, + style: styles, + strMatrixType: strMatrixType, } }; - CLaTeXParser.prototype.GetRayOfMatrixLiteral = function () + CLaTeXParser.prototype.GetRayOfMatrixLiteral = function (cols, rows, nRow) { let arrRayContent; - while (this.oLookahead.data !== "\\\\" && this.oLookahead.data !== "}" && this.oLookahead.class !== "endOfMatrix") { - arrRayContent = this.GetElementOfMatrix(); + while (this.oLookahead.class !== Literals.arrayMatrix.id && !this.IsEndMatrixLiteral()) + { + rows[nRow] = {} + arrRayContent = this.GetElementOfMatrix(rows[nRow]); + nRow++; } - if (this.oLookahead.data === "\\\\") + if (this.oLookahead.class === Literals.arrayMatrix.id) { - this.EatToken(this.oLookahead.class); + cols[nRow] = this.oLookahead.style; + this.EatToken(this.oLookahead.class) + + if (!arrRayContent && this.IsEndMatrixLiteral()) + return false; } - return arrRayContent; + this.SkipFreeSpace(); + return arrRayContent }; - CLaTeXParser.prototype.GetElementOfMatrix = function () + CLaTeXParser.prototype.GetElementOfMatrix = function (oStyle) { let arrRow = []; let intLength = 0; let intCount = 0; let isAlredyGetContent = false; - while (this.IsElementLiteral() || this.oLookahead.class === "&") { + while (this.IsElementLiteral() || this.oLookahead.data === "&" ) + { let intCopyOfLength = intLength; - if (this.oLookahead.class !== "&") + if (this.oLookahead.data === "\\\\") + break; + + if (this.oLookahead.data !== "&") { - arrRow.push(this.GetExpressionLiteral("&")); + arrRow.push(this.GetExpressionLiteral(["&", "\\\\"])); intLength++; isAlredyGetContent = true; + this.SkipFreeSpace(); } else { - this.EatToken("&"); + oStyle[intCount] = this.oLookahead.style; + this.EatToken(this.oLookahead.class); if (isAlredyGetContent === false) { @@ -1213,7 +1420,10 @@ { intCount++; } + + this.SkipFreeSpace(); } + } if (intLength !== intCount + 1) @@ -1223,25 +1433,38 @@ arrRow.push({}); } } + else if (arrRow.length === 1 && arrRow[0].length === 0) + { + arrRow.push([]); + } return arrRow; }; - CLaTeXParser.prototype.IsExpressionLiteral = function(strBreak) + CLaTeXParser.prototype.IsExpressionLiteral = function(arrBreak) { const arrEndOfExpression = ["}", "\\endgroup", "\\end", "┤"]; + let isEndOfExp = !arrEndOfExpression.includes(this.oLookahead.data); + + let isEnd = false; + + if (Array.isArray(arrBreak)) + isEnd = !arrBreak.includes(this.oLookahead.data); + else + isEnd = this.oLookahead.data !== arrBreak; + + let isEscape = this.oLookahead.data !== this.EscapeSymbol - //todo refactor - return this.IsElementLiteral() && - this.oLookahead.data !== strBreak && - this.oLookahead.data !== this.EscapeSymbol && - !arrEndOfExpression.includes(this.oLookahead.data) + return isEnd + && isEscape + && isEndOfExp + && this.IsElementLiteral(); }; - CLaTeXParser.prototype.GetExpressionLiteral = function (strBreakSymbol) + CLaTeXParser.prototype.GetExpressionLiteral = function (arrBreakSymbol) { - this.EscapeSymbol = strBreakSymbol; + this.EscapeSymbol = arrBreakSymbol; const arrExpList = []; - while (this.IsExpressionLiteral(strBreakSymbol)) + while (this.IsExpressionLiteral(arrBreakSymbol)) { if (this.IsPreScript()) arrExpList.push(this.GetPreScriptLiteral()); @@ -1254,34 +1477,43 @@ }; CLaTeXParser.prototype.EatToken = function (tokenType) { - if (tokenType || this.oLookahead.class === tokenType) { + if (tokenType !== undefined && this.oLookahead.class === tokenType) { const oToken = this.oLookahead; - if (oToken === null) { - console.log('Unexpected end of input, expected: ' + tokenType); - } - if (oToken.class !== tokenType) { - console.log('Unexpected token: ' + oToken.class + ', expected: ' + tokenType); - } + // if (oToken === null) { + // console.log('Unexpected end of input, expected: ' + tokenType); + // } + // if (oToken.class !== tokenType) { + // console.log('Unexpected token: ' + oToken.class + ', expected: ' + tokenType); + // } this.oLookahead = this.oTokenizer.GetNextToken(); return oToken; } }; CLaTeXParser.prototype.SkipFreeSpace = function () { - while (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) { + while (this.oLookahead.data === " ") { this.oLookahead = this.oTokenizer.GetNextToken(); } }; + CLaTeXParser.prototype.SkipOneSpace = function () + { + if (this.oLookahead.data === " ") { + this.oLookahead = this.oTokenizer.GetNextToken(); + } + } CLaTeXParser.prototype.GetArguments = function (intCountOfArguments) { let oArgument = []; while (intCountOfArguments > 0) { + this.SkipFreeSpace(); if (this.oLookahead.data === "{") { + this.SkipFreeSpace(); this.EatToken(this.oLookahead.class); oArgument.push(this.GetExpressionLiteral()); this.EatToken(this.oLookahead.class); } else { + this.SkipFreeSpace(); oArgument.push(this.GetWrapperElementLiteral()); } intCountOfArguments--; diff --git a/word/Math/NamesOfLiterals.js b/word/Math/NamesOfLiterals.js index 79c8cfa984..b031267ff7 100644 --- a/word/Math/NamesOfLiterals.js +++ b/word/Math/NamesOfLiterals.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -34,1117 +34,9 @@ (function (window) { - function LexerLiterals() - { - this.fromSymbols = {}; - this.toSymbols = {}; - - this.Init(); - } - LexerLiterals.prototype.Init = function () - { - - let names = Object.keys(this.toSymbols); - - if (names.length < 1) - return false; - - for (let i = 0; i < names.length; i++) - { - let name = names[i]; - let data = this.toSymbols[name]; - this.private_FromToSymbols(data, name); - } - - return true; - }; - LexerLiterals.prototype.IsIncludes = function (name) - { - if (this.data) - return this.data.includes(name); - - return this.toSymbols[name]; - }; - LexerLiterals.prototype.IsInUnicode = function(strName) - { - return this.fromSymbols[strName] !== undefined; - } - LexerLiterals.prototype.private_Add = function (name, data) - { - this.private_AddToSymbols(name, data); - }; - LexerLiterals.prototype.private_AddToSymbols = function (name, data) - { - this.toSymbols[name] = data; - this.private_FromToSymbols(data, name); - }; - LexerLiterals.prototype.private_FromToSymbols = function (name, data) - { - this.fromSymbols[name] = data; - }; - LexerLiterals.prototype.Add = function (name, data) - { - if (!this.IsIncludes(name)) - { - this.private_Add(name, data); - return true - } - - return false; - }; - LexerLiterals.prototype.DeleteElementByName = function (name) - { - if (this.IsIncludes(name)) - { - let nameFromSymbols = this.toSymbols[name]; - delete this.toSymbols[name]; - delete this.fromSymbols[nameFromSymbols]; - - return true; - } - - return false; - }; - - function Symbols() - { - this.fromSymbols = {}; - this.toSymbols = { - "\\aleph": "ℵ", - "\\alpha": "α", - "\\Alpha": "Α", - }; - this.Init(); - } - Symbols.prototype = Object.create(LexerLiterals.prototype); - Symbols.prototype.constructor = Symbols; - - function OpenBrackets() - { - this.data = ["(", "{", "〖", "⟨", "[", "⌊", "⌈", "⟦"]; - this.fromSymbols = {}; - this.toSymbols = {}; - this.Init(); - } - OpenBrackets.prototype = Object.create(LexerLiterals.prototype); - OpenBrackets.prototype.constructor = OpenBrackets; - - function CloseBrackets() - { - this.data = [ - ")", "}", "⟫", // "\\" - "⟧", "〗", "⟩", "]", "⌋", "⌉", "⟧" - ]; - this.fromSymbols = {}; - this.toSymbols = {}; - this.Init(); - } - CloseBrackets.prototype = Object.create(LexerLiterals.prototype); - CloseBrackets.prototype.constructor = CloseBrackets; - - function OpenCloseBrackets() - { - this.data = ["|", "‖"]; - this.fromSymbols = {}; - this.toSymbols = {}; - this.Init(); - } - OpenCloseBrackets.prototype = Object.create(LexerLiterals.prototype); - OpenCloseBrackets.prototype.constructor = OpenCloseBrackets; - - function Operators() - { - this.data = [ - "⨯", "⨝", "⟕", "⟖", "⟗", "⋉", "⋊", "▷", - "+", "-", "*", "=", "≶", "≷", "≜", "⇓", "⇐", - "⇔", "⟸", "⟺", "⟹", "⇒", "⇑", "⇕", "∠", "≈", - "⬆", "∗", "≍", "∵", "⋈", "⊡", "⊟", "⊞", "⤶", - "∙", "⋅", "⋯", "∘", "♣", "≅", "∋", "⋱", "≝", "℃", - "℉", "°", "⊣", "⋄", "♢", "÷", "≐", "…", "↓", - "⬇", "∅", "#", "≡", "∃", "∀", "⌑", "≥", - "←", "≫", "↩", "♡", "∈", "≤", "↪", "←", "↽", - "↼", "↔", "≤", "⬄", "⬌", "≪", "⇋", "↦", "⊨", - "∓", "≠", "↗", "¬", "≠", "∌", "∉", "∉", "ν", - "↖", "ο", "⊙", "⊖", "⊕", "⊗", "⊥", "±", - "≺", "≼", "∶", "⋰", "→", "⇁", "⇀", "↘", "∝", - "∼", "≃", "⬍", "⊑", "⊒", "⋆", "⊂", "⊆", "≻", "≽", - "⊃", "⊇", "×", "⊤", "‼", "∷", "≔", "∩", "∪", - "∆", "∞", "⁢", "/", ">", "<", "_", "^", ".", ",", - "?", ":", ";", "`", "~", "@", "!", "#", "$", "%", "&" - ]; - this.toSymbols = { - "\\angle": "∠", - }; - this.fromSymbols = {}; - this.Init(); - } - Operators.prototype = Object.create(LexerLiterals.prototype); - Operators.prototype.constructor = Operators; - - function Nary() - { - this.data = [ - "⅀", "⨊", "⨋", "∫", "∱", "⨑", "⨍", "⨎", "⨏", "⨕", - "⨖", "⨗", "⨘", "⨙", "⨚", "⨛", "⨜", "⨒", "⨓", "⨔", - "⨃", "⨅", "⨉", "⫿", "∐", "∳", "⋂", "⋃", "⨀", "⨁", - "⨂", "⨆", "⨄", "⋁", "⋀", "∲", "⨌", "∭", "∬", - "∫", "∰", "∯", "∮", "∏", "∑", - ]; - this.fromSymbols = {}; - this.toSymbols = { - "\\sum" : "∑", - "\\prod": "∏", - "\\amalg" : "∐", - "\\coprod" : "∐", - "\\bigwedge" : "⋀", - "\\bigvee" : "⋁", - "\\bigcup" : "⋃", - "\\bigcap" : "⋂", - "\\bigsqcup" : "⨆", - "\\biguplus" : "⨄", - "\\bigoplus" : "⨁", - "\\bigotimes" : "⨂", - "\\int" : "∫", - "\\iint" : "∬", - "\\iiint" : "∭", - "\\iiiint" : "⨌", - "\\oint" : "∮", - "\\oiint" : "∯", - "\\oiiint" : "∰", - "\\coint" : "∲", - }; - this.Init(); - } - Nary.prototype = Object.create(LexerLiterals.prototype); - Nary.prototype.constructor = Nary; - - function Radical() - { - this.data = [ - "√", "∛", "∜" - ]; - this.fromSymbols = {}; - this.toSymbols = {}; - this.Init(); - } - Radical.prototype = Object.create(LexerLiterals.prototype); - Radical.prototype.constructor = Radical; - - function IsArrow(str) - { - if (str === "←" || - str === "⇐" || - str === "↽" || - str === "↼" || - str === "⇔" || - str === "↔" || - str === "⟸" || - str === "⟺" || - str === "⟹" || - str === "⇋" || - str === "→" || - str === "⇒" || - str === "⇁" || - str === "⇀" - ) - return true; - - return false; - } - - function Accent() - { - this.id = 4; - this.name = "AccentLiterals"; - this.toSymbols = { - "\\acute" : "́", - "\\hat" : "̂", - "\\check" : "̌", - "\\tilde" : "̃", - "\\grave" : "̀", - "\\dot" : "̇", - "\\ddot" : "̈", - "\\dddot" : "⃛", - "\\bar" : "̅", - "\\Bar" : "̿", - "\\vec" : "⃗", - "\\breve" : '̆', - "\\hvec" : "⃑", - "\\lhvec" : "⃐", - "\\tvec" : "⃡", - "\\lvec" : "⃖", - }; - this.fromSymbols = {}; - - this.Init(); - } - Accent.prototype = Object.create(LexerLiterals.prototype); - Accent.prototype.constructor = Accent; - - function Over() - { - this.data = [ - "/", //TODO opOpen - "⊘", "⒞", "\\/", "¦", - ]; - this.fromSymbols = {}; - this.toSymbols = {}; - this.Init(); - } - Over.prototype = Object.create(LexerLiterals.prototype); - Over.prototype.constructor = Over; - - function Box() - { - this.data = ["□"]; - this.fromSymbols = {}; - this.toSymbols = {}; - this.Init(); - } - Box.prototype = Object.create(LexerLiterals.prototype); - Box.prototype.constructor = Box; - - function Matrix() - { - this.data = ["⒩", "■"]; - this.fromSymbols = {}; - this.toSymbols = {}; - this.Init(); - } - Matrix.prototype = Object.create(LexerLiterals.prototype); - Matrix.prototype.constructor = Matrix; - - function Space() - { - this.fromSymbols = {}; - this.toSymbols = { - "\\nbsp" : " ", // space width && no-break space - "\\numsp": " ", // digit width - "\\emsp" : " ", // 18/18 em - "\\ensp" : " ", // 9/18 em - "\\vthicksp": " ", // 6/18 em verythickmathspace - "\\thicksp": " ", // 5/18 em thickmathspace - "\\medsp": " ", // 4/18 em mediummathspace - "\\thinsp": " ", // 3/18 em thinmathspace - "\\hairsp": " ", // 3/18 em veryverythinmathspace - "\\zwsp": "​", // 3/18 em zero-width space - }; - this.Init(); - } - Space.prototype = Object.create(LexerLiterals.prototype); - Space.prototype.constructor = Space; - - //class === data - function SpecialLiteral() - { - this.data = [ - "^", "_", "&", "@", "┴", "┬", "┤", "█", "▒", - ]; - this.fromSymbols = {}; - this.toSymbols = { - "\\above": "┴", - }; - this.Init(); - } - SpecialLiteral.prototype = Object.create(LexerLiterals.prototype); - SpecialLiteral.prototype.constructor = SpecialLiteral; - - const MathLiterals = { - lBrackets: new OpenBrackets(), - rBrackets: new CloseBrackets(), - lrBrackets: new OpenCloseBrackets(), - operators: new Operators(), - nary: new Nary(), - accent: new Accent(), - radical: new Radical(), - over: new Over(), - box: new Box(), - matrix: new Matrix(), - space: new Space(), - special: new SpecialLiteral(), - } - function GetClassOfMathLiterals (id) - { - switch (id) - { - case 1 : return MathLiterals.space; - default : return undefined; - } - } - - const oNamesOfLiterals = { - fractionLiteral: [0, "FractionLiteral"], - spaceLiteral: [1, "SpaceLiteral", MathLiterals.space], - charLiteral: [2, "CharLiteral"], - operatorLiteral: [5, "OperatorLiteral"], - binomLiteral: [6, "BinomLiteral"], - bracketBlockLiteral: [7, "BracketBlock"], - functionLiteral: [8, "FunctionLiteral"], - subSupLiteral: [9, "SubSupLiteral"], - sqrtLiteral: [10, "SqrtLiteral"], - numberLiteral: [11, "NumberLiteral"], - mathOperatorLiteral: [12, "MathOperatorLiteral"], - rectLiteral: [13, "RectLiteral"], - boxLiteral: [14, "BoxLiteral"], - borderBoxLiteral: [58, "BorderBoxLiteral"], - preScriptLiteral: [15, "PreScriptLiteral"], - mathFontLiteral: [16, "MathFontLiteral"], - overLiteral: [17, "OverLiteral"], - diacriticLiteral: [18, "DiacriticLiteral"], - diacriticBaseLiteral: [19, "DiacriticBaseLiteral"], - otherLiteral: [20, "OtherLiteral"], - anMathLiteral: [21, "AnMathLiteral"], - opBuildupLiteral: [22, "opBuildUpLiteral"], - opOpenBracket: [23, "opOpenLiteral"], - opCloseBracket: [24, "opCLoseLiteral"], - opOpenCloseBracket: [25, "opCloseLiteral"], - hBracketLiteral: [28, "hBracketLiteral"], - opNaryLiteral: [29, "opNaryLiteral"], - asciiLiteral: [30, "asciiLiteral"], - opArrayLiteral: [31, "opArrayLiteral"], - opDecimal: [32, "opDecimal"], - - specialScriptNumberLiteral: [33, "specialScriptLiteral"], - specialScriptCharLiteral: [34, "specialScriptLiteral"], - specialScriptBracketLiteral: [35, "specialScriptBracketLiteral"], - specialScriptOperatorLiteral: [36, "specialScriptBracketLiteral"], - - specialIndexNumberLiteral: [37, "specialScriptLiteral"], - specialIndexCharLiteral: [38, "specialScriptLiteral"], - specialIndexBracketLiteral: [39, "specialScriptBracketLiteral"], - specialIndexOperatorLiteral: [40, "specialScriptBracketLiteral"], - - textPlainLiteral: [41, "textPlainLiteral"], - nthrtLiteral: [42, "nthrtLiteral"], - fourthrtLiteral: [43, "fourthrtLiteral"], - cubertLiteral: [44, "cubertLiteral"], - overBarLiteral: [45, "overBarLiteral"], - - factorialLiteral: [46, "factorialLiteral"], - rowLiteral: [47, "rowLiteral"], - rowsLiteral: [48, "rowsLiteral"], - - minusLiteral: [49, "minusLiteral"], - LaTeXLiteral: [50, "LaTeXLiteral"], - - functionWithLimitLiteral: [51, "functionWithLimitLiteral"], - functionNameLiteral: [52, "functionNameLiteral"], - matrixLiteral: [53, "matrixLiteral"], - arrayLiteral: [53, "arrayLiteral"], - - skewedFractionLiteral: [54, "skewedFractionLiteral"], - EqArrayliteral: [55, "EqArrayliteral"], - - groupLiteral: [56, "GroupLiteral"], - belowAboveLiteral: [57, "BelowAboveLiteral"], - - }; - - const SpecialAutoCorrection = { - "!!" : "‼", - "...": "…", - "::" : "∷", - ":=" : "≔", - "~=" : "≅", - "+-" : "±", - "-+" : "∓", - "<<" : "≪", - "<=" : "≤", - "->" : "→", - ">=" : "≥", - ">>" : "≫", - - "/<" : "≮", - "/=" : "≠" - } - - const wordAutoCorrection = [ - //Char - [ - function (str) { - return str[0]; - }, - oNamesOfLiterals.charLiteral[0], - ], - //Accent - [ - function (str) { - const code = GetFixedCharCodeAt(str[0]); - if (code >= 768 && code <= 879) { - return str[0]; - } - }, - MathLiterals.accent.id, - ], - //Numbers - [ - function (str) { - const arrNumbers = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; - let literal = str[0]; - if (arrNumbers.includes(literal)) { - return literal; - } - }, - oNamesOfLiterals.numberLiteral[0], - ], - //Mathematical Alphanumeric Symbols 1D400:1D7FF - [ - function (arrData) { - let intCode = GetFixedCharCodeAt(arrData[0]); - if (intCode >= 0x1D400 && intCode <= 0x1D7FF) { - return arrData[0]; - } - }, - oNamesOfLiterals.otherLiteral[0], - ], - - // ["⅀", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨊", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨋", oNamesOfLiterals.opNaryLiteral[0]], - // ["∫", oNamesOfLiterals.opNaryLiteral[0]], - // ["∱", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨑", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨍", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨎", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨏", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨕", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨖", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨗", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨘", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨙", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨚", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨛", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨜", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨒", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨓", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨔", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨃", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨅", oNamesOfLiterals.opNaryLiteral[0]], - // ["⨉", oNamesOfLiterals.opNaryLiteral[0]], - // ["⫿", oNamesOfLiterals.opNaryLiteral[0]], - - ["  ", oNamesOfLiterals.spaceLiteral[0]], // 2/18em space very thin math space - [" ", oNamesOfLiterals.spaceLiteral[0]], // 3/18em space thin math space - ["  ", oNamesOfLiterals.spaceLiteral[0]], // 7/18em space very very thick math space - [" ", oNamesOfLiterals.spaceLiteral[0]], // Digit-width space - [" ", oNamesOfLiterals.spaceLiteral[0]], // Space-with space (non-breaking space) - ["\t", oNamesOfLiterals.spaceLiteral[0]], //Tab - ["\n", oNamesOfLiterals.spaceLiteral[0]], - - ["⁣", oNamesOfLiterals.operatorLiteral[0]], - ["⁤", oNamesOfLiterals.operatorLiteral[0]], - - //Unicode DB operators - ["⨯", oNamesOfLiterals.operatorLiteral[0]], - ["⨝", oNamesOfLiterals.operatorLiteral[0]], - ["⟕", oNamesOfLiterals.operatorLiteral[0]], - ["⟖", oNamesOfLiterals.operatorLiteral[0]], - ["⟗", oNamesOfLiterals.operatorLiteral[0]], - ["⋉", oNamesOfLiterals.operatorLiteral[0]], - ["⋊", oNamesOfLiterals.operatorLiteral[0]], - ["▷", oNamesOfLiterals.operatorLiteral[0]], - ["<", oNamesOfLiterals.operatorLiteral[0]], - [">", oNamesOfLiterals.operatorLiteral[0]], - ["!", oNamesOfLiterals.operatorLiteral[0]], - - ["(", oNamesOfLiterals.opOpenBracket[0]], - [")", oNamesOfLiterals.opCloseBracket[0]], - ["{", oNamesOfLiterals.opOpenBracket[0]], - ["}", oNamesOfLiterals.opCloseBracket[0]], - - ["^", true], - ["_", true], - - // ["!!", "‼", oNamesOfLiterals.charLiteral[0]], - // ["...", "…"], - // ["::", "∷"], - // [":=", "≔"], - - // ["~=", "≅", oNamesOfLiterals.operatorLiteral[0]], - // ["+-", "±"], - // ["-+", "∓"], - // ["<<", "≪"], - // ["<=", "≤"], - // [">=", "≥", oNamesOfLiterals.operatorLiteral[0]], - // ["->", "→"], - // [">>", "≫"], - - ["&", true], - ["@", true], - ["array(", oNamesOfLiterals.matrixLiteral[0]], - - ["⁰", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["¹", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["²", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["³", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["⁴", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["⁵", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["⁶", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["⁷", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["⁸", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["⁹", oNamesOfLiterals.specialScriptNumberLiteral[0]], - ["ⁱ", oNamesOfLiterals.specialScriptCharLiteral[0]], - ["ⁿ", oNamesOfLiterals.specialScriptCharLiteral[0]], - ["⁺", oNamesOfLiterals.specialScriptOperatorLiteral[0]], - ["⁻", oNamesOfLiterals.specialScriptOperatorLiteral[0]], - ["⁼", oNamesOfLiterals.specialScriptOperatorLiteral[0]], - ["⁽", oNamesOfLiterals.specialScriptBracketLiteral[0]], - ["⁾", oNamesOfLiterals.specialScriptBracketLiteral[0]], - - ["₀", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₁", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₂", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₃", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₄", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₅", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₆", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₇", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₈", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₉", oNamesOfLiterals.specialIndexNumberLiteral[0]], - ["₊", oNamesOfLiterals.specialIndexOperatorLiteral[0]], - ["₋", oNamesOfLiterals.specialIndexOperatorLiteral[0]], - ["₌", oNamesOfLiterals.specialIndexOperatorLiteral[0]], - ["₍", oNamesOfLiterals.specialIndexBracketLiteral[0]], - ["₎", oNamesOfLiterals.specialIndexBracketLiteral[0]], - - ["/", oNamesOfLiterals.overLiteral[0]], // opOpen - ["'", MathLiterals.operators.id], - ["''", MathLiterals.operators.id], - ["|", oNamesOfLiterals.opOpenCloseBracket[0]], - ["\\|", oNamesOfLiterals.opOpenCloseBracket[0]], - - ["⊘", oNamesOfLiterals.overLiteral[0]], - ["⒞", oNamesOfLiterals.overLiteral[0]], - ["|", oNamesOfLiterals.opOpenCloseBracket[0]], - ["||", oNamesOfLiterals.opOpenCloseBracket[0]], - ["\\/", oNamesOfLiterals.overLiteral[0]], - - ["+", oNamesOfLiterals.operatorLiteral[0]], - ["-", oNamesOfLiterals.operatorLiteral[0]], - ["*", oNamesOfLiterals.operatorLiteral[0]], - ["=", oNamesOfLiterals.operatorLiteral[0]], - ["≶", oNamesOfLiterals.operatorLiteral[0]], - ["≷", oNamesOfLiterals.operatorLiteral[0]], - ["∩", oNamesOfLiterals.operatorLiteral[0]], - - ["\\", oNamesOfLiterals.opCloseBracket[0]], - - [ - function (str) { - if (str[0] === "\\") { - let strOutput = "\\"; - let index = 1; - while (str[index] && /[a-zA-Z]/.test(str[index])) { - strOutput += str[index]; - index++; - } - return strOutput; - } - else if (str[0] === "/" && str[1] === "\\") - { - let strOutput = "/\\"; - let index = 2; - while (str[index] && /[a-zA-Z]/.test(str[index])) { - strOutput += str[index]; - index++; - } - return strOutput; - } - }, - oNamesOfLiterals.charLiteral[0] - ], - - ["\\matrix", oNamesOfLiterals.matrixLiteral[0]], - ["\\array", oNamesOfLiterals.matrixLiteral[0]], - ["\\above", true], - ["\\below", true], - ["\\mid", true], - ["┴", true], - - ["̿", MathLiterals.accent.id], //todo - ["Β"], - ["□", oNamesOfLiterals.boxLiteral[0]], - ["\\Bmatrix", oNamesOfLiterals.matrixLiteral[0]], - - ["\\left", true], - - ["\\leftrightarrow"], - ["\\Leftrightarrow"], - ["\\leftarrow"], - ["\\Leftarrow"], - ["\\leftharpoondown"], - ["\\leftharpoonup"], - ["\\rightharpoon"], - - ["\\right", true], - ["\\gets", MathLiterals.accent.id], - ["\\rightarrow"], - ["\\Rightarrow"], - ["\\rightharpoondown"], - ["\\rightharpoonup"], - - ["⟫", oNamesOfLiterals.opCloseBracket[0]], - ["⟧", oNamesOfLiterals.opCloseBracket[0]], - ["̳", MathLiterals.accent.id], //check - ["‖", oNamesOfLiterals.opOpenCloseBracket[0]], - ["⒩", oNamesOfLiterals.matrixLiteral[0]], - ["┴", true], - ["́", MathLiterals.accent.id], - ["∐", oNamesOfLiterals.opNaryLiteral[0]], - ["∳", oNamesOfLiterals.opNaryLiteral[0]], - ["≈", oNamesOfLiterals.operatorLiteral[0]], - ["≍", oNamesOfLiterals.operatorLiteral[0]], - ["¦", oNamesOfLiterals.overLiteral[0]], //LateX true - ["■", oNamesOfLiterals.matrixLiteral[0]], - ["‵", MathLiterals.accent.id], - ["̅", MathLiterals.accent.id], - ["〖", oNamesOfLiterals.opOpenBracket[0]], //Unicode LaTeX: ["\\begin{"], - ["\\begin{", true], - ["\\begin{equation}", oNamesOfLiterals.matrixLiteral[0]], - ["\\begin{array}", oNamesOfLiterals.matrixLiteral[0]], - ["\\begin{cases}", oNamesOfLiterals.matrixLiteral[0]], - ["\\begin{matrix}", oNamesOfLiterals.matrixLiteral[0]], - ["\\begin{pmatrix}", oNamesOfLiterals.matrixLiteral[0]], - ["\\begin{bmatrix}", oNamesOfLiterals.matrixLiteral[0]], - ["\\begin{Bmatrix}", oNamesOfLiterals.matrixLiteral[0]], - ["\\begin{vmatrix}", oNamesOfLiterals.matrixLiteral[0]], - ["\\begin{Vmatrix}", oNamesOfLiterals.matrixLiteral[0]], - ["\\matrix{", oNamesOfLiterals.matrixLiteral[0]], - ["\\pmatrix{", oNamesOfLiterals.matrixLiteral[0]], - ["\\bmatrix{", oNamesOfLiterals.matrixLiteral[0]], - ["\\Bmatrix{", oNamesOfLiterals.matrixLiteral[0]], - ["\\vmatrix{", oNamesOfLiterals.matrixLiteral[0]], - ["\\Vmatrix{", oNamesOfLiterals.matrixLiteral[0]], - ["┬", true], - ["\\bmatrix", oNamesOfLiterals.matrixLiteral[0]], - ["\\bmod", " mod ", oNamesOfLiterals.charLiteral[0]], - ["⋂", oNamesOfLiterals.opNaryLiteral[0]], // todo in unicode NaryOp REFACTOR ["⋂", oNamesOfLiterals.opNaryLiteral[0]], - ["⋃", oNamesOfLiterals.opNaryLiteral[0]], // ["⋃", oNamesOfLiterals.opNaryLiteral[0]], - ["⨀", oNamesOfLiterals.opNaryLiteral[0]], //["⨀", oNamesOfLiterals.opNaryLiteral[0]], - ["⨁", oNamesOfLiterals.opNaryLiteral[0]], //["⨁", oNamesOfLiterals.opNaryLiteral[0]], - ["⨂", oNamesOfLiterals.opNaryLiteral[0]], //["⨂", oNamesOfLiterals.opNaryLiteral[0]], - ["⨆", oNamesOfLiterals.opNaryLiteral[0]], //["⨆", oNamesOfLiterals.opNaryLiteral[0]], - ["⨄", oNamesOfLiterals.opNaryLiteral[0]], // ["⨄", oNamesOfLiterals.opNaryLiteral[0]], - ["⋁", oNamesOfLiterals.opNaryLiteral[0]], - ["⋀", oNamesOfLiterals.opNaryLiteral[0]], - ["⊥", oNamesOfLiterals.operatorLiteral[0]], - ["□", oNamesOfLiterals.boxLiteral[0]], - ["\\boxplus", "⊞"], - ["⟨", oNamesOfLiterals.opOpenBracket[0]], - ["\\break", "⤶"], - ["̆", MathLiterals.accent.id], - ["\\cr", "\\\\", true], - ["█", true],//Ⓒ - ["∛", oNamesOfLiterals.sqrtLiteral[0]], //oNamesOfLiterals.opBuildupLiteral[0] to functionLiteral? - ["⋅", oNamesOfLiterals.operatorLiteral[0]], - ["⋯"], - ["\\cfrac", true],// https://www.tutorialspoint.com/tex_commands/cfrac.htm - ["̌", MathLiterals.accent.id], - ["χ"], - ["∘"], - ["┤", true], - ["♣"], - ["∲", oNamesOfLiterals.opNaryLiteral[0]], - ["≅", oNamesOfLiterals.operatorLiteral[0]], - ["∋", oNamesOfLiterals.operatorLiteral[0]], - ["∐", oNamesOfLiterals.opNaryLiteral[0]], //check type - ["∪"], - ["ℸ"], - ["ℸ"], - ["⊣"], - ["ⅆ"], - ["⃜", MathLiterals.accent.id], - ["⃛", MathLiterals.accent.id], - ["̈", MathLiterals.accent.id], - ["⋱"], - ["≝"], - ["℃"], - ["℉"], - ["\\sqrt", oNamesOfLiterals.sqrtLiteral[0]], - - ["°"], - ["δ"], - ["\\dfrac{", true], - ["⋄"], - ["♢"], - ["÷", oNamesOfLiterals.operatorLiteral[0]], - ["̇", MathLiterals.accent.id], - [" ", oNamesOfLiterals.spaceLiteral[0]], // [" ", oNamesOfLiterals.spaceLiteral[0]], // 1em space - ["〗", oNamesOfLiterals.opCloseBracket[0]], //LaTeX ["\\end{"], - ["\\end{equation}", "endOfMatrix"], - ["\\end{array}", "endOfMatrix"], - ["\\end{cases}", "endOfMatrix"], - ["\\end{matrix}", "endOfMatrix"], - ["\\end{pmatrix}", "endOfMatrix"], - ["\\end{bmatrix}", "endOfMatrix"], - ["\\end{Bmatrix}", "endOfMatrix"], - ["\\end{vmatrix}", "endOfMatrix"], - ["\\end{Vmatrix}", "endOfMatrix"], - [" ", oNamesOfLiterals.spaceLiteral[0],], //[" ", oNamesOfLiterals.spaceLiteral[0]], // 9/18em space - ["ϵ"], - ["█", true], - ["#"], - ["≡", oNamesOfLiterals.operatorLiteral[0]], - ["η"], - ["∃", oNamesOfLiterals.operatorLiteral[0]], - ["∀", oNamesOfLiterals.operatorLiteral[0]], //fractur - ["\\frac", true], - ["⌑"], - ["⁡", oNamesOfLiterals.operatorLiteral[0]], - ["γ"], - ["≥", oNamesOfLiterals.operatorLiteral[0]], - ["≥", oNamesOfLiterals.operatorLiteral[0]], - ["≫"], - ["ℷ"],//0x2137 - ["̀", MathLiterals.accent.id], - [" ", oNamesOfLiterals.spaceLiteral[0]], // [" ", oNamesOfLiterals.spaceLiteral[0]], // 1/18em space very very thin math space - ["̂", MathLiterals.accent.id], //["\\hat", MathLiterals.accent.id, 770], - ["ℏ"],//0x210f - ["♡"], - ["↩"], - ["↪"], - ["⬄"], - ["⬌"], - ["⃑", MathLiterals.accent.id], - ["ⅈ"],//0x2148 - ["⨌", oNamesOfLiterals.opNaryLiteral[0]], //LaTeX oNamesOfLiterals.functionLiteral[0] //Unicode oNamesOfLiterals.opNaryLiteral[0] - ["∭", oNamesOfLiterals.opNaryLiteral[0]], - ["∬", oNamesOfLiterals.opNaryLiteral[0]], - ["𝚤"], - ["∈", oNamesOfLiterals.operatorLiteral[0]], - ["∆"], - ["∞"], - ["∫", oNamesOfLiterals.opNaryLiteral[0]], - ["ι"], - //["\\itimes", "⁢", oNamesOfLiterals.operatorLiteral[0]], - ["Jay"], - ["ⅉ"], - ["𝚥"], - ["κ"], - ["⟩", oNamesOfLiterals.opCloseBracket[0]], - ["λ"], - ["⟨", oNamesOfLiterals.opOpenBracket[0]], - ["⟦", oNamesOfLiterals.opOpenBracket[0]], - ["\\{", oNamesOfLiterals.opOpenBracket[0]], // todo check in word { or \\{ - ["[", oNamesOfLiterals.opOpenBracket[0]], - ["⌈", oNamesOfLiterals.opOpenBracket[0]], - ["∕", oNamesOfLiterals.overLiteral[0]], - ["∕", oNamesOfLiterals.overLiteral[0]], - ["…"], - ["≤", oNamesOfLiterals.operatorLiteral[0]], - ["├", true], //LaTeX type === \left - ["←"], - ["↽"], - ["↼"], - ["↽"], - ["↔"], - ["≤"], - ["⌊", oNamesOfLiterals.opOpenBracket[0]], - ["⃐", MathLiterals.accent.id], //check word - ["\\limits", true], - ["≪"], - ["⟦", oNamesOfLiterals.opOpenBracket[0]], - ["⎰", oNamesOfLiterals.opOpenBracket[0]], - ["⇋"], - ["⃖", MathLiterals.accent.id], - ["|", oNamesOfLiterals.opOpenCloseBracket[0]], - ["↦"], - ["■", oNamesOfLiterals.matrixLiteral[0]], - [" ", oNamesOfLiterals.spaceLiteral[0]], //[" ", oNamesOfLiterals.spaceLiteral[0]], // 4/18em space medium math space - ["∣", true], - ["ⓜ", true], - ["⊨"], - ["∓"], - ["μ"], - ["∇"], - ["▒", true], - [" ", oNamesOfLiterals.spaceLiteral[0]], - ["≠"], - ["↗"], - ["¬", oNamesOfLiterals.operatorLiteral[0]], - ["≠"], - ["∋", oNamesOfLiterals.operatorLiteral[0]], - ["‖", oNamesOfLiterals.opOpenCloseBracket[0]], - //["\\not", "̸"], //doesn't implement in word - ["∌"], - ["∉"], - ["∉"], - ["ν"], - ["↖"], - ["ο"], - ["⊙"], - ["▒", true], - ["∰", oNamesOfLiterals.opNaryLiteral[0]], - ["∯", oNamesOfLiterals.opNaryLiteral[0]], - ["∮", oNamesOfLiterals.opNaryLiteral[0]], - ["ω"], - ["⊖"], - ["├", true], - ["⊕", oNamesOfLiterals.operatorLiteral[0]], - ["⊗", oNamesOfLiterals.operatorLiteral[0]], - ["\\over", true], - - ["\\vec", MathLiterals.accent.id], - ["\\lvec", MathLiterals.accent.id], - ["\\tvec", MathLiterals.accent.id], - ["\\hvec", MathLiterals.accent.id], - ["\\lhvec", MathLiterals.accent.id], - - ["\\overline", oNamesOfLiterals.hBracketLiteral[0]], - ["\\underline", oNamesOfLiterals.hBracketLiteral[0]], - - ["\\overparen", oNamesOfLiterals.hBracketLiteral[0]], - ["\\overbrace", oNamesOfLiterals.hBracketLiteral[0]], - ["\\overshell", oNamesOfLiterals.hBracketLiteral[0]], - ["\\overbracket", oNamesOfLiterals.hBracketLiteral[0]], - - ["\\underparen", oNamesOfLiterals.hBracketLiteral[0]], - ["\\underbrace", oNamesOfLiterals.hBracketLiteral[0]], - ["\\undershel", oNamesOfLiterals.hBracketLiteral[0]], - ["\\underbracket", oNamesOfLiterals.hBracketLiteral[0]], - - ["¯", oNamesOfLiterals.hBracketLiteral[0]], - ["⏞", oNamesOfLiterals.hBracketLiteral[0]], - ["⎴", oNamesOfLiterals.hBracketLiteral[0]], - ["¯", true], - ["⏜", oNamesOfLiterals.hBracketLiteral[0]], - ["┴", true], - ["⏠", oNamesOfLiterals.hBracketLiteral[0]], - ["∥"], //check - ["∂"], - ["⊥", oNamesOfLiterals.operatorLiteral[0]], - ["\\cap", oNamesOfLiterals.operatorLiteral[0]], - ["ϕ"], - ["π"], - ["±"], - ["⒨", oNamesOfLiterals.matrixLiteral[0]], - ["⁗", oNamesOfLiterals.operatorLiteral[0]], - ["‴", oNamesOfLiterals.operatorLiteral[0]], - ["″", oNamesOfLiterals.operatorLiteral[0]], - ["′", oNamesOfLiterals.operatorLiteral[0]], - ["≺", oNamesOfLiterals.operatorLiteral[0]], - ["≼", oNamesOfLiterals.operatorLiteral[0]], - - ["∏", oNamesOfLiterals.opNaryLiteral[0]], //oNamesOfLiterals.functionLiteral[0] - ["∝", oNamesOfLiterals.operatorLiteral[0]], - ["ψ"], - ["∜", oNamesOfLiterals.sqrtLiteral[0]], - ["〉", oNamesOfLiterals.opCloseBracket[0]], - ["⟩", oNamesOfLiterals.opCloseBracket[0]], - ["∶"], - ["}", oNamesOfLiterals.opCloseBracket[0]], - ["]", oNamesOfLiterals.opCloseBracket[0]], - ["⌉", oNamesOfLiterals.opCloseBracket[0]], - ["⋰"], - - ["\\box", oNamesOfLiterals.boxLiteral[0]], - ["\\fbox", oNamesOfLiterals.rectLiteral[0]], - ["\\rect", oNamesOfLiterals.rectLiteral[0]], - - ["▭", oNamesOfLiterals.rectLiteral[0]], - ["▭", oNamesOfLiterals.rectLiteral[0]], - ["⌋", oNamesOfLiterals.opCloseBracket[0]], - ["┤", true], - ["⎱", oNamesOfLiterals.opCloseBracket[0]], - ["⒭", oNamesOfLiterals.sqrtLiteral[0]], //check - ["|", oNamesOfLiterals.opOpenCloseBracket[0]], - ["⁄", oNamesOfLiterals.overLiteral[0]], - ["∼", oNamesOfLiterals.operatorLiteral[0]], - ["≃", oNamesOfLiterals.operatorLiteral[0]], - ["√", oNamesOfLiterals.sqrtLiteral[0]], - ["⊑", oNamesOfLiterals.operatorLiteral[0]], - ["⊒", oNamesOfLiterals.operatorLiteral[0]], - ["⊂", oNamesOfLiterals.operatorLiteral[0]], - ["⊆", oNamesOfLiterals.operatorLiteral[0]], - ["█", true], - ["≻", oNamesOfLiterals.operatorLiteral[0]], - ["≽", oNamesOfLiterals.operatorLiteral[0]], - ["∑", oNamesOfLiterals.opNaryLiteral[0]], - ["⊃", oNamesOfLiterals.operatorLiteral[0]], - ["⊇", oNamesOfLiterals.operatorLiteral[0]], - ["√", oNamesOfLiterals.sqrtLiteral[0]], - [" ", oNamesOfLiterals.spaceLiteral[0]], //[" ", oNamesOfLiterals.spaceLiteral[0]], // 5/18em space thick math space - [" ", oNamesOfLiterals.spaceLiteral[0]], - ["̃", MathLiterals.accent.id], - ["×", oNamesOfLiterals.operatorLiteral[0]], - //["→", oNamesOfLiterals.groupLiteral[0]], - ["⊤", oNamesOfLiterals.operatorLiteral[0]], - ["⃡", MathLiterals.accent.id], - ["̲", MathLiterals.accent.id], //check - ["┌", oNamesOfLiterals.opOpenBracket[0]], - ["▁", oNamesOfLiterals.hBracketLiteral[0]], - ["⏟", oNamesOfLiterals.hBracketLiteral[0]], - ["⎵", oNamesOfLiterals.hBracketLiteral[0]], - ["▁", true], - ["⏝", oNamesOfLiterals.hBracketLiteral[0]], - ["┬", true], - ["┐", oNamesOfLiterals.opCloseBracket[0]], - ["│", true], - ["⊢", oNamesOfLiterals.operatorLiteral[0]], - ["⋮"], - ["⃗", MathLiterals.accent.id], - ["∨", oNamesOfLiterals.operatorLiteral[0]], - ["|", oNamesOfLiterals.opOpenCloseBracket[0]], - [" ", oNamesOfLiterals.spaceLiteral[0]], //[" ", oNamesOfLiterals.spaceLiteral[0]], // 6/18em space very thick math space - ["∧", oNamesOfLiterals.operatorLiteral[0]], - ["̂", MathLiterals.accent.id], //["\\hat", MathLiterals.accent.id, 770], - ["℘"],//0x2118 - ["‌", oNamesOfLiterals.spaceLiteral[0]], - ["​", oNamesOfLiterals.spaceLiteral[0]], //["​", oNamesOfLiterals.spaceLiteral[0]], // zero-width space - - ["√", oNamesOfLiterals.sqrtLiteral[0]], - //["√(", oNamesOfLiterals.sqrtLiteral[0]], - ["\\}", oNamesOfLiterals.opCloseBracket[0]], - ["\\|", oNamesOfLiterals.opOpenCloseBracket[0]], - ["\\\\", true], - - ["\\sf", oNamesOfLiterals.mathFontLiteral[0]], - ["\\scr", oNamesOfLiterals.mathFontLiteral[0]], - ["\\script", oNamesOfLiterals.mathFontLiteral[0]], - ["\\rm", oNamesOfLiterals.mathFontLiteral[0]], - ["\\oldstyle", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathtt", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathsfit", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathsfbfit", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathsfbf", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathsf", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathrm", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathit", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathfrak", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathcal", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathbfit", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathbffrak", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathbfcal", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathbf", oNamesOfLiterals.mathFontLiteral[0]], - ["\\mathbb", oNamesOfLiterals.mathFontLiteral[0]], - ["\\it", oNamesOfLiterals.mathFontLiteral[0]], - ["\\frak", oNamesOfLiterals.mathFontLiteral[0]], - ["\\fraktur", oNamesOfLiterals.mathFontLiteral[0]], - ["\\double", oNamesOfLiterals.mathFontLiteral[0]], - ["\\sfrac", true], - ["\\text", true], - - ["\\sum", oNamesOfLiterals.opNaryLiteral[0]], - ["\\prod", oNamesOfLiterals.opNaryLiteral[0]], - ["\\amalg", oNamesOfLiterals.opNaryLiteral[0]], - ["\\coprod", oNamesOfLiterals.opNaryLiteral[0]], - ["\\bigwedge", oNamesOfLiterals.opNaryLiteral[0]], - ["\\bigvee", oNamesOfLiterals.opNaryLiteral[0]], - ["\\bigcup", oNamesOfLiterals.opNaryLiteral[0]], - ["\\bigcap", oNamesOfLiterals.opNaryLiteral[0]], - ["\\bigsqcup", oNamesOfLiterals.opNaryLiteral[0]], - ["\\biguplus", oNamesOfLiterals.opNaryLiteral[0]], - ["\\bigoplus", oNamesOfLiterals.opNaryLiteral[0]], - ["\\bigotimes", oNamesOfLiterals.opNaryLiteral[0]], - ["\\int", oNamesOfLiterals.opNaryLiteral[0]], - ["\\iint", oNamesOfLiterals.opNaryLiteral[0]], - ["\\iiint", oNamesOfLiterals.opNaryLiteral[0]], - ["\\iiiint", oNamesOfLiterals.opNaryLiteral[0]], - ["\\oint", oNamesOfLiterals.opNaryLiteral[0]], - ["\\oiint", oNamesOfLiterals.opNaryLiteral[0]], - ["\\oiiint", oNamesOfLiterals.opNaryLiteral[0]], - ["\\coint", oNamesOfLiterals.opNaryLiteral[0]], - ["\\aouint", oNamesOfLiterals.opNaryLiteral[0]], - ["\\substack", true], - - ["\\hat", MathLiterals.accent.id], - ["\\dot", MathLiterals.accent.id], - ["\\ddot", MathLiterals.accent.id], - ["\\dddot", MathLiterals.accent.id], - ["\\check", MathLiterals.accent.id], - ["\\acute", MathLiterals.accent.id], - ["\\grave", MathLiterals.accent.id], - ["\\breve", MathLiterals.accent.id], - ["\\tilde", MathLiterals.accent.id], - ["\\bar", MathLiterals.accent.id], - ["\\dots", MathLiterals.operators.id], - - ["\"", oNamesOfLiterals.charLiteral[0]], - ["\ ", oNamesOfLiterals.spaceLiteral[0]], - - ["\\quad", oNamesOfLiterals.spaceLiteral[0]], // 1 em (nominally, the height of the font) - // ["\\qquad", [8193, 8193], oNamesOfLiterals.spaceLiteral[0]], // 2em - //["\\text{", "text{"], - - ["\\,", oNamesOfLiterals.spaceLiteral[0]], // 3/18em space thin math space - ["\\:", oNamesOfLiterals.spaceLiteral[0]], // 4/18em space thin math space - ["\\;", oNamesOfLiterals.spaceLiteral[0]], // 5/18em space thin math space - //["\!", " ", oNamesOfLiterals.spaceLiteral[0]], // -3/18 of \quad (= -3 mu) - ["\\ ", oNamesOfLiterals.spaceLiteral[0]], // equivalent of space in normal text - ["\\qquad", oNamesOfLiterals.spaceLiteral[0]], // equivalent of space in normal text - - ["\\\\", true], - // ["\\lim", oNamesOfLiterals.opNaryLiteral[0]], LaTeX - // ["\\lg", oNamesOfLiterals.opNaryLiteral[0]], - - [",", true], - [".", true], - - [ - function (str) { - if (str[0] === "\\") { - let strOutput = "\\"; - let index = 1; - while (str[index] && /[a-zA-Z]/.test(str[index])) { - strOutput += str[index]; - index++; - } - if (functionNames.includes(strOutput.slice(1)) || limitFunctions.includes(strOutput.slice(1))) { - return strOutput; - } - } - else { - let index = 0; - let strOutput = ""; - while (str[index] && /[a-zA-Z]/.test(str[index])) { - strOutput += str[index]; - index++; - } - if (limitFunctions.includes(strOutput) || functionNames.includes(strOutput)) { - return strOutput - } - } - }, - oNamesOfLiterals.functionLiteral[0] - ], - ]; - - const arrDoNotConvertWordsForLaTeX = [ - "\\left", - "\\right", - "\\array", - "\\begin", - "\\end", - "\\matrix", - "\\below", - "\\above", - "\\box", - "\\fbox", - "\\rect", - - "\\sum", - "\\prod", - "\\amalg", - "\\coprod", - "\\bigwedge", - "\\bigvee", - "\\bigcup", - "\\bigcap", - "\\bigsqcup", - "\\biguplus", - "\\bigodot", - "\\bigoplus", - "\\bigotimes", - "\\int", - "\\iint", - "\\iiint", - "\\iiiint", - "\\oint", - "\\oiint", - "\\oiiint", - "\\coint", - "\\aouint", - ]; + let type = false; + let Paragraph = null; + let isAllowAutoCorrect = true; let functionNames = [ 'cos', 'acos', 'acosh', 'sin', 'tan', 'asin', 'asinh', 'sec', @@ -1193,6 +85,17 @@ "₍": "(", "₎": ")", } + const oStandardFont = { + // Standart Word functions with higher proirity for linear format + "7" : "\\mathcal", + "3" : "\\mathsf", + "-1" : "\\mathrm", + //"1" : "\\mathit", + "9" : "\\mathfrak", + //"8" : "\\mathbfcal", + "0" : "\\mathbf", + "12" : "\\mathbb", + } const GetTypeFont = { // Standart Word functions with higher proirity for linear format "\\mathcal": 7, @@ -1222,12 +125,12 @@ "\\double": 12, } - function GetNamesTypeFontLaTeX(nType) + function SetIsAllowAutoCorrect (isAllow) { - let arrNamesGetTypeFont = Object.entries(GetTypeFont); - return arrNamesGetTypeFont.find(function (element){return element[1] === Number(nType)}) + isAllowAutoCorrect = isAllow; } + // List of MathFont const GetMathFontChar = { 'A': { 0: '𝐀', 1: '𝐴', 2: '𝑨', 3: '𝖠', 4: '𝗔', 5: '𝘈', 6: '𝘼', 7: '𝒜', 8: '𝓐', 9: '𝔄', 10: '𝕬', 11: '𝙰', 12: '𝔸'}, 'B': { 0: '𝐁', 1: '𝐵', 2: '𝑩', 3: '𝖡', 4: '𝗕', 5: '𝘉', 6: '𝘽', 7: 'ℬ', 8: '𝓑', 9: '𝔅', 10: '𝕭', 11: '𝙱', 12: '𝔹'}, @@ -1354,13 +257,14 @@ '8': {0: '𝟖', 12: '𝟠', 3: '𝟪', 4: '𝟴', 11: '𝟾'}, '9': {0: '𝟗', 12: '𝟡', 3: '𝟫', 4: '𝟵', 11: '𝟿'}, }; - - // Generate an inverse object to get the font type and original character from the math font symbol - // 𝟘 -> ["12", "0"] - - let GetLaTeXFont = {}; - let nameOfLaTeX = Object.keys(GetMathFontChar) - for (let i = 0; i < nameOfLaTeX.length; i++) + function GetNamesTypeFontLaTeX(nType) + { + let arrNamesGetTypeFont = Object.entries(GetTypeFont); + return arrNamesGetTypeFont.find(function (element){return element[1] === Number(nType)}) + } + let GetLaTeXFont = {}; + let nameOfLaTeX = Object.keys(GetMathFontChar) + for (let i = 0; i < nameOfLaTeX.length; i++) { let part_font = GetMathFontChar[nameOfLaTeX[i]]; let part_keys = Object.keys(part_font); @@ -1370,1591 +274,3504 @@ GetLaTeXFont[part_font[part_keys[j]]] = [part_keys[j], nameOfLaTeX[i]]; } } - // ================================================================================================ - let type = false; + const UnicodeWordList = {} - function GetBracketCode(code) + function LexerLiterals() { - const oBrackets = { - ".": -1, - "\\{": "{".charCodeAt(0), - "\\}": "}".charCodeAt(0), - "\\|": "‖".charCodeAt(0), - "|": 124, - "〖": -1, - "〗": -1, - "⟨" : 10216, - "⟩": 10217, - - } - if (code === undefined) - return -1; + this.Unicode = {}; + this.LaTeX = {}; + this.LaTeXSpecial = undefined; + this.isUseLaTeXBrackets = false; + this.UnicodeWords = false; - if (code) { - let strBracket = oBrackets[code]; - if (strBracket) { - return strBracket - } - return code.charCodeAt(0) - } + this.Init(); } - - function GetHBracket(code) + LexerLiterals.prototype.Init = function (isUseUnicodeInLaTeX) { - switch (code) { - case "⏜": return VJUST_TOP; - case "⏝": return VJUST_BOT; - case "⏞": return VJUST_TOP; - case "⏟": return VJUST_BOT; - case "⏠": return VJUST_TOP; - case "⏡": return VJUST_BOT; - case "⎴": return VJUST_BOT; - case "⎵": return VJUST_TOP; - } - } + let names = Object.keys(this.LaTeX); - function ProcessString(str, char) - { - let intLenOfRule = 0; - while (intLenOfRule <= char.length - 1) { - if (char[intLenOfRule] === str[intLenOfRule]) { - intLenOfRule++; - } - else { - return; + if (names.length < 1) + return false; + + for (let i = 0; i < names.length; i++) + { + let name = names[i]; + let data = this.LaTeX[name]; + + if (typeof(data) === "string") + { + this.SetUnicodeFromLaTeX(data, name); + + if (this.Unicode !== UnicodeWordList) + UnicodeWordList[name] = 1; + + if (isUseUnicodeInLaTeX) + this.private_AddToLaTeX(data, data); } } - return intLenOfRule; - } - function GetPrForFunction(oIndex) + return true; + }; + LexerLiterals.prototype.IsLaTeXInclude = function (name) { - let isHide = true; - if (oIndex) - isHide = false; + if (!this.LaTeX) + return false; - return { - degHide: isHide, - } - } - // Convert tokens to math objects - function ConvertTokens(oTokens, oContext) + return this.LaTeX[name] !== undefined; + }; + LexerLiterals.prototype.IsUnicodeInclude = function (name) { - Paragraph = oContext.Paragraph; + if (!this.Unicode) + return false; + return this.Unicode[name] !== undefined; + }; + LexerLiterals.prototype.AddToLaTeX = function (name, data) + { + if (!this.IsLaTeXInclude(name)) + this.private_AddToLaTeX(name, data); + }; + LexerLiterals.prototype.AddToUnicode = function (name, data) + { + if (!this.IsUnicodeInclude(name)) + this.private_AddToUnicode(name, data); + }; + LexerLiterals.prototype.private_AddToLaTeX = function (name, data) + { + this.LaTeX[name] = data; + this.SetUnicodeFromLaTeX(data, name); + }; + LexerLiterals.prototype.private_AddToUnicode = function (name, data) + { + this.Unicode[name] = data; + this.SetLaTeXFromUnicode(data, name); + }; + LexerLiterals.prototype.private_GetLaTeXWord = function (arrStr) + { + if (!arrStr || !arrStr[0]) + return; - if (typeof oTokens === "object") - { - if (oTokens.type === "LaTeXEquation" || oTokens.type === "UnicodeEquation") - { - type = oTokens.type === "LaTeXEquation" ? 1 : 0; - oTokens = oTokens.body; - } + let strFunc = "" - if (Array.isArray(oTokens)) + // remove regexp + if (this.isUseLaTeXBrackets) + { + let isStartBracket = false; + let isEndBracket = false; + let isSlashes = false; + for (let index = 0; arrStr[index] && /[a-zA-Z\\{}]/.test(arrStr[index]); index++) { - for (let i = 0; i < oTokens.length; i++) + if (arrStr[index] === "{") { - if (Array.isArray(oTokens[i])) - { - let oToken = oTokens[i]; - - for (let j = 0; j < oTokens[i].length; j++) - { - SelectObject(oToken[j], oContext); - } - } + if (!isStartBracket) + isStartBracket = true; else - { - SelectObject(oTokens[i], oContext); - } + return strFunc; } + else if (arrStr[index] === "}") + { + if (!isEndBracket && isStartBracket) + isEndBracket = true; + else + return strFunc; + } + else if (arrStr[index] === "\\") + { + if (!isSlashes) + isSlashes = true; + else + return strFunc; + } + + strFunc += arrStr[index]; + + if (this.LaTeX && this.LaTeX[strFunc]) + return strFunc; } - else - { - SelectObject(oTokens, oContext) - } + } + else if (this.Unicode && this.Unicode[arrStr[0]]) + { + return arrStr[0]; } else { - oContext.Add_Text(oTokens); + let strTemp; + let isSlashes = false; + for (let index = 0; arrStr[index] && /[a-zA-Z\\ ]/.test(arrStr[index]); index++) + { + strFunc += arrStr[index] + + if (this.LaTeX && this.LaTeX[strFunc]) + strTemp = strFunc; + else if (this instanceof TokenFunctionLiteral && this.IsLaTeXInclude(strFunc)) + strTemp = strFunc; + } + + if (!strTemp) + return strFunc + + return strTemp; } - } - let Paragraph = null; - // Find token in all types for convert - function SelectObject (oTokens, oContext) + return strFunc; + }; + LexerLiterals.prototype.private_GetUnicodeWord = function (arrStr) { - let num = 1; // needs for debugging + if (!arrStr || !arrStr[0]) + return; - if (oTokens) + let strFunc = ""; + for (let index = 0; arrStr[index] && /[a-zA-Z\\ ]/.test(arrStr[index]); index++) { - switch (oTokens.type) + strFunc += arrStr[index] + + if (this.UnicodeWords + && ( this.UnicodeWords[strFunc] + || (this.UnicodeWords === UnicodeWordList && strFunc[0] === '\\' && (MathAutoCorrectionFuncNames.includes(strFunc.slice(1)) || limitFunctions.includes(strFunc.slice(1)))))) + return strFunc; + } + }; + LexerLiterals.prototype.private_GetSpecialLaTeXWord = function (arrStr) + { + let isSlashes = false; + let strWord = ""; + for (let i = 0; i < arrStr.length; i++) + { + strWord = strWord + arrStr[i]; + if (this.LaTeXSpecial && this.LaTeXSpecial[strWord]) + return strWord; + } + }; + LexerLiterals.prototype.SetUnicodeFromLaTeX= function (name, data) + { + if (!this.Unicode[name]) + this.Unicode[name] = data; + }; + LexerLiterals.prototype.SetLaTeXFromUnicode = function (name, data) + { + this.LaTeX[name] = data; + }; + LexerLiterals.prototype.GetToken = function (type, str) + { + if (this.UnicodeWords && !type) + { + let outputData = this.private_GetUnicodeWord(str); + + if (outputData) + return outputData; + } + + if (this.GetByOneRule) + return this.GetByOneRule(str); + + if (!type) + return this.GetUnicodeToken(str); + else + { + if (this.LaTeXSpecial) { - case undefined: - for (let i = 0; i < oTokens.length; i++) { - ConvertTokens( - oTokens[i], - oContext - ); - } - break; - case oNamesOfLiterals.otherLiteral[num]: - case oNamesOfLiterals.functionNameLiteral[num]: - case oNamesOfLiterals.specialScriptNumberLiteral[num]: - case oNamesOfLiterals.specialScriptCharLiteral[num]: - case oNamesOfLiterals.specialScriptBracketLiteral[num]: - case oNamesOfLiterals.specialScriptOperatorLiteral[num]: - case oNamesOfLiterals.specialIndexNumberLiteral[num]: - case oNamesOfLiterals.specialIndexCharLiteral[num]: - case oNamesOfLiterals.specialIndexBracketLiteral[num]: - case oNamesOfLiterals.specialIndexOperatorLiteral[num]: - case oNamesOfLiterals.opDecimal[num]: - case oNamesOfLiterals.charLiteral[num]: - case oNamesOfLiterals.spaceLiteral[num]: - case oNamesOfLiterals.operatorLiteral[num]: - case oNamesOfLiterals.mathOperatorLiteral[num]: - case oNamesOfLiterals.numberLiteral[num]: - if (oTokens.decimal) { - ConvertTokens( - oTokens.left, - oContext - ); - oContext.Add_Text(oTokens.decimal) - ConvertTokens( - oTokens.right, - oContext - ); - } - else { - oContext.Add_Text(oTokens.value); - } - break; - case oNamesOfLiterals.textPlainLiteral[num]: - oContext.Add_Text(oTokens.value, Paragraph, STY_PLAIN); - break - case oNamesOfLiterals.opNaryLiteral[num]: - let lPr = { - chr: oTokens.value.charCodeAt(0), - subHide: true, - supHide: true, - } + let word = this.private_GetSpecialLaTeXWord(str); - let oNary = oContext.Add_NAry(lPr, null, null, null); - if (oTokens.third) { - UnicodeArgument( - oTokens.third, - oNamesOfLiterals.bracketBlockLiteral[num], - oNary.getBase() - ) - } - break; - case oNamesOfLiterals.preScriptLiteral[num]: - let oPreSubSup = oContext.Add_Script( - true, - {ctrPrp: new CTextPr(), type: DEGREE_PreSubSup}, - null, - null, - null - ); - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - oPreSubSup.getBase() - ); - UnicodeArgument( - oTokens.up, - oNamesOfLiterals.bracketBlockLiteral[num], - oPreSubSup.getUpperIterator() - ); - UnicodeArgument( - oTokens.down, - oNamesOfLiterals.bracketBlockLiteral[num], - oPreSubSup.getLowerIterator() - ); - break; - case MathLiterals.accent.id: - let oAccent = oContext.Add_Accent( - new CTextPr(), - IsArrow(oTokens.value) ? oTokens.value.charCodeAt(0) : GetFixedCharCodeAt(oTokens.value), - null - ); - UnicodeArgument( - oTokens.base, - oNamesOfLiterals.bracketBlockLiteral[num], - oAccent.getBase() - ); - break; - case oNamesOfLiterals.skewedFractionLiteral[num]: - case oNamesOfLiterals.fractionLiteral[num]: - let oFraction = oContext.Add_Fraction( - {ctrPrp: new CTextPr(), type: oTokens.fracType}, - null, - null - ); - UnicodeArgument( - oTokens.up, - oNamesOfLiterals.bracketBlockLiteral[num], - oFraction.getNumeratorMathContent() - ); - UnicodeArgument( - oTokens.down, - oNamesOfLiterals.bracketBlockLiteral[num], - oFraction.getDenominatorMathContent() - ); - break; - case oNamesOfLiterals.subSupLiteral[num]: - if (oTokens.value && oTokens.value.type === oNamesOfLiterals.functionLiteral[num]) { - let oFunc = oContext.Add_Function({}, null, null); - let oFuncName = oFunc.getFName(); + if (typeof word === "string" && word) + return word; + } + return this.GetLaTeXToken(str); + } + }; + LexerLiterals.prototype.GetUnicodeToken = function (str) + { + if (this.IsUnicodeInclude(str[0])) + return str[0]; + }; + LexerLiterals.prototype.GetLaTeXToken = function (str) + { + let word = this.private_GetLaTeXWord(str); - let Pr = (oTokens.up && oTokens.down) - ? {} - : (oTokens.up) - ? {type: DEGREE_SUPERSCRIPT} - : {type: DEGREE_SUBSCRIPT} + if (typeof word === "string" && this.IsLaTeXInclude(word)) + return word; - let SubSup = oFuncName.Add_Script( - oTokens.up && oTokens.down, - Pr, - null, - null, - null - ); - SubSup.getBase().Add_Text(oTokens.value.value, Paragraph, STY_PLAIN) + else if (this.IsLaTeXInclude(str[0])) + return str[0]; + }; + LexerLiterals.prototype.GetLaTeXWordFromSymbol = function (str) + { + let arr = Object.entries(this.LaTeX); - if (oTokens.up) { - UnicodeArgument( - oTokens.up, - oNamesOfLiterals.bracketBlockLiteral[num], - SubSup.getUpperIterator() - ) - } - if (oTokens.down) { - UnicodeArgument( - oTokens.down, - oNamesOfLiterals.bracketBlockLiteral[num], - SubSup.getLowerIterator() - ) - } + for (let i = 0; i < arr.length; i++) + { + let curArr = arr[i]; - if (oTokens.third) { - let oFuncArgument = oFunc.getArgument(); - UnicodeArgument( - oTokens.third, - oNamesOfLiterals.bracketBlockLiteral[num], - oFuncArgument - ) - } - } - else if (oTokens.value && oTokens.value.type === oNamesOfLiterals.functionWithLimitLiteral[num]){ - let oFuncWithLimit = oContext.Add_FunctionWithTypeLimit( - {}, - null, - null, - null, - oTokens.up ? LIMIT_UP : LIMIT_LOW - ); - oFuncWithLimit - .getFName() - .Content[0] - .getFName() - .Add_Text(oTokens.value.value, Paragraph, STY_PLAIN); + if (curArr[1] === str) + return curArr[0]; + } + } + // Search in Unicode group of tokens + LexerLiterals.prototype.SearchU = function (str) + { + return this.IsUnicodeInclude(str); + }; + // Search in LaTeX group of tokens + LexerLiterals.prototype.SearchL = function (str) + { + return this.IsLaTeXInclude(str); + }; - let oLimitIterator = oFuncWithLimit - .getFName() - .Content[0] - .getIterator(); + function TokenChars() + { + this.id = 0; + this.UnicodeWords = UnicodeWordList; + } + TokenChars.prototype = Object.create(LexerLiterals.prototype); + TokenChars.prototype.constructor = TokenChars; + TokenChars.prototype.GetByOneRule = function(arrStr) + { + if (arrStr[0]) + return arrStr[0]; + }; + TokenChars.prototype.SearchU = function (str) + { + if (str[0]) + return true; + } - if (oTokens.up || oTokens.down) { - UnicodeArgument( - oTokens.up === undefined ? oTokens.down : oTokens.up, - oNamesOfLiterals.bracketBlockLiteral[num], - oLimitIterator - ) - } - UnicodeArgument( - oTokens.third, - oNamesOfLiterals.bracketBlockLiteral[num], - oFuncWithLimit.getArgument() - ) - } - else if (oTokens.value && oTokens.value.type === oNamesOfLiterals.opNaryLiteral[num]) { + function TokenNumbers() + { + this.id = 1; + } + TokenNumbers.prototype = Object.create(LexerLiterals.prototype); + TokenNumbers.prototype.constructor = TokenNumbers; + TokenNumbers.prototype.GetByOneRule = function (arrStr) + { + if (['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'].includes(arrStr[0])) + return arrStr[0]; + }; - let Pr = { - chr: oTokens.value.value.charCodeAt(0), - subHide: oTokens.down === undefined, - supHide: oTokens.up === undefined, - } + function TokenOperators() + { + this.id = 2; + this.LaTeX = { + "\\angle" : "∠", + "\\approx" : "≈", + "\\ast" : "∗", + "\\asymp" : "≍", + "\\because" : "∵", + "\\bot" : "⊥", + "\\bowtie" : "⋈", + "\\bullet" : "∙", + "\\cap" : "∩", + "\\cdot" : "⋅", + "\\cdots" : "⋯", + "\\circ" : "∘", + "\\clubsuit" : "♣", + "\\cong" : "≅", + "\\cup" : "∪", + "\\ddots" : "⋱", + "\\diamond" : "⋄", + "\\diamondsuit" : "♢", + "\\div" : "÷", + "\\doteq" : "≐", + "\\dots" : "…", + "\\Downarrow" : "⇓", + "\\downarrow" : "↓", + "\\equiv" : "≡", + "\\exists" : "∃", + "\\forall" : "∀", + "\\ge" : "≥", + "\\geq" : "≥", + "\\gg" : "≫", + "\\heartsuit" : "♡", + "\\in" : "∈", + "\\infty" : "∞", + "\\ldots" : "…", + "\\le" : "≤", + "\\leq" : "≤", + "\\ll" : "≪", + "\\Longleftarrow" : "⟸", + "\\longleftarrow" : "⟵", + "\\Longleftrightarrow" : "⟺", + "\\longleftrightarrow" : "⟷", + "\\Longrightarrow" : "⟹", + "\\longrightarrow" : "⟶", + "\\ne" : "≠", + "\\nearrow" : "↗", + "\\neg" : "¬", + "\\neq" : "≠", + "\\ni" : "∋", + "\\nwarrow" : "↖", + "\\odot" : "⊙", + "\\ominus" : "⊖", + "\\oplus" : "⊕", + //"\\oslash" : "⊘", // todo + "\\otimes" : "⊗", + "\\parallel" : "∥", + "\\pm": "±", + "\\prcue" : "≼", + "\\prec" : "≺", + "\\preceq" : "⪯", + "\\preccurlyeq" : "≼", + "\\propto" : "∝", + "\\ratio" : "∶", + "\\rddots" : "⋰", + "\\searrow" : "↙", + "\\setminus" : "∖", + "\\sim" : "∼", + "\\simeq" : "≃", + "\\sqcap" : "⊓", + "\\sqcup" : "⊔", + "\\sqsubseteq" : "⊑", + "\\sqsuperseteq" : "⊒", + "\\star" : "⋆", + "\\subset" : "⊂", + "\\subseteq" : "⊆", + "\\succ" : "≻", + "\\succeq" : "≽", + "\\superset" : "⊃", + "\\superseteq" : "⊇", + "\\swarrow" : "↘", + "\\therefore" : "∴", + "\\times" : "×", + "\\top" : "⊤", + "\\Uparrow" : "⇑", + "\\uparrow" : "↑", + "\\Updownarrow" : "⇕", + "\\updownarrow" : "↕", + "\\uplus" : "⊎", + "\\vdots" : "⋮", + "\\vee" : "∨", + "\\wedge" : "∧", + "\\wr" : "≀", + "\\boxdot" : "⊡", + "\\boxminus" : "⊟", + "\\boxplus" : "⊞", + "\\defeq" : "≝", + "\\degc" : "℃", + "\\degf" : "℉", + "\\Deltaeq": "≜", + "\\frown": "⌑", + "\\mp" : "∓", + "\\notcontain" : "∌", + "\\notelement" : "∉", + "\\notin" : "∉", + "\\itimes" : "⁢", + + "⁣" : "⁣", + "⁤" : "⁤", + "⨯" : "⨯", + "⨝" : "⨝", + "⟕" : "⟕", + "⟖" : "⟖", + "⟗" : "⟗", + "⋉" : "⋉", + "⋊" : "⋊", + "▷" : "▷", + "+" : "+", + "-" : "-", + "*" : "*", + "=" : "=", + "≶" : "≶", + "≷" : "≷", + }; + this.Unicode = { + "⁣" : 1, + "⁤" : 1, + "⨯" : 1, + "⨝" : 1, + "⟕" : 1, + "⟖" : 1, + "⟗" : 1, + "⋉" : 1, + "⋊" : 1, + "▷" : 1, + "+" : 1, + "-" : 1, + "−" : 1, + "*" : 1, + "=" : 1, + "≶" : 1, + "≷" : 1, + }; + this.Init(true); + } + TokenOperators.prototype = Object.create(LexerLiterals.prototype); + TokenOperators.prototype.constructor = TokenOperators; + TokenOperators.prototype.IsNeedReturnCorrected_Unicode = true; - let oNary = oContext.Add_NAry(Pr, null, null, null); - ConvertTokens( - oTokens.third, - oNary.getBase() - ); - UnicodeArgument( - oTokens.up, - oNamesOfLiterals.bracketBlockLiteral[num], - oNary.getSupMathContent() - ) - UnicodeArgument( - oTokens.down, - oNamesOfLiterals.bracketBlockLiteral[num], - oNary.getSubMathContent() - ) - } - else { - let isSubSup = ((Array.isArray(oTokens.up) && oTokens.up.length > 0) || (!Array.isArray(oTokens.up) && oTokens.up !== undefined)) && - ((Array.isArray(oTokens.down) && oTokens.down.length > 0) || (!Array.isArray(oTokens.down) && oTokens.down !== undefined)) + function TokenOperand() + { + this.id = 3; + this.LaTeX = { + "\\aleph" : "ℵ", + "\\alpha" : "α", + "\\Alpha" : "Α", + "\\beta" : "β", + "\\beth" : "ℶ", + "\\bet" : "ℶ", + "\\chi" : "χ", + "\\daleth" : "ℸ", + "\\Dd" : "ⅅ", + "\\dd" : "ⅆ", + "\\degree" : "°", + "\\Delta" : "Δ", + "\\delta" : "δ", + "\\ee" : "ⅇ", + "\\ell" : "ℓ", + "\\emptyset" : "∅", + "\\epsilon" : "ϵ", + "\\eta" : "η", + "\\Gamma" : "Γ", + "\\G" : "Γ", + "\\gamma" : "γ", + "\\gimel" : "ℷ", + "\\hbar" : "ℏ", + "\\ii" : "ⅈ", + "\\Im" : "ℑ", + "\\imath" : "ı", + "\\inc" : "∆", + "\\iota" : "ι", + "\\jj" : "ⅉ", + "\\jmath" : "ȷ", + "\\kappa" : "κ", + "\\Lambda" : "Λ", + "\\lambda" : "λ", + "\\mu" : "μ", + "\\nabla" : "∇", + "\\nu" : "ν", + "\\Omega" : "Ω", + "\\omega" : "ω", + "\\partial" : "∂", + "\\Phi" : "Φ", + "\\phi" : "π", + "\\Psi" : "Ψ", + "\\psi" : "ψ", + "\\Re" : "ℜ", + "\\rho" : "ρ", + "\\Sigma" : "Σ", + "\\sigma" : "σ", + "\\tau" : "τ", + "\\Theta" : "Θ", + "\\theta" : "θ", + "\\Upsilon" : "Υ", + "\\upsilon" : "υ", + "\\varepsilon" : "ε", + "\\varphi" : "φ", + "\\varpi" : "ϖ", + "\\varrho" : "ϱ", + "\\varsigma" : "ς", + "\\vartheta" : "ϑ", + "\\wp" : "℘", + "\\Xi" : "Ξ", + "\\xi" : "ξ", + "\\zeta" : "ζ", + "\\Beta" : "Β", + "\\Epsilon" : "Ε", + "\\Zeta" : "Ζ", + "\\Eta" : "Η", + "\\Iota" : "Ι", + "\\Kappa" : "Κ", + "\\Mu" : "Μ", + "\\Nu" : "Ν", + "\\O" : "Ο", + "\\o" : "ο", + "\\pi" : "π", + "\\Pi" : "Π", + "\\Rho" : "Ρ", + "\\Tau" : "Τ", + "\\Chi" : "Χ", + + "\\to" : "→", + }; + this.Unicode = {}; + this.Init(); + } + TokenOperand.prototype = Object.create(LexerLiterals.prototype); + TokenOperand.prototype.constructor = TokenOperand; + TokenOperand.prototype.IsNeedReturnCorrected_Unicode = true; - let Pr = {ctrPrp: new CTextPr()}; - if (!isSubSup) { - if (oTokens.up) { - Pr.type = DEGREE_SUPERSCRIPT - } - else if (oTokens.down) { - Pr.type = DEGREE_SUBSCRIPT - } - } + function TokenOpenBrackets() + { + this.id = 4; + this.Unicode = { + "(" : 1, + }; + this.LaTeXSpecial = { + "\\{" : "\\{", + }; + this.LaTeX = { + "\\begin" : "〖", + "\\langle" : "⟨", + "\\lbrace" : "{", + "\\lbrack" : "[", + "\\lceil" : "⌈", + "\\lfloor" : "⌊", + "\\lbbrack" : "⟦", + "\\lmoust" : "⎰", + "\\bra" : "⟨", + "\\{" : "\\{", + "{" : "{", + "(" : "(", + "⟨" : "⟨", + "[" : "[", + "⌈" : "⌈", + "⌊" : "⌊", + "⟦" : "⟦", + "⎰" : "⎰", + "\\left" : 1, + }; + this.Init(); + } + TokenOpenBrackets.prototype = Object.create(LexerLiterals.prototype); + TokenOpenBrackets.prototype.constructor = TokenOpenBrackets; + TokenOpenBrackets.prototype.IsSimple = function (str) + { + return str === "(" || + str === "[" || + str === "{" || + str === "|" + } - let SubSup = oContext.Add_Script( - isSubSup, - Pr, - null, - null, - null - ); - ConvertTokens( - oTokens.value, - SubSup.getBase() - ); - UnicodeArgument( - oTokens.up, - oNamesOfLiterals.bracketBlockLiteral[num], - SubSup.getUpperIterator() - ); - UnicodeArgument( - oTokens.down, - oNamesOfLiterals.bracketBlockLiteral[num], - SubSup.getLowerIterator() - ); - } - break; - case oNamesOfLiterals.functionWithLimitLiteral[num]: - var MathFunc = new CMathFunc({}); - oContext.Add_Element(MathFunc); + function TokenSpecialBrackets() + { + this.id = 544; + this.Unicode = {}; + this.UnicodeWords = { + "\\open" : "├", + "\\close" : "┤", + "\\left" : "├", + "\\right" : "┤", + } + this.LaTeX = { + "\\open" : "├", + "\\close" : "┤", + "\\left" : "├", + "\\right" : "┤", + }; - var FuncName = MathFunc.getFName(); + this.Init(); + } + TokenSpecialBrackets.prototype = Object.create(LexerLiterals.prototype); + TokenSpecialBrackets.prototype.constructor = TokenSpecialBrackets; - var Limit = new CLimit({ctrPrp : new CTextPr(), type : oTokens.down !== undefined ? LIMIT_LOW : LIMIT_UP}); - FuncName.Add_Element(Limit); + function TokenCloseBrackets() + { + this.id = 5; + this.Unicode = { + ")" : 1, + "⟫" : 1, + "⟧" : 1, + }; + this.LaTeXSpecial = { + "\\}" : "\\}", + }; + this.LaTeX = { + "\\end" : "〗", + "\\rangle" : "⟩", + "\\ket" : "⟩", + "\\rbrace" : "}", + "\\rbrack" : "]", + "\\rceil" : "⌉", + "\\rfloor" : "⌋", + "\\Rbrack" : "⟧", + "\\right" : 1, + "}" : "}", + ")" : ")", + "⟩" : "⟩", + "]" : "]", + "⌉" : "⌉", + "⌋" : "⌋", + "⟧" : "⟧", + }; + this.Init(); + } + TokenCloseBrackets.prototype = Object.create(LexerLiterals.prototype); + TokenCloseBrackets.prototype.constructor = TokenCloseBrackets; + TokenCloseBrackets.prototype.IsSimple = function (str) + { + return str === ")" || + str === "]" || + str === "}" || + str === "|" + } - var LimitName = Limit.getFName(); - LimitName.Add_Text(oTokens.value, Paragraph, STY_PLAIN); + function TokenOpenCloseBrackets() + { + this.id = 6; + this.Unicode = {}; + this.LaTeXSpecial = { + "\\|" : "|", + }; + this.LaTeX = { + "\\norm" : "‖", + "\\Vert" : "‖", + "\\vert" : "|", - if (oTokens.up || oTokens.down) { - UnicodeArgument( - oTokens.up === undefined ? oTokens.down : oTokens.up, - oNamesOfLiterals.bracketBlockLiteral[num], - Limit.getIterator() - ) - } + "‖" : "‖", + "|" : "|", + }; + this.Init(); + } + TokenOpenCloseBrackets.prototype = Object.create(LexerLiterals.prototype); + TokenOpenCloseBrackets.prototype.constructor = TokenOpenCloseBrackets; - if (oTokens.third) - { - ConvertTokens( - oTokens.third, - MathFunc.getArgument() - ) - } + function TokenPhantom() + { + this.id = 7; + this.LaTeX = { + "\\asmash" : "⬆", + "\\dsmash" : "⬇", + "\\hphantom" : "⬄", + "\\hsmash" : "⬌", + "\\phantom" : "⟡", + "\\smash" : "⬍", + "\\vphantom" : "⇳", + }; + this.Unicode = {}; + this.Init(); + } + TokenPhantom.prototype = Object.create(LexerLiterals.prototype); + TokenPhantom.prototype.constructor = TokenPhantom; - break; - case oNamesOfLiterals.hBracketLiteral[num]: - if (oTokens.hBrack === "¯" || oTokens.hBrack === "▁") - { - let bar = oContext.Add_Bar({ctrPrp : new CTextPr(), pos : oTokens.hBrack === "¯" ? LOCATION_TOP : LOCATION_BOT}); + function TokenHorizontalStretch() + { + this.id = 8; + this.LaTeX = { + "\\dashv" : "⊣", + "\\gets" : "←", + "\\hookleftarrow" : "↩", + "\\hookrightarrow" : "↪", + "\\Leftarrow" : "⇐", + "\\leftarrow" : "←", + "\\leftharpoondown" : "↽", + "\\leftharpoonup" : "↼", + "\\Leftrightarrow" : "⇔", + "\\leftrightarrow" : "↔", + "\\mapsto" : "↦", + "\\models" : "⊨", + "\\Rightarrow" : "⇒", + "\\rightarrow" : "→", + "\\rightharpoondown" : "⇁", + "\\rightharpoonup" : "⇀", + //"\\to" : "→", + "\\vdash" : "⊢", + }; + this.UnicodeWords = { + "\\leftarrow" : "←", + "\\leftharpoondown" : "↽", + "\\leftharpoonup" : "↼", + "\\leftrightarrow" : "↔", + } + this.Unicode = { + "←" : "\\gets", + }; + this.Init(); + } + TokenHorizontalStretch.prototype = Object.create(LexerLiterals.prototype); + TokenHorizontalStretch.prototype.constructor = TokenHorizontalStretch; - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - bar.getBase() - ); - break; - } - let intBracketPos = GetHBracket(oTokens.hBrack); - if (intBracketPos === undefined) - intBracketPos = LIMIT_LOW; - let intIndexPos = oTokens.up === undefined ? LIMIT_LOW : LIMIT_UP; + function TokenDivide() + { + this.id = 11; + this.LaTeXSpecial = { + "\\binom": "\\binom", + "\\sfrac": "\\sfrac", + "\\frac": "\\frac", + "\\cfrac": "\\cfrac", + "\\over" : "\\over", + }; + this.LaTeX = { + "\\atop" : "¦", + "\\ndiv" : "⊘", + "\\over" : "/", + "\\sdiv" : "⁄", + "\\ldiv" : "∕", + "\\ldivide" : "∕", + }; + this.Unicode = {}; + this.Init(); + } + TokenDivide.prototype = Object.create(LexerLiterals.prototype); + TokenDivide.prototype.constructor = TokenDivide; - if (!(oTokens.up || oTokens.down)) - { - let oGroup = oContext.Add_GroupCharacter({ - ctrPrp: new CTextPr(), - chr: oTokens.hBrack.charCodeAt(0), - pos: intBracketPos, - vertJc: intBracketPos === VJUST_BOT ? VJUST_TOP : VJUST_BOT, - }, null); + function TokenEqArray() + { + this.id = 12; + this.LaTeX = { + "\\substack" : "\\substack", + }; + this.Unicode = {}; + this.Init(); + } + TokenEqArray.prototype = Object.create(LexerLiterals.prototype); + TokenEqArray.prototype.constructor = TokenEqArray; - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - oGroup.getBase() - ) - } - else - { - let Limit = oContext.Add_Limit({ctrPrp: new CTextPr(), type: intIndexPos}, null, null); - let MathContent = Limit.getFName(); - let oGroup = MathContent.Add_GroupCharacter({ - ctrPrp: new CTextPr(), - chr: oTokens.hBrack.charCodeAt(0), - vertJc: intBracketPos === VJUST_BOT ? VJUST_TOP : VJUST_BOT, - pos: intBracketPos - }, null); + function TokenMarker() + { + this.id = 13; + this.LaTeX = { + "\\eqno" : "#", + }; + this.Unicode = {}; + this.Init(); + } + TokenMarker.prototype = Object.create(LexerLiterals.prototype); + TokenMarker.prototype.constructor = TokenMarker; - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - oGroup.getBase() - ) + function TokenSubSup() + { + this.id = 14; + this.LaTeX = { + "\\above" : "┴", + "\\below" : "┬", + "\\pppprime" : "⁗", + "\\ppprime" : "‴", + "\\pprime" : "″", + "\\prime" : "′", + "_" : "_", + "^" : "^", + }; + this.Unicode = { + "_" : 1, + "^" : 1, + }; + this.UnicodeWords = { + "\\above" : 1, + "\\below" : 1, + } + this.Init(); + } + TokenSubSup.prototype = Object.create(LexerLiterals.prototype); + TokenSubSup.prototype.constructor = TokenSubSup; - if (oTokens.down || oTokens.up) - { - UnicodeArgument( - oTokens.up === undefined ? oTokens.down : oTokens.up, - oNamesOfLiterals.bracketBlockLiteral[num], - Limit.getIterator() - ) - } - } + function TokenNary() + { + this.id = 15; + this.Unicode = { + }; + this.LaTeX = { + "\\amalg" : "∐", + "\\aoint": "∳", + "\\bigcap" : "⋂", + "\\bigcup" : "⋃", + "\\bigodot" : "⨀", + "\\bigoplus" : "⨁", + "\\bigotimes" : "⨂", + "\\bigsqcup" : "⨆", + "\\biguplus" : "⨄", + "\\bigvee" : "⋁", + "\\bigwedge" : "⋀", + "\\coint" : "∲", + "\\iiiint" : "⨌", + "\\iiint" : "∭", + "\\iint" : "∬", + "\\int" : "∫", + "\\oiiint" : "∰", + "\\oiint" : "∯", + "\\oint" : "∮", + "\\prod" : "∏", + "\\sum" : "∑", + }; + this.Init(); + } + TokenNary.prototype = Object.create(LexerLiterals.prototype); + TokenNary.prototype.constructor = TokenNary; - break; - case oNamesOfLiterals.bracketBlockLiteral[num]: + function TokenRadical() + { + this.id = 16; + this.Unicode = {}; + this.LaTeX = { + "\\cbrt" : "∛", + "\\qdrt" : "∜", + "\\sqrt" : "√", + + "\\root" : "⒭", + }; + this.Init(); + } + TokenRadical.prototype = Object.create(LexerLiterals.prototype); + TokenRadical.prototype.constructor = TokenRadical; - if (oTokens.counter === 1 && oTokens.left === "〖" && oTokens.right === "〗") - { - ConvertTokens( - oTokens.value, - oContext - ); - break; - } + function TokenRrect() + { + this.id = 17; + this.Unicode = {}; + this.LaTeX = { + "\\rrect" : "▢", + }; + this.Init(); + } + TokenRrect.prototype = Object.create(LexerLiterals.prototype); + TokenRrect.prototype.constructor = TokenRrect; - let arr = [null] - if (oTokens.counter > 1 && oTokens.value.length < oTokens.counter) - { - for (let i = 0; i < oTokens.counter - 1; i++) - { - arr.push(null); - } - } - let oBracket = oContext.Add_DelimiterEx( - new CTextPr(), - oTokens.value.length ? oTokens.value.length : oTokens.counter || 1, - arr, - GetBracketCode(oTokens.left), - GetBracketCode(oTokens.right) - ); - if (oTokens.value.length) { - for (let intCount = 0; intCount < oTokens.value.length; intCount++) { - ConvertTokens( - oTokens.value[intCount], - oBracket.getElementMathContent(intCount) - ); - } - } - else { - ConvertTokens( - oTokens.value, - oBracket.getElementMathContent(0) - ); - } + function TokenDelimiter() + { + this.id = 18; + this.Unicode = {}; + this.LaTeX = { + "\\mid" : "∣", + "\\vbar" : "│", - break; - case oNamesOfLiterals.sqrtLiteral[num]: - let Pr = GetPrForFunction(oTokens.index); - let oRadical = oContext.Add_Radical( - Pr, - null, - null - ); - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - oRadical.getBase() - ) - ConvertTokens( - oTokens.index, - oRadical.getDegree() - ); - break; - case oNamesOfLiterals.functionLiteral[num]: - let oFunc = oContext.Add_Function({}, null, null); + }; + this.Init(); + } + TokenDelimiter.prototype = Object.create(LexerLiterals.prototype); + TokenDelimiter.prototype.constructor = TokenDelimiter; - if (oTokens.value[0] === "\\") { - oTokens.value = oTokens.value.slice(1); - } - oFunc.getFName().Add_Text(oTokens.value, Paragraph, STY_PLAIN); - ConvertTokens( - oTokens.third, - oFunc.getArgument() - ); - break; - case oNamesOfLiterals.mathFontLiteral[num]: - ConvertTokens( - oTokens.value, - oContext - ); - break; - case oNamesOfLiterals.matrixLiteral[num]: - let strStartBracket, strEndBracket; - if (oTokens.strMatrixType) { - if (oTokens.strMatrixType.length === 2) { - strStartBracket = oTokens.strMatrixType[0].charCodeAt(0) - strEndBracket = oTokens.strMatrixType[1].charCodeAt(0) - } - else { - strEndBracket = strStartBracket = oTokens.strMatrixType[0].charCodeAt(0) - } - } - let rows = oTokens.value.length; - let cols = oTokens.value[0].length; + function TokenAccent() + { + this.id = 19; + this.LaTeX = { + "\\hat": "̂", + "\\widehat": "̂", + "\\check": "̌", + "\\tilde": "̃", + "\\widetilde": "~", + "\\acute": "́", + "\\grave": "̀", + "\\dot": "̇", + "\\ddddot" : "⃜", + "\\ddot": '̈', + "\\dddot": "⃛", + "\\breve": "̆", + "\\bar": "̅", + "\\Bar": "̿", + "\\vec": "⃗", + "\\lhvec" : "⃐", + "\\hvec" : "⃑", + "\\tvec" : "⃡", + "\\lvec" : "⃖", + "\\ubar": "̲", + "\\Ubar": "̳", + }; + this.Unicode = {}; - if (cols === 0) - cols++; - if (strEndBracket && strStartBracket) { - let Delimiter = oContext.Add_DelimiterEx(new CTextPr(), 1, [null], strStartBracket, strEndBracket); - oContext = Delimiter.getElementMathContent(0); - } - let oMatrix = oContext.Add_Matrix(new CTextPr(), rows, cols, false, []); + this.Init(); + } + TokenAccent.prototype = Object.create(LexerLiterals.prototype); + TokenAccent.prototype.IsUnicodeToken = function (str) + { + if (!str || !str[0]) + return; - for (let intRow = 0; intRow < rows; intRow++) { - for (let intCol = 0; intCol < cols; intCol++) { - let oContent = oMatrix.getContentElement(intRow, intCol); - ConvertTokens( - oTokens.value[intRow][intCol], - oContent - ); - } - } - break; - case oNamesOfLiterals.arrayLiteral[num]: - let intCountOfRows = oTokens.value.length + 1; - let oEqArray = oContext.Add_EqArray({ - ctrPrp: new CTextPr(), - row: intCountOfRows - }, null, null); - for (let i = 0; i < oTokens.value.length; i++) { - let oMathContent = oEqArray.getElementMathContent(i); - ConvertTokens( - oTokens.value[i], - oMathContent - ); - } - break; - case oNamesOfLiterals.boxLiteral[num]: - let oBox = oContext.Add_Box({ctrPrp: new CTextPr(), opEmu : 1}, null); - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - oBox.getBase() - ) - break; - case oNamesOfLiterals.borderBoxLiteral[num]: - let BorderBox = oContext.Add_BorderBox({}, null); - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - BorderBox.getBase() - ) - break; - case oNamesOfLiterals.rectLiteral[num]: - let oBorderBox = oContext.Add_BorderBox({}, null); - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - oBorderBox.getBase() - ) - break; - case oNamesOfLiterals.overBarLiteral[num]: - let intLocation = oTokens.overUnder === "▁" ? LOCATION_BOT : LOCATION_TOP; - let oBar = oContext.Add_Bar({ctrPrp: new CTextPr(), pos: intLocation}, null); - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - oBar.getBase() - ); - break; - case oNamesOfLiterals.belowAboveLiteral[num]: - let LIMIT_TYPE = (oTokens.isBelow === false) ? VJUST_BOT : VJUST_TOP; - if (oTokens.base && oTokens.base.type === oNamesOfLiterals.charLiteral[num] && oTokens.base.value.length === 1 && IsArrow(oTokens.base.value)) - { + let strFirstSymbol = str[0]; - let Pr; - if (LIMIT_TYPE === VJUST_TOP) - { - Pr = { - ctrPrp : new CTextPr(), - pos : LIMIT_TYPE, - //vertJc : LIMIT_TYPE === LIMIT_LOW ? LIMIT_UP : LIMIT_LOW, - chr : oTokens.base.value.charCodeAt(0), - }; - } - else - { - Pr = { - ctrPrp : new CTextPr(), - vertJc : LIMIT_TYPE, - chr : oTokens.base.value.charCodeAt(0), - }; - } + let code = strFirstSymbol.charCodeAt(0); + const isFirstBlocks = function (code) { + return code >= 768 && code <= 879 + } + const isSecondBlocks = function (code) { + return code >= 8400 && code <= 8447 + } - var Group = new CGroupCharacter(Pr); - oContext.Add_Element(Group); + if (isFirstBlocks(code) || isSecondBlocks(code)) + return strFirstSymbol; + }; - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - Group.getBase() - ); - } - else - { - let oLimit = oContext.Add_Limit({ctrPrp: new CTextPr(), type: LIMIT_TYPE}); - UnicodeArgument( - oTokens.base, - oNamesOfLiterals.bracketBlockLiteral[num], - oLimit.getFName() - ); - UnicodeArgument( - oTokens.value, - oNamesOfLiterals.bracketBlockLiteral[num], - oLimit.getIterator() - ); - } + function TokenBox() + { + this.id = 20; + this.Unicode = {}; + this.LaTeX = { + "\\box" : "□" + }; + this.Init(); + } + TokenBox.prototype = Object.create(LexerLiterals.prototype); + TokenBox.prototype.constructor = TokenBox; - break; - } - } + function TokenMatrix() + { + this.id = 21; + this.data = ["⒩", "■"]; + this.Unicode = {}; + this.LaTeX = { + "\\matrix" : "■", + "\\eqarray" : "█", + + "\\begin{cases}" : 1, + "\\begin{pmatrix}" : 1, + "\\begin{matrix}" : 1, + "\\begin{bmatrix}" : 1, + "\\begin{Bmatrix}" : 1, + "\\begin{vmatrix}" : 1, + "\\begin{Vmatrix}" : 1, + "\\begin{array}" : 1, + "\\begin{equation}" : 1, + + "\\end{cases}" : 2, + "\\end{pmatrix}" : 2, + "\\end{matrix}" : 2, + "\\end{bmatrix}" : 2, + "\\end{Bmatrix}" : 2, + "\\end{vmatrix}" : 2, + "\\end{Vmatrix}" : 2, + "\\end{array}" : 2, + "\\end{equation}" : 2, + }; + this.Init(); } - // Trow content and may skip bracket block - function UnicodeArgument (oInput, oComparison, oContext) + TokenMatrix.prototype = Object.create(LexerLiterals.prototype); + TokenMatrix.prototype.constructor = TokenMatrix; + TokenMatrix.prototype.isUseLaTeXBrackets = true; + + function TokenRect() { - if (oInput && type === 0 && oInput.type === oComparison && oInput.left === "(" && oInput.right === ")" && oInput.counter === 1) - { - ConvertTokens( - oInput.value, - oContext - ) - } - else if (oInput) - { - ConvertTokens( - oInput, - oContext - ) - } + this.id = 22; + this.Unicode = {}; + this.LaTeX = { + "\\rect" : "▭", + }; + this.Init(); } + TokenRect.prototype = Object.create(LexerLiterals.prototype); + TokenRect.prototype.constructor = TokenRect; - function Tokenizer() + function TokenSpace() { - this._string = []; - this._cursor = 0; - this.state = []; + this.id = 23; + this.Unicode = { + "  " : 1, // 2/18em space very thin math space + "  " : 1, // 7/18em space very very thick math space + " " : 1, + "\t" : 1, + "\n" : 1, + " " : 1, + "‌" : 1, + }; + this.LaTeX = { + "\\nbsp" : " ", // space width && no-break space + "\\numsp" : " ", // digit width + "\\emsp" : " ", // 18/18 em + "\\ensp" : " ", // 9/18 em + "\\vthicksp": " ", // 6/18 em verythickmathspace + "\\thicksp" : " ", // 5/18 em thickmathspace + "\\medsp" : " ", // 4/18 em mediummathspace + "\\thinsp" : " ", // 3/18 em thinmathspace + "\\hairsp" : " ", // 3/18 em veryverythinmathspace + "\\zwsp" : "​", + "\\zwnj" : "‌", + " " : " ", + + "\\ " : " ", + // "\\quad" : " ", + // "\\qquad" : "  ", + // "\:" : " ", + // "\;" : " ", + //"\!" : "", + + }; + this.Init(); } - Tokenizer.prototype.Init = function (string) + TokenSpace.prototype = Object.create(LexerLiterals.prototype); + TokenSpace.prototype.constructor = TokenSpace; + + function TokenLaTeXWords() { - this._string = this.GetSymbols(string); - this._cursor = 0; - }; - Tokenizer.prototype.GetSymbols = function (str) + this.id = 24; + this.isClassEqalData = true; + } + TokenLaTeXWords.prototype = Object.create(LexerLiterals.prototype); + TokenLaTeXWords.prototype.constructor = TokenLaTeXWords; + TokenLaTeXWords.prototype.SearchForLaTeXToken = function (arrStr) { - let output = []; - for (let oIter = str.getUnicodeIterator(); oIter.check(); oIter.next()) - { - output.push(String.fromCodePoint(oIter.value())); - } - return output; + return this.private_GetLaTeXWord(arrStr); }; - Tokenizer.prototype.GetStringLength = function (str) + + function TokenFunctionLiteral() { - let intLen = 0; - for (let oIter = str.getUnicodeIterator(); oIter.check(); oIter.next()) { - intLen++; - } - return intLen; - }; - Tokenizer.prototype.IsHasMoreTokens = function () + this.id = 25; + } + TokenFunctionLiteral.prototype = Object.create(LexerLiterals.prototype); + TokenFunctionLiteral.prototype.constructor = TokenFunctionLiteral; + TokenFunctionLiteral.prototype.IsLaTeXInclude = function (str) { - return this._cursor < this._string.length; + if (MathAutoCorrectionFuncNames.includes(str.slice(1)) || limitFunctions.includes(str.slice(1))) + return str; }; - Tokenizer.prototype.GetTextOfToken = function (intIndex, isLaTeX) + TokenFunctionLiteral.prototype.IsLaTeXIncludeNormal = function (str) { - let arrToken = wordAutoCorrection[intIndex]; - - if (typeof arrToken[0] !== "function") - { - if (isLaTeX && arrToken[1] !== undefined) - { - return arrToken[0]; - } - else if (!isLaTeX && arrToken[1] !== undefined) - { - return arrToken[1]; - } - } - }; - Tokenizer.prototype.GetNextToken = function () + if (MathAutoCorrectionFuncNames.includes(str.slice(1))) + return str; + } + TokenFunctionLiteral.prototype.IsLaTeXIncludeLimit = function (str) { - if (!this.IsHasMoreTokens()) - return { - class: undefined, - data: undefined, - }; + if (limitFunctions.includes(str.slice(1))) + return str; + } + TokenFunctionLiteral.prototype.IsUnicodeInclude = function(arrStr) + { + if (!arrStr) + return; - let autoCorrectRule, - tokenValue, - tokenClass, - string = this._string.slice(this._cursor), - mathLiteral; + if (!Array.isArray(arrStr)) + arrStr = [arrStr]; + let strLast = ""; - for (let i = wordAutoCorrection.length - 1; i >= 0; i--) + function IsFunc(arrStr) { - autoCorrectRule = wordAutoCorrection[i]; - tokenValue = this.MatchToken(autoCorrectRule[0], string); - mathLiteral = GetClassOfMathLiterals[autoCorrectRule[1]]; - - if (tokenValue === null) - { - continue; - } - if (mathLiteral) - { - let new_token = mathLiteral.toSymbols[tokenValue]; - if (new_token) - tokenValue = new_token; - } - else if (autoCorrectRule.length === 1) - { - tokenClass = oNamesOfLiterals.charLiteral[0]; - } - else if (autoCorrectRule.length === 2) - { - tokenClass = (autoCorrectRule[1] === true) - ? tokenValue - : autoCorrectRule[1]; - } - - return { - class: tokenClass, - data: tokenValue, - index: i, - } + let str = arrStr.join(""); + if (oMathAutoCorrection.arrFunctionsNames[str] === null) + strLast = str; } - }; - Tokenizer.prototype.ProcessString = function (str, char) - { - let intLenOfRule = 0; - while (intLenOfRule <= char.length - 1) { - if (char[intLenOfRule] === str[intLenOfRule]) - { - intLenOfRule++; - } - else - { - return; - } + for (let i = 1; i <= arrStr.length; i++) + { + IsFunc(arrStr.slice(0, i), i); } - return char; + + if (strLast) + return strLast; }; - Tokenizer.prototype.MatchToken = function (regexp, string) + TokenFunctionLiteral.prototype.GetUnicodeToken = function (arrStr) { - let oMatched = (typeof regexp === "function") - ? regexp(string, this) - : this.ProcessString(string, regexp); + return this.IsUnicodeInclude(arrStr); + }; - if (oMatched === null || oMatched === undefined) - { - return null; + function TokenSpecialLiteral() + { + this.id = 26; + this.Unicode = { + // "┬" : 1, + // "┴" : 1, + "&" : 1, + "@" : 1, + }; + this.LaTeX = { + // "\\cases" : "Ⓒ", + // "\\j" : "Jay", } - this._cursor += this.GetStringLength(oMatched); - return oMatched; - }; - Tokenizer.prototype.SaveState = function (oLookahead) + } + TokenSpecialLiteral.prototype = Object.create(LexerLiterals.prototype); + TokenSpecialLiteral.prototype.constructor = TokenSpecialLiteral; + + function TokenOther() + { + this.id = 27; + this.Unicode = {}; + this.LaTeX = {}; + this.Init(); + } + TokenOther.prototype = Object.create(LexerLiterals.prototype); + TokenOther.prototype.constructor = TokenOther; + TokenOther.prototype.GetUnicodeToken = function(arrStr) { - let strClass = oLookahead.class; - let data = oLookahead.data; + let intCode = GetFixedCharCodeAt(arrStr[0]); + if (intCode >= 0x1D400 && intCode <= 0x1D7FF) + return arrStr[0]; + }; - this.state.push({ - _string: this._string, - _cursor: this._cursor, - oLookahead: { class: strClass, data: data}, - }) + function TokenHorizontalBrackets() + { + this.id = 28; + this.LaTeX = { + "\\overparen": "⏜", + "\\underparen": "⏝", + "\\overbrace": "⏞", + "\\overline": "¯", + "\\underbar" : "▁", + "\\overbar" : "¯", + "\\underbrace": "⏟", + "\\overshell": "⏠", + "\\undershell": "⏡", + "\\overbracket": "⎴", + "\\underbracket": "⎵", + "\\underline" : "▁", }; - Tokenizer.prototype.RestoreState = function () + this.Unicode = {}; + this.Init(); + } + TokenHorizontalBrackets.prototype = Object.create(LexerLiterals.prototype); + TokenHorizontalBrackets.prototype.constructor = TokenHorizontalBrackets; + TokenHorizontalBrackets.prototype.GetPos = function (str) { - if (this.state.length > 0) { - let oState = this.state.shift(); - this._cursor = oState._cursor; - this._string = oState._string; - return oState.oLookahead; + switch (str) { + case "⏜": return VJUST_TOP; + case "⏝": return VJUST_BOT; + case "⏞": return VJUST_TOP; + case "⏟": return VJUST_BOT; + case "⏠": return VJUST_TOP; + case "⏡": return VJUST_BOT; + case "⎴": return VJUST_BOT; + case "⎵": return VJUST_TOP; + case "▁": return VJUST_BOT; + case "¯": return VJUST_TOP; + + case "\\overparen": return VJUST_TOP; + case "\\underparen": return VJUST_BOT; + case "\\overbrace": return VJUST_TOP; + case "\\overline": return VJUST_TOP; + case "\\underbar" : return VJUST_BOT; + case "\\overbar" : return VJUST_TOP; + case "\\underbrace": return VJUST_BOT; + case "\\overshell": return VJUST_TOP; + case "\\undershell": return VJUST_BOT; + case "\\overbracket": return VJUST_TOP; + case "\\underbracket": return VJUST_BOT; + case "\\underline" : return VJUST_BOT; } - }; + } - function GetFixedCharCodeAt(str) + function TokenInvisibleOperators() { - let code = str.charCodeAt(0); - let hi, low; + this.id = 29; + this.Unicode = {}; + this.LaTeX = { + "\\funcapply" : "⁡", // Invisible function application + }; + this.Init(); + } + TokenInvisibleOperators.prototype = Object.create(LexerLiterals.prototype); + TokenInvisibleOperators.prototype.constructor = TokenInvisibleOperators; - if (0xd800 <= code && code <= 0xdbff) { - hi = code; - low = str.charCodeAt(1); - if (isNaN(low)) { - return null; + function TokenAlphanumeric() + { + this.id = 30; + this.Unicode = {}; + this.LaTeX = {}; + this.Init(); + } + TokenAlphanumeric.prototype = Object.create(LexerLiterals.prototype); + TokenAlphanumeric.prototype.constructor = TokenAlphanumeric; + TokenAlphanumeric.prototype.GetUnicodeToken = function(arrStr) + { + let intCode = GetFixedCharCodeAt(arrStr[0]); + if (intCode >= 0x1D400 && intCode <= 0x1D7FF || intCode >= 0x2102 && intCode <= 0x2134) + return arrStr[0]; + }; + + function TokenFont() + { + this.id = 31; + this.Unicode = {}; + this.LaTeX = { + // Standart Word functions with higher proirity for linear format + "\\mathcal": "\\mathcal", + "\\mathsf": "\\mathsf", + "\\mathrm": "\\mathrm", + "\\mathit": "\\mathit", + "\\mathfrak": "\\mathfrak", + "\\mathbfcal": "\\mathbfcal", + "\\mathbf": "\\mathbf", + "\\mathbb": "\\mathbb", + + // other LaTeX functions + "\\sf": "\\sf", + "\\script":"\\script", + "\\scr":"\\scr", + "\\rm": "\\rm", + "\\oldstyle":"\\oldstyle", + "\\mathtt": "\\mathtt", + "\\mathsfit":"\\mathsfit", + "\\mathsfbfit":"\\mathsfbfit", + "\\mathsfbf":"\\mathsfbf", + "\\mathbfit":"\\mathbfit", + "\\mathbffrak": "\\mathbffrak", + "\\it":"\\it", + "\\fraktur":"\\fraktur", + "\\frak":"\\frak", + "\\double": "\\double", + }; + this.Init(); + } + TokenFont.prototype = Object.create(LexerLiterals.prototype); + TokenFont.prototype.constructor = TokenFont; + TokenFont.prototype.GetType = function (strToken) + { + return GetTypeFont[strToken]; + }; + TokenFont.prototype.GetTypes = function () + { + return GetTypeFont; + } + + function TokenOf() + { + this.id = 32; + this.Unicode = {}; + this.LaTeX = { + "\\of" : "▒", + "\\naryand" : "▒", + }; + this.Init(); + } + TokenOf.prototype = Object.create(LexerLiterals.prototype) + TokenOf.prototype.constructor = TokenOf; + + function TokenArrayMatrix() + { + this.id = 33; + this.Unicode = {}; + this.LaTeX = { + "\\\\" : "\\\\", + }; + this.Init(); + } + TokenArrayMatrix.prototype = Object.create(LexerLiterals.prototype) + TokenArrayMatrix.prototype.constructor = TokenArrayMatrix; + TokenArrayMatrix.prototype.GetLaTeXToken = function (str) + { + if (str[0] === "\\" && str[1] === "\\") + return "\\\\" + } + + function TokenPunctuation() + { + this.id = 34; + this.Unicode = {}; + this.LaTeX = {}; + //for now, later add Unicode + this.LaTeXSpecial = { + ",": ",", + ".": ".", + }; + this.Init(); + } + TokenPunctuation.prototype = Object.create(LexerLiterals.prototype) + TokenPunctuation.prototype.constructor = TokenPunctuation; + + //---------------------------------------Initialize data for Tokenizer---------------------------------------------- + + // List of tokens types for parsers processing + const MathLiterals = { + subSup: new TokenSubSup(), + func: new TokenFunctionLiteral(), + LaTeX: new TokenLaTeXWords(), + alphanumeric: new TokenAlphanumeric(), + other: new TokenOther(), + radical: new TokenRadical(), + nary: new TokenNary(), + invisible: new TokenInvisibleOperators(), + divide: new TokenDivide(), + hbrack: new TokenHorizontalBrackets(), + specialBrac: new TokenSpecialBrackets(), + lrBrackets: new TokenOpenCloseBrackets(), + rBrackets: new TokenCloseBrackets(), + lBrackets: new TokenOpenBrackets(), + operand: new TokenOperand(), + operator: new TokenOperators(), + space: new TokenSpace(), + accent: new TokenAccent(), + number: new TokenNumbers(), + special: new TokenSpecialLiteral(), + box: new TokenBox(), + rect: new TokenRect(), + matrix: new TokenMatrix(), + font: new TokenFont(), + of: new TokenOf(), + delimiter: new TokenDelimiter(), + char: new TokenChars(), + horizontal: new TokenHorizontalStretch(), + arrayMatrix: new TokenArrayMatrix(), + eqArray: new TokenEqArray(), + punct: new TokenPunctuation(), + }; + + // The array defines the sequence in which the tokens are checked by the lexer + // the higher an element is, the lower its priority + const arrTokensCheckerList = [ + MathLiterals.char, + MathLiterals.func, + MathLiterals.specialBrac, + MathLiterals.LaTeX, + MathLiterals.font, + MathLiterals.delimiter, + MathLiterals.special, + MathLiterals.of, + MathLiterals.number, + MathLiterals.operand, + MathLiterals.accent, + MathLiterals.operator, + MathLiterals.divide, + MathLiterals.rect, + MathLiterals.lBrackets, + MathLiterals.rBrackets, + MathLiterals.lrBrackets, + MathLiterals.hbrack, + MathLiterals.invisible, + MathLiterals.horizontal, + MathLiterals.matrix, + MathLiterals.nary, + MathLiterals.radical, + MathLiterals.other, + MathLiterals.alphanumeric, + MathLiterals.subSup, + MathLiterals.arrayMatrix, + MathLiterals.eqArray, + MathLiterals.punct, + MathLiterals.space, + ]; + + //-------------------------------------Generating AutoCorrection Rules---------------------------------------------- + + // Special autocorrection elements (doesn't start with //) + const SpecialAutoCorrection = { + "!!" : "‼", + "...": "…", + "::" : "∷", + ":=" : "≔", + + "~=" : "≅", + "+-" : "±", + "-+" : "∓", + "<<" : "≪", + "<=" : "≤", + "->" : "→", + ">=" : "≥", + ">>" : "≫", + "/<" : "≮", + "/=" : "≠", + }; + const MathAutoCorrectionLong = { + "\\binomial" : "(a+b)^n=∑_(k=0)^n ▒(n¦k)a^k b^(n-k)", + "\\integral": "1/2π ∫_0^2π ▒ⅆθ/(a+b sin θ)=1/√(a^2-b^2)", + "\\identitymatrix": "(■(1&0&0@0&1&0@0&0&1))", + "\\break": "⤶", + "\\limit" : "lim_(n→∞)⁡〖(1+1/n)^n〗=e", + } + + // Generate autocorrection rules + function MathAutoCorrectionList() // oMathAutoCorrection + { + this.arrRuleList = []; + this.oGeneralRules = {}; + this.oSpecialList = {}; + this.arrFunctionsNames = { + 'arcsin' : null, + 'asin' : null, + 'sin' : null, + 'arcsinh' : null, + 'asinh' : null, + 'sinh' : null, + 'arcsec' : null, + 'sec' : null, + 'asec' : null, + 'arcsech' : null, + 'asech' : null, + 'sech' : null, + 'arccos' : null, + 'acos' : null, + 'cos' : null, + 'arccosh' : null, + 'acosh' : null, + 'cosh' : null, + 'arccsc' : null, + 'acsc' : null, + 'csc' : null, + 'arccsch' : null, + 'acsch' : null, + 'csch' : null, + 'arctan' : null, + 'atan' : null, + 'tan' : null, + 'arctanh' : null, + 'atanh' : null, + 'tanh' : null, + 'arccot' : null, + 'acot' : null, + 'cot' : null, + 'arccoth' : null, + 'acoth' : null, + 'coth' : null, + 'arg' : null, + 'det' : null, + 'exp' : null, + 'inf' : null, + 'lim' : null, + 'min' : null, + 'def' : null, + 'dim' : null, + 'gcd' : null, + 'log' : null, + 'Pr' : null, + 'deg' : null, + 'erf' : null, + 'lg' : null, + 'ln' : null, + 'max' : null, + 'sup' : null, + "ker" : null, + 'hom' : null, + 'sgn' : null, + }; + this.GenerateTokens(); + + return this; + } + MathAutoCorrectionList.prototype.AddObjectToGeneral = function (oObj) + { + this.oGeneralRules = Object.assign(this.oGeneralRules, oObj); + }; + MathAutoCorrectionList.prototype.AddData = function (name, data) + { + this.oGeneralRules[name] = data; + }; + MathAutoCorrectionList.prototype.GenerateTokens = function () + { + this.GenerateAutoCorrectionList(); + this.GenerateTokensByFont(); + this.GenerateSpecialRules(); + this.GenerateCustomRules(); + + const CheckSort = function (a,b) + { + if (a[0] < b[0]) + { + return -1; } - return (hi - 0xd800) * 0x400 + (low - 0xdc00) + 0x10000; + else if (a[0] > b[0]) + { + return 1; + } + + return 0; + }; + const IsSpecialRule = function(rule) + { + return rule[0][0] !== "\\"; } - if (0xdc00 <= code && code <= 0xdfff) { - return false; + + for (let i = 0; i < this.arrRuleList.length; i++) + { + let arrCurrentRule = this.arrRuleList[i]; + if (IsSpecialRule(arrCurrentRule)) + { + let strName = arrCurrentRule[0]; + let oData = arrCurrentRule[1]; + this.oSpecialList[strName] = oData; + } } - return code; - } - function GetLaTeXFromValue(value) + this.arrRuleList.sort(CheckSort); + }; + MathAutoCorrectionList.prototype.GenerateTokensByFont = function () { - if (!isGetLaTeX || value === "{" || value === "}") - return undefined; + let arr_Literals = [ + 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', + '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' + ]; - let arrValue = Object.keys(AutoCorrection).filter(function(key) { - return AutoCorrection[key] === value; - }); + let oFontTypes = MathLiterals.font.GetTypes(); + let name = Object.keys(oFontTypes); - for (let i = 0; i < arrValue.length; i++) + for (let j = 0; j < name.length; j++) { - let currentValue = arrValue[i]; - if (currentValue[0] === "\\") + let indexOfFont = oFontTypes[name[j]]; + for (let i = 0; i < arr_Literals.length; i++) { - return currentValue; + let Current = GetMathFontChar[arr_Literals[i]]; + if (Current[indexOfFont]) + { + let strName = name[j] + arr_Literals[i]; + let intData = Current[indexOfFont].codePointsArray([]); + let arrCorrectionRule = [strName, intData]; + this.AddData(strName, intData); + this.arrRuleList.push(arrCorrectionRule); + } } } - return undefined; - } + }; + MathAutoCorrectionList.prototype.GenerateSpecialRules = function () + { + let name = Object.keys(MathAutoCorrectionLong); - let AutoCorrection = { + for (let j = 0; j < name.length; j++) + { + let strName = name[j]; + let strData = AscCommon.convertUTF16toUnicode(MathAutoCorrectionLong[strName]); + let arrAutoCorrectionRule = [strName, strData]; - '/<' : '≮', - '/=' : '≠', - '/>' : '≯', + this.arrRuleList.push(arrAutoCorrectionRule); + } + }; + MathAutoCorrectionList.prototype.GenerateAutoCorrectionList = function () + { + let names = Object.keys(MathLiterals); - '/\\approx' : "≉", - '/\\asymp' : '≭', - '/\\cong' : '≇', - '/\\equiv' : '≢', - '/\\exists' : '∄', - '/\\ge' : '≱', - '/\\gtrless': '≹', - '/\\in' : '∉', - '/\\le' : '≰', - '/\\lessgtr': '≸', - '/\\ni' : '∌', - '/\\prec' : '⊀', - '/\\preceq' : '⋠', - '/\\sim' : '≁', - '/\\simeq' : '≄', - '/\\sqsubseteq' : '⋢', - '/\\sqsuperseteq': '⋣', - '/\\sqsupseteq' : '⋣', - '/\\subset': '⊄', - '/\\subseteq': '⊈', - '/\\succ': '⊁', - '/\\succeq': '⋡', - '/\\supset': '⊅', - '/\\superset': '⊅', - '/\\superseteq': '⊉', - '/\\supseteq': '⊉', + for (let i = 0; i < names.length; i++) + { + let name = names[i]; + let oData = MathLiterals[name].LaTeX; - "\\above": "┴", - "\\acute": "́", - "\\aleph": "ℵ", - "\\alpha": "α", - "\\Alpha": "Α", - "\\amalg": "∐", //? - "\\angle": "∠", - "\\aoint": "∳", - "\\approx": "≈", - "\\asmash": "⬆", - "\\ast": "∗", - "\\asymp": "≍", - "\\atop": "¦", - "\\array": "■", + if (oData) + { + let innerNames = Object.keys(oData); + for (let i = 0; i < innerNames.length; i++) + { + let strName = innerNames[i]; + let strData = AscCommon.convertUTF16toUnicode(oData[strName]); - "\\Bar": "̿", - "\\bar": "̅", - "\\backslash": "\\", - "\\backprime": "‵", - "\\because": "∵", - "\\begin": "〖", - "\\below": "┬", - "\\bet": "ℶ", - "\\beta": "β", - "\\Beta": "Β", - "\\beth": "ℶ", - "\\bigcap": "⋂", - "\\bigcup": "⋃", - "\\bigodot": "⨀", - "\\bigoplus": "⨁", - "\\bigotimes": "⨂", - "\\bigsqcup": "⨆", - "\\biguplus": "⨄", - "\\bigvee": "⋁", - "\\bigwedge": "⋀", - "\\binomial": "(a+b)^n=∑_(k=0)^n ▒(n¦k)a^k b^(n-k)", - "\\bot": "⊥", - "\\bowtie": "⋈", - "\\box": "□", - "\\boxdot": "⊡", - "\\boxminus": "⊟", - "\\boxplus": "⊞", - "\\bra": "⟨", - "\\break": "⤶", - "\\breve": "̆", - "\\bullet": "∙", + if (strData) + { + let arrRule = [strName, strData] + this.AddData(strName, strData); + this.arrRuleList.push(arrRule); + } + } + } + } + }; + MathAutoCorrectionList.prototype.GenerateCustomRules = function () + { + let name = Object.keys(SpecialAutoCorrection); - "\\cap": "∩", - "\\cases": "Ⓒ", //["\\cases", "█", true], TODO CHECK - "\\cbrt": "∛", - "\\cdot": "⋅", - "\\cdots": "⋯", - "\\check": "̌", - "\\chi": "χ", - "\\Chi": "Χ", - "\\circ": "∘", - "\\close": "┤", - "\\clubsuit": "♣", - "\\coint": "∲", - "\\cong": "≅", - "\\contain": "∋", - "\\coprod": "∐", - "\\cup": "∪", + for (let j = 0; j < name.length; j++) + { + let strName = name[j]; + let strData = AscCommon.convertUTF16toUnicode(SpecialAutoCorrection[strName]); + let arrAutoCorrectionRule = [strName, strData]; - "\\dalet": "ℸ", - "\\daleth": "ℸ", - "\\dashv": "⊣", - "\\dd": "ⅆ", - "\\Dd": "ⅅ", - "\\ddddot": "⃜", - "\\dddot": "⃛", - "\\ddot": "̈", - "\\ddots": "⋱", - "\\defeq": "≝", - "\\degc": "℃", - "\\degf": "℉", - "\\degree": "°", - "\\delta": "δ", - "\\Delta": "Δ", - "\\Deltaeq": "≜", - "\\diamond": "⋄", - "\\diamondsuit": "♢", - "\\div": "÷", - "\\dot": "̇", - "\\doteq": "≐", - "\\dots": "…", - "\\doublea": "𝕒", - "\\doubleA": "𝔸", - "\\doubleb": "𝕓", - "\\doubleB": "𝔹", - "\\doublec": "𝕔", - "\\doubleC": "ℂ", - "\\doubled": "𝕕", - "\\doubleD": "𝔻", - "\\doublee": "𝕖", - "\\doubleE": "𝔼", - "\\doublef": "𝕗", - "\\doubleF": "𝔽", - "\\doubleg": "𝕘", - "\\doubleG": "𝔾", - "\\doubleh": "𝕙", - "\\doubleH": "ℍ", - "\\doublei": "𝕚", - "\\doubleI": "𝕀", - "\\doublej": "𝕛", - "\\doubleJ": "𝕁", - "\\doublek": "𝕜", - "\\doubleK": "𝕂", - "\\doublel": "𝕝", - "\\doubleL": "𝕃", - "\\doublem": "𝕞", - "\\doubleM": "𝕄", - "\\doublen": "𝕟", - "\\doubleN": "ℕ", - "\\doubleo": "𝕠", - "\\doubleO": "𝕆", - "\\doublep": "𝕡", - "\\doubleP": "ℙ", - "\\doubleq": "𝕢", - "\\doubleQ": "ℚ", - "\\doubler": "𝕣", - "\\doubleR": "ℝ", - "\\doubles": "𝕤", - "\\doubleS": "𝕊", - "\\doublet": "𝕥", - "\\doubleT": "𝕋", - "\\doubleu": "𝕦", - "\\doubleU": "𝕌", - "\\doublev": "𝕧", - "\\doubleV": "𝕍", - "\\doublew": "𝕨", - "\\doubleW": "𝕎", - "\\doublex": "𝕩", - "\\doubleX": "𝕏", - "\\doubley": "𝕪", - "\\doubleY": "𝕐", - "\\doublez": "𝕫", - "\\doubleZ": "ℤ", - "\\downarrow": "↓", - "\\Downarrow": "⇓", - "\\dsmash": "⬇", + this.AddData(strName, strData); + this.arrRuleList.push(arrAutoCorrectionRule); + } + }; - "\\ee": "ⅇ", - "\\ell": "ℓ", - "\\emptyset": "∅", - "\\emsp": " ", - "\\end": "〗", - "\\ensp": " ", - "\\epsilon": "ϵ", - "\\Epsilon": "Ε", - "\\eqarray": "█", - "\\equiv": "≡", - "\\eta": "η", - "\\Eta": "Η", - "\\exists": "∃", + // Array defining which words cannot be corrected during LaTeX processing + const arrDoNotConvertWordsForLaTeX = [ + "\\left", "\\right", + "\\array", + "\\begin", "\\end", + "\\matrix", + "\\below", "\\above", + "\\box", "\\fbox", "\\rect", + + "\\sum", "\\prod", "\\amalg", "\\coprod", "\\bigwedge", + "\\bigvee", "\\bigcup", "\\bigcap", "\\bigsqcup", "\\biguplus", + "\\bigodot", "\\bigoplus", "\\bigotimes", + "\\int", "\\iint", "\\iiint", "\\iiiint", "\\oint", "\\oiint", + "\\oiiint", "\\coint", "\\aouint", + ]; + let oMathAutoCorrection = new MathAutoCorrectionList(); + // Default list of autocorrection elements + let AutoCorrectionList = oMathAutoCorrection.arrRuleList; + // Array with function names for autocorrection + const MathAutoCorrectionFuncNames = [ + 'arcsin', 'asin', 'sin', 'arcsinh', 'asinh', 'sinh', + 'arcsec', 'sec', 'asec', 'arcsech', 'asech','sech', + 'arccos', 'acos', 'cos', 'arccosh','acosh', 'cosh', + 'arccsc', 'acsc', 'csc', 'arccsch', 'acsch', 'csch', + 'arctan', 'atan', 'tan', 'arctanh', 'atanh', 'tanh', + 'arccot', 'acot', 'cot', 'arccoth', 'acoth', 'coth', + 'arg', 'det', 'exp', 'inf', 'lim', 'min', + 'def', 'dim', 'gcd', 'ker', 'log', 'Pr', + 'deg', 'erf', 'hom', 'lg', 'ln', 'max', 'sup', "ker", + 'hom', 'sgn', + ]; + // List of structures types that generate parsers + const MathStructures = { + char: 0, + space: 1, + number: 2, + other: 3, + frac: 5, + bracket_block: 6, + minus: 7, + plain: 8, + bar: 9, + nary: 10, + box: 11, + rect: 12, + radical:13, + func: 14, + pre_script: 15, + sub_sub: 16, + func_lim: 18, + limit: 19, + diacritic_base: 20, + matrix: 21, + accent: 22, + group_character: 23, + horizontal: 24, + array: 25, + }; - "\\forall": "∀", - "\\fraktura": "𝔞", - "\\frakturA": "𝔄", - "\\frakturb": "𝔟", - "\\frakturB": "𝔅", - "\\frakturc": "𝔠", - "\\frakturC": "ℭ", - "\\frakturd": "𝔡", - "\\frakturD": "𝔇", - "\\frakture": "𝔢", - "\\frakturE": "𝔈", - "\\frakturf": "𝔣", - "\\frakturF": "𝔉", - "\\frakturg": "𝔤", - "\\frakturG": "𝔊", - "\\frakturh": "𝔥", - "\\frakturH": "ℌ", - "\\frakturi": "𝔦", - "\\frakturI": "ℑ", - "\\frakturj": "𝔧", - "\\frakturJ": "𝔍", - "\\frakturk": "𝔨", - "\\frakturK": "𝔎", - "\\frakturl": "𝔩", - "\\frakturL": "𝔏", - "\\frakturm": "𝔪", - "\\frakturM": "𝔐", - "\\frakturn": "𝔫", - "\\frakturN": "𝔑", - "\\frakturo": "𝔬", - "\\frakturO": "𝔒", - "\\frakturp": "𝔭", - "\\frakturP": "𝔓", - "\\frakturq": "𝔮", - "\\frakturQ": "𝔔", - "\\frakturr": "𝔯", - "\\frakturR": "ℜ", - "\\frakturs": "𝔰", - "\\frakturS": "𝔖", - "\\frakturt": "𝔱", - "\\frakturT": "𝔗", - "\\frakturu": "𝔲", - "\\frakturU": "𝔘", - "\\frakturv": "𝔳", - "\\frakturV": "𝔙", - "\\frakturw": "𝔴", - "\\frakturW": "𝔚", - "\\frakturx": "𝔵", - "\\frakturX": "𝔛", - "\\fraktury": "𝔶", - "\\frakturY": "𝔜", - "\\frakturz": "𝔷", - "\\frakturZ": "ℨ", - "\\frown": "⌑", - "\\funcapply": "⁡", + const oNamesOfLiterals = { + fractionLiteral: [0, "FractionLiteral"], + spaceLiteral: [1, "SpaceLiteral", MathLiterals.space], + charLiteral: [2, "CharLiteral"], + operatorLiteral: [5, "OperatorLiteral"], + binomLiteral: [6, "BinomLiteral"], + bracketBlockLiteral: [7, "BracketBlock"], + functionLiteral: [8, "FunctionLiteral"], + subSupLiteral: [9, "SubSupLiteral"], + sqrtLiteral: [10, "SqrtLiteral"], + numberLiteral: [11, "NumberLiteral"], + mathOperatorLiteral: [12, "MathOperatorLiteral"], + rectLiteral: [13, "RectLiteral"], + boxLiteral: [14, "BoxLiteral"], + borderBoxLiteral: [58, "BorderBoxLiteral"], + preScriptLiteral: [15, "PreScriptLiteral"], + mathFontLiteral: [16, "MathFontLiteral"], + overLiteral: [17, "OverLiteral"], + diacriticLiteral: [18, "DiacriticLiteral"], + diacriticBaseLiteral: [19, "DiacriticBaseLiteral"], + otherLiteral: [20, "OtherLiteral"], + anMathLiteral: [21, "AnMathLiteral"], + opBuildupLiteral: [22, "opBuildUpLiteral"], + opOpenBracket: [23, "opOpenLiteral"], + opCloseBracket: [24, "opCLoseLiteral"], + opOpenCloseBracket: [25, "opCloseLiteral"], + hBracketLiteral: [28, "hBracketLiteral"], + opNaryLiteral: [29, "opNaryLiteral"], + asciiLiteral: [30, "asciiLiteral"], + opArrayLiteral: [31, "opArrayLiteral"], + opDecimal: [32, "opDecimal"], - "\\G": "Γ", - "\\gamma": "γ", - "\\Gamma": "Γ", - "\\ge": "≥", - "\\geq": "≥", - "\\gets": "←", - "\\gg": "≫", - "\\gimel": "ℷ", - "\\grave": "̀", + specialScriptNumberLiteral: [33, "specialScriptLiteral"], + specialScriptCharLiteral: [34, "specialScriptLiteral"], + specialScriptBracketLiteral: [35, "specialScriptBracketLiteral"], + specialScriptOperatorLiteral: [36, "specialScriptBracketLiteral"], - "\\hairsp": " ", - "\\hat": "̂", - "\\hbar": "ℏ", - "\\heartsuit": "♡", - "\\hookleftarrow": "↩", - "\\hookrightarrow": "↪", - "\\hphantom": "⬄", - "\\hsmash": "⬌", - "\\hvec": "⃑", + specialIndexNumberLiteral: [37, "specialScriptLiteral"], + specialIndexCharLiteral: [38, "specialScriptLiteral"], + specialIndexBracketLiteral: [39, "specialScriptBracketLiteral"], + specialIndexOperatorLiteral: [40, "specialScriptBracketLiteral"], - "\\identitymatrix": "(■(1&0&0@0&1&0@0&0&1))", - "\\ii": "ⅈ", - "\\iiiint": "⨌", - "\\iiint": "∭", - "\\iint": "∬", - "\\Im": "ℑ", - "\\imath": "ı", - "\\in": "∈", - "\\inc": "∆", - "\\infty": "∞", - "\\int": "∫", - "\\integral": "1/2π ∫_0^2π ▒ⅆθ/(a+b sin θ)=1/√(a^2-b^2)", - "\\iota": "ι", - "\\Iota": "Ι", - "\\itimes": "⁢", - - "\\j": "Jay", - "\\jj": "ⅉ", - "\\jmath": "ȷ", - "\\kappa": "κ", - "\\Kappa": "Κ", - "\\ket": "⟩", - "\\lambda": "λ", - "\\Lambda": "Λ", - "\\langle": "〈", - "\\lbbrack": "⟦", - "\\lbrace": "\{", - "\\lbrack": "[", - "\\lceil": "⌈", - "\\ldiv": "∕", - "\\ldivide": "∕", - "\\ldots": "…", - "\\le": "≤", - "\\left": "├", - "\\leftarrow": "←", - "\\Leftarrow": "⇐", - "\\leftharpoondown": "↽", - "\\leftharpoonup": "↼", - "\\Leftrightarrow": "⇔", - "\\leftrightarrow": "↔", + textPlainLiteral: [41, "textPlainLiteral"], + nthrtLiteral: [42, "nthrtLiteral"], + fourthrtLiteral: [43, "fourthrtLiteral"], + cubertLiteral: [44, "cubertLiteral"], + overBarLiteral: [45, "overBarLiteral"], - "\\leq": "≤", - "\\lfloor": "⌊", - "\\lhvec": "⃐", - "\\limit": "lim_(n→∞)⁡〖(1+1/n)^n〗=e", - "\\ll": "≪", - "\\lmoust": "⎰", - "\\Longleftarrow": "⟸", - "\\Longleftrightarrow": "⟺", - "\\Longrightarrow": "⟹", - "\\lrhar": "⇋", - "\\lvec": "⃖", + factorialLiteral: [46, "factorialLiteral"], + rowLiteral: [47, "rowLiteral"], + rowsLiteral: [48, "rowsLiteral"], - "\\mapsto": "↦", - "\\matrix": "■", - "\\medsp": " ", - "\\mid": "∣", - "\\middle": "ⓜ", - "\\models": "⊨", - "\\mp": "∓", - "\\mu": "μ", - "\\Mu": "Μ", + minusLiteral: [49, "minusLiteral"], + LaTeXLiteral: [50, "LaTeXLiteral"], - "\\nabla": "∇", - "\\naryand": "▒", - "\\nbsp": " ", - "\\ndiv": "⊘", - "\\neg": "¬", - "\\norm": "‖", - "\\notcontain": "∌", - "\\notelement": "∉", - "\\nu": "ν", - "\\Nu": "Ν", - "\\nwarrow": "↖", + functionWithLimitLiteral: [51, "functionWithLimitLiteral"], + functionNameLiteral: [52, "functionNameLiteral"], + matrixLiteral: [53, "matrixLiteral"], + arrayLiteral: [53, "arrayLiteral"], - "\\nLeftarrow" : "⇍", - "\\nLeftrightarrow" : "⇎", - "\\nRightarrow" : "⇏", - "\\nVDash" : "⊯", - "\\nVdash" : "⊮", - "\\nVleftarrow" : "⇺", - "\\nVleftarrowtail" : "⬺", - "\\nVleftrightarrow" : "⇼", - "\\nVrightarrow" : "⇻", - "\\nVrightarrowtail" : "⤕", - "\\nVtwoheadleftarrow" : "⬵", - "\\nVtwoheadleftarrowtail" : "⬽", - "\\nVtwoheadrightarrow" : "⤁", - "\\nVtwoheadrightarrowtail" : "⤘", - "\\napprox" : "≉", - "\\nasymp" : "≭", - "\\ncong" : "≇", - "\\ne" : "≠", - "\\nearrow" : "↗", - "\\neq" : "≠", - "\\nequiv" : "≢", - "\\neswarrow" : "⤢", - "\\ngeq" : "≱", - "\\ngtr" : "≯", - "\\ngtrless" : "≹", - "\\ngtrsim" : "≵", - "\\nhpar" : "⫲", - "\\ni" : "∋", - "\\niobar" : "⋾", - "\\nis" : "⋼", - "\\nisd" : "⋺", - "\\nleftarrow" : "↚", - "\\nleftrightarrow" : "↮", - "\\nleq" : "≰", - "\\nless" : "≮", - "\\nlessgtr" : "≸", - "\\nlesssim" : "≴", - "\\nmid" : "∤", - "\\nni" : "∌", - "\\notasymp" : "≭", - "\\notin" : "∉", - "\\notslash" : "⌿", - "\\nparallel" : "∦", - "\\nprec" : "⊀", - "\\npreccurlyeq" : "⋠", - "\\npreceq" : "⋠", - "\\nrightarrow" : "↛", - "\\nsim" : "≁", - "\\nsime" : "≄", - "\\nsimeq" : "≄", - "\\nsqsubseteq" : "⋢", - "\\nsqsupseteq" : "⋣", - "\\nsubset" : "⊄", - "\\nsubseteq" : "⊈", - "\\nsucc" : "⊁", - "\\nsucccurlyeq" : "⋡", - "\\nsucceq" : "⋡", - "\\nsupset" : "⊅", - "\\nsupseteq" : "⊉", - "\\ntriangleleft" : "⋪", - "\\ntrianglelefteq" : "⋬", - "\\ntriangleright" : "⋫", - "\\ntrianglerighteq" : "⋭", - "\\nvDash" : "⊭", - "\\nvLeftarrow" : "⤂", - "\\nvLeftrightarrow" : "⤄", - "\\nvRightarrow" : "⤃", - "\\nvdash" : "⊬", - "\\nvleftarrow" : "⇷", - "\\nvleftarrowtail" : "⬹", - "\\nvleftrightarrow" : "⇹", - "\\nvrightarrow" : "⇸", - "\\nvrightarrowtail" : "⤔", - "\\nvtwoheadleftarrow" : "⬴", - "\\nvtwoheadleftarrowtail" : "⬼", - "\\nvtwoheadrightarrow" : "⤀", - "\\nvtwoheadrightarrowtail" : "⤗", + skewedFractionLiteral: [54, "skewedFractionLiteral"], + EqArrayliteral: [55, "EqArrayliteral"], - "\\o": "ο", - "\\O": "Ο", - "\\odot": "⊙", - "\\of": "▒", - "\\oiiint": "∰", - "\\oiint": "∯", - "\\oint": "∮", - "\\omega": "ω", - "\\Omega": "Ω", - "\\ominus": "⊖", - "\\open": "├", - "\\oplus": "⊕", - "\\otimes": "⊗", - "\\overbar": "¯", - "\\overbrace": "⏞", - "\\overbracket": "⎴", - "\\overline": "¯", - "\\overparen": "⏜", - "\\overshell": "⏠", + groupLiteral: [56, "GroupLiteral"], + belowAboveLiteral: [57, "BelowAboveLiteral"], - "\\parallel": "∥", - "\\partial": "∂", - "\\perp": "⊥", - "\\phantom": "⟡", - "\\phi": "ϕ", - "\\Phi": "Φ", - "\\pi": "π", - "\\Pi": "Π", - "\\pm": "±", - "\\pmatrix": "⒨", - "\\pppprime": "⁗", - "\\ppprime": "‴", - "\\pprime": "″", - "\\prec": "≺", - "\\preceq": "≼", - "\\prime": "′", - "\\prod": "∏", - "\\propto": "∝", - "\\psi": "ψ", - "\\Psi": "Ψ", + }; - "\\qdrt": "∜", - "\\quad": " ", - "\\quadratic": "x=(-b±√(b^2-4ac))/2a", + function AddFunctionAutoCorrection(str) + { + if (undefined === str || null === str) + return; - "\\rangle": "〉", - "\\Rangle": "⟫", - "\\ratio": "∶", - "\\rbrace": "}", - "\\rbrack": "]", - "\\Rbrack": "⟧", - "\\rceil": "⌉", - "\\rddots": "⋰", - "\\Re": "ℜ", - "\\rect": "▭", - "\\rfloor": "⌋", - "\\rho": "ρ", - "\\Rho": "Ρ", - "\\rhvec": "⃑", - "\\right": "┤", - "\\rightarrow": "→", - "\\Rightarrow": "⇒", - "\\rightharpoondown": "⇁", - "\\rightharpoonup": "⇀", - "\\rmoust": "⎱", - "\\root": "⒭", + MathAutoCorrectionFuncNames.push(str); + } + function SearchFunctionName(str) + { + if (undefined === str || null === str) + return false; - "\\scripta": "𝒶", - "\\scriptA": "𝒜", - "\\scriptb": "𝒷", - "\\scriptB": "ℬ", - "\\scriptc": "𝒸", - "\\scriptC": "𝒞", - "\\scriptd": "𝒹", - "\\scriptD": "𝒟", - "\\scripte": "ℯ", - "\\scriptE": "ℰ", - "\\scriptf": "𝒻", - "\\scriptF": "ℱ", - "\\scriptg": "ℊ", - "\\scriptG": "𝒢", - "\\scripth": "𝒽", - "\\scriptH": "ℋ", - "\\scripti": "𝒾", - "\\scriptI": "ℐ", - "\\scriptj": "𝒥", - "\\scriptk": "𝓀", - "\\scriptK": "𝒦", - "\\scriptl": "ℓ", - "\\scriptL": "ℒ", - "\\scriptm": "𝓂", - "\\scriptM": "ℳ", - "\\scriptn": "𝓃", - "\\scriptN": "𝒩", - "\\scripto": "ℴ", - "\\scriptO": "𝒪", - "\\scriptp": "𝓅", - "\\scriptP": "𝒫", - "\\scriptq": "𝓆", - "\\scriptQ": "𝒬", - "\\scriptr": "𝓇", - "\\scriptR": "ℛ", - "\\scripts": "𝓈", - "\\scriptS": "𝒮", - "\\scriptt": "𝓉", - "\\scriptT": "𝒯", - "\\scriptu": "𝓊", - "\\scriptU": "𝒰", - "\\scriptv": "𝓋", - "\\scriptV": "𝒱", - "\\scriptw": "𝓌", - "\\scriptW": "𝒲", - "\\scriptx": "𝓍", - "\\scriptX": "𝒳", - "\\scripty": "𝓎", - "\\scriptY": "𝒴", - "\\scriptz": "𝓏", - "\\scriptZ": "𝒵", - "\\sdiv": "⁄", - "\\sdivide": "⁄", - "\\searrow": "↘", - "\\setminus": "∖", - "\\sigma": "σ", - "\\Sigma": "Σ", - "\\sim": "∼", - "\\simeq": "≃", - "\\smash": "⬍", - "\\smile": "⌣", - "\\spadesuit": "♠", - "\\sqcap": "⊓", - "\\sqcup": "⊔", - "\\sqrt": "√", - "\\sqsubseteq": "⊑", - "\\sqsuperseteq": "⊒", - "\\star": "⋆", - "\\subset": "⊂", - "\\subseteq": "⊆", - "\\succ": "≻", - "\\succeq": "≽", - "\\sum": "∑", - "\\superset": "⊃", - "\\superseteq": "⊇", - "\\swarrow": "↙", + return MathAutoCorrectionFuncNames.includes(str); + } - "\\tau": "τ", - "\\Tau": "Τ", - "\\therefore": "∴", - "\\theta": "θ", - "\\Theta": "Θ", - "\\thicksp": " ", - "\\thinsp": " ", - "\\tilde": "̃", - "\\times": "×", - "\\to": "→", - "\\top": "⊤", - "\\tvec": "⃡", + //---------------------------------------------Tokenizer section---------------------------------------------------- + function Tokenizer(isLaTeX) + { + this._string = []; + this._styles = {}; + this._cursor = 0; - "\\ubar": "̲", - "\\Ubar": "̳", - "\\underbar": "▁", - "\\underbrace": "⏟", - "\\underbracket": "⎵", - "\\underline": "▁", - "\\underparen": "⏝", - "\\uparrow": "↑", - "\\Uparrow": "⇑", - "\\updownarrow": "↕", - "\\Updownarrow": "⇕", - "\\uplus": "⊎", - "\\upsilon": "υ", - "\\Upsilon": "Υ", - - "\\varepsilon": "ε", - "\\varphi": "φ", - "\\varpi": "ϖ", - "\\varrho": "ϱ", - "\\varsigma": "ς", - "\\vartheta": "ϑ", - "\\vbar": "│", - "\\vdots": "⋮", - "\\vec": "⃗", - "\\vee": "∨", - "\\vert": "|", - "\\Vert": "‖", - "\\Vmatrix": "⒩", - "\\vphantom": "⇳", - "\\vthicksp": " ", + this.state = []; + this.isLaTeX = isLaTeX; + } + Tokenizer.prototype.Init = function (string) + { + if (string instanceof MathTextAndStyles) + { + let arrContent = []; + let oAdditionalData = {}; + let nLength = 0; - "\\wedge": "∧", - "\\wp": "℘", - "\\wr": "≀", - - "\\xi": "ξ", - "\\Xi": "Ξ", + function Proceed (oMathTextAndStyles, context) + { + let arr = oMathTextAndStyles.arr; - "\\zeta": "ζ", - "\\Zeta": "Ζ", - "\\zwnj": "‌", - "\\zwsp": "​", + for (let i = 0; i < arr.length; i++) + { + let oCurrentElement = arr[i]; + if (oCurrentElement instanceof MathTextAndStyles) + { + Proceed(oCurrentElement, context); + } + else if (oCurrentElement instanceof MathText) + { + let oLocalAdditionalData = oCurrentElement.GetAdditionalData(); + let strCurrent = oCurrentElement.GetText(); + if (undefined === strCurrent) + continue; + let tempLength = context.GetStringLength(strCurrent); + let arrCurrent = context.GetSymbols(strCurrent); + arrContent = arrContent.concat(arrCurrent); + + for (let j = nLength; j < tempLength + nLength; j++) + { + oAdditionalData[j] = oLocalAdditionalData; + } + nLength += tempLength; + } + else + { + let arrCurrent = context.GetSymbols(oCurrentElement); + nLength += arrCurrent.length; + arrContent = arrContent.concat(arrCurrent); + oAdditionalData[nLength] = undefined; + } + } + } + + Proceed(string, this) + + this._string = arrContent; + this._styles = oAdditionalData; + } + else + { + let arrContent = this.GetSymbols(string); + this._string = arrContent; + } + }; + Tokenizer.prototype.GetSymbols = function (str) + { + let output = []; + for (let oIter = str.getUnicodeIterator(); oIter.check(); oIter.next()) + { + output.push(String.fromCodePoint(oIter.value())); + } + return output; + }; + Tokenizer.prototype.GetStringLength = function (str) + { + let intLen = 0; + for (let oIter = str.getUnicodeIterator(); oIter.check(); oIter.next()) + { + intLen++; + } + return intLen; + }; + Tokenizer.prototype.IsHasMoreTokens = function () + { + return this._cursor < this._string.length; }; + Tokenizer.prototype.GetNextToken = function (isNextLookahead) + { + if (!this.IsHasMoreTokens()) + return { + class: undefined, + data: undefined, + }; - function UpdateAutoCorrection() + let autoCorrectRule, + tokenValue, + tokenClass, + string = this._string.slice(this._cursor); + + for (let i = arrTokensCheckerList.length - 1; i >= 0; i--) + { + autoCorrectRule = arrTokensCheckerList[i]; + tokenValue = this.MatchToken(autoCorrectRule, string, isNextLookahead); + + if (string[0] === "\\" && string[1] === "/") + { + autoCorrectRule = MathLiterals.divide; + tokenValue = "/" + this._cursor += this.GetStringLength("\\/"); + + let oStyle = this.GetStyle(this._cursor); + let oMetaData = oStyle.GetMathMetaData(); + oMetaData.setIsEscapedSlash(); + } + + if (tokenValue === null) + continue; + + else if (!Array.isArray(autoCorrectRule)) + { + tokenClass = (autoCorrectRule.isClassEqalData) + ? tokenValue + : autoCorrectRule.id; + } + else if (autoCorrectRule.length === 1) + { + tokenClass = MathLiterals.char.id; + } + else if (autoCorrectRule.length === 2) + { + tokenClass = (autoCorrectRule[1] === true) + ? autoCorrectRule[0] + : autoCorrectRule[1]; + } + + let oStyle = this.GetStyle(this._cursor); + + return { + class: tokenClass, + data: tokenValue, + style: oStyle, + } + } + }; + Tokenizer.prototype.GetStyle = function (nCursorPos) { - let arrG_AutoCorrectionList = window['AscCommonWord'].g_AutoCorrectMathsList.AutoCorrectMathSymbols; - AutoCorrection = {}; - for (let i = 0; i < arrG_AutoCorrectionList.length; i++) + return this._styles[nCursorPos - 1]; + }; + Tokenizer.prototype.ProcessString = function (str, char) + { + let intLenOfRule = 0; + + while (intLenOfRule <= char.length - 1) { - let arrCurrentElement = arrG_AutoCorrectionList[i]; - let data = AscCommon.convertUnicodeToUTF16(Array.isArray(arrCurrentElement[1]) ? arrCurrentElement[1] : [arrCurrentElement[1]]); - let name = arrCurrentElement[0]; - AutoCorrection[name] = data; + if (char[intLenOfRule] === str[intLenOfRule]) + intLenOfRule++; + else + return; } - } + return char; + }; + Tokenizer.prototype.MatchToken = function (fMathCheck, arrStr, isNextLookahead) + { + if (undefined === fMathCheck) + return null; - function UpdateFuncCorrection() + let oMatched = fMathCheck.GetToken(this.isLaTeX, arrStr); + + if (oMatched === null || oMatched === undefined) + return null; + + if (!isNextLookahead) + this._cursor += this.GetStringLength(oMatched); + + if (fMathCheck.IsNeedReturnCorrected_Unicode === true && this.isLaTeX) + oMatched = fMathCheck.LaTeX[oMatched]; + + return oMatched; + }; + Tokenizer.prototype.SaveState = function (oLookahead) { - functionNames = window['AscCommonWord'].g_AutoCorrectMathsList.AutoCorrectMathFuncs; + let strClass = oLookahead.class; + let data = oLookahead.data; + let style = oLookahead.style; + + this.state.push({ + _string: this._string, + _cursor: this._cursor, + oLookahead: { class: strClass, data: data, style: style}, + }) + }; + Tokenizer.prototype.RestoreState = function () + { + if (this.state.length > 0) { + let oState = this.state.shift(); + this._cursor = oState._cursor; + this._string = oState._string; + return oState.oLookahead; + } + }; + Tokenizer.prototype.IsTextContent = function(intClass, intTokenClass) + { + return (intClass !== intTokenClass) || + ( + intTokenClass !== 0 + && intTokenClass !== 1 + && intTokenClass !== 3 + ) + }; + Tokenizer.prototype.IsContentOfOneType = function() + { + let intTokenClass = null; + while (this.IsHasMoreTokens()) + { + let intClass = this.GetNextToken().class; + + if (intTokenClass === null) + intTokenClass = intClass; + else if (intClass === undefined) + return true; + else if (this.IsTextContent(intClass, intTokenClass)) + return false; + } + return true; + }; + + //-----------------------Functions for convert tokens array in inner math format------------------------------------ + function GetPrForFunction(oIndex) + { + let isHide = true; + if (oIndex) + isHide = false; + + return { + degHide: isHide, + } } + // Convert tokens to math objects + function ConvertTokens(oTokens, oContext) + { + Paragraph = oContext.Paragraph; - const SymbolsToLaTeX = { - "∞" : "\\infty", - "→" : "\\to", - "…" : "\\ldots", + if (typeof oTokens === "object") + { + if (oTokens.type === "LaTeXEquation" || oTokens.type === "UnicodeEquation") + { + type = oTokens.type === "LaTeXEquation" ? 1 : 0; + oTokens = oTokens.body; + } - "ϵ" : "\\epsilon", - "∃" : "\\exists", - "∀" : "\\forall", - "≠" : "\\neq", - "≤" : "\\le", - "≥" : "\\geq", - "≮" : "\\nless", - "≰" : "\\nleq", - "≯" : "\\ngt", - "≱" : "\\ngeq", - "≡" : "\\equiv", - "∼" : "\\sim", - "≃" : "\\simeq", - "≈" : "\\approx", - "≅" : "\\cong", - "≢" : "\\nequiv", - //"≄" : "\\nsimeq", - "≉" : "\\napprox", - "≇" : "\\ncong", - "≪" : "\\ll", - "≫" : "\\gg", - "∈" : "\\in", - "∋" : "\\ni", - "∉" : "\\notin", - "⊂" : "\\subset", - "⊃" : "\\supset", - "⊆" : "\\subseteq", - "⊇" : "\\supseteq", - "≺" : "\\prcue", - "≻" : "\\succ", - "≼" : "\\preccurlyeq", - "≽" : "\\succcurlyeq", - "⊏" : "\\sqsubset", - "⊐" : "\\sqsupset", - "⊑" : "\\sqsubseteq", - "⊒" : "\\sqsupseteq", - "∥" : "\\parallel", - "⊥" : "\\bot", - "⊢" : "\\vdash", - "⊣" : "\\dashv", - "⋈" : "\\bowtie", - "≍" : "\\asymp", - "∔" : "\\dotplus", - "∸" : "\\dotminus", - "∖" : "\\setminus", - "⋒" : "\\Cap", - "⋓" : "\\Cup", - "⊟" : "\\boxminus", - "⊠" : "\\boxtimes", - "⊡" : "\\boxdot", - "⊞" : "\\boxplus", - "⋇" : "\\divideontimes", - "⋉" : "\\ltimes", - "⋊" : "\\rtimes", - "⋋" : "\\leftthreetimes", - "⋌" : "\\rightthreetimes", - "⋏" : "\\curlywedge", - "⋎" : "\\curlyvee", - "⊝" : "\\odash", - "⊺" : "\\intercal", - "⊕" : "\\oplus", - "⊖" : "\\ominus", - "⊗" : "\\otimes", - "⊘" : "\\oslash", - "⊙" : "\\odot", - "⊛" : "\\oast", - "⊚" : "\\ocirc", - "†" : "\\dag", - "‡" : "\\ddag", - "⋆" : "\\star", + if (Array.isArray(oTokens)) + { + for (let i = 0; i < oTokens.length; i++) + { + if (Array.isArray(oTokens[i])) + { + let oToken = oTokens[i]; + + for (let j = 0; j < oTokens[i].length; j++) + { + SelectObject(oToken[j], oContext); + } + } + else + { + SelectObject(oTokens[i], oContext); + } + } + } + else + { + SelectObject(oTokens, oContext) + } + } + else + { + oContext.Add_Text(oTokens); + } + } + // Find token in all types for convert + function SelectObject (oTokens, oContext) + { + if (oTokens) + { + if (oTokens instanceof MathText) + { + oContext.Add_Text(oTokens.text, undefined, undefined, oTokens); + return; + } + switch (oTokens.type) + { + case undefined: + for (let i = 0; i < oTokens.length; i++) { + ConvertTokens( + oTokens[i], + oContext + ); + } + break; + case MathStructures.other: + for (const oUnicodeIterator = oTokens.value.getUnicodeIterator(); oUnicodeIterator.check(); oUnicodeIterator.next()) + { + oContext.Add_Text(AscCommon.encodeSurrogateChar(oUnicodeIterator.value()), undefined, undefined, oTokens.style[oUnicodeIterator.position()]); + } + break; + case MathStructures.char: + case MathStructures.space: + case MathStructures.number: + if (oTokens.decimal) + { + ConvertTokens( + oTokens.left, + oContext + ); + oContext.Add_Text(oTokens.decimal) + ConvertTokens( + oTokens.right, + oContext + ); + } + else + { + if (Array.isArray(oTokens.style)) + { + if (oTokens.value.length > 1 && typeof oTokens.value === 'string') + { + oContext.Add_Text(oTokens.value, undefined, undefined, oTokens.style[0]); + } + else + { + for (let nTokenStyle = 0; nTokenStyle < oTokens.style.length; nTokenStyle++) { + oContext.Add_Text(oTokens.value[nTokenStyle], undefined, undefined, oTokens.style[nTokenStyle]); + } + } + } + else + { + oContext.Add_Text(oTokens.value, undefined, undefined, oTokens.style); + } + } + break; + case MathStructures.plain: + oContext.Add_Text(oTokens.value, Paragraph, STY_PLAIN); + break + case MathStructures.nary: + let lPr = { + ctrPrp: oTokens.style.style, + chr: oTokens.value.charCodeAt(0), + subHide: true, + supHide: true, + } + + let oNary = oContext.Add_NAry(lPr, null, null, null); + + if (oTokens.third) { + ConvertTokens( + oTokens.third, + oNary.getBase() + ); + + let oBase = oNary.getBase(); + oBase.setCtrPrp(oTokens.thirdStyle.style); + } + + break; + case MathStructures.pre_script: + let oPreSubSup = oContext.Add_Script( + oTokens.up && oTokens.down, + {ctrPrp: new CTextPr(), type: DEGREE_PreSubSup}, + null, + null, + null + ); + ConvertTokens( + oTokens.value, + oPreSubSup.getBase() + ); + UnicodeArgument( + oTokens.up, + MathStructures.bracket_block, + oPreSubSup.getUpperIterator() + ) + UnicodeArgument( + oTokens.down, + MathStructures.bracket_block, + oPreSubSup.getLowerIterator() + ) + break; + case MathStructures.accent: + let oAccent = oContext.Add_Accent( + oTokens.value.style.style, + GetFixedCharCodeAt(oTokens.value.value), + null + ); + UnicodeArgument( + oTokens.base, + MathStructures.bracket_block, + oAccent.getBase() + ) + break; + case MathStructures.frac: + if (oTokens.fracType === LITTLE_FRACTION) + { + let oBox = new CBox({ctrPrp: new CTextPr()}); + oContext.Add_Element(oBox); + let BoxMathContent = oBox.getBase(); + BoxMathContent.SetArgSize(-1); + let oFraction = BoxMathContent.Add_Fraction({ctrPrp: oTokens.style.style, type: BAR_FRACTION}, null, null); + UnicodeArgument( + oTokens.up, + MathStructures.bracket_block, + oFraction.getNumeratorMathContent() + ); + UnicodeArgument( + oTokens.down, + MathStructures.bracket_block, + oFraction.getDenominatorMathContent() + ); + } + else + { + let oFraction = oContext.Add_Fraction( + {ctrPrp: oTokens.style.style, type: oTokens.fracType}, + null, + null + ); + oFraction.SetReviewTypeWithInfo(oTokens.style.reviewData.reviewType, oTokens.style.reviewData.reviewInfo); + if (oTokens.style.reviewData.reviewInfo) + oFraction.ReviewInfo.Update(); + + UnicodeArgument( + oTokens.up, + MathStructures.bracket_block, + oFraction.getNumeratorMathContent() + ); + UnicodeArgument( + oTokens.down, + MathStructures.bracket_block, + oFraction.getDenominatorMathContent() + ); + } + break; + case MathStructures.sub_sub: + if (oTokens.value && oTokens.value.type === MathStructures.func) + { + let oStyle = oTokens.value.style.style + let oFunc = oContext.Add_Function({ctrPrp: oStyle}, null, null); + let oFuncName = oFunc.getFName(); + + let Pr = (oTokens.up && oTokens.down) + ? {} + : (oTokens.up) + ? {type: DEGREE_SUPERSCRIPT, ctrPrp : oStyle} + : {type: DEGREE_SUBSCRIPT, ctrPrp : oStyle} + + let SubSup = oFuncName.Add_Script( + oTokens.up && oTokens.down, + Pr, + null, + null, + null + ); + + oTokens.value.type = MathStructures.char; + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + SubSup.getBase() + ); + + if (oTokens.up) { + UnicodeArgument( + oTokens.up, + MathStructures.bracket_block, + SubSup.getUpperIterator() + ) + } + if (oTokens.down) { + UnicodeArgument( + oTokens.down, + MathStructures.bracket_block, + SubSup.getLowerIterator() + ) + } + if (oTokens.third) { + let oFuncArgument = oFunc.getArgument(); + UnicodeArgument( + oTokens.third, + MathStructures.bracket_block, + oFuncArgument + ) + } + + // Set styles + let oUpper = SubSup.getUpperIterator(); + if (oUpper && oTokens.style.supStyle) + oUpper.CtrPrp.Merge(oTokens.style.supStyle.style); + + let oLower = SubSup.getLowerIterator(); + if (oLower && oTokens.style.subStyle) + oLower.CtrPrp.Merge(oTokens.style.subStyle.style); + } + else if (oTokens.value && oTokens.value.type === MathStructures.func_lim) + { + let oFuncWithLimit = oContext.Add_FunctionWithTypeLimit( + {}, + null, + null, + null, + oTokens.up ? LIMIT_UP : LIMIT_LOW + ); + oFuncWithLimit + .getFName() + .Content[0] + .getFName() + .Add_Text(oTokens.value.value, Paragraph, STY_PLAIN); + + let oLimitIterator = oFuncWithLimit + .getFName() + .Content[0] + .getIterator(); + + if (oTokens.up || oTokens.down) + { + UnicodeArgument( + oTokens.up === undefined ? oTokens.down : oTokens.up, + MathStructures.bracket_block, + oLimitIterator + ) + } + + UnicodeArgument( + oTokens.third, + MathStructures.bracket_block, + oFuncWithLimit.getArgument() + ) + } + else if (oTokens.value && oTokens.value.type === MathStructures.nary) + { + let Pr = { + ctrPrp: oTokens.value.style.style, + chr: oTokens.value.value.charCodeAt(0), + subHide: oTokens.down === undefined, + supHide: oTokens.up === undefined, + } + + let oNary = oContext.Add_NAry(Pr, null, null, null); + + ConvertTokens( + oTokens.third, + oNary.getBase() + ); + + let oBase = oNary.getBase(); + + if (oTokens.style.ofStyle) + oBase.setCtrPrp(oTokens.style.ofStyle.style); + + UnicodeArgument( + oTokens.up, + MathStructures.bracket_block, + oNary.getSupMathContent() + ); + + let oUp = oNary.getSupMathContent(); + + if (oTokens.style.supStyle) + oUp.setCtrPrp(oTokens.style.supStyle.style); + + UnicodeArgument( + oTokens.down, + MathStructures.bracket_block, + oNary.getSubMathContent() + ) + + let oDown = oNary.getSubMathContent(); + if (oTokens.style.subStyle) + oDown.setCtrPrp(oTokens.style.subStyle.style); + + } + else + { + let isSubSup = ((Array.isArray(oTokens.up) && oTokens.up.length > 0) || (!Array.isArray(oTokens.up) && oTokens.up !== undefined)) && + ((Array.isArray(oTokens.down) && oTokens.down.length > 0) || (!Array.isArray(oTokens.down) && oTokens.down !== undefined)) + + let oCurrentStyle = oTokens.style.subStyle ? oTokens.style.subStyle : oTokens.style.supStyle; + let Pr = {}; + Pr.ctrPrp = oCurrentStyle.style; + + if (!isSubSup) + { + if (oTokens.up) + Pr.type = DEGREE_SUPERSCRIPT; + else if (oTokens.down) + Pr.type = DEGREE_SUBSCRIPT; + } + + let SubSup = oContext.Add_Script( + isSubSup, + Pr, + null, + null, + null + ); + + SubSup.SetReviewTypeWithInfo(oCurrentStyle.reviewData.reviewType, oCurrentStyle.reviewData.reviewInfo); + + ConvertTokens( + oTokens.value, + SubSup.getBase() + ); + + UnicodeArgument( + oTokens.up, + MathStructures.bracket_block, + SubSup.getUpperIterator() + ); + + UnicodeArgument( + oTokens.down, + MathStructures.bracket_block, + SubSup.getLowerIterator() + ); + + // Set styles + let oUpper = SubSup.getUpperIterator(); + if (oUpper && oTokens.style.subStyle) + { + oUpper.CtrPrp.Merge(oTokens.style.subStyle.style); + if (oTokens.style.subStyle.reviewData.reviewInfo) + oUpper.SetReviewTypeWithInfo(oTokens.style.subStyle.reviewData.reviewType, oTokens.style.subStyle.reviewData.reviewInfo); + } + + let oLower = SubSup.getLowerIterator(); + if (oLower && oTokens.style.supStyle) + { + oLower.CtrPrp.Merge(oTokens.style.supStyle.style); + if (oTokens.style.supStyle.reviewData.reviewInfo) + oLower.SetReviewTypeWithInfo(oTokens.style.supStyle.reviewData.reviewType, oTokens.style.supStyle.reviewData.reviewInfo); + } + } + break; + case MathStructures.func_lim: + let MathFunc = new CMathFunc({}); + oContext.Add_Element(MathFunc); + + let FuncName = MathFunc.getFName(); + + let Limit = new CLimit({ctrPrp : oTokens.style.style, type : oTokens.down !== undefined ? LIMIT_LOW : LIMIT_UP}); + FuncName.Add_Element(Limit); + + let LimitName = Limit.getFName(); + + UnicodeArgument( + oTokens.value, + undefined, + LimitName + ); + + if (oTokens.up || oTokens.down) { + UnicodeArgument( + oTokens.up === undefined ? oTokens.down : oTokens.up, + MathStructures.bracket_block, + Limit.getIterator() + ) + } + + if (oTokens.third) + { + ConvertTokens( + oTokens.third, + MathFunc.getArgument() + ) + } + + break; + case MathStructures.horizontal: + if (type === 1) + { + let hBrack = oTokens.hBrack, + nCodeOfHorizontal = hBrack.value.charCodeAt(0), + BoxPr = {ctrPrp : hBrack.style.style, opEmu : 1}, + Box = oContext.Add_Box(BoxPr, null), + MathContent = Box.getBase(), + oGroup = null; + + let oPrGroup = (oTokens.VJUSTType === VJUST_TOP) + ? {ctrPrp : BoxPr.ctrPrp, pos : oTokens.VJUSTType, chr : nCodeOfHorizontal} + : {ctrPrp : BoxPr.ctrPrp, vertJc : oTokens.VJUSTType, chr : nCodeOfHorizontal}; + + let Group = new CGroupCharacter(oPrGroup); + MathContent.Add_Element(Group); + + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + Group.getBase() + ); + } + else + { + let hBrack = oTokens.hBrack, + nCodeOfHorizontal = hBrack.value.charCodeAt(0), + BoxPr = {ctrPrp : hBrack.style.style, opEmu : 1}, + oGroup = null; + + let oPrGroup = (oTokens.VJUSTType === VJUST_TOP) + ? {ctrPrp : BoxPr.ctrPrp, pos : oTokens.VJUSTType, chr : nCodeOfHorizontal} + : {ctrPrp : BoxPr.ctrPrp, vertJc : oTokens.VJUSTType, chr : nCodeOfHorizontal}; + + let Group = new CGroupCharacter(oPrGroup); + oContext.Add_Element(Group); + + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + Group.getBase() + ); + } + break; + case MathStructures.bar: + let oBar = (oTokens.bar.data === "¯") + ? oContext.Add_Bar({ctrPrp : oTokens.style.style, pos : LOCATION_TOP}, null) + : oContext.Add_Bar({ctrPrp : oTokens.style.style, pos : LOCATION_BOT}, null); + + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + oBar.getBase() + ); + break; + case MathStructures.group_character: + + if (oTokens.up || oTokens.down) + { + let Limit = oContext.Add_Limit({ctrPrp : oTokens.hBrack.style.style, type : oTokens.up ? LIMIT_UP : LIMIT_LOW}, null, null); + + let MathContent = Limit.getFName(); + let oAccent = MathContent.Add_GroupCharacter({ctrPrp : oTokens.hBrack.style.style, chr : oTokens.hBrack.data.charCodeAt(0), pos : oTokens.up ? VJUST_TOP : VJUST_BOT, vertJc : VJUST_BOT}, null ); + + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + oAccent.getBase() + ); + + UnicodeArgument( + oTokens.up ? oTokens.up : oTokens.down, + MathStructures.bracket_block, + Limit.getIterator() + ); + } + else + { + let oGroup; + if (oTokens.isBelow === VJUST_TOP) + { + oGroup = oContext.Add_GroupCharacter({ + ctrPrp: oTokens.hBrack.style.style, + chr: oTokens.hBrack.data.charCodeAt(0), + pos: VJUST_TOP, + vertJc: VJUST_BOT + }, null); + } + else + { + oGroup = oContext.Add_GroupCharacter({ctrPrp : oTokens.hBrack.style.style, chr: oTokens.hBrack.data.charCodeAt(0)}); + } + + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + oGroup.getBase() + ); + } + break; + case MathStructures.bracket_block: + let arr = [null] + let oPr = { + ctrPrp : oTokens.style.startStyle.style, + column : oTokens.value.length > 0 ? oTokens.value.length : 1, + begChr : GetBracketCode(oTokens.left, oTokens.counter), + endChr : GetBracketCode(oTokens.right, oTokens.counter), + }; + + let oBracket = oContext.Add_Delimiter( + oPr, + oTokens.value.length > 0 ? oTokens.value.length : 1, + arr + ); + + if (oTokens.value.length >= 0) + { + for (let intCount = 0; intCount < oTokens.value.length; intCount++) + { + ConvertTokens( + oTokens.value[intCount], + oBracket.getElementMathContent(intCount) + ); + + //Last content + if (intCount === oTokens.value.length - 1 && oTokens.style.endStyle) + { + let oCon = oBracket.getElementMathContent(intCount); + oCon.setCtrPrp(oTokens.style.endStyle.style); + } + + if (oTokens.style.middle && oTokens.style.middle[intCount - 1]) + { + let oContent = oBracket.getElementMathContent(intCount - 1); + oContent.setCtrPrp(oTokens.style.middle[intCount - 1].style); + } + } + } + else + { + ConvertTokens( + oTokens.value, + oBracket.getElementMathContent(0) + ); + } + + break; + case MathStructures.radical: + let Pr = GetPrForFunction(oTokens.index); + Pr.ctrPrp = oTokens.style.style; + let oRadical = oContext.Add_Radical( + Pr, + null, + null + ); + + oRadical.SetReviewTypeWithInfo(oTokens.style.reviewData.reviewType, oTokens.style.reviewData.reviewInfo); + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + oRadical.getBase() + ) + ConvertTokens( + oTokens.index, + oRadical.getDegree() + ); + break; + case MathStructures.func: + let oFunc = oContext.Add_Function({ctrPrp: oTokens.style.style}, null, null); + + ConvertTokens( + oTokens.value, + oFunc.getFName() + ); + + let oName = oFunc.getFName(); + oName.CtrPrp.SetItalic(false); + + ConvertTokens( + oTokens.third, + oFunc.getArgument() + ) + break; + case MathStructures.matrix: + let strStartBracket, strEndBracket; + + if (oTokens.strMatrixType) + { + if (oTokens.strMatrixType.length === 2) + { + strStartBracket = oTokens.strMatrixType[0].charCodeAt(0) + strEndBracket = oTokens.strMatrixType[1].charCodeAt(0) + } + else + { + strEndBracket = strStartBracket = oTokens.strMatrixType[0].charCodeAt(0) + } + } + + let rows = oTokens.value.length; + let cols; + + if (oTokens.value[0] && oTokens.value[0].length) + { + cols = oTokens.value[0].length; + } + + if (strEndBracket && strStartBracket) + { + let Delimiter = oContext.Add_DelimiterEx( + new CTextPr(), + 1, + [null], + strStartBracket, + strEndBracket + ); + oContext = Delimiter.getElementMathContent(0); + } + + let oMatrix = oContext.Add_Matrix( + oTokens.style.head.style, + rows, + cols, + false, + [] + ); + + for (let intRow = 0; intRow < rows; intRow++) + { + for (let intCol = 0; intCol < cols; intCol++) + { + let oContent = oMatrix.getContentElement(intRow, intCol); + ConvertTokens( + oTokens.value[intRow][intCol], + oContent + ); + + let oPr = oTokens.style.cols[intRow] + if (oPr && intCol === cols - 1) + { + oContent.setCtrPrp(oPr.style); + continue; + } + + let rPr = oTokens.style.rows[intRow]; + if (rPr) + { + let cPr = rPr[intCol]; + if (cPr) + oContent.setCtrPrp(cPr.style); + } + } + } + break; + case MathStructures.array: + let intCountOfRows = oTokens.value.length; + + let arrayPr = { + ctrPrp: oTokens.style.style, + row: intCountOfRows + }; + + let oEqArray = oContext.Add_EqArray(arrayPr, null, null); + + for (let i = 0; i < oTokens.value.length; i++) + { + let oMathContent = oEqArray.getElementMathContent(i); + ConvertTokens( + oTokens.value[i], + oMathContent + ); + } + break; + case MathStructures.box: + let oBox = oContext.Add_Box({ctrPrp: oTokens.style.style, opEmu : 1}, null); + if (oTokens.argSize) + { + let BoxMathContent = oBox.getBase(); + BoxMathContent.SetArgSize(oTokens.argSize); + } + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + oBox.getBase() + ) + break; + case MathStructures.rect: + let oBorderBox = oContext.Add_BorderBox({ctrPrp: oTokens.style.style}, null); + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + oBorderBox.getBase() + ) + break; + case MathStructures.limit: + let oLimit = oContext.Add_Limit({ctrPrp: oTokens.style.style, type: oTokens.isBelow}); + UnicodeArgument( + oTokens.base, + MathStructures.bracket_block, + oLimit.getFName() + ); + UnicodeArgument( + oTokens.value, + MathStructures.bracket_block, + oLimit.getIterator() + ); + + break; + } + } + } + // Trow content and may skip bracket block + function UnicodeArgument (oInput, oComparison, oContext) + { + if (oInput && type === 0 && oInput.type === oComparison && oInput.left === "(" && oInput.right === ")" && oInput.counter === 1) + { + ConvertTokens( + oInput.value, + oContext + ) + } + else if (oInput) + { + ConvertTokens( + oInput, + oContext + ) + } + } +//--------------------------------------Helper functions for lexer and converter------------------------------------ + function GetBracketCode(code, nCounter) + { + const oBrackets = { + ".": -1, + "\\{": "{".charCodeAt(0), + "\\}": "}".charCodeAt(0), + "\\|": "|".charCodeAt(0), + "|": 124, + "〖": -1, + "〗": -1, + "⟨" : 10216, + "⟩": 10217, + "├": -1, + "┤": -1, + + } + if (code) + { + if (nCounter > 1 && code === "〖") + return "〖".charCodeAt(); + if (nCounter > 1 && code === "〗") + return "〗".charCodeAt(); + + let strBracket = oBrackets[code]; + if (strBracket) { + return strBracket + } + + if (typeof MathLiterals.rBrackets.LaTeX[code] === 'string') + { + return MathLiterals.rBrackets.LaTeX[code].charCodeAt(0); + } + else if (typeof MathLiterals.lrBrackets.LaTeX[code] === 'string') + { + return MathLiterals.lrBrackets.LaTeX[code].charCodeAt(0); + } + else if (typeof MathLiterals.lBrackets.LaTeX[code] === 'string') + { + return MathLiterals.lBrackets.LaTeX[code].charCodeAt(0); + } + + return code.charCodeAt(0) + } + } + function GetFixedCharCodeAt(str) + { + let code = str.charCodeAt(0); + let hi, low; + + if (0xd800 <= code && code <= 0xdbff) { + hi = code; + low = str.charCodeAt(1); + if (isNaN(low)) { + return null; + } + return (hi - 0xd800) * 0x400 + (low - 0xdc00) + 0x10000; + } + if (0xdc00 <= code && code <= 0xdfff) { + return false; + } + return code; + } + + function GetLaTeXFromValue(value) + { + if (!isGetLaTeX || value === "{" || value === "}") + return undefined; + + let arrValue = Object.keys(AutoCorrection).filter(function(key) { + return AutoCorrection[key] === value; + }); + + for (let i = 0; i < arrValue.length; i++) + { + let currentValue = arrValue[i]; + if (currentValue[0] === "\\") + { + return currentValue; + } + } + return undefined; + } + + let AutoCorrection = { + + '/<' : '≮', + '/=' : '≠', + '/>' : '≯', + + '/\\approx' : "≉", + '/\\asymp' : '≭', + '/\\cong' : '≇', + '/\\equiv' : '≢', + '/\\exists' : '∄', + '/\\ge' : '≱', + '/\\gtrless': '≹', + '/\\in' : '∉', + '/\\le' : '≰', + '/\\lessgtr': '≸', + '/\\ni' : '∌', + '/\\prec' : '⊀', + '/\\preceq' : '⋠', + '/\\sim' : '≁', + '/\\simeq' : '≄', + '/\\sqsubseteq' : '⋢', + '/\\sqsuperseteq': '⋣', + '/\\sqsupseteq' : '⋣', + '/\\subset': '⊄', + '/\\subseteq': '⊈', + '/\\succ': '⊁', + '/\\succeq': '⋡', + '/\\supset': '⊅', + '/\\superset': '⊅', + '/\\superseteq': '⊉', + '/\\supseteq': '⊉', + + "\\above": "┴", + "\\acute": "́", + "\\aleph": "ℵ", + "\\alpha": "α", + "\\Alpha": "Α", + "\\amalg": "∐", //? + "\\angle": "∠", + "\\aoint": "∳", + "\\approx": "≈", + "\\asmash": "⬆", + "\\ast": "∗", + "\\asymp": "≍", + "\\atop": "¦", + "\\array": "■", + + "\\Bar": "̿", + "\\bar": "̅", + "\\backslash": "\\", + "\\backprime": "‵", + "\\because": "∵", + "\\begin": "〖", + "\\below": "┬", + "\\bet": "ℶ", + "\\beta": "β", + "\\Beta": "Β", + "\\beth": "ℶ", + "\\bigcap": "⋂", + "\\bigcup": "⋃", + "\\bigodot": "⨀", + "\\bigoplus": "⨁", + "\\bigotimes": "⨂", + "\\bigsqcup": "⨆", + "\\biguplus": "⨄", + "\\bigvee": "⋁", + "\\bigwedge": "⋀", + "\\binomial": "(a+b)^n=∑_(k=0)^n ▒(n¦k)a^k b^(n-k)", + "\\bot": "⊥", + "\\bowtie": "⋈", + "\\box": "□", + "\\boxdot": "⊡", + "\\boxminus": "⊟", + "\\boxplus": "⊞", + "\\bra": "⟨", + "\\break": "⤶", + "\\breve": "̆", + "\\bullet": "∙", + + "\\cap": "∩", + "\\cases": "Ⓒ", //["\\cases", "█", true], TODO CHECK + "\\cbrt": "∛", + "\\cdot": "⋅", + "\\cdots": "⋯", + "\\check": "̌", + "\\chi": "χ", + "\\Chi": "Χ", + "\\circ": "∘", + "\\close": "┤", + "\\clubsuit": "♣", + "\\coint": "∲", + "\\cong": "≅", + "\\contain": "∋", + "\\coprod": "∐", + "\\cup": "∪", + + "\\dalet": "ℸ", + "\\daleth": "ℸ", + "\\dashv": "⊣", + "\\dd": "ⅆ", + "\\Dd": "ⅅ", + "\\ddddot": "⃜", + "\\dddot": "⃛", + "\\ddot": "̈", + "\\ddots": "⋱", + "\\defeq": "≝", + "\\degc": "℃", + "\\degf": "℉", + "\\degree": "°", + "\\delta": "δ", + "\\Delta": "Δ", + "\\Deltaeq": "≜", + "\\diamond": "⋄", + "\\diamondsuit": "♢", + "\\div": "÷", + "\\dot": "̇", + "\\doteq": "≐", + "\\dots": "…", + "\\doublea": "𝕒", + "\\doubleA": "𝔸", + "\\doubleb": "𝕓", + "\\doubleB": "𝔹", + "\\doublec": "𝕔", + "\\doubleC": "ℂ", + "\\doubled": "𝕕", + "\\doubleD": "𝔻", + "\\doublee": "𝕖", + "\\doubleE": "𝔼", + "\\doublef": "𝕗", + "\\doubleF": "𝔽", + "\\doubleg": "𝕘", + "\\doubleG": "𝔾", + "\\doubleh": "𝕙", + "\\doubleH": "ℍ", + "\\doublei": "𝕚", + "\\doubleI": "𝕀", + "\\doublej": "𝕛", + "\\doubleJ": "𝕁", + "\\doublek": "𝕜", + "\\doubleK": "𝕂", + "\\doublel": "𝕝", + "\\doubleL": "𝕃", + "\\doublem": "𝕞", + "\\doubleM": "𝕄", + "\\doublen": "𝕟", + "\\doubleN": "ℕ", + "\\doubleo": "𝕠", + "\\doubleO": "𝕆", + "\\doublep": "𝕡", + "\\doubleP": "ℙ", + "\\doubleq": "𝕢", + "\\doubleQ": "ℚ", + "\\doubler": "𝕣", + "\\doubleR": "ℝ", + "\\doubles": "𝕤", + "\\doubleS": "𝕊", + "\\doublet": "𝕥", + "\\doubleT": "𝕋", + "\\doubleu": "𝕦", + "\\doubleU": "𝕌", + "\\doublev": "𝕧", + "\\doubleV": "𝕍", + "\\doublew": "𝕨", + "\\doubleW": "𝕎", + "\\doublex": "𝕩", + "\\doubleX": "𝕏", + "\\doubley": "𝕪", + "\\doubleY": "𝕐", + "\\doublez": "𝕫", + "\\doubleZ": "ℤ", + "\\downarrow": "↓", + "\\Downarrow": "⇓", + "\\dsmash": "⬇", + + "\\ee": "ⅇ", + "\\ell": "ℓ", + "\\emptyset": "∅", + "\\emsp": " ", + "\\end": "〗", + "\\ensp": " ", + "\\epsilon": "ϵ", + "\\Epsilon": "Ε", + "\\eqarray": "█", + "\\equiv": "≡", + "\\eta": "η", + "\\Eta": "Η", + "\\exists": "∃", + + "\\forall": "∀", + "\\fraktura": "𝔞", + "\\frakturA": "𝔄", + "\\frakturb": "𝔟", + "\\frakturB": "𝔅", + "\\frakturc": "𝔠", + "\\frakturC": "ℭ", + "\\frakturd": "𝔡", + "\\frakturD": "𝔇", + "\\frakture": "𝔢", + "\\frakturE": "𝔈", + "\\frakturf": "𝔣", + "\\frakturF": "𝔉", + "\\frakturg": "𝔤", + "\\frakturG": "𝔊", + "\\frakturh": "𝔥", + "\\frakturH": "ℌ", + "\\frakturi": "𝔦", + "\\frakturI": "ℑ", + "\\frakturj": "𝔧", + "\\frakturJ": "𝔍", + "\\frakturk": "𝔨", + "\\frakturK": "𝔎", + "\\frakturl": "𝔩", + "\\frakturL": "𝔏", + "\\frakturm": "𝔪", + "\\frakturM": "𝔐", + "\\frakturn": "𝔫", + "\\frakturN": "𝔑", + "\\frakturo": "𝔬", + "\\frakturO": "𝔒", + "\\frakturp": "𝔭", + "\\frakturP": "𝔓", + "\\frakturq": "𝔮", + "\\frakturQ": "𝔔", + "\\frakturr": "𝔯", + "\\frakturR": "ℜ", + "\\frakturs": "𝔰", + "\\frakturS": "𝔖", + "\\frakturt": "𝔱", + "\\frakturT": "𝔗", + "\\frakturu": "𝔲", + "\\frakturU": "𝔘", + "\\frakturv": "𝔳", + "\\frakturV": "𝔙", + "\\frakturw": "𝔴", + "\\frakturW": "𝔚", + "\\frakturx": "𝔵", + "\\frakturX": "𝔛", + "\\fraktury": "𝔶", + "\\frakturY": "𝔜", + "\\frakturz": "𝔷", + "\\frakturZ": "ℨ", + "\\frown": "⌑", + "\\funcapply": "⁡", + + "\\G": "Γ", + "\\gamma": "γ", + "\\Gamma": "Γ", + "\\ge": "≥", + "\\geq": "≥", + "\\gets": "←", + "\\gg": "≫", + "\\gimel": "ℷ", + "\\grave": "̀", + + "\\hairsp": " ", + "\\hat": "̂", + "\\hbar": "ℏ", + "\\heartsuit": "♡", + "\\hookleftarrow": "↩", + "\\hookrightarrow": "↪", + "\\hphantom": "⬄", + "\\hsmash": "⬌", + "\\hvec": "⃑", + + "\\identitymatrix": "(■(1&0&0@0&1&0@0&0&1))", + "\\ii": "ⅈ", + "\\iiiint": "⨌", + "\\iiint": "∭", + "\\iint": "∬", + "\\Im": "ℑ", + "\\imath": "ı", + "\\inc": "∆", + "\\int": "∫", + "\\infty": "∞", + "\\in": "∈", + "\\integral": "1/2π ∫_0^2π ▒ⅆθ/(a+b sin θ)=1/√(a^2-b^2)", + "\\iota": "ι", + "\\Iota": "Ι", + "\\itimes": "⁢", + + "\\j": "Jay", + "\\jj": "ⅉ", + "\\jmath": "ȷ", + "\\kappa": "κ", + "\\Kappa": "Κ", + "\\ket": "⟩", + "\\lambda": "λ", + "\\Lambda": "Λ", + "\\langle": "〈", + "\\lbbrack": "⟦", + "\\lbrace": "\{", + "\\lbrack": "[", + "\\lceil": "⌈", + "\\ldiv": "∕", + "\\ldivide": "∕", + "\\ldots": "…", + "\\le": "≤", + "\\left": "├", + "\\leftarrow": "←", + "\\Leftarrow": "⇐", + "\\leftharpoondown": "↽", + "\\leftharpoonup": "↼", + "\\Leftrightarrow": "⇔", + "\\leftrightarrow": "↔", + + "\\leq": "≤", + "\\lfloor": "⌊", + "\\lhvec": "⃐", + "\\limit": "lim_(n→∞)⁡〖(1+1/n)^n〗=e", + "\\ll": "≪", + "\\lmoust": "⎰", + "\\Longleftarrow": "⟸", + "\\Longleftrightarrow": "⟺", + "\\Longrightarrow": "⟹", + "\\lrhar": "⇋", + "\\lvec": "⃖", + + "\\mapsto": "↦", + "\\matrix": "■", + "\\medsp": " ", + "\\mid": "∣", + "\\middle": "ⓜ", + "\\models": "⊨", + "\\mp": "∓", + "\\mu": "μ", + "\\Mu": "Μ", + + "\\nabla": "∇", + "\\naryand": "▒", + "\\nbsp": " ", + "\\ndiv": "⊘", + "\\neg": "¬", + "\\norm": "‖", + "\\notcontain": "∌", + "\\notelement": "∉", + "\\nu": "ν", + "\\Nu": "Ν", + "\\nwarrow": "↖", + + "\\nLeftarrow" : "⇍", + "\\nLeftrightarrow" : "⇎", + "\\nRightarrow" : "⇏", + "\\nVDash" : "⊯", + "\\nVdash" : "⊮", + "\\nVleftarrow" : "⇺", + "\\nVleftarrowtail" : "⬺", + "\\nVleftrightarrow" : "⇼", + "\\nVrightarrow" : "⇻", + "\\nVrightarrowtail" : "⤕", + "\\nVtwoheadleftarrow" : "⬵", + "\\nVtwoheadleftarrowtail" : "⬽", + "\\nVtwoheadrightarrow" : "⤁", + "\\nVtwoheadrightarrowtail" : "⤘", + "\\napprox" : "≉", + "\\nasymp" : "≭", + "\\ncong" : "≇", + "\\ne" : "≠", + "\\nearrow" : "↗", + "\\neq" : "≠", + "\\nequiv" : "≢", + "\\neswarrow" : "⤢", + "\\ngeq" : "≱", + "\\ngtr" : "≯", + "\\ngtrless" : "≹", + "\\ngtrsim" : "≵", + "\\nhpar" : "⫲", + "\\ni" : "∋", + "\\niobar" : "⋾", + "\\nis" : "⋼", + "\\nisd" : "⋺", + "\\nleftarrow" : "↚", + "\\nleftrightarrow" : "↮", + "\\nleq" : "≰", + "\\nless" : "≮", + "\\nlessgtr" : "≸", + "\\nlesssim" : "≴", + "\\nmid" : "∤", + "\\nni" : "∌", + "\\notasymp" : "≭", + "\\notin" : "∉", + "\\notslash" : "⌿", + "\\nparallel" : "∦", + "\\nprec" : "⊀", + "\\npreccurlyeq" : "⋠", + "\\npreceq" : "⋠", + "\\nrightarrow" : "↛", + "\\nsim" : "≁", + "\\nsime" : "≄", + "\\nsimeq" : "≄", + "\\nsqsubseteq" : "⋢", + "\\nsqsupseteq" : "⋣", + "\\nsubset" : "⊄", + "\\nsubseteq" : "⊈", + "\\nsucc" : "⊁", + "\\nsucccurlyeq" : "⋡", + "\\nsucceq" : "⋡", + "\\nsupset" : "⊅", + "\\nsupseteq" : "⊉", + "\\ntriangleleft" : "⋪", + "\\ntrianglelefteq" : "⋬", + "\\ntriangleright" : "⋫", + "\\ntrianglerighteq" : "⋭", + "\\nvDash" : "⊭", + "\\nvLeftarrow" : "⤂", + "\\nvLeftrightarrow" : "⤄", + "\\nvRightarrow" : "⤃", + "\\nvdash" : "⊬", + "\\nvleftarrow" : "⇷", + "\\nvleftarrowtail" : "⬹", + "\\nvleftrightarrow" : "⇹", + "\\nvrightarrow" : "⇸", + "\\nvrightarrowtail" : "⤔", + "\\nvtwoheadleftarrow" : "⬴", + "\\nvtwoheadleftarrowtail" : "⬼", + "\\nvtwoheadrightarrow" : "⤀", + "\\nvtwoheadrightarrowtail" : "⤗", + + "\\o": "ο", + "\\O": "Ο", + "\\odot": "⊙", + "\\of": "▒", + "\\oiiint": "∰", + "\\oiint": "∯", + "\\oint": "∮", + "\\omega": "ω", + "\\Omega": "Ω", + "\\ominus": "⊖", + "\\open": "├", + "\\oplus": "⊕", + "\\otimes": "⊗", + "\\overbar": "¯", + "\\overbrace": "⏞", + "\\overbracket": "⎴", + "\\overline": "¯", + "\\overparen": "⏜", + "\\overshell": "⏠", + + "\\parallel": "∥", + "\\partial": "∂", + "\\perp": "⊥", + "\\phantom": "⟡", + "\\phi": "ϕ", + "\\Phi": "Φ", + "\\pi": "π", + "\\Pi": "Π", + "\\pm": "±", + "\\pmatrix": "⒨", + "\\pppprime": "⁗", + "\\ppprime": "‴", + "\\pprime": "″", + "\\prec": "≺", + "\\preceq": "≼", + "\\prime": "′", + "\\prod": "∏", + "\\propto": "∝", + "\\psi": "ψ", + "\\Psi": "Ψ", + + "\\qdrt": "∜", + "\\quad": " ", + "\\quadratic": "x=(-b±√(b^2-4ac))/2a", + + "\\rangle": "〉", + "\\Rangle": "⟫", + "\\ratio": "∶", + "\\rbrace": "}", + "\\rbrack": "]", + "\\Rbrack": "⟧", + "\\rceil": "⌉", + "\\rddots": "⋰", + "\\Re": "ℜ", + "\\rect": "▭", + "\\rfloor": "⌋", + "\\rho": "ρ", + "\\Rho": "Ρ", + "\\rhvec": "⃑", + "\\right": "┤", + "\\rightarrow": "→", + "\\Rightarrow": "⇒", + "\\rightharpoondown": "⇁", + "\\rightharpoonup": "⇀", + "\\rmoust": "⎱", + "\\root": "⒭", + + "\\scripta": "𝒶", + "\\scriptA": "𝒜", + "\\scriptb": "𝒷", + "\\scriptB": "ℬ", + "\\scriptc": "𝒸", + "\\scriptC": "𝒞", + "\\scriptd": "𝒹", + "\\scriptD": "𝒟", + "\\scripte": "ℯ", + "\\scriptE": "ℰ", + "\\scriptf": "𝒻", + "\\scriptF": "ℱ", + "\\scriptg": "ℊ", + "\\scriptG": "𝒢", + "\\scripth": "𝒽", + "\\scriptH": "ℋ", + "\\scripti": "𝒾", + "\\scriptI": "ℐ", + "\\scriptj": "𝒥", + "\\scriptk": "𝓀", + "\\scriptK": "𝒦", + "\\scriptl": "ℓ", + "\\scriptL": "ℒ", + "\\scriptm": "𝓂", + "\\scriptM": "ℳ", + "\\scriptn": "𝓃", + "\\scriptN": "𝒩", + "\\scripto": "ℴ", + "\\scriptO": "𝒪", + "\\scriptp": "𝓅", + "\\scriptP": "𝒫", + "\\scriptq": "𝓆", + "\\scriptQ": "𝒬", + "\\scriptr": "𝓇", + "\\scriptR": "ℛ", + "\\scripts": "𝓈", + "\\scriptS": "𝒮", + "\\scriptt": "𝓉", + "\\scriptT": "𝒯", + "\\scriptu": "𝓊", + "\\scriptU": "𝒰", + "\\scriptv": "𝓋", + "\\scriptV": "𝒱", + "\\scriptw": "𝓌", + "\\scriptW": "𝒲", + "\\scriptx": "𝓍", + "\\scriptX": "𝒳", + "\\scripty": "𝓎", + "\\scriptY": "𝒴", + "\\scriptz": "𝓏", + "\\scriptZ": "𝒵", + "\\sdiv": "⁄", + "\\sdivide": "⁄", + "\\searrow": "↘", + "\\setminus": "∖", + "\\sigma": "σ", + "\\Sigma": "Σ", + "\\sim": "∼", + "\\simeq": "≃", + "\\smash": "⬍", + "\\smile": "⌣", + "\\spadesuit": "♠", + "\\sqcap": "⊓", + "\\sqcup": "⊔", + "\\sqrt": "√", + "\\sqsubseteq": "⊑", + "\\sqsuperseteq": "⊒", + "\\star": "⋆", + "\\subset": "⊂", + "\\subseteq": "⊆", + "\\succ": "≻", + "\\succeq": "≽", + "\\sum": "∑", + "\\superset": "⊃", + "\\superseteq": "⊇", + "\\swarrow": "↙", + + "\\tau": "τ", + "\\Tau": "Τ", + "\\therefore": "∴", + "\\theta": "θ", + "\\Theta": "Θ", + "\\thicksp": " ", + "\\thinsp": " ", + "\\tilde": "̃", + "\\times": "×", + "\\to": "→", + "\\top": "⊤", + "\\tvec": "⃡", + + "\\ubar": "̲", + "\\Ubar": "̳", + "\\underbar": "▁", + "\\underbrace": "⏟", + "\\underbracket": "⎵", + "\\underline": "▁", + "\\underparen": "⏝", + "\\uparrow": "↑", + "\\Uparrow": "⇑", + "\\updownarrow": "↕", + "\\Updownarrow": "⇕", + "\\uplus": "⊎", + "\\upsilon": "υ", + "\\Upsilon": "Υ", + + "\\varepsilon": "ε", + "\\varphi": "φ", + "\\varpi": "ϖ", + "\\varrho": "ϱ", + "\\varsigma": "ς", + "\\vartheta": "ϑ", + "\\vbar": "│", + "\\vdots": "⋮", + "\\vec": "⃗", + "\\vee": "∨", + "\\vert": "|", + "\\Vert": "‖", + "\\Vmatrix": "⒩", + "\\vphantom": "⇳", + "\\vthicksp": " ", + + "\\wedge": "∧", + "\\wp": "℘", + "\\wr": "≀", + + "\\xi": "ξ", + "\\Xi": "Ξ", + + "\\zeta": "ζ", + "\\Zeta": "Ζ", + "\\zwnj": "‌", + "\\zwsp": "​", + }; + + function UpdateAutoCorrection() + { + let arrG_AutoCorrectionList = window['AscCommonWord'].g_AutoCorrectMathsList.AutoCorrectMathSymbols; + AutoCorrection = {}; + for (let i = 0; i < arrG_AutoCorrectionList.length; i++) + { + let arrCurrentElement = arrG_AutoCorrectionList[i]; + let data = AscCommon.convertUnicodeToUTF16(Array.isArray(arrCurrentElement[1]) ? arrCurrentElement[1] : [arrCurrentElement[1]]); + let name = arrCurrentElement[0]; + AutoCorrection[name] = data; + } + } + + function UpdateFuncCorrection() + { + functionNames = window['AscCommonWord'].g_AutoCorrectMathsList.AutoCorrectMathFuncs; + } + + const SymbolsToLaTeX = { + "∞" : "\\infty", + "→" : "\\to", + "…" : "\\ldots", + + "ϵ" : "\\epsilon", + "∃" : "\\exists", + "∀" : "\\forall", + "≠" : "\\neq", + "≤" : "\\le", + "≥" : "\\geq", + "≮" : "\\nless", + "≰" : "\\nleq", + "≯" : "\\ngt", + "≱" : "\\ngeq", + "≡" : "\\equiv", + "∼" : "\\sim", + "≃" : "\\simeq", + "≈" : "\\approx", + "≅" : "\\cong", + "≢" : "\\nequiv", + //"≄" : "\\nsimeq", + "≉" : "\\napprox", + "≇" : "\\ncong", + "≪" : "\\ll", + "≫" : "\\gg", + "∈" : "\\in", + "∋" : "\\ni", + "∉" : "\\notin", + "⊂" : "\\subset", + "⊃" : "\\supset", + "⊆" : "\\subseteq", + "⊇" : "\\supseteq", + "≺" : "\\prcue", + "≻" : "\\succ", + "≼" : "\\preccurlyeq", + "≽" : "\\succcurlyeq", + "⊏" : "\\sqsubset", + "⊐" : "\\sqsupset", + "⊑" : "\\sqsubseteq", + "⊒" : "\\sqsupseteq", + "∥" : "\\parallel", + "⊥" : "\\bot", + "⊢" : "\\vdash", + "⊣" : "\\dashv", + "⋈" : "\\bowtie", + "≍" : "\\asymp", + "∔" : "\\dotplus", + "∸" : "\\dotminus", + "∖" : "\\setminus", + "⋒" : "\\Cap", + "⋓" : "\\Cup", + "⊟" : "\\boxminus", + "⊠" : "\\boxtimes", + "⊡" : "\\boxdot", + "⊞" : "\\boxplus", + "⋇" : "\\divideontimes", + "⋉" : "\\ltimes", + "⋊" : "\\rtimes", + "⋋" : "\\leftthreetimes", + "⋌" : "\\rightthreetimes", + "⋏" : "\\curlywedge", + "⋎" : "\\curlyvee", + "⊝" : "\\odash", + "⊺" : "\\intercal", + "⊕" : "\\oplus", + "⊖" : "\\ominus", + "⊗" : "\\otimes", + "⊘" : "\\oslash", + "⊙" : "\\odot", + "⊛" : "\\oast", + "⊚" : "\\ocirc", + "†" : "\\dag", + "‡" : "\\ddag", + "⋆" : "\\star", "⋄" : "\\diamond", "≀" : "\\wr", "△" : "\\triangle", @@ -3012,907 +3829,3899 @@ "⋔" : "\\pitchfork", "≐" : "\\doteq", - "⇍" : "\\nLeftarrow", - "⇎" : "\\nLeftrightarrow", - "⇏" : "\\nRightarrow", - "⊯" : "\\nVDash", - "⊮" : "\\nVdash", - "⇺" : "\\nVleftarrow", - "⬺" : "\\nVleftarrowtail", - "⇼" : "\\nVleftrightarrow", - "⇻" : "\\nVrightarrow", - "⤕" : "\\nVrightarrowtail", - "⬵" : "\\nVtwoheadleftarrow", - "⬽" : "\\nVtwoheadleftarrowtail", - "⤁" : "\\nVtwoheadrightarrow", - "⤘" : "\\nVtwoheadrightarrowtail", - //"≉" : "\\napprox", - "≭" : "\\nasymp", - // "≇" : "\\ncong", - // "≠" : "\\ne", - "↗" : "\\nearrow", - // "≠" : "\\neq", - // "≢" : "\\nequiv", - "⤢" : "\\neswarrow", - // "≱" : "\\ngeq", - // "≯" : "\\ngtr", - "≹" : "\\ngtrless", - "≵" : "\\ngtrsim", - "⫲" : "\\nhpar", - // "∋" : "\\ni", - "⋾" : "\\niobar", - "⋼" : "\\nis", - "⋺" : "\\nisd", - "↚" : "\\nleftarrow", - "↮" : "\\nleftrightarrow", - // "≰" : "\\nleq", - // "≮" : "\\nless", - "≸" : "\\nlessgtr", - "≴" : "\\nlesssim", - "∤" : "\\nmid", - "∌" : "\\nni", - // "≭" : "\\notasymp", - // "∉" : "\\notin", - "⌿" : "\\notslash", - "∦" : "\\nparallel", - "⊀" : "\\nprec", - // "⋠" : "\\npreccurlyeq", - // "⋠" : "\\npreceq", - "↛" : "\\nrightarrow", - "≁" : "\\nsim", - // "≄" : "\\nsime", - // "≄" : "\\nsimeq", - "⋢" : "\\nsqsubseteq", - "⋣" : "\\nsqsupseteq", - "⊄" : "\\nsubset", - "⊈" : "\\nsubseteq", - "⊁" : "\\nsucc", - // "⋡" : "\\nsucccurlyeq", - // "⋡" : "\\nsucceq", - "⊅" : "\\nsupset", - "⊉" : "\\nsupseteq", - "⋪" : "\\ntriangleleft", - "⋬" : "\\ntrianglelefteq", - "⋫": "\\ntriangleright", - "⋭" : "\\ntrianglerighteq", - "⊭" : "\\nvDash", - "⤂" : "\\nvLeftarrow", - "⤄" : "\\nvLeftrightarrow", - "⤃" : "\\nvRightarrow", - "⊬" : "\\nvdash", - "⇷" : "\\nvleftarrow", - "⬹" : "\\nvleftarrowtail", - "⇹" : "\\nvleftrightarrow", - "⇸" : "\\nvrightarrow", - "⤔" : "\\nvrightarrowtail", - "⬴" : "\\nvtwoheadleftarrow", - "⬼" : "\\nvtwoheadleftarrowtail", - "⤀" : "\\nvtwoheadrightarrow", - "⤗" : "\\nvtwoheadrightarrowtail", + "⇍" : "\\nLeftarrow", + "⇎" : "\\nLeftrightarrow", + "⇏" : "\\nRightarrow", + "⊯" : "\\nVDash", + "⊮" : "\\nVdash", + "⇺" : "\\nVleftarrow", + "⬺" : "\\nVleftarrowtail", + "⇼" : "\\nVleftrightarrow", + "⇻" : "\\nVrightarrow", + "⤕" : "\\nVrightarrowtail", + "⬵" : "\\nVtwoheadleftarrow", + "⬽" : "\\nVtwoheadleftarrowtail", + "⤁" : "\\nVtwoheadrightarrow", + "⤘" : "\\nVtwoheadrightarrowtail", + //"≉" : "\\napprox", + "≭" : "\\nasymp", + // "≇" : "\\ncong", + // "≠" : "\\ne", + "↗" : "\\nearrow", + // "≠" : "\\neq", + // "≢" : "\\nequiv", + "⤢" : "\\neswarrow", + // "≱" : "\\ngeq", + // "≯" : "\\ngtr", + "≹" : "\\ngtrless", + "≵" : "\\ngtrsim", + "⫲" : "\\nhpar", + // "∋" : "\\ni", + "⋾" : "\\niobar", + "⋼" : "\\nis", + "⋺" : "\\nisd", + "↚" : "\\nleftarrow", + "↮" : "\\nleftrightarrow", + // "≰" : "\\nleq", + // "≮" : "\\nless", + "≸" : "\\nlessgtr", + "≴" : "\\nlesssim", + "∤" : "\\nmid", + "∌" : "\\nni", + // "≭" : "\\notasymp", + // "∉" : "\\notin", + "⌿" : "\\notslash", + "∦" : "\\nparallel", + "⊀" : "\\nprec", + // "⋠" : "\\npreccurlyeq", + // "⋠" : "\\npreceq", + "↛" : "\\nrightarrow", + "≁" : "\\nsim", + // "≄" : "\\nsime", + // "≄" : "\\nsimeq", + "⋢" : "\\nsqsubseteq", + "⋣" : "\\nsqsupseteq", + "⊄" : "\\nsubset", + "⊈" : "\\nsubseteq", + "⊁" : "\\nsucc", + // "⋡" : "\\nsucccurlyeq", + // "⋡" : "\\nsucceq", + "⊅" : "\\nsupset", + "⊉" : "\\nsupseteq", + "⋪" : "\\ntriangleleft", + "⋬" : "\\ntrianglelefteq", + "⋫": "\\ntriangleright", + "⋭" : "\\ntrianglerighteq", + "⊭" : "\\nvDash", + "⤂" : "\\nvLeftarrow", + "⤄" : "\\nvLeftrightarrow", + "⤃" : "\\nvRightarrow", + "⊬" : "\\nvdash", + "⇷" : "\\nvleftarrow", + "⬹" : "\\nvleftarrowtail", + "⇹" : "\\nvleftrightarrow", + "⇸" : "\\nvrightarrow", + "⤔" : "\\nvrightarrowtail", + "⬴" : "\\nvtwoheadleftarrow", + "⬼" : "\\nvtwoheadleftarrowtail", + "⤀" : "\\nvtwoheadrightarrow", + "⤗" : "\\nvtwoheadrightarrowtail", + + "ⅆ" :"\\dd" , + "ⅅ" :"\\Dd" , + "ⅇ" :"\\ee" , + "ℓ" :"\\ell" , + "ℏ" :"\\hbar" , + "ⅈ" :"\\ii" , + "ℑ" :"\\Im" , + "ı" :"\\imath" , + "Jay" :"\\j" , + "ⅉ" :"\\jj" , + "ȷ" :"\\jmath" , + "∂" :"\\partial" , + "ℜ" :"\\Re" , + "℘" :"\\wp" , + "ℵ" :"\\aleph" , + "ℶ" :"\\bet" , + "ℷ" :"\\gimel" , + "ℸ" :"\\dalet" , + + "Α" :"\\Alpha" , + "α" :"\\alpha" , + "Β" :"\\Beta" , + "β" :"\\beta" , + "γ" :"\\gamma" , + "Γ" :"\\Gamma" , + "Δ" :"\\Delta" , + "δ" :"\\delta" , + "Ε" :"\\Epsilon" , + "ε" :"\\varepsilon" , + "ζ" :"\\zeta" , + "Ζ" :"\\Zeta" , + "η" :"\\eta" , + "Η" :"\\Eta" , + "θ" :"\\theta" , + "Θ" :"\\Theta" , + "ϑ" :"\\vartheta" , + "ι" :"\\iota" , + "Ι" :"\\Iota" , + "κ" :"\\kappa" , + "Κ" :"\\Kappa" , + "λ" :"\\lambda" , + "Λ" :"\\Lambda" , + "μ" :"\\mu" , + "Μ" :"\\Mu" , + "ν" :"\\nu" , + "Ν" :"\\Nu" , + "ξ" :"\\xi" , + "Ξ" :"\\Xi" , + "Ο" :"\\O" , + "ο" :"\\o" , + "π" :"\\pi" , + "Π" :"\\Pi" , + "ϖ" :"\\varpi" , + "ρ" :"\\rho" , + "Ρ" :"\\Rho" , + "ϱ" :"\\varrho" , + "σ" :"\\sigma" , + "Σ" :"\\Sigma" , + "ς" :"\\varsigma" , + "τ" :"\\tau" , + "Τ" :"\\Tau" , + "υ" :"\\upsilon" , + "Υ" :"\\Upsilon" , + "ϕ" :"\\phi" , + "Φ" :"\\Phi" , + "φ" :"\\varphi" , + "χ" :"\\chi" , + "Χ" :"\\Chi" , + "ψ" :"\\psi" , + "Ψ" :"\\Psi" , + "ω" :"\\omega" , + "Ω" :"\\Omega" , + + "┴" : "\\above", + "́" : "\\acute", + "∐" : "\\amalg", + "∠" : "\\angle", + "∳" : "\\aoint", + "⬆" : "\\asmash", + "∗" : "\\ast", + "¦" : "\\atop", + "■" : "\\array", + + "̿" : "\\Bar", + "̅" : "\\bar", + "‵" : "\\backprime", + "〖" : "\\begin", + "┬" : "\\below", + "⋂" : "\\bigcap", + "⋃" : "\\bigcup", + "□" : "\\box", + "⟨" : "\\bra", + "⤶" : "\\break", + "̆" : "\\breve", + "∙" : "\\bullet", + + "∩" : "\\cap", + "Ⓒ" : "\\cases", + "∛" : "\\cbrt", + "⋅" : "\\cdot", + "⋯" : "\\cdots", + "̌" : "\\check", + "∘" : "\\circ", + "┤" : "\\close", + "♣" : "\\clubsuit", + "∲" : "\\coint", + "∪" : "\\cup", + + "⃜" : "\\ddddot", + "⃛" : "\\dddot", + "̈" : "\\ddot", + "⋱" : "\\ddots", + "≝" : "\\defeq", + "℃" : "\\degc", + "℉" : "\\degf", + "°" : "\\degree", + "♢" : "\\diamondsuit", + "÷" : "\\div", + "̇" : "\\dot", + "𝕒" : "\\doublea", + "𝔸" : "\\doubleA", + "𝕓" : "\\doubleb", + "𝔹" : "\\doubleB", + "𝕔" : "\\doublec", + "ℂ" : "\\doubleC", + "𝕕" : "\\doubled", + "𝔻" : "\\doubleD", + "𝕖" : "\\doublee", + "𝔼" : "\\doubleE", + "𝕗" : "\\doublef", + "𝔽" : "\\doubleF", + "𝕘" : "\\doubleg", + "𝔾" : "\\doubleG", + "𝕙" : "\\doubleh", + "ℍ" : "\\doubleH", + "𝕚" : "\\doublei", + "𝕀" : "\\doubleI", + "𝕛" : "\\doublej", + "𝕁" : "\\doubleJ", + "𝕜" : "\\doublek", + "𝕂" : "\\doubleK", + "𝕝" : "\\doublel", + "𝕃" : "\\doubleL", + "𝕞" : "\\doublem", + "𝕄" : "\\doubleM", + "𝕟" : "\\doublen", + "ℕ" : "\\doubleN", + "𝕠" : "\\doubleo", + "𝕆" : "\\doubleO", + "𝕡" : "\\doublep", + "ℙ" : "\\doubleP", + "𝕢" : "\\doubleq", + "ℚ" : "\\doubleQ", + "𝕣" : "\\doubler", + "ℝ" : "\\doubleR", + "𝕤" : "\\doubles", + "𝕊" : "\\doubleS", + "𝕥" : "\\doublet", + "𝕋" : "\\doubleT", + "𝕦" : "\\doubleu", + "𝕌" : "\\doubleU", + "𝕧" : "\\doublev", + "𝕍" : "\\doubleV", + "𝕨" : "\\doublew", + "𝕎" : "\\doubleW", + "𝕩" : "\\doublex", + "𝕏" : "\\doubleX", + "𝕪" : "\\doubley", + "𝕐" : "\\doubleY", + "𝕫" : "\\doublez", + "ℤ" : "\\doubleZ", + "↓" : "\\downarrow", + "⇓" : "\\Downarrow", + "⬇" : "\\dsmash", + + "∅" : "\\emptyset", + " " : "\\emsp", + "〗" : "\\end", + " " : "\\ensp", + "█" : "\\eqarray", + + "𝔞" : "\\fraktura", + "𝔄" : "\\frakturA", + "𝔟" : "\\frakturb", + "𝔅" : "\\frakturB", + "𝔠" : "\\frakturc", + "ℭ" : "\\frakturC", + "𝔡" : "\\frakturd", + "𝔇" : "\\frakturD", + "𝔢" : "\\frakture", + "𝔈" : "\\frakturE", + "𝔣" : "\\frakturf", + "𝔉" : "\\frakturF", + "𝔤" : "\\frakturg", + "𝔊" : "\\frakturG", + "𝔥" : "\\frakturh", + "ℌ" : "\\frakturH", + "𝔦" : "\\frakturi", + "𝔧" : "\\frakturj", + "𝔍" : "\\frakturJ", + "𝔨" : "\\frakturk", + "𝔎" : "\\frakturK", + "𝔩" : "\\frakturl", + "𝔏" : "\\frakturL", + "𝔪" : "\\frakturm", + "𝔐" : "\\frakturM", + "𝔫" : "\\frakturn", + "𝔑" : "\\frakturN", + "𝔬" : "\\frakturo", + "𝔒" : "\\frakturO", + "𝔭" : "\\frakturp", + "𝔓" : "\\frakturP", + "𝔮" : "\\frakturq", + "𝔔" : "\\frakturQ", + "𝔯" : "\\frakturr", + "𝔰" : "\\frakturs", + "𝔖" : "\\frakturS", + "𝔱" : "\\frakturt", + "𝔗" : "\\frakturT", + "𝔲" : "\\frakturu", + "𝔘" : "\\frakturU", + "𝔳" : "\\frakturv", + "𝔙" : "\\frakturV", + "𝔴" : "\\frakturw", + "𝔚" : "\\frakturW", + "𝔵" : "\\frakturx", + "𝔛" : "\\frakturX", + "𝔶" : "\\fraktury", + "𝔜" : "\\frakturY", + "𝔷" : "\\frakturz", + "ℨ" : "\\frakturZ", + "⌑" : "\\frown", + "⁡" : "\\funcapply", + + "←" : "\\gets", + "̀" : "\\grave", + + " " : "\\hairsp", + "̂" : "\\hat", + "♡" : "\\heartsuit", + "↩" : "\\hookleftarrow", + "↪" : "\\hookrightarrow", + "⬄" : "\\hphantom", + "⬌" : "\\hsmash", + "⃑" : "\\hvec", + + "⨌" : "\\iiiint", + "∭" : "\\iiint", + "∬" : "\\iint", + + "∆" : "\\inc", + "∫" : "\\int", + "⁢" : "\\itimes", + + + "⟩" : "\\ket", + "〈" : "\\langle", + "⟦" : "\\lbbrack", + //"[" : "\\lbrack", + "⌈" : "\\lceil", + "├" : "\\left", + "⇐" : "\\Leftarrow", + "↽" : "\\leftharpoondown", + "↼" : "\\leftharpoonup", + "⇔" : "\\Leftrightarrow", + "↔" : "\\leftrightarrow", + + "⌊" : "\\lfloor", + "⃐" : "\\lhvec", + "⎰" : "\\lmoust", + "⟸" : "\\Longleftarrow", + "⟺" : "\\Longleftrightarrow", + "⟹" : "\\Longrightarrow", + "⇋" : "\\lrhar", + "⃖" : "\\lvec", + + "↦" : "\\mapsto", + " " : "\\medsp", + "∣" : "\\mid", + "ⓜ" : "\\middle", + "∓" : "\\mp", + "∇" : "\\nabla", + "▒" : "\\naryand", + " " : "\\nbsp", + "¬" : "\\neg", + "‖" : "\\norm", + "↖" : "\\nwarrow", + + "∰" : "\\oiiint", + "∯" : "\\oiint", + "∮" : "\\oint", + "⏞" : "\\overbrace", + "⎴" : "\\overbracket", + "¯" : "\\overline", + "⏜" : "\\overparen", + "⏠" : "\\overshell", + + "⟡" : "\\phantom", + "±" : "\\pm", + "⒨" : "\\pmatrix", + "⁗" : "\\pppprime", + "‴" : "\\ppprime", + "″" : "\\pprime", + "′" : "\\prime", + "∏" : "\\prod", + + "\\qdrt": "∜", + "\\quad": " ", + + "〉" : "\\rangle", + "⟫" : "\\Rangle", + "∶" : "\\ratio", + //"]" : "\\rbrack", + "⟧" : "\\Rbrack", + "⌉" : "\\rceil", + "⋰" : "\\rddots", + "▭" : "\\rect", + "⌋" : "\\rfloor", + "⇒" : "\\Rightarrow", + "⇁" : "\\rightharpoondown", + "⇀" : "\\rightharpoonup", + "⎱" : "\\rmoust", + "⒭" : "\\root", + + "𝒶" : "\\scripta", + "𝒜" : "\\scriptA", + "𝒷" : "\\scriptb", + "ℬ" : "\\scriptB", + "𝒸" : "\\scriptc", + "𝒞" : "\\scriptC", + "𝒹" : "\\scriptd", + "𝒟" : "\\scriptD", + "ℯ" : "\\scripte", + "ℰ" : "\\scriptE", + "𝒻" : "\\scriptf", + "ℱ" : "\\scriptF", + "ℊ" : "\\scriptg", + "𝒢" : "\\scriptG", + "𝒽" : "\\scripth", + "ℋ" : "\\scriptH", + "𝒾" : "\\scripti", + "ℐ" : "\\scriptI", + "𝒥" : "\\scriptj", + "𝓀" : "\\scriptk", + "𝒦" : "\\scriptK", + "ℒ" : "\\scriptL", + "𝓂" : "\\scriptm", + "ℳ" : "\\scriptM", + "𝓃" : "\\scriptn", + "𝒩" : "\\scriptN", + "ℴ" : "\\scripto", + "𝒪" : "\\scriptO", + "𝓅" : "\\scriptp", + "𝒫" : "\\scriptP", + "𝓆" : "\\scriptq", + "𝒬" : "\\scriptQ", + "𝓇" : "\\scriptr", + "ℛ" : "\\scriptR", + "𝓈" : "\\scripts", + "𝒮" : "\\scriptS", + "𝓉" : "\\scriptt", + "𝒯" : "\\scriptT", + "𝓊" : "\\scriptu", + "𝒰" : "\\scriptU", + "𝓋" : "\\scriptv", + "𝒱" : "\\scriptV", + "𝓌" : "\\scriptw", + "𝒲" : "\\scriptW", + "𝓍" : "\\scriptx", + "𝒳" : "\\scriptX", + "𝓎" : "\\scripty", + "𝒴" : "\\scriptY", + "𝓏" : "\\scriptz", + "𝒵" : "\\scriptZ", + + "↘" : "\\searrow", + "⬍" : "\\smash", + "⌣" : "\\smile", + "♠" : "\\spadesuit", + "⊓" : "\\sqcap", + "⊔" : "\\sqcup", + "√" : "\\sqrt", + "∑" : "\\sum", + "↙" : "\\swarrow", + + " " : "\\thicksp", + " " : "\\thinsp", + "̃" : "\\tilde", + "×" : "\\times", + "⊤" : "\\top", + "⃡" : "\\tvec", + + "̲" : "\\ubar", + "̳" : "\\Ubar", + "⏟" : "\\underbrace", + "⎵" : "\\underbracket", + "▁" : "\\underline", + "⏝" : "\\underparen", + "↑" : "\\uparrow", + "⇑" : "\\Uparrow", + "↕" : "\\updownarrow", + "⇕" : "\\Updownarrow", + "⊎" : "\\uplus", + + "│" : "\\vbar", + "⋮" : "\\vdots", + "⃗" : "\\vec", + "∨" : "\\vee", + //"|" : "\\vert", + "⒩" : "\\Vmatrix", + "⇳" : "\\vphantom", + " " : "\\vthicksp", + + "∧" : "\\wedge", + + "‌" : "\\zwnj", + "​" : "\\zwsp", + }; + + function CMathContentIterator(oCMathContent) + { + if (oCMathContent instanceof CMathContent) + { + this._content = oCMathContent.Content; + this._paraRun = null; + this._nParaRun = 0; + this._index = oCMathContent.Content.length - 1; // индекс текущего элемента + this.counter = 0; // количество отданных элементов + this.currentEl = null; + } + } + CMathContentIterator.prototype.Count = function () + { + this.counter++; + }; + CMathContentIterator.prototype.Next = function(isStr) + { + if (!this.IsHasContent()) + return false; + + if (this._nParaRun >= 0 && this._paraRun) + { + return this.GetValue(isStr); + } + else + { + let oCurrentContent = this._content[this._index]; + + if (!oCurrentContent instanceof ParaRun) + { + // прерываем обработку здесь точно не слово для автокоррекции + return false; + } + else + { + this._index--; + this._paraRun = oCurrentContent; + this._nParaRun = oCurrentContent.GetElementsCount() - 1; + return this.GetValue(isStr); + } + } + }; + CMathContentIterator.prototype.IsHasContent = function () + { + return this._index >= 0 || this._nParaRun >= 0; + }; + CMathContentIterator.prototype.GetValue = function(isStr) + { + if (this._nParaRun >= 0) + { + this.Count(); + this._nParaRun--; + let oMathText = this._paraRun.GetElement(this._nParaRun + 1); + + // если не текст просто прерываем обработку, здесь точно не слово для автокоррекции + if (!(oMathText instanceof CMathText)) + return false; + + this.currentEl = oMathText; + if (isStr) + return String.fromCodePoint(oMathText.value); + return oMathText.GetCodePoint(); + } + return false; + } + CMathContentIterator.prototype.GetCurrentEl = function () + { + return this.currentEl; + } + CMathContentIterator.prototype.NextCopy = function() + { + let nParaCopy = this._nParaRun; + let nIndex = this._index; + let counter = this.counter; + + if (!this.IsHasContent()) + return false; + + if (this._paraRun) + { + return this.Reset(this.Next(), nParaCopy, nIndex, counter); + } + }; + CMathContentIterator.prototype.Reset = function (El, RunPos, nIndex, Counter) + { + this._nParaRun = RunPos; + this._index = nIndex; + this.counter = Counter; + + return El; + }; + function CorrectWordOnCursor(oCMathContent, IsLaTeX, isSkipFirstLetter) + { + let isConvert = false; + let isSkipFirst = isSkipFirstLetter === true; + let strLast = oCMathContent.GetLastTextElement(); + let isLastOperator = oCMathContent.IsLastElement(AscMath.MathLiterals.operator) || strLast === "(" || strLast === ")"; + let oContent = new CMathContentIterator(oCMathContent); + let oLastOperator; + + if (strLast === " ") + isSkipFirst = true; + + let str = ""; + + while (oContent.IsHasContent()) + { + let nElement = oContent.Next(); + + if (nElement === false) + break; + + let strElement = String.fromCharCode(nElement); + + if (oContent.counter === 1 && isSkipFirst) + { + if (isLastOperator) + { + oLastOperator = strElement; + } + continue; + } + + let isContinue = + (nElement >= 97 && nElement <= 122) + || (nElement >= 65 && nElement <= 90) + || (nElement >= 48 && nElement <= 57) + || nElement === 92 + || nElement === 47; // a-zA-z && 0-9 + + if (!isContinue) + return false; + + str = strElement + str; + + if (nElement === 92 || nElement === 47) + break; + } + + let oCurrentEl = oContent.GetCurrentEl(); + let nSlash = oContent.Next(); + if (nSlash === 47) + { + str = "/" + str; + oCurrentEl = oContent.GetCurrentEl(); + } + + let strCorrection = ConvertWord(str, IsLaTeX); + if (strCorrection) + { + RemoveCountFormMathContent(oCMathContent, str.length + 1); + + if (MathLiterals.accent.SearchU(strCorrection)) + strCorrection = String.fromCharCode(160) + strCorrection; //add nbsp before accent, like word + + for (let i = 0; i < strCorrection.length; i++) + { + let oAddMath = new MathTextAdditionalData(oCurrentEl.Parent); + oCMathContent.Add_Text(strCorrection[i], undefined, undefined, oAddMath); + } + + if (oLastOperator) + { + let oAddMath = new MathTextAdditionalData(oCurrentEl.Parent); + oCMathContent.Add_Text(oLastOperator, undefined, undefined, oAddMath); + } + + isConvert = true; + } + + oCMathContent.MoveCursorToEndPos(); + return isConvert; + } + function RemoveCountFormMathContent (oContent, nCount, isSkipFirst) + { + let oCurrentContent; + for (let i = oContent.Content.length - 1; i >= 0; i--) + { + let isSkippedFirst = false; + oCurrentContent = oContent.Content[i]; + for (let j = oCurrentContent.Content.length - 1; j >= 0; j--) + { + if (isSkipFirst === true) + { + isSkipFirst = false; + isSkippedFirst = true; + continue; + } + oCurrentContent.RemoveFromContent(j, 1, true); + nCount--; + + if (nCount === 0) + return oCurrentContent; + } + } + return oCurrentContent; + } + + function CorrectSpecialWordOnCursor(oCMathContent, IsLaTeX) + { + let oContent= new CMathContentIterator(oCMathContent); + + if (oContent.IsHasContent()) + { + let strSecond = oContent.Next(true); + let strFirst = oContent.Next(true); + + if (strSecond + && strFirst + && strFirst !== "\\" + && strSecond !== "\\" + && CorrectSpecial(oCMathContent, strFirst, strSecond)) + { + oContent._paraRun.MoveCursorToEndPos(); + return true; + } + } + } + function ConvertWord(str, IsLaTeX) + { + if (!IsNotConvertedLaTeXWords(str) || !IsLaTeX) + { + return AutoCorrection[str]; + } + } + + function IsNotConvertedLaTeXWords(str) + { + return arrDoNotConvertWordsForLaTeX.includes(str); + } + + function CorrectAllWords (oCMathContent, isLaTeX) + { + let isConvert = false; + + if (oCMathContent.Type === 49) + { + for (let nCount = 0; nCount < oCMathContent.Content.length; nCount++) + { + if (oCMathContent.Content[nCount].value === 92) + { + let str = oCMathContent.Content[nCount].GetTextOfElement(); + let intStart = nCount; + let intEnd = 0; + + for (let i = nCount + 1; i < oCMathContent.Content.length; i++) { + + let oContent = oCMathContent.Content[i]; + let intCode = oContent.value; + + if (intCode >= 97 && intCode <= 122 || intCode >= 65 && intCode <= 90) { + intEnd = i; + str += oContent.GetTextOfElement(); + } + else + { + break; + } + + nCount++; + } + + if (intEnd > intStart) { + + let strCorrection = ConvertWord(str, isLaTeX); + if (strCorrection) { + nCount -= (intEnd - intStart); + oCMathContent.RemoveFromContent(intStart, intEnd - intStart + 1, true); + oCMathContent.AddText(strCorrection, intStart); + isConvert = true; + } + } + } + } + } + else + { + for (let nCount = 0; nCount < oCMathContent.Content.length; nCount++) { + isConvert = CorrectAllWords(oCMathContent.Content[nCount], isLaTeX) || isConvert; + } + } + + return isConvert; + } + function CorrectAllSpecialWords(oCMathContent, isLaTeX) + { + let isConvert = false; + + if (oCMathContent.Type === 49) + { + for (let nCount = oCMathContent.Content.length - 1; nCount >= 1; nCount--) + { + let str = oCMathContent.Content[nCount].GetTextOfElement(); + let strPrev = oCMathContent.Content[nCount - 1].GetTextOfElement(); + if (CorrectSpecial(oCMathContent, strPrev, str)) + nCount--; + } + } + else + { + for (let nCount = 0; nCount < oCMathContent.Content.length; nCount++) { + isConvert = CorrectAllSpecialWords(oCMathContent.Content[nCount], isLaTeX) || isConvert; + } + } + + return isConvert; + } + function CorrectSpecial(oCMathContent, strPrev, strNext) + { + for (let i = 0; i < g_DefaultAutoCorrectMathSymbolsList.length; i++) + { + let current = g_DefaultAutoCorrectMathSymbolsList[i]; + let strToken = strPrev + strNext; + if (current[0] === strToken) + { + let data = current[1], + str = ""; + + if (Array.isArray(data)) + { + for (let count = 0; i < data.length; i++) + { + data[count] = String.fromCharCode(data[count]); + } + str = data.join(""); + } + else { + str = String.fromCharCode(data); + } + + if (str) + { + let nCounter = 0; + + let oCurrentElement = oCMathContent.Content[oCMathContent.Content.length - 1]; + if (!oCurrentElement || !oCurrentElement.Content) + return false; + + let oCurrentElementCounter = oCurrentElement.Content.length; + + if (oCurrentElementCounter > strToken.length) + { + oCurrentElement.RemoveFromContent(oCurrentElementCounter - strToken.length, strToken.length); + } + else + { + nCounter += oCurrentElementCounter; + oCMathContent.RemoveFromContent(oCMathContent.Content.length - 1, 1); + } + oCMathContent.Add_TextOnPos(oCMathContent.Content.length, str); + return true; + } + } + } + } + function GetConvertContent(nInputType, strConversionData, oContext) + { + oContext.CurPos = oContext.Content.length; + + nInputType === Asc.c_oAscMathInputType.Unicode + ? AscMath.CUnicodeConverter(strConversionData, oContext) + : AscMath.ConvertLaTeXToTokensList(strConversionData, oContext); + + oContext.CurPos = oContext.Content.length; + } + + let isGetLaTeX = true; + + function SetIsLaTeXGetParaRun(isConvert) + { + isGetLaTeX = isConvert; + } + + function GetIsLaTeXGetParaRun() + { + return isGetLaTeX; + } + + function GetFractionType(strToken) + { + switch (strToken) + { + case "/" : return BAR_FRACTION + case "⁄" : return SKEWED_FRACTION + case "⊘" : return BAR_FRACTION + case "∕" : return LINEAR_FRACTION + case "¦" : return NO_BAR_FRACTION + case "⒞" : return NO_BAR_FRACTION + + case "\\binom" : return NO_BAR_FRACTION + case "\\sfrac" : return SKEWED_FRACTION + case "\\frac" : return BAR_FRACTION + case "\\cfrac" : return BAR_FRACTION + } + } + + function ContentWithStylesIterator(arr) + { + let oArr = []; + for (let i = 0; i < arr.length; i++) + { + let CurrentElement = arr[i]; + + if (Array.isArray(CurrentElement)) + { + let strTemp = ContentWithStylesIterator(CurrentElement); + oArr = oArr.concat(strTemp); + } + else if (CurrentElement instanceof MathText) + { + oArr.push(CurrentElement) + } + else + { + oArr.push(CurrentElement) + } + } + return oArr; + } + function ContentWithStylesToText(arr) + { + let arrInput = ContentWithStylesIterator(arr); + let str = ""; + + for (let i = 0; i < arrInput.length; i++) + { + let oCurrentElement = arrInput[i]; + str += oCurrentElement.GetText(); + } + + return str; + } + function ConvertMathTextToText(arr) + { + if (arr.length === 0) + return ""; + + if (arr instanceof MathText) + { + return arr.GetText(); + } + else if (arr.Type) + { + return arr.GetTextOfElement(false, true) + } + + let strContent = ""; + + for (let nCount = 0; nCount < arr.length; nCount++) + { + let CurrentElement = arr[nCount]; + + if (undefined === CurrentElement) + continue; + + if (Array.isArray(CurrentElement)) + { + let strTemp = ConvertMathTextToText(CurrentElement); + if (strTemp) + { + strContent += strTemp; + } + } + else if (CurrentElement instanceof MathText) + { + strContent += CurrentElement.GetText(); + } + else + { + strContent += CurrentElement; + } + } + + return strContent; + } + function GetOnlyText(oContent, nInputType) + { + let one = oContent.GetTextOfElement(nInputType); + return ConvertMathTextToText(one); + } + + function PosInMathText(nPos, nLength) + { + this.pos = nPos; // EndPos + this.length = nLength; // Length of content + + this.Copy = function () + { + return new PosInMathText(this.pos, this.length); + } + + } + + /** + * @param {boolean|undefined|MathTextAndStyles} [isLaTeX] + * @constructor + */ + function MathTextAndStyles (isLaTeX, isDefaultText) + { + if (isLaTeX instanceof MathTextAndStyles) + return isLaTeX; + + if (isLaTeX === undefined) + isLaTeX = false; + + this.LaTeX = isLaTeX; + this.Positions = []; + this.arr = []; + this.oContent = undefined; + + this.nPos = 0; + this.IsBracket = false; + + this.globalStyle = undefined; + this.IsGetStyleFromFirst = true; + + this.IsNotWrap = false; + this.IsDefaultText = isDefaultText; + } + MathTextAndStyles.prototype.IsEmpty = function () + { + return this.arr.length === 0; + }; + MathTextAndStyles.prototype.SetGlobalStyle = function (oContent, isCtrPr) + { + this.globalStyle = new MathTextAdditionalData(oContent, isCtrPr) + }; + MathTextAndStyles.prototype.GetGlobalStyle = function () + { + let oStyle = this.globalStyle; + this.globalStyle = undefined; + return oStyle; + }; + MathTextAndStyles.prototype.ResetGlobalStyle = function () + { + this.globalStyle = undefined; + }; + MathTextAndStyles.prototype.GetFirstStyle = function () + { + if (this.arr.length > 0) + { + let oLastItem = this.arr[0]; + + if (oLastItem instanceof MathTextAndStyles) + return oLastItem.GetFirstStyle(); + else + { + return oLastItem.GetAdditionalData().Copy(); + } + } + }; + MathTextAndStyles.prototype.GetStyleFromFirst = function (oContent) + { + if (!this.IsGetStyleFromFirst) + { + this.IsGetStyleFromFirst = true; + return oContent; + } + + for (let i = 0; i < this.arr.length; i++) + { + if (this.arr[i] instanceof MathTextAndStyles && !this.arr[i].IsEmpty()) + return this.arr[i].GetStyleFromFirst(); + else if (this.arr[i] instanceof MathTextAndStyles) + continue; + else + return this.arr[i].additionalMathData; + } + }; + MathTextAndStyles.prototype.SetNotGetStyleFromFirst = function () + { + this.IsGetStyleFromFirst = false; + }; + MathTextAndStyles.prototype.CreateInnerCopy = function() + { + return new MathTextAndStyles(this.LaTeX, this.IsDefaultText); + }; + MathTextAndStyles.prototype.AddContainer = function() + { + let oMathTextAndStyles = this.CreateInnerCopy(); + this.arr.push(oMathTextAndStyles); + return oMathTextAndStyles; + }; + MathTextAndStyles.prototype.DelEmptyContainer = function() + { + if (this.arr.length > 0) + { + let lastContainer = this.arr[this.arr.length - 1]; + if (lastContainer instanceof MathTextAndStyles && lastContainer.IsEmpty()) + { + this.arr.splice(this.arr.length - 1, 1); + } + } + }; + MathTextAndStyles.prototype.IsLaTeX = function() + { + return this.LaTeX; + }; + MathTextAndStyles.prototype.GetLengthOfContentByPos = function(oPos) + { + let oContentElement = this.GetExact(oPos); + if (oContentElement instanceof MathTextAndStyles) + { + return oContentElement.arr.length > 1; + } + }; + MathTextAndStyles.prototype.GetLastPos = function () + { + if (this.Positions.length > 0) + return this.Positions[this.Positions.length - 1]; + else + return false; + }; + MathTextAndStyles.prototype.GetFirstPos = function () + { + if (this.Positions.length > 0) + return this.Positions[0]; + else + return false; + }; + MathTextAndStyles.prototype.SetContent = function (oContent) + { + this.oContent = oContent; + } + /** + * + * @param oContent + * @param isNew {boolean} - Нужно ли отделять текущий контент в отдельный MathTextAndStyles + * @param [Wrap] {number|Array} Unicode: 0 - not wrap; 1 - special wrap; LaTeX: 1 - wrap + * @param isSelectedText + * @return {PosInMathText|false} + * @constructor + */ + MathTextAndStyles.prototype.Add = function(oContent, isNew, Wrap, isSelectedText) + { + if (!(oContent instanceof MathTextAndStyles) && oContent.Content.length === 0) + return this.GetLastPos(); + + // check what's wrong + // for mathBase set rFont + if (!(oContent instanceof ParaRun) + && !(oContent instanceof MathTextAndStyles) + && !(oContent instanceof CMathContent)) + oContent.Set_RFont_ForMath(); + + let nPosCopy = this.nPos; + + if (oContent instanceof MathTextAndStyles) + { + this.arr.push(oContent); + return this.AddPosition(this.nPos - nPosCopy); + } + + if (isNew) + { + let oMath = this.AddContainer(); + this.SetContent(oContent); + + oContent.GetTextOfElement(oMath, isSelectedText); + + this.DelEmptyContainer(); + if (oMath.IsEmpty()) + { + // in LaTeX mode, despite the fact that there is no content, add brackets to wrap the content + if (this.IsLaTeX() && Wrap === 2) + this.AddText(new MathText('{}', oContent)); + + return this.GetLastPos(); + } + + this.Increase(); + let oPos = this.AddPosition(this.nPos - nPosCopy); + let str = oMath.GetText(); + + if (this.IsLaTeX()) + { + let oCurrentStyle = this.globalStyle + ? this.globalStyle + : this.GetStyleFromFirst(oContent); + + if (Array.isArray(Wrap)) + this.WrapExactElement(oPos, Wrap[0], Wrap[1], this.GetFirstStyle()); + else if (Wrap === 0 || oContent instanceof ParaRun) + return oPos; + else if (Wrap === 1 && ((oContent.haveMixedContent && oContent.haveMixedContent(this.IsLaTeX())) || (this.IsLaTeX() && str.length > 1 && this.IsNotWrap === false))) + this.WrapExactElement(oPos, "{", "}", oCurrentStyle); + else if (Wrap === 2) + this.WrapExactElement(oPos, "{", "}", oCurrentStyle); + + this.IsNotWrap = false; + } + else + { + if (Array.isArray(Wrap)) + this.WrapExactElement(oPos, Wrap[0], Wrap[1], oContent); + else if (Wrap === 0 || oContent instanceof ParaRun) + return oPos; + else if (Wrap === 1 && oContent.haveMixedContent(false, true) && !oMath.IsBracket) + this.WrapExactElement(oPos, "〖", "〗", oContent); + else if (Wrap === 2 && !(oContent.Content.length === 1 && oContent.Content[0] instanceof ParaRun)) + this.WrapExactElement(oPos, "(", ")", oContent); + else if (!(oContent.Parent instanceof CDelimiter) && oContent.haveMixedContent && oContent.haveMixedContent() && !oMath.IsBracket) + this.WrapExactElement(oPos, "(", ")", oContent); + } + + return oPos; + } + else + { + this.SetContent(oContent); + oContent.GetTextOfElement(this, isSelectedText); + + if (this.nPos === nPosCopy) + return this.Get_Position(); + + return this.AddPosition(this.nPos - nPosCopy); + } + }; + MathTextAndStyles.prototype.SetNotWrap = function() + { + this.IsNotWrap = true; + } + MathTextAndStyles.prototype.GetLastContentInLayer = function () + { + if (this.arr.length > 0) + return this.arr[this.arr.length - 1]; + } + MathTextAndStyles.prototype.AddText = function(oContent, isNew) + { + let nPosCopy = this.nPos; + + if (!isNew) + { + let oLast = this.GetLastContentInLayer(); + + if (oLast && oLast instanceof MathText + && oLast.additionalMathData.GetMathMetaData().getIsEscapedSlash() !== true + && oContent instanceof MathText + && oLast.IsAdditionalDataEqual(oContent.additionalMathData)) + { + oLast.text += oContent.text; + return this.AddPosition(this.nPos - nPosCopy); + } + } + + this.arr.push(oContent); + this.Increase(); + + return this.AddPosition(this.nPos - nPosCopy); + }; + MathTextAndStyles.prototype.Get_Position = function() + { + for (let nCounter = 0; nCounter < this.Positions.length; nCounter++) + { + let oCurrentPos = this.Positions[nCounter]; + if (oCurrentPos.pos === this.nPos) + { + return oCurrentPos; + } + } + }; + MathTextAndStyles.prototype.AddPosition = function(nLength, nPos) + { + let oPos; + + if (nPos !== undefined) + { + oPos = new PosInMathText(nPos, nLength); + for (let i = 0; i < this.Positions.length; i++) + { + let oCurrentPos = this.Positions[i]; + if (oCurrentPos.pos > nPos) + { + this.Positions.splice(i, 0, oPos); + return oPos; + } + } + } + + oPos = this.Get_Position(); + + if (!oPos) + { + oPos = new PosInMathText(this.nPos, nLength); + this.Positions.push(oPos); + } + + return oPos; + }; + MathTextAndStyles.prototype.GetExact = function(oPos, isText) + { + let oCurrent = this.arr[oPos.pos - 1]; + + if (isText && oCurrent instanceof MathText) + return oCurrent.GetText(); + else + return oCurrent; + }; + MathTextAndStyles.prototype.SetExact = function (oPos, oContent) + { + this.arr[oPos.pos - 1] = oContent; + } + MathTextAndStyles.prototype.ConvertTextToMathTextAndStyles = function (oPos) + { + let oText = this.GetExact(oPos); + let oContent = new MathTextAndStyles(this.LaTeX, this.IsDefaultText); + + oContent.AddText(oText, false); + this.SetExact(oPos, oContent); + + return oContent; + } + MathTextAndStyles.prototype.GetArrPos = function(oPos, isBefore) + { + let arrAfterPos = []; + + for (let nCounter = 0; nCounter < this.Positions.length; nCounter++) + { + let oCurrentPos = this.Positions[nCounter]; + let nCurrentPos = oCurrentPos.pos; + + if (isBefore) + { + if (nCurrentPos > oPos.pos - 1) + arrAfterPos.push(oCurrentPos); + } + else + { + if (nCurrentPos > oPos.pos ) + arrAfterPos.push(oCurrentPos); + } + } + return arrAfterPos; + }; + MathTextAndStyles.prototype.ChangePositions = function(arrPositions, oFunc) + { + for (let nCounter = 0; nCounter < arrPositions.length; nCounter++) + { + let arrCurrentPos = arrPositions[nCounter]; + oFunc(arrCurrentPos); + } + }; + MathTextAndStyles.prototype.AddAfter = function(oPos, oContent, isNotCopyStyle) + { + let arrPositions = this.GetArrPos(oPos); + let oCurrentContainer = this.GetExact(oPos); + let oCurrent = !isNotCopyStyle && oCurrentContainer instanceof MathText ? oCurrentContainer.GetAdditionalData() : undefined; + let oNew = oContent instanceof MathTextAndStyles || oContent instanceof MathText ? oContent :new MathText(oContent, oCurrent); + + this.arr.splice(oPos.pos, 0, oNew); + + this.nPos++; + this.ChangePositions(arrPositions, function(oPos) {oPos.pos++}); + return this.AddPosition(oContent.length, oPos.pos + 1); + }; + MathTextAndStyles.prototype.AddBefore = function(oPos, oContent, isNotCopyStyle) + { + if (!oContent) + return; + + let arrPositions = this.GetArrPos(oPos, true); + let oCurrentContainer = this.GetExact(oPos); + let oCurrent = !isNotCopyStyle && oCurrentContainer instanceof MathText ? oCurrentContainer.GetAdditionalData() : undefined; + let oNew = oContent instanceof MathTextAndStyles || oContent instanceof MathText ? oContent : new MathText(oContent, oCurrent); + let nPos = oPos.pos - oPos.length; + + this.arr.splice(nPos, 0, oNew); + + this.nPos++; + this.ChangePositions(arrPositions, function(oPos) {oPos.pos++}); + return this.AddPosition(oContent.length, nPos); + }; + MathTextAndStyles.prototype.RemoveByPos = function (oPos) + { + let arrPositions = this.GetArrPos(oPos, true); + let oCurrentContainer = this.GetExact(oPos); + + this.arr.splice(oPos.pos - 1, 1); + this.Positions.splice(oPos.pos - 1, 1); + + this.nPos--; + this.ChangePositions(arrPositions, function(oPos) {oPos.pos--}); + } + MathTextAndStyles.prototype.Wrap = function(strStart, strEnd) + { + this.AddBefore(this.Positions[0], strStart); + this.AddAfter(this.Positions[this.Positions.length - 1], strEnd); + }; + MathTextAndStyles.prototype.IsNeedWrap = function() + { + return this.arr.length > 1; + }; + MathTextAndStyles.prototype.GetLength = function () + { + return this.arr.length; + }; + MathTextAndStyles.prototype.WrapExactElement = function(oPos, strOne, strTwo, oContent) + { + let oToken; + + if (oPos instanceof MathTextAndStyles) + oToken = oPos; + else + oToken = this.GetExact(oPos); + + // при получении линейного математического текста можно получить не MathTextAndStyles, а MathText + // что бы иметь возможность обрамления создаем MathTextAndStyles с MathText внутри + if (oToken instanceof MathText) + oToken = this.ConvertTextToMathTextAndStyles(oPos); + + if (strOne && strTwo) + { + if (this.IsLaTeX()) + { + if (strOne instanceof MathText && strTwo instanceof MathText) + oToken.Wrap(strOne, strTwo); + else + oToken.Wrap(new MathText(strOne, oContent), new MathText(strTwo, oContent)); + } + else + { + oToken.Wrap( + new MathText(strOne, this.globalStyle ? this.globalStyle : oContent), + new MathText(strTwo, this.globalStyle ? this.globalStyle : oContent) + ); + } + + return; + } + + if (!this.IsLaTeX()) + { + oToken.Wrap(new MathText("(", this.globalStyle ? this.globalStyle : oContent), new MathText(")", this.globalStyle ? this.globalStyle : oContent)); + } + else + { + oToken.Wrap(new MathText("{", this.globalStyle ? this.globalStyle : oContent), new MathText("}", this.globalStyle ? this.globalStyle : oContent)); + } + }; + MathTextAndStyles.prototype.Increase = function() + { + this.nPos++; + }; + MathTextAndStyles.prototype.GetText = function() + { + let strOutput = ""; + + for (let nCounter = 0; nCounter < this.arr.length; nCounter++) + { + let oCurrentElement = this.arr[nCounter]; + if (oCurrentElement instanceof MathText) + { + strOutput += oCurrentElement.GetText(); + } + else if (oCurrentElement instanceof MathTextAndStyles) + { + strOutput += oCurrentElement.GetText(); + } + else + { + strOutput += oCurrentElement; + } + } + + return strOutput; + }; + MathTextAndStyles.prototype.IsHasText = function () + { + return this.GetText().trim().length > 0; + }; + MathTextAndStyles.prototype.ChangeContent = function (str) + { + this.Positions = []; + this.arr = []; + this.nPos = 0; + if (str instanceof AscMath.MathText) + { + return this.AddText(str); + } + else + { + return this.AddText(new AscMath.MathText(str)); + } + }; + MathTextAndStyles.prototype.Flat = function () + { + let arrData = []; + let Flat = function (arr) + { + for (let i = 0; i < arr.length; i++) + { + let oCurrentElement = arr[i]; + if (oCurrentElement instanceof MathTextAndStyles) + { + Flat(oCurrentElement.arr); + } + else if (oCurrentElement instanceof MathText) + { + arrData.push(oCurrentElement); + } + else + { + arrData.push(new MathText(oCurrentElement)); + } + } + } + Flat(this.arr); + + for (let i = 0; i < arrData.length; i++) + { + let oCurrentText = arrData[i]; + for (let nNext = i + 1; nNext < arrData.length; nNext++) + { + let oNextText = arrData[nNext]; + if (oCurrentText.IsAdditionalDataEqual(oNextText.GetAdditionalData())){ + oCurrentText.text += oNextText.text; + + arrData.splice(nNext, 1); + nNext--; + } + else + break; + } + } + + return arrData; + }; + MathTextAndStyles.prototype.GetLastContent = function () + { + if (this.arr.length > 0) + { + let oLast = this.arr[this.arr.length - 1]; + if (oLast instanceof MathTextAndStyles) + return oLast.GetLastContent(); + else + return oLast; + } + } + MathTextAndStyles.prototype.GetFirstContent = function () + { + if (this.arr.length > 0) + { + let oLast = this.arr[0]; + if (oLast instanceof MathTextAndStyles) + return oLast.GetFirstContent(); + else + return oLast; + } + } + MathTextAndStyles.prototype.DelLastSpace = function () + { + let oLastContent = this.GetLastContent(); + + if (oLastContent.text[oLastContent.text.length - 1] === " ") + oLastContent.text = oLastContent.text.slice(0, -1); + + return this + }; + + // for store data without symbols and transfer data between autocorrection/correction sessions + function MathMetaData() + { + this.isLinearFraction = false; + this.isEscapedSlash = false; + + this.setIsLinearFraction = function () + { + this.isLinearFraction = true; + } + this.getIsLinearFraction = function () + { + return this.isLinearFraction; + } + + this.setIsEscapedSlash = function () + { + this.isEscapedSlash = true; + } + this.getIsEscapedSlash = function () + { + return this.isEscapedSlash; + } + + this.Copy = function () + { + let oCopy = new MathMetaData(); + + oCopy.setIsLinearFraction(this.isLinearFraction); + oCopy.setIsEscapedSlash(this.isEscapedSlash); + + return oCopy; + } + } + + function MathTextAdditionalData (oContent, isCtrPr) + { + this.style = undefined; + this.reviewData = { + reviewType : reviewtype_Common, + reviewInfo : new CReviewInfo() + } + this.mathPrp = new CMPrp(); + this.metaData = new MathMetaData(); + + if (oContent) + this.SetAdditionalDataFromContent(oContent, isCtrPr); + } + + /** + * + * @return {MathMetaData} + * @constructor + */ + MathTextAdditionalData.prototype.GetMathMetaData = function () + { + return this.metaData; + } + MathTextAdditionalData.prototype.SetMathMetaData = function (oMathMetaData) + { + if (oMathMetaData) + this.metaData = oMathMetaData.Copy(); + } + MathTextAdditionalData.prototype.Copy = function() + { + let oNewMath = new MathTextAdditionalData(); + + oNewMath.SetAdditionalStyleData(this.style); + oNewMath.SetAdditionalReviewData(this.reviewData); + oNewMath.SetMathPrp(this.mathPrp); + oNewMath.SetMathMetaData(this.metaData); + + return oNewMath; + }; + MathTextAdditionalData.prototype.GetAdditionalStyleData = function() + { + return this.style; + }; + MathTextAdditionalData.prototype.SetAdditionalStyleData = function (oStyle) + { + this.style = oStyle; + }; + MathTextAdditionalData.prototype.SetMathPrp = function (oMathPrp) + { + if (oMathPrp) + this.mathPrp = oMathPrp.Copy(); + }; + MathTextAdditionalData.prototype.IsAdditionalStyleData = function() + { + return this.style !== undefined; + }; + MathTextAdditionalData.prototype.GetAdditionalReviewData = function() + { + return this.reviewData; + }; + MathTextAdditionalData.prototype.SetAdditionalReviewData = function (oReviewData) + { + this.reviewData = oReviewData; + }; + MathTextAdditionalData.prototype.GetAdditionalReviewType = function() + { + return this.reviewData.reviewType; + }; + MathTextAdditionalData.prototype.SetAdditionalReviewType = function (nReviewType) + { + this.reviewData.reviewType = nReviewType; + }; + MathTextAdditionalData.prototype.IsAdditionalReviewType = function () + { + return this.reviewData.reviewType !== undefined; + }; + MathTextAdditionalData.prototype.GetAdditionalReviewInfo = function() + { + return this.reviewData.reviewInfo; + }; + MathTextAdditionalData.prototype.SetAdditionalReviewInfo = function (oReviewInfo) + { + this.reviewData.reviewInfo = oReviewInfo; + }; + MathTextAdditionalData.prototype.IsMPrpEqual = function (oMPrp) + { + return oMPrp === undefined + || this.mathPrp === undefined + || (oMPrp !== undefined && this.mathPrp !== undefined && this.mathPrp.IsEqual(oMPrp)) + }; + MathTextAdditionalData.prototype.IsStyleEqual = function (oStyleParent) + { + if (oStyleParent instanceof MathTextAdditionalData) + { + if (this.style === undefined || oStyleParent.style === undefined) + return true; + + return this.style.IsEqual(oStyleParent.GetAdditionalStyleData()) + && this.IsReviewDataEqual(oStyleParent) + && this.IsMPrpEqual(oStyleParent.mathPrp); + } + + if (oStyleParent) + { + let oStyle = oStyleParent instanceof ParaRun + ? oStyleParent.Pr + : oStyleParent.CtrPrp; + + return this.style.IsEqual(oStyle) + && this.IsReviewDataEqual(oStyleParent) + && this.IsMPrpEqual(oStyleParent.MathPrp); + } + + return false; + }; + MathTextAdditionalData.prototype.IsReviewDataEqual = function (oContent) + { + if (oContent instanceof MathTextAdditionalData) + { + if (this.reviewData.reviewType === undefined || oContent.reviewData.reviewInfo === undefined) + return true; + return this.reviewData.reviewType === oContent.reviewData.reviewType + && this.reviewData.reviewInfo.IsEqual(oContent.reviewData.reviewInfo, false) + } + else + { + if (oContent.ReviewInfo === undefined) + return false; + + return this.reviewData.reviewType === oContent.ReviewType + && this.reviewData.reviewInfo.IsEqual(oContent.ReviewInfo, false) + } + } + MathTextAdditionalData.prototype.SetAdditionalDataFromContent = function (oContent, isCtrPrp) + { + let oPr; + + if (oContent instanceof ParaRun) + { + oPr = oContent.Pr.Copy(); + } + else if (oContent instanceof CMathContent && !oContent.CtrPrp.IsEmpty()) + { + oPr = oContent.GetCtrPrp(); + } + else if (oContent instanceof CMathContent && oContent.CtrPrp.IsEmpty() && oContent.Content.length > 0) + { + let oItem = oContent.Content[0]; + if (oItem instanceof ParaRun) + oPr = oItem.Pr.Copy(); + } + else if (oContent instanceof CMathMatrix) + { + oPr = oContent.TextPrControlLetter.Copy(); + } + else + { + oPr = oContent.CtrPrp; + } + + this.SetAdditionalStyleData(oPr); + this.SetAdditionalReviewType(oContent.ReviewType); + this.SetAdditionalReviewInfo(oContent.ReviewInfo); + + if (oContent instanceof ParaRun) + this.SetMathPrp(oContent.MathPrp); + }; + + /** + * @param {string|undefined} str text of math literal + * @param [oContent] {MathTextAdditionalData|} + * @param [isCtrPr] {boolean} + * + */ + function MathText(str, oContent, isCtrPr) + { + this.text = str; + this.additionalMathData = new MathTextAdditionalData; + + if (oContent instanceof MathTextAdditionalData) + this.additionalMathData = oContent; + else if (oContent) + this.SetAdditionalDataFromContent(oContent, isCtrPr); + } + MathText.prototype.GetAdditionalData = function () + { + return this.additionalMathData; + }; + MathText.prototype.GetText = function () + { + return this.text; + }; + MathText.prototype.SetText = function (str) + { + this.text = str; + }; + MathText.prototype.Check = function (func) + { + return func(this.text); + }; + MathText.prototype.IsAdditionalDataEqual = function (oStyle) + { + return this.additionalMathData.IsStyleEqual(oStyle); + }; + MathText.prototype.SetAdditionalDataFromContent = function (oContent, isCtrPrp) + { + this.additionalMathData.SetAdditionalDataFromContent(oContent, isCtrPrp); + }; + + const TokenSearch_All = [ + MathLiterals.specialBrac, + MathLiterals.lrBrackets, + MathLiterals.lBrackets, + MathLiterals.rBrackets, + + MathLiterals.hbrack, + MathLiterals.invisible, + MathLiterals.operator, + MathLiterals.space, + MathLiterals.nary, + MathLiterals.accent, + MathLiterals.accent, + MathLiterals.box, + MathLiterals.divide, + MathLiterals.func, + MathLiterals.matrix, + MathLiterals.radical, + MathLiterals.rect, + MathLiterals.special, + MathLiterals.subSup, + MathLiterals.of, + ]; + const TokenSearch_NotBrackets = [ + MathLiterals.operator, + MathLiterals.hbrack, + MathLiterals.space, + MathLiterals.nary, + MathLiterals.accent, + MathLiterals.accent, + MathLiterals.box, + MathLiterals.divide, + MathLiterals.func, + MathLiterals.matrix, + MathLiterals.radical, + MathLiterals.rect, + MathLiterals.special, + MathLiterals.subSup, + ]; + const TokenSearch_Brackets = [ + MathLiterals.lrBrackets, + MathLiterals.lBrackets, + MathLiterals.rBrackets, + MathLiterals.operator, + ]; + const TokenSearch_Everything = []; + + let names = Object.keys(MathLiterals); + for (let j = 0; j < names.length; j++) + { + TokenSearch_Everything.push(MathLiterals[names[j]]); + } + + function IsConvertWord (nType) + { + return nType === MathLiterals.space.id + || nType === MathLiterals.operator.id + || nType === MathLiterals.lBrackets.id + || nType === MathLiterals.rBrackets.id + } + + function ProcessingBrackets () + { + this.BracketsPair = []; + this.BracketNoPair = []; + this.obj = {}; + this.intCounter = 0; + + /** + * Add bracket pair to BracketsPair array + * @param {PositionIsCMathContent} oStart + * @param {PositionIsCMathContent} oEnd + */ + this.AddBracket = function (oStart, oEnd) + { + this.BracketsPair.push([oStart, oEnd]); + }; + /** + * Add bracket without pair in specific BracketNoPair array + * @param oPos + * @constructor + */ + this.AddNoPair = function (oPos) + { + this.BracketNoPair.push(oPos); + }; + /** + * Delete on specific level Position + */ + this.Shift = function () + { + this.obj[this.intCounter] = undefined; + }; + /** + * Add on specific level given Position + * @param {PositionIsCMathContent} oPosition + */ + this.Add = function (oPosition) + { + if (this.obj[this.intCounter] === undefined) + { + this.obj[this.intCounter] = oPosition; + } + }; + /** + * Get last bracket content + * @return {PositionIsCMathContent} + */ + this.Get = function () + { + let intCounter = this.intCounter - 1; + + while (intCounter >= 0) + { + if (this.obj[intCounter] === undefined) + { + intCounter--; + } + else + { + let oNewPos = this.obj[intCounter]; + + if (!oNewPos instanceof PositionIsCMathContent) + { + break; + } + return oNewPos; + } + } + //TODO Check safety: + return new PositionIsCMathContent(undefined, undefined, undefined, undefined); + }; + /** + * Check given bracket and proceed it + * @param {PositionIsCMathContent} oPos + * @param {object} oIsOpenOrClose + * @param {boolean} oIsOpenOrClose.isOpen + * @param {boolean} oIsOpenOrClose.isClose + */ + this.Check = function (oPos, oIsOpenOrClose) + { + let oPrevContent = this.Get(); + + let intPrevType = oPrevContent.GetType(); + let intCurrentType = oPos.GetType(); + + // если открывающая скобка: ) ] } ... + if (intCurrentType === MathLiterals.rBrackets.id || oIsOpenOrClose.isClose === true) + { + this.Add(oPos); + this.intCounter++; + } + // если закрывающая скобка ( [ { ... + else if (intCurrentType === MathLiterals.lBrackets.id || oIsOpenOrClose.isOpen === true) + { + if (intPrevType === MathLiterals.rBrackets.id || intPrevType === MathLiterals.lrBrackets.id || intPrevType === MathLiterals.specialBrac.id) + { + // нашли скобку + this.AddBracket(oPrevContent, oPos); + this.intCounter--; + this.Shift(); + } + else + { + this.AddNoPair(oPos); + } + } + // TODO + else if (intCurrentType === MathLiterals.lrBrackets.id) + { + if (this.intCounter > 0) + { + if (intPrevType === MathLiterals.rBrackets.id || intPrevType === MathLiterals.lrBrackets.id || intPrevType === MathLiterals.specialBrac.id) + { + this.AddBracket(oPrevContent, oPos); + this.intCounter--; + this.Shift(); + } + } + else + { + this.Add(oPos); + this.intCounter++; + } + } + }; + /** + * Get brackets information + * @return {{NoPair: [], Pairs: []}} + * @constructor + */ + this.GetContent = function () + { + return { + Pairs: this.BracketsPair, + NoPair: this.BracketNoPair, + }; + }; + this.GetLastPiarStartPos = function () + { + if (this.BracketNoPair.length > 0) + { + return this.BracketNoPair[0]; + } + } + this.IsLastBracketPairSpecial = function () + { + if (this.BracketsPair.length > 0) + { + let oLastPair = this.BracketsPair[0]; + let oLastPos = oLastPair[0]; + + if (oLastPos.type === MathLiterals.specialBrac.id) + return true + } + + return false; + } + }; + + const oAutoCorrection = new ProceedTokens(); + + function StartAutoCorrectionMath(oCMathContent, isNotCorrect) + { + if (!oCMathContent) + return; + + oAutoCorrection.Start(oCMathContent, isNotCorrect); + } + + function ProceedTokens() + { + this.oCMathContent = null; + } + ProceedTokens.prototype.Start = function (oCMathContent, isNotCorrect) + { + this.oCMathContent = oCMathContent; + + this.Init(); + + if (this.CorrectWord()) + return; + + if (!isNotCorrect) + this.StartAutoCorrection(); + }; + ProceedTokens.prototype.Reset = function () + { + this.oAbsoluteLastId = undefined; + this.Tokens = { + all: [], + }; + this.Brackets = new ProcessingBrackets(); + }; + ProceedTokens.prototype.CorrectWord = function () + { + if (this.Tokens.brackets.NoPair.length > 1) + return true; + + let oAbsoluteLastId = this.GetAbsoluteLast(); + let nInputType = 0; + + if (CorrectSpecialWordOnCursor(this.oCMathContent, false)) + { + return true + } + else if (IsConvertWord(oAbsoluteLastId)) + { + if (oAbsoluteLastId === MathLiterals.space.id) + { + if (CorrectWordOnCursor(this.oCMathContent, nInputType === 1)) + { + return true; + } + } + else + { + if (CorrectWordOnCursor(this.oCMathContent, nInputType === 1, true)) + { + return true; + } + } + } + }; + /** + * Generate this.Tokens and this.Brackets list + */ + ProceedTokens.prototype.Init = function () + { + this.Reset(); + const arrData = GetInfo(this.oCMathContent, TokenSearch_All); + if (arrData.length > 0) + { + for (let nPosInBlock = arrData.length - 1; nPosInBlock >= 0; nPosInBlock--) + { + let oCurrent = arrData[nPosInBlock]; + let oPrevContent = nPosInBlock > 0 ? arrData[nPosInBlock - 1] : false; + + let nCurrentType = oCurrent.GetType(); + let nPrevType = oPrevContent ? oPrevContent.GetType() : undefined; + + let oIsOpenOrClose = {} + + if (nPrevType === MathLiterals.specialBrac.id) + { + nPosInBlock--; + let strText = oPrevContent.GetText(); + + oIsOpenOrClose = { + isOpen: strText === "├" ? true : false, + isClose: strText === "┤" ? true : false, + } + } + + if (this.IsOtherId(nCurrentType)) + { + this.AddContent(nCurrentType, oCurrent); + } + else if (this.IsBracketsId(nCurrentType)) + { + this.Brackets.Check(arrData[nPosInBlock], oIsOpenOrClose); + this.AddContent(nCurrentType, oCurrent); + } + } + } + this.Tokens.brackets = this.Brackets.GetContent(); + }; + /** + * Check given id is "other" (all tokens without brackets) + * @param nId + * @return {boolean} + */ + ProceedTokens.prototype.IsOtherId = function(nId) + { + return MathLiterals.operator.id === nId + || MathLiterals.space.id === nId + || MathLiterals.nary.id === nId + || MathLiterals.accent.id === nId + || MathLiterals.box.id === nId + || MathLiterals.divide.id === nId + || MathLiterals.func.id === nId + || MathLiterals.matrix.id === nId + || MathLiterals.radical.id === nId + || MathLiterals.rect.id === nId + || MathLiterals.special.id === nId + || MathLiterals.subSup.id === nId + || MathLiterals.of.id === nId + || MathLiterals.specialBrac.id === nId + || MathLiterals.hbrack.id === nId + || MathLiterals.invisible.id === nId; + }; + /** + * Check is given id is brackets id + * @param nId + * @return {boolean} + */ + ProceedTokens.prototype.IsBracketsId = function(nId) + { + return MathLiterals.rBrackets.id === nId + || MathLiterals.lBrackets.id === nId + || MathLiterals.lrBrackets.id === nId + }; + /** + * Add tokens to lists in this.Tokens + * @param {number} nId - ID of token + * @param {PositionIsCMathContent} oToken + */ + ProceedTokens.prototype.AddContent = function (nId, oToken) + { + this.AddById(nId, oToken); + this.AddToAll(oToken); + }; + /** + * Add tokens to this.Tokens by grouping them on id + * @param {number} nId + * @param {PositionIsCMathContent} oInToken + * @constructor + */ + ProceedTokens.prototype.AddById = function (nId, oInToken) + { + let oToken = { + data: oInToken, + link: nId, + pos: this.Tokens[nId] ? this.Tokens[nId].length : 0, + }; + + if (!this.Tokens[nId]) + this.Tokens[nId] = []; + + this.Tokens[nId].push(oToken); + }; + /** + * Add tokens to this.Tokens.all array + * @param {PositionIsCMathContent} oToken + */ + ProceedTokens.prototype.AddToAll = function (oToken) + { + this.Tokens.all.push(oToken); + }; + /** + * Return MathLiteral class of last content block except: + * brackets, + * spaces + * and tokens inside bracket blocks + * + * @returns {PositionIsCMathContent|false} + */ + ProceedTokens.prototype.GetLast = function() + { + let arrAllTokens = this.Tokens.all; + let oSubSup = null; // Last subSub token + + if (!arrAllTokens || arrAllTokens.length === 0) + return false; + + for (let nCounter = 0; nCounter < arrAllTokens.length; nCounter++) + { + let oToken = arrAllTokens[nCounter]; + let nType = oToken.GetType(); + let oPos = this.IsStepInBracket(oToken); + + if (oPos) + { + while (!oPos.IsEqualPosition(oToken)) + { + nCounter++; + oToken = arrAllTokens[nCounter]; + } + continue; + } + + if (MathLiterals.lrBrackets.id === nType + || MathLiterals.lBrackets.id === nType + || MathLiterals.rBrackets.id === nType + || MathLiterals.space.id === nType + || MathLiterals.operator.id === nType + || MathLiterals.subSup.id === nType + || this.IsInSomeBracket(oToken) + ) + { + if (MathLiterals.subSup.id === nType && !oSubSup) + oSubSup = oToken; + continue; + } + + if (oToken) + return oToken; + } + + if (oSubSup) + return oSubSup; + }; + /** + * Get MathLiteral class of last token + * @returns {number|false} + */ + ProceedTokens.prototype.GetAbsoluteLast = function () + { + let arrContent = this.oCMathContent.Content; + if (arrContent.length === 0) + return false; + + let nCounter = arrContent.length - 1; + + while (arrContent[nCounter]) + { + let oLastElem = arrContent[nCounter]; + + if (oLastElem.Type === 49) + { + if (oLastElem.Content.length < 1) + { + nCounter--; + continue; + } + + let oLastElement = oLastElem.Content[oLastElem.Content.length - 1]; + let strValue = String.fromCharCode(oLastElement.value); + return GetTokenType(strValue, TokenSearch_Everything); + } + else + return false; + } + + return false; + }; + ProceedTokens.prototype.GetAbsolutLastObject = function () + { + let arrContent = this.oCMathContent.Content; + if (arrContent.length === 0) + return false; + + let oLastElem = arrContent[arrContent.length - 1]; + + if (oLastElem.Type === 49) + { + if (oLastElem.Content.length < 1) + return false; + let oLastElement = oLastElem.Content[oLastElem.Content.length - 1]; + let strValue = String.fromCharCode(oLastElement.value); + + return new AscMath.MathText(strValue, oLastElem); + } + }; + /** + * Get MathLiteral class of pre last token + * @returns {number|false} + */ + ProceedTokens.prototype.GetAbsolutePreLast = function () + { + let arrContent = this.oCMathContent.Content; + if (!arrContent || arrContent.length === 0) + return false; + + let oLastElem = arrContent[arrContent.length - 1]; + + if (oLastElem.Type === 49) + { + let nCount = oLastElem.Content.length - 2; + if (nCount >= 0) + { + let oLastElement = oLastElem.Content[oLastElem.Content.length - 2]; + let strValue = String.fromCharCode(oLastElement.value); + return GetTokenType(strValue, TokenSearch_Everything); + } + } + + return false; + }; + /** + * Check is given position in any brackets pair. Return returns the opposite position of the parenthesis + * @param {PositionIsCMathContent} oPos + * @returns {PositionIsCMathContent | false} + */ + ProceedTokens.prototype.IsStepInBracket = function(oPos, isOnlyGetStart) + { + let arrBracketsPairs = this.Tokens.brackets.Pairs; + + if (!arrBracketsPairs || arrBracketsPairs.length === 0) + return false; + + for (let nCount = 0; nCount < arrBracketsPairs.length; nCount++) + { + let arrCurrentBracketPair = arrBracketsPairs[nCount]; + + let oStartPos = arrCurrentBracketPair[1]; + let oEndPos = arrCurrentBracketPair[0]; + + if (oStartPos.IsEqualPosition(oPos) && !isOnlyGetStart) + return oEndPos; + else if (oEndPos.IsEqualPosition(oPos)) + return oStartPos; + } + + return false; + }; + /** + * Check is given position is start or end of any bracket block. + * @param {PositionIsCMathContent} oPos + * @returns {boolean} + */ + ProceedTokens.prototype.IsInSomeBracket = function(oPos) + { + let arrBracketsPairs = this.Tokens.brackets.Pairs; + + if (!arrBracketsPairs || arrBracketsPairs.length === 0) + return false; + + for (let nCount = 0; nCount < arrBracketsPairs.length; nCount++) + { + let arrCurrentBracketPair = arrBracketsPairs[nCount]; + let oStartPos = arrCurrentBracketPair[1]; + let oEndPos = arrCurrentBracketPair[0]; + + if (oPos.IsBetween(oStartPos, oEndPos)) + return true; + } + + return false; + }; + /** + * Check token on given pos is operator + * @param {PositionIsCMathContent} oPos + * @return {boolean} + */ + ProceedTokens.prototype.IsOperator = function (oPos) + { + let arrOperators = this.Tokens[MathLiterals.operator.id]; + + if (!arrOperators || arrOperators.length === 0) + return false; + + for (let i = 0; i < arrOperators.length; i++) + { + let oCurrentOperator = arrOperators[i]; + if (oPos.IsEqualPosition(oCurrentOperator.data)) + return true; + } + + return false; + }; + ProceedTokens.prototype.IsTrigger = function (nId) + { + return MathLiterals.space.id === nId + || MathLiterals.rBrackets.id === nId + || this.IsRecursiveTrigger(nId); + }; + ProceedTokens.prototype.IsRecursiveTrigger = function (nId) + { + return MathLiterals.operator.id === nId; + }; + /** + * Proceed AutoCorrection + * @returns {boolean} + */ + ProceedTokens.prototype.StartAutoCorrection = function () + { + if (!isAllowAutoCorrect) + return false; + + let oRuleLast = this.GetLast(); + this.oAbsoluteLastId = this.GetAbsoluteLast(); + let oAbsolutePLastId = this.GetAbsolutePreLast(); + let oFuncNamePos = CheckFunctionOnCursor(this.oCMathContent); + + if (this.oAbsoluteLastId === oAbsolutePLastId) // подряд два пробела, не начинам коррекцию + return false; + + // если нажали пробел после названия функции (cos, sin, lim, log, ...), то + // нужно добавить символ \funcapply после и инициировать конвертацию + if (!oRuleLast && oFuncNamePos && this.oAbsoluteLastId === MathLiterals.space.id) + { + // последний элемент для получения стиля + let oLastMath = this.GetAbsolutLastObject(); + // получаем контент и удаляем пробел + + let oParamsCutContent = {oDelMark: oFuncNamePos, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + let oFuncName = oMathContent.GetFirstContent(); + let oAddDataFuncName = oFuncName.GetAdditionalData(); + let mPrp = oAddDataFuncName.mathPrp; + mPrp.SetStyle(false, false); + + //добавляем символ funcapply + let oFuncApply = new MathText(String.fromCodePoint(8289), oLastMath.additionalMathData); + oMathContent.AddText(oFuncApply); + + //конвертируем в профф. формат + GetConvertContent(0, oMathContent, this.oCMathContent); + this.SetCursorByConvertedData(this.oCMathContent); + return true + } + else if (oRuleLast && oFuncNamePos && this.oAbsoluteLastId === MathLiterals.subSup.id) + { + let oParamsCutContentSubSup = {oDelMark: oRuleLast}; + let oMathContentSubSup = CutContentFromEnd(this.oCMathContent, oParamsCutContentSubSup); + + // последний элемент для получения стиля + let oLastMath = this.GetAbsolutLastObject(); + + let oParamsCutContent = {oDelMark: oFuncNamePos}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + let oFuncName = oMathContent.GetFirstContent(); + let oAddDataFuncName = oFuncName.GetAdditionalData(); + let mPrp = oAddDataFuncName.mathPrp; + mPrp.SetStyle(false, false); + + //добавляем символ funcapply + let oFuncApply = new MathText(String.fromCodePoint(8289), oLastMath.additionalMathData); + oMathContent.AddText(oFuncApply); + let oSubSup = new MathText(oMathContentSubSup.GetText(), oLastMath.additionalMathData); + oMathContent.AddText(oSubSup); + + this.oCMathContent.AddDataFromFlatMathTextAndStyles(oMathContent.Flat()); + + //конвертируем в профф. формат + this.SetCursorByConvertedData(this.oCMathContent); + return true + } - "ⅆ" :"\\dd" , - "ⅅ" :"\\Dd" , - "ⅇ" :"\\ee" , - "ℓ" :"\\ell" , - "ℏ" :"\\hbar" , - "ⅈ" :"\\ii" , - "ℑ" :"\\Im" , - "ı" :"\\imath" , - "Jay" :"\\j" , - "ⅉ" :"\\jj" , - "ȷ" :"\\jmath" , - "∂" :"\\partial" , - "ℜ" :"\\Re" , - "℘" :"\\wp" , - "ℵ" :"\\aleph" , - "ℶ" :"\\bet" , - "ℷ" :"\\gimel" , - "ℸ" :"\\dalet" , + // конвертация контента ВНУТРИ скобки, при закрытии скобки + if (this.IsBracketContentConvert()) + { + let isResult = this.ConvertBracketContent(); + if (typeof isResult === "boolean") + return isResult; + } - "Α" :"\\Alpha" , - "α" :"\\alpha" , - "Β" :"\\Beta" , - "β" :"\\beta" , - "γ" :"\\gamma" , - "Γ" :"\\Gamma" , - "Δ" :"\\Delta" , - "δ" :"\\delta" , - "Ε" :"\\Epsilon" , - "ε" :"\\varepsilon" , - "ζ" :"\\zeta" , - "Ζ" :"\\Zeta" , - "η" :"\\eta" , - "Η" :"\\Eta" , - "θ" :"\\theta" , - "Θ" :"\\Theta" , - "ϑ" :"\\vartheta" , - "ι" :"\\iota" , - "Ι" :"\\Iota" , - "κ" :"\\kappa" , - "Κ" :"\\Kappa" , - "λ" :"\\lambda" , - "Λ" :"\\Lambda" , - "μ" :"\\mu" , - "Μ" :"\\Mu" , - "ν" :"\\nu" , - "Ν" :"\\Nu" , - "ξ" :"\\xi" , - "Ξ" :"\\Xi" , - "Ο" :"\\O" , - "ο" :"\\o" , - "π" :"\\pi" , - "Π" :"\\Pi" , - "ϖ" :"\\varpi" , - "ρ" :"\\rho" , - "Ρ" :"\\Rho" , - "ϱ" :"\\varrho" , - "σ" :"\\sigma" , - "Σ" :"\\Sigma" , - "ς" :"\\varsigma" , - "τ" :"\\tau" , - "Τ" :"\\Tau" , - "υ" :"\\upsilon" , - "Υ" :"\\Upsilon" , - "ϕ" :"\\phi" , - "Φ" :"\\Phi" , - "φ" :"\\varphi" , - "χ" :"\\chi" , - "Χ" :"\\Chi" , - "ψ" :"\\psi" , - "Ψ" :"\\Psi" , - "ω" :"\\omega" , - "Ω" :"\\Omega" , + //конвертация контента перед символом деления "1_2/" -> СDegree block "1_2" + "/" + if (MathLiterals.divide.id === this.oAbsoluteLastId && true === this.ProceedBeforeDivide(oRuleLast)) + { + return true; + } - "┴" : "\\above", - "́" : "\\acute", - "∐" : "\\amalg", - "∠" : "\\angle", - "∳" : "\\aoint", - "⬆" : "\\asmash", - "∗" : "\\ast", - "¦" : "\\atop", - "■" : "\\array", + //при написании оператора нужно конвертировать всю формулу до оператора (или до первой открывающей скобки) + if (this.IsRecursiveTrigger(this.oAbsoluteLastId)) + { + if (true === this.ConvertByOperator()) + return true; + } + else if (this.IsTrigger(this.oAbsoluteLastId) && oRuleLast && oRuleLast.type === MathLiterals.of.id) // сначала пытаемся преобразовать все что находится после "▒" + { + let oMathContentTemp = AscFormat.ExecuteNoHistory( + function (oRuleLast) + { + let oMathCopy = this.oCMathContent.Copy(); + let oParamsCutContent = {oDelMark : oRuleLast, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(oMathCopy, oParamsCutContent); - "̿" : "\\Bar", - "̅" : "\\bar", - "‵" : "\\backprime", - "〖" : "\\begin", - "┬" : "\\below", - "⋂" : "\\bigcap", - "⋃" : "\\bigcup", - "□" : "\\box", - "⟨" : "\\bra", - "⤶" : "\\break", - "̆" : "\\breve", - "∙" : "\\bullet", + GetConvertContent(0, oMathContent, oMathCopy); + oMathCopy.Correct_Content(true); - "∩" : "\\cap", - "Ⓒ" : "\\cases", - "∛" : "\\cbrt", - "⋅" : "\\cdot", - "⋯" : "\\cdots", - "̌" : "\\check", - "∘" : "\\circ", - "┤" : "\\close", - "♣" : "\\clubsuit", - "∲" : "\\coint", - "∪" : "\\cup", + return oMathCopy; + }, + this, + [oRuleLast] + ); - "⃜" : "\\ddddot", - "⃛" : "\\dddot", - "̈" : "\\ddot", - "⋱" : "\\ddots", - "≝" : "\\defeq", - "℃" : "\\degc", - "℉" : "\\degf", - "°" : "\\degree", - "♢" : "\\diamondsuit", - "÷" : "\\div", - "̇" : "\\dot", - "𝕒" : "\\doublea", - "𝔸" : "\\doubleA", - "𝕓" : "\\doubleb", - "𝔹" : "\\doubleB", - "𝕔" : "\\doublec", - "ℂ" : "\\doubleC", - "𝕕" : "\\doubled", - "𝔻" : "\\doubleD", - "𝕖" : "\\doublee", - "𝔼" : "\\doubleE", - "𝕗" : "\\doublef", - "𝔽" : "\\doubleF", - "𝕘" : "\\doubleg", - "𝔾" : "\\doubleG", - "𝕙" : "\\doubleh", - "ℍ" : "\\doubleH", - "𝕚" : "\\doublei", - "𝕀" : "\\doubleI", - "𝕛" : "\\doublej", - "𝕁" : "\\doubleJ", - "𝕜" : "\\doublek", - "𝕂" : "\\doubleK", - "𝕝" : "\\doublel", - "𝕃" : "\\doubleL", - "𝕞" : "\\doublem", - "𝕄" : "\\doubleM", - "𝕟" : "\\doublen", - "ℕ" : "\\doubleN", - "𝕠" : "\\doubleo", - "𝕆" : "\\doubleO", - "𝕡" : "\\doublep", - "ℙ" : "\\doubleP", - "𝕢" : "\\doubleq", - "ℚ" : "\\doubleQ", - "𝕣" : "\\doubler", - "ℝ" : "\\doubleR", - "𝕤" : "\\doubles", - "𝕊" : "\\doubleS", - "𝕥" : "\\doublet", - "𝕋" : "\\doubleT", - "𝕦" : "\\doubleu", - "𝕌" : "\\doubleU", - "𝕧" : "\\doublev", - "𝕍" : "\\doubleV", - "𝕨" : "\\doublew", - "𝕎" : "\\doubleW", - "𝕩" : "\\doublex", - "𝕏" : "\\doubleX", - "𝕪" : "\\doubley", - "𝕐" : "\\doubleY", - "𝕫" : "\\doublez", - "ℤ" : "\\doubleZ", - "↓" : "\\downarrow", - "⇓" : "\\Downarrow", - "⬇" : "\\dsmash", + if (!this.CompareMathContent(oMathContentTemp)) // если контент изменился, то преобразуем все после ▒ + { + let oParamsCutContent = {oDelMark : oRuleLast, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + GetConvertContent(0, oMathContent, this.oCMathContent); + this.SetCursorByConvertedData(this.oCMathContent); + return true; + } + // если остался прежним и есть большой оператор -> преобразуем весь контент до оператора включительно + else if (this.Tokens[MathLiterals.nary.id] && this.Tokens[MathLiterals.nary.id].length > 0) + { + let oStartPos = this.Tokens[MathLiterals.nary.id][0].data; + + if (oStartPos) + { + let oParamsCutContent = {oDelMark : oStartPos, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + GetConvertContent(0, oMathContent, this.oCMathContent); + + this.SetCursorByConvertedData(this.oCMathContent); + return true; + } + } + } + else if (this.IsBIFunctionProcessing(oRuleLast) && this.IsTrigger(this.oAbsoluteLastId)) + { + this.BIFunctionProcessing(oRuleLast); + return true; + } + else if (this.IsPCFunctionWithContentAfter(oRuleLast) && this.IsTrigger(this.oAbsoluteLastId)) + { + this.PCFunctionProcessingWithContent(oRuleLast); + return true; + } + else if (this.IsPCFunction(oRuleLast) && this.IsTrigger(this.oAbsoluteLastId)) + { + this.PCFunctionProcessing(oRuleLast); + return true; + } + else if (this.IsPRFunction(oRuleLast) && this.IsTrigger(this.oAbsoluteLastId)) + { + this.PRFunctionProcessing(oRuleLast); + return true; + } + + // prescript inside brackets "(_2^y) " + if (!oRuleLast && this.IsPreScript(oAbsolutePLastId)) + { + this.ConvertPreScript(); + this.SetCursorByConvertedData(this.oCMathContent); + return true; + } + + //конвертация самих скобок + if (this.IsBracketConvert(oAbsolutePLastId) && !this.IsPreScript()) + { + ConvertBracket(this.Tokens.brackets, this.oCMathContent); + this.SetCursorByConvertedData(this.oCMathContent); + return true; + } + }; + ProceedTokens.prototype.ConvertByOperator = function () + { + let oPos = this.Brackets.GetLastPiarStartPos(); + + if (oPos) + oPos.IncreasePosition(); + + if (!oPos) + oPos = new PositionIsCMathContent(0, 0); + + let oParamsCutContent = {oDelMark : oPos}; + + let oMathContentCopy = AscFormat.ExecuteNoHistory( + function () { + let oMathContentCopy = this.oCMathContent.Copy(); + let oMathContent = CutContentFromEnd(oMathContentCopy, oParamsCutContent); + + GetConvertContent(0, oMathContent, oMathContentCopy); + oMathContentCopy.Correct_Content(true); + + return oMathContentCopy; + }, + this + ); + + if (!this.CompareMathContent(oMathContentCopy)) + { + let oNewMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + GetConvertContent(0, oNewMathContent, this.oCMathContent); + return true + } + + return false; + } + ProceedTokens.prototype.private_ProceedBeforeDivide = function (oRuleLast, isCopy) + { + let oTempMathContent = isCopy ? this.oCMathContent.Copy() : this.oCMathContent; + let oParamsCutContent = {oDelMark : oRuleLast}; + let oPos = this.Brackets.GetLastPiarStartPos(); + let oDivide = CutContentFromEnd(oTempMathContent, oParamsCutContent); + + if (!oPos) + oPos = this.GetContentBlockBefore(oRuleLast).start; + + oParamsCutContent = {oDelMark : oPos}; + let oMathContent = CutContentFromEnd(oTempMathContent, oParamsCutContent); + + GetConvertContent(0, oMathContent, oTempMathContent); + oTempMathContent.AddDataFromFlatMathTextAndStyles(oDivide.Flat()); + + return oTempMathContent; + } + ProceedTokens.prototype.ProceedBeforeDivide = function (oRuleLast) + { + let oMathContentTemp = AscFormat.ExecuteNoHistory( + this.private_ProceedBeforeDivide, + this, + [oRuleLast, true] + ); + + if (!this.CompareMathContent(oMathContentTemp, true)) + { + this.private_ProceedBeforeDivide(oRuleLast, false); + return true; + } + else + { + return false; + } + } + ProceedTokens.prototype.CompareMathContent = function (oMathContentCopy, isCheckStr) + { + let isSame = true; + + for (let i = this.oCMathContent.Content.length; i >= 0;i--) + { + if (oMathContentCopy.Content[i]) + { + if (this.oCMathContent.Content[i] + && this.oCMathContent.Content[i].constructor.name !== oMathContentCopy.Content[i].constructor.name) + isSame = false; + + if (oMathContentCopy.Content[i].Type !== para_Math_Run + && !this.oCMathContent.Content[i]) + isSame = false; + + if (isCheckStr + && oMathContentCopy.Content[i] + && this.oCMathContent.Content[i] + && oMathContentCopy.Content[i].GetTextOfElement().GetText() !== this.oCMathContent.Content[i].GetTextOfElement().GetText()) + isSame = false; + } + } + + return isSame; + }; + ProceedTokens.prototype.IsBracketConvert = function (oAbsolutePLastId) + { + return (MathLiterals.rBrackets.id === oAbsolutePLastId || MathLiterals.lrBrackets.id === oAbsolutePLastId) + && this.Tokens.brackets.Pairs.length > 0 + && this.IsTrigger(this.oAbsoluteLastId) + }; + ProceedTokens.prototype.IsBracketContentConvert = function () + { + return MathLiterals.rBrackets.id === this.oAbsoluteLastId + || this.Brackets.IsLastBracketPairSpecial() + && this.IsTrigger(this.oAbsoluteLastId) + }; + ProceedTokens.prototype.ConvertBracketContent = function () + { + // проверяем что первый символ внутри скобки это не _ или ^ для обработки pre-script + let oLastBracketBlock = this.Tokens.brackets.Pairs[this.Tokens.brackets.Pairs.length - 1]; + + if (oLastBracketBlock) + { + let oPos = oLastBracketBlock[1].GetCopy(); - "∅" : "\\emptyset", - " " : "\\emsp", - "〗" : "\\end", - " " : "\\ensp", - "█" : "\\eqarray", + if (oPos) + { + oPos.IncreasePosition(); - "𝔞" : "\\fraktura", - "𝔄" : "\\frakturA", - "𝔟" : "\\frakturb", - "𝔅" : "\\frakturB", - "𝔠" : "\\frakturc", - "ℭ" : "\\frakturC", - "𝔡" : "\\frakturd", - "𝔇" : "\\frakturD", - "𝔢" : "\\frakture", - "𝔈" : "\\frakturE", - "𝔣" : "\\frakturf", - "𝔉" : "\\frakturF", - "𝔤" : "\\frakturg", - "𝔊" : "\\frakturG", - "𝔥" : "\\frakturh", - "ℌ" : "\\frakturH", - "𝔦" : "\\frakturi", - "𝔧" : "\\frakturj", - "𝔍" : "\\frakturJ", - "𝔨" : "\\frakturk", - "𝔎" : "\\frakturK", - "𝔩" : "\\frakturl", - "𝔏" : "\\frakturL", - "𝔪" : "\\frakturm", - "𝔐" : "\\frakturM", - "𝔫" : "\\frakturn", - "𝔑" : "\\frakturN", - "𝔬" : "\\frakturo", - "𝔒" : "\\frakturO", - "𝔭" : "\\frakturp", - "𝔓" : "\\frakturP", - "𝔮" : "\\frakturq", - "𝔔" : "\\frakturQ", - "𝔯" : "\\frakturr", - "𝔰" : "\\frakturs", - "𝔖" : "\\frakturS", - "𝔱" : "\\frakturt", - "𝔗" : "\\frakturT", - "𝔲" : "\\frakturu", - "𝔘" : "\\frakturU", - "𝔳" : "\\frakturv", - "𝔙" : "\\frakturV", - "𝔴" : "\\frakturw", - "𝔚" : "\\frakturW", - "𝔵" : "\\frakturx", - "𝔛" : "\\frakturX", - "𝔶" : "\\fraktury", - "𝔜" : "\\frakturY", - "𝔷" : "\\frakturz", - "ℨ" : "\\frakturZ", - "⌑" : "\\frown", - "⁡" : "\\funcapply", + if (oPos.GetText() !== "_" && oPos.GetText() !== "^") + { + ConvertBracketContent(this.Tokens.brackets, this.oCMathContent); + this.oCMathContent.MoveCursorToEndPos(); + return true; + } + else + { + return false; + } + } + } + } + ProceedTokens.prototype.IsStartBracketAndClose = function () + { + return this.Tokens[MathLiterals.specialBrac.id] + && this.Tokens[MathLiterals.specialBrac.id].length >= 1 + && this.Tokens.brackets.NoPair.length > 0 + && this.Tokens.brackets.NoPair[0].type === MathLiterals.rBrackets.id; + }; + ProceedTokens.prototype.StartBracketAndClose = function () + { + let oStartPos = this.Tokens.brackets.NoPair[0]; + let oParamsCutContent = {oDelMark : oStartPos, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); - "←" : "\\gets", - "̀" : "\\grave", + GetConvertContent(0, oMathContent, this.oCMathContent); + }; + ProceedTokens.prototype.IsStartAndCloseBracket = function () + { + return this.Tokens[MathLiterals.specialBrac.id] && this.Tokens[MathLiterals.specialBrac.id].length >= 2 + }; + ProceedTokens.prototype.StartCloseBracket = function () + { + let arrStartAndClose = this.Tokens[MathLiterals.specialBrac.id]; + let oClosePos = arrStartAndClose[0].data; + let oStartPos = arrStartAndClose[1].data; + let strClosePos = oClosePos.GetText(); + let strOpenPos = oStartPos.GetText(); - " " : "\\hairsp", - "̂" : "\\hat", - "♡" : "\\heartsuit", - "↩" : "\\hookleftarrow", - "↪" : "\\hookrightarrow", - "⬄" : "\\hphantom", - "⬌" : "\\hsmash", - "⃑" : "\\hvec", + if (strClosePos === "┤" && strOpenPos === "├") + { + let oParamsCutContent = {oDelMark : oStartPos, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); - "⨌" : "\\iiiint", - "∭" : "\\iiint", - "∬" : "\\iint", + GetConvertContent(0, oMathContent, this.oCMathContent); + } + }; + ProceedTokens.prototype.IsPreScript = function (oAbsolutePLastId) + { + if (this.Tokens.brackets.Pairs.length > 0 + && (MathLiterals.space.id === this.oAbsoluteLastId && oAbsolutePLastId === MathLiterals.rBrackets.id + || MathLiterals.char.id === oAbsolutePLastId && MathLiterals.space.id === this.oAbsoluteLastId)) + { + return AscFormat.ExecuteNoHistory( + function () { + if (this.Tokens.brackets.Pairs.length < 1) + return false; + let oFirstPair = this.Tokens.brackets.Pairs[this.Tokens.brackets.Pairs.length - 1][1]; + let oParamsCutContent = {oDelMark : oFirstPair, isCopy : true, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + let strMathContent = oMathContent.GetText(); + + if (strMathContent.split("_").length >= 2 && strMathContent.split("^").length >= 2) + return this.Tokens.brackets.Pairs.length > 0; + }, + this + ); + } + }; + ProceedTokens.prototype.ConvertPreScript = function () + { + if (this.Tokens.brackets.Pairs.length < 1) + return false; + let oFirstPair = this.Tokens.brackets.Pairs[this.Tokens.brackets.Pairs.length - 1][1]; + let oParamsCutContent = {oDelMark : oFirstPair, isWrapFirstContent : true, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); - "∆" : "\\inc", - "∫" : "\\int", - "⁢" : "\\itimes", + GetConvertContent(0, oMathContent, this.oCMathContent); + }; + /** + * Get content after given position + * @param {PositionIsCMathContent} oPos + * @returns {{start : PositionIsCMathContent, end: PositionIsCMathContent} | undefined} + */ + ProceedTokens.prototype.GetContentBlockAfter = function (oPos, isSpace) + { + let oStartPos = oPos.GetCopy(); + oStartPos.IncreasePosition(); + let oBracketPos = this.IsStepInBracket(oStartPos); + if (oBracketPos) + { + return { + start: oStartPos, + end: oBracketPos, + } + } - "⟩" : "\\ket", - "〈" : "\\langle", - "⟦" : "\\lbbrack", - "[" : "\\lbrack", - "⌈" : "\\lceil", - "├" : "\\left", - "⇐" : "\\Leftarrow", - "↽" : "\\leftharpoondown", - "↼" : "\\leftharpoonup", - "⇔" : "\\Leftrightarrow", - "↔" : "\\leftrightarrow", + let isParaPosUsed = false; + let nMathPos = oStartPos.GetMathPos(); + let nParaPos = oStartPos.GetPosition(); + let nEndMathPos = nMathPos; + let nEndParaPos = nParaPos; + let oEndPos; - "⌊" : "\\lfloor", - "⃐" : "\\lhvec", - "⎰" : "\\lmoust", - "⟸" : "\\Longleftarrow", - "⟺" : "\\Longleftrightarrow", - "⟹" : "\\Longrightarrow", - "⇋" : "\\lrhar", - "⃖" : "\\lvec", + if (nMathPos >= this.oCMathContent.Content.length || nMathPos < 0) + return; - "↦" : "\\mapsto", - " " : "\\medsp", - "∣" : "\\mid", - "ⓜ" : "\\middle", - "∓" : "\\mp", - "∇" : "\\nabla", - "▒" : "\\naryand", - " " : "\\nbsp", - "¬" : "\\neg", - "‖" : "\\norm", - "↖" : "\\nwarrow", + for (let i = nMathPos, nContentLength = this.oCMathContent.Content.length; i < nContentLength; i++) + { + let oCurrentElement = this.oCMathContent.Content[i]; + nEndMathPos = i; + nEndParaPos = (i === nMathPos) + ? nEndParaPos + : 0; - "∰" : "\\oiiint", - "∯" : "\\oiint", - "∮" : "\\oint", - "⏞" : "\\overbrace", - "⎴" : "\\overbracket", - "¯" : "\\overline", - "⏜" : "\\overparen", - "⏠" : "\\overshell", + if (oCurrentElement.Type === 49) + { + if (!isParaPosUsed && nParaPos >= oCurrentElement.Content.length) + return; - "⟡" : "\\phantom", - "±" : "\\pm", - "⒨" : "\\pmatrix", - "⁗" : "\\pppprime", - "‴" : "\\ppprime", - "″" : "\\pprime", - "′" : "\\prime", - "∏" : "\\prod", + for (let j = !isParaPosUsed ? nParaPos : 0; j < oCurrentElement.Content.length; j++) + { + if (!isParaPosUsed) + { + isParaPosUsed = true; + } - "\\qdrt": "∜", - "\\quad": " ", + oEndPos = new PositionIsCMathContent(nEndMathPos, nEndParaPos, undefined, oCurrentElement.Content); + if (isSpace && oEndPos.GetType() === MathLiterals.space.id) + return { + start: oStartPos, + end: oEndPos + } + let oPos = this.IsStepInBracket(oEndPos); + if (oPos) + { + nEndMathPos = i = oPos.GetMathPos(); + nEndParaPos = j = oPos.GetPosition(); - "〉" : "\\rangle", - "⟫" : "\\Rangle", - "∶" : "\\ratio", - "]" : "\\rbrack", - "⟧" : "\\Rbrack", - "⌉" : "\\rceil", - "⋰" : "\\rddots", - "▭" : "\\rect", - "⌋" : "\\rfloor", - "⇒" : "\\Rightarrow", - "⇁" : "\\rightharpoondown", - "⇀" : "\\rightharpoonup", - "⎱" : "\\rmoust", - "⒭" : "\\root", + return { + start: oStartPos, + end: new PositionIsCMathContent(nEndMathPos, nEndParaPos, undefined, oCurrentElement.Content) + } + } + else + { + nEndParaPos = j; + } + } + } + } - "𝒶" : "\\scripta", - "𝒜" : "\\scriptA", - "𝒷" : "\\scriptb", - "ℬ" : "\\scriptB", - "𝒸" : "\\scriptc", - "𝒞" : "\\scriptC", - "𝒹" : "\\scriptd", - "𝒟" : "\\scriptD", - "ℯ" : "\\scripte", - "ℰ" : "\\scriptE", - "𝒻" : "\\scriptf", - "ℱ" : "\\scriptF", - "ℊ" : "\\scriptg", - "𝒢" : "\\scriptG", - "𝒽" : "\\scripth", - "ℋ" : "\\scriptH", - "𝒾" : "\\scripti", - "ℐ" : "\\scriptI", - "𝒥" : "\\scriptj", - "𝓀" : "\\scriptk", - "𝒦" : "\\scriptK", - "ℒ" : "\\scriptL", - "𝓂" : "\\scriptm", - "ℳ" : "\\scriptM", - "𝓃" : "\\scriptn", - "𝒩" : "\\scriptN", - "ℴ" : "\\scripto", - "𝒪" : "\\scriptO", - "𝓅" : "\\scriptp", - "𝒫" : "\\scriptP", - "𝓆" : "\\scriptq", - "𝒬" : "\\scriptQ", - "𝓇" : "\\scriptr", - "ℛ" : "\\scriptR", - "𝓈" : "\\scripts", - "𝒮" : "\\scriptS", - "𝓉" : "\\scriptt", - "𝒯" : "\\scriptT", - "𝓊" : "\\scriptu", - "𝒰" : "\\scriptU", - "𝓋" : "\\scriptv", - "𝒱" : "\\scriptV", - "𝓌" : "\\scriptw", - "𝒲" : "\\scriptW", - "𝓍" : "\\scriptx", - "𝒳" : "\\scriptX", - "𝓎" : "\\scripty", - "𝒴" : "\\scriptY", - "𝓏" : "\\scriptz", - "𝒵" : "\\scriptZ", + return { + start: oPos, + end: oEndPos + } + }; + /** + * Get content (CFraction, CDegree, CMatrix e.g. or text until it gets space) before given position + * @param {PositionIsCMathContent} oStartPos + * @returns {{start : PositionIsCMathContent, end: PositionIsCMathContent} | undefined} + */ + ProceedTokens.prototype.GetContentBlockBefore = function (oStartPos) + { + oStartPos = oStartPos.GetCopy(); + let isSubSup = oStartPos.GetType() === MathLiterals.subSup.id; + let isNary = oStartPos.GetType() === MathLiterals.of.id; + + let strSubSupType = isSubSup + ? oStartPos.GetText() + : undefined; + + if (oStartPos.position[0] === 0 && oStartPos.position[1] === 0) + { + return { + start: oStartPos, + end: oStartPos + } + } + + let oBracketPos = this.IsStepInBracket(oStartPos, true); + if (oBracketPos) + { + return { + start: oBracketPos, + end: oStartPos + } + } + + oStartPos.DecreasePosition(); + + let isParaPosUsed = false; + let nMathPos = oStartPos.GetMathPos(); + let nParaPos = oStartPos.GetPosition(); + + let nTempParaPos = null; + + for (let i = nMathPos; i >= 0; i--) + { + let oCurrentElement = this.oCMathContent.Content[i]; + + if (!oCurrentElement) + continue; + + if (oCurrentElement.Type === 49) + { + if (!isParaPosUsed && nParaPos >= oCurrentElement.Content.length) + continue; + + for (let j = nTempParaPos !== null ? nTempParaPos : nParaPos; j >= 0; j--) + { + if (null !== nTempParaPos) + nTempParaPos = null; + if (!isParaPosUsed) + isParaPosUsed = true; - "↘" : "\\searrow", - "⬍" : "\\smash", - "⌣" : "\\smile", - "♠" : "\\spadesuit", - "⊓" : "\\sqcap", - "⊔" : "\\sqcup", - "√" : "\\sqrt", - "∑" : "\\sum", - "↙" : "\\swarrow", + let oEndPos = new PositionIsCMathContent(i, j, undefined, oCurrentElement.Content); + let oPos = this.IsStepInBracket(oEndPos, true); - " " : "\\thicksp", - " " : "\\thinsp", - "̃" : "\\tilde", - "×" : "\\times", - "⊤" : "\\top", - "⃡" : "\\tvec", + if (oPos) + { + i = oPos.GetMathPos() + 1; + nTempParaPos = oPos.GetPosition(); - "̲" : "\\ubar", - "̳" : "\\Ubar", - "⏟" : "\\underbrace", - "⎵" : "\\underbracket", - "▁" : "\\underline", - "⏝" : "\\underparen", - "↑" : "\\uparrow", - "⇑" : "\\Uparrow", - "↕" : "\\updownarrow", - "⇕" : "\\Updownarrow", - "⊎" : "\\uplus", + if (i === 0 && j === 0) + { + return { + start: new PositionIsCMathContent(0,0, oEndPos.GetType(), this.oCMathContent.Content), + end: oStartPos + } + } - "│" : "\\vbar", - "⋮" : "\\vdots", - "⃗" : "\\vec", - "∨" : "\\vee", - "|" : "\\vert", - "⒩" : "\\Vmatrix", - "⇳" : "\\vphantom", - " " : "\\vthicksp", + break; + } + else if (this.IsOperator(oEndPos) || oEndPos.GetText() === " ") + { + oEndPos.IncreasePosition(); + return { + start: oEndPos, + end: oStartPos, + } + } + else if (oEndPos.GetType() === MathLiterals.of.id) + { + oEndPos.IncreasePosition() + return { + start: oEndPos, + end: oStartPos + } + } + else if (oEndPos.GetType() === MathLiterals.subSup.id && !isNary) // если _ или ^, то прерываемся + { + if (isSubSup) + { + if (strSubSupType !== oEndPos.GetText()) + { + if (oEndPos.GetMathPos() === 0 && oEndPos.GetPosition() === 0) + { + return { + start: oEndPos, + end: oStartPos, + } + } + continue; + } - "∧" : "\\wedge", + oEndPos.IncreasePosition() + return { + start: oEndPos, + end: oStartPos + } + } + else + { + isSubSup = true; + continue; + } + } + } + } + else + { + continue; + } + } - "‌" : "\\zwnj", - "​" : "\\zwsp", + return { + start: new PositionIsCMathContent(0, 0, 0, this.oCMathContent.Content), + end: oStartPos + } }; + /** + * Need to process current data as PCFunction with bracket after trigger. + * For example ■(1&2@3&4). + * + * @param {PositionIsCMathContent} oLast + * @return {boolean} + */ + ProceedTokens.prototype.IsPCFunctionWithContentAfter = function(oLast) + { + if (!oLast) + return false; - function CMathContentIterator(oCMathContent) + let intLastTokenType = oLast.GetType(); + + return MathLiterals.matrix.id === intLastTokenType; + }; + /** + * Processing PCFunction with bracket after trigger. + * For example ■(1&2@3&4). + * @param {PositionIsCMathContent} oLast + */ + ProceedTokens.prototype.PCFunctionProcessingWithContent = function(oLast) { - if (oCMathContent instanceof CMathContent) + let oConvertPos = this.GetContentBlockAfter(oLast); + + // если найдется другой тип триггерного элемента, то + // лучше выделить нахождение блока скобки до/после триггерного токена в отдельный метод + + if (oConvertPos) { - this._content = oCMathContent.Content; - this._paraRun = null; - this._nParaRun = 0; - this._index = oCMathContent.Content.length - 1; // индекс текущего элемента - this.counter = 0; // количество отданных элементов + let arrLastPos = oLast.position; + let arrBracketsPair = this.Brackets.BracketsPair; + + for (let i = 0; i < arrBracketsPair.length; i++) + { + let arrCurrentBracket = arrBracketsPair[i]; + let oStartPos = arrCurrentBracket[1]; + + oStartPos.DecreasePosition(); + + let arrPos = oStartPos.position; + + // если после матрицы есть скобка + if (arrPos[0] === arrLastPos[0] && arrPos[1] === arrLastPos[1]) + { + let oParamsCutContent = {oDelMark : oLast, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + GetConvertContent(0, oMathContent, this.oCMathContent); + this.SetCursorByConvertedData(this.oCMathContent); + } + } } - } - CMathContentIterator.prototype.Count = function () + }; + /** + * Is need to process current data as PCFunction type of math content. + * For example cos(1/2) or √(2&1xg2). + * + * @param {PositionIsCMathContent} oLast + * @return {boolean} + */ + ProceedTokens.prototype.IsPCFunction = function(oLast) { - this.counter++; + if (!oLast) + return false; + + let intLastTokenType = oLast.GetType(); + + return MathLiterals.box.id === intLastTokenType + || MathLiterals.nary.id === intLastTokenType + || MathLiterals.radical.id === intLastTokenType + || MathLiterals.rect.id === intLastTokenType + || MathLiterals.func.id === intLastTokenType + || MathLiterals.hbrack.id === intLastTokenType }; - CMathContentIterator.prototype.Next = function() + /** + * Processing PCFunction type of math content. + * For example cos(1/2) or √(2&1xg2). + * @param {PositionIsCMathContent} oLast + */ + ProceedTokens.prototype.PCFunctionProcessing = function(oLast) { - if (!this.IsHasContent()) + let oParamsCutContent = {oDelMark : oLast, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + GetConvertContent(0, oMathContent, this.oCMathContent); + + this.SetCursorByConvertedData(this.oCMathContent); + }; + /** + * Is need to process current data as PRFunction type of math content. + * For example: (1+2) ̂, 2 ̂x. + * + * @param {PositionIsCMathContent} oLast + * @return {boolean} + */ + ProceedTokens.prototype.IsPRFunction = function(oLast) + { + if (!oLast) return false; - if (this._nParaRun >= 0 && this._paraRun) + let intLastTokenType = oLast.GetType(); + + return MathLiterals.accent.id === intLastTokenType; + }; + /** + * Processing PRFunction type of math content. + * For example: (1+2) ̂, 2 ̂x. + * + * @param {PositionIsCMathContent} oLast + */ + ProceedTokens.prototype.PRFunctionProcessing = function(oLast) + { + let oConvertPos = this.GetContentBlockBefore(oLast); + + if (oConvertPos) { - return this.GetValue(); + let oStartPos = oConvertPos.start; + let oParamsCutContent = {oDelMark : oStartPos, isWrapFirstContent: true, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + GetConvertContent(0, oMathContent, this.oCMathContent); } else { - let oCurrentContent = this._content[this._index]; + let oParamsCutContent = {oDelMark : oLast, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); - if (!oCurrentContent instanceof ParaRun) + GetConvertContent(0, oMathContent, this.oCMathContent); + } + + this.SetCursorByConvertedData(this.oCMathContent); + }; + /** + * Is need to process current data as BIFunction type of math content. + * For example: 1/2, s_d. + * + * @param {PositionIsCMathContent} oLast + * @return {boolean} + */ + ProceedTokens.prototype.IsBIFunctionProcessing = function (oLast) + { + if (!oLast) + return false; + + let intLastTokenType = oLast.GetType(); + + return MathLiterals.subSup.id === intLastTokenType + || MathLiterals.divide.id === intLastTokenType + || MathLiterals.of.id === intLastTokenType + || MathLiterals.invisible.id === intLastTokenType + || MathLiterals.hbrack.id === intLastTokenType; + }; + ProceedTokens.prototype.SetCursorByConvertedData = function (oMathContent) + { + if (!oMathContent) + return; + + if (oMathContent.Content.length >= 1) + { + let oConvertedElement = (oMathContent.Content.length > 1) + ? oMathContent.Content[oMathContent.Content.length - 1] + : oMathContent.Content[0]; + + if (oConvertedElement instanceof CNary) { - // прерываем обработку здесь точно не слово для автокоррекции - return false; + let oNaryBase = oConvertedElement.getBase(); + if (oNaryBase.Is_Empty()) + { + oMathContent.Correct_Content(true); + oNaryBase.SelectThisElement(1); + oNaryBase.SelectAll(1); + return; + } } - else + else if (oConvertedElement instanceof CMathFunc) { - this._index--; - this._paraRun = oCurrentContent; - this._nParaRun = oCurrentContent.GetElementsCount() - 1; - return this.GetValue(); + let oFuncArg = oConvertedElement.getArgument(); + if (oFuncArg.Is_Empty()) + { + oMathContent.Correct_Content(true); + oFuncArg.SelectThisElement(1); + oFuncArg.SelectAll(1); + return; + } + } + else if (oConvertedElement instanceof CDegreeSubSup && oConvertedElement.Pr.type === DEGREE_PreSubSup) + { + let oPreScriptBase = oConvertedElement.getBase(); + if (oPreScriptBase.Is_Empty()) + { + oMathContent.Correct_Content(true); + oPreScriptBase.SelectThisElement(1); + oPreScriptBase.SelectAll(1); + return; + } } + + oMathContent.Correct_Content(true); + oMathContent.Correct_ContentPos(1); } + + oMathContent.Correct_Content(true); + oMathContent.Correct_ContentPos(1); }; - CMathContentIterator.prototype.IsHasContent = function () + /** + * Processing BIFunction type of math content. + * For example: 1/2, s_d. + * + * @param {PositionIsCMathContent} oLast + */ + ProceedTokens.prototype.BIFunctionProcessing = function(oLast) { - return this._index >= 0 || this._nParaRun >= 0; + let arrPreContent = this.GetContentBlockBefore(oLast); + + if (arrPreContent) + { + let oStartPos = arrPreContent.start; + + // del space before converted content + let oSpacePos = oStartPos.GetCopy(); + oSpacePos.DecreasePosition(); + if (oSpacePos.GetText() === " ") + oStartPos = oSpacePos; + + // processing for pre-script "_2^j x ", "_(2+1)^(x) x ", "_2^j (1+y) " + if (oStartPos.GetText() === "_" && oLast.GetText() === "^" || oStartPos.GetText() === "^" && oLast.GetText() === "_") + return this.ProceedPreScript(oLast, oStartPos); + + let oParamsCutContent = {oDelMark : oStartPos, isWrapFirstContent: true, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + // del space before converted content + if (oStartPos === oSpacePos) + { + let oFirstContent = oMathContent.GetFirstContent(); + let strText = oFirstContent.text; + if (strText[0] === " ") + oFirstContent.text = oFirstContent.text.substring(1); + } + + GetConvertContent(0, oMathContent, this.oCMathContent); + } + else + { + let oParamsCutContent = {oDelMark : oLast, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); + + GetConvertContent(0, oMathContent, this.oCMathContent); + } + + this.SetCursorByConvertedData(this.oCMathContent); }; - CMathContentIterator.prototype.GetValue = function() + ProceedTokens.prototype.ProceedPreScript = function (oLast, oStartPos) { - if (this._nParaRun >= 0) + let oLastTemp = oLast.GetCopy(); + oLastTemp.IncreasePosition(); // get last content of pre script + + let oBracketPos = this.IsStepInBracket(oLastTemp, false); // if bracket pos get opposite + if (oBracketPos) + oLastTemp = oBracketPos; + + if (oLastTemp.GetText() === ' ') + return false; + + oLastTemp.IncreasePosition(); // space before base content + if (oLastTemp.GetText() !== " ") + return false; + + oLastTemp.IncreasePosition(); // get base content + if (oLastTemp.GetText() === " ") // not space + return false; + + let oMathContentTemp = AscFormat.ExecuteNoHistory( + function (oRuleLast) + { + let oMathCopy = this.oCMathContent.Copy(); + let oParamsCutContent = {oDelMark : oRuleLast, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(oMathCopy, oParamsCutContent); + + GetConvertContent(0, oMathContent, oMathCopy); + oMathCopy.Correct_Content(true); + + return oMathCopy; + }, + this, + [oStartPos] + ); + + if (!this.CompareMathContent(oMathContentTemp)) { - this.Count(); - this._nParaRun--; - let oMathText = this._paraRun.GetElement(this._nParaRun + 1); + let oParamsCutContent = {oDelMark : oStartPos, isDelLastSpace: true}; + let oMathContent = CutContentFromEnd(this.oCMathContent, oParamsCutContent); - // если не текст просто прерываем обработку, здесь точно не слово для автокоррекции - if (!(oMathText instanceof CMathText)) - return false; + GetConvertContent(0, oMathContent, this.oCMathContent); + this.SetCursorByConvertedData(this.oCMathContent); + return true + } - return oMathText.GetCodePoint(); + return false + } + /** + * Deletes letters at the given position + * @param {CMathContent} oContent - Content that will proceed. + * @param {oParamsCutContent} oParamsCutContent - Setting of CutContentFromEnd. + * @param {PositionIsCMathContent} oParamsCutContent.oDelMark Deleting start position. + * @param {boolean} [oParamsCutContent.isCopy] If we don't want change original content, copy it. + * @param {boolean} [oParamsCutContent.isWrapFirstContent] Is need to wrap custom block (CFraction, CDelimiter, CDegree, CMatrix e.g.) with 〖〗 brackets. + * @param {int} [oParamsCutContent.nTypeOfTrigger] Type of trigger for autocorrection + * @param {boolean} [oParamsCutContent.isDelLastSpace] Is need delete last space + */ + function CutContentFromEnd(oContent, oParamsCutContent) + { + let oDelMark = oParamsCutContent.oDelMark; + let isCopy = oParamsCutContent.isCopy; + let isWrapFirstContent = oParamsCutContent.isWrapFirstContent; + let nTypeOfTrigger = oParamsCutContent.nTypeOfTrigger; + let isDelLastSpace = oParamsCutContent.isDelLastSpace; + + if (isCopy === true) + oContent = oContent.Copy(); + + let intMathContent = oDelMark.GetMathPos(); + let intRunContent = oDelMark.GetPosition(); + let oMathTextAndStyles = new MathTextAndStyles(false); + + for (let nPosCMathContent = intMathContent; nPosCMathContent < oContent.Content.length; nPosCMathContent++) + { + let oCurrentElement = oContent.Content[nPosCMathContent]; + + if (oCurrentElement.Type === 49) + { + if (nPosCMathContent === intMathContent) + { + for (let nRunPos = intRunContent; nRunPos < oCurrentElement.Content.length; nRunPos++) + { + let oEl = oCurrentElement.Content[nRunPos]; + oEl.GetTextOfElement(oMathTextAndStyles); + oCurrentElement.Remove_FromContent(nRunPos, 1, true); + nRunPos--; + + if (oCurrentElement.Content.length === 0) + { + oContent.Remove_FromContent(nPosCMathContent, 1); + nPosCMathContent--; + } + } + } + else + { + oCurrentElement.GetTextOfElement(oMathTextAndStyles); + oContent.Remove_FromContent(nPosCMathContent, 1); + nPosCMathContent--; + } + } + else + { + let oMath = oMathTextAndStyles.AddContainer(); + oCurrentElement.GetTextOfElement(oMath); + + // При автокоррекции контент лучше оборачивать в спец. скобки, + // что бы не было поведения по типу CFraction 1/2"_x" -> CFraction 1/(2_x), + // а должно быть 1/2"_x" -> СDegree (1/2)_x + if (!(oCurrentElement instanceof CDelimiter)) + { + let oFirstPos = oMath.Positions[0]; + let oLastPos = oMath.Positions[oMath.Positions.length - 1]; + oMath.AddBefore(oFirstPos, new MathText("〖")); + oMath.AddAfter(oLastPos, new MathText("〗")); + } + + oContent.Remove_FromContent(nPosCMathContent, 1); + nPosCMathContent--; + } } - return false; + + if (isDelLastSpace) + oMathTextAndStyles.DelLastSpace(); + return oMathTextAndStyles; } - function CorrectWordOnCursor(oCMathContent, IsLaTeX, isSkipFirstLetter) + /** + * Paste text at the given position + * @param {CMathContent} oContent - Content that will proceed. + * @param {PositionIsCMathContent} oPastePos - Paste position. + * @param {string} strText - Text to insert. + */ + function AddTextByPos(oContent, oPastePos, strText) { - let isConvert = false; - let isSkipFirst = isSkipFirstLetter === true; - let strLast = oCMathContent.GetLastTextElement(); - let isLastOperator = oCMathContent.IsLastElement(AscMath.MathLiterals.operators) || strLast === "(" || strLast === ")"; - let oContent= new CMathContentIterator(oCMathContent); - let oLastOperator; + let intMathContent = oPastePos.GetMathPos(); + let intRunContent = oPastePos.GetPosition(); + let CurrentContent = oContent.Content[intMathContent]; - if (strLast === " ") - isSkipFirst = true; + for (let nCharPos = 0, nTextLen = strText.length; nCharPos < nTextLen; nCharPos++) + { + let oText = new CMathText(false); + oText.addTxt(strText[nCharPos]); - let str = ""; + CurrentContent.private_AddItemToRun(intRunContent, oText); + intRunContent++; + } + } + function CheckFunctionOnCursor(oContent) + { + let oContentIterator = new CMathContentIterator(oContent); + let strWord = ""; + let oTempPos; - while (oContent.IsHasContent()) + while (oContentIterator.IsHasContent()) { - let nElement = oContent.Next(); + let strCurrentContent = oContentIterator.Next(true); - if (nElement === false) + if (strCurrentContent === "_" || strCurrentContent === "^") + continue; + else if (strCurrentContent === false) break; - let strElement = String.fromCharCode(nElement); + strWord = strCurrentContent + strWord; - if (oContent.counter === 1 && isSkipFirst) + if (oMathAutoCorrection.arrFunctionsNames[strWord.trim()] === null) { - if (isLastOperator) + let nTempRunCounter = oContentIterator._nParaRun; + let nTempRootIndex = oContentIterator._index; + let oLast = oContentIterator.NextCopy(); + + if (!oLast || GetTokenType(oLast, TokenSearch_Everything) !== 0) { - oLastOperator = strElement; + oTempPos = new PositionIsCMathContent( + nTempRootIndex + 1, + nTempRunCounter + 1, + undefined, + oContent + ); } - continue; } - - let isContinue = - (nElement >= 97 && nElement <= 122) - || (nElement >= 65 && nElement <= 90) - || (nElement >= 48 && nElement <= 57) - || nElement === 92 - || nElement === 47; // a-zA-z && 0-9 + } + + if (oTempPos) + return oTempPos; + } + + function ConvertBracketContent(oTokens, oCMathContent) + { + return ConvertBracket(oTokens, oCMathContent, true); + } + function ConvertBracket(oTokens, oCMathContent, isOnlyContent) + { + let arrBrackets = oTokens.Pairs; + + if (arrBrackets.length === 0 || oTokens.NoPair.length > 0) + return false; + + let oLastBracketBlock = arrBrackets[0]; + let oPos = oLastBracketBlock[1]; + + // we don't need to convert the parenthesis block itself, only the content inside + if (isOnlyContent && oPos.type !== MathLiterals.specialBrac.id) + oPos.IncreasePosition(); + + let strConvertContent = CutContentFromEnd(oCMathContent, {oDelMark : oPos}); + strConvertContent.DelLastSpace(); + + GetConvertContent(0, strConvertContent, oCMathContent); + return true; + } + function IsInBracket(oBracketPositions, oTokenPositions) + { + if (!oBracketPositions || !oTokenPositions) + return; + + oTokenPositions.IsBetween(oBracketPositions[1], oBracketPositions[0]); + } + + /** + * Token position and it's type + * @param {number} MathPos - Position in CMathContent + * @param {number }RunPos - Position in ParaRun + * @param {number }[type] - ID of type (MathLiterals[].id) + * @param {ParaRun.Content} [ref] - ContentOfParaRun + * @constructor + */ + function PositionIsCMathContent(MathPos, RunPos, type, ref) + { + this.position = [ MathPos, RunPos ]; + this.ref = ref; + + if (this.ref !== undefined && this.ref !== null && this.ref.length - 1 < RunPos) + { + this.position[1] = this.ref.length - 1; + } - if (!isContinue) + /** + * Get position of token in CMathContent + * @returns {number} + */ + this.GetMathPos = function () + { + return this.position[0] + }; + /** + * Get position of token in ParaRun + * @returns {number} + */ + this.GetPosition = function () + { + return this.position[1] + }; + /** + * Get MathLiterals type of token + * @returns {number} + */ + this.GetType = function () + { + return this.type + }; + /** + * Get position of token in CMathContent + * @returns {boolean} + */ + this.IsEqualPosition = function (oPos) + { + return oPos.GetMathPos() === this.GetMathPos() + && oPos.GetPosition() === this.GetPosition(); + }; + /** + * Check is pos is between (not include oStartPos and oEndPos) two another positions + * @returns {boolean} + */ + this.IsBetween = function (oStartPos, oEndPos) + { + if (!oStartPos || !oEndPos) return false; - str = strElement + str; + let MathPos = this.GetMathPos(); + let ParaPos = this.GetPosition(); - if (nElement === 92 || nElement === 47) - break; - } + let StartMathPos = oStartPos.GetMathPos(); + let StartParaPos = oStartPos.GetPosition(); - let nSlash = oContent.Next(); - if (nSlash === 47) + if (MathPos >= StartMathPos && ParaPos > StartParaPos) + { + let EndMathPos = oEndPos.GetMathPos(); + let EndParaPos = oEndPos.GetPosition(); + + if (MathPos < EndMathPos || (MathPos === EndMathPos && ParaPos < EndParaPos)) + return true + } + + return false; + }; + /** + * Get text of token. Needs for debug + * @returns {string} + */ + this.GetText = function() { - str = "/" + str; - } + if (!this.ref) + return ""; - let strCorrection = ConvertWord(str, IsLaTeX); - if (strCorrection) + let oCMathText = this.ref[this.GetPosition()]; + if (!oCMathText) + return ""; + if (!oCMathText.value) + return ""; + + let strValue = String.fromCharCode(oCMathText.value); + return strValue; + }; + /** + * Return copy of given PositionIsCMathContent with position, type and ref + * @returns {PositionIsCMathContent} + * @constructor + */ + this.GetCopy = function () { - if (MathLiterals.accent.IsInUnicode(strCorrection)) - strCorrection = String.fromCharCode(160) + strCorrection; //add nbsp before accent, like word + return new PositionIsCMathContent( + this.GetMathPos(), + this.GetPosition(), + this.GetType(), + this.ref + ); + }; + /** + * Increase ParaRun position by one, of need change CMathContent position + * @return {boolean} + */ + this.IncreasePosition = function() + { + if (!this.ref) + return false; - let oRun = RemoveCountFormMathContent(oCMathContent, str.length + 1, isLastOperator); - let nPos = isLastOperator ? oRun.Content.length - 1 : oRun.Content.length; + if (!this.ref[0].Parent) + { + this.position[1]++; + return true; + } + let ParaRun = this.ref[0].Parent; + let CMathContent = ParaRun.Parent; - if (MathLiterals.accent.IsInUnicode(strCorrection)) - strCorrection = String.fromCharCode(160) + strCorrection; //add nbsp before accent, like word + if (this.position[1] + 1 > this.ref.length - 1) + { + if (CMathContent.Content.length - 1 < this.position[0] + 1) + return false; - for (let i = 0; i < strCorrection.length; i++) + this.position[0]++; + this.position[1] = 0 + + this.ref = CMathContent.Content[this.position[0]].Content; + } + else { - let nCharValue = strCorrection[i].charCodeAt(0); - let oMathText = new CMathText(); - oMathText.add(nCharValue); - oRun.AddToContent(nPos++, oMathText); + this.position[1]++; } - isConvert = true; - } - oCMathContent.MoveCursorToEndPos(); - return isConvert; - } - function RemoveCountFormMathContent (oContent, nCount, isSkipFirst) - { - for (let i = oContent.Content.length - 1; i >= 0; i--) + return true; + }; + /** + * Decrease ParaRun position by one, of need change CMathContent position + * @return {boolean} + * @constructor + */ + this.DecreasePosition = function() { - let isSkippedFirst = false; - let oCurrentContent = oContent.Content[i]; - for (let j = oCurrentContent.Content.length - 1; j >= 0; j--) - { - if (isSkipFirst === true) - { - isSkipFirst = false; - isSkippedFirst = true; - continue; - } - oCurrentContent.RemoveFromContent(j, 1, true); - nCount--; + if (!this.ref || this.ref.length === 0) + return false; - if (nCount === 0) - return oCurrentContent; + if (this.position[0] === 0 && this.position[1] === 0) + return false; + + if (!this.ref[0].Parent) + { + this.position[1]--; + this.type = GetTokenType(this.GetText(), TokenSearch_Everything) + return true; } - } - } - function CorrectSpecialWordOnCursor(oCMathContent, IsLaTeX) - { - let oContent= new CMathContentIterator(oCMathContent); + let ParaRun = this.ref[0].Parent; + let CMathContent = ParaRun.Parent; + let arrContent = CMathContent.Content; - if (oContent.IsHasContent()) - { - let nSecond = oContent.Next(); - let nFirst = oContent.Next(); - if (nSecond && nFirst) + if (this.position[1] === 0) { - let strSecondLetter = String.fromCharCode(nSecond); - let strFirstLetter = String.fromCharCode(nFirst); + if (this.position[0] - 1 >= 0) + this.position[0]--; + + let nPrev = this.position[1]; // decrease pos in RunPos - if (strFirstLetter !== "\\" && strSecondLetter !== "\\" && CorrectSpecial(oCMathContent, strFirstLetter, strSecondLetter)) + if (arrContent[this.position[0]].Type === para_Math_Run) { - oContent._paraRun.MoveCursorToEndPos(); + this.position[1] = arrContent[this.position[0]].Content.length - 1; + this.ref = arrContent[this.position[0]].Content; + + if (nPrev === this.position[1]) + this.position[1] = arrContent[this.position[0] + 1].Content.length - 1; + + this.type = GetTokenType(this.GetText(), TokenSearch_Everything); return true; } + else + return false } + + if (this.position[1] - 1 >= 0) + this.position[1]--; + + this.type = GetTokenType(this.GetText(), TokenSearch_Everything) + return true; + }; + this.IsRef = function () + { + return this.ref && this.ref.length > 0 } - } - function ConvertWord(str, IsLaTeX) - { - if (!IsNotConvertedLaTeXWords(str) || !IsLaTeX) + this.IsSetPosition = function () { - return AutoCorrection[str]; + return this.position[0] !== undefined && this.position[1] !== undefined } + + if (this.IsRef() && this.IsSetPosition() && type === undefined) + this.type = GetTokenType(this.GetText(), TokenSearch_Everything); + else + this.type = type; } - function IsNotConvertedLaTeXWords(str) + function ParaRunIterator(ParaRun) { - return arrDoNotConvertWordsForLaTeX.includes(str); + this.Content = ParaRun.Content; + this.Cursor = ParaRun.Content.length - 1; } - - function CorrectAllWords (oCMathContent, isLaTeX) + ParaRunIterator.prototype.GetNext = function() { - let isConvert = false; - - if (oCMathContent.Type === 49) - { - for (let nCount = 0; nCount < oCMathContent.Content.length; nCount++) - { - if (oCMathContent.Content[nCount].value === 92) - { - let str = oCMathContent.Content[nCount].GetTextOfElement(); - let intStart = nCount; - let intEnd = 0; - - for (let i = nCount + 1; i < oCMathContent.Content.length; i++) { + if (!this.IsHasContent()) + return false; - let oContent = oCMathContent.Content[i]; - let intCode = oContent.value; - - if (intCode >= 97 && intCode <= 122 || intCode >= 65 && intCode <= 90) { - intEnd = i; - str += oContent.GetTextOfElement(); - } - else - { - break; - } + const oContent = this.Content[this.Cursor]; + this.Cursor--; - nCount++; - } + return String.fromCharCode(oContent.value); + }; + ParaRunIterator.prototype.IsHasContent = function() + { + return this.Cursor >= 0; + }; - if (intEnd > intStart) { + /** + * Return token MathLiteral class + * @param {string} strToken - Token to proceed + * @param {array} arrTypes - Classes for search + * @returns {number|false} - ID of class in MathLiterals or false + */ + function GetTokenType(strToken, arrTypes) + { + if (strToken === "" || undefined === strToken) + return false; - let strCorrection = ConvertWord(str, isLaTeX); - if (strCorrection) { - nCount -= (intEnd - intStart); - oCMathContent.RemoveFromContent(intStart, intEnd - intStart + 1, true); - oCMathContent.AddText(strCorrection, intStart); - isConvert = true; - } - } - } - } - } - else + for (let nCount = 0; nCount < arrTypes.length; nCount++) { - for (let nCount = 0; nCount < oCMathContent.Content.length; nCount++) { - isConvert = CorrectAllWords(oCMathContent.Content[nCount], isLaTeX) || isConvert; - } + let oCurrentType = arrTypes[nCount]; + + + if (oCurrentType.SearchU(strToken)) + return oCurrentType.id; } - - return isConvert; + + return false; } - function CorrectAllSpecialWords(oCMathContent, isLaTeX) + function IsFunctionNameToken(arrContent, oCMathContent) { - let isConvert = false; + let oPos = []; + arrContent = arrContent.slice().reverse(); + let oNames = oMathAutoCorrection.arrFunctionsNames; + let arrCurrent = []; + let str = ""; - if (oCMathContent.Type === 49) + for (let nPos = 0; nPos < arrContent.length; nPos++) { - for (let nCount = oCMathContent.Content.length - 1; nCount >= 1; nCount--) + let oCurrentEl = arrContent[nPos]; + arrCurrent.push(oCurrentEl[0]); + + str = arrCurrent.slice().reverse().join(""); + if (oNames[str] === null) { - let str = oCMathContent.Content[nCount].GetTextOfElement(); - let strPrev = oCMathContent.Content[nCount - 1].GetTextOfElement(); - if (CorrectSpecial(oCMathContent, strPrev, str)) - nCount--; + oPos[0] = new PositionIsCMathContent( + oCurrentEl[1], + oCurrentEl[2], + MathLiterals.func.id, + oCMathContent + ); + oPos[1] = str; } } - else + + if (oPos.length !== 0) { - for (let nCount = 0; nCount < oCMathContent.Content.length; nCount++) { - isConvert = CorrectAllSpecialWords(oCMathContent.Content[nCount], isLaTeX) || isConvert; - } + return oPos; } - return isConvert; + return false; } - function CorrectSpecial(oCMathContent, strPrev, strNext) + function IsLastFunc(oCMathContent) { - for (let i = 0; i < g_DefaultAutoCorrectMathSymbolsList.length; i++) + let arr = []; + + for (let nCount = oCMathContent.Content.length - 1; nCount >= 0; nCount--) { - let current = g_DefaultAutoCorrectMathSymbolsList[i]; - let strToken = strPrev + strNext; - if (current[0] === strToken) - { - let data = current[1], - str = ""; + let oCMathElement = oCMathContent.Content[nCount]; - if (Array.isArray(data)) + if (oCMathElement.Type === 49 && oCMathElement.Content.length > 0) + { + for (let nParaCount = oCMathElement.Content.length - 1; nParaCount >= 0; nParaCount--) { - for (let count = 0; i < data.length; i++) + let oCurrentTextElement = oCMathElement.Content[nParaCount].value; + let strContent = String.fromCharCode(oCurrentTextElement); + let intType = GetTokenType(strContent, [MathLiterals.char]); + arr.unshift([strContent, nCount, nParaCount]); + + let oFunction = IsFunctionNameToken(arr, oCMathElement.Content); + let oFunc = oFunction[0]; + let strFunc = oFunction[1]; + + if (oFunc) { - data[count] = String.fromCharCode(data[count]); + if (strFunc.length === arr.length) + return arr[0]; + } + else if (intType !== MathLiterals.char.id) + { + return false; } - str = data.join(""); - } - else { - str = String.fromCharCode(data); } + } + } + } + function GetInfo(oCMathContent, arrTypesForSearch) + { + let arrMathPositions = []; - if (str) + for (let nCount = 0; nCount < oCMathContent.Content.length; nCount++) + { + let oCMathElement = oCMathContent.Content[nCount]; + + if (oCMathElement.Type === 49 && oCMathElement.Content.length > 0) + { + for (let nParaCount = 0; nParaCount < oCMathElement.Content.length; nParaCount++) { - let nCounter = 0; - for (let i = oCMathContent.Content.length - 1; i >= 0 && nCounter !== strToken.length; i--) - { - let oCurrentElement = oCMathContent.Content[i]; - if (!oCurrentElement || !oCurrentElement.Content) - return false; + let oCurrentTextElement = oCMathElement.Content[nParaCount].value; + let strContent = String.fromCharCode(oCurrentTextElement); + let intType = GetTokenType(strContent, arrTypesForSearch); - let oCurrentElementCounter = oCurrentElement.Content.length; + if (false !== intType) + { + let oNewCMathPos = new PositionIsCMathContent( + nCount, + nParaCount, + intType, + oCMathElement.Content + ); - if (oCurrentElementCounter > strToken.length) - { - oCurrentElement.RemoveFromContent(oCurrentElementCounter - strToken.length, strToken.length); - } - else - { - nCounter += oCurrentElementCounter; - oCMathContent.RemoveFromContent(i, 1); - } + arrMathPositions.push(oNewCMathPos); } - oCMathContent.Add_TextOnPos(oCMathContent.Content.length, str); - return true; } } } + return arrMathPositions } - function IsStartAutoCorrection(nInputType, intCode) + + /** + * Get information about specific tokens types determined by arrTypesForSearch + * @param {CMathContent} oCMathContent - CMathContent to be searched + * @param {array} arrTypesForSearch - Array with objects from MathLiterals (MathLiterals.operator, MathLiterals.space, e.g.) + * @return {array} + */ + function GetInfoAboutCMathContent(oCMathContent, arrTypesForSearch) { - if (nInputType === 0) // Unicode - { - return !( - (intCode >= 97 && intCode <= 122) || //a-zA-Z - (intCode >= 65 && intCode <= 90) || //a-zA-Z - (intCode >= 48 && intCode <= 57) || // 0-9 - intCode === 92 || // "\\" - intCode === 95 || // _ - intCode === 94 || // ^ - MathLiterals.lBrackets.IsIncludes(String.fromCodePoint(intCode)) || - MathLiterals.rBrackets.IsIncludes(String.fromCodePoint(intCode)) || - intCode === 40 || // ( - intCode === 41 || // ) - intCode === 47 || // / - intCode === 46 || // . - intCode === 44 || // , - intCode > 65533 - ) + const arrInfo = []; + const oContent = oCMathContent.Content; + for (let nCount = 0; nCount < oContent.length; nCount++) + { + if (oContent[nCount].Type === 49 && oContent[nCount].Content.length > 0) + { + arrInfo[nCount] = GetInfoFromParaRun(nCount, oContent[nCount], arrTypesForSearch); + } } - else if (nInputType === 1) //LaTeX - { - return !( - (intCode >= 97 && intCode <= 122) || //a-zA-Z - (intCode >= 65 && intCode <= 90) || // a-zA-Z - (intCode >= 48 && intCode <= 57) || // 0-9 - intCode === 92|| // "\\" - intCode === 123 || // { - intCode === 125 || // } - MathLiterals.lBrackets.IsIncludes(String.fromCodePoint(intCode)) || - MathLiterals.rBrackets.IsIncludes(String.fromCodePoint(intCode)) || - intCode === 95 || // _ - intCode === 94 || // ^ - intCode === 91 || // [ - intCode === 93 || // ] - intCode === 46 || // . - intCode === 44 // , - ) - } + + return arrInfo; } - function GetConvertContent(nInputType, strConversionData, oContext) + /** + * Get information about specific tokens types determined by arrTypesForSearch + * @param {number} nPosInCMathContent - Position in CMathContent + * @param {ParaRun} oRun - ParaRun to be searched + * @param {array} arrTypesForSearch - Array with objects from MathLiterals (MathLiterals.operator, MathLiterals.space, e.g.) + * @return {array} + */ + function GetInfoFromParaRun(nPosInCMathContent, oRun, arrTypesForSearch) { - oContext.CurPos++; - nInputType === Asc.c_oAscMathInputType.Unicode - ? AscMath.CUnicodeConverter(strConversionData, oContext) - : AscMath.ConvertLaTeXToTokensList(strConversionData, oContext); - } + const arrBracketsInfo = []; + const arrContent = []; + const oContent = oRun.Content; - let isGetLaTeX = true; + for (let nCounter = 0; nCounter < oContent.length; nCounter++) + { + let CurrentElement = oContent[nCounter].value; + let strContent = String.fromCharCode(CurrentElement); + let intType = null; - function SetIsLaTeXGetParaRun(isConvert) - { - isGetLaTeX = isConvert; + intType = GetTokenType(strContent, arrTypesForSearch); + arrContent.push(strContent); + + let oFunc = IsFunctionNameToken(arrContent, nPosInCMathContent, nCounter); + let nCopyCounter = nCounter; + + if (oFunc) + { + intType = MathLiterals.func.id; + nCopyCounter = nCounter - (arrContent.length - 1); + } + + if (false !== intType) + { + let oNewCMathPos = new PositionIsCMathContent(nPosInCMathContent, nCopyCounter, intType, oRun.Content); + arrBracketsInfo.push(oNewCMathPos); + } + }; + + return arrBracketsInfo; } - function GetIsLaTeXGetParaRun() + let IsAllowAutoConvertion = true; + function SetAutoConvertation(isConvert) { - return isGetLaTeX; + IsAllowAutoConvertion = isConvert; } - - function GetFractionType(strToken) + function GetAutoConvertation() { - switch (strToken) - { - case "/" : return BAR_FRACTION - case "⁄" : return SKEWED_FRACTION - case "⊘" : return BAR_FRACTION - case "∕" : return LINEAR_FRACTION - case "¦" : return NO_BAR_FRACTION - case "⒞" : return NO_BAR_FRACTION - - case "\\binom" : return NO_BAR_FRACTION - case "\\sfrac" : return SKEWED_FRACTION - case "\\frac" : return BAR_FRACTION - case "\\cfrac" : return BAR_FRACTION - } + return IsAllowAutoConvertion; } - //--------------------------------------------------------export---------------------------------------------------- window["AscMath"] = window["AscMath"] || {}; window["AscMath"].oNamesOfLiterals = oNamesOfLiterals; @@ -3921,25 +7730,34 @@ window["AscMath"].UnicodeSpecialScript = UnicodeSpecialScript; window["AscMath"].LimitFunctions = limitFunctions; window["AscMath"].functionNames = functionNames; - window["AscMath"].GetTypeFont = GetTypeFont; window["AscMath"].GetMathFontChar = GetMathFontChar; window["AscMath"].AutoCorrection = AutoCorrection; window["AscMath"].CorrectWordOnCursor = CorrectWordOnCursor; window["AscMath"].CorrectAllWords = CorrectAllWords; window["AscMath"].CorrectAllSpecialWords = CorrectAllSpecialWords; window["AscMath"].CorrectSpecialWordOnCursor = CorrectSpecialWordOnCursor; - window["AscMath"].IsStartAutoCorrection = IsStartAutoCorrection; window["AscMath"].GetConvertContent = GetConvertContent; window["AscMath"].MathLiterals = MathLiterals; window["AscMath"].SymbolsToLaTeX = SymbolsToLaTeX; window["AscMath"].UpdateAutoCorrection = UpdateAutoCorrection; - window["AscMath"].UpdateFuncCorrection = UpdateFuncCorrection; window["AscMath"].GetLaTeXFromValue = GetLaTeXFromValue; window["AscMath"].SetIsLaTeXGetParaRun = SetIsLaTeXGetParaRun; window["AscMath"].GetIsLaTeXGetParaRun = GetIsLaTeXGetParaRun; - window["AscMath"].GetHBracket = GetHBracket; window["AscMath"].GetFractionType = GetFractionType; + window["AscMath"].UpdateFuncCorrection = UpdateFuncCorrection; + window["AscMath"].MathStructures = MathStructures; + window["AscMath"].MathText = MathText; + window["AscMath"].MathTextAdditionalData = MathTextAdditionalData; + window["AscMath"].ConvertMathTextToText = ConvertMathTextToText; + window["AscMath"].GetOnlyText = GetOnlyText; + window["AscMath"].ContentWithStylesIterator = ContentWithStylesIterator; + window["AscMath"].MathTextAndStyles = MathTextAndStyles; + window["AscMath"].GetAutoConvertation = GetAutoConvertation; + window["AscMath"].SetAutoConvertation = SetAutoConvertation; + window["AscMath"].StartAutoCorrectionMath = StartAutoCorrectionMath; window["AscMath"].GetLaTeXFont = GetLaTeXFont; window["AscMath"].GetNamesTypeFontLaTeX = GetNamesTypeFontLaTeX; - + window["AscMath"].oStandardFont = oStandardFont; + window["AscMath"].GetTypeFont = GetTypeFont; + window["AscMath"].ConvertWord = ConvertWord; })(window); diff --git a/word/Math/UnicodeParser.js b/word/Math/UnicodeParser.js index 5f38427658..44e5ed4777 100644 --- a/word/Math/UnicodeParser.js +++ b/word/Math/UnicodeParser.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -32,27 +32,30 @@ "use strict"; -(function (window) { - const num = 1; //needs for debug, default value: 0 - const MathLiteral = AscMath.MathLiterals; - - const oLiteralNames = AscMath.oNamesOfLiterals; - const UnicodeSpecialScript = AscMath.UnicodeSpecialScript; - const ConvertTokens = AscMath.ConvertTokens; - const Tokenizer = AscMath.Tokenizer; - const FunctionNames = AscMath.functionNames; - const LimitNames = AscMath.LimitFunctions; +(function (window) +{ + const Literals = AscMath.MathLiterals; + const Struc = AscMath.MathStructures; + const oLiteralNames = AscMath.oNamesOfLiterals; + const UnicodeSpecialScript = AscMath.UnicodeSpecialScript; + const ConvertTokens = AscMath.ConvertTokens; + const Tokenizer = AscMath.Tokenizer; + const FunctionNames = AscMath.functionNames; + const LimitNames = AscMath.LimitFunctions; + const LRBracketType = { open: 1, close: 0}; function CUnicodeParser() { - this.oTokenizer = new Tokenizer(false); - this.isOneSubSup = false; - this.isTextLiteral = false; - this.arrSavedTokens = []; - this.isSaveTokens = false; - this.isSpaceExit = false; - - //need for group like "|1+2|" - this.strBreakSymbol = []; + this.oTokenizer = new Tokenizer(false); + this.isOneSubSup = false; + this.isTextLiteral = false; + this.arrSavedTokens = []; + this.isSaveTokens = false; + this.isSpaceExit = false; + + this.prevLookahead = null; + this.bracketStack = []; + this.barStack = []; + this.nBarCount = 0; } CUnicodeParser.prototype.GetSpaceExitFunction = function (oFunc, oArg) { @@ -64,17 +67,19 @@ } CUnicodeParser.prototype.IsSpaceExit = function () { - if (this.oLookahead.class !== oLiteralNames.spaceLiteral[0] || !this.isSpaceExit) - return true; + // if (this.oLookahead.class !== Literals.space.id || !this.isSpaceExit) + // return true; - let isSpace = (this.isSpaceExit && this.oLookahead.class === oLiteralNames.spaceLiteral[0]); + let isSpace = this.isSpaceExit + && (this.oLookahead.class === Literals.space.id || this.oLookahead.class === Literals.invisible.id); return !isSpace; } CUnicodeParser.prototype.Parse = function (string) { this.oTokenizer.Init(string); - this.oLookahead = this.oTokenizer.GetNextToken(); + this.prevLookahead = null; + this.oLookahead = this.oTokenizer.GetNextToken(); return this.Program(); }; CUnicodeParser.prototype.Program = function () @@ -92,113 +97,133 @@ }; CUnicodeParser.prototype.WriteDataAsCharLiteral = function(arrExp) { - if (arrExp.length === 1 && arrExp[arrExp.length - 1] !== undefined && arrExp[arrExp.length - 1].type === oLiteralNames.charLiteral[num]) - { - arrExp[arrExp.length - 1].value += this.EatToken(this.oLookahead.class).data; - } - else - { - arrExp.push({ type: oLiteralNames.charLiteral[num], value: this.EatToken(this.oLookahead.class).data}); - } - } + let newData = { + type: Literals.char.id, + value: this.oLookahead.data, + style: this.oLookahead.style + }; + + arrExp.push(newData); + this.EatToken(this.oLookahead.class); + }; CUnicodeParser.prototype.GetSpaceLiteral = function () { - const oSpaceLiteral = this.EatToken(oLiteralNames.spaceLiteral[0]); + const oSpaceLiteral = this.EatToken(Literals.space.id); return { - type: oLiteralNames.spaceLiteral[num], + type: Struc.space, value: oSpaceLiteral.data, + style: oSpaceLiteral.style, }; }; + CUnicodeParser.prototype.IsSpaceLiteral = function () + { + return this.oLookahead.class === Literals.space.id; + }; CUnicodeParser.prototype.GetOpCloseLiteral = function () { let oCloseLiteral; - if (this.oLookahead.class === "┤") + if (this.oLookahead.data === "┤") //return this.EatToken(this.oLookahead.class).data this.EatToken(this.oLookahead.class); - if (this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0]) { - oCloseLiteral = this.EatToken(oLiteralNames.opOpenCloseBracket[0]); + if (this.oLookahead.class === Literals.lrBrackets.id) { + oCloseLiteral = this.EatToken(Literals.lrBrackets.id); return oCloseLiteral.data; } - oCloseLiteral = this.EatToken(oLiteralNames.opCloseBracket[0]); + + oCloseLiteral = this.EatToken(Literals.rBrackets.id); return oCloseLiteral.data; }; - CUnicodeParser.prototype.GetOpCloserLiteral = function () - { - switch (this.oLookahead.class) { - case "\\close": - return { - type: oLiteralNames.opCloseBracket[num], - value: this.EatToken("\\close").data, - }; - case "┤": - return { - type: oLiteralNames.opCloseBracket[num], - value: this.EatToken("┤").data, - }; - case oLiteralNames.opCloseBracket[0]: - return this.GetOpCloseLiteral(); - case oLiteralNames.opOpenCloseBracket[0]: - return this.GetOpCloseLiteral(); - } - }; + // CUnicodeParser.prototype.GetOpCloserLiteral = function () + // { + // switch (this.oLookahead.class) { + // case "\\close": + // return { + // type: oLiteralNames.opCloseBracket[num], + // value: this.EatToken("\\close").data, + // }; + // case "┤": + // return { + // type: oLiteralNames.opCloseBracket[num], + // value: this.EatToken("┤").data, + // }; + // case Literals.rBrackets.id: + // return this.GetOpCloseLiteral(); + // case Literals.lrBrackets.id: + // return this.GetOpCloseLiteral(); + // } + // }; CUnicodeParser.prototype.IsOpNaryLiteral = function () { - return this.oLookahead.class === oLiteralNames.opNaryLiteral[0]; + return this.oLookahead.class === Literals.nary.id; }; CUnicodeParser.prototype.GetOpNaryLiteral = function () { let oContent; - const oOpNaryLiteral = this.EatToken(oLiteralNames.opNaryLiteral[0]); + let oNaryPr = this.oLookahead.style; + let oOfStyle; + let strNaryLiteral = this.EatToken(Literals.nary.id).data; + + if (this.oLookahead.class === Literals.of.id) + { + oOfStyle = this.oLookahead.style; + this.EatToken( Literals.of.id); - if (this.oLookahead.class === "▒") { - this.EatToken("▒"); - oContent = this.GetElementLiteral() + if (this.oLookahead.data === "〖" ) + oContent = this.GetExpBracketLiteral(); + else + oContent = this.GetExpLiteral(); - if (oContent.type === oLiteralNames.bracketBlockLiteral[num] && oContent.left === "(" && oContent.right === ")") + if (oContent.type === Struc.bracket_block && oContent.left === "(" && oContent.right === ")") { oContent = oContent.value; } } - + // else if (this.oLookahead.class !== Literals.subSup.id) + // { + // oContent = this.GetElementLiteral() + // } return { - type: oLiteralNames.opNaryLiteral[num], - value: oOpNaryLiteral.data, + type: Struc.nary, + value: strNaryLiteral, third: oContent, + thirdStyle: oOfStyle, + style: oNaryPr, } }; CUnicodeParser.prototype.GetOpOpenLiteral = function () { let oOpLiteral; - if (this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0]) { - oOpLiteral = this.EatToken(oLiteralNames.opOpenCloseBracket[0]); + if (this.oLookahead.class === Literals.lrBrackets.id) { + oOpLiteral = this.EatToken(Literals.lrBrackets.id); return oOpLiteral.data; } - oOpLiteral = this.EatToken(oLiteralNames.opOpenBracket[0]); + oOpLiteral = this.EatToken(Literals.lBrackets.id); return oOpLiteral.data; }; CUnicodeParser.prototype.IsOpOpenLiteral = function () { - return this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0] || - this.oLookahead.class === oLiteralNames.opOpenBracket[0]; - } + return this.oLookahead.class === Literals.lrBrackets.id || + this.oLookahead.class === Literals.lBrackets.id; + }; CUnicodeParser.prototype.IsOpOpenerLiteral = function () { - return this.oLookahead.class === oLiteralNames.opOpenBracket[0]; + return this.oLookahead.class === Literals.lBrackets.id; }; CUnicodeParser.prototype.GetDigitsLiteral = function () { - const arrNASCIIList = [this.GetASCIILiteral()]; - while (this.oLookahead.class === "nASCII") { - arrNASCIIList.push(this.GetASCIILiteral()); - } - return this.GetContentOfLiteral(arrNASCIIList); + return this.ReadTokensWhileEnd(Literals.char, Struc.char, false) + // const arrNASCIIList = [this.GetASCIILiteral()]; + // while (this.oLookahead.class === "nASCII") { + // arrNASCIIList.push(this.GetASCIILiteral()); + // } + // return this.GetContentOfLiteral(arrNASCIIList); }; CUnicodeParser.prototype.IsDigitsLiteral = function () { - return this.oLookahead.class === oLiteralNames.numberLiteral[0]; + return this.oLookahead.class === Literals.number.id; }; CUnicodeParser.prototype.GetNumberLiteral = function () { @@ -210,12 +235,19 @@ }; CUnicodeParser.prototype.EatCloseOrOpenBracket = function () { - let strOpenLiteral, strCloseLiteral, oExp; + let strOpenLiteral, + strCloseLiteral, + oExp, + startStyle, + endStyle; - if (this.oLookahead.class === "├") { + if (this.oLookahead.data === "├") { + this.strBreakSymbol.push("|", "‖"); this.EatToken("├"); - if (this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0] || this.oLookahead.class === oLiteralNames.opOpenBracket[0]) + startStyle = this.oLookahead.style; + + if (this.oLookahead.class === Literals.lrBrackets.id || this.oLookahead.class === Literals.lBrackets.id || this.oLookahead.class === Literals.rBrackets.id) strOpenLiteral = this.EatBracket().data; else strOpenLiteral = "."; @@ -224,47 +256,37 @@ oExp = arrContent[0]; let counter = arrContent[1]; - if (this.oLookahead.class === "┤") + if (this.oLookahead.data === "┤") + { + endStyle = this.oLookahead.style; this.EatToken("┤"); + } - if (this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0] || this.oLookahead.class === oLiteralNames.opCloseBracket[0]) + if (this.oLookahead.class === Literals.lrBrackets.id || this.oLookahead.class === Literals.rBrackets.id || this.oLookahead.class === Literals.lBrackets.id) + { + endStyle = this.oLookahead.style; strCloseLiteral = this.EatBracket().data; + } else strCloseLiteral = "."; return { - type: oLiteralNames.bracketBlockLiteral[num], + type: Struc.bracket_block, left: strOpenLiteral, right: strCloseLiteral, value: oExp, counter: counter, + style: { + startStyle : startStyle, + endStyle : endStyle, + middle: [], + } }; } }; CUnicodeParser.prototype.EatBracket = function () { - let oBracket; - switch (this.oLookahead.class) { - case oLiteralNames.opCloseBracket[0]: - oBracket = this.GetOpCloseLiteral(); - break; - case oLiteralNames.opOpenBracket[0]: - oBracket = this.GetOpOpenLiteral(); - break; - case oLiteralNames.opOpenCloseBracket[0]: - oBracket = this.EatToken(this.oLookahead.class); - break; - case "Char": - oBracket = this.GetCharLiteral(); - break; - case "nASCII": - oBracket = this.GetASCIILiteral(); - break; - case oLiteralNames.spaceLiteral[0]: - oBracket = this.GetSpaceLiteral(); - break; - } - return oBracket; + return this.EatToken(this.oLookahead.class).data; }; CUnicodeParser.prototype.GetWordLiteral = function () { @@ -273,56 +295,53 @@ arrWordList.push(this.GetASCIILiteral()); } return { - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: this.GetContentOfLiteral(arrWordList), }; }; CUnicodeParser.prototype.IsWordLiteral = function () { - return this.oLookahead.class === oLiteralNames.asciiLiteral[0]; + return this.oLookahead.class === Literals.char.id// oLiteralNames.asciiLiteral[0]; }; CUnicodeParser.prototype.GetSoOperandLiteral = function (isSubSup) { if (this.IsOperandLiteral()) { - let one = this.GetOperandLiteral(isSubSup); - return one; + return this.GetOperandLiteral(isSubSup); } else if (this.IsDoubleIteratorDegree()) { let data = this.oLookahead.data; this.EatToken(this.oLookahead.class); return { - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: data, } } switch (this.oLookahead.data) { case "-": - let minus = this.EatToken(oLiteralNames.operatorLiteral[0]); + let minus = this.EatToken(Literals.operator.id); if (this.IsOperandLiteral()) { const operand = this.GetOperandLiteral(); return { - type: oLiteralNames.minusLiteral[num], + type: Struc.minus, value: operand, }; } return { - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: minus.data, } - - break; case "-∞": - const token = this.EatToken(oLiteralNames.operatorLiteral[0]); + const token = this.EatToken(Literals.operator.id); return token.data; case "∞": - const tokens = this.EatToken(oLiteralNames.operatorLiteral[0]); + const tokens = this.EatToken(Literals.operator.id); return tokens.data; } - if (this.oLookahead.class === oLiteralNames.operatorLiteral[0]) { + if (this.oLookahead.class === Literals.operator.id) { let one = this.GetOperandLiteral(isSubSup); return one; } @@ -338,25 +357,28 @@ }; CUnicodeParser.prototype.IsTextLiteral = function () { - return (this.oLookahead.data === "\"") && !this.isTextLiteral - } + return (this.oLookahead.data === "\"" || this.oLookahead.data === "\'") && !this.isTextLiteral + }; CUnicodeParser.prototype.GetTextLiteral = function () { + let arrStyles = []; let strSymbol = this.EatToken(this.oLookahead.class); let strExp = ""; - while (this.oLookahead.data !== "\"" && this.oLookahead.class !== undefined) { - strExp += this.EatToken(this.oLookahead.class).data; + while (this.oLookahead.data !== "\"" && this.oLookahead.data !== "\'" && this.oLookahead.class !== undefined) + { + strExp += this.oLookahead.data; + arrStyles.push(this.oLookahead.style); + this.EatToken(this.oLookahead.class) } - if (this.oLookahead.data === "\"") - { + if (this.oLookahead.data === "\"" || this.oLookahead.data === "\'") this.EatToken(this.oLookahead.class); - } return { - type: oLiteralNames.textPlainLiteral[num], + type: Struc.char, // Struc.plain, value: strExp, + style: arrStyles, } } CUnicodeParser.prototype.IsBoxLiteral = function () @@ -368,13 +390,23 @@ this.SaveTokensWhileReturn(); if (this.oLookahead.data === "□") { + let ctrlPr = this.oLookahead.style; this.EatToken(this.oLookahead.class); if (this.IsOperandLiteral()) { const oToken = this.GetOperandLiteral(); return { - type: oLiteralNames.boxLiteral[num], + type: Struc.box, value: oToken, + style: ctrlPr, + }; + } + else + { + return { + type: Struc.box, + value: {}, + style: ctrlPr, }; } } @@ -382,7 +414,7 @@ }; CUnicodeParser.prototype.isRectLiteral = function () { - return this.oLookahead.data === "▭"; + return this.oLookahead.class === Literals.rect.id; }; CUnicodeParser.prototype.GetRectLiteral = function () { @@ -390,13 +422,23 @@ if (this.oLookahead.data === "▭") { + let oCtrPr = this.oLookahead.style; this.EatToken(this.oLookahead.class); if (this.IsOperandLiteral()) { const oToken = this.GetOperandLiteral(); return { - type: oLiteralNames.borderBoxLiteral[num], + type: Struc.rect, value: oToken, + style: oCtrPr, + }; + } + else + { + return { + type: Struc.rect, + value: {}, + style: oCtrPr, }; } } @@ -406,13 +448,13 @@ //Custom horizontal (1+2)\underbrace2 CUnicodeParser.prototype.GetSpecialHBracket = function (oBase) { - let strHBracket = this.EatToken(oLiteralNames.hBracketLiteral[0]).data; - if (strHBracket[0] === "\\") - strHBracket = AscMath.AutoCorrection[strHBracket]; + let strHBracket = this.oLookahead; + this.EatToken(Literals.hbrack.id); - let oPos = AscMath.GetHBracket(strHBracket); - let oOperand = this.GetOperandLiteral("custom"); - let oUp, oDown; + let oPos = Literals.hbrack.GetPos(strHBracket), + oOperand = this.GetOperandLiteral("custom"), + oUp, + oDown; if (oPos === VJUST_BOT) oDown = oOperand; @@ -420,99 +462,135 @@ oUp = oOperand; return { - type: oLiteralNames.hBracketLiteral[num], + type: Struc.group_character, hBrack: strHBracket, value: oBase, up: oUp, down: oDown, + isBelow: oPos, }; }; - CUnicodeParser.prototype.GetHBracketLiteral = function () + CUnicodeParser.prototype.GetHBracketLiteral = function (oBase) { - this.SaveTokensWhileReturn(); - let oUp, oDown, oOperand; - if (this.IsOperandLiteral()) { - let strHBracket = this.EatToken(oLiteralNames.hBracketLiteral[0]).data; - oOperand = this.GetOperandLiteral("custom"); - if (this.oLookahead.data === "_" || this.oLookahead.data === "^" || this.oLookahead.data === "┬" || this.oLookahead.data === "┴") { - if (this.oLookahead.data === "_" || this.oLookahead.data === "┬") { + let strHBracket = this.oLookahead, + nPos = Literals.hbrack.GetPos(strHBracket.data), + oPr = this.oLookahead.style, + oUp, + oDown; + + this.EatToken(this.oLookahead.class); + + if (this.IsOperandLiteral()) + { + if (!oBase) + oBase = this.GetOperandLiteral("custom"); + + if (this.IsScriptStandardContentLiteral()) + { + if (this.oLookahead.data === "_") + { this.EatToken(this.oLookahead.class); oDown = this.GetSoOperandLiteral(); } - else if (this.oLookahead.data === "^" || this.oLookahead.data === "┴") { + else if (this.oLookahead.data === "^") + { this.EatToken(this.oLookahead.class); oUp = this.GetSoOperandLiteral(); } } - return { - type: oLiteralNames.hBracketLiteral[num], - hBrack: strHBracket, - value: oOperand, - up: oUp, - down: oDown, - }; + // else if (this.IsScriptBelowOrAboveContent()) + // { + // if (this.oLookahead.data === "┬") + // { + // this.EatToken(); + // oDown = this.GetElementLiteral(); + // } + // else if (this.oLookahead.data === "┴") + // { + // this.EatToken(); + // oUp = this.GetElementLiteral(); + // } + // } + else if (this.IsOperandLiteral()) + oDown = this.GetOperandLiteral("custom"); } - return this.WriteSavedTokens(); + + return { + type: Struc.group_character, + hBrack: strHBracket, + value: oBase, + up: oUp, + down: oDown, + style: oPr, + isBelow : nPos, + }; }; CUnicodeParser.prototype.IsHBracketLiteral = function () { - return this.oLookahead.class === oLiteralNames.hBracketLiteral[0]; + return this.oLookahead.class === Literals.hbrack.id; }; CUnicodeParser.prototype.IsRootLiteral = function () { return this.oLookahead.data === "⒭"; - } + }; CUnicodeParser.prototype.GetRootLiteral = function () { + let oRadicalStyle = this.oLookahead.style; this.EatToken(this.oLookahead.class); let oIndex = this.GetExpLiteral(); let oBase; - if (this.oLookahead.data === "▒") { + if (this.oLookahead.data === Literals.of.id) { this.EatToken(this.oLookahead.class); oBase = this.GetExpLiteral(); } return { - type: oLiteralNames.sqrtLiteral[num], + type: Struc.radical, index: oIndex, value: oBase, + style: oRadicalStyle, } }; CUnicodeParser.prototype.GetCubertLiteral = function () { - this.EatToken(oLiteralNames.sqrtLiteral[0]); + let oRadicalStyle = this.oLookahead.style; + this.EatToken(this.oLookahead.class); return this.GetContentOfAnyTypeRadical({ - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: "3", - }); + style: oRadicalStyle, + }, oRadicalStyle); }; CUnicodeParser.prototype.IsCubertLiteral = function () { - return this.oLookahead.data === "∛" && this.oLookahead.class !== oLiteralNames.operatorLiteral[0]; + return this.oLookahead.data === "∛" && this.oLookahead.class !== Literals.operator.id; }; CUnicodeParser.prototype.GetFourthrtLiteral = function () { - this.EatToken(oLiteralNames.sqrtLiteral[0]); + let oRadicalStyle = this.oLookahead.style; + this.EatToken(Literals.radical.id); return this.GetContentOfAnyTypeRadical({ - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: "4", - }); + style: oRadicalStyle, + }, oRadicalStyle); }; CUnicodeParser.prototype.IsFourthrtLiteral = function () { - return this.oLookahead.data === "∜" && this.oLookahead.class !== oLiteralNames.operatorLiteral[0]; + return this.oLookahead.data === "∜" && this.oLookahead.class !== Literals.operator.id; }; CUnicodeParser.prototype.GetNthrtLiteral = function () { + let oPr = this.oLookahead.style; this.EatToken(this.oLookahead.class); - return this.GetContentOfAnyTypeRadical(); + return this.GetContentOfAnyTypeRadical(undefined, oPr); }; CUnicodeParser.prototype.IsNthrtLiteral = function () { - return this.oLookahead.data === "√" && this.oLookahead.class !== oLiteralNames.operatorLiteral[0] || this.oLookahead.data === "√("; + return this.oLookahead.data === "√" && this.oLookahead.class !== Literals.operator.id || this.oLookahead.data === "√("; }; - CUnicodeParser.prototype.GetContentOfAnyTypeRadical = function(index) + CUnicodeParser.prototype.GetContentOfAnyTypeRadical = function(index, oRadicalStyle) { let oIndex, oContent; @@ -537,8 +615,8 @@ } } - if (this.oLookahead.class === oLiteralNames.opCloseBracket[0]) - this.EatToken(oLiteralNames.opCloseBracket[0]); + if (this.oLookahead.class === Literals.rBrackets.id) + this.EatToken(Literals.rBrackets.id); } else if (this.IsOperandLiteral()) { @@ -546,9 +624,10 @@ } return { - type: oLiteralNames.sqrtLiteral[num], + type: Struc.radical, index: index ? index : oIndex, value: oContent, + style: oRadicalStyle }; } CUnicodeParser.prototype.IsFunctionLiteral = function () @@ -560,48 +639,73 @@ this.IsNthrtLiteral() || this.IsBoxLiteral() || this.isRectLiteral() || + this.IsHBracketLiteral() || + this.IsStretchArrow() || this.IsGetNameOfFunction() || - this.oLookahead.class === "▁" || this.oLookahead.class === "¯" + this.oLookahead.class === "▁" || + this.oLookahead.class === "¯" ); }; CUnicodeParser.prototype.GetFunctionLiteral = function () { let oFunctionContent; - if (this.IsRootLiteral()) { + if (this.IsRootLiteral()) oFunctionContent = this.GetRootLiteral(); - } - else if (this.IsCubertLiteral()) { + else if (this.IsCubertLiteral()) oFunctionContent = this.GetCubertLiteral(); - } - else if (this.IsFourthrtLiteral()) { + else if (this.IsFourthrtLiteral()) oFunctionContent = this.GetFourthrtLiteral(); - } - else if (this.IsNthrtLiteral()) { + else if (this.IsNthrtLiteral()) oFunctionContent = this.GetNthrtLiteral(); - } - else if (this.IsBoxLiteral()) { + else if (this.IsBoxLiteral()) oFunctionContent = this.GetBoxLiteral(); - } - else if (this.isRectLiteral()) { + else if (this.isRectLiteral()) oFunctionContent = this.GetRectLiteral(); - } - else if (this.oLookahead.data === "▁" || this.oLookahead.data === "¯") { - if (this.IsOperandLiteral()) { - let strUnderOverLine = this.EatToken(this.oLookahead.class).data; - let oOperand = this.GetOperandLiteral("custom"); - oFunctionContent = { - type: oLiteralNames.overBarLiteral[num], - overUnder: strUnderOverLine, - value: oOperand, - }; - } - } - else if (this.IsGetNameOfFunction()) { - oFunctionContent = this.GetNameOfFunction() - } + else if (this.IsBarLiteral()) + oFunctionContent = this.GetBarLiteral(); + else if (this.IsHBracketLiteral()) + oFunctionContent = this.GetHBracketLiteral(); + else if (this.IsStretchArrow()) + oFunctionContent = this.GetStretchArrow(); + else if (this.IsGetNameOfFunction()) + oFunctionContent = this.GetNameOfFunction(); + return oFunctionContent; }; + CUnicodeParser.prototype.IsBarLiteral = function () + { + return this.oLookahead.data === "▁" || this.oLookahead.data === "¯"; + } + CUnicodeParser.prototype.GetBarLiteral = function () + { + let oStyle = this.oLookahead.style; + let strUnderOverLine = this.EatToken(this.oLookahead.class); + strUnderOverLine.class = Struc.char; + let oOperand = this.GetOperandLiteral("custom"); + + return { + type: Struc.bar, + bar: strUnderOverLine, + value: oOperand, + style: oStyle, + }; + } + CUnicodeParser.prototype.IsStretchArrow = function () + { + return this.oLookahead.class === Literals.horizontal.id; + } + CUnicodeParser.prototype.GetStretchArrow = function () + { + // todo + let oPr = this.oLookahead.style; + let data = this.EatToken(this.oLookahead.class); + return { + type: Struc.char, //Struc.horizontal, + value: data.data, + style: oPr, + } + } CUnicodeParser.prototype.IsFuncApplySymbol = function () { return this.oLookahead.data && @@ -610,146 +714,234 @@ } CUnicodeParser.prototype.IsGetNameOfFunction = function () { - return this.oLookahead.class === oLiteralNames.functionLiteral[0] + return this.oLookahead.class === Literals.func.id; }; CUnicodeParser.prototype.GetNameOfFunction = function () { - let oContent, - oName = this.oLookahead.data, - oThird; - - this.EatToken(this.oLookahead.class) - - if (!this.IsExpSubSupLiteral() || this.IsFuncApplySymbol()) - { - if (this.IsFuncApplySymbol()) - this.EatToken(this.oLookahead.class); - - oThird = this.GetOperandLiteral(); + let oName = this.EatToken(this.oLookahead.class); + let oFunctionName = { + type: Struc.char, + value: oName.data, + style: oName.style, } - return { - type: oLiteralNames.functionLiteral[num], - value: oName, - third: oThird, - } + if (this.IsApplicationFunction()) + return this.GetFunctionApplication(oFunctionName); + + return oFunctionName; }; CUnicodeParser.prototype.IsBracketLiteral = function () { - return AscMath.MathLiterals.rBrackets.IsIncludes(this.oLookahead.data) - || AscMath.MathLiterals.lBrackets.IsIncludes(this.oLookahead.data) - || AscMath.MathLiterals.lrBrackets.IsIncludes(this.oLookahead.data) + return Literals.rBrackets.SearchU(this.oLookahead.data) + || Literals.lBrackets.SearchU(this.oLookahead.data) + || Literals.lrBrackets.SearchU(this.oLookahead.data) + } + CUnicodeParser.prototype.IsOpCloserLiteral = function() + { + return this.oLookahead.class === Literals.rBrackets.id || this.oLookahead.class === Literals.lrBrackets.id || this.oLookahead.data === "┤" || this.oLookahead.data === "\\right" } CUnicodeParser.prototype.IsExpBracketLiteral = function () { - return ( - this.IsOpOpenerLiteral() || - this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0] || - this.oLookahead.class === "├" - ) && !this.strBreakSymbol.includes(this.oLookahead.data) && this.strBreakSymbol[this.strBreakSymbol.length - 1] !== this.oLookahead.data; + return (this.oLookahead.class === Literals.lBrackets.id + || this.oLookahead.class === Literals.lrBrackets.id + || this.oLookahead.data === "├" + || this.oLookahead.data === "\\left" + || this.oLookahead.data === "\\open") && !this.oLookahead.isClose; }; - CUnicodeParser.prototype.IsOpCloserLiteral = function() + CUnicodeParser.prototype.GetTypeOfLastLRInStack = function () { - return this.oLookahead.class === oLiteralNames.opCloseBracket[0] || this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0] || this.oLookahead.class === "┤" + if (this.bracketStack.length > 0) + return this.bracketStack[this.bracketStack.length - 1]; + + return false; } CUnicodeParser.prototype.GetExpBracketLiteral = function () { let strOpen, strClose, + startStyle, + endStyle, oExp; - if (this.oLookahead.class === oLiteralNames.opOpenBracket[0] || this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0] || this.oLookahead.class === "├") + let oNextLookahead = this.oTokenizer.GetNextToken(true); + + if (this.oLookahead.data === "|" || this.oLookahead.data === "‖") { - if (this.oLookahead.data === "├") + let oLastType = this.GetTypeOfLastLRInStack(); + + if (this.nBarCount % 2 === 0) { - this.EatToken("├"); - if (this.IsBracketLiteral()) + if ((oLastType === false + || this.prevLookahead.class === Literals.operator.id + || this.prevLookahead.class === Literals.lBrackets.id + || this.prevLookahead.class === Literals.special.id + || this.prevLookahead.class === Literals.char.id + || this.prevLookahead.data === " ") + && oNextLookahead.class !== Literals.operator.id + && oNextLookahead.class !== undefined + ) { - strOpen = this.oLookahead.data; - this.EatToken(this.oLookahead.class); + this.bracketStack.push(LRBracketType.open); + this.barStack.push(this.nBarCount); + this.nBarCount++; } else { - strOpen = "."; + this.bracketStack.pop(); + this.oLookahead.isClose = true; + this.nBarCount++; + return []; } } - else if (this.IsBracketLiteral()) + else { - strOpen = this.GetOpOpenLiteral(); + if (oNextLookahead.class === undefined + || oNextLookahead.class === Literals.rBrackets.id + || oNextLookahead.class === Literals.operator.id + || oNextLookahead.class === Literals.char.id + ) + { + this.bracketStack.pop(); + this.oLookahead.isClose = true; + this.nBarCount++; + return []; + } + else + { + this.bracketStack.push(LRBracketType.open); + this.barStack.push(this.nBarCount); + this.nBarCount++; + } } + } + else if (this.oLookahead.class === Literals.lBrackets.id) + { + this.bracketStack.push(LRBracketType.open); + this.barStack.push(this.nBarCount); + this.nBarCount = 0; + } + else if (this.oLookahead.class === Literals.rBrackets.id) + { + let oLastType = this.GetTypeOfLastLRInStack(); - if (strOpen === "|" || strOpen === "‖") - this.strBreakSymbol.push(strOpen); - if (this.IsPreScriptLiteral() && strOpen === "(") + if (oLastType === LRBracketType.open) { - return this.GetPreScriptLiteral(strOpen); - } + this.bracketStack.pop(); + this.oLookahead.isClose = true; - let arrContent = this.GetContentOfBracket(); - oExp = arrContent[0]; - let counter = arrContent[1]; + if (this.barStack.length > 0) + this.nBarCount = this.barStack.pop(); - if (oExp.length === 0 && !this.IsOpCloserLiteral()) - { - return { - type: oLiteralNames.charLiteral[num], - value: strOpen, - } + return []; } + } - if (this.oLookahead.data === "┤") + if (this.oLookahead.data === "├" || this.oLookahead.data === "\\left" || this.oLookahead.data === "\\open") + { + startStyle = this.oLookahead.style; + strOpen = this.EatToken(this.oLookahead.class).data; + + if (this.IsBracketLiteral()) { - this.EatToken("┤"); - if (this.IsBracketLiteral()) - { - strClose = this.oLookahead.data; - this.EatToken(this.oLookahead.class); - } - else - { - strClose = "."; - } + strOpen = this.oLookahead.data; + this.EatToken(this.oLookahead.class); } - else + else if (strOpen !== "\\left" && strOpen !== "\\open") { - if (this.IsBracketLiteral()) - strClose = this.GetOpCloseLiteral(); + strOpen = "."; } + } + else if (this.IsBracketLiteral()) + { + startStyle = this.oLookahead.style; + strOpen = this.GetOpOpenLiteral(); + } - if (!strClose) - { - return [{ - type: oLiteralNames.charLiteral[num], - value: strOpen, - }, oExp] - } + if (this.IsPreScriptLiteral() && strOpen === "(") + { + return this.GetPreScriptLiteral(strOpen, true); + } + + let isTempSpaceExit = undefined; + if (this.isSpaceExit === true) + { + isTempSpaceExit = this.isSpaceExit; + this.isSpaceExit = false; + } + let arrContent = this.GetContentOfBracket(); + + oExp = arrContent[0]; + let counter = arrContent[1]; + let middle_styles = arrContent[2]; + + if (isTempSpaceExit !== undefined) + this.isSpaceExit = isTempSpaceExit; + + if (oExp.length === 0 && !this.IsOpCloserLiteral()) + { return { - type: oLiteralNames.bracketBlockLiteral[num], - value: oExp, - left: strOpen, - right: strClose, - counter: counter, - }; + type: Struc.char, + value: strOpen, + style: startStyle + } } - else if (this.oLookahead.class === "├") { - return this.EatCloseOrOpenBracket(); + + if (this.oLookahead.data === "┤" || this.oLookahead.data === "\\right" || this.oLookahead.data === "\\close") + { + this.EatToken(this.oLookahead.class); + + if (this.IsBracketLiteral()) + { + strClose = this.oLookahead.data; + endStyle = this.oLookahead.style; + + this.EatToken(this.oLookahead.class); + } + else + { + strClose = "."; + } } + else if (this.IsBracketLiteral()) + { + endStyle = this.oLookahead.style; + strClose = this.GetOpCloseLiteral(); + } + + if (!strClose) + { + return [{ + type: Struc.char, + value: strOpen, + style: startStyle, + }, oExp] + } + + if (strOpen === "〖" && strClose === "〗" && counter === 1) + return oExp; return { - type: oLiteralNames.bracketBlockLiteral[num], + type: Struc.bracket_block, value: oExp, left: strOpen, right: strClose, + counter: counter, + style: { + startStyle : startStyle, + endStyle : endStyle, + middle: middle_styles, + }, }; }; - CUnicodeParser.prototype.GetContentOfBracket = function (isMatrix) + CUnicodeParser.prototype.GetContentOfBracket = function () { let arrContent = []; let intCountOfBracketBlock = 1; + let styles = []; - while (this.IsExpLiteral() || this.oLookahead.data === "∣" || this.oLookahead.data === "│" || this.oLookahead.data === "ⓜ" || this.oLookahead.data === "│" || this.oLookahead.data === "&" || this.oLookahead.data === "@") + while (this.IsExpLiteral() || this.oLookahead.class === Literals.delimiter.id || this.oLookahead.data === "ⓜ" && this.oLookahead.class !== Literals.lrBrackets.id) { if (this.IsExpLiteral()) { @@ -757,36 +949,47 @@ if (oToken && !Array.isArray(oToken) || (Array.isArray(oToken) && oToken.length > 0)) arrContent.push(oToken) } - else if (this.oLookahead.data === "@" || this.oLookahead.data === "&") - { - let data = this.EatToken(this.oLookahead.class); - arrContent.push({ - type: oLiteralNames.charLiteral[num], - value: data.data, - }) - } else { + if (arrContent.length === 0) + { + arrContent.push({}); + } + + styles.push(this.oLookahead.style); this.EatToken(this.oLookahead.class); + + if (!this.IsExpLiteral()) + { + arrContent.push({}); + } + intCountOfBracketBlock++; } } - // while (arrContent.length < intCountOfBracketBlock) { - // arrContent.push([]); - // } - - return [arrContent, intCountOfBracketBlock]; + return [arrContent, intCountOfBracketBlock, styles]; } - CUnicodeParser.prototype.GetPreScriptLiteral = function (strOpen) + CUnicodeParser.prototype.GetPreScriptLiteral = function (strOpen, isInsideBracket) { let oFirstSoOperand, oSecondSoOperand, oBase, - isApostrope = false; + isApostrope = false, + oSubStyle, + oSupStyle; let strTypeOfPreScript = this.oLookahead.data; + if (strTypeOfPreScript === "_") + { + oSubStyle = this.oLookahead.style; + } + else + { + oSupStyle = this.oLookahead.style; + } + this.SaveTokensWhileReturn(); if (this.oLookahead.data === "_" || this.oLookahead.data === "^") this.EatToken(this.oLookahead.class); @@ -798,9 +1001,24 @@ isApostrope = true; } else if (strTypeOfPreScript === "_") + { oFirstSoOperand = this.GetSpaceExitFunction(this.GetSoOperandLiteral, "preScript"); + } else + { oSecondSoOperand = this.GetSpaceExitFunction(this.GetSoOperandLiteral, "preScript"); + } + + if (!oFirstSoOperand && !oSecondSoOperand) + { + return { + type: Struc.spaces, + value: {}, + down: strTypeOfPreScript === "_" ? {} : undefined, + up: strTypeOfPreScript === "^" ? {} : undefined, + style: {supStyle: oSupStyle, subStyle: oSubStyle}, + } + } if (this.oLookahead.data !== strTypeOfPreScript && this.IsPreScriptLiteral()) { @@ -813,18 +1031,18 @@ let isBracket = false; - if (this.oLookahead.class === oLiteralNames.opOpenCloseBracket[0]) + if (this.oLookahead.class === Literals.lrBrackets.id) { - this.EatToken(oLiteralNames.opOpenCloseBracket[0]); + this.EatToken(Literals.lrBrackets.id); isBracket = true; } - else if (this.oLookahead.class === oLiteralNames.opCloseBracket[0]) + else if (this.oLookahead.class === Literals.rBrackets.id) { - this.EatToken(oLiteralNames.opCloseBracket[0]); + this.EatToken(Literals.rBrackets.id); isBracket = true; } - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0] || isBracket || isApostrope) + if (this.oLookahead.class === Literals.space.id || isBracket || isApostrope) { if (!isBracket && !isApostrope) this.EatToken(this.oLookahead.class); @@ -833,14 +1051,29 @@ ? this.GetSpaceExitFunction(this.GetElementLiteral) : {}; - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) + if (this.oLookahead.class === Literals.space.id) this.EatToken(this.oLookahead.class); return { - type: oLiteralNames.preScriptLiteral[num], + type: Struc.pre_script, value: oBase, down: oFirstSoOperand, up: oSecondSoOperand, + style: {supStyle: oSupStyle, subStyle: oSubStyle}, + } + } + + if (!isInsideBracket) + { + return { + type: Struc.pre_script, + value: { + type: Struc.char, + value: '' + }, + down: oFirstSoOperand, + up: oSecondSoOperand, + style: {supStyle: oSupStyle, subStyle: oSubStyle}, } } @@ -854,30 +1087,30 @@ { if (this.IsWordLiteral()) { let token = this.GetWordLiteral(); - if (this.oLookahead.class === oLiteralNames.numberLiteral[0]) { + if (this.oLookahead.class === Literals.number.id) { token.nASCII = this.GetASCIILiteral(); } return token; } - else if (this.oLookahead.class === oLiteralNames.anMathLiteral[0]) { - return this.GetAnMathLiteral(); - } + // else if (this.oLookahead.class === oLiteralNames.anMathLiteral[0]) { + // return this.GetAnMathLiteral(); + // } else if (this.IsNumberLiteral()) { return this.GetNumberLiteral(); } else if (this.isOtherLiteral()) { - return this.otherLiteral(); + return this.GetOtherLiteral(); } else if (this.IsExpBracketLiteral()) { return this.GetExpBracketLiteral(); } - else if (this.oLookahead.class === oLiteralNames.opBuildupLiteral[0]) { - return this.GetOpNaryLiteral(); - } + // else if (this.oLookahead.class === oLiteralNames.opBuildupLiteral[0]) { + // return this.GetOpNaryLiteral(); + // } else if (this.IsAnOtherLiteral()) { return this.GetAnOtherLiteral(); } - else if (this.oLookahead.class === oLiteralNames.charLiteral[0]) { + else if (this.oLookahead.class === Literals.char.id) { return this.GetCharLiteral(); } else if (this.IsCubertLiteral()) { @@ -897,134 +1130,157 @@ // this.isOtherLiteral() || // this.IsExpBracketLiteral() || // this.oLookahead.class === "anOther" || - // this.oLookahead.class === oLiteralNames.opNaryLiteral[0] || + // this.oLookahead.class === Literals.nary.id || // this.oLookahead.class === "┬" || // this.oLookahead.class === "┴" || - // this.oLookahead.class === oLiteralNames.charLiteral[0] || + // this.oLookahead.class === Literals.char.id || // this.oLookahead.class === oLiteralNames.anMathLiteral[0] // ); // }; - CUnicodeParser.prototype.GetScriptSpecialContent = function (base) + // CUnicodeParser.prototype.GetScriptSpecialContent = function (base) + // { + // let oFirstSoOperand = [], + // oSecondSoOperand = []; + // + // const ProceedScript = function (context) { + // while (context.IsScriptSpecialContent()) { + // if (context.oLookahead.class === oLiteralNames.specialScriptNumberLiteral[0]) { + // let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialScriptNumberLiteral, true); + // oFirstSoOperand.push(oSpecial); + // } + // if (context.oLookahead.class === oLiteralNames.specialScriptCharLiteral[0]) { + // let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialScriptCharLiteral, true); + // oFirstSoOperand.push(oSpecial); + // } + // if (context.oLookahead.class === oLiteralNames.specialScriptBracketLiteral[0]) { + // let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialScriptBracketLiteral, true) + // oFirstSoOperand.push(oSpecial); + // } + // if (context.oLookahead.class === oLiteralNames.specialScriptOperatorLiteral[0]) { + // let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialScriptOperatorLiteral, true) + // oFirstSoOperand.push(oSpecial); + // } + // } + // }; + // const ProceedIndex = function (context) { + // while (context.IsIndexSpecialContent()) { + // if (context.oLookahead.class === oLiteralNames.specialIndexNumberLiteral[0]) { + // let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialIndexNumberLiteral, true); + // oSecondSoOperand.push(oSpecial); + // } + // if (context.oLookahead.class === oLiteralNames.specialIndexCharLiteral[0]) { + // let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialIndexCharLiteral, true); + // oSecondSoOperand.push(oSpecial); + // } + // if (context.oLookahead.class === oLiteralNames.specialIndexBracketLiteral[0]) { + // let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialIndexBracketLiteral, true) + // oSecondSoOperand.push(oSpecial); + // } + // if (context.oLookahead.class === oLiteralNames.specialIndexOperatorLiteral[0]) { + // let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialIndexOperatorLiteral, true) + // oSecondSoOperand.push(oSpecial); + // } + // } + // }; + // + // if (this.IsScriptSpecialContent()) { + // ProceedScript(this); + // if (this.IsIndexSpecialContent()) { + // ProceedIndex(this); + // } + // } + // else if (this.IsIndexSpecialContent()) { + // ProceedIndex(this); + // if (this.IsScriptSpecialContent()) { + // ProceedScript(this); + // } + // } + // + // return { + // type: Struc.sub_sub, + // value: base, + // down: oSecondSoOperand, + // up: oFirstSoOperand, + // }; + // } + // CUnicodeParser.prototype.IsSpecialContent = function () + // { + // return ( + // this.oLookahead.class === oLiteralNames.specialScriptNumberLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialScriptCharLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialScriptBracketLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialScriptOperatorLiteral[0] || + // + // this.oLookahead.class === oLiteralNames.specialIndexNumberLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialIndexCharLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialIndexBracketLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialIndexOperatorLiteral[0] + // + // ); + // }; + // CUnicodeParser.prototype.IsScriptSpecialContent = function () + // { + // return ( + // this.oLookahead.class === oLiteralNames.specialScriptNumberLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialScriptCharLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialScriptBracketLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialScriptOperatorLiteral[0] + // ); + // }; + // CUnicodeParser.prototype.IsIndexSpecialContent = function () + // { + // return ( + // this.oLookahead.class === oLiteralNames.specialIndexNumberLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialIndexCharLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialIndexBracketLiteral[0] || + // this.oLookahead.class === oLiteralNames.specialIndexOperatorLiteral[0] + // ); + // }; + CUnicodeParser.prototype.GetTextOfContent = function (oInput) { - let oFirstSoOperand = [], - oSecondSoOperand = []; + let str = ''; - const ProceedScript = function (context) { - while (context.IsScriptSpecialContent()) { - if (context.oLookahead.class === oLiteralNames.specialScriptNumberLiteral[0]) { - let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialScriptNumberLiteral, true); - oFirstSoOperand.push(oSpecial); - } - if (context.oLookahead.class === oLiteralNames.specialScriptCharLiteral[0]) { - let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialScriptCharLiteral, true); - oFirstSoOperand.push(oSpecial); - } - if (context.oLookahead.class === oLiteralNames.specialScriptBracketLiteral[0]) { - let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialScriptBracketLiteral, true) - oFirstSoOperand.push(oSpecial); - } - if (context.oLookahead.class === oLiteralNames.specialScriptOperatorLiteral[0]) { - let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialScriptOperatorLiteral, true) - oFirstSoOperand.push(oSpecial); - } - } - }; - const ProceedIndex = function (context) { - while (context.IsIndexSpecialContent()) { - if (context.oLookahead.class === oLiteralNames.specialIndexNumberLiteral[0]) { - let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialIndexNumberLiteral, true); - oSecondSoOperand.push(oSpecial); - } - if (context.oLookahead.class === oLiteralNames.specialIndexCharLiteral[0]) { - let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialIndexCharLiteral, true); - oSecondSoOperand.push(oSpecial); - } - if (context.oLookahead.class === oLiteralNames.specialIndexBracketLiteral[0]) { - let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialIndexBracketLiteral, true) - oSecondSoOperand.push(oSpecial); - } - if (context.oLookahead.class === oLiteralNames.specialIndexOperatorLiteral[0]) { - let oSpecial = context.ReadTokensWhileEnd(oLiteralNames.specialIndexOperatorLiteral, true) - oSecondSoOperand.push(oSpecial); + if (Array.isArray(oInput)) + { + for (let i = 0; i < oInput.length; i++) + { + let oCurrent = oInput[i]; + if (oCurrent.type === Struc.char) + { + str += oCurrent.value; } } - }; - - if (this.IsScriptSpecialContent()) { - ProceedScript(this); - if (this.IsIndexSpecialContent()) { - ProceedIndex(this); - } - } - else if (this.IsIndexSpecialContent()) { - ProceedIndex(this); - if (this.IsScriptSpecialContent()) { - ProceedScript(this); - } } + else + return oInput.value; - return { - type: oLiteralNames.subSupLiteral[num], - value: base, - down: oSecondSoOperand, - up: oFirstSoOperand, - }; + return str; } - CUnicodeParser.prototype.IsSpecialContent = function () - { - return ( - this.oLookahead.class === oLiteralNames.specialScriptNumberLiteral[0] || - this.oLookahead.class === oLiteralNames.specialScriptCharLiteral[0] || - this.oLookahead.class === oLiteralNames.specialScriptBracketLiteral[0] || - this.oLookahead.class === oLiteralNames.specialScriptOperatorLiteral[0] || - - this.oLookahead.class === oLiteralNames.specialIndexNumberLiteral[0] || - this.oLookahead.class === oLiteralNames.specialIndexCharLiteral[0] || - this.oLookahead.class === oLiteralNames.specialIndexBracketLiteral[0] || - this.oLookahead.class === oLiteralNames.specialIndexOperatorLiteral[0] - - ); - }; - CUnicodeParser.prototype.IsScriptSpecialContent = function () - { - return ( - this.oLookahead.class === oLiteralNames.specialScriptNumberLiteral[0] || - this.oLookahead.class === oLiteralNames.specialScriptCharLiteral[0] || - this.oLookahead.class === oLiteralNames.specialScriptBracketLiteral[0] || - this.oLookahead.class === oLiteralNames.specialScriptOperatorLiteral[0] - ); - }; - CUnicodeParser.prototype.IsIndexSpecialContent = function () - { - return ( - this.oLookahead.class === oLiteralNames.specialIndexNumberLiteral[0] || - this.oLookahead.class === oLiteralNames.specialIndexCharLiteral[0] || - this.oLookahead.class === oLiteralNames.specialIndexBracketLiteral[0] || - this.oLookahead.class === oLiteralNames.specialIndexOperatorLiteral[0] - ); - }; CUnicodeParser.prototype.IsExpSubSupLiteral = function () { return ( this.IsScriptStandardContentLiteral() || - this.IsScriptBelowOrAboveContent() || - this.IsSpecialContent() + this.IsScriptBelowOrAboveContent() + //this.IsSpecialContent() ); }; CUnicodeParser.prototype.GetExpSubSupLiteral = function (oBase) { let oThirdSoOperand, - oContent; + oContent, + oOfStyle; if (undefined === oBase) { oBase = this.GetScriptBaseLiteral(); } - else { - if (FunctionNames.includes(oBase.value)) { - oBase.type = oLiteralNames.functionLiteral[num]; + else + { + let strBase = this.GetTextOfContent(oBase); + if (FunctionNames.includes(strBase)) { + oBase.type = Struc.func; } - else if (LimitNames.includes(oBase.value)) { - oBase.type = oLiteralNames.functionWithLimitLiteral[num]; + else if (LimitNames.includes(strBase)) { + oBase.type = Struc.func_lim; } } @@ -1038,31 +1294,49 @@ else if (this.IsScriptBelowOrAboveContent()) { oContent = this.GetScriptBelowOrAboveContent(oBase); } - else if (this.IsSpecialContent()) { - oContent = this.GetScriptSpecialContent(oBase); - } + // else if (this.IsSpecialContent()) { + // oContent = this.GetScriptSpecialContent(oBase); + // } if (oBase && oBase.value === " ") { return this.WriteSavedTokens(); } - if (this.oLookahead.class === "▒") + if (this.oLookahead.class === Literals.of.id) { - if (oBase.type === oLiteralNames.opBuildupLiteral[num] || - oBase.type === oLiteralNames.opNaryLiteral[num] || - oBase.type === oLiteralNames.functionLiteral[num] || - oBase.type === oLiteralNames.functionWithLimitLiteral[num] + if ( + //oBase.type === oLiteralNames.opBuildupLiteral[num] || + oBase.type === Struc.nary || + oBase.type === Struc.func || + oBase.type === Struc.func_lim || + oBase.type === Struc.radical //todo ) { + oOfStyle = this.oLookahead.style; this.EatToken("▒"); - oThirdSoOperand = this.GetElementLiteral(); - return { - type: oLiteralNames.subSupLiteral[num], + + if (oBase.type === Struc.nary) + { + if (this.oLookahead.data === "〖" ) + oThirdSoOperand = this.GetExpBracketLiteral(); + else + oThirdSoOperand = this.GetExpLiteral(); + } + else + oThirdSoOperand = this.GetElementLiteral(); + + return { + type: Struc.sub_sub, value: oBase, down: oContent.down, up: oContent.up, third: oThirdSoOperand, + style: { + subStyle: oContent.style.subStyle, + supStyle: oContent.style.supStyle, + ofStyle: oOfStyle, + }, }; } else @@ -1072,24 +1346,29 @@ } } else if ( - oBase.type === oLiteralNames.functionLiteral[num] || - oBase.type === oLiteralNames.functionWithLimitLiteral[num] || - oBase.type === oLiteralNames.opNaryLiteral[num] + oBase.type === Struc.nary || + oBase.type === Struc.func || + oBase.type === Struc.func_lim ) { if (this.oLookahead.class) { - if (this.oLookahead.data.charCodeAt(0) === 8289) + if (this.oLookahead.data.charCodeAt(0) === 8289 || this.oLookahead.data === " ") this.EatToken(this.oLookahead.class); oThirdSoOperand = this.GetOperandLiteral(); return { - type: oLiteralNames.subSupLiteral[num], + type: Struc.sub_sub, value: oBase, down: oContent.down, up: oContent.up, third: oThirdSoOperand, + style: { + subStyle: oContent.style.subStyle, + supStyle: oContent.style.supStyle, + oOfStyle: oOfStyle, + } }; } } @@ -1098,25 +1377,24 @@ }; CUnicodeParser.prototype.EatOneSpace = function() { - // Word doesn't skip spaces, for now disable - - // if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) - // { - // this.EatToken(this.oLookahead.class); - // } + if (this.oLookahead.class === Literals.space.id && this.oLookahead.data === " ") + this.EatToken(this.oLookahead.class); } CUnicodeParser.prototype.GetScriptStandardContentLiteral = function (oBase) { - let oFirstElement; - let oSecondElement; + let oFirstElement, + oSecondElement, + oSubStyle, + oSupStyle; if (this.oLookahead.data === "_") { + oSubStyle = this.oLookahead.style; this.EatToken(this.oLookahead.class); if (this.IsSoOperandLiteral()) { - oFirstElement = (oBase && oBase.type === oLiteralNames.opNaryLiteral[1]) + oFirstElement = (oBase && oBase.type === Struc.nary) ? this.GetSoOperandLiteral("custom") : this.GetSpaceExitFunction(this.GetSoOperandLiteral, "_"); } @@ -1125,12 +1403,16 @@ oFirstElement = this.GetExpLiteral(); } - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) - this.EatToken(this.oLookahead.class); + // if (this.oLookahead.class === Literals.space.id) + // this.EatToken(this.oLookahead.class); + + if (undefined === oFirstElement) + oFirstElement = {}; // Get second element if (this.oLookahead.data === "^" && !this.isOneSubSup) { + oSupStyle = this.oLookahead.style; this.EatToken(this.oLookahead.class); if (this.IsSoOperandLiteral()) @@ -1142,29 +1424,33 @@ oSecondElement = this.GetExpLiteral(); } - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) + if (this.oLookahead.class === Literals.space.id) this.EatToken(this.oLookahead.class); return { - type: oLiteralNames.subSupLiteral[num], + type: Struc.sub_sub, value: oBase, down: oFirstElement, up: oSecondElement, + style: {supStyle: oSupStyle, subStyle: oSubStyle}, }; } + return { - type: oLiteralNames.subSupLiteral[num], + type: Struc.sub_sub, value: oBase, down: oFirstElement, + style: {supStyle: oSupStyle, subStyle: oSubStyle}, }; } else if (this.oLookahead.data === "^") { + oSupStyle = this.oLookahead.style; this.EatToken(this.oLookahead.class); if (this.IsSoOperandLiteral()) { - oSecondElement = (oBase && oBase.type === oLiteralNames.opNaryLiteral[1]) + oSecondElement = (oBase && oBase.type === Struc.nary) ? this.GetSoOperandLiteral("custom") : this.GetSpaceExitFunction(this.GetSoOperandLiteral, "^"); } @@ -1172,8 +1458,8 @@ { oSecondElement = this.GetExpLiteral(); } - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) - this.EatToken(this.oLookahead.class); + // if (this.oLookahead.class === Literals.space.id) + // this.EatToken(this.oLookahead.class); if (oSecondElement && (oSecondElement.value === "′" || oSecondElement.value === "′′" || oSecondElement === "‵")) { @@ -1182,6 +1468,7 @@ if (this.oLookahead.data === "_") { + oSubStyle = this.oLookahead.style; this.EatToken(this.oLookahead.class); if (this.IsSoOperandLiteral()) { @@ -1192,24 +1479,23 @@ oFirstElement = this.GetExpLiteral(); } - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) + if (this.oLookahead.class === Literals.space.id) this.EatToken(this.oLookahead.class); return { - type: oLiteralNames.subSupLiteral[num], + type: Struc.sub_sub, value: oBase, down: oFirstElement, up: oSecondElement, + style: {supStyle: oSupStyle, subStyle: oSubStyle}, }; } - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) - this.EatToken(this.oLookahead.class); - return { - type: oLiteralNames.subSupLiteral[num], + type: Struc.sub_sub, value: oBase, up: oSecondElement, + style: {supStyle: oSupStyle, subStyle: oSubStyle}, }; } }; @@ -1220,75 +1506,118 @@ CUnicodeParser.prototype.GetScriptBelowOrAboveContent = function (base) { let oBelowAbove, - strType, - isBelow = true; + type, + strType = this.oLookahead.data, + oStyle = this.oLookahead.style; - strType = this.EatToken(this.oLookahead.class).data; + if (strType === "┬" || strType === "\\below") + type = LIMIT_LOW; + else if (strType === "┴" || strType === "\\above") + type = LIMIT_UP; - if (strType === "┴") - isBelow = false; + this.EatToken(this.oLookahead.class); - oBelowAbove = this.GetElementLiteral(); + oBelowAbove = this.GetSpaceExitFunction(this.GetOperandLiteral) - if(base && base.type === oLiteralNames.functionLiteral[num]) + if (Literals.horizontal.SearchU(base.value)) { - if (this.oLookahead.data && this.oLookahead.data.charCodeAt(0) === 8289) //funcapply symbol ⁡) - { - this.EatToken(this.oLookahead.class); - } - let third = this.GetOperandLiteral(); return { - type: oLiteralNames.functionWithLimitLiteral[num], - value: base.value, - up: strType === "┴" ? oBelowAbove : undefined, - down: strType !== "┴" ? oBelowAbove : undefined, - third: third, + type: Struc.horizontal, + hBrack: base, + value: oBelowAbove, + VJUSTType: type, + style: oStyle, } } + else if (this.IsApplicationFunction()) + { + return this.GetFunctionApplication({ + type: Struc.limit, + base: base, + value: oBelowAbove, + isBelow: type, + style: oStyle, + }) + } return { - type: oLiteralNames.belowAboveLiteral[num], + type: Struc.limit, base: base, value: oBelowAbove, - isBelow: isBelow, + isBelow: type, + style: oStyle, }; + + // if(base && base.type === oLiteralNames.functionLiteral[num]) + // { + // if (this.oLookahead.data && this.oLookahead.data.charCodeAt(0) === 8289) //funcapply symbol ⁡) + // { + // this.EatToken(this.oLookahead.class); + // } + // let third = this.GetOperandLiteral(); + // //todo + // return { + // type: oLiteralNames.functionWithLimitLiteral[num], + // value: base.value, + // up: strType === "┴" ? oBelowAbove : undefined, + // down: strType !== "┴" ? oBelowAbove : undefined, + // third: third, + // } + // } + // + // return { + // type: Struc.limit, + // base: base, + // value: oBelowAbove, + // isBelow: type, + // style: oStyle, + // }; }; CUnicodeParser.prototype.IsScriptBelowOrAboveContent = function () { - return this.oLookahead.class === "┬" || this.oLookahead.class === "┴"; + return this.oLookahead.data === "┬" + || this.oLookahead.data === "┴" + || this.oLookahead.data === "\\below" + || this.oLookahead.data === "\\above" }; CUnicodeParser.prototype.GetFractionLiteral = function (oNumerator) { - let oOperand, - strOpOver, - intTypeFraction, - isBinomialWithBrackets; + let oOperand; if (undefined === oNumerator) { oNumerator = this.GetOperandLiteral(); } - if (this.oLookahead.class === oLiteralNames.overLiteral[0]) + if (this.oLookahead.class === Literals.divide.id && this.oLookahead.style.metaData.isEscapedSlash !== true) { - strOpOver = this.EatToken(oLiteralNames.overLiteral[0]).data; - isBinomialWithBrackets = strOpOver === "⒞"; - intTypeFraction = AscMath.GetFractionType(strOpOver); + let oFracStyle = this.oLookahead.style, + strOpOver = this.EatToken(Literals.divide.id).data, + oAddData = this.oLookahead.style, + oMathMetaData = oAddData ? oAddData.GetMathMetaData() : undefined, + isLinearMetaData = oMathMetaData ? oMathMetaData.getIsLinearFraction() : undefined, + isBinomialWithBrackets = strOpOver === "⒞", + intTypeFraction = AscMath.GetFractionType(strOpOver); + + if (isLinearMetaData) + { + intTypeFraction = LINEAR_FRACTION; + } if (this.IsOperandLiteral()) oOperand = this.GetSpaceExitFunction(this.GetFractionLiteral); - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) - this.EatToken(this.oLookahead.class); + this.EatOneSpace(); if (isBinomialWithBrackets) { return { - type: oLiteralNames.bracketBlockLiteral[num], + type: Struc.bracket_block, value: { - type: oLiteralNames.fractionLiteral[num], + type: Struc.frac, up: oNumerator || {}, down: oOperand || {}, fracType: intTypeFraction, + style: oFracStyle, }, left: "(", right: ")", @@ -1296,75 +1625,120 @@ } return { - type: oLiteralNames.fractionLiteral[num], + type: Struc.frac, up: oNumerator || {}, down: oOperand || {}, - fracType: intTypeFraction, + fracType: this.GetFractionType(strOpOver), + style: oFracStyle, }; } else { + if (this.oLookahead.class !== undefined && this.oLookahead.style.metaData.isEscapedSlash) + { + let oEscSlash = this.EatToken(); + return [ + oNumerator, + { + type: Struc.char, + value: oEscSlash.data, + style: oEscSlash.style + }, + ]; + } return oNumerator; } }; + CUnicodeParser.prototype.GetFractionType = function (str) + { + switch (str) + { + case "/" : return BAR_FRACTION; + case "⁄" : return SKEWED_FRACTION; + case "⊘" : return LITTLE_FRACTION; + case "¦" : return NO_BAR_FRACTION; + case "∕" : return LINEAR_FRACTION; + } + } CUnicodeParser.prototype.IsFractionLiteral = function () { return this.IsOperandLiteral(); }; - CUnicodeParser.prototype.otherLiteral = function () + CUnicodeParser.prototype.GetOtherLiteral = function () { return this.GetCharLiteral(); }; CUnicodeParser.prototype.isOtherLiteral = function () { - return this.oLookahead.class === oLiteralNames.charLiteral[0]; + return this.oLookahead.class === Literals.char.id; }; CUnicodeParser.prototype.GetOperatorLiteral = function () { - const oOperator = this.EatToken(oLiteralNames.operatorLiteral[0]); + let oStyle = this.oLookahead.style; + let oOperator = this.EatToken(Literals.operator.id); + return { - type: oLiteralNames.operatorLiteral[num], + type: Literals.operator.id, value: oOperator.data, + style: oStyle, }; }; CUnicodeParser.prototype.GetASCIILiteral = function () { - return this.ReadTokensWhileEnd(oLiteralNames.numberLiteral, false) + return this.ReadTokensWhileEnd(Literals.number, Struc.number) }; + CUnicodeParser.prototype.GetAlphanumericLiteral = function () + { + let oStyle = this.oLookahead.style; + let oAlphanumeric = this.EatToken(Literals.alphanumeric.id); + + return { + type: Struc.char, + value: oAlphanumeric.data, + style: oStyle, + }; + + return this.ReadTokensWhileEnd(Literals.alphanumeric, Struc.char); + } CUnicodeParser.prototype.GetCharLiteral = function () { - return this.ReadTokensWhileEnd(oLiteralNames.charLiteral, false) + return this.ReadTokensWhileEnd(Literals.char, Struc.char) }; CUnicodeParser.prototype.GetAnMathLiteral = function () { const oAnMathLiteral = this.EatToken(oLiteralNames.anMathLiteral[0]); return { - type: oLiteralNames.anMathLiteral[num], + type: Struc.char, value: oAnMathLiteral.data, + style: oAnMathLiteral.style, }; }; CUnicodeParser.prototype.IsAnMathLiteral = function () { - return this.oLookahead.class === oLiteralNames.anMathLiteral[0]; + return false }; CUnicodeParser.prototype.GetAnOtherLiteral = function () { - if (this.oLookahead.class === oLiteralNames.otherLiteral[0]) { - return this.ReadTokensWhileEnd(oLiteralNames.otherLiteral, false) + if (this.oLookahead.class === Literals.other.id) + { + return this.ReadTokensWhileEnd(Literals.other, Struc.other) } - else if (this.oLookahead.class === oLiteralNames.charLiteral[0]) { + else if (this.oLookahead.class === Literals.char.id) { return this.GetCharLiteral(); } - else if (this.oLookahead.class === oLiteralNames.numberLiteral[0]) { - return this.GetNumberLiteral(); - } - else if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) + else if (this.oLookahead.class === Literals.alphanumeric.id) { - return this.GetSpaceLiteral(); + return this.GetAlphanumericLiteral(); + } + else if (this.oLookahead.class === Literals.number.id) { + return this.ReadTokensWhileEnd(Literals.number, Struc.char, false) + } + else if (this.oLookahead.class === Literals.operand.id) { + return this.ReadTokensWhileEnd(Literals.operand, Struc.char, false) } else if (this.oLookahead.data === "." || this.oLookahead.data === ",") { return { - type: oLiteralNames.charLiteral[num], + type: Literals.char.id, value: this.EatToken(this.oLookahead.class).data, } } @@ -1372,10 +1746,11 @@ CUnicodeParser.prototype.IsAnOtherLiteral = function () { return ( - this.oLookahead.class === oLiteralNames.spaceLiteral[0] || - this.oLookahead.class === oLiteralNames.otherLiteral[0] || - this.oLookahead.class === oLiteralNames.charLiteral[0] || - this.oLookahead.class === oLiteralNames.numberLiteral[0] || + this.oLookahead.class === Literals.other.id || + this.oLookahead.class === Literals.char.id || + this.oLookahead.class === Literals.number.id || + this.oLookahead.class === Literals.operand.id || + this.oLookahead.class === Literals.alphanumeric.id || this.oLookahead.data === "." || this.oLookahead.data === "," ) && this.IsSpaceExit(); }; @@ -1392,39 +1767,20 @@ }; CUnicodeParser.prototype.GetDiacriticBaseLiteral = function () { - let oDiacriticBase; - const strDiacriticBaseLiteral = oLiteralNames.diacriticBaseLiteral[num]; + let arrData = []; - if (this.IsAnLiteral()) { - oDiacriticBase = this.GetAnLiteral(); - return { - type: strDiacriticBaseLiteral, - value: oDiacriticBase, - isAn: true, - }; - } - else if (this.oLookahead.class === "nASCII") { - oDiacriticBase = this.GetASCIILiteral(); - return { - type: strDiacriticBaseLiteral, - value: oDiacriticBase, - }; - } - else if (this.oLookahead.class === "(") { - this.EatToken("("); - oDiacriticBase = this.GetExpLiteral(); - this.EatToken(")"); - return { - type: strDiacriticBaseLiteral, - value: oDiacriticBase, - }; + while(this.IsAnLiteral()) + { + arrData.push(this.GetAnLiteral()); } + + return arrData }; CUnicodeParser.prototype.IsDiacriticBaseLiteral = function () { return ( this.IsAnLiteral() || - this.oLookahead.class === oLiteralNames.numberLiteral[0] || + this.oLookahead.class === Literals.number.id || this.oLookahead.class === "(" ); }; @@ -1432,39 +1788,51 @@ { const arrDiacriticList = []; - arrDiacriticList.push(this.oLookahead.data); - this.EatToken(MathLiteral.accent.id); + arrDiacriticList.push({ + type:Struc.char, + value: this.oLookahead.data, + style : this.oLookahead.style, + }); + this.EatToken(this.oLookahead.class); return this.GetContentOfLiteral(arrDiacriticList); }; CUnicodeParser.prototype.IsDiacriticsLiteral = function () { - return this.oLookahead.class === MathLiteral.accent.id; + return this.oLookahead.class === Literals.accent.id; }; CUnicodeParser.prototype.GetAtomLiteral = function () { - const oAtom = this.GetDiacriticBaseLiteral(); - if (oAtom.isAn) { - return oAtom.value - } - return oAtom; + return this.GetDiacriticBaseLiteral(); }; CUnicodeParser.prototype.IsAtomLiteral = function () { - return this.IsAnLiteral() || this.IsDiacriticBaseLiteral(); + return !this.IsTextLiteral() + && (this.IsAnLiteral() || this.IsDiacriticBaseLiteral()) }; CUnicodeParser.prototype.GetAtomsLiteral = function () { const arrAtomsList = []; - while (this.IsAtomLiteral()) { - arrAtomsList.push(this.GetAtomLiteral()); + while (this.IsAtomLiteral()) + { + let atom = this.GetAtomLiteral(); + + if (this.IsPrimeLiteral()) + arrAtomsList.push(this.GetPrimeLiteral(atom)) + else + arrAtomsList.push(atom); + } - return this.GetContentOfLiteral(arrAtomsList) + return this.GetContentOfLiteral(arrAtomsList); }; CUnicodeParser.prototype.IsAtomsLiteral = function () { return this.IsAtomLiteral(); }; + CUnicodeParser.prototype.GetTextOperandLiteral = function() + { + return this.ReadTokensWhileEnd(Literals.operand, Struc.char, false) + }; CUnicodeParser.prototype.GetEntityLiteral = function () { if (this.IsTextLiteral()) { @@ -1485,6 +1853,10 @@ else if (this.IsHBracketLiteral()) { return this.GetHBracketLiteral(); } + // else if (this.oLookahead.class === Literals.operand.id) + // { + // return this.GetTextOperandLiteral() + // } }; CUnicodeParser.prototype.IsEntityLiteral = function () @@ -1496,46 +1868,30 @@ this.IsOpNaryLiteral() || this.IsTextLiteral() || this.IsHBracketLiteral() + //this.oLookahead.class === Literals.operand.id ); }; - CUnicodeParser.prototype.IsEqArrayLiteral = function () + CUnicodeParser.prototype.IsPrimeLiteral = function () { - return this.oLookahead.class === "█" + return this.oLookahead.data === "⁗" || + this.oLookahead.data === "‴" || + this.oLookahead.data === "″" || + this.oLookahead.data === "′"; }; - CUnicodeParser.prototype.GetEqArrayLiteral = function () + CUnicodeParser.prototype.GetPrimeLiteral = function (oBase) { - this.SaveTokensWhileReturn(); - this.EatToken(this.oLookahead.class); - if (this.oLookahead.data === "(") { - this.EatToken(this.oLookahead.class); - let oContent = []; - while (this.IsRowLiteral() || this.oLookahead.class === "@" || this.oLookahead.class === "&") { - if (this.oLookahead.class === "@") { - this.EatToken("@"); - } - if (this.oLookahead.class === "&") { - this.EatToken("&"); - } - else { - oContent.push(this.GetRowLiteral()); - } - } - if (this.oLookahead.data === ")") { - this.EatToken(this.oLookahead.class); - return { - type: oLiteralNames.arrayLiteral[num], - value: oContent, - } - } - } - else - { - return { - type: oLiteralNames.charLiteral[num], - value: "█" - } + let oSupStyle = this.oLookahead.style; + let strPrime = this.EatToken(this.oLookahead.class).data; + + return { + type: Struc.sub_sub, + up: { + type: Struc.char, + value: strPrime, + }, + value: oBase, + style: {supStyle: oSupStyle, subStyle: undefined}, } - return this.WriteSavedTokens(); }; CUnicodeParser.prototype.GetFactorLiteral = function () { @@ -1543,15 +1899,17 @@ { const oDiacritic = this.GetDiacriticsLiteral(); return { - type: MathLiteral.accent.id, + type: Struc.accent, value: oDiacritic, }; } else if (this.IsEntityLiteral() && !this.IsFunctionLiteral()) { let oEntity = this.GetEntityLiteral(); + if (this.IsPrimeLiteral()) + return this.GetPrimeLiteral(oEntity); - if (this.oLookahead.data === " ") + if (this.oLookahead.data === " ") //nbsp this.EatToken(this.oLookahead.class); while (this.IsDiacriticsLiteral()) @@ -1560,15 +1918,11 @@ if (oDiacritic === "''" || oDiacritic === "'") { oEntity = { - type: oLiteralNames.subSupLiteral[num], + type: Struc.sub_sub, value: oEntity, up: oDiacritic, } } - else if (oDiacritic === "̅" && this.IsGetOneBarLiteral(oEntity)) - { - oEntity = this.GetOneBarLiteral(oEntity, oDiacritic); - } //nbsp processing for accents if (oEntity[oEntity.length - 1] && oEntity[oEntity.length - 1].value === String.fromCharCode(160)) //nbsp @@ -1576,13 +1930,13 @@ else if (oEntity.value === String.fromCharCode(160)) oEntity = {}; - oEntity = { - type: MathLiteral.accent.id, + return { + type: Struc.accent, base: oEntity, value: oDiacritic, }; - if (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) + if (this.oLookahead.class === Literals.space.id) this.EatToken(this.oLookahead.class); } @@ -1598,49 +1952,23 @@ else if (this.IsExpSubSupLiteral()) { return this.GetExpSubSupLiteral(); } - if (this.IsArrayLiteral()) { - return this.GetArrayLiteral(); - } - else if (this.IsEqArrayLiteral()) { - return this.GetEqArrayLiteral(); + if (this.IsMatrixLiteral()) { + return this.GetMatrixLiteral(); } }; CUnicodeParser.prototype.IsFactorLiteral = function () { - return this.IsEntityLiteral() || this.IsFunctionLiteral() || this.IsDiacriticsLiteral() || this.IsArrayLiteral() || this.IsEqArrayLiteral() - }; - CUnicodeParser.prototype.IsGetOneBarLiteral = function (oEntity) - { - return oEntity && oEntity.value.length > 0 && - (oEntity.type === oLiteralNames.charLiteral[num] || oEntity.type === oLiteralNames.numberLiteral[num]) - } - CUnicodeParser.prototype.GetOneBarLiteral = function (oEntity, oDiacritic) - { - let newStr = oEntity.value[oEntity.value.length - 1]; - let str = oEntity.value.slice(0, -1); - - return [ - { - type: oLiteralNames.charLiteral[num], - value: str, - }, - { - type: MathLiteral.accent.id, - base: { - type: oLiteralNames.charLiteral[num], - value: newStr, - }, - value: oDiacritic, - } - ]; - + return this.IsEntityLiteral() + || this.IsFunctionLiteral() + || this.IsDiacriticsLiteral() + || this.IsMatrixLiteral() }; CUnicodeParser.prototype.IsSpecial = function (isNoSubSup) { return this.oLookahead.data === isNoSubSup || ( !isNoSubSup && this.IsScriptStandardContentLiteral() || !isNoSubSup && this.IsScriptBelowOrAboveContent() || - !isNoSubSup && this.IsSpecialContent() || + // !isNoSubSup && this.IsSpecialContent() || !isNoSubSup && this.IsDoubleIteratorDegree() ) } @@ -1659,15 +1987,25 @@ { arrFactorList.push(this.GetFactorLiteral()); + if (!this.IsSpaceExit()) + return this.GetContentOfLiteral(arrFactorList); + if (arrFactorList[arrFactorList.length - 1]) - isBreak = arrFactorList[arrFactorList.length - 1].type === 'BracketBlock'; + isBreak = arrFactorList[arrFactorList.length - 1].type === Struc.bracket_block; } - if (this.IsSpecial(isNoSubSup) && arrFactorList[arrFactorList.length - 1]) + if (this.IsSpecial(isNoSubSup) + || this.IsHBracketLiteral() + || this.IsApplicationFunction() + && arrFactorList[arrFactorList.length - 1]) { let oContent = arrFactorList[arrFactorList.length - 1]; - while (this.IsSpecial(isNoSubSup) &&oContent && oContent.value !== " ") + while (this.IsSpecial(isNoSubSup) + || this.IsHBracketLiteral() + || this.IsApplicationFunction() + && oContent + && oContent.value !== " ") { //if next token "_" or "^" proceed as index/degree if (this.oLookahead.data === isNoSubSup || !isNoSubSup && this.IsScriptStandardContentLiteral()) { @@ -1677,21 +2015,84 @@ else if (this.oLookahead.data === isNoSubSup || !isNoSubSup && this.IsScriptBelowOrAboveContent()) { oContent = this.GetScriptBelowOrAboveContent(oContent); } - //if next token like ⁶⁷⁸⁹ or ₂₃₄ proceed as special degree/index - else if (this.oLookahead.data === isNoSubSup || !isNoSubSup && this.IsSpecialContent()) { - oContent = this.GetScriptSpecialContent(oContent); + else if (this.IsHBracketLiteral()) + { + oContent = this.GetHBracketLiteral(oContent); } + //if next token like ⁶⁷⁸⁹ or ₂₃₄ proceed as special degree/index + // else if (this.oLookahead.data === isNoSubSup || !isNoSubSup && this.IsSpecialContent()) { + // oContent = this.GetScriptSpecialContent(oContent); + // } else if (this.oLookahead.data === isNoSubSup || !isNoSubSup && this.IsDoubleIteratorDegree() && oContent.value !== " ") { oContent = this.GetDoubleIteratorDegree(oContent); } + else if (this.IsApplicationFunction()) + { + oContent = this.GetFunctionApplication(oContent); + } } arrFactorList[arrFactorList.length - 1] = oContent; + + if (this.oLookahead.class === Literals.space.id) + { + this.EatToken(this.oLookahead.class); + arrFactorList[arrFactorList.length - 1] = oContent; + return this.GetContentOfLiteral(arrFactorList); + } + } + else if (!isNoSubSup && this.oLookahead.class === Literals.space.id && !this.isSpaceExit) { + let oTemp = this.GetContentOfLiteral(arrFactorList); + oTemp = this.GetContentOfLiteral(oTemp); + if (Array.isArray(oTemp) && oTemp.length > 0 && oTemp[oTemp.length - 1].type !== Literals.char.id) + this.EatToken(this.oLookahead.class); + else if (!Array.isArray(oTemp) && oTemp && oTemp.type !== Literals.char.id) + this.EatToken(this.oLookahead.class); } } return this.GetContentOfLiteral(arrFactorList); }; + CUnicodeParser.prototype.IsApplicationFunction = function() + { + return this.oLookahead.class === Literals.invisible.id; + } + CUnicodeParser.prototype.GetFunctionApplication = function(oBase) + { + let oPr = this.oLookahead.style; + this.EatToken(this.oLookahead.class); + + if (this.IsExpSubSupLiteral()) + { + let oContent = this.GetExpSubSupLiteral(this.GetContentOfLiteral(oBase)); + + if (oBase.type === Struc.func_lim) + { + return { + type: Struc.func_lim, + value: { type: Struc.char, value: oContent.value.value}, + up: oContent.up, + down: oContent.down, + isBelow: oContent.down ? LIMIT_LOW : LIMIT_UP, + style: oContent.style, + third: oContent.third, + }; + } + else + { + return oContent; + } + } + + let oValue = this.GetSpaceExitFunction(this.GetOperandLiteral); + + return { + type: Struc.func, + value: oBase, + third: oValue, + style: oPr, + } + } CUnicodeParser.prototype.IsDoubleIteratorDegree = function () { return this.oLookahead.data === "′" @@ -1705,17 +2106,17 @@ let strIterator = this.oLookahead.data; this.EatToken(this.oLookahead.class); - if (oBase && oBase.type === oLiteralNames.spaceLiteral[num]) + if (oBase && oBase.type === Literals.space.id) { oBase = {}; } return { - type: oLiteralNames.subSupLiteral[num], + type: Struc.sub_sub, value: oBase, down: undefined, up: { - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: strIterator, }, //third: oThirdSoOperand, @@ -1727,30 +2128,31 @@ }; CUnicodeParser.prototype.IsRowLiteral = function () { - return this.IsExpLiteral() || this.oLookahead.class === "&"; + return this.IsExpLiteral() || this.oLookahead.data === "&"; }; - CUnicodeParser.prototype.GetRowLiteral = function () + CUnicodeParser.prototype.GetRowLiteral = function (oStyle) { - let arrRow = []; - let intLength = 0; - let intCount = 0; - let isAlredyGetContent = false; + let arrRow = []; + let intLength = 0; + let intCount = 0; + let isAlreadyGetContent = false; - while (this.IsExpLiteral() || this.oLookahead.class === "&") { - + while (this.IsExpLiteral() || this.oLookahead.data === "&") + { let intCopyOfLength = intLength; - if (this.oLookahead.class !== "&") + if (this.oLookahead.data !== "&") { arrRow.push(this.GetExpLiteral(undefined, true)); intLength++; - isAlredyGetContent = true; + isAlreadyGetContent = true; } else { + oStyle[intCount] = this.oLookahead.style; this.EatToken("&"); - if (isAlredyGetContent === false) + if (isAlreadyGetContent === false) { arrRow.push({}); intCount++; @@ -1763,88 +2165,123 @@ } } - if (intLength !== intCount + 1) { - - for (let j = intLength; j <= intCount; j++) { + if (intLength !== intCount + 1) + { + for (let j = intLength; j <= intCount; j++) + { arrRow.push({}); } } return arrRow; }; - CUnicodeParser.prototype.GetRowsLiteral = function () + CUnicodeParser.prototype.GetRowsLiteral = function (cols, rows) { let arrRows = []; - let nCount = 0; - while (this.IsRowLiteral() || this.oLookahead.class === "@") + let nRow = 0; + let isHasContent = false; + + while (this.IsRowLiteral() || this.oLookahead.data === "@") { - if (this.oLookahead.class === "@") { + if (this.oLookahead.data === "@") + { + cols[nRow] = this.oLookahead.style; this.EatToken("@"); - nCount++; + + if (arrRows.length === 0 && this.oLookahead.data !== "&") + arrRows.push([]); + + nRow++; + + isHasContent = true; } - else { - arrRows.push(this.GetRowLiteral()); + else + { + rows[nRow] = {} + arrRows.push(this.GetRowLiteral(rows[nRow])); } } - if (arrRows.length !== nCount + 1) + if (arrRows.length === 0) { - while (arrRows.length != nCount + 1) + for (let i = 0; i <= nRow; i++) { arrRows.push([]); } } + else if (arrRows.length === 1 && arrRows[0].length === 0) + { + arrRows.push([]); + } + return arrRows }; - CUnicodeParser.prototype.GetArrayLiteral = function () + CUnicodeParser.prototype.GetMatrixLiteral = function () { - let type = this.oLookahead.data; - this.EatToken(this.oLookahead.class) + this.SaveTokensWhileReturn(); + + let oStyles = { + head: this.oLookahead.style, + cols: {}, + rows: {}, + }; + + let isArray = this.oLookahead.data === "█"; + + let strType = this.EatToken(this.oLookahead.class).data; + if (this.oLookahead.data !== "(") { return { - type: oLiteralNames.charLiteral[num], - value: type + type: Literals.char.id, + value: strType, + style: oStyles.head, } } - else { + else + { this.EatToken(this.oLookahead.class); } - const arrMatrixContent = this.GetRowsLiteral(); - - let intMaxLengthOfMatrixRow = -Infinity; - let intIndexOfMaxMatrixRow = -1; + let arrMatrixContent = this.GetRowsLiteral(oStyles.cols, oStyles.rows); + let intMaxLengthOfMatrixRow = -Infinity; + let intIndexOfMaxMatrixRow = -1; - for (let i = 0; i < arrMatrixContent.length; i++) { - let arrContent = arrMatrixContent[i]; - intMaxLengthOfMatrixRow = arrContent.length; - intIndexOfMaxMatrixRow = i; + for (let i = 0; i < arrMatrixContent.length; i++) + { + let arrContent = arrMatrixContent[i]; + intMaxLengthOfMatrixRow = arrContent.length; + intIndexOfMaxMatrixRow = i; } - for (let i = 0; i < arrMatrixContent.length; i++) { - - if (i !== intIndexOfMaxMatrixRow) { - + for (let i = 0; i < arrMatrixContent.length; i++) + { + if (i !== intIndexOfMaxMatrixRow) + { let oRow = arrMatrixContent[i]; - - for (let j = oRow.length; j < intMaxLengthOfMatrixRow; j++) { + for (let j = oRow.length; j < intMaxLengthOfMatrixRow; j++) + { oRow.push({}); } } } - if (this.oLookahead.data === ")") { - this.EatToken(oLiteralNames.opCloseBracket[0]); + if (this.oLookahead.data === ")") + { + this.EatToken(Literals.rBrackets.id); return { - type: oLiteralNames.matrixLiteral[num], - value: arrMatrixContent, + type: isArray ? Struc.array : Struc.matrix, + value: arrMatrixContent, + style: oStyles, }; } + + // get error by parsing matrix or array - write as text + return this.WriteSavedTokens(); }; - CUnicodeParser.prototype.IsArrayLiteral = function () + CUnicodeParser.prototype.IsMatrixLiteral = function () { - return this.oLookahead.class === oLiteralNames.matrixLiteral[0] || this.oLookahead.class === "█"; + return this.oLookahead.class === Literals.matrix.id }; CUnicodeParser.prototype.IsElementLiteral = function () { @@ -1852,27 +2289,19 @@ }; CUnicodeParser.prototype.GetElementLiteral = function () { - const oOperandLiteral = this.GetOperandLiteral(); + let oOperandLiteral = this.GetOperandLiteral(); - if (this.oLookahead.class === oLiteralNames.overLiteral[0]) { - if (!Array.isArray(oOperandLiteral)) - { - return this.GetFractionLiteral(oOperandLiteral) - } - else - { - let frac = this.GetFractionLiteral(oOperandLiteral.pop()); - oOperandLiteral.push(frac); - } - } + while (this.oLookahead.class === Literals.divide.id) + oOperandLiteral = this.GetFractionLiteral(oOperandLiteral); return oOperandLiteral; }; CUnicodeParser.prototype.IsExpLiteral = function () { return this.IsElementLiteral() || - this.oLookahead.class === oLiteralNames.operatorLiteral[0] || - this.oLookahead.class === oLiteralNames.overLiteral[0] || + this.oLookahead.class === Literals.operator.id || + this.oLookahead.class === Literals.divide.id || + this.oLookahead.class === Literals.space.id || this.IsPreScriptLiteral(); }; CUnicodeParser.prototype.GetExpLiteral = function (arrCorrectSymbols, isMatrix) @@ -1884,34 +2313,39 @@ while (this.IsExpLiteral() || (!isMatrix && (this.oLookahead.data === "@" || this.oLookahead.data === "&")) || (arrCorrectSymbols.includes(this.oLookahead.data))) { - if (this.oLookahead.class === oLiteralNames.overLiteral[0]) + if (this.oLookahead.class === Literals.divide.id) { oExpLiteral.push(this.GetFractionLiteral({})); } + else if (this.oLookahead.class === Literals.space.id) + { + oExpLiteral.push(this.GetSpaceLiteral()); + } else if (this.IsElementLiteral()) { let oElement = this.GetElementLiteral(); if (oElement !== null) - { oExpLiteral.push(oElement); - } - else if (this.isOtherLiteral()) - { - oExpLiteral.push(this.otherLiteral()); - } + + if (oElement && oElement.length > 0 && oElement[oElement.length - 1].type !== Literals.char.id) + this.EatOneSpace(); } else if (arrCorrectSymbols.includes(this.oLookahead.data)) { oExpLiteral.push({ - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: this.EatToken(this.oLookahead.class).data }) } + else if (this.oLookahead.class === Literals.operator.id && !this.IsDoubleIteratorDegree()) + { + oExpLiteral.push(this.GetOperatorLiteral()) + } else if (this.IsPreScriptLiteral()) { let oPreScriptLiteral = this.GetPreScriptLiteral(); - if (oPreScriptLiteral.type && oPreScriptLiteral.type === oLiteralNames.preScriptLiteral[num] && oExpLiteral.length > 0 && oExpLiteral[0].value === " ") + if (oPreScriptLiteral.type && oPreScriptLiteral.type === Struc.pre_script && oExpLiteral.length > 0 && oExpLiteral[0].value === " ") { oExpLiteral.length--; } @@ -1923,16 +2357,13 @@ } else if (this.oLookahead.data === "@" || this.oLookahead.data === "&") { + let oPr = this.oLookahead.style; oExpLiteral.push({ - type: oLiteralNames.charLiteral[num], + type: Struc.char, value: this.EatToken(this.oLookahead.class).data, + style: oPr, }) } - - if (this.oLookahead.class === oLiteralNames.operatorLiteral[0] && !this.IsDoubleIteratorDegree()) - { - oExpLiteral.push(this.GetOperatorLiteral()) - } } if (oExpLiteral.length === 1) { @@ -1949,45 +2380,27 @@ * @return {array} Обработанные токены * @constructor */ - CUnicodeParser.prototype.ReadTokensWhileEnd = function (arrTypeOfLiteral, isSpecial) + CUnicodeParser.prototype.ReadTokensWhileEnd = function (arrTypeOfLiteral, type, isSpecial) { let arrLiterals = []; - //todo let isOne = this._ - - // if (isOne) { - // let oLiteral = { - // type: arrTypeOfLiteral[1], - // data: this.EatToken(arrTypeOfLiteral[0]).data, - // }; - // arrLiterals.push(oLiteral); - // } - // else { - let strLiteral = ""; + let styles = []; - while (this.oLookahead.class === arrTypeOfLiteral[0]) + while (this.oLookahead.class === arrTypeOfLiteral.id + && (styles.length === 0 || styles[styles.length - 1].IsStyleEqual(this.oLookahead.style))) { + styles.push(this.oLookahead.style); + if (isSpecial) - { - strLiteral += UnicodeSpecialScript[this.EatToken(arrTypeOfLiteral[0]).data]; - } + strLiteral += UnicodeSpecialScript[this.EatToken(arrTypeOfLiteral.id).data]; else - { - strLiteral += this.oLookahead.data; - this.EatToken(arrTypeOfLiteral[0]); - } + strLiteral += this.EatToken(arrTypeOfLiteral.id).data; } - arrLiterals.push({ - type: arrTypeOfLiteral[num], - value: strLiteral, - }) - // } + arrLiterals.push({type: type, value: strLiteral, style: styles}); if (arrLiterals.length === 1) - { return arrLiterals[0]; - } return arrLiterals }; @@ -1995,18 +2408,11 @@ { const token = this.oLookahead; - if (token === null) { - console.log('Unexpected end of input, expected: "' + tokenType + '"'); - } - - if (token.class !== tokenType) { - console.log('Unexpected token: "' + token.class + '", expected: "' + tokenType + '"'); - } - if (this.isSaveTokens) this.arrSavedTokens.push(this.oLookahead); - this.oLookahead = this.oTokenizer.GetNextToken(); + this.prevLookahead = this.oLookahead; + this.oLookahead = this.oTokenizer.GetNextToken(); return token; }; CUnicodeParser.prototype.GetContentOfLiteral = function (oContent) @@ -2022,9 +2428,9 @@ }; CUnicodeParser.prototype.SkipSpace = function () { - while (this.oLookahead.class === oLiteralNames.spaceLiteral[0]) + while (this.oLookahead.class === Literals.space.id) { - this.EatToken(oLiteralNames.spaceLiteral[0]); + this.EatToken(Literals.space.id); } }; CUnicodeParser.prototype.SaveTokensWhileReturn = function () @@ -2039,16 +2445,19 @@ CUnicodeParser.prototype.WriteSavedTokens = function () { let intSavedTokensLength = this.arrSavedTokens.length; - let strOutput = ""; + let arrOutput = []; + for (let i = 0; i < intSavedTokensLength; i++) { - strOutput += this.arrSavedTokens[i].data; + let oCurrentEl = this.arrSavedTokens[i]; + arrOutput.push({ + type: Struc.char, + value: oCurrentEl.data, + style: oCurrentEl.style, + }) } this.isSaveTokens = false; - return { - type: oLiteralNames.charLiteral[num], - value: strOutput, - }; + return arrOutput; }; function CUnicodeConverter(str, oContext, isGetOnlyTokens) diff --git a/word/Math/accent.js b/word/Math/accent.js index 37b4b23b12..fb2703eddf 100644 --- a/word/Math/accent.js +++ b/word/Math/accent.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -428,10 +428,15 @@ CAccentBreve.prototype.drawPath = function(pGraphics, XX, YY) pGraphics._l(XX[22], YY[22]); }; -function CMathAccentPr() +function CMathAccentPr(ctrPr) { - this.chr = null; - this.chrType = null; + this.chr = null; + this.chrType = null; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathAccentPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } CMathAccentPr.prototype.Set_FromObject = function(Obj) { @@ -444,6 +449,8 @@ CMathAccentPr.prototype.Set_FromObject = function(Obj) this.chrType = Obj.chrType; else this.chrType = null; + + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathAccentPr.prototype.Copy = function() { @@ -451,6 +458,7 @@ CMathAccentPr.prototype.Copy = function() NewPr.chr = this.chr; NewPr.chrType = this.chrType; + NewPr.ctrPr = this.ctrPr; return NewPr; }; @@ -461,6 +469,9 @@ CMathAccentPr.prototype.Write_ToBinary = function(Writer) Writer.WriteLong(null === this.chr ? -1 : this.chr); Writer.WriteLong(null === this.chrType ? -1 : this.chrType); + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathAccentPr.prototype.Read_FromBinary = function(Reader) { @@ -472,6 +483,11 @@ CMathAccentPr.prototype.Read_FromBinary = function(Reader) this.chr = -1 === chr ? null : chr; this.chrType = -1 === chrType ? null : chrType; + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -484,21 +500,21 @@ function CAccent(props) { CMathBase.call(this); - this.Id = AscCommon.g_oIdCounter.Get_NewId(); + this.Id = AscCommon.g_oIdCounter.Get_NewId(); - //// Properties - this.Pr = new CMathAccentPr(); + //// Properties + this.Pr = new CMathAccentPr(this.CtrPrp); - this.gap = 0; + this.gap = 0; - ///////////////// + ///////////////// - this.operator = new COperator(OPER_ACCENT); + this.operator = new COperator(OPER_ACCENT); - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); - AscCommon.g_oTableId.Add( this, this.Id ); + AscCommon.g_oTableId.Add( this, this.Id ); } CAccent.prototype = Object.create(CMathBase.prototype); CAccent.prototype.constructor = CAccent; @@ -688,22 +704,37 @@ CAccent.prototype.Get_InterfaceProps = function() { return new CMathMenuAccent(this); }; -CAccent.prototype.GetTextOfElement = function(isLaTeX) { - var strTemp = ""; - var strBase = this.getBase().GetMultipleContentForGetText(isLaTeX, true); - var strAccent = this.Pr.chr === null ? "̂" : String.fromCharCode(this.Pr.chr); - var strStartBracet = (strBase.length > 1 || isLaTeX) ? this.GetStartBracetForGetTextContent(isLaTeX) : ""; - var strCloseBracet = (strBase.length > 1 || isLaTeX) ? this.GetEndBracetForGetTextContent(isLaTeX) : ""; +/** + * + * @param {MathTextAndStyles | boolean} oMathText + * @constructor + */ +CAccent.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); + + let oBase = this.getBase(); + + let strAccent = this.Pr.chr + ? String.fromCharCode(this.Pr.chr) + : String.fromCharCode(this.operator.code); - if (isLaTeX) - { - var intAccentCode = strAccent.charCodeAt(); - switch (intAccentCode) { + if (oMathText.IsLaTeX()) + { + let oStartPos; + + if (this.Pr.chr === 831) + oStartPos = oMathText.Add(oBase, true, 0); + else + oStartPos = oMathText.Add(oBase, true, 2); + + switch (this.Pr.chr) + { case 0: strAccent = '\\hat'; break; case 768: strAccent = '\\grave'; break; case 769: strAccent = '\\acute'; break; case 771: strAccent = '\\tilde'; break; - case 831: strAccent = '\\bar{\\bar'; break; + case 831: strAccent = "\\bar{\\bar{"; break; case 773: strAccent = '\\bar'; break; case 774: strAccent = '\\breve'; break; case 775: strAccent = '\\dot'; break; @@ -714,21 +745,21 @@ CAccent.prototype.GetTextOfElement = function(isLaTeX) { case 8401: strAccent = '\\hvec'; break; case 8406: strAccent = '\\lvec'; break; case 8407: strAccent = '\\vec'; break; - case 8417: strAccent = '\\tvec'; break; + case 8417: strAccent = '\\overleftrightarrow'; break; default: strAccent = '\\hat'; break; } - strTemp = strAccent + strStartBracet + strBase + strCloseBracet + oMathText.AddBefore(oStartPos, new AscMath.MathText(strAccent, oMathText.GetStyleFromFirst())); - if (intAccentCode === 831) - strTemp += "}"; + if (this.Pr.chr === 831) + oStartPos = oMathText.AddText(new AscMath.MathText('}}', this)); } - else - { - if (strBase.length === 0) - strBase = "()"; - strTemp = strStartBracet + strBase + strCloseBracet + strAccent; + else + { + oMathText.Add(oBase, true); + let oAccentText = new AscMath.MathText(strAccent, this); + oMathText.AddText(oAccentText); } - return strTemp; + return oMathText; }; /** @@ -751,3 +782,5 @@ window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CAccent = CAccent; window["CMathMenuAccent"] = CMathMenuAccent; + +AscMath.Accent = CAccent; diff --git a/word/Math/base.js b/word/Math/base.js index 397a2e2493..5840bd55ac 100644 --- a/word/Math/base.js +++ b/word/Math/base.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -34,7 +34,6 @@ // Import var g_oTextMeasurer = AscCommon.g_oTextMeasurer; -var History = AscCommon.History; var c_oAscRevisionsChangeType = Asc.c_oAscRevisionsChangeType; /** @enum {number} */ var c_oAscMathInterfaceMatrixRowRule = { @@ -302,6 +301,13 @@ CMathBase.prototype.SetPlaceholder = function() } } }; +CMathBase.prototype.CheckRunContent = function(fCheck) +{ + for(var i = 0; i < this.Content.length; ++i) + { + this.Content[i].CheckRunContent(fCheck); + } +}; CMathBase.prototype.addMCToContent = function(elements) { if(elements.length == this.nRow*this.nCol) @@ -725,6 +731,13 @@ CMathBase.prototype.recalculateSize = function(oMeasure, RPI) this.size.height = height; this.size.ascent = ascent; }; +CMathBase.prototype.ProcessingOldEquationConvert = function () +{ + for (let i = 0; i < this.Content.length; i++) + { + this.Content[i].ProcessingOldEquationConvert(); + } +} CMathBase.prototype.recalculateAllSize = function(textMeasurer) { this.setDistance(); @@ -1045,6 +1058,20 @@ CMathBase.prototype.Apply_TextPrToCtrPr = function(TextPr, IncFontSize, ApplyToA if (undefined !== TextPr.Shd) this.Set_Shd(null === TextPr.Shd ? undefined : TextPr.Shd); + if (undefined !== TextPr.Color) + { + this.Set_Color(TextPr.Color); + + if(null !== TextPr.Color) + { + if (this.CtrPrp.Unifill) + this.Set_Unifill(undefined); + + if (this.CtrPrp.TextFill) + this.Set_TextFill(undefined); + } + } + if (undefined !== TextPr.Unifill) { this.Set_Unifill(null === TextPr.Unifill ? undefined : TextPr.Unifill.createDuplicate()); @@ -1059,9 +1086,6 @@ CMathBase.prototype.Apply_TextPrToCtrPr = function(TextPr, IncFontSize, ApplyToA } } - if (undefined !== TextPr.Color) - this.Set_Color(TextPr.Color); - if (undefined !== TextPr.TextOutline) this.Set_TextOutline(null === TextPr.TextOutline ? undefined : TextPr.TextOutline); @@ -1122,7 +1146,7 @@ CMathBase.prototype.Set_FontSizeCtrPrp = function(Value) if (Value !== this.CtrPrp.FontSize) { - History.Add(new CChangesMathBaseFontSize(this, this.CtrPrp.FontSize, Value)); + AscCommon.History.Add(new CChangesMathBaseFontSize(this, this.CtrPrp.FontSize, Value)); this.raw_SetFontSize(Value); } }; @@ -1133,7 +1157,7 @@ CMathBase.prototype.Set_Color = function(Value) if ((undefined === Value && undefined !== this.CtrPrp.Color) || (Value instanceof CDocumentColor && (undefined === this.CtrPrp.Color || false === Value.Compare(this.CtrPrp.Color)))) { - History.Add(new CChangesMathBaseColor(this, this.CtrPrp.Color, Value)); + AscCommon.History.Add(new CChangesMathBaseColor(this, this.CtrPrp.Color, Value)); this.raw_SetColor(Value); } }; @@ -1144,7 +1168,7 @@ CMathBase.prototype.Set_Unifill = function(Value) if ((undefined === Value && undefined !== this.CtrPrp.Unifill) || (Value instanceof AscFormat.CUniFill && (undefined === this.CtrPrp.Unifill || false === AscFormat.CompareUnifillBool(this.CtrPrp.Unifill, Value)))) { - History.Add(new CChangesMathBaseUnifill(this, this.CtrPrp.Unifill, Value)); + AscCommon.History.Add(new CChangesMathBaseUnifill(this, this.CtrPrp.Unifill, Value)); this.raw_SetUnifill(Value); } }; @@ -1155,7 +1179,7 @@ CMathBase.prototype.Set_TextFill = function(Value) if ((undefined === Value && undefined !== this.CtrPrp.TextFill) || (Value instanceof AscFormat.CUniFill && (undefined === this.CtrPrp.TextFill || false === AscFormat.CompareUnifillBool(this.CtrPrp.TextFill, Value)))) { - History.Add(new CChangesMathBaseTextFill(this, this.CtrPrp.TextFill, Value)); + AscCommon.History.Add(new CChangesMathBaseTextFill(this, this.CtrPrp.TextFill, Value)); this.raw_SetTextFill(Value); } }; @@ -1166,7 +1190,7 @@ CMathBase.prototype.Set_TextOutline = function(Value) if ((undefined === Value && undefined !== this.CtrPrp.TextOutline) || (Value instanceof AscFormat.CLn && (undefined === this.CtrPrp.TextOutline || false === Value.IsIdentical(this.CtrPrp.TextOutline)))) { - History.Add(new CChangesMathBaseTextOutline(this, this.CtrPrp.TextOutline, Value)); + AscCommon.History.Add(new CChangesMathBaseTextOutline(this, this.CtrPrp.TextOutline, Value)); this.raw_SetTextOutline(Value); } }; @@ -1178,7 +1202,7 @@ CMathBase.prototype.Set_HighLight = function(Value) var OldValue = this.CtrPrp.HighLight; if ((undefined === Value && undefined !== OldValue) || (highlight_None === Value && highlight_None !== OldValue) || (Value instanceof CDocumentColor && (undefined === OldValue || highlight_None === OldValue || false === Value.Compare(OldValue)))) { - History.Add(new CChangesMathBaseHighLight(this, this.CtrPrp.HighLight, Value)); + AscCommon.History.Add(new CChangesMathBaseHighLight(this, this.CtrPrp.HighLight, Value)); this.raw_SetHighLight(Value); } }; @@ -1190,7 +1214,7 @@ CMathBase.prototype.SetHighlightColor = function(Value) var OldValue = this.CtrPrp.HighlightColor; if (OldValue && !OldValue.IsIdentical(Value) || Value && !Value.IsIdentical(OldValue)) { - History.Add(new CChangesMathBaseHighlightColor(this, OldValue, Value)); + AscCommon.History.Add(new CChangesMathBaseHighlightColor(this, OldValue, Value)); this.raw_SetHighlightColor(Value); } }; @@ -1201,7 +1225,7 @@ CMathBase.prototype.Set_Shd = function(Shd) if (!(undefined === this.CtrPrp.Shd && undefined === Shd) && !(undefined !== this.CtrPrp.Shd && undefined !== Shd && true === this.CtrPrp.Shd.Compare(Shd))) { - History.Add(new CChangesMathBaseShd(this, this.CtrPrp.Shd, Shd)); + AscCommon.History.Add(new CChangesMathBaseShd(this, this.CtrPrp.Shd, Shd)); this.raw_SetShd(Shd); } }; @@ -1212,7 +1236,7 @@ CMathBase.prototype.SetUnderline = function(Value) if (Value !== this.CtrPrp.Underline) { - History.Add(new CChangesMathBaseUnderline(this, this.CtrPrp.Underline, Value)); + AscCommon.History.Add(new CChangesMathBaseUnderline(this, this.CtrPrp.Underline, Value)); this.raw_SetUnderline(Value); } }; @@ -1223,7 +1247,7 @@ CMathBase.prototype.SetStrikeout = function(Value) if (Value !== this.CtrPrp.Strikeout) { - History.Add(new CChangesMathBaseStrikeout(this, this.CtrPrp.Strikeout, Value)); + AscCommon.History.Add(new CChangesMathBaseStrikeout(this, this.CtrPrp.Strikeout, Value)); this.raw_SetStrikeout(Value); } }; @@ -1234,7 +1258,7 @@ CMathBase.prototype.SetDoubleStrikeout = function(Value) if (Value !== this.CtrPrp.DStrikeout) { - History.Add(new CChangesMathBaseDoubleStrikeout(this, this.CtrPrp.DStrikeout, Value)); + AscCommon.History.Add(new CChangesMathBaseDoubleStrikeout(this, this.CtrPrp.DStrikeout, Value)); this.raw_Set_DoubleStrikeout(Value); } }; @@ -1245,7 +1269,7 @@ CMathBase.prototype.SetBold = function(Value) if (Value !== this.CtrPrp.Bold) { - History.Add(new CChangesMathBaseBold(this, this.CtrPrp.Bold, Value)); + AscCommon.History.Add(new CChangesMathBaseBold(this, this.CtrPrp.Bold, Value)); this.raw_SetBold(Value); } }; @@ -1256,7 +1280,7 @@ CMathBase.prototype.SetItalic = function(Value) if (Value !== this.CtrPrp.Italic) { - History.Add(new CChangesMathBaseItalic(this, this.CtrPrp.Italic, Value)); + AscCommon.History.Add(new CChangesMathBaseItalic(this, this.CtrPrp.Italic, Value)); this.raw_SetItalic(Value); } }; @@ -1267,7 +1291,7 @@ CMathBase.prototype.SetRFontsAscii = function(Value) if (this.CtrPrp.RFonts.Ascii !== Value) { - History.Add(new CChangesMathBaseRFontsAscii(this, this.CtrPrp.RFonts.Ascii, Value)); + AscCommon.History.Add(new CChangesMathBaseRFontsAscii(this, this.CtrPrp.RFonts.Ascii, Value)); this.raw_SetRFontsAscii(Value); } }; @@ -1278,7 +1302,7 @@ CMathBase.prototype.SetRFontsHAnsi = function(Value) if (this.CtrPrp.RFonts.HAnsi !== Value) { - History.Add(new CChangesMathBaseRFontsHAnsi(this, this.CtrPrp.RFonts.HAnsi, Value)); + AscCommon.History.Add(new CChangesMathBaseRFontsHAnsi(this, this.CtrPrp.RFonts.HAnsi, Value)); this.raw_SetRFontsHAnsi(Value); } }; @@ -1289,7 +1313,7 @@ CMathBase.prototype.SetRFontsCS = function(Value) if (this.CtrPrp.RFonts.CS !== Value) { - History.Add(new CChangesMathBaseRFontsCS(this, this.CtrPrp.RFonts.CS, Value)); + AscCommon.History.Add(new CChangesMathBaseRFontsCS(this, this.CtrPrp.RFonts.CS, Value)); this.raw_SetRFontsCS(Value); } }; @@ -1300,7 +1324,7 @@ CMathBase.prototype.SetRFontsEastAsia = function(Value) if (this.CtrPrp.RFonts.EastAsia !== Value) { - History.Add(new CChangesMathBaseRFontsEastAsia(this, this.CtrPrp.RFonts.EastAsia, Value)); + AscCommon.History.Add(new CChangesMathBaseRFontsEastAsia(this, this.CtrPrp.RFonts.EastAsia, Value)); this.raw_SetRFontsEastAsia(Value); } }; @@ -1311,7 +1335,7 @@ CMathBase.prototype.SetRFontsHint = function(Value) if (this.CtrPrp.RFonts.Hint !== Value) { - History.Add(new CChangesMathBaseRFontsHint(this, this.CtrPrp.RFonts.Hint, Value)); + AscCommon.History.Add(new CChangesMathBaseRFontsHint(this, this.CtrPrp.RFonts.Hint, Value)); this.raw_SetRFontsHint(Value); } }; @@ -1846,70 +1870,80 @@ CMathBase.prototype.Draw_HighLights = function(drawState, bAll) }; CMathBase.prototype.Draw_Lines = function(PDSL) { - var CtrPrp = this.Get_CompiledCtrPrp(false); + var CtrPrp = this.Get_CompiledCtrPrp(false); - var aStrikeout = PDSL.Strikeout; - var aDStrikeout = PDSL.DStrikeout; + var aStrikeout = PDSL.Strikeout; + var aDStrikeout = PDSL.DStrikeout; - var ReviewType = this.GetReviewType(); - var bAddReview = reviewtype_Add === ReviewType ? true : false; - var bRemReview = reviewtype_Remove === ReviewType ? true : false; - var ReviewColor = null; - if (bAddReview || bRemReview) - ReviewColor = this.ReviewInfo.Get_Color(); + var ReviewType = this.GetReviewType(); + var bAddReview = reviewtype_Add === ReviewType ? true : false; + var bRemReview = reviewtype_Remove === ReviewType ? true : false; + var ReviewColor = null; - var ArgSize = this.Get_CompiledArgSize(); - var fontCoeff = MatGetKoeffArgSize(CtrPrp.FontSize, ArgSize.value); + if (bAddReview || bRemReview) + ReviewColor = this.ReviewInfo.Get_Color(); - // вычисляем координату Y и LineW также как в Run - var X = PDSL.X; - var Y = PDSL.Baseline - CtrPrp.FontSize * fontCoeff * g_dKoef_pt_to_mm * 0.27; + var ArgSize = this.Get_CompiledArgSize(); + var fontCoeff = MatGetKoeffArgSize(CtrPrp.FontSize, ArgSize.value); - var LineW = (CtrPrp.FontSize / 18) * g_dKoef_pt_to_mm; + // вычисляем координату Y и LineW также как в Run + var X = PDSL.X; + var Y = PDSL.Baseline - CtrPrp.FontSize * fontCoeff * g_dKoef_pt_to_mm * 0.27; + var LineW = (CtrPrp.FontSize / 18) * g_dKoef_pt_to_mm; + var Para = PDSL.Paragraph; - var Para = PDSL.Paragraph; + // set aStrikeout && aDStrikeout + if (true === bRemReview || true === CtrPrp.Strikeout) + aStrikeout.set(Y, LineW); + else if (true === CtrPrp.DStrikeout) + aDStrikeout.set(Y, LineW); - var BgColor = PDSL.BgColor; - if (CtrPrp.Shd && !CtrPrp.Shd.IsNil()) - BgColor = CtrPrp.Shd.GetSimpleColor(Para.GetTheme(), Para.GetColorMap()); + var BgColor = PDSL.BgColor; + if (CtrPrp.Shd && !CtrPrp.Shd.IsNil()) + BgColor = CtrPrp.Shd.GetSimpleColor(Para.GetTheme(), Para.GetColorMap()); - var AutoColor = ( undefined != BgColor && false === BgColor.Check_BlackAutoColor() ? new CDocumentColor( 255, 255, 255, false ) : new CDocumentColor( 0, 0, 0, false ) ); - var CurColor, RGBA, Theme = this.Paragraph.Get_Theme(), ColorMap = this.Paragraph.Get_ColorMap(); + var AutoColor = ( undefined != BgColor && false === BgColor.Check_BlackAutoColor() ) + ? new CDocumentColor( 255, 255, 255, false) + : new CDocumentColor( 0, 0, 0, false ); - // Выставляем цвет обводки - if ( true === PDSL.VisitedHyperlink && ( undefined === this.Pr.Color && undefined === this.Pr.Unifill ) ) - CurColor = new CDocumentColor( 128, 0, 151 ); - else if ( true === CtrPrp.Color.Auto && !CtrPrp.Unifill) - CurColor = new CDocumentColor( AutoColor.r, AutoColor.g, AutoColor.b ); - else - { - if(CtrPrp.Unifill) - { - CtrPrp.Unifill.check(Theme, ColorMap); - RGBA = CtrPrp.Unifill.getRGBAColor(); - CurColor = new CDocumentColor( RGBA.R, RGBA.G, RGBA.B ); - } - else - { - CurColor = new CDocumentColor( CtrPrp.Color.r, CtrPrp.Color.g, CtrPrp.Color.b ); - } - } + var CurColor, + RGBA, + Theme = this.Paragraph.Get_Theme(), + ColorMap = this.Paragraph.Get_ColorMap(); - var CurLine = PDSL.Line - this.StartLine; - var CurRange = ( 0 === CurLine ? PDSL.Range - this.StartRange : PDSL.Range ); + // Выставляем цвет обводки + if ( true === PDSL.VisitedHyperlink && ( undefined === this.Pr.Color && undefined === this.Pr.Unifill ) ) + CurColor = new CDocumentColor( 128, 0, 151 ); + else if ( true === CtrPrp.Color.Auto && !CtrPrp.Unifill) + CurColor = new CDocumentColor( AutoColor.r, AutoColor.g, AutoColor.b ); + else + { + if(CtrPrp.Unifill) + { + CtrPrp.Unifill.check(Theme, ColorMap); + RGBA = CtrPrp.Unifill.getRGBAColor(); + CurColor = new CDocumentColor( RGBA.R, RGBA.G, RGBA.B ); + } + else + { + CurColor = new CDocumentColor( CtrPrp.Color.r, CtrPrp.Color.g, CtrPrp.Color.b ); + } + } - var Bound = this.Bounds.Get_LineBound(CurLine, CurRange); + var CurLine = PDSL.Line - this.StartLine; + var CurRange = ( 0 === CurLine ? PDSL.Range - this.StartRange : PDSL.Range ); + var Bound = this.Bounds.Get_LineBound(CurLine, CurRange); - if (true === bRemReview) - aStrikeout.Add(Y, Y, X, X + Bound.W, LineW, ReviewColor.r, ReviewColor.g, ReviewColor.b); - else if ( true === CtrPrp.DStrikeout ) - aDStrikeout.Add( Y, Y, X, X + Bound.W, LineW, CurColor.r, CurColor.g, CurColor.b ); - else if ( true === CtrPrp.Strikeout ) - aStrikeout.Add( Y, Y, X, X + Bound.W, LineW, CurColor.r, CurColor.g, CurColor.b ); + if ( true === bRemReview ) + aStrikeout.Add( X, X + Bound.W, CurColor ); + else if ( true === CtrPrp.DStrikeout ) + aDStrikeout.Add( X, X + Bound.W, CurColor ); + else if ( true === CtrPrp.Strikeout ) + aStrikeout.Add( X, X + Bound.W, CurColor ); - this.Draw_LinesForContent(PDSL); + this.Draw_LinesForContent(PDSL); - PDSL.X = Bound.X + Bound.W; + PDSL.X = Bound.X + Bound.W; }; CMathBase.prototype.Draw_LinesForContent = function(PDSL) { @@ -2015,13 +2049,13 @@ CMathBase.prototype.Make_ShdColor = function(PDSE, CurTextPr) }; CMathBase.prototype.protected_AddToContent = function(Pos, Items, bUpdatePosition) { - History.Add(new CChangesMathBaseAddItems(this, Pos, Items)); + AscCommon.History.Add(new CChangesMathBaseAddItems(this, Pos, Items)); this.raw_AddToContent(Pos, Items, bUpdatePosition); this.private_UpdatePosOnAdd(Pos, bUpdatePosition); }; CMathBase.prototype.protected_RemoveItems = function(Pos, Items, bUpdatePosition) { - History.Add(new CChangesMathBaseRemoveItems(this, Pos, Items)); + AscCommon.History.Add(new CChangesMathBaseRemoveItems(this, Pos, Items)); var Count = Items.length; this.raw_RemoveFromContent(Pos, Count); @@ -2479,7 +2513,7 @@ CMathBase.prototype.SetReviewType = function(Type, isSetToContent) var NewInfo = new CReviewInfo(); NewInfo.Update(); - History.Add(new CChangesMathBaseReviewType(this, {Type : this.ReviewType, Info : this.ReviewInfo}, {Type : Type, Info : NewInfo})); + AscCommon.History.Add(new CChangesMathBaseReviewType(this, {Type : this.ReviewType, Info : this.ReviewInfo}, {Type : Type, Info : NewInfo})); this.raw_SetReviewType(Type, NewInfo); } }; @@ -2490,7 +2524,7 @@ CMathBase.prototype.SetReviewTypeWithInfo = function(ReviewType, ReviewInfo) CParagraphContentWithParagraphLikeContent.prototype.SetReviewTypeWithInfo.apply(this, arguments); - History.Add(new CChangesMathBaseReviewType(this, {Type : this.ReviewType, Info : this.ReviewInfo}, {Type : ReviewType, Info : ReviewInfo})); + AscCommon.History.Add(new CChangesMathBaseReviewType(this, {Type : this.ReviewType, Info : this.ReviewInfo}, {Type : ReviewType, Info : ReviewInfo})); this.raw_SetReviewType(ReviewType, ReviewInfo); }; CMathBase.prototype.CheckRevisionsChanges = function(Checker, ContentPos, Depth) @@ -2803,22 +2837,17 @@ CMathBase.prototype.ConvertOperatorToStr = function(operator) } return OPERATOR_EMPTY === operator ? "" : AscCommon.convertUnicodeToUTF16([operator]); }; -CMathBase.prototype.GetTextOfElement = function() +CMathBase.prototype.GetTextOfElement = function(oMathText) { - return ""; -}; - -CMathBase.prototype.GetStartBracetForGetTextContent = function(isLaTeX) { - if (isLaTeX) - return '{'; - else - return '('; + oMathText = new AscMath.MathTextAndStyles(oMathText); + return oMathText; }; -CMathBase.prototype.GetEndBracetForGetTextContent = function(isLaTeX) { - if (isLaTeX) - return '}'; - else - return ')'; +CMathBase.prototype.Set_RFont_ForMath = function() +{ + this.SetRFontsAscii({Name : "Cambria Math", Index : -1}); + this.SetRFontsCS({Name : "Cambria Math", Index : -1}); + this.SetRFontsEastAsia({Name : "Cambria Math", Index : -1}); + this.SetRFontsHAnsi({Name : "Cambria Math", Index : -1}); }; function CMathBasePr() @@ -3237,6 +3266,150 @@ CMathMenuBase.prototype.Set_DeleteForcedBreak = function() this.CanDeleteForcedBreak = true; }; + +/** + * ctrlPr - Control Properties + * @constructor + */ +function CMathCtrlPr(ctrPr) +{ + this.rPr = ctrPr || new CTextPr(); //по умолчанию должен наследоваться от текущего абзаца + this.del = new CTextPr(); + this.ins = new CTextPr(); +} + +/** + * Set Run Properties + * rPr set properties of control characters that cannot be selected. + * Examples of control characters are n-ary operators (excluding their limits and bases), + * fraction bars (excluding the numerator and denominator), and grouping characters (excluding the base). + * @param rPr {CTextPr} + * @constructor + */ +CMathCtrlPr.prototype.SetRPr = function (rPr) +{ + if (!rPr) + return; + this.rPr = rPr; +} +/** + * Get current rPr + * @return {CTextPr} + * @constructor + */ +CMathCtrlPr.prototype.GetRPr = function () +{ + return this.rPr; +} +/** + * Deleted Math Control Character + * + * This element specifies that the Office Open XML Math control character which contains this element was + * deleted and tracked as a revision + * + * @param delPr {CTextPr} + * @constructor + */ +CMathCtrlPr.prototype.SetDel = function (delPr) +{ + this.del = delPr +} +/** + * Inserted Math Control Character + * + * This element specifies that the Office Open XML Math control character which contains this element was + * inserted and tracked as a revision. + * @param insPr {CTextPr} + * @constructor + */ +CMathCtrlPr.prototype.SetIns = function (insPr) +{ + this.ins = insPr; +} +/** + * + * @param Obj {Object} + * @param Obj.rPr {CTextPr | undefined} + * @param Obj.delPr {CTextPr | undefined} + * @param Obj.insPr {CTextPr | undefined} + * @constructor + */ +CMathCtrlPr.prototype.SetFromObject = function (Obj) +{ + if (Obj.rPr !== undefined) + { + this.rPr = Obj.rPr; + } + + if (Obj.delPr !== undefined) + { + this.delPr = Obj.delPr; + } + + if (Obj.insPr !== undefined) + { + this.insPr = Obj.insPr; + } +} + +CMathCtrlPr.prototype.Write_ToBinary = function (Writer) +{ + if (this.rPr) + { + Writer.WriteBool(true); + this.rPr.WriteToBinary(Writer); + } + else + { + Writer.WriteBool(false); + } + + if (this.del) + { + Writer.WriteBool(true); + this.del.WriteToBinary(Writer); + } + else + { + Writer.WriteBool(false); + } + + if (this.ins) + { + Writer.WriteBool(true); + this.ins.WriteToBinary(Writer); + } + else + { + Writer.WriteBool(false); + } +} + +CMathCtrlPr.prototype.Read_FromBinary = function (Reader) +{ + this.rPr = undefined; + if (Reader.GetBool()) + { + this.rPr = new CTextPr(); + this.rPr.ReadFromBinary(Reader); + } + + this.del = undefined; + if (Reader.GetBool()) + { + this.del = new CTextPr(); + this.del.ReadFromBinary(Reader); + } + + this.ins = undefined; + if (Reader.GetBool()) + { + this.ins = new CTextPr(); + this.ins.ReadFromBinary(Reader); + } +}; + +window["CMathCtrlPr"] = CMathCtrlPr; window["CMathMenuBase"] = CMathMenuBase; CMathMenuBase.prototype["get_Type"] = CMathMenuBase.prototype.get_Type; CMathMenuBase.prototype["remove_AccentCharacter"] = CMathMenuBase.prototype.remove_AccentCharacter; diff --git a/word/Math/borderBox.js b/word/Math/borderBox.js index 06287ff618..acc87a0235 100644 --- a/word/Math/borderBox.js +++ b/word/Math/borderBox.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -47,6 +47,10 @@ CMathBreak.prototype.Set_FromObject = function(Obj) this.alnAt = Obj.alnAt; } }; +CMathBreak.prototype.IsEqual = function (oMathBrk) +{ + return oMathBrk && oMathBrk.alnAt === this.alnAt; +} CMathBreak.prototype.Copy = function() { var NewMBreak = new CMathBreak(); @@ -119,16 +123,21 @@ CMathBreak.prototype.Read_FromBinary = function(Reader) }; -function CMathBorderBoxPr() +function CMathBorderBoxPr(ctrPr) +{ + this.hideBot = false; + this.hideLeft = false; + this.hideRight = false; + this.hideTop = false; + this.strikeBLTR = false; + this.strikeH = false; + this.strikeTLBR = false; + this.strikeV = false; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathBorderBoxPr.prototype.GetRPr = function () { - this.hideBot = false; - this.hideLeft = false; - this.hideRight = false; - this.hideTop = false; - this.strikeBLTR = false; - this.strikeH = false; - this.strikeTLBR = false; - this.strikeV = false; + return this.ctrPr.GetRPr(); } CMathBorderBoxPr.prototype.Set_FromObject = function(Obj) { @@ -155,6 +164,9 @@ CMathBorderBoxPr.prototype.Set_FromObject = function(Obj) if (undefined !== Obj.strikeV && null !== Obj.strikeV) this.strikeV = Obj.strikeV; + + if (undefined !== Obj.ctrPrp && null !== Obj.ctrPrp) + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathBorderBoxPr.prototype.Copy = function() { @@ -167,6 +179,7 @@ CMathBorderBoxPr.prototype.Copy = function() NewPr.strikeH = this.strikeH; NewPr.strikeTLBR = this.strikeTLBR; NewPr.strikeV = this.strikeV; + NewPr.ctrPr = this.ctrPr; return NewPr; }; @@ -189,6 +202,8 @@ CMathBorderBoxPr.prototype.Write_ToBinary = function(Writer) Writer.WriteBool(this.strikeH); Writer.WriteBool(this.strikeTLBR); Writer.WriteBool(this.strikeV); + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathBorderBoxPr.prototype.Read_FromBinary = function(Reader) { @@ -209,6 +224,10 @@ CMathBorderBoxPr.prototype.Read_FromBinary = function(Reader) this.strikeH = Reader.GetBool(); this.strikeTLBR = Reader.GetBool(); this.strikeV = Reader.GetBool(); + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -223,14 +242,14 @@ function CBorderBox(props) this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.gapBrd = 0; + this.gapBrd = 0; - this.Pr = new CMathBorderBoxPr(); + this.Pr = new CMathBorderBoxPr(this.CtrPrp); - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); - AscCommon.g_oTableId.Add(this, this.Id); + AscCommon.g_oTableId.Add(this, this.Id); } CBorderBox.prototype = Object.create(CMathBase.prototype); CBorderBox.prototype.constructor = CBorderBox; @@ -559,18 +578,31 @@ CBorderBox.prototype.Get_InterfaceProps = function() { return new CMathMenuBorderBox(this); }; -CBorderBox.prototype.GetTextOfElement = function(isLaTeX) { - var strTemp = ""; - var strBase = this.getBase().GetMultipleContentForGetText(isLaTeX, true); - var strStartBracet = (strBase.length > 1 || isLaTeX) ? this.GetStartBracetForGetTextContent(isLaTeX) : ""; - var strCloseBracet = (strBase.length > 1 || isLaTeX) ? this.GetEndBracetForGetTextContent(isLaTeX) : ""; - - if (true === isLaTeX) - strTemp = '\\rect' + strStartBracet + strBase + strCloseBracet; +/** + * + * @param {MathTextAndStyles | boolean} oMathText + * @constructor + */ +CBorderBox.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); + + let oBase = this.getBase(); + + if (oMathText.IsLaTeX()) + { + let oPos = oMathText.Add(oBase, true, 1); + oMathText.AddBefore(oPos, new AscMath.MathText("\\rect", oMathText.GetStyleFromFirst())); + } else - strTemp = "▭" + strStartBracet + strBase + strCloseBracet; + { + let oBoxStr = new AscMath.MathText("▭", this) + oMathText.AddText(oBoxStr); + oMathText.SetGlobalStyle(this, true); + oMathText.Add(oBase, true, 2) + } - return strTemp; + return oMathText; }; /** @@ -647,13 +679,18 @@ CMathMenuBorderBox.prototype["put_HideTopRTL"] = CMathMenuBorderBox.prototype.pu -function CMathBoxPr() +function CMathBoxPr(ctrPr) { - this.brk = undefined; - this.aln = false; - this.diff = false; - this.noBreak = false; - this.opEmu = false; + this.brk = undefined; + this.aln = false; + this.diff = false; + this.noBreak = false; + this.opEmu = false; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathBoxPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } CMathBoxPr.prototype.Set_FromObject = function(Obj) { @@ -682,6 +719,8 @@ CMathBoxPr.prototype.Set_FromObject = function(Obj) this.opEmu = true; else this.opEmu = false; + + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathBoxPr.prototype.Get_AlnAt = function() { @@ -731,6 +770,7 @@ CMathBoxPr.prototype.Copy = function() NewPr.diff = this.diff ; NewPr.noBreak = this.noBreak; NewPr.opEmu = this.opEmu ; + NewPr.ctrPr = this.ctrPr ; if(this.brk !== undefined) NewPr.brk = this.brk.Copy(); @@ -759,6 +799,9 @@ CMathBoxPr.prototype.Write_ToBinary = function(Writer) { Writer.WriteBool(true); } + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathBoxPr.prototype.Read_FromBinary = function(Reader) { @@ -782,6 +825,11 @@ CMathBoxPr.prototype.Read_FromBinary = function(Reader) { this.brk = undefined; } + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -796,14 +844,14 @@ function CBox(props) this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Pr = new CMathBoxPr(); + this.Pr = new CMathBoxPr(this.CtrPrp); - this.baseContent = new CMathContent(); + this.baseContent = new CMathContent(); - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); - AscCommon.g_oTableId.Add( this, this.Id ); + AscCommon.g_oTableId.Add( this, this.Id ); } CBox.prototype = Object.create(CMathBase.prototype); CBox.prototype.constructor = CBox; @@ -958,16 +1006,29 @@ CBox.prototype.Apply_ForcedBreak = function(Props) if(Props.Action & c_oMathMenuAction.DeleteForcedBreak) Props.Action ^= c_oMathMenuAction.DeleteForcedBreak; }; -CBox.prototype.GetTextOfElement = function(isLaTeX) { - var strTemp = ""; - var strSymbol = (true === isLaTeX) ? "\\box" : "□"; - var Base = this.getBase().GetMultipleContentForGetText(isLaTeX); +/** + * + * @param {MathTextAndStyles} oMathText + * @constructor + */ +CBox.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); - strTemp = - strSymbol - + Base + let oBase = this.getBase(); - return strTemp; + if (oMathText.IsLaTeX()) + { + let oBasePos = oMathText.Add(oBase, true, 0); + oMathText.WrapExactElement(oBasePos, "{", "}", oMathText.GetStyleFromFirst()) + } + else + { + oMathText.AddText(new AscMath.MathText("□", this)); + oMathText.SetGlobalStyle(this); + oMathText.Add(oBase, true, 2); + } + return oMathText; }; /** @@ -980,36 +1041,52 @@ function CMathMenuBox(Box) { CMathMenuBase.call(this, Box); - this.Type = Asc.c_oAscMathInterfaceType.Box; + this.Type = Asc.c_oAscMathInterfaceType.Box; } CMathMenuBox.prototype = Object.create(CMathMenuBase.prototype); CMathMenuBox.prototype.constructor = CMathMenuBox; window["CMathMenuBox"] = CMathMenuBox; -function CMathBarPr() +function CMathBarPr(ctrPr) +{ + this.pos = LOCATION_BOT; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathBarPr.prototype.GetRPr = function () { - this.pos = LOCATION_BOT; + return this.ctrPr.GetRPr(); } CMathBarPr.prototype.Set_FromObject = function(Obj) { if(LOCATION_TOP === Obj.pos || LOCATION_BOT === Obj.pos) this.pos = Obj.pos; + + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathBarPr.prototype.Copy = function() { var NewPr = new CMathBarPr(); NewPr.pos = this.pos; + NewPr.ctrPr = this.ctrPr; return NewPr; }; CMathBarPr.prototype.Write_ToBinary = function(Writer) { // Long : pos Writer.WriteLong(this.pos); + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathBarPr.prototype.Read_FromBinary = function(Reader) { // Long : pos this.pos = Reader.GetLong(); + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -1024,14 +1101,14 @@ function CBar(props) this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Pr = new CMathBarPr(); + this.Pr = new CMathBarPr(this.CtrPrp); - this.operator = new COperator(OPER_BAR); + this.operator = new COperator(OPER_BAR); - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); - AscCommon.g_oTableId.Add( this, this.Id ); + AscCommon.g_oTableId.Add( this, this.Id ); } CBar.prototype = Object.create(CCharacter.prototype); CBar.prototype.constructor = CBar; @@ -1106,27 +1183,30 @@ CBar.prototype.raw_SetLinePos = function(Value) this.RecalcInfo.bProps = true; this.ApplyProperties(); }; -CBar.prototype.GetTextOfElement = function(isLaTeX) { - var strTemp = "", - strSymbol, - strBase, - strStartBracket = this.GetStartBracetForGetTextContent(isLaTeX), - strCloseBracket = this.GetEndBracetForGetTextContent(isLaTeX); +/** + * + * @param {MathTextAndStyles | boolean} oMathText + * @constructor + */ +CBar.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); - if (!isLaTeX) - strSymbol = (this.Pr.pos) ? "▁" : "¯"; - else - strSymbol = (this.Pr.pos) ? "\\underline" : "\\overline"; + let oBase = this.getBase(); - strBase = this.getBase().GetMultipleContentForGetText(isLaTeX, true); - - strTemp = - strSymbol - + strStartBracket - + strBase - + strCloseBracket; + if (oMathText.IsLaTeX()) + { + let oBasePos = oMathText.Add(oBase, true, 2); + oMathText.AddBefore(oBasePos, new AscMath.MathText((this.Pr.pos) ? "\\underline" : "\\overline", oMathText.GetStyleFromFirst())); + } + else + { + let oText = new AscMath.MathText((this.Pr.pos) ? "▁" : "¯", this, true) + oMathText.AddText(oText, true); + oMathText.Add(oBase, true); + } - return strTemp; + return oMathText; } /** @@ -1282,3 +1362,8 @@ window['AscCommonWord'].CBar = CBar; window['AscCommonWord'].CBox = CBox; window['AscCommonWord'].CBorderBox = CBorderBox; window['AscCommonWord'].CPhantom = CPhantom; + +AscMath.Bar = CBar; +AscMath.Box = CBox; +AscMath.BorderBox = CBorderBox; +AscMath.Phantom = CPhantom; diff --git a/word/Math/degree.js b/word/Math/degree.js index 86573d9c94..aceb34da32 100644 --- a/word/Math/degree.js +++ b/word/Math/degree.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -35,36 +35,48 @@ // Import var g_oTextMeasurer = AscCommon.g_oTextMeasurer; -function CMathDegreePr() +function CMathDegreePr(ctrPr) { - this.type = DEGREE_SUPERSCRIPT; + this.type = DEGREE_SUPERSCRIPT; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathDegreePr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } - CMathDegreePr.prototype.Set_FromObject = function(Obj) { if (DEGREE_SUPERSCRIPT === Obj.type || DEGREE_SUBSCRIPT === Obj.type) this.type = Obj.type; else this.type = DEGREE_SUPERSCRIPT; -}; + this.ctrPr.SetRPr(Obj.ctrPrp); +}; CMathDegreePr.prototype.Copy = function() { var NewPr = new CMathDegreePr(); NewPr.type = this.type; + NewPr.ctrPr = this.ctrPr; return NewPr; }; - CMathDegreePr.prototype.Write_ToBinary = function(Writer) { // Long : type Writer.WriteLong(this.type); -}; + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); +}; CMathDegreePr.prototype.Read_FromBinary = function(Reader) { // Long : type this.type = Reader.GetLong(Reader); + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -78,18 +90,18 @@ function CDegreeBase(props, bInside) { CMathBase.call(this, bInside); - this.upBase = 0; // отступ сверху для основания - this.upIter = 0; // отступ сверху для итератора + this.upBase = 0; // отступ сверху для основания + this.upIter = 0; // отступ сверху для итератора - this.Pr = new CMathDegreePr(); + this.Pr = new CMathDegreePr(this.CtrPrp); - this.baseContent = null; - this.iterContent = null; + this.baseContent = null; + this.iterContent = null; - this.bNaryInline = false; + this.bNaryInline = false; - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); } CDegreeBase.prototype = Object.create(CMathBase.prototype); CDegreeBase.prototype.constructor = CDegreeBase; @@ -541,57 +553,22 @@ CDegree.prototype.Can_ModifyArgSize = function() { return this.CurPos == 1 && false === this.Is_SelectInside(); // находимся в итераторе }; -CDegree.prototype.GetTextOfElement = function(isLaTeX) { - var strTemp = ""; - var strTypeOfScript = this.Pr.type === 1 ? '^' : '_'; - var strBase = this.getBase().GetMultipleContentForGetText(isLaTeX, true); - var strIterator = this.getIterator().GetMultipleContentForGetText(isLaTeX); +CDegree.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); - if (isLaTeX) - { - switch (strBase) { - case 'cos': - case 'sin': - case 'tan': - case 'sec': - case 'cot': - case 'csc': - case 'arcsin': - case 'arccos': - case 'arctan': - case 'arcsec': - case 'arccot': - case 'arccsc': - case 'sinh': - case 'cosh': - case 'tanh': - case 'coth': - case 'sech': - case 'csch': - case 'srcsinh': - case 'arctanh': - case 'arcsech': - case 'arccosh': - case 'arccoth': - case 'arccsch': - case 'log': - case 'lim': - case 'ln': - case 'max': - case 'min': - case 'exp': strBase = '\\'+ strBase; break; - default: break; - } - strTemp = strBase + strTypeOfScript + strIterator; - } - else - { - let oBase = this.getBase(); - if (oBase.haveMixedContent()) - strBase = "〖" + strBase + "〗"; - strTemp = strBase + strTypeOfScript + strIterator + " "; - } - return strTemp; + let oBase = this.getBase(); + let oIterator = this.getIterator(); + + if (oMathText.IsLaTeX()) + oMathText.SetNotWrap(); + + oMathText.Add(oBase, true, oMathText.IsLaTeX() ? 1 : undefined); + oMathText.AddText(new AscMath.MathText(this.Pr.type === 1 ? "^" : "_", this)); + oMathText.SetGlobalStyle(this); + oMathText.Add(oIterator, true, oMathText.IsLaTeX() ? 1 : undefined); + + return oMathText; }; /** @@ -694,12 +671,16 @@ CIterators.prototype.setPosition = function(pos, PosInfo) pos.x += this.size.width; }; -function CMathDegreeSubSupPr() +function CMathDegreeSubSupPr(ctrPr) { - this.type = DEGREE_SubSup; - this.alnScr = false;// не выровнены, итераторы идут в соответствии с наклоном буквы/мат. объекта + this.type = DEGREE_SubSup; + this.alnScr = false;// не выровнены, итераторы идут в соответствии с наклоном буквы/мат. объекта + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathDegreeSubSupPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } - CMathDegreeSubSupPr.prototype.Set_FromObject = function(Obj) { if (true === Obj.alnScr || 1 === Obj.alnScr) @@ -709,18 +690,19 @@ CMathDegreeSubSupPr.prototype.Set_FromObject = function(Obj) if (DEGREE_SubSup === Obj.type || DEGREE_PreSubSup === Obj.type) this.type = Obj.type; -}; + this.ctrPr.SetRPr(Obj.ctrPrp); +}; CMathDegreeSubSupPr.prototype.Copy = function() { var NewPr = new CMathDegreeSubSupPr(); NewPr.type = this.type; NewPr.alnScr = this.alnScr; + NewPr.ctrPr = this.ctrPr; return NewPr; }; - CMathDegreeSubSupPr.prototype.Write_ToBinary = function(Writer) { // Long : type @@ -728,8 +710,10 @@ CMathDegreeSubSupPr.prototype.Write_ToBinary = function(Writer) Writer.WriteLong(this.type); Writer.WriteBool(this.alnScr); -}; + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); +}; CMathDegreeSubSupPr.prototype.Read_FromBinary = function(Reader) { // Long : type @@ -737,6 +721,11 @@ CMathDegreeSubSupPr.prototype.Read_FromBinary = function(Reader) this.type = Reader.GetLong(); this.alnScr = Reader.GetBool(); + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -750,15 +739,15 @@ function CDegreeSubSupBase(props, bInside) { CMathBase.call(this, bInside); - this.bNaryInline = false; + this.bNaryInline = false; - this.Pr = new CMathDegreeSubSupPr(); + this.Pr = new CMathDegreeSubSupPr(this.CtrPrp); - this.baseContent = null; - this.iters = new CIterators(null, null); + this.baseContent = null; + this.iters = new CIterators(null, null); - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); } CDegreeSubSupBase.prototype = Object.create(CMathBase.prototype); CDegreeSubSupBase.prototype.constructor = CDegreeSubSupBase; @@ -1247,42 +1236,52 @@ CDegreeSubSup.prototype.Can_ModifyArgSize = function() { return this.CurPos !== 0 && false === this.Is_SelectInside(); // находимся в итераторе }; -CDegreeSubSup.prototype.GetTextOfElement = function(isLaTeX) +CDegreeSubSup.prototype.GetTextOfElement = function(oMathText) { - let strTemp = ""; - let Base = this.getBase().GetMultipleContentForGetText(isLaTeX, true); - let strLower = this.getLowerIterator().GetMultipleContentForGetText(isLaTeX); - let strUpper = this.getUpperIterator().GetMultipleContentForGetText(isLaTeX); + oMathText = new AscMath.MathTextAndStyles(oMathText); - let isPreScript = this.Pr.type === -1; - - if (isLaTeX) - { - if(strLower.length === 0 || strLower === '⬚') - strLower = '{}' - if(strUpper.length === 0 || strUpper === '⬚') - strUpper = '{}' + let oBase = this.getBase(); + let oLowerIterator = this.getLowerIterator(); + let oUpperIterator = this.getUpperIterator(); + let isPreScript = this.Pr.type === -1; - if (true === isPreScript) - strTemp = '{' + '_' + strLower + '^' + strUpper + '}' + Base; - else - strTemp = Base + '_' + strLower + '^' + strUpper; - } - else + if (isPreScript) { - if (true === isPreScript) + let oPosLowerIterator = oMathText.Add(oLowerIterator, true); + let oPosUpperIterator = oMathText.Add(oUpperIterator, true); + let oPosBase = oMathText.Add(oBase, true, false); + + if (oMathText.IsLaTeX()) { - strTemp = '(' + '_' + strLower + '^' + strUpper + ')' + Base + " "; + oMathText.AddBefore(oPosLowerIterator, new AscMath.MathText( "{_" , oBase)); + oMathText.AddAfter(oPosLowerIterator, new AscMath.MathText( "^" , oBase)); + oMathText.AddAfter(oPosUpperIterator, new AscMath.MathText( "}" , oBase)); } else { - let oBase = this.getBase(); - if (oBase.haveMixedContent()) - Base = "〖" + Base + "〗"; - strTemp = Base + '_' + strLower + '^' + strUpper + " "; + oMathText.AddBefore(oPosLowerIterator, new AscMath.MathText( "(_" , oBase)); + oMathText.AddAfter(oPosLowerIterator, new AscMath.MathText( "^" , oBase)); + oMathText.AddAfter(oPosUpperIterator, new AscMath.MathText( ")" , oBase)); } } - return strTemp; + else + { + if (oMathText.IsLaTeX()) + oMathText.SetNotWrap(); + + oMathText.Add(oBase, true, 1); + oMathText.AddText(new AscMath.MathText("_", oLowerIterator)); + + oMathText.SetGlobalStyle(oLowerIterator); + oMathText.Add(oLowerIterator, true, oMathText.IsLaTeX() ? 1 : undefined); + + oMathText.AddText(new AscMath.MathText("^", oUpperIterator)); + + oMathText.SetGlobalStyle(oUpperIterator); + oMathText.Add(oUpperIterator, true, oMathText.IsLaTeX() ? 1 : undefined); + } + + return oMathText; }; /** @@ -1316,3 +1315,6 @@ window['AscCommonWord'].CDegree = CDegree; window["CMathMenuScript"] = CMathMenuScript; CMathMenuScript.prototype["get_ScriptType"] = CMathMenuScript.prototype.get_ScriptType; CMathMenuScript.prototype["put_ScriptType"] = CMathMenuScript.prototype.put_ScriptType; + +AscMath.Degree = CDegree; +AscMath.DegreeSubSup = CDegreeSubSup; diff --git a/word/Math/fraction.js b/word/Math/fraction.js index aebf0545b0..89ae69f18e 100644 --- a/word/Math/fraction.js +++ b/word/Math/fraction.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -35,30 +35,46 @@ // Import var g_oTextMeasurer = AscCommon.g_oTextMeasurer; -function CMathFractionPr() +function CMathFractionPr(ctrPr) { - this.type = BAR_FRACTION; + this.type = BAR_FRACTION; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathFractionPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } CMathFractionPr.prototype.Set_FromObject = function(Obj) { - if (undefined !== Obj.type && null !== Obj.type) - this.type = Obj.type; + if (undefined !== Obj.type && null !== Obj.type) + this.type = Obj.type; + + this.ctrPr.SetRPr(Obj.ctrPrp); }; -CMathFractionPr.prototype.Copy = function(Obj) +CMathFractionPr.prototype.Copy = function() { - var NewPr = new CMathFractionPr(); - NewPr.type = this.type; - return NewPr; + var NewPr = new CMathFractionPr(); + NewPr.type = this.type; + NewPr.ctrPr = this.ctrPr; + return NewPr; }; CMathFractionPr.prototype.Write_ToBinary = function(Writer) { - // Long : type - Writer.WriteLong(this.type); + // Long : type + Writer.WriteLong(this.type); + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); + }; CMathFractionPr.prototype.Read_FromBinary = function(Reader) { - // Long : type - this.type = Reader.GetLong(); + // Long : type + this.type = Reader.GetLong(); + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -73,15 +89,15 @@ function CFraction(props) this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Numerator = null; - this.Denominator = null; + this.Numerator = null; + this.Denominator = null; - this.Pr = new CMathFractionPr(); + this.Pr = new CMathFractionPr(this.CtrPrp); - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); - AscCommon.g_oTableId.Add( this, this.Id ); + AscCommon.g_oTableId.Add( this, this.Id ); } CFraction.prototype = Object.create(CMathBase.prototype); CFraction.prototype.constructor = CFraction; @@ -614,45 +630,83 @@ CFraction.prototype.raw_SetFractionType = function(FractionType) this.Pr.type = FractionType; this.fillContent(); }; -CFraction.prototype.GetTextOfElement = function(isLaTeX) +/** + * + * @param {MathTextAndStyles|boolean} oMathText + * @constructor + */ +CFraction.prototype.GetTextOfElement = function(oMathText) { - let strTemp = ""; - let strNumerator = this.getNumerator().GetMultipleContentForGetText(isLaTeX, !this.getNumerator().haveMixedContent()); - let strDenominator = this.getDenominator().GetMultipleContentForGetText(isLaTeX, !this.getDenominator().haveMixedContent()); + oMathText = new AscMath.MathTextAndStyles(oMathText); + + let oFracContent, + strFracSymbol, + oNumerator = this.getNumerator(), + oDenominator = this.getDenominator(); - if (true === isLaTeX) + oMathText.SetGlobalStyle(this); + + if (oMathText.IsLaTeX()) { - if (strNumerator[0] !== "{") - strNumerator = "{" + strNumerator + "}"; - if (strDenominator[0] !== "{") - strDenominator = "{" + strDenominator + "}"; + oMathText.SetGlobalStyle(oNumerator); - switch (this.Pr.type) + let isOnlyFrac = this.Parent.Content.length === 3 + && this.Parent.Content[0].Is_Empty() + && this.Parent.Content[2].Is_Empty() + && this.Parent.Parent instanceof CDelimiter; + + if (this.Pr.type === NO_BAR_FRACTION && !isOnlyFrac) { - case BAR_FRACTION: strTemp += '\\frac'; break; - case SKEWED_FRACTION: strTemp += '\\sfrac'; break; - case LINEAR_FRACTION: strTemp += '\\cfrac'; break; - case NO_BAR_FRACTION: strTemp += '\\binom'; break; - default: strTemp += '\\frac'; break; - } + let oPosNumerator = oMathText.Add(oNumerator, true, 1); + let oAtopPos = oMathText.AddText(new AscMath.MathText('\\atop', oMathText.GetStyleFromFirst())); + let oPosDenominator = oMathText.Add(oDenominator, true, 1); - strTemp += strNumerator + strDenominator; + oMathText.AddBefore(oPosNumerator, new AscMath.MathText("{", oMathText.GetStyleFromFirst())); + oMathText.AddAfter(oPosDenominator, new AscMath.MathText("}", oMathText.GetStyleFromFirst())); + } + else + { + let oPosNumerator = oMathText.Add(oNumerator, true, 2); + let oPosDenominator = oMathText.Add(oDenominator, true, 2); + + switch (this.Pr.type) + { + case NO_BAR_FRACTION: strFracSymbol = '\\binom'; break; + case BAR_FRACTION: strFracSymbol = '\\frac'; break; + default: strFracSymbol = '\\sfrac'; break; + } + + // get style from numerator + oFracContent = new AscMath.MathText(strFracSymbol, oNumerator); + oMathText.AddBefore(oPosNumerator, oFracContent); + } } else { - strTemp += strNumerator; + let oPosNumerator = oMathText.Add(oNumerator, true); + let oPosDenominator = oMathText.Add(oDenominator, true); switch (this.Pr.type) { - case BAR_FRACTION: strTemp += '/'; break; - case SKEWED_FRACTION: strTemp += '⁄'; break; - case LINEAR_FRACTION: strTemp += '∕'; break; - case NO_BAR_FRACTION: strTemp += '¦'; break; - default: strTemp += '/'; break; + case BAR_FRACTION: strFracSymbol = '/'; break; + case SKEWED_FRACTION: strFracSymbol = '⁄'; break; + case LINEAR_FRACTION: strFracSymbol = '∕'; break; + case NO_BAR_FRACTION: strFracSymbol = '¦'; break; + default: strFracSymbol = '/'; break; + } + oFracContent = new AscMath.MathText(strFracSymbol, this); + + if (this.Pr.type === LINEAR_FRACTION) + { + let oAddData = oFracContent.GetAdditionalData(); + let oMetaData = oAddData.GetMathMetaData(); + oMetaData.setIsLinearFraction(true); } - strTemp += strDenominator + " "; + oMathText.AddAfter(oPosNumerator, oFracContent); } - return strTemp; + + oMathText.ResetGlobalStyle() + return oMathText; }; /** * @@ -853,3 +907,5 @@ CDenominator.prototype.setPosition = function(pos, PosInfo) //--------------------------------------------------------export---------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CFraction = CFraction; + +AscMath.Fraction = CFraction; diff --git a/word/Math/limit.js b/word/Math/limit.js index 390262b575..2662b43686 100644 --- a/word/Math/limit.js +++ b/word/Math/limit.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -32,21 +32,30 @@ "use strict"; -function CMathLimitPr() +function CMathLimitPr(ctrPr) { - this.type = LIMIT_LOW; + this.type = LIMIT_LOW; + this.ctrPr = new CMathCtrlPr(ctrPr); +} + +CMathLimitPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } CMathLimitPr.prototype.Set_FromObject = function(Obj) { if (undefined !== Obj.type && null !== Obj.type) this.type = Obj.type; + + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathLimitPr.prototype.Copy = function() { var NewPr = new CMathLimitPr(); NewPr.type = this.type; + NewPr.ctrPr = this.ctrPr; return NewPr; }; @@ -54,12 +63,18 @@ CMathLimitPr.prototype.Write_ToBinary = function(Writer) { // Long : type Writer.WriteLong(this.type); + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathLimitPr.prototype.Read_FromBinary = function(Reader) { // Long : type this.type = Reader.GetLong(); + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -210,12 +225,12 @@ function CLimit(props) this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Pr = new CMathLimitPr(); + this.Pr = new CMathLimitPr(this.CtrPrp); - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); - AscCommon.g_oTableId.Add( this, this.Id ); + AscCommon.g_oTableId.Add( this, this.Id ); } CLimit.prototype = Object.create(CMathBase.prototype); CLimit.prototype.constructor = CLimit; @@ -315,36 +330,46 @@ CLimit.prototype.Can_ModifyArgSize = function() { return this.CurPos == 1 && false === this.Is_SelectInside(); }; -CLimit.prototype.GetTextOfElement = function(isLaTeX) { - var strTemp = ""; - var strLimitSymbol = ""; - var strFuncName = this.getFName().GetMultipleContentForGetText(isLaTeX, true); - var strArgument = this.getIterator().GetMultipleContentForGetText(isLaTeX, true); - var strStartBracet = this.GetStartBracetForGetTextContent(isLaTeX); - var strCloseBracet = this.GetEndBracetForGetTextContent(isLaTeX); +/** + * + * @param {MathTextAndStyles | boolean} oMathText + * @constructor + */ +CLimit.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); - if (isLaTeX) - { - strLimitSymbol = (this.Pr.type == 1) ? "\\above" : "\\below"; - if (strFuncName === 'lim' || - strFuncName === 'log' || - strFuncName === 'max' || - strFuncName === 'min' || - strFuncName === 'ln') - { - strFuncName = '\\' + strFuncName; - } - } - else - { - strLimitSymbol = (this.Pr.type == 1) ? "┴" : "┬"; + let strLimitSymbol = ""; + let oFuncName = this.getFName(); + let oArgument = this.getIterator(); + + if (oMathText.IsLaTeX()) + { + oMathText.ResetGlobalStyle(); + oMathText.Add(oFuncName, false); + oMathText.AddText(new AscMath.MathText((this.Pr.type == 1) ? "\\above" : "\\below", oMathText.GetStyleFromFirst())); + oMathText.SetNotGetStyleFromFirst(); + // check when word fix bug, for now always wrap + oMathText.Add(oArgument, true, 2); } + else + { + if (Number.isInteger(this.Pr.type)) + { + strLimitSymbol = (this.Pr.type === 1) ? "┴" : "┬"; + } + else + { + strLimitSymbol = (this.Pr.type.type === 2) ? "┴" : "┬"; + } + + let oNamePos = oMathText.Add(oFuncName, true); - if (strArgument.length > 1 || isLaTeX) - strArgument = strStartBracet + strArgument + strCloseBracet; + oMathText.AddAfter(oNamePos, new AscMath.MathText(strLimitSymbol, this)); + oMathText.Add(oArgument, true); + } - strTemp = strFuncName + strLimitSymbol+ strArgument; - return strTemp; + return oMathText; }; /** @@ -378,6 +403,37 @@ window["CMathMenuLimit"] = CMathMenuLimit; CMathMenuLimit.prototype["get_Pos"] = CMathMenuLimit.prototype.get_Pos; CMathMenuLimit.prototype["put_Pos"] = CMathMenuLimit.prototype.put_Pos; +function CMathFuncPr(ctrPr) +{ + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathFuncPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); +}; +CMathFuncPr.prototype.Set_FromObject = function(Obj) +{ + this.ctrPr.SetRPr(Obj.ctrPrp); +}; +CMathFuncPr.prototype.Copy = function() +{ + let NewPr = new CMathFuncPr(); + NewPr.ctrPr = this.ctrPr; + return NewPr; +}; +CMathFuncPr.prototype.Write_ToBinary = function(Writer) +{ + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); +}; +CMathFuncPr.prototype.Read_FromBinary = function(Reader) +{ + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } +}; + /** * * @param props @@ -390,12 +446,12 @@ function CMathFunc(props) this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Pr = new CMathBasePr(); + this.Pr = new CMathFuncPr(this.CtrPrp); - if(props !== null && typeof(props) !== "undefined") - this.init(props); + if(props !== null && typeof(props) !== "undefined") + this.init(props); - AscCommon.g_oTableId.Add( this, this.Id ); + AscCommon.g_oTableId.Add( this, this.Id ); } CMathFunc.prototype = Object.create(CMathBase.prototype); CMathFunc.prototype.constructor = CMathFunc; @@ -447,32 +503,47 @@ CMathFunc.prototype.fillContent = function() this.elements[0][0] = this.getFName(); this.elements[0][1] = this.getArgument(); }; -CMathFunc.prototype.GetTextOfElement = function(isLaTeX) { - var strTemp = ""; - var strFuncName = this.getFName().GetMultipleContentForGetText(isLaTeX, true); - var strArgument = this.getArgument().GetMultipleContentForGetText(isLaTeX, true); +CMathFunc.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); + let oFuncName = this.getFName(); + let oArgument = this.getArgument(); + oMathText.SetGlobalStyle(this); - if (!isLaTeX) + if (oMathText.IsLaTeX()) { - let strFuncApply = String.fromCharCode(8289); - if (this.getArgument().haveMixedContent()) - strArgument = strFuncApply + "〖" + strArgument + "〗"; - else - strArgument = strFuncApply + strArgument; + let oArgPos = oMathText.Add(oArgument, true, 2); + + let oFuncNameContent = oFuncName.GetTextOfElement(true); + let strFunc = oFuncNameContent.GetText(); + + //find content before "_", "^", "below" and "above"; + strFunc = strFunc.split("_")[0].split('^')[0].split('\\below')[0].split('\\above')[0]; + + let oSlashesTextForName = new AscMath.MathText("\\", oMathText.GetStyleFromFirst()); + let oFirstPosInNameContent = oFuncNameContent.GetFirstPos(); + + if (AscMath.functionNames.includes(strFunc) || AscMath.LimitFunctions.includes(strFunc)) + oFuncNameContent.AddBefore(oFirstPosInNameContent, oSlashesTextForName); + + oMathText.AddBefore(oArgPos, oFuncNameContent); } - if (isLaTeX) + else { - strArgument = "{" + strArgument + "}"; - if (AscMath.LimitFunctions.includes(strFuncName) || AscMath.functionNames.includes(strFuncName)) - strFuncName = '\\'+ strFuncName; + let oNamePos = oMathText.Add(oFuncName, true, 0); + let oArgumentPos = oMathText.Add(oArgument, true, 1); + let oArgumentToken = oMathText.GetExact(oArgumentPos); + + oMathText.AddAfter(oNamePos, new AscMath.MathText("⁡", this.Pr.GetRPr())); } - strTemp = strFuncName + strArgument; - return strTemp; + return oMathText; }; - //--------------------------------------------------------export---------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CMathFunc = CMathFunc; window['AscCommonWord'].CLimit = CLimit; + +AscMath.Limit = CLimit; +AscMath.Func = CMathFunc; diff --git a/word/Math/math-settings.js b/word/Math/math-settings.js index 4aa0b07b30..798d1a092e 100644 --- a/word/Math/math-settings.js +++ b/word/Math/math-settings.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Math/mathContent.js b/word/Math/mathContent.js index d55951deea..64d9a298a1 100644 --- a/word/Math/mathContent.js +++ b/word/Math/mathContent.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -1019,6 +1019,16 @@ CMPrp.prototype = return textPrp; }, + IsEqual: function (oMPrp) + { + return oMPrp.aln === this.aln + && oMPrp.lit === this.lit + && oMPrp.nor === this.nor + && oMPrp.sty === this.sty + && oMPrp.scr === this.scr + && ( oMPrp.brk === undefined && this.brk === undefined + || oMPrp.brk !== undefined && this.brk !== undefined && oMPrp.brk.IsEqual(this.brk) ) + }, Copy: function() { var NewMPrp = new CMPrp(); @@ -1203,6 +1213,7 @@ function CMathContent() this.ParaMath = null; this.ArgSize = new CMathArgSize(); this.Compiled_ArgSz = new CMathArgSize(); + this.CtrPrp = new CTextPr(); // for EqArray this.InfoPoints = new CInfoPoints(); @@ -1448,9 +1459,13 @@ CMathContent.prototype.Draw_Elements = function(PDSE) } }; -CMathContent.prototype.setCtrPrp = function() +CMathContent.prototype.setCtrPrp = function(oPr) { + if (!oPr) + return; + History.Add(new CChangesMathContentTextPr(this, this.CtrPrp, oPr)); + this.CtrPrp = oPr; }; CMathContent.prototype.Is_InclineLetter = function() { @@ -1570,6 +1585,16 @@ CMathContent.prototype.SetParent = function(Parent, ParaMath) this.Parent = Parent; this.ParaMath = ParaMath; }; +CMathContent.prototype.CheckRunContent = function(fCheck) +{ + for (var i = 0; i < this.Content.length; ++i) + { + if (para_Math_Run === this.Content[i].Type) + fCheck(this.Content[i]); + } +}; + + ///// properties ///// CMathContent.prototype.hidePlaceholder = function(flag) { @@ -1587,12 +1612,19 @@ CMathContent.prototype.getFirstRPrp = function() }; CMathContent.prototype.GetCtrPrp = function() // for placeholder { - var ctrPrp = new CTextPr(); + if (this.CtrPrp) + return this.CtrPrp; + + var ctrPrp = this.CtrPrp; if(!this.bRoot) ctrPrp.Merge( this.Parent.Get_CompiledCtrPrp_2() ); return ctrPrp; }; +CMathContent.prototype.Is_FromDocument = function() +{ + return (this.ParaMath && this.ParaMath.Paragraph && this.ParaMath.Paragraph.bFromDocument); +}; CMathContent.prototype.IsAccent = function() { var result = false; @@ -2492,13 +2524,13 @@ CMathContent.prototype.InsertMathContent = function(oMathContent, nPos, isSelect { if (!oMathContent || !oMathContent.Content) return; - + if (!this.ParaMath || !this.ParaMath.Paragraph) isSelect = false; if (undefined === nPos) nPos = this.CurPos; - + let nCount = oMathContent.Content.length; for (let nIndex = 0; nIndex < nCount; ++nIndex) { @@ -3054,49 +3086,54 @@ CMathContent.prototype.private_LoadFromMenuBracket = function(Type, Pr, oSelecte CMathContent.prototype.private_LoadFromMenuFunction = function(Type, Pr, oSelectedContent) { var oFunction = null; - switch(Type) - { - case c_oAscMathType.Function_Sin : oFunction = this.Add_Function(Pr, "sin", null); break; - case c_oAscMathType.Function_Cos : oFunction = this.Add_Function(Pr, "cos", null); break; - case c_oAscMathType.Function_Tan : oFunction = this.Add_Function(Pr, "tan", null); break; - case c_oAscMathType.Function_Csc : oFunction = this.Add_Function(Pr, "csc", null); break; - case c_oAscMathType.Function_Sec : oFunction = this.Add_Function(Pr, "sec", null); break; - case c_oAscMathType.Function_Cot : oFunction = this.Add_Function(Pr, "cot", null); break; - - case c_oAscMathType.Function_1_Sin : oFunction = this.Add_Function_1(Pr, "sin", null); break; - case c_oAscMathType.Function_1_Cos : oFunction = this.Add_Function_1(Pr, "cos", null); break; - case c_oAscMathType.Function_1_Tan : oFunction = this.Add_Function_1(Pr, "tan", null); break; - case c_oAscMathType.Function_1_Csc : oFunction = this.Add_Function_1(Pr, "csc", null); break; - case c_oAscMathType.Function_1_Sec : oFunction = this.Add_Function_1(Pr, "sec", null); break; - case c_oAscMathType.Function_1_Cot : oFunction = this.Add_Function_1(Pr, "cot", null); break; - - case c_oAscMathType.Function_Sinh : oFunction = this.Add_Function(Pr, "sinh", null); break; - case c_oAscMathType.Function_Cosh : oFunction = this.Add_Function(Pr, "cosh", null); break; - case c_oAscMathType.Function_Tanh : oFunction = this.Add_Function(Pr, "tanh", null); break; - case c_oAscMathType.Function_Csch : oFunction = this.Add_Function(Pr, "csch", null); break; - case c_oAscMathType.Function_Sech : oFunction = this.Add_Function(Pr, "sech", null); break; - case c_oAscMathType.Function_Coth : oFunction = this.Add_Function(Pr, "coth", null); break; - - case c_oAscMathType.Function_1_Sinh : oFunction = this.Add_Function_1(Pr, "sinh", null); break; - case c_oAscMathType.Function_1_Cosh : oFunction = this.Add_Function_1(Pr, "cosh", null); break; - case c_oAscMathType.Function_1_Tanh : oFunction = this.Add_Function_1(Pr, "tanh", null); break; - case c_oAscMathType.Function_1_Csch : oFunction = this.Add_Function_1(Pr, "csch", null); break; - case c_oAscMathType.Function_1_Sech : oFunction = this.Add_Function_1(Pr, "sech", null); break; - case c_oAscMathType.Function_1_Coth : oFunction = this.Add_Function_1(Pr, "coth", null); break; - - case c_oAscMathType.Function_Custom_1 : this.Add_Function(Pr, "sin", String.fromCharCode(952)); break; - case c_oAscMathType.Function_Custom_2 : this.Add_Function(Pr, "cos", "2x"); break; - case c_oAscMathType.Function_Custom_3 : - var Theta = String.fromCharCode(952); - this.Add_Function(Pr, "tan", Theta); - this.Add_Text("=", this.Paragraph); - var Fraction = this.Add_Fraction(Pr, null, null); - var NumMathContent = Fraction.getNumeratorMathContent(); - var DenMathContent = Fraction.getDenominatorMathContent(); - NumMathContent.Add_Function(Pr, "sin", Theta); - DenMathContent.Add_Function(Pr, "cos", Theta); - break; - } + switch(Type) + { + case c_oAscMathType.Function_Sin : oFunction = this.Add_Function(Pr, "sin", null); break; + case c_oAscMathType.Function_Cos : oFunction = this.Add_Function(Pr, "cos", null); break; + case c_oAscMathType.Function_Tan : oFunction = this.Add_Function(Pr, "tan", null); break; + case c_oAscMathType.Function_Csc : oFunction = this.Add_Function(Pr, "csc", null); break; + case c_oAscMathType.Function_Sec : oFunction = this.Add_Function(Pr, "sec", null); break; + case c_oAscMathType.Function_Cot : oFunction = this.Add_Function(Pr, "cot", null); break; + + case c_oAscMathType.Function_1_Sin : oFunction = this.Add_Function_1(Pr, "sin", null); break; + case c_oAscMathType.Function_1_Cos : oFunction = this.Add_Function_1(Pr, "cos", null); break; + case c_oAscMathType.Function_1_Tan : oFunction = this.Add_Function_1(Pr, "tan", null); break; + case c_oAscMathType.Function_1_Csc : oFunction = this.Add_Function_1(Pr, "csc", null); break; + case c_oAscMathType.Function_1_Sec : oFunction = this.Add_Function_1(Pr, "sec", null); break; + case c_oAscMathType.Function_1_Cot : oFunction = this.Add_Function_1(Pr, "cot", null); break; + + case c_oAscMathType.Function_Sinh : oFunction = this.Add_Function(Pr, "sinh", null); break; + case c_oAscMathType.Function_Cosh : oFunction = this.Add_Function(Pr, "cosh", null); break; + case c_oAscMathType.Function_Tanh : oFunction = this.Add_Function(Pr, "tanh", null); break; + case c_oAscMathType.Function_Csch : oFunction = this.Add_Function(Pr, "csch", null); break; + case c_oAscMathType.Function_Sech : oFunction = this.Add_Function(Pr, "sech", null); break; + case c_oAscMathType.Function_Coth : oFunction = this.Add_Function(Pr, "coth", null); break; + + case c_oAscMathType.Function_1_Sinh : oFunction = this.Add_Function_1(Pr, "sinh", null); break; + case c_oAscMathType.Function_1_Cosh : oFunction = this.Add_Function_1(Pr, "cosh", null); break; + case c_oAscMathType.Function_1_Tanh : oFunction = this.Add_Function_1(Pr, "tanh", null); break; + case c_oAscMathType.Function_1_Csch : oFunction = this.Add_Function_1(Pr, "csch", null); break; + case c_oAscMathType.Function_1_Sech : oFunction = this.Add_Function_1(Pr, "sech", null); break; + case c_oAscMathType.Function_1_Coth : oFunction = this.Add_Function_1(Pr, "coth", null); break; + + case c_oAscMathType.Function_Custom_1 : this.Add_Function(Pr, "sin", String.fromCharCode(952)); break; + case c_oAscMathType.Function_Custom_2 : this.Add_Function(Pr, "cos", "2x"); break; + case c_oAscMathType.Function_Custom_3 : + let Theta = String.fromCharCode(952); + + this.Add_Function(Pr, "tan", Theta); + this.Add_Text("=", this.Paragraph); + + let Fraction = this.Add_Fraction(Pr, null, null); + let NumMathContent = Fraction.getNumeratorMathContent(); + let DenMathContent = Fraction.getDenominatorMathContent(); + + NumMathContent.Add_Function(Pr, "sin", Theta); + DenMathContent.Add_Function(Pr, "cos", Theta); + + this.Add_Element(new ParaRun(this.Paragraph, true)); + break; + } if (oFunction && oSelectedContent) oFunction.getArgument().private_FillSelectedContent(oSelectedContent); @@ -3303,40 +3340,132 @@ CMathContent.prototype.Add_Element = function(Element) this.Internal_Content_Add(this.CurPos, Element, false); this.CurPos++; }; -CMathContent.prototype.Add_Text = function(text, paragraph, mathStyle) +/** + * If text grouped by style + * @param text + * @param paragraph + * @param mathStyle + * @param oAdditionalData + */ +CMathContent.prototype.AddGroupedByStyleText = function (text, paragraph, mathStyle, oAdditionalData) +{ + let oMathRun = new AscWord.CRun(paragraph, true); + + AscWord.TextToMathRunElements(text, function(item) + { + oMathRun.private_AddItemToRun(oMathRun.State.ContentPos, item); + }); + + if (mathStyle) + oMathRun.Math_Apply_Style(mathStyle); + + if (oAdditionalData) + { + if (oAdditionalData.IsAdditionalStyleData()) + oMathRun.SetPr(oAdditionalData.GetAdditionalStyleData()); + + if (oAdditionalData.reviewData.reviewInfo) + { + oMathRun.SetReviewTypeWithInfo( + oAdditionalData.reviewData.reviewType, + oAdditionalData.reviewData.reviewInfo + ); + } + } + + oMathRun.Set_RFont_ForMathRun(); + + this.AddToContent(this.Content.length, oMathRun, false); + this.CurPos = this.Content.length; +}; +CMathContent.prototype.Add_Text = function(text, paragraph, mathStyle, oAdditionalData) { if (!text) return; - - if (this.IsAddTextInLastParaRun(mathStyle)) + + let oMathRun = this.Content[this.Content.length - 1]; + + if (oMathRun && oMathRun.Content.length === 0 && this.Content.length > 1) { - this.Add_ToPrevParaRun(text); - return; + this.Content.splice(this.Content.length - 1, 1); + oMathRun = this.Content[this.Content.length - 1]; } - - var oMathRun = new AscWord.CRun(undefined, true); - + + let isEscapedSlash = oAdditionalData + ? oAdditionalData.GetMathMetaData().getIsEscapedSlash() + : false; + let oLastContent = oMathRun + ? oMathRun.GetTextOfElement().GetLastContent() + : false; + let isPrevEscapedSlash = oLastContent + ? oLastContent.GetAdditionalData().GetMathMetaData().getIsEscapedSlash() + : false; + + if (isEscapedSlash + || isPrevEscapedSlash + || !oMathRun + || !(oMathRun instanceof AscWord.Run) + || (oAdditionalData && !oAdditionalData.IsStyleEqual(oMathRun))) + oMathRun = new AscWord.Run(undefined, true); + AscWord.TextToMathRunElements(text, function(item) { - oMathRun.Add(item, true); + oMathRun.private_AddItemToRun(oMathRun.State.ContentPos, item); }); - oMathRun.Set_RFont_ForMathRun(); - - if (mathStyle) + if (this.Content[this.Content.length - 1] === oMathRun) + return true; + + if (oAdditionalData) + { + if (oAdditionalData.IsAdditionalStyleData()) + oMathRun.SetPr(oAdditionalData.GetAdditionalStyleData()); + + if (oAdditionalData.reviewData.reviewInfo) + { + oMathRun.SetReviewTypeWithInfo( + oAdditionalData.reviewData.reviewType, + oAdditionalData.reviewData.reviewInfo + ); + } + + if (oAdditionalData.mathPrp) + { + oMathRun.Set_MathPr(oAdditionalData.mathPrp); + } + } + + if (mathStyle !== undefined) oMathRun.Math_Apply_Style(mathStyle); - this.AddToContent(this.CurPos, oMathRun, false); - this.CurPos++; + oMathRun.Set_RFont_ForMathRun(); + + if (this.Content[this.Content.length - 1] !== oMathRun) + { + this.AddToContent(this.Content.length, oMathRun, false); + this.CurPos = this.Content.length; + } }; CMathContent.prototype.Add_ToPrevParaRun = function(text) { let run = this.Content[this.Content.length - 1]; + let isAdd = false; + if (!run) + { + run = new AscWord.CRun(undefined, true); + isAdd = true; + } + + let nCount = this.Content.length; AscWord.TextToMathRunElements(text, function(item) { run.Add(item, true); }); + + let nCurrentCount = this.Content.length - nCount; + if (nCurrentCount === 0) + return true; } CMathContent.prototype.Add_TextOnPos = function(nPos, sText, MathStyle) { @@ -3367,13 +3496,76 @@ CMathContent.prototype.IsAddTextInLastParaRun = function(oMathStyle) if ( oLastContent instanceof ParaRun && !oLastContent.IsPlaceholder() && - !oLastContent.Is_Empty() && - (oMathStyle === oLastContent.MathPrp.sty || oMathStyle === undefined) + (oMathStyle && oLastContent.Pr.Is_Equal(oMathStyle)) ) return true; } return false } +CMathContent.prototype.IsLastParaRunEmpty = function() +{ + if (this.Content.length > 0) + { + let oLastContent = this.Content[this.Content.length - 1]; + if (oLastContent instanceof ParaRun && oLastContent.Is_Empty()) + return true; + } + return false +} +/** + * + * @param {object} nPos + * @param {MathTextAndStyles} oMathText + */ +CMathContent.prototype.Add_MathStyleText = function(nPos, oMathText) +{ + let arrContent = oMathText.arr; + + for (let nCounter = 0; nCounter < arrContent.length; nCounter++) + { + let oCurrentElement = arrContent[nCounter]; + let MathRun; + + if (oCurrentElement instanceof AscMath.MathText) + { + let strElement = oCurrentElement.GetText(); + let MathStyle = oCurrentElement.GetAdditionalData(); + + MathRun = new ParaRun(this.Paragraph, true); + + for (let nCharPos = 0, nTextLen = strElement.length; nCharPos < nTextLen; nCharPos++) + { + let oText = null; + if (0x0026 == strElement.charCodeAt(nCharPos)) + oText = new CMathAmp(); + else + { + oText = new CMathText(false); + oText.addTxt(strElement[nCharPos]); + } + MathRun.Add(oText); + } + + MathRun.Set_RFont_ForMathRun(); + + if (MathStyle instanceof AscMath.MathTextAdditionalData) + MathRun.Apply_Pr(MathStyle.GetAdditionalStyleData()); + + this.Internal_Content_Add(nPos.pos, MathRun, false); + this.CurPos++; + nPos.pos++; + } + else if (oCurrentElement instanceof AscMath.MathTextAndStyles) + { + this.Add_MathStyleText(nPos, oCurrentElement); + } + else + { + this.Add_TextOnPos(nPos.pos, oCurrentElement, this.Paragraph); + nPos.pos++; + } + } +}; CMathContent.prototype.Add_Symbol = function(Code, TextPr, MathPr) { var MathRun = new ParaRun(this.Paragraph, true); @@ -3742,6 +3934,11 @@ CMathContent.prototype.recalculateCursorPosition = function(positionCalculator, this.Content[pos].recalculateCursorPosition(positionCalculator, isCurrent && pos === this.CurPos); } }; +CMathContent.prototype.getParagraphContentPosByXY = function(searchState) +{ + searchState.reset(); + CParagraphContentWithParagraphLikeContent.prototype.getParagraphContentPosByXY.call(this, searchState); +}; CMathContent.prototype.GetCurrentParaPos = function(align) { if (this.CurPos >= 0 && this.CurPos < this.Content.length) @@ -5545,24 +5742,6 @@ CMathContent.prototype.private_IsMenuPropsForContent = function(Action) return bDecreaseArgSize || bIncreaseArgSize || bInsertForcedBreak || bDeleteForcedBreak; }; -CMathContent.prototype.MergeParaRuns = function () -{ - if (this.Content.length > 0) { - - for(let i = 0; i < this.Content.length; i++) { - - if (this.Content[i].Type === 49) { - let CurrentRun = this.Content[i]; - while (this.Content[i+1] && this.Content[i+1].Type === 49) { - let oFutureRun = this.Content[i+1]; - let oContent = oFutureRun.Content.slice(0, oFutureRun.Content.length); - CurrentRun.ConcatToContent(oContent); - this.Remove_Content(i + 1, 1); - } - } - } - } -}; CMathContent.prototype.SplitSelectedContent = function() { if (this.Content.length < 1) @@ -5626,413 +5805,187 @@ CMathContent.prototype.SplitSelectedContentPos = function(pos) } } }; +CMathContent.prototype.AddDataFromFlatMathTextAndStyles = function (arrData) +{ + for (let i = 0; i < arrData.length; i++) + { + this.Add_Text( + arrData[i].text, + this.Paragraph, + undefined, + arrData[i].additionalMathData + ); + } +}; CMathContent.prototype.ConvertContentView = function(intStart, intEnd, nInputType, isToLinear) { - if (this.Content.length === 0) - return; + if (this.Content.length === 0) + return; - if (intStart >= 0 && intEnd <= this.Content.length) - { - let strContent = ""; - let intCount = (intEnd - intStart) + 1; + let MathText = new AscMath.MathTextAndStyles(nInputType); - for (let i = intStart, j = 0; i <= intEnd; i++) - { - let oElement = this.Content[i]; + if (intStart >= 0 && intEnd <= this.Content.length) + { + let intCount = (intEnd - intStart) + 1; - if (undefined !== oElement) - { - strContent += oElement.GetTextOfElement(nInputType); - } - } + for (let i = intStart, j = 0; i <= intEnd; i++) + { + let oElement = this.Content[i]; - if ((isToLinear || undefined === nInputType || null === nInputType) && strContent !== "") - { - this.Remove_FromContent(intStart, intCount); - this.Add_TextOnPos(intStart, strContent); + if (undefined !== oElement) + MathText.Add(oElement, false); + } - this.Content[intStart].SelectAll(); + if (MathText.IsEmpty()) + return; - this.Selection.Use = true; - this.Selection.StartPos = intStart; - this.Selection.EndPos = intStart; - } - else - { - let oTempContent = new CMathContent(); + if ((isToLinear || undefined === nInputType || null === nInputType)) + { + let arrContentAfterConvert = this.SplitContentByPos(intStart + intCount); + this.Remove_FromContent(intStart, intCount); + let nStartPos = this.Content.length; - if (nInputType === Asc.c_oAscMathInputType.Unicode) - { - AscMath.CUnicodeConverter(strContent, oTempContent); - } - else if (nInputType === Asc.c_oAscMathInputType.LaTeX) - { - AscMath.ConvertLaTeXToTokensList(strContent, oTempContent); - } + this.AddDataFromFlatMathTextAndStyles(MathText.Flat()) - this.Remove_FromContent(intStart, intCount); - this.RemoveSelection(); + let nEndPos = this.Content.length - 1; - for (let i = 0; i < oTempContent.Content.length; i++) - { - this.Add_ToContent(intStart + i, oTempContent.Content[i], false); - this.Content[intStart + i].SelectAll(); + this.ConcatToContent(this.Content.length, arrContentAfterConvert); - if (i === 0) - { - this.Selection.Use = true; - this.Selection.StartPos = intStart + i; - this.Selection.EndPos = intStart + i; - } - else - { - this.Selection.EndPos = intStart + i; - } - } + // select only converted content + this.CurPos = nEndPos; + this.Selection.Use = true; + this.Selection.StartPos = nStartPos; + this.Selection.EndPos = nEndPos; + this.State.ContentPos = nEndPos; - this.Correct_Content(true) - this.Correct_Selection(); - } - } -}; -CMathContent.prototype.SplitContentByContentPos = function() -{ - let oCurrentObj = this.Content[this.CurPos]; - let nCursorPos = oCurrentObj.State.ContentPos; - let arrContent = []; + for (let i = nStartPos; i <= nEndPos; i++) + { + this.Content[i].SelectAll(1); + } + } + else + { + let oTempContent = new CMathContent(); - if (nCursorPos < oCurrentObj.Content.length) - { - if (oCurrentObj.Split_Run) - { - let oNewRun = oCurrentObj.Split_Run(nCursorPos); - arrContent.push(oNewRun); - } - else - { - // контент в котором мы находимся не является ParaRun - // значит делить не нужно т.к мы в обертке - выходим и отменяем автокоррекцию - return false; - } - } + if (nInputType === Asc.c_oAscMathInputType.Unicode) + AscMath.CUnicodeConverter(MathText, oTempContent); + else if (nInputType === Asc.c_oAscMathInputType.LaTeX) + AscMath.ConvertLaTeXToTokensList(MathText, oTempContent); - for (let i = this.CurPos + 1; i < this.Content.length; i++) - { - arrContent.push(this.Content[i].Copy()); - } + this.Remove_FromContent(intStart, intCount); + this.RemoveSelection(); + + for (let i = 0; i < oTempContent.Content.length; i++) + { + this.Add_ToContent(intStart + i, oTempContent.Content[i], false); + this.Content[intStart + i].SelectAll(); - this.Remove_FromContent(this.CurPos + 1, this.Content.length - this.CurPos - 1); + if (i === 0) + { + this.Selection.Use = true; + this.Selection.StartPos = intStart + i; + this.Selection.EndPos = intStart + i; + } + else + { + this.Selection.EndPos = intStart + i; + } + } - return arrContent; + this.Correct_Content(true) + this.Correct_Selection(); + } + } }; -CMathContent.prototype.Process_AutoCorrect = function (oElement) +CMathContent.prototype.SplitContentByPos = function (nPos, isCurPos) { - let isConvert = false; - var oLogicDocument = this.GetLogicDocument(); - var nInputType = oLogicDocument - ? oLogicDocument. Api.getMathInputType() - : Asc.c_oAscMathInputType.Unicode; - - // LaTeX autocorrection disabled - if (nInputType === 1 || oElement.value === 39 || oElement.value === 34) - return; - - // split content by cursor position - const arrNextContent = this.SplitContentByContentPos(); - let lastElement = this.GetLastTextElement(); - - if (arrNextContent === false) - return; - - if (this.CorrectSpecialWordOnCursor(nInputType)) - { - if (arrNextContent) - this.ConcatToContent(this.Content.length, arrNextContent); - - return; - } - - // convert content of bracket block, near cursor for Unicode (1/2) -> ( CFraction ) - if (nInputType === 0) - this.ConvertContentInLastBracketBlock(nInputType); - - // convert word near cursor (\int, \sqrt, \alpha...) - if (oElement.value === 32 || this.IsLastElement(AscMath.MathLiterals.operators) || lastElement === '(' || lastElement === ")") - { - if (oElement.value === 32) - { - if (this.CorrectWordOnCursor(nInputType === 1)) - { - if (arrNextContent) - this.ConcatToContent(this.Content.length, arrNextContent); - - return; - } - } - else - { - if (this.CorrectWordOnCursor(nInputType === 1, true)) - { - if (arrNextContent) - this.ConcatToContent(this.Content.length, arrNextContent); - - return; - } - } - } + let oCurrentObj = this.Content[nPos]; + let nCursorPos = oCurrentObj instanceof ParaRun ? oCurrentObj.State.ContentPos : null; + let arrContent = []; - if (this.IsLastElement(AscMath.MathLiterals.operators)) + if (nCursorPos !== null && nCursorPos < oCurrentObj.Content.length) { - let strPreLast = this.GetPreLastTextElement(); - if (strPreLast === "_" || strPreLast === "^") + if (oCurrentObj.Split_Run) { - if (arrNextContent) - this.ConcatToContent(this.Content.length, arrNextContent); - - return + let oNewRun = oCurrentObj.Split_Run(nCursorPos); + arrContent.push(oNewRun); + } + else + { + // контент в котором мы находимся не является ParaRun + // значит делить не нужно т.к мы в обертке - выходим и отменяем автокоррекцию + return false; } } - // check is needed start autocorrection - if (!this.IsStartAutoCorrection(nInputType, oElement.value)) - { - this.AddContentForAutoCorrection(arrNextContent, true); - return; - } + for (let i = isCurPos ? nPos + 1 : nPos; i < this.Content.length; i++) + { + arrContent.push(this.Content[i].Copy()); + } - //const oSlashesContent = this.GetSlashesInfo(); + let nStartPos = isCurPos ? nPos + 1 : nPos; + let nEndPos = isCurPos ? nPos - 1 : nPos; - // Unicode - if (nInputType === 0) - { - // proceed bracket block () -> CDelimiter - let Bracket = this.CheckAutoCorrectionBrackets(nInputType, true); + if (nStartPos < this.Content.length) + this.Remove_FromContent(nStartPos, this.Content.length - nEndPos); + return arrContent; +}; +CMathContent.prototype.ProcessingOldEquationConvert = function () +{ + for (let i = 0; i < this.Content.length; i++) + { + this.Content[i].ProcessingOldEquationConvert(); + } +}; +CMathContent.prototype.Process_AutoCorrect = function(oElement) +{ + if (!AscMath.GetAutoConvertation()) + return; - // proceed rules (1/2, 1_2 ...) - isConvert = Bracket.intCounter >= 0 ? this.CheckAutoCorrectionRules(nInputType) : false; + let logicDocument = this.GetLogicDocument(); + let nInputType = logicDocument + ? logicDocument. Api.getMathInputType() + : Asc.c_oAscMathInputType.Unicode; - // else - convert content until first operator - if (isConvert === false && Bracket.intCounter >= 0 && Bracket.isConvert === false) - this.CheckWhileOperatorContent(Bracket.OperatorsPos, nInputType, true); - } - else // LaTex - { - let Bracket = this.CheckAutoCorrectionBrackets(nInputType); - if (Bracket.intCounter === 0) - this.CheckWhileOperatorContent(Bracket.OperatorsPos, nInputType, true); - } + AscCommon.ExecuteEditorAction({description : AscDFH.historydescription_Document_AutoCorrectMath}, + function() + { + const arrNextContent = this.SplitContentByPos(this.CurPos, true); + if (arrNextContent === false) + return; - this.MoveCursorToEndPos(); + if (nInputType === 0) + AscMath.StartAutoCorrectionMath(this); - if (arrNextContent.length > 0) { - this.AddContentForAutoCorrection(arrNextContent, true); - } + if (arrNextContent.length > 0) + this.AddContentForAutoCorrection(arrNextContent, true); + }, + logicDocument, this + ); }; CMathContent.prototype.GetLastContent = function () { - let oContent = this; - while (oContent && oContent.Content && oContent.Content.length > 0) - { - oContent = oContent.Content[oContent.Content.length - 1]; - } - - return oContent; -} -CMathContent.prototype.GetPreLastContent = function() -{ - let oContent = this; - - while (oContent && oContent.Content && oContent.Content.length > 0) - { - if (oContent.Content[oContent.Content.length - 1] && - oContent.Content[oContent.Content.length - 1].Content && - oContent.Content[oContent.Content.length - 1].Content.length >= 2) - { - oContent = oContent.Content[oContent.Content.length - 1]; - } - else - { - oContent = oContent.Content[oContent.Content.length - 2]; - } - } + let oContent = this; + while (oContent && oContent.Content && oContent.Content.length > 0) + { + oContent = oContent.Content[oContent.Content.length - 1]; + } - return oContent; + return oContent; } CMathContent.prototype.GetLastTextElement = function () { - let oContent = this.GetLastContent(); - if (oContent) - return String.fromCharCode(oContent.value); -} -CMathContent.prototype.GetPreLastTextElement = function () -{ - let oContent = this.GetPreLastContent(); - if (oContent) - return String.fromCharCode(oContent.value); + let oContent = this.GetLastContent(); + if (oContent) + return String.fromCharCode(oContent.value); } -CMathContent.prototype.CheckWhileOperatorContent = function(arrOperatorsList, nInputType, isInEnd) +CMathContent.prototype.AddContentForAutoCorrection = function(arrNewElements, isCurPosChange) { - if (arrOperatorsList === undefined) - return; - - let arrContentTypes = []; - let isSpace = false; - - if (this.GetLastTextElement() === " ") - { - isSpace = this.DeleteEndSpace(); - for (let i = 0; i < this.Content.length; i++) { - arrContentTypes.push(this.Content[i].Type); - } - } - - if(arrOperatorsList.length === 0) - { - this.CutConvertAndPaste([0, 0], nInputType); - } - else { - let Position = arrOperatorsList[arrOperatorsList.length - 1]; - this.CutConvertAndPaste([Position[2], Position[0]], nInputType); - } - - if (isSpace) - { - let prevLen = arrContentTypes.length - 1; - let isEqual = true; - - for (let i = this.Content.length - 1; i >= 0 && prevLen >= this.Content.length - 1; i--, prevLen--) - { - let currentContent = this.Content[i].Type; - let prevContent = arrContentTypes[prevLen]; - - if (prevContent === 49 && currentContent !== 49) - { - isEqual = false; - } - - if (currentContent !== 49) - break; - } - - if (isEqual) - this.Add_TextOnPos(this.Content.length,' '); - } -}; -CMathContent.prototype.DeleteContentForAutoCorrection = function(arrDeleteData) -{ - if (arrDeleteData < 1) - return; - - var intCounterForDel = 0; - - for (var i = 0; i < arrDeleteData.length; i++) - { - if (this.Content.length > 0) - { - var intIndex = this.CurPos; - var oContent = this.Content[intIndex]; - - var intLengthOfContent = oContent.Content.length; - var intDeleteCount = arrDeleteData[intCounterForDel]; - - if (intDeleteCount !== undefined && intDeleteCount !== 0) - { - if (intLengthOfContent <= intDeleteCount) - { - let intTempCurPos = this.CurPos; - this.Remove_FromContent(intIndex, 1); - - if (intTempCurPos === this.CurPos) - this.CurPos--; - intCounterForDel++; - } - else - { - oContent.Remove_FromContent(intLengthOfContent - intDeleteCount, intDeleteCount); - intCounterForDel++; - } - } - } - } - - if (this.Content.length === 1 && this.Content[0] && this.Content[0].Type === 49 && this.Content[0].Content.length === 0) - { - this.Remove_FromContent(0, 1); - } -}; -CMathContent.prototype.AddContentForAutoCorrection = function(arrNewElements, isCurPosChange) -{ - if (arrNewElements.length < 1) - return; + if (arrNewElements.length < 1) + return; this.ConcatToContent( isCurPosChange ? this.CurPos + 1 : this.CurPos, arrNewElements); }; -CMathContent.prototype.CorrectWordOnCursor = function(IsLaTeX, pos) -{ - return AscMath.CorrectWordOnCursor(this, IsLaTeX, pos); -}; -CMathContent.prototype.CorrectAllMathWords = function(IsLaTeX) -{ - return AscMath.CorrectAllWords(this, IsLaTeX); -}; -CMathContent.prototype.ConvertAllSpecialWords = function (IsLaTeX) -{ - return AscMath.CorrectAllSpecialWords(this, IsLaTeX) -} -CMathContent.prototype.CorrectSpecialWordOnCursor = function (IsLaTeX) -{ - return AscMath.CorrectSpecialWordOnCursor(this, IsLaTeX) -} -CMathContent.prototype.GetBracketOperatorInfo = function (isLaTeX) -{ - const arrContent = {}; - - for (let i = 0; i < this.Content.length; i++) - { - if (this.Content[i].Type === 49 && this.Content[i].Content.length > 0) - { - let cont = this.Content[i].MathAutocorrection_GetBracketsOperatorsInfo(isLaTeX); - - if (cont.length > 0) { - arrContent[i] = cont; - } - } - } - - return arrContent; -}; -CMathContent.prototype.GetOperatorInfo = function () -{ - const arrContent = {}; - - for (let i = 0; i < this.Content.length; i++) - { - if (this.Content[i].Type === 49 && this.Content[i].Content.length > 0) - { - arrContent[i] = this.Content[i].MathAutocorrection_GetOperatorInfo(); - } - } - - return arrContent; -}; -CMathContent.prototype.GetSlashesInfo = function () -{ - const arrContent = {}; - - for (let i = 0; i < this.Content.length; i++) - { - if (this.Content[i].Type === 49 && this.Content[i].Content.length > 0) - { - let content = this.Content[i].MathAutocorrection_GetSlashesInfo(); - if (content.length > 0) - { - arrContent[i] = content; - } - } - } - - return arrContent; -}; CMathContent.prototype.IsLastElement = function (type) { if (this.Content.length === 0) @@ -6044,842 +5997,6 @@ CMathContent.prototype.IsLastElement = function (type) return false; }; -//авто-конвертации контента ВНУТРИ скобок, не самих скобок -CMathContent.prototype.ConvertContentInLastBracketBlock = function(nInputType) -{ - if (this.IsLastTextElementRBracket()) - { - const oBracketsContent = this.GetBracketOperatorInfo(nInputType === 1); - const Brackets = new ProceedBrackets(oBracketsContent); - let Result = Brackets.GetPosition(); - - if (Brackets.intCounter === 0 && Brackets.BracketsPair.length > 0) - { - let oParaRun = this.Content[Result[0]]; - let oTextAfterBracket = oParaRun.Content[Result[1] + 1]; - let strTextAfterBracket = oTextAfterBracket ? String.fromCharCode(oTextAfterBracket.value) : ""; - - if (Result.length === 2 && strTextAfterBracket !== "_" || strTextAfterBracket === "^") - { - Result[1]++; - this.CutConvertAndPaste(Result, nInputType); - Brackets.isConvert = true; - } - } - } -}; - -function ProceedBrackets(arrDataOfBrackets) -{ - this.Buffer = []; - this.BracketsPair = []; - this.OperatorsPos = []; - this.isContinue = true; - this.Position = []; - this.isStopConvertation = false; - this.intCounter = 0; - this.isConvert = false; - - let one = Object.keys(arrDataOfBrackets); - - for (let i = one.length - 1; i >= 0 && this.isContinue; i--) - { - const BracketsOfCurrentContent = arrDataOfBrackets[one[i]]; - - if (!BracketsOfCurrentContent && BracketsOfCurrentContent.length === 0) - continue; - - this.Position[0] = parseInt(one[i]); - - for (let j = BracketsOfCurrentContent.length - 1; j >= 0 && this.isContinue; j--) - { - const intCurrentData = BracketsOfCurrentContent[j]; - - if (this.Buffer.length === 0) - this.PushData(intCurrentData); - else - this.AnalyseData(intCurrentData); - } - } -} -ProceedBrackets.prototype.GetLastBracketStartPos = function () -{ - let arrBrack = this.BracketsPair[this.BracketsPair.length - 1][0][0]; - return arrBrack; -} -ProceedBrackets.prototype.PushData = function (intContent) -{ - intContent[2] = this.Position[0] - - if (intContent[1] === 2) - { - this.OperatorsPos.push(intContent); - return - } - else if (intContent[1] === -1) - this.intCounter++; - else if (intContent[1] === 1) - this.intCounter--; - else if (intContent[1] === 0) - { - if (this.intCounter > 0) - this.intCounter++; - else - this.intCounter--; - } - - this.Buffer.push(intContent); -}; -ProceedBrackets.prototype.AnalyseData = function (arrContent) -{ - const arrLastElement = this.GetLastData(); - - arrContent[2] = this.Position[0]; - if (arrContent[1] === 0) - { - if (arrLastElement[1] === 0) - { - this.Buffer.shift(); - this.BracketsPair.push([arrContent, arrLastElement]); - this.intCounter++; - this.Position[1] = arrContent[0] - 1; - } - else if (arrLastElement[1] === 1) - { - this.Buffer.shift(); - this.BracketsPair.push([arrContent, arrLastElement]); - this.intCounter++; - this.Position[1] = arrContent[0] - 1; - } - else - return; - } - else if (arrContent[1] === 1) - { - if (arrLastElement[1] === 1) - this.PushData(arrContent); - else if (arrLastElement[1] === 2) - this.OperatorsPos.push(arrLastElement); - else if (arrLastElement[1] === -1) { - this.Buffer.shift(); - this.BracketsPair.push([arrContent, arrLastElement]); - this.intCounter--; - this.Position[1] = arrContent[0] - 1; - } - else - return; - } - else if (arrContent[1] === -1) - { - if (arrLastElement[1] === 0) - { - this.Buffer.shift(); - this.BracketsPair.push([arrContent, arrLastElement]); - this.intCounter++; - this.Position[1] = arrContent[0] - 1; - } - else if (arrLastElement[1] === 1) - { - this.Buffer.shift(); - this.BracketsPair.push([arrContent, arrLastElement]); - this.intCounter++; - this.Position[1] = arrContent[0] - 1; - } - else if (arrLastElement[1] === -1) - return; - else if (arrLastElement[1] === 2) { - this.OperatorsPos.push(arrLastElement); - this.isStopConvertation = true; - } - else { - this.isContinue = false; - return - } - } -}; -ProceedBrackets.prototype.GetLastData = function () -{ - let arrContent = []; - let intCounter = this.Buffer.length - 1; - - while (arrContent !== 2 && intCounter >= 0) - { - arrContent = this.Buffer[intCounter]; - intCounter--; - } - - if (arrContent) - return arrContent; - - return false; -}; -ProceedBrackets.prototype.IsStop = function() -{ - return this.isStopConvertation === true || this.intCounter !== 0 -}; -ProceedBrackets.prototype.IsHasPoints = function () -{ - return this.Position.length === 2; -}; -ProceedBrackets.prototype.GetPosition = function () -{ - let Pair = []; - let oLastBracket = this.BracketsPair[0]; - if (oLastBracket) - { - let oClosePos = oLastBracket[0]; - Pair[0] = oClosePos[2]; - Pair[1] = oClosePos[0]; - } - - return Pair; -}; -ProceedBrackets.prototype.IsBufferIncludeOneOpenBracket = function () -{ - return this.Buffer.length === 1 && this.Buffer[0][1] === -1 -}; -ProceedBrackets.prototype.FindPairPos = function (intPos) -{ - for (let i = 0; i < this.BracketsPair.length; i++) - { - let arrCurrentPair = this.BracketsPair[i]; - - if (arrCurrentPair[1] === intPos) - return arrCurrentPair[0]; - } - return false; -}; - -const ParaRunIterator = function(ParaRun) -{ - this.Content = ParaRun.Content; - this.Cursor = ParaRun.Content.length - 1; -} -ParaRunIterator.prototype.GetNext = function() -{ - if (!this.IsHasContent()) - return false; - - const oContent = this.Content[this.Cursor]; - this.Cursor--; - - return oContent.value; -}; -ParaRunIterator.prototype.IsHasContent = function() -{ - return this.Cursor !== -1; -}; -ParaRunIterator.prototype.CheckCursor = function() -{ - if (this.Cursor === -1) { - this.Cursor = 0; - } -}; - -const ContentIterator = function(Content, oBracketContent) -{ - this.Content = Content.Content; - this.cursor = this.Content.length - 1; - this.RulePosition = []; - this.BracketPosition = []; - this.CurrentElement; - this.intBracketCounter = 0; - this.BracketContent = oBracketContent; - this.isBracket = false; -} -ContentIterator.prototype.IsHasContent = function () -{ - return this.cursor >= 0; -}; -ContentIterator.prototype.GetNext = function (nextRule) -{ - if (!this.CurrentElement) - this.CreateCurrentElement(nextRule); - - return this.GetNextFromCurrentElement(nextRule); -}; -ContentIterator.prototype.CreateCurrentElement = function(nextRule) -{ - const oCurrent = this.Content[this.cursor]; - - if (oCurrent instanceof ParaRun) { - if (oCurrent.Content.length === 0) { - this.cursor--; - this.CreateCurrentElement(nextRule); - } - else - this.CurrentElement = new ParaRunIterator(oCurrent); - } - else - this.CurrentElement = oCurrent; -}; -ContentIterator.prototype.GetNextFromCurrentElement = function (nextRule) -{ - if (this.CurrentElement instanceof ParaRunIterator) - { - if (!this.CurrentElement.IsHasContent() && this.cursor > 0) - { - this.cursor--; - this.CreateCurrentElement(); - return this.GetNextFromCurrentElement(nextRule); - } - else if (!this.CurrentElement.IsHasContent() && this.cursor <= 0) - { - return false; - } - - let intCount = 0; - let intCode; - - while (this.CurrentElement.IsHasContent()) - { - let prevCode = intCode; - let intCurrent = intCode = this.CurrentElement.GetNext(); - let strCurrent = String.fromCharCode(intCode); - - if (this.CurrentRule === strCurrent) - return intCurrent; - - if (this.CurrentRule !== "\"" && strCurrent === "\"") - { - return this.CheckTextLiteral(strCurrent); - } - if (intCount === 0 && AscMath.MathLiterals.rBrackets.IsIncludes(strCurrent)) - { - return this.CheckBracket(strCurrent); - } - else if (AscMath.MathLiterals.rBrackets.IsIncludes(strCurrent)) - { - this.CurrentElement.Cursor++; - return prevCode; - } - else if (AscMath.MathLiterals.lBrackets.IsIncludes(strCurrent)) - { - this.CurrentElement.Cursor++; - return prevCode; - } - - else if (strCurrent === "▒" && this.CurrentRule !== "▒") { - this.CurrentElement.Cursor++; - return prevCode; - } - - else if (nextRule !== true && nextRule && intCurrent === nextRule.charCodeAt(0)) - { - this.CurrentElement.Cursor++; - return prevCode; - } - - if (this.CurrentRule !== true) - return false; - - intCount++; - } - - return intCode; - } - else - { - if (nextRule !== undefined) { - this.cursor--; - this.CurrentElement = undefined; - } - - return true; - } -}; - -ContentIterator.prototype.CheckTextLiteral = function(literal) -{ - while (this.CurrentElement) - { - if (this.CurrentElement.Cursor < 0) - return - - if (!this.CurrentElement.IsHasContent() && this.cursor > 0) - { - this.cursor--; - this.CreateCurrentElement(); - } - - if (!(this.CurrentElement instanceof ParaRunIterator) || this.CurrentElement.Cursor < 0) - { - this.cursor--; - this.CreateCurrentElement(); - } - else if (this.CurrentElement.IsHasContent()) - { - let intCurrent = this.CurrentElement.GetNext(); - let strCurrent = String.fromCharCode(intCurrent); - - if (strCurrent === literal) - return true; - } - } -} -ContentIterator.prototype.CheckBracket = function(strCurrent) -{ - this.intBracketCounter--; - - while (this.CurrentElement && this.intBracketCounter !== 0) - { - if (!this.CurrentElement.IsHasContent() && this.cursor > 0) - { - this.cursor--; - this.CreateCurrentElement(); - } - - if (!(this.CurrentElement instanceof ParaRunIterator)) - { - this.cursor--; - this.CreateCurrentElement(); - } - - while (this.CurrentElement.IsHasContent()) - { - let intCurrent = this.CurrentElement.GetNext(); - let strCurrent = String.fromCharCode(intCurrent); - - if (AscMath.MathLiterals.rBrackets.IsIncludes(strCurrent) || strCurrent === "┤") - { - this.CheckBracket(strCurrent); - } - else if (AscMath.MathLiterals.lrBrackets.IsIncludes(strCurrent)) - { - if (this.intBracketCounter === 0) - { - this.CheckBracket(strCurrent); - } - else if (this.intBracketCounter < 0) - { - this.intBracketCounter++; - } - else if (this.intBracketCounter > 0) - { - this.intBracketCounter--; - } - } - else if (AscMath.MathLiterals.lBrackets.IsIncludes(strCurrent) || strCurrent === "├" && this.intBracketCounter < 0) - { - this.intBracketCounter++; - return true - } - else if (AscMath.MathLiterals.lBrackets.IsIncludes(strCurrent) || strCurrent === "├") - { - this.CurrentElement.CheckCursor(); - this.CurrentElement.Cursor++; - return - } - } - } -} -ContentIterator.prototype.ResetParaRunCursor = function() -{ - this.cursor = this.Content.length - 1 - this.CurrentElement = undefined; - this.intBracketCounter = 0; -}; -ContentIterator.prototype.CheckRules = function () -{ - // TODO it is better to search for sequences by what is, and not vice versa; incredibly inefficient!!! - const rules = [ - //true обозначает обычный текст или блоки контента (CFraction, CLimit, CDegree...); - // ["_"], - // ["^"], - ["(", "_", true, "^", true, ")", true], - ["(", "^", true, "_", true, ")", true], - - [true, "^", true, "_", true, "▒", true], - [true, "_", true, "^", true, "▒", true], - - ["^", true, "_", true, " ", true], - ["_", true, "^", true, " ", true], - - [true, "^", true, "_", true, true], - [true, "_", true, "^", true, true], - - ["(", "_", true, ")", true], - ["(", "^", true, ")", true], - - [true, true, "⁡", true], // funcapply - - ["^", true, "_", true], - ["_", true, "^", true], - - ["_", true, " ", true], - ["^", true, " ", true], - - [true, "┬", true, true], - [true, "┴", true, true], - - ["⏟", true, "┬", true], - ["⏟", true, "┴", true], - ["⏞", true, "┬", true], - ["⏞", true, "┴", true], - - [true, "_", true, "^", true], - [true, "^", true, "_", true], - - [true, "^", true, "▒", true], - [true, "_", true, "▒", true], - [true, "▒", true], - - [true, "┬", true], - [true, "┴", true], - - [true, "⏟", true], - [true, "⏞", true], - - ["s","i","n"],["t","a","n"],["t","a","n","h"],["s","u","p"],["s","i","n","h"],["s","e","c"], - ["h","o","m"],["a","r","g"],["a","r","c","y","a","n"],["a","r","c","s","i","n"],["a","r","c","s","e","c"], - ["a","r","c","c","s","c"],["a","r","c","c","o","t"],["a","r","c","c","o","s"],["i","n","f"],["g","c","d"], - ["e","x","p"],["d","i","m"],["d","e","t"],["d","e","g"],["c","s","c"],["c","o","t","h"],["c","o","t"], - ["c","o","s","h"],["c","o","s"],["P","r"],["l","g"],["l","n"],["l","o","g"],["s","g","n"],["s","e","c","h"], - ["l","i","m"],["m","i","n"],["m","a","x"], - - [true, "/", true], - [true, "⁄", true], - [true, "⊘", true], - [true, "⒞", true], - [true, "∕", true], - [true, "^", true], - [true, "_", true], - - ['\\frac', true, true], - - [true, "'", true ], - [true, "′", true ], - [true, "″", true ], - [true, "‴", true ], - [true, "⁗", true ], - - ["√", true], - ["∛", true], - ["∜", true], - ["▭", true], - ["□", true], - ["¯", true], - ["▁", true], - ["/", true], - ["⁄", true], - ["⊘", true], - ["⒞", true], - ["∕", true], - ["⏟", true], - ["⏞", true], - [true, "/"], - [true, "⁄"], - [true, "⊘"], - [true, "⒞"], - [true, "∕"], - ["■", true], - - [true, "┬"], - [true, "┴"], - ["/"], - ["⁄"], - ["⊘"], - ["⒞"], - ["∕"], - - [true, "́" ], - [true, "̂" ], - [true, "̌" ], - [true, "̃" ], - [true, "̀" ], - [true, "̇" ], - [true, "̈" ], - [true, "⃛" ], - [true, "̄" ], - [true, "⃗" ], - [true, "⃖" ], - [true, "⃡" ], - [true, "⃐" ], - [true, "⃑" ], - [true, "̳" ], - [true, "̲"], - - [true, "′" ], - [true, "'" ], - [true, "″" ], - [true, "‴" ], - [true, "⁗" ], - - ["'"], - ["′"], - ["″"], - ["‴"], - ["⁗"], - ]; - - for (let j = 0; j < rules.length; j++) - { - this.cursor = this.Content.length - 1; - let arrCurrentRule = rules[j]; - let intRuleCounter = 0; - - for (let i = arrCurrentRule.length - 1; i >= 0 && this.IsHasContent(); i--) - { - this.CurrentRule = arrCurrentRule[i]; - const intCharCode = this.GetNext(arrCurrentRule[i - 1]); - - if (arrCurrentRule[i] === true && intCharCode) - intRuleCounter++; - else if (arrCurrentRule[i] !== true && String.fromCharCode(intCharCode) === arrCurrentRule[i]) - intRuleCounter++; - else - break; - } - - if (intRuleCounter === arrCurrentRule.length) - { - this.RulePosition[0] = this.cursor; - this.RulePosition[1] = this.CurrentElement instanceof ParaRunIterator && this.CurrentElement.Cursor >= 0 ? this.CurrentElement.Cursor : 0; - break; - } - else - this.ResetParaRunCursor(); - } - - return; -}; -ContentIterator.prototype.WriteBracketPosition = function (intGlobalPos, intParaRunPos) -{ - this.BracketPosition[0] = intGlobalPos; - this.BracketPosition[1] = intParaRunPos; -}; -ContentIterator.prototype.GetPosition = function() -{ - let brack = this.BracketPosition; - let rule = this.RulePosition; - - if (rule[0] > brack[0]) - { - if (rule[1] > brack[1]) { - return rule; - } - else { - this.isBracket = true; - return brack; - } - } - else - { - if (brack[1] > rule[1]) { - this.isBracket = true - return brack - } - else { - return rule - } - } -}; -CMathContent.prototype.CheckAutoCorrectionRules = function(nInputType) -{ - const oRuleIterator = new ContentIterator(this); - let prev = []; - let isSpace = false; - let lastOperator; - - if (this.IsLastElement(AscMath.MathLiterals.operators)) - { - lastOperator = this.GetLastTextElement(); - let lastContent = this.Content[this.Content.length - 1]; - if (lastContent && lastContent.Content.length >= 1) - { - lastContent.Remove_FromContent(lastContent.Content.length - 1, 1); - } - } - else if (this.GetLastTextElement() === " ") - { - isSpace = this.DeleteEndSpace(); - for (let i = 0; i < this.Content.length; i++) { - prev.push([this.Content[i].constructor.name, this.Content[i].Content ? this.Content[i].Content.length : 0]); - } - - // if we have only space - doesn't convert - if (prev.length === 1 && prev[0][0] === 'ParaRun' && this.Content[0].GetTextOfElement().length === 0) - { - this.Add_Text(' '); - return; - } - } - - oRuleIterator.CheckRules(); - - const arrPosition = oRuleIterator.RulePosition; - - if (arrPosition.length === 2) - this.CutConvertAndPaste(arrPosition, nInputType, true); - - let now = []; - - for (let i = 0; i < this.Content.length; i++) { - now.push([this.Content[i].constructor.name, this.Content[i].Content ? this.Content[i].Content.length : 0]); - } - - if (isSpace) - { - let counter = 0; - let isEqual = true; - while (counter !== 2) - { - let tprev = prev[prev.length - 1 - counter]; - let tnow = now[now.length - 1 - counter]; - - if(tnow && !tprev && tnow[0] !== "ParaRun") - isEqual = false; - - if (!tprev || !tnow) - break; - - let tprevType = tprev[0]; - let tnowType = tnow[0]; - - let tprevCount = tprev[1]; - let tnowCount= tnow[1]; - - if (tprevType !== tnowType || tprevCount !== tnowCount) { - if (!(counter === 0 && tprevCount === tnowCount + 1)) { - isEqual = false; - break; - } - } - - if (tnow[0] !== "ParaRun") - break; - - counter++; - } - if (isEqual) this.Add_TextOnPos(this.Content.length, ' '); - } - if (lastOperator) - { - this.Add_TextOnPos(this.Content.length, lastOperator); - } - return true -}; -CMathContent.prototype.IsLastTextElementRBracket = function() -{ - let strLast = this.GetLastTextElement() - return AscMath.MathLiterals.rBrackets.IsIncludes(strLast) || - AscMath.MathLiterals.lrBrackets.IsIncludes(strLast) -}; -CMathContent.prototype.IsPreLastTextElementRBracket = function() -{ - let strPreLast = this.GetPreLastTextElement() - return AscMath.MathLiterals.rBrackets.IsIncludes(strPreLast) || - AscMath.MathLiterals.lrBrackets.IsIncludes(strPreLast) || strPreLast === "┤" -}; -CMathContent.prototype.CheckAutoCorrectionBrackets = function(nInputType) -{ - const oBracketsContent = this.GetBracketOperatorInfo(nInputType === 1); - const Brackets = new ProceedBrackets(oBracketsContent, nInputType); - const arrPosition = Brackets.GetPosition(); - - if (!(this.IsLastTextElementRBracket() || this.IsPreLastTextElementRBracket()) || this.GetPreLastTextElement() === "〗") - return Brackets; - - if (Brackets.BracketsPair.length > 0 && this.GetLastTextElement() === " " || - this.IsLastTextElementRBracket() || - this.IsLastElement(AscMath.MathLiterals.operators) - ) - { - if (arrPosition.length === 2 && Brackets.intCounter === 0) - { - if (this.GetLastTextElement() === " ") - this.DeleteEndSpace(); - - this.CutConvertAndPaste(arrPosition, nInputType); - Brackets.isConvert = true; - } - } - - return Brackets; -}; -CMathContent.prototype.CutConvertAndPaste = function(arrPos, nInputType, isRules) -{ - if (arrPos.length === 0) - arrPos = [0, 0]; - - if (arrPos[0] < 0) - arrPos[0] = 0; - - let strContent = ""; - let strFirstLetter = "" - - for (let i = this.Content.length - 1; i >= arrPos[0]; i--) - { - const CurrentContent = this.Content[i]; - if (CurrentContent === undefined) - continue; - - if (i === arrPos[0] && CurrentContent instanceof ParaRun) - { - for (let j = CurrentContent.Content.length - 1; j >= arrPos[1] - 1; j--) - { - if (j >= 0) - { - if (j >= arrPos[1]) - { - strContent = CurrentContent.Content[j].GetTextOfElement(nInputType === 1) + strContent; - CurrentContent.Remove_FromContent(j, 1, true); - } - - else if (j >= 0) - strFirstLetter = CurrentContent.Content[j].GetTextOfElement(nInputType === 1); - } - } - } - else - { - if (CurrentContent.Type !== 49) - { - if (CurrentContent instanceof CDelimiter) - { - strContent = CurrentContent.GetTextOfElement(nInputType === 1) + strContent; - } - else - { - strContent = "〖" + CurrentContent.GetTextOfElement(nInputType === 1) + "〗" + strContent; - } - strContent = strContent.trim(); - } - else - { - strContent = CurrentContent.GetTextOfElement(nInputType === 1) + strContent; - } - this.Remove_FromContent(i, 1, true); - } - } - - if (strFirstLetter === "■" && !isRules) - this.Add_Text(strContent); - else - AscMath.GetConvertContent(nInputType, strContent, this); - - this.Correct_ContentCurPos(); - this.Correct_Content(true); - this.MoveCursorToEndPos(); -}; -CMathContent.prototype.DeleteEndSpace = function() -{ - const oLastContent = this.Content[this.Content.length - 1]; - - if (oLastContent instanceof ParaRun) - { - const isReturn = oLastContent.MathAutoCorrection_DeleteLastSpace(); - if (isReturn) - return oLastContent; - - return false; - } -}; -CMathContent.prototype.IsStartAutoCorrection = function(nInputType, intCode) -{ - return AscMath.IsStartAutoCorrection(nInputType, intCode) - && !(this.IsLastElement(AscMath.MathLiterals.radical) || this.IsLastElement(AscMath.MathLiterals.nary)) -}; CMathContent.prototype.Clear_ContentChanges = function() { this.m_oContentChanges.Clear(); @@ -6892,96 +6009,13 @@ CMathContent.prototype.Refresh_ContentChanges = function() { this.m_oContentChanges.Refresh(); }; -CMathContent.prototype.IsOneElementInContentForGetText = function() -{ - let count = this.Content.length; - - if (count === 2 && this.Content[this.Content.length - 1].Content.length === 0) - { - count-- - } - if (count === 1 && this.Content[0].Content.length > 1) - { - count++ - } - - return count === 1; -}; -CMathContent.prototype.IsFirstLetterIsBracket = function (isLaTeX) -{ - let firstElement = this.Content[this.Content.length - 1]; - - if (isLaTeX && firstElement.GetTextOfElement(isLaTeX)[0] === "{") - { - return true; - } - else if (!isLaTeX && firstElement.GetTextOfElement(isLaTeX)[0] === "(") - { - return true; - } - - return false; -}; -CMathContent.prototype.GetMultipleContentForGetText = function(isLaTeX, isNotBrackets, isMustBeBracketsInLaTeX, isMustBeBracketsInUnicode) +CMathContent.prototype.haveMixedContent = function(isLaTeX) { - let str = ""; - - if ((isMustBeBracketsInLaTeX && isLaTeX) || (isMustBeBracketsInUnicode && !isLaTeX)) - { - if (isMustBeBracketsInLaTeX === true && isLaTeX) - { - str = this.GetTextOfElement(isLaTeX); - if (str.length > 0 && str[0] !== "{") - { - str = "{" + this.GetTextOfElement(isLaTeX) + "}"; - } - } - - if (isMustBeBracketsInUnicode === true && !isLaTeX) - { - if (str.length > 0 && str[0] !== "(") - { - str = "(" + this.GetTextOfElement(isLaTeX) + ")"; - } - } - - return str; - } - - if (this.IsOneElementInContentForGetText() || this.IsFirstLetterIsBracket(isLaTeX)) - { - str = this.GetTextOfElement(isLaTeX) - } - else - { - if (isNotBrackets) - { - str = this.GetTextOfElement(isLaTeX) - } - else - { - str = this.GetTextOfElement(isLaTeX); - if (!AscMath.functionNames.includes(str) && !(str[0] === "\"" && str[str.length-1] === "\"") && str[0] !== "(") - { - str = (isLaTeX === true) - ? "{" + this.GetTextOfElement(isLaTeX) + "}" - : "(" + this.GetTextOfElement(isLaTeX) + ")"; - } - } - } - - if (!isLaTeX && isNotBrackets && str[0] === "├" && str[str.length - 1] === "┤") - { - return str.slice(1,str.length - 1); - } - - return this.CheckIsEmpty(str); -}; -CMathContent.prototype.haveMixedContent = function() -{ - let isOperator = 0; - let isNormalText = 0; - let isCustomContent = 0; + let isOperator = 0; + let isNormalText = 0; + let isCustomContent = 0; + let nMathContent = 0; + let isSpace = 0; for (let i = 0; i < this.Content.length; i++) { @@ -6993,65 +6027,126 @@ CMathContent.prototype.haveMixedContent = function() if (oCurrentContent.IsContainNormalText()) isNormalText = 1; + + if (oCurrentContent.IsContainSpaces()) + isSpace = 1; + + // if (oCurrentContent.Content.length > 0) + // nMathContent++; } else { + nMathContent++; + + if (isLaTeX && oCurrentContent instanceof CDelimiter) + return false; + if (isCustomContent || oCurrentContent instanceof CFraction || oCurrentContent instanceof CDegree - || oCurrentContent instanceof CDegreeSubSup) + || oCurrentContent instanceof CDegreeSubSup + || oCurrentContent instanceof CLimit + || oCurrentContent instanceof CMathFunc + ) return true; - - isCustomContent = 1; } - - if (isOperator + isNormalText + isCustomContent > 1) + + if (isOperator + isNormalText + isSpace > 1 || (!isLaTeX && nMathContent > 1)) return true; } return false; }; -CMathContent.prototype.CheckIsEmpty = function(strAtom) -{ - if (strAtom === '⬚') - return ""; - else - return strAtom; -}; -CMathContent.prototype.GetTextOfElement = function(isLaTeX) +CMathContent.prototype.GetTextOfElement = function(oMathText, isDefaultText) { - let str = ""; + oMathText = new AscMath.MathTextAndStyles(oMathText, isDefaultText); + const checkIsNotOperatorOrBracket = function (symbol) + { + if (!symbol) + return true; + + let isNotOperatorOrBracket = true; + + for (let i = 0; i < symbol.length; i++) + { + isNotOperatorOrBracket = !AscMath.MathLiterals.operator.SearchU(symbol[i]) // если не содержит оператор, скобки + && !AscMath.MathLiterals.lrBrackets.SearchU(symbol[i]) + && !AscMath.MathLiterals.rBrackets.SearchU(symbol[i]) + && !AscMath.MathLiterals.lBrackets.SearchU(symbol[i]) + + if (!isNotOperatorOrBracket) + return false; + } + } + // refactor this to normal methods for (let i = 0; i < this.Content.length; i++) - { - str += this.Content[i].GetTextOfElement(isLaTeX); + { + oMathText.Add(this.Content[i], false); + + if (!oMathText.IsLaTeX()) + { + if (!(this.Content[i] instanceof ParaRun)) // если текущий элемент математический объект + { + if (this.Content[i + 1] && !(this.Content[i + 1] instanceof ParaRun)) // если след эл. мат. объект + { + oMathText.AddText(new AscMath.MathText(" ", this.Content[i])); + } + else if (this.Content[i + 1] && (this.Content[i + 1] instanceof ParaRun) && this.Content[i + 2] && !(this.Content[i + 2] instanceof ParaRun)) + { + let strText = this.Content[i + 1].GetTextOfElement().GetText(); + if (checkIsNotOperatorOrBracket(strText[0])) + oMathText.AddText(new AscMath.MathText(" ", this.Content[i])); + } + else if (this.Content[i + 1] && this.Content[i + 1] instanceof ParaRun) // если след элемент текстовый блок + { + let strText = this.Content[i + 1].GetTextOfElement().GetText(); + if (!this.Content[i + 1].Is_Empty() && checkIsNotOperatorOrBracket(strText[0])) + oMathText.AddText(new AscMath.MathText(" ", this.Content[i])); + } + } + else if (this.Content[i] instanceof ParaRun) + { + if (this.Content[i + 1] && !(this.Content[i+1] instanceof ParaRun) + && !(this.Content[i+1] instanceof CDelimiter || this.Content[i+1] instanceof CMathFunc)) + { + let strText = this.Content[i].GetTextOfElement().GetText(); + if (checkIsNotOperatorOrBracket(strText) && !this.Content[i].Is_Empty()) + oMathText.AddText(new AscMath.MathText(" ", this.Content[i])); + } + } + } } - return str; + return oMathText; }; CMathContent.prototype.GetTextContent = function(bSelectedText, isLaTeX) { if (undefined === isLaTeX || null === isLaTeX) isLaTeX = false; - let str = ""; - let StartPos = 0; - let EndPos = this.Content.length; + let nStartPos = 0; + let nEndPos = this.Content.length - 1; + let oMathText = new AscMath.MathTextAndStyles(isLaTeX); - if (bSelectedText) { - StartPos = (this.Selection.Use == true ? Math.min(this.Selection.StartPos, this.Selection.EndPos) : this.CurPos.ContentPos); - EndPos = (this.Selection.Use == true ? Math.max(this.Selection.StartPos, this.Selection.EndPos) : this.CurPos.ContentPos); + if (bSelectedText) + { + nStartPos = this.Selection.Use == true + ? Math.min(this.Selection.StartPos, this.Selection.EndPos) + : this.CurPos.ContentPos; + nEndPos = this.Selection.Use == true + ? Math.max(this.Selection.StartPos, this.Selection.EndPos) + : this.CurPos.ContentPos; } - for (let i = StartPos; i <= EndPos; i++) + for (let i = nStartPos; i <= nEndPos; i++) { - if (this.Content[i] !== undefined) - { - str += this.Content[i].GetTextOfElement(isLaTeX, bSelectedText); - } + let oElement = this.Content[i]; + oMathText.Add(oElement, false, false, bSelectedText); } - return {str: str}; + let strContent = oMathText.GetText(); + return {str: strContent, content: oMathText}; }; var g_DefaultAutoCorrectMathFuncs = @@ -7116,7 +6211,7 @@ var g_DefaultAutoCorrectMathSymbolsList = ['\\biguplus', 0x2A04], ['\\bigvee', 0x22C1], ['\\bigwedge', 0x22C0], - ['\\binomial',[0x0028, 0x0061, 0x002B, 0x0062, 0x0029, 0x005E, 0x005E, 0x003D, 0x2211, 0x005F, 0x0028, 0x006B, 0x003D, 0x0030, 0x0029, 0x005E, 0x006E, 0x0020, 0x2592, 0x0028, 0x006E, 0x00A6, 0x006B, 0x0029, 0x0061, 0x005E, 0x006B, 0x0020, 0x0062, 0x005E, 0x0028, 0x006E, 0x002D, 0x006B, 0x0029]], + ['\\binomial',[0x0028, 0x0061, 0x002B, 0x0062, 0x0029, 0x005E, 0x006E, 0x003D, 0x2211, 0x005F, 0x0028, 0x006B, 0x003D, 0x0030, 0x0029, 0x005E, 0x006E, 0x0020, 0x2592, 0x0028, 0x006E, 0x00A6, 0x006B, 0x0029, 0x0061, 0x005E, 0x006B, 0x0020, 0x0062, 0x005E, 0x0028, 0x006E, 0x002D, 0x006B, 0x0029]], ['\\bot', 0x22A5], ['\\bowtie', 0x22C8], ['\\box', 0x25A1], @@ -7323,7 +6418,7 @@ var g_DefaultAutoCorrectMathSymbolsList = ['\\inc', 0x2206], ['\\infty', 0x221E], ['\\int', 0x222B], - ['\\integral', [0x0031, 0x002F, 0x0032, 0x03C0, 0x222B, 0x005F, 0x0030, 0x005E, 0x0032, 0x03C0, 0x2592, 0x2146, 0x03B8, 0x0020, 0x0028, 0x0061, 0x002B, 0x0062, 0x0073, 0x0069, 0x006E, 0x0020, 0x03B8, 0x0029, 0x003D, 0x0031, 0x002F, 0x221A, 0x0028, 0x0061, 0x005E, 0x0032, 0x002D, 0x0062, 0x005E, 0x0032, 0x0029]], + ['\\integral', [0x0031, 0x002F, 0x0032, 0x03C0, 0x0020, 0x222B, 0x005F, 0x0030, 0x005E, 0x0032, 0x03C0, 0x0020, 0x2592, 0x2146, 0x03B8, 0x002F, 0x0028, 0x0061, 0x002B, 0x0062, 0x0020, 0x0073, 0x0069, 0x006E, 0x0020, 0x03B8, 0x0029, 0x003D, 0x0031, 0x002F, 0x221A, 0x0028, 0x0061, 0x005E, 0x0032, 0x002D, 0x0062, 0x005E, 0x0032, 0x0029]], ['\\iota', 0x03B9], ['\\Iota', 0x0399], ['\\itimes', 0x2062], @@ -7607,166 +6702,6 @@ var g_AutoCorrectMathsList = { DefaultAutoCorrectMathFuncs : g_DefaultAutoCorrectMathFuncs, AutoCorrectMathFuncs : g_AutoCorrectMathFuncs }; -//символы для mathfunc (интеграл, сумма...) -var q_aMathAutoCorrectControlAggregationCodes = -{ - 0x2211 : 1, 0x220F : 1, 0x2210 : 1, 0x22C0 : 1, 0x222E : 1, - 0x22C1 : 1, 0x22C2 : 1, 0x22C3 : 1, 0x2A06 : 1, 0x2A04 : 1, - 0x2A00 : 1, 0x2A01 : 1, 0x2A02 : 1, 0x222B : 1, 0x222C : 1, - 0x222D : 1, 0x2A0C : 1, 0x222F : 1, 0x2230 : 1, 0x2232 : 1 -}; -//символы accent -var q_aMathAutoCorrectAccentCharCodes = -{ - 0x0305 : 1, 0x033F : 1, 0x0332 : 1, 0x0333 : 1, 0x0301 : 1, - 0x0300 : 1, 0x20D7 : 1, 0x0306 : 1, 0x0302 : 1, 0x20E1 : 1, - 0x20D1 : 1, 0x030C : 1, 0x0303 : 1, 0x20D6 : 1, 0x20D0 : 1, - 0x0307 : 1, 0x0308 : 1, 0x20DB : 1, 0x20DC : 1, 0x2032 : 1, - 0x2033 : 1, 0x2034 : 1, 0x2057 : 1 -}; -//left brackets -var g_MathLeftBracketAutoCorrectCharCodes = -{ - 0x28 : 1, 0x5B : 1, 0x7B : 1, /*0x7C : 1, 0x2016 : 1,*/ 0x27E8 : 1, - 0x2329 : 1, 0x27E6 : 1, 0x27EA : 1, 0x2308 : 1, 0x230A : 1, - 0x3016 : 1, 0x251C : 1 -}; -//righ brackets -var g_MathRightBracketAutoCorrectCharCodes = -{ - 0x29 : 1, 0x5D : 1, 0x7D : 1, /*0x7C : 1, 0x2016 : 1,*/ 0x27E9 : 1, - 0x232A : 1, 0x27E7 : 1, 0x27EB : 1, 0x2309 : 1, 0x230B : 1, - 0x3017 : 1, 0x2524 : 1 -}; -//знаки (минус, сумма...) -var g_aMathAutoCorrectFracCharCodes = -{ - 0x20 : 1, 0x21 : 1, /*0x22 : 1,*/ 0x23 : 1, 0x24 : 1, 0x25 : 1, 0x26 : 1, - /*0x27 : 1,*/ 0x28 : 1, 0x29 : 1, 0x2A : 1, 0x2B : 1, 0x2C : 1, 0x2D : 1, - 0x2E : 1, 0x2F : 1, 0x3A : 1, 0x3B : 1, 0x3C : 1, 0x3D : 1, 0x3E : 1, - 0x3F : 1, 0x40 : 1, 0x5B : 1, /*0x5C : 1,*/ 0x5D : 1, 0x5E : 1, 0x5F : 1, - 0x60 : 1, 0x7B : 1, /*0x7C : 1,*/ 0x7D : 1, 0x7E : 1, /*0x2592 : 1,*/ 0xD7 : 1, - 0x221D: 1, 0x2248: 1, 0x2249: 1, 0x2261: 1, 0x2262: 1, 0x00F7 : 1, - 0x226A: 1, 0x226B: 1, 0x203C: 1, 0x2026: 1, 0x2237: 1, 0x2254: 1, 0x226E: 1, - 0x226F: 1, 0x2260: 1, 0x2245: 1, 0x2213: 1, 0x00B1: 1, 0x2264: 1, - 0x2265: 1, 0x2200: 1, 0x222A: 1, 0x2229: 1, 0x2205: 1, 0x00B0: 1, 0x2109: 1, - 0x2103: 1, 0x2203: 1, 0x2204: 1, 0x2208: 1, 0x220B: 1, 0x2190: 1, 0x2191: 1, - 0x2192: 1, 0x2193: 1, 0x2194: 1, 0x2234: 1, 0x2217: 1, 0x2219: 1, 0x22EE: 1, - 0x22EF: 1, 0x22F0: 1, 0x22F1: 1, 0x2062: 1, 0x2297: 1 -}; -//символы для определения необходимости автозамены -var g_aMathAutoCorrectTriggerCharCodes = -{ - 0x20 : 1, 0x21 : 1, 0x22 : 1, 0x23 : 1, 0x24 : 1, 0x25 : 1, 0x26 : 1, - 0x27 : 1, 0x28 : 1, 0x29 : 1, 0x2A : 1, 0x2B : 1, 0x2C : 1, 0x2D : 1, - 0x2E : 1, 0x2F : 1, 0x3A : 1, 0x3B : 1, 0x3C : 1, 0x3D : 1, 0x3E : 1, - 0x3F : 1, 0x40 : 1, 0x5B : 1, 0x5D : 1, 0x5C : 1, 0x5E : 1, 0x5F : 1, - 0x60 : 1, 0x7B : 1, 0x7D : 1, 0x7C : 1, 0x7E : 1 /*,0x2592 : 1*/ -}; -//символы при которых производится автозамена текстовой функции (lim, max, sin...) -var g_aMathAutoCorrectTextFunc = { - 0x20 : 1, 0x28 : 1, 0x29 : 1, 0x5B : 1, 0x5E : 1, 0x5F : 1, 0x7B : 1 -}; -//символы, при которых не производится автозамена дроби без скобок -var g_aMathAutoCorrectNotDoFraction = { - 0x21 : 1, 0x22 : 1, 0x27 : 1, 0x24 : 1, 0x28 : 1, 0x29 : 1, 0x5B : 1, - 0x5D : 1, 0x7B : 1, 0x7D : 1, 0x5C : 1, 0x5E : 1, 0x5F : 1, 0x7C : 1 -}; -//символы, при которых не производится автозамена степени без скобок -var g_aMathAutoCorrectDoNotDegree = { - 0x21 : 1, 0x22 : 1, 0x27 : 1, 0x24 : 1, 0x28 : 1, 0x29 : 1, 0x5B : 1, 0x5D : 1, - 0x7B : 1, 0x7D : 1, 0x2C : 1, 0x2E : 1, 0x5C : 1, 0x5E : 1, 0x5F : 1, 0x7C : 1 -}; -//символы, при которых не производится автозамена nary -var g_aMathAutoCorrectNotDoCNary = { - 0x22 : 1, 0x24 : 1, 0x27 : 1, 0x28 : 1, 0x29 : 1, 0x2E : 1, 0x5B : 1, - 0x5C : 1, 0x5D : 1, 0x5E : 1, 0x5F : 1, 0x7B : 1, 0x7D : 1, 0x7C : 1 -}; -//символы, при которых не производится автозамена скобок -var g_aMathAutoCorrectDoNotDelimiter = { - 0x22 : 1, 0x27 : 1, 0x28 : 1, 0x29 : 1, 0x2F : 1, 0x5B : 1, - 0x5C : 1, 0x5E : 1, 0x5F : 1, 0x5D : 1, 0x7B : 1, 0x7D : 1, 0x7C : 1 - }; -// символы, при которых не производится автозамена корня -var g_aMathAutoCorrectDoNotRadical = { - 0x22 : 1, 0x27 : 1, 0x28 : 1, 0x29 : 1, 0x5C : 1, - 0x5E : 1, 0x5F : 1, 0x5D : 1, 0x7D : 1 -}; -// символы, при которых не производится автозамена Box -var g_aMathAutoCorrectDoNotBox = { - 0x21 : 1, 0x22 : 1, 0x24 : 1, 0x27 : 1, 0x28 : 1, 0x29 : 1, - 0x5B : 1, 0x5D : 1, 0x7B : 1, 0x7D : 1, 0x5C : 1, 0x5E : 1, - 0x5F : 1, 0x7C : 1, -}; -// символы, при которых не производится автозамена Group character -var g_aMathAutoCorrectDoNotGroupChar = { - 0x21 : 1, 0x22 : 1, 0x24 : 1, 0x27 : 1, 0x28 : 1, 0x29 : 1, 0x2C : 1, - 0x2E : 1, 0x5B : 1, 0x5D : 1, 0x7B : 1, 0x7D : 1, 0x5C : 1, 0x7C : 1 -}; -// символы, при которых не производится автозамена EqArray и Matrix -var g_aMathAutoCorrectDoNotMatrix = { - 0x22 : 1, 0x27 : 1, 0x28 : 1, 0x29 : 1, 0x5C : 1, - 0x5D : 1, 0x5E : 1, 0x5F : 1, 0x7D : 1 -}; -// символы, при которых не производится автозамена Accent не вплотную -var g_aMathAutoCorrectDoNotAccentNotClose = { - 0x22 : 1, 0x27 : 1, 0x28 : 1, 0x29 : 1, 0x5C : 1, - 0x5D : 1, 0x5E : 1, 0x5F : 1, 0x7D : 1 -}; -// символы, при которых не производится автозамена Accent вплотную -var g_aMathAutoCorrectDoNotAccentClose = { - 0x22 : 1, 0x29 : 1, 0x5D : 1, 0x7D : 1 -}; -// символы при которых не производится автозамена Above -var g_aMathAutoCorrectDoNotAbove = { - 0x21 : 1, 0x22 : 1, 0x24 : 1, 0x27 : 1, 0x28 : 1, - 0x29 : 1, 0x2C : 1, 0x2E : 1, 0x5B : 1, 0x5C : 1, - 0x5D : 1, 0x5E : 1, 0x5F : 1, 0x7B : 1, 0x7C : 1, 0x7D : 1 -}; -// символы при которых не производится автозамена mathfunc 0x2061 -var g_aMathAutoCorrectDoNotMathFunc = { - 0x21 : 1, 0x22 : 1, 0x24 : 1, 0x27 : 1, - 0x28 : 1, 0x29 : 1, 0x2C : 1, 0x2E : 1, - 0x5B : 1, 0x5C : 1, 0x5D : 1, 0x5E : 1, - 0x5F : 1, 0x7B : 1, 0x7C : 1, 0x7D : 1 -}; -// символы корней -var g_aMathAutoCorrectRadicalCharCode = { - 0x221A : 1, 0x221B : 1, 0x221C : 1 -}; -//символы, при которых надо пропускать обработку скобок -//во вложенном контенте -var g_aMathAutoCorrectSkipBrackets = { - 0x221A : 1, 0x25A1 : 1, 0x25AD : 1, 0x23DE : 1, 0x23DC : 1, - 0x23E0 : 1, 0x23DF : 1, 0x23DD : 1, 0x00AF : 1, 0x2581 : 1, - 0x24B8 : 1, 0x2588 : 1, 0x25A0 : 1, 0x24A8 : 1, 0x24A9 : 1, - 0x2534 : 1, 0x252C: 1 -}; -//символы MATH_GROUP_CHARACTER -var g_aMathAutoCorrectGroupChar = { - 0x23DE : 1, 0x23DC : 1, 0x23E0 : 1, 0x23DF : 1, 0x23DD : 1 -}; -//symbols matrix and eqarray -var g_aMathAutoCorrectEqArrayMatrix = { - 0x24B8 : 1, 0x2588 : 1, 0x25A0 : 1, 0x24A8 : 1, 0x24A9 : 1 -}; -// latin alphabet ascii code -var g_aMathAutoCorrectLatinAlph = { - 0x41 : 1, 0x42 : 1, 0x43 : 1, 0x44 : 1, 0x45 : 1, 0x46 : 1, - 0x47 : 1, 0x48 : 1, 0x49 : 1, 0x4A : 1, 0x4B : 1, 0x4C : 1, - 0x4D : 1, 0x4E : 1, 0x4F : 1, 0x50 : 1, 0x51 : 1, 0x52 : 1, - 0x53 : 1, 0x54 : 1, 0x55 : 1, 0x56 : 1, 0x57 : 1, 0x58 : 1, - 0x59 : 1, 0x5A : 1, 0x60 : 1, 0x61 : 1, 0x62 : 1, 0x63 : 1, - 0x64 : 1, 0x65 : 1, 0x66 : 1, 0x67 : 1, 0x68 : 1, 0x69 : 1, - 0x6A : 1, 0x6B : 1, 0x6C : 1, 0x6D : 1, 0x6E : 1, 0x6F : 1, - 0x70 : 1, 0x71 : 1, 0x72 : 1, 0x73 : 1, 0x74 : 1, 0x75 : 1, - 0x76 : 1, 0x77 : 1, 0x78 : 1, 0x79 : 1, 0x7A : 1 -}; -// special symbols for autocorrect text -var g_aMathAutoCorrectSpecSymb = [ - '!!', '...', '::', ':=', '/<', '/>', '/=', - '~=', '-+', '+-', '<<', '<=', '->', '>=', '>>' -]; //--------------------------------------------------------export---------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; diff --git a/word/Math/mathText.js b/word/Math/mathText.js index e0ed53e934..099744cbb0 100644 --- a/word/Math/mathText.js +++ b/word/Math/mathText.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -700,51 +700,71 @@ CMathText.prototype.SetPlaceholder = function() }; CMathText.prototype.IsAccent = function () { - return AscMath.MathLiterals.accent.fromSymbols[String.fromCharCode(this.value)] != undefined; + return AscMath.MathLiterals.accent.SearchU[String.fromCharCode(this.value)] != undefined; } CMathText.prototype.Measure = function(oMeasure, TextPr, InfoMathText) { - /* - var metricsTxt = g_oTextMeasurer.Measure2Code(letter); - var _width = metricsTxt.Width; - height = g_oTextMeasurer.GetHeight(); - */ + /* + var metricsTxt = g_oTextMeasurer.Measure2Code(letter); + var _width = metricsTxt.Width; + height = g_oTextMeasurer.GetHeight(); + */ - var metricsTxt; + var metricsTxt; - // measure - if(this.bJDraw) - { - // Font выставляется на соответствующей функции SetFont в родительском классе (в общем случае в CMathBase) + // measure + if(this.bJDraw) + { + // Font выставляется на соответствующей функции SetFont в родительском классе (в общем случае в CMathBase) - this.RecalcInfo.StyleCode = this.value; - metricsTxt = oMeasure.Measure2Code(this.value); - } - else - { - var ascent, width, height, descent; + this.RecalcInfo.StyleCode = this.value; + metricsTxt = oMeasure.Measure2Code(this.value); + } + else + { + var ascent, width, height, descent; - var letter = this.private_getCode(); + var letter = this.private_getCode(); - this.FontSlot = InfoMathText.GetFontSlot(letter); // возвращает AscWord.fontslot_ASCII || AscWord.fontslot_EastAsia || AscWord.fontslot_CS || AscWord.fontslot_HAnsi + this.FontSlot = InfoMathText.GetFontSlot(letter); // возвращает AscWord.fontslot_ASCII || AscWord.fontslot_EastAsia || AscWord.fontslot_CS || AscWord.fontslot_HAnsi - // в не математическом тексте i и j не подменяются на i и j без точек - var bAccentIJ = !InfoMathText.bNormalText && this.Parent.IsAccent() && (this.value == 0x69 || this.value == 0x6A); + // в не математическом тексте i и j не подменяются на i и j без точек + var bAccentIJ = !InfoMathText.bNormalText && this.Parent.IsAccent() && (this.value == 0x69 || this.value == 0x6A); - this.RecalcInfo.StyleCode = letter; - this.RecalcInfo.bAccentIJ = bAccentIJ; + this.RecalcInfo.StyleCode = letter; + this.RecalcInfo.bAccentIJ = bAccentIJ; - var bApostrophe = 1 == q_Math_Apostrophe[letter] && this.bJDraw == false; + var bApostrophe = 1 == q_Math_Apostrophe[letter] && this.bJDraw == false; - if(bAccentIJ) - oMeasure.SetStringGid(true); + if(bAccentIJ) + oMeasure.SetStringGid(true); - if( InfoMathText.NeedUpdateFont(letter, this.FontSlot, this.IsPlaceholder(), bApostrophe) ) - { - g_oTextMeasurer.SetFont(InfoMathText.Font); - //g_oTextMeasurer.SetTextPr(InfoTextPr.CurrentTextPr, InfoTextPr.Theme); - } - else if(InfoMathText.CurrType == MathTextInfo_NormalText) + else if( InfoMathText.NeedUpdateFont(letter, this.FontSlot, this.IsPlaceholder(), bApostrophe) ) + { + if (this.Parent.Pr.SmallCaps || this.Parent.Pr.Caps) + { + let symbol; + + if (this.Parent.Pr.SmallCaps || this.Parent.Pr.Caps) + { + symbol = String.fromCharCode(this.value).toUpperCase(); + } + + letter = symbol.charCodeAt(0); + this.RecalcInfo.StyleCode = letter; + InfoMathText.bApostrophe = false; + + var FontKoef = InfoMathText.GetFontKoef(this.FontSlot); + + g_oTextMeasurer.SetFontSlot(this.FontSlot, FontKoef); + } + else + { + g_oTextMeasurer.SetFont(InfoMathText.Font); + } + //g_oTextMeasurer.SetTextPr(InfoTextPr.CurrentTextPr, InfoTextPr.Theme); + } + else if(InfoMathText.CurrType == MathTextInfo_NormalText) { letter = this.value; this.RecalcInfo.StyleCode = letter; @@ -755,56 +775,56 @@ CMathText.prototype.Measure = function(oMeasure, TextPr, InfoMathText) g_oTextMeasurer.SetFontSlot(this.FontSlot, FontKoef); } - this.RecalcInfo.bApostrophe = InfoMathText.bApostrophe; - this.RecalcInfo.bSpaceSpecial = letter == 0x2061; + this.RecalcInfo.bApostrophe = InfoMathText.bApostrophe; + this.RecalcInfo.bSpaceSpecial = letter == 0x2061; - metricsTxt = oMeasure.MeasureCode(letter); + metricsTxt = oMeasure.MeasureCode(letter); - if(bAccentIJ) - oMeasure.SetStringGid(false); - } + if(bAccentIJ) + oMeasure.SetStringGid(false); + } - if(this.RecalcInfo.bApostrophe) - { - width = metricsTxt.Width; - height = metricsTxt.Height; + if(this.RecalcInfo.bApostrophe) + { + width = metricsTxt.Width; + height = metricsTxt.Height; - InfoMathText.NeedUpdateFont(0x1D44E, this.FontSlot, false, false); // a - g_oTextMeasurer.SetFont(InfoMathText.Font); + InfoMathText.NeedUpdateFont(0x1D44E, this.FontSlot, false, false); // a + g_oTextMeasurer.SetFont(InfoMathText.Font); - var metricsA = oMeasure.MeasureCode(0x1D44E); // a - this.rasterOffsetY = metricsA.Height - metricsTxt.Ascent; // смещение для позиции + var metricsA = oMeasure.MeasureCode(0x1D44E); // a + this.rasterOffsetY = metricsA.Height - metricsTxt.Ascent; // смещение для позиции - ascent = metricsA.Height; - } - // else if(this.RecalcInfo.bSpaceSpecial) // show funcapply - // { - // width = 0; - // height = 0; - // ascent = 0; - // } - else - { - // смещения - this.rasterOffsetX = metricsTxt.rasterOffsetX; - this.rasterOffsetY = metricsTxt.rasterOffsetY; + ascent = metricsA.Height; + } + // else if(this.RecalcInfo.bSpaceSpecial) // show funcapply + // { + // width = 0; + // height = 0; + // ascent = 0; + // } + else + { + // смещения + this.rasterOffsetX = metricsTxt.rasterOffsetX; + this.rasterOffsetY = metricsTxt.rasterOffsetY; - ascent = metricsTxt.Ascent; - descent = (metricsTxt.Height - metricsTxt.Ascent); - height = ascent + descent; + ascent = metricsTxt.Ascent; + descent = (metricsTxt.Height - metricsTxt.Ascent); + height = ascent + descent; - if(this.bJDraw) - width = metricsTxt.WidthG; - else - width = metricsTxt.Width; - } + if(this.bJDraw) + width = metricsTxt.WidthG; + else + width = metricsTxt.Width; + } - this.size.width = width; - this.size.height = height; - this.size.ascent = ascent; + this.size.width = width; + this.size.height = height; + this.size.ascent = ascent; - this.Width = (this.size.width * AscWord.TEXTWIDTH_DIVIDER) | 0; + this.Width = (this.size.width * AscWord.TEXTWIDTH_DIVIDER) | 0; }; CMathText.prototype.PreRecalc = function(Parent, ParaMath) @@ -823,53 +843,57 @@ CMathText.prototype.Draw = function(x, y, pGraphics, InfoTextPr) // 0x200C has a non-empty glyph in CambriaMath if (this.value === 0x200C) return; - - var X = this.pos.x + x, - Y = this.pos.y + y; - if(this.bEmptyGapLeft == false) - X += this.GapLeft; + // CMathText may not always have a parent (base of CNary etc.) + if (this.Parent && this.Parent.getYOffset) + y -= this.Parent.getYOffset(); - /*var tx = 0; - var ty = 0; + var X = this.pos.x + x, + Y = this.pos.y + y; - var x = (X*sy - Y*shx - tx*sy)/(sx*sy- shy*shx); - var y = (Y - x*shy - ty*shx)/sy;*/ + if(this.bEmptyGapLeft == false) + X += this.GapLeft; - /*var invert = new CMatrix(); - invert.sx = this.transform.sx; - invert.sy = this.transform.sy; - invert.shx = this.transform.shx; - invert.shy = this.transform.shy; - invert.tx = 0; - invert.ty = 0; - invert.Invert(); + /*var tx = 0; + var ty = 0; - var xx = invert.TransformPointX(X, Y); - var yy = invert.TransformPointY(X, Y); + var x = (X*sy - Y*shx - tx*sy)/(sx*sy- shy*shx); + var y = (Y - x*shy - ty*shx)/sy;*/ + /*var invert = new CMatrix(); + invert.sx = this.transform.sx; + invert.sy = this.transform.sy; + invert.shx = this.transform.shx; + invert.shy = this.transform.shy; + invert.tx = 0; + invert.ty = 0; + invert.Invert(); - var sx = this.transform.sx, shx = this.transform.shx, - shy = this.transform.shy, sy = this.transform.sy; + var xx = invert.TransformPointX(X, Y); + var yy = invert.TransformPointY(X, Y); - pGraphics.transform(sx, shy, shx, sy, 0, 0);*/ - if(this.bJDraw) - { - pGraphics.FillTextCode(X, Y, this.RecalcInfo.StyleCode); //на отрисовку символа отправляем положение baseLine - } - else if(this.RecalcInfo.bSpaceSpecial == false) - { - if( InfoTextPr.NeedUpdateFont(this.RecalcInfo.StyleCode, this.FontSlot, this.IsPlaceholder(), this.RecalcInfo.bApostrophe) ) - { - pGraphics.SetFont(InfoTextPr.Font); - //pGraphics.SetTextPr(InfoTextPr.CurrentTextPr, InfoTextPr.Theme); - } - else if(InfoTextPr.CurrType == MathTextInfo_NormalText) - { - var FontKoef = InfoTextPr.GetFontKoef(this.FontSlot); - pGraphics.SetFontSlot(this.FontSlot, FontKoef); - } + var sx = this.transform.sx, shx = this.transform.shx, + shy = this.transform.shy, sy = this.transform.sy; + + pGraphics.transform(sx, shy, shx, sy, 0, 0);*/ + + if(this.bJDraw) + { + pGraphics.FillTextCode(X, Y, this.RecalcInfo.StyleCode); //на отрисовку символа отправляем положение baseLine + } + else if(this.RecalcInfo.bSpaceSpecial == false) + { + if( InfoTextPr.NeedUpdateFont(this.RecalcInfo.StyleCode, this.FontSlot, this.IsPlaceholder(), this.RecalcInfo.bApostrophe) ) + { + pGraphics.SetFont(InfoTextPr.Font); + //pGraphics.SetTextPr(InfoTextPr.CurrentTextPr, InfoTextPr.Theme); + } + else if(InfoTextPr.CurrType == MathTextInfo_NormalText) + { + var FontKoef = InfoTextPr.GetFontKoef(this.FontSlot); + pGraphics.SetFontSlot(this.FontSlot, FontKoef); + } if (this.RecalcInfo.bAccentIJ) { @@ -902,9 +926,31 @@ CMathText.prototype.Draw = function(x, y, pGraphics, InfoTextPr) pGraphics.drawHorLine(0, y2, x1, x2, penW); pGraphics.drawVerLine(0, x1, y1, y2, penW); pGraphics.drawVerLine(0, x2, y1, y2, penW); - } else + } + else { - pGraphics.FillTextCode(X, Y, this.RecalcInfo.StyleCode); //на отрисовку символа отправляем положение baseLine} + let strOriginal = String.fromCharCode(this.value); + let strUpper = strOriginal.toUpperCase(); + let strLower = strOriginal.toLowerCase(); + let nUpperStr = strUpper.charCodeAt(0); + let nLowerStr = strLower.charCodeAt(0); + + if (InfoTextPr.TextPr.Caps && nUpperStr !== this.value) + { + pGraphics.FillTextCode(X, Y, nUpperStr); + } + else if (InfoTextPr.TextPr.SmallCaps + && this.value !== nUpperStr + && this.value === nLowerStr) + { + pGraphics.SetFontSlot(this.FontSlot, smallcaps_Koef); + pGraphics.FillTextCode(X, Y, nUpperStr); + } + else + { + // на отрисовку символа отправляем положение baseLine + pGraphics.FillTextCode(X, Y, this.RecalcInfo.StyleCode); + } } } }; @@ -1004,6 +1050,18 @@ CMathText.prototype.Is_RightBracket = function() { return this.value == 0x29 || this.value == 0x7D || this.value == 0x5D || this.value == 0x27E9 || this.value == 0x230B || this.value == 0x2309 || this.value == 0x27E7 || this.value == 0x232A; }; +CMathText.prototype.IsNBSP = function() +{ + let strValue = String.fromCharCode(this.value); + return AscMath.MathLiterals.space.SearchU(strValue); +}; +CMathText.prototype.SetParent = function (oParent) +{ + if (!oParent) + return; + + this.Parent = oParent; +} //// CMathText.prototype.setCoeffTransform = function(sx, shx, shy, sy) { @@ -1069,20 +1127,26 @@ CMathText.prototype.ToSearchElement = function(oProps) return new AscCommonWord.CSearchTextItemChar(nCodePoint); }; -CMathText.prototype.GetTextOfElement = function(isLaTeX) { - var strPre = ""; +CMathText.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); - if (isLaTeX && AscMath.GetIsLaTeXGetParaRun()) + if (this.value && this.value !== 11034) { - let str = AscMath.SymbolsToLaTeX[String.fromCharCode(this.value)]; - if (str) - return str; + let strValue = AscCommon.encodeSurrogateChar(this.value); + + if (oMathText.IsLaTeX()) + { + let strMath = AscMath.SymbolsToLaTeX[strValue]; + if (strMath) + strValue = strMath; + } + + let oText = new AscMath.MathText(strValue, this.Parent) + oMathText.AddText(oText); } - - if (this.value && this.value !== 11034) - return strPre + AscCommon.encodeSurrogateChar(this.value); - return ""; + return oMathText; }; CMathText.prototype.GetCodePoint = function() { @@ -1206,6 +1270,13 @@ CMathAmp.prototype.Copy = function() { return new CMathAmp(); }; +CMathAmp.prototype.SetParent = function (oParent) +{ + if (!oParent) + return; + + this.Parent = oParent; +} CMathAmp.prototype.Write_ToBinary = function(Writer) { // Long : Type @@ -1214,11 +1285,17 @@ CMathAmp.prototype.Write_ToBinary = function(Writer) CMathAmp.prototype.Read_FromBinary = function(Reader) { }; -CMathAmp.prototype.GetTextOfElement = function(isLaTeX) +CMathAmp.prototype.GetTextOfElement = function(oMathText) { - return '&' -}; + oMathText = new AscMath.MathTextAndStyles(oMathText); + + let strAmp = this.bAlignPoint ? "" : "&"; + let oAmpText = new AscMath.MathText(strAmp, this.Parent ? this.Parent : oMathText.GetFirstStyle()); + oMathText.AddText(oAmpText); + + return oMathText; +}; function CMathInfoTextPr(InfoTextPr) { diff --git a/word/Math/mathTrackHandler.js b/word/Math/mathTrackHandler.js index 0045def974..78359e7912 100644 --- a/word/Math/mathTrackHandler.js +++ b/word/Math/mathTrackHandler.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/Math/mathTypes.js b/word/Math/mathTypes.js index 3bb4f0f790..8fbda557b9 100644 --- a/word/Math/mathTypes.js +++ b/word/Math/mathTypes.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -56,6 +56,7 @@ var BAR_FRACTION = 0; var SKEWED_FRACTION = 1; var LINEAR_FRACTION = 2; var NO_BAR_FRACTION = 3; +var LITTLE_FRACTION = 4; var DEGREE_SUPERSCRIPT = 1; var DEGREE_SUBSCRIPT = -1; diff --git a/word/Math/matrix.js b/word/Math/matrix.js index 8e7a6563e6..885ffc0a4c 100644 --- a/word/Math/matrix.js +++ b/word/Math/matrix.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -81,20 +81,26 @@ CMathMatrixColumnPr.fromObject = function(obj) return pr; }; -function CMathMatrixPr() { - this.row = 1; +function CMathMatrixPr(ctrPr) { + this.row = 1; - this.cGp = 0; - this.cGpRule = 0; - this.cSp = 0; + this.cGp = 0; + this.cGpRule = 0; + this.cSp = 0; - this.rSp = 0; - this.rSpRule = 0; + this.rSp = 0; + this.rSpRule = 0; - this.mcs = []; - this.baseJc = BASEJC_CENTER; - this.plcHide = false; + this.mcs = []; + this.baseJc = BASEJC_CENTER; + this.plcHide = false; + + this.ctrPr = new CMathCtrlPr(ctrPr); } +CMathMatrixPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); +}; CMathMatrixPr.prototype.Set_FromObject = function (Obj) { if (undefined !== Obj.row && null !== Obj.row) @@ -138,6 +144,8 @@ CMathMatrixPr.prototype.Set_FromObject = function (Obj) { nColumnsCount = Obj.column; } + this.ctrPr.SetRPr(Obj.ctrPrp); + return nColumnsCount; }; CMathMatrixPr.prototype.initByContent = function (mrs) { @@ -170,6 +178,7 @@ CMathMatrixPr.prototype.Copy = function () { NewPr.rSpRule = this.rSpRule; NewPr.baseJc = this.baseJc; NewPr.plcHide = this.plcHide; + NewPr.ctrPr = this.ctrPr; var nCount = this.mcs.length; for (var nMcsIndex = 0; nMcsIndex < nCount; nMcsIndex++) { @@ -274,6 +283,9 @@ CMathMatrixPr.prototype.Write_ToBinary = function (Writer) { for (var nIndex = 0; nIndex < nMcsCount; nIndex++) { this.mcs[nIndex].Write_ToBinary(Writer); } + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathMatrixPr.prototype.Read_FromBinary = function (Reader) { // Long : row @@ -300,6 +312,11 @@ CMathMatrixPr.prototype.Read_FromBinary = function (Reader) { this.mcs[nIndex] = new CMathMatrixColumnPr(); this.mcs[nIndex].Read_FromBinary(Reader); } + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; function CMathMatrixGapPr(Type) { @@ -595,7 +612,7 @@ function CMathMatrix(props) { CMatrixBase.call(this); this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Pr = new CMathMatrixPr(); + this.Pr = new CMathMatrixPr(this.CtrPrp); this.column = 0; @@ -975,8 +992,15 @@ CMathMatrix.prototype.Is_DeletedItem = function (Action) { CMathMatrix.prototype.Get_DeletedItemsThroughInterface = function () { return []; }; -CMathMatrix.prototype.GetTextOfElement = function (isLaTeX, strBrackets) +/** + * + * @param {MathTextAndStyles | boolean} oMathText + * @constructor + */ +CMathMatrix.prototype.GetTextOfElement = function (oMathText) { + oMathText = new AscMath.MathTextAndStyles(oMathText); + let strMatrixSymbol, oDelimiterParent; @@ -985,12 +1009,12 @@ CMathMatrix.prototype.GetTextOfElement = function (isLaTeX, strBrackets) else if (this.Parent.Parent instanceof CDelimiter) oDelimiterParent = this.Parent.Parent; - strBrackets = oDelimiterParent + let strBrackets = oDelimiterParent ? String.fromCharCode(oDelimiterParent.Pr.begChr) + String.fromCharCode(oDelimiterParent.Pr.endChr) : undefined; - if (isLaTeX) { - // bug #61007 + if (oMathText.IsLaTeX()) + { // switch (strBrackets) { // case undefined: // strMatrixSymbol = "matrix"; @@ -1014,51 +1038,54 @@ CMathMatrix.prototype.GetTextOfElement = function (isLaTeX, strBrackets) // strMatrixSymbol = "Vmatrix"; // break; // } - - strMatrixSymbol = strBrackets === "()" ? "pmatrix" : "matrix"; + strMatrixSymbol = "matrix"; // = strBrackets === "()" ? "pmatrix" : "matrix"; + oMathText.AddText(new AscMath.MathText("\\begin{" + strMatrixSymbol + "}", this)) } else { - strMatrixSymbol = "■"; + oMathText.AddText(new AscMath.MathText("■(", this)); } - var strStartBracet = this.GetStartBracetForGetTextContent(isLaTeX); - var strCloseBracet = this.GetEndBracetForGetTextContent(isLaTeX); + // Word поддерживает несколько типов ввода для матриц LaTeX: + // 1. Команды матриц с заданными скобками (matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix). В Word поддерживается только matrix и pmatrix. + // - При получении линейного вида для матрицы pmatrix в Word мы будем получать так же pmatrix, однако если + // переоткрыть документ для pmatrix. То при получении линейного вида матрица будет в формате matrix обёрнутая + // в скобки. Можно ввести отдельное свойство матриц для отслеживания таких данных (без записи этих данных), + // тогда поведение будет аналогичным Word. -// Word поддерживает несколько типов ввода для матриц LaTeX: -// 1. Команды матриц с заданными скобками (matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix). В Word поддерживается только matrix и pmatrix. -// - При получении линейного вида для матрицы pmatrix в Word мы будем получать так же pmatrix, однако если -// переоткрыть документ для pmatrix. То при получении линейного вида матрица будет в формате matrix обёрнутая -// в скобки. Можно ввести отдельное свойство матриц для отслеживания таких данных (без записи этих данных), -// тогда поведение будет аналогичным Word. - -// 2. Можно обернуть команду matrix (матрица без скобок) в скобку: -// \left\langle \begin{matrix} 1 & 2 & 3 \end{matrix} \right) -// -// На данный момент делаем получение линейного формата всегда в режиме pmatrix, если это возможно (используем обычные скобки) + // 2. Можно обернуть команду matrix (матрица без скобок) в скобку: + // \left\langle \begin{matrix} 1 & 2 & 3 \end{matrix} \right) + // + // На данный момент делаем получение линейного формата всегда в режиме pmatrix, если это возможно (используем обычные скобки) - var strTemp = isLaTeX - ? "\\begin{" + strMatrixSymbol + "}" - : strMatrixSymbol + strStartBracet; + let oLastPos; - for (var nRow = 0; nRow < this.nRow; nRow++) + for (let nRow = 0; nRow < this.nRow; nRow++) { - for (var nCol = 0; nCol < this.nCol; nCol++) + for (let nCol = 0; nCol < this.nCol; nCol++) { - strTemp += this.getContentElement(nRow, nCol).GetTextOfElement(isLaTeX); + let oPos = this.getContentElement(nRow, nCol) + oLastPos = oMathText.Add(oPos, true, 0); if (nCol < this.nCol - 1) - strTemp += '&'; + { + let oText = new AscMath.MathText("&", this); + oLastPos = oMathText.AddAfter(oLastPos, oText); + } else if (nRow < this.nRow - 1) - strTemp += isLaTeX ? "\\\\" : '@'; + { + let oText = new AscMath.MathText(oMathText.IsLaTeX() ? "\\\\" : '@', this); + oLastPos = oMathText.AddAfter(oLastPos, oText); + } } } - strTemp += isLaTeX - ? "\\\\\\end{" + strMatrixSymbol + "}" - : strCloseBracet; + if (oMathText.IsLaTeX()) + oMathText.AddText(new AscMath.MathText("\\\\\\end{" + strMatrixSymbol + "}", this)); + else + oMathText.AddAfter(oLastPos,new AscMath.MathText(")", this)); - return strTemp; + return oMathText; }; /** @@ -1225,16 +1252,19 @@ function CMathPoint() { this.odd = -1; } -function CMathEqArrPr() { - this.maxDist = 0; - this.objDist = 0; - this.rSp = 0; - this.rSpRule = 0; - this.baseJc = BASEJC_CENTER; - - this.row = 1; +function CMathEqArrPr(ctrPr) { + this.maxDist = 0; + this.objDist = 0; + this.rSp = 0; + this.rSpRule = 0; + this.baseJc = BASEJC_CENTER; + this.row = 1; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathEqArrPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } - CMathEqArrPr.prototype.initByContent = function (content) { if (!content) { return; @@ -1258,6 +1288,7 @@ CMathEqArrPr.prototype.Set_FromObject = function (Obj) { this.baseJc = Obj.baseJc; this.row = Obj.row; + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathEqArrPr.prototype.Copy = function () { var NewPr = new CMathEqArrPr(); @@ -1268,6 +1299,7 @@ CMathEqArrPr.prototype.Copy = function () { NewPr.rSpRule = this.rSpRule; NewPr.baseJc = this.baseJc; NewPr.row = this.row; + NewPr.ctrPr = this.ctrPr; return NewPr; }; @@ -1291,6 +1323,9 @@ CMathEqArrPr.prototype.Write_ToBinary = function (Writer) { Writer.WriteLong(this.rSpRule); Writer.WriteLong(this.baseJc); Writer.WriteLong(this.row); + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathEqArrPr.prototype.Read_FromBinary = function (Reader) { // Long : maxDist @@ -1306,8 +1341,12 @@ CMathEqArrPr.prototype.Read_FromBinary = function (Reader) { this.rSpRule = Reader.GetLong(); this.baseJc = Reader.GetLong(); this.row = Reader.GetLong(); -}; + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } +}; /** * @@ -1319,7 +1358,7 @@ function CEqArray(props) { CMatrixBase.call(this); this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Pr = new CMathEqArrPr(); + this.Pr = new CMathEqArrPr(this.CtrPrp); // for ampersand in Run this.WidthsPoints = []; @@ -1604,21 +1643,40 @@ CEqArray.prototype.Get_DeletedItemsThroughInterface = function () { CEqArray.prototype.IsEqArray = function () { return true; }; -CEqArray.prototype.GetTextOfElement = function (isLaTeX) { - let strStart = isLaTeX ? "\\substack" : "█"; - var strStartBracet = this.GetStartBracetForGetTextContent(isLaTeX); - var strCloseBracet = this.GetEndBracetForGetTextContent(isLaTeX); +/** + * + * @param {MathTextAndStyles | boolean} oMathText + * @constructor + */ +CEqArray.prototype.GetTextOfElement = function (oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); - var strTemp = strStart+ strStartBracet; + if (oMathText.IsLaTeX()) + { + oMathText.AddText(new AscMath.MathText("\\substack{", this.Content[0]), true); + } + else + { + let oMatrix = new AscMath.MathText("█(", this.Content[0]); + oMathText.AddText(oMatrix, true); + } - for (var i = 0; i < this.Pr.row; i++) { - strTemp += this.getElement(i).GetTextOfElement(isLaTeX); - if (i !== this.Pr.row - 1 ) { - strTemp += isLaTeX ? "\\\\" : '@'; + for (let i = 0; i < this.Pr.row; i++) + { + let oItem = this.getElement(i) + oMathText.Add(oItem, true, 0); + + if (i !== this.Pr.row - 1) + { + let oSep = new AscMath.MathText(oMathText.IsLaTeX() ? "\\\\" : "@", this.Content[0]); + oMathText.AddText(oSep, true); } } - strTemp += strCloseBracet; - return strTemp; + + oMathText.AddText(new AscMath.MathText(oMathText.IsLaTeX() ? "}" : ")", this.Content[0]), true); + + return oMathText; }; /** @@ -1705,3 +1763,6 @@ CMathMenuEqArray.prototype["get_LineRule"] = CMathMenuEqArray.prototype.get_Line CMathMenuEqArray.prototype["put_LineRule"] = CMathMenuEqArray.prototype.put_LineRule; CMathMenuEqArray.prototype["get_LineGap"] = CMathMenuEqArray.prototype.get_LineGap; CMathMenuEqArray.prototype["put_LineGap"] = CMathMenuEqArray.prototype.put_LineGap; + +AscMath.EqArray = CEqArray; +AscMath.Matrix = CMathMatrix; diff --git a/word/Math/nary.js b/word/Math/nary.js index 7df42abda1..fa688887cc 100644 --- a/word/Math/nary.js +++ b/word/Math/nary.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -36,16 +36,22 @@ //если не выставлено в настройках /////////////////////****////////////////////////// -function CMathNaryPr() +function CMathNaryPr(ctrPr) { - this.chr = undefined; - this.chrType = undefined; - this.grow = false; - this.limLoc = undefined; - this.subHide = false; - this.supHide = false; + this.chr = undefined; + this.chrType = undefined; + this.grow = false; + this.limLoc = undefined; + this.subHide = false; + this.supHide = false; + this.ctrPr = new CMathCtrlPr(ctrPr); } +CMathNaryPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); +}; + CMathNaryPr.prototype.Set_FromObject = function(Obj) { this.chr = Obj.chr; @@ -62,6 +68,8 @@ CMathNaryPr.prototype.Set_FromObject = function(Obj) if(true === Obj.supHide === true || 1 === Obj.supHide) this.supHide = true; + + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathNaryPr.prototype.Copy = function() @@ -74,6 +82,7 @@ CMathNaryPr.prototype.Copy = function() NewPr.limLoc = this.limLoc ; NewPr.subHide = this.subHide; NewPr.supHide = this.supHide; + NewPr.ctrPr = this.ctrPr; return NewPr; }; @@ -120,6 +129,9 @@ CMathNaryPr.prototype.Write_ToBinary = function(Writer) Writer.WriteBool(this.grow); Writer.WriteBool(this.subHide); Writer.WriteBool(this.supHide); + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathNaryPr.prototype.Read_FromBinary = function(Reader) @@ -154,6 +166,11 @@ CMathNaryPr.prototype.Read_FromBinary = function(Reader) this.grow = Reader.GetBool(); this.subHide = Reader.GetBool(); this.supHide = Reader.GetBool(); + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -168,20 +185,20 @@ function CNary(props) this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Pr = new CMathNaryPr(); + this.Pr = new CMathNaryPr(this.CtrPrp); - this.Base = null; - this.Sign = null; - this.LowerIterator = null; - this.UpperIterator = null; - this.Arg = null; + this.Base = null; + this.Sign = null; + this.LowerIterator = null; + this.UpperIterator = null; + this.Arg = null; - this.CurrentLimLoc = null; + this.CurrentLimLoc = null; - if(props !== null && props !== undefined) - this.init(props); + if(props !== null && props !== undefined) + this.init(props); - AscCommon.g_oTableId.Add( this, this.Id ); + AscCommon.g_oTableId.Add( this, this.Id ); } CNary.prototype = Object.create(CMathBase.prototype); CNary.prototype.constructor = CNary; @@ -815,64 +832,86 @@ CNary.prototype.Can_ModifyArgSize = function() { return this.CurPos !== 2 && false === this.Is_SelectInside(); }; -CNary.prototype.GetTextOfElement = function(isLaTeX) +/** + * + * @param {MathTextAndStyles} oMathText + * @return {*} + * @constructor + */ +CNary.prototype.GetTextOfElement = function(oMathText) { - var strTemp = ""; + oMathText = new AscMath.MathTextAndStyles(oMathText); - var strStartCode = String.fromCharCode(this.Pr.chr || this.getSign().chrCode); - var strSupContent = this.getSupMathContent().GetMultipleContentForGetText(isLaTeX, undefined, true); - var strSubContent = this.getSubMathContent().GetMultipleContentForGetText(isLaTeX, undefined, true); - var strBase = this.getBase().GetMultipleContentForGetText(isLaTeX, true); + let strStartCode; + let oBase = this.getBase(); + let oUpper = this.getUpperIterator(); + let oLower = this.getLowerIterator(); - if (isLaTeX) - { - switch (strStartCode.codePointAt()) - { - case 8747: strStartCode = '\\int'; break; - case 8748: strStartCode = '\\iint'; break; - case 8749: strStartCode = '\\iiint'; break; - case 8750: - case 8755: strStartCode = '\\oint'; break; - case 8751: strStartCode = '\\oiint'; break; - case 8752: strStartCode = '\\oiiint'; break; - case 8721: strStartCode = '\\sum'; break; - case 8719: strStartCode = '\\prod'; break; - case 8720: strStartCode = '\\coprod'; break; - case 8899: strStartCode = '\\bigcup'; break; - case 8898: strStartCode = '\\bigcap'; break; - case 8897: strStartCode = '\\bigvee'; break; - case 8896: strStartCode = '\\bigwedge'; break; - case 10753: strStartCode = '\\bigoplus'; break; - case 10754: strStartCode = '\\bigotimes'; break; - case 10756: strStartCode = '\\biguplus'; break; - case 10764: strStartCode = '\\iiiint'; break; - case 10758: strStartCode = '\\bigsqcup'; break; - case 10752: strStartCode = '\\bigodot'; break; - default: break; - } - if (strSupContent.length === 0 && strSubContent.length === 0) - { - strStartCode += " "; - } - } - else if (!isLaTeX && strBase.length > 0) - { - strBase = '▒' + strBase; - } + if (oMathText.IsLaTeX()) + { + strStartCode = AscMath.MathLiterals.nary.Unicode[String.fromCharCode(this.Pr.chr)]; + if (undefined === strStartCode) + strStartCode = '\\int'; - strTemp += strStartCode; + oMathText.AddText(new AscMath.MathText(strStartCode, this)); - if (strSupContent.length > 0) - { - strTemp += "^" + strSupContent; + if (oLower) + { + oMathText.SetGlobalStyle(oLower); + let oLowerPos = oMathText.Add(oLower, true, 2); + oLowerPos = oMathText.AddBefore(oLowerPos, new AscMath.MathText("_", oLower)); + } + + if (oUpper) + { + oMathText.SetNotGetStyleFromFirst(); + let oUpperPos = oMathText.AddText(new AscMath.MathText("^", oUpper)); + + oMathText.SetGlobalStyle(oUpper); + oMathText.Add(oUpper, true, 2); + } + + if (oBase) + { + oMathText.SetGlobalStyle(this); + oMathText.Add(oBase, true, 1); + } } - if (strSubContent.length > 0) - { - strTemp += "_" + strSubContent; + else + { + if (undefined === this.Pr.chr) + strStartCode = '∫'; + else + strStartCode = String.fromCharCode(this.Pr.chr); + + let oLastPos = oMathText.AddText(new AscMath.MathText(strStartCode, this)); + + if (oLower) + { + oMathText.SetGlobalStyle(this); + oLastPos = oMathText.Add(oLower, true); + oMathText.AddBefore(oLastPos, new AscMath.MathText("_", oLower)); + } + + if (oUpper) + { + oMathText.SetGlobalStyle(this); + oLastPos = oMathText.Add(oUpper, true); + oMathText.AddBefore(oLastPos, new AscMath.MathText("^", oUpper)); + } + + if (oBase) + { + let oPosBeforeBase = oLastPos.Copy(); + oLastPos = oMathText.Add(oBase, true, 1); + let strBase = oBase.GetTextOfElement().GetText(); + + if (strBase.length > 0) + oMathText.AddAfter(oPosBeforeBase, new AscMath.MathText("▒", oBase)); + } } - strTemp += strBase; - return strTemp; + return oMathText; }; /** @@ -2390,9 +2429,9 @@ CClosedPathIntegral.prototype.drawGlyph = function(parameters) pGraphics.SetIntegerGrid(false); this.Parent.Make_ShdColor(PDSE, this.Parent.Get_CompiledCtrPrp()); - - if (pGraphics.isSupportTextOutline()) - { + + if(pGraphics.isSupportTextOutline()) + { for(var i = 0; i < CircleLng; i++) { ExtX[i] = this.pos.x + x + shX + CircleX[i]*alpha*1.1 - CircleW*alpha*0.04; @@ -2662,3 +2701,5 @@ CVolumeIntegral.prototype.calculateSizeGlyph = function() //--------------------------------------------------------export---------------------------------------------------- window['AscCommonWord'] = window['AscCommonWord'] || {}; window['AscCommonWord'].CNary = CNary; + +AscMath.Nary = CNary; diff --git a/word/Math/operators.js b/word/Math/operators.js index f90d393b0b..b6aec8aade 100644 --- a/word/Math/operators.js +++ b/word/Math/operators.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -3100,18 +3100,23 @@ COperator.prototype.IsArrow = function() return bArrow || bDoubleArrow; }; -function CMathDelimiterPr() +function CMathDelimiterPr(ctrPr) { - this.begChr = undefined; - this.begChrType = undefined; - this.endChr = undefined; - this.endChrType = undefined; - this.sepChr = undefined; - this.sepChrType = undefined; - this.shp = DELIMITER_SHAPE_CENTERED; - this.grow = true; + this.begChr = undefined; + this.begChrType = undefined; + this.endChr = undefined; + this.endChrType = undefined; + this.sepChr = undefined; + this.sepChrType = undefined; + this.shp = DELIMITER_SHAPE_CENTERED; + this.grow = true; - this.column = 0; + this.column = 0; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathDelimiterPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } CMathDelimiterPr.prototype.initByContent = function(content) { if (!content) { @@ -3143,6 +3148,8 @@ CMathDelimiterPr.prototype.Set_FromObject = function(Obj) this.column = Obj.column; else this.column = 1; + + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathDelimiterPr.prototype.Copy = function() @@ -3158,6 +3165,7 @@ CMathDelimiterPr.prototype.Copy = function() NewPr.shp = this.shp ; NewPr.grow = this.grow ; NewPr.column = this.column ; + NewPr.ctrPr = this.ctrPr ; return NewPr; }; @@ -3225,6 +3233,9 @@ CMathDelimiterPr.prototype.Write_ToBinary = function(Writer) Writer.WriteLong(this.shp); Writer.WriteBool(this.grow); Writer.WriteLong(this.column); + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathDelimiterPr.prototype.Read_FromBinary = function(Reader) @@ -3277,6 +3288,11 @@ CMathDelimiterPr.prototype.Read_FromBinary = function(Reader) this.shp = Reader.GetLong(); this.grow = Reader.GetBool(); this.column = Reader.GetLong(); + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -3291,19 +3307,19 @@ function CDelimiter(props) this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.GeneralMetrics = new CMathSize(); + this.GeneralMetrics = new CMathSize(); - this.begOper = new COperator (OPER_DELIMITER); - this.endOper = new COperator (OPER_DELIMITER); - this.sepOper = new COperator (OPER_SEPARATOR); + this.begOper = new COperator (OPER_DELIMITER); + this.endOper = new COperator (OPER_DELIMITER); + this.sepOper = new COperator (OPER_SEPARATOR); - this.Pr = new CMathDelimiterPr(); - this.TextInContent = true; + this.Pr = new CMathDelimiterPr(this.CtrPrp); + this.TextInContent = true; - if(props !== null && props !== undefined) - this.init(props); + if(props !== null && props !== undefined) + this.init(props); - AscCommon.g_oTableId.Add( this, this.Id ); + AscCommon.g_oTableId.Add( this, this.Id ); } CDelimiter.prototype = Object.create(CMathBase.prototype); CDelimiter.prototype.constructor = CDelimiter; @@ -4044,67 +4060,123 @@ CDelimiter.prototype.private_GetRightOperator = function(bHide) return NewEndCode; }; -CDelimiter.prototype.GetTextOfElement = function(isLaTeX) { - // Patterns: - // if start bracket doesn't show: ├ ...) => ...) - // if end bracket doesn't show: (...┤ => (... - // else: (...) => (...) - //if start and close braketets non-standart add \open, \close - var strTemp = ""; - var strStartSymbol = this.Pr.begChr === -1 ? "" : String.fromCharCode((this.begOper.code || this.Pr.begChr) || 40); - var strEndSymbol = this.Pr.endChr === -1 ? "" : String.fromCharCode((this.endOper.code || this.Pr.endChr) || 41); - var strSeparatorSymbol = isLaTeX ? "\\mid" : "∣"; - - if ((!AscMath.MathLiterals.lBrackets.IsIncludes(strStartSymbol) && !AscMath.MathLiterals.lrBrackets.IsIncludes(strStartSymbol)) || isLaTeX) +CDelimiter.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); + + let strSeparatorSymbol = oMathText.IsLaTeX() ? "\\mid" : "∣"; + let strStartSymbol; + let strEndSymbol; + + if (oMathText.IsLaTeX()) { - strTemp += isLaTeX ? "\\left" : "├"; - strTemp += strStartSymbol; + strStartSymbol = this.Pr.begChr === -1 ? "." : String.fromCharCode((this.begOper.code || this.Pr.begChr) || 40); + strEndSymbol = this.Pr.endChr === -1 ? "." : String.fromCharCode((this.endOper.code || this.Pr.endChr) || 41); } else { - strTemp += strStartSymbol; + strStartSymbol = this.Pr.begChr === -1 ? "" : String.fromCharCode((this.begOper.code || this.Pr.begChr) || 40); + strEndSymbol = this.Pr.endChr === -1 ? "" : String.fromCharCode((this.endOper.code || this.Pr.endChr) || 41); } - for (let intCount = 0; intCount < this.Content.length; intCount++) + if (oMathText.IsLaTeX()) { - // Word поддерживает только "matrix" (матрица без скобок) и "pmatrix" - // Пока делаем так же - if (isLaTeX && this.Content[intCount] instanceof CMathContent && this.Pr.begChr === 40 && this.Pr.endChr === 41) + if (strStartSymbol === "{") + strStartSymbol = "\\{"; + if (strEndSymbol === "}") + strEndSymbol = "\\}"; + + if (strStartSymbol && !AscMath.MathLiterals.lBrackets.IsSimple(strStartSymbol)) { - if (this.Content[0].Content.length === 1 && this.Content[0].Content[0] instanceof CMathMatrix - || - this.Content[0].Content.length >= 2 - && this.Content[0].Content[0].Is_Empty() - && this.Content[0].Content[2].Is_Empty() - && this.Content[0].Content[1] instanceof CMathMatrix) - { - return this.Content[intCount].GetMultipleContentForGetText(isLaTeX, true); - } + let tempStrSymbol = strStartSymbol; + strStartSymbol = AscMath.MathLiterals.lBrackets.GetLaTeXWordFromSymbol(strStartSymbol); + if (strStartSymbol === undefined) + strStartSymbol = tempStrSymbol; } - // + oMathText.AddText(new AscMath.MathText("\\left" + strStartSymbol, this), true); + oMathText.SetGlobalStyle(this); + } + else + { + let strStartText; + let isOpenToken = AscMath.MathLiterals.lBrackets.SearchU(strStartSymbol) || AscMath.MathLiterals.lrBrackets.SearchU(strStartSymbol); - strTemp += this.Content[intCount].GetMultipleContentForGetText(isLaTeX, true); + if (isOpenToken) + { + strStartText = strStartSymbol; + } + else + { + strStartText = "├" + strStartSymbol; + } + + let oOpenText = new AscMath.MathText(strStartText, this); + oMathText.AddText(oOpenText); + } + + // check for binom + if (oMathText.IsLaTeX() + && strStartSymbol === "(" + && strEndSymbol === ")" + && this.getColumnsCount() === 1 + && this.Content[0].Content.length === 3 + && this.Content[0].Content[0].Is_Empty() + && this.Content[0].Content[2].Is_Empty() + && this.Content[0].Content[1] instanceof CFraction + && this.Content[0].Content[1].Pr.type === NO_BAR_FRACTION) + { + let oFirstPos = oMathText.GetFirstPos(); + oMathText.RemoveByPos(oFirstPos); + oMathText.Add(this.Content[0], !oMathText.LaTeX); + return oMathText; + } + + for (let intCount = 0; intCount < this.getColumnsCount(); intCount++) + { + let oCurrentPos = oMathText.Add(this.Content[intCount], !oMathText.LaTeX); if (strSeparatorSymbol && this.Content.length > 1 && intCount < this.Content.length - 1) - strTemp += strSeparatorSymbol; + { + let oSepText = new AscMath.MathText(strSeparatorSymbol, this.Content[intCount]); + oMathText.AddAfter(oCurrentPos, oSepText); + } } - if ((!AscMath.MathLiterals.lrBrackets.IsIncludes(strEndSymbol) && !AscMath.MathLiterals.rBrackets.IsIncludes(strEndSymbol)) || isLaTeX) + if (oMathText.IsLaTeX()) { - strTemp += isLaTeX ? "\\right" : "┤"; - strTemp += strEndSymbol; + if (strEndSymbol && !AscMath.MathLiterals.rBrackets.IsSimple(strEndSymbol)) + { + let tempStrSymbol = strEndSymbol; + strEndSymbol = AscMath.MathLiterals.rBrackets.GetLaTeXWordFromSymbol(strEndSymbol); + if (strEndSymbol === undefined) + strEndSymbol = tempStrSymbol; + } + oMathText.AddText(new AscMath.MathText("\\right" + strEndSymbol, this), true); } else { - if ("├" === strTemp) + let strCloseSymbol; + let isCloseToken = AscMath.MathLiterals.rBrackets.SearchU(strEndSymbol) || AscMath.MathLiterals.lrBrackets.SearchU(strEndSymbol) ; + if (!isCloseToken) { - strTemp += "┤" + strEndSymbol; + strCloseSymbol = "┤" + strEndSymbol; } else { - strTemp += strEndSymbol; + if (strEndSymbol === "") + { + strCloseSymbol = "┤"; + } + else + { + strCloseSymbol = strEndSymbol; + } } + + let oText = new AscMath.MathText(strCloseSymbol, this.Content[this.Content.length - 1]); + oMathText.AddText(oText, true); } - return strTemp; + + return oMathText; } /** @@ -4271,13 +4343,17 @@ CCharacter.prototype.getBase = function() return this.elements[0][0]; }; -function CMathGroupChrPr() +function CMathGroupChrPr(ctrPr) { - this.chr = undefined; - this.chrType = undefined; - this.pos = LOCATION_BOT; - this.vertJc = VJUST_TOP; - + this.chr = undefined; + this.chrType = undefined; + this.pos = LOCATION_BOT; + this.vertJc = VJUST_TOP; + this.ctrPr = new CMathCtrlPr(ctrPr); +} +CMathGroupChrPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } CMathGroupChrPr.prototype.Set = function(Pr) { @@ -4285,6 +4361,7 @@ CMathGroupChrPr.prototype.Set = function(Pr) this.chrType = Pr.chrType; this.pos = Pr.pos; this.vertJc = Pr.vertJc; + this.ctrPr = Pr.ctrPr; }; CMathGroupChrPr.prototype.Set_FromObject = function(Obj) { @@ -4296,6 +4373,8 @@ CMathGroupChrPr.prototype.Set_FromObject = function(Obj) if(LOCATION_TOP === Obj.pos || LOCATION_BOT === Obj.pos) this.pos = Obj.pos; + + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathGroupChrPr.prototype.Copy = function() { @@ -4305,6 +4384,7 @@ CMathGroupChrPr.prototype.Copy = function() NewPr.chrType = this.chrType; NewPr.vertJc = this.vertJc ; NewPr.pos = this.pos ; + NewPr.ctrPr = this.ctrPr ; return NewPr; }; @@ -4341,6 +4421,9 @@ CMathGroupChrPr.prototype.Write_ToBinary = function(Writer) Writer.WriteLong(this.vertJc); Writer.WriteLong(this.pos); + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathGroupChrPr.prototype.Read_FromBinary = function(Reader) { @@ -4366,6 +4449,11 @@ CMathGroupChrPr.prototype.Read_FromBinary = function(Reader) this.vertJc = Reader.GetLong(); this.pos = Reader.GetLong(); + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -4378,15 +4466,15 @@ function CGroupCharacter(props) { CCharacter.call(this); - this.Id = AscCommon.g_oIdCounter.Get_NewId(); + this.Id = AscCommon.g_oIdCounter.Get_NewId(); - this.Pr = new CMathGroupChrPr(); + this.Pr = new CMathGroupChrPr(this.CtrPrp); - if(props !== null && props !== undefined) - this.init(props); + if(props !== null && props !== undefined) + this.init(props); - /// вызов этой функции обязательно в конце - AscCommon.g_oTableId.Add( this, this.Id ); + /// вызов этой функции обязательно в конце + AscCommon.g_oTableId.Add( this, this.Id ); } CGroupCharacter.prototype = Object.create(CCharacter.prototype); CGroupCharacter.prototype.constructor = CGroupCharacter; @@ -4557,35 +4645,67 @@ CGroupCharacter.prototype.Can_ChangePos = function() { return this.Pr.chr == 0x23DC || this.Pr.chr == 0x23DD || this.Pr.chr == 0x23DE || this.Pr.chr == 0x23DF; }; -CGroupCharacter.prototype.GetTextOfElement = function(isLaTeX) { - var strTemp = ""; - var intStartCode = this.Pr.chr || this.operator.Get_CodeChr(); - var strStart = String.fromCharCode(intStartCode); - var Base = this.getBase().GetMultipleContentForGetText(isLaTeX); +/** + * + * @param {MathTextAndStyles | boolean} oMathText + * @constructor + */ +CGroupCharacter.prototype.GetTextOfElement = function(oMathText) +{ + oMathText = new AscMath.MathTextAndStyles(oMathText); - if (true === isLaTeX) - { - let strTempSymbol = AscMath.GetLaTeXFromValue(strStart); - if (strTempSymbol) - strStart = strTempSymbol; + let nStartCode = this.Pr.chr || this.operator.Get_CodeChr(); + let strStart = String.fromCharCode(nStartCode); + let oBase = this.getBase(); - if (!(intStartCode === 9182 || intStartCode === 9183)) + let oPos; + + if (oMathText.IsLaTeX()) + { + if (AscMath.MathLiterals.hbrack.SearchU(strStart)) { - strStart += this.Pr.pos === 1 ? "\\above" : "\\below"; + strStart = AscMath.SymbolsToLaTeX[strStart]; + oPos = oMathText.Add(oBase, true, 2); + oMathText.AddBefore(oPos, new AscMath.MathText(strStart, oMathText.GetStyleFromFirst())); + } + else if (AscMath.MathLiterals.horizontal.SearchU(strStart)) + { + oMathText.AddText(new AscMath.MathText("{", oMathText.GetStyleFromFirst())); + strStart = AscMath.MathLiterals.horizontal.Unicode[strStart] + strStart += this.Pr.pos === 1 ? "\\above" : "\\below"; + oPos = oMathText.Add(oBase, true, 1); + oMathText.AddBefore(oPos, new AscMath.MathText(strStart, oMathText.GetStyleFromFirst())); + oMathText.AddText(new AscMath.MathText("}", oMathText.GetStyleFromFirst())); + } + else + { + strStart = AscMath.SymbolsToLaTeX[strStart]; + strStart += this.Pr.pos === 1 ? "\\above" : "\\below"; + oPos = oMathText.Add(oBase, true, 1); + oMathText.AddBefore(oPos, new AscMath.MathText(strStart, oMathText.GetStyleFromFirst())); + } + } + else + { + let strPos; + if (this.Pr.pos === 0) + { + strPos = "┬"; + } + else if (this.Pr.pos === 1) + { + strPos = "┴"; } - strTemp = strStart; - if (Base) - strTemp += Base; + oMathText.AddText( new AscMath.MathText(strStart, this), true); + if (nStartCode !== 9182 && nStartCode !== 9183) + { + oMathText.AddText(new AscMath.MathText(strPos, oBase), true); + } + oMathText.Add(oBase, true); } - else - { - let pos = this.Pr.pos === 1 ? "┴" : "┬"; - if (intStartCode !== 9182 && intStartCode !== 9183) - strStart += pos; - strTemp = strStart + Base; - } - return strTemp; + + return oMathText; }; /** @@ -4626,3 +4746,6 @@ window["CMathMenuGroupCharacter"] = CMathMenuGroupCharacter; CMathMenuGroupCharacter.prototype["get_Pos"] = CMathMenuGroupCharacter.prototype.get_Pos; CMathMenuGroupCharacter.prototype["put_Pos"] = CMathMenuGroupCharacter.prototype.put_Pos; CMathMenuGroupCharacter.prototype["can_ChangePos"] = CMathMenuGroupCharacter.prototype.can_ChangePos; + +AscMath.Delimiter = CDelimiter; +AscMath.GroupCharacter = CGroupCharacter; diff --git a/word/Math/radical.js b/word/Math/radical.js index 4789d1e7ca..99d805b548 100644 --- a/word/Math/radical.js +++ b/word/Math/radical.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -339,6 +339,12 @@ function CMathRadicalPr() { this.type = DEGREE_RADICAL; this.degHide = false; + this.ctrPr = new CMathCtrlPr(); +} + +CMathRadicalPr.prototype.GetRPr = function () +{ + return this.ctrPr.GetRPr(); } CMathRadicalPr.prototype.Set_FromObject = function(Obj) @@ -356,6 +362,8 @@ CMathRadicalPr.prototype.Set_FromObject = function(Obj) this.degHide = false; this.type = DEGREE_RADICAL; } + + this.ctrPr.SetRPr(Obj.ctrPrp); }; CMathRadicalPr.prototype.ChangeType = function() { @@ -376,6 +384,7 @@ CMathRadicalPr.prototype.Copy = function() NewPr.type = this.type; NewPr.degHide = this.degHide; + NewPr.ctrPr = this.ctrPr; return NewPr; }; @@ -387,6 +396,9 @@ CMathRadicalPr.prototype.Write_ToBinary = function(Writer) Writer.WriteLong(this.type); Writer.WriteBool(this.degHide); + + Writer.WriteBool(true); + this.ctrPr.Write_ToBinary(Writer); }; CMathRadicalPr.prototype.Read_FromBinary = function(Reader) @@ -396,6 +408,11 @@ CMathRadicalPr.prototype.Read_FromBinary = function(Reader) this.type = Reader.GetLong(); this.degHide = Reader.GetBool(); + + if (Reader.GetBool()) + { + this.ctrPr.Read_FromBinary(Reader); + } }; /** @@ -750,48 +767,85 @@ CRadical.prototype.Is_ContentUse = function(MathContent) return false; }; -CRadical.prototype.GetTextOfElement = function(isLaTeX) +/** + * + * @param {MathTextAndStyles} oMathText + * @constructor + */ +CRadical.prototype.GetTextOfElement = function(oMathText) { - var strTemp = ""; - var strDegree = this.getDegree().GetMultipleContentForGetText(isLaTeX, true); - var strBase = this.getBase().GetMultipleContentForGetText(isLaTeX, true); + oMathText = new AscMath.MathTextAndStyles(oMathText); - if (isLaTeX) - { - if (strDegree.length > 0) - strDegree = '[' + strDegree + ']'; + let oDegree = this.getDegree(); + let oBase = this.getBase(); - strTemp = '\\sqrt' + strDegree + "{" + strBase + "}"; - } + if (oMathText.IsLaTeX()) + { + oMathText.SetGlobalStyle(this); + oMathText.AddText(new AscMath.MathText("\\sqrt", this)); + let oDegreeText = oDegree.GetTextOfElement(); + + if (!oDegreeText.IsEmpty()) + { + let oIterator = oMathText.Add(oDegree, true); + oMathText.AddBefore(oIterator, new AscMath.MathText("[", this)); + oMathText.AddAfter(oIterator, new AscMath.MathText("]", this)); + } + + let oBaseText = oBase.GetTextOfElement(); + if (oBaseText.IsHasText()) + oMathText.Add(oBase, true, 1); + } else - { - var strRadicalSymbol = "√"; + { + let oDegreeText = oDegree.GetTextOfElement(); + let nLengthOfDegree = oDegreeText.GetText(); - if (strDegree === "3" || strDegree === "4") - { - strRadicalSymbol = strDegree === "3" ? "∛" : "∜"; - strTemp = strRadicalSymbol + strBase; - } - else - { - if (strDegree.length > 0) - { - strDegree = "(" + strDegree + '&'; - if (strBase[0] != "(" && strBase[strBase.length - 1] !== ")") - { - strBase = strBase + ")"; - } - } - else - { - strBase = "(" + strBase + ")"; - } - - strTemp = strRadicalSymbol + strDegree + strBase; - } + if (nLengthOfDegree.length === 0 || !oDegreeText.IsHasText()) + { + let oPosSqrt = oMathText.AddText(new AscMath.MathText("√", this), true); + let oBaseText = oBase.GetTextOfElement(); + let nMathBase = oBaseText.GetText(); + + if (nMathBase.length <= 1 || !oBaseText.IsHasText()) + { + oMathText.AddAfter(oPosSqrt, oBaseText); + } + else + { + let oStartPos = oMathText.AddAfter(oPosSqrt, new AscMath.MathText("(", this)); + let oPosBase = oMathText.AddAfter(oStartPos, oBaseText); + oMathText.AddAfter(oPosBase, new AscMath.MathText(")", this)); + } + } + else + { + let strDegree = oDegreeText.GetText(); + if (strDegree === "3" || strDegree === "4") + { + if (strDegree === "3") + { + oMathText.AddText(new AscMath.MathText("∛", this)); + } + else if (strDegree === "4") + { + oMathText.AddText(new AscMath.MathText("∜", this)); + } + oMathText.Add(oBase, true); + } + else + { + oMathText.AddText(new AscMath.MathText("√", this)); + oMathText.AddText(new AscMath.MathText("(", this)); + oMathText.AddText(oDegreeText); + oMathText.AddText(new AscMath.MathText("&", this)); + oMathText.Add(oBase, true, 0); + oMathText.AddText(new AscMath.MathText(")", this)); + } + } } - return strTemp; + return oMathText; }; /** @@ -831,3 +885,5 @@ window['AscCommonWord'].CRadical = CRadical; window["CMathMenuRadical"] = CMathMenuRadical; CMathMenuRadical.prototype["get_HideDegree"] = CMathMenuRadical.prototype.get_HideDegree; CMathMenuRadical.prototype["put_HideDegree"] = CMathMenuRadical.prototype.put_HideDegree; + +AscMath.Radical = CRadical; diff --git a/word/api.js b/word/api.js index 6a03aaf10f..9d70754289 100644 --- a/word/api.js +++ b/word/api.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -923,6 +923,8 @@ this.CurrentTranslate = null; this.CollaborativeMarksShowType = c_oAscCollaborativeMarksShowType.All; + + this.stylePainter = null; // объекты, нужные для отправки в тулбар (шрифты, стили) this._gui_control_colors = null; @@ -969,11 +971,6 @@ } return false; }; - // Просмотр PDF - asc_docs_api.prototype.isPdfViewer = function() - { - return (null === this.WordControl.m_oLogicDocument); - }; asc_docs_api.prototype.getEditorErrorInfo = function() { @@ -1120,7 +1117,7 @@ asc_docs_api.prototype.getSelectedElements = function(bUpdate) { if (true === bUpdate) - this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState(); + this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState(true); return this.SelectedObjectsStack; }; @@ -1495,12 +1492,11 @@ background-repeat: no-repeat;\ if (this.WordControl.m_oDrawingDocument.m_oDocumentRenderer) this.WordControl.m_oDrawingDocument.m_oDocumentRenderer.navigate(value); }; - asc_docs_api.prototype["asc_setViewerTargetType"] = function(type) { - + asc_docs_api.prototype["asc_setViewerTargetType"] = asc_docs_api.prototype.asc_setViewerTargetType = function(type) { this.isHandMode = ("hand" === type); this.WordControl.checkMouseHandMode(); this.WordControl.onMouseMove(); - let logicDocument = this.private_GetLogicDocument(); + this.sendEvent("asc_onChangeViewerTargetType", this.isHandMode); }; function BeforeOpenDocument() @@ -1900,10 +1896,8 @@ background-repeat: no-repeat;\ var oColor = false === bUseColor ? null : oCommonColor; t._coAuthoringSetChange(e, oColor); // т.е. если bSendEvent не задан, то посылаем сообщение + когда загрузился документ - if (!bFirstLoad && t.bInit_word_control) - { + if (t._canSyncCollaborativeChanges(bFirstLoad)) t.sync_CollaborativeChanges(); - } }; this.CoAuthoringApi.onChangesIndex = function(changesIndex) { @@ -1920,6 +1914,11 @@ background-repeat: no-repeat;\ } }; }; + + asc_docs_api.prototype._canSyncCollaborativeChanges = function(isFirstLoad) + { + return (!isFirstLoad && this.bInit_word_control); + }; asc_docs_api.prototype.startCollaborationEditing = function() { @@ -2277,17 +2276,7 @@ background-repeat: no-repeat;\ if (options && options.advancedOptions) desktopOptions["nativeOptions"] = options.advancedOptions.asc_getNativeOptions(); - if (null != this.WordControl.m_oDrawingDocument.m_oDocumentRenderer) - { - var viewer = this.WordControl.m_oDrawingDocument.m_oDocumentRenderer; - if (window["AscDesktopEditor"] && !window["AscDesktopEditor"]["IsLocalFile"]() && window["AscDesktopEditor"]["SetPdfCloudPrintFileInfo"]) - { - if (!window["AscDesktopEditor"]["IsCachedPdfCloudPrintFileInfo"]()) - window["AscDesktopEditor"]["SetPdfCloudPrintFileInfo"](AscCommon.Base64.encode(viewer.getFileNativeBinary())); - } - window["AscDesktopEditor"]["Print"](JSON.stringify(desktopOptions), viewer.savedPassword ? viewer.savedPassword : ""); - } - else + if (!this.isPdfEditor()) { if (options && options.advancedOptions && (Asc.c_oAscPrintType.Selection === options.advancedOptions.asc_getPrintType())) { @@ -2322,11 +2311,6 @@ background-repeat: no-repeat;\ }; asc_docs_api.prototype.Copy = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Copy"); - return true; - } return AscCommon.g_clipboardBase.Button_Copy(); }; asc_docs_api.prototype.Update_ParaTab = function(Default_Tab, ParaTabs) @@ -2335,20 +2319,10 @@ background-repeat: no-repeat;\ }; asc_docs_api.prototype.Cut = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Cut"); - return true; - } return AscCommon.g_clipboardBase.Button_Cut(); }; asc_docs_api.prototype.Paste = function() { - if (window["AscDesktopEditor"]) - { - window["asc_desktop_copypaste"](this, "Paste"); - return true; - } if (!this.WordControl.m_oLogicDocument) return false; @@ -2444,7 +2418,7 @@ background-repeat: no-repeat;\ } }; - asc_docs_api.prototype.asc_PasteData = function(_format, data1, data2, text_data, useCurrentPoint, callback, checkLocks) + asc_docs_api.prototype.asc_PasteData = function(_format, data1, data2, text_data, useCurrentPoint, callback, checkLocks, rejectCallback) { if (AscCommon.CollaborativeEditing.Get_GlobalLock()) return; @@ -2470,14 +2444,18 @@ background-repeat: no-repeat;\ isLocked = _logicDoc.IsSelectionLocked(AscCommon.changestype_Paragraph_Content, null, true, _logicDoc.IsFormFieldEditing()); } - if (!isLocked) + if (isLocked) + { + rejectCallback && rejectCallback(); + } + else { window['AscCommon'].g_specialPasteHelper.Paste_Process_Start(arguments[5]); if (!useCurrentPoint) _logicDoc.StartAction(AscDFH.historydescription_Document_PasteHotKey); - AscCommon.Editor_Paste_Exec(this, _format, data1, data2, text_data, undefined, callback); + AscCommon.Editor_Paste_Exec(this, _format, data1, data2, text_data, undefined, callback, rejectCallback); } }; @@ -2519,8 +2497,9 @@ background-repeat: no-repeat;\ this.WordControl.m_oLogicDocument.Document_Undo(); _logicDoc.StartAction(AscDFH.historydescription_Document_PasteHotKey); - AscCommon.Editor_Paste_Exec(this, null, null, null, null, props); - _logicDoc.FinalizeAction(); + AscCommon.Editor_Paste_Exec(this, null, null, null, null, props, function () { + _logicDoc.FinalizeAction(); + }); } }; @@ -2691,10 +2670,6 @@ background-repeat: no-repeat;\ { window["AscDesktopEditor"]["OnSave"](); } - if (t.disconnectOnSave) { - t.CoAuthoringApi.disconnect(t.disconnectOnSave.code, t.disconnectOnSave.reason); - t.disconnectOnSave = null; - } if(AscCommon.g_specialPasteHelper && !AscCommon.CollaborativeEditing.Is_SingleUser()){ AscCommon.g_specialPasteHelper.SpecialPasteButton_Hide(); } @@ -2788,7 +2763,7 @@ background-repeat: no-repeat;\ this.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.Save); window["AscDesktopEditor"]["localSaveToDrawingFormat2"](this.documentTitle, this.DocumentUrl || "", "", - AscCommon.Base64.encode(changes), AscCommon.Base64.encode(this.DocumentRenderer.getFileNativeBinary()), this.currentPassword || ""); + AscCommon.Base64.encode(changes), AscCommon.Base64.encode(this.DocumentRenderer.getFileNativeBinary()), this.currentPassword || "", Asc.c_oAscFileType.PDF); return true; } @@ -2797,7 +2772,7 @@ background-repeat: no-repeat;\ options.pdfChanges = changes; this.asc_DownloadAs(options); return; - } else if((this.documentIsWopi && options.isSaveAs) || !(this.isUseNativeViewer && this.isDocumentRenderer())) { + } else if((this.documentIsWopi && (options.isSaveAs && options.wopiSaveAsPath)) || !(this.isUseNativeViewer && this.isDocumentRenderer())) { //todo add new server request wopi_putRelativeOrigin options.asc_setFileType(AscCommon.getFormatByExtention(this.documentFormat)); this.asc_DownloadAs(options); @@ -6786,48 +6761,51 @@ background-repeat: no-repeat;\ this.private_ChangeHyperlink(oHyperProps, sBookmarkName); } }; - asc_docs_api.prototype.private_ChangeHyperlink = function(oHyperProps, sBookmarkName) + asc_docs_api.prototype.private_ChangeHyperlink = function(hyperProps, bookmarkName) { - var isLocked = false; - if (sBookmarkName) - { - isLocked = this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content, { - Type : AscCommon.changestype_2_Element_and_Type, - Element : oHyperProps.get_Heading(), - CheckType : changestype_Paragraph_Content - }); - } - else - { - isLocked = this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content); - } - - if (!isLocked) - { - this.WordControl.m_oLogicDocument.StartAction(AscDFH.historydescription_Document_ChangeHyperlink); - - if (sBookmarkName && oHyperProps.get_Heading()) - oHyperProps.get_Heading().AddBookmarkAtBegin(sBookmarkName); - - this.WordControl.m_oLogicDocument.ModifyHyperlink(oHyperProps); - this.WordControl.m_oLogicDocument.FinalizeAction(); - } + let logicDocument = this.private_GetLogicDocument(); + if (!logicDocument + || !hyperProps + || !hyperProps.get_InternalHyperlink() + || !hyperProps.get_InternalHyperlink().IsUseInDocument()) + return; + + let additionalCheck = bookmarkName ? { + Type : AscCommon.changestype_2_Element_and_Type, + Element : hyperProps.get_Heading(), + CheckType : changestype_Paragraph_Content + } : undefined; + + if (logicDocument.IsSelectionLocked(changestype_Paragraph_Content, additionalCheck)) + return; + + logicDocument.StartAction(AscDFH.historydescription_Document_ChangeHyperlink); + + if (bookmarkName && hyperProps.get_Heading()) + hyperProps.get_Heading().AddBookmarkAtBegin(bookmarkName); + + logicDocument.ModifyHyperlink(hyperProps); + logicDocument.FinalizeAction(); }; /** * Удаляем гиперссылку - * @param {CHyperlinkProperty} oHyperProps + * @param {CHyperlinkProperty} hyperProps */ - asc_docs_api.prototype.remove_Hyperlink = function(oHyperProps) + asc_docs_api.prototype.remove_Hyperlink = function(hyperProps) { - if (!oHyperProps || !oHyperProps.get_InternalHyperlink()) + let logicDocument = this.private_GetLogicDocument(); + if (!logicDocument + || !hyperProps + || !hyperProps.get_InternalHyperlink() + || !hyperProps.get_InternalHyperlink().IsUseInDocument()) return; - - if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content)) - { - this.WordControl.m_oLogicDocument.StartAction(AscDFH.historydescription_Document_RemoveHyperlink); - this.WordControl.m_oLogicDocument.RemoveHyperlink(oHyperProps); - this.WordControl.m_oLogicDocument.FinalizeAction(); - } + + if (logicDocument.IsSelectionLocked(changestype_Paragraph_Content)) + return; + + logicDocument.StartAction(AscDFH.historydescription_Document_RemoveHyperlink); + logicDocument.RemoveHyperlink(hyperProps); + logicDocument.FinalizeAction(); }; asc_docs_api.prototype.asc_GetHyperlinkAnchors = function() { @@ -7747,31 +7725,11 @@ background-repeat: no-repeat;\ if (!this.asc_checkNeedCallback("asc_onInitEditorStyles")) return; } - - var StylesPainter = new AscCommonWord.CStylesPainter(); - var LogicDocument = this.WordControl.m_oLogicDocument; - if (LogicDocument) - { - var isShowParaMarks = LogicDocument.Is_ShowParagraphMarks(); - - var isLocalTrackRevisions = false; - if (LogicDocument.IsTrackRevisions()) - { - isLocalTrackRevisions = LogicDocument.GetLocalTrackRevisions(); - LogicDocument.SetLocalTrackRevisions(false); - } - - if (true === isShowParaMarks) - LogicDocument.Set_ShowParagraphMarks(false, false); - - StylesPainter.GenerateStyles(this, (null == this.LoadedObject) ? this.WordControl.m_oLogicDocument.Get_Styles().Style : this.LoadedObjectDS); - - if (false !== isLocalTrackRevisions) - LogicDocument.SetLocalTrackRevisions(isLocalTrackRevisions); - - if (true === isShowParaMarks) - LogicDocument.Set_ShowParagraphMarks(true, false); - } + + if (!this.stylePainter) + this.stylePainter = new AscCommonWord.CStylesPainter(); + + this.stylePainter.GenerateStyles(this, (null == this.LoadedObject) ? this.WordControl.m_oLogicDocument.Get_Styles().Style : this.LoadedObjectDS); }; asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function(blockType) { @@ -8682,7 +8640,7 @@ background-repeat: no-repeat;\ asc_docs_api.prototype.asc_SendForm = function() { var t = this; - this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Submit); + this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Submit); var data = {'type': 'sendForm', 'userconnectionid': this.CoAuthoringApi.getUserConnectionId(), 'formdata': { 'formsdata': this.asc_GetAllFormsData(true) }}; @@ -8690,8 +8648,13 @@ background-repeat: no-repeat;\ if (!(response && AscCommon.c_oAscServerCommandErrors.NoError === response.code)) { t.sendEvent('asc_onError', Asc.c_oAscError.ID.Submit, c_oAscError.Level.NoCritical); } - t.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Submit); + t.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Submit); }); + + this.sendEvent("onSubmitForm"); + + if (window.g_asc_plugins) + window.g_asc_plugins.onPluginEvent("onSubmitForm"); }; asc_docs_api.prototype.SetTableDrawMode = function(value) @@ -8945,6 +8908,7 @@ background-repeat: no-repeat;\ if (null == this.WordControl.m_oDrawingDocument.m_oDocumentRenderer) { this.WordControl.m_oDrawingDocument.ClearCachePages(); + this.WordControl.m_oDrawingDocument.FirePaint(); this.WordControl.HideRulers(); } else @@ -9000,7 +8964,7 @@ background-repeat: no-repeat;\ } } else { if (this.asc_checkNeedCallback("asc_onAdvancedOptions")) { - var cp = {'codepage': AscCommon.c_oAscCodePageUtf8, 'encodings': AscCommon.getEncodingParams()}; + var cp = {'codepage': AscCommon.c_oAscCodePageNone, 'encodings': AscCommon.getEncodingParams()}; if (data && typeof Blob !== 'undefined' && typeof FileReader !== 'undefined') { AscCommon.loadFileContent(data, function(httpRequest) { if (httpRequest && httpRequest.response) { @@ -9034,7 +8998,16 @@ background-repeat: no-repeat;\ if (this.WordControl.m_oLogicDocument && this.isCloudSaveAsLocalToDrawingFormat(actionType, fileType)) { - this.localSaveToDrawingFormat(this.WordControl.m_oDrawingDocument.ToRendererPart(false, options.isPdfPrint || ((fileType & 0x0400) === 0x0400)), fileType); + if (this.isUseNativeViewer && this.isDocumentRenderer()) + { + let changes = this.getDocumentRenderer().Save(); + window["AscDesktopEditor"]["localSaveToDrawingFormat2"](this.documentTitle, this.DocumentUrl || "", "", + changes ? AscCommon.Base64.encode(changes) : "", AscCommon.Base64.encode(this.getDocumentRenderer().getFileNativeBinary()), this.currentPassword || "", fileType); + } + else + { + this.localSaveToDrawingFormat(this.WordControl.m_oDrawingDocument.ToRendererPart(false, options.isPdfPrint || ((fileType & 0x0400) === 0x0400)), fileType); + } return true; } @@ -9046,12 +9019,6 @@ background-repeat: no-repeat;\ else if (this.isUseNativeViewer && this.isDocumentRenderer()) { oAdditionalData["c"] = 'savefromorigin'; - if (this.currentPassword) { - oAdditionalData["password"] = this.currentPassword; - if (DownloadType.Print !== downloadType) { - oAdditionalData["savepassword"] = this.currentPassword; - } - } } let canDownloadFromBytes = null == options.oDocumentMailMerge && null == options.oMailMergeSendData @@ -9768,6 +9735,8 @@ background-repeat: no-repeat;\ AscCommon.pptx_content_loader.ImageMapChecker = {}; this.WordControl.m_oDrawingDocument.CloseFile(); + + this.sendEvent("asc_onCloseFile"); }; asc_docs_api.prototype.asc_SetFastCollaborative = function(isOn) { @@ -9841,6 +9810,13 @@ background-repeat: no-repeat;\ this.openFileCryptCallback(this.openFileCryptBinary); } }; + asc_docs_api.prototype.initCollaborativeEditing = function() + { + if (AscCommon.CollaborativeEditing) + return; + + AscCommon.CollaborativeEditing = new AscCommon.CWordCollaborativeEditing(); + }; asc_docs_api.prototype.asc_Recalculate = function(bIsUpdateInterface) { @@ -9869,16 +9845,20 @@ background-repeat: no-repeat;\ // Разрешаем всегда выполнять скрипт билдера, даже если это вьювер, а скрипт меняет содержимое // В конце действия по выполненным изменениям проверяем можно ли оставлять данные изменения logicDocument.StartAction(AscDFH.historydescription_BuilderScript); + logicDocument.CheckActionLock(); return true; }; - asc_docs_api.prototype.onEndBuilderScript = function() + asc_docs_api.prototype._onEndBuilderScript = function(callback) { let logicDocument = this.getLogicDocument(); logicDocument.Recalculate(); - logicDocument.CheckActionLock(); logicDocument.UpdateSelection(); logicDocument.UpdateInterface(); - return logicDocument.FinalizeAction(); + let result = logicDocument.FinalizeAction(); + if (callback) + callback(result); + + return result; }; //---------------------------------------------------------------------------------------------------------------------- // Работаем с полями @@ -10966,19 +10946,21 @@ background-repeat: no-repeat;\ }, false, oLogicDocument.IsFormFieldEditing()); } } - - if (!isLocked) - { - oLogicDocument.StartAction(AscDFH.historydescription_Document_SetContentControlListPr); - oContentControl.ApplyDatePickerPr(oPr, updateDate); - oLogicDocument.Recalculate(); - oLogicDocument.UpdateInterface(); - oLogicDocument.UpdateTracks(); - oLogicDocument.FinalizeAction(); - } oContentControl.SkipSpecialContentControlLock(false); oContentControl.SkipFillingFormModeCheck(false); + + if (isLocked) + return; + + oLogicDocument.StartAction(AscDFH.historydescription_Document_SetContentControlListPr); + oContentControl.ApplyDatePickerPr(oPr, updateDate); + oContentControl.MoveCursorToContentControl(false); + oLogicDocument.Recalculate(); + oLogicDocument.UpdateInterface(); + oLogicDocument.UpdateTracks(); + oLogicDocument.UpdateSelection(); + oLogicDocument.FinalizeAction(); }; asc_docs_api.prototype.asc_SetContentControlDatePickerDate = function(oPr, sId) { @@ -11125,11 +11107,11 @@ background-repeat: no-repeat;\ }; asc_docs_api.prototype.asc_GetFormsCountByKey = function(sKey) { - let oFormsManager = this.private_GetFormsManager(); - if (!oFormsManager) + let formManager = this.private_GetFormsManager(); + if (!formManager) return 0; - - return oFormsManager.GetAllFormsByKey(sKey).length; + + return formManager.GetAllFormsByKey(sKey).length + formManager.GetRadioButtons(sKey).length; }; asc_docs_api.prototype.asc_MoveToFillingForm = function(isNext, isRequired, isNotFilled) { @@ -11806,11 +11788,36 @@ background-repeat: no-repeat;\ return null; }; + asc_docs_api.prototype.asc_AddComplexFieldWithInstruction = function(instruction) + { + let logicDocument = this.private_GetLogicDocument(); + if (!logicDocument) + return; + + return logicDocument.AddComplexField(instruction); + }; + asc_docs_api.prototype.asc_EditComplexFieldInstruction = function(instruction) + { + let logicDocument = this.private_GetLogicDocument(); + if (!logicDocument) + return false; + + let complexField = logicDocument.GetCurrentComplexField(); + return logicDocument.EditComplexFieldInstruction(complexField, instruction); + }; + asc_docs_api.prototype.asc_GetComplexFieldInstruction = function() + { + let complexField = this.asc_GetCurrentComplexField(); + if (!complexField || !(complexField instanceof AscWord.CComplexField)) + return ""; + + return complexField.GetInstructionLine(); + }; asc_docs_api.prototype.asc_GetCurrentComplexField = function() { var oLogicDocument = this.WordControl.m_oLogicDocument; if (!oLogicDocument) - return; + return null; return oLogicDocument.GetCurrentComplexField(); }; @@ -12206,7 +12213,7 @@ background-repeat: no-repeat;\ }; asc_docs_api.prototype.asc_GetSelectedText = function(bClearText, select_Pr) { - bClearText = typeof(bClearText) === "boolean" ? bClearText : false; + bClearText = (bClearText === true); let logicDocument = this.private_GetLogicDocument(); if (!logicDocument) return ""; @@ -12223,11 +12230,14 @@ background-repeat: no-repeat;\ }; asc_docs_api.prototype.asc_EditSelectAll = function() { - let oLogicDocument = this.private_GetLogicDocument(); - if (!oLogicDocument) + let logicDocument = this.private_GetLogicDocument(); + if (!logicDocument) return null; - - oLogicDocument.SelectAll(); + + if (this.isTargetHandMode() && !logicDocument.IsInFormField()) + this.asc_setViewerTargetType("select"); + + logicDocument.SelectAll(); }; asc_docs_api.prototype.asc_enterText = function(value) { @@ -12536,9 +12546,8 @@ background-repeat: no-repeat;\ const oSmartArt = new AscFormat.SmartArt(); oSmartArt.fillByPreset(nSmartArtType); oSmartArt.fitToPageSize(); - oSmartArt.fitFontSize(); - oSmartArt.recalculateBounds(); oThis.WordControl.m_oLogicDocument.AddInlineImage(null, null, null, oSmartArt); + oSmartArt.generateDrawingPart(); AscFonts.IsCheckSymbols = false; AscFonts.FontPickerByCharacter.checkText("", oThis, function() { @@ -12550,7 +12559,7 @@ background-repeat: no-repeat;\ }; asc_docs_api.prototype.asc_CompareDocumentFile_local = function (oOptions) { var t = this; - window["AscDesktopEditor"]["OpenFilenameDialog"]("word", false, function(_file){ + window["AscDesktopEditor"]["OpenFilenameDialog"]("word", false, function(_file) { var file = _file; if (Array.isArray(file)) file = file[0]; @@ -12641,12 +12650,10 @@ background-repeat: no-repeat;\ }); }; - asc_docs_api.prototype._ConvertDocument = function (document, fEndCallback) { - var stream = null; - var oApi = this; + asc_docs_api.prototype._ConvertDocuments = function (documents, isUseDirectUrlError, fForEachCallback, fEndCallback) { + fEndCallback = fEndCallback || function (api) {}; this.insertDocumentUrlsData = { - imageMap: null, documents: [document], convertCallback: function (_api, url) { - _api.insertDocumentUrlsData.imageMap = url; + imageMap: null, documents: documents, convertCallback: function (_api, url) { if (!url['output.bin']) { _api.endInsertDocumentUrls(); _api.sendEvent("asc_onError", Asc.c_oAscError.ID.DirectUrl, @@ -12654,27 +12661,33 @@ background-repeat: no-repeat;\ return; } AscCommon.loadFileContent(url['output.bin'], function (httpRequest) { - if (null === httpRequest || !(stream = AscCommon.initStreamFromResponse(httpRequest))) { - _api.endInsertDocumentUrls(); + const stream = httpRequest && AscCommon.initStreamFromResponse(httpRequest); + if (stream) { + fForEachCallback(stream, url); + } else { _api.sendEvent("asc_onError", Asc.c_oAscError.ID.DirectUrl, Asc.c_oAscError.Level.NoCritical); return; } - _api.endInsertDocumentUrls(); + if (_api.insertDocumentUrlsData.documents.length > 0) { + const options = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.CANVAS_WORD); + options.isNaturalDownload = true; + options.isGetTextFromUrl = true; + if (isUseDirectUrlError) { + options.errorDirect = Asc.c_oAscError.ID.DirectUrl; + } + _api.downloadAs(Asc.c_oAscAsyncAction.DownloadAs, options); + } else { + _api.endInsertDocumentUrls(); + } }, "arraybuffer"); - }, endCallback: function (_api) { - - if (stream) { - fEndCallback(stream); - stream = null; - } - } + }, endCallback: fEndCallback }; - var options = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.CANVAS_WORD); + const options = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.CANVAS_WORD); options.isNaturalDownload = true; options.isGetTextFromUrl = true; - if (document.url) { + if (isUseDirectUrlError) { options.errorDirect = Asc.c_oAscError.ID.DirectUrl; } this.downloadAs(Asc.c_oAscAsyncAction.DownloadAs, options); @@ -12682,14 +12695,16 @@ background-repeat: no-repeat;\ asc_docs_api.prototype._CompareDocument = function (document, oOptions) { const oThis = this; - this._ConvertDocument(document, function (stream) { + this._ConvertDocuments([document], !!document.url, function (stream, imageMap) { + oThis.insertDocumentUrlsData.imageMap = imageMap; AscCommonWord.CompareBinary(oThis, stream, oOptions); }); }; asc_docs_api.prototype._MergeDocument = function (document, oOptions) { const oThis = this; - this._ConvertDocument(document, function (stream) { + this._ConvertDocuments([document], !!document.url, function (stream, imageMap) { + oThis.insertDocumentUrlsData.imageMap = imageMap; AscCommonWord.mergeBinary(oThis, stream, oOptions); }); }; @@ -13389,7 +13404,7 @@ background-repeat: no-repeat;\ } }; - window["asc_docs_api"].prototype["asc_getButtonsTOC"] = function(id1, id2, styleWidth) + asc_docs_api.prototype["asc_getButtonsTOC"] = function(id1, id2, styleWidth) { if (this.WordControl && this.WordControl.m_oDrawingDocument) { @@ -13575,7 +13590,11 @@ background-repeat: no-repeat;\ return true; }; - + asc_docs_api.prototype.canEnterText = function() + { + let logicDocument = this.private_GetLogicDocument(); + return logicDocument ? logicDocument.canEnterText() : false; + }; asc_docs_api.prototype.updateDarkMode = function() { if (!this.WordControl || !this.WordControl.m_oDrawingDocument) @@ -13973,7 +13992,12 @@ background-repeat: no-repeat;\ { return this.isHandMode && this.isRestrictionForms(); }; - + + + asc_docs_api.prototype.asc_getCoHistory = function() + { + return AscCommon.CollaborativeEditing.getCoHistory(); + }; asc_docs_api.prototype.asc_putPageColor = function(color) { let logicDocument = this.private_GetLogicDocument(); @@ -14009,6 +14033,68 @@ background-repeat: no-repeat;\ return logicDocument.Background.getAscColor(); }; + + asc_docs_api.prototype.asc_insertTextFromFile = function () { + const insertDocumentManager = new AscCommonWord.CInsertDocumentManager(this); + insertDocumentManager.insertTextFromFile(); + }; + asc_docs_api.prototype.asc_insertTextFromUrl = function (url, token) { + const insertDocumentManager = new AscCommonWord.CInsertDocumentManager(this); + insertDocumentManager.insertTextFromUrl(url, token); + }; + + asc_docs_api.prototype.asc_showDeletedTextInVersionHistory = function() + { + if (!this.getVersionHistory()) + return false; + + return AscCommon.CollaborativeEditing.CoHistory.RecoverDeletedText() + }; + asc_docs_api.prototype.asc_isShowedDeletedTextInVersionHistory = function() + { + if (!this.getVersionHistory()) + return false; + + return AscCommon.CollaborativeEditing.CoHistory.HaveDeletedTextRecovery() + }; + asc_docs_api.prototype.asc_hideDeletedTextInVersionHistory = function() + { + if (!this.getVersionHistory()) + return; + + AscCommon.CollaborativeEditing.CoHistory.UndoDeletedTextRecovery(); + }; + asc_docs_api.prototype.getCustomProperties = function() + { + let oLogicDocument = this.private_GetLogicDocument(); + if(!oLogicDocument) + return null; + return oLogicDocument.CustomProperties; + }; + + asc_docs_api.prototype.addCustomProperty = function(name, type, value) + { + let oLogicDocument = this.private_GetLogicDocument(); + if(!oLogicDocument) + return; + oLogicDocument.AddCustomProperty(name, type, value); + }; + + asc_docs_api.prototype.modifyCustomProperty = function(idx, name, type, value) + { + let oLogicDocument = this.private_GetLogicDocument(); + if(!oLogicDocument) + return; + oLogicDocument.ModifyCustomProperty(idx, name, type, value); + }; + + asc_docs_api.prototype.removeCustomProperty = function(idx) + { + let oLogicDocument = this.private_GetLogicDocument(); + if(!oLogicDocument) + return; + oLogicDocument.RemoveCustomProperty(idx); + }; //-------------------------------------------------------------export--------------------------------------------------- window['Asc'] = window['Asc'] || {}; @@ -14675,7 +14761,10 @@ background-repeat: no-repeat;\ asc_docs_api.prototype['asc_UpdateTablesOfFigures'] = asc_docs_api.prototype.asc_UpdateTablesOfFigures; asc_docs_api.prototype['asc_AddTableOfFigures'] = asc_docs_api.prototype.asc_AddTableOfFigures; asc_docs_api.prototype['asc_GetTableOfFiguresPr'] = asc_docs_api.prototype.asc_GetTableOfFiguresPr; - + + asc_docs_api.prototype['asc_AddComplexFieldWithInstruction'] = asc_docs_api.prototype.asc_AddComplexFieldWithInstruction; + asc_docs_api.prototype['asc_GetComplexFieldInstruction'] = asc_docs_api.prototype.asc_GetComplexFieldInstruction; + asc_docs_api.prototype['asc_EditComplexFieldInstruction'] = asc_docs_api.prototype.asc_EditComplexFieldInstruction; asc_docs_api.prototype['asc_GetCurrentComplexField'] = asc_docs_api.prototype.asc_GetCurrentComplexField; asc_docs_api.prototype['asc_UpdateComplexField'] = asc_docs_api.prototype.asc_UpdateComplexField; asc_docs_api.prototype['asc_RemoveComplexField'] = asc_docs_api.prototype.asc_RemoveComplexField; @@ -14818,6 +14907,15 @@ background-repeat: no-repeat;\ asc_docs_api.prototype["asc_putPageColor"] = asc_docs_api.prototype.asc_putPageColor; asc_docs_api.prototype["asc_getPageColor"] = asc_docs_api.prototype.asc_getPageColor; + asc_docs_api.prototype["asc_insertTextFromFile"] = asc_docs_api.prototype.asc_insertTextFromFile; + asc_docs_api.prototype["asc_insertTextFromUrl"] = asc_docs_api.prototype.asc_insertTextFromUrl; + + asc_docs_api.prototype["asc_showDeletedTextInVersionHistory"] = asc_docs_api.prototype.asc_showDeletedTextInVersionHistory; + asc_docs_api.prototype["asc_isShowedDeletedTextInVersionHistory"] = asc_docs_api.prototype.asc_isShowedDeletedTextInVersionHistory; + asc_docs_api.prototype["asc_hideDeletedTextInVersionHistory"] = asc_docs_api.prototype.asc_hideDeletedTextInVersionHistory; + + asc_docs_api.prototype["asc_getCoHistory"] = asc_docs_api.prototype.asc_getCoHistory; + CDocInfoProp.prototype['get_PageCount'] = CDocInfoProp.prototype.get_PageCount; CDocInfoProp.prototype['put_PageCount'] = CDocInfoProp.prototype.put_PageCount; CDocInfoProp.prototype['get_WordsCount'] = CDocInfoProp.prototype.get_WordsCount; diff --git a/word/apiBuilder.js b/word/apiBuilder.js index a3ad2fa715..cd3d712422 100644 --- a/word/apiBuilder.js +++ b/word/apiBuilder.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -201,10 +201,9 @@ let oDrawing = oApiDrawing.Drawing; if(oDrawing) { - if(oDrawing.GraphicObj && - oDrawing.GraphicObj.getObjectType() === AscDFH.historyitem_type_OleObject) + if(oDrawing.getObjectType() === AscDFH.historyitem_type_OleObject) { - let oData = oDrawing.GraphicObj.getDataObject(); + let oData = oDrawing.getDataObject(); window.g_asc_plugins.onPluginEvent("onInsertOleObjects", [oData]); } } @@ -223,7 +222,6 @@ /** * Class representing the Markdown conversion processing. * Each Range object is determined by the position of the start and end characters. - * @constructor */ function CMarkdownConverter(oConfig) { @@ -1200,9 +1198,7 @@ { this.Element = oElement; this.Controller = null; - this.Start = undefined; - this.End = undefined; - this.isEmpty = true; + this.isEmpty = false; this.Paragraphs = []; this.Text = undefined; this.oDocument = editor.GetDocument(); @@ -1210,19 +1206,22 @@ this.StartPos = null; this.TextPr = new CTextPr(); - this.private_SetRangePos(Start, End); - this.private_CalcDocPos(); + if (Array.isArray(Start) && Array.isArray(End)) + { + this.StartPos = Start; + this.EndPos = End; + } + else + this.private_UpdateDocPos(Start, End, oElement); if (this.StartPos === null || this.EndPos === null) - return false; - else - this.isEmpty = false; - - this.private_SetController(); + { + this.isEmpty = true; + return; + } + + this.private_CheckController(); - this.Text = this.GetText(); - this.Paragraphs = this.GetAllParagraphs(); - private_RefreshRangesPosition(); arrApiRanges.push(this); this.private_RemoveEqual(); @@ -1230,134 +1229,120 @@ } ApiRange.prototype.constructor = ApiRange; - ApiRange.prototype.private_SetRangePos = function(Start, End) + + ApiRange.prototype.private_UpdateDocPos = function(nStartPos, nEndPos, oElement) { - function calcSumChars(oRun) - { - var nRangePos = 0; + function correctPositions(oElement) { + let nPosCount = 0; + let isFirstRun = true; - var nCurPos = oRun.Content.length; - - for (var nPos = 0; nPos < nCurPos; ++nPos) + function calcSumPos(oRun) { - if (para_Text === oRun.Content[nPos].Type || para_Space === oRun.Content[nPos].Type || para_Tab === oRun.Content[nPos].Type || para_NewLine === oRun.Content[nPos].Type || para_End === oRun.Content[nPos].Type) - nRangePos++; - } + let nRangePos = 0; - if (nRangePos !== 0) - charsCount += nRangePos; - } + if (false == isFirstRun) + nPosCount++; + if (isFirstRun) + isFirstRun = false; - if (typeof(Start) == "number" && typeof(End) == "number" && Start > End) - { - var temp = Start; - Start = End; - End = temp; - } - - if (Start === undefined) - this.Start = 0; - else if (typeof(Start) === "number") - this.Start = Start - else if (Array.isArray(Start) === true) - this.StartPos = Start; + let nCurPos = oRun.Content.length; + + for (let nPos = 0; nPos < nCurPos; ++nPos) + nRangePos++; - if (End === undefined) - { - this.End = 0; - var charsCount = 0; + if (nRangePos !== 0) + nPosCount += nRangePos; + } - this.Element.CheckRunContent(calcSumChars); + if (typeof(nStartPos) == "number" && typeof(nEndPos) == "number" && nStartPos > nEndPos) + { + let temp = nStartPos; + nStartPos = nEndPos; + nEndPos = temp; + return; + } - this.End = charsCount; + if (nStartPos === undefined) + nStartPos = 0; + + if (nEndPos === undefined) + { + oElement.CheckRunContent(calcSumPos); + nEndPos = nPosCount; + } } - else if (typeof(End) === "number") - this.End = End; - else if (Array.isArray(End) === true) - this.EndPos = End; - }; - ApiRange.prototype.private_CalcDocPos = function() - { - if (this.StartPos || this.EndPos) - return; + correctPositions(oElement); - var isStartDocPosFinded = false; - var isEndDocPosFinded = false; - var StartChar = this.Start; - var EndChar = this.End; - var StartPos = null; - var EndPos = null; - var charsCount = 0; - var DocPos, DocPosInRun; + let isStartDocPosFinded = false; + let isEndDocPosFinded = false; + let aStartDocPos = null; + let aEndDocPos = null; + let isFirstRun = true; + let offsetPos = 0; + let aDocPos, oDocPosInRun; function callback(oRun) { - var nCurPos = oRun.Content.length; - for (var nPos = 0; nPos < nCurPos; ++nPos) - { - if (para_Text === oRun.Content[nPos].Type || para_Space === oRun.Content[nPos].Type || para_Tab === oRun.Content[nPos].Type || para_NewLine === oRun.Content[nPos].Type || para_End === oRun.Content[nPos].Type) - charsCount++; + let nPosInRun = 0; + if (false == isFirstRun) { + offsetPos++; + } + if (isFirstRun) { + isFirstRun = false; + } + + checkDone(nPosInRun); - if (StartChar - (charsCount - 1) === 0 && !isStartDocPosFinded) + function checkDone(nPosInRun) { + if (nStartPos === offsetPos && !isStartDocPosFinded) { - DocPosInRun = + oDocPosInRun = { Class : oRun, - Position : nPos, + Position : nPosInRun }; - DocPos = oRun.GetDocumentPositionFromObject(); + aDocPos = oRun.GetDocumentPositionFromObject(); - DocPos.push(DocPosInRun); + aDocPos.push(oDocPosInRun); - StartPos = DocPos; + aStartDocPos = aDocPos; isStartDocPosFinded = true; } - - if (EndChar - charsCount === 0 && !isEndDocPosFinded) + + if (nEndPos === offsetPos && !isEndDocPosFinded) { - DocPosInRun = + oDocPosInRun = { Class : oRun, - Position : nPos + 1, + Position : nPosInRun }; - DocPos = oRun.GetDocumentPositionFromObject(); + aDocPos = oRun.GetDocumentPositionFromObject(); - DocPos.push(DocPosInRun); + aDocPos.push(oDocPosInRun); - EndPos = DocPos; + aEndDocPos = aDocPos; isEndDocPosFinded = true; } } - } - if (this.Element instanceof CDocument || this.Element instanceof CDocumentContent || this.Element instanceof CTable || this.Element instanceof CBlockLevelSdt) - { - var allParagraphs = this.Element.GetAllParagraphs({OnlyMainDocument : true, All : true}); - - for (var paraItem = 0; paraItem < allParagraphs.length; paraItem++) + for (nPosInRun = 0; nPosInRun < oRun.Content.length; ++nPosInRun) { - if (isStartDocPosFinded && isEndDocPosFinded) - break; - else - allParagraphs[paraItem].CheckRunContent(callback); - - this.StartPos = StartPos; - this.EndPos = EndPos; + offsetPos++; + checkDone(nPosInRun + 1); } + + checkDone(nPosInRun); } - else if (this.Element instanceof Paragraph || this.Element instanceof ParaHyperlink || this.Element instanceof CInlineLevelSdt || this.Element instanceof ParaRun) - { - this.Element.CheckRunContent(callback); - - this.StartPos = StartPos; - this.EndPos = EndPos; - } + + oElement.CheckRunContent(callback); + this.StartPos = aStartDocPos; + this.EndPos = aEndDocPos; }; - ApiRange.prototype.private_SetController = function() + ApiRange.prototype.private_CheckController = function() { if (this.StartPos[0].Class.IsHdrFtr()) { @@ -1403,12 +1388,32 @@ } } }; + ApiRange.prototype.private_GetTextPr = function() + { + private_RefreshRangesPosition(); + private_RemoveEmptyRanges(); + + let logicDocument = private_GetLogicDocument(); + let docState = logicDocument.SaveDocumentState(); + + this.Select(false); + if (this.isEmpty || this.isEmpty === undefined) + { + logicDocument.LoadDocumentState(docState); + return; + } + + let textPr = logicDocument.GetCalculatedTextPr(); + logicDocument.LoadDocumentState(docState); + return textPr; + }; /** * Returns a type of the ApiRange class. * @memberof ApiRange * @typeofeditors ["CDE"] * @returns {"range"} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetClassType.js */ ApiRange.prototype.GetClassType = function() { @@ -1417,8 +1422,10 @@ /** * Returns a paragraph from all the paragraphs that are in the range. + * @typeofeditors ["CDE"] * @param {Number} nPos - The paragraph position in the range. * @return {ApiParagraph | null} - returns null if position is invalid. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetParagraph.js */ ApiRange.prototype.GetParagraph = function(nPos) { @@ -1440,6 +1447,7 @@ * @param {String} sText - The text that will be added. * @param {string} [sPosition = "after"] - The position where the text will be added ("before" or "after" the range specified). * @return {boolean} - returns false if range is empty or sText isn't string value. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/AddText.js */ ApiRange.prototype.AddText = function(sText, sPosition) { @@ -1528,6 +1536,7 @@ * @typeofeditors ["CDE"] * @param {String} sName - The bookmark name. * @return {boolean} - returns false if range is empty. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/AddBookmark.js */ ApiRange.prototype.AddBookmark = function(sName) { @@ -1561,6 +1570,7 @@ * @param {string} sLink - The link address. * @param {string} sScreenTipText - The screen tip text. * @return {ApiHyperlink | null} - returns null if range contains more than one paragraph or sLink is invalid. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/AddHyperlink.js */ ApiRange.prototype.AddHyperlink = function(sLink, sScreenTipText) { @@ -1570,7 +1580,7 @@ sScreenTipText = ""; this.GetAllParagraphs(); - if (this.Paragraphs.length > 1) + if (this.Paragraphs.length !== 1) return null; var Document = editor.private_GetLogicDocument(); @@ -1606,6 +1616,7 @@ * @param {string} [oPr.TabSymbol='\t'] - Defines how the tab will be specified in the resulting string (does not apply to numbering) * @typeofeditors ["CDE"] * @returns {String} - returns "" if range is empty. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetText.js */ ApiRange.prototype.GetText = function(oPr) { @@ -1650,79 +1661,50 @@ * @memberof ApiRange * @typeofeditors ["CDE"] * @return {ApiParagraph[]} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetAllParagraphs.js */ ApiRange.prototype.GetAllParagraphs = function() { private_RefreshRangesPosition(); private_RemoveEmptyRanges(); - if (this.isEmpty || this.isEmpty === undefined) - return []; + let oDoc = private_GetLogicDocument(); + let oldSelectionInfo = oDoc.SaveDocumentState(); - var done = false; - - var AllParagraphsListOfElement = []; - var RangeParagraphsList = []; - - var startPara = this.StartPos[this.StartPos.length - 1].Class.GetParagraph(); - var endPara = this.EndPos[this.EndPos.length - 1].Class.GetParagraph(); - - if (startPara instanceof ParaHyperlink) - { - startPara = startPara.Paragraph; - } - - if (endPara instanceof ParaHyperlink) + this.Select(false); + if (this.isEmpty || this.isEmpty === undefined) { - endPara = endPara.Paragraph; + oDoc.LoadDocumentState(oldSelectionInfo); + this.Paragraphs = []; + return null; } - if (startPara.Id === endPara.Id) - { - RangeParagraphsList.push(new ApiParagraph(startPara)); - return RangeParagraphsList; - } + private_TrackRangesPositions(); - if (this.Element instanceof CDocument || this.Element instanceof CTable || this.Element instanceof CBlockLevelSdt) + let SelectedContent = oDoc.GetSelectedElementsInfo({CheckAllSelection : true}); + if (!SelectedContent.CanEditBlockSdts() || !SelectedContent.CanDeleteInlineSdts()) { - AllParagraphsListOfElement = this.Element.GetAllParagraphs({All : true}); - - for (var Index1 = 0; Index1 < AllParagraphsListOfElement.length; Index1++) - { - if (done) - break; - - if (AllParagraphsListOfElement[Index1].Id === startPara.Id) - { - RangeParagraphsList.push(new ApiParagraph(AllParagraphsListOfElement[Index1])); - - for (var Index2 = Index1 + 1; Index2 < AllParagraphsListOfElement.length; Index2++) - { - if (AllParagraphsListOfElement[Index2].Id !== endPara.Id) - { - RangeParagraphsList.push(new ApiParagraph(AllParagraphsListOfElement[Index2])); - } - else - { - RangeParagraphsList.push(new ApiParagraph(endPara)); + oDoc.LoadDocumentState(oldSelectionInfo); + oDoc.UpdateSelection(); - done = true; - break; - } - } - } - } + return null; } - this.Paragraphs = RangeParagraphsList; + this.Paragraphs = oDoc.GetSelectedParagraphs().map(function(para) { + return new ApiParagraph(para); + }); + + oDoc.LoadDocumentState(oldSelectionInfo); + oDoc.UpdateSelection(); - return RangeParagraphsList; + return this.Paragraphs; }; /** * Sets the selection to the specified range. * @memberof ApiRange * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Select.js */ ApiRange.prototype.Select = function(bUpdate) { @@ -1766,11 +1748,12 @@ }; /** - * Returns a new range that goes beyond the specified range in any direction and spans a different range. The current range has not changed. Throws an error if two ranges do not have a union. + * Returns a new range that goes beyond the specified range in any direction and spans a different range. The current range has not changed. * @memberof ApiRange * @typeofeditors ["CDE"] * @param {ApiRange} oRange - The range that will be expanded. * @return {ApiRange | null} - returns null if the specified range can't be expanded. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/ExpandTo.js */ ApiRange.prototype.ExpandTo = function(oRange) { @@ -1780,52 +1763,20 @@ if (!(oRange instanceof ApiRange) || this.isEmpty || this.isEmpty === undefined || oRange.isEmpty || oRange.isEmpty === undefined) return null; - var firstStartPos = this.StartPos; - var firstEndPos = this.EndPos; - var secondStartPos = oRange.StartPos; - var secondEndPos = oRange.EndPos; - - if (this.Controller !== oRange.Controller) + if (this.StartPos[0].Class !== oRange.StartPos[0].Class) { return null; - - function check_pos(firstPos, secondPos) - { - for (var nPos = 0, nLen = Math.min(firstPos.length, secondPos.length); nPos < nLen; ++nPos) - { - if (!secondPos[nPos] || !firstPos[nPos] || firstPos[nPos].Class !== secondPos[nPos].Class) - return 1; - - if (firstPos[nPos].Position < secondPos[nPos].Position) - return 1; - else if (firstPos[nPos].Position > secondPos[nPos].Position) - return -1; - } - - return 1; } - - var newRangeStartPos; - var newRangeEndPos; - if (check_pos(firstStartPos, secondStartPos) === 1) - newRangeStartPos = firstStartPos; - else - newRangeStartPos = secondStartPos; - - if (check_pos(firstEndPos, secondEndPos) === 1) - newRangeEndPos = secondEndPos; - else - newRangeEndPos = firstEndPos; - - return new ApiRange(newRangeStartPos[0].Class, newRangeStartPos, newRangeEndPos); + return new ApiRange(this.StartPos[0].Class, Math.min(this.GetStartPos(), oRange.GetStartPos()), Math.max(this.GetEndPos(), oRange.GetEndPos())); }; /** - * Returns a new range as the intersection of the current range with another range. The current range has not changed. Throws an error if two ranges do not overlap or are not adjacent. + * Returns a new range as the intersection of the current range with another range. The current range has not changed. * @memberof ApiRange * @typeofeditors ["CDE"] * @param {ApiRange} oRange - The range that will be intersected with the current range. * @return {ApiRange | null} - returns null if can't intersect. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/IntersectWith.js */ ApiRange.prototype.IntersectWith = function(oRange) { @@ -1835,69 +1786,118 @@ if (!(oRange instanceof ApiRange) || this.isEmpty || this.isEmpty === undefined || oRange.isEmpty || oRange.isEmpty === undefined) return null; - var firstStartPos = this.StartPos; - var firstEndPos = this.EndPos; - var secondStartPos = oRange.StartPos; - var secondEndPos = oRange.EndPos; - - if (this.Controller !== oRange.Controller) + if (this.StartPos[0].Class !== oRange.StartPos[0].Class) return null; - function check_direction(firstPos, secondPos) + let oDocument = private_GetLogicDocument(); + let oldSelectionInfo = oDocument.SaveDocumentState(); + private_TrackRangesPositions(); + + function findFirstTable(aDocPos) { - for (var nPos = 0, nLen = Math.min(firstPos.length, secondPos.length); nPos < nLen; ++nPos) + for (let i = aDocPos.length - 1; i >= 1; i--) { - if (!secondPos[nPos] || !firstPos[nPos] || firstPos[nPos].Class !== secondPos[nPos].Class) - return 1; - - if (firstPos[nPos].Position < secondPos[nPos].Position) - return 1; - else if (firstPos[nPos].Position > secondPos[nPos].Position) - return -1; + if (aDocPos[i].Class instanceof CTable) + { + return aDocPos[i].Class; + } } - - return 1; } - - var newRangeStartPos = null; - var newRangeEndPos = null; - - // Взаимное расположение диапазонов относительно друг друга. A и B - начало и конец первого диапазона, C и D - начало и конец второго диапазона. - var AC = check_direction(firstStartPos, secondStartPos); - var AD = check_direction(firstStartPos, secondEndPos); - var BC = check_direction(firstEndPos, secondStartPos); - var BD = check_direction(firstEndPos, secondEndPos); - if (AC === AD && AC === BC && AC === BD) - return null; - else if (AC === BD && AD !== BC) - { - if (AC === 1) + function findFirstPara(aDocPos) { + for (let i = aDocPos.length - 1; i >= 1; i--) { - newRangeStartPos = secondStartPos; - newRangeEndPos = firstEndPos; + if (aDocPos[i].Class instanceof Paragraph) + { + return aDocPos[i].Class; + } } - else if (AC === - 1) + } + + function findCommonCells(array1, array2) + { + const commonElements = []; + + for (let i = 0; i < array1.length; i++) { - newRangeStartPos = firstStartPos; - newRangeEndPos = secondEndPos; + for (let j = 0; j < array2.length; j++) + { + if (array1[i].Row === array2[j].Row && array1[i].Cell === array2[j].Cell) + { + commonElements.push(array1[i]); + break; + } + } } + + return commonElements; + } + + function restoreDocState() { + oDocument.LoadDocumentState(oldSelectionInfo); + oDocument.UpdateSelection(); } - else if (AC !== BD && AD !== BC) + + let oThisStartParentTable = findFirstTable(this.StartPos); + let oThisEndParentTable = findFirstTable(this.EndPos); + let oRangeStartParentTable = findFirstTable(oRange.StartPos); + let oRangeEndParentTable = findFirstTable(oRange.EndPos); + + let nIntersectStartPos, nIntersectEndPos; + + // if start and end pos of ranges in table + if (oThisStartParentTable === oRangeStartParentTable && oThisEndParentTable === oRangeEndParentTable) { - if (AC === 1) - { - newRangeStartPos = secondStartPos; - newRangeEndPos = secondEndPos; + const aStartEndParas = [ + findFirstPara(this.StartPos), + findFirstPara(oRange.StartPos), + findFirstPara(this.EndPos), + findFirstPara(oRange.EndPos) + ]; + + // should be different paragraphs + if (new Set(aStartEndParas).size !== 1) { + this.Select(false); + let aThisSelectedCells = oThisStartParentTable.GetSelectionArray(); + + oRange.Select(false); + let aRangeSelectedCells = oRangeStartParentTable.GetSelectionArray(); + + let aCommon = findCommonCells(aThisSelectedCells, aRangeSelectedCells); + if (aCommon.length == 0) + { + restoreDocState(); + return null; + } + + let oApiTable = new ApiTable(oThisStartParentTable); + let oApiCellStart = oApiTable.GetCell(aCommon[0].Row, aCommon[0].Cell); + let oApiCellEnd = oApiTable.GetCell(aCommon[aCommon.length - 1].Row, aCommon[aCommon.length - 1].Cell); + + nIntersectStartPos = oApiCellStart.GetContent().GetRange().GetStartPos(); + nIntersectEndPos = oApiCellEnd.GetContent().GetRange().GetEndPos(); } - else if (AC === - 1) + } + + if (undefined === nIntersectStartPos && undefined === nIntersectEndPos) + { + nIntersectStartPos = Math.max(this.GetStartPos(), oRange.GetStartPos()); + nIntersectEndPos = Math.min(this.GetEndPos(), oRange.GetEndPos()); + + if (nIntersectStartPos >= nIntersectEndPos) { - newRangeStartPos = firstStartPos; - newRangeEndPos = firstEndPos; + restoreDocState(); + return null; } } + else if (undefined !== nIntersectStartPos && undefined === nIntersectEndPos) + nIntersectEndPos = Math.min(this.GetEndPos(), oRange.GetEndPos()); + else if (undefined !== nIntersectEndPos && undefined === nIntersectStartPos) + nIntersectStartPos = Math.max(this.GetStartPos(), oRange.GetStartPos()); - return new ApiRange(newRangeStartPos[0].Class, newRangeStartPos, newRangeEndPos); + restoreDocState(); + + return new ApiRange(this.StartPos[0].Class, nIntersectStartPos, nIntersectEndPos); }; /** @@ -1906,6 +1906,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isBold - Specifies if the Range contents are displayed bold or not. * @returns {ApiRange | null} - returns null if can't apply bold. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetBold.js */ ApiRange.prototype.SetBold = function(isBold) { @@ -1934,9 +1935,7 @@ } var ParaTextPr = new AscCommonWord.ParaTextPr({Bold : isBold}); - this.Controller.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -1950,6 +1949,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isCaps - Specifies if the Range contents are displayed capitalized or not. * @returns {ApiRange | null} - returns null if can't apply caps. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetCaps.js */ ApiRange.prototype.SetCaps = function(isCaps) { @@ -1979,7 +1979,6 @@ var ParaTextPr = new AscCommonWord.ParaTextPr({Caps : isCaps}); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -1996,6 +1995,7 @@ * @param {byte} b - Blue color component value. * @param {boolean} [isAuto=false] - If this parameter is set to "true", then r,g,b parameters will be ignored. * @returns {ApiRange | null} - returns null if can't apply color. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetColor.js */ ApiRange.prototype.SetColor = function(r, g, b, isAuto) { @@ -2051,8 +2051,6 @@ Document.AddToParagraph(ParaTextPr); } - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2065,6 +2063,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isDoubleStrikeout - Specifies if the contents of the current Range are displayed double struck through or not. * @returns {ApiRange | null} - returns null if can't apply double strikeout. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetDoubleStrikeout.js */ ApiRange.prototype.SetDoubleStrikeout = function(isDoubleStrikeout) { @@ -2095,8 +2094,6 @@ var ParaTextPr = new AscCommonWord.ParaTextPr({DStrikeout : isDoubleStrikeout}); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2109,6 +2106,7 @@ * @typeofeditors ["CDE"] * @param {highlightColor} sColor - Available highlight color. * @returns {ApiRange | null} - returns null if can't apply highlight. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetHighlight.js */ ApiRange.prototype.SetHighlight = function(sColor) { @@ -2153,8 +2151,6 @@ Document.AddToParagraph(TextPr); } - this.TextPr.Merge(TextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2170,6 +2166,7 @@ * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. * @returns {ApiRange | null} - returns null if can't apply shadow. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetShd.js */ ApiRange.prototype.SetShd = function(sType, r, g, b) { @@ -2214,6 +2211,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isItalic - Specifies if the contents of the current Range are displayed italicized or not. * @returns {ApiRange | null} - returns null if can't apply italic. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetItalic.js */ ApiRange.prototype.SetItalic = function(isItalic) { @@ -2244,8 +2242,6 @@ var ParaTextPr = new AscCommonWord.ParaTextPr({Italic : isItalic}); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2258,6 +2254,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isStrikeout - Specifies if the contents of the current Range are displayed struck through or not. * @returns {ApiRange | null} - returns null if can't apply strikeout. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetStrikeout.js */ ApiRange.prototype.SetStrikeout = function(isStrikeout) { @@ -2291,8 +2288,6 @@ }); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2306,6 +2301,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isSmallCaps - Specifies if the contents of the current Range are displayed capitalized two points smaller or not. * @returns {ApiRange | null} - returns null if can't apply small caps. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetSmallCaps.js */ ApiRange.prototype.SetSmallCaps = function(isSmallCaps) { @@ -2339,8 +2335,6 @@ }); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2353,6 +2347,7 @@ * @typeofeditors ["CDE"] * @param {twips} nSpacing - The value of the text spacing measured in twentieths of a point (1/1440 of an inch). * @returns {ApiRange | null} - returns null if can't apply spacing. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetSpacing.js */ ApiRange.prototype.SetSpacing = function(nSpacing) { @@ -2383,8 +2378,6 @@ var ParaTextPr = new AscCommonWord.ParaTextPr({Spacing : nSpacing}); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2398,6 +2391,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isUnderline - Specifies if the contents of the current Range are displayed underlined or not. * @returns {ApiRange | null} - returns null if can't apply underline. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetUnderline.js */ ApiRange.prototype.SetUnderline = function(isUnderline) { @@ -2428,7 +2422,6 @@ var ParaTextPr = new AscCommonWord.ParaTextPr({Underline : isUnderline}); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2438,13 +2431,14 @@ /** * Specifies the alignment which will be applied to the Range contents in relation to the default appearance of the Range text: - * * "baseline" - the characters in the current text Range will be aligned by the default text baseline. - * * "subscript" - the characters in the current text Range will be aligned below the default text baseline. - * * "superscript" - the characters in the current text Range will be aligned above the default text baseline. + * "baseline" - the characters in the current text Range will be aligned by the default text baseline. + * "subscript" - the characters in the current text Range will be aligned below the default text baseline. + * "superscript" - the characters in the current text Range will be aligned above the default text baseline. * @memberof ApiRange * @typeofeditors ["CDE"] * @param {("baseline" | "subscript" | "superscript")} sType - The vertical alignment type applied to the text contents. * @returns {ApiRange | null} - returns null if can't apply align. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetVertAlign.js */ ApiRange.prototype.SetVertAlign = function(sType) { @@ -2486,8 +2480,6 @@ var ParaTextPr = new AscCommonWord.ParaTextPr({VertAlign : value}); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2502,6 +2494,7 @@ * @param {hps} nPosition - Specifies a positive (raised text) or negative (lowered text) * measurement in half-points (1/144 of an inch). * @returns {ApiRange | null} - returns null if can't set position. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetPosition.js */ ApiRange.prototype.SetPosition = function(nPosition) { @@ -2535,8 +2528,6 @@ var ParaTextPr = new AscCommonWord.ParaTextPr({Position : nPosition}); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2549,6 +2540,7 @@ * @typeofeditors ["CDE"] * @param {hps} FontSize - The text size value measured in half-points (1/144 of an inch). * @returns {ApiRange | null} - returns null if can't set font size. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetFontSize.js */ ApiRange.prototype.SetFontSize = function(FontSize) { @@ -2579,8 +2571,6 @@ var ParaTextPr = new AscCommonWord.ParaTextPr({FontSize : FontSize}); Document.AddToParagraph(ParaTextPr); - this.TextPr.Merge(ParaTextPr.Value); - Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); @@ -2593,6 +2583,7 @@ * @typeofeditors ["CDE"] * @param {string} sFontFamily - The font family or families used for the current text Range. * @returns {ApiRange | null} - returns null if can't set font family. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetFontFamily.js */ ApiRange.prototype.SetFontFamily = function(sFontFamily) { @@ -2601,53 +2592,40 @@ if (typeof sFontFamily !== "string") return null; - - var oThis = this; - var loader = AscCommon.g_font_loader; - var fontinfo = g_fontApplication.GetFontInfo(sFontFamily); - var isasync = loader.LoadFont(fontinfo, setFontFamily); + + LoadFont(sFontFamily); + var Document = private_GetLogicDocument(); - var oldSelectionInfo = undefined; + let oldSelectionInfo = Document.SaveDocumentState(); - if (isasync === false) - setFontFamily() - - function setFontFamily() + this.Select(false); + if (this.isEmpty || this.isEmpty === undefined) { - oldSelectionInfo = Document.SaveDocumentState(); - - oThis.Select(false); - if (oThis.isEmpty || oThis.isEmpty === undefined) - { - Document.LoadDocumentState(oldSelectionInfo); - return null; - } - - private_TrackRangesPositions(); + Document.LoadDocumentState(oldSelectionInfo); + return null; + } - var FontFamily = { - Name : sFontFamily, - Index : -1 - }; + private_TrackRangesPositions(); - var SelectedContent = Document.GetSelectedElementsInfo({CheckAllSelection : true}); - if (!SelectedContent.CanEditBlockSdts() || !SelectedContent.CanDeleteInlineSdts()) - { - Document.LoadDocumentState(oldSelectionInfo); - Document.UpdateSelection(); - - return null; - } - - var ParaTextPr = new AscCommonWord.ParaTextPr({FontFamily : FontFamily}); - Document.AddToParagraph(ParaTextPr); - - oThis.TextPr.Merge(ParaTextPr.Value); + var FontFamily = { + Name : sFontFamily, + Index : -1 + }; + var SelectedContent = Document.GetSelectedElementsInfo({CheckAllSelection : true}); + if (!SelectedContent.CanEditBlockSdts() || !SelectedContent.CanDeleteInlineSdts()) + { Document.LoadDocumentState(oldSelectionInfo); Document.UpdateSelection(); + + return null; } + var ParaTextPr = new AscCommonWord.ParaTextPr({FontFamily : FontFamily}); + Document.AddToParagraph(ParaTextPr); + + Document.LoadDocumentState(oldSelectionInfo); + Document.UpdateSelection(); return this; }; @@ -2657,6 +2635,7 @@ * @typeofeditors ["CDE"] * @param {ApiStyle} oStyle - The style which must be applied to the text character. * @returns {ApiRange | null} - returns null if can't set style. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetStyle.js */ ApiRange.prototype.SetStyle = function(oStyle) { @@ -2698,6 +2677,7 @@ * @typeofeditors ["CDE"] * @param {ApiTextPr} oTextPr - The text properties that will be applied to the current range. * @returns {ApiRange | null} - returns null if can't set text properties. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetTextPr.js */ ApiRange.prototype.SetTextPr = function(oTextPr) { @@ -2735,11 +2715,26 @@ return this; }; + /** + * Returns the merged text properties of the entire range. + * @memberof ApiRange + * @typeofeditors ["CDE"] + * @return {ApiTextPr} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetTextPr.js + */ + ApiRange.prototype.GetTextPr = function() + { + let oTextPr = this.private_GetTextPr(); + return new ApiRangeTextPr(this, oTextPr); + }; + /** * Deletes all the contents from the current range. * @memberof ApiRange * @typeofeditors ["CDE"] * @returns {boolean} - returns false if range is empty. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/Delete.js */ ApiRange.prototype.Delete = function() { @@ -2774,6 +2769,7 @@ * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/ToJSON.js */ ApiRange.prototype.ToJSON = function(bWriteNumberings, bWriteStyles) { @@ -2830,6 +2826,7 @@ * @param {string} sAuthor - The author's name (optional). * @param {string} sUserId - The user ID of the comment author (optional). * @returns {?ApiComment} - Returns null if the comment was not added. + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/AddComment.js */ ApiRange.prototype.AddComment = function(sText, sAuthor, sUserId) { @@ -2840,17 +2837,38 @@ if (typeof(sAuthor) !== "string") sAuthor = ""; + private_RefreshRangesPosition(); + private_RemoveEmptyRanges(); + let CommentData = private_CreateCommentData({ text: sText, author: sAuthor, userId: sUserId }); - var documentState = oDocument.SaveDocumentState(); - this.Select(); + let oldDocumentState = oDocument.SaveDocumentState(); + + this.Select(false); + if (this.isEmpty || this.isEmpty === undefined) + { + oDocument.LoadDocumentState(oldDocumentState); + return null; + } + + private_TrackRangesPositions(); + + let SelectedContent = oDocument.GetSelectedElementsInfo({CheckAllSelection : true}); + if (!SelectedContent.CanEditBlockSdts() || !SelectedContent.CanDeleteInlineSdts()) + { + oDocument.LoadDocumentState(oldDocumentState); + oDocument.UpdateSelection(); + + return null; + } let comment = AddCommentToDocument(oDocument, CommentData); - oDocument.LoadDocumentState(documentState); + + oDocument.LoadDocumentState(oldDocumentState); oDocument.UpdateSelection(); return comment; }; @@ -2858,145 +2876,215 @@ /** * Returns a Range object that represents the document part contained in the specified range. * @typeofeditors ["CDE"] - * @param {Number} [Start=0] - Start character index in the current range. - * @param {Number} [End=-1] - End character index in the current range (if <= 0, then the range is taken to the end). + * @param {Number} [Start=0] - Start position index in the current range. + * @param {Number} [End=-1] - End position index in the current range (if <= 0, then the range is taken to the end). * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetRange.js + */ ApiRange.prototype.GetRange = function(nStart, nEnd) { if (typeof(nStart) != "number" || nStart < 0) nStart = 0; - if (typeof(nEnd) != "number" || nEnd < 0) + if (typeof(nEnd) != "number") nEnd = -1; if (nEnd > 0 && nStart > nEnd) - [nStart, nEnd] = [nEnd, nStart]; + { + const temp = nStart; + nStart = nEnd; + nEnd = temp; + } - let curStartPos = this.StartPos; - let curEndPos = this.EndPos; + let nNewStartPos = this.GetStartPos() + nStart; + let nNewEndPos = nEnd < 0 ? this.GetEndPos() : nNewStartPos + (nEnd - nStart); - let newStartPos = null; - let newEndPos = nEnd == -1 ? curEndPos : nEnd; + let oRange = new ApiRange(this.StartPos[0].Class, nNewStartPos, nNewEndPos); + if (oRange.isEmpty) + return null; + + return oRange; + }; + + /** + * Returns the start page number of the current range. + * @memberof ApiRange + * @typeofeditors ["CDE"] + * @return {Number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetStartPage.js + */ + ApiRange.prototype.GetStartPage = function() + { + let oDoc = private_GetLogicDocument(); + let oPosXY = oDoc.private_GetXYByDocumentPosition(this.StartPos); + + return oPosXY.Page; + }; - let isStartDocPosFinded = false; - let isEndDocPosFinded = nEnd == -1 ? true : false; + /** + * Returns the end page number of the current range. + * @memberof ApiRange + * @typeofeditors ["CDE"] + * @return {Number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetEndPage.js + */ + ApiRange.prototype.GetEndPage = function() + { + let oDoc = private_GetLogicDocument(); + let oPosXY = oDoc.private_GetXYByDocumentPosition(this.EndPos); - let nCharsNewRange = nEnd === -1 ? -1 : nEnd - nStart + 1; // кол-во символов в новом Range - let tempCharsCount = 0; // все символы по которым прошлись + return oPosXY.Page; + }; - let isSearchBegin = false; // нашли стартовый ран - let isStartRun = false; // начинаем считать символы со Start позиции текущего Range (только в стартовом Run). + /** + * Sets the start position of the current range object. + * @memberof ApiRange + * @param {Number} nPos - Start position. + * @typeofeditors ["CDE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetStartPos.js + */ + ApiRange.prototype.SetStartPos = function(nPos) + { + let nEndPos = this.GetEndPos(); + this.private_UpdateDocPos(nPos, nEndPos, this.StartPos[0].Class); + return true; + }; - let isOutOfRange = false; + /** + * Sets the end position of the current range object. + * @memberof ApiRange + * @param {Number} nPos - End position. + * @typeofeditors ["CDE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/SetEndPos.js + */ + ApiRange.prototype.SetEndPos = function(nPos) + { + let nStartPos = this.GetStartPos(); + this.private_UpdateDocPos(nStartPos, nPos, this.EndPos[0].Class); + return true; + }; - function checkRelateDocPos(firstPos, secondPos) - { - for (var nPos = 0, nLen = Math.min(firstPos.length, secondPos.length); nPos < nLen; ++nPos) - { - if (!secondPos[nPos] || !firstPos[nPos] || firstPos[nPos].Class !== secondPos[nPos].Class) - return -1; + /** + * Returns the start position of the current range. + * @memberof ApiRange + * @typeofeditors ["CDE"] + * @returns {number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetStartPos.js + */ + ApiRange.prototype.GetStartPos = function() { + private_RefreshRangesPosition(); + private_RemoveEmptyRanges(); - if (firstPos[nPos].Position < secondPos[nPos].Position) - return -1; - else if (firstPos[nPos].Position > secondPos[nPos].Position) - return 1; - } + let isFirstRun = true; + let oRunStart = this.StartPos[this.StartPos.length - 1].Class; + let oRunStartPos = this.StartPos[this.StartPos.length - 1].Position; - return 0; - } + let isStartPosFounded = false; + let nStartCharPos = 0; - function processRun(oRun) + function calcStartPos(oRun) { - if (isOutOfRange) + if (isStartPosFounded) return; - var nRangePos = 0; + if (false == isFirstRun) { + nStartCharPos++; + } + if (isFirstRun) { + isFirstRun = false; + } - if (isSearchBegin == false && checkRelateDocPos(oRun.GetDocumentPositionFromObject(), curStartPos) === 0) { - isStartRun = true; - isSearchBegin = true; + if (oRun == oRunStart) { + isStartPosFounded = true; } - else if (isSearchBegin == false) - return; - - var nLenght = oRun.Content.length; - var nPos = isStartRun == true ? curStartPos[curStartPos.length - 1].Position : 0; + + let nStartPos = oRun.Content.length; + if (oRun == oRunStart) + nStartPos = oRunStartPos; - for (; nPos < nLenght; ++nPos) - { - if (para_Text === oRun.Content[nPos].Type || para_Space === oRun.Content[nPos].Type || para_Tab === oRun.Content[nPos].Type || para_NewLine === oRun.Content[nPos].Type || para_End === oRun.Content[nPos].Type) - { - nRangePos++; - tempCharsCount++; - } - - if (isStartDocPosFinded == false && nStart === tempCharsCount - 1) - { - let DocPosInRun = - { - Class : oRun, - Position : nPos, - }; - - let DocPos = oRun.GetDocumentPositionFromObject(); - - DocPos.push(DocPosInRun); - - newStartPos = DocPos; + for (let nPos = 0; nPos < nStartPos; ++nPos) + nStartCharPos++; + } - isStartDocPosFinded = true; - tempCharsCount = 1; // теперь считаем кол-во символов от стартового в Range. Конец Range будет через nCharsNewRange символов. - } - - if (isStartDocPosFinded == true && isEndDocPosFinded == false && nCharsNewRange == tempCharsCount) - { - let DocPosInRun = - { - Class : oRun, - Position : nPos + 1, - }; - - let DocPos = oRun.GetDocumentPositionFromObject(); - DocPos.push(DocPosInRun); - - newEndPos = DocPos; - isEndDocPosFinded = true; - } - } + this.StartPos[0].Class.CheckRunContent(calcStartPos); + return nStartCharPos; + }; + + Object.defineProperty(ApiRange.prototype, "Start", { + get: function () { + return this.GetStartPos(); + }, + set: function(nPos) { + return this.SetStartPos(nPos); + } + }); - isStartRun = false; - } + /** + * Returns the end position of the current range. + * @memberof ApiRange + * @typeofeditors ["CDE"] + * @returns {number} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiRange/Methods/GetEndPos.js + */ + ApiRange.prototype.GetEndPos = function() { + private_RefreshRangesPosition(); + private_RemoveEmptyRanges(); - if (this.Element instanceof CDocument || this.Element instanceof CDocumentContent || this.Element instanceof CTable || this.Element instanceof CBlockLevelSdt) + let isFirstRun = true; + let oRunEnd = this.EndPos[this.EndPos.length - 1].Class; + let oRunEndPos = this.EndPos[this.EndPos.length - 1].Position; + + let isEndPosFounded = false; + let nEndCharPos = 0; + + function calcEndPos(oRun) { - var allParagraphs = this.Element.GetAllParagraphs({OnlyMainDocument : true, All : true}); + if (isEndPosFounded) + return; - for (var paraItem = 0; paraItem < allParagraphs.length; paraItem++) - { - if (isOutOfRange) - return null; + if (false == isFirstRun) { + nEndCharPos++; + } + if (isFirstRun) { + isFirstRun = false; + } - if (isStartDocPosFinded && isEndDocPosFinded) - break; - else - allParagraphs[paraItem].CheckRunContent(processRun); + if (oRun == oRunEnd) { + isEndPosFounded = true; } + + let nEndPos = oRun.Content.length; + if (oRun == oRunEnd) + nEndPos = oRunEndPos; + + for (let nPos = 0; nPos < nEndPos; ++nPos) + nEndCharPos++; } - else if (this.Element instanceof Paragraph || this.Element instanceof ParaHyperlink || this.Element instanceof CInlineLevelSdt || this.Element instanceof ParaRun) - { - this.Element.CheckRunContent(processRun); - } - - let oRange = new ApiRange(this.Element, newStartPos, newEndPos); - if (oRange.isEmpty) - return null; - - return oRange; + + this.EndPos[0].Class.CheckRunContent(calcEndPos); + return nEndCharPos; }; + + Object.defineProperty(ApiRange.prototype, "End", { + get: function () { + return this.GetEndPos(); + }, + set: function(nPos) { + return this.SetEndPos(nPos); + } + }); /** * Class representing a document. * @constructor + * @typeofeditors ["CDE"] * @extends {ApiDocumentContent} */ function ApiDocument(Document) @@ -3097,6 +3185,7 @@ /** * Class representing a comment reply. + * @typeofeditors ["CDE"] * @constructor */ function ApiCommentReply(oParentComm, oCommentReply) @@ -3120,6 +3209,7 @@ * @memberof ApiHyperlink * @typeofeditors ["CDE"] * @returns {"hyperlink"} + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/GetClassType.js */ ApiHyperlink.prototype.GetClassType = function() { @@ -3141,6 +3231,7 @@ * @constructor * @typeofeditors ["CDE", "CFE"] * @extends {ApiFormBase} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/constructor.js */ function ApiTextForm(oSdt) { @@ -3155,6 +3246,7 @@ * @constructor * @typeofeditors ["CDE", "CFE"] * @extends {ApiFormBase} + * @see office-js-api/Examples/{Editor}/ApiComboBoxForm/Methods/constructor.js */ function ApiComboBoxForm(oSdt) { @@ -3169,6 +3261,7 @@ * @constructor * @typeofeditors ["CDE", "CFE"] * @extends {ApiFormBase} + * @see office-js-api/Examples/{Editor}/ApiCheckBoxForm/Methods/constructor.js */ function ApiCheckBoxForm(oSdt) { @@ -3183,6 +3276,7 @@ * @constructor * @typeofeditors ["CDE", "CFE"] * @extends {ApiFormBase} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/constructor.js */ function ApiPictureForm(oSdt) { @@ -3197,6 +3291,7 @@ * @constructor * @typeofeditors ["CDE", "CFE"] * @extends {ApiFormBase} + * @see office-js-api/Examples/{Editor}/ApiDateForm/Methods/constructor.js */ function ApiDateForm(oSdt) { @@ -3212,6 +3307,7 @@ * @constructor * @typeofeditors ["CDE", "CFE"] * @extends {ApiFormBase} + * @see office-js-api/Examples/{Editor}/ApiComplexForm/Methods/constructor.js */ function ApiComplexForm(oSdt) { @@ -3225,7 +3321,8 @@ * @typeofeditors ["CDE"] * @param {string} sLink - The hyperlink address. * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/SetLink.js + */ ApiHyperlink.prototype.SetLink = function(sLink) { if (typeof(sLink) !== "string" || sLink.length > Asc.c_nMaxHyperlinkLength) @@ -3250,7 +3347,8 @@ * @typeofeditors ["CDE"] * @param {string} sDisplay - The text to display the hyperlink. * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/SetDisplayedText.js + */ ApiHyperlink.prototype.SetDisplayedText = function(sDisplay) { if (typeof(sDisplay) !== "string") @@ -3286,7 +3384,8 @@ * @typeofeditors ["CDE"] * @param {string} sScreenTipText - The screen tip text of the hyperlink. * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/SetScreenTipText.js + */ ApiHyperlink.prototype.SetScreenTipText = function(sScreenTipText) { if (typeof(sScreenTipText) !== "string") @@ -3300,7 +3399,8 @@ * Returns the hyperlink address. * @typeofeditors ["CDE"] * @returns {string} - * */ + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/GetLinkedText.js + */ ApiHyperlink.prototype.GetLinkedText = function() { var sText = null; @@ -3316,7 +3416,8 @@ * Returns the hyperlink display text. * @typeofeditors ["CDE"] * @returns {string} - * */ + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/GetDisplayedText.js + */ ApiHyperlink.prototype.GetDisplayedText = function() { var oText = {Text : ""}; @@ -3332,7 +3433,8 @@ * Returns the screen tip text of the hyperlink. * @typeofeditors ["CDE"] * @returns {string} - * */ + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/GetScreenTipText.js + */ ApiHyperlink.prototype.GetScreenTipText = function() { var sText = null; @@ -3349,6 +3451,7 @@ * @typeofeditors ["CDE"] * @param {number} nPos - The position where the element which content we want to get must be located. * @returns {?ParagraphContent} + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/GetElement.js */ ApiHyperlink.prototype.GetElement = function(nPos) { @@ -3364,6 +3467,7 @@ * Returns a number of elements in the current hyperlink. * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/GetElementsCount.js */ ApiHyperlink.prototype.GetElementsCount = function() { @@ -3373,7 +3477,8 @@ * Sets the default hyperlink style. * @typeofeditors ["CDE"] * @returns {boolean} - * */ + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/SetDefaultStyle.js + */ ApiHyperlink.prototype.SetDefaultStyle = function() { var HyperRun = null; @@ -3396,10 +3501,11 @@ /** * Returns a Range object that represents the document part contained in the specified hyperlink. * @typeofeditors ["CDE"] - * @param {Number} Start - Start character index in the current element. - * @param {Number} End - End character index in the current element. + * @param {Number} Start - Start position index in the current element. + * @param {Number} End - End position index in the current element. * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/GetRange.js + */ ApiHyperlink.prototype.GetRange = function(Start, End) { return new ApiRange(this.ParaHyperlink, Start, End); @@ -3410,6 +3516,7 @@ * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiHyperlink/Methods/ToJSON.js */ ApiHyperlink.prototype.ToJSON = function(bWriteStyles) { @@ -3538,7 +3645,7 @@ */ function ApiImage(Image) { - ApiDrawing.call(this, Image.parent); + ApiDrawing.call(this, Image); this.Image = Image } ApiImage.prototype = Object.create(ApiDrawing.prototype); @@ -3550,7 +3657,7 @@ */ function ApiOleObject(OleObject) { - ApiDrawing.call(this, OleObject.parent); + ApiDrawing.call(this, OleObject); this.OleObject = OleObject } ApiOleObject.prototype = Object.create(ApiDrawing.prototype); @@ -3559,10 +3666,10 @@ /** * Class representing a shape. * @constructor - * */ + */ function ApiShape(Shape) { - ApiDrawing.call(this, Shape.parent); + ApiDrawing.call(this, Shape); this.Shape = Shape; } ApiShape.prototype = Object.create(ApiDrawing.prototype); @@ -3575,12 +3682,23 @@ */ function ApiChart(Chart) { - ApiDrawing.call(this, Chart.parent); + ApiDrawing.call(this, Chart); this.Chart = Chart; } ApiChart.prototype = Object.create(ApiDrawing.prototype); ApiChart.prototype.constructor = ApiChart; + /** + * Class representing a chart series. + * @constructor + * + */ + function ApiChartSeries(oChartSpace, nIdx) + { + this.ChartSpace = oChartSpace; + this.Idx = nIdx; + } + /** * Class representing a base class for color types. * @constructor @@ -3634,7 +3752,7 @@ /** * Class representing a Preset Color. * @constructor - * */ + */ function ApiPresetColor(sPresetColor) { var oUniColor = new AscFormat.CUniColor(); @@ -3648,7 +3766,7 @@ /** * Class representing a base class for fill. * @constructor - * */ + */ function ApiFill(UniFill) { this.UniFill = UniFill; @@ -3668,7 +3786,7 @@ /** * Class representing gradient stop. * @constructor - * */ + */ function ApiGradientStop(oApiUniColor, pos) { this.Gs = new AscFormat.CGs(); @@ -3729,120 +3847,139 @@ /** * Twentieths of a point (equivalent to 1/1440th of an inch). * @typedef {number} twips + * @see office-js-api/Examples/Enumerations/twips.js */ /** * Any valid element which can be added to the document structure. * @typedef {(ApiParagraph | ApiTable | ApiBlockLvlSdt)} DocumentElement + * @see office-js-api/Examples/Enumerations/DocumentElement.js */ /** * The style type used for the document element. * @typedef {("paragraph" | "table" | "run" | "numbering")} StyleType + * @see office-js-api/Examples/Enumerations/StyleType.js */ /** * 240ths of a line. * @typedef {number} line240 + * @see office-js-api/Examples/Enumerations/line240.js */ /** * Half-points (2 half-points = 1 point). * @typedef {number} hps + * @see office-js-api/Examples/Enumerations/hps.js */ /** * A numeric value from 0 to 255. * @typedef {number} byte + * @see office-js-api/Examples/Enumerations/byte.js */ /** * 60000th of a degree (5400000 = 90 degrees). * @typedef {number} PositiveFixedAngle - * */ + * @see office-js-api/Examples/Enumerations/PositiveFixedAngle.js + */ /** * A border type which will be added to the document element. - * * "none" - no border will be added to the created element or the selected element side. - * * "single" - a single border will be added to the created element or the selected element side. + * "none" - no border will be added to the created element or the selected element side. + * "single" - a single border will be added to the created element or the selected element side. * @typedef {("none" | "single")} BorderType + * @see office-js-api/Examples/Enumerations/BorderType.js */ /** * A shade type which can be added to the document element. * @typedef {("nil" | "clear")} ShdType + * @see office-js-api/Examples/Enumerations/ShdType.js */ /** * Custom tab types. * @typedef {("clear" | "left" | "right" | "center")} TabJc + * @see office-js-api/Examples/Enumerations/TabJc.js */ /** * Eighths of a point (24 eighths of a point = 3 points). * @typedef {number} pt_8 + * @see office-js-api/Examples/Enumerations/pt_8.js */ /** * A point. * @typedef {number} pt + * @see office-js-api/Examples/Enumerations/pt.js */ /** * Header and footer types which can be applied to the document sections. - * * "default" - a header or footer which can be applied to any default page. - * * "title" - a header or footer which is applied to the title page. - * * "even" - a header or footer which can be applied to even pages to distinguish them from the odd ones (which will be considered default). + * "default" - a header or footer which can be applied to any default page. + * "title" - a header or footer which is applied to the title page. + * "even" - a header or footer which can be applied to even pages to distinguish them from the odd ones (which will be considered default). * @typedef {("default" | "title" | "even")} HdrFtrType + * @see office-js-api/Examples/Enumerations/HdrFtrType.js */ /** * The possible values for the units of the width property are defined by a specific table or table cell width property. - * * "auto" - sets the table or table cell width to auto width. - * * "twips" - sets the table or table cell width to be measured in twentieths of a point. - * * "nul" - sets the table or table cell width to be of a zero value. - * * "percent" - sets the table or table cell width to be measured in percent to the parent container. + * "auto" - sets the table or table cell width to auto width. + * "twips" - sets the table or table cell width to be measured in twentieths of a point. + * "nul" - sets the table or table cell width to be of a zero value. + * "percent" - sets the table or table cell width to be measured in percent to the parent container. * @typedef {("auto" | "twips" | "nul" | "percent")} TableWidth + * @see office-js-api/Examples/Enumerations/TableWidth.js */ /** * This simple type specifies possible values for the table sections to which the current conditional formatting properties will be applied when this selected table style is used. - * * "topLeftCell" - specifies that the table formatting is applied to the top left cell. - * * "topRightCell" - specifies that the table formatting is applied to the top right cell. - * * "bottomLeftCell" - specifies that the table formatting is applied to the bottom left cell. - * * "bottomRightCell" - specifies that the table formatting is applied to the bottom right cell. - * * "firstRow" - specifies that the table formatting is applied to the first row. - * * "lastRow" - specifies that the table formatting is applied to the last row. - * * "firstColumn" - specifies that the table formatting is applied to the first column. Any subsequent row which is in *table header* ({@link ApiTableRowPr#SetTableHeader}) will also use this conditional format. - * * "lastColumn" - specifies that the table formatting is applied to the last column. - * * "bandedColumn" - specifies that the table formatting is applied to odd numbered groupings of rows. - * * "bandedColumnEven" - specifies that the table formatting is applied to even numbered groupings of rows. - * * "bandedRow" - specifies that the table formatting is applied to odd numbered groupings of columns. - * * "bandedRowEven" - specifies that the table formatting is applied to even numbered groupings of columns. - * * "wholeTable" - specifies that the conditional formatting is applied to the whole table. + * "topLeftCell" - specifies that the table formatting is applied to the top left cell. + * "topRightCell" - specifies that the table formatting is applied to the top right cell. + * "bottomLeftCell" - specifies that the table formatting is applied to the bottom left cell. + * "bottomRightCell" - specifies that the table formatting is applied to the bottom right cell. + * "firstRow" - specifies that the table formatting is applied to the first row. + * "lastRow" - specifies that the table formatting is applied to the last row. + * "firstColumn" - specifies that the table formatting is applied to the first column. Any subsequent row which is in *table header* ({@link ApiTableRowPr#SetTableHeader}) will also use this conditional format. + * "lastColumn" - specifies that the table formatting is applied to the last column. + * "bandedColumn" - specifies that the table formatting is applied to odd numbered groupings of rows. + * "bandedColumnEven" - specifies that the table formatting is applied to even numbered groupings of rows. + * "bandedRow" - specifies that the table formatting is applied to odd numbered groupings of columns. + * "bandedRowEven" - specifies that the table formatting is applied to even numbered groupings of columns. + * "wholeTable" - specifies that the conditional formatting is applied to the whole table. * @typedef {("topLeftCell" | "topRightCell" | "bottomLeftCell" | "bottomRightCell" | "firstRow" | "lastRow" | * "firstColumn" | "lastColumn" | "bandedColumn" | "bandedColumnEven" | "bandedRow" | "bandedRowEven" | * "wholeTable")} TableStyleOverrideType + * @see office-js-api/Examples/Enumerations/TableStyleOverrideType.js */ /** * The types of elements that can be added to the paragraph structure. * @typedef {(ApiUnsupported | ApiRun | ApiInlineLvlSdt | ApiHyperlink | ApiFormBase)} ParagraphContent + * @see office-js-api/Examples/Enumerations/ParagraphContent.js */ /** * The possible values for the base which the relative horizontal positioning of an object will be calculated from. * @typedef {("character" | "column" | "leftMargin" | "rightMargin" | "margin" | "page")} RelFromH + * @see office-js-api/Examples/Enumerations/RelFromH.js */ /** * The possible values for the base which the relative vertical positioning of an object will be calculated from. * @typedef {("bottomMargin" | "topMargin" | "margin" | "page" | "line" | "paragraph")} RelFromV + * @see office-js-api/Examples/Enumerations/RelFromV.js */ /** * English measure unit. 1 mm = 36000 EMUs, 1 inch = 914400 EMUs. * @typedef {number} EMU + * @see office-js-api/Examples/Enumerations/EMU.js */ /** @@ -3858,6 +3995,7 @@ * "cloudCallout" | "corner" | "cornerTabs" | "cube" | "curvedConnector2" | "curvedConnector3" | * "curvedConnector4" | "curvedConnector5" | "curvedDownArrow" | "curvedLeftArrow" | "curvedRightArrow" | * "curvedUpArrow" | "decagon" | "diagStripe" | "diamond" | "dodecagon" | "donut" | "doubleWave" | "downArrow" | "downArrowCallout" | "ellipse" | "ellipseRibbon" | "ellipseRibbon2" | "flowChartAlternateProcess" | "flowChartCollate" | "flowChartConnector" | "flowChartDecision" | "flowChartDelay" | "flowChartDisplay" | "flowChartDocument" | "flowChartExtract" | "flowChartInputOutput" | "flowChartInternalStorage" | "flowChartMagneticDisk" | "flowChartMagneticDrum" | "flowChartMagneticTape" | "flowChartManualInput" | "flowChartManualOperation" | "flowChartMerge" | "flowChartMultidocument" | "flowChartOfflineStorage" | "flowChartOffpageConnector" | "flowChartOnlineStorage" | "flowChartOr" | "flowChartPredefinedProcess" | "flowChartPreparation" | "flowChartProcess" | "flowChartPunchedCard" | "flowChartPunchedTape" | "flowChartSort" | "flowChartSummingJunction" | "flowChartTerminator" | "foldedCorner" | "frame" | "funnel" | "gear6" | "gear9" | "halfFrame" | "heart" | "heptagon" | "hexagon" | "homePlate" | "horizontalScroll" | "irregularSeal1" | "irregularSeal2" | "leftArrow" | "leftArrowCallout" | "leftBrace" | "leftBracket" | "leftCircularArrow" | "leftRightArrow" | "leftRightArrowCallout" | "leftRightCircularArrow" | "leftRightRibbon" | "leftRightUpArrow" | "leftUpArrow" | "lightningBolt" | "line" | "lineInv" | "mathDivide" | "mathEqual" | "mathMinus" | "mathMultiply" | "mathNotEqual" | "mathPlus" | "moon" | "nonIsoscelesTrapezoid" | "noSmoking" | "notchedRightArrow" | "octagon" | "parallelogram" | "pentagon" | "pie" | "pieWedge" | "plaque" | "plaqueTabs" | "plus" | "quadArrow" | "quadArrowCallout" | "rect" | "ribbon" | "ribbon2" | "rightArrow" | "rightArrowCallout" | "rightBrace" | "rightBracket" | "round1Rect" | "round2DiagRect" | "round2SameRect" | "roundRect" | "rtTriangle" | "smileyFace" | "snip1Rect" | "snip2DiagRect" | "snip2SameRect" | "snipRoundRect" | "squareTabs" | "star10" | "star12" | "star16" | "star24" | "star32" | "star4" | "star5" | "star6" | "star7" | "star8" | "straightConnector1" | "stripedRightArrow" | "sun" | "swooshArrow" | "teardrop" | "trapezoid" | "triangle" | "upArrowCallout" | "upDownArrow" | "upDownArrow" | "upDownArrowCallout" | "uturnArrow" | "verticalScroll" | "wave" | "wedgeEllipseCallout" | "wedgeRectCallout" | "wedgeRoundRectCallout")} ShapeType + * @see office-js-api/Examples/Enumerations/ShapeType.js */ /** @@ -3866,19 +4004,31 @@ * "barStackedPercent3DPerspective" | "horizontalBar" | "horizontalBarStacked" | "horizontalBarStackedPercent" * | "horizontalBar3D" | "horizontalBarStacked3D" | "horizontalBarStackedPercent3D" | "lineNormal" | * "lineStacked" | "lineStackedPercent" | "line3D" | "pie" | "pie3D" | "doughnut" | "scatter" | "stock" | - * "area" | "areaStacked" | "areaStackedPercent")} ChartType + * "area" | "areaStacked" | "areaStackedPercent" | "comboBarLine" | "comboBarLineSecondary" | "comboCustom" | "unknown")} ChartType + * @see office-js-api/Examples/Enumerations/ChartType.js + */ + + /** + * This type specifies the type of drawing lock. + * @typedef {("noGrp" | "noUngrp" | "noSelect" | "noRot" | "noChangeAspect" | "noMove" | "noResize" | "noEditPoints" | "noAdjustHandles" + * | "noChangeArrowheads" | "noChangeShapeType" | "noDrilldown" | "noTextEdit" | "noCrop" | "txBox")} DrawingLockType + * @see office-js-api/Examples/Enumerations/DrawingLockType.js */ + + /** * The available text vertical alignment (used to align text in a shape with a placement for text inside it). * @typedef {("top" | "center" | "bottom")} VerticalTextAlign - * */ + * @see office-js-api/Examples/Enumerations/VerticalTextAlign.js + */ /** * The available color scheme identifiers. * @typedef {("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "bg1" | "bg2" | "dk1" | "dk2" * | "lt1" | "lt2" | "tx1" | "tx2")} SchemeColorId - * */ + * @see office-js-api/Examples/Enumerations/SchemeColorId.js + */ /** * The available preset color names. @@ -3893,24 +4043,27 @@ * "dkSlateGray" | "dkSlateGrey" | "dkTurquoise" | "dkViolet" | "dodgerBlue" | "firebrick" | "floralWhite" | * "forestGreen" | "fuchsia" | "gainsboro" | "ghostWhite" | "gold" | "goldenrod" | "gray" | "green" | * "greenYellow" | "grey" | "honeydew" | "hotPink" | "indianRed" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderBlush" | "lawnGreen" | "lemonChiffon" | "lightBlue" | "lightCoral" | "lightCyan" | "lightGoldenrodYellow" | "lightGray" | "lightGreen" | "lightGrey" | "lightPink" | "lightSalmon" | "lightSeaGreen" | "lightSkyBlue" | "lightSlateGray" | "lightSlateGrey" | "lightSteelBlue" | "lightYellow" | "lime" | "limeGreen" | "linen" | "ltBlue" | "ltCoral" | "ltCyan" | "ltGoldenrodYellow" | "ltGray" | "ltGreen" | "ltGrey" | "ltPink" | "ltSalmon" | "ltSeaGreen" | "ltSkyBlue" | "ltSlateGray" | "ltSlateGrey" | "ltSteelBlue" | "ltYellow" | "magenta" | "maroon" | "medAquamarine" | "medBlue" | "mediumAquamarine" | "mediumBlue" | "mediumOrchid" | "mediumPurple" | "mediumSeaGreen" | "mediumSlateBlue" | "mediumSpringGreen" | "mediumTurquoise" | "mediumVioletRed" | "medOrchid" | "medPurple" | "medSeaGreen" | "medSlateBlue" | "medSpringGreen" | "medTurquoise" | "medVioletRed" | "midnightBlue" | "mintCream" | "mistyRose" | "moccasin" | "navajoWhite" | "navy" | "oldLace" | "olive" | "oliveDrab" | "orange" | "orangeRed" | "orchid" | "paleGoldenrod" | "paleGreen" | "paleTurquoise" | "paleVioletRed" | "papayaWhip" | "peachPuff" | "peru" | "pink" | "plum" | "powderBlue" | "purple" | "red" | "rosyBrown" | "royalBlue" | "saddleBrown" | "salmon" | "sandyBrown" | "seaGreen" | "seaShell" | "sienna" | "silver" | "skyBlue" | "slateBlue" | "slateGray" | "slateGrey" | "snow" | "springGreen" | "steelBlue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whiteSmoke" | "yellow" | "yellowGreen")} PresetColor - * */ + * @see office-js-api/Examples/Enumerations/PresetColor.js + */ /** * Possible values for the position of chart tick labels (either horizontal or vertical). - * * "none" - not display the selected tick labels. - * * "nextTo" - sets the position of the selected tick labels next to the main label. - * * "low" - sets the position of the selected tick labels in the part of the chart with lower values. - * * "high" - sets the position of the selected tick labels in the part of the chart with higher values. + * "none" - not display the selected tick labels. + * "nextTo" - sets the position of the selected tick labels next to the main label. + * "low" - sets the position of the selected tick labels in the part of the chart with lower values. + * "high" - sets the position of the selected tick labels in the part of the chart with higher values. * @typedef {("none" | "nextTo" | "low" | "high")} TickLabelPosition - * **/ + * @see office-js-api/Examples/Enumerations/TickLabelPosition.js + */ /** * The type of a fill which uses an image as a background. - * * "tile" - if the image is smaller than the shape which is filled, the image will be tiled all over the created shape surface. - * * "stretch" - if the image is smaller than the shape which is filled, the image will be stretched to fit the created shape surface. + * "tile" - if the image is smaller than the shape which is filled, the image will be tiled all over the created shape surface. + * "stretch" - if the image is smaller than the shape which is filled, the image will be stretched to fit the created shape surface. * @typedef {"tile" | "stretch"} BlipFillType - * */ + * @see office-js-api/Examples/Enumerations/BlipFillType.js + */ /** * The available preset patterns which can be used for the fill. @@ -3921,12 +4074,14 @@ * "pct75" | "pct80" | "pct90" | "plaid" | "shingle" | "smCheck" | "smConfetti" | "smGrid" | "solidDmnd" | * "sphere" | "trellis" | "upDiag" | "vert" | "wave" | "wdDnDiag" | "wdUpDiag" | "weave" | "zigZag"} * PatternType - * */ + * @see office-js-api/Examples/Enumerations/PatternType.js + */ /** * * The lock type of the content control. * @typedef {"unlocked" | "contentLocked" | "sdtContentLocked" | "sdtLocked"} SdtLock + * @see office-js-api/Examples/Enumerations/SdtLock.js */ /** @@ -3937,33 +4092,39 @@ * | "textDoubleWave1" | "textFadeDown" | "textFadeLeft" | "textFadeRight" | "textFadeUp" | "textInflate" | "textInflateBottom" | "textInflateTop" * | "textPlain" | "textRingInside" | "textRingOutside" | "textSlantDown" | "textSlantUp" | "textStop" | "textTriangle" | "textTriangleInverted" * | "textWave1" | "textWave2" | "textWave4" | "textNoShape")} TextTransform - * */ + * @see office-js-api/Examples/Enumerations/TextTransform.js + */ /** * Form type. * The available form types. * @typedef {"textForm" | "comboBoxForm" | "dropDownForm" | "checkBoxForm" | "radioButtonForm" | "pictureForm"} FormType + * @see office-js-api/Examples/Enumerations/FormType.js */ /** * 1 millimetre equals 1/10th of a centimetre. * @typedef {number} mm + * @see office-js-api/Examples/Enumerations/mm.js */ /** * The condition to scale an image in the picture form. * @typedef {"always" | "never" | "tooBig" | "tooSmall"} ScaleFlag + * @see office-js-api/Examples/Enumerations/ScaleFlag.js */ /** * Value from 0 to 100. * @typedef {number} percentage + * @see office-js-api/Examples/Enumerations/percentage.js */ /** * Available highlight colors. * @typedef {"black" | "blue" | "cyan" | "green" | "magenta" | "red" | "yellow" | "white" | "darkBlue" | * "darkCyan" | "darkGreen" | "darkMagenta" | "darkRed" | "darkYellow" | "darkGray" | "lightGray" | "none"} highlightColor + * @see office-js-api/Examples/Enumerations/highlightColor.js */ //------------------------------------------------------------------------------------------------------------------ @@ -3974,63 +4135,69 @@ /** * Available values of the "numbered" reference type: - * * "pageNum" - the numbered item page number; - * * "paraNum" - the numbered item paragraph number; - * * "noCtxParaNum" - the abbreviated paragraph number (the specific item only, e.g. instead of "4.1.1" you refer to "1" only); - * * "fullCtxParaNum" - the full paragraph number, e.g. "4.1.1"; - * * "text" - the paragraph text value, e.g. if you have "4.1.1. Terms and Conditions", you refer to "Terms and Conditions" only; - * * "aboveBelow" - the words "above" or "below" depending on the item position. + * "pageNum" - the numbered item page number; + * "paraNum" - the numbered item paragraph number; + * "noCtxParaNum" - the abbreviated paragraph number (the specific item only, e.g. instead of "4.1.1" you refer to "1" only); + * "fullCtxParaNum" - the full paragraph number, e.g. "4.1.1"; + * "text" - the paragraph text value, e.g. if you have "4.1.1. Terms and Conditions", you refer to "Terms and Conditions" only; + * "aboveBelow" - the words "above" or "below" depending on the item position. * @typedef {"pageNum" | "paraNum" | "noCtxParaNum" | "fullCtxParaNum" | "text" | "aboveBelow"} numberedRefTo + * @see office-js-api/Examples/Enumerations/numberedRefTo.js */ /** * Available values of the "heading" reference type: - * * "text" - the entire heading text; - * * "pageNum" - the heading page number; - * * "headingNum" - the heading sequence number; - * * "noCtxHeadingNum" - the abbreviated heading number. Make sure the cursor pointer is in the section you are referencing to, e.g. you are in section 4 and you wish to refer to heading 4.B, so instead of "4.B" you receive "B" only; - * * "fullCtxHeadingNum" - the full heading number even if the cursor pointer is in the same section; - * * "aboveBelow" - the words "above" or "below" depending on the item position. + * "text" - the entire heading text; + * "pageNum" - the heading page number; + * "headingNum" - the heading sequence number; + * "noCtxHeadingNum" - the abbreviated heading number. Make sure the cursor pointer is in the section you are referencing to, e.g. you are in section 4 and you wish to refer to heading 4.B, so instead of "4.B" you receive "B" only; + * "fullCtxHeadingNum" - the full heading number even if the cursor pointer is in the same section; + * "aboveBelow" - the words "above" or "below" depending on the item position. * @typedef {"text" | "pageNum" | "headingNum" | "noCtxHeadingNum" | "fullCtxHeadingNum" | "aboveBelow"} headingRefTo + * @see office-js-api/Examples/Enumerations/headingRefTo.js */ /** * Available values of the "bookmark" reference type: - * * "text" - the entire bookmark text; - * * "pageNum" - the bookmark page number; - * * "paraNum" - the bookmark paragraph number; - * * "noCtxParaNum" - the abbreviated paragraph number (the specific item only, e.g. instead of "4.1.1" you refer to "1" only); - * * "fullCtxParaNum - the full paragraph number, e.g. "4.1.1"; - * * "aboveBelow" - the words "above" or "below" depending on the item position. + * "text" - the entire bookmark text; + * "pageNum" - the bookmark page number; + * "paraNum" - the bookmark paragraph number; + * "noCtxParaNum" - the abbreviated paragraph number (the specific item only, e.g. instead of "4.1.1" you refer to "1" only); + * "fullCtxParaNum - the full paragraph number, e.g. "4.1.1"; + * "aboveBelow" - the words "above" or "below" depending on the item position. * @typedef {"text" | "pageNum" | "paraNum" | "noCtxParaNum" | "fullCtxParaNum" | "aboveBelow"} bookmarkRefTo + * @see office-js-api/Examples/Enumerations/bookmarkRefTo.js */ /** * Available values of the "footnote" reference type: - * * "footnoteNum" - the footnote number; - * * "pageNum" - the page number of the footnote; - * * "aboveBelow" - the words "above" or "below" depending on the position of the item; - * * "formFootnoteNum" - the form number formatted as a footnote. The numbering of the actual footnotes is not affected. + * "footnoteNum" - the footnote number; + * "pageNum" - the page number of the footnote; + * "aboveBelow" - the words "above" or "below" depending on the position of the item; + * "formFootnoteNum" - the form number formatted as a footnote. The numbering of the actual footnotes is not affected. * @typedef {"footnoteNum" | "pageNum" | "aboveBelow" | "formFootnoteNum"} footnoteRefTo + * @see office-js-api/Examples/Enumerations/footnoteRefTo.js */ /** * Available values of the "endnote" reference type: - * * "endnoteNum" - the endnote number; - * * "pageNum" - the endnote page number; - * * "aboveBelow" - the words "above" or "below" depending on the item position; - * * "formEndnoteNum" - the form number formatted as an endnote. The numbering of the actual endnotes is not affected. + * "endnoteNum" - the endnote number; + * "pageNum" - the endnote page number; + * "aboveBelow" - the words "above" or "below" depending on the item position; + * "formEndnoteNum" - the form number formatted as an endnote. The numbering of the actual endnotes is not affected. * @typedef {"endnoteNum" | "pageNum" | "aboveBelow" | "formEndnoteNum"} endnoteRefTo + * @see office-js-api/Examples/Enumerations/endnoteRefTo.js */ /** * Available values of the "equation"/"figure"/"table" reference type: - * * "entireCaption"- the entire caption text; - * * "labelNumber" - the label and object number only, e.g. "Table 1.1"; - * * "captionText" - the caption text only; - * * "pageNum" - the page number containing the referenced object; - * * "aboveBelow" - the words "above" or "below" depending on the item position. + * "entireCaption"- the entire caption text; + * "labelNumber" - the label and object number only, e.g. "Table 1.1"; + * "captionText" - the caption text only; + * "pageNum" - the page number containing the referenced object; + * "aboveBelow" - the words "above" or "below" depending on the item position. * @typedef {"entireCaption" | "labelNumber" | "captionText" | "pageNum" | "aboveBelow"} captionRefTo + * @see office-js-api/Examples/Enumerations/captionRefTo.js */ //------------------------------------------------------End Cross-reference types-------------------------------------------------- @@ -4038,6 +4205,7 @@ /** * Axis position in the chart. * @typedef {("top" | "bottom" | "right" | "left")} AxisPos + * @see office-js-api/Examples/Enumerations/AxisPos.js */ /** @@ -4046,37 +4214,42 @@ * "0.00E+00" | "# ?/?" | "# ??/??" | "m/d/yyyy" | "d-mmm-yy" | "d-mmm" | "mmm-yy" | "h:mm AM/PM" | * "h:mm:ss AM/PM" | "h:mm" | "h:mm:ss" | "m/d/yyyy h:mm" | "#,##0_);(#,##0)" | "#,##0_);[Red](#,##0)" | * "#,##0.00_);(#,##0.00)" | "#,##0.00_);[Red](#,##0.00)" | "mm:ss" | "[h]:mm:ss" | "mm:ss.0" | "##0.0E+0" | "@")} NumFormat + * @see office-js-api/Examples/Enumerations/NumFormat.js */ /** * Types of all supported forms. * @typedef {ApiTextForm | ApiComboBoxForm | ApiCheckBoxForm | ApiPictureForm | ApiDateForm | ApiComplexForm} ApiForm + * @see office-js-api/Examples/Enumerations/ApiForm.js */ /** * Possible values for the caption numbering format. - * * "ALPHABETIC" - upper letter. - * * "alphabetic" - lower letter. - * * "Roman" - upper Roman. - * * "roman" - lower Roman. - * * "Arabic" - arabic. + * "ALPHABETIC" - upper letter. + * "alphabetic" - lower letter. + * "Roman" - upper Roman. + * "roman" - lower Roman. + * "Arabic" - arabic. * @typedef {("ALPHABETIC" | "alphabetic" | "Roman" | "roman" | "Arabic")} CaptionNumberingFormat - * **/ + * @see office-js-api/Examples/Enumerations/CaptionNumberingFormat.js + */ /** * Possible values for the caption separator. - * * "hyphen" - the "-" punctuation mark. - * * "period" - the "." punctuation mark. - * * "colon" - the ":" punctuation mark. - * * "longDash" - the "—" punctuation mark. - * * "dash" - the "-" punctuation mark. + * "hyphen" - the "-" punctuation mark. + * "period" - the "." punctuation mark. + * "colon" - the ":" punctuation mark. + * "longDash" - the "—" punctuation mark. + * "dash" - the "-" punctuation mark. * @typedef {("hyphen" | "period" | "colon" | "longDash" | "dash")} CaptionSep - * **/ + * @see office-js-api/Examples/Enumerations/CaptionSep.js + */ /** * Possible values for the caption label. * @typedef {("Table" | "Equation" | "Figure")} CaptionLabel - * **/ + * @see office-js-api/Examples/Enumerations/CaptionLabel.js + */ /** * Table of contents properties. @@ -4087,6 +4260,7 @@ * @property {boolean} [FormatAsLinks=true] - Specifies whether to format the table of contents as links. * @property {TocBuildFromPr} [BuildFrom={OutlineLvls=9}] - Specifies whether to generate the table of contents from the outline levels or the specified styles. * @property {TocStyle} [TocStyle="standard"] - The table of contents style type. + * @see office-js-api/Examples/Enumerations/TocPr.js */ /** @@ -4099,6 +4273,7 @@ * @property {CaptionLabel | string} [BuildFrom="Figure"] - Specifies whether to generate the table of figures based on the specified caption label or the paragraph style name used (for example, "Heading 1"). * @property {boolean} [LabelNumber=true] - Specifies whether to include the label and number in the table of figures. * @property {TofStyle} [TofStyle="distinctive"] - The table of figures style type. + * @see office-js-api/Examples/Enumerations/TofPr.js */ /** @@ -4107,6 +4282,7 @@ * @property {number} [OutlineLvls=9] - Maximum number of levels in the table of contents. * @property {TocStyleLvl[]} StylesLvls - Style levels (for example, [{Name: "Heading 1", Lvl: 2}, {Name: "Heading 2", Lvl: 3}]). * If StylesLvls.length > 0, then the OutlineLvls property will be ignored. + * @see office-js-api/Examples/Enumerations/TocBuildFromPr.js */ /** @@ -4114,25 +4290,29 @@ * @typedef {Object} TocStyleLvl * @property {string} Name - Style name (for example, "Heading 1"). * @property {number} Lvl - Level which will be applied to the specified style in the table of contents. + * @see office-js-api/Examples/Enumerations/TocStyleLvl.js */ /** * Possible values for the table of contents leader: - * * "dot" - "......." - * * "dash" - "-------" - * * "underline" - "_______" + * "dot" - "......." + * "dash" - "-------" + * "underline" - "_______" * @typedef {("dot" | "dash" | "underline" | "none")} TocLeader - * **/ + * @see office-js-api/Examples/Enumerations/TocLeader.js + */ /** * Possible values for the table of contents style. * @typedef {("simple" | "online" | "standard" | "modern" | "classic")} TocStyle - * **/ + * @see office-js-api/Examples/Enumerations/TocStyle.js + */ /** * Possible values for the table of figures style. * @typedef {("simple" | "online" | "classic" | "distinctive" | "centered" | "formal")} TofStyle - * **/ + * @see office-js-api/Examples/Enumerations/TofStyle.js + */ //------------------------------------------------------------------------------------------------------------------ // @@ -4143,21 +4323,25 @@ /** * The 1000th of a percent (100000 = 100%). * @typedef {number} PositivePercentage - * */ + * @see office-js-api/Examples/Enumerations/PositivePercentage.js + */ /** * The type of tick mark appearance. * @typedef {("cross" | "in" | "none" | "out")} TickMark - * */ + * @see office-js-api/Examples/Enumerations/TickMark.js + */ /** * The watermark type. * @typedef {("none" | "text" | "image")} WatermarkType + * @see office-js-api/Examples/Enumerations/WatermarkType.js */ /** * The watermark direction. * @typedef {("horizontal" | "clockwise45" | "counterclockwise45")} WatermarkDirection + * @see office-js-api/Examples/Enumerations/WatermarkDirection.js */ /** @@ -4165,6 +4349,7 @@ * @memberof Api * @typeofeditors ["CDE"] * @returns {ApiDocument} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetDocument.js */ Api.prototype.GetDocument = function() @@ -4176,6 +4361,7 @@ * @memberof Api * @typeofeditors ["CDE", "CSE"] * @returns {ApiParagraph} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateParagraph.js */ Api.prototype.CreateParagraph = function() { @@ -4190,6 +4376,7 @@ * @param nStart - Start range position. * @param nEnd - End range position. * @returns {ApiRange | null} - returns null if oElement isn't supported. + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateRange.js */ Api.prototype.CreateRange = function(oElement, nStart, nEnd) { @@ -4219,6 +4406,7 @@ * @param {number} nCols - Number of columns. * @param {number} nRows - Number of rows. * @returns {ApiTable} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateTable.js */ Api.prototype.CreateTable = function(nCols, nRows) { @@ -4236,6 +4424,7 @@ * @memberof Api * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateRun.js */ Api.prototype.CreateRun = function() { @@ -4249,6 +4438,7 @@ * @param {string} sDisplay - The text to display the hyperlink. * @param {string} sScreenTipText - The screen tip text. * @returns {ApiHyperlink} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateHyperlink.js */ Api.prototype.CreateHyperlink = function(sLink, sDisplay, sScreenTipText) { @@ -4271,6 +4461,7 @@ * @param {EMU} nWidth - The image width in English measure units. * @param {EMU} nHeight - The image height in English measure units. * @returns {ApiImage} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateImage.js */ Api.prototype.CreateImage = function(sImageSrc, nWidth, nHeight) { @@ -4294,7 +4485,8 @@ * @param {ApiFill} [oFill = Api.CreateNoFill()] - The color or pattern used to fill the shape. * @param {ApiStroke} [oStroke = Api.CreateStroke(0, Api.CreateNoFill())] - The stroke used to create the element shadow. * @returns {ApiShape} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateShape.js + */ Api.prototype.CreateShape = function(sType, nWidth, nHeight, oFill, oStroke) { var oLogicDocument = private_GetLogicDocument(); @@ -4332,7 +4524,8 @@ * @param {NumFormat[] | String[]} aNumFormats - Numeric formats which will be applied to the series (can be custom formats). * The default numeric format is "General". * @returns {ApiChart} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateChart.js + */ Api.prototype.CreateChart = function(sType, aSeries, aSeriesNames, aCatNames, nWidth, nHeight, nStyleIndex, aNumFormats) { var oDrawingDocument = private_GetDrawingDocument(); @@ -4347,7 +4540,7 @@ oChartSpace.setParent(oDrawing); oDrawing.Set_GraphicObject(oChartSpace); oDrawing.setExtent( oChartSpace.spPr.xfrm.extX, oChartSpace.spPr.xfrm.extY ); - return new ApiChart(oChartSpace); + return this.private_CreateApiChart(oChartSpace); }; /** @@ -4360,6 +4553,7 @@ * @param {string} sData - The OLE object string data. * @param {string} sAppId - The application ID associated with the current OLE object. * @returns {ApiOleObject} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateOleObject.js */ Api.prototype.CreateOleObject = function(sImageSrc, nWidth, nHeight, sData, sAppId) { @@ -4386,6 +4580,7 @@ * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. * @returns {ApiRGBColor} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateRGBColor.js */ Api.prototype.CreateRGBColor = function(r, g, b) { @@ -4398,6 +4593,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {SchemeColorId} sSchemeColorId - The color scheme identifier. * @returns {ApiSchemeColor} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateSchemeColor.js */ Api.prototype.CreateSchemeColor = function(sSchemeColorId) { @@ -4410,7 +4606,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {PresetColor} sPresetColor - A preset selected from the list of the available color preset names. * @returns {ApiPresetColor}; - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreatePresetColor.js + */ Api.prototype.CreatePresetColor = function(sPresetColor) { return new ApiPresetColor(sPresetColor); @@ -4422,7 +4619,8 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {ApiUniColor} oUniColor - The color used for the element fill. * @returns {ApiFill} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateSolidFill.js + */ Api.prototype.CreateSolidFill = function(oUniColor) { return new ApiFill(AscFormat.CreateUniFillByUniColorCopy(oUniColor.Unicolor)); @@ -4435,6 +4633,7 @@ * @param {Array} aGradientStop - The array of gradient color stops measured in 1000th of percent. * @param {PositiveFixedAngle} Angle - The angle measured in 60000th of a degree that will define the gradient direction. * @returns {ApiFill} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateLinearGradientFill.js */ Api.prototype.CreateLinearGradientFill = function(aGradientStop, Angle) { @@ -4448,6 +4647,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {Array} aGradientStop - The array of gradient color stops measured in 1000th of percent. * @returns {ApiFill} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateRadialGradientFill.js */ Api.prototype.CreateRadialGradientFill = function(aGradientStop) { @@ -4461,6 +4661,7 @@ * @param {ApiUniColor} BgColor - The background color used for the pattern creation. * @param {ApiUniColor} FgColor - The foreground color used for the pattern creation. * @returns {ApiFill} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreatePatternFill.js */ Api.prototype.CreatePatternFill = function(sPatternType, BgColor, FgColor) { @@ -4474,7 +4675,8 @@ * @param {string} sImageUrl - The path to the image used for the blip fill (currently only internet URL or Base64 encoded images are supported). * @param {BlipFillType} sBlipFillType - The type of the fill used for the blip fill (tile or stretch). * @returns {ApiFill} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateBlipFill.js + */ Api.prototype.CreateBlipFill = function(sImageUrl, sBlipFillType) { return new ApiFill(AscFormat.builder_CreateBlipFill(sImageUrl, sBlipFillType)); @@ -4485,7 +4687,8 @@ * @memberof Api * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiFill} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateNoFill.js + */ Api.prototype.CreateNoFill = function() { return new ApiFill(AscFormat.CreateNoFillUniFill()); @@ -4498,7 +4701,8 @@ * @param {EMU} nWidth - The width of the shadow measured in English measure units. * @param {ApiFill} oFill - The fill type used to create the shadow. * @returns {ApiStroke} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateStroke.js + */ Api.prototype.CreateStroke = function(nWidth, oFill) { return new ApiStroke(AscFormat.builder_CreateLine(nWidth, oFill)); @@ -4511,7 +4715,8 @@ * @param {ApiUniColor} oUniColor - The color used for the gradient stop. * @param {PositivePercentage} nPos - The position of the gradient stop measured in 1000th of percent. * @returns {ApiGradientStop} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateGradientStop.js + */ Api.prototype.CreateGradientStop = function(oUniColor, nPos) { return new ApiGradientStop(oUniColor, nPos); @@ -4523,7 +4728,8 @@ * @typeofeditors ["CSE", "CPE"] * @param {string} sSymbol - The character or symbol which will be used to create the bullet for the paragraph. * @returns {ApiBullet} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateBullet.js + */ Api.prototype.CreateBullet = function(sSymbol){ var oBullet = new AscFormat.CBullet(); oBullet.bulletType = new AscFormat.CBulletType(); @@ -4540,11 +4746,12 @@ /** * Creates a bullet for a paragraph with the numbering character or symbol specified with the sType parameter. * @memberof Api - * @typeofeditors ["CSE", "CPE"] + * @typeofeditors ["CDE"] * @param {BulletType} sType - The numbering type the paragraphs will be numbered with. * @param {number} nStartAt - The number the first numbered paragraph will start with. * @returns {ApiBullet} - * */ + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateNumbering.js + */ Api.prototype.CreateNumbering = function(sType, nStartAt){ var oBullet = new AscFormat.CBullet(); @@ -4601,6 +4808,7 @@ * @memberof Api * @typeofeditors ["CDE"] * @returns {ApiInlineLvlSdt} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateInlineLvlSdt.js */ Api.prototype.CreateInlineLvlSdt = function() { @@ -4614,6 +4822,7 @@ * @memberof Api * @typeofeditors ["CDE"] * @returns {ApiBlockLvlSdt} + * @see office-js-api/Examples/{Editor}/Api/Methods/CreateBlockLvlSdt.js */ Api.prototype.CreateBlockLvlSdt = function() { @@ -4624,6 +4833,7 @@ * Saves changes to the specified document. * @typeofeditors ["CDE"] * @memberof Api + * @see office-js-api/Examples/{Editor}/Api/Methods/Save.js */ Api.prototype.Save = function () { this.SaveAfterMacros = true; @@ -4637,6 +4847,7 @@ * The rest of the array elements are arrays with values for the merge fields. * @typeofeditors ["CDE"] * @return {boolean} + * @see office-js-api/Examples/{Editor}/Api/Methods/LoadMailMergeData.js */ Api.prototype.LoadMailMergeData = function(aList) { @@ -4653,6 +4864,7 @@ * @memberof Api * @typeofeditors ["CDE"] * @return {ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetMailMergeTemplateDocContent.js */ Api.prototype.GetMailMergeTemplateDocContent = function() { @@ -4736,6 +4948,7 @@ * @memberof Api * @typeofeditors ["CDE"] * @return {number} + * @see office-js-api/Examples/{Editor}/Api/Methods/GetMailMergeReceptionsCount.js */ Api.prototype.GetMailMergeReceptionsCount = function() { @@ -4749,6 +4962,7 @@ * @memberof Api * @typeofeditors ["CDE"] * @param {ApiDocumentContent} oApiDocumentContent - The document content which the main document content will be replaced with. + * @see office-js-api/Examples/{Editor}/Api/Methods/ReplaceDocumentContent.js */ Api.prototype.ReplaceDocumentContent = function(oApiDocumentContent) { @@ -4769,6 +4983,7 @@ * @param {number} [nStartIndex=0] - The start index of the document for mail merge process. * @param {number} [nEndIndex=Api.GetMailMergeReceptionsCount() - 1] - The end index of the document for mail merge process. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/Api/Methods/MailMerge.js */ Api.prototype.MailMerge = function(nStartIndex, nEndIndex) { @@ -4792,6 +5007,7 @@ * @memberof Api * @param {JSON} sMessage - The JSON object to convert. * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/Api/Methods/FromJSON.js */ Api.prototype.FromJSON = function(sMessage) { @@ -4943,7 +5159,7 @@ oResult = new ApiTable(oReader.TableFromJSON(oParsedObj)); break; case "paraDrawing": - oResult = new ApiDrawing(oReader.ParaDrawingFromJSON(oParsedObj)); + oResult = new ApiDrawing(oReader.ParaDrawingFromJSON(oParsedObj).GraphicObj); break; case "nextPage": case "oddPage": @@ -5031,6 +5247,7 @@ * Returns a type of the ApiUnsupported class. * @typeofeditors ["CDE"] * @returns {"unsupported"} + * @see office-js-api/Examples/{Editor}/ApiUnsupported/Methods/GetClassType.js */ ApiUnsupported.prototype.GetClassType = function() { @@ -5045,6 +5262,7 @@ * @param {string} sAuthor - The author's name (optional). * @param {string} sUserId - The user ID of the comment author (optional). * @returns {ApiComment?} - Returns null if the comment was not added. + * @see office-js-api/Examples/{Editor}/Api/Methods/AddComment.js */ Api.prototype.AddComment = function(oElement, sText, sAuthor, sUserId) { @@ -5061,7 +5279,7 @@ oElement instanceof ApiBlockLvlSdt || oElement instanceof ApiInlineLvlSdt || oElement instanceof ApiTable || oElement instanceof ApiRun) { - return oElement.AddComment(sText, sAuthor); + return oElement.AddComment(sText, sAuthor, sUserId); } } // Проверка на массив с ранами @@ -5141,6 +5359,7 @@ * @typeofeditors ["CDE"] * @param {string} eventName - The event name. * @param {function} callback - Function to be called when the event fires. + * @see office-js-api/Examples/{Editor}/Api/Methods/attachEvent.js */ Api.prototype["attachEvent"] = Api.prototype.attachEvent; @@ -5150,6 +5369,7 @@ * @memberof Api * @typeofeditors ["CDE"] * @param {string} eventName - The event name. + * @see office-js-api/Examples/{Editor}/Api/Methods/detachEvent.js */ Api.prototype["detachEvent"] = Api.prototype.detachEvent; @@ -5164,6 +5384,7 @@ * @memberof ApiDocumentContent * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"documentContent"} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetClassType.js */ ApiDocumentContent.prototype.GetClassType = function() { @@ -5174,6 +5395,7 @@ * @memberof ApiDocumentContent * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetElementsCount.js */ ApiDocumentContent.prototype.GetElementsCount = function() { @@ -5185,6 +5407,7 @@ * @param {number} nPos - The element position that will be taken from the document. * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {?DocumentElement} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetElement.js */ ApiDocumentContent.prototype.GetElement = function(nPos) { @@ -5207,6 +5430,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {number} nPos - The position where the current element will be added. * @param {DocumentElement} oElement - The document element which will be added at the current position. + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/AddElement.js */ ApiDocumentContent.prototype.AddElement = function(nPos, oElement) { @@ -5224,6 +5448,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {DocumentElement} oElement - The element type which will be pushed to the document. * @returns {boolean} - returns false if oElement is unsupported. + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/Push.js */ ApiDocumentContent.prototype.Push = function(oElement) { @@ -5245,6 +5470,7 @@ * content to this paragraph, use the {@link ApiDocumentContent#GetElement} method. * @memberof ApiDocumentContent * @typeofeditors ["CDE", "CSE", "CPE"] + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/RemoveAllElements.js */ ApiDocumentContent.prototype.RemoveAllElements = function() { @@ -5255,6 +5481,7 @@ * @memberof ApiDocumentContent * @typeofeditors ["CDE", "CSE", "CPE"] * @param {number} nPos - The element number (position) in the document or inside other element. + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/RemoveElement.js */ ApiDocumentContent.prototype.RemoveElement = function(nPos) { @@ -5267,10 +5494,11 @@ * Returns a Range object that represents the part of the document contained in the document content. * @memberof ApiDocumentContent * @typeofeditors ["CDE"] - * @param {Number} Start - Start character in the current element. - * @param {Number} End - End character in the current element. + * @param {Number} Start - Start position index in the current element. + * @param {Number} End - End position index in the current element. * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetRange.js + */ ApiDocumentContent.prototype.GetRange = function(Start, End) { return new ApiRange(this.Document, Start, End); @@ -5282,6 +5510,7 @@ * @param {boolean} bWriteNumberings - Specifies if the used numberings will be written to the JSON object or not. * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/ToJSON.js */ ApiDocumentContent.prototype.ToJSON = function(bWriteNumberings, bWriteStyles) { @@ -5300,6 +5529,7 @@ * @typeofeditors ["CDE"] * @param {boolean} bGetCopies - Specifies if the copies of the document elements will be returned or not. * @returns {Array} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetContent.js */ ApiDocumentContent.prototype.GetContent = function(bGetCopies) { @@ -5328,6 +5558,7 @@ * @memberof ApiDocumentContent * @typeofeditors ["CDE"] * @return {ApiDrawing[]} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetAllDrawingObjects.js */ ApiDocumentContent.prototype.GetAllDrawingObjects = function() { @@ -5335,7 +5566,7 @@ var arrApiShapes = []; for (var Index = 0; Index < arrAllDrawing.length; Index++) - arrApiShapes.push(new ApiDrawing(arrAllDrawing[Index])); + arrApiShapes.push(new ApiDrawing(arrAllDrawing[Index].GraphicObj)); return arrApiShapes; }; @@ -5344,82 +5575,59 @@ * @memberof ApiDocumentContent * @typeofeditors ["CDE"] * @return {ApiShape[]} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetAllShapes.js */ ApiDocumentContent.prototype.GetAllShapes = function() { - var arrAllDrawing = this.Document.GetAllDrawingObjects(); - var arrApiShapes = []; - - for (var Index = 0; Index < arrAllDrawing.length; Index++) - { - if (arrAllDrawing[Index].GraphicObj instanceof AscFormat.CShape) - arrApiShapes.push(new ApiShape(arrAllDrawing[Index].GraphicObj)); - } - - return arrApiShapes; + let arrAllDrawing = this.Document.GetAllDrawingObjects(); + return private_GetAllDrawingsWithType(arrAllDrawing, AscDFH.historyitem_type_Shape, + function(oDrawing) {return new ApiShape(oDrawing);}); }; /** * Returns a collection of image objects from the document content. * @memberof ApiDocumentContent * @typeofeditors ["CDE"] * @return {ApiImage[]} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetAllImages.js */ ApiDocumentContent.prototype.GetAllImages = function() { - var arrAllDrawing = this.Document.GetAllDrawingObjects(); - var arrApiImages = []; - - for (var Index = 0; Index < arrAllDrawing.length; Index++) - { - if (arrAllDrawing[Index].GraphicObj instanceof AscFormat.CImageShape) - arrApiImages.push(new ApiImage(arrAllDrawing[Index].GraphicObj)); - } - - return arrApiImages; + let arrAllDrawing = this.Document.GetAllDrawingObjects(); + return private_GetAllDrawingsWithType(arrAllDrawing, AscDFH.historyitem_type_ImageShape, + function(oDrawing) {return new ApiImage(oDrawing);}); }; /** * Returns a collection of chart objects from the document content. * @memberof ApiDocumentContent * @typeofeditors ["CDE"] * @return {ApiChart[]} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetAllCharts.js */ ApiDocumentContent.prototype.GetAllCharts = function() { - var arrAllDrawing = this.Document.GetAllDrawingObjects(); - var arrApiCharts = []; - - for (var Index = 0; Index < arrAllDrawing.length; Index++) - { - if (arrAllDrawing[Index].GraphicObj instanceof AscFormat.CChartSpace) - arrApiCharts.push(new ApiChart(arrAllDrawing[Index].GraphicObj)); - } - - return arrApiCharts; + let arrAllDrawing = this.Document.GetAllDrawingObjects(); + return private_GetAllDrawingsWithType(arrAllDrawing, AscDFH.historyitem_type_ChartSpace, + function(oDrawing) {return new ApiChart(oDrawing);}); }; /** * Returns a collection of OLE objects from the document content. * @memberof ApiDocumentContent * @typeofeditors ["CDE"] * @return {ApiOleObject[]} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetAllOleObjects.js */ ApiDocumentContent.prototype.GetAllOleObjects = function() { - var arrAllDrawing = this.Document.GetAllDrawingObjects(); - var arrApiOleObjects = []; - - for (var Index = 0; Index < arrAllDrawing.length; Index++) - { - if (arrAllDrawing[Index].GraphicObj instanceof AscFormat.COleObject) - arrApiOleObjects.push(new ApiOleObject(arrAllDrawing[Index].GraphicObj)); - } - - return arrApiOleObjects; + let arrAllDrawing = this.Document.GetAllDrawingObjects(); + return private_GetAllDrawingsWithType(arrAllDrawing, AscDFH.historyitem_type_OleObject, + function(oDrawing) {return new ApiOleObject(oDrawing);}); }; /** * Returns an array of all paragraphs from the current document content. * @memberof ApiDocumentContent * @typeofeditors ["CDE"] * @return {ApiParagraph[]} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetAllParagraphs.js */ ApiDocumentContent.prototype.GetAllParagraphs = function() { @@ -5435,6 +5643,7 @@ * @memberof ApiDocumentContent * @typeofeditors ["CDE"] * @return {ApiParagraph[]} + * @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetAllTables.js */ ApiDocumentContent.prototype.GetAllTables = function() { @@ -5456,6 +5665,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {"document"} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetClassType.js */ ApiDocument.prototype.GetClassType = function() { @@ -5463,7 +5673,9 @@ }; /** * Creates a new history point. + * @typeofeditors ["CDE"] * @memberof ApiDocument + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/CreateNewHistoryPoint.js */ ApiDocument.prototype.CreateNewHistoryPoint = function() { @@ -5475,6 +5687,7 @@ * @typeofeditors ["CDE"] * @param {string} sStyleName - The style name. * @returns {?ApiStyle} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetStyle.js */ ApiDocument.prototype.GetStyle = function(sStyleName) { @@ -5489,6 +5702,7 @@ * @param {string} sStyleName - The name of the style which will be created. * @param {StyleType} [sType="paragraph"] - The document element which the style will be applied to. * @returns {ApiStyle} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/CreateStyle.js */ ApiDocument.prototype.CreateStyle = function(sStyleName, sType) { @@ -5527,6 +5741,7 @@ * @typeofeditors ["CDE"] * @param {StyleType} sStyleType - The document element which we want to get the style for. * @returns {?ApiStyle} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetDefaultStyle.js */ ApiDocument.prototype.GetDefaultStyle = function(sStyleType) { @@ -5548,6 +5763,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetDefaultTextPr.js */ ApiDocument.prototype.GetDefaultTextPr = function() { @@ -5559,6 +5775,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {ApiParaPr} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetDefaultParaPr.js */ ApiDocument.prototype.GetDefaultParaPr = function() { @@ -5570,6 +5787,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @return {ApiSection} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetFinalSection.js */ ApiDocument.prototype.GetFinalSection = function() { @@ -5583,6 +5801,7 @@ * @param {ApiParagraph} oParagraph - The paragraph after which a new document section will be inserted. * Paragraph must be in a document. * @returns {ApiSection | null} Returns null if parametr is invalid. + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/CreateSection.js */ ApiDocument.prototype.CreateSection = function(oParagraph) { @@ -5615,6 +5834,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @param {boolean} isEvenAndOdd - If true the header/footer will be different for odd and even pages, if false they will be the same. + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/SetEvenAndOddHdrFtr.js */ ApiDocument.prototype.SetEvenAndOddHdrFtr = function(isEvenAndOdd) { @@ -5626,6 +5846,7 @@ * @typeofeditors ["CDE"] * @param {("bullet" | "numbered")} [sType="bullet"] - The type of the numbering which will be created. * @returns {ApiNumbering} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/CreateNumbering.js */ ApiDocument.prototype.CreateNumbering = function(sType) { @@ -5649,6 +5870,7 @@ * @param {object} [oPr=undefined] - Specifies that text and paragraph document properties are preserved for the inserted elements. * The object should look like this: {"KeepTextOnly": true}. * @returns {boolean} Success? + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/InsertContent.js */ ApiDocument.prototype.InsertContent = function(arrContent, isInline, oPr) { @@ -5727,6 +5949,7 @@ * @property {number} Date - The time when this change was made in local time. * @property {number} DateUTC - The time when this change was made in UTC. * @property {string} [QuoteText=undefined] - The text to which this comment is related. + * @see office-js-api/Examples/Enumerations/CommentReportRecord.js */ /** @@ -5741,6 +5964,7 @@ * "Mark Pottato" : [{IsAnswer: false, CommentMessage: 'Need to change this part', Date: 1688587967245, DateUTC: 1688569967245, QuoteText: 'The quick brown fox jumps over the lazy dog'}, * {IsAnswer: false, CommentMessage: 'We need to add a link', Date: 1688587967245, DateUTC: 1688569967245, QuoteText: 'OnlyOffice'}] * } + * @see office-js-api/Examples/Enumerations/CommentReport.js */ @@ -5749,6 +5973,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {CommentReport} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetCommentsReport.js */ ApiDocument.prototype.GetCommentsReport = function() { @@ -5797,6 +6022,7 @@ /** * Review record type. * @typedef {("TextAdd" | "TextRem" | "ParaAdd" | "ParaRem" | "TextPr" | "ParaPr" | "Unknown")} ReviewReportRecordType + * @see office-js-api/Examples/Enumerations/ReviewReportRecordType.js */ /** @@ -5805,6 +6031,8 @@ * @property {ReviewReportRecordType} Type - Review record type. * @property {string} [Value=undefined] - Review change value that is set for the "TextAdd" and "TextRem" types only. * @property {number} Date - The time when this change was made. + * @property {ApiParagraph | ApiTable} ReviewedElement - Element that has been reviewed. + * @see office-js-api/Examples/Enumerations/ReviewReportRecord.js */ /** @@ -5813,11 +6041,12 @@ * @typedef {Object.>} ReviewReport * @example * { - * "John Smith" : [{Type: 'TextRem', Value: 'Hello, Mark!', Date: 1679941734161}, - * {Type: 'TextAdd', Value: 'Dear Mr. Pottato.', Date: 1679941736189}], - * "Mark Pottato" : [{Type: 'ParaRem', Date: 1679941755942}, - * {Type: 'TextPr', Date: 1679941757832}] + * "John Smith" : [{Type: 'TextRem', Value: 'Hello, Mark!', Date: 1679941734161, Element: ApiParagraph}, + * {Type: 'TextAdd', Value: 'Dear Mr. Pottato.', Date: 1679941736189, Element: ApiParagraph}], + * "Mark Pottato" : [{Type: 'ParaRem', Date: 1679941755942, ReviewedElement: ApiParagraph}, + * {Type: 'TextPr', Date: 1679941757832, ReviewedElement: ApiParagraph}] * } + * @see office-js-api/Examples/Enumerations/ReviewReport.js */ /** @@ -5825,6 +6054,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {ReviewReport} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetReviewReport.js */ ApiDocument.prototype.GetReviewReport = function() { @@ -5880,6 +6110,24 @@ "Type" : "ParaPr" }; } + else if (c_oAscRevisionsChangeType.RowsAdd === nType) + { + oElement = { + "Type" : "RowsAdd" + }; + } + else if (c_oAscRevisionsChangeType.RowsRem === nType) + { + oElement = { + "Type" : "RowsRem" + }; + } + else if (c_oAscRevisionsChangeType.TablePr === nType) + { + oElement = { + "Type" : "TablePr" + }; + } else { oElement = { @@ -5887,6 +6135,8 @@ }; } oElement["Date"] = oChange.get_DateTime(); + oElement["ReviewedElement"] = private_GetReviewedElement(oChange.GetElement()); + oResult[sUserName].push(oElement); } } @@ -5901,6 +6151,7 @@ * @param {string} oProperties.replaceString - Replacement string. * @param {string} [oProperties.matchCase=true] - Case sensitive or not. * + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/SearchAndReplace.js */ ApiDocument.prototype.SearchAndReplace = function(oProperties) { @@ -5931,6 +6182,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {ApiBlockLvlSdt[] | ApiInlineLvlSdt[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetAllContentControls.js */ ApiDocument.prototype.GetAllContentControls = function() { @@ -5950,6 +6202,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {String[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetTagsOfAllContentControls.js */ ApiDocument.prototype.GetTagsOfAllContentControls = function() { @@ -5975,6 +6228,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {String[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetTagsOfAllForms.js */ ApiDocument.prototype.GetTagsOfAllForms = function() { @@ -6001,6 +6255,7 @@ * @typeofeditors ["CDE"] * @param sTag {string} - Content control tag. * @returns {ApiBlockLvlSdt[] | ApiInlineLvlSdt[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetContentControlsByTag.js */ ApiDocument.prototype.GetContentControlsByTag = function(sTag) { @@ -6026,6 +6281,7 @@ * @typeofeditors ["CDE"] * @param sTag {string} - Form tag. * @returns {ApiBlockLvlSdt[] | ApiInlineLvlSdt[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetFormsByTag.js */ ApiDocument.prototype.GetFormsByTag = function(sTag) { @@ -6048,6 +6304,7 @@ /** * The specific form type. * @typedef {("text" | "checkBox" | "picture" | "comboBox" | "dropDownList" | "dateTime" | "radio")} FormSpecificType + * @see office-js-api/Examples/Enumerations/FormSpecificType.js */ /** * Form data. @@ -6063,6 +6320,7 @@ * "value" : "ONLYOFFICE", * "type" : "text" * } + * @see office-js-api/Examples/Enumerations/FormData.js */ /** * Returns the data from all forms present in the current document. @@ -6071,6 +6329,7 @@ * @typeofeditors ["CDE"] * @returns {Array.} * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetFormsData.js */ ApiDocument.prototype.GetFormsData = function() { @@ -6082,19 +6341,23 @@ * @typeofeditors ["CDE"] * @param {Array.} arrData - An array of form data to set to the specified forms. * @since 8.0.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/SetFormsData.js */ ApiDocument.prototype.SetFormsData = function(arrData) { - if (!arrData || !Array.isArray(arrData)) - return; - - this.Document.GetFormsManager().SetAllFormsData(arrData); + return executeNoFormLockCheck(function() { + if (!arrData || !Array.isArray(arrData)) + return; + + this.Document.GetFormsManager().SetAllFormsData(arrData); + }, this); }; /** * Sets the change tracking mode. * @memberof ApiDocument * @typeofeditors ["CDE"] * @param isTrack {boolean} - Specifies if the change tracking mode is set or not. + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/SetTrackRevisions.js */ ApiDocument.prototype.SetTrackRevisions = function(isTrack) { @@ -6105,6 +6368,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/IsTrackRevisions.js */ ApiDocument.prototype.IsTrackRevisions = function() { @@ -6114,10 +6378,11 @@ * Returns a Range object that represents the part of the document contained in the specified document. * @memberof ApiDocument * @typeofeditors ["CDE"] - * @param {Number} Start - Start character in the current element. - * @param {Number} End - End character in the current element. + * @param {Number} Start - Start position index in the current element. + * @param {Number} End - End position index in the current element. * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetRange.js + */ ApiDocument.prototype.GetRange = function(Start, End) { return new ApiRange(this.Document, Start, End); @@ -6127,7 +6392,8 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {ApiRange | null} - returns null if selection doesn't exist. - * */ + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetRangeBySelect.js + */ ApiDocument.prototype.GetRangeBySelect = function() { if (!this.Document.IsSelectionUse()) @@ -6162,6 +6428,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {?DocumentElement} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/Last.js */ ApiDocument.prototype.Last = function() { @@ -6174,6 +6441,7 @@ * @typeofeditors ["CDE"] * @param {string} sName - The bookmark name. * @returns {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/DeleteBookmark.js */ ApiDocument.prototype.DeleteBookmark = function(sName) { @@ -6184,37 +6452,13 @@ return true; }; - /** - * Adds a comment to the document. - * @memberof ApiDocument - * @typeofeditors ["CDE"] - * @param {string} sText - The comment text (required). - * @param {string} sAuthor - The author's name (optional). - * @param {string} sUserId - The user ID of the comment author (optional). - * @returns {ApiComment?} - Returns null if the comment was not added. - */ - ApiDocument.prototype.AddComment = function(sText, sAuthor, sUserId) - { - if (!sText || typeof(sText) !== "string") - return null; - - if (typeof(sAuthor) !== "string") - sAuthor = ""; - - let CommentData = private_CreateCommentData({ - text: sText, - author: sAuthor, - userId: sUserId - }); - - return AddGlobalCommentToDocument(this.Document, CommentData); - }; /** * Returns a bookmark range. * @memberof ApiDocument * @typeofeditors ["CDE"] * @param {string} sName - The bookmark name. * @return {ApiRange | null} - returns null if sName is invalid. + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetBookmarkRange.js */ ApiDocument.prototype.GetBookmarkRange = function(sName) { @@ -6241,6 +6485,7 @@ * @memberof ApiDocument * @typeofeditors ["CDE"] * @return {ApiSection[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetSections.js */ ApiDocument.prototype.GetSections = function() { @@ -6259,6 +6504,7 @@ * @typeofeditors ["CDE"] * @param {number} nPage - The page number. * @return {ApiTable[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetAllTablesOnPage.js */ ApiDocument.prototype.GetAllTablesOnPage = function(nPage) { @@ -6285,12 +6531,17 @@ * @param x {EMU} - The X coordinate in English measure units. * @param y {EMU} - The Y coordinate in English measure units. * @return {boolean} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/AddDrawingToPage.js */ ApiDocument.prototype.AddDrawingToPage = function(oDrawing, nPage, x, y) { - if (!(oDrawing instanceof ApiDrawing) || oDrawing.Drawing.IsUseInDocument()) + if (!(oDrawing instanceof ApiDrawing)) return false; - + + let drawing = oDrawing.getParaDrawing(); + if(drawing.IsUseInDocument()) + return false; + this.ForceRecalculate(nPage + 1); if (this.Document.GetPagesCount() <= nPage) return false; @@ -6300,8 +6551,7 @@ let paragraph = this.Document.GetCurrentParagraph(); if (!paragraph) return false; - - let drawing = oDrawing.Drawing; + drawing.Set_PositionH(Asc.c_oAscRelativeFromH.Page, false, private_EMU2MM(x), false); drawing.Set_PositionV(Asc.c_oAscRelativeFromV.Page, false, private_EMU2MM(y), false); drawing.Set_DrawingType(drawing_Anchor); @@ -6312,6 +6562,7 @@ * Removes the current selection. * @memberof ApiDocument * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/RemoveSelection.js */ ApiDocument.prototype.RemoveSelection = function() { @@ -6324,6 +6575,7 @@ * @param {string} sText - Search string. * @param {boolean} isMatchCase - Case sensitive or not. * @return {ApiRange[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/Search.js */ ApiDocument.prototype.Search = function(sText, isMatchCase) { @@ -6356,6 +6608,7 @@ * @param {boolean} [bRenderHTMLTags=false] - Defines if HTML tags will be preserved in your Markdown. If you just want to use an occasional HTML tag, you can avoid using the opening angle bracket * in the following way: \Please note that the table of figures properties will be filled with the default properties if they are undefined. * @param {boolean} [bReplace=true] - Specifies whether to replace the selected table of figures instead of adding a new one. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/AddTableOfFigures.js */ ApiDocument.prototype.AddTableOfFigures = function(oTofPr, bReplace) { @@ -7205,14 +7503,15 @@ /** * Returns the document statistics represented as an object with the following parameters: - * * PageCount - number of pages; - * * WordsCount - number of words; - * * ParagraphCount - number of paragraphs; - * * SymbolsCount - number of symbols; - * * SymbolsWSCount - number of symbols with spaces. + * PageCount - number of pages; + * WordsCount - number of words; + * ParagraphCount - number of paragraphs; + * SymbolsCount - number of symbols; + * SymbolsWSCount - number of symbols with spaces. * @memberof ApiDocument * @typeofeditors ["CDE"] * @returns {object} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetStatistics.js */ ApiDocument.prototype.GetStatistics = function() { @@ -7249,34 +7548,281 @@ } }; /** - * Returns a number of pages in the current document. - * This method can be slow for large documents because it runs the document calculation - * process before the full recalculation. + * Returns a number of pages in the current document. + * This method can be slow for large documents because it runs the document calculation + * process before the full recalculation. + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @return {number} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetPageCount.js + */ + ApiDocument.prototype.GetPageCount = function() + { + this.ForceRecalculate(); + return this.Document.GetPagesCount(); + }; + /** + * Returns all styles of the current document. + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @returns {ApiStyle[]} + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetAllStyles.js + */ + ApiDocument.prototype.GetAllStyles = function() + { + let aApiStyles = []; + var aStyles = this.Document.Get_Styles().Style; + + aStyles.forEach(function(style) { + aApiStyles.push(new ApiStyle(style)); + }); + + return aApiStyles; + }; + /** + * Returns the document information: + * Application - the application the document was created with. + * CreatedRaw - the date and time when the file was created. + * Created - the parsed date and time when the file was created. + * LastModifiedRaw - the date and time when the file was last modified. + * LastModified - the parsed date and time when the file was last modified. + * LastModifiedBy - the name of the user who made the latest change to the document. + * Authors - the persons who created the file. + * Title - the document title (this property allows you to simplify your documents classification). + * Tags - the document tags (this property allows you to simplify your documents classification). + * Subject - the document subject (this property allows you to simplify your documents classification). + * Comment - the comment to the document (this property allows you to simplify your documents classification). + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @returns {object} + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetDocumentInfo.js + */ + ApiDocument.prototype.GetDocumentInfo = function() + { + const oDocInfo = { + Application: '', + CreatedRaw: null, + Created: '', + LastModifiedRaw: null, + LastModified: '', + LastModifiedBy: '', + Authors: [], + Title: '', + Tags: '', + Subject: '', + Comment: '' + }; + const api = this.Document.Api; + + let props = (api) ? api.asc_getAppProps() : null; + oDocInfo.Application = (props.asc_getApplication() || '') + (props.asc_getAppVersion() ? ' ' : '') + (props.asc_getAppVersion() || ''); + + let langCode = 1033; // en-US + let langName = 'en-us'; + if (api.asc_getLocale) + { + let locale = api.asc_getLocale(); + if (locale) + langName = locale.replace('_', '-').toLowerCase(); + } + else if (this.Document.GetDefaultLanguage && window['Common']) + { + langCode = this.Document.GetDefaultLanguage(); + langName = window['Common']['util']['LanguageInfo']['getLocalLanguageName'](langCode)[0].toLowerCase(); + } + + props = api.asc_getCoreProps(); + oDocInfo.CreatedRaw = props.asc_getCreated(); + oDocInfo.LastModifiedRaw = props.asc_getModified(); + + try { + if (oDocInfo.CreatedRaw) + oDocInfo.Created = (oDocInfo.CreatedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' +oDocInfo. CreatedRaw.toLocaleString(langName, {timeStyle: 'short'})); + + if (oDocInfo.LastModifiedRaw) + oDocInfo.LastModified = (oDocInfo.LastModifiedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.LastModifiedRaw.toLocaleString(langName, {timeStyle: 'short'})); + } catch (e) { + langName = 'en'; + if (oDocInfo.CreatedRaw) + oDocInfo.Created = (oDocInfo.CreatedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.CreatedRaw.toLocaleString(langName, {timeStyle: 'short'})); + + if (oDocInfo.LastModifiedRaw) + oDocInfo.LastModified = (oDocInfo.LastModifiedRaw.toLocaleString(langName, {year: 'numeric', month: '2-digit', day: '2-digit'}) + ' ' + oDocInfo.LastModifiedRaw.toLocaleString(langName, {timeStyle: 'short'})); + } + + const LastModifiedBy = props.asc_getLastModifiedBy(); + oDocInfo.LastModifiedBy = AscCommon.UserInfoParser.getParsedName(LastModifiedBy); + + oDocInfo.Title = (props.asc_getTitle() || ''); + oDocInfo.Tags = (props.asc_getKeywords() || ''); + oDocInfo.Subject = (props.asc_getSubject() || ''); + oDocInfo.Comment = (props.asc_getDescription() || ''); + + const authors = props.asc_getCreator(); + if (authors) + oDocInfo.Authors = authors.split(/\s*[,;]\s*/); + + return oDocInfo; + }; + /** + * Returns the current word or part of the current word. + * @param {undefined | "before" | "after"} sWordPart - The desired part of the current word to be returned. + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetCurrentWord.js + */ + ApiDocument.prototype.GetCurrentWord = function(sWordPart) + { + let part = GetStringParameter(sWordPart, null); + let dir = 0; + if ("after" === part) + dir = 1; + else if ("before" === part) + dir = -1; + + return this.Document.GetCurrentWord(dir); + }; + /** + * Replaces the current word or part of the current word with the specified text. + * @param sReplace {string} - The string to replace the current word with. + * @param {undefined | "before" | "after"} sPart - The desired part of the current word to be replaced. + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/ReplaceCurrentWord.js + */ + ApiDocument.prototype.ReplaceCurrentWord = function(sReplace, sPart) + { + let replace = GetStringParameter(sReplace, ""); + let part = GetStringParameter(sPart, null); + + let dir = 0; + if ("after" === part) + dir = 1; + else if ("before" === part) + dir = -1; + + return this.Document.ReplaceCurrentWord(dir, replace); + }; + /** + * Selects the current word if it is possible. + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @returns {object} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/SelectCurrentWord.js + */ + ApiDocument.prototype.SelectCurrentWord = function() + { + return this.Document.SelectCurrentWord(); + }; + /** + * Adds a comment to the current document selection, or to the current word if no text is selected. + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @param {string} sText - The comment text (required). + * @param {string} sAuthor - The author's name (optional). + * @param {string} sUserId - The user ID of the comment author (optional). + * @returns {?ApiComment} - Returns null if the comment was not added. + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/AddComment.js + */ + ApiDocument.prototype.AddComment = function(sText, sAuthor, sUserId) + { + if (!sText || typeof(sText) !== "string") + return null; + + sText = GetStringParameter(sText, ""); + sAuthor = GetStringParameter(sAuthor, ""); + + let commentData = private_CreateCommentData({ + text: sText, + author: sAuthor, + userId: sUserId, + quoteText: null + }); + + let comment = this.Document.AddComment(commentData); + return comment ? new ApiComment(comment) : null; + }; + /** + * Returns the current sentence or part of the current sentence. + * @param {undefined | "before" | "after"} sPart - The desired part of the current sentence to be returned. * @memberof ApiDocument * @typeofeditors ["CDE"] - * @return {number} + * @returns {string} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/GetCurrentSentence.js */ - ApiDocument.prototype.GetPageCount = function() + ApiDocument.prototype.GetCurrentSentence = function(sPart) { - this.ForceRecalculate(); - return this.Document.GetPagesCount(); + let part = GetStringParameter(sPart, null); + let dir = 0; + if ("after" === part) + dir = 1; + else if ("before" === part) + dir = -1; + + return this.Document.GetCurrentSentence(dir); }; /** - * Returns all styles of the current document. + * Replaces the current sentence or part of the current sentence with the specified text. + * @param sReplace {string} - The string to replace the current sentence with. + * @param {undefined | "before" | "after"} sPart - The desired part of the current sentence to be replaced. * @memberof ApiDocument * @typeofeditors ["CDE"] - * @returns {ApiStyle[]} + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/ReplaceCurrentSentence.js */ - ApiDocument.prototype.GetAllStyles = function() + ApiDocument.prototype.ReplaceCurrentSentence = function(sReplace, sPart) { - let aApiStyles = []; - var aStyles = this.Document.Get_Styles().Style; + let replace = GetStringParameter(sReplace, ""); + let part = GetStringParameter(sPart, null); - aStyles.forEach(function(style) { - aApiStyles.push(new ApiStyle(style)); - }); - - return aApiStyles; + let dir = 0; + if ("after" === part) + dir = 1; + else if ("before" === part) + dir = -1; + + return this.Document.ReplaceCurrentSentence(dir, replace); + }; + /** + * Adds a math equation to the current document. + * @param sText {string} - An equation written as a linear text string. + * @param {"unicode" | "latex"} [sFormat="unicode"] - The format of the specified linear representation. + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/AddMathEquation.js + * @memberof ApiDocument + * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiDocument/Methods/AddMathEquation.js + */ + ApiDocument.prototype.AddMathEquation = function(sText, sFormat) + { + let text = GetStringParameter(sText, ""); + let format = GetStringParameter(sFormat, "unicode"); + + LoadFont("Cambria Math"); + + let logicDocument = this.Document; + logicDocument.RemoveBeforePaste(); + logicDocument.RemoveSelection(); + let mathPr = new AscCommonWord.MathMenu(c_oAscMathType.Default_Text, logicDocument.GetDirectTextPr()); + mathPr.SetText(text); + logicDocument.AddToParagraph(mathPr); + + let info = logicDocument.GetSelectedElementsInfo(); + let paraMath = info.GetMath(); + if (!paraMath) + return; + + paraMath.ConvertView(false, "latex" === format ? Asc.c_oAscMathInputType.LaTeX : Asc.c_oAscMathInputType.Unicode); }; //------------------------------------------------------------------------------------------------------------------ // @@ -7289,6 +7835,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"paragraph"} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetClassType.js */ ApiParagraph.prototype.GetClassType = function() { @@ -7300,6 +7847,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {string} [sText=""] - The text that we want to insert into the current document element. * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddText.js */ ApiParagraph.prototype.AddText = function(sText) { @@ -7318,6 +7866,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddPageBreak.js */ ApiParagraph.prototype.AddPageBreak = function() { @@ -7331,6 +7880,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddLineBreak.js */ ApiParagraph.prototype.AddLineBreak = function() { @@ -7345,6 +7895,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddColumnBreak.js */ ApiParagraph.prototype.AddColumnBreak = function() { @@ -7358,6 +7909,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddPageNumber.js */ ApiParagraph.prototype.AddPageNumber = function() { @@ -7371,6 +7923,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddPagesCount.js */ ApiParagraph.prototype.AddPagesCount = function() { @@ -7385,6 +7938,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetParagraphMarkTextPr.js */ ApiParagraph.prototype.GetParagraphMarkTextPr = function() { @@ -7395,6 +7949,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiParaPr} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetParaPr.js */ ApiParagraph.prototype.GetParaPr = function() { @@ -7405,6 +7960,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {?ApiNumberingLevel} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetNumbering.js */ ApiParagraph.prototype.GetNumbering = function() { @@ -7426,6 +7982,7 @@ * @typeofeditors ["CDE"] * @see Same as {@link ApiParagraph#SetNumPr} * @param {ApiNumberingLevel} oNumberingLevel - The numbering level which will be used for assigning the numbers to the paragraph. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetNumbering.js */ ApiParagraph.prototype.SetNumbering = function(oNumberingLevel) { @@ -7439,6 +7996,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetElementsCount.js */ ApiParagraph.prototype.GetElementsCount = function() { @@ -7451,6 +8009,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {number} nPos - The position where the element which content we want to get must be located. * @returns {?ParagraphContent} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetElement.js */ ApiParagraph.prototype.GetElement = function(nPos) { @@ -7468,6 +8027,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @param {number} nPos - The element position which we want to remove from the paragraph. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/RemoveElement.js */ ApiParagraph.prototype.RemoveElement = function(nPos) { @@ -7483,6 +8043,7 @@ * content to this run, use the {@link ApiParagraph#GetElement} method. * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/RemoveAllElements.js */ ApiParagraph.prototype.RemoveAllElements = function() { @@ -7497,6 +8058,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {boolean} - returns false if paragraph haven't parent. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/Delete.js */ ApiParagraph.prototype.Delete = function() { @@ -7518,6 +8080,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiParagraph | null} - returns null if paragraph is last. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetNext.js */ ApiParagraph.prototype.GetNext = function() { @@ -7532,6 +8095,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiParagraph} - returns null if paragraph is first. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetPrevious.js */ ApiParagraph.prototype.GetPrevious = function() { @@ -7546,6 +8110,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiParagraph} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/Copy.js */ ApiParagraph.prototype.Copy = function() { @@ -7567,6 +8132,7 @@ * specified, then the element will be added at the end of the current paragraph. * @returns {boolean} Returns false if the type of oElement is not supported by paragraph * content. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddElement.js */ ApiParagraph.prototype.AddElement = function(oElement, nPos) { @@ -7594,6 +8160,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddTabStop.js */ ApiParagraph.prototype.AddTabStop = function() { @@ -7608,17 +8175,22 @@ * @typeofeditors ["CDE"] * @param {ApiDrawing} oDrawing - The object which will be added to the current paragraph. * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddDrawing.js */ ApiParagraph.prototype.AddDrawing = function(oDrawing) { - var oRun = new ParaRun(this.Paragraph, false); + let oRun = new ParaRun(this.Paragraph, false); if (!(oDrawing instanceof ApiDrawing)) return new ApiRun(oRun); - oRun.Add_ToContent(0, oDrawing.Drawing); + let oParaDrawing = oDrawing.getParaDrawing(); + if(!oParaDrawing) + return new ApiRun(oRun); + + oRun.Add_ToContent(0, oParaDrawing); private_PushElementToParagraph(this.Paragraph, oRun); - oDrawing.Drawing.Set_Parent(oRun); + oParaDrawing.Set_Parent(oRun); private_CheckDrawingOnAdd(oDrawing); return new ApiRun(oRun); }; @@ -7629,6 +8201,7 @@ * @typeofeditors ["CDE"] * @param {ApiInlineLvlSdt} oSdt - An inline container. If undefined or null, then new class ApiInlineLvlSdt will be created and added to the paragraph. * @returns {ApiInlineLvlSdt} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddInlineLvlSdt.js */ ApiParagraph.prototype.AddInlineLvlSdt = function(oSdt) { @@ -7651,6 +8224,7 @@ * @param {string} sAuthor - The author's name (optional). * @param {string} sUserId - The user ID of the comment author (optional). * @returns {ApiComment?} - Returns null if the comment was not added. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddComment.js */ ApiParagraph.prototype.AddComment = function(sText, sAuthor, sUserId) { @@ -7684,7 +8258,7 @@ else return null; - return new ApiComment(oComment) + return new ApiComment(oComment); }; /** * Adds a hyperlink to a paragraph. @@ -7693,6 +8267,7 @@ * @param {string} sLink - The link address. * @param {string} sScreenTipText - The screen tip text. * @return {ApiHyperlink | null} - returns null if params are invalid. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddHyperlink.js */ ApiParagraph.prototype.AddHyperlink = function(sLink, sScreenTipText) { @@ -7724,10 +8299,11 @@ * Returns a Range object that represents the part of the document contained in the specified paragraph. * @memberof ApiParagraph * @typeofeditors ["CDE"] - * @param {Number} Start - Start character in the current element. - * @param {Number} End - End character in the current element. + * @param {Number} Start - Start position index in the current element. + * @param {Number} End - End position index in the current element. * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetRange.js + */ ApiParagraph.prototype.GetRange = function(Start, End) { return new ApiRange(this.Paragraph, Start, End); @@ -7740,6 +8316,7 @@ * oElement type is not supported by a paragraph. * @returns {boolean} Returns false if the type of oElement is not supported by paragraph * content. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/Push.js */ ApiParagraph.prototype.Push = function(oElement) { @@ -7777,6 +8354,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {ApiRun} Returns false if the paragraph doesn't containt the required run. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetLastRunWithText.js */ ApiParagraph.prototype.GetLastRunWithText = function() { @@ -7804,6 +8382,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isBold - Specifies that the contents of this paragraph are displayed bold. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetBold.js */ ApiParagraph.prototype.SetBold = function(isBold) { @@ -7819,6 +8398,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isCaps - Specifies that the contents of the current paragraph are displayed capitalized. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetCaps.js */ ApiParagraph.prototype.SetCaps = function(isCaps) { @@ -7837,6 +8417,7 @@ * @param {byte} b - Blue color component value. * @param {boolean} [isAuto=false] - If this parameter is set to "true", then r,g,b parameters will be ignored. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetColor.js */ ApiParagraph.prototype.SetColor = function(r, g, b, isAuto) { @@ -7875,6 +8456,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isDoubleStrikeout - Specifies that the contents of the current paragraph are displayed double struck through. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetDoubleStrikeout.js */ ApiParagraph.prototype.SetDoubleStrikeout = function(isDoubleStrikeout) { @@ -7890,32 +8472,22 @@ * @typeofeditors ["CDE"] * @param {string} sFontFamily - The font family or families used for the current paragraph. * @returns {?ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetFontFamily.js */ ApiParagraph.prototype.SetFontFamily = function(sFontFamily) { if (typeof sFontFamily !== "string") return null; - - var oThis = this; - var loader = AscCommon.g_font_loader; - var fontinfo = g_fontApplication.GetFontInfo(sFontFamily); - var isasync = loader.LoadFont(fontinfo, setFontFamily); - - if (isasync === false) - setFontFamily() - - function setFontFamily() - { - var FontFamily = { - Name : sFontFamily, + + LoadFont(sFontFamily); + this.Paragraph.SetApplyToAll(true); + this.Paragraph.Add(new AscCommonWord.ParaTextPr({ + FontFamily : { + Name : sFontFamily, Index : -1 - }; - - oThis.Paragraph.SetApplyToAll(true); - oThis.Paragraph.Add(new AscCommonWord.ParaTextPr({FontFamily : FontFamily})); - oThis.Paragraph.SetApplyToAll(false); - } - + } + })); + this.Paragraph.SetApplyToAll(false); return this; }; /** @@ -7923,6 +8495,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {string[]} - The font names used for the current paragraph. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetFontNames.js */ ApiParagraph.prototype.GetFontNames = function() { @@ -7947,6 +8520,7 @@ * @typeofeditors ["CDE"] * @param {hps} nSize - The text size value measured in half-points (1/144 of an inch). * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetFontSize.js */ ApiParagraph.prototype.SetFontSize = function(nSize) { @@ -7962,6 +8536,7 @@ * @typeofeditors ["CDE", "CPE"] * @param {highlightColor} sColor - Available highlight color. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetHighlight.js */ ApiParagraph.prototype.SetHighlight = function(sColor) { @@ -8000,6 +8575,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isItalic - Specifies that the contents of the current paragraph are displayed italicized. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetItalic.js */ ApiParagraph.prototype.SetItalic = function(isItalic) { @@ -8017,6 +8593,7 @@ * @param {hps} nPosition - Specifies a positive (raised text) or negative (lowered text) * measurement in half-points (1/144 of an inch). * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetPosition.js */ ApiParagraph.prototype.SetPosition = function(nPosition) { @@ -8033,6 +8610,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isSmallCaps - Specifies if the contents of the current paragraph are displayed capitalized two points smaller or not. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetSmallCaps.js */ ApiParagraph.prototype.SetSmallCaps = function(isSmallCaps) { @@ -8051,6 +8629,7 @@ * @typeofeditors ["CDE"] * @param {twips} nSpacing - The value of the text spacing measured in twentieths of a point (1/1440 of an inch). * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetSpacing.js */ ApiParagraph.prototype.SetSpacing = function(nSpacing) { @@ -8066,6 +8645,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isStrikeout - Specifies that the contents of the current paragraph are displayed struck through. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetStrikeout.js */ ApiParagraph.prototype.SetStrikeout = function(isStrikeout) { @@ -8085,6 +8665,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isUnderline - Specifies that the contents of the current paragraph are displayed underlined. * @returns {ApiParagraph} this + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetUnderline.js */ ApiParagraph.prototype.SetUnderline = function(isUnderline) { @@ -8096,13 +8677,14 @@ }; /** * Specifies the alignment which will be applied to the contents of this paragraph in relation to the default appearance of the paragraph text: - * * "baseline" - the characters in the current paragraph will be aligned by the default text baseline. - * * "subscript" - the characters in the current paragraph will be aligned below the default text baseline. - * * "superscript" - the characters in the current paragraph will be aligned above the default text baseline. + * "baseline" - the characters in the current paragraph will be aligned by the default text baseline. + * "subscript" - the characters in the current paragraph will be aligned below the default text baseline. + * "superscript" - the characters in the current paragraph will be aligned above the default text baseline. * @memberof ApiParagraph * @typeofeditors ["CDE"] * @param {("baseline" | "subscript" | "superscript")} sType - The vertical alignment type applied to the text contents. * @returns {ApiParagraph | null} - returns null is sType is invalid. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetVertAlign.js */ ApiParagraph.prototype.SetVertAlign = function(sType) { @@ -8128,6 +8710,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {?ParagraphContent} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/Last.js */ ApiParagraph.prototype.Last = function() { @@ -8150,6 +8733,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiInlineLvlSdt[]} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetAllContentControls.js */ ApiParagraph.prototype.GetAllContentControls = function() { @@ -8171,6 +8755,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiDrawing[]} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetAllDrawingObjects.js */ ApiParagraph.prototype.GetAllDrawingObjects = function() { @@ -8179,7 +8764,7 @@ for (var Index = 0; Index < arrAllDrawing.length; Index++) { - arrApiShapes.push(new ApiDrawing(arrAllDrawing[Index])); + arrApiShapes.push(new ApiDrawing(arrAllDrawing[Index].GraphicObj)); } return arrApiShapes; @@ -8189,82 +8774,59 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiShape[]} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetAllShapes.js */ ApiParagraph.prototype.GetAllShapes = function() { - var arrAllDrawing = this.Paragraph.GetAllDrawingObjects(); - var arrApiShapes = []; - - for (var Index = 0; Index < arrAllDrawing.length; Index++) - { - if (arrAllDrawing[Index].GraphicObj instanceof AscFormat.CShape) - arrApiShapes.push(new ApiShape(arrAllDrawing[Index].GraphicObj)); - } - - return arrApiShapes; + let arrAllDrawing = this.Paragraph.GetAllDrawingObjects(); + return private_GetAllDrawingsWithType(arrAllDrawing, AscDFH.historyitem_type_Shape, + function(oDrawing) {return new ApiShape(oDrawing);}); }; /** * Returns a collection of image objects in the paragraph. * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiImage[]} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetAllImages.js */ ApiParagraph.prototype.GetAllImages = function() { - var arrAllDrawing = this.Paragraph.GetAllDrawingObjects(); - var arrApiImages = []; - - for (var Index = 0; Index < arrAllDrawing.length; Index++) - { - if (arrAllDrawing[Index].GraphicObj instanceof AscFormat.CImageShape) - arrApiImages.push(new ApiImage(arrAllDrawing[Index].GraphicObj)); - } - - return arrApiImages; + let arrAllDrawing = this.Paragraph.GetAllDrawingObjects(); + return private_GetAllDrawingsWithType(arrAllDrawing, AscDFH.historyitem_type_ImageShape, + function(oDrawing) {return new ApiImage(oDrawing);}); }; /** * Returns a collection of chart objects in the paragraph. * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiChart[]} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetAllCharts.js */ ApiParagraph.prototype.GetAllCharts = function() { - var arrAllDrawing = this.Paragraph.GetAllDrawingObjects(); - var arrApiCharts = []; - - for (var Index = 0; Index < arrAllDrawing.length; Index++) - { - if (arrAllDrawing[Index].GraphicObj instanceof AscFormat.CChartSpace) - arrApiCharts.push(new ApiChart(arrAllDrawing[Index].GraphicObj)); - } - - return arrApiCharts; + let arrAllDrawing = this.Paragraph.GetAllDrawingObjects(); + return private_GetAllDrawingsWithType(arrAllDrawing, AscDFH.historyitem_type_ChartSpace, + function(oDrawing) {return new ApiChart(oDrawing);}); }; /** * Returns a collection of OLE objects in the paragraph. * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiOleObject[]} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetAllOleObjects.js */ ApiParagraph.prototype.GetAllOleObjects = function() { - var arrAllDrawing = this.Paragraph.GetAllDrawingObjects(); - var arrApiOleObjects = []; - - for (var Index = 0; Index < arrAllDrawing.length; Index++) - { - if (arrAllDrawing[Index].GraphicObj instanceof AscFormat.COleObject) - arrApiOleObjects.push(new ApiOleObject(arrAllDrawing[Index].GraphicObj)); - } - - return arrApiOleObjects; + let arrAllDrawing = this.Paragraph.GetAllDrawingObjects(); + return private_GetAllDrawingsWithType(arrAllDrawing, AscDFH.historyitem_type_OleObject, + function(oDrawing) {return new ApiOleObject(oDrawing);}); }; /** * Returns a content control that contains the current paragraph. * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiBlockLvlSdt | null} - returns null is parent content control doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetParentContentControl.js */ ApiParagraph.prototype.GetParentContentControl = function() { @@ -8285,6 +8847,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetParentTable.js */ ApiParagraph.prototype.GetParentTable = function() { @@ -8303,6 +8866,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiTableCell | null} - returns null if parent cell doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetParentTableCell.js */ ApiParagraph.prototype.GetParentTableCell = function() { @@ -8327,6 +8891,7 @@ * @param {string} [oPr.TabSymbol='\t'] - Defines how the tab will be specified in the resulting string (does not apply to numbering). * @typeofeditors ["CDE"] * @return {string} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetText.js */ ApiParagraph.prototype.GetText = function(oPr) { @@ -8349,6 +8914,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetTextPr.js */ ApiParagraph.prototype.GetTextPr = function() { @@ -8362,6 +8928,7 @@ * @typeofeditors ["CDE"] * @param {ApiTextPr} oTextPr - The paragraph text properties. * @return {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetTextPr.js */ ApiParagraph.prototype.SetTextPr = function(oTextPr) { @@ -8380,6 +8947,7 @@ * @typeofeditors ["CDE"] * @param {number} nType - Defines if this method returns the ApiBlockLvlSdt (nType === 1) or ApiParagraph (any value except 1) object. * @return {ApiParagraph | ApiBlockLvlSdt} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/InsertInContentControl.js */ ApiParagraph.prototype.InsertInContentControl = function(nType) { @@ -8415,6 +8983,7 @@ * @param {string} sPosition - The position where the text or paragraph will be inserted ("before" or "after" the paragraph specified). * @param {boolean} beRNewPara - Defines if this method returns a new paragraph (true) or the current paragraph (false). * @return {ApiParagraph | null} - returns null if param paragraph is invalid. + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/InsertParagraph.js */ ApiParagraph.prototype.InsertParagraph = function(paragraph, sPosition, beRNewPara) { @@ -8457,6 +9026,7 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @return {boolean} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/Select.js */ ApiParagraph.prototype.Select = function() { @@ -8506,6 +9076,7 @@ * @param {string} sText - Search string. * @param {boolean} isMatchCase - Case sensitive or not. * @return {ApiRange[]} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/Search.js */ ApiParagraph.prototype.Search = function(sText, isMatchCase) { @@ -8537,6 +9108,7 @@ * Wraps the paragraph content in a mail merge field. * @memberof ApiParagraph * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/WrapInMailMergeField.js */ ApiParagraph.prototype.WrapInMailMergeField = function() { @@ -8575,6 +9147,7 @@ * @param {boolean} [bAboveBelow=false] - Specifies if the above/below words indicating the position of the reference should be included (don't used with the "text" and "aboveBelow" sRefType). * @param {string} [sSepWith=""] - A number separator (used only with the "fullCtxParaNum" sRefType). * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddNumberedCrossRef.js */ ApiParagraph.prototype.AddNumberedCrossRef = function(sRefTo, oParaTo, bLink, bAboveBelow, sSepWith) { @@ -8639,6 +9212,7 @@ * @param {boolean} [bLink=true] - Specifies if the reference will be inserted as a hyperlink. * @param {boolean} [bAboveBelow=false] - Specifies if the above/below words indicating the position of the reference should be included (don't used with the "text" and "aboveBelow" sRefType). * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddHeadingCrossRef.js */ ApiParagraph.prototype.AddHeadingCrossRef = function(sRefTo, oParaTo, bLink, bAboveBelow) { @@ -8690,12 +9264,13 @@ * Please note that this paragraph must be in the document. * @memberof ApiParagraph * @typeofeditors ["CDE"] - * @param {bookmarkRefTo} sRefType - The text or numeric value of a bookmark reference you want to insert. + * @param {bookmarkRefTo} sRefTo - The text or numeric value of a bookmark reference you want to insert. * @param {string} sBookmarkName - The name of the bookmark to be referred to (must be in the document). * @param {boolean} [bLink=true] - Specifies if the reference will be inserted as a hyperlink. * @param {boolean} [bAboveBelow=false] - Specifies if the above/below words indicating the position of the reference should be included (don't used with the "text" and "aboveBelow" sRefType). * @param {string} [sSepWith=""] - A number separator (used only with the "fullCtxParaNum" sRefType). * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddBookmarkCrossRef.js */ ApiParagraph.prototype.AddBookmarkCrossRef = function(sRefTo, sBookmarkName, bLink, bAboveBelow, sSepWith) { @@ -8721,7 +9296,7 @@ nRefTo = 5; break; } - if (nRefTo === -1 || typeof(sBookmarkName) !== "string" || sBookmarkName.length === 0 || !this.Paragraph.IsUseInDocument()) + if (nRefTo === -1 || typeof(sBookmarkName) !== "string" || sBookmarkName.length === 0) return false; if (typeof(bLink) !== "boolean") bLink = true; @@ -8729,21 +9304,17 @@ bAboveBelow = false; if (typeof(sSepWith) !== "string" || nRefTo !== 4) sSepWith = ""; - - var oDocument = private_GetLogicDocument(); - var oManager = oDocument.GetBookmarksManager(); - var sName, oldSelectionInfo; + + let logicDocument = private_GetLogicDocument(); + let oManager = logicDocument.GetBookmarksManager(); for (var nBookmark = 0, nCount = oManager.GetCount(); nBookmark < nCount; nBookmark++) { - sName = oManager.GetName(nBookmark); - if (!oManager.IsInternalUseBookmark(sName) && !oManager.IsHiddenBookmark(sName) && sName === sBookmarkName) + if (sBookmarkName === oManager.GetName(nBookmark) + && !oManager.IsInternalUseBookmark(sBookmarkName) + && !oManager.IsHiddenBookmark(sBookmarkName)) { - oldSelectionInfo = oDocument.SaveDocumentState(); - oDocument.RemoveSelection(); - this.Paragraph.Document_SetThisElementCurrent(); - this.Paragraph.SetCurrentPos(this.Paragraph.Content.length - 1); - oDocument.AddRefToBookmark(sBookmarkName, nRefTo, bLink, bAboveBelow, sSepWith); - oDocument.LoadDocumentState(oldSelectionInfo); + let instr = AscWord.getRefInstruction(sBookmarkName, nRefTo, bLink, bAboveBelow, sSepWith); + logicDocument.addFieldWithInstructionToParagraph(this.Paragraph, instr, null, true); return true; } } @@ -8761,6 +9332,7 @@ * @param {boolean} [bLink=true] - Specifies if the reference will be inserted as a hyperlink. * @param {boolean} [bAboveBelow=false] - Specifies if the above/below words indicating the position of the reference should be included (don't used with the "aboveBelow" sRefType). * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddFootnoteCrossRef.js */ ApiParagraph.prototype.AddFootnoteCrossRef = function(sRefTo, oParaTo, bLink, bAboveBelow) { @@ -8817,6 +9389,7 @@ * @param {boolean} [bLink=true] - Specifies if the reference will be inserted as a hyperlink. * @param {boolean} [bAboveBelow=false] - Specifies if the above/below words indicating the position of the reference should be included (don't used with the "aboveBelow" sRefType). * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddEndnoteCrossRef.js */ ApiParagraph.prototype.AddEndnoteCrossRef = function(sRefTo, oParaTo, bLink, bAboveBelow) { @@ -8874,6 +9447,7 @@ * @param {boolean} [bLink=true] - Specifies if the reference will be inserted as a hyperlink. * @param {boolean} [bAboveBelow=false] - Specifies if the above/below words indicating the position of the reference should be included (used only with the "pageNum" sRefType). * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddCaptionCrossRef.js */ ApiParagraph.prototype.AddCaptionCrossRef = function(sCaption, sRefTo, oParaTo, bLink, bAboveBelow) { @@ -8935,6 +9509,7 @@ * @param {boolean} bWriteNumberings - Specifies if the used numberings will be written to the JSON object or not. * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/ToJSON.js */ ApiParagraph.prototype.ToJSON = function(bWriteNumberings, bWriteStyles) { @@ -8952,7 +9527,8 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {Number} - returns -1 if the paragraph parent doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetPosInParent.js + */ ApiParagraph.prototype.GetPosInParent = function() { return this.Paragraph.GetIndex(); @@ -8964,7 +9540,8 @@ * @typeofeditors ["CDE"] * @param {DocumentElement} oElement - The element to replace the current paragraph with. * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/ReplaceByElement.js + */ ApiParagraph.prototype.ReplaceByElement = function(oElement) { if (oElement instanceof ApiParagraph || oElement instanceof ApiTable || oElement instanceof ApiBlockLvlSdt) @@ -9001,7 +9578,8 @@ * If you want to specify "Heading 1", then nHeadingLvl === 0 and etc. * @param {CaptionSep} [sCaptionSep="hyphen"] - The caption separator (used if you want to specify the chapter number). * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/AddCaption.js + */ ApiParagraph.prototype.AddCaption = function(sAdditional, sLabel, bExludeLabel, sNumberingFormat, bBefore, nHeadingLvl, sCaptionSep) { var oParaParent = this.Paragraph.GetParent(); @@ -9063,7 +9641,7 @@ oCapPr.Label = sLabel; oCapPr.Before = bBefore; oCapPr.ExcludeLabel = bExludeLabel; - oCapPr.NumFormat = nNumFormat; + oCapPr.Format = nNumFormat; oCapPr.Separator = sCaptionSep; oCapPr.Additional = sAdditional; @@ -9085,7 +9663,8 @@ * @memberof ApiParagraph * @typeofeditors ["CDE"] * @returns {ApiSection} - */ + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/GetSection.js + */ ApiParagraph.prototype.GetSection = function() { let oSectPr = this.private_GetImpl().Get_SectPr(); @@ -9100,7 +9679,8 @@ * @typeofeditors ["CDE"] * @param {ApiSection} oSection - The section which will be set to the paragraph. * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiParagraph/Methods/SetSection.js + */ ApiParagraph.prototype.SetSection = function(oSection) { if (typeof(oSection) != "object" || !(oSection instanceof ApiSection)) @@ -9137,6 +9717,7 @@ * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"run"} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/GetClassType.js */ ApiRun.prototype.GetClassType = function() { @@ -9147,6 +9728,7 @@ * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/GetTextPr.js */ ApiRun.prototype.GetTextPr = function() { @@ -9156,6 +9738,7 @@ * Clears the content from the current run. * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/ClearContent.js */ ApiRun.prototype.ClearContent = function() { @@ -9165,6 +9748,7 @@ * Removes all the elements from the current run. * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/RemoveAllElements.js */ ApiRun.prototype.RemoveAllElements = function() { @@ -9174,6 +9758,7 @@ * Deletes the current run. * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/Delete.js */ ApiRun.prototype.Delete = function() { @@ -9193,6 +9778,7 @@ * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] * @param {string} sText - The text which will be added to the current run. + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/AddText.js */ ApiRun.prototype.AddText = function(sText) { @@ -9205,6 +9791,7 @@ * Adds a page break and starts the next element from a new page. * @memberof ApiRun * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/AddPageBreak.js */ ApiRun.prototype.AddPageBreak = function() { @@ -9214,6 +9801,7 @@ * Adds a line break to the current run position and starts the next element from a new line. * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/AddLineBreak.js */ ApiRun.prototype.AddLineBreak = function() { @@ -9223,6 +9811,7 @@ * Adds a column break to the current run position and starts the next element from a new column. * @memberof ApiRun * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/AddColumnBreak.js */ ApiRun.prototype.AddColumnBreak = function() { @@ -9232,6 +9821,7 @@ * Adds a tab stop to the current run. * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/AddTabStop.js */ ApiRun.prototype.AddTabStop = function() { @@ -9243,14 +9833,16 @@ * @typeofeditors ["CDE"] * @param {ApiDrawing} oDrawing - The object which will be added to the current run. * @returns {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/AddDrawing.js */ ApiRun.prototype.AddDrawing = function(oDrawing) { if (!(oDrawing instanceof ApiDrawing)) return false; - this.Run.Add_ToContent(this.Run.Content.length, oDrawing.Drawing); - oDrawing.Drawing.Set_Parent(this.Run); + let oParaDrawing = oDrawing.getParaDrawing(); + this.Run.Add_ToContent(this.Run.Content.length, oParaDrawing); + oParaDrawing.Set_Parent(this.Run); private_CheckDrawingOnAdd(oDrawing); return true; }; @@ -9259,6 +9851,7 @@ * @memberof ApiRun * @typeofeditors ["CDE"] * @return {boolean} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/Select.js */ ApiRun.prototype.Select = function() { @@ -9310,6 +9903,7 @@ * @param {string} sLink - The link address. * @param {string} sScreenTipText - The screen tip text. * @return {ApiHyperlink | null} - returns false if params are invalid. + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/AddHyperlink.js */ ApiRun.prototype.AddHyperlink = function(sLink, sScreenTipText) { @@ -9325,11 +9919,11 @@ if (this.GetParentContentControl() instanceof ApiInlineLvlSdt) return null; - function find_parentParaDepth(DocPos) + function find_parentParaDepth(aDocPos) { - for (var nPos = 0; nPos < DocPos.length; nPos++) + for (var nPos = 0; nPos < aDocPos.length; nPos++) { - if (DocPos[nPos].Class instanceof Paragraph && DocPos[nPos].Class.Id === parentPara.Id) + if (aDocPos[nPos].Class instanceof Paragraph && aDocPos[nPos].Class.Id === parentPara.Id) { return nPos; } @@ -9364,6 +9958,7 @@ * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {ApiRun} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/Copy.js */ ApiRun.prototype.Copy = function() { @@ -9380,10 +9975,11 @@ * Returns a Range object that represents the part of the document contained in the specified run. * @memberof ApiRun * @typeofeditors ["CDE"] - * @param {Number} Start - Start character in the current element. - * @param {Number} End - End character in the current element. + * @param {Number} Start - Start position index in the current element. + * @param {Number} End - End position index in the current element. * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/GetRange.js + */ ApiRun.prototype.GetRange = function(Start, End) { return new ApiRange(this.Run, Start, End); @@ -9394,7 +9990,8 @@ * @memberof ApiRun * @typeofeditors ["CDE"] * @return {ApiBlockLvlSdt | ApiInlineLvlSdt | null} - returns null if parent content control doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/GetParentContentControl.js + */ ApiRun.prototype.GetParentContentControl = function() { var RunPosition = this.Run.GetDocumentPositionFromObject(); @@ -9417,7 +10014,8 @@ * @memberof ApiRun * @typeofeditors ["CDE"] * @return {ApiTable | null} - returns null if parent table doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/GetParentTable.js + */ ApiRun.prototype.GetParentTable = function() { var documentPos = this.Run.GetDocumentPositionFromObject(); @@ -9436,7 +10034,8 @@ * @memberof ApiRun * @typeofeditors ["CDE"] * @return {ApiTableCell | null} - returns null is parent cell doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/GetParentTableCell.js + */ ApiRun.prototype.GetParentTableCell = function() { var documentPos = this.Run.GetDocumentPositionFromObject(); @@ -9456,6 +10055,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {ApiTextPr} oTextPr - The text properties that will be set to the current run. * @return {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetTextPr.js */ ApiRun.prototype.SetTextPr = function(oTextPr) { @@ -9471,6 +10071,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isBold - Specifies that the contents of the current run are displayed bold. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetBold.js */ ApiRun.prototype.SetBold = function(isBold) { @@ -9485,6 +10086,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isCaps - Specifies that the contents of the current run are displayed capitalized. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetCaps.js */ ApiRun.prototype.SetCaps = function(isCaps) { @@ -9502,6 +10104,7 @@ * @param {byte} b - Blue color component value. * @param {boolean} [isAuto=false] - If this parameter is set to "true", then r,g,b parameters will be ignored. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetColor.js */ ApiRun.prototype.SetColor = function(r, g, b, isAuto) { @@ -9516,6 +10119,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isDoubleStrikeout - Specifies that the contents of the current run are displayed double struck through. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetDoubleStrikeout.js */ ApiRun.prototype.SetDoubleStrikeout = function(isDoubleStrikeout) { @@ -9530,6 +10134,7 @@ * @typeofeditors ["CSE", "CPE"] * @param {ApiFill} oApiFill - The color or pattern used to fill the text color. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetFill.js */ ApiRun.prototype.SetFill = function(oApiFill) { @@ -9544,12 +10149,13 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {string} sFontFamily - The font family or families used for the current text run. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetFontFamily.js */ ApiRun.prototype.SetFontFamily = function(sFontFamily) { + LoadFont(sFontFamily); var oTextPr = this.GetTextPr(); oTextPr.SetFontFamily(sFontFamily); - return oTextPr; }; /** @@ -9557,6 +10163,7 @@ * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {string[]} - The font names used for the current run. + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/GetFontNames.js */ ApiRun.prototype.GetFontNames = function() { @@ -9576,6 +10183,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {hps} nSize - The text size value measured in half-points (1/144 of an inch). * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetFontSize.js */ ApiRun.prototype.SetFontSize = function(nSize) { @@ -9590,6 +10198,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {highlightColor} sColor - Available highlight color. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetHighlight.js */ ApiRun.prototype.SetHighlight = function(sColor) { @@ -9604,6 +10213,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isItalic - Specifies that the contents of the current run are displayed italicized. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetItalic.js */ ApiRun.prototype.SetItalic = function(isItalic) { @@ -9620,6 +10230,7 @@ * @param {string} sLangId - The possible value for this parameter is a language identifier as defined by * RFC 4646/BCP 47. Example: "en-CA". * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetLanguage.js */ ApiRun.prototype.SetLanguage = function(sLangId) { @@ -9636,6 +10247,7 @@ * @param {hps} nPosition - Specifies a positive (raised text) or negative (lowered text) * measurement in half-points (1/144 of an inch). * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetPosition.js */ ApiRun.prototype.SetPosition = function(nPosition) { @@ -9653,6 +10265,7 @@ * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetShd.js */ ApiRun.prototype.SetShd = function(sType, r, g, b) { @@ -9668,6 +10281,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isSmallCaps - Specifies if the contents of the current run are displayed capitalized two points smaller or not. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetSmallCaps.js */ ApiRun.prototype.SetSmallCaps = function(isSmallCaps) { @@ -9682,6 +10296,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {twips} nSpacing - The value of the text spacing measured in twentieths of a point (1/1440 of an inch). * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetSpacing.js */ ApiRun.prototype.SetSpacing = function(nSpacing) { @@ -9696,6 +10311,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isStrikeout - Specifies that the contents of the current run are displayed struck through. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetStrikeout.js */ ApiRun.prototype.SetStrikeout = function(isStrikeout) { @@ -9710,6 +10326,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {ApiStyle} oStyle - The style which must be applied to the text run. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetStyle.js */ ApiRun.prototype.SetStyle = function(oStyle) { @@ -9725,6 +10342,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isUnderline - Specifies that the contents of the current run are displayed underlined. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetUnderline.js */ ApiRun.prototype.SetUnderline = function(isUnderline) { @@ -9735,13 +10353,14 @@ }; /** * Specifies the alignment which will be applied to the contents of the current run in relation to the default appearance of the text run: - * * "baseline" - the characters in the current text run will be aligned by the default text baseline. - * * "subscript" - the characters in the current text run will be aligned below the default text baseline. - * * "superscript" - the characters in the current text run will be aligned above the default text baseline. + * "baseline" - the characters in the current text run will be aligned by the default text baseline. + * "subscript" - the characters in the current text run will be aligned below the default text baseline. + * "superscript" - the characters in the current text run will be aligned above the default text baseline. * @memberof ApiRun * @typeofeditors ["CDE", "CSE", "CPE"] * @param {("baseline" | "subscript" | "superscript")} sType - The vertical alignment type applied to the text contents. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/SetVertAlign.js */ ApiRun.prototype.SetVertAlign = function(sType) { @@ -9754,6 +10373,7 @@ * Wraps a run in a mail merge field. * @memberof ApiRun * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/WrapInMailMergeField.js */ ApiRun.prototype.WrapInMailMergeField = function() { @@ -9787,6 +10407,7 @@ * @typeofeditors ["CDE"] * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/ToJSON.js */ ApiRun.prototype.ToJSON = function(bWriteStyles) { @@ -9806,6 +10427,7 @@ * @param {string} sAuthor - The author's name (optional). * @param {string} sUserId - The user ID of the comment author (optional). * @returns {ApiComment?} - Returns null if the comment was not added. + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/AddComment.js */ ApiRun.prototype.AddComment = function(sText, sAuthor, sUserId) { @@ -9832,31 +10454,64 @@ oDocument.UpdateSelection(); return comment; }; - + /** * Returns a text from the text run. * @memberof ApiRun * @param {object} oPr - The resulting string display properties. - * @param {string} [oPr.NewLineSeparator='\r'] - Defines how the line separator will be specified in the resulting string. + * @param {string} [oPr.NewLineSeparator='\r'] - Defines how the line separator will be specified in the resulting string. * @param {string} [oPr.TabSymbol='\t'] - Defines how the tab will be specified in the resulting string. * @typeofeditors ["CDE"] * @returns {string} - */ + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/GetText.js + */ ApiRun.prototype.GetText = function(oPr) { - if (!oPr) { + if (!oPr) oPr = {}; - } - + let oProp = { - Text: "", - NewLineSeparator: (oPr.hasOwnProperty("NewLineSeparator")) ? oPr["NewLineSeparator"] : "\r", - TabSymbol: oPr["TabSymbol"], - ParaSeparator: oPr["ParaSeparator"] + Text : "", + NewLineSeparator : (oPr.hasOwnProperty("NewLineSeparator")) ? oPr["NewLineSeparator"] : "\r", + TabSymbol : oPr["TabSymbol"], + ParaSeparator : oPr["ParaSeparator"] } - + return this.Run.GetText(oProp); }; + + /** + * Moves a cursor to a specified position of the current text run. + * If the current run is not assigned to any document part, then false is returned. Otherwise, this method returns true. + * If there is any selection in the document, it will be removed. + * @memberof ApiRun + * @param {number} [nPos=0] - Desired cursor position. + * @typeofeditors ["CDE"] + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiRun/Methods/MoveCursorToPos.js + */ + ApiRun.prototype.MoveCursorToPos = function(nPos) + { + let pos = GetNumberParameter(nPos, 0); + if (pos < 0) + pos = 0; + else if (pos > this.Run.GetElementsCount()) + pos = this.Run.GetElementsCount(); + + let document = private_GetLogicDocument(); + if (!document) + return false; + + document.RemoveSelection(); + + if (!this.Run.IsUseInDocument()) + return false; + + this.Run.Make_ThisElementCurrent(); + this.Run.SetCursorPosition(pos); + return true; + }; //------------------------------------------------------------------------------------------------------------------ // @@ -9869,27 +10524,35 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @returns {"section"} + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/GetClassType.js */ ApiSection.prototype.GetClassType = function() { return "section"; }; + /** - * Specifies a type of the current section. The section type defines how the contents of the current - * section are placed relative to the previous section.
                        + * The section break type which defines how the contents of the current section are placed relative to the previous section. * WordprocessingML supports five distinct types of section breaks: - * * Next page section breaks (the default if type is not specified), which begin the new section on the - * following page. - * * Odd page section breaks, which begin the new section on the next odd-numbered page. - * * Even page section breaks, which begin the new section on the next even-numbered page. - * * Continuous section breaks, which begin the new section on the following paragraph. This means that - * continuous section breaks might not specify certain page-level section properties, since they shall be - * inherited from the following section. These breaks, however, can specify other section properties, such - * as line numbering and footnote/endnote settings. - * * Column section breaks, which begin the new section on the next column on the page. + * Next page ("nextPage") - starts a new section on the next page (the default value). + * Odd ("oddPage") - starts a new section on the next odd-numbered page. + * Even ("evenPage") - starts a new section on the next even-numbered page. + * Continuous ("continuous") - starts a new section in the next paragraph. + * This means that continuous section breaks might not specify certain page-level section properties, + * since they shall be inherited from the following section. + * However, these breaks can specify other section properties, such as line numbering and footnote/endnote settings. + * Column ("nextColumn") - starts a new section in the next column on the page. + * @typedef {("nextPage" | "oddPage" | "evenPage" | "continuous" | "nextColumn")} SectionBreakType + * @see office-js-api/Examples/Enumerations/SectionBreakType.js + */ + + /** + * Specifies a type of the current section. The section type defines how the contents of the current + * section are placed relative to the previous section. * @memberof ApiSection * @typeofeditors ["CDE"] - * @param {("nextPage" | "oddPage" | "evenPage" | "continuous" | "nextColumn")} sType - The section break type. + * @param {SectionBreakType} sType - The section break type. + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/SetType.js */ ApiSection.prototype.SetType = function(sType) { @@ -9904,12 +10567,38 @@ else if ("nextPage" === sType) this.Section.Set_Type(c_oAscSectionBreakType.NextPage); }; + + /** + * Returns the section break type. + * @memberof ApiSection + * @typeofeditors ["CDE"] + * @returns {SectionBreakType} - The section break type. + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/GetType.js + */ + ApiSection.prototype.GetType = function() + { + switch (this.Section.GetType()) { + case c_oAscSectionBreakType.OddPage: + return "oddPage"; + case c_oAscSectionBreakType.EvenPage: + return "evenPage"; + case c_oAscSectionBreakType.Continuous: + return "continuous"; + case c_oAscSectionBreakType.Column: + return "nextColumn"; + case c_oAscSectionBreakType.NextPage: + return "nextPage"; + } + }; + /** * Specifies that all the text columns in the current section are of equal width. * @memberof ApiSection * @typeofeditors ["CDE"] * @param {number} nCount - Number of columns. * @param {twips} nSpace - Distance between columns measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/SetEqualColumns.js */ ApiSection.prototype.SetEqualColumns = function(nCount, nSpace) { @@ -9924,6 +10613,7 @@ * @typeofeditors ["CDE"] * @param {twips[]} aWidths - An array of column width values measured in twentieths of a point (1/1440 of an inch). * @param {twips[]} aSpaces - An array of distance values between the columns measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/SetNotEqualColumns.js */ ApiSection.prototype.SetNotEqualColumns = function(aWidths, aSpaces) { @@ -9950,6 +10640,7 @@ * @param {twips} nWidth - The page width measured in twentieths of a point (1/1440 of an inch). * @param {twips} nHeight - The page height measured in twentieths of a point (1/1440 of an inch). * @param {boolean} [isPortrait=false] - Specifies the orientation of all the pages in this section (if set to true, then the portrait orientation is chosen). + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/SetPageSize.js */ ApiSection.prototype.SetPageSize = function(nWidth, nHeight, isPortrait) { @@ -9961,6 +10652,7 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @returns {twips} + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/GetPageHeight.js */ ApiSection.prototype.GetPageHeight = function() { @@ -9971,6 +10663,7 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @returns {twips} + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/GetPageWidth.js */ ApiSection.prototype.GetPageWidth = function() { @@ -9985,6 +10678,7 @@ * @param {twips} nTop - The top margin height measured in twentieths of a point (1/1440 of an inch). * @param {twips} nRight - The right margin width measured in twentieths of a point (1/1440 of an inch). * @param {twips} nBottom - The bottom margin height measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/SetPageMargins.js */ ApiSection.prototype.SetPageMargins = function(nLeft, nTop, nRight, nBottom) { @@ -9995,6 +10689,7 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @param {twips} nDistance - The distance from the top edge of the page to the top edge of the header measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/SetHeaderDistance.js */ ApiSection.prototype.SetHeaderDistance = function(nDistance) { @@ -10006,6 +10701,7 @@ * @typeofeditors ["CDE"] * @param {twips} nDistance - The distance from the bottom edge of the page to the bottom edge of the footer measured * in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/SetFooterDistance.js */ ApiSection.prototype.SetFooterDistance = function(nDistance) { @@ -10019,6 +10715,7 @@ * @param {boolean} [isCreate=false] - Specifies whether to create a new header or not with the specified header type in case * no header with such a type could be found in the current section. * @returns {?ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/GetHeader.js */ ApiSection.prototype.GetHeader = function(sType, isCreate) { @@ -10055,6 +10752,7 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @param {HdrFtrType} sType - Header type to be removed. + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/RemoveHeader.js */ ApiSection.prototype.RemoveHeader = function(sType) { @@ -10073,6 +10771,7 @@ * @param {boolean} [isCreate=false] - Specifies whether to create a new footer or not with the specified footer type in case * no footer with such a type could be found in the current section. * @returns {?ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/GetFooter.js */ ApiSection.prototype.GetFooter = function(sType, isCreate) { @@ -10110,6 +10809,7 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @param {HdrFtrType} sType - Footer type to be removed. + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/RemoveFooter.js */ ApiSection.prototype.RemoveFooter = function(sType) { @@ -10125,6 +10825,7 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @param {boolean} isTitlePage - If true, the first page of the section will have header and footer that will differ from the other pages of the same section. + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/SetTitlePage.js */ ApiSection.prototype.SetTitlePage = function(isTitlePage) { @@ -10135,6 +10836,7 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @returns {ApiSection | null} - returns null if section is last. + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/GetNext.js */ ApiSection.prototype.GetNext = function() { @@ -10163,6 +10865,7 @@ * @memberof ApiSection * @typeofeditors ["CDE"] * @returns {ApiSection | null} - returns null if section is first. + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/GetPrevious.js */ ApiSection.prototype.GetPrevious = function() { @@ -10193,6 +10896,7 @@ * @param {boolean} bWriteNumberings - Specifies if the used numberings will be written to the JSON object or not. * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiSection/Methods/ToJSON.js */ ApiSection.prototype.ToJSON = function(bWriteNumberings, bWriteStyles) { @@ -10216,6 +10920,7 @@ * @memberof ApiTable * @typeofeditors ["CDE"] * @returns {"table"} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetClassType.js */ ApiTable.prototype.GetClassType = function() { @@ -10226,6 +10931,7 @@ * @memberof ApiTable * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetRowsCount.js */ ApiTable.prototype.GetRowsCount = function() { @@ -10237,6 +10943,7 @@ * @typeofeditors ["CDE"] * @param {number} nPos - The row position within the table. * @returns {ApiTableRow | null} - returns null if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetRow.js */ ApiTable.prototype.GetRow = function(nPos) { @@ -10252,6 +10959,7 @@ * @param {number} nRow - The row position in the current table where the specified cell is placed. * @param {number} nCell - The cell position in the current table. * @returns {ApiTableCell | null} - returns null if params are invalid. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetCell.js */ ApiTable.prototype.GetCell = function(nRow, nCell) { @@ -10271,6 +10979,7 @@ * @typeofeditors ["CDE"] * @param {ApiTableCell[]} aCells - The array of cells to be merged. * @returns {?ApiTableCell} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/MergeCells.js */ ApiTable.prototype.MergeCells = function(aCells) { @@ -10327,6 +11036,7 @@ * @typeofeditors ["CDE"] * @param {ApiStyle} oStyle - The style which will be applied to the current table. * @returns {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetStyle.js */ ApiTable.prototype.SetStyle = function(oStyle) { @@ -10353,6 +11063,7 @@ * @param {boolean} isLastRow - Specifies that the last row conditional formatting will be applied to the table. * @param {boolean} isHorBand - Specifies that the horizontal band conditional formatting will not be applied to the table. * @param {boolean} isVerBand - Specifies that the vertical band conditional formatting will not be applied to the table. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetTableLook.js */ ApiTable.prototype.SetTableLook = function(isFirstColumn, isFirstRow, isLastColumn, isLastRow, isHorBand, isVerBand) { @@ -10372,6 +11083,7 @@ * @param {Number} [nRow=1] - Count of rows into which the cell will be split. * @param {Number} [nCol=1] - Count of columns into which the cell will be split. * @returns {ApiTable | null} - returns null if can't split. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/Split.js */ ApiTable.prototype.Split = function(oCell, nRow, nCol) { @@ -10411,6 +11123,7 @@ * @param {boolean} [isBefore=false] - Adds a new row before (false) or after (true) the specified cell. If no cell is specified, then * this parameter will be ignored. * @returns {ApiTableRow} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddRow.js */ ApiTable.prototype.AddRow = function(oCell, isBefore) { @@ -10447,6 +11160,7 @@ * @param {boolean} [isBefore=false] - Adds the new rows before (false) or after (true) the specified cell. If no cell is specified, then * this parameter will be ignored. * @returns {ApiTable} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddRows.js */ ApiTable.prototype.AddRows = function(oCell, nCount, isBefore) { @@ -10464,6 +11178,7 @@ * @param {ApiTableCell} [oCell] - The cell after which a new column will be added. If not specified, a new column will be added at the end of the table. * @param {boolean} [isBefore=false] - Adds a new column before (false) or after (true) the specified cell. If no cell is specified, * then this parameter will be ignored. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddColumn.js */ ApiTable.prototype.AddColumn = function(oCell, isBefore) { @@ -10495,6 +11210,7 @@ * @param {Number} nCount - Count of columns to be added. * @param {boolean} [isBefore=false] - Adds the new columns before (false) or after (true) the specified cell. If no cell is specified, * then this parameter will be ignored. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddColumns.js */ ApiTable.prototype.AddColumns = function(oCell, nCount, isBefore) { @@ -10512,6 +11228,7 @@ * @param {ApiTableCell} oCell - The cell where the specified element will be added. * @param {number} nPos - The position in the cell where the specified element will be added. * @param {DocumentElement} oElement - The document element which will be added at the current position. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddElement.js */ ApiTable.prototype.AddElement = function(oCell, nPos, oElement) { @@ -10538,6 +11255,7 @@ * @typeofeditors ["CDE"] * @param {ApiTableCell} oCell - The cell which is placed in the row that will be removed. * @returns {boolean} Is the table empty after removing. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/RemoveRow.js */ ApiTable.prototype.RemoveRow = function(oCell) { @@ -10560,6 +11278,7 @@ * @typeofeditors ["CDE"] * @param {ApiTableCell} oCell - The cell which is placed in the column that will be removed. * @returns {boolean} Is the table empty after removing. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/RemoveColumn.js */ ApiTable.prototype.RemoveColumn = function(oCell) { @@ -10581,6 +11300,7 @@ * @memberof ApiTable * @typeofeditors ["CDE", "CPE"] * @returns {ApiTable} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/Copy.js */ ApiTable.prototype.Copy = function() { @@ -10590,29 +11310,30 @@ /** * Selects the current table. * @memberof ApiTable - * @typeofeditors ["CDE", "CPE"] + * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/Select.js */ ApiTable.prototype.Select = function() { var Document = private_GetLogicDocument(); - var DocPos = this.Table.GetDocumentPositionFromObject(); + var aDocPos = this.Table.GetDocumentPositionFromObject(); - if (DocPos[0].Position === - 1) + if (aDocPos[0].Position === - 1) return false; var controllerType; - if (DocPos[0].Class.IsHdrFtr()) + if (aDocPos[0].Class.IsHdrFtr()) { controllerType = docpostype_HdrFtr; } - else if (DocPos[0].Class.IsFootnote()) + else if (aDocPos[0].Class.IsFootnote()) { controllerType = docpostype_Footnotes; } - else if (DocPos[0].Class.Is_DrawingShape()) + else if (aDocPos[0].Class.Is_DrawingShape()) { controllerType = docpostype_DrawingObjects; } @@ -10620,7 +11341,7 @@ { controllerType = docpostype_Content; } - DocPos[0].Class.CurPos.ContentPos = DocPos[0].Position; + aDocPos[0].Class.CurPos.ContentPos = aDocPos[0].Position; Document.SetDocPosType(controllerType); Document.SelectTable(3); @@ -10630,10 +11351,11 @@ * Returns a Range object that represents the part of the document contained in the specified table. * @memberof ApiTable * @typeofeditors ["CDE"] - * @param {Number} Start - Start character in the current element. - * @param {Number} End - End character in the current element. + * @param {Number} Start - Start position index in the current element. + * @param {Number} End - End position index in the current element. * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetRange.js + */ ApiTable.prototype.GetRange = function(Start, End) { return new ApiRange(this.Table, Start, End); @@ -10644,7 +11366,8 @@ * @typeofeditors ["CDE"] * @param {String} sType - Horizontal alignment type: may be "left" or "center" or "right". * @returns {boolean} - returns false if param is invalid. - * */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetHAlign.js + */ ApiTable.prototype.SetHAlign = function(sType) { if (this.Table.IsInline()) @@ -10675,7 +11398,8 @@ * @typeofeditors ["CDE"] * @param {String} sType - Vertical alignment type: may be "top" or "center" or "bottom". * @returns {boolean} - returns false if param is invalid. - * */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetVAlign.js + */ ApiTable.prototype.SetVAlign = function(sType) { if (this.Table.IsInline()) @@ -10701,7 +11425,8 @@ * @param {Number} nRight - Right padding. * @param {Number} nBottom - Bottom padding. * @returns {boolean} - returns true. - * */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetPaddings.js + */ ApiTable.prototype.SetPaddings = function(nLeft, nTop, nRight, nBottom) { if (this.Table.IsInline()) @@ -10717,7 +11442,8 @@ * @typeofeditors ["CDE"] * @param {boolean} isFlow - Specifies if the table is inline or not. * @returns {boolean} - returns false if param is invalid. - * */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetWrappingStyle.js + */ ApiTable.prototype.SetWrappingStyle = function(isFlow) { if (isFlow === true) @@ -10740,7 +11466,8 @@ * @memberof ApiTable * @typeofeditors ["CDE"] * @return {ApiBlockLvlSdt | null} - return null is parent content control doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetParentContentControl.js + */ ApiTable.prototype.GetParentContentControl = function() { var TablePosition = this.Table.GetDocumentPositionFromObject(); @@ -10759,6 +11486,7 @@ * @typeofeditors ["CDE"] * @param {number} nType - Defines if this method returns the ApiBlockLvlSdt (nType === 1) or ApiTable (any value except 1) object. * @return {ApiTable | ApiBlockLvlSdt} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/InsertInContentControl.js */ ApiTable.prototype.InsertInContentControl = function(nType) { @@ -10793,7 +11521,8 @@ * @memberof ApiTable * @typeofeditors ["CDE"] * @return {ApiTable | null} - returns null if parent table doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetParentTable.js + */ ApiTable.prototype.GetParentTable = function() { var documentPos = this.Table.GetDocumentPositionFromObject(); @@ -10808,120 +11537,29 @@ return null; }; /** - * Returns the tables that contain the current table. - * @memberof ApiTable - * @typeofeditors ["CDE"] - * @return {ApiTable[]} - */ - ApiTable.prototype.GetTables = function() - { - var arrTables = []; - - var viewRow = undefined; // будем запоминать последнюю просмотренную строку, т.к. возможны случаи, когда она разбита на несколько Table Pages, такие просматривать повторно не нужно - var viewAbsPage = undefined; // будем запоминать последний абсолютный номер страницы, т.к. возможно случаи, когда строка разбита на несколько страниц, такие строки нужно просматривать повторно на каждой новой странице - for (var nCurPage = 0, nPagesCount = this.Table.Pages.length; nCurPage < nPagesCount; ++nCurPage) - { - if (this.Table.Pages[nCurPage].FirstRow < 0 || this.Table.Pages[nCurPage].LastRow < 0) - continue; - - var nTempPageAbs = this.Table.GetAbsolutePage(nCurPage); - - for (var nCurRow = this.Table.Pages[nCurPage].FirstRow; nCurRow <= this.Table.Pages[nCurPage].LastRow; ++nCurRow) - { - if (nCurRow === viewRow && viewAbsPage === nTempPageAbs) - continue; - - viewRow = nCurRow; - var oRow = this.Table.GetRow(nCurRow); - - if (oRow) - { - for (var nCurCell = 0, nCellsCount = oRow.GetCellsCount(); nCurCell < nCellsCount; ++nCurCell) - { - var oCell = oRow.GetCell(nCurCell); - if (oCell.IsMergedCell()) - continue; - - oCell.GetContent().GetAllTablesOnPage(nTempPageAbs, arrTables); - } - } - } - - viewAbsPage = nTempPageAbs; - } - - for (var Index = 0; Index < arrTables.length; Index++) - { - arrTables[Index] = new ApiTable(arrTables[Index].Table); - } - return arrTables; - }; - /** - * Returns the next table if exists. - * @memberof ApiTable + * Returns an array of tables that represents all the tables nested within the specified table. + * @memberof ApiTable * @typeofeditors ["CDE"] - * @return {ApiTable | null} - returns null if table is last. - */ - ApiTable.prototype.GetNext = function() - { - var oDocument = editor.GetDocument(); - - var absEndPage = this.Table.GetAbsolutePage(this.Table.Pages.length - 1); // страница, на которой заканчивается таблица - - for (var curPage = absEndPage; curPage < oDocument.Document.Pages.length; curPage++) + * @return {ApiTable[]} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetTables.js + */ + ApiTable.prototype.GetTables = function() + { + let tables = this.Table.GetNestedTables(); + let apiTables = []; + for (let i = 0; i < tables.length; ++i) { - var curPageTables = oDocument.Document.GetAllTablesOnPage(curPage); // все таблицы на странице - for (var Index = 0; Index < curPageTables.length; Index++) - { - if (curPageTables[Index].Table.Id === this.Table.Id) - { - if (curPageTables[Index + 1]) - { - return new ApiTable(curPageTables[Index + 1].Table) - } - } - else - return new ApiTable(curPageTables[Index].Table); - } + apiTables.push(new ApiTable(tables[i])); } - - return null; + return apiTables; }; - /** - * Returns the previous table if exists. - * @memberof ApiTable - * @typeofeditors ["CDE"] - * @return {ApiTable | null} - returns null if table is first. - */ - ApiTable.prototype.GetPrevious = function() - { - var oDocument = editor.GetDocument(); - - var absEndPage = this.Table.GetAbsolutePage(0); // страница, на которой заканчивается таблица - - for (var curPage = absEndPage; curPage >= 0; curPage--) - { - var curPageTables = oDocument.Document.GetAllTablesOnPage(curPage); // все таблицы на странице - for (var Index = curPageTables.length - 1; Index >= 0; Index--) - { - if (curPageTables[Index].Table.Id === this.Table.Id) - { - if (curPageTables[Index - 1]) - return new ApiTable(curPageTables[Index - 1].Table) - } - else - return new ApiTable(curPageTables[Index].Table); - } - } - - return null; - }; /** * Returns a table cell that contains the current table. * @memberof ApiTable * @typeofeditors ["CDE"] * @return {ApiTableCell | null} - returns null if parent cell doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetParentTableCell.js + */ ApiTable.prototype.GetParentTableCell = function() { var documentPos = this.Table.GetDocumentPositionFromObject(); @@ -10940,6 +11578,7 @@ * @memberof ApiTable * @typeofeditors ["CDE"] * @return {boolean} - returns false if parent of table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/Delete.js */ ApiTable.prototype.Delete = function() { @@ -10960,6 +11599,7 @@ * @memberof ApiTable * @typeofeditors ["CDE"] * @return {boolean} - returns true. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/Clear.js */ ApiTable.prototype.Clear = function() { @@ -10981,6 +11621,7 @@ * @param {string} sText - Search string. * @param {boolean} isMatchCase - Case sensitive or not. * @return {ApiRange[]} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/Search.js */ ApiTable.prototype.Search = function(sText, isMatchCase) { @@ -11008,6 +11649,7 @@ * @typeofeditors ["CDE"] * @param {ApiTextPr} oTextPr - The text properties that will be set to the current table. * @return {boolean} - returns true. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetTextPr.js */ ApiTable.prototype.SetTextPr = function(oTextPr) { @@ -11032,6 +11674,7 @@ * @param {boolean} bNone - Defines that background color will not be set. * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/SetBackgroundColor.js */ ApiTable.prototype.SetBackgroundColor = function(r, g, b, bNone) { @@ -11056,6 +11699,7 @@ * @param {boolean} bWriteNumberings - Specifies if the used numberings will be written to the JSON object or not. * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/ToJSON.js */ ApiTable.prototype.ToJSON = function(bWriteNumberings, bWriteStyles) { @@ -11073,7 +11717,8 @@ * @memberof ApiTable * @typeofeditors ["CDE"] * @returns {Number} - returns -1 if the table parent doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/GetPosInParent.js + */ ApiTable.prototype.GetPosInParent = function() { return this.Table.GetIndex(); @@ -11085,6 +11730,7 @@ * @typeofeditors ["CDE"] * @param {DocumentElement} oElement - The element to replace the current table with. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/ReplaceByElement.js */ ApiTable.prototype.ReplaceByElement = function(oElement) { @@ -11116,6 +11762,7 @@ * @param {string} sAuthor - The author's name (optional). * @param {string} sUserId - The user ID of the comment author (optional). * @returns {ApiComment?} - Returns null if the comment was not added. + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddComment.js */ ApiTable.prototype.AddComment = function(sText, sAuthor, sUserId) { @@ -11159,7 +11806,8 @@ * If you want to specify "Heading 1", then nHeadingLvl === 0 and etc. * @param {CaptionSep} [sCaptionSep="hyphen"] - The caption separator (used if you want to specify the chapter number). * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiTable/Methods/AddCaption.js + */ ApiTable.prototype.AddCaption = function(sAdditional, sLabel, bExludeLabel, sNumberingFormat, bBefore, nHeadingLvl, sCaptionSep) { var oTableParent = this.Table.GetParent(); @@ -11221,7 +11869,7 @@ oCapPr.Label = sLabel; oCapPr.Before = bBefore; oCapPr.ExcludeLabel = bExludeLabel; - oCapPr.NumFormat = nNumFormat; + oCapPr.Format = nNumFormat; oCapPr.Separator = sCaptionSep; oCapPr.Additional = sAdditional; @@ -11249,6 +11897,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {"tableRow"} + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetClassType.js */ ApiTableRow.prototype.GetClassType = function() { @@ -11259,6 +11908,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetCellsCount.js */ ApiTableRow.prototype.GetCellsCount = function() { @@ -11270,6 +11920,7 @@ * @typeofeditors ["CDE"] * @param {number} nPos - The cell position in the current row. * @returns {ApiTableCell} + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetCell.js */ ApiTableRow.prototype.GetCell = function(nPos) { @@ -11283,6 +11934,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {Number} + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetIndex.js */ ApiTableRow.prototype.GetIndex = function() { @@ -11293,6 +11945,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetParentTable.js */ ApiTableRow.prototype.GetParentTable = function() { @@ -11307,6 +11960,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {ApiTableRow | null} - returns null if row is last. + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetNext.js */ ApiTableRow.prototype.GetNext = function() { @@ -11321,6 +11975,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {ApiTableRow | null} - returns null if row is first. + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/GetPrevious.js */ ApiTableRow.prototype.GetPrevious = function() { @@ -11337,6 +11992,7 @@ * @param {Number} nCount - Count of rows to be added. * @param {boolean} [isBefore=false] - Specifies if the rows will be added before or after the current row. * @returns {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/AddRows.js */ ApiTableRow.prototype.AddRows = function(nCount, isBefore) { @@ -11356,6 +12012,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {ApiTableCell | null} - return null if can't merge. + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/MergeCells.js */ ApiTableRow.prototype.MergeCells = function() { @@ -11390,6 +12047,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {boolean} - returns false if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/Clear.js */ ApiTableRow.prototype.Clear = function() { @@ -11424,6 +12082,7 @@ * @memberof ApiTableRow * @typeofeditors ["CDE"] * @returns {boolean} - return false if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/Remove.js */ ApiTableRow.prototype.Remove = function() { @@ -11442,6 +12101,7 @@ * @typeofeditors ["CDE"] * @param {ApiTextPr} oTextPr - The text properties that will be set to the current row. * @returns {boolean} - returns false if parent table doesn't exist or param is invalid. + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/SetTextPr.js */ ApiTableRow.prototype.SetTextPr = function(oTextPr) { @@ -11480,6 +12140,7 @@ * @param {string} sText - Search string. * @param {boolean} isMatchCase - Case sensitive or not. * @return {ApiRange[]} + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/Search.js */ ApiTableRow.prototype.Search = function(sText, isMatchCase) { @@ -11526,6 +12187,7 @@ * @param {boolean} bNone - Defines that background color will not be set. * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTableRow/Methods/SetBackgroundColor.js */ ApiTableRow.prototype.SetBackgroundColor = function(r, g, b, bNone) { @@ -11554,6 +12216,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {"tableCell"} + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetClassType.js */ ApiTableCell.prototype.GetClassType = function() { @@ -11564,6 +12227,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetContent.js */ ApiTableCell.prototype.GetContent = function() { @@ -11574,6 +12238,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {Number} + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetIndex.js */ ApiTableCell.prototype.GetIndex = function() { @@ -11584,6 +12249,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetRowIndex.js */ ApiTableCell.prototype.GetRowIndex = function() { @@ -11598,6 +12264,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {ApiTableRow | null} - returns null if parent row doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetParentRow.js */ ApiTableCell.prototype.GetParentRow = function() { @@ -11612,6 +12279,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetParentTable.js */ ApiTableCell.prototype.GetParentTable = function() { @@ -11628,6 +12296,7 @@ * @param {Number} nCount - Count of rows to be added. * @param {boolean} [isBefore=false] - Specifies if the new rows will be added before or after the current cell. * @returns {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/AddRows.js */ ApiTableCell.prototype.AddRows = function(nCount, isBefore) { @@ -11646,6 +12315,7 @@ * @param {Number} nCount - Count of columns to be added. * @param {boolean} [isBefore=false] - Specifies if the new columns will be added before or after the current cell. * @returns {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/AddColumns.js */ ApiTableCell.prototype.AddColumns = function(nCount, isBefore) { @@ -11662,6 +12332,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {bool | null} Is the table empty after removing. Returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/RemoveColumn.js */ ApiTableCell.prototype.RemoveColumn = function() { @@ -11676,6 +12347,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {boolean} Is the table empty after removing. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/RemoveRow.js */ ApiTableCell.prototype.RemoveRow = function() { @@ -11692,6 +12364,7 @@ * @param {string} sText - Search string. * @param {boolean} isMatchCase - Case sensitive or not. * @return {ApiRange[]} + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/Search.js */ ApiTableCell.prototype.Search = function(sText, isMatchCase) { @@ -11719,6 +12392,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {ApiTableCell | null} - returns null if cell is last. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetNext.js */ ApiTableCell.prototype.GetNext = function() { @@ -11733,6 +12407,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @returns {ApiTableCell | null} - returns null is cell is first. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/GetPrevious.js */ ApiTableCell.prototype.GetPrevious = function() { @@ -11749,6 +12424,7 @@ * @param {Number} [nRow=1] - Count of rows into which the cell will be split. * @param {Number} [nCol=1] - Count of columns into which the cell will be split. * @returns {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/Split.js */ ApiTableCell.prototype.Split = function(nRow, nCol) { @@ -11764,6 +12440,7 @@ * @typeofeditors ["CDE"] * @param {ApiTableCellPr} oApiTableCellPr - The properties that will be set to the current table cell. * @returns {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetCellPr.js */ ApiTableCell.prototype.SetCellPr = function(oApiTableCellPr) { @@ -11781,6 +12458,7 @@ * @typeofeditors ["CDE"] * @param {ApiTextPr} oTextPr - The properties that will be set to the current table cell text. * @return {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetTextPr.js */ ApiTableCell.prototype.SetTextPr = function(oTextPr) { @@ -11805,6 +12483,7 @@ * @memberof ApiTableCell * @typeofeditors ["CDE"] * @return {boolean} - returns false if parent row is invalid. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/Clear.js */ ApiTableCell.prototype.Clear = function() { @@ -11826,6 +12505,7 @@ * @param {number} nPos - The position where the current element will be added. * @param {DocumentElement} oElement - The document element which will be added at the current position. * @returns {boolean} - returns false if oElement is invalid. + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/AddElement.js */ ApiTableCell.prototype.AddElement = function(nPos, oElement) { @@ -11852,6 +12532,7 @@ * @param {boolean} bNone - Defines that background color will not be set. * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetBackgroundColor.js */ ApiTableCell.prototype.SetBackgroundColor = function(r, g, b, bNone) { @@ -11896,6 +12577,7 @@ * @param {boolean} bNone - Defines that background color will not be set. * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTableCell/Methods/SetColumnBackgroundColor.js */ ApiTableCell.prototype.SetColumnBackgroundColor = function(r, g, b, bNone) { @@ -11933,6 +12615,7 @@ * @memberof ApiStyle * @typeofeditors ["CDE"] * @returns {"style"} + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetClassType.js */ ApiStyle.prototype.GetClassType = function() { @@ -11943,6 +12626,7 @@ * @memberof ApiStyle * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetName.js */ ApiStyle.prototype.GetName = function() { @@ -11953,6 +12637,7 @@ * @memberof ApiStyle * @typeofeditors ["CDE"] * @param {string} sStyleName - The name which will be used for the current style. + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/SetName.js */ ApiStyle.prototype.SetName = function(sStyleName) { @@ -11963,6 +12648,7 @@ * @memberof ApiStyle * @typeofeditors ["CDE"] * @returns {StyleType} + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetType.js */ ApiStyle.prototype.GetType = function() { @@ -11984,6 +12670,7 @@ * @memberof ApiStyle * @typeofeditors ["CDE"] * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetTextPr.js */ ApiStyle.prototype.GetTextPr = function() { @@ -11994,6 +12681,7 @@ * @memberof ApiStyle * @typeofeditors ["CDE"] * @returns {ApiParaPr} + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetParaPr.js */ ApiStyle.prototype.GetParaPr = function() { @@ -12005,6 +12693,7 @@ * @typeofeditors ["CDE"] * @returns {?ApiTablePr} If the type of this style is not a "table" then it will return * null. + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetTablePr.js */ ApiStyle.prototype.GetTablePr = function() { @@ -12019,6 +12708,7 @@ * @typeofeditors ["CDE"] * @returns {?ApiTableRowPr} If the type of this style is not a "table" then it will return * null. + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetTableRowPr.js */ ApiStyle.prototype.GetTableRowPr = function() { @@ -12032,6 +12722,7 @@ * @memberof ApiStyle * @typeofeditors ["CDE"] * @returns {?ApiTableCellPr} + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetTableCellPr.js */ ApiStyle.prototype.GetTableCellPr = function() { @@ -12045,6 +12736,7 @@ * @memberof ApiStyle * @typeofeditors ["CDE"] * @param {ApiStyle} oStyle - The parent style which the style inherits properties from. + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/SetBasedOn.js */ ApiStyle.prototype.SetBasedOn = function(oStyle) { @@ -12060,6 +12752,7 @@ * @typeofeditors ["CDE"] * @param {TableStyleOverrideType} [sType="wholeTable"] - The table part which the formatting properties must be applied to. * @returns {ApiTableStylePr} + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/GetConditionalTableStyle.js */ ApiStyle.prototype.GetConditionalTableStyle = function(sType) { @@ -12098,6 +12791,7 @@ * @typeofeditors ["CDE"] * @param {boolean} bWriteNumberings - Specifies if the used numberings will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiStyle/Methods/ToJSON.js */ ApiStyle.prototype.ToJSON = function(bWriteNumberings) { @@ -12120,6 +12814,7 @@ * @memberof ApiTextPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"textPr"} + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetClassType.js */ ApiTextPr.prototype.GetClassType = function() { @@ -12133,6 +12828,7 @@ * @typeofeditors ["CDE"] * @param {ApiStyle} oStyle - The style which must be applied to the text character. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetStyle.js */ ApiTextPr.prototype.SetStyle = function(oStyle) { @@ -12150,6 +12846,7 @@ * @typeofeditors ["CDE"] * @return {?ApiStyle} - The used style. * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetStyle.js */ ApiTextPr.prototype.GetStyle = function() { @@ -12170,6 +12867,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isBold - Specifies that the contents of the run are displayed bold. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetBold.js */ ApiTextPr.prototype.SetBold = function(isBold) { @@ -12184,6 +12882,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetBold.js */ ApiTextPr.prototype.GetBold = function() { @@ -12196,6 +12895,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isItalic - Specifies that the contents of the current run are displayed italicized. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetItalic.js */ ApiTextPr.prototype.SetItalic = function(isItalic) { @@ -12210,6 +12910,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetItalic.js */ ApiTextPr.prototype.GetItalic = function() { @@ -12222,6 +12923,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isStrikeout - Specifies that the contents of the current run are displayed struck through. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetStrikeout.js */ ApiTextPr.prototype.SetStrikeout = function(isStrikeout) { @@ -12236,6 +12938,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetStrikeout.js */ ApiTextPr.prototype.GetStrikeout = function() { @@ -12249,6 +12952,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isUnderline - Specifies that the contents of the current run are displayed underlined. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetUnderline.js */ ApiTextPr.prototype.SetUnderline = function(isUnderline) { @@ -12263,6 +12967,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetUnderline.js */ ApiTextPr.prototype.GetUnderline = function() { @@ -12275,9 +12980,11 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {string} sFontFamily - The font family or families used for the current text run. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetFontFamily.js */ ApiTextPr.prototype.SetFontFamily = function(sFontFamily) { + LoadFont(sFontFamily); this.TextPr.RFonts.SetAll(sFontFamily, -1); this.private_OnChange(); return this; @@ -12289,6 +12996,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?string} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetFontFamily.js */ ApiTextPr.prototype.GetFontFamily = function() { @@ -12301,6 +13009,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {hps} nSize - The text size value measured in half-points (1/144 of an inch). * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetFontSize.js */ ApiTextPr.prototype.SetFontSize = function(nSize) { @@ -12315,6 +13024,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?hps} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetFontSize.js */ ApiTextPr.prototype.GetFontSize = function() { @@ -12334,6 +13044,7 @@ * @param {byte} b - Blue color component value. * @param {boolean} [isAuto=false] - If this parameter is set to "true", then r,g,b parameters will be ignored. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetColor.js */ ApiTextPr.prototype.SetColor = function(r, g, b, isAuto) { @@ -12348,6 +13059,7 @@ * @typeofeditors ["CDE"] * @return {?ApiRGBColor} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetColor.js */ ApiTextPr.prototype.GetColor = function() { @@ -12361,13 +13073,14 @@ /** * Specifies the alignment which will be applied to the contents of the run in relation to the default appearance of the run text: - * * "baseline" - the characters in the current text run will be aligned by the default text baseline. - * * "subscript" - the characters in the current text run will be aligned below the default text baseline. - * * "superscript" - the characters in the current text run will be aligned above the default text baseline. + * "baseline" - the characters in the current text run will be aligned by the default text baseline. + * "subscript" - the characters in the current text run will be aligned below the default text baseline. + * "superscript" - the characters in the current text run will be aligned above the default text baseline. * @memberof ApiTextPr * @typeofeditors ["CDE", "CSE", "CPE"] * @param {("baseline" | "subscript" | "superscript")} sType - The vertical alignment type applied to the text contents. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetVertAlign.js */ ApiTextPr.prototype.SetVertAlign = function(sType) { @@ -12388,6 +13101,7 @@ * @typeofeditors ["CDE"] * @return {?string} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetVertAlign.js */ ApiTextPr.prototype.GetVertAlign = function() { @@ -12410,6 +13124,7 @@ * @typeofeditors ["CDE", "CPE"] * @param {highlightColor} sColor - Available highlight color. * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetHighlight.js */ ApiTextPr.prototype.SetHighlight = function(sColor) { @@ -12442,6 +13157,7 @@ * @typeofeditors ["CDE", "CPE"] * @return {?string} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetHighlight.js */ ApiTextPr.prototype.GetHighlight = function() { @@ -12460,6 +13176,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {twips} nSpacing - The value of the text spacing measured in twentieths of a point (1/1440 of an inch). * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetSpacing.js */ ApiTextPr.prototype.SetSpacing = function(nSpacing) { @@ -12474,6 +13191,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?twips} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetSpacing.js */ ApiTextPr.prototype.GetSpacing = function() { @@ -12491,6 +13209,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isDoubleStrikeout - Specifies that the contents of the current run are displayed double struck through. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetDoubleStrikeout.js */ ApiTextPr.prototype.SetDoubleStrikeout = function(isDoubleStrikeout) { @@ -12505,6 +13224,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetDoubleStrikeout.js */ ApiTextPr.prototype.GetDoubleStrikeout = function() { @@ -12517,6 +13237,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isCaps - Specifies that the contents of the current run are displayed capitalized. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetCaps.js */ ApiTextPr.prototype.SetCaps = function(isCaps) { @@ -12531,6 +13252,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetCaps.js */ ApiTextPr.prototype.GetCaps = function() { @@ -12544,6 +13266,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} isSmallCaps - Specifies if the contents of the current run are displayed capitalized two points smaller or not. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetSmallCaps.js */ ApiTextPr.prototype.SetSmallCaps = function(isSmallCaps) { @@ -12558,6 +13281,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @return {?boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetSmallCaps.js */ ApiTextPr.prototype.GetSmallCaps = function() { @@ -12572,6 +13296,7 @@ * @param {hps} nPosition - Specifies a positive (raised text) or negative (lowered text) * measurement in half-points (1/144 of an inch). * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetPosition.js */ ApiTextPr.prototype.SetPosition = function(nPosition) { @@ -12586,6 +13311,7 @@ * @typeofeditors ["CDE"] * @return {?hps} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetPosition.js */ ApiTextPr.prototype.GetPosition = function() { @@ -12606,6 +13332,7 @@ * @param {string} sLangId - The possible value for this parameter is a language identifier as defined by * RFC 4646/BCP 47. Example: "en-CA". * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetLanguage.js */ ApiTextPr.prototype.SetLanguage = function(sLangId) { @@ -12624,6 +13351,7 @@ * @typeofeditors ["CDE"] * @return {?string} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetLanguage.js */ ApiTextPr.prototype.GetLanguage = function() { @@ -12646,6 +13374,7 @@ * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetShd.js */ ApiTextPr.prototype.SetShd = function(sType, r, g, b) { @@ -12660,6 +13389,7 @@ * @typeofeditors ["CDE"] * @return {?ApiRGBColor} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetShd.js */ ApiTextPr.prototype.GetShd = function() { @@ -12677,6 +13407,7 @@ * @typeofeditors ["CSE", "CPE"] * @param {ApiFill} oApiFill - The color or pattern used to fill the text color. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetFill.js */ ApiTextPr.prototype.SetFill = function(oApiFill) { @@ -12691,6 +13422,7 @@ * @typeofeditors ["CSE", "CPE"] * @return {ApiFill} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetFill.js */ ApiTextPr.prototype.GetFill = function() { @@ -12705,9 +13437,10 @@ /** * Sets the text fill to the current text run. * @memberof ApiTextPr - * @typeofeditors ["CSE", "CPE", "CSE"] + * @typeofeditors ["CDE", "CPE", "CSE"] * @param {ApiFill} oApiFill - The color or pattern used to fill the text color. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetTextFill.js */ ApiTextPr.prototype.SetTextFill = function(oApiFill) { @@ -12719,9 +13452,10 @@ /** * Gets the text fill from the current text properties. * @memberof ApiTextPr - * @typeofeditors ["CSE", "CPE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @return {ApiFill} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetTextFill.js */ ApiTextPr.prototype.GetTextFill = function() { @@ -12736,9 +13470,10 @@ /** * Sets the text outline to the current text run. * @memberof ApiTextPr - * @typeofeditors ["CSE", "CPE", "CSE"] + * @typeofeditors ["CDE", "CPE", "CSE"] * @param {ApiStroke} oStroke - The stroke used to create the text outline. * @return {ApiTextPr} - this text properties. + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/SetOutLine.js */ ApiTextPr.prototype.SetOutLine = function(oStroke) { @@ -12750,9 +13485,10 @@ /** * Gets the text outline from the current text properties. * @memberof ApiTextPr - * @typeofeditors ["CSE", "CPE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @return {ApiStroke} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/GetOutLine.js */ ApiTextPr.prototype.GetOutLine = function() { @@ -12770,6 +13506,7 @@ * @typeofeditors ["CDE"] * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiTextPr/Methods/ToJSON.js */ ApiTextPr.prototype.ToJSON = function(bWriteStyles) { @@ -12799,6 +13536,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"paraPr"} + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetClassType.js */ ApiParaPr.prototype.GetClassType = function() { @@ -12810,6 +13548,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE"] * @param {ApiStyle} oStyle - The style of the paragraph to be set. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetStyle.js */ ApiParaPr.prototype.SetStyle = function(oStyle) { @@ -12824,6 +13563,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE"] * @return {?ApiStyle} - The style of the paragraph. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetStyle.js */ ApiParaPr.prototype.GetStyle = function() { @@ -12853,6 +13593,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE"] * @param {boolean} isContextualSpacing - The true value will enable the paragraph contextual spacing. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetContextualSpacing.js */ ApiParaPr.prototype.SetContextualSpacing = function(isContextualSpacing) { @@ -12864,6 +13605,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @param {twips} nValue - The paragraph left side indentation value measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetIndLeft.js */ ApiParaPr.prototype.SetIndLeft = function(nValue) { @@ -12875,6 +13617,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {twips | undefined} - The paragraph left side indentation value measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetIndLeft.js */ ApiParaPr.prototype.GetIndLeft = function() { @@ -12891,6 +13634,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @param {twips} nValue - The paragraph right side indentation value measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetIndRight.js */ ApiParaPr.prototype.SetIndRight = function(nValue) { @@ -12902,6 +13646,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {twips | undefined} - The paragraph right side indentation value measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetIndRight.js */ ApiParaPr.prototype.GetIndRight = function() { @@ -12919,6 +13664,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @param {twips} nValue - The paragraph first line indentation value measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetIndFirstLine.js */ ApiParaPr.prototype.SetIndFirstLine = function(nValue) { @@ -12930,6 +13676,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {twips | undefined} - The paragraph first line indentation value measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetIndFirstLine.js */ ApiParaPr.prototype.GetIndFirstLine = function() { @@ -12949,6 +13696,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {("left" | "right" | "both" | "center")} sJc - The justification type that * will be applied to the paragraph contents. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetJc.js */ ApiParaPr.prototype.SetJc = function(sJc) { @@ -12960,6 +13708,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {("left" | "right" | "both" | "center" | undefined)} + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetJc.js */ ApiParaPr.prototype.GetJc = function() { @@ -12995,6 +13744,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE"] * @param {boolean} isKeepLines - The true value enables the option to keep lines of the paragraph on a single page. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetKeepLines.js */ ApiParaPr.prototype.SetKeepLines = function(isKeepLines) { @@ -13008,6 +13758,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isKeepNext - The true value enables the option to keep lines of the paragraph on the same * page as the following paragraph. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetKeepNext.js */ ApiParaPr.prototype.SetKeepNext = function(isKeepNext) { @@ -13021,6 +13772,7 @@ * @typeofeditors ["CDE"] * @param {boolean} isPageBreakBefore - The true value enables the option to render the contents of the paragraph * at the beginning of a new page in the document. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetPageBreakBefore.js */ ApiParaPr.prototype.SetPageBreakBefore = function(isPageBreakBefore) { @@ -13036,6 +13788,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {(twips | line240)} nLine - The line spacing value measured either in twentieths of a point (1/1440 of an inch) or in 240ths of a line. * @param {("auto" | "atLeast" | "exact")} sLineRule - The rule that determines the measuring units of the line spacing. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetSpacingLine.js */ ApiParaPr.prototype.SetSpacingLine = function(nLine, sLineRule) { @@ -13066,6 +13819,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {twips | line240 | undefined} - to know is twips or line240 use ApiParaPr.prototype.GetSpacingLineRule(). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetSpacingLineValue.js */ ApiParaPr.prototype.GetSpacingLineValue = function() { @@ -13098,6 +13852,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"auto" | "atLeast" | "exact" | undefined} + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetSpacingLineRule.js */ ApiParaPr.prototype.GetSpacingLineRule = function() { @@ -13135,6 +13890,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {twips} nBefore - The value of the spacing before the current paragraph measured in twentieths of a point (1/1440 of an inch). * @param {boolean} [isBeforeAuto=false] - The true value disables the spacing before the current paragraph. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetSpacingBefore.js */ ApiParaPr.prototype.SetSpacingBefore = function(nBefore, isBeforeAuto) { @@ -13151,6 +13907,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {twips} - The value of the spacing before the current paragraph measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetSpacingBefore.js */ ApiParaPr.prototype.GetSpacingBefore = function() { @@ -13172,6 +13929,7 @@ * @typeofeditors ["CDE", "CSE", "CPE"] * @param {twips} nAfter - The value of the spacing after the current paragraph measured in twentieths of a point (1/1440 of an inch). * @param {boolean} [isAfterAuto=false] - The true value disables the spacing after the current paragraph. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetSpacingAfter.js */ ApiParaPr.prototype.SetSpacingAfter = function(nAfter, isAfterAuto) { @@ -13188,6 +13946,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {twips} - The value of the spacing after the current paragraph measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetSpacingAfter.js */ ApiParaPr.prototype.GetSpacingAfter = function() { @@ -13210,6 +13969,7 @@ * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. * @param {boolean} [isAuto=false] - The true value disables paragraph contents shading. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetShd.js */ ApiParaPr.prototype.SetShd = function(sType, r, g, b, isAuto) { @@ -13221,6 +13981,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE"] * @returns {?ApiRGBColor} + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetShd.js */ ApiParaPr.prototype.GetShd = function() { @@ -13261,6 +14022,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetBottomBorder.js */ ApiParaPr.prototype.SetBottomBorder = function(sType, nSize, nSpace, r, g, b) { @@ -13277,6 +14039,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetLeftBorder.js */ ApiParaPr.prototype.SetLeftBorder = function(sType, nSize, nSpace, r, g, b) { @@ -13293,6 +14056,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetRightBorder.js */ ApiParaPr.prototype.SetRightBorder = function(sType, nSize, nSpace, r, g, b) { @@ -13310,6 +14074,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetTopBorder.js */ ApiParaPr.prototype.SetTopBorder = function(sType, nSize, nSpace, r, g, b) { @@ -13326,6 +14091,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetBetweenBorder.js */ ApiParaPr.prototype.SetBetweenBorder = function(sType, nSize, nSpace, r, g, b) { @@ -13337,6 +14103,7 @@ * @memberof ApiParaPr * @typeofeditors ["CDE"] * @param {boolean} isWidowControl - The true value means that a single line of the current paragraph will be displayed on a separate page from the remaining content at display time by moving the line onto the following page. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetWidowControl.js */ ApiParaPr.prototype.SetWidowControl = function(isWidowControl) { @@ -13352,6 +14119,7 @@ * measured in twentieths of a point (1/1440 of an inch). * @param {TabJc[]} aVal - An array of the styles of custom tab stops, which determines the behavior of the tab * stop and the alignment which will be applied to text entered at the current custom tab stop. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetTabs.js */ ApiParaPr.prototype.SetTabs = function(aPos, aVal) { @@ -13374,20 +14142,20 @@ * @param {number} [nLvl=0] - Specifies a numbering level reference. If the current instance of the ApiParaPr class is direct * formatting of a paragraph, then this parameter MUST BE specified. Otherwise, if the current instance of the ApiParaPr class * is the part of ApiStyle properties, this parameter will be ignored. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetNumPr.js */ ApiParaPr.prototype.SetNumPr = function(oNumPr, nLvl) { if (!(oNumPr instanceof ApiNumbering)) return; - - this.ParaPr.NumPr = new CNumPr(); - this.ParaPr.NumPr.NumId = oNumPr.Num.GetId(); - this.ParaPr.NumPr.Lvl = undefined; - + + let numId = oNumPr.Num.GetId(); + let numLvl = undefined; + if (this.Parent instanceof ApiParagraph) - { - this.ParaPr.NumPr.Lvl = Math.min(8, Math.max(0, (nLvl ? nLvl : 0))); - } + numLvl = Math.min(8, Math.max(0, (nLvl ? nLvl : 0))); + + this.ParaPr.NumPr = new AscWord.NumPr(numId, numLvl); this.private_OnChange(); }; /** @@ -13395,22 +14163,64 @@ * @memberof ApiParaPr * @typeofeditors ["CSE", "CPE"] * @param {?ApiBullet} oBullet - The bullet object created with the {@link Api#CreateBullet} or {@link Api#CreateNumbering} method. + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetBullet.js */ ApiParaPr.prototype.SetBullet = function(oBullet){ if(oBullet){ this.ParaPr.Bullet = oBullet.Bullet; } - else{ - this.ParaPr.Bullet = null; + else{ + this.ParaPr.Bullet = null; + } + this.private_OnChange(); + }; + + /** + * Sets the outline level for the specified properties. + * @memberof ApiParaPr + * @typeofeditors ["CDE", "CSE", "CPE"] + * @param {Number?} [nLvl=undefined] - The outline level. Possible values: 0-8. The 0 value means the basic outline level. + * To set no outline level, use this method without a parameter. + * @returns {boolean} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/SetOutlineLvl.js + */ + ApiParaPr.prototype.SetOutlineLvl = function(nLvl) + { + if (typeof(nLvl) === "number") { + nLvl = Math.ceil(nLvl); + if (nLvl < 0 || nLvl > 8) { + return false; + } + } + else if (nLvl != undefined) { + return false; } + + this.ParaPr.OutlineLvl = nLvl; this.private_OnChange(); }; + + /** + * Returns the outline level of the specified properties. + * @memberof ApiParaPr + * @typeofeditors ["CDE", "CSE", "CPE"] + * @returns {Number?} + * @since 8.2.0 + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/GetOutlineLvl.js + */ + ApiParaPr.prototype.GetOutlineLvl = function() + { + return this.ParaPr.OutlineLvl; + }; + /** * Converts the ApiParaPr object into the JSON object. * @memberof ApiParaPr * @typeofeditors ["CDE"] * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiParaPr/Methods/ToJSON.js */ ApiParaPr.prototype.ToJSON = function(bWriteStyles) { @@ -13433,6 +14243,7 @@ * @memberof ApiNumbering * @typeofeditors ["CDE"] * @returns {"numbering"} + * @see office-js-api/Examples/{Editor}/ApiNumbering/Methods/GetClassType.js */ ApiNumbering.prototype.GetClassType = function() { @@ -13444,6 +14255,7 @@ * @typeofeditors ["CDE"] * @param {number} nLevel - The numbering level index. This value MUST BE from 0 to 8. * @returns {ApiNumberingLevel} + * @see office-js-api/Examples/{Editor}/ApiNumbering/Methods/GetLevel.js */ ApiNumbering.prototype.GetLevel = function(nLevel) { @@ -13454,6 +14266,7 @@ * @memberof ApiNumbering * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiNumbering/Methods/ToJSON.js */ ApiNumbering.prototype.ToJSON = function() { @@ -13474,6 +14287,7 @@ * @memberof ApiNumberingLevel * @typeofeditors ["CDE"] * @returns {"numberingLevel"} + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/GetClassType.js */ ApiNumberingLevel.prototype.GetClassType = function() { @@ -13484,6 +14298,7 @@ * @memberof ApiNumberingLevel * @typeofeditors ["CDE"] * @returns {ApiNumbering} + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/GetNumbering.js */ ApiNumberingLevel.prototype.GetNumbering = function() { @@ -13494,6 +14309,7 @@ * @memberof ApiNumberingLevel * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/GetLevelIndex.js */ ApiNumberingLevel.prototype.GetLevelIndex = function() { @@ -13505,6 +14321,7 @@ * @memberof ApiNumberingLevel * @typeofeditors ["CDE"] * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/GetTextPr.js */ ApiNumberingLevel.prototype.GetTextPr = function() { @@ -13515,6 +14332,7 @@ * @memberof ApiNumberingLevel * @typeofeditors ["CDE"] * @returns {ApiParaPr} + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/GetParaPr.js */ ApiNumberingLevel.prototype.GetParaPr = function() { @@ -13526,6 +14344,7 @@ * @typeofeditors ["CDE"] * @param {("none" | "bullet" | "1)" | "1." | "I." | "A." | "a)" | "a." | "i." )} sType - The predefined numbering template. * @param {string} [sSymbol=""] - The symbol used for the list numbering. This parameter has the meaning only if the predefined numbering template is "bullet". + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/SetTemplateType.js */ ApiNumberingLevel.prototype.SetTemplateType = function(sType, sSymbol) { @@ -13568,6 +14387,7 @@ * "decimalZero")} sType - The custom numbering type used for the current numbering definition. * @param {string} sTextFormatString - Any text in this parameter will be taken as literal text to be repeated in each instance of this numbering level, except for any use of the percent symbol (%) followed by a number, which will be used to indicate the one-based index of the number to be used at this level. Any number of a level higher than this level will be ignored. * @param {("left" | "right" | "center")} sAlign - Type of justification applied to the text run in the current numbering level. + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/SetCustomType.js */ ApiNumberingLevel.prototype.SetCustomType = function(sType, sTextFormatString, sAlign) { @@ -13604,6 +14424,7 @@ * @memberof ApiNumberingLevel * @typeofeditors ["CDE"] * @param {boolean} isRestart - The true value means that a numbering level will be restarted to its starting value. + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/SetRestart.js */ ApiNumberingLevel.prototype.SetRestart = function(isRestart) { @@ -13614,6 +14435,7 @@ * @memberof ApiNumberingLevel * @typeofeditors ["CDE"] * @param {number} nStart - The starting value for the numbering used by the parent numbering level. + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/SetStart.js */ ApiNumberingLevel.prototype.SetStart = function(nStart) { @@ -13624,6 +14446,7 @@ * @memberof ApiNumberingLevel * @typeofeditors ["CDE"] * @param {("space" | "tab" | "none")} sType - The content added between the numbering level text and the text in the numbered paragraph. + * @see office-js-api/Examples/{Editor}/ApiNumberingLevel/Methods/SetSuff.js */ ApiNumberingLevel.prototype.SetSuff = function(sType) { @@ -13646,6 +14469,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @returns {"tablePr"} + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/GetClassType.js */ ApiTablePr.prototype.GetClassType = function() { @@ -13656,6 +14480,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {number} nCount - The number of columns measured in positive integers. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetStyleColBandSize.js */ ApiTablePr.prototype.SetStyleColBandSize = function(nCount) { @@ -13667,6 +14492,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {number} nCount - The number of rows measured in positive integers. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetStyleRowBandSize.js */ ApiTablePr.prototype.SetStyleRowBandSize = function(nCount) { @@ -13678,6 +14504,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {("left" | "right" | "center")} sJcType - The alignment type used for the current table placement. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetJc.js */ ApiTablePr.prototype.SetJc = function(sJcType) { @@ -13698,6 +14525,7 @@ * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. * @param {boolean} [isAuto=false] - The true value disables the SetShd method use. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetShd.js */ ApiTablePr.prototype.SetShd = function(sType, r, g, b, isAuto) { @@ -13714,6 +14542,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableBorderTop.js */ ApiTablePr.prototype.SetTableBorderTop = function(sType, nSize, nSpace, r, g, b) { @@ -13730,6 +14559,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableBorderBottom.js */ ApiTablePr.prototype.SetTableBorderBottom = function(sType, nSize, nSpace, r, g, b) { @@ -13746,6 +14576,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableBorderLeft.js */ ApiTablePr.prototype.SetTableBorderLeft = function(sType, nSize, nSpace, r, g, b) { @@ -13762,6 +14593,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableBorderRight.js */ ApiTablePr.prototype.SetTableBorderRight = function(sType, nSize, nSpace, r, g, b) { @@ -13779,6 +14611,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableBorderInsideH.js */ ApiTablePr.prototype.SetTableBorderInsideH = function(sType, nSize, nSpace, r, g, b) { @@ -13796,6 +14629,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableBorderInsideV.js */ ApiTablePr.prototype.SetTableBorderInsideV = function(sType, nSize, nSpace, r, g, b) { @@ -13810,6 +14644,7 @@ * @typeofeditors ["CDE"] * @param {twips} nValue - The value for the amount of space below the bottom extent of the cell measured in * twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableCellMarginBottom.js */ ApiTablePr.prototype.SetTableCellMarginBottom = function(nValue) { @@ -13822,6 +14657,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {twips} nValue - The value for the amount of space to the left extent of the cell measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableCellMarginLeft.js */ ApiTablePr.prototype.SetTableCellMarginLeft = function(nValue) { @@ -13834,6 +14670,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {twips} nValue - The value for the amount of space to the right extent of the cell measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableCellMarginRight.js */ ApiTablePr.prototype.SetTableCellMarginRight = function(nValue) { @@ -13846,6 +14683,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {twips} nValue - The value for the amount of space above the top extent of the cell measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableCellMarginTop.js */ ApiTablePr.prototype.SetTableCellMarginTop = function(nValue) { @@ -13857,6 +14695,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {?twips} nValue - Spacing value measured in twentieths of a point (1/1440 of an inch). "Null" means that no spacing will be applied. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetCellSpacing.js */ ApiTablePr.prototype.SetCellSpacing = function(nValue) { @@ -13872,6 +14711,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {twips} nValue - The indentation value measured in twentieths of a point (1/1440 of an inch). + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableInd.js */ ApiTablePr.prototype.SetTableInd = function(nValue) { @@ -13885,6 +14725,7 @@ * @typeofeditors ["CDE"] * @param {TableWidth} sType - Type of the width value from one of the available width values types. * @param {number} [nValue] - The table width value measured in positive integers. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetWidth.js */ ApiTablePr.prototype.SetWidth = function(sType, nValue) { @@ -13896,6 +14737,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @param {("autofit" | "fixed")} sType - The type of the table layout in the document. + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableLayout.js */ ApiTablePr.prototype.SetTableLayout = function(sType) { @@ -13912,6 +14754,7 @@ * @typeofeditors ["CDE"] * @param {string} sTitle - The table title to be set. * @return {boolean} + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableTitle.js */ ApiTablePr.prototype.SetTableTitle = function(sTitle) { @@ -13927,6 +14770,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @return {string} + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/GetTableTitle.js */ ApiTablePr.prototype.GetTableTitle = function() { @@ -13941,6 +14785,7 @@ * @typeofeditors ["CDE"] * @param {string} sDescr - The table description to be set. * @return {boolean} + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/SetTableDescription.js */ ApiTablePr.prototype.SetTableDescription = function(sDescr) { @@ -13956,6 +14801,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @return {string} + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/GetTableDescription.js */ ApiTablePr.prototype.GetTableDescription = function() { @@ -13969,6 +14815,7 @@ * @memberof ApiTablePr * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiTablePr/Methods/ToJSON.js */ ApiTablePr.prototype.ToJSON = function() { @@ -13987,6 +14834,7 @@ * @memberof ApiTableRowPr * @typeofeditors ["CDE"] * @returns {"tableRowPr"} + * @see office-js-api/Examples/{Editor}/ApiTableRowPr/Methods/GetClassType.js */ ApiTableRowPr.prototype.GetClassType = function() { @@ -13998,6 +14846,7 @@ * @typeofeditors ["CDE"] * @param {("auto" | "atLeast")} sHRule - The rule to apply the height value to the current table row or ignore it. Use the "atLeast" value to enable the SetHeight method use. * @param {twips} [nValue] - The height for the current table row measured in twentieths of a point (1/1440 of an inch). This value will be ignored if sHRule="auto". + * @see office-js-api/Examples/{Editor}/ApiTableRowPr/Methods/SetHeight.js */ ApiTableRowPr.prototype.SetHeight = function(sHRule, nValue) { @@ -14016,6 +14865,7 @@ * @memberof ApiTableRowPr * @typeofeditors ["CDE"] * @param {boolean} isHeader - The true value means that the current table row will be repeated at the top of each new page. + * @see office-js-api/Examples/{Editor}/ApiTableRowPr/Methods/SetTableHeader.js */ ApiTableRowPr.prototype.SetTableHeader = function(isHeader) { @@ -14027,6 +14877,7 @@ * @memberof ApiTableRowPr * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiTableRowPr/Methods/ToJSON.js */ ApiTableRowPr.prototype.ToJSON = function() { @@ -14045,6 +14896,7 @@ * @memberof ApiTableCellPr * @typeofeditors ["CDE"] * @returns {"tableCellPr"} + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/GetClassType.js */ ApiTableCellPr.prototype.GetClassType = function() { @@ -14059,6 +14911,7 @@ * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. * @param {boolean} [isAuto=false] - The true value disables the table cell contents shading. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetShd.js */ ApiTableCellPr.prototype.SetShd = function(sType, r, g, b, isAuto) { @@ -14073,6 +14926,7 @@ * @param {?twips} nValue - The value for the amount of space below the bottom extent of the cell measured in twentieths * of a point (1/1440 of an inch). If this value is null, then default table cell bottom margin will be used, otherwise * the table cell bottom margin will be overridden with the specified value for the current cell. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetCellMarginBottom.js */ ApiTableCellPr.prototype.SetCellMarginBottom = function(nValue) { @@ -14101,6 +14955,7 @@ * @param {?twips} nValue - The value for the amount of space to the left extent of the cell measured in twentieths * of a point (1/1440 of an inch). If this value is null, then default table cell left margin will be used, otherwise * the table cell left margin will be overridden with the specified value for the current cell. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetCellMarginLeft.js */ ApiTableCellPr.prototype.SetCellMarginLeft = function(nValue) { @@ -14128,6 +14983,7 @@ * @param {?twips} nValue - The value for the amount of space to the right extent of the cell measured in twentieths * of a point (1/1440 of an inch). If this value is null, then default table cell right margin will be used, otherwise * the table cell right margin will be overridden with the specified value for the current cell. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetCellMarginRight.js */ ApiTableCellPr.prototype.SetCellMarginRight = function(nValue) { @@ -14156,6 +15012,7 @@ * @param {?twips} nValue - The value for the amount of space above the upper extent of the cell measured in twentieths * of a point (1/1440 of an inch). If this value is null, then default table cell top margin will be used, otherwise * the table cell top margin will be overridden with the specified value for the current cell. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetCellMarginTop.js */ ApiTableCellPr.prototype.SetCellMarginTop = function(nValue) { @@ -14186,6 +15043,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetCellBorderBottom.js */ ApiTableCellPr.prototype.SetCellBorderBottom = function(sType, nSize, nSpace, r, g, b) { @@ -14202,6 +15060,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetCellBorderLeft.js */ ApiTableCellPr.prototype.SetCellBorderLeft = function(sType, nSize, nSpace, r, g, b) { @@ -14218,6 +15077,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetCellBorderRight.js */ ApiTableCellPr.prototype.SetCellBorderRight = function(sType, nSize, nSpace, r, g, b) { @@ -14234,6 +15094,7 @@ * @param {byte} r - Red color component value. * @param {byte} g - Green color component value. * @param {byte} b - Blue color component value. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetCellBorderTop.js */ ApiTableCellPr.prototype.SetCellBorderTop = function(sType, nSize, nSpace, r, g, b) { @@ -14246,6 +15107,7 @@ * @typeofeditors ["CDE"] * @param {TableWidth} sType - Type of the width value from one of the available width values types. * @param {number} [nValue] - The table cell width value measured in positive integers. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetWidth.js */ ApiTableCellPr.prototype.SetWidth = function(sType, nValue) { @@ -14257,6 +15119,7 @@ * @memberof ApiTableCellPr * @typeofeditors ["CDE"] * @param {("top" | "center" | "bottom")} sType - The available types of the vertical alignment for the text contents of the current table cell. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetVerticalAlign.js */ ApiTableCellPr.prototype.SetVerticalAlign = function(sType) { @@ -14276,6 +15139,7 @@ * @param {("lrtb" | "tbrl" | "btlr")} sType - The available types of the text direction in the table cell: "lrtb" * - text direction left-to-right moving from top to bottom, "tbrl" - text direction top-to-bottom moving from right * to left, "btlr" - text direction bottom-to-top moving from left to right. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetTextDirection.js */ ApiTableCellPr.prototype.SetTextDirection = function(sType) { @@ -14294,6 +15158,7 @@ * @memberof ApiTableCellPr * @typeofeditors ["CDE"] * @param {boolean} isNoWrap - The true value means that the current table cell will not be wrapped in the parent table. + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/SetNoWrap.js */ ApiTableCellPr.prototype.SetNoWrap = function(isNoWrap) { @@ -14305,6 +15170,7 @@ * @memberof ApiTableCellPr * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiTableCellPr/Methods/ToJSON.js */ ApiTableCellPr.prototype.ToJSON = function() { @@ -14323,6 +15189,7 @@ * @memberof ApiTableStylePr * @typeofeditors ["CDE"] * @returns {"tableStylePr"} + * @see office-js-api/Examples/{Editor}/ApiTableStylePr/Methods/GetClassType.js */ ApiTableStylePr.prototype.GetClassType = function() { @@ -14333,6 +15200,7 @@ * @memberof ApiTableStylePr * @typeofeditors ["CDE"] * @returns {TableStyleOverrideType} + * @see office-js-api/Examples/{Editor}/ApiTableStylePr/Methods/GetType.js */ ApiTableStylePr.prototype.GetType = function() { @@ -14343,6 +15211,7 @@ * @memberof ApiTableStylePr * @typeofeditors ["CDE"] * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiTableStylePr/Methods/GetTextPr.js */ ApiTableStylePr.prototype.GetTextPr = function() { @@ -14353,6 +15222,7 @@ * @memberof ApiTableStylePr * @typeofeditors ["CDE"] * @returns {ApiParaPr} + * @see office-js-api/Examples/{Editor}/ApiTableStylePr/Methods/GetParaPr.js */ ApiTableStylePr.prototype.GetParaPr = function() { @@ -14363,6 +15233,7 @@ * @memberof ApiTableStylePr * @typeofeditors ["CDE"] * @returns {ApiTablePr} + * @see office-js-api/Examples/{Editor}/ApiTableStylePr/Methods/GetTablePr.js */ ApiTableStylePr.prototype.GetTablePr = function() { @@ -14373,6 +15244,7 @@ * @memberof ApiTableStylePr * @typeofeditors ["CDE"] * @returns {ApiTableRowPr} + * @see office-js-api/Examples/{Editor}/ApiTableStylePr/Methods/GetTableRowPr.js */ ApiTableStylePr.prototype.GetTableRowPr = function() { @@ -14383,6 +15255,7 @@ * @memberof ApiTableStylePr * @typeofeditors ["CDE"] * @returns {ApiTableCellPr} + * @see office-js-api/Examples/{Editor}/ApiTableStylePr/Methods/GetTableCellPr.js */ ApiTableStylePr.prototype.GetTableCellPr = function() { @@ -14393,6 +15266,7 @@ * @memberof ApiTableStylePr * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiTableStylePr/Methods/ToJSON.js */ ApiTableStylePr.prototype.ToJSON = function() { @@ -14405,12 +15279,17 @@ // ApiDrawing // //------------------------------------------------------------------------------------------------------------------ - + ApiDrawing.prototype.getParaDrawing = function() + { + if(!this.Drawing) return null; + return this.Drawing.parent; + }; /** * Returns a type of the ApiDrawing class. * @memberof ApiDrawing * @typeofeditors ["CDE", "CPE"] * @returns {"drawing"} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetClassType.js */ ApiDrawing.prototype.GetClassType = function() { @@ -14422,82 +15301,85 @@ * @typeofeditors ["CDE"] * @param {EMU} nWidth - The object width measured in English measure units. * @param {EMU} nHeight - The object height measured in English measure units. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetSize.js */ ApiDrawing.prototype.SetSize = function(nWidth, nHeight) { - var fWidth = private_EMU2MM(nWidth); - var fHeight = private_EMU2MM(nHeight); - this.Drawing.setExtent(fWidth, fHeight); - if(this.Drawing.GraphicObj && this.Drawing.GraphicObj.spPr && this.Drawing.GraphicObj.spPr.xfrm) + let fWidth = private_EMU2MM(nWidth); + let fHeight = private_EMU2MM(nHeight); + this.getParaDrawing().setExtent(fWidth, fHeight); + if(this.Drawing.spPr && this.Drawing.spPr.xfrm) { - this.Drawing.GraphicObj.spPr.xfrm.setExtX(fWidth); - this.Drawing.GraphicObj.spPr.xfrm.setExtY(fHeight); + this.Drawing.spPr.xfrm.setExtX(fWidth); + this.Drawing.spPr.xfrm.setExtY(fHeight); } }; /** * Sets the wrapping type of the current object (image, shape, chart). One of the following wrapping style types can be set: - * * "inline" - the object is considered to be a part of the text, like a character, so when the text moves, the object moves as well. In this case the positioning options are inaccessible. + * "inline" - the object is considered to be a part of the text, like a character, so when the text moves, the object moves as well. In this case the positioning options are inaccessible. * If one of the following styles is selected, the object can be moved independently of the text and positioned on the page exactly: - * * "square" - the text wraps the rectangular box that bounds the object. - * * "tight" - the text wraps the actual object edges. - * * "through" - the text wraps around the object edges and fills in the open white space within the object. - * * "topAndBottom" - the text is only above and below the object. - * * "behind" - the text overlaps the object. - * * "inFront" - the object overlaps the text. + * "square" - the text wraps the rectangular box that bounds the object. + * "tight" - the text wraps the actual object edges. + * "through" - the text wraps around the object edges and fills in the open white space within the object. + * "topAndBottom" - the text is only above and below the object. + * "behind" - the text overlaps the object. + * "inFront" - the object overlaps the text. * @memberof ApiDrawing * @typeofeditors ["CDE"] * @param {"inline" | "square" | "tight" | "through" | "topAndBottom" | "behind" | "inFront"} sType - The wrapping style type available for the object. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetWrappingStyle.js */ ApiDrawing.prototype.SetWrappingStyle = function(sType) { - if(this.Drawing) + let oParaDrawing = this.getParaDrawing(); + if(oParaDrawing) { if ("inline" === sType) { - this.Drawing.Set_DrawingType(drawing_Inline); - this.Drawing.Set_WrappingType(WRAPPING_TYPE_NONE); - this.Drawing.Set_BehindDoc(false); + oParaDrawing.Set_DrawingType(drawing_Inline); + oParaDrawing.Set_WrappingType(WRAPPING_TYPE_NONE); + oParaDrawing.Set_BehindDoc(false); } else if ("square" === sType) { - this.Drawing.Set_DrawingType(drawing_Anchor); - this.Drawing.Set_WrappingType(WRAPPING_TYPE_SQUARE); - this.Drawing.Set_BehindDoc(false); + oParaDrawing.Set_DrawingType(drawing_Anchor); + oParaDrawing.Set_WrappingType(WRAPPING_TYPE_SQUARE); + oParaDrawing.Set_BehindDoc(false); } else if ("tight" === sType) { - this.Drawing.Set_DrawingType(drawing_Anchor); - this.Drawing.Set_WrappingType(WRAPPING_TYPE_TIGHT); - this.Drawing.Set_BehindDoc(true); + oParaDrawing.Set_DrawingType(drawing_Anchor); + oParaDrawing.Set_WrappingType(WRAPPING_TYPE_TIGHT); + oParaDrawing.Set_BehindDoc(true); } else if ("through" === sType) { - this.Drawing.Set_DrawingType(drawing_Anchor); - this.Drawing.Set_WrappingType(WRAPPING_TYPE_THROUGH); - this.Drawing.Set_BehindDoc(true); + oParaDrawing.Set_DrawingType(drawing_Anchor); + oParaDrawing.Set_WrappingType(WRAPPING_TYPE_THROUGH); + oParaDrawing.Set_BehindDoc(true); } else if ("topAndBottom" === sType) { - this.Drawing.Set_DrawingType(drawing_Anchor); - this.Drawing.Set_WrappingType(WRAPPING_TYPE_TOP_AND_BOTTOM); - this.Drawing.Set_BehindDoc(false); + oParaDrawing.Set_DrawingType(drawing_Anchor); + oParaDrawing.Set_WrappingType(WRAPPING_TYPE_TOP_AND_BOTTOM); + oParaDrawing.Set_BehindDoc(false); } else if ("behind" === sType) { - this.Drawing.Set_DrawingType(drawing_Anchor); - this.Drawing.Set_WrappingType(WRAPPING_TYPE_NONE); - this.Drawing.Set_BehindDoc(true); + oParaDrawing.Set_DrawingType(drawing_Anchor); + oParaDrawing.Set_WrappingType(WRAPPING_TYPE_NONE); + oParaDrawing.Set_BehindDoc(true); } else if ("inFront" === sType) { - this.Drawing.Set_DrawingType(drawing_Anchor); - this.Drawing.Set_WrappingType(WRAPPING_TYPE_NONE); - this.Drawing.Set_BehindDoc(false); + oParaDrawing.Set_DrawingType(drawing_Anchor); + oParaDrawing.Set_WrappingType(WRAPPING_TYPE_NONE); + oParaDrawing.Set_BehindDoc(false); } - this.Drawing.Check_WrapPolygon(); - if(this.Drawing.GraphicObj && this.Drawing.GraphicObj.setRecalculateInfo) + oParaDrawing.Check_WrapPolygon(); + if(this.Drawing.setRecalculateInfo) { - this.Drawing.GraphicObj.setRecalculateInfo(); + this.Drawing.setRecalculateInfo(); } } }; @@ -14507,12 +15389,13 @@ * @typeofeditors ["CDE"] * @param {RelFromH} [sRelativeFrom="page"] - The document element which will be taken as a countdown point for the object horizontal alignment. * @param {("left" | "right" | "center")} [sAlign="left"] - The alignment type which will be used for the object horizontal alignment. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetHorAlign.js */ ApiDrawing.prototype.SetHorAlign = function(sRelativeFrom, sAlign) { - var nAlign = private_GetAlignH(sAlign); - var nRelativeFrom = private_GetRelativeFromH(sRelativeFrom); - this.Drawing.Set_PositionH(nRelativeFrom, true, nAlign, false); + let nAlign = private_GetAlignH(sAlign); + let nRelativeFrom = private_GetRelativeFromH(sRelativeFrom); + this.getParaDrawing().Set_PositionH(nRelativeFrom, true, nAlign, false); }; /** * Specifies how the floating object will be vertically aligned. @@ -14520,12 +15403,13 @@ * @typeofeditors ["CDE"] * @param {RelFromV} [sRelativeFrom="page"] - The document element which will be taken as a countdown point for the object vertical alignment. * @param {("top" | "bottom" | "center")} [sAlign="top"] - The alingment type which will be used for the object vertical alignment. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetVerAlign.js */ ApiDrawing.prototype.SetVerAlign = function(sRelativeFrom, sAlign) { - var nAlign = private_GetAlignV(sAlign); - var nRelativeFrom = private_GetRelativeFromV(sRelativeFrom); - this.Drawing.Set_PositionV(nRelativeFrom, true, nAlign, false); + let nAlign = private_GetAlignV(sAlign); + let nRelativeFrom = private_GetRelativeFromV(sRelativeFrom); + this.getParaDrawing().Set_PositionV(nRelativeFrom, true, nAlign, false); }; /** * Sets the absolute measurement for the horizontal positioning of the floating object. @@ -14533,12 +15417,13 @@ * @typeofeditors ["CDE"] * @param {RelFromH} sRelativeFrom - The document element which will be taken as a countdown point for the object horizontal alignment. * @param {EMU} nDistance - The distance from the right side of the document element to the floating object measured in English measure units. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetHorPosition.js */ ApiDrawing.prototype.SetHorPosition = function(sRelativeFrom, nDistance) { - var nValue = private_EMU2MM(nDistance); - var nRelativeFrom = private_GetRelativeFromH(sRelativeFrom); - this.Drawing.Set_PositionH(nRelativeFrom, false, nValue, false); + let nValue = private_EMU2MM(nDistance); + let nRelativeFrom = private_GetRelativeFromH(sRelativeFrom); + this.getParaDrawing().Set_PositionH(nRelativeFrom, false, nValue, false); }; /** * Sets the absolute measurement for the vertical positioning of the floating object. @@ -14546,12 +15431,13 @@ * @typeofeditors ["CDE"] * @param {RelFromV} sRelativeFrom - The document element which will be taken as a countdown point for the object vertical alignment. * @param {EMU} nDistance - The distance from the bottom part of the document element to the floating object measured in English measure units. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetVerPosition.js */ ApiDrawing.prototype.SetVerPosition = function(sRelativeFrom, nDistance) { - var nValue = private_EMU2MM(nDistance); - var nRelativeFrom = private_GetRelativeFromV(sRelativeFrom); - this.Drawing.Set_PositionV(nRelativeFrom, false, nValue, false); + let nValue = private_EMU2MM(nDistance); + let nRelativeFrom = private_GetRelativeFromV(sRelativeFrom); + this.getParaDrawing().Set_PositionV(nRelativeFrom, false, nValue, false); }; /** * Specifies the minimum distance which will be maintained between the edges of the current drawing object and any @@ -14562,23 +15448,24 @@ * @param {EMU} nTop - The distance from the top side of the current object and the preceding text run measured in English measure units. * @param {EMU} nRight - The distance from the right side of the current object and the subsequent text run measured in English measure units. * @param {EMU} nBottom - The distance from the bottom side of the current object and the subsequent text run measured in English measure units. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetDistances.js */ ApiDrawing.prototype.SetDistances = function(nLeft, nTop, nRight, nBottom) { - this.Drawing.Set_Distance(private_EMU2MM(nLeft), private_EMU2MM(nTop), private_EMU2MM(nRight), private_EMU2MM(nBottom)); + this.getParaDrawing().Set_Distance(private_EMU2MM(nLeft), private_EMU2MM(nTop), private_EMU2MM(nRight), private_EMU2MM(nBottom)); }; /** * Returns a parent paragraph that contains the graphic object. * @memberof ApiDrawing * @typeofeditors ["CDE"] * @return {ApiParagraph | null} - returns null if parent paragraph doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetParentParagraph.js */ ApiDrawing.prototype.GetParentParagraph = function() { - var Paragraph = this.Drawing.GetParagraph(); - + let Paragraph = this.getParaDrawing().GetParagraph(); if (Paragraph) - return new ApiParagraph(this.Drawing.GetParagraph()); + return new ApiParagraph(Paragraph); else return null; }; @@ -14587,6 +15474,7 @@ * @memberof ApiDrawing * @typeofeditors ["CDE"] * @return {ApiBlockLvlSdt | null} - returns null if parent content control doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetParentContentControl.js */ ApiDrawing.prototype.GetParentContentControl = function() { @@ -14601,6 +15489,7 @@ * @memberof ApiDrawing * @typeofeditors ["CDE"] * @return {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetParentTable.js */ ApiDrawing.prototype.GetParentTable = function() { @@ -14614,6 +15503,7 @@ * Returns a parent table cell that contains the graphic object. * @typeofeditors ["CDE"] * @return {ApiTableCell | null} - returns null if parent cell doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetParentTableCell.js */ ApiDrawing.prototype.GetParentTableCell = function() { @@ -14627,16 +15517,18 @@ * Deletes the current graphic object. * @typeofeditors ["CDE"] * @return {boolean} - returns false if drawing object haven't parent. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/Delete.js */ ApiDrawing.prototype.Delete = function() { - var ParaParent = this.GetParentParagraph(); + let ParaParent = this.GetParentParagraph(); if (ParaParent) { - this.Drawing.PreDelete(); - var oParentRun = this.Drawing.GetRun(); - oParentRun.RemoveElement(this.Drawing); + let oParaDrawing = this.getParaDrawing(); + oParaDrawing.PreDelete(); + let oParentRun = oParaDrawing.GetRun(); + oParentRun.RemoveElement(oParaDrawing); return true; } @@ -14648,17 +15540,14 @@ * @memberof ApiDrawing * @typeofeditors ["CDE"] * @return {ApiDrawing} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/Copy.js */ ApiDrawing.prototype.Copy = function() { - var oDrawing = this.Drawing.copy(); - - if (this instanceof ApiShape - || this instanceof ApiChart - || this instanceof ApiImage) - return new this.constructor(oDrawing.GraphicObj); - - return new ApiDrawing(oDrawing); + let oParaDrawing = this.getParaDrawing(); + if(!oParaDrawing) return null; + let oCopyParaDrawing = oParaDrawing.copy(); + return new this.constructor(oCopyParaDrawing.GraphicObj); }; /** * Wraps the graphic object with a rich text content control. @@ -14666,14 +15555,16 @@ * @typeofeditors ["CDE"] * @param {number} nType - Defines if this method returns the ApiBlockLvlSdt (nType === 1) or ApiDrawing (any value except 1) object. * @return {ApiDrawing | ApiBlockLvlSdt} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/InsertInContentControl.js */ ApiDrawing.prototype.InsertInContentControl = function(nType) { - var Document = editor.private_GetLogicDocument(); - var ContentControl; - var paragraphInControl = null; - var parentParagraph = this.Drawing.GetParagraph(); - var paraIndex = -1; + let Document = editor.private_GetLogicDocument(); + let ContentControl; + let paragraphInControl = null; + let paraDrawing = this.getParaDrawing(); + let parentParagraph = paraDrawing.GetParagraph(); + let paraIndex = -1; if (parentParagraph) paraIndex = parentParagraph.Index; @@ -14693,7 +15584,7 @@ paragraphInControl.RemoveFromContent(0, paragraphInControl.Content.length - 1); paragraphInControl.CorrectContent(); } - paragraphInControl.Add(this.Drawing); + paragraphInControl.Add(paraDrawing); ContentControl.Sdt.SetShowingPlcHdr(false); } @@ -14710,6 +15601,7 @@ * @param {string} sPosition - The position where the text or paragraph will be inserted ("before" or "after" the drawing specified). * @param {boolean} beRNewPara - Defines if this method returns a new paragraph (true) or the current ApiDrawing (false). * @return {ApiParagraph | ApiDrawing} - returns null if parent paragraph doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/InsertParagraph.js */ ApiDrawing.prototype.InsertParagraph = function(paragraph, sPosition, beRNewPara) { @@ -14730,13 +15622,14 @@ * Selects the current graphic object. * @memberof ApiDrawing * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/Select.js */ ApiDrawing.prototype.Select = function() { - var Api = editor; - var oDocument = Api.GetDocument(); - this.Drawing.SelectAsText(); - oDocument.Document.UpdateSelection(); + let oParaDrawing = this.getParaDrawing(); + if(!oParaDrawing) return; + let oLogicDocument = private_GetLogicDocument(); + oLogicDocument.Select_DrawingObject(oParaDrawing.Id); }; /** * Inserts a break at the specified location in the main document. @@ -14745,10 +15638,12 @@ * @param {number} breakType - The break type: page break (0) or line break (1). * @param {string} position - The position where the page or line break will be inserted ("before" or "after" the current drawing). * @returns {boolean} - returns false if drawing object haven't parent run or params are invalid. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/AddBreak.js */ ApiDrawing.prototype.AddBreak = function(breakType, position) { - var ParentRun = (new ApiRun(this.Drawing.GetRun())); + let oParaDrawing = this.getParaDrawing(); + var ParentRun = (new ApiRun(oParaDrawing.GetRun())); if (!ParentRun || position !== "before" && position !== "after" || breakType !== 1 && breakType !== 0) return false; @@ -14756,16 +15651,16 @@ if (breakType === 0) { if (position === "before") - ParentRun.Run.Add_ToContent(ParentRun.Run.Content.indexOf(this.Drawing), new AscWord.CRunBreak(AscWord.break_Page)); + ParentRun.Run.Add_ToContent(ParentRun.Run.Content.indexOf(oParaDrawing), new AscWord.CRunBreak(AscWord.break_Page)); else if (position === "after") - ParentRun.Run.Add_ToContent(ParentRun.Run.Content.indexOf(this.Drawing) + 1, new AscWord.CRunBreak(AscWord.break_Page)); + ParentRun.Run.Add_ToContent(ParentRun.Run.Content.indexOf(oParaDrawing) + 1, new AscWord.CRunBreak(AscWord.break_Page)); } else if (breakType === 1) { if (position === "before") - ParentRun.Run.Add_ToContent(ParentRun.Run.Content.indexOf(this.Drawing), new AscWord.CRunBreak(AscWord.break_Line)); + ParentRun.Run.Add_ToContent(ParentRun.Run.Content.indexOf(oParaDrawing), new AscWord.CRunBreak(AscWord.break_Line)); else if (position === "after") - ParentRun.Run.Add_ToContent(ParentRun.Run.Content.indexOf(this.Drawing) + 1, new AscWord.CRunBreak(AscWord.break_Line)); + ParentRun.Run.Add_ToContent(ParentRun.Run.Content.indexOf(oParaDrawing) + 1, new AscWord.CRunBreak(AscWord.break_Line)); } return true; @@ -14775,11 +15670,12 @@ * @memberof ApiDrawing * @typeofeditors ["CDE"] * @param {boolean} bFlip - Specifies if the figure will be flipped horizontally or not. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetHorFlip.js */ ApiDrawing.prototype.SetHorFlip = function(bFlip) { - if (this.Drawing.GraphicObj && this.Drawing.GraphicObj.spPr && this.Drawing.GraphicObj.spPr.xfrm) - this.Drawing.GraphicObj.spPr.xfrm.setFlipH(bFlip); + if (this.Drawing.spPr && this.Drawing.spPr.xfrm) + this.Drawing.spPr.xfrm.setFlipH(bFlip); }; /** * Flips the current drawing vertically. @@ -14787,14 +15683,15 @@ * @typeofeditors ["CDE"] * @param {boolean} bFlip - Specifies if the figure will be flipped vertically or not. * @returns {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetVertFlip.js */ ApiDrawing.prototype.SetVertFlip = function(bFlip) { if (typeof(bFlip) !== "boolean") return false; - if (this.Drawing.GraphicObj && this.Drawing.GraphicObj.spPr && this.Drawing.GraphicObj.spPr.xfrm) - this.Drawing.GraphicObj.spPr.xfrm.setFlipV(bFlip); + if (this.Drawing && this.Drawing.spPr && this.Drawing.spPr.xfrm) + this.Drawing.spPr.xfrm.setFlipV(bFlip); return true; }; @@ -14804,19 +15701,21 @@ * @typeofeditors ["CDE"] * @param {number} coefficient - The coefficient by which the figure height will be scaled. * @returns {boolean} - return false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/ScaleHeight.js */ ApiDrawing.prototype.ScaleHeight = function(coefficient) { if (typeof(coefficient) !== "number") return false; - var currentHeight = this.Drawing.getXfrmExtY(); - var currentWidth = this.Drawing.getXfrmExtX(); + let oParaDrawing = this.getParaDrawing(); + var currentHeight = oParaDrawing.getXfrmExtY(); + var currentWidth = oParaDrawing.getXfrmExtX(); - this.Drawing.setExtent(currentWidth, currentHeight * coefficient); - if(this.Drawing.GraphicObj && this.Drawing.GraphicObj.spPr && this.Drawing.GraphicObj.spPr.xfrm) + oParaDrawing.setExtent(currentWidth, currentHeight * coefficient); + if(this.Drawing.spPr && this.Drawing.spPr.xfrm) { - this.Drawing.GraphicObj.spPr.xfrm.setExtY(currentHeight * coefficient); + this.Drawing.spPr.xfrm.setExtY(currentHeight * coefficient); } return true; @@ -14827,19 +15726,20 @@ * @typeofeditors ["CDE"] * @param {number} coefficient - The coefficient by which the figure width will be scaled. * @returns {boolean} - return false if param is invali. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/ScaleWidth.js */ ApiDrawing.prototype.ScaleWidth = function(coefficient) { if (typeof(coefficient) !== "number") return false; + let oParaDrawing = this.getParaDrawing(); + var currentHeight = oParaDrawing.getXfrmExtY(); + var currentWidth = oParaDrawing.getXfrmExtX(); - var currentHeight = this.Drawing.getXfrmExtY(); - var currentWidth = this.Drawing.getXfrmExtX(); - - this.Drawing.setExtent(currentWidth * coefficient, currentHeight); - if(this.Drawing.GraphicObj && this.Drawing.GraphicObj.spPr && this.Drawing.GraphicObj.spPr.xfrm) + oParaDrawing.setExtent(currentWidth * coefficient, currentHeight); + if(this.Drawing.spPr && this.Drawing.spPr.xfrm) { - this.Drawing.GraphicObj.spPr.xfrm.setExtX(currentWidth * coefficient); + this.Drawing.spPr.xfrm.setExtX(currentWidth * coefficient); } return true; @@ -14850,13 +15750,14 @@ * @typeofeditors ["CDE"] * @param {ApiFill} oFill - The fill type used to fill the graphic object. * @returns {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/Fill.js */ ApiDrawing.prototype.Fill = function(oFill) { if (!oFill || !oFill.GetClassType || oFill.GetClassType() !== "fill") return false; - this.Drawing.GraphicObj.spPr.setFill(oFill.UniFill); + this.Drawing.spPr.setFill(oFill.UniFill); return true; }; /** @@ -14865,13 +15766,14 @@ * @typeofeditors ["CDE"] * @param {ApiStroke} oStroke - The stroke used to create the graphic object outline. * @returns {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetOutLine.js */ ApiDrawing.prototype.SetOutLine = function(oStroke) { if (!oStroke || !oStroke.GetClassType || oStroke.GetClassType() !== "stroke") return false; - this.Drawing.GraphicObj.spPr.setLn(oStroke.Ln); + this.Drawing.spPr.setLn(oStroke.Ln); return true; }; /** @@ -14879,16 +15781,18 @@ * @memberof ApiDrawing * @typeofeditors ["CDE"] * @returns {ApiDrawing | null} - returns null if drawing object is last. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetNextDrawing.js */ ApiDrawing.prototype.GetNextDrawing = function() { - var oDocument = editor.GetDocument(); - var GetAllDrawingObjects = oDocument.GetAllDrawingObjects(); - var drawingIndex = null; + let oDocument = editor.GetDocument(); + let GetAllDrawingObjects = oDocument.GetAllDrawingObjects(); + let drawingIndex = null; + let paraDrawingId = this.getParaDrawing().Id; - for (var Index = 0; Index < GetAllDrawingObjects.length; Index++) + for (let Index = 0; Index < GetAllDrawingObjects.length; Index++) { - if (GetAllDrawingObjects[Index].Drawing.Id === this.Drawing.Id) + if (GetAllDrawingObjects[Index].getParaDrawing().Id === paraDrawingId) { drawingIndex = Index; break; @@ -14905,16 +15809,18 @@ * @memberof ApiDrawing * @typeofeditors ["CDE"] * @returns {ApiDrawing | null} - returns null if drawing object is first. + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetPrevDrawing.js */ ApiDrawing.prototype.GetPrevDrawing = function() { - var oDocument = editor.GetDocument(); - var GetAllDrawingObjects = oDocument.GetAllDrawingObjects(); - var drawingIndex = null; + let oDocument = editor.GetDocument(); + let GetAllDrawingObjects = oDocument.GetAllDrawingObjects(); + let drawingIndex = null; + let paraDrawingId = this.getParaDrawing().Id; - for (var Index = 0; Index < GetAllDrawingObjects.length; Index++) + for (let Index = 0; Index < GetAllDrawingObjects.length; Index++) { - if (GetAllDrawingObjects[Index].Drawing.Id === this.Drawing.Id) + if (GetAllDrawingObjects[Index].getParaDrawing().Id === paraDrawingId) { drawingIndex = Index; break; @@ -14933,11 +15839,12 @@ * @param {boolean} bWriteNumberings - Specifies if the used numberings will be written to the JSON object or not. * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/ToJSON.js */ ApiDrawing.prototype.ToJSON = function(bWriteNumberings, bWriteStyles) { var oWriter = new AscJsonConverter.WriterToJSON(); - var oJSON = oWriter.SerParaDrawing(this.Drawing); + var oJSON = oWriter.SerParaDrawing(this.getParaDrawing()); if (bWriteNumberings) oJSON["numbering"] = oWriter.jsonWordNumberings; if (bWriteStyles) @@ -14950,28 +15857,30 @@ * @memberof ApiDrawing * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {EMU} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetWidth.js */ ApiDrawing.prototype.GetWidth = function() { - return private_MM2EMU(this.Drawing.getXfrmExtX()); + return private_MM2EMU(this.getParaDrawing().getXfrmExtX()); }; /** * Returns the height of the current drawing. * @memberof ApiDrawing * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {EMU} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetHeight.js */ ApiDrawing.prototype.GetHeight = function() { - return private_MM2EMU(this.Drawing.getXfrmExtY()); + return private_MM2EMU(this.getParaDrawing().getXfrmExtY()); }; /** * Returns the lock value for the specified lock type of the current drawing. * @typeofeditors ["CDE"] - * @param {"noGrp" | "noUngrp" | "noSelect" | "noRot" | "noChangeAspect" | "noMove" | "noResize" | "noEditPoints" | "noAdjustHandles" - * | "noChangeArrowheads" | "noChangeShapeType" | "noDrilldown" | "noTextEdit" | "noCrop" | "txBox"} sType - Lock type in the string format. + * @param {DrawingLockType} sType - Lock type in the string format. * @returns {bool} - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetLockValue.js + */ ApiDrawing.prototype.GetLockValue = function(sType) { var nLockType = private_GetDrawingLockType(sType); @@ -14979,8 +15888,8 @@ if (nLockType === -1) return false; - if (this.Drawing && this.Drawing.GraphicObj) - return this.Drawing.GraphicObj.getLockValue(nLockType); + if (this.Drawing) + return this.Drawing.getLockValue(nLockType); return false; }; @@ -14988,11 +15897,11 @@ /** * Sets the lock value to the specified lock type of the current drawing. * @typeofeditors ["CDE"] - * @param {"noGrp" | "noUngrp" | "noSelect" | "noRot" | "noChangeAspect" | "noMove" | "noResize" | "noEditPoints" | "noAdjustHandles" - * | "noChangeArrowheads" | "noChangeShapeType" | "noDrilldown" | "noTextEdit" | "noCrop" | "txBox"} sType - Lock type in the string format. + * @param {DrawingLockType} sType - Lock type in the string format. * @param {bool} bValue - Specifies if the specified lock is applied to the current drawing. * @returns {bool} - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetLockValue.js + */ ApiDrawing.prototype.SetLockValue = function(sType, bValue) { var nLockType = private_GetDrawingLockType(sType); @@ -15000,9 +15909,9 @@ if (nLockType === -1) return false; - if (this.Drawing && this.Drawing.GraphicObj) + if (this.Drawing) { - this.Drawing.GraphicObj.setLockValue(nLockType, bValue); + this.Drawing.setLockValue(nLockType, bValue); return true; } @@ -15016,13 +15925,14 @@ * @param {ApiDrawing} oAnotherDrawing - The drawing which properties will be set to the current drawing. * @typeofeditors ["CDE"] * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/SetDrawingPrFromDrawing.js + */ ApiDrawing.prototype.SetDrawingPrFromDrawing = function(oAnotherDrawing) { if (!(oAnotherDrawing instanceof ApiDrawing)) return false; - this.Drawing.SetDrawingPrFromDrawing(oAnotherDrawing.Drawing); + this.getParaDrawing().SetDrawingPrFromDrawing(oAnotherDrawing.getParaDrawing()); return true; }; @@ -15037,6 +15947,7 @@ * @memberof ApiImage * @typeofeditors ["CDE", "CPE"] * @returns {"image"} + * @see office-js-api/Examples/{Editor}/ApiImage/Methods/GetClassType.js */ ApiImage.prototype.GetClassType = function() { @@ -15047,6 +15958,7 @@ * @memberof ApiImage * @typeofeditors ["CDE"] * @returns {ApiImage | null} - returns null if image is last. + * @see office-js-api/Examples/{Editor}/ApiImage/Methods/GetNextImage.js */ ApiImage.prototype.GetNextImage = function() { @@ -15073,6 +15985,7 @@ * @memberof ApiImage * @typeofeditors ["CDE"] * @returns {ApiImage | null} - returns null if image is first. + * @see office-js-api/Examples/{Editor}/ApiImage/Methods/GetPrevImage.js */ ApiImage.prototype.GetPrevImage = function() { @@ -15106,6 +16019,7 @@ * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {"oleObject"} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetClassType.js */ ApiOleObject.prototype.GetClassType = function() { @@ -15118,6 +16032,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {string} sData - The OLE object string data. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/SetData.js */ ApiOleObject.prototype.SetData = function(sData) { @@ -15133,6 +16048,7 @@ * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetData.js */ ApiOleObject.prototype.GetData = function() { @@ -15148,6 +16064,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {string} sAppId - The application ID associated with the curent OLE object. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/SetApplicationId.js */ ApiOleObject.prototype.SetApplicationId = function(sAppId) { @@ -15163,6 +16080,7 @@ * @memberof ApiOleObject * @typeofeditors ["CDE", "CPE", "CSE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiOleObject/Methods/GetApplicationId.js */ ApiOleObject.prototype.GetApplicationId = function() { @@ -15183,6 +16101,7 @@ * @memberof ApiShape * @typeofeditors ["CDE", "CSE"] * @returns {"shape"} + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetClassType.js */ ApiShape.prototype.GetClassType = function() { @@ -15193,6 +16112,7 @@ * @memberof ApiShape * @typeofeditors ["CDE", "CSE"] * @returns {?ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetDocContent.js */ ApiShape.prototype.GetDocContent = function() { @@ -15207,6 +16127,7 @@ * @memberof ApiShape * @typeofeditors ["CDE", "CSE"] * @returns {?ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetContent.js */ ApiShape.prototype.GetContent = function() { @@ -15222,6 +16143,7 @@ * @memberof ApiShape * @typeofeditors ["CDE", "CSE"] * @param {VerticalTextAlign} VerticalAlign - The type of the vertical alignment for the shape inner contents. + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/SetVerticalTextAlign.js */ ApiShape.prototype.SetVerticalTextAlign = function(VerticalAlign) { @@ -15255,6 +16177,7 @@ * @param {?EMU} nTop - Top padding. * @param {?EMU} nRight - Right padding. * @param {?EMU} nBottom - Bottom padding. + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/SetPaddings.js */ ApiShape.prototype.SetPaddings = function(nLeft, nTop, nRight, nBottom) { @@ -15273,6 +16196,7 @@ * @memberof ApiShape * @typeofeditors ["CDE"] * @returns {ApiShape | null} - returns null if shape is last. + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetNextShape.js */ ApiShape.prototype.GetNextShape = function() { @@ -15299,6 +16223,7 @@ * @memberof ApiShape * @typeofeditors ["CDE"] * @returns {ApiShape | null} - returns null is shape is first. + * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetPrevShape.js */ ApiShape.prototype.GetPrevShape = function() { @@ -15329,43 +16254,40 @@ /** * Returns a type of the ApiChart class. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"chart"} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/GetClassType.js */ ApiChart.prototype.GetClassType = function() { return "chart"; }; - ApiChart.prototype.CreateTitle = function(sTitle, nFontSize){ + /** + * Returns a type of the chart object. + * @memberof ApiChart + * @typeofeditors ["CDE", "CSE", "CPE"] + * @returns {ChartType} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/GetChartType.js + */ + ApiChart.prototype.GetChartType = function() + { if(!this.Chart) { - return null; + return "unknown"; } - if(typeof sTitle === "string" && sTitle.length > 0){ - var oTitle = new AscFormat.CTitle(); - oTitle.setOverlay(false); - oTitle.setTx(new AscFormat.CChartText()); - var oTextBody = AscFormat.CreateTextBodyFromString(sTitle, this.Chart.getDrawingDocument(), oTitle.tx); - if(AscFormat.isRealNumber(nFontSize)){ - oTextBody.content.SetApplyToAll(true); - oTextBody.content.AddToParagraph(new ParaTextPr({ FontSize : nFontSize})); - oTextBody.content.SetApplyToAll(false); - } - oTitle.tx.setRich(oTextBody); - return oTitle; - } - return null; + let nType = this.Chart.getChartType(); + return private_ChartInternalTypeToBuilder(nType); }; - /** * Specifies the chart title. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {string} sTitle - The title which will be displayed for the current chart. * @param {pt} nFontSize - The text size value measured in points. * @param {?bool} bIsBold - Specifies if the chart title is written in bold font or not. + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetTitle.js */ ApiChart.prototype.SetTitle = function (sTitle, nFontSize, bIsBold) { @@ -15375,11 +16297,12 @@ /** * Specifies the chart horizontal axis title. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {string} sTitle - The title which will be displayed for the horizontal axis of the current chart. * @param {pt} nFontSize - The text size value measured in points. * @param {?bool} bIsBold - Specifies if the horizontal axis title is written in bold font or not. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetHorAxisTitle.js + */ ApiChart.prototype.SetHorAxisTitle = function (sTitle, nFontSize, bIsBold) { AscFormat.builder_SetChartHorAxisTitle(this.Chart, sTitle, nFontSize, bIsBold); @@ -15388,11 +16311,12 @@ /** * Specifies the chart vertical axis title. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {string} sTitle - The title which will be displayed for the vertical axis of the current chart. * @param {pt} nFontSize - The text size value measured in points. * @param {?bool} bIsBold - Specifies if the vertical axis title is written in bold font or not. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetVerAxisTitle.js + */ ApiChart.prototype.SetVerAxisTitle = function (sTitle, nFontSize, bIsBold) { AscFormat.builder_SetChartVertAxisTitle(this.Chart, sTitle, nFontSize, bIsBold); @@ -15401,9 +16325,10 @@ /** * Specifies the vertical axis orientation. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} bIsMinMax - The true value will set the normal data direction for the vertical axis (from minimum to maximum). - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetVerAxisOrientation.js + */ ApiChart.prototype.SetVerAxisOrientation = function(bIsMinMax){ AscFormat.builder_SetChartVertAxisOrientation(this.Chart, bIsMinMax); }; @@ -15411,9 +16336,10 @@ /** * Specifies the horizontal axis orientation. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} bIsMinMax - The true value will set the normal data direction for the horizontal axis (from minimum to maximum). - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetHorAxisOrientation.js + */ ApiChart.prototype.SetHorAxisOrientation = function(bIsMinMax){ AscFormat.builder_SetChartHorAxisOrientation(this.Chart, bIsMinMax); }; @@ -15421,9 +16347,10 @@ /** * Specifies the chart legend position. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {"left" | "top" | "right" | "bottom" | "none"} sLegendPos - The position of the chart legend inside the chart window. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetLegendPos.js + */ ApiChart.prototype.SetLegendPos = function(sLegendPos) { if(this.Chart && this.Chart.chart) @@ -15481,9 +16408,10 @@ /** * Specifies the legend font size. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {pt} nFontSize - The text size value measured in points. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetLegendFontSize.js + */ ApiChart.prototype.SetLegendFontSize = function(nFontSize) { AscFormat.builder_SetLegendFontSize(this.Chart, nFontSize); @@ -15492,12 +16420,13 @@ /** * Specifies which chart data labels are shown for the chart. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {boolean} bShowSerName - Whether to show or hide the source table column names used for the data which the chart will be build from. * @param {boolean} bShowCatName - Whether to show or hide the source table row names used for the data which the chart will be build from. * @param {boolean} bShowVal - Whether to show or hide the chart data values. * @param {boolean} bShowPercent - Whether to show or hide the percent for the data values (works with stacked chart types). - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetShowDataLabels.js + */ ApiChart.prototype.SetShowDataLabels = function(bShowSerName, bShowCatName, bShowVal, bShowPercent) { AscFormat.builder_SetShowDataLabels(this.Chart, bShowSerName, bShowCatName, bShowVal, bShowPercent); @@ -15507,14 +16436,15 @@ /** * Spicifies the show options for data labels. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {number} nSeriesIndex - The series index from the array of the data used to build the chart from. * @param {number} nPointIndex - The point index from this series. * @param {boolean} bShowSerName - Whether to show or hide the source table column names used for the data which the chart will be build from. * @param {boolean} bShowCatName - Whether to show or hide the source table row names used for the data which the chart will be build from. * @param {boolean} bShowVal - Whether to show or hide the chart data values. * @param {boolean} bShowPercent - Whether to show or hide the percent for the data values (works with stacked chart types). - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetShowPointDataLabel.js + */ ApiChart.prototype.SetShowPointDataLabel = function(nSeriesIndex, nPointIndex, bShowSerName, bShowCatName, bShowVal, bShowPercent) { AscFormat.builder_SetShowPointDataLabel(this.Chart, nSeriesIndex, nPointIndex, bShowSerName, bShowCatName, bShowVal, bShowPercent); @@ -15523,9 +16453,10 @@ /** * Spicifies tick labels position for the vertical axis. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {TickLabelPosition} sTickLabelPosition - The type for the position of chart vertical tick labels. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetVertAxisTickLabelPosition.js + */ ApiChart.prototype.SetVertAxisTickLabelPosition = function(sTickLabelPosition) { AscFormat.builder_SetChartVertAxisTickLablePosition(this.Chart, sTickLabelPosition); @@ -15534,9 +16465,10 @@ /** * Spicifies tick labels position for the horizontal axis. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {TickLabelPosition} sTickLabelPosition - The type for the position of chart horizontal tick labels. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetHorAxisTickLabelPosition.js + */ ApiChart.prototype.SetHorAxisTickLabelPosition = function(sTickLabelPosition) { AscFormat.builder_SetChartHorAxisTickLablePosition(this.Chart, sTickLabelPosition); @@ -15545,9 +16477,10 @@ /** * Specifies major tick mark for the horizontal axis. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetHorAxisMajorTickMark.js + */ ApiChart.prototype.SetHorAxisMajorTickMark = function(sTickMark){ AscFormat.builder_SetChartHorAxisMajorTickMark(this.Chart, sTickMark); }; @@ -15555,9 +16488,10 @@ /** * Specifies minor tick mark for the horizontal axis. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetHorAxisMinorTickMark.js + */ ApiChart.prototype.SetHorAxisMinorTickMark = function(sTickMark){ AscFormat.builder_SetChartHorAxisMinorTickMark(this.Chart, sTickMark); }; @@ -15565,9 +16499,10 @@ /** * Specifies major tick mark for the vertical axis. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetVertAxisMajorTickMark.js + */ ApiChart.prototype.SetVertAxisMajorTickMark = function(sTickMark){ AscFormat.builder_SetChartVerAxisMajorTickMark(this.Chart, sTickMark); @@ -15576,9 +16511,10 @@ /** * Specifies minor tick mark for the vertical axis. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {TickMark} sTickMark - The type of tick mark appearance. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetVertAxisMinorTickMark.js + */ ApiChart.prototype.SetVertAxisMinorTickMark = function(sTickMark){ AscFormat.builder_SetChartVerAxisMinorTickMark(this.Chart, sTickMark); }; @@ -15586,9 +16522,10 @@ /** * Specifies major vertical gridline visual properties. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetMajorVerticalGridlines.js + */ ApiChart.prototype.SetMajorVerticalGridlines = function(oStroke) { AscFormat.builder_SetVerAxisMajorGridlines(this.Chart, oStroke ? oStroke.Ln : null); @@ -15597,9 +16534,10 @@ /** * Specifies minor vertical gridline visual properties. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetMinorVerticalGridlines.js + */ ApiChart.prototype.SetMinorVerticalGridlines = function(oStroke) { AscFormat.builder_SetVerAxisMinorGridlines(this.Chart, oStroke ? oStroke.Ln : null); @@ -15609,9 +16547,10 @@ /** * Specifies major horizontal gridline visual properties. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetMajorHorizontalGridlines.js + */ ApiChart.prototype.SetMajorHorizontalGridlines = function(oStroke) { AscFormat.builder_SetHorAxisMajorGridlines(this.Chart, oStroke ? oStroke.Ln : null); @@ -15620,9 +16559,10 @@ /** * Specifies minor horizontal gridline visual properties. * @memberof ApiChart - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CSE", "CPE"] * @param {?ApiStroke} oStroke - The stroke used to create the element shadow. - * */ + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetMinorHorizontalGridlines.js + */ ApiChart.prototype.SetMinorHorizontalGridlines = function(oStroke) { AscFormat.builder_SetHorAxisMinorGridlines(this.Chart, oStroke ? oStroke.Ln : null); @@ -15634,6 +16574,7 @@ * @memberof ApiChart * @typeofeditors ["CDE"] * @param {pt} nFontSize - The text size value measured in points. + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetHorAxisLablesFontSize.js */ ApiChart.prototype.SetHorAxisLablesFontSize = function(nFontSize){ AscFormat.builder_SetHorAxisFontSize(this.Chart, nFontSize); @@ -15644,6 +16585,7 @@ * @memberof ApiChart * @typeofeditors ["CDE"] * @param {pt} nFontSize - The text size value measured in points. + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetVertAxisLablesFontSize.js */ ApiChart.prototype.SetVertAxisLablesFontSize = function(nFontSize){ AscFormat.builder_SetVerAxisFontSize(this.Chart, nFontSize); @@ -15654,6 +16596,7 @@ * @memberof ApiChart * @typeofeditors ["CDE"] * @returns {ApiChart | null} - returns null if chart is last. + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/GetNextChart.js */ ApiChart.prototype.GetNextChart = function() { @@ -15681,6 +16624,7 @@ * @memberof ApiChart * @typeofeditors ["CDE"] * @returns {ApiChart | null} - return null if char if first. + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/GetPrevChart.js */ ApiChart.prototype.GetPrevChart = function() { @@ -15709,6 +16653,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {number} nSeria - The index of the chart series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/RemoveSeria.js */ ApiChart.prototype.RemoveSeria = function(nSeria) { @@ -15722,6 +16667,7 @@ * @param {number[]} aValues - The array of the data which will be set to the specified chart series. * @param {number} nSeria - The index of the chart series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetSeriaValues.js */ ApiChart.prototype.SetSeriaValues = function(aValues, nSeria) { @@ -15734,6 +16680,7 @@ * @typeofeditors ["CDE", "CPE"] * @param {string[]} aValues - The array of the data which will be set to the x-axis data points. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetXValues.js */ ApiChart.prototype.SetXValues = function(aValues) { @@ -15749,6 +16696,7 @@ * @param {string} sName - The name which will be set to the specified chart series. * @param {number} nSeria - The index of the chart series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetSeriaName.js */ ApiChart.prototype.SetSeriaName = function(sName, nSeria) { @@ -15762,6 +16710,7 @@ * @param {string} sName - The name which will be set to the specified chart category. * @param {number} nCategory - The index of the chart category. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetCategoryName.js */ ApiChart.prototype.SetCategoryName = function(sName, nCategory) { @@ -15774,6 +16723,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param nStyleId - One of the styles available in the editor. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/ApplyChartStyle.js */ ApiChart.prototype.ApplyChartStyle = function(nStyleId) { @@ -15798,6 +16748,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {ApiFill} oFill - The fill type used to fill the plot area. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetPlotAreaFill.js */ ApiChart.prototype.SetPlotAreaFill = function(oFill) { @@ -15814,6 +16765,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {ApiStroke} oStroke - The stroke used to create the plot area outline. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetPlotAreaOutLine.js */ ApiChart.prototype.SetPlotAreaOutLine = function(oStroke) { @@ -15832,6 +16784,7 @@ * @param {number} nSeries - The index of the chart series. * @param {boolean} [bAll=false] - Specifies if the fill will be applied to all series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetSeriesFill.js */ ApiChart.prototype.SetSeriesFill = function(oFill, nSeries, bAll) { @@ -15849,6 +16802,7 @@ * @param {number} nSeries - The index of the chart series. * @param {boolean} [bAll=false] - Specifies if the outline will be applied to all series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetSeriesOutLine.js */ ApiChart.prototype.SetSeriesOutLine = function(oStroke, nSeries, bAll) { @@ -15867,6 +16821,7 @@ * @param {number} nDataPoint - The index of the data point in the specified chart series. * @param {boolean} [bAllSeries=false] - Specifies if the fill will be applied to the specified data point in all series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetDataPointFill.js */ ApiChart.prototype.SetDataPointFill = function(oFill, nSeries, nDataPoint, bAllSeries) { @@ -15885,6 +16840,7 @@ * @param {number} nDataPoint - The index of the data point in the specified chart series. * @param {boolean} bAllSeries - Specifies if the outline will be applied to the specified data point in all series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetDataPointOutLine.js */ ApiChart.prototype.SetDataPointOutLine = function(oStroke, nSeries, nDataPoint, bAllSeries) { @@ -15903,6 +16859,7 @@ * @param {number} nMarker - The index of the marker in the specified chart series. * @param {boolean} [bAllMarkers=false] - Specifies if the fill will be applied to all markers in the specified chart series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetMarkerFill.js */ ApiChart.prototype.SetMarkerFill = function(oFill, nSeries, nMarker, bAllMarkers) { @@ -15921,6 +16878,7 @@ * @param {number} nMarker - The index of the marker in the specified chart series. * @param {boolean} [bAllMarkers=false] - Specifies if the outline will be applied to all markers in the specified chart series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetMarkerOutLine.js */ ApiChart.prototype.SetMarkerOutLine = function(oStroke, nSeries, nMarker, bAllMarkers) { @@ -15936,6 +16894,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {ApiFill} oFill - The fill type used to fill the title. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetTitleFill.js */ ApiChart.prototype.SetTitleFill = function(oFill) { @@ -15951,6 +16910,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {ApiStroke} oStroke - The stroke used to create the title outline. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetTitleOutLine.js */ ApiChart.prototype.SetTitleOutLine = function(oStroke) { @@ -15966,6 +16926,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {ApiFill} oFill - The fill type used to fill the legend. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetLegendFill.js */ ApiChart.prototype.SetLegendFill = function(oFill) { @@ -15981,6 +16942,7 @@ * @typeofeditors ["CDE", "CPE", "CSE"] * @param {ApiStroke} oStroke - The stroke used to create the legend outline. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetLegendOutLine.js */ ApiChart.prototype.SetLegendOutLine = function(oStroke) { @@ -15997,6 +16959,7 @@ * @param {NumFormat | String} sFormat - Numeric format (can be custom format). * @param {AxisPos} - Axis position in the chart. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetAxieNumFormat.js */ ApiChart.prototype.SetAxieNumFormat = function(sFormat, sAxiePos) { @@ -16029,6 +16992,7 @@ * @param {NumFormat | String} sFormat - Numeric format (can be custom format). * @param {Number} nSeria - Series index. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetSeriaNumFormat.js */ ApiChart.prototype.SetSeriaNumFormat = function(sFormat, nSeria) { @@ -16044,12 +17008,112 @@ * @param {number} nDataPoint - The index of the data point in the specified chart series. * @param {boolean} bAllSeries - Specifies if the numeric format will be applied to the specified data point in all series. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/SetDataPointNumFormat.js */ ApiChart.prototype.SetDataPointNumFormat = function(sFormat, nSeria, nDataPoint, bAllSeries) { return this.Chart.SetDataPointNumFormat(sFormat, nSeria, nDataPoint, bAllSeries); }; + /** + * Returns all series from the chart space. + * @memberof ApiChart + * @typeofeditors ["CDE", "CPE", "CSE"] + * @returns {ApiChartSeries[]} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/GetAllSeries.js + */ + ApiChart.prototype.GetAllSeries = function() + { + if(!this.Chart) return []; + let aAllSeries = this.Chart.getAllSeries(); + let aBuilderSeries = []; + for(let nSer = 0; nSer < aAllSeries.length; ++nSer) + { + let oSer = aAllSeries[nSer]; + let oBuilderSer = new ApiChartSeries(this.Chart, oSer.idx); + aBuilderSeries.push(oBuilderSer); + } + return aBuilderSeries; + }; + + /** + * Returns the series with a specific index. + * @memberof ApiChart + * @typeofeditors ["CDE", "CPE", "CSE"] + * @param {number} nIdx - Series index. + * @returns {?ApiChartSeries} + * @see office-js-api/Examples/{Editor}/ApiChart/Methods/GetSeries.js + */ + ApiChart.prototype.GetSeries = function(nIdx) + { + if(!this.Chart) return null; + let oSeries = this.Chart.getSeriesByIdx(nIdx); + if(!oSeries) return null; + return new ApiChartSeries(this.Chart, nIdx); + }; + + //------------------------------------------------------------------------------------------------------------------ + // + // ApiChartSeries + // + //------------------------------------------------------------------------------------------------------------------ + + ApiChartSeries.prototype.private_GetSeries = function() + { + if(!this.ChartSpace) return null; + return this.ChartSpace.getSeriesByIdx(this.Idx); + }; + + /** + * Returns a type of the ApiChartSeries class. + * @memberof ApiChartSeries + * @typeofeditors ["CDE", "CPE", "CSE"] + * @returns {"chartSeries"} + * @see office-js-api/Examples/{Editor}/ApiChartSeries/Methods/GetClassType.js + */ + ApiChartSeries.prototype.GetClassType = function() + { + return "chartSeries"; + }; + + /** + * Tries to change the series type. Returns true if successful. + * @memberof ApiChartSeries + * @typeofeditors ["CDE", "CPE", "CSE"] + * @param {ChartType} sType - Chart type. + * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiChartSeries/Methods/ChangeChartType.js + */ + ApiChartSeries.prototype.ChangeChartType = function(sType) + { + let oSeries = this.private_GetSeries(); + if(!oSeries) + { + return false; + } + let nType = AscFormat.ChartBuilderTypeToInternal(sType); + let nResult = oSeries.tryChangeChartType(nType); + return nResult === Asc.c_oAscError.ID.No; + }; + + /** + * Returns a chart type of the current series. + * @memberof ApiChartSeries + * @typeofeditors ["CDE", "CPE", "CSE"] + * @returns {ChartType} + * @see office-js-api/Examples/{Editor}/ApiChartSeries/Methods/GetChartType.js + */ + ApiChartSeries.prototype.GetChartType = function() + { + let oSeries = this.private_GetSeries(); + if(!oSeries) + { + return "unknown"; + } + let nType = oSeries.asc_getChartType(); + return private_ChartInternalTypeToBuilder(nType); + }; + //------------------------------------------------------------------------------------------------------------------ // // ApiFill @@ -16061,6 +17125,7 @@ * @memberof ApiFill * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"fill"} + * @see office-js-api/Examples/{Editor}/ApiFill/Methods/GetClassType.js */ ApiFill.prototype.GetClassType = function() { @@ -16071,6 +17136,7 @@ * @memberof ApiFill * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiFill/Methods/ToJSON.js */ ApiFill.prototype.ToJSON = function() { @@ -16089,6 +17155,7 @@ * @memberof ApiStroke * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"stroke"} + * @see office-js-api/Examples/{Editor}/ApiStroke/Methods/GetClassType.js */ ApiStroke.prototype.GetClassType = function() { @@ -16099,6 +17166,7 @@ * @memberof ApiStroke * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiStroke/Methods/ToJSON.js */ ApiStroke.prototype.ToJSON = function() { @@ -16117,6 +17185,7 @@ * @memberof ApiGradientStop * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"gradientStop"} + * @see office-js-api/Examples/{Editor}/ApiGradientStop/Methods/GetClassType.js */ ApiGradientStop.prototype.GetClassType = function () { @@ -16127,6 +17196,7 @@ * @memberof ApiGradientStop * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiGradientStop/Methods/ToJSON.js */ ApiGradientStop.prototype.ToJSON = function() { @@ -16145,6 +17215,7 @@ * @memberof ApiUniColor * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"uniColor"} + * @see office-js-api/Examples/{Editor}/ApiUniColor/Methods/GetClassType.js */ ApiUniColor.prototype.GetClassType = function () { @@ -16155,6 +17226,7 @@ * @memberof ApiUniColor * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiUniColor/Methods/ToJSON.js */ ApiUniColor.prototype.ToJSON = function() { @@ -16162,10 +17234,11 @@ return JSON.stringify(oWriter.SerColor(this.Unicolor)); }; /** - * Returns the value of color in RGB format + * Returns a color value in RGB format. * @memberof ApiUniColor * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiUniColor/Methods/GetRGB.js */ ApiUniColor.prototype.GetRGB = function() { @@ -16191,6 +17264,7 @@ * @memberof ApiRGBColor * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"rgbColor"} + * @see office-js-api/Examples/{Editor}/ApiRGBColor/Methods/GetClassType.js */ ApiRGBColor.prototype.GetClassType = function () { @@ -16201,6 +17275,7 @@ * @memberof ApiRGBColor * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiRGBColor/Methods/ToJSON.js */ ApiRGBColor.prototype.ToJSON = function() { @@ -16219,6 +17294,7 @@ * @memberof ApiSchemeColor * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"schemeColor"} + * @see office-js-api/Examples/{Editor}/ApiSchemeColor/Methods/GetClassType.js */ ApiSchemeColor.prototype.GetClassType = function () { @@ -16229,6 +17305,7 @@ * @memberof ApiSchemeColor * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiSchemeColor/Methods/ToJSON.js */ ApiSchemeColor.prototype.ToJSON = function() { @@ -16247,6 +17324,7 @@ * @memberof ApiPresetColor * @typeofeditors ["CDE", "CSE", "CPE"] * @returns {"presetColor"} + * @see office-js-api/Examples/{Editor}/ApiPresetColor/Methods/GetClassType.js */ ApiPresetColor.prototype.GetClassType = function () { @@ -16257,6 +17335,7 @@ * @memberof ApiPresetColor * @typeofeditors ["CDE"] * @returns {JSON} + * @see office-js-api/Examples/{Editor}/ApiPresetColor/Methods/ToJSON.js */ ApiPresetColor.prototype.ToJSON = function() { @@ -16269,6 +17348,7 @@ * @memberof ApiBullet * @typeofeditors ["CSE", "CPE"] * @returns {"bullet"} + * @see office-js-api/Examples/{Editor}/ApiBullet/Methods/GetClassType.js */ ApiBullet.prototype.GetClassType = function() { @@ -16286,6 +17366,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {"inlineLvlSdt"} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetClassType.js */ ApiInlineLvlSdt.prototype.GetClassType = function() { @@ -16300,6 +17381,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @param {"contentLocked" | "sdtContentLocked" | "sdtLocked"} sLockType - The lock type applied to the inline text content control. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/SetLock.js */ ApiInlineLvlSdt.prototype.SetLock = function(sLockType) { @@ -16319,6 +17401,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {SdtLock} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetLock.js */ ApiInlineLvlSdt.prototype.GetLock = function() { @@ -16341,6 +17424,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @param {string} sTag - The tag which will be added to the current inline text content control. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/SetTag.js */ ApiInlineLvlSdt.prototype.SetTag = function(sTag) { @@ -16352,6 +17436,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetTag.js */ ApiInlineLvlSdt.prototype.GetTag = function() { @@ -16363,6 +17448,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @param {string} sLabel - The label which will be added to the current inline text content control. Can be a positive or negative integer from -2147483647 to 2147483647. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/SetLabel.js */ ApiInlineLvlSdt.prototype.SetLabel = function(sLabel) { @@ -16374,6 +17460,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetLabel.js */ ApiInlineLvlSdt.prototype.GetLabel = function() { @@ -16385,6 +17472,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @param {string} sAlias - The alias which will be added to the current inline text content control. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/SetAlias.js */ ApiInlineLvlSdt.prototype.SetAlias = function(sAlias) { @@ -16396,6 +17484,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetAlias.js */ ApiInlineLvlSdt.prototype.GetAlias = function() { @@ -16409,6 +17498,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetElementsCount.js */ ApiInlineLvlSdt.prototype.GetElementsCount = function() { @@ -16421,6 +17511,7 @@ * @typeofeditors ["CDE"] * @param {number} nPos - The position where the element which content we want to get must be located. * @returns {?ParagraphContent} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetElement.js */ ApiInlineLvlSdt.prototype.GetElement = function(nPos) { @@ -16436,6 +17527,7 @@ * @typeofeditors ["CDE"] * @param {number} nPos - The position of the element which we want to remove from the current inline text content control. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/RemoveElement.js */ ApiInlineLvlSdt.prototype.RemoveElement = function(nPos) { @@ -16457,6 +17549,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {boolean} - returns false if control has not elements. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/RemoveAllElements.js */ ApiInlineLvlSdt.prototype.RemoveAllElements = function() { @@ -16482,6 +17575,7 @@ * @param {ParagraphContent} oElement - The document element which will be added at the position specified. Returns false if the type of *oElement* is not supported by an inline text content control. * @param {number} [nPos] - The position of the element where it will be added to the current inline text content control. If this value is not specified, then the element will be added to the end of the current inline text content control. * @returns {boolean} - returns false if oElement unsupported. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/AddElement.js */ ApiInlineLvlSdt.prototype.AddElement = function(oElement, nPos) { @@ -16516,6 +17610,7 @@ * @typeofeditors ["CDE"] * @param {DocumentElement} oElement - The document element which will be added to the end of the container. * @returns {boolean} - returns false if oElement unsupported. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/Push.js */ ApiInlineLvlSdt.prototype.Push = function(oElement) { @@ -16543,6 +17638,7 @@ * @typeofeditors ["CDE"] * @param {String} sText - The text which will be added to the content control. * @returns {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/AddText.js */ ApiInlineLvlSdt.prototype.AddText = function(sText) { @@ -16570,6 +17666,7 @@ * @typeofeditors ["CDE"] * @param {boolean} keepContent - Specifies if the content will be deleted or not. * @returns {boolean} - returns false if control haven't parent paragraph. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/Delete.js */ ApiInlineLvlSdt.prototype.Delete = function(keepContent) { @@ -16599,6 +17696,7 @@ * @typeofeditors ["CDE"] * @param {ApiTextPr} oTextPr - The properties that will be set to the content of the content control. * @returns {ApiInlineLvlSdt} this. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/SetTextPr.js */ ApiInlineLvlSdt.prototype.SetTextPr = function(oTextPr) { @@ -16618,6 +17716,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @return {ApiParagraph | null} - returns null if parent paragraph doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetParentParagraph.js */ ApiInlineLvlSdt.prototype.GetParentParagraph = function() { @@ -16634,6 +17733,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @return {ApiBlockLvlSdt | ApiInlineLvlSdt | null} - returns null if parent content control doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetParentContentControl.js */ ApiInlineLvlSdt.prototype.GetParentContentControl = function() { @@ -16657,6 +17757,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @return {ApiTable | null} - returns null if parent table doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetParentTable.js */ ApiInlineLvlSdt.prototype.GetParentTable = function() { @@ -16677,6 +17778,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @return {ApiTableCell | null} - return null if parent cell doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetParentTableCell.js */ ApiInlineLvlSdt.prototype.GetParentTableCell = function() { @@ -16696,10 +17798,11 @@ * Returns a Range object that represents the part of the document contained in the specified content control. * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] - * @param {Number} Start - Start character in the current element. - * @param {Number} End - End character in the current element. + * @param {Number} Start - Start position index in the current element. + * @param {Number} End - End position index in the current element. * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetRange.js + */ ApiInlineLvlSdt.prototype.GetRange = function(Start, End) { return new ApiRange(this.Sdt, Start, End); @@ -16710,6 +17813,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {ApiInlineLvlSdt} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/Copy.js */ ApiInlineLvlSdt.prototype.Copy = function() { @@ -16729,6 +17833,7 @@ * @typeofeditors ["CDE"] * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @return {JSON} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/ToJSON.js */ ApiInlineLvlSdt.prototype.ToJSON = function(bWriteStyles) { @@ -16744,6 +17849,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetPlaceholderText.js */ ApiInlineLvlSdt.prototype.GetPlaceholderText = function() { @@ -16752,11 +17858,12 @@ /** * Sets the placeholder text to the current inline content control. - * *Can't be set to checkbox or radio button* + *Can't be set to checkbox or radio button* * @memberof ApiInlineLvlSdt * @param {string} sText - The text that will be set to the current inline content control. * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/SetPlaceholderText.js */ ApiInlineLvlSdt.prototype.SetPlaceholderText = function(sText) { @@ -16775,6 +17882,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/IsForm.js */ ApiInlineLvlSdt.prototype.IsForm = function() { @@ -16790,6 +17898,7 @@ * @param {string} sAuthor - The author's name (optional). * @param {string} sUserId - The user ID of the comment author (optional). * @returns {ApiComment?} - Returns null if the comment was not added. + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/AddComment.js */ ApiInlineLvlSdt.prototype.AddComment = function(sText, sAuthor, sUserId) { @@ -16818,10 +17927,12 @@ }; /** - * Place cursor before/after the current content control - * @param {boolean?} [isAfter=true] + * Places a cursor before/after the current content control. + * @param {boolean?} [isAfter=true] - Specifies whether a cursor will be placed before (false) or after (true) the current content control. * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/MoveCursorOutside.js */ ApiInlineLvlSdt.prototype.MoveCursorOutside = function(isAfter) { @@ -16833,6 +17944,7 @@ * @memberof ApiInlineLvlSdt * @typeofeditors ["CDE"] * @returns {ApiContentControlList} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetDropdownList.js */ ApiInlineLvlSdt.prototype.GetDropdownList = function() { @@ -16853,6 +17965,7 @@ * @memberof ApiContentControlList * @typeofeditors ["CDE"] * @returns {"contentControlList"} + * @see office-js-api/Examples/{Editor}/ApiContentControlList/Methods/GetClassType.js */ ApiContentControlList.prototype.GetClassType = function() { @@ -16864,6 +17977,7 @@ * @memberof ApiContentControlList * @typeofeditors ["CDE"] * @returns {ApiContentControlListEntry[]} + * @see office-js-api/Examples/{Editor}/ApiContentControlList/Methods/GetAllItems.js */ ApiContentControlList.prototype.GetAllItems = function() { @@ -16883,6 +17997,7 @@ * @memberof ApiContentControlList * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiContentControlList/Methods/GetElementsCount.js */ ApiContentControlList.prototype.GetElementsCount = function() { @@ -16894,6 +18009,7 @@ * @memberof ApiContentControlList * @typeofeditors ["CDE"] * @returns {ApiInlineLvlSdt | ApiBlockLvlSdt} + * @see office-js-api/Examples/{Editor}/ApiContentControlList/Methods/GetParent.js */ ApiContentControlList.prototype.GetParent = function() { @@ -16908,6 +18024,7 @@ * @param {number} [nIndex=this.GetElementsCount()] - A position where a new value will be added. * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiContentControlList/Methods/Add.js */ ApiContentControlList.prototype.Add = function(sText, sValue, nIndex) { @@ -16934,6 +18051,7 @@ * Clears a list of values of the combo box / dropdown list content control. * @memberof ApiContentControlList * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiContentControlList/Methods/Clear.js */ ApiContentControlList.prototype.Clear = function() { @@ -16949,6 +18067,7 @@ * @param {number} nIndex - Item position. * @typeofeditors ["CDE"] * @returns {ApiContentControlListEntry} + * @see office-js-api/Examples/{Editor}/ApiContentControlList/Methods/GetItem.js */ ApiContentControlList.prototype.GetItem = function(nIndex) { @@ -16974,6 +18093,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {"contentControlList"} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/GetClassType.js */ ApiContentControlListEntry.prototype.GetClassType = function() { @@ -16985,6 +18105,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {ApiContentControlList} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/GetParent.js */ ApiContentControlListEntry.prototype.GetParent = function() { @@ -16999,6 +18120,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/Select.js */ ApiContentControlListEntry.prototype.Select = function() { @@ -17014,6 +18136,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/MoveUp.js */ ApiContentControlListEntry.prototype.MoveUp = function() { @@ -17029,6 +18152,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/MoveDown.js */ ApiContentControlListEntry.prototype.MoveDown = function() { @@ -17045,6 +18169,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {number} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/GetIndex.js */ ApiContentControlListEntry.prototype.GetIndex = function() { @@ -17058,6 +18183,7 @@ * @param {number} nIndex - An index of the content control list item. * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/SetIndex.js */ ApiContentControlListEntry.prototype.SetIndex = function(nIndex) { @@ -17080,6 +18206,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/Delete.js */ ApiContentControlListEntry.prototype.Delete = function() { @@ -17109,6 +18236,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/GetText.js */ ApiContentControlListEntry.prototype.GetText = function() { @@ -17121,6 +18249,7 @@ * @typeofeditors ["CDE"] * @param {string} sText - The display text of a list item. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/SetText.js */ ApiContentControlListEntry.prototype.SetText = function(sText) { @@ -17147,6 +18276,7 @@ * @memberof ApiContentControlListEntry * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/GetValue.js */ ApiContentControlListEntry.prototype.GetValue = function() { @@ -17159,6 +18289,7 @@ * @typeofeditors ["CDE"] * @param {string} sValue - The value of a list item. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiContentControlListEntry/Methods/SetValue.js */ ApiContentControlListEntry.prototype.SetValue = function(sValue) { @@ -17193,6 +18324,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {"blockLvlSdt"} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetClassType.js */ ApiBlockLvlSdt.prototype.GetClassType = function() { @@ -17207,6 +18339,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @param {"contentLocked" | "sdtContentLocked" | "sdtLocked"} sLockType - The type of the lock applied to the block text content control. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/SetLock.js */ ApiBlockLvlSdt.prototype.SetLock = function(sLockType) { @@ -17226,6 +18359,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {SdtLock} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetLock.js */ ApiBlockLvlSdt.prototype.GetLock = function() { @@ -17248,6 +18382,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @param {string} sTag - The tag which will be added to the current container. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/SetTag.js */ ApiBlockLvlSdt.prototype.SetTag = function(sTag) { @@ -17259,6 +18394,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetTag.js */ ApiBlockLvlSdt.prototype.GetTag = function() { @@ -17270,6 +18406,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @param {string} sLabel - The label which will be added to the current container. Can be a positive or negative integer from -2147483647 to 2147483647. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/SetLabel.js */ ApiBlockLvlSdt.prototype.SetLabel = function(sLabel) { @@ -17281,6 +18418,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetLabel.js */ ApiBlockLvlSdt.prototype.GetLabel = function() { @@ -17292,6 +18430,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @param {string} sAlias - The alias which will be added to the current container. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/SetAlias.js */ ApiBlockLvlSdt.prototype.SetAlias = function(sAlias) { @@ -17303,6 +18442,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetAlias.js */ ApiBlockLvlSdt.prototype.GetAlias = function() { @@ -17314,6 +18454,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetContent.js */ ApiBlockLvlSdt.prototype.GetContent = function() { @@ -17325,6 +18466,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {ApiBlockLvlSdt[] | ApiInlineLvlSdt[]} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetAllContentControls.js */ ApiBlockLvlSdt.prototype.GetAllContentControls = function() { @@ -17347,6 +18489,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {ApiParagraph[]} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetAllParagraphs.js */ ApiBlockLvlSdt.prototype.GetAllParagraphs = function() { @@ -17372,6 +18515,7 @@ * @typeofeditors ["CDE"] * @param nPage - Page number. If it is not specified, an empty array will be returned. * @return {ApiTable[]} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetAllTablesOnPage.js */ ApiBlockLvlSdt.prototype.GetAllTablesOnPage = function(nPage) { @@ -17395,6 +18539,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {boolean} - returns true. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/RemoveAllElements.js */ ApiBlockLvlSdt.prototype.RemoveAllElements = function() { @@ -17408,6 +18553,7 @@ * @typeofeditors ["CDE"] * @param {boolean} keepContent - Specifies if the content will be deleted or not. * @returns {boolean} - returns false if content control haven't parent. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/Delete.js */ ApiBlockLvlSdt.prototype.Delete = function(keepContent) { @@ -17434,6 +18580,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @param {ApiTextPr} oTextPr - The properties that will be set to the content of the content control. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/SetTextPr.js */ ApiBlockLvlSdt.prototype.SetTextPr = function(oTextPr) { @@ -17448,6 +18595,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @return {ApiDrawing[]} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetAllDrawingObjects.js */ ApiBlockLvlSdt.prototype.GetAllDrawingObjects = function() { @@ -17455,7 +18603,7 @@ var arrApiDrawings = []; for (var Index = 0; Index < arrAllDrawing.length; Index++) - arrApiDrawings.push(new ApiDrawing(arrAllDrawing[Index])); + arrApiDrawings.push(new ApiDrawing(arrAllDrawing[Index].GraphicObj)); return arrApiDrawings; }; @@ -17465,6 +18613,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @return {ApiBlockLvlSdt | null} - returns null if parent content control doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetParentContentControl.js */ ApiBlockLvlSdt.prototype.GetParentContentControl = function() { @@ -17484,6 +18633,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @return {ApiTable | null} - returns null is parent table does'n exist. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetParentTable.js */ ApiBlockLvlSdt.prototype.GetParentTable = function() { @@ -17504,6 +18654,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @return {ApiTableCell | null} - returns null if parent cell doesn't exist. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetParentTableCell.js */ ApiBlockLvlSdt.prototype.GetParentTableCell = function() { @@ -17525,6 +18676,7 @@ * @typeofeditors ["CDE"] * @param {DocumentElement} oElement - The type of the element which will be pushed to the current container. * @return {boolean} - returns false if oElement unsupported. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/Push.js */ ApiBlockLvlSdt.prototype.Push = function(oElement) { @@ -17554,6 +18706,7 @@ * @param {DocumentElement} oElement - The type of the element which will be added to the current container. * @param {Number} nPos - The specified position. * @return {boolean} - returns false if oElement unsupported. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/AddElement.js */ ApiBlockLvlSdt.prototype.AddElement = function(oElement, nPos) { @@ -17582,6 +18735,7 @@ * @typeofeditors ["CDE"] * @param {String} sText - The text which will be added to the content control. * @return {boolean} - returns false if param is invalid. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/AddText.js */ ApiBlockLvlSdt.prototype.AddText = function(sText) { @@ -17612,15 +18766,34 @@ * Returns a Range object that represents the part of the document contained in the specified content control. * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] - * @param {Number} Start - Start character in the current element. - * @param {Number} End - End character in the current element. + * @param {Number} Start - Start position index in the current element. + * @param {Number} End - End position index in the current element. * @returns {ApiRange} - * */ + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetRange.js + */ ApiBlockLvlSdt.prototype.GetRange = function(Start, End) { return new ApiRange(this.Sdt, Start, End); }; - + + /** + * Creates a copy of a block content control. Ignores comments, footnote references, complex fields. + * @memberof ApiBlockLvlSdt + * @typeofeditors ["CDE"] + * @returns {ApiBlockLvlSdt} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/Copy.js + */ + ApiBlockLvlSdt.prototype.Copy = function() + { + let oBlockSdt = this.Sdt.Copy(null, null, { + SkipComments : true, + SkipAnchors : true, + SkipFootnoteReference : true, + SkipComplexFields : true + }); + + return new ApiBlockLvlSdt(oBlockSdt); + }; /** * Searches for a scope of a content control object. The search results are a collection of ApiRange objects. * @memberof ApiBlockLvlSdt @@ -17628,6 +18801,7 @@ * @param {string} sText - Search string. * @param {boolean} isMatchCase - Case sensitive or not. * @return {ApiRange[]} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/Search.js */ ApiBlockLvlSdt.prototype.Search = function(sText, isMatchCase) { @@ -17654,6 +18828,7 @@ * Selects the current content control. * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/Select.js */ ApiBlockLvlSdt.prototype.Select = function() { @@ -17668,6 +18843,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetPlaceholderText.js */ ApiBlockLvlSdt.prototype.GetPlaceholderText = function() { @@ -17680,6 +18856,7 @@ * @param {string} sText - The text that will be set to the current content control. * @typeofeditors ["CDE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/SetPlaceholderText.js */ ApiBlockLvlSdt.prototype.SetPlaceholderText = function(sText) { @@ -17698,7 +18875,8 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {Number} - returns -1 if the content control parent doesn't exist. - */ + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetPosInParent.js + */ ApiBlockLvlSdt.prototype.GetPosInParent = function() { return this.Sdt.GetIndex(); @@ -17710,6 +18888,7 @@ * @typeofeditors ["CDE"] * @param {DocumentElement} oElement - The element to replace the current content control with. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/ReplaceByElement.js */ ApiBlockLvlSdt.prototype.ReplaceByElement = function(oElement) { @@ -17741,6 +18920,7 @@ * @param {string} sAuthor - The author's name (optional). * @param {string} sUserId - The user ID of the comment author (optional). * @returns {?ApiComment} - Returns null if the comment was not added. + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/AddComment.js */ ApiBlockLvlSdt.prototype.AddComment = function(sText, sAuthor, sUserId) { @@ -17784,7 +18964,8 @@ * If you want to specify "Heading 1", then nHeadingLvl === 0 and etc. * @param {CaptionSep} [sCaptionSep="hyphen"] - The caption separator (used if you want to specify the chapter number). * @returns {boolean} - */ + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/AddCaption.js + */ ApiBlockLvlSdt.prototype.AddCaption = function(sAdditional, sLabel, bExludeLabel, sNumberingFormat, bBefore, nHeadingLvl, sCaptionSep) { var oSdtParent = this.Sdt.GetParent(); @@ -17846,7 +19027,7 @@ oCapPr.Label = sLabel; oCapPr.Before = bBefore; oCapPr.ExcludeLabel = bExludeLabel; - oCapPr.NumFormat = nNumFormat; + oCapPr.Format = nNumFormat; oCapPr.Separator = sCaptionSep; oCapPr.Additional = sAdditional; @@ -17868,6 +19049,7 @@ * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] * @returns {ApiContentControlList} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetDropdownList.js */ ApiBlockLvlSdt.prototype.GetDropdownList = function() { @@ -17878,10 +19060,12 @@ }; /** - * Place cursor before/after the current content control - * @param {boolean?} [isAfter=true] + * Places a cursor before/after the current content control. + * @param {boolean?} [isAfter=true] - Specifies whether a cursor will be placed before (false) or after (true) the current content control. * @memberof ApiBlockLvlSdt * @typeofeditors ["CDE"] + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/MoveCursorOutside.js */ ApiBlockLvlSdt.prototype.MoveCursorOutside = function(isAfter) { @@ -17898,6 +19082,7 @@ * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {"form"} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/GetClassType.js */ ApiFormBase.prototype.GetClassType = function() { @@ -17908,6 +19093,7 @@ * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {FormType} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/GetFormType.js */ ApiFormBase.prototype.GetFormType = function() { @@ -17931,6 +19117,7 @@ * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/GetFormKey.js */ ApiFormBase.prototype.GetFormKey = function() { @@ -17950,6 +19137,7 @@ * @typeofeditors ["CDE", "CFE"] * @param {string} sKey - Form key. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/SetFormKey.js */ ApiFormBase.prototype.SetFormKey = function(sKey) { @@ -17978,6 +19166,7 @@ * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/GetTipText.js */ ApiFormBase.prototype.GetTipText = function() { @@ -17994,6 +19183,7 @@ * @typeofeditors ["CDE", "CFE"] * @param {string} sText - Tip text. * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/SetTipText.js */ ApiFormBase.prototype.SetTipText = function(sText) { @@ -18013,6 +19203,7 @@ * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/IsRequired.js */ ApiFormBase.prototype.IsRequired = function() { @@ -18024,6 +19215,7 @@ * @typeofeditors ["CDE", "CFE"] * @param {boolean} bRequired - Defines if the current form is required (true) or not (false). * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/SetRequired.js */ ApiFormBase.prototype.SetRequired = function(bRequired) { @@ -18045,6 +19237,7 @@ * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/IsFixed.js */ ApiFormBase.prototype.IsFixed = function() { @@ -18057,6 +19250,7 @@ * @param {twips} nHeight - The wrapper shape height measured in twentieths of a point (1/1440 of an inch). * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/ToFixed.js */ ApiFormBase.prototype.ToFixed = function(nWidth, nHeight) { @@ -18070,10 +19264,11 @@ }; /** * Converts the current form to an inline form. - * *Picture form can't be converted to an inline form, it's always a fixed size object.* + *Picture form can't be converted to an inline form, it's always a fixed size object.* * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/ToInline.js */ ApiFormBase.prototype.ToInline = function() { @@ -18094,6 +19289,7 @@ * @param {boolean} bNone - Defines that border color will not be set. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/SetBorderColor.js */ ApiFormBase.prototype.SetBorderColor = function(r, g, b, bNone) { @@ -18125,6 +19321,7 @@ * @param {boolean} bNone - Defines that background color will not be set. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/SetBackgroundColor.js */ ApiFormBase.prototype.SetBackgroundColor = function(r, g, b, bNone) { @@ -18163,10 +19360,11 @@ }; /** * Returns the text from the current form. - * *Returns the value as a string if possible for the given form type* + *Returns the value as a string if possible for the given form type* * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/GetText.js */ ApiFormBase.prototype.GetText = function() { @@ -18176,6 +19374,7 @@ * Clears the current form. * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/Clear.js */ ApiFormBase.prototype.Clear = function() { @@ -18189,6 +19388,7 @@ * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {?ApiShape} - returns the shape in which the form is placed. + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/GetWrapperShape.js */ ApiFormBase.prototype.GetWrapperShape = function() { @@ -18201,11 +19401,12 @@ }; /** * Sets the placeholder text to the current form. - * *Can't be set to checkbox or radio button.* + *Can't be set to checkbox or radio button.* * @memberof ApiFormBase * @param {string} sText - The text that will be set to the current form. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/SetPlaceholderText.js */ ApiFormBase.prototype.SetPlaceholderText = function(sText) { @@ -18221,11 +19422,12 @@ }; /** * Sets the text properties to the current form. - * *Used if possible for this type of form* + *Used if possible for this type of form* * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @param {ApiTextPr} oTextPr - The text properties that will be set to the current form. * @return {boolean} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/SetTextPr.js */ ApiFormBase.prototype.SetTextPr = function(oTextPr) { @@ -18239,20 +19441,23 @@ }; /** * Returns the text properties from the current form. - * *Used if possible for this type of form* + *Used if possible for this type of form* * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @return {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/GetTextPr.js */ ApiFormBase.prototype.GetTextPr = function() { return new ApiTextPr(this, this.Sdt.Pr.TextPr.Copy()); }; /** - * Place cursor before/after the current form. - * @param {boolean?} [isAfter=true] + * Places a cursor before/after the current form. + * @param {boolean?} [isAfter=true] - Specifies whether a cursor will be placed before (false) or after (true) the current form. * @memberof ApiFormBase - * @typeofeditors ["CDE"] + * @typeofeditors ["CDE", "CFE"] + * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/MoveCursorOutside.js */ ApiFormBase.prototype.MoveCursorOutside = function(isAfter) { @@ -18263,6 +19468,7 @@ * @memberof ApiFormBase * @typeofeditors ["CDE", "CFE"] * @returns {?ApiForm} + * @see office-js-api/Examples/{Editor}/ApiFormBase/Methods/Copy.js */ ApiFormBase.prototype.Copy = function() { @@ -18311,6 +19517,7 @@ * @memberof ApiTextForm * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/IsAutoFit.js */ ApiTextForm.prototype.IsAutoFit = function() { @@ -18322,6 +19529,7 @@ * @param {boolean} bAutoFit - Defines if the text field content is autofit (true) or not (false). * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/SetAutoFit.js */ ApiTextForm.prototype.SetAutoFit = function(bAutoFit) { @@ -18343,6 +19551,7 @@ * @memberof ApiTextForm * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/IsMultiline.js */ ApiTextForm.prototype.IsMultiline = function() { @@ -18354,6 +19563,7 @@ * @param {boolean} bMultiline - Defines if the current text field is multiline (true) or not (false). * @typeofeditors ["CDE", "CFE"] * @returns {boolean} - return false, if the text field is not fixed size. + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/SetMultiline.js */ ApiTextForm.prototype.SetMultiline = function(bMultiline) { @@ -18377,6 +19587,7 @@ * @memberof ApiTextForm * @typeofeditors ["CDE", "CFE"] * @returns {number} - if this method returns -1 -> the form has no limit for characters + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/GetCharactersLimit.js */ ApiTextForm.prototype.GetCharactersLimit = function() { @@ -18394,6 +19605,7 @@ * Maximum value for this parameter is 1000000. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/SetCharactersLimit.js */ ApiTextForm.prototype.SetCharactersLimit = function(nChars) { @@ -18423,6 +19635,7 @@ * @memberof ApiTextForm * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/IsComb.js */ ApiTextForm.prototype.IsComb = function() { @@ -18436,6 +19649,7 @@ * @param {boolean} bComb - Defines if the text field is a comb of characters (true) or not (false). * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/SetComb.js */ ApiTextForm.prototype.SetComb = function(bComb) { @@ -18467,6 +19681,7 @@ * If this parameter is not specified or equal to 0 or less, then the width will be set automatically. Must be >= 1 and <= 558.8. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/SetCellWidth.js */ ApiTextForm.prototype.SetCellWidth = function(nCellWidth) { @@ -18491,6 +19706,7 @@ * @param {string} sText - The text that will be set to the current text field. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiTextForm/Methods/SetText.js */ ApiTextForm.prototype.SetText = function(sText) { @@ -18516,6 +19732,7 @@ * @memberof ApiPictureForm * @typeofeditors ["CDE", "CFE"] * @returns {ScaleFlag} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/GetScaleFlag.js */ ApiPictureForm.prototype.GetScaleFlag = function() { @@ -18545,6 +19762,7 @@ * @param {ScaleFlag} sScaleFlag - Picture scaling condition: "always", "never", "tooBig" or "tooSmall". * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/SetScaleFlag.js */ ApiPictureForm.prototype.SetScaleFlag = function(sScaleFlag) { @@ -18581,6 +19799,7 @@ * @param {boolean} [isLock=true] - Specifies if the aspect ratio of the current picture form will be locked (true) or not (false). * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/SetLockAspectRatio.js */ ApiPictureForm.prototype.SetLockAspectRatio = function(isLock) { @@ -18597,6 +19816,7 @@ * @memberof ApiPictureForm * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/IsLockAspectRatio.js */ ApiPictureForm.prototype.IsLockAspectRatio = function() { @@ -18604,14 +19824,15 @@ }; /** * Sets the picture position inside the current form: - * * 0 - the picture is placed on the left/top; - * * 50 - the picture is placed in the center; - * * 100 - the picture is placed on the right/bottom. + * 0 - the picture is placed on the left/top; + * 50 - the picture is placed in the center; + * 100 - the picture is placed on the right/bottom. * @memberof ApiPictureForm * @param {percentage} nShiftX - Horizontal position measured in percent. * @param {percentage} nShiftY - Vertical position measured in percent. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/SetPicturePosition.js */ ApiPictureForm.prototype.SetPicturePosition = function(nShiftX, nShiftY) { @@ -18629,6 +19850,7 @@ * @memberof ApiPictureForm * @typeofeditors ["CDE", "CFE"] * @returns {Array.} Array of two numbers [shiftX, shiftY] + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/GetPicturePosition.js */ ApiPictureForm.prototype.GetPicturePosition = function() { @@ -18641,6 +19863,7 @@ * @param {boolean} [isRespect=true] - Specifies if the form border width will be respected (true) or not (false). * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/SetRespectBorders.js */ ApiPictureForm.prototype.SetRespectBorders = function(isRespect) { @@ -18657,6 +19880,7 @@ * @memberof ApiPictureForm * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/IsRespectBorders.js */ ApiPictureForm.prototype.IsRespectBorders = function() { @@ -18667,6 +19891,7 @@ * @memberof ApiPictureForm * @typeofeditors ["CDE", "CFE"] * @returns {base64img} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/GetImage.js */ ApiPictureForm.prototype.GetImage = function() { @@ -18693,6 +19918,7 @@ * @param {EMU} nHeight - The image height in English measure units. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiPictureForm/Methods/SetImage.js */ ApiPictureForm.prototype.SetImage = function(sImageSrc, nWidth, nHeight) { @@ -18700,13 +19926,14 @@ if (typeof(sImageSrc) !== "string" || sImageSrc === "") return false; - var oImg; + var oImg, paraDrawing; var allDrawings = this.Sdt.GetAllDrawingObjects(); for (var nDrawing = 0; nDrawing < allDrawings.length; nDrawing++) { if (allDrawings[nDrawing].IsPicture()) { oImg = allDrawings[nDrawing].GraphicObj; + paraDrawing = allDrawings[nDrawing]; break; } } @@ -18742,7 +19969,15 @@ } oImg.setBlipFill(AscFormat.CreateBlipFillRasterImageId(sImageSrc)); + + let paragraph = this.Sdt.GetParagraph(); + let parentShape = paragraph && paragraph.GetParent() ? paragraph.GetParent().Is_DrawingShape(true) : null; + if (parentShape && parentShape.recalculate) + parentShape.recalculate(); + this.OnChangeValue(); + this.Sdt.SetShowingPlcHdr(false); + this.Sdt.UpdatePictureFormLayout(private_EMU2MM(nWidth), private_EMU2MM(nHeight)); return true; } @@ -18761,6 +19996,7 @@ * @memberof ApiComboBoxForm * @typeofeditors ["CDE", "CFE"] * @returns {string[]} + * @see office-js-api/Examples/{Editor}/ApiComboBoxForm/Methods/GetListValues.js */ ApiComboBoxForm.prototype.GetListValues = function() { @@ -18781,6 +20017,7 @@ * @param {string[]} aListString - The combo box list values. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiComboBoxForm/Methods/SetListValues.js */ ApiComboBoxForm.prototype.SetListValues = function(aListString) { @@ -18815,6 +20052,7 @@ * @param {string} sValue - The combo box list value that will be selected. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiComboBoxForm/Methods/SelectListValue.js */ ApiComboBoxForm.prototype.SelectListValue = function(sValue) { @@ -18836,11 +20074,12 @@ }; /** * Sets the text to the current combo box. - * *Available only for editable combo box forms.* + *Available only for editable combo box forms.* * @memberof ApiComboBoxForm * @param {string} sText - The combo box text. * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiComboBoxForm/Methods/SetText.js */ ApiComboBoxForm.prototype.SetText = function(sText) { @@ -18867,6 +20106,7 @@ * @memberof ApiComboBoxForm * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiComboBoxForm/Methods/IsEditable.js */ ApiComboBoxForm.prototype.IsEditable = function() { @@ -18885,6 +20125,7 @@ * @param {boolean} isChecked - Specifies if the current checkbox will be checked (true) or not (false). * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiCheckBoxForm/Methods/SetChecked.js */ ApiCheckBoxForm.prototype.SetChecked = function(isChecked) { @@ -18902,6 +20143,7 @@ * @memberof ApiCheckBoxForm * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiCheckBoxForm/Methods/IsChecked.js */ ApiCheckBoxForm.prototype.IsChecked = function() { @@ -18912,6 +20154,7 @@ * @memberof ApiCheckBoxForm * @typeofeditors ["CDE", "CFE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiCheckBoxForm/Methods/IsRadioButton.js */ ApiCheckBoxForm.prototype.IsRadioButton = function() { @@ -18922,6 +20165,7 @@ * @memberof ApiCheckBoxForm * @typeofeditors ["CDE", "CFE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiCheckBoxForm/Methods/GetRadioGroup.js */ ApiCheckBoxForm.prototype.GetRadioGroup = function() { @@ -18933,6 +20177,7 @@ * @memberof ApiCheckBoxForm * @param {string} sKey - Radio group key. * @typeofeditors ["CDE", "CFE"] + * @see office-js-api/Examples/{Editor}/ApiCheckBoxForm/Methods/SetRadioGroup.js */ ApiCheckBoxForm.prototype.SetRadioGroup = function(sKey) { @@ -18959,6 +20204,7 @@ * @typeofeditors ["CDE", "CFE"] * @returns {string} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiDateForm/Methods/GetFormat.js */ ApiDateForm.prototype.GetFormat = function() { let oDatePr = this.Sdt.GetDatePickerPr(); @@ -18972,6 +20218,7 @@ * @param {string} sFormat - The date format. For example, mm.dd.yyyy * @returns {boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiDateForm/Methods/SetFormat.js */ ApiDateForm.prototype.SetFormat = function(sFormat) { @@ -18993,6 +20240,7 @@ * @typeofeditors ["CDE", "CFE"] * @returns {string} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiDateForm/Methods/GetLanguage.js */ ApiDateForm.prototype.GetLanguage = function() { let oDatePr = this.Sdt.GetDatePickerPr(); @@ -19012,6 +20260,7 @@ * RFC 4646/BCP 47. Example: "en-CA". * @returns {boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiDateForm/Methods/SetLanguage.js */ ApiDateForm.prototype.SetLanguage = function(sLangId) { @@ -19034,6 +20283,7 @@ * @typeofeditors ["CDE", "CFE"] * @returns {number} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiDateForm/Methods/GetTime.js */ ApiDateForm.prototype.GetTime = function() { @@ -19050,6 +20300,7 @@ * @param {number} nTimeStamp The timestamp that will be set to the current date form. * @returns {boolean} * @since 8.1.0 + * @see office-js-api/Examples/{Editor}/ApiDateForm/Methods/SetTime.js */ ApiDateForm.prototype.SetTime = function(nTimeStamp) { @@ -19073,6 +20324,7 @@ * @param {boolean} bWriteNumberings - Specifies if the used numberings will be written to the JSON object or not. * @param {boolean} bWriteStyles - Specifies if the used styles will be written to the JSON object or not. * @return {JSON} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/ToJSON.js */ ApiBlockLvlSdt.prototype.ToJSON = function(bWriteNumberings, bWriteStyles) { @@ -19092,6 +20344,7 @@ * @param {Array} arrString - An array of replacement strings. * @param {string} [sParaTab=" "] - A character which is used to specify the tab in the source text. * @param {string} [sParaNewLine=" "] - A character which is used to specify the line break character in the source text. + * @see office-js-api/Examples/{Editor}/Api/Methods/ReplaceTextSmart.js */ Api.prototype.ReplaceTextSmart = function(arrString, sParaTab, sParaNewLine) { @@ -19525,6 +20778,7 @@ * @param {boolean} [bRenderHTMLTags=false] - Defines if HTML tags will be preserved in your Markdown. If you just want to use an occasional HTML tag, you can avoid using the opening angle bracket * in the following way: \= this.GetRepliesCount()) @@ -19824,6 +21098,7 @@ * @param {String} sUserId - The user ID of the comment reply author (optional). * @param {Number} [nPos=this.GetRepliesCount()] - The comment reply position. * @returns {ApiComment?} - this + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/AddReply.js */ ApiComment.prototype.AddReply = function (sText, sAuthorName, sUserId, nPos) { if (typeof(sText) !== "string" || sText === "") @@ -19851,6 +21126,7 @@ * @param {Number} [nCount = 1] - A number of comment replies to remove. * @param {boolean} [bRemoveAll = false] - Specifies whether to remove all comment replies or not. * @returns {ApiComment?} - this + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/RemoveReplies.js */ ApiComment.prototype.RemoveReplies = function (nPos, nCount, bRemoveAll) { if (typeof(nPos) !== "number" || nPos < 0 || nPos > this.GetRepliesCount()) @@ -19873,6 +21149,7 @@ * @memberof ApiComment * @typeofeditors ["CDE", "CPE"] * @returns {boolean} + * @see office-js-api/Examples/{Editor}/ApiComment/Methods/Delete.js */ ApiComment.prototype.Delete = function () { @@ -19888,6 +21165,7 @@ * @memberof ApiCommentReply * @typeofeditors ["CDE", "CPE"] * @returns {"commentReply"} + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetClassType.js */ ApiCommentReply.prototype.GetClassType = function () { return "commentReply"; @@ -19898,6 +21176,7 @@ * @memberof ApiCommentReply * @typeofeditors ["CDE", "CPE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetText.js */ ApiCommentReply.prototype.GetText = function () { return this.Data.Get_Text(); @@ -19909,6 +21188,7 @@ * @typeofeditors ["CDE", "CPE"] * @param {string} sText - The comment reply text. * @returns {ApiCommentReply} - this + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/SetText.js */ ApiCommentReply.prototype.SetText = function (sText) { this.Data.Set_Text(sText); @@ -19921,6 +21201,7 @@ * @memberof ApiCommentReply * @typeofeditors ["CDE", "CPE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetAuthorName.js */ ApiCommentReply.prototype.GetAuthorName = function () { return this.Data.Get_Name(); @@ -19932,6 +21213,7 @@ * @typeofeditors ["CDE", "CPE"] * @param {string} sAuthorName - The comment reply author's name. * @returns {ApiCommentReply} - this + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/SetAuthorName.js */ ApiCommentReply.prototype.SetAuthorName = function (sAuthorName) { this.Data.Set_Name(sAuthorName); @@ -19944,6 +21226,7 @@ * @memberof ApiCommentReply * @typeofeditors ["CDE"] * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/GetUserId.js */ ApiCommentReply.prototype.GetUserId = function () { return this.Data.m_sUserId; @@ -19955,6 +21238,7 @@ * @typeofeditors ["CDE", "CPE"] * @param {string} sUserId - The user ID of the comment reply author. * @returns {ApiCommentReply} - this + * @see office-js-api/Examples/{Editor}/ApiCommentReply/Methods/SetUserId.js */ ApiCommentReply.prototype.SetUserId = function (sUserId) { this.Data.m_sUserId = sUserId; @@ -19968,6 +21252,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {"watermarkSettings"} + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetClassType.js */ ApiWatermarkSettings.prototype.GetClassType = function() { @@ -19979,6 +21264,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @param {WatermarkType} sType - The watermark type. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/SetType.js */ ApiWatermarkSettings.prototype.SetType = function (sType) { @@ -20003,6 +21289,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {WatermarkType} + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetType.js */ ApiWatermarkSettings.prototype.GetType = function () { @@ -20023,6 +21310,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @param {string} sText - The watermark text. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/SetText.js */ ApiWatermarkSettings.prototype.SetText = function (sText) { @@ -20034,6 +21322,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {string | null} + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetText.js */ ApiWatermarkSettings.prototype.GetText = function () { @@ -20045,6 +21334,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @param {ApiTextPr} oTextPr - The watermark text properties. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/SetTextPr.js */ ApiWatermarkSettings.prototype.SetTextPr = function (oTextPr) { @@ -20056,6 +21346,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {ApiTextPr} + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetTextPr.js */ ApiWatermarkSettings.prototype.GetTextPr = function () { @@ -20077,6 +21368,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @param {number} nOpacity - The watermark opacity. This value must be from 0 to 255. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/SetOpacity.js */ ApiWatermarkSettings.prototype.SetOpacity = function (nOpacity) { @@ -20089,6 +21381,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {number} - The watermark opacity. This value must be from 0 to 255. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetOpacity.js */ ApiWatermarkSettings.prototype.GetOpacity = function () { @@ -20102,6 +21395,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @param {WatermarkDirection} sDirection - The watermark direction. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/SetDirection.js */ ApiWatermarkSettings.prototype.SetDirection = function (sDirection) { @@ -20129,6 +21423,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {?WatermarkDirection} - The watermark direction. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetDirection.js */ ApiWatermarkSettings.prototype.GetDirection = function () { @@ -20153,6 +21448,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @param {string} sURL - The watermark image URL. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/SetImageURL.js */ ApiWatermarkSettings.prototype.SetImageURL = function (sURL) { @@ -20164,6 +21460,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {string | null} - The watermark image URL. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetImageURL.js */ ApiWatermarkSettings.prototype.GetImageURL = function () { @@ -20175,6 +21472,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {EMU | null} - The watermark image width in EMU. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetImageWidth.js */ ApiWatermarkSettings.prototype.GetImageWidth = function () { @@ -20185,6 +21483,7 @@ * @memberof ApiWatermarkSettings * @typeofeditors ["CDE"] * @returns {EMU | null} - The watermark image height in EMU. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/GetImageHeight.js */ ApiWatermarkSettings.prototype.GetImageHeight = function () { @@ -20198,6 +21497,7 @@ * @typeofeditors ["CDE"] * @param {EMU} nWidth - The watermark image width. * @param {EMU} nHeight - The watermark image height. + * @see office-js-api/Examples/{Editor}/ApiWatermarkSettings/Methods/SetImageSize.js */ ApiWatermarkSettings.prototype.SetImageSize = function (nWidth, nHeight) { @@ -20251,6 +21551,7 @@ Api.prototype["CreateRange"] = Api.prototype.CreateRange; Api.prototype["Px2Emu"] = Px2Emu; + Api.prototype["Mm2Px"] = Mm2Px; ApiUnsupported.prototype["GetClassType"] = ApiUnsupported.prototype.GetClassType; @@ -20299,11 +21600,18 @@ ApiRange.prototype["SetFontFamily"] = ApiRange.prototype.SetFontFamily; ApiRange.prototype["SetStyle"] = ApiRange.prototype.SetStyle; ApiRange.prototype["SetTextPr"] = ApiRange.prototype.SetTextPr; + ApiRange.prototype["GetTextPr"] = ApiRange.prototype.GetTextPr; ApiRange.prototype["Delete"] = ApiRange.prototype.Delete; ApiRange.prototype["ToJSON"] = ApiRange.prototype.ToJSON; ApiRange.prototype["AddComment"] = ApiRange.prototype.AddComment; ApiRange.prototype["GetRange"] = ApiRange.prototype.GetRange; - + ApiRange.prototype["GetStartPage"] = ApiRange.prototype.GetStartPage; + ApiRange.prototype["GetEndPage"] = ApiRange.prototype.GetEndPage; + ApiRange.prototype["SetStartPos"] = ApiRange.prototype.SetStartPos; + ApiRange.prototype["SetEndPos"] = ApiRange.prototype.SetEndPos; + ApiRange.prototype["GetStartPos"] = ApiRange.prototype.GetStartPos; + ApiRange.prototype["GetEndPos"] = ApiRange.prototype.GetEndPos; + ApiDocument.prototype["GetClassType"] = ApiDocument.prototype.GetClassType; ApiDocument.prototype["CreateNewHistoryPoint"] = ApiDocument.prototype.CreateNewHistoryPoint; ApiDocument.prototype["GetDefaultTextPr"] = ApiDocument.prototype.GetDefaultTextPr; @@ -20337,7 +21645,6 @@ ApiDocument.prototype["Last"] = ApiDocument.prototype.Last; ApiDocument.prototype["Push"] = ApiDocument.prototype.Push; ApiDocument.prototype["DeleteBookmark"] = ApiDocument.prototype.DeleteBookmark; - ApiDocument.prototype["AddComment"] = ApiDocument.prototype.AddComment; ApiDocument.prototype["GetBookmarkRange"] = ApiDocument.prototype.GetBookmarkRange; ApiDocument.prototype["GetSections"] = ApiDocument.prototype.GetSections; ApiDocument.prototype["GetAllTablesOnPage"] = ApiDocument.prototype.GetAllTablesOnPage; @@ -20360,22 +21667,28 @@ ApiDocument.prototype["GetStatistics"] = ApiDocument.prototype.GetStatistics; ApiDocument.prototype["GetPageCount"] = ApiDocument.prototype.GetPageCount; ApiDocument.prototype["GetAllStyles"] = ApiDocument.prototype.GetAllStyles; - + ApiDocument.prototype["GetDocumentInfo"] = ApiDocument.prototype.GetDocumentInfo; ApiDocument.prototype["GetSelectedDrawings"] = ApiDocument.prototype.GetSelectedDrawings; ApiDocument.prototype["ReplaceCurrentImage"] = ApiDocument.prototype.ReplaceCurrentImage; ApiDocument.prototype["ReplaceDrawing"] = ApiDocument.prototype.ReplaceDrawing; ApiDocument.prototype["AcceptAllRevisionChanges"] = ApiDocument.prototype.AcceptAllRevisionChanges; ApiDocument.prototype["RejectAllRevisionChanges"] = ApiDocument.prototype.RejectAllRevisionChanges; - - ApiDocument.prototype["ToJSON"] = ApiDocument.prototype.ToJSON; - ApiDocument.prototype["UpdateAllTOC"] = ApiDocument.prototype.UpdateAllTOC; - ApiDocument.prototype["UpdateAllTOF"] = ApiDocument.prototype.UpdateAllTOF; - ApiDocument.prototype["AddTableOfContents"] = ApiDocument.prototype.AddTableOfContents; - ApiDocument.prototype["AddTableOfFigures"] = ApiDocument.prototype.AddTableOfFigures; - - ApiDocument.prototype["GetAllForms"] = ApiDocument.prototype.GetAllForms; - ApiDocument.prototype["ClearAllFields"] = ApiDocument.prototype.ClearAllFields; - ApiDocument.prototype["SetFormsHighlight"] = ApiDocument.prototype.SetFormsHighlight; + ApiDocument.prototype["ToJSON"] = ApiDocument.prototype.ToJSON; + ApiDocument.prototype["UpdateAllTOC"] = ApiDocument.prototype.UpdateAllTOC; + ApiDocument.prototype["UpdateAllTOF"] = ApiDocument.prototype.UpdateAllTOF; + ApiDocument.prototype["UpdateAllFields"] = ApiDocument.prototype.UpdateAllFields; + ApiDocument.prototype["AddTableOfContents"] = ApiDocument.prototype.AddTableOfContents; + ApiDocument.prototype["AddTableOfFigures"] = ApiDocument.prototype.AddTableOfFigures; + ApiDocument.prototype["GetAllForms"] = ApiDocument.prototype.GetAllForms; + ApiDocument.prototype["ClearAllFields"] = ApiDocument.prototype.ClearAllFields; + ApiDocument.prototype["SetFormsHighlight"] = ApiDocument.prototype.SetFormsHighlight; + ApiDocument.prototype["GetCurrentWord"] = ApiDocument.prototype.GetCurrentWord; + ApiDocument.prototype["ReplaceCurrentWord"] = ApiDocument.prototype.ReplaceCurrentWord; + ApiDocument.prototype["SelectCurrentWord"] = ApiDocument.prototype.SelectCurrentWord; + ApiDocument.prototype["AddComment"] = ApiDocument.prototype.AddComment; + ApiDocument.prototype["GetCurrentSentence"] = ApiDocument.prototype.GetCurrentSentence; + ApiDocument.prototype["ReplaceCurrentSentence"] = ApiDocument.prototype.ReplaceCurrentSentence; + ApiDocument.prototype["AddMathEquation"] = ApiDocument.prototype.AddMathEquation; ApiParagraph.prototype["GetClassType"] = ApiParagraph.prototype.GetClassType; ApiParagraph.prototype["AddText"] = ApiParagraph.prototype.AddText; @@ -20495,6 +21808,7 @@ ApiRun.prototype["ToJSON"] = ApiRun.prototype.ToJSON; ApiRun.prototype["AddComment"] = ApiRun.prototype.AddComment; ApiRun.prototype["GetText"] = ApiRun.prototype.GetText; + ApiRun.prototype["MoveCursorToPos"] = ApiRun.prototype.MoveCursorToPos; ApiHyperlink.prototype["GetClassType"] = ApiHyperlink.prototype.GetClassType; @@ -20512,6 +21826,7 @@ ApiSection.prototype["GetClassType"] = ApiSection.prototype.GetClassType; ApiSection.prototype["SetType"] = ApiSection.prototype.SetType; + ApiSection.prototype["GetType"] = ApiSection.prototype.GetType; ApiSection.prototype["SetEqualColumns"] = ApiSection.prototype.SetEqualColumns; ApiSection.prototype["SetNotEqualColumns"] = ApiSection.prototype.SetNotEqualColumns; ApiSection.prototype["SetPageSize"] = ApiSection.prototype.SetPageSize; @@ -20528,7 +21843,7 @@ ApiSection.prototype["GetNext"] = ApiSection.prototype.GetNext; ApiSection.prototype["GetPrevious"] = ApiSection.prototype.GetPrevious; ApiSection.prototype["ToJSON"] = ApiSection.prototype.ToJSON; - + ApiTable.prototype["GetClassType"] = ApiTable.prototype.GetClassType; ApiTable.prototype["SetJc"] = ApiTable.prototype.SetJc; ApiTable.prototype["GetRowsCount"] = ApiTable.prototype.GetRowsCount; @@ -20544,33 +21859,31 @@ ApiTable.prototype["RemoveRow"] = ApiTable.prototype.RemoveRow; ApiTable.prototype["RemoveColumn"] = ApiTable.prototype.RemoveColumn; ApiTable.prototype["Copy"] = ApiTable.prototype.Copy; - ApiTable.prototype["GetCell"] = ApiTable.prototype.GetCell; - ApiTable.prototype["Split"] = ApiTable.prototype.Split; - ApiTable.prototype["AddRows"] = ApiTable.prototype.AddRows; - ApiTable.prototype["AddColumns"] = ApiTable.prototype.AddColumns; - ApiTable.prototype["Select"] = ApiTable.prototype.Select; - ApiTable.prototype["GetRange"] = ApiTable.prototype.GetRange; - ApiTable.prototype["SetHAlign"] = ApiTable.prototype.SetHAlign; - ApiTable.prototype["SetVAlign"] = ApiTable.prototype.SetVAlign; - ApiTable.prototype["SetPaddings"] = ApiTable.prototype.SetPaddings; - ApiTable.prototype["SetWrappingStyle"] = ApiTable.prototype.SetWrappingStyle; + ApiTable.prototype["GetCell"] = ApiTable.prototype.GetCell; + ApiTable.prototype["Split"] = ApiTable.prototype.Split; + ApiTable.prototype["AddRows"] = ApiTable.prototype.AddRows; + ApiTable.prototype["AddColumns"] = ApiTable.prototype.AddColumns; + ApiTable.prototype["Select"] = ApiTable.prototype.Select; + ApiTable.prototype["GetRange"] = ApiTable.prototype.GetRange; + ApiTable.prototype["SetHAlign"] = ApiTable.prototype.SetHAlign; + ApiTable.prototype["SetVAlign"] = ApiTable.prototype.SetVAlign; + ApiTable.prototype["SetPaddings"] = ApiTable.prototype.SetPaddings; + ApiTable.prototype["SetWrappingStyle"] = ApiTable.prototype.SetWrappingStyle; ApiTable.prototype["GetParentContentControl"] = ApiTable.prototype.GetParentContentControl; ApiTable.prototype["InsertInContentControl"] = ApiTable.prototype.InsertInContentControl; - ApiTable.prototype["GetParentTable"] = ApiTable.prototype.GetParentTable; - ApiTable.prototype["GetTables"] = ApiTable.prototype.GetTables; - ApiTable.prototype["GetNext"] = ApiTable.prototype.GetNext; - ApiTable.prototype["GetPrevious"] = ApiTable.prototype.GetPrevious; - ApiTable.prototype["GetParentTableCell"] = ApiTable.prototype.GetParentTableCell; - ApiTable.prototype["Delete"] = ApiTable.prototype.Delete; - ApiTable.prototype["Clear"] = ApiTable.prototype.Clear; - ApiTable.prototype["Search"] = ApiTable.prototype.Search; - ApiTable.prototype["SetTextPr"] = ApiTable.prototype.SetTextPr; - ApiTable.prototype["SetBackgroundColor"] = ApiTable.prototype.SetBackgroundColor; - ApiTable.prototype["ToJSON"] = ApiTable.prototype.ToJSON; - ApiTable.prototype["GetPosInParent"] = ApiTable.prototype.GetPosInParent; - ApiTable.prototype["ReplaceByElement"] = ApiTable.prototype.ReplaceByElement; - ApiTable.prototype["AddComment"] = ApiTable.prototype.AddComment; - ApiTable.prototype["AddCaption"] = ApiTable.prototype.AddCaption; + ApiTable.prototype["GetParentTable"] = ApiTable.prototype.GetParentTable; + ApiTable.prototype["GetTables"] = ApiTable.prototype.GetTables; + ApiTable.prototype["GetParentTableCell"] = ApiTable.prototype.GetParentTableCell; + ApiTable.prototype["Delete"] = ApiTable.prototype.Delete; + ApiTable.prototype["Clear"] = ApiTable.prototype.Clear; + ApiTable.prototype["Search"] = ApiTable.prototype.Search; + ApiTable.prototype["SetTextPr"] = ApiTable.prototype.SetTextPr; + ApiTable.prototype["SetBackgroundColor"] = ApiTable.prototype.SetBackgroundColor; + ApiTable.prototype["ToJSON"] = ApiTable.prototype.ToJSON; + ApiTable.prototype["GetPosInParent"] = ApiTable.prototype.GetPosInParent; + ApiTable.prototype["ReplaceByElement"] = ApiTable.prototype.ReplaceByElement; + ApiTable.prototype["AddComment"] = ApiTable.prototype.AddComment; + ApiTable.prototype["AddCaption"] = ApiTable.prototype.AddCaption; ApiTableRow.prototype["GetClassType"] = ApiTableRow.prototype.GetClassType; ApiTableRow.prototype["GetCellsCount"] = ApiTableRow.prototype.GetCellsCount; @@ -20712,6 +22025,8 @@ ApiParaPr.prototype["GetIndRight"] = ApiParaPr.prototype.GetIndRight; ApiParaPr.prototype["GetIndLeft"] = ApiParaPr.prototype.GetIndLeft; ApiParaPr.prototype["GetIndFirstLine"] = ApiParaPr.prototype.GetIndFirstLine; + ApiParaPr.prototype["SetOutlineLvl"] = ApiParaPr.prototype.SetOutlineLvl; + ApiParaPr.prototype["GetOutlineLvl"] = ApiParaPr.prototype.GetOutlineLvl; ApiParaPr.prototype["ToJSON"] = ApiParaPr.prototype.ToJSON; ApiTablePr.prototype["GetClassType"] = ApiTablePr.prototype.GetClassType; @@ -20817,6 +22132,7 @@ ApiShape.prototype["GetPrevShape"] = ApiShape.prototype.GetPrevShape; ApiChart.prototype["GetClassType"] = ApiChart.prototype.GetClassType; + ApiChart.prototype["GetChartType"] = ApiChart.prototype.GetChartType; ApiChart.prototype["SetTitle"] = ApiChart.prototype.SetTitle; ApiChart.prototype["SetHorAxisTitle"] = ApiChart.prototype.SetHorAxisTitle; ApiChart.prototype["SetVerAxisTitle"] = ApiChart.prototype.SetVerAxisTitle; @@ -20862,6 +22178,8 @@ ApiChart.prototype["SetAxieNumFormat"] = ApiChart.prototype.SetAxieNumFormat; ApiChart.prototype["SetSeriaNumFormat"] = ApiChart.prototype.SetSeriaNumFormat; ApiChart.prototype["SetDataPointNumFormat"] = ApiChart.prototype.SetDataPointNumFormat; + ApiChart.prototype["GetAllSeries"] = ApiChart.prototype.GetAllSeries; + ApiChart.prototype["GetSeries"] = ApiChart.prototype.GetSeries; ApiOleObject.prototype["GetClassType"] = ApiOleObject.prototype.GetClassType; ApiOleObject.prototype["SetData"] = ApiOleObject.prototype.SetData; @@ -20973,6 +22291,7 @@ ApiBlockLvlSdt.prototype["AddElement"] = ApiBlockLvlSdt.prototype.AddElement; ApiBlockLvlSdt.prototype["AddText"] = ApiBlockLvlSdt.prototype.AddText; ApiBlockLvlSdt.prototype["GetRange"] = ApiBlockLvlSdt.prototype.GetRange; + ApiBlockLvlSdt.prototype["Copy"] = ApiBlockLvlSdt.prototype.Copy; ApiBlockLvlSdt.prototype["Search"] = ApiBlockLvlSdt.prototype.Search; ApiBlockLvlSdt.prototype["Select"] = ApiBlockLvlSdt.prototype.Select; ApiBlockLvlSdt.prototype["ToJSON"] = ApiBlockLvlSdt.prototype.ToJSON; @@ -21017,25 +22336,26 @@ ApiTextForm.prototype["SetCellWidth"] = ApiTextForm.prototype.SetCellWidth; ApiTextForm.prototype["SetText"] = ApiTextForm.prototype.SetText; ApiTextForm.prototype["Copy"] = ApiTextForm.prototype.Copy; - + ApiPictureForm.prototype["GetScaleFlag"] = ApiPictureForm.prototype.GetScaleFlag; ApiPictureForm.prototype["SetScaleFlag"] = ApiPictureForm.prototype.SetScaleFlag; ApiPictureForm.prototype["SetLockAspectRatio"] = ApiPictureForm.prototype.SetLockAspectRatio; - ApiPictureForm.prototype["IsLockAspectRatio"] = ApiPictureForm.prototype.IsLockAspectRatio; + ApiPictureForm.prototype["IsLockAspectRatio"] = ApiPictureForm.prototype.IsLockAspectRatio; ApiPictureForm.prototype["SetPicturePosition"] = ApiPictureForm.prototype.SetPicturePosition; ApiPictureForm.prototype["GetPicturePosition"] = ApiPictureForm.prototype.GetPicturePosition; - ApiPictureForm.prototype["SetRespectBorders"] = ApiPictureForm.prototype.SetRespectBorders; - ApiPictureForm.prototype["IsRespectBorders"] = ApiPictureForm.prototype.IsRespectBorders; + ApiPictureForm.prototype["SetRespectBorders"] = ApiPictureForm.prototype.SetRespectBorders; + ApiPictureForm.prototype["IsRespectBorders"] = ApiPictureForm.prototype.IsRespectBorders; ApiPictureForm.prototype["GetImage"] = ApiPictureForm.prototype.GetImage; ApiPictureForm.prototype["SetImage"] = ApiPictureForm.prototype.SetImage; ApiPictureForm.prototype["Copy"] = ApiPictureForm.prototype.Copy; - - ApiDateForm.prototype["GetFormat"] = ApiDateForm.prototype.GetFormat; - ApiDateForm.prototype["SetFormat"] = ApiDateForm.prototype.SetFormat; - ApiDateForm.prototype["GetLanguage"] = ApiDateForm.prototype.GetLanguage; - ApiDateForm.prototype["SetLanguage"] = ApiDateForm.prototype.SetLanguage; - ApiDateForm.prototype["GetTime"] = ApiDateForm.prototype.GetTime; - ApiDateForm.prototype["SetTime"] = ApiDateForm.prototype.SetTime; + + ApiDateForm.prototype["GetFormat"] = ApiDateForm.prototype.GetFormat; + ApiDateForm.prototype["SetFormat"] = ApiDateForm.prototype.SetFormat; + ApiDateForm.prototype["GetLanguage"] = ApiDateForm.prototype.GetLanguage; + ApiDateForm.prototype["SetLanguage"] = ApiDateForm.prototype.SetLanguage; + ApiDateForm.prototype["GetTime"] = ApiDateForm.prototype.GetTime; + ApiDateForm.prototype["SetTime"] = ApiDateForm.prototype.SetTime; + ApiDateForm.prototype["Copy"] = ApiDateForm.prototype.Copy; ApiComboBoxForm.prototype["GetListValues"] = ApiComboBoxForm.prototype.GetListValues; ApiComboBoxForm.prototype["SetListValues"] = ApiComboBoxForm.prototype.SetListValues; @@ -21101,6 +22421,9 @@ ApiWatermarkSettings.prototype["GetImageHeight"] = ApiWatermarkSettings.prototype.GetImageHeight; ApiWatermarkSettings.prototype["SetImageSize"] = ApiWatermarkSettings.prototype.SetImageSize; + ApiChartSeries.prototype["GetClassType"] = ApiChartSeries.prototype.GetClassType; + ApiChartSeries.prototype["ChangeChartType"] = ApiChartSeries.prototype.ChangeChartType; + ApiChartSeries.prototype["GetChartType"] = ApiChartSeries.prototype.GetChartType; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -21136,7 +22459,7 @@ window['AscBuilder'].ApiFormBase = ApiFormBase; window['AscBuilder'].ApiTextForm = ApiTextForm; window['AscBuilder'].ApiPictureForm = ApiPictureForm; - window['AscBuilder'].ApiDateForm = ApiDateForm; + window['AscBuilder'].ApiDateForm = ApiDateForm; window['AscBuilder'].ApiComboBoxForm = ApiComboBoxForm; window['AscBuilder'].ApiCheckBoxForm = ApiCheckBoxForm; window['AscBuilder'].ApiComplexForm = ApiComplexForm; @@ -21194,6 +22517,39 @@ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Private area //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + /** + * @param oApiRange + * @param oTextPr + * @constructor + */ + function ApiRangeTextPr(oApiRange, oTextPr) + { + ApiTextPr.call(this, oApiRange, oTextPr); + } + ApiRangeTextPr.prototype = Object.create(ApiTextPr.prototype); + ApiRangeTextPr.prototype.constructor = ApiRangeTextPr; + ApiRangeTextPr.prototype.private_Update = function() + { + if (!this.Parent) + return; + + this.TextPr.Set_FromObject(this.Parent.private_GetTextPr()); + }; + (function(prototype) { + for (let key in prototype) + { + if (typeof(prototype[key]) === 'function' && key.startsWith('Get')) + { + prototype[key] = function() + { + this.private_Update(); + return ApiTextPr.prototype[key].apply(this, arguments); + }; + } + } + })(ApiRangeTextPr.prototype); + + function ToApiForm(oForm) { if (!oForm) @@ -21256,7 +22612,7 @@ function private_GetDrawingDocument() { - return editor.WordControl.m_oLogicDocument.DrawingDocument; + return Asc.editor.getDrawingDocument(); } function private_PushElementToParagraph(oPara, oElement) @@ -21298,6 +22654,27 @@ else return new ApiUnsupported(); } + function private_GetSupportedDocContentElement(oElement) + { + if (oElement instanceof AscWord.Paragraph) + return new ApiParagraph(oElement); + else if (oElement instanceof AscWord.Table) + return new ApiTable(oElement); + else if (oElement instanceof AscWord.CBlockLevelSdt) + return new ApiBlockLvlSdt(oElement); + else + return new ApiUnsupported(); + } + function private_GetReviewedElement(oElement) + { + if (oElement instanceof AscWord.Paragraph) + return new ApiParagraph(oElement); + else if (oElement instanceof AscWord.Table) + return new ApiTable(oElement); + + // Такого не должно быть (возможно стоит выбросить исключение) + return null; + } function private_CheckForm(oSdt) { @@ -21324,6 +22701,15 @@ { return editor.WordControl.m_oLogicDocument; } + + function LoadFont(fontName) + { + let api = Asc.editor ? Asc.editor : editor; + if (!api) + return; + + api.addBuilderFont(fontName); + } function private_Twips2MM(twips) { @@ -21505,6 +22891,10 @@ { return private_MM2EMU(AscCommon.g_dKoef_pix_to_mm * px); } + function Mm2Px(mm) + { + return mm * AscCommon.g_dKoef_mm_to_pix; + } function private_StartSilentMode() { @@ -21777,6 +23167,115 @@ return undefined; } + function private_GetAllDrawingsWithType(aDrawings, nObjectType, fCreateBuilderWrapper) { + let aWrappers = []; + for(let nIdx = 0; nIdx < aDrawings.length; ++nIdx) { + let oDrawing = aDrawings[nIdx]; + let oGrObj = oDrawing.GraphicObj; + if(oGrObj && oGrObj.getObjectType() === nObjectType) { + aWrappers.push(fCreateBuilderWrapper(oGrObj)); + } + } + return aWrappers; + } + + + function private_ChartInternalTypeToBuilder(sType) { + switch (sType) { + case Asc.c_oAscChartTypeSettings.unknown: { + return "unknown"; + } + case Asc.c_oAscChartTypeSettings.barNormal: { + return "bar"; + } + case Asc.c_oAscChartTypeSettings.barStacked: { + return "barStacked"; + } + case Asc.c_oAscChartTypeSettings.barStackedPer: { + return "barStackedPercent"; + } + case Asc.c_oAscChartTypeSettings.barNormal3d: { + return "bar3D"; + } + case Asc.c_oAscChartTypeSettings.barStacked3d: { + return "barStacked3D"; + } + case Asc.c_oAscChartTypeSettings.barStackedPer3d: { + return "barStackedPercent3D"; + } + case Asc.c_oAscChartTypeSettings.barNormal3dPerspective: { + return "barStackedPercent3DPerspective"; + } + case Asc.c_oAscChartTypeSettings.hBarNormal: { + return "horizontalBar"; + } + case Asc.c_oAscChartTypeSettings.hBarStacked: { + return "horizontalBarStacked"; + } + case Asc.c_oAscChartTypeSettings.hBarStackedPer: { + return "horizontalBarStackedPercent"; + } + case Asc.c_oAscChartTypeSettings.hBarNormal3d: { + return "horizontalBar3D"; + } + case Asc.c_oAscChartTypeSettings.hBarStacked3d: { + return "horizontalBarStacked3D"; + } + case Asc.c_oAscChartTypeSettings.hBarStackedPer3d: { + return "horizontalBarStackedPercent3D"; + } + case Asc.c_oAscChartTypeSettings.lineNormal: { + return "lineNormal"; + } + case Asc.c_oAscChartTypeSettings.lineStacked: { + return "lineStacked"; + } + case Asc.c_oAscChartTypeSettings.lineStackedPer: { + return "lineStackedPercent"; + } + case Asc.c_oAscChartTypeSettings.line3d: { + return "line3D"; + } + case Asc.c_oAscChartTypeSettings.pie: { + return "pie"; + } + case Asc.c_oAscChartTypeSettings.pie3d: { + return "pie3D"; + } + case Asc.c_oAscChartTypeSettings.doughnut: { + return "doughnut"; + } + case Asc.c_oAscChartTypeSettings.scatter: { + return "scatter"; + } + case Asc.c_oAscChartTypeSettings.stock: { + return "stock"; + } + case Asc.c_oAscChartTypeSettings.areaNormal: { + return "area"; + } + case Asc.c_oAscChartTypeSettings.areaStacked: { + return "areaStacked"; + } + case Asc.c_oAscChartTypeSettings.areaStackedPer: { + return "areaStackedPercent"; + } + case Asc.c_oAscChartTypeSettings.comboBarLine: { + return "comboBarLine"; + } + case Asc.c_oAscChartTypeSettings.comboBarLineSecondary: { + return "comboBarLineSecondary"; + } + case Asc.c_oAscChartTypeSettings.comboCustom: { + return "comboCustom"; + } + case Asc.c_oAscChartTypeSettings.comboCustom: { + return "comboCustom"; + } + } + return "unknown"; + } + function logError(err) { if (console.error) console.error(err); @@ -22116,7 +23615,7 @@ if (this.IsFixed() && (oShape = this.GetWrapperShape())) { let oRun = new ParaRun(null, false); - oRun.AddToContent(0, oShape.Drawing); + oRun.AddToContent(0, oShape.getParaDrawing()); return oRun; } @@ -22149,6 +23648,11 @@ oComment.private_OnChange(); }; + ApiRange.prototype.OnChangeTextPr = function(oApiTextPr) + { + this.SetTextPr(oApiTextPr); + }; + Api.prototype.private_CreateApiParagraph = function(oParagraph){ return new ApiParagraph(oParagraph); }; @@ -22308,5 +23812,9 @@ Api.prototype.private_CreateApiComment = function(oComment){ return new ApiComment(oComment); }; + Api.prototype.private_CreateApiChart = function(oChartSpace){ + return new ApiChart(oChartSpace); + }; }(window, null)); + diff --git a/word/apiCommon.js b/word/apiCommon.js index 7f388ce481..caa02bcc40 100644 --- a/word/apiCommon.js +++ b/word/apiCommon.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -209,7 +209,7 @@ this.Value = v; }; - window['Asc']['CTablePositionH'] = CTablePositionH; + window['Asc']['CTablePositionH'] = window['Asc'].CTablePositionH = CTablePositionH; CTablePositionH.prototype['get_RelativeFrom'] = CTablePositionH.prototype.get_RelativeFrom; CTablePositionH.prototype['put_RelativeFrom'] = CTablePositionH.prototype.put_RelativeFrom; CTablePositionH.prototype['get_UseAlign'] = CTablePositionH.prototype.get_UseAlign; @@ -218,7 +218,7 @@ CTablePositionH.prototype['put_Align'] = CTablePositionH.prototype.put_Align; CTablePositionH.prototype['get_Value'] = CTablePositionH.prototype.get_Value; CTablePositionH.prototype['put_Value'] = CTablePositionH.prototype.put_Value; - window['Asc']['CTablePositionV'] = CTablePositionV; + window['Asc']['CTablePositionV'] = window['Asc'].CTablePositionV = CTablePositionV; CTablePositionV.prototype['get_RelativeFrom'] = CTablePositionV.prototype.get_RelativeFrom; CTablePositionV.prototype['put_RelativeFrom'] = CTablePositionV.prototype.put_RelativeFrom; CTablePositionV.prototype['get_UseAlign'] = CTablePositionV.prototype.get_UseAlign; @@ -2178,7 +2178,7 @@ } var t = this.Api; var _this = this; - AscCommon.ShowImageFileDialog(t.documentId, t.documentUserId, t.CoAuthoringApi.get_jwt(), t.documentShardKey, t.documentWopiSrc, function(error, files) + AscCommon.ShowImageFileDialog(t.documentId, t.documentUserId, t.CoAuthoringApi.get_jwt(), t.documentShardKey, t.documentWopiSrc, t.documentUserSessionId, function(error, files) { if (Asc.c_oAscError.ID.No !== error) { @@ -2187,7 +2187,7 @@ else { t.sync_StartAction(Asc.c_oAscAsyncActionType.BlockInteraction, Asc.c_oAscAsyncAction.UploadImage); - AscCommon.UploadImageFiles(files, t.documentId, t.documentUserId, t.CoAuthoringApi.get_jwt(), t.documentShardKey, t.documentWopiSrc, function(error, urls) + AscCommon.UploadImageFiles(files, t.documentId, t.documentUserId, t.CoAuthoringApi.get_jwt(), t.documentShardKey, t.documentWopiSrc, t.documentUserSessionId, function(error, urls) { if (Asc.c_oAscError.ID.No !== error) { diff --git a/word/apiDefines.js b/word/apiDefines.js index 84e6c98890..46e4ccb1ad 100644 --- a/word/apiDefines.js +++ b/word/apiDefines.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/api_plugins.js b/word/api_plugins.js index 6d6867dd7a..e19a0d6b57 100644 --- a/word/api_plugins.js +++ b/word/api_plugins.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -48,25 +48,28 @@ * @property {string} Id - A unique identifier of the content control. It can be used to search for a certain content control and make reference to it in the code. * @property {ContentControlLock} Lock - A value that defines if it is possible to delete and/or edit the content control or not: 0 - only deleting, 1 - no deleting or editing, 2 - only editing, 3 - full access. * @property {string} InternalId - A unique internal identifier of the content control. It is used for all operations with content controls. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControl.js + */ /** * @typedef {(0 | 1 | 2 | 3)} ContentControlLock * A value that defines if it is possible to delete and/or edit the content control or not: - * * 0 - only deleting - * * 1 - disable deleting or editing - * * 2 - only editing - * * 3 - full access - */ + * 0 - only deleting + * 1 - disable deleting or editing + * 2 - only editing + * 3 - full access + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlLock.js + */ /** * @typedef {(1 | 2 | 3 | 4)} ContentControlType * A numeric value that specifies the content control type: - * * 1 - block content control - * * 2 - inline content control - * * 3 - row content control - * * 4 - cell content control - */ + * 1 - block content control + * 2 - inline content control + * 3 - row content control + * 4 - cell content control + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlType.js + */ /** * @typedef {Object} ContentControlPropertiesAndContent @@ -74,7 +77,8 @@ * @property {ContentControlProperties} [ContentControlProperties = {}] - The content control properties. * @property {string} Script - A script that will be executed to generate the data within the content control (can be replaced with the *Url* parameter). * @property {string} Url - A link to the shared file (can be replaced with the *Script* parameter). - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlPropertiesAndContent.js + */ /** * @typedef {Object} ContentControlProperties @@ -90,25 +94,26 @@ * @property {number} Color.R - Red color component value. * @property {number} Color.G - Green color component value. * @property {number} Color.B - Blue color component value. - * @example - * {"Id": 100, "Tag": "CC_Tag", "Lock": 3} - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlProperties.js + */ /** * @typedef {('none' | 'comments' | 'forms' | 'readOnly')} DocumentEditingRestrictions * The document editing restrictions: - * * none - no editing restrictions, - * * comments - allows editing comments, - * * forms - allows editing form fields, - * * readOnly - does not allow editing. + * none - no editing restrictions, + * comments - allows editing comments, + * forms - allows editing form fields, + * readOnly - does not allow editing. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/DocumentEditingRestrictions.js */ /** * @typedef {("entirely" | "beforeCursor" | "afterCursor")} TextPartType * Specifies if the whole text or only its part will be returned or replaced: - * * entirely - replaces/returns the whole text, - * * beforeCursor - replaces/returns only the part of the text before the cursor, - * * afterCursor - replaces/returns only the part of the text after the cursor. + * entirely - replaces/returns the whole text, + * beforeCursor - replaces/returns only the part of the text before the cursor, + * afterCursor - replaces/returns only the part of the text after the cursor. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/TextPartType.js */ var Api = window["asc_docs_api"]; @@ -120,7 +125,8 @@ * @alias OpenFile * @param {Uint8Array} binaryFile - A file in the format of the 8-bit unsigned integer array. * @param {string[]} fields - A list of field values. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/OpenFile.js + */ window["asc_docs_api"].prototype["pluginMethod_OpenFile"] = function(binaryFile, fields) { this.asc_CloseFile(); @@ -139,7 +145,8 @@ * @typeofeditors ["CDE"] * @alias GetFields * @returns {string[]} - A list of field values. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetFields.js + */ window["asc_docs_api"].prototype["pluginMethod_GetFields"] = function() { return this.asc_GetBlockChainData(); @@ -151,28 +158,8 @@ * @alias InsertAndReplaceContentControls * @param {ContentControlPropertiesAndContent[]} arrDocuments - An array of properties and contents of the content control. * @return {ContentControlProperties[]} - An array of created content control properties. - * @example - * // Add new content control - * var arrDocuments = [{ - * "Props": { - * "Id": 100, - * "Tag": "CC_Tag", - * "Lock": 3 - * }, - * "Script": "var oParagraph = Api.CreateParagraph();oParagraph.AddText('Hello world!');Api.GetDocument().InsertContent([oParagraph]);" - *}] - * window.Asc.plugin.executeMethod("InsertAndReplaceContentControls", [arrDocuments]); - * - * // Change existed content control - * var arrDocuments = [{ - * "Props": { - * "InternalId": "2_803" - * }, - * "Script": "var oParagraph = Api.CreateParagraph();oParagraph.AddText('New text');Api.GetDocument().InsertContent([oParagraph]);" - *}] - * window.Asc.plugin.executeMethod("InsertAndReplaceContentControls", [arrDocuments]); - - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/InsertAndReplaceContentControls.js + */ window["asc_docs_api"].prototype["pluginMethod_InsertAndReplaceContentControls"] = function(arrDocuments) { var _worker = new AscCommon.CContentControlPluginWorker(this, arrDocuments); @@ -184,9 +171,8 @@ * @typeofeditors ["CDE"] * @alias RemoveContentControls * @param {ContentControl[]} arrDocuments - An array of content control internal IDs. Example: [{"InternalId": "5_556"}]. - * @example - * window.Asc.plugin.executeMethod("RemoveContentControls", [[{"InternalId": "5_556"}]]) - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveContentControls.js + */ window["asc_docs_api"].prototype["pluginMethod_RemoveContentControls"] = function(arrDocuments) { var _worker = new AscCommon.CContentControlPluginWorker(this, arrDocuments); @@ -198,9 +184,8 @@ * @typeofeditors ["CDE"] * @alias GetAllContentControls * @returns {ContentControl[]} - An array of content control objects. - * @example - * window.Asc.plugin.executeMethod("GetAllContentControls"); - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetAllContentControls.js + */ window["asc_docs_api"].prototype["pluginMethod_GetAllContentControls"] = function() { var _blocks = this.WordControl.m_oLogicDocument.GetAllContentControls(); @@ -220,7 +205,8 @@ * @property {object} Parent - The content control parent. For example, oParagraph. * @property {number} Pos - The content control position within the parent object. * @property {number} Count - A number of elements in the parent object. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlParentPr.js + */ /** * Removes the currently selected content control retaining all its contents. The content control where the mouse cursor is currently positioned will be removed. @@ -229,9 +215,8 @@ * @alias RemoveContentControl * @param {string} InternalId - A unique internal identifier of the content control. * @returns {ContentControlParentPr} - An object which contains the following values: Parent - content control parent, Pos - content control position within the parent object, Count - a number of elements in the parent object. - * @example - * window.Asc.plugin.executeMethod("RemoveContentControl", ["InternalId"]) - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveContentControl.js + */ window["asc_docs_api"].prototype["pluginMethod_RemoveContentControl"] = function(InternalId) { return this.asc_RemoveContentControlWrapper(InternalId); @@ -242,9 +227,8 @@ * @typeofeditors ["CDE"] * @alias GetCurrentContentControl * @returns {string} - The content control internal ID. - * @example - * window.Asc.plugin.executeMethod("GetCurrentContentControl"); - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetCurrentContentControl.js + */ window["asc_docs_api"].prototype["pluginMethod_GetCurrentContentControl"] = function() { return this.asc_GetCurrentContentControl(); @@ -256,9 +240,8 @@ * @alias GetCurrentContentControlPr * @param {string} contentFormat - The content format ("none", "text", "html", "ole" or "desktop"). * @returns {ContentControlProperties} - The content control properties. - * @example - * window.Asc.plugin.executeMethod("GetCurrentContentControlPr") - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetCurrentContentControlPr.js + */ window["asc_docs_api"].prototype["pluginMethod_GetCurrentContentControlPr"] = function(contentFormat) { var oLogicDocument = this.private_GetLogicDocument(); @@ -324,9 +307,8 @@ * @typeofeditors ["CDE"] * @alias SelectContentControl * @param {string} id - A unique internal identifier of the content control. - * @example - * window.Asc.plugin.executeMethod("SelectContentControl", ["5_665"]); - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SelectContentControl.js + */ window["asc_docs_api"].prototype["pluginMethod_SelectContentControl"] = function(id) { var oLogicDocument = this.private_GetLogicDocument(); @@ -342,9 +324,8 @@ * @alias MoveCursorToContentControl * @param {string} id - A unique internal identifier of the content control. * @param {boolean} [isBegin = false] - Defines if the cursor position changes in the content control. By default, a cursor will be placed to the content control begin (**false**). - * @example - * window.Asc.plugin.executeMethod("MoveCursorToContentControl", ["2_839", false]) - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/MoveCursorToContentControl.js + */ window["asc_docs_api"].prototype["pluginMethod_MoveCursorToContentControl"] = function(id, isBegin) { var oLogicDocument = this.private_GetLogicDocument(); @@ -358,9 +339,8 @@ * @memberof Api * @typeofeditors ["CDE"] * @alias RemoveSelectedContent - * @example - * window.Asc.plugin.executeMethod("RemoveSelectedContent") - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveSelectedContent.js + */ window["asc_docs_api"].prototype["pluginMethod_RemoveSelectedContent"] = function() { var oLogicDocument = this.private_GetLogicDocument(); @@ -380,6 +360,7 @@ * Comment object. * @property {string} Id - The comment ID. * @property {CommentData} Data - An object which contains the comment data. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/comment.js */ /** @@ -391,6 +372,7 @@ * @property {string} Time - The time when the comment was posted (in milliseconds). * @property {boolean} Solved - Specifies if the comment is resolved (**true**) or not (**false**). * @property {CommentData[]} Replies - An array containing the comment replies represented as the *CommentData* object. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/CommentData.js */ /** @@ -400,6 +382,7 @@ * @alias AddComment * @param {CommentData} oCommentData - An object which contains the comment data. * @return {string | null} - The comment ID in the string format or null if the comment cannot be added. + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddComment.js */ window["asc_docs_api"].prototype["pluginMethod_AddComment"] = function(oCommentData) { @@ -419,7 +402,8 @@ * @typeofeditors ["CDE"] * @alias MoveCursorToStart * @param {boolean} isMoveToMainContent - This flag ignores the current position and always moves a cursor to the beginning of the document body. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/MoveCursorToStart.js + */ window["asc_docs_api"].prototype["pluginMethod_MoveCursorToStart"] = function(isMoveToMainContent) { var oLogicDocument = this.private_GetLogicDocument(); @@ -438,7 +422,8 @@ * @typeofeditors ["CDE"] * @alias MoveCursorToEnd * @param {boolean} isMoveToMainContent - This flag ignores the current position and always moves a cursor to the end of the document body. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/MoveCursorToEnd.js + */ window["asc_docs_api"].prototype["pluginMethod_MoveCursorToEnd"] = function(isMoveToMainContent) { var oLogicDocument = this.private_GetLogicDocument(); @@ -459,7 +444,8 @@ * @param {string} oProperties.searchString - The search string. * @param {string} oProperties.replaceString - The replacement string. * @param {boolean} [oProperties.matchCase=true] - Case sensitive or not. - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SearchAndReplace.js + */ window["asc_docs_api"].prototype["pluginMethod_SearchAndReplace"] = function(oProperties) { var sReplace = oProperties["replaceString"]; @@ -484,6 +470,7 @@ * @param {boolean} [oProperties.matchCase=true] - Case sensitive or not. * @param {boolean} [isForward=true] - Search direction. * @returns {boolean} returns false if text was not found + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SearchNext.js */ window["asc_docs_api"].prototype["pluginMethod_SearchNext"] = function(oProperties, isForward) { @@ -509,9 +496,8 @@ * @typeofeditors ["CDE"] * @alias GetFileHTML * @return {string} - The HTML file content in the string format. - * @example - * window.Asc.plugin.executeMethod("GetFileHTML") - */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetFileHTML.js + */ window["asc_docs_api"].prototype["pluginMethod_GetFileHTML"] = function() { return this.ContentToHTML(true); @@ -522,6 +508,7 @@ * @typeofeditors ["CDE"] * @alias GetAllComments * @returns {comment[]} - An array of comment objects containing the comment data. + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetAllComments.js */ window["asc_docs_api"].prototype["pluginMethod_GetAllComments"] = function() { @@ -546,6 +533,7 @@ * @memberof Api * @typeofeditors ["CDE"] * @alias RemoveComments + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveComments.js */ window["asc_docs_api"].prototype["pluginMethod_RemoveComments"] = function(arrIds) { @@ -558,6 +546,7 @@ * @alias ChangeComment * @param {string} sId - The comment ID. * @param {CommentData} oCommentData - An object which contains the new comment data. + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ChangeComment.js */ window["asc_docs_api"].prototype["pluginMethod_ChangeComment"] = function(sId, oCommentData) { @@ -588,6 +577,7 @@ * @typeofeditors ["CDE"] * @alias MoveToComment * @param {string} sId - The comment ID. + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/MoveToComment.js */ window["asc_docs_api"].prototype["pluginMethod_MoveToComment"] = function(sId) { @@ -600,10 +590,11 @@ * @typeofeditors ["CDE"] * @alias SetDisplayModeInReview * @param {string} [sMode="edit"] - The display mode: - * * edit - all changes are displayed, - * * simple - all changes are displayed but the balloons are turned off, - * * final - all accepted changes are displayed, - * * original - all rejected changes are displayed. + * edit - all changes are displayed, + * simple - all changes are displayed but the balloons are turned off, + * final - all accepted changes are displayed, + * original - all rejected changes are displayed. + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SetDisplayModeInReview.js */ window["asc_docs_api"].prototype["pluginMethod_SetDisplayModeInReview"] = function(sMode) { @@ -628,10 +619,7 @@ * @param {ContentControlType} type - A numeric value that specifies the content control type. It can have one of the following values: 1 (block), 2 (inline), 3 (row), or 4 (cell). * @param {ContentControlProperties} [commonPr = {}] - The common content control properties. * @returns {ContentControl} - A JSON object containing the data about the created content control. - * @example - * var type = 1; - * var properties = {"Id": 100, "Tag": "CC_Tag", "Lock": 3}; - * window.Asc.plugin.executeMethod("AddContentControl", [type, properties]); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddContentControl.js */ window["asc_docs_api"].prototype["pluginMethod_AddContentControl"] = function(type, commonPr) { @@ -649,6 +637,7 @@ * @property {boolean} Checked - Defines if the content control checkbox is checked or not. * @property {number} CheckedSymbol - A symbol in the HTML code format that is used when the checkbox is checked. * @property {number} UncheckedSymbol - A symbol in the HTML code format that is used when the checkbox is not checked. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlCheckBoxProperties.js */ /** @@ -658,10 +647,7 @@ * @alias AddContentControlCheckBox * @param {ContentControlCheckBoxProperties} [checkBoxPr = {}] - The content control checkbox properties. * @param {ContentControlProperties} [commonPr = {}] - The common content control properties. - * @example - * var checkBoxPr = {"Checked": false, "CheckedSymbol": 9746, "UncheckedSymbol": 9744}; - * var commonPr = {"Id": 100, "Tag": "CC_Tag", "Lock": 3}; - * window.Asc.plugin.executeMethod("AddContentControlCheckBox", [checkBoxPr, commonPr]); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddContentControlCheckBox.js */ window["asc_docs_api"].prototype["pluginMethod_AddContentControlCheckBox"] = function(checkBoxPr, commonPr) { @@ -688,9 +674,7 @@ * @typeofeditors ["CDE"] * @alias AddContentControlPicture * @param {ContentControlProperties} [commonPr = {}] - The common content control properties. - * @example - * var commonPr = {"Id": 100, "Tag": "CC_Tag", "Lock": 3}; - * window.Asc.plugin.executeMethod("AddContentControlPicture", [commonPr]); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddContentControlPicture.js */ window["asc_docs_api"].prototype["pluginMethod_AddContentControlPicture"] = function(commonPr) { @@ -706,11 +690,7 @@ * @param {ContentControlType} type - A numeric value that specifies the content control type. It can have one of the following values: 1 (combo box), 0 (dropdown list). * @param {Array} [List = [{Display, Value}]] - A list of the content control elements that consists of two items: Display - an item that will be displayed to the user in the content control list, Value - a value of each item from the content control list. * @param {ContentControlProperties} [commonPr = {}] - The common content control properties. - * @example - * var type = 1; //1 - ComboBox 0 - DropDownList - * var List = [{Display: "Item1_D", Value: "Item1_V"}, {Display: "Item2_D", Value: "Item2_V"}]; - * var commonPr = {"Id": 100, "Tag": "CC_Tag", "Lock": 3}; - * window.Asc.plugin.executeMethod("AddContentControlList", [type, List, commonPr]); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddContentControlList.js */ window["asc_docs_api"].prototype["pluginMethod_AddContentControlList"] = function(type, List, commonPr) { @@ -734,6 +714,7 @@ * @property {string} DateFormat - A format in which the date will be displayed. * For example: *"MM/DD/YYYY", "dddd\,\ mmmm\ dd\,\ yyyy", "DD\ MMMM\ YYYY", "MMMM\ DD\,\ YYYY", "DD-MMM-YY", "MMMM\ YY", "MMM-YY", "MM/DD/YYYY\ hh:mm\ AM/PM", "MM/DD/YYYY\ hh:mm:ss\ AM/PM", "hh:mm", "hh:mm:ss", "hh:mm\ AM/PM", "hh:mm:ss:\ AM/PM"*. * @property {object} Date - The current date and time. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/ContentControlDatePickerProperties.js */ /** @@ -743,26 +724,7 @@ * @alias AddContentControlDatePicker * @param {ContentControlDatePickerProperties} [datePickerPr = {}] - The content control datepicker properties. * @param {ContentControlProperties} [commonPr = {}] - The common content control properties. - * @example - * var DateFormats = [ - * "MM/DD/YYYY", - * "dddd\,\ mmmm\ dd\,\ yyyy", - * "DD\ MMMM\ YYYY", - * "MMMM\ DD\,\ YYYY", - * "DD-MMM-YY", - * "MMMM\ YY", - * "MMM-YY", - * "MM/DD/YYYY\ hh:mm\ AM/PM", - * "MM/DD/YYYY\ hh:mm:ss\ AM/PM", - * "hh:mm", - * "hh:mm:ss", - * "hh:mm\ AM/PM", - * "hh:mm:ss:\ AM/PM" - * ]; - * var Date = new window.Date(); - * var datePickerPr = {"DateFormat" : DateFormats[2], "Date" : Date}; - * var commonPr = {"Id": 100, "Tag": "CC_Tag", "Lock": 3}; - * window.Asc.plugin.executeMethod("AddContentControlDatePicker", [datePickerPr, commonPr]); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddContentControlDatePicker.js */ window["asc_docs_api"].prototype["pluginMethod_AddContentControlDatePicker"] = function(datePickerPr, commonPr) { @@ -794,6 +756,7 @@ * @property {number} Height - The OLE object height measured in millimeters. * @property {?number} WidthPix - The OLE object image width in pixels. * @property {?number} HeightPix - The OLE object image height in pixels. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/OLEObjectData.js */ /** @@ -802,6 +765,7 @@ * @property {string} FieldId - Field identifier. * @property {string} Value - Field value. * @property {string} Content - Field text content. + * @see office-js-api/Examples/Plugins/{Editor}/Enumeration/AddinFieldData.js */ /** @@ -813,7 +777,8 @@ * @param {?string} sPluginId - Plugin identifier. It must be of the *asc.{UUID}* type. * @returns {OLEObjectData[]} - An array of the OLEObjectData objects containing the data about the OLE object parameters. * @since 7.1.0 - * */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetAllOleObjects.js + */ window["asc_docs_api"].prototype["pluginMethod_GetAllOleObjects"] = function (sPluginId) { let aDataObjects = []; @@ -835,7 +800,8 @@ * @alias RemoveOleObject * @param {string} sInternalId - The OLE object identifier which is used to work with OLE object added to the document. * @since 7.1.0 - * */ + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveOleObject.js + */ window["asc_docs_api"].prototype["pluginMethod_RemoveOleObject"] = function (sInternalId) { let oLogicDocument = this.private_GetLogicDocument(); @@ -853,8 +819,7 @@ * @alias RemoveOleObjects * @param {OLEObjectData[]} arrObjects An array of the identifiers which are used to work with OLE objects added to the document. Example: [{"InternalId": "5_556"}]. * @since 7.1.0 - * @example - * window.Asc.plugin.executeMethod("RemoveOleObjects", [[{"InternalId": "5_556"}]]) + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveOleObjects.js */ window["asc_docs_api"].prototype["pluginMethod_RemoveOleObjects"] = function (arrObjects) { @@ -879,8 +844,7 @@ * @alias SelectOleObject * @param {string} id - The OLE object identifier which is used to work with OLE object added to the document. * @since 7.1.0 - * @example - * window.Asc.plugin.executeMethod("SelectOleObject", ["5_665"]); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SelectOleObject.js */ window["asc_docs_api"].prototype["pluginMethod_SelectOleObject"] = function(id) { @@ -904,6 +868,7 @@ * @param {OLEObjectData} NewObject - The OLEObjectData object. * @param {?boolean} bSelect - Defines if the OLE object will be selected after inserting into the document (**true**) or not (**false**). * @since 7.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/InsertOleObject.js */ window["asc_docs_api"].prototype["pluginMethod_InsertOleObject"] = function(NewObject, bSelect) { @@ -928,6 +893,7 @@ * @alias ChangeOleObject * @param {OLEObjectData} ObjectData - The OLEObjectData object. * @since 7.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ChangeOleObject.js */ window["asc_docs_api"].prototype["pluginMethod_ChangeOleObject"] = function(ObjectData) { @@ -940,6 +906,7 @@ * @alias ChangeOleObjects * @param {OLEObjectData[]} arrObjectData - An array of OLE object data. * @since 7.1.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ChangeOleObjects.js */ window["asc_docs_api"].prototype["pluginMethod_ChangeOleObjects"] = function(arrObjectData) { @@ -1035,8 +1002,7 @@ * @alias AcceptReviewChanges * @param {boolean} [isAll=false] Specifies if all changes will be accepted (**true**) or only changes from the current selection (**false**). * @since 7.2.1 - * @example - * window.Asc.plugin.executeMethod("AcceptReviewChanges"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AcceptReviewChanges.js */ window["asc_docs_api"].prototype["pluginMethod_AcceptReviewChanges"] = function(isAll) { @@ -1052,8 +1018,7 @@ * @alias RejectReviewChanges * @param {boolean} [isAll=false] Specifies if all changes will be rejected (**true**) or only changes from the current selection (**false**). * @since 7.2.1 - * @example - * window.Asc.plugin.executeMethod("RejectReviewChanges"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RejectReviewChanges.js */ window["asc_docs_api"].prototype["pluginMethod_RejectReviewChanges"] = function(isAll) { @@ -1069,8 +1034,7 @@ * @alias MoveToNextReviewChange * @param {boolean} [isForward=true] Specifies whether to navigate to the next (**true**) or previous (**false**) review change. * @since 7.2.1 - * @example - * window.Asc.plugin.executeMethod("MoveToNextReviewChange"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/MoveToNextReviewChange.js */ window["asc_docs_api"].prototype["pluginMethod_MoveToNextReviewChange"] = function(isForward) { @@ -1086,8 +1050,7 @@ * @alias GetAllAddinFields * @returns {AddinFieldData[]} - An array of the AddinFieldData objects containing the data about the addin fields. * @since 7.3.3 - * @example - * window.Asc.plugin.executeMethod("GetAllAddinFields"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetAllAddinFields.js */ window["asc_docs_api"].prototype["pluginMethod_GetAllAddinFields"] = function() { @@ -1113,8 +1076,7 @@ * @alias UpdateAddinFields * @param {AddinFieldData[]} arrData - An array of addin field data. * @since 7.3.3 - * @example - * window.Asc.plugin.executeMethod("UpdateAddinFields"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/UpdateAddinFields.js */ window["asc_docs_api"].prototype["pluginMethod_UpdateAddinFields"] = function(arrData) { @@ -1137,8 +1099,7 @@ * @alias AddAddinField * @param {AddinFieldData} data - Addin field data. * @since 7.3.3 - * @example - * window.Asc.plugin.executeMethod("AddAddinField"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/AddAddinField.js */ window["asc_docs_api"].prototype["pluginMethod_AddAddinField"] = function(data) { @@ -1155,8 +1116,7 @@ * @alias RemoveFieldWrapper * @param {string} [fieldId=undefined] - Field ID. If it is not specified, then the wrapper of the current field is removed. * @since 7.3.3 - * @example - * window.Asc.plugin.executeMethod("RemoveFieldWrapper"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/RemoveFieldWrapper.js */ window["asc_docs_api"].prototype["pluginMethod_RemoveFieldWrapper"] = function(fieldId) { @@ -1173,8 +1133,7 @@ * @alias SetEditingRestrictions * @param {DocumentEditingRestrictions} restrictions - The document editing restrictions. * @since 7.3.3 - * @example - * window.Asc.plugin.executeMethod("SetEditingRestrictions"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/SetEditingRestrictions.js */ window["asc_docs_api"].prototype["pluginMethod_SetEditingRestrictions"] = function(restrictions) { @@ -1204,8 +1163,7 @@ * @param {TextPartType} [type="entirely"] - Specifies if the whole word or only its part will be returned. * @returns {string} - A word or its part. * @since 7.4.0 - * @example - * window.Asc.plugin.executeMethod("GetCurrentWord"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetCurrentWord.js */ window["asc_docs_api"].prototype["pluginMethod_GetCurrentWord"] = function(type) { @@ -1223,8 +1181,7 @@ * @param {string} replaceString - Replacement string. * @param {TextPartType} [type="entirely"] - Specifies if the whole word or only its part will be replaced. * @since 7.4.0 - * @example - * window.Asc.plugin.executeMethod("ReplaceCurrentWord"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ReplaceCurrentWord.js */ window["asc_docs_api"].prototype["pluginMethod_ReplaceCurrentWord"] = function(replaceString, type) { @@ -1244,8 +1201,7 @@ * @param {TextPartType} [type="entirely"] - Specifies if the whole sentence or only its part will be returned. * @returns {string} - A sentence or its part. * @since 7.4.0 - * @example - * window.Asc.plugin.executeMethod("GetCurrentSentence"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/GetCurrentSentence.js */ window["asc_docs_api"].prototype["pluginMethod_GetCurrentSentence"] = function(type) { @@ -1263,8 +1219,7 @@ * @param {string} replaceString - Replacement string. * @param {TextPartType} [type="entirely"] - Specifies if the whole sentence or only its part will be replaced. * @since 7.4.0 - * @example - * window.Asc.plugin.executeMethod("ReplaceCurrentSentence"); + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/ReplaceCurrentSentence.js */ window["asc_docs_api"].prototype["pluginMethod_ReplaceCurrentSentence"] = function(replaceString, type) { @@ -1277,6 +1232,54 @@ return logicDocument.ReplaceCurrentSentence(private_GetTextDirection(type), _replaceString); }; + /** + * Undoes the user's last action. + * @memberof Api + * @typeofeditors ["CDE"] + * @alias Undo + * @since 8.2.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/Undo.js + */ + window["asc_docs_api"].prototype["pluginMethod_Undo"] = function() + { + this.Undo(); + }; + /** + * Reverts the user's last undone action. + * @memberof Api + * @typeofeditors ["CDE"] + * @alias Redo + * @since 8.2.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/Redo.js + */ + window["asc_docs_api"].prototype["pluginMethod_Redo"] = function() + { + this.Redo(); + }; + /** + * Checks if it is possible to undo the user's last action. + * @memberof Api + * @typeofeditors ["CDE"] + * @alias CanUndo + * @since 8.2.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/CanUndo.js + */ + window["asc_docs_api"].prototype["pluginMethod_CanUndo"] = function() + { + return this.asc_getCanUndo(); + }; + /** + * Checks if it possible to revert the user's last undone action. + * @memberof Api + * @typeofeditors ["CDE"] + * @alias CanRedo + * @since 8.2.0 + * @see office-js-api/Examples/Plugins/{Editor}/Api/Methods/CanRedo.js + */ + window["asc_docs_api"].prototype["pluginMethod_CanRedo"] = function() + { + return this.asc_getCanRedo(); + }; function private_ReadContentControlCommonPr(commonPr) { @@ -1322,3 +1325,5 @@ } })(window); + + diff --git a/word/document/editor.js b/word/document/editor.js index 0948f9806b..865f687e38 100644 --- a/word/document/editor.js +++ b/word/document/editor.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/document/empty.js b/word/document/empty.js index 8c76f98aee..e5a82ee711 100644 --- a/word/document/empty.js +++ b/word/document/empty.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) diff --git a/word/fromToJSON.js b/word/fromToJSON.js index 23e54bcb10..40e1982352 100644 --- a/word/fromToJSON.js +++ b/word/fromToJSON.js @@ -1,5 +1,5 @@ /* - * (c) Copyright Ascensio System SIA 2010-2023 + * (c) Copyright Ascensio System SIA 2010-2024 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) @@ -10419,7 +10419,7 @@ { if (oParsedNumPr["numId"] === oPrevNumIdInfo.nNumId && oPrevNumIdInfo.sPrevCreatedNumId) { - return new CNumPr(oPrevNumIdInfo.sPrevCreatedNumId, oParsedNumPr["ilvl"]); + return new AscWord.NumPr(oPrevNumIdInfo.sPrevCreatedNumId, oParsedNumPr["ilvl"]); } } @@ -10435,12 +10435,11 @@ oPrevNumIdInfo.sPrevCreatedNumId = sNumId; oPrevNumIdInfo.nNumId = oParsedNumPr["numId"]; } - - var oNumPr = new CNumPr(sNumId, nNumLvl); + if (nNumLvl == null) - oNumPr.Lvl = undefined; + nNumLvl = undefined; - return oNumPr; + return new AscWord.NumPr(sNumId, nNumLvl); }; ReaderFromJSON.prototype.ParaSpacingFromJSON = function(oParsedSpacing) { @@ -12725,13 +12724,7 @@ oData = new AscFormat.DiagramData(); break; case "styleData": - oData = new AscFormat.StyleData(); - oParsedData["useDef"] != undefined && oData.setUseDef(oParsedData["useDef"]); - break; case "clrData": - oData = new AscFormat.ClrData(); - oParsedData["useDef"] != undefined && oData.setUseDef(oParsedData["useDef"]); - break; case "sampData": oData = new AscFormat.SampData(); oParsedData["useDef"] != undefined && oData.setUseDef(oParsedData["useDef"]); @@ -13193,22 +13186,12 @@ switch (oParsedClrLst["type"]) { case "effectClrLst": - oClrLst = new AscFormat.EffectClrLst(); - break; case "fillClrLst": - oClrLst = new AscFormat.FillClrLst(); - break; case "linClrLst": - oClrLst = new AscFormat.LinClrLst(); - break; case "txEffectClrLst": - oClrLst = new AscFormat.TxEffectClrLst(); - break; case "txFillClrLst": - oClrLst = new AscFormat.TxFillClrLst(); - break; case "txLinClrLst": - oClrLst = new AscFormat.TxLinClrLst(); + oClrLst = new AscFormat.ClrLst(); break; } @@ -13226,9 +13209,7 @@ ReaderFromJSON.prototype.DescFromJSON = function(oParsedDesc) { var oDesc = null; - if (oParsedDesc["type"] === "desc") - oDesc = new AscFormat.Desc(); - else if (oParsedDesc["type"] === "diagramTitle") + if (oParsedDesc["type"] === "desc" || oParsedDesc["type"] === "diagramTitle") oDesc = new AscFormat.DiagramTitle(); if (oDesc) @@ -21131,6 +21112,12 @@ case Asc.c_oAscNumberingFormat.CustomGreece: sVal = "customGreece"; break; + case Asc.c_oAscNumberingFormat.CustomUpperTurkish: + sVal = "customUpperTurkish"; + break; + case Asc.c_oAscNumberingFormat.CustomLowerTurkish: + sVal = "customLowerTurkish"; + break; case Asc.c_oAscNumberingFormat.CustomDecimalFourZero: sVal = "customDecimalFourZero"; break; @@ -21341,6 +21328,12 @@ case "customGreece": nVal = Asc.c_oAscNumberingFormat.CustomGreece; break; + case "customUpperTurkish": + nVal = Asc.c_oAscNumberingFormat.CustomUpperTurkish; + break; + case "customLowerTurkish": + nVal = Asc.c_oAscNumberingFormat.CustomLowerTurkish; + break; case "customDecimalFourZero": nVal = Asc.c_oAscNumberingFormat.CustomDecimalFourZero; break; @@ -22047,7 +22040,10 @@ window['AscJsonConverter'] = window.AscJsonConverter = window['AscJsonConverter'] || {}; window['AscJsonConverter'].WriterToJSON = WriterToJSON; window['AscJsonConverter'].ReaderFromJSON = ReaderFromJSON; - + + window['AscCommon'].To_XML_ST_LayoutShapeType = To_XML_ST_LayoutShapeType; + window['AscCommon'].From_XML_ST_LayoutShapeType = From_XML_ST_LayoutShapeType; + })(window);